@opentiny/tiny-robot 0.1.0-alpha.0 → 0.1.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 (234) hide show
  1. package/dist/{bubble-item → bubble}/components/actions/copy.vue.d.ts +3 -3
  2. package/dist/{bubble-item → bubble}/components/actions/refresh.vue.d.ts +1 -1
  3. package/dist/bubble/index.d.ts +12 -0
  4. package/dist/bubble/index.type.d.ts +53 -0
  5. package/dist/bubble/useScroll.d.ts +4 -0
  6. package/dist/index.d.ts +9 -5
  7. package/dist/index.js +25 -18
  8. package/dist/node_modules/.pnpm/@opentiny_utils@1.0.0/node_modules/@opentiny/utils/dist/opentiny-utils.es.js +832 -0
  9. package/dist/node_modules/.pnpm/@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js +959 -1496
  10. package/dist/node_modules/.pnpm/{@opentiny_vue-button@3.22.0 → @opentiny_vue-button@3.21.0}/node_modules/@opentiny/vue-button/lib/index.js +21 -21
  11. package/dist/node_modules/.pnpm/{@opentiny_vue-button@3.22.0 → @opentiny_vue-button@3.21.0}/node_modules/@opentiny/vue-button/lib/pc.js +3 -3
  12. package/dist/node_modules/.pnpm/@opentiny_vue-common@3.21.0/node_modules/@opentiny/vue-common/lib/index.js +727 -0
  13. package/dist/node_modules/.pnpm/@opentiny_vue-common@3.22.0/node_modules/@opentiny/vue-common/lib/index.js +144 -675
  14. package/dist/node_modules/.pnpm/{@opentiny_vue-dialog-box@3.22.0 → @opentiny_vue-dialog-box@3.21.0}/node_modules/@opentiny/vue-dialog-box/lib/index.js +9 -9
  15. package/dist/node_modules/.pnpm/{@opentiny_vue-dialog-box@3.22.0 → @opentiny_vue-dialog-box@3.21.0}/node_modules/@opentiny/vue-dialog-box/lib/pc.js +5 -5
  16. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/close.js +29 -0
  17. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/eyeclose.js +1 -1
  18. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/eyeopen.js +1 -1
  19. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/finish.js +1 -1
  20. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/fullscreen.js +1 -1
  21. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/loading-shadow.js +21 -22
  22. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/minscreen.js +1 -1
  23. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-add-column-after.js +1 -1
  24. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-add-column-before.js +1 -1
  25. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-add-row-after.js +1 -1
  26. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-add-row-before.js +1 -1
  27. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-align-center.js +1 -1
  28. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-align-left.js +1 -1
  29. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-align-right.js +1 -1
  30. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-bold.js +1 -1
  31. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-code-block.js +1 -1
  32. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-code-view.js +1 -1
  33. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-color.js +1 -1
  34. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-delete-column.js +1 -1
  35. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-delete-row.js +1 -1
  36. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-delete-table.js +1 -1
  37. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-font-size.js +1 -1
  38. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-format-clear.js +1 -1
  39. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-h1.js +1 -1
  40. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-h2.js +1 -1
  41. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-h3.js +1 -1
  42. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-h4.js +1 -1
  43. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-h5.js +1 -1
  44. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-h6.js +1 -1
  45. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-heading.js +1 -1
  46. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-high-light.js +1 -1
  47. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-image.js +1 -1
  48. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-italic.js +1 -1
  49. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-line-height.js +1 -1
  50. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-link-unlink.js +1 -1
  51. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-link.js +1 -1
  52. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-list-ordered.js +1 -1
  53. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-list-unordered.js +1 -1
  54. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-merge-cells-vertical.js +1 -1
  55. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-merge-cells.js +1 -1
  56. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-node-delete.js +1 -1
  57. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-paragraph.js +1 -1
  58. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-quote-text.js +1 -1
  59. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-redo.js +1 -1
  60. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-split-cells-horizontal.js +1 -1
  61. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-split-cells-vertical.js +1 -1
  62. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-strike-through.js +1 -1
  63. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-subscript.js +1 -1
  64. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-superscript.js +1 -1
  65. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-table.js +1 -1
  66. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-task-list.js +1 -1
  67. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-underline.js +1 -1
  68. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-undo.js +1 -1
  69. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/sub-script.js +1 -1
  70. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/warn.js +1 -1
  71. package/dist/node_modules/.pnpm/{@opentiny_vue-input@3.22.0 → @opentiny_vue-input@3.21.0}/node_modules/@opentiny/vue-input/lib/index.js +3 -3
  72. package/dist/node_modules/.pnpm/{@opentiny_vue-input@3.22.0 → @opentiny_vue-input@3.21.0}/node_modules/@opentiny/vue-input/lib/pc.js +36 -36
  73. package/dist/node_modules/.pnpm/{@opentiny_vue-locale@3.22.0 → @opentiny_vue-locale@3.21.0}/node_modules/@opentiny/vue-locale/lib/index.js +63 -63
  74. package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/button/index.js +1 -1
  75. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/browser.js +36 -0
  76. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/clickoutside.js +47 -0
  77. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/debounce.js +7 -0
  78. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/dom.js +45 -0
  79. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/popper.js +320 -0
  80. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/popup-manager.js +118 -0
  81. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/throttle.js +23 -0
  82. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useEventListener.js +9 -0
  83. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useInstanceSlots.js +14 -0
  84. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useRelation.js +54 -0
  85. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/vue-popper.js +84 -0
  86. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/vue-popup.js +73 -0
  87. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/event.js +13 -0
  88. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/function.js +5 -0
  89. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/index.js +11 -0
  90. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/object.js +84 -0
  91. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/string.js +28 -0
  92. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/type.js +28 -0
  93. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/dialog-box/index.js +136 -0
  94. package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/dialog-box/vue.js +33 -34
  95. package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/input/index.js +22 -22
  96. package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/input/vue.js +9 -9
  97. package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/tall-storage/index.js +1 -1
  98. package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/tall-storage/vue.js +5 -5
  99. package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/tooltip/index.js +41 -40
  100. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tooltip/vue.js +90 -0
  101. package/dist/node_modules/.pnpm/{@opentiny_vue-tooltip@3.22.0 → @opentiny_vue-tooltip@3.21.0}/node_modules/@opentiny/vue-tooltip/lib/index.js +3 -6
  102. package/dist/node_modules/.pnpm/{@opentiny_vue-tooltip@3.22.0 → @opentiny_vue-tooltip@3.21.0}/node_modules/@opentiny/vue-tooltip/lib/pc.js +2 -2
  103. package/dist/packages/components/src/{bubble-list → bubble}/bubble-list.vue.js +2 -2
  104. package/dist/packages/components/src/bubble/bubble-list.vue2.js +38 -0
  105. package/dist/packages/components/src/bubble/bubble.vue.js +7 -0
  106. package/dist/packages/components/src/bubble/bubble.vue2.js +118 -0
  107. package/dist/packages/components/src/bubble/components/actions/copy.vue.js +7 -0
  108. package/dist/packages/components/src/bubble/components/actions/copy.vue2.js +35 -0
  109. package/dist/packages/components/src/bubble/components/actions/refresh.vue.js +7 -0
  110. package/dist/packages/components/src/bubble/components/actions/refresh.vue2.js +16 -0
  111. package/dist/packages/components/src/bubble/index.js +18 -0
  112. package/dist/packages/components/src/bubble/useScroll.js +13 -0
  113. package/dist/packages/components/src/conversations/index.js +1 -1
  114. package/dist/packages/components/src/prompts/index.js +18 -0
  115. package/dist/packages/components/src/prompts/prompt.vue.js +7 -0
  116. package/dist/packages/components/src/prompts/prompt.vue2.js +37 -0
  117. package/dist/packages/components/src/prompts/prompts.vue.js +7 -0
  118. package/dist/packages/components/src/prompts/prompts.vue2.js +36 -0
  119. package/dist/packages/components/src/question/components/CommonQuestions.vue.js +89 -0
  120. package/dist/packages/components/src/question/components/CommonQuestions.vue2.js +4 -0
  121. package/dist/packages/components/src/question/components/HotQuestions.vue.js +140 -0
  122. package/dist/packages/components/src/question/components/HotQuestions.vue2.js +4 -0
  123. package/dist/packages/components/src/question/composables/useQuestions.js +48 -0
  124. package/dist/packages/components/src/question/index.js +9 -0
  125. package/dist/packages/components/src/question/index.vue.js +113 -0
  126. package/dist/packages/components/src/question/index.vue2.js +4 -0
  127. package/dist/packages/components/src/sender/components/ActionButtons.vue.js +105 -123
  128. package/dist/packages/components/src/sender/composables/useInputHandler.js +26 -22
  129. package/dist/packages/components/src/sender/composables/useKeyboardHandler.js +11 -11
  130. package/dist/packages/components/src/sender/composables/useSpeechHandler.js +9 -9
  131. package/dist/packages/components/src/sender/index.vue.js +67 -66
  132. package/dist/packages/components/src/welcome/index.vue.js +5 -7
  133. package/dist/packages/components/src/welcome/index.vue2.js +32 -0
  134. package/dist/packages/svgs/dist/tiny-robot-svgs.js +144 -0
  135. package/dist/prompts/index.d.ts +12 -0
  136. package/dist/prompts/index.type.d.ts +55 -0
  137. package/dist/prompts/prompt.vue.d.ts +3 -0
  138. package/dist/prompts/prompts.vue.d.ts +20 -0
  139. package/dist/question/components/CommonQuestions.vue.d.ts +32 -0
  140. package/dist/question/components/HotQuestions.vue.d.ts +89 -0
  141. package/dist/question/composables/useQuestions.d.ts +17 -0
  142. package/dist/question/index.d.ts +7 -0
  143. package/dist/question/index.type.d.ts +74 -0
  144. package/dist/question/index.vue.d.ts +46 -0
  145. package/dist/sender/components/ActionButtons.vue.d.ts +6 -4
  146. package/dist/sender/composables/useSpeechHandler.d.ts +0 -6
  147. package/dist/sender/index.type.d.ts +1 -1
  148. package/dist/sender/index.vue.d.ts +1 -2
  149. package/dist/style.css +1 -1
  150. package/dist/welcome/index.type.d.ts +10 -0
  151. package/dist/welcome/index.vue.d.ts +17 -1
  152. package/package.json +5 -3
  153. package/src/bubble/bubble-list.vue +44 -0
  154. package/src/bubble/bubble.vue +247 -0
  155. package/src/bubble/components/actions/copy.vue +54 -0
  156. package/src/bubble/components/actions/refresh.vue +31 -0
  157. package/src/bubble/index.ts +23 -0
  158. package/src/bubble/index.type.ts +63 -0
  159. package/src/bubble/useScroll.ts +14 -0
  160. package/src/conversations/index.ts +1 -1
  161. package/src/index.ts +23 -12
  162. package/src/prompts/index.ts +25 -0
  163. package/src/prompts/index.type.ts +59 -0
  164. package/src/prompts/prompt.vue +115 -0
  165. package/src/prompts/prompts.vue +50 -0
  166. package/src/question/components/CommonQuestions.vue +146 -0
  167. package/src/question/components/HotQuestions.vue +148 -0
  168. package/src/question/composables/useQuestions.ts +106 -0
  169. package/src/question/index.less +448 -0
  170. package/src/question/index.ts +12 -0
  171. package/src/question/index.type.ts +86 -0
  172. package/src/question/index.vue +140 -0
  173. package/src/question/vars.less +135 -0
  174. package/src/sender/components/ActionButtons.vue +42 -39
  175. package/src/sender/composables/useInputHandler.ts +15 -10
  176. package/src/sender/composables/useKeyboardHandler.ts +6 -4
  177. package/src/sender/composables/useSpeechHandler.ts +5 -11
  178. package/src/sender/index.less +3 -5
  179. package/src/sender/index.type.ts +1 -1
  180. package/src/sender/index.vue +3 -2
  181. package/src/welcome/index.type.ts +12 -0
  182. package/src/welcome/index.vue +68 -2
  183. package/dist/bubble-item/components/icons/ai.vue.d.ts +0 -2
  184. package/dist/bubble-item/components/icons/index.d.ts +0 -2
  185. package/dist/bubble-item/components/icons/user.vue.d.ts +0 -2
  186. package/dist/bubble-item/index.d.ts +0 -7
  187. package/dist/bubble-list/index.d.ts +0 -8
  188. package/dist/bubble-list/index.type.d.ts +0 -55
  189. package/dist/node_modules/.pnpm/@opentiny_vue-directive@3.22.0/node_modules/@opentiny/vue-directive/index.js +0 -57
  190. package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popper.js +0 -85
  191. package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popup.js +0 -69
  192. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/dialog-box/index.js +0 -135
  193. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/vue.js +0 -90
  194. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js +0 -5
  195. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js +0 -10
  196. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTrim.js +0 -8
  197. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js +0 -4
  198. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js +0 -15
  199. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js +0 -7
  200. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js +0 -5
  201. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_trimmedEndIndex.js +0 -9
  202. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/debounce.js +0 -54
  203. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js +0 -7
  204. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js +0 -6
  205. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.js +0 -9
  206. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/now.js +0 -7
  207. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toNumber.js +0 -22
  208. package/dist/packages/components/src/bubble-item/bubble-item.vue.js +0 -7
  209. package/dist/packages/components/src/bubble-item/bubble-item.vue2.js +0 -111
  210. package/dist/packages/components/src/bubble-item/components/actions/copy.vue.js +0 -46
  211. package/dist/packages/components/src/bubble-item/components/actions/copy.vue2.js +0 -4
  212. package/dist/packages/components/src/bubble-item/components/actions/refresh.vue.js +0 -12
  213. package/dist/packages/components/src/bubble-item/components/icons/ai.vue.js +0 -45
  214. package/dist/packages/components/src/bubble-item/components/icons/user.vue.js +0 -63
  215. package/dist/packages/components/src/bubble-item/index.js +0 -9
  216. package/dist/packages/components/src/bubble-list/bubble-list.vue2.js +0 -52
  217. package/dist/packages/components/src/bubble-list/index.js +0 -9
  218. package/src/bubble-item/bubble-item.vue +0 -264
  219. package/src/bubble-item/components/actions/copy.vue +0 -47
  220. package/src/bubble-item/components/actions/refresh.vue +0 -27
  221. package/src/bubble-item/components/icons/ai.vue +0 -30
  222. package/src/bubble-item/components/icons/index.ts +0 -2
  223. package/src/bubble-item/components/icons/user.vue +0 -78
  224. package/src/bubble-item/index.ts +0 -12
  225. package/src/bubble-list/bubble-list.vue +0 -53
  226. package/src/bubble-list/index.ts +0 -14
  227. package/src/bubble-list/index.type.ts +0 -65
  228. package/src/sender/global.d.ts +0 -44
  229. /package/dist/{bubble-list → bubble}/bubble-list.vue.d.ts +0 -0
  230. /package/dist/{bubble-item → bubble}/components/actions/index.d.ts +0 -0
  231. /package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/button/vue.js +0 -0
  232. /package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/chunk-G2ADBYYC.js +0 -0
  233. /package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/tall-storage/vue-storage-box.js +0 -0
  234. /package/src/{bubble-item → bubble}/components/actions/index.ts +0 -0
