@acedatacloud/nexior 3.0.0 → 3.2.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.0b2a01ae.js → Auth.dc0f8198.js} +1 -1
- package/dist/assets/{Callback.df3efa25.js → Callback.c84fb6fc.js} +1 -1
- package/dist/assets/{Chatdoc.72cd05a5.js → Chatdoc.881bdb8d.js} +1 -1
- package/dist/assets/{Console.78657c06.js → Console.a63ee771.js} +1 -1
- package/dist/assets/{Conversation.5f5bdd16.js → Conversation.0eb95938.js} +1 -1
- package/dist/assets/Conversation.430407d2.js +1 -0
- package/dist/assets/Conversation.8e903980.css +1 -0
- package/dist/assets/{CopyToClipboard.3b265ba5.js → CopyToClipboard.aee8f89c.js} +1 -1
- package/dist/assets/{Detail.811b43d8.js → Detail.e40da8b9.js} +1 -1
- package/dist/assets/EditArray.f4e1d8d3.js +1 -0
- package/dist/assets/{Extra.cd2305c3.js → Extra.13d1c29e.js} +1 -1
- package/dist/assets/{History.7c4f0226.js → History.0908b85e.js} +1 -1
- package/dist/assets/ImagePreview.54c0d919.js +1 -0
- package/dist/assets/ImagePreview.bc23b40d.css +1 -0
- package/dist/assets/{Index.327cbb55.js → Index.1328d83c.js} +1 -1
- package/dist/assets/{Index.fc805aca.js → Index.133c8f72.js} +1 -1
- package/dist/assets/Index.208ada82.js +1 -0
- package/dist/assets/Index.21d09fc4.js +1 -0
- package/dist/assets/{Index.29d16c77.js → Index.490f668c.js} +1 -1
- package/dist/assets/Index.52de416f.js +3 -0
- package/dist/assets/Index.620d6fa4.js +1 -0
- package/dist/assets/{Index.0ad7d0f1.js → Index.68b099af.js} +1 -1
- package/dist/assets/{Index.9e24d783.css → Index.6c8f5464.css} +1 -1
- package/dist/assets/Index.87260201.js +1 -0
- package/dist/assets/Index.95af3227.js +1 -0
- package/dist/assets/Index.9f518f05.css +1 -0
- package/dist/assets/Index.aa0c72cd.js +1 -0
- package/dist/assets/{Index.132f7de2.js → Index.ab801808.js} +1 -1
- package/dist/assets/Index.b5db29b1.css +1 -0
- package/dist/assets/Index.b7f01e56.js +1 -0
- package/dist/assets/Index.e7e7118c.css +1 -0
- package/dist/assets/{InfoIcon.91627439.js → InfoIcon.14b5afde.js} +1 -1
- package/dist/assets/{Invitees.6f94e003.js → Invitees.410a019d.js} +1 -1
- package/dist/assets/{List.9ae918b7.js → List.b24921db.js} +1 -1
- package/dist/assets/{List.ef066a71.js → List.c488a4c6.js} +1 -1
- package/dist/assets/{List.2a1545c6.js → List.fa9a32f3.js} +1 -1
- package/dist/assets/{Login.5e55ecc9.js → Login.3c14fed5.js} +1 -1
- package/dist/assets/{Main.70a09341.js → Main.f96fd729.js} +1 -1
- package/dist/assets/{Manage.c7a602af.js → Manage.68c3411c.js} +1 -1
- package/dist/assets/{MarkdownRenderer.493a4628.js → MarkdownRenderer.c3398df9.js} +1 -1
- package/dist/assets/Navigator.e1dcc3e1.js +1 -0
- package/dist/assets/{Pagination.3e2498b6.js → Pagination.d881f818.js} +1 -1
- package/dist/assets/{Setting.baadb4eb.js → Setting.50591e0a.js} +1 -1
- package/dist/assets/{Status.61f2e040.js → Status.eedcb19a.js} +1 -1
- package/dist/assets/{Subscribe.667df029.js → Subscribe.8f0b1021.js} +1 -1
- package/dist/assets/{distribution.98f27d49.js → distribution.e3b109ee.js} +1 -1
- package/dist/assets/{index.a20291ec.js → index.531671ec.js} +2 -2
- package/dist/assets/index.56bf2312.css +1 -0
- package/dist/assets/{order.723bf42f.js → order.9dbff1b5.js} +1 -1
- package/dist/assets/{price.43b5c2a4.js → price.37afa6c7.js} +1 -1
- package/dist/assets/{site.5e3b8acf.js → site.2333c67b.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/dist/assets/Conversation.7dd7f2fe.css +0 -1
- package/dist/assets/Conversation.f0865aff.js +0 -1
- package/dist/assets/EditArray.e7349d45.js +0 -1
- package/dist/assets/Index.03316aad.js +0 -1
- package/dist/assets/Index.4066f6f0.js +0 -1
- package/dist/assets/Index.48fd699b.js +0 -1
- package/dist/assets/Index.4cdb1355.js +0 -1
- package/dist/assets/Index.648c0f18.js +0 -1
- package/dist/assets/Index.67d07b2e.js +0 -1
- package/dist/assets/Index.6e0fe5f0.css +0 -1
- package/dist/assets/Index.7193151b.js +0 -1
- package/dist/assets/Index.85a3f7a8.css +0 -1
- package/dist/assets/Index.b5d94a68.js +0 -3
- package/dist/assets/Index.d945e782.css +0 -1
- package/dist/assets/Navigator.afcddbd9.js +0 -1
- package/dist/assets/index.d1395a21.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var i=Object.defineProperty;var n=(r,t,e)=>t in r?i(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var s=(r,t,e)=>(n(r,typeof t!="symbol"?t+"":t,e),e);import{
|
|
1
|
+
var i=Object.defineProperty;var n=(r,t,e)=>t in r?i(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var s=(r,t,e)=>(n(r,typeof t!="symbol"?t+"":t,e),e);import{B as a}from"./index.531671ec.js";class y{constructor(){s(this,"key","orders")}async getAll(t){return await a.get(`/${this.key}/`,{params:t})}async get(t){return await a.get(`/${this.key}/${t}`)}async create(t){return await a.post(`/${this.key}/`,t)}async update(t,e){return await a.put(`/${this.key}/${t}`,e)}async refresh(t){return await a.post(`/${this.key}/${t}/refresh/`)}async pay(t,e){return await a.post(`/${this.key}/${t}/pay/`,e)}async updatePrice(t,e){return await a.post(`/${this.key}/${t}/update-price/`,e)}async finish(t){return await a.post(`/${this.key}/${t}/finish/`)}async delete(t){return await a.delete(`/${this.key}/${t}`)}}const c=new y;export{c as o};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{C as a,D as i}from"./index.531671ec.js";const l=o=>{const e=a.state.exchange;let{value:t,currency:r=a.state.currency||"usd"}=o;const c=i[r];if(!e)return{value:t,currency:r,label:c};const n=`usd-${r}`,s=e[n];return s&&(t=t*s),console.log("new price",{value:t,currency:r}),{value:t,currency:r,label:c}},g=o=>{var n;let{value:e,defaultValue:t,fractionDigits:r=2}=o;if(e===void 0&&(e=t),e===void 0)return"";const c=l({value:e});return`${c.label}${(n=c.value)==null?void 0:n.toFixed(r)}`};export{g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e={"field.title":{message:"\u7AD9\u70B9\u6807\u9898",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.origin":{message:"\u7AD9\u70B9\u57DF\u540D",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.description":{message:"\u7AD9\u70B9\u63CF\u8FF0",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.keywords":{message:"\u7AD9\u70B9\u5173\u952E\u8BCD",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.logo":{message:"\u7AD9\u70B9 Logo",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.favicon":{message:"\u7AD9\u70B9 Favicon",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.qr":{message:"\u4E8C\u7EF4\u7801",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.url":{message:"\u94FE\u63A5",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.admins":{message:"\u7AD9\u70B9\u7BA1\u7406\u5458 ID",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.distributionDefaultInviterId":{message:"\u9ED8\u8BA4\u9080\u8BF7\u4EBA ID",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.distributionForceInviterId":{message:"\u5F3A\u5236\u9080\u8BF7\u4EBA ID",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresChat":{message:"Chat",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresGrok":{message:"Grok",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresDeepseek":{message:"Deepseek",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresChatgpt":{message:"ChatGPT",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresMidjourney":{message:"Midjourney",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresChatdoc":{message:"Chatdoc",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresQrart":{message:"Qrart",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresLuma":{message:"Luma",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresPika":{message:"Pika",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresKling":{message:"Kling",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresHailuo":{message:"Hailuo",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresHeadshots":{message:"AI\u8BC1\u4EF6\u7167",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresSuno":{message:"Suno",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresFlux":{message:"Flux",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresSupport":{message:"\u5BA2\u670D\u652F\u6301",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresI18n":{message:"\u591A\u8BED\u8A00\u652F\u6301",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.basicConfig":{message:"\u57FA\u672C\u914D\u7F6E",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.seoConfig":{message:"SEO \u914D\u7F6E",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editAdmins":{message:"\u7F16\u8F91\u7BA1\u7406\u5458",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.featuresConfig":{message:"\u529F\u80FD\u914D\u7F6E",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editTitle":{message:"\u7F16\u8F91\u6807\u9898",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editOrigin":{message:"\u7F16\u8F91\u57DF\u540D",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editKeywords":{message:"\u7F16\u8F91\u5173\u952E\u8BCD",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editLogo":{message:"\u7F16\u8F91 Logo",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editFavicon":{message:"\u7F16\u8F91 Favicon",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editDescription":{message:"\u7F16\u8F91\u63CF\u8FF0",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.distributionConfig":{message:"\u5206\u9500\u914D\u7F6E",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editDistributionDefaultInviterId":{message:"\u7F16\u8F91\u9ED8\u8BA4\u9080\u8BF7\u4EBA",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editDistributionForceInviterId":{message:"\u7F16\u8F91\u5F3A\u5236\u9080\u8BF7\u4EBA",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editQR":{message:"\u7F16\u8F91\u4E8C\u7EF4\u7801",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editUrl":{message:"\u7F16\u8F91\u94FE\u63A5",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"placeholder.title":{message:"\u8BF7\u8F93\u5165\u7AD9\u70B9\u6807\u9898",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"placeholder.origin":{message:"\u8BF7\u8F93\u5165\u7AD9\u70B9\u57DF\u540D",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"placeholder.editUrl":{message:"\u8BF7\u8F93\u5165\u94FE\u63A5",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"placeholder.description":{message:"\u8BF7\u8F93\u5165\u7AD9\u70B9\u63CF\u8FF0",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"placeholder.keywords":{message:"\u8BF7\u8F93\u5165\u7AD9\u70B9\u5173\u952E\u8BCD",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"placeholder.editDistributionDefaultInviterId":{message:"\u8BF7\u8F93\u5165\u9ED8\u8BA4\u9080\u8BF7\u4EBA ID",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"placeholder.editDistributionForceInviterId":{message:"\u8BF7\u8F93\u5165\u5F3A\u5236\u9080\u8BF7\u4EBA ID",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"message.uploadImageExceed":{message:"\u4E0A\u4F20\u56FE\u7247\u8D85\u8FC7\u9650\u5236",description:"\u4E0A\u4F20\u56FE\u7247\u8D85\u8FC7\u9650\u5236\u7684\u63D0\u793A"},"message.uploadImageError":{message:"\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF",description:"\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF\u7684\u63D0\u793A"},"message.editLogoTip":{message:"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A200*60px",description:"\u4E0A\u4F20\u56FE\u7247\u7684\u63D0\u793A\u8BED\u8A00"},"message.editQRTip":{message:"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A200*200px",description:"\u4E0A\u4F20\u56FE\u7247\u7684\u63D0\u793A\u8BED\u8A00"},"message.editFaviconTip":{message:"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A32*32px",description:"\u4E0A\u4F20\u56FE\u7247\u7684\u63D0\u793A\u8BED\u8A00"},"message.editUrl":{message:"\u8BF7\u8F93\u5165\u94FE\u63A5",description:"\u8BF7\u8F93\u5165\u94FE\u63A5\u7684\u63D0\u793A"},"message.atLeastOneAdmin":{message:"\u81F3\u5C11\u4FDD\u7559\u4E00\u4E2A\u7BA1\u7406\u5458",description:"\u81F3\u5C11\u4FDD\u7559\u4E00\u4E2A\u7BA1\u7406\u5458\u7684\u63D0\u793A"},"message.distributionDefaultInviterIdTip":{message:"\u9ED8\u8BA4\u9080\u8BF7\u4EBA\u7684\u7528\u6237 ID\uFF0C\u5206\u9500\u94FE\u63A5\u5982\u679C\u4E0D\u643A\u5E26 inviter_id \u53C2\u6570\uFF0C\u5219\u9ED8\u8BA4\u4F7F\u7528\u8BE5\u7528\u6237 ID \u4F5C\u4E3A\u9080\u8BF7\u4EBA\u3002",description:"\u9ED8\u8BA4\u9080\u8BF7\u4EBAID\u7684\u63D0\u793A"},"message.distributionForceInviterIdTip":{message:"\u5F3A\u5236\u9080\u8BF7\u4EBA\u7684\u7528\u6237 ID\uFF0C\u5982\u679C\u8BBE\u7F6E\u4E86\u6B64 ID\uFF0C\u65E0\u8BBA\u5206\u9500\u94FE\u63A5\u662F\u5426\u643A\u5E26 inviter_id \u53C2\u6570\uFF0C\u5219\u5F3A\u5236\u4F7F\u7528\u8BE5\u7528\u6237 ID \u4F5C\u4E3A\u9080\u8BF7\u4EBA\u3002",description:"\u5F3A\u5236\u9080\u8BF7\u4EBAID\u7684\u63D0\u793A"},"message.originTip":{message:"\u7AD9\u70B9\u57DF\u540D\uFF0C\u7AD9\u70B9\u914D\u7F6E\u4E0E\u57DF\u540D\u7ED1\u5B9A\uFF0C\u7AD9\u70B9\u57DF\u540D\u4E0D\u53EF\u66F4\u6539\u3002",description:"\u7AD9\u70B9\u57DF\u540D\u7684\u63D0\u793A"},"message.titleTip":{message:"\u7AD9\u70B9\u6807\u9898\uFF0C\u5C55\u793A\u5728\u6D4F\u89C8\u5668\u6807\u7B7E\u9875\u3002",description:"\u7AD9\u70B9\u6807\u9898\u7684\u63D0\u793A"},"message.descriptionTip":{message:"\u7AD9\u70B9\u63CF\u8FF0\uFF0C\u4F4D\u4E8E\u7AD9\u70B9\u5143\u4FE1\u606F\u4E2D\uFF0C\u7528\u4E8E\u7AD9\u70B9 SEO \u4F18\u5316\u3002",description:"\u7AD9\u70B9\u63CF\u8FF0\u7684\u63D0\u793A"},"message.logoTip":{message:"\u7AD9\u70B9 Logo\uFF0C\u5F53\u83DC\u5355\u680F\u5C55\u5F00\u65F6\uFF0C\u5C55\u793A\u5728\u7AD9\u70B9\u83DC\u5355\u9876\u90E8\u3002",description:"\u7AD9\u70B9 Logo \u7684\u63D0\u793A"},"message.faviconTip":{message:"\u7AD9\u70B9 Favicon\uFF0C\u5C55\u793A\u5728\u6D4F\u89C8\u5668\u6807\u7B7E\u9875\u3002",description:"\u7AD9\u70B9 Favicon \u7684\u63D0\u793A"},"message.adminsTip":{message:"\u7AD9\u70B9\u7BA1\u7406\u5458 ID\uFF0C\u9ED8\u8BA4\u9996\u6B21\u521B\u5EFA\u8BE5\u7AD9\u70B9\u7684\u7528\u6237\u4F1A\u6210\u4E3A\u7BA1\u7406\u5458\uFF0C\u53EA\u6709\u7AD9\u70B9\u7BA1\u7406\u5458\u53EF\u4EE5\u7BA1\u7406\u7AD9\u70B9\u3002",description:"\u7AD9\u70B9\u7BA1\u7406\u5458\u7684\u63D0\u793A"},"message.adminsTip2":{message:"\u53EF\u5728\u6B64\u5904\u589E\u5220\u7BA1\u7406\u5458 ID\uFF0C\u53EF\u5230 https://auth.acedata.cloud \u67E5\u770B\u7528\u6237 ID",description:"\u7AD9\u70B9\u7BA1\u7406\u5458\u7684\u63D0\u793A"},"message.keywordsTip":{message:"\u7AD9\u70B9\u5173\u952E\u8BCD\uFF0C\u4F4D\u4E8E\u7AD9\u70B9\u5143\u4FE1\u606F\u4E2D\uFF0C\u7528\u4E8E\u7AD9\u70B9 SEO \u4F18\u5316\u3002",description:"\u7AD9\u70B9\u5173\u952E\u8BCD\u7684\u63D0\u793A"},"message.keywordsTip2":{message:"\u53EF\u5728\u6B64\u5904\u589E\u5220\u7F51\u7AD9\u5173\u952E\u8BCD\uFF0C\u5173\u952E\u8BCD\u8D8A\u7CBE\u51C6\uFF0C\u8D8A\u6709\u5229\u4E8E SEO \u4F18\u5316\u3002",description:"\u7AD9\u70B9\u5173\u952E\u8BCD\u7684\u63D0\u793A"},"message.featuresChat":{message:"\u6253\u5F00\u6216\u5173\u95ED Chat \u529F\u80FD\u6A21\u5757\u3002",description:"Chat \u529F\u80FD\u7684\u63CF\u8FF0"},"message.featuresMidjourney":{message:"\u6253\u5F00\u6216\u5173\u95ED Midjourney \u529F\u80FD\u6A21\u5757\u3002",description:"Midjourney \u529F\u80FD\u7684\u63CF\u8FF0"},"message.featuresChatdoc":{message:"\u6253\u5F00\u6216\u5173\u95ED Chatdoc \u529F\u80FD\u6A21\u5757\u3002",description:"Chatdoc \u529F\u80FD\u7684\u63CF\u8FF0"},"message.featuresQrart":{message:"\u6253\u5F00\u6216\u5173\u95ED Qrart \u529F\u80FD\u6A21\u5757\u3002",description:"Qrart \u529F\u80FD\u7684\u63CF\u8FF0"},"message.featuresSuno":{message:"\u6253\u5F00\u6216\u5173\u95ED Suno \u529F\u80FD\u6A21\u5757\u3002",description:"Suno \u529F\u80FD\u7684\u63CF\u8FF0"},"message.featuresFlux":{message:"\u6253\u5F00\u6216\u5173\u95ED FLux \u529F\u80FD\u6A21\u5757\u3002",description:"FLux \u529F\u80FD\u7684\u63CF\u8FF0"},"message.featuresLuma":{message:"\u6253\u5F00\u6216\u5173\u95ED Luma \u529F\u80FD\u6A21\u5757\u3002",description:"Luma \u529F\u80FD\u7684\u63CF\u8FF0"},"message.featuresPika":{message:"\u6253\u5F00\u6216\u5173\u95ED Pika \u529F\u80FD\u6A21\u5757\u3002",description:"Pika \u529F\u80FD\u7684\u63CF\u8FF0"},"message.featuresKling":{message:"\u6253\u5F00\u6216\u5173\u95ED Kling \u529F\u80FD\u6A21\u5757\u3002",description:"Kling \u529F\u80FD\u7684\u63CF\u8FF0"},"message.featuresHailuo":{message:"\u6253\u5F00\u6216\u5173\u95ED Hailuo \u529F\u80FD\u6A21\u5757\u3002",description:"Hailuo \u529F\u80FD\u7684\u63CF\u8FF0"},"message.featuresHeadshots":{message:"\u6253\u5F00\u6216\u5173\u95ED AI\u8BC1\u4EF6\u7167 \u529F\u80FD\u6A21\u5757\u3002",description:"AI\u8BC1\u4EF6\u7167 \u529F\u80FD\u7684\u63CF\u8FF0"},"message.featuresSupport":{message:"\u6253\u5F00\u6216\u5173\u95ED\u5BA2\u670D\u652F\u6301",description:"Support \u529F\u80FD\u7684\u63CF\u8FF0"},"message.featuresI18n":{message:"\u6253\u5F00\u6216\u5173\u95ED\u591A\u8BED\u8A00\u652F\u6301\uFF0C\u5173\u95ED\u540E\uFF0C\u7528\u6237\u53EA\u80FD\u4F7F\u7528\u9ED8\u8BA4\u8BED\u8A00\u3002",description:"\u591A\u8BED\u8A00\u652F\u6301\u7684\u63CF\u8FF0"},"button.upload":{message:"\u4E0A\u4F20",description:"\u4E0A\u4F20"},"button.enabled":{message:"\u5DF2\u542F\u7528",description:"\u5F00\u5173\u6587\u5B57\uFF0C\u8868\u793A\u5DF2\u7ECF\u542F\u7528"},"button.disabled":{message:"\u5DF2\u7981\u7528",description:"\u5F00\u5173\u6587\u5B57\uFF0C\u8868\u793A\u5DF2\u7ECF\u7981\u7528"}};export{e as default};
|
|
1
|
+
var e={"field.title":{message:"\u7AD9\u70B9\u6807\u9898",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.origin":{message:"\u7AD9\u70B9\u57DF\u540D",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.description":{message:"\u7AD9\u70B9\u63CF\u8FF0",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.keywords":{message:"\u7AD9\u70B9\u5173\u952E\u8BCD",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.logo":{message:"\u7AD9\u70B9 Logo",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.favicon":{message:"\u7AD9\u70B9 Favicon",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.qr":{message:"\u4E8C\u7EF4\u7801",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.url":{message:"\u94FE\u63A5",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.admins":{message:"\u7AD9\u70B9\u7BA1\u7406\u5458 ID",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.distributionDefaultInviterId":{message:"\u9ED8\u8BA4\u9080\u8BF7\u4EBA ID",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.distributionForceInviterId":{message:"\u5F3A\u5236\u9080\u8BF7\u4EBA ID",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresChat":{message:"Chat",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresGrok":{message:"Grok",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresDeepseek":{message:"Deepseek",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresChatgpt":{message:"ChatGPT",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresMidjourney":{message:"Midjourney",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresChatdoc":{message:"Chatdoc",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresQrart":{message:"Qrart",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresLuma":{message:"Luma",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresPika":{message:"Pika",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresKling":{message:"Kling",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresHailuo":{message:"Hailuo",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresHeadshots":{message:"AI\u8BC1\u4EF6\u7167",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresSuno":{message:"Suno",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresFlux":{message:"Flux",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresSupport":{message:"\u5BA2\u670D\u652F\u6301",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresI18n":{message:"\u591A\u8BED\u8A00\u652F\u6301",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.basicConfig":{message:"\u57FA\u672C\u914D\u7F6E",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.seoConfig":{message:"SEO \u914D\u7F6E",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editAdmins":{message:"\u7F16\u8F91\u7BA1\u7406\u5458",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.featuresConfig":{message:"\u529F\u80FD\u914D\u7F6E",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editTitle":{message:"\u7F16\u8F91\u6807\u9898",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editOrigin":{message:"\u7F16\u8F91\u57DF\u540D",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editKeywords":{message:"\u7F16\u8F91\u5173\u952E\u8BCD",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editLogo":{message:"\u7F16\u8F91 Logo",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editFavicon":{message:"\u7F16\u8F91 Favicon",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editDescription":{message:"\u7F16\u8F91\u63CF\u8FF0",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.distributionConfig":{message:"\u5206\u9500\u914D\u7F6E",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editDistributionDefaultInviterId":{message:"\u7F16\u8F91\u9ED8\u8BA4\u9080\u8BF7\u4EBA",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editDistributionForceInviterId":{message:"\u7F16\u8F91\u5F3A\u5236\u9080\u8BF7\u4EBA",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editQR":{message:"\u7F16\u8F91\u4E8C\u7EF4\u7801",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editUrl":{message:"\u7F16\u8F91\u94FE\u63A5",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"placeholder.title":{message:"\u8BF7\u8F93\u5165\u7AD9\u70B9\u6807\u9898",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"placeholder.origin":{message:"\u8BF7\u8F93\u5165\u7AD9\u70B9\u57DF\u540D",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"placeholder.editUrl":{message:"\u8BF7\u8F93\u5165\u94FE\u63A5",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"placeholder.description":{message:"\u8BF7\u8F93\u5165\u7AD9\u70B9\u63CF\u8FF0",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"placeholder.keywords":{message:"\u8BF7\u8F93\u5165\u7AD9\u70B9\u5173\u952E\u8BCD",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"placeholder.editDistributionDefaultInviterId":{message:"\u8BF7\u8F93\u5165\u9ED8\u8BA4\u9080\u8BF7\u4EBA ID",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"placeholder.editDistributionForceInviterId":{message:"\u8BF7\u8F93\u5165\u5F3A\u5236\u9080\u8BF7\u4EBA ID",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"message.uploadImageExceed":{message:"\u4E0A\u4F20\u56FE\u7247\u8D85\u8FC7\u9650\u5236",description:"\u4E0A\u4F20\u56FE\u7247\u8D85\u8FC7\u9650\u5236\u7684\u63D0\u793A"},"message.uploadImageError":{message:"\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF",description:"\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF\u7684\u63D0\u793A"},"message.editLogoTip":{message:"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A200*60px",description:"\u4E0A\u4F20\u56FE\u7247\u7684\u63D0\u793A\u8BED\u8A00"},"message.editQRTip":{message:"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A200*200px",description:"\u4E0A\u4F20\u56FE\u7247\u7684\u63D0\u793A\u8BED\u8A00"},"message.editFaviconTip":{message:"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A32*32px",description:"\u4E0A\u4F20\u56FE\u7247\u7684\u63D0\u793A\u8BED\u8A00"},"message.editUrl":{message:"\u8BF7\u8F93\u5165\u94FE\u63A5",description:"\u8BF7\u8F93\u5165\u94FE\u63A5\u7684\u63D0\u793A"},"message.atLeastOneAdmin":{message:"\u81F3\u5C11\u4FDD\u7559\u4E00\u4E2A\u7BA1\u7406\u5458",description:"\u81F3\u5C11\u4FDD\u7559\u4E00\u4E2A\u7BA1\u7406\u5458\u7684\u63D0\u793A"},"message.distributionDefaultInviterIdTip":{message:"\u9ED8\u8BA4\u9080\u8BF7\u4EBA\u7684\u7528\u6237 ID\uFF0C\u5206\u9500\u94FE\u63A5\u5982\u679C\u4E0D\u643A\u5E26 inviter_id \u53C2\u6570\uFF0C\u5219\u9ED8\u8BA4\u4F7F\u7528\u8BE5\u7528\u6237 ID \u4F5C\u4E3A\u9080\u8BF7\u4EBA\u3002",description:"\u9ED8\u8BA4\u9080\u8BF7\u4EBAID\u7684\u63D0\u793A"},"message.distributionForceInviterIdTip":{message:"\u5F3A\u5236\u9080\u8BF7\u4EBA\u7684\u7528\u6237 ID\uFF0C\u5982\u679C\u8BBE\u7F6E\u4E86\u6B64 ID\uFF0C\u65E0\u8BBA\u5206\u9500\u94FE\u63A5\u662F\u5426\u643A\u5E26 inviter_id \u53C2\u6570\uFF0C\u5219\u5F3A\u5236\u4F7F\u7528\u8BE5\u7528\u6237 ID \u4F5C\u4E3A\u9080\u8BF7\u4EBA\u3002",description:"\u5F3A\u5236\u9080\u8BF7\u4EBAID\u7684\u63D0\u793A"},"message.originTip":{message:"\u7AD9\u70B9\u57DF\u540D\uFF0C\u7AD9\u70B9\u914D\u7F6E\u4E0E\u57DF\u540D\u7ED1\u5B9A\uFF0C\u7AD9\u70B9\u57DF\u540D\u4E0D\u53EF\u66F4\u6539\u3002",description:"\u7AD9\u70B9\u57DF\u540D\u7684\u63D0\u793A"},"message.titleTip":{message:"\u7AD9\u70B9\u6807\u9898\uFF0C\u5C55\u793A\u5728\u6D4F\u89C8\u5668\u6807\u7B7E\u9875\u3002",description:"\u7AD9\u70B9\u6807\u9898\u7684\u63D0\u793A"},"message.descriptionTip":{message:"\u7AD9\u70B9\u63CF\u8FF0\uFF0C\u4F4D\u4E8E\u7AD9\u70B9\u5143\u4FE1\u606F\u4E2D\uFF0C\u7528\u4E8E\u7AD9\u70B9 SEO \u4F18\u5316\u3002",description:"\u7AD9\u70B9\u63CF\u8FF0\u7684\u63D0\u793A"},"message.logoTip":{message:"\u7AD9\u70B9 Logo\uFF0C\u5F53\u83DC\u5355\u680F\u5C55\u5F00\u65F6\uFF0C\u5C55\u793A\u5728\u7AD9\u70B9\u83DC\u5355\u9876\u90E8\u3002",description:"\u7AD9\u70B9 Logo \u7684\u63D0\u793A"},"message.faviconTip":{message:"\u7AD9\u70B9 Favicon\uFF0C\u5C55\u793A\u5728\u6D4F\u89C8\u5668\u6807\u7B7E\u9875\u3002",description:"\u7AD9\u70B9 Favicon \u7684\u63D0\u793A"},"message.adminsTip":{message:"\u7AD9\u70B9\u7BA1\u7406\u5458 ID\uFF0C\u9ED8\u8BA4\u9996\u6B21\u521B\u5EFA\u8BE5\u7AD9\u70B9\u7684\u7528\u6237\u4F1A\u6210\u4E3A\u7BA1\u7406\u5458\uFF0C\u53EA\u6709\u7AD9\u70B9\u7BA1\u7406\u5458\u53EF\u4EE5\u7BA1\u7406\u7AD9\u70B9\u3002",description:"\u7AD9\u70B9\u7BA1\u7406\u5458\u7684\u63D0\u793A"},"message.adminsTip2":{message:"\u53EF\u5728\u6B64\u5904\u589E\u5220\u7BA1\u7406\u5458 ID\uFF0C\u53EF\u5230 https://auth.acedata.cloud \u67E5\u770B\u7528\u6237 ID",description:"\u7AD9\u70B9\u7BA1\u7406\u5458\u7684\u63D0\u793A"},"message.keywordsTip":{message:"\u7AD9\u70B9\u5173\u952E\u8BCD\uFF0C\u4F4D\u4E8E\u7AD9\u70B9\u5143\u4FE1\u606F\u4E2D\uFF0C\u7528\u4E8E\u7AD9\u70B9 SEO \u4F18\u5316\u3002",description:"\u7AD9\u70B9\u5173\u952E\u8BCD\u7684\u63D0\u793A"},"message.keywordsTip2":{message:"\u53EF\u5728\u6B64\u5904\u589E\u5220\u7F51\u7AD9\u5173\u952E\u8BCD\uFF0C\u5173\u952E\u8BCD\u8D8A\u7CBE\u51C6\uFF0C\u8D8A\u6709\u5229\u4E8E SEO \u4F18\u5316\u3002",description:"\u7AD9\u70B9\u5173\u952E\u8BCD\u7684\u63D0\u793A"},"message.featuresChat":{message:"\u6253\u5F00\u6216\u5173\u95ED Chat \u529F\u80FD\u6A21\u5757\u3002",description:"Chat \u529F\u80FD\u7684\u63CF\u8FF0"},"message.featuresGrok":{message:"\u6253\u5F00\u6216\u5173\u95ED Grok \u529F\u80FD\u6A21\u5757\u3002",description:"Grok \u529F\u80FD\u7684\u63CF\u8FF0"},"message.featuresDeepseek":{message:"\u6253\u5F00\u6216\u5173\u95ED Deepseek \u529F\u80FD\u6A21\u5757\u3002",description:"Deepseek \u529F\u80FD\u7684\u63CF\u8FF0"},"message.featuresChatgpt":{message:"\u6253\u5F00\u6216\u5173\u95ED ChatGPT \u529F\u80FD\u6A21\u5757\u3002",description:"ChatGPT \u529F\u80FD\u7684\u63CF\u8FF0"},"message.featuresMidjourney":{message:"\u6253\u5F00\u6216\u5173\u95ED Midjourney \u529F\u80FD\u6A21\u5757\u3002",description:"Midjourney \u529F\u80FD\u7684\u63CF\u8FF0"},"message.featuresChatdoc":{message:"\u6253\u5F00\u6216\u5173\u95ED Chatdoc \u529F\u80FD\u6A21\u5757\u3002",description:"Chatdoc \u529F\u80FD\u7684\u63CF\u8FF0"},"message.featuresQrart":{message:"\u6253\u5F00\u6216\u5173\u95ED Qrart \u529F\u80FD\u6A21\u5757\u3002",description:"Qrart \u529F\u80FD\u7684\u63CF\u8FF0"},"message.featuresSuno":{message:"\u6253\u5F00\u6216\u5173\u95ED Suno \u529F\u80FD\u6A21\u5757\u3002",description:"Suno \u529F\u80FD\u7684\u63CF\u8FF0"},"message.featuresFlux":{message:"\u6253\u5F00\u6216\u5173\u95ED FLux \u529F\u80FD\u6A21\u5757\u3002",description:"FLux \u529F\u80FD\u7684\u63CF\u8FF0"},"message.featuresLuma":{message:"\u6253\u5F00\u6216\u5173\u95ED Luma \u529F\u80FD\u6A21\u5757\u3002",description:"Luma \u529F\u80FD\u7684\u63CF\u8FF0"},"message.featuresPika":{message:"\u6253\u5F00\u6216\u5173\u95ED Pika \u529F\u80FD\u6A21\u5757\u3002",description:"Pika \u529F\u80FD\u7684\u63CF\u8FF0"},"message.featuresKling":{message:"\u6253\u5F00\u6216\u5173\u95ED Kling \u529F\u80FD\u6A21\u5757\u3002",description:"Kling \u529F\u80FD\u7684\u63CF\u8FF0"},"message.featuresHailuo":{message:"\u6253\u5F00\u6216\u5173\u95ED Hailuo \u529F\u80FD\u6A21\u5757\u3002",description:"Hailuo \u529F\u80FD\u7684\u63CF\u8FF0"},"message.featuresHeadshots":{message:"\u6253\u5F00\u6216\u5173\u95ED AI\u8BC1\u4EF6\u7167 \u529F\u80FD\u6A21\u5757\u3002",description:"AI\u8BC1\u4EF6\u7167 \u529F\u80FD\u7684\u63CF\u8FF0"},"message.featuresSupport":{message:"\u6253\u5F00\u6216\u5173\u95ED\u5BA2\u670D\u652F\u6301",description:"Support \u529F\u80FD\u7684\u63CF\u8FF0"},"message.featuresI18n":{message:"\u6253\u5F00\u6216\u5173\u95ED\u591A\u8BED\u8A00\u652F\u6301\uFF0C\u5173\u95ED\u540E\uFF0C\u7528\u6237\u53EA\u80FD\u4F7F\u7528\u9ED8\u8BA4\u8BED\u8A00\u3002",description:"\u591A\u8BED\u8A00\u652F\u6301\u7684\u63CF\u8FF0"},"button.upload":{message:"\u4E0A\u4F20",description:"\u4E0A\u4F20"},"button.enabled":{message:"\u5DF2\u542F\u7528",description:"\u5F00\u5173\u6587\u5B57\uFF0C\u8868\u793A\u5DF2\u7ECF\u542F\u7528"},"button.disabled":{message:"\u5DF2\u7981\u7528",description:"\u5F00\u5173\u6587\u5B57\uFF0C\u8868\u793A\u5DF2\u7ECF\u7981\u7528"}};export{e as default};
|
package/dist/index.html
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
s.parentNode.insertBefore(hm, s);
|
|
17
17
|
})();
|
|
18
18
|
</script>
|
|
19
|
-
<script type="module" crossorigin src="/assets/index.
|
|
19
|
+
<script type="module" crossorigin src="/assets/index.531671ec.js"></script>
|
|
20
20
|
<link rel="modulepreload" href="/assets/vendor-@vue.8cef8b94.js">
|
|
21
21
|
<link rel="modulepreload" href="/assets/vendor-element-plus.7eade167.js">
|
|
22
22
|
<link rel="modulepreload" href="/assets/vendor-others.e28a6fa7.js">
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<link rel="modulepreload" href="/assets/vendor-qrcode.ef88fffc.js">
|
|
25
25
|
<link rel="modulepreload" href="/assets/vendor-fortawesome.0d8f27df.js">
|
|
26
26
|
<link rel="stylesheet" href="/assets/vendor-others.fbff9a31.css">
|
|
27
|
-
<link rel="stylesheet" href="/assets/index.
|
|
27
|
+
<link rel="stylesheet" href="/assets/index.56bf2312.css">
|
|
28
28
|
</head>
|
|
29
29
|
<body>
|
|
30
30
|
<div id="app">
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@keyframes blink{0%{opacity:1}50%{opacity:0}to{opacity:1}}.mark{width:2px;height:16px;margin-top:3px;background-color:var(--el-text-color-primary);animation:blink 1s infinite}.icon-sync[data-v-18116778]{margin-left:5px;cursor:pointer;color:inherit}.icon-edit[data-v-5c26bf56]{cursor:pointer;color:inherit}.file[data-v-5e8b97e5]{cursor:pointer;position:relative;border-radius:10px;height:50px;width:250px;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;background-color:var(--el-bg-color)}.file .el-progress[data-v-5e8b97e5]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:25px;height:25px;z-index:10;margin:auto}.file .left[data-v-5e8b97e5]{height:50px;width:50px;display:flex;align-items:center;justify-content:center}.file .left .wrapper[data-v-5e8b97e5]{position:relative;width:35px;height:35px;display:flex;align-items:center;justify-content:center;border-radius:10px;color:#fff;background-color:#10a37f;margin:auto}.file .right[data-v-5e8b97e5]{width:calc(100% - 60px);height:50px;display:flex;align-items:center;justify-content:flex-start;padding-left:2px;font-size:14px;color:var(--el-text-color-primary);text-overflow:ellipsis}.file .close[data-v-5e8b97e5]{position:absolute;cursor:pointer;top:5px;right:5px;background-color:#000000b3;color:#fff;width:15px;border-radius:50%;height:15px;display:flex;font-size:10px;text-align:center;align-items:center;justify-content:center}.error[data-v-f0476f80]{width:-moz-fit-content;width:fit-content;padding:10px 5px 8px;height:45px;border-radius:10px 10px 10px 0}.btn-buy[data-v-f0476f80]{margin:10px auto;border-radius:20px}.message[data-v-f0476f80]{display:flex;flex-direction:row;margin-bottom:15px}.message[role=system][data-v-f0476f80],.message.hidden[data-v-f0476f80]{display:none}.message .author[data-v-f0476f80]{width:50px;padding:10px}.message .author .avatar[data-v-f0476f80]{width:30px;height:30px;border-radius:50%;border:1px solid var(--el-border-color)}.message .main[data-v-f0476f80]{flex:1;width:calc(100% - 50px);display:flex;flex-direction:column}.message.assistant[data-v-f0476f80]{align-items:start}.message.assistant .content[data-v-f0476f80]{color:var(--el-text-color-primary)}.message.assistant .btn-buy[data-v-f0476f80]{display:inline-block;margin-left:5px}.message.user .main[data-v-f0476f80]{align-items:end}.message.user .content[data-v-f0476f80]{background-color:var(--el-bg-color-page);color:var(--el-text-color-primary);width:-moz-fit-content;width:fit-content;text-align:left;max-width:100%;position:relative}.message.user .content .edits[data-v-f0476f80]{background-color:var(--el-bg-color-page);padding:0;min-width:500px;width:100%;height:100%;font-size:16px}.message.user .content .edits .btn-confirm[data-v-f0476f80]{background-color:var(--el-color-black);border-color:var(--el-color-black)}.message .content[data-v-f0476f80]{border-radius:15px;padding:8px 15px;width:100%;max-width:800px;margin-bottom:5px}.message .content .image[data-v-f0476f80]{max-width:100%;max-height:300px;margin:5px 0;border-radius:10px}.message .content .edit-area[data-v-f0476f80]{width:100%;min-height:100px;border-radius:10px;padding:8px;margin-bottom:10px}.message .content .edit-buttons[data-v-f0476f80]{display:flex;justify-content:flex-end;gap:10px}.message .operations[data-v-f0476f80]{display:flex;gap:10px;margin-left:5px;color:var(--el-text-color-regular)}.message .operations .btn-edit[data-v-f0476f80]{visibility:hidden}.message .operations .btn-restart[data-v-f0476f80],.message .operations .btn-copy[data-v-f0476f80]{font-size:12px}.message:hover .operations .btn-edit[data-v-f0476f80]{visibility:visible}.message.user .content .edits textarea{outline:none;box-shadow:none;border-radius:0;font-size:16px;border-color:var(--el-bg-color-page);resize:none;background-color:var(--el-bg-color-page);color:var(--el-text-color-primary)}.image[data-v-11203584]{width:50px;height:50px;position:relative}.image .close[data-v-11203584]{position:absolute;cursor:pointer;top:5px;right:5px;background-color:#000000b3;color:#fff;width:15px;border-radius:50%;height:15px;display:flex;font-size:10px;text-align:center;align-items:center;justify-content:center}.image .el-progress[data-v-11203584]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:30px;height:30px;z-index:10;margin:auto}.image img[data-v-11203584]{-o-object-fit:cover;object-fit:cover}textarea.input{font-size:14px;min-height:55px;max-height:150px;border:none;background:none;box-shadow:none;resize:none;line-height:25px;width:calc(100% - 80px);font-family:var(--el-font-family);padding-top:6px}textarea.input:focus{outline:none}.composer{position:relative}.composer .input textarea{max-height:100px;border:none;background:none;box-shadow:none;resize:none;line-height:35px}.composer .el-upload-list{position:absolute;bottom:-5px;left:50px;height:50px;width:700px;margin:0;padding:0;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;overflow-x:auto;gap:5px;overflow-y:scroll;flex-wrap:wrap}.composer .el-upload-list .el-upload-list__item{margin:0;width:-moz-fit-content;width:fit-content;height:50px;padding:0;border-radius:10px;position:relative}.composer .el-textarea.is-disabled .el-textarea__inner{background-color:initial}.composer[data-v-a443d292]{width:100%;max-width:800px;margin:auto;position:relative;border-radius:20px;border:1px solid var(--el-border-color-lighter);padding:5px}.composer .upload[data-v-a443d292]{display:inline-block}.composer .upload.disabled .btn-upload[data-v-a443d292]{cursor:not-allowed;pointer-events:none;color:var(--el-text-color-disabled)!important}.composer .upload.disabled .btn-upload .icon-attachment[data-v-a443d292]{color:var(--el-text-color-disabled)!important}.composer .input[data-v-a443d292]{border:none;width:calc(100% - 16px);margin-left:8px;margin-top:5px;font-size:16px;margin-bottom:50px}.composer .tools[data-v-a443d292]{position:absolute;left:15px;bottom:15px;display:flex;flex-direction:row;align-items:flex-start}.composer .tools .btn[data-v-a443d292]{display:block;margin-right:10px;z-index:100;cursor:pointer;border:1px solid var(--el-border-color-lighter);width:-moz-fit-content;width:fit-content;height:36px;line-height:36px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.composer .tools .btn.disabled[data-v-a443d292]{cursor:not-allowed;pointer-events:none;color:var(--el-text-color-disabled)!important}.composer .tools .btn.btn-upload[data-v-a443d292]{border-radius:50%;width:36px;text-align:center;color:var(--el-text-color-secondary)}.composer .tools .btn.btn-upload .icon-attachment[data-v-a443d292]{font-size:16px;color:var(--el-text-color-primary)}.composer .btn-send[data-v-a443d292],.composer .btn-stop[data-v-a443d292]{position:absolute;bottom:15px;right:15px;border-radius:50%;width:36px;height:36px;line-height:36px;text-align:center;background-color:var(--el-color-black);color:var(--el-color-white);font-size:16px}.composer .btn-send.disabled[data-v-a443d292],.composer .btn-stop.disabled[data-v-a443d292]{display:none;cursor:not-allowed}.selector[data-v-358d65be]{cursor:pointer;padding:7px 6px;border-radius:15px;margin-bottom:10px}.selector .name[data-v-358d65be]{font-size:16px;font-weight:700;display:inline-block;margin-right:5px}.selector .angle[data-v-358d65be]{display:inline-block;width:15px}.icon[data-v-358d65be]{display:flex;justify-content:center;align-items:center;margin-right:5px}.icon img[data-v-358d65be]{width:18px;height:18px;border-radius:50%}.item[data-v-358d65be]{display:flex;flex-direction:row}.item .icon img[data-v-358d65be]{width:30px;height:30px;border-radius:50%}.item .info[data-v-358d65be]{width:calc(100% - 15px)}.item .info .name[data-v-358d65be]{font-size:14px;font-weight:700;color:var(--el-text-color-primary);margin:0}.item .info .description[data-v-358d65be]{font-size:12px;color:var(--el-text-color-secondary);margin:0}.disclaimer[data-v-42e751f2]{font-size:12px;color:var(--el-text-color-secondary)}.panel[data-v-d866c834]{display:flex;flex-direction:column;align-items:flex-end;padding:10px;width:250px;height:100%;border-right:none}.panel .conversations[data-v-d866c834]{width:100%;display:flex;flex-direction:column;align-items:center}.panel .conversations .group[data-v-d866c834]{width:100%;display:flex;flex-direction:column;margin-top:10px}.panel .conversations .group .key[data-v-d866c834]{font-size:12px;font-weight:600;width:100%;line-height:40px;padding-left:10px;color:var(--el-text-color-secondary)}.panel .conversations .conversation[data-v-d866c834]{width:100%;height:40px;display:flex;flex-direction:row;line-height:40px;border-radius:10px;padding:0 10px;color:var(--el-text-color-primary);cursor:pointer}.panel .conversations .conversation.active[data-v-d866c834],.panel .conversations .conversation[data-v-d866c834]:hover{background-color:var(--el-bg-color-page)}.panel .conversations .conversation.active .operations[data-v-d866c834],.panel .conversations .conversation:hover .operations[data-v-d866c834]{display:block}.panel .conversations .conversation .icons[data-v-d866c834]{width:30px;padding-left:10px}.panel .conversations .conversation .icons .icon[data-v-d866c834]{font-size:14px}.panel .conversations .conversation .title[data-v-d866c834]{flex:1;font-size:14px;line-height:40px;overflow:hidden;text-overflow:ellipsis;padding-right:8px;color:var(--el-text-color-primary)}.panel .conversations .conversation .operations[data-v-d866c834]{display:none;width:40px;color:var(--el-text-color-regular)}.panel .conversations .conversation .operations .icon[data-v-d866c834]{cursor:pointer;font-size:14px;margin-right:6px}.main[data-v-8d7a06d2]{flex:1;display:flex;flex-direction:row}.main .side[data-v-8d7a06d2]{width:250px;height:100%;overflow-y:scroll;border-right:1px solid var(--el-border-color)}.main .chat[data-v-8d7a06d2]{padding:45px 0 0 15px;flex:1;width:calc(100% - 250px);height:100%;display:flex;flex-direction:column;position:relative}.menu[data-v-8d7a06d2]{display:none}@media (max-width: 767px){.side[data-v-8d7a06d2]{display:none}.chat[data-v-8d7a06d2]{width:100%}.menu[data-v-8d7a06d2]{display:block;position:fixed;right:20px;top:20px;z-index:2000}}.selector[data-v-3ab2fb26]{width:-moz-max-content;width:max-content;margin-bottom:10px;position:absolute;left:10px;top:10px;z-index:100}.setting[data-v-3ab2fb26]{position:absolute;top:10px;right:10px;margin-bottom:10px}@media (max-width: 767px){.setting[data-v-3ab2fb26]{display:none}}.dialogue[data-v-3ab2fb26]{display:flex;flex-direction:column;width:100%;height:100%;overflow-y:auto;position:relative}.dialogue .disclaimer[data-v-3ab2fb26]{width:100%;text-align:center;font-size:12px}.dialogue.empty[data-v-3ab2fb26]{position:relative}.dialogue.empty .starter[data-v-3ab2fb26]{position:absolute;width:100%;top:50%;left:50%;transform:translate(-50%,-50%)}.dialogue .messages[data-v-3ab2fb26]{padding-top:10px;padding:0 calc(50% - 400px);flex:1;overflow-y:scroll}.dialogue .messages .message[data-v-3ab2fb26]{margin-bottom:15px}.dialogue .starter[data-v-3ab2fb26]{height:-moz-fit-content;height:fit-content}.bottom[data-v-3ab2fb26]{width:100%}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as de}from"./vendor-axios.168e6950.js";import{ad as ce}from"./vendor-others.e28a6fa7.js";import{_ as I,M as J,N,O as oe,P as ne,Q as W,T as ue,U as pe,V as me,W as he,X as ge,Y as Z,Z as M,K as _e,C as fe,$ as j,a0 as x,a1 as ee,a2 as Q,a3 as H,a4 as K,a5 as $e,a6 as ye,a7 as ve}from"./index.a20291ec.js";import{H as D,o as n,e as u,al as l,L as f,M as C,V as m,f as r,O as T,W as B,T as R,R as v,av as we,U as L,ai as P,as as X,$ as A,S as z,P as O,aw as Ce,a0 as ke,I as se}from"./vendor-@vue.8cef8b94.js";import{M as be}from"./MarkdownRenderer.493a4628.js";import{C as Ee}from"./CopyToClipboard.3b265ba5.js";import{ar as G}from"./vendor-fortawesome.0d8f27df.js";import{s as Y,P as ae,I as Re,u as ie,m as Se,t as re,x as qe,y as te,h as Ie,i as De,j as Ne,H as Ge,Q as Ae}from"./vendor-element-plus.7eade167.js";import"./vendor-qrcode.ef88fffc.js";import"./vendor-markdown.4f590479.js";import"./vendor-highlight.js.6ee9ffbc.js";const Oe=D({name:"AnsweringMark",data(){return{}},computed:{conversationId(){var e,s;return(s=(e=this.$route.params)==null?void 0:e.id)==null?void 0:s.toString()}}}),Te={class:"mark"};function Me(e,s,o,p,h,a){return n(),u("div",Te)}var Le=I(Oe,[["render",Me],["__file","/home/runner/work/Nexior/Nexior/src/components/chat/AnsweringMark.vue"]]);const Pe=D({name:"CopyToClipboard",components:{FontAwesomeIcon:G,ElTooltip:Y},props:{messages:{type:Array,required:!1,default:()=>[]}},emits:["restart"],data(){return{copied:!1}},methods:{onRestart(){this.$emit("restart")}}});function Ue(e,s,o,p,h,a){const i=l("font-awesome-icon"),d=l("el-tooltip");return n(),f(d,{effect:"dark",content:e.$t("common.button.restart"),placement:"bottom"},{default:C(()=>[m(i,{icon:"fa-solid fa-sync",class:"icon-sync",onClick:e.onRestart},null,8,["onClick"])]),_:1},8,["content"])}var Ve=I(Pe,[["render",Ue],["__scopeId","data-v-18116778"],["__file","/home/runner/work/Nexior/Nexior/src/components/chat/RestartToGenerate.vue"]]);const Fe=D({name:"EditMessage",components:{FontAwesomeIcon:G,ElTooltip:Y},props:{messages:{type:Array,required:!1,default:()=>[]}},emits:["click"],data(){return{copied:!1}},methods:{onEdit(){this.$emit("click")}}});function He(e,s,o,p,h,a){const i=l("font-awesome-icon"),d=l("el-tooltip");return n(),u("span",null,[m(d,{effect:"dark",content:e.$t("common.button.restart"),placement:"bottom"},{default:C(()=>[m(i,{icon:"fa-solid fa-edit",class:"icon icon-edit",onClick:e.onEdit},null,8,["onClick"])]),_:1},8,["content"])])}var Be=I(Fe,[["render",He],["__scopeId","data-v-5c26bf56"],["__file","/home/runner/work/Nexior/Nexior/src/components/chat/EditMessage.vue"]]);const We=D({name:"FilePreview",components:{FontAwesomeIcon:G,ElProgress:ae},props:{name:{type:String,required:!0},percentage:{type:Number,required:!0},closable:{type:Boolean,required:!1,default:!0}},emits:["remove"],methods:{isImageUrl:J}}),je={class:"file"},Ke={class:"left"},ze={class:"wrapper"},Qe={class:"right"},Je={class:"text-xs font-bold truncate"},Xe={key:0,class:"close"};function Ye(e,s,o,p,h,a){const i=l("font-awesome-icon"),d=l("el-progress");return n(),u("div",je,[r("div",Ke,[r("div",ze,[m(i,{icon:"fa-regular fa-file-alt"}),T(m(d,{type:"circle","stroke-width":3,percentage:e.percentage,width:25},null,8,["percentage"]),[[B,e.percentage&&e.percentage<100]])])]),r("div",Qe,[r("span",Je,R(e.name),1)]),e.closable?(n(),u("div",Xe,[m(i,{icon:"fa-solid fa-xmark",class:"icon icon-close",onClick:s[0]||(s[0]=$=>e.$emit("remove"))})])):v("v-if",!0)])}var le=I(We,[["render",Ye],["__scopeId","data-v-5e8b97e5"],["__file","/home/runner/work/Nexior/Nexior/src/components/chat/FilePreview.vue"]]);const Ze=D({name:"Message",components:{EditMessage:Be,CopyToClipboard:Ee,RestartToGenerate:Ve,AnsweringMark:Le,MarkdownRenderer:be,ElAlert:Re,FilePreview:le,ElButton:ie,ElImage:Se,ElInput:re},props:{messages:{type:Array,required:!1,default:()=>[]},message:{type:Object,required:!0},application:{type:Object,required:!0}},emits:["stop","edit","restart"],data(){return{copied:!1,isEditing:!1,questionValue:this.message.content,messageState:N}},computed:{modelGroup(){return this.$store.state.chat.modelGroup},errorText(){var e,s,o;if(console.debug("error",this.message.error),!(!this.message.error||!((e=this.message.error)!=null&&e.code))){if((s=this.message.error)!=null&&s.message)return this.message.error.message;switch((o=this.message.error)==null?void 0:o.code){case Z:return this.$t("chat.message.errorUsedUp");case ge:return this.$t("chat.message.errorApiError");case he:return this.$t("chat.message.errorBadRequest");case me:return this.$t("chat.message.errorTimeout");case pe:return this.$t("chat.message.errorTooManyRequests");case ue:return this.$t("chat.message.errorContentTooLarge");case W:return this.$t("chat.message.errorNotApplied");case ne:return;case oe:default:return this.$t("chat.message.errorUnknown")}}},showBuyMore(){var e;return this.message.role===M&&((e=this.message.error)==null?void 0:e.code)===Z}},watch:{},methods:{startEditing(){this.isEditing=!0,this.questionValue=this.message.content,console.debug("start to get answer",this.message)},cancelEdit(){this.isEditing=!1},onRestart(){this.$emit("restart",this.message)},onEdit(){this.isEditing=!1,this.onSubmit()},onSubmit(){this.$emit("edit",this.message,this.questionValue)},onCopy(){ce(this.message.content.toString(),{debug:!0}),this.copied=!0,setTimeout(()=>{this.copied=!1},3e3)},onBuyMore(){var e;this.$router.push({name:_e,params:{id:(e=this.application)==null?void 0:e.id}})}}}),xe=["role"],es={class:"author"},ss={key:0,class:"main"},ts={initial:{opacity:0,y:5},enter:{opacity:1,y:0,scale:1},delay:200,duration:300,layout:!0,transition:{enter:{delay:.2,duration:.5},layout:{duration:.3,easing:"ease-in-out"}},class:"content"},os={key:0,class:"message-content"},ns={key:1},as=["src"],is={key:1,class:"edits"},rs={class:"flex justify-end"},ls={class:"operations"};function ds(e,s,o,p,h,a){var E;const i=l("el-image"),d=l("markdown-renderer"),$=l("file-preview"),y=l("el-input"),c=l("el-button"),t=l("answering-mark"),k=l("edit-message"),S=l("copy-to-clipboard"),g=l("restart-to-generate"),_=l("el-alert"),q=we("motion");return n(),u("div",{class:O({message:!0,[e.message.role]:!0}),role:e.message.role},[r("div",es,[e.message.role==="assistant"?(n(),f(i,{key:0,src:e.modelGroup.icon,fit:"cover",class:"avatar"},null,8,["src"])):v("v-if",!0)]),e.errorText?(n(),f(_,{key:1,class:"error",title:e.errorText,type:"error",closable:!1},null,8,["title"])):(n(),u("div",ss,[T((n(),u("div",ts,[e.isEditing?(n(),u("div",is,[m(y,{modelValue:e.questionValue,"onUpdate:modelValue":s[0]||(s[0]=w=>e.questionValue=w),type:"textarea",class:"mb-2",onKeydown:X(A(e.onEdit,["exact","prevent"]),["enter"])},null,8,["modelValue","onKeydown"]),r("div",rs,[m(c,{round:"",onClick:e.cancelEdit},{default:C(()=>[z(R(e.$t("common.button.cancel")),1)]),_:1},8,["onClick"]),m(c,{type:"primary",class:"btn-confirm",round:"",onClick:e.onEdit},{default:C(()=>[z(R(e.$t("common.button.confirm")),1)]),_:1},8,["onClick"])])])):(n(),u("div",os,[Array.isArray(e.message.content)?(n(),u("div",ns,[(n(!0),u(L,null,P(e.message.content,(w,U)=>{var V,F;return n(),u("div",{key:U},[w.type==="image_url"?(n(),u("img",{key:0,src:typeof(w==null?void 0:w.image_url)=="string"?w.image_url:(V=w.image_url)==null?void 0:V.url,fit:"cover",class:"image"},null,8,as)):v("v-if",!0),w.file_url?(n(),f($,{key:1,name:typeof(w==null?void 0:w.file_url)=="string"?w.file_url:(F=w.file_url)==null?void 0:F.url,percentage:0,closable:!1,class:"mt-2"},null,8,["name"])):v("v-if",!0),w.type==="text"?(n(),f(d,{key:U,content:w.text},null,8,["content"])):v("v-if",!0)])}),128))])):(n(),f(d,{key:0,content:(E=e.message)==null?void 0:E.content},null,8,["content"]))])),e.message.state===e.messageState.PENDING?(n(),f(t,{key:2})):v("v-if",!0)])),[[q]]),r("div",ls,[e.message.role==="user"&&!e.isEditing&&!Array.isArray(e.message.content)?(n(),f(k,{key:0,class:"btn-edit",onClick:e.startEditing},null,8,["onClick"])):v("v-if",!0),!Array.isArray(e.message.content)&&(e.message.state===e.messageState.FINISHED||e.message.state===e.messageState.FAILED)?(n(),f(S,{key:1,content:e.message.content,class:"btn-copy"},null,8,["content"])):v("v-if",!0),!Array.isArray(e.message.content)&&(e.message.state===e.messageState.FINISHED||e.message.state===e.messageState.FAILED)&&e.message.role==="assistant"&&e.message===e.messages[e.messages.length-1]?(n(),f(g,{key:2,class:"btn-restart",messages:e.messages,onRestart:e.onRestart},null,8,["messages","onRestart"])):v("v-if",!0)])])),e.showBuyMore?(n(),f(c,{key:2,round:"",type:"primary",class:"btn btn-buy",size:"small",onClick:e.onBuyMore},{default:C(()=>[z(R(e.$t("common.button.buyMore")),1)]),_:1},8,["onClick"])):v("v-if",!0)],10,xe)}var cs=I(Ze,[["render",ds],["__scopeId","data-v-f0476f80"],["__file","/home/runner/work/Nexior/Nexior/src/components/chat/Message.vue"]]);const us=D({name:"ImagePreview",components:{FontAwesomeIcon:G,ElProgress:ae},props:{url:{type:String,required:!0},name:{type:String,required:!0},percentage:{type:Number,required:!0},closable:{type:Boolean,required:!1,default:!0}},emits:["remove"]}),ps={class:"image"},ms=["src","alt"],hs={key:0,class:"close"};function gs(e,s,o,p,h,a){const i=l("el-progress"),d=l("font-awesome-icon");return n(),u("div",ps,[r("img",{class:"size-10",src:e.url,alt:e.name},null,8,ms),T(m(i,{type:"circle","stroke-width":3,percentage:e.percentage,width:30},null,8,["percentage"]),[[B,e.percentage&&e.percentage<100]]),e.closable?(n(),u("div",hs,[m(d,{icon:"fa-solid fa-xmark",class:"icon icon-close",onClick:s[0]||(s[0]=A($=>e.$emit("remove"),["stop"]))})])):v("v-if",!0)])}var _s=I(us,[["render",gs],["__scopeId","data-v-11203584"],["__file","/home/runner/work/Nexior/Nexior/src/components/chat/ImagePreview.vue"]]);const fs=D({name:"Composer",components:{FilePreview:le,ImagePreview:_s,ElTooltip:Y,FontAwesomeIcon:G,ElUpload:qe},props:{disabled:{type:Boolean,required:!1,default:!1},references:{type:Array,required:!1,default:()=>[]},question:{type:String,required:!0}},emits:["update:question","update:references","submit","stop"],data(){return{inputHeight:"35px",questionValue:this.question,fileList:[],uploadUrl:fe()+"/api/v1/files/"}},computed:{model(){return this.$store.state.chat.model},modelGroup(){return this.$store.state.chat.modelGroup},headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>{var s;return(s=e==null?void 0:e.response)==null?void 0:s.file_url})}},watch:{urls(e){console.debug("File URLs:",e),e.length>0&&this.$emit("update:references",e)},questionValue(e){this.$emit("update:question",e)},question(e){e!==this.questionValue&&(this.questionValue=e)},references(e){console.debug("References updated:",e),e.length===0&&(this.fileList=[])}},methods:{isImageUrl:J,adjustTextareaHeight(){this.$nextTick(()=>{const e=this.$refs.textarea;e&&(e.style.height="35px",e.style.height=e.scrollHeight+"px")})},onSubmit(){!this.question||this.$emit("submit")},onStop(){this.$emit("stop")},onProgress(e,s,o){console.debug("File upload progress:",s.name,e.loaded,e.total)},onExceed(){te.warning(this.$t("chat.message.uploadReferencesExceed"))},onError(){te.error(this.$t("chat.message.uploadReferencesError"))}}}),$s={class:"composer"},ys={class:"tools"},vs=["disabled","placeholder"];function ws(e,s,o,p,h,a){const i=l("image-preview"),d=l("file-preview"),$=l("font-awesome-icon"),y=l("el-tooltip"),c=l("el-upload");return n(),u("div",$s,[r("div",ys,[m(c,{"file-list":e.fileList,"onUpdate:fileList":s[0]||(s[0]=t=>e.fileList=t),class:O({upload:!0,disabled:!e.model.isFileSupported||e.disabled}),disabled:!e.model.isFileSupported||e.disabled,name:"file",limit:10,multiple:!0,action:e.uploadUrl,"list-type":"picture","on-exceed":e.onExceed,"on-error":e.onError,"on-progress":e.onProgress,headers:e.headers},{file:C(({file:t})=>{var k;return[e.isImageUrl(t.name)?(n(),f(i,{key:0,url:t.url||((k=t.response)==null?void 0:k.file_url),name:t.name,percentage:t.percentage,onRemove:S=>e.fileList.splice(e.fileList.indexOf(t),1)},null,8,["url","name","percentage","onRemove"])):(n(),f(d,{key:1,name:t.name,percentage:t.percentage,onRemove:S=>e.fileList.splice(e.fileList.indexOf(t),1)},null,8,["name","percentage","onRemove"]))]}),default:C(()=>[m(y,{class:"box-item",effect:"dark",content:e.$t("chat.message.uploadFile"),placement:"bottom"},{default:C(()=>[r("span",{class:O({btn:!0,"btn-upload":!0,disabled:!e.model.isFileSupported||e.disabled})},[m($,{icon:"fa-solid fa-plus",class:"icon icon-attachment"})],2)]),_:1},8,["content"])]),_:1},8,["file-list","class","disabled","action","on-exceed","on-error","on-progress","headers"])]),T(r("span",{class:O({btn:!0,"btn-send":!0,disabled:!e.questionValue}),onClick:s[1]||(s[1]=(...t)=>e.onSubmit&&e.onSubmit(...t))},[m($,{icon:"fa-solid fa-location-arrow",class:"icon icon-send"})],2),[[B,!e.disabled]]),T(r("span",{class:O({btn:!0,"btn-stop":!0,disabled:!e.disabled}),onClick:s[2]||(s[2]=(...t)=>e.onStop&&e.onStop(...t))},[m($,{icon:"fa-solid fa-stop",class:"icon icon-stop"})],2),[[B,e.disabled]]),T(r("textarea",{ref:"textarea","onUpdate:modelValue":s[3]||(s[3]=t=>e.questionValue=t),disabled:e.disabled,class:"input",placeholder:e.$t("chat.message.newMessagePlaceholder"),style:ke({height:e.inputHeight}),onKeydown:s[4]||(s[4]=X(A((...t)=>e.onSubmit&&e.onSubmit(...t),["exact","prevent"]),["enter"])),onInput:s[5]||(s[5]=(...t)=>e.adjustTextareaHeight&&e.adjustTextareaHeight(...t))},null,44,vs),[[Ce,e.questionValue]])])}var Cs=I(fs,[["render",ws],["__scopeId","data-v-a443d292"],["__file","/home/runner/work/Nexior/Nexior/src/components/chat/Composer.vue"]]);const ks=D({name:"ModelSelector",components:{ElDropdown:Ie,ElDropdownMenu:De,ElDropdownItem:Ne,FontAwesomeIcon:G},emits:["update:modelValue","select","model-group-changed","model-changed"],data(){return{options:[j,x,ee]}},computed:{model(){return console.log("model",this.$store.state.chat.model),this.$store.state.chat.model},modelGroup(){var e;return((e=this.$route.meta)==null?void 0:e.modelGroup)||j}},watch:{modelGroup(e){console.debug("modelGroup from route changed",e),this.$store.dispatch("chat/setModelGroup",e),this.$store.dispatch("chat/setModel",e.models[0])}},mounted(){console.debug("ModelSelector mounted, checking model group");const s=[j,x,ee].find(o=>o.name===this.modelGroup.name);console.debug("Found model group:",s),s&&(this.$store.dispatch("chat/setModelGroup",s),this.$store.dispatch("chat/setModel",s.models[0]))},methods:{onModelGroupChange(e){this.$store.dispatch("chat/setModelGroup",e),this.$emit("model-group-changed",e)},onModelChange(e){this.$store.dispatch("chat/setModel",e),this.$emit("model-changed",e)}}}),bs={class:"selector"},Es={class:"flex justify-center mr-1"},Rs={class:"icon"},Ss=["src"],qs={class:"name"},Is={class:"angle"},Ds={class:"item"},Ns={class:"icon"},Gs=["src"],As={class:"info"},Os={class:"name"},Ts={class:"description"},Ms={class:"flex justify-center"},Ls={class:"name"},Ps={class:"angle"},Us={class:"item"},Vs={class:"info"},Fs={key:0,class:"name"},Hs={key:1,class:"description"};function Bs(e,s,o,p,h,a){const i=l("font-awesome-icon"),d=l("el-dropdown-item"),$=l("el-dropdown-menu"),y=l("el-dropdown");return n(),u("div",bs,[T(m(y,{trigger:"click","popper-class":"popper"},{dropdown:C(()=>[m($,null,{default:C(()=>[(n(!0),u(L,null,P(e.options,(c,t)=>(n(),f(d,{key:t,onClick:k=>e.onModelGroupChange(c)},{default:C(()=>[r("div",Ds,[r("div",Ns,[r("img",{src:c.icon},null,8,Gs)]),r("div",As,[r("p",Os,R(c.getDisplayName()),1),r("p",Ts,R(c.getDescription()),1)])])]),_:2},1032,["onClick"]))),128))]),_:1})]),default:C(()=>{var c;return[r("div",Es,[r("span",Rs,[r("img",{src:e.modelGroup.icon},null,8,Ss)]),r("span",qs,R((c=e.modelGroup)==null?void 0:c.getDisplayName()),1),r("span",Is,[m(i,{icon:"fa-solid fa-angle-down"})])])]}),_:1},512),[[B,!1]]),m(y,{trigger:"click","popper-class":"popper"},{dropdown:C(()=>[e.modelGroup&&e.modelGroup.models?(n(),f($,{key:0},{default:C(()=>[(n(!0),u(L,null,P(e.modelGroup.models,(c,t)=>(n(),f(d,{key:t,onClick:k=>e.onModelChange(c)},{default:C(()=>[r("div",Us,[r("div",Vs,[c.getDisplayName?(n(),u("p",Fs,R(c.getDisplayName()),1)):v("v-if",!0),c.getDescription?(n(),u("p",Hs,R(c.getDescription()),1)):v("v-if",!0)])])]),_:2},1032,["onClick"]))),128))]),_:1})):v("v-if",!0)]),default:C(()=>{var c;return[r("div",Ms,[r("span",Ls,R((c=e.model)==null?void 0:c.getDisplayName()),1),r("span",Ps,[m(i,{icon:"fa-solid fa-angle-down"})])])]}),_:1})])}var Ws=I(ks,[["render",Bs],["__scopeId","data-v-358d65be"],["__file","/home/runner/work/Nexior/Nexior/src/components/chat/ModelSelector.vue"]]);const js={},Ks={class:"disclaimer"};function zs(e,s){return n(),u("p",Ks,R(e.$t("chat.message.howToUse")),1)}var Qs=I(js,[["render",zs],["__scopeId","data-v-42e751f2"],["__file","/home/runner/work/Nexior/Nexior/src/components/chat/Disclaimer.vue"]]);const Js=D({name:"SidePanel",components:{ElInput:re,FontAwesomeIcon:G,ElSkeleton:Ge},props:{},emits:["change-conversation"],computed:{modelGroup(){return this.$store.state.chat.modelGroup},conversationId(){var e,s,o;return console.debug("conversationId in side",(e=this.$route.params)==null?void 0:e.id),(o=(s=this.$route.params)==null?void 0:s.id)==null?void 0:o.toString()},conversationGroups(){var i,d,$,y,c,t,k,S;let e=this.$store.state.chat.conversations;console.debug("conversations",e),console.debug("modelGroup",this.modelGroup),e=e==null?void 0:e.filter(g=>{var _,q;return g.model&&((q=(_=this.modelGroup.models)==null?void 0:_.map(E=>E.name))==null?void 0:q.includes(g.model))}),console.debug("filtered conversations",e);const s=new Date;s.setHours(0,0,0,0);const o=new Date(s);o.setDate(o.getDate()-1);const p=new Date(s);p.setDate(p.getDate()-s.getDay());const h=new Date(p);h.setDate(h.getDate()-7);const a=e==null?void 0:e.reduce((g,_)=>{const q=new Date(_.updated_at*1e3);return q>=s?g.today.push(_):q>=o?g.yesterday.push(_):q>=p?g.thisWeek.push(_):g.earlier.push(_),g},{today:[],yesterday:[],thisWeek:[],earlier:[]});return{...((i=a==null?void 0:a.today)==null?void 0:i.length)>0?{today:(d=a==null?void 0:a.today)==null?void 0:d.sort((g,_)=>_.updated_at-g.updated_at)}:{},...(($=a==null?void 0:a.yesterday)==null?void 0:$.length)>0?{yesterday:(y=a==null?void 0:a.yesterday)==null?void 0:y.sort((g,_)=>_.updated_at-g.updated_at)}:{},...((c=a==null?void 0:a.thisWeek)==null?void 0:c.length)>0?{thisWeek:(t=a==null?void 0:a.thisWeek)==null?void 0:t.sort((g,_)=>_.updated_at-g.updated_at)}:{},...((k=a==null?void 0:a.earlier)==null?void 0:k.length)>0?{earlier:(S=a==null?void 0:a.earlier)==null?void 0:S.sort((g,_)=>_.updated_at-g.updated_at)}:{}}},application(){return this.$store.state.chat.application},loading(){return this.$store.state.chat.status.getConversations===Q.Request},token(){var e,s;return(s=(e=this.$store.state.chat)==null?void 0:e.credential)==null?void 0:s.token}},methods:{async onNewConversation(){console.debug("onNewConversation from side panel"),this.$emit("change-conversation",void 0)},async onConfirm(e){const s=this.token;if(!s){console.error("Token is not found");return}(e==null?void 0:e.deleting)&&e.id?(await H.deleteConversation(e.id,{token:s}),await this.$store.dispatch("chat/getConversations")):e!=null&&e.editing?(await H.updateConversation(e,{token:s}),await this.$store.dispatch("chat/getConversations")):e.editing=!0},onClickConversation(e){console.debug("onClickConversation in side panel",e),this.$emit("change-conversation",e)}}}),Xs={class:"panel"},Ys={key:1,class:"conversations"},Zs={class:"icons"},xs={class:"title"},et={class:"key"},st=["onClick"],tt={class:"title"},ot={key:0},nt={key:1},at={key:2},it={class:"operations"};function rt(e,s,o,p,h,a){const i=l("el-skeleton"),d=l("font-awesome-icon"),$=l("el-input");return n(),u("div",Xs,[e.loading&&e.conversationGroups===void 0?(n(),f(i,{key:0})):(n(),u("div",Ys,[r("div",{class:"conversation",onClick:s[0]||(s[0]=(...y)=>e.onNewConversation&&e.onNewConversation(...y))},[r("div",Zs,[m(d,{icon:"fa-solid fa-plus",class:"icon"})]),r("div",xs,R(e.$t("chat.message.startNewChat")),1)]),(n(!0),u(L,null,P(e.conversationGroups,(y,c)=>(n(),u("div",{key:c,class:"group"},[r("div",et,R(e.$t(`chat.group.${c}`)),1),(n(!0),u(L,null,P(y,(t,k)=>{var S,g,_,q;return n(),u("div",{key:k,class:O({conversation:!0,active:t.id===e.conversationId}),onClick:E=>e.onClickConversation(t.id)},[r("div",tt,[t!=null&&t.deleting?(n(),u("span",ot,R(`${e.$t("chat.message.confirmDelete")}?`),1)):t!=null&&t.editing?(n(),u("span",nt,[m($,{modelValue:t.title,"onUpdate:modelValue":E=>t.title=E,onKeydown:X(E=>e.onConfirm(t),["enter"])},null,8,["modelValue","onUpdate:modelValue","onKeydown"])])):(t==null?void 0:t.title)||(t==null?void 0:t.messages)?(n(),u("span",at,R((t==null?void 0:t.title)||((g=(S=t==null?void 0:t.messages)==null?void 0:S[(t==null?void 0:t.messages.length)-1])==null?void 0:g.content)||((q=(_=t==null?void 0:t.messages)==null?void 0:_[0])==null?void 0:q.content)),1)):v("v-if",!0)]),r("div",it,[!(t!=null&&t.editing)&&!t.deleting?(n(),f(d,{key:0,icon:"fa-solid fa-edit",class:"icon icon-edit",onClick:A(E=>t.editing=!0,["stop"])},null,8,["onClick"])):v("v-if",!0),!(t!=null&&t.editing)&&!t.deleting?(n(),f(d,{key:1,icon:"fa-solid fa-trash",class:"icon icon-delete",onClick:A(E=>t.deleting=!0,["stop"])},null,8,["onClick"])):v("v-if",!0),(t==null?void 0:t.editing)||t.deleting?(n(),f(d,{key:2,icon:"fa-solid fa-check",class:"icon icon-confirm",onClick:A(E=>e.onConfirm(t),["stop"])},null,8,["onClick"])):v("v-if",!0),(t==null?void 0:t.editing)||t.deleting?(n(),f(d,{key:3,icon:"fa-solid fa-xmark",class:"icon icon-cancel",onClick:A(E=>{t.editing=!1,t.deleting=!1},["stop"])},null,8,["onClick"])):v("v-if",!0)])],10,st)}),128))]))),128))]))])}var lt=I(Js,[["render",rt],["__scopeId","data-v-d866c834"],["__file","/home/runner/work/Nexior/Nexior/src/components/chat/SidePanel.vue"]]);const dt=D({name:"LayoutChat",components:{SidePanel:lt,ElDrawer:Ae,ElButton:ie,FontAwesomeIcon:G},emits:["change-conversation"],data(){return{drawer:!1}},methods:{onChangeConversation(e){console.debug("onChangeConversation in layout",e),this.$emit("change-conversation",e)}}}),ct={class:"main"},ut={class:"side"},pt={class:"chat"};function mt(e,s,o,p,h,a){const i=l("side-panel"),d=l("font-awesome-icon"),$=l("el-button"),y=l("el-drawer");return n(),u("div",ct,[r("div",ut,[se(e.$slots,"side",{},()=>[m(i,{onChangeConversation:e.onChangeConversation},null,8,["onChangeConversation"])],!0)]),r("div",pt,[se(e.$slots,"chat",{},void 0,!0)]),m($,{round:"",class:"menu",onClick:s[0]||(s[0]=c=>e.drawer=!0)},{default:C(()=>[m(d,{icon:"fa-solid fa-bars",class:"icon-menu"})]),_:1}),m(y,{modelValue:e.drawer,"onUpdate:modelValue":s[1]||(s[1]=c=>e.drawer=c),"with-header":!1,size:"290px",class:"drawer"},{default:C(()=>[m(i)]),_:1},8,["modelValue"])])}var ht=I(dt,[["render",mt],["__scopeId","data-v-8d7a06d2"],["__file","/home/runner/work/Nexior/Nexior/src/layouts/Chat.vue"]]);const gt=D({name:"ChatConversation",components:{Composer:Cs,Disclaimer:Qs,ModelSelector:Ws,Message:cs,Layout:ht},data(){var e,s;return{drawer:!1,question:"",references:[],upload:!1,answering:!1,canceler:void 0,messages:((s=(e=this.$store.state.chat.conversations)==null?void 0:e.find(o=>{var p;return o.id===((p=this.$route.params.id)==null?void 0:p.toString())}))==null?void 0:s.messages)||[]}},computed:{modelGroup(){return this.$store.state.chat.modelGroup},model(){return this.$store.state.chat.model},conversationId(){var e;return(e=this.$route.params.id)==null?void 0:e.toString()},conversation(){var e;return(e=this.$store.state.chat.conversations)==null?void 0:e.find(s=>s.id===this.conversationId)},service(){return this.$store.state.chat.service},application(){return this.$store.state.chat.application},applications(){return this.$store.state.chat.applications},credential(){var e;return(e=this.$store.state.chat)==null?void 0:e.credential},needApply(){return this.$store.state.chat.status.getApplications===Q.Success&&!this.application},conversations(){return this.$store.state.chat.conversations},initializing(){return this.$store.state.chat.status.getApplications===Q.Request}},watch:{async references(e){console.log("references changed",e)},async modelGroup(e){console.debug("modelGroup changed",e)},async conversationId(e){console.debug("conversationId changed",e)}},async mounted(){await this.onGetService(),await this.onGetApplication(),await this.onGetConversations()},methods:{async onGetService(){console.debug("start onGetService"),await this.$store.dispatch("chat/getService"),console.debug("end onGetService")},async onGetApplication(){console.debug("start onGetApplication"),await this.$store.dispatch("chat/getApplications"),console.debug("end onGetApplication")},async onGetConversations(){console.debug("start onGetConversations"),await this.$store.dispatch("chat/getConversations"),console.debug("end onGetConversations")},async onDraft(e){this.question=e,this.onSubmit()},async onStop(){this.canceler&&(this.canceler.abort(),this.answering=!1)},async onRestart(e){var d,$,y,c,t,k,S,g,_,q,E,w,U,V,F;const s=this.messages.findIndex(b=>b===e),o=this.messages[s-1];let p=[];if(s!==-1){if(p=this.messages.slice(0,s-1),this.messages=this.messages.slice(0,s),this.references=[],typeof o.content=="string")this.question=o.content;else if(Array.isArray(o.content))for(let b=0;b<(o==null?void 0:o.content.length);b++)o.content[b].type==="image_url"&&(typeof(($=(d=o==null?void 0:o.content)==null?void 0:d[b])==null?void 0:$.image_url)=="string"?this.references.push((c=(y=o==null?void 0:o.content)==null?void 0:y[b])==null?void 0:c.image_url):this.references.push((S=(k=(t=o==null?void 0:o.content)==null?void 0:t[b])==null?void 0:k.image_url)==null?void 0:S.url)),o.content[b].type==="file_url"&&(typeof((_=(g=o==null?void 0:o.content)==null?void 0:g[b])==null?void 0:_.file_url)=="string"?this.references.push((E=(q=o==null?void 0:o.content)==null?void 0:q[b])==null?void 0:E.file_url):this.references.push((V=(U=(w=o==null?void 0:o.content)==null?void 0:w[b])==null?void 0:U.file_url)==null?void 0:V.url)),o.content[b].type==="text"&&(this.question=o.content[b].text)}console.debug("onRestart!",this.question,JSON.stringify(this.references));const h=(F=this.credential)==null?void 0:F.token,a=this.question;if(!h||!a){console.error("no token or endpoint or question"),this.messages.push({error:{code:W},role:M,state:N.FAILED});return}let i=this.conversationId;H.updateConversation({id:this.conversationId,messages:p},{token:h}).then(async()=>{await this.$store.dispatch("chat/setConversation",{id:i,messages:this.messages}),console.debug("finished update conversation",this.messages),console.debug("onRestart",this.question),await this.onRequest()}).catch(b=>{this.handleRequestError(b)})},async onEdit(e,s){var a;const o=this.messages.findIndex(i=>i===e);o!==-1&&(this.messages=this.messages.slice(0,o)),this.question=s;const p=(a=this.credential)==null?void 0:a.token;if(!p){console.error("no token or endpoint or question"),this.messages.push({error:{code:W},role:M,state:N.FAILED});return}let h=this.conversationId;H.updateConversation({id:this.conversationId,messages:this.messages},{token:p}).then(async()=>{await this.$store.dispatch("chat/setConversation",{id:h,messages:this.messages}),console.debug("finished update conversation",this.messages),this.messages.push({content:this.question,role:K}),console.debug("onEdit",this.question),await this.onRequest()}).catch(i=>{this.handleRequestError(i)})},async onNewConversation(){this.$router.push({params:{id:""}}),this.messages=[],this.question="",this.references=[]},async onRestoreConversation(e){var i;console.debug("onRestoreConversation id",e),console.debug("onRestoreConversation route",this.$route);const s=this.$router.resolve({path:this.$route.path,params:{id:e}});console.debug("onRestoreConversation newRoute",s),this.$router.push(s);const o=(i=this.conversations)==null?void 0:i.find(d=>d.id===e),p=o==null?void 0:o.model;console.debug("conversation model",p);const h=$e.find(d=>d.name===p);console.debug("target model",h);const a=ye.find(d=>d.name===(h==null?void 0:h.modelGroup));console.debug("target model group",a),this.$store.dispatch("chat/setModelGroup",a),this.$store.dispatch("chat/setModel",h),this.messages=(o==null?void 0:o.messages)||[],this.onScrollDown()},async onChangeConversation(e){console.log("onChangeConversation in conversation",e),e?this.onRestoreConversation(e):this.onNewConversation()},async onSubmit(){if(this.references.length>0){let e=[];e.push({type:"text",text:this.question});for(let s=0;s<this.references.length;s++)J(this.references[s])?e.push({type:"image_url",image_url:this.references[s]}):e.push({type:"file_url",file_url:this.references[s]});this.messages.push({content:e,role:K})}else this.messages.push({content:this.question,role:K});console.debug("onSubmit",this.question,this.references),await this.onRequest()},async onRequest(){var h;console.debug("start to get answer",this.messages);const e=(h=this.credential)==null?void 0:h.token,s=this.question,o=this.references;if(console.debug("validated",s,o),this.question="",this.references=[],!e||!s){console.error("no token or endpoint or question"),this.messages.push({error:{code:W},role:M,state:N.FAILED});return}let p=this.conversationId;this.messages.push({content:"",role:M,state:N.PENDING}),console.debug("start to get answer",this.messages),this.onScrollDown(),this.answering=!0,this.canceler=new AbortController,H.chatConversation({question:s,model:this.model.name,references:o,id:this.conversationId,stateful:!0},{token:e,stream:a=>{console.debug("stream response",a);const i=this.messages[this.messages.length-1];this.messages[this.messages.length-1]={role:M,content:a.answer,state:(i==null?void 0:i.state)!==N.FINISHED?N.ANSWERING:i==null?void 0:i.state},p=a==null?void 0:a.id},signal:this.canceler.signal}).then(async()=>{console.debug("finished fetch answer",this.messages),this.messages[this.messages.length-1].state=N.FINISHED,console.debug("finished fetch answer",JSON.stringify(this.messages)),await this.$store.dispatch("chat/setConversation",{id:p,messages:this.messages}),this.answering=!1,p&&await this.$router.push({params:{id:p}}),this.onScrollDown(),await this.$store.dispatch("chat/getConversations"),await this.$store.dispatch("chat/getApplications")}).catch(a=>{this.handleRequestError(a)})},async handleRequestError(e){if(console.error("error happened",e),this.messages&&this.messages.length>0&&(this.messages[this.messages.length-1].state=N.FAILED),e.name==="AbortError"){console.error("aborted");return}else e instanceof ve?(console.debug("BaseError",e),this.messages[this.messages.length-1].error={code:e.code,message:e.detail}):de.isCancel(e)?this.messages[this.messages.length-1].error={code:ne}:this.messages&&this.messages.length>0&&(this.messages[this.messages.length-1].error={code:oe});this.answering=!1},async onScrollDown(){setTimeout(()=>{const e=document.querySelector(".messages");!e||!this.messages||this.messages.length===0||(e.scrollTop=e==null?void 0:e.scrollHeight)},0)}}}),_t={key:0,class:"messages"},ft={class:"starter"};function $t(e,s,o,p,h,a){const i=l("model-selector"),d=l("message"),$=l("composer"),y=l("disclaimer"),c=l("layout");return n(),f(c,{onChangeConversation:s[4]||(s[4]=t=>e.onChangeConversation(t))},{chat:C(()=>[m(i,{class:"selector",onModelGroupChanged:s[0]||(s[0]=t=>e.onChangeConversation(void 0))}),r("div",{class:O({dialogue:!0,empty:e.messages.length===0})},[e.messages.length>0?(n(),u("div",_t,[(n(!0),u(L,null,P(e.messages,(t,k)=>(n(),f(d,{key:k,message:t,messages:e.messages,question:e.question,application:e.application,class:"message","onUpdate:question":s[1]||(s[1]=S=>e.question=S),onEdit:e.onEdit,onRestart:e.onRestart},null,8,["message","messages","question","application","onEdit","onRestart"]))),128))])):v("v-if",!0),r("div",ft,[m($,{question:e.question,"onUpdate:question":s[2]||(s[2]=t=>e.question=t),disabled:e.answering,references:e.references,"onUpdate:references":s[3]||(s[3]=t=>e.references=t),onSubmit:e.onSubmit,onStop:e.onStop},null,8,["question","disabled","references","onSubmit","onStop"]),m(y,{class:"disclaimer"})])],2)]),_:1})}var Dt=I(gt,[["render",$t],["__scopeId","data-v-3ab2fb26"],["__file","/home/runner/work/Nexior/Nexior/src/pages/chat/Conversation.vue"]]);export{Dt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./vendor-others.e28a6fa7.js";import{E as C,t as U,u as $,k as V,w as E,x as B,y,b as T}from"./vendor-element-plus.7eade167.js";import{_ as k,C as L}from"./index.a20291ec.js";import{H as b,al as i,o as m,e as g,V as n,M as o,f as s,S as a,T as r,U as h,ai as A,L as v,as as M}from"./vendor-@vue.8cef8b94.js";import{ar as z}from"./vendor-fortawesome.0d8f27df.js";const K=b({name:"EditText",components:{ElDialog:C,ElInput:U,ElButton:$,ElIcon:V,Edit:E},props:{modelValue:{type:String,required:!0},title:{type:String,required:!0},placeholder:{type:String,required:!0}},emits:["confirm","cancel"],data(){return{editing:!1,value:this.modelValue}},methods:{onCancel(){this.editing=!1},onConfirm(){this.$emit("confirm",this.value),this.editing=!1}}}),O={class:"dialog-footer"};function D(e,t,w,I,N,S){const c=i("el-input"),u=i("el-button"),p=i("el-dialog"),f=i("edit"),_=i("el-icon");return m(),g(h,null,[n(p,{modelValue:e.editing,"onUpdate:modelValue":t[1]||(t[1]=d=>e.editing=d),title:e.title,width:"400px"},{footer:o(()=>[s("span",O,[n(u,{round:"",onClick:e.onCancel},{default:o(()=>[a(r(e.$t("common.button.cancel")),1)]),_:1},8,["onClick"]),n(u,{round:"",type:"primary",onClick:e.onConfirm},{default:o(()=>[a(r(e.$t("common.button.confirm")),1)]),_:1},8,["onClick"])])]),default:o(()=>[s("div",null,[n(c,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=d=>e.value=d),placeholder:e.placeholder},null,8,["modelValue","placeholder"])])]),_:1},8,["modelValue","title"]),s("span",{class:"edit",onClick:t[2]||(t[2]=d=>e.editing=!0)},[n(_,{class:"icon"},{default:o(()=>[n(f)]),_:1})])],64)}var te=k(K,[["render",D],["__file","/home/runner/work/Nexior/Nexior/src/components/site/EditText.vue"]]);const F=b({name:"EditImage",components:{ElDialog:C,ElButton:$,FontAwesomeIcon:z,ElIcon:V,Edit:E,ElUpload:B},props:{modelValue:{type:String,required:!0},title:{type:String,required:!0},tip:{type:String,required:!0}},emits:["confirm","cancel"],data(){return{editing:!1,value:this.modelValue,fileList:[],uploadUrl:L()+"/api/v1/files/"}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>{var t;return(t=e==null?void 0:e.response)==null?void 0:t.file_url})}},methods:{onCancel(){this.editing=!1},onConfirm(){var e;this.$emit("confirm",(e=this.urls)==null?void 0:e[0]),this.editing=!1},onExceed(){y.warning(this.$t("site.message.uploadImageExceed"))},onError(){y.error(this.$t("site.message.uploadImageError"))}}}),J={class:"el-upload__tip"},H={class:"dialog-footer"};function P(e,t,w,I,N,S){const c=i("font-awesome-icon"),u=i("el-button"),p=i("el-upload"),f=i("el-dialog"),_=i("edit"),d=i("el-icon");return m(),g(h,null,[n(f,{modelValue:e.editing,"onUpdate:modelValue":t[1]||(t[1]=l=>e.editing=l),title:e.title,width:"400px"},{footer:o(()=>[s("span",H,[n(u,{round:"",onClick:e.onCancel},{default:o(()=>[a(r(e.$t("common.button.cancel")),1)]),_:1},8,["onClick"]),n(u,{round:"",type:"primary",onClick:e.onConfirm},{default:o(()=>[a(r(e.$t("common.button.confirm")),1)]),_:1},8,["onClick"])])]),default:o(()=>[s("div",null,[n(p,{"file-list":e.fileList,"onUpdate:fileList":t[0]||(t[0]=l=>e.fileList=l),name:"file",limit:5,multiple:!0,action:e.uploadUrl,"list-type":"picture","on-exceed":e.onExceed,"on-error":e.onError,headers:e.headers},{tip:o(()=>[s("div",J,r(e.tip),1)]),default:o(()=>[n(u,{round:"",type:"primary",class:"btn btn-upload"},{default:o(()=>[n(c,{icon:"fa-solid fa-upload",class:"icon mr-2"}),a(" "+r(e.$t("site.button.upload")),1)]),_:1})]),_:1},8,["file-list","action","on-exceed","on-error","headers"])])]),_:1},8,["modelValue","title"]),s("span",{class:"edit",onClick:t[2]||(t[2]=l=>e.editing=!0)},[n(d,{class:"icon"},{default:o(()=>[n(_)]),_:1})])],64)}var oe=k(F,[["render",P],["__file","/home/runner/work/Nexior/Nexior/src/components/site/EditImage.vue"]]);const j=b({name:"EditText",components:{ElDialog:C,ElInput:U,ElButton:$,ElIcon:V,ElTag:T,Edit:E},props:{modelValue:{type:Array,required:!0},title:{type:String,required:!0},placeholder:{type:String,required:!0},tip:{type:String,default:void 0},min:{type:Number,default:void 0},minErrorMessage:{type:String,default:void 0}},emits:["confirm","cancel"],data(){return{inputVisible:!1,inputValue:"",editing:!1,value:JSON.parse(JSON.stringify(this.modelValue))}},methods:{onCancel(){this.editing=!1},onConfirm(){if(this.min!==void 0&&this.value.length<this.min){y.error(this.minErrorMessage);return}this.$emit("confirm",this.value),this.editing=!1},onClose(e){this.value.splice(this.value.indexOf(e),1)},onInputConfirm(){const e=this.inputValue;e&&this.value.push(e),this.inputVisible=!1,this.inputValue=""},onNewItem(){this.inputVisible=!0,this.$nextTick(()=>{this.$refs.input.focus()})}}}),G={class:"block tip"},Q={class:"dialog-footer"};function R(e,t,w,I,N,S){const c=i("el-tag"),u=i("el-input"),p=i("el-button"),f=i("el-dialog"),_=i("edit"),d=i("el-icon");return m(),g(h,null,[n(f,{modelValue:e.editing,"onUpdate:modelValue":t[1]||(t[1]=l=>e.editing=l),title:e.title,width:"400px"},{footer:o(()=>[s("span",Q,[n(p,{round:"",onClick:e.onCancel},{default:o(()=>[a(r(e.$t("common.button.cancel")),1)]),_:1},8,["onClick"]),n(p,{round:"",type:"primary",onClick:e.onConfirm},{default:o(()=>[a(r(e.$t("common.button.confirm")),1)]),_:1},8,["onClick"])])]),default:o(()=>[(m(!0),g(h,null,A(e.value,(l,q)=>(m(),v(c,{key:q,closable:"",round:"",class:"mr-2 mb-2","disable-transitions":!1,onClose:W=>e.onClose(l)},{default:o(()=>[a(r(l),1)]),_:2},1032,["onClose"]))),128)),e.inputVisible?(m(),v(u,{key:0,ref:"input",modelValue:e.inputValue,"onUpdate:modelValue":t[0]||(t[0]=l=>e.inputValue=l),class:"block",size:"small",onKeyup:M(e.onInputConfirm,["enter"]),onBlur:e.onInputConfirm},null,8,["modelValue","onKeyup","onBlur"])):(m(),v(p,{key:1,round:"",class:"block",size:"small",onClick:e.onNewItem},{default:o(()=>t[3]||(t[3]=[a(" + ")])),_:1,__:[3]},8,["onClick"])),s("span",G,r(e.tip),1)]),_:1},8,["modelValue","title"]),s("span",{class:"edit",onClick:t[2]||(t[2]=l=>e.editing=!0)},[n(d,{class:"icon"},{default:o(()=>[n(_)]),_:1})])],64)}var ne=k(j,[["render",R],["__file","/home/runner/work/Nexior/Nexior/src/components/site/EditArray.vue"]]);export{te as E,oe as a,ne as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./vendor-others.e28a6fa7.js";import{ar as U}from"./vendor-fortawesome.0d8f27df.js";import{_ as I,aU as ne,a2 as O,H as ae,af as le,aV as ie,Y as re}from"./index.a20291ec.js";import{Q as ce,u as L,N as pe,O as ue,t as de,m as me,I as _e,s as fe,H as he,V as ve,y as A}from"./vendor-element-plus.7eade167.js";import{H as V,al as a,o as n,e as d,f as i,I as M,V as s,M as f,T as l,U as R,ai as E,L as C,S as y,R as g,P as D}from"./vendor-@vue.8cef8b94.js";import{I as $e}from"./InfoIcon.91627439.js";import{A as ge}from"./Status.61f2e040.js";import{C as ye}from"./CopyToClipboard.3b265ba5.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.ef88fffc.js";const ke=V({name:"LayoutFlux",components:{ElDrawer:ce,ElButton:L,FontAwesomeIcon:U},data(){return{drawer:!1}}}),we={class:"main"},be={class:"config"},xe={class:"result"};function Ie(e,t,o,r,h,$){const p=a("font-awesome-icon"),_=a("el-button"),u=a("el-drawer");return n(),d("div",we,[i("div",be,[M(e.$slots,"config",{},void 0,!0)]),i("div",xe,[M(e.$slots,"result",{},void 0,!0)]),s(_,{round:"",class:"menu",onClick:t[0]||(t[0]=v=>e.drawer=!0)},{default:f(()=>[s(p,{icon:"fa-solid fa-gear",class:"icon-menu"})]),_:1}),s(u,{modelValue:e.drawer,"onUpdate:modelValue":t[1]||(t[1]=v=>e.drawer=v),"with-header":!1,size:"340px",class:"drawer"},{default:f(()=>[M(e.$slots,"config",{},void 0,!0)]),_:3},8,["modelValue"])])}var Ve=I(ke,[["render",Ie],["__scopeId","data-v-324e8ab0"],["__file","/home/runner/work/Nexior/Nexior/src/layouts/Flux.vue"]]);const Se=V({name:"ModelSelector",components:{ElSelect:pe,ElOption:ue},props:{modelValue:{type:String,default:void 0}},emits:["update:modelValue"],data(){return{options:[{value:"flux",label:"flux"},{value:"flux-schnell",label:"flux-schnell"},{value:"flux-dev",label:"flux-dev"},{value:"flux-pro",label:"flux-pro"}]}},computed:{value:{get(){var e,t;return(t=(e=this.$store.state.flux)==null?void 0:e.config)==null?void 0:t.model},set(e){this.$store.commit("flux/setConfig",{...this.$store.state.flux.config,model:e})}}},mounted(){this.value||(this.value=ne)}}),Ae={class:"field"},Te={class:"title font-bold"};function Ge(e,t,o,r,h,$){const p=a("el-option"),_=a("el-select");return n(),d("div",Ae,[i("h2",Te,l(e.$t("flux.name.model")),1),s(_,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=u=>e.value=u),class:"value",placeholder:e.$t("flux.placeholder.select")},{default:f(()=>[(n(!0),d(R,null,E(e.options,u=>(n(),C(p,{key:u.value,label:u.label,value:u.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])])}var Ce=I(Se,[["render",Ge],["__scopeId","data-v-8a0bbbfe"],["__file","/home/runner/work/Nexior/Nexior/src/components/flux/config/ModelSelector.vue"]]);const Pe="",Ne=V({name:"PromptInput",components:{ElInput:de,InfoIcon:$e},computed:{prompt:{get(){var e,t;return(t=(e=this.$store.state.flux)==null?void 0:e.config)==null?void 0:t.prompt},set(e){var t;console.debug("set prompt",e),this.$store.commit("flux/setConfig",{...(t=this.$store.state.flux)==null?void 0:t.config,prompt:e})}}},mounted(){this.value||(this.value=Pe)}}),Re={class:"field"},Ee={class:"box"},De={class:"title font-bold"};function Oe(e,t,o,r,h,$){const p=a("info-icon"),_=a("el-input");return n(),d("div",Re,[i("div",Ee,[i("h2",De,l(e.$t("flux.name.prompt")),1),s(p,{content:e.$t("flux.description.prompt"),class:"info"},null,8,["content"])]),s(_,{modelValue:e.prompt,"onUpdate:modelValue":t[0]||(t[0]=u=>e.prompt=u),rows:3,type:"textarea",class:"prompt",placeholder:e.$t("flux.placeholder.prompt"),maxlength:300,"show-word-limit":""},null,8,["modelValue","placeholder"])])}var Me=I(Ne,[["render",Oe],["__scopeId","data-v-76c331df"],["__file","/home/runner/work/Nexior/Nexior/src/components/flux/config/PromptInput.vue"]]);const Ue=V({name:"PresetPanel",components:{ElButton:L,FontAwesomeIcon:U,PromptInput:Me,ModelSelector:Ce},emits:["generate"],computed:{config(){var e;return(e=this.$store.state.flux)==null?void 0:e.config}},methods:{onGenerate(){this.$emit("generate")}}}),Le={class:"panel"},Fe={class:"config"},qe={class:"actions"};function je(e,t,o,r,h,$){var m,k;const p=a("prompt-input"),_=a("model-selector"),u=a("font-awesome-icon"),v=a("el-button");return n(),d("div",Le,[i("div",Fe,[s(p,{class:"mb-4"}),s(_,{class:"mb-4"}),i("div",qe,[((m=e.config)==null?void 0:m.video_url)!==void 0||((k=e.config)==null?void 0:k.custom)?(n(),C(v,{key:0,type:"primary",class:"btn w-full",round:"",onClick:e.onGenerate},{default:f(()=>[s(u,{icon:"fa-solid fa-magic",class:"mr-2"}),y(" "+l(e.$t("flux.button.extend")),1)]),_:1},8,["onClick"])):(n(),C(v,{key:1,type:"primary",class:"btn w-full",round:"",onClick:e.onGenerate},{default:f(()=>[s(u,{icon:"fa-solid fa-magic",class:"mr-2"}),y(" "+l(e.$t("flux.button.generate")),1)]),_:1},8,["onClick"]))])])])}var ze=I(Ue,[["render",je],["__scopeId","data-v-707be6ac"],["__file","/home/runner/work/Nexior/Nexior/src/components/flux/ConfigPanel.vue"]]);const Be=V({name:"ImageGallery",props:{modelValue:{type:Object,required:!0}},setup(e){return{viewImage:o=>{window.open(o,"_blank")}}}}),He={class:"image-gallery"},Ke={class:"image-container"},Qe=["src"];function Xe(e,t,o,r,h,$){return n(),d("div",He,[i("div",Ke,[i("img",{src:e.modelValue.image_url,alt:"Image"},null,8,Qe),i("button",{class:"view-button",onClick:t[0]||(t[0]=p=>e.viewImage(e.modelValue.image_url))},l(e.$t("flux.button.viewImage")),1)])])}var Ye=I(Be,[["render",Xe],["__scopeId","data-v-74374cc6"],["__file","/home/runner/work/Nexior/Nexior/src/components/flux/ImageGallery.vue"]]);const Je=V({name:"TaskPreview",components:{ElImage:me,CopyToClipboard:ye,FontAwesomeIcon:U,ElAlert:_e,ElTooltip:fe,ElButton:L,ImageGallery:Ye},props:{modelValue:{type:Object,required:!0}},data(){return{}},computed:{application(){var e;return(e=this.$store.state.flux)==null?void 0:e.application},config(){var e;return(e=this.$store.state.flux)==null?void 0:e.config},images(){var o,r,h,$,p,_,u;let e=[];const t=(r=(o=this.modelValue)==null?void 0:o.request)==null?void 0:r.action;return Array.isArray(($=(h=this.modelValue)==null?void 0:h.response)==null?void 0:$.data)&&((u=(_=(p=this.modelValue)==null?void 0:p.response)==null?void 0:_.data)==null||u.forEach(v=>{let m=v;t&&(m.action=t),e.push(m)})),e}},methods:{onDownload(e,t){e.stopPropagation(),console.log("on download"),window.open(t,"_blank")},onOpenImage(e){window.open(e,"_blank")}}}),We={class:"left"},Ze={class:"main"},et={class:"bot"},tt={class:"datetime"},st={class:"info"},ot={key:0,class:"prompt mt-2"},nt={key:0},at={key:1},lt={key:0,class:D({content:!0,failed:!0})},it={class:"image-wrapper"},rt={key:0,class:D({operations:!0,"mt-2":!0})},ct={class:"description"},pt={key:1,class:D({content:!0})},ut={class:"description"},dt={class:"description"},mt={class:"description"},_t={key:2,class:D({content:!0})},ft={class:"description"};function ht(e,t,o,r,h,$){const p=a("el-image"),_=a("image-gallery"),u=a("el-button"),v=a("el-tooltip"),m=a("font-awesome-icon"),k=a("copy-to-clipboard"),S=a("el-alert");return n(!0),d(R,null,E(e.images,(c,P)=>{var T,G,b,N,F,q,j,z,B,H,K;return n(),d("div",{key:P,class:"preview"},[i("div",We,[s(p,{src:"https://cdn.acedata.cloud/ogm2oa.png",class:"avatar"})]),i("div",Ze,[i("div",et,[y(l(e.$t("flux.name.fluxBot"))+" ",1),i("span",tt,l(e.$dayjs.format(""+new Date(parseFloat(((T=e.modelValue)==null?void 0:T.created_at)||"")*1e3))),1)]),i("div",st,[(b=(G=e.modelValue)==null?void 0:G.request)!=null&&b.prompt?(n(),d("p",ot,[y(l((F=(N=e.modelValue)==null?void 0:N.request)==null?void 0:F.prompt)+" ",1),(q=e.modelValue)!=null&&q.response?g("v-if",!0):(n(),d("span",nt," - ("+l(e.$t("flux.status.pending"))+") ",1)),(c==null?void 0:c.state)==="processing"||(c==null?void 0:c.state)==="pending"||(c==null?void 0:c.state)==="completed"?(n(),d("span",at," - ("+l(e.$t("flux.status.processing"))+") ",1)):g("v-if",!0)])):g("v-if",!0)]),g(" Display success message "),((z=(j=e.modelValue)==null?void 0:j.response)==null?void 0:z.success)===!0?(n(),d("div",lt,[i("div",it,[s(_,{"model-value":c},null,8,["model-value"])]),c?(n(),d("div",rt,[s(v,{class:"box-item",effect:"dark",content:e.$t("flux.message.downloadImage"),placement:"top-start"},{default:f(()=>[s(u,{type:"info",size:"small",class:"btn-action",onClick:w=>e.onDownload(w,c==null?void 0:c.image_url)},{default:f(()=>[y(l(e.$t("flux.button.download")),1)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])):g("v-if",!0),s(S,{closable:!1,class:"mt-2 success"},{default:f(()=>{var w,x;return[i("p",ct,[s(m,{icon:"fa-solid fa-magic",class:"mr-1"}),y(" "+l(e.$t("flux.name.taskId"))+": "+l((w=e.modelValue)==null?void 0:w.id)+" ",1),s(k,{content:(x=e.modelValue)==null?void 0:x.id,class:"btn-copy"},null,8,["content"])])]}),_:1})])):g("v-if",!0),g(" Display error message "),((H=(B=e.modelValue)==null?void 0:B.response)==null?void 0:H.success)===!1?(n(),d("div",pt,[s(S,{closable:!1,class:"failure"},{template:f(()=>[s(m,{icon:"fa-solid fa-exclamation-triangle",class:"mr-1"}),y(" "+l(e.$t("flux.name.failure")),1)]),default:f(()=>{var w,x,Q,X,Y,J,W,Z,ee,te,se,oe;return[i("p",ut,[s(m,{icon:"fa-solid fa-magic",class:"mr-1"}),y(" "+l(e.$t("flux.name.taskId"))+": "+l((w=e.modelValue)==null?void 0:w.id)+" ",1),s(k,{content:(x=e.modelValue)==null?void 0:x.id,class:"btn-copy"},null,8,["content"])]),i("p",dt,[s(m,{icon:"fa-solid fa-circle-info",class:"mr-1"}),y(" "+l(e.$t("flux.name.failureReason"))+": "+l((Y=(X=(Q=e.modelValue)==null?void 0:Q.response)==null?void 0:X.error)==null?void 0:Y.message)+" ",1),s(k,{content:(Z=(W=(J=e.modelValue)==null?void 0:J.response)==null?void 0:W.error)==null?void 0:Z.message,class:"btn-copy"},null,8,["content"])]),i("p",mt,[s(m,{icon:"fa-solid fa-hashtag",class:"mr-1"}),y(" "+l(e.$t("flux.name.traceId"))+": "+l((te=(ee=e.modelValue)==null?void 0:ee.response)==null?void 0:te.trace_id)+" ",1),s(k,{content:(oe=(se=e.modelValue)==null?void 0:se.response)==null?void 0:oe.trace_id,class:"btn-copy"},null,8,["content"])])]}),_:1})])):g("v-if",!0),g(" Display error message "),!((K=e.modelValue)!=null&&K.response)||(c==null?void 0:c.state)==="processing"||(c==null?void 0:c.state)==="pending"?(n(),d("div",_t,[s(S,{closable:!1,class:"info"},{template:f(()=>[s(m,{icon:"fa-solid fa-exclamation-triangle",class:"mr-1"}),y(" "+l(e.$t("flux.name.failure")),1)]),default:f(()=>{var w,x;return[i("p",ft,[s(m,{icon:"fa-solid fa-magic",class:"mr-1"}),y(" "+l(e.$t("flux.name.taskId"))+": "+l((w=e.modelValue)==null?void 0:w.id)+" ",1),s(k,{content:(x=e.modelValue)==null?void 0:x.id,class:"btn-copy"},null,8,["content"])])]}),_:1})])):g("v-if",!0)])])}),128)}var vt=I(Je,[["render",ht],["__scopeId","data-v-bb276cb8"],["__file","/home/runner/work/Nexior/Nexior/src/components/flux/task/Preview.vue"]]);const $t=V({name:"RecentPanel",components:{TaskPreview:vt,ElSkeleton:he,ElSkeletonItem:ve},emits:["reach-top"],data(){return{job:0}},computed:{tasks(){var e,t,o,r;return{...(e=this.$store.state.flux)==null?void 0:e.tasks,items:(r=(o=(t=this.$store.state.flux)==null?void 0:t.tasks)==null?void 0:o.items)==null?void 0:r.slice()}}},methods:{onHandleScroll(){const e=this.$refs.panel;console.log("reach-top reach-top reach-top"),e.scrollTop===0&&this.$emit("reach-top")}}}),gt={key:0,class:"tasks"},yt={class:"left"},kt={class:"main"},wt={key:1,class:"tasks"},bt={key:2,class:"description"};function xt(e,t,o,r,h,$){var v,m,k,S,c,P,T,G;const p=a("el-skeleton-item"),_=a("el-skeleton"),u=a("task-preview");return n(),d("div",{ref:"panel",class:"panel recent",onScroll:t[0]||(t[0]=(...b)=>e.onHandleScroll&&e.onHandleScroll(...b))},[((v=e.tasks)==null?void 0:v.items)===void 0?(n(),d("div",gt,[(n(),d(R,null,E(3,b=>i("div",{key:b,class:"task placeholder"},[i("div",yt,[s(_,{animated:""},{template:f(()=>[s(p,{variant:"image",class:"avatar"})]),_:1})]),i("div",kt,[s(_,{animated:""},{template:f(()=>[s(p,{variant:"p",class:"title"}),s(p,{variant:"image",class:"icon"})]),_:1})])])),64))])):((k=(m=e.tasks)==null?void 0:m.items)==null?void 0:k.length)&&((c=(S=e.tasks)==null?void 0:S.items)==null?void 0:c.length)>0?(n(),d("div",wt,[(n(!0),d(R,null,E((P=e.tasks)==null?void 0:P.items,(b,N)=>(n(),C(u,{key:N,"model-value":b,class:"preview"},null,8,["model-value"]))),128))])):g("v-if",!0),((G=(T=e.tasks)==null?void 0:T.items)==null?void 0:G.length)===0?(n(),d("p",bt,l(e.$t("flux.message.noTasks")),1)):g("v-if",!0)],544)}var It=I($t,[["render",xt],["__scopeId","data-v-2ae6e09a"],["__file","/home/runner/work/Nexior/Nexior/src/components/flux/RecentPanel.vue"]]);const Vt="https://webhook.acedata.cloud/flux",St=V({name:"FluxIndex",components:{ConfigPanel:ze,Layout:Ve,ApplicationStatus:ge,RecentPanel:It},data(){return{task:void 0,job:0,timer:void 0}},computed:{loading(){var e,t;return((t=(e=this.$store.state.flux)==null?void 0:e.status)==null?void 0:t.getApplications)===O.Request},service(){var e;return(e=this.$store.state.flux)==null?void 0:e.service},credential(){var e;return(e=this.$store.state.flux)==null?void 0:e.credential},config(){var e;return(e=this.$store.state.flux)==null?void 0:e.config},initializing(){var e,t;return((t=(e=this.$store.state.flux)==null?void 0:e.status)==null?void 0:t.getApplications)===O.Request},needApply(){var e,t;return((t=(e=this.$store.state.flux)==null?void 0:e.status)==null?void 0:t.getApplications)===O.Success&&!this.application},application(){var e;return(e=this.$store.state.flux)==null?void 0:e.application},applications(){var e;return(e=this.$store.state.flux)==null?void 0:e.applications},tasks(){var e;return(e=this.$store.state.flux)==null?void 0:e.tasks}},watch:{tasks:{handler(e,t){var o,r;((o=e==null?void 0:e.items)==null?void 0:o.length)>((r=t==null?void 0:t.items)==null?void 0:r.length)&&console.debug("new tasks detected")},deep:!0}},async mounted(){await this.onGetService(),await this.onGetApplication(),await this.onScrollDown(),await this.onGetTasks(),this.job=setInterval(()=>{this.onGetTasks()},5e3)},async unmounted(){clearInterval(this.job),clearInterval(this.timer)},methods:{async onReachTop(){var e,t,o;console.debug("reached top"),await this.onGetTasks({createdAtMax:(o=(t=(e=this.tasks)==null?void 0:e.items)==null?void 0:t[0])==null?void 0:o.created_at})},async onGetService(){console.debug("start onGetService"),await this.$store.dispatch("flux/getService"),console.debug("end onGetService")},async onGetApplication(){console.debug("start onGetApplication"),await this.$store.dispatch("flux/getApplications"),console.debug("end onGetApplication"),await this.onGetTasks()},onApply(){ae.create({application:this.application}).then(({data:e})=>{this.application=e,A.success(this.$t("application.message.applySuccessfully"))}).catch(e=>{var t,o;((o=(t=e==null?void 0:e.response)==null?void 0:t.data)==null?void 0:o.code)===le&&A.error(this.$t("application.message.alreadyApplied"))})},async onScrollDown(){setTimeout(()=>{const e=document.querySelector(".recent");e&&(e.scrollTop=e.scrollHeight)},500)},async onGetTasks(e){if(this.loading){console.debug("loading");return}console.debug("start onGetTasks",e);const{limit:t=5,createdAtMin:o,createdAtMax:r}=e||{};console.debug("limit",t,"createdAtMin",o,"createdAtMax",r),await this.$store.dispatch("flux/getTasks",{limit:t,createdAtMin:o,createdAtMax:r})},async onGenerateVideo(){var o;const e={...this.config,callback_url:Vt},t=(o=this.credential)==null?void 0:o.token;if(!t){console.error("no token specified");return}A.info(this.$t("flux.message.startingTask")),ie.generate(e,{token:t}).then(()=>{A.success(this.$t("flux.message.startTaskSuccess")),this.$store.commit("flux/setConfig",{config:void 0})}).catch(r=>{var $,p;const h=($=r==null?void 0:r.response)==null?void 0:$.data;((p=h==null?void 0:h.error)==null?void 0:p.code)===re?A.error(this.$t("flux.message.usedUp")):A.error(this.$t("flux.message.startTaskFailed"))}).finally(async()=>{setTimeout(async()=>{await this.onGetTasks(),await this.onScrollDown()},1e3)})}}});function At(e,t,o,r,h,$){const p=a("config-panel"),_=a("application-status"),u=a("recent-panel"),v=a("layout");return n(),C(v,null,{config:f(()=>[s(p,{onGenerate:e.onGenerateVideo},null,8,["onGenerate"])]),result:f(()=>[s(_,{initializing:e.initializing,application:e.application,applications:e.applications,service:e.service,"need-apply":e.needApply,class:"mb-4",onRefresh:e.onGetApplication,onSelect:t[0]||(t[0]=m=>e.$store.dispatch("flux/setApplication",m))},null,8,["initializing","application","applications","service","need-apply","onRefresh"]),s(u,{class:"panel recent",onReachTop:e.onReachTop},null,8,["onReachTop"]),g(' <operation-panel class="panel operation" @generate="onGenerate" /> ')]),_:1})}var Ut=I(St,[["render",At],["__scopeId","data-v-e3c77ee0"],["__file","/home/runner/work/Nexior/Nexior/src/pages/flux/Index.vue"]]);export{Ut as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./vendor-others.e28a6fa7.js";import{L as B}from"./Chatdoc.72cd05a5.js";import{_ as w,a2 as $,am as F}from"./index.a20291ec.js";import{ar as y}from"./vendor-fortawesome.0d8f27df.js";import{u as T,E as U,n as z,o as L,t as M,y as _,F as x,A as q,B as H,h as O,j,i as G}from"./vendor-element-plus.7eade167.js";import{H as v,al as o,o as u,e as C,V as t,M as s,S as V,T as r,f as a,U as k,L as g,ai as K,R as J}from"./vendor-@vue.8cef8b94.js";import{A as P}from"./Status.61f2e040.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.ef88fffc.js";const Q=v({name:"CreateRepository",components:{ElButton:T,ElDialog:U,ElForm:z,ElFormItem:L,ElInput:M,FontAwesomeIcon:y},data(){return{dialogVisible:!1,creating:!1,form:{name:"",description:""}}},computed:{},methods:{async onSubmit(){if(!this.form.name){_.error(this.$t("chatdoc.message.nameRequired"));return}this.creating=!0,this.$store.dispatch("chatdoc/createRepository",{name:this.form.name,description:this.form.description}).then(()=>{this.creating=!1,_.success(this.$t("chatdoc.message.createRepositorySuccess")),this.dialogVisible=!1,this.$store.dispatch("chatdoc/getRepositories")}).catch(()=>{this.creating=!1,_.error(this.$t("chatdoc.message.createRepositoryFailed"))})}}});function W(e,n,b,R,E,N){const d=o("el-input"),l=o("el-form-item"),p=o("el-button"),m=o("el-form"),h=o("el-dialog"),f=o("font-awesome-icon");return u(),C(k,null,[t(h,{modelValue:e.dialogVisible,"onUpdate:modelValue":n[2]||(n[2]=i=>e.dialogVisible=i),width:"400px"},{default:s(()=>[t(m,{ref:"form","label-width":"60px"},{default:s(()=>[t(l,{label:e.$t("chatdoc.field.name"),prop:e.form.name},{default:s(()=>[t(d,{modelValue:e.form.name,"onUpdate:modelValue":n[0]||(n[0]=i=>e.form.name=i),placeholder:e.$t("chatdoc.message.inputRepositoryName")},null,8,["modelValue","placeholder"])]),_:1},8,["label","prop"]),t(l,{label:e.$t("chatdoc.field.description"),prop:e.form.description},{default:s(()=>[t(d,{modelValue:e.form.description,"onUpdate:modelValue":n[1]||(n[1]=i=>e.form.description=i),placeholder:e.$t("chatdoc.message.inputRepositoryDescription")},null,8,["modelValue","placeholder"])]),_:1},8,["label","prop"]),t(l,null,{default:s(()=>[t(p,{type:"primary",round:"",onClick:e.onSubmit},{default:s(()=>[V(r(e.$t("common.button.create")),1)]),_:1},8,["onClick"])]),_:1})]),_:1},512)]),_:1},8,["modelValue"]),a("button",{class:"btn btn-create",onClick:n[3]||(n[3]=i=>e.dialogVisible=!0)},[t(f,{icon:["fas","plus"]})])],64)}var X=w(Q,[["render",W],["__scopeId","data-v-41eec665"],["__file","/home/runner/work/Nexior/Nexior/src/components/chatdoc/CreateRepository.vue"]]);const Y=v({name:"ChatdocKnowledge",components:{Layout:B,ElCard:x,ElRow:q,ElCol:H,CreateRepository:X,FontAwesomeIcon:y,ElDropdown:O,ElDropdownItem:j,ElDropdownMenu:G,ApplicationStatus:P},data(){return{}},computed:{repositories(){return this.$store.state.chatdoc.repositories},needApply(){return this.$store.state.chatdoc.status.getApplications===$.Success&&!this.application},application(){return this.$store.state.chatdoc.application},service(){return this.$store.state.chatdoc.service},initializing(){return this.$store.state.chatdoc.status.getApplications===$.Request}},async mounted(){},methods:{onClick(e){this.$router.push({name:F,params:{repositoryId:e.id}})},onDelete(e){this.$store.dispatch("chatdoc/deleteRepository",{id:e}).then(()=>{_.success(this.$t("chatdoc.message.deleteRepositorySuccess")),this.$store.dispatch("chatdoc/getRepositories")})}}}),Z={class:"wrapper"},ee={class:"title"},oe={class:"introduction"},te={class:"status"},se={class:"operation"},ne={class:"name"},ae={class:"id"},ie={class:"description"};function re(e,n,b,R,E,N){const d=o("application-status"),l=o("create-repository"),p=o("el-card"),m=o("el-col"),h=o("font-awesome-icon"),f=o("el-dropdown-item"),i=o("el-dropdown-menu"),le=o("el-dropdown"),A=o("el-row"),D=o("layout");return u(),g(D,null,{chatdoc:s(()=>[a("div",Z,[a("div",ee,r(e.$t("chatdoc.title.repositories")),1),a("div",oe,r(e.$t("chatdoc.message.introductionForRepository")),1),a("div",te,[t(d,{"show-price":!1,initializing:e.initializing,application:e.application,"need-apply":e.needApply,service:e.service,onRefresh:n[0]||(n[0]=c=>e.$store.dispatch("chatdoc/getApplications"))},null,8,["initializing","application","need-apply","service"])]),t(A,{class:"repositories",gutter:15},{default:s(()=>[t(m,{xl:4,md:6,sm:12,xs:24},{default:s(()=>[t(p,{class:"repository text-center",shadow:"hover",onClick:e.onCreate},{default:s(()=>[t(l),a("p",se,r(e.$t("chatdoc.title.createRepository")),1)]),_:1},8,["onClick"])]),_:1}),(u(!0),C(k,null,K(e.repositories,(c,I)=>(u(),g(m,{key:I,xl:4,md:6,sm:12,xs:24},{default:s(()=>[t(p,{class:"repository",shadow:"hover",onClick:S=>e.onClick(c)},{default:s(()=>[J("v-if",!0),a("h2",ne,r(c.name),1),a("p",ae,[t(h,{icon:["fas","book"]}),V(" ID: "+r(c.id),1)]),a("p",ie,r(c.description),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1})])]),_:1})}var ge=w(Y,[["render",re],["__scopeId","data-v-52a67922"],["__file","/home/runner/work/Nexior/Nexior/src/pages/chatdoc/Index.vue"]]);export{ge as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ae as be}from"./vendor-others.e28a6fa7.js";import{ar as D}from"./vendor-fortawesome.0d8f27df.js";import{_ as h,aO as we,aP as Se,aQ as Ie,aR as Ve,C as $e,aS as Ee,a2 as j,H as Ne,af as Pe,aT as Ce,Y as Te}from"./index.a20291ec.js";import{Q as Ae,u as M,N as F,O as B,x as ke,y as V,R as Re,S as Ue,t as ye,m as Le,I as Ge,s as De,H as Me,V as Oe}from"./vendor-element-plus.7eade167.js";import{H as $,al as n,o as r,e as u,f as a,I as z,V as s,M as m,T as d,U,ai as L,L as R,P as G,a0 as je,S as k,R as y}from"./vendor-@vue.8cef8b94.js";import{I as O}from"./InfoIcon.91627439.js";import{A as ze}from"./Status.61f2e040.js";import{C as Fe}from"./CopyToClipboard.3b265ba5.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.ef88fffc.js";const Be=$({name:"LayoutKling",components:{ElDrawer:Ae,ElButton:M,FontAwesomeIcon:D},data(){return{drawer:!1}}}),qe={class:"main"},Ke={class:"config"},He={class:"result"};function Qe(e,t,o,c,g,v){const l=n("font-awesome-icon"),p=n("el-button"),i=n("el-drawer");return r(),u("div",qe,[a("div",Ke,[z(e.$slots,"config",{},void 0,!0)]),a("div",He,[z(e.$slots,"result",{},void 0,!0)]),s(p,{round:"",class:"menu",onClick:t[0]||(t[0]=_=>e.drawer=!0)},{default:m(()=>[s(l,{icon:"fa-solid fa-gear",class:"icon-menu"})]),_:1}),s(i,{modelValue:e.drawer,"onUpdate:modelValue":t[1]||(t[1]=_=>e.drawer=_),"with-header":!1,size:"340px",class:"drawer"},{default:m(()=>[z(e.$slots,"config",{},void 0,!0)]),_:3},8,["modelValue"])])}var Ye=h(Be,[["render",Qe],["__scopeId","data-v-50bc0f32"],["__file","/home/runner/work/Nexior/Nexior/src/layouts/Kling.vue"]]);const Je=$({name:"ModelSelector",components:{ElSelect:F,ElOption:B},props:{modelValue:{type:String,default:void 0}},emits:["update:modelValue"],data(){return{options:[{value:"kling-v1",label:"V1"},{value:"kling-v1-5",label:"V1.5"},{value:"kling-v1-6",label:"V1.6"}]}},computed:{value:{get(){var e,t;return(t=(e=this.$store.state.kling)==null?void 0:e.config)==null?void 0:t.model},set(e){this.$store.commit("kling/setConfig",{...this.$store.state.kling.config,model:e})}}},mounted(){this.value||(this.value=we)}}),We={class:"field"},Xe={class:"title font-bold"};function Ze(e,t,o,c,g,v){const l=n("el-option"),p=n("el-select");return r(),u("div",We,[a("h2",Xe,d(e.$t("pika.name.model")),1),s(p,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=i=>e.value=i),class:"value",placeholder:e.$t("pika.placeholder.select")},{default:m(()=>[(r(!0),u(U,null,L(e.options,i=>(r(),R(l,{key:i.value,label:i.label,value:i.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])])}var xe=h(Je,[["render",Ze],["__scopeId","data-v-13cacdf9"],["__file","/home/runner/work/Nexior/Nexior/src/components/kling/config/ModelSelector.vue"]]);const et=$({name:"ModeSelector",components:{ElSelect:F,ElOption:B},props:{modelValue:{type:String,default:void 0}},emits:["update:modelValue"],data(){return{options:[{value:"std",label:"\u6807\u51C6"},{value:"pro",label:"\u9AD8\u901F"}]}},computed:{value:{get(){var e,t;return(t=(e=this.$store.state.kling)==null?void 0:e.config)==null?void 0:t.mode},set(e){this.$store.commit("kling/setConfig",{...this.$store.state.kling.config,mode:e})}}},mounted(){this.value||(this.value=Se)}}),tt={class:"field"},ot={class:"title font-bold"};function st(e,t,o,c,g,v){const l=n("el-option"),p=n("el-select");return r(),u("div",tt,[a("h2",ot,d(e.$t("kling.name.mode")),1),s(p,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=i=>e.value=i),class:"value",placeholder:e.$t("kling.placeholder.select")},{default:m(()=>[(r(!0),u(U,null,L(e.options,i=>(r(),R(l,{key:i.value,label:i.label,value:i.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])])}var nt=h(et,[["render",st],["__scopeId","data-v-3af5203e"],["__file","/home/runner/work/Nexior/Nexior/src/components/kling/config/ModeSelector.vue"]]);const at=$({name:"DurationSelector",components:{ElSelect:F,ElOption:B},props:{modelValue:{type:String,default:void 0}},emits:["update:modelValue"],data(){return{options:[{value:5,label:"5\u79D2"},{value:10,label:"10\u79D2"}]}},computed:{value:{get(){var e,t;return(t=(e=this.$store.state.kling)==null?void 0:e.config)==null?void 0:t.duration},set(e){this.$store.commit("kling/setConfig",{...this.$store.state.kling.config,duration:e})}}},mounted(){this.value||(this.value=Ie)}}),lt={class:"field"},it={class:"title font-bold"};function rt(e,t,o,c,g,v){const l=n("el-option"),p=n("el-select");return r(),u("div",lt,[a("h2",it,d(e.$t("kling.name.duration")),1),s(p,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=i=>e.value=i),class:"value",placeholder:e.$t("kling.placeholder.select")},{default:m(()=>[(r(!0),u(U,null,L(e.options,i=>(r(),R(l,{key:i.value,label:i.label,value:i.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])])}var ct=h(at,[["render",rt],["__scopeId","data-v-6434f6d2"],["__file","/home/runner/work/Nexior/Nexior/src/components/kling/config/DurationSelector.vue"]]);const dt=$({name:"RatioSelector",data(){return{options:[{value:"1:1",label:"1:1",width:20,height:20},{value:"16:9",label:"16:9",width:25,height:13},{value:"9:16",label:"9:16",width:13,height:25}]}},computed:{active(){return this.options.findIndex(e=>e.value===this.value)||0},value:{get(){var e,t,o;return(o=(t=(e=this.$store.state)==null?void 0:e.kling)==null?void 0:t.config)==null?void 0:o.aspect_ratio},set(e){var t,o;console.debug("set ratio",e),this.$store.commit("kling/setConfig",{...(o=(t=this.$store.state)==null?void 0:t.kling)==null?void 0:o.config,aspect_ratio:e})}}},mounted(){this.value||(this.value=Ve)}}),pt={class:"text-sm font-bold mb-2 block"},ut={class:"items"},mt=["onClick"],_t={class:"name"};function gt(e,t,o,c,g,v){return r(),u("div",null,[a("span",pt,d(e.$t("kling.name.ratio")),1),a("div",ut,[(r(!0),u(U,null,L(e.options,(l,p)=>(r(),u("div",{key:p,class:G({active:e.active===p,item:!0}),onClick:i=>e.value=l.value},[a("div",{class:G(["preview",l.label])},[a("div",{class:"rect",style:je({width:l.width+"px",height:l.height+"px"})},null,4)],2),a("p",_t,d(l.label),1)],10,mt))),128))])])}var ft=h(dt,[["render",gt],["__scopeId","data-v-41d8dfdb"],["__file","/home/runner/work/Nexior/Nexior/src/components/kling/config/RatioSelector.vue"]]);const vt=$({name:"StartImage",components:{ElUpload:ke,ElButton:M,InfoIcon:O,FontAwesomeIcon:D},emits:["change"],data(){return{fileList:[],uploadUrl:$e()+"/api/v1/files/"}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>{var t;return(t=e==null?void 0:e.response)==null?void 0:t.file_url})},value:{get(){var e,t,o;return(o=(t=(e=this.$store.state)==null?void 0:e.kling)==null?void 0:t.config)==null?void 0:o.start_image_url},set(e){}}},mounted(){this.value||(this.value=void 0),this.onSetStartImageUrl()},methods:{onExceed(){V.warning(this.$t("kling.message.uploadReferencesExceed"))},onError(){V.error(this.$t("kling.message.uploadReferencesError"))},onSetStartImageUrl(){var t,o,c;const e=(t=this.urls)==null?void 0:t[0];this.$store.commit("kling/setConfig",{...(c=(o=this.$store.state)==null?void 0:o.kling)==null?void 0:c.config,start_image_url:e})},async onSuccess(){this.onSetStartImageUrl()}}}),ht={class:"relative"},$t={class:"flex justify-between"},kt={class:"flex justify-start items-center"},yt={class:"text-sm font-bold"};function bt(e,t,o,c,g,v){const l=n("info-icon"),p=n("font-awesome-icon"),i=n("el-button"),_=n("el-upload");return r(),u("div",ht,[a("div",$t,[a("div",kt,[a("span",yt,d(e.$t("kling.name.startImage")),1),s(l,{content:e.$t("kling.description.uploadStartImage")},null,8,["content"])])]),s(_,{"file-list":e.fileList,"onUpdate:fileList":t[0]||(t[0]=f=>e.fileList=f),name:"file",limit:5,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},{default:m(()=>[s(i,{round:"",type:"primary",size:"small",class:"btn btn-upload"},{default:m(()=>[s(p,{icon:"fa-solid fa-upload",class:"icon mr-1"}),k(" "+d(e.$t("kling.button.uploadReferences")),1)]),_:1})]),_:1},8,["file-list","action","on-exceed","on-error","on-success","headers"])])}var wt=h(vt,[["render",bt],["__scopeId","data-v-6e6084d0"],["__file","/home/runner/work/Nexior/Nexior/src/components/kling/config/StartImage.vue"]]);const St=$({name:"EndImage",components:{ElUpload:ke,ElButton:M,InfoIcon:O,FontAwesomeIcon:D},data(){return{fileList:[],uploadUrl:$e()+"/api/v1/files/"}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>{var t;return(t=e==null?void 0:e.response)==null?void 0:t.file_url})},value:{get(){var e,t,o;return(o=(t=(e=this.$store.state)==null?void 0:e.kling)==null?void 0:t.config)==null?void 0:o.start_image_url},set(e){}}},mounted(){this.value||(this.value=void 0),this.onSetEndImageUrl()},methods:{onExceed(){V.warning(this.$t("kling.message.uploadReferencesExceed"))},onError(){V.error(this.$t("kling.message.uploadReferencesError"))},onSetEndImageUrl(){var t,o;const e=(t=this.urls)==null?void 0:t[0];this.$store.commit("kling/setConfig",{...(o=this.$store.state.kling)==null?void 0:o.config,end_image_url:e})},async onSuccess(){this.onSetEndImageUrl()}}}),It={class:"relative"},Vt={class:"flex justify-between"},Et={class:"flex justify-start items-center"},Nt={class:"text-sm font-bold"};function Pt(e,t,o,c,g,v){const l=n("info-icon"),p=n("font-awesome-icon"),i=n("el-button"),_=n("el-upload");return r(),u("div",It,[a("div",Vt,[a("div",Et,[a("span",Nt,d(e.$t("kling.name.endImage")),1),s(l,{content:e.$t("kling.description.uploadEndImage")},null,8,["content"])])]),s(_,{"file-list":e.fileList,"onUpdate:fileList":t[0]||(t[0]=f=>e.fileList=f),name:"file",limit:5,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},{default:m(()=>[s(i,{round:"",type:"primary",size:"small",class:"btn btn-upload"},{default:m(()=>[s(p,{icon:"fa-solid fa-upload",class:"icon mr-1"}),k(" "+d(e.$t("kling.button.uploadReferences")),1)]),_:1})]),_:1},8,["file-list","action","on-exceed","on-error","on-success","headers"])])}var Ct=h(St,[["render",Pt],["__scopeId","data-v-72a21eff"],["__file","/home/runner/work/Nexior/Nexior/src/components/kling/config/EndImage.vue"]]);const Tt=$({name:"CfgScaleSelector",components:{ElSlider:Re,InfoIcon:O,ElInputNumber:Ue},computed:{value:{get(){var e,t,o;return(o=(t=(e=this.$store.state)==null?void 0:e.kling)==null?void 0:t.config)==null?void 0:o.cfg_scale},set(e){var t,o;console.debug("set cfg_scale",e),this.$store.commit("kling/setConfig",{...(o=(t=this.$store.state)==null?void 0:t.kling)==null?void 0:o.config,cfg_scale:e})}}},mounted(){this.value||(this.value=Ee)}}),At={class:"flex justify-between"},Rt={class:"flex justify-start items-center"},Ut={class:"text-sm font-bold"},Lt={class:"flex justify-end items-center"},Gt={class:"w-full"};function Dt(e,t,o,c,g,v){const l=n("info-icon"),p=n("el-input-number"),i=n("el-slider");return r(),u("div",null,[a("div",At,[a("div",Rt,[a("span",Ut,d(e.$t("kling.name.cfgScale")),1),s(l,{content:e.$t("kling.description.cfgScale")},null,8,["content"])]),a("div",Lt,[s(p,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=_=>e.value=_),size:"small","controls-position":"right"},null,8,["modelValue"])])]),a("div",Gt,[s(i,{modelValue:e.value,"onUpdate:modelValue":t[1]||(t[1]=_=>e.value=_),min:0,max:1,step:.1},null,8,["modelValue"])])])}var Mt=h(Tt,[["render",Dt],["__file","/home/runner/work/Nexior/Nexior/src/components/kling/config/CfgScaleSelector.vue"]]);const Ot="",jt=$({name:"PromptInput",components:{ElInput:ye,InfoIcon:O},computed:{prompt:{get(){var e,t;return(t=(e=this.$store.state.kling)==null?void 0:e.config)==null?void 0:t.prompt},set(e){var t;console.debug("set prompt",e),this.$store.commit("kling/setConfig",{...(t=this.$store.state.kling)==null?void 0:t.config,prompt:e})}}},mounted(){this.value||(this.value=Ot)}}),zt={class:"field"},Ft={class:"box"},Bt={class:"title font-bold"};function qt(e,t,o,c,g,v){const l=n("info-icon"),p=n("el-input");return r(),u("div",zt,[a("div",Ft,[a("h2",Bt,d(e.$t("kling.name.prompt")),1),s(l,{content:e.$t("kling.description.prompt"),class:"info"},null,8,["content"])]),s(p,{modelValue:e.prompt,"onUpdate:modelValue":t[0]||(t[0]=i=>e.prompt=i),rows:3,type:"textarea",class:"prompt",placeholder:e.$t("kling.placeholder.prompt"),maxlength:500,"show-word-limit":""},null,8,["modelValue","placeholder"])])}var Kt=h(jt,[["render",qt],["__scopeId","data-v-fd830852"],["__file","/home/runner/work/Nexior/Nexior/src/components/kling/config/PromptInput.vue"]]);const Ht="",Qt=$({name:"NegativePromptInput",components:{ElInput:ye,InfoIcon:O},computed:{prompt:{get(){var e,t;return(t=(e=this.$store.state.kling)==null?void 0:e.config)==null?void 0:t.negative_prompt},set(e){var t;console.debug("set prompt",e),this.$store.commit("kling/setConfig",{...(t=this.$store.state.kling)==null?void 0:t.config,negative_prompt:e})}}},mounted(){this.value||(this.value=Ht)}}),Yt={class:"field"},Jt={class:"box"},Wt={class:"title font-bold"};function Xt(e,t,o,c,g,v){const l=n("info-icon"),p=n("el-input");return r(),u("div",Yt,[a("div",Jt,[a("h2",Wt,d(e.$t("kling.name.negativePrompt")),1),s(l,{content:e.$t("kling.description.negativePrompt"),class:"info"},null,8,["content"])]),s(p,{modelValue:e.prompt,"onUpdate:modelValue":t[0]||(t[0]=i=>e.prompt=i),rows:3,type:"textarea",class:"prompt",placeholder:e.$t("kling.placeholder.negativePrompt"),maxlength:200,"show-word-limit":""},null,8,["modelValue","placeholder"])])}var Zt=h(Qt,[["render",Xt],["__scopeId","data-v-6c3d0de2"],["__file","/home/runner/work/Nexior/Nexior/src/components/kling/config/NegativePromptInput.vue"]]);const xt=$({name:"PresetPanel",components:{ElButton:M,FontAwesomeIcon:D,PromptInput:Kt,NegativePromptInput:Zt,ModelSelector:xe,ModeSelector:nt,DurationSelector:ct,RatioSelector:ft,StartImage:wt,CfgScaleSelector:Mt,EndImage:Ct},emits:["generate"],computed:{config(){var e;return(e=this.$store.state.kling)==null?void 0:e.config}},methods:{onGenerate(){this.$emit("generate")}}}),eo={class:"panel"},to={class:"config"},oo={class:"actions"};function so(e,t,o,c,g,v){var b,A;const l=n("prompt-input"),p=n("model-selector"),i=n("mode-selector"),_=n("ratio-selector"),f=n("start-image"),S=n("end-image"),E=n("cfg-scale-selector"),C=n("duration-selector"),T=n("negative-prompt-input"),N=n("font-awesome-icon"),P=n("el-button");return r(),u("div",eo,[a("div",to,[s(l,{class:"mb-4"}),s(p,{class:"mb-4"}),s(i,{class:"mb-4"}),s(_,{class:"mb-4"}),s(f,{class:"mb-4"}),s(S,{class:"mb-4"}),s(E,{class:"mb-4"}),s(C,{class:"mb-4"}),s(T,{class:"mb-4"}),a("div",oo,[((b=e.config)==null?void 0:b.video_url)!==void 0||((A=e.config)==null?void 0:A.custom)?(r(),R(P,{key:0,type:"primary",class:"btn w-full",round:"",onClick:e.onGenerate},{default:m(()=>[s(N,{icon:"fa-solid fa-magic",class:"mr-2"}),k(" "+d(e.$t("kling.button.extend")),1)]),_:1},8,["onClick"])):(r(),R(P,{key:1,type:"primary",class:"btn w-full",round:"",onClick:e.onGenerate},{default:m(()=>[s(N,{icon:"fa-solid fa-magic",class:"mr-2"}),k(" "+d(e.$t("kling.button.generate")),1)]),_:1},8,["onClick"]))])])])}var no=h(xt,[["render",so],["__scopeId","data-v-301363b4"],["__file","/home/runner/work/Nexior/Nexior/src/components/kling/ConfigPanel.vue"]]);const ao=$({name:"VideoPlayer",components:{VuePlyr:be},props:{modelValue:{type:Object,required:!0}},data(){return{options:{quality:{default:"1080p"}}}}}),lo={controls:"",crossorigin:"",playsinline:""},io=["src"];function ro(e,t,o,c,g,v){const l=n("vue-plyr");return r(),u("div",null,[s(l,{options:e.options,class:"video"},{default:m(()=>{var p;return[a("video",lo,[a("source",{size:"1080",src:(p=e.modelValue)==null?void 0:p.video_url,type:"video/mp4"},null,8,io)])]}),_:1},8,["options"])])}var co=h(ao,[["render",ro],["__scopeId","data-v-3fd1ea0e"],["__file","/home/runner/work/Nexior/Nexior/src/components/kling/VideoPlayer.vue"]]);const po=$({name:"TaskPreview",components:{ElImage:Le,CopyToClipboard:Fe,FontAwesomeIcon:D,ElAlert:Ge,VideoPlayer:co,ElTooltip:De,ElButton:M},props:{modelValue:{type:Object,required:!0}},data(){return{}},computed:{application(){var e;return(e=this.$store.state.kling)==null?void 0:e.application},config(){var e;return(e=this.$store.state.kling)==null?void 0:e.config}},methods:{onDownload(e,t){e.stopPropagation(),console.log("on download"),window.open(t,"_blank")},onReload(e){const t=e.target,o=new URL(t.src),c=o.searchParams.get("retry");if(!c)o.searchParams.set("retry","1");else if(parseInt(c)<2)o.searchParams.set("retry",(parseInt(c)+1).toString());else return;t.src=o.toString()},onOpenVideo(e){window.open(e,"_blank")}}}),uo={class:"preview"},mo={class:"left"},_o={class:"main"},go={class:"bot"},fo={class:"datetime"},vo={class:"info"},ho={key:0,class:"prompt mt-2"},$o={key:0},ko={key:1},yo={key:0,class:G({content:!0,failed:!0})},bo={class:"image-wrapper"},wo={key:0,class:G({operations:!0,"mt-2":!0})},So={class:"description"},Io={key:1,class:G({content:!0})},Vo={class:"description"},Eo={class:"description"},No={class:"description"},Po={key:2,class:G({content:!0})},Co={class:"description"};function To(e,t,o,c,g,v){var C,T,N,P,b,A,q,K,H,Q,Y,J,W,X,Z,x,ee,te,oe,se,ne,ae,le,ie,re;const l=n("el-image"),p=n("VideoPlayer"),i=n("el-button"),_=n("el-tooltip"),f=n("font-awesome-icon"),S=n("copy-to-clipboard"),E=n("el-alert");return r(),u("div",uo,[a("div",mo,[s(l,{src:"https://cdn.acedata.cloud/gtt64b.png",class:"avatar"})]),a("div",_o,[a("div",go,[k(d(e.$t("kling.name.klingBot"))+" ",1),a("span",fo,d(e.$dayjs.format(""+new Date(parseFloat(((C=e.modelValue)==null?void 0:C.created_at)||"")*1e3))),1)]),a("div",vo,[(N=(T=e.modelValue)==null?void 0:T.request)!=null&&N.prompt?(r(),u("p",ho,[k(d((b=(P=e.modelValue)==null?void 0:P.request)==null?void 0:b.prompt)+" ",1),(A=e.modelValue)!=null&&A.response?y("v-if",!0):(r(),u("span",$o," - ("+d(e.$t("kling.status.pending"))+") ",1)),((K=(q=e.modelValue)==null?void 0:q.response)==null?void 0:K.state)==="submitted"||((Q=(H=e.modelValue)==null?void 0:H.response)==null?void 0:Q.state)==="processing"||((J=(Y=e.modelValue)==null?void 0:Y.response)==null?void 0:J.state)==="pending"||((X=(W=e.modelValue)==null?void 0:W.response)==null?void 0:X.state)==="completed"?(r(),u("span",ko," - ("+d(e.$t("kling.status.processing"))+") ",1)):y("v-if",!0)])):y("v-if",!0)]),y(" Display success message "),((x=(Z=e.modelValue)==null?void 0:Z.response)==null?void 0:x.success)===!0?(r(),u("div",yo,[a("div",bo,[s(p,{"model-value":(ee=e.modelValue)==null?void 0:ee.response},null,8,["model-value"])]),(te=e.modelValue)!=null&&te.response.success?(r(),u("div",wo,[s(_,{class:"box-item",effect:"dark",content:e.$t("kling.message.downloadVideo"),placement:"top-start"},{default:m(()=>[s(i,{type:"info",size:"small",class:"btn-action",onClick:t[0]||(t[0]=I=>{var w;return e.onDownload(I,(w=e.modelValue)==null?void 0:w.response.video_url)})},{default:m(()=>[k(d(e.$t("kling.button.download")),1)]),_:1})]),_:1},8,["content"])])):y("v-if",!0),s(E,{closable:!1,class:"mt-2 success"},{default:m(()=>{var I,w;return[a("p",So,[s(f,{icon:"fa-solid fa-magic",class:"mr-1"}),k(" "+d(e.$t("kling.name.taskId"))+": "+d((I=e.modelValue)==null?void 0:I.id)+" ",1),s(S,{content:(w=e.modelValue)==null?void 0:w.id,class:"btn-copy"},null,8,["content"])])]}),_:1})])):y("v-if",!0),y(" Display error message "),((se=(oe=e.modelValue)==null?void 0:oe.response)==null?void 0:se.success)===!1?(r(),u("div",Io,[s(E,{closable:!1,class:"failure"},{template:m(()=>[s(f,{icon:"fa-solid fa-exclamation-triangle",class:"mr-1"}),k(" "+d(e.$t("kling.name.failure")),1)]),default:m(()=>{var I,w,ce,de,pe,ue,me,_e,ge,fe,ve,he;return[a("p",Vo,[s(f,{icon:"fa-solid fa-magic",class:"mr-1"}),k(" "+d(e.$t("kling.name.taskId"))+": "+d((I=e.modelValue)==null?void 0:I.id)+" ",1),s(S,{content:(w=e.modelValue)==null?void 0:w.id,class:"btn-copy"},null,8,["content"])]),a("p",Eo,[s(f,{icon:"fa-solid fa-circle-info",class:"mr-1"}),k(" "+d(e.$t("kling.name.failureReason"))+": "+d((pe=(de=(ce=e.modelValue)==null?void 0:ce.response)==null?void 0:de.error)==null?void 0:pe.message)+" ",1),s(S,{content:(_e=(me=(ue=e.modelValue)==null?void 0:ue.response)==null?void 0:me.error)==null?void 0:_e.message,class:"btn-copy"},null,8,["content"])]),a("p",No,[s(f,{icon:"fa-solid fa-hashtag",class:"mr-1"}),k(" "+d(e.$t("kling.name.traceId"))+": "+d((fe=(ge=e.modelValue)==null?void 0:ge.response)==null?void 0:fe.trace_id)+" ",1),s(S,{content:(he=(ve=e.modelValue)==null?void 0:ve.response)==null?void 0:he.trace_id,class:"btn-copy"},null,8,["content"])])]}),_:1})])):y("v-if",!0),y(" Display error message "),!((ne=e.modelValue)!=null&&ne.response)||((le=(ae=e.modelValue)==null?void 0:ae.response)==null?void 0:le.state)==="processing"||((re=(ie=e.modelValue)==null?void 0:ie.response)==null?void 0:re.state)==="pending"?(r(),u("div",Po,[s(E,{closable:!1,class:"info"},{template:m(()=>[s(f,{icon:"fa-solid fa-exclamation-triangle",class:"mr-1"}),k(" "+d(e.$t("kling.name.failure")),1)]),default:m(()=>{var I,w;return[a("p",Co,[s(f,{icon:"fa-solid fa-magic",class:"mr-1"}),k(" "+d(e.$t("kling.name.taskId"))+": "+d((I=e.modelValue)==null?void 0:I.id)+" ",1),s(S,{content:(w=e.modelValue)==null?void 0:w.id,class:"btn-copy"},null,8,["content"])])]}),_:1})])):y("v-if",!0)])])}var Ao=h(po,[["render",To],["__scopeId","data-v-547724c8"],["__file","/home/runner/work/Nexior/Nexior/src/components/kling/task/Preview.vue"]]);const Ro=$({name:"RecentPanel",components:{TaskPreview:Ao,ElSkeleton:Me,ElSkeletonItem:Oe},emits:["reach-top"],data(){return{job:0}},computed:{tasks(){var e,t,o,c;return{...(e=this.$store.state.kling)==null?void 0:e.tasks,items:(c=(o=(t=this.$store.state.kling)==null?void 0:t.tasks)==null?void 0:o.items)==null?void 0:c.slice()}}},methods:{onHandleScroll(){const e=this.$refs.panel;console.log("reach-top reach-top reach-top"),e.scrollTop===0&&this.$emit("reach-top")}}}),Uo={key:0,class:"tasks"},Lo={class:"left"},Go={class:"main"},Do={key:1,class:"tasks"},Mo={key:2,class:"description"};function Oo(e,t,o,c,g,v){var _,f,S,E,C,T,N,P;const l=n("el-skeleton-item"),p=n("el-skeleton"),i=n("task-preview");return r(),u("div",{ref:"panel",class:"panel recent",onScroll:t[0]||(t[0]=(...b)=>e.onHandleScroll&&e.onHandleScroll(...b))},[((_=e.tasks)==null?void 0:_.items)===void 0?(r(),u("div",Uo,[(r(),u(U,null,L(3,b=>a("div",{key:b,class:"task placeholder"},[a("div",Lo,[s(p,{animated:""},{template:m(()=>[s(l,{variant:"image",class:"avatar"})]),_:1})]),a("div",Go,[s(p,{animated:""},{template:m(()=>[s(l,{variant:"p",class:"title"}),s(l,{variant:"image",class:"icon"})]),_:1})])])),64))])):((S=(f=e.tasks)==null?void 0:f.items)==null?void 0:S.length)&&((C=(E=e.tasks)==null?void 0:E.items)==null?void 0:C.length)>0?(r(),u("div",Do,[y(" {{ tasks?.items }} "),(r(!0),u(U,null,L((T=e.tasks)==null?void 0:T.items,(b,A)=>(r(),R(i,{key:A,"model-value":b,class:"preview"},null,8,["model-value"]))),128))])):y("v-if",!0),((P=(N=e.tasks)==null?void 0:N.items)==null?void 0:P.length)===0?(r(),u("p",Mo,d(e.$t("kling.message.noTasks")),1)):y("v-if",!0)],544)}var jo=h(Ro,[["render",Oo],["__scopeId","data-v-abb7e68a"],["__file","/home/runner/work/Nexior/Nexior/src/components/kling/RecentPanel.vue"]]);const zo="https://webhook.acedata.cloud/kling",Fo=$({name:"KlingIndex",components:{ConfigPanel:no,Layout:Ye,ApplicationStatus:ze,RecentPanel:jo},data(){return{task:void 0,job:0,timer:void 0}},computed:{loading(){var e,t;return((t=(e=this.$store.state.kling)==null?void 0:e.status)==null?void 0:t.getApplications)===j.Request},service(){return this.$store.state.kling.service},credential(){return this.$store.state.kling.credential},config(){return this.$store.state.kling.config},initializing(){return this.$store.state.kling.status.getApplications===j.Request},needApply(){return this.$store.state.kling.status.getApplications===j.Success&&!this.application},application(){return this.$store.state.kling.application},applications(){return this.$store.state.kling.applications},tasks(){return this.$store.state.kling.tasks}},watch:{tasks:{handler(e,t){var o,c;((o=e==null?void 0:e.items)==null?void 0:o.length)>((c=t==null?void 0:t.items)==null?void 0:c.length)&&console.debug("new tasks detected")},deep:!0}},async mounted(){await this.onGetService(),await this.onGetApplication(),await this.onScrollDown(),await this.onGetTasks(),this.job=setInterval(()=>{this.onGetTasks()},5e3)},async unmounted(){clearInterval(this.job),clearInterval(this.timer)},methods:{async onReachTop(){var e,t,o;console.debug("reached top"),await this.onGetTasks({createdAtMax:(o=(t=(e=this.tasks)==null?void 0:e.items)==null?void 0:t[0])==null?void 0:o.created_at})},async onGetService(){console.debug("start onGetService"),await this.$store.dispatch("kling/getService"),console.debug("end onGetService")},async onGetApplication(){console.debug("start onGetApplication"),await this.$store.dispatch("kling/getApplications"),console.debug("end onGetApplication"),await this.onGetTasks()},onApply(){Ne.create({application:this.application}).then(({data:e})=>{this.application=e,V.success(this.$t("application.message.applySuccessfully"))}).catch(e=>{var t,o;((o=(t=e==null?void 0:e.response)==null?void 0:t.data)==null?void 0:o.code)===Pe&&V.error(this.$t("application.message.alreadyApplied"))})},async onScrollDown(){setTimeout(()=>{const e=document.querySelector(".recent");e&&(e.scrollTop=e.scrollHeight)},500)},async onGetTasks(e){if(this.loading){console.debug("loading");return}console.debug("start onGetTasks",e);const{limit:t=5,createdAtMin:o,createdAtMax:c}=e||{};console.debug("limit",t,"createdAtMin",o,"createdAtMax",c),await this.$store.dispatch("kling/getTasks",{limit:t,createdAtMin:o,createdAtMax:c})},async onGenerateVideo(){var o;const e={...this.config,callback_url:zo},t=(o=this.credential)==null?void 0:o.token;if(!t){console.error("no token specified");return}V.info(this.$t("kling.message.startingTask")),Ce.generate(e,{token:t}).then(()=>{V.success(this.$t("kling.message.startTaskSuccess")),this.$store.commit("kling/setConfig",{config:void 0})}).catch(c=>{var v,l;const g=(v=c==null?void 0:c.response)==null?void 0:v.data;((l=g==null?void 0:g.error)==null?void 0:l.code)===Te?V.error(this.$t("kling.message.usedUp")):V.error(this.$t("kling.message.startTaskFailed"))}).finally(async()=>{setTimeout(async()=>{await this.onGetTasks(),await this.onScrollDown()},1e3)})}}});function Bo(e,t,o,c,g,v){const l=n("config-panel"),p=n("application-status"),i=n("recent-panel"),_=n("layout");return r(),R(_,null,{config:m(()=>[s(l,{onGenerate:e.onGenerateVideo},null,8,["onGenerate"])]),result:m(()=>[s(p,{initializing:e.initializing,application:e.application,applications:e.applications,service:e.service,"need-apply":e.needApply,class:"mb-4",onRefresh:e.onGetApplication,onSelect:t[0]||(t[0]=f=>e.$store.dispatch("kling/setApplication",f))},null,8,["initializing","application","applications","service","need-apply","onRefresh"]),s(i,{class:"panel recent",onReachTop:e.onReachTop},null,8,["onReachTop"]),y(' <operation-panel class="panel operation" @generate="onGenerate" /> ')]),_:1})}var es=h(Fo,[["render",Bo],["__scopeId","data-v-e48d89a0"],["__file","/home/runner/work/Nexior/Nexior/src/pages/kling/Index.vue"]]);export{es as default};
|