@onlive.ai/common-121 0.2.66 → 0.2.163

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 (286) hide show
  1. package/README.md +0 -1
  2. package/components/asset/asset-modal-portal.cjs +550 -0
  3. package/components/asset/asset-modal-portal.d.cts +22 -0
  4. package/components/asset/asset-modal-portal.d.ts +22 -0
  5. package/components/asset/asset-modal-portal.js +550 -0
  6. package/components/asset/asset.cjs +3536 -0
  7. package/components/asset/asset.d.cts +37 -0
  8. package/components/asset/asset.d.ts +37 -0
  9. package/components/asset/asset.js +3536 -0
  10. package/components/asset/asset.loaders.cjs +2 -0
  11. package/components/asset/asset.loaders.d.cts +17 -0
  12. package/components/asset/asset.loaders.d.ts +17 -0
  13. package/components/asset/asset.loaders.js +2 -0
  14. package/components/asset/asset.renderer.cjs +2292 -0
  15. package/components/asset/asset.renderer.d.cts +29 -0
  16. package/components/asset/asset.renderer.d.ts +29 -0
  17. package/components/asset/asset.renderer.js +2292 -0
  18. package/components/asset/asset.styles.cjs +683 -0
  19. package/components/asset/asset.styles.d.cts +6 -0
  20. package/components/asset/asset.styles.d.ts +6 -0
  21. package/components/asset/asset.styles.js +683 -0
  22. package/components/asset/asset.types.cjs +2 -0
  23. package/components/asset/asset.types.d.cts +103 -0
  24. package/components/asset/asset.types.d.ts +103 -0
  25. package/components/asset/asset.types.js +1 -0
  26. package/components/asset/index.cjs +3536 -0
  27. package/components/asset/index.d.cts +8 -0
  28. package/components/asset/index.d.ts +8 -0
  29. package/components/asset/index.js +3536 -0
  30. package/components/player/player.cjs +2044 -0
  31. package/components/player/player.d.cts +25 -0
  32. package/components/player/player.d.ts +25 -0
  33. package/components/player/player.js +2044 -0
  34. package/components/player/player.styles.cjs +16 -0
  35. package/components/player/player.styles.d.cts +6 -0
  36. package/components/player/player.styles.d.ts +6 -0
  37. package/components/player/player.styles.js +16 -0
  38. package/components/side-bar/index.cjs +3185 -0
  39. package/components/side-bar/index.d.cts +11 -0
  40. package/components/side-bar/index.d.ts +11 -0
  41. package/components/side-bar/index.js +3185 -0
  42. package/components/side-bar/side-bar.cjs +3185 -0
  43. package/components/side-bar/side-bar.d.cts +83 -0
  44. package/components/side-bar/side-bar.d.ts +83 -0
  45. package/components/side-bar/side-bar.js +3185 -0
  46. package/components/side-bar/side-bar.styles.cjs +801 -0
  47. package/components/side-bar/side-bar.styles.d.cts +6 -0
  48. package/components/side-bar/side-bar.styles.d.ts +6 -0
  49. package/components/side-bar/side-bar.styles.js +801 -0
  50. package/components/side-bar/side-bar.types.cjs +2 -0
  51. package/components/side-bar/side-bar.types.d.cts +105 -0
  52. package/components/side-bar/side-bar.types.d.ts +105 -0
  53. package/components/side-bar/side-bar.types.js +2 -0
  54. package/components/upload/index.cjs +83 -0
  55. package/components/upload/index.d.cts +4 -0
  56. package/components/upload/index.d.ts +4 -0
  57. package/components/upload/index.js +83 -0
  58. package/components/upload/upload.cjs +83 -0
  59. package/components/upload/upload.d.cts +28 -0
  60. package/components/upload/upload.d.ts +28 -0
  61. package/components/upload/upload.js +83 -0
  62. package/components/upload/upload.styles.cjs +65 -0
  63. package/components/upload/upload.styles.d.cts +6 -0
  64. package/components/upload/upload.styles.d.ts +6 -0
  65. package/components/upload/upload.styles.js +65 -0
  66. package/components/upload/upload.types.cjs +2 -0
  67. package/components/upload/upload.types.d.cts +16 -0
  68. package/components/upload/upload.types.d.ts +16 -0
  69. package/components/upload/upload.types.js +1 -0
  70. package/index.cjs +4677 -0
  71. package/index.d.cts +338 -0
  72. package/index.d.ts +338 -0
  73. package/index.js +4677 -0
  74. package/package.json +32 -11
  75. package/react/components/asset/Asset.cjs +2 -0
  76. package/react/components/asset/Asset.d.cts +33 -0
  77. package/react/components/asset/Asset.d.ts +33 -0
  78. package/react/components/asset/Asset.jsx +2 -0
  79. package/react/components/side-bar/SideBar.cjs +2 -0
  80. package/react/components/side-bar/SideBar.d.cts +37 -0
  81. package/react/components/side-bar/SideBar.d.ts +37 -0
  82. package/react/components/side-bar/SideBar.jsx +2 -0
  83. package/react/components/upload/Upload.cjs +2 -0
  84. package/react/components/upload/Upload.d.cts +23 -0
  85. package/react/components/upload/Upload.d.ts +23 -0
  86. package/react/components/upload/Upload.jsx +2 -0
  87. package/services/audio.service.cjs +2 -2
  88. package/services/audio.service.d.cts +1 -0
  89. package/services/audio.service.d.ts +1 -0
  90. package/services/audio.service.js +2 -2
  91. package/services/conversation/conversation.service.cjs +2 -0
  92. package/services/conversation/conversation.service.d.cts +533 -0
  93. package/services/conversation/conversation.service.d.ts +533 -0
  94. package/services/conversation/conversation.service.js +2 -0
  95. package/services/conversation/conversation.types.cjs +2 -0
  96. package/services/conversation/conversation.types.d.cts +519 -0
  97. package/services/conversation/conversation.types.d.ts +519 -0
  98. package/services/conversation/conversation.types.js +2 -0
  99. package/services/conversation/index.cjs +2 -0
  100. package/services/conversation/index.d.cts +7 -0
  101. package/services/conversation/index.d.ts +7 -0
  102. package/services/conversation/index.js +2 -0
  103. package/services/faqs/faqs.service.cjs +2 -0
  104. package/services/faqs/faqs.service.d.cts +16 -0
  105. package/services/faqs/faqs.service.d.ts +16 -0
  106. package/services/faqs/faqs.service.js +2 -0
  107. package/services/faqs/faqs.types.cjs +2 -0
  108. package/services/faqs/faqs.types.d.cts +60 -0
  109. package/services/faqs/faqs.types.d.ts +60 -0
  110. package/services/faqs/faqs.types.js +1 -0
  111. package/services/faqs/index.cjs +2 -0
  112. package/services/faqs/index.d.cts +3 -0
  113. package/services/faqs/index.d.ts +3 -0
  114. package/services/faqs/index.js +2 -0
  115. package/services/file/file.service.cjs +2 -0
  116. package/services/file/file.service.d.cts +66 -0
  117. package/services/file/file.service.d.ts +66 -0
  118. package/services/file/file.service.js +2 -0
  119. package/services/file/file.types.cjs +2 -0
  120. package/services/file/file.types.d.cts +72 -0
  121. package/services/file/file.types.d.ts +72 -0
  122. package/services/file/file.types.js +1 -0
  123. package/services/file/index.cjs +2 -0
  124. package/services/file/index.d.cts +3 -0
  125. package/services/file/index.d.ts +3 -0
  126. package/services/file/index.js +2 -0
  127. package/services/firebase/firebase-api.cjs +2 -2
  128. package/services/firebase/firebase-api.d.cts +25 -9
  129. package/services/firebase/firebase-api.d.ts +25 -9
  130. package/services/firebase/firebase-api.js +2 -2
  131. package/services/multimedia/config.example.cjs +2 -0
  132. package/services/multimedia/config.example.d.cts +13 -0
  133. package/services/multimedia/config.example.d.ts +13 -0
  134. package/services/multimedia/config.example.js +2 -0
  135. package/services/multimedia/index.cjs +2 -0
  136. package/services/multimedia/index.d.cts +3 -0
  137. package/services/multimedia/index.d.ts +3 -0
  138. package/services/multimedia/index.js +2 -0
  139. package/services/multimedia/multimedia.service.cjs +2 -0
  140. package/services/multimedia/multimedia.service.d.cts +28 -0
  141. package/services/multimedia/multimedia.service.d.ts +28 -0
  142. package/services/multimedia/multimedia.service.js +2 -0
  143. package/services/multimedia/multimedia.types.cjs +2 -0
  144. package/services/multimedia/multimedia.types.d.cts +65 -0
  145. package/services/multimedia/multimedia.types.d.ts +65 -0
  146. package/services/multimedia/multimedia.types.js +1 -0
  147. package/services/product/index.cjs +2 -0
  148. package/services/product/index.d.cts +3 -0
  149. package/services/product/index.d.ts +3 -0
  150. package/services/product/index.js +2 -0
  151. package/services/product/product.service.cjs +2 -0
  152. package/services/product/product.service.d.cts +19 -0
  153. package/services/product/product.service.d.ts +19 -0
  154. package/services/product/product.service.js +2 -0
  155. package/services/product/product.types.cjs +2 -0
  156. package/services/product/product.types.d.cts +78 -0
  157. package/services/product/product.types.d.ts +78 -0
  158. package/services/product/product.types.js +1 -0
  159. package/services/request.provider.cjs +1 -1
  160. package/services/request.provider.d.cts +1 -0
  161. package/services/request.provider.d.ts +1 -0
  162. package/services/request.provider.js +1 -1
  163. package/services/session.service.cjs +2 -0
  164. package/services/session.service.d.cts +70 -0
  165. package/services/session.service.d.ts +70 -0
  166. package/services/session.service.js +2 -0
  167. package/services/upload/index.cjs +2 -0
  168. package/services/upload/index.d.cts +2 -0
  169. package/services/upload/index.d.ts +2 -0
  170. package/services/upload/index.js +2 -0
  171. package/services/upload/upload.service.cjs +2 -0
  172. package/services/upload/upload.service.d.cts +81 -0
  173. package/services/upload/upload.service.d.ts +81 -0
  174. package/services/upload/upload.service.js +2 -0
  175. package/themes/dark.cjs +4 -1
  176. package/themes/dark.d.cts +1 -0
  177. package/themes/dark.d.ts +1 -0
  178. package/themes/dark.js +4 -1
  179. package/themes/light.cjs +1 -1
  180. package/themes/light.d.cts +1 -0
  181. package/themes/light.d.ts +1 -0
  182. package/themes/light.js +1 -1
  183. package/types/globals.cjs +2 -0
  184. package/types/globals.d.cts +39 -0
  185. package/types/globals.d.ts +39 -0
  186. package/types/globals.js +1 -0
  187. package/types/tracking-options.cjs +2 -2
  188. package/types/tracking-options.d.cts +8 -6
  189. package/types/tracking-options.d.ts +8 -6
  190. package/types/tracking-options.js +1 -1
  191. package/utils/adopt-styles.cjs +2 -2
  192. package/utils/adopt-styles.d.cts +1 -0
  193. package/utils/adopt-styles.d.ts +1 -0
  194. package/utils/adopt-styles.js +2 -2
  195. package/utils/browser-preferences.cjs +2 -2
  196. package/utils/browser-preferences.d.cts +1 -0
  197. package/utils/browser-preferences.d.ts +1 -0
  198. package/utils/browser-preferences.js +2 -2
  199. package/utils/classify-media.cjs +1 -1
  200. package/utils/classify-media.d.cts +1 -0
  201. package/utils/classify-media.d.ts +1 -0
  202. package/utils/classify-media.js +1 -1
  203. package/utils/decorators.cjs +1 -1
  204. package/utils/decorators.d.cts +1 -0
  205. package/utils/decorators.d.ts +1 -0
  206. package/utils/decorators.js +1 -1
  207. package/utils/detected-lang.cjs +2 -2
  208. package/utils/detected-lang.d.cts +1 -0
  209. package/utils/detected-lang.d.ts +1 -0
  210. package/utils/detected-lang.js +2 -2
  211. package/utils/fullscreen.cjs +2 -2
  212. package/utils/fullscreen.d.cts +6 -5
  213. package/utils/fullscreen.d.ts +6 -5
  214. package/utils/fullscreen.js +2 -2
  215. package/utils/insert-script.cjs +1 -1
  216. package/utils/insert-script.d.cts +1 -0
  217. package/utils/insert-script.d.ts +1 -0
  218. package/utils/insert-script.js +1 -1
  219. package/utils/is-map-compatible.cjs +1 -1
  220. package/utils/is-map-compatible.d.cts +1 -0
  221. package/utils/is-map-compatible.d.ts +1 -0
  222. package/utils/is-map-compatible.js +1 -1
  223. package/utils/markdown.cjs +2 -2
  224. package/utils/markdown.d.cts +1 -0
  225. package/utils/markdown.d.ts +1 -0
  226. package/utils/markdown.js +2 -2
  227. package/utils/merge.cjs +2 -2
  228. package/utils/merge.d.cts +2 -1
  229. package/utils/merge.d.ts +2 -1
  230. package/utils/merge.js +2 -2
  231. package/utils/multiband-track-volume.cjs +2 -2
  232. package/utils/multiband-track-volume.d.cts +1 -0
  233. package/utils/multiband-track-volume.d.ts +1 -0
  234. package/utils/multiband-track-volume.js +2 -2
  235. package/utils/onlive-url-params.cjs +1 -1
  236. package/utils/onlive-url-params.d.cts +1 -0
  237. package/utils/onlive-url-params.d.ts +1 -0
  238. package/utils/onlive-url-params.js +1 -1
  239. package/utils/pretty-distance.cjs +2 -2
  240. package/utils/pretty-distance.d.cts +2 -1
  241. package/utils/pretty-distance.d.ts +2 -1
  242. package/utils/pretty-distance.js +2 -2
  243. package/utils/pretty-time.cjs +2 -0
  244. package/utils/pretty-time.d.cts +16 -0
  245. package/utils/pretty-time.d.ts +16 -0
  246. package/utils/pretty-time.js +2 -0
  247. package/utils/random-string.cjs +1 -1
  248. package/utils/random-string.d.cts +1 -0
  249. package/utils/random-string.d.ts +1 -0
  250. package/utils/random-string.js +1 -1
  251. package/utils/resource-type.cjs +1 -1
  252. package/utils/resource-type.d.cts +1 -0
  253. package/utils/resource-type.d.ts +1 -0
  254. package/utils/resource-type.js +1 -1
  255. package/utils/round-number.cjs +2 -0
  256. package/utils/round-number.d.cts +30 -0
  257. package/utils/round-number.d.ts +30 -0
  258. package/utils/round-number.js +2 -0
  259. package/utils/safe-html.cjs +2 -2
  260. package/utils/safe-html.d.cts +4 -3
  261. package/utils/safe-html.d.ts +4 -3
  262. package/utils/safe-html.js +2 -2
  263. package/utils/sanitize.cjs +2 -2
  264. package/utils/sanitize.d.cts +1 -0
  265. package/utils/sanitize.d.ts +1 -0
  266. package/utils/sanitize.js +2 -2
  267. package/utils/spread.cjs +2 -2
  268. package/utils/spread.d.cts +1 -0
  269. package/utils/spread.d.ts +1 -0
  270. package/utils/spread.js +2 -2
  271. package/utils/watch.cjs +1 -1
  272. package/utils/watch.d.cts +1 -0
  273. package/utils/watch.d.ts +1 -0
  274. package/utils/watch.js +1 -1
  275. package/services/firebase/firebase.service.cjs +0 -2
  276. package/services/firebase/firebase.service.d.cts +0 -40
  277. package/services/firebase/firebase.service.d.ts +0 -40
  278. package/services/firebase/firebase.service.js +0 -2
  279. package/services/livekit.service.cjs +0 -2
  280. package/services/livekit.service.d.cts +0 -217
  281. package/services/livekit.service.d.ts +0 -217
  282. package/services/livekit.service.js +0 -2
  283. package/types/window-context.cjs +0 -2
  284. package/types/window-context.d.cts +0 -8
  285. package/types/window-context.d.ts +0 -8
  286. package/types/window-context.js +0 -1
