@acedatacloud/nexior 3.88.0 → 3.89.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-DrZZ3SeK.js → Auth-C-XrvTWM.js} +1 -1
- package/dist/assets/{BotPlaceholder-DGoHs3OO.js → BotPlaceholder-DTdZq2kH.js} +1 -1
- package/dist/assets/{Callback-NHaeadCF.js → Callback-B4nupg_0.js} +1 -1
- package/dist/assets/{Console-3lOdZPom.js → Console-DbkRd8JV.js} +1 -1
- package/dist/assets/{Consumption-98bh7-Af.js → Consumption-Cy8Mteic.js} +1 -1
- package/dist/assets/{Conversation-BmP7aHPG.js → Conversation-Cu7w76v-.js} +1 -1
- package/dist/assets/{CopyToClipboard-aJVlmG7i.js → CopyToClipboard-C04ZOzPS.js} +1 -1
- package/dist/assets/{Detail-DaxpbRaz.js → Detail-CoasdQig.js} +2 -2
- package/dist/assets/{EditArray-pB28UCYc.js → EditArray-ConvNLQT.js} +1 -1
- package/dist/assets/{Extra-DaV6z-Ap.js → Extra-AKGA3sTy.js} +1 -1
- package/dist/assets/{FilePreview-DjVcc49f.js → FilePreview-DdZIRkJ6.js} +1 -1
- package/dist/assets/{History-DHgR59jq.js → History-C6Y-deoU.js} +1 -1
- package/dist/assets/{IconPark.vue_vue_type_script_setup_true_lang-Cbr8-_Hg.js → IconPark.vue_vue_type_script_setup_true_lang-6f_gppak.js} +1 -1
- package/dist/assets/{ImagePreview-BeWsfeNk.js → ImagePreview-Bq0KGy5V.js} +1 -1
- package/dist/assets/{ImageWrapper-t0iyC2_F.js → ImageWrapper-yInMKsPR.js} +1 -1
- package/dist/assets/{Index-CmTVkwV5.js → Index-B102Q-7b.js} +1 -1
- package/dist/assets/{Index-DMwLsTV6.js → Index-B1sYmuKz.js} +1 -1
- package/dist/assets/{Index-ChyXlBXq.js → Index-Bhiees4i.js} +1 -1
- package/dist/assets/{Index-_82xgw4U.js → Index-BoI7llee.js} +1 -1
- package/dist/assets/{Index-DvSMKYq4.js → Index-C-aJnE_P.js} +1 -1
- package/dist/assets/{Index-Cfv06lkl.js → Index-C3gqN9lC.js} +1 -1
- package/dist/assets/{Index-auU9uxU7.js → Index-CMBJ3Ubw.js} +1 -1
- package/dist/assets/{Index-C4cawRcH.js → Index-CStVZ931.js} +1 -1
- package/dist/assets/{Index-D5LzBDLx.js → Index-CkdG-dsp.js} +1 -1
- package/dist/assets/{Index-pz7h8uOn.js → Index-CtCtoAhf.js} +1 -1
- package/dist/assets/{Index-MXCgEG3W.js → Index-CwBBmgoL.js} +1 -1
- package/dist/assets/{Index-D47bcR6T.css → Index-D1zi3VjW.css} +1 -1
- package/dist/assets/{Index-BnTn8tzp.js → Index-D6gdIs5o.js} +1 -1
- package/dist/assets/{Index-kyjd_1v7.js → Index-DN76bEuk.js} +1 -1
- package/dist/assets/{Index-DHmMauai.js → Index-D_MLHPoD.js} +1 -1
- package/dist/assets/{Index-C8B1Hcin.js → Index-DgF25WCt.js} +1 -1
- package/dist/assets/{Index-DmL3XJWe.js → Index-Dr85BTcB.js} +1 -1
- package/dist/assets/{Index-C3OMemA4.js → Index-M26Ugimj.js} +1 -1
- package/dist/assets/{Index-DKh_LZs3.js → Index-Mapyst1Y.js} +1 -1
- package/dist/assets/{Index-DDv936FH.js → Index-QV6LKrVs.js} +1 -1
- package/dist/assets/{Index-CJ8h2Qbx.js → Index-Sy7yob8p.js} +1 -1
- package/dist/assets/{Index-czvvwpJy.js → Index-T69OmN8m.js} +1 -1
- package/dist/assets/{Index-tTfVi5QE.js → Index-UgwlV3Da.js} +1 -1
- package/dist/assets/{Index-B00ooWzV.js → Index-W4lE0G1J.js} +1 -1
- package/dist/assets/{Index-BWA_Jp1t.js → Index-Wt3iyoe_.js} +1 -1
- package/dist/assets/{Index-Cs09Sc6n.js → Index-xjIloRVL.js} +1 -1
- package/dist/assets/{Invitees-DkjwBxvx.js → Invitees-DWN7dmBY.js} +1 -1
- package/dist/assets/{List-D5Cq5fY5.js → List-3W8L7v0L.js} +1 -1
- package/dist/assets/{List-CcSLsDC7.js → List-B9j2GtdE.js} +1 -1
- package/dist/assets/{List-CUx_8nWV.js → List-BjAvsrzC.js} +1 -1
- package/dist/assets/{List-Gju659JU.js → List-BoecurQF.js} +1 -1
- package/dist/assets/{Main-DGFO_5Qi.js → Main-CW3_iYHV.js} +1 -1
- package/dist/assets/{Navigator-TaVLAUkI.js → Navigator-CVoxXIJK.js} +1 -1
- package/dist/assets/{NoTasks-BzrlLtXg.js → NoTasks-BRLJTbpH.js} +1 -1
- package/dist/assets/{NotFound-DUavfHXB.js → NotFound-Da2xtjK5.js} +1 -1
- package/dist/assets/{OAuthCallback-8151hey3.js → OAuthCallback-Co93Apft.js} +1 -1
- package/dist/assets/{Pagination-Jg4UThwK.js → Pagination-CYoCHC2N.js} +1 -1
- package/dist/assets/{ScrollList-BOpzsSMs.js → ScrollList-B-Kj1kLR.js} +1 -1
- package/dist/assets/{Status-9YKfMLP0.js → Status-5Wf19zJs.js} +1 -1
- package/dist/assets/{Subscribe-DvhDUoop.js → Subscribe-CpzZytTk.js} +1 -1
- package/dist/assets/{TransportWebHID-4Qy1v_Cj.js → TransportWebHID-SxJD5cWx.js} +1 -1
- package/dist/assets/{VideoPlayer-CvzD97_k.js → VideoPlayer-DcHrMVgM.js} +1 -1
- package/dist/assets/{_Uint8Array-BLlXLAO2.js → _Uint8Array-0RhRtRGu.js} +1 -1
- package/dist/assets/{_baseClone-Bh3JK93r.js → _baseClone-BZXxYXdF.js} +1 -1
- package/dist/assets/{_baseIteratee-Cg1nAllN.js → _baseIteratee-5bMPcoR7.js} +1 -1
- package/dist/assets/{_initCloneObject-1g0v6DQg.js → _initCloneObject-B2kwKJ_I.js} +1 -1
- package/dist/assets/{add-BqKQ4Tl3.js → add-CLJUN5bb.js} +1 -1
- package/dist/assets/{all-wallets-D1-1giut.js → all-wallets-D-rqoZxm.js} +1 -1
- package/dist/assets/{app-store-BIVYoXtH.js → app-store-BhVmaUep.js} +1 -1
- package/dist/assets/{apple-BLhEzrMW.js → apple-D_DgZ3GF.js} +1 -1
- package/dist/assets/{arrow-bottom-BxnzfPCR.js → arrow-bottom-B3hVzHWM.js} +1 -1
- package/dist/assets/{arrow-bottom-circle-DTqDCHrp.js → arrow-bottom-circle-BxsmJ-KI.js} +1 -1
- package/dist/assets/{arrow-left-9HdBLUig.js → arrow-left-C1TI1HJR.js} +1 -1
- package/dist/assets/{arrow-right-oeEsan_r.js → arrow-right-B8c0_R4R.js} +1 -1
- package/dist/assets/{arrow-top-Msz1gfQZ.js → arrow-top-BtWOcdN9.js} +1 -1
- package/dist/assets/{avatar-CLBUZd__.js → avatar-DetbA60-.js} +1 -1
- package/dist/assets/{bank-CUeajQgm.js → bank-Cs3Nh3ng.js} +1 -1
- package/dist/assets/{basic-qDQ5QF4t.js → basic-BWwU7sBr.js} +1 -1
- package/dist/assets/{browser-Db_vH3I3.js → browser-B6fkakwU.js} +1 -1
- package/dist/assets/{byokCredential-CAIF7mF3.js → byokCredential-Cu_acIzi.js} +1 -1
- package/dist/assets/{card-BpNf3qr4.js → card-BMYIDdG4.js} +1 -1
- package/dist/assets/{castArray-yAIf1Ihj.js → castArray-CnoZia7q.js} +1 -1
- package/dist/assets/{chat-DymjKjb4.js → chat-Bjq_3DAO.js} +1 -1
- package/dist/assets/{checkmark-D4w-F3Al.js → checkmark-Dsbdfz0v.js} +1 -1
- package/dist/assets/{checkmark-bold-85je45kg.js → checkmark-bold-B1bo_oPD.js} +1 -1
- package/dist/assets/{chevron-bottom-DBm0iuzI.js → chevron-bottom-BluQsZ0B.js} +1 -1
- package/dist/assets/{chevron-left-CY6_OVAk.js → chevron-left-D-mruXSp.js} +1 -1
- package/dist/assets/{chevron-right-DfBC2f4i.js → chevron-right-B7lBr0bE.js} +1 -1
- package/dist/assets/{chevron-top-CciHjxfQ.js → chevron-top-D_Q8hwRY.js} +1 -1
- package/dist/assets/{chrome-store-09ILKxbR.js → chrome-store-DkA08Gj4.js} +1 -1
- package/dist/assets/{clock-DF99hSFF.js → clock-Mxo7hdYe.js} +1 -1
- package/dist/assets/{close-BOVP4UZ7.js → close-BiBXCBT5.js} +1 -1
- package/dist/assets/{coinPlaceholder-RFGKetCY.js → coinPlaceholder-DdoE19qw.js} +1 -1
- package/dist/assets/{compass-BxUPI0Ub.js → compass-DARtJI5l.js} +1 -1
- package/dist/assets/{copy-CFt1K_3e.js → copy-EOIzpsCF.js} +1 -1
- package/dist/assets/{cursor-BHvydPmD.js → cursor-BCkndKb3.js} +1 -1
- package/dist/assets/{cursor-transparent-CGIkop_p.js → cursor-transparent-BjN4Ceeq.js} +1 -1
- package/dist/assets/{debounce-kCVbleAy.js → debounce-BYulEKvt.js} +1 -1
- package/dist/assets/{desktop-D2hmpt68.js → desktop-BCcDQFme.js} +1 -1
- package/dist/assets/{disconnect-DfSuuExl.js → disconnect-Cyo39ZGN.js} +1 -1
- package/dist/assets/{discord-CXZvowlL.js → discord-ZtzbWI25.js} +1 -1
- package/dist/assets/{distribution-CMZ_WhYo.js → distribution-DytG9XNS.js} +1 -1
- package/dist/assets/{dropdown-C5px9ey3.js → dropdown-CrejjKNE.js} +1 -1
- package/dist/assets/{etherscan-DhRquZVa.js → etherscan-Df0wVq4r.js} +1 -1
- package/dist/assets/{exclamation-triangle-xzgjuJ2z.js → exclamation-triangle-Dkoj7vNM.js} +1 -1
- package/dist/assets/{extension-C3MbmfZr.js → extension-D8NejEbg.js} +1 -1
- package/dist/assets/{external-link-ew_70T9o.js → external-link-PNx2xh2M.js} +1 -1
- package/dist/assets/{facebook-CAW6Grh0.js → facebook-DKdEMznt.js} +1 -1
- package/dist/assets/{farcaster-CDoz6qjD.js → farcaster-DenGJgrB.js} +1 -1
- package/dist/assets/{filters-CwiH-o2p.js → filters-Df4h3e2F.js} +1 -1
- package/dist/assets/{flux-By1EnuCr.js → flux-QmmC8GT1.js} +1 -1
- package/dist/assets/{github-BtsXc-KS.js → github-DFSofEUh.js} +1 -1
- package/dist/assets/{google-D3i-E3lZ.js → google-BTRkXDUm.js} +1 -1
- package/dist/assets/{hailuo-A33z0cPm.js → hailuo-DrQRNJhk.js} +1 -1
- package/dist/assets/{headshots-Dxph8juL.js → headshots-cAj5uvGQ.js} +1 -1
- package/dist/assets/{help-circle-CtRMRiO5.js → help-circle-DUremZ2V.js} +1 -1
- package/dist/assets/{id-CgLCy2TZ.js → id-DIHHLCi9.js} +1 -1
- package/dist/assets/{image-BXBXFM9e.js → image-BhNskdQC.js} +1 -1
- package/dist/assets/{index-ByFt43Wz.js → index-5Ds300_C.js} +1 -1
- package/dist/assets/{index-BLBMDJiy.js → index-6b1XxUX-.js} +1 -1
- package/dist/assets/{index-aK6rv_gD.js → index-6d44Eb2n.js} +1 -1
- package/dist/assets/{index-BCdvtZQG.js → index-B5jl052i.js} +1 -1
- package/dist/assets/{index-BD7Q4G-q.js → index-BA725btA.js} +1 -1
- package/dist/assets/{index-ChzvNzFS.js → index-BGn0A-r6.js} +1 -1
- package/dist/assets/{index-DJUQSF0A.js → index-BIMvFxYm.js} +1 -1
- package/dist/assets/{index-C4jCFUIP.js → index-BSWTwIvQ.js} +1 -1
- package/dist/assets/{index-D6rIKr0a.js → index-BSvug3AN.js} +1 -1
- package/dist/assets/{index-D83vqHYw.js → index-Bbcg_VL1.js} +1 -1
- package/dist/assets/{index-CIlIdIjP.js → index-BfUsFAWV.js} +1 -1
- package/dist/assets/{index-DzF8VUd9.js → index-BhT4v_x9.js} +1 -1
- package/dist/assets/{index-D5P6dASJ.js → index-Bll8JTHP.js} +1 -1
- package/dist/assets/{index-DDzYKBgP.js → index-BqSzBW6X.js} +1 -1
- package/dist/assets/{index-dyGUihGe.js → index-BsV65dZA.js} +1 -1
- package/dist/assets/{index-BB1bhGIK.js → index-Bv-ObcpC.js} +1 -1
- package/dist/assets/{index-7xh8EwUI.js → index-By3f5hkV.js} +1 -1
- package/dist/assets/{index-Bn7YDYmR.js → index-C-BFvYVr.js} +3 -3
- package/dist/assets/{index-DBolTNmi.js → index-C0p2lUGt.js} +1 -1
- package/dist/assets/{index-BS-SPe39.js → index-C1RBh9eY.js} +1 -1
- package/dist/assets/{index-9NI9JARq.js → index-C26cT6VO.js} +6 -6
- package/dist/assets/{index-hsR5obiv.js → index-C4dQyheM.js} +1 -1
- package/dist/assets/{index-D14VANp0.js → index-C5gLyNyO.js} +1 -1
- package/dist/assets/{index-DdZsYKJE.js → index-C8xzto8F.js} +1 -1
- package/dist/assets/{index-CNJ7VZAR.js → index-C9MCki7p.js} +1 -1
- package/dist/assets/{index-Dj8usySr.js → index-C9uDgr-B.js} +1 -1
- package/dist/assets/{index-D6ZURyuw.js → index-CEz7iwTL.js} +1 -1
- package/dist/assets/{index-CbW-RUg3.js → index-CMXjexAl.js} +1 -1
- package/dist/assets/{index-zHy_Tns_.js → index-CSFWZ8TW.js} +1 -1
- package/dist/assets/{index-D37lqh67.js → index-CWVKY-hX.js} +1 -1
- package/dist/assets/{index-CFt0C_sM.js → index-CX47aqSL.js} +1 -1
- package/dist/assets/{index-Dl6KqLVE.js → index-CZRS8Pfe.js} +1 -1
- package/dist/assets/{index-BfRP23SC.js → index-CZmMZPJB.js} +1 -1
- package/dist/assets/{index-E62TYRnl.js → index-CddVo93y.js} +1 -1
- package/dist/assets/{index-CE4Z4cSI.js → index-CirmwZJ0.js} +1 -1
- package/dist/assets/{index-BGI6Spj1.js → index-Cnb8mdET.js} +1 -1
- package/dist/assets/{index-Cw58JqNP.js → index-CpimsOIw.js} +1 -1
- package/dist/assets/{index-B5NSQZlK.js → index-CtrYSQ08.js} +1 -1
- package/dist/assets/{index-CxtLZDhr.js → index-Cx2yq1Hr.js} +3 -3
- package/dist/assets/{index-FcsFTRum.js → index-DEl7Jf-g.js} +1 -1
- package/dist/assets/{index-CGLEnOu2.js → index-DHTO4qxT.js} +1 -1
- package/dist/assets/{index-B0ItWdvx.js → index-DJ1l-dKG.js} +1 -1
- package/dist/assets/{index-y73PzSA7.js → index-DQFJE3vX.js} +1 -1
- package/dist/assets/{index-DLEICRsh.js → index-DcgghNrB.js} +1 -1
- package/dist/assets/{index-DEhQFSab.js → index-Denf2RlU.js} +1 -1
- package/dist/assets/{index-BaJAYhld.js → index-DjHlHIMC.js} +1 -1
- package/dist/assets/{index-B_F67Bxw.js → index-DkeqcX9q.js} +1 -1
- package/dist/assets/{index-DJ-_S05x.js → index-DuMh1ig3.js} +1 -1
- package/dist/assets/{index-DgaVFMsP.js → index-DuWpLKta.js} +1 -1
- package/dist/assets/{index-CaNwHQ-J.js → index-Dzc3inPz.js} +1 -1
- package/dist/assets/{index-D61gLAb1.js → index-EsaUn5-o.js} +1 -1
- package/dist/assets/{index-O5yoMNr2.js → index-H5j-O6nZ.js} +1 -1
- package/dist/assets/{index-DWb61zkI.js → index-MYbCJyOl.js} +1 -1
- package/dist/assets/{index-D1K0_HK6.js → index-T_jQk2SK.js} +1 -1
- package/dist/assets/{index-DgysfsHq.js → index-WLnVbCSu.js} +1 -1
- package/dist/assets/{index-KHi_aXm4.js → index-WZtXS9FS.js} +1 -1
- package/dist/assets/{index-BePdGa0C.js → index-XubXDD_u.js} +1 -1
- package/dist/assets/{index-Cjt-x7eL.js → index-bTXCEfKs.js} +1 -1
- package/dist/assets/{index-g-OqTOL-.js → index-meSLa91K.js} +1 -1
- package/dist/assets/{index-x9pEAxsV.js → index-o-K9lIjq.js} +1 -1
- package/dist/assets/{index-9xOZyswe.js → index-x4zDcUjg.js} +1 -1
- package/dist/assets/{index.browser.esm-4nMuWTJ0.js → index.browser.esm-BIGZA6Dy.js} +1 -1
- package/dist/assets/{index.es-2lzQ8vMU.js → index.es-DygHzaFn.js} +1 -1
- package/dist/assets/{info-CVa8MXln.js → info-BslOc1zP.js} +1 -1
- package/dist/assets/{info-circle-CfZ5ZazO.js → info-circle-CBlBM9pC.js} +1 -1
- package/dist/assets/{isEqual-BQxacRy6.js → isEqual-t6MQLHrP.js} +1 -1
- package/dist/assets/{isPlainObject-DyQHv-ss.js → isPlainObject-UHNWDVqK.js} +1 -1
- package/dist/assets/{kling-YItZ28uZ.js → kling-B16HucR8.js} +1 -1
- package/dist/assets/{lightbulb-COZKfAP-.js → lightbulb-Pj4K23mq.js} +1 -1
- package/dist/assets/{luma-4F111AZZ.js → luma-DSdqvg_P.js} +1 -1
- package/dist/assets/{mail-BWF_Qu1P.js → mail-x7sG4lkE.js} +1 -1
- package/dist/assets/{midjourney-BmELElHZ.js → midjourney-CwsIp-p0.js} +1 -1
- package/dist/assets/{mobile-QlS1VxAQ.js → mobile-sbn_WqBz.js} +1 -1
- package/dist/assets/{more-D9D19_N2.js → more-BTe5RZmd.js} +1 -1
- package/dist/assets/{nanobanana-BpcJ7AYx.js → nanobanana-JhqOy40x.js} +1 -1
- package/dist/assets/{network-placeholder-BOdZnNYp.js → network-placeholder-Brf3xgQj.js} +1 -1
- package/dist/assets/{nftPlaceholder-BxaGOflq.js → nftPlaceholder-BLsum08K.js} +1 -1
- package/dist/assets/{off-CG_Whjd3.js → off-BbdXMuHx.js} +1 -1
- package/dist/assets/{openaiimage-Ddtnh0Pd.js → openaiimage-C12DENhZ.js} +1 -1
- package/dist/assets/{order-DxnJPtaO.js → order-DkOT6Xf9.js} +1 -1
- package/dist/assets/{pika-CCAfX_7V.js → pika-CB3sm9RR.js} +1 -1
- package/dist/assets/{pixverse-CFOX0og5.js → pixverse-D3AZRw_v.js} +1 -1
- package/dist/assets/{play-store-B0FPrAAW.js → play-store-DsUTXjSA.js} +1 -1
- package/dist/assets/{plus-BETge7H4.js → plus-D3r_QKtz.js} +1 -1
- package/dist/assets/{price-C9hkxRAq.js → price-DTknWM2g.js} +1 -1
- package/dist/assets/{producer-CuNQ-FCt.js → producer-wBIEgfWz.js} +1 -1
- package/dist/assets/{qr-code-CdPIJqzM.js → qr-code-Q4GaAuqi.js} +1 -1
- package/dist/assets/{qrart-DObq-iNj.js → qrart-OJbjb8K7.js} +1 -1
- package/dist/assets/{recycle-horizontal-DCyUKw0-.js → recycle-horizontal-Bhxo566k.js} +1 -1
- package/dist/assets/{refresh-BqcAS5hO.js → refresh-BelB3cmp.js} +1 -1
- package/dist/assets/{reown-logo-D9WowJvj.js → reown-logo-Dr9NXSYr.js} +1 -1
- package/dist/assets/{search-DtLGOmFP.js → search-C9QblGeI.js} +1 -1
- package/dist/assets/{secp256k1-BgVAK5lM.js → secp256k1-B5e0Dl6Q.js} +1 -1
- package/dist/assets/{secp256k1-CuU1ALfW.js → secp256k1-CyhpHTXy.js} +1 -1
- package/dist/assets/{seedance-BIR_tgZM.js → seedance-dJ755zvg.js} +1 -1
- package/dist/assets/{seedream-Bvs-gKIK.js → seedream-CjzfZHxH.js} +1 -1
- package/dist/assets/{send-uwyeMpUj.js → send-g2ycCmbu.js} +1 -1
- package/dist/assets/{service-_xzZIOOH.js → service-DTq1JX0u.js} +1 -1
- package/dist/assets/{solana-wallets-BLLnJ9zj.js → solana-wallets-DMj22tAB.js} +2 -2
- package/dist/assets/{solana-wallets-vue-CxU5M1TU.js → solana-wallets-vue-4sTP9ttb.js} +1 -1
- package/dist/assets/{solanaEmbed.esm-DmEmhgnu.js → solanaEmbed.esm-DguAaQKH.js} +1 -1
- package/dist/assets/{sora-C9mX73Ee.js → sora-DxlKabej.js} +1 -1
- package/dist/assets/{string_decoder-7NmhSOKI.js → string_decoder-An-9xQta.js} +1 -1
- package/dist/assets/{suno-D5VfyNFw.js → suno-gMxVXNT0.js} +1 -1
- package/dist/assets/{swapHorizontal-CvulxYeD.js → swapHorizontal-DhptE_yk.js} +1 -1
- package/dist/assets/{swapHorizontalBold-THFFIvhB.js → swapHorizontalBold-y0gSuh29.js} +1 -1
- package/dist/assets/{swapHorizontalMedium-C2YTJTGt.js → swapHorizontalMedium-gHyFoLIK.js} +1 -1
- package/dist/assets/{swapHorizontalRoundedBold-BRHb7ScJ.js → swapHorizontalRoundedBold-rXZFtVsK.js} +1 -1
- package/dist/assets/{swapVertical-C8yPQrd8.js → swapVertical-DzVpPxih.js} +1 -1
- package/dist/assets/{telegram-B3gXffF8.js → telegram-MqMdcpze.js} +1 -1
- package/dist/assets/{three-dots-BJFR7I3h.js → three-dots-BcDX2b6w.js} +1 -1
- package/dist/assets/{twitch-CE8xzUb5.js → twitch-BAAsxSym.js} +1 -1
- package/dist/assets/{twitterIcon-BVqBO1iA.js → twitterIcon-QtgzNYW6.js} +1 -1
- package/dist/assets/{typescript-CoAxGsjg.js → typescript-BM7P3jg4.js} +1 -1
- package/dist/assets/{use-form-item-DTGT08pf.js → use-form-item-Bap1cNNT.js} +1 -1
- package/dist/assets/validator-DyJoR1pm.js +1 -0
- package/dist/assets/{veo-j7T6USux.js → veo-ByKmoh6-.js} +1 -1
- package/dist/assets/{verify-BOnw63CT.js → verify-CvX9uDdX.js} +1 -1
- package/dist/assets/{verify-filled-CRwvy1s8.js → verify-filled-B1Dtk4zK.js} +1 -1
- package/dist/assets/{w3m-modal-B6G0Jfls.js → w3m-modal-C83-vwbi.js} +1 -1
- package/dist/assets/{wallet-CrOaaRs4.js → wallet-CyorXMJK.js} +1 -1
- package/dist/assets/{wallet-placeholder-DlazbE81.js → wallet-placeholder-CTOK62Q8.js} +1 -1
- package/dist/assets/{walletconnect-BhKJBXFH.js → walletconnect-CKeQNhde.js} +1 -1
- package/dist/assets/{wan-Cex4PaIs.js → wan-Dyq2yd6V.js} +1 -1
- package/dist/assets/{warning-circle-BJcdHGFq.js → warning-circle-D0-0IIrc.js} +1 -1
- package/dist/assets/{web-DvbAs-ze.js → web-CBGilpRO.js} +1 -1
- package/dist/assets/{web-B-gVreKu.js → web-SB4tZHu3.js} +1 -1
- package/dist/assets/{x-Bp-WBKC_.js → x-fjnI89S5.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/validator-CV9JtUBJ.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as V}from"./index-CxUeIbEw.js";import{P as K,T as j}from"./index.browser.esm-4nMuWTJ0.js";import{g as X}from"./vendor-dayjs-Cvgzdobq.js";import{h as H,r as R,k as Y,e as v,m as Q,q as F}from"./signer-Bt6hppoz.js";import"./index-Bn7YDYmR.js";import"./vendor-vue-C5BV5QrY.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-vue-router-Bl-Po99g.js";import"./index-CVHPJfCy.js";var c;(function(t){t.PROJECT_APPROVED="PROJECT_APPROVED",t.HANDSHAKE="HANDSHAKE",t.HANDSHAKE_ACK="HANDSHAKE_ACK",t.SIGNED_TRANSACTION="SIGNED_TRANSACTION",t.SIGNED_PARTIAL_TRANSACTION="SIGNED_PARTIAL_TRANSACTION",t.FAILED_TO_SIGN_TRANSACTION="FAILED_TO_SIGN_TRANSACTION",t.TRANSACTION_DENIED="TRANSACTION_DENIED",t.SOLANA_WALLET_ADAPTER_APPROVED="SOLANA_WALLET_ADAPTER_APPROVED",t.SOLANA_WALLET_ADAPTER_DENIED="SOLANA_WALLET_ADAPTER_DENIED",t.POPUP_CLOSED="POPUP_CLOSED",t.TRANSACTION_SIGNATURE_NEEDED="TRANSACTION_SIGNATURE_NEEDED",t.TRANSACTION_SIGNATURE_NEEDED_RESPONSE="TRANSACTION_SIGNATURE_NEEDED_RESPONSE",t.AUTH_LOADED="AUTH_LOADED",t.MESSAGE_SIGNATURE_NEEDED="MESSAGE_SIGNATURE_NEEDED",t.MESSAGE_SIGNATURE_NEEDED_RESPONSE="MESSAGE_SIGNATURE_NEEDED_RESPONSE",t.ONRAMP_FULFILLMENT_COMPLETE="ONRAMP_FULFILLMENT_COMPLETE",t.ONRAMP_REJECTED="ONRAMP_REJECTED"})(c||(c={}));var b;(function(t){t.UNKNOWN="UNKNOWN",t.REACT_SDK="REACT_SDK",t.SOLANA_WALLET_ADAPTER="SOLANA_WALLET_ADAPTER"})(b||(b={}));class Z{constructor(n,e){this.validatedOrigin=n,this.targetWindow=e,this.handlers=new Map}off(n,e){const r=this.handlers.get(n);r?.delete(e)}on(n,e){var r;const s=(r=this.handlers.get(n))!==null&&r!==void 0?r:new Set;s.add(e),this.handlers.set(n,s)}send({event:n,payload:e}){this.targetWindow.postMessage({event:n,payload:e},this.validatedOrigin)}runHandlersForEvent(n,e){const r=this.handlers.get(n);if(r)for(const s of r)s(e)}resetHandlers(){this.handlers.clear()}export(){return{off:this.off.bind(this),on:this.on.bind(this),send:this.send.bind(this),validatedOrigin:this.validatedOrigin}}}const ee="https://fractal.is",ne="https://www.fractal.is",te=400,P=600;function re(t){return t===ne||t===ee}const ie="fractal:approval:popup",oe=["resizable","scrollbars=1","status=1"];function se({left:t=0,scope:n=window,top:e=0,width:r=P,height:s=P,url:l}){return n.open(l,ie,ae({height:s,left:t,top:e,width:r}))}function ae({height:t,left:n,top:e,width:r}){return["popup",`left=${n}`,`top=${e}`,`width=${r}`,`height=${t}`,...oe].join(",")}class le{constructor(n){this.platform=n,this.connection=null,this.popupWindow=null,this.handleMessage=e=>{var r,s;if(!re(e.origin))return;const l=e.origin;if(this.popupWindow){if(e.data.event===c.HANDSHAKE&&!this.connection){if(!this.verifyAndResetNonce((r=e.data.payload)===null||r===void 0?void 0:r.nonce))return;this.popupWindow.postMessage({event:c.HANDSHAKE_ACK,payload:{platform:this.platform}},l),this.connection=new Z(l,this.popupWindow),(s=this.connectionUpdatedCallback)===null||s===void 0||s.call(this,this.connection)}this.connection&&(this.connection.runHandlersForEvent(e.data.event,e.data.payload),e.data.event===c.POPUP_CLOSED&&this.connection&&(this.resetConnection(),this.popupWindow=null))}}}initialize(){return window.addEventListener("message",this.handleMessage),this}tearDown(){return window.removeEventListener("message",this.handleMessage),this.resetConnection(),this}async open({url:n,widthPx:e=te,heightPx:r=P,nonce:s}){var l;if(!((l=this.popupWindow)===null||l===void 0)&&l.closed&&this.resetConnectionAndPopupWindow(),this.popupWindow)return;this.initialize(),s&&(this.nonce=s);const u=window.screenX+(window.innerWidth-e)/2,d=window.screenY+(window.innerHeight-r)/2;this.popupWindow=se({height:r,left:u,top:d,url:typeof n=="string"?n:void 0,width:e}),n instanceof Promise&&this.setUrl(await n)}close(){this.popupWindow&&(this.popupWindow.close(),this.resetConnectionAndPopupWindow())}onConnectionUpdated(n){return this.connectionUpdatedCallback=n,this}getConnection(){return this.connection}setUrl(n){this.popupWindow&&(this.popupWindow.location=n)}resetConnectionAndPopupWindow(){this.resetConnection(),this.popupWindow=null}resetConnection(){var n,e;(n=this.connection)===null||n===void 0||n.resetHandlers(),this.connection=null,(e=this.connectionUpdatedCallback)===null||e===void 0||e.call(this,this.connection)}verifyAndResetNonce(n){if(!this.nonce)return!0;const e=n===this.nonce;return e&&(this.nonce=void 0),e}}V();function m(t){return!(t===null||typeof t!="object")}function ce(t){return!(!m(t)||!("solanaPublicKey"in t)||typeof t.solanaPublicKey!="string")}function de(t){return!m(t)||!("signedB58Transactions"in t)||!Array.isArray(t.signedB58Transactions)?!1:t.signedB58Transactions.every(n=>typeof n=="string")}function he(t){return!m(t)||!("decodedSignature"in t)?!1:typeof t.decodedSignature=="string"}var M,$;function Ae(){if($)return M;$=1;function t(n){if(n.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),r=0;r<e.length;r++)e[r]=255;for(var s=0;s<n.length;s++){var l=n.charAt(s),u=l.charCodeAt(0);if(e[u]!==255)throw new TypeError(l+" is ambiguous");e[u]=s}var d=n.length,i=n.charAt(0),o=Math.log(d)/Math.log(256),h=Math.log(256)/Math.log(d);function D(a){if(a instanceof Uint8Array||(ArrayBuffer.isView(a)?a=new Uint8Array(a.buffer,a.byteOffset,a.byteLength):Array.isArray(a)&&(a=Uint8Array.from(a))),!(a instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(a.length===0)return"";for(var p=0,N=0,f=0,g=a.length;f!==g&&a[f]===0;)f++,p++;for(var _=(g-f)*h+1>>>0,S=new Uint8Array(_);f!==g;){for(var A=a[f],w=0,T=_-1;(A!==0||w<N)&&T!==-1;T--,w++)A+=256*S[T]>>>0,S[T]=A%d>>>0,A=A/d>>>0;if(A!==0)throw new Error("Non-zero carry");N=w,f++}for(var E=_-N;E!==_&&S[E]===0;)E++;for(var O=i.repeat(p);E<_;++E)O+=n.charAt(S[E]);return O}function G(a){if(typeof a!="string")throw new TypeError("Expected String");if(a.length===0)return new Uint8Array;for(var p=0,N=0,f=0;a[p]===i;)N++,p++;for(var g=(a.length-p)*o+1>>>0,_=new Uint8Array(g);a[p];){var S=a.charCodeAt(p);if(S>255)return;var A=e[S];if(A===255)return;for(var w=0,T=g-1;(A!==0||w<f)&&T!==-1;T--,w++)A+=d*_[T]>>>0,_[T]=A%256>>>0,A=A/256>>>0;if(A!==0)throw new Error("Non-zero carry");f=w,p++}for(var E=g-f;E!==g&&_[E]===0;)E++;for(var O=new Uint8Array(N+(g-E)),J=N;E!==g;)O[J++]=_[E++];return O}function q(a){var p=G(a);if(p)return p;throw new Error("Non-base"+d+" character")}return{encode:D,decodeUnsafe:G,decode:q}}return M=t,M}var C,x;function Ee(){return x||(x=1,C=Ae()("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")),C}var pe=Ee();const B=X(pe);function I(){return`${U()}${U()}${U()}`}function U(){return(Math.random()+1).toString(36).substring(7)}const L="Unknown Error",W="https://fractal.is",ue=`${W}/wallet-adapter/approve`,fe=`${W}/wallet-adapter/sign`,ge=`${W}/wallet-adapter/sign/message`,k=P,z=850,y="RdxqNYxF";class ve{constructor(){this.popupManager=new le(b.SOLANA_WALLET_ADAPTER),this.publicKey=null,this.connecting=!1}getPublicKey(){return this.publicKey}async connect(){let n,e;const r=window.localStorage.getItem(y);if(r)return this.publicKey=new K(r),Promise.resolve();const s=I();this.popupManager.open({nonce:s,url:`${ue}/${s}`});const l=i=>{if(!ce(i)){e(new v(`Malformed payload when setting up connection. Expected { solanaPublicKey: string } but received ${JSON.stringify(i)}`)),this.popupManager.close();return}try{this.publicKey=new K(i.solanaPublicKey),window.localStorage.setItem(y,i.solanaPublicKey),n()}catch(o){const h=new Q(o instanceof Error?o.message:L,o);e(h)}this.popupManager.close()},u=()=>{e(new v("The user denied the connection.")),this.popupManager.close()},d=()=>{e(new v("The user denied the connection.")),this.popupManager.close()};return this.popupManager.onConnectionUpdated(i=>{i&&(i.on(c.SOLANA_WALLET_ADAPTER_APPROVED,l),i.on(c.SOLANA_WALLET_ADAPTER_DENIED,u),i.on(c.POPUP_CLOSED,d))}),new Promise((i,o)=>{n=i,e=o})}async disconnect(){this.popupManager.tearDown(),this.publicKey=null,window.localStorage.removeItem(y)}async signTransaction(n){try{return this.checkWalletReadiness(),(await this.signTransactions([n]))[0]}catch(e){let r=e;throw e instanceof H||(r=new R(e instanceof Error?e.message:L,e)),r}}async signAllTransactions(n){try{return this.checkWalletReadiness(),await this.signTransactions(n)}catch(e){let r=e;throw e instanceof H||(r=new R(e instanceof Error?e.message:L,e)),r}}async signMessage(n){const e=new TextDecoder().decode(n);let r,s;const l=o=>{if(!he(o)){const D=new F(`Malformed payload when signing message. Expected { decodedSignature: string } but received ${JSON.stringify(o)}`);s(D),this.popupManager.close();return}const h=Uint8Array.from(o.decodedSignature.split(",").map(D=>Number(D)));r(h),this.popupManager.close()},u=()=>{s(new F("The user did not approve the message")),this.popupManager.close()},d=()=>{var o;const h={decodedMessage:e};(o=this.popupManager.getConnection())===null||o===void 0||o.send({event:c.MESSAGE_SIGNATURE_NEEDED,payload:h})},i=I();return this.popupManager.open({heightPx:Math.max(k,Math.floor(window.innerHeight*.8)),nonce:i,url:`${ge}/${i}`,widthPx:Math.min(z,Math.floor(window.innerWidth*.8))}),this.popupManager.onConnectionUpdated(o=>{o&&(o.on(c.MESSAGE_SIGNATURE_NEEDED_RESPONSE,l),o.on(c.TRANSACTION_DENIED,u),o.on(c.POPUP_CLOSED,u),o.on(c.AUTH_LOADED,d))}),new Promise((o,h)=>{r=o,s=h})}async signTransactions(n){let e,r;const s=i=>{if(!de(i)){const h=new R(`Malformed payload when signing transactions. Expected { signedB58Transactions: string[] } but received ${JSON.stringify(i)}`);r(h),this.popupManager.close();return}const o=i.signedB58Transactions.map(h=>j.from(B.decode(h)));e(o),this.popupManager.close()},l=()=>{r(new R("The user did not approve the transaction")),this.popupManager.close()},u=()=>{var i;const o={unsignedB58Transactions:n.map(h=>B.encode(h.serializeMessage()))};(i=this.popupManager.getConnection())===null||i===void 0||i.send({event:c.TRANSACTION_SIGNATURE_NEEDED,payload:o})},d=I();return this.popupManager.open({heightPx:Math.max(k,Math.floor(window.innerHeight*.8)),nonce:d,url:`${fe}/${d}`,widthPx:Math.min(z,Math.floor(window.innerWidth*.8))}),this.popupManager.onConnectionUpdated(i=>{i&&(i.on(c.TRANSACTION_SIGNATURE_NEEDED_RESPONSE,s),i.on(c.TRANSACTION_DENIED,l),i.on(c.POPUP_CLOSED,l),i.on(c.AUTH_LOADED,u))}),new Promise((i,o)=>{e=i,r=o})}checkWalletReadiness(){if(this.publicKey===null)throw new Y("`publicKey` is null. Did you forget to call `.connect()`?")}}export{ve as FractalWalletAdapterImpl};
|
|
1
|
+
import{r as V}from"./index-CxUeIbEw.js";import{P as K,T as j}from"./index.browser.esm-BIGZA6Dy.js";import{g as X}from"./vendor-dayjs-Cvgzdobq.js";import{h as H,r as R,k as Y,e as v,m as Q,q as F}from"./signer-Bt6hppoz.js";import"./index-C-BFvYVr.js";import"./vendor-vue-C5BV5QrY.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-vue-router-Bl-Po99g.js";import"./index-CVHPJfCy.js";var c;(function(t){t.PROJECT_APPROVED="PROJECT_APPROVED",t.HANDSHAKE="HANDSHAKE",t.HANDSHAKE_ACK="HANDSHAKE_ACK",t.SIGNED_TRANSACTION="SIGNED_TRANSACTION",t.SIGNED_PARTIAL_TRANSACTION="SIGNED_PARTIAL_TRANSACTION",t.FAILED_TO_SIGN_TRANSACTION="FAILED_TO_SIGN_TRANSACTION",t.TRANSACTION_DENIED="TRANSACTION_DENIED",t.SOLANA_WALLET_ADAPTER_APPROVED="SOLANA_WALLET_ADAPTER_APPROVED",t.SOLANA_WALLET_ADAPTER_DENIED="SOLANA_WALLET_ADAPTER_DENIED",t.POPUP_CLOSED="POPUP_CLOSED",t.TRANSACTION_SIGNATURE_NEEDED="TRANSACTION_SIGNATURE_NEEDED",t.TRANSACTION_SIGNATURE_NEEDED_RESPONSE="TRANSACTION_SIGNATURE_NEEDED_RESPONSE",t.AUTH_LOADED="AUTH_LOADED",t.MESSAGE_SIGNATURE_NEEDED="MESSAGE_SIGNATURE_NEEDED",t.MESSAGE_SIGNATURE_NEEDED_RESPONSE="MESSAGE_SIGNATURE_NEEDED_RESPONSE",t.ONRAMP_FULFILLMENT_COMPLETE="ONRAMP_FULFILLMENT_COMPLETE",t.ONRAMP_REJECTED="ONRAMP_REJECTED"})(c||(c={}));var b;(function(t){t.UNKNOWN="UNKNOWN",t.REACT_SDK="REACT_SDK",t.SOLANA_WALLET_ADAPTER="SOLANA_WALLET_ADAPTER"})(b||(b={}));class Z{constructor(n,e){this.validatedOrigin=n,this.targetWindow=e,this.handlers=new Map}off(n,e){const r=this.handlers.get(n);r?.delete(e)}on(n,e){var r;const s=(r=this.handlers.get(n))!==null&&r!==void 0?r:new Set;s.add(e),this.handlers.set(n,s)}send({event:n,payload:e}){this.targetWindow.postMessage({event:n,payload:e},this.validatedOrigin)}runHandlersForEvent(n,e){const r=this.handlers.get(n);if(r)for(const s of r)s(e)}resetHandlers(){this.handlers.clear()}export(){return{off:this.off.bind(this),on:this.on.bind(this),send:this.send.bind(this),validatedOrigin:this.validatedOrigin}}}const ee="https://fractal.is",ne="https://www.fractal.is",te=400,P=600;function re(t){return t===ne||t===ee}const ie="fractal:approval:popup",oe=["resizable","scrollbars=1","status=1"];function se({left:t=0,scope:n=window,top:e=0,width:r=P,height:s=P,url:l}){return n.open(l,ie,ae({height:s,left:t,top:e,width:r}))}function ae({height:t,left:n,top:e,width:r}){return["popup",`left=${n}`,`top=${e}`,`width=${r}`,`height=${t}`,...oe].join(",")}class le{constructor(n){this.platform=n,this.connection=null,this.popupWindow=null,this.handleMessage=e=>{var r,s;if(!re(e.origin))return;const l=e.origin;if(this.popupWindow){if(e.data.event===c.HANDSHAKE&&!this.connection){if(!this.verifyAndResetNonce((r=e.data.payload)===null||r===void 0?void 0:r.nonce))return;this.popupWindow.postMessage({event:c.HANDSHAKE_ACK,payload:{platform:this.platform}},l),this.connection=new Z(l,this.popupWindow),(s=this.connectionUpdatedCallback)===null||s===void 0||s.call(this,this.connection)}this.connection&&(this.connection.runHandlersForEvent(e.data.event,e.data.payload),e.data.event===c.POPUP_CLOSED&&this.connection&&(this.resetConnection(),this.popupWindow=null))}}}initialize(){return window.addEventListener("message",this.handleMessage),this}tearDown(){return window.removeEventListener("message",this.handleMessage),this.resetConnection(),this}async open({url:n,widthPx:e=te,heightPx:r=P,nonce:s}){var l;if(!((l=this.popupWindow)===null||l===void 0)&&l.closed&&this.resetConnectionAndPopupWindow(),this.popupWindow)return;this.initialize(),s&&(this.nonce=s);const u=window.screenX+(window.innerWidth-e)/2,d=window.screenY+(window.innerHeight-r)/2;this.popupWindow=se({height:r,left:u,top:d,url:typeof n=="string"?n:void 0,width:e}),n instanceof Promise&&this.setUrl(await n)}close(){this.popupWindow&&(this.popupWindow.close(),this.resetConnectionAndPopupWindow())}onConnectionUpdated(n){return this.connectionUpdatedCallback=n,this}getConnection(){return this.connection}setUrl(n){this.popupWindow&&(this.popupWindow.location=n)}resetConnectionAndPopupWindow(){this.resetConnection(),this.popupWindow=null}resetConnection(){var n,e;(n=this.connection)===null||n===void 0||n.resetHandlers(),this.connection=null,(e=this.connectionUpdatedCallback)===null||e===void 0||e.call(this,this.connection)}verifyAndResetNonce(n){if(!this.nonce)return!0;const e=n===this.nonce;return e&&(this.nonce=void 0),e}}V();function m(t){return!(t===null||typeof t!="object")}function ce(t){return!(!m(t)||!("solanaPublicKey"in t)||typeof t.solanaPublicKey!="string")}function de(t){return!m(t)||!("signedB58Transactions"in t)||!Array.isArray(t.signedB58Transactions)?!1:t.signedB58Transactions.every(n=>typeof n=="string")}function he(t){return!m(t)||!("decodedSignature"in t)?!1:typeof t.decodedSignature=="string"}var M,$;function Ae(){if($)return M;$=1;function t(n){if(n.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),r=0;r<e.length;r++)e[r]=255;for(var s=0;s<n.length;s++){var l=n.charAt(s),u=l.charCodeAt(0);if(e[u]!==255)throw new TypeError(l+" is ambiguous");e[u]=s}var d=n.length,i=n.charAt(0),o=Math.log(d)/Math.log(256),h=Math.log(256)/Math.log(d);function D(a){if(a instanceof Uint8Array||(ArrayBuffer.isView(a)?a=new Uint8Array(a.buffer,a.byteOffset,a.byteLength):Array.isArray(a)&&(a=Uint8Array.from(a))),!(a instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(a.length===0)return"";for(var p=0,N=0,f=0,g=a.length;f!==g&&a[f]===0;)f++,p++;for(var _=(g-f)*h+1>>>0,S=new Uint8Array(_);f!==g;){for(var A=a[f],w=0,T=_-1;(A!==0||w<N)&&T!==-1;T--,w++)A+=256*S[T]>>>0,S[T]=A%d>>>0,A=A/d>>>0;if(A!==0)throw new Error("Non-zero carry");N=w,f++}for(var E=_-N;E!==_&&S[E]===0;)E++;for(var O=i.repeat(p);E<_;++E)O+=n.charAt(S[E]);return O}function G(a){if(typeof a!="string")throw new TypeError("Expected String");if(a.length===0)return new Uint8Array;for(var p=0,N=0,f=0;a[p]===i;)N++,p++;for(var g=(a.length-p)*o+1>>>0,_=new Uint8Array(g);a[p];){var S=a.charCodeAt(p);if(S>255)return;var A=e[S];if(A===255)return;for(var w=0,T=g-1;(A!==0||w<f)&&T!==-1;T--,w++)A+=d*_[T]>>>0,_[T]=A%256>>>0,A=A/256>>>0;if(A!==0)throw new Error("Non-zero carry");f=w,p++}for(var E=g-f;E!==g&&_[E]===0;)E++;for(var O=new Uint8Array(N+(g-E)),J=N;E!==g;)O[J++]=_[E++];return O}function q(a){var p=G(a);if(p)return p;throw new Error("Non-base"+d+" character")}return{encode:D,decodeUnsafe:G,decode:q}}return M=t,M}var C,x;function Ee(){return x||(x=1,C=Ae()("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")),C}var pe=Ee();const B=X(pe);function I(){return`${U()}${U()}${U()}`}function U(){return(Math.random()+1).toString(36).substring(7)}const L="Unknown Error",W="https://fractal.is",ue=`${W}/wallet-adapter/approve`,fe=`${W}/wallet-adapter/sign`,ge=`${W}/wallet-adapter/sign/message`,k=P,z=850,y="RdxqNYxF";class ve{constructor(){this.popupManager=new le(b.SOLANA_WALLET_ADAPTER),this.publicKey=null,this.connecting=!1}getPublicKey(){return this.publicKey}async connect(){let n,e;const r=window.localStorage.getItem(y);if(r)return this.publicKey=new K(r),Promise.resolve();const s=I();this.popupManager.open({nonce:s,url:`${ue}/${s}`});const l=i=>{if(!ce(i)){e(new v(`Malformed payload when setting up connection. Expected { solanaPublicKey: string } but received ${JSON.stringify(i)}`)),this.popupManager.close();return}try{this.publicKey=new K(i.solanaPublicKey),window.localStorage.setItem(y,i.solanaPublicKey),n()}catch(o){const h=new Q(o instanceof Error?o.message:L,o);e(h)}this.popupManager.close()},u=()=>{e(new v("The user denied the connection.")),this.popupManager.close()},d=()=>{e(new v("The user denied the connection.")),this.popupManager.close()};return this.popupManager.onConnectionUpdated(i=>{i&&(i.on(c.SOLANA_WALLET_ADAPTER_APPROVED,l),i.on(c.SOLANA_WALLET_ADAPTER_DENIED,u),i.on(c.POPUP_CLOSED,d))}),new Promise((i,o)=>{n=i,e=o})}async disconnect(){this.popupManager.tearDown(),this.publicKey=null,window.localStorage.removeItem(y)}async signTransaction(n){try{return this.checkWalletReadiness(),(await this.signTransactions([n]))[0]}catch(e){let r=e;throw e instanceof H||(r=new R(e instanceof Error?e.message:L,e)),r}}async signAllTransactions(n){try{return this.checkWalletReadiness(),await this.signTransactions(n)}catch(e){let r=e;throw e instanceof H||(r=new R(e instanceof Error?e.message:L,e)),r}}async signMessage(n){const e=new TextDecoder().decode(n);let r,s;const l=o=>{if(!he(o)){const D=new F(`Malformed payload when signing message. Expected { decodedSignature: string } but received ${JSON.stringify(o)}`);s(D),this.popupManager.close();return}const h=Uint8Array.from(o.decodedSignature.split(",").map(D=>Number(D)));r(h),this.popupManager.close()},u=()=>{s(new F("The user did not approve the message")),this.popupManager.close()},d=()=>{var o;const h={decodedMessage:e};(o=this.popupManager.getConnection())===null||o===void 0||o.send({event:c.MESSAGE_SIGNATURE_NEEDED,payload:h})},i=I();return this.popupManager.open({heightPx:Math.max(k,Math.floor(window.innerHeight*.8)),nonce:i,url:`${ge}/${i}`,widthPx:Math.min(z,Math.floor(window.innerWidth*.8))}),this.popupManager.onConnectionUpdated(o=>{o&&(o.on(c.MESSAGE_SIGNATURE_NEEDED_RESPONSE,l),o.on(c.TRANSACTION_DENIED,u),o.on(c.POPUP_CLOSED,u),o.on(c.AUTH_LOADED,d))}),new Promise((o,h)=>{r=o,s=h})}async signTransactions(n){let e,r;const s=i=>{if(!de(i)){const h=new R(`Malformed payload when signing transactions. Expected { signedB58Transactions: string[] } but received ${JSON.stringify(i)}`);r(h),this.popupManager.close();return}const o=i.signedB58Transactions.map(h=>j.from(B.decode(h)));e(o),this.popupManager.close()},l=()=>{r(new R("The user did not approve the transaction")),this.popupManager.close()},u=()=>{var i;const o={unsignedB58Transactions:n.map(h=>B.encode(h.serializeMessage()))};(i=this.popupManager.getConnection())===null||i===void 0||i.send({event:c.TRANSACTION_SIGNATURE_NEEDED,payload:o})},d=I();return this.popupManager.open({heightPx:Math.max(k,Math.floor(window.innerHeight*.8)),nonce:d,url:`${fe}/${d}`,widthPx:Math.min(z,Math.floor(window.innerWidth*.8))}),this.popupManager.onConnectionUpdated(i=>{i&&(i.on(c.TRANSACTION_SIGNATURE_NEEDED_RESPONSE,s),i.on(c.TRANSACTION_DENIED,l),i.on(c.POPUP_CLOSED,l),i.on(c.AUTH_LOADED,u))}),new Promise((i,o)=>{e=i,r=o})}checkWalletReadiness(){if(this.publicKey===null)throw new Y("`publicKey` is null. Did you forget to call `.connect()`?")}}export{ve as FractalWalletAdapterImpl};
|
|
@@ -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-C-BFvYVr.js";import{q as f,Q as u}from"./qrart-OJbjb8K7.js";import{s as b}from"./service-DTq1JX0u.js";import{m as S}from"./merge-C5jDS2au.js";import"./vendor-vue-C5BV5QrY.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-dayjs-Cvgzdobq.js";import"./vendor-vue-router-Bl-Po99g.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{M as S,U as T,L as M,H as A,I as y,z as w,K as j,T as z,y as V,bm as L,N as U,bw as W,R as G,a_ as q,A as Q}from"./index-
|
|
1
|
+
import{M as S,U as T,L as M,H as A,I as y,z as w,K as j,T as z,y as V,bm as L,N as U,bw as W,R as G,a_ as q,A as Q}from"./index-C-BFvYVr.js";import{m as R}from"./typescript-BM7P3jg4.js";import{S as J,g as X,b as K,w as Y,c as d,p as Z,W as k,d as E,q as g,H as D,z as _,Q as f,u as e,i as ee,E as h,I as se,F as te,C as x,y as P,x as ae,V as oe,U as le,M as ne,G as ie,L as ce}from"./vendor-vue-C5BV5QrY.js";import{c as $}from"./castArray-CnoZia7q.js";import{E as re}from"./index-CX47aqSL.js";const B=t=>M(t)||J(t)||X(t),de=A({accordion:Boolean,modelValue:{type:y([Array,String,Number]),default:()=>R([])},expandIconPosition:{type:y([String]),default:"right"},beforeCollapse:{type:y(Function)}}),ue={[T]:B,[S]:B},F=Symbol("collapseContextKey"),pe="ElCollapse",me=(t,n)=>{const a=K($(t.modelValue)),i=o=>{a.value=o;const l=t.accordion?a.value[0]:a.value;n(T,l),n(S,l)},s=o=>{if(t.accordion)i([a.value[0]===o?"":o]);else{const l=[...a.value],r=l.indexOf(o);r>-1?l.splice(r,1):l.push(o),i(l)}},c=async o=>{const{beforeCollapse:l}=t;if(!l){s(o);return}const r=l(o);[k(r),j(r)].includes(!0)||z(pe,"beforeCollapse must return type `Promise<boolean>` or `boolean`"),k(r)?r.then(p=>{p!==!1&&s(o)}).catch(p=>{}):r&&s(o)};return Y(()=>t.modelValue,()=>a.value=$(t.modelValue),{deep:!0}),Z(F,{activeNames:a,handleItemClick:c}),{activeNames:a,setActiveNames:i}},fe=t=>{const n=w("collapse");return{rootKls:d(()=>[n.b(),n.b(`icon-position-${t.expandIconPosition}`)])}},ve=E({name:"ElCollapse"}),Ce=E({...ve,props:de,emits:ue,setup(t,{expose:n,emit:a}){const i=t,{activeNames:s,setActiveNames:c}=me(i,a),{rootKls:o}=fe(i);return n({activeNames:s,setActiveNames:c}),(l,r)=>(g(),D("div",{class:f(e(o))},[_(l.$slots,"default")],2))}});var be=V(Ce,[["__file","collapse.vue"]]);const he=A({title:{type:String,default:""},name:{type:y([String,Number]),default:void 0},icon:{type:U,default:L},disabled:Boolean}),ye=t=>{const n=ee(F),{namespace:a}=w("collapse"),i=K(!1),s=K(!1),c=W(),o=d(()=>c.current++),l=d(()=>{var u;return(u=t.name)!=null?u:`${a.value}-id-${c.prefix}-${e(o)}`}),r=d(()=>n?.activeNames.value.includes(e(l)));return{focusing:i,id:o,isActive:r,handleFocus:()=>{setTimeout(()=>{s.value?s.value=!1:i.value=!0},50)},handleHeaderClick:u=>{if(t.disabled)return;const m=u.target;m?.closest("input, textarea, select")||(n?.handleItemClick(e(l)),i.value=!1,s.value=!0)},handleEnterClick:u=>{const m=u.target;m?.closest("input, textarea, select")||(u.preventDefault(),n?.handleItemClick(e(l)))}}},_e=(t,{focusing:n,isActive:a,id:i})=>{const s=w("collapse"),c=d(()=>[s.b("item"),s.is("active",e(a)),s.is("disabled",t.disabled)]),o=d(()=>[s.be("item","header"),s.is("active",e(a)),{focusing:e(n)&&!t.disabled}]),l=d(()=>[s.be("item","arrow"),s.is("active",e(a))]),r=d(()=>[s.be("item","title")]),C=d(()=>s.be("item","wrap")),p=d(()=>s.be("item","content")),b=d(()=>s.b(`content-${e(i)}`)),u=d(()=>s.b(`head-${e(i)}`));return{itemTitleKls:r,arrowKls:l,headKls:o,rootKls:c,itemWrapperKls:C,itemContentKls:p,scopedContentId:b,scopedHeadId:u}},Ee=E({name:"ElCollapseItem"}),Ie=E({...Ee,props:he,setup(t,{expose:n}){const a=t,{focusing:i,id:s,isActive:c,handleFocus:o,handleHeaderClick:l,handleEnterClick:r}=ye(a),{arrowKls:C,headKls:p,rootKls:b,itemTitleKls:u,itemWrapperKls:m,itemContentKls:O,scopedContentId:I,scopedHeadId:N}=_e(a,{focusing:i,isActive:c,id:s});return n({isActive:c}),(v,Ke)=>(g(),D("div",{class:f(e(b))},[h("div",{id:e(N),class:f(e(p)),"aria-expanded":e(c),"aria-controls":e(I),"aria-describedby":e(I),tabindex:v.disabled?-1:0,role:"button",onClick:e(l),onKeydown:le(ne(e(r),["stop"]),["space","enter"]),onFocus:e(o),onBlur:ge=>i.value=!1},[h("span",{class:f(e(u))},[_(v.$slots,"title",{isActive:e(c)},()=>[se(te(v.title),1)])],2),_(v.$slots,"icon",{isActive:e(c)},()=>[x(e(G),{class:f(e(C))},{default:P(()=>[(g(),ae(oe(v.icon)))]),_:1},8,["class"])])],42,["id","aria-expanded","aria-controls","aria-describedby","tabindex","onClick","onKeydown","onFocus","onBlur"]),x(e(re),null,{default:P(()=>[ie(h("div",{id:e(I),role:"region",class:f(e(m)),"aria-hidden":!e(c),"aria-labelledby":e(N)},[h("div",{class:f(e(O))},[_(v.$slots,"default")],2)],10,["id","aria-hidden","aria-labelledby"]),[[ce,e(c)]])]),_:3})],2))}});var H=V(Ie,[["__file","collapse-item.vue"]]);const $e=Q(be,{CollapseItem:H}),Be=q(H);export{Be as E,$e as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{y as c,z as i,a_ as p,A as b}from"./index-
|
|
1
|
+
import{y as c,z as i,a_ as p,A as b}from"./index-C-BFvYVr.js";import{d as n,X as w,q as u,H as _,z as d,Q as f,u as s,c as h,R as m}from"./vendor-vue-C5BV5QrY.js";const k=n({name:"ElContainer"}),z=n({...k,props:{direction:{type:String}},setup(o){const t=o,e=w(),a=i("container"),r=h(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:e&&e.default?e.default().some(v=>{const g=v.type.name;return g==="ElHeader"||g==="ElFooter"}):!1);return(l,v)=>(u(),_("section",{class:f([s(a).b(),s(a).is("vertical",s(r))])},[d(l.$slots,"default")],2))}});var B=c(z,[["__file","container.vue"]]);const C=n({name:"ElAside"}),H=n({...C,props:{width:{type:String,default:null}},setup(o){const t=o,e=i("aside"),a=h(()=>t.width?e.cssVarBlock({width:t.width}):{});return(r,l)=>(u(),_("aside",{class:f(s(e).b()),style:m(s(a))},[d(r.$slots,"default")],6))}});var y=c(H,[["__file","aside.vue"]]);const F=n({name:"ElFooter"}),N=n({...F,props:{height:{type:String,default:null}},setup(o){const t=o,e=i("footer"),a=h(()=>t.height?e.cssVarBlock({height:t.height}):{});return(r,l)=>(u(),_("footer",{class:f(s(e).b()),style:m(s(a))},[d(r.$slots,"default")],6))}});var E=c(N,[["__file","footer.vue"]]);const V=n({name:"ElHeader"}),A=n({...V,props:{height:{type:String,default:null}},setup(o){const t=o,e=i("header"),a=h(()=>t.height?e.cssVarBlock({height:t.height}):{});return(r,l)=>(u(),_("header",{class:f(s(e).b()),style:m(s(a))},[d(r.$slots,"default")],6))}});var $=c(A,[["__file","header.vue"]]);const M=n({name:"ElMain"}),x=n({...M,setup(o){const t=i("main");return(e,a)=>(u(),_("main",{class:f(s(t).b())},[d(e.$slots,"default")],2))}});var S=c(x,[["__file","main.vue"]]);const Q=b(B,{Aside:y,Footer:E,Header:$,Main:S});p(y);const R=p(E),X=p($),j=p(S);export{j as E,Q as a,X as b,R as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bK as Re,c5 as fe,bI as ce,c6 as Oe,b$ as $e,H as X,I as W,y as be,T as re,z as Y,a1 as ae,R as H,bl as xe,bm as Be,aN as L,$ as ke,bN as Ae,U as ve,L as Le,c7 as ue,a_ as Fe,A as ze}from"./index-Bn7YDYmR.js";import{m as ne,a as se,d as Me,e as Ve}from"./typescript-CoAxGsjg.js";import{c as F}from"./strings-DGr9fDRd.js";import{d as V,h as Ie,aq as q,o as me,a as oe,a8 as De,i as ie,w as D,a6 as pe,q as he,H as ge,R as Ke,Q as _e,u as B,b as P,n as j,ah as Ue,C as m,c as K,z as le,S as Ge,k as ye,p as He,X as qe,r as We,ar as je,G as Xe,L as Ye,J as Je}from"./vendor-vue-C5BV5QrY.js";import{g as Qe,b as Ze}from"./_baseClone-Bh3JK93r.js";import{c as et}from"./_initCloneObject-1g0v6DQg.js";import{i as tt}from"./isPlainObject-DyQHv-ss.js";import{f as at}from"./index-BfRP23SC.js";function nt(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(a);++r<a;)s[r]=e[r+t];return s}function st(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function ot(e,t){return t.length<2?e:Re(e,nt(t,0,-1))}var lt=Object.prototype,rt=lt.hasOwnProperty;function it(e,t){t=fe(t,e);var n=-1,r=t.length;if(!r)return!0;for(;++n<r;){var a=ce(t[n]);if(a==="__proto__"&&!rt.call(e,"__proto__")||(a==="constructor"||a==="prototype")&&n<r-1)return!1}var s=ot(e,t);return s==null||delete s[ce(st(t))]}function ct(e){return tt(e)?void 0:e}var ut=1,dt=2,ft=4,bt=at(function(e,t){var n={};if(e==null)return n;var r=!1;t=Oe(t,function(s){return s=fe(s,e),r||(r=s.length>1),s}),et(e,Qe(e),n),r&&(n=Ze(n,ut|dt|ft,ct));for(var a=t.length;a--;)it(n,t[a]);return n});const vt=(e,t,n)=>$e(e.subTree).filter(s=>{var T;return De(s)&&((T=s.type)==null?void 0:T.name)===t&&!!s.component}).map(s=>s.component.uid).map(s=>n[s]).filter(s=>!!s),mt=(e,t)=>{const n=oe({}),r=oe([]),a=new WeakMap,s=v=>{n.value[v.uid]=v,q(n),me(()=>{const d=v.getVnode().el,o=d.parentNode;if(!a.has(o)){a.set(o,[]);const f=o.insertBefore.bind(o);o.insertBefore=(_,u)=>(a.get(o).some(N=>_===N||u===N)&&q(n),f(_,u))}a.get(o).push(d)})},T=v=>{delete n.value[v.uid],q(n);const d=v.getVnode().el,o=d.parentNode,f=a.get(o),_=f.indexOf(d);f.splice(_,1)},p=()=>{r.value=vt(e,t,n.value)},g=v=>v.render(),h=V({setup(v,{slots:d}){return()=>(p(),d.default?Ie(g,{render:d.default}):null)}});return{children:r,addChild:s,removeChild:T,ChildrenSorter:h}},J=Symbol("tabsRootContextKey"),pt=X({tabs:{type:W(Array),default:()=>ne([])},tabRefs:{type:W(Object),default:()=>ne({})}}),Ne="ElTabBar",ht=V({name:Ne}),gt=V({...ht,props:pt,setup(e,{expose:t}){const n=e,r=ie(J);r||re(Ne,"<el-tabs><el-tab-bar /></el-tabs>");const a=Y("tabs"),s=P(),T=P(),p=()=>{let o=0,f=0;const _=["top","bottom"].includes(r.props.tabPosition)?"width":"height",u=_==="width"?"x":"y",R=u==="x"?"left":"top";return n.tabs.every(N=>{if(ae(N.paneName))return!1;const i=n.tabRefs[N.paneName];if(!i)return!1;if(!N.active)return!0;o=i[`offset${F(R)}`],f=i[`client${F(_)}`];const C=window.getComputedStyle(i);return _==="width"&&(f-=Number.parseFloat(C.paddingLeft)+Number.parseFloat(C.paddingRight),o+=Number.parseFloat(C.paddingLeft)),!1}),{[_]:`${f}px`,transform:`translate${F(u)}(${o}px)`}},g=()=>T.value=p(),h=[],v=()=>{h.forEach(o=>o.stop()),h.length=0,Object.values(n.tabRefs).forEach(o=>{h.push(se(o,g))})};D(()=>n.tabs,async()=>{await j(),g(),v()},{immediate:!0});const d=se(s,()=>g());return pe(()=>{h.forEach(o=>o.stop()),h.length=0,d.stop()}),t({ref:s,update:g}),(o,f)=>(he(),ge("div",{ref_key:"barRef",ref:s,class:_e([B(a).e("active-bar"),B(a).is(B(r).props.tabPosition)]),style:Ke(T.value)},null,6))}});var _t=be(gt,[["__file","tab-bar.vue"]]);const yt=X({panes:{type:W(Array),default:()=>ne([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),Nt={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},de="ElTabNav",Ct=V({name:de,props:yt,emits:Nt,setup(e,{expose:t,emit:n}){const r=ie(J);r||re(de,"<el-tabs><tab-nav /></el-tabs>");const a=Y("tabs"),s=Me(),T=Ve(),p=P(),g=P(),h=P(),v=P({}),d=P(),o=P(!1),f=P(0),_=P(!1),u=P(!0),R=oe(),N=K(()=>["top","bottom"].includes(r.props.tabPosition)?"width":"height"),i=K(()=>({transform:`translate${N.value==="width"?"X":"Y"}(-${f.value}px)`})),C=()=>{if(!p.value)return;const c=p.value[`offset${F(N.value)}`],b=f.value;if(!b)return;const l=b>c?b-c:0;f.value=l},S=()=>{if(!p.value||!g.value)return;const c=g.value[`offset${F(N.value)}`],b=p.value[`offset${F(N.value)}`],l=f.value;if(c-l<=b)return;const w=c-l>b*2?l+b:c-b;f.value=w},k=async()=>{const c=g.value;if(!o.value||!h.value||!p.value||!c)return;await j();const b=v.value[e.currentName];if(!b)return;const l=p.value,w=["top","bottom"].includes(r.props.tabPosition),y=b.getBoundingClientRect(),E=l.getBoundingClientRect(),U=w?c.offsetWidth-E.width:c.offsetHeight-E.height,A=f.value;let $=A;w?(y.left<E.left&&($=A-(E.left-y.left)),y.right>E.right&&($=A+y.right-E.right)):(y.top<E.top&&($=A-(E.top-y.top)),y.bottom>E.bottom&&($=A+(y.bottom-E.bottom))),$=Math.max($,0),f.value=Math.min($,U)},z=()=>{var c;if(!g.value||!p.value)return;e.stretch&&((c=d.value)==null||c.update());const b=g.value[`offset${F(N.value)}`],l=p.value[`offset${F(N.value)}`],w=f.value;l<b?(o.value=o.value||{},o.value.prev=w,o.value.next=w+l<b,b-w<l&&(f.value=b-l)):(o.value=!1,w>0&&(f.value=0))},I=c=>{let b=0;switch(c.code){case L.left:case L.up:b=-1;break;case L.right:case L.down:b=1;break;default:return}const l=Array.from(c.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let y=l.indexOf(c.target)+b;y<0?y=l.length-1:y>=l.length&&(y=0),l[y].focus({preventScroll:!0}),l[y].click(),M()},M=()=>{u.value&&(_.value=!0)},O=()=>_.value=!1,Q=(c,b)=>{v.value[b]=c},Te=async()=>{await j();const c=v.value[e.currentName];c?.focus({preventScroll:!0})};return D(s,c=>{c==="hidden"?u.value=!1:c==="visible"&&setTimeout(()=>u.value=!0,50)}),D(T,c=>{c?setTimeout(()=>u.value=!0,50):u.value=!1}),se(h,z),me(()=>setTimeout(()=>k(),0)),Ue(()=>z()),t({scrollToActiveTab:k,removeFocus:O,focusActiveTab:Te,tabListRef:g,tabBarRef:d,scheduleRender:()=>q(R)}),()=>{const c=o.value?[m("span",{class:[a.e("nav-prev"),a.is("disabled",!o.value.prev)],onClick:C},[m(H,null,{default:()=>[m(xe,null,null)]})]),m("span",{class:[a.e("nav-next"),a.is("disabled",!o.value.next)],onClick:S},[m(H,null,{default:()=>[m(Be,null,null)]})])]:null,b=e.panes.map((l,w)=>{var y,E,U,A;const $=l.uid,Z=l.props.disabled,G=(E=(y=l.props.name)!=null?y:l.index)!=null?E:`${w}`,ee=!Z&&(l.isClosable||e.editable);l.index=`${w}`;const we=ee?m(H,{class:"is-icon-close",onClick:x=>n("tabRemove",l,x)},{default:()=>[m(ke,null,null)]}):null,Ee=((A=(U=l.slots).label)==null?void 0:A.call(U))||l.props.label,Se=!Z&&l.active?0:-1;return m("div",{ref:x=>Q(x,G),class:[a.e("item"),a.is(r.props.tabPosition),a.is("active",l.active),a.is("disabled",Z),a.is("closable",ee),a.is("focus",_.value)],id:`tab-${G}`,key:`tab-${$}`,"aria-controls":`pane-${G}`,role:"tab","aria-selected":l.active,tabindex:Se,onFocus:()=>M(),onBlur:()=>O(),onClick:x=>{O(),n("tabClick",l,G,x)},onKeydown:x=>{ee&&(x.code===L.delete||x.code===L.backspace)&&n("tabRemove",l,x)}},[Ee,we])});return R.value,m("div",{ref:h,class:[a.e("nav-wrap"),a.is("scrollable",!!o.value),a.is(r.props.tabPosition)]},[c,m("div",{class:a.e("nav-scroll"),ref:p},[e.panes.length>0?m("div",{class:[a.e("nav"),a.is(r.props.tabPosition),a.is("stretch",e.stretch&&["top","bottom"].includes(r.props.tabPosition))],ref:g,style:i.value,role:"tablist",onKeydown:I},[e.type?null:m(_t,{ref:d,tabs:[...e.panes],tabRefs:v.value},null),b]):null])])}}}),Pt=X({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:W(Function),default:()=>!0},stretch:Boolean}),te=e=>Ge(e)||Le(e),Tt={[ve]: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},wt=V({name:"ElTabs",props:Pt,emits:Tt,setup(e,{emit:t,slots:n,expose:r}){var a;const s=Y("tabs"),T=K(()=>["left","right"].includes(e.tabPosition)),{children:p,addChild:g,removeChild:h,ChildrenSorter:v}=mt(ye(),"ElTabPane"),d=P(),o=P((a=e.modelValue)!=null?a:"0"),f=async(i,C=!1)=>{var S,k,z,I;if(!(o.value===i||ae(i)))try{let M;if(e.beforeLeave){const O=e.beforeLeave(i,o.value);M=O instanceof Promise?await O:O}else M=!0;if(M!==!1){const O=(S=p.value.find(Q=>Q.paneName===o.value))==null?void 0:S.isFocusInsidePane();o.value=i,C&&(t(ve,i),t("tabChange",i)),(z=(k=d.value)==null?void 0:k.removeFocus)==null||z.call(k),O&&((I=d.value)==null||I.focusActiveTab())}}catch{}},_=(i,C,S)=>{i.props.disabled||(t("tabClick",i,S),f(C,!0))},u=(i,C)=>{i.props.disabled||ae(i.props.name)||(C.stopPropagation(),t("edit",i.props.name,"remove"),t("tabRemove",i.props.name))},R=()=>{t("edit",void 0,"add"),t("tabAdd")},N=i=>{const C=i.el.firstChild,S=["bottom","right"].includes(e.tabPosition)?i.children[0].el:i.children[1].el;C!==S&&C.before(S)};return D(()=>e.modelValue,i=>f(i)),D(o,async()=>{var i;await j(),(i=d.value)==null||i.scrollToActiveTab()}),He(J,{props:e,currentName:o,registerPane:g,unregisterPane:h,nav$:d}),r({currentName:o,get tabNavRef(){return bt(d.value,["scheduleRender"])}}),()=>{const i=n["add-icon"],C=e.editable||e.addable?m("div",{class:[s.e("new-tab"),T.value&&s.e("new-tab-vertical")],tabindex:"0",onClick:R,onKeydown:I=>{[L.enter,L.numpadEnter].includes(I.code)&&R()}},[i?le(n,"add-icon"):m(H,{class:s.is("icon-plus")},{default:()=>[m(Ae,null,null)]})]):null,S=()=>m(Ct,{ref:d,currentName:o.value,editable:e.editable,type:e.type,panes:p.value,stretch:e.stretch,onTabClick:_,onTabRemove:u},null),k=m("div",{class:[s.e("header"),T.value&&s.e("header-vertical"),s.is(e.tabPosition)]},[m(v,null,{default:S,$stable:!0}),C]),z=m("div",{class:s.e("content")},[le(n,"default")]);return m("div",{class:[s.b(),s.m(e.tabPosition),{[s.m("card")]:e.type==="card",[s.m("border-card")]:e.type==="border-card"}],onVnodeMounted:N,onVnodeUpdated:N},[z,k])}}});var Et=wt;const St=X({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),Ce="ElTabPane",Rt=V({name:Ce}),Ot=V({...Rt,props:St,setup(e){const t=e,n=ye(),r=qe(),a=ie(J);a||re(Ce,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const s=Y("tab-pane"),T=P(),p=P(),g=K(()=>t.closable||a.props.closable),h=ue(()=>{var u;return a.currentName.value===((u=t.name)!=null?u:p.value)}),v=P(h.value),d=K(()=>{var u;return(u=t.name)!=null?u:p.value}),o=ue(()=>!t.lazy||v.value||h.value),f=()=>{var u;return(u=T.value)==null?void 0:u.contains(document.activeElement)};D(h,u=>{u&&(v.value=!0)});const _=We({uid:n.uid,getVnode:()=>n.vnode,slots:r,props:t,paneName:d,active:h,index:p,isClosable:g,isFocusInsidePane:f});return a.registerPane(_),pe(()=>{a.unregisterPane(_)}),je(()=>{var u;r.label&&((u=a.nav$.value)==null||u.scheduleRender())}),(u,R)=>B(o)?Xe((he(),ge("div",{key:0,id:`pane-${B(d)}`,ref_key:"paneRef",ref:T,class:_e(B(s).b()),role:"tabpanel","aria-hidden":!B(h),"aria-labelledby":`tab-${B(d)}`},[le(u.$slots,"default")],10,["id","aria-hidden","aria-labelledby"])),[[Ye,B(h)]]):Je("v-if",!0)}});var Pe=be(Ot,[["__file","tab-pane.vue"]]);const Mt=ze(Et,{TabPane:Pe}),Vt=Fe(Pe);export{Vt as E,Mt as a};
|
|
1
|
+
import{bK as Re,c5 as fe,bI as ce,c6 as Oe,b$ as $e,H as X,I as W,y as be,T as re,z as Y,a1 as ae,R as H,bl as xe,bm as Be,aN as L,$ as ke,bN as Ae,U as ve,L as Le,c7 as ue,a_ as Fe,A as ze}from"./index-C-BFvYVr.js";import{m as ne,a as se,d as Me,e as Ve}from"./typescript-BM7P3jg4.js";import{c as F}from"./strings-DGr9fDRd.js";import{d as V,h as Ie,aq as q,o as me,a as oe,a8 as De,i as ie,w as D,a6 as pe,q as he,H as ge,R as Ke,Q as _e,u as B,b as P,n as j,ah as Ue,C as m,c as K,z as le,S as Ge,k as ye,p as He,X as qe,r as We,ar as je,G as Xe,L as Ye,J as Je}from"./vendor-vue-C5BV5QrY.js";import{g as Qe,b as Ze}from"./_baseClone-BZXxYXdF.js";import{c as et}from"./_initCloneObject-B2kwKJ_I.js";import{i as tt}from"./isPlainObject-UHNWDVqK.js";import{f as at}from"./index-CZmMZPJB.js";function nt(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(a);++r<a;)s[r]=e[r+t];return s}function st(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function ot(e,t){return t.length<2?e:Re(e,nt(t,0,-1))}var lt=Object.prototype,rt=lt.hasOwnProperty;function it(e,t){t=fe(t,e);var n=-1,r=t.length;if(!r)return!0;for(;++n<r;){var a=ce(t[n]);if(a==="__proto__"&&!rt.call(e,"__proto__")||(a==="constructor"||a==="prototype")&&n<r-1)return!1}var s=ot(e,t);return s==null||delete s[ce(st(t))]}function ct(e){return tt(e)?void 0:e}var ut=1,dt=2,ft=4,bt=at(function(e,t){var n={};if(e==null)return n;var r=!1;t=Oe(t,function(s){return s=fe(s,e),r||(r=s.length>1),s}),et(e,Qe(e),n),r&&(n=Ze(n,ut|dt|ft,ct));for(var a=t.length;a--;)it(n,t[a]);return n});const vt=(e,t,n)=>$e(e.subTree).filter(s=>{var T;return De(s)&&((T=s.type)==null?void 0:T.name)===t&&!!s.component}).map(s=>s.component.uid).map(s=>n[s]).filter(s=>!!s),mt=(e,t)=>{const n=oe({}),r=oe([]),a=new WeakMap,s=v=>{n.value[v.uid]=v,q(n),me(()=>{const d=v.getVnode().el,o=d.parentNode;if(!a.has(o)){a.set(o,[]);const f=o.insertBefore.bind(o);o.insertBefore=(_,u)=>(a.get(o).some(N=>_===N||u===N)&&q(n),f(_,u))}a.get(o).push(d)})},T=v=>{delete n.value[v.uid],q(n);const d=v.getVnode().el,o=d.parentNode,f=a.get(o),_=f.indexOf(d);f.splice(_,1)},p=()=>{r.value=vt(e,t,n.value)},g=v=>v.render(),h=V({setup(v,{slots:d}){return()=>(p(),d.default?Ie(g,{render:d.default}):null)}});return{children:r,addChild:s,removeChild:T,ChildrenSorter:h}},J=Symbol("tabsRootContextKey"),pt=X({tabs:{type:W(Array),default:()=>ne([])},tabRefs:{type:W(Object),default:()=>ne({})}}),Ne="ElTabBar",ht=V({name:Ne}),gt=V({...ht,props:pt,setup(e,{expose:t}){const n=e,r=ie(J);r||re(Ne,"<el-tabs><el-tab-bar /></el-tabs>");const a=Y("tabs"),s=P(),T=P(),p=()=>{let o=0,f=0;const _=["top","bottom"].includes(r.props.tabPosition)?"width":"height",u=_==="width"?"x":"y",R=u==="x"?"left":"top";return n.tabs.every(N=>{if(ae(N.paneName))return!1;const i=n.tabRefs[N.paneName];if(!i)return!1;if(!N.active)return!0;o=i[`offset${F(R)}`],f=i[`client${F(_)}`];const C=window.getComputedStyle(i);return _==="width"&&(f-=Number.parseFloat(C.paddingLeft)+Number.parseFloat(C.paddingRight),o+=Number.parseFloat(C.paddingLeft)),!1}),{[_]:`${f}px`,transform:`translate${F(u)}(${o}px)`}},g=()=>T.value=p(),h=[],v=()=>{h.forEach(o=>o.stop()),h.length=0,Object.values(n.tabRefs).forEach(o=>{h.push(se(o,g))})};D(()=>n.tabs,async()=>{await j(),g(),v()},{immediate:!0});const d=se(s,()=>g());return pe(()=>{h.forEach(o=>o.stop()),h.length=0,d.stop()}),t({ref:s,update:g}),(o,f)=>(he(),ge("div",{ref_key:"barRef",ref:s,class:_e([B(a).e("active-bar"),B(a).is(B(r).props.tabPosition)]),style:Ke(T.value)},null,6))}});var _t=be(gt,[["__file","tab-bar.vue"]]);const yt=X({panes:{type:W(Array),default:()=>ne([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),Nt={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},de="ElTabNav",Ct=V({name:de,props:yt,emits:Nt,setup(e,{expose:t,emit:n}){const r=ie(J);r||re(de,"<el-tabs><tab-nav /></el-tabs>");const a=Y("tabs"),s=Me(),T=Ve(),p=P(),g=P(),h=P(),v=P({}),d=P(),o=P(!1),f=P(0),_=P(!1),u=P(!0),R=oe(),N=K(()=>["top","bottom"].includes(r.props.tabPosition)?"width":"height"),i=K(()=>({transform:`translate${N.value==="width"?"X":"Y"}(-${f.value}px)`})),C=()=>{if(!p.value)return;const c=p.value[`offset${F(N.value)}`],b=f.value;if(!b)return;const l=b>c?b-c:0;f.value=l},S=()=>{if(!p.value||!g.value)return;const c=g.value[`offset${F(N.value)}`],b=p.value[`offset${F(N.value)}`],l=f.value;if(c-l<=b)return;const w=c-l>b*2?l+b:c-b;f.value=w},k=async()=>{const c=g.value;if(!o.value||!h.value||!p.value||!c)return;await j();const b=v.value[e.currentName];if(!b)return;const l=p.value,w=["top","bottom"].includes(r.props.tabPosition),y=b.getBoundingClientRect(),E=l.getBoundingClientRect(),U=w?c.offsetWidth-E.width:c.offsetHeight-E.height,A=f.value;let $=A;w?(y.left<E.left&&($=A-(E.left-y.left)),y.right>E.right&&($=A+y.right-E.right)):(y.top<E.top&&($=A-(E.top-y.top)),y.bottom>E.bottom&&($=A+(y.bottom-E.bottom))),$=Math.max($,0),f.value=Math.min($,U)},z=()=>{var c;if(!g.value||!p.value)return;e.stretch&&((c=d.value)==null||c.update());const b=g.value[`offset${F(N.value)}`],l=p.value[`offset${F(N.value)}`],w=f.value;l<b?(o.value=o.value||{},o.value.prev=w,o.value.next=w+l<b,b-w<l&&(f.value=b-l)):(o.value=!1,w>0&&(f.value=0))},I=c=>{let b=0;switch(c.code){case L.left:case L.up:b=-1;break;case L.right:case L.down:b=1;break;default:return}const l=Array.from(c.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let y=l.indexOf(c.target)+b;y<0?y=l.length-1:y>=l.length&&(y=0),l[y].focus({preventScroll:!0}),l[y].click(),M()},M=()=>{u.value&&(_.value=!0)},O=()=>_.value=!1,Q=(c,b)=>{v.value[b]=c},Te=async()=>{await j();const c=v.value[e.currentName];c?.focus({preventScroll:!0})};return D(s,c=>{c==="hidden"?u.value=!1:c==="visible"&&setTimeout(()=>u.value=!0,50)}),D(T,c=>{c?setTimeout(()=>u.value=!0,50):u.value=!1}),se(h,z),me(()=>setTimeout(()=>k(),0)),Ue(()=>z()),t({scrollToActiveTab:k,removeFocus:O,focusActiveTab:Te,tabListRef:g,tabBarRef:d,scheduleRender:()=>q(R)}),()=>{const c=o.value?[m("span",{class:[a.e("nav-prev"),a.is("disabled",!o.value.prev)],onClick:C},[m(H,null,{default:()=>[m(xe,null,null)]})]),m("span",{class:[a.e("nav-next"),a.is("disabled",!o.value.next)],onClick:S},[m(H,null,{default:()=>[m(Be,null,null)]})])]:null,b=e.panes.map((l,w)=>{var y,E,U,A;const $=l.uid,Z=l.props.disabled,G=(E=(y=l.props.name)!=null?y:l.index)!=null?E:`${w}`,ee=!Z&&(l.isClosable||e.editable);l.index=`${w}`;const we=ee?m(H,{class:"is-icon-close",onClick:x=>n("tabRemove",l,x)},{default:()=>[m(ke,null,null)]}):null,Ee=((A=(U=l.slots).label)==null?void 0:A.call(U))||l.props.label,Se=!Z&&l.active?0:-1;return m("div",{ref:x=>Q(x,G),class:[a.e("item"),a.is(r.props.tabPosition),a.is("active",l.active),a.is("disabled",Z),a.is("closable",ee),a.is("focus",_.value)],id:`tab-${G}`,key:`tab-${$}`,"aria-controls":`pane-${G}`,role:"tab","aria-selected":l.active,tabindex:Se,onFocus:()=>M(),onBlur:()=>O(),onClick:x=>{O(),n("tabClick",l,G,x)},onKeydown:x=>{ee&&(x.code===L.delete||x.code===L.backspace)&&n("tabRemove",l,x)}},[Ee,we])});return R.value,m("div",{ref:h,class:[a.e("nav-wrap"),a.is("scrollable",!!o.value),a.is(r.props.tabPosition)]},[c,m("div",{class:a.e("nav-scroll"),ref:p},[e.panes.length>0?m("div",{class:[a.e("nav"),a.is(r.props.tabPosition),a.is("stretch",e.stretch&&["top","bottom"].includes(r.props.tabPosition))],ref:g,style:i.value,role:"tablist",onKeydown:I},[e.type?null:m(_t,{ref:d,tabs:[...e.panes],tabRefs:v.value},null),b]):null])])}}}),Pt=X({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:W(Function),default:()=>!0},stretch:Boolean}),te=e=>Ge(e)||Le(e),Tt={[ve]: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},wt=V({name:"ElTabs",props:Pt,emits:Tt,setup(e,{emit:t,slots:n,expose:r}){var a;const s=Y("tabs"),T=K(()=>["left","right"].includes(e.tabPosition)),{children:p,addChild:g,removeChild:h,ChildrenSorter:v}=mt(ye(),"ElTabPane"),d=P(),o=P((a=e.modelValue)!=null?a:"0"),f=async(i,C=!1)=>{var S,k,z,I;if(!(o.value===i||ae(i)))try{let M;if(e.beforeLeave){const O=e.beforeLeave(i,o.value);M=O instanceof Promise?await O:O}else M=!0;if(M!==!1){const O=(S=p.value.find(Q=>Q.paneName===o.value))==null?void 0:S.isFocusInsidePane();o.value=i,C&&(t(ve,i),t("tabChange",i)),(z=(k=d.value)==null?void 0:k.removeFocus)==null||z.call(k),O&&((I=d.value)==null||I.focusActiveTab())}}catch{}},_=(i,C,S)=>{i.props.disabled||(t("tabClick",i,S),f(C,!0))},u=(i,C)=>{i.props.disabled||ae(i.props.name)||(C.stopPropagation(),t("edit",i.props.name,"remove"),t("tabRemove",i.props.name))},R=()=>{t("edit",void 0,"add"),t("tabAdd")},N=i=>{const C=i.el.firstChild,S=["bottom","right"].includes(e.tabPosition)?i.children[0].el:i.children[1].el;C!==S&&C.before(S)};return D(()=>e.modelValue,i=>f(i)),D(o,async()=>{var i;await j(),(i=d.value)==null||i.scrollToActiveTab()}),He(J,{props:e,currentName:o,registerPane:g,unregisterPane:h,nav$:d}),r({currentName:o,get tabNavRef(){return bt(d.value,["scheduleRender"])}}),()=>{const i=n["add-icon"],C=e.editable||e.addable?m("div",{class:[s.e("new-tab"),T.value&&s.e("new-tab-vertical")],tabindex:"0",onClick:R,onKeydown:I=>{[L.enter,L.numpadEnter].includes(I.code)&&R()}},[i?le(n,"add-icon"):m(H,{class:s.is("icon-plus")},{default:()=>[m(Ae,null,null)]})]):null,S=()=>m(Ct,{ref:d,currentName:o.value,editable:e.editable,type:e.type,panes:p.value,stretch:e.stretch,onTabClick:_,onTabRemove:u},null),k=m("div",{class:[s.e("header"),T.value&&s.e("header-vertical"),s.is(e.tabPosition)]},[m(v,null,{default:S,$stable:!0}),C]),z=m("div",{class:s.e("content")},[le(n,"default")]);return m("div",{class:[s.b(),s.m(e.tabPosition),{[s.m("card")]:e.type==="card",[s.m("border-card")]:e.type==="border-card"}],onVnodeMounted:N,onVnodeUpdated:N},[z,k])}}});var Et=wt;const St=X({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),Ce="ElTabPane",Rt=V({name:Ce}),Ot=V({...Rt,props:St,setup(e){const t=e,n=ye(),r=qe(),a=ie(J);a||re(Ce,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const s=Y("tab-pane"),T=P(),p=P(),g=K(()=>t.closable||a.props.closable),h=ue(()=>{var u;return a.currentName.value===((u=t.name)!=null?u:p.value)}),v=P(h.value),d=K(()=>{var u;return(u=t.name)!=null?u:p.value}),o=ue(()=>!t.lazy||v.value||h.value),f=()=>{var u;return(u=T.value)==null?void 0:u.contains(document.activeElement)};D(h,u=>{u&&(v.value=!0)});const _=We({uid:n.uid,getVnode:()=>n.vnode,slots:r,props:t,paneName:d,active:h,index:p,isClosable:g,isFocusInsidePane:f});return a.registerPane(_),pe(()=>{a.unregisterPane(_)}),je(()=>{var u;r.label&&((u=a.nav$.value)==null||u.scheduleRender())}),(u,R)=>B(o)?Xe((he(),ge("div",{key:0,id:`pane-${B(d)}`,ref_key:"paneRef",ref:T,class:_e(B(s).b()),role:"tabpanel","aria-hidden":!B(h),"aria-labelledby":`tab-${B(d)}`},[le(u.$slots,"default")],10,["id","aria-hidden","aria-labelledby"])),[[Ye,B(h)]]):Je("v-if",!0)}});var Pe=be(Ot,[["__file","tab-pane.vue"]]);const Mt=ze(Et,{TabPane:Pe}),Vt=Fe(Pe);export{Vt as E,Mt as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ao as o,a6 as f,aI as g,aq as b,aJ as k}from"./index-
|
|
1
|
+
import{ao as o,a6 as f,aI as g,aq as b,aJ as k}from"./index-C-BFvYVr.js";import{s as S}from"./service-DTq1JX0u.js";import{s as w}from"./seedream-CjzfZHxH.js";import{m as C}from"./merge-C5jDS2au.js";import"./vendor-vue-C5BV5QrY.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-dayjs-Cvgzdobq.js";import"./vendor-vue-router-Bl-Po99g.js";const I=({commit:t})=>{t("resetAll")},$=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"))},E=async({commit:t},e)=>{console.debug("set applications",e),t("setApplications",e)},y=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)},x=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 b.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=o.Request;try{const{data:s}=await S.get(g);return e.status.getService=o.Success,t("setService",s),s}catch{e.status.getService=o.Error,t("setService",void 0)}},R=async({commit:t,state:e,rootState:s})=>{console.debug("start to get applications for seedream"),e.status.getApplications=o.Request;try{const{data:a}=await f.getAll({user_id:s?.user?.id,service_id:g});return e.status.getApplications=o.Success,t("setApplications",a.items),a.items}catch(a){console.error("get applications failed",a),e.status.getApplications=o.Error,t("setApplications",void 0),t("setApplication",void 0)}},_=({commit:t},e)=>{t("setConfig",e)},q=({commit:t},e)=>{t("setTasks",e)},P=({commit:t},e)=>{t("setTasksItems",e)},D=({commit:t},e)=>{t("setTasksTotal",e)},J=({commit:t},e)=>{t("setTasksActive",e)},L=async({commit:t,state:e,rootState:s},{offset:a,limit:n,createdAtMin:m,createdAtMax:T})=>(e.status.getTasks=o.Request,new Promise((v,r)=>{console.debug("start to get tasks",a,n);const l=e.credential;console.debug("current credential",l);const d=l?.token;if(!d)return e.status.getTasks=o.Error,r("no token");w.tasks({userId:s?.user?.id,offset:a,limit:n,createdAtMin:m,createdAtMax:T,type:"images"},{token:d}).then(i=>{console.debug("get images tasks success",i.data.items);const p=e?.tasks?.items||[];console.debug("existing items",p);const u=i.data.items||[];console.debug("new items",u);const A=C(p,u);t("setTasksItems",A),t("setTasksTotal",i.data.count),e.status.getTasks=o.Success,v(i.data.items)}).catch(i=>(e.status.getTasks=o.Error,r(i)))})),M={createCredential:x,setService:y,getService:O,resetAll:I,setCredential:h,setConfig:_,setApplications:E,setApplication:$,getApplications:R,setTasks:q,setTasksItems:P,setTasksTotal:D,setTasksActive:J,getTasks:L},c={items:void 0,total:void 0,active:void 0},V=t=>{Object.assign(t,k())},j=(t,e)=>{t.service=e},z=(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||c,items:e};t.tasks=s},K=(t,e)=>{const s={...t.tasks||c,total:e};t.tasks=s},N=(t,e)=>{const s={...t.tasks||c,active:e};t.tasks=s},Q=(t,e)=>{t.tasks=e},U={setTasks:Q,setApplication:B,setApplications:F,setConfig:G,setCredential:z,setService:j,setTasksActive:N,setTasksItems:H,setTasksTotal:K,resetAll:V},ot={namespaced:!0,state:k,mutations:U,actions:M};export{ot as default,ot as seedream};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S as N,i as W,c as f,b as R,d as _,q as S,H as V,E as y,G as P,aj as A,u as e,M as h,Q as v,ak as D,z as k,I as K,F as U,n as L,R as J,o as X,p as Y,r as Z,a2 as ee,w as ae}from"./vendor-vue-C5BV5QrY.js";import{M as I,L as $,K as w,U as G,H as B,bh as M,O as oe,P as le,ad as se,bD as F,y as C,z,u as te,Q as ne,a_ as x,A as re}from"./index-
|
|
1
|
+
import{S as N,i as W,c as f,b as R,d as _,q as S,H as V,E as y,G as P,aj as A,u as e,M as h,Q as v,ak as D,z as k,I as K,F as U,n as L,R as J,o as X,p as Y,r as Z,a2 as ee,w as ae}from"./vendor-vue-C5BV5QrY.js";import{M as I,L as $,K as w,U as G,H as B,bh as M,O as oe,P as le,ad as se,bD as F,y as C,z,u as te,Q as ne,a_ as x,A as re}from"./index-C-BFvYVr.js";import{u as ie}from"./index-CZmMZPJB.js";import{u as de,a as ue}from"./use-form-item-Bap1cNNT.js";const T=B({modelValue:{type:[String,Number,Boolean],default:void 0},size:M,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),ce=B({...T,border:Boolean}),H={[G]:o=>N(o)||$(o)||w(o),[I]:o=>N(o)||$(o)||w(o)},j=Symbol("radioGroupKey"),q=(o,u)=>{const s=R(),a=W(j,void 0),i=f(()=>!!a),c=f(()=>F(o.value)?o.label:o.value),r=f({get(){return i.value?a.modelValue:o.modelValue},set(t){i.value?a.changeEvent(t):u&&u(G,t),s.value.checked=o.modelValue===c.value}}),d=oe(f(()=>a?.size)),l=le(f(()=>a?.disabled)),n=R(!1),p=f(()=>l.value||i.value&&r.value!==c.value?-1:0);return se({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},f(()=>i.value&&F(o.value))),{radioRef:s,isGroup:i,radioGroup:a,focus:n,size:d,disabled:l,tabIndex:p,modelValue:r,actualValue:c}},pe=_({name:"ElRadio"}),me=_({...pe,props:ce,emits:H,setup(o,{emit:u}){const s=o,a=z("radio"),{radioRef:i,radioGroup:c,focus:r,size:d,disabled:l,modelValue:n,actualValue:p}=q(s,u);function t(){L(()=>u(I,n.value))}return(m,g)=>{var b;return S(),V("label",{class:v([e(a).b(),e(a).is("disabled",e(l)),e(a).is("focus",e(r)),e(a).is("bordered",m.border),e(a).is("checked",e(n)===e(p)),e(a).m(e(d))])},[y("span",{class:v([e(a).e("input"),e(a).is("disabled",e(l)),e(a).is("checked",e(n)===e(p))])},[P(y("input",{ref_key:"radioRef",ref:i,"onUpdate:modelValue":E=>D(n)?n.value=E:null,class:v(e(a).e("original")),value:e(p),name:m.name||((b=e(c))==null?void 0:b.name),disabled:e(l),checked:e(n)===e(p),type:"radio",onFocus:E=>r.value=!0,onBlur:E=>r.value=!1,onChange:t,onClick:h(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[A,e(n)]]),y("span",{class:v(e(a).e("inner"))},null,2)],2),y("span",{class:v(e(a).e("label")),onKeydown:h(()=>{},["stop"])},[k(m.$slots,"default",{},()=>[K(U(m.label),1)])],42,["onKeydown"])],2)}}});var fe=C(me,[["__file","radio.vue"]]);const ve=B({...T}),be=_({name:"ElRadioButton"}),ye=_({...be,props:ve,setup(o){const u=o,s=z("radio"),{radioRef:a,focus:i,size:c,disabled:r,modelValue:d,radioGroup:l,actualValue:n}=q(u),p=f(()=>({backgroundColor:l?.fill||"",borderColor:l?.fill||"",boxShadow:l?.fill?`-1px 0 0 0 ${l.fill}`:"",color:l?.textColor||""}));return(t,m)=>{var g;return S(),V("label",{class:v([e(s).b("button"),e(s).is("active",e(d)===e(n)),e(s).is("disabled",e(r)),e(s).is("focus",e(i)),e(s).bm("button",e(c))])},[P(y("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":b=>D(d)?d.value=b:null,class:v(e(s).be("button","original-radio")),value:e(n),type:"radio",name:t.name||((g=e(l))==null?void 0:g.name),disabled:e(r),onFocus:b=>i.value=!0,onBlur:b=>i.value=!1,onClick:h(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[A,e(d)]]),y("span",{class:v(e(s).be("button","inner")),style:J(e(d)===e(n)?e(p):{}),onKeydown:h(()=>{},["stop"])},[k(t.$slots,"default",{},()=>[K(U(t.label),1)])],46,["onKeydown"])],2)}}});var O=C(ye,[["__file","radio-button.vue"]]);const _e=B({id:{type:String,default:void 0},size:M,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},...ie(["ariaLabel"])}),ge=H,he=_({name:"ElRadioGroup"}),Be=_({...he,props:_e,emits:ge,setup(o,{emit:u}){const s=o,a=z("radio"),i=te(),c=R(),{formItem:r}=de(),{inputId:d,isLabeledByFormItem:l}=ue(s,{formItemContext:r}),n=t=>{u(G,t),L(()=>u(I,t))};X(()=>{const t=c.value.querySelectorAll("[type=radio]"),m=t[0];!Array.from(t).some(g=>g.checked)&&m&&(m.tabIndex=0)});const p=f(()=>s.name||i.value);return Y(j,Z({...ee(s),changeEvent:n,name:p})),ae(()=>s.modelValue,()=>{s.validateEvent&&r?.validate("change").catch(t=>ne())}),(t,m)=>(S(),V("div",{id:e(d),ref_key:"radioGroupRef",ref:c,class:v(e(a).b("group")),role:"radiogroup","aria-label":e(l)?void 0:t.ariaLabel||"radio-group","aria-labelledby":e(l)?e(r).labelId:void 0},[k(t.$slots,"default")],10,["id","aria-label","aria-labelledby"]))}});var Q=C(Be,[["__file","radio-group.vue"]]);const ke=re(fe,{RadioButton:O,RadioGroup:Q}),Ie=x(Q),Ge=x(O);export{Ge as E,Ie as a,ke as b};
|