@@ -0,0 +1,727 @@
1
+ import * as l from "vue";
2
+ import { hyphenate as te, capitalize as re, camelize as ne } from "../../../../../@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/string.js";
3
+ import { t as K } from "../../../../../@opentiny_vue-locale@3.21.0/node_modules/@opentiny/vue-locale/lib/index.js";
4
+ /* empty css */
5
+ import { isServer as ie } from "../../../../../@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/dom.js";
6
+ import oe from "../../../../../@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/debounce.js";
7
+ import { useInstanceSlots as ae } from "../../../../../@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useInstanceSlots.js";
8
+ import { useRelation as ue } from "../../../../../@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useRelation.js";
9
+ function j() {
10
+ return j = Object.assign ? Object.assign.bind() : function(f) {
11
+ for (var e = 1; e < arguments.length; e++) {
12
+ var t = arguments[e];
13
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (f[r] = t[r]);
14
+ }
15
+ return f;
16
+ }, j.apply(null, arguments);
17
+ }
18
+ var k = function() {
19
+ var e = {}, t = function(n, a, o) {
20
+ if (o === void 0 && (o = !1), n && typeof n == "string" && typeof a == "function") {
21
+ var u = e[n] || [];
22
+ e[n] = u, u.push(a), a.once = o;
23
+ }
24
+ }, r = {
25
+ emit: function(n) {
26
+ var a = arguments, o = e[n];
27
+ o && (o.forEach(function(u) {
28
+ return u.apply(null, [].slice.call(a, 1));
29
+ }), e[n] = o.filter(function(u) {
30
+ return !u.once;
31
+ }));
32
+ },
33
+ on: t,
34
+ once: function(n, a) {
35
+ t(n, a, !0);
36
+ },
37
+ off: function(n, a) {
38
+ if (n && typeof n == "string") {
39
+ var o = e[n];
40
+ typeof a == "function" ? e[n] = o.filter(function(u) {
41
+ return u !== a;
42
+ }) : delete e[n];
43
+ } else
44
+ e = {};
45
+ }
46
+ };
47
+ return r;
48
+ }, fe = function(e, t) {
49
+ t === void 0 && (t = {});
50
+ var r = {};
51
+ for (var i in e)
52
+ i.indexOf("_") !== 0 && (r[i] = e[i]);
53
+ for (var n in t)
54
+ r[n] = t[n];
55
+ return r;
56
+ }, se = function(e, t) {
57
+ if (e === void 0 && (e = {}), typeof t == "object") {
58
+ var r = Array.isArray(t) ? t : Object.keys(t).filter(function(n) {
59
+ return t[n];
60
+ }), i = "";
61
+ return r.forEach(function(n) {
62
+ e[n] && (i += e[n] + " ");
63
+ }), i;
64
+ } else
65
+ return e[t] || "";
66
+ }, ce = l.defineAsyncComponent, le = l.markRaw, z = function(e) {
67
+ var t = e.view, r = t === void 0 ? void 0 : t, i = e.component, n = i === void 0 ? void 0 : i, a = e.props, o = e.context, u = o.attrs, s = o.slots, c = e.extend, p = c === void 0 ? {} : c;
68
+ return function() {
69
+ return l.h(r && r.value || n, j({
70
+ ref: "modeTemplate"
71
+ }, a, u, p), s);
72
+ };
73
+ }, F = function(e) {
74
+ var t = l.getCurrentInstance();
75
+ return e && q(t), t == null ? void 0 : t.appContext.config.globalProperties;
76
+ }, pe = function() {
77
+ var e, t = l.getCurrentInstance(), r = t == null || (e = t.type) == null ? void 0 : e.name;
78
+ if (!r) {
79
+ var i, n;
80
+ r = t == null || (i = t.parent) == null || (n = i.type) == null ? void 0 : n.name;
81
+ }
82
+ return r || "";
83
+ }, ve = function() {
84
+ var e;
85
+ return ((e = l.getCurrentInstance()) == null ? void 0 : e.appContext) || {
86
+ component: function() {
87
+ }
88
+ };
89
+ }, de = function() {
90
+ var e = l.getCurrentInstance();
91
+ return (e == null ? void 0 : e.appContext.config.globalProperties) || {};
92
+ }, ge = function(e) {
93
+ var t;
94
+ e === void 0 && (e = l.getCurrentInstance());
95
+ var r = (t = e) == null ? void 0 : t.appContext.config.globalProperties.$router, i = r && r.currentRoute.value;
96
+ return {
97
+ route: i,
98
+ router: r
99
+ };
100
+ }, q = function(e) {
101
+ var t = k();
102
+ typeof e.$emitter > "u" && Object.defineProperty(e, "$emitter", {
103
+ get: function() {
104
+ return t;
105
+ }
106
+ });
107
+ }, me = function(e) {
108
+ var t = function(i, n, a, o) {
109
+ var u = i.subTree && i.subTree.children || i.children;
110
+ Array.isArray(u) && u.forEach(function(s) {
111
+ var c = s.type && s.type.componentName, p = s.component;
112
+ c === n ? (p.emit(a, o), p.$emitter && p.$emitter.emit(a, o)) : t(s, n, a, o);
113
+ });
114
+ };
115
+ return {
116
+ dispatch: function(i, n, a) {
117
+ for (var o = e.parent || e.root, u = o.type && o.type.componentName; o && (!u || u !== i); )
118
+ o = o.parent, o && (u = o.type && o.type.componentName);
119
+ if (o) {
120
+ var s, c;
121
+ (s = o).emit.apply(s, [n].concat(a)), o.$emitter && (c = o.$emitter).emit.apply(c, [n].concat(a));
122
+ }
123
+ },
124
+ broadcast: function(i, n, a) {
125
+ t(e, i, n, a);
126
+ }
127
+ };
128
+ }, w = function(e) {
129
+ if (e && e.parent) return e.parent.type.name === "AsyncComponentWrapper" && e.parent.parent ? e.parent.parent : e.parent;
130
+ }, ye = function(e) {
131
+ return function(t) {
132
+ var r = w(e), i = 0, n = function(o) {
133
+ return {
134
+ level: i,
135
+ vm: x({}, o),
136
+ el: o.vnode.el,
137
+ options: o.type
138
+ };
139
+ };
140
+ if (typeof t != "function") return r ? n(r) : {};
141
+ for (i++; r && !t(n(r)); )
142
+ r = w(r), i++;
143
+ };
144
+ }, he = function(e) {
145
+ return function(t) {
146
+ if (typeof t != "function") return Q(e.subTree);
147
+ var r = 1, i = function(a) {
148
+ if (a) {
149
+ var o = a.children || a.dynamicChildren, u = r++;
150
+ if (Array.isArray(o)) {
151
+ if (o.some(function(s) {
152
+ return s.component && t({
153
+ level: u,
154
+ vm: x({}, s.component),
155
+ el: s.el,
156
+ options: s.type,
157
+ isLevel1: !0
158
+ });
159
+ })) return;
160
+ o.forEach(function(s) {
161
+ return i(s);
162
+ });
163
+ }
164
+ }
165
+ };
166
+ i(e.subTree);
167
+ };
168
+ }, be = /^on[A-Z]/, Ce = function(e) {
169
+ var t = {}, r = {};
170
+ for (var i in e) {
171
+ var n = e[i];
172
+ if (be.test(i) && typeof n == "function") {
173
+ r[te(i.substr(2))] = n;
174
+ continue;
175
+ }
176
+ t[i] = n;
177
+ }
178
+ return {
179
+ $attrs: t,
180
+ $listeners: r
181
+ };
182
+ }, Q = function(e) {
183
+ var t = [];
184
+ if (t.refs = {}, e) {
185
+ var r = e.dynamicChildren || e.children;
186
+ Array.isArray(r) ? r.forEach(function(i) {
187
+ if (i.component) {
188
+ var n = x({}, i.component);
189
+ t.push(n), i.props.ref && (t.refs[i.props.ref] = n);
190
+ }
191
+ }) : e.component && t.push(x({}, e.component));
192
+ }
193
+ return t;
194
+ }, S = function(e, t, r, i) {
195
+ var n = function(u) {
196
+ if (typeof i == "function" && i(u)) return 1;
197
+ Object.defineProperty(e, u, {
198
+ configurable: !0,
199
+ enumerable: !0,
200
+ get: function() {
201
+ return t[r][u];
202
+ },
203
+ set: function(c) {
204
+ return t[r][u] = c;
205
+ }
206
+ });
207
+ };
208
+ for (var a in t[r])
209
+ n(a);
210
+ return e;
211
+ }, U = function(e) {
212
+ return e.indexOf("_") === 0;
213
+ }, W = function(e, t) {
214
+ return S(e, t, "setupState", null), S(e, t, "props", U), S(e, t, "ctx", U), e;
215
+ }, x = function(e, t, r) {
216
+ r === void 0 && (r = null);
217
+ var i = Ce(t.attrs), n = i.$attrs, a = i.$listeners, o = t.$emitter;
218
+ o || (q(t), o = t.$emitter);
219
+ var u = function() {
220
+ for (var p = arguments.length, b = new Array(p), d = 0; d < p; d++)
221
+ b[d] = arguments[d];
222
+ t.emit.apply(t, b), o.emit.apply(e, b);
223
+ }, s = function(p, b, d) {
224
+ return p[b] = d;
225
+ };
226
+ return r || W(e, t), Object.defineProperties(e, {
227
+ $attrs: {
228
+ get: function() {
229
+ return n;
230
+ }
231
+ },
232
+ $children: {
233
+ get: function() {
234
+ return Q(t.subTree);
235
+ }
236
+ },
237
+ $constants: {
238
+ get: function() {
239
+ return t.props._constants;
240
+ }
241
+ },
242
+ $emit: {
243
+ get: function() {
244
+ return u;
245
+ }
246
+ },
247
+ $el: {
248
+ get: function() {
249
+ return t.vnode.el;
250
+ }
251
+ },
252
+ $listeners: {
253
+ get: function() {
254
+ return a;
255
+ }
256
+ },
257
+ $mode: {
258
+ get: function() {
259
+ return t._tiny_mode;
260
+ }
261
+ },
262
+ $nextTick: {
263
+ get: function() {
264
+ return l.nextTick;
265
+ }
266
+ },
267
+ $off: {
268
+ get: function() {
269
+ return o.off;
270
+ }
271
+ },
272
+ $on: {
273
+ get: function() {
274
+ return o.on;
275
+ }
276
+ },
277
+ $once: {
278
+ get: function() {
279
+ return o.once;
280
+ }
281
+ },
282
+ $options: {
283
+ get: function() {
284
+ return {
285
+ componentName: t.type.componentName
286
+ };
287
+ }
288
+ },
289
+ $parent: {
290
+ get: function() {
291
+ return t.parent && x({}, w(t));
292
+ }
293
+ },
294
+ $refs: {
295
+ get: function() {
296
+ return t.refs;
297
+ }
298
+ },
299
+ $renderless: {
300
+ get: function() {
301
+ return t.props.tiny_renderless;
302
+ }
303
+ },
304
+ $scopedSlots: {
305
+ get: function() {
306
+ return t.slots;
307
+ }
308
+ },
309
+ $set: {
310
+ get: function() {
311
+ return s;
312
+ }
313
+ },
314
+ $slots: {
315
+ get: function() {
316
+ return t.slots;
317
+ }
318
+ },
319
+ $template: {
320
+ get: function() {
321
+ return t.props.tiny_template;
322
+ }
323
+ }
324
+ }), e;
325
+ }, $e = function(e, t) {
326
+ for (var r in e.refs)
327
+ Object.prototype.hasOwnProperty.call(e.refs, r) && (t[r] = e.refs[r]);
328
+ }, _e = function(e, t) {
329
+ var r, i, n = l.getCurrentInstance(), a = n == null ? void 0 : n.appContext.config.globalProperties, o = ge(n), u = o.route, s = o.router, c = n == null || (r = n.proxy) == null || (i = r.$root) == null ? void 0 : i.$i18n, p = me(n), b = p.dispatch, d = p.broadcast, I = ye(n), A = he(n), m = x({}, n, e), y = e.emit, v = {}, C = typeof n.props.tiny_template > "u" && w(n), h = C ? x({}, C) : n.parent ? x({}, n.parent) : null, g = function($) {
330
+ var P, O = $.name, H = $.value, ee = C ? C.ctx : n == null || (P = n.parent) == null ? void 0 : P.ctx;
331
+ ee[O] = H, h[O] = H;
332
+ }, _ = function($) {
333
+ Object.defineProperties(m, $), Object.defineProperties(n == null ? void 0 : n.ctx, $);
334
+ }, M = function($) {
335
+ h && Object.defineProperties(h, $);
336
+ };
337
+ return l.onBeforeMount(function() {
338
+ return W(m, n);
339
+ }), l.onMounted(function() {
340
+ return $e(n, v);
341
+ }), {
342
+ framework: "vue3",
343
+ vm: m,
344
+ emit: y,
345
+ emitter: k,
346
+ route: u,
347
+ router: s,
348
+ dispatch: b,
349
+ broadcast: d,
350
+ parentHandler: I,
351
+ childrenHandler: A,
352
+ i18n: c,
353
+ refs: v,
354
+ slots: n == null ? void 0 : n.slots,
355
+ scopedSlots: n == null ? void 0 : n.slots,
356
+ attrs: e.attrs,
357
+ parent: h,
358
+ nextTick: l.nextTick,
359
+ constants: n == null ? void 0 : n.props._constants,
360
+ mode: t,
361
+ isPCMode: t === "pc",
362
+ isMobileMode: t === "mobile",
363
+ service: a == null ? void 0 : a.$service,
364
+ getService: function() {
365
+ return a == null ? void 0 : a.$getService(m);
366
+ },
367
+ setParentAttribute: g,
368
+ defineInstanceProperties: _,
369
+ defineParentInstanceProperties: M
370
+ };
371
+ }, T = function(e, t, r) {
372
+ if (typeof e[t] < "u") {
373
+ var i = e[t];
374
+ e[r] = function(n, a, o) {
375
+ o.context = a.instance, i(n, a, o);
376
+ }, delete e[t];
377
+ }
378
+ }, ze = function(e) {
379
+ for (var t in e) {
380
+ var r = e[t];
381
+ T(r, "inserted", "mounted"), T(r, "bind", "beforeMount"), T(r, "update", "updated"), T(r, "unbind", "unmounted");
382
+ }
383
+ return e;
384
+ }, qe = function(e) {
385
+ return e;
386
+ }, xe = l.Text, Ae = l.Comment, Qe = function(e) {
387
+ return !e || !e.type || [xe, Ae].includes(e.type);
388
+ }, Pe = function(e) {
389
+ var t = {};
390
+ for (var r in e)
391
+ if (r === "class" || r === "style")
392
+ t[r] = e[r];
393
+ else if (r === "on" || r === "nativeOn") {
394
+ var i = e[r];
395
+ for (var n in i) t["on" + re(ne(n))] = i[n];
396
+ } else if (r === "attrs" || r === "props" || r === "domProps") {
397
+ var a = e[r];
398
+ for (var o in a) t[o] = a[o];
399
+ } else
400
+ t[r] = e[r];
401
+ return t;
402
+ }, Ee = function(e) {
403
+ var t = e, r = !1;
404
+ if (typeof e == "string" && typeof document < "u") {
405
+ var i = document.createElement(e), n = ["SVG", "CIRCLE", "PATH"];
406
+ i instanceof HTMLUnknownElement && !n.includes(i.nodeName) || e.includes("-") ? (e = e.toLowerCase(), r = !0, e === "transition" ? t = l.Transition : e === "transition-group" ? t = l.TransitionGroup : t = l.resolveComponent(e)) : t = e;
407
+ }
408
+ return {
409
+ type: t,
410
+ component: e,
411
+ customElement: r
412
+ };
413
+ }, We = function(e, t, r) {
414
+ var i = {}, n = r, a = Ee(e), o = a.customElement, u = a.type;
415
+ return e = a.component, t && typeof t == "object" && !Array.isArray(t) ? (i = Pe(t), t.scopedSlots && (n = t.scopedSlots)) : (typeof t == "string" || Array.isArray(t)) && (r = t), (typeof r == "string" || Array.isArray(r)) && (n = typeof e != "string" || o ? function() {
416
+ return r;
417
+ } : r), l.h(u, i, n);
418
+ }, je = function(e) {
419
+ return function(t) {
420
+ var r, i = t.component, n = t.propsData, a = t.el, o = Object.assign(i, {
421
+ provide: (r = {}, r[e.configKey] = e.configInstance, r)
422
+ }), u = l.createVNode(o, n);
423
+ return l.render(u, a), x({}, u.component);
424
+ };
425
+ }, Ie = l.defineComponent, Z = !1, L = function(e) {
426
+ var t = [];
427
+ return Object.keys(e).forEach(function(r) {
428
+ return e[r] && t.push(r);
429
+ }), t.join(" ");
430
+ }, Oe = function(e) {
431
+ var t = [];
432
+ return e.forEach(function(r) {
433
+ typeof r == "string" ? t.push(r) : typeof r == "object" && t.push(L(r));
434
+ }), t.join(" ");
435
+ }, V = function(e) {
436
+ if (!e)
437
+ return "";
438
+ if (typeof e == "string")
439
+ return e;
440
+ if (Array.isArray(e) && e.length > 0) {
441
+ var t = [];
442
+ return e.forEach(function(r) {
443
+ r && (typeof r == "string" ? t.push(r) : Array.isArray(r) ? t.push(Oe(r)) : typeof r == "object" && t.push(L(r)));
444
+ }), t.join(" ");
445
+ }
446
+ return typeof e == "object" ? L(e) : "";
447
+ }, Ze = function(e) {
448
+ var t = V(e), r = Array.from(new Set(t.split(" "))).filter(function(i) {
449
+ return i;
450
+ });
451
+ return V(r);
452
+ }, Te = function() {
453
+ var e = l.ref(""), t = ["2xl", "xl", "lg", "md", "sm"], r = function(u) {
454
+ return ie || typeof matchMedia != "function" ? {
455
+ matches: !1,
456
+ media: u,
457
+ addEventListener: function() {
458
+ },
459
+ removeEventListener: function() {
460
+ }
461
+ } : window.matchMedia(u);
462
+ }, i = {
463
+ "2xl": r("(min-width:1536px)"),
464
+ xl: r("(min-width:1280px)"),
465
+ lg: r("(min-width:1024px)"),
466
+ md: r("(min-width:768px)"),
467
+ sm: r("(min-width:640px)")
468
+ }, n = function() {
469
+ for (var u = 0; u < t.length; u++) {
470
+ var s = t[u];
471
+ if (i[s].matches) {
472
+ e.value = s;
473
+ return;
474
+ }
475
+ }
476
+ e.value = "default";
477
+ }, a = oe(0, function() {
478
+ return n();
479
+ });
480
+ return n(), t.forEach(function(o) {
481
+ return i[o].addEventListener("change", a);
482
+ }), l.onBeforeUnmount(function() {
483
+ t.forEach(function(o) {
484
+ return i[o].removeEventListener("change", a);
485
+ });
486
+ }), {
487
+ current: e
488
+ };
489
+ }, we = ["IconLoadingShadow", "IconNoData"], J = 0, X = function(e, t) {
490
+ {
491
+ var r;
492
+ if ((r = e.props) != null && r.id) {
493
+ var i = "" + e.props.id + J;
494
+ t[e.props.id] = i, e.props.id = i;
495
+ }
496
+ }
497
+ Array.isArray(e == null ? void 0 : e.children) && e.children.forEach(function(n) {
498
+ X(n, t);
499
+ });
500
+ }, Y = function(e, t) {
501
+ var r = ["fill", "mask", "filter"];
502
+ r.forEach(function(i) {
503
+ {
504
+ var n, a;
505
+ if ((n = e.props) != null && (a = n[i]) != null && a.includes("url(#")) {
506
+ var o = e.props[i].replace("url(#", "").replace(")", ""), u = t[o];
507
+ u && (e.props[i] = "url(#" + u + ")");
508
+ }
509
+ }
510
+ }), Array.isArray(e == null ? void 0 : e.children) && e.children.forEach(function(i) {
511
+ Y(i, t);
512
+ });
513
+ }, Me = function(e) {
514
+ if (e) {
515
+ var t = {};
516
+ X(e, t), Y(e, t), J++;
517
+ }
518
+ };
519
+ ae(j({}, l, {
520
+ isVue2: Z
521
+ }));
522
+ ue(j({}, l, {
523
+ isVue2: Z
524
+ }));
525
+ var B = "Tiny", Je = {
526
+ tiny_mode: String,
527
+ tiny_mode_root: Boolean,
528
+ tiny_template: [Function, Object],
529
+ tiny_renderless: Function,
530
+ tiny_theme: String,
531
+ tiny_chart_theme: Object
532
+ }, Xe = ["tiny_mode", "tiny_mode_root", "tiny_template", "tiny_renderless", "_constants", "tiny_theme", "tiny_chart_theme"], G = function(e, t) {
533
+ var r = function(p) {
534
+ return ~["pc", "mobile", "mobile-first"].indexOf(p);
535
+ }, i = F(t), n = typeof e.tiny_mode == "string" ? e.tiny_mode : null, a = l.inject("TinyMode", null), o;
536
+ typeof i.tiny_mode == "string" ? o = i.tiny_mode : i.tiny_mode && (o = i.tiny_mode.value), r(n) || (n = null), r(a) || (a = null), r(o) || (o = null);
537
+ var u = n || a || o || "pc";
538
+ e.tiny_mode_root && l.provide("TinyMode", u);
539
+ var s = l.getCurrentInstance();
540
+ return Object.defineProperty(s, "_tiny_mode", {
541
+ value: u
542
+ }), u;
543
+ }, Se = function(e, t) {
544
+ var r = function(c) {
545
+ return ~["tiny", "saas"].indexOf(c);
546
+ }, i = F(t), n = typeof e.tiny_theme == "string" ? e.tiny_theme : null, a = l.inject("TinyTheme", null), o = i.tiny_theme && i.tiny_theme.value;
547
+ r(n) || (n = null), r(a) || (a = null), r(o) || (o = null);
548
+ var u = n || a || o || "tiny";
549
+ return u;
550
+ }, Re = function(e, t) {
551
+ var r = F(t), i = typeof e.tiny_chart_theme == "object" ? e.tiny_chart_theme : null, n = l.inject("TinyChartTheme", null), a = r.tiny_chart_theme && r.tiny_chart_theme.value, o = i || n || a || null;
552
+ return o;
553
+ }, Ye = function(e) {
554
+ var t = e.props, r = e.context, i = e.template, n = e.extend, a = n === void 0 ? {} : n, o = G(t, r), u = l.computed(function() {
555
+ if (typeof t.tiny_template < "u") return t.tiny_template;
556
+ var s = i(o, t);
557
+ return typeof s == "function" ? ce(s) : s;
558
+ });
559
+ return z({
560
+ view: u,
561
+ props: t,
562
+ context: r,
563
+ extend: a
564
+ });
565
+ }, D = {
566
+ configKey: Symbol("designConfigKey"),
567
+ configInstance: null
568
+ }, De = je(D), Le = {
569
+ designConfig: null,
570
+ twMerge: function() {
571
+ return "";
572
+ }
573
+ }, N = function() {
574
+ for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
575
+ t[r] = arguments[r];
576
+ return Le.twMerge(V(t));
577
+ }, et = function(e) {
578
+ var t, r, i, n = e.props, a = e.context, o = e.renderless, u = e.api, s = e.extendOptions, c = s === void 0 ? {} : s, p = e.mono, b = p === void 0 ? !1 : p, d = e.classes, I = d === void 0 ? {} : d, A = typeof n.tiny_renderless == "function" ? n.tiny_renderless : o, m = l.inject(D.configKey, {});
579
+ m = ((t = m) == null ? void 0 : t.value) || m || {};
580
+ var y = (r = m) == null || (i = r.components) == null ? void 0 : i[pe().replace(B, "")], v = j({
581
+ $prefix: B,
582
+ t: K
583
+ }, _e(a, G(n, a)), {
584
+ designConfig: y,
585
+ globalDesignConfig: m,
586
+ useBreakpoint: Te,
587
+ mergeClass: N
588
+ });
589
+ v.vm.theme = Se(n, a), v.vm.chartTheme = Re(n, a);
590
+ var C = A(n, l, v, c);
591
+ typeof (y == null ? void 0 : y.renderless) == "function" && Object.assign(C, y.renderless(n, l, v, C));
592
+ var h = {
593
+ t: K,
594
+ vm: v.vm,
595
+ f: fe,
596
+ a: Ve,
597
+ d: v.defineInstanceProperties,
598
+ dp: v.defineParentInstanceProperties,
599
+ gcls: function(_) {
600
+ return se(I, _);
601
+ },
602
+ m: N
603
+ };
604
+ return h.d({
605
+ slots: {
606
+ get: function() {
607
+ return v.vm.$slots;
608
+ },
609
+ configurable: !0
610
+ },
611
+ scopedSlots: {
612
+ get: function() {
613
+ return v.vm.$scopedSlots;
614
+ },
615
+ configurable: !0
616
+ }
617
+ }), h.dp({
618
+ slots: {
619
+ get: function() {
620
+ return v.parent.$slots;
621
+ },
622
+ configurable: !0
623
+ },
624
+ scopedSlots: {
625
+ get: function() {
626
+ return v.parent.$scopedSlots;
627
+ },
628
+ configurable: !0
629
+ }
630
+ }), Be(), Array.isArray(u) && (Array.isArray(y == null ? void 0 : y.api) && (u = u.concat(y.api)), u.forEach(function(g) {
631
+ var _ = C[g];
632
+ typeof _ < "u" && (h[g] = _, b || v.setParentAttribute({
633
+ name: g,
634
+ value: _
635
+ }));
636
+ })), h;
637
+ };
638
+ function tt(f) {
639
+ var e = f.name, t = e === void 0 ? "Icon" : e, r = f.component;
640
+ return function(i) {
641
+ return le(Ie({
642
+ name: B + t,
643
+ setup: function(a, o) {
644
+ var u = o.attrs || {}, s = u.fill, c = u.width, p = u.height, b = u["custom-class"], d = u["first-color"], I = u["second-color"], A = Object.assign({}, a, i || null), m = G(A, o), y = m === "mobile-first", v = {
645
+ "data-tag": y ? "tiny-svg" : null
646
+ }, C = v, h = "tiny-svg";
647
+ y && (h = N("h-4 w-4 inline-block", b || "", A.class || ""));
648
+ var g = Object.assign({
649
+ style: {
650
+ fill: s,
651
+ width: c,
652
+ height: p,
653
+ "--tiny-first-color": d || "",
654
+ "--tiny-second-color": I || ""
655
+ },
656
+ class: h,
657
+ isSvg: !0
658
+ }, C);
659
+ if (g.nativeOn = o.listeners, we.includes(t)) {
660
+ var _ = r.render;
661
+ r.render = function() {
662
+ for (var M = _.bind(this), E = arguments.length, $ = new Array(E), P = 0; P < E; P++)
663
+ $[P] = arguments[P];
664
+ var O = M($);
665
+ return Me(O), O;
666
+ };
667
+ }
668
+ return z({
669
+ component: r,
670
+ props: A,
671
+ context: o,
672
+ extend: g
673
+ });
674
+ }
675
+ }));
676
+ };
677
+ }
678
+ var Ve = function(e, t, r) {
679
+ var i = {}, n = function(u) {
680
+ var s = t.some(function(c) {
681
+ return new RegExp(c).test(u);
682
+ });
683
+ (r && s || !r && !s) && (i[u] = e[u]);
684
+ };
685
+ for (var a in e)
686
+ n(a);
687
+ return i;
688
+ }, R = {}, Be = function() {
689
+ for (var e in R) {
690
+ var t = R[e];
691
+ typeof t.install == "function" && t.install(ve()), typeof t.init == "function" && t.init(de());
692
+ }
693
+ R = {};
694
+ };
695
+ export {
696
+ B as $prefix,
697
+ Je as $props,
698
+ Ye as $setup,
699
+ de as appProperties,
700
+ De as createComponent,
701
+ Le as customDesignConfig,
702
+ Ze as deduplicateCssClass,
703
+ ce as defineAsyncComponent,
704
+ Ie as defineComponent,
705
+ D as design,
706
+ ze as directive,
707
+ k as emitter,
708
+ Ve as filterAttrs,
709
+ We as h,
710
+ l as hooks,
711
+ Be as initComponent,
712
+ Qe as isEmptyVnode,
713
+ Z as isVue2,
714
+ N as mergeClass,
715
+ qe as parseVnode,
716
+ Xe as props,
717
+ G as resolveMode,
718
+ Se as resolveTheme,
719
+ et as setup,
720
+ R as setupComponent,
721
+ V as stringifyCssClass,
722
+ Oe as stringifyCssClassArray,
723
+ L as stringifyCssClassObject,
724
+ tt as svg,
725
+ Te as useBreakpoint,
726
+ ge as useRouter
727
+ };