@@ -0,0 +1,683 @@
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
2
+ "use strict";var s=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var p=(o,e)=>{for(var t in e)s(o,t,{get:e[t],enumerable:!0})},c=(o,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of n(e))!d.call(o,a)&&a!==t&&s(o,a,{get:()=>e[a],enumerable:!(r=l(e,a))||r.enumerable});return o};var x=o=>c(s({},"__esModule",{value:!0}),o);var b={};p(b,{styles:()=>g});module.exports=x(b);var i=require("lit"),g=i.css`
3
+ :host {
4
+ display: block;
5
+ --asset-border-radius: 8px;
6
+ --asset-padding: 12px;
7
+ --asset-gap: 8px;
8
+ --asset-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
9
+ --asset-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
10
+ --asset-transition: all 0.2s ease-in-out;
11
+ }
12
+
13
+ .ol-asset {
14
+ display: flex;
15
+ flex-direction: column;
16
+ border-radius: var(--asset-border-radius);
17
+ background: var(--ol-color-surface, #ffffff);
18
+ transition: var(--asset-transition);
19
+ overflow: hidden;
20
+ position: relative;
21
+ cursor: default;
22
+ }
23
+
24
+
25
+
26
+ .ol-asset--loading {
27
+ opacity: 0.7;
28
+ pointer-events: none;
29
+ }
30
+
31
+ .ol-asset--error {
32
+ border-color: var(--ol-color-error, #ef4444);
33
+ background: var(--ol-color-error-surface, #fef2f2);
34
+ }
35
+
36
+ .ol-asset--compact {
37
+ flex-direction: row;
38
+ align-items: center;
39
+ }
40
+
41
+ .ol-asset--minimal {
42
+ padding: var(--asset-padding);
43
+ border: none;
44
+ box-shadow: none;
45
+ background: transparent;
46
+ }
47
+
48
+ .ol-asset--minimal:hover {
49
+ transform: none;
50
+ box-shadow: none;
51
+ }
52
+
53
+ /* Sizes */
54
+ .ol-asset--small {
55
+ --asset-padding: 8px;
56
+ --asset-gap: 6px;
57
+ }
58
+
59
+ .ol-asset--medium {
60
+ --asset-padding: 12px;
61
+ --asset-gap: 8px;
62
+ }
63
+
64
+ .ol-asset--large {
65
+ --asset-padding: 16px;
66
+ --asset-gap: 12px;
67
+ }
68
+
69
+ /* Thumbnail */
70
+ .ol-asset__thumbnail {
71
+ position: relative;
72
+ width: 100%;
73
+ aspect-ratio: 16/9;
74
+ overflow: hidden;
75
+ background: var(--ol-color-surface-secondary, #f9fafb);
76
+ display: flex;
77
+ align-items: center;
78
+ justify-content: center;
79
+ }
80
+
81
+ .ol-asset--compact .ol-asset__thumbnail {
82
+ width: 60px;
83
+ height: 60px;
84
+ aspect-ratio: 1;
85
+ flex-shrink: 0;
86
+ }
87
+
88
+ .ol-asset--minimal .ol-asset__thumbnail {
89
+ display: none;
90
+ }
91
+
92
+ .ol-asset__image {
93
+ width: 100%;
94
+ height: 100%;
95
+ object-fit: contain;
96
+ transition: var(--asset-transition);
97
+ }
98
+
99
+ .ol-asset__video-player {
100
+ width: 100%;
101
+ height: 100%;
102
+ min-height: 120px;
103
+ aspect-ratio: 16/9;
104
+ }
105
+
106
+ .ol-asset__duration {
107
+ position: absolute;
108
+ bottom: 8px;
109
+ right: 8px;
110
+ background: rgba(0, 0, 0, 0.8);
111
+ color: white;
112
+ padding: 2px 6px;
113
+ border-radius: 4px;
114
+ font-size: 12px;
115
+ font-weight: 500;
116
+ }
117
+
118
+ .ol-asset__format-badge {
119
+ position: absolute;
120
+ top: 8px;
121
+ left: 8px;
122
+ background: rgba(0, 0, 0, 0.8);
123
+ color: white;
124
+ padding: 2px 6px;
125
+ border-radius: 4px;
126
+ font-size: 10px;
127
+ font-weight: 500;
128
+ text-transform: uppercase;
129
+ }
130
+
131
+
132
+
133
+ /* Content */
134
+ .ol-asset__content {
135
+ padding: var(--asset-padding);
136
+ display: flex;
137
+ flex-direction: column;
138
+ gap: var(--asset-gap);
139
+ flex: 1;
140
+ }
141
+
142
+ .ol-asset__content--assets {
143
+ display: none;
144
+ }
145
+
146
+ .ol-asset--compact .ol-asset__content {
147
+ padding-left: var(--asset-padding);
148
+ }
149
+
150
+ .ol-asset--minimal .ol-asset__content {
151
+ padding: 0;
152
+ }
153
+
154
+ .ol-asset__name {
155
+ font-size: 14px;
156
+ font-weight: 600;
157
+ color: var(--ol-color-text-primary, #111827);
158
+ line-height: 1.4;
159
+ display: -webkit-box;
160
+ -webkit-line-clamp: 2;
161
+ -webkit-box-orient: vertical;
162
+ overflow: hidden;
163
+ }
164
+
165
+ .ol-asset--large .ol-asset__name {
166
+ font-size: 16px;
167
+ }
168
+
169
+ .ol-asset--small .ol-asset__name {
170
+ font-size: 12px;
171
+ }
172
+
173
+ .ol-asset__description {
174
+ font-size: 12px;
175
+ color: var(--ol-color-text-secondary, #6b7280);
176
+ line-height: 1.4;
177
+ display: -webkit-box;
178
+ -webkit-line-clamp: 2;
179
+ -webkit-box-orient: vertical;
180
+ overflow: hidden;
181
+ }
182
+
183
+ .ol-asset--large .ol-asset__description {
184
+ font-size: 14px;
185
+ }
186
+
187
+ .ol-asset--small .ol-asset__description {
188
+ font-size: 11px;
189
+ }
190
+
191
+ .ol-asset__price {
192
+ font-size: 14px;
193
+ font-weight: 600;
194
+ color: var(--ol-color-primary, #3b82f6);
195
+ }
196
+
197
+ .ol-asset--large .ol-asset__price {
198
+ font-size: 16px;
199
+ }
200
+
201
+ .ol-asset--small .ol-asset__price {
202
+ font-size: 12px;
203
+ }
204
+
205
+ /* Metadata */
206
+ .ol-asset__metadata {
207
+ display: flex;
208
+ flex-wrap: wrap;
209
+ gap: 8px;
210
+ font-size: 11px;
211
+ color: var(--ol-color-text-tertiary, #9ca3af);
212
+ position: absolute;
213
+ bottom: 8px;
214
+ left: 8px;
215
+ }
216
+
217
+ .ol-asset--large .ol-asset__metadata {
218
+ font-size: 12px;
219
+ }
220
+
221
+ .ol-asset--small .ol-asset__metadata {
222
+ font-size: 10px;
223
+ }
224
+
225
+ .ol-asset__meta-item {
226
+ display: flex;
227
+ align-items: center;
228
+ gap: 4px;
229
+ color: #fff;
230
+ border-radius:99px;
231
+ padding: 0 var(--ol-spacing-x-small);
232
+ background-color: var(--ol-color-surface-secondary, rgba(0, 0, 0, 0.8));
233
+ }
234
+
235
+ /* Tags */
236
+ .ol-asset__tags {
237
+ display: flex;
238
+ flex-wrap: wrap;
239
+ gap: 4px;
240
+ }
241
+
242
+ .ol-asset__tag {
243
+ background: var(--ol-color-surface-secondary, #f3f4f6);
244
+ color: var(--ol-color-text-secondary, #6b7280);
245
+ padding: 2px 6px;
246
+ border-radius: 4px;
247
+ font-size: 10px;
248
+ font-weight: 500;
249
+ }
250
+
251
+ .ol-asset--large .ol-asset__tag {
252
+ font-size: 11px;
253
+ padding: 3px 8px;
254
+ }
255
+
256
+ .ol-asset--small .ol-asset__tag {
257
+ font-size: 9px;
258
+ padding: 1px 4px;
259
+ }
260
+
261
+ /* FAQ specific styles */
262
+ .ol-asset--faq {
263
+ background: transparent;
264
+ border: none;
265
+ box-shadow: none;
266
+ padding: 0;
267
+ margin: 0;
268
+ cursor: pointer;
269
+ }
270
+
271
+ .ol-asset--faq:hover {
272
+ transform: none;
273
+ box-shadow: none;
274
+ }
275
+
276
+ .ol-asset--faq .ol-asset__thumbnail {
277
+ display: none;
278
+ }
279
+
280
+ .ol-asset--faq .ol-asset__content {
281
+ gap: 0;
282
+ border-radius: 18px 18px 4px 18px;
283
+ position: relative;
284
+ margin-left: auto;
285
+ }
286
+
287
+ .ol-asset--faq .ol-asset__content::before {
288
+ content: "";
289
+ position: absolute;
290
+ bottom: 0;
291
+ right: -8px;
292
+ width: 0;
293
+ height: 0;
294
+ border-left: 8px solid var(--ol-color-primary, #3b82f6);
295
+ border-top: 8px solid transparent;
296
+ border-bottom: 8px solid transparent;
297
+ }
298
+
299
+ .ol-asset--faq .ol-asset__name {
300
+ display: none;
301
+ }
302
+
303
+ .ol-asset--faq .ol-asset__description,
304
+ .ol-asset--faq .ol-asset__answer {
305
+ font-size: 14px;
306
+ line-height: 1.5;
307
+ padding: var(--ol-spacing-small);
308
+ display: block;
309
+ margin: 0;
310
+ -webkit-line-clamp: none;
311
+ -webkit-box-orient: initial;
312
+ overflow: visible;
313
+ white-space: pre-wrap;
314
+ word-wrap: break-word;
315
+ }
316
+
317
+ .ol-asset--large .ol-asset--faq .ol-asset__description,
318
+ .ol-asset--large .ol-asset--faq .ol-asset__answer {
319
+ font-size: 15px;
320
+ }
321
+
322
+ .ol-asset--small .ol-asset--faq .ol-asset__description,
323
+ .ol-asset--small .ol-asset--faq .ol-asset__answer {
324
+ font-size: 13px;
325
+ }
326
+
327
+ .ol-asset--faq .ol-asset__metadata {
328
+ display: none;
329
+ }
330
+
331
+ .ol-asset--faq .ol-asset__meta-item {
332
+ display: none;
333
+ }
334
+
335
+ /* Presentation specific styles */
336
+ .ol-asset__presentation-preview {
337
+ position: relative;
338
+ width: 100%;
339
+ height: 100%;
340
+ display: flex;
341
+ align-items: center;
342
+ justify-content: center;
343
+ }
344
+
345
+ .ol-asset__presentation-image {
346
+ width: 100%;
347
+ height: 100%;
348
+ object-fit: cover;
349
+ }
350
+
351
+ .ol-asset__presentation-fallback {
352
+ display: flex;
353
+ flex-direction: column;
354
+ align-items: center;
355
+ justify-content: center;
356
+ width: calc(100% - calc(2 * var(--ol-spacing-medium, 16px)));
357
+ padding: var(--ol-spacing-medium, 16px);
358
+ height: calc(100% - calc(2 * var(--ol-spacing-medium, 16px) + 4px));
359
+ gap: var(--ol-spacing-medium, 16px);
360
+ background: linear-gradient(135deg, var(--ol-color-neutral-50, #f9fafb) 0%, var(--ol-color-neutral-100, #f3f4f6) 100%);
361
+ border: 2px dashed var(--ol-color-neutral-300, #d1d5db);
362
+ border-radius: var(--asset-border-radius, 8px);
363
+ transition: all 0.2s ease;
364
+ }
365
+
366
+ .ol-asset:hover .ol-asset__presentation-fallback {
367
+ background: linear-gradient(135deg, var(--ol-color-neutral-100, #f3f4f6) 0%, var(--ol-color-neutral-200, #e5e7eb) 100%);
368
+ border-color: var(--ol-color-neutral-400, #9ca3af);
369
+ }
370
+
371
+ .ol-asset__presentation-icon {
372
+ display: flex;
373
+ align-items: center;
374
+ justify-content: center;
375
+ width: 48px;
376
+ height: 48px;
377
+ color: var(--ol-color-text-secondary, #6b7280);
378
+ opacity: 0.7;
379
+ transition: all 0.2s ease;
380
+ flex-shrink: 0;
381
+ }
382
+
383
+ .ol-asset:hover .ol-asset__presentation-icon {
384
+ opacity: 1;
385
+ transform: scale(1.05);
386
+ color: var(--ol-color-text-primary, #111827);
387
+ }
388
+
389
+ .ol-asset__presentation-icon svg {
390
+ width: 100%;
391
+ height: 100%;
392
+ }
393
+
394
+ .ol-asset__presentation-name {
395
+ font-size: var(--ol-font-size-small, 0.875rem);
396
+ font-weight: 500;
397
+ color: var(--ol-color-text-secondary, #6b7280);
398
+ text-align: center;
399
+ line-height: 1.4;
400
+ max-width: 100%;
401
+ overflow: hidden;
402
+ text-overflow: ellipsis;
403
+ display: -webkit-box;
404
+ -webkit-line-clamp: 2;
405
+ -webkit-box-orient: vertical;
406
+ word-break: break-word;
407
+ transition: color 0.2s ease;
408
+ }
409
+
410
+ .ol-asset:hover .ol-asset__presentation-name {
411
+ color: var(--ol-color-text-primary, #111827);
412
+ }
413
+
414
+ .ol-asset--small .ol-asset__presentation-icon {
415
+ width: 40px;
416
+ height: 40px;
417
+ }
418
+
419
+ .ol-asset--small .ol-asset__presentation-name {
420
+ font-size: var(--ol-font-size-x-small, 0.75rem);
421
+ }
422
+
423
+ .ol-asset--large .ol-asset__presentation-icon {
424
+ width: 80px;
425
+ height: 80px;
426
+ }
427
+
428
+ .ol-asset--large .ol-asset__presentation-name {
429
+ font-size: var(--ol-font-size-medium, 1rem);
430
+ }
431
+
432
+ /* Loading state */
433
+ .ol-asset__loading {
434
+ display: flex;
435
+ align-items: center;
436
+ justify-content: center;
437
+ padding: 20px;
438
+ color: var(--ol-color-text-secondary, #6b7280);
439
+ }
440
+
441
+ .ol-asset__spinner {
442
+ width: 20px;
443
+ height: 20px;
444
+ border: 2px solid var(--ol-color-border, #e5e7eb);
445
+ border-top: 2px solid var(--ol-color-primary, #3b82f6);
446
+ border-radius: 50%;
447
+ animation: spin 1s linear infinite;
448
+ margin-right: 8px;
449
+ }
450
+
451
+ @keyframes spin {
452
+ 0% { transform: rotate(0deg); }
453
+ 100% { transform: rotate(360deg); }
454
+ }
455
+
456
+ /* Error state */
457
+ .ol-asset__error {
458
+ display: flex;
459
+ align-items: center;
460
+ justify-content: center;
461
+ padding: 20px;
462
+ color: var(--ol-color-error, #ef4444);
463
+ text-align: center;
464
+ }
465
+
466
+ .ol-asset__error-icon {
467
+ margin-right: 8px;
468
+ font-size: 16px;
469
+ }
470
+
471
+ /* Responsive */
472
+ @media (max-width: 768px) {
473
+ .ol-asset--compact {
474
+ flex-direction: column;
475
+ }
476
+
477
+ .ol-asset--compact .ol-asset__thumbnail {
478
+ width: 100%;
479
+ height: auto;
480
+ aspect-ratio: 16/9;
481
+ }
482
+
483
+ .ol-asset--compact .ol-asset__content {
484
+ padding-left: var(--asset-padding);
485
+ }
486
+ }
487
+
488
+ /* Download button */
489
+ .ol-asset__download-btn {
490
+ position: absolute;
491
+ top: 8px;
492
+ right: 8px;
493
+ width: 32px;
494
+ height: 32px;
495
+ border: none;
496
+ border-radius: 50%;
497
+ background: rgba(0, 0, 0, 0.7);
498
+ color: white;
499
+ cursor: pointer;
500
+ display: flex;
501
+ align-items: center;
502
+ justify-content: center;
503
+ transition: all 0.2s ease;
504
+ z-index: 2;
505
+ }
506
+
507
+ .ol-asset__download-btn:hover {
508
+ background: rgba(0, 0, 0, 0.9);
509
+ transform: scale(1.1);
510
+ }
511
+
512
+ .ol-asset__download-btn svg {
513
+ width: 16px;
514
+ height: 16px;
515
+ }
516
+
517
+ .ol-asset__download-btn--downloading {
518
+ opacity: 0.7;
519
+ cursor: not-allowed;
520
+ }
521
+
522
+ .ol-asset__download-spinner {
523
+ animation: spin 1s linear infinite;
524
+ }
525
+
526
+ @keyframes spin {
527
+ from {
528
+ transform: rotate(0deg);
529
+ }
530
+ to {
531
+ transform: rotate(360deg);
532
+ }
533
+ }
534
+
535
+ /* Hover overlay */
536
+ .ol-asset__hover-overlay {
537
+ position: absolute;
538
+ top: 0;
539
+ left: 0;
540
+ right: 0;
541
+ bottom: 0;
542
+ background: rgba(0, 0, 0, 0.3);
543
+ backdrop-filter: blur(4px);
544
+ display: flex;
545
+ align-items: center;
546
+ justify-content: center;
547
+ opacity: 0;
548
+ visibility: hidden;
549
+ transition: all 0.3s ease;
550
+ border-radius: var(--asset-border-radius);
551
+ z-index: 10;
552
+ }
553
+
554
+ .ol-asset:hover .ol-asset__hover-overlay {
555
+ opacity: 1;
556
+ visibility: visible;
557
+ }
558
+
559
+ .ol-asset__hover-buttons {
560
+ display: flex;
561
+ gap: 12px;
562
+ align-items: center;
563
+ justify-content: center;
564
+ }
565
+
566
+ .ol-asset__hover-btn {
567
+ width: 48px;
568
+ height: 48px;
569
+ border: none;
570
+ border-radius: 50%;
571
+ background: rgba(255, 255, 255, 0.9);
572
+ color: var(--ol-color-neutral-700, #374151);
573
+ cursor: pointer;
574
+ display: flex;
575
+ align-items: center;
576
+ justify-content: center;
577
+ transition: all 0.2s ease;
578
+ backdrop-filter: blur(8px);
579
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
580
+ }
581
+
582
+ .ol-asset__hover-btn:hover {
583
+ background: rgba(255, 255, 255, 1);
584
+ transform: scale(1.1);
585
+ box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
586
+ }
587
+
588
+ .ol-asset__hover-btn:active {
589
+ transform: scale(0.95);
590
+ }
591
+
592
+ .ol-asset__hover-btn--maximize,
593
+ .ol-asset__hover-btn--download,
594
+ .ol-asset__hover-btn--external {
595
+ background: rgba(255, 255, 255, 0.9);
596
+ color: var(--ol-color-neutral-700, #374151);
597
+ }
598
+
599
+ .ol-asset__hover-btn--maximize:hover,
600
+ .ol-asset__hover-btn--download:hover,
601
+ .ol-asset__hover-btn--external:hover {
602
+ background: rgba(255, 255, 255, 1);
603
+ }
604
+
605
+ .ol-asset__hover-btn--downloading {
606
+ opacity: 0.7;
607
+ cursor: not-allowed;
608
+ transform: none !important;
609
+ }
610
+
611
+ .ol-asset__hover-btn--downloading:hover {
612
+ transform: none;
613
+ background: rgba(34, 197, 94, 0.9);
614
+ }
615
+
616
+ .ol-asset__hover-btn svg {
617
+ width: 20px;
618
+ height: 20px;
619
+ }
620
+
621
+ /* Video controls (always visible in top-right corner) */
622
+ .ol-asset__video-controls {
623
+ position: absolute;
624
+ top: 8px;
625
+ right: 8px;
626
+ display: flex;
627
+ gap: 6px;
628
+ align-items: center;
629
+ z-index: 20;
630
+ }
631
+
632
+ .ol-asset__video-btn {
633
+ width: 32px;
634
+ height: 32px;
635
+ border: none;
636
+ border-radius: 6px;
637
+ background: rgba(0, 0, 0, 0.6);
638
+ color: white;
639
+ cursor: pointer;
640
+ display: flex;
641
+ align-items: center;
642
+ justify-content: center;
643
+ transition: all 0.2s ease;
644
+ backdrop-filter: blur(8px);
645
+ }
646
+
647
+ .ol-asset__video-btn:hover {
648
+ background: rgba(0, 0, 0, 0.8);
649
+ transform: scale(1.05);
650
+ }
651
+
652
+ .ol-asset__video-btn:active {
653
+ transform: scale(0.95);
654
+ }
655
+
656
+ .ol-asset__video-btn--downloading {
657
+ opacity: 0.7;
658
+ cursor: not-allowed;
659
+ }
660
+
661
+ .ol-asset__video-btn--downloading:hover {
662
+ transform: none;
663
+ }
664
+
665
+ .ol-asset__video-btn svg {
666
+ width: 16px;
667
+ height: 16px;
668
+ }
669
+
670
+ /* Mobile: Video controls always visible */
671
+ @media (max-width: 768px) {
672
+ .ol-asset__video-controls {
673
+ opacity: 1;
674
+ visibility: visible;
675
+ }
676
+ }
677
+
678
+ /* Hide existing download button when hover overlay is visible */
679
+ .ol-asset:hover .ol-asset__download-btn {
680
+ opacity: 0;
681
+ visibility: hidden;
682
+ }
683
+ `;0&&(module.exports={styles});
@@ -0,0 +1,6 @@
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
2
+ import * as lit from 'lit';
3
+
4
+ declare const styles: lit.CSSResult;
5
+
6
+ export { styles };
@@ -0,0 +1,6 @@
1
+ /*! @onlive.ai/common-121 v0.2.163 | © 2026 Onlive.ai */
2
+ import * as lit from 'lit';
3
+
4
+ declare const styles: lit.CSSResult;
5
+
6
+ export { styles };