@acedatacloud/nexior 2.13.0 → 2.13.2

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 (163) hide show
  1. package/dist/assets/{Auth.003a3dd0.js → Auth.e9cc5244.js} +1 -1
  2. package/dist/assets/{Buy.411003c0.js → Buy.755a56a1.js} +1 -1
  3. package/dist/assets/{Buy.80910a07.js → Buy.e45a8838.js} +1 -1
  4. package/dist/assets/{Callback.7c66dfa3.js → Callback.d7ed034e.js} +1 -1
  5. package/dist/assets/{Chatdoc.6c121035.js → Chatdoc.ab78d2c3.js} +1 -1
  6. package/dist/assets/{Console.dea44957.js → Console.64781fb9.js} +1 -1
  7. package/dist/assets/Conversation.9b31061d.js +1 -0
  8. package/dist/assets/Conversation.a44b157c.js +1 -0
  9. package/dist/assets/{CopyToClipboard.b7190113.js → CopyToClipboard.1d9ee86e.js} +1 -1
  10. package/dist/assets/{DarkSelector.9c8ecfce.js → DarkSelector.b3960398.js} +1 -1
  11. package/dist/assets/{Detail.cbf9d4a7.js → Detail.aed6830c.js} +1 -1
  12. package/dist/assets/{History.c5997e34.js → History.7b2ab547.js} +1 -1
  13. package/dist/assets/{Index.0155ff31.js → Index.12617b6b.js} +1 -1
  14. package/dist/assets/{Index.a8d6f46d.js → Index.1a016956.js} +2 -2
  15. package/dist/assets/Index.4147d98e.js +1 -0
  16. package/dist/assets/Index.446f9368.js +1 -0
  17. package/dist/assets/Index.75569ded.js +1 -0
  18. package/dist/assets/Index.82c55867.js +1 -0
  19. package/dist/assets/{Index.fcf3d09d.js → Index.b562441b.js} +1 -1
  20. package/dist/assets/{Index.573e22ce.js → Index.b7469399.js} +1 -1
  21. package/dist/assets/Index.da301282.js +1 -0
  22. package/dist/assets/{Index.e6edf447.js → Index.db433f82.js} +1 -1
  23. package/dist/assets/Index.e3e033d6.js +1 -0
  24. package/dist/assets/Index.e7814f00.js +1 -0
  25. package/dist/assets/{Index.c78831b2.js → Index.ec2d72a6.js} +1 -1
  26. package/dist/assets/Index.f68215c5.css +1 -0
  27. package/dist/assets/Index.fd7c5169.css +1 -0
  28. package/dist/assets/{InfoIcon.162a4b17.js → InfoIcon.a25771f3.js} +1 -1
  29. package/dist/assets/{Invitees.d374cb32.js → Invitees.04f25678.js} +1 -1
  30. package/dist/assets/{List.1b7917cd.js → List.069c756e.js} +1 -1
  31. package/dist/assets/{List.5305773c.js → List.1837eaff.js} +1 -1
  32. package/dist/assets/{List.2da90f8d.js → List.af6e0d93.js} +1 -1
  33. package/dist/assets/{Login.9a3693bf.js → Login.0564ada2.js} +1 -1
  34. package/dist/assets/{Main.0ebba12a.js → Main.90f90350.js} +1 -1
  35. package/dist/assets/Manage.2be08d77.js +1 -0
  36. package/dist/assets/{MarkdownRenderer.9e8c0e0e.js → MarkdownRenderer.adec793a.js} +1 -1
  37. package/dist/assets/Navigator.1fa27f96.js +1 -0
  38. package/dist/assets/{Pagination.bbc3be67.js → Pagination.b19ac8cc.js} +1 -1
  39. package/dist/assets/{Setting.75544db8.js → Setting.4b6f1dd8.js} +1 -1
  40. package/dist/assets/{Status.83a165e3.js → Status.6db0d09f.js} +1 -1
  41. package/dist/assets/common.0721dbfc.js +1 -0
  42. package/dist/assets/common.17eaee83.js +1 -0
  43. package/dist/assets/common.19746554.js +1 -0
  44. package/dist/assets/common.1cb8f8ad.js +1 -0
  45. package/dist/assets/common.28543333.js +1 -0
  46. package/dist/assets/common.2ba74076.js +1 -0
  47. package/dist/assets/common.3275a7ce.js +1 -0
  48. package/dist/assets/common.4190b018.js +1 -0
  49. package/dist/assets/common.67f8bd14.js +1 -0
  50. package/dist/assets/common.69cafd96.js +1 -0
  51. package/dist/assets/common.70f7e4d3.js +1 -0
  52. package/dist/assets/common.83720daf.js +1 -0
  53. package/dist/assets/common.96ce4338.js +1 -0
  54. package/dist/assets/common.bb8806da.js +1 -0
  55. package/dist/assets/common.ca7518ca.js +1 -0
  56. package/dist/assets/common.cfcf38fc.js +1 -0
  57. package/dist/assets/common.d92c634f.js +1 -0
  58. package/dist/assets/{common.1c0c9418.js → common.f803e8c0.js} +1 -1
  59. package/dist/assets/{distribution.6d4dc537.js → distribution.6cdf9f8a.js} +1 -1
  60. package/dist/assets/hailuo.0a3d1340.js +1 -0
  61. package/dist/assets/hailuo.2cb82586.js +1 -0
  62. package/dist/assets/hailuo.37108325.js +1 -0
  63. package/dist/assets/hailuo.3894ef18.js +1 -0
  64. package/dist/assets/hailuo.3b8f72eb.js +1 -0
  65. package/dist/assets/hailuo.48169a81.js +1 -0
  66. package/dist/assets/hailuo.603baf35.js +1 -0
  67. package/dist/assets/hailuo.6eaa7dc4.js +1 -0
  68. package/dist/assets/hailuo.76df33b6.js +1 -0
  69. package/dist/assets/hailuo.7ca07086.js +1 -0
  70. package/dist/assets/hailuo.95a516b3.js +1 -0
  71. package/dist/assets/hailuo.aa84f90f.js +1 -0
  72. package/dist/assets/hailuo.b58fe7ac.js +1 -0
  73. package/dist/assets/hailuo.b5941733.js +1 -0
  74. package/dist/assets/hailuo.b75c4887.js +1 -0
  75. package/dist/assets/hailuo.d4c2b8de.js +1 -0
  76. package/dist/assets/hailuo.d63e17d4.js +1 -0
  77. package/dist/assets/hailuo.db591cd1.js +1 -0
  78. package/dist/assets/index.39ace6ff.js +3 -0
  79. package/dist/assets/{order.7ad31a61.js → order.20da32b8.js} +1 -1
  80. package/dist/assets/pika.06076435.js +1 -0
  81. package/dist/assets/pika.08878d2e.js +1 -0
  82. package/dist/assets/pika.0af44318.js +1 -0
  83. package/dist/assets/pika.17a67df4.js +1 -0
  84. package/dist/assets/pika.4d50c4b8.js +1 -0
  85. package/dist/assets/pika.6b347451.js +1 -0
  86. package/dist/assets/pika.7224b0f1.js +1 -0
  87. package/dist/assets/pika.74af89ef.js +1 -0
  88. package/dist/assets/pika.8ef358ba.js +1 -0
  89. package/dist/assets/pika.91dfce8e.js +1 -0
  90. package/dist/assets/pika.920207f1.js +1 -0
  91. package/dist/assets/pika.94c4f48e.js +1 -0
  92. package/dist/assets/pika.a6994bfe.js +1 -0
  93. package/dist/assets/pika.dcb09dca.js +1 -0
  94. package/dist/assets/pika.f11cf01e.js +1 -0
  95. package/dist/assets/pika.f451cd2a.js +1 -0
  96. package/dist/assets/pika.f8fa49a8.js +1 -0
  97. package/dist/assets/pika.fabb00c1.js +1 -0
  98. package/dist/assets/{price.2c62fb0b.js → price.af7b9444.js} +1 -1
  99. package/dist/assets/site.06fe5556.js +1 -0
  100. package/dist/assets/site.07d59e7b.js +1 -0
  101. package/dist/assets/site.129c6ec4.js +1 -0
  102. package/dist/assets/site.1a07eb8e.js +1 -0
  103. package/dist/assets/site.1f2a0a3a.js +1 -0
  104. package/dist/assets/site.2104029d.js +1 -0
  105. package/dist/assets/site.24075a17.js +1 -0
  106. package/dist/assets/site.491d11e4.js +1 -0
  107. package/dist/assets/site.4f47a412.js +1 -0
  108. package/dist/assets/site.8622661a.js +1 -0
  109. package/dist/assets/site.872a809a.js +1 -0
  110. package/dist/assets/site.af966a76.js +1 -0
  111. package/dist/assets/site.b2495edd.js +1 -0
  112. package/dist/assets/site.c4342c8d.js +1 -0
  113. package/dist/assets/site.df4dab91.js +1 -0
  114. package/dist/assets/site.e2ebe23c.js +1 -0
  115. package/dist/assets/site.e34a2cca.js +1 -0
  116. package/dist/assets/site.ee0c53fa.js +1 -0
  117. package/dist/index.html +1 -1
  118. package/package.json +1 -1
  119. package/dist/assets/Conversation.063e1a32.js +0 -1
  120. package/dist/assets/Conversation.bece48fd.js +0 -1
  121. package/dist/assets/Index.47f87882.js +0 -1
  122. package/dist/assets/Index.73fc371c.js +0 -1
  123. package/dist/assets/Index.76cc2a57.js +0 -1
  124. package/dist/assets/Index.81ea5523.js +0 -1
  125. package/dist/assets/Index.a0e88bcb.js +0 -1
  126. package/dist/assets/Manage.84000c9a.js +0 -1
  127. package/dist/assets/Navigator.898e80fd.js +0 -1
  128. package/dist/assets/common.02d369f1.js +0 -1
  129. package/dist/assets/common.0ade0376.js +0 -1
  130. package/dist/assets/common.198ade39.js +0 -1
  131. package/dist/assets/common.2bbcc74d.js +0 -1
  132. package/dist/assets/common.33d95e44.js +0 -1
  133. package/dist/assets/common.61f5fcaf.js +0 -1
  134. package/dist/assets/common.6e5b6c21.js +0 -1
  135. package/dist/assets/common.82026752.js +0 -1
  136. package/dist/assets/common.afa53b9c.js +0 -1
  137. package/dist/assets/common.c2d1ab1f.js +0 -1
  138. package/dist/assets/common.c59e6580.js +0 -1
  139. package/dist/assets/common.d711cd21.js +0 -1
  140. package/dist/assets/common.d9881f10.js +0 -1
  141. package/dist/assets/common.e08e861d.js +0 -1
  142. package/dist/assets/common.e62048ca.js +0 -1
  143. package/dist/assets/common.eaea3566.js +0 -1
  144. package/dist/assets/common.f5089080.js +0 -1
  145. package/dist/assets/index.bf408bd9.js +0 -3
  146. package/dist/assets/site.0972ffdc.js +0 -1
  147. package/dist/assets/site.154a23bc.js +0 -1
  148. package/dist/assets/site.2008f862.js +0 -1
  149. package/dist/assets/site.3ae9c149.js +0 -1
  150. package/dist/assets/site.3eed797c.js +0 -1
  151. package/dist/assets/site.42566329.js +0 -1
  152. package/dist/assets/site.46399d08.js +0 -1
  153. package/dist/assets/site.4b614d29.js +0 -1
  154. package/dist/assets/site.5b344bb7.js +0 -1
  155. package/dist/assets/site.77b7373b.js +0 -1
  156. package/dist/assets/site.85805ad6.js +0 -1
  157. package/dist/assets/site.9b6554c2.js +0 -1
  158. package/dist/assets/site.b015bfad.js +0 -1
  159. package/dist/assets/site.b2414f97.js +0 -1
  160. package/dist/assets/site.c167a927.js +0 -1
  161. package/dist/assets/site.c1d9ffc1.js +0 -1
  162. package/dist/assets/site.d1ae2dd0.js +0 -1
  163. package/dist/assets/site.ea180d67.js +0 -1
