@acedatacloud/nexior 3.108.0 → 3.109.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (274) hide show
  1. package/dist/assets/{Auth-zVS5e1Dk.js → Auth-CZBUsR-8.js} +1 -1
  2. package/dist/assets/{BotPlaceholder-PAjP823v.js → BotPlaceholder-808fKlrc.js} +1 -1
  3. package/dist/assets/{Callback-YdLWzI1c.js → Callback-BCw34S4I.js} +1 -1
  4. package/dist/assets/Console-DPEMhi7m.js +1 -0
  5. package/dist/assets/{Consumption-DtKxSOW0.js → Consumption-D8o6ZGlD.js} +1 -1
  6. package/dist/assets/{Conversation-DKKL2eDr.js → Conversation-BQ_U-I9L.js} +7 -7
  7. package/dist/assets/{CopyToClipboard-D8MfLJZp.js → CopyToClipboard-99x8TU_E.js} +1 -1
  8. package/dist/assets/{Detail-BJ3NxO0t.js → Detail-BTbBX_0l.js} +2 -2
  9. package/dist/assets/EditArray-BodaIya6.js +1 -0
  10. package/dist/assets/{Extra-BMK-v91O.js → Extra-CUrRwWxs.js} +1 -1
  11. package/dist/assets/{FilePreview-Bo7MaLrW.js → FilePreview-BMrbMk0x.js} +1 -1
  12. package/dist/assets/{History-BIQ2m0vZ.js → History-ZibpTepi.js} +1 -1
  13. package/dist/assets/IconPark.vue_vue_type_script_setup_true_lang-BF3qQycP.js +1 -0
  14. package/dist/assets/{ImagePreview-Dh9-XvKp.js → ImagePreview-B7ddO4K-.js} +1 -1
  15. package/dist/assets/{ImageWrapper-DPBNLYFT.js → ImageWrapper-B4mqUlhx.js} +1 -1
  16. package/dist/assets/{Index-D0je4Hb5.css → Index-BDmY1SY6.css} +1 -1
  17. package/dist/assets/{Index-0BNr41li.js → Index-BHFKdAzq.js} +1 -1
  18. package/dist/assets/{Index-LlYUHORU.js → Index-BIDqjbbO.js} +1 -1
  19. package/dist/assets/{Index-BWsajPgD.js → Index-Bg2Zm6-5.js} +1 -1
  20. package/dist/assets/{Index-DedaKs1r.js → Index-BpUiKoDK.js} +1 -1
  21. package/dist/assets/{Index-DuU78Uug.js → Index-C1xSniax.js} +1 -1
  22. package/dist/assets/{Index-BhbLi2Wu.js → Index-CK59qCoD.js} +1 -1
  23. package/dist/assets/{Index-DX6hm6OG.js → Index-CKjQDdoM.js} +1 -1
  24. package/dist/assets/Index-CSso_LoA.js +1 -0
  25. package/dist/assets/{Index-HxTiuRA7.js → Index-CUQg6KBW.js} +1 -1
  26. package/dist/assets/Index-CdKg1Y3u.js +1 -0
  27. package/dist/assets/{Index-Dsz19JNR.js → Index-CgdNSbRG.js} +1 -1
  28. package/dist/assets/{Index-C4f-sAnz.js → Index-CjcUhG9o.js} +2 -2
  29. package/dist/assets/{Index-77a4rojZ.js → Index-CjvSntWd.js} +1 -1
  30. package/dist/assets/Index-Ck00cdj3.js +1 -0
  31. package/dist/assets/{Index-C371szRa.js → Index-DCsM3bGF.js} +1 -1
  32. package/dist/assets/{Index-DH7JortT.js → Index-DEnL8MY5.js} +1 -1
  33. package/dist/assets/{Index-BDbVNS0t.js → Index-DHRBWrtm.js} +1 -1
  34. package/dist/assets/{Index-DfC96PCx.js → Index-DUe_N0MN.js} +1 -1
  35. package/dist/assets/{Index-eJDUZOqx.js → Index-DZEI8Sn1.js} +1 -1
  36. package/dist/assets/{Index-DPg6ghUo.js → Index-DpUp9_s9.js} +1 -1
  37. package/dist/assets/Index-Fco5LKSK.js +1 -0
  38. package/dist/assets/{Index-BzYCSO-B.js → Index-GcemLKVi.js} +1 -1
  39. package/dist/assets/{Index-Du3G-yxP.js → Index-RB9xEjUG.js} +1 -1
  40. package/dist/assets/{Index-BUhhttiR.js → Index-rd81kAqo.js} +1 -1
  41. package/dist/assets/Invitees-BvTLQ2Dx.js +1 -0
  42. package/dist/assets/{List-C6qESiDX.js → List-CzCbV2RI.js} +1 -1
  43. package/dist/assets/List-DrRSr6rf.js +1 -0
  44. package/dist/assets/{List-C7m0Yi5O.js → List-DxmG5Fsu.js} +1 -1
  45. package/dist/assets/Main-DAOxrJFm.js +1 -0
  46. package/dist/assets/Navigator-7tnlvMe5.js +1 -0
  47. package/dist/assets/Navigator-pY9n2Xr_.css +1 -0
  48. package/dist/assets/{NoTasks-DqYFgS_3.js → NoTasks-CzCoCJiJ.js} +1 -1
  49. package/dist/assets/{NotFound-D1e-3ova.js → NotFound-1k_dya0M.js} +1 -1
  50. package/dist/assets/{OAuthCallback-BgBZC5Lx.js → OAuthCallback-D2YKjyo8.js} +1 -1
  51. package/dist/assets/Pagination-BmrVtAe2.js +1 -0
  52. package/dist/assets/{ScrollList-CLSW3Dbs.js → ScrollList-CHr2ER0d.js} +1 -1
  53. package/dist/assets/{Status-CCKc1DDl.js → Status-BtwLPzrZ.js} +1 -1
  54. package/dist/assets/{Subscribe-CIaSSZ8X.js → Subscribe-DNcY8cWa.js} +1 -1
  55. package/dist/assets/{TransportWebHID-BQ0-asjx.js → TransportWebHID-BiNkPg4j.js} +1 -1
  56. package/dist/assets/{VideoPlayer-e--8Rl5J.js → VideoPlayer-BJPVVH4v.js} +1 -1
  57. package/dist/assets/{_Uint8Array-BtL2weNZ.js → _Uint8Array-BWy8cKCo.js} +1 -1
  58. package/dist/assets/{_baseClone-CLa2JSau.js → _baseClone-CVDR-yNh.js} +1 -1
  59. package/dist/assets/{_baseIteratee-D4xvLM3s.js → _baseIteratee-GCheQ423.js} +1 -1
  60. package/dist/assets/{_initCloneObject-toOyHWRX.js → _initCloneObject-BnGf6y2Q.js} +1 -1
  61. package/dist/assets/{add-Cdy5BqQn.js → add-CkjK2xW1.js} +1 -1
  62. package/dist/assets/{all-wallets-DvcE11VI.js → all-wallets-CdL_YtIS.js} +1 -1
  63. package/dist/assets/{app-store-0_Pow1kc.js → app-store-Bt1dpC73.js} +1 -1
  64. package/dist/assets/{apple-BUjWzLQK.js → apple-CEeGRsLR.js} +1 -1
  65. package/dist/assets/{arrow-bottom-CD1iQIYK.js → arrow-bottom-CY7QPC3v.js} +1 -1
  66. package/dist/assets/{arrow-bottom-circle-CmTKNmVz.js → arrow-bottom-circle-DUacLrTK.js} +1 -1
  67. package/dist/assets/{arrow-left-CQL6Uhms.js → arrow-left-DdkU_cJC.js} +1 -1
  68. package/dist/assets/{arrow-right-Cjg65YpT.js → arrow-right-BApVZAmW.js} +1 -1
  69. package/dist/assets/{arrow-top-PcWlVXih.js → arrow-top-6DcF8ipC.js} +1 -1
  70. package/dist/assets/{avatar-BA-f4AKX.js → avatar-C0m3kdBO.js} +1 -1
  71. package/dist/assets/{bank-mnjwVKQN.js → bank-FZTS0Bvm.js} +1 -1
  72. package/dist/assets/{basic-D5C9DEO2.js → basic-z3EiNtlJ.js} +1 -1
  73. package/dist/assets/{browser-DEyKUR6X.js → browser-D-00yn8G.js} +1 -1
  74. package/dist/assets/byokCredential-Cdy8REIp.js +1 -0
  75. package/dist/assets/{card-ZntnNq7S.js → card-D_wHBdr4.js} +1 -1
  76. package/dist/assets/{castArray-DCHtvbqo.js → castArray-BX2YHThj.js} +1 -1
  77. package/dist/assets/chat-D11jX4Iv.js +2 -0
  78. package/dist/assets/{checkmark-vqUUVRDF.js → checkmark-BEf3bMy_.js} +1 -1
  79. package/dist/assets/{checkmark-bold-65uGszaN.js → checkmark-bold-Bw9dOPyC.js} +1 -1
  80. package/dist/assets/{chevron-bottom-CQZTYcvm.js → chevron-bottom-GHiW7kBq.js} +1 -1
  81. package/dist/assets/{chevron-left-CKW1BARx.js → chevron-left-CNEj2dO4.js} +1 -1
  82. package/dist/assets/{chevron-right-CJa41M5T.js → chevron-right-sgqFx8lL.js} +1 -1
  83. package/dist/assets/{chevron-top-Bwcsi6Fc.js → chevron-top-DlAuFkpk.js} +1 -1
  84. package/dist/assets/{chrome-store-BE25Pa9x.js → chrome-store-ClGqsVeO.js} +1 -1
  85. package/dist/assets/{clock-xj7EdKic.js → clock-Dn87YZjp.js} +1 -1
  86. package/dist/assets/{close-CT7bFxJI.js → close-BwRH304n.js} +1 -1
  87. package/dist/assets/{coinPlaceholder-5CTzP4NT.js → coinPlaceholder-D3MTdGQ0.js} +1 -1
  88. package/dist/assets/{common-yRaSE63I.js → common-Dd5FTt3o.js} +1 -1
  89. package/dist/assets/{common-B14ULdeG.js → common-QyUpPC75.js} +1 -1
  90. package/dist/assets/{compass-Dv-0B9GR.js → compass-C-E2T0zy.js} +1 -1
  91. package/dist/assets/{copy-BLWdmT9m.js → copy-BNJGAvMa.js} +1 -1
  92. package/dist/assets/{cursor-DAJSj7A9.js → cursor--i4Xa0OQ.js} +1 -1
  93. package/dist/assets/{cursor-transparent-CY6Udyqb.js → cursor-transparent-WOU8mk8F.js} +1 -1
  94. package/dist/assets/{debounce-BSdgAkOS.js → debounce-rFO21RGd.js} +1 -1
  95. package/dist/assets/{desktop-DD9E3u_A.js → desktop-CdiQ5DFl.js} +1 -1
  96. package/dist/assets/{disconnect-B1ntDtWb.js → disconnect-BBTXz5Xp.js} +1 -1
  97. package/dist/assets/{discord-Cd-PmPkY.js → discord-BavN0D2g.js} +1 -1
  98. package/dist/assets/{distribution-mjUnnC-h.js → distribution-gC6pfUsz.js} +1 -1
  99. package/dist/assets/{dropdown-CYDyXxEu.js → dropdown-D7fDLjhX.js} +1 -1
  100. package/dist/assets/{etherscan-gtDZdE0i.js → etherscan-Bw-ZKmx-.js} +1 -1
  101. package/dist/assets/{exclamation-triangle-CpVgpz55.js → exclamation-triangle-DOt3gbax.js} +1 -1
  102. package/dist/assets/{extension-9BvXh8bE.js → extension-DAiziIeO.js} +1 -1
  103. package/dist/assets/{external-link-DILxfqqN.js → external-link-Cv8eFrXr.js} +1 -1
  104. package/dist/assets/{facebook-BrZqpFIw.js → facebook-CzJaALeT.js} +1 -1
  105. package/dist/assets/{farcaster-oyChKJgy.js → farcaster-DlHpFJ18.js} +1 -1
  106. package/dist/assets/{filters-BDv3O6Xe.js → filters-BWg9cLQ3.js} +1 -1
  107. package/dist/assets/{flux-DqA6rzqI.js → flux-BP0RP-7R.js} +1 -1
  108. package/dist/assets/{github-5Xk5UWFn.js → github-BlSjhO5R.js} +1 -1
  109. package/dist/assets/{google-B7y7CLXd.js → google-wrIehkN1.js} +1 -1
  110. package/dist/assets/{hailuo-zvLClPNR.js → hailuo-CpEa1UDZ.js} +1 -1
  111. package/dist/assets/{headshots-DtMQ-fML.js → headshots-C_z_6iJl.js} +1 -1
  112. package/dist/assets/{help-circle-C4grA0b3.js → help-circle-CgG5yAaM.js} +1 -1
  113. package/dist/assets/{id-BqGIhZxE.js → id-D2oqHw8z.js} +1 -1
  114. package/dist/assets/{image-D_kqC-k3.js → image-D4yLPdQZ.js} +1 -1
  115. package/dist/assets/{index-C0dHnShz.js → index-26h1mgt-.js} +1 -1
  116. package/dist/assets/index-38G9IKZp.js +1 -0
  117. package/dist/assets/{index-gZYfPUqH.js → index-3euot5lf.js} +1 -1
  118. package/dist/assets/index-B--xRYrq.js +1 -0
  119. package/dist/assets/{index-4zhYnizi.js → index-B2UzvqRs.js} +1 -1
  120. package/dist/assets/index-B2l9Ai7a.js +1 -0
  121. package/dist/assets/{index-C8gv9XpT.js → index-B5aLH4ZV.js} +1 -1
  122. package/dist/assets/{index-COinJ3wV.js → index-BCtLhxeC.js} +1 -1
  123. package/dist/assets/{index-CBjdw82V.js → index-BEYNW2EK.js} +1 -1
  124. package/dist/assets/{index-DZxK-Gau.js → index-BEvg2pRE.js} +1 -1
  125. package/dist/assets/{index-CvU5FK4u.js → index-BHTuBZXJ.js} +1 -1
  126. package/dist/assets/{index-CRyZ32qo.js → index-BRydlsSG.js} +1 -1
  127. package/dist/assets/{index-e3HA0biF.js → index-BVMM7e5x.js} +1 -1
  128. package/dist/assets/{index-3079y3xc.js → index-BXMkJF7H.js} +1 -1
  129. package/dist/assets/{index-C719vQ0b.js → index-B_xoWE5M.js} +1 -1
  130. package/dist/assets/{index-DPvEmYP7.js → index-BdrHjNrn.js} +2 -2
  131. package/dist/assets/{index-B2obAGFg.js → index-BlG1KEGq.js} +1 -1
  132. package/dist/assets/{index-sUPnpVwg.js → index-Bw6diQ6i.js} +2 -2
  133. package/dist/assets/{index-oC6bXubz.js → index-BwN6IC9f.js} +1 -1
  134. package/dist/assets/{index-BMqHAFe8.js → index-ByyI6VwW.js} +1 -1
  135. package/dist/assets/index-C1Nafj7o.js +1 -0
  136. package/dist/assets/{index-h55T8DVq.js → index-CENBZ_Mi.js} +1 -1
  137. package/dist/assets/index-CJJgickM.js +1 -0
  138. package/dist/assets/{index-B_sHRuvM.js → index-CJtfHm7C.js} +1 -1
  139. package/dist/assets/{index-J0DUz7lI.js → index-CNQqVjGk.js} +1 -1
  140. package/dist/assets/{index-BtQumjje.js → index-CNnZhdJr.js} +1 -1
  141. package/dist/assets/{index-Bc1uL1lh.js → index-CRPCTgYK.js} +1 -1
  142. package/dist/assets/{index-DzeWdEL6.js → index-CUOB8-6a.js} +6 -6
  143. package/dist/assets/index-CW-yt64R.js +1 -0
  144. package/dist/assets/{index-BqfmO_GZ.js → index-CWoJcxvr.js} +1 -1
  145. package/dist/assets/{index-Dz07L-di.js → index-CbXIzWSz.js} +1 -1
  146. package/dist/assets/{index-CWijHLd4.js → index-Cu8jEzMt.js} +1 -1
  147. package/dist/assets/{index-GYQMtYT6.js → index-CwJsW1oV.js} +1 -1
  148. package/dist/assets/{index-D4R39Q4T.js → index-D4Yc4tRk.js} +1 -1
  149. package/dist/assets/{index-Cn4_bu9L.js → index-D4vu-0Vi.js} +3 -3
  150. package/dist/assets/{index-BJKA6-Z-.js → index-D8V5LY1E.js} +1 -1
  151. package/dist/assets/{index-CGzKdsQS.js → index-DB1wHeLA.js} +1 -1
  152. package/dist/assets/{index-C_MyWrFR.js → index-DBcVZLrq.js} +1 -1
  153. package/dist/assets/{index-BlBQVbe7.js → index-DKT9lpv-.js} +1 -1
  154. package/dist/assets/{index-DAILxU5_.js → index-DPl_Q5wR.js} +1 -1
  155. package/dist/assets/{index-C36XUd3I.js → index-DTQtEf7n.js} +1 -1
  156. package/dist/assets/{index-CAois4ub.js → index-DUswWNzD.js} +1 -1
  157. package/dist/assets/{index-KJyVGKox.js → index-DWTCukaE.js} +1 -1
  158. package/dist/assets/index-DdfzO8ET.js +1 -0
  159. package/dist/assets/{index-BKQt60Ja.js → index-DefEPu5Z.js} +1 -1
  160. package/dist/assets/{index-B81rhKOl.js → index-DrvGU9i_.js} +1 -1
  161. package/dist/assets/index-Ds-UbI_q.js +1 -0
  162. package/dist/assets/{index-HsCXET59.js → index-DsKeM0Xq.js} +1 -1
  163. package/dist/assets/{index-D9jYVi3R.js → index-FF4WAJT-.js} +1 -1
  164. package/dist/assets/{index-CnxV03kA.js → index-FTscF_cz.js} +14 -14
  165. package/dist/assets/{index-CGF8tuXZ.js → index-FhK8yklc.js} +1 -1
  166. package/dist/assets/{index-BDsGzS8q.js → index-O7t1BsNB.js} +1 -1
  167. package/dist/assets/{index-DhIU2Ld8.js → index-RiVU3gTe.js} +1 -1
  168. package/dist/assets/{index-BXYIQVCp.js → index-W9z3tmv_.js} +1 -1
  169. package/dist/assets/{index-DjtI4ek9.js → index-a10HPOrI.js} +1 -1
  170. package/dist/assets/index-aO6Fi57H.js +1 -0
  171. package/dist/assets/{index-Y0NlT3jW.js → index-brUXT6Ic.js} +1 -1
  172. package/dist/assets/{index-CI4HOy64.js → index-d1Dl3INe.js} +1 -1
  173. package/dist/assets/index-jii325vi.js +1 -0
  174. package/dist/assets/{index-DCAfo8xw.js → index-o4zhAWG6.js} +1 -1
  175. package/dist/assets/{index-BqVw-i1m.js → index-oWuBTe9g.js} +1 -1
  176. package/dist/assets/{index.browser.esm-B9lcScWN.js → index.browser.esm-BaPNoGjI.js} +1 -1
  177. package/dist/assets/{index.es-CR5c3J-H.js → index.es-B1lW1a9B.js} +1 -1
  178. package/dist/assets/{info-BSOtOA-S.js → info-D2mbPMyX.js} +1 -1
  179. package/dist/assets/{info-circle-L_JdUOzd.js → info-circle-CQtpHFeL.js} +1 -1
  180. package/dist/assets/{isEqual-BUu7kkim.js → isEqual-BiGspMHU.js} +1 -1
  181. package/dist/assets/{isPlainObject-C951NK-Z.js → isPlainObject-1A9ncyWS.js} +1 -1
  182. package/dist/assets/{kling-oH6EbWd-.js → kling-Bga-2-Yk.js} +1 -1
  183. package/dist/assets/{lightbulb-CjYEE-pX.js → lightbulb-SMN0MP8P.js} +1 -1
  184. package/dist/assets/{luma-La5liYsl.js → luma-CHNWeOk6.js} +1 -1
  185. package/dist/assets/{mail-BNdDOdlU.js → mail-D-ZfsNgq.js} +1 -1
  186. package/dist/assets/{midjourney-6_dcZ0uf.js → midjourney-BdpbGQo1.js} +1 -1
  187. package/dist/assets/{mobile-PeQmDWlT.js → mobile-DEieegSW.js} +1 -1
  188. package/dist/assets/{more-DceYr4Lz.js → more-BMIzMnqp.js} +1 -1
  189. package/dist/assets/{nanobanana-BlWLw-0i.js → nanobanana-JVOGegpV.js} +1 -1
  190. package/dist/assets/{network-placeholder-8tg15sZ6.js → network-placeholder-ppqpKoOQ.js} +1 -1
  191. package/dist/assets/{nftPlaceholder-Oe4wEZQH.js → nftPlaceholder-55iywwqB.js} +1 -1
  192. package/dist/assets/{off-CKC5I7Sy.js → off-CpesiVFf.js} +1 -1
  193. package/dist/assets/{openaiimage-D2v8r2k0.js → openaiimage-CEkHQ02c.js} +1 -1
  194. package/dist/assets/{order-Br2dvRZB.js → order-BFBb3_Nm.js} +1 -1
  195. package/dist/assets/{pika-Cp3tYlXA.js → pika-DF9AQtCB.js} +1 -1
  196. package/dist/assets/{pixverse-8cawnrYd.js → pixverse-NFnml3Ad.js} +1 -1
  197. package/dist/assets/{pixverse-eUATiZ_u.js → pixverse-g-p4CgDy.js} +1 -1
  198. package/dist/assets/{play-store-Dh4-9TDC.js → play-store-EtWgj9tY.js} +1 -1
  199. package/dist/assets/{plus-DuKsmxfn.js → plus-Bz9Zrmf7.js} +1 -1
  200. package/dist/assets/{price-WuGL9UMF.js → price-D5TNZtWD.js} +1 -1
  201. package/dist/assets/{producer-DbMvJ5IJ.js → producer-BTXuQmdX.js} +1 -1
  202. package/dist/assets/{qr-code-xikcy3vY.js → qr-code-BteNX7f7.js} +1 -1
  203. package/dist/assets/{qrart-3p-uK2yX.js → qrart-DBM0vNab.js} +1 -1
  204. package/dist/assets/{recycle-horizontal-BTeDybYv.js → recycle-horizontal-DoCeu-wB.js} +1 -1
  205. package/dist/assets/{refresh-wEube-8p.js → refresh-B27QPFje.js} +1 -1
  206. package/dist/assets/{reown-logo-Duvq4cIZ.js → reown-logo-DOxrtg5r.js} +1 -1
  207. package/dist/assets/{search-4dSIOsol.js → search-Bbvjy0sE.js} +1 -1
  208. package/dist/assets/{secp256k1-DO_c0HE4.js → secp256k1-DfbSkrJA.js} +1 -1
  209. package/dist/assets/{secp256k1-D3b5sS3Y.js → secp256k1-cwsWPnax.js} +1 -1
  210. package/dist/assets/{seedance-BHv8zgWE.js → seedance-DHGvvKi5.js} +1 -1
  211. package/dist/assets/{seedream-BBuvt17Y.js → seedream-BGv1ajnv.js} +1 -1
  212. package/dist/assets/{send-C38hffi0.js → send-CKT6bzdT.js} +1 -1
  213. package/dist/assets/{service-D2vZhmYV.js → service-C5LrDt_v.js} +1 -1
  214. package/dist/assets/{solana-wallets-Bb5-bt8W.js → solana-wallets-D3sNEfV2.js} +2 -2
  215. package/dist/assets/{solana-wallets-vue-sz_RAUZf.js → solana-wallets-vue-CJOnb2mO.js} +1 -1
  216. package/dist/assets/{solanaEmbed.esm-B2XG1XS-.js → solanaEmbed.esm-AUvjIviJ.js} +1 -1
  217. package/dist/assets/{sora-CALwkS60.js → sora-B2wrmmta.js} +1 -1
  218. package/dist/assets/{string_decoder-BdyrBKKN.js → string_decoder-pE91rp0R.js} +1 -1
  219. package/dist/assets/{suno-CTS84rTs.js → suno-D94YFwAz.js} +1 -1
  220. package/dist/assets/{swapHorizontal-CIlvi2s1.js → swapHorizontal-7WpTJnsP.js} +1 -1
  221. package/dist/assets/{swapHorizontalBold-pb7Mt9U9.js → swapHorizontalBold-BCnSLf6o.js} +1 -1
  222. package/dist/assets/{swapHorizontalMedium-DwW_bADA.js → swapHorizontalMedium-mWC-N_Ro.js} +1 -1
  223. package/dist/assets/{swapHorizontalRoundedBold-BH0c6-X7.js → swapHorizontalRoundedBold-Bu0IBfBl.js} +1 -1
  224. package/dist/assets/{swapVertical-BmvQbdlw.js → swapVertical-zPCGtEyW.js} +1 -1
  225. package/dist/assets/{telegram-zNhhvV-T.js → telegram-CqVol6C7.js} +1 -1
  226. package/dist/assets/{three-dots-C2CRUM09.js → three-dots-BvwfJBxD.js} +1 -1
  227. package/dist/assets/{twitch-C4zzdLky.js → twitch-W0B0uQ2_.js} +1 -1
  228. package/dist/assets/{twitterIcon-B92_7L89.js → twitterIcon-Dy3K7R98.js} +1 -1
  229. package/dist/assets/{typescript-D-y7TKkl.js → typescript-CUMR9uNq.js} +1 -1
  230. package/dist/assets/{use-form-item-n1D0HOVh.js → use-form-item-DDWqgx7q.js} +1 -1
  231. package/dist/assets/validator-pb75_c-A.js +1 -0
  232. package/dist/assets/{veo-NH_MUVor.js → veo-Dg8Zhpd-.js} +1 -1
  233. package/dist/assets/{veo-CvNN8wNJ.js → veo-ibQ-pqXQ.js} +1 -1
  234. package/dist/assets/{verify-filled-DWfvqtTf.js → verify-filled-CKhjqWtR.js} +1 -1
  235. package/dist/assets/{verify-ZKFLiBPb.js → verify-qcg7LJmo.js} +1 -1
  236. package/dist/assets/{w3m-modal-z_Zw8vbr.js → w3m-modal-BYAeKj4C.js} +1 -1
  237. package/dist/assets/{wallet-placeholder-CxBgqhLt.js → wallet-placeholder-DdZaIWvi.js} +1 -1
  238. package/dist/assets/{wallet-CV4sqa98.js → wallet-q_V1cxSj.js} +1 -1
  239. package/dist/assets/{walletconnect-f0Q1J2xH.js → walletconnect-DqDsf_VI.js} +1 -1
  240. package/dist/assets/{wan-DnauGLkm.js → wan-BSsn6vES.js} +1 -1
  241. package/dist/assets/{warning-circle-Bo6YPJN9.js → warning-circle-olX97x29.js} +1 -1
  242. package/dist/assets/{web-Xw8Vpm8m.js → web-CpRQ4ifd.js} +1 -1
  243. package/dist/assets/{web-DHymevVm.js → web-Csr5ExDC.js} +1 -1
  244. package/dist/assets/{x-BdAb1Kuh.js → x-DfcqJEz9.js} +1 -1
  245. package/dist/index.html +1 -1
  246. package/package.json +1 -1
  247. package/dist/assets/Console-BX4tut8T.js +0 -1
  248. package/dist/assets/EditArray-qckoLhGU.js +0 -1
  249. package/dist/assets/IconPark.vue_vue_type_script_setup_true_lang-D5nebBc1.js +0 -1
  250. package/dist/assets/Index-621jgqyo.js +0 -1
  251. package/dist/assets/Index-BRHvzLcH.js +0 -1
  252. package/dist/assets/Index-BXgQL3oy.js +0 -1
  253. package/dist/assets/Index-CpxDt76g.js +0 -1
  254. package/dist/assets/Index-D1zi3VjW.css +0 -1
  255. package/dist/assets/Index-KYDwuUCb.js +0 -1
  256. package/dist/assets/Invitees-CfZKpPdS.js +0 -1
  257. package/dist/assets/List-Cw1eUK3j.js +0 -1
  258. package/dist/assets/Main-ZnfTm2_c.js +0 -1
  259. package/dist/assets/Navigator-1EahaRlS.css +0 -1
  260. package/dist/assets/Navigator-DEO-xgNM.js +0 -1
  261. package/dist/assets/Pagination-BQtrBLcO.js +0 -1
  262. package/dist/assets/byokCredential-umfRCH1d.js +0 -1
  263. package/dist/assets/chat-DdiicJjo.js +0 -2
  264. package/dist/assets/index-BGWjIWtx.js +0 -1
  265. package/dist/assets/index-Bd3Ciuoz.js +0 -1
  266. package/dist/assets/index-CFMP3iYS.js +0 -1
  267. package/dist/assets/index-CahX5AtG.js +0 -1
  268. package/dist/assets/index-CtIMFI1x.js +0 -1
  269. package/dist/assets/index-DAIZ68Ng.js +0 -1
  270. package/dist/assets/index-DOwlxqQ4.js +0 -1
  271. package/dist/assets/index-DRNT-3tY.js +0 -1
  272. package/dist/assets/index-Dnv-ARoh.js +0 -1
  273. package/dist/assets/index-aX-s__p_.js +0 -1
  274. package/dist/assets/validator-kdYNLPlp.js +0 -1
