@acedatacloud/nexior 3.58.0 → 3.60.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 (255) hide show
  1. package/dist/assets/{Auth-DYGNDqCW.js → Auth-Bc1ZEOyS.js} +1 -1
  2. package/dist/assets/{BotPlaceholder-ChCb8Vv8.js → BotPlaceholder-CFeS0lPI.js} +1 -1
  3. package/dist/assets/{Callback-D6hA0ji-.js → Callback-BzN1YgMl.js} +1 -1
  4. package/dist/assets/{Console-CD1F8NGN.js → Console-Wm3oDzUM.js} +1 -1
  5. package/dist/assets/{Consumption-DfeDOZae.js → Consumption-C1KeusUW.js} +1 -1
  6. package/dist/assets/{Conversation-B4PNsemL.js → Conversation-BtdAVSA5.js} +1 -1
  7. package/dist/assets/{CopyToClipboard-BM_lDXUt.js → CopyToClipboard-Bwj8g4ti.js} +1 -1
  8. package/dist/assets/{Detail-aNp4-Sp1.js → Detail-BsfKccBT.js} +2 -2
  9. package/dist/assets/{EditArray-CBdYV5V0.js → EditArray-BMED20x7.js} +1 -1
  10. package/dist/assets/{Extra-CmpCn6PS.js → Extra-xpYIQ5yi.js} +1 -1
  11. package/dist/assets/{FilePreview-D29J-g_1.js → FilePreview-CCWfsE4C.js} +1 -1
  12. package/dist/assets/{History-CW8HZxm2.js → History-T471DyjG.js} +1 -1
  13. package/dist/assets/{IconPark.vue_vue_type_script_setup_true_lang-7d4twQSG.js → IconPark.vue_vue_type_script_setup_true_lang-qIqsx0l-.js} +1 -1
  14. package/dist/assets/{ImagePreview-DfqytLVt.js → ImagePreview-DBkeqGne.js} +1 -1
  15. package/dist/assets/{ImageWrapper-BvdzaQyW.js → ImageWrapper-BI_HqAjp.js} +1 -1
  16. package/dist/assets/{Index-DKUupcBI.js → Index-B5-Fy_22.js} +1 -1
  17. package/dist/assets/{Index-BmlsKknA.js → Index-B_nOFV_2.js} +1 -1
  18. package/dist/assets/{Index-BKrksj2b.js → Index-B_w3YlP8.js} +1 -1
  19. package/dist/assets/{Index-Bm0mOK1G.js → Index-Bc6LCWHH.js} +1 -1
  20. package/dist/assets/{Index-Cv8w1bl-.js → Index-BeU_5byh.js} +1 -1
  21. package/dist/assets/{Index-KBisOGIs.js → Index-CEX06Z4V.js} +1 -1
  22. package/dist/assets/{Index-BBXhcLe3.js → Index-Ca6ezffN.js} +1 -1
  23. package/dist/assets/{Index-qsmXsP0U.js → Index-CcvqgSbS.js} +1 -1
  24. package/dist/assets/{Index-QvBxzlbu.js → Index-CkOYAwEL.js} +1 -1
  25. package/dist/assets/{Index-Cm5jI-BT.js → Index-Culsao9t.js} +1 -1
  26. package/dist/assets/{Index-5Ew_nUjP.js → Index-DNwkR4L0.js} +1 -1
  27. package/dist/assets/{Index-B6B3lGgv.js → Index-Dl6Lgr6n.js} +1 -1
  28. package/dist/assets/{Index-DzBiOr6Q.js → Index-DokAPyYb.js} +1 -1
  29. package/dist/assets/{Index-DceE04r8.js → Index-Dqof_Cuu.js} +1 -1
  30. package/dist/assets/{Index-BhbrHnuw.js → Index-Le4bI-zg.js} +1 -1
  31. package/dist/assets/{Index-BeyI91Ap.js → Index-Lf8rawDK.js} +1 -1
  32. package/dist/assets/{Index-DtH3VYmQ.js → Index-NYN1lNN7.js} +1 -1
  33. package/dist/assets/{Index-DFsTf4U0.js → Index-TyhtnsFU.js} +1 -1
  34. package/dist/assets/{Index-DZFHVttQ.js → Index-X5vppYpa.js} +1 -1
  35. package/dist/assets/{Index-03DGesjV.js → Index-_idA0KPw.js} +1 -1
  36. package/dist/assets/{Index-BN68BETM.js → Index-fJYeflSC.js} +1 -1
  37. package/dist/assets/{Index-BL5xyEGb.js → Index-rIQyWj07.js} +1 -1
  38. package/dist/assets/{Index-CFv_2F4m.js → Index-x8vNBX3G.js} +1 -1
  39. package/dist/assets/{Index-CIDu_0km.js → Index-xS2u5L2e.js} +1 -1
  40. package/dist/assets/{Invitees-DambzAZ5.js → Invitees-DSoCOfMP.js} +1 -1
  41. package/dist/assets/{List-Gv-kPRLv.js → List-AWlKUJQS.js} +1 -1
  42. package/dist/assets/{List-Cb2kPVhy.js → List-CYCEfYZG.js} +1 -1
  43. package/dist/assets/{List-CRrgHzH8.js → List-CntmpuU-.js} +1 -1
  44. package/dist/assets/{Main-B_OQq6Hu.js → Main-D9QmIhSj.js} +1 -1
  45. package/dist/assets/{Navigator-hKVLCxHm.js → Navigator-D5VP_NKw.js} +1 -1
  46. package/dist/assets/{NoTasks-BQcfOWR1.js → NoTasks-HBj-UocI.js} +1 -1
  47. package/dist/assets/{NotFound-D9G0sMKY.js → NotFound-D6iUwJb-.js} +1 -1
  48. package/dist/assets/{OAuthCallback-Bft7N_6M.js → OAuthCallback-Br7XRKRR.js} +1 -1
  49. package/dist/assets/{Pagination-CwKQPumN.js → Pagination-DUpP8tcc.js} +1 -1
  50. package/dist/assets/{ScrollList-Ct0Km1sY.js → ScrollList-CQAzClwU.js} +1 -1
  51. package/dist/assets/{Status-CmGIO8J1.js → Status-BeMPMRA6.js} +1 -1
  52. package/dist/assets/{Subscribe-jOjSvjKO.js → Subscribe-BTS9ZFMM.js} +1 -1
  53. package/dist/assets/{TransportWebHID-ZBNiW_Ch.js → TransportWebHID-DOTu9yBv.js} +1 -1
  54. package/dist/assets/{VideoPlayer-BkUkC5yH.js → VideoPlayer-D9VeGqsh.js} +1 -1
  55. package/dist/assets/{_Uint8Array-DRbO7RkA.js → _Uint8Array-CzkknY9d.js} +1 -1
  56. package/dist/assets/{_baseClone-DHUSso_K.js → _baseClone-CdFHryfs.js} +1 -1
  57. package/dist/assets/{_baseIteratee-hfdFxZm7.js → _baseIteratee-Cmon9_5a.js} +1 -1
  58. package/dist/assets/{_initCloneObject-B2aXh2fK.js → _initCloneObject-BoYLcg48.js} +1 -1
  59. package/dist/assets/{add-DhadK362.js → add-Dn-HzEG9.js} +1 -1
  60. package/dist/assets/{all-wallets-Ni8qhSZL.js → all-wallets-D9T0XM5i.js} +1 -1
  61. package/dist/assets/{api-S46-7iFE.js → api-BeG4WOjg.js} +1 -1
  62. package/dist/assets/{api-DEdojowz.js → api-DhgoScpQ.js} +1 -1
  63. package/dist/assets/{app-store-DVcmMDzD.js → app-store-DRACwrqX.js} +1 -1
  64. package/dist/assets/{apple-BOu8fl8n.js → apple-BhjEkPjo.js} +1 -1
  65. package/dist/assets/{arrow-bottom-wRnCvG-y.js → arrow-bottom-DNGuEFfg.js} +1 -1
  66. package/dist/assets/{arrow-bottom-circle-DfpGNMRg.js → arrow-bottom-circle-77t-R-m4.js} +1 -1
  67. package/dist/assets/{arrow-left-CRlumsiB.js → arrow-left-y2y-YewK.js} +1 -1
  68. package/dist/assets/{arrow-right-rAXL4ENL.js → arrow-right-DxQGFXy6.js} +1 -1
  69. package/dist/assets/{arrow-top-DB51jSRj.js → arrow-top-D0CJ1LCd.js} +1 -1
  70. package/dist/assets/{avatar-BO8ODAAQ.js → avatar-CITEdV6q.js} +1 -1
  71. package/dist/assets/{bank-9ZOJ8L3s.js → bank-3IYg080o.js} +1 -1
  72. package/dist/assets/{basic-BKQ-9IWm.js → basic-DfVqZ-zs.js} +1 -1
  73. package/dist/assets/{browser-CO2zYrsc.js → browser-a3l_NWf-.js} +1 -1
  74. package/dist/assets/{card-BONzkVYn.js → card-BTJUnRar.js} +1 -1
  75. package/dist/assets/{castArray-boTYBhhU.js → castArray-CqOCtFFO.js} +1 -1
  76. package/dist/assets/{chat-BnbsSb28.js → chat-BuHiaaH3.js} +1 -1
  77. package/dist/assets/{checkmark-BVayYgzC.js → checkmark--kVnZYac.js} +1 -1
  78. package/dist/assets/{checkmark-bold-BNy9Wrun.js → checkmark-bold-CpUoaNwR.js} +1 -1
  79. package/dist/assets/{chevron-bottom-CxFddH5r.js → chevron-bottom-BO_7kd3Y.js} +1 -1
  80. package/dist/assets/{chevron-left-BYh0usVR.js → chevron-left-CULk7_bN.js} +1 -1
  81. package/dist/assets/{chevron-right-oL5SSFS-.js → chevron-right-DnmWhNve.js} +1 -1
  82. package/dist/assets/{chevron-top-DjwqpzIA.js → chevron-top-Ctqfw_vf.js} +1 -1
  83. package/dist/assets/{chrome-store-B6OHi5WC.js → chrome-store-CNrtdcnz.js} +1 -1
  84. package/dist/assets/{clock-C5C_CaH6.js → clock-B_EE9e8u.js} +1 -1
  85. package/dist/assets/{close-CvZTt_oz.js → close-t1T5uRQw.js} +1 -1
  86. package/dist/assets/{coinPlaceholder-DZokdzDS.js → coinPlaceholder-BKDqBScz.js} +1 -1
  87. package/dist/assets/common-BjTyswUh.js +1 -0
  88. package/dist/assets/common-Dv6xK4CK.js +1 -0
  89. package/dist/assets/{compass-B3rqEe9w.js → compass-BYZiKKaH.js} +1 -1
  90. package/dist/assets/{copy-DFZolEQK.js → copy-Dy_EyONR.js} +1 -1
  91. package/dist/assets/{cursor-DjniHeDZ.js → cursor-DPql4hdp.js} +1 -1
  92. package/dist/assets/{cursor-transparent-DI-y0M24.js → cursor-transparent-BWxs-Vus.js} +1 -1
  93. package/dist/assets/{debounce-CVEmZFNe.js → debounce-BU9isDMA.js} +1 -1
  94. package/dist/assets/{desktop-C_HwU0UG.js → desktop-DpVGhNw7.js} +1 -1
  95. package/dist/assets/{disconnect-DDQS_OiL.js → disconnect-L5unV5W8.js} +1 -1
  96. package/dist/assets/{discord-CQ3KrLAd.js → discord-Pig2v5-d.js} +1 -1
  97. package/dist/assets/{distribution-tRLoajUC.js → distribution-DiKDxUQ5.js} +1 -1
  98. package/dist/assets/{dropdown-Di-OQgFj.js → dropdown-DFjS54vw.js} +1 -1
  99. package/dist/assets/{etherscan-CM7uLO7K.js → etherscan-Ced9FJY0.js} +1 -1
  100. package/dist/assets/{exclamation-triangle-DIIgA_js.js → exclamation-triangle-COf_fwRE.js} +1 -1
  101. package/dist/assets/{extension-DyvmlZM2.js → extension-5RkinuhI.js} +1 -1
  102. package/dist/assets/{external-link-BhmKJ37p.js → external-link-D8wd5fju.js} +1 -1
  103. package/dist/assets/{facebook-DSC3nSpY.js → facebook-YBiSrfM-.js} +1 -1
  104. package/dist/assets/{farcaster-CjMNvEMi.js → farcaster-CdkR2X9i.js} +1 -1
  105. package/dist/assets/{filters-WkKrBs_-.js → filters-D1smfrSo.js} +1 -1
  106. package/dist/assets/{flux-BuXPvQIy.js → flux-BzShnxDW.js} +1 -1
  107. package/dist/assets/{github-BqamU31R.js → github-BbLFirWk.js} +1 -1
  108. package/dist/assets/{google-DdqSu_Y-.js → google-BNBBDDyt.js} +1 -1
  109. package/dist/assets/{hailuo-KQG2WmuV.js → hailuo-C81ozFSq.js} +1 -1
  110. package/dist/assets/{headshots-XMemsZ0g.js → headshots-BUqA43-_.js} +1 -1
  111. package/dist/assets/{headshots-DA95kWDp.js → headshots-CfyqkgAK.js} +1 -1
  112. package/dist/assets/{headshots-BJMWFKEW.js → headshots-k_oUektK.js} +1 -1
  113. package/dist/assets/{help-circle-DhFYS3R2.js → help-circle-B3ycV0TR.js} +1 -1
  114. package/dist/assets/{id-Cx8qcdPw.js → id-CYfF5xS5.js} +1 -1
  115. package/dist/assets/{image-Maq0XRYp.js → image-CAH-k0Qp.js} +1 -1
  116. package/dist/assets/{index-CmozsmzZ.js → index-7hHy0raL.js} +1 -1
  117. package/dist/assets/{index-RljJMDHd.js → index-B7q3-h78.js} +1 -1
  118. package/dist/assets/{index-CnnRg155.js → index-BQxTkntr.js} +1 -1
  119. package/dist/assets/{index-CeYRpRe_.js → index-BU3cjQQ4.js} +1 -1
  120. package/dist/assets/{index-ClCxNcRl.js → index-BUPgUe-m.js} +1 -1
  121. package/dist/assets/{index-BrzeY6o4.js → index-BVRX5NqD.js} +1 -1
  122. package/dist/assets/{index-Cz_pUAj0.js → index-BYTkRlu-.js} +1 -1
  123. package/dist/assets/{index-DXs08-vF.js → index-B__Kptq7.js} +1 -1
  124. package/dist/assets/{index-D-dlJ-aT.js → index-BcQ0x5sE.js} +1 -1
  125. package/dist/assets/{index-Btb2Kqu3.js → index-BfIhQTEK.js} +1 -1
  126. package/dist/assets/{index-C0OivO0I.js → index-Bgg99S5O.js} +1 -1
  127. package/dist/assets/{index-g-iFajHB.js → index-BjDrRB5S.js} +1 -1
  128. package/dist/assets/{index-CM4diDdr.js → index-Bp_XL4cn.js} +1 -1
  129. package/dist/assets/{index-CB8f7OLq.js → index-C3O7XZb8.js} +1 -1
  130. package/dist/assets/{index-DU3pVVDP.js → index-C6Txa53s.js} +1 -1
  131. package/dist/assets/{index-CN2LiVMo.js → index-C9-Z_pMc.js} +1 -1
  132. package/dist/assets/{index-CJgc03o7.js → index-CAj4EHVz.js} +1 -1
  133. package/dist/assets/{index-Di6x4d6J.js → index-CCusmSuq.js} +1 -1
  134. package/dist/assets/{index-BuhoT_Et.js → index-CGaZ_Omb.js} +1 -1
  135. package/dist/assets/{index-C9xhN24M.js → index-CTNvmznV.js} +1 -1
  136. package/dist/assets/{index-B20YcFJ8.js → index-CVi2iC3i.js} +1 -1
  137. package/dist/assets/{index-DujV5uiQ.js → index-Cd29BIsC.js} +1 -1
  138. package/dist/assets/{index-DByFUX_w.js → index-CdUz2mFg.js} +1 -1
  139. package/dist/assets/{index-Dt1mN8jC.js → index-Ce8ylCKN.js} +1 -1
  140. package/dist/assets/{index-DrVoTBh9.js → index-ChHTosNb.js} +1 -1
  141. package/dist/assets/{index-C6aOwQV6.js → index-CkNOn61q.js} +1 -1
  142. package/dist/assets/{index-D07OZdqt.js → index-CkRFiL0E.js} +1 -1
  143. package/dist/assets/{index-0ofnOFaT.js → index-Cla0vceJ.js} +1 -1
  144. package/dist/assets/{index-CaUDDPQ_.js → index-Cn7kpL17.js} +3 -3
  145. package/dist/assets/{index-DUKehVcR.js → index-D1nP7M-C.js} +1 -1
  146. package/dist/assets/{index-BQfx3xgL.js → index-D7qHgdg0.js} +1 -1
  147. package/dist/assets/{index-zi0qhO12.js → index-D9OANo-g.js} +1 -1
  148. package/dist/assets/{index-KS_ASdMS.js → index-DBgxk4X5.js} +1 -1
  149. package/dist/assets/{index-edWGeP0p.js → index-DEQo4s45.js} +1 -1
  150. package/dist/assets/{index-DDzvF3is.js → index-DINq8R6m.js} +7 -7
  151. package/dist/assets/{index-CgATUzcB.js → index-DMItY-nD.js} +1 -1
  152. package/dist/assets/{index-JUgdZ--r.js → index-DSXtMBw4.js} +1 -1
  153. package/dist/assets/{index-BFjkLxAL.js → index-DbIHhTbZ.js} +1 -1
  154. package/dist/assets/{index-BxprUbM8.js → index-DdOV0VIO.js} +1 -1
  155. package/dist/assets/{index-DdFII0BA.js → index-DeEWeite.js} +1 -1
  156. package/dist/assets/{index-CN4Fuyfy.js → index-DgML0Adc.js} +1 -1
  157. package/dist/assets/{index-BI8dCsU_.js → index-Dh4ibTp5.js} +1 -1
  158. package/dist/assets/{index-DQbaTzuT.js → index-DhOtcLEN.js} +1 -1
  159. package/dist/assets/{index-CvPaTM2w.js → index-DkyajLoN.js} +1 -1
  160. package/dist/assets/{index-DqmH3VWE.js → index-DsmRh-jr.js} +1 -1
  161. package/dist/assets/{index-5xA8y5QF.js → index-DxuOVeTY.js} +1 -1
  162. package/dist/assets/{index-CXHd491Q.js → index-FV_rgDf4.js} +1 -1
  163. package/dist/assets/{index-DBY6jjcR.js → index-LVrXgHUR.js} +1 -1
  164. package/dist/assets/{index-9szaY8p5.js → index-PWTSTSo9.js} +1 -1
  165. package/dist/assets/{index-o0J_0rGw.js → index-UfN2Nq7e.js} +1 -1
  166. package/dist/assets/{index-BI0gGf-3.js → index-VtfjHJbR.js} +1 -1
  167. package/dist/assets/{index-D8L9insm.js → index-XEif21W-.js} +1 -1
  168. package/dist/assets/{index-DDhlU0g3.js → index-apKrtIad.js} +1 -1
  169. package/dist/assets/{index-D7MVODqe.js → index-gHQUYj0J.js} +1 -1
  170. package/dist/assets/{index-CfBt-7Qg.js → index-mhKmKuBG.js} +1 -1
  171. package/dist/assets/{index-Bbo9QFjr.js → index-nlkPqTEQ.js} +1 -1
  172. package/dist/assets/{index-iN2PeQEN.js → index-pIEARt-4.js} +1 -1
  173. package/dist/assets/{index-DCg4Dkdi.js → index-q_66wTX8.js} +4 -4
  174. package/dist/assets/{index-D9G1sBr2.js → index-rXXkvPDC.js} +1 -1
  175. package/dist/assets/{index-DVhJKDru.js → index-xMpgqAvR.js} +1 -1
  176. package/dist/assets/{index-DmGUQNIF.js → index-zJqDIVoI.js} +1 -1
  177. package/dist/assets/{index-DdlRdmBp.js → index-zkXyNc7l.js} +1 -1
  178. package/dist/assets/{index.browser.esm-uBaXz-Gy.js → index.browser.esm-I7fg10vC.js} +1 -1
  179. package/dist/assets/{index.es-DQSkYkzb.js → index.es-uZQD9_wc.js} +1 -1
  180. package/dist/assets/{info-Caab-juq.js → info-C_a232SH.js} +1 -1
  181. package/dist/assets/{info-circle-7CoG-nwM.js → info-circle-BNS1tpLX.js} +1 -1
  182. package/dist/assets/{isEqual-7DyH1zpL.js → isEqual-BQLdMC9u.js} +1 -1
  183. package/dist/assets/{isPlainObject-CcQDDiIC.js → isPlainObject-BEQJcez8.js} +1 -1
  184. package/dist/assets/{kling-CcsG_zjz.js → kling-CGVyNds-.js} +1 -1
  185. package/dist/assets/{lightbulb-elhvzwVM.js → lightbulb-Dabq6VoN.js} +1 -1
  186. package/dist/assets/{luma-B9z-LqT4.js → luma-oTxAvrR-.js} +1 -1
  187. package/dist/assets/{mail-Bi5adMHa.js → mail-Bu8O6smJ.js} +1 -1
  188. package/dist/assets/{midjourney-BITXq65L.js → midjourney-uMEPIfin.js} +1 -1
  189. package/dist/assets/{mobile-t8hcXVRB.js → mobile-pCpWN48b.js} +1 -1
  190. package/dist/assets/{more-CA3r7H1s.js → more-DglKPxKj.js} +1 -1
  191. package/dist/assets/{nanobanana-DVBYAXad.js → nanobanana-DYWXPTMv.js} +1 -1
  192. package/dist/assets/{network-placeholder-DPM6L2lr.js → network-placeholder-CWgrCZGZ.js} +1 -1
  193. package/dist/assets/{nftPlaceholder-CxjU0Uj9.js → nftPlaceholder-B34CyinE.js} +1 -1
  194. package/dist/assets/{off-ByxHjo6B.js → off-zFsVLCIl.js} +1 -1
  195. package/dist/assets/{openaiimage-DmZ4rtOW.js → openaiimage-CVgX7toK.js} +1 -1
  196. package/dist/assets/{order-BStPpJZr.js → order-Ch4l11me.js} +1 -1
  197. package/dist/assets/{pika-CrPvsxcR.js → pika-6XdsmIS2.js} +1 -1
  198. package/dist/assets/{pixverse-DbrgLmEa.js → pixverse-BfCkt0CL.js} +1 -1
  199. package/dist/assets/{play-store-CuxFBK0A.js → play-store-BZGSdtYW.js} +1 -1
  200. package/dist/assets/{plus-BrKh6o3U.js → plus-BVVOTT4O.js} +1 -1
  201. package/dist/assets/{price-DAh4h84D.js → price-DNF0yLAq.js} +1 -1
  202. package/dist/assets/{producer-DdBwxuB4.js → producer-PNoMtyX2.js} +1 -1
  203. package/dist/assets/{qr-code-DxHRxaxj.js → qr-code-Y-Q29T4H.js} +1 -1
  204. package/dist/assets/{qrart-CQOYuUuj.js → qrart-BHxrXFHe.js} +1 -1
  205. package/dist/assets/{qrart-B1CpQE1F.js → qrart-bz2ka1jT.js} +1 -1
  206. package/dist/assets/{qrart-5eWjLAFP.js → qrart-ok8OOX9K.js} +1 -1
  207. package/dist/assets/{recycle-horizontal-C0Kevh8S.js → recycle-horizontal-BjI2mVNj.js} +1 -1
  208. package/dist/assets/{refresh-BP3yEHbs.js → refresh-BMTW70l1.js} +1 -1
  209. package/dist/assets/{reown-logo-C_5FtN8d.js → reown-logo-CB6IBbw0.js} +1 -1
  210. package/dist/assets/{search-CVudJ8LY.js → search-DgtGMxCh.js} +1 -1
  211. package/dist/assets/{secp256k1-CNY_qDc6.js → secp256k1-CNwRAPdJ.js} +1 -1
  212. package/dist/assets/{secp256k1-DYjP08cD.js → secp256k1-CsmKW8zr.js} +1 -1
  213. package/dist/assets/{seedance-CjCdMQc2.js → seedance-Qaov9UZb.js} +1 -1
  214. package/dist/assets/{seedream-Bd4cNrMU.js → seedream-DiY6L9y_.js} +1 -1
  215. package/dist/assets/{send-BPbPi2QR.js → send-CXBXVVm9.js} +1 -1
  216. package/dist/assets/{service-Djt3u4NK.js → service-DN_YOMTy.js} +1 -1
  217. package/dist/assets/{site-BGwTb3tg.js → site-CdS7LwGZ.js} +1 -1
  218. package/dist/assets/{site-Bf90NcZQ.js → site-yTTARj-x.js} +1 -1
  219. package/dist/assets/{solana-wallets-DS6NPicw.js → solana-wallets-B0Ry3hxV.js} +2 -2
  220. package/dist/assets/{solana-wallets-vue-WaPOrf75.js → solana-wallets-vue-BRFmoxej.js} +1 -1
  221. package/dist/assets/{solanaEmbed.esm-C-ewx9GG.js → solanaEmbed.esm-jmKND5Ot.js} +1 -1
  222. package/dist/assets/{sora-C8htab1Z.js → sora-DYppYUB4.js} +1 -1
  223. package/dist/assets/{string_decoder-CseZS9ez.js → string_decoder-CPRIldOl.js} +1 -1
  224. package/dist/assets/{suno-cOROeLkt.js → suno-C2ojcvzc.js} +1 -1
  225. package/dist/assets/{suno-CET3_qoZ.js → suno-C7fUKl4M.js} +1 -1
  226. package/dist/assets/{suno-D3UODCz4.js → suno-DfNwyKU0.js} +1 -1
  227. package/dist/assets/{swapHorizontal-DxbcSfrX.js → swapHorizontal-HfW8Od64.js} +1 -1
  228. package/dist/assets/{swapHorizontalBold-CSsCLIDQ.js → swapHorizontalBold-CLBkL7fa.js} +1 -1
  229. package/dist/assets/{swapHorizontalMedium-BLMooGz3.js → swapHorizontalMedium-ChaXFLjB.js} +1 -1
  230. package/dist/assets/{swapHorizontalRoundedBold-M454M7e2.js → swapHorizontalRoundedBold-BQ64pMO_.js} +1 -1
  231. package/dist/assets/{swapVertical-BDQH6x9G.js → swapVertical-BG3bRiec.js} +1 -1
  232. package/dist/assets/{telegram-CRQUEqB3.js → telegram-Cwp3p1X1.js} +1 -1
  233. package/dist/assets/{three-dots-BYPcIbkP.js → three-dots-ocX27-91.js} +1 -1
  234. package/dist/assets/{twitch-BFrXlxO8.js → twitch-Dx8-5yhX.js} +1 -1
  235. package/dist/assets/{twitterIcon-DUKFvBEP.js → twitterIcon-BjytbclG.js} +1 -1
  236. package/dist/assets/{typescript-BR9jNAAl.js → typescript-Ckmdn4KJ.js} +1 -1
  237. package/dist/assets/{use-form-item-uOcrry0J.js → use-form-item-DyyKqmqf.js} +1 -1
  238. package/dist/assets/validator-CV2ZWjU3.js +1 -0
  239. package/dist/assets/{veo-DEXaPvpl.js → veo-D7a-NBmu.js} +1 -1
  240. package/dist/assets/{verify-CGC2-5v6.js → verify-CxV-0pxQ.js} +1 -1
  241. package/dist/assets/{verify-filled-eopuvi_U.js → verify-filled-Dm-f7dg7.js} +1 -1
  242. package/dist/assets/{w3m-modal-D5zLQHPN.js → w3m-modal-DTQaV41y.js} +1 -1
  243. package/dist/assets/{wallet-BnenGNvH.js → wallet-BXoUgo1B.js} +1 -1
  244. package/dist/assets/{wallet-placeholder-B2kJ5YQW.js → wallet-placeholder-DlZ2j89Z.js} +1 -1
  245. package/dist/assets/{walletconnect-B-tbPQEO.js → walletconnect-BMAaqvAz.js} +1 -1
  246. package/dist/assets/{wan-qrpwEMGw.js → wan-ygvGcWgm.js} +1 -1
  247. package/dist/assets/{warning-circle-d8wdF7hh.js → warning-circle-SPEOLbFM.js} +1 -1
  248. package/dist/assets/{web-dX_vAzUV.js → web-C2ZIP3Kq.js} +1 -1
  249. package/dist/assets/{web-CHBRhTqb.js → web-WEeISaWn.js} +1 -1
  250. package/dist/assets/{x-CRJXddsS.js → x-Cbl1SxVL.js} +1 -1
  251. package/dist/index.html +1 -1
  252. package/package.json +1 -1
  253. package/dist/assets/common-DbzOeqFx.js +0 -1
  254. package/dist/assets/common-frp9uHUU.js +0 -1
  255. package/dist/assets/validator-DwlbfJWW.js +0 -1
