urnovl-web-components 0.0.260 → 0.0.261

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 (632) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/radio-DWksGWLi.js +170 -0
  3. package/dist/cjs/{tab-panel-BS_8ksq9.js → tab-BVwUIXQ4.js} +0 -49
  4. package/dist/cjs/tab-panel-KdoHPsyE.js +54 -0
  5. package/dist/cjs/ur-ad-banner.cjs.entry.js +3 -3
  6. package/dist/cjs/ur-author-page-profile.cjs.entry.js +3 -3
  7. package/dist/cjs/ur-autosave-drawer.cjs.entry.js +1 -1
  8. package/dist/cjs/{ur-avatar-COaGB2q6.js → ur-avatar-BV3tq4vp.js} +13 -6
  9. package/dist/cjs/ur-avatar_3.cjs.entry.js +1 -1
  10. package/dist/cjs/ur-bottom-sheet.cjs.entry.js +1 -1
  11. package/dist/cjs/ur-button-arrow-left_2.cjs.entry.js +2 -2
  12. package/dist/cjs/ur-button-icon.cjs.entry.js +1 -1
  13. package/dist/cjs/ur-button.cjs.entry.js +3 -1
  14. package/dist/cjs/ur-chapter-item.cjs.entry.js +1 -1
  15. package/dist/cjs/ur-checkbox-group.cjs.entry.js +1 -1
  16. package/dist/cjs/ur-circular-progress.cjs.entry.js +1 -1
  17. package/dist/cjs/ur-comment-form.cjs.entry.js +5 -2
  18. package/dist/cjs/ur-competition-carousel.cjs.entry.js +1 -1
  19. package/dist/cjs/ur-competition-novl-card_2.cjs.entry.js +8 -8
  20. package/dist/cjs/ur-competition-overview.cjs.entry.js +3 -2
  21. package/dist/cjs/ur-competition.cjs.entry.js +5 -5
  22. package/dist/cjs/ur-dialog.cjs.entry.js +3 -3
  23. package/dist/cjs/ur-dropdown_2.cjs.entry.js +1 -1
  24. package/dist/cjs/ur-editor.cjs.entry.js +2 -2
  25. package/dist/cjs/ur-form.cjs.entry.js +1 -1
  26. package/dist/cjs/ur-grid-col.cjs.entry.js +1 -1
  27. package/dist/cjs/ur-grid-row.cjs.entry.js +1 -1
  28. package/dist/cjs/ur-grid.cjs.entry.js +2 -2
  29. package/dist/cjs/ur-hero.cjs.entry.js +4 -4
  30. package/dist/cjs/ur-icon.cjs.entry.js +1 -1
  31. package/dist/cjs/ur-image-uploader.cjs.entry.js +1 -1
  32. package/dist/cjs/ur-library-shelf-creator.cjs.entry.js +1 -1
  33. package/dist/cjs/ur-library-shelf-selector.cjs.entry.js +1 -1
  34. package/dist/cjs/ur-linear-progress.cjs.entry.js +2 -2
  35. package/dist/cjs/ur-list-subheader.cjs.entry.js +1 -1
  36. package/dist/cjs/ur-list.cjs.entry.js +1 -1
  37. package/dist/cjs/ur-loader.cjs.entry.js +1 -1
  38. package/dist/cjs/ur-locale-filter-button.cjs.entry.js +2 -2
  39. package/dist/cjs/ur-locale-filter-panel.cjs.entry.js +2 -2
  40. package/dist/cjs/ur-logo.cjs.entry.js +1 -1
  41. package/dist/cjs/ur-main-desktop-top-app-bar.cjs.entry.js +2 -2
  42. package/dist/cjs/ur-main-menu.cjs.entry.js +1 -1
  43. package/dist/cjs/ur-menu-item.cjs.entry.js +2 -2
  44. package/dist/cjs/ur-menu-profile.cjs.entry.js +1 -1
  45. package/dist/cjs/ur-navigation-bar.cjs.entry.js +1 -1
  46. package/dist/cjs/ur-navigation-drawer-global.cjs.entry.js +1 -1
  47. package/dist/cjs/ur-navigation-drawer.cjs.entry.js +1 -1
  48. package/dist/cjs/ur-notification-tabs.cjs.entry.js +3 -2
  49. package/dist/cjs/ur-novl-carousel.cjs.entry.js +1 -1
  50. package/dist/cjs/ur-novl-overview-info.cjs.entry.js +5 -5
  51. package/dist/cjs/ur-novl-summary.cjs.entry.js +4 -4
  52. package/dist/cjs/ur-page-carousel.cjs.entry.js +1 -1
  53. package/dist/cjs/ur-page-profile-tabs.cjs.entry.js +9 -2
  54. package/dist/cjs/ur-page-profile.cjs.entry.js +3 -3
  55. package/dist/cjs/ur-page-shared-list-tabs.cjs.entry.js +3 -2
  56. package/dist/cjs/ur-player.cjs.entry.js +3 -3
  57. package/dist/cjs/ur-post-card.cjs.entry.js +311 -0
  58. package/dist/cjs/ur-post-detail.cjs.entry.js +286 -0
  59. package/dist/cjs/ur-post-editor.cjs.entry.js +388 -0
  60. package/dist/cjs/ur-post-prompt.cjs.entry.js +55 -0
  61. package/dist/cjs/ur-profile-card.cjs.entry.js +2 -2
  62. package/dist/cjs/ur-profile.cjs.entry.js +3 -3
  63. package/dist/cjs/ur-radio-button.cjs.entry.js +57 -0
  64. package/dist/cjs/{ur-radio-button_2.cjs.entry.js → ur-radio-group.cjs.entry.js} +9 -199
  65. package/dist/cjs/ur-read-mobile-top-app-bar.cjs.entry.js +1 -1
  66. package/dist/cjs/ur-read-rail-mobile.cjs.entry.js +2 -2
  67. package/dist/cjs/ur-read-rail.cjs.entry.js +2 -2
  68. package/dist/cjs/ur-read-top-app-bar.cjs.entry.js +1 -1
  69. package/dist/cjs/ur-segment-button.cjs.entry.js +1 -1
  70. package/dist/cjs/ur-select.cjs.entry.js +2 -2
  71. package/dist/cjs/ur-snackbar.cjs.entry.js +2 -2
  72. package/dist/cjs/ur-stepper.cjs.entry.js +1 -1
  73. package/dist/cjs/ur-subscription-card.cjs.entry.js +1 -1
  74. package/dist/cjs/ur-subscription-tiers-carousel.cjs.entry.js +1 -1
  75. package/dist/cjs/ur-switch.cjs.entry.js +1 -1
  76. package/dist/cjs/ur-tabs.cjs.entry.js +3 -2
  77. package/dist/cjs/ur-thumbs-rating.cjs.entry.js +3 -3
  78. package/dist/cjs/ur-time-ago.cjs.entry.js +1 -1
  79. package/dist/cjs/ur-top-app-bar.cjs.entry.js +2 -2
  80. package/dist/cjs/ur-user-carousel.cjs.entry.js +1 -1
  81. package/dist/cjs/ur-user-page-profile.cjs.entry.js +3 -3
  82. package/dist/cjs/ur-user-partnership-application.cjs.entry.js +1 -1
  83. package/dist/cjs/ur-user-profile-settings-form.cjs.entry.js +27 -2
  84. package/dist/cjs/ur-user-profile-tabs.cjs.entry.js +9 -2
  85. package/dist/cjs/ur-user-profile.cjs.entry.js +1 -1
  86. package/dist/cjs/ur-work-overview.cjs.entry.js +6 -6
  87. package/dist/cjs/urnovl-web-components.cjs.js +1 -1
  88. package/dist/collection/collection-manifest.json +6 -2
  89. package/dist/collection/components/ur-ad-banner/ur-ad-banner.js +3 -3
  90. package/dist/collection/components/ur-author-page-profile/ur-author-page-profile.js +2 -2
  91. package/dist/collection/components/ur-autosave-drawer/ur-autosave-drawer.js +1 -1
  92. package/dist/collection/components/ur-avatar/ur-avatar.js +14 -8
  93. package/dist/collection/components/ur-bottom-sheet/ur-bottom-sheet.js +1 -1
  94. package/dist/collection/components/ur-button/ur-button.js +22 -1
  95. package/dist/collection/components/ur-button-arrow-left/ur-button-arrow-left.js +1 -1
  96. package/dist/collection/components/ur-button-arrow-right/ur-button-arrow-right.js +1 -1
  97. package/dist/collection/components/ur-button-icon/ur-button-icon.js +1 -1
  98. package/dist/collection/components/ur-chapter-item/ur-chapter-item.js +1 -1
  99. package/dist/collection/components/ur-checkbox-group/ur-checkbox-group.js +1 -1
  100. package/dist/collection/components/ur-circular-progress/ur-circular-progress.js +1 -1
  101. package/dist/collection/components/ur-comment-form/ur-comment-form.css +14 -3
  102. package/dist/collection/components/ur-comment-form/ur-comment-form.js +64 -1
  103. package/dist/collection/components/ur-competition/ur-competition.js +5 -5
  104. package/dist/collection/components/ur-competition-carousel/ur-competition-carousel.js +1 -1
  105. package/dist/collection/components/ur-competition-novl-card/ur-competition-novl-card.js +6 -6
  106. package/dist/collection/components/ur-competition-overview/ur-competition-overview.js +1 -1
  107. package/dist/collection/components/ur-dialog/ur-dialog.js +3 -3
  108. package/dist/collection/components/ur-dropdown/ur-dropdown.js +1 -1
  109. package/dist/collection/components/ur-editor/ur-editor.js +2 -2
  110. package/dist/collection/components/ur-form/ur-form.js +1 -1
  111. package/dist/collection/components/ur-grid/ur-grid-col.js +1 -1
  112. package/dist/collection/components/ur-grid/ur-grid-row.js +1 -1
  113. package/dist/collection/components/ur-grid/ur-grid.js +2 -2
  114. package/dist/collection/components/ur-hero/ur-hero.js +4 -4
  115. package/dist/collection/components/ur-icon/ur-icon.js +1 -1
  116. package/dist/collection/components/ur-image-uploader/ur-image-uploader.js +1 -1
  117. package/dist/collection/components/ur-library-shelf-creator/ur-library-shelf-creator.js +1 -1
  118. package/dist/collection/components/ur-library-shelf-selector/ur-library-shelf-selector.js +1 -1
  119. package/dist/collection/components/ur-linear-progress/ur-linear-progress.js +2 -2
  120. package/dist/collection/components/ur-list/ur-list.js +1 -1
  121. package/dist/collection/components/ur-list-subheader/ur-list-subheader.js +1 -1
  122. package/dist/collection/components/ur-loader/ur-loader.js +1 -1
  123. package/dist/collection/components/ur-locale-filter-button/ur-locale-filter-button.js +2 -2
  124. package/dist/collection/components/ur-locale-filter-panel/ur-locale-filter-panel.js +2 -2
  125. package/dist/collection/components/ur-logo/ur-logo.js +1 -1
  126. package/dist/collection/components/ur-main-desktop-top-app-bar/ur-main-desktop-top-app-bar.js +2 -2
  127. package/dist/collection/components/ur-main-menu/ur-main-menu.js +1 -1
  128. package/dist/collection/components/ur-menu-item/ur-menu-item.js +2 -2
  129. package/dist/collection/components/ur-menu-profile/ur-menu-profile.js +1 -1
  130. package/dist/collection/components/ur-navigation-bar/ur-navigation-bar.js +1 -1
  131. package/dist/collection/components/ur-navigation-drawer/ur-navigation-drawer.js +1 -1
  132. package/dist/collection/components/ur-navigation-drawer-global/ur-navigation-drawer-global.js +1 -1
  133. package/dist/collection/components/ur-notification-tabs/ur-notification-tabs.js +1 -1
  134. package/dist/collection/components/ur-novl-carousel/ur-novl-carousel.js +1 -1
  135. package/dist/collection/components/ur-novl-overview-info/ur-novl-overview-info.js +4 -4
  136. package/dist/collection/components/ur-novl-summary/ur-novl-summary.js +3 -3
  137. package/dist/collection/components/ur-page-carousel/ur-page-carousel.js +1 -1
  138. package/dist/collection/components/ur-page-profile/ur-page-profile.js +2 -2
  139. package/dist/collection/components/ur-page-profile-tabs/ur-page-profile-tabs.js +27 -1
  140. package/dist/collection/components/ur-page-shared-list-tabs/ur-page-shared-list-tabs.js +1 -1
  141. package/dist/collection/components/ur-player/ur-player.js +3 -3
  142. package/dist/collection/components/ur-post-card/ur-post-card.css +651 -0
  143. package/dist/collection/components/ur-post-card/ur-post-card.js +996 -0
  144. package/dist/collection/components/ur-post-card/ur-post-card.types.js +1 -0
  145. package/dist/collection/components/ur-post-detail/ur-post-detail.css +439 -0
  146. package/dist/collection/components/ur-post-detail/ur-post-detail.js +865 -0
  147. package/dist/collection/components/ur-post-detail/ur-post-detail.types.js +1 -0
  148. package/dist/collection/components/ur-post-editor/ur-post-editor.css +425 -0
  149. package/dist/collection/components/ur-post-editor/ur-post-editor.js +1371 -0
  150. package/dist/collection/components/ur-post-prompt/ur-post-prompt.css +53 -0
  151. package/dist/collection/components/ur-post-prompt/ur-post-prompt.js +283 -0
  152. package/dist/collection/components/ur-profile/ur-profile.js +3 -3
  153. package/dist/collection/components/ur-profile-card/ur-profile-card.js +1 -1
  154. package/dist/collection/components/ur-radio-button/ur-radio-button.js +12 -8
  155. package/dist/collection/components/ur-radio-group/ur-radio-group.js +1 -1
  156. package/dist/collection/components/ur-read-mobile-top-app-bar/ur-read-mobile-top-app-bar.js +1 -1
  157. package/dist/collection/components/ur-read-rail/ur-read-rail.js +2 -2
  158. package/dist/collection/components/ur-read-rail-mobile/ur-read-rail-mobile.js +2 -2
  159. package/dist/collection/components/ur-read-top-app-bar/ur-read-top-app-bar.js +1 -1
  160. package/dist/collection/components/ur-segment-button/ur-segment-button.js +1 -1
  161. package/dist/collection/components/ur-select/ur-select.css +5 -2
  162. package/dist/collection/components/ur-select/ur-select.js +1 -1
  163. package/dist/collection/components/ur-snackbar/ur-snackbar.js +2 -2
  164. package/dist/collection/components/ur-stats/ur-stats.js +2 -2
  165. package/dist/collection/components/ur-stepper/ur-stepper.js +1 -1
  166. package/dist/collection/components/ur-subscription-card/ur-subscription-card.js +1 -1
  167. package/dist/collection/components/ur-subscription-tiers-carousel/ur-subscription-tiers-carousel.js +1 -1
  168. package/dist/collection/components/ur-switch/ur-switch.js +1 -1
  169. package/dist/collection/components/ur-tabs/ur-tabs.js +1 -1
  170. package/dist/collection/components/ur-thumbs-rating/ur-thumbs-rating.js +3 -3
  171. package/dist/collection/components/ur-time-ago/ur-time-ago.js +1 -1
  172. package/dist/collection/components/ur-top-app-bar/ur-top-app-bar.js +2 -2
  173. package/dist/collection/components/ur-user-carousel/ur-user-carousel.js +1 -1
  174. package/dist/collection/components/ur-user-page-profile/ur-user-page-profile.js +2 -2
  175. package/dist/collection/components/ur-user-partnership-application/ur-user-partnership-application.js +1 -1
  176. package/dist/collection/components/ur-user-profile/ur-user-profile.js +1 -1
  177. package/dist/collection/components/ur-user-profile-settings-form/ur-user-profile-settings-form.css +54 -0
  178. package/dist/collection/components/ur-user-profile-settings-form/ur-user-profile-settings-form.js +263 -2
  179. package/dist/collection/components/ur-user-profile-tabs/ur-user-profile-tabs.js +27 -1
  180. package/dist/collection/components/ur-work-overview/ur-work-overview.js +5 -5
  181. package/dist/collection/stories/CommentForm.stories.js +22 -0
  182. package/dist/collection/stories/PostCard.stories.js +770 -0
  183. package/dist/collection/stories/PostDetail.stories.js +406 -0
  184. package/dist/collection/stories/PostEditor.stories.js +416 -0
  185. package/dist/collection/stories/PostPrompt.stories.js +185 -0
  186. package/dist/collection/stories/UserProfileSettingsForm.stories.js +70 -0
  187. package/dist/components/{p-BKchntfo.js → p-03wkTPxQ.js} +1 -1
  188. package/dist/components/{p-Bfz4JsuD.js → p-2DKsUy-2.js} +0 -49
  189. package/dist/components/{p-Bx6fE2l3.js → p-BY4DFbqH.js} +4 -1
  190. package/dist/components/{p-D614DE4A.js → p-BprsjaxF.js} +1 -1
  191. package/dist/components/{p-DSQlUWyM.js → p-BxphUdOx.js} +1 -1
  192. package/dist/components/{p-m3l6rpTl.js → p-C8X80qyp.js} +1 -1
  193. package/dist/components/{p-C3v4NYCZ.js → p-C92dQzDo.js} +1 -1
  194. package/dist/components/p-CC8esrW-.js +52 -0
  195. package/dist/components/{p-DV782yr8.js → p-CFJcUF9w.js} +1 -1
  196. package/dist/components/{p-zT_m5cqn.js → p-CVMqpnJb.js} +1 -1
  197. package/dist/components/{p-DIsqN2af.js → p-CcsOJD5k.js} +3 -3
  198. package/dist/components/{p-viReDfYk.js → p-Ce3HFAVh.js} +1 -1
  199. package/dist/components/{p-DUoVib83.js → p-CfldtLQf.js} +13 -6
  200. package/dist/components/{p-KEnip_eJ.js → p-CiihVtnt.js} +2 -2
  201. package/dist/components/{p-hq0QnQ__.js → p-CvIyrJOF.js} +1 -1
  202. package/dist/components/{p-BZPQ9A0k.js → p-DE-Ebb0W.js} +1 -1
  203. package/dist/components/{p-CMaS5_FI.js → p-DIrqGiUJ.js} +2 -2
  204. package/dist/components/{p-CYZhNTeP.js → p-DNOMxgVq.js} +1 -1
  205. package/dist/components/{p-DvK12rWN.js → p-DQohMME6.js} +1 -1
  206. package/dist/components/{p-ByNX7rB1.js → p-DR_e7_h1.js} +6 -6
  207. package/dist/components/{p-DWw8j4-8.js → p-DmcTV8ow.js} +1 -1
  208. package/dist/components/p-E7oF2Ho9.js +533 -0
  209. package/dist/components/{p-Bpxw55nt.js → p-GadDdSTq.js} +5 -5
  210. package/dist/components/{p-C3xJtl8A.js → p-K79NbcgI.js} +6 -6
  211. package/dist/components/{p-DodTpF-h.js → p-YHtvjamV.js} +13 -9
  212. package/dist/components/{p-DQR9IkCh.js → p-Yub-kvNT.js} +2 -2
  213. package/dist/components/{p-CAPHCTJl.js → p-cEpNt5Cx.js} +1 -1
  214. package/dist/components/{p-DnPjaZVg.js → p-qe3zXShw.js} +1 -1
  215. package/dist/components/ur-ad-banner.js +3 -3
  216. package/dist/components/ur-author-page-profile.js +4 -4
  217. package/dist/components/ur-autosave-drawer.js +3 -3
  218. package/dist/components/ur-avatar.js +1 -1
  219. package/dist/components/ur-bottom-sheet.js +1 -1
  220. package/dist/components/ur-bravo.js +1 -1
  221. package/dist/components/ur-button-arrow-left.js +1 -1
  222. package/dist/components/ur-button-arrow-right.js +1 -1
  223. package/dist/components/ur-button-icon.js +1 -1
  224. package/dist/components/ur-button.js +1 -1
  225. package/dist/components/ur-chapter-item.js +4 -4
  226. package/dist/components/ur-checkbox-group.js +1 -1
  227. package/dist/components/ur-circular-progress.js +1 -1
  228. package/dist/components/ur-comment-form.js +11 -5
  229. package/dist/components/ur-comment.js +2 -2
  230. package/dist/components/ur-competition-carousel.js +5 -5
  231. package/dist/components/ur-competition-novl-card.js +1 -1
  232. package/dist/components/ur-competition-overview.js +10 -9
  233. package/dist/components/ur-competition.js +1 -1
  234. package/dist/components/ur-data-list.js +2 -2
  235. package/dist/components/ur-dialog.js +3 -3
  236. package/dist/components/ur-dropdown.js +1 -1
  237. package/dist/components/ur-editor.js +3 -3
  238. package/dist/components/ur-feedback.js +3 -3
  239. package/dist/components/ur-form.js +1 -1
  240. package/dist/components/ur-grid-col.js +1 -1
  241. package/dist/components/ur-grid-row.js +1 -1
  242. package/dist/components/ur-grid.js +3 -3
  243. package/dist/components/ur-hero.js +5 -5
  244. package/dist/components/ur-icon.js +1 -1
  245. package/dist/components/ur-image-uploader.js +1 -1
  246. package/dist/components/ur-library-shelf-creator.js +3 -3
  247. package/dist/components/ur-library-shelf-selector.js +4 -4
  248. package/dist/components/ur-linear-progress.js +1 -1
  249. package/dist/components/ur-list-subheader.js +1 -1
  250. package/dist/components/ur-list.js +1 -1
  251. package/dist/components/ur-loader.js +1 -1
  252. package/dist/components/ur-locale-filter-button.js +2 -2
  253. package/dist/components/ur-locale-filter-panel.js +3 -3
  254. package/dist/components/ur-logo.js +1 -1
  255. package/dist/components/ur-main-desktop-top-app-bar.js +5 -5
  256. package/dist/components/ur-main-menu.js +7 -7
  257. package/dist/components/ur-menu-item.js +2 -2
  258. package/dist/components/ur-menu-profile.js +1 -1
  259. package/dist/components/ur-navigation-bar.js +1 -1
  260. package/dist/components/ur-navigation-drawer-global.js +1 -1
  261. package/dist/components/ur-navigation-drawer.js +1 -1
  262. package/dist/components/ur-notification-tabs.js +3 -2
  263. package/dist/components/ur-notification.js +4 -4
  264. package/dist/components/ur-novl-carousel.js +5 -5
  265. package/dist/components/ur-novl-overview-info.js +11 -11
  266. package/dist/components/ur-novl-summary.js +6 -6
  267. package/dist/components/ur-novl.js +1 -1
  268. package/dist/components/ur-page-carousel.js +5 -5
  269. package/dist/components/ur-page-list.js +1 -1
  270. package/dist/components/ur-page-partnership-application.js +3 -3
  271. package/dist/components/ur-page-profile-tabs.js +10 -2
  272. package/dist/components/ur-page-profile.js +6 -6
  273. package/dist/components/ur-page-shared-list-tabs.js +3 -2
  274. package/dist/components/ur-page.js +1 -1
  275. package/dist/components/ur-player.js +5 -5
  276. package/dist/components/ur-post-card.d.ts +11 -0
  277. package/dist/components/ur-post-card.js +371 -0
  278. package/dist/components/ur-post-detail.d.ts +11 -0
  279. package/dist/components/ur-post-detail.js +343 -0
  280. package/dist/components/ur-post-editor.d.ts +11 -0
  281. package/dist/components/ur-post-editor.js +458 -0
  282. package/dist/components/ur-post-prompt.d.ts +11 -0
  283. package/dist/components/ur-post-prompt.js +103 -0
  284. package/dist/components/ur-pricing-card.js +1 -1
  285. package/dist/components/ur-profile-card.js +1 -1
  286. package/dist/components/ur-profile-completion-card.js +1 -1
  287. package/dist/components/ur-profile-completion-fab.js +6 -6
  288. package/dist/components/ur-profile.js +3 -3
  289. package/dist/components/ur-radio-button.js +1 -1
  290. package/dist/components/ur-radio-group.js +1 -1
  291. package/dist/components/ur-read-mobile-top-app-bar.js +2 -2
  292. package/dist/components/ur-read-rail-mobile.js +4 -4
  293. package/dist/components/ur-read-rail.js +4 -4
  294. package/dist/components/ur-read-top-app-bar.js +2 -2
  295. package/dist/components/ur-reader.js +2 -2
  296. package/dist/components/ur-segment-button.js +1 -1
  297. package/dist/components/ur-select.js +1 -531
  298. package/dist/components/ur-shelf-card.js +1 -1
  299. package/dist/components/ur-snackbar.js +2 -2
  300. package/dist/components/ur-stats.js +1 -1
  301. package/dist/components/ur-stepper.js +2 -2
  302. package/dist/components/ur-subscription-card.js +2 -2
  303. package/dist/components/ur-subscription-tier-editor.js +1 -1
  304. package/dist/components/ur-subscription-tiers-carousel.js +5 -5
  305. package/dist/components/ur-switch.js +1 -1
  306. package/dist/components/ur-tabs.js +3 -2
  307. package/dist/components/ur-thumbs-rating.js +4 -4
  308. package/dist/components/ur-time-ago.js +1 -1
  309. package/dist/components/ur-top-app-bar.js +3 -3
  310. package/dist/components/ur-user-carousel.js +5 -5
  311. package/dist/components/ur-user-page-profile.js +7 -7
  312. package/dist/components/ur-user-partnership-application.js +4 -4
  313. package/dist/components/ur-user-profile-settings-form.js +41 -6
  314. package/dist/components/ur-user-profile-tabs.js +10 -2
  315. package/dist/components/ur-user-profile.js +1 -1
  316. package/dist/components/ur-user.js +1 -1
  317. package/dist/components/ur-work-overview.js +9 -9
  318. package/dist/components/ur-work.js +1 -1
  319. package/dist/esm/loader.js +1 -1
  320. package/dist/esm/radio-B2MeJZg9.js +168 -0
  321. package/dist/esm/{tab-panel-YMLschUK.js → tab-JcwwlhqJ.js} +0 -49
  322. package/dist/esm/tab-panel-mttybgVa.js +52 -0
  323. package/dist/esm/ur-ad-banner.entry.js +3 -3
  324. package/dist/esm/ur-author-page-profile.entry.js +3 -3
  325. package/dist/esm/ur-autosave-drawer.entry.js +1 -1
  326. package/dist/esm/{ur-avatar-n6L9PEnR.js → ur-avatar-DXF3lVCQ.js} +13 -6
  327. package/dist/esm/ur-avatar_3.entry.js +1 -1
  328. package/dist/esm/ur-bottom-sheet.entry.js +1 -1
  329. package/dist/esm/ur-button-arrow-left_2.entry.js +2 -2
  330. package/dist/esm/ur-button-icon.entry.js +1 -1
  331. package/dist/esm/ur-button.entry.js +3 -1
  332. package/dist/esm/ur-chapter-item.entry.js +1 -1
  333. package/dist/esm/ur-checkbox-group.entry.js +1 -1
  334. package/dist/esm/ur-circular-progress.entry.js +1 -1
  335. package/dist/esm/ur-comment-form.entry.js +5 -2
  336. package/dist/esm/ur-competition-carousel.entry.js +1 -1
  337. package/dist/esm/ur-competition-novl-card_2.entry.js +8 -8
  338. package/dist/esm/ur-competition-overview.entry.js +3 -2
  339. package/dist/esm/ur-competition.entry.js +5 -5
  340. package/dist/esm/ur-dialog.entry.js +3 -3
  341. package/dist/esm/ur-dropdown_2.entry.js +1 -1
  342. package/dist/esm/ur-editor.entry.js +2 -2
  343. package/dist/esm/ur-form.entry.js +1 -1
  344. package/dist/esm/ur-grid-col.entry.js +1 -1
  345. package/dist/esm/ur-grid-row.entry.js +1 -1
  346. package/dist/esm/ur-grid.entry.js +2 -2
  347. package/dist/esm/ur-hero.entry.js +4 -4
  348. package/dist/esm/ur-icon.entry.js +1 -1
  349. package/dist/esm/ur-image-uploader.entry.js +1 -1
  350. package/dist/esm/ur-library-shelf-creator.entry.js +1 -1
  351. package/dist/esm/ur-library-shelf-selector.entry.js +1 -1
  352. package/dist/esm/ur-linear-progress.entry.js +2 -2
  353. package/dist/esm/ur-list-subheader.entry.js +1 -1
  354. package/dist/esm/ur-list.entry.js +1 -1
  355. package/dist/esm/ur-loader.entry.js +1 -1
  356. package/dist/esm/ur-locale-filter-button.entry.js +2 -2
  357. package/dist/esm/ur-locale-filter-panel.entry.js +2 -2
  358. package/dist/esm/ur-logo.entry.js +1 -1
  359. package/dist/esm/ur-main-desktop-top-app-bar.entry.js +2 -2
  360. package/dist/esm/ur-main-menu.entry.js +1 -1
  361. package/dist/esm/ur-menu-item.entry.js +2 -2
  362. package/dist/esm/ur-menu-profile.entry.js +1 -1
  363. package/dist/esm/ur-navigation-bar.entry.js +1 -1
  364. package/dist/esm/ur-navigation-drawer-global.entry.js +1 -1
  365. package/dist/esm/ur-navigation-drawer.entry.js +1 -1
  366. package/dist/esm/ur-notification-tabs.entry.js +3 -2
  367. package/dist/esm/ur-novl-carousel.entry.js +1 -1
  368. package/dist/esm/ur-novl-overview-info.entry.js +5 -5
  369. package/dist/esm/ur-novl-summary.entry.js +4 -4
  370. package/dist/esm/ur-page-carousel.entry.js +1 -1
  371. package/dist/esm/ur-page-profile-tabs.entry.js +9 -2
  372. package/dist/esm/ur-page-profile.entry.js +3 -3
  373. package/dist/esm/ur-page-shared-list-tabs.entry.js +3 -2
  374. package/dist/esm/ur-player.entry.js +3 -3
  375. package/dist/esm/ur-post-card.entry.js +309 -0
  376. package/dist/esm/ur-post-detail.entry.js +284 -0
  377. package/dist/esm/ur-post-editor.entry.js +386 -0
  378. package/dist/esm/ur-post-prompt.entry.js +53 -0
  379. package/dist/esm/ur-profile-card.entry.js +2 -2
  380. package/dist/esm/ur-profile.entry.js +3 -3
  381. package/dist/esm/ur-radio-button.entry.js +55 -0
  382. package/dist/esm/{ur-radio-button_2.entry.js → ur-radio-group.entry.js} +19 -208
  383. package/dist/esm/ur-read-mobile-top-app-bar.entry.js +1 -1
  384. package/dist/esm/ur-read-rail-mobile.entry.js +2 -2
  385. package/dist/esm/ur-read-rail.entry.js +2 -2
  386. package/dist/esm/ur-read-top-app-bar.entry.js +1 -1
  387. package/dist/esm/ur-segment-button.entry.js +1 -1
  388. package/dist/esm/ur-select.entry.js +2 -2
  389. package/dist/esm/ur-snackbar.entry.js +2 -2
  390. package/dist/esm/ur-stepper.entry.js +1 -1
  391. package/dist/esm/ur-subscription-card.entry.js +1 -1
  392. package/dist/esm/ur-subscription-tiers-carousel.entry.js +1 -1
  393. package/dist/esm/ur-switch.entry.js +1 -1
  394. package/dist/esm/ur-tabs.entry.js +3 -2
  395. package/dist/esm/ur-thumbs-rating.entry.js +3 -3
  396. package/dist/esm/ur-time-ago.entry.js +1 -1
  397. package/dist/esm/ur-top-app-bar.entry.js +2 -2
  398. package/dist/esm/ur-user-carousel.entry.js +1 -1
  399. package/dist/esm/ur-user-page-profile.entry.js +3 -3
  400. package/dist/esm/ur-user-partnership-application.entry.js +1 -1
  401. package/dist/esm/ur-user-profile-settings-form.entry.js +28 -3
  402. package/dist/esm/ur-user-profile-tabs.entry.js +9 -2
  403. package/dist/esm/ur-user-profile.entry.js +1 -1
  404. package/dist/esm/ur-work-overview.entry.js +6 -6
  405. package/dist/esm/urnovl-web-components.js +1 -1
  406. package/dist/types/components/ur-avatar/ur-avatar.d.ts +1 -0
  407. package/dist/types/components/ur-button/ur-button.d.ts +1 -0
  408. package/dist/types/components/ur-comment-form/ur-comment-form.d.ts +3 -0
  409. package/dist/types/components/ur-page-profile-tabs/ur-page-profile-tabs.d.ts +1 -0
  410. package/dist/types/components/ur-post-card/ur-post-card.d.ts +76 -0
  411. package/dist/types/components/ur-post-card/ur-post-card.types.d.ts +46 -0
  412. package/dist/types/components/ur-post-detail/ur-post-detail.d.ts +72 -0
  413. package/dist/types/components/ur-post-detail/ur-post-detail.types.d.ts +40 -0
  414. package/dist/types/components/ur-post-editor/ur-post-editor.d.ts +158 -0
  415. package/dist/types/components/ur-post-prompt/ur-post-prompt.d.ts +22 -0
  416. package/dist/types/components/ur-radio-button/ur-radio-button.d.ts +2 -1
  417. package/dist/types/components/ur-user-profile-settings-form/ur-user-profile-settings-form.d.ts +20 -0
  418. package/dist/types/components/ur-user-profile-tabs/ur-user-profile-tabs.d.ts +1 -0
  419. package/dist/types/components.d.ts +4832 -3682
  420. package/dist/types/stories/CommentForm.stories.d.ts +30 -0
  421. package/dist/types/stories/PostCard.stories.d.ts +578 -0
  422. package/dist/types/stories/PostDetail.stories.d.ts +350 -0
  423. package/dist/types/stories/PostEditor.stories.d.ts +417 -0
  424. package/dist/types/stories/PostPrompt.stories.d.ts +12 -0
  425. package/dist/types/stories/UserProfileSettingsForm.stories.d.ts +33 -0
  426. package/dist/urnovl-web-components/p-01757565.entry.js +1 -1
  427. package/dist/urnovl-web-components/{p-65bec9fc.entry.js → p-06bbc9fe.entry.js} +2 -2
  428. package/{www/build/p-d56433f6.entry.js → dist/urnovl-web-components/p-0fc280ea.entry.js} +1 -1
  429. package/dist/urnovl-web-components/{p-ccf5473e.entry.js → p-11473976.entry.js} +1 -1
  430. package/dist/urnovl-web-components/{p-2e35d885.entry.js → p-1491f43a.entry.js} +1 -1
  431. package/dist/urnovl-web-components/{p-04e00f30.entry.js → p-16250027.entry.js} +1 -1
  432. package/{www/build/p-2462786c.entry.js → dist/urnovl-web-components/p-178828b9.entry.js} +1 -1
  433. package/{www/build/p-981382ab.entry.js → dist/urnovl-web-components/p-1afbea38.entry.js} +1 -1
  434. package/dist/urnovl-web-components/{p-4aa0540c.entry.js → p-1f152f8a.entry.js} +1 -1
  435. package/dist/urnovl-web-components/{p-f4681bcd.entry.js → p-1f60a6be.entry.js} +1 -1
  436. package/dist/urnovl-web-components/{p-a712a3df.entry.js → p-240289e9.entry.js} +1 -1
  437. package/dist/urnovl-web-components/{p-624543fe.entry.js → p-2444c265.entry.js} +1 -1
  438. package/{www/build/p-baef18c0.entry.js → dist/urnovl-web-components/p-2472848c.entry.js} +1 -1
  439. package/{www/build/p-56a033f3.entry.js → dist/urnovl-web-components/p-257815b1.entry.js} +1 -1
  440. package/dist/urnovl-web-components/{p-be46aea1.entry.js → p-283a26c0.entry.js} +1 -1
  441. package/dist/urnovl-web-components/p-30980b12.entry.js +1 -0
  442. package/{www/build/p-d8a58171.entry.js → dist/urnovl-web-components/p-30ef8fce.entry.js} +1 -1
  443. package/dist/urnovl-web-components/{p-abc5b014.entry.js → p-343ad683.entry.js} +1 -1
  444. package/{www/build/p-76fd07ad.entry.js → dist/urnovl-web-components/p-343d4de6.entry.js} +1 -1
  445. package/{www/build/p-4bd2dfab.entry.js → dist/urnovl-web-components/p-346853b2.entry.js} +1 -1
  446. package/dist/urnovl-web-components/{p-c39f0b47.entry.js → p-35d81850.entry.js} +1 -1
  447. package/dist/urnovl-web-components/{p-1c69e7f0.entry.js → p-37c2f592.entry.js} +1 -1
  448. package/{www/build/p-d8e1e17f.entry.js → dist/urnovl-web-components/p-38c450cb.entry.js} +1 -1
  449. package/dist/urnovl-web-components/p-3a956b23.entry.js +1 -0
  450. package/dist/urnovl-web-components/{p-da9fd305.entry.js → p-3d11160e.entry.js} +1 -1
  451. package/dist/urnovl-web-components/p-403f60d4.entry.js +1 -0
  452. package/{www/build/p-b086c8e2.entry.js → dist/urnovl-web-components/p-4118c49f.entry.js} +1 -1
  453. package/dist/urnovl-web-components/{p-88bac6fe.entry.js → p-4420499c.entry.js} +1 -1
  454. package/dist/urnovl-web-components/p-44c8ac2e.entry.js +1 -0
  455. package/dist/urnovl-web-components/{p-f0b2862a.entry.js → p-45126fa8.entry.js} +1 -1
  456. package/{www/build/p-f82dd515.entry.js → dist/urnovl-web-components/p-4bd4960f.entry.js} +1 -1
  457. package/dist/urnovl-web-components/{p-4d1821af.entry.js → p-5c8253d7.entry.js} +1 -1
  458. package/dist/urnovl-web-components/{p-5c9578ac.entry.js → p-5f0ca3b4.entry.js} +1 -1
  459. package/dist/urnovl-web-components/p-60481eb4.entry.js +1 -0
  460. package/{www/build/p-7e1ac458.entry.js → dist/urnovl-web-components/p-6ff378f1.entry.js} +1 -1
  461. package/dist/urnovl-web-components/{p-6ba85c1c.entry.js → p-71de6e85.entry.js} +1 -1
  462. package/dist/urnovl-web-components/{p-f1b1525f.entry.js → p-72d505c7.entry.js} +1 -1
  463. package/dist/urnovl-web-components/{p-ee1599b6.entry.js → p-72f4fb72.entry.js} +1 -1
  464. package/{www/build/p-c80dfc35.entry.js → dist/urnovl-web-components/p-74534238.entry.js} +1 -1
  465. package/dist/urnovl-web-components/{p-8076962b.entry.js → p-75483926.entry.js} +1 -1
  466. package/dist/urnovl-web-components/{p-3586bdaf.entry.js → p-7f8a77e0.entry.js} +1 -1
  467. package/dist/urnovl-web-components/p-852ff3f7.entry.js +1 -0
  468. package/{www/build/p-5566b17c.entry.js → dist/urnovl-web-components/p-88e526fb.entry.js} +1 -1
  469. package/dist/urnovl-web-components/{p-68391a31.entry.js → p-89ac2a2c.entry.js} +1 -1
  470. package/dist/urnovl-web-components/{p-593c5f5d.entry.js → p-8c7af8f6.entry.js} +1 -1
  471. package/dist/urnovl-web-components/p-8e3404f8.entry.js +1 -0
  472. package/dist/urnovl-web-components/p-910ae64b.entry.js +1 -0
  473. package/dist/urnovl-web-components/{p-0cf7981e.entry.js → p-96018122.entry.js} +1 -1
  474. package/dist/urnovl-web-components/{p-CWeg8sEj.js → p-BnHMCPA5.js} +1 -1
  475. package/dist/urnovl-web-components/p-FXZebMHX.js +1 -0
  476. package/dist/urnovl-web-components/p-YvOYo-vb.js +1 -0
  477. package/{www/build/p-6d29e790.entry.js → dist/urnovl-web-components/p-a02a44c5.entry.js} +1 -1
  478. package/dist/urnovl-web-components/{p-1e41d132.entry.js → p-a07f78d9.entry.js} +1 -1
  479. package/dist/urnovl-web-components/p-aa9b5fb1.entry.js +1 -0
  480. package/dist/urnovl-web-components/p-ac784ceb.entry.js +1 -1
  481. package/dist/urnovl-web-components/{p-bf80387d.entry.js → p-b1da8f4f.entry.js} +1 -1
  482. package/dist/urnovl-web-components/p-b629cb93.entry.js +1 -0
  483. package/dist/urnovl-web-components/{p-67316cbc.entry.js → p-b6778ee0.entry.js} +1 -1
  484. package/dist/urnovl-web-components/{p-700b9b7e.entry.js → p-bb369731.entry.js} +1 -1
  485. package/dist/urnovl-web-components/p-bbf6cece.entry.js +1 -0
  486. package/dist/urnovl-web-components/{p-bb83fdf6.entry.js → p-bbf6f750.entry.js} +1 -1
  487. package/dist/urnovl-web-components/{p-8f055e80.entry.js → p-c057f347.entry.js} +1 -1
  488. package/{www/build/p-bb145920.entry.js → dist/urnovl-web-components/p-c33254fb.entry.js} +1 -1
  489. package/dist/urnovl-web-components/{p-28a77b70.entry.js → p-c7666b66.entry.js} +1 -1
  490. package/{www/build/p-c21abd37.entry.js → dist/urnovl-web-components/p-c7983e8a.entry.js} +1 -1
  491. package/{www/build/p-82997757.entry.js → dist/urnovl-web-components/p-c873abca.entry.js} +1 -1
  492. package/{www/build/p-86f826f4.entry.js → dist/urnovl-web-components/p-c8818032.entry.js} +1 -1
  493. package/{www/build/p-c14f3e7b.entry.js → dist/urnovl-web-components/p-c8f68cfe.entry.js} +1 -1
  494. package/dist/urnovl-web-components/p-caaac073.entry.js +1 -0
  495. package/dist/urnovl-web-components/p-cb516edc.entry.js +1 -0
  496. package/dist/urnovl-web-components/p-cb79d059.entry.js +1 -1
  497. package/dist/urnovl-web-components/{p-9e19f4e8.entry.js → p-cd1dcff4.entry.js} +1 -1
  498. package/dist/urnovl-web-components/p-ce268bc2.entry.js +1 -0
  499. package/dist/urnovl-web-components/p-cf90d565.entry.js +1 -0
  500. package/{www/build/p-f044459d.entry.js → dist/urnovl-web-components/p-d210bed2.entry.js} +1 -1
  501. package/dist/urnovl-web-components/{p-b50e8cad.entry.js → p-d348963a.entry.js} +1 -1
  502. package/dist/urnovl-web-components/{p-e659d21c.entry.js → p-d4da4e68.entry.js} +1 -1
  503. package/dist/urnovl-web-components/p-d6e78266.entry.js +1 -0
  504. package/{www/build/p-693b5b1e.entry.js → dist/urnovl-web-components/p-db9079e2.entry.js} +1 -1
  505. package/dist/urnovl-web-components/{p-7f399549.entry.js → p-dfa6c13e.entry.js} +1 -1
  506. package/dist/urnovl-web-components/{p-cfedfdac.entry.js → p-e2518029.entry.js} +1 -1
  507. package/{www/build/p-7d403b3e.entry.js → dist/urnovl-web-components/p-e3982059.entry.js} +1 -1
  508. package/{www/build/p-d02abe61.entry.js → dist/urnovl-web-components/p-e3b98dfd.entry.js} +1 -1
  509. package/dist/urnovl-web-components/{p-0588ba08.entry.js → p-e659c8bb.entry.js} +1 -1
  510. package/dist/urnovl-web-components/p-ec006f46.entry.js +1 -1
  511. package/dist/urnovl-web-components/{p-dbde8c6e.entry.js → p-ed59b299.entry.js} +1 -1
  512. package/dist/urnovl-web-components/{p-d11cd455.entry.js → p-f16c01bf.entry.js} +1 -1
  513. package/dist/urnovl-web-components/{p-73fca060.entry.js → p-fb6cbf1d.entry.js} +1 -1
  514. package/dist/urnovl-web-components/p-pLhWehn7.js +1 -0
  515. package/dist/urnovl-web-components/urnovl-web-components.esm.js +1 -1
  516. package/package.json +1 -1
  517. package/www/build/p-01757565.entry.js +1 -1
  518. package/www/build/p-018dfa52.js +1 -0
  519. package/www/build/{p-65bec9fc.entry.js → p-06bbc9fe.entry.js} +2 -2
  520. package/{dist/urnovl-web-components/p-d56433f6.entry.js → www/build/p-0fc280ea.entry.js} +1 -1
  521. package/www/build/{p-ccf5473e.entry.js → p-11473976.entry.js} +1 -1
  522. package/www/build/{p-2e35d885.entry.js → p-1491f43a.entry.js} +1 -1
  523. package/www/build/{p-04e00f30.entry.js → p-16250027.entry.js} +1 -1
  524. package/{dist/urnovl-web-components/p-2462786c.entry.js → www/build/p-178828b9.entry.js} +1 -1
  525. package/{dist/urnovl-web-components/p-981382ab.entry.js → www/build/p-1afbea38.entry.js} +1 -1
  526. package/www/build/{p-4aa0540c.entry.js → p-1f152f8a.entry.js} +1 -1
  527. package/www/build/{p-f4681bcd.entry.js → p-1f60a6be.entry.js} +1 -1
  528. package/www/build/{p-a712a3df.entry.js → p-240289e9.entry.js} +1 -1
  529. package/www/build/{p-624543fe.entry.js → p-2444c265.entry.js} +1 -1
  530. package/{dist/urnovl-web-components/p-baef18c0.entry.js → www/build/p-2472848c.entry.js} +1 -1
  531. package/{dist/urnovl-web-components/p-56a033f3.entry.js → www/build/p-257815b1.entry.js} +1 -1
  532. package/www/build/{p-be46aea1.entry.js → p-283a26c0.entry.js} +1 -1
  533. package/www/build/p-30980b12.entry.js +1 -0
  534. package/{dist/urnovl-web-components/p-d8a58171.entry.js → www/build/p-30ef8fce.entry.js} +1 -1
  535. package/www/build/{p-abc5b014.entry.js → p-343ad683.entry.js} +1 -1
  536. package/{dist/urnovl-web-components/p-76fd07ad.entry.js → www/build/p-343d4de6.entry.js} +1 -1
  537. package/{dist/urnovl-web-components/p-4bd2dfab.entry.js → www/build/p-346853b2.entry.js} +1 -1
  538. package/www/build/{p-c39f0b47.entry.js → p-35d81850.entry.js} +1 -1
  539. package/www/build/{p-1c69e7f0.entry.js → p-37c2f592.entry.js} +1 -1
  540. package/{dist/urnovl-web-components/p-d8e1e17f.entry.js → www/build/p-38c450cb.entry.js} +1 -1
  541. package/www/build/p-3a956b23.entry.js +1 -0
  542. package/www/build/{p-da9fd305.entry.js → p-3d11160e.entry.js} +1 -1
  543. package/www/build/p-403f60d4.entry.js +1 -0
  544. package/{dist/urnovl-web-components/p-b086c8e2.entry.js → www/build/p-4118c49f.entry.js} +1 -1
  545. package/www/build/{p-88bac6fe.entry.js → p-4420499c.entry.js} +1 -1
  546. package/www/build/p-44c8ac2e.entry.js +1 -0
  547. package/www/build/{p-f0b2862a.entry.js → p-45126fa8.entry.js} +1 -1
  548. package/{dist/urnovl-web-components/p-f82dd515.entry.js → www/build/p-4bd4960f.entry.js} +1 -1
  549. package/www/build/{p-4d1821af.entry.js → p-5c8253d7.entry.js} +1 -1
  550. package/www/build/{p-5c9578ac.entry.js → p-5f0ca3b4.entry.js} +1 -1
  551. package/www/build/p-60481eb4.entry.js +1 -0
  552. package/{dist/urnovl-web-components/p-7e1ac458.entry.js → www/build/p-6ff378f1.entry.js} +1 -1
  553. package/www/build/{p-6ba85c1c.entry.js → p-71de6e85.entry.js} +1 -1
  554. package/www/build/{p-f1b1525f.entry.js → p-72d505c7.entry.js} +1 -1
  555. package/www/build/{p-ee1599b6.entry.js → p-72f4fb72.entry.js} +1 -1
  556. package/{dist/urnovl-web-components/p-c80dfc35.entry.js → www/build/p-74534238.entry.js} +1 -1
  557. package/www/build/{p-8076962b.entry.js → p-75483926.entry.js} +1 -1
  558. package/www/build/{p-3586bdaf.entry.js → p-7f8a77e0.entry.js} +1 -1
  559. package/www/build/p-852ff3f7.entry.js +1 -0
  560. package/{dist/urnovl-web-components/p-5566b17c.entry.js → www/build/p-88e526fb.entry.js} +1 -1
  561. package/www/build/{p-68391a31.entry.js → p-89ac2a2c.entry.js} +1 -1
  562. package/www/build/{p-593c5f5d.entry.js → p-8c7af8f6.entry.js} +1 -1
  563. package/www/build/p-8e3404f8.entry.js +1 -0
  564. package/www/build/p-910ae64b.entry.js +1 -0
  565. package/www/build/{p-0cf7981e.entry.js → p-96018122.entry.js} +1 -1
  566. package/www/build/{p-CWeg8sEj.js → p-BnHMCPA5.js} +1 -1
  567. package/www/build/p-FXZebMHX.js +1 -0
  568. package/www/build/p-YvOYo-vb.js +1 -0
  569. package/{dist/urnovl-web-components/p-6d29e790.entry.js → www/build/p-a02a44c5.entry.js} +1 -1
  570. package/www/build/{p-1e41d132.entry.js → p-a07f78d9.entry.js} +1 -1
  571. package/www/build/p-aa9b5fb1.entry.js +1 -0
  572. package/www/build/p-ac784ceb.entry.js +1 -1
  573. package/www/build/{p-bf80387d.entry.js → p-b1da8f4f.entry.js} +1 -1
  574. package/www/build/p-b629cb93.entry.js +1 -0
  575. package/www/build/{p-67316cbc.entry.js → p-b6778ee0.entry.js} +1 -1
  576. package/www/build/{p-700b9b7e.entry.js → p-bb369731.entry.js} +1 -1
  577. package/www/build/p-bbf6cece.entry.js +1 -0
  578. package/www/build/{p-bb83fdf6.entry.js → p-bbf6f750.entry.js} +1 -1
  579. package/www/build/{p-8f055e80.entry.js → p-c057f347.entry.js} +1 -1
  580. package/{dist/urnovl-web-components/p-bb145920.entry.js → www/build/p-c33254fb.entry.js} +1 -1
  581. package/www/build/{p-28a77b70.entry.js → p-c7666b66.entry.js} +1 -1
  582. package/{dist/urnovl-web-components/p-c21abd37.entry.js → www/build/p-c7983e8a.entry.js} +1 -1
  583. package/{dist/urnovl-web-components/p-82997757.entry.js → www/build/p-c873abca.entry.js} +1 -1
  584. package/{dist/urnovl-web-components/p-86f826f4.entry.js → www/build/p-c8818032.entry.js} +1 -1
  585. package/{dist/urnovl-web-components/p-c14f3e7b.entry.js → www/build/p-c8f68cfe.entry.js} +1 -1
  586. package/www/build/p-caaac073.entry.js +1 -0
  587. package/www/build/p-cb516edc.entry.js +1 -0
  588. package/www/build/p-cb79d059.entry.js +1 -1
  589. package/www/build/{p-9e19f4e8.entry.js → p-cd1dcff4.entry.js} +1 -1
  590. package/www/build/p-ce268bc2.entry.js +1 -0
  591. package/www/build/p-cf90d565.entry.js +1 -0
  592. package/{dist/urnovl-web-components/p-f044459d.entry.js → www/build/p-d210bed2.entry.js} +1 -1
  593. package/www/build/{p-b50e8cad.entry.js → p-d348963a.entry.js} +1 -1
  594. package/www/build/{p-e659d21c.entry.js → p-d4da4e68.entry.js} +1 -1
  595. package/www/build/p-d6e78266.entry.js +1 -0
  596. package/{dist/urnovl-web-components/p-693b5b1e.entry.js → www/build/p-db9079e2.entry.js} +1 -1
  597. package/www/build/{p-7f399549.entry.js → p-dfa6c13e.entry.js} +1 -1
  598. package/www/build/{p-cfedfdac.entry.js → p-e2518029.entry.js} +1 -1
  599. package/{dist/urnovl-web-components/p-7d403b3e.entry.js → www/build/p-e3982059.entry.js} +1 -1
  600. package/{dist/urnovl-web-components/p-d02abe61.entry.js → www/build/p-e3b98dfd.entry.js} +1 -1
  601. package/www/build/{p-0588ba08.entry.js → p-e659c8bb.entry.js} +1 -1
  602. package/www/build/p-ec006f46.entry.js +1 -1
  603. package/www/build/{p-dbde8c6e.entry.js → p-ed59b299.entry.js} +1 -1
  604. package/www/build/{p-d11cd455.entry.js → p-f16c01bf.entry.js} +1 -1
  605. package/www/build/{p-73fca060.entry.js → p-fb6cbf1d.entry.js} +1 -1
  606. package/www/build/p-pLhWehn7.js +1 -0
  607. package/www/build/urnovl-web-components.esm.js +1 -1
  608. package/dist/urnovl-web-components/p-2d6036d2.entry.js +0 -1
  609. package/dist/urnovl-web-components/p-49a4a16e.entry.js +0 -1
  610. package/dist/urnovl-web-components/p-5f8d9c20.entry.js +0 -1
  611. package/dist/urnovl-web-components/p-6f5e2c16.entry.js +0 -1
  612. package/dist/urnovl-web-components/p-95669140.entry.js +0 -1
  613. package/dist/urnovl-web-components/p-DieZm0eP.js +0 -1
  614. package/dist/urnovl-web-components/p-a66d6eed.entry.js +0 -1
  615. package/dist/urnovl-web-components/p-c35bfee6.entry.js +0 -1
  616. package/dist/urnovl-web-components/p-de47e53f.entry.js +0 -1
  617. package/dist/urnovl-web-components/p-e5fbc770.entry.js +0 -1
  618. package/dist/urnovl-web-components/p-f1b64b86.entry.js +0 -1
  619. package/dist/urnovl-web-components/p-fc668d06.entry.js +0 -1
  620. package/www/build/p-2d6036d2.entry.js +0 -1
  621. package/www/build/p-49a4a16e.entry.js +0 -1
  622. package/www/build/p-5f8d9c20.entry.js +0 -1
  623. package/www/build/p-6f5e2c16.entry.js +0 -1
  624. package/www/build/p-95669140.entry.js +0 -1
  625. package/www/build/p-9e272440.js +0 -1
  626. package/www/build/p-DieZm0eP.js +0 -1
  627. package/www/build/p-a66d6eed.entry.js +0 -1
  628. package/www/build/p-c35bfee6.entry.js +0 -1
  629. package/www/build/p-de47e53f.entry.js +0 -1
  630. package/www/build/p-e5fbc770.entry.js +0 -1
  631. package/www/build/p-f1b64b86.entry.js +0 -1
  632. package/www/build/p-fc668d06.entry.js +0 -1