@@ -0,0 +1 @@
1
+ var e={"field.title":{message:"T\xEDtulo del sitio",description:"Texto que se muestra en el cuadro de edici\xF3n"},"field.origin":{message:"Dominio del sitio",description:"Texto que se muestra en el cuadro de edici\xF3n"},"field.description":{message:"Descripci\xF3n del sitio",description:"Texto que se muestra en el cuadro de edici\xF3n"},"field.keywords":{message:"Palabras clave del sitio",description:"Texto que se muestra en el cuadro de edici\xF3n"},"field.logo":{message:"Logo del sitio",description:"Texto que se muestra en el cuadro de edici\xF3n"},"field.favicon":{message:"Favicon del sitio",description:"Texto que se muestra en el cuadro de edici\xF3n"},"field.qr":{message:"C\xF3digo QR",description:"Texto que se muestra en el cuadro de edici\xF3n"},"field.url":{message:"Enlace",description:"Texto que se muestra en el cuadro de edici\xF3n"},"field.admins":{message:"ID de administradores del sitio",description:"Texto que se muestra en el cuadro de edici\xF3n"},"field.distributionDefaultInviterId":{message:"ID del invitador predeterminado",description:"Texto que se muestra en el cuadro de edici\xF3n"},"field.distributionForceInviterId":{message:"ID del invitador forzado",description:"Texto que se muestra en el cuadro de edici\xF3n"},"field.featuresChat":{message:"Chat",description:"Texto que se muestra en el cuadro de edici\xF3n"},"field.featuresMidjourney":{message:"Midjourney",description:"Texto que se muestra en el cuadro de edici\xF3n"},"field.featuresChatdoc":{message:"Chatdoc",description:"Texto que se muestra en el cuadro de edici\xF3n"},"field.featuresQrart":{message:"Qrart",description:"Texto que se muestra en el cuadro de edici\xF3n"},"field.featuresLuma":{message:"Luma",description:"Texto que se muestra en el cuadro de edici\xF3n"},"field.featuresPika":{message:"Pika",description:"Texto que se muestra en el cuadro de edici\xF3n"},"field.featuresHailuo":{message:"Hailuo",description:"Texto que se muestra en el cuadro de edici\xF3n"},"field.featuresHeadshots":{message:"Foto de identificaci\xF3n AI",description:"Texto que se muestra en el cuadro de edici\xF3n"},"field.featuresSuno":{message:"Suno",description:"Texto que se muestra en el cuadro de edici\xF3n"},"field.featuresSupport":{message:"Soporte al cliente",description:"Texto que se muestra en el cuadro de edici\xF3n"},"field.featuresI18n":{message:"Soporte multiling\xFCe",description:"Texto que se muestra en el cuadro de edici\xF3n"},"title.basicConfig":{message:"Configuraci\xF3n b\xE1sica",description:"Texto que se muestra en el cuadro de edici\xF3n"},"title.seoConfig":{message:"Configuraci\xF3n de SEO",description:"Texto que se muestra en el cuadro de edici\xF3n"},"title.editAdmins":{message:"Editar administradores",description:"Texto que se muestra en el cuadro de edici\xF3n"},"title.featuresConfig":{message:"Configuraci\xF3n de funciones",description:"Texto que se muestra en el cuadro de edici\xF3n"},"title.editTitle":{message:"Editar t\xEDtulo",description:"Texto que se muestra en el cuadro de edici\xF3n"},"title.editOrigin":{message:"Editar dominio",description:"Texto que se muestra en el cuadro de edici\xF3n"},"title.editKeywords":{message:"Editar palabras clave",description:"Texto que se muestra en el cuadro de edici\xF3n"},"title.editLogo":{message:"Editar logo",description:"Texto que se muestra en el cuadro de edici\xF3n"},"title.editFavicon":{message:"Editar favicon",description:"Texto que se muestra en el cuadro de edici\xF3n"},"title.editDescription":{message:"Editar descripci\xF3n",description:"Texto que se muestra en el cuadro de edici\xF3n"},"title.distributionConfig":{message:"Configuraci\xF3n de distribuci\xF3n",description:"Texto que se muestra en el cuadro de edici\xF3n"},"title.editDistributionDefaultInviterId":{message:"Editar invitador predeterminado",description:"Texto que se muestra en el cuadro de edici\xF3n"},"title.editDistributionForceInviterId":{message:"Editar invitador forzado",description:"Texto que se muestra en el cuadro de edici\xF3n"},"title.editQR":{message:"Editar c\xF3digo QR",description:"Texto que se muestra en el cuadro de edici\xF3n"},"title.editUrl":{message:"Editar enlace",description:"Texto que se muestra en el cuadro de edici\xF3n"},"placeholder.title":{message:"Por favor, introduzca el t\xEDtulo del sitio",description:"Texto que se muestra en el cuadro de edici\xF3n"},"placeholder.origin":{message:"Por favor, introduzca el dominio del sitio",description:"Texto que se muestra en el cuadro de edici\xF3n"},"placeholder.editUrl":{message:"Por favor, introduzca el enlace",description:"Texto que se muestra en el cuadro de edici\xF3n"},"placeholder.description":{message:"Por favor, introduzca la descripci\xF3n del sitio",description:"Texto que se muestra en el cuadro de edici\xF3n"},"placeholder.keywords":{message:"Por favor, introduzca las palabras clave del sitio",description:"Texto que se muestra en el cuadro de edici\xF3n"},"placeholder.editDistributionDefaultInviterId":{message:"Por favor, introduzca el ID del invitador predeterminado",description:"Texto que se muestra en el cuadro de edici\xF3n"},"placeholder.editDistributionForceInviterId":{message:"Por favor, introduzca el ID del invitador forzado",description:"Texto que se muestra en el cuadro de edici\xF3n"},"message.uploadImageExceed":{message:"La imagen subida excede el l\xEDmite",description:"Mensaje de alerta cuando la imagen subida supera el l\xEDmite"},"message.uploadImageError":{message:"Error al subir la imagen",description:"Mensaje de alerta cuando hay un error al subir la imagen"},"message.editLogoTip":{message:"Tama\xF1o sugerido: 200*60px",description:"Instrucciones sobre el tama\xF1o de la imagen que se debe subir"},"message.editQRTip":{message:"Tama\xF1o recomendado: 200*200px",description:"Lenguaje de sugerencia para subir im\xE1genes"},"message.editFaviconTip":{message:"Tama\xF1o recomendado: 32*32px",description:"Lenguaje de sugerencia para subir im\xE1genes"},"message.editUrl":{message:"Por favor introduce el enlace",description:"Sugerencia para ingresar el enlace"},"message.atLeastOneAdmin":{message:"Mantenga al menos un administrador",description:"Sugerencia para mantener al menos un administrador"},"message.distributionDefaultInviterIdTip":{message:"ID de usuario del invitador predeterminado; si el enlace de distribuci\xF3n no contiene el par\xE1metro inviter_id, se utilizar\xE1 este ID como invitador.",description:"Sugerencia para el ID del invitador predeterminado"},"message.distributionForceInviterIdTip":{message:"ID de usuario del invitador forzado; si se establece este ID, se utilizar\xE1 forzosamente este ID como invitador, independientemente de si el enlace de distribuci\xF3n contiene el par\xE1metro inviter_id.",description:"Sugerencia para el ID del invitador forzado"},"message.originTip":{message:"Nombre de dominio del sitio; la configuraci\xF3n del sitio est\xE1 vinculada al dominio y no se puede cambiar.",description:"Sugerencia para el nombre de dominio del sitio"},"message.titleTip":{message:"T\xEDtulo del sitio, que se muestra en la pesta\xF1a del navegador.",description:"Sugerencia para el t\xEDtulo del sitio"},"message.descriptionTip":{message:"Descripci\xF3n del sitio, ubicada en la metadata del sitio, utilizada para la optimizaci\xF3n SEO del sitio.",description:"Sugerencia para la descripci\xF3n del sitio"},"message.logoTip":{message:"Logo del sitio; se muestra en la parte superior del men\xFA del sitio cuando se expande.",description:"Sugerencia para el logo del sitio"},"message.faviconTip":{message:"Favicon del sitio, que se muestra en la pesta\xF1a del navegador.",description:"Sugerencia para el favicon del sitio"},"message.adminsTip":{message:"ID de administradores del sitio; por defecto, el primer usuario que crea el sitio se convierte en administrador, solo los administradores del sitio pueden gestionarlo.",description:"Sugerencia para los administradores del sitio"},"message.adminsTip2":{message:"Puede agregar o eliminar ID de administradores aqu\xED; puede consultar el ID de usuario en https://auth.acedata.cloud",description:"Sugerencia para los administradores del sitio"},"message.keywordsTip":{message:"Palabras clave del sitio, ubicadas en la metadata del sitio, utilizadas para la optimizaci\xF3n SEO del sitio.",description:"Sugerencia para las palabras clave del sitio"},"message.keywordsTip2":{message:"Puede agregar o eliminar palabras clave del sitio aqu\xED; cuanto m\xE1s precisas sean las palabras clave, mejor ser\xE1 para la optimizaci\xF3n SEO.",description:"Sugerencia para las palabras clave del sitio"},"message.featuresChat":{message:"Activar o desactivar el m\xF3dulo de funci\xF3n de Chat.",description:"Descripci\xF3n de la funci\xF3n de Chat"},"message.featuresMidjourney":{message:"Activar o desactivar el m\xF3dulo de funci\xF3n de Midjourney.",description:"Descripci\xF3n de la funci\xF3n de Midjourney"},"message.featuresChatdoc":{message:"Activar o desactivar el m\xF3dulo de funci\xF3n de Chatdoc.",description:"Descripci\xF3n de la funci\xF3n de Chatdoc"},"message.featuresQrart":{message:"Activar o desactivar el m\xF3dulo de funci\xF3n de Qrart.",description:"Descripci\xF3n de la funci\xF3n de Qrart"},"message.featuresSuno":{message:"Activar o desactivar el m\xF3dulo de funci\xF3n de Suno.",description:"Descripci\xF3n de la funci\xF3n de Suno"},"message.featuresLuma":{message:"Activar o desactivar el m\xF3dulo de funci\xF3n de Luma.",description:"Descripci\xF3n de la funci\xF3n de Luma"},"message.featuresPika":{message:"Activar o desactivar el m\xF3dulo de funci\xF3n de Pika.",description:"Descripci\xF3n de la funci\xF3n de Pika"},"message.featuresHailuo":{message:"Activar o desactivar el m\xF3dulo de funci\xF3n de Hailuo.",description:"Descripci\xF3n de la funci\xF3n de Hailuo"},"message.featuresHeadshots":{message:"Activar o desactivar el m\xF3dulo de funci\xF3n de foto de identificaci\xF3n AI.",description:"Descripci\xF3n de la funci\xF3n de foto de identificaci\xF3n AI"},"message.featuresSupport":{message:"Activar o desactivar el soporte al cliente",description:"Descripci\xF3n de la funci\xF3n de soporte"},"message.featuresI18n":{message:"Activar o desactivar el soporte multiling\xFCe; si se desactiva, el usuario solo podr\xE1 usar el idioma predeterminado.",description:"Descripci\xF3n del soporte multiling\xFCe"},"button.upload":{message:"Subir",description:"Subir"},"button.enabled":{message:"Habilitado",description:"Texto del interruptor que indica que est\xE1 habilitado"},"button.disabled":{message:"Deshabilitado",description:"Texto del interruptor que indica que est\xE1 deshabilitado"}};export{e as default};
@@ -0,0 +1 @@
1
+ var e={"field.title":{message:"Seitentitel",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.origin":{message:"Seiten-Domain",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.description":{message:"Seitendbeschreibung",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.keywords":{message:"Seiten-Schl\xFCsselw\xF6rter",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.logo":{message:"Seiten-Logo",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.favicon":{message:"Seiten-Favicon",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.qr":{message:"QR-Code",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.url":{message:"Link",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.admins":{message:"Admin-ID der Seite",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.distributionDefaultInviterId":{message:"Standard-Einladenden-ID",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.distributionForceInviterId":{message:"Zwangseinladenden-ID",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresChat":{message:"Chat",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresMidjourney":{message:"Midjourney",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresChatdoc":{message:"Chatdoc",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresQrart":{message:"Qrart",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresLuma":{message:"Luma",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresPika":{message:"Pika",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresHailuo":{message:"Hailuo",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresHeadshots":{message:"AI-Passbild",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresSuno":{message:"Suno",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresSupport":{message:"Kundensupport",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresI18n":{message:"Mehrsprachige Unterst\xFCtzung",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.basicConfig":{message:"Grundkonfiguration",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.seoConfig":{message:"SEO-Konfiguration",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editAdmins":{message:"Admin bearbeiten",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.featuresConfig":{message:"Funktionskonfiguration",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editTitle":{message:"Titel bearbeiten",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editOrigin":{message:"Domain bearbeiten",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editKeywords":{message:"Schl\xFCsselw\xF6rter bearbeiten",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editLogo":{message:"Logo bearbeiten",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editFavicon":{message:"Favicon bearbeiten",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editDescription":{message:"Beschreibung bearbeiten",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.distributionConfig":{message:"Vertriebsconfiguration",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editDistributionDefaultInviterId":{message:"Standard-Einladenden bearbeiten",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editDistributionForceInviterId":{message:"Zwangseinladenden bearbeiten",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editQR":{message:"QR-Code bearbeiten",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editUrl":{message:"Link bearbeiten",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"placeholder.title":{message:"Bitte Seitentitel eingeben",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"placeholder.origin":{message:"Bitte Seiten-Domain eingeben",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"placeholder.editUrl":{message:"Bitte Link eingeben",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"placeholder.description":{message:"Bitte Seitendbeschreibung eingeben",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"placeholder.keywords":{message:"Bitte Seiten-Schl\xFCsselw\xF6rter eingeben",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"placeholder.editDistributionDefaultInviterId":{message:"Bitte Standard-Einladenden-ID eingeben",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"placeholder.editDistributionForceInviterId":{message:"Bitte Zwangseinladenden-ID eingeben",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"message.uploadImageExceed":{message:"Bild\xFCberschreitung des Upload-Limits",description:"\u4E0A\u4F20\u56FE\u7247\u8D85\u8FC7\u9650\u5236\u7684\u63D0\u793A"},"message.uploadImageError":{message:"Fehler beim Bild-Upload",description:"\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF\u7684\u63D0\u793A"},"message.editLogoTip":{message:"Empfohlene Gr\xF6\xDFe: 200*60px",description:"\u4E0A\u4F20\u56FE\u7247\u7684\u63D0\u793A\u8BED\u8A00"},"message.editQRTip":{message:"Empfohlene Gr\xF6\xDFe: 200*200px",description:"Hinzuf\xFCgen eines Hinweises f\xFCr das Hochladen von Bildern"},"message.editFaviconTip":{message:"Empfohlene Gr\xF6\xDFe: 32*32px",description:"Hinzuf\xFCgen eines Hinweises f\xFCr das Hochladen von Bildern"},"message.editUrl":{message:"Bitte Link eingeben",description:"Hinzuf\xFCgen eines Hinweises zur Eingabe des Links"},"message.atLeastOneAdmin":{message:"Mindestens einen Administrator behalten",description:"Hinzuf\xFCgen eines Hinweises zum Behalten eines Administrators"},"message.distributionDefaultInviterIdTip":{message:"Die Benutzer-ID des Standardeinladers. Wenn der Verteilungslink keinen inviter_id-Parameter enth\xE4lt, wird diese Benutzer-ID standardm\xE4\xDFig als Einlader verwendet.",description:"Hinzuf\xFCgen eines Hinweises zur Standardeinladungs-ID"},"message.distributionForceInviterIdTip":{message:"Die Benutzer-ID des gezwungenen Einladers. Wenn diese ID festgelegt ist, wird diese Benutzer-ID unabh\xE4ngig davon, ob der Verteilungslink den inviter_id-Parameter tr\xE4gt, als Einlader verwendet.",description:"Hinzuf\xFCgen eines Hinweises zur gezwungenen Einladungs-ID"},"message.originTip":{message:"Domain des Standorts. Die Konfiguration des Standorts ist an die Domain gebunden und kann nicht ge\xE4ndert werden.",description:"Hinzuf\xFCgen eines Hinweises zur Standortdomain"},"message.titleTip":{message:"Titel der Seite, der im Browser-Tab angezeigt wird.",description:"Hinzuf\xFCgen eines Hinweises zum Seitentitel"},"message.descriptionTip":{message:"Beschreibung der Seite, die in den Metadaten der Seite enthalten ist, zur SEO-Optimierung.",description:"Hinzuf\xFCgen eines Hinweises zur Seitenbeschreibung"},"message.logoTip":{message:"Logo der Seite, das auf der oberen Men\xFCleiste angezeigt wird, wenn das Men\xFC ge\xF6ffnet ist.",description:"Hinzuf\xFCgen eines Hinweises zum Seitenlogo"},"message.faviconTip":{message:"Favicon der Seite, das im Browser-Tab angezeigt wird.",description:"Hinzuf\xFCgen eines Hinweises zum Seiten-Favicon"},"message.adminsTip":{message:"Benutzer-ID der Seitenadministratoren. Standardm\xE4\xDFig wird der Benutzer, der die Seite als Erster erstellt, Administrator. Nur Seitenadministrator k\xF6nnen die Seite verwalten.",description:"Hinzuf\xFCgen eines Hinweises zu den Seitenadministratoren"},"message.adminsTip2":{message:"Hier k\xF6nnen Sie die Administrator-IDs hinzuf\xFCgen oder entfernen. Besuchen Sie https://auth.acedata.cloud, um die Benutzer-ID zu sehen.",description:"Hinzuf\xFCgen eines Hinweises zu den Seitenadministratoren"},"message.keywordsTip":{message:"Schl\xFCsselw\xF6rter der Seite, die in den Metadaten der Seite enthalten sind, zur SEO-Optimierung.",description:"Hinzuf\xFCgen eines Hinweises zu den Seitenkeywords"},"message.keywordsTip2":{message:"Hier k\xF6nnen Sie die Schl\xFCsselw\xF6rter der Website hinzuf\xFCgen oder entfernen. Je pr\xE4ziser die Schl\xFCsselw\xF6rter, desto besser f\xFCr die SEO-Optimierung.",description:"Hinzuf\xFCgen eines Hinweises zu den Seitenkeywords"},"message.featuresChat":{message:"Chat-Funktion aktivieren oder deaktivieren.",description:"Beschreibung der Chat-Funktion"},"message.featuresMidjourney":{message:"Midjourney-Funktion aktivieren oder deaktivieren.",description:"Beschreibung der Midjourney-Funktion"},"message.featuresChatdoc":{message:"Chatdoc-Funktion aktivieren oder deaktivieren.",description:"Beschreibung der Chatdoc-Funktion"},"message.featuresQrart":{message:"Qrart-Funktion aktivieren oder deaktivieren.",description:"Beschreibung der Qrart-Funktion"},"message.featuresSuno":{message:"Suno-Funktion aktivieren oder deaktivieren.",description:"Beschreibung der Suno-Funktion"},"message.featuresLuma":{message:"Luma-Funktion aktivieren oder deaktivieren.",description:"Beschreibung der Luma-Funktion"},"message.featuresPika":{message:"Pika-Funktion aktivieren oder deaktivieren.",description:"Beschreibung der Pika-Funktion"},"message.featuresHailuo":{message:"Hailuo-Funktion aktivieren oder deaktivieren.",description:"Beschreibung der Hailuo-Funktion"},"message.featuresHeadshots":{message:"AI-ID-Foto-Funktion aktivieren oder deaktivieren.",description:"Beschreibung der AI-ID-Foto-Funktion"},"message.featuresSupport":{message:"Kundensupport aktivieren oder deaktivieren.",description:"Beschreibung der Support-Funktion"},"message.featuresI18n":{message:"Mehrsprachige Unterst\xFCtzung aktivieren oder deaktivieren. Nach dem Deaktivieren kann der Benutzer nur die Standardsprache verwenden.",description:"Beschreibung der mehrsprachigen Unterst\xFCtzung"},"button.upload":{message:"Hochladen",description:"Hochladen"},"button.enabled":{message:"Aktiviert",description:"Schaltertext, der anzeigt, dass es aktiviert ist"},"button.disabled":{message:"Deaktiviert",description:"Schaltertext, der anzeigt, dass es deaktiviert ist"}};export{e as default};
@@ -0,0 +1 @@
1
+ var e={"field.title":{message:"Tytu\u0142 witryny",description:"Wy\u015Bwietlane w tytule edytora"},"field.origin":{message:"Domena witryny",description:"Wy\u015Bwietlane w tytule edytora"},"field.description":{message:"Opis witryny",description:"Wy\u015Bwietlane w tytule edytora"},"field.keywords":{message:"S\u0142owa kluczowe witryny",description:"Wy\u015Bwietlane w tytule edytora"},"field.logo":{message:"Logo witryny",description:"Wy\u015Bwietlane w tytule edytora"},"field.favicon":{message:"Favicon witryny",description:"Wy\u015Bwietlane w tytule edytora"},"field.qr":{message:"Kod QR",description:"Wy\u015Bwietlane w tytule edytora"},"field.url":{message:"Link",description:"Wy\u015Bwietlane w tytule edytora"},"field.admins":{message:"ID administrator\xF3w witryny",description:"Wy\u015Bwietlane w tytule edytora"},"field.distributionDefaultInviterId":{message:"Domy\u015Blne ID zapraszaj\u0105cego",description:"Wy\u015Bwietlane w tytule edytora"},"field.distributionForceInviterId":{message:"Wymuszone ID zapraszaj\u0105cego",description:"Wy\u015Bwietlane w tytule edytora"},"field.featuresChat":{message:"Czat",description:"Wy\u015Bwietlane w tytule edytora"},"field.featuresMidjourney":{message:"Midjourney",description:"Wy\u015Bwietlane w tytule edytora"},"field.featuresChatdoc":{message:"Chatdoc",description:"Wy\u015Bwietlane w tytule edytora"},"field.featuresQrart":{message:"Qrart",description:"Wy\u015Bwietlane w tytule edytora"},"field.featuresLuma":{message:"Luma",description:"Wy\u015Bwietlane w tytule edytora"},"field.featuresPika":{message:"Pika",description:"Wy\u015Bwietlane w tytule edytora"},"field.featuresHailuo":{message:"Hailuo",description:"Wy\u015Bwietlane w tytule edytora"},"field.featuresHeadshots":{message:"Zdj\u0119cia identyfikacyjne AI",description:"Wy\u015Bwietlane w tytule edytora"},"field.featuresSuno":{message:"Suno",description:"Wy\u015Bwietlane w tytule edytora"},"field.featuresSupport":{message:"Wsparcie klienta",description:"Wy\u015Bwietlane w tytule edytora"},"field.featuresI18n":{message:"Wsparcie w wielu j\u0119zykach",description:"Wy\u015Bwietlane w tytule edytora"},"title.basicConfig":{message:"Podstawowa konfiguracja",description:"Wy\u015Bwietlane w tytule edytora"},"title.seoConfig":{message:"Konfiguracja SEO",description:"Wy\u015Bwietlane w tytule edytora"},"title.editAdmins":{message:"Edytuj administrator\xF3w",description:"Wy\u015Bwietlane w tytule edytora"},"title.featuresConfig":{message:"Konfiguracja funkcji",description:"Wy\u015Bwietlane w tytule edytora"},"title.editTitle":{message:"Edytuj tytu\u0142",description:"Wy\u015Bwietlane w tytule edytora"},"title.editOrigin":{message:"Edytuj domen\u0119",description:"Wy\u015Bwietlane w tytule edytora"},"title.editKeywords":{message:"Edytuj s\u0142owa kluczowe",description:"Wy\u015Bwietlane w tytule edytora"},"title.editLogo":{message:"Edytuj logo",description:"Wy\u015Bwietlane w tytule edytora"},"title.editFavicon":{message:"Edytuj favicon",description:"Wy\u015Bwietlane w tytule edytora"},"title.editDescription":{message:"Edytuj opis",description:"Wy\u015Bwietlane w tytule edytora"},"title.distributionConfig":{message:"Konfiguracja dystrybucji",description:"Wy\u015Bwietlane w tytule edytora"},"title.editDistributionDefaultInviterId":{message:"Edytuj domy\u015Blnego zapraszaj\u0105cego",description:"Wy\u015Bwietlane w tytule edytora"},"title.editDistributionForceInviterId":{message:"Edytuj wymuszonego zapraszaj\u0105cego",description:"Wy\u015Bwietlane w tytule edytora"},"title.editQR":{message:"Edytuj kod QR",description:"Wy\u015Bwietlane w tytule edytora"},"title.editUrl":{message:"Edytuj link",description:"Wy\u015Bwietlane w tytule edytora"},"placeholder.title":{message:"Wprowad\u017A tytu\u0142 witryny",description:"Wy\u015Bwietlane w tytule edytora"},"placeholder.origin":{message:"Wprowad\u017A domen\u0119 witryny",description:"Wy\u015Bwietlane w tytule edytora"},"placeholder.editUrl":{message:"Wprowad\u017A link",description:"Wy\u015Bwietlane w tytule edytora"},"placeholder.description":{message:"Wprowad\u017A opis witryny",description:"Wy\u015Bwietlane w tytule edytora"},"placeholder.keywords":{message:"Wprowad\u017A s\u0142owa kluczowe witryny",description:"Wy\u015Bwietlane w tytule edytora"},"placeholder.editDistributionDefaultInviterId":{message:"Wprowad\u017A domy\u015Blne ID zapraszaj\u0105cego",description:"Wy\u015Bwietlane w tytule edytora"},"placeholder.editDistributionForceInviterId":{message:"Wprowad\u017A wymuszone ID zapraszaj\u0105cego",description:"Wy\u015Bwietlane w tytule edytora"},"message.uploadImageExceed":{message:"Przekroczono limit przesy\u0142ania obrazu",description:"Wiadomo\u015B\u0107 wy\u015Bwietlana, gdy przesy\u0142any obraz przekracza limit"},"message.uploadImageError":{message:"B\u0142\u0105d przesy\u0142ania obrazu",description:"Wiadomo\u015B\u0107 wy\u015Bwietlana w przypadku b\u0142\u0119du przesy\u0142ania obrazu"},"message.editLogoTip":{message:"Zalecany rozmiar: 200*60px",description:"Wskaz\xF3wki dotycz\u0105ce przesy\u0142ania obrazu"},"message.editQRTip":{message:"Zalecany rozmiar: 200*200px",description:"J\u0119zyk wskaz\xF3wki do przes\u0142ania zdj\u0119cia"},"message.editFaviconTip":{message:"Zalecany rozmiar: 32*32px",description:"J\u0119zyk wskaz\xF3wki do przes\u0142ania zdj\u0119cia"},"message.editUrl":{message:"Prosz\u0119 wpisa\u0107 link",description:"Wskaz\xF3wka do wpisania linku"},"message.atLeastOneAdmin":{message:"Musisz zachowa\u0107 przynajmniej jednego administratora",description:"Wskaz\xF3wka, \u017Ce musisz zachowa\u0107 przynajmniej jednego administratora"},"message.distributionDefaultInviterIdTip":{message:"Domy\u015Blny ID zapraszaj\u0105cego, je\u015Bli link dystrybucji nie zawiera parametru inviter_id, domy\u015Blnie u\u017Cyto tego ID u\u017Cytkownika jako zapraszaj\u0105cego.",description:"Wskaz\xF3wka dotycz\u0105ca domy\u015Blnego ID zapraszaj\u0105cego"},"message.distributionForceInviterIdTip":{message:"Wymuszony ID zapraszaj\u0105cego, je\u015Bli ustawiono ten ID, niezale\u017Cnie od tego, czy link dystrybucji zawiera parametr inviter_id, b\u0119dzie si\u0119 go wymusza\u0107 jako zapraszaj\u0105cego.",description:"Wskaz\xF3wka dotycz\u0105ca wymuszonego ID zapraszaj\u0105cego"},"message.originTip":{message:"Domena witryny, konfiguracja witryny jest zwi\u0105zana z domen\u0105, domena witryny nie mo\u017Ce by\u0107 zmieniana.",description:"Wskaz\xF3wka dotycz\u0105ca domeny witryny"},"message.titleTip":{message:"Tytu\u0142 witryny, wy\u015Bwietlany na karcie przegl\u0105darki.",description:"Wskaz\xF3wka dotycz\u0105ca tytu\u0142u witryny"},"message.descriptionTip":{message:"Opis witryny, znajduje si\u0119 w metainformacjach witryny, s\u0142u\u017Cy do optymalizacji SEO witryny.",description:"Wskaz\xF3wka dotycz\u0105ca opisu witryny"},"message.logoTip":{message:"Logo witryny, wy\u015Bwietlane na g\xF3rze menu witryny po rozwini\u0119ciu.",description:"Wskaz\xF3wka dotycz\u0105ca logo witryny"},"message.faviconTip":{message:"Favicon witryny, wy\u015Bwietlany na karcie przegl\u0105darki.",description:"Wskaz\xF3wka dotycz\u0105ca favicon witryny"},"message.adminsTip":{message:"ID administrator\xF3w witryny, domy\u015Blnie pierwszym u\u017Cytkownikiem, kt\xF3ry stworzy\u0142 t\u0119 witryn\u0119, zostanie administrator, tylko administratorzy witryny mog\u0105 zarz\u0105dza\u0107 witryn\u0105.",description:"Wskaz\xF3wka dotycz\u0105ca administrator\xF3w witryny"},"message.adminsTip2":{message:"Mo\u017Cesz doda\u0107 lub usun\u0105\u0107 ID administrator\xF3w w tym miejscu, ID u\u017Cytkownik\xF3w mo\u017Cna zobaczy\u0107 na stronie https://auth.acedata.cloud",description:"Wskaz\xF3wka dotycz\u0105ca administrator\xF3w witryny"},"message.keywordsTip":{message:"S\u0142owa kluczowe witryny, znajduj\u0105ce si\u0119 w metainformacjach witryny, s\u0142u\u017C\u0105 do optymalizacji SEO witryny.",description:"Wskaz\xF3wka dotycz\u0105ca s\u0142\xF3w kluczowych witryny"},"message.keywordsTip2":{message:"Mo\u017Cesz doda\u0107 lub usun\u0105\u0107 s\u0142owa kluczowe witryny w tym miejscu, im bardziej precyzyjne s\u0142owa kluczowe, tym korzystniejsze dla optymalizacji SEO.",description:"Wskaz\xF3wka dotycz\u0105ca s\u0142\xF3w kluczowych witryny"},"message.featuresChat":{message:"W\u0142\u0105cz lub wy\u0142\u0105cz modu\u0142 funkcji Chat.",description:"Opis funkcji Chat"},"message.featuresMidjourney":{message:"W\u0142\u0105cz lub wy\u0142\u0105cz modu\u0142 funkcji Midjourney.",description:"Opis funkcji Midjourney"},"message.featuresChatdoc":{message:"W\u0142\u0105cz lub wy\u0142\u0105cz modu\u0142 funkcji Chatdoc.",description:"Opis funkcji Chatdoc"},"message.featuresQrart":{message:"W\u0142\u0105cz lub wy\u0142\u0105cz modu\u0142 funkcji Qrart.",description:"Opis funkcji Qrart"},"message.featuresSuno":{message:"W\u0142\u0105cz lub wy\u0142\u0105cz modu\u0142 funkcji Suno.",description:"Opis funkcji Suno"},"message.featuresLuma":{message:"W\u0142\u0105cz lub wy\u0142\u0105cz modu\u0142 funkcji Luma.",description:"Opis funkcji Luma"},"message.featuresPika":{message:"W\u0142\u0105cz lub wy\u0142\u0105cz modu\u0142 funkcji Pika.",description:"Opis funkcji Pika"},"message.featuresHailuo":{message:"W\u0142\u0105cz lub wy\u0142\u0105cz modu\u0142 funkcji Hailuo.",description:"Opis funkcji Hailuo"},"message.featuresHeadshots":{message:"W\u0142\u0105cz lub wy\u0142\u0105cz modu\u0142 funkcji AI zdj\u0119cia identyfikacyjne.",description:"Opis funkcji AI zdj\u0119cia identyfikacyjne"},"message.featuresSupport":{message:"W\u0142\u0105cz lub wy\u0142\u0105cz wsparcie dla klienta",description:"Opis funkcji wsparcia"},"message.featuresI18n":{message:"W\u0142\u0105cz lub wy\u0142\u0105cz wsparcie dla wielu j\u0119zyk\xF3w, po wy\u0142\u0105czeniu u\u017Cytkownicy b\u0119d\u0105 mogli korzysta\u0107 tylko z domy\u015Blnego j\u0119zyka.",description:"Opis wsparcia dla wielu j\u0119zyk\xF3w"},"button.upload":{message:"Prze\u015Blij",description:"Prze\u015Blij"},"button.enabled":{message:"W\u0142\u0105czone",description:"Tekst prze\u0142\u0105cznika, oznaczaj\u0105cy, \u017Ce jest w\u0142\u0105czone"},"button.disabled":{message:"Wy\u0142\u0105czone",description:"Tekst prze\u0142\u0105cznika, oznaczaj\u0105cy, \u017Ce jest wy\u0142\u0105czone"}};export{e as default};
@@ -0,0 +1 @@
1
+ var i={"field.title":{message:"Titolo del sito",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.origin":{message:"Dominio del sito",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.description":{message:"Descrizione del sito",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.keywords":{message:"Parole chiave del sito",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.logo":{message:"Logo del sito",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.favicon":{message:"Favicon del sito",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.qr":{message:"Codice QR",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.url":{message:"Link",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.admins":{message:"ID degli amministratori del sito",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.distributionDefaultInviterId":{message:"ID dell'invitante predefinito",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.distributionForceInviterId":{message:"ID dell'invitante obbligatorio",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresChat":{message:"Chat",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresMidjourney":{message:"Midjourney",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresChatdoc":{message:"Chatdoc",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresQrart":{message:"Qrart",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresLuma":{message:"Luma",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresPika":{message:"Pika",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresHailuo":{message:"Hailuo",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresHeadshots":{message:"Foto segnaletiche AI",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresSuno":{message:"Suno",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresSupport":{message:"Supporto clienti",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"field.featuresI18n":{message:"Supporto multilingue",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.basicConfig":{message:"Configurazione di base",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.seoConfig":{message:"Configurazione SEO",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editAdmins":{message:"Modifica amministratori",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.featuresConfig":{message:"Configurazione delle funzionalit\xE0",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editTitle":{message:"Modifica titolo",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editOrigin":{message:"Modifica dominio",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editKeywords":{message:"Modifica parole chiave",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editLogo":{message:"Modifica Logo",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editFavicon":{message:"Modifica Favicon",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editDescription":{message:"Modifica descrizione",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.distributionConfig":{message:"Configurazione della distribuzione",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editDistributionDefaultInviterId":{message:"Modifica invitante predefinito",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editDistributionForceInviterId":{message:"Modifica invitante obbligatorio",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editQR":{message:"Modifica codice QR",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"title.editUrl":{message:"Modifica link",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"placeholder.title":{message:"Inserisci il titolo del sito",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"placeholder.origin":{message:"Inserisci il dominio del sito",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"placeholder.editUrl":{message:"Inserisci il link",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"placeholder.description":{message:"Inserisci la descrizione del sito",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"placeholder.keywords":{message:"Inserisci le parole chiave del sito",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"placeholder.editDistributionDefaultInviterId":{message:"Inserisci l'ID dell'invitante predefinito",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"placeholder.editDistributionForceInviterId":{message:"Inserisci l'ID dell'invitante obbligatorio",description:"\u5C55\u793A\u5728\u7F16\u8F91\u6846\u7684\u6807\u9898"},"message.uploadImageExceed":{message:"Immagine caricata oltre il limite",description:"\u4E0A\u4F20\u56FE\u7247\u8D85\u8FC7\u9650\u5236\u7684\u63D0\u793A"},"message.uploadImageError":{message:"Errore nel caricamento dell'immagine",description:"\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF\u7684\u63D0\u793A"},"message.editLogoTip":{message:"Dimensioni consigliate: 200*60px",description:"\u4E0A\u4F20\u56FE\u7247\u7684\u63D0\u793A\u8BED\u8A00"},"message.editQRTip":{message:"Dimensione consigliata: 200*200px",description:"Lingua di suggerimento per il caricamento dell'immagine"},"message.editFaviconTip":{message:"Dimensione consigliata: 32*32px",description:"Lingua di suggerimento per il caricamento dell'immagine"},"message.editUrl":{message:"Inserisci il link",description:"Suggerimento per inserire il link"},"message.atLeastOneAdmin":{message:"Devi mantenere almeno un amministratore",description:"Suggerimento per mantenere almeno un amministratore"},"message.distributionDefaultInviterIdTip":{message:"ID utente dell'invitante predefinito, se il link di distribuzione non include il parametro inviter_id, verr\xE0 utilizzato questo ID utente come invitante.",description:"Suggerimento per l'ID dell'invitante predefinito"},"message.distributionForceInviterIdTip":{message:"ID utente dell'invitante obbligatorio, se questo ID \xE8 impostato, verr\xE0 usato forzosamente, indipendentemente dal fatto che il link di distribuzione contenga o meno il parametro inviter_id.",description:"Suggerimento per l'ID dell'invitante obbligatorio"},"message.originTip":{message:"Dominio del sito, la configurazione del sito \xE8 legata al dominio e non pu\xF2 essere modificata.",description:"Suggerimento per il dominio del sito"},"message.titleTip":{message:"Titolo del sito, visualizzato nella scheda del browser.",description:"Suggerimento per il titolo del sito"},"message.descriptionTip":{message:"Descrizione del sito, presente nei meta dati del sito, utilizzata per l'ottimizzazione SEO del sito.",description:"Suggerimento per la descrizione del sito"},"message.logoTip":{message:"Logo del sito, visualizzato nella parte superiore del menu del sito quando il menu \xE8 espanso.",description:"Suggerimento per il logo del sito"},"message.faviconTip":{message:"Favicon del sito, visualizzato nella scheda del browser.",description:"Suggerimento per il Favicon del sito"},"message.adminsTip":{message:"ID degli amministratori del sito, per impostazione predefinita, il primo utente che crea questo sito diventa amministratore, solo gli amministratori del sito possono gestire il sito.",description:"Suggerimento per gli amministratori del sito"},"message.adminsTip2":{message:"Puoi aggiungere o rimuovere ID di amministratori qui, per visualizzare l'ID utente vai su https://auth.acedata.cloud",description:"Suggerimento per gli amministratori del sito"},"message.keywordsTip":{message:"Parole chiave del sito, presenti nei meta dati del sito, utilizzate per l'ottimizzazione SEO del sito.",description:"Suggerimento per le parole chiave del sito"},"message.keywordsTip2":{message:"Puoi aggiungere o rimuovere parole chiave del sito qui, pi\xF9 le parole chiave sono precise, pi\xF9 sono vantaggiose per l'ottimizzazione SEO.",description:"Suggerimento per le parole chiave del sito"},"message.featuresChat":{message:"Abilita o disabilita il modulo chat.",description:"Descrizione della funzionalit\xE0 della chat"},"message.featuresMidjourney":{message:"Abilita o disabilita il modulo Midjourney.",description:"Descrizione della funzionalit\xE0 di Midjourney"},"message.featuresChatdoc":{message:"Abilita o disabilita il modulo Chatdoc.",description:"Descrizione della funzionalit\xE0 di Chatdoc"},"message.featuresQrart":{message:"Abilita o disabilita il modulo Qrart.",description:"Descrizione della funzionalit\xE0 di Qrart"},"message.featuresSuno":{message:"Abilita o disabilita il modulo Suno.",description:"Descrizione della funzionalit\xE0 di Suno"},"message.featuresLuma":{message:"Abilita o disabilita il modulo Luma.",description:"Descrizione della funzionalit\xE0 di Luma"},"message.featuresPika":{message:"Abilita o disabilita il modulo Pika.",description:"Descrizione della funzionalit\xE0 di Pika"},"message.featuresHailuo":{message:"Abilita o disabilita il modulo Hailuo.",description:"Descrizione della funzionalit\xE0 di Hailuo"},"message.featuresHeadshots":{message:"Abilita o disabilita il modulo foto segnaletiche AI.",description:"Descrizione della funzionalit\xE0 di foto segnaletiche AI"},"message.featuresSupport":{message:"Abilita o disabilita il supporto clienti.",description:"Descrizione della funzionalit\xE0 di supporto"},"message.featuresI18n":{message:"Abilita o disabilita il supporto multilingue, se disabilitato, gli utenti possono utilizzare solo la lingua predefinita.",description:"Descrizione del supporto multilingue"},"button.upload":{message:"Carica",description:"Caricare"},"button.enabled":{message:"Abilitato",description:"Testo dell'interruttore, indica che \xE8 abilitato"},"button.disabled":{message:"Disabilitato",description:"Testo dell'interruttore, indica che \xE8 disabilitato"}};export{i as default};
@@ -0,0 +1 @@
1
+ var e={"field.title":{message:"Site Title",description:"Displayed as the title in the editing box"},"field.origin":{message:"Site Domain",description:"Displayed as the title in the editing box"},"field.description":{message:"Site Description",description:"Displayed as the title in the editing box"},"field.keywords":{message:"Site Keywords",description:"Displayed as the title in the editing box"},"field.logo":{message:"Site Logo",description:"Displayed as the title in the editing box"},"field.favicon":{message:"Site Favicon",description:"Displayed as the title in the editing box"},"field.qr":{message:"QR Code",description:"Displayed as the title in the editing box"},"field.url":{message:"Link",description:"Displayed as the title in the editing box"},"field.admins":{message:"Site Admin ID",description:"Displayed as the title in the editing box"},"field.distributionDefaultInviterId":{message:"Default Inviter ID",description:"Displayed as the title in the editing box"},"field.distributionForceInviterId":{message:"Forced Inviter ID",description:"Displayed as the title in the editing box"},"field.featuresChat":{message:"Chat",description:"Displayed as the title in the editing box"},"field.featuresMidjourney":{message:"Midjourney",description:"Displayed as the title in the editing box"},"field.featuresChatdoc":{message:"Chatdoc",description:"Displayed as the title in the editing box"},"field.featuresQrart":{message:"Qrart",description:"Displayed as the title in the editing box"},"field.featuresLuma":{message:"Luma",description:"Displayed as the title in the editing box"},"field.featuresPika":{message:"Pika",description:"Displayed as the title in the editing box"},"field.featuresHailuo":{message:"Hailuo",description:"Displayed as the title in the editing box"},"field.featuresHeadshots":{message:"AI Profile Photos",description:"Displayed as the title in the editing box"},"field.featuresSuno":{message:"Suno",description:"Displayed as the title in the editing box"},"field.featuresSupport":{message:"Customer Support",description:"Displayed as the title in the editing box"},"field.featuresI18n":{message:"Multi-language Support",description:"Displayed as the title in the editing box"},"title.basicConfig":{message:"Basic Configuration",description:"Displayed as the title in the editing box"},"title.seoConfig":{message:"SEO Configuration",description:"Displayed as the title in the editing box"},"title.editAdmins":{message:"Edit Admins",description:"Displayed as the title in the editing box"},"title.featuresConfig":{message:"Features Configuration",description:"Displayed as the title in the editing box"},"title.editTitle":{message:"Edit Title",description:"Displayed as the title in the editing box"},"title.editOrigin":{message:"Edit Domain",description:"Displayed as the title in the editing box"},"title.editKeywords":{message:"Edit Keywords",description:"Displayed as the title in the editing box"},"title.editLogo":{message:"Edit Logo",description:"Displayed as the title in the editing box"},"title.editFavicon":{message:"Edit Favicon",description:"Displayed as the title in the editing box"},"title.editDescription":{message:"Edit Description",description:"Displayed as the title in the editing box"},"title.distributionConfig":{message:"Distribution Configuration",description:"Displayed as the title in the editing box"},"title.editDistributionDefaultInviterId":{message:"Edit Default Inviter",description:"Displayed as the title in the editing box"},"title.editDistributionForceInviterId":{message:"Edit Forced Inviter",description:"Displayed as the title in the editing box"},"title.editQR":{message:"Edit QR Code",description:"Displayed as the title in the editing box"},"title.editUrl":{message:"Edit Link",description:"Displayed as the title in the editing box"},"placeholder.title":{message:"Please enter site title",description:"Displayed as the title in the editing box"},"placeholder.origin":{message:"Please enter site domain",description:"Displayed as the title in the editing box"},"placeholder.editUrl":{message:"Please enter link",description:"Displayed as the title in the editing box"},"placeholder.description":{message:"Please enter site description",description:"Displayed as the title in the editing box"},"placeholder.keywords":{message:"Please enter site keywords",description:"Displayed as the title in the editing box"},"placeholder.editDistributionDefaultInviterId":{message:"Please enter default inviter ID",description:"Displayed as the title in the editing box"},"placeholder.editDistributionForceInviterId":{message:"Please enter forced inviter ID",description:"Displayed as the title in the editing box"},"message.uploadImageExceed":{message:"Uploaded image exceeds limit",description:"Prompt indicating the uploaded image exceeds limit"},"message.uploadImageError":{message:"Error uploading image",description:"Prompt indicating the error in uploading image"},"message.editLogoTip":{message:"Recommended size: 200*60px",description:"Language for upload image prompt"},"message.editQRTip":{message:"Recommended size: 200*200px",description:"Upload image prompt language"},"message.editFaviconTip":{message:"Recommended size: 32*32px",description:"Upload image prompt language"},"message.editUrl":{message:"Please enter the link",description:"Prompt to enter the link"},"message.atLeastOneAdmin":{message:"At least one administrator must be retained",description:"Prompt about retaining at least one administrator"},"message.distributionDefaultInviterIdTip":{message:"The user ID of the default inviter; if the distribution link does not carry the inviter_id parameter, this user ID will be used as the inviter by default.",description:"Prompt for the default inviter ID"},"message.distributionForceInviterIdTip":{message:"The user ID of the forced inviter; if this ID is set, this user ID will be used as the inviter regardless of whether the distribution link carries the inviter_id parameter.",description:"Prompt for the forced inviter ID"},"message.originTip":{message:"Site domain name; site configuration is bound to the domain name, and the site domain name cannot be changed.",description:"Prompt for the site domain name"},"message.titleTip":{message:"Site title displayed in the browser tab.",description:"Prompt for the site title"},"message.descriptionTip":{message:"Site description located in the site metadata, used for site SEO optimization.",description:"Prompt for the site description"},"message.logoTip":{message:"Site logo displayed at the top of the site menu when the menu bar is expanded.",description:"Prompt for the site logo"},"message.faviconTip":{message:"Site favicon displayed in the browser tab.",description:"Prompt for the site favicon"},"message.adminsTip":{message:"Site administrator ID; the user who first creates the site will become the administrator by default, and only site administrators can manage the site.",description:"Prompt for site administrators"},"message.adminsTip2":{message:"Administrators' IDs can be added or removed here; you can view user IDs at https://auth.acedata.cloud",description:"Prompt for site administrators"},"message.keywordsTip":{message:"Site keywords located in the site metadata, used for site SEO optimization.",description:"Prompt for site keywords"},"message.keywordsTip2":{message:"Website keywords can be added or removed here; the more precise the keywords, the more beneficial they are for SEO optimization.",description:"Prompt for site keywords"},"message.featuresChat":{message:"Enable or disable the Chat functionality module.",description:"Description of the Chat feature"},"message.featuresMidjourney":{message:"Enable or disable the Midjourney functionality module.",description:"Description of the Midjourney feature"},"message.featuresChatdoc":{message:"Enable or disable the Chatdoc functionality module.",description:"Description of the Chatdoc feature"},"message.featuresQrart":{message:"Enable or disable the Qrart functionality module.",description:"Description of the Qrart feature"},"message.featuresSuno":{message:"Enable or disable the Suno functionality module.",description:"Description of the Suno feature"},"message.featuresLuma":{message:"Enable or disable the Luma functionality module.",description:"Description of the Luma feature"},"message.featuresPika":{message:"Enable or disable the Pika functionality module.",description:"Description of the Pika feature"},"message.featuresHailuo":{message:"Enable or disable the Hailuo functionality module.",description:"Description of the Hailuo feature"},"message.featuresHeadshots":{message:"Enable or disable the AI ID photo functionality module.",description:"Description of the AI ID photo feature"},"message.featuresSupport":{message:"Enable or disable customer support",description:"Description of the Support feature"},"message.featuresI18n":{message:"Enable or disable multilingual support; if disabled, users can only use the default language.",description:"Description of multilingual support"},"button.upload":{message:"Upload",description:"Upload"},"button.enabled":{message:"Enabled",description:"Switch text indicating it has been enabled"},"button.disabled":{message:"Disabled",description:"Switch text indicating it has been disabled"}};export{e as default};
package/dist/index.html CHANGED
@@ -16,7 +16,7 @@
16
16
  s.parentNode.insertBefore(hm, s);
17
17
  })();
18
18
  </script>
19
- <script type="module" crossorigin src="/assets/index.bf408bd9.js"></script>
19
+ <script type="module" crossorigin src="/assets/index.39ace6ff.js"></script>
20
20
  <link rel="modulepreload" href="/assets/vendor-@vue.01066951.js">
21
21
  <link rel="modulepreload" href="/assets/vendor-element-plus.0a44791e.js">
22
22
  <link rel="modulepreload" href="/assets/vendor-others.56d45bbc.js">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acedatacloud/nexior",
3
- "version": "2.13.0",
3
+ "version": "2.13.2",
4
4
  "author": "Germey Technology <dev@germey.tech>",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1 +0,0 @@
1
- import{J as L}from"./vendor-others.56d45bbc.js";import{L as F}from"./Chatdoc.6c121035.js";import{ad as P,ae as b,af as A,_ as I,K as N,X as v,$ as K,Z as z}from"./index.bf408bd9.js";import{a as G}from"./vendor-axios.168e6950.js";import{E as T,b as q,c as H,d as W,e as J,f as Q,g as j,h as O,A as X,a as Y}from"./Status.83a165e3.js";import{ao as D}from"./vendor-fortawesome.af6cba05.js";import{N as V,C as Z,F as x,l as ee}from"./vendor-element-plus.0a44791e.js";import{H as E,al as l,o,e as c,L as h,f as i,V as m,U as k,W as R,ai as M,Q as S,as as U,S as f,$ as w,M as B,T as se}from"./vendor-@vue.01066951.js";import{M as te}from"./MarkdownRenderer.9e8c0e0e.js";import{C as oe}from"./CopyToClipboard.b7190113.js";import"./vendor-qrcode.3f236d35.js";import"./vendor-markdown.421d17f1.js";import"./vendor-highlight.js.6ee9ffbc.js";var $=(e=>(e.PENDING="pending",e.ANSWERING="answering",e.FINISHED="finished",e.FAILED="failed",e))($||{});const ie=E({name:"SidePanel",components:{ElInput:V,FontAwesomeIcon:D,ElSkeleton:Z},props:{},emits:["click"],computed:{repositoryId(){var e,t;return(t=(e=this.$route.params)==null?void 0:e.repositoryId)==null?void 0:t.toString()},conversationId(){var e,t;return(t=(e=this.$route.params)==null?void 0:e.conversationId)==null?void 0:t.toString()},repository(){var e,t,n;return(n=(t=(e=this.$store.state)==null?void 0:e.chatdoc)==null?void 0:t.repositories)==null?void 0:n.find(d=>d.id===this.repositoryId)},conversations(){var e;return(e=this.repository)==null?void 0:e.conversations},application(){return this.$store.state.chatdoc.application}},methods:{async onNewConversation(){this.$router.push({name:P,params:{repositoryId:this.repositoryId}})},async onConfirm(e){e!=null&&e.deleting?(await b.deleteConversation(e.id),await this.$store.dispatch("chat/getConversations")):e!=null&&e.editing?(await b.updateConversation(e),await this.$store.dispatch("chat/getConversations")):e.editing=!0},onClick(e){!e||(this.$router.push({name:A,params:{repositoryId:this.repositoryId,conversationId:e}}),this.$emit("click",e))}}}),ne={class:"panel"},ae={key:1,class:"conversations"},re={class:"icons"},le={class:"title"},de=["onClick"],ce={class:"icons"},ue={class:"title"},pe={key:0},he={key:1},me={key:2},_e={class:"operations"};function ge(e,t,n,d,r,y){const u=l("el-skeleton"),a=l("font-awesome-icon"),_=l("el-input");return o(),c("div",ne,[e.conversations===void 0?(o(),h(u,{key:0})):(o(),c("div",ae,[i("div",{class:"conversation",onClick:t[0]||(t[0]=(...s)=>e.onNewConversation&&e.onNewConversation(...s))},[i("div",re,[m(a,{icon:"fa-solid fa-plus",class:"icon"})]),i("div",le,k(e.$t("chatdoc.message.startNewChat")),1)]),(o(!0),c(R,null,M(e.conversations,(s,C)=>{var p;return o(),c("div",{key:C,class:S({conversation:!0,active:s.id===e.conversationId}),onClick:g=>e.onClick(s.id)},[i("div",ce,[m(a,{icon:"fa-regular fa-comment",class:"icon"})]),i("div",ue,[s!=null&&s.deleting?(o(),c("span",pe,k(`${e.$t("chatdoc.message.confirmDelete")}?`),1)):s!=null&&s.editing?(o(),c("span",he,[m(_,{modelValue:s.title,"onUpdate:modelValue":g=>s.title=g,onKeydown:U(g=>e.onConfirm(s),["enter"])},null,8,["modelValue","onUpdate:modelValue","onKeydown"])])):(s==null?void 0:s.title)||(s==null?void 0:s.messages)?(o(),c("span",me,k((s==null?void 0:s.title)||((p=s==null?void 0:s.messages[(s==null?void 0:s.messages.length)-1])==null?void 0:p.content)),1)):f("v-if",!0)]),i("div",_e,[!(s!=null&&s.editing)&&!s.deleting?(o(),h(a,{key:0,icon:"fa-solid fa-edit",class:"icon icon-edit",onClick:w(g=>s.editing=!0,["stop"])},null,8,["onClick"])):f("v-if",!0),!(s!=null&&s.editing)&&!s.deleting?(o(),h(a,{key:1,icon:"fa-solid fa-trash",class:"icon icon-delete",onClick:w(g=>s.deleting=!0,["stop"])},null,8,["onClick"])):f("v-if",!0),(s==null?void 0:s.editing)||s.deleting?(o(),h(a,{key:2,icon:"fa-solid fa-check",class:"icon icon-confirm",onClick:w(g=>e.onConfirm(s),["stop"])},null,8,["onClick"])):f("v-if",!0),(s==null?void 0:s.editing)||s.deleting?(o(),h(a,{key:3,icon:"fa-solid fa-xmark",class:"icon icon-cancel",onClick:w(g=>{s.editing=!1,s.deleting=!1},["stop"])},null,8,["onClick"])):f("v-if",!0)])],10,de)}),128))]))])}var fe=I(ie,[["render",ge],["__scopeId","data-v-2282a6e1"],["__file","/home/runner/work/Nexior/Nexior/src/components/chatdoc/Conversations.vue"]]);const ye=E({name:"AnsweringMark",data(){return{}},computed:{conversationId(){var e,t;return(t=(e=this.$route.params)==null?void 0:e.conversationId)==null?void 0:t.toString()}}}),$e={class:"mark"};function Ce(e,t,n,d,r,y){return o(),c("div",$e)}var we=I(ye,[["render",Ce],["__file","/home/runner/work/Nexior/Nexior/src/components/chatdoc/AnsweringMark.vue"]]);const ke=E({name:"Message",components:{CopyToClipboard:oe,AnsweringMark:we,MarkdownRenderer:te,ElAlert:x,ElButton:ee},props:{message:{type:Object,required:!0}},emits:["stop"],data(){return{copied:!1,messageState:$}},computed:{errorText(){var e,t;if(!(!this.message.error||!((e=this.message.error)!=null&&e.code)))switch((t=this.message.error)==null?void 0:t.code){case O:return this.$t("chatdoc.message.errorUsedUp");case j:return this.$t("chatdoc.message.errorApiError");case Q:return this.$t("chatdoc.message.errorBadRequest");case J:return this.$t("chatdoc.message.errorTimeout");case W:return this.$t("chatdoc.message.errorTooManyRequests");case H:return this.$t("chatdoc.message.errorContentTooLarge");case q:return this.$t("chatdoc.message.errorNotApplied");case T:default:return this.$t("chatdoc.message.errorUnknown")}},showBuyMore(){var e;return this.message.role===N&&((e=this.message.error)==null?void 0:e.code)===O}},methods:{onCopy(){L(this.message.content.toString(),{debug:!0}),this.copied=!0,setTimeout(()=>{this.copied=!1},3e3)},onBuyMore(){}}}),Ie=["role"],Ee={class:"content"},Ne={class:"operations"};function Re(e,t,n,d,r,y){var p;const u=l("markdown-renderer"),a=l("answering-mark"),_=l("copy-to-clipboard"),s=l("el-alert"),C=l("el-button");return o(),c(R,null,[i("div",{class:S({message:!0,[e.message.role]:!0,hidden:e.errorText&&e.message.role==="assistant"}),role:e.message.role},[i("div",Ee,[m(u,{content:(p=e.message)==null?void 0:p.content},null,8,["content"]),e.message.state===e.messageState.PENDING?(o(),h(a,{key:0})):f("v-if",!0)]),i("div",Ne,[m(_,{content:e.message.content,class:"btn-copy"},null,8,["content"])])],10,Ie),e.errorText?(o(),h(s,{key:0,class:"error",title:e.errorText,type:"error",closable:!1},null,8,["title"])):f("v-if",!0),e.showBuyMore?(o(),h(C,{key:1,round:"",type:"primary",class:"btn btn-buy",size:"small",onClick:e.onBuyMore},{default:B(()=>[se(k(e.$t("common.button.buyMore")),1)]),_:1},8,["onClick"])):f("v-if",!0)],64)}var be=I(ke,[["render",Re],["__scopeId","data-v-95a62450"],["__file","/home/runner/work/Nexior/Nexior/src/components/chatdoc/Message.vue"]]);const Se=E({name:"InputBox",components:{ElInput:V,FontAwesomeIcon:D},props:{disabled:{type:Boolean,required:!1,default:!1},question:{type:String,required:!0}},emits:["update:question","submit"],data(){return{questionValue:this.question,fileList:[]}},computed:{model(){return this.$store.state.chat.model}},watch:{questionValue(e){this.$emit("update:question",e)},question(e){e!==this.questionValue&&(this.questionValue=e)},references(e){e.length===0&&(this.fileList=[])}},methods:{onSubmit(){!this.question||this.$emit("submit")}}}),ve={class:"input-box"},Oe={class:"info"};function Ae(e,t,n,d,r,y){const u=l("font-awesome-icon"),a=l("el-input");return o(),c(R,null,[i("div",ve,[i("span",{class:S({btn:!0,"btn-send":!0,disabled:!e.question}),onClick:t[0]||(t[0]=(..._)=>e.onSubmit&&e.onSubmit(..._))},[m(u,{icon:"fa-solid fa-location-arrow",class:"icon icon-send"})],2),m(a,{modelValue:e.questionValue,"onUpdate:modelValue":t[1]||(t[1]=_=>e.questionValue=_),disabled:e.disabled,class:"input",type:"textarea",placeholder:e.$t("chat.message.newMessagePlaceholder"),onKeydown:U(w(e.onSubmit,["exact","prevent"]),["enter"])},null,8,["modelValue","disabled","placeholder","onKeydown"])]),i("p",Oe,k(e.$t("chat.message.howToUse")),1)],64)}var Te=I(Se,[["render",Ae],["__scopeId","data-v-7ed35c20"],["__file","/home/runner/work/Nexior/Nexior/src/components/chatdoc/InputBox.vue"]]);const qe=E({name:"ChatdocConversation",components:{Layout:F,Conversations:fe,Message:be,InputBox:Te,ApplicationStatus:X},data(){return{loading:!1,repositoryId:this.$route.params.repositoryId.toString(),answering:!1,question:""}},computed:{messages:{get(){var e,t;return((t=(e=this.conversations)==null?void 0:e.find(n=>{var d;return n.id===((d=this.$route.params.conversationId)==null?void 0:d.toString())}))==null?void 0:t.messages)||[]},set(e){console.debug("set messages",e)}},repository(){var e,t,n;return(n=(t=(e=this.$store.state)==null?void 0:e.chatdoc)==null?void 0:t.repositories)==null?void 0:n.find(d=>d.id===this.repositoryId)},conversations(){var e;return(e=this.repository)==null?void 0:e.conversations},conversationId(){var e;return(e=this.$route.params.conversationId)==null?void 0:e.toString()},application(){return this.$store.state.chatdoc.application},credential(){return this.$store.state.chatdoc.credential},needApply(){return this.$store.state.chatdoc.status.getApplications===v.Success&&!this.application},initializing(){return this.$store.state.chatdoc.status.getApplications===v.Request},service(){return this.$store.state.chatdoc.service}},async mounted(){console.debug("start get conversations"),this.loading=!0,this.$store.dispatch("chatdoc/getConversations",{repositoryId:this.repositoryId}).finally(()=>{this.loading=!1})},methods:{async onSubmit(){this.messages.push({content:this.question,role:K}),await this.onFetchAnswer()},async onScrollDown(){setTimeout(()=>{const e=document.querySelector(".dialogue");!e||!this.messages||this.messages.length===0||(e.scrollTop=e==null?void 0:e.scrollHeight)},0)},async onFetchAnswer(){var d;const e=(d=this.credential)==null?void 0:d.token,t=this.question;if(console.debug(this.onFetchAnswer,"validated",t),this.question="",!e||!t){console.error("no token or endpoint or question"),this.messages.push({error:{code:q},role:N,state:$.FAILED});return}let n=this.conversationId;this.messages.push({content:"",role:N,state:$.PENDING}),console.debug("start to get answer",this.messages),this.onScrollDown(),this.answering=!0,b.chatConversation({repositoryId:this.repositoryId,question:t,id:this.conversationId},{token:e,stream:r=>{this.messages[this.messages.length-1]={role:N,content:r.answer,state:$.ANSWERING},n=r.id,this.onScrollDown()}}).then(async()=>{console.debug("finished fetch answer"),this.messages[this.messages.length-1].state=$.FINISHED,await this.$store.dispatch("chatdoc/setConversation",{id:n,messages:this.messages,repositoryId:this.repositoryId}),this.answering=!1,this.conversationId||(console.debug("push to conversation",n),await this.$router.push({name:A,params:{conversationId:n,repositoryId:this.repositoryId}})),this.onScrollDown(),await this.$store.dispatch("chatdoc/getConversations",{repositoryId:this.repositoryId})}).catch(r=>{var y,u;if(this.messages&&this.messages.length>0&&(this.messages[this.messages.length-1].state=$.FAILED),console.error(r),G.isCancel(r))this.messages[this.messages.length-1].error={code:Y};else if((y=r==null?void 0:r.response)!=null&&y.data){let a=(u=r==null?void 0:r.response)==null?void 0:u.data;z(a)&&(a=JSON.parse(a)),this.messages&&this.messages.length>0&&(this.messages[this.messages.length-1].error=a.error)}else this.messages&&this.messages.length>0&&(this.messages[this.messages.length-1].error={code:T});this.answering=!1})}}}),De={class:"wrapper"},Ve={class:"chat"},Me={class:"status"},Ue={class:"dialogue"},Be={class:"messages"},Le={class:"bottom"};function Fe(e,t,n,d,r,y){const u=l("conversations"),a=l("application-status"),_=l("message"),s=l("input-box"),C=l("layout");return o(),h(C,null,{chatdoc:B(()=>[i("div",De,[m(u,{class:"side"}),i("div",Ve,[i("div",Me,[m(a,{"show-price":!1,initializing:e.initializing,application:e.application,"need-apply":e.needApply,service:e.service,onRefresh:t[0]||(t[0]=p=>e.$store.dispatch("chatdoc/getApplications"))},null,8,["initializing","application","need-apply","service"])]),i("div",Ue,[i("div",Be,[(o(!0),c(R,null,M(e.messages,(p,g)=>(o(),h(_,{key:g,message:p,class:"message"},null,8,["message"]))),128))])]),i("div",Le,[m(s,{disabled:e.answering,question:e.question,"onUpdate:question":t[1]||(t[1]=p=>e.question=p),onSubmit:e.onSubmit},null,8,["disabled","question","onSubmit"])])])])]),_:1})}var es=I(qe,[["render",Fe],["__scopeId","data-v-24089614"],["__file","/home/runner/work/Nexior/Nexior/src/pages/chatdoc/Conversation.vue"]]);export{es as default};
@@ -1 +0,0 @@
1
- var ve=Object.defineProperty;var re=Object.getOwnPropertySymbols;var ke=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable;var le=(e,t,s)=>t in e?ve(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,F=(e,t)=>{for(var s in t||(t={}))ke.call(t,s)&&le(e,s,t[s]);if(re)for(var s of re(t))Ce.call(t,s)&&le(e,s,t[s]);return e};import{a as Z}from"./vendor-axios.168e6950.js";import{J as Ee}from"./vendor-others.56d45bbc.js";import{_ as A,J as I,K as T,z as be,N as Se,O as X,P as Y,T as de,U as ce,V as ue,W as he,X as se,j as fe,Y as W,k as $e,Z as x,$ as ee}from"./index.bf408bd9.js";import{H as N,o as a,e as p,al as l,L as y,M as C,V as _,f as c,S as E,W as D,ai as V,T as j,U as b,as as ne,$ as L,Q as z,O as te,P as me,aw as Ie,a0 as oe,I as pe}from"./vendor-@vue.01066951.js";import{M as Ae}from"./MarkdownRenderer.9e8c0e0e.js";import{ao as O}from"./vendor-fortawesome.af6cba05.js";import{C as Ne}from"./CopyToClipboard.b7190113.js";import{u as ae,F as Re,l as ye,s as qe,N as we,O as De,M as _e,d as Oe,f as Te,e as Le,i as Ve,h as Ue,C as Ge,P as Me}from"./vendor-element-plus.0a44791e.js";import{E as J,a as K,b as Q,c as Pe,d as Be,e as He,f as Fe,g as We,h as ge,A as ze}from"./Status.83a165e3.js";import"./vendor-qrcode.3f236d35.js";import"./vendor-markdown.421d17f1.js";import"./vendor-highlight.js.6ee9ffbc.js";const je=N({name:"AnsweringMark",data(){return{}},computed:{conversationId(){var e,t;return(t=(e=this.$route.params)==null?void 0:e.id)==null?void 0:t.toString()}}}),Je={class:"mark"};function Ke(e,t,s,u,$,o){return a(),p("div",Je)}var Qe=A(je,[["render",Ke],["__file","/home/runner/work/Nexior/Nexior/src/components/chat/AnsweringMark.vue"]]);const Xe=N({name:"CopyToClipboard",components:{FontAwesomeIcon:O,ElTooltip:ae},props:{messages:{type:Array,required:!1,default:()=>[]}},emits:["restart"],data(){return{copied:!1}},methods:{onRestart(){this.$emit("restart")}}});function Ye(e,t,s,u,$,o){const i=l("font-awesome-icon"),d=l("el-tooltip");return a(),y(d,{effect:"dark",content:e.$t("common.button.restart"),placement:"top-start"},{default:C(()=>[_(i,{icon:"fa-solid fa-sync",class:"icon-sync",onClick:e.onRestart},null,8,["onClick"])]),_:1},8,["content"])}var Ze=A(Xe,[["render",Ye],["__scopeId","data-v-18116778"],["__file","/home/runner/work/Nexior/Nexior/src/components/chat/RestartToGenerate.vue"]]);const xe=N({name:"Message",components:{CopyToClipboard:Ne,RestartToGenerate:Ze,AnsweringMark:Qe,MarkdownRenderer:Ae,ElAlert:Re,ElButton:ye,ElImage:qe,ElTooltip:ae,FontAwesomeIcon:O,ElInput:we},props:{messages:{type:Array,required:!1,default:()=>[]},message:{type:Object,required:!0},application:{type:Object,required:!0}},emits:["stop","edit","restart"],data(){return{copied:!1,isEditing:!1,questionValue:this.message.content,messageState:I}},computed:{errorText(){var e,t;if(!(!this.message.error||!((e=this.message.error)!=null&&e.code)))switch((t=this.message.error)==null?void 0:t.code){case ge:return this.$t("chat.message.errorUsedUp");case We:return this.$t("chat.message.errorApiError");case Fe:return this.$t("chat.message.errorBadRequest");case He:return this.$t("chat.message.errorTimeout");case Be:return this.$t("chat.message.errorTooManyRequests");case Pe:return this.$t("chat.message.errorContentTooLarge");case Q:return this.$t("chat.message.errorNotApplied");case K:return;case J:default:return this.$t("chat.message.errorUnknown")}},showBuyMore(){var e;return this.message.role===T&&((e=this.message.error)==null?void 0:e.code)===ge}},watch:{},methods:{startEditing(){this.isEditing=!0,this.questionValue=this.message.content,console.debug("start to get answer",this.message)},cancelEdit(){this.isEditing=!1},sendRestart(){this.$emit("restart",this.message)},sendEdit(){this.isEditing=!1,this.onSubmit()},onSubmit(){this.$emit("edit",this.message,this.questionValue)},onCopy(){Ee(this.message.content.toString(),{debug:!0}),this.copied=!0,setTimeout(()=>{this.copied=!1},3e3)},onBuyMore(){var e;this.$router.push({name:be,params:{id:(e=this.application)==null?void 0:e.id}})}}}),et=["role"],tt={class:"author"},st={key:0,class:"main"},nt={class:"content"},ot={class:"edit-left"},at={key:0,class:"message-content"},it={key:1},rt=["src"],lt={key:1,class:"file"},dt={key:1,class:"chat-container"},ct={class:"button-group"},ut={class:"operations"};function ht(e,t,s,u,$,o){var R;const i=l("el-image"),d=l("font-awesome-icon"),h=l("el-tooltip"),r=l("markdown-renderer"),g=l("el-input"),n=l("el-button"),k=l("answering-mark"),S=l("copy-to-clipboard"),m=l("restart-to-generate"),v=l("el-alert");return a(),p("div",{class:z({message:!0,[e.message.role]:!0}),role:e.message.role},[c("div",tt,[e.message.role==="assistant"?(a(),y(i,{key:0,src:"https://cdn.acedata.cloud/7dljuv.png",fit:"cover",class:"avatar"})):E("v-if",!0)]),e.errorText?(a(),y(v,{key:1,class:"error",title:e.errorText,type:"error",closable:!1},null,8,["title"])):(a(),p("div",st,[c("div",nt,[c("div",ot,[e.message.role==="user"&&!e.isEditing&&!Array.isArray(e.message.content)?(a(),y(h,{key:0,effect:"dark",content:e.$t("chat.button.edit"),placement:"bottom"},{default:C(()=>[_(d,{icon:"fa-solid fa-edit",class:"icon icon-edit",onClick:e.startEditing},null,8,["onClick"])]),_:1},8,["content"])):E("v-if",!0)]),e.isEditing?(a(),p("div",dt,[_(g,{modelValue:e.questionValue,"onUpdate:modelValue":t[0]||(t[0]=w=>e.questionValue=w),type:"textarea",class:"chat-input",onKeydown:ne(L(e.sendEdit,["exact","prevent"]),["enter"])},null,8,["modelValue","onKeydown"]),c("div",ct,[_(n,{size:"small",round:"",onClick:e.cancelEdit},{default:C(()=>[j(b(e.$t("common.button.cancel")),1)]),_:1},8,["onClick"]),_(n,{type:"primary",size:"small",round:"",onClick:e.sendEdit},{default:C(()=>[j(b(e.$t("common.button.confirm")),1)]),_:1},8,["onClick"])])])):(a(),p("div",at,[Array.isArray(e.message.content)?(a(),p("div",it,[(a(!0),p(D,null,V(e.message.content,(w,U)=>{var G,M,P,f,B,H,q,ie;return a(),p("div",{key:U},[w.type==="image_url"?(a(),p("img",{key:0,src:typeof(w==null?void 0:w.image_url)=="string"?w.image_url:(G=w.image_url)==null?void 0:G.url,fit:"cover",class:"image"},null,8,rt)):E("v-if",!0),w.type==="file_url"?(a(),p("span",lt,[_(d,{icon:"fa-regular fa-file",class:"icon icon-file"}),j(" "+b(typeof(w==null?void 0:w.file_url)=="string"?(f=(P=(M=w.file_url)==null?void 0:M.split("/"))==null?void 0:P.slice(-1))==null?void 0:f[0]:(ie=(q=(H=(B=w.file_url)==null?void 0:B.url)==null?void 0:H.split("/"))==null?void 0:q.slice(-1))==null?void 0:ie[0]),1)])):E("v-if",!0),w.type==="text"?(a(),y(r,{key:U,content:w.text},null,8,["content"])):E("v-if",!0)])}),128))])):(a(),y(r,{key:0,content:(R=e.message)==null?void 0:R.content},null,8,["content"]))])),e.message.state===e.messageState.PENDING?(a(),y(k,{key:2})):E("v-if",!0)]),c("div",ut,[!Array.isArray(e.message.content)&&(e.message.state===e.messageState.FINISHED||e.message.state===e.messageState.FAILED)?(a(),y(S,{key:0,content:e.message.content,class:"btn-copy"},null,8,["content"])):E("v-if",!0),!Array.isArray(e.message.content)&&(e.message.state===e.messageState.FINISHED||e.message.state===e.messageState.FAILED)&&e.message.role==="assistant"&&e.message===e.messages[e.messages.length-1]?(a(),y(m,{key:1,class:"btn-restart",messages:e.messages,onRestart:e.sendRestart},null,8,["messages","onRestart"])):E("v-if",!0)])])),e.showBuyMore?(a(),y(n,{key:2,round:"",type:"primary",class:"btn btn-buy",size:"small",onClick:e.onBuyMore},{default:C(()=>[j(b(e.$t("common.button.buyMore")),1)]),_:1},8,["onClick"])):E("v-if",!0)],10,et)}var mt=A(xe,[["render",ht],["__scopeId","data-v-f0476f80"],["__file","/home/runner/work/Nexior/Nexior/src/components/chat/Message.vue"]]);const pt=N({name:"InputBox",components:{ElTooltip:ae,FontAwesomeIcon:O,ElUpload:De},props:{disabled:{type:Boolean,required:!1,default:!1},references:{type:Array,required:!1,default:()=>[]},question:{type:String,required:!0}},emits:["update:question","update:references","submit","stop"],data(){return{inputHeight:"35px",questionValue:this.question,fileList:[],uploadUrl:Se()+"/api/v1/files/"}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>{var t;return(t=e==null?void 0:e.response)==null?void 0:t.file_url})},canUpload(){return[X.name,Y.name].includes(this.model.name)},model(){return this.$store.state.chat.model}},watch:{urls(e){this.$emit("update:references",e)},questionValue(e){this.$emit("update:question",e)},question(e){e!==this.questionValue&&(this.questionValue=e)},references(e){e.length===0&&(this.fileList=[])}},methods:{adjustTextareaHeight(){this.$nextTick(()=>{const e=this.$refs.textarea;e&&(e.style.height="35px",e.style.height=e.scrollHeight+"px")})},onSubmit(){!this.question||this.$emit("submit")},onStop(){this.$emit("stop")},onExceed(){_e.warning(this.$t("chat.message.uploadReferencesExceed"))},onError(){_e.error(this.$t("chat.message.uploadReferencesError"))}}}),_t={class:"input-box"},gt={class:"btn btn-upload"},ft=["disabled","placeholder"],$t={class:"info"};function yt(e,t,s,u,$,o){const i=l("font-awesome-icon"),d=l("el-tooltip"),h=l("el-upload");return a(),p(D,null,[c("div",_t,[_(h,{"file-list":e.fileList,"onUpdate:file-list":t[0]||(t[0]=r=>e.fileList=r),class:z({upload:!0,disabled:!e.canUpload}),disabled:!e.canUpload,name:"file","show-file-list":!0,limit:1,multiple:!1,action:e.uploadUrl,"on-exceed":e.onExceed,"on-error":e.onError,headers:e.headers},{default:C(()=>[_(d,{class:"box-item",effect:"dark",content:e.$t("chat.message.uploadFile"),placement:"top"},{default:C(()=>[c("span",gt,[_(i,{icon:"fa-solid fa-paperclip",class:"icon icon-attachment"})])]),_:1},8,["content"])]),_:1},8,["file-list","class","disabled","action","on-exceed","on-error","headers"]),te(c("span",{class:z({btn:!0,"btn-send":!0,disabled:!e.questionValue}),onClick:t[1]||(t[1]=(...r)=>e.onSubmit&&e.onSubmit(...r))},[_(i,{icon:"fa-solid fa-location-arrow",class:"icon icon-send"})],2),[[me,!e.disabled]]),te(c("span",{class:z({btn:!0,"btn-stop":!0,disabled:!e.disabled}),onClick:t[2]||(t[2]=(...r)=>e.onStop&&e.onStop(...r))},[_(i,{icon:"fa-solid fa-stop-circle",class:"icon icon-stop"})],2),[[me,e.disabled]]),E(" add this textarea "),te(c("textarea",{ref:"textarea","onUpdate:modelValue":t[3]||(t[3]=r=>e.questionValue=r),disabled:e.disabled,class:"input",placeholder:e.$t("chat.message.newMessagePlaceholder"),style:oe({height:e.inputHeight}),onKeydown:t[4]||(t[4]=ne(L((...r)=>e.onSubmit&&e.onSubmit(...r),["exact","prevent"]),["enter"])),onInput:t[5]||(t[5]=(...r)=>e.adjustTextareaHeight&&e.adjustTextareaHeight(...r))},null,44,ft),[[Ie,e.questionValue]])]),c("p",$t,b(e.$t("chat.message.howToUse")),1)],64)}var wt=A(pt,[["render",yt],["__scopeId","data-v-020f4eb8"],["__file","/home/runner/work/Nexior/Nexior/src/components/chat/InputBox.vue"]]);const vt=N({name:"ModelSelector",components:{ElDropdown:Oe,ElDropdownMenu:Te,ElDropdownItem:Le,FontAwesomeIcon:O},emits:["update:modelValue","select"],data(){return{options:[{icon:"fa-solid fa-bolt",color:"#ff9900",model:de},{icon:"fa-solid fa-bolt",color:"#ff9900",model:ce},{icon:"fa-solid fa-wand-magic-sparkles",color:"#ce65e6",model:ue},{icon:"fa-solid fa-wand-magic-sparkles",color:"#ce65e6",model:he},{icon:"fa-solid fa-wand-magic-sparkles",color:"#ce65e6",model:X},{icon:"fa-solid fa-wand-magic-sparkles",color:"#ce65e6",model:Y}]}},computed:{model(){const e=this.$store.state.chat.model.name;return[de,ce,ue,he,X,Y].find(s=>s.name===e)}},methods:{onCommandChange(e){this.$emit("select",e),this.$store.dispatch("chat/setModel",e)}}}),kt={class:"selector"},Ct={class:"name"},Et={class:"angle"},bt={class:"item"},St={class:"info"},It={class:"name"},At={class:"description"};function Nt(e,t,s,u,$,o){const i=l("font-awesome-icon"),d=l("el-dropdown-item"),h=l("el-dropdown-menu"),r=l("el-dropdown");return a(),p("div",kt,[_(r,{trigger:"click","popper-class":"popper"},{dropdown:C(()=>[_(h,null,{default:C(()=>[(a(!0),p(D,null,V(e.options,(g,n)=>(a(),y(d,{key:n,onClick:k=>e.onCommandChange(g.model)},{default:C(()=>[c("div",bt,[c("div",{class:"icon",style:oe({color:g.color})},[_(i,{icon:g.icon},null,8,["icon"])],4),c("div",St,[c("p",It,b(g.model.getDisplayName()),1),c("p",At,b(g.model.getDescription()),1)])])]),_:2},1032,["onClick"]))),128))]),_:1})]),default:C(()=>{var g;return[c("div",null,[c("span",Ct,b((g=e.model)==null?void 0:g.getDisplayName()),1),c("span",Et,[_(i,{icon:"fa-solid fa-angle-down"})])])]}),_:1})])}var Rt=A(vt,[["render",Nt],["__scopeId","data-v-358d65be"],["__file","/home/runner/work/Nexior/Nexior/src/components/chat/ModelSelector.vue"]]);const qt=N({name:"ConversationIntroductionItem",components:{FontAwesomeIcon:O},props:{content:{type:String,required:!0},icon:{type:String,required:!0},color:{type:String,default:"rgb(0, 0, 0)"}},data(){return{}},computed:{}}),Dt={class:"item"},Ot={class:"icon"},Tt={class:"content"};function Lt(e,t,s,u,$,o){const i=l("font-awesome-icon");return a(),p("div",Dt,[c("div",Ot,[_(i,{icon:e.icon,style:oe({color:e.color})},null,8,["icon","style"])]),c("div",Tt,b(e.content),1)])}var Vt=A(qt,[["render",Lt],["__scopeId","data-v-bc919b38"],["__file","/home/runner/work/Nexior/Nexior/src/components/chat/IntroductionItem.vue"]]);const Ut=N({name:"ConversationIntroduction",components:{IntroductionItem:Vt,ElRow:Ve,ElCol:Ue},emits:["draft"],data(){return{items:[{icon:"fa-solid fa-pen-nib",content:this.$t("chat.message.question1"),color:"rgb(226, 197, 65)"},{icon:"fa-solid fa-laptop-code",content:this.$t("chat.message.question2"),color:"rgb(203, 139, 208)"},{icon:"fa-solid fa-fan",content:this.$t("chat.message.question3"),color:"rgb(118, 208, 235)"},{icon:"fa-solid fa-plane-departure",content:this.$t("chat.message.question4"),color:"rgb(237, 98, 98)"}].sort(()=>Math.random()-.5)}},computed:{}}),Gt={class:"introduction"};function Mt(e,t,s,u,$,o){const i=l("introduction-item"),d=l("el-col"),h=l("el-row");return a(),p("div",Gt,[_(h,{class:"items",justify:"center",gutter:15},{default:C(()=>[(a(!0),p(D,null,V(e.items,(r,g)=>(a(),y(d,{key:g,md:6,sm:12,xs:12},{default:C(()=>[_(i,{content:r.content,icon:r.icon,color:r.color,class:"cursor-pointer",onClick:n=>e.$emit("draft",r.content)},null,8,["content","icon","color","onClick"])]),_:2},1024))),128))]),_:1})])}var Pt=A(Ut,[["render",Mt],["__scopeId","data-v-52040931"],["__file","/home/runner/work/Nexior/Nexior/src/components/chat/Introduction.vue"]]);const Bt=N({name:"SidePanel",components:{ElInput:we,FontAwesomeIcon:O,ElSkeleton:Ge},props:{},emits:["click"],computed:{conversationId(){var e,t;return(t=(e=this.$route.params)==null?void 0:e.id)==null?void 0:t.toString()},conversationGroups(){var i,d,h,r,g,n,k,S;const e=this.$store.state.chat.conversations,t=new Date;t.setHours(0,0,0,0);const s=new Date(t);s.setDate(s.getDate()-1);const u=new Date(t);u.setDate(u.getDate()-t.getDay());const $=new Date(u);$.setDate($.getDate()-7);const o=e==null?void 0:e.reduce((m,v)=>{const R=new Date(v.updated_at*1e3);return R>=t?m.today.push(v):R>=s?m.yesterday.push(v):R>=u?m.thisWeek.push(v):m.earlier.push(v),m},{today:[],yesterday:[],thisWeek:[],earlier:[]});return F(F(F(F({},((i=o==null?void 0:o.today)==null?void 0:i.length)>0?{today:(d=o==null?void 0:o.today)==null?void 0:d.sort((m,v)=>v.updated_at-m.updated_at)}:{}),((h=o==null?void 0:o.yesterday)==null?void 0:h.length)>0?{yesterday:(r=o==null?void 0:o.yesterday)==null?void 0:r.sort((m,v)=>v.updated_at-m.updated_at)}:{}),((g=o==null?void 0:o.thisWeek)==null?void 0:g.length)>0?{thisWeek:(n=o==null?void 0:o.thisWeek)==null?void 0:n.sort((m,v)=>v.updated_at-m.updated_at)}:{}),((k=o==null?void 0:o.earlier)==null?void 0:k.length)>0?{earlier:(S=o==null?void 0:o.earlier)==null?void 0:S.sort((m,v)=>v.updated_at-m.updated_at)}:{})},application(){return this.$store.state.chat.application},loading(){return this.$store.state.chat.status.getConversations===se.Request},token(){var e,t;return(t=(e=this.$store.state.chat)==null?void 0:e.credential)==null?void 0:t.token}},methods:{async onNewConversation(){this.$router.push({name:fe})},async onConfirm(e){const t=this.token;if(!t){console.error("Token is not found");return}e!=null&&e.deleting?(await W.deleteConversation(e.id,{token:t}),await this.$store.dispatch("chat/getConversations")):e!=null&&e.editing?(await W.updateConversation(e,{token:t}),await this.$store.dispatch("chat/getConversations")):e.editing=!0},onClick(e){!e||(this.$router.push({name:$e,params:{id:e}}),this.$emit("click",e))}}}),Ht={class:"panel"},Ft={key:1,class:"conversations"},Wt={class:"icons"},zt={class:"title"},jt={class:"key"},Jt=["onClick"],Kt={class:"title"},Qt={key:0},Xt={key:1},Yt={key:2},Zt={class:"operations"};function xt(e,t,s,u,$,o){const i=l("el-skeleton"),d=l("font-awesome-icon"),h=l("el-input");return a(),p("div",Ht,[e.loading&&e.conversationGroups===void 0?(a(),y(i,{key:0})):(a(),p("div",Ft,[c("div",{class:"conversation",onClick:t[0]||(t[0]=(...r)=>e.onNewConversation&&e.onNewConversation(...r))},[c("div",Wt,[_(d,{icon:"fa-solid fa-plus",class:"icon"})]),c("div",zt,b(e.$t("chat.message.startNewChat")),1)]),(a(!0),p(D,null,V(e.conversationGroups,(r,g)=>(a(),p("div",{key:g,class:"group"},[c("div",jt,b(e.$t(`chat.group.${g}`)),1),(a(!0),p(D,null,V(r,(n,k)=>{var S;return a(),p("div",{key:k,class:z({conversation:!0,active:n.id===e.conversationId}),onClick:m=>e.onClick(n.id)},[c("div",Kt,[n!=null&&n.deleting?(a(),p("span",Qt,b(`${e.$t("chat.message.confirmDelete")}?`),1)):n!=null&&n.editing?(a(),p("span",Xt,[_(h,{modelValue:n.title,"onUpdate:modelValue":m=>n.title=m,onKeydown:ne(m=>e.onConfirm(n),["enter"])},null,8,["modelValue","onUpdate:modelValue","onKeydown"])])):(n==null?void 0:n.title)||(n==null?void 0:n.messages)?(a(),p("span",Yt,b((n==null?void 0:n.title)||((S=n==null?void 0:n.messages[(n==null?void 0:n.messages.length)-1])==null?void 0:S.content)),1)):E("v-if",!0)]),c("div",Zt,[!(n!=null&&n.editing)&&!n.deleting?(a(),y(d,{key:0,icon:"fa-solid fa-edit",class:"icon icon-edit",onClick:L(m=>n.editing=!0,["stop"])},null,8,["onClick"])):E("v-if",!0),!(n!=null&&n.editing)&&!n.deleting?(a(),y(d,{key:1,icon:"fa-solid fa-trash",class:"icon icon-delete",onClick:L(m=>n.deleting=!0,["stop"])},null,8,["onClick"])):E("v-if",!0),(n==null?void 0:n.editing)||n.deleting?(a(),y(d,{key:2,icon:"fa-solid fa-check",class:"icon icon-confirm",onClick:L(m=>e.onConfirm(n),["stop"])},null,8,["onClick"])):E("v-if",!0),(n==null?void 0:n.editing)||n.deleting?(a(),y(d,{key:3,icon:"fa-solid fa-xmark",class:"icon icon-cancel",onClick:L(m=>{n.editing=!1,n.deleting=!1},["stop"])},null,8,["onClick"])):E("v-if",!0)])],10,Jt)}),128))]))),128))]))])}var es=A(Bt,[["render",xt],["__scopeId","data-v-d866c834"],["__file","/home/runner/work/Nexior/Nexior/src/components/chat/SidePanel.vue"]]);const ts=N({name:"LayoutChat",components:{SidePanel:es,ElDrawer:Me,ElButton:ye,FontAwesomeIcon:O},data(){return{drawer:!1}}}),ss={class:"main"},ns={class:"side"},os={class:"chat"};function as(e,t,s,u,$,o){const i=l("side-panel"),d=l("font-awesome-icon"),h=l("el-button"),r=l("el-drawer");return a(),p("div",ss,[c("div",ns,[pe(e.$slots,"side",{},()=>[_(i)],!0)]),c("div",os,[pe(e.$slots,"chat",{},void 0,!0)]),_(h,{round:"",class:"menu",onClick:t[0]||(t[0]=g=>e.drawer=!0)},{default:C(()=>[_(d,{icon:"fa-solid fa-bars",class:"icon-menu"})]),_:1}),_(r,{modelValue:e.drawer,"onUpdate:modelValue":t[1]||(t[1]=g=>e.drawer=g),"with-header":!1,size:"290px",class:"drawer"},{default:C(()=>[_(i)]),_:1},8,["modelValue"])])}var is=A(ts,[["render",as],["__scopeId","data-v-8d7a06d2"],["__file","/home/runner/work/Nexior/Nexior/src/layouts/Chat.vue"]]);const rs=N({name:"ChatConversation",components:{InputBox:wt,Introduction:Pt,ModelSelector:Rt,Message:mt,ApplicationStatus:ze,Layout:is},data(){var e,t;return{drawer:!1,question:"",references:[],answering:!1,canceler:void 0,messages:((t=(e=this.$store.state.chat.conversations)==null?void 0:e.find(s=>{var u;return s.id===((u=this.$route.params.id)==null?void 0:u.toString())}))==null?void 0:t.messages)||[]}},computed:{model(){return this.$store.state.chat.model},conversationId(){var e;return(e=this.$route.params.id)==null?void 0:e.toString()},conversation(){var e;return(e=this.$store.state.chat.conversations)==null?void 0:e.find(t=>t.id===this.conversationId)},service(){return this.$store.state.chat.service},application(){return this.$store.state.chat.application},credential(){var e;return(e=this.$store.state.chat)==null?void 0:e.credential},needApply(){return this.$store.state.chat.status.getApplications===se.Success&&!this.application},conversations(){return this.$store.state.chat.conversations},initializing(){return this.$store.state.chat.status.getApplications===se.Request}},watch:{model(e){e&&this.onModelChanged()},conversationId(e){var t,s;e?(this.messages=((s=(t=this.conversations)==null?void 0:t.find(u=>u.id===e))==null?void 0:s.messages)||[],this.onScrollDown()):this.messages=[]}},async mounted(){await this.onGetService(),await this.onGetApplication(),await this.onGetConversations(),await this.onScrollDown()},methods:{async onGetService(){console.debug("start onGetService"),await this.$store.dispatch("chat/getService"),console.debug("end onGetService")},async onGetApplication(){console.debug("start onGetApplication"),await this.$store.dispatch("chat/getApplications"),console.debug("end onGetApplication")},async onGetConversations(){console.debug("start onGetConversations"),await this.$store.dispatch("chat/getConversations"),console.debug("end onGetConversations")},async onDraft(e){this.question=e,this.onSubmit()},async onStop(){this.canceler&&(this.canceler.abort(),this.answering=!1)},async onRestart(e){var d,h,r,g,n,k,S,m,v,R,w,U,G,M,P;const t=this.messages.findIndex(f=>f===e),s=this.messages[t-1];let u=[];if(t!==-1){if(u=this.messages.slice(0,t-1),this.messages=this.messages.slice(0,t),this.references=[],typeof s.content=="string")this.question=s.content;else if(Array.isArray(s.content))for(let f=0;f<(s==null?void 0:s.content.length);f++)s.content[f].type==="image_url"&&(typeof((h=(d=s==null?void 0:s.content)==null?void 0:d[f])==null?void 0:h.image_url)=="string"?this.references.push((g=(r=s==null?void 0:s.content)==null?void 0:r[f])==null?void 0:g.image_url):this.references.push((S=(k=(n=s==null?void 0:s.content)==null?void 0:n[f])==null?void 0:k.image_url)==null?void 0:S.url)),s.content[f].type==="file_url"&&(typeof((v=(m=s==null?void 0:s.content)==null?void 0:m[f])==null?void 0:v.file_url)=="string"?this.references.push((w=(R=s==null?void 0:s.content)==null?void 0:R[f])==null?void 0:w.file_url):this.references.push((M=(G=(U=s==null?void 0:s.content)==null?void 0:U[f])==null?void 0:G.file_url)==null?void 0:M.url)),s.content[f].type==="text"&&(this.question=s.content[f].text)}console.debug("onRestart!",this.question,JSON.stringify(this.references));const $=(P=this.credential)==null?void 0:P.token,o=this.question;if(!$||!o){console.error("no token or endpoint or question"),this.messages.push({error:{code:Q},role:T,state:I.FAILED});return}let i=this.conversationId;W.updateConversation({id:this.conversationId,messages:u},{token:$}).then(async()=>{await this.$store.dispatch("chat/setConversation",{id:i,messages:this.messages}),console.debug("finished update conversation",this.messages),console.debug("onRestart",this.question),await this.onFetchAnswer()}).catch(f=>{var B,H;if(this.messages&&this.messages.length>0&&(this.messages[this.messages.length-1].state=I.FAILED),console.error(f),Z.isCancel(f))this.messages[this.messages.length-1].error={code:K};else if((B=f==null?void 0:f.response)!=null&&B.data){let q=(H=f==null?void 0:f.response)==null?void 0:H.data;x(q)&&(q=JSON.parse(q)),console.debug("error",q),this.messages&&this.messages.length>0&&(this.messages[this.messages.length-1].error=q.error)}else this.messages&&this.messages.length>0&&(this.messages[this.messages.length-1].error={code:J});this.answering=!1})},async onEdit(e,t){var o;const s=this.messages.findIndex(i=>i===e);s!==-1&&(this.messages=this.messages.slice(0,s)),this.question=t;const u=(o=this.credential)==null?void 0:o.token;if(!u){console.error("no token or endpoint or question"),this.messages.push({error:{code:Q},role:T,state:I.FAILED});return}let $=this.conversationId;W.updateConversation({id:this.conversationId,messages:this.messages},{token:u}).then(async()=>{await this.$store.dispatch("chat/setConversation",{id:$,messages:this.messages}),console.debug("finished update conversation",this.messages),this.messages.push({content:this.question,role:ee}),console.debug("onEdit",this.question),await this.onFetchAnswer()}).catch(i=>{var d,h;if(this.messages&&this.messages.length>0&&(this.messages[this.messages.length-1].state=I.FAILED),console.error(i),Z.isCancel(i))this.messages[this.messages.length-1].error={code:K};else if((d=i==null?void 0:i.response)!=null&&d.data){let r=(h=i==null?void 0:i.response)==null?void 0:h.data;x(r)&&(r=JSON.parse(r)),console.debug("error",r),this.messages&&this.messages.length>0&&(this.messages[this.messages.length-1].error=r.error)}else this.messages&&this.messages.length>0&&(this.messages[this.messages.length-1].error={code:J});this.answering=!1})},async onCreateNewConversation(){await this.$router.push({name:fe})},async onModelChanged(){await this.onCreateNewConversation(),await this.$store.dispatch("chat/getApplications")},async onSubmit(){if(this.references.length>0){let e=[];e.push({type:"text",text:this.question});for(let t=0;t<this.references.length;t++)this.model.name===X.name?e.push({type:"image_url",image_url:this.references[t]}):this.model.name===Y.name&&e.push({type:"file_url",file_url:this.references[t]});this.messages.push({content:e,role:ee})}else this.messages.push({content:this.question,role:ee});console.debug("onSubmit",this.question,this.references),await this.onFetchAnswer()},async onScrollDown(){setTimeout(()=>{const e=document.querySelector(".dialogue");!e||!this.messages||this.messages.length===0||(e.scrollTop=e==null?void 0:e.scrollHeight)},0)},async onFetchAnswer(){var $;console.debug("start to get answer",this.messages);const e=($=this.credential)==null?void 0:$.token,t=this.question,s=this.references;if(console.debug("validated",t,s),this.question="",this.references=[],!e||!t){console.error("no token or endpoint or question"),this.messages.push({error:{code:Q},role:T,state:I.FAILED});return}let u=this.conversationId;this.messages.push({content:"",role:T,state:I.PENDING}),console.debug("start to get answer",this.messages),this.onScrollDown(),this.answering=!0,this.canceler=new AbortController,W.chatConversation({question:t,model:this.model.name,references:s,id:this.conversationId,stateful:!0},{token:e,stream:o=>{console.debug("stream response",o);const i=this.messages[this.messages.length-1];this.messages[this.messages.length-1]={role:T,content:o.answer,state:(i==null?void 0:i.state)!==I.FINISHED?I.ANSWERING:i==null?void 0:i.state},u=o==null?void 0:o.id,this.onScrollDown()},signal:this.canceler.signal}).then(async()=>{console.debug("finished fetch answer",this.messages),this.messages[this.messages.length-1].state=I.FINISHED,console.debug("finished fetch answer",JSON.stringify(this.messages)),await this.$store.dispatch("chat/setConversation",{id:u,messages:this.messages}),this.answering=!1,this.conversationId||await this.$router.push({name:$e,params:{id:u}}),this.onScrollDown(),await this.$store.dispatch("chat/getConversations"),await this.$store.dispatch("chat/getApplications")}).catch(o=>{var i,d;if(this.messages&&this.messages.length>0&&(this.messages[this.messages.length-1].state=I.FAILED),console.error(o),Z.isCancel(o))this.messages[this.messages.length-1].error={code:K};else if((i=o==null?void 0:o.response)!=null&&i.data){let h=(d=o==null?void 0:o.response)==null?void 0:d.data;x(h)&&(h=JSON.parse(h)),console.debug("error",h),this.messages&&this.messages.length>0&&(this.messages[this.messages.length-1].error=h.error)}else this.messages&&this.messages.length>0&&(this.messages[this.messages.length-1].error={code:J});this.answering=!1})}}}),ls={class:"dialogue"},ds={key:1,class:"messages"},cs={class:"bottom"};function us(e,t,s,u,$,o){const i=l("model-selector"),d=l("application-status"),h=l("introduction"),r=l("message"),g=l("input-box"),n=l("layout");return a(),y(n,null,{chat:C(()=>[_(i,{class:"selector"}),_(d,{initializing:e.initializing,application:e.application,"need-apply":e.needApply,service:e.service,onRefresh:t[0]||(t[0]=k=>e.$store.dispatch("chat/getApplications"))},null,8,["initializing","application","need-apply","service"]),c("div",ls,[e.messages.length===0?(a(),y(h,{key:0,onDraft:e.onDraft},null,8,["onDraft"])):(a(),p("div",ds,[(a(!0),p(D,null,V(e.messages,(k,S)=>(a(),y(r,{key:S,message:k,messages:e.messages,question:e.question,application:e.application,class:"message","onUpdate:question":t[1]||(t[1]=m=>e.question=m),onEdit:e.onEdit,onRestart:e.onRestart},null,8,["message","messages","question","application","onEdit","onRestart"]))),128))]))]),c("div",cs,[_(g,{disabled:e.answering,question:e.question,references:e.references,"onUpdate:question":t[2]||(t[2]=k=>e.question=k),"onUpdate:references":t[3]||(t[3]=k=>e.references=k),onSubmit:e.onSubmit,onStop:e.onStop},null,8,["disabled","question","references","onSubmit","onStop"])])]),_:1})}var bs=A(rs,[["render",us],["__scopeId","data-v-3ab2fb26"],["__file","/home/runner/work/Nexior/Nexior/src/pages/chat/Conversation.vue"]]);export{bs as default};
@@ -1 +0,0 @@
1
- var Qe=Object.defineProperty,Me=Object.defineProperties;var Ge=Object.getOwnPropertyDescriptors;var Ne=Object.getOwnPropertySymbols;var Oe=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable;var Te=(e,t,i)=>t in e?Qe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,q=(e,t)=>{for(var i in t||(t={}))Oe.call(t,i)&&Te(e,i,t[i]);if(Ne)for(var i of Ne(t))ze.call(t,i)&&Te(e,i,t[i]);return e},y=(e,t)=>Me(e,Ge(t));import"./vendor-others.56d45bbc.js";import{ao as _e}from"./vendor-fortawesome.af6cba05.js";import{_ as g,ag as Ce,ah as Fe,ai as Pe,aj as ue,ak as je,al as Be,am as We,an as He,ao as Ke,ap as Je,aq as Xe,ar as Ye,as as Ze,at as xe,N as et,X as de,B as tt,au as at}from"./index.bf408bd9.js";import{P as st,l as ce,w as Q,x as M,S as Ue,_ as ot,N as me,s as Le,O as lt,K as rt,L as nt,M as z,F as it,C as ct,R as ut}from"./vendor-element-plus.0a44791e.js";import{H as b,al as l,o as s,e as u,f as d,I as pe,V as o,M as _,U as c,W as R,ai as I,L as $,Q as K,a0 as dt,T as k,S as f,av as pt,O as _t}from"./vendor-@vue.01066951.js";import{I as De}from"./InfoIcon.162a4b17.js";import{A as mt,i as vt,h as ht}from"./Status.83a165e3.js";import{C as ft}from"./CopyToClipboard.b7190113.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.3f236d35.js";const $t=b({name:"LayoutQrart",components:{ElDrawer:st,ElButton:ce,FontAwesomeIcon:_e},data(){return{drawer:!1}}}),gt={class:"main"},bt={class:"config"},qt={class:"result"};function yt(e,t,i,p,m,v){const r=l("font-awesome-icon"),n=l("el-button"),a=l("el-drawer");return s(),u("div",gt,[d("div",bt,[pe(e.$slots,"config",{},void 0,!0)]),d("div",qt,[pe(e.$slots,"result",{},void 0,!0)]),o(n,{round:"",class:"menu",onClick:t[0]||(t[0]=h=>e.drawer=!0)},{default:_(()=>[o(r,{icon:"fa-solid fa-gear",class:"icon-menu"})]),_:1}),o(a,{modelValue:e.drawer,"onUpdate:modelValue":t[1]||(t[1]=h=>e.drawer=h),"with-header":!1,size:"340px",class:"drawer"},{default:_(()=>[pe(e.$slots,"config",{},void 0,!0)]),_:3},8,["modelValue"])])}var kt=g($t,[["render",yt],["__scopeId","data-v-cc131f1a"],["__file","/home/runner/work/Nexior/Nexior/src/layouts/Qrart.vue"]]);const St=b({name:"VersionSelector",components:{ElSelect:Q,ElOption:M},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(){var e,t;return(t=(e=this.$store.state.qrart)==null?void 0:e.config)==null?void 0:t.type},set(e){var t;console.debug("set type",e),this.$store.commit("qrart/setConfig",y(q({},(t=this.$store.state.qrart)==null?void 0:t.config),{type:e}))}}},mounted(){this.value||(console.debug("set default type",Ce),this.value=Ce)}}),wt={class:"field"},Vt={class:"title"};function Rt(e,t,i,p,m,v){const r=l("el-option"),n=l("el-select");return s(),u("div",wt,[d("h2",Vt,c(e.$t("qrart.name.type")),1),o(n,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=a=>e.value=a),class:"value",placeholder:e.$t("qrart.placeholder.select")},{default:_(()=>[(s(!0),u(R,null,I(e.options,a=>(s(),$(r,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])])}var It=g(St,[["render",Rt],["__scopeId","data-v-92df5c8e"],["__file","/home/runner/work/Nexior/Nexior/src/components/qrart/config/TypeSelector.vue"]]);const At=b({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===this.value)||0},value:{get(){var e,t;return(t=(e=this.$store.state.qrart)==null?void 0:e.config)==null?void 0:t.aspect_ratio},set(e){var t;console.debug("set aspect ratio",e),this.$store.commit("qrart/setConfig",y(q({},(t=this.$store.state.qrart)==null?void 0:t.config),{aspect_ratio:e}))}}},mounted(){this.value||(this.value=Fe)}}),Et={class:"title"},Nt={class:"items"},Tt=["onClick"],Ct={class:"name"};function Pt(e,t,i,p,m,v){return s(),u("div",null,[d("h2",Et,c(e.$t("qrart.name.aspectRatio")),1),d("div",Nt,[(s(!0),u(R,null,I(e.options,(r,n)=>(s(),u("div",{key:n,class:K({active:e.active===n,item:!0}),onClick:a=>e.value=r.value},[d("div",{class:K(["preview",r.label])},[d("div",{class:"rect",style:dt({width:r.width+"px",height:r.height+"px"})},null,4)],2),d("p",Ct,c(r.label),1)],10,Tt))),128))])])}var Ut=g(At,[["render",Pt],["__scopeId","data-v-f3dcd47c"],["__file","/home/runner/work/Nexior/Nexior/src/components/qrart/config/AspectRatioSelector.vue"]]);const Lt=b({name:"QrwSelector",components:{ElSlider:Ue,InfoIcon:De},computed:{value:{get(){var e,t;return((t=(e=this.$store.state.qrart)==null?void 0:e.config)==null?void 0:t.qrw)||Pe},set(e){var t;console.debug("set qrw",e),this.$store.commit("qrart/setConfig",y(q({},(t=this.$store.state.qrart)==null?void 0:t.config),{qrw:e}))}}},mounted(){this.value||(console.debug("set default qrw"),this.value=Pe)}}),Dt={class:"field"},Qt={class:"title"};function Mt(e,t,i,p,m,v){const r=l("el-slider"),n=l("info-icon");return s(),u("div",Dt,[d("h2",Qt,c(e.$t("qrart.name.qrw")),1),o(r,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=a=>e.value=a),min:1.5,max:3,step:.1,class:"value"},null,8,["modelValue","min","step"]),o(n,{content:e.$t("qrart.description.qrw"),class:"info"},null,8,["content"])])}var Gt=g(Lt,[["render",Mt],["__scopeId","data-v-582335b6"],["__file","/home/runner/work/Nexior/Nexior/src/components/qrart/config/QrwSelector.vue"]]);const Ot=b({name:"StepsSelector",components:{ElSlider:Ue,InfoIcon:De},computed:{value:{get(){var e,t;return((t=(e=this.$store.state.qrart)==null?void 0:e.config)==null?void 0:t.steps)||ue},set(e){var t;console.debug("set steps",e),this.$store.commit("qrart/setConfig",y(q({},(t=this.$store.state.qrart)==null?void 0:t.config),{steps:e}))}}},mounted(){this.value||(console.debug("set default steps",ue),this.value=ue)}}),zt={class:"field"},Ft={class:"title"};function jt(e,t,i,p,m,v){const r=l("el-slider"),n=l("info-icon");return s(),u("div",zt,[d("h2",Ft,c(e.$t("qrart.name.steps")),1),o(r,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=a=>e.value=a),min:10,max:20,step:1,class:"value"},null,8,["modelValue"]),o(n,{content:e.$t("qrart.description.steps"),class:"info"},null,8,["content"])])}var Bt=g(Ot,[["render",jt],["__scopeId","data-v-66483a56"],["__file","/home/runner/work/Nexior/Nexior/src/components/qrart/config/StepsSelector.vue"]]);const Wt=b({name:"AdvancedSelector",components:{ElSwitch:ot},computed:{value:{get(){var e,t;return(t=(e=this.$store.state.qrart)==null?void 0:e.config)==null?void 0:t.advanced},set(e){var t;console.debug("set advanced",e),this.$store.commit("qrart/setConfig",y(q({},(t=this.$store.state.qrart)==null?void 0:t.config),{advanced:e}))}}},mounted(){this.value===void 0&&(this.value=je)}}),Ht={class:"field"},Kt={class:"title"};function Jt(e,t,i,p,m,v){const r=l("el-switch");return s(),u("div",Ht,[d("h2",Kt,c(e.$t("qrart.name.advanced")),1),o(r,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=n=>e.value=n),class:"value"},null,8,["modelValue"])])}var Xt=g(Wt,[["render",Jt],["__scopeId","data-v-27999aa1"],["__file","/home/runner/work/Nexior/Nexior/src/components/qrart/config/AdvancedSelector.vue"]]);const Yt=b({name:"MarkerShapeSelector",components:{ElSelect:Q,ElOption:M},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(){var e,t;return(t=(e=this.$store.state.qrart)==null?void 0:e.config)==null?void 0:t.marker_shape},set(e){var t;console.debug("set marker_shape",e),this.$store.commit("qrart/setConfig",y(q({},(t=this.$store.state.qrart)==null?void 0:t.config),{marker_shape:e}))}}},mounted(){this.value||(this.value=Be)}}),Zt={class:"field"},xt={class:"title"};function ea(e,t,i,p,m,v){const r=l("el-option"),n=l("el-select");return s(),u("div",Zt,[d("h2",xt,c(e.$t("qrart.name.markerShape")),1),o(n,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=a=>e.value=a),clearable:"",class:"value",placeholder:e.$t("qrart.placeholder.markerShape")},{default:_(()=>[(s(!0),u(R,null,I(e.options,a=>(s(),$(r,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])])}var ta=g(Yt,[["render",ea],["__scopeId","data-v-5f083694"],["__file","/home/runner/work/Nexior/Nexior/src/components/qrart/config/MarkerShapeSelector.vue"]]);const aa=b({name:"SubMarkerSelector",components:{ElSelect:Q,ElOption:M},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(){var e,t;return(t=(e=this.$store.state.qrart)==null?void 0:e.config)==null?void 0:t.sub_marker},set(e){var t;console.debug("set sub_marker",e),this.$store.commit("qrart/setConfig",y(q({},(t=this.$store.state.qrart)==null?void 0:t.config),{sub_marker:e}))}}},mounted(){this.value||(this.value=We)}}),sa={class:"field"},oa={class:"title"};function la(e,t,i,p,m,v){const r=l("el-option"),n=l("el-select");return s(),u("div",sa,[d("h2",oa,c(e.$t("qrart.name.subMarker")),1),o(n,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=a=>e.value=a),clearable:"",class:"value",placeholder:e.$t("qrart.placeholder.subMarker")},{default:_(()=>[(s(!0),u(R,null,I(e.options,a=>(s(),$(r,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])])}var ra=g(aa,[["render",la],["__scopeId","data-v-07f1556e"],["__file","/home/runner/work/Nexior/Nexior/src/components/qrart/config/SubMarkerSelector.vue"]]);const na=b({name:"RotateSelector",components:{ElSelect:Q,ElOption:M},data(){return{options:[{value:0,label:0},{value:90,label:90},{value:180,label:180},{value:270,label:270}]}},computed:{value:{get(){var e,t;return(t=(e=this.$store.state.qrart)==null?void 0:e.config)==null?void 0:t.rotate},set(e){var t;console.debug("set rotate",e),this.$store.commit("qrart/setConfig",y(q({},(t=this.$store.state.qrart)==null?void 0:t.config),{rotate:e}))}}},mounted(){this.value||(this.value=He)}}),ia={class:"field"},ca={class:"title"};function ua(e,t,i,p,m,v){const r=l("el-option"),n=l("el-select");return s(),u("div",ia,[d("h2",ca,c(e.$t("qrart.name.rotate")),1),o(n,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=a=>e.value=a),clearable:"",class:"value",placeholder:e.$t("qrart.placeholder.rotate")},{default:_(()=>[(s(!0),u(R,null,I(e.options,a=>(s(),$(r,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])])}var da=g(na,[["render",ua],["__scopeId","data-v-00777c5a"],["__file","/home/runner/work/Nexior/Nexior/src/components/qrart/config/RotateSelector.vue"]]);const pa=b({name:"EclSelector",components:{ElSelect:Q,ElOption:M},data(){return{options:[{value:"L",label:"L"},{value:"M",label:"M"},{value:"Q",label:"Q"},{value:"H",label:"H"}]}},computed:{value:{get(){var e,t;return(t=(e=this.$store.state.qrart)==null?void 0:e.config)==null?void 0:t.ecl},set(e){var t;console.debug("set ecl",e),this.$store.commit("qrart/setConfig",y(q({},(t=this.$store.state.qrart)==null?void 0:t.config),{ecl:e}))}}},mounted(){this.value||(this.value=Ke)}}),_a={class:"field"},ma={class:"title"};function va(e,t,i,p,m,v){const r=l("el-option"),n=l("el-select");return s(),u("div",_a,[d("h2",ma,c(e.$t("qrart.name.ecl")),1),o(n,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=a=>e.value=a),clearable:"",class:"value",placeholder:e.$t("qrart.placeholder.ecl")},{default:_(()=>[(s(!0),u(R,null,I(e.options,a=>(s(),$(r,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])])}var ha=g(pa,[["render",va],["__scopeId","data-v-2205523d"],["__file","/home/runner/work/Nexior/Nexior/src/components/qrart/config/EclSelector.vue"]]);const fa=b({name:"MarkerShapeSelector",components:{ElSelect:Q,ElOption:M},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(){var e,t;return(t=(e=this.$store.state.qrart)==null?void 0:e.config)==null?void 0:t.position},set(e){var t;console.debug("set position",e),this.$store.commit("qrart/setConfig",y(q({},(t=this.$store.state.qrart)==null?void 0:t.config),{position:e}))}}},mounted(){this.value||(this.value=Je)}}),$a={class:"field"},ga={class:"title"};function ba(e,t,i,p,m,v){const r=l("el-option"),n=l("el-select");return s(),u("div",$a,[d("h2",ga,c(e.$t("qrart.name.position")),1),o(n,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=a=>e.value=a),clearable:"",class:"value",placeholder:e.$t("qrart.placeholder.position")},{default:_(()=>[(s(!0),u(R,null,I(e.options,a=>(s(),$(r,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])])}var qa=g(fa,[["render",ba],["__scopeId","data-v-50587928"],["__file","/home/runner/work/Nexior/Nexior/src/components/qrart/config/PositionSelector.vue"]]);const ya=b({name:"PaddingLevelSelector",components:{ElSelect:Q,ElOption:M},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(){var e,t;return(t=(e=this.$store.state.qrart)==null?void 0:e.config)==null?void 0:t.padding_level},set(e){var t;console.debug("set padding_level",e),this.$store.commit("qrart/setConfig",y(q({},(t=this.$store.state.qrart)==null?void 0:t.config),{padding_level:e}))}}},mounted(){this.value||(this.value=Xe)}}),ka={class:"field"},Sa={class:"title"};function wa(e,t,i,p,m,v){const r=l("el-option"),n=l("el-select");return s(),u("div",ka,[d("h2",Sa,c(e.$t("qrart.name.paddingLevel")),1),o(n,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=a=>e.value=a),clearable:"",class:"value",placeholder:e.$t("qrart.placeholder.paddingLevel")},{default:_(()=>[(s(!0),u(R,null,I(e.options,a=>(s(),$(r,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])])}var Va=g(ya,[["render",wa],["__scopeId","data-v-9178421c"],["__file","/home/runner/work/Nexior/Nexior/src/components/qrart/config/PaddingLevelSelector.vue"]]);const Ra=b({name:"PaddingNoiseSelector",components:{ElSelect:Q,ElOption:M},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(){var e,t;return(t=(e=this.$store.state.qrart)==null?void 0:e.config)==null?void 0:t.padding_noise},set(e){var t;console.debug("set padding_noise",e),this.$store.commit("qrart/setConfig",y(q({},(t=this.$store.state.qrart)==null?void 0:t.config),{padding_noise:e}))}}},mounted(){this.value||(this.value=Ye)}}),Ia={class:"field"},Aa={class:"title"};function Ea(e,t,i,p,m,v){const r=l("el-option"),n=l("el-select");return s(),u("div",Ia,[d("h2",Aa,c(e.$t("qrart.name.paddingNoise")),1),o(n,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=a=>e.value=a),clearable:"",class:"value",placeholder:e.$t("qrart.placeholder.paddingNoise")},{default:_(()=>[(s(!0),u(R,null,I(e.options,a=>(s(),$(r,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])])}var Na=g(Ra,[["render",Ea],["__scopeId","data-v-6cb1b988"],["__file","/home/runner/work/Nexior/Nexior/src/components/qrart/config/PaddingNoiseSelector.vue"]]);const Ta=b({name:"PixelStyleSelector",components:{ElSelect:Q,ElOption:M},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(){var e,t;return(t=(e=this.$store.state.qrart)==null?void 0:e.config)==null?void 0:t.pixel_style},set(e){var t;console.debug("set pixel_style",e),this.$store.commit("qrart/setConfig",y(q({},(t=this.$store.state.qrart)==null?void 0:t.config),{pixel_style:e}))}}},mounted(){this.value||(this.value=Ze)}}),Ca={class:"field"},Pa={class:"title"};function Ua(e,t,i,p,m,v){const r=l("el-option"),n=l("el-select");return s(),u("div",Ca,[d("h2",Pa,c(e.$t("qrart.name.pixelStyle")),1),o(n,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=a=>e.value=a),clearable:"",class:"value",placeholder:e.$t("qrart.placeholder.pixelStyle")},{default:_(()=>[(s(!0),u(R,null,I(e.options,a=>(s(),$(r,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])])}var La=g(Ta,[["render",Ua],["__scopeId","data-v-004afc6c"],["__file","/home/runner/work/Nexior/Nexior/src/components/qrart/config/PixelStyleSelector.vue"]]);const Da=b({name:"SeedInput",components:{ElInput:me},data(){return{}},computed:{value:{get(){var e,t;return(t=(e=this.$store.state.qrart)==null?void 0:e.config)==null?void 0:t.seed},set(e){var t;console.debug("set seed",e),this.$store.commit("qrart/setConfig",y(q({},(t=this.$store.state.qrart)==null?void 0:t.config),{seed:e?parseInt(e):void 0}))}}},mounted(){this.value||(this.value=void 0)}}),Qa={class:"field"},Ma={class:"title"};function Ga(e,t,i,p,m,v){const r=l("el-input");return s(),u("div",Qa,[d("h2",Ma,c(e.$t("qrart.name.seed")),1),o(r,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=n=>e.value=n),class:"value",placeholder:e.$t("qrart.placeholder.seed")},null,8,["modelValue","placeholder"])])}var Oa=g(Da,[["render",Ga],["__scopeId","data-v-ac43ceee"],["__file","/home/runner/work/Nexior/Nexior/src/components/qrart/config/SeedInput.vue"]]);const za=b({name:"PresetSelector",components:{ElImage:Le},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(){var e,t;return(t=(e=this.$store.state.qrart)==null?void 0:e.config)==null?void 0:t.preset},set(e){var t;console.debug("set qrw",e),this.$store.commit("qrart/setConfig",y(q({},(t=this.$store.state.qrart)==null?void 0:t.config),{preset:e}))}}},mounted(){this.value||(this.value=xe)}}),Fa={class:"field"},ja={class:"title"},Ba={class:"pane"},Wa=["onClick"],Ha={class:"name"};function Ka(e,t,i,p,m,v){const r=l("el-image");return s(),u("div",Fa,[d("h2",ja,c(e.$t("qrart.name.preset")),1),d("div",Ba,[(s(!0),u(R,null,I(e.options,(n,a)=>(s(),u("div",{key:a,class:K({item:!0,active:e.value===n.value}),onClick:h=>e.value===n.value?e.value=void 0:e.value=n.value},[o(r,{src:n.url,fit:"fill",class:"preview"},null,8,["src"]),d("span",Ha,c(n.label),1)],10,Wa))),128))])])}var Ja=g(za,[["render",Ka],["__scopeId","data-v-493c6d78"],["__file","/home/runner/work/Nexior/Nexior/src/components/qrart/config/PresetSelector2.vue"]]);const Xa="",Ya=b({name:"ContentInput",components:{ElInput:me,ElUpload:lt,ElRadioGroup:rt,ElButton:ce,ElRadioButton:nt},data(){return{inputWay:"input",fileList:[],uploadUrl:et()+"/api/v1/files/"}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>{var t;return(t=e==null?void 0:e.response)==null?void 0:t.file_url})},value:{get(){var e,t;return(t=(e=this.$store.state.qrart)==null?void 0:e.config)==null?void 0:t.content},set(e){var t;this.$store.commit("qrart/setConfig",y(q({},(t=this.$store.state.qrart)==null?void 0:t.config),{content:e,content_image_url:void 0}))}}},mounted(){this.value||(this.value=Xa),this.onSetContentImageUrl()},methods:{onExceed(){z.warning(this.$t("chatdoc.message.uploadDocumentsExceed"))},onError(){z.error(this.$t("chatdoc.message.uploadDocumentsError"))},onSetContentImageUrl(){var t,i;const e=(t=this.urls)==null?void 0:t[0];this.$store.commit("qrart/setConfig",y(q({},(i=this.$store.state.qrart)==null?void 0:i.config),{content:void 0,content_image_url:e}))},async onSuccess(){this.onSetContentImageUrl()}}}),Za={class:"field"},xa={class:"flex justify-between items-center mb-4"},es={class:"flex items-center"},ts={key:2,class:"description"};function as(e,t,i,p,m,v){const r=l("el-radio-button"),n=l("el-radio-group"),a=l("el-input"),h=l("el-button"),V=l("el-upload");return s(),u("div",Za,[d("div",xa,[d("div",null,[d("span",null,c(e.$t("qrart.name.content")),1)]),d("div",es,[o(n,{modelValue:e.inputWay,"onUpdate:modelValue":t[0]||(t[0]=S=>e.inputWay=S)},{default:_(()=>[o(r,{label:"input"},{default:_(()=>[k(c(e.$t("qrart.inputWay.input")),1)]),_:1}),o(r,{label:"upload"},{default:_(()=>[k(c(e.$t("qrart.inputWay.upload")),1)]),_:1})]),_:1},8,["modelValue"])])]),e.inputWay=="input"?(s(),$(a,{key:0,modelValue:e.value,"onUpdate:modelValue":t[1]||(t[1]=S=>e.value=S),class:"content",placeholder:e.$t("qrart.placeholder.content")},null,8,["modelValue","placeholder"])):f("v-if",!0),e.inputWay=="upload"?(s(),$(V,{key:1,"file-list":e.fileList,"onUpdate:file-list":t[2]||(t[2]=S=>e.fileList=S),accept:".png,.jpg,.jpeg,.gif,.bmp,.webp",name:"file",class:"upload","show-file-list":!0,limit:1,multiple:!1,action:e.uploadUrl,"on-exceed":e.onExceed,"on-error":e.onError,"on-success":e.onSuccess,headers:e.headers},{default:_(()=>[o(h,{size:"small",type:"primary",round:""},{default:_(()=>[k(c(e.$t("qrart.button.uploadQr")),1)]),_:1})]),_:1},8,["file-list","action","on-exceed","on-error","on-success","headers"])):f("v-if",!0),e.inputWay=="upload"?(s(),u("p",ts,c(e.$t("qrart.message.uploadQr")),1)):f("v-if",!0)])}var ss=g(Ya,[["render",as],["__scopeId","data-v-4e04cf51"],["__file","/home/runner/work/Nexior/Nexior/src/components/qrart/config/ContentInput.vue"]]);const os="",ls=b({name:"PromptInput",components:{ElInput:me},data(){return{}},computed:{value:{get(){var e,t;return(t=(e=this.$store.state.qrart)==null?void 0:e.config)==null?void 0:t.prompt},set(e){var t;console.debug("set prompt",e),this.$store.commit("qrart/setConfig",y(q({},(t=this.$store.state.qrart)==null?void 0:t.config),{prompt:e}))}}},mounted(){this.value||(this.value=os)}}),rs={class:"field"},ns={class:"title"};function is(e,t,i,p,m,v){const r=l("el-input");return s(),u("div",rs,[d("h2",ns,c(e.$t("qrart.name.prompt")),1),o(r,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=n=>e.value=n),rows:3,type:"textarea",class:"prompt",placeholder:e.$t("qrart.placeholder.prompt"),resize:"none"},null,8,["modelValue","placeholder"])])}var cs=g(ls,[["render",is],["__scopeId","data-v-4c15e8f6"],["__file","/home/runner/work/Nexior/Nexior/src/components/qrart/config/PromptInput.vue"]]);const us=b({name:"ConfigPanel",components:{ElButton:ce,FontAwesomeIcon:_e,TypeSelector:It,PositionSelector:qa,PixelStyleSelector:La,PaddingLevelSelector:Va,SeedInput:Oa,AspectRatioSelector:Ut,QrwSelector:Gt,EclSelector:ha,StepsSelector:Bt,PaddingNoiseSelector:Na,AdvancedSelector:Xt,MarkerShapeSelector:ta,SubMarkerSelector:ra,RotateSelector:da,PresetSelector:Ja,ContentInput:ss,PromptInput:cs},emits:["generate"],computed:{config(){var e;return(e=this.$store.state.qrart)==null?void 0:e.config}}}),ds={class:"panel flex flex-col h-full"},ps={class:"flex-1 overflow-y-scroll p-4"},_s={class:"h-12 px-4"};function ms(e,t,i,p,m,v){var J,X,Y,Z,x,ee,A,w,N;const r=l("type-selector"),n=l("content-input"),a=l("prompt-input"),h=l("aspect-ratio-selector"),V=l("qrw-selector"),S=l("preset-selector"),T=l("position-selector"),C=l("advanced-selector"),P=l("steps-selector"),U=l("seed-input"),L=l("pixel-style-selector"),E=l("marker-shape-selector"),D=l("sub-marker-selector"),F=l("rotate-selector"),j=l("ecl-selector"),G=l("padding-level-selector"),O=l("padding-noise-selector"),B=l("font-awesome-icon"),W=l("el-button");return s(),u("div",ds,[d("div",ps,[o(r,{class:"mb-4"}),o(n,{class:"mb-4"}),o(a,{class:"mb-4"}),o(h,{class:"mb-4"}),o(V,{class:"mb-4"}),o(S,{class:"mb-4"}),o(T,{class:"mb-4"}),o(C,{class:"mb-4"}),(J=e.config)!=null&&J.advanced?(s(),$(P,{key:0,class:"mb-4"})):f("v-if",!0),(X=e.config)!=null&&X.advanced?(s(),$(U,{key:1,class:"mb-4"})):f("v-if",!0),(Y=e.config)!=null&&Y.advanced?(s(),$(L,{key:2,class:"mb-4"})):f("v-if",!0),(Z=e.config)!=null&&Z.advanced?(s(),$(E,{key:3,class:"mb-4"})):f("v-if",!0),(x=e.config)!=null&&x.advanced?(s(),$(D,{key:4,class:"mb-4"})):f("v-if",!0),(ee=e.config)!=null&&ee.advanced?(s(),$(F,{key:5,class:"mb-4"})):f("v-if",!0),(A=e.config)!=null&&A.advanced?(s(),$(j,{key:6,class:"mb-4"})):f("v-if",!0),(w=e.config)!=null&&w.advanced?(s(),$(G,{key:7,class:"mb-4"})):f("v-if",!0),(N=e.config)!=null&&N.advanced?(s(),$(O,{key:8,class:"mb-4"})):f("v-if",!0)]),d("div",_s,[o(W,{type:"primary",class:"btn w-full",round:"",onClick:t[0]||(t[0]=H=>e.$emit("generate"))},{default:_(()=>[o(B,{icon:"fa-solid fa-magic",class:"mr-2"}),k(" "+c(e.$t("qrart.button.generate")),1)]),_:1})])])}var vs=g(us,[["render",ms],["__scopeId","data-v-b1ee2916"],["__file","/home/runner/work/Nexior/Nexior/src/components/qrart/ConfigPanel.vue"]]);const hs=b({name:"TaskPreview",components:{ElImage:Le,CopyToClipboard:ft,FontAwesomeIcon:_e,ElAlert:it,ElButton:ce},props:{modelValue:{type:Object,required:!0}},data(){return{}},computed:{application(){var e;return(e=this.$store.state.qrart)==null?void 0:e.application}},methods:{onOpenLink(e){window.open(e,"_blank")},onReload(e){const t=e.target,i=new URL(t.src),p=i.searchParams.get("retry");if(!p)i.searchParams.set("retry","1");else if(parseInt(p)<2)i.searchParams.set("retry",(parseInt(p)+1).toString());else return;t.src=i.toString()},onOpenUrl(e){window.open(e,"_blank")},onDownload(e){const t=document.createElement("a");t.href=e,t.download=e.split("/").pop(),t.click()}}}),fs={class:"preview"},$s={class:"left"},gs={class:"main"},bs={class:"bot"},qs={class:"datetime"},ys={class:"info"},ks={key:0,class:"prompt mt-2"},Ss={key:0},ws={key:0,class:K({content:!0,failed:!0})},Vs={class:"image-wrapper"},Rs=["src"],Is={class:"description"},As={class:"description"},Es={key:0,class:"description"},Ns={key:1,class:"description"},Ts={key:2,class:"description"},Cs={key:1,class:K({content:!0})},Ps={class:"description"},Us={class:"description"},Ls={class:"description"},Ds={key:2,class:K({content:!0})},Qs={class:"description"};function Ms(e,t,i,p,m,v){var T,C,P,U,L,E,D,F,j,G,O,B,W,J,X,Y,Z,x,ee;const r=l("el-image"),n=l("el-button"),a=l("font-awesome-icon"),h=l("copy-to-clipboard"),V=l("el-alert"),S=pt("loading");return s(),u("div",fs,[d("div",$s,[o(r,{src:"https://cdn.acedata.cloud/bcml67.png",class:"avatar"})]),d("div",gs,[d("div",bs,[k(c(e.$t("qrart.name.qrartBot"))+" ",1),d("span",qs,c(e.$dayjs.format(""+new Date(parseFloat(((T=e.modelValue)==null?void 0:T.created_at)||"")*1e3))),1)]),d("div",ys,[(P=(C=e.modelValue)==null?void 0:C.request)!=null&&P.prompt?(s(),u("p",ks,[k(c((L=(U=e.modelValue)==null?void 0:U.request)==null?void 0:L.prompt)+" ",1),(E=e.modelValue)!=null&&E.response?f("v-if",!0):(s(),u("span",Ss," - ("+c(e.$t("qrart.status.pending"))+") ",1))])):f("v-if",!0)]),((F=(D=e.modelValue)==null?void 0:D.response)==null?void 0:F.success)===!0?(s(),u("div",ws,[d("div",Vs,[(G=(j=e.modelValue)==null?void 0:j.response)!=null&&G.image_url?_t((s(),u("img",{key:0,src:(B=(O=e.modelValue)==null?void 0:O.response)==null?void 0:B.image_url,class:"image mb-3"},null,8,Rs)),[[S,!((J=(W=e.modelValue)==null?void 0:W.response)!=null&&J.image_url)]]):f("v-if",!0),(Y=(X=e.modelValue)==null?void 0:X.response)!=null&&Y.image_url?(s(),$(n,{key:1,type:"info",round:"",class:"btn-raw",onClick:t[0]||(t[0]=A=>{var w,N;return e.onOpenUrl((N=(w=e.modelValue)==null?void 0:w.response)==null?void 0:N.image_url)})},{default:_(()=>[k(c(e.$t("common.button.seeRawImage")),1)]),_:1})):f("v-if",!0)]),o(V,{closable:!1,class:"mt-2 success"},{default:_(()=>{var A,w,N,H,te,ae,se,oe,le,re,ne,ie,ve,he,fe,$e,ge,be,qe,ye,ke,Se,we,Ve,Re,Ie;return[d("p",Is,[o(a,{icon:"fa-solid fa-magic",class:"mr-1"}),k(" "+c(e.$t("qrart.name.taskId"))+": "+c((A=e.modelValue)==null?void 0:A.id)+" ",1),o(h,{content:(w=e.modelValue)==null?void 0:w.id,class:"btn-copy"},null,8,["content"])]),d("p",As,[o(a,{icon:"fa-solid fa-diamond",class:"mr-1"}),k(" "+c(e.$t("qrart.name.type"))+": "+c(e.$t("qrart.type."+((H=(N=e.modelValue)==null?void 0:N.request)==null?void 0:H.type)))+" ",1),o(h,{content:(ae=(te=e.modelValue)==null?void 0:te.request)==null?void 0:ae.type,class:"btn-copy"},null,8,["content"])]),(oe=(se=e.modelValue)==null?void 0:se.request)!=null&&oe.content?(s(),u("p",Es,[o(a,{icon:"fa-regular fa-message",class:"mr-1"}),k(" "+c(e.$t("qrart.name.content"))+": "+c((re=(le=e.modelValue)==null?void 0:le.request)==null?void 0:re.content)+" ",1),o(h,{content:(ie=(ne=e.modelValue)==null?void 0:ne.request)==null?void 0:ie.content,class:"btn-copy"},null,8,["content"])])):f("v-if",!0),(he=(ve=e.modelValue)==null?void 0:ve.request)!=null&&he.content_image_url?(s(),u("p",Ns,[o(a,{icon:"fa-regular fa-message",class:"mr-1"}),k(" "+c(e.$t("qrart.name.contentImageUrl"))+": ",1),o(a,{icon:"fa-solid fa-up-right-from-square",class:"mr-1 cursor-pointer",onClick:t[1]||(t[1]=xs=>{var Ae,Ee;return e.onOpenLink((Ee=(Ae=e.modelValue)==null?void 0:Ae.request)==null?void 0:Ee.content_image_url)})})])):f("v-if",!0),(($e=(fe=e.modelValue)==null?void 0:fe.request)==null?void 0:$e.seed)||((be=(ge=e.modelValue)==null?void 0:ge.response)==null?void 0:be.seed)?(s(),u("p",Ts,[o(a,{icon:"fa-solid fa-seedling",class:"mr-1"}),k(" "+c(e.$t("qrart.name.seed"))+": "+c(((ye=(qe=e.modelValue)==null?void 0:qe.request)==null?void 0:ye.seed)||((Se=(ke=e.modelValue)==null?void 0:ke.response)==null?void 0:Se.seed))+" ",1),o(h,{content:(((Ve=(we=e.modelValue)==null?void 0:we.request)==null?void 0:Ve.seed)||((Ie=(Re=e.modelValue)==null?void 0:Re.response)==null?void 0:Ie.seed)).toString(),class:"btn-copy"},null,8,["content"])])):f("v-if",!0)]}),_:1})])):f("v-if",!0),((x=(Z=e.modelValue)==null?void 0:Z.response)==null?void 0:x.success)===!1?(s(),u("div",Cs,[o(V,{closable:!1,class:"failure"},{template:_(()=>[o(a,{icon:"fa-solid fa-exclamation-triangle",class:"mr-1"}),k(" "+c(e.$t("qrart.name.failure")),1)]),default:_(()=>{var A,w,N,H,te,ae,se,oe,le,re,ne,ie;return[d("p",Ps,[o(a,{icon:"fa-solid fa-magic",class:"mr-1"}),k(" "+c(e.$t("qrart.name.taskId"))+": "+c((A=e.modelValue)==null?void 0:A.id)+" ",1),o(h,{content:(w=e.modelValue)==null?void 0:w.id,class:"btn-copy"},null,8,["content"])]),d("p",Us,[o(a,{icon:"fa-solid fa-circle-info",class:"mr-1"}),k(" "+c(e.$t("qrart.name.failureReason"))+": "+c((te=(H=(N=e.modelValue)==null?void 0:N.response)==null?void 0:H.error)==null?void 0:te.message)+" ",1),o(h,{content:(oe=(se=(ae=e.modelValue)==null?void 0:ae.response)==null?void 0:se.error)==null?void 0:oe.message,class:"btn-copy"},null,8,["content"])]),d("p",Ls,[o(a,{icon:"fa-solid fa-hashtag",class:"mr-1"}),k(" "+c(e.$t("qrart.name.traceId"))+": "+c((re=(le=e.modelValue)==null?void 0:le.response)==null?void 0:re.trace_id)+" ",1),o(h,{content:(ie=(ne=e.modelValue)==null?void 0:ne.response)==null?void 0:ie.trace_id,class:"btn-copy"},null,8,["content"])])]}),_:1})])):f("v-if",!0),(ee=e.modelValue)!=null&&ee.response?f("v-if",!0):(s(),u("div",Ds,[o(V,{closable:!1,class:"info"},{template:_(()=>[o(a,{icon:"fa-solid fa-exclamation-triangle",class:"mr-1"}),k(" "+c(e.$t("qrart.name.failure")),1)]),default:_(()=>{var A,w;return[d("p",Qs,[o(a,{icon:"fa-solid fa-magic",class:"mr-1"}),k(" "+c(e.$t("qrart.name.taskId"))+": "+c((A=e.modelValue)==null?void 0:A.id)+" ",1),o(h,{content:(w=e.modelValue)==null?void 0:w.id,class:"btn-copy"},null,8,["content"])])]}),_:1})]))])])}var Gs=g(hs,[["render",Ms],["__scopeId","data-v-3d7fddfb"],["__file","/home/runner/work/Nexior/Nexior/src/components/qrart/task/Preview.vue"]]);const Os=b({name:"RecentPanel",components:{TaskPreview:Gs,ElSkeleton:ct,ElSkeletonItem:ut},data(){return{job:0}},computed:{tasks(){var e,t,i,p;return y(q({},(e=this.$store.state.qrart)==null?void 0:e.tasks),{items:(p=(i=(t=this.$store.state.qrart)==null?void 0:t.tasks)==null?void 0:i.items)==null?void 0:p.slice().reverse()})}}}),zs={class:"panel recent"},Fs={key:0,class:"tasks"},js={class:"left"},Bs={class:"main"},Ws={key:1,class:"tasks"},Hs={key:2,class:"description"};function Ks(e,t,i,p,m,v){var h,V,S,T,C,P,U,L;const r=l("el-skeleton-item"),n=l("el-skeleton"),a=l("task-preview");return s(),u("div",zs,[((h=e.tasks)==null?void 0:h.items)===void 0?(s(),u("div",Fs,[(s(),u(R,null,I(3,E=>d("div",{key:E,class:"task placeholder"},[d("div",js,[o(n,{animated:""},{template:_(()=>[o(r,{variant:"image",class:"avatar"})]),_:1})]),d("div",Bs,[o(n,{animated:""},{template:_(()=>[o(r,{variant:"p",class:"title"}),o(r,{variant:"image",class:"icon"})]),_:1})])])),64))])):((S=(V=e.tasks)==null?void 0:V.items)==null?void 0:S.length)&&((C=(T=e.tasks)==null?void 0:T.items)==null?void 0:C.length)>0?(s(),u("div",Ws,[(s(!0),u(R,null,I((P=e.tasks)==null?void 0:P.items,(E,D)=>(s(),$(a,{key:D,"model-value":E,class:"preview"},null,8,["model-value"]))),128))])):f("v-if",!0),((L=(U=e.tasks)==null?void 0:U.items)==null?void 0:L.length)===0?(s(),u("p",Hs,c(e.$t("qrart.message.noTasks")),1)):f("v-if",!0)])}var Js=g(Os,[["render",Ks],["__scopeId","data-v-2119947c"],["__file","/home/runner/work/Nexior/Nexior/src/components/qrart/RecentPanel.vue"]]);const Xs="https://webhook.acedata.cloud/qrart",Ys=b({name:"QrartIndex",components:{ConfigPanel:vs,Layout:kt,ApplicationStatus:mt,RecentPanel:Js},data(){return{task:void 0,job:0}},computed:{loading(){var e,t;return((t=(e=this.$store.state.qrart)==null?void 0:e.status)==null?void 0:t.getApplications)===de.Request},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===de.Request},needApply(){return this.$store.state.qrart.status.getApplications===de.Success&&!this.application},application(){return this.$store.state.qrart.application}},async mounted(){await this.onGetService(),await this.onGetApplication(),await this.onScrollDown(),await this.onGetTasks(),await this.onScrollDown(),this.job=setInterval(()=>{this.onGetTasks()},5e3)},async unmounted(){clearInterval(this.job)},methods:{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(){tt.create({application:this.application}).then(({data:e})=>{this.application=e,z.success(this.$t("application.message.applySuccessfully"))}).catch(e=>{var t,i;((i=(t=e==null?void 0:e.response)==null?void 0:t.data)==null?void 0:i.code)===vt&&z.error(this.$t("application.message.alreadyApplied"))})},async onScrollDown(){setTimeout(()=>{const e=document.querySelector(".recent");e&&(e.scrollTop=e.scrollHeight)},500)},async onGetTasks(){if(this.loading){console.debug("loading");return}await this.$store.dispatch("qrart/getTasks",{limit:30,offset:0})},async onGenerate(){var i,p,m,v,r,n,a,h,V,S,T,C,P,U,L,E,D,F,j;const e=q({type:(i=this.config)==null?void 0:i.type,content:(p=this.config)==null?void 0:p.content,content_image_url:(m=this.config)==null?void 0:m.content_image_url,prompt:(v=this.config)==null?void 0:v.prompt,aspect_ratio:(r=this.config)==null?void 0:r.aspect_ratio,callback_url:Xs,qrw:(n=this.config)==null?void 0:n.qrw,steps:(a=this.config)==null?void 0:a.steps,preset:(h=this.config)==null?void 0:h.preset},(V=this.config)!=null&&V.advanced?{position:(S=this.config)==null?void 0:S.position,pixel_style:(T=this.config)==null?void 0:T.pixel_style,marker_shape:(C=this.config)==null?void 0:C.marker_shape,sub_marker:(P=this.config)==null?void 0:P.sub_marker,rotate:(U=this.config)==null?void 0:U.rotate,ecl:(L=this.config)==null?void 0:L.ecl,seed:(E=this.config)==null?void 0:E.seed,padding_level:(D=this.config)==null?void 0:D.padding_level,padding_noise:(F=this.config)==null?void 0:F.padding_noise}:{}),t=(j=this.credential)==null?void 0:j.token;if(!t){console.error("no token specified");return}z.info(this.$t("qrart.message.startingTask")),at.generate(e,{token:t}).then(()=>{z.success(this.$t("qrart.message.startTaskSuccess"))}).catch(G=>{var B,W;const O=(B=G==null?void 0:G.response)==null?void 0:B.data;((W=O==null?void 0:O.error)==null?void 0:W.code)===ht?z.error(this.$t("qrart.message.usedUp")):z.error(this.$t("qrart.message.startTaskFailed"))}).finally(async()=>{await this.onGetTasks(),await this.onScrollDown()})}}});function Zs(e,t,i,p,m,v){const r=l("config-panel"),n=l("application-status"),a=l("recent-panel"),h=l("layout");return s(),$(h,null,{config:_(()=>[o(r,{onGenerate:e.onGenerate},null,8,["onGenerate"])]),result:_(()=>[o(n,{initializing:e.initializing,application:e.application,service:e.service,"need-apply":e.needApply,class:"mb-4",onRefresh:e.onGetApplication},null,8,["initializing","application","service","need-apply","onRefresh"]),o(a,{class:"panel recent"})]),_:1})}var po=g(Ys,[["render",Zs],["__scopeId","data-v-2e5be7b1"],["__file","/home/runner/work/Nexior/Nexior/src/pages/qrart/Index.vue"]]);export{po as default};
@@ -1 +0,0 @@
1
- var ce=Object.defineProperty,de=Object.defineProperties;var pe=Object.getOwnPropertyDescriptors;var ie=Object.getOwnPropertySymbols;var ue=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable;var le=(e,s,a)=>s in e?ce(e,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[s]=a,w=(e,s)=>{for(var a in s||(s={}))ue.call(s,a)&&le(e,a,s[a]);if(ie)for(var a of ie(s))me.call(s,a)&&le(e,a,s[a]);return e},I=(e,s)=>de(e,pe(s));import"./vendor-others.56d45bbc.js";import{ao as B}from"./vendor-fortawesome.af6cba05.js";import{_ as V,N as he,X as j,B as _e,az as ge}from"./index.bf408bd9.js";import{P as fe,l as M,O as ve,M as C,L as $e,K as ye,U as be,V as ke,s as re,F as we,C as Ie,R as Ve}from"./vendor-element-plus.0a44791e.js";import{H as S,al as l,o,e as r,f as c,I as z,V as t,M as m,U as i,T as f,W as U,ai as G,L as O,S as v,Q as D,m as Se}from"./vendor-@vue.01066951.js";import{I as Ce}from"./InfoIcon.162a4b17.js";import{A as Te,i as Ee,h as Pe}from"./Status.83a165e3.js";import{C as Ue}from"./CopyToClipboard.b7190113.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.3f236d35.js";const Ge=S({name:"LayoutHeadshots",components:{ElDrawer:fe,ElButton:M,FontAwesomeIcon:B},data(){return{drawer:!1}}}),Ne={class:"main"},Ae={class:"config"},Re={class:"result"};function De(e,s,a,d,_,g){const p=l("font-awesome-icon"),h=l("el-button"),n=l("el-drawer");return o(),r("div",Ne,[c("div",Ae,[z(e.$slots,"config",{},void 0,!0)]),c("div",Re,[z(e.$slots,"result",{},void 0,!0)]),t(h,{round:"",class:"menu",onClick:s[0]||(s[0]=u=>e.drawer=!0)},{default:m(()=>[t(p,{icon:"fa-solid fa-gear",class:"icon-menu"})]),_:1}),t(n,{modelValue:e.drawer,"onUpdate:modelValue":s[1]||(s[1]=u=>e.drawer=u),"with-header":!1,size:"340px",class:"drawer"},{default:m(()=>[z(e.$slots,"config",{},void 0,!0)]),_:3},8,["modelValue"])])}var Le=V(Ge,[["render",De],["__scopeId","data-v-3e896eaa"],["__file","/home/runner/work/Nexior/Nexior/src/layouts/Headshots.vue"]]);const Oe=S({name:"ImageUrlsInput",components:{ElUpload:ve,ElButton:M,InfoIcon:Ce},data(){return{fileList:[],uploadUrl:he()+"/api/v1/files/"}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>{var s;return(s=e==null?void 0:e.response)==null?void 0:s.file_url})},value:{get(){var e,s;return(s=(e=this.$store.state.headshots)==null?void 0:e.config)==null?void 0:s.image_urls},set(e){var a;const s=this.urls;this.$store.commit("headshots/setConfig",I(w({},(a=this.$store.state.headshots)==null?void 0:a.config),{image_urls:s}))}}},mounted(){this.value||(this.value=void 0),this.onSetImageUrls()},methods:{onExceed(){C.warning(this.$t("headshots.message.uploadImageExceed"))},onError(){C.error(this.$t("headshots.message.uploadImageError"))},onSetImageUrls(){var s;const e=this.urls;this.$store.commit("headshots/setConfig",I(w({},(s=this.$store.state.headshots)==null?void 0:s.config),{image_urls:e}))},async onSuccess(){this.onSetImageUrls()}}}),je={class:"field"},ze={class:"title"},Be={class:"upload-wrapper"};function Me(e,s,a,d,_,g){const p=l("el-button"),h=l("el-upload"),n=l("info-icon");return o(),r("div",je,[c("h2",ze,i(e.$t("headshots.name.endImageUrls")),1),c("div",Be,[t(h,{"file-list":e.fileList,"onUpdate:file-list":s[0]||(s[0]=u=>e.fileList=u),accept:".png,.jpg,.jpeg,.gif,.bmp,.webp",name:"file",class:"value","show-file-list":!0,limit:2,multiple:!0,action:e.uploadUrl,"on-exceed":e.onExceed,"on-error":e.onError,"on-success":e.onSuccess,headers:e.headers},{default:m(()=>[t(p,{size:"small",type:"primary",round:""},{default:m(()=>[f(i(e.$t("headshots.button.uploadImageUrls")),1)]),_:1})]),_:1},8,["file-list","action","on-exceed","on-error","on-success","headers"])]),t(n,{content:e.$t("headshots.description.endImageUrls"),class:"info"},null,8,["content"])])}var qe=V(Oe,[["render",Me],["__scopeId","data-v-69ae8722"],["__file","/home/runner/work/Nexior/Nexior/src/components/headshots/config/ImageUrlsInput.vue"]]);const Fe="fast",He=S({name:"ModeSelector",components:{ElRadioButton:$e,ElRadioGroup:ye},data(){return{options:[{label:this.$t("headshots.button.fast"),value:"fast"},{label:this.$t("headshots.button.relax"),value:"relax"}]}},computed:{value:{get(){var e;return(e=this.$store.state.headshots.config)==null?void 0:e.mode},set(e){console.debug("set mode",e),this.$store.commit("headshots/setConfig",I(w({},this.$store.state.headshots.config),{mode:e}))}}},mounted(){this.value||(this.value=Fe)}}),Ke={class:"field"},Qe={class:"title"};function We(e,s,a,d,_,g){const p=l("el-radio-button"),h=l("el-radio-group");return o(),r("div",Ke,[c("h2",Qe,i(e.$t("headshots.name.mode")),1),t(h,{modelValue:e.value,"onUpdate:modelValue":s[0]||(s[0]=n=>e.value=n),size:"small",class:"mode"},{default:m(()=>[(o(!0),r(U,null,G(e.options,n=>(o(),O(p,{key:n.value,label:n.value},{default:m(()=>[f(i(n.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])}var Xe=V(He,[["render",We],["__scopeId","data-v-5ec8e3d9"],["__file","/home/runner/work/Nexior/Nexior/src/components/headshots/config/ModeSelector.vue"]]);const Je=S({name:"StylizeSelector",components:{ElTabs:be,ElTabPane:ke,ElImage:re},data(){return{tab:"styles",value:"",elements:{styles:{displayName:this.$t("headshots.styleCategory.styles"),items:[{image:"https://static.aipedias.com/aicamera/common/20241008/20241008202314260779439.png",label:this.$t("headshots.styleTag.malePportrait"),value:"male_portrait"},{image:"https://static.aipedias.com/aicamera/common/20241008/202410082022241e9755548.png",label:this.$t("headshots.styleTag.malePportrait2"),value:"male_portrait2"},{image:"https://static.aipedias.com/aicamera/common/20241101/20241101170130d78f66521.png",label:this.$t("headshots.styleTag.kindergarten"),value:"kindergarten"},{image:"https://static.aipedias.com/aicamera/common/20240923/20240923123233accf60398.webp",label:this.$t("headshots.styleTag.logoTshirt"),value:"logo_tshirt"},{image:"https://static.aipedias.com/aicamera/common/20241025/202410252012329472d0656.jpg",label:this.$t("headshots.styleTag.wedding"),value:"wedding"},{image:"https://static.aipedias.com/aicamera/common/20240915/20240915145045254931400.webp",label:this.$t("headshots.styleTag.businessPphoto"),value:"business_photo"},{image:"https://static.aipedias.com/aicamera/common/20240810/20240810194526040341795.jpg",label:this.$t("headshots.styleTag.bobSuit"),value:"bob_suit"},{image:"https://static.aipedias.com/aicamera/common/20240717/20240717152654e0b348173.webp",label:this.$t("headshots.styleTag.femalePortrait"),value:"female_portrait"}]}}}},watch:{value(e){var s;console.debug("set template",e),this.$store.commit("headshots/setConfig",I(w({},(s=this.$store.state.headshots)==null?void 0:s.config),{template:e}))}},mounted(){var e;this.value||(this.value=""),console.debug("set template",this.value),this.$store.commit("headshots/setConfig",I(w({},(e=this.$store.state.headshots)==null?void 0:e.config),{template:this.value}))},methods:{onToggle(e){var s;this.value===e?this.value="":this.value=e,console.debug("set template",this.value),this.$store.commit("headshots/setConfig",I(w({},(s=this.$store.state.headshots)==null?void 0:s.config),{template:this.value}))}}}),Ye={class:"field"},Ze=["onClick"],xe={class:"name"};function es(e,s,a,d,_,g){const p=l("el-image"),h=l("el-tab-pane"),n=l("el-tabs");return o(),r("div",Ye,[v(` <h2 class="title">{{ $t('headshots.field.elements') }}</h2> `),t(n,{modelValue:e.tab,"onUpdate:modelValue":s[0]||(s[0]=u=>e.tab=u)},{default:m(()=>[(o(!0),r(U,null,G(e.elements,(u,$)=>(o(),O(h,{key:$,label:u.displayName,name:$,class:"pane"},{default:m(()=>[(o(!0),r(U,null,G(u.items,(k,T)=>(o(),r("div",{key:T,class:D({item:!0,active:e.value===k.value}),onClick:E=>e.onToggle(k.value)},[t(p,{src:k.image,fit:"fill",class:"preview"},null,8,["src"]),c("span",xe,i(k.label),1)],10,Ze))),128))]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])])}var ss=V(Je,[["render",es],["__scopeId","data-v-7e0125ad"],["__file","/home/runner/work/Nexior/Nexior/src/components/headshots/config/ElementsSelector.vue"]]);const ts=S({name:"PresetPanel",components:{ModeSelector:Xe,ImageUrlsInput:qe,ElButton:M,FontAwesomeIcon:B,ElementsSelector:ss},emits:["generate"],computed:{config(){var e;return(e=this.$store.state.headshots)==null?void 0:e.config}},methods:{onGenerate(){this.$emit("generate")}}}),as={class:"panel"},os={class:"config"},ns={class:"actions"};function is(e,s,a,d,_,g){const p=l("elements-selector"),h=l("mode-selector"),n=l("image-urls-input"),u=l("font-awesome-icon"),$=l("el-button");return o(),r("div",as,[c("div",os,[t(p,{class:"mb-4"}),t(h,{class:"mb-4"}),t(n,{class:"mb-4"}),c("div",ns,[t($,{type:"primary",class:"btn w-full",round:"",onClick:e.onGenerate},{default:m(()=>[t(u,{icon:"fa-solid fa-magic",class:"mr-2"}),f(" "+i(e.$t("headshots.button.generate")),1)]),_:1},8,["onClick"])])])])}var ls=V(ts,[["render",is],["__scopeId","data-v-6a264fac"],["__file","/home/runner/work/Nexior/Nexior/src/components/headshots/ConfigPanel.vue"]]);const rs=S({name:"ImageGallery",props:{modelValue:{type:Object,required:!0}},setup(e){return{images:Se(()=>{var d,_,g;return((g=(_=(d=e.modelValue)==null?void 0:d.response)==null?void 0:_.data)==null?void 0:g.slice(0,2))||[]}),viewImage:d=>{window.open(d,"_blank")}}}}),cs={class:"image-gallery"},ds=["src"],ps=["onClick"];function us(e,s,a,d,_,g){return o(),r("div",cs,[(o(!0),r(U,null,G(e.images,(p,h)=>(o(),r("div",{key:h,class:"image-container"},[c("img",{src:p.image_url,alt:"Image"},null,8,ds),c("button",{class:"view-button",onClick:n=>e.viewImage(p.image_url)},i(e.$t("headshots.button.viewImage")),9,ps)]))),128))])}var ms=V(rs,[["render",us],["__scopeId","data-v-0187109d"],["__file","/home/runner/work/Nexior/Nexior/src/components/headshots/ImageGallery.vue"]]);const hs=S({name:"TaskPreview",components:{ElImage:re,CopyToClipboard:Ue,FontAwesomeIcon:B,ElAlert:we,ImageGallery:ms},props:{modelValue:{type:Object,required:!0}},data(){return{}},computed:{application(){var e;return(e=this.$store.state.headshots)==null?void 0:e.application},config(){var e;return(e=this.$store.state.headshots)==null?void 0:e.config}},methods:{onDownload(e,s){e.stopPropagation(),console.log("on download"),window.open(s,"_blank")},onReload(e){const s=e.target,a=new URL(s.src),d=a.searchParams.get("retry");if(!d)a.searchParams.set("retry","1");else if(parseInt(d)<2)a.searchParams.set("retry",(parseInt(d)+1).toString());else return;s.src=a.toString()},onOpenVideo(e){window.open(e,"_blank")}}}),_s={class:"preview"},gs={class:"left"},fs={class:"main"},vs={class:"bot"},$s={class:"datetime"},ys={class:"info"},bs={key:0,class:"prompt mt-2"},ks={key:0},ws={key:1},Is={key:0,class:D({content:!0,failed:!0})},Vs={class:"image-wrapper"},Ss={class:"description"},Cs={key:1,class:D({content:!0})},Ts={class:"description"},Es={class:"description"},Ps={class:"description"},Us={key:2,class:D({content:!0})},Gs={class:"description"},Ns={key:3,class:D({content:!0})},As={class:"description"};function Rs(e,s,a,d,_,g){var k,T,E,N,A,R,P,L,q,F,H,K,Q,W,X;const p=l("el-image"),h=l("image-gallery"),n=l("font-awesome-icon"),u=l("copy-to-clipboard"),$=l("el-alert");return o(),r("div",_s,[c("div",gs,[t(p,{src:"https://cdn.acedata.cloud/isxyfw.png",class:"avatar"})]),c("div",fs,[c("div",vs,[f(i(e.$t("headshots.name.headshotsBot"))+" ",1),c("span",$s,i(e.$dayjs.format(""+new Date(parseFloat(((k=e.modelValue)==null?void 0:k.created_at)||"")*1e3))),1)]),c("div",ys,[(E=(T=e.modelValue)==null?void 0:T.request)!=null&&E.template?(o(),r("p",bs,[f(i((A=(N=e.modelValue)==null?void 0:N.request)==null?void 0:A.template)+" ",1),(R=e.modelValue)!=null&&R.response?v("v-if",!0):(o(),r("span",ks," - ("+i(e.$t("headshots.status.pending"))+") ",1)),((L=(P=e.modelValue)==null?void 0:P.response)==null?void 0:L.status)==="unknown"?(o(),r("span",ws," - ("+i(e.$t("headshots.status.processing"))+") ",1)):v("v-if",!0)])):v("v-if",!0)]),v(" Display success message "),((F=(q=e.modelValue)==null?void 0:q.response)==null?void 0:F.success)===!0?(o(),r("div",Is,[c("div",Vs,[t(h,{"model-value":e.modelValue},null,8,["model-value"])]),t($,{closable:!1,class:"mt-2 success"},{default:m(()=>{var y,b;return[c("p",Ss,[t(n,{icon:"fa-solid fa-magic",class:"mr-1"}),f(" "+i(e.$t("headshots.name.taskId"))+": "+i((y=e.modelValue)==null?void 0:y.id)+" ",1),t(u,{content:(b=e.modelValue)==null?void 0:b.id,class:"btn-copy"},null,8,["content"])])]}),_:1})])):v("v-if",!0),v(" Display error message "),((K=(H=e.modelValue)==null?void 0:H.response)==null?void 0:K.success)===!1?(o(),r("div",Cs,[t($,{closable:!1,class:"failure"},{template:m(()=>[t(n,{icon:"fa-solid fa-exclamation-triangle",class:"mr-1"}),f(" "+i(e.$t("headshots.name.failure")),1)]),default:m(()=>{var y,b,J,Y,Z,x,ee,se,te,ae,oe,ne;return[c("p",Ts,[t(n,{icon:"fa-solid fa-magic",class:"mr-1"}),f(" "+i(e.$t("headshots.name.taskId"))+": "+i((y=e.modelValue)==null?void 0:y.id)+" ",1),t(u,{content:(b=e.modelValue)==null?void 0:b.id,class:"btn-copy"},null,8,["content"])]),c("p",Es,[t(n,{icon:"fa-solid fa-circle-info",class:"mr-1"}),f(" "+i(e.$t("headshots.name.failureReason"))+": "+i((Z=(Y=(J=e.modelValue)==null?void 0:J.response)==null?void 0:Y.error)==null?void 0:Z.message)+" ",1),t(u,{content:(se=(ee=(x=e.modelValue)==null?void 0:x.response)==null?void 0:ee.error)==null?void 0:se.message,class:"btn-copy"},null,8,["content"])]),c("p",Ps,[t(n,{icon:"fa-solid fa-hashtag",class:"mr-1"}),f(" "+i(e.$t("headshots.name.traceId"))+": "+i((ae=(te=e.modelValue)==null?void 0:te.response)==null?void 0:ae.trace_id)+" ",1),t(u,{content:(ne=(oe=e.modelValue)==null?void 0:oe.response)==null?void 0:ne.trace_id,class:"btn-copy"},null,8,["content"])])]}),_:1})])):v("v-if",!0),v(" Display error message "),(Q=e.modelValue)!=null&&Q.response?v("v-if",!0):(o(),r("div",Us,[t($,{closable:!1,class:"info"},{template:m(()=>[t(n,{icon:"fa-solid fa-exclamation-triangle",class:"mr-1"}),f(" "+i(e.$t("headshots.name.failure")),1)]),default:m(()=>{var y,b;return[c("p",Gs,[t(n,{icon:"fa-solid fa-magic",class:"mr-1"}),f(" "+i(e.$t("headshots.name.taskId"))+": "+i((y=e.modelValue)==null?void 0:y.id)+" ",1),t(u,{content:(b=e.modelValue)==null?void 0:b.id,class:"btn-copy"},null,8,["content"])])]}),_:1})])),((X=(W=e.modelValue)==null?void 0:W.response)==null?void 0:X.status)==="unknown"?(o(),r("div",Ns,[t($,{closable:!1,class:"info"},{template:m(()=>[t(n,{icon:"fa-solid fa-exclamation-triangle",class:"mr-1"}),f(" "+i(e.$t("headshots.name.failure")),1)]),default:m(()=>{var y,b;return[c("p",As,[t(n,{icon:"fa-solid fa-magic",class:"mr-1"}),f(" "+i(e.$t("headshots.name.taskId"))+": "+i((y=e.modelValue)==null?void 0:y.id)+" ",1),t(u,{content:(b=e.modelValue)==null?void 0:b.id,class:"btn-copy"},null,8,["content"])])]}),_:1})])):v("v-if",!0)])])}var Ds=V(hs,[["render",Rs],["__scopeId","data-v-43e1feb8"],["__file","/home/runner/work/Nexior/Nexior/src/components/headshots/task/Preview.vue"]]);const Ls=S({name:"RecentPanel",components:{TaskPreview:Ds,ElSkeleton:Ie,ElSkeletonItem:Ve},data(){return{job:0}},computed:{tasks(){var e,s,a,d;return I(w({},(e=this.$store.state.headshots)==null?void 0:e.tasks),{items:(d=(a=(s=this.$store.state.headshots)==null?void 0:s.tasks)==null?void 0:a.items)==null?void 0:d.slice().reverse()})}}}),Os={class:"panel recent"},js={key:0,class:"tasks"},zs={class:"left"},Bs={class:"main"},Ms={key:1,class:"tasks"},qs={key:2,class:"description"};function Fs(e,s,a,d,_,g){var u,$,k,T,E,N,A,R;const p=l("el-skeleton-item"),h=l("el-skeleton"),n=l("task-preview");return o(),r("div",Os,[((u=e.tasks)==null?void 0:u.items)===void 0?(o(),r("div",js,[(o(),r(U,null,G(3,P=>c("div",{key:P,class:"task placeholder"},[c("div",zs,[t(h,{animated:""},{template:m(()=>[t(p,{variant:"image",class:"avatar"})]),_:1})]),c("div",Bs,[t(h,{animated:""},{template:m(()=>[t(p,{variant:"p",class:"title"}),t(p,{variant:"image",class:"icon"})]),_:1})])])),64))])):((k=($=e.tasks)==null?void 0:$.items)==null?void 0:k.length)&&((E=(T=e.tasks)==null?void 0:T.items)==null?void 0:E.length)>0?(o(),r("div",Ms,[(o(!0),r(U,null,G((N=e.tasks)==null?void 0:N.items,(P,L)=>(o(),O(n,{key:L,"model-value":P,class:"preview"},null,8,["model-value"]))),128))])):v("v-if",!0),((R=(A=e.tasks)==null?void 0:A.items)==null?void 0:R.length)===0?(o(),r("p",qs,i(e.$t("headshots.message.noTasks")),1)):v("v-if",!0)])}var Hs=V(Ls,[["render",Fs],["__scopeId","data-v-37920e9a"],["__file","/home/runner/work/Nexior/Nexior/src/components/headshots/RecentPanel.vue"]]);const Ks="https://webhook.acedata.cloud/headshots",Qs=S({name:"HeadshotsIndex",components:{ConfigPanel:ls,Layout:Le,ApplicationStatus:Te,RecentPanel:Hs},data(){return{task:void 0,job:0}},computed:{loading(){var e,s;return((s=(e=this.$store.state.headshots)==null?void 0:e.status)==null?void 0:s.getApplications)===j.Request},service(){return this.$store.state.headshots.service},credential(){return this.$store.state.headshots.credential},config(){return this.$store.state.headshots.config},initializing(){return this.$store.state.headshots.status.getApplications===j.Request},needApply(){return this.$store.state.headshots.status.getApplications===j.Success&&!this.application},application(){return this.$store.state.headshots.application}},async mounted(){await this.onGetService(),await this.onGetApplication(),await this.onScrollDown(),await this.onGetTasks(),await this.onScrollDown(),this.job=setInterval(()=>{this.onGetTasks()},5e3)},async unmounted(){clearInterval(this.job)},methods:{async onGetService(){console.debug("start onGetService"),await this.$store.dispatch("headshots/getService"),console.debug("end onGetService")},async onGetApplication(){console.debug("start onGetApplication"),await this.$store.dispatch("headshots/getApplications"),console.debug("end onGetApplication"),await this.onGetTasks()},onApply(){_e.create({application:this.application}).then(({data:e})=>{this.application=e,C.success(this.$t("application.message.applySuccessfully"))}).catch(e=>{var s,a;((a=(s=e==null?void 0:e.response)==null?void 0:s.data)==null?void 0:a.code)===Ee&&C.error(this.$t("application.message.alreadyApplied"))})},async onScrollDown(){setTimeout(()=>{const e=document.querySelector(".recent");e&&(e.scrollTop=e.scrollHeight)},500)},async onGetTasks(){if(this.loading){console.debug("loading");return}await this.$store.dispatch("headshots/getTasks",{limit:30,offset:0})},async onGeneratePicture(){var a;const e=I(w({},this.config),{callback_url:Ks}),s=(a=this.credential)==null?void 0:a.token;if(!s){console.error("no token specified");return}C.info(this.$t("headshots.message.startingTask")),ge.generate(e,{token:s}).then(()=>{C.success(this.$t("headshots.message.startTaskSuccess")),this.$store.commit("headshots/setConfig",{config:void 0})}).catch(d=>{var g,p;const _=(g=d==null?void 0:d.response)==null?void 0:g.data;((p=_==null?void 0:_.error)==null?void 0:p.code)===Pe?C.error(this.$t("headshots.message.usedUp")):C.error(this.$t("headshots.message.startTaskFailed"))}).finally(async()=>{await this.onGetTasks(),await this.onScrollDown()})}}});function Ws(e,s,a,d,_,g){const p=l("config-panel"),h=l("application-status"),n=l("recent-panel"),u=l("layout");return o(),O(u,null,{config:m(()=>[t(p,{onGenerate:e.onGeneratePicture},null,8,["onGenerate"])]),result:m(()=>[t(h,{initializing:e.initializing,application:e.application,service:e.service,"need-apply":e.needApply,class:"mb-4",onRefresh:e.onGetApplication},null,8,["initializing","application","service","need-apply","onRefresh"]),t(n,{class:"panel recent"}),v(' <operation-panel class="panel operation" @generate="onGenerate" /> ')]),_:1})}var it=V(Qs,[["render",Ws],["__scopeId","data-v-62da1b28"],["__file","/home/runner/work/Nexior/Nexior/src/pages/headshots/Index.vue"]]);export{it as default};
@@ -1 +0,0 @@
1
- import"./vendor-others.56d45bbc.js";import{L as N}from"./Chatdoc.6c121035.js";import{_ as y,X as g,ac as D}from"./index.bf408bd9.js";import{ao as v}from"./vendor-fortawesome.af6cba05.js";import{l as S,E as F,I as B,J as M,N as U,M as u,r as z,i as L,h as T,d as q,e as H,f as O}from"./vendor-element-plus.0a44791e.js";import{H as w,al as o,o as _,e as C,V as t,M as s,T as R,U as r,f as i,W as b,L as $,ai as G,S as J}from"./vendor-@vue.01066951.js";import{A as K}from"./Status.83a165e3.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.3f236d35.js";const W=w({name:"CreateRepository",components:{ElButton:S,ElDialog:F,ElForm:B,ElFormItem:M,ElInput:U,FontAwesomeIcon:v},data(){return{dialogVisible:!1,creating:!1,form:{name:"",description:""}}},computed:{},methods:{async onSubmit(){if(!this.form.name){u.error(this.$t("chatdoc.message.nameRequired"));return}this.creating=!0,this.$store.dispatch("chatdoc/createRepository",{name:this.form.name,description:this.form.description}).then(()=>{this.creating=!1,u.success(this.$t("chatdoc.message.createRepositorySuccess")),this.dialogVisible=!1,this.$store.dispatch("chatdoc/getRepositories")}).catch(()=>{this.creating=!1,u.error(this.$t("chatdoc.message.createRepositoryFailed"))})}}});function X(e,a,V,k,E,I){const p=o("el-input"),l=o("el-form-item"),d=o("el-button"),m=o("el-form"),h=o("el-dialog"),f=o("font-awesome-icon");return _(),C(b,null,[t(h,{modelValue:e.dialogVisible,"onUpdate:modelValue":a[2]||(a[2]=n=>e.dialogVisible=n),width:"400px"},{default:s(()=>[t(m,{ref:"form","label-width":"60px"},{default:s(()=>[t(l,{label:e.$t("chatdoc.field.name"),prop:e.form.name},{default:s(()=>[t(p,{modelValue:e.form.name,"onUpdate:modelValue":a[0]||(a[0]=n=>e.form.name=n),placeholder:e.$t("chatdoc.message.inputRepositoryName")},null,8,["modelValue","placeholder"])]),_:1},8,["label","prop"]),t(l,{label:e.$t("chatdoc.field.description"),prop:e.form.description},{default:s(()=>[t(p,{modelValue:e.form.description,"onUpdate:modelValue":a[1]||(a[1]=n=>e.form.description=n),placeholder:e.$t("chatdoc.message.inputRepositoryDescription")},null,8,["modelValue","placeholder"])]),_:1},8,["label","prop"]),t(l,null,{default:s(()=>[t(d,{type:"primary",round:"",onClick:e.onSubmit},{default:s(()=>[R(r(e.$t("common.button.create")),1)]),_:1},8,["onClick"])]),_:1})]),_:1},512)]),_:1},8,["modelValue"]),i("button",{class:"btn btn-create",onClick:a[3]||(a[3]=n=>e.dialogVisible=!0)},[t(f,{icon:["fas","plus"]})])],64)}var j=y(W,[["render",X],["__scopeId","data-v-41eec665"],["__file","/home/runner/work/Nexior/Nexior/src/components/chatdoc/CreateRepository.vue"]]);const P=w({name:"ChatdocKnowledge",components:{Layout:N,ElCard:z,ElRow:L,ElCol:T,CreateRepository:j,FontAwesomeIcon:v,ElDropdown:q,ElDropdownItem:H,ElDropdownMenu:O,ApplicationStatus:K},data(){return{}},computed:{repositories(){return this.$store.state.chatdoc.repositories},needApply(){return this.$store.state.chatdoc.status.getApplications===g.Success&&!this.application},application(){return this.$store.state.chatdoc.application},service(){return this.$store.state.chatdoc.service},initializing(){return this.$store.state.chatdoc.status.getApplications===g.Request}},async mounted(){},methods:{onClick(e){this.$router.push({name:D,params:{repositoryId:e.id}})},onDelete(e){this.$store.dispatch("chatdoc/deleteRepository",{id:e}).then(()=>{u.success(this.$t("chatdoc.message.deleteRepositorySuccess")),this.$store.dispatch("chatdoc/getRepositories")})}}}),Q={class:"wrapper"},Y={class:"title"},Z={class:"introduction"},x={class:"status"},ee={class:"operation"},oe={class:"name"},te={class:"id"},se={class:"description"};function ae(e,a,V,k,E,I){const p=o("application-status"),l=o("create-repository"),d=o("el-card"),m=o("el-col"),h=o("font-awesome-icon");o("el-dropdown-item"),o("el-dropdown-menu"),o("el-dropdown");const f=o("el-row"),n=o("layout");return _(),$(n,null,{chatdoc:s(()=>[i("div",Q,[i("div",Y,r(e.$t("chatdoc.title.repositories")),1),i("div",Z,r(e.$t("chatdoc.message.introductionForRepository")),1),i("div",x,[t(p,{"show-price":!1,initializing:e.initializing,application:e.application,"need-apply":e.needApply,service:e.service,onRefresh:a[0]||(a[0]=c=>e.$store.dispatch("chatdoc/getApplications"))},null,8,["initializing","application","need-apply","service"])]),t(f,{class:"repositories",gutter:15},{default:s(()=>[t(m,{xl:4,md:6,sm:12,xs:24},{default:s(()=>[t(d,{class:"repository text-center",shadow:"hover",onClick:e.onCreate},{default:s(()=>[t(l),i("p",ee,r(e.$t("chatdoc.title.createRepository")),1)]),_:1},8,["onClick"])]),_:1}),(_(!0),C(b,null,G(e.repositories,(c,A)=>(_(),$(m,{key:A,xl:4,md:6,sm:12,xs:24},{default:s(()=>[t(d,{class:"repository",shadow:"hover",onClick:ie=>e.onClick(c)},{default:s(()=>[J("v-if",!0),i("h2",oe,r(c.name),1),i("p",te,[t(h,{icon:["fas","book"]}),R(" ID: "+r(c.id),1)]),i("p",se,r(c.description),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1})])]),_:1})}var he=y(P,[["render",ae],["__scopeId","data-v-52a67922"],["__file","/home/runner/work/Nexior/Nexior/src/pages/chatdoc/Index.vue"]]);export{he as default};
@@ -1 +0,0 @@
1
- var Ue=Object.defineProperty,Ce=Object.defineProperties;var Pe=Object.getOwnPropertyDescriptors;var ke=Object.getOwnPropertySymbols;var Le=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable;var Ie=(e,t,o)=>t in e?Ue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,w=(e,t)=>{for(var o in t||(t={}))Le.call(t,o)&&Ie(e,o,t[o]);if(ke)for(var o of ke(t))Ne.call(t,o)&&Ie(e,o,t[o]);return e},k=(e,t)=>Ce(e,Pe(t));import{K as Se}from"./vendor-others.56d45bbc.js";import{ao as W}from"./vendor-fortawesome.af6cba05.js";import{_ as I,av as Ae,aw as Te,ax as Ge,N as X,X as K,B as Re,ay as De}from"./index.bf408bd9.js";import{P as ze,l as D,_ as J,O as Y,M as y,N as Oe,s as Fe,F as je,u as Be,C as qe,R as Me}from"./vendor-element-plus.0a44791e.js";import{H as V,al as n,o as r,e as p,f as a,I as Q,V as s,M as m,U as i,T as g,L as A,S as h,Q as H,W as Ve,ai as Ee}from"./vendor-@vue.01066951.js";import{I as R}from"./InfoIcon.162a4b17.js";import{A as He,i as Ke,h as Qe}from"./Status.83a165e3.js";import{C as We}from"./CopyToClipboard.b7190113.js";import"./vendor-axios.168e6950.js";import"./vendor-qrcode.3f236d35.js";const Xe=V({name:"LayoutLuma",components:{ElDrawer:ze,ElButton:D,FontAwesomeIcon:W},data(){return{drawer:!1}}}),Je={class:"main"},Ye={class:"config"},Ze={class:"result"};function xe(e,t,o,l,f,v){const c=n("font-awesome-icon"),u=n("el-button"),d=n("el-drawer");return r(),p("div",Je,[a("div",Ye,[Q(e.$slots,"config",{},void 0,!0)]),a("div",Ze,[Q(e.$slots,"result",{},void 0,!0)]),s(u,{round:"",class:"menu",onClick:t[0]||(t[0]=_=>e.drawer=!0)},{default:m(()=>[s(c,{icon:"fa-solid fa-gear",class:"icon-menu"})]),_:1}),s(d,{modelValue:e.drawer,"onUpdate:modelValue":t[1]||(t[1]=_=>e.drawer=_),"with-header":!1,size:"340px",class:"drawer"},{default:m(()=>[Q(e.$slots,"config",{},void 0,!0)]),_:3},8,["modelValue"])])}var et=I(Xe,[["render",xe],["__scopeId","data-v-234cfb9c"],["__file","/home/runner/work/Nexior/Nexior/src/layouts/Luma.vue"]]);const tt=V({name:"EnhancementSelector",components:{ElSwitch:J,InfoIcon:R},computed:{value:{get(){var e,t;return(t=(e=this.$store.state.luma)==null?void 0:e.config)==null?void 0:t.enhancement},set(e){var t;console.debug("set enhancement",e),this.$store.commit("luma/setConfig",k(w({},(t=this.$store.state.luma)==null?void 0:t.config),{enhancement:e}))}}},mounted(){this.value===void 0&&(this.value=Ae)}}),ot={class:"field"},st={class:"title"};function nt(e,t,o,l,f,v){const c=n("el-switch"),u=n("info-icon");return r(),p("div",ot,[a("h2",st,i(e.$t("luma.name.enhancement")),1),s(c,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=d=>e.value=d),class:"value"},null,8,["modelValue"]),s(u,{content:e.$t("luma.description.enhancement"),class:"info"},null,8,["content"])])}var at=I(tt,[["render",nt],["__scopeId","data-v-175365a0"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/EnhancementSelector.vue"]]);const lt=V({name:"CustomSelector",components:{ElSwitch:J,InfoIcon:R},computed:{value:{get(){var e,t;return(t=(e=this.$store.state.luma)==null?void 0:e.config)==null?void 0:t.custom},set(e){var t;console.debug("set custom",e),this.$store.commit("luma/setConfig",k(w({},(t=this.$store.state.luma)==null?void 0:t.config),{custom:e}))}}},mounted(){this.value===void 0&&(this.value=Te)}}),it={class:"field"},rt={class:"title"};function ct(e,t,o,l,f,v){const c=n("el-switch"),u=n("info-icon");return r(),p("div",it,[a("h2",rt,i(e.$t("luma.name.custom")),1),s(c,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=d=>e.value=d),class:"value"},null,8,["modelValue"]),s(u,{content:e.$t("luma.description.custom"),class:"info"},null,8,["content"])])}var ut=I(lt,[["render",ct],["__scopeId","data-v-5ac2addb"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/CustomSelector.vue"]]);const dt=V({name:"LoopSelector",components:{ElSwitch:J,InfoIcon:R},computed:{value:{get(){var e,t;return(t=(e=this.$store.state.luma)==null?void 0:e.config)==null?void 0:t.loop},set(e){var t;console.debug("set loop",e),this.$store.commit("luma/setConfig",k(w({},(t=this.$store.state.luma)==null?void 0:t.config),{loop:e}))}}},mounted(){this.value===void 0&&(this.value=Ge)}}),mt={class:"field"},pt={class:"title"};function _t(e,t,o,l,f,v){const c=n("el-switch"),u=n("info-icon");return r(),p("div",mt,[a("h2",pt,i(e.$t("luma.name.loop")),1),s(c,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=d=>e.value=d),class:"value"},null,8,["modelValue"]),s(u,{content:e.$t("luma.description.loop"),class:"info"},null,8,["content"])])}var ft=I(dt,[["render",_t],["__scopeId","data-v-69cccd4e"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/LoopSelector.vue"]]);const ht=V({name:"ContentInput",components:{ElUpload:Y,ElButton:D,InfoIcon:R},data(){return{fileList:[],uploadUrl:X()+"/api/v1/files/"}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>{var t;return(t=e==null?void 0:e.response)==null?void 0:t.file_url})},value:{get(){var e,t;return(t=(e=this.$store.state.luma)==null?void 0:e.config)==null?void 0:t.end_image_url},set(e){var o,l;const t=(o=this.urls)==null?void 0:o[0];this.$store.commit("luma/setConfig",k(w({},(l=this.$store.state.luma)==null?void 0:l.config),{end_image_url:t}))}}},mounted(){this.value||(this.value=void 0),this.onSetEndImageUrl()},methods:{onExceed(){y.warning(this.$t("luma.message.uploadEndImageExceed"))},onError(){y.error(this.$t("luma.message.uploadEndImageError"))},onSetEndImageUrl(){var t,o;const e=(t=this.urls)==null?void 0:t[0];this.$store.commit("luma/setConfig",k(w({},(o=this.$store.state.luma)==null?void 0:o.config),{end_image_url:e}))},async onSuccess(){this.onSetEndImageUrl()}}}),vt={class:"field"},gt={class:"title"},$t={class:"upload-wrapper"};function yt(e,t,o,l,f,v){const c=n("el-button"),u=n("el-upload"),d=n("info-icon");return r(),p("div",vt,[a("h2",gt,i(e.$t("luma.name.endImageUrl")),1),a("div",$t,[s(u,{"file-list":e.fileList,"onUpdate:file-list":t[0]||(t[0]=_=>e.fileList=_),accept:".png,.jpg,.jpeg,.gif,.bmp,.webp",name:"file",class:"value","show-file-list":!0,limit:1,multiple:!1,action:e.uploadUrl,"on-exceed":e.onExceed,"on-error":e.onError,"on-success":e.onSuccess,headers:e.headers},{default:m(()=>[s(c,{size:"small",type:"primary",round:""},{default:m(()=>[g(i(e.$t("luma.button.uploadEndImageUrl")),1)]),_:1})]),_:1},8,["file-list","action","on-exceed","on-error","on-success","headers"])]),s(d,{content:e.$t("luma.description.endImageUrl"),class:"info"},null,8,["content"])])}var bt=I(ht,[["render",yt],["__scopeId","data-v-97900bb4"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/EndImageUrlInput.vue"]]);const wt=V({name:"StartImageUrlInput",components:{ElUpload:Y,ElButton:D,InfoIcon:R},data(){return{fileList:[],uploadUrl:X()+"/api/v1/files/"}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>{var t;return(t=e==null?void 0:e.response)==null?void 0:t.file_url})},value:{get(){var e,t;return(t=(e=this.$store.state.luma)==null?void 0:e.config)==null?void 0:t.start_image_url},set(e){var o,l;const t=(o=this.urls)==null?void 0:o[0];this.$store.commit("luma/setConfig",k(w({},(l=this.$store.state.luma)==null?void 0:l.config),{start_image_url:t}))}}},mounted(){this.value||(this.value=void 0),this.onSetStartImageUrl()},methods:{onExceed(){y.warning(this.$t("luma.message.uploadStartImageExceed"))},onError(){y.error(this.$t("luma.message.uploadStartImageError"))},async onRemove(){y.error(this.$t("luma.message.uploadStartImageError"))},onSetStartImageUrl(){var t,o;const e=(t=this.urls)==null?void 0:t[0];this.$store.commit("luma/setConfig",k(w({},(o=this.$store.state.luma)==null?void 0:o.config),{start_image_url:e}))},async onSuccess(){this.onSetStartImageUrl()}}}),kt={class:"field"},It={class:"title"},Vt={class:"upload-wrapper"};function Et(e,t,o,l,f,v){const c=n("el-button"),u=n("el-upload"),d=n("info-icon");return r(),p("div",kt,[a("h2",It,i(e.$t("luma.name.startImageUrl")),1),a("div",Vt,[s(u,{"file-list":e.fileList,"onUpdate:file-list":t[0]||(t[0]=_=>e.fileList=_),accept:".png,.jpg,.jpeg,.gif,.bmp,.webp",name:"file",class:"value","show-file-list":!0,limit:1,multiple:!1,action:e.uploadUrl,"on-exceed":e.onExceed,"on-error":e.onError,"on-remove":e.onRemove,"on-success":e.onSuccess,headers:e.headers},{default:m(()=>[s(c,{size:"small",type:"primary",round:""},{default:m(()=>[g(i(e.$t("luma.button.uploadStartImageUrl")),1)]),_:1})]),_:1},8,["file-list","action","on-exceed","on-error","on-remove","on-success","headers"])]),s(d,{content:e.$t("luma.description.startImageUrl"),class:"info"},null,8,["content"])])}var St=I(wt,[["render",Et],["__scopeId","data-v-5440a4bf"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/StartImageUrlInput.vue"]]);const Ut=V({name:"UploadVideo",components:{ElUpload:Y,ElButton:D,InfoIcon:R},data(){return{fileList:[],uploadUrl:X()+"/api/v1/files/"}},computed:{headers(){return{Authorization:`Bearer ${this.$store.state.token.access}`}},urls(){return this.fileList.map(e=>{var t;return(t=e==null?void 0:e.response)==null?void 0:t.file_url})},value:{get(){var e,t;return(t=(e=this.$store.state.luma)==null?void 0:e.config)==null?void 0:t.video_url},set(e){var o,l;const t=(o=this.urls)==null?void 0:o[0];this.$store.commit("luma/setConfig",k(w({},(l=this.$store.state.luma)==null?void 0:l.config),{video_url:t}))}}},mounted(){this.value||(this.value=void 0)},methods:{onExceed(){y.warning(this.$t("luma.message.uploadVideoExceed"))},onError(){y.error(this.$t("luma.message.uploadVideoError"))},beforeUpload(e){const t=e.type==="video/mp4",o=e.size/1024/1024<10;return t?o?!0:(y.error(this.$t("luma.message.uploadVideoSizeExceed")),!1):(y.error(this.$t("luma.message.uploadVideoTypeFailed")),!1)},onSetVideoUrl(){var t,o;const e=(t=this.urls)==null?void 0:t[0];this.$store.commit("luma/setConfig",k(w({},(o=this.$store.state.luma)==null?void 0:o.config),{video_url:e,action:"extend"}))},async onSuccess(){this.onSetVideoUrl()}}}),Ct={class:"field"},Pt={class:"title"},Lt={class:"upload-wrapper"};function Nt(e,t,o,l,f,v){const c=n("el-button"),u=n("el-upload"),d=n("info-icon");return r(),p("div",Ct,[a("h2",Pt,i(e.$t("luma.name.videoUrl")),1),a("div",Lt,[s(u,{"file-list":e.fileList,"onUpdate:file-list":t[0]||(t[0]=_=>e.fileList=_),accept:".mp4",name:"file",class:"value","show-file-list":!0,limit:1,multiple:!1,action:e.uploadUrl,"before-upload":e.beforeUpload,"on-exceed":e.onExceed,"on-error":e.onError,"on-success":e.onSuccess,headers:e.headers},{default:m(()=>[s(c,{size:"small",type:"primary",round:""},{default:m(()=>[g(i(e.$t("luma.button.uploadVideoUrl")),1)]),_:1})]),_:1},8,["file-list","action","before-upload","on-exceed","on-error","on-success","headers"])]),s(d,{content:e.$t("luma.description.videoUrl"),class:"info"},null,8,["content"])])}var At=I(Ut,[["render",Nt],["__scopeId","data-v-46c66c9f"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/UploadVideo.vue"]]);const Tt="",Gt=V({name:"PromptInput",components:{ElInput:Oe,InfoIcon:R},computed:{prompt:{get(){var e,t;return(t=(e=this.$store.state.luma)==null?void 0:e.config)==null?void 0:t.prompt},set(e){var t;console.debug("set prompt",e),this.$store.commit("luma/setConfig",k(w({},(t=this.$store.state.luma)==null?void 0:t.config),{prompt:e}))}}},mounted(){this.value||(this.value=Tt)}}),Rt={class:"field"},Dt={class:"box"},zt={class:"title"};function Ot(e,t,o,l,f,v){const c=n("info-icon"),u=n("el-input");return r(),p("div",Rt,[a("div",Dt,[a("h2",zt,i(e.$t("luma.name.prompt")),1),s(c,{content:e.$t("luma.description.prompt"),class:"info"},null,8,["content"])]),s(u,{modelValue:e.prompt,"onUpdate:modelValue":t[0]||(t[0]=d=>e.prompt=d),rows:3,type:"textarea",class:"prompt",placeholder:e.$t("luma.placeholder.prompt"),maxlength:300,"show-word-limit":""},null,8,["modelValue","placeholder"])])}var Ft=I(Gt,[["render",Ot],["__scopeId","data-v-19a7446b"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/PromptInput.vue"]]);const jt=V({name:"ExtendFromInput",components:{VuePlyr:Se},props:{modelValue:{type:Object,required:!0}},data(){return{options:{quality:{default:"1080p"}}}},computed:{config(){var e;return(e=this.$store.state.luma)==null?void 0:e.config}}}),Bt={class:"field"},qt={class:"box"},Mt={class:"title"},Ht={class:"task"},Kt=["data-poster"],Qt=["src"];function Wt(e,t,o,l,f,v){const c=n("vue-plyr");return r(),p("div",Bt,[a("div",qt,[a("h2",Mt,i(e.$t("luma.name.extend")),1)]),a("div",Ht,[a("div",null,[s(c,{options:e.options,class:"video"},{default:m(()=>{var u,d;return[a("video",{controls:"",crossorigin:"",playsinline:"","data-poster":(u=e.config)==null?void 0:u.thumbnail_url},[a("source",{size:"1080",src:(d=e.config)==null?void 0:d.video_url,type:"video/mp4"},null,8,Qt)],8,Kt)]}),_:1},8,["options"])])])])}var Xt=I(jt,[["render",Wt],["__scopeId","data-v-1cefb16b"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/config/ExtendFromInput.vue"]]);const Jt=V({name:"PresetPanel",components:{LoopSelector:ft,StartImageUrlInput:St,EndImageUrlInput:bt,EnhancementSelector:at,ElButton:D,FontAwesomeIcon:W,PromptInput:Ft,ExtendFromInput:Xt,CustomSelector:ut,UploadVideo:At},emits:["generate"],computed:{config(){var e;return(e=this.$store.state.luma)==null?void 0:e.config}},methods:{onGenerate(){this.$emit("generate")}}}),Yt={class:"panel"},Zt={class:"config"},xt={class:"actions"};function eo(e,t,o,l,f,v){var N,U,G,z,O,F,j,B,q;const c=n("extend-from-input"),u=n("prompt-input"),d=n("custom-selector"),_=n("upload-video"),$=n("start-image-url-input"),S=n("end-image-url-input"),C=n("enhancement-selector"),T=n("loop-selector"),P=n("font-awesome-icon"),L=n("el-button");return r(),p("div",Yt,[a("div",Zt,[((N=e.config)==null?void 0:N.video_id)||((U=e.config)==null?void 0:U.video_url)?(r(),A(c,{key:0,class:"mb-4"})):h("v-if",!0),s(u,{class:"mb-4"}),(G=e.config)!=null&&G.video_id?h("v-if",!0):(r(),A(d,{key:1,class:"mb-4"})),(z=e.config)!=null&&z.custom?(r(),A(_,{key:2,class:"mb-4"})):h("v-if",!0),!(((O=e.config)==null?void 0:O.video_id)||((F=e.config)==null?void 0:F.video_url))&&!((j=e.config)!=null&&j.custom)?(r(),A($,{key:3,class:"mb-4"})):h("v-if",!0),s(S,{class:"mb-4"}),s(C,{class:"mb-4"}),s(T,{class:"mb-4"}),a("div",xt,[((B=e.config)==null?void 0:B.video_url)!==void 0||((q=e.config)==null?void 0:q.custom)?(r(),A(L,{key:0,type:"primary",class:"btn w-full",round:"",onClick:e.onGenerate},{default:m(()=>[s(P,{icon:"fa-solid fa-magic",class:"mr-2"}),g(" "+i(e.$t("luma.button.extend")),1)]),_:1},8,["onClick"])):(r(),A(L,{key:1,type:"primary",class:"btn w-full",round:"",onClick:e.onGenerate},{default:m(()=>[s(P,{icon:"fa-solid fa-magic",class:"mr-2"}),g(" "+i(e.$t("luma.button.generate")),1)]),_:1},8,["onClick"]))])])])}var to=I(Jt,[["render",eo],["__scopeId","data-v-951b4cc0"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/ConfigPanel.vue"]]);const oo=V({name:"VideoPlayer",components:{VuePlyr:Se},props:{modelValue:{type:Object,required:!0}},data(){return{options:{quality:{default:"1080p"}}}}}),so=["data-poster"],no=["src"];function ao(e,t,o,l,f,v){const c=n("vue-plyr");return r(),p("div",null,[s(c,{options:e.options,class:"video"},{default:m(()=>{var u,d,_,$;return[a("video",{controls:"",crossorigin:"",playsinline:"","data-poster":(d=(u=e.modelValue)==null?void 0:u.response)==null?void 0:d.thumbnail_url},[a("source",{size:"1080",src:($=(_=e.modelValue)==null?void 0:_.response)==null?void 0:$.video_url,type:"video/mp4"},null,8,no)],8,so)]}),_:1},8,["options"])])}var lo=I(oo,[["render",ao],["__scopeId","data-v-759e400c"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/VideoPlayer.vue"]]);const io=V({name:"TaskPreview",components:{ElImage:Fe,CopyToClipboard:We,FontAwesomeIcon:W,ElAlert:je,VideoPlayer:lo,ElTooltip:Be,ElButton:D},props:{modelValue:{type:Object,required:!0}},data(){return{}},computed:{application(){var e;return(e=this.$store.state.luma)==null?void 0:e.application},config(){var e;return(e=this.$store.state.luma)==null?void 0:e.config}},methods:{onExtend(e,t){var o;e.stopPropagation(),console.debug("set config",t),this.$store.commit("luma/setConfig",k(w({},(o=this.$store.state.luma)==null?void 0:o.config),{video_id:t.video_id,prompt:t.prompt,action:"extend",thumbnail_url:t.thumbnail_url,video_url:t.video_url}))},onDownload(e,t){e.stopPropagation(),console.log("on download"),window.open(t,"_blank")},onReload(e){const t=e.target,o=new URL(t.src),l=o.searchParams.get("retry");if(!l)o.searchParams.set("retry","1");else if(parseInt(l)<2)o.searchParams.set("retry",(parseInt(l)+1).toString());else return;t.src=o.toString()},onOpenVideo(e){window.open(e,"_blank")}}}),ro={class:"preview"},co={class:"left"},uo={class:"main"},mo={class:"bot"},po={class:"datetime"},_o={class:"info"},fo={key:0,class:"prompt mt-2"},ho={key:0},vo={key:1},go={key:0,class:H({content:!0,failed:!0})},$o={class:"image-wrapper"},yo={key:0,class:H({operations:!0,"mt-2":!0})},bo={class:"description"},wo={key:1,class:H({content:!0})},ko={class:"description"},Io={class:"description"},Vo={class:"description"},Eo={key:2,class:H({content:!0})},So={class:"description"};function Uo(e,t,o,l,f,v){var T,P,L,N,U,G,z,O,F,j,B,q,Z,x,ee,te,oe,se,ne,ae,le,ie,re,ce,ue,de,me,pe;const c=n("el-image"),u=n("VideoPlayer"),d=n("el-button"),_=n("el-tooltip"),$=n("font-awesome-icon"),S=n("copy-to-clipboard"),C=n("el-alert");return r(),p("div",ro,[a("div",co,[s(c,{src:"https://cdn.acedata.cloud/ahjfwi.png",class:"avatar"})]),a("div",uo,[a("div",mo,[g(i(e.$t("luma.name.lumaBot"))+" ",1),a("span",po,i(e.$dayjs.format(""+new Date(parseFloat(((T=e.modelValue)==null?void 0:T.created_at)||"")*1e3))),1)]),a("div",_o,[(L=(P=e.modelValue)==null?void 0:P.request)!=null&&L.prompt?(r(),p("p",fo,[g(i((U=(N=e.modelValue)==null?void 0:N.request)==null?void 0:U.prompt)+" ",1),(G=e.modelValue)!=null&&G.response?h("v-if",!0):(r(),p("span",ho," - ("+i(e.$t("luma.status.pending"))+") ",1)),((F=(O=(z=e.modelValue)==null?void 0:z.response)==null?void 0:O.data)==null?void 0:F.state)==="processing"||((q=(B=(j=e.modelValue)==null?void 0:j.response)==null?void 0:B.data)==null?void 0:q.state)==="pending"||((ee=(x=(Z=e.modelValue)==null?void 0:Z.response)==null?void 0:x.data)==null?void 0:ee.state)==="completed"?(r(),p("span",vo," - ("+i(e.$t("luma.status.processing"))+") ",1)):h("v-if",!0)])):h("v-if",!0)]),h(" Display success message "),((oe=(te=e.modelValue)==null?void 0:te.response)==null?void 0:oe.success)===!0?(r(),p("div",go,[a("div",$o,[s(u,{"model-value":e.modelValue},null,8,["model-value"])]),((se=e.modelValue)==null?void 0:se.response)&&!((ne=e.config)!=null&&ne.custom)?(r(),p("div",yo,[s(_,{class:"box-item",effect:"dark",content:e.$t("luma.message.extendVideo"),placement:"top-start"},{default:m(()=>[s(d,{type:"info",size:"small",class:"btn-action",onClick:t[0]||(t[0]=E=>{var b;return e.onExtend(E,(b=e.modelValue)==null?void 0:b.response)})},{default:m(()=>[g(i(e.$t("luma.button.extend")),1)]),_:1})]),_:1},8,["content"]),s(_,{class:"box-item",effect:"dark",content:e.$t("luma.message.downloadVideo"),placement:"top-start"},{default:m(()=>[s(d,{type:"info",size:"small",class:"btn-action",onClick:t[1]||(t[1]=E=>{var b,M;return e.onDownload(E,(M=(b=e.modelValue)==null?void 0:b.response)==null?void 0:M.video_url)})},{default:m(()=>[g(i(e.$t("luma.button.download")),1)]),_:1})]),_:1},8,["content"])])):h("v-if",!0),s(C,{closable:!1,class:"mt-2 success"},{default:m(()=>{var E,b;return[a("p",bo,[s($,{icon:"fa-solid fa-magic",class:"mr-1"}),g(" "+i(e.$t("luma.name.taskId"))+": "+i((E=e.modelValue)==null?void 0:E.id)+" ",1),s(S,{content:(b=e.modelValue)==null?void 0:b.id,class:"btn-copy"},null,8,["content"])])]}),_:1})])):h("v-if",!0),h(" Display error message "),((le=(ae=e.modelValue)==null?void 0:ae.response)==null?void 0:le.success)===!1?(r(),p("div",wo,[s(C,{closable:!1,class:"failure"},{template:m(()=>[s($,{icon:"fa-solid fa-exclamation-triangle",class:"mr-1"}),g(" "+i(e.$t("luma.name.failure")),1)]),default:m(()=>{var E,b,M,_e,fe,he,ve,ge,$e,ye,be,we;return[a("p",ko,[s($,{icon:"fa-solid fa-magic",class:"mr-1"}),g(" "+i(e.$t("luma.name.taskId"))+": "+i((E=e.modelValue)==null?void 0:E.id)+" ",1),s(S,{content:(b=e.modelValue)==null?void 0:b.id,class:"btn-copy"},null,8,["content"])]),a("p",Io,[s($,{icon:"fa-solid fa-circle-info",class:"mr-1"}),g(" "+i(e.$t("luma.name.failureReason"))+": "+i((fe=(_e=(M=e.modelValue)==null?void 0:M.response)==null?void 0:_e.error)==null?void 0:fe.message)+" ",1),s(S,{content:(ge=(ve=(he=e.modelValue)==null?void 0:he.response)==null?void 0:ve.error)==null?void 0:ge.message,class:"btn-copy"},null,8,["content"])]),a("p",Vo,[s($,{icon:"fa-solid fa-hashtag",class:"mr-1"}),g(" "+i(e.$t("luma.name.traceId"))+": "+i((ye=($e=e.modelValue)==null?void 0:$e.response)==null?void 0:ye.trace_id)+" ",1),s(S,{content:(we=(be=e.modelValue)==null?void 0:be.response)==null?void 0:we.trace_id,class:"btn-copy"},null,8,["content"])])]}),_:1})])):h("v-if",!0),h(" Display error message "),!((ie=e.modelValue)!=null&&ie.response)||((ue=(ce=(re=e.modelValue)==null?void 0:re.response)==null?void 0:ce.data)==null?void 0:ue.state)==="processing"||((pe=(me=(de=e.modelValue)==null?void 0:de.response)==null?void 0:me.data)==null?void 0:pe.state)==="pending"?(r(),p("div",Eo,[s(C,{closable:!1,class:"info"},{template:m(()=>[s($,{icon:"fa-solid fa-exclamation-triangle",class:"mr-1"}),g(" "+i(e.$t("luma.name.failure")),1)]),default:m(()=>{var E,b;return[a("p",So,[s($,{icon:"fa-solid fa-magic",class:"mr-1"}),g(" "+i(e.$t("luma.name.taskId"))+": "+i((E=e.modelValue)==null?void 0:E.id)+" ",1),s(S,{content:(b=e.modelValue)==null?void 0:b.id,class:"btn-copy"},null,8,["content"])])]}),_:1})])):h("v-if",!0)])])}var Co=I(io,[["render",Uo],["__scopeId","data-v-077795a0"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/task/Preview.vue"]]);const Po=V({name:"RecentPanel",components:{TaskPreview:Co,ElSkeleton:qe,ElSkeletonItem:Me},data(){return{job:0}},computed:{tasks(){var e,t,o,l;return k(w({},(e=this.$store.state.luma)==null?void 0:e.tasks),{items:(l=(o=(t=this.$store.state.luma)==null?void 0:t.tasks)==null?void 0:o.items)==null?void 0:l.slice().reverse()})}}}),Lo={class:"panel recent"},No={key:0,class:"tasks"},Ao={class:"left"},To={class:"main"},Go={key:1,class:"tasks"},Ro={key:2,class:"description"};function Do(e,t,o,l,f,v){var _,$,S,C,T,P,L,N;const c=n("el-skeleton-item"),u=n("el-skeleton"),d=n("task-preview");return r(),p("div",Lo,[((_=e.tasks)==null?void 0:_.items)===void 0?(r(),p("div",No,[(r(),p(Ve,null,Ee(3,U=>a("div",{key:U,class:"task placeholder"},[a("div",Ao,[s(u,{animated:""},{template:m(()=>[s(c,{variant:"image",class:"avatar"})]),_:1})]),a("div",To,[s(u,{animated:""},{template:m(()=>[s(c,{variant:"p",class:"title"}),s(c,{variant:"image",class:"icon"})]),_:1})])])),64))])):((S=($=e.tasks)==null?void 0:$.items)==null?void 0:S.length)&&((T=(C=e.tasks)==null?void 0:C.items)==null?void 0:T.length)>0?(r(),p("div",Go,[(r(!0),p(Ve,null,Ee((P=e.tasks)==null?void 0:P.items,(U,G)=>(r(),A(d,{key:G,"model-value":U,class:"preview"},null,8,["model-value"]))),128))])):h("v-if",!0),((N=(L=e.tasks)==null?void 0:L.items)==null?void 0:N.length)===0?(r(),p("p",Ro,i(e.$t("luma.message.noTasks")),1)):h("v-if",!0)])}var zo=I(Po,[["render",Do],["__scopeId","data-v-2f8302a7"],["__file","/home/runner/work/Nexior/Nexior/src/components/luma/RecentPanel.vue"]]);const Oo="https://webhook.acedata.cloud/luma",Fo=V({name:"LumaIndex",components:{ConfigPanel:to,Layout:et,ApplicationStatus:He,RecentPanel:zo},data(){return{task:void 0,job:0}},computed:{loading(){var e,t;return((t=(e=this.$store.state.luma)==null?void 0:e.status)==null?void 0:t.getApplications)===K.Request},service(){return this.$store.state.luma.service},credential(){return this.$store.state.luma.credential},config(){return this.$store.state.luma.config},initializing(){return this.$store.state.luma.status.getApplications===K.Request},needApply(){return this.$store.state.luma.status.getApplications===K.Success&&!this.application},application(){return this.$store.state.luma.application}},async mounted(){await this.onGetService(),await this.onGetApplication(),await this.onScrollDown(),await this.onGetTasks(),await this.onScrollDown(),this.job=setInterval(()=>{this.onGetTasks()},5e3)},async unmounted(){clearInterval(this.job)},methods:{async onGetService(){console.debug("start onGetService"),await this.$store.dispatch("luma/getService"),console.debug("end onGetService")},async onGetApplication(){console.debug("start onGetApplication"),await this.$store.dispatch("luma/getApplications"),console.debug("end onGetApplication"),await this.onGetTasks()},onApply(){Re.create({application:this.application}).then(({data:e})=>{this.application=e,y.success(this.$t("application.message.applySuccessfully"))}).catch(e=>{var t,o;((o=(t=e==null?void 0:e.response)==null?void 0:t.data)==null?void 0:o.code)===Ke&&y.error(this.$t("application.message.alreadyApplied"))})},async onScrollDown(){setTimeout(()=>{const e=document.querySelector(".recent");e&&(e.scrollTop=e.scrollHeight)},500)},async onGetTasks(){if(this.loading){console.debug("loading");return}await this.$store.dispatch("luma/getTasks",{limit:30,offset:0})},async onGenerateVideo(){var o;const e=k(w({},this.config),{callback_url:Oo}),t=(o=this.credential)==null?void 0:o.token;if(!t){console.error("no token specified");return}y.info(this.$t("luma.message.startingTask")),De.generate(e,{token:t}).then(()=>{y.success(this.$t("luma.message.startTaskSuccess")),this.$store.commit("luma/setConfig",{config:void 0})}).catch(l=>{var v,c;const f=(v=l==null?void 0:l.response)==null?void 0:v.data;((c=f==null?void 0:f.error)==null?void 0:c.code)===Qe?y.error(this.$t("luma.message.usedUp")):y.error(this.$t("luma.message.startTaskFailed"))}).finally(async()=>{await this.onGetTasks(),await this.onScrollDown()})}}});function jo(e,t,o,l,f,v){const c=n("config-panel"),u=n("application-status"),d=n("recent-panel"),_=n("layout");return r(),A(_,null,{config:m(()=>[s(c,{onGenerate:e.onGenerateVideo},null,8,["onGenerate"])]),result:m(()=>[s(u,{initializing:e.initializing,application:e.application,service:e.service,"need-apply":e.needApply,class:"mb-4",onRefresh:e.onGetApplication},null,8,["initializing","application","service","need-apply","onRefresh"]),s(d,{class:"panel recent"}),h(' <operation-panel class="panel operation" @generate="onGenerate" /> ')]),_:1})}var xo=I(Fo,[["render",jo],["__scopeId","data-v-c45e0af8"],["__file","/home/runner/work/Nexior/Nexior/src/pages/luma/Index.vue"]]);export{xo as default};