@@ -1 +1 @@
1
- import{aW as L,aX as v,aY as M}from"./index-DCg4Dkdi.js";var N=/\s/;function B(n){for(var r=n.length;r--&&N.test(n.charAt(r)););return r}var R=/^\s+/;function $(n){return n&&n.slice(0,B(n)+1).replace(R,"")}var W=NaN,F=/^[-+]0x[0-9a-f]+$/i,X=/^0b[01]+$/i,_=/^0o[0-7]+$/i,j=parseInt;function k(n){if(typeof n=="number")return n;if(L(n))return W;if(v(n)){var r=typeof n.valueOf=="function"?n.valueOf():n;n=v(r)?r+"":r}if(typeof n!="string")return n===0?n:+n;n=$(n);var t=X.test(n);return t||_.test(n)?j(n.slice(2),t?2:8):F.test(n)?W:+n}var h=function(){return M.Date.now()},D="Expected a function",H=Math.max,P=Math.min;function Y(n,r,t){var u,c,l,s,i,f,d=0,p=!1,o=!1,T=!0;if(typeof n!="function")throw new TypeError(D);r=k(r)||0,v(t)&&(p=!!t.leading,o="maxWait"in t,l=o?H(k(t.maxWait)||0,r):l,T="trailing"in t?!!t.trailing:T);function x(e){var a=u,m=c;return u=c=void 0,d=e,s=n.apply(m,a),s}function S(e){return d=e,i=setTimeout(g,r),p?x(e):s}function O(e){var a=e-f,m=e-d,E=r-a;return o?P(E,l-m):E}function y(e){var a=e-f,m=e-d;return f===void 0||a>=r||a<0||o&&m>=l}function g(){var e=h();if(y(e))return b(e);i=setTimeout(g,O(e))}function b(e){return i=void 0,T&&u?x(e):(u=c=void 0,s)}function A(){i!==void 0&&clearTimeout(i),d=0,u=f=c=i=void 0}function C(){return i===void 0?s:b(h())}function I(){var e=h(),a=y(e);if(u=arguments,c=this,f=e,a){if(i===void 0)return S(f);if(o)return clearTimeout(i),i=setTimeout(g,r),x(f)}return i===void 0&&(i=setTimeout(g,r)),s}return I.cancel=A,I.flush=C,I}export{Y as d};
1
+ import{aW as L,aX as v,aY as M}from"./index-q_66wTX8.js";var N=/\s/;function B(n){for(var r=n.length;r--&&N.test(n.charAt(r)););return r}var R=/^\s+/;function $(n){return n&&n.slice(0,B(n)+1).replace(R,"")}var W=NaN,F=/^[-+]0x[0-9a-f]+$/i,X=/^0b[01]+$/i,_=/^0o[0-7]+$/i,j=parseInt;function k(n){if(typeof n=="number")return n;if(L(n))return W;if(v(n)){var r=typeof n.valueOf=="function"?n.valueOf():n;n=v(r)?r+"":r}if(typeof n!="string")return n===0?n:+n;n=$(n);var t=X.test(n);return t||_.test(n)?j(n.slice(2),t?2:8):F.test(n)?W:+n}var h=function(){return M.Date.now()},D="Expected a function",H=Math.max,P=Math.min;function Y(n,r,t){var u,c,l,s,i,f,d=0,p=!1,o=!1,T=!0;if(typeof n!="function")throw new TypeError(D);r=k(r)||0,v(t)&&(p=!!t.leading,o="maxWait"in t,l=o?H(k(t.maxWait)||0,r):l,T="trailing"in t?!!t.trailing:T);function x(e){var a=u,m=c;return u=c=void 0,d=e,s=n.apply(m,a),s}function S(e){return d=e,i=setTimeout(g,r),p?x(e):s}function O(e){var a=e-f,m=e-d,E=r-a;return o?P(E,l-m):E}function y(e){var a=e-f,m=e-d;return f===void 0||a>=r||a<0||o&&m>=l}function g(){var e=h();if(y(e))return b(e);i=setTimeout(g,O(e))}function b(e){return i=void 0,T&&u?x(e):(u=c=void 0,s)}function A(){i!==void 0&&clearTimeout(i),d=0,u=f=c=i=void 0}function C(){return i===void 0?s:b(h())}function I(){var e=h(),a=y(e);if(u=arguments,c=this,f=e,a){if(i===void 0)return S(f);if(o)return clearTimeout(i),i=setTimeout(g,r),x(f)}return i===void 0&&(i=setTimeout(g,r)),s}return I.cancel=A,I.flush=C,I}export{Y as d};
@@ -1,4 +1,4 @@
1
- import{w as o}from"./index-DDzvF3is.js";import"./index.browser.esm-uBaXz-Gy.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-DCg4Dkdi.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const d=o`<svg fill="none" viewBox="0 0 20 20">
1
+ import{w as o}from"./index-DINq8R6m.js";import"./index.browser.esm-I7fg10vC.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-q_66wTX8.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const d=o`<svg fill="none" viewBox="0 0 20 20">
2
2
  <path
3
3
  fill="currentColor"
4
4
  fill-rule="evenodd"
@@ -1,4 +1,4 @@
1
- import{w as o}from"./index-DDzvF3is.js";import"./index.browser.esm-uBaXz-Gy.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-DCg4Dkdi.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const v=o`<svg fill="none" viewBox="0 0 16 16">
1
+ import{w as o}from"./index-DINq8R6m.js";import"./index.browser.esm-I7fg10vC.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-q_66wTX8.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const v=o`<svg fill="none" viewBox="0 0 16 16">
2
2
  <path
3
3
  fill="currentColor"
4
4
  fill-rule="evenodd"
@@ -1,4 +1,4 @@
1
- import{w as i}from"./index-DDzvF3is.js";import"./index.browser.esm-uBaXz-Gy.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-DCg4Dkdi.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const m=i`<svg fill="none" viewBox="0 0 40 40">
1
+ import{w as i}from"./index-DINq8R6m.js";import"./index.browser.esm-I7fg10vC.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-q_66wTX8.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const m=i`<svg fill="none" viewBox="0 0 40 40">
2
2
  <g clip-path="url(#a)">
3
3
  <g clip-path="url(#b)">
4
4
  <circle cx="20" cy="19.89" r="20" fill="#5865F2" />
