@acedatacloud/nexior 3.330.3 → 3.330.4

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.
Files changed (268) hide show
  1. package/dist/assets/{ApiCodeButton-BQA2Kuwk.js → ApiCodeButton-Bp3Z0qTW.js} +1 -1
  2. package/dist/assets/{Artifacts-nhc3w2xi.js → Artifacts-Dga8Potv.js} +1 -1
  3. package/dist/assets/{AskUserQuestionCard-DN2Li1wg.js → AskUserQuestionCard-FDK5bvEX.js} +1 -1
  4. package/dist/assets/{AudioPreview-D5ky0pcW.js → AudioPreview-CttqrVT-.js} +1 -1
  5. package/dist/assets/{Auth-DDnKKwHb.js → Auth-IbHumizl.js} +1 -1
  6. package/dist/assets/{Bare-kaqkjloK.js → Bare-BVUv8Anq.js} +1 -1
  7. package/dist/assets/{BotPlaceholder-OLb_PwrE.js → BotPlaceholder-CQGyf2NP.js} +1 -1
  8. package/dist/assets/{BottomFooter-BqYhKGkv.js → BottomFooter-Sv-qDroT.js} +1 -1
  9. package/dist/assets/{Callback-XNhyTufH.js → Callback-_cS0eBGb.js} +1 -1
  10. package/dist/assets/{CodeSnippet-Kq0ojmut.js → CodeSnippet-C9JDSEJR.js} +1 -1
  11. package/dist/assets/{Console-D78kmDGx.js → Console-DyLIUqbs.js} +1 -1
  12. package/dist/assets/{Consumption-CcofeHYt.js → Consumption-4o7tEdSM.js} +1 -1
  13. package/dist/assets/{Conversation-DD8iqdUT.js → Conversation-B6QxsVem.js} +1 -1
  14. package/dist/assets/{Conversation-pTeWyqCt.js → Conversation-CT0eINQf.js} +1 -1
  15. package/dist/assets/{CopyToClipboard-BLzg3vPM.js → CopyToClipboard-bVAoPsKa.js} +1 -1
  16. package/dist/assets/{Detail-DAyV88NR.js → Detail-Bt13Us5P.js} +2 -2
  17. package/dist/assets/{Extra-TYcyI_Gq.js → Extra-B-hhlpKu.js} +1 -1
  18. package/dist/assets/{FilePreview-xT5l_j-y.js → FilePreview-c7oy2kUd.js} +1 -1
  19. package/dist/assets/{Hailuo-Ck8PhuaH.js → Hailuo-C-xW5yzn.js} +1 -1
  20. package/dist/assets/{History-1FUB9oeM.js → History-DiSUu038.js} +1 -1
  21. package/dist/assets/{ImagePreview-EnP3py5-.js → ImagePreview-JjWdJrJJ.js} +1 -1
  22. package/dist/assets/{ImageWrapper-DRxUckvA.js → ImageWrapper-BRJm_KRz.js} +1 -1
  23. package/dist/assets/{Index-BLwWt7oA.js → Index-BBannUEk.js} +1 -1
  24. package/dist/assets/{Index-DoJMko5X.js → Index-BDRy5kAX.js} +1 -1
  25. package/dist/assets/{Index-DDsEJKSs.js → Index-BTHIC8Ez.js} +1 -1
  26. package/dist/assets/{Index-BYJoD4XF.js → Index-BU-1aNrl.js} +1 -1
  27. package/dist/assets/{Index-DWhefJuY.js → Index-BYkRLHqt.js} +1 -1
  28. package/dist/assets/{Index-DFHNb9pw2.js → Index-BopUv2B22.js} +1 -1
  29. package/dist/assets/{Index-YJdV7dhE2.js → Index-BsWZw0BZ2.js} +1 -1
  30. package/dist/assets/{Index-BGx4SJlo.js → Index-Bu0FAV7m.js} +1 -1
  31. package/dist/assets/{Index-Dgc-iaAP2.js → Index-C3T-af0o2.js} +1 -1
  32. package/dist/assets/{Index-CxDnAHzo.js → Index-C4TFYy_N.js} +1 -1
  33. package/dist/assets/{Index-BfC9E21Z.js → Index-CDo-VQt5.js} +1 -1
  34. package/dist/assets/{Index-B7OhHx0w.js → Index-CJSO7Rgq.js} +1 -1
  35. package/dist/assets/{Index-Bni19JJh.js → Index-CU9N23NR.js} +1 -1
  36. package/dist/assets/{Index-B4d26EAg.js → Index-Cgrr3sBo.js} +1 -1
  37. package/dist/assets/{Index-WlaR-y7d.css → Index-CqGu-h9j.css} +1 -1
  38. package/dist/assets/{Index-C-0nzX6T2.js → Index-D2U9PFl62.js} +1 -1
  39. package/dist/assets/{Index-ACah2v9h.js → Index-D6Tw4wlP.js} +1 -1
  40. package/dist/assets/{Index-CqNeSdWb.js → Index-D6muAKok.js} +1 -1
  41. package/dist/assets/{Index-DBbqNfXk.js → Index-DD6AumAO.js} +1 -1
  42. package/dist/assets/{Index-BEkA0o0Q.js → Index-DJYTo2ia.js} +1 -1
  43. package/dist/assets/{Index-BTNeMpYy2.js → Index-DUrf2Z0K2.js} +1 -1
  44. package/dist/assets/{Index-dRn9TrPF.js → Index-D_zrZfGu.js} +1 -1
  45. package/dist/assets/{Index-xwsJAeGL2.js → Index-Db52pQbd2.js} +1 -1
  46. package/dist/assets/{Index-BVTPmp-r.js → Index-DhC_w1ru.js} +1 -1
  47. package/dist/assets/Index-DnIBSaDA.js +1 -0
  48. package/dist/assets/{Index-KB74ynQW.js → Index-DouQiTau.js} +1 -1
  49. package/dist/assets/{Index-DI3gxpse2.js → Index-G7i-drpy2.js} +1 -1
  50. package/dist/assets/{Index-D9CM6-OH.js → Index-H_yRu0ex.js} +1 -1
  51. package/dist/assets/{Index-ECSet1nG.js → Index-dkfHG8jw.js} +1 -1
  52. package/dist/assets/{Index-D9bT8v80.js → Index-j7QIuDFi.js} +1 -1
  53. package/dist/assets/{Index-Cxm7edOs.js → Index-z6qyHZzb.js} +1 -1
  54. package/dist/assets/{Invitees-DL37jD3n.js → Invitees-DgHTtFiy.js} +1 -1
  55. package/dist/assets/{List-CNMj_1cj.js → List-DP1-rNd6.js} +1 -1
  56. package/dist/assets/{List-C6kzWBTx.js → List-DtN1wlm4.js} +1 -1
  57. package/dist/assets/{List-t9hJiWCl.js → List-DuKDZxvW.js} +1 -1
  58. package/dist/assets/{LocalTools-u-6oFctj.js → LocalTools-Cb-AgHNy.js} +1 -1
  59. package/dist/assets/{LocalTools-D_u_4pLa.js → LocalTools-DUAhNUoJ.js} +1 -1
  60. package/dist/assets/{Main-DPuQhaJy.js → Main-CYr2IiLq.js} +1 -1
  61. package/dist/assets/{Message-CEpoVFg6.js → Message-UBq3zKRU.js} +1 -1
  62. package/dist/assets/{Model-b2B85o6s.js → Model-Dmolv4hd.js} +1 -1
  63. package/dist/assets/{Navigator-BxP48-pY.js → Navigator-b53kk0WA.js} +3 -3
  64. package/dist/assets/{NotFound-Bn9kWCGp.js → NotFound-CqL7THDG.js} +1 -1
  65. package/dist/assets/{Pay-BQWeWdJ_.js → Pay-Vbh0pr9O.js} +1 -1
  66. package/dist/assets/{Player-C053eKpx.js → Player-CVyvTXlM.js} +1 -1
  67. package/dist/assets/{Poivelle-Bn4KSvos2.js → Poivelle-CybIQjAa2.js} +1 -1
  68. package/dist/assets/{PromptTextarea-CnS2q-mK.js → PromptTextarea-Dx6LZW69.js} +1 -1
  69. package/dist/assets/{RealtimeCall-DrgnFnS2.js → RealtimeCall-BqeflQkd.js} +1 -1
  70. package/dist/assets/{ScheduledTasks-mGTaLcrA.js → ScheduledTasks-ClwryiR_.js} +1 -1
  71. package/dist/assets/{Status-DTUErPqa.js → Status-D-953wZS.js} +1 -1
  72. package/dist/assets/{Subscribe-BanEPDn8.js → Subscribe-D3TArEWF.js} +1 -1
  73. package/dist/assets/{TabSwitcher-CAYwG4-G.js → TabSwitcher-DYNWLfoL.js} +1 -1
  74. package/dist/assets/{Tts-CyFdn93A.js → Tts-DbJQiq8v.js} +1 -1
  75. package/dist/assets/{VideoPlayer-SFKPkOLu.js → VideoPlayer-U5TbljVw.js} +1 -1
  76. package/dist/assets/{alert-CMTeA7vf.js → alert-DPz58LTx.js} +1 -1
  77. package/dist/assets/arrow-down-D77w3eJV.js +1 -0
  78. package/dist/assets/{arrow-down-wide-narrow-0gzVfMHv.js → arrow-down-wide-narrow-Dcb8lDFK.js} +1 -1
  79. package/dist/assets/arrow-left-B_kgJToc.js +1 -0
  80. package/dist/assets/arrow-right-BprqR8Ch.js +1 -0
  81. package/dist/assets/arrow-up-C9GfqSon.js +1 -0
  82. package/dist/assets/{avatar-Qb4Awc1r.js → avatar-K4aRRxXu.js} +1 -1
  83. package/dist/assets/{basic-BxvS7EHB.js → basic-B-TFQtoG.js} +1 -1
  84. package/dist/assets/{box-DjtQvagf.js → box-DQdz6m7h.js} +1 -1
  85. package/dist/assets/{boxes-CLpYOeB9.js → boxes-5IxX3Bpe.js} +1 -1
  86. package/dist/assets/{brain-CmnXDmuL.js → brain-CZkgan4c.js} +1 -1
  87. package/dist/assets/{chart-no-axes-combined-DCzfe9dQ.js → chart-no-axes-combined-Q0D78b6u.js} +1 -1
  88. package/dist/assets/{chat-EIz30q7d.js → chat-DjQ_LJik.js} +1 -1
  89. package/dist/assets/check-DJnUIN5-.js +1 -0
  90. package/dist/assets/chevron-down-NlBKs6LX.js +1 -0
  91. package/dist/assets/chevron-right-CtOYlhIt.js +1 -0
  92. package/dist/assets/circle-check-CJtvoKzR.js +1 -0
  93. package/dist/assets/clock-BPgPwle8.js +1 -0
  94. package/dist/assets/{codingBridge-YINnhLtJ.js → codingBridge-CahbHGWJ.js} +1 -1
  95. package/dist/assets/{codingBridgeNotify-CxcK1n6e.js → codingBridgeNotify-BovF75nG.js} +2 -2
  96. package/dist/assets/{coins-7P5gIVnU.js → coins-DTwYXpJr.js} +1 -1
  97. package/dist/assets/{collapse-UzlQUdBR.js → collapse-C0_hlPfq.js} +1 -1
  98. package/dist/assets/{constants-CihW0b5I.js → constants-OjwdsvEy.js} +1 -1
  99. package/dist/assets/{createTaskActions-B2zD0iRH.js → createTaskActions-ftx0IdkB.js} +1 -1
  100. package/dist/assets/{digitalhuman-BNdOf_DL.js → digitalhuman-Bfc180k6.js} +1 -1
  101. package/dist/assets/{dollar-sign-CDB52bxu.js → dollar-sign-DsDDMv0z.js} +1 -1
  102. package/dist/assets/{download-q9pfUVqz.js → download-BxPz6Ams.js} +1 -1
  103. package/dist/assets/{drawer-Cul8gfdU.js → drawer-BfH8vvcY.js} +1 -1
  104. package/dist/assets/{dropdown-D7a5Nscs.js → dropdown-C5v0UgBH.js} +1 -1
  105. package/dist/assets/{dropdown-BsPPs411.js → dropdown-DAcJJQM6.js} +1 -1
  106. package/dist/assets/{ellipsis-BVUXs5xR.js → ellipsis-CAjbJLgp.js} +1 -1
  107. package/dist/assets/{esm-DAXfOyQH.js → esm-B6XRzpoX.js} +1 -1
  108. package/dist/assets/{esm-CcpdyLDM.js → esm-BUEHmtwd.js} +3 -3
  109. package/dist/assets/{esm-CwM9LvDS.js → esm-BWq9f-iR.js} +1 -1
  110. package/dist/assets/esm-DZnICirX.js +1 -0
  111. package/dist/assets/{esm-Cv0PKT84.js → esm-Dzxrly-f.js} +1 -1
  112. package/dist/assets/{esm-Bf_My4P-.js → esm-Lhrv0Ohc.js} +2 -2
  113. package/dist/assets/{esm-BMghq3Jp.js → esm-PHSClvOn.js} +2 -2
  114. package/dist/assets/{external-link-DSjuErLJ.js → external-link-j76m6WfB.js} +1 -1
  115. package/dist/assets/{eye-BKxWp_Ct.js → eye-w4q5-VD7.js} +1 -1
  116. package/dist/assets/{file-output-1Tb8v4I6.js → file-output-ibupwa_B.js} +1 -1
  117. package/dist/assets/{file-text-BpmJg2cz.js → file-text-Dm3KQwis.js} +1 -1
  118. package/dist/assets/{fish-CfIr1tno.js → fish-TbXE9sSi.js} +1 -1
  119. package/dist/assets/{flux-DHlfRmVp.js → flux-9HZkQVR6.js} +1 -1
  120. package/dist/assets/{folder-DUbBYGl7.js → folder-C9ssaW-A.js} +1 -1
  121. package/dist/assets/gauge-JCy3ItEr.js +1 -0
  122. package/dist/assets/{globe-D6yhH_ia.js → globe-C-gQ-Zt7.js} +1 -1
  123. package/dist/assets/{grokvideo-DoVhlNcK.js → grokvideo-Zvmcj5hh.js} +1 -1
  124. package/dist/assets/{hailuo-BHNP0HWs.js → hailuo-D_68Yj7c.js} +1 -1
  125. package/dist/assets/{headphones-Z17NkkDo.js → headphones-B3EYIie-.js} +1 -1
  126. package/dist/assets/{history-BkWoOWNW.js → history-B9u5Cv21.js} +1 -1
  127. package/dist/assets/{i18n-DU-1EXf6.js → i18n-DRZmeOLk.js} +1 -1
  128. package/dist/assets/{image-Co8TX3DD.js → image-DPY1kbtq.js} +1 -1
  129. package/dist/assets/{index-CSy4uoqo.js → index-Qs5KlsiO.js} +4 -4
  130. package/dist/assets/{index.browser.esm-C_fHPt4y.js → index.browser.esm-Biz8Wa6c.js} +1 -1
  131. package/dist/assets/{index.es-dvV2UECR.js → index.es-Ino5HIS1.js} +1 -1
  132. package/dist/assets/{info-BR35Gzvb.js → info-B1uUtwB6.js} +1 -1
  133. package/dist/assets/{input-number-CfvLZ4Sl.js → input-number-Cb63MK6W.js} +1 -1
  134. package/dist/assets/{key-round-kop_94dG.js → key-round-BvlyNctZ.js} +1 -1
  135. package/dist/assets/{kling-DURiK69F.js → kling-CxOYFlS6.js} +1 -1
  136. package/dist/assets/{languages-D8jFPPpn.js → languages-HlmxuS50.js} +1 -1
  137. package/dist/assets/{laptop-CutGHkQY.js → laptop-CA5svZgs.js} +1 -1
  138. package/dist/assets/{lightbulb-CcgI-FkI.js → lightbulb-CxoQYwps.js} +1 -1
  139. package/dist/assets/{link-C4HQDrqM.js → link-K2Httc75.js} +1 -1
  140. package/dist/assets/loader-circle-CQPdWJ8v.js +1 -0
  141. package/dist/assets/{luma-B9dWZe9h.js → luma-B0KycJJ1.js} +1 -1
  142. package/dist/assets/{maestro-ZG3ct6Ws.js → maestro-BPd2T6Di.js} +1 -1
  143. package/dist/assets/{maestro-DMaqF73h.js → maestro-CzprjJHf.js} +1 -1
  144. package/dist/assets/{mail-DRaEBqAb.js → mail-Cygqz_un.js} +1 -1
  145. package/dist/assets/{message-circle-BdGUQwF-.js → message-circle-o42K6pAr.js} +1 -1
  146. package/dist/assets/{mic-BJQNmo0r.js → mic-BiQ_IU_P.js} +1 -1
  147. package/dist/assets/{midjourney-D5LVV5m3.js → midjourney-BQm3t0TM.js} +1 -1
  148. package/dist/assets/{mobileLocalExec-Y1w4uMgq.js → mobileLocalExec-BoEKSB_s.js} +2 -2
  149. package/dist/assets/{mouse-pointer-2-Bp_z2_cN.js → mouse-pointer-2-XcLqz8RU.js} +1 -1
  150. package/dist/assets/music-2-DUHC48u_.js +1 -0
  151. package/dist/assets/{nanobanana-rNlUFqhD.js → nanobanana-Bmxb0UTE.js} +1 -1
  152. package/dist/assets/{omni-CJhQ1nNg.js → omni-BSHFsJ7y.js} +1 -1
  153. package/dist/assets/{openaiimage-CleoskQs.js → openaiimage-D46sseTr.js} +1 -1
  154. package/dist/assets/{pagination-DLy0AUVO.js → pagination-C6LUGpWR.js} +1 -1
  155. package/dist/assets/{pagination-Bu3ln2En.js → pagination-CHguBFw8.js} +1 -1
  156. package/dist/assets/{palette-CnvAEdCe.js → palette-Di4Vvcit.js} +1 -1
  157. package/dist/assets/{paperclip-CuS0P1fi.js → paperclip-Cum34H0l.js} +1 -1
  158. package/dist/assets/{pause-mgC-vqNw.js → pause-C3XVynaJ.js} +1 -1
  159. package/dist/assets/{pencil-CwU-9qhR.js → pencil-Dae7fd00.js} +1 -1
  160. package/dist/assets/{pika-Ck0g7z5L.js → pika-Bz7Cc3wh.js} +1 -1
  161. package/dist/assets/{pixverse-BavpOz6w.js → pixverse-DsZRJzgn.js} +1 -1
  162. package/dist/assets/play-DyHb2U89.js +1 -0
  163. package/dist/assets/plus-VHMxxaAO.js +1 -0
  164. package/dist/assets/{poivelle-BOlV11ZD.js → poivelle-AoUrSPl3.js} +1 -1
  165. package/dist/assets/{poivelle-BT471Z6W.js → poivelle-BKMcFowD.js} +1 -1
  166. package/dist/assets/{poivelle-BfAaNX90.js → poivelle-BmpvMSNE.js} +1 -1
  167. package/dist/assets/{poivelle-Bcch_oAg.js → poivelle-CE9TcLtQ.js} +1 -1
  168. package/dist/assets/poivelle-CUJ9z2Rk.js +1 -0
  169. package/dist/assets/poivelle-Cj4WFLcu.js +1 -0
  170. package/dist/assets/{poivelle-DVNaU5ql.js → poivelle-CvBDibtG.js} +1 -1
  171. package/dist/assets/poivelle-CvubMnux.js +1 -0
  172. package/dist/assets/poivelle-DDfVj0Gn.js +1 -0
  173. package/dist/assets/poivelle-DQUkCylV.js +1 -0
  174. package/dist/assets/poivelle-DREcEIlN.js +1 -0
  175. package/dist/assets/poivelle-DSrOWn2t.js +1 -0
  176. package/dist/assets/poivelle-DXcPkB53.js +1 -0
  177. package/dist/assets/poivelle-DprcinPU.js +1 -0
  178. package/dist/assets/poivelle-DpsH0NNJ.js +1 -0
  179. package/dist/assets/poivelle-JICDF0TK.js +1 -0
  180. package/dist/assets/{poivelle-DN0fAbIY.js → poivelle-TeRada3R.js} +1 -1
  181. package/dist/assets/poivelle-Zey-Jm76.js +1 -0
  182. package/dist/assets/poivelle-p-5gNwah.js +1 -0
  183. package/dist/assets/{popover-CSUzFRfM.js → popover-BeQ8h3AG.js} +1 -1
  184. package/dist/assets/{producer-BTeZLZrl.js → producer--EgDiJjQ.js} +1 -1
  185. package/dist/assets/{qrart-CuTqtn3B.js → qrart-DOp02pli.js} +1 -1
  186. package/dist/assets/{realtime-BVFEQCID.js → realtime-2w2TNs_i.js} +1 -1
  187. package/dist/assets/{refresh-cw-BaHFn3Yi.js → refresh-cw-BJlJa2sN.js} +1 -1
  188. package/dist/assets/rotate-ccw-DySlRpRM.js +1 -0
  189. package/dist/assets/rotate-cw-gQmyzhDz.js +1 -0
  190. package/dist/assets/{row-Ds4H6c91.js → row-Cf4pW3XN.js} +1 -1
  191. package/dist/assets/search-VA-nhIZY.js +1 -0
  192. package/dist/assets/{seedance-Di6ShSe-.js → seedance-c26CCp_e.js} +1 -1
  193. package/dist/assets/{seedream-Bf7ubs7I.js → seedream-BjC1_F5X.js} +1 -1
  194. package/dist/assets/{select-CG_CRp0D.js → select-CQ3Yu7wn.js} +1 -1
  195. package/dist/assets/{serp-m08Iaw1N.js → serp-KgkjFupc.js} +1 -1
  196. package/dist/assets/{shield-BpoBw5Zs.js → shield-DH1-hXbf.js} +1 -1
  197. package/dist/assets/{shuffle-BLfY1NU5.js → shuffle-CU5pXiao.js} +1 -1
  198. package/dist/assets/{slider-CmB3vT2c.js → slider-kwl6TlSS.js} +1 -1
  199. package/dist/assets/{sliders-horizontal-CLK6gKLm.js → sliders-horizontal-CuDJ1FFU.js} +1 -1
  200. package/dist/assets/{solana-wallets-B7bgU3vk.js → solana-wallets-CSvyC1CI.js} +2 -2
  201. package/dist/assets/{solana-wallets-vue-CAEifJ4k.js → solana-wallets-vue-ipJqoc3y.js} +1 -1
  202. package/dist/assets/{sora-CoxTRc3A.js → sora-DLcmCZKf.js} +1 -1
  203. package/dist/assets/{sparkles-DEEG-17Q.js → sparkles-CO78ChNL.js} +1 -1
  204. package/dist/assets/square-BWQDxbpO.js +1 -0
  205. package/dist/assets/{suno-DUKOtm4h.js → suno-Bi-Iuqw_.js} +1 -1
  206. package/dist/assets/{switch-CQoBRXaD.js → switch-uhda2CZa.js} +1 -1
  207. package/dist/assets/{table-CIOuljO-.js → table-DyeoaXgw.js} +1 -1
  208. package/dist/assets/{tabs-Dqsf00tY.js → tabs-ClzyG__M.js} +1 -1
  209. package/dist/assets/{tag-Be1yCyap.js → tag-BFot6rjX.js} +1 -1
  210. package/dist/assets/{taskDrawerMixin-DgnY1KEL.js → taskDrawerMixin-C_REr0cS.js} +1 -1
  211. package/dist/assets/terminal-BJo8UlOr.js +1 -0
  212. package/dist/assets/{time-picker-C4wCrVWP.js → time-picker-YGZRq872.js} +1 -1
  213. package/dist/assets/{tooltip-C97xBCaY.js → tooltip-CLbvxNYt.js} +1 -1
  214. package/dist/assets/{trash-2-DiuHEJAs.js → trash-2-CssPHItj.js} +1 -1
  215. package/dist/assets/{triangle-alert-oIIqjHOD.js → triangle-alert-_9EWA_xN.js} +1 -1
  216. package/dist/assets/{upload-DeZQkYhV.js → upload-BlySMBQz.js} +1 -1
  217. package/dist/assets/{upload-BOxN_lsc.js → upload-v8raK4er.js} +1 -1
  218. package/dist/assets/user-C4_KvfL_.js +1 -0
  219. package/dist/assets/{veo-DdIOGiYE.js → veo-B49k_7AS.js} +1 -1
  220. package/dist/assets/{video-CsdhjyZa.js → video-Cm4_OxNO.js} +1 -1
  221. package/dist/assets/{volume-2-Csau8Tvv.js → volume-2-Bw55c-E3.js} +1 -1
  222. package/dist/assets/{wallet-BCuc6k93.js → wallet-DZr3MbMX.js} +1 -1
  223. package/dist/assets/{wan-BwCHO3GM.js → wan-Cj7oUa9S.js} +1 -1
  224. package/dist/assets/{wand-sparkles-B22wZ_LJ.js → wand-sparkles-BXIZutC0.js} +1 -1
  225. package/dist/assets/{web-DBYgTqKr.js → web-BFbKnUNw.js} +1 -1
  226. package/dist/assets/{web-BrTlDNsf.js → web-BchjYKTo.js} +1 -1
  227. package/dist/assets/{web-BADLYLVZ.js → web-CRUuf5mr.js} +1 -1
  228. package/dist/assets/{web-B_YsHFbX.js → web-DyRLQyNw.js} +1 -1
  229. package/dist/assets/{web-D0yYvE-W.js → web-IUeepGZk.js} +1 -1
  230. package/dist/assets/{webextrator-Ddx_XvZ3.js → webextrator-DGLM0fBm.js} +1 -1
  231. package/dist/assets/{zap-DrPwe99r.js → zap-Cig4BX5Y.js} +1 -1
  232. package/dist/index.html +3 -3
  233. package/package.json +1 -1
  234. package/dist/assets/Index-h63I9KEQ.js +0 -1
  235. package/dist/assets/arrow-down-DyCwuhA_.js +0 -1
  236. package/dist/assets/arrow-left-Bldh30Ps.js +0 -1
  237. package/dist/assets/arrow-right-ClEfVLX9.js +0 -1
  238. package/dist/assets/arrow-up-B2rgx3bc.js +0 -1
  239. package/dist/assets/check-D75Hxd1C.js +0 -1
  240. package/dist/assets/chevron-down-bhvjN7n3.js +0 -1
  241. package/dist/assets/chevron-right-BjRDKLoy.js +0 -1
  242. package/dist/assets/circle-check-DTSn31xm.js +0 -1
  243. package/dist/assets/clock-Bceg5ZOx.js +0 -1
  244. package/dist/assets/esm-C1KqStpx.js +0 -1
  245. package/dist/assets/gauge-CgOFRCnR.js +0 -1
  246. package/dist/assets/loader-circle-Dq21z_69.js +0 -1
  247. package/dist/assets/music-2-D4faES5a.js +0 -1
  248. package/dist/assets/play-CBwWSLnA.js +0 -1
  249. package/dist/assets/plus-DAJ5iyTz.js +0 -1
  250. package/dist/assets/poivelle-BqTBqhaC.js +0 -1
  251. package/dist/assets/poivelle-CUX6pWe1.js +0 -1
  252. package/dist/assets/poivelle-CXUKqEKa.js +0 -1
  253. package/dist/assets/poivelle-Cl8EdTVC.js +0 -1
  254. package/dist/assets/poivelle-D5tajLRf.js +0 -1
  255. package/dist/assets/poivelle-D6UIgflT.js +0 -1
  256. package/dist/assets/poivelle-DflTadCH.js +0 -1
  257. package/dist/assets/poivelle-Dip-gmJp.js +0 -1
  258. package/dist/assets/poivelle-HHdrXh36.js +0 -1
  259. package/dist/assets/poivelle-MlZwZz63.js +0 -1
  260. package/dist/assets/poivelle-Wef0PMWe.js +0 -1
  261. package/dist/assets/poivelle-bm5ucS40.js +0 -1
  262. package/dist/assets/poivelle-prXNZZGc.js +0 -1
  263. package/dist/assets/rotate-ccw-CaaGle_L.js +0 -1
  264. package/dist/assets/rotate-cw-kWs615Qt.js +0 -1
  265. package/dist/assets/search-CYvjM44Y.js +0 -1
  266. package/dist/assets/square-D5MoAYYZ.js +0 -1
  267. package/dist/assets/terminal-CChq7U5h.js +0 -1
  268. package/dist/assets/user-CzUpeMtq.js +0 -1