@@ -0,0 +1,311 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index-DlgBfuIH.js');
4
+ require('./ur-avatar-BV3tq4vp.js');
5
+ require('./ur-icon.cjs.entry.js');
6
+ require('./ur-button.cjs.entry.js');
7
+ require('./ur-time-ago.cjs.entry.js');
8
+ require('./ur-tooltip-8JU9DWrs.js');
9
+ require('./index-DqsOXF7F.js');
10
+ require('./component-style-BC5DdXyd.js');
11
+ require('./directive-CxKj9eM_.js');
12
+ require('./extend-DbPiqimt.js');
13
+ require('./get-DihLFVsH.js');
14
+ require('./has-slot-CDodaVHS.js');
15
+ require('./index-DjZZ27FG.js');
16
+ require('./ref-Dnp-_rKJ.js');
17
+ require('./attr-D_LyPdSc.js');
18
+ require('./template-X5q71k2a.js');
19
+ require('./button-base-l-itW3Wo.js');
20
+ require('./if-defined-CSIrgCHw.js');
21
+ require('./anchor-B2WOhfFL.js');
22
+ require('./form-DQ4661h-.js');
23
+ require('./ripple-mixin-CsKjDjw-.js');
24
+ require('./children-B1QguDFM.js');
25
+ require('./state-BClMM5R0.js');
26
+ require('./class-map-Epaosh8c.js');
27
+ require('./appendTo-DN8OV-GK.js');
28
+ require('./index-CealG8gc.js');
29
+
30
+ const urPostCardCss = ":host {\n --post-width: 100%;\n --post-border-radius: 8px;\n --ur-color-on-background: var(--mdui-color-on-background);\n --ur-color-background: var(--mdui-color-background);\n --ur-color-primary: var(--mdui-color-primary);\n --ur-color-surface-variant: var(--mdui-color-surface-variant);\n --ur-color-on-surface-variant: var(--mdui-color-on-surface-variant);\n}\n\n@keyframes placeholderAnimate {\n 0% { background-position: -650px 0; }\n 100% { background-position: 650px 0; }\n}\n\n:host {\n display: flex;\n flex-direction: column;\n box-sizing: content-box;\n container-type: inline-size;\n container-name: post;\n}\n\n:host .post {\n overflow: hidden;\n width: var(--post-width);\n border-radius: var(--post-border-radius);\n cursor: pointer;\n display: block;\n text-decoration: none;\n color: inherit;\n padding: 12px;\n box-sizing: border-box;\n}\n\n:host .post:hover {\n background: rgba(var(--ur-color-on-background), 0.12);\n}\n\n:host .post.loading {\n cursor: default;\n}\n\n:host .post.loading:hover {\n background: transparent;\n}\n\n/* Header */\n:host .header {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: 8px;\n margin-bottom: 8px;\n}\n\n:host .owner-info {\n display: flex;\n align-items: center;\n gap: 10px;\n flex: 1;\n min-width: 0;\n}\n\n:host .header-text {\n display: flex;\n flex-direction: column;\n gap: 2px;\n min-width: 0;\n}\n\n:host .owner-name {\n font-size: 14px;\n font-weight: 600;\n color: rgb(var(--ur-color-on-background));\n line-height: 1.3;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n:host .meta-row {\n display: flex;\n align-items: center;\n gap: 6px;\n flex-wrap: wrap;\n}\n\n:host .timestamp {\n font-size: 12px;\n font-weight: 400;\n color: rgba(var(--ur-color-on-background), 0.6);\n}\n\n:host .meta-separator {\n font-size: 12px;\n color: rgba(var(--ur-color-on-background), 0.4);\n margin: 0 4px;\n}\n\n:host .meta-row ur-tooltip {\n position: relative;\n top: 2px;\n}\n\n:host .audience-icon {\n color: rgba(var(--ur-color-on-background), 0.6);\n}\n\n/* Menu */\n:host .menu-container {\n position: relative;\n flex-shrink: 0;\n}\n\n:host .menu-button {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n border: none;\n background: transparent;\n border-radius: 50%;\n cursor: pointer;\n color: rgba(var(--ur-color-on-background), 0.6);\n transition: background-color 0.2s;\n}\n\n:host .menu-button:hover {\n background: rgba(var(--ur-color-on-background), 0.08);\n}\n\n:host .menu-dropdown {\n position: absolute;\n top: 100%;\n right: 0;\n min-width: 120px;\n background: rgb(var(--ur-color-background));\n border-radius: 8px;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n overflow: hidden;\n z-index: 10;\n}\n\n:host .menu-item {\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n padding: 10px 12px;\n border: none;\n background: transparent;\n font-size: 13px;\n color: rgb(var(--ur-color-on-background));\n cursor: pointer;\n transition: background-color 0.2s;\n text-align: left;\n}\n\n:host .menu-item:hover {\n background: rgba(var(--ur-color-on-background), 0.08);\n}\n\n:host .menu-item.delete {\n color: rgb(var(--mdui-color-error));\n}\n\n/* Content */\n:host .content {\n position: relative;\n}\n\n:host .content.blurred > *:not(.spoiler-overlay):not(.locked-overlay) {\n filter: blur(8px);\n pointer-events: none;\n user-select: none;\n}\n\n/* Content type wrappers */\n:host .text-content,\n:host .link-content,\n:host .media-content,\n:host .poll-content {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n:host .post-title {\n margin: 0;\n font-size: 15px;\n font-weight: 700;\n line-height: 1.4;\n color: rgb(var(--ur-color-on-background));\n display: -webkit-box;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n overflow: hidden;\n}\n\n:host .post-body {\n margin: 0;\n font-size: 14px;\n font-weight: 400;\n line-height: 1.5;\n color: rgba(var(--ur-color-on-background), 0.8);\n white-space: pre-wrap;\n word-break: break-word;\n display: -webkit-box;\n -webkit-line-clamp: 4;\n -webkit-box-orient: vertical;\n overflow: hidden;\n}\n\n/* Spoiler overlay */\n:host .spoiler-overlay {\n position: absolute;\n inset: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n background: rgba(var(--ur-color-background), 0.5);\n backdrop-filter: blur(4px);\n border-radius: 8px;\n}\n\n:host .spoiler-content {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n text-align: center;\n padding: 16px;\n}\n\n:host .spoiler-content ur-icon {\n color: rgba(var(--ur-color-on-background), 0.6);\n}\n\n:host .spoiler-warning {\n font-size: 13px;\n font-weight: 500;\n color: rgb(var(--ur-color-on-background));\n}\n\n/* Locked overlay */\n:host .locked-overlay {\n position: absolute;\n inset: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n background: rgba(var(--ur-color-background), 0.5);\n backdrop-filter: blur(4px);\n border-radius: 8px;\n}\n\n:host .locked-content {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n text-align: center;\n padding: 16px;\n}\n\n:host .locked-content ur-icon {\n color: rgba(var(--ur-color-on-background), 0.6);\n}\n\n:host .locked-message {\n font-size: 13px;\n font-weight: 500;\n color: rgb(var(--ur-color-on-background));\n max-width: 200px;\n}\n\n/* Locked placeholder content */\n:host .locked-placeholder {\n display: flex;\n flex-direction: column;\n gap: 8px;\n min-height: 80px;\n}\n\n:host .locked-placeholder-body {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n\n:host .placeholder-line {\n height: 12px;\n background: rgba(var(--ur-color-on-background), 0.1);\n border-radius: 4px;\n width: 100%;\n}\n\n:host .placeholder-line.short {\n width: 60%;\n}\n\n/* Link content */\n:host .link-preview {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 10px 12px;\n background: rgba(var(--ur-color-surface-variant), 0.3);\n border: 1px solid transparent;\n border-radius: 8px;\n text-decoration: none;\n color: rgb(var(--ur-color-primary));\n cursor: pointer;\n transition: background-color 0.2s, border-color 0.2s;\n}\n\n:host .link-preview:hover {\n background: rgba(var(--ur-color-primary), 0.08);\n border-color: rgba(var(--ur-color-primary), 0.3);\n}\n\n:host .link-url {\n flex: 1;\n font-size: 12px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* Media content */\n:host .media-grid {\n display: grid;\n gap: 2px;\n border-radius: 12px;\n overflow: hidden;\n}\n\n:host .media-grid:has(.media-item:nth-child(2)) {\n grid-template-columns: 1fr 1fr;\n}\n\n:host .media-item {\n position: relative;\n aspect-ratio: 1;\n overflow: hidden;\n background: rgba(var(--ur-color-surface-variant), 0.3);\n}\n\n/* Single image: natural height, full width */\n:host .media-item.single {\n aspect-ratio: auto;\n grid-column: 1 / -1;\n}\n\n:host .media-item.single img {\n width: 100%;\n height: auto;\n max-height: 70vh;\n object-fit: contain;\n}\n\n/* 3 images: 3rd item spans full width */\n:host .media-grid:has(.media-item:nth-child(3):last-child) .media-item:nth-child(3) {\n grid-column: 1 / -1;\n aspect-ratio: 2/1;\n}\n\n:host .media-item img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n\n:host .video-thumbnail {\n position: relative;\n width: 100%;\n height: 100%;\n}\n\n:host .video-thumbnail img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n\n:host .play-icon {\n position: absolute;\n inset: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n background: rgba(0, 0, 0, 0.3);\n color: white;\n}\n\n:host .media-more {\n position: absolute;\n inset: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n background: rgba(0, 0, 0, 0.6);\n font-size: 20px;\n font-weight: 600;\n color: white;\n}\n\n:host .image-hover-overlay {\n position: absolute;\n inset: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 4px;\n background: rgba(0, 0, 0, 0.5);\n opacity: 0;\n transition: opacity 0.2s ease;\n cursor: pointer;\n}\n\n:host .image-hover-overlay span {\n font-size: 12px;\n font-weight: 500;\n color: white;\n}\n\n:host .image-hover-overlay ur-icon {\n color: white;\n}\n\n:host .media-item:hover .image-hover-overlay {\n opacity: 1;\n}\n\n/* Poll content */\n:host .poll-options {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n\n:host .poll-option {\n position: relative;\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 10px 12px;\n border: 1px solid rgba(var(--ur-color-on-background), 0.15);\n background: transparent;\n border-radius: 8px;\n font-size: 13px;\n text-align: left;\n cursor: pointer;\n transition: all 0.2s;\n overflow: hidden;\n}\n\n:host .poll-option:not(.voted):hover {\n border-color: rgb(var(--ur-color-primary));\n background: rgba(var(--ur-color-primary), 0.05);\n}\n\n:host .poll-option.voted {\n cursor: default;\n}\n\n:host .poll-option.selected {\n border-color: rgb(var(--ur-color-primary));\n}\n\n:host .poll-bar {\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n background: rgba(var(--ur-color-primary), 0.12);\n border-radius: 7px;\n transition: width 0.3s ease;\n}\n\n:host .poll-option.selected .poll-bar {\n background: rgba(var(--ur-color-primary), 0.2);\n}\n\n:host .poll-text {\n position: relative;\n flex: 1;\n color: rgb(var(--ur-color-on-background));\n z-index: 1;\n}\n\n:host .poll-percentage {\n position: relative;\n font-weight: 600;\n font-size: 12px;\n color: rgb(var(--ur-color-on-background));\n z-index: 1;\n}\n\n:host .poll-check {\n position: relative;\n color: rgb(var(--ur-color-primary));\n z-index: 1;\n}\n\n:host .poll-meta {\n font-size: 12px;\n font-weight: 400;\n color: rgba(var(--ur-color-on-background), 0.6);\n}\n\n/* Actions */\n:host .actions {\n display: flex;\n align-items: center;\n gap: 4px;\n margin-top: 8px;\n}\n\n:host .action-group {\n display: flex;\n align-items: center;\n}\n\n:host .action-button {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 34px;\n height: 34px;\n padding: 0;\n border: none;\n background: transparent;\n border-radius: 50%;\n color: rgba(var(--ur-color-on-background), 0.6);\n cursor: pointer;\n transition: background-color 0.15s ease;\n overflow: hidden;\n}\n\n:host .action-button ur-icon {\n flex-shrink: 0;\n}\n\n:host .action-button:hover {\n background: rgba(var(--ur-color-on-background), 0.08);\n}\n\n:host .action-button.active {\n color: rgb(var(--ur-color-primary));\n}\n\n:host .action-count {\n font-size: 12px;\n font-weight: 500;\n color: rgba(var(--ur-color-on-background), 0.6);\n padding: 0 4px;\n margin-right: 8px;\n}\n\n/* Skeleton loading */\n:host .loading-el {\n animation-duration: 1.7s;\n animation-fill-mode: forwards;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n animation-name: placeholderAnimate;\n background: linear-gradient(\n to right,\n rgba(var(--ur-color-on-background), 0.04) 2%,\n rgba(var(--ur-color-on-background), 0.12) 18%,\n rgba(var(--ur-color-on-background), 0.04) 33%\n );\n background-size: 1000px;\n}\n\n:host .avatar-skeleton {\n width: 40px;\n height: 40px;\n border-radius: 50%;\n flex-shrink: 0;\n}\n\n:host .name-skeleton {\n width: 100px;\n height: 14px;\n border-radius: 4px;\n}\n\n:host .timestamp-skeleton {\n width: 60px;\n height: 12px;\n border-radius: 4px;\n}\n\n:host .title-skeleton {\n width: 85%;\n height: 16px;\n border-radius: 4px;\n margin-bottom: 8px;\n}\n\n:host .body-skeleton {\n width: 100%;\n height: 14px;\n border-radius: 4px;\n margin-bottom: 6px;\n}\n\n:host .body-skeleton.short {\n width: 65%;\n}\n\n:host .actions-skeleton {\n display: flex;\n gap: 8px;\n margin-top: 10px;\n}\n\n:host .action-skeleton {\n width: 50px;\n height: 28px;\n border-radius: 14px;\n}\n\n/* Container queries for responsive */\n@container post (max-width: 350px) {\n :host .post {\n padding: 10px;\n }\n\n :host .post-title {\n font-size: 14px;\n }\n\n :host .post-body {\n font-size: 13px;\n }\n\n :host .owner-name {\n font-size: 13px;\n }\n\n :host .poll-option {\n padding: 8px 10px;\n font-size: 12px;\n }\n}\n";
31
+
32
+ const UrPostCard = class {
33
+ constructor(hostRef) {
34
+ index.registerInstance(this, hostRef);
35
+ this.postCardEvent = index.createEvent(this, "postCardEvent");
36
+ this.ownerType = 'user';
37
+ this.isOwner = false;
38
+ this.liked = false;
39
+ this.likeCount = 0;
40
+ this.commentCount = 0;
41
+ this.skeleton = false;
42
+ this.userPollVote = -1; // Index of option user voted for, -1 if not voted
43
+ this.totalPollVotes = 0;
44
+ this.mobile = false;
45
+ // Text props for i18n
46
+ this.spoilerWarningText = 'Spoiler warning';
47
+ this.showSpoilerText = 'Show anyway';
48
+ this.editText = 'Edit';
49
+ this.deleteText = 'Delete';
50
+ this.reportText = 'Report';
51
+ this.likeText = 'Like';
52
+ this.commentText = 'Comment';
53
+ this.publicText = 'Public';
54
+ this.privateText = 'Private';
55
+ this.followersOnlyText = 'Followers only';
56
+ this.subscribersOnlyText = 'Subscribers only';
57
+ this.votesText = 'votes';
58
+ // Locked post text props for i18n
59
+ this.lockedLoginText = 'Sign in to view this post';
60
+ this.lockedFollowText = 'Follow to view this post';
61
+ this.lockedSubscribeText = 'Subscribe to view this post';
62
+ this.lockedTierText = 'Join {tiers} to view this post';
63
+ this.loginBtnText = 'Sign in';
64
+ this.followBtnText = 'Follow';
65
+ this.subscribeBtnText = 'Subscribe';
66
+ this.viewImageText = 'View image';
67
+ this.spoilerRevealed = false;
68
+ this.menuOpen = false;
69
+ this.handlePostClick = () => {
70
+ this.emitEvent('post_click');
71
+ };
72
+ this.handleLikeClick = (e) => {
73
+ e.stopPropagation();
74
+ this.emitEvent('like');
75
+ };
76
+ this.handleCommentClick = (e) => {
77
+ e.stopPropagation();
78
+ this.emitEvent('comment');
79
+ };
80
+ this.handleOwnerClick = (_e) => {
81
+ // TODO: Navigate to owner profile
82
+ // For now, let click bubble up to open post
83
+ };
84
+ this.handleLinkClick = (e) => {
85
+ e.stopPropagation();
86
+ // Let the link open naturally in new tab (target="_blank")
87
+ this.emitEvent('link_click');
88
+ };
89
+ this.handlePollVote = (e, optionIndex) => {
90
+ e.stopPropagation();
91
+ if (this.userPollVote === -1) {
92
+ this.emitEvent('poll_vote', { pollOptionIndex: optionIndex });
93
+ }
94
+ };
95
+ this.handleImageClick = (e, index) => {
96
+ e.stopPropagation();
97
+ this.emitEvent('image_click', { mediaIndex: index });
98
+ };
99
+ this.handleSpoilerReveal = (e) => {
100
+ e.stopPropagation();
101
+ this.spoilerRevealed = true;
102
+ this.emitEvent('spoiler_reveal');
103
+ };
104
+ this.handleUnlockClick = (e) => {
105
+ var _a;
106
+ e.stopPropagation();
107
+ const lockReason = (_a = this.post) === null || _a === void 0 ? void 0 : _a.lockReason;
108
+ if (lockReason === 'login') {
109
+ this.emitEvent('unlock_login');
110
+ }
111
+ else if (lockReason === 'followers') {
112
+ this.emitEvent('unlock_follow');
113
+ }
114
+ else {
115
+ // 'subscribers' or 'tier'
116
+ this.emitEvent('unlock_subscribe');
117
+ }
118
+ };
119
+ this.handleMenuAction = (e, action) => {
120
+ e.stopPropagation();
121
+ this.menuOpen = false;
122
+ this.emitEvent(action);
123
+ };
124
+ this.toggleMenu = (e) => {
125
+ e.stopPropagation();
126
+ if (this.mobile) {
127
+ const menuActions = [];
128
+ if (this.isOwner) {
129
+ menuActions.push({ id: 'edit', label: this.editText, icon: 'edit' }, { id: 'delete', label: this.deleteText, icon: 'delete' });
130
+ }
131
+ else {
132
+ menuActions.push({ id: 'report', label: this.reportText, icon: 'flag' });
133
+ }
134
+ this.postCardEvent.emit({
135
+ type: 'menu_open',
136
+ post: this.post,
137
+ menuActions,
138
+ });
139
+ }
140
+ else {
141
+ this.menuOpen = !this.menuOpen;
142
+ }
143
+ };
144
+ }
145
+ handleWindowClick(event) {
146
+ var _a;
147
+ if (!this.menuOpen)
148
+ return;
149
+ const path = event.composedPath();
150
+ const menuContainer = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.menu-container');
151
+ if (menuContainer && !path.includes(menuContainer)) {
152
+ this.menuOpen = false;
153
+ }
154
+ }
155
+ emitEvent(type, options) {
156
+ this.postCardEvent.emit({
157
+ type,
158
+ post: this.post,
159
+ pollOptionIndex: options === null || options === void 0 ? void 0 : options.pollOptionIndex,
160
+ mediaIndex: options === null || options === void 0 ? void 0 : options.mediaIndex,
161
+ });
162
+ }
163
+ formatCount(count) {
164
+ if (count >= 1000000) {
165
+ return `${(count / 1000000).toFixed(1)}M`;
166
+ }
167
+ if (count >= 1000) {
168
+ return `${(count / 1000).toFixed(1)}K`;
169
+ }
170
+ return count.toString();
171
+ }
172
+ getAudienceIcon() {
173
+ var _a;
174
+ switch ((_a = this.post) === null || _a === void 0 ? void 0 : _a.audience) {
175
+ case 'public':
176
+ return 'public';
177
+ case 'private':
178
+ return 'lock';
179
+ case 'followers':
180
+ return 'group';
181
+ case 'subscribers':
182
+ return 'loyalty';
183
+ default:
184
+ return 'public';
185
+ }
186
+ }
187
+ getAudienceTooltip() {
188
+ var _a, _b, _c;
189
+ switch ((_a = this.post) === null || _a === void 0 ? void 0 : _a.audience) {
190
+ case 'public':
191
+ return this.publicText;
192
+ case 'private':
193
+ return this.privateText;
194
+ case 'followers':
195
+ return this.followersOnlyText;
196
+ case 'subscribers':
197
+ // Show tier names for owner only
198
+ if (this.isOwner && ((_c = (_b = this.post) === null || _b === void 0 ? void 0 : _b.audienceTierNames) === null || _c === void 0 ? void 0 : _c.length) > 0) {
199
+ return `${this.subscribersOnlyText} (${this.post.audienceTierNames.join(', ')})`;
200
+ }
201
+ return this.subscribersOnlyText;
202
+ default:
203
+ return this.publicText;
204
+ }
205
+ }
206
+ renderSkeleton() {
207
+ return (index.h(index.Host, null, index.h("div", { class: "post loading" }, index.h("div", { class: "header" }, index.h("div", { class: "owner-info" }, index.h("div", { class: "avatar-skeleton loading-el" }), index.h("div", { class: "header-text" }, index.h("div", { class: "name-skeleton loading-el" }), index.h("div", { class: "timestamp-skeleton loading-el" })))), index.h("div", { class: "content" }, index.h("div", { class: "title-skeleton loading-el" }), index.h("div", { class: "body-skeleton loading-el" }), index.h("div", { class: "body-skeleton short loading-el" })), index.h("div", { class: "actions-skeleton" }, index.h("div", { class: "action-skeleton loading-el" }), index.h("div", { class: "action-skeleton loading-el" })))));
208
+ }
209
+ renderHeader() {
210
+ return (index.h("div", { class: "header" }, index.h("div", { class: "owner-info", onClick: this.handleOwnerClick }, index.h("ur-avatar", { class: "avatar clickable", src: this.ownerImage, name: this.ownerName, size: "40px", variant: this.ownerType }), index.h("div", { class: "header-text" }, index.h("span", { class: "owner-name clickable" }, this.ownerName), index.h("div", { class: "meta-row" }, index.h("ur-time-ago", { class: "timestamp", date: this.timestamp }), index.h("span", { class: "meta-separator" }, "\u00B7"), index.h("ur-tooltip", { content: this.getAudienceTooltip(), placement: "bottom" }, index.h("ur-icon", { class: "audience-icon", name: this.getAudienceIcon(), size: "14px" }))))), index.h("div", { class: "menu-container" }, index.h("button", { class: "menu-button", onClick: this.toggleMenu }, index.h("ur-icon", { name: "more_vert", size: "20px" })), this.menuOpen && (index.h("div", { class: "menu-dropdown" }, this.isOwner ? ([
211
+ index.h("button", { class: "menu-item", onClick: (e) => this.handleMenuAction(e, 'edit') }, index.h("ur-icon", { name: "edit", size: "16px" }), this.editText),
212
+ index.h("button", { class: "menu-item delete", onClick: (e) => this.handleMenuAction(e, 'delete') }, index.h("ur-icon", { name: "delete", size: "16px" }), this.deleteText)
213
+ ]) : (index.h("button", { class: "menu-item", onClick: (e) => this.handleMenuAction(e, 'report') }, index.h("ur-icon", { name: "flag", size: "16px" }), this.reportText)))))));
214
+ }
215
+ renderSpoilerOverlay() {
216
+ return (index.h("div", { class: "spoiler-overlay" }, index.h("div", { class: "spoiler-content" }, index.h("ur-icon", { name: "visibility_off", size: "32px" }), index.h("span", { class: "spoiler-warning" }, this.spoilerWarningText), index.h("ur-button", { variant: "outlined", onClick: this.handleSpoilerReveal }, this.showSpoilerText))));
217
+ }
218
+ getLockedMessage() {
219
+ var _a, _b, _c;
220
+ const lockReason = (_a = this.post) === null || _a === void 0 ? void 0 : _a.lockReason;
221
+ if (lockReason === 'login') {
222
+ return this.lockedLoginText;
223
+ }
224
+ if (lockReason === 'followers') {
225
+ return this.lockedFollowText;
226
+ }
227
+ if (lockReason === 'tier' && ((_c = (_b = this.post) === null || _b === void 0 ? void 0 : _b.requiredTierNames) === null || _c === void 0 ? void 0 : _c.length)) {
228
+ return this.lockedTierText.replace('{tiers}', this.post.requiredTierNames.join(' or '));
229
+ }
230
+ return this.lockedSubscribeText;
231
+ }
232
+ getUnlockButtonText() {
233
+ var _a;
234
+ const lockReason = (_a = this.post) === null || _a === void 0 ? void 0 : _a.lockReason;
235
+ if (lockReason === 'login') {
236
+ return this.loginBtnText;
237
+ }
238
+ if (lockReason === 'followers') {
239
+ return this.followBtnText;
240
+ }
241
+ return this.subscribeBtnText;
242
+ }
243
+ renderLockedOverlay() {
244
+ return (index.h("div", { class: "locked-overlay" }, index.h("div", { class: "locked-content" }, index.h("ur-icon", { name: "lock", size: "32px" }), index.h("span", { class: "locked-message" }, this.getLockedMessage()), index.h("ur-button", { variant: "filled", onClick: this.handleUnlockClick }, this.getUnlockButtonText()))));
245
+ }
246
+ renderTextContent() {
247
+ return (index.h("div", { class: "text-content" }, index.h("h3", { class: "post-title" }, this.post.title), this.post.body && (index.h("p", { class: "post-body" }, this.post.body))));
248
+ }
249
+ renderLinkContent() {
250
+ return (index.h("div", { class: "link-content" }, index.h("h3", { class: "post-title" }, this.post.title), this.post.body && (index.h("p", { class: "post-body" }, this.post.body)), index.h("a", { class: "link-preview", href: this.post.linkUrl, target: "_blank", rel: "noopener noreferrer", onClick: this.handleLinkClick }, index.h("ur-icon", { name: "link", size: "16px" }), index.h("span", { class: "link-url" }, this.post.linkUrl), index.h("ur-icon", { name: "open_in_new", size: "14px" }))));
251
+ }
252
+ renderMediaContent() {
253
+ const hasMedia = this.post.media && this.post.media.length > 0;
254
+ return (index.h("div", { class: "media-content" }, index.h("h3", { class: "post-title" }, this.post.title), hasMedia && (index.h("div", { class: "media-grid" }, this.post.media.slice(0, 4).map((media, index$1) => (index.h("div", { class: `media-item ${this.post.media.length === 1 ? 'single' : ''}`, key: index$1, onClick: (e) => this.handleImageClick(e, index$1) }, media.type === 'image' ? (index.h("img", { src: media.url, alt: "", loading: "lazy" })) : (index.h("div", { class: "video-thumbnail" }, index.h("img", { src: media.thumbnailUrl || media.url, alt: "", loading: "lazy" }), index.h("div", { class: "play-icon" }, index.h("ur-icon", { name: "play_circle", size: "48px" })))), index$1 === 3 && this.post.media.length > 4 && (index.h("div", { class: "media-more" }, "+", this.post.media.length - 4)), media.type === 'image' && (index.h("div", { class: "image-hover-overlay" }, index.h("ur-icon", { name: "visibility", size: "20px" }), index.h("span", null, this.viewImageText)))))))), this.post.body && (index.h("p", { class: "post-body" }, this.post.body))));
255
+ }
256
+ renderPollContent() {
257
+ var _a;
258
+ const hasVoted = this.userPollVote !== -1;
259
+ const hasPollResults = this.post.pollResults && this.post.pollResults.length > 0;
260
+ // Calculate total votes from pollResults if available, otherwise use prop
261
+ const totalVotes = hasPollResults
262
+ ? this.post.pollResults.reduce((sum, r) => sum + r.count, 0)
263
+ : this.totalPollVotes;
264
+ return (index.h("div", { class: "poll-content" }, index.h("h3", { class: "post-title" }, this.post.title), index.h("div", { class: "poll-options" }, (_a = this.post.pollOptions) === null || _a === void 0 ? void 0 : _a.map((option, index$1) => {
265
+ // Use pollResults if available, otherwise fall back to option.votes
266
+ const result = hasPollResults
267
+ ? this.post.pollResults.find(r => r.index === index$1)
268
+ : null;
269
+ const votes = result ? result.count : (option.votes || 0);
270
+ const percentage = result
271
+ ? result.percentage
272
+ : (totalVotes > 0 ? Math.round((votes / totalVotes) * 100) : 0);
273
+ const isSelected = this.userPollVote === index$1;
274
+ return (index.h("button", { class: {
275
+ 'poll-option': true,
276
+ 'voted': hasVoted,
277
+ 'selected': isSelected,
278
+ }, onClick: (e) => this.handlePollVote(e, index$1), disabled: hasVoted, key: index$1 }, hasVoted && (index.h("div", { class: "poll-bar", style: { width: `${percentage}%` } })), index.h("span", { class: "poll-text" }, option.text), hasVoted && (index.h("span", { class: "poll-percentage" }, percentage, "%")), isSelected && (index.h("ur-icon", { name: "check_circle", size: "16px", class: "poll-check" }))));
279
+ })), index.h("div", { class: "poll-meta" }, index.h("span", null, totalVotes, " ", this.votesText))));
280
+ }
281
+ renderLockedContent() {
282
+ // For locked posts, show placeholder content to blur
283
+ return (index.h("div", { class: "locked-placeholder" }, index.h("h3", { class: "post-title" }, this.post.title), index.h("div", { class: "locked-placeholder-body" }, index.h("div", { class: "placeholder-line" }), index.h("div", { class: "placeholder-line" }), index.h("div", { class: "placeholder-line short" }))));
284
+ }
285
+ renderContent() {
286
+ var _a, _b, _c, _d, _f, _g;
287
+ const showSpoiler = ((_a = this.post) === null || _a === void 0 ? void 0 : _a.isSpoiler) && !this.spoilerRevealed;
288
+ const isLocked = ((_b = this.post) === null || _b === void 0 ? void 0 : _b.locked) === true;
289
+ // Locked state takes precedence
290
+ if (isLocked) {
291
+ return (index.h("div", { class: "content blurred" }, this.renderLockedContent(), this.renderLockedOverlay()));
292
+ }
293
+ return (index.h("div", { class: { 'content': true, 'blurred': showSpoiler } }, ((_c = this.post) === null || _c === void 0 ? void 0 : _c.type) === 'text' && this.renderTextContent(), ((_d = this.post) === null || _d === void 0 ? void 0 : _d.type) === 'link' && this.renderLinkContent(), ((_f = this.post) === null || _f === void 0 ? void 0 : _f.type) === 'media' && this.renderMediaContent(), ((_g = this.post) === null || _g === void 0 ? void 0 : _g.type) === 'poll' && this.renderPollContent(), showSpoiler && this.renderSpoilerOverlay()));
294
+ }
295
+ renderActions() {
296
+ return (index.h("div", { class: "actions" }, index.h("div", { class: "action-group" }, index.h("button", { class: { 'action-button': true, 'active': this.liked }, onClick: this.handleLikeClick }, index.h("ur-icon", { name: this.liked ? 'thumb_up' : 'thumb_up_outline', size: "18px" })), this.likeCount > 0 && (index.h("span", { class: "action-count" }, this.formatCount(this.likeCount)))), index.h("div", { class: "action-group" }, index.h("button", { class: "action-button", onClick: this.handleCommentClick }, index.h("ur-icon", { name: "comment--outlined", size: "18px" })), this.commentCount > 0 && (index.h("span", { class: "action-count" }, this.formatCount(this.commentCount))))));
297
+ }
298
+ render() {
299
+ if (this.skeleton) {
300
+ return this.renderSkeleton();
301
+ }
302
+ if (!this.post) {
303
+ return null;
304
+ }
305
+ return (index.h(index.Host, null, index.h("div", { class: "post", onClick: this.handlePostClick }, this.renderHeader(), this.renderContent(), this.renderActions())));
306
+ }
307
+ get el() { return index.getElement(this); }
308
+ };
309
+ UrPostCard.style = urPostCardCss;
310
+
311
+ exports.ur_post_card = UrPostCard;
@@ -0,0 +1,286 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index-DlgBfuIH.js');
4
+ require('./ur-avatar-BV3tq4vp.js');
5
+ require('./ur-icon.cjs.entry.js');
6
+ require('./ur-button.cjs.entry.js');
7
+ require('./ur-time-ago.cjs.entry.js');
8
+ require('./ur-tooltip-8JU9DWrs.js');
9
+ require('./index-DqsOXF7F.js');
10
+ require('./component-style-BC5DdXyd.js');
11
+ require('./directive-CxKj9eM_.js');
12
+ require('./extend-DbPiqimt.js');
13
+ require('./get-DihLFVsH.js');
14
+ require('./has-slot-CDodaVHS.js');
15
+ require('./index-DjZZ27FG.js');
16
+ require('./ref-Dnp-_rKJ.js');
17
+ require('./attr-D_LyPdSc.js');
18
+ require('./template-X5q71k2a.js');
19
+ require('./button-base-l-itW3Wo.js');
20
+ require('./if-defined-CSIrgCHw.js');
21
+ require('./anchor-B2WOhfFL.js');
22
+ require('./form-DQ4661h-.js');
23
+ require('./ripple-mixin-CsKjDjw-.js');
24
+ require('./children-B1QguDFM.js');
25
+ require('./state-BClMM5R0.js');
26
+ require('./class-map-Epaosh8c.js');
27
+ require('./appendTo-DN8OV-GK.js');
28
+ require('./index-CealG8gc.js');
29
+
30
+ const urPostDetailCss = ":host{--ur-color-on-background:var(--mdui-color-on-background);--ur-color-background:var(--mdui-color-background);--ur-color-primary:var(--mdui-color-primary);--ur-color-surface-variant:var(--mdui-color-surface-variant);--ur-color-on-surface-variant:var(--mdui-color-on-surface-variant);--ur-color-border:var(--mdui-color-outline-variant);display:block}.post-detail{display:flex;flex-direction:column}.header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:16px}.owner-info{display:flex;align-items:center;gap:12px;flex:1;min-width:0;cursor:pointer}.header-text{display:flex;flex-direction:column;gap:2px;min-width:0}.owner-name{font-size:15px;font-weight:600;color:rgb(var(--ur-color-on-background));line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.owner-name.clickable:hover{text-decoration:underline}.meta-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.timestamp{font-size:13px;font-weight:400;color:rgba(var(--ur-color-on-background), 0.6)}.meta-separator{font-size:12px;color:rgba(var(--ur-color-on-background), 0.4)}.meta-row ur-tooltip{position:relative;top:2px}.audience-icon{color:rgba(var(--ur-color-on-background), 0.6)}.content{position:relative}.content.blurred>*:not(.spoiler-overlay):not(.locked-overlay){filter:blur(8px);pointer-events:none;user-select:none}.text-content,.link-content,.media-content,.poll-content{display:flex;flex-direction:column;gap:12px}.text-content,.link-content,.poll-content{padding:0 16px}.post-title{margin:0;font-size:16px;font-weight:700;line-height:1.4;color:rgb(var(--ur-color-on-background))}.post-body{margin:0;font-size:15px;font-weight:400;line-height:1.6;color:rgba(var(--ur-color-on-background), 0.9);white-space:pre-wrap;word-break:break-word}.media-content .post-title,.media-content .post-body{padding:0 16px}.spoiler-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(var(--ur-color-background), 0.5);backdrop-filter:blur(4px);border-radius:8px}.spoiler-content{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:16px}.spoiler-content ur-icon{color:rgba(var(--ur-color-on-background), 0.6)}.spoiler-warning{font-size:14px;font-weight:500;color:rgb(var(--ur-color-on-background))}.locked-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(var(--ur-color-background), 0.5);backdrop-filter:blur(4px);border-radius:8px}.locked-content{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:16px}.locked-content ur-icon{color:rgba(var(--ur-color-on-background), 0.6)}.locked-message{font-size:14px;font-weight:500;color:rgb(var(--ur-color-on-background));max-width:200px}.locked-placeholder{display:flex;flex-direction:column;gap:8px;min-height:80px;padding:0 16px}.locked-placeholder-body{display:flex;flex-direction:column;gap:6px}.placeholder-line{height:14px;background:rgba(var(--ur-color-on-background), 0.1);border-radius:4px;width:100%}.placeholder-line.short{width:60%}.link-preview{display:flex;align-items:center;gap:8px;padding:12px 14px;background:rgba(var(--ur-color-surface-variant), 0.3);border:1px solid transparent;border-radius:8px;text-decoration:none;color:rgb(var(--ur-color-primary));cursor:pointer;transition:background-color 0.2s, border-color 0.2s}.link-preview:hover{background:rgba(var(--ur-color-primary), 0.08);border-color:rgba(var(--ur-color-primary), 0.3)}.link-url{flex:1;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.media-carousel-container{position:relative;background:rgb(var(--ur-color-surface-variant))}swiper-container{width:100%}swiper-slide{display:flex;align-items:center;justify-content:center}.media-slide{width:100%;aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;background:rgb(var(--ur-color-surface-variant))}.media-slide img{width:100%;height:100%;object-fit:cover}.media-slide .video-player{width:100%;height:100%;object-fit:cover}.media-navigation{position:absolute;inset:0;pointer-events:none;display:flex;align-items:center;justify-content:space-between;padding:0 8px}.nav-button{pointer-events:auto;display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:none;border-radius:50%;background:rgba(0, 0, 0, 0.5);color:white;cursor:pointer;transition:background-color 0.2s, opacity 0.2s}.nav-button:hover:not(:disabled){background:rgba(0, 0, 0, 0.7)}.nav-button:disabled{opacity:0.3;cursor:not-allowed}.poll-options{display:flex;flex-direction:column;gap:8px}.poll-option{position:relative;display:flex;align-items:center;gap:8px;padding:12px 14px;border:1px solid rgba(var(--ur-color-on-background), 0.15);background:transparent;border-radius:8px;font-size:14px;text-align:left;cursor:pointer;transition:all 0.2s;overflow:hidden}.poll-option:not(.voted):hover{border-color:rgb(var(--ur-color-primary));background:rgba(var(--ur-color-primary), 0.05)}.poll-option.voted{cursor:default}.poll-option.selected{border-color:rgb(var(--ur-color-primary))}.poll-bar{position:absolute;left:0;top:0;bottom:0;background:rgba(var(--ur-color-primary), 0.12);border-radius:7px;transition:width 0.3s ease}.poll-option.selected .poll-bar{background:rgba(var(--ur-color-primary), 0.2)}.poll-text{position:relative;flex:1;color:rgb(var(--ur-color-on-background));z-index:1}.poll-percentage{position:relative;font-weight:600;font-size:13px;color:rgb(var(--ur-color-on-background));z-index:1}.poll-check{position:relative;color:rgb(var(--ur-color-primary));z-index:1}.poll-meta{font-size:13px;font-weight:400;color:rgba(var(--ur-color-on-background), 0.6)}.stats{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;font-size:14px;color:rgba(var(--ur-color-on-background), 0.6)}.stat-item{display:flex;align-items:center;gap:6px}.stat-item.clickable{cursor:pointer}.stat-item.clickable:hover{text-decoration:underline}.divider{height:1px;background:rgb(var(--ur-color-border));margin:0 16px}.actions{display:flex;align-items:center;padding:8px 12px;gap:8px}.clickable{cursor:pointer}";
31
+
32
+ const UrPostDetail = class {
33
+ constructor(hostRef) {
34
+ index.registerInstance(this, hostRef);
35
+ this.postDetailEvent = index.createEvent(this, "postDetailEvent");
36
+ this.ownerType = 'user';
37
+ this.liked = false;
38
+ this.likeCount = 0;
39
+ this.commentCount = 0;
40
+ this.userPollVote = -1;
41
+ this.totalPollVotes = 0;
42
+ this.initialMediaIndex = 0;
43
+ // Text props for i18n
44
+ this.spoilerWarningText = 'Spoiler warning';
45
+ this.showSpoilerText = 'Show anyway';
46
+ this.likeText = 'Like';
47
+ this.likedText = 'Liked';
48
+ this.commentText = 'Comment';
49
+ this.publicText = 'Public';
50
+ this.privateText = 'Private';
51
+ this.followersOnlyText = 'Followers only';
52
+ this.subscribersOnlyText = 'Subscribers only';
53
+ this.votesText = 'votes';
54
+ this.lockedLoginText = 'Sign in to view this post';
55
+ this.lockedFollowText = 'Follow to view this post';
56
+ this.lockedSubscribeText = 'Subscribe to view this post';
57
+ this.lockedTierText = 'Join {tiers} to view this post';
58
+ this.loginBtnText = 'Sign in';
59
+ this.followBtnText = 'Follow';
60
+ this.subscribeBtnText = 'Subscribe';
61
+ this.spoilerRevealed = false;
62
+ this.currentMediaIndex = 0;
63
+ this.handleLikeClick = (e) => {
64
+ e.stopPropagation();
65
+ this.emitEvent('like');
66
+ };
67
+ this.handleCommentClick = (e) => {
68
+ e.stopPropagation();
69
+ this.emitEvent('comment');
70
+ };
71
+ this.handleOwnerClick = (e) => {
72
+ e.stopPropagation();
73
+ this.emitEvent('owner_click');
74
+ };
75
+ this.handleLinkClick = (e) => {
76
+ e.stopPropagation();
77
+ this.emitEvent('link_click');
78
+ };
79
+ this.handlePollVote = (e, optionIndex) => {
80
+ e.stopPropagation();
81
+ if (this.userPollVote === -1) {
82
+ this.emitEvent('poll_vote', { pollOptionIndex: optionIndex });
83
+ }
84
+ };
85
+ this.handleSpoilerReveal = (e) => {
86
+ e.stopPropagation();
87
+ this.spoilerRevealed = true;
88
+ this.emitEvent('spoiler_reveal');
89
+ };
90
+ this.handleUnlockClick = (e) => {
91
+ var _a;
92
+ e.stopPropagation();
93
+ const lockReason = (_a = this.post) === null || _a === void 0 ? void 0 : _a.lockReason;
94
+ if (lockReason === 'login') {
95
+ this.emitEvent('unlock_login');
96
+ }
97
+ else if (lockReason === 'followers') {
98
+ this.emitEvent('unlock_follow');
99
+ }
100
+ else {
101
+ this.emitEvent('unlock_subscribe');
102
+ }
103
+ };
104
+ this.handlePrevMedia = () => {
105
+ var _a;
106
+ if ((_a = this.swiperContainer) === null || _a === void 0 ? void 0 : _a.swiper) {
107
+ this.swiperContainer.swiper.slidePrev();
108
+ }
109
+ };
110
+ this.handleNextMedia = () => {
111
+ var _a;
112
+ if ((_a = this.swiperContainer) === null || _a === void 0 ? void 0 : _a.swiper) {
113
+ this.swiperContainer.swiper.slideNext();
114
+ }
115
+ };
116
+ }
117
+ onInitialMediaIndexChange(newValue) {
118
+ var _a;
119
+ this.currentMediaIndex = newValue;
120
+ if ((_a = this.swiperContainer) === null || _a === void 0 ? void 0 : _a.swiper) {
121
+ this.swiperContainer.swiper.slideTo(newValue, 0);
122
+ }
123
+ }
124
+ componentDidLoad() {
125
+ this.currentMediaIndex = this.initialMediaIndex || 0;
126
+ this.initSwiper();
127
+ }
128
+ initSwiper() {
129
+ var _a, _b, _c;
130
+ if (!((_b = (_a = this.post) === null || _a === void 0 ? void 0 : _a.media) === null || _b === void 0 ? void 0 : _b.length))
131
+ return;
132
+ this.swiperContainer = (_c = this.el.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelector('swiper-container');
133
+ if (!this.swiperContainer)
134
+ return;
135
+ // Wait for swiper to initialize
136
+ customElements.whenDefined('swiper-container').then(() => {
137
+ setTimeout(() => {
138
+ var _a;
139
+ if ((_a = this.swiperContainer) === null || _a === void 0 ? void 0 : _a.swiper) {
140
+ this.swiperContainer.swiper.on('slideChange', () => {
141
+ this.currentMediaIndex = this.swiperContainer.swiper.activeIndex;
142
+ this.emitEvent('media_change', { mediaIndex: this.currentMediaIndex });
143
+ });
144
+ // Go to initial slide
145
+ if (this.initialMediaIndex > 0) {
146
+ this.swiperContainer.swiper.slideTo(this.initialMediaIndex, 0);
147
+ }
148
+ }
149
+ }, 100);
150
+ });
151
+ }
152
+ emitEvent(type, options) {
153
+ this.postDetailEvent.emit({
154
+ type,
155
+ post: this.post,
156
+ pollOptionIndex: options === null || options === void 0 ? void 0 : options.pollOptionIndex,
157
+ mediaIndex: options === null || options === void 0 ? void 0 : options.mediaIndex,
158
+ });
159
+ }
160
+ formatCount(count) {
161
+ if (count >= 1000000) {
162
+ return `${(count / 1000000).toFixed(1)}M`;
163
+ }
164
+ if (count >= 1000) {
165
+ return `${(count / 1000).toFixed(1)}K`;
166
+ }
167
+ return count.toString();
168
+ }
169
+ getAudienceIcon() {
170
+ var _a;
171
+ switch ((_a = this.post) === null || _a === void 0 ? void 0 : _a.audience) {
172
+ case 'public': return 'public';
173
+ case 'private': return 'lock';
174
+ case 'followers': return 'group';
175
+ case 'subscribers': return 'loyalty';
176
+ default: return 'public';
177
+ }
178
+ }
179
+ getAudienceTooltip() {
180
+ var _a;
181
+ switch ((_a = this.post) === null || _a === void 0 ? void 0 : _a.audience) {
182
+ case 'public': return this.publicText;
183
+ case 'private': return this.privateText;
184
+ case 'followers': return this.followersOnlyText;
185
+ case 'subscribers': return this.subscribersOnlyText;
186
+ default: return this.publicText;
187
+ }
188
+ }
189
+ renderHeader() {
190
+ return (index.h("div", { class: "header" }, index.h("div", { class: "owner-info", onClick: this.handleOwnerClick }, index.h("ur-avatar", { class: "avatar clickable", src: this.ownerImage, name: this.ownerName, size: "40px", variant: this.ownerType }), index.h("div", { class: "header-text" }, index.h("span", { class: "owner-name clickable" }, this.ownerName), index.h("div", { class: "meta-row" }, index.h("ur-time-ago", { class: "timestamp", date: this.timestamp }), index.h("span", { class: "meta-separator" }, "\u00B7"), index.h("ur-tooltip", { content: this.getAudienceTooltip(), placement: "bottom" }, index.h("ur-icon", { class: "audience-icon", name: this.getAudienceIcon(), size: "14px" })))))));
191
+ }
192
+ renderSpoilerOverlay() {
193
+ return (index.h("div", { class: "spoiler-overlay" }, index.h("div", { class: "spoiler-content" }, index.h("ur-icon", { name: "visibility_off", size: "32px" }), index.h("span", { class: "spoiler-warning" }, this.spoilerWarningText), index.h("ur-button", { variant: "outlined", onClick: this.handleSpoilerReveal }, this.showSpoilerText))));
194
+ }
195
+ getLockedMessage() {
196
+ var _a, _b, _c;
197
+ const lockReason = (_a = this.post) === null || _a === void 0 ? void 0 : _a.lockReason;
198
+ if (lockReason === 'login')
199
+ return this.lockedLoginText;
200
+ if (lockReason === 'followers')
201
+ return this.lockedFollowText;
202
+ if (lockReason === 'tier' && ((_c = (_b = this.post) === null || _b === void 0 ? void 0 : _b.requiredTierNames) === null || _c === void 0 ? void 0 : _c.length)) {
203
+ return this.lockedTierText.replace('{tiers}', this.post.requiredTierNames.join(' or '));
204
+ }
205
+ return this.lockedSubscribeText;
206
+ }
207
+ getUnlockButtonText() {
208
+ var _a;
209
+ const lockReason = (_a = this.post) === null || _a === void 0 ? void 0 : _a.lockReason;
210
+ if (lockReason === 'login')
211
+ return this.loginBtnText;
212
+ if (lockReason === 'followers')
213
+ return this.followBtnText;
214
+ return this.subscribeBtnText;
215
+ }
216
+ renderLockedOverlay() {
217
+ return (index.h("div", { class: "locked-overlay" }, index.h("div", { class: "locked-content" }, index.h("ur-icon", { name: "lock", size: "32px" }), index.h("span", { class: "locked-message" }, this.getLockedMessage()), index.h("ur-button", { variant: "filled", onClick: this.handleUnlockClick }, this.getUnlockButtonText()))));
218
+ }
219
+ renderTextContent() {
220
+ return (index.h("div", { class: "text-content" }, this.post.title && index.h("h3", { class: "post-title" }, this.post.title), this.post.body && index.h("p", { class: "post-body" }, this.post.body)));
221
+ }
222
+ renderLinkContent() {
223
+ return (index.h("div", { class: "link-content" }, this.post.title && index.h("h3", { class: "post-title" }, this.post.title), this.post.body && index.h("p", { class: "post-body" }, this.post.body), index.h("a", { class: "link-preview", href: this.post.linkUrl, target: "_blank", rel: "noopener noreferrer", onClick: this.handleLinkClick }, index.h("ur-icon", { name: "link", size: "16px" }), index.h("span", { class: "link-url" }, this.post.linkUrl), index.h("ur-icon", { name: "open_in_new", size: "14px" }))));
224
+ }
225
+ renderMediaContent() {
226
+ const hasMedia = this.post.media && this.post.media.length > 0;
227
+ const hasMultipleMedia = this.post.media && this.post.media.length > 1;
228
+ return (index.h("div", { class: "media-content" }, this.post.title && index.h("h3", { class: "post-title" }, this.post.title), hasMedia && (index.h("div", { class: "media-carousel-container" }, index.h("swiper-container", { init: true, "slides-per-view": 1, "space-between": 0, pagination: true, "pagination-clickable": true }, this.post.media.map((media, index$1) => (index.h("swiper-slide", { key: index$1 }, index.h("div", { class: "media-slide" }, media.type === 'image' ? (index.h("img", { src: media.url, alt: "", loading: "lazy" })) : (index.h("video", { src: media.url, controls: true, class: "video-player" }))))))), hasMultipleMedia && (index.h("div", { class: "media-navigation" }, index.h("button", { class: "nav-button prev", onClick: this.handlePrevMedia, disabled: this.currentMediaIndex === 0 }, index.h("ur-icon", { name: "chevron_left", size: "24px" })), index.h("button", { class: "nav-button next", onClick: this.handleNextMedia, disabled: this.currentMediaIndex === this.post.media.length - 1 }, index.h("ur-icon", { name: "chevron_right", size: "24px" })))))), this.post.body && index.h("p", { class: "post-body" }, this.post.body)));
229
+ }
230
+ renderPollContent() {
231
+ var _a;
232
+ const hasVoted = this.userPollVote !== -1;
233
+ const hasPollResults = this.post.pollResults && this.post.pollResults.length > 0;
234
+ const totalVotes = hasPollResults
235
+ ? this.post.pollResults.reduce((sum, r) => sum + r.count, 0)
236
+ : this.totalPollVotes;
237
+ return (index.h("div", { class: "poll-content" }, this.post.title && index.h("h3", { class: "post-title" }, this.post.title), index.h("div", { class: "poll-options" }, (_a = this.post.pollOptions) === null || _a === void 0 ? void 0 : _a.map((option, index$1) => {
238
+ const result = hasPollResults
239
+ ? this.post.pollResults.find(r => r.index === index$1)
240
+ : null;
241
+ const votes = result ? result.count : (option.votes || 0);
242
+ const percentage = result
243
+ ? result.percentage
244
+ : (totalVotes > 0 ? Math.round((votes / totalVotes) * 100) : 0);
245
+ const isSelected = this.userPollVote === index$1;
246
+ return (index.h("button", { class: {
247
+ 'poll-option': true,
248
+ 'voted': hasVoted,
249
+ 'selected': isSelected,
250
+ }, onClick: (e) => this.handlePollVote(e, index$1), disabled: hasVoted, key: index$1 }, hasVoted && (index.h("div", { class: "poll-bar", style: { width: `${percentage}%` } })), index.h("span", { class: "poll-text" }, option.text), hasVoted && (index.h("span", { class: "poll-percentage" }, percentage, "%")), isSelected && (index.h("ur-icon", { name: "check_circle", size: "16px", class: "poll-check" }))));
251
+ })), index.h("div", { class: "poll-meta" }, index.h("span", null, totalVotes, " ", this.votesText))));
252
+ }
253
+ renderLockedContent() {
254
+ return (index.h("div", { class: "locked-placeholder" }, this.post.title && index.h("h3", { class: "post-title" }, this.post.title), index.h("div", { class: "locked-placeholder-body" }, index.h("div", { class: "placeholder-line" }), index.h("div", { class: "placeholder-line" }), index.h("div", { class: "placeholder-line short" }))));
255
+ }
256
+ renderContent() {
257
+ var _a, _b, _c, _d, _e, _f;
258
+ const showSpoiler = ((_a = this.post) === null || _a === void 0 ? void 0 : _a.isSpoiler) && !this.spoilerRevealed;
259
+ const isLocked = ((_b = this.post) === null || _b === void 0 ? void 0 : _b.locked) === true;
260
+ if (isLocked) {
261
+ return (index.h("div", { class: "content blurred" }, this.renderLockedContent(), this.renderLockedOverlay()));
262
+ }
263
+ return (index.h("div", { class: { 'content': true, 'blurred': showSpoiler } }, ((_c = this.post) === null || _c === void 0 ? void 0 : _c.type) === 'text' && this.renderTextContent(), ((_d = this.post) === null || _d === void 0 ? void 0 : _d.type) === 'link' && this.renderLinkContent(), ((_e = this.post) === null || _e === void 0 ? void 0 : _e.type) === 'media' && this.renderMediaContent(), ((_f = this.post) === null || _f === void 0 ? void 0 : _f.type) === 'poll' && this.renderPollContent(), showSpoiler && this.renderSpoilerOverlay()));
264
+ }
265
+ renderStats() {
266
+ return (index.h("div", { class: "stats" }, this.likeCount > 0 && (index.h("span", { class: "stat-item" }, index.h("ur-icon", { name: "thumb_up", size: "16px" }), this.formatCount(this.likeCount))), this.commentCount > 0 && (index.h("span", { class: "stat-item clickable", onClick: this.handleCommentClick }, this.formatCount(this.commentCount), " comments"))));
267
+ }
268
+ renderActions() {
269
+ const defaultColor = 'rgba(var(--ur-color-on-background), 0.7)';
270
+ const activeColor = 'rgb(var(--ur-color-primary))';
271
+ return (index.h("div", { class: "actions" }, index.h("ur-button", { variant: "text", icon: this.liked ? 'thumb_up' : 'thumb_up--outlined', color: this.liked ? activeColor : defaultColor, fullWidth: true, onClick: this.handleLikeClick }, this.liked ? this.likedText : this.likeText), index.h("ur-button", { variant: "text", icon: "comment--outlined", color: defaultColor, fullWidth: true, onClick: this.handleCommentClick }, this.commentText)));
272
+ }
273
+ render() {
274
+ if (!this.post) {
275
+ return null;
276
+ }
277
+ return (index.h(index.Host, null, index.h("div", { class: "post-detail" }, this.renderHeader(), this.renderContent(), this.renderStats(), index.h("div", { class: "divider" }), this.renderActions(), index.h("div", { class: "divider" }))));
278
+ }
279
+ get el() { return index.getElement(this); }
280
+ static get watchers() { return {
281
+ "initialMediaIndex": ["onInitialMediaIndexChange"]
282
+ }; }
283
+ };
284
+ UrPostDetail.style = urPostDetailCss;
285
+
286
+ exports.ur_post_detail = UrPostDetail;