@@ -1 +1 @@
1
- import{h as i}from"./index-DCg4Dkdi.js";class e{key="distribution-histories";async getAll(t){return await i.get(`/${this.key}/`,{params:t})}}const l=new e;class r{key="distribution-statuses";async getAll(t){return await i.get(`/${this.key}/`,{params:t})}async initialize(){return await i.post(`/${this.key}/initialize/`)}}const c=new r;class a{key="distribution-levels";async getAll(t){return await i.get(`/${this.key}/`,{params:t})}}const u=new a;class n{key="shorturl";async create(t){return await i.post(`/${this.key}`,{content:t})}}const y=new n;export{c as a,l as b,u as d,y as s};
1
+ import{h as i}from"./index-q_66wTX8.js";class e{key="distribution-histories";async getAll(t){return await i.get(`/${this.key}/`,{params:t})}}const l=new e;class r{key="distribution-statuses";async getAll(t){return await i.get(`/${this.key}/`,{params:t})}async initialize(){return await i.post(`/${this.key}/initialize/`)}}const c=new r;class a{key="distribution-levels";async getAll(t){return await i.get(`/${this.key}/`,{params:t})}}const u=new a;class n{key="shorturl";async create(t){return await i.post(`/${this.key}`,{content:t})}}const y=new n;export{c as a,l as b,u as d,y as s};
@@ -1 +1 @@
1
- import{b as E,r as S,c as b}from"./index-DdlRdmBp.js";import{y as C,H as m,N as L,I as o,aN as e}from"./index-DCg4Dkdi.js";import{d as y,z as T,r as _,e as $,o as M,u as f,a6 as h,p as I}from"./vendor-vue-CpN3YBVJ.js";const w=y({inheritAttrs:!1});function v(n,s,a,r,i,d){return T(n.$slots,"default")}var A=C(w,[["render",v],["__file","collection.vue"]]);const B=y({name:"ElCollectionItem",inheritAttrs:!1});function K(n,s,a,r,i,d){return T(n.$slots,"default")}var P=C(B,[["render",K],["__file","collection-item.vue"]]);const x="data-el-collection-item",Y=n=>{const s=`El${n}Collection`,a=`${s}Item`,r=Symbol(s),i=Symbol(a),d={...A,name:s,setup(){const u=_(),c=new Map;I(r,{itemMap:c,getItems:()=>{const l=f(u);if(!l)return[];const t=Array.from(l.querySelectorAll(`[${x}]`));return[...c.values()].sort((O,g)=>t.indexOf(O.ref)-t.indexOf(g.ref))},collectionRef:u})}},N={...P,name:a,setup(u,{attrs:c}){const p=_(),l=$(r,void 0);I(i,{collectionItemRef:p}),M(()=>{const t=f(p);t&&l.itemMap.set(t,{ref:t,...c})}),h(()=>{const t=f(p);l.itemMap.delete(t)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:i,ElCollection:d,ElCollectionItem:N}},H=m({trigger:b.trigger,triggerKeys:{type:o(Array),default:()=>[e.enter,e.numpadEnter,e.space,e.down]},effect:{...E.effect,default:"light"},type:{type:o(String)},placement:{type:o(String),default:"bottom"},popperOptions:{type:o(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:o([Number,String]),default:0},maxHeight:{type:o([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,values:S,default:"menu"},buttonProps:{type:o(Object)},teleported:E.teleported,persistent:{type:Boolean,default:!0}}),U=m({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:L}}),V=m({onKeydown:{type:o(Function)}}),j=[e.down,e.pageDown,e.home],F=[e.up,e.pageUp,e.end],k=[...j,...F],{ElCollection:q,ElCollectionItem:G,COLLECTION_INJECTION_KEY:W,COLLECTION_ITEM_INJECTION_KEY:Q}=Y("Dropdown");export{x as C,q as E,k as F,F as L,U as a,Q as b,Y as c,H as d,G as e,V as f,W as g};
1
+ import{b as E,r as S,c as b}from"./index-zkXyNc7l.js";import{y as C,H as m,N as L,I as o,aN as e}from"./index-q_66wTX8.js";import{d as y,z as T,r as _,e as $,o as M,u as f,a6 as h,p as I}from"./vendor-vue-CpN3YBVJ.js";const w=y({inheritAttrs:!1});function v(n,s,a,r,i,d){return T(n.$slots,"default")}var A=C(w,[["render",v],["__file","collection.vue"]]);const B=y({name:"ElCollectionItem",inheritAttrs:!1});function K(n,s,a,r,i,d){return T(n.$slots,"default")}var P=C(B,[["render",K],["__file","collection-item.vue"]]);const x="data-el-collection-item",Y=n=>{const s=`El${n}Collection`,a=`${s}Item`,r=Symbol(s),i=Symbol(a),d={...A,name:s,setup(){const u=_(),c=new Map;I(r,{itemMap:c,getItems:()=>{const l=f(u);if(!l)return[];const t=Array.from(l.querySelectorAll(`[${x}]`));return[...c.values()].sort((O,g)=>t.indexOf(O.ref)-t.indexOf(g.ref))},collectionRef:u})}},N={...P,name:a,setup(u,{attrs:c}){const p=_(),l=$(r,void 0);I(i,{collectionItemRef:p}),M(()=>{const t=f(p);t&&l.itemMap.set(t,{ref:t,...c})}),h(()=>{const t=f(p);l.itemMap.delete(t)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:i,ElCollection:d,ElCollectionItem:N}},H=m({trigger:b.trigger,triggerKeys:{type:o(Array),default:()=>[e.enter,e.numpadEnter,e.space,e.down]},effect:{...E.effect,default:"light"},type:{type:o(String)},placement:{type:o(String),default:"bottom"},popperOptions:{type:o(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:o([Number,String]),default:0},maxHeight:{type:o([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,values:S,default:"menu"},buttonProps:{type:o(Object)},teleported:E.teleported,persistent:{type:Boolean,default:!0}}),U=m({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:L}}),V=m({onKeydown:{type:o(Function)}}),j=[e.down,e.pageDown,e.home],F=[e.up,e.pageUp,e.end],k=[...j,...F],{ElCollection:q,ElCollectionItem:G,COLLECTION_INJECTION_KEY:W,COLLECTION_ITEM_INJECTION_KEY:Q}=Y("Dropdown");export{x as C,q as E,k as F,F as L,U as a,Q as b,Y as c,H as d,G as e,V as f,W as g};
@@ -1,4 +1,4 @@
1
- import{w as o}from"./index-DDzvF3is.js";import"./index.browser.esm-uBaXz-Gy.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-DCg4Dkdi.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const n=o`<svg fill="none" viewBox="0 0 16 16">
1
+ import{w as o}from"./index-DINq8R6m.js";import"./index.browser.esm-I7fg10vC.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-q_66wTX8.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const n=o`<svg fill="none" viewBox="0 0 16 16">
2
2
  <path
3
3
  fill="currentColor"
4
4
  d="M4.25 7a.63.63 0 0 0-.63.63v3.97c0 .28-.2.51-.47.54l-.75.07a.93.93 0 0 1-.9-.47A7.51 7.51 0 0 1 5.54.92a7.5 7.5 0 0 1 9.54 4.62c.12.35.06.72-.16 1-.74.97-1.68 1.78-2.6 2.44V4.44a.64.64 0 0 0-.63-.64h-1.06c-.35 0-.63.3-.63.64v5.5c0 .23-.12.42-.32.5l-.52.23V6.05c0-.36-.3-.64-.64-.64H7.45c-.35 0-.64.3-.64.64v4.97c0 .25-.17.46-.4.52a5.8 5.8 0 0 0-.45.11v-4c0-.36-.3-.65-.64-.65H4.25ZM14.07 12.4A7.49 7.49 0 0 1 3.6 14.08c4.09-.58 9.14-2.5 11.87-6.6v.03a7.56 7.56 0 0 1-1.41 4.91Z"
@@ -1,4 +1,4 @@
1
- import{w as C}from"./index-DDzvF3is.js";import"./index.browser.esm-uBaXz-Gy.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-DCg4Dkdi.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const w=C`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
1
+ import{w as C}from"./index-DINq8R6m.js";import"./index.browser.esm-I7fg10vC.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-q_66wTX8.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const w=C`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
2
  <path d="M15.0162 11.6312L9.55059 2.13937C9.39228 1.86862 9.16584 1.64405 8.8938 1.48798C8.62176 1.33192 8.3136 1.2498 7.99997 1.2498C7.68634 1.2498 7.37817 1.33192 7.10613 1.48798C6.83409 1.64405 6.60765 1.86862 6.44934 2.13937L0.983716 11.6312C0.830104 11.894 0.749146 12.1928 0.749146 12.4972C0.749146 12.8015 0.830104 13.1004 0.983716 13.3631C1.14027 13.6352 1.3664 13.8608 1.63889 14.0166C1.91139 14.1725 2.22044 14.253 2.53434 14.25H13.4656C13.7793 14.2528 14.0881 14.1721 14.3603 14.0163C14.6326 13.8604 14.8585 13.635 15.015 13.3631C15.1688 13.1005 15.2499 12.8017 15.2502 12.4973C15.2504 12.193 15.1696 11.8941 15.0162 11.6312ZM13.7162 12.6125C13.6908 12.6558 13.6541 12.6914 13.6101 12.7157C13.5661 12.7399 13.5164 12.7517 13.4662 12.75H2.53434C2.48415 12.7517 2.43442 12.7399 2.39042 12.7157C2.34641 12.6914 2.30976 12.6558 2.28434 12.6125C2.26278 12.5774 2.25137 12.5371 2.25137 12.4959C2.25137 12.4548 2.26278 12.4144 2.28434 12.3794L7.74997 2.88749C7.77703 2.84583 7.81408 2.8116 7.85774 2.7879C7.9014 2.7642 7.95029 2.75178 7.99997 2.75178C8.04964 2.75178 8.09854 2.7642 8.1422 2.7879C8.18586 2.8116 8.2229 2.84583 8.24997 2.88749L13.715 12.3794C13.7367 12.4143 13.7483 12.4546 13.7486 12.4958C13.7488 12.5369 13.7376 12.5773 13.7162 12.6125ZM7.24997 8.49999V6.49999C7.24997 6.30108 7.32898 6.11031 7.46964 5.96966C7.61029 5.82901 7.80105 5.74999 7.99997 5.74999C8.19888 5.74999 8.38964 5.82901 8.5303 5.96966C8.67095 6.11031 8.74997 6.30108 8.74997 6.49999V8.49999C8.74997 8.6989 8.67095 8.88967 8.5303 9.03032C8.38964 9.17097 8.19888 9.24999 7.99997 9.24999C7.80105 9.24999 7.61029 9.17097 7.46964 9.03032C7.32898 8.88967 7.24997 8.6989 7.24997 8.49999ZM8.99997 11C8.99997 11.1978 8.94132 11.3911 8.83144 11.5556C8.72155 11.72 8.56538 11.8482 8.38265 11.9239C8.19992 11.9996 7.99886 12.0194 7.80488 11.9808C7.6109 11.9422 7.43271 11.847 7.29286 11.7071C7.15301 11.5672 7.05777 11.3891 7.01918 11.1951C6.9806 11.0011 7.0004 10.8 7.07609 10.6173C7.15177 10.4346 7.27995 10.2784 7.4444 10.1685C7.60885 10.0586 7.80219 9.99999 7.99997 9.99999C8.26518 9.99999 8.51954 10.1053 8.70707 10.2929C8.89461 10.4804 8.99997 10.7348 8.99997 11Z" fill="currentColor"/>
3
3
  </svg>
4
4
  `;export{w as exclamationTriangleSvg};
@@ -1,4 +1,4 @@
1
- import{w as a}from"./index-DDzvF3is.js";import"./index.browser.esm-uBaXz-Gy.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-DCg4Dkdi.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const n=a`<svg fill="none" viewBox="0 0 14 15">
1
+ import{w as a}from"./index-DINq8R6m.js";import"./index.browser.esm-I7fg10vC.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-q_66wTX8.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const n=a`<svg fill="none" viewBox="0 0 14 15">
2
2
  <path
3
3
  fill="currentColor"
4
4
  fill-rule="evenodd"
@@ -1,4 +1,4 @@
1
- import{w as o}from"./index-DDzvF3is.js";import"./index.browser.esm-uBaXz-Gy.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-DCg4Dkdi.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const d=o`<svg fill="none" viewBox="0 0 14 15">
1
+ import{w as o}from"./index-DINq8R6m.js";import"./index.browser.esm-I7fg10vC.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-q_66wTX8.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const d=o`<svg fill="none" viewBox="0 0 14 15">
2
2
  <path
3
3
  fill="currentColor"
4
4
  fill-rule="evenodd"
@@ -1,4 +1,4 @@
1
- import{w as i}from"./index-DDzvF3is.js";import"./index.browser.esm-uBaXz-Gy.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-DCg4Dkdi.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const m=i`<svg fill="none" viewBox="0 0 40 40">
1
+ import{w as i}from"./index-DINq8R6m.js";import"./index.browser.esm-I7fg10vC.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-q_66wTX8.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const m=i`<svg fill="none" viewBox="0 0 40 40">
2
2
  <g clip-path="url(#a)">
3
3
  <g clip-path="url(#b)">
4
4
  <circle cx="20" cy="19.89" r="20" fill="#1877F2" />
@@ -1,4 +1,4 @@
1
- import{w as h}from"./index-DDzvF3is.js";import"./index.browser.esm-uBaXz-Gy.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-DCg4Dkdi.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const e=h`<svg style="border-radius: 9999px; overflow: hidden;" fill="none" viewBox="0 0 1000 1000">
1
+ import{w as h}from"./index-DINq8R6m.js";import"./index.browser.esm-I7fg10vC.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-q_66wTX8.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const e=h`<svg style="border-radius: 9999px; overflow: hidden;" fill="none" viewBox="0 0 1000 1000">
2
2
  <rect width="1000" height="1000" rx="9999" ry="9999" fill="#855DCD"/>
3
3
  <path fill="#855DCD" d="M0 0h1000v1000H0V0Z" />
4
4
  <path
@@ -1,4 +1,4 @@
1
- import{w as o}from"./index-DDzvF3is.js";import"./index.browser.esm-uBaXz-Gy.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-DCg4Dkdi.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const d=o`<svg fill="none" viewBox="0 0 16 16">
1
+ import{w as o}from"./index-DINq8R6m.js";import"./index.browser.esm-I7fg10vC.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-q_66wTX8.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const d=o`<svg fill="none" viewBox="0 0 16 16">
2
2
  <path
3
3
  fill="currentColor"
4
4
  fill-rule="evenodd"
@@ -1 +1 @@
1
- import{a as e}from"./vendor-axios-NIGUFBhG.js";import{B as o}from"./index-DCg4Dkdi.js";class n{async task(a,t){return await e.post("/flux/tasks",{action:"retrieve",id:a},{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${t.token}`,"x-record-exempt":"true"},baseURL:o})}async tasks(a,t){return await e.post("/flux/tasks",{action:"retrieve_batch",...a.ids?{ids:a.ids}:{},...a.applicationId?{application_id:a.applicationId}:{},...a.userId?{user_id:a.userId}:{},...a.type?{type:a.type}:{},...a.limit!==void 0?{limit:a.limit}:{},...a.offset!==void 0?{offset:a.offset}:{},...a.createdAtMax!==void 0?{created_at_max:a.createdAtMax}:{},...a.createdAtMin!==void 0?{created_at_min:a.createdAtMin}:{}},{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${t.token}`,"x-record-exempt":"true"},baseURL:o})}async generate(a,t){return await e.post("/flux/images",a,{headers:{authorization:`Bearer ${t.token}`,"content-type":"application/json",accept:"application/x-ndjson"},baseURL:o})}}const c=new n;export{c as f};
1
+ import{a as e}from"./vendor-axios-NIGUFBhG.js";import{B as o}from"./index-q_66wTX8.js";class n{async task(a,t){return await e.post("/flux/tasks",{action:"retrieve",id:a},{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${t.token}`,"x-record-exempt":"true"},baseURL:o})}async tasks(a,t){return await e.post("/flux/tasks",{action:"retrieve_batch",...a.ids?{ids:a.ids}:{},...a.applicationId?{application_id:a.applicationId}:{},...a.userId?{user_id:a.userId}:{},...a.type?{type:a.type}:{},...a.limit!==void 0?{limit:a.limit}:{},...a.offset!==void 0?{offset:a.offset}:{},...a.createdAtMax!==void 0?{created_at_max:a.createdAtMax}:{},...a.createdAtMin!==void 0?{created_at_min:a.createdAtMin}:{}},{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${t.token}`,"x-record-exempt":"true"},baseURL:o})}async generate(a,t){return await e.post("/flux/images",a,{headers:{authorization:`Bearer ${t.token}`,"content-type":"application/json",accept:"application/x-ndjson"},baseURL:o})}}const c=new n;export{c as f};
@@ -1,4 +1,4 @@
1
- import{w as i}from"./index-DDzvF3is.js";import"./index.browser.esm-uBaXz-Gy.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-DCg4Dkdi.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const m=i`<svg fill="none" viewBox="0 0 40 40">
1
+ import{w as i}from"./index-DINq8R6m.js";import"./index.browser.esm-I7fg10vC.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-q_66wTX8.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const m=i`<svg fill="none" viewBox="0 0 40 40">
2
2
  <g clip-path="url(#a)">
3
3
  <g clip-path="url(#b)">
4
4
  <circle cx="20" cy="19.89" r="20" fill="#1B1F23" />
@@ -1,4 +1,4 @@
1
- import{w as o}from"./index-DDzvF3is.js";import"./index.browser.esm-uBaXz-Gy.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-DCg4Dkdi.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const g=o`<svg fill="none" viewBox="0 0 40 40">
1
+ import{w as o}from"./index-DINq8R6m.js";import"./index.browser.esm-I7fg10vC.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-q_66wTX8.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const g=o`<svg fill="none" viewBox="0 0 40 40">
2
2
  <path
3
3
  fill="#4285F4"
4
4
  d="M32.74 20.3c0-.93-.08-1.81-.24-2.66H20.26v5.03h7a6 6 0 0 1-2.62 3.91v3.28h4.22c2.46-2.27 3.88-5.6 3.88-9.56Z"
@@ -1 +1 @@
1
- import{a as e}from"./vendor-axios-NIGUFBhG.js";import{B as o}from"./index-DCg4Dkdi.js";class i{async task(a,t){return await e.post("/hailuo/tasks",{action:"retrieve",id:a},{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${t.token}`,"x-record-exempt":"true"},baseURL:o})}async tasks(a,t){return await e.post("/hailuo/tasks",{action:"retrieve_batch",...a.ids?{ids:a.ids}:{},...a.applicationId?{application_id:a.applicationId}:{},...a.userId?{user_id:a.userId}:{},...a.type?{type:a.type}:{},...a.limit!==void 0?{limit:a.limit}:{},...a.offset!==void 0?{offset:a.offset}:{},...a.createdAtMax!==void 0?{created_at_max:a.createdAtMax}:{},...a.createdAtMin!==void 0?{created_at_min:a.createdAtMin}:{}},{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${t.token}`,"x-record-exempt":"true"},baseURL:o})}async generate(a,t){return await e.post("/hailuo/videos",a,{headers:{authorization:`Bearer ${t.token}`,"content-type":"application/json",accept:"application/x-ndjson"},baseURL:o})}}const c=new i;export{c as h};
1
+ import{a as e}from"./vendor-axios-NIGUFBhG.js";import{B as o}from"./index-q_66wTX8.js";class i{async task(a,t){return await e.post("/hailuo/tasks",{action:"retrieve",id:a},{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${t.token}`,"x-record-exempt":"true"},baseURL:o})}async tasks(a,t){return await e.post("/hailuo/tasks",{action:"retrieve_batch",...a.ids?{ids:a.ids}:{},...a.applicationId?{application_id:a.applicationId}:{},...a.userId?{user_id:a.userId}:{},...a.type?{type:a.type}:{},...a.limit!==void 0?{limit:a.limit}:{},...a.offset!==void 0?{offset:a.offset}:{},...a.createdAtMax!==void 0?{created_at_max:a.createdAtMax}:{},...a.createdAtMin!==void 0?{created_at_min:a.createdAtMin}:{}},{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${t.token}`,"x-record-exempt":"true"},baseURL:o})}async generate(a,t){return await e.post("/hailuo/videos",a,{headers:{authorization:`Bearer ${t.token}`,"content-type":"application/json",accept:"application/x-ndjson"},baseURL:o})}}const c=new i;export{c as h};
@@ -1 +1 @@
1
- import{a as e}from"./vendor-axios-NIGUFBhG.js";import{B as o}from"./index-DCg4Dkdi.js";class s{async task(a,t){return await e.post("/headshots/tasks",{action:"retrieve",id:a},{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${t.token}`,"x-record-exempt":"true"},baseURL:o})}async tasks(a,t){return await e.post("/headshots/tasks",{action:"retrieve_batch",...a.ids?{ids:a.ids}:{},...a.applicationId?{application_id:a.applicationId}:{},...a.userId?{user_id:a.userId}:{},...a.limit!==void 0?{limit:a.limit}:{},...a.offset!==void 0?{offset:a.offset}:{},...a.createdAtMax!==void 0?{created_at_max:a.createdAtMax}:{},...a.createdAtMin!==void 0?{created_at_min:a.createdAtMin}:{}},{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${t.token}`,"x-record-exempt":"true"},baseURL:o})}async generate(a,t){return await e.post("/headshots/generate",a,{headers:{authorization:`Bearer ${t.token}`,"content-type":"application/json",accept:"application/x-ndjson"},baseURL:o})}}const c=new s;export{c as h};
1
+ import{a as e}from"./vendor-axios-NIGUFBhG.js";import{B as o}from"./index-q_66wTX8.js";class s{async task(a,t){return await e.post("/headshots/tasks",{action:"retrieve",id:a},{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${t.token}`,"x-record-exempt":"true"},baseURL:o})}async tasks(a,t){return await e.post("/headshots/tasks",{action:"retrieve_batch",...a.ids?{ids:a.ids}:{},...a.applicationId?{application_id:a.applicationId}:{},...a.userId?{user_id:a.userId}:{},...a.limit!==void 0?{limit:a.limit}:{},...a.offset!==void 0?{offset:a.offset}:{},...a.createdAtMax!==void 0?{created_at_max:a.createdAtMax}:{},...a.createdAtMin!==void 0?{created_at_min:a.createdAtMin}:{}},{headers:{accept:"application/json","content-type":"application/json",authorization:`Bearer ${t.token}`,"x-record-exempt":"true"},baseURL:o})}async generate(a,t){return await e.post("/headshots/generate",a,{headers:{authorization:`Bearer ${t.token}`,"content-type":"application/json",accept:"application/x-ndjson"},baseURL:o})}}const c=new s;export{c as h};
@@ -1 +1 @@
1
- const e={"name.taskId":{message:"任务 ID",description:"任务的 ID"},"name.mode":{message:"生成速度",description:"速度参数的名称,用于设置生成图像的速度"},"name.type":{message:"类型",description:"要生成的 QR 码的内容类型,如'链接'、'文本'等"},"name.failure":{message:"失败",description:"任务的失败状态"},"name.failureReason":{message:"失败原因",description:"任务失败的原因"},"name.status":{message:"状态",description:"任务的状态"},"name.traceId":{message:"追踪 ID",description:"任务的追踪 ID"},"name.size":{message:"尺寸",description:"要生成的 QR 码的尺寸"},"name.createdAt":{message:"创建时间",description:"生成 QR 码的日期和时间"},"name.endImageUrls":{message:"人像图片",description:"要生成的 QR 码的种子"},"description.endImageUrls":{message:"根据此人像图片生成对应的证件照",description:"要生成的 QR 码的种子"},"name.content":{message:"内容",description:"要生成的 QR 码的内容"},"field.elements":{message:"证件照风格",description:"用于生成图像的绘画风格"},"name.headshotsBot":{message:"Headshots Bot",description:"Headshots 证件照生成的名称"},"name.contentImageUrl":{message:"内容图片链接",description:"要生成的 QR 码的内容图片 URL"},"inputWay.input":{message:"输入内容",description:"输入方式"},"status.pending":{message:"等待中",description:"任务的等待状态"},"status.processing":{message:"处理中",description:"任务的等待状态"},"placeholder.paddingNoise":{message:"请选择...",description:"填充噪音输入的占位符"},"placeholder.paddingLevel":{message:"请选择...",description:"填充级别的占位符"},"placeholder.prompt":{message:"输入要生成的视频风格的提示词,例如:Astronauts shuttle from space to volcano",description:"提示字段中的占位文本"},"button.fast":{message:"快速",description:"按钮文本,允许用户将'快速模式'设置为快速以生成图像,必须翻译为'快速模式'"},"button.relax":{message:"慢速",description:"按钮文本,允许用户将'慢速模式'设置为放松以生成图像,必须翻译为'慢速模式'"},"button.generate":{message:"生成",description:"生成Headshots证件照 的按钮文本"},"button.viewImage":{message:"查看原图",description:"生成Headshots证件照 的按钮文本"},"button.download":{message:"下载图片",description:"下载图片按钮文本"},"button.uploadImageUrls":{message:"上传人像图片",description:"上传人像图片按钮文本(英文请简化为“Upload”,避免过长遮挡)"},"message.uploadReferencesExceed":{message:"最多可上传 5 张图片",description:"上传的图片数量超过限制时的错误消息"},"message.uploadReferencesSuccess":{message:"成功上传图片",description:"成功上传图片时的成功消息"},"message.uploadReferencesError":{message:"上传图片失败,请稍后重试",description:"图片上传失败时的错误消息"},"message.startingTask":{message:"正在启动任务...",description:"绘图任务开始时的消息"},"message.startTaskSuccess":{message:"成功发起生成任务",description:"成功启动任务时的成功消息"},"message.startTaskFailed":{message:"发起任务失败,请联系管理员",description:"启动绘图任务失败时的错误消息"},"message.usedUp":{message:"您的积分已用完,请购买更多积分后继续使用",description:"已用完时的消息"},"message.generating":{message:"生成中...",description:"图像正在生成时的消息"},"message.downloadVideo":{message:"下载此视频",description:"图像正在生成时的消息"},"message.generateFailed":{message:"生成图像失败",description:"图像生成失败时的消息"},"message.noOperations":{message:"没有可用操作",description:"没有可用操作时的消息"},"message.noTasks":{message:"没有历史任务,请点击左方生成视频",description:"没有任务时的消息"},"styleCategory.styles":{message:"证件照风格",description:"用于描述和生成图像的类别词,生成的图像应包括此标签的类别"},"styleTag.malePportrait":{message:"男形象照",description:"用于描述和生成图像的风格词,生成的图像应包括此标签的风格"},"styleTag.malePportrait2":{message:"男形象照2",description:"用于描述和生成图像的风格词,生成的图像应包括此标签的风格"},"styleTag.kindergarten":{message:"幼儿园入园照",description:"用于描述和生成图像的风格词,生成的图像应包括此标签的风格"},"styleTag.logoTshirt":{message:"企业LogoT恤照",description:"用于描述和生成图像的风格词,生成的图像应包括此标签的风格"},"styleTag.wedding":{message:"结婚登记照",description:"用于描述和生成图像的风格词,生成的图像应包括此标签的风格"},"styleTag.businessPphoto":{message:"商务风写真",description:"用于描述和生成图像的风格词,生成的图像应包括此标签的风格"},"styleTag.bobSuit":{message:"黑西装波波头",description:"用于描述和生成图像的风格词,生成的图像应包括此标签的风格"},"styleTag.femalePortrait":{message:"女性形象照",description:"用于描述和生成图像的风格词,生成的图像应包括此标签的风格"}};export{e as default};
1
+ const e={"name.taskId":{message:"任务 ID",description:"任务的 ID"},"name.mode":{message:"生成速度",description:"速度参数的名称,用于设置生成图像的速度"},"name.type":{message:"类型",description:"要生成的 QR 码的内容类型,如'链接'、'文本'等"},"name.failure":{message:"失败",description:"任务的失败状态"},"name.failureReason":{message:"失败原因",description:"任务失败的原因"},"name.status":{message:"状态",description:"任务的状态"},"name.traceId":{message:"追踪 ID",description:"任务的追踪 ID"},"name.size":{message:"尺寸",description:"要生成的 QR 码的尺寸"},"name.createdAt":{message:"创建时间",description:"生成 QR 码的日期和时间"},"name.endImageUrls":{message:"人像图片",description:"要生成的 QR 码的种子"},"description.endImageUrls":{message:"根据此人像图片生成对应的证件照",description:"要生成的 QR 码的种子"},"name.content":{message:"内容",description:"要生成的 QR 码的内容"},"field.elements":{message:"证件照风格",description:"用于生成图像的绘画风格"},"name.headshotsBot":{message:"Headshots Bot",description:"Headshots 证件照生成的名称"},"name.contentImageUrl":{message:"内容图片链接",description:"要生成的 QR 码的内容图片 URL"},"inputWay.input":{message:"输入内容",description:"输入方式"},"status.pending":{message:"等待中",description:"任务的等待状态"},"status.processing":{message:"处理中",description:"任务的等待状态"},"placeholder.paddingNoise":{message:"请选择...",description:"填充噪音输入的占位符"},"placeholder.paddingLevel":{message:"请选择...",description:"填充级别的占位符"},"placeholder.prompt":{message:"输入要生成的视频风格的提示词,例如:Astronauts shuttle from space to volcano",description:"提示字段中的占位文本"},"button.fast":{message:"快速",description:"按钮文本,允许用户将'快速模式'设置为快速以生成图像,必须翻译为'快速模式'"},"button.relax":{message:"慢速",description:"按钮文本,允许用户将'慢速模式'设置为放松以生成图像,必须翻译为'慢速模式'"},"button.generate":{message:"生成",description:"生成Headshots证件照 的按钮文本"},"button.viewImage":{message:"查看原图",description:"生成Headshots证件照 的按钮文本"},"button.download":{message:"下载图片",description:"下载图片按钮文本"},"button.uploadImageUrls":{message:"上传人像图片",description:"上传人像图片按钮文本(英文请简化为“Upload”,避免过长遮挡)"},"message.uploadReferencesExceed":{message:"最多可上传 5 张图片",description:"上传的图片数量超过限制时的错误消息"},"message.uploadReferencesSuccess":{message:"成功上传图片",description:"成功上传图片时的成功消息"},"message.uploadReferencesError":{message:"上传图片失败,请稍后重试",description:"图片上传失败时的错误消息"},"message.startingTask":{message:"正在启动任务...",description:"绘图任务开始时的消息"},"message.startTaskSuccess":{message:"成功发起生成任务",description:"成功启动任务时的成功消息"},"message.startTaskFailed":{message:"发起任务失败,请联系管理员",description:"启动绘图任务失败时的错误消息"},"message.usedUp":{message:"您的积分已用完,请购买更多积分后继续使用",description:"已用完时的消息"},"message.generating":{message:"生成中...",description:"图像正在生成时的消息"},"message.downloadVideo":{message:"下载此视频",description:"图像正在生成时的消息"},"message.generateFailed":{message:"生成图像失败",description:"图像生成失败时的消息"},"message.noOperations":{message:"没有可用操作",description:"没有可用操作时的消息"},"message.noTasks":{message:"没有历史任务,请点击左方生成视频",description:"没有任务时的消息"},"styleCategory.styles":{message:"证件照风格",description:"用于描述和生成图像的类别词,生成的图像应包括此标签的类别"},"styleTag.malePportrait":{message:"男形象照",description:"用于描述和生成图像的风格词,生成的图像应包括此标签的风格"},"styleTag.malePportrait2":{message:"男形象照2",description:"用于描述和生成图像的风格词,生成的图像应包括此标签的风格"},"styleTag.kindergarten":{message:"幼儿园入园照",description:"用于描述和生成图像的风格词,生成的图像应包括此标签的风格"},"styleTag.logoTshirt":{message:"企业LogoT恤照",description:"用于描述和生成图像的风格词,生成的图像应包括此标签的风格"},"styleTag.wedding":{message:"结婚登记照",description:"用于描述和生成图像的风格词,生成的图像应包括此标签的风格"},"styleTag.businessPphoto":{message:"商务风写真",description:"用于描述和生成图像的风格词,生成的图像应包括此标签的风格"},"styleTag.bobSuit":{message:"黑西装波波头",description:"用于描述和生成图像的风格词,生成的图像应包括此标签的风格"},"styleTag.femalePortrait":{message:"女性形象照",description:"用于描述和生成图像的风格词,生成的图像应包括此标签的风格"},"message.uploadImageExceed":{message:"最多可上传 2 张图片",description:"上传参考图片超出数量限制时的提示"},"message.uploadImageError":{message:"图片上传失败,请稍后重试",description:"参考图片上传失败时的错误提示"}};export{e as default};
@@ -1 +1 @@
1
- const e={"name.taskId":{message:"Task ID",description:"The ID of the task"},"name.mode":{message:"Generation Speed",description:"The name of the speed parameter used to set the speed of image generation"},"name.type":{message:"Type",description:"The content type of the QR code to be generated, such as 'link', 'text', etc."},"name.failure":{message:"Failure",description:"The failure status of the task"},"name.failureReason":{message:"Failure Reason",description:"The reason for the task failure"},"name.status":{message:"Status",description:"The status of the task"},"name.traceId":{message:"Trace ID",description:"The trace ID of the task"},"name.size":{message:"Size",description:"The size of the QR code to be generated"},"name.createdAt":{message:"Created At",description:"The date and time when the QR code was generated"},"name.endImageUrls":{message:"Portrait Images",description:"The seed for generating the QR code"},"description.endImageUrls":{message:"Generate corresponding ID photos based on this portrait image",description:"The seed for generating the QR code"},"name.content":{message:"Content",description:"The content of the QR code to be generated"},"field.elements":{message:"ID Photo Style",description:"The painting style used for generating the image"},"name.headshotsBot":{message:"Headshots Bot",description:"The name for generating Headshots ID photos"},"name.contentImageUrl":{message:"Content Image URL",description:"The URL of the content image for the QR code to be generated"},"inputWay.input":{message:"Input Content",description:"Input method"},"status.pending":{message:"Pending",description:"The waiting status of the task"},"status.processing":{message:"Processing",description:"The processing status of the task"},"placeholder.paddingNoise":{message:"Please select...",description:"Placeholder for padding noise input"},"placeholder.paddingLevel":{message:"Please select...",description:"Placeholder for padding level"},"placeholder.prompt":{message:"Enter a prompt for the video style to be generated, e.g., 'Astronauts shuttle from space to volcano'",description:"Placeholder text in the prompt field"},"button.fast":{message:"Fast Mode",description:"Button text allowing the user to set 'fast mode' for image generation"},"button.relax":{message:"Slow Mode",description:"Button text allowing the user to set 'slow mode' for image generation"},"button.generate":{message:"Generate",description:"Button text for generating Headshots ID photos"},"button.viewImage":{message:"View Original",description:"Button text for viewing the original Headshots ID photo"},"button.download":{message:"Download Image",description:"Button text for downloading the image"},"button.uploadImageUrls":{message:"Upload",description:"Button text for uploading portrait images (simplified to 'Upload' to avoid long text)"},"message.uploadReferencesExceed":{message:"You can upload up to 5 images",description:"Error message when the number of uploaded images exceeds the limit"},"message.uploadReferencesSuccess":{message:"Images uploaded successfully",description:"Success message when images are uploaded successfully"},"message.uploadReferencesError":{message:"Image upload failed, please try again later",description:"Error message when image upload fails"},"message.startingTask":{message:"Starting task...",description:"Message when the drawing task starts"},"message.startTaskSuccess":{message:"Task initiated successfully",description:"Success message when the task is successfully started"},"message.startTaskFailed":{message:"Failed to initiate task, please contact the administrator",description:"Error message when starting the drawing task fails"},"message.usedUp":{message:"Your credits are exhausted, please purchase more to continue using",description:"Message when credits are used up"},"message.generating":{message:"Generating...",description:"Message when the image is being generated"},"message.downloadVideo":{message:"Download this video",description:"Message when the image is being generated"},"message.generateFailed":{message:"Image generation failed",description:"Message when image generation fails"},"message.noOperations":{message:"No available operations",description:"Message when there are no available operations"},"message.noTasks":{message:"No historical tasks, please click on the left to generate a video",description:"Message when there are no tasks"},"styleCategory.styles":{message:"ID Photo Styles",description:"Category term used to describe and generate images, generated images should include this category label"},"styleTag.malePportrait":{message:"Male Portrait",description:"Style term used to describe and generate images, generated images should include this style label"},"styleTag.malePportrait2":{message:"Male Portrait 2",description:"Style term used to describe and generate images, generated images should include this style label"},"styleTag.kindergarten":{message:"Kindergarten Entrance Photo",description:"A style term used to describe and generate images; the generated image should include the style of this tag."},"styleTag.logoTshirt":{message:"Corporate Logo T-Shirt Photo",description:"A style term used to describe and generate images; the generated image should include the style of this tag."},"styleTag.wedding":{message:"Wedding Registration Photo",description:"A style term used to describe and generate images; the generated image should include the style of this tag."},"styleTag.businessPphoto":{message:"Business Portrait",description:"A style term used to describe and generate images; the generated image should include the style of this tag."},"styleTag.bobSuit":{message:"Black Suit with Bob Cut",description:"A style term used to describe and generate images; the generated image should include the style of this tag."},"styleTag.femalePortrait":{message:"Female Portrait",description:"A style term used to describe and generate images; the generated image should include the style of this tag."}};export{e as default};
1
+ const e={"name.taskId":{message:"Task ID",description:"The ID of the task"},"name.mode":{message:"Generation Speed",description:"The name of the speed parameter used to set the speed of image generation"},"name.type":{message:"Type",description:"The content type of the QR code to be generated, such as 'link', 'text', etc."},"name.failure":{message:"Failure",description:"The failure status of the task"},"name.failureReason":{message:"Failure Reason",description:"The reason for the task failure"},"name.status":{message:"Status",description:"The status of the task"},"name.traceId":{message:"Trace ID",description:"The trace ID of the task"},"name.size":{message:"Size",description:"The size of the QR code to be generated"},"name.createdAt":{message:"Created At",description:"The date and time when the QR code was generated"},"name.endImageUrls":{message:"Portrait Images",description:"The seed for generating the QR code"},"description.endImageUrls":{message:"Generate corresponding ID photos based on this portrait image",description:"The seed for generating the QR code"},"name.content":{message:"Content",description:"The content of the QR code to be generated"},"field.elements":{message:"ID Photo Style",description:"The painting style used for generating the image"},"name.headshotsBot":{message:"Headshots Bot",description:"The name for generating Headshots ID photos"},"name.contentImageUrl":{message:"Content Image URL",description:"The URL of the content image for the QR code to be generated"},"inputWay.input":{message:"Input Content",description:"Input method"},"status.pending":{message:"Pending",description:"The waiting status of the task"},"status.processing":{message:"Processing",description:"The processing status of the task"},"placeholder.paddingNoise":{message:"Please select...",description:"Placeholder for padding noise input"},"placeholder.paddingLevel":{message:"Please select...",description:"Placeholder for padding level"},"placeholder.prompt":{message:"Enter a prompt for the video style to be generated, e.g., 'Astronauts shuttle from space to volcano'",description:"Placeholder text in the prompt field"},"button.fast":{message:"Fast Mode",description:"Button text allowing the user to set 'fast mode' for image generation"},"button.relax":{message:"Slow Mode",description:"Button text allowing the user to set 'slow mode' for image generation"},"button.generate":{message:"Generate",description:"Button text for generating Headshots ID photos"},"button.viewImage":{message:"View Original",description:"Button text for viewing the original Headshots ID photo"},"button.download":{message:"Download Image",description:"Button text for downloading the image"},"button.uploadImageUrls":{message:"Upload",description:"Button text for uploading portrait images (simplified to 'Upload' to avoid long text)"},"message.uploadReferencesExceed":{message:"You can upload up to 5 images",description:"Error message when the number of uploaded images exceeds the limit"},"message.uploadReferencesSuccess":{message:"Images uploaded successfully",description:"Success message when images are uploaded successfully"},"message.uploadReferencesError":{message:"Image upload failed, please try again later",description:"Error message when image upload fails"},"message.startingTask":{message:"Starting task...",description:"Message when the drawing task starts"},"message.startTaskSuccess":{message:"Task initiated successfully",description:"Success message when the task is successfully started"},"message.startTaskFailed":{message:"Failed to initiate task, please contact the administrator",description:"Error message when starting the drawing task fails"},"message.usedUp":{message:"Your credits are exhausted, please purchase more to continue using",description:"Message when credits are used up"},"message.generating":{message:"Generating...",description:"Message when the image is being generated"},"message.downloadVideo":{message:"Download this video",description:"Message when the image is being generated"},"message.generateFailed":{message:"Image generation failed",description:"Message when image generation fails"},"message.noOperations":{message:"No available operations",description:"Message when there are no available operations"},"message.noTasks":{message:"No historical tasks, please click on the left to generate a video",description:"Message when there are no tasks"},"styleCategory.styles":{message:"ID Photo Styles",description:"Category term used to describe and generate images, generated images should include this category label"},"styleTag.malePportrait":{message:"Male Portrait",description:"Style term used to describe and generate images, generated images should include this style label"},"styleTag.malePportrait2":{message:"Male Portrait 2",description:"Style term used to describe and generate images, generated images should include this style label"},"styleTag.kindergarten":{message:"Kindergarten Entrance Photo",description:"A style term used to describe and generate images; the generated image should include the style of this tag."},"styleTag.logoTshirt":{message:"Corporate Logo T-Shirt Photo",description:"A style term used to describe and generate images; the generated image should include the style of this tag."},"styleTag.wedding":{message:"Wedding Registration Photo",description:"A style term used to describe and generate images; the generated image should include the style of this tag."},"styleTag.businessPphoto":{message:"Business Portrait",description:"A style term used to describe and generate images; the generated image should include the style of this tag."},"styleTag.bobSuit":{message:"Black Suit with Bob Cut",description:"A style term used to describe and generate images; the generated image should include the style of this tag."},"styleTag.femalePortrait":{message:"Female Portrait",description:"A style term used to describe and generate images; the generated image should include the style of this tag."},"message.uploadImageExceed":{message:"You can upload up to 2 images",description:"Warning message shown when the number of uploaded reference images exceeds the limit"},"message.uploadImageError":{message:"Failed to upload image, please try again later",description:"Error message shown when uploading a reference image fails"}};export{e as default};
@@ -1,4 +1,4 @@
1
- import{w as o}from"./index-DDzvF3is.js";import"./index.browser.esm-uBaXz-Gy.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-DCg4Dkdi.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const d=o`<svg fill="none" viewBox="0 0 16 16">
1
+ import{w as o}from"./index-DINq8R6m.js";import"./index.browser.esm-I7fg10vC.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-q_66wTX8.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const d=o`<svg fill="none" viewBox="0 0 16 16">
2
2
  <path
3
3
  fill="currentColor"
4
4
  d="M8.51 5.66a.83.83 0 0 0-.57-.2.83.83 0 0 0-.52.28.8.8 0 0 0-.25.52 1 1 0 0 1-2 0c0-.75.34-1.43.81-1.91a2.75 2.75 0 0 1 4.78 1.92c0 1.24-.8 1.86-1.25 2.2l-.04.03c-.47.36-.5.43-.5.65a1 1 0 1 1-2 0c0-1.25.8-1.86 1.24-2.2l.04-.04c.47-.36.5-.43.5-.65 0-.3-.1-.49-.24-.6ZM9.12 11.87a1.13 1.13 0 1 1-2.25 0 1.13 1.13 0 0 1 2.25 0Z"
@@ -1,4 +1,4 @@
1
- import{w as c}from"./index-DDzvF3is.js";import"./index.browser.esm-uBaXz-Gy.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-DCg4Dkdi.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const l=c`<svg
1
+ import{w as c}from"./index-DINq8R6m.js";import"./index.browser.esm-I7fg10vC.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-q_66wTX8.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const l=c`<svg
2
2
  xmlns="http://www.w3.org/2000/svg"
3
3
  width="28"
4
4
  height="28"
@@ -1,4 +1,4 @@
1
- import{w as C}from"./index-DDzvF3is.js";import"./index.browser.esm-uBaXz-Gy.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-DCg4Dkdi.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const v=C`<svg width="14" height="14" viewBox="0 0 14 14" fill="none">
1
+ import{w as C}from"./index-DINq8R6m.js";import"./index.browser.esm-I7fg10vC.js";import"./vendor-dayjs-D7e3rSuL.js";import"./index-q_66wTX8.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";import"./events-C1bJOe9X.js";import"./types-Cvj5H4DH.js";const v=C`<svg width="14" height="14" viewBox="0 0 14 14" fill="none">
2
2
  <path d="M4.98926 3.73932C4.2989 3.73932 3.73926 4.29896 3.73926 4.98932C3.73926 5.67968 4.2989 6.23932 4.98926 6.23932C5.67962 6.23932 6.23926 5.67968 6.23926 4.98932C6.23926 4.29896 5.67962 3.73932 4.98926 3.73932Z" fill="currentColor"/>
3
3
  <path fill-rule="evenodd" clip-rule="evenodd" d="M7.60497 0.500001H6.39504C5.41068 0.499977 4.59185 0.499958 3.93178 0.571471C3.24075 0.64634 2.60613 0.809093 2.04581 1.21619C1.72745 1.44749 1.44749 1.72745 1.21619 2.04581C0.809093 2.60613 0.64634 3.24075 0.571471 3.93178C0.499958 4.59185 0.499977 5.41065 0.500001 6.39501V7.57815C0.499998 8.37476 0.499995 9.05726 0.534869 9.62725C0.570123 10.2034 0.644114 10.7419 0.828442 11.2302C0.925651 11.4877 1.05235 11.7287 1.21619 11.9542C1.44749 12.2726 1.72745 12.5525 2.04581 12.7838C2.60613 13.1909 3.24075 13.3537 3.93178 13.4285C4.59185 13.5001 5.41066 13.5 6.39503 13.5H7.60496C8.58933 13.5 9.40815 13.5001 10.0682 13.4285C10.7593 13.3537 11.3939 13.1909 11.9542 12.7838C12.2726 12.5525 12.5525 12.2726 12.7838 11.9542C13.1909 11.3939 13.3537 10.7593 13.4285 10.0682C13.5 9.40816 13.5 8.58935 13.5 7.60497V6.39505C13.5 5.41068 13.5 4.59185 13.4285 3.93178C13.3537 3.24075 13.1909 2.60613 12.7838 2.04581C12.5525 1.72745 12.2726 1.44749 11.9542 1.21619C11.3939 0.809093 10.7593 0.64634 10.0682 0.571471C9.40816 0.499958 8.58933 0.499977 7.60497 0.500001ZM3.22138 2.83422C3.38394 2.71612 3.62634 2.61627 4.14721 2.55984C4.68679 2.50138 5.39655 2.5 6.45 2.5H7.55C8.60345 2.5 9.31322 2.50138 9.8528 2.55984C10.3737 2.61627 10.6161 2.71612 10.7786 2.83422C10.9272 2.94216 11.0578 3.07281 11.1658 3.22138C11.2839 3.38394 11.3837 3.62634 11.4402 4.14721C11.4986 4.68679 11.5 5.39655 11.5 6.45V6.49703C10.9674 6.11617 10.386 5.84936 9.74213 5.81948C8.40536 5.75745 7.3556 6.73051 6.40509 7.84229C6.33236 7.92737 6.27406 7.98735 6.22971 8.02911L6.1919 8.00514L6.17483 7.99427C6.09523 7.94353 5.98115 7.87083 5.85596 7.80302C5.56887 7.64752 5.18012 7.4921 4.68105 7.4921C4.66697 7.4921 4.6529 7.49239 4.63884 7.49299C3.79163 7.52878 3.09922 8.1106 2.62901 8.55472C2.58751 8.59392 2.54594 8.6339 2.50435 8.6745C2.50011 8.34653 2.5 7.97569 2.5 7.55V6.45C2.5 5.39655 2.50138 4.68679 2.55984 4.14721C2.61627 3.62634 2.71612 3.38394 2.83422 3.22138C2.94216 3.07281 3.07281 2.94216 3.22138 2.83422ZM10.3703 8.14825C10.6798 8.37526 11.043 8.71839 11.4832 9.20889C11.4744 9.44992 11.4608 9.662 11.4402 9.8528C11.3837 10.3737 11.2839 10.6161 11.1658 10.7786C11.0578 10.9272 10.9272 11.0578 10.7786 11.1658C10.6161 11.2839 10.3737 11.3837 9.8528 11.4402C9.31322 11.4986 8.60345 11.5 7.55 11.5H6.45C5.39655 11.5 4.68679 11.4986 4.14721 11.4402C3.62634 11.3837 3.38394 11.2839 3.22138 11.1658C3.15484 11.1174 3.0919 11.0645 3.03298 11.0075C3.10126 10.9356 3.16806 10.8649 3.23317 10.7959L3.29772 10.7276C3.55763 10.4525 3.78639 10.2126 4.00232 10.0087C4.22016 9.80294 4.39412 9.66364 4.53524 9.57742C4.63352 9.51738 4.69022 9.49897 4.71275 9.49345C4.76387 9.49804 4.81803 9.51537 4.90343 9.56162C4.96409 9.59447 5.02355 9.63225 5.11802 9.69238L5.12363 9.69595C5.20522 9.74789 5.32771 9.82587 5.46078 9.89278C5.76529 10.0459 6.21427 10.186 6.74977 10.0158C7.21485 9.86796 7.59367 9.52979 7.92525 9.14195C8.91377 7.98571 9.38267 7.80495 9.64941 7.81733C9.7858 7.82366 10.0101 7.884 10.3703 8.14825Z" fill="currentColor"/>
4
4
  </svg>`;export{v as imageSvg};
@@ -1 +1 @@
1
- import{B as l,ao as o,a6 as p,aq as u,aV as c}from"./index-DCg4Dkdi.js";import{S as a}from"./serp-BcjVM9iR.js";import{s as d}from"./service-Djt3u4NK.js";import{a as g}from"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-dayjs-D7e3rSuL.js";import"./vendor-vue-router-DjvMdekB.js";class f{async search(e,s){return await g.post("/serp/google",e,{headers:{authorization:`Bearer ${s.token}`,"content-type":"application/json",accept:"application/json"},baseURL:l})}}const A=new f,v=({commit:t})=>{t("resetAll")},S=async({commit:t,dispatch:e},s)=>{if(console.debug("set application",s),t("setApplication",s),!s){console.debug("application is null, return");return}const r=s?.credentials?.find(n=>n?.host===window.location.origin);r?(console.debug("credential exists, set credential",r),t("setCredential",r)):(console.debug("credential not exists, start to create credential for application",s),await e("createCredential"))},b=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)},C=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:r}=await u.create({application_id:s?.id,host:window.location.origin});return console.debug("created credential success",r),t("setCredential",r),console.debug("end createCredential"),r},w=async({commit:t,state:e})=>{e.status.getService=o.Request;try{const{data:s}=await d.get(a);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 serp"),e.status.getApplications=o.Request;try{const{data:r}=await p.getAll({user_id:s?.user?.id,service_id:a});return e.status.getApplications=o.Success,t("setApplications",r.items),r.items}catch(r){console.error("get applications failed",r),e.status.getApplications=o.Error,t("setApplications",void 0),t("setApplication",void 0)}},q=({commit:t},e)=>{t("setConfig",e)},m=async({commit:t,state:e})=>{const r=e.credential?.token;if(!r){console.error("no token specified");return}const n=e.config;if(!n?.query){console.error("no query specified");return}e.status.search=o.Request;try{const{data:i}=await A.search({query:n.query,type:n.type,number:n.number,page:n.page,country:n.country,language:n.language,range:n.range},{token:r});e.status.search=o.Success,t("setResults",i)}catch(i){console.error("search failed",i),e.status.search=o.Error,t("setResults",void 0)}},E={createCredential:C,setService:h,getService:w,resetAll:v,setCredential:y,setConfig:q,setApplications:b,setApplication:S,getApplications:R,search:m},_=t=>{Object.assign(t,c())},$=(t,e)=>{t.service=e},O=(t,e)=>{t.credential=e},k=(t,e)=>{t.application=e},x=(t,e)=>{t.applications=e},j=(t,e)=>{t.config=e},B=(t,e)=>{t.results=e},I={setApplication:k,setApplications:x,setConfig:j,setCredential:O,setService:$,setResults:B,resetAll:_},G={namespaced:!0,state:c,mutations:I,actions:E};export{G as default,G as serp};
1
+ import{B as l,ao as o,a6 as p,aq as u,aV as c}from"./index-q_66wTX8.js";import{S as a}from"./serp-BcjVM9iR.js";import{s as d}from"./service-DN_YOMTy.js";import{a as g}from"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-dayjs-D7e3rSuL.js";import"./vendor-vue-router-DjvMdekB.js";class f{async search(e,s){return await g.post("/serp/google",e,{headers:{authorization:`Bearer ${s.token}`,"content-type":"application/json",accept:"application/json"},baseURL:l})}}const A=new f,v=({commit:t})=>{t("resetAll")},S=async({commit:t,dispatch:e},s)=>{if(console.debug("set application",s),t("setApplication",s),!s){console.debug("application is null, return");return}const r=s?.credentials?.find(n=>n?.host===window.location.origin);r?(console.debug("credential exists, set credential",r),t("setCredential",r)):(console.debug("credential not exists, start to create credential for application",s),await e("createCredential"))},b=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)},C=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:r}=await u.create({application_id:s?.id,host:window.location.origin});return console.debug("created credential success",r),t("setCredential",r),console.debug("end createCredential"),r},w=async({commit:t,state:e})=>{e.status.getService=o.Request;try{const{data:s}=await d.get(a);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 serp"),e.status.getApplications=o.Request;try{const{data:r}=await p.getAll({user_id:s?.user?.id,service_id:a});return e.status.getApplications=o.Success,t("setApplications",r.items),r.items}catch(r){console.error("get applications failed",r),e.status.getApplications=o.Error,t("setApplications",void 0),t("setApplication",void 0)}},q=({commit:t},e)=>{t("setConfig",e)},m=async({commit:t,state:e})=>{const r=e.credential?.token;if(!r){console.error("no token specified");return}const n=e.config;if(!n?.query){console.error("no query specified");return}e.status.search=o.Request;try{const{data:i}=await A.search({query:n.query,type:n.type,number:n.number,page:n.page,country:n.country,language:n.language,range:n.range},{token:r});e.status.search=o.Success,t("setResults",i)}catch(i){console.error("search failed",i),e.status.search=o.Error,t("setResults",void 0)}},E={createCredential:C,setService:h,getService:w,resetAll:v,setCredential:y,setConfig:q,setApplications:b,setApplication:S,getApplications:R,search:m},_=t=>{Object.assign(t,c())},$=(t,e)=>{t.service=e},O=(t,e)=>{t.credential=e},k=(t,e)=>{t.application=e},x=(t,e)=>{t.applications=e},j=(t,e)=>{t.config=e},B=(t,e)=>{t.results=e},I={setApplication:k,setApplications:x,setConfig:j,setCredential:O,setService:$,setResults:B,resetAll:_},G={namespaced:!0,state:c,mutations:I,actions:E};export{G as default,G as serp};
@@ -1 +1 @@
1
- import{S as ee,k as Ye,s as X,r as H,w as q,m as be,u as t,n as V,d as Fe,ae as Xe,X as qe,f as b,o as Ge,j as Je,I as C,x as m,J as g,O as te,E as T,Q as x,z as j,q as I,y as A,V as W,A as xe,C as Qe,M as _e,ai as Ze,F as U,R as we,ab as Ce}from"./vendor-vue-CpN3YBVJ.js";import{m as et,u as oe,a as tt}from"./typescript-BR9jNAAl.js";import{b as Te,K as Se,H as ot,U as ae,I as Y,N as Ie,bd as at,bu as nt,y as st,z as Ee,O as lt,P as it,bv as rt,bw as ut,bx as dt,by as ct,R as B,Y as pt,L as ze,M as Ne,T as Pe,A as ft}from"./index-DCg4Dkdi.js";import{u as vt}from"./index-Di6x4d6J.js";import{u as mt}from"./index-CnnRg155.js";import{u as ht,a as gt}from"./use-form-item-uOcrry0J.js";const yt=()=>Te&&/firefox/i.test(window.navigator.userAgent);let w;const bt={height:"0",visibility:"hidden",overflow:yt()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},xt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function wt(n){const l=window.getComputedStyle(n),i=l.getPropertyValue("box-sizing"),o=Number.parseFloat(l.getPropertyValue("padding-bottom"))+Number.parseFloat(l.getPropertyValue("padding-top")),u=Number.parseFloat(l.getPropertyValue("border-bottom-width"))+Number.parseFloat(l.getPropertyValue("border-top-width"));return{contextStyle:xt.map(d=>[d,l.getPropertyValue(d)]),paddingSize:o,borderSize:u,boxSizing:i}}function ke(n,l=1,i){var o;w||(w=document.createElement("textarea"),document.body.appendChild(w));const{paddingSize:u,borderSize:p,boxSizing:d,contextStyle:c}=wt(n);c.forEach(([h,E])=>w?.style.setProperty(h,E)),Object.entries(bt).forEach(([h,E])=>w?.style.setProperty(h,E,"important")),w.value=n.value||n.placeholder||"";let s=w.scrollHeight;const y={};d==="border-box"?s=s+p:d==="content-box"&&(s=s-u),w.value="";const v=w.scrollHeight-u;if(Se(l)){let h=v*l;d==="border-box"&&(h=h+u+p),s=Math.max(h,s),y.minHeight=`${h}px`}if(Se(i)){let h=v*i;d==="border-box"&&(h=h+u+p),s=Math.min(h,s)}return y.height=`${s}px`,(o=w.parentNode)==null||o.removeChild(w),w=void 0,y}const Ct=ot({id:{type:String,default:void 0},size:at,disabled:Boolean,modelValue:{type:Y([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Y([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:Ie},prefixIcon:{type:Ie},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Y([Object,Array,String]),default:()=>et({})},autofocus:Boolean,rows:{type:Number,default:2},...vt(["ariaLabel"]),inputmode:{type:Y(String),default:void 0},name:String}),St={[ae]:n=>ee(n),input:n=>ee(n),change:n=>ee(n),focus:n=>n instanceof FocusEvent,blur:n=>n instanceof FocusEvent,clear:()=>!0,mouseleave:n=>n instanceof MouseEvent,mouseenter:n=>n instanceof MouseEvent,keydown:n=>n instanceof Event,compositionstart:n=>n instanceof CompositionEvent,compositionupdate:n=>n instanceof CompositionEvent,compositionend:n=>n instanceof CompositionEvent};function It(n,{disabled:l,beforeFocus:i,afterFocus:o,beforeBlur:u,afterBlur:p}={}){const d=Ye(),{emit:c}=d,s=X(),y=H(!1),v=f=>{const a=be(i)?i(f):!1;t(l)||y.value||a||(y.value=!0,c("focus",f),o?.())},h=f=>{var a;const z=be(u)?u(f):!1;t(l)||f.relatedTarget&&((a=s.value)!=null&&a.contains(f.relatedTarget))||z||(y.value=!1,c("blur",f),p?.())},E=f=>{var a,z;t(l)||nt(f.target)||(a=s.value)!=null&&a.contains(document.activeElement)&&s.value!==document.activeElement||(z=n.value)==null||z.focus()};return q([s,()=>t(l)],([f,a])=>{f&&(a?f.removeAttribute("tabindex"):f.setAttribute("tabindex","-1"))}),oe(s,"focus",v,!0),oe(s,"blur",h,!0),oe(s,"click",E,!0),{isFocused:y,wrapperRef:s,handleFocus:v,handleBlur:h}}const Et=n=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(n);function zt({afterComposition:n,emit:l}){const i=H(!1),o=c=>{l?.("compositionstart",c),i.value=!0},u=c=>{var s;l?.("compositionupdate",c);const y=(s=c.target)==null?void 0:s.value,v=y[y.length-1]||"";i.value=!Et(v)},p=c=>{l?.("compositionend",c),i.value&&(i.value=!1,V(()=>n(c)))};return{isComposing:i,handleComposition:c=>{c.type==="compositionend"?p(c):u(c)},handleCompositionStart:o,handleCompositionUpdate:u,handleCompositionEnd:p}}function Nt(n){let l;function i(){if(n.value==null)return;const{selectionStart:u,selectionEnd:p,value:d}=n.value;if(u==null||p==null)return;const c=d.slice(0,Math.max(0,u)),s=d.slice(Math.max(0,p));l={selectionStart:u,selectionEnd:p,value:d,beforeTxt:c,afterTxt:s}}function o(){if(n.value==null||l==null)return;const{value:u}=n.value,{beforeTxt:p,afterTxt:d,selectionStart:c}=l;if(p==null||d==null||c==null)return;let s=u.length;if(u.endsWith(d))s=u.length-d.length;else if(u.startsWith(p))s=p.length;else{const y=p[c-1],v=u.indexOf(y,c-1);v!==-1&&(s=v+1)}n.value.setSelectionRange(s,s)}return[i,o]}const Pt="ElInput",kt=Fe({name:Pt,inheritAttrs:!1}),Ft=Fe({...kt,props:Ct,emits:St,setup(n,{expose:l,emit:i}){const o=n,u=Xe(),p=mt(),d=qe(),c=b(()=>[o.type==="textarea"?z.b():a.b(),a.m(E.value),a.is("disabled",f.value),a.is("exceed",Be.value),{[a.b("group")]:d.prepend||d.append,[a.m("prefix")]:d.prefix||o.prefixIcon,[a.m("suffix")]:d.suffix||o.suffixIcon||o.clearable||o.showPassword,[a.bm("suffix","password-clear")]:K.value&&Q.value,[a.b("hidden")]:o.type==="hidden"},u.class]),s=b(()=>[a.e("wrapper"),a.is("focus",J.value)]),{form:y,formItem:v}=ht(),{inputId:h}=gt(o,{formItemContext:v}),E=lt(),f=it(),a=Ee("input"),z=Ee("textarea"),L=X(),S=X(),G=H(!1),$=H(!1),ne=H(),D=X(o.inputStyle),P=b(()=>L.value||S.value),{wrapperRef:Ve,isFocused:J,handleFocus:Me,handleBlur:Re}=It(P,{disabled:f,afterBlur(){var e;o.validateEvent&&((e=v?.validate)==null||e.call(v,"blur").catch(r=>Pe()))}}),se=b(()=>{var e;return(e=y?.statusIcon)!=null?e:!1}),M=b(()=>v?.validateState||""),le=b(()=>M.value&&rt[M.value]),Oe=b(()=>$.value?ut:dt),Ae=b(()=>[u.style]),ie=b(()=>[o.inputStyle,D.value,{resize:o.resize}]),N=b(()=>ct(o.modelValue)?"":String(o.modelValue)),K=b(()=>o.clearable&&!f.value&&!o.readonly&&!!N.value&&(J.value||G.value)),Q=b(()=>o.showPassword&&!f.value&&!!N.value),k=b(()=>o.showWordLimit&&!!o.maxlength&&(o.type==="text"||o.type==="textarea")&&!f.value&&!o.readonly&&!o.showPassword),_=b(()=>N.value.length),Be=b(()=>!!k.value&&_.value>Number(o.maxlength)),He=b(()=>!!d.suffix||!!o.suffixIcon||K.value||o.showPassword||k.value||!!M.value&&se.value),[re,ue]=Nt(L);tt(S,e=>{if(Le(),!k.value||o.resize!=="both")return;const r=e[0],{width:F}=r.contentRect;ne.value={right:`calc(100% - ${F+15+6}px)`}});const R=()=>{const{type:e,autosize:r}=o;if(!(!Te||e!=="textarea"||!S.value))if(r){const F=Ce(r)?r.minRows:void 0,ge=Ce(r)?r.maxRows:void 0,ye=ke(S.value,F,ge);D.value={overflowY:"hidden",...ye},V(()=>{S.value.offsetHeight,D.value=ye})}else D.value={minHeight:ke(S.value).minHeight}},Le=(e=>{let r=!1;return()=>{var F;if(r||!o.autosize)return;((F=S.value)==null?void 0:F.offsetParent)===null||(e(),r=!0)}})(R),O=()=>{const e=P.value,r=o.formatter?o.formatter(N.value):N.value;!e||e.value===r||(e.value=r)},Z=async e=>{re();let{value:r}=e.target;if(o.formatter&&o.parser&&(r=o.parser(r)),!ce.value){if(r===N.value){O();return}i(ae,r),i(ze,r),await V(),O(),ue()}},de=e=>{let{value:r}=e.target;o.formatter&&o.parser&&(r=o.parser(r)),i(Ne,r)},{isComposing:ce,handleCompositionStart:pe,handleCompositionUpdate:fe,handleCompositionEnd:ve}=zt({emit:i,afterComposition:Z}),$e=()=>{re(),$.value=!$.value,setTimeout(ue)},De=()=>{var e;return(e=P.value)==null?void 0:e.focus()},Ke=()=>{var e;return(e=P.value)==null?void 0:e.blur()},je=e=>{G.value=!1,i("mouseleave",e)},We=e=>{G.value=!0,i("mouseenter",e)},me=e=>{i("keydown",e)},Ue=()=>{var e;(e=P.value)==null||e.select()},he=()=>{i(ae,""),i(Ne,""),i("clear"),i(ze,"")};return q(()=>o.modelValue,()=>{var e;V(()=>R()),o.validateEvent&&((e=v?.validate)==null||e.call(v,"change").catch(r=>Pe()))}),q(N,()=>O()),q(()=>o.type,async()=>{await V(),O(),R()}),Ge(()=>{!o.formatter&&o.parser,O(),V(R)}),l({input:L,textarea:S,ref:P,textareaStyle:ie,autosize:Je(o,"autosize"),isComposing:ce,focus:De,blur:Ke,select:Ue,clear:he,resizeTextarea:R}),(e,r)=>(m(),C("div",{class:x([t(c),{[t(a).bm("group","append")]:e.$slots.append,[t(a).bm("group","prepend")]:e.$slots.prepend}]),style:we(t(Ae)),onMouseenter:We,onMouseleave:je},[g(" input "),e.type!=="textarea"?(m(),C(te,{key:0},[g(" prepend slot "),e.$slots.prepend?(m(),C("div",{key:0,class:x(t(a).be("group","prepend"))},[j(e.$slots,"prepend")],2)):g("v-if",!0),T("div",{ref_key:"wrapperRef",ref:Ve,class:x(t(s))},[g(" prefix slot "),e.$slots.prefix||e.prefixIcon?(m(),C("span",{key:0,class:x(t(a).e("prefix"))},[T("span",{class:x(t(a).e("prefix-inner"))},[j(e.$slots,"prefix"),e.prefixIcon?(m(),I(t(B),{key:0,class:x(t(a).e("icon"))},{default:A(()=>[(m(),I(W(e.prefixIcon)))]),_:1},8,["class"])):g("v-if",!0)],2)],2)):g("v-if",!0),T("input",xe({id:t(h),ref_key:"input",ref:L,class:t(a).e("inner")},t(p),{name:e.name,minlength:e.minlength,maxlength:e.maxlength,type:e.showPassword?$.value?"text":"password":e.type,disabled:t(f),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-label":e.ariaLabel,placeholder:e.placeholder,style:e.inputStyle,form:e.form,autofocus:e.autofocus,role:e.containerRole,inputmode:e.inputmode,onCompositionstart:t(pe),onCompositionupdate:t(fe),onCompositionend:t(ve),onInput:Z,onChange:de,onKeydown:me}),null,16,["id","name","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","inputmode","onCompositionstart","onCompositionupdate","onCompositionend"]),g(" suffix slot "),t(He)?(m(),C("span",{key:1,class:x(t(a).e("suffix"))},[T("span",{class:x(t(a).e("suffix-inner"))},[!t(K)||!t(Q)||!t(k)?(m(),C(te,{key:0},[j(e.$slots,"suffix"),e.suffixIcon?(m(),I(t(B),{key:0,class:x(t(a).e("icon"))},{default:A(()=>[(m(),I(W(e.suffixIcon)))]),_:1},8,["class"])):g("v-if",!0)],64)):g("v-if",!0),t(K)?(m(),I(t(B),{key:1,class:x([t(a).e("icon"),t(a).e("clear")]),onMousedown:_e(t(Ze),["prevent"]),onClick:he},{default:A(()=>[Qe(t(pt))]),_:1},8,["class","onMousedown"])):g("v-if",!0),t(Q)?(m(),I(t(B),{key:2,class:x([t(a).e("icon"),t(a).e("password")]),onClick:$e},{default:A(()=>[(m(),I(W(t(Oe))))]),_:1},8,["class"])):g("v-if",!0),t(k)?(m(),C("span",{key:3,class:x(t(a).e("count"))},[T("span",{class:x(t(a).e("count-inner"))},U(t(_))+" / "+U(e.maxlength),3)],2)):g("v-if",!0),t(M)&&t(le)&&t(se)?(m(),I(t(B),{key:4,class:x([t(a).e("icon"),t(a).e("validateIcon"),t(a).is("loading",t(M)==="validating")])},{default:A(()=>[(m(),I(W(t(le))))]),_:1},8,["class"])):g("v-if",!0)],2)],2)):g("v-if",!0)],2),g(" append slot "),e.$slots.append?(m(),C("div",{key:1,class:x(t(a).be("group","append"))},[j(e.$slots,"append")],2)):g("v-if",!0)],64)):(m(),C(te,{key:1},[g(" textarea "),T("textarea",xe({id:t(h),ref_key:"textarea",ref:S,class:[t(z).e("inner"),t(a).is("focus",t(J))]},t(p),{minlength:e.minlength,maxlength:e.maxlength,tabindex:e.tabindex,disabled:t(f),readonly:e.readonly,autocomplete:e.autocomplete,style:t(ie),"aria-label":e.ariaLabel,placeholder:e.placeholder,form:e.form,autofocus:e.autofocus,rows:e.rows,role:e.containerRole,onCompositionstart:t(pe),onCompositionupdate:t(fe),onCompositionend:t(ve),onInput:Z,onFocus:t(Me),onBlur:t(Re),onChange:de,onKeydown:me}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),t(k)?(m(),C("span",{key:0,style:we(ne.value),class:x(t(a).e("count"))},U(t(_))+" / "+U(e.maxlength),7)):g("v-if",!0)],64))],38))}});var Tt=st(Ft,[["__file","input.vue"]]);const Lt=ft(Tt);export{Lt as E,It as a,zt as u};
1
+ import{S as ee,k as Ye,s as X,r as H,w as q,m as be,u as t,n as V,d as Fe,ae as Xe,X as qe,f as b,o as Ge,j as Je,I as C,x as m,J as g,O as te,E as T,Q as x,z as j,q as I,y as A,V as W,A as xe,C as Qe,M as _e,ai as Ze,F as U,R as we,ab as Ce}from"./vendor-vue-CpN3YBVJ.js";import{m as et,u as oe,a as tt}from"./typescript-Ckmdn4KJ.js";import{b as Te,K as Se,H as ot,U as ae,I as Y,N as Ie,bd as at,bu as nt,y as st,z as Ee,O as lt,P as it,bv as rt,bw as ut,bx as dt,by as ct,R as B,Y as pt,L as ze,M as Ne,T as Pe,A as ft}from"./index-q_66wTX8.js";import{u as vt}from"./index-CCusmSuq.js";import{u as mt}from"./index-BQxTkntr.js";import{u as ht,a as gt}from"./use-form-item-DyyKqmqf.js";const yt=()=>Te&&/firefox/i.test(window.navigator.userAgent);let w;const bt={height:"0",visibility:"hidden",overflow:yt()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},xt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function wt(n){const l=window.getComputedStyle(n),i=l.getPropertyValue("box-sizing"),o=Number.parseFloat(l.getPropertyValue("padding-bottom"))+Number.parseFloat(l.getPropertyValue("padding-top")),u=Number.parseFloat(l.getPropertyValue("border-bottom-width"))+Number.parseFloat(l.getPropertyValue("border-top-width"));return{contextStyle:xt.map(d=>[d,l.getPropertyValue(d)]),paddingSize:o,borderSize:u,boxSizing:i}}function ke(n,l=1,i){var o;w||(w=document.createElement("textarea"),document.body.appendChild(w));const{paddingSize:u,borderSize:p,boxSizing:d,contextStyle:c}=wt(n);c.forEach(([h,E])=>w?.style.setProperty(h,E)),Object.entries(bt).forEach(([h,E])=>w?.style.setProperty(h,E,"important")),w.value=n.value||n.placeholder||"";let s=w.scrollHeight;const y={};d==="border-box"?s=s+p:d==="content-box"&&(s=s-u),w.value="";const v=w.scrollHeight-u;if(Se(l)){let h=v*l;d==="border-box"&&(h=h+u+p),s=Math.max(h,s),y.minHeight=`${h}px`}if(Se(i)){let h=v*i;d==="border-box"&&(h=h+u+p),s=Math.min(h,s)}return y.height=`${s}px`,(o=w.parentNode)==null||o.removeChild(w),w=void 0,y}const Ct=ot({id:{type:String,default:void 0},size:at,disabled:Boolean,modelValue:{type:Y([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Y([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:Ie},prefixIcon:{type:Ie},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Y([Object,Array,String]),default:()=>et({})},autofocus:Boolean,rows:{type:Number,default:2},...vt(["ariaLabel"]),inputmode:{type:Y(String),default:void 0},name:String}),St={[ae]:n=>ee(n),input:n=>ee(n),change:n=>ee(n),focus:n=>n instanceof FocusEvent,blur:n=>n instanceof FocusEvent,clear:()=>!0,mouseleave:n=>n instanceof MouseEvent,mouseenter:n=>n instanceof MouseEvent,keydown:n=>n instanceof Event,compositionstart:n=>n instanceof CompositionEvent,compositionupdate:n=>n instanceof CompositionEvent,compositionend:n=>n instanceof CompositionEvent};function It(n,{disabled:l,beforeFocus:i,afterFocus:o,beforeBlur:u,afterBlur:p}={}){const d=Ye(),{emit:c}=d,s=X(),y=H(!1),v=f=>{const a=be(i)?i(f):!1;t(l)||y.value||a||(y.value=!0,c("focus",f),o?.())},h=f=>{var a;const z=be(u)?u(f):!1;t(l)||f.relatedTarget&&((a=s.value)!=null&&a.contains(f.relatedTarget))||z||(y.value=!1,c("blur",f),p?.())},E=f=>{var a,z;t(l)||nt(f.target)||(a=s.value)!=null&&a.contains(document.activeElement)&&s.value!==document.activeElement||(z=n.value)==null||z.focus()};return q([s,()=>t(l)],([f,a])=>{f&&(a?f.removeAttribute("tabindex"):f.setAttribute("tabindex","-1"))}),oe(s,"focus",v,!0),oe(s,"blur",h,!0),oe(s,"click",E,!0),{isFocused:y,wrapperRef:s,handleFocus:v,handleBlur:h}}const Et=n=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(n);function zt({afterComposition:n,emit:l}){const i=H(!1),o=c=>{l?.("compositionstart",c),i.value=!0},u=c=>{var s;l?.("compositionupdate",c);const y=(s=c.target)==null?void 0:s.value,v=y[y.length-1]||"";i.value=!Et(v)},p=c=>{l?.("compositionend",c),i.value&&(i.value=!1,V(()=>n(c)))};return{isComposing:i,handleComposition:c=>{c.type==="compositionend"?p(c):u(c)},handleCompositionStart:o,handleCompositionUpdate:u,handleCompositionEnd:p}}function Nt(n){let l;function i(){if(n.value==null)return;const{selectionStart:u,selectionEnd:p,value:d}=n.value;if(u==null||p==null)return;const c=d.slice(0,Math.max(0,u)),s=d.slice(Math.max(0,p));l={selectionStart:u,selectionEnd:p,value:d,beforeTxt:c,afterTxt:s}}function o(){if(n.value==null||l==null)return;const{value:u}=n.value,{beforeTxt:p,afterTxt:d,selectionStart:c}=l;if(p==null||d==null||c==null)return;let s=u.length;if(u.endsWith(d))s=u.length-d.length;else if(u.startsWith(p))s=p.length;else{const y=p[c-1],v=u.indexOf(y,c-1);v!==-1&&(s=v+1)}n.value.setSelectionRange(s,s)}return[i,o]}const Pt="ElInput",kt=Fe({name:Pt,inheritAttrs:!1}),Ft=Fe({...kt,props:Ct,emits:St,setup(n,{expose:l,emit:i}){const o=n,u=Xe(),p=mt(),d=qe(),c=b(()=>[o.type==="textarea"?z.b():a.b(),a.m(E.value),a.is("disabled",f.value),a.is("exceed",Be.value),{[a.b("group")]:d.prepend||d.append,[a.m("prefix")]:d.prefix||o.prefixIcon,[a.m("suffix")]:d.suffix||o.suffixIcon||o.clearable||o.showPassword,[a.bm("suffix","password-clear")]:K.value&&Q.value,[a.b("hidden")]:o.type==="hidden"},u.class]),s=b(()=>[a.e("wrapper"),a.is("focus",J.value)]),{form:y,formItem:v}=ht(),{inputId:h}=gt(o,{formItemContext:v}),E=lt(),f=it(),a=Ee("input"),z=Ee("textarea"),L=X(),S=X(),G=H(!1),$=H(!1),ne=H(),D=X(o.inputStyle),P=b(()=>L.value||S.value),{wrapperRef:Ve,isFocused:J,handleFocus:Me,handleBlur:Re}=It(P,{disabled:f,afterBlur(){var e;o.validateEvent&&((e=v?.validate)==null||e.call(v,"blur").catch(r=>Pe()))}}),se=b(()=>{var e;return(e=y?.statusIcon)!=null?e:!1}),M=b(()=>v?.validateState||""),le=b(()=>M.value&&rt[M.value]),Oe=b(()=>$.value?ut:dt),Ae=b(()=>[u.style]),ie=b(()=>[o.inputStyle,D.value,{resize:o.resize}]),N=b(()=>ct(o.modelValue)?"":String(o.modelValue)),K=b(()=>o.clearable&&!f.value&&!o.readonly&&!!N.value&&(J.value||G.value)),Q=b(()=>o.showPassword&&!f.value&&!!N.value),k=b(()=>o.showWordLimit&&!!o.maxlength&&(o.type==="text"||o.type==="textarea")&&!f.value&&!o.readonly&&!o.showPassword),_=b(()=>N.value.length),Be=b(()=>!!k.value&&_.value>Number(o.maxlength)),He=b(()=>!!d.suffix||!!o.suffixIcon||K.value||o.showPassword||k.value||!!M.value&&se.value),[re,ue]=Nt(L);tt(S,e=>{if(Le(),!k.value||o.resize!=="both")return;const r=e[0],{width:F}=r.contentRect;ne.value={right:`calc(100% - ${F+15+6}px)`}});const R=()=>{const{type:e,autosize:r}=o;if(!(!Te||e!=="textarea"||!S.value))if(r){const F=Ce(r)?r.minRows:void 0,ge=Ce(r)?r.maxRows:void 0,ye=ke(S.value,F,ge);D.value={overflowY:"hidden",...ye},V(()=>{S.value.offsetHeight,D.value=ye})}else D.value={minHeight:ke(S.value).minHeight}},Le=(e=>{let r=!1;return()=>{var F;if(r||!o.autosize)return;((F=S.value)==null?void 0:F.offsetParent)===null||(e(),r=!0)}})(R),O=()=>{const e=P.value,r=o.formatter?o.formatter(N.value):N.value;!e||e.value===r||(e.value=r)},Z=async e=>{re();let{value:r}=e.target;if(o.formatter&&o.parser&&(r=o.parser(r)),!ce.value){if(r===N.value){O();return}i(ae,r),i(ze,r),await V(),O(),ue()}},de=e=>{let{value:r}=e.target;o.formatter&&o.parser&&(r=o.parser(r)),i(Ne,r)},{isComposing:ce,handleCompositionStart:pe,handleCompositionUpdate:fe,handleCompositionEnd:ve}=zt({emit:i,afterComposition:Z}),$e=()=>{re(),$.value=!$.value,setTimeout(ue)},De=()=>{var e;return(e=P.value)==null?void 0:e.focus()},Ke=()=>{var e;return(e=P.value)==null?void 0:e.blur()},je=e=>{G.value=!1,i("mouseleave",e)},We=e=>{G.value=!0,i("mouseenter",e)},me=e=>{i("keydown",e)},Ue=()=>{var e;(e=P.value)==null||e.select()},he=()=>{i(ae,""),i(Ne,""),i("clear"),i(ze,"")};return q(()=>o.modelValue,()=>{var e;V(()=>R()),o.validateEvent&&((e=v?.validate)==null||e.call(v,"change").catch(r=>Pe()))}),q(N,()=>O()),q(()=>o.type,async()=>{await V(),O(),R()}),Ge(()=>{!o.formatter&&o.parser,O(),V(R)}),l({input:L,textarea:S,ref:P,textareaStyle:ie,autosize:Je(o,"autosize"),isComposing:ce,focus:De,blur:Ke,select:Ue,clear:he,resizeTextarea:R}),(e,r)=>(m(),C("div",{class:x([t(c),{[t(a).bm("group","append")]:e.$slots.append,[t(a).bm("group","prepend")]:e.$slots.prepend}]),style:we(t(Ae)),onMouseenter:We,onMouseleave:je},[g(" input "),e.type!=="textarea"?(m(),C(te,{key:0},[g(" prepend slot "),e.$slots.prepend?(m(),C("div",{key:0,class:x(t(a).be("group","prepend"))},[j(e.$slots,"prepend")],2)):g("v-if",!0),T("div",{ref_key:"wrapperRef",ref:Ve,class:x(t(s))},[g(" prefix slot "),e.$slots.prefix||e.prefixIcon?(m(),C("span",{key:0,class:x(t(a).e("prefix"))},[T("span",{class:x(t(a).e("prefix-inner"))},[j(e.$slots,"prefix"),e.prefixIcon?(m(),I(t(B),{key:0,class:x(t(a).e("icon"))},{default:A(()=>[(m(),I(W(e.prefixIcon)))]),_:1},8,["class"])):g("v-if",!0)],2)],2)):g("v-if",!0),T("input",xe({id:t(h),ref_key:"input",ref:L,class:t(a).e("inner")},t(p),{name:e.name,minlength:e.minlength,maxlength:e.maxlength,type:e.showPassword?$.value?"text":"password":e.type,disabled:t(f),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-label":e.ariaLabel,placeholder:e.placeholder,style:e.inputStyle,form:e.form,autofocus:e.autofocus,role:e.containerRole,inputmode:e.inputmode,onCompositionstart:t(pe),onCompositionupdate:t(fe),onCompositionend:t(ve),onInput:Z,onChange:de,onKeydown:me}),null,16,["id","name","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","inputmode","onCompositionstart","onCompositionupdate","onCompositionend"]),g(" suffix slot "),t(He)?(m(),C("span",{key:1,class:x(t(a).e("suffix"))},[T("span",{class:x(t(a).e("suffix-inner"))},[!t(K)||!t(Q)||!t(k)?(m(),C(te,{key:0},[j(e.$slots,"suffix"),e.suffixIcon?(m(),I(t(B),{key:0,class:x(t(a).e("icon"))},{default:A(()=>[(m(),I(W(e.suffixIcon)))]),_:1},8,["class"])):g("v-if",!0)],64)):g("v-if",!0),t(K)?(m(),I(t(B),{key:1,class:x([t(a).e("icon"),t(a).e("clear")]),onMousedown:_e(t(Ze),["prevent"]),onClick:he},{default:A(()=>[Qe(t(pt))]),_:1},8,["class","onMousedown"])):g("v-if",!0),t(Q)?(m(),I(t(B),{key:2,class:x([t(a).e("icon"),t(a).e("password")]),onClick:$e},{default:A(()=>[(m(),I(W(t(Oe))))]),_:1},8,["class"])):g("v-if",!0),t(k)?(m(),C("span",{key:3,class:x(t(a).e("count"))},[T("span",{class:x(t(a).e("count-inner"))},U(t(_))+" / "+U(e.maxlength),3)],2)):g("v-if",!0),t(M)&&t(le)&&t(se)?(m(),I(t(B),{key:4,class:x([t(a).e("icon"),t(a).e("validateIcon"),t(a).is("loading",t(M)==="validating")])},{default:A(()=>[(m(),I(W(t(le))))]),_:1},8,["class"])):g("v-if",!0)],2)],2)):g("v-if",!0)],2),g(" append slot "),e.$slots.append?(m(),C("div",{key:1,class:x(t(a).be("group","append"))},[j(e.$slots,"append")],2)):g("v-if",!0)],64)):(m(),C(te,{key:1},[g(" textarea "),T("textarea",xe({id:t(h),ref_key:"textarea",ref:S,class:[t(z).e("inner"),t(a).is("focus",t(J))]},t(p),{minlength:e.minlength,maxlength:e.maxlength,tabindex:e.tabindex,disabled:t(f),readonly:e.readonly,autocomplete:e.autocomplete,style:t(ie),"aria-label":e.ariaLabel,placeholder:e.placeholder,form:e.form,autofocus:e.autofocus,rows:e.rows,role:e.containerRole,onCompositionstart:t(pe),onCompositionupdate:t(fe),onCompositionend:t(ve),onInput:Z,onFocus:t(Me),onBlur:t(Re),onChange:de,onKeydown:me}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),t(k)?(m(),C("span",{key:0,style:we(ne.value),class:x(t(a).e("count"))},U(t(_))+" / "+U(e.maxlength),7)):g("v-if",!0)],64))],38))}});var Tt=st(Ft,[["__file","input.vue"]]);const Lt=ft(Tt);export{Lt as E,It as a,zt as u};
@@ -1 +1 @@
1
- import{e as l}from"./index-DCg4Dkdi.js";import{f as e,k as u}from"./vendor-vue-CpN3YBVJ.js";const i=["class","style"],E=/^on[A-Z]/,m=(o={})=>{const{excludeListeners:c=!1,excludeKeys:t}=o,a=e(()=>(t?.value||[]).concat(i)),s=u();return s?e(()=>{var r;return l(Object.entries((r=s.proxy)==null?void 0:r.$attrs).filter(([n])=>!a.value.includes(n)&&!(c&&E.test(n))))}):e(()=>({}))};export{m as u};
1
+ import{e as l}from"./index-q_66wTX8.js";import{f as e,k as u}from"./vendor-vue-CpN3YBVJ.js";const i=["class","style"],E=/^on[A-Z]/,m=(o={})=>{const{excludeListeners:c=!1,excludeKeys:t}=o,a=e(()=>(t?.value||[]).concat(i)),s=u();return s?e(()=>{var r;return l(Object.entries((r=s.proxy)==null?void 0:r.$attrs).filter(([n])=>!a.value.includes(n)&&!(c&&E.test(n))))}):e(()=>({}))};export{m as u};
@@ -1 +1 @@
1
- import{r as V}from"./index-BLy_0GNg.js";import{P as K,T as q}from"./index.browser.esm-uBaXz-Gy.js";import{g as X}from"./vendor-dayjs-D7e3rSuL.js";import{a as H,n as R,l as Y,e as v,j as Q,o as F}from"./events-C1bJOe9X.js";import"./index-DCg4Dkdi.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";var c;(function(t){t.PROJECT_APPROVED="PROJECT_APPROVED",t.HANDSHAKE="HANDSHAKE",t.HANDSHAKE_ACK="HANDSHAKE_ACK",t.SIGNED_TRANSACTION="SIGNED_TRANSACTION",t.SIGNED_PARTIAL_TRANSACTION="SIGNED_PARTIAL_TRANSACTION",t.FAILED_TO_SIGN_TRANSACTION="FAILED_TO_SIGN_TRANSACTION",t.TRANSACTION_DENIED="TRANSACTION_DENIED",t.SOLANA_WALLET_ADAPTER_APPROVED="SOLANA_WALLET_ADAPTER_APPROVED",t.SOLANA_WALLET_ADAPTER_DENIED="SOLANA_WALLET_ADAPTER_DENIED",t.POPUP_CLOSED="POPUP_CLOSED",t.TRANSACTION_SIGNATURE_NEEDED="TRANSACTION_SIGNATURE_NEEDED",t.TRANSACTION_SIGNATURE_NEEDED_RESPONSE="TRANSACTION_SIGNATURE_NEEDED_RESPONSE",t.AUTH_LOADED="AUTH_LOADED",t.MESSAGE_SIGNATURE_NEEDED="MESSAGE_SIGNATURE_NEEDED",t.MESSAGE_SIGNATURE_NEEDED_RESPONSE="MESSAGE_SIGNATURE_NEEDED_RESPONSE",t.ONRAMP_FULFILLMENT_COMPLETE="ONRAMP_FULFILLMENT_COMPLETE",t.ONRAMP_REJECTED="ONRAMP_REJECTED"})(c||(c={}));var b;(function(t){t.UNKNOWN="UNKNOWN",t.REACT_SDK="REACT_SDK",t.SOLANA_WALLET_ADAPTER="SOLANA_WALLET_ADAPTER"})(b||(b={}));class Z{constructor(n,e){this.validatedOrigin=n,this.targetWindow=e,this.handlers=new Map}off(n,e){const r=this.handlers.get(n);r?.delete(e)}on(n,e){var r;const s=(r=this.handlers.get(n))!==null&&r!==void 0?r:new Set;s.add(e),this.handlers.set(n,s)}send({event:n,payload:e}){this.targetWindow.postMessage({event:n,payload:e},this.validatedOrigin)}runHandlersForEvent(n,e){const r=this.handlers.get(n);if(r)for(const s of r)s(e)}resetHandlers(){this.handlers.clear()}export(){return{off:this.off.bind(this),on:this.on.bind(this),send:this.send.bind(this),validatedOrigin:this.validatedOrigin}}}const ee="https://fractal.is",ne="https://www.fractal.is",te=400,P=600;function re(t){return t===ne||t===ee}const ie="fractal:approval:popup",oe=["resizable","scrollbars=1","status=1"];function se({left:t=0,scope:n=window,top:e=0,width:r=P,height:s=P,url:l}){return n.open(l,ie,ae({height:s,left:t,top:e,width:r}))}function ae({height:t,left:n,top:e,width:r}){return["popup",`left=${n}`,`top=${e}`,`width=${r}`,`height=${t}`,...oe].join(",")}class le{constructor(n){this.platform=n,this.connection=null,this.popupWindow=null,this.handleMessage=e=>{var r,s;if(!re(e.origin))return;const l=e.origin;if(this.popupWindow){if(e.data.event===c.HANDSHAKE&&!this.connection){if(!this.verifyAndResetNonce((r=e.data.payload)===null||r===void 0?void 0:r.nonce))return;this.popupWindow.postMessage({event:c.HANDSHAKE_ACK,payload:{platform:this.platform}},l),this.connection=new Z(l,this.popupWindow),(s=this.connectionUpdatedCallback)===null||s===void 0||s.call(this,this.connection)}this.connection&&(this.connection.runHandlersForEvent(e.data.event,e.data.payload),e.data.event===c.POPUP_CLOSED&&this.connection&&(this.resetConnection(),this.popupWindow=null))}}}initialize(){return window.addEventListener("message",this.handleMessage),this}tearDown(){return window.removeEventListener("message",this.handleMessage),this.resetConnection(),this}async open({url:n,widthPx:e=te,heightPx:r=P,nonce:s}){var l;if(!((l=this.popupWindow)===null||l===void 0)&&l.closed&&this.resetConnectionAndPopupWindow(),this.popupWindow)return;this.initialize(),s&&(this.nonce=s);const u=window.screenX+(window.innerWidth-e)/2,d=window.screenY+(window.innerHeight-r)/2;this.popupWindow=se({height:r,left:u,top:d,url:typeof n=="string"?n:void 0,width:e}),n instanceof Promise&&this.setUrl(await n)}close(){this.popupWindow&&(this.popupWindow.close(),this.resetConnectionAndPopupWindow())}onConnectionUpdated(n){return this.connectionUpdatedCallback=n,this}getConnection(){return this.connection}setUrl(n){this.popupWindow&&(this.popupWindow.location=n)}resetConnectionAndPopupWindow(){this.resetConnection(),this.popupWindow=null}resetConnection(){var n,e;(n=this.connection)===null||n===void 0||n.resetHandlers(),this.connection=null,(e=this.connectionUpdatedCallback)===null||e===void 0||e.call(this,this.connection)}verifyAndResetNonce(n){if(!this.nonce)return!0;const e=n===this.nonce;return e&&(this.nonce=void 0),e}}V();function m(t){return!(t===null||typeof t!="object")}function ce(t){return!(!m(t)||!("solanaPublicKey"in t)||typeof t.solanaPublicKey!="string")}function de(t){return!m(t)||!("signedB58Transactions"in t)||!Array.isArray(t.signedB58Transactions)?!1:t.signedB58Transactions.every(n=>typeof n=="string")}function he(t){return!m(t)||!("decodedSignature"in t)?!1:typeof t.decodedSignature=="string"}var M,$;function Ae(){if($)return M;$=1;function t(n){if(n.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),r=0;r<e.length;r++)e[r]=255;for(var s=0;s<n.length;s++){var l=n.charAt(s),u=l.charCodeAt(0);if(e[u]!==255)throw new TypeError(l+" is ambiguous");e[u]=s}var d=n.length,i=n.charAt(0),o=Math.log(d)/Math.log(256),h=Math.log(256)/Math.log(d);function D(a){if(a instanceof Uint8Array||(ArrayBuffer.isView(a)?a=new Uint8Array(a.buffer,a.byteOffset,a.byteLength):Array.isArray(a)&&(a=Uint8Array.from(a))),!(a instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(a.length===0)return"";for(var p=0,N=0,f=0,g=a.length;f!==g&&a[f]===0;)f++,p++;for(var _=(g-f)*h+1>>>0,S=new Uint8Array(_);f!==g;){for(var A=a[f],w=0,T=_-1;(A!==0||w<N)&&T!==-1;T--,w++)A+=256*S[T]>>>0,S[T]=A%d>>>0,A=A/d>>>0;if(A!==0)throw new Error("Non-zero carry");N=w,f++}for(var E=_-N;E!==_&&S[E]===0;)E++;for(var O=i.repeat(p);E<_;++E)O+=n.charAt(S[E]);return O}function G(a){if(typeof a!="string")throw new TypeError("Expected String");if(a.length===0)return new Uint8Array;for(var p=0,N=0,f=0;a[p]===i;)N++,p++;for(var g=(a.length-p)*o+1>>>0,_=new Uint8Array(g);a[p];){var S=a.charCodeAt(p);if(S>255)return;var A=e[S];if(A===255)return;for(var w=0,T=g-1;(A!==0||w<f)&&T!==-1;T--,w++)A+=d*_[T]>>>0,_[T]=A%256>>>0,A=A/256>>>0;if(A!==0)throw new Error("Non-zero carry");f=w,p++}for(var E=g-f;E!==g&&_[E]===0;)E++;for(var O=new Uint8Array(N+(g-E)),J=N;E!==g;)O[J++]=_[E++];return O}function j(a){var p=G(a);if(p)return p;throw new Error("Non-base"+d+" character")}return{encode:D,decodeUnsafe:G,decode:j}}return M=t,M}var C,x;function Ee(){return x||(x=1,C=Ae()("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")),C}var pe=Ee();const B=X(pe);function I(){return`${U()}${U()}${U()}`}function U(){return(Math.random()+1).toString(36).substring(7)}const L="Unknown Error",W="https://fractal.is",ue=`${W}/wallet-adapter/approve`,fe=`${W}/wallet-adapter/sign`,ge=`${W}/wallet-adapter/sign/message`,k=P,z=850,y="RdxqNYxF";class ve{constructor(){this.popupManager=new le(b.SOLANA_WALLET_ADAPTER),this.publicKey=null,this.connecting=!1}getPublicKey(){return this.publicKey}async connect(){let n,e;const r=window.localStorage.getItem(y);if(r)return this.publicKey=new K(r),Promise.resolve();const s=I();this.popupManager.open({nonce:s,url:`${ue}/${s}`});const l=i=>{if(!ce(i)){e(new v(`Malformed payload when setting up connection. Expected { solanaPublicKey: string } but received ${JSON.stringify(i)}`)),this.popupManager.close();return}try{this.publicKey=new K(i.solanaPublicKey),window.localStorage.setItem(y,i.solanaPublicKey),n()}catch(o){const h=new Q(o instanceof Error?o.message:L,o);e(h)}this.popupManager.close()},u=()=>{e(new v("The user denied the connection.")),this.popupManager.close()},d=()=>{e(new v("The user denied the connection.")),this.popupManager.close()};return this.popupManager.onConnectionUpdated(i=>{i&&(i.on(c.SOLANA_WALLET_ADAPTER_APPROVED,l),i.on(c.SOLANA_WALLET_ADAPTER_DENIED,u),i.on(c.POPUP_CLOSED,d))}),new Promise((i,o)=>{n=i,e=o})}async disconnect(){this.popupManager.tearDown(),this.publicKey=null,window.localStorage.removeItem(y)}async signTransaction(n){try{return this.checkWalletReadiness(),(await this.signTransactions([n]))[0]}catch(e){let r=e;throw e instanceof H||(r=new R(e instanceof Error?e.message:L,e)),r}}async signAllTransactions(n){try{return this.checkWalletReadiness(),await this.signTransactions(n)}catch(e){let r=e;throw e instanceof H||(r=new R(e instanceof Error?e.message:L,e)),r}}async signMessage(n){const e=new TextDecoder().decode(n);let r,s;const l=o=>{if(!he(o)){const D=new F(`Malformed payload when signing message. Expected { decodedSignature: string } but received ${JSON.stringify(o)}`);s(D),this.popupManager.close();return}const h=Uint8Array.from(o.decodedSignature.split(",").map(D=>Number(D)));r(h),this.popupManager.close()},u=()=>{s(new F("The user did not approve the message")),this.popupManager.close()},d=()=>{var o;const h={decodedMessage:e};(o=this.popupManager.getConnection())===null||o===void 0||o.send({event:c.MESSAGE_SIGNATURE_NEEDED,payload:h})},i=I();return this.popupManager.open({heightPx:Math.max(k,Math.floor(window.innerHeight*.8)),nonce:i,url:`${ge}/${i}`,widthPx:Math.min(z,Math.floor(window.innerWidth*.8))}),this.popupManager.onConnectionUpdated(o=>{o&&(o.on(c.MESSAGE_SIGNATURE_NEEDED_RESPONSE,l),o.on(c.TRANSACTION_DENIED,u),o.on(c.POPUP_CLOSED,u),o.on(c.AUTH_LOADED,d))}),new Promise((o,h)=>{r=o,s=h})}async signTransactions(n){let e,r;const s=i=>{if(!de(i)){const h=new R(`Malformed payload when signing transactions. Expected { signedB58Transactions: string[] } but received ${JSON.stringify(i)}`);r(h),this.popupManager.close();return}const o=i.signedB58Transactions.map(h=>q.from(B.decode(h)));e(o),this.popupManager.close()},l=()=>{r(new R("The user did not approve the transaction")),this.popupManager.close()},u=()=>{var i;const o={unsignedB58Transactions:n.map(h=>B.encode(h.serializeMessage()))};(i=this.popupManager.getConnection())===null||i===void 0||i.send({event:c.TRANSACTION_SIGNATURE_NEEDED,payload:o})},d=I();return this.popupManager.open({heightPx:Math.max(k,Math.floor(window.innerHeight*.8)),nonce:d,url:`${fe}/${d}`,widthPx:Math.min(z,Math.floor(window.innerWidth*.8))}),this.popupManager.onConnectionUpdated(i=>{i&&(i.on(c.TRANSACTION_SIGNATURE_NEEDED_RESPONSE,s),i.on(c.TRANSACTION_DENIED,l),i.on(c.POPUP_CLOSED,l),i.on(c.AUTH_LOADED,u))}),new Promise((i,o)=>{e=i,r=o})}checkWalletReadiness(){if(this.publicKey===null)throw new Y("`publicKey` is null. Did you forget to call `.connect()`?")}}export{ve as FractalWalletAdapterImpl};
1
+ import{r as V}from"./index-BLy_0GNg.js";import{P as K,T as q}from"./index.browser.esm-I7fg10vC.js";import{g as X}from"./vendor-dayjs-D7e3rSuL.js";import{a as H,n as R,l as Y,e as v,j as Q,o as F}from"./events-C1bJOe9X.js";import"./index-q_66wTX8.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-vue-router-DjvMdekB.js";import"./index-4erIVwAR.js";var c;(function(t){t.PROJECT_APPROVED="PROJECT_APPROVED",t.HANDSHAKE="HANDSHAKE",t.HANDSHAKE_ACK="HANDSHAKE_ACK",t.SIGNED_TRANSACTION="SIGNED_TRANSACTION",t.SIGNED_PARTIAL_TRANSACTION="SIGNED_PARTIAL_TRANSACTION",t.FAILED_TO_SIGN_TRANSACTION="FAILED_TO_SIGN_TRANSACTION",t.TRANSACTION_DENIED="TRANSACTION_DENIED",t.SOLANA_WALLET_ADAPTER_APPROVED="SOLANA_WALLET_ADAPTER_APPROVED",t.SOLANA_WALLET_ADAPTER_DENIED="SOLANA_WALLET_ADAPTER_DENIED",t.POPUP_CLOSED="POPUP_CLOSED",t.TRANSACTION_SIGNATURE_NEEDED="TRANSACTION_SIGNATURE_NEEDED",t.TRANSACTION_SIGNATURE_NEEDED_RESPONSE="TRANSACTION_SIGNATURE_NEEDED_RESPONSE",t.AUTH_LOADED="AUTH_LOADED",t.MESSAGE_SIGNATURE_NEEDED="MESSAGE_SIGNATURE_NEEDED",t.MESSAGE_SIGNATURE_NEEDED_RESPONSE="MESSAGE_SIGNATURE_NEEDED_RESPONSE",t.ONRAMP_FULFILLMENT_COMPLETE="ONRAMP_FULFILLMENT_COMPLETE",t.ONRAMP_REJECTED="ONRAMP_REJECTED"})(c||(c={}));var b;(function(t){t.UNKNOWN="UNKNOWN",t.REACT_SDK="REACT_SDK",t.SOLANA_WALLET_ADAPTER="SOLANA_WALLET_ADAPTER"})(b||(b={}));class Z{constructor(n,e){this.validatedOrigin=n,this.targetWindow=e,this.handlers=new Map}off(n,e){const r=this.handlers.get(n);r?.delete(e)}on(n,e){var r;const s=(r=this.handlers.get(n))!==null&&r!==void 0?r:new Set;s.add(e),this.handlers.set(n,s)}send({event:n,payload:e}){this.targetWindow.postMessage({event:n,payload:e},this.validatedOrigin)}runHandlersForEvent(n,e){const r=this.handlers.get(n);if(r)for(const s of r)s(e)}resetHandlers(){this.handlers.clear()}export(){return{off:this.off.bind(this),on:this.on.bind(this),send:this.send.bind(this),validatedOrigin:this.validatedOrigin}}}const ee="https://fractal.is",ne="https://www.fractal.is",te=400,P=600;function re(t){return t===ne||t===ee}const ie="fractal:approval:popup",oe=["resizable","scrollbars=1","status=1"];function se({left:t=0,scope:n=window,top:e=0,width:r=P,height:s=P,url:l}){return n.open(l,ie,ae({height:s,left:t,top:e,width:r}))}function ae({height:t,left:n,top:e,width:r}){return["popup",`left=${n}`,`top=${e}`,`width=${r}`,`height=${t}`,...oe].join(",")}class le{constructor(n){this.platform=n,this.connection=null,this.popupWindow=null,this.handleMessage=e=>{var r,s;if(!re(e.origin))return;const l=e.origin;if(this.popupWindow){if(e.data.event===c.HANDSHAKE&&!this.connection){if(!this.verifyAndResetNonce((r=e.data.payload)===null||r===void 0?void 0:r.nonce))return;this.popupWindow.postMessage({event:c.HANDSHAKE_ACK,payload:{platform:this.platform}},l),this.connection=new Z(l,this.popupWindow),(s=this.connectionUpdatedCallback)===null||s===void 0||s.call(this,this.connection)}this.connection&&(this.connection.runHandlersForEvent(e.data.event,e.data.payload),e.data.event===c.POPUP_CLOSED&&this.connection&&(this.resetConnection(),this.popupWindow=null))}}}initialize(){return window.addEventListener("message",this.handleMessage),this}tearDown(){return window.removeEventListener("message",this.handleMessage),this.resetConnection(),this}async open({url:n,widthPx:e=te,heightPx:r=P,nonce:s}){var l;if(!((l=this.popupWindow)===null||l===void 0)&&l.closed&&this.resetConnectionAndPopupWindow(),this.popupWindow)return;this.initialize(),s&&(this.nonce=s);const u=window.screenX+(window.innerWidth-e)/2,d=window.screenY+(window.innerHeight-r)/2;this.popupWindow=se({height:r,left:u,top:d,url:typeof n=="string"?n:void 0,width:e}),n instanceof Promise&&this.setUrl(await n)}close(){this.popupWindow&&(this.popupWindow.close(),this.resetConnectionAndPopupWindow())}onConnectionUpdated(n){return this.connectionUpdatedCallback=n,this}getConnection(){return this.connection}setUrl(n){this.popupWindow&&(this.popupWindow.location=n)}resetConnectionAndPopupWindow(){this.resetConnection(),this.popupWindow=null}resetConnection(){var n,e;(n=this.connection)===null||n===void 0||n.resetHandlers(),this.connection=null,(e=this.connectionUpdatedCallback)===null||e===void 0||e.call(this,this.connection)}verifyAndResetNonce(n){if(!this.nonce)return!0;const e=n===this.nonce;return e&&(this.nonce=void 0),e}}V();function m(t){return!(t===null||typeof t!="object")}function ce(t){return!(!m(t)||!("solanaPublicKey"in t)||typeof t.solanaPublicKey!="string")}function de(t){return!m(t)||!("signedB58Transactions"in t)||!Array.isArray(t.signedB58Transactions)?!1:t.signedB58Transactions.every(n=>typeof n=="string")}function he(t){return!m(t)||!("decodedSignature"in t)?!1:typeof t.decodedSignature=="string"}var M,$;function Ae(){if($)return M;$=1;function t(n){if(n.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),r=0;r<e.length;r++)e[r]=255;for(var s=0;s<n.length;s++){var l=n.charAt(s),u=l.charCodeAt(0);if(e[u]!==255)throw new TypeError(l+" is ambiguous");e[u]=s}var d=n.length,i=n.charAt(0),o=Math.log(d)/Math.log(256),h=Math.log(256)/Math.log(d);function D(a){if(a instanceof Uint8Array||(ArrayBuffer.isView(a)?a=new Uint8Array(a.buffer,a.byteOffset,a.byteLength):Array.isArray(a)&&(a=Uint8Array.from(a))),!(a instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(a.length===0)return"";for(var p=0,N=0,f=0,g=a.length;f!==g&&a[f]===0;)f++,p++;for(var _=(g-f)*h+1>>>0,S=new Uint8Array(_);f!==g;){for(var A=a[f],w=0,T=_-1;(A!==0||w<N)&&T!==-1;T--,w++)A+=256*S[T]>>>0,S[T]=A%d>>>0,A=A/d>>>0;if(A!==0)throw new Error("Non-zero carry");N=w,f++}for(var E=_-N;E!==_&&S[E]===0;)E++;for(var O=i.repeat(p);E<_;++E)O+=n.charAt(S[E]);return O}function G(a){if(typeof a!="string")throw new TypeError("Expected String");if(a.length===0)return new Uint8Array;for(var p=0,N=0,f=0;a[p]===i;)N++,p++;for(var g=(a.length-p)*o+1>>>0,_=new Uint8Array(g);a[p];){var S=a.charCodeAt(p);if(S>255)return;var A=e[S];if(A===255)return;for(var w=0,T=g-1;(A!==0||w<f)&&T!==-1;T--,w++)A+=d*_[T]>>>0,_[T]=A%256>>>0,A=A/256>>>0;if(A!==0)throw new Error("Non-zero carry");f=w,p++}for(var E=g-f;E!==g&&_[E]===0;)E++;for(var O=new Uint8Array(N+(g-E)),J=N;E!==g;)O[J++]=_[E++];return O}function j(a){var p=G(a);if(p)return p;throw new Error("Non-base"+d+" character")}return{encode:D,decodeUnsafe:G,decode:j}}return M=t,M}var C,x;function Ee(){return x||(x=1,C=Ae()("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")),C}var pe=Ee();const B=X(pe);function I(){return`${U()}${U()}${U()}`}function U(){return(Math.random()+1).toString(36).substring(7)}const L="Unknown Error",W="https://fractal.is",ue=`${W}/wallet-adapter/approve`,fe=`${W}/wallet-adapter/sign`,ge=`${W}/wallet-adapter/sign/message`,k=P,z=850,y="RdxqNYxF";class ve{constructor(){this.popupManager=new le(b.SOLANA_WALLET_ADAPTER),this.publicKey=null,this.connecting=!1}getPublicKey(){return this.publicKey}async connect(){let n,e;const r=window.localStorage.getItem(y);if(r)return this.publicKey=new K(r),Promise.resolve();const s=I();this.popupManager.open({nonce:s,url:`${ue}/${s}`});const l=i=>{if(!ce(i)){e(new v(`Malformed payload when setting up connection. Expected { solanaPublicKey: string } but received ${JSON.stringify(i)}`)),this.popupManager.close();return}try{this.publicKey=new K(i.solanaPublicKey),window.localStorage.setItem(y,i.solanaPublicKey),n()}catch(o){const h=new Q(o instanceof Error?o.message:L,o);e(h)}this.popupManager.close()},u=()=>{e(new v("The user denied the connection.")),this.popupManager.close()},d=()=>{e(new v("The user denied the connection.")),this.popupManager.close()};return this.popupManager.onConnectionUpdated(i=>{i&&(i.on(c.SOLANA_WALLET_ADAPTER_APPROVED,l),i.on(c.SOLANA_WALLET_ADAPTER_DENIED,u),i.on(c.POPUP_CLOSED,d))}),new Promise((i,o)=>{n=i,e=o})}async disconnect(){this.popupManager.tearDown(),this.publicKey=null,window.localStorage.removeItem(y)}async signTransaction(n){try{return this.checkWalletReadiness(),(await this.signTransactions([n]))[0]}catch(e){let r=e;throw e instanceof H||(r=new R(e instanceof Error?e.message:L,e)),r}}async signAllTransactions(n){try{return this.checkWalletReadiness(),await this.signTransactions(n)}catch(e){let r=e;throw e instanceof H||(r=new R(e instanceof Error?e.message:L,e)),r}}async signMessage(n){const e=new TextDecoder().decode(n);let r,s;const l=o=>{if(!he(o)){const D=new F(`Malformed payload when signing message. Expected { decodedSignature: string } but received ${JSON.stringify(o)}`);s(D),this.popupManager.close();return}const h=Uint8Array.from(o.decodedSignature.split(",").map(D=>Number(D)));r(h),this.popupManager.close()},u=()=>{s(new F("The user did not approve the message")),this.popupManager.close()},d=()=>{var o;const h={decodedMessage:e};(o=this.popupManager.getConnection())===null||o===void 0||o.send({event:c.MESSAGE_SIGNATURE_NEEDED,payload:h})},i=I();return this.popupManager.open({heightPx:Math.max(k,Math.floor(window.innerHeight*.8)),nonce:i,url:`${ge}/${i}`,widthPx:Math.min(z,Math.floor(window.innerWidth*.8))}),this.popupManager.onConnectionUpdated(o=>{o&&(o.on(c.MESSAGE_SIGNATURE_NEEDED_RESPONSE,l),o.on(c.TRANSACTION_DENIED,u),o.on(c.POPUP_CLOSED,u),o.on(c.AUTH_LOADED,d))}),new Promise((o,h)=>{r=o,s=h})}async signTransactions(n){let e,r;const s=i=>{if(!de(i)){const h=new R(`Malformed payload when signing transactions. Expected { signedB58Transactions: string[] } but received ${JSON.stringify(i)}`);r(h),this.popupManager.close();return}const o=i.signedB58Transactions.map(h=>q.from(B.decode(h)));e(o),this.popupManager.close()},l=()=>{r(new R("The user did not approve the transaction")),this.popupManager.close()},u=()=>{var i;const o={unsignedB58Transactions:n.map(h=>B.encode(h.serializeMessage()))};(i=this.popupManager.getConnection())===null||i===void 0||i.send({event:c.TRANSACTION_SIGNATURE_NEEDED,payload:o})},d=I();return this.popupManager.open({heightPx:Math.max(k,Math.floor(window.innerHeight*.8)),nonce:d,url:`${fe}/${d}`,widthPx:Math.min(z,Math.floor(window.innerWidth*.8))}),this.popupManager.onConnectionUpdated(i=>{i&&(i.on(c.TRANSACTION_SIGNATURE_NEEDED_RESPONSE,s),i.on(c.TRANSACTION_DENIED,l),i.on(c.POPUP_CLOSED,l),i.on(c.AUTH_LOADED,u))}),new Promise((i,o)=>{e=i,r=o})}checkWalletReadiness(){if(this.publicKey===null)throw new Y("`publicKey` is null. Did you forget to call `.connect()`?")}}export{ve as FractalWalletAdapterImpl};
@@ -1 +1 @@
1
- import{aq as T,ao as n,a6 as f,ax as u}from"./index-DCg4Dkdi.js";import{V as g}from"./veo-Bf1gjuGB.js";import{s as b}from"./service-Djt3u4NK.js";import{v as S}from"./veo-DEXaPvpl.js";import{m as w}from"./merge-C5jDS2au.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-dayjs-D7e3rSuL.js";import"./vendor-vue-router-DjvMdekB.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 o=s?.credentials?.find(a=>a?.host===window.location.origin);o?(console.debug("credential exists, set credential",o),t("setCredential",o)):(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)},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:o}=await T.create({application_id:s?.id,host:window.location.origin});return console.debug("created credential success",o),t("setCredential",o),console.debug("end createCredential"),o},O=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)}},E=async({commit:t,state:e,rootState:s})=>{console.debug("start to get applications for chat"),e.status.getApplications=n.Request;const o=e.application;console.debug("current application",o);try{const{data:a}=await f.getAll({user_id:s?.user?.id,service_id:g});return e.status.getApplications=n.Success,t("setApplications",a.items),a.items}catch(a){console.error("get applications failed",a),e.status.getApplications=n.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)},R=({commit:t},e)=>{t("setTasksTotal",e)},V=({commit:t},e)=>{t("setTasksActive",e)},D=async({commit:t,state:e,rootState:s},{offset:o,limit:a,createdAtMin:k,createdAtMax:v})=>new Promise((m,c)=>{console.debug("start to get tasks",o,a);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(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 A=w(p,d);t("setTasksItems",A),t("setTasksTotal",i.data.count),m(i.data.items)}).catch(i=>c(i))}),L={setService:h,getService:O,resetAll:C,setCredential:y,setConfig:_,setApplication:I,setApplications:$,getApplications:E,setTasks:P,setTasksItems:q,setTasksTotal:R,setTasksActive:V,getTasks:D,createCredential:x},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},at={namespaced:!0,state:u,mutations:Q,actions:L};export{at as default,at as veo};
1
+ import{aq as T,ao as n,a6 as f,ax as u}from"./index-q_66wTX8.js";import{V as g}from"./veo-Bf1gjuGB.js";import{s as b}from"./service-DN_YOMTy.js";import{v as S}from"./veo-D7a-NBmu.js";import{m as w}from"./merge-C5jDS2au.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-dayjs-D7e3rSuL.js";import"./vendor-vue-router-DjvMdekB.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 o=s?.credentials?.find(a=>a?.host===window.location.origin);o?(console.debug("credential exists, set credential",o),t("setCredential",o)):(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)},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:o}=await T.create({application_id:s?.id,host:window.location.origin});return console.debug("created credential success",o),t("setCredential",o),console.debug("end createCredential"),o},O=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)}},E=async({commit:t,state:e,rootState:s})=>{console.debug("start to get applications for chat"),e.status.getApplications=n.Request;const o=e.application;console.debug("current application",o);try{const{data:a}=await f.getAll({user_id:s?.user?.id,service_id:g});return e.status.getApplications=n.Success,t("setApplications",a.items),a.items}catch(a){console.error("get applications failed",a),e.status.getApplications=n.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)},R=({commit:t},e)=>{t("setTasksTotal",e)},V=({commit:t},e)=>{t("setTasksActive",e)},D=async({commit:t,state:e,rootState:s},{offset:o,limit:a,createdAtMin:k,createdAtMax:v})=>new Promise((m,c)=>{console.debug("start to get tasks",o,a);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(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 A=w(p,d);t("setTasksItems",A),t("setTasksTotal",i.data.count),m(i.data.items)}).catch(i=>c(i))}),L={setService:h,getService:O,resetAll:C,setCredential:y,setConfig:_,setApplication:I,setApplications:$,getApplications:E,setTasks:P,setTasksItems:q,setTasksTotal:R,setTasksActive:V,getTasks:D,createCredential:x},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},at={namespaced:!0,state:u,mutations:Q,actions:L};export{at as default,at as veo};
@@ -1 +1 @@
1
- import{aq as T,ao as i,a6 as f,au as u}from"./index-DCg4Dkdi.js";import{L as g}from"./luma-CZR6zMIo.js";import{s as b}from"./service-Djt3u4NK.js";import{l as S}from"./luma-B9z-LqT4.js";import{m as w}from"./merge-C5jDS2au.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-dayjs-D7e3rSuL.js";import"./vendor-vue-router-DjvMdekB.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)},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 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},O=async({commit:t,state:e})=>{e.status.getService=i.Request;try{const{data:s}=await b.get(g);return e.status.getService=i.Success,t("setService",s),s}catch{e.status.getService=i.Error,t("setService",void 0)}},_=async({commit:t,state:e,rootState:s})=>{console.debug("start to get applications for chat"),e.status.getApplications=i.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=i.Success,console.debug("get applications success",o.items),t("setApplications",o.items),o.items}catch(o){console.error("get applications failed",o),e.status.getApplications=i.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)},L=({commit:t},e)=>{t("setTasksTotal",e)},R=({commit:t},e)=>{t("setTasksActive",e)},D=async({commit:t,state:e,rootState:s},{offset:a,limit:o,createdAtMin:k,createdAtMax:m})=>new Promise((A,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:m},{token:l}).then(n=>{console.debug("get luma tasks success",n.data.items);const p=e?.tasks?.items||[];console.debug("existing items",p);const d=n.data.items||[];console.debug("new items",d);const v=w(p,d);t("setTasksItems",v),t("setTasksTotal",n.data.count),A(n.data.items)}).catch(n=>c(n))}),M={setService:h,getService:O,resetAll:C,setCredential:y,setConfig:E,setApplication:I,setApplications:$,getApplications:_,setTasks:P,setTasksItems:q,setTasksTotal:L,setTasksActive:R,getTasks:D,createCredential:x},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},H=(t,e)=>{const s={...t.tasks,total:e};t.tasks=s},J=(t,e)=>{const s={...t.tasks,active:e};t.tasks=s},K=(t,e)=>{t.tasks=e},N={setTasks:K,setApplication:z,setApplications:B,setConfig:F,setCredential:j,setService:V,setTasksActive:J,setTasksItems:G,setTasksTotal:H,resetAll:U},ot={namespaced:!0,state:u,mutations:N,actions:M};export{ot as default,ot as luma};
1
+ import{aq as T,ao as i,a6 as f,au as u}from"./index-q_66wTX8.js";import{L as g}from"./luma-CZR6zMIo.js";import{s as b}from"./service-DN_YOMTy.js";import{l as S}from"./luma-oTxAvrR-.js";import{m as w}from"./merge-C5jDS2au.js";import"./vendor-vue-CpN3YBVJ.js";import"./vendor-axios-NIGUFBhG.js";import"./vendor-dayjs-D7e3rSuL.js";import"./vendor-vue-router-DjvMdekB.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)},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 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},O=async({commit:t,state:e})=>{e.status.getService=i.Request;try{const{data:s}=await b.get(g);return e.status.getService=i.Success,t("setService",s),s}catch{e.status.getService=i.Error,t("setService",void 0)}},_=async({commit:t,state:e,rootState:s})=>{console.debug("start to get applications for chat"),e.status.getApplications=i.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=i.Success,console.debug("get applications success",o.items),t("setApplications",o.items),o.items}catch(o){console.error("get applications failed",o),e.status.getApplications=i.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)},L=({commit:t},e)=>{t("setTasksTotal",e)},R=({commit:t},e)=>{t("setTasksActive",e)},D=async({commit:t,state:e,rootState:s},{offset:a,limit:o,createdAtMin:k,createdAtMax:m})=>new Promise((A,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:m},{token:l}).then(n=>{console.debug("get luma tasks success",n.data.items);const p=e?.tasks?.items||[];console.debug("existing items",p);const d=n.data.items||[];console.debug("new items",d);const v=w(p,d);t("setTasksItems",v),t("setTasksTotal",n.data.count),A(n.data.items)}).catch(n=>c(n))}),M={setService:h,getService:O,resetAll:C,setCredential:y,setConfig:E,setApplication:I,setApplications:$,getApplications:_,setTasks:P,setTasksItems:q,setTasksTotal:L,setTasksActive:R,getTasks:D,createCredential:x},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},H=(t,e)=>{const s={...t.tasks,total:e};t.tasks=s},J=(t,e)=>{const s={...t.tasks,active:e};t.tasks=s},K=(t,e)=>{t.tasks=e},N={setTasks:K,setApplication:z,setApplications:B,setConfig:F,setCredential:j,setService:V,setTasksActive:J,setTasksItems:G,setTasksTotal:H,resetAll:U},ot={namespaced:!0,state:u,mutations:N,actions:M};export{ot as default,ot as luma};