@@ -1 +1 @@
1
- import"./rolldown-runtime--c01j_DQ.js";import{A as e,Gt as t,I as n,Jt as r,L as i,M as a,N as o,T as s,at as c,ht as l,it as u,j as d,mt as f,qt as p,rt as m,tt as h,x as g,z as _}from"./vendor-chart-Dw-P17PN.js";import{r as v,t as y}from"./select-CG_CRp0D.js";import{t as b}from"./upload-BOxN_lsc.js";import{t as x}from"./alert-CMTeA7vf.js";import{n as S,r as C}from"./radio-DgDgyT2l.js";import{t as w}from"./drawer-Cul8gfdU.js";import{t as T}from"./slider-CmB3vT2c.js";import{t as E}from"./switch-CQoBRXaD.js";import{n as D}from"./taskDrawerMixin-DgnY1KEL.js";import{t as O}from"./clock-Bceg5ZOx.js";import{t as k}from"./CopyToClipboard-BLzg3vPM.js";import{t as A}from"./external-link-DSjuErLJ.js";import{r as j,t as M}from"./PromptTextarea-CnS2q-mK.js";import{t as N}from"./info-BR35Gzvb.js";import{t as P}from"./message-circle-BdGUQwF-.js";import{t as F}from"./sparkles-DEEG-17Q.js";import{t as ee}from"./triangle-alert-oIIqjHOD.js";import{t as I}from"./upload-DeZQkYhV.js";import{t as L}from"./wand-sparkles-B22wZ_LJ.js";import{_i as R,bi as z,gi as te,vi as ne,yi as re}from"./constants-CihW0b5I.js";import{Bt as ie,E as B,Gt as V,Ht as H,Kn as U,Mi as W,Ut as G,Vi as K,Vt as q,ai as J,en as Y,gi as ae,gr as oe,lr as se,ni as X,vi as Z,xi as ce}from"./index-CSy4uoqo.js";import{t as le}from"./Status-DTUErPqa.js";import{t as ue}from"./ImagePreview-EnP3py5-.js";import{t as de}from"./Consumption-CcofeHYt.js";import{a as Q,n as fe,r as pe,t as me}from"./pagination-Bu3ln2En.js";import{t as he}from"./ApiCodeButton-BQA2Kuwk.js";import{t as ge}from"./BotPlaceholder-OLb_PwrE.js";import{t as _e}from"./ImageWrapper-DRxUckvA.js";var ve=ae(`sprout`,[[`path`,{d:`M14 9.536V7a4 4 0 0 1 4-4h1.5a.5.5 0 0 1 .5.5V5a4 4 0 0 1-4 4 4 4 0 0 0-4 4c0 2 1 3 1 5a5 5 0 0 1-1 3`,key:`139s4v`}],[`path`,{d:`M4 9a5 5 0 0 1 8 4 5 5 0 0 1-8-4`,key:`1dlkgp`}],[`path`,{d:`M5 21h14`,key:`11awu3`}]]),ye=_({name:`LayoutQrart`,components:{MagicIcon:L,ElDrawer:w,ElButton:W},mixins:[D]}),be={class:`main flex flex-row flex-1`},xe={class:`config w-[320px] flex-none h-full min-h-0 overflow-hidden flex flex-col bg-[var(--app-sidebar-bg)] border-r border-[var(--app-border-subtle)]`},Se={class:`result h-full p-6 flex-1 flex flex-col min-w-0 overflow-x-hidden bg-[var(--app-content-bg)]`};function Ce(t,n,r,a,s,d){let p=c(`magic-icon`),m=c(`el-button`),_=c(`el-drawer`);return h(),o(`div`,be,[e(`div`,xe,[u(t.$slots,`config`,{},void 0,!0)]),e(`div`,Se,[u(t.$slots,`result`,{},void 0,!0)]),l(i(m,{circle:``,class:`menu`,"aria-label":t.$t(`common.button.openMenu`),title:t.$t(`common.button.openMenu`),onClick:n[0]||=e=>t.drawer=!0},{default:f(()=>[i(p,{size:`1em`,"aria-hidden":`true`,focusable:`false`})]),_:1},8,[`aria-label`,`title`]),[[g,!t.tasksEmpty]]),i(_,{modelValue:t.drawer,"onUpdate:modelValue":n[1]||=e=>t.drawer=e,direction:`ltr`,"with-header":!1,size:`340px`,class:`generator-drawer`},{default:f(()=>[u(t.$slots,`config`,{},void 0,!0)]),_:3},8,[`modelValue`])])}var we=B(ye,[[`render`,Ce],[`__scopeId`,`data-v-b6a1bb95`]]),Te=_({name:`VersionSelector`,components:{ElSelect:v,ElOption:y},props:{modelValue:{type:String,default:void 0}},emits:[`update:modelValue`],data(){return{options:[{label:this.$t(`qrart.type.text`),value:`text`},{label:this.$t(`qrart.type.link`),value:`link`},{label:this.$t(`qrart.type.email`),value:`email`},{label:this.$t(`qrart.type.phone`),value:`phone`},{label:this.$t(`qrart.type.sms`),value:`sms`}]}},computed:{value:{get(){return this.$store.state.qrart?.config?.type},set(e){console.debug(`set type`,e),this.$store.commit(`qrart/setConfig`,{...this.$store.state.qrart?.config,type:e})}}},mounted(){this.value||=(console.debug(`set default type`,z),z)}}),Ee={class:`field`},De={class:`text-sm font-bold title`};function Oe(t,n,a,l,u,p){let g=c(`el-option`),_=c(`el-select`);return h(),o(`div`,Ee,[e(`span`,De,r(t.$t(`qrart.name.type`)),1),i(_,{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,class:`value`,placeholder:t.$t(`qrart.placeholder.select`)},{default:f(()=>[(h(!0),o(s,null,m(t.options,e=>(h(),d(g,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var ke=B(Te,[[`render`,Oe],[`__scopeId`,`data-v-b4bd8f04`]]),Ae=_({name:`AspectRatioSelector`,data(){return{options:[{value:`1:1`,label:`1:1`,width:30,height:30},{value:`4:3`,label:`4:3`,width:32,height:24},{value:`3:4`,label:`3:4`,width:24,height:32},{value:`16:9`,label:`16:9`,width:32,height:18},{value:`9:16`,label:`9:16`,width:18,height:32}]}},computed:{active(){return this.options.findIndex(e=>e.value===String(this.value))||0},value:{get(){return this.$store.state.qrart?.config?.aspect_ratio},set(e){console.debug(`set aspect ratio`,e),this.$store.commit(`qrart/setConfig`,{...this.$store.state.qrart?.config,aspect_ratio:e})}}},mounted(){this.value||=`1:1`}}),je={class:`text-sm font-bold block mb-2`},Me={class:`items`},Ne=[`onClick`],Pe={class:`name`};function Fe(n,i,a,c,l,u){return h(),o(`div`,null,[e(`span`,je,r(n.$t(`qrart.name.aspectRatio`)),1),e(`div`,Me,[(h(!0),o(s,null,m(n.options,(i,a)=>(h(),o(`div`,{key:a,class:t({active:n.active===a,item:!0}),onClick:e=>n.value=i.value},[e(`div`,{class:t([`preview`,i.label])},[e(`div`,{class:`rect`,style:p({width:i.width+`px`,height:i.height+`px`})},null,4)],2),e(`p`,Pe,r(i.label),1)],10,Ne))),128))])])}var Ie=B(Ae,[[`render`,Fe],[`__scopeId`,`data-v-b7590ecc`]]),Le=_({name:`QrwSelector`,components:{ElSlider:T,InfoIcon:Q},computed:{value:{get(){return this.$store.state.qrart?.config?.qrw||2},set(e){console.debug(`set qrw`,e),this.$store.commit(`qrart/setConfig`,{...this.$store.state.qrart?.config,qrw:e})}}},mounted(){this.value||=(console.debug(`set default qrw`),2)}}),Re={class:`field`},ze={class:`text-sm font-bold title mb-2`};function Be(t,n,a,s,l,u){let d=c(`el-slider`),f=c(`info-icon`);return h(),o(`div`,Re,[e(`span`,ze,r(t.$t(`qrart.name.qrw`)),1),i(d,{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,min:1.5,max:3,step:.1,class:`value`},null,8,[`modelValue`]),i(f,{content:t.$t(`qrart.description.qrw`),class:`info`},null,8,[`content`])])}var Ve=B(Le,[[`render`,Be],[`__scopeId`,`data-v-8410479c`]]),He=_({name:`StepsSelector`,components:{ElSlider:T,InfoIcon:Q},computed:{value:{get(){return this.$store.state.qrart?.config?.steps||20},set(e){console.debug(`set steps`,e),this.$store.commit(`qrart/setConfig`,{...this.$store.state.qrart?.config,steps:e})}}},mounted(){this.value||=(console.debug(`set default steps`,20),20)}}),Ue={class:`field`},We={class:`text-sm font-bold block mb-2`};function Ge(t,n,a,s,l,u){let d=c(`el-slider`),f=c(`info-icon`);return h(),o(`div`,Ue,[e(`span`,We,r(t.$t(`qrart.name.steps`)),1),i(d,{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,min:10,max:20,step:1,class:`value`},null,8,[`modelValue`]),i(f,{content:t.$t(`qrart.description.steps`),class:`info`},null,8,[`content`])])}var Ke=B(He,[[`render`,Ge],[`__scopeId`,`data-v-0c88983e`]]),qe=_({name:`AdvancedSelector`,components:{ElSwitch:E},computed:{value:{get(){return this.$store.state.qrart?.config?.advanced},set(e){console.debug(`set advanced`,e),this.$store.commit(`qrart/setConfig`,{...this.$store.state.qrart?.config,advanced:e})}}},mounted(){this.value===void 0&&(this.value=!1)}}),Je={class:`field`},Ye={class:`title font-bold`};function Xe(t,n,a,s,l,u){let d=c(`el-switch`);return h(),o(`div`,Je,[e(`span`,Ye,r(t.$t(`qrart.name.advanced`)),1),i(d,{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,class:`value`},null,8,[`modelValue`])])}var Ze=B(qe,[[`render`,Xe],[`__scopeId`,`data-v-f8ddf849`]]),Qe=_({name:`MarkerShapeSelector`,components:{ElSelect:v,ElOption:y},data(){return{options:[{value:`square`,label:this.$t(`qrart.markerShape.square`)},{value:`circle`,label:this.$t(`qrart.markerShape.circle`)},{value:`plus`,label:this.$t(`qrart.markerShape.plus`)},{value:`box`,label:this.$t(`qrart.markerShape.box`)},{value:`octagon`,label:this.$t(`qrart.markerShape.octagon`)},{value:`tiny-plus`,label:this.$t(`qrart.markerShape.tinyPlus`)},{value:`random`,label:this.$t(`qrart.markerShape.random`)}]}},computed:{value:{get(){return this.$store.state.qrart?.config?.marker_shape},set(e){console.debug(`set marker_shape`,e),this.$store.commit(`qrart/setConfig`,{...this.$store.state.qrart?.config,marker_shape:e})}}},mounted(){this.value||=te}}),$e={class:`field`},et={class:`text-sm font-bold block mb-2`};function tt(t,n,a,l,u,p){let g=c(`el-option`),_=c(`el-select`);return h(),o(`div`,$e,[e(`span`,et,r(t.$t(`qrart.name.markerShape`)),1),i(_,{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,clearable:``,class:`value`,placeholder:t.$t(`qrart.placeholder.markerShape`)},{default:f(()=>[(h(!0),o(s,null,m(t.options,e=>(h(),d(g,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var nt=B(Qe,[[`render`,tt],[`__scopeId`,`data-v-de71e0b0`]]),rt=_({name:`SubMarkerSelector`,components:{ElSelect:v,ElOption:y},data(){return{options:[{value:`square`,label:this.$t(`qrart.subMarker.square`)},{value:`circle`,label:this.$t(`qrart.subMarker.circle`)},{value:`plus`,label:this.$t(`qrart.subMarker.plus`)},{value:`box`,label:this.$t(`qrart.subMarker.box`)},{value:`random`,label:this.$t(`qrart.subMarker.random`)}]}},computed:{value:{get(){return this.$store.state.qrart?.config?.sub_marker},set(e){console.debug(`set sub_marker`,e),this.$store.commit(`qrart/setConfig`,{...this.$store.state.qrart?.config,sub_marker:e})}}},mounted(){this.value||=re}}),it={class:`field`},at={class:`text-sm font-bold block mb-2`};function ot(t,n,a,l,u,p){let g=c(`el-option`),_=c(`el-select`);return h(),o(`div`,it,[e(`span`,at,r(t.$t(`qrart.name.subMarker`)),1),i(_,{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,clearable:``,class:`value`,placeholder:t.$t(`qrart.placeholder.subMarker`)},{default:f(()=>[(h(!0),o(s,null,m(t.options,e=>(h(),d(g,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var st=B(rt,[[`render`,ot],[`__scopeId`,`data-v-51a39efa`]]),ct=_({name:`RotateSelector`,components:{ElSelect:v,ElOption:y},data(){return{options:[{value:0,label:0},{value:90,label:90},{value:180,label:180},{value:270,label:270}]}},computed:{value:{get(){return this.$store.state.qrart?.config?.rotate},set(e){console.debug(`set rotate`,e),this.$store.commit(`qrart/setConfig`,{...this.$store.state.qrart?.config,rotate:e})}}},mounted(){this.value||=0}}),lt={class:`field`},ut={class:`text-sm font-bold block mb-2`};function dt(t,n,a,l,u,p){let g=c(`el-option`),_=c(`el-select`);return h(),o(`div`,lt,[e(`span`,ut,r(t.$t(`qrart.name.rotate`)),1),i(_,{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,clearable:``,class:`value`,placeholder:t.$t(`qrart.placeholder.rotate`)},{default:f(()=>[(h(!0),o(s,null,m(t.options,e=>(h(),d(g,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var ft=B(ct,[[`render`,dt],[`__scopeId`,`data-v-72e35835`]]),pt=_({name:`EclSelector`,components:{ElSelect:v,ElOption:y},data(){return{options:[{value:`L`,label:`L`},{value:`M`,label:`M`},{value:`Q`,label:`Q`},{value:`H`,label:`H`}]}},computed:{value:{get(){return this.$store.state.qrart?.config?.ecl},set(e){console.debug(`set ecl`,e),this.$store.commit(`qrart/setConfig`,{...this.$store.state.qrart?.config,ecl:e})}}},mounted(){this.value||=`H`}}),mt={class:`field`},ht={class:`text-sm font-bold block mb-2`};function gt(t,n,a,l,u,p){let g=c(`el-option`),_=c(`el-select`);return h(),o(`div`,mt,[e(`span`,ht,r(t.$t(`qrart.name.ecl`)),1),i(_,{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,clearable:``,class:`value`,placeholder:t.$t(`qrart.placeholder.ecl`)},{default:f(()=>[(h(!0),o(s,null,m(t.options,e=>(h(),d(g,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var _t=B(pt,[[`render`,gt],[`__scopeId`,`data-v-b3a5e331`]]),vt=_({name:`MarkerShapeSelector`,components:{ElSelect:v,ElOption:y},data(){return{options:[{value:`center`,label:this.$t(`qrart.position.center`)},{value:`top`,label:this.$t(`qrart.position.top`)},{value:`right`,label:this.$t(`qrart.position.right`)},{value:`bottom`,label:this.$t(`qrart.position.bottom`)},{value:`left`,label:this.$t(`qrart.position.left`)},{value:`top-left`,label:this.$t(`qrart.position.topLeft`)},{value:`top-right`,label:this.$t(`qrart.position.topRight`)},{value:`bottom-left`,label:this.$t(`qrart.position.bottomLeft`)},{value:`bottom-right`,label:this.$t(`qrart.position.bottomRight`)}]}},computed:{value:{get(){return this.$store.state.qrart?.config?.position},set(e){console.debug(`set position`,e),this.$store.commit(`qrart/setConfig`,{...this.$store.state.qrart?.config,position:e})}}},mounted(){this.value||=ne}}),yt={class:`field`},bt={class:`title font-bold`};function xt(t,n,a,l,u,p){let g=c(`el-option`),_=c(`el-select`);return h(),o(`div`,yt,[e(`span`,bt,r(t.$t(`qrart.name.position`)),1),i(_,{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,clearable:``,class:`value`,placeholder:t.$t(`qrart.placeholder.position`)},{default:f(()=>[(h(!0),o(s,null,m(t.options,e=>(h(),d(g,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var St=B(vt,[[`render`,xt],[`__scopeId`,`data-v-54186505`]]),Ct=_({name:`PaddingLevelSelector`,components:{ElSelect:v,ElOption:y},data(){return{options:[{value:0,label:0},{value:5,label:5},{value:10,label:10},{value:10,label:10},{value:15,label:15},{value:20,label:20}]}},computed:{value:{get(){return this.$store.state.qrart?.config?.padding_level},set(e){console.debug(`set padding_level`,e),this.$store.commit(`qrart/setConfig`,{...this.$store.state.qrart?.config,padding_level:e})}}},mounted(){this.value||=5}}),wt={class:`field`},Tt={class:`text-sm font-bold block mb-2`};function Et(t,n,a,l,u,p){let g=c(`el-option`),_=c(`el-select`);return h(),o(`div`,wt,[e(`span`,Tt,r(t.$t(`qrart.name.paddingLevel`)),1),i(_,{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,clearable:``,class:`value`,placeholder:t.$t(`qrart.placeholder.paddingLevel`)},{default:f(()=>[(h(!0),o(s,null,m(t.options,e=>(h(),d(g,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var Dt=B(Ct,[[`render`,Et],[`__scopeId`,`data-v-49d801fd`]]),Ot=_({name:`PaddingNoiseSelector`,components:{ElSelect:v,ElOption:y},data(){return{options:[{value:0,label:0},{value:.25,label:.25},{value:.5,label:.5},{value:.75,label:.75},{value:1,label:1}]}},computed:{value:{get(){return this.$store.state.qrart?.config?.padding_noise},set(e){console.debug(`set padding_noise`,e),this.$store.commit(`qrart/setConfig`,{...this.$store.state.qrart?.config,padding_noise:e})}}},mounted(){this.value||=0}}),kt={class:`field`},At={class:`text-sm font-bold block mb-2`};function jt(t,n,a,l,u,p){let g=c(`el-option`),_=c(`el-select`);return h(),o(`div`,kt,[e(`span`,At,r(t.$t(`qrart.name.paddingNoise`)),1),i(_,{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,clearable:``,class:`value`,placeholder:t.$t(`qrart.placeholder.paddingNoise`)},{default:f(()=>[(h(!0),o(s,null,m(t.options,e=>(h(),d(g,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var Mt=B(Ot,[[`render`,jt],[`__scopeId`,`data-v-a20833bb`]]),Nt=_({name:`PixelStyleSelector`,components:{ElSelect:v,ElOption:y},data(){return{options:[{value:`square`,label:this.$t(`qrart.pixelStyle.square`)},{value:`rounded`,label:this.$t(`qrart.pixelStyle.rounded`)},{value:`dot`,label:this.$t(`qrart.pixelStyle.dot`)},{value:`squircle`,label:this.$t(`qrart.pixelStyle.squircle`)},{value:`row`,label:this.$t(`qrart.pixelStyle.row`)},{value:`column`,label:this.$t(`qrart.pixelStyle.column`)}]}},computed:{value:{get(){return this.$store.state.qrart?.config?.pixel_style},set(e){console.debug(`set pixel_style`,e),this.$store.commit(`qrart/setConfig`,{...this.$store.state.qrart?.config,pixel_style:e})}}},mounted(){this.value||=R}}),Pt={class:`field`},Ft={class:`text-sm font-bold block mb-2`};function It(t,n,a,l,u,p){let g=c(`el-option`),_=c(`el-select`);return h(),o(`div`,Pt,[e(`span`,Ft,r(t.$t(`qrart.name.pixelStyle`)),1),i(_,{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,clearable:``,class:`value`,placeholder:t.$t(`qrart.placeholder.pixelStyle`)},{default:f(()=>[(h(!0),o(s,null,m(t.options,e=>(h(),d(g,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var Lt=B(Nt,[[`render`,It],[`__scopeId`,`data-v-aca7f79f`]]),Rt=_({name:`SeedInput`,components:{ElInput:K},data(){return{}},computed:{value:{get(){return this.$store.state.qrart?.config?.seed},set(e){console.debug(`set seed`,e),this.$store.commit(`qrart/setConfig`,{...this.$store.state.qrart?.config,seed:e?parseInt(e):void 0})}}},mounted(){this.value||=void 0}}),zt={class:`field`},Bt={class:`text-sm font-bold block mb-2`};function Vt(t,n,a,s,l,u){let d=c(`el-input`);return h(),o(`div`,zt,[e(`span`,Bt,r(t.$t(`qrart.name.seed`)),1),i(d,{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,class:`value`,placeholder:t.$t(`qrart.placeholder.seed`)},null,8,[`modelValue`,`placeholder`])])}var Ht=B(Rt,[[`render`,Vt],[`__scopeId`,`data-v-d939305d`]]),Ut=_({name:`PresetSelector`,components:{ElImage:ce},data(){return{options:[{value:`sunset`,label:this.$t(`qrart.preset.sunset`),url:`https://cdn.acedata.cloud/rp1h1s.png`},{value:`floral`,label:this.$t(`qrart.preset.floral`),url:`https://cdn.acedata.cloud/upyikx.png`},{value:`snowflakes`,label:this.$t(`qrart.preset.snowflakes`),url:`https://cdn.acedata.cloud/j447da.png`},{value:`feathers`,label:this.$t(`qrart.preset.feathers`),url:`https://cdn.acedata.cloud/d2ctz9.png`},{value:`raindrops`,label:this.$t(`qrart.preset.raindrops`),url:`https://cdn.acedata.cloud/xv2t3s.png`},{value:`ultra-realism`,label:this.$t(`qrart.preset.ultraRealism`),url:`https://cdn.acedata.cloud/nlor4y.png`},{value:`epic-realms`,label:this.$t(`qrart.preset.epicRealms`),url:`https://cdn.acedata.cloud/wwzkvy.png`},{value:`intricate-studio`,label:this.$t(`qrart.preset.intricateStudio`),url:`https://cdn.acedata.cloud/4kzf5y.png`},{value:`symmetric-masterpiece`,label:this.$t(`qrart.preset.symmetricMasterpiece`),url:`https://cdn.acedata.cloud/ff4ii2.png`},{value:`luminous-highway`,label:this.$t(`qrart.preset.luminousHighway`),url:`https://cdn.acedata.cloud/cliodt.png`},{value:`celestial-journey`,label:this.$t(`qrart.preset.celestialJourney`),url:`https://cdn.acedata.cloud/ejellf.png`},{value:`neon-mech`,label:this.$t(`qrart.preset.neonMech`),url:`https://cdn.acedata.cloud/3z0y6z.png`},{value:`ethereal-low-poly`,label:this.$t(`qrart.preset.etherealLowPoly`),url:`https://cdn.acedata.cloud/36o0mm.png`},{value:`golden-vista`,label:this.$t(`qrart.preset.goldenVista`),url:`https://cdn.acedata.cloud/xa0267.png`},{value:`cinematic-expanse`,label:this.$t(`qrart.preset.cinematicExpanse`),url:`https://cdn.acedata.cloud/krl5qp.png`},{value:`cinematic-warm`,label:this.$t(`qrart.preset.cinematicWarm`),url:`https://cdn.acedata.cloud/e1aahg.png`},{value:`desolate-wilderness`,label:this.$t(`qrart.preset.desolateWilderness`),url:`https://cdn.acedata.cloud/9evqqu.png`},{value:`vibrant-palette`,label:this.$t(`qrart.preset.vibrantPalette`),url:`https://cdn.acedata.cloud/3fvsmz.png`},{value:`enigmatic-journey`,label:this.$t(`qrart.preset.enigmaticJourney`),url:`https://cdn.acedata.cloud/l6kku0.png`},{value:`timeless-cinematic`,label:this.$t(`qrart.preset.timelessCinematic`),url:`https://cdn.acedata.cloud/h5mzyn.png`},{value:`regal-galaxy`,label:this.$t(`qrart.preset.regalGalaxy`),url:`https://cdn.acedata.cloud/czkegd.png`},{value:`illustrious-canvas`,label:this.$t(`qrart.preset.illustriousCanvas`),url:`https://cdn.acedata.cloud/m8hwzh.png`},{value:`expressive-mural`,label:this.$t(`qrart.preset.expressiveMural`),url:`https://cdn.acedata.cloud/g4v1rb.png`},{value:`serene-haze`,label:this.$t(`qrart.preset.sereneHaze`),url:`https://cdn.acedata.cloud/3w3ixr.png`}]}},computed:{value:{get(){return this.$store.state.qrart?.config?.preset},set(e){console.debug(`set qrw`,e),this.$store.commit(`qrart/setConfig`,{...this.$store.state.qrart?.config,preset:e})}}},mounted(){this.value||=``}}),Wt={class:`field`},Gt={class:`text-sm font-bold block mb-2`},Kt={class:`pane`},qt=[`onClick`],Jt={class:`name`};function Yt(n,a,l,u,d,f){let p=c(`el-image`);return h(),o(`div`,Wt,[e(`span`,Gt,r(n.$t(`qrart.name.preset`)),1),e(`div`,Kt,[(h(!0),o(s,null,m(n.options,(a,s)=>(h(),o(`div`,{key:s,class:t({item:!0,active:n.value===a.value}),onClick:e=>n.value===a.value?n.value=void 0:n.value=a.value},[i(p,{src:a.url,fit:`fill`,class:`preview`},null,8,[`src`]),e(`span`,Jt,r(a.label),1)],10,qt))),128))])])}var Xt=B(Ut,[[`render`,Yt],[`__scopeId`,`data-v-65c34adf`]]),Zt=_({name:`ContentInput`,components:{UploadIcon:I,ElInput:K,ElUpload:b,ElRadioGroup:C,ElButton:W,ElRadioButton:S,ImagePreview:ue},mixins:[G,q],data(){return{inputWay:`input`,fileList:[],uploadUrl:J()+`/api/v1/files/`}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>e?.response?.file_url)},value:{get(){return this.$store.state.qrart?.config?.content},set(e){this.$store.commit(`qrart/setConfig`,{...this.$store.state.qrart?.config,content:e,content_image_url:void 0})}}},mounted(){this.value||=``,this.onSetContentImageUrl()},methods:{onExceed(){Z.warning(this.$t(`qrart.message.uploadDocumentsExceed`))},onError(){Z.error(this.$t(`qrart.message.uploadDocumentsError`))},onSetContentImageUrl(){let e=this.urls?.[0];this.$store.commit(`qrart/setConfig`,{...this.$store.state.qrart?.config,content:void 0,content_image_url:e})},async onSuccess(){this.onSetContentImageUrl()}}}),Qt={class:`field`},$t={class:`flex justify-between items-center mb-4`},en={class:`text-sm font-bold title`},tn={class:`flex items-center`},nn={key:2,class:`description`};function rn(t,s,l,u,p,m){let g=c(`el-radio-button`),_=c(`el-radio-group`),v=c(`el-input`),y=c(`image-preview`),b=c(`upload-icon`),x=c(`el-button`),S=c(`el-upload`);return h(),o(`div`,Qt,[e(`div`,$t,[e(`span`,en,r(t.$t(`qrart.name.content`)),1),e(`div`,tn,[i(_,{modelValue:t.inputWay,"onUpdate:modelValue":s[0]||=e=>t.inputWay=e},{default:f(()=>[i(g,{label:`input`},{default:f(()=>[n(r(t.$t(`qrart.inputWay.input`)),1)]),_:1}),i(g,{label:`upload`},{default:f(()=>[n(r(t.$t(`qrart.inputWay.upload`)),1)]),_:1})]),_:1},8,[`modelValue`])])]),t.inputWay==`input`?(h(),d(v,{key:0,modelValue:t.value,"onUpdate:modelValue":s[1]||=e=>t.value=e,class:`content`,placeholder:t.$t(`qrart.placeholder.content`)},null,8,[`modelValue`,`placeholder`])):a(``,!0),t.inputWay==`upload`?(h(),d(S,{key:1,ref:`uploader`,"file-list":t.fileList,"onUpdate:fileList":s[2]||=e=>t.fileList=e,accept:`.png,.jpg,.jpeg,.gif,.bmp,.webp`,name:`file`,class:`upload upload-wrapper`,limit:1,multiple:!1,"list-type":`picture`,action:t.uploadUrl,"on-exceed":t.onExceed,"on-error":t.onError,"on-success":t.onSuccess,headers:t.headers},{file:f(({file:e})=>[i(y,{url:e.url||e.response?.file_url,name:e.name,percentage:e.percentage,onRemove:n=>t.fileList.splice(t.fileList.indexOf(e),1)},null,8,[`url`,`name`,`percentage`,`onRemove`])]),default:f(()=>[i(x,{size:`small`,type:`primary`,round:``},{default:f(()=>[i(b,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),n(` `+r(t.$t(`qrart.button.uploadQr`)),1)]),_:1})]),_:1},8,[`file-list`,`action`,`on-exceed`,`on-error`,`on-success`,`headers`])):a(``,!0),t.inputWay==`upload`?(h(),o(`p`,nn,r(t.$t(`qrart.message.uploadQr`)),1)):a(``,!0)])}var an=B(Zt,[[`render`,rn],[`__scopeId`,`data-v-3f03e72c`]]),on=_({name:`PromptInput`,components:{PromptTextarea:M},computed:{value:{get(){return this.$store.state.qrart?.config?.prompt},set(e){this.$store.commit(`qrart/setConfig`,{...this.$store.state.qrart?.config,prompt:e})}}},mounted(){this.value||=``}});function sn(e,t,n,r,i,a){let o=c(`prompt-textarea`);return h(),d(o,{modelValue:e.value,"onUpdate:modelValue":t[0]||=t=>e.value=t,title:e.$t(`qrart.name.prompt`),placeholder:e.$t(`qrart.placeholder.prompt`)},null,8,[`modelValue`,`title`,`placeholder`])}var cn=_({name:`ConfigPanel`,components:{MagicIcon:L,ElButton:W,Consumption:de,TypeSelector:ke,PositionSelector:St,PixelStyleSelector:Lt,PaddingLevelSelector:Dt,SeedInput:Ht,AspectRatioSelector:Ie,QrwSelector:Ve,EclSelector:_t,StepsSelector:Ke,PaddingNoiseSelector:Mt,AdvancedSelector:Ze,MarkerShapeSelector:nt,SubMarkerSelector:st,RotateSelector:ft,PresetSelector:Xt,ContentInput:an,PromptInput:B(on,[[`render`,sn]])},emits:[`generate`],computed:{config(){return this.$store.state.qrart?.config},consumption(){return V(this.config,this.service?.cost)},service(){return this.$store.state.qrart?.service}}}),ln={class:`flex flex-col h-full`},un={class:`flex-1 overflow-y-auto p-5`},dn={class:`flex flex-col items-center justify-center px-5 pb-5`};function fn(t,s,l,u,p,m){let g=c(`type-selector`),_=c(`content-input`),v=c(`prompt-input`),y=c(`aspect-ratio-selector`),b=c(`qrw-selector`),x=c(`preset-selector`),S=c(`position-selector`),C=c(`advanced-selector`),w=c(`steps-selector`),T=c(`seed-input`),E=c(`pixel-style-selector`),D=c(`marker-shape-selector`),O=c(`sub-marker-selector`),k=c(`rotate-selector`),A=c(`ecl-selector`),j=c(`padding-level-selector`),M=c(`padding-noise-selector`),N=c(`consumption`),P=c(`magic-icon`),F=c(`el-button`);return h(),o(`div`,ln,[e(`div`,un,[i(g,{class:`mb-4`}),i(_,{class:`mb-4`}),i(v,{class:`mb-4`}),i(y,{class:`mb-4`}),i(b,{class:`mb-4`}),i(x,{class:`mb-4`}),i(S,{class:`mb-4`}),i(C,{class:`mb-4`}),t.config?.advanced?(h(),d(w,{key:0,class:`mb-4`})):a(``,!0),t.config?.advanced?(h(),d(T,{key:1,class:`mb-4`})):a(``,!0),t.config?.advanced?(h(),d(E,{key:2,class:`mb-4`})):a(``,!0),t.config?.advanced?(h(),d(D,{key:3,class:`mb-4`})):a(``,!0),t.config?.advanced?(h(),d(O,{key:4,class:`mb-4`})):a(``,!0),t.config?.advanced?(h(),d(k,{key:5,class:`mb-4`})):a(``,!0),t.config?.advanced?(h(),d(A,{key:6,class:`mb-4`})):a(``,!0),t.config?.advanced?(h(),d(j,{key:7,class:`mb-4`})):a(``,!0),t.config?.advanced?(h(),d(M,{key:8,class:`mb-4`})):a(``,!0)]),e(`div`,dn,[i(N,{value:t.consumption,service:t.service},null,8,[`value`,`service`]),i(F,{type:`primary`,class:`btn w-full`,round:``,onClick:s[0]||=e=>t.$emit(`generate`)},{default:f(()=>[i(P,{class:`mr-2`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),n(` `+r(t.$t(`qrart.button.generate`)),1)]),_:1})])])}var pn=B(cn,[[`render`,fn]]),mn=_({name:`TaskPreview`,components:{ChannelIcon:j,ExternalLinkIcon:A,GrowthIcon:ve,InfoIcon:N,MagicIcon:L,MessageIcon:P,RewardIcon:F,TimeIcon:O,WarningIcon:ee,CopyToClipboard:k,ElAlert:x,ImageWrapper:_e,ApiCodeButton:he},props:{modelValue:{type:Object,required:!0}},data(){return{}},computed:{application(){return this.$store.state.qrart?.application}},methods:{onOpenLink(e){window.open(e,`_blank`)},onReload(e){let t=e.target,n=new URL(t.src),r=n.searchParams.get(`retry`);if(!r)n.searchParams.set(`retry`,`1`);else if(parseInt(r)<2)n.searchParams.set(`retry`,(parseInt(r)+1).toString());else return;t.src=n.toString()},onOpenUrl(e){window.open(e,`_blank`)},onDownload(e){let t=document.createElement(`a`);t.href=e,t.download=e.split(`/`).pop(),t.click()}}}),hn={class:`preview w-full h-fit text-left flex flex-row mb-[15px]`},gn={class:`left`},_n={class:`main flex-1 w-[calc(100%-70px)] min-w-0 pt-[10px] pr-[10px] pb-0 pl-[10px]`},vn={class:`bot text-[16px] font-bold text-[var(--el-color-primary)] overflow-hidden text-ellipsis whitespace-nowrap`},yn={class:`datetime text-[12px] font-normal text-[var(--el-text-color-secondary)] ml-[10px]`},bn={class:`info`},xn={key:0,class:`prompt mt-2 text-[14px] font-bold text-[var(--el-text-color-regular)] mb-[10px] overflow-hidden text-ellipsis whitespace-nowrap`},Sn={key:0},Cn={key:0,class:t({content:!0,failed:!0})},wn={class:t({operations:!0,"mt-2":!0,"mb-2":!0})},Tn={class:`description`},En={class:`description`},$={key:0,class:`description`},Dn={key:1,class:`description`},On=[`aria-label`,`title`],kn={key:2,class:`description`},An={key:3,class:`description`},jn={key:1,class:t({content:!0})},Mn={class:`description`},Nn={class:`description`},Pn={key:0,class:`description`},Fn={class:`description`},In={key:2,class:t({content:!0})},Ln={class:`description`};function Rn(t,s,l,u,p,m){let g=c(`capability-presentation`),_=c(`image-wrapper`),v=c(`api-code-button`),y=c(`magic-icon`),b=c(`copy-to-clipboard`),x=c(`reward-icon`),S=c(`message-icon`),C=c(`external-link-icon`),w=c(`growth-icon`),T=c(`time-icon`),E=c(`el-alert`),D=c(`warning-icon`),O=c(`info-icon`),k=c(`channel-icon`);return h(),o(`div`,hn,[e(`div`,gn,[i(g,{capability:`qrart`,part:`avatar`,class:`avatar bg-[var(--el-bg-color)] p-[2px] w-[50px] h-[50px] m-[10px] rounded-full`})]),e(`div`,_n,[e(`div`,vn,[i(g,{capability:`qrart`,part:`name`}),e(`span`,yn,r(t.$dayjs.format(``+new Date(parseFloat((t.modelValue?.created_at||``).toString())*1e3))),1)]),e(`div`,bn,[t.modelValue?.request?.prompt?(h(),o(`p`,xn,[n(r(t.modelValue?.request?.prompt)+` `,1),t.modelValue?.response?a(``,!0):(h(),o(`span`,Sn,` - (`+r(t.$t(`qrart.status.pending`))+`) `,1))])):a(``,!0)]),t.modelValue?.response?.success===!0?(h(),o(`div`,Cn,[t.modelValue?.response?.image_url?(h(),d(_,{key:0,src:t.modelValue?.response?.image_url,"raw-src":t.modelValue?.response?.image_url},null,8,[`src`,`raw-src`])):a(``,!0),e(`div`,wn,[i(v,{path:`/qrart/generate`,body:t.modelValue?.request},null,8,[`body`])]),i(E,{closable:!1,class:`mt-2 success`},{default:f(()=>[e(`p`,Tn,[i(y,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),n(` `+r(t.$t(`qrart.name.taskId`))+`: `+r(t.modelValue?.id)+` `,1),i(b,{content:t.modelValue?.id,class:`btn-copy`},null,8,[`content`])]),e(`p`,En,[i(x,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),n(` `+r(t.$t(`qrart.name.type`))+`: `+r(t.$t(`qrart.type.`+t.modelValue?.request?.type))+` `,1),i(b,{content:t.modelValue?.request?.type,class:`btn-copy`},null,8,[`content`])]),t.modelValue?.request?.content?(h(),o(`p`,$,[i(S,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),n(` `+r(t.$t(`qrart.name.content`))+`: `+r(t.modelValue?.request?.content)+` `,1),i(b,{content:t.modelValue?.request?.content,class:`btn-copy`},null,8,[`content`])])):a(``,!0),t.modelValue?.request?.content_image_url?(h(),o(`p`,Dn,[i(S,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),n(` `+r(t.$t(`qrart.name.contentImageUrl`))+`: `,1),e(`button`,{type:`button`,class:`icon-button mr-1 cursor-pointer`,"aria-label":t.$t(`common.button.view`),title:t.$t(`common.button.view`),onClick:s[0]||=e=>t.onOpenLink(t.modelValue?.request?.content_image_url)},[i(C,{size:`1em`,"aria-hidden":`true`,focusable:`false`})],8,On)])):a(``,!0),t.modelValue?.request?.seed||t.modelValue?.response?.seed?(h(),o(`p`,kn,[i(w,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),n(` `+r(t.$t(`qrart.name.seed`))+`: `+r(t.modelValue?.request?.seed||t.modelValue?.response?.seed)+` `,1),i(b,{content:(t.modelValue?.request?.seed||t.modelValue?.response?.seed).toString(),class:`btn-copy`},null,8,[`content`])])):a(``,!0),t.modelValue?.elapsed?(h(),o(`p`,An,[i(T,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),n(` `+r(t.$t(`qrart.name.elapsed`))+`: `+r(t.modelValue?.elapsed?.toFixed(2))+`s `,1)])):a(``,!0)]),_:1})])):a(``,!0),t.modelValue?.response?.success===!1?(h(),o(`div`,jn,[i(E,{closable:!1,class:`failure`},{template:f(()=>[i(D,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),n(` `+r(t.$t(`qrart.name.failure`)),1)]),default:f(()=>[e(`p`,Mn,[i(y,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),n(` `+r(t.$t(`qrart.name.taskId`))+`: `+r(t.modelValue?.id)+` `,1),i(b,{content:t.modelValue?.id,class:`btn-copy`},null,8,[`content`])]),e(`p`,Nn,[i(O,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),n(` `+r(t.$t(`qrart.name.failureReason`))+`: `+r(t.modelValue?.response?.error?.message)+` `,1),i(b,{content:t.modelValue?.response?.error?.message,class:`btn-copy`},null,8,[`content`])]),t.modelValue?.elapsed?(h(),o(`p`,Pn,[i(T,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),n(` `+r(t.$t(`qrart.name.elapsed`))+`: `+r(t.modelValue?.elapsed?.toFixed(2))+`s `,1)])):a(``,!0),e(`p`,Fn,[i(k,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),n(` `+r(t.$t(`qrart.name.traceId`))+`: `+r(t.modelValue?.response?.trace_id)+` `,1),i(b,{content:t.modelValue?.response?.trace_id,class:`btn-copy`},null,8,[`content`])])]),_:1})])):a(``,!0),t.modelValue?.response?a(``,!0):(h(),o(`div`,In,[i(E,{closable:!1,class:`info`},{template:f(()=>[i(D,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),n(` `+r(t.$t(`qrart.name.failure`)),1)]),default:f(()=>[e(`p`,Ln,[i(y,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),n(` `+r(t.$t(`qrart.name.taskId`))+`: `+r(t.modelValue?.id)+` `,1),i(b,{content:t.modelValue?.id,class:`btn-copy`},null,8,[`content`])])]),_:1})]))])])}var zn=_({name:`RecentPanel`,components:{TaskPreview:B(mn,[[`render`,Rn],[`__scopeId`,`data-v-a75326ef`]]),BotPlaceholder:ge,NoTasks:pe,ScrollList:fe},props:{loading:{type:Boolean,default:!1}},emits:[`reach-top`],data(){return{job:0}},computed:{tasks(){return{...this.$store.state.qrart?.tasks,items:this.$store.state.qrart?.tasks?.items?.slice()}}},methods:{getScrollElement(){return this.$refs.scrollList?.getScrollElement?.()}}}),Bn={key:0},Vn={key:2,class:`w-full h-full flex items-center justify-center`};function Hn(e,t,n,r,l,u){let p=c(`bot-placeholder`),g=c(`task-preview`),_=c(`scroll-list`),v=c(`no-tasks`);return h(),o(s,null,[e.tasks?.items===void 0?(h(),o(`div`,Bn,[i(p)])):e.tasks?.items?.length&&e.tasks?.items?.length>0?(h(),d(_,{key:1,ref:`scrollList`,class:`tasks h-full w-full overflow-y-auto`,loading:e.loading,onReachTop:t[0]||=t=>e.$emit(`reach-top`)},{default:f(()=>[(h(!0),o(s,null,m(e.tasks?.items,(e,t)=>(h(),d(g,{key:t,"model-value":e},null,8,[`model-value`]))),128))]),_:1},8,[`loading`])):a(``,!0),e.tasks?.items?.length===0?(h(),o(`div`,Vn,[i(v)])):a(``,!0)],64)}var Un=_({name:`QrartIndex`,components:{ConfigPanel:pn,Layout:we,ApplicationStatus:le,RecentPanel:B(zn,[[`render`,Hn]])},mixins:[H],inject:[`initialized`],data(){return{task:void 0,job:0,loadingMore:!1,fetchingTasks:!1}},computed:{applicationsLoading(){return this.$store.state.qrart?.status?.getApplications===X.Request},tasksLoading(){return this.$store.state.qrart?.status?.getTasks===X.Request||this.fetchingTasks},service(){return this.$store.state.qrart.service},credential(){return this.$store.state.qrart.credential},config(){return this.$store.state.qrart.config},initializing(){return this.$store.state.qrart.status.getApplications===X.Request},needApply(){return this.$store.state.qrart.status.getApplications===X.Success&&!this.application},application(){return this.$store.state.qrart.application},tasks(){return this.$store.state.qrart.tasks},applications(){return this.$store.state.qrart.applications}},watch:{tasks:{handler(e,t){e?.items?.length>t?.items?.length&&console.debug(`new tasks detected`)},deep:!0},initialized:{async handler(e){e&&(console.debug(`layout initialized`),await this.onGetTasks(),await this.onScrollDown(),this.job=window.setInterval(()=>{this.onGetTasks()},5e3))},immediate:!0}},async mounted(){await this.onGetService()},async unmounted(){window.clearInterval(this.job)},methods:{async onReachTop(){await me({tasks:this.tasks,getTasks:()=>this.tasks,loading:this.loadingMore,setLoading:e=>this.loadingMore=e,isBlocked:()=>this.tasksLoading||this.applicationsLoading,fetch:e=>this.onGetTasks({createdAtMax:e}),getScrollElement:()=>this.getTasksScrollElement()})},async onGetService(){console.debug(`start onGetService`),await this.$store.dispatch(`qrart/getService`),console.debug(`end onGetService`)},async onGetApplication(){console.debug(`start onGetApplications`),await this.$store.dispatch(`qrart/getApplications`),console.debug(`end onGetApplications`),await this.onGetTasks()},onApply(){se.create({application:this.application}).then(({data:e})=>{this.application=e,Z.success(this.$t(`application.message.applySuccessfully`))}).catch(e=>{e?.response?.data?.code===`duplication`&&Z.error(this.$t(`application.message.alreadyApplied`))})},async onScrollDown(){await this.$nextTick();let e=this.getTasksScrollElement();e&&(e.scrollTop=e.scrollHeight)},async onGetTasks(e){if(this.applicationsLoading||this.fetchingTasks){console.debug(`loading`);return}console.debug(`start onGetTasks`,e);let{limit:t=5,createdAtMin:n,createdAtMax:r}=e||{};console.debug(`limit`,t,`createdAtMin`,n,`createdAtMax`,r),this.fetchingTasks=!0;try{await this.$store.dispatch(`qrart/getTasks`,{limit:t,createdAtMin:n,createdAtMax:r})}finally{this.fetchingTasks=!1}},async onGenerate(){if(!ie(this.uploadTracker,e=>this.$t(e),e=>Z.warning(e)))return;let e={type:this.config?.type,content:this.config?.content,content_image_url:this.config?.content_image_url,prompt:this.config?.prompt,aspect_ratio:this.config?.aspect_ratio,async:!0,qrw:this.config?.qrw,steps:this.config?.steps,preset:this.config?.preset,...this.config?.advanced?{position:this.config?.position,pixel_style:this.config?.pixel_style,marker_shape:this.config?.marker_shape,sub_marker:this.config?.sub_marker,rotate:this.config?.rotate,ecl:this.config?.ecl,seed:this.config?.seed,padding_level:this.config?.padding_level,padding_noise:this.config?.padding_noise}:{}};if(!Y())return;let t=this.credential?.token;if(!t){console.error(`no token specified`);return}Z.info(this.$t(`qrart.message.startingTask`)),oe(`qrart`,U.generate(e,{token:t})).then(()=>{Z.success(this.$t(`qrart.message.startTaskSuccess`))}).catch(e=>{(e?.response?.data)?.error?.code===`used_up`?Z.error(this.$t(`qrart.message.usedUp`)):Z.error(this.$t(`qrart.message.startTaskFailed`))}).finally(async()=>{setTimeout(async()=>{await this.onGetTasks(),await this.onScrollDown()},1e3)})},getTasksScrollElement(){return this.$refs.recentPanel?.getScrollElement?.()}}});function Wn(e,t,n,r,a,o){let s=c(`config-panel`),l=c(`application-status`),u=c(`recent-panel`),p=c(`layout`);return h(),d(p,null,{config:f(()=>[i(s,{onGenerate:e.onGenerate},null,8,[`onGenerate`])]),result:f(()=>[i(l,{initializing:e.initializing,application:e.application,applications:e.applications,service:e.service,"need-apply":e.needApply,class:`mb-4`,onRefresh:e.onGetApplication,onSelect:t[0]||=t=>e.$store.dispatch(`qrart/setApplication`,t)},null,8,[`initializing`,`application`,`applications`,`service`,`need-apply`,`onRefresh`]),i(u,{ref:`recentPanel`,class:`panel recent`,loading:e.loadingMore,onReachTop:e.onReachTop},null,8,[`loading`,`onReachTop`])]),_:1})}var Gn=B(Un,[[`render`,Wn],[`__scopeId`,`data-v-f87e6eb4`]]);export{Gn as default};
1
+ import"./rolldown-runtime--c01j_DQ.js";import{A as e,Gt as t,I as n,Jt as r,L as i,M as a,N as o,T as s,at as c,ht as l,it as u,j as d,mt as f,qt as p,rt as m,tt as h,x as g,z as _}from"./vendor-chart-Dw-P17PN.js";import{r as v,t as y}from"./select-CQ3Yu7wn.js";import{t as b}from"./upload-v8raK4er.js";import{t as x}from"./alert-DPz58LTx.js";import{n as S,r as C}from"./radio-DgDgyT2l.js";import{t as w}from"./drawer-BfH8vvcY.js";import{t as T}from"./slider-kwl6TlSS.js";import{t as E}from"./switch-uhda2CZa.js";import{n as D}from"./taskDrawerMixin-C_REr0cS.js";import{t as O}from"./clock-BPgPwle8.js";import{t as k}from"./CopyToClipboard-bVAoPsKa.js";import{t as A}from"./external-link-j76m6WfB.js";import{r as j,t as M}from"./PromptTextarea-Dx6LZW69.js";import{t as N}from"./info-B1uUtwB6.js";import{t as P}from"./message-circle-o42K6pAr.js";import{t as F}from"./sparkles-CO78ChNL.js";import{t as ee}from"./triangle-alert-_9EWA_xN.js";import{t as I}from"./upload-BlySMBQz.js";import{t as L}from"./wand-sparkles-BXIZutC0.js";import{_i as R,bi as z,gi as te,vi as ne,yi as re}from"./constants-OjwdsvEy.js";import{Bt as ie,E as B,Gt as V,Ht as H,Kn as U,Mi as W,Ut as G,Vi as K,Vt as q,ai as J,en as Y,gi as ae,gr as oe,lr as se,ni as X,vi as Z,xi as ce}from"./index-Qs5KlsiO.js";import{t as le}from"./Status-D-953wZS.js";import{t as ue}from"./ImagePreview-JjWdJrJJ.js";import{t as de}from"./Consumption-4o7tEdSM.js";import{a as Q,n as fe,r as pe,t as me}from"./pagination-CHguBFw8.js";import{t as he}from"./ApiCodeButton-Bp3Z0qTW.js";import{t as ge}from"./BotPlaceholder-CQGyf2NP.js";import{t as _e}from"./ImageWrapper-BRJm_KRz.js";var ve=ae(`sprout`,[[`path`,{d:`M14 9.536V7a4 4 0 0 1 4-4h1.5a.5.5 0 0 1 .5.5V5a4 4 0 0 1-4 4 4 4 0 0 0-4 4c0 2 1 3 1 5a5 5 0 0 1-1 3`,key:`139s4v`}],[`path`,{d:`M4 9a5 5 0 0 1 8 4 5 5 0 0 1-8-4`,key:`1dlkgp`}],[`path`,{d:`M5 21h14`,key:`11awu3`}]]),ye=_({name:`LayoutQrart`,components:{MagicIcon:L,ElDrawer:w,ElButton:W},mixins:[D]}),be={class:`main flex flex-row flex-1`},xe={class:`config w-[320px] flex-none h-full min-h-0 overflow-hidden flex flex-col bg-[var(--app-sidebar-bg)] border-r border-[var(--app-border-subtle)]`},Se={class:`result h-full p-6 flex-1 flex flex-col min-w-0 overflow-x-hidden bg-[var(--app-content-bg)]`};function Ce(t,n,r,a,s,d){let p=c(`magic-icon`),m=c(`el-button`),_=c(`el-drawer`);return h(),o(`div`,be,[e(`div`,xe,[u(t.$slots,`config`,{},void 0,!0)]),e(`div`,Se,[u(t.$slots,`result`,{},void 0,!0)]),l(i(m,{circle:``,class:`menu`,"aria-label":t.$t(`common.button.openMenu`),title:t.$t(`common.button.openMenu`),onClick:n[0]||=e=>t.drawer=!0},{default:f(()=>[i(p,{size:`1em`,"aria-hidden":`true`,focusable:`false`})]),_:1},8,[`aria-label`,`title`]),[[g,!t.tasksEmpty]]),i(_,{modelValue:t.drawer,"onUpdate:modelValue":n[1]||=e=>t.drawer=e,direction:`ltr`,"with-header":!1,size:`340px`,class:`generator-drawer`},{default:f(()=>[u(t.$slots,`config`,{},void 0,!0)]),_:3},8,[`modelValue`])])}var we=B(ye,[[`render`,Ce],[`__scopeId`,`data-v-b6a1bb95`]]),Te=_({name:`VersionSelector`,components:{ElSelect:v,ElOption:y},props:{modelValue:{type:String,default:void 0}},emits:[`update:modelValue`],data(){return{options:[{label:this.$t(`qrart.type.text`),value:`text`},{label:this.$t(`qrart.type.link`),value:`link`},{label:this.$t(`qrart.type.email`),value:`email`},{label:this.$t(`qrart.type.phone`),value:`phone`},{label:this.$t(`qrart.type.sms`),value:`sms`}]}},computed:{value:{get(){return this.$store.state.qrart?.config?.type},set(e){console.debug(`set type`,e),this.$store.commit(`qrart/setConfig`,{...this.$store.state.qrart?.config,type:e})}}},mounted(){this.value||=(console.debug(`set default type`,z),z)}}),Ee={class:`field`},De={class:`text-sm font-bold title`};function Oe(t,n,a,l,u,p){let g=c(`el-option`),_=c(`el-select`);return h(),o(`div`,Ee,[e(`span`,De,r(t.$t(`qrart.name.type`)),1),i(_,{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,class:`value`,placeholder:t.$t(`qrart.placeholder.select`)},{default:f(()=>[(h(!0),o(s,null,m(t.options,e=>(h(),d(g,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var ke=B(Te,[[`render`,Oe],[`__scopeId`,`data-v-b4bd8f04`]]),Ae=_({name:`AspectRatioSelector`,data(){return{options:[{value:`1:1`,label:`1:1`,width:30,height:30},{value:`4:3`,label:`4:3`,width:32,height:24},{value:`3:4`,label:`3:4`,width:24,height:32},{value:`16:9`,label:`16:9`,width:32,height:18},{value:`9:16`,label:`9:16`,width:18,height:32}]}},computed:{active(){return this.options.findIndex(e=>e.value===String(this.value))||0},value:{get(){return this.$store.state.qrart?.config?.aspect_ratio},set(e){console.debug(`set aspect ratio`,e),this.$store.commit(`qrart/setConfig`,{...this.$store.state.qrart?.config,aspect_ratio:e})}}},mounted(){this.value||=`1:1`}}),je={class:`text-sm font-bold block mb-2`},Me={class:`items`},Ne=[`onClick`],Pe={class:`name`};function Fe(n,i,a,c,l,u){return h(),o(`div`,null,[e(`span`,je,r(n.$t(`qrart.name.aspectRatio`)),1),e(`div`,Me,[(h(!0),o(s,null,m(n.options,(i,a)=>(h(),o(`div`,{key:a,class:t({active:n.active===a,item:!0}),onClick:e=>n.value=i.value},[e(`div`,{class:t([`preview`,i.label])},[e(`div`,{class:`rect`,style:p({width:i.width+`px`,height:i.height+`px`})},null,4)],2),e(`p`,Pe,r(i.label),1)],10,Ne))),128))])])}var Ie=B(Ae,[[`render`,Fe],[`__scopeId`,`data-v-b7590ecc`]]),Le=_({name:`QrwSelector`,components:{ElSlider:T,InfoIcon:Q},computed:{value:{get(){return this.$store.state.qrart?.config?.qrw||2},set(e){console.debug(`set qrw`,e),this.$store.commit(`qrart/setConfig`,{...this.$store.state.qrart?.config,qrw:e})}}},mounted(){this.value||=(console.debug(`set default qrw`),2)}}),Re={class:`field`},ze={class:`text-sm font-bold title mb-2`};function Be(t,n,a,s,l,u){let d=c(`el-slider`),f=c(`info-icon`);return h(),o(`div`,Re,[e(`span`,ze,r(t.$t(`qrart.name.qrw`)),1),i(d,{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,min:1.5,max:3,step:.1,class:`value`},null,8,[`modelValue`]),i(f,{content:t.$t(`qrart.description.qrw`),class:`info`},null,8,[`content`])])}var Ve=B(Le,[[`render`,Be],[`__scopeId`,`data-v-8410479c`]]),He=_({name:`StepsSelector`,components:{ElSlider:T,InfoIcon:Q},computed:{value:{get(){return this.$store.state.qrart?.config?.steps||20},set(e){console.debug(`set steps`,e),this.$store.commit(`qrart/setConfig`,{...this.$store.state.qrart?.config,steps:e})}}},mounted(){this.value||=(console.debug(`set default steps`,20),20)}}),Ue={class:`field`},We={class:`text-sm font-bold block mb-2`};function Ge(t,n,a,s,l,u){let d=c(`el-slider`),f=c(`info-icon`);return h(),o(`div`,Ue,[e(`span`,We,r(t.$t(`qrart.name.steps`)),1),i(d,{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,min:10,max:20,step:1,class:`value`},null,8,[`modelValue`]),i(f,{content:t.$t(`qrart.description.steps`),class:`info`},null,8,[`content`])])}var Ke=B(He,[[`render`,Ge],[`__scopeId`,`data-v-0c88983e`]]),qe=_({name:`AdvancedSelector`,components:{ElSwitch:E},computed:{value:{get(){return this.$store.state.qrart?.config?.advanced},set(e){console.debug(`set advanced`,e),this.$store.commit(`qrart/setConfig`,{...this.$store.state.qrart?.config,advanced:e})}}},mounted(){this.value===void 0&&(this.value=!1)}}),Je={class:`field`},Ye={class:`title font-bold`};function Xe(t,n,a,s,l,u){let d=c(`el-switch`);return h(),o(`div`,Je,[e(`span`,Ye,r(t.$t(`qrart.name.advanced`)),1),i(d,{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,class:`value`},null,8,[`modelValue`])])}var Ze=B(qe,[[`render`,Xe],[`__scopeId`,`data-v-f8ddf849`]]),Qe=_({name:`MarkerShapeSelector`,components:{ElSelect:v,ElOption:y},data(){return{options:[{value:`square`,label:this.$t(`qrart.markerShape.square`)},{value:`circle`,label:this.$t(`qrart.markerShape.circle`)},{value:`plus`,label:this.$t(`qrart.markerShape.plus`)},{value:`box`,label:this.$t(`qrart.markerShape.box`)},{value:`octagon`,label:this.$t(`qrart.markerShape.octagon`)},{value:`tiny-plus`,label:this.$t(`qrart.markerShape.tinyPlus`)},{value:`random`,label:this.$t(`qrart.markerShape.random`)}]}},computed:{value:{get(){return this.$store.state.qrart?.config?.marker_shape},set(e){console.debug(`set marker_shape`,e),this.$store.commit(`qrart/setConfig`,{...this.$store.state.qrart?.config,marker_shape:e})}}},mounted(){this.value||=te}}),$e={class:`field`},et={class:`text-sm font-bold block mb-2`};function tt(t,n,a,l,u,p){let g=c(`el-option`),_=c(`el-select`);return h(),o(`div`,$e,[e(`span`,et,r(t.$t(`qrart.name.markerShape`)),1),i(_,{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,clearable:``,class:`value`,placeholder:t.$t(`qrart.placeholder.markerShape`)},{default:f(()=>[(h(!0),o(s,null,m(t.options,e=>(h(),d(g,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var nt=B(Qe,[[`render`,tt],[`__scopeId`,`data-v-de71e0b0`]]),rt=_({name:`SubMarkerSelector`,components:{ElSelect:v,ElOption:y},data(){return{options:[{value:`square`,label:this.$t(`qrart.subMarker.square`)},{value:`circle`,label:this.$t(`qrart.subMarker.circle`)},{value:`plus`,label:this.$t(`qrart.subMarker.plus`)},{value:`box`,label:this.$t(`qrart.subMarker.box`)},{value:`random`,label:this.$t(`qrart.subMarker.random`)}]}},computed:{value:{get(){return this.$store.state.qrart?.config?.sub_marker},set(e){console.debug(`set sub_marker`,e),this.$store.commit(`qrart/setConfig`,{...this.$store.state.qrart?.config,sub_marker:e})}}},mounted(){this.value||=re}}),it={class:`field`},at={class:`text-sm font-bold block mb-2`};function ot(t,n,a,l,u,p){let g=c(`el-option`),_=c(`el-select`);return h(),o(`div`,it,[e(`span`,at,r(t.$t(`qrart.name.subMarker`)),1),i(_,{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,clearable:``,class:`value`,placeholder:t.$t(`qrart.placeholder.subMarker`)},{default:f(()=>[(h(!0),o(s,null,m(t.options,e=>(h(),d(g,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var st=B(rt,[[`render`,ot],[`__scopeId`,`data-v-51a39efa`]]),ct=_({name:`RotateSelector`,components:{ElSelect:v,ElOption:y},data(){return{options:[{value:0,label:0},{value:90,label:90},{value:180,label:180},{value:270,label:270}]}},computed:{value:{get(){return this.$store.state.qrart?.config?.rotate},set(e){console.debug(`set rotate`,e),this.$store.commit(`qrart/setConfig`,{...this.$store.state.qrart?.config,rotate:e})}}},mounted(){this.value||=0}}),lt={class:`field`},ut={class:`text-sm font-bold block mb-2`};function dt(t,n,a,l,u,p){let g=c(`el-option`),_=c(`el-select`);return h(),o(`div`,lt,[e(`span`,ut,r(t.$t(`qrart.name.rotate`)),1),i(_,{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,clearable:``,class:`value`,placeholder:t.$t(`qrart.placeholder.rotate`)},{default:f(()=>[(h(!0),o(s,null,m(t.options,e=>(h(),d(g,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var ft=B(ct,[[`render`,dt],[`__scopeId`,`data-v-72e35835`]]),pt=_({name:`EclSelector`,components:{ElSelect:v,ElOption:y},data(){return{options:[{value:`L`,label:`L`},{value:`M`,label:`M`},{value:`Q`,label:`Q`},{value:`H`,label:`H`}]}},computed:{value:{get(){return this.$store.state.qrart?.config?.ecl},set(e){console.debug(`set ecl`,e),this.$store.commit(`qrart/setConfig`,{...this.$store.state.qrart?.config,ecl:e})}}},mounted(){this.value||=`H`}}),mt={class:`field`},ht={class:`text-sm font-bold block mb-2`};function gt(t,n,a,l,u,p){let g=c(`el-option`),_=c(`el-select`);return h(),o(`div`,mt,[e(`span`,ht,r(t.$t(`qrart.name.ecl`)),1),i(_,{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,clearable:``,class:`value`,placeholder:t.$t(`qrart.placeholder.ecl`)},{default:f(()=>[(h(!0),o(s,null,m(t.options,e=>(h(),d(g,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var _t=B(pt,[[`render`,gt],[`__scopeId`,`data-v-b3a5e331`]]),vt=_({name:`MarkerShapeSelector`,components:{ElSelect:v,ElOption:y},data(){return{options:[{value:`center`,label:this.$t(`qrart.position.center`)},{value:`top`,label:this.$t(`qrart.position.top`)},{value:`right`,label:this.$t(`qrart.position.right`)},{value:`bottom`,label:this.$t(`qrart.position.bottom`)},{value:`left`,label:this.$t(`qrart.position.left`)},{value:`top-left`,label:this.$t(`qrart.position.topLeft`)},{value:`top-right`,label:this.$t(`qrart.position.topRight`)},{value:`bottom-left`,label:this.$t(`qrart.position.bottomLeft`)},{value:`bottom-right`,label:this.$t(`qrart.position.bottomRight`)}]}},computed:{value:{get(){return this.$store.state.qrart?.config?.position},set(e){console.debug(`set position`,e),this.$store.commit(`qrart/setConfig`,{...this.$store.state.qrart?.config,position:e})}}},mounted(){this.value||=ne}}),yt={class:`field`},bt={class:`title font-bold`};function xt(t,n,a,l,u,p){let g=c(`el-option`),_=c(`el-select`);return h(),o(`div`,yt,[e(`span`,bt,r(t.$t(`qrart.name.position`)),1),i(_,{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,clearable:``,class:`value`,placeholder:t.$t(`qrart.placeholder.position`)},{default:f(()=>[(h(!0),o(s,null,m(t.options,e=>(h(),d(g,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var St=B(vt,[[`render`,xt],[`__scopeId`,`data-v-54186505`]]),Ct=_({name:`PaddingLevelSelector`,components:{ElSelect:v,ElOption:y},data(){return{options:[{value:0,label:0},{value:5,label:5},{value:10,label:10},{value:10,label:10},{value:15,label:15},{value:20,label:20}]}},computed:{value:{get(){return this.$store.state.qrart?.config?.padding_level},set(e){console.debug(`set padding_level`,e),this.$store.commit(`qrart/setConfig`,{...this.$store.state.qrart?.config,padding_level:e})}}},mounted(){this.value||=5}}),wt={class:`field`},Tt={class:`text-sm font-bold block mb-2`};function Et(t,n,a,l,u,p){let g=c(`el-option`),_=c(`el-select`);return h(),o(`div`,wt,[e(`span`,Tt,r(t.$t(`qrart.name.paddingLevel`)),1),i(_,{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,clearable:``,class:`value`,placeholder:t.$t(`qrart.placeholder.paddingLevel`)},{default:f(()=>[(h(!0),o(s,null,m(t.options,e=>(h(),d(g,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var Dt=B(Ct,[[`render`,Et],[`__scopeId`,`data-v-49d801fd`]]),Ot=_({name:`PaddingNoiseSelector`,components:{ElSelect:v,ElOption:y},data(){return{options:[{value:0,label:0},{value:.25,label:.25},{value:.5,label:.5},{value:.75,label:.75},{value:1,label:1}]}},computed:{value:{get(){return this.$store.state.qrart?.config?.padding_noise},set(e){console.debug(`set padding_noise`,e),this.$store.commit(`qrart/setConfig`,{...this.$store.state.qrart?.config,padding_noise:e})}}},mounted(){this.value||=0}}),kt={class:`field`},At={class:`text-sm font-bold block mb-2`};function jt(t,n,a,l,u,p){let g=c(`el-option`),_=c(`el-select`);return h(),o(`div`,kt,[e(`span`,At,r(t.$t(`qrart.name.paddingNoise`)),1),i(_,{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,clearable:``,class:`value`,placeholder:t.$t(`qrart.placeholder.paddingNoise`)},{default:f(()=>[(h(!0),o(s,null,m(t.options,e=>(h(),d(g,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var Mt=B(Ot,[[`render`,jt],[`__scopeId`,`data-v-a20833bb`]]),Nt=_({name:`PixelStyleSelector`,components:{ElSelect:v,ElOption:y},data(){return{options:[{value:`square`,label:this.$t(`qrart.pixelStyle.square`)},{value:`rounded`,label:this.$t(`qrart.pixelStyle.rounded`)},{value:`dot`,label:this.$t(`qrart.pixelStyle.dot`)},{value:`squircle`,label:this.$t(`qrart.pixelStyle.squircle`)},{value:`row`,label:this.$t(`qrart.pixelStyle.row`)},{value:`column`,label:this.$t(`qrart.pixelStyle.column`)}]}},computed:{value:{get(){return this.$store.state.qrart?.config?.pixel_style},set(e){console.debug(`set pixel_style`,e),this.$store.commit(`qrart/setConfig`,{...this.$store.state.qrart?.config,pixel_style:e})}}},mounted(){this.value||=R}}),Pt={class:`field`},Ft={class:`text-sm font-bold block mb-2`};function It(t,n,a,l,u,p){let g=c(`el-option`),_=c(`el-select`);return h(),o(`div`,Pt,[e(`span`,Ft,r(t.$t(`qrart.name.pixelStyle`)),1),i(_,{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,clearable:``,class:`value`,placeholder:t.$t(`qrart.placeholder.pixelStyle`)},{default:f(()=>[(h(!0),o(s,null,m(t.options,e=>(h(),d(g,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`placeholder`])])}var Lt=B(Nt,[[`render`,It],[`__scopeId`,`data-v-aca7f79f`]]),Rt=_({name:`SeedInput`,components:{ElInput:K},data(){return{}},computed:{value:{get(){return this.$store.state.qrart?.config?.seed},set(e){console.debug(`set seed`,e),this.$store.commit(`qrart/setConfig`,{...this.$store.state.qrart?.config,seed:e?parseInt(e):void 0})}}},mounted(){this.value||=void 0}}),zt={class:`field`},Bt={class:`text-sm font-bold block mb-2`};function Vt(t,n,a,s,l,u){let d=c(`el-input`);return h(),o(`div`,zt,[e(`span`,Bt,r(t.$t(`qrart.name.seed`)),1),i(d,{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,class:`value`,placeholder:t.$t(`qrart.placeholder.seed`)},null,8,[`modelValue`,`placeholder`])])}var Ht=B(Rt,[[`render`,Vt],[`__scopeId`,`data-v-d939305d`]]),Ut=_({name:`PresetSelector`,components:{ElImage:ce},data(){return{options:[{value:`sunset`,label:this.$t(`qrart.preset.sunset`),url:`https://cdn.acedata.cloud/rp1h1s.png`},{value:`floral`,label:this.$t(`qrart.preset.floral`),url:`https://cdn.acedata.cloud/upyikx.png`},{value:`snowflakes`,label:this.$t(`qrart.preset.snowflakes`),url:`https://cdn.acedata.cloud/j447da.png`},{value:`feathers`,label:this.$t(`qrart.preset.feathers`),url:`https://cdn.acedata.cloud/d2ctz9.png`},{value:`raindrops`,label:this.$t(`qrart.preset.raindrops`),url:`https://cdn.acedata.cloud/xv2t3s.png`},{value:`ultra-realism`,label:this.$t(`qrart.preset.ultraRealism`),url:`https://cdn.acedata.cloud/nlor4y.png`},{value:`epic-realms`,label:this.$t(`qrart.preset.epicRealms`),url:`https://cdn.acedata.cloud/wwzkvy.png`},{value:`intricate-studio`,label:this.$t(`qrart.preset.intricateStudio`),url:`https://cdn.acedata.cloud/4kzf5y.png`},{value:`symmetric-masterpiece`,label:this.$t(`qrart.preset.symmetricMasterpiece`),url:`https://cdn.acedata.cloud/ff4ii2.png`},{value:`luminous-highway`,label:this.$t(`qrart.preset.luminousHighway`),url:`https://cdn.acedata.cloud/cliodt.png`},{value:`celestial-journey`,label:this.$t(`qrart.preset.celestialJourney`),url:`https://cdn.acedata.cloud/ejellf.png`},{value:`neon-mech`,label:this.$t(`qrart.preset.neonMech`),url:`https://cdn.acedata.cloud/3z0y6z.png`},{value:`ethereal-low-poly`,label:this.$t(`qrart.preset.etherealLowPoly`),url:`https://cdn.acedata.cloud/36o0mm.png`},{value:`golden-vista`,label:this.$t(`qrart.preset.goldenVista`),url:`https://cdn.acedata.cloud/xa0267.png`},{value:`cinematic-expanse`,label:this.$t(`qrart.preset.cinematicExpanse`),url:`https://cdn.acedata.cloud/krl5qp.png`},{value:`cinematic-warm`,label:this.$t(`qrart.preset.cinematicWarm`),url:`https://cdn.acedata.cloud/e1aahg.png`},{value:`desolate-wilderness`,label:this.$t(`qrart.preset.desolateWilderness`),url:`https://cdn.acedata.cloud/9evqqu.png`},{value:`vibrant-palette`,label:this.$t(`qrart.preset.vibrantPalette`),url:`https://cdn.acedata.cloud/3fvsmz.png`},{value:`enigmatic-journey`,label:this.$t(`qrart.preset.enigmaticJourney`),url:`https://cdn.acedata.cloud/l6kku0.png`},{value:`timeless-cinematic`,label:this.$t(`qrart.preset.timelessCinematic`),url:`https://cdn.acedata.cloud/h5mzyn.png`},{value:`regal-galaxy`,label:this.$t(`qrart.preset.regalGalaxy`),url:`https://cdn.acedata.cloud/czkegd.png`},{value:`illustrious-canvas`,label:this.$t(`qrart.preset.illustriousCanvas`),url:`https://cdn.acedata.cloud/m8hwzh.png`},{value:`expressive-mural`,label:this.$t(`qrart.preset.expressiveMural`),url:`https://cdn.acedata.cloud/g4v1rb.png`},{value:`serene-haze`,label:this.$t(`qrart.preset.sereneHaze`),url:`https://cdn.acedata.cloud/3w3ixr.png`}]}},computed:{value:{get(){return this.$store.state.qrart?.config?.preset},set(e){console.debug(`set qrw`,e),this.$store.commit(`qrart/setConfig`,{...this.$store.state.qrart?.config,preset:e})}}},mounted(){this.value||=``}}),Wt={class:`field`},Gt={class:`text-sm font-bold block mb-2`},Kt={class:`pane`},qt=[`onClick`],Jt={class:`name`};function Yt(n,a,l,u,d,f){let p=c(`el-image`);return h(),o(`div`,Wt,[e(`span`,Gt,r(n.$t(`qrart.name.preset`)),1),e(`div`,Kt,[(h(!0),o(s,null,m(n.options,(a,s)=>(h(),o(`div`,{key:s,class:t({item:!0,active:n.value===a.value}),onClick:e=>n.value===a.value?n.value=void 0:n.value=a.value},[i(p,{src:a.url,fit:`fill`,class:`preview`},null,8,[`src`]),e(`span`,Jt,r(a.label),1)],10,qt))),128))])])}var Xt=B(Ut,[[`render`,Yt],[`__scopeId`,`data-v-65c34adf`]]),Zt=_({name:`ContentInput`,components:{UploadIcon:I,ElInput:K,ElUpload:b,ElRadioGroup:C,ElButton:W,ElRadioButton:S,ImagePreview:ue},mixins:[G,q],data(){return{inputWay:`input`,fileList:[],uploadUrl:J()+`/api/v1/files/`}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>e?.response?.file_url)},value:{get(){return this.$store.state.qrart?.config?.content},set(e){this.$store.commit(`qrart/setConfig`,{...this.$store.state.qrart?.config,content:e,content_image_url:void 0})}}},mounted(){this.value||=``,this.onSetContentImageUrl()},methods:{onExceed(){Z.warning(this.$t(`qrart.message.uploadDocumentsExceed`))},onError(){Z.error(this.$t(`qrart.message.uploadDocumentsError`))},onSetContentImageUrl(){let e=this.urls?.[0];this.$store.commit(`qrart/setConfig`,{...this.$store.state.qrart?.config,content:void 0,content_image_url:e})},async onSuccess(){this.onSetContentImageUrl()}}}),Qt={class:`field`},$t={class:`flex justify-between items-center mb-4`},en={class:`text-sm font-bold title`},tn={class:`flex items-center`},nn={key:2,class:`description`};function rn(t,s,l,u,p,m){let g=c(`el-radio-button`),_=c(`el-radio-group`),v=c(`el-input`),y=c(`image-preview`),b=c(`upload-icon`),x=c(`el-button`),S=c(`el-upload`);return h(),o(`div`,Qt,[e(`div`,$t,[e(`span`,en,r(t.$t(`qrart.name.content`)),1),e(`div`,tn,[i(_,{modelValue:t.inputWay,"onUpdate:modelValue":s[0]||=e=>t.inputWay=e},{default:f(()=>[i(g,{label:`input`},{default:f(()=>[n(r(t.$t(`qrart.inputWay.input`)),1)]),_:1}),i(g,{label:`upload`},{default:f(()=>[n(r(t.$t(`qrart.inputWay.upload`)),1)]),_:1})]),_:1},8,[`modelValue`])])]),t.inputWay==`input`?(h(),d(v,{key:0,modelValue:t.value,"onUpdate:modelValue":s[1]||=e=>t.value=e,class:`content`,placeholder:t.$t(`qrart.placeholder.content`)},null,8,[`modelValue`,`placeholder`])):a(``,!0),t.inputWay==`upload`?(h(),d(S,{key:1,ref:`uploader`,"file-list":t.fileList,"onUpdate:fileList":s[2]||=e=>t.fileList=e,accept:`.png,.jpg,.jpeg,.gif,.bmp,.webp`,name:`file`,class:`upload upload-wrapper`,limit:1,multiple:!1,"list-type":`picture`,action:t.uploadUrl,"on-exceed":t.onExceed,"on-error":t.onError,"on-success":t.onSuccess,headers:t.headers},{file:f(({file:e})=>[i(y,{url:e.url||e.response?.file_url,name:e.name,percentage:e.percentage,onRemove:n=>t.fileList.splice(t.fileList.indexOf(e),1)},null,8,[`url`,`name`,`percentage`,`onRemove`])]),default:f(()=>[i(x,{size:`small`,type:`primary`,round:``},{default:f(()=>[i(b,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),n(` `+r(t.$t(`qrart.button.uploadQr`)),1)]),_:1})]),_:1},8,[`file-list`,`action`,`on-exceed`,`on-error`,`on-success`,`headers`])):a(``,!0),t.inputWay==`upload`?(h(),o(`p`,nn,r(t.$t(`qrart.message.uploadQr`)),1)):a(``,!0)])}var an=B(Zt,[[`render`,rn],[`__scopeId`,`data-v-3f03e72c`]]),on=_({name:`PromptInput`,components:{PromptTextarea:M},computed:{value:{get(){return this.$store.state.qrart?.config?.prompt},set(e){this.$store.commit(`qrart/setConfig`,{...this.$store.state.qrart?.config,prompt:e})}}},mounted(){this.value||=``}});function sn(e,t,n,r,i,a){let o=c(`prompt-textarea`);return h(),d(o,{modelValue:e.value,"onUpdate:modelValue":t[0]||=t=>e.value=t,title:e.$t(`qrart.name.prompt`),placeholder:e.$t(`qrart.placeholder.prompt`)},null,8,[`modelValue`,`title`,`placeholder`])}var cn=_({name:`ConfigPanel`,components:{MagicIcon:L,ElButton:W,Consumption:de,TypeSelector:ke,PositionSelector:St,PixelStyleSelector:Lt,PaddingLevelSelector:Dt,SeedInput:Ht,AspectRatioSelector:Ie,QrwSelector:Ve,EclSelector:_t,StepsSelector:Ke,PaddingNoiseSelector:Mt,AdvancedSelector:Ze,MarkerShapeSelector:nt,SubMarkerSelector:st,RotateSelector:ft,PresetSelector:Xt,ContentInput:an,PromptInput:B(on,[[`render`,sn]])},emits:[`generate`],computed:{config(){return this.$store.state.qrart?.config},consumption(){return V(this.config,this.service?.cost)},service(){return this.$store.state.qrart?.service}}}),ln={class:`flex flex-col h-full`},un={class:`flex-1 overflow-y-auto p-5`},dn={class:`flex flex-col items-center justify-center px-5 pb-5`};function fn(t,s,l,u,p,m){let g=c(`type-selector`),_=c(`content-input`),v=c(`prompt-input`),y=c(`aspect-ratio-selector`),b=c(`qrw-selector`),x=c(`preset-selector`),S=c(`position-selector`),C=c(`advanced-selector`),w=c(`steps-selector`),T=c(`seed-input`),E=c(`pixel-style-selector`),D=c(`marker-shape-selector`),O=c(`sub-marker-selector`),k=c(`rotate-selector`),A=c(`ecl-selector`),j=c(`padding-level-selector`),M=c(`padding-noise-selector`),N=c(`consumption`),P=c(`magic-icon`),F=c(`el-button`);return h(),o(`div`,ln,[e(`div`,un,[i(g,{class:`mb-4`}),i(_,{class:`mb-4`}),i(v,{class:`mb-4`}),i(y,{class:`mb-4`}),i(b,{class:`mb-4`}),i(x,{class:`mb-4`}),i(S,{class:`mb-4`}),i(C,{class:`mb-4`}),t.config?.advanced?(h(),d(w,{key:0,class:`mb-4`})):a(``,!0),t.config?.advanced?(h(),d(T,{key:1,class:`mb-4`})):a(``,!0),t.config?.advanced?(h(),d(E,{key:2,class:`mb-4`})):a(``,!0),t.config?.advanced?(h(),d(D,{key:3,class:`mb-4`})):a(``,!0),t.config?.advanced?(h(),d(O,{key:4,class:`mb-4`})):a(``,!0),t.config?.advanced?(h(),d(k,{key:5,class:`mb-4`})):a(``,!0),t.config?.advanced?(h(),d(A,{key:6,class:`mb-4`})):a(``,!0),t.config?.advanced?(h(),d(j,{key:7,class:`mb-4`})):a(``,!0),t.config?.advanced?(h(),d(M,{key:8,class:`mb-4`})):a(``,!0)]),e(`div`,dn,[i(N,{value:t.consumption,service:t.service},null,8,[`value`,`service`]),i(F,{type:`primary`,class:`btn w-full`,round:``,onClick:s[0]||=e=>t.$emit(`generate`)},{default:f(()=>[i(P,{class:`mr-2`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),n(` `+r(t.$t(`qrart.button.generate`)),1)]),_:1})])])}var pn=B(cn,[[`render`,fn]]),mn=_({name:`TaskPreview`,components:{ChannelIcon:j,ExternalLinkIcon:A,GrowthIcon:ve,InfoIcon:N,MagicIcon:L,MessageIcon:P,RewardIcon:F,TimeIcon:O,WarningIcon:ee,CopyToClipboard:k,ElAlert:x,ImageWrapper:_e,ApiCodeButton:he},props:{modelValue:{type:Object,required:!0}},data(){return{}},computed:{application(){return this.$store.state.qrart?.application}},methods:{onOpenLink(e){window.open(e,`_blank`)},onReload(e){let t=e.target,n=new URL(t.src),r=n.searchParams.get(`retry`);if(!r)n.searchParams.set(`retry`,`1`);else if(parseInt(r)<2)n.searchParams.set(`retry`,(parseInt(r)+1).toString());else return;t.src=n.toString()},onOpenUrl(e){window.open(e,`_blank`)},onDownload(e){let t=document.createElement(`a`);t.href=e,t.download=e.split(`/`).pop(),t.click()}}}),hn={class:`preview w-full h-fit text-left flex flex-row mb-[15px]`},gn={class:`left`},_n={class:`main flex-1 w-[calc(100%-70px)] min-w-0 pt-[10px] pr-[10px] pb-0 pl-[10px]`},vn={class:`bot text-[16px] font-bold text-[var(--el-color-primary)] overflow-hidden text-ellipsis whitespace-nowrap`},yn={class:`datetime text-[12px] font-normal text-[var(--el-text-color-secondary)] ml-[10px]`},bn={class:`info`},xn={key:0,class:`prompt mt-2 text-[14px] font-bold text-[var(--el-text-color-regular)] mb-[10px] overflow-hidden text-ellipsis whitespace-nowrap`},Sn={key:0},Cn={key:0,class:t({content:!0,failed:!0})},wn={class:t({operations:!0,"mt-2":!0,"mb-2":!0})},Tn={class:`description`},En={class:`description`},$={key:0,class:`description`},Dn={key:1,class:`description`},On=[`aria-label`,`title`],kn={key:2,class:`description`},An={key:3,class:`description`},jn={key:1,class:t({content:!0})},Mn={class:`description`},Nn={class:`description`},Pn={key:0,class:`description`},Fn={class:`description`},In={key:2,class:t({content:!0})},Ln={class:`description`};function Rn(t,s,l,u,p,m){let g=c(`capability-presentation`),_=c(`image-wrapper`),v=c(`api-code-button`),y=c(`magic-icon`),b=c(`copy-to-clipboard`),x=c(`reward-icon`),S=c(`message-icon`),C=c(`external-link-icon`),w=c(`growth-icon`),T=c(`time-icon`),E=c(`el-alert`),D=c(`warning-icon`),O=c(`info-icon`),k=c(`channel-icon`);return h(),o(`div`,hn,[e(`div`,gn,[i(g,{capability:`qrart`,part:`avatar`,class:`avatar bg-[var(--el-bg-color)] p-[2px] w-[50px] h-[50px] m-[10px] rounded-full`})]),e(`div`,_n,[e(`div`,vn,[i(g,{capability:`qrart`,part:`name`}),e(`span`,yn,r(t.$dayjs.format(``+new Date(parseFloat((t.modelValue?.created_at||``).toString())*1e3))),1)]),e(`div`,bn,[t.modelValue?.request?.prompt?(h(),o(`p`,xn,[n(r(t.modelValue?.request?.prompt)+` `,1),t.modelValue?.response?a(``,!0):(h(),o(`span`,Sn,` - (`+r(t.$t(`qrart.status.pending`))+`) `,1))])):a(``,!0)]),t.modelValue?.response?.success===!0?(h(),o(`div`,Cn,[t.modelValue?.response?.image_url?(h(),d(_,{key:0,src:t.modelValue?.response?.image_url,"raw-src":t.modelValue?.response?.image_url},null,8,[`src`,`raw-src`])):a(``,!0),e(`div`,wn,[i(v,{path:`/qrart/generate`,body:t.modelValue?.request},null,8,[`body`])]),i(E,{closable:!1,class:`mt-2 success`},{default:f(()=>[e(`p`,Tn,[i(y,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),n(` `+r(t.$t(`qrart.name.taskId`))+`: `+r(t.modelValue?.id)+` `,1),i(b,{content:t.modelValue?.id,class:`btn-copy`},null,8,[`content`])]),e(`p`,En,[i(x,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),n(` `+r(t.$t(`qrart.name.type`))+`: `+r(t.$t(`qrart.type.`+t.modelValue?.request?.type))+` `,1),i(b,{content:t.modelValue?.request?.type,class:`btn-copy`},null,8,[`content`])]),t.modelValue?.request?.content?(h(),o(`p`,$,[i(S,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),n(` `+r(t.$t(`qrart.name.content`))+`: `+r(t.modelValue?.request?.content)+` `,1),i(b,{content:t.modelValue?.request?.content,class:`btn-copy`},null,8,[`content`])])):a(``,!0),t.modelValue?.request?.content_image_url?(h(),o(`p`,Dn,[i(S,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),n(` `+r(t.$t(`qrart.name.contentImageUrl`))+`: `,1),e(`button`,{type:`button`,class:`icon-button mr-1 cursor-pointer`,"aria-label":t.$t(`common.button.view`),title:t.$t(`common.button.view`),onClick:s[0]||=e=>t.onOpenLink(t.modelValue?.request?.content_image_url)},[i(C,{size:`1em`,"aria-hidden":`true`,focusable:`false`})],8,On)])):a(``,!0),t.modelValue?.request?.seed||t.modelValue?.response?.seed?(h(),o(`p`,kn,[i(w,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),n(` `+r(t.$t(`qrart.name.seed`))+`: `+r(t.modelValue?.request?.seed||t.modelValue?.response?.seed)+` `,1),i(b,{content:(t.modelValue?.request?.seed||t.modelValue?.response?.seed).toString(),class:`btn-copy`},null,8,[`content`])])):a(``,!0),t.modelValue?.elapsed?(h(),o(`p`,An,[i(T,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),n(` `+r(t.$t(`qrart.name.elapsed`))+`: `+r(t.modelValue?.elapsed?.toFixed(2))+`s `,1)])):a(``,!0)]),_:1})])):a(``,!0),t.modelValue?.response?.success===!1?(h(),o(`div`,jn,[i(E,{closable:!1,class:`failure`},{template:f(()=>[i(D,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),n(` `+r(t.$t(`qrart.name.failure`)),1)]),default:f(()=>[e(`p`,Mn,[i(y,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),n(` `+r(t.$t(`qrart.name.taskId`))+`: `+r(t.modelValue?.id)+` `,1),i(b,{content:t.modelValue?.id,class:`btn-copy`},null,8,[`content`])]),e(`p`,Nn,[i(O,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),n(` `+r(t.$t(`qrart.name.failureReason`))+`: `+r(t.modelValue?.response?.error?.message)+` `,1),i(b,{content:t.modelValue?.response?.error?.message,class:`btn-copy`},null,8,[`content`])]),t.modelValue?.elapsed?(h(),o(`p`,Pn,[i(T,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),n(` `+r(t.$t(`qrart.name.elapsed`))+`: `+r(t.modelValue?.elapsed?.toFixed(2))+`s `,1)])):a(``,!0),e(`p`,Fn,[i(k,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),n(` `+r(t.$t(`qrart.name.traceId`))+`: `+r(t.modelValue?.response?.trace_id)+` `,1),i(b,{content:t.modelValue?.response?.trace_id,class:`btn-copy`},null,8,[`content`])])]),_:1})])):a(``,!0),t.modelValue?.response?a(``,!0):(h(),o(`div`,In,[i(E,{closable:!1,class:`info`},{template:f(()=>[i(D,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),n(` `+r(t.$t(`qrart.name.failure`)),1)]),default:f(()=>[e(`p`,Ln,[i(y,{class:`mr-1`,size:`1em`,"aria-hidden":`true`,focusable:`false`}),n(` `+r(t.$t(`qrart.name.taskId`))+`: `+r(t.modelValue?.id)+` `,1),i(b,{content:t.modelValue?.id,class:`btn-copy`},null,8,[`content`])])]),_:1})]))])])}var zn=_({name:`RecentPanel`,components:{TaskPreview:B(mn,[[`render`,Rn],[`__scopeId`,`data-v-a75326ef`]]),BotPlaceholder:ge,NoTasks:pe,ScrollList:fe},props:{loading:{type:Boolean,default:!1}},emits:[`reach-top`],data(){return{job:0}},computed:{tasks(){return{...this.$store.state.qrart?.tasks,items:this.$store.state.qrart?.tasks?.items?.slice()}}},methods:{getScrollElement(){return this.$refs.scrollList?.getScrollElement?.()}}}),Bn={key:0},Vn={key:2,class:`w-full h-full flex items-center justify-center`};function Hn(e,t,n,r,l,u){let p=c(`bot-placeholder`),g=c(`task-preview`),_=c(`scroll-list`),v=c(`no-tasks`);return h(),o(s,null,[e.tasks?.items===void 0?(h(),o(`div`,Bn,[i(p)])):e.tasks?.items?.length&&e.tasks?.items?.length>0?(h(),d(_,{key:1,ref:`scrollList`,class:`tasks h-full w-full overflow-y-auto`,loading:e.loading,onReachTop:t[0]||=t=>e.$emit(`reach-top`)},{default:f(()=>[(h(!0),o(s,null,m(e.tasks?.items,(e,t)=>(h(),d(g,{key:t,"model-value":e},null,8,[`model-value`]))),128))]),_:1},8,[`loading`])):a(``,!0),e.tasks?.items?.length===0?(h(),o(`div`,Vn,[i(v)])):a(``,!0)],64)}var Un=_({name:`QrartIndex`,components:{ConfigPanel:pn,Layout:we,ApplicationStatus:le,RecentPanel:B(zn,[[`render`,Hn]])},mixins:[H],inject:[`initialized`],data(){return{task:void 0,job:0,loadingMore:!1,fetchingTasks:!1}},computed:{applicationsLoading(){return this.$store.state.qrart?.status?.getApplications===X.Request},tasksLoading(){return this.$store.state.qrart?.status?.getTasks===X.Request||this.fetchingTasks},service(){return this.$store.state.qrart.service},credential(){return this.$store.state.qrart.credential},config(){return this.$store.state.qrart.config},initializing(){return this.$store.state.qrart.status.getApplications===X.Request},needApply(){return this.$store.state.qrart.status.getApplications===X.Success&&!this.application},application(){return this.$store.state.qrart.application},tasks(){return this.$store.state.qrart.tasks},applications(){return this.$store.state.qrart.applications}},watch:{tasks:{handler(e,t){e?.items?.length>t?.items?.length&&console.debug(`new tasks detected`)},deep:!0},initialized:{async handler(e){e&&(console.debug(`layout initialized`),await this.onGetTasks(),await this.onScrollDown(),this.job=window.setInterval(()=>{this.onGetTasks()},5e3))},immediate:!0}},async mounted(){await this.onGetService()},async unmounted(){window.clearInterval(this.job)},methods:{async onReachTop(){await me({tasks:this.tasks,getTasks:()=>this.tasks,loading:this.loadingMore,setLoading:e=>this.loadingMore=e,isBlocked:()=>this.tasksLoading||this.applicationsLoading,fetch:e=>this.onGetTasks({createdAtMax:e}),getScrollElement:()=>this.getTasksScrollElement()})},async onGetService(){console.debug(`start onGetService`),await this.$store.dispatch(`qrart/getService`),console.debug(`end onGetService`)},async onGetApplication(){console.debug(`start onGetApplications`),await this.$store.dispatch(`qrart/getApplications`),console.debug(`end onGetApplications`),await this.onGetTasks()},onApply(){se.create({application:this.application}).then(({data:e})=>{this.application=e,Z.success(this.$t(`application.message.applySuccessfully`))}).catch(e=>{e?.response?.data?.code===`duplication`&&Z.error(this.$t(`application.message.alreadyApplied`))})},async onScrollDown(){await this.$nextTick();let e=this.getTasksScrollElement();e&&(e.scrollTop=e.scrollHeight)},async onGetTasks(e){if(this.applicationsLoading||this.fetchingTasks){console.debug(`loading`);return}console.debug(`start onGetTasks`,e);let{limit:t=5,createdAtMin:n,createdAtMax:r}=e||{};console.debug(`limit`,t,`createdAtMin`,n,`createdAtMax`,r),this.fetchingTasks=!0;try{await this.$store.dispatch(`qrart/getTasks`,{limit:t,createdAtMin:n,createdAtMax:r})}finally{this.fetchingTasks=!1}},async onGenerate(){if(!ie(this.uploadTracker,e=>this.$t(e),e=>Z.warning(e)))return;let e={type:this.config?.type,content:this.config?.content,content_image_url:this.config?.content_image_url,prompt:this.config?.prompt,aspect_ratio:this.config?.aspect_ratio,async:!0,qrw:this.config?.qrw,steps:this.config?.steps,preset:this.config?.preset,...this.config?.advanced?{position:this.config?.position,pixel_style:this.config?.pixel_style,marker_shape:this.config?.marker_shape,sub_marker:this.config?.sub_marker,rotate:this.config?.rotate,ecl:this.config?.ecl,seed:this.config?.seed,padding_level:this.config?.padding_level,padding_noise:this.config?.padding_noise}:{}};if(!Y())return;let t=this.credential?.token;if(!t){console.error(`no token specified`);return}Z.info(this.$t(`qrart.message.startingTask`)),oe(`qrart`,U.generate(e,{token:t})).then(()=>{Z.success(this.$t(`qrart.message.startTaskSuccess`))}).catch(e=>{(e?.response?.data)?.error?.code===`used_up`?Z.error(this.$t(`qrart.message.usedUp`)):Z.error(this.$t(`qrart.message.startTaskFailed`))}).finally(async()=>{setTimeout(async()=>{await this.onGetTasks(),await this.onScrollDown()},1e3)})},getTasksScrollElement(){return this.$refs.recentPanel?.getScrollElement?.()}}});function Wn(e,t,n,r,a,o){let s=c(`config-panel`),l=c(`application-status`),u=c(`recent-panel`),p=c(`layout`);return h(),d(p,null,{config:f(()=>[i(s,{onGenerate:e.onGenerate},null,8,[`onGenerate`])]),result:f(()=>[i(l,{initializing:e.initializing,application:e.application,applications:e.applications,service:e.service,"need-apply":e.needApply,class:`mb-4`,onRefresh:e.onGetApplication,onSelect:t[0]||=t=>e.$store.dispatch(`qrart/setApplication`,t)},null,8,[`initializing`,`application`,`applications`,`service`,`need-apply`,`onRefresh`]),i(u,{ref:`recentPanel`,class:`panel recent`,loading:e.loadingMore,onReachTop:e.onReachTop},null,8,[`loading`,`onReachTop`])]),_:1})}var Gn=B(Un,[[`render`,Wn],[`__scopeId`,`data-v-f87e6eb4`]]);export{Gn as default};
@@ -1 +1 @@
1
- import"./rolldown-runtime--c01j_DQ.js";import{A as e,Gt as t,I as n,Jt as r,L as i,M as a,N as o,at as s,ht as c,j as l,mt as u,ot as d,tt as f,z as p}from"./vendor-chart-Dw-P17PN.js";import{n as m,t as h}from"./row-Ds4H6c91.js";import{i as g,n as _,r as v,t as y}from"./container-VI0MzukK.js";import{n as b,t as x}from"./dropdown-D7a5Nscs.js";import{a as S,i as C,n as w,r as T,t as E}from"./avatar-Qb4Awc1r.js";import{$ as D,$t as O,E as k,G as A,Mi as j,ci as M,fi as N,ii as P,in as F,k as I,ui as L,ut as R}from"./index-CSy4uoqo.js";import{t as z}from"./BottomFooter-BqYhKGkv.js";var B=p({name:`TopHeader`,components:{ElCol:m,Logo:w,ElRow:h,ElDropdown:x,ElMenu:T,ElMenuItem:C,ElDropdownItem:b,ElButton:j,ElSubMenu:S},data(){return{defaultAvatar:E,products:`chat`}},computed:{site(){return this.$store.state?.site},dark(){return this.$store.getters?.dark},active(){return this.$route.matched?.[0]?.path},isHome(){return this.$route.name===R},user(){return this.$store.getters?.user},authenticated(){return this.$store.getters?.authenticated},isMainOfficialHost(){return F()},isDesktopChrome(){return M()},isMacChrome(){return M()&&L()}},methods:{openTab(e){if(N()){I.open({url:e}).catch(t=>{console.warn(`Browser.open failed, falling back to window.open`,t),window.open(e,`_blank`)});return}window.open(e,`_blank`)},onSelect(e){e&&this.$router.push(e)},onHome(){this.$router.push({name:R})},onLogin(){this.$store.dispatch(`login`,{redirect:this.$route.fullPath})},onDownload(){this.$router.push({name:D})},onProfile(){let e=P();this.openTab(O(`${e}/user/profile`))},onVerify(){let e=P();this.openTab(O(`${e}/user/verify`))},onConsole(){this.$router.push({name:A})},async onLogout(){this.$store.dispatch(`logout`)}}}),V={key:0,class:`mt-4 pr-10`},H={key:1,class:`float-right`},U=[`src`];function W(p,m,h,g,_,v){let y=s(`logo`),b=s(`el-col`),x=s(`el-menu-item`),S=s(`el-sub-menu`),C=s(`el-menu`),w=s(`el-button`),T=s(`language-selector`),E=s(`dark-selector`),D=s(`el-dropdown-item`),O=s(`el-dropdown-menu`),k=s(`el-dropdown`),A=s(`el-row`),j=d(`t`);return f(),l(A,{class:t([`header`,{"desktop-chrome":p.isDesktopChrome,"is-mac":p.isMacChrome,"home-only":p.isHome}])},{default:u(()=>[p.isHome?(f(),l(b,{key:0,span:24,class:`brand-col`},{default:u(()=>[i(y,{onClick:p.onHome},null,8,[`onClick`])]),_:1})):(f(),l(b,{key:1,md:4,xs:24,class:`brand-col`},{default:u(()=>[i(y,{onClick:p.onHome},null,8,[`onClick`])]),_:1})),p.isHome?a(``,!0):(f(),l(b,{key:2,md:16,xs:13},{default:u(()=>[i(C,{"default-active":p.active,mode:`horizontal`,class:`menu`,ellipsis:!0,onSelect:p.onSelect},{default:u(()=>[i(S,{index:p.products},{title:u(()=>[n(r(p.$t(`common.nav.products`)),1)]),default:u(()=>[p.site?.features?.chatgpt?.enabled?c((f(),l(x,{key:0,index:`/chat`},null,512)),[[j,`index.title.chat`]]):a(``,!0),p.site?.features?.midjourney?.enabled?c((f(),l(x,{key:1,index:`/midjourney`},null,512)),[[j,`index.title.midjourney`]]):a(``,!0),p.site?.features?.qrart?.enabled?c((f(),l(x,{key:2,index:`/qrart`},null,512)),[[j,`index.title.qrart`]]):a(``,!0),p.site?.features?.suno?.enabled?c((f(),l(x,{key:3,index:`/suno`},null,512)),[[j,`index.title.suno`]]):a(``,!0),p.site?.features?.luma?.enabled?c((f(),l(x,{key:4,index:`/luma`},null,512)),[[j,`index.title.luma`]]):a(``,!0)]),_:1},8,[`index`]),p.isMainOfficialHost?c((f(),l(x,{key:0,onRoute:e=>void 0,onClick:p.onDownload},null,8,[`onClick`])),[[j,`common.nav.mobileApp`]]):a(``,!0),c(i(x,{onRoute:e=>void 0,onClick:m[0]||=e=>p.openTab(`https://platform.acedata.cloud`)},null,512),[[j,`common.nav.apiPlatform`]]),c(i(x,{onRoute:e=>void 0,onClick:m[1]||=e=>p.openTab(`https://platform.acedata.cloud/support`)},null,512),[[j,`common.nav.support`]]),c(i(x,{onRoute:e=>void 0,onClick:m[2]||=e=>p.openTab(`https://platform.acedata.cloud/earning`)},null,512),[[j,`common.nav.referral`]])]),_:1},8,[`default-active`,`onSelect`])]),_:1})),p.isHome?a(``,!0):(f(),l(b,{key:3,md:4,xs:11},{default:u(()=>[p.authenticated?(f(),o(`div`,H,[e(`div`,{class:`console`,onClick:m[3]||=(...e)=>p.onConsole&&p.onConsole(...e)},r(p.$t(`common.button.console`)),1),i(k,{trigger:`click`},{dropdown:u(()=>[i(O,null,{default:u(()=>[i(D,{onClick:p.onProfile},{default:u(()=>[n(r(p.$t(`common.button.profile`)),1)]),_:1},8,[`onClick`]),i(D,{onClick:p.onLogout},{default:u(()=>[n(r(p.$t(`common.button.logout`)),1)]),_:1},8,[`onClick`])]),_:1})]),default:u(()=>[e(`img`,{src:p.user?.avatar||p.defaultAvatar,class:`avatar`},null,8,U)]),_:1})])):(f(),o(`div`,V,[i(w,{type:`primary`,class:`float-right`,size:`small`,round:``,onClick:p.onLogin},{default:u(()=>[n(r(p.$t(`common.button.login`)),1)]),_:1},8,[`onClick`]),i(T,{class:`locale float-right mr-4`}),i(E,{class:`float-right mr-4`})]))]),_:1}))]),_:1},8,[`class`])}var G=p({name:`LayoutIndex`,components:{TopHeader:k(B,[[`render`,W]]),BottomFooter:z,ElContainer:y,ElMain:g,ElFooter:_,ElHeader:v}});function K(e,t,n,r,a,o){let c=s(`top-header`),d=s(`el-header`),p=s(`router-view`),m=s(`el-main`),h=s(`bottom-footer`),g=s(`el-footer`),_=s(`el-container`);return f(),l(_,{class:`wrapper min-h-[100vh]`},{default:u(()=>[i(d,{class:`header p-0 h-auto`},{default:u(()=>[i(c)]),_:1}),i(m,{class:`main`},{default:u(()=>[i(p)]),_:1}),i(g,{class:`footer p-0 h-auto`},{default:u(()=>[i(h)]),_:1})]),_:1})}var q=k(G,[[`render`,K]]);export{q as default};
1
+ import"./rolldown-runtime--c01j_DQ.js";import{A as e,Gt as t,I as n,Jt as r,L as i,M as a,N as o,at as s,ht as c,j as l,mt as u,ot as d,tt as f,z as p}from"./vendor-chart-Dw-P17PN.js";import{n as m,t as h}from"./row-Cf4pW3XN.js";import{i as g,n as _,r as v,t as y}from"./container-VI0MzukK.js";import{n as b,t as x}from"./dropdown-C5v0UgBH.js";import{a as S,i as C,n as w,r as T,t as E}from"./avatar-K4aRRxXu.js";import{$ as D,$t as O,E as k,G as A,Mi as j,ci as M,fi as N,ii as P,in as F,k as I,ui as L,ut as R}from"./index-Qs5KlsiO.js";import{t as z}from"./BottomFooter-Sv-qDroT.js";var B=p({name:`TopHeader`,components:{ElCol:m,Logo:w,ElRow:h,ElDropdown:x,ElMenu:T,ElMenuItem:C,ElDropdownItem:b,ElButton:j,ElSubMenu:S},data(){return{defaultAvatar:E,products:`chat`}},computed:{site(){return this.$store.state?.site},dark(){return this.$store.getters?.dark},active(){return this.$route.matched?.[0]?.path},isHome(){return this.$route.name===R},user(){return this.$store.getters?.user},authenticated(){return this.$store.getters?.authenticated},isMainOfficialHost(){return F()},isDesktopChrome(){return M()},isMacChrome(){return M()&&L()}},methods:{openTab(e){if(N()){I.open({url:e}).catch(t=>{console.warn(`Browser.open failed, falling back to window.open`,t),window.open(e,`_blank`)});return}window.open(e,`_blank`)},onSelect(e){e&&this.$router.push(e)},onHome(){this.$router.push({name:R})},onLogin(){this.$store.dispatch(`login`,{redirect:this.$route.fullPath})},onDownload(){this.$router.push({name:D})},onProfile(){let e=P();this.openTab(O(`${e}/user/profile`))},onVerify(){let e=P();this.openTab(O(`${e}/user/verify`))},onConsole(){this.$router.push({name:A})},async onLogout(){this.$store.dispatch(`logout`)}}}),V={key:0,class:`mt-4 pr-10`},H={key:1,class:`float-right`},U=[`src`];function W(p,m,h,g,_,v){let y=s(`logo`),b=s(`el-col`),x=s(`el-menu-item`),S=s(`el-sub-menu`),C=s(`el-menu`),w=s(`el-button`),T=s(`language-selector`),E=s(`dark-selector`),D=s(`el-dropdown-item`),O=s(`el-dropdown-menu`),k=s(`el-dropdown`),A=s(`el-row`),j=d(`t`);return f(),l(A,{class:t([`header`,{"desktop-chrome":p.isDesktopChrome,"is-mac":p.isMacChrome,"home-only":p.isHome}])},{default:u(()=>[p.isHome?(f(),l(b,{key:0,span:24,class:`brand-col`},{default:u(()=>[i(y,{onClick:p.onHome},null,8,[`onClick`])]),_:1})):(f(),l(b,{key:1,md:4,xs:24,class:`brand-col`},{default:u(()=>[i(y,{onClick:p.onHome},null,8,[`onClick`])]),_:1})),p.isHome?a(``,!0):(f(),l(b,{key:2,md:16,xs:13},{default:u(()=>[i(C,{"default-active":p.active,mode:`horizontal`,class:`menu`,ellipsis:!0,onSelect:p.onSelect},{default:u(()=>[i(S,{index:p.products},{title:u(()=>[n(r(p.$t(`common.nav.products`)),1)]),default:u(()=>[p.site?.features?.chatgpt?.enabled?c((f(),l(x,{key:0,index:`/chat`},null,512)),[[j,`index.title.chat`]]):a(``,!0),p.site?.features?.midjourney?.enabled?c((f(),l(x,{key:1,index:`/midjourney`},null,512)),[[j,`index.title.midjourney`]]):a(``,!0),p.site?.features?.qrart?.enabled?c((f(),l(x,{key:2,index:`/qrart`},null,512)),[[j,`index.title.qrart`]]):a(``,!0),p.site?.features?.suno?.enabled?c((f(),l(x,{key:3,index:`/suno`},null,512)),[[j,`index.title.suno`]]):a(``,!0),p.site?.features?.luma?.enabled?c((f(),l(x,{key:4,index:`/luma`},null,512)),[[j,`index.title.luma`]]):a(``,!0)]),_:1},8,[`index`]),p.isMainOfficialHost?c((f(),l(x,{key:0,onRoute:e=>void 0,onClick:p.onDownload},null,8,[`onClick`])),[[j,`common.nav.mobileApp`]]):a(``,!0),c(i(x,{onRoute:e=>void 0,onClick:m[0]||=e=>p.openTab(`https://platform.acedata.cloud`)},null,512),[[j,`common.nav.apiPlatform`]]),c(i(x,{onRoute:e=>void 0,onClick:m[1]||=e=>p.openTab(`https://platform.acedata.cloud/support`)},null,512),[[j,`common.nav.support`]]),c(i(x,{onRoute:e=>void 0,onClick:m[2]||=e=>p.openTab(`https://platform.acedata.cloud/earning`)},null,512),[[j,`common.nav.referral`]])]),_:1},8,[`default-active`,`onSelect`])]),_:1})),p.isHome?a(``,!0):(f(),l(b,{key:3,md:4,xs:11},{default:u(()=>[p.authenticated?(f(),o(`div`,H,[e(`div`,{class:`console`,onClick:m[3]||=(...e)=>p.onConsole&&p.onConsole(...e)},r(p.$t(`common.button.console`)),1),i(k,{trigger:`click`},{dropdown:u(()=>[i(O,null,{default:u(()=>[i(D,{onClick:p.onProfile},{default:u(()=>[n(r(p.$t(`common.button.profile`)),1)]),_:1},8,[`onClick`]),i(D,{onClick:p.onLogout},{default:u(()=>[n(r(p.$t(`common.button.logout`)),1)]),_:1},8,[`onClick`])]),_:1})]),default:u(()=>[e(`img`,{src:p.user?.avatar||p.defaultAvatar,class:`avatar`},null,8,U)]),_:1})])):(f(),o(`div`,V,[i(w,{type:`primary`,class:`float-right`,size:`small`,round:``,onClick:p.onLogin},{default:u(()=>[n(r(p.$t(`common.button.login`)),1)]),_:1},8,[`onClick`]),i(T,{class:`locale float-right mr-4`}),i(E,{class:`float-right mr-4`})]))]),_:1}))]),_:1},8,[`class`])}var G=p({name:`LayoutIndex`,components:{TopHeader:k(B,[[`render`,W]]),BottomFooter:z,ElContainer:y,ElMain:g,ElFooter:_,ElHeader:v}});function K(e,t,n,r,a,o){let c=s(`top-header`),d=s(`el-header`),p=s(`router-view`),m=s(`el-main`),h=s(`bottom-footer`),g=s(`el-footer`),_=s(`el-container`);return f(),l(_,{class:`wrapper min-h-[100vh]`},{default:u(()=>[i(d,{class:`header p-0 h-auto`},{default:u(()=>[i(c)]),_:1}),i(m,{class:`main`},{default:u(()=>[i(p)]),_:1}),i(g,{class:`footer p-0 h-auto`},{default:u(()=>[i(h)]),_:1})]),_:1})}var q=k(G,[[`render`,K]]);export{q as default};
@@ -1 +1 @@
1
- import"./rolldown-runtime--c01j_DQ.js";import{A as e,Gt as t,I as n,Jt as r,L as i,M as a,N as o,T as s,at as c,j as l,mt as u,rt as d,tt as f,z as p}from"./vendor-chart-Dw-P17PN.js";import{t as m}from"./arrow-right-ClEfVLX9.js";import{t as h}from"./check-D75Hxd1C.js";import{t as g}from"./external-link-DSjuErLJ.js";import{t as ee}from"./globe-D6yhH_ia.js";import{t as te}from"./wand-sparkles-B22wZ_LJ.js";import{A as _,E as v,Mi as y,i as b,in as x,r as S}from"./index-CSy4uoqo.js";var C=(e,t)=>({zh:e,en:t}),w=`https://platform.acedata.cloud/documents/studio-overview`,T=new Set([`qrart`,`pika`]),E={auth:C(`https://cdn.acedata.cloud/ae2dceaacc.png`,`https://cdn.acedata.cloud/61f717db6c.png`),branding:C(`https://cdn.acedata.cloud/d54f145c5c.png`,`https://cdn.acedata.cloud/6d59646c4d.png`),capabilities:C(`https://cdn.acedata.cloud/2369fa145f.png`,`https://cdn.acedata.cloud/082a69ca54.png`),digitalHumanDesktop:C(`https://cdn.acedata.cloud/b9ee357c33.png`,`https://cdn.acedata.cloud/a0228b206a.png`),distributionDesktop:C(`https://cdn.acedata.cloud/6c25c74a49.png`,`https://cdn.acedata.cloud/a1e62e4425.png`),klingDesktop:C(`https://cdn.acedata.cloud/e45bc3e2e2.png`,`https://cdn.acedata.cloud/03d73b16ce.png`),klingMobile:C(`https://cdn.acedata.cloud/10dc431467.png`,`https://cdn.acedata.cloud/ea10c8e395.png`),maestroDesktop:C(`https://cdn.acedata.cloud/1791398216.png`,`https://cdn.acedata.cloud/7854458ee3.png`),nanoDesktop:C(`https://cdn.acedata.cloud/82252ec647.png`,`https://cdn.acedata.cloud/e047aea679.png`),nanoMobile:C(`https://cdn.acedata.cloud/c7da634c96.png`,`https://cdn.acedata.cloud/dc5b2cca1d.png`),subsites:C(`https://cdn.acedata.cloud/bf4356fffc.png`,`https://cdn.acedata.cloud/b1948ec2a2.png`),sunoDesktop:C(`https://cdn.acedata.cloud/8ce288065b.png`,`https://cdn.acedata.cloud/1eebf72e3a.png`)},D=[{key:`subsites`,eyebrowKey:`index.eyebrow.subsites`,titleKey:`index.title.subsites`,subtitleKey:`index.subtitle.subsites`,buttonKey:`index.button.learnBusiness`,path:`/chatgpt?dialog=settings&tab=subsites`,href:w,desktop:E.subsites,bulletKeys:[`index.benefit.subsites.noServer`,`index.benefit.subsites.customDomain`,`index.benefit.subsites.branding`]},{key:`capabilities`,eyebrowKey:`index.eyebrow.capabilities`,titleKey:`index.title.capabilities`,subtitleKey:`index.subtitle.capabilities`,buttonKey:`index.button.learnBusiness`,path:`/chatgpt?dialog=settings&tab=function`,href:w,desktop:E.capabilities,bulletKeys:[`index.benefit.capabilities.catalog`,`index.benefit.capabilities.display`,`index.benefit.capabilities.pricing`]},{key:`operations`,eyebrowKey:`index.eyebrow.operations`,titleKey:`index.title.operations`,subtitleKey:`index.subtitle.operations`,buttonKey:`index.button.learnBusiness`,path:`/chatgpt?dialog=settings&tab=seo`,href:w,desktop:E.auth,bulletKeys:[`index.benefit.operations.seo`,`index.benefit.operations.auth`,`index.benefit.operations.localization`]},{key:`distribution`,eyebrowKey:`index.eyebrow.distribution`,titleKey:`index.title.distribution`,subtitleKey:`index.subtitle.distribution`,buttonKey:`index.button.learnBusiness`,path:`/distribution`,href:w,desktop:E.distributionDesktop,bulletKeys:[`index.benefit.distribution.noBarrier`,`index.benefit.distribution.levels`,`index.benefit.distribution.withdrawal`]}],O=[{key:`image`,featureKeys:[`nanobanana`],eyebrowKey:`index.eyebrow.image`,titleKey:`index.title.image`,subtitleKey:`index.subtitle.image`,buttonKey:`index.button.try`,path:`/nanobanana`,desktop:E.nanoDesktop,mobile:E.nanoMobile},{key:`music`,featureKeys:[`suno`],eyebrowKey:`index.eyebrow.music`,titleKey:`index.title.music`,subtitleKey:`index.subtitle.music`,buttonKey:`index.button.try`,path:`/suno`,desktop:E.sunoDesktop},{key:`workflow`,featureKeys:[`maestro`],eyebrowKey:`index.eyebrow.workflow`,titleKey:`index.title.workflow`,subtitleKey:`index.subtitle.workflow`,buttonKey:`index.button.try`,path:`/maestro`,desktop:E.maestroDesktop},{key:`digitalHuman`,featureKeys:[`digitalhuman`],eyebrowKey:`index.eyebrow.digitalHuman`,titleKey:`index.title.digitalHuman`,subtitleKey:`index.subtitle.digitalHuman`,buttonKey:`index.button.try`,path:`/digital-human`,desktop:E.digitalHumanDesktop}],k=p({name:`Index`,components:{ElButton:y,ConfirmIcon:h,ExternalLinkIcon:g,GlobeIcon:ee,MagicIcon:te,NextIcon:m},data(){return{}},computed:{site(){return this.$store.state.site},enabledFeatures(){return this.site?.features??{}},isMainSite(){let e=typeof window>`u`?``:window.location.hostname,t=e.endsWith(`.plain-river-2dfc.workers.dev`)&&this.site?.origin===e&&this.site?.title===`Ace Data Cloud`&&this.site?.branding===null;return this.site?.origin===`studio.acedata.cloud`||x()||t},capabilityCount(){return this.site?.id?this.capabilityCards.length:b.length},isChineseLocale(){return String(this.$i18n.locale).toLowerCase()===`zh-cn`},heroDesktop(){return this.localizedImage(E.klingDesktop)},heroMobile(){return this.localizedImage(E.klingMobile)},businessShowcases(){return D.filter(e=>e.key!==`subsites`||this.isMainSite).map(e=>this.resolveShowcase(e))},creationShowcases(){return(this.isMainSite?O:O.filter(e=>e.featureKeys?.some(e=>this.enabledFeatures[e]?.enabled))).map(e=>this.resolveShowcase(e))},capabilityCards(){return(this.isMainSite?b:b.filter(e=>this.enabledFeatures[e]?.enabled)).filter(e=>!T.has(e)).map(e=>({key:e,label:this.$t(`site.field.features${e.charAt(0).toUpperCase()}${e.slice(1)}`),icon:S[e]}))}},methods:{localizedImage(e){return this.isChineseLocale?e.zh:e.en},resolveShowcase(e){return{...e,desktop:this.localizedImage(e.desktop),mobile:e.mobile?this.localizedImage(e.mobile):void 0}},onStart(){this.$router.push(_())},openShowcase(e){this.$router.push(e.path)},openSubsites(){this.$router.push(`/chatgpt?dialog=settings&tab=subsites`)},scrollToPlatform(){this.scrollToSection(`platform`)},scrollToCreation(){this.scrollToSection(`creation`)},scrollToSubsites(){this.scrollToSection(`subsites`)},scrollToSection(e){let t=document.getElementById(`app`),n=document.getElementById(e);if(!t||!n)return;let r=document.querySelector(`.header`)?.offsetHeight??0;t.scrollTop=n.offsetTop-r}}}),A={class:`landing`},j={class:`hero`},M={class:`container hero__content`},N={class:`hero__copy`},P={class:`eyebrow`},F={class:`hero__headline`},I={class:`hero__summary`},L={class:`hero__actions`},R={class:`hero__stats`},z={class:`hero__screens`},B={class:`macbook-frame hero__desktop`,"aria-hidden":`true`},V={class:`macbook-frame__lid`},H={class:`macbook-frame__viewport`},U=[`src`],W={class:`phone-device hero__mobile`,"aria-hidden":`true`},G={class:`phone-device__screen`},K=[`src`],q={id:`platform`,class:`section platform-section`},J={class:`container`},Y={class:`section-heading section-heading--wide`},X={class:`eyebrow eyebrow--light`},Z=[`id`],Q={class:`platform-story__copy`},ne={class:`story-number`},re={class:`story-kicker`},ie={class:`feature-points`},ae={class:`screen-pair screen-pair--large`},oe={class:`macbook-frame screen-pair__desktop`},se={class:`macbook-frame__lid`},ce={class:`macbook-frame__viewport`},le=[`src`,`alt`],ue={id:`creation`,class:`section creation-section`},de={class:`container`},fe={class:`section-heading`},pe={class:`eyebrow eyebrow--light`},me={class:`creation-grid`},he={class:`macbook-frame screen-pair__desktop`},ge={class:`macbook-frame__lid`},_e={class:`macbook-frame__viewport`},ve=[`src`,`alt`],ye={key:0,class:`phone-device screen-pair__mobile`},be={class:`phone-device__screen`},xe=[`src`],Se={class:`creation-item__copy`},Ce={class:`story-kicker`},we=[`onClick`],Te={class:`section capability-section`},Ee={class:`container`},De={class:`section-heading section-heading--wide`},$={class:`eyebrow eyebrow--light`},Oe={class:`capability-directory`},ke=[`src`],Ae={class:`final-cta`},je={class:`container final-cta__content`},Me={class:`story-kicker`},Ne={class:`final-cta__actions`};function Pe(p,m,h,g,ee,te){let _=c(`el-button`),v=c(`magic-icon`),y=c(`globe-icon`),b=c(`confirm-icon`),x=c(`next-icon`),S=c(`external-link-icon`);return f(),o(`div`,A,[e(`section`,j,[m[9]||=e(`div`,{class:`hero__grid`},null,-1),e(`div`,M,[e(`div`,N,[e(`span`,P,r(p.$t(`index.badge.hero`)),1),e(`h1`,null,r(p.site?.title),1),e(`p`,F,r(p.$t(`index.subtitle.banner`)),1),e(`p`,I,r(p.$t(`index.subtitle.hero`)),1),e(`div`,L,[i(_,{type:`primary`,size:`large`,onClick:p.onStart},{default:u(()=>[n(r(p.$t(`common.button.startForFree`)),1)]),_:1},8,[`onClick`]),i(_,{size:`large`,onClick:p.scrollToPlatform},{default:u(()=>[n(r(p.$t(`index.button.explore`)),1)]),_:1},8,[`onClick`])]),e(`dl`,R,[e(`div`,null,[e(`dt`,null,r(p.capabilityCount)+`+`,1),e(`dd`,null,r(p.$t(`index.stat.capabilities`)),1)]),e(`div`,null,[m[2]||=e(`dt`,null,`5 min`,-1),e(`dd`,null,r(p.$t(`index.stat.subsite`)),1)]),e(`div`,null,[m[3]||=e(`dt`,null,`24%`,-1),e(`dd`,null,r(p.$t(`index.stat.commission`)),1)])])]),e(`div`,z,[e(`div`,B,[e(`div`,V,[m[4]||=e(`span`,{class:`macbook-frame__camera`},null,-1),e(`div`,H,[e(`img`,{src:p.heroDesktop,alt:``},null,8,U)]),m[5]||=e(`div`,{class:`macbook-frame__chin`},null,-1)]),m[6]||=e(`div`,{class:`macbook-frame__base`},[e(`span`)],-1)]),e(`div`,W,[m[8]||=e(`span`,{class:`phone-device__speaker`},null,-1),e(`div`,G,[m[7]||=e(`span`,{class:`phone-device__island`},null,-1),e(`img`,{src:p.heroMobile,alt:``},null,8,K)])]),e(`button`,{type:`button`,class:`hero__note hero__note--top`,onClick:m[0]||=(...e)=>p.scrollToCreation&&p.scrollToCreation(...e)},[i(v,{size:`1em`,"aria-hidden":`true`,focusable:`false`}),e(`span`,null,r(p.$t(`index.note.allInOne`)),1)]),p.isMainSite?(f(),o(`button`,{key:0,type:`button`,class:`hero__note hero__note--bottom`,onClick:m[1]||=(...e)=>p.scrollToSubsites&&p.scrollToSubsites(...e)},[i(y,{size:`1em`,"aria-hidden":`true`,focusable:`false`}),e(`span`,null,r(p.$t(`index.note.customDomain`)),1)])):a(``,!0)])])]),e(`section`,q,[e(`div`,J,[e(`div`,Y,[e(`span`,X,r(p.$t(`index.eyebrow.business`)),1),e(`h2`,null,r(p.$t(`index.title.business`)),1),e(`p`,null,r(p.$t(`index.subtitle.business`)),1)]),(f(!0),o(s,null,d(p.businessShowcases,(a,c)=>(f(),o(`article`,{id:a.key,key:a.key,class:t([`platform-story`,{"platform-story--reverse":c%2==1}])},[e(`div`,Q,[e(`span`,ne,`0`+r(c+1),1),e(`p`,re,r(p.$t(a.eyebrowKey)),1),e(`h3`,null,r(p.$t(a.titleKey)),1),e(`p`,null,r(p.$t(a.subtitleKey)),1),e(`ul`,ie,[(f(!0),o(s,null,d(a.bulletKeys,t=>(f(),o(`li`,{key:t},[i(b,{size:`1em`,"aria-hidden":`true`,focusable:`false`}),e(`span`,null,r(p.$t(t)),1)]))),128))]),a.href?(f(),l(_,{key:0,tag:`a`,type:`primary`,plain:``,href:a.href,target:`_blank`,rel:`noopener noreferrer`},{default:u(()=>[n(r(p.$t(a.buttonKey))+` `,1),i(x,{size:`1em`,"aria-hidden":`true`,focusable:`false`})]),_:2},1032,[`href`])):(f(),l(_,{key:1,type:`primary`,plain:``,onClick:e=>p.openShowcase(a)},{default:u(()=>[n(r(p.$t(a.buttonKey))+` `,1),i(x,{size:`1em`,"aria-hidden":`true`,focusable:`false`})]),_:2},1032,[`onClick`]))]),e(`div`,ae,[e(`div`,oe,[e(`div`,se,[m[10]||=e(`span`,{class:`macbook-frame__camera`,"aria-hidden":`true`},null,-1),e(`div`,ce,[e(`img`,{src:a.desktop,alt:p.$t(a.titleKey),loading:`lazy`},null,8,le)]),m[11]||=e(`div`,{class:`macbook-frame__chin`},null,-1)]),m[12]||=e(`div`,{class:`macbook-frame__base`},[e(`span`)],-1)])])],10,Z))),128))])]),e(`section`,ue,[e(`div`,de,[e(`div`,fe,[e(`span`,pe,r(p.$t(`index.eyebrow.creation`)),1),e(`h2`,null,r(p.$t(`index.title.creation`)),1),e(`p`,null,r(p.$t(`index.subtitle.creation`)),1)]),e(`div`,me,[(f(!0),o(s,null,d(p.creationShowcases,n=>(f(),o(`article`,{key:n.key,class:`creation-item`},[e(`div`,{class:t([`screen-pair`,{"screen-pair--with-phone":n.mobile}])},[e(`div`,he,[e(`div`,ge,[m[13]||=e(`span`,{class:`macbook-frame__camera`,"aria-hidden":`true`},null,-1),e(`div`,_e,[e(`img`,{src:n.desktop,alt:p.$t(n.titleKey),loading:`lazy`},null,8,ve)]),m[14]||=e(`div`,{class:`macbook-frame__chin`},null,-1)]),m[15]||=e(`div`,{class:`macbook-frame__base`},[e(`span`)],-1)]),n.mobile?(f(),o(`div`,ye,[m[17]||=e(`span`,{class:`phone-device__speaker`,"aria-hidden":`true`},null,-1),e(`div`,be,[m[16]||=e(`span`,{class:`phone-device__island`,"aria-hidden":`true`},null,-1),e(`img`,{src:n.mobile,alt:``,loading:`lazy`},null,8,xe)])])):a(``,!0)],2),e(`div`,Se,[e(`div`,null,[e(`p`,Ce,r(p.$t(n.eyebrowKey)),1),e(`h3`,null,r(p.$t(n.titleKey)),1)]),i(S,{size:`1em`,"aria-hidden":`true`,focusable:`false`}),e(`p`,null,r(p.$t(n.subtitleKey)),1),e(`button`,{type:`button`,class:`creation-item__link`,onClick:e=>p.openShowcase(n)},r(p.$t(`index.button.try`)),9,we)])]))),128))])])]),e(`section`,Te,[e(`div`,Ee,[e(`div`,De,[e(`span`,$,r(p.$t(`index.eyebrow.directory`)),1),e(`h2`,null,r(p.$t(`index.title.directory`)),1),e(`p`,null,r(p.$t(`index.subtitle.directory`)),1)]),e(`div`,Oe,[(f(!0),o(s,null,d(p.capabilityCards,t=>(f(),o(`div`,{key:t.key,class:`capability-row`},[e(`img`,{src:t.icon,alt:``},null,8,ke),e(`span`,null,r(t.label),1)]))),128))])])]),e(`section`,Ae,[e(`div`,je,[e(`div`,null,[e(`p`,Me,r(p.$t(`index.eyebrow.cta`)),1),e(`h2`,null,r(p.$t(`index.title.cta`)),1),e(`p`,null,r(p.$t(`index.subtitle.cta`)),1)]),e(`div`,Ne,[i(_,{type:`primary`,size:`large`,onClick:p.onStart},{default:u(()=>[n(r(p.$t(`common.button.startForFree`)),1)]),_:1},8,[`onClick`]),p.isMainSite?(f(),l(_,{key:0,size:`large`,onClick:p.openSubsites},{default:u(()=>[n(r(p.$t(`index.button.createSubsite`)),1)]),_:1},8,[`onClick`])):a(``,!0)])])])])}var Fe=v(k,[[`render`,Pe],[`__scopeId`,`data-v-82c57205`]]);export{Fe as default};
1
+ import"./rolldown-runtime--c01j_DQ.js";import{A as e,Gt as t,I as n,Jt as r,L as i,M as a,N as o,T as s,at as c,j as l,mt as u,rt as d,tt as f,z as p}from"./vendor-chart-Dw-P17PN.js";import{t as m}from"./arrow-right-BprqR8Ch.js";import{t as h}from"./check-DJnUIN5-.js";import{t as g}from"./external-link-j76m6WfB.js";import{t as ee}from"./globe-C-gQ-Zt7.js";import{t as te}from"./wand-sparkles-BXIZutC0.js";import{A as _,E as v,Mi as y,i as b,in as x,r as S}from"./index-Qs5KlsiO.js";var C=(e,t)=>({zh:e,en:t}),w=`https://platform.acedata.cloud/documents/studio-overview`,T=new Set([`qrart`,`pika`]),E={auth:C(`https://cdn.acedata.cloud/ae2dceaacc.png`,`https://cdn.acedata.cloud/61f717db6c.png`),branding:C(`https://cdn.acedata.cloud/d54f145c5c.png`,`https://cdn.acedata.cloud/6d59646c4d.png`),capabilities:C(`https://cdn.acedata.cloud/2369fa145f.png`,`https://cdn.acedata.cloud/082a69ca54.png`),digitalHumanDesktop:C(`https://cdn.acedata.cloud/b9ee357c33.png`,`https://cdn.acedata.cloud/a0228b206a.png`),distributionDesktop:C(`https://cdn.acedata.cloud/6c25c74a49.png`,`https://cdn.acedata.cloud/a1e62e4425.png`),klingDesktop:C(`https://cdn.acedata.cloud/e45bc3e2e2.png`,`https://cdn.acedata.cloud/03d73b16ce.png`),klingMobile:C(`https://cdn.acedata.cloud/10dc431467.png`,`https://cdn.acedata.cloud/ea10c8e395.png`),maestroDesktop:C(`https://cdn.acedata.cloud/1791398216.png`,`https://cdn.acedata.cloud/7854458ee3.png`),nanoDesktop:C(`https://cdn.acedata.cloud/82252ec647.png`,`https://cdn.acedata.cloud/e047aea679.png`),nanoMobile:C(`https://cdn.acedata.cloud/c7da634c96.png`,`https://cdn.acedata.cloud/dc5b2cca1d.png`),subsites:C(`https://cdn.acedata.cloud/bf4356fffc.png`,`https://cdn.acedata.cloud/b1948ec2a2.png`),sunoDesktop:C(`https://cdn.acedata.cloud/8ce288065b.png`,`https://cdn.acedata.cloud/1eebf72e3a.png`)},D=[{key:`subsites`,eyebrowKey:`index.eyebrow.subsites`,titleKey:`index.title.subsites`,subtitleKey:`index.subtitle.subsites`,buttonKey:`index.button.learnBusiness`,path:`/chatgpt?dialog=settings&tab=subsites`,href:w,desktop:E.subsites,bulletKeys:[`index.benefit.subsites.noServer`,`index.benefit.subsites.customDomain`,`index.benefit.subsites.branding`]},{key:`capabilities`,eyebrowKey:`index.eyebrow.capabilities`,titleKey:`index.title.capabilities`,subtitleKey:`index.subtitle.capabilities`,buttonKey:`index.button.learnBusiness`,path:`/chatgpt?dialog=settings&tab=function`,href:w,desktop:E.capabilities,bulletKeys:[`index.benefit.capabilities.catalog`,`index.benefit.capabilities.display`,`index.benefit.capabilities.pricing`]},{key:`operations`,eyebrowKey:`index.eyebrow.operations`,titleKey:`index.title.operations`,subtitleKey:`index.subtitle.operations`,buttonKey:`index.button.learnBusiness`,path:`/chatgpt?dialog=settings&tab=seo`,href:w,desktop:E.auth,bulletKeys:[`index.benefit.operations.seo`,`index.benefit.operations.auth`,`index.benefit.operations.localization`]},{key:`distribution`,eyebrowKey:`index.eyebrow.distribution`,titleKey:`index.title.distribution`,subtitleKey:`index.subtitle.distribution`,buttonKey:`index.button.learnBusiness`,path:`/distribution`,href:w,desktop:E.distributionDesktop,bulletKeys:[`index.benefit.distribution.noBarrier`,`index.benefit.distribution.levels`,`index.benefit.distribution.withdrawal`]}],O=[{key:`image`,featureKeys:[`nanobanana`],eyebrowKey:`index.eyebrow.image`,titleKey:`index.title.image`,subtitleKey:`index.subtitle.image`,buttonKey:`index.button.try`,path:`/nanobanana`,desktop:E.nanoDesktop,mobile:E.nanoMobile},{key:`music`,featureKeys:[`suno`],eyebrowKey:`index.eyebrow.music`,titleKey:`index.title.music`,subtitleKey:`index.subtitle.music`,buttonKey:`index.button.try`,path:`/suno`,desktop:E.sunoDesktop},{key:`workflow`,featureKeys:[`maestro`],eyebrowKey:`index.eyebrow.workflow`,titleKey:`index.title.workflow`,subtitleKey:`index.subtitle.workflow`,buttonKey:`index.button.try`,path:`/maestro`,desktop:E.maestroDesktop},{key:`digitalHuman`,featureKeys:[`digitalhuman`],eyebrowKey:`index.eyebrow.digitalHuman`,titleKey:`index.title.digitalHuman`,subtitleKey:`index.subtitle.digitalHuman`,buttonKey:`index.button.try`,path:`/digital-human`,desktop:E.digitalHumanDesktop}],k=p({name:`Index`,components:{ElButton:y,ConfirmIcon:h,ExternalLinkIcon:g,GlobeIcon:ee,MagicIcon:te,NextIcon:m},data(){return{}},computed:{site(){return this.$store.state.site},enabledFeatures(){return this.site?.features??{}},isMainSite(){let e=typeof window>`u`?``:window.location.hostname,t=e.endsWith(`.plain-river-2dfc.workers.dev`)&&this.site?.origin===e&&this.site?.title===`Ace Data Cloud`&&this.site?.branding===null;return this.site?.origin===`studio.acedata.cloud`||x()||t},capabilityCount(){return this.site?.id?this.capabilityCards.length:b.length},isChineseLocale(){return String(this.$i18n.locale).toLowerCase()===`zh-cn`},heroDesktop(){return this.localizedImage(E.klingDesktop)},heroMobile(){return this.localizedImage(E.klingMobile)},businessShowcases(){return D.filter(e=>e.key!==`subsites`||this.isMainSite).map(e=>this.resolveShowcase(e))},creationShowcases(){return(this.isMainSite?O:O.filter(e=>e.featureKeys?.some(e=>this.enabledFeatures[e]?.enabled))).map(e=>this.resolveShowcase(e))},capabilityCards(){return(this.isMainSite?b:b.filter(e=>this.enabledFeatures[e]?.enabled)).filter(e=>!T.has(e)).map(e=>({key:e,label:this.$t(`site.field.features${e.charAt(0).toUpperCase()}${e.slice(1)}`),icon:S[e]}))}},methods:{localizedImage(e){return this.isChineseLocale?e.zh:e.en},resolveShowcase(e){return{...e,desktop:this.localizedImage(e.desktop),mobile:e.mobile?this.localizedImage(e.mobile):void 0}},onStart(){this.$router.push(_())},openShowcase(e){this.$router.push(e.path)},openSubsites(){this.$router.push(`/chatgpt?dialog=settings&tab=subsites`)},scrollToPlatform(){this.scrollToSection(`platform`)},scrollToCreation(){this.scrollToSection(`creation`)},scrollToSubsites(){this.scrollToSection(`subsites`)},scrollToSection(e){let t=document.getElementById(`app`),n=document.getElementById(e);if(!t||!n)return;let r=document.querySelector(`.header`)?.offsetHeight??0;t.scrollTop=n.offsetTop-r}}}),A={class:`landing`},j={class:`hero`},M={class:`container hero__content`},N={class:`hero__copy`},P={class:`eyebrow`},F={class:`hero__headline`},I={class:`hero__summary`},L={class:`hero__actions`},R={class:`hero__stats`},z={class:`hero__screens`},B={class:`macbook-frame hero__desktop`,"aria-hidden":`true`},V={class:`macbook-frame__lid`},H={class:`macbook-frame__viewport`},U=[`src`],W={class:`phone-device hero__mobile`,"aria-hidden":`true`},G={class:`phone-device__screen`},K=[`src`],q={id:`platform`,class:`section platform-section`},J={class:`container`},Y={class:`section-heading section-heading--wide`},X={class:`eyebrow eyebrow--light`},Z=[`id`],Q={class:`platform-story__copy`},ne={class:`story-number`},re={class:`story-kicker`},ie={class:`feature-points`},ae={class:`screen-pair screen-pair--large`},oe={class:`macbook-frame screen-pair__desktop`},se={class:`macbook-frame__lid`},ce={class:`macbook-frame__viewport`},le=[`src`,`alt`],ue={id:`creation`,class:`section creation-section`},de={class:`container`},fe={class:`section-heading`},pe={class:`eyebrow eyebrow--light`},me={class:`creation-grid`},he={class:`macbook-frame screen-pair__desktop`},ge={class:`macbook-frame__lid`},_e={class:`macbook-frame__viewport`},ve=[`src`,`alt`],ye={key:0,class:`phone-device screen-pair__mobile`},be={class:`phone-device__screen`},xe=[`src`],Se={class:`creation-item__copy`},Ce={class:`story-kicker`},we=[`onClick`],Te={class:`section capability-section`},Ee={class:`container`},De={class:`section-heading section-heading--wide`},$={class:`eyebrow eyebrow--light`},Oe={class:`capability-directory`},ke=[`src`],Ae={class:`final-cta`},je={class:`container final-cta__content`},Me={class:`story-kicker`},Ne={class:`final-cta__actions`};function Pe(p,m,h,g,ee,te){let _=c(`el-button`),v=c(`magic-icon`),y=c(`globe-icon`),b=c(`confirm-icon`),x=c(`next-icon`),S=c(`external-link-icon`);return f(),o(`div`,A,[e(`section`,j,[m[9]||=e(`div`,{class:`hero__grid`},null,-1),e(`div`,M,[e(`div`,N,[e(`span`,P,r(p.$t(`index.badge.hero`)),1),e(`h1`,null,r(p.site?.title),1),e(`p`,F,r(p.$t(`index.subtitle.banner`)),1),e(`p`,I,r(p.$t(`index.subtitle.hero`)),1),e(`div`,L,[i(_,{type:`primary`,size:`large`,onClick:p.onStart},{default:u(()=>[n(r(p.$t(`common.button.startForFree`)),1)]),_:1},8,[`onClick`]),i(_,{size:`large`,onClick:p.scrollToPlatform},{default:u(()=>[n(r(p.$t(`index.button.explore`)),1)]),_:1},8,[`onClick`])]),e(`dl`,R,[e(`div`,null,[e(`dt`,null,r(p.capabilityCount)+`+`,1),e(`dd`,null,r(p.$t(`index.stat.capabilities`)),1)]),e(`div`,null,[m[2]||=e(`dt`,null,`5 min`,-1),e(`dd`,null,r(p.$t(`index.stat.subsite`)),1)]),e(`div`,null,[m[3]||=e(`dt`,null,`24%`,-1),e(`dd`,null,r(p.$t(`index.stat.commission`)),1)])])]),e(`div`,z,[e(`div`,B,[e(`div`,V,[m[4]||=e(`span`,{class:`macbook-frame__camera`},null,-1),e(`div`,H,[e(`img`,{src:p.heroDesktop,alt:``},null,8,U)]),m[5]||=e(`div`,{class:`macbook-frame__chin`},null,-1)]),m[6]||=e(`div`,{class:`macbook-frame__base`},[e(`span`)],-1)]),e(`div`,W,[m[8]||=e(`span`,{class:`phone-device__speaker`},null,-1),e(`div`,G,[m[7]||=e(`span`,{class:`phone-device__island`},null,-1),e(`img`,{src:p.heroMobile,alt:``},null,8,K)])]),e(`button`,{type:`button`,class:`hero__note hero__note--top`,onClick:m[0]||=(...e)=>p.scrollToCreation&&p.scrollToCreation(...e)},[i(v,{size:`1em`,"aria-hidden":`true`,focusable:`false`}),e(`span`,null,r(p.$t(`index.note.allInOne`)),1)]),p.isMainSite?(f(),o(`button`,{key:0,type:`button`,class:`hero__note hero__note--bottom`,onClick:m[1]||=(...e)=>p.scrollToSubsites&&p.scrollToSubsites(...e)},[i(y,{size:`1em`,"aria-hidden":`true`,focusable:`false`}),e(`span`,null,r(p.$t(`index.note.customDomain`)),1)])):a(``,!0)])])]),e(`section`,q,[e(`div`,J,[e(`div`,Y,[e(`span`,X,r(p.$t(`index.eyebrow.business`)),1),e(`h2`,null,r(p.$t(`index.title.business`)),1),e(`p`,null,r(p.$t(`index.subtitle.business`)),1)]),(f(!0),o(s,null,d(p.businessShowcases,(a,c)=>(f(),o(`article`,{id:a.key,key:a.key,class:t([`platform-story`,{"platform-story--reverse":c%2==1}])},[e(`div`,Q,[e(`span`,ne,`0`+r(c+1),1),e(`p`,re,r(p.$t(a.eyebrowKey)),1),e(`h3`,null,r(p.$t(a.titleKey)),1),e(`p`,null,r(p.$t(a.subtitleKey)),1),e(`ul`,ie,[(f(!0),o(s,null,d(a.bulletKeys,t=>(f(),o(`li`,{key:t},[i(b,{size:`1em`,"aria-hidden":`true`,focusable:`false`}),e(`span`,null,r(p.$t(t)),1)]))),128))]),a.href?(f(),l(_,{key:0,tag:`a`,type:`primary`,plain:``,href:a.href,target:`_blank`,rel:`noopener noreferrer`},{default:u(()=>[n(r(p.$t(a.buttonKey))+` `,1),i(x,{size:`1em`,"aria-hidden":`true`,focusable:`false`})]),_:2},1032,[`href`])):(f(),l(_,{key:1,type:`primary`,plain:``,onClick:e=>p.openShowcase(a)},{default:u(()=>[n(r(p.$t(a.buttonKey))+` `,1),i(x,{size:`1em`,"aria-hidden":`true`,focusable:`false`})]),_:2},1032,[`onClick`]))]),e(`div`,ae,[e(`div`,oe,[e(`div`,se,[m[10]||=e(`span`,{class:`macbook-frame__camera`,"aria-hidden":`true`},null,-1),e(`div`,ce,[e(`img`,{src:a.desktop,alt:p.$t(a.titleKey),loading:`lazy`},null,8,le)]),m[11]||=e(`div`,{class:`macbook-frame__chin`},null,-1)]),m[12]||=e(`div`,{class:`macbook-frame__base`},[e(`span`)],-1)])])],10,Z))),128))])]),e(`section`,ue,[e(`div`,de,[e(`div`,fe,[e(`span`,pe,r(p.$t(`index.eyebrow.creation`)),1),e(`h2`,null,r(p.$t(`index.title.creation`)),1),e(`p`,null,r(p.$t(`index.subtitle.creation`)),1)]),e(`div`,me,[(f(!0),o(s,null,d(p.creationShowcases,n=>(f(),o(`article`,{key:n.key,class:`creation-item`},[e(`div`,{class:t([`screen-pair`,{"screen-pair--with-phone":n.mobile}])},[e(`div`,he,[e(`div`,ge,[m[13]||=e(`span`,{class:`macbook-frame__camera`,"aria-hidden":`true`},null,-1),e(`div`,_e,[e(`img`,{src:n.desktop,alt:p.$t(n.titleKey),loading:`lazy`},null,8,ve)]),m[14]||=e(`div`,{class:`macbook-frame__chin`},null,-1)]),m[15]||=e(`div`,{class:`macbook-frame__base`},[e(`span`)],-1)]),n.mobile?(f(),o(`div`,ye,[m[17]||=e(`span`,{class:`phone-device__speaker`,"aria-hidden":`true`},null,-1),e(`div`,be,[m[16]||=e(`span`,{class:`phone-device__island`,"aria-hidden":`true`},null,-1),e(`img`,{src:n.mobile,alt:``,loading:`lazy`},null,8,xe)])])):a(``,!0)],2),e(`div`,Se,[e(`div`,null,[e(`p`,Ce,r(p.$t(n.eyebrowKey)),1),e(`h3`,null,r(p.$t(n.titleKey)),1)]),i(S,{size:`1em`,"aria-hidden":`true`,focusable:`false`}),e(`p`,null,r(p.$t(n.subtitleKey)),1),e(`button`,{type:`button`,class:`creation-item__link`,onClick:e=>p.openShowcase(n)},r(p.$t(`index.button.try`)),9,we)])]))),128))])])]),e(`section`,Te,[e(`div`,Ee,[e(`div`,De,[e(`span`,$,r(p.$t(`index.eyebrow.directory`)),1),e(`h2`,null,r(p.$t(`index.title.directory`)),1),e(`p`,null,r(p.$t(`index.subtitle.directory`)),1)]),e(`div`,Oe,[(f(!0),o(s,null,d(p.capabilityCards,t=>(f(),o(`div`,{key:t.key,class:`capability-row`},[e(`img`,{src:t.icon,alt:``},null,8,ke),e(`span`,null,r(t.label),1)]))),128))])])]),e(`section`,Ae,[e(`div`,je,[e(`div`,null,[e(`p`,Me,r(p.$t(`index.eyebrow.cta`)),1),e(`h2`,null,r(p.$t(`index.title.cta`)),1),e(`p`,null,r(p.$t(`index.subtitle.cta`)),1)]),e(`div`,Ne,[i(_,{type:`primary`,size:`large`,onClick:p.onStart},{default:u(()=>[n(r(p.$t(`common.button.startForFree`)),1)]),_:1},8,[`onClick`]),p.isMainSite?(f(),l(_,{key:0,size:`large`,onClick:p.openSubsites},{default:u(()=>[n(r(p.$t(`index.button.createSubsite`)),1)]),_:1},8,[`onClick`])):a(``,!0)])])])])}var Fe=v(k,[[`render`,Pe],[`__scopeId`,`data-v-82c57205`]]);export{Fe as default};