@acedatacloud/nexior 3.6.0 → 3.8.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.7e6f4111.js → Auth.21891401.js} +1 -1
- package/dist/assets/{Callback.cb45a84d.js → Callback.fdb2cf5b.js} +1 -1
- package/dist/assets/{Console.e3aac631.js → Console.df0fb175.js} +1 -1
- package/dist/assets/{Conversation.7c9f3730.js → Conversation.d96bd205.js} +1 -1
- package/dist/assets/{CopyToClipboard.3752e201.js → CopyToClipboard.87d2678f.js} +1 -1
- package/dist/assets/{Detail.3f01ee17.js → Detail.ed3b726c.js} +1 -1
- package/dist/assets/{EditArray.5391fc09.js → EditArray.c7ece1fa.js} +1 -1
- package/dist/assets/{Extra.5477a502.js → Extra.97512d95.js} +1 -1
- package/dist/assets/{History.d047803b.js → History.1c2cb866.js} +1 -1
- package/dist/assets/{ImagePreview.65bc0654.js → ImagePreview.82422136.js} +1 -1
- package/dist/assets/ImageWrapper.4fbf09ec.css +1 -0
- package/dist/assets/ImageWrapper.f8a5161e.js +1 -0
- package/dist/assets/{Index.50ba380b.js → Index.06f8adcb.js} +1 -1
- package/dist/assets/Index.0f4cbf2e.js +1 -0
- package/dist/assets/Index.140faaa6.js +1 -0
- package/dist/assets/Index.19c07ae4.css +1 -0
- package/dist/assets/Index.21aafaf1.js +1 -0
- package/dist/assets/{Index.17dc01b1.js → Index.22cd7b3e.js} +1 -1
- package/dist/assets/{Index.6e057f69.js → Index.3728c701.js} +1 -1
- package/dist/assets/{Index.4529fd48.js → Index.3fbf8920.js} +1 -1
- package/dist/assets/Index.4b8c5928.css +1 -0
- package/dist/assets/{Index.f0f74bae.js → Index.570ab8f8.js} +1 -1
- package/dist/assets/{Index.2e3d5c82.js → Index.909b4512.js} +1 -1
- package/dist/assets/{Index.33f3dfb6.js → Index.9f53f8cf.js} +1 -1
- package/dist/assets/{Index.ea29dd1e.js → Index.b8569a62.js} +1 -1
- package/dist/assets/Index.d616da1d.css +1 -0
- package/dist/assets/Index.dc041425.js +1 -0
- package/dist/assets/{Index.71261aec.css → Index.fde609ce.css} +1 -1
- package/dist/assets/{InfoIcon.b3285074.js → InfoIcon.16ae8701.js} +1 -1
- package/dist/assets/{Invitees.554ecb8a.js → Invitees.beff598e.js} +1 -1
- package/dist/assets/{List.72564a10.js → List.37fea9df.js} +1 -1
- package/dist/assets/{List.cadae838.js → List.52505d53.js} +1 -1
- package/dist/assets/{List.edcf37b7.js → List.8045467f.js} +1 -1
- package/dist/assets/{Login.cb819cb0.js → Login.45882569.js} +1 -1
- package/dist/assets/Main.2a5ab879.js +1 -0
- package/dist/assets/{Navigator.2bfdf6ee.css → Navigator.05693b71.css} +1 -1
- package/dist/assets/{Navigator.fb908eb8.js → Navigator.a95d6082.js} +1 -1
- package/dist/assets/NoTasks.8058dbd8.css +1 -0
- package/dist/assets/NoTasks.ed5529bd.js +1 -0
- package/dist/assets/{Pagination.87c48fec.js → Pagination.84919796.js} +1 -1
- package/dist/assets/{Status.5419f090.js → Status.6fb8e7aa.js} +1 -1
- package/dist/assets/{Subscribe.d0a01233.js → Subscribe.1ff74b16.js} +1 -1
- package/dist/assets/VideoPlayer.0eaeaa69.js +1 -0
- package/dist/assets/VideoPlayer.2becb8b3.css +1 -0
- package/dist/assets/common.0e5ec5ca.js +1 -0
- package/dist/assets/common.1e52006f.js +1 -0
- package/dist/assets/common.2a16f59d.js +1 -0
- package/dist/assets/common.2cd10ff4.js +1 -0
- package/dist/assets/common.3780fc41.js +1 -0
- package/dist/assets/common.48cec9f7.js +1 -0
- package/dist/assets/common.57a4bed2.js +1 -0
- package/dist/assets/common.845eb8ab.js +1 -0
- package/dist/assets/common.84cd5329.js +1 -0
- package/dist/assets/common.86eea1ad.js +1 -0
- package/dist/assets/common.b5b6bb8f.js +1 -0
- package/dist/assets/common.d1ffcdb0.js +1 -0
- package/dist/assets/common.d47c4201.js +1 -0
- package/dist/assets/{common.b1b599f0.js → common.d6121695.js} +1 -1
- package/dist/assets/common.f2133a17.js +1 -0
- package/dist/assets/common.fa3ab2de.js +1 -0
- package/dist/assets/{distribution.fade0158.js → distribution.929b2f43.js} +1 -1
- package/dist/assets/hailuo.40464b89.js +1 -0
- package/dist/assets/hailuo.412c6f3d.js +1 -0
- package/dist/assets/hailuo.44e7373b.js +1 -0
- package/dist/assets/hailuo.477e009b.js +1 -0
- package/dist/assets/hailuo.4c91b29d.js +1 -0
- package/dist/assets/hailuo.4d9aa443.js +1 -0
- package/dist/assets/hailuo.50c6ea94.js +1 -0
- package/dist/assets/hailuo.76c9be05.js +1 -0
- package/dist/assets/hailuo.89ea1379.js +1 -0
- package/dist/assets/hailuo.8a22f4c3.js +1 -0
- package/dist/assets/hailuo.8fb0862d.js +1 -0
- package/dist/assets/hailuo.9db63618.js +1 -0
- package/dist/assets/hailuo.a73402c2.js +1 -0
- package/dist/assets/hailuo.c63d337e.js +1 -0
- package/dist/assets/hailuo.c8a3f472.js +1 -0
- package/dist/assets/hailuo.d390b451.js +1 -0
- package/dist/assets/hailuo.eacefefc.js +1 -0
- package/dist/assets/hailuo.f803d672.js +1 -0
- package/dist/assets/index.ae7f4dce.css +1 -0
- package/dist/assets/{index.bb8f1411.js → index.d9c8443a.js} +2 -2
- package/dist/assets/{order.ac0ff18c.js → order.751e7ec9.js} +1 -1
- package/dist/assets/{price.68957c74.js → price.3700c6cb.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/dist/assets/Index.46ee688f.css +0 -1
- package/dist/assets/Index.55cf783d.css +0 -1
- package/dist/assets/Index.5e76681e.js +0 -1
- package/dist/assets/Index.6c8f5464.css +0 -1
- package/dist/assets/Index.8675ada1.js +0 -1
- package/dist/assets/Index.bb85723a.js +0 -1
- package/dist/assets/Index.c0e93ce4.js +0 -1
- package/dist/assets/Main.d6712532.js +0 -1
- package/dist/assets/common.213f3faa.js +0 -1
- package/dist/assets/common.266519a4.js +0 -1
- package/dist/assets/common.266bef61.js +0 -1
- package/dist/assets/common.2ccdc3a9.js +0 -1
- package/dist/assets/common.3011e894.js +0 -1
- package/dist/assets/common.323e93fb.js +0 -1
- package/dist/assets/common.3a4ea09c.js +0 -1
- package/dist/assets/common.490a6cf0.js +0 -1
- package/dist/assets/common.4ccb3146.js +0 -1
- package/dist/assets/common.4f85999d.js +0 -1
- package/dist/assets/common.55450d76.js +0 -1
- package/dist/assets/common.76ea5ea9.js +0 -1
- package/dist/assets/common.b1113ce9.js +0 -1
- package/dist/assets/common.bff5f1b9.js +0 -1
- package/dist/assets/common.c54e29fc.js +0 -1
- package/dist/assets/hailuo.0a3d1340.js +0 -1
- package/dist/assets/hailuo.2cb82586.js +0 -1
- package/dist/assets/hailuo.37108325.js +0 -1
- package/dist/assets/hailuo.3894ef18.js +0 -1
- package/dist/assets/hailuo.3b8f72eb.js +0 -1
- package/dist/assets/hailuo.48169a81.js +0 -1
- package/dist/assets/hailuo.603baf35.js +0 -1
- package/dist/assets/hailuo.6eaa7dc4.js +0 -1
- package/dist/assets/hailuo.76df33b6.js +0 -1
- package/dist/assets/hailuo.7ca07086.js +0 -1
- package/dist/assets/hailuo.95a516b3.js +0 -1
- package/dist/assets/hailuo.aa84f90f.js +0 -1
- package/dist/assets/hailuo.b58fe7ac.js +0 -1
- package/dist/assets/hailuo.b5941733.js +0 -1
- package/dist/assets/hailuo.b75c4887.js +0 -1
- package/dist/assets/hailuo.d4c2b8de.js +0 -1
- package/dist/assets/hailuo.d63e17d4.js +0 -1
- package/dist/assets/hailuo.db591cd1.js +0 -1
- package/dist/assets/index.4c3a388e.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{E as a}from"./index.
|
|
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{E as a}from"./index.d9c8443a.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{F as a,G as i}from"./index.
|
|
1
|
+
import{F as a,G as i}from"./index.d9c8443a.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};
|
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.d9c8443a.js"></script>
|
|
20
20
|
<link rel="modulepreload" href="/assets/vendor-@vue.38e80b4c.js">
|
|
21
21
|
<link rel="modulepreload" href="/assets/vendor-element-plus.0d60bec3.js">
|
|
22
22
|
<link rel="modulepreload" href="/assets/vendor-markdown.b359a0a8.js">
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<link rel="modulepreload" href="/assets/vendor-qrcode.60b22bc6.js">
|
|
26
26
|
<link rel="modulepreload" href="/assets/vendor-fortawesome.20479da6.js">
|
|
27
27
|
<link rel="stylesheet" href="/assets/vendor-others.7742907f.css">
|
|
28
|
-
<link rel="stylesheet" href="/assets/index.
|
|
28
|
+
<link rel="stylesheet" href="/assets/index.ae7f4dce.css">
|
|
29
29
|
</head>
|
|
30
30
|
<body>
|
|
31
31
|
<div id="app">
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.main[data-v-50bc0f32]{flex:1;display:flex;flex-direction:row}.main .config[data-v-50bc0f32]{width:300px;height:100%;overflow-y:scroll;border-right:1px solid var(--el-border-color)}.main .result[data-v-50bc0f32]{padding:15px;flex:1;width:calc(100% - 300px);height:100%;display:flex;flex-direction:column}.menu[data-v-50bc0f32]{display:none}@media (max-width: 767px){.config[data-v-50bc0f32]{display:none}.result[data-v-50bc0f32]{width:100%}.menu[data-v-50bc0f32]{display:block;position:fixed;left:15px;top:15px;z-index:2000}}.field[data-v-13cacdf9]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.field .title[data-v-13cacdf9]{font-size:14px;margin:0;width:30%}.field .value[data-v-13cacdf9]{width:80px}.field[data-v-3af5203e]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.field .title[data-v-3af5203e]{font-size:14px;margin:0;width:30%}.field .value[data-v-3af5203e]{width:80px}.field[data-v-6434f6d2]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.field .title[data-v-6434f6d2]{font-size:14px;margin:0;width:30%}.field .value[data-v-6434f6d2]{width:80px}.title[data-v-41d8dfdb]{font-size:14px;margin-bottom:10px}.items[data-v-41d8dfdb]{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px}.items .item[data-v-41d8dfdb]{width:48px;height:65px;border:1px solid var(--el-border-color);display:flex;flex-direction:column;align-items:center;cursor:pointer;border-radius:10px}.items .item .preview[data-v-41d8dfdb]{margin-top:8px;width:30px;height:30px;display:flex;flex-direction:row;align-items:center;justify-content:center}.items .item .preview .rect[data-v-41d8dfdb]{border:1px solid var(--el-border-color);width:20px;height:20px;border-radius:2px}.items .item .name[data-v-41d8dfdb]{display:block;font-size:12px;color:var(--el-text-color-primary)}.items .item.active[data-v-41d8dfdb],.items .item.active .rect[data-v-41d8dfdb]{border-color:var(--el-color-primary)}.title[data-v-6e6084d0]{font-size:14px;margin-bottom:0;width:30%}.btn.btn-upload[data-v-6e6084d0]{position:absolute;top:5px;right:0}.upload-wrapper{height:auto;display:flex}.upload-wrapper .el-upload-list{margin:0;width:100%}.title[data-v-72a21eff]{font-size:14px;margin-bottom:0;width:30%}.btn.btn-upload[data-v-72a21eff]{position:absolute;top:5px;right:0}.field .box[data-v-fd830852]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;position:relative}.field .box .title[data-v-fd830852]{font-size:14px;margin-bottom:10px}.field .info[data-v-fd830852]{margin-left:auto}.field .box[data-v-6c3d0de2]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;position:relative}.field .box .title[data-v-6c3d0de2]{font-size:14px;margin-bottom:10px}.field .info[data-v-6c3d0de2]{margin-left:auto}.panel[data-v-301363b4]{height:100%;padding:15px;display:flex;flex-direction:column;flex:1;height:calc(100% - 40px)}.panel .config[data-v-301363b4]{width:100%;height:calc(100% - 50px);flex:1}.panel .actions[data-v-301363b4]{height:50px;display:flex;justify-content:center;align-items:center}.panel .actions .btn[data-v-301363b4]{width:100%}.video[data-v-3fd1ea0e]{max-width:100%;height:450px}.preview[data-v-547724c8]{width:100%;height:-moz-fit-content;height:fit-content;text-align:left;display:flex;flex-direction:row;margin-bottom:15px}.preview .left[data-v-547724c8]{width:70px}.preview .left .avatar[data-v-547724c8]{width:50px;height:50px;margin:10px;border-radius:50%}.preview .main[data-v-547724c8]{flex:1;width:calc(100% - 70px);padding:10px 10px 0}.preview .main .bot[data-v-547724c8]{font-size:16px;font-weight:700;color:#2ecc71;margin-bottom:0;margin-top:0}.preview .main .bot .datetime[data-v-547724c8]{font-size:12px;font-weight:400;color:var(--el-text-color-secondary);margin-left:10px}.preview .main .info .prompt[data-v-547724c8]{font-size:14px;font-weight:700;color:var(--el-text-color-regular);margin-bottom:10px}.preview .main .content .el-alert[data-v-547724c8]{border-left-width:2px;border-left-style:solid}.preview .main .content .el-alert.failure[data-v-547724c8]{border-color:var(--el-color-danger)}.preview .main .content .el-alert.success[data-v-547724c8]{border-color:var(--el-color-success)}.preview .main .content .el-alert.info[data-v-547724c8]{border-color:var(--el-color-info)}.preview .main .image-wrapper[data-v-547724c8]{position:relative;width:-moz-fit-content;width:fit-content;min-height:50px;min-width:100px}.preview .main .image-wrapper .image[data-v-547724c8]{max-height:400px;max-width:500px;display:block;width:-moz-fit-content;width:fit-content}.preview .main .image-wrapper .btn-raw[data-v-547724c8]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:1000;display:none}.preview .main .image-wrapper .play-icon[data-v-547724c8]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:48px;color:#fff;z-index:500;pointer-events:none}.preview .main .image-wrapper:hover .image[data-v-547724c8]{filter:brightness(.6)}.preview .main .image-wrapper:hover .btn-raw[data-v-547724c8]{display:block}.preview .main .image-wrapper:hover .play-icon[data-v-547724c8]{display:none}.preview .main .operations[data-v-547724c8]{display:flex;justify-content:left;flex-direction:row;width:100%;align-items:baseline;flex-wrap:wrap;overflow:hidden;text-align:center;color:var(--el-text-color-regular);font-size:14px;overflow-y:scroll}.preview .main .operations.full[data-v-547724c8]{height:70px}.preview .main .operations .btn-action[data-v-547724c8]{margin-bottom:10px}.preview .image.error{background:var(--el-bg-color-page)}.preview .image.error .image-slot{font-size:14px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.preview .failure{background:var(--el-fill-color-light);width:100%}.preview .failure .el-alert__content p{margin-bottom:10px}.panel[data-v-abb7e68a]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%}.panel.recent[data-v-abb7e68a]{width:100%;height:100%;display:flex;overflow-y:auto;flex-direction:column}.panel.recent .preview[data-v-abb7e68a]{margin-right:15px}.panel.recent .description[data-v-abb7e68a]{text-align:left;font-size:14px;color:var(--el-text-color-secondary)}.panel.recent .tasks[data-v-abb7e68a]{width:100%}.panel.recent .tasks .task[data-v-abb7e68a]{margin-bottom:15px;width:100%;height:-moz-fit-content;height:fit-content;text-align:left}.panel.recent .tasks .task.placeholder[data-v-abb7e68a]{display:flex;flex-direction:row}.panel.recent .tasks .task.placeholder .left[data-v-abb7e68a]{width:70px;padding:10px}.panel.recent .tasks .task.placeholder .left .avatar[data-v-abb7e68a]{width:50px;height:50px;border-radius:50%}.panel.recent .tasks .task.placeholder .main[data-v-abb7e68a]{width:calc(100% - 70px);flex:1;padding:10px;margin-bottom:10px}.panel.recent .tasks .task.placeholder .main .icon[data-v-abb7e68a]{display:flex;height:200px;width:300px}.panel.recent .tasks .task.placeholder .main .title[data-v-abb7e68a]{display:block;width:200px;height:20px;margin-bottom:15px}.panel.recent .tasks .task .operations[data-v-abb7e68a]{height:-moz-fit-content!important;height:fit-content!important}.status[data-v-e48d89a0]{margin-bottom:10px}.panel.detail[data-v-e48d89a0]{width:100%;flex:1;overflow-y:scroll}.panel.recent[data-v-e48d89a0]{height:100%;width:100%;margin-bottom:10px;position:relative;justify-content:initial}.panel.operation[data-v-e48d89a0]{position:relative}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.main[data-v-3c8363f5]{flex:1;display:flex;flex-direction:row}.main .config[data-v-3c8363f5]{width:300px;height:100%;overflow-y:scroll;border-right:1px solid var(--el-border-color)}.main .result[data-v-3c8363f5]{padding:15px;flex:1;width:calc(100% - 300px);height:100%;display:flex;flex-direction:column}.menu[data-v-3c8363f5]{display:none}@media (max-width: 767px){.config[data-v-3c8363f5]{display:none}.result[data-v-3c8363f5]{width:100%}.menu[data-v-3c8363f5]{display:block;position:fixed;left:15px;top:15px;z-index:2000}}.field[data-v-62190314]{display:flex;flex-direction:row;align-items:center}.field .title[data-v-62190314]{font-size:14px;margin:0;width:30%}.field .value[data-v-62190314]{flex:1}.title[data-v-6c6b80d0]{font-size:14px;margin-bottom:0;width:30%}.btn.btn-upload[data-v-6c6b80d0]{position:absolute;top:5px;right:0}.field .box[data-v-d785889c]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;position:relative}.field .box .title[data-v-d785889c]{font-size:14px;margin-bottom:10px}.field .info[data-v-d785889c]{margin-left:auto}.panel[data-v-01eef439]{height:100%;padding:15px;display:flex;flex-direction:column;flex:1;height:calc(100% - 40px)}.panel .config[data-v-01eef439]{width:100%;height:calc(100% - 50px);flex:1}.panel .actions[data-v-01eef439]{height:50px;display:flex;justify-content:center;align-items:center}.panel .actions .btn[data-v-01eef439]{width:100%}.video[data-v-11ad7a93]{max-width:100%;height:450px}.preview[data-v-3f5aedb7]{width:100%;height:-moz-fit-content;height:fit-content;text-align:left;display:flex;flex-direction:row;margin-bottom:15px}.preview .left[data-v-3f5aedb7]{width:70px}.preview .left .avatar[data-v-3f5aedb7]{width:50px;height:50px;margin:10px;border-radius:50%;border:1px solid var(--el-border-color)}.preview .main[data-v-3f5aedb7]{flex:1;width:calc(100% - 70px);padding:10px 10px 0}.preview .main .bot[data-v-3f5aedb7]{font-size:16px;font-weight:700;color:#2ecc71;margin-bottom:0;margin-top:0}.preview .main .bot .datetime[data-v-3f5aedb7]{font-size:12px;font-weight:400;color:var(--el-text-color-secondary);margin-left:10px}.preview .main .info .prompt[data-v-3f5aedb7]{font-size:14px;font-weight:700;color:var(--el-text-color-regular);margin-bottom:10px}.preview .main .content .el-alert[data-v-3f5aedb7]{border-left-width:2px;border-left-style:solid}.preview .main .content .el-alert.failure[data-v-3f5aedb7]{border-color:var(--el-color-danger)}.preview .main .content .el-alert.success[data-v-3f5aedb7]{border-color:var(--el-color-success)}.preview .main .content .el-alert.info[data-v-3f5aedb7]{border-color:var(--el-color-info)}.preview .main .image-wrapper[data-v-3f5aedb7]{position:relative;width:-moz-fit-content;width:fit-content;min-height:50px;min-width:100px}.preview .main .image-wrapper .image[data-v-3f5aedb7]{max-height:400px;max-width:500px;display:block;width:-moz-fit-content;width:fit-content}.preview .main .image-wrapper .btn-raw[data-v-3f5aedb7]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:1000;display:none}.preview .main .image-wrapper .play-icon[data-v-3f5aedb7]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:48px;color:#fff;z-index:500;pointer-events:none}.preview .main .image-wrapper:hover .image[data-v-3f5aedb7]{filter:brightness(.6)}.preview .main .image-wrapper:hover .btn-raw[data-v-3f5aedb7]{display:block}.preview .main .image-wrapper:hover .play-icon[data-v-3f5aedb7]{display:none}.preview .main .operations[data-v-3f5aedb7]{display:flex;justify-content:left;flex-direction:row;width:100%;align-items:baseline;flex-wrap:wrap;overflow:hidden;text-align:center;color:var(--el-text-color-regular);font-size:14px;overflow-y:scroll}.preview .main .operations.full[data-v-3f5aedb7]{height:70px}.preview .main .operations .btn-action[data-v-3f5aedb7]{margin-bottom:10px}.preview .image.error{background:var(--el-bg-color-page)}.preview .image.error .image-slot{font-size:14px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.preview .failure{background:var(--el-fill-color-light);width:100%}.preview .failure .el-alert__content p{margin-bottom:10px}.panel[data-v-7bff9d40]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%}.panel.recent[data-v-7bff9d40]{width:100%;height:100%;display:flex;overflow-y:auto;flex-direction:column}.panel.recent .preview[data-v-7bff9d40]{margin-right:15px}.panel.recent .description[data-v-7bff9d40]{text-align:left;font-size:14px;color:var(--el-text-color-secondary)}.panel.recent .tasks[data-v-7bff9d40]{width:100%}.panel.recent .tasks .task[data-v-7bff9d40]{margin-bottom:15px;width:100%;height:-moz-fit-content;height:fit-content;text-align:left}.panel.recent .tasks .task.placeholder[data-v-7bff9d40]{display:flex;flex-direction:row}.panel.recent .tasks .task.placeholder .left[data-v-7bff9d40]{width:70px;padding:10px}.panel.recent .tasks .task.placeholder .left .avatar[data-v-7bff9d40]{width:50px;height:50px;border-radius:50%}.panel.recent .tasks .task.placeholder .main[data-v-7bff9d40]{width:calc(100% - 70px);flex:1;padding:10px;margin-bottom:10px}.panel.recent .tasks .task.placeholder .main .icon[data-v-7bff9d40]{display:flex;height:200px;width:300px}.panel.recent .tasks .task.placeholder .main .title[data-v-7bff9d40]{display:block;width:200px;height:20px;margin-bottom:15px}.panel.recent .tasks .task .operations[data-v-7bff9d40]{height:-moz-fit-content!important;height:fit-content!important}.status[data-v-1f8aa246]{margin-bottom:10px}.panel.detail[data-v-1f8aa246]{width:100%;flex:1;overflow-y:scroll}.panel.recent[data-v-1f8aa246]{height:100%;width:100%;margin-bottom:10px;position:relative;justify-content:initial}.panel.operation[data-v-1f8aa246]{position:relative}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./vendor-others.4ac6d265.js";import{ar as L}from"./vendor-fortawesome.20479da6.js";import{_ as I,aP as ne,N as O,J as ae,P as le,aQ as re,a2 as ie}from"./index.bb8f1411.js";import{T as ce,u as U,N as ue,O as de,t as pe,m as _e,I as me,s as fe,H as he,R as ve,y as S}from"./vendor-element-plus.0d60bec3.js";import{H as V,al as r,o as n,e as p,f as u,I as M,V as s,M as f,T as l,U as E,ai as R,L as P,S as k,R as $,P as D}from"./vendor-@vue.38e80b4c.js";import{I as $e}from"./InfoIcon.b3285074.js";import{C as ge}from"./CopyToClipboard.3752e201.js";import"./vendor-markdown.b359a0a8.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.60b22bc6.js";const ke=V({name:"LayoutFlux",components:{ElDrawer:ce,ElButton:U,FontAwesomeIcon:L},data(){return{drawer:!1}}}),ye={class:"main"},we={class:"config"},be={class:"result"};function xe(e,t,o,i,h,v){const a=r("font-awesome-icon"),_=r("el-button"),d=r("el-drawer");return n(),p("div",ye,[u("div",we,[M(e.$slots,"config",{},void 0,!0)]),u("div",be,[M(e.$slots,"result",{},void 0,!0)]),s(_,{round:"",class:"menu",onClick:t[0]||(t[0]=g=>e.drawer=!0)},{default:f(()=>[s(a,{icon:"fa-solid fa-gear",class:"icon-menu"})]),_:1}),s(d,{modelValue:e.drawer,"onUpdate:modelValue":t[1]||(t[1]=g=>e.drawer=g),"with-header":!1,size:"340px",class:"drawer"},{default:f(()=>[M(e.$slots,"config",{},void 0,!0)]),_:3},8,["modelValue"])])}var Ie=I(ke,[["render",xe],["__scopeId","data-v-324e8ab0"],["__file","/home/runner/work/Nexior/Nexior/src/layouts/Flux.vue"]]);const Ve=V({name:"ModelSelector",components:{ElSelect:ue,ElOption:de},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)}}),Te={class:"field"},Se={class:"title font-bold"};function Ce(e,t,o,i,h,v){const a=r("el-option"),_=r("el-select");return n(),p("div",Te,[u("h2",Se,l(e.$t("flux.name.model")),1),s(_,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=d=>e.value=d),class:"value",placeholder:e.$t("flux.placeholder.select")},{default:f(()=>[(n(!0),p(E,null,R(e.options,d=>(n(),P(a,{key:d.value,label:d.label,value:d.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])])}var Ge=I(Ve,[["render",Ce],["__scopeId","data-v-8a0bbbfe"],["__file","/home/runner/work/Nexior/Nexior/src/components/flux/config/ModelSelector.vue"]]);const Pe="",Ae=V({name:"PromptInput",components:{ElInput:pe,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)}}),Ne={class:"field"},Ee={class:"box"},Re={class:"title font-bold"};function De(e,t,o,i,h,v){const a=r("info-icon"),_=r("el-input");return n(),p("div",Ne,[u("div",Ee,[u("h2",Re,l(e.$t("flux.name.prompt")),1),s(a,{content:e.$t("flux.description.prompt"),class:"info"},null,8,["content"])]),s(_,{modelValue:e.prompt,"onUpdate:modelValue":t[0]||(t[0]=d=>e.prompt=d),rows:3,type:"textarea",class:"prompt",placeholder:e.$t("flux.placeholder.prompt"),maxlength:300,"show-word-limit":""},null,8,["modelValue","placeholder"])])}var Oe=I(Ae,[["render",De],["__scopeId","data-v-76c331df"],["__file","/home/runner/work/Nexior/Nexior/src/components/flux/config/PromptInput.vue"]]);const Me=V({name:"PresetPanel",components:{ElButton:U,FontAwesomeIcon:L,PromptInput:Oe,ModelSelector:Ge},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"},Ue={class:"config"},Fe={class:"actions"};function qe(e,t,o,i,h,v){var m,y;const a=r("prompt-input"),_=r("model-selector"),d=r("font-awesome-icon"),g=r("el-button");return n(),p("div",Le,[u("div",Ue,[s(a,{class:"mb-4"}),s(_,{class:"mb-4"}),u("div",Fe,[((m=e.config)==null?void 0:m.video_url)!==void 0||((y=e.config)==null?void 0:y.custom)?(n(),P(g,{key:0,type:"primary",class:"btn w-full",round:"",onClick:e.onGenerate},{default:f(()=>[s(d,{icon:"fa-solid fa-magic",class:"mr-2"}),k(" "+l(e.$t("flux.button.extend")),1)]),_:1},8,["onClick"])):(n(),P(g,{key:1,type:"primary",class:"btn w-full",round:"",onClick:e.onGenerate},{default:f(()=>[s(d,{icon:"fa-solid fa-magic",class:"mr-2"}),k(" "+l(e.$t("flux.button.generate")),1)]),_:1},8,["onClick"]))])])])}var je=I(Me,[["render",qe],["__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(){return{viewImage:t=>{window.open(t,"_blank")}}}}),He={class:"image-gallery"},ze={class:"image-container"},Je=["src"];function Ke(e,t,o,i,h,v){var a,_;return n(),p("div",He,[u("div",ze,[u("img",{src:(a=e.modelValue)==null?void 0:a.image_url,alt:"Image"},null,8,Je),(_=e.modelValue)!=null&&_.image_url?(n(),p("button",{key:0,class:"view-button",onClick:t[0]||(t[0]=d=>e.viewImage(e.modelValue.image_url))},l(e.$t("flux.button.viewImage")),1)):$("v-if",!0)])])}var Qe=I(Be,[["render",Ke],["__scopeId","data-v-74374cc6"],["__file","/home/runner/work/Nexior/Nexior/src/components/flux/ImageGallery.vue"]]);const Xe=V({name:"TaskPreview",components:{ElImage:_e,CopyToClipboard:ge,FontAwesomeIcon:L,ElAlert:me,ElTooltip:fe,ElButton:U,ImageGallery:Qe},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,i,h,v,a,_,d;let e=[];const t=(i=(o=this.modelValue)==null?void 0:o.request)==null?void 0:i.action;return Array.isArray((v=(h=this.modelValue)==null?void 0:h.response)==null?void 0:v.data)&&((d=(_=(a=this.modelValue)==null?void 0:a.response)==null?void 0:_.data)==null||d.forEach(g=>{let m=g;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"},Ye={class:"main"},Ze={class:"bot"},et={class:"datetime"},tt={class:"info"},st={key:0,class:"prompt mt-2"},ot={key:0},nt={key:1},at={key:0,class:D({content:!0,failed:!0})},lt={class:"image-wrapper"},rt={key:0,class:D({operations:!0,"mt-2":!0})},it={class:"description"},ct={key:1,class:D({content:!0})},ut={class:"description"},dt={class:"description"},pt={class:"description"},_t={key:2,class:D({content:!0})},mt={class:"description"};function ft(e,t,o,i,h,v){const a=r("el-image"),_=r("image-gallery"),d=r("el-button"),g=r("el-tooltip"),m=r("font-awesome-icon"),y=r("copy-to-clipboard"),T=r("el-alert");return n(!0),p(E,null,R(e.images,(c,A)=>{var C,G,b,N,F,q,j,B,H,z,J;return n(),p("div",{key:A,class:"preview"},[u("div",We,[s(a,{src:"https://cdn.acedata.cloud/ogm2oa.png",class:"avatar"})]),u("div",Ye,[u("div",Ze,[k(l(e.$t("flux.name.fluxBot"))+" ",1),u("span",et,l(e.$dayjs.format(""+new Date(parseFloat(((C=e.modelValue)==null?void 0:C.created_at)||"")*1e3))),1)]),u("div",tt,[(b=(G=e.modelValue)==null?void 0:G.request)!=null&&b.prompt?(n(),p("p",st,[k(l((F=(N=e.modelValue)==null?void 0:N.request)==null?void 0:F.prompt)+" ",1),(q=e.modelValue)!=null&&q.response?$("v-if",!0):(n(),p("span",ot," - ("+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(),p("span",nt," - ("+l(e.$t("flux.status.processing"))+") ",1)):$("v-if",!0)])):$("v-if",!0)]),$(" Display success message "),((B=(j=e.modelValue)==null?void 0:j.response)==null?void 0:B.success)===!0?(n(),p("div",at,[u("div",lt,[s(_,{"model-value":c},null,8,["model-value"])]),c?(n(),p("div",rt,[s(g,{class:"box-item",effect:"dark",content:e.$t("flux.message.downloadImage"),placement:"top-start"},{default:f(()=>[s(d,{type:"info",size:"small",class:"btn-action",onClick:w=>e.onDownload(w,c==null?void 0:c.image_url)},{default:f(()=>[k(l(e.$t("flux.button.download")),1)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])):$("v-if",!0),s(T,{closable:!1,class:"mt-2 success"},{default:f(()=>{var w,x;return[u("p",it,[s(m,{icon:"fa-solid fa-magic",class:"mr-1"}),k(" "+l(e.$t("flux.name.taskId"))+": "+l((w=e.modelValue)==null?void 0:w.id)+" ",1),s(y,{content:(x=e.modelValue)==null?void 0:x.id,class:"btn-copy"},null,8,["content"])])]}),_:1})])):$("v-if",!0),$(" Display error message "),((z=(H=e.modelValue)==null?void 0:H.response)==null?void 0:z.success)===!1?(n(),p("div",ct,[s(T,{closable:!1,class:"failure"},{template:f(()=>[s(m,{icon:"fa-solid fa-exclamation-triangle",class:"mr-1"}),k(" "+l(e.$t("flux.name.failure")),1)]),default:f(()=>{var w,x,K,Q,X,W,Y,Z,ee,te,se,oe;return[u("p",ut,[s(m,{icon:"fa-solid fa-magic",class:"mr-1"}),k(" "+l(e.$t("flux.name.taskId"))+": "+l((w=e.modelValue)==null?void 0:w.id)+" ",1),s(y,{content:(x=e.modelValue)==null?void 0:x.id,class:"btn-copy"},null,8,["content"])]),u("p",dt,[s(m,{icon:"fa-solid fa-circle-info",class:"mr-1"}),k(" "+l(e.$t("flux.name.failureReason"))+": "+l((X=(Q=(K=e.modelValue)==null?void 0:K.response)==null?void 0:Q.error)==null?void 0:X.message)+" ",1),s(y,{content:(Z=(Y=(W=e.modelValue)==null?void 0:W.response)==null?void 0:Y.error)==null?void 0:Z.message,class:"btn-copy"},null,8,["content"])]),u("p",pt,[s(m,{icon:"fa-solid fa-hashtag",class:"mr-1"}),k(" "+l(e.$t("flux.name.traceId"))+": "+l((te=(ee=e.modelValue)==null?void 0:ee.response)==null?void 0:te.trace_id)+" ",1),s(y,{content:(oe=(se=e.modelValue)==null?void 0:se.response)==null?void 0:oe.trace_id,class:"btn-copy"},null,8,["content"])])]}),_:1})])):$("v-if",!0),$(" Display error message "),!((J=e.modelValue)!=null&&J.response)||(c==null?void 0:c.state)==="processing"||(c==null?void 0:c.state)==="pending"?(n(),p("div",_t,[s(T,{closable:!1,class:"info"},{template:f(()=>[s(m,{icon:"fa-solid fa-exclamation-triangle",class:"mr-1"}),k(" "+l(e.$t("flux.name.failure")),1)]),default:f(()=>{var w,x;return[u("p",mt,[s(m,{icon:"fa-solid fa-magic",class:"mr-1"}),k(" "+l(e.$t("flux.name.taskId"))+": "+l((w=e.modelValue)==null?void 0:w.id)+" ",1),s(y,{content:(x=e.modelValue)==null?void 0:x.id,class:"btn-copy"},null,8,["content"])])]}),_:1})])):$("v-if",!0)])])}),128)}var ht=I(Xe,[["render",ft],["__scopeId","data-v-bb276cb8"],["__file","/home/runner/work/Nexior/Nexior/src/components/flux/task/Preview.vue"]]);const vt=V({name:"RecentPanel",components:{TaskPreview:ht,ElSkeleton:he,ElSkeletonItem:ve},emits:["reach-top"],data(){return{job:0}},computed:{tasks(){var e,t,o,i;return{...(e=this.$store.state.flux)==null?void 0:e.tasks,items:(i=(o=(t=this.$store.state.flux)==null?void 0:t.tasks)==null?void 0:o.items)==null?void 0:i.slice()}}},methods:{onHandleScroll(){const e=this.$refs.panel;console.log("reach-top reach-top reach-top"),e.scrollTop===0&&this.$emit("reach-top")}}}),$t={key:0,class:"tasks"},gt={class:"left"},kt={class:"main"},yt={key:1,class:"tasks"},wt={key:2,class:"description"};function bt(e,t,o,i,h,v){var g,m,y,T,c,A,C,G;const a=r("el-skeleton-item"),_=r("el-skeleton"),d=r("task-preview");return n(),p("div",{ref:"panel",class:"panel recent",onScroll:t[0]||(t[0]=(...b)=>e.onHandleScroll&&e.onHandleScroll(...b))},[((g=e.tasks)==null?void 0:g.items)===void 0?(n(),p("div",$t,[(n(),p(E,null,R(3,b=>u("div",{key:b,class:"task placeholder"},[u("div",gt,[s(_,{animated:""},{template:f(()=>[s(a,{variant:"image",class:"avatar"})]),_:1})]),u("div",kt,[s(_,{animated:""},{template:f(()=>[s(a,{variant:"p",class:"title"}),s(a,{variant:"image",class:"icon"})]),_:1})])])),64))])):((y=(m=e.tasks)==null?void 0:m.items)==null?void 0:y.length)&&((c=(T=e.tasks)==null?void 0:T.items)==null?void 0:c.length)>0?(n(),p("div",yt,[(n(!0),p(E,null,R((A=e.tasks)==null?void 0:A.items,(b,N)=>(n(),P(d,{key:N,"model-value":b,class:"preview"},null,8,["model-value"]))),128))])):$("v-if",!0),((G=(C=e.tasks)==null?void 0:C.items)==null?void 0:G.length)===0?(n(),p("p",wt,l(e.$t("flux.message.noTasks")),1)):$("v-if",!0)],544)}var xt=I(vt,[["render",bt],["__scopeId","data-v-2ae6e09a"],["__file","/home/runner/work/Nexior/Nexior/src/components/flux/RecentPanel.vue"]]);const It="https://webhook.acedata.cloud/flux",Vt=V({name:"FluxIndex",components:{ConfigPanel:je,Layout:Ie,RecentPanel:xt},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,i;((o=e==null?void 0:e.items)==null?void 0:o.length)>((i=t==null?void 0:t.items)==null?void 0:i.length)&&console.debug("new tasks detected")},deep:!0}},async mounted(){await this.onGetService(),await this.onGetApplication(),await this.onScrollDown(),await this.onGetTasks(),await this.onScrollDown(),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,S.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&&S.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:i}=e||{};console.debug("limit",t,"createdAtMin",o,"createdAtMax",i),await this.$store.dispatch("flux/getTasks",{limit:t,createdAtMin:o,createdAtMax:i})},async onGenerate(){var o;const e={...this.config,callback_url:It},t=(o=this.credential)==null?void 0:o.token;if(!t){console.error("no token specified");return}S.info(this.$t("flux.message.startingTask")),re.generate(e,{token:t}).then(()=>{S.success(this.$t("flux.message.startTaskSuccess")),this.$store.commit("flux/setConfig",{config:void 0})}).catch(i=>{var v,a;const h=(v=i==null?void 0:i.response)==null?void 0:v.data;((a=h==null?void 0:h.error)==null?void 0:a.code)===ie?S.error(this.$t("flux.message.usedUp")):S.error(this.$t("flux.message.startTaskFailed"))}).finally(async()=>{setTimeout(async()=>{await this.onGetTasks(),await this.onScrollDown()},1e3)})}}});function Tt(e,t,o,i,h,v){const a=r("config-panel"),_=r("recent-panel"),d=r("layout");return n(),P(d,null,{config:f(()=>[s(a,{onGenerate:e.onGenerate},null,8,["onGenerate"])]),result:f(()=>[s(_,{class:"panel recent",onReachTop:e.onReachTop},null,8,["onReachTop"])]),_:1})}var Mt=I(Vt,[["render",Tt],["__scopeId","data-v-e3c77ee0"],["__file","/home/runner/work/Nexior/Nexior/src/pages/flux/Index.vue"]]);export{Mt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.main[data-v-324e8ab0]{flex:1;display:flex;flex-direction:row}.main .config[data-v-324e8ab0]{width:300px;height:100%;overflow-y:scroll;border-right:1px solid var(--el-border-color)}.main .result[data-v-324e8ab0]{padding:15px;flex:1;width:calc(100% - 300px);height:100%;display:flex;flex-direction:column}.menu[data-v-324e8ab0]{display:none}@media (max-width: 767px){.config[data-v-324e8ab0]{display:none}.result[data-v-324e8ab0]{width:100%}.menu[data-v-324e8ab0]{display:block;position:fixed;left:15px;top:15px;z-index:2000}}.field[data-v-8a0bbbfe]{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.field .title[data-v-8a0bbbfe]{font-size:14px;margin:0;width:30%}.field .value[data-v-8a0bbbfe]{width:120px}.field .box[data-v-76c331df]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;position:relative}.field .box .title[data-v-76c331df]{font-size:14px;margin-bottom:10px}.field .info[data-v-76c331df]{margin-left:auto}.field .prompt[data-v-76c331df]{resize:none}.panel[data-v-707be6ac]{padding:15px;display:flex;flex-direction:column;flex:1;height:calc(100% - 40px)}.panel .config[data-v-707be6ac]{width:100%;height:calc(100% - 50px);flex:1}.panel .actions[data-v-707be6ac]{height:50px;display:flex;justify-content:center;align-items:center}.panel .actions .btn[data-v-707be6ac]{width:100%}.image-gallery[data-v-74374cc6]{display:flex;justify-content:space-between;gap:16px}.image-container[data-v-74374cc6]{position:relative;width:48%;overflow:hidden;border:1px solid #ddd;border-radius:8px;margin-bottom:10px}.image-container img[data-v-74374cc6]{width:100%;height:auto;display:block;transition:transform .3s ease}.image-container:hover img[data-v-74374cc6]{transform:scale(1.05)}.image-container .view-button[data-v-74374cc6]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background-color:#0009;color:#fff;border:none;padding:10px 20px;border-radius:4px;cursor:pointer;opacity:0;transition:opacity .3s ease;transition-delay:.1s}.image-container .view-button[data-v-74374cc6]:hover{background-color:#000c}.image-container:hover .view-button[data-v-74374cc6]{opacity:1}.preview[data-v-bb276cb8]{width:100%;height:-moz-fit-content;height:fit-content;text-align:left;display:flex;flex-direction:row;margin-bottom:15px}.preview .left[data-v-bb276cb8]{width:70px}.preview .left .avatar[data-v-bb276cb8]{background-color:#222;padding:2px;width:50px;height:50px;margin:10px;border-radius:50%}.preview .main[data-v-bb276cb8]{flex:1;width:calc(100% - 70px);padding:10px 10px 0}.preview .main .bot[data-v-bb276cb8]{font-size:16px;font-weight:700;color:#2ecc71;margin-bottom:0;margin-top:0}.preview .main .bot .datetime[data-v-bb276cb8]{font-size:12px;font-weight:400;color:var(--el-text-color-secondary);margin-left:10px}.preview .main .info .prompt[data-v-bb276cb8]{font-size:14px;font-weight:700;color:var(--el-text-color-regular);margin-bottom:10px}.preview .main .content .el-alert[data-v-bb276cb8]{border-left-width:2px;border-left-style:solid}.preview .main .content .el-alert.failure[data-v-bb276cb8]{border-color:var(--el-color-danger)}.preview .main .content .el-alert.success[data-v-bb276cb8]{border-color:var(--el-color-success)}.preview .main .content .el-alert.info[data-v-bb276cb8]{border-color:var(--el-color-info)}.preview .main .image-wrapper[data-v-bb276cb8]{position:relative;width:-moz-fit-content;width:fit-content;min-height:50px;min-width:100px}.preview .main .image-wrapper .image[data-v-bb276cb8]{max-height:400px;max-width:500px;display:block;width:-moz-fit-content;width:fit-content}.preview .main .image-wrapper .btn-raw[data-v-bb276cb8]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:1000;display:none}.preview .main .image-wrapper .play-icon[data-v-bb276cb8]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:48px;color:#fff;z-index:500;pointer-events:none}.preview .main .image-wrapper:hover .image[data-v-bb276cb8]{filter:brightness(.6)}.preview .main .image-wrapper:hover .btn-raw[data-v-bb276cb8]{display:block}.preview .main .image-wrapper:hover .play-icon[data-v-bb276cb8]{display:none}.preview .main .operations[data-v-bb276cb8]{display:flex;justify-content:left;flex-direction:row;width:100%;align-items:baseline;flex-wrap:wrap;overflow:hidden;text-align:center;color:var(--el-text-color-regular);font-size:14px;overflow-y:scroll}.preview .main .operations.full[data-v-bb276cb8]{height:70px}.preview .main .operations .btn-action[data-v-bb276cb8]{margin-bottom:10px}.preview .image.error{background:var(--el-bg-color-page)}.preview .image.error .image-slot{font-size:14px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.preview .failure{background:var(--el-fill-color-light);width:100%}.panel[data-v-2ae6e09a]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%}.panel.recent[data-v-2ae6e09a]{width:100%;height:100%;display:flex;overflow-y:auto;flex-direction:column}.panel.recent .preview[data-v-2ae6e09a]{margin-right:15px}.panel.recent .description[data-v-2ae6e09a]{text-align:left;font-size:14px;color:var(--el-text-color-secondary)}.panel.recent .tasks[data-v-2ae6e09a]{width:100%}.panel.recent .tasks .task[data-v-2ae6e09a]{margin-bottom:15px;width:100%;height:-moz-fit-content;height:fit-content;text-align:left}.panel.recent .tasks .task.placeholder[data-v-2ae6e09a]{display:flex;flex-direction:row}.panel.recent .tasks .task.placeholder .left[data-v-2ae6e09a]{width:70px;padding:10px}.panel.recent .tasks .task.placeholder .left .avatar[data-v-2ae6e09a]{width:50px;height:50px;border-radius:50%}.panel.recent .tasks .task.placeholder .main[data-v-2ae6e09a]{width:calc(100% - 70px);flex:1;padding:10px;margin-bottom:10px}.panel.recent .tasks .task.placeholder .main .icon[data-v-2ae6e09a]{display:flex;height:200px;width:300px}.panel.recent .tasks .task.placeholder .main .title[data-v-2ae6e09a]{display:block;width:200px;height:20px;margin-bottom:15px}.panel.recent .tasks .task .operations[data-v-2ae6e09a]{height:-moz-fit-content!important;height:fit-content!important}.status[data-v-e3c77ee0]{margin-bottom:10px}.panel.detail[data-v-e3c77ee0]{width:100%;flex:1;overflow-y:scroll}.panel.recent[data-v-e3c77ee0]{height:100%;width:100%;margin-bottom:10px;position:relative;justify-content:initial}.panel.operation[data-v-e3c77ee0]{position:relative}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{an as Ve}from"./vendor-others.4ac6d265.js";import{ar as z}from"./vendor-fortawesome.20479da6.js";import{_ as y,aJ as Se,aK as Ee,aL as Ne,aM as Pe,D as ye,aN as Te,N as H,J as Ce,P as Re,aO as Le,a2 as Ue}from"./index.bb8f1411.js";import{T as Ae,u as B,N as Q,O as W,x as be,y as E,U as De,V as Ge,t as we,m as Oe,I as Me,s as je,H as Fe,R as qe}from"./vendor-element-plus.0d60bec3.js";import{H as b,al as n,o as l,e as p,f as a,I as J,V as o,M as _,T as c,U,ai as A,L,P as D,a0 as ze,S as k,R as $}from"./vendor-@vue.38e80b4c.js";import{I as K}from"./InfoIcon.b3285074.js";import{I as Ie}from"./ImagePreview.65bc0654.js";import{C as Be}from"./CopyToClipboard.3752e201.js";import"./vendor-markdown.b359a0a8.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.60b22bc6.js";const Ke=b({name:"LayoutKling",components:{ElDrawer:Ae,ElButton:B,FontAwesomeIcon:z},data(){return{drawer:!1}}}),He={class:"main"},Je={class:"config"},Qe={class:"result"};function We(e,t,s,d,g,f){const i=n("font-awesome-icon"),u=n("el-button"),r=n("el-drawer");return l(),p("div",He,[a("div",Je,[J(e.$slots,"config",{},void 0,!0)]),a("div",Qe,[J(e.$slots,"result",{},void 0,!0)]),o(u,{round:"",class:"menu",onClick:t[0]||(t[0]=v=>e.drawer=!0)},{default:_(()=>[o(i,{icon:"fa-solid fa-gear",class:"icon-menu"})]),_:1}),o(r,{modelValue:e.drawer,"onUpdate:modelValue":t[1]||(t[1]=v=>e.drawer=v),"with-header":!1,size:"340px",class:"drawer"},{default:_(()=>[J(e.$slots,"config",{},void 0,!0)]),_:3},8,["modelValue"])])}var Xe=y(Ke,[["render",We],["__scopeId","data-v-50bc0f32"],["__file","/home/runner/work/Nexior/Nexior/src/layouts/Kling.vue"]]);const Ye=b({name:"ModelSelector",components:{ElSelect:Q,ElOption:W},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=Se)}}),Ze={class:"field"},xe={class:"title font-bold"};function et(e,t,s,d,g,f){const i=n("el-option"),u=n("el-select");return l(),p("div",Ze,[a("h2",xe,c(e.$t("pika.name.model")),1),o(u,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=r=>e.value=r),class:"value",placeholder:e.$t("pika.placeholder.select")},{default:_(()=>[(l(!0),p(U,null,A(e.options,r=>(l(),L(i,{key:r.value,label:r.label,value:r.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])])}var tt=y(Ye,[["render",et],["__scopeId","data-v-13cacdf9"],["__file","/home/runner/work/Nexior/Nexior/src/components/kling/config/ModelSelector.vue"]]);const ot=b({name:"ModeSelector",components:{ElSelect:Q,ElOption:W},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=Ee)}}),st={class:"field"},nt={class:"title font-bold"};function at(e,t,s,d,g,f){const i=n("el-option"),u=n("el-select");return l(),p("div",st,[a("h2",nt,c(e.$t("kling.name.mode")),1),o(u,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=r=>e.value=r),class:"value",placeholder:e.$t("kling.placeholder.select")},{default:_(()=>[(l(!0),p(U,null,A(e.options,r=>(l(),L(i,{key:r.value,label:r.label,value:r.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])])}var lt=y(ot,[["render",at],["__scopeId","data-v-3af5203e"],["__file","/home/runner/work/Nexior/Nexior/src/components/kling/config/ModeSelector.vue"]]);const it=b({name:"DurationSelector",components:{ElSelect:Q,ElOption:W},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=Ne)}}),rt={class:"field"},ct={class:"title font-bold"};function dt(e,t,s,d,g,f){const i=n("el-option"),u=n("el-select");return l(),p("div",rt,[a("h2",ct,c(e.$t("kling.name.duration")),1),o(u,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=r=>e.value=r),class:"value",placeholder:e.$t("kling.placeholder.select")},{default:_(()=>[(l(!0),p(U,null,A(e.options,r=>(l(),L(i,{key:r.value,label:r.label,value:r.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])])}var pt=y(it,[["render",dt],["__scopeId","data-v-6434f6d2"],["__file","/home/runner/work/Nexior/Nexior/src/components/kling/config/DurationSelector.vue"]]);const ut=b({name:"RatioSelector",data(){return{options:[{value:"1:1",label:"1:1",width:20,height:20},{value:"16:9",label:"16:9",width:25,height:13},{value:"9:16",label:"9:16",width:13,height:25}]}},computed:{active(){return this.options.findIndex(e=>e.value===this.value)||0},value:{get(){var e,t,s;return(s=(t=(e=this.$store.state)==null?void 0:e.kling)==null?void 0:t.config)==null?void 0:s.aspect_ratio},set(e){var t,s;console.debug("set ratio",e),this.$store.commit("kling/setConfig",{...(s=(t=this.$store.state)==null?void 0:t.kling)==null?void 0:s.config,aspect_ratio:e})}}},mounted(){this.value||(this.value=Pe)}}),mt={class:"text-sm font-bold mb-2 block"},_t={class:"items"},gt=["onClick"],ft={class:"name"};function vt(e,t,s,d,g,f){return l(),p("div",null,[a("span",mt,c(e.$t("kling.name.ratio")),1),a("div",_t,[(l(!0),p(U,null,A(e.options,(i,u)=>(l(),p("div",{key:u,class:D({active:e.active===u,item:!0}),onClick:r=>e.value=i.value},[a("div",{class:D(["preview",i.label])},[a("div",{class:"rect",style:ze({width:i.width+"px",height:i.height+"px"})},null,4)],2),a("p",ft,c(i.label),1)],10,gt))),128))])])}var ht=y(ut,[["render",vt],["__scopeId","data-v-41d8dfdb"],["__file","/home/runner/work/Nexior/Nexior/src/components/kling/config/RatioSelector.vue"]]);const $t=b({name:"StartImage",components:{ElUpload:be,ElButton:B,InfoIcon:K,FontAwesomeIcon:z,ImagePreview:Ie},emits:["change"],data(){return{fileList:[],uploadUrl:ye()+"/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,s;return(s=(t=(e=this.$store.state)==null?void 0:e.kling)==null?void 0:t.config)==null?void 0:s.start_image_url},set(e){}}},mounted(){this.value||(this.value=void 0),this.onSetStartImageUrl()},methods:{onExceed(){E.warning(this.$t("kling.message.uploadReferencesExceed"))},onError(){E.error(this.$t("kling.message.uploadReferencesError"))},onSetStartImageUrl(){var t,s,d;const e=(t=this.urls)==null?void 0:t[0];this.$store.commit("kling/setConfig",{...(d=(s=this.$store.state)==null?void 0:s.kling)==null?void 0:d.config,start_image_url:e})},async onSuccess(){this.onSetStartImageUrl()}}}),kt={class:"relative"},yt={class:"flex justify-between"},bt={class:"flex justify-start items-center"},wt={class:"text-sm font-bold"};function It(e,t,s,d,g,f){const i=n("info-icon"),u=n("image-preview"),r=n("font-awesome-icon"),v=n("el-button"),h=n("el-upload");return l(),p("div",kt,[a("div",yt,[a("div",bt,[a("span",wt,c(e.$t("kling.name.startImage")),1),o(i,{content:e.$t("kling.description.uploadStartImage")},null,8,["content"])])]),o(h,{"file-list":e.fileList,"onUpdate:fileList":t[0]||(t[0]=m=>e.fileList=m),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},{file:_(({file:m})=>{var w;return[o(u,{url:m.url||((w=m.response)==null?void 0:w.file_url),name:m.name,percentage:m.percentage,onRemove:N=>e.fileList.splice(e.fileList.indexOf(m),1)},null,8,["url","name","percentage","onRemove"])]}),default:_(()=>[o(v,{round:"",type:"primary",size:"small",class:"btn btn-upload"},{default:_(()=>[o(r,{icon:"fa-solid fa-upload",class:"icon mr-1"}),k(" "+c(e.$t("kling.button.uploadReferences")),1)]),_:1})]),_:1},8,["file-list","action","on-exceed","on-error","on-success","headers"])])}var Vt=y($t,[["render",It],["__scopeId","data-v-6e6084d0"],["__file","/home/runner/work/Nexior/Nexior/src/components/kling/config/StartImage.vue"]]);const St=b({name:"EndImage",components:{ElUpload:be,ElButton:B,ImagePreview:Ie,InfoIcon:K,FontAwesomeIcon:z},data(){return{fileList:[],uploadUrl:ye()+"/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,s;return(s=(t=(e=this.$store.state)==null?void 0:e.kling)==null?void 0:t.config)==null?void 0:s.start_image_url},set(e){}}},mounted(){this.value||(this.value=void 0),this.onSetEndImageUrl()},methods:{onExceed(){E.warning(this.$t("kling.message.uploadReferencesExceed"))},onError(){E.error(this.$t("kling.message.uploadReferencesError"))},onSetEndImageUrl(){var t,s;const e=(t=this.urls)==null?void 0:t[0];this.$store.commit("kling/setConfig",{...(s=this.$store.state.kling)==null?void 0:s.config,end_image_url:e})},async onSuccess(){this.onSetEndImageUrl()}}}),Et={class:"relative"},Nt={class:"flex justify-between"},Pt={class:"flex justify-start items-center"},Tt={class:"text-sm font-bold"};function Ct(e,t,s,d,g,f){const i=n("info-icon"),u=n("image-preview"),r=n("font-awesome-icon"),v=n("el-button"),h=n("el-upload");return l(),p("div",Et,[a("div",Nt,[a("div",Pt,[a("span",Tt,c(e.$t("kling.name.endImage")),1),o(i,{content:e.$t("kling.description.uploadEndImage")},null,8,["content"])])]),o(h,{"file-list":e.fileList,"onUpdate:fileList":t[0]||(t[0]=m=>e.fileList=m),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},{file:_(({file:m})=>{var w;return[o(u,{url:m.url||((w=m.response)==null?void 0:w.file_url),name:m.name,percentage:m.percentage,onRemove:N=>e.fileList.splice(e.fileList.indexOf(m),1)},null,8,["url","name","percentage","onRemove"])]}),default:_(()=>[o(v,{round:"",type:"primary",size:"small",class:"btn btn-upload"},{default:_(()=>[o(r,{icon:"fa-solid fa-upload",class:"icon mr-1"}),k(" "+c(e.$t("kling.button.uploadReferences")),1)]),_:1})]),_:1},8,["file-list","action","on-exceed","on-error","on-success","headers"])])}var Rt=y(St,[["render",Ct],["__scopeId","data-v-72a21eff"],["__file","/home/runner/work/Nexior/Nexior/src/components/kling/config/EndImage.vue"]]);const Lt=b({name:"CfgScaleSelector",components:{ElSlider:De,InfoIcon:K,ElInputNumber:Ge},computed:{value:{get(){var e,t,s;return(s=(t=(e=this.$store.state)==null?void 0:e.kling)==null?void 0:t.config)==null?void 0:s.cfg_scale},set(e){var t,s;console.debug("set cfg_scale",e),this.$store.commit("kling/setConfig",{...(s=(t=this.$store.state)==null?void 0:t.kling)==null?void 0:s.config,cfg_scale:e})}}},mounted(){this.value||(this.value=Te)}}),Ut={class:"flex justify-between"},At={class:"flex justify-start items-center"},Dt={class:"text-sm font-bold"},Gt={class:"flex justify-end items-center"},Ot={class:"w-full"};function Mt(e,t,s,d,g,f){const i=n("info-icon"),u=n("el-input-number"),r=n("el-slider");return l(),p("div",null,[a("div",Ut,[a("div",At,[a("span",Dt,c(e.$t("kling.name.cfgScale")),1),o(i,{content:e.$t("kling.description.cfgScale")},null,8,["content"])]),a("div",Gt,[o(u,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=v=>e.value=v),"controls-position":"right"},null,8,["modelValue"])])]),a("div",Ot,[o(r,{modelValue:e.value,"onUpdate:modelValue":t[1]||(t[1]=v=>e.value=v),min:0,max:1,step:.1},null,8,["modelValue"])])])}var jt=y(Lt,[["render",Mt],["__file","/home/runner/work/Nexior/Nexior/src/components/kling/config/CfgScaleSelector.vue"]]);const Ft="",qt=b({name:"PromptInput",components:{ElInput:we,InfoIcon:K},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=Ft)}}),zt={class:"field"},Bt={class:"box"},Kt={class:"title font-bold"};function Ht(e,t,s,d,g,f){const i=n("info-icon"),u=n("el-input");return l(),p("div",zt,[a("div",Bt,[a("h2",Kt,c(e.$t("kling.name.prompt")),1),o(i,{content:e.$t("kling.description.prompt"),class:"info"},null,8,["content"])]),o(u,{modelValue:e.prompt,"onUpdate:modelValue":t[0]||(t[0]=r=>e.prompt=r),rows:3,type:"textarea",class:"prompt",placeholder:e.$t("kling.placeholder.prompt"),maxlength:500,"show-word-limit":""},null,8,["modelValue","placeholder"])])}var Jt=y(qt,[["render",Ht],["__scopeId","data-v-fd830852"],["__file","/home/runner/work/Nexior/Nexior/src/components/kling/config/PromptInput.vue"]]);const Qt="",Wt=b({name:"NegativePromptInput",components:{ElInput:we,InfoIcon:K},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=Qt)}}),Xt={class:"field"},Yt={class:"box"},Zt={class:"title font-bold"};function xt(e,t,s,d,g,f){const i=n("info-icon"),u=n("el-input");return l(),p("div",Xt,[a("div",Yt,[a("h2",Zt,c(e.$t("kling.name.negativePrompt")),1),o(i,{content:e.$t("kling.description.negativePrompt"),class:"info"},null,8,["content"])]),o(u,{modelValue:e.prompt,"onUpdate:modelValue":t[0]||(t[0]=r=>e.prompt=r),rows:3,type:"textarea",class:"prompt",placeholder:e.$t("kling.placeholder.negativePrompt"),maxlength:200,"show-word-limit":""},null,8,["modelValue","placeholder"])])}var eo=y(Wt,[["render",xt],["__scopeId","data-v-6c3d0de2"],["__file","/home/runner/work/Nexior/Nexior/src/components/kling/config/NegativePromptInput.vue"]]);const to=b({name:"PresetPanel",components:{ElButton:B,FontAwesomeIcon:z,PromptInput:Jt,NegativePromptInput:eo,ModelSelector:tt,ModeSelector:lt,DurationSelector:pt,RatioSelector:ht,StartImage:Vt,CfgScaleSelector:jt,EndImage:Rt},emits:["generate"],computed:{config(){var e;return(e=this.$store.state.kling)==null?void 0:e.config}},methods:{onGenerate(){this.$emit("generate")}}}),oo={class:"panel"},so={class:"config"},no={class:"actions"};function ao(e,t,s,d,g,f){var I,R;const i=n("prompt-input"),u=n("model-selector"),r=n("mode-selector"),v=n("ratio-selector"),h=n("start-image"),m=n("end-image"),w=n("cfg-scale-selector"),N=n("duration-selector"),C=n("negative-prompt-input"),P=n("font-awesome-icon"),T=n("el-button");return l(),p("div",oo,[a("div",so,[o(i,{class:"mb-4"}),o(u,{class:"mb-4"}),o(r,{class:"mb-4"}),o(v,{class:"mb-4"}),o(h,{class:"mb-2"}),o(m,{class:"mb-2"}),o(w,{class:"mb-4"}),o(N,{class:"mb-4"}),o(C,{class:"mb-4"}),a("div",no,[((I=e.config)==null?void 0:I.video_url)!==void 0||((R=e.config)==null?void 0:R.custom)?(l(),L(T,{key:0,type:"primary",class:"btn w-full",round:"",onClick:e.onGenerate},{default:_(()=>[o(P,{icon:"fa-solid fa-magic",class:"mr-2"}),k(" "+c(e.$t("kling.button.extend")),1)]),_:1},8,["onClick"])):(l(),L(T,{key:1,type:"primary",class:"btn w-full",round:"",onClick:e.onGenerate},{default:_(()=>[o(P,{icon:"fa-solid fa-magic",class:"mr-2"}),k(" "+c(e.$t("kling.button.generate")),1)]),_:1},8,["onClick"]))])])])}var lo=y(to,[["render",ao],["__scopeId","data-v-301363b4"],["__file","/home/runner/work/Nexior/Nexior/src/components/kling/ConfigPanel.vue"]]);const io=b({name:"VideoPlayer",components:{VuePlyr:Ve},props:{modelValue:{type:Object,required:!0}},data(){return{options:{quality:{default:"1080p"}}}}}),ro={controls:"",crossorigin:"",playsinline:""},co=["src"];function po(e,t,s,d,g,f){const i=n("vue-plyr");return l(),p("div",null,[o(i,{options:e.options,class:"video"},{default:_(()=>{var u;return[a("video",ro,[a("source",{size:"1080",src:(u=e.modelValue)==null?void 0:u.video_url,type:"video/mp4"},null,8,co)])]}),_:1},8,["options"])])}var uo=y(io,[["render",po],["__scopeId","data-v-3fd1ea0e"],["__file","/home/runner/work/Nexior/Nexior/src/components/kling/VideoPlayer.vue"]]);const mo=b({name:"TaskPreview",components:{ElImage:Oe,CopyToClipboard:Be,FontAwesomeIcon:z,ElAlert:Me,VideoPlayer:uo,ElTooltip:je,ElButton:B},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,s=new URL(t.src),d=s.searchParams.get("retry");if(!d)s.searchParams.set("retry","1");else if(parseInt(d)<2)s.searchParams.set("retry",(parseInt(d)+1).toString());else return;t.src=s.toString()},onOpenVideo(e){window.open(e,"_blank")}}}),_o={class:"preview"},go={class:"left"},fo={class:"main"},vo={class:"bot"},ho={class:"datetime"},$o={class:"info"},ko={key:0,class:"prompt mt-2"},yo={key:0},bo={key:1},wo={key:0,class:D({content:!0,failed:!0})},Io={class:"image-wrapper"},Vo={key:0,class:D({operations:!0,"mt-2":!0})},So={class:"description"},Eo={key:1,class:D({content:!0})},No={class:"description"},Po={class:"description"},To={key:0,class:"description"},Co={key:2,class:D({content:!0})},Ro={class:"description"},Lo={key:0,class:"description"};function Uo(e,t,s,d,g,f){var N,C,P,T,I,R,X,Y,Z,x,ee,te,oe,se,ne,ae,le,ie,re,ce,de,pe,ue,me,_e;const i=n("el-image"),u=n("VideoPlayer"),r=n("el-button"),v=n("el-tooltip"),h=n("font-awesome-icon"),m=n("copy-to-clipboard"),w=n("el-alert");return l(),p("div",_o,[a("div",go,[o(i,{src:"https://cdn.acedata.cloud/qpbbbb.jpg",class:"avatar"})]),a("div",fo,[a("div",vo,[k(c(e.$t("kling.name.klingBot"))+" ",1),a("span",ho,c(e.$dayjs.format(""+new Date(parseFloat(((N=e.modelValue)==null?void 0:N.created_at)||"")*1e3))),1)]),a("div",$o,[(P=(C=e.modelValue)==null?void 0:C.request)!=null&&P.prompt?(l(),p("p",ko,[k(c((I=(T=e.modelValue)==null?void 0:T.request)==null?void 0:I.prompt)+" ",1),(R=e.modelValue)!=null&&R.response?$("v-if",!0):(l(),p("span",yo," - ("+c(e.$t("kling.status.pending"))+") ",1)),((Y=(X=e.modelValue)==null?void 0:X.response)==null?void 0:Y.state)==="submitted"||((x=(Z=e.modelValue)==null?void 0:Z.response)==null?void 0:x.state)==="processing"||((te=(ee=e.modelValue)==null?void 0:ee.response)==null?void 0:te.state)==="pending"||((se=(oe=e.modelValue)==null?void 0:oe.response)==null?void 0:se.state)==="completed"?(l(),p("span",bo," - ("+c(e.$t("kling.status.processing"))+") ",1)):$("v-if",!0)])):$("v-if",!0)]),$(" Display success message "),((ae=(ne=e.modelValue)==null?void 0:ne.response)==null?void 0:ae.success)===!0?(l(),p("div",wo,[a("div",Io,[o(u,{"model-value":(le=e.modelValue)==null?void 0:le.response},null,8,["model-value"])]),(ie=e.modelValue)!=null&&ie.response.success?(l(),p("div",Vo,[o(v,{class:"box-item",effect:"dark",content:e.$t("kling.message.downloadVideo"),placement:"top-start"},{default:_(()=>[o(r,{type:"info",size:"small",class:"btn-action",onClick:t[0]||(t[0]=S=>{var V;return e.onDownload(S,(V=e.modelValue)==null?void 0:V.response.video_url)})},{default:_(()=>[k(c(e.$t("kling.button.download")),1)]),_:1})]),_:1},8,["content"])])):$("v-if",!0),o(w,{closable:!1,class:"mt-2 success"},{default:_(()=>{var S,V;return[a("p",So,[o(h,{icon:"fa-solid fa-magic",class:"mr-1"}),k(" "+c(e.$t("kling.name.taskId"))+": "+c((S=e.modelValue)==null?void 0:S.id)+" ",1),o(m,{content:(V=e.modelValue)==null?void 0:V.id,class:"btn-copy"},null,8,["content"])])]}),_:1})])):$("v-if",!0),$(" Display error message "),((ce=(re=e.modelValue)==null?void 0:re.response)==null?void 0:ce.success)===!1?(l(),p("div",Eo,[o(w,{closable:!1,class:"failure"},{template:_(()=>[o(h,{icon:"fa-solid fa-exclamation-triangle",class:"mr-1"}),k(" "+c(e.$t("kling.name.failure")),1)]),default:_(()=>{var S,V,G,O,M,j,F,q,ge,fe,ve,he,$e,ke;return[a("p",No,[o(h,{icon:"fa-solid fa-magic",class:"mr-1"}),k(" "+c(e.$t("kling.name.taskId"))+": "+c((S=e.modelValue)==null?void 0:S.id)+" ",1),o(m,{content:(V=e.modelValue)==null?void 0:V.id,class:"btn-copy"},null,8,["content"])]),a("p",Po,[o(h,{icon:"fa-solid fa-circle-info",class:"mr-1"}),k(" "+c(e.$t("kling.name.failureReason"))+": "+c((M=(O=(G=e.modelValue)==null?void 0:G.response)==null?void 0:O.error)==null?void 0:M.message)+" ",1),o(m,{content:(q=(F=(j=e.modelValue)==null?void 0:j.response)==null?void 0:F.error)==null?void 0:q.message,class:"btn-copy"},null,8,["content"])]),(fe=(ge=e.modelValue)==null?void 0:ge.response)!=null&&fe.trace_id?(l(),p("p",To,[o(h,{icon:"fa-solid fa-hashtag",class:"mr-1"}),k(" "+c(e.$t("kling.name.traceId"))+": "+c((he=(ve=e.modelValue)==null?void 0:ve.response)==null?void 0:he.trace_id)+" ",1),o(m,{content:(ke=($e=e.modelValue)==null?void 0:$e.response)==null?void 0:ke.trace_id,class:"btn-copy"},null,8,["content"])])):$("v-if",!0)]}),_:1})])):$("v-if",!0),$(" Display error message "),!((de=e.modelValue)!=null&&de.response)||((ue=(pe=e.modelValue)==null?void 0:pe.response)==null?void 0:ue.state)==="processing"||((_e=(me=e.modelValue)==null?void 0:me.response)==null?void 0:_e.state)==="pending"?(l(),p("div",Co,[o(w,{closable:!1,class:"info"},{template:_(()=>[o(h,{icon:"fa-solid fa-exclamation-triangle",class:"mr-1"}),k(" "+c(e.$t("kling.name.failure")),1)]),default:_(()=>{var S,V,G,O,M,j,F,q;return[a("p",Ro,[o(h,{icon:"fa-solid fa-magic",class:"mr-1"}),k(" "+c(e.$t("kling.name.taskId"))+": "+c((S=e.modelValue)==null?void 0:S.id)+" ",1),o(m,{content:(V=e.modelValue)==null?void 0:V.id,class:"btn-copy"},null,8,["content"])]),(O=(G=e.modelValue)==null?void 0:G.response)!=null&&O.trace_id?(l(),p("p",Lo,[o(h,{icon:"fa-solid fa-hashtag",class:"mr-1"}),k(" "+c(e.$t("kling.name.traceId"))+": "+c((j=(M=e.modelValue)==null?void 0:M.response)==null?void 0:j.trace_id)+" ",1),o(m,{content:(q=(F=e.modelValue)==null?void 0:F.response)==null?void 0:q.trace_id,class:"btn-copy"},null,8,["content"])])):$("v-if",!0)]}),_:1})])):$("v-if",!0)])])}var Ao=y(mo,[["render",Uo],["__scopeId","data-v-547724c8"],["__file","/home/runner/work/Nexior/Nexior/src/components/kling/task/Preview.vue"]]);const Do=b({name:"RecentPanel",components:{TaskPreview:Ao,ElSkeleton:Fe,ElSkeletonItem:qe},emits:["reach-top"],data(){return{job:0}},computed:{tasks(){var e,t,s,d;return{...(e=this.$store.state.kling)==null?void 0:e.tasks,items:(d=(s=(t=this.$store.state.kling)==null?void 0:t.tasks)==null?void 0:s.items)==null?void 0:d.slice()}}},methods:{onHandleScroll(){const e=this.$refs.panel;console.log("reach-top reach-top reach-top"),e.scrollTop===0&&this.$emit("reach-top")}}}),Go={key:0,class:"tasks"},Oo={class:"left"},Mo={class:"main"},jo={key:1,class:"tasks"},Fo={key:2,class:"description"};function qo(e,t,s,d,g,f){var v,h,m,w,N,C,P,T;const i=n("el-skeleton-item"),u=n("el-skeleton"),r=n("task-preview");return l(),p("div",{ref:"panel",class:"panel recent",onScroll:t[0]||(t[0]=(...I)=>e.onHandleScroll&&e.onHandleScroll(...I))},[((v=e.tasks)==null?void 0:v.items)===void 0?(l(),p("div",Go,[(l(),p(U,null,A(3,I=>a("div",{key:I,class:"task placeholder"},[a("div",Oo,[o(u,{animated:""},{template:_(()=>[o(i,{variant:"image",class:"avatar"})]),_:1})]),a("div",Mo,[o(u,{animated:""},{template:_(()=>[o(i,{variant:"p",class:"title"}),o(i,{variant:"image",class:"icon"})]),_:1})])])),64))])):((m=(h=e.tasks)==null?void 0:h.items)==null?void 0:m.length)&&((N=(w=e.tasks)==null?void 0:w.items)==null?void 0:N.length)>0?(l(),p("div",jo,[$(" {{ tasks?.items }} "),(l(!0),p(U,null,A((C=e.tasks)==null?void 0:C.items,(I,R)=>(l(),L(r,{key:R,"model-value":I,class:"preview"},null,8,["model-value"]))),128))])):$("v-if",!0),((T=(P=e.tasks)==null?void 0:P.items)==null?void 0:T.length)===0?(l(),p("p",Fo,c(e.$t("kling.message.noTasks")),1)):$("v-if",!0)],544)}var zo=y(Do,[["render",qo],["__scopeId","data-v-abb7e68a"],["__file","/home/runner/work/Nexior/Nexior/src/components/kling/RecentPanel.vue"]]);const Bo="https://webhook.acedata.cloud/kling",Ko=b({name:"KlingIndex",components:{ConfigPanel:lo,Layout:Xe,RecentPanel:zo},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)===H.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===H.Request},needApply(){return this.$store.state.kling.status.getApplications===H.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 s,d;((s=e==null?void 0:e.items)==null?void 0:s.length)>((d=t==null?void 0:t.items)==null?void 0:d.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,s;console.debug("reached top"),await this.onGetTasks({createdAtMax:(s=(t=(e=this.tasks)==null?void 0:e.items)==null?void 0:t[0])==null?void 0:s.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(){Ce.create({application:this.application}).then(({data:e})=>{this.application=e,E.success(this.$t("application.message.applySuccessfully"))}).catch(e=>{var t,s;((s=(t=e==null?void 0:e.response)==null?void 0:t.data)==null?void 0:s.code)===Re&&E.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:s,createdAtMax:d}=e||{};console.debug("limit",t,"createdAtMin",s,"createdAtMax",d),await this.$store.dispatch("kling/getTasks",{limit:t,createdAtMin:s,createdAtMax:d})},async onGenerate(){var s;const e={...this.config,callback_url:Bo},t=(s=this.credential)==null?void 0:s.token;if(!t){console.error("no token specified");return}E.info(this.$t("kling.message.startingTask")),Le.generate(e,{token:t}).then(()=>{E.success(this.$t("kling.message.startTaskSuccess")),this.$store.commit("kling/setConfig",{config:void 0})}).catch(d=>{var f,i;const g=(f=d==null?void 0:d.response)==null?void 0:f.data;((i=g==null?void 0:g.error)==null?void 0:i.code)===Ue?E.error(this.$t("kling.message.usedUp")):E.error(this.$t("kling.message.startTaskFailed"))}).finally(async()=>{setTimeout(async()=>{await this.onGetTasks(),await this.onScrollDown()},1e3)})}}});function Ho(e,t,s,d,g,f){const i=n("config-panel"),u=n("recent-panel"),r=n("layout");return l(),L(r,null,{config:_(()=>[o(i,{onGenerate:e.onGenerate},null,8,["onGenerate"])]),result:_(()=>[o(u,{class:"panel recent",onReachTop:e.onReachTop},null,8,["onReachTop"])]),_:1})}var ns=y(Ko,[["render",Ho],["__scopeId","data-v-e48d89a0"],["__file","/home/runner/work/Nexior/Nexior/src/pages/kling/Index.vue"]]);export{ns as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{an as ne}from"./vendor-others.4ac6d265.js";import{ar as j}from"./vendor-fortawesome.20479da6.js";import{_ as S,aR as le,D as ie,N as O,J as re,P as ce,aS as ue,a2 as pe}from"./index.bb8f1411.js";import{T as de,u as D,N as me,O as _e,x as he,y as I,t as fe,m as ge,I as $e,s as ve,H as ye,R as ke}from"./vendor-element-plus.0d60bec3.js";import{H as V,al as a,o as i,e as _,f as r,I as M,V as s,M as h,T as u,U as N,ai as G,L as E,S as y,R as k,P as L}from"./vendor-@vue.38e80b4c.js";import{I as ae}from"./InfoIcon.b3285074.js";import{I as we}from"./ImagePreview.65bc0654.js";import{C as be}from"./CopyToClipboard.3752e201.js";import"./vendor-markdown.b359a0a8.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.60b22bc6.js";const Ie=V({name:"LayoutHailuo",components:{ElDrawer:de,ElButton:D,FontAwesomeIcon:j},data(){return{drawer:!1}}}),Se={class:"main"},Ve={class:"config"},Pe={class:"result"};function Te(e,t,o,l,f,g){const p=a("font-awesome-icon"),m=a("el-button"),c=a("el-drawer");return i(),_("div",Se,[r("div",Ve,[M(e.$slots,"config",{},void 0,!0)]),r("div",Pe,[M(e.$slots,"result",{},void 0,!0)]),s(m,{round:"",class:"menu",onClick:t[0]||(t[0]=$=>e.drawer=!0)},{default:h(()=>[s(p,{icon:"fa-solid fa-gear",class:"icon-menu"})]),_:1}),s(c,{modelValue:e.drawer,"onUpdate:modelValue":t[1]||(t[1]=$=>e.drawer=$),"with-header":!1,size:"340px",class:"drawer"},{default:h(()=>[M(e.$slots,"config",{},void 0,!0)]),_:3},8,["modelValue"])])}var Ee=S(Ie,[["render",Te],["__scopeId","data-v-3c8363f5"],["__file","/home/runner/work/Nexior/Nexior/src/layouts/Hailuo.vue"]]);const Ce=V({name:"ModelSelector",components:{ElSelect:me,ElOption:_e},data(){return{}},computed:{options(){return[{value:"minimax-t2v",label:this.$t("hailuo.button.model1")},{value:"minimax-i2v",label:this.$t("hailuo.button.model2")}]},value:{get(){var e,t;return(t=(e=this.$store.state.hailuo)==null?void 0:e.config)==null?void 0:t.model},set(e){var t;this.$store.commit("hailuo/setConfig",{...(t=this.$store.state.hailuo)==null?void 0:t.config,model:e})}}},mounted(){this.value||(this.value=le)}}),Re={class:"field"},Ue={class:"title font-bold"},Ae={class:"float-left"};function Ne(e,t,o,l,f,g){const p=a("el-option"),m=a("el-select");return i(),_("div",Re,[r("h2",Ue,u(e.$t("hailuo.name.model")),1),s(m,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=c=>e.value=c),class:"value",placeholder:e.$t("hailuo.placeholder.select"),clearable:""},{default:h(()=>[(i(!0),_(N,null,G(e.options,c=>(i(),E(p,{key:c.value,label:c.label,value:c.value},{default:h(()=>[r("span",Ae,u(c.label),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])])}var Ge=S(Ce,[["render",Ne],["__scopeId","data-v-62190314"],["__file","/home/runner/work/Nexior/Nexior/src/components/hailuo/config/ModelSelector.vue"]]);const De=V({name:"StartImageUrlInput",components:{ElUpload:he,ElButton:D,InfoIcon:ae,ImagePreview:we},data(){return{fileList:[],uploadUrl:ie()+"/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;return(t=(e=this.$store.state.hailuo)==null?void 0:e.config)==null?void 0:t.first_image_url},set(){var t,o;const e=(t=this.urls)==null?void 0:t[0];this.$store.commit("hailuo/setConfig",{...(o=this.$store.state.hailuo)==null?void 0:o.config,first_image_url:e})}}},mounted(){this.value||(this.value=void 0),this.onSetStartImageUrl()},methods:{onExceed(){I.warning(this.$t("hailuo.message.uploadStartImageExceed"))},onError(){I.error(this.$t("hailuo.message.uploadStartImageError"))},async onRemove(){I.error(this.$t("hailuo.message.uploadStartImageError"))},onSetStartImageUrl(){var t,o;const e=(t=this.urls)==null?void 0:t[0];this.$store.commit("hailuo/setConfig",{...(o=this.$store.state.hailuo)==null?void 0:o.config,first_image_url:e})},async onSuccess(){this.onSetStartImageUrl()}}}),Le={class:"relative"},Oe={class:"flex justify-between"},Me={class:"flex justify-start items-center"},je={class:"text-sm font-bold"};function qe(e,t,o,l,f,g){const p=a("info-icon"),m=a("image-preview"),c=a("el-button"),$=a("el-upload");return i(),_("div",Le,[r("div",Oe,[r("div",Me,[r("span",je,u(e.$t("hailuo.name.startImageUrl")),1),s(p,{content:e.$t("hailuo.description.startImageUrl"),class:"info"},null,8,["content"])])]),s($,{"file-list":e.fileList,"onUpdate:fileList":t[0]||(t[0]=d=>e.fileList=d),accept:".png,.jpg,.jpeg,.gif,.bmp,.webp",name:"file",class:"upload-wrapper","show-file-list":!0,limit:1,multiple:!1,"list-type":"picture",action:e.uploadUrl,"on-exceed":e.onExceed,"on-error":e.onError,"on-remove":e.onRemove,"on-success":e.onSuccess,headers:e.headers},{file:h(({file:d})=>{var v;return[s(m,{url:d.url||((v=d.response)==null?void 0:v.file_url),name:d.name,percentage:d.percentage,onRemove:w=>e.fileList.splice(e.fileList.indexOf(d),1)},null,8,["url","name","percentage","onRemove"])]}),default:h(()=>[s(c,{size:"small",type:"primary",class:"btn btn-upload",round:""},{default:h(()=>[y(u(e.$t("hailuo.button.uploadStartImageUrl")),1)]),_:1})]),_:1},8,["file-list","action","on-exceed","on-error","on-remove","on-success","headers"])])}var He=S(De,[["render",qe],["__scopeId","data-v-6c6b80d0"],["__file","/home/runner/work/Nexior/Nexior/src/components/hailuo/config/StartImageUrlInput.vue"]]);const Be="",ze=V({name:"PromptInput",components:{ElInput:fe,InfoIcon:ae},computed:{prompt:{get(){var e,t;return(t=(e=this.$store.state.hailuo)==null?void 0:e.config)==null?void 0:t.prompt},set(e){var t;console.debug("set prompt",e),this.$store.commit("hailuo/setConfig",{...(t=this.$store.state.hailuo)==null?void 0:t.config,prompt:e})}}},mounted(){this.value||(this.value=Be)}}),Fe={class:"field"},Je={class:"box"},Ke={class:"title font-bold"};function Qe(e,t,o,l,f,g){const p=a("info-icon"),m=a("el-input");return i(),_("div",Fe,[r("div",Je,[r("h2",Ke,u(e.$t("hailuo.name.prompt")),1),s(p,{content:e.$t("hailuo.description.prompt"),class:"info"},null,8,["content"])]),s(m,{modelValue:e.prompt,"onUpdate:modelValue":t[0]||(t[0]=c=>e.prompt=c),rows:3,type:"textarea",class:"prompt",placeholder:e.$t("hailuo.placeholder.prompt"),maxlength:300,"show-word-limit":""},null,8,["modelValue","placeholder"])])}var We=S(ze,[["render",Qe],["__scopeId","data-v-d785889c"],["__file","/home/runner/work/Nexior/Nexior/src/components/hailuo/config/PromptInput.vue"]]);const Xe=V({name:"PresetPanel",components:{ElButton:D,FontAwesomeIcon:j,PromptInput:We,StartImageUrlInput:He,ModelSelector:Ge},emits:["generate"],computed:{config(){var e;return(e=this.$store.state.hailuo)==null?void 0:e.config}},methods:{onGenerate(){this.$emit("generate")}}}),Ye={class:"panel"},Ze={class:"config"},xe={class:"actions"};function et(e,t,o,l,f,g){var v,w,n;const p=a("prompt-input"),m=a("model-selector"),c=a("start-image-url-input"),$=a("font-awesome-icon"),d=a("el-button");return i(),_("div",Ye,[r("div",Ze,[s(p,{class:"mb-4"}),s(m,{class:"mb-4"}),((v=e.config)==null?void 0:v.model)==="minimax-i2v"?(i(),E(c,{key:0,class:"mb-4"})):k("v-if",!0),r("div",xe,[((w=e.config)==null?void 0:w.video_url)!==void 0||((n=e.config)==null?void 0:n.custom)?(i(),E(d,{key:0,type:"primary",class:"btn w-full",round:"",onClick:e.onGenerate},{default:h(()=>[s($,{icon:"fa-solid fa-magic",class:"mr-2"}),y(" "+u(e.$t("hailuo.button.extend")),1)]),_:1},8,["onClick"])):(i(),E(d,{key:1,type:"primary",class:"btn w-full",round:"",onClick:e.onGenerate},{default:h(()=>[s($,{icon:"fa-solid fa-magic",class:"mr-2"}),y(" "+u(e.$t("hailuo.button.generate")),1)]),_:1},8,["onClick"]))])])])}var tt=S(Xe,[["render",et],["__scopeId","data-v-01eef439"],["__file","/home/runner/work/Nexior/Nexior/src/components/hailuo/ConfigPanel.vue"]]);const ot=V({name:"VideoPlayer",components:{VuePlyr:ne},props:{modelValue:{type:Object,required:!0}},data(){return{options:{quality:{default:"1080p"}}}}}),st=["data-poster"],at=["src"];function nt(e,t,o,l,f,g){const p=a("vue-plyr");return i(),_("div",null,[s(p,{options:e.options,class:"video"},{default:h(()=>{var m,c;return[r("video",{controls:"",crossorigin:"",playsinline:"","data-poster":(m=e.modelValue)==null?void 0:m.image_url},[r("source",{size:"1080",src:(c=e.modelValue)==null?void 0:c.video_url,type:"video/mp4"},null,8,at)],8,st)]}),_:1},8,["options"])])}var lt=S(ot,[["render",nt],["__scopeId","data-v-11ad7a93"],["__file","/home/runner/work/Nexior/Nexior/src/components/hailuo/VideoPlayer.vue"]]);const it=V({name:"TaskPreview",components:{ElImage:ge,CopyToClipboard:be,FontAwesomeIcon:j,ElAlert:$e,VideoPlayer:lt,ElTooltip:ve,ElButton:D},props:{modelValue:{type:Object,required:!0}},data(){return{}},computed:{application(){var e;return(e=this.$store.state.hailuo)==null?void 0:e.application},config(){var e;return(e=this.$store.state.hailuo)==null?void 0:e.config},videos(){var o,l,f,g,p,m,c;let e=[];const t=(l=(o=this.modelValue)==null?void 0:o.request)==null?void 0:l.action;return Array.isArray((g=(f=this.modelValue)==null?void 0:f.response)==null?void 0:g.data)&&((c=(m=(p=this.modelValue)==null?void 0:p.response)==null?void 0:m.data)==null||c.forEach($=>{let d=$;t&&(d.action=t),e.push(d)})),e}},methods:{onExtend(e,t){var o;e.stopPropagation(),console.debug("set config",t),this.$store.commit("hailuo/setConfig",{...(o=this.$store.state.hailuo)==null?void 0:o.config,video_id:t.video_id,prompt:t.prompt,action:"extend",thumbnail_url:t.thumbnail_url,video_url:t.video_url})},onDownload(e,t){e.stopPropagation(),console.log("on download"),window.open(t,"_blank")},onReload(e){const t=e.target,o=new URL(t.src),l=o.searchParams.get("retry");if(!l)o.searchParams.set("retry","1");else if(parseInt(l)<2)o.searchParams.set("retry",(parseInt(l)+1).toString());else return;t.src=o.toString()},onOpenVideo(e){window.open(e,"_blank")}}}),rt={class:"left"},ct={class:"main"},ut={class:"bot"},pt={class:"datetime"},dt={class:"info"},mt={key:0,class:"prompt mt-2"},_t={key:0},ht={key:1},ft={key:0,class:L({content:!0,failed:!0})},gt={class:"image-wrapper"},$t={key:0,class:L({operations:!0,"mt-2":!0})},vt={class:"description"},yt={key:1,class:L({content:!0})},kt={class:"description"},wt={class:"description"},bt={class:"description"},It={key:2,class:L({content:!0})},St={class:"description"};function Vt(e,t,o,l,f,g){const p=a("el-image"),m=a("VideoPlayer"),c=a("el-button"),$=a("el-tooltip"),d=a("font-awesome-icon"),v=a("copy-to-clipboard"),w=a("el-alert");return i(!0),_(N,null,G(e.videos,(n,U)=>{var C,R,P,A,q,H,B,z,F,J,K;return i(),_("div",{key:U,class:"preview"},[r("div",rt,[s(p,{src:"https://cdn.acedata.cloud/0qg4gp.png",class:"avatar"})]),r("div",ct,[r("div",ut,[y(u(e.$t("hailuo.name.hailuoBot"))+" ",1),r("span",pt,u(e.$dayjs.format(""+new Date(parseFloat(((C=e.modelValue)==null?void 0:C.created_at)||"")*1e3))),1)]),r("div",dt,[(P=(R=e.modelValue)==null?void 0:R.request)!=null&&P.prompt?(i(),_("p",mt,[y(u((q=(A=e.modelValue)==null?void 0:A.request)==null?void 0:q.prompt)+" ",1),(H=e.modelValue)!=null&&H.response?k("v-if",!0):(i(),_("span",_t," - ("+u(e.$t("hailuo.status.pending"))+") ",1)),(n==null?void 0:n.state)==="processing"||(n==null?void 0:n.state)==="pending"||(n==null?void 0:n.state)==="running"?(i(),_("span",ht," - ("+u(e.$t("hailuo.status.processing"))+") ",1)):k("v-if",!0)])):k("v-if",!0)]),k(" Display success message "),((z=(B=e.modelValue)==null?void 0:B.response)==null?void 0:z.success)===!0?(i(),_("div",ft,[r("div",gt,[s(m,{"model-value":n},null,8,["model-value"])]),n?(i(),_("div",$t,[s($,{class:"box-item",effect:"dark",content:e.$t("hailuo.message.downloadVideo"),placement:"top-start"},{default:h(()=>[s(c,{type:"info",size:"small",class:"btn-action",onClick:b=>e.onDownload(b,n==null?void 0:n.video_url)},{default:h(()=>[y(u(e.$t("hailuo.button.download")),1)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])):k("v-if",!0),s(w,{closable:!1,class:"mt-2 success"},{default:h(()=>{var b,T;return[r("p",vt,[s(d,{icon:"fa-solid fa-magic",class:"mr-1"}),y(" "+u(e.$t("hailuo.name.taskId"))+": "+u((b=e.modelValue)==null?void 0:b.id)+" ",1),s(v,{content:(T=e.modelValue)==null?void 0:T.id,class:"btn-copy"},null,8,["content"])])]}),_:1})])):k("v-if",!0),k(" Display error message "),((J=(F=e.modelValue)==null?void 0:F.response)==null?void 0:J.success)===!1?(i(),_("div",yt,[s(w,{closable:!1,class:"failure"},{template:h(()=>[s(d,{icon:"fa-solid fa-exclamation-triangle",class:"mr-1"}),y(" "+u(e.$t("hailuo.name.failure")),1)]),default:h(()=>{var b,T,Q,W,X,Y,Z,x,ee,te,oe,se;return[r("p",kt,[s(d,{icon:"fa-solid fa-magic",class:"mr-1"}),y(" "+u(e.$t("hailuo.name.taskId"))+": "+u((b=e.modelValue)==null?void 0:b.id)+" ",1),s(v,{content:(T=e.modelValue)==null?void 0:T.id,class:"btn-copy"},null,8,["content"])]),r("p",wt,[s(d,{icon:"fa-solid fa-circle-info",class:"mr-1"}),y(" "+u(e.$t("hailuo.name.failureReason"))+": "+u((X=(W=(Q=e.modelValue)==null?void 0:Q.response)==null?void 0:W.error)==null?void 0:X.message)+" ",1),s(v,{content:(x=(Z=(Y=e.modelValue)==null?void 0:Y.response)==null?void 0:Z.error)==null?void 0:x.message,class:"btn-copy"},null,8,["content"])]),r("p",bt,[s(d,{icon:"fa-solid fa-hashtag",class:"mr-1"}),y(" "+u(e.$t("hailuo.name.traceId"))+": "+u((te=(ee=e.modelValue)==null?void 0:ee.response)==null?void 0:te.trace_id)+" ",1),s(v,{content:(se=(oe=e.modelValue)==null?void 0:oe.response)==null?void 0:se.trace_id,class:"btn-copy"},null,8,["content"])])]}),_:1})])):k("v-if",!0),k(" Display error message "),!((K=e.modelValue)!=null&&K.response)||(n==null?void 0:n.state)==="processing"||(n==null?void 0:n.state)==="pending"||(n==null?void 0:n.state)==="running"?(i(),_("div",It,[s(w,{closable:!1,class:"info"},{template:h(()=>[s(d,{icon:"fa-solid fa-exclamation-triangle",class:"mr-1"}),y(" "+u(e.$t("hailuo.name.failure")),1)]),default:h(()=>{var b,T;return[r("p",St,[s(d,{icon:"fa-solid fa-magic",class:"mr-1"}),y(" "+u(e.$t("hailuo.name.taskId"))+": "+u((b=e.modelValue)==null?void 0:b.id)+" ",1),s(v,{content:(T=e.modelValue)==null?void 0:T.id,class:"btn-copy"},null,8,["content"])])]}),_:1})])):k("v-if",!0)])])}),128)}var Pt=S(it,[["render",Vt],["__scopeId","data-v-3f5aedb7"],["__file","/home/runner/work/Nexior/Nexior/src/components/hailuo/task/Preview.vue"]]);const Tt=V({name:"RecentPanel",components:{TaskPreview:Pt,ElSkeleton:ye,ElSkeletonItem:ke},emits:["reach-top"],data(){return{job:0}},computed:{tasks(){var e,t,o,l;return{...(e=this.$store.state.hailuo)==null?void 0:e.tasks,items:(l=(o=(t=this.$store.state.hailuo)==null?void 0:t.tasks)==null?void 0:o.items)==null?void 0:l.slice()}}},methods:{onHandleScroll(){const e=this.$refs.panel;console.log("reach-top reach-top reach-top"),e.scrollTop===0&&this.$emit("reach-top")}}}),Et={key:0,class:"tasks"},Ct={class:"left"},Rt={class:"main"},Ut={key:1,class:"tasks"},At={key:2,class:"description"};function Nt(e,t,o,l,f,g){var $,d,v,w,n,U,C,R;const p=a("el-skeleton-item"),m=a("el-skeleton"),c=a("task-preview");return i(),_("div",{ref:"panel",class:"panel recent",onScroll:t[0]||(t[0]=(...P)=>e.onHandleScroll&&e.onHandleScroll(...P))},[(($=e.tasks)==null?void 0:$.items)===void 0?(i(),_("div",Et,[(i(),_(N,null,G(3,P=>r("div",{key:P,class:"task placeholder"},[r("div",Ct,[s(m,{animated:""},{template:h(()=>[s(p,{variant:"image",class:"avatar"})]),_:1})]),r("div",Rt,[s(m,{animated:""},{template:h(()=>[s(p,{variant:"p",class:"title"}),s(p,{variant:"image",class:"icon"})]),_:1})])])),64))])):((v=(d=e.tasks)==null?void 0:d.items)==null?void 0:v.length)&&((n=(w=e.tasks)==null?void 0:w.items)==null?void 0:n.length)>0?(i(),_("div",Ut,[(i(!0),_(N,null,G((U=e.tasks)==null?void 0:U.items,(P,A)=>(i(),E(c,{key:A,"model-value":P,class:"preview"},null,8,["model-value"]))),128))])):k("v-if",!0),((R=(C=e.tasks)==null?void 0:C.items)==null?void 0:R.length)===0?(i(),_("p",At,u(e.$t("hailuo.message.noTasks")),1)):k("v-if",!0)],544)}var Gt=S(Tt,[["render",Nt],["__scopeId","data-v-7bff9d40"],["__file","/home/runner/work/Nexior/Nexior/src/components/hailuo/RecentPanel.vue"]]);const Dt="https://webhook.acedata.cloud/hailuo",Lt=V({name:"HailuoIndex",components:{ConfigPanel:tt,Layout:Ee,RecentPanel:Gt},data(){return{task:void 0,job:0,timer:void 0}},computed:{loading(){var e,t;return((t=(e=this.$store.state.hailuo)==null?void 0:e.status)==null?void 0:t.getApplications)===O.Request},service(){return this.$store.state.hailuo.service},credential(){return this.$store.state.hailuo.credential},config(){return this.$store.state.hailuo.config},initializing(){return this.$store.state.hailuo.status.getApplications===O.Request},needApply(){return this.$store.state.hailuo.status.getApplications===O.Success&&!this.application},application(){return this.$store.state.hailuo.application},applications(){return this.$store.state.hailuo.applications},tasks(){return this.$store.state.hailuo.tasks}},watch:{tasks:{handler(e,t){var o,l;((o=e==null?void 0:e.items)==null?void 0:o.length)>((l=t==null?void 0:t.items)==null?void 0:l.length)&&console.debug("new tasks detected")},deep:!0}},async mounted(){await this.onGetService(),await this.onGetApplication(),await this.onScrollDown(),await this.onGetTasks(),await this.onScrollDown(),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("hailuo/getService"),console.debug("end onGetService")},async onGetApplication(){console.debug("start onGetApplication"),await this.$store.dispatch("hailuo/getApplications"),console.debug("end onGetApplication"),await this.onGetTasks()},onApply(){re.create({application:this.application}).then(({data:e})=>{this.application=e,I.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)===ce&&I.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:l}=e||{};console.debug("limit",t,"createdAtMin",o,"createdAtMax",l),await this.$store.dispatch("hailuo/getTasks",{limit:t,createdAtMin:o,createdAtMax:l})},async onGenerate(){var o;const e={...this.config,callback_url:Dt},t=(o=this.credential)==null?void 0:o.token;if(!t){console.error("no token specified");return}I.info(this.$t("hailuo.message.startingTask")),ue.generate(e,{token:t}).then(()=>{I.success(this.$t("hailuo.message.startTaskSuccess")),this.$store.commit("hailuo/setConfig",{config:void 0})}).catch(l=>{var g,p;const f=(g=l==null?void 0:l.response)==null?void 0:g.data;((p=f==null?void 0:f.error)==null?void 0:p.code)===pe?I.error(this.$t("hailuo.message.usedUp")):I.error(this.$t("hailuo.message.startTaskFailed"))}).finally(async()=>{setTimeout(async()=>{await this.onGetTasks(),await this.onScrollDown()},1e3)})}}});function Ot(e,t,o,l,f,g){const p=a("config-panel"),m=a("recent-panel"),c=a("layout");return i(),E(c,null,{config:h(()=>[s(p,{onGenerate:e.onGenerate},null,8,["onGenerate"])]),result:h(()=>[s(m,{class:"panel recent",onReachTop:e.onReachTop},null,8,["onReachTop"])]),_:1})}var Xt=S(Lt,[["render",Ot],["__scopeId","data-v-1f8aa246"],["__file","/home/runner/work/Nexior/Nexior/src/pages/hailuo/Index.vue"]]);export{Xt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./vendor-others.4ac6d265.js";import{ar as ae}from"./vendor-fortawesome.20479da6.js";import{_ as j,ac as Be,ad as Fe,ae as qe,af as ze,ag as We,D as Je,N as de,J as Qe,P as Ye,ah as Ze,a2 as ea,ai as Me}from"./index.bb8f1411.js";import{T as aa,u as W,p as ta,N as He,O as xe,U as te,V as oe,m as ce,M as da,L as la,Q as na,W as oa,b as ca,k as Ke,X as sa,E as ia,h as ua,f as ra,j as ma,t as ga,x as pa,y as O,s as ba,I as ha,H as fa,R as ya}from"./vendor-element-plus.0d60bec3.js";import{H as T,al as d,o,e as m,f as l,I as le,V as t,M as b,T as s,U as P,ai as U,P as B,a0 as ne,L as R,S as w,R as k,O as q,W as z}from"./vendor-@vue.38e80b4c.js";import{I as M}from"./InfoIcon.b3285074.js";import{I as va}from"./ImagePreview.65bc0654.js";import{C as _a}from"./CopyToClipboard.3752e201.js";import"./vendor-markdown.b359a0a8.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.60b22bc6.js";var c=(e=>(e.GENERATE="generate",e.UPSCALE1="upscale1",e.UPSCALE2="upscale2",e.UPSCALE3="upscale3",e.UPSCALE4="upscale4",e.VARIATION1="variation1",e.VARIATION2="variation2",e.VARIATION3="variation3",e.VARIATION4="variation4",e.VARIATION_STRONG="variation_strong",e.VARIATION_SUBTLE="variation_subtle",e.UPSCALE_SUBTLE="upscale_subtle",e.UPSCALE_CREATIVE="upscale_creative",e.ZOOM_OUT_2X="zoom_out_2x",e.ZOOM_OUT_1_5X="zoom_out_1_5x",e.SQUARE="square",e.PAN_LEFT="pan_left",e.PAN_UP="pan_up",e.PAN_DOWN="pan_down",e.PAN_RIGHT="pan_right",e.REROLL="reroll",e.UPSCALE_2X="upscale_2x",e.UPSCALE_4X="upscale_4x",e.REDO_UPSCALE_2X="redo_upscale_2x",e.REDO_UPSCALE_4X="redo_upscale_4x",e.REDO_UPSCALE_SUBTLE="redo_upscale_subtle",e.REDO_UPSCALE_CREATIVE="redo_upscale_creative",e))(c||{}),Xe=(e=>(e.PENDING="pending",e.GENERATING="generating",e.FINISHED="finished",e.FAILED="failed",e))(Xe||{});const $a=T({name:"LayoutMidjourney",components:{ElDrawer:aa,ElButton:W,FontAwesomeIcon:ae},data(){return{drawer:!1}}}),ja={class:"main"},Ta={class:"config"},ka={class:"results"};function wa(e,a,i,p,h,f){const u=d("font-awesome-icon"),r=d("el-button"),n=d("el-drawer");return o(),m("div",ja,[l("div",Ta,[le(e.$slots,"config",{},void 0,!0)]),l("div",ka,[le(e.$slots,"results",{},void 0,!0)]),t(r,{round:"",class:"menu",onClick:a[0]||(a[0]=g=>e.drawer=!0)},{default:b(()=>[t(u,{icon:"fa-solid fa-gear",class:"icon-menu"})]),_:1}),t(n,{modelValue:e.drawer,"onUpdate:modelValue":a[1]||(a[1]=g=>e.drawer=g),"with-header":!1,size:"300px",class:"drawer"},{default:b(()=>[le(e.$slots,"config",{},void 0,!0)]),_:3},8,["modelValue"])])}var Sa=j($a,[["render",wa],["__scopeId","data-v-31b62f12"],["__file","/home/runner/work/Nexior/Nexior/src/layouts/Midjourney.vue"]]);const Ea=T({name:"RatioSelector",data(){return{options:[{value:"1:1",label:"1:1",width:20,height:20},{value:"4:3",label:"4:3",width:20,height:15},{value:"3:4",label:"3:4",width:15,height:20},{value:"16:9",label:"16:9",width:25,height:13},{value:"9:16",label:"9:16",width:13,height:25}]}},computed:{active(){return this.options.findIndex(e=>e.value===this.value)||0},value:{get(){return this.$store.state.midjourney.config.ratio},set(e){console.debug("set ratio",e),this.$store.commit("midjourney/setConfig",{...this.$store.state.midjourney.config,ratio:e})}}},mounted(){this.value||(this.value=Be)}}),Ca={class:"text-sm font-bold mb-2 block"},Aa={class:"items"},La=["onClick"],Va={class:"name"};function Ra(e,a,i,p,h,f){return o(),m("div",null,[l("span",Ca,s(e.$t("midjourney.name.ratio")),1),l("div",Aa,[(o(!0),m(P,null,U(e.options,(u,r)=>(o(),m("div",{key:r,class:B({active:e.active===r,item:!0}),onClick:n=>e.value=u.value},[l("div",{class:B(["preview",u.label])},[l("div",{class:"rect",style:ne({width:u.width+"px",height:u.height+"px"})},null,4)],2),l("p",Va,s(u.label),1)],10,La))),128))])])}var Pa=j(Ea,[["render",Ra],["__scopeId","data-v-2c533634"],["__file","/home/runner/work/Nexior/Nexior/src/components/midjourney/config/RatioSelector.vue"]]);const Ua=!1,Na=T({name:"AdvancedSelector",components:{ElSwitch:ta},computed:{value:{get(){return this.$store.state.midjourney.config.advanced},set(e){console.debug("set advanced",e),this.$store.commit("midjourney/setConfig",{...this.$store.state.midjourney.config,advanced:e})}}},mounted(){this.value===void 0&&(this.value=Ua)}}),Ia={class:"field"},Da={class:"title"};function Oa(e,a,i,p,h,f){const u=d("el-switch");return o(),m("div",Ia,[l("h2",Da,s(e.$t("midjourney.name.advanced")),1),t(u,{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=r=>e.value=r),class:"value"},null,8,["modelValue"])])}var Ma=j(Na,[["render",Oa],["__scopeId","data-v-01750b67"],["__file","/home/runner/work/Nexior/Nexior/src/components/midjourney/config/AdvancedSelector.vue"]]);const Ga="6.1",Ba=T({name:"VersionSelector",components:{ElSelect:He,ElOption:xe},props:{modelValue:{type:String,default:void 0}},emits:["update:modelValue"],data(){return{options:[{value:"7",label:"7"},{value:"6.1",label:"6.1"},{value:"6.0",label:"6.0"},{value:"5.2",label:"5.2"},{value:"5.1",label:"5.1"},{value:"5.0",label:"5"},{value:"4",label:"4"},{value:"3",label:"3"},{value:"2",label:"2"},{value:"1",label:"1"}]}},computed:{value:{get(){return this.$store.state.midjourney.config.version},set(e){this.$store.commit("midjourney/setConfig",{...this.$store.state.midjourney.config,version:e})}}},mounted(){this.value||(this.value=Ga)}}),Fa={class:"field"},qa={class:"text-sm font-bold"};function za(e,a,i,p,h,f){const u=d("el-option"),r=d("el-select");return o(),m("div",Fa,[l("span",qa,s(e.$t("midjourney.name.version")),1),t(r,{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=n=>e.value=n),class:"value",placeholder:e.$t("midjourney.placeholder.select")},{default:b(()=>[(o(!0),m(P,null,U(e.options,n=>(o(),R(u,{key:n.value,label:n.label,value:n.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])])}var Wa=j(Ba,[["render",za],["__scopeId","data-v-111cc9fe"],["__file","/home/runner/work/Nexior/Nexior/src/components/midjourney/config/VersionSelector.vue"]]);const Ha=T({name:"StylizeSelector",components:{ElSlider:te,InfoIcon:M,ElInputNumber:oe},computed:{value:{get(){return this.$store.state.midjourney.config.stylize},set(e){console.debug("set stylize",e),this.$store.commit("midjourney/setConfig",{...this.$store.state.midjourney.config,stylize:e})}}},mounted(){this.value||(this.value=Fe)}}),xa={class:"flex justify-between"},Ka={class:"flex justify-start items-center"},Xa={class:"text-sm font-bold"},Ja={class:"flex justify-end items-center"},Qa={class:"w-full"};function Ya(e,a,i,p,h,f){const u=d("info-icon"),r=d("el-input-number"),n=d("el-slider");return o(),m("div",null,[l("div",xa,[l("div",Ka,[l("span",Xa,s(e.$t("midjourney.name.stylize")),1),t(u,{content:e.$t("midjourney.description.stylize")},null,8,["content"])]),l("div",Ja,[t(r,{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=g=>e.value=g),"controls-position":"right"},null,8,["modelValue"])])]),l("div",Qa,[t(n,{modelValue:e.value,"onUpdate:modelValue":a[1]||(a[1]=g=>e.value=g),min:0,max:100,step:1},null,8,["modelValue"])])])}var Za=j(Ha,[["render",Ya],["__file","/home/runner/work/Nexior/Nexior/src/components/midjourney/config/StylizeSelector.vue"]]);const et=0,at=T({name:"ChaosSelector",components:{ElSlider:te,InfoIcon:M,ElInputNumber:oe},computed:{value:{get(){return this.$store.state.midjourney.config.chaos},set(e){console.debug("set quality",e),this.$store.commit("midjourney/setConfig",{...this.$store.state.midjourney.config,chaos:e})}}},mounted(){this.value||(this.value=et)}}),tt={class:"flex justify-between"},dt={class:"flex justify-start items-center"},lt={class:"text-sm font-bold"},nt={class:"flex justify-end items-center"},ot={class:"w-full"};function ct(e,a,i,p,h,f){const u=d("info-icon"),r=d("el-input-number"),n=d("el-slider");return o(),m("div",null,[l("div",tt,[l("div",dt,[l("span",lt,s(e.$t("midjourney.name.chaos")),1),t(u,{content:e.$t("midjourney.description.chaos")},null,8,["content"])]),l("div",nt,[t(r,{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=g=>e.value=g),"controls-position":"right"},null,8,["modelValue"])])]),l("div",ot,[t(n,{modelValue:e.value,"onUpdate:modelValue":a[1]||(a[1]=g=>e.value=g),min:0,max:100,step:1},null,8,["modelValue"])])])}var st=j(at,[["render",ct],["__scopeId","data-v-115b93ae"],["__file","/home/runner/work/Nexior/Nexior/src/components/midjourney/config/ChaosSelector.vue"]]);const it=T({name:"ModelSelector",components:{ElImage:ce,InfoIcon:M},data(){return{options:[{value:"",label:this.$t("midjourney.model.general"),image:"https://cdn.acedata.cloud/ebvlwg.png"},{value:"niji 5",label:this.$t("midjourney.model.niji"),image:"https://cdn.acedata.cloud/j6v1m7.png"}]}},computed:{active(){return this.options.findIndex(e=>e.value===this.value)},value:{get(){return this.$store.state.midjourney.config.model},set(e){this.$store.commit("midjourney/setConfig",{...this.$store.state.midjourney.config,model:e})}}},mounted(){this.value===void 0&&(this.value="")}}),ut={class:"flex justify-start items-center"},rt={class:"text-sm font-bold"},mt={class:"items"},gt=["onClick"],pt={class:"name"};function bt(e,a,i,p,h,f){const u=d("info-icon"),r=d("el-image");return o(),m("div",null,[l("div",ut,[l("span",rt,s(e.$t("midjourney.name.model")),1),t(u,{content:e.$t("midjourney.description.model")},null,8,["content"])]),l("div",mt,[(o(!0),m(P,null,U(e.options,(n,g)=>(o(),m("div",{key:g,class:B({active:e.active===g,item:!0}),onClick:v=>e.value=n.value},[t(r,{src:n.image,fit:"cover",class:"image"},null,8,["src"]),l("p",pt,s(n.label),1)],10,gt))),128))])])}var ht=j(it,[["render",bt],["__scopeId","data-v-0375b75c"],["__file","/home/runner/work/Nexior/Nexior/src/components/midjourney/config/ModelSelector.vue"]]);const ft=T({name:"QualitySelector",components:{ElRadioButton:da,ElRadioGroup:la},data(){return{options:[{label:this.$t("midjourney.button.low"),value:".25"},{label:this.$t("midjourney.button.medium"),value:".5"},{label:this.$t("midjourney.button.high"),value:"1"}]}},computed:{value:{get(){return this.$store.state.midjourney.config.quality},set(e){this.$store.commit("midjourney/setConfig",{...this.$store.state.midjourney.config,quality:e})}}},mounted(){this.value||(this.value=qe)}}),yt={class:"field"},vt={class:"text-sm font-bold"};function _t(e,a,i,p,h,f){const u=d("el-radio-button"),r=d("el-radio-group");return o(),m("div",yt,[l("span",vt,s(e.$t("midjourney.name.quality")),1),t(r,{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=n=>e.value=n),size:"small",class:"quality"},{default:b(()=>[(o(!0),m(P,null,U(e.options,n=>(o(),R(u,{key:n.value,label:n.value},{default:b(()=>[w(s(n.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])}var $t=j(ft,[["render",_t],["__scopeId","data-v-5eed3ca8"],["__file","/home/runner/work/Nexior/Nexior/src/components/midjourney/config/QualitySelector.vue"]]);const jt=T({name:"ImageWeightSelector",components:{ElSlider:te,InfoIcon:M},computed:{value:{get(){return this.$store.state.midjourney.config.iw},set(e){console.debug("set iw",e),this.$store.commit("midjourney/setConfig",{...this.$store.state.midjourney.config,iw:e})}}},mounted(){this.value||(this.value=ze)}}),Tt={class:"flex justify-between"},kt={class:"flex justify-start items-center"},wt={class:"text-sm font-bold"},St={class:"flex justify-end items-center"},Et={class:"w-full"};function Ct(e,a,i,p,h,f){const u=d("info-icon"),r=d("el-input-number"),n=d("el-slider");return o(),m("div",null,[l("div",Tt,[l("div",kt,[l("span",wt,s(e.$t("midjourney.name.imageWeight")),1),t(u,{content:e.$t("midjourney.description.imageWeight")},null,8,["content"])]),l("div",St,[t(r,{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=g=>e.value=g),size:"small","controls-position":"right"},null,8,["modelValue"])])]),l("div",Et,[t(n,{modelValue:e.value,"onUpdate:modelValue":a[1]||(a[1]=g=>e.value=g),min:0,max:2,step:.1},null,8,["modelValue"])])])}var At=j(jt,[["render",Ct],["__scopeId","data-v-be514748"],["__file","/home/runner/work/Nexior/Nexior/src/components/midjourney/config/ImageWeightSelector.vue"]]);const Lt=T({name:"WeirdSelector",components:{ElSlider:te,ElInputNumber:oe,InfoIcon:M},computed:{value:{get(){return this.$store.state.midjourney.config.weird},set(e){this.$store.commit("midjourney/setConfig",{...this.$store.state.midjourney.config,weird:e})}}},mounted(){this.value||(this.value=We)}}),Vt={class:"flex justify-between"},Rt={class:"flex justify-start items-center"},Pt={class:"text-sm font-bold"},Ut={class:"flex justify-end items-center"},Nt={class:"w-full"};function It(e,a,i,p,h,f){const u=d("info-icon"),r=d("el-input-number"),n=d("el-slider");return o(),m("div",null,[l("div",Vt,[l("div",Rt,[l("span",Pt,s(e.$t("midjourney.name.weird")),1),t(u,{content:e.$t("midjourney.description.weird")},null,8,["content"])]),l("div",Ut,[t(r,{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=g=>e.value=g),"controls-position":"right"},null,8,["modelValue"])])]),l("div",Nt,[t(n,{modelValue:e.value,"onUpdate:modelValue":a[1]||(a[1]=g=>e.value=g),min:0,max:1e3,step:1},null,8,["modelValue"])])])}var Dt=j(Lt,[["render",It],["__file","/home/runner/work/Nexior/Nexior/src/components/midjourney/config/WeirdSelector.vue"]]);const Ot="",Mt=T({name:"StyleSelector",components:{ElSelect:He,ElOption:xe},data(){return{}},computed:{model(){return this.$store.state.midjourney.config.model},options(){var e;return(e=this.model)!=null&&e.includes("niji")?[{value:"cute",label:this.$t("midjourney.style.cute")},{value:"expressive",label:this.$t("midjourney.style.expressive")},{value:"scenic",label:this.$t("midjourney.style.scenic")},{value:"original",label:this.$t("midjourney.style.original")}]:[{value:"raw",label:this.$t("midjourney.style.raw")}]},value:{get(){return this.$store.state.midjourney.config.style},set(e){this.$store.commit("midjourney/setConfig",{...this.$store.state.midjourney.config,style:e})}}},watch:{model(){this.value=""}},mounted(){this.value||(this.value=Ot)}}),Gt={class:"field"},Bt={class:"text-sm font-bold title"},Ft={class:"float-left"},qt={class:"float-right"};function zt(e,a,i,p,h,f){const u=d("el-option"),r=d("el-select");return o(),m("div",Gt,[l("span",Bt,s(e.$t("midjourney.name.style")),1),t(r,{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=n=>e.value=n),class:"value",placeholder:e.$t("midjourney.placeholder.select"),clearable:""},{default:b(()=>[(o(!0),m(P,null,U(e.options,n=>(o(),R(u,{key:n.value,label:n.label,value:n.value},{default:b(()=>[l("span",Ft,s(n.label),1),l("span",qt,s(n.value),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])])}var Wt=j(Mt,[["render",zt],["__scopeId","data-v-5094bada"],["__file","/home/runner/work/Nexior/Nexior/src/components/midjourney/config/StyleSelector.vue"]]);const Ht=T({name:"ElementsSelector",components:{Check:na,ElTabs:oa,ElTag:ca,ElIcon:Ke,ElTabPane:sa,ElImage:ce,ElDialog:ia,ElButton:W,InfoIcon:M},emits:["update:modelValue"],data(){return{tab:"styles",choosing:!1,elements:{styles:{displayName:this.$t("midjourney.styleCategory.styles"),items:[{image:"https://cdn.acedata.cloud/94ab394d-2fa3-4fe8-b3b3-41be85720fdb.png",label:this.$t("midjourney.styleTag.watercolour"),value:"Watercolour"},{image:"https://cdn.acedata.cloud/c3904cc5-3184-4639-be76-46f4860c1277.png",label:this.$t("midjourney.styleTag.oilPainting"),value:"Oil painting"},{image:"https://cdn.acedata.cloud/a0b764bb-13b1-419b-a8e8-855ee7ffc28a.png",label:this.$t("midjourney.styleTag.oldPhotograph"),value:"Old Photograph"},{image:"https://cdn.acedata.cloud/04f17d89-d913-4700-a422-99fa97fa79c9.png",label:this.$t("midjourney.styleTag.oneLineDrawing"),value:"One-line drawing"},{image:"https://cdn.acedata.cloud/281cfaac-ec59-4f5c-ab2b-f15d7481d752.png",label:this.$t("midjourney.styleTag.sketchDrawing"),value:"Sketch Drawing"},{image:"https://cdn.acedata.cloud/091d68cf-533c-4b76-90be-d5983b9ba80b.png",label:this.$t("midjourney.styleTag.gouache"),value:"Gouache"},{image:"https://cdn.acedata.cloud/a652c6b2-f0f6-4ef4-bf1b-9053e1daf85b.png",label:this.$t("midjourney.styleTag.filmStyle"),value:"Film style"},{image:"https://cdn.acedata.cloud/0aaafc79-9094-4a97-a07d-a01f88d276b1.png",label:this.$t("midjourney.styleTag.photorealistic"),value:"Photorealistic"},{image:"https://cdn.acedata.cloud/aa6489ad-8b40-46ae-83a6-f636772084e9.png",label:this.$t("midjourney.styleTag.logo"),value:"Logo"},{image:"https://cdn.acedata.cloud/e3e96805-6bcd-4608-b012-a8931e75662a.png",label:this.$t("midjourney.styleTag.cartoon"),value:"Cartoon"},{image:"https://cdn.acedata.cloud/11d53af4-ec2d-4256-8ddc-18105df57047.png",label:this.$t("midjourney.styleTag.marbleStatue"),value:"Marble Statue"},{image:"https://cdn.acedata.cloud/d0109889-d2a6-49ee-9f5c-49f2033966d8.png",label:this.$t("midjourney.styleTag.1800S"),value:"1800s"},{image:"https://cdn.acedata.cloud/86a3fb48-1ef0-422a-809a-580892aa0b9d.png",label:this.$t("midjourney.styleTag.1980S"),value:"1980s"},{image:"https://cdn.acedata.cloud/8b07aae4-b6f6-45ad-a556-7206b2945025.png",label:this.$t("midjourney.styleTag.isometricAnime"),value:"Isometric anime",advanced:!0},{image:"https://cdn.acedata.cloud/3be49d3c-e431-4bce-b2bb-fc53f763b348.png",label:this.$t("midjourney.styleTag.analyticDrawing"),value:"Analytic drawing",advanced:!0},{image:"https://cdn.acedata.cloud/4d31c2dc-2a0b-4465-b3e8-bffd7c5fed25.png",label:this.$t("midjourney.styleTag.coloringBook"),value:"Coloring book",advanced:!0},{image:"https://cdn.acedata.cloud/a19dde67-65b2-4923-8895-9e960cf050ee.png",label:this.$t("midjourney.styleTag.infographicDrawing"),value:"Infographic drawing",advanced:!0},{image:"https://cdn.acedata.cloud/f57db729-8692-4524-a373-b495d14ec77e.png",label:this.$t("midjourney.styleTag.doubleExposure"),value:"Double exposure",advanced:!0},{image:"https://cdn.acedata.cloud/f8ff8db0-62dc-4414-b309-7fdf2021e45c.png",label:this.$t("midjourney.styleTag.diagrammaticDrawing"),value:"Diagrammatic drawing",advanced:!0},{image:"https://cdn.acedata.cloud/426447cf-dd10-4c91-b928-e7a3aa4c253a.png",label:this.$t("midjourney.styleTag.2DIllustration"),value:"2D illustration",advanced:!0},{image:"https://cdn.acedata.cloud/25e0edfe-776f-4be0-9791-bb729cca81b3.png",label:this.$t("midjourney.styleTag.diagrammaticPortrait"),value:"Diagrammatic portrait",advanced:!0},{image:"https://cdn.acedata.cloud/819c367c-ad03-4bf8-87a9-38ba53aa00f6.png",label:this.$t("midjourney.styleTag.pixelArt"),value:"Pixel art",advanced:!0},{image:"https://cdn.acedata.cloud/2c4bbd7b-fc59-4f38-b844-762bf2366042.png",label:this.$t("midjourney.styleTag.darkFantasy"),value:"Dark fantasy",advanced:!0},{image:"https://cdn.acedata.cloud/bd786eed-e3ee-4e3a-9473-acbd1ee4306c.png",label:this.$t("midjourney.styleTag.ukiyoEArt"),value:"Ukiyo-e art",advanced:!0},{image:"https://cdn.acedata.cloud/1951d276-5502-428a-8694-1b311d8a5540.png",label:this.$t("midjourney.styleTag.paperQuilling"),value:"Paper quilling",advanced:!0},{image:"https://cdn.acedata.cloud/4f9bcc9c-8b0e-47f4-87b9-4b4d78a8891a.png",label:this.$t("midjourney.styleTag.paperCutCraft"),value:"Paper cut craft"},{image:"https://cdn.acedata.cloud/4775f61f-446b-4312-b824-c91c6ecdb372.png",label:this.$t("midjourney.styleTag.iridescent"),value:"Iridescent",advanced:!0},{image:"https://cdn.acedata.cloud/29fbc528-56f0-4eb0-a5a2-2312d53d55b4.png",label:this.$t("midjourney.styleTag.patchworkCollage"),value:"Patchwork collage",advanced:!0},{image:"https://cdn.acedata.cloud/aa03b06a-fac8-45ec-830f-2a6e7ecab5c2.png",label:this.$t("midjourney.styleTag.opArt"),value:"Op art",advanced:!0},{image:"https://cdn.acedata.cloud/29015f2a-3c9c-43c5-808a-23fbbb7bcf2f.png",label:this.$t("midjourney.styleTag.japaneseInk"),value:"Japanese ink",advanced:!0},{image:"https://cdn.acedata.cloud/a65f8f7e-46a9-4ccf-8ee5-720d0c222471.png",label:this.$t("midjourney.styleTag.pastelDrawing"),value:"Pastel drawing"},{image:"https://cdn.acedata.cloud/a0cda2b1-b227-4230-8842-feab55edd6c7.png",label:this.$t("midjourney.styleTag.drippingArt"),value:"Dripping art"},{image:"https://cdn.acedata.cloud/c4aab372-ec55-4a7e-af94-4469f45c23c5.png",label:this.$t("midjourney.styleTag.tattooArt"),value:"Tattoo art",advanced:!0},{image:"https://cdn.acedata.cloud/5040fbb2-6fa7-4e8f-86ac-f23c1c3e291c.png",label:this.$t("midjourney.styleTag.16Bit"),value:"16-Bit",advanced:!0},{image:"https://cdn.acedata.cloud/b67249a1-36fa-443a-8b41-c167a5002e10.png",label:this.$t("midjourney.styleTag.8Bit"),value:"8-Bit",advanced:!0},{image:"https://cdn.acedata.cloud/1c9600b4-6995-4dcb-b363-40ee38049151.png",label:this.$t("midjourney.styleTag.amber"),value:"Amber",advanced:!0},{image:"https://cdn.acedata.cloud/e2d34946-3148-4f92-ad73-40f6f1208516.png",label:this.$t("midjourney.styleTag.anatomicalDrawing"),value:"Anatomical Drawing",advanced:!0},{image:"https://cdn.acedata.cloud/19940f31-037e-4a8f-a71c-605e16ac9631.png",label:this.$t("midjourney.styleTag.ancient"),value:"Ancient"},{image:"https://cdn.acedata.cloud/b714b3d9-2f97-49fb-bf85-99a716bf0c78.png",label:this.$t("midjourney.styleTag.anime"),value:"Anime",advanced:!0},{image:"https://cdn.acedata.cloud/d88c3080-cd54-4342-ac91-dac326ee1060.png",label:this.$t("midjourney.styleTag.arabic"),value:"Arabic",advanced:!0},{image:"https://cdn.acedata.cloud/dc54b749-8e69-4252-9b90-fc1448fa9397.png",label:this.$t("midjourney.styleTag.blocky"),value:"Blocky",advanced:!0},{image:"https://cdn.acedata.cloud/d8009295-2f4b-48d8-896e-46d0f5939923.png",label:this.$t("midjourney.styleTag.blueprint"),value:"Blueprint",advanced:!0},{image:"https://cdn.acedata.cloud/5cc39277-16e0-46d6-9310-b0722479713b.png",label:this.$t("midjourney.styleTag.comicbook"),value:"Comicbook",advanced:!0},{image:"https://cdn.acedata.cloud/b9900d01-20bc-408b-9637-779cc22c493c.png",label:this.$t("midjourney.styleTag.caribbean"),value:"Caribbean",advanced:!0},{image:"https://cdn.acedata.cloud/fedabd4e-a9bb-4bb0-a4ec-8fc48bc74c78.png",label:this.$t("midjourney.styleTag.celestial"),value:"Celestial",advanced:!0},{image:"https://cdn.acedata.cloud/00f1f097-1d72-435f-b47d-656f8e194dc2.png",label:this.$t("midjourney.styleTag.cellulose"),value:"Cellulose",advanced:!0},{image:"https://cdn.acedata.cloud/a002bccf-6287-4b28-a5a7-c1cf5cb07734.png",label:this.$t("midjourney.styleTag.charcoalStyle"),value:"Charcoal Style",advanced:!0},{image:"https://cdn.acedata.cloud/e218ab68-e430-4541-9501-02ee2d7aeda9.png",label:this.$t("midjourney.styleTag.chromatic"),value:"Chromatic",advanced:!0},{image:"https://cdn.acedata.cloud/bd5a79d9-c73d-46c3-974f-932751ff8e46.png",label:this.$t("midjourney.styleTag.coral"),value:"Coral",advanced:!0},{image:"https://cdn.acedata.cloud/58dd439c-cae7-434f-9a83-ac6aefd6e417.png",label:this.$t("midjourney.styleTag.conceptArt"),value:"Concept Art",advanced:!0},{image:"https://cdn.acedata.cloud/767fe9f3-69d0-4e16-9060-41e6cf1b1fe1.png",label:this.$t("midjourney.styleTag.fibonacci"),value:"Fibonacci",advanced:!0},{image:"https://cdn.acedata.cloud/4b78ebb1-5091-43d8-a020-88ffb3719edd.png",label:this.$t("midjourney.styleTag.cyberpunk"),value:"Cyberpunk",advanced:!0},{image:"https://cdn.acedata.cloud/34d35d5c-a2e4-4e8e-aafd-3d3c08499389.png",label:this.$t("midjourney.styleTag.diabolic"),value:"Diabolic",advanced:!0},{image:"https://cdn.acedata.cloud/8e29e2b4-4899-491d-a5dc-5ebbb1ff2758.png",label:this.$t("midjourney.styleTag.diffractionGrading"),value:"Diffraction Grading",advanced:!0},{image:"https://cdn.acedata.cloud/996c6d93-94aa-438a-96d5-278e22e54f5f.png",label:this.$t("midjourney.styleTag.lightspeed"),value:"Lightspeed",advanced:!0},{image:"https://cdn.acedata.cloud/57f3ad49-0940-44e2-a31a-a4872497bae7.png",label:this.$t("midjourney.styleTag.liquid"),value:"Liquid",advanced:!0},{image:"https://cdn.acedata.cloud/a9ff43a9-dadf-4bbc-9a7a-72fd3908d39a.png",label:this.$t("midjourney.styleTag.dots"),value:"Dots",advanced:!0},{image:"https://cdn.acedata.cloud/acff2bf9-1907-4a0f-be23-897c71caf60e.png",label:this.$t("midjourney.styleTag.dune"),value:"Dune",advanced:!0},{image:"https://cdn.acedata.cloud/4a2abc45-ba65-4e2d-8399-8d44491c8a64.png",label:this.$t("midjourney.styleTag.drippingPaint"),value:"Dripping Paint",advanced:!0},{image:"https://cdn.acedata.cloud/7dc4e93f-07a8-45ec-9e8a-89c3f619fd40.png",label:this.$t("midjourney.styleTag.electronicCircuitry"),value:"Electronic Circuitry",advanced:!0},{image:"https://cdn.acedata.cloud/cf502cba-ee64-41fd-a388-93f6357fc7cc.png",label:this.$t("midjourney.styleTag.electrical"),value:"Electrical",advanced:!0},{image:"https://cdn.acedata.cloud/fd6a696b-3102-4301-8fce-5a7fd401231a.png",label:this.$t("midjourney.styleTag.futuristic"),value:"Futuristic",advanced:!0},{image:"https://cdn.acedata.cloud/0fe8fca5-b3d9-4fab-b390-fff7c0f4f594.png",label:this.$t("midjourney.styleTag.etching"),value:"Etching",advanced:!0},{image:"https://cdn.acedata.cloud/46577726-f0ab-4750-81c6-0d4d865ba4bd.png",label:this.$t("midjourney.styleTag.extraterrestrial"),value:"Extraterrestrial",advanced:!0},{image:"https://cdn.acedata.cloud/faa06af4-9988-4e39-9f13-ecdd29e1e20a.png",label:this.$t("midjourney.styleTag.glitchart"),value:"Glitchart",advanced:!0},{image:"https://cdn.acedata.cloud/4380f6af-aaeb-41fd-bcaf-2efadcc3e08f.png",label:this.$t("midjourney.styleTag.floral"),value:"Floral",advanced:!0},{image:"https://cdn.acedata.cloud/096683c4-8e91-4ef0-8211-8a6dcef5298d.png",label:this.$t("midjourney.styleTag.fractal"),value:"Fractal",advanced:!0},{image:"https://cdn.acedata.cloud/10ce713b-a5bc-400b-a0c8-bcec4f7e6548.png",label:this.$t("midjourney.styleTag.preHistoric"),value:"Pre Historic",advanced:!0},{image:"https://cdn.acedata.cloud/6382ad4e-1818-4ab1-b493-10afdb43c196.png",label:this.$t("midjourney.styleTag.prokaryotic"),value:"Prokaryotic",advanced:!0},{image:"https://cdn.acedata.cloud/48205fb3-e48b-4219-ad53-d307e1e686a7.png",label:this.$t("midjourney.styleTag.horror"),value:"Horror",advanced:!0},{image:"https://cdn.acedata.cloud/d0567b20-8f93-4b16-a775-8ca0708a7a50.png",label:this.$t("midjourney.styleTag.iceAge"),value:"Ice Age",advanced:!0},{image:"https://cdn.acedata.cloud/cc1455a5-c139-400d-8a54-121176f196e1.png",label:this.$t("midjourney.styleTag.jurassic"),value:"Jurassic",advanced:!0},{image:"https://cdn.acedata.cloud/84e2bfe2-60bb-4323-936b-18dbb1c8cfa1.png",label:this.$t("midjourney.styleTag.knitted"),value:"Knitted",advanced:!0},{image:"https://cdn.acedata.cloud/2e1ffddf-daa1-4e57-bc92-d16484ef8e34.png",label:this.$t("midjourney.styleTag.polka"),value:"Polka",advanced:!0},{image:"https://cdn.acedata.cloud/9c2670df-3e39-45a7-ad76-ae17502d018f.png",label:this.$t("midjourney.styleTag.latex"),value:"Latex",advanced:!0},{image:"https://cdn.acedata.cloud/d4de1735-235d-461d-b93f-2bf3c280ccfe.png",label:this.$t("midjourney.styleTag.pastel"),value:"Pastel",advanced:!0},{image:"https://cdn.acedata.cloud/37f26555-f634-4964-8bac-ec8a955273d4.png",label:this.$t("midjourney.styleTag.mandala"),value:"Mandala",advanced:!0},{image:"https://cdn.acedata.cloud/f62aa376-1378-45a6-abd0-71bc7bbe49c7.png",label:this.$t("midjourney.styleTag.molecular"),value:"Molecular",advanced:!0},{image:"https://cdn.acedata.cloud/fc135428-1835-453d-afef-aaf72a7cfcbc.png",label:this.$t("midjourney.styleTag.merkaba"),value:"Merkaba",advanced:!0},{image:"https://cdn.acedata.cloud/5caf594b-0f0c-455f-b8a8-8c15a189d0dc.png",label:this.$t("midjourney.styleTag.mitochondria"),value:"Mitochondria",advanced:!0},{image:"https://cdn.acedata.cloud/088e3067-0abe-4f3d-bcb8-f6937e860d1e.png",label:this.$t("midjourney.styleTag.graffiti"),value:"Graffiti",advanced:!0},{image:"https://cdn.acedata.cloud/06230561-916a-4bc5-ad85-9386cf27bf1c.png",label:this.$t("midjourney.styleTag.graphicNovel"),value:"Graphic Novel",advanced:!0},{image:"https://cdn.acedata.cloud/e47f7931-d588-4c4a-87c8-3f7137e7f727.png",label:this.$t("midjourney.styleTag.multidimensional"),value:"Multidimensional",advanced:!0},{image:"https://cdn.acedata.cloud/d2443c93-3227-4216-afd1-b86287ac5140.png",label:this.$t("midjourney.styleTag.nasa"),value:"NASA",advanced:!0},{image:"https://cdn.acedata.cloud/a86a2f67-273c-4edf-9be9-ceecc983c93d.png",label:this.$t("midjourney.styleTag.nebula"),value:"Nebula",advanced:!0},{image:"https://cdn.acedata.cloud/ad1e588c-5892-48ee-a7c2-103c2b4868fc.png",label:this.$t("midjourney.styleTag.neon"),value:"Neon"},{image:"https://cdn.acedata.cloud/5a133976-208e-460f-8296-a4ad19809490.png",label:this.$t("midjourney.styleTag.nuclear"),value:"Nuclear",advanced:!0},{image:"https://cdn.acedata.cloud/c99f5082-314b-49e9-8875-b40319ed3cfc.png",label:this.$t("midjourney.styleTag.orbital"),value:"Orbital",advanced:!0},{image:"https://cdn.acedata.cloud/63809059-6ae6-49ff-ad96-ed4ae45a2464.png",label:this.$t("midjourney.styleTag.rayTracing"),value:"Ray Tracing",advanced:!0},{image:"https://cdn.acedata.cloud/cdcf0c05-e7ad-421e-b513-640bcc3d04cc.png",label:this.$t("midjourney.styleTag.realistic"),value:"Realistic"},{image:"https://cdn.acedata.cloud/019dc7be-b0e2-4da2-94d4-191226d58dbf.png",label:this.$t("midjourney.styleTag.renaissance"),value:"Renaissance",advanced:!0},{image:"https://cdn.acedata.cloud/d46d3c03-a924-4a0f-b032-e8dbca6ad37e.png",label:this.$t("midjourney.styleTag.retro"),value:"Retro"},{image:"https://cdn.acedata.cloud/bc13e200-6865-474b-8fe4-cf0725cf3caf.png",label:this.$t("midjourney.styleTag.risograph"),value:"Risograph",advanced:!0},{image:"https://cdn.acedata.cloud/f8533acc-807b-4f03-8f39-338ee6ff5d53.png",label:this.$t("midjourney.styleTag.origami"),value:"Origami",advanced:!0},{image:"https://cdn.acedata.cloud/b0ff3593-aef3-4dd2-a5f4-548c6febb2e2.png",label:this.$t("midjourney.styleTag.ornamental"),value:"Ornamental",advanced:!0},{image:"https://cdn.acedata.cloud/002c6a5d-b251-43bb-b713-d133f828c0a4.png",label:this.$t("midjourney.styleTag.space"),value:"Space",advanced:!0},{image:"https://cdn.acedata.cloud/641327df-93cc-4746-a55e-667dbb8c1563.png",label:this.$t("midjourney.styleTag.splatterPaint"),value:"Splatter Paint",advanced:!0},{image:"https://cdn.acedata.cloud/42527f9e-6cf0-40a6-bc9b-361d2baf9bf9.png",label:this.$t("midjourney.styleTag.sprayPaint"),value:"Spray Paint",advanced:!0},{image:"https://cdn.acedata.cloud/98bf8e01-9dd8-434b-81df-77cfd3627243.png",label:this.$t("midjourney.styleTag.squiggles"),value:"Squiggles",advanced:!0},{image:"https://cdn.acedata.cloud/26868352-5d9a-4bcc-9926-166927a2be35.png",label:this.$t("midjourney.styleTag.stitching"),value:"Stitching",advanced:!0},{image:"https://cdn.acedata.cloud/23819218-bdbc-4746-a507-7664836a4f59.png",label:this.$t("midjourney.styleTag.veins"),value:"Veins",advanced:!0},{image:"https://cdn.acedata.cloud/2fd3de3d-7211-4cce-b63b-a857d7621c72.png",label:this.$t("midjourney.styleTag.streetArt"),value:"Street Art",advanced:!0},{image:"https://cdn.acedata.cloud/80422ede-79fb-4149-bd0a-85bf0ac75a3d.png",label:this.$t("midjourney.styleTag.surreal"),value:"Surreal"},{image:"https://cdn.acedata.cloud/94956306-55de-470b-8a2a-28354d0e556f.png",label:this.$t("midjourney.styleTag.symmetric"),value:"Symmetric",advanced:!0},{image:"https://cdn.acedata.cloud/0098f2a0-b089-4e64-8a86-ffa137605087.png",label:this.$t("midjourney.styleTag.synthWave"),value:"Synth-wave",advanced:!0},{image:"https://cdn.acedata.cloud/f50d33b2-9c91-4939-8f2d-7b5ce185d138.png",label:this.$t("midjourney.styleTag.technological"),value:"Technological",advanced:!0},{image:"https://cdn.acedata.cloud/a446a6eb-444c-4073-8a8e-6f43e65491c2.png",label:this.$t("midjourney.styleTag.tron"),value:"Tron",advanced:!0},{image:"https://cdn.acedata.cloud/8026ccad-aa11-4b0d-ad81-eb870a695a81.png",label:this.$t("midjourney.styleTag.tropical"),value:"Tropical",advanced:!0},{image:"https://cdn.acedata.cloud/22c16c64-068c-470e-9b80-2849297aad9a.png",label:this.$t("midjourney.styleTag.ultraModern"),value:"Ultra Modern"},{image:"https://cdn.acedata.cloud/f67bd4b6-3f43-4da8-bdcb-67cd39cb38f9.png",label:this.$t("midjourney.styleTag.wormhole"),value:"Wormhole",advanced:!0},{image:"https://cdn.acedata.cloud/2e2a1ca9-8791-41c6-9ff0-0ac21a13d1c5.png",label:this.$t("midjourney.styleTag.wrinkled"),value:"Wrinkled",advanced:!0},{image:"https://cdn.acedata.cloud/3507c78d-a065-462c-a17c-fd5ed4677644.png",label:this.$t("midjourney.styleTag.volcanic"),value:"Volcanic",advanced:!0},{image:"https://cdn.acedata.cloud/69263783-0610-45b0-9ec4-acac961da092.png",label:this.$t("midjourney.styleTag.wetPaint"),value:"Wet Paint",advanced:!0},{image:"https://cdn.acedata.cloud/9022fc82-d6f7-47e2-90b1-ad96fbba5257.png",label:this.$t("midjourney.styleTag.wildWest"),value:"Wild West",advanced:!0},{image:"https://cdn.acedata.cloud/23de882d-4e5d-40b5-9f00-d0573c443212.png",label:this.$t("midjourney.styleTag.wind"),value:"Wind",advanced:!0},{image:"https://cdn.acedata.cloud/e3a58af1-79bc-48f3-871c-36472da2584b.png",label:this.$t("midjourney.styleTag.miniatureFaking"),value:"Miniature Faking",advanced:!0}]},lighting:{displayName:this.$t("midjourney.styleCategory.lighting"),items:[{image:"https://cdn.acedata.cloud/a4b9110f-e838-4c52-8ab8-f2637ea753df.png",label:this.$t("midjourney.styleTag.accentLighting"),value:"Accent Lighting"},{image:"https://cdn.acedata.cloud/c4c16a69-28d7-4b38-8ea2-3ce49d5c6b07.png",label:this.$t("midjourney.styleTag.backlight"),value:"Backlight"},{image:"https://cdn.acedata.cloud/7fd2cd5c-7671-4b40-85a0-230de9c37234.png",label:this.$t("midjourney.styleTag.blacklight"),value:"Blacklight",advanced:!0},{image:"https://cdn.acedata.cloud/a08bff6e-8a0f-4d56-aa91-576f0a9921f2.png",label:this.$t("midjourney.styleTag.goldenHourLight"),value:"Golden hour light",advanced:!0},{image:"https://cdn.acedata.cloud/3cd28696-493f-4b3e-9187-9d1a4c17e95b.png",label:this.$t("midjourney.styleTag.candlelight"),value:"Candlelight"},{image:"https://cdn.acedata.cloud/58c9a17e-f7d5-4481-abc8-9e9b66609a4d.png",label:this.$t("midjourney.styleTag.concertLighting"),value:"Concert Lighting",advanced:!0},{image:"https://cdn.acedata.cloud/efb8893c-8bd6-4c7d-8e45-6e0626f69479.png",label:this.$t("midjourney.styleTag.crepuscularRays"),value:"Crepuscular Rays",advanced:!0},{image:"https://cdn.acedata.cloud/27b90e83-09b0-4339-9b2c-48fe6fe45bdd.png",label:this.$t("midjourney.styleTag.directSunlight"),value:"Direct Sunlight"},{image:"https://cdn.acedata.cloud/d33cb17d-e2a5-4ca3-b68a-93904d2618d7.png",label:this.$t("midjourney.styleTag.dust"),value:"Dust",advanced:!0},{image:"https://cdn.acedata.cloud/3af133d0-5a86-45a9-a16e-f23e6cc68b24.png",label:this.$t("midjourney.styleTag.studioLighting"),value:"Studio lighting",advanced:!0},{image:"https://cdn.acedata.cloud/6bc889b1-a563-4890-9117-7d3ded276caa.png",label:this.$t("midjourney.styleTag.rimLight"),value:"Rim light",advanced:!0},{image:"https://cdn.acedata.cloud/d770265a-066b-413f-a405-a52d68e2f1c7.png",label:this.$t("midjourney.styleTag.volumetricLighting"),value:"Volumetric Lighting",advanced:!0},{image:"https://cdn.acedata.cloud/7c83560a-6837-43b2-b296-f74db549accf.png",label:this.$t("midjourney.styleTag.fluorescent"),value:"Fluorescent"},{image:"https://cdn.acedata.cloud/6ffc8688-dfd0-4ede-a6bc-91bf8679adc9.png",label:this.$t("midjourney.styleTag.glowing"),value:"Glowing",advanced:!0},{image:"https://cdn.acedata.cloud/63bc0645-ab94-4327-84b8-e226020c6c0f.png",label:this.$t("midjourney.styleTag.glowStick"),value:"Glow-stick",advanced:!0},{image:"https://cdn.acedata.cloud/824111e9-7ebf-47ec-80ef-a6ad0a1d949b.png",label:this.$t("midjourney.styleTag.glowRadioactive"),value:"Glow Radioactive",advanced:!0},{image:"https://cdn.acedata.cloud/9d23de16-57b3-42be-89d2-478de2666483.png",label:this.$t("midjourney.styleTag.lavaGlow"),value:"Lava Glow",advanced:!0},{image:"https://cdn.acedata.cloud/d801ee47-02a0-455d-b333-76ad73a4fdcd.png",label:this.$t("midjourney.styleTag.moonlight"),value:"Moonlight"},{image:"https://cdn.acedata.cloud/6d1400a8-e168-46c9-89e8-5e701f8824b2.png",label:this.$t("midjourney.styleTag.naturalLighting"),value:"Natural Lighting"},{image:"https://cdn.acedata.cloud/9bb6c4ce-9076-41eb-8ace-43a4fa7e0c03.png",label:this.$t("midjourney.styleTag.neonLamp"),value:"Neon Lamp"},{image:"https://cdn.acedata.cloud/ac3fe310-3639-4fc0-b56e-4d69278bc2ca.png",label:this.$t("midjourney.styleTag.nightclubLighting"),value:"Nightclub Lighting",advanced:!0},{image:"https://cdn.acedata.cloud/c9331a92-87d2-43b5-9319-24c8629bffd1.png",label:this.$t("midjourney.styleTag.nuclearWasteGlo"),value:"Nuclear Waste Glo",advanced:!0},{image:"https://cdn.acedata.cloud/40ccdbfb-84a7-49f7-9999-92db58802c65.png",label:this.$t("midjourney.styleTag.quantumDot"),value:"Quantum Dot",advanced:!0},{image:"https://cdn.acedata.cloud/d5411604-4e66-4187-9b37-48eb683be65e.png",label:this.$t("midjourney.styleTag.spotlight"),value:"Spotlight"},{image:"https://cdn.acedata.cloud/b1f16a4b-fb3d-4783-9c66-c3567e79baeb.png",label:this.$t("midjourney.styleTag.edgeLight"),value:"Edge light",advanced:!0},{image:"https://cdn.acedata.cloud/97fecbc1-a164-48e2-bdf0-c69975c16d63.png",label:this.$t("midjourney.styleTag.coldLight"),value:"Cold light"},{image:"https://cdn.acedata.cloud/7087f2fe-f48c-4b72-95bc-c697b56e8b0e.png",label:this.$t("midjourney.styleTag.keyLighting"),value:"Key lighting",advanced:!0},{image:"https://cdn.acedata.cloud/5ab92c7e-bca1-4fbc-8975-6d9fb3f15626.png",label:this.$t("midjourney.styleTag.ambientLight"),value:"Ambient Light",advanced:!0},{image:"https://cdn.acedata.cloud/ac80d283-5532-4664-bbe5-42fbb9582a63.png",label:this.$t("midjourney.styleTag.highKeyLighting"),value:"High key lighting",advanced:!0},{image:"https://cdn.acedata.cloud/add3524d-fc90-45a8-9edc-348bb1f79075.png",label:this.$t("midjourney.styleTag.lowKeyLighting"),value:"Low key lighting",advanced:!0},{image:"https://cdn.acedata.cloud/42174ff8-3080-4004-9ae2-c2ff919e1145.png",label:this.$t("midjourney.styleTag.motivatedLighting"),value:"Motivated lighting",advanced:!0},{image:"https://cdn.acedata.cloud/09f3d509-a366-44dc-be3b-b39712d0fac1.png",label:this.$t("midjourney.styleTag.3PointLighting"),value:"3 point lighting",advanced:!0},{image:"https://cdn.acedata.cloud/794a114e-cd4d-4e83-a187-5e979296d125.png",label:this.$t("midjourney.styleTag.strobeLight"),value:"Strobe light",advanced:!0},{image:"https://cdn.acedata.cloud/9e6ec476-3ac8-4246-964f-a1d89a6d19e9.png",label:this.$t("midjourney.styleTag.sunLight"),value:"Sun light"},{image:"https://cdn.acedata.cloud/4360a40b-2126-43c2-be8e-e482978e1ea6.png",label:this.$t("midjourney.styleTag.ultraviolet"),value:"Ultraviolet",advanced:!0},{image:"https://cdn.acedata.cloud/8b6bea86-9ed1-4fc8-9040-8fc2b64abbff.png",label:this.$t("midjourney.styleTag.beautifulLighting"),value:"Beautiful Lighting",advanced:!0},{image:"https://cdn.acedata.cloud/a8d1f754-fb35-433d-8a36-e073b0fe6fa2.png",label:this.$t("midjourney.styleTag.moodyLighting"),value:"Moody Lighting",advanced:!0},{image:"https://cdn.acedata.cloud/77270807-ca3b-4d02-a9b4-badf8aa48c36.png",label:this.$t("midjourney.styleTag.softLighting"),value:"Soft Lighting"}]},artists:{displayName:this.$t("midjourney.styleCategory.artists"),items:[{image:"https://cdn.acedata.cloud/160cfc29-f258-4795-b663-f687adba19bf.png",label:this.$t("midjourney.styleTag.michelangelo"),value:"Michelangelo"},{image:"https://cdn.acedata.cloud/ed0bf2ad-138d-4c8d-bce9-a98299b1ee83.png",label:this.$t("midjourney.styleTag.monet"),value:"Monet"},{image:"https://cdn.acedata.cloud/58d9b130-e7b2-4eb8-a71e-7108b3bd4c26.png",label:this.$t("midjourney.styleTag.paulCezanne"),value:"Paul Cezanne",advanced:!0},{image:"https://cdn.acedata.cloud/1247615a-6e75-49e6-842a-b0fb84016d3d.png",label:this.$t("midjourney.styleTag.markRothko"),value:"Mark Rothko",advanced:!0},{image:"https://cdn.acedata.cloud/a7d9d9dd-8add-43d3-942e-8d1199fe277f.png",label:this.$t("midjourney.styleTag.paulKlee"),value:"Paul Klee",advanced:!0},{image:"https://cdn.acedata.cloud/caf5701a-b652-4fab-8467-0c00303d01f3.png",label:this.$t("midjourney.styleTag.picasso"),value:"Picasso"},{image:"https://cdn.acedata.cloud/fbb63634-659a-4d2d-bc7b-0fb3399f7061.png",label:this.$t("midjourney.styleTag.pietMondrian"),value:"Piet Mondrian",advanced:!0},{image:"https://cdn.acedata.cloud/29fb173b-17b4-4b05-a63c-e31ce161fe8c.png",label:this.$t("midjourney.styleTag.pierreAugusteRer"),value:"Pierre Auguste Rer",advanced:!0},{image:"https://cdn.acedata.cloud/556f8a48-0b12-49a7-b150-aed40278d3f6.png",label:this.$t("midjourney.styleTag.rembrandt"),value:"Rembrandt"},{image:"https://cdn.acedata.cloud/b44d947e-2a14-4db2-880d-332c1aeeb303.png",label:this.$t("midjourney.styleTag.reneMagritte"),value:"Rene Magritte",advanced:!0},{image:"https://cdn.acedata.cloud/0cfcda4a-7e7f-4ec4-ad4f-b4877a900a50.png",label:this.$t("midjourney.styleTag.royLichtenstein"),value:"Roy Lichtenstein",advanced:!0},{image:"https://cdn.acedata.cloud/e592bf88-d9b8-4787-88dd-9ff8e7e9268c.png",label:this.$t("midjourney.styleTag.salvadorDali"),value:"Salvador Dali",advanced:!0},{image:"https://cdn.acedata.cloud/3bbde342-565b-4ea0-8a4c-42b3c109c205.png",label:this.$t("midjourney.styleTag.sandroBotticelli"),value:"Sandro Botticelli",advanced:!0},{image:"https://cdn.acedata.cloud/bfdf6d50-24ab-4b5c-a3de-c8d77d858b04.png",label:this.$t("midjourney.styleTag.takashiMurakami"),value:"Takashi Murakami",advanced:!0},{image:"https://cdn.acedata.cloud/bc67c0ba-614f-46f0-a6ec-047fa561fc01.png",label:this.$t("midjourney.styleTag.vanGogh"),value:"Van Gogh"},{image:"https://cdn.acedata.cloud/984a18fa-8050-4084-95d5-732b7ede8e37.png",label:this.$t("midjourney.styleTag.wassilyKandinsky"),value:"Wassily Kandinsky",advanced:!0},{image:"https://cdn.acedata.cloud/48bce45c-6b25-4678-9be8-40707c8e5f43.png",label:this.$t("midjourney.styleTag.matCollishaw"),value:"Mat Collishaw",advanced:!0},{image:"https://cdn.acedata.cloud/6b2851d0-ec8d-4c07-86ed-1eafdd70e1fe.png",label:this.$t("midjourney.styleTag.yayoiKusama"),value:"Yayoi Kusama",advanced:!0},{image:"https://cdn.acedata.cloud/9d691d5c-5560-409b-b998-c979b29902e6.png",label:this.$t("midjourney.styleTag.igorMorski"),value:"Igor Morski",advanced:!0},{image:"https://cdn.acedata.cloud/950cb143-ab40-4bee-80f7-092d0c2a7bc4.png",label:this.$t("midjourney.styleTag.shinkaiMakoto"),value:"Shinkai Makoto"},{image:"https://cdn.acedata.cloud/94adf414-a1cc-4b84-b52d-18cd2586df17.png",label:this.$t("midjourney.styleTag.pixar"),value:"Pixar"},{image:"https://cdn.acedata.cloud/ccd4d148-e332-4d7e-bbe6-9f1dd68082a8.png",label:this.$t("midjourney.styleTag.kyotoAnime"),value:"Kyoto Anime"},{image:"https://cdn.acedata.cloud/b5f5f99a-be40-4fa7-a86a-fd51578a4052.png",label:this.$t("midjourney.styleTag.jerryPinkney"),value:"Jerry Pinkney",advanced:!0},{image:"https://cdn.acedata.cloud/7a4dba74-21ad-4088-89da-6a48104d811d.png",label:this.$t("midjourney.styleTag.hayaoMiyazaki"),value:"Hayao Miyazaki"},{image:"https://cdn.acedata.cloud/28477b7e-85d4-4803-b525-938aa2ce3383.png",label:this.$t("midjourney.styleTag.beatrixPotter"),value:"Beatrix Potter",advanced:!0},{image:"https://cdn.acedata.cloud/13854cb8-c478-43c9-9f51-8ac1933b1498.png",label:this.$t("midjourney.styleTag.jonKlassen"),value:"Jon Klassen",advanced:!0},{image:"https://cdn.acedata.cloud/6685c7e0-ea11-488b-a8a0-610032020dfb.png",label:this.$t("midjourney.styleTag.kaySage"),value:"Kay Sage",advanced:!0},{image:"https://cdn.acedata.cloud/cb0c3490-dcd4-488f-96e0-45b9ee671182.png",label:this.$t("midjourney.styleTag.jeffreyCatherineJones"),value:"Jeffrey Catherine Jones",advanced:!0},{image:"https://cdn.acedata.cloud/72f000c5-d8d6-4015-acd4-79961e53ac50.png",label:this.$t("midjourney.styleTag.yaacovAgam"),value:"Yaacov Agam",advanced:!0},{image:"https://cdn.acedata.cloud/f1bd0c4d-af96-4785-99bb-3a70b7f80834.png",label:this.$t("midjourney.styleTag.davidHockney"),value:"David Hockney",advanced:!0},{image:"https://cdn.acedata.cloud/ad0e89d9-214a-4599-90f1-ee5dc0b5592d.png",label:this.$t("midjourney.styleTag.victorMoscoso"),value:"Victor Moscoso",advanced:!0},{image:"https://cdn.acedata.cloud/c3b004e0-f583-4a75-b6cf-0cc60c89b2cf.png",label:this.$t("midjourney.styleTag.raphaelite"),value:"Raphaelite"},{image:"https://cdn.acedata.cloud/9c59d174-1e1f-4ef9-b657-1beb57f58088.png",label:this.$t("midjourney.styleTag.stefanKoidl"),value:"Stefan Koidl",advanced:!0},{image:"https://cdn.acedata.cloud/09485865-35a8-4456-a34c-65a8a1c8d2c2.png",label:this.$t("midjourney.styleTag.suiIshida"),value:"Sui Ishida",advanced:!0},{image:"https://cdn.acedata.cloud/31442dfd-d6a8-4674-aade-8543190251b4.png",label:this.$t("midjourney.styleTag.swoon"),value:"Swoon",advanced:!0},{image:"https://cdn.acedata.cloud/842beff4-d333-4388-9880-eec6fd4baa6c.png",label:this.$t("midjourney.styleTag.tashaTudor"),value:"Tasha Tudor",advanced:!0},{image:"https://cdn.acedata.cloud/68c419f3-6f2c-4fbd-a251-ce289d4a9890.png",label:this.$t("midjourney.styleTag.tintoretto"),value:"Tintoretto",advanced:!0},{image:"https://cdn.acedata.cloud/9a3d95da-5019-4fdd-83b9-ec334e609c9d.png",label:this.$t("midjourney.styleTag.theodoreRobinsor"),value:"Theodore Robinsor",advanced:!0},{image:"https://cdn.acedata.cloud/e11cb0a6-2f0e-4d8d-aa0e-8b7378423790.png",label:this.$t("midjourney.styleTag.titian"),value:"Titian",advanced:!0},{image:"https://cdn.acedata.cloud/d3e59ba8-10e6-4d58-a732-e35d579cd3fc.png",label:this.$t("midjourney.styleTag.wlop"),value:"WLOP",advanced:!0},{image:"https://cdn.acedata.cloud/70f22f51-9328-4070-b9aa-578db7d4c502.png",label:this.$t("midjourney.styleTag.yanjunCheng"),value:"Yanjun Cheng",advanced:!0},{image:"https://cdn.acedata.cloud/e1203ff8-cb64-409e-8ba6-06f89645a843.png",label:this.$t("midjourney.styleTag.yojiShinkawa"),value:"Yoji Shinkawa",advanced:!0},{image:"https://cdn.acedata.cloud/6b6d7746-e38b-44db-98d8-51d59ed7531f.png",label:this.$t("midjourney.styleTag.zhelongXu"),value:"Zhelong Xu",advanced:!0},{image:"https://cdn.acedata.cloud/13b9621b-ff7e-4377-9550-0ca82d0f1afb.png",label:this.$t("midjourney.styleTag.alenaAenami"),value:"Alena Aenami",advanced:!0},{image:"https://cdn.acedata.cloud/26d30765-3201-49e9-a4a9-c7c3b8c071ef.png",label:this.$t("midjourney.styleTag.anntonFadeevi"),value:"Annton Fadeevi",advanced:!0},{image:"https://cdn.acedata.cloud/9b4c2bc7-16a8-4807-ad0e-ee9bdc80f1a0.png",label:this.$t("midjourney.styleTag.charlieBowater"),value:"Charlie Bowater",advanced:!0},{image:"https://cdn.acedata.cloud/2f50d67e-3d7e-4e06-a198-5926ce7f357d.png",label:this.$t("midjourney.styleTag.coryLoftis"),value:"Cory Loftis",advanced:!0},{image:"https://cdn.acedata.cloud/47823270-16a6-49cc-a11d-99122a037c68.png",label:this.$t("midjourney.styleTag.fenghuaZhong"),value:"Fenghua Zhong",advanced:!0},{image:"https://cdn.acedata.cloud/1a66b5fd-cbf9-4e09-b817-6effed77b5c2.png",label:this.$t("midjourney.styleTag.gregRutkowski"),value:"Greg Rutkowski",advanced:!0},{image:"https://cdn.acedata.cloud/d05a459a-132b-45a8-b2f3-a978eeeb44af.png",label:this.$t("midjourney.styleTag.hongSoonsang"),value:"Hong SoonSang",advanced:!0},{image:"https://cdn.acedata.cloud/020dbf7f-f026-47bd-90f1-4049407409a1.png",label:this.$t("midjourney.styleTag.dennisStock"),value:"Dennis Stock",advanced:!0},{image:"https://cdn.acedata.cloud/9c1ccc1d-121e-4182-aea0-04eac840869d.png",label:this.$t("midjourney.styleTag.michalLisowski"),value:"Michal Lisowski",advanced:!0},{image:"https://cdn.acedata.cloud/3292404b-e654-4c06-bcd6-5e47a2adf329.png",label:this.$t("midjourney.styleTag.paulLehr"),value:"Paul Lehr",advanced:!0},{image:"https://cdn.acedata.cloud/079c6053-23ad-4dc9-8166-64c5fe2f1e1a.png",label:this.$t("midjourney.styleTag.rossTran"),value:"Ross Tran",advanced:!0},{image:"https://cdn.acedata.cloud/0f267ba1-c031-4008-9ead-630a4bec886a.png",label:this.$t("midjourney.styleTag.antonPieck"),value:"Anton Pieck",advanced:!0},{image:"https://cdn.acedata.cloud/574dd25f-2116-4718-aed6-7d9be3636e22.png",label:this.$t("midjourney.styleTag.carlBarks"),value:"Carl Barks",advanced:!0},{image:"https://cdn.acedata.cloud/38dcdfb5-0003-46f4-8c9d-5857c95f9e59.png",label:this.$t("midjourney.styleTag.alphonseMucha"),value:"Alphonse Mucha",advanced:!0},{image:"https://cdn.acedata.cloud/65f2af96-e875-41f8-9797-3d34dbdf0ea4.png",label:this.$t("midjourney.styleTag.andyWarhol"),value:"Andy Warhol",advanced:!0},{image:"https://cdn.acedata.cloud/801224a0-da77-4095-8799-d288d1ec3c3d.png",label:this.$t("midjourney.styleTag.banksy"),value:"Banksy",advanced:!0},{image:"https://cdn.acedata.cloud/925c6c86-9b69-45ce-a10d-a2c64d4e0db2.png",label:this.$t("midjourney.styleTag.franciscoDeGoya"),value:"Francisco De Goya",advanced:!0},{image:"https://cdn.acedata.cloud/fbb81b10-c579-4dcc-a76a-c099dc0b6c20.png",label:this.$t("midjourney.styleTag.caravaggio"),value:"Caravaggio",advanced:!0},{image:"https://cdn.acedata.cloud/116efedd-42ea-404e-959e-607a9766001a.png",label:this.$t("midjourney.styleTag.diegoRivera"),value:"Diego Rivera",advanced:!0},{image:"https://cdn.acedata.cloud/6f2c1d37-f8ae-4d72-8db1-d9fb04df7114.png",label:this.$t("midjourney.styleTag.davidHockney"),value:"David Hockney",advanced:!0},{image:"https://cdn.acedata.cloud/b74b6b97-f6d7-4a34-840c-a81c69b9d941.png",label:this.$t("midjourney.styleTag.marcChagall"),value:"Marc Chagall"},{image:"https://cdn.acedata.cloud/f18ac9a3-a986-4670-813b-6fb81060ed48.png",label:this.$t("midjourney.styleTag.edgarDegas"),value:"Edgar Degas",advanced:!0},{image:"https://cdn.acedata.cloud/275b32e5-9995-46cc-babc-43a0d1aa5d19.png",label:this.$t("midjourney.styleTag.eugeneDelacroix"),value:"Eugene Delacroix",advanced:!0},{image:"https://cdn.acedata.cloud/500edde5-973c-4ba4-aae1-1a3d53a9b27f.png",label:this.$t("midjourney.styleTag.francisBacon"),value:"Francis Bacon",advanced:!0},{image:"https://cdn.acedata.cloud/f7b5cc34-a796-4f45-823c-07122ec46ef6.png",label:this.$t("midjourney.styleTag.fridaKahlo"),value:"Frida Kahlo",advanced:!0},{image:"https://cdn.acedata.cloud/7e41ead3-f54f-4d5f-8353-b2770d75c41b.png",label:this.$t("midjourney.styleTag.garaldBrom"),value:"Garald Brom",advanced:!0},{image:"https://cdn.acedata.cloud/4a46247a-cd9b-48fd-b247-8268d9a891bf.png",label:this.$t("midjourney.styleTag.gustavKlimt"),value:"Gustav Klimt",advanced:!0},{image:"https://cdn.acedata.cloud/3793eae9-61e9-4f16-9c0c-a77c194c45bc.png",label:this.$t("midjourney.styleTag.henriMatisse"),value:"Henri Matisse",advanced:!0},{image:"https://cdn.acedata.cloud/dffa261d-755b-483d-88b7-058c09efd6af.png",label:this.$t("midjourney.styleTag.jackKirby"),value:"Jack Kirby",advanced:!0},{image:"https://cdn.acedata.cloud/4cda1423-455b-463f-981d-b2af8ae1dd95.png",label:this.$t("midjourney.styleTag.jacksonPollock"),value:"Jackson Pollock",advanced:!0},{image:"https://cdn.acedata.cloud/d318e4bc-d69f-4e7a-b6ae-49557e3cd569.png",label:this.$t("midjourney.styleTag.johannesVermeer"),value:"Johannes Vermeer",advanced:!0},{image:"https://cdn.acedata.cloud/4ee7f9d2-01c0-4043-90f3-0174878a2ce7.png",label:this.$t("midjourney.styleTag.jeanMichelBasquiat"),value:"Jean Michel Basquiat",advanced:!0},{image:"https://cdn.acedata.cloud/f60eb307-78b3-4f5e-bfd9-07603bc383c9.png",label:this.$t("midjourney.styleTag.marcelDuchamp"),value:"Marcel Duchamp",advanced:!0}]},material:{displayName:this.$t("midjourney.styleCategory.material"),items:[{image:"https://cdn.acedata.cloud/f2ce056d-6a89-4b40-b026-5a60cbb1efda.png",label:this.$t("midjourney.styleTag.aluminum"),value:"Aluminum"},{image:"https://cdn.acedata.cloud/069c6b1f-0666-4df6-bde6-a1729b33ade1.png",label:this.$t("midjourney.styleTag.brick"),value:"Brick"},{image:"https://cdn.acedata.cloud/39f2cbb9-be6a-4669-a7c3-b01dfbb2b563.png",label:this.$t("midjourney.styleTag.bronze"),value:"Bronze"},{image:"https://cdn.acedata.cloud/42b30429-2733-41a5-aa4c-e3e0cd50528a.png",label:this.$t("midjourney.styleTag.carbonFiber"),value:"Carbon Fiber"},{image:"https://cdn.acedata.cloud/90eeef27-6bdb-4f36-8e17-f1bb49881258.png",label:this.$t("midjourney.styleTag.cardboard"),value:"Cardboard"},{image:"https://cdn.acedata.cloud/470235fb-19a8-4ba8-ac9b-236abecf0985.png",label:this.$t("midjourney.styleTag.cellulose"),value:"Cellulose"},{image:"https://cdn.acedata.cloud/a8621e16-b046-4300-ab24-09602f734cb9.png",label:this.$t("midjourney.styleTag.ceramic"),value:"Ceramic"},{image:"https://cdn.acedata.cloud/af14acf6-92ff-42f8-ae14-ce4b63237bd5.png",label:this.$t("midjourney.styleTag.cotton"),value:"Cotton"},{image:"https://cdn.acedata.cloud/d93e6f18-3729-46cc-aa96-9662f2abae3d.png",label:this.$t("midjourney.styleTag.fabric"),value:"Fabric"},{image:"https://cdn.acedata.cloud/660533aa-dac7-4968-b27e-0f085b9a67a5.png",label:this.$t("midjourney.styleTag.fiberOptic"),value:"Fiber Optic"},{image:"https://cdn.acedata.cloud/94be6d51-5cb3-4362-8274-7d833a88bb79.png",label:this.$t("midjourney.styleTag.foil"),value:"Foil"},{image:"https://cdn.acedata.cloud/b89e102d-2fef-4619-8427-94c6bfbeb832.png",label:this.$t("midjourney.styleTag.yarn"),value:"Yarn",advanced:!0},{image:"https://cdn.acedata.cloud/b72ef152-11a7-4c51-b6b4-dc4308995f9e.png",label:this.$t("midjourney.styleTag.glass"),value:"Glass"},{image:"https://cdn.acedata.cloud/bca80e91-46ba-4793-b29c-1b5c47b201d7.png",label:this.$t("midjourney.styleTag.gold"),value:"Gold",advanced:!0},{image:"https://cdn.acedata.cloud/3d1e4da5-404b-4f89-8e06-988de47208bd.png",label:this.$t("midjourney.styleTag.gummies"),value:"Gummies",advanced:!0},{image:"https://cdn.acedata.cloud/8afba6b0-a8a5-49c9-bfc5-ebd7b0e12443.png",label:this.$t("midjourney.styleTag.latex"),value:"Latex"},{image:"https://cdn.acedata.cloud/d5c39f1c-1be0-4065-80af-e1cb4e627cf2.png",label:this.$t("midjourney.styleTag.leather"),value:"Leather"},{image:"https://cdn.acedata.cloud/6e41e8bd-cb0b-4504-8655-a3b1b32ac11c.png",label:this.$t("midjourney.styleTag.magma"),value:"Magma"},{image:"https://cdn.acedata.cloud/f816fffa-4a7f-4d60-afcb-e19b0c36d176.png",label:this.$t("midjourney.styleTag.metallic"),value:"Metallic"},{image:"https://cdn.acedata.cloud/74c9fe01-37e6-4d05-831a-5778eb34c521.png",label:this.$t("midjourney.styleTag.nickel"),value:"Nickel",advanced:!0},{image:"https://cdn.acedata.cloud/85186eac-1806-4739-9289-8d76aac359b3.png",label:this.$t("midjourney.styleTag.nylon"),value:"Nylon"},{image:"https://cdn.acedata.cloud/355d9507-62fa-4c69-986f-def2f2f930c5.png",label:this.$t("midjourney.styleTag.paper"),value:"Paper"},{image:"https://cdn.acedata.cloud/6c2626b2-191e-4b85-a97d-e561a2b5c79b.png",label:this.$t("midjourney.styleTag.plastic"),value:"Plastic",advanced:!0},{image:"https://cdn.acedata.cloud/ff0d301d-8181-463c-a276-9b4805321afd.png",label:this.$t("midjourney.styleTag.quartz"),value:"Quartz"},{image:"https://cdn.acedata.cloud/7b90754d-2fa5-490e-a73b-d2887525d2e6.png",label:this.$t("midjourney.styleTag.wrap"),value:"Wrap",advanced:!0},{image:"https://cdn.acedata.cloud/7411e62a-546e-4cd2-8446-73c4fb8f103b.png",label:this.$t("midjourney.styleTag.wooden"),value:"Wooden"},{image:"https://cdn.acedata.cloud/44e8830f-4be2-471d-a9d4-aaf4913e7451.png",label:this.$t("midjourney.styleTag.slime"),value:"Slime",advanced:!0},{image:"https://cdn.acedata.cloud/16b10e75-a7e7-4b87-804a-2bfc9c18096f.png",label:this.$t("midjourney.styleTag.engraving"),value:"Engraving"},{image:"https://cdn.acedata.cloud/b66ec7e2-fd82-4edd-a523-34b87872f544.png",label:this.$t("midjourney.styleTag.ivory"),value:"Ivory"},{image:"https://cdn.acedata.cloud/098b954d-1197-414e-b4bd-68e3928b9eb3.png",label:this.$t("midjourney.styleTag.basalt"),value:"Basalt",advanced:!0},{image:"https://cdn.acedata.cloud/b948dd7d-939b-48b5-b37c-09e0ebd6ede6.png",label:this.$t("midjourney.styleTag.pine"),value:"Pine",advanced:!0},{image:"https://cdn.acedata.cloud/4c56fc7d-94c8-4055-9d6e-3bc6662c92d7.png",label:this.$t("midjourney.styleTag.diamond"),value:"Diamond"},{image:"https://cdn.acedata.cloud/70de6b75-bb29-4b2a-ae8a-016db33c8184.png",label:this.$t("midjourney.styleTag.amethyst"),value:"Amethyst",advanced:!0},{image:"https://cdn.acedata.cloud/8d2b60e1-c98c-4de2-8a67-4b10c0d2482a.png",label:this.$t("midjourney.styleTag.ruby"),value:"Ruby",advanced:!0},{image:"https://cdn.acedata.cloud/c0f01b99-32a6-4c34-a2d8-448fab08f126.png",label:this.$t("midjourney.styleTag.highPolished"),value:"High polished",advanced:!0},{image:"https://cdn.acedata.cloud/5091142a-3959-40f3-9ea5-f41a29584735.png",label:this.$t("midjourney.styleTag.brushed"),value:"Brushed",advanced:!0},{image:"https://cdn.acedata.cloud/3f84ddc5-5afe-41d1-85cc-2ded7a44d859.png",label:this.$t("midjourney.styleTag.matte"),value:"Matte",advanced:!0},{image:"https://cdn.acedata.cloud/655f5114-b3dd-4b9a-a3cb-94a1a814fb11.png",label:this.$t("midjourney.styleTag.satin"),value:"Satin",advanced:!0},{image:"https://cdn.acedata.cloud/6ec4178e-86e6-4026-aa86-e14eb4e92097.png",label:this.$t("midjourney.styleTag.sandblasted"),value:"Sandblasted",advanced:!0},{image:"https://cdn.acedata.cloud/1c9a4277-5550-4cd4-852a-c785d8505a0f.png",label:this.$t("midjourney.styleTag.ebony"),value:"Ebony",advanced:!0}]},camera:{displayName:this.$t("midjourney.styleCategory.camera"),items:[{image:"https://cdn.acedata.cloud/9bcf851a-7b94-4554-864b-edcbe0f67017.png",label:this.$t("midjourney.styleTag.bokeh"),value:"Bokeh"},{image:"https://cdn.acedata.cloud/f4599568-5889-4da9-8852-8b5361c54412.png",label:this.$t("midjourney.styleTag.aerialView"),value:"Aerial view"},{image:"https://cdn.acedata.cloud/bea180e2-9078-42bd-9392-b0ee2b372430.png",label:this.$t("midjourney.styleTag.shotByDslr"),value:"Shot by DSLR",advanced:!0},{image:"https://cdn.acedata.cloud/42444cbd-5442-4093-8911-645272c08863.png",label:this.$t("midjourney.styleTag.360Panorama"),value:"360Panorama"},{image:"https://cdn.acedata.cloud/99875464-0be7-44da-adf5-958d2c73eb31.png",label:this.$t("midjourney.styleTag.panorama"),value:"Panorama"},{image:"https://cdn.acedata.cloud/e3c3a204-9210-44da-b6fc-5f9a1fea52e0.png",label:this.$t("midjourney.styleTag.telephotoLens"),value:"Telephoto Lens"},{image:"https://cdn.acedata.cloud/7bd1f91d-cd6d-48d1-9f07-68382a54a552.png",label:this.$t("midjourney.styleTag.macroShot"),value:"Macro shot"},{image:"https://cdn.acedata.cloud/09aca457-2d96-4f60-b5ec-9fedf7a3fcb9.png",label:this.$t("midjourney.styleTag.microscopy"),value:"Microscopy"},{image:"https://cdn.acedata.cloud/fb39b4ab-d728-456b-8905-b4c0302f4094.png",label:this.$t("midjourney.styleTag.magnification"),value:"Magnification"},{image:"https://cdn.acedata.cloud/b9956b79-70b1-44af-bca3-5eddd412615a.png",label:this.$t("midjourney.styleTag.closeUp"),value:"Close up"},{image:"https://cdn.acedata.cloud/2c6b2c92-f790-44e1-bc65-b3182aa484bd.png",label:this.$t("midjourney.styleTag.fullBody"),value:"Full body"},{image:"https://cdn.acedata.cloud/05c7f5a8-4a79-4a1c-a4a9-792862ad118c.png",label:this.$t("midjourney.styleTag.portrait"),value:"Portrait"},{image:"https://cdn.acedata.cloud/aeb48a08-f0b6-47db-8c5d-ae6f0f92b93d.png",label:this.$t("midjourney.styleTag.profile"),value:"Profile"},{image:"https://cdn.acedata.cloud/dd655235-8f80-43b2-823f-bdb44864bee1.png",label:this.$t("midjourney.styleTag.pinholeLens"),value:"Pinhole Lens",advanced:!0},{image:"https://cdn.acedata.cloud/7ad3f221-96f6-4014-953e-853c429d5d57.png",label:this.$t("midjourney.styleTag.wideView"),value:"Wide view"},{image:"https://cdn.acedata.cloud/698fbcc7-5ad1-40cb-a926-95189dc9e59b.png",label:this.$t("midjourney.styleTag.telescopeLens"),value:"Telescope Lens",advanced:!0},{image:"https://cdn.acedata.cloud/2e41309b-f006-483f-9843-e15f4ced6be7.png",label:this.$t("midjourney.styleTag.satelliteImagery"),value:"Satellite Imagery"},{image:"https://cdn.acedata.cloud/79ad137d-3015-4335-a4e3-2ed29f9b850b.png",label:this.$t("midjourney.styleTag.headshot"),value:"Headshot"},{image:"https://cdn.acedata.cloud/d06164a9-ba01-457f-b8cc-f0b38a87b4d5.png",label:this.$t("midjourney.styleTag.extremeCloseup"),value:"Extreme closeup",advanced:!0},{image:"https://cdn.acedata.cloud/b8e10ef3-b37c-45f0-b930-be729c8d17a1.png",label:this.$t("midjourney.styleTag.ultrawideShot"),value:"Ultrawide shot"},{image:"https://cdn.acedata.cloud/21eaa8a4-a8f1-448d-9f00-ff8fb0213046.png",label:this.$t("midjourney.styleTag.birdView"),value:"Bird view",advanced:!0},{image:"https://cdn.acedata.cloud/43fadf68-dad1-45d2-bc22-54b1b2792a00.png",label:this.$t("midjourney.styleTag.topView"),value:"Top view",advanced:!0},{image:"https://cdn.acedata.cloud/f8953e9e-6daf-4a70-a691-6f89e91f0b97.png",label:this.$t("midjourney.styleTag.frontView"),value:"Front view",advanced:!0},{image:"https://cdn.acedata.cloud/f2228145-dc8f-4e06-be21-5d18bf50f7cf.png",label:this.$t("midjourney.styleTag.sideView"),value:"Side view",advanced:!0},{image:"https://cdn.acedata.cloud/b218d1cc-60a7-4f62-a719-b852cd6ebf03.png",label:this.$t("midjourney.styleTag.backView"),value:"Back view",advanced:!0},{image:"https://cdn.acedata.cloud/186522ef-7b09-40d8-a712-43dde1266bbf.png",label:this.$t("midjourney.styleTag.faceShot"),value:"Face shot"},{image:"https://cdn.acedata.cloud/6a0c1136-2817-42bb-b1e3-c65a130e70cf.png",label:this.$t("midjourney.styleTag.chestShot"),value:"Chest shot"},{image:"https://cdn.acedata.cloud/8ac3bf91-2066-420d-8da1-5d6214ad2668.png",label:this.$t("midjourney.styleTag.waistShot"),value:"Waist shot"},{image:"https://cdn.acedata.cloud/2558b92f-cb3b-410e-85cd-791eb7d29c60.png",label:this.$t("midjourney.styleTag.extraLongShot"),value:"Extra long shot"},{image:"https://cdn.acedata.cloud/0f5c9250-55a4-4eed-8ddf-af18cb52e243.png",label:this.$t("midjourney.styleTag.lookUp"),value:"look up"},{image:"https://cdn.acedata.cloud/5e0df52d-e986-4851-b6ae-dc0be744713d.png",label:this.$t("midjourney.styleTag.isometricview"),value:"isometricview",advanced:!0},{image:"https://cdn.acedata.cloud/0d6491dd-1f64-423c-b63b-0f2e96a258e5.png",label:this.$t("midjourney.styleTag.highAngleView"),value:"High angle view",advanced:!0},{image:"https://cdn.acedata.cloud/5b68beee-c079-4a8e-84c5-cb3cc0f6c77b.png",label:this.$t("midjourney.styleTag.lowAngleView"),value:"Low angle view",advanced:!0}]},emotion:{displayName:this.$t("midjourney.styleCategory.emotion"),items:[{image:"https://cdn.acedata.cloud/033c9cd1-f5cc-448f-8d0a-e6559bbd57e3.png",label:this.$t("midjourney.styleTag.happy"),value:"Happy"},{image:"https://cdn.acedata.cloud/d07fbadd-78e4-4a98-bcf8-45b4805c9239.png",label:this.$t("midjourney.styleTag.excited"),value:"Excited"},{image:"https://cdn.acedata.cloud/aa94049d-e8fc-4e0e-97b1-afa174d99b88.png",label:this.$t("midjourney.styleTag.angry"),value:"Angry"},{image:"https://cdn.acedata.cloud/ede7f1d3-5ce2-4b8f-9cb9-c4bd47b80cae.png",label:this.$t("midjourney.styleTag.ped"),value:"ped"},{image:"https://cdn.acedata.cloud/88f9e6ba-2961-497e-ae00-9af36fa2c2d4.png",label:this.$t("midjourney.styleTag.disgusted"),value:"Disgusted"},{image:"https://cdn.acedata.cloud/fe91b67b-2430-424a-bf72-1a299e61f049.png",label:this.$t("midjourney.styleTag.supnned"),value:"supnned"},{image:"https://cdn.acedata.cloud/24dcfb80-d987-48b0-9595-82276b2a1f94.png",label:this.$t("midjourney.styleTag.hopeful"),value:"Hopeful"},{image:"https://cdn.acedata.cloud/f2628539-bdf5-471d-9ceb-f0731c46b593.png",label:this.$t("midjourney.styleTag.anxious"),value:"Anxious"},{image:"https://cdn.acedata.cloud/f280d69a-eb1b-4259-b56d-66510f38ec82.png",label:this.$t("midjourney.styleTag.elated"),value:"Elated"},{image:"https://cdn.acedata.cloud/94b78236-ba14-4aab-8985-3921b2146fc9.png",label:this.$t("midjourney.styleTag.fearful"),value:"Fearful"},{image:"https://cdn.acedata.cloud/68576d87-224f-463f-85c9-5fbeb386a035.png",label:this.$t("midjourney.styleTag.hateful"),value:"Hateful"},{image:"https://cdn.acedata.cloud/e0413400-096f-4072-8faf-5ef82f8cc265.png",label:this.$t("midjourney.styleTag.apoow"),value:"Apoow",advanced:!0},{image:"https://cdn.acedata.cloud/c0f4b0f4-1399-468f-873a-a04f4b7929f8.png",label:this.$t("midjourney.styleTag.dark"),value:"Dark",advanced:!0},{image:"https://cdn.acedata.cloud/297d5f3f-ebc9-4c9f-b656-07359b313871.png",label:this.$t("midjourney.styleTag.brutal"),value:"Brutal",advanced:!0}]},chinese:{displayName:this.$t("midjourney.styleCategory.chinese"),items:[{image:"https://cdn.acedata.cloud/b29020e5-532d-4b30-94b0-cf5405242fc6.png",label:this.$t("midjourney.styleTag.hanfu"),value:"Hanfu"},{image:"https://cdn.acedata.cloud/e00eb48c-8240-4468-ac15-1a9d3349b636.png",label:this.$t("midjourney.styleTag.cheongsam"),value:"Cheongsam"},{image:"https://cdn.acedata.cloud/87d89bc5-cb61-4780-8894-c1564bdebd66.png",label:this.$t("midjourney.styleTag.chineseCostume"),value:"Chinese costume"},{image:"https://cdn.acedata.cloud/811453d2-2715-44fe-8609-b0d184486b19.png",label:this.$t("midjourney.styleTag.chineseDress"),value:"Chinese dress"},{image:"https://cdn.acedata.cloud/2463a720-b803-4d0d-9cac-6a7d5b61001d.png",label:this.$t("midjourney.styleTag.wuxia"),value:"Wuxia"},{image:"https://cdn.acedata.cloud/2fbee5a1-8a5c-4bfb-a52c-895ff3f53c3c.png",label:this.$t("midjourney.styleTag.chinesePhoenix"),value:"Chinese phoenix"},{image:"https://cdn.acedata.cloud/53fd3a51-7739-493f-aff0-daaea74b942c.png",label:this.$t("midjourney.styleTag.kungfu"),value:"Kungfu"},{image:"https://cdn.acedata.cloud/bc4c6bb0-82a5-4bbb-b4e3-96a14c52aed3.png",label:this.$t("midjourney.styleTag.kunquOpera"),value:"Kunqu opera",advanced:!0},{image:"https://cdn.acedata.cloud/291ca1c1-069e-4067-8b9d-1c5c11c2ff14.png",label:this.$t("midjourney.styleTag.cloisonne"),value:"Cloisonne",advanced:!0},{image:"https://cdn.acedata.cloud/17e87115-06ec-4f7b-9b8e-daf782cd4d59.png",label:this.$t("midjourney.styleTag.porcelain"),value:"Porcelain"},{image:"https://cdn.acedata.cloud/c9cc4712-24b9-4ff8-926b-02bd626df9a9.png",label:this.$t("midjourney.styleTag.embroidered"),value:"Embroidered"},{image:"https://cdn.acedata.cloud/7da286ae-d1e6-4a21-8ba5-10ff7bf9d379.png",label:this.$t("midjourney.styleTag.jade"),value:"Jade"},{image:"https://cdn.acedata.cloud/11a2d9f8-3c29-4b0b-ae10-525928f71bce.png",label:this.$t("midjourney.styleTag.chinesePavilion"),value:"Chinese pavilion",advanced:!0},{image:"https://cdn.acedata.cloud/639b5e99-8210-4525-b63f-8b89019d07f3.png",label:this.$t("midjourney.styleTag.plumFlower"),value:"Plum flower"},{image:"https://cdn.acedata.cloud/cc87764c-2754-4cb7-8bc3-1070b31ec62b.png",label:this.$t("midjourney.styleTag.forbiddenCity"),value:"Forbidden city",advanced:!0},{image:"https://cdn.acedata.cloud/26d2f2aa-ca26-4c0e-a8c7-86a81aafc475.png",label:this.$t("midjourney.styleTag.peony"),value:"Peony",advanced:!0}]},special:{displayName:this.$t("midjourney.styleCategory.special"),items:[{image:"https://cdn.acedata.cloud/0ca0fd15-cc8d-420e-acf5-6c489e03c7ff.png",label:this.$t("midjourney.styleTag.unrealEngine"),value:"Unreal engine"},{image:"https://cdn.acedata.cloud/ead8ba11-6634-409e-8fea-7b31ca3974bc.png",label:this.$t("midjourney.styleTag.octaneRender"),value:"Octane render"},{image:"https://cdn.acedata.cloud/209f1bd9-5d44-4699-97ad-fdde73304efb.png",label:this.$t("midjourney.styleTag.maxonCinema4D"),value:"Maxon cinema 4D"},{image:"https://cdn.acedata.cloud/93c31b69-7af4-4d1f-99d6-114a34133613.png",label:this.$t("midjourney.styleTag.quixelMegascansRender"),value:"Quixel megascans render"},{image:"https://cdn.acedata.cloud/9883f161-5069-414b-9d23-bd63806c5205.png",label:this.$t("midjourney.styleTag.coronaRender"),value:"Corona render"},{image:"https://cdn.acedata.cloud/9c28e4af-28b2-4b97-abd4-e4f42d014f3a.png",label:this.$t("midjourney.styleTag.vRay"),value:"V-ray"},{image:"https://cdn.acedata.cloud/01d71ceb-7d17-4318-9914-a6a5fe0abc11.png",label:this.$t("midjourney.styleTag.architecturalVisualisation"),value:"Architectural visualisation"},{image:"https://cdn.acedata.cloud/e7f2cd21-2efc-4e18-b38d-3c2cbd95c5ec.png",label:this.$t("midjourney.styleTag.dramaticContrast"),value:"Dramatic contrast"},{image:"https://cdn.acedata.cloud/8f113377-ba6e-4fb0-bd56-df8635ab6345.png",label:this.$t("midjourney.styleTag.goldAndBlackTone"),value:"Gold and black tone"},{image:"https://cdn.acedata.cloud/6da8b72d-5a67-4c06-b915-8c0b5314d9c8.png",label:this.$t("midjourney.styleTag.whiteAndPinkTone"),value:"White and pink tone"},{image:"https://cdn.acedata.cloud/09abd535-8ab6-451f-8bce-29859429244b.png",label:this.$t("midjourney.styleTag.redAndBlackTone"),value:"Red and black tone"},{image:"https://cdn.acedata.cloud/81115846-7676-4edb-b7cf-df816c90de7f.png",label:this.$t("midjourney.styleTag.neonShades"),value:"Neon shades"},{image:"https://cdn.acedata.cloud/dfcc7a8a-e145-4824-b12b-bd29292daa5f.png",label:this.$t("midjourney.styleTag.richColor"),value:"Rich color"},{image:"https://cdn.acedata.cloud/38b05148-73c6-4db3-bddd-b972f27f4671.png",label:this.$t("midjourney.styleTag.monotone"),value:"Monotone"},{image:"https://cdn.acedata.cloud/6f6704da-1854-43d7-811f-3145fea96909.png",label:this.$t("midjourney.styleTag.theLowPurityTone"),value:"The low-purity tone"},{image:"https://cdn.acedata.cloud/3724b5ef-e7dd-4234-b2a2-f71c6b69b4ac.png",label:this.$t("midjourney.styleTag.theHighPurityTone"),value:"The high-purity tone"}]}}}},computed:{value:{get(){return this.$store.state.midjourney.config.elements||[]},set(e){this.$store.commit("midjourney/setConfig",{...this.$store.state.midjourney.config,elements:e})}}},methods:{onToggle(e){this.value.includes(e)?this.value=this.value.filter(a=>a!==e):this.value.push(e)}}}),xt={class:"flex justify-between"},Kt={class:"flex justify-start items-center"},Xt={class:"text-sm font-bold"},Jt={class:"flex justify-end items-center"},Qt=["onClick"],Yt={class:"name"};function Zt(e,a,i,p,h,f){const u=d("info-icon"),r=d("el-button"),n=d("el-tag"),g=d("check"),v=d("el-icon"),_=d("el-image"),S=d("el-tab-pane"),$=d("el-tabs"),A=d("el-dialog");return o(),m("div",null,[l("div",xt,[l("div",Kt,[l("span",Xt,s(e.$t("midjourney.field.elements")),1),t(u,{content:e.$t("midjourney.description.elements")},null,8,["content"])]),l("div",Jt,[t(r,{round:"",type:"primary",size:"small",onClick:a[0]||(a[0]=y=>e.choosing=!0)},{default:b(()=>[w(s(e.$t("midjourney.button.select")),1)]),_:1})])]),l("div",null,[(o(!0),m(P,null,U(e.value,(y,V)=>(o(),R(n,{key:V,closable:"",effect:"dark",round:"",class:"mr-1 mb-1",onClose:E=>e.onToggle(y)},{default:b(()=>[w(s(y.label),1)]),_:2},1032,["onClose"]))),128))]),t(A,{modelValue:e.choosing,"onUpdate:modelValue":a[2]||(a[2]=y=>e.choosing=y),width:"70%"},{default:b(()=>[t($,{modelValue:e.tab,"onUpdate:modelValue":a[1]||(a[1]=y=>e.tab=y)},{default:b(()=>[(o(!0),m(P,null,U(e.elements,(y,V)=>(o(),R(S,{key:V,label:y.displayName,name:V,class:"pane"},{default:b(()=>[(o(!0),m(P,null,U(y.items,(E,N)=>(o(),m("div",{key:N,class:B({hidden:E==null?void 0:E.advanced,item:!0,active:e.value.includes(E)}),onClick:D=>e.onToggle(E)},[t(v,{class:"icon"},{default:b(()=>[t(g)]),_:1}),t(_,{src:E.image,fit:"fill",class:"preview"},null,8,["src"]),l("span",Yt,s(E.label),1)],10,Qt))),128))]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])])}var ed=j(Ht,[["render",Zt],["__scopeId","data-v-28e26688"],["__file","/home/runner/work/Nexior/Nexior/src/components/midjourney/config/ElementsSelector.vue"]]);const ad="fast",td=T({name:"ModeSelector",components:{ElButton:W,ElDropdown:ua,ArrowDown:ra,ElIcon:Ke,FontAwesomeIcon:ae,ElDropdownItem:ma},data(){return{options:[{label:this.$t("midjourney.button.fast"),value:"fast",icon:"fa-solid fa-wind",color:"#2dc49c"},{label:this.$t("midjourney.button.relax"),value:"relax",icon:"fa-solid fa-mug-saucer",color:"#ce65e6"},{label:this.$t("midjourney.button.turbo"),value:"turbo",icon:"fa-solid fa-bolt",color:"#ff9900"}]}},computed:{activeOption(){return this.options.find(e=>e.value===this.value)},value:{get(){return this.$store.state.midjourney.config.mode},set(e){this.$store.commit("midjourney/setConfig",{...this.$store.state.midjourney.config,mode:e})}}},mounted(){this.value||(this.value=ad)},methods:{onCommand(e){console.log("command",e),this.value=e}}}),dd={class:"ml-2"},ld={class:"ml-1 text-sm"};function nd(e,a,i,p,h,f){const u=d("font-awesome-icon"),r=d("arrow-down"),n=d("el-icon"),g=d("el-button"),v=d("el-dropdown-item"),_=d("el-dropdown-menu"),S=d("el-dropdown");return o(),R(S,{trigger:"click",onCommand:e.onCommand},{dropdown:b(()=>[t(_,null,{default:b(()=>[(o(!0),m(P,null,U(e.options,($,A)=>(o(),R(v,{key:A,class:"flex items-center justify-between",command:$.value},{default:b(()=>[$.icon?(o(),R(u,{key:0,icon:$.icon,style:ne({color:$.color})},null,8,["icon","style"])):k("v-if",!0),l("span",ld,s($.label),1)]),_:2},1032,["command"]))),128))]),_:1})]),default:b(()=>[t(g,{round:""},{default:b(()=>{var $,A,y;return[($=e.activeOption)!=null&&$.icon?(o(),R(u,{key:0,icon:e.activeOption.icon,style:ne({color:(A=e.activeOption)==null?void 0:A.color})},null,8,["icon","style"])):k("v-if",!0),l("span",dd,s((y=e.activeOption)==null?void 0:y.label),1),t(n,{class:"el-icon--right"},{default:b(()=>[t(r)]),_:1})]}),_:1})]),_:1},8,["onCommand"])}var od=j(td,[["render",nd],["__scopeId","data-v-58ba8bfa"],["__file","/home/runner/work/Nexior/Nexior/src/components/midjourney/config/ModeSelector2.vue"]]);const cd="",sd=T({name:"PromptInput",components:{ElInput:ga,InfoIcon:M},data(){return{}},computed:{prompt:{get(){var e;return(e=this.$store.state.midjourney)==null?void 0:e.config.prompt},set(e){var a;console.debug("set prompt",e),this.$store.commit("midjourney/setConfig",{...(a=this.$store.state.midjourney)==null?void 0:a.config,prompt:e})}}},mounted(){this.value||(this.value=cd)}}),id={class:"field"},ud={class:"box"},rd={class:"text-sm font-bold"};function md(e,a,i,p,h,f){const u=d("info-icon"),r=d("el-input");return o(),m("div",id,[l("div",ud,[l("span",rd,s(e.$t("midjourney.name.prompt")),1),t(u,{content:e.$t("midjourney.description.prompt"),class:"info"},null,8,["content"])]),t(r,{modelValue:e.prompt,"onUpdate:modelValue":a[0]||(a[0]=n=>e.prompt=n),rows:3,resize:"none",type:"textarea",class:"prompt",placeholder:e.$t("midjourney.placeholder.prompt"),maxlength:200,"show-word-limit":""},null,8,["modelValue","placeholder"])])}var gd=j(sd,[["render",md],["__scopeId","data-v-5adc9470"],["__file","/home/runner/work/Nexior/Nexior/src/components/midjourney/config/PromptInput.vue"]]);const pd=T({name:"ReferenceImage",components:{ElUpload:pa,ElButton:W,InfoIcon:M,FontAwesomeIcon:ae,ImagePreview:va},emits:["change"],data(){return{fileList:[],uploadUrl:Je()+"/api/v1/files/"}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>{var a;return(a=e==null?void 0:e.response)==null?void 0:a.file_url})}},watch:{urls:{handler(e){console.debug("URLs changed:",e),this.$store.commit("midjourney/setConfig",{...this.$store.state.midjourney.config,references:e})}}},methods:{onExceed(){O.warning(this.$t("midjourney.message.uploadReferencesExceed"))},onError(){O.error(this.$t("midjourney.message.uploadReferencesError"))}}}),bd={class:"relative"},hd={class:"flex justify-between"},fd={class:"flex justify-start items-center"},yd={class:"text-sm font-bold"};function vd(e,a,i,p,h,f){const u=d("info-icon"),r=d("image-preview"),n=d("font-awesome-icon"),g=d("el-button"),v=d("el-upload");return o(),m("div",bd,[l("div",hd,[l("div",fd,[l("span",yd,s(e.$t("midjourney.name.referenceImage")),1),t(u,{content:e.$t("midjourney.description.uploadReferences")},null,8,["content"])])]),t(v,{"file-list":e.fileList,"onUpdate:fileList":a[0]||(a[0]=_=>e.fileList=_),name:"file",limit:5,class:"upload-wrapper",accept:".png,.jpg,.jpeg,.gif,.bmp,.webp",multiple:!0,"list-type":"picture",action:e.uploadUrl,"on-exceed":e.onExceed,"on-error":e.onError,headers:e.headers},{file:b(({file:_})=>{var S;return[t(r,{url:_.url||((S=_.response)==null?void 0:S.file_url),name:_.name,percentage:_.percentage,onRemove:$=>e.fileList.splice(e.fileList.indexOf(_),1)},null,8,["url","name","percentage","onRemove"])]}),default:b(()=>[t(g,{round:"",type:"primary",size:"small",class:"btn btn-upload"},{default:b(()=>[t(n,{icon:"fa-solid fa-upload",class:"icon mr-1"}),w(" "+s(e.$t("midjourney.button.uploadReferences")),1)]),_:1})]),_:1},8,["file-list","action","on-exceed","on-error","headers"])])}var _d=j(pd,[["render",vd],["__scopeId","data-v-7cc5e216"],["__file","/home/runner/work/Nexior/Nexior/src/components/midjourney/config/ReferenceImage.vue"]]);const $d=T({name:"ConfigPanel",components:{ElButton:W,PromptInput:gd,ModeSelector:od,ModelSelector:ht,ElementsSelector:ed,StyleSelector:Wt,QualitySelector:$t,RatioSelector:Pa,VersionSelector:Wa,StylizeSelector:Za,AdvancedSelector:Ma,ChaosSelector:st,WeirdSelector:Dt,ImageWeightSelector:At,ReferenceImage:_d},emits:["generate"],computed:{config(){return this.$store.state.midjourney.config}}}),jd={class:"panel flex flex-col"},Td={class:"flex-1 overflow-y-scroll p-4"},kd={class:"h-12 px-4"},wd={class:"flex gap-1"};function Sd(e,a,i,p,h,f){const u=d("model-selector"),r=d("prompt-input"),n=d("ratio-selector"),g=d("quality-selector"),v=d("version-selector"),_=d("reference-image"),S=d("elements-selector"),$=d("advanced-selector"),A=d("stylize-selector"),y=d("weird-selector"),V=d("chaos-selector"),E=d("image-weight-selector"),N=d("style-selector"),D=d("mode-selector"),G=d("el-button");return o(),m("div",jd,[l("div",Td,[t(u,{class:"mb-2"}),t(r,{class:"mb-2"}),t(n,{class:"mb-4"}),t(g,{class:"mb-4"}),t(v,{class:"mb-4"}),t(_,{class:"mb-2"}),t(S,{class:"mb-2"}),t($,{class:"mb-2"}),q(t(A,{class:"mb-2"},null,512),[[z,e.config.advanced]]),q(t(y,{class:"mb-2"},null,512),[[z,e.config.advanced]]),q(t(V,{class:"mb-2"},null,512),[[z,e.config.advanced]]),q(t(E,{class:"mb-2"},null,512),[[z,e.config.advanced]]),q(t(N,{class:"mb-2"},null,512),[[z,e.config.advanced]])]),l("div",kd,[l("div",wd,[t(D),t(G,{type:"primary",class:"btn w-full",round:"",onClick:a[0]||(a[0]=F=>e.$emit("generate"))},{default:b(()=>[w(s(e.$t("midjourney.button.generate")),1)]),_:1})])])])}var Ed=j($d,[["render",Sd],["__scopeId","data-v-b7ba558a"],["__file","/home/runner/work/Nexior/Nexior/src/components/midjourney/ConfigPanel.vue"]]);const Cd=T({name:"TaskPreview",components:{ElImage:ce,ElButton:W,FontAwesomeIcon:ae,ElTooltip:ba,ElAlert:ha,CopyToClipboard:_a},props:{modelValue:{type:Object,required:!0},full:{type:Boolean,default:!1}},emits:["custom"],data(){return{midjourneyImagineState:Xe,actionMapping:{[c.GENERATE]:"Generate",[c.UPSCALE1]:"U1",[c.UPSCALE2]:"U2",[c.UPSCALE3]:"U3",[c.UPSCALE4]:"U4",[c.VARIATION1]:"V1",[c.VARIATION2]:"V2",[c.VARIATION3]:"V3",[c.VARIATION4]:"V4",[c.VARIATION_STRONG]:"Vary (Strong)",[c.VARIATION_SUBTLE]:"Vary (Subtle)",[c.UPSCALE_CREATIVE]:"Upscale (Creative)",[c.UPSCALE_SUBTLE]:"Upscale (Subtle)",[c.ZOOM_OUT_2X]:"Zoom Out 2x",[c.ZOOM_OUT_1_5X]:"Zoom Out 1.5x",[c.UPSCALE_2X]:"Upscale 2x",[c.UPSCALE_4X]:"Upscale 4x",[c.REDO_UPSCALE_2X]:"Redo Upscale 2x",[c.REDO_UPSCALE_4X]:"Redo Upscale 4x",[c.REDO_UPSCALE_SUBTLE]:"Redo Upscale (Subtle)",[c.REDO_UPSCALE_CREATIVE]:"Redo Upscale (Creative)",[c.SQUARE]:"Make Square",[c.PAN_LEFT]:"\u2B05\uFE0F",[c.PAN_UP]:"\u2B06\uFE0F",[c.PAN_DOWN]:"\u2B07\uFE0F",[c.PAN_RIGHT]:"\u27A1\uFE0F",[c.REROLL]:"\u{1F504}"},descriptionMapping:{[c.GENERATE]:this.$t("midjourney.action.generate"),[c.UPSCALE1]:this.$t("midjourney.action.upscale1"),[c.UPSCALE2]:this.$t("midjourney.action.upscale2"),[c.UPSCALE3]:this.$t("midjourney.action.upscale3"),[c.UPSCALE4]:this.$t("midjourney.action.upscale4"),[c.VARIATION1]:this.$t("midjourney.action.variation1"),[c.VARIATION2]:this.$t("midjourney.action.variation2"),[c.VARIATION3]:this.$t("midjourney.action.variation3"),[c.VARIATION4]:this.$t("midjourney.action.variation4"),[c.VARIATION_STRONG]:this.$t("midjourney.action.variation_strong"),[c.VARIATION_SUBTLE]:this.$t("midjourney.action.variation_subtle"),[c.ZOOM_OUT_2X]:this.$t("midjourney.action.zoom_out_2x"),[c.ZOOM_OUT_1_5X]:this.$t("midjourney.action.zoom_out_1_5x"),[c.UPSCALE_2X]:this.$t("midjourney.action.upscale_2x"),[c.UPSCALE_4X]:this.$t("midjourney.action.upscale_4x"),[c.UPSCALE_SUBTLE]:this.$t("midjourney.action.upscale_subtle"),[c.UPSCALE_CREATIVE]:this.$t("midjourney.action.upscale_creative"),[c.REDO_UPSCALE_2X]:this.$t("midjourney.action.redo_upscale_2x"),[c.REDO_UPSCALE_4X]:this.$t("midjourney.action.redo_upscale_4x"),[c.REDO_UPSCALE_SUBTLE]:this.$t("midjourney.action.redo_upscale_subtle"),[c.REDO_UPSCALE_CREATIVE]:this.$t("midjourney.action.redo_upscale_creative"),[c.SQUARE]:this.$t("midjourney.action.square"),[c.PAN_LEFT]:this.$t("midjourney.action.pan_left"),[c.PAN_UP]:this.$t("midjourney.action.pan_up"),[c.PAN_DOWN]:this.$t("midjourney.action.pan_down"),[c.PAN_RIGHT]:this.$t("midjourney.action.pan_right"),[c.REROLL]:this.$t("midjourney.action.reroll")}}},computed:{application(){return this.$store.state.midjourney.application}},methods:{onReload(e){const a=e.target,i=new URL(a.src),p=i.searchParams.get("retry");if(!p)i.searchParams.set("retry","1");else if(parseInt(p)<2)i.searchParams.set("retry",(parseInt(p)+1).toString());else return;a.src=i.toString()},onCustom(e){var a,i,p;((a=this.modelValue)==null?void 0:a.type)==="imagine"&&this.$emit("custom",{action:e,image_id:(p=(i=this.modelValue)==null?void 0:i.response)==null?void 0:p.image_id})},onOpenUrl(e){window.open(e,"_blank")},onDownload(e){const a=document.createElement("a");a.href=e,a.download=e.split("/").pop(),a.click()}}}),Ad={key:0,class:"item"},Ld={class:"left"},Vd={class:"preview"},Rd={class:"bot"},Pd={class:"datetime"},Ud={class:"info"},Nd={key:0,class:"prompt mt-2"},Id={key:0},Dd={key:1},Od={key:1,class:"prompt mt-2"},Md={key:0},Gd={class:"description"},Bd={class:"description"},Fd={class:"description"},qd={class:"image-wrapper"},zd=["src","preview-src-list"],Wd={class:"description"},Hd={class:"description"},xd={class:"description"},Kd={key:2},Xd={class:"description"};function Jd(e,a,i,p,h,f){var S,$,A,y,V,E,N,D,G,F,H,x,ee,se,ie,ue,re,me,ge,pe,be,he,fe,ye,ve,_e,$e,je,Te,ke,we,Se,Ee,Ce,Ae,Le,Ve,Re,Pe,Ue,Ne;const u=d("el-image"),r=d("font-awesome-icon"),n=d("copy-to-clipboard"),g=d("el-alert"),v=d("el-button"),_=d("el-tooltip");return((S=e.modelValue)==null?void 0:S.type)==="imagine"?(o(),m("div",Ad,[l("div",Ld,[t(u,{src:"https://cdn.acedata.cloud/wto43b.png",class:"avatar"})]),l("div",Vd,[l("div",Rd,[w(s(e.$t("midjourney.name.midjourneyBot"))+" ",1),l("span",Pd,s(e.$dayjs.format(""+new Date(parseFloat((($=e.modelValue)==null?void 0:$.created_at)||"")*1e3))),1)]),l("div",Ud,[(y=(A=e.modelValue)==null?void 0:A.request)!=null&&y.prompt?(o(),m("p",Nd,[w(s((E=(V=e.modelValue)==null?void 0:V.request)==null?void 0:E.prompt)+" ",1),(N=e.modelValue)!=null&&N.response?k("v-if",!0):(o(),m("span",Id," - ("+s(e.$t("midjourney.status.pending"))+") ",1)),((G=(D=e.modelValue)==null?void 0:D.response)==null?void 0:G.progress)!==void 0&&((H=(F=e.modelValue)==null?void 0:F.response)==null?void 0:H.progress)!==100?(o(),m("span",Dd," - ("+s((ee=(x=e.modelValue)==null?void 0:x.response)==null?void 0:ee.progress)+"%) ",1)):k("v-if",!0),l("span",null,"("+s((ie=(se=e.modelValue)==null?void 0:se.request)==null?void 0:ie.mode)+")",1)])):k("v-if",!0),(re=(ue=e.modelValue)==null?void 0:ue.request)!=null&&re.image_id?(o(),m("p",Od,[w(s((ge=(me=e.modelValue)==null?void 0:me.request)==null?void 0:ge.image_id)+" - "+s((be=(pe=e.modelValue)==null?void 0:pe.request)==null?void 0:be.action)+" ",1),(he=e.modelValue)!=null&&he.response?k("v-if",!0):(o(),m("span",Md," - ("+s(e.$t("midjourney.status.pending"))+") ",1)),l("span",null,"("+s((ye=(fe=e.modelValue)==null?void 0:fe.request)==null?void 0:ye.mode)+")",1)])):k("v-if",!0)]),k(" response error "),((_e=(ve=e.modelValue)==null?void 0:ve.response)==null?void 0:_e.success)===!1?(o(),m("div",{key:0,class:B({content:!0,full:e.full,failed:!0})},[t(g,{closable:!1,class:"failure"},{default:b(()=>{var C,L,I,K,X,J,Q,Y,Z,Ie,De,Oe;return[l("p",Gd,[t(r,{icon:"fa-solid fa-magic",class:"mr-1"}),w(" "+s(e.$t("midjourney.field.taskId"))+": "+s((C=e.modelValue)==null?void 0:C.id)+" ",1),t(n,{content:(L=e.modelValue)==null?void 0:L.id,class:"btn-copy"},null,8,["content"])]),l("p",Bd,[t(r,{icon:"fa-solid fa-circle-info",class:"mr-1"}),w(" "+s(e.$t("midjourney.field.failureReason"))+": "+s((X=(K=(I=e.modelValue)==null?void 0:I.response)==null?void 0:K.error)==null?void 0:X.message)+" ",1),t(n,{content:(Y=(Q=(J=e.modelValue)==null?void 0:J.response)==null?void 0:Q.error)==null?void 0:Y.message,class:"btn-copy"},null,8,["content"])]),l("p",Fd,[t(r,{icon:"fa-solid fa-hashtag",class:"mr-1"}),w(" "+s(e.$t("midjourney.field.traceId"))+": "+s((Ie=(Z=e.modelValue)==null?void 0:Z.response)==null?void 0:Ie.trace_id)+" ",1),t(n,{content:(Oe=(De=e.modelValue)==null?void 0:De.response)==null?void 0:Oe.trace_id,class:"btn-copy"},null,8,["content"])])]}),_:1})],2)):k("v-if",!0),k(" response success "),((je=($e=e.modelValue)==null?void 0:$e.response)==null?void 0:je.success)===!0?(o(),m("div",{key:1,class:B({content:!0,full:e.full})},[l("div",qd,[(ke=(Te=e.modelValue)==null?void 0:Te.response)!=null&&ke.image_url?(o(),m("img",{key:0,src:(Se=(we=e.modelValue)==null?void 0:we.response)==null?void 0:Se.image_url,"preview-src-list":[(Ce=(Ee=e.modelValue)==null?void 0:Ee.response)==null?void 0:Ce.raw_image_url],class:"image",onError:a[0]||(a[0]=C=>e.onReload(C))},null,40,zd)):k("v-if",!0),(Le=(Ae=e.modelValue)==null?void 0:Ae.response)!=null&&Le.image_url?(o(),R(v,{key:1,type:"info",round:"",class:"btn-raw",onClick:a[1]||(a[1]=C=>{var L,I;return e.onOpenUrl((I=(L=e.modelValue)==null?void 0:L.response)==null?void 0:I.raw_image_url)})},{default:b(()=>[w(s(e.$t("common.button.seeRawImage")),1)]),_:1})):k("v-if",!0)]),(Re=(Ve=e.modelValue)==null?void 0:Ve.response)!=null&&Re.actions?(o(),m("div",{key:0,class:B({operations:!0,full:e.full,"mt-2":!0})},[(o(!0),m(P,null,U((Ue=(Pe=e.modelValue)==null?void 0:Pe.response)==null?void 0:Ue.actions,(C,L)=>(o(),R(_,{key:L,class:"box-item",effect:"dark",content:e.descriptionMapping[C],placement:"top-start"},{default:b(()=>[q(t(v,{type:"info",size:"small",class:"btn-action",onClick:I=>e.onCustom(C)},{default:b(()=>[w(s(e.actionMapping[C]),1)]),_:2},1032,["onClick"]),[[z,e.actionMapping[C]]])]),_:2},1032,["content"]))),128))],2)):k("v-if",!0),t(g,{closable:!1,class:"mt-2 success"},{default:b(()=>{var C,L,I,K,X,J,Q,Y,Z;return[l("p",Wd,[t(r,{icon:"fa-solid fa-magic",class:"mr-1"}),w(" "+s(e.$t("midjourney.field.taskId"))+": "+s((C=e.modelValue)==null?void 0:C.id)+" ",1),t(n,{content:(L=e.modelValue)==null?void 0:L.id,class:"btn-copy"},null,8,["content"])]),l("p",Hd,[t(r,{icon:"fa-solid fa-hashtag",class:"mr-1"}),w(" "+s(e.$t("midjourney.field.traceId"))+": "+s((I=e.modelValue)==null?void 0:I.trace_id)+" ",1),t(n,{content:(X=(K=e.modelValue)==null?void 0:K.response)==null?void 0:X.trace_id,class:"btn-copy"},null,8,["content"])]),l("p",xd,[t(r,{icon:"fa-solid fa-image",class:"mr-1"}),w(" "+s(e.$t("midjourney.field.imageId"))+": "+s((Q=(J=e.modelValue)==null?void 0:J.response)==null?void 0:Q.image_id)+" ",1),t(n,{content:(Z=(Y=e.modelValue)==null?void 0:Y.response)==null?void 0:Z.image_id,class:"btn-copy"},null,8,["content"])])]}),_:1})],2)):k("v-if",!0),k(" response pending "),(Ne=e.modelValue)!=null&&Ne.response?k("v-if",!0):(o(),m("div",Kd,[t(g,{closable:!1,class:"mt-2 info"},{default:b(()=>{var C,L;return[l("p",Xd,[t(r,{icon:"fa-solid fa-magic",class:"mr-1"}),w(" "+s(e.$t("midjourney.field.taskId"))+": "+s((C=e.modelValue)==null?void 0:C.id)+" ",1),t(n,{content:(L=e.modelValue)==null?void 0:L.id,class:"btn-copy"},null,8,["content"])])]}),_:1})]))])])):k("v-if",!0)}var Qd=j(Cd,[["render",Jd],["__scopeId","data-v-3ac1fe50"],["__file","/home/runner/work/Nexior/Nexior/src/components/midjourney/tasks/TaskItem.vue"]]);const Yd=T({name:"TaskList",components:{TaskItem:Qd,ElSkeleton:fa,ElSkeletonItem:ya},emits:["update:modelValue","custom","refresh","reach-top"],data(){return{job:0}},computed:{tasks(){var e;return(e=this.$store.state.midjourney.tasks)==null?void 0:e.items},application(){return this.$store.state.midjourney.application}},methods:{onHandleScroll(){const e=this.$refs.panel;console.log("onHandleScroll ",e.scrollTop),e.scrollTop===0&&(console.log("reach-top reach-top"),this.$emit("reach-top"))}}}),Zd={key:0,class:"tasks"},el={class:"left"},al={class:"main"},tl={key:1},dl={class:"p-5 description"};function ll(e,a,i,p,h,f){var g;const u=d("el-skeleton-item"),r=d("el-skeleton"),n=d("task-item");return e.tasks===void 0?(o(),m("div",Zd,[(o(),m(P,null,U(3,v=>l("div",{key:v,class:"task placeholder"},[l("div",el,[t(r,{animated:""},{template:b(()=>[t(u,{variant:"image",class:"avatar"})]),_:1})]),l("div",al,[t(r,{animated:""},{template:b(()=>[t(u,{variant:"p",class:"title"}),t(u,{variant:"image",class:"icon"})]),_:1})])])),64))])):e.tasks&&((g=e.tasks)==null?void 0:g.length)===0?(o(),m("div",tl,[l("p",dl,s(e.$t("midjourney.message.noTasks")),1)])):e.tasks.length>0?(o(),m("div",{key:2,ref:"panel",class:"tasks",onScroll:a[1]||(a[1]=(...v)=>e.onHandleScroll&&e.onHandleScroll(...v))},[(o(!0),m(P,null,U(e.tasks,(v,_)=>(o(),m("div",{key:_,class:"task"},[t(n,{full:!1,"model-value":v,onCustom:a[0]||(a[0]=S=>e.$emit("custom",S))},null,8,["model-value"])]))),128))],544)):k("v-if",!0)}var nl=j(Yd,[["render",ll],["__scopeId","data-v-44c7765b"],["__file","/home/runner/work/Nexior/Nexior/src/components/midjourney/tasks/TaskList.vue"]]);const Ge="https://webhook.acedata.cloud/midjourney",ol=T({name:"MidjourneyIndex",components:{ConfigPanel:Ed,TaskList:nl,Layout:Sa},data(){return{operating:!1,job:0,timer:void 0}},computed:{tasks(){return this.$store.state.midjourney.tasks},service(){return this.$store.state.midjourney.service},credential(){return this.$store.state.midjourney.credential},config(){return this.$store.state.midjourney.config},loading(){return this.$store.state.midjourney.status.getApplications===de.Request},initializing(){return this.$store.state.midjourney.status.getApplications===de.Request},needApply(){return this.$store.state.midjourney.status.getApplications===de.Success&&!this.application},application(){return this.$store.state.midjourney.application},applications(){return this.$store.state.midjourney.applications},finalPrompt(){var a,i,p,h,f,u,r,n,g,v,_,S,$,A,y,V,E,N,D,G,F,H,x;let e="";return this.config.references&&((a=this.config.references)==null?void 0:a.length)>0&&(e+=`${this.config.references.join(" ")} `),this.config.prompt&&(e+=this.config.prompt),this.config.elements&&this.config.elements.length>0&&(e+=","+this.config.elements.map(ee=>ee.value).join(",")),((i=this.config)==null?void 0:i.model)&&!e.includes(`--${this.config.model}`)&&(e+=` --${this.config.model}`),((p=this.config)==null?void 0:p.version)&&!e.includes("--version ")&&!e.includes("--v ")&&(e+=` --version ${this.config.version}`),((h=this.config)==null?void 0:h.chaos)&&((f=this.config)==null?void 0:f.advanced)&&!e.includes("--chaos ")&&(e+=` --chaos ${this.config.chaos}`),((u=this.config)==null?void 0:u.quality)&&!e.includes("--quality ")&&!e.includes("--q ")&&((r=this.config)==null?void 0:r.quality)!==qe&&(e+=` --quality ${this.config.quality}`),((n=this.config)==null?void 0:n.ratio)&&!e.includes("--aspect ")&&!e.includes("--ar ")&&((g=this.config)==null?void 0:g.ratio)!==Be&&(e+=` --aspect ${this.config.ratio}`),((v=this.config)==null?void 0:v.stylize)&&!e.includes("--stylize ")&&!e.includes("--s ")&&((_=this.config)==null?void 0:_.advanced)&&((S=this.config)==null?void 0:S.stylize)!==Fe&&(e+=` --stylize ${($=this.config)==null?void 0:$.stylize}`),((A=this.config)==null?void 0:A.weird)&&!e.includes("--weird ")&&!e.includes("--w ")&&((y=this.config)==null?void 0:y.advanced)&&((V=this.config)==null?void 0:V.weird)!==We&&(e+=` --weird ${this.config.weird}`),this.config.ignore&&!e.includes("--no ")&&(e+=` --no ${this.config.ignore}`),((E=this.config)==null?void 0:E.iw)&&!e.includes("--iw ")&&((N=this.config)==null?void 0:N.advanced)&&((D=this.config)==null?void 0:D.iw)!==ze&&(e+=` --iw ${this.config.iw}`),((G=this.config)==null?void 0:G.style)&&((F=this.config)==null?void 0:F.advanced)&&!e.includes("--style")&&(e+=` --style ${(H=this.config)==null?void 0:H.style}`),e=e.replace(/--(fast|relax|turbo) /g,""),this.config.prompt||this.config.references&&((x=this.config.references)==null?void 0:x.length)>0?e:""}},watch:{tasks:{handler(e,a){var i,p;((i=e==null?void 0:e.items)==null?void 0:i.length)>((p=a==null?void 0:a.items)==null?void 0:p.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,a,i;console.debug("ddasdasdreached top"),await this.onGetTasks({createdAtMax:(i=(a=(e=this.tasks)==null?void 0:e.items)==null?void 0:a[0])==null?void 0:i.created_at})},async onGetService(){console.debug("start onGetService"),await this.$store.dispatch("midjourney/getService"),console.debug("end onGetService")},async onGetApplication(){console.debug("start onGetApplications"),await this.$store.dispatch("midjourney/getApplications"),console.debug("end onGetApplications"),await this.onGetTasks()},onApply(){Qe.create({application:this.application}).then(({data:e})=>{this.application=e,O.success(this.$t("application.message.applySuccessfully"))}).catch(e=>{var a,i;((i=(a=e==null?void 0:e.response)==null?void 0:a.data)==null?void 0:i.code)===Ye&&O.error(this.$t("application.message.alreadyApplied"))})},async onStartTask(e){var i;const a=(i=this.credential)==null?void 0:i.token;if(!a){console.error("no token specified");return}O.info(this.$t("midjourney.message.startingTask")),Ze.imagine(e,{token:a}).then(()=>{O.success(this.$t("midjourney.message.startTaskSuccess"))}).catch(p=>{var f,u;const h=(f=p==null?void 0:p.response)==null?void 0:f.data;((u=h==null?void 0:h.error)==null?void 0:u.code)===ea?O.error(this.$t("midjourney.message.usedUp")):O.error(this.$t("midjourney.message.startTaskFailed"))}).finally(async()=>{setTimeout(async()=>{await this.onGetTasks(),await this.onScrollDown()},1e3)})},async onCustom(e){var i;const a={image_id:e.image_id,action:e.action,mode:((i=this.config)==null?void 0:i.mode)||Me,callback_url:Ge};this.onStartTask(a)},async onGenerate(){var a,i;const e={mode:((a=this.config)==null?void 0:a.mode)||Me,prompt:this.finalPrompt,action:c.GENERATE,translation:(i=this.config)==null?void 0:i.translation,callback_url:Ge};await this.onStartTask(e)},async onScrollDown(){await this.$nextTick(),setTimeout(()=>{const e=document.querySelector(".tasks");e&&(e.scrollTop=e.scrollHeight)},500)},async onGetTasks(e){if(this.loading){console.debug("loading");return}console.debug("start onGetTasks",e);const{limit:a=5,createdAtMin:i,createdAtMax:p}=e||{};console.debug("limit",a,"createdAtMin",i,"createdAtMax",p),await this.$store.dispatch("midjourney/getTasks",{limit:a,createdAtMin:i,createdAtMax:p})}}});function cl(e,a,i,p,h,f){const u=d("config-panel"),r=d("task-list"),n=d("layout");return o(),R(n,null,{config:b(()=>[t(u,{onGenerate:e.onGenerate},null,8,["onGenerate"])]),results:b(()=>[t(r,{onCustom:e.onCustom,onReachTop:e.onReachTop},null,8,["onCustom","onReachTop"])]),_:1})}var vl=j(ol,[["render",cl],["__file","/home/runner/work/Nexior/Nexior/src/pages/midjourney/Index.vue"]]);export{vl as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./vendor-others.4ac6d265.js";import{N as c}from"./Navigator.fb908eb8.js";import{A as m}from"./Status.5419f090.js";import{_ as u,N as i}from"./index.bb8f1411.js";import{H as d,al as a,e as h,V as s,L as v,R as N,o as n}from"./vendor-@vue.38e80b4c.js";import"./vendor-element-plus.0d60bec3.js";import"./vendor-markdown.b359a0a8.js";import"./vendor-fortawesome.20479da6.js";import"./EditArray.5391fc09.js";import"./CopyToClipboard.3752e201.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.60b22bc6.js";const $=d({name:"LayoutMain",components:{Navigator:c,ApplicationStatus:m},data(){return{mobile:window.innerWidth<768}},computed:{appName(){return this.$route.meta.appName},initializing(){var t;return((t=this.$store.state[this.appName])==null?void 0:t.status.getApplications)===i.Request},needApply(){var t;return((t=this.$store.state[this.appName])==null?void 0:t.status.getApplications)===i.Success&&!this.application},application(){var t;return(t=this.$store.state[this.appName])==null?void 0:t.application},applications(){var t;return(t=this.$store.state[this.appName])==null?void 0:t.applications},loading(){var t,e;return((e=(t=this.$store.state[this.appName])==null?void 0:t.status)==null?void 0:e.getApplications)===i.Request},service(){var t;return(t=this.$store.state[this.appName])==null?void 0:t.service}},mounted(){window.addEventListener("resize",()=>{this.mobile=window.innerWidth<768})}}),_={class:"wrapper"};function f(t,e,g,w,y,A){const p=a("router-view"),r=a("navigator"),l=a("application-status");return n(),h("div",_,[s(p,{class:"main"}),s(r,{class:"navigator",direction:t.mobile?"row":"column"},null,8,["direction"]),t.application?(n(),v(l,{key:0,class:"fixed right-2 top-2",application:t.application,applications:t.applications,initializing:t.initializing,"show-price":!1,authenticated:!!t.$store.state.token.access,service:t.service,"need-apply":t.needApply,onSelect:e[0]||(e[0]=o=>t.$store.dispatch(`${t.appName}/setApplication`,o)),onRefresh:e[1]||(e[1]=o=>t.$store.dispatch(`${t.appName}/getApplications`))},null,8,["application","applications","initializing","authenticated","service","need-apply"])):N("v-if",!0)])}var W=u($,[["render",f],["__scopeId","data-v-63155678"],["__file","/home/runner/work/Nexior/Nexior/src/layouts/Main.vue"]]);export{W as default};
|