@@ -1,4 +1,4 @@
1
- import{K as Te,H as Fe,I as de,g as Ce,y as ze,O as De,z as qe,Q as st,f as xe,d as ce,T as ot,u as ft,bB as lt,S as Pe,bC as fe,a_ as ut,A as dt}from"./index-CnxV03kA.js";import{g as te,S as Se,c as E,b as L,d as H,w as re,p as Ue,r as pe,a2 as Je,q as ve,H as Ke,z as k,Q as J,u as x,m as Ge,i as ne,o as Ze,a6 as He,ah as ct,C as ie,O as pt,n as Qe,X as vt,y as le,x as mt,V as ht,R as Ae,I as gt,F as je,J as Re,E as Ve,aj as yt}from"./vendor-vue-DU0w5ewx.js";import{c as me}from"./castArray-DCHtvbqo.js";import{a as bt}from"./typescript-D-y7TKkl.js";import{b as wt}from"./_baseClone-CLa2JSau.js";var Ft=4;function Me(i){return wt(i,Ft)}const qt=Fe({size:{type:String,values:Ce},disabled:Boolean}),xt=Fe({...qt,model:Object,rules:{type:de(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean],default:!0}}),Ot={validate:(i,e,t)=>(te(i)||Se(i))&&Te(e)&&Se(t)};function Et(){const i=L([]),e=E(()=>{if(!i.value.length)return"0";const a=Math.max(...i.value);return a?`${a}px`:""});function t(a){const s=i.value.indexOf(a);return s===-1&&e.value,s}function r(a,s){if(a&&s){const o=t(s);i.value.splice(o,1,a)}else a&&i.value.push(a)}function n(a){const s=t(a);s>-1&&i.value.splice(s,1)}return{autoLabelWidth:e,registerLabelWidth:r,deregisterLabelWidth:n}}const Y=(i,e)=>{const t=me(e).map(r=>te(r)?r.join("."):r);return t.length>0?i.filter(r=>r.propString&&t.includes(r.propString)):i},_t="ElForm",Pt=H({name:_t}),St=H({...Pt,props:xt,emits:Ot,setup(i,{expose:e,emit:t}){const r=i,n=L(),a=pe([]),s=De(),o=qe("form"),u=E(()=>{const{labelPosition:l,inline:m}=r;return[o.b(),o.m(s.value||"default"),{[o.m(`label-${l}`)]:l,[o.m("inline")]:m}]}),w=l=>Y(a,[l])[0],p=l=>{a.push(l)},g=l=>{l.prop&&a.splice(a.indexOf(l),1)},F=(l=[])=>{r.model&&Y(a,l).forEach(m=>m.resetField())},O=(l=[])=>{Y(a,l).forEach(m=>m.clearValidate())},S=E(()=>!!r.model),c=l=>{if(a.length===0)return[];const m=Y(a,l);return m.length?m:[]},y=async l=>j(void 0,l),f=async(l=[])=>{if(!S.value)return!1;const m=c(l);if(m.length===0)return!0;let b={};for(const R of m)try{await R.validate(""),R.validateState==="error"&&R.resetField()}catch(_){b={...b,..._}}return Object.keys(b).length===0?!0:Promise.reject(b)},j=async(l=[],m)=>{let b=!1;const R=!Ge(m);try{return b=await f(l),b===!0&&await m?.(b),b}catch(_){if(_ instanceof Error)throw _;const I=_;if(r.scrollToError&&n.value){const B=n.value.querySelector(`.${o.b()}-item.is-error`);B?.scrollIntoView(r.scrollIntoViewOptions)}return!b&&await m?.(!1,I),R&&Promise.reject(I)}},v=l=>{var m;const b=w(l);b&&((m=b.$el)==null||m.scrollIntoView(r.scrollIntoViewOptions))};return re(()=>r.rules,()=>{r.validateOnRuleChange&&y().catch(l=>st())},{deep:!0,flush:"post"}),Ue(xe,pe({...Je(r),emit:t,resetFields:F,clearValidate:O,validateField:j,getField:w,addField:p,removeField:g,...Et()})),e({validate:y,validateField:j,resetFields:F,clearValidate:O,scrollToField:v,getField:w,fields:a}),(l,m)=>(ve(),Ke("form",{ref_key:"formRef",ref:n,class:J(x(u))},[k(l.$slots,"default")],2))}});var At=ze(St,[["__file","form.vue"]]);function T(){return T=Object.assign?Object.assign.bind():function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},T.apply(this,arguments)}function jt(i,e){i.prototype=Object.create(e.prototype),i.prototype.constructor=i,Z(i,e)}function he(i){return he=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},he(i)}function Z(i,e){return Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Z(i,e)}function Rt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ee(i,e,t){return Rt()?ee=Reflect.construct.bind():ee=function(n,a,s){var o=[null];o.push.apply(o,a);var u=Function.bind.apply(n,o),w=new u;return s&&Z(w,s.prototype),w},ee.apply(null,arguments)}function Vt(i){return Function.toString.call(i).indexOf("[native code]")!==-1}function ge(i){var e=typeof Map=="function"?new Map:void 0;return ge=function(r){if(r===null||!Vt(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,n)}function n(){return ee(r,arguments,he(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Z(n,r)},ge(i)}var Mt=/%[sdj%]/g,Nt=function(){};function ye(i){if(!i||!i.length)return null;var e={};return i.forEach(function(t){var r=t.field;e[r]=e[r]||[],e[r].push(t)}),e}function N(i){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];var n=0,a=t.length;if(typeof i=="function")return i.apply(null,t);if(typeof i=="string"){var s=i.replace(Mt,function(o){if(o==="%%")return"%";if(n>=a)return o;switch(o){case"%s":return String(t[n++]);case"%d":return Number(t[n++]);case"%j":try{return JSON.stringify(t[n++])}catch{return"[Circular]"}break;default:return o}});return s}return i}function It(i){return i==="string"||i==="url"||i==="hex"||i==="email"||i==="date"||i==="pattern"}function P(i,e){return!!(i==null||e==="array"&&Array.isArray(i)&&!i.length||It(e)&&typeof i=="string"&&!i)}function Wt(i,e,t){var r=[],n=0,a=i.length;function s(o){r.push.apply(r,o||[]),n++,n===a&&t(r)}i.forEach(function(o){e(o,s)})}function Ne(i,e,t){var r=0,n=i.length;function a(s){if(s&&s.length){t(s);return}var o=r;r=r+1,o<n?e(i[o],a):t([])}a([])}function $t(i){var e=[];return Object.keys(i).forEach(function(t){e.push.apply(e,i[t]||[])}),e}var Ie=(function(i){jt(e,i);function e(t,r){var n;return n=i.call(this,"Async Validation Error")||this,n.errors=t,n.fields=r,n}return e})(ge(Error));function Lt(i,e,t,r,n){if(e.first){var a=new Promise(function(F,O){var S=function(f){return r(f),f.length?O(new Ie(f,ye(f))):F(n)},c=$t(i);Ne(c,t,S)});return a.catch(function(F){return F}),a}var s=e.firstFields===!0?Object.keys(i):e.firstFields||[],o=Object.keys(i),u=o.length,w=0,p=[],g=new Promise(function(F,O){var S=function(y){if(p.push.apply(p,y),w++,w===u)return r(p),p.length?O(new Ie(p,ye(p))):F(n)};o.length||(r(p),F(n)),o.forEach(function(c){var y=i[c];s.indexOf(c)!==-1?Ne(y,t,S):Wt(y,t,S)})});return g.catch(function(F){return F}),g}function Bt(i){return!!(i&&i.message!==void 0)}function Tt(i,e){for(var t=i,r=0;r<e.length;r++){if(t==null)return t;t=t[e[r]]}return t}function We(i,e){return function(t){var r;return i.fullFields?r=Tt(e,i.fullFields):r=e[t.field||i.fullField],Bt(t)?(t.field=t.field||i.fullField,t.fieldValue=r,t):{message:typeof t=="function"?t():t,fieldValue:r,field:t.field||i.fullField}}}function $e(i,e){if(e){for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];typeof r=="object"&&typeof i[t]=="object"?i[t]=T({},i[t],r):i[t]=r}}return i}var Ye=function(e,t,r,n,a,s){e.required&&(!r.hasOwnProperty(e.field)||P(t,s||e.type))&&n.push(N(a.messages.required,e.fullField))},Ct=function(e,t,r,n,a){(/^\s+$/.test(t)||t==="")&&n.push(N(a.messages.whitespace,e.fullField))},X,zt=(function(){if(X)return X;var i="[a-fA-F\\d:]",e=function(l){return l&&l.includeBoundaries?"(?:(?<=\\s|^)(?="+i+")|(?<="+i+")(?=\\s|$))":""},t="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",n=(`
1
+ import{L as Te,I as Fe,J as de,h as Ce,z as ze,P as De,A as qe,R as st,f as xe,d as ce,V as ot,u as ft,bB as lt,T as Pe,bC as fe,a$ as ut,D as dt}from"./index-FTscF_cz.js";import{g as te,S as Se,c as E,b as L,d as Y,w as re,p as Ue,r as pe,a2 as Je,q as ve,H as Ge,z as k,Q as J,u as x,m as Ke,i as ne,o as Ze,a6 as Ye,ah as ct,C as ie,O as pt,n as He,X as vt,y as le,x as mt,V as ht,R as Ae,I as gt,F as je,J as Re,E as Ve,aj as yt}from"./vendor-vue-DU0w5ewx.js";import{c as me}from"./castArray-BX2YHThj.js";import{a as bt}from"./typescript-CUMR9uNq.js";import{b as wt}from"./_baseClone-CVDR-yNh.js";var Ft=4;function Me(i){return wt(i,Ft)}const qt=Fe({size:{type:String,values:Ce},disabled:Boolean}),xt=Fe({...qt,model:Object,rules:{type:de(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean],default:!0}}),Ot={validate:(i,e,t)=>(te(i)||Se(i))&&Te(e)&&Se(t)};function Et(){const i=L([]),e=E(()=>{if(!i.value.length)return"0";const a=Math.max(...i.value);return a?`${a}px`:""});function t(a){const s=i.value.indexOf(a);return s===-1&&e.value,s}function r(a,s){if(a&&s){const o=t(s);i.value.splice(o,1,a)}else a&&i.value.push(a)}function n(a){const s=t(a);s>-1&&i.value.splice(s,1)}return{autoLabelWidth:e,registerLabelWidth:r,deregisterLabelWidth:n}}const Q=(i,e)=>{const t=me(e).map(r=>te(r)?r.join("."):r);return t.length>0?i.filter(r=>r.propString&&t.includes(r.propString)):i},_t="ElForm",Pt=Y({name:_t}),St=Y({...Pt,props:xt,emits:Ot,setup(i,{expose:e,emit:t}){const r=i,n=L(),a=pe([]),s=De(),o=qe("form"),u=E(()=>{const{labelPosition:l,inline:m}=r;return[o.b(),o.m(s.value||"default"),{[o.m(`label-${l}`)]:l,[o.m("inline")]:m}]}),w=l=>Q(a,[l])[0],p=l=>{a.push(l)},g=l=>{l.prop&&a.splice(a.indexOf(l),1)},F=(l=[])=>{r.model&&Q(a,l).forEach(m=>m.resetField())},O=(l=[])=>{Q(a,l).forEach(m=>m.clearValidate())},S=E(()=>!!r.model),c=l=>{if(a.length===0)return[];const m=Q(a,l);return m.length?m:[]},y=async l=>j(void 0,l),f=async(l=[])=>{if(!S.value)return!1;const m=c(l);if(m.length===0)return!0;let b={};for(const R of m)try{await R.validate(""),R.validateState==="error"&&R.resetField()}catch(_){b={...b,..._}}return Object.keys(b).length===0?!0:Promise.reject(b)},j=async(l=[],m)=>{let b=!1;const R=!Ke(m);try{return b=await f(l),b===!0&&await m?.(b),b}catch(_){if(_ instanceof Error)throw _;const I=_;if(r.scrollToError&&n.value){const B=n.value.querySelector(`.${o.b()}-item.is-error`);B?.scrollIntoView(r.scrollIntoViewOptions)}return!b&&await m?.(!1,I),R&&Promise.reject(I)}},v=l=>{var m;const b=w(l);b&&((m=b.$el)==null||m.scrollIntoView(r.scrollIntoViewOptions))};return re(()=>r.rules,()=>{r.validateOnRuleChange&&y().catch(l=>st())},{deep:!0,flush:"post"}),Ue(xe,pe({...Je(r),emit:t,resetFields:F,clearValidate:O,validateField:j,getField:w,addField:p,removeField:g,...Et()})),e({validate:y,validateField:j,resetFields:F,clearValidate:O,scrollToField:v,getField:w,fields:a}),(l,m)=>(ve(),Ge("form",{ref_key:"formRef",ref:n,class:J(x(u))},[k(l.$slots,"default")],2))}});var At=ze(St,[["__file","form.vue"]]);function T(){return T=Object.assign?Object.assign.bind():function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},T.apply(this,arguments)}function jt(i,e){i.prototype=Object.create(e.prototype),i.prototype.constructor=i,Z(i,e)}function he(i){return he=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},he(i)}function Z(i,e){return Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Z(i,e)}function Rt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ee(i,e,t){return Rt()?ee=Reflect.construct.bind():ee=function(n,a,s){var o=[null];o.push.apply(o,a);var u=Function.bind.apply(n,o),w=new u;return s&&Z(w,s.prototype),w},ee.apply(null,arguments)}function Vt(i){return Function.toString.call(i).indexOf("[native code]")!==-1}function ge(i){var e=typeof Map=="function"?new Map:void 0;return ge=function(r){if(r===null||!Vt(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,n)}function n(){return ee(r,arguments,he(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Z(n,r)},ge(i)}var Mt=/%[sdj%]/g,Nt=function(){};function ye(i){if(!i||!i.length)return null;var e={};return i.forEach(function(t){var r=t.field;e[r]=e[r]||[],e[r].push(t)}),e}function N(i){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];var n=0,a=t.length;if(typeof i=="function")return i.apply(null,t);if(typeof i=="string"){var s=i.replace(Mt,function(o){if(o==="%%")return"%";if(n>=a)return o;switch(o){case"%s":return String(t[n++]);case"%d":return Number(t[n++]);case"%j":try{return JSON.stringify(t[n++])}catch{return"[Circular]"}break;default:return o}});return s}return i}function It(i){return i==="string"||i==="url"||i==="hex"||i==="email"||i==="date"||i==="pattern"}function P(i,e){return!!(i==null||e==="array"&&Array.isArray(i)&&!i.length||It(e)&&typeof i=="string"&&!i)}function Wt(i,e,t){var r=[],n=0,a=i.length;function s(o){r.push.apply(r,o||[]),n++,n===a&&t(r)}i.forEach(function(o){e(o,s)})}function Ne(i,e,t){var r=0,n=i.length;function a(s){if(s&&s.length){t(s);return}var o=r;r=r+1,o<n?e(i[o],a):t([])}a([])}function $t(i){var e=[];return Object.keys(i).forEach(function(t){e.push.apply(e,i[t]||[])}),e}var Ie=(function(i){jt(e,i);function e(t,r){var n;return n=i.call(this,"Async Validation Error")||this,n.errors=t,n.fields=r,n}return e})(ge(Error));function Lt(i,e,t,r,n){if(e.first){var a=new Promise(function(F,O){var S=function(f){return r(f),f.length?O(new Ie(f,ye(f))):F(n)},c=$t(i);Ne(c,t,S)});return a.catch(function(F){return F}),a}var s=e.firstFields===!0?Object.keys(i):e.firstFields||[],o=Object.keys(i),u=o.length,w=0,p=[],g=new Promise(function(F,O){var S=function(y){if(p.push.apply(p,y),w++,w===u)return r(p),p.length?O(new Ie(p,ye(p))):F(n)};o.length||(r(p),F(n)),o.forEach(function(c){var y=i[c];s.indexOf(c)!==-1?Ne(y,t,S):Wt(y,t,S)})});return g.catch(function(F){return F}),g}function Bt(i){return!!(i&&i.message!==void 0)}function Tt(i,e){for(var t=i,r=0;r<e.length;r++){if(t==null)return t;t=t[e[r]]}return t}function We(i,e){return function(t){var r;return i.fullFields?r=Tt(e,i.fullFields):r=e[t.field||i.fullField],Bt(t)?(t.field=t.field||i.fullField,t.fieldValue=r,t):{message:typeof t=="function"?t():t,fieldValue:r,field:t.field||i.fullField}}}function $e(i,e){if(e){for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];typeof r=="object"&&typeof i[t]=="object"?i[t]=T({},i[t],r):i[t]=r}}return i}var Qe=function(e,t,r,n,a,s){e.required&&(!r.hasOwnProperty(e.field)||P(t,s||e.type))&&n.push(N(a.messages.required,e.fullField))},Ct=function(e,t,r,n,a){(/^\s+$/.test(t)||t==="")&&n.push(N(a.messages.whitespace,e.fullField))},X,zt=(function(){if(X)return X;var i="[a-fA-F\\d:]",e=function(l){return l&&l.includeBoundaries?"(?:(?<=\\s|^)(?="+i+")|(?<="+i+")(?=\\s|$))":""},t="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",n=(`
2
2
  (?:
3
3
  (?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
4
4
  (?:`+r+":){6}(?:"+t+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
@@ -9,4 +9,4 @@ import{K as Te,H as Fe,I as de,g as Ce,y as ze,O as De,z as qe,Q as st,f as xe,d
9
9
  (?:`+r+":){1}(?:(?::"+r+"){0,4}:"+t+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
10
10
  (?::(?:(?::`+r+"){0,5}:"+t+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
11
11
  )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
12
- `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+t+"$)|(?:^"+n+"$)"),s=new RegExp("^"+t+"$"),o=new RegExp("^"+n+"$"),u=function(l){return l&&l.exact?a:new RegExp("(?:"+e(l)+t+e(l)+")|(?:"+e(l)+n+e(l)+")","g")};u.v4=function(v){return v&&v.exact?s:new RegExp(""+e(v)+t+e(v),"g")},u.v6=function(v){return v&&v.exact?o:new RegExp(""+e(v)+n+e(v),"g")};var w="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",g=u.v4().source,F=u.v6().source,O="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",S="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",c="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",f='(?:[/?#][^\\s"]*)?',j="(?:"+w+"|www\\.)"+p+"(?:localhost|"+g+"|"+F+"|"+O+S+c+")"+y+f;return X=new RegExp("(?:^"+j+"$)","i"),X}),Le={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},K={integer:function(e){return K.number(e)&&parseInt(e,10)===e},float:function(e){return K.number(e)&&!K.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!K.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(Le.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(zt())},hex:function(e){return typeof e=="string"&&!!e.match(Le.hex)}},Dt=function(e,t,r,n,a){if(e.required&&t===void 0){Ye(e,t,r,n,a);return}var s=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=e.type;s.indexOf(o)>-1?K[o](t)||n.push(N(a.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&n.push(N(a.messages.types[o],e.fullField,e.type))},Ut=function(e,t,r,n,a){var s=typeof e.len=="number",o=typeof e.min=="number",u=typeof e.max=="number",w=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,p=t,g=null,F=typeof t=="number",O=typeof t=="string",S=Array.isArray(t);if(F?g="number":O?g="string":S&&(g="array"),!g)return!1;S&&(p=t.length),O&&(p=t.replace(w,"_").length),s?p!==e.len&&n.push(N(a.messages[g].len,e.fullField,e.len)):o&&!u&&p<e.min?n.push(N(a.messages[g].min,e.fullField,e.min)):u&&!o&&p>e.max?n.push(N(a.messages[g].max,e.fullField,e.max)):o&&u&&(p<e.min||p>e.max)&&n.push(N(a.messages[g].range,e.fullField,e.min,e.max))},U="enum",Jt=function(e,t,r,n,a){e[U]=Array.isArray(e[U])?e[U]:[],e[U].indexOf(t)===-1&&n.push(N(a.messages[U],e.fullField,e[U].join(", ")))},Kt=function(e,t,r,n,a){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||n.push(N(a.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var s=new RegExp(e.pattern);s.test(t)||n.push(N(a.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},h={required:Ye,whitespace:Ct,type:Dt,range:Ut,enum:Jt,pattern:Kt},Gt=function(e,t,r,n,a){var s=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t,"string")&&!e.required)return r();h.required(e,t,n,s,a,"string"),P(t,"string")||(h.type(e,t,n,s,a),h.range(e,t,n,s,a),h.pattern(e,t,n,s,a),e.whitespace===!0&&h.whitespace(e,t,n,s,a))}r(s)},Zt=function(e,t,r,n,a){var s=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return r();h.required(e,t,n,s,a),t!==void 0&&h.type(e,t,n,s,a)}r(s)},Ht=function(e,t,r,n,a){var s=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(t===""&&(t=void 0),P(t)&&!e.required)return r();h.required(e,t,n,s,a),t!==void 0&&(h.type(e,t,n,s,a),h.range(e,t,n,s,a))}r(s)},Qt=function(e,t,r,n,a){var s=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return r();h.required(e,t,n,s,a),t!==void 0&&h.type(e,t,n,s,a)}r(s)},Yt=function(e,t,r,n,a){var s=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return r();h.required(e,t,n,s,a),P(t)||h.type(e,t,n,s,a)}r(s)},Xt=function(e,t,r,n,a){var s=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return r();h.required(e,t,n,s,a),t!==void 0&&(h.type(e,t,n,s,a),h.range(e,t,n,s,a))}r(s)},kt=function(e,t,r,n,a){var s=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return r();h.required(e,t,n,s,a),t!==void 0&&(h.type(e,t,n,s,a),h.range(e,t,n,s,a))}r(s)},er=function(e,t,r,n,a){var s=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(t==null&&!e.required)return r();h.required(e,t,n,s,a,"array"),t!=null&&(h.type(e,t,n,s,a),h.range(e,t,n,s,a))}r(s)},tr=function(e,t,r,n,a){var s=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return r();h.required(e,t,n,s,a),t!==void 0&&h.type(e,t,n,s,a)}r(s)},rr="enum",nr=function(e,t,r,n,a){var s=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return r();h.required(e,t,n,s,a),t!==void 0&&h[rr](e,t,n,s,a)}r(s)},ir=function(e,t,r,n,a){var s=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t,"string")&&!e.required)return r();h.required(e,t,n,s,a),P(t,"string")||h.pattern(e,t,n,s,a)}r(s)},ar=function(e,t,r,n,a){var s=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t,"date")&&!e.required)return r();if(h.required(e,t,n,s,a),!P(t,"date")){var u;t instanceof Date?u=t:u=new Date(t),h.type(e,u,n,s,a),u&&h.range(e,u.getTime(),n,s,a)}}r(s)},sr=function(e,t,r,n,a){var s=[],o=Array.isArray(t)?"array":typeof t;h.required(e,t,n,s,a,o),r(s)},ue=function(e,t,r,n,a){var s=e.type,o=[],u=e.required||!e.required&&n.hasOwnProperty(e.field);if(u){if(P(t,s)&&!e.required)return r();h.required(e,t,n,o,a,s),P(t,s)||h.type(e,t,n,o,a)}r(o)},or=function(e,t,r,n,a){var s=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return r();h.required(e,t,n,s,a)}r(s)},G={string:Gt,method:Zt,number:Ht,boolean:Qt,regexp:Yt,integer:Xt,float:kt,array:er,object:tr,enum:nr,pattern:ir,date:ar,url:ue,hex:ue,email:ue,required:sr,any:or};function be(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var we=be(),Q=(function(){function i(t){this.rules=null,this._messages=we,this.define(t)}var e=i.prototype;return e.define=function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(a){var s=r[a];n.rules[a]=Array.isArray(s)?s:[s]})},e.messages=function(r){return r&&(this._messages=$e(be(),r)),this._messages},e.validate=function(r,n,a){var s=this;n===void 0&&(n={}),a===void 0&&(a=function(){});var o=r,u=n,w=a;if(typeof u=="function"&&(w=u,u={}),!this.rules||Object.keys(this.rules).length===0)return w&&w(null,o),Promise.resolve(o);function p(c){var y=[],f={};function j(l){if(Array.isArray(l)){var m;y=(m=y).concat.apply(m,l)}else y.push(l)}for(var v=0;v<c.length;v++)j(c[v]);y.length?(f=ye(y),w(y,f)):w(null,o)}if(u.messages){var g=this.messages();g===we&&(g=be()),$e(g,u.messages),u.messages=g}else u.messages=this.messages();var F={},O=u.keys||Object.keys(this.rules);O.forEach(function(c){var y=s.rules[c],f=o[c];y.forEach(function(j){var v=j;typeof v.transform=="function"&&(o===r&&(o=T({},o)),f=o[c]=v.transform(f)),typeof v=="function"?v={validator:v}:v=T({},v),v.validator=s.getValidationMethod(v),v.validator&&(v.field=c,v.fullField=v.fullField||c,v.type=s.getType(v),F[c]=F[c]||[],F[c].push({rule:v,value:f,source:o,field:c}))})});var S={};return Lt(F,u,function(c,y){var f=c.rule,j=(f.type==="object"||f.type==="array")&&(typeof f.fields=="object"||typeof f.defaultField=="object");j=j&&(f.required||!f.required&&c.value),f.field=c.field;function v(b,R){return T({},R,{fullField:f.fullField+"."+b,fullFields:f.fullFields?[].concat(f.fullFields,[b]):[b]})}function l(b){b===void 0&&(b=[]);var R=Array.isArray(b)?b:[b];!u.suppressWarning&&R.length&&i.warning("async-validator:",R),R.length&&f.message!==void 0&&(R=[].concat(f.message));var _=R.map(We(f,o));if(u.first&&_.length)return S[f.field]=1,y(_);if(!j)y(_);else{if(f.required&&!c.value)return f.message!==void 0?_=[].concat(f.message).map(We(f,o)):u.error&&(_=[u.error(f,N(u.messages.required,f.field))]),y(_);var I={};f.defaultField&&Object.keys(c.value).map(function(M){I[M]=f.defaultField}),I=T({},I,c.rule.fields);var B={};Object.keys(I).forEach(function(M){var W=I[M],ae=Array.isArray(W)?W:[W];B[M]=ae.map(v.bind(null,M))});var C=new i(B);C.messages(u.messages),c.rule.options&&(c.rule.options.messages=u.messages,c.rule.options.error=u.error),C.validate(c.value,c.rule.options||u,function(M){var W=[];_&&_.length&&W.push.apply(W,_),M&&M.length&&W.push.apply(W,M),y(W.length?W:null)})}}var m;if(f.asyncValidator)m=f.asyncValidator(f,c.value,l,c.source,u);else if(f.validator){try{m=f.validator(f,c.value,l,c.source,u)}catch(b){console.error?.(b),u.suppressValidatorError||setTimeout(function(){throw b},0),l(b.message)}m===!0?l():m===!1?l(typeof f.message=="function"?f.message(f.fullField||f.field):f.message||(f.fullField||f.field)+" fails"):m instanceof Array?l(m):m instanceof Error&&l(m.message)}m&&m.then&&m.then(function(){return l()},function(b){return l(b)})},function(c){p(c)},o)},e.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!G.hasOwnProperty(r.type))throw new Error(N("Unknown rule type %s",r.type));return r.type||"string"},e.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var n=Object.keys(r),a=n.indexOf("message");return a!==-1&&n.splice(a,1),n.length===1&&n[0]==="required"?G.required:G[this.getType(r)]||void 0},i})();Q.register=function(e,t){if(typeof t!="function")throw new Error("Cannot register a validator by type, validator is not a function");G[e]=t};Q.warning=Nt;Q.messages=we;Q.validators=G;const fr=["","error","validating","success"],lr=Fe({label:String,labelWidth:{type:[String,Number],default:""},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:de([String,Array])},required:{type:Boolean,default:void 0},rules:{type:de([Object,Array])},error:String,validateStatus:{type:String,values:fr},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:Ce}}),Be="ElLabelWrap";var ur=H({name:Be,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(i,{slots:e}){const t=ne(xe,void 0),r=ne(ce);r||ot(Be,"usage: <el-form-item><label-wrap /></el-form-item>");const n=qe("form"),a=L(),s=L(0),o=()=>{var p;if((p=a.value)!=null&&p.firstElementChild){const g=window.getComputedStyle(a.value.firstElementChild).width;return Math.ceil(Number.parseFloat(g))}else return 0},u=(p="update")=>{Qe(()=>{e.default&&i.isAutoWidth&&(p==="update"?s.value=o():p==="remove"&&t?.deregisterLabelWidth(s.value))})},w=()=>u("update");return Ze(()=>{w()}),He(()=>{u("remove")}),ct(()=>w()),re(s,(p,g)=>{i.updateAll&&t?.registerLabelWidth(p,g)}),bt(E(()=>{var p,g;return(g=(p=a.value)==null?void 0:p.firstElementChild)!=null?g:null}),w),()=>{var p,g;if(!e)return null;const{isAutoWidth:F}=i;if(F){const O=t?.autoLabelWidth,S=r?.hasLabel,c={};if(S&&O&&O!=="auto"){const y=Math.max(0,Number.parseInt(O,10)-s.value),j=(r.labelPosition||t.labelPosition)==="left"?"marginRight":"marginLeft";y&&(c[j]=`${y}px`)}return ie("div",{ref:a,class:[n.be("item","label-wrap")],style:c},[(p=e.default)==null?void 0:p.call(e)])}else return ie(pt,{ref:a},[(g=e.default)==null?void 0:g.call(e)])}}});const dr=H({name:"ElFormItem"}),cr=H({...dr,props:lr,setup(i,{expose:e}){const t=i,r=vt(),n=ne(xe,void 0),a=ne(ce,void 0),s=De(void 0,{formItem:!1}),o=qe("form-item"),u=ft().value,w=L([]),p=L(""),g=lt(p,100),F=L(""),O=L();let S,c=!1;const y=E(()=>t.labelPosition||n?.labelPosition),f=E(()=>{if(y.value==="top")return{};const d=Pe(t.labelWidth||n?.labelWidth||"");return d?{width:d}:{}}),j=E(()=>{if(y.value==="top"||n?.inline)return{};if(!t.label&&!t.labelWidth&&B)return{};const d=Pe(t.labelWidth||n?.labelWidth||"");return!t.label&&!r.label?{marginLeft:d}:{}}),v=E(()=>[o.b(),o.m(s.value),o.is("error",p.value==="error"),o.is("validating",p.value==="validating"),o.is("success",p.value==="success"),o.is("required",ke.value||t.required),o.is("no-asterisk",n?.hideRequiredAsterisk),n?.requireAsteriskPosition==="right"?"asterisk-right":"asterisk-left",{[o.m("feedback")]:n?.statusIcon,[o.m(`label-${y.value}`)]:y.value}]),l=E(()=>Te(t.inlineMessage)?t.inlineMessage:n?.inlineMessage||!1),m=E(()=>[o.e("error"),{[o.em("error","inline")]:l.value}]),b=E(()=>t.prop?te(t.prop)?t.prop.join("."):t.prop:""),R=E(()=>!!(t.label||r.label)),_=E(()=>{var d;return(d=t.for)!=null?d:w.value.length===1?w.value[0]:void 0}),I=E(()=>!_.value&&R.value),B=!!a,C=E(()=>{const d=n?.model;if(!(!d||!t.prop))return fe(d,t.prop).value}),M=E(()=>{const{required:d}=t,q=[];t.rules&&q.push(...me(t.rules));const V=n?.rules;if(V&&t.prop){const A=fe(V,t.prop).value;A&&q.push(...me(A))}if(d!==void 0){const A=q.map(($,D)=>[$,D]).filter(([$])=>Object.keys($).includes("required"));if(A.length>0)for(const[$,D]of A)$.required!==d&&(q[D]={...$,required:d});else q.push({required:d})}return q}),W=E(()=>M.value.length>0),ae=d=>M.value.filter(V=>!V.trigger||!d?!0:te(V.trigger)?V.trigger.includes(d):V.trigger===d).map(({trigger:V,...A})=>A),ke=E(()=>M.value.some(d=>d.required)),et=E(()=>{var d;return g.value==="error"&&t.showMessage&&((d=n?.showMessage)!=null?d:!0)}),Oe=E(()=>`${t.label||""}${n?.labelSuffix||""}`),z=d=>{p.value=d},tt=d=>{var q,V;const{errors:A,fields:$}=d;(!A||!$)&&console.error(d),z("error"),F.value=A?(V=(q=A?.[0])==null?void 0:q.message)!=null?V:`${t.prop} is required`:"",n?.emit("validate",t.prop,!1,F.value)},rt=()=>{z("success"),n?.emit("validate",t.prop,!0,"")},nt=async d=>{const q=b.value;return new Q({[q]:d}).validate({[q]:C.value},{firstFields:!0}).then(()=>(rt(),!0)).catch(A=>(tt(A),Promise.reject(A)))},Ee=async(d,q)=>{if(c||!t.prop)return!1;const V=Ge(q);if(!W.value)return q?.(!1),!1;const A=ae(d);return A.length===0?(q?.(!0),!0):(z("validating"),nt(A).then(()=>(q?.(!0),!0)).catch($=>{const{fields:D}=$;return q?.(!1,D),V?!1:Promise.reject(D)}))},se=()=>{z(""),F.value="",c=!1},_e=async()=>{const d=n?.model;if(!d||!t.prop)return;const q=fe(d,t.prop);c=!0,q.value=Me(S),await Qe(),se(),c=!1},it=d=>{w.value.includes(d)||w.value.push(d)},at=d=>{w.value=w.value.filter(q=>q!==d)};re(()=>t.error,d=>{F.value=d||"",z(d?"error":"")},{immediate:!0}),re(()=>t.validateStatus,d=>z(d||""));const oe=pe({...Je(t),$el:O,size:s,validateMessage:F,validateState:p,labelId:u,inputIds:w,isGroup:I,hasLabel:R,fieldValue:C,addInputId:it,removeInputId:at,resetField:_e,clearValidate:se,validate:Ee,propString:b});return Ue(ce,oe),Ze(()=>{t.prop&&(n?.addField(oe),S=Me(C.value))}),He(()=>{n?.removeField(oe)}),e({size:s,validateMessage:F,validateState:p,validate:Ee,clearValidate:se,resetField:_e}),(d,q)=>{var V;return ve(),Ke("div",{ref_key:"formItemRef",ref:O,class:J(x(v)),role:x(I)?"group":void 0,"aria-labelledby":x(I)?x(u):void 0},[ie(x(ur),{"is-auto-width":x(f).width==="auto","update-all":((V=x(n))==null?void 0:V.labelWidth)==="auto"},{default:le(()=>[x(R)?(ve(),mt(ht(x(_)?"label":"div"),{key:0,id:x(u),for:x(_),class:J(x(o).e("label")),style:Ae(x(f))},{default:le(()=>[k(d.$slots,"label",{label:x(Oe)},()=>[gt(je(x(Oe)),1)])]),_:3},8,["id","for","class","style"])):Re("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),Ve("div",{class:J(x(o).e("content")),style:Ae(x(j))},[k(d.$slots,"default"),ie(yt,{name:`${x(o).namespace.value}-zoom-in-top`},{default:le(()=>[x(et)?k(d.$slots,"error",{key:0,error:F.value},()=>[Ve("div",{class:J(x(m))},je(F.value),3)]):Re("v-if",!0)]),_:3},8,["name"])],6)],10,["role","aria-labelledby"])}}});var Xe=ze(cr,[["__file","form-item.vue"]]);const yr=dt(At,{FormItem:Xe}),br=ut(Xe);export{br as E,yr as a};
12
+ `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+t+"$)|(?:^"+n+"$)"),s=new RegExp("^"+t+"$"),o=new RegExp("^"+n+"$"),u=function(l){return l&&l.exact?a:new RegExp("(?:"+e(l)+t+e(l)+")|(?:"+e(l)+n+e(l)+")","g")};u.v4=function(v){return v&&v.exact?s:new RegExp(""+e(v)+t+e(v),"g")},u.v6=function(v){return v&&v.exact?o:new RegExp(""+e(v)+n+e(v),"g")};var w="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",g=u.v4().source,F=u.v6().source,O="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",S="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",c="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",f='(?:[/?#][^\\s"]*)?',j="(?:"+w+"|www\\.)"+p+"(?:localhost|"+g+"|"+F+"|"+O+S+c+")"+y+f;return X=new RegExp("(?:^"+j+"$)","i"),X}),Le={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},G={integer:function(e){return G.number(e)&&parseInt(e,10)===e},float:function(e){return G.number(e)&&!G.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!G.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(Le.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(zt())},hex:function(e){return typeof e=="string"&&!!e.match(Le.hex)}},Dt=function(e,t,r,n,a){if(e.required&&t===void 0){Qe(e,t,r,n,a);return}var s=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=e.type;s.indexOf(o)>-1?G[o](t)||n.push(N(a.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&n.push(N(a.messages.types[o],e.fullField,e.type))},Ut=function(e,t,r,n,a){var s=typeof e.len=="number",o=typeof e.min=="number",u=typeof e.max=="number",w=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,p=t,g=null,F=typeof t=="number",O=typeof t=="string",S=Array.isArray(t);if(F?g="number":O?g="string":S&&(g="array"),!g)return!1;S&&(p=t.length),O&&(p=t.replace(w,"_").length),s?p!==e.len&&n.push(N(a.messages[g].len,e.fullField,e.len)):o&&!u&&p<e.min?n.push(N(a.messages[g].min,e.fullField,e.min)):u&&!o&&p>e.max?n.push(N(a.messages[g].max,e.fullField,e.max)):o&&u&&(p<e.min||p>e.max)&&n.push(N(a.messages[g].range,e.fullField,e.min,e.max))},U="enum",Jt=function(e,t,r,n,a){e[U]=Array.isArray(e[U])?e[U]:[],e[U].indexOf(t)===-1&&n.push(N(a.messages[U],e.fullField,e[U].join(", ")))},Gt=function(e,t,r,n,a){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||n.push(N(a.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var s=new RegExp(e.pattern);s.test(t)||n.push(N(a.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},h={required:Qe,whitespace:Ct,type:Dt,range:Ut,enum:Jt,pattern:Gt},Kt=function(e,t,r,n,a){var s=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t,"string")&&!e.required)return r();h.required(e,t,n,s,a,"string"),P(t,"string")||(h.type(e,t,n,s,a),h.range(e,t,n,s,a),h.pattern(e,t,n,s,a),e.whitespace===!0&&h.whitespace(e,t,n,s,a))}r(s)},Zt=function(e,t,r,n,a){var s=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return r();h.required(e,t,n,s,a),t!==void 0&&h.type(e,t,n,s,a)}r(s)},Yt=function(e,t,r,n,a){var s=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(t===""&&(t=void 0),P(t)&&!e.required)return r();h.required(e,t,n,s,a),t!==void 0&&(h.type(e,t,n,s,a),h.range(e,t,n,s,a))}r(s)},Ht=function(e,t,r,n,a){var s=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return r();h.required(e,t,n,s,a),t!==void 0&&h.type(e,t,n,s,a)}r(s)},Qt=function(e,t,r,n,a){var s=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return r();h.required(e,t,n,s,a),P(t)||h.type(e,t,n,s,a)}r(s)},Xt=function(e,t,r,n,a){var s=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return r();h.required(e,t,n,s,a),t!==void 0&&(h.type(e,t,n,s,a),h.range(e,t,n,s,a))}r(s)},kt=function(e,t,r,n,a){var s=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return r();h.required(e,t,n,s,a),t!==void 0&&(h.type(e,t,n,s,a),h.range(e,t,n,s,a))}r(s)},er=function(e,t,r,n,a){var s=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(t==null&&!e.required)return r();h.required(e,t,n,s,a,"array"),t!=null&&(h.type(e,t,n,s,a),h.range(e,t,n,s,a))}r(s)},tr=function(e,t,r,n,a){var s=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return r();h.required(e,t,n,s,a),t!==void 0&&h.type(e,t,n,s,a)}r(s)},rr="enum",nr=function(e,t,r,n,a){var s=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return r();h.required(e,t,n,s,a),t!==void 0&&h[rr](e,t,n,s,a)}r(s)},ir=function(e,t,r,n,a){var s=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t,"string")&&!e.required)return r();h.required(e,t,n,s,a),P(t,"string")||h.pattern(e,t,n,s,a)}r(s)},ar=function(e,t,r,n,a){var s=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t,"date")&&!e.required)return r();if(h.required(e,t,n,s,a),!P(t,"date")){var u;t instanceof Date?u=t:u=new Date(t),h.type(e,u,n,s,a),u&&h.range(e,u.getTime(),n,s,a)}}r(s)},sr=function(e,t,r,n,a){var s=[],o=Array.isArray(t)?"array":typeof t;h.required(e,t,n,s,a,o),r(s)},ue=function(e,t,r,n,a){var s=e.type,o=[],u=e.required||!e.required&&n.hasOwnProperty(e.field);if(u){if(P(t,s)&&!e.required)return r();h.required(e,t,n,o,a,s),P(t,s)||h.type(e,t,n,o,a)}r(o)},or=function(e,t,r,n,a){var s=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return r();h.required(e,t,n,s,a)}r(s)},K={string:Kt,method:Zt,number:Yt,boolean:Ht,regexp:Qt,integer:Xt,float:kt,array:er,object:tr,enum:nr,pattern:ir,date:ar,url:ue,hex:ue,email:ue,required:sr,any:or};function be(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var we=be(),H=(function(){function i(t){this.rules=null,this._messages=we,this.define(t)}var e=i.prototype;return e.define=function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(a){var s=r[a];n.rules[a]=Array.isArray(s)?s:[s]})},e.messages=function(r){return r&&(this._messages=$e(be(),r)),this._messages},e.validate=function(r,n,a){var s=this;n===void 0&&(n={}),a===void 0&&(a=function(){});var o=r,u=n,w=a;if(typeof u=="function"&&(w=u,u={}),!this.rules||Object.keys(this.rules).length===0)return w&&w(null,o),Promise.resolve(o);function p(c){var y=[],f={};function j(l){if(Array.isArray(l)){var m;y=(m=y).concat.apply(m,l)}else y.push(l)}for(var v=0;v<c.length;v++)j(c[v]);y.length?(f=ye(y),w(y,f)):w(null,o)}if(u.messages){var g=this.messages();g===we&&(g=be()),$e(g,u.messages),u.messages=g}else u.messages=this.messages();var F={},O=u.keys||Object.keys(this.rules);O.forEach(function(c){var y=s.rules[c],f=o[c];y.forEach(function(j){var v=j;typeof v.transform=="function"&&(o===r&&(o=T({},o)),f=o[c]=v.transform(f)),typeof v=="function"?v={validator:v}:v=T({},v),v.validator=s.getValidationMethod(v),v.validator&&(v.field=c,v.fullField=v.fullField||c,v.type=s.getType(v),F[c]=F[c]||[],F[c].push({rule:v,value:f,source:o,field:c}))})});var S={};return Lt(F,u,function(c,y){var f=c.rule,j=(f.type==="object"||f.type==="array")&&(typeof f.fields=="object"||typeof f.defaultField=="object");j=j&&(f.required||!f.required&&c.value),f.field=c.field;function v(b,R){return T({},R,{fullField:f.fullField+"."+b,fullFields:f.fullFields?[].concat(f.fullFields,[b]):[b]})}function l(b){b===void 0&&(b=[]);var R=Array.isArray(b)?b:[b];!u.suppressWarning&&R.length&&i.warning("async-validator:",R),R.length&&f.message!==void 0&&(R=[].concat(f.message));var _=R.map(We(f,o));if(u.first&&_.length)return S[f.field]=1,y(_);if(!j)y(_);else{if(f.required&&!c.value)return f.message!==void 0?_=[].concat(f.message).map(We(f,o)):u.error&&(_=[u.error(f,N(u.messages.required,f.field))]),y(_);var I={};f.defaultField&&Object.keys(c.value).map(function(M){I[M]=f.defaultField}),I=T({},I,c.rule.fields);var B={};Object.keys(I).forEach(function(M){var W=I[M],ae=Array.isArray(W)?W:[W];B[M]=ae.map(v.bind(null,M))});var C=new i(B);C.messages(u.messages),c.rule.options&&(c.rule.options.messages=u.messages,c.rule.options.error=u.error),C.validate(c.value,c.rule.options||u,function(M){var W=[];_&&_.length&&W.push.apply(W,_),M&&M.length&&W.push.apply(W,M),y(W.length?W:null)})}}var m;if(f.asyncValidator)m=f.asyncValidator(f,c.value,l,c.source,u);else if(f.validator){try{m=f.validator(f,c.value,l,c.source,u)}catch(b){console.error?.(b),u.suppressValidatorError||setTimeout(function(){throw b},0),l(b.message)}m===!0?l():m===!1?l(typeof f.message=="function"?f.message(f.fullField||f.field):f.message||(f.fullField||f.field)+" fails"):m instanceof Array?l(m):m instanceof Error&&l(m.message)}m&&m.then&&m.then(function(){return l()},function(b){return l(b)})},function(c){p(c)},o)},e.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!K.hasOwnProperty(r.type))throw new Error(N("Unknown rule type %s",r.type));return r.type||"string"},e.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var n=Object.keys(r),a=n.indexOf("message");return a!==-1&&n.splice(a,1),n.length===1&&n[0]==="required"?K.required:K[this.getType(r)]||void 0},i})();H.register=function(e,t){if(typeof t!="function")throw new Error("Cannot register a validator by type, validator is not a function");K[e]=t};H.warning=Nt;H.messages=we;H.validators=K;const fr=["","error","validating","success"],lr=Fe({label:String,labelWidth:{type:[String,Number],default:""},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:de([String,Array])},required:{type:Boolean,default:void 0},rules:{type:de([Object,Array])},error:String,validateStatus:{type:String,values:fr},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:Ce}}),Be="ElLabelWrap";var ur=Y({name:Be,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(i,{slots:e}){const t=ne(xe,void 0),r=ne(ce);r||ot(Be,"usage: <el-form-item><label-wrap /></el-form-item>");const n=qe("form"),a=L(),s=L(0),o=()=>{var p;if((p=a.value)!=null&&p.firstElementChild){const g=window.getComputedStyle(a.value.firstElementChild).width;return Math.ceil(Number.parseFloat(g))}else return 0},u=(p="update")=>{He(()=>{e.default&&i.isAutoWidth&&(p==="update"?s.value=o():p==="remove"&&t?.deregisterLabelWidth(s.value))})},w=()=>u("update");return Ze(()=>{w()}),Ye(()=>{u("remove")}),ct(()=>w()),re(s,(p,g)=>{i.updateAll&&t?.registerLabelWidth(p,g)}),bt(E(()=>{var p,g;return(g=(p=a.value)==null?void 0:p.firstElementChild)!=null?g:null}),w),()=>{var p,g;if(!e)return null;const{isAutoWidth:F}=i;if(F){const O=t?.autoLabelWidth,S=r?.hasLabel,c={};if(S&&O&&O!=="auto"){const y=Math.max(0,Number.parseInt(O,10)-s.value),j=(r.labelPosition||t.labelPosition)==="left"?"marginRight":"marginLeft";y&&(c[j]=`${y}px`)}return ie("div",{ref:a,class:[n.be("item","label-wrap")],style:c},[(p=e.default)==null?void 0:p.call(e)])}else return ie(pt,{ref:a},[(g=e.default)==null?void 0:g.call(e)])}}});const dr=Y({name:"ElFormItem"}),cr=Y({...dr,props:lr,setup(i,{expose:e}){const t=i,r=vt(),n=ne(xe,void 0),a=ne(ce,void 0),s=De(void 0,{formItem:!1}),o=qe("form-item"),u=ft().value,w=L([]),p=L(""),g=lt(p,100),F=L(""),O=L();let S,c=!1;const y=E(()=>t.labelPosition||n?.labelPosition),f=E(()=>{if(y.value==="top")return{};const d=Pe(t.labelWidth||n?.labelWidth||"");return d?{width:d}:{}}),j=E(()=>{if(y.value==="top"||n?.inline)return{};if(!t.label&&!t.labelWidth&&B)return{};const d=Pe(t.labelWidth||n?.labelWidth||"");return!t.label&&!r.label?{marginLeft:d}:{}}),v=E(()=>[o.b(),o.m(s.value),o.is("error",p.value==="error"),o.is("validating",p.value==="validating"),o.is("success",p.value==="success"),o.is("required",ke.value||t.required),o.is("no-asterisk",n?.hideRequiredAsterisk),n?.requireAsteriskPosition==="right"?"asterisk-right":"asterisk-left",{[o.m("feedback")]:n?.statusIcon,[o.m(`label-${y.value}`)]:y.value}]),l=E(()=>Te(t.inlineMessage)?t.inlineMessage:n?.inlineMessage||!1),m=E(()=>[o.e("error"),{[o.em("error","inline")]:l.value}]),b=E(()=>t.prop?te(t.prop)?t.prop.join("."):t.prop:""),R=E(()=>!!(t.label||r.label)),_=E(()=>{var d;return(d=t.for)!=null?d:w.value.length===1?w.value[0]:void 0}),I=E(()=>!_.value&&R.value),B=!!a,C=E(()=>{const d=n?.model;if(!(!d||!t.prop))return fe(d,t.prop).value}),M=E(()=>{const{required:d}=t,q=[];t.rules&&q.push(...me(t.rules));const V=n?.rules;if(V&&t.prop){const A=fe(V,t.prop).value;A&&q.push(...me(A))}if(d!==void 0){const A=q.map(($,D)=>[$,D]).filter(([$])=>Object.keys($).includes("required"));if(A.length>0)for(const[$,D]of A)$.required!==d&&(q[D]={...$,required:d});else q.push({required:d})}return q}),W=E(()=>M.value.length>0),ae=d=>M.value.filter(V=>!V.trigger||!d?!0:te(V.trigger)?V.trigger.includes(d):V.trigger===d).map(({trigger:V,...A})=>A),ke=E(()=>M.value.some(d=>d.required)),et=E(()=>{var d;return g.value==="error"&&t.showMessage&&((d=n?.showMessage)!=null?d:!0)}),Oe=E(()=>`${t.label||""}${n?.labelSuffix||""}`),z=d=>{p.value=d},tt=d=>{var q,V;const{errors:A,fields:$}=d;(!A||!$)&&console.error(d),z("error"),F.value=A?(V=(q=A?.[0])==null?void 0:q.message)!=null?V:`${t.prop} is required`:"",n?.emit("validate",t.prop,!1,F.value)},rt=()=>{z("success"),n?.emit("validate",t.prop,!0,"")},nt=async d=>{const q=b.value;return new H({[q]:d}).validate({[q]:C.value},{firstFields:!0}).then(()=>(rt(),!0)).catch(A=>(tt(A),Promise.reject(A)))},Ee=async(d,q)=>{if(c||!t.prop)return!1;const V=Ke(q);if(!W.value)return q?.(!1),!1;const A=ae(d);return A.length===0?(q?.(!0),!0):(z("validating"),nt(A).then(()=>(q?.(!0),!0)).catch($=>{const{fields:D}=$;return q?.(!1,D),V?!1:Promise.reject(D)}))},se=()=>{z(""),F.value="",c=!1},_e=async()=>{const d=n?.model;if(!d||!t.prop)return;const q=fe(d,t.prop);c=!0,q.value=Me(S),await He(),se(),c=!1},it=d=>{w.value.includes(d)||w.value.push(d)},at=d=>{w.value=w.value.filter(q=>q!==d)};re(()=>t.error,d=>{F.value=d||"",z(d?"error":"")},{immediate:!0}),re(()=>t.validateStatus,d=>z(d||""));const oe=pe({...Je(t),$el:O,size:s,validateMessage:F,validateState:p,labelId:u,inputIds:w,isGroup:I,hasLabel:R,fieldValue:C,addInputId:it,removeInputId:at,resetField:_e,clearValidate:se,validate:Ee,propString:b});return Ue(ce,oe),Ze(()=>{t.prop&&(n?.addField(oe),S=Me(C.value))}),Ye(()=>{n?.removeField(oe)}),e({size:s,validateMessage:F,validateState:p,validate:Ee,clearValidate:se,resetField:_e}),(d,q)=>{var V;return ve(),Ge("div",{ref_key:"formItemRef",ref:O,class:J(x(v)),role:x(I)?"group":void 0,"aria-labelledby":x(I)?x(u):void 0},[ie(x(ur),{"is-auto-width":x(f).width==="auto","update-all":((V=x(n))==null?void 0:V.labelWidth)==="auto"},{default:le(()=>[x(R)?(ve(),mt(ht(x(_)?"label":"div"),{key:0,id:x(u),for:x(_),class:J(x(o).e("label")),style:Ae(x(f))},{default:le(()=>[k(d.$slots,"label",{label:x(Oe)},()=>[gt(je(x(Oe)),1)])]),_:3},8,["id","for","class","style"])):Re("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),Ve("div",{class:J(x(o).e("content")),style:Ae(x(j))},[k(d.$slots,"default"),ie(yt,{name:`${x(o).namespace.value}-zoom-in-top`},{default:le(()=>[x(et)?k(d.$slots,"error",{key:0,error:F.value},()=>[Ve("div",{class:J(x(m))},je(F.value),3)]):Re("v-if",!0)]),_:3},8,["name"])],6)],10,["role","aria-labelledby"])}}});var Xe=ze(cr,[["__file","form-item.vue"]]);const yr=dt(At,{FormItem:Xe}),br=ut(Xe);export{br as E,yr as a};
@@ -1 +1 @@
1
- import{aq as T,ao as n,a6 as f,aB as u}from"./index-CnxV03kA.js";import{H as g}from"./hailuo-C8Dw-0xR.js";import{s as b}from"./service-D2vZhmYV.js";import{h as S}from"./hailuo-zvLClPNR.js";import{m as w}from"./merge-C5jDS2au.js";import"./vendor-vue-DU0w5ewx.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-dayjs-Cvgzdobq.js";import"./vendor-vue-router-9TBHB1ku.js";const C=({commit:t})=>{t("resetAll")},I=async({commit:t,dispatch:e},s)=>{if(console.debug("set application",s),t("setApplication",s),!s){console.debug("application is null, return");return}const a=s?.credentials?.find(o=>o?.host===window.location.origin);a?(console.debug("credential exists, set credential",a),t("setCredential",a)):(console.debug("credential not exists, start to create credential for application",s),await e("createCredential"))},h=async({commit:t},e)=>{console.debug("set applications",e),t("setApplications",e)},$=async({commit:t},e)=>{console.debug("set service",e),t("setService",e)},y=async({commit:t},e)=>{console.debug("set credential",e),t("setCredential",e)},O=async({commit:t,state:e})=>{const s=e.application;if(console.debug("prepare to create credential for application",s),!s){console.error("Application not found");return}console.debug("creating create credential for application",s);const{data:a}=await T.create({application_id:s?.id,host:window.location.origin});return console.debug("created credential success",a),t("setCredential",a),console.debug("end createCredential"),a},x=async({commit:t,state:e})=>{e.status.getService=n.Request;try{const{data:s}=await b.get(g);return e.status.getService=n.Success,t("setService",s),s}catch{e.status.getService=n.Error,t("setService",void 0)}},_=async({commit:t,state:e,rootState:s})=>{console.debug("start to get applications for chat"),e.status.getApplications=n.Request;const a=e.application;console.debug("current application",a);try{const{data:o}=await f.getAll({user_id:s?.user?.id,service_id:g});return e.status.getApplications=n.Success,t("setApplications",o.items),o.items}catch(o){console.error("get applications failed",o),e.status.getApplications=n.Error,t("setApplications",void 0),t("setApplication",void 0)}},E=({commit:t},e)=>{t("setConfig",e)},P=({commit:t},e)=>{t("setTasks",e)},q=({commit:t},e)=>{t("setTasksItems",e)},R=({commit:t},e)=>{t("setTasksTotal",e)},H=({commit:t},e)=>{t("setTasksActive",e)},L=async({commit:t,state:e,rootState:s},{offset:a,limit:o,createdAtMin:k,createdAtMax:A})=>new Promise((m,c)=>{console.debug("start to get tasks",a,o);const r=e.credential;console.debug("current credential",r);const l=r?.token;if(!l)return c("no token");S.tasks({userId:s?.user?.id,createdAtMin:k,createdAtMax:A,type:"videos"},{token:l}).then(i=>{console.debug("get videos tasks success",i.data.items);const p=e?.tasks?.items||[];console.debug("existing items",p);const d=i.data.items||[];console.debug("new items",d);const v=w(p,d);t("setTasksItems",v),t("setTasksTotal",i.data.count),m(i.data.items)}).catch(i=>c(i))}),B={setService:$,getService:x,resetAll:C,setCredential:y,setConfig:E,setApplication:I,setApplications:h,getApplications:_,setTasks:P,setTasksItems:q,setTasksTotal:R,setTasksActive:H,getTasks:L,createCredential:O},D=t=>{Object.assign(t,u())},U=(t,e)=>{t.service=e},V=(t,e)=>{t.credential=e},j=(t,e)=>{t.application=e},z=(t,e)=>{t.applications=e},F=(t,e)=>{t.config=e},G=(t,e)=>{const s={...t.tasks,items:e};t.tasks=s},J=(t,e)=>{const s={...t.tasks,total:e};t.tasks=s},K=(t,e)=>{const s={...t.tasks,active:e};t.tasks=s},M=(t,e)=>{t.tasks=e},N={setTasks:M,setApplication:j,setApplications:z,setConfig:F,setCredential:V,setService:U,setTasksActive:K,setTasksItems:G,setTasksTotal:J,resetAll:D},ot={namespaced:!0,state:u,mutations:N,actions:B};export{ot as default,ot as hailuo};
1
+ import{ar as T,ap as n,a7 as f,aC as u}from"./index-FTscF_cz.js";import{H as g}from"./hailuo-C8Dw-0xR.js";import{s as b}from"./service-C5LrDt_v.js";import{h as C}from"./hailuo-CpEa1UDZ.js";import{m as S}from"./merge-C5jDS2au.js";import"./vendor-vue-DU0w5ewx.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-dayjs-Cvgzdobq.js";import"./vendor-vue-router-9TBHB1ku.js";const w=({commit:t})=>{t("resetAll")},I=async({commit:t,dispatch:e},s)=>{if(console.debug("set application",s),t("setApplication",s),!s){console.debug("application is null, return");return}const a=s?.credentials?.find(o=>o?.host===window.location.origin);a?(console.debug("credential exists, set credential",a),t("setCredential",a)):(console.debug("credential not exists, start to create credential for application",s),await e("createCredential"))},h=async({commit:t},e)=>{console.debug("set applications",e),t("setApplications",e)},$=async({commit:t},e)=>{console.debug("set service",e),t("setService",e)},y=async({commit:t},e)=>{console.debug("set credential",e),t("setCredential",e)},O=async({commit:t,state:e})=>{const s=e.application;if(console.debug("prepare to create credential for application",s),!s){console.error("Application not found");return}console.debug("creating create credential for application",s);const{data:a}=await T.create({application_id:s?.id,host:window.location.origin});return console.debug("created credential success",a),t("setCredential",a),console.debug("end createCredential"),a},x=async({commit:t,state:e})=>{e.status.getService=n.Request;try{const{data:s}=await b.get(g);return e.status.getService=n.Success,t("setService",s),s}catch{e.status.getService=n.Error,t("setService",void 0)}},_=async({commit:t,state:e,rootState:s})=>{console.debug("start to get applications for chat"),e.status.getApplications=n.Request;const a=e.application;console.debug("current application",a);try{const{data:o}=await f.getAll({user_id:s?.user?.id,service_id:g});return e.status.getApplications=n.Success,t("setApplications",o.items),o.items}catch(o){console.error("get applications failed",o),e.status.getApplications=n.Error,t("setApplications",void 0),t("setApplication",void 0)}},E=({commit:t},e)=>{t("setConfig",e)},P=({commit:t},e)=>{t("setTasks",e)},R=({commit:t},e)=>{t("setTasksItems",e)},q=({commit:t},e)=>{t("setTasksTotal",e)},H=({commit:t},e)=>{t("setTasksActive",e)},L=async({commit:t,state:e,rootState:s},{offset:a,limit:o,createdAtMin:k,createdAtMax:A})=>new Promise((m,c)=>{console.debug("start to get tasks",a,o);const r=e.credential;console.debug("current credential",r);const l=r?.token;if(!l)return c("no token");C.tasks({userId:s?.user?.id,createdAtMin:k,createdAtMax:A,type:"videos"},{token:l}).then(i=>{console.debug("get videos tasks success",i.data.items);const p=e?.tasks?.items||[];console.debug("existing items",p);const d=i.data.items||[];console.debug("new items",d);const v=S(p,d);t("setTasksItems",v),t("setTasksTotal",i.data.count),m(i.data.items)}).catch(i=>c(i))}),D={setService:$,getService:x,resetAll:w,setCredential:y,setConfig:E,setApplication:I,setApplications:h,getApplications:_,setTasks:P,setTasksItems:R,setTasksTotal:q,setTasksActive:H,getTasks:L,createCredential:O},U=t=>{Object.assign(t,u())},V=(t,e)=>{t.service=e},j=(t,e)=>{t.credential=e},z=(t,e)=>{t.application=e},B=(t,e)=>{t.applications=e},F=(t,e)=>{t.config=e},G=(t,e)=>{const s={...t.tasks,items:e};t.tasks=s},J=(t,e)=>{const s={...t.tasks,total:e};t.tasks=s},K=(t,e)=>{const s={...t.tasks,active:e};t.tasks=s},M=(t,e)=>{t.tasks=e},N={setTasks:M,setApplication:z,setApplications:B,setConfig:F,setCredential:j,setService:V,setTasksActive:K,setTasksItems:G,setTasksTotal:J,resetAll:U},ot={namespaced:!0,state:u,mutations:N,actions:D};export{ot as default,ot as hailuo};
@@ -1 +1 @@
1
- import{aq as T,ao as n,a6 as f,az as u}from"./index-CnxV03kA.js";import{P as g}from"./pixverse-eUATiZ_u.js";import{s as b}from"./service-D2vZhmYV.js";import{p as S}from"./pixverse-8cawnrYd.js";import{m as w}from"./merge-C5jDS2au.js";import"./vendor-vue-DU0w5ewx.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-dayjs-Cvgzdobq.js";import"./vendor-vue-router-9TBHB1ku.js";const C=({commit:t})=>{t("resetAll")},I=async({commit:t,dispatch:e},s)=>{if(console.debug("set application",s),t("setApplication",s),!s){console.debug("application is null, return");return}const a=s?.credentials?.find(i=>i?.host===window.location.origin);a?(console.debug("credential exists, set credential",a),t("setCredential",a)):(console.debug("credential not exists, start to create credential for application",s),await e("createCredential"))},$=async({commit:t},e)=>{console.debug("set applications",e),t("setApplications",e)},h=async({commit:t},e)=>{console.debug("set service",e),t("setService",e)},x=async({commit:t},e)=>{console.debug("set credential",e),t("setCredential",e)},y=async({commit:t,state:e})=>{const s=e.application;if(console.debug("prepare to create credential for application",s),!s){console.error("Application not found");return}console.debug("creating create credential for application",s);const{data:a}=await T.create({application_id:s?.id,host:window.location.origin});return console.debug("created credential success",a),t("setCredential",a),console.debug("end createCredential"),a},E=async({commit:t,state:e})=>{e.status.getService=n.Request;try{const{data:s}=await b.get(g);return e.status.getService=n.Success,t("setService",s),s}catch{e.status.getService=n.Error,t("setService",void 0)}},P=async({commit:t,state:e,rootState:s})=>{console.debug("start to get applications for chat"),e.status.getApplications=n.Request;const a=e.application;console.debug("current application",a);try{const{data:i}=await f.getAll({user_id:s?.user?.id,service_id:g});return e.status.getApplications=n.Success,t("setApplications",i.items),i.items}catch(i){console.error("get applications failed",i),e.status.getApplications=n.Error,t("setApplications",void 0),t("setApplication",void 0)}},O=({commit:t},e)=>{t("setConfig",e)},_=({commit:t},e)=>{t("setTasks",e)},R=({commit:t},e)=>{t("setTasksItems",e)},q=({commit:t},e)=>{t("setTasksTotal",e)},V=({commit:t},e)=>{t("setTasksActive",e)},z=async({commit:t,state:e,rootState:s},{offset:a,limit:i,createdAtMin:k,createdAtMax:v})=>new Promise((m,c)=>{console.debug("start to get tasks",a,i);const r=e.credential;console.debug("current credential",r);const l=r?.token;if(!l)return c("no token");S.tasks({userId:s?.user?.id,createdAtMin:k,createdAtMax:v,type:"videos"},{token:l}).then(o=>{console.debug("get videos tasks success",o.data.items);const p=e?.tasks?.items||[];console.debug("existing items",p);const d=o.data.items||[];console.debug("new items",d);const A=w(p,d);t("setTasksItems",A),t("setTasksTotal",o.data.count),m(o.data.items)}).catch(o=>c(o))}),D={setService:h,getService:E,resetAll:C,setCredential:x,setConfig:O,setApplication:I,setApplications:$,getApplications:P,setTasks:_,setTasksItems:R,setTasksTotal:q,setTasksActive:V,getTasks:z,createCredential:y},L=t=>{Object.assign(t,u())},X=(t,e)=>{t.service=e},j=(t,e)=>{t.credential=e},B=(t,e)=>{t.application=e},F=(t,e)=>{t.applications=e},G=(t,e)=>{t.config=e},H=(t,e)=>{const s={...t.tasks,items:e};t.tasks=s},J=(t,e)=>{const s={...t.tasks,total:e};t.tasks=s},K=(t,e)=>{const s={...t.tasks,active:e};t.tasks=s},M=(t,e)=>{t.tasks=e},N={setTasks:M,setApplication:B,setApplications:F,setConfig:G,setCredential:j,setService:X,setTasksActive:K,setTasksItems:H,setTasksTotal:J,resetAll:L},it={namespaced:!0,state:u,mutations:N,actions:D};export{it as default,it as pixverse};
1
+ import{ar as T,ap as n,a7 as f,aA as u}from"./index-FTscF_cz.js";import{P as g}from"./pixverse-g-p4CgDy.js";import{s as b}from"./service-C5LrDt_v.js";import{p as S}from"./pixverse-NFnml3Ad.js";import{m as w}from"./merge-C5jDS2au.js";import"./vendor-vue-DU0w5ewx.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-dayjs-Cvgzdobq.js";import"./vendor-vue-router-9TBHB1ku.js";const C=({commit:t})=>{t("resetAll")},I=async({commit:t,dispatch:e},s)=>{if(console.debug("set application",s),t("setApplication",s),!s){console.debug("application is null, return");return}const a=s?.credentials?.find(i=>i?.host===window.location.origin);a?(console.debug("credential exists, set credential",a),t("setCredential",a)):(console.debug("credential not exists, start to create credential for application",s),await e("createCredential"))},$=async({commit:t},e)=>{console.debug("set applications",e),t("setApplications",e)},h=async({commit:t},e)=>{console.debug("set service",e),t("setService",e)},x=async({commit:t},e)=>{console.debug("set credential",e),t("setCredential",e)},y=async({commit:t,state:e})=>{const s=e.application;if(console.debug("prepare to create credential for application",s),!s){console.error("Application not found");return}console.debug("creating create credential for application",s);const{data:a}=await T.create({application_id:s?.id,host:window.location.origin});return console.debug("created credential success",a),t("setCredential",a),console.debug("end createCredential"),a},E=async({commit:t,state:e})=>{e.status.getService=n.Request;try{const{data:s}=await b.get(g);return e.status.getService=n.Success,t("setService",s),s}catch{e.status.getService=n.Error,t("setService",void 0)}},P=async({commit:t,state:e,rootState:s})=>{console.debug("start to get applications for chat"),e.status.getApplications=n.Request;const a=e.application;console.debug("current application",a);try{const{data:i}=await f.getAll({user_id:s?.user?.id,service_id:g});return e.status.getApplications=n.Success,t("setApplications",i.items),i.items}catch(i){console.error("get applications failed",i),e.status.getApplications=n.Error,t("setApplications",void 0),t("setApplication",void 0)}},O=({commit:t},e)=>{t("setConfig",e)},_=({commit:t},e)=>{t("setTasks",e)},R=({commit:t},e)=>{t("setTasksItems",e)},q=({commit:t},e)=>{t("setTasksTotal",e)},V=({commit:t},e)=>{t("setTasksActive",e)},D=async({commit:t,state:e,rootState:s},{offset:a,limit:i,createdAtMin:k,createdAtMax:v})=>new Promise((A,c)=>{console.debug("start to get tasks",a,i);const r=e.credential;console.debug("current credential",r);const l=r?.token;if(!l)return c("no token");S.tasks({userId:s?.user?.id,createdAtMin:k,createdAtMax:v,type:"videos"},{token:l}).then(o=>{console.debug("get videos tasks success",o.data.items);const p=e?.tasks?.items||[];console.debug("existing items",p);const d=o.data.items||[];console.debug("new items",d);const m=w(p,d);t("setTasksItems",m),t("setTasksTotal",o.data.count),A(o.data.items)}).catch(o=>c(o))}),L={setService:h,getService:E,resetAll:C,setCredential:x,setConfig:O,setApplication:I,setApplications:$,getApplications:P,setTasks:_,setTasksItems:R,setTasksTotal:q,setTasksActive:V,getTasks:D,createCredential:y},X=t=>{Object.assign(t,u())},j=(t,e)=>{t.service=e},z=(t,e)=>{t.credential=e},B=(t,e)=>{t.application=e},F=(t,e)=>{t.applications=e},G=(t,e)=>{t.config=e},H=(t,e)=>{const s={...t.tasks,items:e};t.tasks=s},J=(t,e)=>{const s={...t.tasks,total:e};t.tasks=s},K=(t,e)=>{const s={...t.tasks,active:e};t.tasks=s},M=(t,e)=>{t.tasks=e},N={setTasks:M,setApplication:B,setApplications:F,setConfig:G,setCredential:z,setService:j,setTasksActive:K,setTasksItems:H,setTasksTotal:J,resetAll:X},it={namespaced:!0,state:u,mutations:N,actions:L};export{it as default,it as pixverse};
@@ -0,0 +1 @@
1
+ import{N as B,U as V,M,I as A,J as y,A as N,L as j,V as z,z as T,bk as L,O as U,bu as W,S as G,a$ as q,D as J}from"./index-FTscF_cz.js";import{m as Q}from"./typescript-CUMR9uNq.js";import{S as R,g as X,b as g,w as Y,c as d,p as Z,W as k,d as _,q as K,H as D,z as E,Q as f,u as e,i as ee,E as h,I as se,F as te,C as $,y as x,x as ae,V as oe,U as le,M as ne,G as ie,L as ce}from"./vendor-vue-DU0w5ewx.js";import{c as P}from"./castArray-BX2YHThj.js";import{E as re}from"./index-CENBZ_Mi.js";const S=t=>M(t)||R(t)||X(t),de=A({accordion:Boolean,modelValue:{type:y([Array,String,Number]),default:()=>Q([])},expandIconPosition:{type:y([String]),default:"right"},beforeCollapse:{type:y(Function)}}),ue={[V]:S,[B]:S},F=Symbol("collapseContextKey"),pe="ElCollapse",me=(t,n)=>{const a=g(P(t.modelValue)),i=o=>{a.value=o;const l=t.accordion?a.value[0]:a.value;n(V,l),n(B,l)},s=o=>{if(t.accordion)i([a.value[0]===o?"":o]);else{const l=[...a.value],r=l.indexOf(o);r>-1?l.splice(r,1):l.push(o),i(l)}},c=async o=>{const{beforeCollapse:l}=t;if(!l){s(o);return}const r=l(o);[k(r),j(r)].includes(!0)||z(pe,"beforeCollapse must return type `Promise<boolean>` or `boolean`"),k(r)?r.then(p=>{p!==!1&&s(o)}).catch(p=>{}):r&&s(o)};return Y(()=>t.modelValue,()=>a.value=P(t.modelValue),{deep:!0}),Z(F,{activeNames:a,handleItemClick:c}),{activeNames:a,setActiveNames:i}},fe=t=>{const n=N("collapse");return{rootKls:d(()=>[n.b(),n.b(`icon-position-${t.expandIconPosition}`)])}},ve=_({name:"ElCollapse"}),Ce=_({...ve,props:de,emits:ue,setup(t,{expose:n,emit:a}){const i=t,{activeNames:s,setActiveNames:c}=me(i,a),{rootKls:o}=fe(i);return n({activeNames:s,setActiveNames:c}),(l,r)=>(K(),D("div",{class:f(e(o))},[E(l.$slots,"default")],2))}});var be=T(Ce,[["__file","collapse.vue"]]);const he=A({title:{type:String,default:""},name:{type:y([String,Number]),default:void 0},icon:{type:U,default:L},disabled:Boolean}),ye=t=>{const n=ee(F),{namespace:a}=N("collapse"),i=g(!1),s=g(!1),c=W(),o=d(()=>c.current++),l=d(()=>{var u;return(u=t.name)!=null?u:`${a.value}-id-${c.prefix}-${e(o)}`}),r=d(()=>n?.activeNames.value.includes(e(l)));return{focusing:i,id:o,isActive:r,handleFocus:()=>{setTimeout(()=>{s.value?s.value=!1:i.value=!0},50)},handleHeaderClick:u=>{if(t.disabled)return;const m=u.target;m?.closest("input, textarea, select")||(n?.handleItemClick(e(l)),i.value=!1,s.value=!0)},handleEnterClick:u=>{const m=u.target;m?.closest("input, textarea, select")||(u.preventDefault(),n?.handleItemClick(e(l)))}}},Ee=(t,{focusing:n,isActive:a,id:i})=>{const s=N("collapse"),c=d(()=>[s.b("item"),s.is("active",e(a)),s.is("disabled",t.disabled)]),o=d(()=>[s.be("item","header"),s.is("active",e(a)),{focusing:e(n)&&!t.disabled}]),l=d(()=>[s.be("item","arrow"),s.is("active",e(a))]),r=d(()=>[s.be("item","title")]),C=d(()=>s.be("item","wrap")),p=d(()=>s.be("item","content")),b=d(()=>s.b(`content-${e(i)}`)),u=d(()=>s.b(`head-${e(i)}`));return{itemTitleKls:r,arrowKls:l,headKls:o,rootKls:c,itemWrapperKls:C,itemContentKls:p,scopedContentId:b,scopedHeadId:u}},_e=_({name:"ElCollapseItem"}),Ie=_({..._e,props:he,setup(t,{expose:n}){const a=t,{focusing:i,id:s,isActive:c,handleFocus:o,handleHeaderClick:l,handleEnterClick:r}=ye(a),{arrowKls:C,headKls:p,rootKls:b,itemTitleKls:u,itemWrapperKls:m,itemContentKls:H,scopedContentId:I,scopedHeadId:w}=Ee(a,{focusing:i,isActive:c,id:s});return n({isActive:c}),(v,ge)=>(K(),D("div",{class:f(e(b))},[h("div",{id:e(w),class:f(e(p)),"aria-expanded":e(c),"aria-controls":e(I),"aria-describedby":e(I),tabindex:v.disabled?-1:0,role:"button",onClick:e(l),onKeydown:le(ne(e(r),["stop"]),["space","enter"]),onFocus:e(o),onBlur:Ke=>i.value=!1},[h("span",{class:f(e(u))},[E(v.$slots,"title",{isActive:e(c)},()=>[se(te(v.title),1)])],2),E(v.$slots,"icon",{isActive:e(c)},()=>[$(e(G),{class:f(e(C))},{default:x(()=>[(K(),ae(oe(v.icon)))]),_:1},8,["class"])])],42,["id","aria-expanded","aria-controls","aria-describedby","tabindex","onClick","onKeydown","onFocus","onBlur"]),$(e(re),null,{default:x(()=>[ie(h("div",{id:e(I),role:"region",class:f(e(m)),"aria-hidden":!e(c),"aria-labelledby":e(w)},[h("div",{class:f(e(H))},[E(v.$slots,"default")],2)],10,["id","aria-hidden","aria-labelledby"]),[[ce,e(c)]])]),_:3})],2))}});var O=T(Ie,[["__file","collapse-item.vue"]]);const Pe=J(be,{CollapseItem:O}),Se=q(O);export{Se as E,Pe as a};
@@ -1 +1 @@
1
- import{d as s,q as d,x as i,y as n,z as r,A as l,B as p,u as g,T as m}from"./vendor-vue-DU0w5ewx.js";import{y as f,z as y,A as h}from"./index-CnxV03kA.js";const c=s({name:"ElCollapseTransition"}),x=s({...c,setup(H){const e=y("collapse-transition"),a=t=>{t.style.maxHeight="",t.style.overflow=t.dataset.oldOverflow,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom},o={beforeEnter(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.style.height&&(t.dataset.elExistsHeight=t.style.height),t.style.maxHeight=0,t.style.paddingTop=0,t.style.paddingBottom=0},enter(t){requestAnimationFrame(()=>{t.dataset.oldOverflow=t.style.overflow,t.dataset.elExistsHeight?t.style.maxHeight=t.dataset.elExistsHeight:t.scrollHeight!==0?t.style.maxHeight=`${t.scrollHeight}px`:t.style.maxHeight=0,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom,t.style.overflow="hidden"})},afterEnter(t){t.style.maxHeight="",t.style.overflow=t.dataset.oldOverflow},enterCancelled(t){a(t)},beforeLeave(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.dataset.oldOverflow=t.style.overflow,t.style.maxHeight=`${t.scrollHeight}px`,t.style.overflow="hidden"},leave(t){t.scrollHeight!==0&&(t.style.maxHeight=0,t.style.paddingTop=0,t.style.paddingBottom=0)},afterLeave(t){a(t)},leaveCancelled(t){a(t)}};return(t,T)=>(d(),i(m,l({name:g(e).b()},p(o)),{default:n(()=>[r(t.$slots,"default")]),_:3},16,["name"]))}});var v=f(x,[["__file","collapse-transition.vue"]]);const w=h(v);export{w as E};
1
+ import{d as s,q as d,x as i,y as n,z as r,A as l,B as p,u as g,T as m}from"./vendor-vue-DU0w5ewx.js";import{z as f,A as y,D as h}from"./index-FTscF_cz.js";const c=s({name:"ElCollapseTransition"}),x=s({...c,setup(H){const e=y("collapse-transition"),a=t=>{t.style.maxHeight="",t.style.overflow=t.dataset.oldOverflow,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom},o={beforeEnter(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.style.height&&(t.dataset.elExistsHeight=t.style.height),t.style.maxHeight=0,t.style.paddingTop=0,t.style.paddingBottom=0},enter(t){requestAnimationFrame(()=>{t.dataset.oldOverflow=t.style.overflow,t.dataset.elExistsHeight?t.style.maxHeight=t.dataset.elExistsHeight:t.scrollHeight!==0?t.style.maxHeight=`${t.scrollHeight}px`:t.style.maxHeight=0,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom,t.style.overflow="hidden"})},afterEnter(t){t.style.maxHeight="",t.style.overflow=t.dataset.oldOverflow},enterCancelled(t){a(t)},beforeLeave(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.dataset.oldOverflow=t.style.overflow,t.style.maxHeight=`${t.scrollHeight}px`,t.style.overflow="hidden"},leave(t){t.scrollHeight!==0&&(t.style.maxHeight=0,t.style.paddingTop=0,t.style.paddingBottom=0)},afterLeave(t){a(t)},leaveCancelled(t){a(t)}};return(t,T)=>(d(),i(m,l({name:g(e).b()},p(o)),{default:n(()=>[r(t.$slots,"default")]),_:3},16,["name"]))}});var v=f(x,[["__file","collapse-transition.vue"]]);const w=h(v);export{w as E};
@@ -0,0 +1 @@
1
+ import{I as y,J as I,z as N,A as h,b0 as $,M as B,a2 as E,D as P,a$ as T}from"./index-FTscF_cz.js";import{d as p,q as i,H as u,x as w,u as t,J as S,Q as f,ab as v,o as z,w as C,b as V,j,O as m,N as _,z as g,C as O,A as b,a3 as A}from"./vendor-vue-DU0w5ewx.js";const H=y({animated:Boolean,count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:I([Number,Object])}}),J=y({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),L=p({name:"ElSkeletonItem"}),M=p({...L,props:J,setup(l){const e=h("skeleton");return(o,s)=>(i(),u("div",{class:f([t(e).e("item"),t(e).e(o.variant)])},[o.variant==="image"?(i(),w(t($),{key:0})):S("v-if",!0)],2))}});var c=N(M,[["__file","skeleton-item.vue"]]);const R=(l,e=0)=>{if(e===0)return l;const o=v(e)&&!!e.initVal,s=V(o);let r=null;const a=n=>{if(E(n)){s.value=l.value;return}r&&clearTimeout(r),r=setTimeout(()=>{s.value=l.value},n)},d=n=>{n==="leading"?B(e)?a(e):a(e.leading):v(e)?a(e.trailing):s.value=!1};return z(()=>d("leading")),C(()=>l.value,n=>{d(n?"leading":"trailing")}),s},q=p({name:"ElSkeleton"}),D=p({...q,props:H,setup(l,{expose:e}){const o=l,s=h("skeleton"),r=R(j(o,"loading"),o.throttle);return e({uiLoading:r}),(a,d)=>t(r)?(i(),u("div",b({key:0,class:[t(s).b(),t(s).is("animated",a.animated)]},a.$attrs),[(i(!0),u(m,null,_(a.count,n=>(i(),u(m,{key:n},[t(r)?g(a.$slots,"template",{key:n},()=>[O(c,{class:f(t(s).is("first")),variant:"p"},null,8,["class"]),(i(!0),u(m,null,_(a.rows,k=>(i(),w(c,{key:k,class:f([t(s).e("paragraph"),t(s).is("last",k===a.rows&&a.rows>1)]),variant:"p"},null,8,["class"]))),128))]):S("v-if",!0)],64))),128))],16)):g(a.$slots,"default",A(b({key:1},a.$attrs)))}});var F=N(D,[["__file","skeleton.vue"]]);const G=P(F,{SkeletonItem:c}),K=T(c);export{K as E,G as a};
@@ -1 +1 @@
1
- import{g}from"./vendor-vue-DU0w5ewx.js";import{a as x,b as C}from"./index-CnxV03kA.js";const s=new Map;if(C){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of s.values())for(const{documentHandler:o}of n)o(t,e);e=void 0}})}function i(e,t){let n=[];return g(t.arg)?n=t.arg:x(t.arg)&&n.push(t.arg),function(o,a){const r=t.instance.popperRef,c=o.target,d=a?.target,l=!t||!t.instance,f=!c||!d,p=e.contains(c)||e.contains(d),m=e===c,h=n.length&&n.some(u=>u?.contains(c))||n.length&&n.includes(d),v=r&&(r.contains(c)||r.contains(d));l||f||p||m||h||v||t.value(o,a)}}const T={beforeMount(e,t){s.has(e)||s.set(e,[]),s.get(e).push({documentHandler:i(e,t),bindingFn:t.value})},updated(e,t){s.has(e)||s.set(e,[]);const n=s.get(e),o=n.findIndex(r=>r.bindingFn===t.oldValue),a={documentHandler:i(e,t),bindingFn:t.value};o>=0?n.splice(o,1,a):n.push(a)},unmounted(e){s.delete(e)}};export{T as C};
1
+ import{g}from"./vendor-vue-DU0w5ewx.js";import{a as x,b as C}from"./index-FTscF_cz.js";const s=new Map;if(C){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of s.values())for(const{documentHandler:o}of n)o(t,e);e=void 0}})}function i(e,t){let n=[];return g(t.arg)?n=t.arg:x(t.arg)&&n.push(t.arg),function(o,a){const r=t.instance.popperRef,c=o.target,d=a?.target,l=!t||!t.instance,f=!c||!d,p=e.contains(c)||e.contains(d),m=e===c,h=n.length&&n.some(u=>u?.contains(c))||n.length&&n.includes(d),v=r&&(r.contains(c)||r.contains(d));l||f||p||m||h||v||t.value(o,a)}}const T={beforeMount(e,t){s.has(e)||s.set(e,[]),s.get(e).push({documentHandler:i(e,t),bindingFn:t.value})},updated(e,t){s.has(e)||s.set(e,[]);const n=s.get(e),o=n.findIndex(r=>r.bindingFn===t.oldValue),a={documentHandler:i(e,t),bindingFn:t.value};o>=0?n.splice(o,1,a):n.push(a)},unmounted(e){s.delete(e)}};export{T as C};
@@ -1 +1 @@
1
- import{ao as n,a6 as b,aE as g,aq as f,aF as k}from"./index-CnxV03kA.js";import{s as S}from"./service-D2vZhmYV.js";import{n as w}from"./nanobanana-BlWLw-0i.js";import{m as C}from"./merge-C5jDS2au.js";import"./vendor-vue-DU0w5ewx.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-dayjs-Cvgzdobq.js";import"./vendor-vue-router-9TBHB1ku.js";const I=({commit:t})=>{t("resetAll")},$=async({commit:t,dispatch:s},e)=>{if(console.debug("set application",e),t("setApplication",e),!e){console.debug("application is null, return");return}const a=e?.credentials?.find(i=>i?.host===window.location.origin);a?(console.debug("credential exists, set credential",a),t("setCredential",a)):(console.debug("credential not exists, start to create credential for application",e),await s("createCredential"))},y=async({commit:t},s)=>{console.debug("set applications",s),t("setApplications",s)},E=async({commit:t},s)=>{console.debug("set service",s),t("setService",s)},h=async({commit:t},s)=>{console.debug("set credential",s),t("setCredential",s)},O=async({commit:t,state:s})=>{const e=s.application;if(console.debug("prepare to create credential for application",e),!e){console.error("Application not found");return}console.debug("creating create credential for application",e);const{data:a}=await f.create({application_id:e?.id,host:window.location.origin});return console.debug("created credential success",a),t("setCredential",a),console.debug("end createCredential"),a},x=async({commit:t,state:s})=>{s.status.getService=n.Request;try{const{data:e}=await S.get(g);return s.status.getService=n.Success,t("setService",e),e}catch{s.status.getService=n.Error,t("setService",void 0)}},_=async({commit:t,state:s,rootState:e})=>{console.debug("start to get applications for nanobanana"),s.status.getApplications=n.Request;try{const{data:a}=await b.getAll({user_id:e?.user?.id,service_id:g});return s.status.getApplications=n.Success,t("setApplications",a.items),a.items}catch(a){console.error("get applications failed",a),s.status.getApplications=n.Error,t("setApplications",void 0),t("setApplication",void 0)}},q=({commit:t},s)=>{t("setConfig",s)},N=({commit:t},s)=>{t("setTasks",s)},P=({commit:t},s)=>{t("setTasksItems",s)},R=({commit:t},s)=>{t("setTasksTotal",s)},B=({commit:t},s)=>{t("setTasksActive",s)},D=async({commit:t,state:s,rootState:e},{offset:a,limit:i,createdAtMin:A,createdAtMax:T})=>(s.status.getTasks=n.Request,new Promise((v,r)=>{console.debug("start to get tasks",a,i);const l=s.credential;console.debug("current credential",l);const d=l?.token;if(!d)return s.status.getTasks=n.Error,r("no token");w.tasks({userId:e?.user?.id,offset:a,limit:i,createdAtMin:A,createdAtMax:T,type:"images"},{token:d}).then(o=>{console.debug("get images tasks success",o.data.items);const p=s?.tasks?.items||[];console.debug("existing items",p);const u=o.data.items||[];console.debug("new items",u);const m=C(p,u);t("setTasksItems",m),t("setTasksTotal",o.data.count),s.status.getTasks=n.Success,v(o.data.items)}).catch(o=>(s.status.getTasks=n.Error,r(o)))})),F={createCredential:O,setService:E,getService:x,resetAll:I,setCredential:h,setConfig:q,setApplications:y,setApplication:$,getApplications:_,setTasks:N,setTasksItems:P,setTasksTotal:R,setTasksActive:B,getTasks:D},c={items:void 0,total:void 0,active:void 0},L=t=>{Object.assign(t,k())},V=(t,s)=>{t.service=s},j=(t,s)=>{t.credential=s},z=(t,s)=>{t.application=s},G=(t,s)=>{t.applications=s},H=(t,s)=>{t.config=s},J=(t,s)=>{const e={...t.tasks||c,items:s};t.tasks=e},K=(t,s)=>{const e={...t.tasks||c,total:s};t.tasks=e},M=(t,s)=>{const e={...t.tasks||c,active:s};t.tasks=e},Q=(t,s)=>{t.tasks=s},U={setTasks:Q,setApplication:z,setApplications:G,setConfig:H,setCredential:j,setService:V,setTasksActive:M,setTasksItems:J,setTasksTotal:K,resetAll:L},nt={namespaced:!0,state:k,mutations:U,actions:F};export{nt as default,nt as nanobanana};
1
+ import{ap as n,a7 as b,aF as g,ar as f,aG as k}from"./index-FTscF_cz.js";import{s as S}from"./service-C5LrDt_v.js";import{n as w}from"./nanobanana-JVOGegpV.js";import{m as C}from"./merge-C5jDS2au.js";import"./vendor-vue-DU0w5ewx.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-dayjs-Cvgzdobq.js";import"./vendor-vue-router-9TBHB1ku.js";const I=({commit:t})=>{t("resetAll")},$=async({commit:t,dispatch:s},e)=>{if(console.debug("set application",e),t("setApplication",e),!e){console.debug("application is null, return");return}const a=e?.credentials?.find(i=>i?.host===window.location.origin);a?(console.debug("credential exists, set credential",a),t("setCredential",a)):(console.debug("credential not exists, start to create credential for application",e),await s("createCredential"))},y=async({commit:t},s)=>{console.debug("set applications",s),t("setApplications",s)},h=async({commit:t},s)=>{console.debug("set service",s),t("setService",s)},E=async({commit:t},s)=>{console.debug("set credential",s),t("setCredential",s)},O=async({commit:t,state:s})=>{const e=s.application;if(console.debug("prepare to create credential for application",e),!e){console.error("Application not found");return}console.debug("creating create credential for application",e);const{data:a}=await f.create({application_id:e?.id,host:window.location.origin});return console.debug("created credential success",a),t("setCredential",a),console.debug("end createCredential"),a},x=async({commit:t,state:s})=>{s.status.getService=n.Request;try{const{data:e}=await S.get(g);return s.status.getService=n.Success,t("setService",e),e}catch{s.status.getService=n.Error,t("setService",void 0)}},_=async({commit:t,state:s,rootState:e})=>{console.debug("start to get applications for nanobanana"),s.status.getApplications=n.Request;try{const{data:a}=await b.getAll({user_id:e?.user?.id,service_id:g});return s.status.getApplications=n.Success,t("setApplications",a.items),a.items}catch(a){console.error("get applications failed",a),s.status.getApplications=n.Error,t("setApplications",void 0),t("setApplication",void 0)}},N=({commit:t},s)=>{t("setConfig",s)},P=({commit:t},s)=>{t("setTasks",s)},R=({commit:t},s)=>{t("setTasksItems",s)},q=({commit:t},s)=>{t("setTasksTotal",s)},B=({commit:t},s)=>{t("setTasksActive",s)},D=async({commit:t,state:s,rootState:e},{offset:a,limit:i,createdAtMin:A,createdAtMax:T})=>(s.status.getTasks=n.Request,new Promise((v,r)=>{console.debug("start to get tasks",a,i);const l=s.credential;console.debug("current credential",l);const d=l?.token;if(!d)return s.status.getTasks=n.Error,r("no token");w.tasks({userId:e?.user?.id,offset:a,limit:i,createdAtMin:A,createdAtMax:T,type:"images"},{token:d}).then(o=>{console.debug("get images tasks success",o.data.items);const p=s?.tasks?.items||[];console.debug("existing items",p);const u=o.data.items||[];console.debug("new items",u);const m=C(p,u);t("setTasksItems",m),t("setTasksTotal",o.data.count),s.status.getTasks=n.Success,v(o.data.items)}).catch(o=>(s.status.getTasks=n.Error,r(o)))})),F={createCredential:O,setService:h,getService:x,resetAll:I,setCredential:E,setConfig:N,setApplications:y,setApplication:$,getApplications:_,setTasks:P,setTasksItems:R,setTasksTotal:q,setTasksActive:B,getTasks:D},c={items:void 0,total:void 0,active:void 0},G=t=>{Object.assign(t,k())},L=(t,s)=>{t.service=s},V=(t,s)=>{t.credential=s},j=(t,s)=>{t.application=s},z=(t,s)=>{t.applications=s},H=(t,s)=>{t.config=s},J=(t,s)=>{const e={...t.tasks||c,items:s};t.tasks=e},K=(t,s)=>{const e={...t.tasks||c,total:s};t.tasks=e},M=(t,s)=>{const e={...t.tasks||c,active:s};t.tasks=e},Q=(t,s)=>{t.tasks=s},U={setTasks:Q,setApplication:j,setApplications:z,setConfig:H,setCredential:V,setService:L,setTasksActive:M,setTasksItems:J,setTasksTotal:K,resetAll:G},nt={namespaced:!0,state:k,mutations:U,actions:F};export{nt as default,nt as nanobanana};
@@ -1 +1 @@
1
- import{aq as T,ao as n,a6 as f,ay as u}from"./index-CnxV03kA.js";import{S as g}from"./sora-Dyuoglk1.js";import{s as b}from"./service-D2vZhmYV.js";import{s as S}from"./sora-CALwkS60.js";import{m as w}from"./merge-C5jDS2au.js";import"./vendor-vue-DU0w5ewx.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-dayjs-Cvgzdobq.js";import"./vendor-vue-router-9TBHB1ku.js";const C=({commit:t})=>{t("resetAll")},I=async({commit:t,dispatch:e},s)=>{if(console.debug("set application",s),t("setApplication",s),!s){console.debug("application is null, return");return}const a=s?.credentials?.find(o=>o?.host===window.location.origin);a?(console.debug("credential exists, set credential",a),t("setCredential",a)):(console.debug("credential not exists, start to create credential for application",s),await e("createCredential"))},$=async({commit:t},e)=>{console.debug("set applications",e),t("setApplications",e)},y=async({commit:t},e)=>{console.debug("set service",e),t("setService",e)},h=async({commit:t},e)=>{console.debug("set credential",e),t("setCredential",e)},O=async({commit:t,state:e})=>{const s=e.application;if(console.debug("prepare to create credential for application",s),!s){console.error("Application not found");return}console.debug("creating create credential for application",s);const{data:a}=await T.create({application_id:s?.id,host:window.location.origin});return console.debug("created credential success",a),t("setCredential",a),console.debug("end createCredential"),a},x=async({commit:t,state:e})=>{e.status.getService=n.Request;try{const{data:s}=await b.get(g);return e.status.getService=n.Success,t("setService",s),s}catch{e.status.getService=n.Error,t("setService",void 0)}},_=async({commit:t,state:e,rootState:s})=>{console.debug("start to get applications for chat"),e.status.getApplications=n.Request;const a=e.application;console.debug("current application",a);try{const{data:o}=await f.getAll({user_id:s?.user?.id,service_id:g});return e.status.getApplications=n.Success,t("setApplications",o.items),o.items}catch(o){console.error("get applications failed",o),e.status.getApplications=n.Error,t("setApplications",void 0),t("setApplication",void 0)}},E=({commit:t},e)=>{t("setConfig",e)},P=({commit:t},e)=>{t("setTasks",e)},R=({commit:t},e)=>{t("setTasksItems",e)},q=({commit:t},e)=>{t("setTasksTotal",e)},D=({commit:t},e)=>{t("setTasksActive",e)},L=async({commit:t,state:e,rootState:s},{offset:a,limit:o,createdAtMin:k,createdAtMax:A})=>new Promise((m,c)=>{console.debug("start to get tasks",a,o);const r=e.credential;console.debug("current credential",r);const l=r?.token;if(!l)return c("no token");S.tasks({userId:s?.user?.id,createdAtMin:k,createdAtMax:A,type:"videos"},{token:l}).then(i=>{console.debug("get videos tasks success",i.data.items);const p=e?.tasks?.items||[];console.debug("existing items",p);const d=i.data.items||[];console.debug("new items",d);const v=w(p,d);t("setTasksItems",v),t("setTasksTotal",i.data.count),m(i.data.items)}).catch(i=>c(i))}),V={setService:y,getService:x,resetAll:C,setCredential:h,setConfig:E,setApplication:I,setApplications:$,getApplications:_,setTasks:P,setTasksItems:R,setTasksTotal:q,setTasksActive:D,getTasks:L,createCredential:O},j=t=>{Object.assign(t,u())},z=(t,e)=>{t.service=e},B=(t,e)=>{t.credential=e},F=(t,e)=>{t.application=e},G=(t,e)=>{t.applications=e},H=(t,e)=>{t.config=e},J=(t,e)=>{const s={...t.tasks,items:e};t.tasks=s},K=(t,e)=>{const s={...t.tasks,total:e};t.tasks=s},M=(t,e)=>{const s={...t.tasks,active:e};t.tasks=s},N=(t,e)=>{t.tasks=e},Q={setTasks:N,setApplication:F,setApplications:G,setConfig:H,setCredential:B,setService:z,setTasksActive:M,setTasksItems:J,setTasksTotal:K,resetAll:j},ot={namespaced:!0,state:u,mutations:Q,actions:V};export{ot as default,ot as sora};
1
+ import{ar as T,ap as n,a7 as f,az as u}from"./index-FTscF_cz.js";import{S as g}from"./sora-Dyuoglk1.js";import{s as b}from"./service-C5LrDt_v.js";import{s as S}from"./sora-B2wrmmta.js";import{m as w}from"./merge-C5jDS2au.js";import"./vendor-vue-DU0w5ewx.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-dayjs-Cvgzdobq.js";import"./vendor-vue-router-9TBHB1ku.js";const C=({commit:t})=>{t("resetAll")},I=async({commit:t,dispatch:e},s)=>{if(console.debug("set application",s),t("setApplication",s),!s){console.debug("application is null, return");return}const a=s?.credentials?.find(o=>o?.host===window.location.origin);a?(console.debug("credential exists, set credential",a),t("setCredential",a)):(console.debug("credential not exists, start to create credential for application",s),await e("createCredential"))},$=async({commit:t},e)=>{console.debug("set applications",e),t("setApplications",e)},h=async({commit:t},e)=>{console.debug("set service",e),t("setService",e)},y=async({commit:t},e)=>{console.debug("set credential",e),t("setCredential",e)},O=async({commit:t,state:e})=>{const s=e.application;if(console.debug("prepare to create credential for application",s),!s){console.error("Application not found");return}console.debug("creating create credential for application",s);const{data:a}=await T.create({application_id:s?.id,host:window.location.origin});return console.debug("created credential success",a),t("setCredential",a),console.debug("end createCredential"),a},x=async({commit:t,state:e})=>{e.status.getService=n.Request;try{const{data:s}=await b.get(g);return e.status.getService=n.Success,t("setService",s),s}catch{e.status.getService=n.Error,t("setService",void 0)}},_=async({commit:t,state:e,rootState:s})=>{console.debug("start to get applications for chat"),e.status.getApplications=n.Request;const a=e.application;console.debug("current application",a);try{const{data:o}=await f.getAll({user_id:s?.user?.id,service_id:g});return e.status.getApplications=n.Success,t("setApplications",o.items),o.items}catch(o){console.error("get applications failed",o),e.status.getApplications=n.Error,t("setApplications",void 0),t("setApplication",void 0)}},E=({commit:t},e)=>{t("setConfig",e)},P=({commit:t},e)=>{t("setTasks",e)},R=({commit:t},e)=>{t("setTasksItems",e)},q=({commit:t},e)=>{t("setTasksTotal",e)},z=({commit:t},e)=>{t("setTasksActive",e)},D=async({commit:t,state:e,rootState:s},{offset:a,limit:o,createdAtMin:k,createdAtMax:A})=>new Promise((m,c)=>{console.debug("start to get tasks",a,o);const r=e.credential;console.debug("current credential",r);const l=r?.token;if(!l)return c("no token");S.tasks({userId:s?.user?.id,createdAtMin:k,createdAtMax:A,type:"videos"},{token:l}).then(i=>{console.debug("get videos tasks success",i.data.items);const p=e?.tasks?.items||[];console.debug("existing items",p);const d=i.data.items||[];console.debug("new items",d);const v=w(p,d);t("setTasksItems",v),t("setTasksTotal",i.data.count),m(i.data.items)}).catch(i=>c(i))}),L={setService:h,getService:x,resetAll:C,setCredential:y,setConfig:E,setApplication:I,setApplications:$,getApplications:_,setTasks:P,setTasksItems:R,setTasksTotal:q,setTasksActive:z,getTasks:D,createCredential:O},V=t=>{Object.assign(t,u())},j=(t,e)=>{t.service=e},B=(t,e)=>{t.credential=e},F=(t,e)=>{t.application=e},G=(t,e)=>{t.applications=e},H=(t,e)=>{t.config=e},J=(t,e)=>{const s={...t.tasks,items:e};t.tasks=s},K=(t,e)=>{const s={...t.tasks,total:e};t.tasks=s},M=(t,e)=>{const s={...t.tasks,active:e};t.tasks=s},N=(t,e)=>{t.tasks=e},Q={setTasks:N,setApplication:F,setApplications:G,setConfig:H,setCredential:B,setService:j,setTasksActive:M,setTasksItems:J,setTasksTotal:K,resetAll:V},ot={namespaced:!0,state:u,mutations:Q,actions:L};export{ot as default,ot as sora};
@@ -1 +1 @@
1
- import{ao as o,a6 as f,aI as g,aq as b,aJ as k}from"./index-CnxV03kA.js";import{s as S}from"./service-D2vZhmYV.js";import{s as w}from"./seedream-BBuvt17Y.js";import{m as C}from"./merge-C5jDS2au.js";import"./vendor-vue-DU0w5ewx.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-dayjs-Cvgzdobq.js";import"./vendor-vue-router-9TBHB1ku.js";const I=({commit:t})=>{t("resetAll")},$=async({commit:t,dispatch:e},s)=>{if(console.debug("set application",s),t("setApplication",s),!s){console.debug("application is null, return");return}const a=s?.credentials?.find(n=>n?.host===window.location.origin);a?(console.debug("credential exists, set credential",a),t("setCredential",a)):(console.debug("credential not exists, start to create credential for application",s),await e("createCredential"))},E=async({commit:t},e)=>{console.debug("set applications",e),t("setApplications",e)},y=async({commit:t},e)=>{console.debug("set service",e),t("setService",e)},h=async({commit:t},e)=>{console.debug("set credential",e),t("setCredential",e)},x=async({commit:t,state:e})=>{const s=e.application;if(console.debug("prepare to create credential for application",s),!s){console.error("Application not found");return}console.debug("creating create credential for application",s);const{data:a}=await b.create({application_id:s?.id,host:window.location.origin});return console.debug("created credential success",a),t("setCredential",a),console.debug("end createCredential"),a},O=async({commit:t,state:e})=>{e.status.getService=o.Request;try{const{data:s}=await S.get(g);return e.status.getService=o.Success,t("setService",s),s}catch{e.status.getService=o.Error,t("setService",void 0)}},R=async({commit:t,state:e,rootState:s})=>{console.debug("start to get applications for seedream"),e.status.getApplications=o.Request;try{const{data:a}=await f.getAll({user_id:s?.user?.id,service_id:g});return e.status.getApplications=o.Success,t("setApplications",a.items),a.items}catch(a){console.error("get applications failed",a),e.status.getApplications=o.Error,t("setApplications",void 0),t("setApplication",void 0)}},_=({commit:t},e)=>{t("setConfig",e)},q=({commit:t},e)=>{t("setTasks",e)},P=({commit:t},e)=>{t("setTasksItems",e)},D=({commit:t},e)=>{t("setTasksTotal",e)},J=({commit:t},e)=>{t("setTasksActive",e)},L=async({commit:t,state:e,rootState:s},{offset:a,limit:n,createdAtMin:m,createdAtMax:T})=>(e.status.getTasks=o.Request,new Promise((v,r)=>{console.debug("start to get tasks",a,n);const l=e.credential;console.debug("current credential",l);const d=l?.token;if(!d)return e.status.getTasks=o.Error,r("no token");w.tasks({userId:s?.user?.id,offset:a,limit:n,createdAtMin:m,createdAtMax:T,type:"images"},{token:d}).then(i=>{console.debug("get images tasks success",i.data.items);const p=e?.tasks?.items||[];console.debug("existing items",p);const u=i.data.items||[];console.debug("new items",u);const A=C(p,u);t("setTasksItems",A),t("setTasksTotal",i.data.count),e.status.getTasks=o.Success,v(i.data.items)}).catch(i=>(e.status.getTasks=o.Error,r(i)))})),M={createCredential:x,setService:y,getService:O,resetAll:I,setCredential:h,setConfig:_,setApplications:E,setApplication:$,getApplications:R,setTasks:q,setTasksItems:P,setTasksTotal:D,setTasksActive:J,getTasks:L},c={items:void 0,total:void 0,active:void 0},V=t=>{Object.assign(t,k())},j=(t,e)=>{t.service=e},z=(t,e)=>{t.credential=e},B=(t,e)=>{t.application=e},F=(t,e)=>{t.applications=e},G=(t,e)=>{t.config=e},H=(t,e)=>{const s={...t.tasks||c,items:e};t.tasks=s},K=(t,e)=>{const s={...t.tasks||c,total:e};t.tasks=s},N=(t,e)=>{const s={...t.tasks||c,active:e};t.tasks=s},Q=(t,e)=>{t.tasks=e},U={setTasks:Q,setApplication:B,setApplications:F,setConfig:G,setCredential:z,setService:j,setTasksActive:N,setTasksItems:H,setTasksTotal:K,resetAll:V},ot={namespaced:!0,state:k,mutations:U,actions:M};export{ot as default,ot as seedream};
1
+ import{ap as o,a7 as f,aJ as g,ar as b,aK as k}from"./index-FTscF_cz.js";import{s as S}from"./service-C5LrDt_v.js";import{s as w}from"./seedream-BGv1ajnv.js";import{m as C}from"./merge-C5jDS2au.js";import"./vendor-vue-DU0w5ewx.js";import"./vendor-axios-B8_nURbH.js";import"./vendor-dayjs-Cvgzdobq.js";import"./vendor-vue-router-9TBHB1ku.js";const I=({commit:t})=>{t("resetAll")},$=async({commit:t,dispatch:e},s)=>{if(console.debug("set application",s),t("setApplication",s),!s){console.debug("application is null, return");return}const a=s?.credentials?.find(n=>n?.host===window.location.origin);a?(console.debug("credential exists, set credential",a),t("setCredential",a)):(console.debug("credential not exists, start to create credential for application",s),await e("createCredential"))},E=async({commit:t},e)=>{console.debug("set applications",e),t("setApplications",e)},y=async({commit:t},e)=>{console.debug("set service",e),t("setService",e)},h=async({commit:t},e)=>{console.debug("set credential",e),t("setCredential",e)},x=async({commit:t,state:e})=>{const s=e.application;if(console.debug("prepare to create credential for application",s),!s){console.error("Application not found");return}console.debug("creating create credential for application",s);const{data:a}=await b.create({application_id:s?.id,host:window.location.origin});return console.debug("created credential success",a),t("setCredential",a),console.debug("end createCredential"),a},O=async({commit:t,state:e})=>{e.status.getService=o.Request;try{const{data:s}=await S.get(g);return e.status.getService=o.Success,t("setService",s),s}catch{e.status.getService=o.Error,t("setService",void 0)}},R=async({commit:t,state:e,rootState:s})=>{console.debug("start to get applications for seedream"),e.status.getApplications=o.Request;try{const{data:a}=await f.getAll({user_id:s?.user?.id,service_id:g});return e.status.getApplications=o.Success,t("setApplications",a.items),a.items}catch(a){console.error("get applications failed",a),e.status.getApplications=o.Error,t("setApplications",void 0),t("setApplication",void 0)}},_=({commit:t},e)=>{t("setConfig",e)},P=({commit:t},e)=>{t("setTasks",e)},q=({commit:t},e)=>{t("setTasksItems",e)},D=({commit:t},e)=>{t("setTasksTotal",e)},J=({commit:t},e)=>{t("setTasksActive",e)},K=async({commit:t,state:e,rootState:s},{offset:a,limit:n,createdAtMin:m,createdAtMax:T})=>(e.status.getTasks=o.Request,new Promise((v,r)=>{console.debug("start to get tasks",a,n);const l=e.credential;console.debug("current credential",l);const d=l?.token;if(!d)return e.status.getTasks=o.Error,r("no token");w.tasks({userId:s?.user?.id,offset:a,limit:n,createdAtMin:m,createdAtMax:T,type:"images"},{token:d}).then(i=>{console.debug("get images tasks success",i.data.items);const p=e?.tasks?.items||[];console.debug("existing items",p);const u=i.data.items||[];console.debug("new items",u);const A=C(p,u);t("setTasksItems",A),t("setTasksTotal",i.data.count),e.status.getTasks=o.Success,v(i.data.items)}).catch(i=>(e.status.getTasks=o.Error,r(i)))})),L={createCredential:x,setService:y,getService:O,resetAll:I,setCredential:h,setConfig:_,setApplications:E,setApplication:$,getApplications:R,setTasks:P,setTasksItems:q,setTasksTotal:D,setTasksActive:J,getTasks:K},c={items:void 0,total:void 0,active:void 0},M=t=>{Object.assign(t,k())},V=(t,e)=>{t.service=e},j=(t,e)=>{t.credential=e},z=(t,e)=>{t.application=e},B=(t,e)=>{t.applications=e},F=(t,e)=>{t.config=e},G=(t,e)=>{const s={...t.tasks||c,items:e};t.tasks=s},H=(t,e)=>{const s={...t.tasks||c,total:e};t.tasks=s},N=(t,e)=>{const s={...t.tasks||c,active:e};t.tasks=s},Q=(t,e)=>{t.tasks=e},U={setTasks:Q,setApplication:z,setApplications:B,setConfig:F,setCredential:j,setService:V,setTasksActive:N,setTasksItems:G,setTasksTotal:H,resetAll:M},ot={namespaced:!0,state:k,mutations:U,actions:L};export{ot as default,ot as seedream};