@acedatacloud/nexior 3.20.1 → 3.21.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-DOHlOCpp.js → Auth-BVabufZU.js} +1 -1
- package/dist/assets/{BotPlaceholder-6rksUZSI.js → BotPlaceholder-7eayCQm0.js} +1 -1
- package/dist/assets/{Callback-D-v3hKrJ.js → Callback-DhTHSxXY.js} +1 -1
- package/dist/assets/{Console-CrfUOjRg.js → Console-BjADIGZ7.js} +1 -1
- package/dist/assets/{Conversation-XjUVydTy.js → Conversation-CnaceNvi.js} +22 -22
- package/dist/assets/{Conversation-CjRJo_oi.css → Conversation-D5YsR43s.css} +1 -1
- package/dist/assets/{CopyToClipboard-CuCD6yxS.js → CopyToClipboard-YQgGORAE.js} +1 -1
- package/dist/assets/{Detail-CxUCYXrK.js → Detail-DXoiFN0v.js} +1 -1
- package/dist/assets/{EditArray-DaAQ3MHX.js → EditArray-BU6eZhEv.js} +1 -1
- package/dist/assets/{Extra-CLOABQjS.js → Extra-BX-cM5IL.js} +1 -1
- package/dist/assets/{FilePreview-CMrAVI3v.js → FilePreview-CjsRfC5i.js} +1 -1
- package/dist/assets/{History-9Wg3k27E.js → History-DKiwMTuJ.js} +1 -1
- package/dist/assets/{ImagePreview-BvPOSpDB.js → ImagePreview--E2I_hTf.js} +1 -1
- package/dist/assets/{ImageWrapper-BChXhEi0.js → ImageWrapper-Dq05eqgy.js} +1 -1
- package/dist/assets/{Index-DFfkrcKD.js → Index--Yssj8qK.js} +1 -1
- package/dist/assets/{Index--bZdH1SJ.js → Index-CII6HUNz.js} +1 -1
- package/dist/assets/{Index-B4I-9GbD.js → Index-CKmpz6OX.js} +1 -1
- package/dist/assets/{Index-7uD3N-hm.js → Index-CTKE5_gy.js} +1 -1
- package/dist/assets/{Index-CHOFYqOJ.js → Index-Cc5CzCKD.js} +1 -1
- package/dist/assets/{Index-DwVMjgEx.js → Index-ClZOywxh.js} +1 -1
- package/dist/assets/{Index-DXy4uUZ0.js → Index-D2c5R2T3.js} +1 -1
- package/dist/assets/{Index-DgcbnuJl.js → Index-DJS8kJLa.js} +1 -1
- package/dist/assets/{Index-BwBHSzg_.js → Index-DQY6DUFK.js} +1 -1
- package/dist/assets/Index-DWoukX8V.css +1 -0
- package/dist/assets/{Index-DB7xg-db.js → Index-D_RSCN5N.js} +1 -1
- package/dist/assets/{Index-DpXxZAQT.js → Index-DcR-_yuZ.js} +1 -1
- package/dist/assets/{Index-DEJ1F06G.js → Index-DyLO5hPo.js} +1 -1
- package/dist/assets/{Index-DOZ1CpUV.js → Index-HhBx8DzR.js} +1 -1
- package/dist/assets/{Index-CNCj6VmF.js → Index-aCWswdIv.js} +1 -1
- package/dist/assets/{Index-8uOMoloz.js → Index-fXCJyGIC.js} +1 -1
- package/dist/assets/Index-oxMx9Z0b.js +1 -0
- package/dist/assets/{InfoIcon-DhMpzlKc.js → InfoIcon-BvH1w3hu.js} +1 -1
- package/dist/assets/{Invitees-CbKt6RsF.js → Invitees-Cgx3JOVo.js} +1 -1
- package/dist/assets/{List-Dzt1AZ5s.js → List-Bl9TURxH.js} +1 -1
- package/dist/assets/{List-D0u8ApAR.js → List-DLIM6v3S.js} +1 -1
- package/dist/assets/{List-DPJxF9Uq.js → List-Dt0gzgRG.js} +1 -1
- package/dist/assets/{Login-BiY_rvx8.js → Login-BBWBJMn-.js} +1 -1
- package/dist/assets/{Main-DzlsxIsf.js → Main-Ul1e4hCu.js} +1 -1
- package/dist/assets/Navigator-CIrJ8ygQ.js +1 -0
- package/dist/assets/{Navigator-De_Hn2Tg.css → Navigator-D_MW9hOl.css} +1 -1
- package/dist/assets/{NoTasks-DmNkmZBC.js → NoTasks-CWxLeoQx.js} +1 -1
- package/dist/assets/Pagination--Rgu3GgC.js +1 -0
- package/dist/assets/{Status-BdMCij8k.js → Status-BqBJF7tJ.js} +1 -1
- package/dist/assets/{Subscribe-RBtMq5Tr.js → Subscribe-sqY9GV1m.js} +1 -1
- package/dist/assets/{VideoPlayer-D-xD0k0W.js → VideoPlayer-CDl66jN-.js} +1 -1
- package/dist/assets/_baseClone-B5Ppwxqb.js +1 -0
- package/dist/assets/{_baseIteratee-LzESfPbZ.js → _baseIteratee-X7mvVEoG.js} +1 -1
- package/dist/assets/_initCloneObject-BSsEzNvg.js +1 -0
- package/dist/assets/{castArray-BeCWKAC7.js → castArray-VRhoHuDJ.js} +1 -1
- package/dist/assets/{chat-CtMD-e5o.js → chat--QSdcmyT.js} +1 -1
- package/dist/assets/{chat-CFaXimBl.js → chat-B06ZX5Bb.js} +1 -1
- package/dist/assets/{chat-CsxfO42F.js → chat-B0k7Pwwi.js} +1 -1
- package/dist/assets/{chat-CFLYV2ET.js → chat-BFp5R5Zq.js} +1 -1
- package/dist/assets/{chat-DIO2RGDi.js → chat-BK9Jt9YE.js} +1 -1
- package/dist/assets/{chat-CFy2Ied3.js → chat-C5I0_x1X.js} +1 -1
- package/dist/assets/{chat-COgQ2NwU.js → chat-C9HyxcRl.js} +1 -1
- package/dist/assets/{chat-Bkjy0vIB.js → chat-CBi3Ugqj.js} +1 -1
- package/dist/assets/{chat-DnMepMuM.js → chat-CWt3egt0.js} +1 -1
- package/dist/assets/{chat-CaDv_E7P.js → chat-Ct6YGg6K.js} +1 -1
- package/dist/assets/{chat-C_8ycAyw.js → chat-D-MNQzva.js} +1 -1
- package/dist/assets/{chat-jhZ0gMc8.js → chat-D-k_fDEw.js} +1 -1
- package/dist/assets/{chat-CYwIgNiz.js → chat-DEujCDUY.js} +1 -1
- package/dist/assets/{chat-5aITBs8m.js → chat-DGPt4Hft.js} +1 -1
- package/dist/assets/{chat-MOxICDRU.js → chat-DvjrnGzN.js} +1 -1
- package/dist/assets/{chat-CNO6QuT4.js → chat-LiRCi7bJ.js} +1 -1
- package/dist/assets/{chat-Bh9rcVbD.js → chat-NBYqhyye.js} +1 -1
- package/dist/assets/{chat-BXprw-QL.js → chat-f6aXB3K4.js} +1 -1
- package/dist/assets/{common-DWd2m1fH.js → common-2ZSujHN3.js} +1 -1
- package/dist/assets/{common-CAhDeo7r.js → common-B3aUreBi.js} +1 -1
- package/dist/assets/{common-DbbO-j2h.js → common-BYj2dgMN.js} +1 -1
- package/dist/assets/{common-wugNzywt.js → common-B_6DlJxA.js} +1 -1
- package/dist/assets/{common-BVnCkBQz.js → common-BlqN1HFr.js} +1 -1
- package/dist/assets/{common-BW4-7pr5.js → common-BwNjuk6F.js} +1 -1
- package/dist/assets/{common-Cv4BeUYg.js → common-C3nAEQsi.js} +1 -1
- package/dist/assets/{common-DZLnkE8j.js → common-CAcGXPov.js} +1 -1
- package/dist/assets/{common-BOuvwX_b.js → common-CCSiCV1Z.js} +1 -1
- package/dist/assets/{common-B-Qxjf7a.js → common-CMAmVQzk.js} +1 -1
- package/dist/assets/{common-Co44qVkD.js → common-Cygm0eWY.js} +1 -1
- package/dist/assets/{common-CGJk5NFZ.js → common-D43IVAsF.js} +1 -1
- package/dist/assets/{common-BRjwL6pa.js → common-DTqC6g6k.js} +1 -1
- package/dist/assets/{common-CMHolxbL.js → common-Disl6DbM.js} +1 -1
- package/dist/assets/{common-Ctz14A_a.js → common-Inlf4XYP.js} +1 -1
- package/dist/assets/{common-CDZVeYh0.js → common-MrmyAL1U.js} +1 -1
- package/dist/assets/{common-BcVKm2id.js → common-RfVHtKrN.js} +1 -1
- package/dist/assets/{common-BYSAKW_E.js → common-malmfpLC.js} +1 -1
- package/dist/assets/{debounce-kw1MDyXj.js → debounce-B_oyKomx.js} +1 -1
- package/dist/assets/{distribution-D-fO2s3O.js → distribution-DioB9wPx.js} +1 -1
- package/dist/assets/{dropdown-C8jclX96.js → dropdown-BI_aXmp7.js} +1 -1
- package/dist/assets/{index-CSXTF63q.js → index--_dS6us5.js} +1 -1
- package/dist/assets/{index-BNbrEyG8.js → index-B376uNpw.js} +1 -1
- package/dist/assets/{index-BZbKTMK3.js → index-BWsFFZXP.js} +35 -35
- package/dist/assets/{index-CNEDsR9Z.js → index-BhtKUKYx.js} +2 -2
- package/dist/assets/{index-B0EB6NMl.js → index-Bj6lYeuA.js} +1 -1
- package/dist/assets/{index-jqOaitfg.js → index-BwzD3rCs.js} +1 -1
- package/dist/assets/{index-oeBw24Ll.js → index-Bx0koER3.js} +2 -2
- package/dist/assets/{index-1UJz5zRY.js → index-Byut5jZo.js} +1 -1
- package/dist/assets/index-C3nZe_4F.js +1 -0
- package/dist/assets/index-CBqs6I7n.js +1 -0
- package/dist/assets/{index-CjhBlm5C.js → index-CU2wvW23.js} +1 -1
- package/dist/assets/{index-hbRYKLdf.js → index-CUkOndvc.js} +2 -2
- package/dist/assets/{index-BQcaFqGZ.js → index-CbBpCBQy.js} +1 -1
- package/dist/assets/{index-Cu3La3dR.js → index-CiRtHIlU.js} +1 -1
- package/dist/assets/{index-CZi_rDaW.js → index-CyChKWJg.js} +1 -1
- package/dist/assets/index-DQ9u02kq.js +1 -0
- package/dist/assets/{index-yxRIEND6.js → index-DQt0qe1P.js} +1 -1
- package/dist/assets/{index-N5_Xerc6.js → index-DcGntVK2.js} +1 -1
- package/dist/assets/{index-BxILNqsr.js → index-DeVZrTjR.js} +1 -1
- package/dist/assets/{index-BC4WNM6T.js → index-DhB55zty.js} +1 -1
- package/dist/assets/{index-BDYxvVsV.js → index-DvauOAwc.js} +1 -1
- package/dist/assets/{index-CbPHeT3X.js → index-Dwi_2evN.js} +1 -1
- package/dist/assets/{index-C1h2SbZU.js → index-G-88K9QN.js} +1 -1
- package/dist/assets/index-Pp9kAEVZ.js +1 -0
- package/dist/assets/{index-Tp13-pBQ.js → index-W6DB5TGt.js} +1 -1
- package/dist/assets/index-cH785By-.js +1 -0
- package/dist/assets/index-r1Qg4fVw.js +1 -0
- package/dist/assets/{index-CGS5ltjA.js → index-wU4GZ5pY.js} +1 -1
- package/dist/assets/{index-DSYfQpVb.js → index-zV3wYkDF.js} +1 -1
- package/dist/assets/{index.es-B92faSi8.js → index.es-CsBCkfD5.js} +1 -1
- package/dist/assets/{isEqual-DIgYivsv.js → isEqual-CFb6rQDI.js} +1 -1
- package/dist/assets/isPlainObject-XWuQ7pd5.js +1 -0
- package/dist/assets/{order-C2E-v9oK.js → order-yQliu6Am.js} +1 -1
- package/dist/assets/price-D7qIs2re.js +1 -0
- package/dist/assets/{site-C2z7Acri.js → site-7Kw-FZhj.js} +1 -1
- package/dist/assets/{site-BAvle2_O.js → site-B023qvlH.js} +1 -1
- package/dist/assets/{site-C3DwWYe_.js → site-BPp9FcI5.js} +1 -1
- package/dist/assets/{site-kMOtpEid.js → site-BX5PqyKt.js} +1 -1
- package/dist/assets/{site-DuhFEiWH.js → site-BlMyhfX7.js} +1 -1
- package/dist/assets/{site-CfaiNsJJ.js → site-C5HG4j97.js} +1 -1
- package/dist/assets/{site-hdQfWIGT.js → site-CMRl41qi.js} +1 -1
- package/dist/assets/{site-Bt1bg9lM.js → site-CnwSR4Bv.js} +1 -1
- package/dist/assets/{site-B5Cf-IAc.js → site-Cs38ZIoR.js} +1 -1
- package/dist/assets/{site-DShO1dvg.js → site-DAPfnEus.js} +1 -1
- package/dist/assets/{site-OiCS76HU.js → site-DGrV5NWv.js} +1 -1
- package/dist/assets/{site-B-S3bmIw.js → site-DX1Q14BS.js} +1 -1
- package/dist/assets/{site-Dp6QqWBj.js → site-Djsjczqa.js} +1 -1
- package/dist/assets/{site-B_Ggyidz.js → site-E_qSaFLk.js} +1 -1
- package/dist/assets/{site-lU9w5lDF.js → site-JhZT0_yY.js} +1 -1
- package/dist/assets/{site-AMu-furx.js → site-MPEm1Dki.js} +1 -1
- package/dist/assets/{site-Jn4RON08.js → site-T-xX9zdG.js} +1 -1
- package/dist/assets/{site-CgZJc3OO.js → site-e-TZyjAE.js} +1 -1
- package/dist/assets/{strings-BQbdUIFn.js → strings-C2_9VbZ7.js} +1 -1
- package/dist/assets/{typescript-CkR2OWnN.js → typescript-4EcP9GDg.js} +1 -1
- package/dist/assets/use-form-item-BNdveB-3.js +1 -0
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/Index-B6HCk_-Z.js +0 -1
- package/dist/assets/Index-m5GlW6Tw.css +0 -1
- package/dist/assets/Navigator-DHP0Z5BQ.js +0 -1
- package/dist/assets/Pagination-CTJgfb9h.js +0 -1
- package/dist/assets/_baseClone-CyEUgRjr.js +0 -1
- package/dist/assets/_initCloneObject-DL2KWEpg.js +0 -1
- package/dist/assets/index-BKJPB7EB.js +0 -1
- package/dist/assets/index-CgzNR6Br.js +0 -1
- package/dist/assets/index-D0cZ5BM8.js +0 -1
- package/dist/assets/index-Rl2p1NyF.js +0 -1
- package/dist/assets/index-bAhdShMo.js +0 -1
- package/dist/assets/index-hrpdMjUu.js +0 -1
- package/dist/assets/isPlainObject-DCVZiiY1.js +0 -1
- package/dist/assets/price-B8COZ-j4.js +0 -1
- package/dist/assets/use-form-item-9EKLSUpL.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const e={"field.title":{message:"Site Title",description:"Displayed as the title in the editing box"},"field.origin":{message:"Site Domain",description:"Displayed as the title in the editing box"},"field.description":{message:"Site Description",description:"Displayed as the title in the editing box"},"field.keywords":{message:"Site Keywords",description:"Displayed as the title in the editing box"},"field.logo":{message:"Site Logo",description:"Displayed as the title in the editing box"},"field.favicon":{message:"Site Favicon",description:"Displayed as the title in the editing box"},"field.qr":{message:"QR Code",description:"Displayed as the title in the editing box"},"field.url":{message:"Link",description:"Displayed as the title in the editing box"},"field.admins":{message:"Site Admin IDs",description:"Displayed as the title in the editing box"},"field.distributionDefaultInviterId":{message:"Default Inviter ID",description:"Displayed as the title in the editing box"},"field.distributionForceInviterId":{message:"Forced Inviter ID",description:"Displayed as the title in the editing box"},"field.featuresChat":{message:"Chat",description:"Displayed as the title in the editing box"},"field.featuresVeo":{message:"Veo",description:"Displayed as the title in the editing box"},"field.featuresSora":{message:"Sora",description:"Displayed as the title in the editing box"},"field.featuresGrok":{message:"Grok",description:"Displayed as the title in the editing box"},"field.featuresDeepseek":{message:"Deepseek",description:"Displayed as the title in the editing box"},"field.featuresChatgpt":{message:"ChatGPT",description:"Displayed as the title in the editing box"},"field.featuresMidjourney":{message:"Midjourney",description:"Displayed as the title in the editing box"},"field.featuresChatdoc":{message:"Chatdoc",description:"Displayed as the title in the editing box"},"field.featuresQrart":{message:"Qrart",description:"Displayed as the title in the editing box"},"field.featuresLuma":{message:"Luma",description:"Displayed as the title in the editing box"},"field.featuresPixverse":{message:"Pixverse",description:"Displayed as the title in the editing box"},"field.featuresPika":{message:"Pika",description:"Displayed as the title in the editing box"},"field.featuresKling":{message:"Kling",description:"Displayed as the title in the editing box"},"field.featuresHailuo":{message:"Hailuo",description:"Displayed as the title in the editing box"},"field.featuresHeadshots":{message:"AI ID Photo",description:"Displayed as the title in the editing box"},"field.featuresSuno":{message:"Suno",description:"Displayed as the title in the editing box"},"field.featuresFlux":{message:"Flux",description:"Displayed as the title in the editing box"},"field.featuresNanobanana":{message:"Nano Banana",description:"Displayed as the title in the editing box"},"field.featuresSupport":{message:"Customer Support",description:"Displayed as the title in the editing box"},"field.featuresI18n":{message:"Multilingual Support",description:"Displayed as the title in the editing box"},"title.basicConfig":{message:"Basic Configuration",description:"Displayed as the title in the editing box"},"title.seoConfig":{message:"SEO Configuration",description:"Displayed as the title in the editing box"},"title.editAdmins":{message:"Edit Admins",description:"Displayed as the title in the editing box"},"title.featuresConfig":{message:"Features Configuration",description:"Displayed as the title in the editing box"},"title.editTitle":{message:"Edit Title",description:"Displayed as the title in the editing box"},"title.editOrigin":{message:"Edit Domain",description:"Displayed as the title in the editing box"},"title.editKeywords":{message:"Edit Keywords",description:"Displayed as the title in the editing box"},"title.editLogo":{message:"Edit Logo",description:"Displayed as the title in the editing box"},"title.editFavicon":{message:"Edit Favicon",description:"Displayed as the title in the editing box"},"title.editDescription":{message:"Edit Description",description:"Displayed as the title in the editing box"},"title.distributionConfig":{message:"Distribution Configuration",description:"Displayed as the title in the editing box"},"title.editDistributionDefaultInviterId":{message:"Edit Default Inviter",description:"Displayed as the title in the editing box"},"title.editDistributionForceInviterId":{message:"Edit Forced Inviter",description:"Displayed as the title in the editing box"},"title.editQR":{message:"Edit QR Code",description:"Displayed as the title in the editing box"},"title.editUrl":{message:"Edit Link",description:"Displayed as the title in the editing box"},"placeholder.title":{message:"Please enter the site title",description:"Displayed as the title in the editing box"},"placeholder.origin":{message:"Please enter the site domain",description:"Displayed as the title in the editing box"},"placeholder.editUrl":{message:"Please enter the link",description:"Displayed as the title in the editing box"},"placeholder.description":{message:"Please enter site description",description:"Displayed as the title in the editing box"},"placeholder.keywords":{message:"Please enter site keywords",description:"Displayed as the title in the editing box"},"placeholder.editDistributionDefaultInviterId":{message:"Please enter default inviter ID",description:"Displayed as the title in the editing box"},"placeholder.editDistributionForceInviterId":{message:"Please enter forced inviter ID",description:"Displayed as the title in the editing box"},"message.uploadImageExceed":{message:"Uploaded image exceeds limit",description:"Prompt for when the uploaded image exceeds the limit"},"message.uploadImageError":{message:"Error uploading image",description:"Prompt for when there is an error uploading the image"},"message.editLogoTip":{message:"Recommended size: 200*60px",description:"Prompt language for uploading images"},"message.editQRTip":{message:"Recommended size: 200*200px",description:"Prompt language for uploading images"},"message.editFaviconTip":{message:"Recommended size: 32*32px",description:"Prompt language for uploading images"},"message.editUrl":{message:"Please enter link",description:"Prompt for entering a link"},"message.atLeastOneAdmin":{message:"At least one admin must be retained",description:"Prompt for retaining at least one admin"},"message.distributionDefaultInviterIdTip":{message:"The user ID of the default inviter. If the distribution link does not carry the inviter_id parameter, this user ID will be used as the inviter by default.",description:"Prompt for default inviter ID"},"message.distributionForceInviterIdTip":{message:"The user ID of the forced inviter. If this ID is set, regardless of whether the distribution link carries the inviter_id parameter, this user ID will be forced to be used as the inviter.",description:"Prompt for forced inviter ID"},"message.originTip":{message:"Site domain name, site configuration is bound to the domain name, and the site domain name cannot be changed.",description:"Prompt for site domain name"},"message.titleTip":{message:"Site title, displayed in the browser tab.",description:"Prompt for site title"},"message.descriptionTip":{message:"Site description, located in the site metadata, used for site SEO optimization.",description:"Prompt for site description"},"message.logoTip":{message:"Site logo, displayed at the top of the site menu when the menu bar is expanded.",description:"Prompt for site logo"},"message.faviconTip":{message:"Site favicon, displayed in the browser tab.",description:"Prompt for site favicon"},"message.adminsTip":{message:"Site admin IDs. By default, the user who first creates the site will become an admin. Only site admins can manage the site.",description:"Prompt for site admins"},"message.adminsTip2":{message:"You can add or remove admin IDs here. You can view user IDs at https://auth.acedata.cloud",description:"Prompt for site admins"},"message.keywordsTip":{message:"Site keywords, located in the site metadata, used for site SEO optimization.",description:"Prompt for site keywords"},"message.keywordsTip2":{message:"You can add or remove site keywords here. The more precise the keywords, the more beneficial for SEO optimization.",description:"Prompt for site keywords"},"message.featuresChat":{message:"Enable or disable the Chat feature module.",description:"Description of the Chat feature"},"message.featuresGrok":{message:"Enable or disable the Grok feature module.",description:"Description of the Grok feature"},"message.featuresDeepseek":{message:"Enable or disable the Deepseek feature module.",description:"Description of the Deepseek feature"},"message.featuresChatgpt":{message:"Enable or disable the ChatGPT feature module.",description:"Description of the ChatGPT feature"},"message.featuresMidjourney":{message:"Enable or disable the Midjourney feature module.",description:"Description of the Midjourney feature"},"message.featuresChatdoc":{message:"Enable or disable the Chatdoc feature module.",description:"Description of the Chatdoc feature"},"message.featuresQrart":{message:"Enable or disable the Qrart feature module.",description:"Description of the Qrart feature"},"message.featuresVeo":{message:"Enable or disable the Veo feature module.",description:"Description of the Veo feature"},"message.featuresSora":{message:"Enable or disable the Sora feature module.",description:"Description of the Sora feature"},"message.featuresSuno":{message:"Enable or disable the Suno feature module.",description:"Description of the Suno feature"},"message.featuresPixverse":{message:"Enable or disable the Pixverse feature module.",description:"Description of the Pixverse feature"},"message.featuresFlux":{message:"Enable or disable the FLux feature module.",description:"Description of the FLux feature"},"message.featuresNanobanana":{message:"Enable or disable the Nano Banana feature module.",description:"Description of the Nano Banana feature"},"message.featuresLuma":{message:"Enable or disable the Luma feature module.",description:"Description of the Luma feature"},"message.featuresPika":{message:"Enable or disable the Pika feature module.",description:"Description of the Pika feature"},"message.featuresKling":{message:"Turn the Kling feature module on or off.",description:"Description of the Kling feature"},"message.featuresHailuo":{message:"Turn the Hailuo feature module on or off.",description:"Description of the Hailuo feature"},"message.featuresHeadshots":{message:"Turn the AI ID photo feature module on or off.",description:"Description of the AI ID photo feature"},"message.featuresSupport":{message:"Turn customer support on or off.",description:"Description of the Support feature"},"message.featuresI18n":{message:"Turn multilingual support on or off. When turned off, users can only use the default language.",description:"Description of multilingual support"},"button.upload":{message:"Upload",description:"Upload"},"button.enabled":{message:"Enabled",description:"Toggle text indicating that it is enabled"},"button.disabled":{message:"Disabled",description:"Toggle text indicating that it is disabled"}};export{e as default};
|
|
1
|
+
const e={"field.title":{message:"Site Title",description:"Displayed as the title in the editing box"},"field.origin":{message:"Site Domain",description:"Displayed as the title in the editing box"},"field.description":{message:"Site Description",description:"Displayed as the title in the editing box"},"field.keywords":{message:"Site Keywords",description:"Displayed as the title in the editing box"},"field.logo":{message:"Site Logo",description:"Displayed as the title in the editing box"},"field.favicon":{message:"Site Favicon",description:"Displayed as the title in the editing box"},"field.qr":{message:"QR Code",description:"Displayed as the title in the editing box"},"field.url":{message:"Link",description:"Displayed as the title in the editing box"},"field.admins":{message:"Site Admin IDs",description:"Displayed as the title in the editing box"},"field.distributionDefaultInviterId":{message:"Default Inviter ID",description:"Displayed as the title in the editing box"},"field.distributionForceInviterId":{message:"Forced Inviter ID",description:"Displayed as the title in the editing box"},"field.featuresChat":{message:"Chat",description:"Displayed as the title in the editing box"},"field.featuresVeo":{message:"Veo",description:"Displayed as the title in the editing box"},"field.featuresSora":{message:"Sora",description:"Displayed as the title in the editing box"},"field.featuresGrok":{message:"Grok",description:"Displayed as the title in the editing box"},"field.featuresDeepseek":{message:"Deepseek",description:"Displayed as the title in the editing box"},"field.featuresChatgpt":{message:"ChatGPT",description:"Displayed as the title in the editing box"},"field.featuresMidjourney":{message:"Midjourney",description:"Displayed as the title in the editing box"},"field.featuresChatdoc":{message:"Chatdoc",description:"Displayed as the title in the editing box"},"field.featuresQrart":{message:"Qrart",description:"Displayed as the title in the editing box"},"field.featuresLuma":{message:"Luma",description:"Displayed as the title in the editing box"},"field.featuresPixverse":{message:"Pixverse",description:"Displayed as the title in the editing box"},"field.featuresPika":{message:"Pika",description:"Displayed as the title in the editing box"},"field.featuresKling":{message:"Kling",description:"Displayed as the title in the editing box"},"field.featuresHailuo":{message:"Hailuo",description:"Displayed as the title in the editing box"},"field.featuresHeadshots":{message:"AI ID Photo",description:"Displayed as the title in the editing box"},"field.featuresSuno":{message:"Suno",description:"Displayed as the title in the editing box"},"field.featuresFlux":{message:"Flux",description:"Displayed as the title in the editing box"},"field.featuresNanobanana":{message:"Nano Banana",description:"Displayed as the title in the editing box"},"field.featuresSupport":{message:"Customer Support",description:"Displayed as the title in the editing box"},"field.featuresI18n":{message:"Multilingual Support",description:"Displayed as the title in the editing box"},"title.basicConfig":{message:"Basic Configuration",description:"Displayed as the title in the editing box"},"title.seoConfig":{message:"SEO Configuration",description:"Displayed as the title in the editing box"},"title.editAdmins":{message:"Edit Admins",description:"Displayed as the title in the editing box"},"title.featuresConfig":{message:"Features Configuration",description:"Displayed as the title in the editing box"},"title.editTitle":{message:"Edit Title",description:"Displayed as the title in the editing box"},"title.editOrigin":{message:"Edit Domain",description:"Displayed as the title in the editing box"},"title.editKeywords":{message:"Edit Keywords",description:"Displayed as the title in the editing box"},"title.editLogo":{message:"Edit Logo",description:"Displayed as the title in the editing box"},"title.editFavicon":{message:"Edit Favicon",description:"Displayed as the title in the editing box"},"title.editDescription":{message:"Edit Description",description:"Displayed as the title in the editing box"},"title.distributionConfig":{message:"Distribution Configuration",description:"Displayed as the title in the editing box"},"title.editDistributionDefaultInviterId":{message:"Edit Default Inviter",description:"Displayed as the title in the editing box"},"title.editDistributionForceInviterId":{message:"Edit Forced Inviter",description:"Displayed as the title in the editing box"},"title.editQR":{message:"Edit QR Code",description:"Displayed as the title in the editing box"},"title.editUrl":{message:"Edit Link",description:"Displayed as the title in the editing box"},"placeholder.title":{message:"Please enter the site title",description:"Displayed as the title in the editing box"},"placeholder.origin":{message:"Please enter the site domain",description:"Displayed as the title in the editing box"},"placeholder.editUrl":{message:"Please enter the link",description:"Displayed as the title in the editing box"},"placeholder.description":{message:"Please enter site description",description:"Displayed as the title in the editing box"},"placeholder.keywords":{message:"Please enter site keywords",description:"Displayed as the title in the editing box"},"placeholder.editDistributionDefaultInviterId":{message:"Please enter default inviter ID",description:"Displayed as the title in the editing box"},"placeholder.editDistributionForceInviterId":{message:"Please enter forced inviter ID",description:"Displayed as the title in the editing box"},"message.uploadImageExceed":{message:"Uploaded image exceeds limit",description:"Prompt for when the uploaded image exceeds the limit"},"message.uploadImageError":{message:"Error uploading image",description:"Prompt for when there is an error uploading the image"},"message.editLogoTip":{message:"Recommended size: 200*60px",description:"Prompt language for uploading images"},"message.editQRTip":{message:"Recommended size: 200*200px",description:"Prompt language for uploading images"},"message.editFaviconTip":{message:"Recommended size: 32*32px",description:"Prompt language for uploading images"},"message.editUrl":{message:"Please enter link",description:"Prompt for entering a link"},"message.atLeastOneAdmin":{message:"At least one admin must be retained",description:"Prompt for retaining at least one admin"},"message.distributionDefaultInviterIdTip":{message:"The user ID of the default inviter. If the distribution link does not carry the inviter_id parameter, this user ID will be used as the inviter by default.",description:"Prompt for default inviter ID"},"message.distributionForceInviterIdTip":{message:"The user ID of the forced inviter. If this ID is set, regardless of whether the distribution link carries the inviter_id parameter, this user ID will be forced to be used as the inviter.",description:"Prompt for forced inviter ID"},"message.originTip":{message:"Site domain name, site configuration is bound to the domain name, and the site domain name cannot be changed.",description:"Prompt for site domain name"},"message.titleTip":{message:"Site title, displayed in the browser tab.",description:"Prompt for site title"},"message.descriptionTip":{message:"Site description, located in the site metadata, used for site SEO optimization.",description:"Prompt for site description"},"message.logoTip":{message:"Site logo, displayed at the top of the site menu when the menu bar is expanded.",description:"Prompt for site logo"},"message.faviconTip":{message:"Site favicon, displayed in the browser tab.",description:"Prompt for site favicon"},"message.adminsTip":{message:"Site admin IDs. By default, the user who first creates the site will become an admin. Only site admins can manage the site.",description:"Prompt for site admins"},"message.adminsTip2":{message:"You can add or remove admin IDs here. You can view user IDs at https://auth.acedata.cloud",description:"Prompt for site admins"},"message.keywordsTip":{message:"Site keywords, located in the site metadata, used for site SEO optimization.",description:"Prompt for site keywords"},"message.keywordsTip2":{message:"You can add or remove site keywords here. The more precise the keywords, the more beneficial for SEO optimization.",description:"Prompt for site keywords"},"message.featuresChat":{message:"Enable or disable the Chat feature module.",description:"Description of the Chat feature"},"message.featuresGrok":{message:"Enable or disable the Grok feature module.",description:"Description of the Grok feature"},"message.featuresDeepseek":{message:"Enable or disable the Deepseek feature module.",description:"Description of the Deepseek feature"},"message.featuresChatgpt":{message:"Enable or disable the ChatGPT feature module.",description:"Description of the ChatGPT feature"},"message.featuresMidjourney":{message:"Enable or disable the Midjourney feature module.",description:"Description of the Midjourney feature"},"message.featuresChatdoc":{message:"Enable or disable the Chatdoc feature module.",description:"Description of the Chatdoc feature"},"message.featuresQrart":{message:"Enable or disable the Qrart feature module.",description:"Description of the Qrart feature"},"message.featuresVeo":{message:"Enable or disable the Veo feature module.",description:"Description of the Veo feature"},"message.featuresSora":{message:"Enable or disable the Sora feature module.",description:"Description of the Sora feature"},"message.featuresSuno":{message:"Enable or disable the Suno feature module.",description:"Description of the Suno feature"},"message.featuresPixverse":{message:"Enable or disable the Pixverse feature module.",description:"Description of the Pixverse feature"},"message.featuresFlux":{message:"Enable or disable the FLux feature module.",description:"Description of the FLux feature"},"message.featuresNanobanana":{message:"Enable or disable the Nano Banana feature module.",description:"Description of the Nano Banana feature"},"message.featuresLuma":{message:"Enable or disable the Luma feature module.",description:"Description of the Luma feature"},"message.featuresPika":{message:"Enable or disable the Pika feature module.",description:"Description of the Pika feature"},"message.featuresKling":{message:"Turn the Kling feature module on or off.",description:"Description of the Kling feature"},"message.featuresHailuo":{message:"Turn the Hailuo feature module on or off.",description:"Description of the Hailuo feature"},"message.featuresHeadshots":{message:"Turn the AI ID photo feature module on or off.",description:"Description of the AI ID photo feature"},"message.featuresSupport":{message:"Turn customer support on or off.",description:"Description of the Support feature"},"message.featuresI18n":{message:"Turn multilingual support on or off. When turned off, users can only use the default language.",description:"Description of multilingual support"},"button.upload":{message:"Upload",description:"Upload"},"button.enabled":{message:"Enabled",description:"Toggle text indicating that it is enabled"},"button.disabled":{message:"Disabled",description:"Toggle text indicating that it is disabled"},"field.featuresGemini":{message:"Gemini",description:"Displayed as the title in the editing box"},"message.featuresGemini":{message:"Enable or disable the Gemini feature module.",description:"Description of the Gemini feature"}};export{e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e={"field.title":{message:"サイトタイトル",description:"編集ボックスに表示されるタイトル"},"field.origin":{message:"サイトドメイン",description:"編集ボックスに表示されるタイトル"},"field.description":{message:"サイト説明",description:"編集ボックスに表示されるタイトル"},"field.keywords":{message:"サイトキーワード",description:"編集ボックスに表示されるタイトル"},"field.logo":{message:"サイトロゴ",description:"編集ボックスに表示されるタイトル"},"field.favicon":{message:"サイトファビコン",description:"編集ボックスに表示されるタイトル"},"field.qr":{message:"QRコード",description:"編集ボックスに表示されるタイトル"},"field.url":{message:"リンク",description:"編集ボックスに表示されるタイトル"},"field.admins":{message:"サイト管理者ID",description:"編集ボックスに表示されるタイトル"},"field.distributionDefaultInviterId":{message:"デフォルト招待者ID",description:"編集ボックスに表示されるタイトル"},"field.distributionForceInviterId":{message:"強制招待者ID",description:"編集ボックスに表示されるタイトル"},"field.featuresChat":{message:"チャット",description:"編集ボックスに表示されるタイトル"},"field.featuresVeo":{message:"Veo",description:"編集ボックスに表示されるタイトル"},"field.featuresSora":{message:"Sora",description:"編集ボックスに表示されるタイトル"},"field.featuresGrok":{message:"Grok",description:"編集ボックスに表示されるタイトル"},"field.featuresDeepseek":{message:"Deepseek",description:"編集ボックスに表示されるタイトル"},"field.featuresChatgpt":{message:"ChatGPT",description:"編集ボックスに表示されるタイトル"},"field.featuresMidjourney":{message:"Midjourney",description:"編集ボックスに表示されるタイトル"},"field.featuresChatdoc":{message:"Chatdoc",description:"編集ボックスに表示されるタイトル"},"field.featuresQrart":{message:"Qrart",description:"編集ボックスに表示されるタイトル"},"field.featuresLuma":{message:"Luma",description:"編集ボックスに表示されるタイトル"},"field.featuresPixverse":{message:"Pixverse",description:"編集ボックスに表示されるタイトル"},"field.featuresPika":{message:"Pika",description:"編集ボックスに表示されるタイトル"},"field.featuresKling":{message:"Kling",description:"編集ボックスに表示されるタイトル"},"field.featuresHailuo":{message:"Hailuo",description:"編集ボックスに表示されるタイトル"},"field.featuresHeadshots":{message:"AI証明写真",description:"編集ボックスに表示されるタイトル"},"field.featuresSuno":{message:"Suno",description:"編集ボックスに表示されるタイトル"},"field.featuresFlux":{message:"Flux",description:"編集ボックスに表示されるタイトル"},"field.featuresNanobanana":{message:"ナノバナナ",description:"編集ボックスに表示されるタイトル"},"field.featuresSupport":{message:"カスタマーサポート",description:"編集ボックスに表示されるタイトル"},"field.featuresI18n":{message:"多言語サポート",description:"編集ボックスに表示されるタイトル"},"title.basicConfig":{message:"基本設定",description:"編集ボックスに表示されるタイトル"},"title.seoConfig":{message:"SEO設定",description:"編集ボックスに表示されるタイトル"},"title.editAdmins":{message:"管理者を編集",description:"編集ボックスに表示されるタイトル"},"title.featuresConfig":{message:"機能設定",description:"編集ボックスに表示されるタイトル"},"title.editTitle":{message:"タイトルを編集",description:"編集ボックスに表示されるタイトル"},"title.editOrigin":{message:"ドメインを編集",description:"編集ボックスに表示されるタイトル"},"title.editKeywords":{message:"キーワードを編集",description:"編集ボックスに表示されるタイトル"},"title.editLogo":{message:"ロゴを編集",description:"編集ボックスに表示されるタイトル"},"title.editFavicon":{message:"ファビコンを編集",description:"編集ボックスに表示されるタイトル"},"title.editDescription":{message:"説明を編集",description:"編集ボックスに表示されるタイトル"},"title.distributionConfig":{message:"流通設定",description:"編集ボックスに表示されるタイトル"},"title.editDistributionDefaultInviterId":{message:"デフォルト招待者を編集",description:"編集ボックスに表示されるタイトル"},"title.editDistributionForceInviterId":{message:"強制招待者を編集",description:"編集ボックスに表示されるタイトル"},"title.editQR":{message:"QRコードを編集",description:"編集ボックスに表示されるタイトル"},"title.editUrl":{message:"リンクを編集",description:"編集ボックスに表示されるタイトル"},"placeholder.title":{message:"サイトタイトルを入力してください",description:"編集ボックスに表示されるタイトル"},"placeholder.origin":{message:"サイトドメインを入力してください",description:"編集ボックスに表示されるタイトル"},"placeholder.editUrl":{message:"リンクを入力してください",description:"編集ボックスに表示されるタイトル"},"placeholder.description":{message:"サイトの説明を入力してください",description:"編集ボックスに表示されるタイトル"},"placeholder.keywords":{message:"サイトのキーワードを入力してください",description:"編集ボックスに表示されるタイトル"},"placeholder.editDistributionDefaultInviterId":{message:"デフォルトの招待者IDを入力してください",description:"編集ボックスに表示されるタイトル"},"placeholder.editDistributionForceInviterId":{message:"強制招待者IDを入力してください",description:"編集ボックスに表示されるタイトル"},"message.uploadImageExceed":{message:"アップロード画像が制限を超えました",description:"アップロード画像が制限を超えた場合のメッセージ"},"message.uploadImageError":{message:"画像のアップロードエラー",description:"画像のアップロードエラーのメッセージ"},"message.editLogoTip":{message:"推奨サイズ:200*60px",description:"画像をアップロードする際のヒント"},"message.editQRTip":{message:"推奨サイズ:200*200px",description:"画像をアップロードする際のヒント"},"message.editFaviconTip":{message:"推奨サイズ:32*32px",description:"画像をアップロードする際のヒント"},"message.editUrl":{message:"リンクを入力してください",description:"リンクを入力する際のヒント"},"message.atLeastOneAdmin":{message:"少なくとも1人の管理者を保持してください",description:"少なくとも1人の管理者を保持する必要があるというメッセージ"},"message.distributionDefaultInviterIdTip":{message:"デフォルトの招待者のユーザーID。分配リンクがinviter_idパラメータを持たない場合、このユーザーIDが招待者として使用されます。",description:"デフォルトの招待者IDに関するヒント"},"message.distributionForceInviterIdTip":{message:"強制招待者のユーザーID。このIDが設定されている場合、分配リンクがinviter_idパラメータを持っていても、このユーザーIDが招待者として強制的に使用されます。",description:"強制招待者IDに関するヒント"},"message.originTip":{message:"サイトのドメイン。サイトの設定はドメインにバインドされており、サイトのドメインは変更できません。",description:"サイトのドメインに関するヒント"},"message.titleTip":{message:"サイトのタイトル。ブラウザのタブに表示されます。",description:"サイトのタイトルに関するヒント"},"message.descriptionTip":{message:"サイトの説明。サイトのメタ情報にあり、サイトのSEO最適化に使用されます。",description:"サイトの説明に関するヒント"},"message.logoTip":{message:"サイトのロゴ。メニューが展開されたとき、サイトメニューの上部に表示されます。",description:"サイトのロゴに関するヒント"},"message.faviconTip":{message:"サイトのファビコン。ブラウザのタブに表示されます。",description:"サイトのファビコンに関するヒント"},"message.adminsTip":{message:"サイトの管理者ID。デフォルトでは、最初にこのサイトを作成したユーザーが管理者になります。サイトの管理者のみがサイトを管理できます。",description:"サイトの管理者に関するヒント"},"message.adminsTip2":{message:"ここで管理者IDを追加または削除できます。ユーザーIDは https://auth.acedata.cloud で確認できます。",description:"サイトの管理者に関するヒント"},"message.keywordsTip":{message:"サイトのキーワード。サイトのメタ情報にあり、サイトのSEO最適化に使用されます。",description:"サイトのキーワードに関するヒント"},"message.keywordsTip2":{message:"ここでサイトのキーワードを追加または削除できます。キーワードが正確であるほど、SEO最適化に有利です。",description:"サイトのキーワードに関するヒント"},"message.featuresChat":{message:"チャット機能モジュールをオンまたはオフにします。",description:"チャット機能の説明"},"message.featuresGrok":{message:"Grok機能モジュールをオンまたはオフにします。",description:"Grok機能の説明"},"message.featuresDeepseek":{message:"Deepseek機能モジュールをオンまたはオフにします。",description:"Deepseek機能の説明"},"message.featuresChatgpt":{message:"ChatGPT機能モジュールをオンまたはオフにします。",description:"ChatGPT機能の説明"},"message.featuresMidjourney":{message:"Midjourney機能モジュールをオンまたはオフにします。",description:"Midjourney機能の説明"},"message.featuresChatdoc":{message:"Chatdoc機能モジュールをオンまたはオフにします。",description:"Chatdoc機能の説明"},"message.featuresQrart":{message:"Qrart機能モジュールをオンまたはオフにします。",description:"Qrart機能の説明"},"message.featuresVeo":{message:"Veo機能モジュールをオンまたはオフにします。",description:"Veo機能の説明"},"message.featuresSora":{message:"Sora機能モジュールをオンまたはオフにします。",description:"Sora機能の説明"},"message.featuresSuno":{message:"Suno機能モジュールをオンまたはオフにします。",description:"Suno機能の説明"},"message.featuresPixverse":{message:"Pixverse機能モジュールをオンまたはオフにします。",description:"Pixverse機能の説明"},"message.featuresFlux":{message:"FLux機能モジュールをオンまたはオフにします。",description:"FLux機能の説明"},"message.featuresNanobanana":{message:"Nano Banana機能モジュールをオンまたはオフにします。",description:"Nano Banana機能の説明"},"message.featuresLuma":{message:"Luma機能モジュールをオンまたはオフにします。",description:"Luma機能の説明"},"message.featuresPika":{message:"Pika機能モジュールをオンまたはオフにします。",description:"Pika機能の説明"},"message.featuresKling":{message:"Kling 機能モジュールをオンまたはオフにします。",description:"Kling 機能の説明"},"message.featuresHailuo":{message:"Hailuo 機能モジュールをオンまたはオフにします。",description:"Hailuo 機能の説明"},"message.featuresHeadshots":{message:"AI 証明写真機能モジュールをオンまたはオフにします。",description:"AI 証明写真機能の説明"},"message.featuresSupport":{message:"カスタマーサポートをオンまたはオフにします。",description:"Support 機能の説明"},"message.featuresI18n":{message:"多言語サポートをオンまたはオフにします。オフにすると、ユーザーはデフォルト言語のみを使用できます。",description:"多言語サポートの説明"},"button.upload":{message:"アップロード",description:"アップロード"},"button.enabled":{message:"有効",description:"スイッチのテキスト、有効になっていることを示します"},"button.disabled":{message:"無効",description:"スイッチのテキスト、無効になっていることを示します"}};export{e as default};
|
|
1
|
+
const e={"field.title":{message:"サイトタイトル",description:"編集ボックスに表示されるタイトル"},"field.origin":{message:"サイトドメイン",description:"編集ボックスに表示されるタイトル"},"field.description":{message:"サイト説明",description:"編集ボックスに表示されるタイトル"},"field.keywords":{message:"サイトキーワード",description:"編集ボックスに表示されるタイトル"},"field.logo":{message:"サイトロゴ",description:"編集ボックスに表示されるタイトル"},"field.favicon":{message:"サイトファビコン",description:"編集ボックスに表示されるタイトル"},"field.qr":{message:"QRコード",description:"編集ボックスに表示されるタイトル"},"field.url":{message:"リンク",description:"編集ボックスに表示されるタイトル"},"field.admins":{message:"サイト管理者ID",description:"編集ボックスに表示されるタイトル"},"field.distributionDefaultInviterId":{message:"デフォルト招待者ID",description:"編集ボックスに表示されるタイトル"},"field.distributionForceInviterId":{message:"強制招待者ID",description:"編集ボックスに表示されるタイトル"},"field.featuresChat":{message:"チャット",description:"編集ボックスに表示されるタイトル"},"field.featuresVeo":{message:"Veo",description:"編集ボックスに表示されるタイトル"},"field.featuresSora":{message:"Sora",description:"編集ボックスに表示されるタイトル"},"field.featuresGrok":{message:"Grok",description:"編集ボックスに表示されるタイトル"},"field.featuresDeepseek":{message:"Deepseek",description:"編集ボックスに表示されるタイトル"},"field.featuresChatgpt":{message:"ChatGPT",description:"編集ボックスに表示されるタイトル"},"field.featuresMidjourney":{message:"Midjourney",description:"編集ボックスに表示されるタイトル"},"field.featuresChatdoc":{message:"Chatdoc",description:"編集ボックスに表示されるタイトル"},"field.featuresQrart":{message:"Qrart",description:"編集ボックスに表示されるタイトル"},"field.featuresLuma":{message:"Luma",description:"編集ボックスに表示されるタイトル"},"field.featuresPixverse":{message:"Pixverse",description:"編集ボックスに表示されるタイトル"},"field.featuresPika":{message:"Pika",description:"編集ボックスに表示されるタイトル"},"field.featuresKling":{message:"Kling",description:"編集ボックスに表示されるタイトル"},"field.featuresHailuo":{message:"Hailuo",description:"編集ボックスに表示されるタイトル"},"field.featuresHeadshots":{message:"AI証明写真",description:"編集ボックスに表示されるタイトル"},"field.featuresSuno":{message:"Suno",description:"編集ボックスに表示されるタイトル"},"field.featuresFlux":{message:"Flux",description:"編集ボックスに表示されるタイトル"},"field.featuresNanobanana":{message:"ナノバナナ",description:"編集ボックスに表示されるタイトル"},"field.featuresSupport":{message:"カスタマーサポート",description:"編集ボックスに表示されるタイトル"},"field.featuresI18n":{message:"多言語サポート",description:"編集ボックスに表示されるタイトル"},"title.basicConfig":{message:"基本設定",description:"編集ボックスに表示されるタイトル"},"title.seoConfig":{message:"SEO設定",description:"編集ボックスに表示されるタイトル"},"title.editAdmins":{message:"管理者を編集",description:"編集ボックスに表示されるタイトル"},"title.featuresConfig":{message:"機能設定",description:"編集ボックスに表示されるタイトル"},"title.editTitle":{message:"タイトルを編集",description:"編集ボックスに表示されるタイトル"},"title.editOrigin":{message:"ドメインを編集",description:"編集ボックスに表示されるタイトル"},"title.editKeywords":{message:"キーワードを編集",description:"編集ボックスに表示されるタイトル"},"title.editLogo":{message:"ロゴを編集",description:"編集ボックスに表示されるタイトル"},"title.editFavicon":{message:"ファビコンを編集",description:"編集ボックスに表示されるタイトル"},"title.editDescription":{message:"説明を編集",description:"編集ボックスに表示されるタイトル"},"title.distributionConfig":{message:"流通設定",description:"編集ボックスに表示されるタイトル"},"title.editDistributionDefaultInviterId":{message:"デフォルト招待者を編集",description:"編集ボックスに表示されるタイトル"},"title.editDistributionForceInviterId":{message:"強制招待者を編集",description:"編集ボックスに表示されるタイトル"},"title.editQR":{message:"QRコードを編集",description:"編集ボックスに表示されるタイトル"},"title.editUrl":{message:"リンクを編集",description:"編集ボックスに表示されるタイトル"},"placeholder.title":{message:"サイトタイトルを入力してください",description:"編集ボックスに表示されるタイトル"},"placeholder.origin":{message:"サイトドメインを入力してください",description:"編集ボックスに表示されるタイトル"},"placeholder.editUrl":{message:"リンクを入力してください",description:"編集ボックスに表示されるタイトル"},"placeholder.description":{message:"サイトの説明を入力してください",description:"編集ボックスに表示されるタイトル"},"placeholder.keywords":{message:"サイトのキーワードを入力してください",description:"編集ボックスに表示されるタイトル"},"placeholder.editDistributionDefaultInviterId":{message:"デフォルトの招待者IDを入力してください",description:"編集ボックスに表示されるタイトル"},"placeholder.editDistributionForceInviterId":{message:"強制招待者IDを入力してください",description:"編集ボックスに表示されるタイトル"},"message.uploadImageExceed":{message:"アップロード画像が制限を超えました",description:"アップロード画像が制限を超えた場合のメッセージ"},"message.uploadImageError":{message:"画像のアップロードエラー",description:"画像のアップロードエラーのメッセージ"},"message.editLogoTip":{message:"推奨サイズ:200*60px",description:"画像をアップロードする際のヒント"},"message.editQRTip":{message:"推奨サイズ:200*200px",description:"画像をアップロードする際のヒント"},"message.editFaviconTip":{message:"推奨サイズ:32*32px",description:"画像をアップロードする際のヒント"},"message.editUrl":{message:"リンクを入力してください",description:"リンクを入力する際のヒント"},"message.atLeastOneAdmin":{message:"少なくとも1人の管理者を保持してください",description:"少なくとも1人の管理者を保持する必要があるというメッセージ"},"message.distributionDefaultInviterIdTip":{message:"デフォルトの招待者のユーザーID。分配リンクがinviter_idパラメータを持たない場合、このユーザーIDが招待者として使用されます。",description:"デフォルトの招待者IDに関するヒント"},"message.distributionForceInviterIdTip":{message:"強制招待者のユーザーID。このIDが設定されている場合、分配リンクがinviter_idパラメータを持っていても、このユーザーIDが招待者として強制的に使用されます。",description:"強制招待者IDに関するヒント"},"message.originTip":{message:"サイトのドメイン。サイトの設定はドメインにバインドされており、サイトのドメインは変更できません。",description:"サイトのドメインに関するヒント"},"message.titleTip":{message:"サイトのタイトル。ブラウザのタブに表示されます。",description:"サイトのタイトルに関するヒント"},"message.descriptionTip":{message:"サイトの説明。サイトのメタ情報にあり、サイトのSEO最適化に使用されます。",description:"サイトの説明に関するヒント"},"message.logoTip":{message:"サイトのロゴ。メニューが展開されたとき、サイトメニューの上部に表示されます。",description:"サイトのロゴに関するヒント"},"message.faviconTip":{message:"サイトのファビコン。ブラウザのタブに表示されます。",description:"サイトのファビコンに関するヒント"},"message.adminsTip":{message:"サイトの管理者ID。デフォルトでは、最初にこのサイトを作成したユーザーが管理者になります。サイトの管理者のみがサイトを管理できます。",description:"サイトの管理者に関するヒント"},"message.adminsTip2":{message:"ここで管理者IDを追加または削除できます。ユーザーIDは https://auth.acedata.cloud で確認できます。",description:"サイトの管理者に関するヒント"},"message.keywordsTip":{message:"サイトのキーワード。サイトのメタ情報にあり、サイトのSEO最適化に使用されます。",description:"サイトのキーワードに関するヒント"},"message.keywordsTip2":{message:"ここでサイトのキーワードを追加または削除できます。キーワードが正確であるほど、SEO最適化に有利です。",description:"サイトのキーワードに関するヒント"},"message.featuresChat":{message:"チャット機能モジュールをオンまたはオフにします。",description:"チャット機能の説明"},"message.featuresGrok":{message:"Grok機能モジュールをオンまたはオフにします。",description:"Grok機能の説明"},"message.featuresDeepseek":{message:"Deepseek機能モジュールをオンまたはオフにします。",description:"Deepseek機能の説明"},"message.featuresChatgpt":{message:"ChatGPT機能モジュールをオンまたはオフにします。",description:"ChatGPT機能の説明"},"message.featuresMidjourney":{message:"Midjourney機能モジュールをオンまたはオフにします。",description:"Midjourney機能の説明"},"message.featuresChatdoc":{message:"Chatdoc機能モジュールをオンまたはオフにします。",description:"Chatdoc機能の説明"},"message.featuresQrart":{message:"Qrart機能モジュールをオンまたはオフにします。",description:"Qrart機能の説明"},"message.featuresVeo":{message:"Veo機能モジュールをオンまたはオフにします。",description:"Veo機能の説明"},"message.featuresSora":{message:"Sora機能モジュールをオンまたはオフにします。",description:"Sora機能の説明"},"message.featuresSuno":{message:"Suno機能モジュールをオンまたはオフにします。",description:"Suno機能の説明"},"message.featuresPixverse":{message:"Pixverse機能モジュールをオンまたはオフにします。",description:"Pixverse機能の説明"},"message.featuresFlux":{message:"FLux機能モジュールをオンまたはオフにします。",description:"FLux機能の説明"},"message.featuresNanobanana":{message:"Nano Banana機能モジュールをオンまたはオフにします。",description:"Nano Banana機能の説明"},"message.featuresLuma":{message:"Luma機能モジュールをオンまたはオフにします。",description:"Luma機能の説明"},"message.featuresPika":{message:"Pika機能モジュールをオンまたはオフにします。",description:"Pika機能の説明"},"message.featuresKling":{message:"Kling 機能モジュールをオンまたはオフにします。",description:"Kling 機能の説明"},"message.featuresHailuo":{message:"Hailuo 機能モジュールをオンまたはオフにします。",description:"Hailuo 機能の説明"},"message.featuresHeadshots":{message:"AI 証明写真機能モジュールをオンまたはオフにします。",description:"AI 証明写真機能の説明"},"message.featuresSupport":{message:"カスタマーサポートをオンまたはオフにします。",description:"Support 機能の説明"},"message.featuresI18n":{message:"多言語サポートをオンまたはオフにします。オフにすると、ユーザーはデフォルト言語のみを使用できます。",description:"多言語サポートの説明"},"button.upload":{message:"アップロード",description:"アップロード"},"button.enabled":{message:"有効",description:"スイッチのテキスト、有効になっていることを示します"},"button.disabled":{message:"無効",description:"スイッチのテキスト、無効になっていることを示します"},"field.featuresGemini":{message:"Gemini",description:"Displayed as the title in the editing box"},"message.featuresGemini":{message:"Enable or disable the Gemini feature module.",description:"Description of the Gemini feature"}};export{e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{df as a}from"./index-BWsFFZXP.js";const p=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),t=e=>a(e);export{t as c,p as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{aC as _,ao as w,bx as M,by as F,ar as y,aH as R,bz as T,aQ as B,c as V,bA as z,bB as D,bC as W,bD as H,bE as J}from"./index-BWsFFZXP.js";function b(e){var t;const r=W(e);return(t=r?.$el)!=null?t:r}const I=R?window:void 0,U=R?window.document:void 0;function m(...e){let t,r,n,u;if(M(e[0])||Array.isArray(e[0])?([r,n,u]=e,t=I):[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=_(()=>[b(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 w(v),v}let S=!1;function ae(e,t,r={}){const{window:n=I,ignore:u=[],capture:d=!0,detectIframe:a=!1}=r;if(!n)return;H&&!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=b(o);return c&&(s.target===c||s.composedPath().includes(c))}}),i=[m(n,"click",s=>{const o=b(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}),m(n,"pointerdown",s=>{const o=b(e);o&&(l=!s.composedPath().includes(o)&&!p(s))},{passive:!0}),a&&m(n,"blur",s=>{var o;const c=b(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(),T(n,t),r}function G(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 ie({document:e=U}={}){if(!e)return y("visible");const t=y(e.visibilityState);return m(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var A=Object.getOwnPropertySymbols,k=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,K=(e,t)=>{var r={};for(var n in e)k.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&&q.call(e,n)&&(r[n]=e[n]);return r};function ue(e,t,r={}){const n=r,{window:u=I}=n,d=K(n,["window"]);let a;const l=L(()=>u&&"ResizeObserver"in u),p=()=>{a&&(a.disconnect(),a=void 0)},v=_(()=>b(e),f=>{p(),l.value&&u&&f&&(a=new ResizeObserver(t),a.observe(f,d))},{immediate:!0,flush:"post"}),i=()=>{p(),v()};return w(i),{isSupported:l,stop:i}}var C=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&&C)for(var n of C(e))t.indexOf(n)<0&&Y.call(e,n)&&(r[n]=e[n]);return r};function le(e,t,r={}){const n=r,{window:u=I}=n,d=Z(n,["window"]);let a;const l=L(()=>u&&"MutationObserver"in u),p=()=>{a&&(a.disconnect(),a=void 0)},v=_(()=>b(e),f=>{p(),l.value&&u&&f&&(a=new MutationObserver(t),a.observe(f,d))},{immediate:!0}),i=()=>{p(),v()};return w(i),{isSupported:l,stop:i}}var j;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(j||(j={}));var ee=Object.defineProperty,x=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(x)for(var r of x(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:J},se);function ce(e,t,r,n={}){var u,d,a;const{clone:l=!1,passive:p=!1,eventName:v,deep:i=!1,defaultValue:f}=n,s=B(),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?D(l)?l(O):G(O):O,P=()=>z(e[t])?E(e[t]):f;if(p){const O=P(),h=y(O);return _(()=>e[t],g=>h.value=E(g)),_(h,g=>{(g!==e[t]||i)&&o(c,g)},{deep:i}),h}else return V({get(){return P()},set(O){o(c,O)}})}function fe({window:e=I}={}){if(!e)return y(!1);const t=y(e.document.hasFocus());return m(e,"blur",()=>{t.value=!1}),m(e,"focus",()=>{t.value=!0}),t}const de=e=>e;export{m as a,ue as b,ce as c,le as d,ie as e,fe as f,de as m,ae as o,b as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{at as o,ar as e,c as p,aB as t,aC as I,aU as f,cp as h,ch as w,aL as y,b0 as F}from"./index-BWsFFZXP.js";const U=()=>{const v=o(w,void 0),u=o(y,void 0);return{form:v,formItem:u}},B=(v,{formItemContext:u,disableIdGeneration:i,disableIdManagement:s})=>{i||(i=e(!1)),s||(s=e(!1));const a=e();let c;const r=p(()=>{var l;return!!(!(v.label||v.ariaLabel)&&u&&u.inputIds&&((l=u.inputIds)==null?void 0:l.length)<=1)});return t(()=>{c=I([f(v,"id"),i],([l,n])=>{const d=l??(n?void 0:F().value);d!==a.value&&(u?.removeInputId&&(a.value&&u.removeInputId(a.value),!s?.value&&!n&&d&&u.addInputId(d)),a.value=d)},{immediate:!0})}),h(()=>{c&&c(),u?.removeInputId&&a.value&&u.removeInputId(a.value)}),{isLabeledByFormItem:r,inputId:a}};export{B as a,U as u};
|
package/dist/index.html
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
s.parentNode.insertBefore(hm, s);
|
|
18
18
|
})();
|
|
19
19
|
</script>
|
|
20
|
-
<script type="module" crossorigin src="/assets/index-
|
|
20
|
+
<script type="module" crossorigin src="/assets/index-BWsFFZXP.js"></script>
|
|
21
21
|
<link rel="stylesheet" crossorigin href="/assets/index-Bkeo38XF.css">
|
|
22
22
|
</head>
|
|
23
23
|
<body>
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{F as O}from"./index.es-B92faSi8.js";import{E as R}from"./index-CgzNR6Br.js";import{E as B}from"./index-C1h2SbZU.js";import{d as v,h as g,b as l,t as i,k as t,r as z,j as p,l as a,o as s,eG as P,eH as M,eI as C,eJ as E,eK as I,x as r,F as S,v as T,i as y,eL as q,eM as H,y as f,eN as J,n as L,f as K,c9 as W,D as $,eO as Z,J as Q,K as X,eP as Y,du as x,dq as ee}from"./index-BZbKTMK3.js";import{E as D,a as U}from"./index-BNbrEyG8.js";import{I as F}from"./InfoIcon-DhMpzlKc.js";import{I as te}from"./ImagePreview-BvPOSpDB.js";import{E as oe}from"./index-yxRIEND6.js";import{E as A}from"./index-hrpdMjUu.js";import{C as se,N as ae}from"./NoTasks-DmNkmZBC.js";import{E as ne}from"./index-DSYfQpVb.js";import{a as re}from"./price-B8COZ-j4.js";import{C as le}from"./CopyToClipboard-CuCD6yxS.js";import{V as ie}from"./VideoPlayer-D-xD0k0W.js";import{E as ce}from"./index-BDYxvVsV.js";import{E as de}from"./index-D0cZ5BM8.js";import{E as ue}from"./index-Cu3La3dR.js";import{B as pe}from"./BotPlaceholder-6rksUZSI.js";import"./use-form-item-9EKLSUpL.js";import"./index-r5W6hzzQ.js";import"./index-BKJPB7EB.js";import"./typescript-CkR2OWnN.js";import"./index-CZi_rDaW.js";import"./strings-BQbdUIFn.js";import"./castArray-BeCWKAC7.js";import"./isEqual-DIgYivsv.js";import"./_initCloneObject-DL2KWEpg.js";import"./debounce-kw1MDyXj.js";import"./_baseIteratee-LzESfPbZ.js";import"./index-Tp13-pBQ.js";import"./index-oeBw24Ll.js";import"./_baseClone-CyEUgRjr.js";import"./index-CjhBlm5C.js";import"./vue-plyr-QZFBikSk.js";import"./index-Rl2p1NyF.js";const me=v({name:"LayoutSora",components:{ElDrawer:B,ElButton:R,FontAwesomeIcon:O},data(){return{drawer:!1}}}),fe={class:"main flex flex-row flex-1"},_e={class:"config w-[300px] h-full overflow-y-scroll border-r border-[var(--el-border-color)]"},he={class:"result h-full p-[15px] flex-1 flex flex-col"};function $e(e,o,d,_,b,k){const c=a("font-awesome-icon"),u=a("el-button"),n=a("el-drawer");return s(),l("div",fe,[i("div",_e,[z(e.$slots,"config",{},void 0,!0)]),i("div",he,[z(e.$slots,"result",{},void 0,!0)]),t(u,{circle:"",class:"menu",onClick:o[0]||(o[0]=w=>e.drawer=!0)},{default:p(()=>[t(c,{icon:"fa-solid fa-magic"})]),_:1}),t(n,{modelValue:e.drawer,"onUpdate:modelValue":o[1]||(o[1]=w=>e.drawer=w),direction:"ltr","with-header":!1,size:"350px"},{default:p(()=>[z(e.$slots,"config",{},void 0,!0)]),_:3},8,["modelValue"])])}const ve=g(me,[["render",$e],["__scopeId","data-v-966c9b2c"]]),ge=v({name:"ModelSelector",components:{ElSelect:U,ElOption:D},props:{modelValue:{type:String,default:void 0}},emits:["update:modelValue"],data(){return{options:[{value:M,label:"sora-2"},{value:C,label:"sora-2-pro"}]}},computed:{value:{get(){return this.$store.state.sora?.config?.model},set(e){const d={...this.$store.state.sora?.config||{},model:e};e===M?(d.duration=E,d.size=I):e===C&&(d.duration=d.duration||E,d.size=d.size||I),this.$store.commit("sora/setConfig",d)}}},mounted(){this.value||(this.value=P)}}),be={class:"field"},ke={class:"title font-bold"};function we(e,o,d,_,b,k){const c=a("el-option"),u=a("el-select");return s(),l("div",be,[i("h2",ke,r(e.$t("sora.name.model")),1),t(u,{modelValue:e.value,"onUpdate:modelValue":o[0]||(o[0]=n=>e.value=n),class:"value",placeholder:e.$t("sora.placeholder.select")},{default:p(()=>[(s(!0),l(S,null,T(e.options,n=>(s(),y(c,{key:n.value,label:n.label,value:n.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])])}const ye=g(ge,[["render",we],["__scopeId","data-v-ea6f95d9"]]),Se=v({name:"ActionSelector",components:{ElSelect:U,ElOption:D},data(){return{}},computed:{options(){return[{value:"text2video",label:this.$t("sora.button.action1")},{value:"image2video",label:this.$t("sora.button.action2")}]},value:{get(){return this.$store.state.sora?.config?.action},set(e){this.$store.commit("sora/setConfig",{...this.$store.state.sora?.config,action:e})}}},mounted(){this.value||(this.value=q)}}),Ve={class:"field"},Ee={class:"title font-bold"},Ie={class:"float-left"};function Ae(e,o,d,_,b,k){const c=a("el-option"),u=a("el-select");return s(),l("div",Ve,[i("h2",Ee,r(e.$t("sora.name.action")),1),t(u,{modelValue:e.value,"onUpdate:modelValue":o[0]||(o[0]=n=>e.value=n),class:"value",placeholder:e.$t("sora.placeholder.select"),clearable:""},{default:p(()=>[(s(!0),l(S,null,T(e.options,n=>(s(),y(c,{key:n.value,label:n.label,value:n.value},{default:p(()=>[i("span",Ie,r(n.label),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])])}const Le=g(Se,[["render",Ae],["__scopeId","data-v-7b82fa7f"]]),Te=v({name:"DurationSelector",components:{ElSelect:U,ElOption:D},data(){return{options:H.map(e=>({value:e,label:`${e}s`}))}},computed:{model(){return this.$store.state.sora?.config?.model||P},isLocked(){return this.model!==C},optionsForModel(){return this.isLocked?this.options.filter(e=>e.value===E):this.options},value:{get(){return this.$store.state.sora?.config?.duration},set(e){const o=this.$store.state.sora?.config||{};this.$store.commit("sora/setConfig",{...o,duration:e})}}},watch:{isLocked(e){e&&this.value!==E&&(this.value=E)}},mounted(){this.value||(this.value=E)}}),Ce={class:"field"},Oe={class:"control"},Re={class:"title font-bold"},De={key:0,class:"hint"};function Ue(e,o,d,_,b,k){const c=a("el-option"),u=a("el-select");return s(),l("div",Ce,[i("div",Oe,[i("h2",Re,r(e.$t("sora.name.duration")),1),t(u,{modelValue:e.value,"onUpdate:modelValue":o[0]||(o[0]=n=>e.value=n),class:"value",placeholder:e.$t("sora.placeholder.select"),disabled:e.isLocked},{default:p(()=>[(s(!0),l(S,null,T(e.optionsForModel,n=>(s(),y(c,{key:n.value,label:n.label,value:n.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","disabled"])]),e.isLocked?(s(),l("p",De,r(e.$t("sora.tip.proOnly")),1)):f("",!0)])}const Ge=g(Te,[["render",Ue],["__scopeId","data-v-8e3f9091"]]),ze=v({name:"OrientationSelector",data(){return{options:[{value:"portrait",label:"竖屏",width:13,height:25},{value:"landscape",label:"横屏",width:25,height:13}]}},computed:{active(){return this.options.findIndex(e=>e.value===this.value)||0},value:{get(){return this.$store.state.sora?.config?.orientation},set(e){console.debug("set orientation",e),this.$store.commit("sora/setConfig",{...this.$store.state?.sora?.config,orientation:e})}}},mounted(){this.value||(this.value=J)}}),Pe={class:"text-sm font-bold mb-2 block"},Me={class:"items"},Fe=["onClick"],je={class:"name"};function Ne(e,o,d,_,b,k){return s(),l("div",null,[i("span",Pe,r(e.$t("sora.name.orientation")),1),i("div",Me,[(s(!0),l(S,null,T(e.options,(c,u)=>(s(),l("div",{key:u,class:L({active:e.active===u,item:!0}),onClick:n=>e.value=c.value},[i("div",{class:L(["preview",c.value])},[i("div",{class:"rect",style:K({width:c.width+"px",height:c.height+"px"})},null,4)],2),i("p",je,r(c.label),1)],10,Fe))),128))])])}const Be=g(ze,[["render",Ne],["__scopeId","data-v-d6940af8"]]),qe=v({name:"StartEndImage",components:{ElUpload:oe,ElButton:R,InfoIcon:F,FontAwesomeIcon:O,ImagePreview:te},emits:["change"],data(){return{fileList:[],uploadUrl:W()+"/api/v1/files/"}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>e?.response?.file_url)},value:{get(){return this.$store.state?.sora?.config?.image_urls},set(){}}},mounted(){this.value||(this.value=void 0),this.onSetStartEndImageUrl()},methods:{onExceed(){A.warning(this.$t("sora.message.uploadReferencesExceed"))},onError(){A.error(this.$t("sora.message.uploadReferencesError"))},onSetStartEndImageUrl(){const e=this.urls;this.$store.commit("sora/setConfig",{...this.$store.state?.sora?.config,image_urls:e})},async onSuccess(){this.onSetStartEndImageUrl()}}}),He={class:"relative"},Je={class:"flex justify-between"},Ke={class:"flex justify-start items-center"},We={class:"text-sm font-bold"};function Ze(e,o,d,_,b,k){const c=a("info-icon"),u=a("image-preview"),n=a("font-awesome-icon"),w=a("el-button"),h=a("el-upload");return s(),l("div",He,[i("div",Je,[i("div",Ke,[i("span",We,r(e.$t("sora.name.startEndImage")),1),t(c,{content:e.$t("sora.description.uploadStartEndImage")},null,8,["content"])])]),t(h,{"file-list":e.fileList,"onUpdate:fileList":o[0]||(o[0]=m=>e.fileList=m),name:"file",accept:".png,.jpg,.jpeg,.gif,.bmp,.webp",limit:2,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:p(({file:m})=>[m.url&&m.percentage!==void 0?(s(),y(u,{key:0,url:m.url,name:m.name,percentage:m.percentage,onRemove:V=>e.fileList.splice(e.fileList.indexOf(m),1)},null,8,["url","name","percentage","onRemove"])):f("",!0)]),default:p(()=>[t(w,{round:"",type:"primary",size:"small",class:"btn btn-upload"},{default:p(()=>[t(n,{icon:"fa-solid fa-upload",class:"icon mr-1"}),$(" "+r(e.$t("sora.button.uploadReferences")),1)]),_:1})]),_:1},8,["file-list","action","on-exceed","on-error","on-success","headers"])])}const Qe=g(qe,[["render",Ze],["__scopeId","data-v-fd6e5c97"]]),Xe=e=>e&&e.charAt(0).toUpperCase()+e.slice(1),Ye=v({name:"SizeSelector",components:{ElSelect:U,ElOption:D},data(){return{options:Z.map(e=>({value:e,label:Xe(e)}))}},computed:{model(){return this.$store.state.sora?.config?.model||P},isLocked(){return this.model!==C},optionsForModel(){return this.isLocked?this.options.filter(e=>e.value===I):this.options},value:{get(){return this.$store.state.sora?.config?.size},set(e){const o=this.$store.state.sora?.config||{};this.$store.commit("sora/setConfig",{...o,size:e})}}},watch:{isLocked(e){e&&this.value!==I&&(this.value=I)}},mounted(){this.value||(this.value=I)}}),xe={class:"field"},et={class:"control"},tt={class:"title font-bold"},ot={key:0,class:"hint"};function st(e,o,d,_,b,k){const c=a("el-option"),u=a("el-select");return s(),l("div",xe,[i("div",et,[i("h2",tt,r(e.$t("sora.name.size")),1),t(u,{modelValue:e.value,"onUpdate:modelValue":o[0]||(o[0]=n=>e.value=n),class:"value",placeholder:e.$t("sora.placeholder.select"),disabled:e.isLocked},{default:p(()=>[(s(!0),l(S,null,T(e.optionsForModel,n=>(s(),y(c,{key:n.value,label:n.label,value:n.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","disabled"])]),e.isLocked?(s(),l("p",ot,r(e.$t("sora.tip.proOnly")),1)):f("",!0)])}const at=g(Ye,[["render",st],["__scopeId","data-v-c0582a64"]]),nt="",rt=v({name:"PromptInput",components:{ElInput:ne,InfoIcon:F},computed:{prompt:{get(){return this.$store.state.sora?.config?.prompt},set(e){console.debug("set prompt",e),this.$store.commit("sora/setConfig",{...this.$store.state.sora?.config,prompt:e})}}},mounted(){this.prompt||(this.prompt=nt)}}),lt={class:"field"},it={class:"box"},ct={class:"title font-bold"};function dt(e,o,d,_,b,k){const c=a("info-icon"),u=a("el-input");return s(),l("div",lt,[i("div",it,[i("h2",ct,r(e.$t("sora.name.prompt")),1),t(c,{content:e.$t("sora.description.prompt"),class:"info"},null,8,["content"])]),t(u,{modelValue:e.prompt,"onUpdate:modelValue":o[0]||(o[0]=n=>e.prompt=n),rows:3,type:"textarea",class:"prompt",placeholder:e.$t("sora.placeholder.prompt"),maxlength:500,"show-word-limit":""},null,8,["modelValue","placeholder"])])}const ut=g(rt,[["render",dt],["__scopeId","data-v-cf3a1497"]]),pt=v({name:"ConfigPanel",components:{ElButton:R,Consumption:se,FontAwesomeIcon:O,PromptInput:ut,ModelSelector:ye,StartEndImage:Qe,SizeSelector:at,ActionSelector:Le,OrientationSelector:Be,DurationSelector:Ge},emits:["generate"],computed:{config(){return this.$store.state.sora?.config},consumption(){return re(this.config,this.service?.metadata?.price)},service(){return this.$store.state.sora?.service}},methods:{onGenerate(){this.$emit("generate")}}}),mt={class:"flex flex-col h-full"},ft={class:"flex-1 overflow-y-auto p-[15px]"},_t={class:"flex flex-col items-center justify-center px-[15px] pb-[15px]"};function ht(e,o,d,_,b,k){const c=a("model-selector"),u=a("action-selector"),n=a("duration-selector"),w=a("size-selector"),h=a("orientation-selector"),m=a("prompt-input"),V=a("start-end-image"),G=a("consumption"),j=a("font-awesome-icon"),N=a("el-button");return s(),l("div",mt,[i("div",ft,[t(c,{class:"mb-4"}),t(u,{class:"mb-4"}),t(n,{class:"mb-4"}),t(w,{class:"mb-4"}),t(h,{class:"mb-4"}),t(m,{class:"mb-4"}),Q(t(V,{class:"mb-2"},null,512),[[X,e.config?.action==="image2video"]])]),i("div",_t,[t(G,{value:e.consumption,service:e.service},null,8,["value","service"]),t(N,{type:"primary",class:"btn w-full",round:"",onClick:e.onGenerate},{default:p(()=>[t(j,{icon:"fa-solid fa-magic",class:"mr-2"}),$(" "+r(e.$t("sora.button.generate")),1)]),_:1},8,["onClick"])])])}const $t=g(pt,[["render",ht]]),vt=v({name:"TaskPreview",components:{ElImage:ue,CopyToClipboard:le,FontAwesomeIcon:O,ElAlert:de,VideoPlayer:ie,ElTooltip:ce,ElButton:R},props:{modelValue:{type:Object,required:!0}},data(){return{}},computed:{application(){return this.$store.state.sora?.application},config(){return this.$store.state.sora?.config}},methods:{onDownload(e,o){e.stopPropagation(),console.log("on download"),window.open(o,"_blank")},onOpenVideo(e){window.open(e,"_blank")}}}),gt={class:"preview"},bt={class:"left"},kt={class:"main"},wt={class:"bot"},yt={class:"datetime"},St={class:"info"},Vt={key:0,class:"prompt mt-2"},Et={key:0},It={key:1},At={key:0,class:L({content:!0,failed:!0})},Lt={key:0,class:"mb-4"},Tt={key:1,class:L({operations:!0,"mt-2":!0})},Ct={class:"text-[var(--el-text-color-regular)] text-xs mb-2"},Ot={class:"text-[var(--el-text-color-regular)] text-xs mb-0"},Rt={key:1,class:L({content:!0})},Dt={class:"text-[var(--el-text-color-regular)] text-xs mb-2"},Ut={class:"text-[var(--el-text-color-regular)] text-xs mb-2"},Gt={key:0,class:"text-[var(--el-text-color-regular)] text-xs mb-0"},zt={key:2,class:L({content:!0})},Pt={class:"text-[var(--el-text-color-regular)] text-xs mb-2"},Mt={key:0,class:"text-[var(--el-text-color-regular)] text-xs mb-0"};function Ft(e,o,d,_,b,k){const c=a("el-image"),u=a("video-player"),n=a("el-button"),w=a("el-tooltip"),h=a("font-awesome-icon"),m=a("copy-to-clipboard"),V=a("el-alert");return s(),l("div",gt,[i("div",bt,[t(c,{src:"https://cdn.acedata.cloud/z5id1u.png",class:"avatar"})]),i("div",kt,[i("div",wt,[$(r(e.$t("sora.name.soraBot"))+" ",1),i("span",yt,r(e.$dayjs.format(""+new Date(parseFloat((e.modelValue?.created_at||"").toString())*1e3))),1)]),i("div",St,[e.modelValue?.request?.prompt?(s(),l("p",Vt,[$(r(e.modelValue?.request?.prompt)+" ",1),e.modelValue?.response?f("",!0):(s(),l("span",Et," - ("+r(e.$t("sora.status.pending"))+") ",1)),Array.isArray(e.modelValue?.response?.data)&&e.modelValue?.response?.data[0]?.state==="pending"?(s(),l("span",It," - ("+r(e.$t("sora.status.processing"))+") ",1)):f("",!0)])):f("",!0)]),e.modelValue?.response?.success===!0&&e.modelValue?.response?.data?(s(),l("div",At,[e.modelValue?.response?.data[0]?.video_url?(s(),l("div",Lt,[t(u,{src:e.modelValue?.response?.data[0]?.video_url},null,8,["src"])])):f("",!0),e.modelValue?.response.success?(s(),l("div",Tt,[t(w,{class:"box-item",effect:"dark",content:e.$t("sora.message.downloadVideo"),placement:"top-start"},{default:p(()=>[e.modelValue?.response?.data[0]?.video_url?(s(),y(n,{key:0,type:"info",size:"small",class:"btn-action",onClick:o[0]||(o[0]=G=>e.onDownload(G,e.modelValue?.response?.data[0]?.video_url))},{default:p(()=>[$(r(e.$t("sora.button.download")),1)]),_:1})):f("",!0)]),_:1},8,["content"])])):f("",!0),t(V,{closable:!1,class:"mt-2 success"},{default:p(()=>[i("p",Ct,[t(h,{icon:"fa-solid fa-hashtag",class:"mr-1"}),$(" "+r(e.$t("sora.name.model"))+": "+r(e.modelValue?.request?.model),1)]),i("p",Ot,[t(h,{icon:"fa-solid fa-magic",class:"mr-1"}),$(" "+r(e.$t("sora.name.taskId"))+": "+r(e.modelValue?.id)+" ",1),t(m,{content:e.modelValue?.id},null,8,["content"])])]),_:1})])):f("",!0),e.modelValue?.response?.success===!1?(s(),l("div",Rt,[t(V,{closable:!1,class:"failure"},{template:p(()=>[t(h,{icon:"fa-solid fa-exclamation-triangle",class:"mr-1"}),$(" "+r(e.$t("sora.name.failure")),1)]),default:p(()=>[i("p",Dt,[t(h,{icon:"fa-solid fa-magic",class:"mr-1"}),$(" "+r(e.$t("sora.name.taskId"))+": "+r(e.modelValue?.id)+" ",1),t(m,{content:e.modelValue?.id},null,8,["content"])]),i("p",Ut,[t(h,{icon:"fa-solid fa-circle-info",class:"mr-1"}),$(" "+r(e.$t("sora.name.failureReason"))+": "+r(e.modelValue?.response?.error?.message)+" ",1),t(m,{content:e.modelValue?.response?.error?.message},null,8,["content"])]),e.modelValue?.response?.trace_id?(s(),l("p",Gt,[t(h,{icon:"fa-solid fa-hashtag",class:"mr-1"}),$(" "+r(e.$t("sora.name.traceId"))+": "+r(e.modelValue?.response?.trace_id)+" ",1),t(m,{content:e.modelValue?.response?.trace_id},null,8,["content"])])):f("",!0)]),_:1})])):f("",!0),e.modelValue?.response?.success===void 0?(s(),l("div",zt,[t(V,{closable:!1,class:"info"},{template:p(()=>[t(h,{icon:"fa-solid fa-exclamation-triangle",class:"mr-1"}),$(" "+r(e.$t("sora.name.failure")),1)]),default:p(()=>[i("p",Pt,[t(h,{icon:"fa-solid fa-magic",class:"mr-1"}),$(" "+r(e.$t("sora.name.taskId"))+": "+r(e.modelValue?.id)+" ",1),t(m,{content:e.modelValue?.id},null,8,["content"])]),e.modelValue?.response?.trace_id?(s(),l("p",Mt,[t(h,{icon:"fa-solid fa-hashtag",class:"mr-1"}),$(" "+r(e.$t("sora.name.traceId"))+": "+r(e.modelValue?.response?.trace_id)+" ",1),t(m,{content:e.modelValue?.response?.trace_id},null,8,["content"])])):f("",!0)]),_:1})])):f("",!0)])])}const jt=g(vt,[["render",Ft],["__scopeId","data-v-183a4d07"]]),Nt=v({name:"RecentPanel",components:{TaskPreview:jt,NoTasks:ae,BotPlaceholder:pe},emits:["reach-top"],data(){return{job:0}},computed:{tasks(){return{...this.$store.state.sora?.tasks,items:this.$store.state.sora?.tasks?.items?.slice()}}},methods:{onHandleScroll(){const e=this.$refs.panel;console.log("reach-top reach-top reach-top"),e.scrollTop===0&&this.$emit("reach-top")}}}),Bt={key:0},qt={key:1,class:"tasks h-full w-full overflow-y-auto"},Ht={key:2,class:"w-full h-full flex items-center justify-center"};function Jt(e,o,d,_,b,k){const c=a("bot-placeholder"),u=a("task-preview"),n=a("no-tasks");return s(),l(S,null,[e.tasks?.items===void 0?(s(),l("div",Bt,[t(c)])):e.tasks?.items?.length&&e.tasks?.items?.length>0?(s(),l("div",qt,[(s(!0),l(S,null,T(e.tasks?.items,(w,h)=>(s(),y(u,{key:h,"model-value":w},null,8,["model-value"]))),128))])):f("",!0),e.tasks?.items?.length===0?(s(),l("div",Ht,[t(n)])):f("",!0)],64)}const Kt=g(Nt,[["render",Jt]]),Wt="https://webhook.acedata.cloud/sora",Zt=v({name:"SoraIndex",components:{ConfigPanel:$t,Layout:ve,RecentPanel:Kt},inject:["initialized"],data(){return{task:void 0,job:0}},computed:{loading(){return this.$store.state.sora?.status?.getApplications===ee.Request},credential(){return this.$store.state.sora.credential},config(){return this.$store.state.sora.config},tasks(){return this.$store.state.sora.tasks}},watch:{tasks:{handler(e,o){e?.items?.length>o?.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=setInterval(()=>{this.onGetTasks()},5e3))},immediate:!0}},async mounted(){await this.onGetService()},async unmounted(){clearInterval(this.job)},methods:{async onReachTop(){console.debug("reached top"),await this.onGetTasks({createdAtMax:this.tasks?.items?.[0]?.created_at})},async onGetService(){console.debug("start onGetService"),await this.$store.dispatch("sora/getService"),console.debug("end onGetService")},async onGetApplication(){console.debug("start onGetApplication"),await this.$store.dispatch("sora/getApplications"),console.debug("end onGetApplication"),await this.onGetTasks()},async onScrollDown(){setTimeout(()=>{const e=document.querySelector(".tasks");e&&(e.scrollTop=e.scrollHeight)},500)},async onGetTasks(e){if(this.loading){console.debug("loading");return}console.debug("start onGetTasks",e);const{limit:o=5,createdAtMin:d,createdAtMax:_}=e||{};console.debug("limit",o,"createdAtMin",d,"createdAtMax",_),await this.$store.dispatch("sora/getTasks",{limit:o,createdAtMin:d,createdAtMax:_})},async onGenerate(){const e={...this.config,callback_url:Wt},o=this.credential?.token;if(!o){console.error("no token specified");return}A.info(this.$t("sora.message.startingTask")),Y.generate(e,{token:o}).then(()=>{A.success(this.$t("sora.message.startTaskSuccess"))}).catch(d=>{d?.response?.data?.error?.code===x?A.error(this.$t("sora.message.usedUp")):A.error(this.$t("sora.message.startTaskFailed"))}).finally(async()=>{setTimeout(async()=>{await this.onGetTasks(),await this.onScrollDown()},1e3)})}}});function Qt(e,o,d,_,b,k){const c=a("config-panel"),u=a("recent-panel"),n=a("layout");return s(),y(n,null,{config:p(()=>[t(c,{onGenerate:e.onGenerate},null,8,["onGenerate"])]),result:p(()=>[t(u,{onReachTop:e.onReachTop},null,8,["onReachTop"])]),_:1})}const Ro=g(Zt,[["render",Qt]]);export{Ro as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.menu[data-v-966c9b2c]{display:none}@media (max-width: 767px){.config[data-v-966c9b2c]{display:none}.result[data-v-966c9b2c]{width:100%}.menu[data-v-966c9b2c]{display:block;position:absolute;right:8px;top:45px;z-index:1000}}.field[data-v-ea6f95d9]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.field .title[data-v-ea6f95d9]{font-size:14px;margin:0;width:30%}.field .value[data-v-ea6f95d9]{width:120px}.field[data-v-7b82fa7f]{display:flex;flex-direction:row;align-items:center}.field .title[data-v-7b82fa7f]{font-size:14px;margin:0;width:30%}.field .value[data-v-7b82fa7f]{flex:1}.field[data-v-8e3f9091]{display:flex;flex-direction:column}.control[data-v-8e3f9091]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.title[data-v-8e3f9091]{font-size:14px;margin:0;width:30%}.value[data-v-8e3f9091]{width:120px}.hint[data-v-8e3f9091]{margin-top:4px;font-size:12px;color:var(--el-text-color-secondary)}.title[data-v-d6940af8]{font-size:14px;margin-bottom:10px}.items[data-v-d6940af8]{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:12px}.items .item[data-v-d6940af8]{width:48px;height:65px;border:1px solid var(--el-border-color);display:flex;flex-direction:column;align-items:center;cursor:pointer;border-radius:var(--el-border-radius-base)}.items .item .preview[data-v-d6940af8]{margin-top:5px;margin-bottom:3px;width:30px;height:30px;display:flex;flex-direction:row;align-items:center;justify-content:center}.items .item .preview .rect[data-v-d6940af8]{border:1px solid var(--el-border-color);width:20px;height:20px;border-radius:2px}.items .item .name[data-v-d6940af8]{display:block;font-size:12px;color:var(--el-text-color-primary)}.items .item.active[data-v-d6940af8],.items .item.active .rect[data-v-d6940af8]{border-color:var(--el-color-primary)}.title[data-v-fd6e5c97]{font-size:14px;margin-bottom:0;width:30%}.btn.btn-upload[data-v-fd6e5c97]{position:absolute;top:5px;right:0}.upload-wrapper{height:auto;display:flex}.upload-wrapper .el-upload-list{margin:0;width:100%}.field[data-v-c0582a64]{display:flex;flex-direction:column}.control[data-v-c0582a64]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.title[data-v-c0582a64]{font-size:14px;margin:0;width:30%}.value[data-v-c0582a64]{width:120px}.hint[data-v-c0582a64]{margin-top:4px;font-size:12px;color:var(--el-text-color-secondary)}.field .box[data-v-cf3a1497]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;position:relative}.field .box .title[data-v-cf3a1497]{font-size:14px;margin-bottom:10px}.field .info[data-v-cf3a1497]{margin-left:auto}.preview[data-v-183a4d07]{width:100%;height:-moz-fit-content;height:fit-content;text-align:left;display:flex;flex-direction:row;margin-bottom:15px}.preview .left[data-v-183a4d07]{width:70px}.preview .left .avatar[data-v-183a4d07]{width:50px;height:50px;margin:10px;border-radius:50%}.preview .main[data-v-183a4d07]{flex:1;width:calc(100% - 70px);padding:10px 10px 0}.preview .main .bot[data-v-183a4d07]{font-size:16px;font-weight:700;color:#2ecc71;margin-bottom:0;margin-top:0}.preview .main .bot .datetime[data-v-183a4d07]{font-size:12px;font-weight:400;color:var(--el-text-color-secondary);margin-left:10px}.preview .main .info .prompt[data-v-183a4d07]{font-size:16px;font-weight:700;color:var(--el-text-color-regular);margin-bottom:10px}.preview .main .content .el-alert[data-v-183a4d07]{border-left-width:2px;border-left-style:solid}.preview .main .content .el-alert.failure[data-v-183a4d07]{border-color:var(--el-color-danger)}.preview .main .content .el-alert.success[data-v-183a4d07]{border-color:var(--el-color-success)}.preview .main .content .el-alert.info[data-v-183a4d07]{border-color:var(--el-color-info)}.preview .main .operations[data-v-183a4d07]{display:flex;justify-content:left;flex-direction:row;width:100%;align-items:baseline;flex-wrap:wrap;overflow:hidden;text-align:center;color:var(--el-text-color-regular);font-size:14px;overflow-y:scroll}.preview .main .operations.full[data-v-183a4d07]{height:70px}.preview .main .operations .btn-action[data-v-183a4d07]{margin-bottom:10px}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as $,z as ee,h as b,b as h,o as r,E as te,A as se,B as oe,C as ie,i as v,j as i,t as a,D as f,k as t,x as l,l as s,G as me,I as ue,v as A,F as y,H as C,J as L,y as O,K as D,L as pe,M as he,N as fe,O as _e,P as ge,Q as ve,n as ne,S as $e,T as be,R as Ee,U as we,V as M,W as ke,X as Se,Y as X,Z as Te,$ as Ie,a0 as J,a1 as Oe,a2 as Y,a3 as K,a4 as B,a5 as P,a6 as ye,a7 as Q,a8 as Ae,a9 as z,aa as Ce,ab as q,ac as Ne,ad as j,ae as Ue,af as Z,ag as Re,ah as W,ai as Le,aj as x,ak as De}from"./index-BZbKTMK3.js";import{F as ae}from"./index.es-B92faSi8.js";import{E as V,a as F,b as G}from"./index-CSXTF63q.js";import{E as le,a as re,b as N}from"./EditArray-DaAQ3MHX.js";import{E as U,a as R}from"./index-hbRYKLdf.js";import{E as H}from"./index-Cu3La3dR.js";import{E as de}from"./index-BxILNqsr.js";import{E as Ve}from"./index-CbPHeT3X.js";import{E as Fe,a as Ge}from"./index-N5_Xerc6.js";import{E as He}from"./index-BDYxvVsV.js";const Me=$({emits:["click"],computed:{dark(){return ee("THEME")==="dark"},url(){return this.$store.state.site?.favicon}}}),Xe=["src"];function Je(e,o,E,w,k,S){return r(),h("img",{src:e.url,class:"logo",onClick:o[0]||(o[0]=d=>e.$emit("click"))},null,8,Xe)}const Ye=b(Me,[["render",Je]]),Ke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAAC0CAMAAAAKE/YAAAAAMFBMVEX///+3t7f4+Pi8vLzAwMDExMTS0tLIyMjk5OTz8/PY2NjOzs7u7u7d3d3p6enh4eFVKkJDAAAIfUlEQVR4nNVd15akOAylyRRQ9f9/O02BZJtgBQszfR/2zPahsJCvguVUFJYop35ux66pq6r6+fn9T910bTv3U2najBXK9zw2PxE07fz+n0Qf+raOyetL3g9PS7vgzRUYULfvZyXuR5nAgLF/SuK3UuJN7gf0PbyErDiieuU1zKmLyFJ3Y9u+vmh//V9dXT/b5VN3f+HbFq82nGivHH6999Vv8rC7P+NFzfBlF56xvl/sEy1Xbc8mZ9m3R7bcrO0jl+vXJH7J0YY78UvYKNuDjpWNTQd9tzd5ks9ePUm92u877WMlp4dhR+Y2OYkYdh3XmKclc9iATVwoXyFLZouXIobuBpEXlK+QcYbK7gOF2NpMaN2Vmfdr71LGirAbW5N3lr4F1rckC0GQbQw6cqrM1XACvzOr5EjT+2q+L24Vk6/sRGL7no6t5un9eQE+7JG4r+wk3+e9iGfXwzyeZHLjzDGFt0fEBB564ymOeRwzCg8dHaZ9kx8NZGZ8+UyOv0bSW3o9q5Tac5+0luajjGfqpsT2krIuTeaKZGQf4UUIKpx6xFbo2nGD9HSlpJZAGfSQILVjV02Z4CQsJhD2UdbcJ/dwyRfpNvozwaLo4q/0nMhLIrMThJSZZ4EhiJd6Ugti43SvzCTlPKnZmUNZMV+u4cYKwp85XlfcTBi/s6Z+MZ2LxADhGZzUDU9m5zjIr0woQhLxasAHWS7E9TgZU/Z1EBEIjbzxQYYxOudOxu73qTBcUGEaIzqD1hi96W6JTgzRoDSI/UhmITP7yUPFSYqaagD1R4wJkP8VnT8nTwVQqnauN06QjvtCvYt2IL3Zm/Uk9jjDz0RmMLggwx3SOuIUSniGpJv3bAJo1SAFr9mKH8aI+LqkI0RFtoIh9/L76Cc8GLCDoxxSjyAHgxxFYSEzJ18Ggly4YHQHnCQ2LRoCGINXQirim0JYUJpDatf/p24PP4mVwSblSg6MEhDGuzNVg6J5o8nEvAPAGZiAfk5MDRXNqxcmx/AVHPMprx8G1TEHwOzqTByseTgoDRxYDT6akSh9YSMzr6aLidOeTGCj3EqDkdC8GU9Q9c6voYlyJzxy0sOxOnRs8C3sQpSR92DOO4EDCXkAzoA935bPTy8AIgTBCIIyvyZsExF/uM2Byfk9A7VafuksfdyygFmJcc35NZ7tT5xUYMNwJYcI/FouGP7xOyT1YBOh+aVcsCHHBWCHZHLTxOfxF6ZA8HP82P7ASv4BJj5PMNMO/g3+H9ghqrtnGm4hIJLAd7byVxg5asGCA+AH2N2meYHvKPxZmQRIGtyMaOMweC/ZXJJJdJE0CF27Bm0oK8kWLKSWHxeILB8s7xN8gmxFi0VIFAkNqd5KiI3S7JBqJ7Ssycb70vAL2LAofMiE9hkBrQvX4OTXNLS4eGpwA8KlaxaGKHOy4OWWcSVoXSZz9ohYYLaxpB8bv4V2aFGeFiYOvqTb74V2mHkQ8IXjBKhMuKrMJIoLOQlmVGIiIlyPmXdguwJ6d8J/CZ1H0m4iB1Gr4D569HjCZalPaNoxeWtd5jKf4TRkpy30syh3KbLXPVZsWdIIQUK6dO8Jl+dkbUB6GfRranwIWx3hUzeVi5fRmggtDA6b/dWO3ELkLiF4QldqoXOPxhe8QOjt57LUpXhguGUhtEUFUtq9EBzUQluQWrphIV1oA1JLm0R6VFqh0z21eH30XmjFdofbF14dgC5PG1zS0w9pjuYFF2UYL9KHiXJGYhhXJkwLEk1RvrEMZVWmpgvSVC1XtEtNlYOAL1JYrdESOg3lcGtFQsVGs+Nu++msHdiu0BNEQQ5vYKssIWxQx3JNc1AqnbTFmg3qSoKmYz0mb//S7QDU1k5Vdu+VSnUFyA3aBES1ca9zkqb4PPVQUUVG74OVRfUNSqencXh+UR1sUnfqgy6+qLrVn75QThRt0I26VG0FU4dbRNfE1ULpqVVBIZBTN/kJ0PBDxY6QEbpp5v27JFCxI5xm1k3oIxT+Q+Wowgl93dIJhHzqVrW5erd0QrdIxUE8wFXxcL9IBXSlSRcLuSnq3NR+OZBq4ZWD1FXr8sn9wivVEjcPwtVuKtd6XOKmWUzoQeY/dCczHBcTKpZtnr2QB104gN70ukm+QNaHzBJV7DhbIAt/040ERMMXnbUDAwOtgvZVsUo0KaCi9Omib/SCqleKhE7KSsNIIt7IkFXoi40MSBrNO28X+ooHOKxWqPpuoVHRh7FDo3+pyHsorOZyG5R0w5kPUZmJffYFIrLhTLi1DzFJT0X+aWaZ3JGtfcJNlCvesTOuIpAcLBrdRIms5g4s+jFlM0PFPYY6ul1VtDG4PJzwqQHnGGpKKlA1fVKN0VqxX31Tx1DjOTBXaRFvs3vaWdkniPIEF3hdGgEmxpev0VpeHNf8ZuiROMBhet0hMch9qkogR2wXbeSojHI22jd5ifp1cLbY9dHB8NWhJCbOgkYzBxpFzxH3wu74F++ro8ckWsM7a5l7/IuzVnAxJX1MojGQ3shHslKCPPimY+b+jYfmU0qONPIOj5rzK9lDi33OyQttVpEaglXXMFoabQVmqny3QxaBW4opM3o4CtwDJazWGZtAUMi12ONkAtGMrNGS/1QI5yb+CxciLmc8EwoDKEokefK6CBKPRf47Mj/MEIujvv+MzA/6kKQLCR7y18q5Y8AjiWryrR1T9uwp/RqJ3YUdGWBxYUeR2RzN7gThn6ifCrtLaA7X/dwG4xtusvg+24uVihzKtr/Cqrh7OFPdcVlYcXItmyHS7x67ROwyxxTceAHegqsLHVOQ4WLH00sdE5DhUsev2IbaznR95gKrCnDGi0oXDOmTRrmvhP3i712+u+LvXXO84u9dKL2Cf3V33X7+i6u7N/y5S9IdvOvoF0G/19GP9tfR/wPQ21eEI8clLwAAAABJRU5ErkJggg==",Be=$({name:"UserAvatar",data(){return{defaultAvatar:Ke}},computed:{user(){return this.$store.getters?.user}}}),Pe=["src"];function Qe(e,o,E,w,k,S){return r(),h("img",{src:e.user?.avatar||e.defaultAvatar,class:"avatar"},null,8,Pe)}const ze=b(Be,[["render",Qe],["__scopeId","data-v-04402928"]]),qe=$({name:"ThemeSelector",components:{ArrowDown:se,ElDropdown:G,ElDropdownMenu:F,ElDropdownItem:V,ElIcon:te},data(){return{theme:"light"}},computed:{currentLabel(){return this.theme==="dark"?this.$t("common.theme.dark"):this.$t("common.theme.light")}},mounted(){this.theme=this.loadFromCookie(),this.applyTheme()},methods:{onSelect(e){this.theme=e,this.applyTheme()},applyTheme(){oe("THEME",this.theme,{path:"/",domain:ie()}),this.theme==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")},loadFromCookie(){return ee("THEME")==="dark"?"dark":"light"}}}),je={class:"el-dropdown-link"};function Ze(e,o,E,w,k,S){const d=s("arrow-down"),c=s("el-icon"),u=s("el-dropdown-item"),m=s("el-dropdown-menu"),p=s("el-dropdown");return r(),v(p,{trigger:"click",onCommand:e.onSelect},{dropdown:i(()=>[t(m,null,{default:i(()=>[t(u,{command:"light"},{default:i(()=>[f(l(e.$t("common.theme.light")),1)]),_:1}),t(u,{command:"dark"},{default:i(()=>[f(l(e.$t("common.theme.dark")),1)]),_:1})]),_:1})]),default:i(()=>[a("span",je,[f(l(e.currentLabel)+" ",1),t(c,{class:"el-icon--right"},{default:i(()=>[t(d)]),_:1})])]),_:1},8,["onCommand"])}const We=b(qe,[["render",Ze]]),xe=$({name:"Locale",components:{ElDropdown:G,ElDropdownMenu:F,ElDropdownItem:V,ElIcon:te,ArrowDown:se},data(){return{locales:ue}},computed:{value(){return this.$i18n.locale},currentLabel(){const e=this.locales.find(o=>o.value===this.value);return e?e.label:this.value}},methods:{async onSelectLocale(e){this.$router.push({query:{...this.$route.query,locale:void 0}}),await me(e),oe("LOCALE",e,{path:"/",domain:ie()})}}}),et={class:"el-dropdown-link"};function tt(e,o,E,w,k,S){const d=s("arrow-down"),c=s("el-icon"),u=s("el-dropdown-item"),m=s("el-dropdown-menu"),p=s("el-dropdown");return r(),v(p,{trigger:"click",onCommand:e.onSelectLocale},{dropdown:i(()=>[t(m,null,{default:i(()=>[(r(!0),h(y,null,A(e.locales,(g,n)=>(r(),v(u,{key:n,command:g.value},{default:i(()=>[f(l(g.label),1)]),_:2},1032,["command"]))),128))]),_:1})]),default:i(()=>[a("span",et,[f(l(e.currentLabel)+" ",1),t(c,{class:"el-icon--right"},{default:i(()=>[t(d)]),_:1})])]),_:1},8,["onCommand"])}const st=b(xe,[["render",tt]]),ot=$({name:"GeneralSettings",components:{ThemeSwitcher:We,LocaleSwitcher:st}}),it={class:"flex justify-between items-center mb-4"},nt={class:"block mb-2 text-sm"},at={class:"flex justify-between items-center mb-4"},lt={class:"block mb-2 text-sm"};function rt(e,o,E,w,k,S){const d=s("theme-switcher"),c=s("locale-switcher");return r(),h(y,null,[a("div",it,[a("label",nt,l(e.$t("common.settings.theme")),1),t(d)]),a("div",at,[a("label",lt,l(e.$t("common.settings.language")),1),t(c)])],64)}const dt=b(ot,[["render",rt]]),ct=$({name:"SiteIndex",components:{EditText:N,EditImage:re,EditArray:le,ElDivider:de,ElImage:H,ElForm:R,ElFormItem:U},data(){return{editing:{title:!1}}},computed:{site(){return this.$store.getters.site}},methods:{onSave(e){const o={...this.site,...e};C.update(this.site?.id,o).then(()=>{console.debug("getSite for id",this.site?.id),this.$store.dispatch("getSite")})}}}),mt={class:"block w-full"},ut={class:"block tip"},pt={class:"block w-full"},ht={class:"block tip"},ft={class:"block w-full"},_t={class:"block tip"},gt={class:"block w-full"},vt={class:"block tip"},$t={class:"block w-full"},bt={class:"block tip"};function Et(e,o,E,w,k,S){const d=s("el-form-item"),c=s("edit-text"),u=s("el-image"),m=s("edit-image"),p=s("el-divider"),g=s("edit-array"),n=s("el-form");return r(),v(n,{model:e.site,class:"form","label-width":"auto",style:{"max-width":"600px"}},{default:i(()=>[t(d,{label:e.$t("site.field.origin")},{default:i(()=>[a("span",mt,l(e.site.origin),1),a("span",ut,l(e.$t("site.message.originTip")),1)]),_:1},8,["label"]),t(d,{label:e.$t("site.field.title")},{default:i(()=>[a("span",pt,[f(l(e.site.title)+" ",1),t(c,{"model-value":e.site.title,title:e.$t("site.title.editTitle"),placeholder:e.$t("site.placeholder.title"),onConfirm:o[0]||(o[0]=_=>e.onSave({title:_}))},null,8,["model-value","title","placeholder"])]),a("span",ht,l(e.$t("site.message.titleTip")),1)]),_:1},8,["label"]),t(d,{label:e.$t("site.field.logo")},{default:i(()=>[a("span",ft,[t(u,{src:e.site.logo,class:"logo"},null,8,["src"]),t(m,{"model-value":e.site.logo,title:e.$t("site.title.editLogo"),tip:e.$t("site.message.editLogoTip"),onConfirm:o[1]||(o[1]=_=>e.onSave({logo:_}))},null,8,["model-value","title","tip"])]),a("span",_t,l(e.$t("site.message.logoTip")),1)]),_:1},8,["label"]),t(d,{label:e.$t("site.field.favicon")},{default:i(()=>[a("span",gt,[t(u,{src:e.site.favicon,class:"favicon"},null,8,["src"]),t(m,{"model-value":e.site.favicon,title:e.$t("site.title.editFavicon"),tip:e.$t("site.message.editFaviconTip"),onConfirm:o[2]||(o[2]=_=>e.onSave({favicon:_}))},null,8,["model-value","title","tip"])]),a("span",vt,l(e.$t("site.message.faviconTip")),1)]),_:1},8,["label"]),t(p,{"border-style":"dashed"}),t(d,{label:e.$t("site.field.admins")},{default:i(()=>[a("span",$t,[f(l(e.site.admins?.join(", "))+" ",1),t(g,{"model-value":e.site?.admins||[],title:e.$t("site.title.editAdmins"),placeholder:e.$t("site.placeholder.admins"),tip:e.$t("site.message.adminsTip2"),min:1,"min-error-message":e.$t("site.message.atLeastOneAdmin"),onConfirm:o[3]||(o[3]=_=>e.onSave({admins:_}))},null,8,["model-value","title","placeholder","tip","min-error-message"])]),a("span",bt,l(e.$t("site.message.adminsTip")),1)]),_:1},8,["label"])]),_:1},8,["model"])}const wt=b(ct,[["render",Et],["__scopeId","data-v-792f0f1e"]]),kt=$({name:"SettingSeo",components:{EditText:N,EditArray:le,ElForm:R,ElFormItem:U},data(){return{editing:{title:!1}}},computed:{site(){return this.$store.getters.site}},methods:{onSave(e){const o={...this.site,...e};C.update(this.site?.id,o).then(()=>{console.debug("getSite for id",this.site?.id),this.$store.dispatch("getSite")})}}}),St={class:"block w-full"},Tt={class:"block tip"},It={class:"block w-full"},Ot={class:"block tip"};function yt(e,o,E,w,k,S){const d=s("edit-text"),c=s("el-form-item"),u=s("edit-array"),m=s("el-form");return r(),v(m,{model:e.site,class:"form","label-width":"auto",style:{"max-width":"600px"}},{default:i(()=>[t(c,{label:e.$t("site.field.description")},{default:i(()=>[a("span",St,[f(l(e.site.description)+" ",1),t(d,{"model-value":e.site.description,title:e.$t("site.title.editDescription"),placeholder:e.$t("site.placeholder.description"),onConfirm:o[0]||(o[0]=p=>e.onSave({description:p}))},null,8,["model-value","title","placeholder"])]),a("span",Tt,l(e.$t("site.message.descriptionTip")),1)]),_:1},8,["label"]),t(c,{label:e.$t("site.field.keywords")},{default:i(()=>[a("span",It,[f(l(e.site.keywords?.join(", "))+" ",1),t(u,{"model-value":e.site?.keywords||[],title:e.$t("site.title.editKeywords"),placeholder:e.$t("site.placeholder.keywords"),tip:e.$t("site.message.keywordsTip2"),onConfirm:o[1]||(o[1]=p=>e.onSave({keywords:p}))},null,8,["model-value","title","placeholder","tip"])]),a("span",Ot,l(e.$t("site.message.keywordsTip")),1)]),_:1},8,["label"])]),_:1},8,["model"])}const At=b(kt,[["render",yt],["__scopeId","data-v-c655c957"]]),Ct=$({name:"SiteIndex",components:{EditText:N,ElForm:R,ElFormItem:U},data(){return{editing:{title:!1}}},computed:{site(){return this.$store.getters.site}},methods:{onSave(e){const o={...this.site,...e};C.update(this.site?.id,o).then(()=>{console.debug("getSite for id",this.site?.id),this.$store.dispatch("getSite")})}}}),Nt={class:"block tip"},Ut={class:"block tip"};function Rt(e,o,E,w,k,S){const d=s("edit-text"),c=s("el-form-item"),u=s("el-form");return r(),v(u,{model:e.site,class:"form","label-width":"auto",style:{"max-width":"600px"}},{default:i(()=>[t(c,{label:e.$t("site.field.distributionDefaultInviterId")},{default:i(()=>[f(l(e.site.distribution?.default_inviter_id)+" ",1),t(d,{"model-value":e.site.distribution?.default_inviter_id,title:e.$t("site.title.editDistributionDefaultInviterId"),placeholder:e.$t("site.placeholder.editDistributionDefaultInviterId"),onConfirm:o[0]||(o[0]=m=>e.onSave({distribution:{...e.site.distribution,default_inviter_id:m}}))},null,8,["model-value","title","placeholder"]),a("span",Nt,l(e.$t("site.message.distributionDefaultInviterIdTip")),1)]),_:1},8,["label"]),t(c,{label:e.$t("site.field.distributionForceInviterId")},{default:i(()=>[f(l(e.site.distribution?.force_inviter_id)+" ",1),t(d,{"model-value":e.site.distribution?.force_inviter_id,title:e.$t("site.title.editDistributionForceInviterId"),placeholder:e.$t("site.placeholder.editDistributionForceInviterId"),onConfirm:o[1]||(o[1]=m=>e.onSave({distribution:{...e.site.distribution,force_inviter_id:m}}))},null,8,["model-value","title","placeholder"]),a("span",Ut,l(e.$t("site.message.distributionForceInviterIdTip")),1)]),_:1},8,["label"])]),_:1},8,["model"])}const Lt=b(Ct,[["render",Rt],["__scopeId","data-v-b0c15dee"]]),Dt=$({name:"SiteIndex",components:{EditText:N,EditImage:re,ElImage:H,ElForm:R,ElSwitch:Ve,ElFormItem:U},data(){return{editing:{title:!1}}},computed:{site(){return this.$store.getters.site}},methods:{onSave(e){const o={...this.site,...e};C.update(this.site?.id,o).then(()=>{console.debug("getSite for id",this.site?.id),this.$store.dispatch("getSite")})}}}),Vt={class:"w-full"},Ft={class:"block tip w-full"},Gt={key:0},Ht={class:"block w-full"},Mt={class:"block w-full"};function Xt(e,o,E,w,k,S){const d=s("el-switch"),c=s("el-form-item"),u=s("el-image"),m=s("edit-image"),p=s("edit-text"),g=s("el-form");return r(),v(g,{model:e.site,class:"form","label-width":"auto",style:{"max-width":"600px"}},{default:i(()=>[(r(),h(y,null,A(["chatgpt","grok","deepseek","midjourney","qrart","suno","luma","pika","kling","veo","sora","pixverse","flux","hailuo","headshots","nanobanana"],(n,_)=>t(c,{key:_,label:e.$t("site.field.features"+n.charAt(0).toUpperCase()+n.slice(1))},{default:i(()=>[a("div",Vt,[t(d,{"model-value":e.site.features[n]?.enabled||!1,"inline-prompt":"","active-text":e.$t("site.button.enabled"),"inactive-text":e.$t("site.button.disabled"),"onUpdate:modelValue":T=>e.onSave({features:{...e.site.features,[n]:{...e.site.features[n],enabled:T}}})},null,8,["model-value","active-text","inactive-text","onUpdate:modelValue"])]),a("span",Ft,l(e.$t("site.message.features"+n.charAt(0).toUpperCase()+n.slice(1))),1),n==="support"?L((r(),h("div",Gt,[t(c,{label:"WeChat"},{default:i(()=>[t(d,{"model-value":e.site.features[n]?.wechat?.enabled||!1,"inline-prompt":"","active-text":e.$t("site.button.enabled"),"inactive-text":e.$t("site.button.disabled"),"onUpdate:modelValue":T=>e.onSave({features:{...e.site.features,[n]:{...e.site.features[n],wechat:{...e.site.features[n]?.wechat,enabled:T}}}})},null,8,["model-value","active-text","inactive-text","onUpdate:modelValue"])]),_:2},1024),L(t(c,{label:e.$t("site.field.qr")},{default:i(()=>[a("span",Ht,[t(u,{src:e.site.features[n]?.wechat?.qr},null,8,["src"]),t(m,{"model-value":e.site.features[n]?.wechat?.qr,title:e.$t("site.title.editQR"),tip:e.$t("site.message.editQRTip"),onConfirm:T=>e.onSave({features:{...e.site.features,[n]:{...e.site.features[n],wechat:{...e.site.features[n]?.wechat,qr:T}}}})},null,8,["model-value","title","tip","onConfirm"])])]),_:2},1032,["label"]),[[D,e.site.features[n]?.wechat?.enabled]]),t(c,{label:"Discord"},{default:i(()=>[t(d,{"model-value":e.site.features[n]?.discord?.enabled||!1,"inline-prompt":"","active-text":e.$t("site.button.enabled"),"inactive-text":e.$t("site.button.disabled"),"onUpdate:modelValue":T=>e.onSave({features:{...e.site.features,[n]:{...e.site.features[n],discord:{...e.site.features[n]?.discord,enabled:T}}}})},null,8,["model-value","active-text","inactive-text","onUpdate:modelValue"])]),_:2},1024),L(t(c,{label:e.$t("site.field.url")},{default:i(()=>[a("span",Mt,[f(l(e.site.features[n]?.discord?.url)+" ",1),t(p,{"model-value":e.site.features[n]?.discord?.url,title:e.$t("site.title.editUrl"),placeholder:e.$t("site.placeholder.editUrl"),onConfirm:T=>e.onSave({features:{...e.site.features,[n]:{...e.site.features[n],discord:{...e.site.features[n]?.discord,url:T}}}})},null,8,["model-value","title","placeholder","onConfirm"])])]),_:2},1032,["label"]),[[D,e.site.features[n]?.discord?.enabled]])],512)),[[D,e.site.features[n]?.enabled]]):O("",!0)]),_:2},1032,["label"])),64))]),_:1},8,["model"])}const Jt=b(Dt,[["render",Xt],["__scopeId","data-v-beed05a8"]]),Yt=$({name:"UserSetting",components:{ElDialog:pe,ElMenu:Ge,ElMenuItem:Fe,FontAwesomeIcon:ae,GeneralSetting:dt,SiteSetting:wt,SeoSetting:At,DistributionSetting:Lt,FunctionSetting:Jt},props:{visible:{type:Boolean,default:!1}},emits:["update:visible"],data(){return{activeTab:"general",showSuggestions:!0}},computed:{navItems(){return[{key:"general",label:this.$t("common.settings.general"),icon:he,visible:!0},{key:"site",label:this.$t("common.settings.site"),icon:fe,visible:this.isSiteAdmin},{key:"seo",label:this.$t("common.settings.seo"),icon:_e,visible:this.isSiteAdmin},{key:"distribution",label:this.$t("common.settings.distribution"),icon:ge,visible:this.isSiteAdmin},{key:"function",label:this.$t("common.settings.function"),icon:ve,visible:this.isSiteAdmin}]},currentTabTitle(){console.debug("activeTab",this.activeTab);const e=this.navItems.find(o=>o.key===this.activeTab);return e?e.label:""},isSiteAdmin(){return!!this.$store?.state?.site?.admins?.includes(this.$store.getters.user?.id)}},methods:{onClose(){this.$emit("update:visible",!1)}}}),Kt={class:"flex settings h-[450px]"},Bt={class:"h-full border-r"},Pt={class:"flex-1 p-6 overflow-y-auto"},Qt={key:0},zt={key:1},qt={key:2},jt={key:3},Zt={key:4};function Wt(e,o,E,w,k,S){const d=s("font-awesome-icon"),c=s("el-menu-item"),u=s("el-menu"),m=s("general-setting"),p=s("site-setting"),g=s("seo-setting"),n=s("distribution-setting"),_=s("function-setting"),T=s("el-dialog");return r(),v(T,{class:"min-w-[450px]","model-value":e.visible,onClose:e.onClose},{default:i(()=>[a("div",Kt,[a("aside",Bt,[t(u,{class:"border-r-0"},{default:i(()=>[(r(!0),h(y,null,A(e.navItems,(I,ce)=>(r(),v(c,{key:ce,index:I.key,class:ne(["flex w-[160px] truncate items-center px-2 cursor-pointer py-2",e.activeTab===I.key?"active":"",I.visible?"":"hidden"]),onClick:ms=>e.activeTab=I.key},{default:i(()=>[t(d,{icon:I.icon,class:"mr-2"},null,8,["icon"]),f(" "+l(I.label),1)]),_:2},1032,["index","class","onClick"]))),128))]),_:1})]),a("main",Pt,[e.activeTab==="general"?(r(),h("div",Qt,[t(m)])):e.activeTab==="site"?(r(),h("div",zt,[t(p)])):e.activeTab==="seo"&&e.isSiteAdmin?(r(),h("div",qt,[t(g)])):e.activeTab==="distribution"&&e.isSiteAdmin?(r(),h("div",jt,[t(n)])):e.activeTab==="function"&&e.isSiteAdmin?(r(),h("div",Zt,[t(_)])):O("",!0)])])]),_:1},8,["model-value","onClose"])}const xt=b(Yt,[["render",Wt]]),es=$({name:"UserCenter",components:{UserAvatar:ze,UserSetting:xt,FontAwesomeIcon:ae,ElDivider:de,ElDropdownMenu:F,ElDropdownItem:V,ElDropdown:G},data(){return{showMenu:!1,showSetting:!1}},computed:{user(){return this.$store.getters?.user}},mounted(){document.addEventListener("click",this.closeMenu)},unmounted(){document.removeEventListener("click",this.closeMenu)},methods:{toggleMenu(){this.showMenu=!this.showMenu},closeMenu(e){const o=e.target;this.$el.contains(o)||(this.showMenu=!1)},async onLogout(){await this.$store.dispatch("logout")},onConsole(){this.$router.push({name:be})},onDistribution(){this.$router.push({name:$e})},onSettings(){this.showSetting=!0}}}),ts={class:"center"},ss={key:0,class:"px-4 py-4 text-sm font-medium"};function os(e,o,E,w,k,S){const d=s("user-avatar"),c=s("el-divider"),u=s("font-awesome-icon"),m=s("el-dropdown-item"),p=s("el-dropdown-menu"),g=s("el-dropdown"),n=s("user-setting");return r(),h(y,null,[a("div",ts,[t(g,{trigger:"click"},{dropdown:i(()=>[e.user.email?(r(),h("div",ss,l(e.user?.email),1)):O("",!0),e.user.email?(r(),v(c,{key:1,class:"mb-1 mt-1"})):O("",!0),t(p,null,{default:i(()=>[t(m,{class:"py-2",onClick:e.onSettings},{default:i(()=>[t(u,{icon:"fa-solid fa-cog",class:"mr-2"}),f(" "+l(e.$t("common.nav.setting")),1)]),_:1},8,["onClick"]),t(m,{class:"py-2",onClick:e.onDistribution},{default:i(()=>[t(u,{icon:"fa-solid fa-coins",class:"mr-2"}),f(" "+l(e.$t("common.nav.distribution")),1)]),_:1},8,["onClick"]),t(m,{class:"py-2",onClick:e.onConsole},{default:i(()=>[t(u,{icon:"fa-solid fa-compass",class:"mr-2"}),f(" "+l(e.$t("common.nav.console")),1)]),_:1},8,["onClick"]),t(m,{class:"py-2",onClick:e.onLogout},{default:i(()=>[t(u,{icon:"fa-solid fa-arrow-right-from-bracket",class:"mr-2"}),f(" "+l(e.$t("common.nav.logOut")),1)]),_:1},8,["onClick"])]),_:1})]),default:i(()=>[t(d,{class:"cursor-pointer"})]),_:1})]),t(n,{visible:e.showSetting,"onUpdate:visible":o[0]||(o[0]=_=>e.showSetting=_)},null,8,["visible"])],64)}const is=b(es,[["render",os]]),ns=$({name:"Navigator",components:{ElImage:H,Logo:Ye,ElTooltip:He,UserCenter:is},props:{direction:{type:String,default:"column"}},data(){return{operating:{dark:!1,locale:!1},activeIndex:this.$route.name}},computed:{links(){const e=[];return this.$store?.state?.site?.features?.chatgpt?.enabled&&e.push({route:{name:M},displayName:this.$t("common.nav.chatgpt"),logo:ke,routes:[we,M]}),this.$store?.state?.site?.features?.deepseek?.enabled&&e.push({route:{name:X},displayName:this.$t("common.nav.deepseek"),logo:Te,routes:[Se,X]}),this.$store?.state?.site?.features?.grok?.enabled&&e.push({route:{name:J},displayName:this.$t("common.nav.grok"),logo:Oe,routes:[Ie,J]}),this.$store?.state?.site?.features?.midjourney?.enabled&&e.push({route:{name:Y},displayName:this.$t("common.nav.midjourney"),logo:"https://cdn.acedata.cloud/wto43b.png",routes:[Y]}),this.$store?.state?.site?.features?.flux?.enabled&&e.push({route:{name:K},displayName:this.$t("common.nav.flux"),logo:"https://cdn.acedata.cloud/ogm2oa.png",routes:[K]}),this.$store?.state?.site?.features?.nanobanana?.enabled&&e.push({route:{name:B},displayName:this.$t("common.nav.nanobanana"),logo:"https://cdn.acedata.cloud/859plc.jpg",routes:[B]}),this.$store?.state?.site?.features?.suno?.enabled&&e.push({route:{name:P},displayName:this.$t("common.nav.suno"),logo:"https://cdn.acedata.cloud/l3ffw7.jpg",routes:[P,ye]}),this.$store?.state?.site?.features?.luma?.enabled&&e.push({route:{name:Q},displayName:this.$t("common.nav.luma"),logo:"https://cdn.acedata.cloud/ahjfwi.png",routes:[Q,Ae]}),this.$store?.state?.site?.features?.hailuo?.enabled&&e.push({route:{name:z},displayName:this.$t("common.nav.hailuo"),logo:"https://cdn.acedata.cloud/0qg4gp.png",routes:[z,Ce]}),this.$store?.state?.site?.features?.kling?.enabled&&e.push({route:{name:q},displayName:this.$t("common.nav.kling"),logo:"https://cdn.acedata.cloud/qpbbbb.jpg",routes:[q,Ne]}),this.$store?.state?.site?.features?.veo?.enabled&&e.push({route:{name:j},displayName:this.$t("common.nav.veo"),logo:"https://cdn.acedata.cloud/8nxyy9.jpg",routes:[j,Ue]}),this.$store?.state?.site?.features?.sora?.enabled&&e.push({route:{name:Z},displayName:this.$t("common.nav.sora"),logo:"https://cdn.acedata.cloud/z5id1u.png",routes:[Z,Re]}),this.$store?.state?.site?.features?.pixverse?.enabled&&e.push({route:{name:W},displayName:this.$t("common.nav.pixverse"),logo:"https://cdn.acedata.cloud/viy61r.jpg",routes:[W,Le]}),this.direction==="row"&&e.push({route:{name:x},displayName:this.$t("common.nav.profile"),icon:"fa-solid fa-user",routes:[x]}),e},authenticated(){return!!this.$store.state.token.access}},methods:{onHome(){this.$router.push({name:Ee})}}}),as=["direction"],ls={class:"top"},rs={class:"w-full flex justify-center brand"},ds={class:"bottom"};function cs(e,o,E,w,k,S){const d=s("logo"),c=s("el-image"),u=s("el-tooltip"),m=s("user-center");return r(),h("div",{direction:e.direction,class:"navigator"},[a("div",ls,[a("div",rs,[e.direction==="column"?(r(),v(d,{key:0,onClick:De(e.onHome,["stop"])},null,8,["onClick"])):O("",!0)]),(r(!0),h(y,null,A(e.links,(p,g)=>(r(),h("div",{key:g,class:ne({link:!0,active:p.routes.includes(e.$route.name)})},[t(u,{effect:"dark",content:p.displayName,placement:e.direction==="row"?"top":"right"},{default:i(()=>[p.logo?(r(),v(c,{key:0,src:p.logo,class:"avatar",onClick:n=>e.$router.push(p.route)},null,8,["src","onClick"])):O("",!0)]),_:2},1032,["content","placement"])],2))),128))]),a("div",ds,[t(m)])],8,as)}const ws=b(ns,[["render",cs],["__scopeId","data-v-19c30550"]]);export{ws as N};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{am as q,bL as J,_ as F,d as z,b4 as L,c as P,b as C,o as u,i as T,x as I,j as Q,bb as ae,e as a,E as ne,aq as ce,cc as te,as as re,a as A,ao as E,az as R,k as ie,F as se,v as le,n as _,aQ as ge,t as Y,cj as H,bM as pe,y as O,cS as de,cT as Z,cU as fe,cb as be,an as M,aN as ve,cV as me,bR as Pe,ap as Ce,bQ as he,bp as w,bV as ze,b8 as ye,b7 as Se,g as _e,h as Ne,l as ke}from"./index-BZbKTMK3.js";import{E as xe,a as Ee}from"./index-BNbrEyG8.js";import{m as oe}from"./typescript-CkR2OWnN.js";import{i as Te}from"./isEqual-DIgYivsv.js";import{E as $e}from"./index-DSYfQpVb.js";const ue=Symbol("elPaginationKey"),Me=q({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:J}}),Be={click:e=>e instanceof MouseEvent},we=z({name:"ElPaginationPrev"}),Ie=z({...we,props:Me,emits:Be,setup(e){const l=e,{t:r}=L(),c=P(()=>l.disabled||l.currentPage<=1);return(s,p)=>(u(),C("button",{type:"button",class:"btn-prev",disabled:a(c),"aria-label":s.prevText||a(r)("el.pagination.prev"),"aria-disabled":a(c),onClick:f=>s.$emit("click",f)},[s.prevText?(u(),C("span",{key:0},I(s.prevText),1)):(u(),T(a(ne),{key:1},{default:Q(()=>[(u(),T(ae(s.prevIcon)))]),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var qe=F(Ie,[["__file","prev.vue"]]);const Le=q({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:J}}),je=z({name:"ElPaginationNext"}),Ae=z({...je,props:Le,emits:["click"],setup(e){const l=e,{t:r}=L(),c=P(()=>l.disabled||l.currentPage===l.pageCount||l.pageCount===0);return(s,p)=>(u(),C("button",{type:"button",class:"btn-next",disabled:a(c),"aria-label":s.nextText||a(r)("el.pagination.next"),"aria-disabled":a(c),onClick:f=>s.$emit("click",f)},[s.nextText?(u(),C("span",{key:0},I(s.nextText),1)):(u(),T(a(ne),{key:1},{default:Q(()=>[(u(),T(ae(s.nextIcon)))]),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var Fe=F(Ae,[["__file","next.vue"]]);const X=()=>ce(ue,{}),Ke=q({pageSize:{type:Number,required:!0},pageSizes:{type:re(Array),default:()=>oe([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:te},appendSizeTo:String}),Ue=z({name:"ElPaginationSizes"}),Ve=z({...Ue,props:Ke,emits:["page-size-change"],setup(e,{emit:l}){const r=e,{t:c}=L(),s=A("pagination"),p=X(),f=E(r.pageSize);R(()=>r.pageSizes,(o,S)=>{if(!Te(o,S)&&ge(o)){const g=o.includes(r.pageSize)?r.pageSize:r.pageSizes[0];l("page-size-change",g)}}),R(()=>r.pageSize,o=>{f.value=o});const y=P(()=>r.pageSizes);function k(o){var S;o!==f.value&&(f.value=o,(S=p.handleSizeChange)==null||S.call(p,Number(o)))}return(o,S)=>(u(),C("span",{class:_(a(s).e("sizes"))},[ie(a(Ee),{"model-value":f.value,disabled:o.disabled,"popper-class":o.popperClass,size:o.size,teleported:o.teleported,"validate-event":!1,"append-to":o.appendSizeTo,onChange:k},{default:Q(()=>[(u(!0),C(se,null,le(a(y),g=>(u(),T(a(xe),{key:g,value:g,label:g+a(c)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","teleported","append-to"])],2))}});var De=F(Ve,[["__file","sizes.vue"]]);const We=q({size:{type:String,values:te}}),Oe=z({name:"ElPaginationJumper"}),He=z({...Oe,props:We,setup(e){const{t:l}=L(),r=A("pagination"),{pageCount:c,disabled:s,currentPage:p,changeEvent:f}=X(),y=E(),k=P(()=>{var g;return(g=y.value)!=null?g:p?.value});function o(g){y.value=g?+g:""}function S(g){g=Math.trunc(+g),f?.(g),y.value=void 0}return(g,K)=>(u(),C("span",{class:_(a(r).e("jump")),disabled:a(s)},[Y("span",{class:_([a(r).e("goto")])},I(a(l)("el.pagination.goto")),3),ie(a($e),{size:g.size,class:_([a(r).e("editor"),a(r).is("in-pagination")]),min:1,max:a(c),disabled:a(s),"model-value":a(k),"validate-event":!1,"aria-label":a(l)("el.pagination.page"),type:"number","onUpdate:modelValue":o,onChange:S},null,8,["size","class","max","disabled","model-value","aria-label"]),Y("span",{class:_([a(r).e("classifier")])},I(a(l)("el.pagination.pageClassifier")),3)],10,["disabled"]))}});var Je=F(He,[["__file","jumper.vue"]]);const Re=q({total:{type:Number,default:1e3}}),Ge=z({name:"ElPaginationTotal"}),Qe=z({...Ge,props:Re,setup(e){const{t:l}=L(),r=A("pagination"),{disabled:c}=X();return(s,p)=>(u(),C("span",{class:_(a(r).e("total")),disabled:a(c)},I(a(l)("el.pagination.total",{total:s.total})),11,["disabled"]))}});var Xe=F(Qe,[["__file","total.vue"]]);const Ye=q({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),Ze=z({name:"ElPaginationPager"}),ea=z({...Ze,props:Ye,emits:[H],setup(e,{emit:l}){const r=e,c=A("pager"),s=A("icon"),{t:p}=L(),f=E(!1),y=E(!1),k=E(!1),o=E(!1),S=E(!1),g=E(!1),K=P(()=>{const i=r.pagerCount,n=(i-1)/2,t=Number(r.currentPage),b=Number(r.pageCount);let v=!1,$=!1;b>i&&(t>i-n&&(v=!0),t<b-n&&($=!0));const B=[];if(v&&!$){const h=b-(i-2);for(let N=h;N<b;N++)B.push(N)}else if(!v&&$)for(let h=2;h<i;h++)B.push(h);else if(v&&$){const h=Math.floor(i/2)-1;for(let N=t-h;N<=t+h;N++)B.push(N)}else for(let h=2;h<b;h++)B.push(h);return B}),j=P(()=>["more","btn-quickprev",s.b(),c.is("disabled",r.disabled)]),x=P(()=>["more","btn-quicknext",s.b(),c.is("disabled",r.disabled)]),d=P(()=>r.disabled?-1:0);pe(()=>{const i=(r.pagerCount-1)/2;f.value=!1,y.value=!1,r.pageCount>r.pagerCount&&(r.currentPage>r.pagerCount-i&&(f.value=!0),r.currentPage<r.pageCount-i&&(y.value=!0))});function U(i=!1){r.disabled||(i?k.value=!0:o.value=!0)}function D(i=!1){i?S.value=!0:g.value=!0}function G(i){const n=i.target;if(n.tagName.toLowerCase()==="li"&&Array.from(n.classList).includes("number")){const t=Number(n.textContent);t!==r.currentPage&&l(H,t)}else n.tagName.toLowerCase()==="li"&&Array.from(n.classList).includes("more")&&W(i)}function W(i){const n=i.target;if(n.tagName.toLowerCase()==="ul"||r.disabled)return;let t=Number(n.textContent);const b=r.pageCount,v=r.currentPage,$=r.pagerCount-2;n.className.includes("more")&&(n.className.includes("quickprev")?t=v-$:n.className.includes("quicknext")&&(t=v+$)),Number.isNaN(+t)||(t<1&&(t=1),t>b&&(t=b)),t!==v&&l(H,t)}return(i,n)=>(u(),C("ul",{class:_(a(c).b()),onClick:W,onKeyup:be(G,["enter"])},[i.pageCount>0?(u(),C("li",{key:0,class:_([[a(c).is("active",i.currentPage===1),a(c).is("disabled",i.disabled)],"number"]),"aria-current":i.currentPage===1,"aria-label":a(p)("el.pagination.currentPage",{pager:1}),tabindex:a(d)}," 1 ",10,["aria-current","aria-label","tabindex"])):O("v-if",!0),f.value?(u(),C("li",{key:1,class:_(a(j)),tabindex:a(d),"aria-label":a(p)("el.pagination.prevPages",{pager:i.pagerCount-2}),onMouseenter:t=>U(!0),onMouseleave:t=>k.value=!1,onFocus:t=>D(!0),onBlur:t=>S.value=!1},[(k.value||S.value)&&!i.disabled?(u(),T(a(de),{key:0})):(u(),T(a(Z),{key:1}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):O("v-if",!0),(u(!0),C(se,null,le(a(K),t=>(u(),C("li",{key:t,class:_([[a(c).is("active",i.currentPage===t),a(c).is("disabled",i.disabled)],"number"]),"aria-current":i.currentPage===t,"aria-label":a(p)("el.pagination.currentPage",{pager:t}),tabindex:a(d)},I(t),11,["aria-current","aria-label","tabindex"]))),128)),y.value?(u(),C("li",{key:2,class:_(a(x)),tabindex:a(d),"aria-label":a(p)("el.pagination.nextPages",{pager:i.pagerCount-2}),onMouseenter:t=>U(),onMouseleave:t=>o.value=!1,onFocus:t=>D(),onBlur:t=>g.value=!1},[(o.value||g.value)&&!i.disabled?(u(),T(a(fe),{key:0})):(u(),T(a(Z),{key:1}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):O("v-if",!0),i.pageCount>1?(u(),C("li",{key:3,class:_([[a(c).is("active",i.currentPage===i.pageCount),a(c).is("disabled",i.disabled)],"number"]),"aria-current":i.currentPage===i.pageCount,"aria-label":a(p)("el.pagination.currentPage",{pager:i.pageCount}),tabindex:a(d)},I(i.pageCount),11,["aria-current","aria-label","tabindex"])):O("v-if",!0)],42,["onKeyup"]))}});var aa=F(ea,[["__file","pager.vue"]]);const m=e=>typeof e!="number",na=q({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>M(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:re(Array),default:()=>oe([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:J,default:()=>Se},nextText:{type:String,default:""},nextIcon:{type:J,default:()=>ye},teleported:{type:Boolean,default:!0},small:Boolean,size:ze,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean,appendSizeTo:String}),ta={"update:current-page":e=>M(e),"update:page-size":e=>M(e),"size-change":e=>M(e),change:(e,l)=>M(e)&&M(l),"current-change":e=>M(e),"prev-click":e=>M(e),"next-click":e=>M(e)},ee="ElPagination";var ra=z({name:ee,props:na,emits:ta,setup(e,{emit:l,slots:r}){const{t:c}=L(),s=A("pagination"),p=ve().vnode.props||{},f=me(),y=P(()=>{var n;return e.small?"small":(n=e.size)!=null?n:f.value});Pe({from:"small",replacement:"size",version:"3.0.0",scope:"el-pagination",ref:"https://element-plus.org/zh-CN/component/pagination.html"},P(()=>!!e.small));const k="onUpdate:currentPage"in p||"onUpdate:current-page"in p||"onCurrentChange"in p,o="onUpdate:pageSize"in p||"onUpdate:page-size"in p||"onSizeChange"in p,S=P(()=>{if(m(e.total)&&m(e.pageCount)||!m(e.currentPage)&&!k)return!1;if(e.layout.includes("sizes")){if(m(e.pageCount)){if(!m(e.total)&&!m(e.pageSize)&&!o)return!1}else if(!o)return!1}return!0}),g=E(m(e.defaultPageSize)?10:e.defaultPageSize),K=E(m(e.defaultCurrentPage)?1:e.defaultCurrentPage),j=P({get(){return m(e.pageSize)?g.value:e.pageSize},set(n){m(e.pageSize)&&(g.value=n),o&&(l("update:page-size",n),l("size-change",n))}}),x=P(()=>{let n=0;return m(e.pageCount)?m(e.total)||(n=Math.max(1,Math.ceil(e.total/j.value))):n=e.pageCount,n}),d=P({get(){return m(e.currentPage)?K.value:e.currentPage},set(n){let t=n;n<1?t=1:n>x.value&&(t=x.value),m(e.currentPage)&&(K.value=t),k&&(l("update:current-page",t),l("current-change",t))}});R(x,n=>{d.value>n&&(d.value=n)}),R([d,j],n=>{l(H,...n)},{flush:"post"});function U(n){d.value=n}function D(n){j.value=n;const t=x.value;d.value>t&&(d.value=t)}function G(){e.disabled||(d.value-=1,l("prev-click",d.value))}function W(){e.disabled||(d.value+=1,l("next-click",d.value))}function i(n,t){n&&(n.props||(n.props={}),n.props.class=[n.props.class,t].join(" "))}return Ce(ue,{pageCount:x,disabled:P(()=>e.disabled),currentPage:d,changeEvent:U,handleSizeChange:D}),()=>{var n,t;if(!S.value)return he(ee,c("el.pagination.deprecationWarning")),null;if(!e.layout||e.hideOnSinglePage&&x.value<=1)return null;const b=[],v=[],$=w("div",{class:s.e("rightwrapper")},v),B={prev:w(qe,{disabled:e.disabled,currentPage:d.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:G}),jumper:w(Je,{size:y.value}),pager:w(aa,{currentPage:d.value,pageCount:x.value,pagerCount:e.pagerCount,onChange:U,disabled:e.disabled}),next:w(Fe,{disabled:e.disabled,currentPage:d.value,pageCount:x.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:W}),sizes:w(De,{pageSize:j.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,teleported:e.teleported,size:y.value,appendSizeTo:e.appendSizeTo}),slot:(t=(n=r?.default)==null?void 0:n.call(r))!=null?t:null,total:w(Xe,{total:m(e.total)?0:e.total})},h=e.layout.split(",").map(V=>V.trim());let N=!1;return h.forEach(V=>{if(V==="->"){N=!0;return}N?v.push(B[V]):b.push(B[V])}),i(b[0],s.is("first")),i(b[b.length-1],s.is("last")),N&&v.length>0&&(i(v[0],s.is("first")),i(v[v.length-1],s.is("last")),b.push($)),w("div",{class:[s.b(),s.is("background",e.background),s.m(y.value)]},b)}}});const ia=_e(ra),sa=z({name:"Pagination",components:{ElPagination:ia},props:{total:{type:Number,required:!1,default:void 0},currentPage:{type:Number,required:!0},pageSize:{type:Number,required:!0}},emits:["change"],data(){return{loaded:!1}},mounted(){setTimeout(()=>{this.loaded=!0},1e3)},methods:{onPageChange(e){this.loaded&&this.$emit("change",e)}}});function la(e,l,r,c,s,p){const f=ke("el-pagination");return u(),T(f,{class:"mt-3 mb-3",background:"","hide-on-single-page":!1,layout:"prev, pager, next","current-page":e.currentPage,total:e.total,"page-size":e.pageSize,onCurrentChange:e.onPageChange},null,8,["current-page","total","page-size","onCurrentChange"])}const da=Ne(sa,[["render",la]]);export{da as P};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as T,k as F,a as j,g as C,s as G,b as N,d as K,e as E,f as R,h as p,i as B,n as u,j as v,l as Y,m as W,o as q,S as H,p as J}from"./_initCloneObject-DL2KWEpg.js";import{c0 as $,b_ as x,b0 as Q,bY as V,cF as X}from"./index-BZbKTMK3.js";import{a as Z}from"./index-CZi_rDaW.js";function z(r,e){for(var n=-1,o=r==null?0:r.length;++n<o&&e(r[n],n,r)!==!1;);return r}function k(r,e){return r&&T(e,F(e),r)}function rr(r,e){return r&&T(e,j(e),r)}function er(r,e){return T(r,C(r),e)}var tr=Object.getOwnPropertySymbols,L=tr?function(r){for(var e=[];r;)Z(e,C(r)),r=N(r);return e}:G;function nr(r,e){return T(r,L(r),e)}function ar(r){return K(r,j,L)}var or=Object.prototype,sr=or.hasOwnProperty;function cr(r){var e=r.length,n=new r.constructor(e);return e&&typeof r[0]=="string"&&sr.call(r,"index")&&(n.index=r.index,n.input=r.input),n}function ir(r,e){var n=e?E(r.buffer):r.buffer;return new r.constructor(n,r.byteOffset,r.byteLength)}var fr=/\w*$/;function br(r){var e=new r.constructor(r.source,fr.exec(r));return e.lastIndex=r.lastIndex,e}var O=$?$.prototype:void 0,w=O?O.valueOf:void 0;function gr(r){return w?Object(w.call(r)):{}}var yr="[object Boolean]",ur="[object Date]",Tr="[object Map]",lr="[object Number]",jr="[object RegExp]",pr="[object Set]",Ar="[object String]",dr="[object Symbol]",mr="[object ArrayBuffer]",Sr="[object DataView]",$r="[object Float32Array]",Or="[object Float64Array]",wr="[object Int8Array]",Ir="[object Int16Array]",hr="[object Int32Array]",Fr="[object Uint8Array]",Cr="[object Uint8ClampedArray]",Er="[object Uint16Array]",Br="[object Uint32Array]";function xr(r,e,n){var o=r.constructor;switch(e){case mr:return E(r);case yr:case ur:return new o(+r);case Sr:return ir(r,n);case $r:case Or:case wr:case Ir:case hr:case Fr:case Cr:case Er:case Br:return R(r,n);case Tr:return new o;case lr:case Ar:return new o(r);case jr:return br(r);case pr:return new o;case dr:return gr(r)}}var Lr="[object Map]";function Mr(r){return x(r)&&p(r)==Lr}var I=u&&u.isMap,Ur=I?B(I):Mr,Pr="[object Set]";function _r(r){return x(r)&&p(r)==Pr}var h=u&&u.isSet,Dr=h?B(h):_r,Gr=1,Nr=2,Kr=4,M="[object Arguments]",Rr="[object Array]",vr="[object Boolean]",Yr="[object Date]",Wr="[object Error]",U="[object Function]",qr="[object GeneratorFunction]",Hr="[object Map]",Jr="[object Number]",P="[object Object]",Qr="[object RegExp]",Vr="[object Set]",Xr="[object String]",Zr="[object Symbol]",zr="[object WeakMap]",kr="[object ArrayBuffer]",re="[object DataView]",ee="[object Float32Array]",te="[object Float64Array]",ne="[object Int8Array]",ae="[object Int16Array]",oe="[object Int32Array]",se="[object Uint8Array]",ce="[object Uint8ClampedArray]",ie="[object Uint16Array]",fe="[object Uint32Array]",t={};t[M]=t[Rr]=t[kr]=t[re]=t[vr]=t[Yr]=t[ee]=t[te]=t[ne]=t[ae]=t[oe]=t[Hr]=t[Jr]=t[P]=t[Qr]=t[Vr]=t[Xr]=t[Zr]=t[se]=t[ce]=t[ie]=t[fe]=!0;t[Wr]=t[U]=t[zr]=!1;function l(r,e,n,o,b,s){var a,g=e&Gr,y=e&Nr,_=e&Kr;if(n&&(a=b?n(r,o,b,s):n(r)),a!==void 0)return a;if(!Q(r))return r;var A=V(r);if(A){if(a=cr(r),!g)return v(r,a)}else{var f=p(r),d=f==U||f==qr;if(Y(r))return W(r,g);if(f==P||f==M||d&&!b){if(a=y||d?{}:q(r),!g)return y?nr(r,rr(a,r)):er(r,k(a,r))}else{if(!t[f])return b?r:{};a=xr(r,f,g)}}s||(s=new H);var m=s.get(r);if(m)return m;s.set(r,a),Dr(r)?r.forEach(function(c){a.add(l(c,e,n,c,r,s))}):Ur(r)&&r.forEach(function(c,i){a.set(i,l(c,e,n,i,r,s))});var D=_?y?ar:J:y?j:F,S=A?void 0:D(r);return z(S||r,function(c,i){S&&(i=c,c=r[i]),X(a,i,l(c,e,n,i,r,s))}),a}export{l as b,ar as g};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{cG as v,c7 as f,b0 as k,cH as J,cF as Z,cI as Q,b_ as X,b$ as w,cJ as ee,c3 as te,bY as D,cK as A,cL as y,cM as re,cN as g}from"./index-BZbKTMK3.js";import{i as V,b as ae,a as ne}from"./index-CZi_rDaW.js";var T=v(f,"WeakMap"),O=Object.create,oe=function(){function e(){}return function(r){if(!k(r))return{};if(O)return O(r);e.prototype=r;var t=new e;return e.prototype=void 0,t}}();function jt(e,r){var t=-1,a=e.length;for(r||(r=Array(a));++t<a;)r[t]=e[t];return r}function mt(e,r,t,a){var i=!t;t||(t={});for(var s=-1,u=r.length;++s<u;){var c=r[s],p=void 0;p===void 0&&(p=e[c]),i?J(t,c,p):Z(t,c,p)}return t}function N(e){return e!=null&&V(e.length)&&!Q(e)}var se=Object.prototype;function x(e){var r=e&&e.constructor,t=typeof r=="function"&&r.prototype||se;return e===t}function ie(e,r){for(var t=-1,a=Array(e);++t<e;)a[t]=r(t);return a}function ue(){return!1}var R=typeof exports=="object"&&exports&&!exports.nodeType&&exports,P=R&&typeof module=="object"&&module&&!module.nodeType&&module,ce=P&&P.exports===R,S=ce?f.Buffer:void 0,fe=S?S.isBuffer:void 0,pe=fe||ue,le="[object Arguments]",ge="[object Array]",be="[object Boolean]",de="[object Date]",ye="[object Error]",ve="[object Function]",he="[object Map]",Te="[object Number]",je="[object Object]",me="[object RegExp]",_e="[object Set]",we="[object String]",Ae="[object WeakMap]",xe="[object ArrayBuffer]",Oe="[object DataView]",Pe="[object Float32Array]",Se="[object Float64Array]",$e="[object Int8Array]",Ie="[object Int16Array]",Ce="[object Int32Array]",Me="[object Uint8Array]",Be="[object Uint8ClampedArray]",Ee="[object Uint16Array]",Ue="[object Uint32Array]",n={};n[Pe]=n[Se]=n[$e]=n[Ie]=n[Ce]=n[Me]=n[Be]=n[Ee]=n[Ue]=!0;n[le]=n[ge]=n[xe]=n[be]=n[Oe]=n[de]=n[ye]=n[ve]=n[he]=n[Te]=n[je]=n[me]=n[_e]=n[we]=n[Ae]=!1;function ze(e){return X(e)&&V(e.length)&&!!n[w(e)]}function Le(e){return function(r){return e(r)}}var W=typeof exports=="object"&&exports&&!exports.nodeType&&exports,b=W&&typeof module=="object"&&module&&!module.nodeType&&module,Ke=b&&b.exports===W,h=Ke&&ee.process,$=function(){try{var e=b&&b.require&&b.require("util").types;return e||h&&h.binding&&h.binding("util")}catch{}}(),I=$&&$.isTypedArray,Fe=I?Le(I):ze,Ge=Object.prototype,ke=Ge.hasOwnProperty;function q(e,r){var t=D(e),a=!t&&ae(e),i=!t&&!a&&pe(e),s=!t&&!a&&!i&&Fe(e),u=t||a||i||s,c=u?ie(e.length,String):[],p=c.length;for(var o in e)(r||ke.call(e,o))&&!(u&&(o=="length"||i&&(o=="offset"||o=="parent")||s&&(o=="buffer"||o=="byteLength"||o=="byteOffset")||te(o,p)))&&c.push(o);return c}function H(e,r){return function(t){return e(r(t))}}var De=H(Object.keys,Object),Ve=Object.prototype,Ne=Ve.hasOwnProperty;function Re(e){if(!x(e))return De(e);var r=[];for(var t in Object(e))Ne.call(e,t)&&t!="constructor"&&r.push(t);return r}function We(e){return N(e)?q(e):Re(e)}function qe(e){var r=[];if(e!=null)for(var t in Object(e))r.push(t);return r}var He=Object.prototype,Ye=He.hasOwnProperty;function Je(e){if(!k(e))return qe(e);var r=x(e),t=[];for(var a in e)a=="constructor"&&(r||!Ye.call(e,a))||t.push(a);return t}function _t(e){return N(e)?q(e,!0):Je(e)}var Ze=H(Object.getPrototypeOf,Object);function Qe(){this.__data__=new A,this.size=0}function Xe(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}function et(e){return this.__data__.get(e)}function tt(e){return this.__data__.has(e)}var rt=200;function at(e,r){var t=this.__data__;if(t instanceof A){var a=t.__data__;if(!y||a.length<rt-1)return a.push([e,r]),this.size=++t.size,this;t=this.__data__=new re(a)}return t.set(e,r),this.size=t.size,this}function d(e){var r=this.__data__=new A(e);this.size=r.size}d.prototype.clear=Qe;d.prototype.delete=Xe;d.prototype.get=et;d.prototype.has=tt;d.prototype.set=at;var Y=typeof exports=="object"&&exports&&!exports.nodeType&&exports,C=Y&&typeof module=="object"&&module&&!module.nodeType&&module,nt=C&&C.exports===Y,M=nt?f.Buffer:void 0,B=M?M.allocUnsafe:void 0;function wt(e,r){if(r)return e.slice();var t=e.length,a=B?B(t):new e.constructor(t);return e.copy(a),a}function ot(e,r){for(var t=-1,a=e==null?0:e.length,i=0,s=[];++t<a;){var u=e[t];r(u,t,e)&&(s[i++]=u)}return s}function st(){return[]}var it=Object.prototype,ut=it.propertyIsEnumerable,E=Object.getOwnPropertySymbols,ct=E?function(e){return e==null?[]:(e=Object(e),ot(E(e),function(r){return ut.call(e,r)}))}:st;function ft(e,r,t){var a=r(e);return D(e)?a:ne(a,t(e))}function At(e){return ft(e,We,ct)}var j=v(f,"DataView"),m=v(f,"Promise"),_=v(f,"Set"),U="[object Map]",pt="[object Object]",z="[object Promise]",L="[object Set]",K="[object WeakMap]",F="[object DataView]",lt=g(j),gt=g(y),bt=g(m),dt=g(_),yt=g(T),l=w;(j&&l(new j(new ArrayBuffer(1)))!=F||y&&l(new y)!=U||m&&l(m.resolve())!=z||_&&l(new _)!=L||T&&l(new T)!=K)&&(l=function(e){var r=w(e),t=r==pt?e.constructor:void 0,a=t?g(t):"";if(a)switch(a){case lt:return F;case gt:return U;case bt:return z;case dt:return L;case yt:return K}return r});var G=f.Uint8Array;function vt(e){var r=new e.constructor(e.byteLength);return new G(r).set(new G(e)),r}function xt(e,r){var t=r?vt(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}function Ot(e){return typeof e.constructor=="function"&&!x(e)?oe(Ze(e)):{}}export{d as S,G as U,_t as a,Ze as b,mt as c,ft as d,vt as e,xt as f,ct as g,l as h,Le as i,jt as j,We as k,pe as l,wt as m,$ as n,Ot as o,At as p,Fe as q,N as r,st as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as M,b as ee}from"./typescript-CkR2OWnN.js";import{am as j,_ as D,d as x,aq as J,a as G,bH as te,ao as u,c as L,ar as le,aR as q,i as O,o as N,j as Q,J as ae,t as A,ak as oe,n as P,e as g,f as $,K as se,aW as re,aE as ne,b as Z,k as U,F as ie,an as R,as as ce,bq as Y,az as V,ap as ue,bJ as ve,bW as fe,ay as me,bf as F,bX as de,y as pe,r as he,bb as be,av as ye,g as ge}from"./index-BZbKTMK3.js";import{u as Se}from"./index-CZi_rDaW.js";const k=4,we={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},ze=({move:d,size:v,bar:s})=>({[s.size]:v,transform:`translate${s.axis}(${d}%)`}),K=Symbol("scrollbarContextKey"),Ee=j({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),_e="Thumb",He=x({__name:"thumb",props:Ee,setup(d){const v=d,s=J(K),a=G("scrollbar");s||te(_e,"can not inject scrollbar context");const c=u(),f=u(),p=u({}),i=u(!1);let n=!1,m=!1,T=0,l=0,o=ne?document.onselectstart:null;const t=L(()=>we[v.vertical?"vertical":"horizontal"]),h=L(()=>ze({size:v.size,move:v.move,bar:t.value})),w=L(()=>c.value[t.value.offset]**2/s.wrapElement[t.value.scrollSize]/v.ratio/f.value[t.value.offset]),_=r=>{var y;if(r.stopPropagation(),r.ctrlKey||[1,2].includes(r.button))return;(y=window.getSelection())==null||y.removeAllRanges(),z(r);const H=r.currentTarget;H&&(p.value[t.value.axis]=H[t.value.offset]-(r[t.value.client]-H.getBoundingClientRect()[t.value.direction]))},S=r=>{if(!f.value||!c.value||!s.wrapElement)return;const y=Math.abs(r.target.getBoundingClientRect()[t.value.direction]-r[t.value.client]),H=f.value[t.value.offset]/2,W=(y-H)*100*w.value/c.value[t.value.offset];s.wrapElement[t.value.scroll]=W*s.wrapElement[t.value.scrollSize]/100},z=r=>{r.stopImmediatePropagation(),n=!0,T=s.wrapElement.scrollHeight,l=s.wrapElement.scrollWidth,document.addEventListener("mousemove",B),document.addEventListener("mouseup",C),o=document.onselectstart,document.onselectstart=()=>!1},B=r=>{if(!c.value||!f.value||n===!1)return;const y=p.value[t.value.axis];if(!y)return;const H=(c.value.getBoundingClientRect()[t.value.direction]-r[t.value.client])*-1,W=f.value[t.value.offset]-y,X=(H-W)*100*w.value/c.value[t.value.offset];t.value.scroll==="scrollLeft"?s.wrapElement[t.value.scroll]=X*l/100:s.wrapElement[t.value.scroll]=X*T/100},C=()=>{n=!1,p.value[t.value.axis]=0,document.removeEventListener("mousemove",B),document.removeEventListener("mouseup",C),b(),m&&(i.value=!1)},E=()=>{m=!1,i.value=!!v.size},e=()=>{m=!0,i.value=n};le(()=>{b(),document.removeEventListener("mouseup",C)});const b=()=>{document.onselectstart!==o&&(document.onselectstart=o)};return M(q(s,"scrollbarElement"),"mousemove",E),M(q(s,"scrollbarElement"),"mouseleave",e),(r,y)=>(N(),O(re,{name:g(a).b("fade"),persisted:""},{default:Q(()=>[ae(A("div",{ref_key:"instance",ref:c,class:P([g(a).e("bar"),g(a).is(g(t).key)]),onMousedown:S,onClick:oe(()=>{},["stop"])},[A("div",{ref_key:"thumb",ref:f,class:P(g(a).e("thumb")),style:$(g(h)),onMousedown:_},null,38)],42,["onClick"]),[[se,r.always||i.value]])]),_:1},8,["name"]))}});var I=D(He,[["__file","thumb.vue"]]);const Te=j({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),ke=x({__name:"bar",props:Te,setup(d,{expose:v}){const s=d,a=J(K),c=u(0),f=u(0),p=u(""),i=u(""),n=u(1),m=u(1);return v({handleScroll:o=>{if(o){const t=o.offsetHeight-k,h=o.offsetWidth-k;f.value=o.scrollTop*100/t*n.value,c.value=o.scrollLeft*100/h*m.value}},update:()=>{const o=a?.wrapElement;if(!o)return;const t=o.offsetHeight-k,h=o.offsetWidth-k,w=t**2/o.scrollHeight,_=h**2/o.scrollWidth,S=Math.max(w,s.minSize),z=Math.max(_,s.minSize);n.value=w/(t-w)/(S/(t-S)),m.value=_/(h-_)/(z/(h-z)),i.value=S+k<t?`${S}px`:"",p.value=z+k<h?`${z}px`:""}}),(o,t)=>(N(),Z(ie,null,[U(I,{move:c.value,ratio:m.value,size:p.value,always:o.always},null,8,["move","ratio","size","always"]),U(I,{move:f.value,ratio:n.value,size:i.value,vertical:"",always:o.always},null,8,["move","ratio","size","always"])],64))}});var Le=D(ke,[["__file","bar.vue"]]);const Ce=j({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:ce([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...Se(["ariaLabel","ariaOrientation"])}),Re={"end-reached":d=>["left","right","top","bottom"].includes(d),scroll:({scrollTop:d,scrollLeft:v})=>[d,v].every(R)},Ne="ElScrollbar",Pe=x({name:Ne}),Be=x({...Pe,props:Ce,emits:Re,setup(d,{expose:v,emit:s}){const a=d,c=G("scrollbar");let f,p,i=0,n=0,m="";const T=u(),l=u(),o=u(),t=u(),h=L(()=>{const e={};return a.height&&(e.height=Y(a.height)),a.maxHeight&&(e.maxHeight=Y(a.maxHeight)),[a.wrapStyle,e]}),w=L(()=>[a.wrapClass,c.e("wrap"),{[c.em("wrap","hidden-default")]:!a.native}]),_=L(()=>[c.e("view"),a.viewClass]),S=()=>{var e;if(l.value){(e=t.value)==null||e.handleScroll(l.value);const b=i,r=n;i=l.value.scrollTop,n=l.value.scrollLeft;const y={bottom:i+l.value.clientHeight>=l.value.scrollHeight,top:i<=0&&b!==0,right:n+l.value.clientWidth>=l.value.scrollWidth&&r!==n,left:n<=0&&r!==0};b!==i&&(m=i>b?"bottom":"top"),r!==n&&(m=n>r?"right":"left"),s("scroll",{scrollTop:i,scrollLeft:n}),y[m]&&s("end-reached",m)}};function z(e,b){ye(e)?l.value.scrollTo(e):R(e)&&R(b)&&l.value.scrollTo(e,b)}const B=e=>{R(e)&&(l.value.scrollTop=e)},C=e=>{R(e)&&(l.value.scrollLeft=e)},E=()=>{var e;(e=t.value)==null||e.update()};return V(()=>a.noresize,e=>{e?(f?.(),p?.()):({stop:f}=ee(o,E),p=M("resize",E))},{immediate:!0}),V(()=>[a.maxHeight,a.height],()=>{a.native||F(()=>{var e;E(),l.value&&((e=t.value)==null||e.handleScroll(l.value))})}),ue(K,ve({scrollbarElement:T,wrapElement:l})),fe(()=>{l.value&&(l.value.scrollTop=i,l.value.scrollLeft=n)}),me(()=>{a.native||F(()=>{E()})}),de(()=>E()),v({wrapRef:l,update:E,scrollTo:z,setScrollTop:B,setScrollLeft:C,handleScroll:S}),(e,b)=>(N(),Z("div",{ref_key:"scrollbarRef",ref:T,class:P(g(c).b())},[A("div",{ref_key:"wrapRef",ref:l,class:P(g(w)),style:$(g(h)),tabindex:e.tabindex,onScroll:S},[(N(),O(be(e.tag),{id:e.id,ref_key:"resizeRef",ref:o,class:P(g(_)),style:$(e.viewStyle),role:e.role,"aria-label":e.ariaLabel,"aria-orientation":e.ariaOrientation},{default:Q(()=>[he(e.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),e.native?pe("v-if",!0):(N(),O(Le,{key:0,ref_key:"barRef",ref:t,always:e.always,"min-size":e.minSize},null,8,["always","min-size"]))],2))}});var xe=D(Be,[["__file","scrollbar.vue"]]);const Ae=ge(xe);export{Ae as E,Re as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bR as U,c as d,aq as A,bS as q,br as J,bT as F,ao as L,u as M,aw as O,am as H,as as Q,bU as W,bL as T,bV as X,a as z,_ as D,d as B,i as y,o as m,j as V,b as N,y as E,F as Y,r as _,e as u,E as P,n as $,bb as w,aB as Z,ap as tt,bJ as et,aR as G,g as ot,w as at}from"./index-BZbKTMK3.js";import{u as nt}from"./use-form-item-9EKLSUpL.js";import{T as lt}from"./index-r5W6hzzQ.js";const j=Symbol("buttonGroupContextKey"),st=(t,c)=>{U({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},d(()=>t.type==="text"));const n=A(j,void 0),a=q("button"),{form:s}=nt(),l=J(d(()=>n?.size)),o=F(),b=L(),v=M(),p=d(()=>{var e;return t.type||n?.type||((e=a.value)==null?void 0:e.type)||""}),g=d(()=>{var e,r,i;return(i=(r=t.autoInsertSpace)!=null?r:(e=a.value)==null?void 0:e.autoInsertSpace)!=null?i:!1}),S=d(()=>{var e,r,i;return(i=(r=t.plain)!=null?r:(e=a.value)==null?void 0:e.plain)!=null?i:!1}),h=d(()=>{var e,r,i;return(i=(r=t.round)!=null?r:(e=a.value)==null?void 0:e.round)!=null?i:!1}),k=d(()=>t.tag==="button"?{ariaDisabled:o.value||t.loading,disabled:o.value||t.loading,autofocus:t.autofocus,type:t.nativeType}:{}),C=d(()=>{var e;const r=(e=v.default)==null?void 0:e.call(v);if(g.value&&r?.length===1){const i=r[0];if(i?.type===O){const R=i.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(R.trim())}}return!1});return{_disabled:o,_size:l,_type:p,_ref:b,_props:k,_plain:S,_round:h,shouldAddSpace:C,handleClick:e=>{if(o.value||t.loading){e.stopPropagation();return}t.nativeType==="reset"&&s?.resetFields(),c("click",e)}}},rt=["default","primary","success","warning","info","danger","text",""],it=["button","submit","reset"],x=H({size:X,disabled:Boolean,type:{type:String,values:rt,default:""},icon:{type:T},nativeType:{type:String,values:it,default:"button"},loading:Boolean,loadingIcon:{type:T,default:()=>W},plain:{type:Boolean,default:void 0},text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:Q([String,Object]),default:"button"}}),ct={click:t=>t instanceof MouseEvent};function f(t,c=20){return t.mix("#141414",c).toString()}function ut(t){const c=F(),n=z("button");return d(()=>{let a={},s=t.color;if(s){const l=s.match(/var\((.*?)\)/);l&&(s=window.getComputedStyle(window.document.documentElement).getPropertyValue(l[1]));const o=new lt(s),b=t.dark?o.tint(20).toString():f(o,20);if(t.plain)a=n.cssVarBlock({"bg-color":t.dark?f(o,90):o.tint(90).toString(),"text-color":s,"border-color":t.dark?f(o,50):o.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":s,"hover-border-color":s,"active-bg-color":b,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":b}),c.value&&(a[n.cssVarBlockName("disabled-bg-color")]=t.dark?f(o,90):o.tint(90).toString(),a[n.cssVarBlockName("disabled-text-color")]=t.dark?f(o,50):o.tint(50).toString(),a[n.cssVarBlockName("disabled-border-color")]=t.dark?f(o,80):o.tint(80).toString());else{const v=t.dark?f(o,30):o.tint(30).toString(),p=o.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(a=n.cssVarBlock({"bg-color":s,"text-color":p,"border-color":s,"hover-bg-color":v,"hover-text-color":p,"hover-border-color":v,"active-bg-color":b,"active-border-color":b}),c.value){const g=t.dark?f(o,50):o.tint(50).toString();a[n.cssVarBlockName("disabled-bg-color")]=g,a[n.cssVarBlockName("disabled-text-color")]=t.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,a[n.cssVarBlockName("disabled-border-color")]=g}}}return a})}const dt=B({name:"ElButton"}),bt=B({...dt,props:x,emits:ct,setup(t,{expose:c,emit:n}){const a=t,s=ut(a),l=z("button"),{_ref:o,_size:b,_type:v,_disabled:p,_props:g,_plain:S,_round:h,shouldAddSpace:k,handleClick:C}=st(a,n),I=d(()=>[l.b(),l.m(v.value),l.m(b.value),l.is("disabled",p.value),l.is("loading",a.loading),l.is("plain",S.value),l.is("round",h.value),l.is("circle",a.circle),l.is("text",a.text),l.is("link",a.link),l.is("has-bg",a.bg)]);return c({ref:o,size:b,type:v,disabled:p,shouldAddSpace:k}),(e,r)=>(m(),y(w(e.tag),Z({ref_key:"_ref",ref:o},u(g),{class:u(I),style:u(s),onClick:u(C)}),{default:V(()=>[e.loading?(m(),N(Y,{key:0},[e.$slots.loading?_(e.$slots,"loading",{key:0}):(m(),y(u(P),{key:1,class:$(u(l).is("loading"))},{default:V(()=>[(m(),y(w(e.loadingIcon)))]),_:1},8,["class"]))],64)):e.icon||e.$slots.icon?(m(),y(u(P),{key:1},{default:V(()=>[e.icon?(m(),y(w(e.icon),{key:0})):_(e.$slots,"icon",{key:1})]),_:3})):E("v-if",!0),e.$slots.default?(m(),N("span",{key:2,class:$({[u(l).em("text","expand")]:u(k)})},[_(e.$slots,"default")],2)):E("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var vt=D(bt,[["__file","button.vue"]]);const ft={size:x.size,type:x.type},mt=B({name:"ElButtonGroup"}),pt=B({...mt,props:ft,setup(t){const c=t;tt(j,et({size:G(c,"size"),type:G(c,"type")}));const n=z("button");return(a,s)=>(m(),N("div",{class:$(u(n).b("group"))},[_(a.$slots,"default")],2))}});var K=D(pt,[["__file","button-group.vue"]]);const _t=ot(vt,{ButtonGroup:K});at(K);export{_t as E};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bI as N,am as $,be as V,cz as w,_ as P,d as S,u as z,a as F,ao as O,c as h,aR as d,aE as R,i,o,j as u,J as j,t as k,n as a,e,y as r,E as b,r as m,bb as J,b as c,D as E,x as y,F as K,k as M,cA as U,K as W,aW as _,g as q}from"./index-BZbKTMK3.js";import{d as G,e as H}from"./index-BDYxvVsV.js";const L=["light","dark"],Q=$({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:V(w),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:L,default:"light"},...G}),X={open:()=>!0,close:n=>N(n)||n instanceof Event},Y=S({name:"ElAlert"}),Z=S({...Y,props:Q,emits:X,setup(n,{emit:v}){const l=n,{Close:T}=U,A=z(),t=F("alert"),p=O(!1),C=h(()=>w[l.type]),f=h(()=>!!(l.description||A.default)),B=()=>{p.value=!0,v("open")},g=s=>{p.value=!1,v("close",s)},{onOpen:D,onClose:I}=H({showAfter:d(l,"showAfter"),hideAfter:d(l,"hideAfter"),autoClose:d(l,"autoClose"),open:B,close:g});return R&&D(),(s,ee)=>(o(),i(_,{name:e(t).b("fade"),persisted:""},{default:u(()=>[j(k("div",{class:a([e(t).b(),e(t).m(s.type),e(t).is("center",s.center),e(t).is(s.effect)]),role:"alert"},[s.showIcon&&(s.$slots.icon||e(C))?(o(),i(e(b),{key:0,class:a([e(t).e("icon"),{[e(t).is("big")]:e(f)}])},{default:u(()=>[m(s.$slots,"icon",{},()=>[(o(),i(J(e(C))))])]),_:3},8,["class"])):r("v-if",!0),k("div",{class:a(e(t).e("content"))},[s.title||s.$slots.title?(o(),c("span",{key:0,class:a([e(t).e("title"),{"with-description":e(f)}])},[m(s.$slots,"title",{},()=>[E(y(s.title),1)])],2)):r("v-if",!0),e(f)?(o(),c("p",{key:1,class:a(e(t).e("description"))},[m(s.$slots,"default",{},()=>[E(y(s.description),1)])],2)):r("v-if",!0),s.closable?(o(),c(K,{key:2},[s.closeText?(o(),c("div",{key:0,class:a([e(t).e("close-btn"),e(t).is("customed")]),onClick:g},y(s.closeText),3)):(o(),i(e(b),{key:1,class:a(e(t).e("close-btn")),onClick:e(I)},{default:u(()=>[M(e(T))]),_:1},8,["class","onClick"]))],64)):r("v-if",!0)],2)],2),[[W,p.value]])]),_:3},8,["name"]))}});var x=P(Z,[["__file","alert.vue"]]);const oe=q(x);export{oe as E};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{am as b,as as B,_ as h,d as p,a as w,b as u,o as i,i as N,y as S,e as t,dg as I,n as f,av as v,ao as E,ay as P,az as $,an as T,bI as V,aR as z,r as _,F as m,v as g,k as C,aB as y,bi as R,g as j,w as F}from"./index-BZbKTMK3.js";const L=b({animated:Boolean,count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:B([Number,Object])}}),O=b({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),H=p({name:"ElSkeletonItem"}),M=p({...H,props:O,setup(l){const e=w("skeleton");return(o,s)=>(i(),u("div",{class:f([t(e).e("item"),t(e).e(o.variant)])},[o.variant==="image"?(i(),N(t(I),{key:0})):S("v-if",!0)],2))}});var c=h(M,[["__file","skeleton-item.vue"]]);const U=(l,e=0)=>{if(e===0)return l;const o=v(e)&&!!e.initVal,s=E(o);let r=null;const a=n=>{if(V(n)){s.value=l.value;return}r&&clearTimeout(r),r=setTimeout(()=>{s.value=l.value},n)},d=n=>{n==="leading"?T(e)?a(e):a(e.leading):v(e)?a(e.trailing):s.value=!1};return P(()=>d("leading")),$(()=>l.value,n=>{d(n?"leading":"trailing")}),s},q=p({name:"ElSkeleton"}),A=p({...q,props:L,setup(l,{expose:e}){const o=l,s=w("skeleton"),r=U(z(o,"loading"),o.throttle);return e({uiLoading:r}),(a,d)=>t(r)?(i(),u("div",y({key:0,class:[t(s).b(),t(s).is("animated",a.animated)]},a.$attrs),[(i(!0),u(m,null,g(a.count,n=>(i(),u(m,{key:n},[t(r)?_(a.$slots,"template",{key:n},()=>[C(c,{class:f(t(s).is("first")),variant:"p"},null,8,["class"]),(i(!0),u(m,null,g(a.rows,k=>(i(),N(c,{key:k,class:f([t(s).e("paragraph"),t(s).is("last",k===a.rows&&a.rows>1)]),variant:"p"},null,8,["class"]))),128))]):S("v-if",!0)],64))),128))],16)):_(a.$slots,"default",R(y({key:1},a.$attrs)))}});var D=h(A,[["__file","skeleton.vue"]]);const J=j(D,{SkeletonItem:c}),K=F(c);export{J as E,K as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bk as $,an as w,aP as z,am as B,cj as E,ck as R,bV as F,ao as k,aq as Q,c as b,bP as P,br as W,bT as Z,bR as X,_ as S,d as _,a as I,b as C,o as G,t as y,J as D,dl as x,e,ak as h,n as f,d1 as A,r as N,D as K,x as T,bf as U,f as Y,aZ as ee,ay as ae,ap as oe,bJ as le,cd as se,az as te,bQ as ne,w as L,g as re}from"./index-BZbKTMK3.js";import{u as ie}from"./index-CZi_rDaW.js";import{u as de,a as ue}from"./use-form-item-9EKLSUpL.js";const M=B({modelValue:{type:[String,Number,Boolean],default:void 0},size:F,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),ce=B({...M,border:Boolean}),j={[R]:o=>$(o)||w(o)||z(o),[E]:o=>$(o)||w(o)||z(o)},q=Symbol("radioGroupKey"),J=(o,u)=>{const s=k(),a=Q(q,void 0),i=b(()=>!!a),c=b(()=>P(o.value)?o.label:o.value),r=b({get(){return i.value?a.modelValue:o.modelValue},set(t){i.value?a.changeEvent(t):u&&u(R,t),s.value.checked=o.modelValue===c.value}}),d=W(b(()=>a?.size)),l=Z(b(()=>a?.disabled)),n=k(!1),p=b(()=>l.value||i.value&&r.value!==c.value?-1:0);return X({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},b(()=>i.value&&P(o.value))),{radioRef:s,isGroup:i,radioGroup:a,focus:n,size:d,disabled:l,tabIndex:p,modelValue:r,actualValue:c}},pe=_({name:"ElRadio"}),me=_({...pe,props:ce,emits:j,setup(o,{emit:u}){const s=o,a=I("radio"),{radioRef:i,radioGroup:c,focus:r,size:d,disabled:l,modelValue:n,actualValue:p}=J(s,u);function t(){U(()=>u(E,n.value))}return(m,g)=>{var v;return G(),C("label",{class:f([e(a).b(),e(a).is("disabled",e(l)),e(a).is("focus",e(r)),e(a).is("bordered",m.border),e(a).is("checked",e(n)===e(p)),e(a).m(e(d))])},[y("span",{class:f([e(a).e("input"),e(a).is("disabled",e(l)),e(a).is("checked",e(n)===e(p))])},[D(y("input",{ref_key:"radioRef",ref:i,"onUpdate:modelValue":V=>A(n)?n.value=V:null,class:f(e(a).e("original")),value:e(p),name:m.name||((v=e(c))==null?void 0:v.name),disabled:e(l),checked:e(n)===e(p),type:"radio",onFocus:V=>r.value=!0,onBlur:V=>r.value=!1,onChange:t,onClick:h(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[x,e(n)]]),y("span",{class:f(e(a).e("inner"))},null,2)],2),y("span",{class:f(e(a).e("label")),onKeydown:h(()=>{},["stop"])},[N(m.$slots,"default",{},()=>[K(T(m.label),1)])],42,["onKeydown"])],2)}}});var be=S(me,[["__file","radio.vue"]]);const fe=B({...M}),ve=_({name:"ElRadioButton"}),ye=_({...ve,props:fe,setup(o){const u=o,s=I("radio"),{radioRef:a,focus:i,size:c,disabled:r,modelValue:d,radioGroup:l,actualValue:n}=J(u),p=b(()=>({backgroundColor:l?.fill||"",borderColor:l?.fill||"",boxShadow:l?.fill?`-1px 0 0 0 ${l.fill}`:"",color:l?.textColor||""}));return(t,m)=>{var g;return G(),C("label",{class:f([e(s).b("button"),e(s).is("active",e(d)===e(n)),e(s).is("disabled",e(r)),e(s).is("focus",e(i)),e(s).bm("button",e(c))])},[D(y("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":v=>A(d)?d.value=v:null,class:f(e(s).be("button","original-radio")),value:e(n),type:"radio",name:t.name||((g=e(l))==null?void 0:g.name),disabled:e(r),onFocus:v=>i.value=!0,onBlur:v=>i.value=!1,onClick:h(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[x,e(d)]]),y("span",{class:f(e(s).be("button","inner")),style:Y(e(d)===e(n)?e(p):{}),onKeydown:h(()=>{},["stop"])},[N(t.$slots,"default",{},()=>[K(T(t.label),1)])],46,["onKeydown"])],2)}}});var H=S(ye,[["__file","radio-button.vue"]]);const _e=B({id:{type:String,default:void 0},size:F,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},...ie(["ariaLabel"])}),ge=j,he=_({name:"ElRadioGroup"}),Be=_({...he,props:_e,emits:ge,setup(o,{emit:u}){const s=o,a=I("radio"),i=ee(),c=k(),{formItem:r}=de(),{inputId:d,isLabeledByFormItem:l}=ue(s,{formItemContext:r}),n=t=>{u(R,t),U(()=>u(E,t))};ae(()=>{const t=c.value.querySelectorAll("[type=radio]"),m=t[0];!Array.from(t).some(g=>g.checked)&&m&&(m.tabIndex=0)});const p=b(()=>s.name||i.value);return oe(q,le({...se(s),changeEvent:n,name:p})),te(()=>s.modelValue,()=>{s.validateEvent&&r?.validate("change").catch(t=>ne())}),(t,m)=>(G(),C("div",{id:e(d),ref_key:"radioGroupRef",ref:c,class:f(e(a).b("group")),role:"radiogroup","aria-label":e(l)?void 0:t.ariaLabel||"radio-group","aria-labelledby":e(l)?e(r).labelId:void 0},[N(t.$slots,"default")],10,["id","aria-label","aria-labelledby"]))}});var O=S(Be,[["__file","radio-group.vue"]]);re(be,{RadioButton:H,RadioGroup:O});const Re=L(O),Se=L(H);export{Se as E,Re as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{am as q,as as k,_ as K,d as $,a as ce,c as m,an as T,bq as R,b as _,o as g,r as I,k as O,j as N,J as G,t as x,f as J,e as o,n as y,D as de,x as W,K as Q,aW as X,g as pe,aE as Y,bL as fe,cx as me,ao as B,cy as ge,cz as V,ay as ye,az as ve,i as h,y as E,E as U,bb as Ce,F as be,ak as he,cA as Te,bK as Se,bf as we,aL as Be,cB as u,bk as Z,cC as ee,aO as D,aP as L,cD as j,aA as Ee,cE as Ne}from"./index-BZbKTMK3.js";import{m as ke,a as $e,b as ze}from"./typescript-CkR2OWnN.js";const Me=q({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:k([String,Object,Array])},offset:{type:k(Array),default:[0,0]},badgeClass:{type:String}}),Le=$({name:"ElBadge"}),_e=$({...Le,props:Me,setup(t,{expose:a}){const e=t,s=ce("badge"),r=m(()=>e.isDot?"":T(e.value)&&T(e.max)?e.max<e.value?`${e.max}+`:`${e.value}`:`${e.value}`),p=m(()=>{var n,c,v,b,f;return[{backgroundColor:e.color,marginRight:R(-((c=(n=e.offset)==null?void 0:n[0])!=null?c:0)),marginTop:R((b=(v=e.offset)==null?void 0:v[1])!=null?b:0)},(f=e.badgeStyle)!=null?f:{}]});return a({content:r}),(n,c)=>(g(),_("div",{class:y(o(s).b())},[I(n.$slots,"default"),O(X,{name:`${o(s).namespace.value}-zoom-in-center`,persisted:""},{default:N(()=>[G(x("sup",{class:y([o(s).e("content"),o(s).em("content",n.type),o(s).is("fixed",!!n.$slots.default),o(s).is("dot",n.isDot),o(s).is("hide-zero",!n.showZero&&e.value===0),n.badgeClass]),style:J(o(p))},[I(n.$slots,"content",{value:o(r)},()=>[de(W(o(r)),1)])],6),[[Q,!n.hidden&&(o(r)||n.isDot||n.$slots.content)]])]),_:3},8,["name"])],2))}});var Ie=K(_e,[["__file","badge.vue"]]);const xe=pe(Ie),se=["primary","success","info","warning","error"],i=ke({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:Y?document.body:void 0}),De=q({customClass:{type:String,default:i.customClass},dangerouslyUseHTMLString:{type:Boolean,default:i.dangerouslyUseHTMLString},duration:{type:Number,default:i.duration},icon:{type:fe,default:i.icon},id:{type:String,default:i.id},message:{type:k([String,Object,Function]),default:i.message},onClose:{type:k(Function),default:i.onClose},showClose:{type:Boolean,default:i.showClose},type:{type:String,values:se,default:i.type},plain:{type:Boolean,default:i.plain},offset:{type:Number,default:i.offset},zIndex:{type:Number,default:i.zIndex},grouping:{type:Boolean,default:i.grouping},repeatNum:{type:Number,default:i.repeatNum}}),Oe={destroy:()=>!0},d=me([]),Ae=t=>{const a=d.findIndex(r=>r.id===t),e=d[a];let s;return a>0&&(s=d[a-1]),{current:e,prev:s}},Fe=t=>{const{prev:a}=Ae(t);return a?a.vm.exposed.bottom.value:0},He=(t,a)=>d.findIndex(s=>s.id===t)>0?16:a,Pe=$({name:"ElMessage"}),Re=$({...Pe,props:De,emits:Oe,setup(t,{expose:a,emit:e}){const s=t,{Close:r}=Te,p=B(!1),{ns:n,zIndex:c}=ge("message"),{currentZIndex:v,nextZIndex:b}=c,f=B(),S=B(!1),A=B(0);let z;const oe=m(()=>s.type?s.type==="error"?"danger":s.type:"info"),te=m(()=>{const l=s.type;return{[n.bm("icon",l)]:l&&V[l]}}),F=m(()=>s.icon||V[s.type]||""),ae=m(()=>Fe(s.id)),H=m(()=>He(s.id,s.offset)+ae.value),le=m(()=>A.value+H.value),re=m(()=>({top:`${H.value}px`,zIndex:v.value}));function M(){s.duration!==0&&({stop:z}=Se(()=>{w()},s.duration))}function P(){z?.()}function w(){S.value=!1,we(()=>{var l;p.value||((l=s.onClose)==null||l.call(s),e("destroy"))})}function ie({code:l}){l===Be.esc&&w()}return ye(()=>{M(),b(),S.value=!0}),ve(()=>s.repeatNum,()=>{P(),M()}),$e(document,"keydown",ie),ze(f,()=>{A.value=f.value.getBoundingClientRect().height}),a({visible:S,bottom:le,close:w}),(l,Ke)=>(g(),h(X,{name:o(n).b("fade"),onBeforeEnter:ue=>p.value=!0,onBeforeLeave:l.onClose,onAfterLeave:ue=>l.$emit("destroy"),persisted:""},{default:N(()=>[G(x("div",{id:l.id,ref_key:"messageRef",ref:f,class:y([o(n).b(),{[o(n).m(l.type)]:l.type},o(n).is("closable",l.showClose),o(n).is("plain",l.plain),l.customClass]),style:J(o(re)),role:"alert",onMouseenter:P,onMouseleave:M},[l.repeatNum>1?(g(),h(o(xe),{key:0,value:l.repeatNum,type:o(oe),class:y(o(n).e("badge"))},null,8,["value","type","class"])):E("v-if",!0),o(F)?(g(),h(o(U),{key:1,class:y([o(n).e("icon"),o(te)])},{default:N(()=>[(g(),h(Ce(o(F))))]),_:1},8,["class"])):E("v-if",!0),I(l.$slots,"default",{},()=>[l.dangerouslyUseHTMLString?(g(),_(be,{key:1},[E(" Caution here, message could've been compromised, never use user's input as message "),x("p",{class:y(o(n).e("content")),innerHTML:l.message},null,10,["innerHTML"])],2112)):(g(),_("p",{key:0,class:y(o(n).e("content"))},W(l.message),3))]),l.showClose?(g(),h(o(U),{key:2,class:y(o(n).e("closeBtn")),onClick:he(w,["stop"])},{default:N(()=>[O(o(r))]),_:1},8,["class","onClick"])):E("v-if",!0)],46,["id"]),[[Q,S.value]])]),_:3},8,["name","onBeforeEnter","onBeforeLeave","onAfterLeave"]))}});var Ve=K(Re,[["__file","message.vue"]]);let Ue=1;const ne=t=>{const a=!t||Z(t)||ee(t)||D(t)?{message:t}:t,e={...i,...a};if(!e.appendTo)e.appendTo=document.body;else if(Z(e.appendTo)){let s=document.querySelector(e.appendTo);Ee(s)||(s=document.body),e.appendTo=s}return L(u.grouping)&&!e.grouping&&(e.grouping=u.grouping),T(u.duration)&&e.duration===3e3&&(e.duration=u.duration),T(u.offset)&&e.offset===16&&(e.offset=u.offset),L(u.showClose)&&!e.showClose&&(e.showClose=u.showClose),L(u.plain)&&!e.plain&&(e.plain=u.plain),e},Ze=t=>{const a=d.indexOf(t);if(a===-1)return;d.splice(a,1);const{handler:e}=t;e.close()},je=({appendTo:t,...a},e)=>{const s=`message_${Ue++}`,r=a.onClose,p=document.createElement("div"),n={...a,id:s,onClose:()=>{r?.(),Ze(f)},onDestroy:()=>{j(null,p)}},c=O(Ve,n,D(n.message)||ee(n.message)?{default:D(n.message)?n.message:()=>n.message}:null);c.appContext=e||C._context,j(c,p),t.appendChild(p.firstElementChild);const v=c.component,f={id:s,vnode:c,vm:v,handler:{close:()=>{v.exposed.close()}},props:c.component.props};return f},C=(t={},a)=>{if(!Y)return{close:()=>{}};const e=ne(t);if(e.grouping&&d.length){const r=d.find(({vnode:p})=>{var n;return((n=p.props)==null?void 0:n.message)===e.message});if(r)return r.props.repeatNum+=1,r.props.type=e.type,r.handler}if(T(u.max)&&d.length>=u.max)return{close:()=>{}};const s=je(e,a);return d.push(s),s.handler};se.forEach(t=>{C[t]=(a={},e)=>{const s=ne(a);return C({...s,type:t},e)}});function qe(t){const a=[...d];for(const e of a)(!t||t===e.props.type)&&e.handler.close()}C.closeAll=qe;C._context=null;const We=Ne(C,"$message");export{We as E};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b_ as c,b$ as n}from"./index-BZbKTMK3.js";import{b as a}from"./_initCloneObject-DL2KWEpg.js";var i="[object Object]",b=Function.prototype,s=Object.prototype,e=b.toString,p=s.hasOwnProperty,f=e.call(Object);function l(r){if(!c(r)||n(r)!=i)return!1;var o=a(r);if(o===null)return!0;var t=p.call(o,"constructor")&&o.constructor;return typeof t=="function"&&t instanceof t&&e.call(t)==f}export{l as i};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{cX as s,cY as i,cZ as u}from"./index-BZbKTMK3.js";const l=n=>{const e=i.state.exchange;let{value:o,currency:t=i.state.currency||"usd"}=n;const c=u[t];if(!e)return{value:o,currency:t,label:c};const a=`usd-${t}`,r=e[a];return r&&(o=o*r),console.log("new price",{value:o,currency:t}),{value:o,currency:t,label:c}},d=n=>{let{value:e,defaultValue:o,fractionDigits:t=2}=n;if(e===void 0&&(e=o),e===void 0)return"";const c=l({value:e});return`${c.label}${c.value?.toFixed(t)}`},f=(n,e)=>{if(console.debug("getConsumption payload",n,e),!(!e||!Array.isArray(e))){console.debug("payload",n),console.debug("rules",e);for(const o of e){const t=o.conditions;if(s.apply(t,n))return s.apply(o.consumption)}return 0}};export{f as a,d as g};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{aq as n,ao as o,c as p,ay as t,az as I,aR as f,cm as y,ce as h,aI as w,aZ as F}from"./index-BZbKTMK3.js";const K=()=>{const v=n(h,void 0),u=n(w,void 0);return{form:v,formItem:u}},L=(v,{formItemContext:u,disableIdGeneration:e,disableIdManagement:s})=>{e||(e=o(!1)),s||(s=o(!1));const a=o();let i;const r=p(()=>{var l;return!!(!(v.label||v.ariaLabel)&&u&&u.inputIds&&((l=u.inputIds)==null?void 0:l.length)<=1)});return t(()=>{i=I([f(v,"id"),e],([l,c])=>{const d=l??(c?void 0:F().value);d!==a.value&&(u?.removeInputId&&(a.value&&u.removeInputId(a.value),!s?.value&&!c&&d&&u.addInputId(d)),a.value=d)},{immediate:!0})}),y(()=>{i&&i(),u?.removeInputId&&a.value&&u.removeInputId(a.value)}),{isLabeledByFormItem:r,inputId:a}};export{L as a,K as u};
|