@acedatacloud/nexior 3.165.0 → 3.167.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-QFl8wvov.js → Auth-BYDwGwaF.js} +1 -1
- package/dist/assets/{BotPlaceholder-teJQgw1R.js → BotPlaceholder-BqeR06y3.js} +1 -1
- package/dist/assets/{Callback-DUG_0nL9.js → Callback--SyBMjm7.js} +1 -1
- package/dist/assets/{Console-C4ni_K8l.js → Console-WixW6BSu.js} +1 -1
- package/dist/assets/{Consumption-DTqKtl19.js → Consumption-CL3WRYVN.js} +1 -1
- package/dist/assets/{Conversation-B1nlcCj3.js → Conversation-Brvaxxml.js} +1 -1
- package/dist/assets/{CopyToClipboard-CHIfP83C.js → CopyToClipboard-TC6O9s7V.js} +1 -1
- package/dist/assets/{Detail-CpZay6En.js → Detail-oRAPiSXy.js} +2 -2
- package/dist/assets/{EditArray-fTlZytbV.js → EditArray-Cr1IK11e.js} +1 -1
- package/dist/assets/{Extra-hWv_Zh-w.js → Extra-9TZNXkOm.js} +1 -1
- package/dist/assets/{FilePreview-ZxOIpkjO.js → FilePreview-BHbzMFA3.js} +1 -1
- package/dist/assets/{History-C0ckJn8X.js → History-DArAVdnl.js} +1 -1
- package/dist/assets/{IconPark.vue_vue_type_script_setup_true_lang-ChnszgHA.js → IconPark.vue_vue_type_script_setup_true_lang-VGkf-8vn.js} +1 -1
- package/dist/assets/{ImagePreview-Bdb0i-UY.js → ImagePreview-CATcaSwT.js} +1 -1
- package/dist/assets/{ImageWrapper-DQ4mprTG.js → ImageWrapper-C-2wIJYB.js} +1 -1
- package/dist/assets/{Index-H53x6bs-.js → Index-6O25pgqo.js} +1 -1
- package/dist/assets/{Index-D4AU2wLY.js → Index-BGjqeGFj.js} +1 -1
- package/dist/assets/{Index-z92kW0LQ.js → Index-BKgJVlqc.js} +1 -1
- package/dist/assets/{Index-BJKR_l5i.js → Index-BQL51iA5.js} +1 -1
- package/dist/assets/{Index-Dihiqk3n.js → Index-BQQpmfdB.js} +1 -1
- package/dist/assets/{Index-BDIOWR2s.js → Index-BUxrI5H9.js} +1 -1
- package/dist/assets/{Index-kkNkz_os.js → Index-BZkdecyf.js} +1 -1
- package/dist/assets/{Index-BRtxGRTG.js → Index-Ba9ChGUK.js} +1 -1
- package/dist/assets/{Index-DW6bQp-A.css → Index-BaRagseA.css} +1 -1
- package/dist/assets/{Index-CHr-S8VL.js → Index-BmLW9xeN.js} +1 -1
- package/dist/assets/{Index-CBaFV7Km.js → Index-Bvrq7JLb.js} +1 -1
- package/dist/assets/{Index-CahgxOO6.js → Index-C01475yx.js} +1 -1
- package/dist/assets/{Index-C5QNZoPE.js → Index-C3f-qhzZ.js} +1 -1
- package/dist/assets/{Index-C8PSwcv8.js → Index-C5HV03FO.js} +1 -1
- package/dist/assets/{Index-D8naCCGX.js → Index-Cl3Lz1dF.js} +1 -1
- package/dist/assets/Index-CofV8BK0.js +1 -0
- package/dist/assets/{Index-w1fclgzE.js → Index-CwVq3Ycf.js} +1 -1
- package/dist/assets/{Index-JQGxDvVx.js → Index-DBlvbTmY.js} +1 -1
- package/dist/assets/{Index-D62cd0vK.js → Index-DIF8W8Uc.js} +1 -1
- package/dist/assets/{Index-CVQSictr.js → Index-DZl1YUel.js} +1 -1
- package/dist/assets/{Index-BAbLvO0T.js → Index-DbBMgNaM.js} +1 -1
- package/dist/assets/{Index-CKF-bPuL.js → Index-Dh9rUBhI.js} +1 -1
- package/dist/assets/{Index-BS6gQkGg.js → Index-eTNf6k_N.js} +1 -1
- package/dist/assets/Index-hZRJDvDU.css +1 -0
- package/dist/assets/{Index-GAyX8JLL.js → Index-ip063XOA.js} +1 -1
- package/dist/assets/Index-ogoTClu0.js +1 -0
- package/dist/assets/{Invitees-Cpyz-GEF.js → Invitees-Cc3NpC2g.js} +1 -1
- package/dist/assets/{List-CuVqG93t.js → List-B4p4ZhQE.js} +1 -1
- package/dist/assets/{List-CRr2Ebvy.js → List-D7DfvKQy.js} +1 -1
- package/dist/assets/{List-D7mcU_w0.js → List-DvSsX3Z0.js} +1 -1
- package/dist/assets/{Main-B5NCR5Tx.js → Main-BVKGaNZg.js} +1 -1
- package/dist/assets/{Navigator-CDg5_jXD.js → Navigator-9ddEoj7J.js} +1 -1
- package/dist/assets/{NoTasks-Dro6OdxD.js → NoTasks-C3t8bmtA.js} +1 -1
- package/dist/assets/{NotFound-BhS5F53U.js → NotFound-Hnpwk4F4.js} +1 -1
- package/dist/assets/{OAuthCallback-1nC4_les.js → OAuthCallback-COGnrcdn.js} +1 -1
- package/dist/assets/{Pagination-CGK6TLMi.js → Pagination-wNLMuHeO.js} +1 -1
- package/dist/assets/{Status-B2CODnvr.js → Status-CIYhFNcJ.js} +1 -1
- package/dist/assets/{Subscribe-Cmosa6qP.js → Subscribe-lEko0pof.js} +1 -1
- package/dist/assets/{VideoPlayer-Cy3-ZAWg.js → VideoPlayer-c9dt-3yZ.js} +1 -1
- package/dist/assets/{_Uint8Array-JndvkAwf.js → _Uint8Array-BP4C5DZm.js} +1 -1
- package/dist/assets/{_baseClone-BywLfCY-.js → _baseClone-Bmu_sg3j.js} +1 -1
- package/dist/assets/{_baseIteratee-BaTk7Xco.js → _baseIteratee-lG75D4iw.js} +1 -1
- package/dist/assets/{_initCloneObject-D5P_u5bs.js → _initCloneObject-C-Q8oqTt.js} +1 -1
- package/dist/assets/{add-MHM5adot.js → add-6LL9G5Z5.js} +1 -1
- package/dist/assets/{all-wallets-DghbU6pB.js → all-wallets-aEppbPWX.js} +1 -1
- package/dist/assets/{app-store-B5d2ke5R.js → app-store-DID464Wp.js} +1 -1
- package/dist/assets/{apple-DcWUSF7H.js → apple-DORiIW02.js} +1 -1
- package/dist/assets/{arrow-bottom-CAFMTIro.js → arrow-bottom-CmCVBSrV.js} +1 -1
- package/dist/assets/{arrow-bottom-circle-C7pglfhV.js → arrow-bottom-circle-dyY9qLpT.js} +1 -1
- package/dist/assets/{arrow-left-Ca5HiJyU.js → arrow-left-BaoMx2wj.js} +1 -1
- package/dist/assets/{arrow-right-BHK6x0D0.js → arrow-right-6ZIR8uWG.js} +1 -1
- package/dist/assets/{arrow-top-M7zp-rH1.js → arrow-top-DV5TBwIJ.js} +1 -1
- package/dist/assets/{avatar-DgwLY0F2.js → avatar-CZpCU7-m.js} +1 -1
- package/dist/assets/{bank-SSDifLcO.js → bank-DYz2uXPn.js} +1 -1
- package/dist/assets/{basic-Be21SJ4t.js → basic-CH4UgvMg.js} +1 -1
- package/dist/assets/{browser-CUJm8BoS.js → browser-CKmIG2h_.js} +1 -1
- package/dist/assets/{byokCredential-Np5spQbA.js → byokCredential-BdY2oFpq.js} +1 -1
- package/dist/assets/{card-CSSyeeL5.js → card-3UfZE5zt.js} +1 -1
- package/dist/assets/{castArray-BzRYTmyg.js → castArray-YvIMFTc9.js} +1 -1
- package/dist/assets/{chat-CO5_buPC.js → chat-CpxTF3jE.js} +1 -1
- package/dist/assets/{checkmark-DHknSf9L.js → checkmark-BWZoFv2_.js} +1 -1
- package/dist/assets/{checkmark-bold-BRynkBu_.js → checkmark-bold-CEX8QndR.js} +1 -1
- package/dist/assets/{chevron-bottom-CxoghWFm.js → chevron-bottom-BI142s1X.js} +1 -1
- package/dist/assets/{chevron-left--wPz3w6Z.js → chevron-left-tLzTrSXr.js} +1 -1
- package/dist/assets/{chevron-right-saEXbUGn.js → chevron-right-Dyf_ffQQ.js} +1 -1
- package/dist/assets/{chevron-top-DS7eYYgl.js → chevron-top-DPDBxfl4.js} +1 -1
- package/dist/assets/{chrome-store-DYuG5PcW.js → chrome-store-D5SW-iy-.js} +1 -1
- package/dist/assets/{clock-CBdDJ5Df.js → clock-CKF6goQf.js} +1 -1
- package/dist/assets/{close-BjPE_-aP.js → close-De8y1RWE.js} +1 -1
- package/dist/assets/{coinPlaceholder-BiVzICb3.js → coinPlaceholder-Dkkrmbg7.js} +1 -1
- package/dist/assets/{compass-PMZMMq0Z.js → compass-cqEFwAme.js} +1 -1
- package/dist/assets/{copy-Uj5cKBl8.js → copy-Es56qz4c.js} +1 -1
- package/dist/assets/{createTaskActions-CU8q3u1r.js → createTaskActions-BXbGVAyn.js} +1 -1
- package/dist/assets/{cursor-C6BXinQj.js → cursor-Cq5X5f50.js} +1 -1
- package/dist/assets/{cursor-transparent-DsTmLChU.js → cursor-transparent-xlWXmwGt.js} +1 -1
- package/dist/assets/{debounce-D7YINRDE.js → debounce-BpWk7nuI.js} +1 -1
- package/dist/assets/{desktop-DVhIgZOr.js → desktop-D1J2Uie2.js} +1 -1
- package/dist/assets/{disconnect-CuUhUKSv.js → disconnect-Cks823Of.js} +1 -1
- package/dist/assets/{discord-BVTnwzNj.js → discord-zkmftcBQ.js} +1 -1
- package/dist/assets/{distribution-CqMjpTR8.js → distribution-o7xqSpRT.js} +1 -1
- package/dist/assets/{dropdown-B9aMQjZh.js → dropdown-Bvb4dRSD.js} +1 -1
- package/dist/assets/{etherscan-C0uYoQGL.js → etherscan-I41foa4d.js} +1 -1
- package/dist/assets/{exclamation-triangle-BwC-OFyl.js → exclamation-triangle-DoIkNHiW.js} +1 -1
- package/dist/assets/{extension-CIOTKKOf.js → extension-C2DGwOS2.js} +1 -1
- package/dist/assets/{external-link-CYMLf0Ns.js → external-link-B2ZBFNNw.js} +1 -1
- package/dist/assets/{facebook-DyaS9rXQ.js → facebook-CO7UwlKf.js} +1 -1
- package/dist/assets/{farcaster-0IbvFQrl.js → farcaster-DFerNXVJ.js} +1 -1
- package/dist/assets/{filters-CvFHkNa0.js → filters-Cq5-UFL3.js} +1 -1
- package/dist/assets/{github-BqnwncTz.js → github-BOpdRs3D.js} +1 -1
- package/dist/assets/{google-SQuxevK_.js → google-B1iBXSb_.js} +1 -1
- package/dist/assets/{help-circle-DYG8MQQG.js → help-circle-FMe2_GKk.js} +1 -1
- package/dist/assets/{id-XQhzrZqg.js → id-B8JtAbxm.js} +1 -1
- package/dist/assets/{image-BXv_qOZO.js → image-B7X95LW6.js} +1 -1
- package/dist/assets/{index-udv8oHBR.js → index--FfOeMhK.js} +1 -1
- package/dist/assets/{index-CdNNDZgX.js → index--MBG5Bxw.js} +1 -1
- package/dist/assets/{index-MJt9uRMV.js → index--UH2lqMs.js} +1 -1
- package/dist/assets/{index-nLjkUfZa.js → index-0u_G2kSj.js} +1 -1
- package/dist/assets/{index-DfHMyt1g.js → index-5PCSoafl.js} +2 -2
- package/dist/assets/{index-U7KDLTxZ.js → index-8jmQ7jsv.js} +1 -1
- package/dist/assets/{index-5zp5rRSg.js → index-B05MCcWV.js} +1 -1
- package/dist/assets/{index-DSAaysXY.js → index-BD55w4j0.js} +1 -1
- package/dist/assets/{index-dLkFe5tp.js → index-BMe4XQdI.js} +1 -1
- package/dist/assets/{index-D8r95ZCp.js → index-BPRTWZ0b.js} +1 -1
- package/dist/assets/{index-D0svo0N2.js → index-BVZShYNY.js} +1 -1
- package/dist/assets/{index-CWtgQWA5.js → index-BXuYZoDz.js} +1 -1
- package/dist/assets/{index-1aVfodJV.js → index-BbcE4PaG.js} +1 -1
- package/dist/assets/{index-D51AeHP9.js → index-BiXpC_cY.js} +1 -1
- package/dist/assets/{index-CAOsMXTW.js → index-BkvfyPBC.js} +1 -1
- package/dist/assets/{index-Bwh4uhxH.js → index-BzRVav2J.js} +4 -4
- package/dist/assets/{index-Cdu2CINy.js → index-C3GoyrG4.js} +1 -1
- package/dist/assets/{index-ZaB33foX.js → index-C8WbvFlX.js} +1 -1
- package/dist/assets/{index-Boh3hilg.js → index-CD8qf4tY.js} +1 -1
- package/dist/assets/{index-CWm6OdeE.js → index-CIdZDW4_.js} +3 -3
- package/dist/assets/{index-CD3hMCXK.js → index-CMTPLs4z.js} +1 -1
- package/dist/assets/{index-BgDIlmz8.js → index-CMexzqoP.js} +1 -1
- package/dist/assets/{index-CaE4JHcH.js → index-COPlSq-K.js} +1 -1
- package/dist/assets/{index-Biwor0fW.js → index-CP6lS__f.js} +1 -1
- package/dist/assets/{index-ByGJSI5C.js → index-CTspmpeX.js} +1 -1
- package/dist/assets/{index-ByjQrnzD.js → index-CVzcynKu.js} +1 -1
- package/dist/assets/{index-KJ_Bm-Sb.js → index-CbnoagxV.js} +1 -1
- package/dist/assets/{index-CWWZeClw.js → index-Cjg_OuWc.js} +1 -1
- package/dist/assets/{index-Bs4QQKmj.js → index-CmMnj3Xx.js} +1 -1
- package/dist/assets/{index-BpgdZsBs.js → index-CniEO1Oz.js} +1 -1
- package/dist/assets/{index-Df-EZV4-.js → index-D5ReSuuO.js} +1 -1
- package/dist/assets/{index-DG93bVkv.js → index-D7b8OrcI.js} +1 -1
- package/dist/assets/{index-4fUmHLSf.js → index-DC9KLk-Y.js} +1 -1
- package/dist/assets/{index-DWKjA_D8.js → index-DEcBa7gX.js} +1 -1
- package/dist/assets/{index-Dy5k6Duv.js → index-DLlZmkfC.js} +1 -1
- package/dist/assets/{index-COvldWeP.js → index-DSRawDTE.js} +1 -1
- package/dist/assets/{index-CghmaEfO.js → index-DTbz6TSn.js} +1 -1
- package/dist/assets/{index-BhAfU2EN.js → index-DTq8xdm6.js} +1 -1
- package/dist/assets/{index-BcqWtXWM.js → index-DWkcw7l1.js} +1 -1
- package/dist/assets/{index-BbRzjoyH.js → index-DYXoPIXH.js} +1 -1
- package/dist/assets/{index-Ck-GkfGu.js → index-DZXPcke9.js} +1 -1
- package/dist/assets/{index-CLC3F3zh.js → index-De-wy4Tc.js} +1 -1
- package/dist/assets/{index-DjsIiC0Y.js → index-Df86EZ4H.js} +1 -1
- package/dist/assets/{index-B3qBkdOQ.js → index-DqHEB8wJ.js} +1 -1
- package/dist/assets/{index-CZoz3sTY.js → index-Dt0xHpag.js} +1 -1
- package/dist/assets/{index-BPugvnwC.js → index-DtaZfQsb.js} +1 -1
- package/dist/assets/{index-DutPYY3x.js → index-DvJO3nj9.js} +1 -1
- package/dist/assets/{index-BSoor3tO.js → index-DzqsLvLw.js} +1 -1
- package/dist/assets/{index-CMCb9_bq.js → index-F7u9olkI.js} +1 -1
- package/dist/assets/{index-Beb7n_xY.js → index-HTtxGNNR.js} +1 -1
- package/dist/assets/{index-BRqPnPCL.js → index-SAsUj7Pk.js} +1 -1
- package/dist/assets/{index-DDM_letT.js → index-XpcsQaS3.js} +1 -1
- package/dist/assets/{index-IQO2FhFE.js → index-ZhVk9kkG.js} +5 -5
- package/dist/assets/{index-DvfuPWbJ.js → index-bUBBPa9N.js} +1 -1
- package/dist/assets/{index-CEeWvdaB.js → index-cnvaHQUI.js} +1 -1
- package/dist/assets/{index-CaMEIrh2.js → index-gQH-ITVc.js} +1 -1
- package/dist/assets/{index-BUOjw5KN.js → index-karJESpY.js} +1 -1
- package/dist/assets/{index-BiZZIfOf.js → index-qJmkBTaB.js} +1 -1
- package/dist/assets/{index-Bj-EDfAG.js → index-ruJel4IC.js} +1 -1
- package/dist/assets/{index-BipWEOw7.js → index-yXdj_vJc.js} +1 -1
- package/dist/assets/{index.browser.esm-DwXBoLOX.js → index.browser.esm-DkzdYcbc.js} +1 -1
- package/dist/assets/{index.es-DoDsyBxd.js → index.es-C_WLtS18.js} +1 -1
- package/dist/assets/{info-Dnpt2U_5.js → info-CWQKBayg.js} +1 -1
- package/dist/assets/{info-circle-Bt1w-pCz.js → info-circle-xZWu29E_.js} +1 -1
- package/dist/assets/{isEqual-CgVTCLh1.js → isEqual-yYS0dh2f.js} +1 -1
- package/dist/assets/{isPlainObject-DrlQ5Pnc.js → isPlainObject-CRl4nmqU.js} +1 -1
- package/dist/assets/{kling-DOOG08lq.js → kling-CFlrhlVc.js} +1 -1
- package/dist/assets/{kling-CFHGJQbi.js → kling-DCFW6ga_.js} +1 -1
- package/dist/assets/{lightbulb-aD-dsBxv.js → lightbulb-DDxET3cE.js} +1 -1
- package/dist/assets/{mail-7R5Js7B2.js → mail-CFH0lanX.js} +1 -1
- package/dist/assets/{midjourney-CtxD1PH8.js → midjourney-DRsfJ6XL.js} +1 -1
- package/dist/assets/{mobile-BtkxgoTF.js → mobile-ikIUiDOY.js} +1 -1
- package/dist/assets/{more-DAvhe9VU.js → more-BOWsr6fH.js} +1 -1
- package/dist/assets/{network-placeholder-CCkyDJeN.js → network-placeholder-WAP_pG5W.js} +1 -1
- package/dist/assets/{nftPlaceholder-CIJHDSVd.js → nftPlaceholder-mS2qsTTR.js} +1 -1
- package/dist/assets/{off-BwoZGGFO.js → off-DgdEkHnP.js} +1 -1
- package/dist/assets/{order-BZjOBAha.js → order-Cb2RT6uu.js} +1 -1
- package/dist/assets/{pagination-DuUw6h7L.js → pagination-mZXKDVMd.js} +1 -1
- package/dist/assets/{play-store-CwQNyCN6.js → play-store-8C4ifU8u.js} +1 -1
- package/dist/assets/{plus-BbAuv3hx.js → plus-FPrDhto7.js} +1 -1
- package/dist/assets/{price-Dq6B3nmI.js → price-Cr67gCty.js} +1 -1
- package/dist/assets/producer-Br_uIp1_.js +7 -0
- package/dist/assets/producer-Dz_QexIx.js +7 -0
- package/dist/assets/{producer-CI1GeNU0.js → producer-Q-cOb_Ne.js} +1 -1
- package/dist/assets/{qr-code-oGfaJIYm.js → qr-code-DRShCRVn.js} +1 -1
- package/dist/assets/{recycle-horizontal-CIMdWX63.js → recycle-horizontal-C8dBoRZt.js} +1 -1
- package/dist/assets/{refresh-CETVZsJS.js → refresh-CImlMCgq.js} +1 -1
- package/dist/assets/{reown-logo-CLmHzqhX.js → reown-logo-4ZKneMrf.js} +1 -1
- package/dist/assets/{search-Buv7Cq2F.js → search-CGNtTO4W.js} +1 -1
- package/dist/assets/{secp256k1-DZFSOuaq.js → secp256k1-BWP6UeVl.js} +1 -1
- package/dist/assets/{secp256k1-CWhf6TH4.js → secp256k1-C2CXj9YW.js} +1 -1
- package/dist/assets/{seedream-BpNX1g1O.js → seedream-DpE59ZMf.js} +1 -1
- package/dist/assets/{send-BSMhw9Xa.js → send-DCL9Yk32.js} +1 -1
- package/dist/assets/{service-CIPDs5an.js → service-BJ-ypgj8.js} +1 -1
- package/dist/assets/{solana-wallets-vue-CieCmGxz.js → solana-wallets-vue-C8Fkxc_p.js} +1 -1
- package/dist/assets/{solana-wallets-RAxh0-qX.js → solana-wallets-yxjVsaPt.js} +2 -2
- package/dist/assets/{suno-DFaKmajK.js → suno-BZWrSxwO.js} +1 -1
- package/dist/assets/{swapHorizontal-Cs-Nsa-N.js → swapHorizontal-Bfn7eZ90.js} +1 -1
- package/dist/assets/{swapHorizontalBold-C_g3Z5YY.js → swapHorizontalBold-DGPhnPkP.js} +1 -1
- package/dist/assets/{swapHorizontalMedium-Cni6iZGc.js → swapHorizontalMedium-DqzPWlW6.js} +1 -1
- package/dist/assets/{swapHorizontalRoundedBold-BIHXs_Kn.js → swapHorizontalRoundedBold-DPpuDpww.js} +1 -1
- package/dist/assets/{swapVertical-B2X4zH4b.js → swapVertical--7_aleOl.js} +1 -1
- package/dist/assets/{telegram-C_umRltj.js → telegram-DkMIuO8p.js} +1 -1
- package/dist/assets/{three-dots-in7LQz0m.js → three-dots-DIIrfSEt.js} +1 -1
- package/dist/assets/{twitch-BhlPlBfi.js → twitch-CiiHF84Y.js} +1 -1
- package/dist/assets/{twitterIcon-CrxI95_1.js → twitterIcon-ocXCXtXI.js} +1 -1
- package/dist/assets/{typescript-C7vXUz1j.js → typescript-D6sat8h_.js} +1 -1
- package/dist/assets/{use-form-item-CkUvjro6.js → use-form-item-B5rZE33a.js} +1 -1
- package/dist/assets/validator-DGv8iqeP.js +1 -0
- package/dist/assets/{verify-D6DQIx4j.js → verify-BNbMn2WA.js} +1 -1
- package/dist/assets/{verify-filled-FR7cKPze.js → verify-filled-BYrl9ds5.js} +1 -1
- package/dist/assets/{w3m-modal-B5HAb7kJ.js → w3m-modal-1D4qbzJa.js} +1 -1
- package/dist/assets/{wallet-CDX0DAit.js → wallet-FOzEXpqB.js} +1 -1
- package/dist/assets/{wallet-placeholder-BRABXVV_.js → wallet-placeholder-B68god-e.js} +1 -1
- package/dist/assets/{walletconnect-1VhScNHL.js → walletconnect-BgAZqbXg.js} +1 -1
- package/dist/assets/{warning-circle-DDJ5i3sU.js → warning-circle-OFLJWcAI.js} +1 -1
- package/dist/assets/{web-BV6i-IiK.js → web-DWdZiDY7.js} +1 -1
- package/dist/assets/{web-BfkNWdqt.js → web-MzbMqkc3.js} +1 -1
- package/dist/assets/{x-Cl7CMuoB.js → x-CIb6zO-n.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/Index-B0JQUqqM.js +0 -1
- package/dist/assets/Index-CWGuNkuR.js +0 -1
- package/dist/assets/Index-DMHyDsV2.css +0 -1
- package/dist/assets/producer-BpQVWNsN.js +0 -7
- package/dist/assets/producer-CmjvX-Jw.js +0 -7
- package/dist/assets/validator-BYlyQQaq.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as h,q as M,r as F,b as R,v as T,w as V,x as W,y as B,z,A as D}from"./index-
|
|
1
|
+
import{t as h,q as M,r as F,b as R,v as T,w as V,x as W,y as B,z,A as D}from"./index-BzRVav2J.js";import{b as y,w as _,c as J,k as U}from"./vendor-vue-NSDaktjZ.js";function m(e){var t;const r=W(e);return(t=r?.$el)!=null?t:r}const w=R?window:void 0,k=R?window.document:void 0;function b(...e){let t,r,n,u;if(T(e[0])||Array.isArray(e[0])?([r,n,u]=e,t=w):[t,r,n,u]=e,!t)return F;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const d=[],a=()=>{d.forEach(i=>i()),d.length=0},l=(i,f,s,o)=>(i.addEventListener(f,s,o),()=>i.removeEventListener(f,s,o)),p=_(()=>[m(t),W(u)],([i,f])=>{a(),i&&d.push(...r.flatMap(s=>n.map(o=>l(i,s,o,f))))},{immediate:!0,flush:"post"}),v=()=>{p(),a()};return h(v),v}let S=!1;function ie(e,t,r={}){const{window:n=w,ignore:u=[],capture:d=!0,detectIframe:a=!1}=r;if(!n)return;M&&!S&&(S=!0,Array.from(n.document.body.children).forEach(s=>s.addEventListener("click",F)));let l=!0;const p=s=>u.some(o=>{if(typeof o=="string")return Array.from(n.document.querySelectorAll(o)).some(c=>c===s.target||s.composedPath().includes(c));{const c=m(o);return c&&(s.target===c||s.composedPath().includes(c))}}),i=[b(n,"click",s=>{const o=m(e);if(!(!o||o===s.target||s.composedPath().includes(o))){if(s.detail===0&&(l=!p(s)),!l){l=!0;return}t(s)}},{passive:!0,capture:d}),b(n,"pointerdown",s=>{const o=m(e);o&&(l=!s.composedPath().includes(o)&&!p(s))},{passive:!0}),a&&b(n,"blur",s=>{var o;const c=m(e);((o=n.document.activeElement)==null?void 0:o.tagName)==="IFRAME"&&!c?.contains(n.document.activeElement)&&t(s)})].filter(Boolean);return()=>i.forEach(s=>s())}function L(e,t=!1){const r=y(),n=()=>r.value=!!e();return n(),V(n,t),r}function q(e){return JSON.parse(JSON.stringify(e))}const N=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},$="__vueuse_ssr_handlers__";N[$]=N[$]||{};function ue({document:e=k}={}){if(!e)return y("visible");const t=y(e.visibilityState);return b(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var A=Object.getOwnPropertySymbols,G=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable,K=(e,t)=>{var r={};for(var n in e)G.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&A)for(var n of A(e))t.indexOf(n)<0&&H.call(e,n)&&(r[n]=e[n]);return r};function le(e,t,r={}){const n=r,{window:u=w}=n,d=K(n,["window"]);let a;const l=L(()=>u&&"ResizeObserver"in u),p=()=>{a&&(a.disconnect(),a=void 0)},v=_(()=>m(e),f=>{p(),l.value&&u&&f&&(a=new ResizeObserver(t),a.observe(f,d))},{immediate:!0,flush:"post"}),i=()=>{p(),v()};return h(i),{isSupported:l,stop:i}}var j=Object.getOwnPropertySymbols,X=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,Z=(e,t)=>{var r={};for(var n in e)X.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&j)for(var n of j(e))t.indexOf(n)<0&&Y.call(e,n)&&(r[n]=e[n]);return r};function ce(e,t,r={}){const n=r,{window:u=w}=n,d=Z(n,["window"]);let a;const l=L(()=>u&&"MutationObserver"in u),p=()=>{a&&(a.disconnect(),a=void 0)},v=_(()=>m(e),f=>{p(),l.value&&u&&f&&(a=new MutationObserver(t),a.observe(f,d))},{immediate:!0}),i=()=>{p(),v()};return h(i),{isSupported:l,stop:i}}var x;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(x||(x={}));var ee=Object.defineProperty,C=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,Q=(e,t,r)=>t in e?ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,re=(e,t)=>{for(var r in t||(t={}))te.call(t,r)&&Q(e,r,t[r]);if(C)for(var r of C(t))ne.call(t,r)&&Q(e,r,t[r]);return e};const se={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};re({linear:D},se);function fe(e,t,r,n={}){var u,d,a;const{clone:l=!1,passive:p=!1,eventName:v,deep:i=!1,defaultValue:f}=n,s=U(),o=s?.emit||((u=s?.$emit)==null?void 0:u.bind(s))||((a=(d=s?.proxy)==null?void 0:d.$emit)==null?void 0:a.bind(s?.proxy));let c=v;c=v||c||`update:${t.toString()}`;const E=O=>l?z(l)?l(O):q(O):O,P=()=>B(e[t])?E(e[t]):f;if(p){const O=P(),g=y(O);return _(()=>e[t],I=>g.value=E(I)),_(g,I=>{(I!==e[t]||i)&&o(c,I)},{deep:i}),g}else return J({get(){return P()},set(O){o(c,O)}})}function de({window:e=w}={}){if(!e)return y(!1);const t=y(e.document.hasFocus());return b(e,"blur",()=>{t.value=!1}),b(e,"focus",()=>{t.value=!0}),t}const pe=e=>e;export{le as a,fe as b,ce as c,ue as d,de as e,m as f,pe as m,ie as o,b as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as p,d as t,u as f}from"./index-
|
|
1
|
+
import{f as p,d as t,u as f}from"./index-BzRVav2J.js";import{i as c,o as I,w,j as h,e as m,b as e,c as y}from"./vendor-vue-NSDaktjZ.js";const K=()=>{const l=c(p,void 0),u=c(t,void 0);return{form:l,formItem:u}},L=(l,{formItemContext:u,disableIdGeneration:o,disableIdManagement:s})=>{o||(o=e(!1)),s||(s=e(!1));const v=e();let d;const r=y(()=>{var a;return!!(!(l.label||l.ariaLabel)&&u&&u.inputIds&&((a=u.inputIds)==null?void 0:a.length)<=1)});return I(()=>{d=w([h(l,"id"),o],([a,n])=>{const i=a??(n?void 0:f().value);i!==v.value&&(u?.removeInputId&&(v.value&&u.removeInputId(v.value),!s?.value&&!n&&i&&u.addInputId(i)),v.value=i)},{immediate:!0})}),m(()=>{d&&d(),u?.removeInputId&&v.value&&u.removeInputId(v.value)}),{isLabeledByFormItem:r,inputId:v}};export{L as a,K as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as i}from"./index-BzRVav2J.js";const n=o=>["",...i].includes(o);export{n as i};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as l}from"./index-
|
|
1
|
+
import{w as l}from"./index-ZhVk9kkG.js";import"./index.browser.esm-DkzdYcbc.js";import"./vendor-dayjs-v0j1UNZp.js";import"./index-BzRVav2J.js";import"./vendor-vue-NSDaktjZ.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-vue-router-Kg6s1a65.js";import"./index-9HGDSJTR.js";import"./signer-VxQoXw0x.js";import"./types-Cvj5H4DH.js";const n=l`<svg fill="none" viewBox="0 0 28 28">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as l}from"./index-
|
|
1
|
+
import{w as l}from"./index-ZhVk9kkG.js";import"./index.browser.esm-DkzdYcbc.js";import"./vendor-dayjs-v0j1UNZp.js";import"./index-BzRVav2J.js";import"./vendor-vue-NSDaktjZ.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-vue-router-Kg6s1a65.js";import"./index-9HGDSJTR.js";import"./signer-VxQoXw0x.js";import"./types-Cvj5H4DH.js";const d=l`<svg fill="none" viewBox="0 0 14 14">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{v as ae,x as ne,y as se,z as f,A as E,B as g,C as r,D,E as Q,F as Z,R as l,G as v,I as H,J as ce,K as C,L as le,M as q,S as V,N as h,O as A,P as M,Q as F,T as $,U as B,V as we,W as de,X as ue,Y as pe}from"./index-
|
|
1
|
+
import{v as ae,x as ne,y as se,z as f,A as E,B as g,C as r,D,E as Q,F as Z,R as l,G as v,I as H,J as ce,K as C,L as le,M as q,S as V,N as h,O as A,P as M,Q as F,T as $,U as B,V as we,W as de,X as ue,Y as pe}from"./index-ZhVk9kkG.js";import{c as u,n as d,r as w,o as X,U as me}from"./index-CIdZDW4_.js";import"./index.browser.esm-DkzdYcbc.js";import"./vendor-dayjs-v0j1UNZp.js";import"./index-BzRVav2J.js";import"./vendor-vue-NSDaktjZ.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-vue-router-Kg6s1a65.js";import"./index-9HGDSJTR.js";import"./signer-VxQoXw0x.js";import"./types-Cvj5H4DH.js";const m=se({message:"",open:!1,triggerRect:{width:0,height:0,top:0,left:0},variant:"shade"}),T={state:m,subscribe(n){return ne(m,()=>n(m))},subscribeKey(n,e){return ae(m,n,e)},showTooltip({message:n,triggerRect:e,variant:t}){m.open=!0,m.message=n,m.triggerRect=e,m.variant=t},hide(){m.open=!1,m.message="",m.triggerRect={width:0,height:0,top:0,left:0}}},he=f`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
border-radius: clamp(0px, var(--wui-border-radius-l), 44px);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as o}from"./index-
|
|
1
|
+
import{w as o}from"./index-ZhVk9kkG.js";import"./index.browser.esm-DkzdYcbc.js";import"./vendor-dayjs-v0j1UNZp.js";import"./index-BzRVav2J.js";import"./vendor-vue-NSDaktjZ.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-vue-router-Kg6s1a65.js";import"./index-9HGDSJTR.js";import"./signer-VxQoXw0x.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 a}from"./index-
|
|
1
|
+
import{w as a}from"./index-ZhVk9kkG.js";import"./index.browser.esm-DkzdYcbc.js";import"./vendor-dayjs-v0j1UNZp.js";import"./index-BzRVav2J.js";import"./vendor-vue-NSDaktjZ.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-vue-router-Kg6s1a65.js";import"./index-9HGDSJTR.js";import"./signer-VxQoXw0x.js";import"./types-Cvj5H4DH.js";const h=a`
|
|
2
2
|
<svg fill="none" viewBox="0 0 48 44">
|
|
3
3
|
<path
|
|
4
4
|
style="fill: var(--wui-color-bg-300);"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as l}from"./index-
|
|
1
|
+
import{w as l}from"./index-ZhVk9kkG.js";import"./index.browser.esm-DkzdYcbc.js";import"./vendor-dayjs-v0j1UNZp.js";import"./index-BzRVav2J.js";import"./vendor-vue-NSDaktjZ.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-vue-router-Kg6s1a65.js";import"./index-9HGDSJTR.js";import"./signer-VxQoXw0x.js";import"./types-Cvj5H4DH.js";const n=l`<svg fill="none" viewBox="0 0 96 67">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
d="M25.32 18.8a32.56 32.56 0 0 1 45.36 0l1.5 1.47c.63.62.63 1.61 0 2.22l-5.15 5.05c-.31.3-.82.3-1.14 0l-2.07-2.03a22.71 22.71 0 0 0-31.64 0l-2.22 2.18c-.31.3-.82.3-1.14 0l-5.15-5.05a1.55 1.55 0 0 1 0-2.22l1.65-1.62Zm56.02 10.44 4.59 4.5c.63.6.63 1.6 0 2.21l-20.7 20.26c-.62.61-1.63.61-2.26 0L48.28 41.83a.4.4 0 0 0-.56 0L33.03 56.21c-.63.61-1.64.61-2.27 0L10.07 35.95a1.55 1.55 0 0 1 0-2.22l4.59-4.5a1.63 1.63 0 0 1 2.27 0L31.6 43.63a.4.4 0 0 0 .57 0l14.69-14.38a1.63 1.63 0 0 1 2.26 0l14.69 14.38a.4.4 0 0 0 .57 0l14.68-14.38a1.63 1.63 0 0 1 2.27 0Z"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as r}from"./index-
|
|
1
|
+
import{w as r}from"./index-ZhVk9kkG.js";import"./index.browser.esm-DkzdYcbc.js";import"./vendor-dayjs-v0j1UNZp.js";import"./index-BzRVav2J.js";import"./vendor-vue-NSDaktjZ.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-vue-router-Kg6s1a65.js";import"./index-9HGDSJTR.js";import"./signer-VxQoXw0x.js";import"./types-Cvj5H4DH.js";const d=r`<svg fill="none" viewBox="0 0 20 20">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
d="M11 6.67a1 1 0 1 0-2 0v2.66a1 1 0 0 0 2 0V6.67ZM10 14.5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{W as t}from"./index-
|
|
1
|
+
import{W as t}from"./index-BzRVav2J.js";import"./vendor-vue-NSDaktjZ.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-dayjs-v0j1UNZp.js";import"./vendor-vue-router-Kg6s1a65.js";class m extends t{constructor(){super(),this.handleVisibilityChange=()=>{const e={isActive:document.hidden!==!0};this.notifyListeners("appStateChange",e),document.hidden?this.notifyListeners("pause",null):this.notifyListeners("resume",null)},document.addEventListener("visibilitychange",this.handleVisibilityChange,!1)}exitApp(){throw this.unimplemented("Not implemented on web.")}async getInfo(){throw this.unimplemented("Not implemented on web.")}async getLaunchUrl(){return{url:""}}async getState(){return{isActive:document.hidden!==!0}}async minimizeApp(){throw this.unimplemented("Not implemented on web.")}async toggleBackButtonHandler(){throw this.unimplemented("Not implemented on web.")}async getAppLanguage(){return{value:navigator.language.split("-")[0].toLowerCase()}}}export{m as AppWeb};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{W as n}from"./index-
|
|
1
|
+
import{W as n}from"./index-BzRVav2J.js";import"./vendor-vue-NSDaktjZ.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-dayjs-v0j1UNZp.js";import"./vendor-vue-router-Kg6s1a65.js";class t extends n{constructor(){super(),this._lastWindow=null}async open(o){this._lastWindow=window.open(o.url,o.windowName||"_blank")}async close(){return new Promise((o,s)=>{this._lastWindow!=null?(this._lastWindow.close(),this._lastWindow=null,o()):s("No active window to close!")})}}const c=new t;export{c as Browser,t as BrowserWeb};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as i}from"./index-
|
|
1
|
+
import{w as i}from"./index-ZhVk9kkG.js";import"./index.browser.esm-DkzdYcbc.js";import"./vendor-dayjs-v0j1UNZp.js";import"./index-BzRVav2J.js";import"./vendor-vue-NSDaktjZ.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-vue-router-Kg6s1a65.js";import"./index-9HGDSJTR.js";import"./signer-VxQoXw0x.js";import"./types-Cvj5H4DH.js";const e=i`<svg fill="none" viewBox="0 0 41 40">
|
|
2
2
|
<g clip-path="url(#a)">
|
|
3
3
|
<path fill="#000" d="M.8 0h40v40H.8z" />
|
|
4
4
|
<path
|
package/dist/index.html
CHANGED
|
@@ -253,7 +253,7 @@
|
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
</style>
|
|
256
|
-
<script type="module" crossorigin src="/assets/index-
|
|
256
|
+
<script type="module" crossorigin src="/assets/index-BzRVav2J.js"></script>
|
|
257
257
|
<link rel="modulepreload" crossorigin href="/assets/vendor-vue-NSDaktjZ.js">
|
|
258
258
|
<link rel="modulepreload" crossorigin href="/assets/vendor-axios-B8_nURbH.js">
|
|
259
259
|
<link rel="modulepreload" crossorigin href="/assets/vendor-dayjs-v0j1UNZp.js">
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as D}from"./index.es-DoDsyBxd.js";import{E as W}from"./index-CghmaEfO.js";import{E as se}from"./index-BRqPnPCL.js";import{d as b,H as c,E as o,z as O,C as s,y as d,D as r,q as n,F as a,O as G,N as q,J as f,x as v,I as U,G as R,K as H,M as P,u as A,c as T,w as ne,L as re}from"./vendor-vue-NSDaktjZ.js";import{G as V,bl as ie,ez as X,eA as Y,X as K,J as ae,S as L,cs as te,eB as Z,eC as le,cr as ce,n as de}from"./index-Bwh4uhxH.js";import{a as ue}from"./errorCode-Cqj9Td_Z.js";import{p as I}from"./producer-CI1GeNU0.js";import{b as pe}from"./producer-DP85fuAq.js";import{E as me}from"./index-DDM_letT.js";import{E as fe,a as he}from"./index-Bs4QQKmj.js";import{I as F,S as _e,l as $e}from"./pagination-DuUw6h7L.js";import{E as ge}from"./index-CZoz3sTY.js";import{E as w}from"./index-CD3hMCXK.js";import{E as z}from"./index-Df-EZV4-.js";import{u as j,F as ve,O as ye,_ as ee,P as ke,a as be,V as we,E as Ce}from"./IconPark.vue_vue_type_script_setup_true_lang-ChnszgHA.js";import{E as Q}from"./index-udv8oHBR.js";import{E as N}from"./index-Cdu2CINy.js";import{E as Ve,a as Se}from"./index-BipWEOw7.js";import{E as x}from"./index-Biwor0fW.js";import{E as Ue,a as Ee}from"./index-MJt9uRMV.js";import{C as Pe}from"./Consumption-DTqKtl19.js";import{a as Ae}from"./price-Dq6B3nmI.js";import{E as Te,b as Fe,a as Ie}from"./index-DG93bVkv.js";import{E as Le}from"./index-CdNNDZgX.js";import{E as Ge}from"./index-D8r95ZCp.js";import{N as je}from"./NoTasks-Dro6OdxD.js";import{a as De,E as Re}from"./index-ByGJSI5C.js";import"./use-form-item-CkUvjro6.js";import"./index-BuyEbX8F.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-dayjs-v0j1UNZp.js";import"./vendor-vue-router-Kg6s1a65.js";import"./validator-BYlyQQaq.js";import"./index-CWWZeClw.js";import"./index-Boh3hilg.js";import"./typescript-C7vXUz1j.js";import"./strings-beZM2Y-f.js";import"./isEqual-CgVTCLh1.js";import"./_Uint8Array-JndvkAwf.js";import"./castArray-BzRYTmyg.js";import"./debounce-D7YINRDE.js";import"./_baseIteratee-BaTk7Xco.js";import"./index-Dy5k6Duv.js";import"./index-DSAaysXY.js";import"./_baseClone-BywLfCY-.js";import"./_initCloneObject-D5P_u5bs.js";import"./index-nLjkUfZa.js";import"./index-Cu41y2Fl.js";import"./index-CAOsMXTW.js";import"./dropdown-B9aMQjZh.js";const Ze=b({name:"LayoutProducer",components:{ElDrawer:se,ElButton:W,FontAwesomeIcon:D},data(){return{drawer:!1,preview:!1}},computed:{}}),ze={class:"main flex flex-row flex-1"},Ne={class:"config w-[320px] flex-none h-full overflow-y-auto bg-[var(--app-sidebar-bg)] border-r border-[var(--app-border-subtle)]"},Me={class:"result h-full flex flex-col flex-1 min-w-0 overflow-x-hidden bg-[var(--app-content-bg)]"},Be={class:"preview h-full w-[300px] flex flex-col"};function Oe(e,t,l,i,h,p){const u=r("font-awesome-icon"),m=r("el-button"),_=r("el-drawer");return n(),c("div",ze,[o("div",Ne,[O(e.$slots,"config",{},void 0,!0)]),o("div",Me,[O(e.$slots,"result",{},void 0,!0)]),o("div",Be,[O(e.$slots,"preview",{},void 0,!0)]),s(m,{circle:"",class:"menu",onClick:t[0]||(t[0]=$=>e.drawer=!0)},{default:d(()=>[s(u,{icon:"fa-solid fa-magic"})]),_:1}),s(_,{modelValue:e.drawer,"onUpdate:modelValue":t[1]||(t[1]=$=>e.drawer=$),direction:"ltr","with-header":!1,size:"340px",class:"drawer"},{default:d(()=>[O(e.$slots,"config",{},void 0,!0)]),_:3},8,["modelValue"])])}const qe=V(Ze,[["render",Oe],["__scopeId","data-v-7453886f"]]),We=b({name:"TypeSelector",components:{ElSelect:he,ElOption:fe,ElSwitch:me},data(){return{options:[{label:"FUZZ-2.0 Pro",value:"FUZZ-2.0 Pro",info:"8 min"},{label:"FUZZ-2.0",value:"FUZZ-2.0",info:"8 min"},{label:"FUZZ-2.0 Raw",value:"FUZZ-2.0 Raw",info:"8 min"},{label:"FUZZ-1.1 Pro",value:"FUZZ-1.1 Pro",info:"4 min"},{label:"FUZZ-1.0 Pro",value:"FUZZ-1.0 Pro",info:"4 min"},{label:"FUZZ-1.1",value:"FUZZ-1.1",info:"4 min"},{label:"FUZZ-1.0",value:"FUZZ-1.0",info:"2 min"},{label:"FUZZ-0.8",value:"FUZZ-0.8",info:"2 min"}]}},computed:{custom:{get(){return this.$store.state.producer?.config?.custom||!1},set(e){this.$store.commit("producer/setConfig",{...this.$store.state.producer?.config,custom:e})}},instrumental:{get(){return this.$store.state.producer?.config?.instrumental||!1},set(e){this.$store.commit("producer/setConfig",{...this.$store.state.producer?.config,instrumental:e})}},model:{get(){return this.$store.state.producer?.config?.model},set(e){this.$store.commit("producer/setConfig",{...this.$store.state.producer?.config,model:e})}}},mounted(){this.model||(this.model=pe)}}),He={class:"flex items-center justify-between mb-3"},Ke={class:"text-sm font-bold"},Je={class:"mb-3"},Xe={class:"flex items-center mb-1"},Ye={class:"text-sm font-bold"},Qe={class:"flex items-center justify-between w-full"},xe={class:"text-xs text-[var(--el-text-color-placeholder)]"},et={key:0,class:"flex items-center justify-between mb-3"},tt={class:"text-sm font-bold"};function ot(e,t,l,i,h,p){const u=r("el-switch"),m=r("el-option"),_=r("el-select");return n(),c("div",null,[o("div",He,[o("span",Ke,a(e.$t("producer.name.type")),1),s(u,{modelValue:e.custom,"onUpdate:modelValue":t[0]||(t[0]=$=>e.custom=$)},null,8,["modelValue"])]),o("div",Je,[o("div",Xe,[o("span",Ye,a(e.$t("producer.name.model")),1)]),s(_,{modelValue:e.model,"onUpdate:modelValue":t[1]||(t[1]=$=>e.model=$),class:"w-full",size:"default",placeholder:e.$t("producer.placeholder.select")},{default:d(()=>[(n(!0),c(G,null,q(e.options,$=>(n(),v(m,{key:$.value,label:$.label,value:$.value},{default:d(()=>[o("div",Qe,[o("span",null,a($.label),1),o("span",xe,a($.info),1)])]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),e.custom?(n(),c("div",et,[o("span",tt,a(e.$t("producer.name.instrumental")),1),s(u,{modelValue:e.instrumental,"onUpdate:modelValue":t[2]||(t[2]=$=>e.instrumental=$)},null,8,["modelValue"])])):f("",!0)])}const st=V(We,[["render",ot]]),nt=b({name:"UploadAudio",components:{ElUpload:ge,ElButton:W,InfoIcon:F,FontAwesomeIcon:D},emits:["change"],data(){return{fileList:[],uploadUrl:ie()+"/api/v1/files/"}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},credential(){return this.$store.state.producer.credential},config(){return this.$store.state.producer.config},urls(){return this.fileList.map(e=>e?.response?.file_url)},value:{get(){return this.$store.state.producer?.config?.audio_id},set(){}}},watch:{urls:{handler(e){this.$emit("change",e)}}},mounted(){this.value||(this.value=void 0),this.onSetAudio()},methods:{onExceed(){w.warning(this.$t("producer.message.uploadReferencesExceed"))},onError(){w.error(this.$t("producer.message.uploadReferencesError"))},async onSuccess(){const e=this.urls?.[0];await this.onGenerateAudioId(e)},async onGenerateAudioId(e){const t={audio_url:e},l=this.credential?.token;if(!l){console.error("no token specified");return}w.info(this.$t("producer.message.startingUploadAudio")),I.upload(t,{token:l}).then(i=>{console.debug("get upload music success",i.data);const h=i.data?.data.audio_id;this.$store.commit("producer/setConfig",{...this.$store.state.producer?.config,audio_id:h,action:"upload_extend"}),w.success(this.$t("producer.message.startUploadAudioSuccess"))}).catch(i=>{w.error(i?.response?.data?.error?.message||this.$t("producer.message.startUploadAudioFailed"))})},onSetAudio(){}}}),rt={class:"relative"},it={class:"flex justify-between"},at={class:"flex justify-start items-center"},lt={class:"text-sm font-bold"};function ct(e,t,l,i,h,p){const u=r("info-icon"),m=r("font-awesome-icon"),_=r("el-button"),$=r("el-upload");return n(),c("div",rt,[o("div",it,[o("div",at,[o("span",lt,a(e.$t("producer.name.referenceAudios")),1),s(u,{content:e.$t("producer.description.uploadAudios")},null,8,["content"])])]),s($,{"file-list":e.fileList,"onUpdate:fileList":t[0]||(t[0]=k=>e.fileList=k),name:"file",limit:1,class:"upload-wrapper",action:e.uploadUrl,accept:".mp3","show-file-list":!0,"on-exceed":e.onExceed,"on-error":e.onError,"on-success":e.onSuccess,headers:e.headers},{default:d(()=>[s(_,{round:"",type:"primary",size:"small",class:"btn btn-upload"},{default:d(()=>[s(m,{icon:"fa-solid fa-upload",class:"icon mr-1"}),U(" "+a(e.$t("producer.button.uploadAudios")),1)]),_:1})]),_:1},8,["file-list","action","on-exceed","on-error","on-success","headers"])])}const dt=V(nt,[["render",ct],["__scopeId","data-v-e4cd0467"]]),ut="",pt=b({name:"PromptInput",components:{ElInput:z,InfoIcon:F},computed:{prompt:{get(){return this.$store.state.producer?.config?.prompt},set(e){this.$store.commit("producer/setConfig",{...this.$store.state.producer?.config,prompt:e})}}},mounted(){this.prompt||(this.prompt=ut)}}),mt={class:"field"},ft={class:"flex items-center mb-1"},ht={class:"text-sm font-bold"};function _t(e,t,l,i,h,p){const u=r("info-icon"),m=r("el-input");return n(),c("div",mt,[o("div",ft,[o("span",ht,a(e.$t("producer.name.songDescription")),1),s(u,{content:e.$t("producer.description.prompt")},null,8,["content"])]),s(m,{modelValue:e.prompt,"onUpdate:modelValue":t[0]||(t[0]=_=>e.prompt=_),rows:4,type:"textarea",placeholder:e.$t("producer.placeholder.prompt")},null,8,["modelValue","placeholder"])])}const $t=V(pt,[["render",_t]]),gt="",vt=b({name:"LyricInput",components:{ElInput:z,ElButton:W,FontAwesomeIcon:D,InfoIcon:F},data(){return{generatingLyrics:!1}},computed:{lyric:{get(){return this.$store.state.producer?.config?.lyric},set(e){this.$store.commit("producer/setConfig",{...this.$store.state.producer?.config,lyric:e})}},config(){return this.$store.state.producer?.config},credential(){return this.$store.state.producer?.credential}},mounted(){this.lyric||(this.lyric=gt)},methods:{async onGenerateLyrics(){const e=this.credential?.token;if(!e)return;const t=this.config?.style||this.config?.title||"a beautiful song";this.generatingLyrics=!0,w.info(this.$t("producer.message.generatingLyrics"));try{const i=(await I.lyric({prompt:t},{token:e})).data?.data;i?.text&&(this.lyric=i.text,i?.title&&!this.config?.title&&this.$store.commit("producer/setConfig",{...this.$store.state.producer?.config,lyric:i.text,title:i.title}),w.success(this.$t("producer.message.generateLyricsSuccess")))}catch{w.error(this.$t("producer.message.generateLyricsFailed"))}finally{this.generatingLyrics=!1}}}}),yt={class:"field"},kt={class:"flex items-center justify-between mb-1"},bt={class:"flex items-center"},wt={class:"text-sm font-bold"};function Ct(e,t,l,i,h,p){const u=r("info-icon"),m=r("font-awesome-icon"),_=r("el-button"),$=r("el-input");return n(),c("div",yt,[o("div",kt,[o("div",bt,[o("span",wt,a(e.$t("producer.name.lyrics")),1),s(u,{content:e.$t("producer.description.lyrics")},null,8,["content"])]),e.config?.action!=="extend"?(n(),v(_,{key:0,size:"small",loading:e.generatingLyrics,round:"",onClick:e.onGenerateLyrics},{default:d(()=>[e.generatingLyrics?f("",!0):(n(),v(m,{key:0,icon:"fa-solid fa-wand-magic-sparkles",class:"mr-1"})),U(" "+a(e.$t("producer.button.generate_lyrics")),1)]),_:1},8,["loading","onClick"])):f("",!0)]),e.config?.action!=="extend"?(n(),v($,{key:0,modelValue:e.lyric,"onUpdate:modelValue":t[0]||(t[0]=k=>e.lyric=k),rows:5,type:"textarea",class:"lyrics",placeholder:e.$t("producer.placeholder.lyrics")},null,8,["modelValue","placeholder"])):(n(),v($,{key:1,modelValue:e.lyric,"onUpdate:modelValue":t[1]||(t[1]=k=>e.lyric=k),rows:5,type:"textarea",class:"lyrics",placeholder:e.$t("producer.placeholder.extend.lyrics")},null,8,["modelValue","placeholder"]))])}const Vt=V(vt,[["render",Ct],["__scopeId","data-v-88c6da2b"]]),St=b({name:"StyleInput",components:{ElInput:z,InfoIcon:F},computed:{style:{get(){return this.$store.state.producer?.config?.style},set(e){this.$store.commit("producer/setConfig",{...this.$store.state.producer?.config,style:e})}}}}),Ut={class:"field"},Et={class:"flex items-center justify-between mb-1"},Pt={class:"flex items-center"},At={class:"text-sm font-bold"};function Tt(e,t,l,i,h,p){const u=r("info-icon"),m=r("el-input");return n(),c("div",Ut,[o("div",Et,[o("div",Pt,[o("span",At,a(e.$t("producer.name.style")),1),s(u,{content:e.$t("producer.description.style")},null,8,["content"])])]),s(m,{modelValue:e.style,"onUpdate:modelValue":t[0]||(t[0]=_=>e.style=_),rows:2,type:"textarea",placeholder:e.$t("producer.placeholder.style")},null,8,["modelValue","placeholder"])])}const Ft=V(St,[["render",Tt]]),It=b({name:"TitleInput",components:{ElInput:z,InfoIcon:F},computed:{title:{get(){return this.$store.state.producer?.config?.title},set(e){this.$store.commit("producer/setConfig",{...this.$store.state.producer?.config,title:e})}}}}),Lt={class:"field"},Gt={class:"flex items-center mb-1"},jt={class:"text-sm font-bold"};function Dt(e,t,l,i,h,p){const u=r("info-icon"),m=r("el-input");return n(),c("div",Lt,[o("div",Gt,[o("span",jt,a(e.$t("producer.name.title")),1),s(u,{content:e.$t("producer.description.title")},null,8,["content"])]),s(m,{modelValue:e.title,"onUpdate:modelValue":t[0]||(t[0]=_=>e.title=_),placeholder:e.$t("producer.placeholder.title")},null,8,["modelValue","placeholder"])])}const Rt=V(It,[["render",Dt]]),Zt=b({name:"ExtendFromInput",components:{ElImage:N,ElIcon:K,ElInputNumber:Q,VideoPlay:Y,VideoPause:X},data(){return{}},computed:{audio(){return this.$store.state.producer?.config?.audio},value:{get(){return this.$store.state.producer?.config?.continue_at},set(e){console.debug("set continue_at",e),this.$store.commit("producer/setConfig",{...this.$store.state.producer?.config,continue_at:e?parseInt(e):void 0})}}},mounted(){this.value||(this.value=void 0)},methods:{handleChange(e){if(e===void 0){this.value=void 0;return}e<0?this.value=0:e>this.audio?.duration?this.value=this.audio?.duration:this.value=e},useFormatDuring:j,onPlay(e){this.$store.dispatch("producer/setAudio",{...this.$store.state.producer.audio,...e,state:"playing"}),console.log("on play")},onPause(e){this.$store.dispatch("producer/setAudio",{...this.$store.state.producer.audio,...e,state:"paused"}),console.log("on pause")},onClick(e){this.$store.state?.producer?.audio?.id!==e.id&&this.onPlay({...e,progress:0})}}}),zt={class:"field"},Nt={class:"box"},Mt={class:"title font-bold"},Bt={class:"input-wrapper"},Ot={class:"task"},qt={class:"left"},Wt={key:2,class:"duration"},Ht={class:"info"},Kt={class:"title"},Jt={class:"style"};function Xt(e,t,l,i,h,p){const u=r("el-input-number"),m=r("el-image"),_=r("video-pause"),$=r("el-icon"),k=r("video-play"),y=H("loading");return n(),c("div",zt,[o("div",Nt,[o("h2",Mt,a(e.$t("producer.name.extend")),1),o("div",Bt,[s(u,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=E=>e.value=E),class:"value",min:0,max:e.audio?.duration,controls:!1,placeholder:e.$t("producer.placeholder.extend.continue_at"),onChange:e.handleChange},null,8,["modelValue","max","placeholder","onChange"])])]),o("div",Ot,[e.audio?(n(),c("div",{key:0,class:"audio",onClick:t[3]||(t[3]=E=>e.onClick(e.audio))},[R((n(),c("div",qt,[s(m,{src:e.audio?.image_url,class:"cover",fit:"cover"},null,8,["src"]),e.audio?.audio_url&&e.$store.state?.producer?.audio?.id===e.audio.id&&e.$store.state?.producer?.audio?.state==="playing"?(n(),c("div",{key:0,class:"overlay",onClick:t[1]||(t[1]=E=>e.onPause(e.audio))},[s($,null,{default:d(()=>[s(_)]),_:1})])):f("",!0),e.audio?.audio_url&&(e.$store.state?.producer?.audio?.id!==e.audio.id||e.$store.state?.producer?.audio?.id===e.audio.id&&e.$store.state?.producer?.audio?.state==="paused")?(n(),c("div",{key:1,class:"overlay",onClick:t[2]||(t[2]=E=>e.onPlay(e.audio))},[s($,null,{default:d(()=>[s(k)]),_:1})])):f("",!0),e.audio?.duration?(n(),c("div",Wt,a(e.useFormatDuring(e.audio?.duration)),1)):f("",!0)])),[[y,!e.audio?.audio_url]]),o("div",Ht,[o("h2",Kt,a(e.audio?.title),1),o("p",Jt,a(e.audio?.style),1)])])):f("",!0)])])}const Yt=V(Zt,[["render",Xt],["__scopeId","data-v-26d43480"]]),Qt=b({name:"CoverFromInput",components:{ElImage:N,ElIcon:K,VideoPlay:Y,VideoPause:X},data(){return{}},computed:{audio(){return this.$store.state.producer?.config?.audio},value:{get(){return this.$store.state.producer?.config?.continue_at},set(e){console.debug("set continue_at",e),this.$store.commit("producer/setConfig",{...this.$store.state.producer?.config,continue_at:e?parseInt(e):void 0})}}},mounted(){this.value||(this.value=void 0)},methods:{handleChange(e){e<0?this.value=0:e>this.audio?.duration?this.value=this.audio?.duration:this.value=e},useFormatDuring:j,onPlay(e){this.$store.dispatch("producer/setAudio",{...this.$store.state.producer.audio,...e,state:"playing"}),console.log("on play")},onPause(e){this.$store.dispatch("producer/setAudio",{...this.$store.state.producer.audio,...e,state:"paused"}),console.log("on pause")},onClick(e){this.$store.state?.producer?.audio?.id!==e.id&&this.onPlay({...e,progress:0})}}}),xt={class:"field"},eo={class:"box"},to={class:"title font-bold"},oo={class:"task"},so={class:"left"},no={key:2,class:"duration"},ro={class:"info"},io={class:"title"},ao={class:"style"};function lo(e,t,l,i,h,p){const u=r("el-image"),m=r("video-pause"),_=r("el-icon"),$=r("video-play"),k=H("loading");return n(),c("div",xt,[o("div",eo,[o("h2",to,a(e.$t("producer.name.cover")),1)]),o("div",oo,[e.audio?(n(),c("div",{key:0,class:"audio",onClick:t[2]||(t[2]=y=>e.onClick(e.audio))},[R((n(),c("div",so,[s(u,{src:e.audio?.image_url,class:"cover",fit:"cover"},null,8,["src"]),e.audio?.audio_url&&e.$store.state?.producer?.audio?.id===e.audio.id&&e.$store.state?.producer?.audio?.state==="playing"?(n(),c("div",{key:0,class:"overlay",onClick:t[0]||(t[0]=y=>e.onPause(e.audio))},[s(_,null,{default:d(()=>[s(m)]),_:1})])):f("",!0),e.audio?.audio_url&&(e.$store.state?.producer?.audio?.id!==e.audio.id||e.$store.state?.producer?.audio?.id===e.audio.id&&e.$store.state?.producer?.audio?.state==="paused")?(n(),c("div",{key:1,class:"overlay",onClick:t[1]||(t[1]=y=>e.onPlay(e.audio))},[s(_,null,{default:d(()=>[s($)]),_:1})])):f("",!0),e.audio?.duration?(n(),c("div",no,a(e.useFormatDuring(e.audio?.duration)),1)):f("",!0)])),[[k,!e.audio?.audio_url]]),o("div",ro,[o("h2",io,a(e.audio?.title),1),o("p",ao,a(e.audio?.style),1)])])):f("",!0)])])}const co=V(Qt,[["render",lo],["__scopeId","data-v-d8a8e583"]]),uo=b({name:"VocalGenderSelector",components:{ElRadioGroup:Se,ElRadioButton:Ve,InfoIcon:F},computed:{vocalGender:{get(){return this.$store.state.producer?.config?.vocal_gender||""},set(e){this.$store.commit("producer/setConfig",{...this.$store.state.producer?.config,vocal_gender:e||void 0})}}}}),po={class:"mb-2"},mo={class:"flex items-center mb-1"},fo={class:"text-sm font-bold"};function ho(e,t,l,i,h,p){const u=r("info-icon"),m=r("el-radio-button"),_=r("el-radio-group");return n(),c("div",po,[o("div",mo,[o("span",fo,a(e.$t("producer.name.vocalGender")),1),s(u,{content:e.$t("producer.description.vocalGender")},null,8,["content"])]),s(_,{modelValue:e.vocalGender,"onUpdate:modelValue":t[0]||(t[0]=$=>e.vocalGender=$)},{default:d(()=>[s(m,{value:""},{default:d(()=>[U(a(e.$t("producer.gender.auto")),1)]),_:1}),s(m,{value:"f"},{default:d(()=>[U(a(e.$t("producer.gender.female")),1)]),_:1}),s(m,{value:"m"},{default:d(()=>[U(a(e.$t("producer.gender.male")),1)]),_:1})]),_:1},8,["modelValue"])])}const _o=V(uo,[["render",ho]]),$o=b({name:"AdvancedParams",components:{ElCollapse:Ee,ElCollapseItem:Ue,ElInput:z,ElSlider:x,ElInputNumber:Q},data(){return{activeNames:[]}},computed:{config(){return this.$store.state.producer?.config},styleNegative:{get(){return this.$store.state.producer?.config?.style_negative||""},set(e){this.$store.commit("producer/setConfig",{...this.$store.state.producer?.config,style_negative:e||void 0})}},lyricPrompt:{get(){return this.$store.state.producer?.config?.lyric_prompt||""},set(e){this.$store.commit("producer/setConfig",{...this.$store.state.producer?.config,lyric_prompt:e||void 0})}},weirdness:{get(){return this.$store.state.producer?.config?.weirdness??0},set(e){this.$store.commit("producer/setConfig",{...this.$store.state.producer?.config,weirdness:e||void 0})}},soundStrength:{get(){return this.$store.state.producer?.config?.sound_strength??50},set(e){this.$store.commit("producer/setConfig",{...this.$store.state.producer?.config,sound_strength:e})}},lyricsStrength:{get(){return this.$store.state.producer?.config?.lyrics_strength??50},set(e){this.$store.commit("producer/setConfig",{...this.$store.state.producer?.config,lyrics_strength:e})}},seed:{get(){return this.$store.state.producer?.config?.seed},set(e){this.$store.commit("producer/setConfig",{...this.$store.state.producer?.config,seed:e})}}}}),go={key:0,class:"mb-3"},vo={class:"flex items-center mb-1"},yo={class:"text-xs font-bold"},ko={key:1,class:"mb-3"},bo={class:"flex items-center mb-1"},wo={class:"text-xs font-bold"},Co={key:2,class:"mb-3"},Vo={class:"flex items-center justify-between mb-1"},So={class:"text-xs font-bold"},Uo={class:"text-xs text-[var(--el-text-color-secondary)]"},Eo={key:3,class:"mb-3"},Po={class:"flex items-center justify-between mb-1"},Ao={class:"text-xs font-bold"},To={class:"text-xs text-[var(--el-text-color-secondary)]"},Fo={key:4,class:"mb-3"},Io={class:"flex items-center justify-between mb-1"},Lo={class:"text-xs font-bold"},Go={class:"text-xs text-[var(--el-text-color-secondary)]"},jo={key:5,class:"mb-3"},Do={class:"flex items-center mb-1"},Ro={class:"text-xs font-bold"};function Zo(e,t,l,i,h,p){const u=r("el-input"),m=r("el-slider"),_=r("el-input-number"),$=r("el-collapse-item"),k=r("el-collapse");return n(),v(k,{modelValue:e.activeNames,"onUpdate:modelValue":t[6]||(t[6]=y=>e.activeNames=y),class:"advanced-collapse"},{default:d(()=>[s($,{title:e.$t("producer.name.advancedParams"),name:"advanced"},{default:d(()=>[e.config?.custom?(n(),c("div",go,[o("div",vo,[o("span",yo,a(e.$t("producer.name.styleNegative")),1)]),s(u,{modelValue:e.styleNegative,"onUpdate:modelValue":t[0]||(t[0]=y=>e.styleNegative=y),placeholder:e.$t("producer.placeholder.styleNegative")},null,8,["modelValue","placeholder"])])):f("",!0),e.config?.custom&&!e.config?.instrumental?(n(),c("div",ko,[o("div",bo,[o("span",wo,a(e.$t("producer.name.lyricPrompt")),1)]),s(u,{modelValue:e.lyricPrompt,"onUpdate:modelValue":t[1]||(t[1]=y=>e.lyricPrompt=y),placeholder:e.$t("producer.placeholder.lyricPrompt")},null,8,["modelValue","placeholder"])])):f("",!0),e.config?.custom?(n(),c("div",Co,[o("div",Vo,[o("span",So,a(e.$t("producer.name.weirdness")),1),o("span",Uo,a(e.weirdness??0),1)]),s(m,{modelValue:e.weirdness,"onUpdate:modelValue":t[2]||(t[2]=y=>e.weirdness=y),min:0,max:100,step:1},null,8,["modelValue"])])):f("",!0),e.config?.custom?(n(),c("div",Eo,[o("div",Po,[o("span",Ao,a(e.$t("producer.name.soundStrength")),1),o("span",To,a(e.soundStrength??50),1)]),s(m,{modelValue:e.soundStrength,"onUpdate:modelValue":t[3]||(t[3]=y=>e.soundStrength=y),min:0,max:100,step:1},null,8,["modelValue"])])):f("",!0),e.config?.custom&&!e.config?.instrumental?(n(),c("div",Fo,[o("div",Io,[o("span",Lo,a(e.$t("producer.name.lyricsStrength")),1),o("span",Go,a(e.lyricsStrength??50),1)]),s(m,{modelValue:e.lyricsStrength,"onUpdate:modelValue":t[4]||(t[4]=y=>e.lyricsStrength=y),min:0,max:100,step:1},null,8,["modelValue"])])):f("",!0),e.config?.custom?(n(),c("div",jo,[o("div",Do,[o("span",Ro,a(e.$t("producer.name.seed")),1)]),s(_,{modelValue:e.seed,"onUpdate:modelValue":t[5]||(t[5]=y=>e.seed=y),min:0,controls:!1,placeholder:e.$t("producer.placeholder.seed"),class:"w-full"},null,8,["modelValue","placeholder"])])):f("",!0)]),_:1},8,["title"])]),_:1},8,["modelValue"])}const zo=V($o,[["render",Zo],["__scopeId","data-v-88e65aee"]]),No=b({name:"ReplaceSectionInput",components:{ElInputNumber:Q,ElImage:N,InfoIcon:F},computed:{audio(){return this.$store.state.producer?.config?.audio},replaceSectionStart:{get(){return this.$store.state.producer?.config?.replace_section_start},set(e){this.$store.commit("producer/setConfig",{...this.$store.state.producer?.config,replace_section_start:e})}},replaceSectionEnd:{get(){return this.$store.state.producer?.config?.replace_section_end},set(e){this.$store.commit("producer/setConfig",{...this.$store.state.producer?.config,replace_section_end:e})}}},methods:{onClick(e){this.$store.dispatch("producer/setAudio",{...this.$store.state.producer.audio,...e,state:"playing"})}}}),Mo={class:"field"},Bo={class:"flex items-center mb-2"},Oo={class:"text-sm font-bold m-0"},qo={key:0,class:"task mb-2"},Wo={class:"left relative w-[50px] h-[50px] mr-3 flex-shrink-0"},Ho={class:"info flex-1 min-w-0"},Ko={class:"text-sm font-bold m-0 truncate"},Jo={class:"text-xs text-[var(--el-text-color-secondary)] m-0 truncate"},Xo={class:"flex gap-2"};function Yo(e,t,l,i,h,p){const u=r("info-icon"),m=r("el-image"),_=r("el-input-number"),$=H("loading");return n(),c("div",Mo,[o("div",Bo,[o("h2",Oo,a(e.$t("producer.name.replaceSection")),1),s(u,{content:e.$t("producer.description.replaceSection")},null,8,["content"])]),e.audio?(n(),c("div",qo,[o("div",{class:"audio flex items-center",onClick:t[0]||(t[0]=k=>e.onClick(e.audio))},[R((n(),c("div",Wo,[s(m,{src:e.audio?.image_url,class:"w-full h-full rounded",fit:"cover"},null,8,["src"])])),[[$,!e.audio?.audio_url]]),o("div",Ho,[o("h2",Ko,a(e.audio?.title),1),o("p",Jo,a(e.audio?.style),1)])])])):f("",!0),o("div",Xo,[s(_,{modelValue:e.replaceSectionStart,"onUpdate:modelValue":t[1]||(t[1]=k=>e.replaceSectionStart=k),class:"flex-1",min:0,max:e.audio?.duration,controls:!1,placeholder:e.$t("producer.placeholder.replaceSectionStart")},null,8,["modelValue","max","placeholder"]),s(_,{modelValue:e.replaceSectionEnd,"onUpdate:modelValue":t[2]||(t[2]=k=>e.replaceSectionEnd=k),class:"flex-1",min:e.replaceSectionStart||0,max:e.audio?.duration,controls:!1,placeholder:e.$t("producer.placeholder.replaceSectionEnd")},null,8,["modelValue","min","max","placeholder"])])])}const Qo=V(No,[["render",Yo]]),xo=b({name:"PresetPanel",components:{TypeSelector:st,PromptInput:$t,LyricInput:Vt,StyleInput:Ft,TitleInput:Rt,ExtendFromInput:Yt,CoverFromInput:co,UploadAudio:dt,VocalGenderSelector:_o,AdvancedParams:zo,ReplaceSectionInput:Qo,FontAwesomeIcon:D,ElButton:W,Consumption:Pe},emits:["generate"],computed:{config(){return this.$store.state.producer?.config},consumption(){return Ae(this.config,this.service?.cost)},service(){return this.$store.state.producer?.service},generateButtonText(){const e=this.config?.action;return e==="extend"?this.$t("producer.button.extend"):e==="cover"?this.$t("producer.button.cover_music"):e==="variation"?this.$t("producer.button.variation"):e==="replace_section"?this.$t("producer.button.replace_section"):e==="stems"?this.$t("producer.button.get_stems"):e==="swap_vocals"?this.$t("producer.button.swap_vocals"):e==="swap_instrumentals"?this.$t("producer.button.swap_instrumentals"):this.$t("producer.button.generate")}},methods:{onGenerate(){this.$emit("generate")}}}),es={class:"flex flex-col h-full"},ts={class:"flex-1 overflow-y-auto p-5"},os={class:"flex flex-col items-center justify-center px-5 pb-5"};function ss(e,t,l,i,h,p){const u=r("type-selector"),m=r("upload-audio"),_=r("prompt-input"),$=r("lyric-input"),k=r("style-input"),y=r("title-input"),E=r("vocal-gender-selector"),S=r("extend-from-input"),M=r("cover-from-input"),B=r("replace-section-input"),J=r("advanced-params"),g=r("consumption"),C=r("font-awesome-icon"),oe=r("el-button");return n(),c("div",es,[o("div",ts,[s(u,{class:"mb-4"}),s(m,{class:"mb-4"}),e.config?.custom?f("",!0):(n(),v(_,{key:0,class:"mb-4"})),e.config?.custom&&!e.config.instrumental?(n(),v($,{key:1,class:"mb-4"})):f("",!0),e.config?.custom?(n(),v(k,{key:2,class:"mb-4"})):f("",!0),e.config?.custom?(n(),v(y,{key:3,class:"mb-4"})):f("",!0),e.config?.custom&&!e.config.instrumental?(n(),v(E,{key:4,class:"mb-4"})):f("",!0),e.config?.action==="extend"?(n(),v(S,{key:5,class:"mb-4"})):f("",!0),e.config?.action==="cover"?(n(),v(M,{key:6,class:"mb-4"})):f("",!0),e.config?.action==="replace_section"?(n(),v(B,{key:7,class:"mb-4"})):f("",!0),s(J,{class:"mb-4"})]),o("div",os,[s(g,{value:e.consumption,service:e.service},null,8,["value","service"]),s(oe,{type:"primary",class:"btn w-full",round:"",onClick:e.onGenerate},{default:d(()=>[s(C,{icon:"fa-solid fa-magic",class:"mr-2"}),U(" "+a(e.generateButtonText),1)]),_:1},8,["onClick"])])])}const ns=V(xo,[["render",ss],["__scopeId","data-v-6642bb3c"]]),rs=te("producer"),is=b({name:"TaskPreview",components:{ElImage:N,ElIcon:K,ElTooltip:Le,FontAwesomeIcon:D,VideoPlay:Y,VideoPause:X,ElDropdown:Ie,ElDropdownMenu:Fe,ElDropdownItem:Te,Loading:ae},props:{modelValue:{type:Object,required:!0}},data(){return{isFetchingVideoUrl:!1,isFetchingWav:!1}},computed:{loading(){return this.$store.state.producer?.status?.getApplications===L.Request},credential(){return this.$store.state.producer.credential},config(){return this.$store.state.producer.config},task(){return this.$store.state.producer?.tasks},audios(){const e=this.modelValue?.response?.data??[],t=this.modelValue?.request?.action;return t?e.map(l=>({...l,action:t})):e},application(){return this.$store.state.producer?.application},active(){return this.$store.state.producer?.tasks?.active}},methods:{useFormatDuring:j,onPlay(e){this.$store.dispatch("producer/setAudio",{...this.$store.state.producer.audio,...e,state:"playing"}),console.log("on play")},onPause(e){this.$store.dispatch("producer/setAudio",{...this.$store.state.producer.audio,...e,state:"paused"}),console.log("on pause")},onClick(e){this.$store.state?.producer?.audio?.id!==e.id&&this.onPlay({...e,progress:0})},onExtend(e,t){e.stopPropagation(),console.debug("set config",t),this.$store.commit("producer/setConfig",{...this.$store.state.producer?.config,model:t.model,custom:!0,instrumental:!1,style:t.style,action:"extend",audio:t,audio_id:t.id,continue_at:t.duration})},onDownload(e,t){e&&e.stopPropagation();const i=new URL(t).pathname,h=i.substring(i.lastIndexOf("/")+1);fetch(t).then(p=>p.blob()).then(p=>{ve.saveAs(p,h)})},async handleVideoDownload(e){if(e.video_url){this.onDownload(null,e.video_url);return}if(!this.isFetchingVideoUrl)try{this.isFetchingVideoUrl=!0;const t=await this.fetchVideoUrlFromApi(e?.id);console.log(`get videoUrl: ${t}`),e.video_url=t,this.onDownload(null,t)}catch(t){console.error("get videoUrl failed:",t),w.error(this.$t("producer.message.getVideoUrlFailed"))}finally{this.isFetchingVideoUrl=!1}},async fetchVideoUrlFromApi(e){return new Promise((t,l)=>{const i={audio_id:e},h=this.credential?.token;if(!h){console.error("no token specified"),l(new Error("No token specified"));return}I.video(i,{token:h}).then(p=>{const u=p.data?.data?.video_url;u?t(u):l(new Error("Video URL not found in response"))}).catch(p=>{l(p)})})},onPreview(e,t){e.stopPropagation(),window.open(t,"_blank")},async onGetStems(e){await this.onGenerateAudioUrl("stems",e)},onCover(e){this.$store.commit("producer/setConfig",{...this.$store.state.producer?.config,model:e.model,custom:!0,instrumental:!1,style:e.style,action:"cover",audio:e,audio_id:e.id})},onVariation(e){this.$store.commit("producer/setConfig",{...this.$store.state.producer?.config,model:e.model,custom:!0,style:e.style,action:"variation",audio:e,audio_id:e.id})},async onSwapVocals(e){await this.onGenerateAudioUrl("swap_vocals",e)},async onSwapInstrumentals(e){await this.onGenerateAudioUrl("swap_instrumentals",e)},async onGetAllStems(e){await this.onGenerateAudioUrl("all_stems",e)},onReplaceSection(e){this.$store.commit("producer/setConfig",{...this.$store.state.producer?.config,model:e.model,custom:!0,instrumental:!1,style:e.style,action:"replace_section",audio:e,audio_id:e.id,replace_section_start:0,replace_section_end:Math.min(30,e.duration||30)})},async handleWavDownload(e){if(!e?.id||this.isFetchingWav)return;const t=this.credential?.token;if(t)try{this.isFetchingWav=!0,w.info(this.$t("producer.message.fetchingWav"));const i=(await I.wav({audio_id:e.id},{token:t})).data?.data?.audio_url;i?this.onDownload(null,i):w.error(this.$t("producer.message.fetchWavFailed"))}catch{w.error(this.$t("producer.message.fetchWavFailed"))}finally{this.isFetchingWav=!1}},async onGenerateAudioUrl(e,t){const l={action:e,audio_id:t,callback_url:rs},i=this.credential?.token;if(!i){console.error("no token specified");return}w.info(this.$t("producer.message.startingTask")),I.audio(l,{token:i}).then(()=>{w.success(this.$t("producer.message.startTaskSuccess"))}).catch(h=>{w.error(h?.response?.data?.error?.message||this.$t("producer.message.startTaskFailed"))}).finally(async()=>{await this.onGetTasks(),await this.onScrollDown()})},async onScrollDown(){setTimeout(()=>{const e=document.querySelector(".tasks");e&&(e.scrollTop=e.scrollHeight)},1e3)},async onGetTasks(){if(this.loading){console.debug("loading");return}await this.$store.dispatch("producer/getTasks",{limit:30,offset:0})}}}),as={class:"task"},ls=["onClick"],cs={class:"left"},ds=["onClick"],us=["onClick"],ps={key:2,class:"duration"},ms={class:"info"},fs={class:"title"},hs={class:"style"},_s={class:"right"},$s={class:"el-dropdown-link"},gs={class:"flex items-center min-w-[120px]"},vs={class:"flex items-center min-w-[120px]"},ys={class:"el-dropdown-link"};function ks(e,t,l,i,h,p){const u=r("el-image"),m=r("video-pause"),_=r("el-icon"),$=r("video-play"),k=r("font-awesome-icon"),y=r("el-tooltip"),E=r("Loading"),S=r("el-dropdown-item"),M=r("el-dropdown-menu"),B=r("el-dropdown"),J=H("loading");return n(),c("div",as,[(n(!0),c(G,null,q(e.audios,g=>(n(),c("div",{key:g.id,class:"audio",onClick:P(C=>e.onClick(g),["stop"])},[R((n(),c("div",cs,[s(u,{src:g?.image_url,class:"cover",fit:"cover",lazy:""},null,8,["src"]),g?.audio_url&&e.$store.state?.producer?.audio?.id===g.id&&e.$store.state?.producer?.audio?.state==="playing"?(n(),c("div",{key:0,class:"overlay",onClick:P(C=>e.onPause(g),["stop"])},[s(_,null,{default:d(()=>[s(m)]),_:1})],8,ds)):f("",!0),g?.audio_url&&(e.$store.state?.producer?.audio?.id!==g.id||e.$store.state?.producer?.audio?.id===g.id&&e.$store.state?.producer?.audio?.state==="paused")?(n(),c("div",{key:1,class:"overlay",onClick:P(C=>e.onPlay(g),["stop"])},[s(_,null,{default:d(()=>[s($)]),_:1})],8,us)):f("",!0),g?.duration?(n(),c("div",ps,a(e.useFormatDuring(g?.duration)),1)):f("",!0)])),[[J,!g?.audio_url]]),o("div",ms,[o("h2",fs,a(g?.title),1),o("p",hs,a(g?.style),1)]),o("div",_s,[s(B,null,{dropdown:d(()=>[s(M,null,{default:d(()=>[s(S,{disabled:e.isFetchingVideoUrl,onClick:C=>e.handleVideoDownload(g)},{default:d(()=>[o("div",gs,[e.isFetchingVideoUrl?(n(),v(_,{key:0,class:"is-loading mr-2"},{default:d(()=>[s(E)]),_:1})):f("",!0),o("span",null,a(e.$t("producer.button.download_video")),1)])]),_:1},8,["disabled","onClick"]),g?.audio_url?(n(),v(S,{key:0,onClick:P(C=>e.onDownload(C,g?.audio_url),["stop"])},{default:d(()=>[U(a(e.$t("producer.button.download_audio")),1)]),_:1},8,["onClick"])):f("",!0),s(S,{disabled:e.isFetchingWav,onClick:C=>e.handleWavDownload(g)},{default:d(()=>[o("div",vs,[e.isFetchingWav?(n(),v(_,{key:0,class:"is-loading mr-2"},{default:d(()=>[s(E)]),_:1})):f("",!0),o("span",null,a(e.$t("producer.button.download_wav")),1)])]),_:1},8,["disabled","onClick"])]),_:2},1024)]),default:d(()=>[o("span",$s,[s(y,{effect:"dark",content:e.$t("producer.button.download"),placement:"top"},{default:d(()=>[g?.audio_url||g?.video_url?(n(),v(k,{key:0,icon:"fa-solid fa-download",class:"icon icon-download"})):f("",!0)]),_:2},1032,["content"])])]),_:2},1024),s(B,null,{dropdown:d(()=>[s(M,null,{default:d(()=>[g?.audio_url?(n(),v(S,{key:0,onClick:P(C=>e.onExtend(C,g),["stop"])},{default:d(()=>[U(a(e.$t("producer.button.extend")),1)]),_:1},8,["onClick"])):f("",!0),g.id?(n(),v(S,{key:1,onClick:P(C=>e.onGetStems(g.id),["stop"])},{default:d(()=>[U(a(e.$t("producer.button.get_stems")),1)]),_:1},8,["onClick"])):f("",!0),g.id?(n(),v(S,{key:2,onClick:P(C=>e.onGetAllStems(g.id),["stop"])},{default:d(()=>[U(a(e.$t("producer.button.all_stems")),1)]),_:1},8,["onClick"])):f("",!0),s(S,{onClick:P(C=>e.onCover(g),["stop"])},{default:d(()=>[U(a(e.$t("producer.button.cover_music")),1)]),_:1},8,["onClick"]),g?.id?(n(),v(S,{key:3,onClick:P(C=>e.onVariation(g),["stop"])},{default:d(()=>[U(a(e.$t("producer.button.variation")),1)]),_:1},8,["onClick"])):f("",!0),g?.id?(n(),v(S,{key:4,onClick:P(C=>e.onSwapVocals(g.id),["stop"])},{default:d(()=>[U(a(e.$t("producer.button.swap_vocals")),1)]),_:1},8,["onClick"])):f("",!0),g?.id?(n(),v(S,{key:5,onClick:P(C=>e.onSwapInstrumentals(g.id),["stop"])},{default:d(()=>[U(a(e.$t("producer.button.swap_instrumentals")),1)]),_:1},8,["onClick"])):f("",!0),g?.id?(n(),v(S,{key:6,onClick:P(C=>e.onReplaceSection(g),["stop"])},{default:d(()=>[U(a(e.$t("producer.button.replace_section")),1)]),_:1},8,["onClick"])):f("",!0)]),_:2},1024)]),default:d(()=>[o("span",ys,[s(y,{effect:"dark",content:e.$t("producer.button.more"),placement:"top"},{default:d(()=>[g?.audio_url||g?.video_url?(n(),v(k,{key:0,icon:"fa-solid fa-ellipsis",class:"icon icon-ellipsis"})):f("",!0)]),_:2},1032,["content"])])]),_:2},1024)])],8,ls))),128))])}const bs=V(is,[["render",ks]]),ws={class:"player-slider"},Cs=b({__name:"PlayerSlider",setup(e){const t=Z(),l=T({get:()=>t.state.producer?.audio?.progress,set:u=>t.commit("producer/setAudio",{...t.state.producer.audio,progress:u})}),i=T({get:()=>t.state.producer?.audio?.duration,set:u=>t.commit("producer/setAudio",{...t.state.producer.audio,duration:u})}),h=()=>{},p=u=>t.dispatch("producer/setAudio",{...t.state.producer.audio,progress:u});return(u,m)=>(n(),c("div",ws,[s(A(x),{modelValue:l.value,"onUpdate:modelValue":m[0]||(m[0]=_=>l.value=_),"show-tooltip":!1,min:0,max:i.value,onChange:p,onInput:h},null,8,["modelValue","max"])]))}}),Vs={class:"flex player-song"},Ss=["src"],Us={class:"ml-2 text-xs flex flex-col justify-between"},Es={class:"w-52 2xl:w-96 cursor-pointer truncate"},Ps={class:"flex"},As={class:"ml-2 text-dc"},Ts=b({__name:"PlayerSong",setup(e){const t=Z(),l=T({get:()=>t.state.producer.audio,set:i=>t.commit("producer/setAudio",i)});return ne(l,(i,h)=>{if(i?.audio_url!==h?.audio_url){console.log("audio changed",i),i.object&&(console.log("111",i.object),i.object.pause(),delete i.object);const p=new Audio(i.audio_url);i.state==="playing"?p.play():p.pause(),p.addEventListener("loadedmetadata",()=>{p.currentTime=0,p.addEventListener("timeupdate",()=>{t.commit("producer/setAudio",{...t.state.producer.audio,progress:p.currentTime})})}),t.commit("producer/setAudio",{...t.state.producer.audio,object:p})}else if(i?.progress!==h?.progress&&Math.abs(i.progress-i.object.currentTime)>2){console.log("progress changed",i.progress);const p=t.state.producer.audio;p.object&&(p.object.currentTime=p.progress)}else i?.state!==h?.state&&(console.log("state changed",i.state),i.object&&(i.state==="playing"?i.object.play():i.object.pause()));i?.volume!==h?.volume&&(console.log("volume changed",i.volume),i.object&&(i.object.volume=i.volume/100))}),(i,h)=>(n(),c("div",Vs,[o("img",{alt:"",class:"w-11 h-11 rounded",src:l.value?.image_url||A(ye)},null,8,Ss),o("div",Us,[o("div",Es,[o("div",Ps,[o("span",null,a(l.value?.title||"Music"),1),o("span",As,"- "+a(l.value?.style||"SmallRuralDog"),1)])])])]))}}),Fs={class:"flex justify-end items-center gap-x-2.5"},Is={class:"text-xs"},Ls=b({__name:"PlayerAction",setup(e){const t=Z(),l=T({get:()=>t.state.producer?.audio?.progress,set:h=>t.commit("producer/setAudio",{...t.state.producer.audio,progress:h})}),i=T({get:()=>t.state.producer?.audio?.duration,set:h=>t.commit("producer/setAudio",{...t.state.producer.audio,duration:h})});return(h,p)=>(n(),c("div",Fs,[o("span",Is,a(A(j)(l.value))+" / "+a(A(j)(i.value)),1)]))}}),Gs={class:"player-volume flex flex-col items-center pt-2"},js={class:"text-sm mt-3"},Ds=b({__name:"PlayerVolumeSlider",setup(e){const t=Z(),l=T({get:()=>t.state.producer.audio?.volume,set:p=>t.commit("producer/setAudio",{...t.state.producer.audio,volume:p})}),i=T({get:()=>t.state.producer.audio?.muted,set:p=>t.commit("producer/setAudio",{...t.state.producer.audio,muted:p})}),h=p=>t.dispatch("producer/setVolume",p);return(p,u)=>(n(),c("div",Gs,[s(A(x),{modelValue:l.value,"onUpdate:modelValue":u[0]||(u[0]=m=>l.value=m),vertical:"",height:"100px","show-tooltip":!1,max:100,min:0,size:"small",disabled:i.value,onInput:h},null,8,["modelValue","disabled"]),o("div",js,a(l.value),1)]))}}),Rs={class:"flex items-center justify-center gap-x-3"},Zs=b({__name:"PlayerController",setup(e){const t=Z(),l=()=>t.dispatch("producer/setAudio",{...t.state.producer.audio,state:t.state.producer.audio.state==="playing"?"paused":"playing"}),i=T(()=>t.state.producer.audio);return(h,p)=>(n(),c("div",Rs,[s(ee,{icon:i.value?.state==="playing"?A(ke):A(be),size:"45",theme:"filled",class:"text-[var(--el-color-primary)] cursor-pointer",onClick:l},null,8,["icon"]),s(A(Ge),{placement:"top",width:"50px",trigger:"click"},{reference:d(()=>[s(ee,{icon:A(we),size:"20","stroke-width":2,class:"cursor-pointer"},null,8,["icon"])]),default:d(()=>[s(Ds)]),_:1})]))}}),zs={class:"flex flex-col items-stretch h-20"},Ns={class:"flex grow px-5 items-center"},Ms={class:"flex-1"},Bs={class:"flex-1"},Os={class:"flex-1"},qs=b({__name:"Player",setup(e){return(t,l)=>(n(),c("div",zs,[s(Cs),o("div",Ns,[o("div",Ms,[s(Ts)]),o("div",Bs,[s(Zs)]),o("div",Os,[s(Ls)])])]))}}),Ws=b({name:"RecentPanel",components:{ElSkeletonItem:Re,ElSkeleton:De,TaskPreview:bs,Player:qs,NoTasks:je,ScrollList:_e},props:{loading:{type:Boolean,default:!1}},emits:["reach-top"],data(){return{job:0}},computed:{tasks(){return{...this.$store.state.producer?.tasks,items:this.$store.state.producer?.tasks?.items?.slice()}}},methods:{getScrollElement(){return this.$refs.scrollList?.getScrollElement?.()}}}),Hs={key:0,class:"tasks"},Ks={class:"left w-[70px] p-[10px] flex items-center"},Js={class:"main w-[calc(100%-70px)] flex-1 p-[10px]"},Xs={key:2,class:"w-full flex-1 flex items-center justify-center"},Ys={class:"h-20"};function Qs(e,t,l,i,h,p){const u=r("el-skeleton-item"),m=r("el-skeleton"),_=r("task-preview"),$=r("scroll-list"),k=r("no-tasks"),y=r("player");return n(),c(G,null,[e.tasks?.items===void 0?(n(),c("div",Hs,[(n(),c(G,null,q(3,E=>o("div",{key:E,class:"flex"},[o("div",Ks,[s(m,{animated:""},{template:d(()=>[s(u,{variant:"image",class:"avatar w-[50px] h-[50px]"})]),_:1})]),o("div",Js,[s(m,{animated:""},{template:d(()=>[s(u,{variant:"p",class:"w-[200px] h-[15px] mb-[5px] mt-[10px]"}),s(u,{variant:"text"})]),_:1})])])),64))])):e.tasks?.items?.length&&e.tasks?.items?.length>0?(n(),v($,{key:1,ref:"scrollList",class:"flex-1 w-full overflow-y-auto tasks p-2",loading:e.loading,onReachTop:t[0]||(t[0]=E=>e.$emit("reach-top"))},{default:d(()=>[(n(!0),c(G,null,q(e.tasks?.items,(E,S)=>(n(),v(_,{key:S,"model-value":E,class:"preview"},null,8,["model-value"]))),128))]),_:1},8,["loading"])):f("",!0),e.tasks?.items?.length===0?(n(),c("div",Xs,[s(k)])):f("",!0),R(o("div",Ys,[s(y)],512),[[re,!!e.$store?.state?.producer?.audio?.object]])],64)}const xs=V(Ws,[["render",Qs]]),en=b({name:"TaskPreview",components:{IconPicture:le,ElImage:N,ElAvatar:Ce,ElIcon:K},computed:{audio(){return this.$store.state.producer?.audio}}}),tn={key:0,class:"size-full overflow-hidden"},on={class:"relative h-[300px]"},sn={class:"flex items-center justify-center size-full bg-[var(--el-bg-color)]"},nn={class:"absolute bottom-0 left-0 right-0 m-0 p-4 text-white z-10 bg-gradient-to-t from-black/70 to-transparent"},rn={class:"p-4"},an={class:"flex items-center font-bold mb-2"},ln={class:"text-[var(--el-text-color-regular)] mb-2"},cn={class:"text-xs text-[var(--el-text-color-regular)]"},dn={class:"mt-4 text-sm leading-[25px] whitespace-pre-wrap"},un={key:1,class:"w-full h-full"};function pn(e,t,l,i,h,p){const u=r("icon-picture"),m=r("el-icon"),_=r("el-image"),$=r("el-avatar");return e.audio?.object?(n(),c("div",tn,[o("div",on,[s(_,{src:e.audio.image_url,fit:"cover",class:"size-full"},{error:d(()=>[o("div",sn,[s(m,{class:"text-3xl"},{default:d(()=>[s(u)]),_:1})])]),_:1},8,["src"]),o("h2",nn,a(e.audio?.title),1)]),o("div",rn,[o("div",an,[s($,{size:30,src:e.audio?.image_url,class:"mr-2"},null,8,["src"]),o("span",null,a(e.audio?.title),1)]),o("p",ln,a(e.audio?.style),1),o("p",cn,a(e.$dayjs.format(e.audio?.created_at)),1),o("div",dn,[o("p",null,a(e.audio?.lyric),1)])])])):(n(),c("div",un))}const mn=V(en,[["render",pn]]),fn=te("producer"),hn=b({name:"ProducerIndex",components:{Layout:qe,ConfigPanel:ns,RecentPanel:xs,PreviewPanel:mn},inject:["initialized"],data(){return{task:void 0,job:0,loadingMore:!1,fetchingTasks:!1}},computed:{applicationsLoading(){return this.$store.state.producer?.status?.getApplications===L.Request},tasksLoading(){return this.$store.state.producer?.status?.getTasks===L.Request||this.fetchingTasks},service(){return this.$store.state.producer.service},credential(){return this.$store.state.producer.credential},config(){return this.$store.state.producer.config},initializing(){return this.$store.state.producer.status.getApplications===L.Request},needApply(){return this.$store.state.producer.status.getApplications===L.Success&&!this.application},application(){return this.$store.state.producer.application},tasks(){return this.$store.state.producer.tasks},applications(){return this.$store.state.producer.applications}},watch:{tasks:{handler(e,t){e?.items?.length>t?.items?.length&&console.debug("new tasks detected")},deep:!0},initialized:{async handler(e){e&&(console.debug("layout initialized"),await this.onGetTasks(),await this.onScrollDown(),this.job=window.setInterval(()=>{this.onGetTasks()},5e3))},immediate:!0}},async mounted(){await this.onGetService()},async unmounted(){window.clearInterval(this.job)},methods:{async onReachTop(){await $e({tasks:this.tasks,getTasks:()=>this.tasks,loading:this.loadingMore,setLoading:e=>this.loadingMore=e,isBlocked:()=>this.tasksLoading||this.applicationsLoading,fetch:e=>this.onGetTasks({createdAtMax:e}),getScrollElement:()=>this.getTasksScrollElement()})},async onGetService(){console.debug("start onGetService"),await this.$store.dispatch("producer/getService"),console.debug("end onGetService")},async onGetApplication(){console.debug("start onGetApplications"),await this.$store.dispatch("producer/getApplications"),console.debug("end onGetApplications"),await this.onGetTasks()},onApply(){de.create({application:this.application}).then(({data:e})=>{this.application=e,w.success(this.$t("application.message.applySuccessfully"))}).catch(e=>{e?.response?.data?.code===ue&&w.error(this.$t("application.message.alreadyApplied"))})},async onScrollDown(){await this.$nextTick();const e=this.getTasksScrollElement();e&&(e.scrollTop=e.scrollHeight)},async onGetTasks(e){if(this.applicationsLoading||this.fetchingTasks){console.debug("loading");return}console.debug("start onGetTasks",e);const{limit:t=5,createdAtMin:l,createdAtMax:i}=e||{};console.debug("limit",t,"createdAtMin",l,"createdAtMax",i),this.fetchingTasks=!0;try{await this.$store.dispatch("producer/getTasks",{limit:t,createdAtMin:l,createdAtMax:i})}finally{this.fetchingTasks=!1}},async onGenerateAudio(){const e={...this.config,callback_url:fn},t=this.credential?.token;if(!t){console.error("no token specified");return}w.info(this.$t("producer.message.startingTask")),ce("producer",I.audio(e,{token:t})).then(()=>{w.success(this.$t("producer.message.startTaskSuccess"))}).catch(l=>{w.error(l?.response?.data?.error?.message||this.$t("producer.message.startTaskFailed"))}).finally(async()=>{setTimeout(async()=>{await this.onGetTasks(),await this.onScrollDown()},1e3)})},getTasksScrollElement(){return this.$refs.recentPanel?.getScrollElement?.()}}});function _n(e,t,l,i,h,p){const u=r("config-panel"),m=r("recent-panel"),_=r("preview-panel"),$=r("layout");return n(),v($,null,{config:d(()=>[s(u,{onGenerate:e.onGenerateAudio},null,8,["onGenerate"])]),result:d(()=>[s(m,{ref:"recentPanel",class:"panel recent",loading:e.loadingMore,onReachTop:e.onReachTop},null,8,["loading","onReachTop"])]),preview:d(()=>[s(_)]),_:1})}const mr=V(hn,[["render",_n],["__scopeId","data-v-d6806962"]]);export{mr as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as E}from"./index.es-DoDsyBxd.js";import{E as L}from"./index-CghmaEfO.js";import{E as re}from"./index-BRqPnPCL.js";import{d as b,H as u,E as i,z as N,C as n,y as h,D as o,q as l,F as r,x as C,O as T,N as I,Q as R,J as k,R as ke,I as w,M as be}from"./vendor-vue-NSDaktjZ.js";import{G as y,bl as G,a3 as ye,H as we,cr as ee,aH as te,S as oe,cs as Ce}from"./index-Bwh4uhxH.js";import{b as Se,c as ne,d as F,e as A,f as Ve,g as Te,h as Ie}from"./kling-CtoPhhA9.js";import{E as D,a as P}from"./index-Bs4QQKmj.js";import{E as q}from"./index-DjsIiC0Y.js";import{E as S}from"./index-CD3hMCXK.js";import{I as V,S as Ee,l as Le}from"./pagination-DuUw6h7L.js";import{p as H}from"./pasteUploadMixin-BurWbGNQ.js";import{I as K}from"./ImagePreview-Bdb0i-UY.js";import{E as W}from"./index-CdNNDZgX.js";import{E as O}from"./index-CZoz3sTY.js";import{C as ce}from"./Consumption-DTqKtl19.js";import{E as de}from"./index-udv8oHBR.js";import{E as ue}from"./index-Biwor0fW.js";import{E as pe}from"./index-DDM_letT.js";import{E as J}from"./index-Df-EZV4-.js";import{a as me}from"./price-Dq6B3nmI.js";import{F as Me}from"./FilePreview-ZxOIpkjO.js";import{E as Ue,a as Re}from"./index-BipWEOw7.js";import{E as Ae,a as De}from"./index-BbRzjoyH.js";import{b as se}from"./errorCode-Cqj9Td_Z.js";import{C as Pe}from"./CopyToClipboard-CHIfP83C.js";import{V as Ge}from"./VideoPlayer-Cy3-ZAWg.js";import{E as Ke}from"./index-CLC3F3zh.js";import{E as Oe}from"./index-Cdu2CINy.js";import{B as je}from"./BotPlaceholder-teJQgw1R.js";import{N as Ne}from"./NoTasks-Dro6OdxD.js";import"./use-form-item-CkUvjro6.js";import"./index-BuyEbX8F.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-dayjs-v0j1UNZp.js";import"./vendor-vue-router-Kg6s1a65.js";import"./index-Boh3hilg.js";import"./typescript-C7vXUz1j.js";import"./index-CWWZeClw.js";import"./strings-beZM2Y-f.js";import"./isEqual-CgVTCLh1.js";import"./_Uint8Array-JndvkAwf.js";import"./castArray-BzRYTmyg.js";import"./debounce-D7YINRDE.js";import"./_baseIteratee-BaTk7Xco.js";import"./index-Dy5k6Duv.js";import"./validator-BYlyQQaq.js";import"./index-DSAaysXY.js";import"./_baseClone-BywLfCY-.js";import"./_initCloneObject-D5P_u5bs.js";import"./index-Cu41y2Fl.js";import"./index-nLjkUfZa.js";import"./isPlainObject-DrlQ5Pnc.js";import"./vue-plyr-BO2nlN4c.js";import"./index-ByGJSI5C.js";const Be=b({name:"LayoutKling",components:{ElDrawer:re,ElButton:L,FontAwesomeIcon:E},data(){return{drawer:!1}}}),ze={class:"main flex flex-row flex-1 min-h-0"},Fe={class:"config w-[320px] flex-none h-full flex flex-col bg-[var(--app-sidebar-bg)] border-r border-[var(--app-border-subtle)]"},qe={class:"result h-full p-6 flex-1 flex flex-col min-w-0 overflow-x-hidden bg-[var(--app-content-bg)]"};function He(e,t,s,a,p,$){const d=o("font-awesome-icon"),m=o("el-button"),f=o("el-drawer");return l(),u("div",ze,[i("div",Fe,[N(e.$slots,"config",{},void 0,!0)]),i("div",qe,[N(e.$slots,"result",{},void 0,!0)]),n(m,{circle:"",class:"menu",onClick:t[0]||(t[0]=c=>e.drawer=!0)},{default:h(()=>[n(d,{icon:"fa-solid fa-magic"})]),_:1}),n(f,{modelValue:e.drawer,"onUpdate:modelValue":t[1]||(t[1]=c=>e.drawer=c),direction:"ltr","with-header":!1,size:"350px"},{default:h(()=>[N(e.$slots,"config",{},void 0,!0)]),_:3},8,["modelValue"])])}const We=y(Be,[["render",He],["__scopeId","data-v-8fa7523c"]]),Je={text2video:!0,image2video:!0,endImage:!1,audio:!1,motionControl:!1};function ge(e,t,s){const a=t||"std",p=s??5;switch(e){case"kling-v1":return{text2video:!0,image2video:!0,endImage:p===5,audio:!1,motionControl:p===5};case"kling-v1-6":case"kling-v2-5-turbo":return{text2video:!0,image2video:!0,endImage:a==="pro",audio:!1,motionControl:!1};case"kling-v2-6":return{text2video:!0,image2video:!0,endImage:a==="pro",audio:a==="pro",motionControl:!1};case"kling-v2-master":case"kling-v2-1-master":return{text2video:!0,image2video:!0,endImage:!1,audio:!1,motionControl:!1};case"kling-v3":return{text2video:!0,image2video:!0,endImage:!0,audio:!0,motionControl:a!=="4k"};case"kling-v3-omni":return{text2video:!0,image2video:!0,endImage:!0,audio:!0,motionControl:!1};case"kling-video-o1":return{text2video:!0,image2video:!0,endImage:!0,audio:!1,motionControl:!1};default:return Je}}function Q(e,t){if(!e)return[];const s=t.model??e.model,a=t.mode??e.mode,p=t.duration??e.duration;if(!s)return[];const $=ge(s,a,p),d=[];return e.end_image_url&&!$.endImage&&d.push({field:"end_image_url",i18nLabel:"kling.name.endImage"}),e.generate_audio&&!$.audio&&d.push({field:"generate_audio",i18nLabel:"kling.name.generateAudio"}),e.camera_control?.type&&!$.motionControl&&d.push({field:"camera_control",i18nLabel:"kling.name.cameraControl"}),d}function Y(e,t){const s={...e};for(const a of t)a.field==="end_image_url"&&(s.end_image_url=void 0),a.field==="generate_audio"&&(s.generate_audio=!1),a.field==="camera_control"&&(s.camera_control=void 0);return s}const Qe=b({name:"ModelSelector",components:{ElSelect:P,ElOption:D},props:{modelValue:{type:String,default:void 0}},emits:["update:modelValue"],data(){return{revertKey:0,options:[{value:"kling-v3",label:"v3"},{value:"kling-v3-omni",label:"v3-Omni"},{value:"kling-v2-6",label:"v2.6"},{value:"kling-v2-5-turbo",label:"v2.5-Turbo"},{value:"kling-v2-1-master",label:"v2.1-Master"},{value:"kling-v2-master",label:"v2-Master"},{value:"kling-v1-6",label:"v1.6"},{value:"kling-v1",label:"v1"},{value:"kling-video-o1",label:"Video-o1"}]}},computed:{value(){return this.$store.state.kling?.config?.model}},mounted(){this.value||this.applyModel(Se)},methods:{async onChange(e){const t=this.$store.state.kling?.config||{},s=Q(t,{model:e});if(s.length===0){this.applyModel(e);return}const a=s.map(p=>this.$t(p.i18nLabel)).join("、");try{await q.confirm(this.$t("kling.message.featureNotSupportedBody",{fields:a}),this.$t("kling.message.featureNotSupportedTitle"),{confirmButtonText:this.$t("kling.button.confirmContinue"),cancelButtonText:this.$t("kling.button.cancelSwitch"),type:"warning"});const p=Y({...t,model:e},s);this.$store.commit("kling/setConfig",p),S.success(this.$t("kling.message.featureRemovedNotice",{fields:a}))}catch{this.revertKey+=1}},applyModel(e){this.$store.commit("kling/setConfig",{...this.$store.state.kling.config,model:e})}}}),Ye={class:"field"},Xe={class:"title font-bold"};function Ze(e,t,s,a,p,$){const d=o("el-option"),m=o("el-select");return l(),u("div",Ye,[i("h2",Xe,r(e.$t("pika.name.model")),1),(l(),C(m,{key:e.revertKey,"model-value":e.value,class:"value",placeholder:e.$t("pika.placeholder.select"),onChange:e.onChange},{default:h(()=>[(l(!0),u(T,null,I(e.options,f=>(l(),C(d,{key:f.value,label:f.label,value:f.value},null,8,["label","value"]))),128))]),_:1},8,["model-value","placeholder","onChange"]))])}const xe=y(Qe,[["render",Ze],["__scopeId","data-v-04059875"]]),et=b({name:"ModeSelector",components:{ElSelect:P,ElOption:D,InfoIcon:V},props:{modelValue:{type:String,default:void 0}},emits:["update:modelValue"],data(){return{revertKey:0}},computed:{selectedModel(){return this.$store.state.kling?.config?.model||""},cameraControlSet(){return!!this.$store.state.kling?.config?.camera_control?.type},fourKReason(){return F.includes(this.selectedModel)?this.cameraControlSet?this.$t("kling.description.mode4kIncompatibleCamera"):"":this.$t("kling.description.mode4kRequiresV3")},options(){return[{value:"std",label:this.$t("kling.name.modeStd"),disabled:!1,disabledReason:""},{value:"pro",label:this.$t("kling.name.modePro"),disabled:!1,disabledReason:""},{value:"4k",label:this.$t("kling.name.mode4k"),disabled:!!this.fourKReason,disabledReason:this.fourKReason}]},value(){return this.$store.state.kling?.config?.mode}},watch:{fourKReason(e){e&&this.value==="4k"&&this.applyMode(ne)}},mounted(){this.value||this.applyMode(ne)},methods:{async onChange(e){const t=this.$store.state.kling?.config||{},s=Q(t,{mode:e});if(s.length===0){this.applyMode(e);return}const a=s.map(p=>this.$t(p.i18nLabel)).join("、");try{await q.confirm(this.$t("kling.message.featureNotSupportedBody",{fields:a}),this.$t("kling.message.featureNotSupportedTitle"),{confirmButtonText:this.$t("kling.button.confirmContinue"),cancelButtonText:this.$t("kling.button.cancelSwitch"),type:"warning"});const p=Y({...t,mode:e},s);this.$store.commit("kling/setConfig",p),S.success(this.$t("kling.message.featureRemovedNotice",{fields:a}))}catch{this.revertKey+=1}},applyMode(e){this.$store.commit("kling/setConfig",{...this.$store.state.kling.config,mode:e})}}}),tt={class:"field"},ot={class:"header"},nt={class:"title font-bold"},st={key:0,class:"opt-tip"};function it(e,t,s,a,p,$){const d=o("info-icon"),m=o("el-option"),f=o("el-select");return l(),u("div",tt,[i("div",ot,[i("h2",nt,r(e.$t("kling.name.mode")),1),n(d,{content:e.$t("kling.description.mode"),class:"info-icon"},null,8,["content"])]),(l(),C(f,{key:e.revertKey,"model-value":e.value,class:"value",placeholder:e.$t("kling.placeholder.select"),clearable:!0,onChange:e.onChange},{default:h(()=>[(l(!0),u(T,null,I(e.options,c=>(l(),C(m,{key:c.value,label:c.label,value:c.value,disabled:c.disabled},{default:h(()=>[i("span",{class:R({"opt-disabled":c.disabled})},r(c.label),3),c.disabled&&c.disabledReason?(l(),u("span",st,r(c.disabledReason),1)):k("",!0)]),_:2},1032,["label","value","disabled"]))),128))]),_:1},8,["model-value","placeholder","onChange"]))])}const lt=y(et,[["render",it],["__scopeId","data-v-9a8fa3c5"]]),at=[3,5,8,10,12,15],rt=[5,10],ct=b({name:"DurationSelector",components:{ElSelect:P,ElOption:D,InfoIcon:V},data(){return{revertKey:0}},computed:{selectedModel(){return this.$store.state.kling?.config?.model||""},isV3Model(){return F.includes(this.selectedModel)},allowedDurations(){return this.isV3Model?at:rt},value(){return this.$store.state.kling?.config?.duration??A},selectValue(){const e=this.allowedDurations;return e.includes(this.value)?this.value:e.includes(A)?A:e[0]}},watch:{isV3Model(){this.allowedDurations.includes(this.value)||this.applyDuration(A)}},mounted(){this.$store.state.kling?.config?.duration||this.applyDuration(A)},methods:{async onChange(e){const t=this.$store.state.kling?.config||{},s=Q(t,{duration:e});if(s.length===0){this.applyDuration(e);return}const a=s.map(p=>this.$t(p.i18nLabel)).join("、");try{await q.confirm(this.$t("kling.message.featureNotSupportedBody",{fields:a}),this.$t("kling.message.featureNotSupportedTitle"),{confirmButtonText:this.$t("kling.button.confirmContinue"),cancelButtonText:this.$t("kling.button.cancelSwitch"),type:"warning"});const p=Y({...t,duration:e},s);this.$store.commit("kling/setConfig",p),S.success(this.$t("kling.message.featureRemovedNotice",{fields:a}))}catch{this.revertKey+=1}},applyDuration(e){this.$store.commit("kling/setConfig",{...this.$store.state.kling.config,duration:e})}}}),dt={class:"field"},ut={class:"control"},pt={class:"label"},mt={class:"title font-bold"};function gt(e,t,s,a,p,$){const d=o("info-icon"),m=o("el-option"),f=o("el-select");return l(),u("div",dt,[i("div",ut,[i("div",pt,[i("h2",mt,r(e.$t("kling.name.duration")),1),n(d,{content:e.$t("kling.description.duration"),class:"info-icon ml-1"},null,8,["content"])]),(l(),C(f,{key:e.revertKey,"model-value":e.selectValue,class:"value",placeholder:e.$t("kling.placeholder.select"),onChange:e.onChange},{default:h(()=>[(l(!0),u(T,null,I(e.allowedDurations,c=>(l(),C(m,{key:c,label:`${c}s`,value:c},null,8,["label","value"]))),128))]),_:1},8,["model-value","placeholder","onChange"]))])])}const ft=y(ct,[["render",gt],["__scopeId","data-v-5ae55e28"]]),ht=b({name:"RatioSelector",data(){return{options:[{value:"1:1",label:"1:1",width:20,height:20},{value:"16:9",label:"16:9",width:25,height:13},{value:"9:16",label:"9:16",width:13,height:25}]}},computed:{active(){return this.options.findIndex(e=>e.value===this.value)||0},value:{get(){return this.$store.state?.kling?.config?.aspect_ratio},set(e){console.debug("set ratio",e),this.$store.commit("kling/setConfig",{...this.$store.state?.kling?.config,aspect_ratio:e})}}},mounted(){this.value||(this.value=Ve)}}),_t={class:"text-sm font-bold mb-2 block"},$t={class:"items"},vt=["onClick"],kt={class:"name"};function bt(e,t,s,a,p,$){return l(),u("div",null,[i("span",_t,r(e.$t("kling.name.ratio")),1),i("div",$t,[(l(!0),u(T,null,I(e.options,(d,m)=>(l(),u("div",{key:m,class:R({active:e.active===m,item:!0}),onClick:f=>e.value=d.value},[i("div",{class:R(["preview",d.label])},[i("div",{class:"rect",style:ke({width:d.width+"px",height:d.height+"px"})},null,4)],2),i("p",kt,r(d.label),1)],10,vt))),128))])])}const yt=y(ht,[["render",bt],["__scopeId","data-v-cdb14b2f"]]),wt=b({name:"StartImage",components:{ElUpload:O,ElButton:L,ElTooltip:W,InfoIcon:V,FontAwesomeIcon:E,ImagePreview:K},mixins:[H],emits:["change"],data(){return{fileList:[],uploadUrl:G()+"/api/v1/files/"}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>e?.response?.file_url)},reachedLimit(){return(this.fileList?.length||0)>=1},value:{get(){return this.$store.state?.kling?.config?.start_image_url},set(){}}},mounted(){this.value||(this.value=void 0),this.onSetStartImageUrl()},methods:{onExceed(){S.warning(this.$t("kling.message.uploadReferencesExceed"))},onError(){S.error(this.$t("kling.message.uploadReferencesError"))},onSetStartImageUrl(){const e=this.urls?.[0];this.$store.commit("kling/setConfig",{...this.$store.state?.kling?.config,start_image_url:e})},async onSuccess(){this.onSetStartImageUrl()}}}),Ct={class:"relative"},St={class:"flex justify-between"},Vt={class:"flex justify-start items-center"},Tt={class:"text-sm font-bold"};function It(e,t,s,a,p,$){const d=o("info-icon"),m=o("image-preview"),f=o("font-awesome-icon"),c=o("el-button"),v=o("el-tooltip"),g=o("el-upload");return l(),u("div",Ct,[i("div",St,[i("div",Vt,[i("span",Tt,r(e.$t("kling.name.startImage")),1),n(d,{content:e.$t("kling.description.uploadStartImage")},null,8,["content"])])]),n(g,{ref:"uploader","file-list":e.fileList,"onUpdate:fileList":t[0]||(t[0]=_=>e.fileList=_),name:"file",accept:".png,.jpg,.jpeg,.gif,.bmp,.webp",limit:1,disabled:e.reachedLimit,class:"upload-wrapper",multiple:!1,action:e.uploadUrl,"list-type":"picture","on-exceed":e.onExceed,"on-error":e.onError,"on-success":e.onSuccess,headers:e.headers},{file:h(({file:_})=>[_.url&&_.percentage!==void 0?(l(),C(m,{key:0,url:_.url,name:_.name,percentage:_.percentage,onRemove:M=>e.fileList.splice(e.fileList.indexOf(_),1)},null,8,["url","name","percentage","onRemove"])):k("",!0)]),default:h(()=>[n(v,{content:e.$t("kling.message.uploadReferencesExceed"),disabled:!e.reachedLimit,placement:"top"},{default:h(()=>[i("span",null,[n(c,{round:"",type:"primary",size:"small",class:"btn btn-upload",disabled:e.reachedLimit},{default:h(()=>[n(f,{icon:"fa-solid fa-upload",class:"icon mr-1"}),w(" "+r(e.$t("kling.button.uploadReferences")),1)]),_:1},8,["disabled"])])]),_:1},8,["content","disabled"])]),_:1},8,["file-list","disabled","action","on-exceed","on-error","on-success","headers"])])}const Et=y(wt,[["render",It],["__scopeId","data-v-68cf38f5"]]),Lt=b({name:"EndImage",components:{ElUpload:O,ElButton:L,ElTooltip:W,ImagePreview:K,InfoIcon:V,FontAwesomeIcon:E},mixins:[H],data(){return{fileList:[],uploadUrl:G()+"/api/v1/files/"}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>e?.response?.file_url)},reachedLimit(){return(this.fileList?.length||0)>=1},klingConfig(){return this.$store.state?.kling?.config||{}},endImageSupported(){return ge(this.klingConfig.model,this.klingConfig.mode,this.klingConfig.duration).endImage},uploadDisabled(){return this.reachedLimit||!this.endImageSupported},uploadTooltip(){return this.endImageSupported?this.reachedLimit?this.$t("kling.message.uploadReferencesExceed"):"":this.$t("kling.message.endImageNotSupported")},storeValue(){return this.klingConfig.end_image_url},value:{get(){return this.storeValue},set(){}}},watch:{storeValue(e){!e&&this.fileList.length>0&&(this.fileList=[])}},mounted(){this.value||(this.value=void 0),this.onSetEndImageUrl()},methods:{onBeforeUpload(){return this.endImageSupported?!0:(S.warning(this.$t("kling.message.endImageNotSupported")),!1)},onExceed(){S.warning(this.$t("kling.message.uploadReferencesExceed"))},onError(){S.error(this.$t("kling.message.uploadReferencesError"))},onSetEndImageUrl(){const e=this.urls?.[0];this.$store.commit("kling/setConfig",{...this.$store.state.kling?.config,end_image_url:e})},async onSuccess(){this.onSetEndImageUrl()}}}),Mt={class:"relative"},Ut={class:"flex justify-between"},Rt={class:"flex justify-start items-center"},At={class:"text-sm font-bold"};function Dt(e,t,s,a,p,$){const d=o("info-icon"),m=o("image-preview"),f=o("font-awesome-icon"),c=o("el-button"),v=o("el-tooltip"),g=o("el-upload");return l(),u("div",Mt,[i("div",Ut,[i("div",Rt,[i("span",At,r(e.$t("kling.name.endImage")),1),n(d,{content:e.$t("kling.description.uploadEndImage")},null,8,["content"])])]),n(g,{ref:"uploader","file-list":e.fileList,"onUpdate:fileList":t[0]||(t[0]=_=>e.fileList=_),name:"file",accept:".png,.jpg,.jpeg,.gif,.bmp,.webp",limit:1,disabled:e.uploadDisabled,class:"upload-wrapper",multiple:!1,action:e.uploadUrl,"list-type":"picture","before-upload":e.onBeforeUpload,"on-exceed":e.onExceed,"on-error":e.onError,"on-success":e.onSuccess,headers:e.headers},{file:h(({file:_})=>[_.url&&_.percentage!==void 0?(l(),C(m,{key:0,url:_.url,name:_.name,percentage:_.percentage,onRemove:M=>e.fileList.splice(e.fileList.indexOf(_),1)},null,8,["url","name","percentage","onRemove"])):k("",!0)]),default:h(()=>[n(v,{content:e.uploadTooltip,disabled:!e.uploadDisabled,placement:"top"},{default:h(()=>[i("span",null,[n(c,{round:"",type:"primary",size:"small",class:"btn btn-upload",disabled:e.uploadDisabled},{default:h(()=>[n(f,{icon:"fa-solid fa-upload",class:"icon mr-1"}),w(" "+r(e.$t("kling.button.uploadReferences")),1)]),_:1},8,["disabled"])])]),_:1},8,["content","disabled"])]),_:1},8,["file-list","disabled","action","before-upload","on-exceed","on-error","on-success","headers"])])}const Pt=y(Lt,[["render",Dt],["__scopeId","data-v-6959ad44"]]),Gt=b({name:"CfgScaleSelector",components:{ElSlider:ue,InfoIcon:V,ElInputNumber:de},computed:{value:{get(){return this.$store.state?.kling?.config?.cfg_scale},set(e){console.debug("set cfg_scale",e),this.$store.commit("kling/setConfig",{...this.$store.state?.kling?.config,cfg_scale:e})}}},mounted(){this.value||(this.value=Te)}}),Kt={class:"flex justify-between"},Ot={class:"flex justify-start items-center"},jt={class:"text-sm font-bold"},Nt={class:"flex justify-end items-center"},Bt={class:"w-full"};function zt(e,t,s,a,p,$){const d=o("info-icon"),m=o("el-input-number"),f=o("el-slider");return l(),u("div",null,[i("div",Kt,[i("div",Ot,[i("span",jt,r(e.$t("kling.name.cfgScale")),1),n(d,{content:e.$t("kling.description.cfgScale")},null,8,["content"])]),i("div",Nt,[n(m,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=c=>e.value=c),"controls-position":"right"},null,8,["modelValue"])])]),i("div",Bt,[n(f,{modelValue:e.value,"onUpdate:modelValue":t[1]||(t[1]=c=>e.value=c),min:0,max:1,step:.1},null,8,["modelValue"])])])}const Ft=y(Gt,[["render",zt]]),qt=b({name:"GenerateAudioSelector",components:{ElSwitch:pe,InfoIcon:V},computed:{selectedModel(){return this.$store.state.kling?.config?.model||""},selectedMode(){return this.$store.state.kling?.config?.mode||""},supported(){return!!(F.includes(this.selectedModel)||this.selectedModel==="kling-v2-6"&&this.selectedMode==="pro")},tooltipContent(){return this.supported?this.$t("kling.description.generateAudio"):this.$t("kling.description.generateAudioUnsupported")},value:{get(){return this.supported?this.$store.state.kling?.config?.generate_audio??Ie:!1},set(e){this.$store.commit("kling/setConfig",{...this.$store.state.kling?.config,generate_audio:e})}}},watch:{supported(e){!e&&this.$store.state.kling?.config?.generate_audio&&this.$store.commit("kling/setConfig",{...this.$store.state.kling?.config,generate_audio:!1})}}}),Ht={class:"relative"},Wt={class:"flex justify-between items-center"},Jt={class:"flex justify-start items-center"},Qt={class:"text-sm font-bold"};function Yt(e,t,s,a,p,$){const d=o("info-icon"),m=o("el-switch");return l(),u("div",Ht,[i("div",Wt,[i("div",Jt,[i("span",Qt,r(e.$t("kling.name.generateAudio")),1),n(d,{content:e.tooltipContent},null,8,["content"])]),n(m,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=f=>e.value=f),class:"value",disabled:!e.supported},null,8,["modelValue","disabled"])])])}const Xt=y(qt,[["render",Yt]]),Zt=["horizontal","vertical","pan","tilt","roll","zoom"],xt=b({name:"CameraControlSelector",components:{ElSelect:P,ElOption:D,ElSlider:ue,ElInputNumber:de,InfoIcon:V},data(){return{configKeys:Zt}},computed:{typeOptions(){return[{value:"",label:this.$t("kling.name.cameraTypeNone")},{value:"simple",label:this.$t("kling.name.cameraTypeSimple")},{value:"down_back",label:this.$t("kling.name.cameraTypeDownBack")},{value:"forward_up",label:this.$t("kling.name.cameraTypeForwardUp")},{value:"left_turn_forward",label:this.$t("kling.name.cameraTypeLeftTurnForward")},{value:"right_turn_forward",label:this.$t("kling.name.cameraTypeRightTurnForward")}]},selectedMode(){return this.$store.state.kling?.config?.mode||""},disabled(){return this.selectedMode==="4k"},tooltipContent(){return this.disabled?this.$t("kling.description.cameraControlDisabled4k"):this.$t("kling.description.cameraControl")},selectedType(){return this.$store.state.kling?.config?.camera_control?.type},selectedTypeRaw:{get(){return this.selectedType??""},set(e){const t=this.$store.state.kling?.config||{};if(!e){const a={...t};delete a.camera_control,this.$store.commit("kling/setConfig",a);return}const s=e;this.$store.commit("kling/setConfig",{...t,camera_control:{type:s,config:s==="simple"?t.camera_control?.config||{}:void 0}})}},configValues(){return this.$store.state.kling?.config?.camera_control?.config||{}}},watch:{disabled(e){e&&this.selectedType!==void 0&&(this.selectedTypeRaw="")}},methods:{writeConfig(e,t){const s=this.$store.state.kling?.config||{},a=s.camera_control||{type:"simple"},p={...a.config||{}};t==null?delete p[e]:p[e]=t,this.$store.commit("kling/setConfig",{...s,camera_control:{...a,type:"simple",config:p}})},onSliderChange(e,t){this.writeConfig(e,t)},onNumberChange(e,t){this.writeConfig(e,t)}}}),eo={class:"field"},to={class:"header"},oo={class:"text-sm font-bold"},no={key:0,class:"config-grid"},so={class:"cfg-row-head"},io={class:"cfg-name"};function lo(e,t,s,a,p,$){const d=o("info-icon"),m=o("el-option"),f=o("el-select"),c=o("el-input-number"),v=o("el-slider");return l(),u("div",eo,[i("div",to,[i("span",oo,r(e.$t("kling.name.cameraControl")),1),n(d,{content:e.tooltipContent},null,8,["content"])]),n(f,{modelValue:e.selectedTypeRaw,"onUpdate:modelValue":t[0]||(t[0]=g=>e.selectedTypeRaw=g),class:"value",placeholder:e.$t("kling.placeholder.cameraType"),clearable:!0,disabled:e.disabled},{default:h(()=>[(l(!0),u(T,null,I(e.typeOptions,g=>(l(),C(m,{key:g.value,label:g.label,value:g.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","disabled"]),e.selectedType==="simple"&&!e.disabled?(l(),u("div",no,[(l(!0),u(T,null,I(e.configKeys,g=>(l(),u("div",{key:g,class:"cfg-row"},[i("div",so,[i("span",io,r(e.$t(`kling.name.cc_${g}`)),1),n(c,{modelValue:e.configValues[g],"onUpdate:modelValue":_=>e.configValues[g]=_,min:-1,max:1,step:.1,precision:1,"controls-position":"right",size:"small",class:"cfg-num",onChange:_=>e.onNumberChange(g,_)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),n(v,{"model-value":e.configValues[g]??0,min:-1,max:1,step:.1,onInput:_=>e.onSliderChange(g,_)},null,8,["model-value","onInput"])]))),128))])):k("",!0)])}const ao=y(xt,[["render",lo],["__scopeId","data-v-fb7b34d0"]]),fe=[{groupKey:"cameraMovements",chipKeys:["rotateAround","stationary","handheld","zoomOut","zoomIn","follow","panRight","tiltUp","tiltDown","orbit"]},{groupKey:"cameraSpeed",chipKeys:["speedSlow","speedMedium","speedFast"]},{groupKey:"shotType",chipKeys:["shotClose","shotMedium","shotLong","shotLowAngle","shotHighAngle","shotShallowDof","shotFront","shotProfile","shotCloseUp","shotDrone"]},{groupKey:"light",chipKeys:["lightSunlight","lightSoft","lightNeon","lightWarm","lightNature","lightCandle","lightCityNight"]},{groupKey:"frame",chipKeys:["frameRichDetails","frameSimpleBg"]},{groupKey:"atmosphere",chipKeys:["atmosphereMysterious","atmospherePeaceful","atmosphereHeartwarming","atmosphereVivid","atmosphereColorful"]}],B=", ";function ro(e,t){const s=(e||"").trim();return s?s.includes(t)?s:`${s}${B}${t}`:t}function z(e,t){if(!e||!t)return e||"";const s=[`${t}${B}`,`${B}${t}`,t];let a=e;for(const p of s)if(a.includes(p)){a=a.replace(p,"");break}return a.replace(/(?:,\s*)+$/,"").replace(/^(?:,\s*)+/,"")}const co=b({name:"InspirationPills",components:{FontAwesomeIcon:E},computed:{prompt(){return this.$store.state.kling?.config?.prompt||""},allChipTexts(){return fe.flatMap(e=>e.chipKeys.map(t=>this.$t(`kling.inspiration.chip.${t}`)))},selected(){const e=this.prompt;if(!e)return[];const t=[];for(const s of this.allChipTexts){const a=e.indexOf(s);a!==-1&&t.push({text:s,idx:a})}return t.sort((s,a)=>s.idx-a.idx).map(s=>s.text)}},methods:{onRemove(e){const t=z(this.prompt,e);this.$store.commit("kling/setConfig",{...this.$store.state.kling?.config,prompt:t})}}}),uo={key:0,class:"pills",role:"list"},po={class:"pill-text"},mo=["aria-label","onClick"];function go(e,t,s,a,p,$){const d=o("font-awesome-icon");return e.selected.length>0?(l(),u("div",uo,[(l(!0),u(T,null,I(e.selected,m=>(l(),u("div",{key:m,class:"pill",role:"listitem"},[i("span",po,r(m),1),i("button",{type:"button",class:"pill-remove","aria-label":e.$t("kling.inspiration.removeChip"),onClick:be(f=>e.onRemove(m),["stop"])},[n(d,{icon:"fa-solid fa-xmark"})],8,mo)]))),128))])):k("",!0)}const fo=y(co,[["render",go],["__scopeId","data-v-5fc4fa65"]]),ho="",_o=b({name:"PromptInput",components:{ElInput:J,ElButton:L,FontAwesomeIcon:E,InfoIcon:V,InspirationPills:fo},emits:["open-inspiration"],computed:{prompt:{get(){return this.$store.state.kling?.config?.prompt},set(e){console.debug("set prompt",e),this.$store.commit("kling/setConfig",{...this.$store.state.kling?.config,prompt:e})}}},mounted(){this.prompt||(this.prompt=ho)}}),$o={class:"field"},vo={class:"box"},ko={class:"title font-bold"},bo={class:"actions"};function yo(e,t,s,a,p,$){const d=o("font-awesome-icon"),m=o("el-button"),f=o("info-icon"),c=o("inspiration-pills"),v=o("el-input");return l(),u("div",$o,[i("div",vo,[i("h2",ko,r(e.$t("kling.name.prompt")),1),i("div",bo,[n(m,{text:"",size:"small",class:"inspiration-btn",onClick:t[0]||(t[0]=g=>e.$emit("open-inspiration"))},{default:h(()=>[n(d,{icon:"fa-regular fa-lightbulb",class:"mr-1"}),w(" "+r(e.$t("kling.inspiration.openButton")),1)]),_:1}),n(f,{content:e.$t("kling.description.prompt"),class:"info"},null,8,["content"])])]),n(c),n(v,{modelValue:e.prompt,"onUpdate:modelValue":t[1]||(t[1]=g=>e.prompt=g),rows:3,type:"textarea",class:"prompt",placeholder:e.$t("kling.placeholder.prompt")},null,8,["modelValue","placeholder"])])}const wo=y(_o,[["render",yo],["__scopeId","data-v-0a5c57b8"]]),Co="",So=b({name:"NegativePromptInput",components:{ElInput:J,InfoIcon:V},computed:{prompt:{get(){return this.$store.state.kling?.config?.negative_prompt},set(e){console.debug("set prompt",e),this.$store.commit("kling/setConfig",{...this.$store.state.kling?.config,negative_prompt:e})}}},mounted(){this.prompt||(this.prompt=Co)}}),Vo={class:"field"},To={class:"box"},Io={class:"title font-bold"};function Eo(e,t,s,a,p,$){const d=o("info-icon"),m=o("el-input");return l(),u("div",Vo,[i("div",To,[i("h2",Io,r(e.$t("kling.name.negativePrompt")),1),n(d,{content:e.$t("kling.description.negativePrompt"),class:"info"},null,8,["content"])]),n(m,{modelValue:e.prompt,"onUpdate:modelValue":t[0]||(t[0]=f=>e.prompt=f),rows:3,type:"textarea",class:"prompt",placeholder:e.$t("kling.placeholder.negativePrompt")},null,8,["modelValue","placeholder"])])}const Lo=y(So,[["render",Eo],["__scopeId","data-v-de98cf01"]]),Mo=b({name:"InspirationDrawer",components:{ElDrawer:re,ElButton:L,FontAwesomeIcon:E},props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],data(){return{groups:fe,Close:ye}},computed:{visible:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},drawerSize(){return window.innerWidth<768?"100%":"380px"},prompt(){return this.$store.state.kling?.config?.prompt||""},allChipTexts(){return this.groups.flatMap(e=>e.chipKeys.map(t=>this.$t(`kling.inspiration.chip.${t}`)))},selectedCount(){return this.allChipTexts.filter(e=>this.isSelected(e)).length}},methods:{chipText(e){return this.$t(`kling.inspiration.chip.${e}`)},isSelected(e){return e?this.prompt.includes(e):!1},setPrompt(e){this.$store.commit("kling/setConfig",{...this.$store.state.kling?.config,prompt:e})},onToggle(e){e&&(this.isSelected(e)?this.setPrompt(z(this.prompt,e)):this.setPrompt(ro(this.prompt,e)))},onClearSelected(){let e=this.prompt;for(const t of this.allChipTexts)for(;e.includes(t);)e=z(e,t);this.setPrompt(e)}}}),Uo={class:"drawer-content"},Ro={class:"drawer-header"},Ao={class:"title-row"},Do={class:"title"},Po={class:"hint"},Go={key:0,class:"selected-bar"},Ko={class:"selected-text"},Oo={class:"groups"},jo={class:"group-title"},No={class:"chip-grid"},Bo=["onClick"];function zo(e,t,s,a,p,$){const d=o("font-awesome-icon"),m=o("el-button"),f=o("el-drawer");return l(),C(f,{modelValue:e.visible,"onUpdate:modelValue":t[1]||(t[1]=c=>e.visible=c),direction:"rtl","with-header":!1,size:e.drawerSize,"custom-class":"kling-inspiration-drawer","destroy-on-close":!1},{default:h(()=>[i("div",Uo,[i("div",Ro,[i("div",Ao,[n(d,{icon:"fa-regular fa-lightbulb",class:"mr-2"}),i("span",Do,r(e.$t("kling.inspiration.title")),1)]),n(m,{text:"",icon:e.Close,class:"close-btn",onClick:t[0]||(t[0]=c=>e.visible=!1)},null,8,["icon"])]),i("div",Po,r(e.$t("kling.inspiration.hint")),1),e.selectedCount>0?(l(),u("div",Go,[i("span",Ko,r(e.$t("kling.inspiration.selectedSummary",{count:e.selectedCount})),1),n(m,{text:"",size:"small",class:"clear-btn",onClick:e.onClearSelected},{default:h(()=>[w(r(e.$t("kling.inspiration.clearSelected")),1)]),_:1},8,["onClick"])])):k("",!0),i("div",Oo,[(l(!0),u(T,null,I(e.groups,c=>(l(),u("div",{key:c.groupKey,class:"group"},[i("div",jo,r(e.$t(`kling.inspiration.group.${c.groupKey}`)),1),i("div",No,[(l(!0),u(T,null,I(c.chipKeys,v=>(l(),u("button",{key:v,type:"button",class:R({chip:!0,active:e.isSelected(e.chipText(v))}),onClick:g=>e.onToggle(e.chipText(v))},r(e.chipText(v)),11,Bo))),128))])]))),128))])])]),_:1},8,["modelValue","size"])}const Fo=y(Mo,[["render",zo],["__scopeId","data-v-7d457a69"]]),qo={"kling-v3":"v3","kling-v3-omni":"v3-Omni","kling-v2-6":"v2.6","kling-v2-5-turbo":"v2.5-Turbo","kling-v2-1-master":"v2.1-Master","kling-v2-master":"v2-Master","kling-v1-6":"v1.6","kling-v1":"v1","kling-video-o1":"Video-o1"},Ho={std:"720p",pro:"1080p","4k":"4K"},Wo=b({name:"SummaryChip",components:{FontAwesomeIcon:E},computed:{config(){return this.$store.state.kling?.config||{}},modelLabel(){const e=this.config?.model||"kling-v2-5-turbo";return qo[e]||e},durationLabel(){return`${this.config?.duration??5}s`},aspectRatio(){return this.config?.aspect_ratio||""},modeLabel(){const e=this.config?.mode||"std";return Ho[e]||e},generateAudio(){return!!this.config?.generate_audio}}}),Jo={class:"summary-chip"},Qo=["title"],Yo=["title"],Xo=["title"],Zo=["title"],xo=["title"];function en(e,t,s,a,p,$){const d=o("font-awesome-icon");return l(),u("div",Jo,[i("span",{class:"part",title:e.$t("kling.name.model")},r(e.modelLabel),9,Qo),t[0]||(t[0]=i("span",{class:"dot"},"·",-1)),i("span",{class:"part",title:e.$t("kling.name.duration")},r(e.durationLabel),9,Yo),t[1]||(t[1]=i("span",{class:"dot"},"·",-1)),i("span",{class:"part",title:e.$t("kling.name.ratio")},r(e.aspectRatio||"16:9"),9,Xo),t[2]||(t[2]=i("span",{class:"dot"},"·",-1)),i("span",{class:"part",title:e.$t("kling.name.mode")},r(e.modeLabel),9,Zo),e.generateAudio?(l(),u("span",{key:0,class:"audio",title:e.$t("kling.name.generateAudio")},[n(d,{icon:"fa-solid fa-headphones"})],8,xo)):k("",!0)])}const tn=y(Wo,[["render",en],["__scopeId","data-v-418a6733"]]),on=b({name:"ConfigPanel",components:{ElButton:L,Consumption:ce,FontAwesomeIcon:E,PromptInput:wo,NegativePromptInput:Lo,ModelSelector:xe,ModeSelector:lt,DurationSelector:ft,RatioSelector:yt,StartImage:Et,CfgScaleSelector:Ft,GenerateAudioSelector:Xt,CameraControlSelector:ao,InspirationDrawer:Fo,SummaryChip:tn,EndImage:Pt},emits:["generate"],data(){return{inspirationOpen:!1}},computed:{config(){return this.$store.state.kling?.config},consumption(){return me(this.config,this.service?.cost)},service(){return this.$store.state.kling?.service}},methods:{onGenerate(){this.$emit("generate")}}}),nn={class:"flex flex-col h-full"},sn={class:"flex-1 overflow-y-auto p-5"},ln={class:"flex flex-col items-center justify-center px-5 pb-5"};function an(e,t,s,a,p,$){const d=o("prompt-input"),m=o("model-selector"),f=o("ratio-selector"),c=o("start-image"),v=o("end-image"),g=o("duration-selector"),_=o("mode-selector"),M=o("generate-audio-selector"),U=o("camera-control-selector"),j=o("cfg-scale-selector"),he=o("negative-prompt-input"),_e=o("summary-chip"),$e=o("consumption"),X=o("font-awesome-icon"),Z=o("el-button"),ve=o("inspiration-drawer");return l(),u("div",nn,[i("div",sn,[n(d,{class:"mb-4",onOpenInspiration:t[0]||(t[0]=x=>e.inspirationOpen=!0)}),n(m,{class:"mb-4"}),n(f,{class:"mb-4"}),n(c,{class:"mb-2"}),n(v,{class:"mb-2"}),n(g,{class:"mb-4"}),n(_,{class:"mb-4"}),n(M,{class:"mb-4"}),n(U,{class:"mb-4"}),n(j,{class:"mb-4"}),n(he,{class:"mb-4"})]),i("div",ln,[n(_e),n($e,{value:e.consumption,service:e.service},null,8,["value","service"]),e.config?.video_url!==void 0||e.config?.custom?(l(),C(Z,{key:0,type:"primary",class:"btn w-full",round:"",onClick:e.onGenerate},{default:h(()=>[n(X,{icon:"fa-solid fa-magic",class:"mr-2"}),w(" "+r(e.$t("kling.button.extend")),1)]),_:1},8,["onClick"])):(l(),C(Z,{key:1,type:"primary",class:"btn w-full",round:"",onClick:e.onGenerate},{default:h(()=>[n(X,{icon:"fa-solid fa-magic",class:"mr-2"}),w(" "+r(e.$t("kling.button.generate")),1)]),_:1},8,["onClick"]))]),n(ve,{modelValue:e.inspirationOpen,"onUpdate:modelValue":t[1]||(t[1]=x=>e.inspirationOpen=x)},null,8,["modelValue"])])}const rn=y(on,[["render",an]]),cn=b({name:"MotionImage",components:{ElUpload:O,ElButton:L,InfoIcon:V,FontAwesomeIcon:E,ImagePreview:K},mixins:[H],data(){return{fileList:[],uploadUrl:G()+"/api/v1/files/"}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>e?.response?.file_url)}},mounted(){this.onSetImageUrl()},methods:{onExceed(){S.warning(this.$t("kling.message.uploadReferencesExceed"))},onError(){S.error(this.$t("kling.message.uploadReferencesError"))},onRemove(e){this.fileList.splice(this.fileList.indexOf(e),1),this.$store.commit("kling/setMotionConfig",{...this.$store.state.kling?.motionConfig,image_url:void 0})},onSetImageUrl(){const e=this.urls?.[0];this.$store.commit("kling/setMotionConfig",{...this.$store.state.kling?.motionConfig,image_url:e})},async onSuccess(){this.onSetImageUrl()}}}),dn={class:"relative"},un={class:"flex justify-between"},pn={class:"flex justify-start items-center"},mn={class:"text-sm font-bold"};function gn(e,t,s,a,p,$){const d=o("info-icon"),m=o("image-preview"),f=o("font-awesome-icon"),c=o("el-button"),v=o("el-upload");return l(),u("div",dn,[i("div",un,[i("div",pn,[i("span",mn,r(e.$t("kling.name.motionImage")),1),n(d,{content:e.$t("kling.description.motionImage")},null,8,["content"])])]),n(v,{ref:"uploader","file-list":e.fileList,"onUpdate:fileList":t[0]||(t[0]=g=>e.fileList=g),name:"file",accept:".png,.jpg,.jpeg,.gif,.bmp,.webp",limit:1,class:"upload-wrapper",multiple:!1,action:e.uploadUrl,"list-type":"picture","on-exceed":e.onExceed,"on-error":e.onError,"on-success":e.onSuccess,headers:e.headers},{file:h(({file:g})=>[g.url&&g.percentage!==void 0?(l(),C(m,{key:0,url:g.url,name:g.name,percentage:g.percentage,onRemove:_=>e.onRemove(g)},null,8,["url","name","percentage","onRemove"])):k("",!0)]),default:h(()=>[n(c,{round:"",type:"primary",size:"small",class:"btn btn-upload"},{default:h(()=>[n(f,{icon:"fa-solid fa-upload",class:"icon mr-1"}),w(" "+r(e.$t("kling.button.uploadReferences")),1)]),_:1})]),_:1},8,["file-list","action","on-exceed","on-error","on-success","headers"])])}const fn=y(cn,[["render",gn],["__scopeId","data-v-37d42da7"]]),hn=b({name:"MotionVideo",components:{ElUpload:O,ElButton:L,InfoIcon:V,FilePreview:Me,FontAwesomeIcon:E},data(){return{fileList:[],uploadUrl:G()+"/api/v1/files/"}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>e?.response?.file_url)}},mounted(){this.onSetVideoUrl()},methods:{onExceed(){S.warning(this.$t("kling.message.uploadVideoExceed"))},onError(){S.error(this.$t("kling.message.uploadVideoError"))},onRemove(e){this.fileList.splice(this.fileList.indexOf(e),1),this.$store.commit("kling/setMotionConfig",{...this.$store.state.kling?.motionConfig,video_url:void 0})},beforeUpload(e){const t=e.type==="video/mp4"||e.type==="video/quicktime",s=e.size/1024/1024<100;return t?s?!0:(S.error(this.$t("kling.message.uploadVideoSizeExceed")),!1):(S.error(this.$t("kling.message.uploadVideoTypeFailed")),!1)},onSetVideoUrl(){const e=this.urls?.[0];this.$store.commit("kling/setMotionConfig",{...this.$store.state.kling?.motionConfig,video_url:e})},async onSuccess(){this.onSetVideoUrl()}}}),_n={class:"relative"},$n={class:"flex justify-between"},vn={class:"flex justify-start items-center"},kn={class:"text-sm font-bold"};function bn(e,t,s,a,p,$){const d=o("info-icon"),m=o("file-preview"),f=o("font-awesome-icon"),c=o("el-button"),v=o("el-upload");return l(),u("div",_n,[i("div",$n,[i("div",vn,[i("span",kn,r(e.$t("kling.name.motionVideo")),1),n(d,{content:e.$t("kling.description.motionVideo")},null,8,["content"])])]),n(v,{"file-list":e.fileList,"onUpdate:fileList":t[0]||(t[0]=g=>e.fileList=g),accept:".mp4,.mov",name:"file",class:"value","show-file-list":!0,limit:1,multiple:!1,action:e.uploadUrl,"before-upload":e.beforeUpload,"on-exceed":e.onExceed,"on-error":e.onError,"on-success":e.onSuccess,headers:e.headers},{file:h(({file:g})=>[g.percentage!==void 0?(l(),C(m,{key:0,url:g.url||g.response?.file_url,name:g.name,percentage:g.percentage,onRemove:_=>e.onRemove(g)},null,8,["url","name","percentage","onRemove"])):k("",!0)]),default:h(()=>[n(c,{round:"",type:"primary",size:"small",class:"btn btn-upload"},{default:h(()=>[n(f,{icon:"fa-solid fa-upload",class:"icon mr-1"}),w(" "+r(e.$t("kling.button.uploadVideoUrl")),1)]),_:1})]),_:1},8,["file-list","action","before-upload","on-exceed","on-error","on-success","headers"])])}const yn=y(hn,[["render",bn],["__scopeId","data-v-5cf93212"]]),wn=b({name:"MotionPromptInput",components:{ElInput:J,InfoIcon:V},computed:{prompt:{get(){return this.$store.state.kling?.motionConfig?.prompt||""},set(e){this.$store.commit("kling/setMotionConfig",{...this.$store.state.kling?.motionConfig,prompt:e})}}}}),Cn={class:"field"},Sn={class:"box"},Vn={class:"title font-bold"};function Tn(e,t,s,a,p,$){const d=o("info-icon"),m=o("el-input");return l(),u("div",Cn,[i("div",Sn,[i("h2",Vn,r(e.$t("kling.name.motionPrompt")),1),n(d,{content:e.$t("kling.description.motionPrompt"),class:"info"},null,8,["content"])]),n(m,{modelValue:e.prompt,"onUpdate:modelValue":t[0]||(t[0]=f=>e.prompt=f),rows:3,type:"textarea",class:"prompt",placeholder:e.$t("kling.placeholder.motionPrompt")},null,8,["modelValue","placeholder"])])}const In=y(wn,[["render",Tn],["__scopeId","data-v-ca9fdbe5"]]),ie="video",En=b({name:"CharacterOrientationSelector",components:{ElRadioGroup:Re,ElRadioButton:Ue,InfoIcon:V},computed:{value:{get(){return this.$store.state.kling?.motionConfig?.character_orientation||ie},set(e){this.$store.commit("kling/setMotionConfig",{...this.$store.state.kling?.motionConfig,character_orientation:e})}}},mounted(){this.$store.state.kling?.motionConfig?.character_orientation||(this.value=ie)}}),Ln={class:"field"},Mn={class:"header"},Un={class:"text-sm font-bold"};function Rn(e,t,s,a,p,$){const d=o("info-icon"),m=o("el-radio-button"),f=o("el-radio-group");return l(),u("div",Ln,[i("div",Mn,[i("span",Un,r(e.$t("kling.name.characterOrientation")),1),n(d,{content:e.$t("kling.description.characterOrientation")},null,8,["content"])]),n(f,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=c=>e.value=c),size:"small",class:"value"},{default:h(()=>[n(m,{label:"image"},{default:h(()=>[w(r(e.$t("kling.name.orientationImage")),1)]),_:1}),n(m,{label:"video"},{default:h(()=>[w(r(e.$t("kling.name.orientationVideo")),1)]),_:1})]),_:1},8,["modelValue"])])}const An=y(En,[["render",Rn],["__scopeId","data-v-7a91195b"]]),le="std",Dn=b({name:"MotionModeSelector",components:{ElSelect:P,ElOption:D,InfoIcon:V},computed:{options(){return[{value:"std",label:this.$t("kling.name.modeStd")},{value:"pro",label:this.$t("kling.name.modePro")}]},value:{get(){return this.$store.state.kling?.motionConfig?.mode||le},set(e){this.$store.commit("kling/setMotionConfig",{...this.$store.state.kling?.motionConfig,mode:e})}}},mounted(){this.$store.state.kling?.motionConfig?.mode||(this.value=le)}}),Pn={class:"field"},Gn={class:"header"},Kn={class:"title font-bold"};function On(e,t,s,a,p,$){const d=o("info-icon"),m=o("el-option"),f=o("el-select");return l(),u("div",Pn,[i("div",Gn,[i("h2",Kn,r(e.$t("kling.name.mode")),1),n(d,{content:e.$t("kling.description.motionMode")},null,8,["content"])]),n(f,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=c=>e.value=c),class:"value",placeholder:e.$t("kling.placeholder.select")},{default:h(()=>[(l(!0),u(T,null,I(e.options,c=>(l(),C(m,{key:c.value,label:c.label,value:c.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])])}const jn=y(Dn,[["render",On],["__scopeId","data-v-1295688c"]]),Nn=b({name:"KeepOriginalSoundSelector",components:{ElSwitch:pe,InfoIcon:V},computed:{value:{get(){return(this.$store.state.kling?.motionConfig?.keep_original_sound??"yes")==="yes"},set(e){this.$store.commit("kling/setMotionConfig",{...this.$store.state.kling?.motionConfig,keep_original_sound:e?"yes":"no"})}}}}),Bn={class:"relative"},zn={class:"flex justify-between items-center"},Fn={class:"flex justify-start items-center"},qn={class:"text-sm font-bold"};function Hn(e,t,s,a,p,$){const d=o("info-icon"),m=o("el-switch");return l(),u("div",Bn,[i("div",zn,[i("div",Fn,[i("span",qn,r(e.$t("kling.name.keepOriginalSound")),1),n(d,{content:e.$t("kling.description.keepOriginalSound")},null,8,["content"])]),n(m,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=f=>e.value=f)},null,8,["modelValue"])])])}const Wn=y(Nn,[["render",Hn]]),Jn=b({name:"MotionPanel",components:{ElButton:L,FontAwesomeIcon:E,Consumption:ce,MotionImage:fn,MotionVideo:yn,MotionPromptInput:In,CharacterOrientationSelector:An,MotionModeSelector:jn,KeepOriginalSoundSelector:Wn},emits:["generate"],computed:{motionConfig(){return this.$store.state.kling?.motionConfig},consumption(){return me(this.motionConfig,this.service?.cost)},service(){return this.$store.state.kling?.service},canGenerate(){const e=this.motionConfig;return!!(e?.image_url&&e?.video_url)}},methods:{onGenerate(){this.$emit("generate")}}}),Qn={class:"flex flex-col h-full"},Yn={class:"flex-1 overflow-y-auto p-5"},Xn={class:"flex flex-col items-center justify-center px-5 pb-5"};function Zn(e,t,s,a,p,$){const d=o("motion-image"),m=o("motion-video"),f=o("motion-prompt-input"),c=o("character-orientation-selector"),v=o("motion-mode-selector"),g=o("keep-original-sound-selector"),_=o("consumption"),M=o("font-awesome-icon"),U=o("el-button");return l(),u("div",Qn,[i("div",Yn,[n(d,{class:"mb-3"}),n(m,{class:"mb-3"}),n(f,{class:"mb-4"}),n(c,{class:"mb-4"}),n(v,{class:"mb-4"}),n(g,{class:"mb-4"})]),i("div",Xn,[n(_,{value:e.consumption,service:e.service},null,8,["value","service"]),n(U,{type:"primary",class:"btn w-full",round:"",disabled:!e.canGenerate,onClick:e.onGenerate},{default:h(()=>[n(M,{icon:"fa-solid fa-magic",class:"mr-2"}),w(" "+r(e.$t("kling.button.generateMotion")),1)]),_:1},8,["disabled","onClick"])])])}const xn=y(Jn,[["render",Zn]]),es=b({name:"KlingTabSwitcher",components:{ElTabs:De,ElTabPane:Ae,ElTag:we},props:{modelValue:{type:String,default:"videos"}},emits:["update:modelValue"],computed:{tabs(){return[{value:"videos",label:this.$t("kling.tab.videoGeneration")},{value:"motion",label:this.$t("kling.tab.motionControl")}]}},methods:{onUpdate(e){this.$emit("update:modelValue",e)}}}),ts=["title"],os={class:"text"};function ns(e,t,s,a,p,$){const d=o("el-tag"),m=o("el-tab-pane"),f=o("el-tabs");return l(),C(f,{"model-value":e.modelValue,class:"kling-tabs",stretch:"","onUpdate:modelValue":e.onUpdate},{default:h(()=>[(l(!0),u(T,null,I(e.tabs,c=>(l(),C(m,{key:c.value,name:c.value,disabled:c.disabled},{label:h(()=>[i("span",{class:"tab-label",title:c.disabled?c.disabledReason:void 0},[i("span",os,r(c.label),1),c.badge?(l(),C(d,{key:0,size:"small",type:"warning",class:"badge"},{default:h(()=>[w(r(c.badge),1)]),_:2},1024)):k("",!0)],8,ts)]),_:2},1032,["name","disabled"]))),128))]),_:1},8,["model-value","onUpdate:modelValue"])}const ss=y(es,[["render",ns],["__scopeId","data-v-bf00c27e"]]),is=b({name:"TaskPreview",components:{ElImage:Oe,CopyToClipboard:Pe,FontAwesomeIcon:E,ElAlert:Ke,VideoPlayer:Ge,ElTooltip:W,ElButton:L,ImagePreview:K},props:{modelValue:{type:Object,required:!0}},data(){return{}},computed:{application(){return this.$store.state.kling?.application},config(){return this.$store.state.kling?.config},referenceImages(){const e=[],t=this.modelValue?.request?.start_image_url,s=this.modelValue?.request?.end_image_url;return t&&e.push({url:t,name:"start-image"}),s&&e.push({url:s,name:"end-image"}),e}},methods:{onDownload(e,t){e.stopPropagation(),console.log("on download"),window.open(t,"_blank")},onOpenVideo(e){window.open(e,"_blank")}}}),ls={class:"preview"},as={class:"left"},rs={class:"main"},cs={class:"bot"},ds={class:"datetime"},us={class:"info"},ps={key:0,class:"flex justify-start items-center gap-2 mt-2 w-full overflow-x-auto"},ms={key:1,class:"prompt mt-2"},gs={key:0},fs={key:1},hs={key:0,class:R({content:!0,failed:!0})},_s={key:0,class:"mb-4"},$s={key:1,class:R({operations:!0,"mt-2":!0})},vs={class:"text-[var(--el-text-color-regular)] text-xs mb-2"},ks={class:"text-[var(--el-text-color-regular)] text-xs mb-2"},bs={key:0,class:"text-[var(--el-text-color-regular)] text-xs mb-0"},ys={key:1,class:R({content:!0})},ws={class:"text-[var(--el-text-color-regular)] text-xs mb-2"},Cs={class:"text-[var(--el-text-color-regular)] text-xs mb-2"},Ss={key:0,class:"text-[var(--el-text-color-regular)] text-xs mb-2"},Vs={key:1,class:"text-[var(--el-text-color-regular)] text-xs mb-0"},Ts={key:2,class:R({content:!0})},Is={class:"text-[var(--el-text-color-regular)] text-xs mb-2"},Es={key:0,class:"text-[var(--el-text-color-regular)] text-xs mb-0"};function Ls(e,t,s,a,p,$){const d=o("el-image"),m=o("image-preview"),f=o("video-player"),c=o("el-button"),v=o("el-tooltip"),g=o("font-awesome-icon"),_=o("copy-to-clipboard"),M=o("el-alert");return l(),u("div",ls,[i("div",as,[n(d,{src:"https://cdn.acedata.cloud/qpbbbb.jpg",class:"avatar"})]),i("div",rs,[i("div",cs,[w(r(e.$t("kling.name.klingBot"))+" ",1),i("span",ds,r(e.$dayjs.format(""+new Date(parseFloat((e.modelValue?.created_at||"").toString())*1e3))),1)]),i("div",us,[e.referenceImages.length>0?(l(),u("div",ps,[(l(!0),u(T,null,I(e.referenceImages,(U,j)=>(l(),C(m,{key:j,url:U.url,name:U.name,closable:!1},null,8,["url","name"]))),128))])):k("",!0),e.modelValue?.request?.prompt?(l(),u("p",ms,[w(r(e.modelValue?.request?.prompt)+" ",1),e.modelValue?.response?k("",!0):(l(),u("span",gs," - ("+r(e.$t("kling.status.pending"))+") ",1)),e.modelValue?.response?.state==="submitted"||e.modelValue?.response?.state==="processing"||e.modelValue?.response?.state==="pending"||e.modelValue?.response?.state==="completed"?(l(),u("span",fs," - ("+r(e.$t("kling.status.processing"))+") ",1)):k("",!0)])):k("",!0)]),e.modelValue?.response?.success===!0?(l(),u("div",hs,[e.modelValue?.response.video_url?(l(),u("div",_s,[n(f,{src:e.modelValue?.response.video_url},null,8,["src"])])):k("",!0),e.modelValue?.response.success?(l(),u("div",$s,[n(v,{class:"box-item",effect:"dark",content:e.$t("kling.message.downloadVideo"),placement:"top-start"},{default:h(()=>[e.modelValue?.response.video_url?(l(),C(c,{key:0,type:"info",size:"small",class:"btn-action",onClick:t[0]||(t[0]=U=>e.onDownload(U,e.modelValue?.response.video_url))},{default:h(()=>[w(r(e.$t("kling.button.download")),1)]),_:1})):k("",!0)]),_:1},8,["content"])])):k("",!0),n(M,{closable:!1,class:"mt-2 success"},{default:h(()=>[i("p",vs,[n(g,{icon:"fa-solid fa-hashtag",class:"mr-1"}),w(" "+r(e.$t("kling.name.model"))+": "+r(e.modelValue?.request?.model),1)]),i("p",ks,[n(g,{icon:"fa-solid fa-magic",class:"mr-1"}),w(" "+r(e.$t("kling.name.taskId"))+": "+r(e.modelValue?.id)+" ",1),n(_,{content:e.modelValue?.id},null,8,["content"])]),e.modelValue?.elapsed?(l(),u("p",bs,[n(g,{icon:"fa-solid fa-clock",class:"mr-1"}),w(" "+r(e.$t("kling.name.elapsed"))+": "+r(e.modelValue?.elapsed?.toFixed(2))+"s ",1)])):k("",!0)]),_:1})])):k("",!0),e.modelValue?.response?.success===!1?(l(),u("div",ys,[n(M,{closable:!1,class:"failure"},{template:h(()=>[n(g,{icon:"fa-solid fa-exclamation-triangle",class:"mr-1"}),w(" "+r(e.$t("kling.name.failure")),1)]),default:h(()=>[i("p",ws,[n(g,{icon:"fa-solid fa-magic",class:"mr-1"}),w(" "+r(e.$t("kling.name.taskId"))+": "+r(e.modelValue?.id)+" ",1),n(_,{content:e.modelValue?.id},null,8,["content"])]),i("p",Cs,[n(g,{icon:"fa-solid fa-circle-info",class:"mr-1"}),w(" "+r(e.$t("kling.name.failureReason"))+": "+r(e.modelValue?.response?.error?.message)+" ",1),n(_,{content:e.modelValue?.response?.error?.message},null,8,["content"])]),e.modelValue?.elapsed?(l(),u("p",Ss,[n(g,{icon:"fa-solid fa-clock",class:"mr-1"}),w(" "+r(e.$t("kling.name.elapsed"))+": "+r(e.modelValue?.elapsed?.toFixed(2))+"s ",1)])):k("",!0),e.modelValue?.response?.trace_id?(l(),u("p",Vs,[n(g,{icon:"fa-solid fa-hashtag",class:"mr-1"}),w(" "+r(e.$t("kling.name.traceId"))+": "+r(e.modelValue?.response?.trace_id)+" ",1),n(_,{content:e.modelValue?.response?.trace_id},null,8,["content"])])):k("",!0)]),_:1})])):k("",!0),e.modelValue?.response?.success===void 0?(l(),u("div",Ts,[n(M,{closable:!1,class:"info"},{template:h(()=>[n(g,{icon:"fa-solid fa-exclamation-triangle",class:"mr-1"}),w(" "+r(e.$t("kling.name.failure")),1)]),default:h(()=>[i("p",Is,[n(g,{icon:"fa-solid fa-magic",class:"mr-1"}),w(" "+r(e.$t("kling.name.taskId"))+": "+r(e.modelValue?.id)+" ",1),n(_,{content:e.modelValue?.id},null,8,["content"])]),e.modelValue?.response?.trace_id?(l(),u("p",Es,[n(g,{icon:"fa-solid fa-hashtag",class:"mr-1"}),w(" "+r(e.$t("kling.name.traceId"))+": "+r(e.modelValue?.response?.trace_id)+" ",1),n(_,{content:e.modelValue?.response?.trace_id},null,8,["content"])])):k("",!0)]),_:1})])):k("",!0)])])}const Ms=y(is,[["render",Ls],["__scopeId","data-v-e8e87659"]]),Us=b({name:"RecentPanel",components:{TaskPreview:Ms,NoTasks:Ne,BotPlaceholder:je,ScrollList:Ee},props:{loading:{type:Boolean,default:!1}},emits:["reach-top"],data(){return{job:0}},computed:{tasks(){return{...this.$store.state.kling?.tasks,items:this.$store.state.kling?.tasks?.items?.slice()}}},methods:{getScrollElement(){return this.$refs.scrollList?.getScrollElement?.()}}}),Rs={key:0},As={key:2,class:"w-full h-full flex items-center justify-center"};function Ds(e,t,s,a,p,$){const d=o("bot-placeholder"),m=o("task-preview"),f=o("scroll-list"),c=o("no-tasks");return l(),u(T,null,[e.tasks?.items===void 0?(l(),u("div",Rs,[n(d)])):e.tasks?.items?.length&&e.tasks?.items?.length>0?(l(),C(f,{key:1,ref:"scrollList",class:"h-full w-full overflow-y-auto tasks",loading:e.loading,onReachTop:t[0]||(t[0]=v=>e.$emit("reach-top"))},{default:h(()=>[(l(!0),u(T,null,I(e.tasks?.items,v=>(l(),C(m,{key:v.id,"model-value":v},null,8,["model-value"]))),128))]),_:1},8,["loading"])):k("",!0),e.tasks?.items?.length===0?(l(),u("div",As,[n(c)])):k("",!0)],64)}const Ps=y(Us,[["render",Ds]]),ae=Ce("kling"),Gs=b({name:"KlingIndex",components:{ConfigPanel:rn,MotionPanel:xn,TabSwitcher:ss,Layout:We,RecentPanel:Ps},inject:["initialized"],data(){return{task:void 0,job:0,loadingMore:!1,fetchingTasks:!1}},computed:{applicationsLoading(){return this.$store.state.kling?.status?.getApplications===oe.Request},tasksLoading(){return this.$store.state.kling?.status?.getTasks===oe.Request||this.fetchingTasks},credential(){return this.$store.state.kling.credential},config(){return this.$store.state.kling.config},motionConfig(){return this.$store.state.kling.motionConfig},taskType(){return this.$store.state.kling.taskType||"videos"},tasks(){return this.$store.state.kling.tasks}},watch:{tasks:{handler(e,t){e?.items?.length>t?.items?.length&&console.debug("new tasks detected")},deep:!0},initialized:{async handler(e){e&&(console.debug("layout initialized"),await this.onGetTasks(),await this.onScrollDown(),this.job=window.setInterval(()=>{this.onGetTasks()},5e3))},immediate:!0}},async mounted(){await this.onGetService()},async unmounted(){window.clearInterval(this.job)},methods:{async onReachTop(){await Le({tasks:this.tasks,loading:this.loadingMore,setLoading:e=>this.loadingMore=e,isBlocked:()=>this.tasksLoading||this.applicationsLoading,fetch:e=>this.onGetTasks({createdAtMax:e}),getScrollElement:()=>this.getTasksScrollElement()})},async onGetService(){console.debug("start onGetService"),await this.$store.dispatch("kling/getService"),console.debug("end onGetService")},async onGetApplication(){console.debug("start onGetApplication"),await this.$store.dispatch("kling/getApplications"),console.debug("end onGetApplication"),await this.onGetTasks()},async onScrollDown(){await this.$nextTick();const e=this.getTasksScrollElement();e&&(e.scrollTop=e.scrollHeight)},async onGetTasks(e){if(this.applicationsLoading||this.fetchingTasks){console.debug("loading");return}console.debug("start onGetTasks",e);const{limit:t=5,createdAtMin:s,createdAtMax:a}=e||{};console.debug("limit",t,"createdAtMin",s,"createdAtMax",a),this.fetchingTasks=!0;try{await this.$store.dispatch("kling/getTasks",{limit:t,createdAtMin:s,createdAtMax:a})}finally{this.fetchingTasks=!1}},async onGenerate(){const{camera_control:e,...t}=this.config||{},s={...t,callback_url:ae};if(!s.video_id&&!t.video_url&&!s.start_image_url&&s.end_image_url){S.warning(this.$t("kling.message.endImageRequiresStart"));return}s.action||(s.video_id||t.video_url?s.action="extend":s.start_image_url?s.action="image2video":s.action="text2video"),s.action==="text2video"&&s.end_image_url&&delete s.end_image_url,e?.type&&(s.camera_control={type:e.type,...e.type==="simple"&&e.config?{config:Object.fromEntries(Object.entries(e.config).filter(([,p])=>p!=null))}:{}});const a=this.credential?.token;if(!a){console.error("no token specified");return}S.info(this.$t("kling.message.startingTask")),ee("kling",te.generate(s,{token:a})).then(()=>{S.success(this.$t("kling.message.startTaskSuccess"))}).catch(p=>{p?.response?.data?.error?.code===se?S.error(this.$t("kling.message.usedUp")):S.error(this.$t("kling.message.startTaskFailed"))}).finally(async()=>{setTimeout(async()=>{await this.onGetTasks(),await this.onScrollDown()},1e3)})},getTasksScrollElement(){return this.$refs.recentPanel?.getScrollElement?.()},async onTabChange(e){e!==this.taskType&&(await this.$store.dispatch("kling/setTaskType",e),await this.onGetTasks(),await this.onScrollDown())},async onGenerateMotion(){const e=this.motionConfig||{};if(!e.image_url||!e.video_url){S.warning(this.$t("kling.message.motionMissingInputs"));return}const t={image_url:e.image_url,video_url:e.video_url,character_orientation:e.character_orientation||"video",mode:e.mode||"std",keep_original_sound:e.keep_original_sound??"yes",...e.prompt?{prompt:e.prompt}:{},callback_url:ae},s=this.credential?.token;if(!s){console.error("no token specified");return}S.info(this.$t("kling.message.startingTask")),ee("kling",te.motion(t,{token:s})).then(()=>{S.success(this.$t("kling.message.startTaskSuccess"))}).catch(a=>{a?.response?.data?.error?.code===se?S.error(this.$t("kling.message.usedUp")):S.error(this.$t("kling.message.startTaskFailed"))}).finally(async()=>{setTimeout(async()=>{await this.onGetTasks(),await this.onScrollDown()},1e3)})}}}),Ks={class:"flex flex-col h-full"},Os={class:"flex-1 min-h-0"};function js(e,t,s,a,p,$){const d=o("tab-switcher"),m=o("config-panel"),f=o("motion-panel"),c=o("recent-panel"),v=o("layout");return l(),C(v,null,{config:h(()=>[i("div",Ks,[n(d,{"model-value":e.taskType,"onUpdate:modelValue":e.onTabChange},null,8,["model-value","onUpdate:modelValue"]),i("div",Os,[e.taskType==="videos"?(l(),C(m,{key:0,onGenerate:e.onGenerate},null,8,["onGenerate"])):e.taskType==="motion"?(l(),C(f,{key:1,onGenerate:e.onGenerateMotion},null,8,["onGenerate"])):k("",!0)])])]),result:h(()=>[n(c,{ref:"recentPanel",loading:e.loadingMore,onReachTop:e.onReachTop},null,8,["loading","onReachTop"])]),_:1})}const Ni=y(Gs,[["render",js]]);export{Ni as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.menu[data-v-7453886f]{display:none}@media(max-width:767px){.main .config[data-v-7453886f]{display:none}.main .result[data-v-7453886f]{width:100%}.main .preview[data-v-7453886f]{display:none}.main .menu[data-v-7453886f]{display:block;position:absolute;right:8px;top:45px;z-index:1000}}.title[data-v-e4cd0467]{font-size:14px;margin-bottom:0;width:30%}.btn.btn-upload[data-v-e4cd0467]{position:absolute;top:5px;right:0}.upload-wrapper{height:auto;display:flex}.upload-wrapper .el-upload-list{margin:0;width:100%}.field[data-v-88c6da2b] .el-textarea__inner{font-family:monospace;line-height:1.6}.field .box[data-v-26d43480]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;position:relative;margin-bottom:10px}.field .box .title[data-v-26d43480]{font-size:14px;margin-bottom:10px}.field .box .input-wrapper[data-v-26d43480]{width:150px;margin-left:30px}.field .box[data-v-d8a8e583]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;position:relative;margin-bottom:10px}.field .box .title[data-v-d8a8e583]{font-size:14px;margin-bottom:10px}.field .box .input-wrapper[data-v-d8a8e583]{width:150px;margin-left:30px}.advanced-collapse[data-v-88e65aee]{border:none}.advanced-collapse[data-v-88e65aee] .el-collapse-item__header{font-size:14px;font-weight:700;background:transparent;border:none;height:32px;line-height:32px}.advanced-collapse[data-v-88e65aee] .el-collapse-item__wrap{background:transparent;border:none}.advanced-collapse[data-v-88e65aee] .el-collapse-item__content{padding-bottom:0}.panel[data-v-6642bb3c]{height:100%;padding:20px;display:flex;flex-direction:column}.panel .config[data-v-6642bb3c]{width:100%;height:calc(100% - 50px);flex:1;position:relative}.panel .actions[data-v-6642bb3c]{height:50px;display:flex;justify-content:center;align-items:center}.panel .actions .btn[data-v-6642bb3c]{width:100%}.task{display:flex;flex-direction:column;cursor:pointer}.task .audio{display:flex;margin-bottom:10px;border-radius:10px}.task .audio:hover{background-color:var(--el-bg-color-page)}.task .audio .left{position:relative;width:60px;height:60px;margin-right:16px;flex-shrink:0}.task .audio .left:hover .overlay{display:block}.task .audio .left .cover{width:100%;height:100%;border-radius:4px}.task .audio .left .duration{position:absolute;right:0;bottom:0;background-color:#000000b3;padding:2px 4px;color:#fff;border-radius:2px;font-size:10px}.task .audio .left .overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#00000080;display:flex;justify-content:center;align-items:center;display:none;transition:opacity .3s;border-radius:4px;text-align:center;line-height:70px;cursor:pointer}.task .audio .left .overlay .el-icon{font-size:20px;color:#fff}.task .audio .info{flex:1;min-width:0;overflow:hidden}.task .audio .info .title{font-size:14px;font-weight:700;margin-top:5px;white-space:normal;word-break:break-word;overflow-wrap:anywhere}.task .audio .info .style{font-size:12px;margin-bottom:0;color:var(--el-text-color-secondary);white-space:normal;word-break:break-word;overflow-wrap:anywhere}.task .audio .right{width:120px;display:flex;align-items:center;justify-content:flex-end;padding-right:1px}.task .audio .right .icon{display:block;z-index:100;cursor:pointer;margin-right:15px}.task .audio .right .el-button{margin-right:15px}.player-slider .el-slider{height:10px}.player-slider .el-slider .el-slider__runway,.player-slider .el-slider .el-slider__bar{height:2px;border-radius:0}.player-slider .el-slider .el-slider__button-wrapper{width:10px;height:10px;top:-10.5px}.player-slider .el-slider .el-slider__button{width:8px;height:8px}.el-popover.el-popper{min-width:auto}.status[data-v-d6806962]{margin-bottom:10px}.panel.detail[data-v-d6806962]{width:100%;flex:1;overflow-y:scroll}.panel.recent[data-v-d6806962]{height:100%;width:100%;margin-bottom:10px;position:relative;justify-content:initial}.panel.operation[data-v-d6806962]{position:relative}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
const e={"button.extend":{message:"继续生成",description:"继续生成按钮文本"},"button.download":{message:"下载",description:"下载按钮文本"},"button.more":{message:"更多操作",description:"更多操作按钮文本"},"button.uploadAudios":{message:"上传",description:"按钮文本,允许用户上传参考"},"button.video":{message:"视频",description:"视频按钮文本"},"button.download_video":{message:"下载视频",description:"下载视频按钮文本"},"button.download_wav":{message:"下载 WAV 无损",description:"下载WAV无损格式按钮文本"},"button.get_stems":{message:"声曲分离",description:"声曲分离按钮文本"},"button.cover_music":{message:"翻唱",description:"翻唱按钮文本"},"button.download_audio":{message:"下载音乐",description:"下载音乐按钮文本"},"button.replace_section":{message:"替换片段",description:"替换歌曲中的某个片段按钮文本"},"button.generate_lyrics":{message:"AI 生成歌词",description:"使用AI自动生成歌词按钮文本"},"button.all_stems":{message:"全部分离",description:"分离所有音轨按钮文本"},"button.variation":{message:"变体",description:"变体按钮文本"},"button.swap_vocals":{message:"人声替换",description:"人声替换按钮文本"},"button.swap_instrumentals":{message:"伴奏替换",description:"伴奏替换按钮文本"},"model.fuzz20pro":{message:"FUZZ-2.0 Pro",description:"用于生成音乐的模型"},"model.fuzz20":{message:"FUZZ-2.0",description:"用于生成音乐的模型"},"model.fuzz20raw":{message:"FUZZ-2.0 Raw",description:"用于生成音乐的模型"},"model.fuzz11pro":{message:"FUZZ-1.1 Pro",description:"用于生成音乐的模型"},"model.fuzz10pro":{message:"FUZZ-1.0 Pro",description:"用于生成音乐的模型"},"model.fuzz10":{message:"FUZZ-1.0",description:"用于生成音乐的模型"},"model.fuzz11":{message:"FUZZ-1.1",description:"用于生成音乐的模型"},"model.fuzz08":{message:"FUZZ-0.8",description:"用于生成音乐的模型"},"name.instrumental":{message:"纯音乐",description:"生成纯音乐无人声"},"name.referenceAudios":{message:"参考音乐",description:"参考音乐的名称"},"name.taskId":{message:"任务 ID",description:"任务的 ID"},"name.type":{message:"定制模式",description:"定制模式的名称"},"name.prompt":{message:"歌曲描述",description:"内容输入的提示"},"name.extend":{message:"扩展歌曲来自",description:"内容输入的提示"},"name.cover":{message:"翻唱歌曲来自",description:"内容输入的提示"},"name.lyrics":{message:"歌词",description:"歌词内容输入的提示"},"name.style":{message:"风格",description:"歌曲风格内容输入的提示"},"name.styleNegative":{message:"排除风格",description:"不想要的风格描述"},"name.title":{message:"标题",description:"歌曲标题内容输入的提示"},"name.vocalGender":{message:"人声性别",description:"选择人声性别"},"name.advancedParams":{message:"高级参数",description:"高级参数设置"},"name.weirdness":{message:"创意度",description:"控制生成音乐的创意程度"},"name.soundStrength":{message:"声音强度",description:"控制生成声音的强度"},"name.lyricsStrength":{message:"歌词强度",description:"控制歌词对生成结果的影响程度"},"name.seed":{message:"种子",description:"用于可重复生成的随机种子"},"name.lyricPrompt":{message:"歌词提示",description:"用于自动生成歌词的提示"},"name.failureReason":{message:"失败原因",description:"任务失败的原因"},"name.status":{message:"状态",description:"任务的状态"},"name.traceId":{message:"追踪 ID",description:"任务的追踪 ID"},"name.producerBot":{message:"Producer Bot",description:"Producer生成器的名称"},"name.replaceSection":{message:"替换片段",description:"替换歌曲中的某个片段"},"name.model":{message:"模型",description:"选择模型版本"},"name.songDescription":{message:"歌曲描述",description:"歌曲描述模式"},"description.prompt":{message:"描述你想要的音乐风格和主题",description:"参数'prompt'的描述"},"description.lyrics":{message:"输入自定义歌词,支持 [Verse]、[Chorus]、[Bridge] 等段落标记",description:"参数'lyrics'的描述"},"description.style":{message:"描述音乐风格,如 acoustic pop、jazz、electronic",description:"参数'style'的描述"},"description.styleNegative":{message:"描述不想要的风格,例如 heavy metal、screaming",description:"排除风格参数的描述"},"description.title":{message:"歌曲标题",description:"参数'title'的描述"},"description.uploadAudios":{message:"上传音乐作为生成的参考,上传的过程需要等待一会,生成成功后便可根据上传的音乐进行生成",description:"上传参考参数的描述"},"description.vocalGender":{message:"选择生成人声的性别",description:"人声性别选择器的描述"},"description.weirdness":{message:"值越高生成的音乐越有创意和实验性 (0-100)",description:"创意度参数的描述"},"description.soundStrength":{message:"控制生成声音的强度 (0-100)",description:"声音强度参数的描述"},"description.lyricsStrength":{message:"控制歌词对生成结果的影响程度 (0-100)",description:"歌词强度参数的描述"},"description.seed":{message:"输入种子值以获得可重复的结果,留空为随机",description:"种子参数的描述"},"description.lyricPrompt":{message:"输入歌词描述,AI 将自动生成歌词",description:"歌词提示描述"},"description.replaceSection":{message:"替换歌曲中指定时间段的内容",description:"替换片段功能的描述"},"status.pending":{message:"等待中",description:"任务的等待状态"},"placeholder.prompt":{message:"描述你想要的音乐,例如:一首温暖的民谣,关于秋天的思念...",description:"歌曲描述输入的占位符"},"placeholder.lyrics":{message:`[Verse]
|
|
2
|
-
在这个寂静的夜里
|
|
3
|
-
星星在天空闪烁
|
|
4
|
-
|
|
5
|
-
[Chorus]
|
|
6
|
-
让我们一起唱歌
|
|
7
|
-
直到天亮...`,description:"歌词输入的占位符"},"placeholder.extend.lyrics":{message:"请输入需要扩展的歌词...",description:"扩展歌词输入的占位符"},"placeholder.extend.continue_at":{message:"从第几秒开始扩展...",description:"扩展起始时间的占位符"},"placeholder.style":{message:"例如:acoustic pop, jazz, R&B, electronic...",description:"风格输入的占位符"},"placeholder.styleNegative":{message:"例如:heavy metal, screaming...",description:"排除风格输入的占位符"},"placeholder.title":{message:"输入歌曲名称...",description:"标题输入的占位符"},"placeholder.select":{message:"请选择模型...",description:"模型选择的占位符"},"placeholder.position":{message:"请选择...",description:"位置输入的占位符"},"placeholder.lyricPrompt":{message:"描述歌词主题,AI 将自动生成...",description:"歌词提示输入的占位符"},"placeholder.replaceSectionStart":{message:"开始时间 (秒)",description:"替换片段开始时间的占位符"},"placeholder.replaceSectionEnd":{message:"结束时间 (秒)",description:"替换片段结束时间的占位符"},"placeholder.seed":{message:"输入种子值(可选)...",description:"种子输入的占位符"},"button.generate":{message:"生成",description:"生成按钮文本"},"gender.male":{message:"男声",description:"男性人声选项"},"gender.female":{message:"女声",description:"女性人声选项"},"gender.auto":{message:"自动",description:"自动选择人声性别"},"message.startingTask":{message:"正在启动任务...",description:"音乐生成任务开始时的消息"},"message.startingUploadAudio":{message:"正在上传自定义音乐...",description:"音乐生成任务开始时的消息"},"message.uploadReferencesExceed":{message:"上传的音乐超过了最大数量",description:"上传的音乐超过了最大数量时的错误消息"},"message.uploadReferencesError":{message:"上传音乐失败",description:"上传音乐失败时的错误消息"},"message.startTaskSuccess":{message:"成功启动音乐生成任务",description:"成功启动音乐生成任务时的成功消息"},"message.startUploadAudioSuccess":{message:"成功上传自定义音乐",description:"成功启动音乐生成任务时的成功消息"},"message.startUploadAudioFailed":{message:"上传自定义音乐失败",description:"启动音乐生成任务失败时的错误消息"},"message.startTaskFailed":{message:"启动音乐生成任务失败",description:"启动音乐生成任务失败时的错误消息"},"message.getVideoUrlFailed":{message:"获取音乐视频失败,请稍后重试",description:"获取视频失败时的错误消息"},"message.generatingLyrics":{message:"正在生成歌词...",description:"生成歌词时的消息"},"message.generateLyricsSuccess":{message:"歌词生成成功",description:"歌词生成成功时的消息"},"message.generateLyricsFailed":{message:"歌词生成失败",description:"歌词生成失败时的消息"},"message.fetchingWav":{message:"正在获取 WAV 文件...",description:"获取WAV文件时的消息"},"message.fetchWavFailed":{message:"获取 WAV 文件失败",description:"获取WAV文件失败时的消息"},"message.generating":{message:"生成中...",description:"音乐正在生成时的消息"},"message.generateFailed":{message:"生成音乐失败",description:"音乐生成失败时的消息"},"message.noOperations":{message:"没有可用操作",description:"没有可用操作时的消息"},"message.noTasks":{message:"没有历史任务,请在左侧配置栏生成音乐",description:"没有任务时的消息"}};export{e as default};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
const e={"button.extend":{message:"Continue Generating",description:"Text for the continue generating button"},"button.download":{message:"Download",description:"Text for the download button"},"button.more":{message:"More Actions",description:"Text for the more actions button"},"button.uploadAudios":{message:"Upload",description:"Text for the button that allows users to upload references"},"button.video":{message:"Video",description:"Text for the video button"},"button.download_video":{message:"Download Video",description:"Text for the download video button"},"button.download_wav":{message:"Download Lossless WAV",description:"Text for the download WAV lossless format button"},"button.get_stems":{message:"Stem Separation",description:"Text for the stem separation button"},"button.cover_music":{message:"Cover",description:"Text for the cover button"},"button.download_audio":{message:"Download Music",description:"Text for the download music button"},"button.replace_section":{message:"Replace Section",description:"Text for the button to replace a section in the song"},"button.generate_lyrics":{message:"AI Generate Lyrics",description:"Text for the button to automatically generate lyrics using AI"},"button.all_stems":{message:"All Stems",description:"Text for the button to separate all tracks"},"button.variation":{message:"Variation",description:"Text for the variation button"},"button.swap_vocals":{message:"Swap Vocals",description:"Text for the button to swap vocals"},"button.swap_instrumentals":{message:"Swap Instrumentals",description:"Text for the button to swap instrumentals"},"model.fuzz20pro":{message:"FUZZ-2.0 Pro",description:"Model used for generating music"},"model.fuzz20":{message:"FUZZ-2.0",description:"Model used for generating music"},"model.fuzz20raw":{message:"FUZZ-2.0 Raw",description:"Model used for generating music"},"model.fuzz11pro":{message:"FUZZ-1.1 Pro",description:"Model used for generating music"},"model.fuzz10pro":{message:"FUZZ-1.0 Pro",description:"Model used for generating music"},"model.fuzz10":{message:"FUZZ-1.0",description:"Model used for generating music"},"model.fuzz11":{message:"FUZZ-1.1",description:"Model used for generating music"},"model.fuzz08":{message:"FUZZ-0.8",description:"Model used for generating music"},"name.instrumental":{message:"Instrumental",description:"Generate instrumental music without vocals"},"name.referenceAudios":{message:"Reference Music",description:"Name for reference music"},"name.taskId":{message:"Task ID",description:"ID of the task"},"name.type":{message:"Custom Mode",description:"Name of the custom mode"},"name.prompt":{message:"Song Description",description:"Prompt for content input"},"name.extend":{message:"Extend Song From",description:"Prompt for content input"},"name.cover":{message:"Cover Song From",description:"Prompt for content input"},"name.lyrics":{message:"Lyrics",description:"Prompt for lyrics content input"},"name.style":{message:"Style",description:"Prompt for song style content input"},"name.styleNegative":{message:"Exclude Style",description:"Description of styles to exclude"},"name.title":{message:"Title",description:"Prompt for song title content input"},"name.vocalGender":{message:"Vocal Gender",description:"Select vocal gender"},"name.advancedParams":{message:"Advanced Parameters",description:"Settings for advanced parameters"},"name.weirdness":{message:"Creativity Level",description:"Control the level of creativity in generated music"},"name.soundStrength":{message:"Sound Strength",description:"Control the strength of the generated sound"},"name.lyricsStrength":{message:"Lyrics Strength",description:"Control the impact of lyrics on the generated result"},"name.seed":{message:"Seed",description:"Random seed for reproducible generation"},"name.lyricPrompt":{message:"Lyric Prompt",description:"Prompt for automatically generating lyrics"},"name.failureReason":{message:"Failure Reason",description:"Reason for task failure"},"name.status":{message:"Status",description:"Status of the task"},"name.traceId":{message:"Trace ID",description:"Trace ID of the task"},"name.producerBot":{message:"Producer Bot",description:"Name of the Producer generator"},"name.replaceSection":{message:"Replace Section",description:"Replace a section in the song"},"name.model":{message:"Model",description:"Select model version"},"name.songDescription":{message:"Song Description",description:"Mode for song description"},"description.prompt":{message:"Describe the music style and theme you want",description:"Description for the 'prompt' parameter"},"description.lyrics":{message:"Input custom lyrics, supports [Verse], [Chorus], [Bridge], etc. paragraph markers",description:"Description for the 'lyrics' parameter"},"description.style":{message:"Describe the music style, such as acoustic pop, jazz, electronic",description:"Description for the 'style' parameter"},"description.styleNegative":{message:"Describe unwanted styles, such as heavy metal, screaming",description:"Description for the exclude style parameter"},"description.title":{message:"Song Title",description:"Description for the 'title' parameter"},"description.uploadAudios":{message:"Upload music as a reference for generation. The upload process may take some time, and generation will occur based on the uploaded music once successful.",description:"Description for the upload reference parameter"},"description.vocalGender":{message:"Select the gender of the generated vocals",description:"Description for the vocal gender selector"},"description.weirdness":{message:"Higher values result in more creative and experimental music (0-100)",description:"Description for the creativity parameter"},"description.soundStrength":{message:"Control the intensity of the generated sound (0-100)",description:"Description for the sound strength parameter"},"description.lyricsStrength":{message:"Control the influence of lyrics on the generation result (0-100)",description:"Description for the lyrics strength parameter"},"description.seed":{message:"Enter a seed value for reproducible results; leave blank for random",description:"Description for the seed parameter"},"description.lyricPrompt":{message:"Enter a lyric description, and the AI will automatically generate lyrics",description:"Description for the lyric prompt"},"description.replaceSection":{message:"Replace content in the specified time section of the song",description:"Description for the replace segment feature"},"status.pending":{message:"Pending",description:"Waiting status of the task"},"placeholder.prompt":{message:"Describe the music you want, e.g., a warm folk song about autumn nostalgia...",description:"Placeholder for song description input"},"placeholder.lyrics":{message:`[Verse]
|
|
2
|
-
In this quiet night
|
|
3
|
-
Stars twinkle in the sky
|
|
4
|
-
|
|
5
|
-
[Chorus]
|
|
6
|
-
Let's sing together
|
|
7
|
-
Until dawn...`,description:"Placeholder for lyrics input"},"placeholder.extend.lyrics":{message:"Enter the lyrics to be extended...",description:"Placeholder for extended lyrics input"},"placeholder.extend.continue_at":{message:"Start extending from which second...",description:"Placeholder for extension start time"},"placeholder.style":{message:"e.g., acoustic pop, jazz, R&B, electronic...",description:"Placeholder for style input"},"placeholder.styleNegative":{message:"e.g., heavy metal, screaming...",description:"Placeholder for exclude style input"},"placeholder.title":{message:"Enter song name...",description:"Placeholder for title input"},"placeholder.select":{message:"Please select a model...",description:"Placeholder for model selection"},"placeholder.position":{message:"Please select...",description:"Placeholder for position input"},"placeholder.lyricPrompt":{message:"Describe the theme of the lyrics, and the AI will generate automatically...",description:"Placeholder for lyric prompt input"},"placeholder.replaceSectionStart":{message:"Start time (seconds)",description:"Placeholder for the start time of the replace segment"},"placeholder.replaceSectionEnd":{message:"End time (seconds)",description:"Placeholder for the end time of the replace segment"},"placeholder.seed":{message:"Enter seed value (optional)...",description:"Placeholder for seed input"},"button.generate":{message:"Generate",description:"Text for the generate button"},"gender.male":{message:"Male Voice",description:"Option for male vocals"},"gender.female":{message:"Female Voice",description:"Option for female vocals"},"gender.auto":{message:"Auto",description:"Automatically select vocal gender"},"message.startingTask":{message:"Starting task...",description:"Message when starting the music generation task"},"message.startingUploadAudio":{message:"Uploading custom music...",description:"Message when starting the music upload task"},"message.uploadReferencesExceed":{message:"Uploaded music exceeds the maximum number",description:"Error message when uploaded music exceeds the maximum number"},"message.uploadReferencesError":{message:"Failed to upload music",description:"Error message when music upload fails"},"message.startTaskSuccess":{message:"Successfully started music generation task",description:"Success message when music generation task starts successfully"},"message.startUploadAudioSuccess":{message:"Successfully uploaded custom music",description:"Success message when custom music upload starts successfully"},"message.startUploadAudioFailed":{message:"Failed to upload custom music",description:"Error message when starting music generation task fails"},"message.startTaskFailed":{message:"Failed to start music generation task",description:"Error message when starting music generation task fails"},"message.getVideoUrlFailed":{message:"Failed to get music video, please try again later",description:"Error message when getting video fails"},"message.generatingLyrics":{message:"Generating lyrics...",description:"Message when generating lyrics"},"message.generateLyricsSuccess":{message:"Lyrics generated successfully",description:"Message when lyrics generation is successful"},"message.generateLyricsFailed":{message:"Failed to generate lyrics",description:"Message when lyrics generation fails"},"message.fetchingWav":{message:"Fetching WAV file...",description:"Message when fetching the WAV file"},"message.fetchWavFailed":{message:"Failed to fetch WAV file",description:"Message when fetching the WAV file fails"},"message.generating":{message:"Generating...",description:"Message when music is being generated"},"message.generateFailed":{message:"Failed to generate music",description:"Message when music generation fails"},"message.noOperations":{message:"No available operations",description:"Message when there are no available operations"},"message.noTasks":{message:"No history tasks, please generate music in the configuration panel on the left",description:"Message when there are no tasks"}};export{e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as i}from"./index-Bwh4uhxH.js";const n=o=>["",...i].includes(o);export{n as i};
|