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
@@ -1 +1 @@
1
- import{r as t,c as i,h as o,H as e}from"./p-DvddpEp7.js";import"./p-da9fd305.entry.js";import"./p-a712a3df.entry.js";import"./p-DLgdsY8g.js";import"./p-DJx6zFbF.js";import"./p-zh2SzAzp.js";import"./p-BaDNPIJn.js";import"./p-DCmgagZL.js";import"./p-BikcNKGt.js";import"./p-mNKFcBdT.js";import"./p-BvhH6khE.js";import"./p-CRnISBPX.js";import"./p-yaA8vKgL.js";import"./p-Bm8xqKw-.js";import"./p-BnvqNZ1a.js";import"./p-Bm926Ekb.js";import"./p-B8AYZymA.js";import"./p-9r9PNduz.js";import"./p-CDMnlt9S.js";import"./p-CinnKCwG.js";import"./p-CJV4FEOd.js";import"./p-Dyrf810J.js";import"./p-Bp-zUewd.js";import"./p-D3sLxRC_.js";import"./p-Clv8wqOh.js";const r=class{constructor(o){t(this,o),this.playerPlay=i(this,"playerPlay"),this.playerPause=i(this,"playerPause"),this.playerEnded=i(this,"playerEnded"),this.playerTimeUpdate=i(this,"playerTimeUpdate"),this.playerVolumeChange=i(this,"playerVolumeChange"),this.playerRateChange=i(this,"playerRateChange"),this.storyTitle="Audiobook Title",this.author="Author Name",this.chapterName="Chapter 1",this.playText="Play",this.pauseText="Pause",this.forwardText="Forward 15s",this.backwardText="Back 15s",this.speedText="Speed",this.volumeText="Volume",this.autoPlay=!1,this.showControls=!0,this.primaryColor="rgb(var(--ur-color-primary))",this.accentColor="rgb(var(--ur-color-primary-container))",this.darkMode=!1,this.isPlaying=!1,this.currentTime=0,this.duration=0,this.loadedPercentage=0,this.volume=.8,this.playbackRate=1,this.handlePlayPause=()=>{this.togglePlay()},this.handleSkipForward=()=>{this.skipForward()},this.handleSkipBackward=()=>{this.skipBackward()},this.handleProgressClick=t=>{const i=t.currentTarget.getBoundingClientRect();this.seekTo((t.clientX-i.left)/i.width*this.duration)},this.handleVolumeChange=t=>{this.setVolume(parseFloat(t.target.value))},this.handlePlaybackRateChange=t=>{this.setPlaybackRate(t)},this.onError=t=>{console.error("Audio error:",t),console.error("Error code:",this.audioElement.error?this.audioElement.error.code:"unknown"),console.error("Error message:",this.audioElement.error?this.audioElement.error.message:"unknown")},this.onTimeUpdate=()=>{this.currentTime=this.audioElement.currentTime,this.playerTimeUpdate.emit({currentTime:this.currentTime,duration:this.duration})},this.onLoadedMetadata=()=>{this.duration=this.audioElement.duration},this.onProgress=()=>{if(this.audioElement.buffered.length>0){const t=this.audioElement.buffered.end(this.audioElement.buffered.length-1);this.loadedPercentage=t/this.duration*100}},this.onEnded=()=>{this.isPlaying=!1,this.playerEnded.emit()},this.onPlay=()=>{this.isPlaying=!0},this.onPause=()=>{this.isPlaying=!1},this.isDragging=!1,this.handleThumbMouseDown=t=>{t.stopPropagation(),this.isDragging=!0,document.addEventListener("mousemove",this.handleThumbMouseMove),document.addEventListener("mouseup",this.handleThumbMouseUp)},this.handleThumbMouseMove=t=>{if(!this.isDragging)return;const i=this.element.shadowRoot.querySelector(".progress-bar").getBoundingClientRect(),o=Math.max(0,Math.min(1,(t.clientX-i.left)/i.width));this.seekTo(o*this.duration)},this.handleThumbMouseUp=()=>{this.isDragging=!1,document.removeEventListener("mousemove",this.handleThumbMouseMove),document.removeEventListener("mouseup",this.handleThumbMouseUp)}}onSourceChange(){this.audioElement&&(this.audioElement.load(),this.autoPlay&&this.play())}async play(){if(this.audioElement)try{console.log("Attempting to play audio from:",this.src),await this.audioElement.play(),this.isPlaying=!0,this.playerPlay.emit(),console.log("Audio playback started successfully")}catch(t){console.error("Failed to play audio:",t),this.isPlaying=!1}else console.error("Audio element not initialized")}async pause(){this.audioElement&&(this.audioElement.pause(),this.isPlaying=!1,this.playerPause.emit())}async togglePlay(){this.isPlaying?await this.pause():await this.play()}async seekTo(t){this.audioElement&&(this.audioElement.currentTime=t)}async setVolume(t){this.audioElement&&(this.volume=Math.max(0,Math.min(1,t)),this.audioElement.volume=this.volume,this.playerVolumeChange.emit({volume:this.volume}))}async setPlaybackRate(t){this.audioElement&&(this.playbackRate=t,this.audioElement.playbackRate=t,this.playerRateChange.emit({rate:t}))}async skipForward(t=15){this.audioElement&&(this.audioElement.currentTime=Math.min(this.audioElement.currentTime+t,this.audioElement.duration))}async skipBackward(t=15){this.audioElement&&(this.audioElement.currentTime=Math.max(this.audioElement.currentTime-t,0))}componentDidLoad(){this.setupAudioElement(),this.audioRef?(this.audioElement=this.audioRef,this.audioElement.volume=this.volume,this.audioElement.playbackRate=this.playbackRate,console.log("Audio element initialized from DOM reference"),this.autoPlay&&this.play()):console.error("Audio reference not found in the DOM")}disconnectedCallback(){this.cleanupAudioElement()}setupAudioElement(){console.log("Setting up audio element with source:",this.src)}cleanupAudioElement(){this.audioElement&&(this.audioElement.removeEventListener("timeupdate",this.onTimeUpdate),this.audioElement.removeEventListener("loadedmetadata",this.onLoadedMetadata),this.audioElement.removeEventListener("progress",this.onProgress),this.audioElement.removeEventListener("ended",this.onEnded),this.audioElement.removeEventListener("play",this.onPlay),this.audioElement.removeEventListener("pause",this.onPause),this.audioElement.pause())}formatTime(t){const i=Math.floor(t/60),o=Math.floor(t%60);return`${i}:${o<10?"0":""}${o}`}render(){return o(e,{key:"70da61cf1361b29bf1bf32b717e71e12c947cc9a",class:this.darkMode?"dark-theme":"light-theme",ref:t=>this.element=t},o("audio",{key:"b6286b73f5ef30e21c27b7133a40bdeeccf51b44",ref:t=>this.audioRef=t,src:this.src,preload:"auto",onTimeUpdate:this.onTimeUpdate,onLoadedMetaData:this.onLoadedMetadata,onProgress:this.onProgress,onEnded:this.onEnded,onPlay:this.onPlay,onPause:this.onPause,onError:this.onError,style:{display:"none"}}),o("div",{key:"3e7b08ab13b08e68c0eb6f0451b763770ba0f7c0",class:"player-container"},o("div",{key:"58d1307c1b43f4b4d2a65eab97cca28f60aa26fa",class:"player-header"},this.coverImage&&o("div",{key:"75c9ede6032bc3df22d1b479d3f8db2486facc8c",class:"cover-image"},o("img",{key:"78d5596130597eb654114b9faadef7c7397af39c",src:this.coverImage,alt:`${this.storyTitle} cover`})),o("div",{key:"61814b4970c173603ffc880bf8f7e7087c821e18",class:"player-info"},o("h2",{key:"41d515feb21437c3e5ac2f17f78ec125c1237460",class:"title"},this.storyTitle),o("p",{key:"fc0b84e03c8bb0edac2413485bb2e1860a32954e",class:"author"},this.author),o("p",{key:"4f2ddcba5693f8bbe4359e28a8578f5e452fe409",class:"chapter"},this.chapterName))),o("div",{key:"4d796f2ecc4c38697d67e9692d731b02f9eb19e8",class:"progress-container"},o("div",{key:"356ba03478bddf0a8279c91dbc3ec2a41fb33cf2",class:"progress-bar",onClick:this.handleProgressClick},o("ur-linear-progress",{key:"e96d88ac58dc2763bc12404ed33940964c6dc38f",value:this.currentTime,max:this.duration}),o("div",{key:"fa3a2d1e72efd7b28c2cb5b94f81b97886d02245",class:"progress-thumb",style:{left:this.currentTime/(this.duration||1)*100+"%",display:this.duration>0?"block":"none"},onMouseDown:this.handleThumbMouseDown})),o("div",{key:"155d6785c72a37b8e2c211617778c56a5f2f6b4c",class:"time-display"},o("span",{key:"e1ff442af04a1118cbb85b1053dcb76bccf12277",class:"current-time"},this.formatTime(this.currentTime)),o("span",{key:"5c76b600c195009e3b8338b66de21e661b57dc38",class:"duration"},this.formatTime(this.duration)))),this.showControls&&o("div",{key:"e6544e5f0c70a9325b886e34a1d6c20d0657290d",class:"controls"},o("div",{key:"0b4b360a0c5e6dc3f033c5b1003e3e3ca470b450",class:"main-controls"},o("ur-button-icon",{key:"749492bf5f74d78c9eb16b61a4747148ead04ffc",icon:"skip_previous",variant:"standard",buttonHeight:"44px",buttonWidth:"44px",onClick:this.handleSkipBackward,"aria-label":this.backwardText}),o("ur-button-icon",{key:"7688eaf448d5705d157539823215d96372c5168a",class:"play-pause-button",icon:this.isPlaying?"pause":"play_arrow",variant:"filled",buttonHeight:"56px",buttonWidth:"56px",onClick:this.handlePlayPause,"aria-label":this.isPlaying?this.pauseText:this.playText}),o("ur-button-icon",{key:"e1d4d8b4bf95e92667c80d576e5ade34f62193e3",icon:"skip_next",variant:"standard",buttonHeight:"44px",buttonWidth:"44px",onClick:this.handleSkipForward,"aria-label":this.forwardText})),o("div",{key:"0e522a96a334f30fbfcef7fe08bb499fbf338230",class:"secondary-controls"},o("div",{key:"2372218d1e8302f859aeb2010d479bdb065a9025",class:"speed-control"},o("ur-tooltip",{key:"410d77d863f3e873842cbe266fb6212f347283a9",variant:"rich",placement:"top",trigger:"click"},o("ur-button-icon",{key:"ebba3d5e9246eef30e79806976d78c3ecb7cd944",slot:"",icon:"speed",variant:"standard",buttonHeight:"36px",buttonWidth:"36px","aria-label":this.speedText}),o("div",{key:"49c67c1d1435c1e901837a3210c7a406a81c32e8",slot:"rich-content",class:"speed-options"},[.5,.75,1,1.25,1.5,2].map((t=>o("button",{class:{"speed-option":!0,active:this.playbackRate===t},onClick:()=>this.handlePlaybackRateChange(t)},t,"x")))))),o("div",{key:"f172abb846209a53f2a6a1a0c7e259075c17059d",class:"volume-control"},o("ur-button-icon",{key:"012ce7ee6a109edae30e5e4f89ddafea05995659",icon:0===this.volume?"volume_off":this.volume<.5?"volume_down":"volume_up",variant:"standard",buttonHeight:"36px",buttonWidth:"36px",onClick:this.handleVolumeChange,"aria-label":this.volumeText}),o("div",{key:"594a05a16fe5aae62b633a5c8500350b2438f25d",class:"volume-slider-container"},o("input",{key:"26992c8a626812c7aa3545590d400c6b51eaaa05",title:"Volume",type:"range",min:"0",max:"1",step:"0.01",value:this.volume,class:"volume-slider",onInput:this.handleVolumeChange})))))))}static get watchers(){return{src:["onSourceChange"]}}};r.style=":host{--ur-color-background:var(--mdui-color-background);--ur-color-on-background:var(--mdui-color-on-background);--ur-color-primary:var(--mdui-color-primary);--ur-color-primary-container:var(--mdui-color-primary-container);--ur-color-on-surface-lite:var(--mdui-color-on-surface-lite);--ur-color-surface-container-high:var(--mdui-color-surface-container-high);display:block;color:rgb(var(--ur-color-on-background));background:rgb(var(--ur-color-background))}:host .player-container{display:flex;flex-direction:column;width:100%;gap:16px}:host .player-header{display:flex;align-items:center;gap:16px}:host .cover-image{width:80px;height:80px;border-radius:8px;overflow:hidden;flex-shrink:0}:host .cover-image img{width:100%;height:100%;object-fit:cover}:host .player-info{flex:1;overflow:hidden}:host .title{margin:0;font-size:22px;font-style:normal;font-weight:700;line-height:24px;letter-spacing:-0.262px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host .author{margin:8px 0 0 0;font-size:14px;color:rgb(var(--ur-color-on-surface-lite));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host .chapter{margin:4px 0 0 0;font-size:12px;color:rgb(var(--ur-color-on-surface-lite));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host .progress-container{width:100%}:host .progress-bar{height:4px;background-color:rgb(var(--ur-color-surface-container-high));border-radius:2px;position:relative;cursor:pointer;margin-bottom:8px;overflow:visible;}:host .progress-thumb{position:absolute;width:12px;height:12px;background-color:rgb(var(--ur-color-primary));border-radius:50%;top:50%;transform:translate(-50%, -50%);cursor:grab;box-shadow:0 2px 4px rgba(0, 0, 0, 0.2);z-index:2;transition:transform 0.1s ease}:host .progress-thumb:hover,:host .progress-thumb:active{transform:translate(-50%, -50%) scale(1.2);cursor:grabbing}:host .progress-bar:hover .progress-thumb{transform:translate(-50%, -50%) scale(1.2)}:host .progress-loaded{position:absolute;height:100%;background-color:rgba(var(--ur-color-primary), 0.3);left:0;top:0}:host .progress-current{position:absolute;height:100%;background-color:rgb(var(--ur-color-primary));left:0;top:0;border-radius:2px;transition:width 0.1s linear}:host .time-display{display:flex;justify-content:space-between;font-size:12px;color:rgb(var(--ur-color-on-surface-lite))}:host .controls{display:flex;flex-direction:column;gap:16px}:host .main-controls{display:flex;justify-content:center;align-items:center;gap:24px}:host .play-pause-button{--mdui-icon-size:28px}:host .secondary-controls{display:flex;justify-content:space-between;align-items:center}:host .volume-control{position:relative;display:flex;align-items:center;justify-content:center}:host .speed-options{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);background-color:rgb(var(--ur-color-background));border-radius:8px;box-shadow:0 2px 10px rgba(0, 0, 0, 0.1);padding:8px;display:flex;flex-wrap:wrap;gap:4px;margin-bottom:8px;z-index:10;width:120px}:host .speed-option{background:none;border:none;padding:4px 8px;border-radius:4px;cursor:pointer;font-size:12px;color:rgb(var(--ur-color-on-background));transition:background-color 0.2s}:host .speed-option:hover{background-color:rgba(var(--ur-color-primary), 0.1)}:host .speed-option.active{background-color:rgb(var(--ur-color-primary-container));color:rgb(var(--ur-color-primary));font-weight:600}:host .volume-slider-container{border-radius:8px;z-index:10;display:flex;align-items:center;justify-content:center}:host .volume-slider{width:100px;height:4px;border-radius:2px;background-color:rgb(var(--ur-color-surface-container-high));outline:none}:host .volume-slider::-webkit-slider-thumb{appearance:none;width:16px;height:16px;border-radius:50%;background-color:rgb(var(--ur-color-primary));cursor:pointer}:host .volume-slider::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background-color:rgb(var(--ur-color-primary));cursor:pointer;border:none}@media (max-width: 480px){:host .player-container{gap:12px}:host .cover-image{width:64px;height:64px}:host .title{font-size:18px}:host .main-controls{gap:16px}}@keyframes placeholderAnimate{0%{background-position:-650px 0}100%{background-position:650px 0}}:host .title.loading{height:24px;margin:8px 0;border-radius:4px;animation-duration:1.7s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:placeholderAnimate;background:linear-gradient(\r\n to right,\r\n rgba(var(--ur-color-on-background), 0.04) 2%,\r\n rgba(var(--ur-color-on-background), 0.12) 18%,\r\n rgba(var(--ur-color-on-background), 0.04) 33%\r\n );background-size:1000px}:host .author.loading,:host .chapter.loading{height:16px;width:70%;margin:8px 0;border-radius:4px;animation-duration:1.7s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:placeholderAnimate;background:linear-gradient(\r\n to right,\r\n rgba(var(--ur-color-on-background), 0.04) 2%,\r\n rgba(var(--ur-color-on-background), 0.12) 18%,\r\n rgba(var(--ur-color-on-background), 0.04) 33%\r\n );background-size:1000px}";export{r as ur_player}
1
+ import{r as t,c as i,h as o,H as r}from"./p-DvddpEp7.js";import"./p-3d11160e.entry.js";import"./p-240289e9.entry.js";import"./p-DLgdsY8g.js";import"./p-DJx6zFbF.js";import"./p-zh2SzAzp.js";import"./p-BaDNPIJn.js";import"./p-DCmgagZL.js";import"./p-BikcNKGt.js";import"./p-mNKFcBdT.js";import"./p-BvhH6khE.js";import"./p-CRnISBPX.js";import"./p-yaA8vKgL.js";import"./p-Bm8xqKw-.js";import"./p-BnvqNZ1a.js";import"./p-Bm926Ekb.js";import"./p-B8AYZymA.js";import"./p-9r9PNduz.js";import"./p-CDMnlt9S.js";import"./p-CinnKCwG.js";import"./p-CJV4FEOd.js";import"./p-Dyrf810J.js";import"./p-Bp-zUewd.js";import"./p-D3sLxRC_.js";import"./p-Clv8wqOh.js";const e=class{constructor(o){t(this,o),this.playerPlay=i(this,"playerPlay"),this.playerPause=i(this,"playerPause"),this.playerEnded=i(this,"playerEnded"),this.playerTimeUpdate=i(this,"playerTimeUpdate"),this.playerVolumeChange=i(this,"playerVolumeChange"),this.playerRateChange=i(this,"playerRateChange"),this.storyTitle="Audiobook Title",this.author="Author Name",this.chapterName="Chapter 1",this.playText="Play",this.pauseText="Pause",this.forwardText="Forward 15s",this.backwardText="Back 15s",this.speedText="Speed",this.volumeText="Volume",this.autoPlay=!1,this.showControls=!0,this.primaryColor="rgb(var(--ur-color-primary))",this.accentColor="rgb(var(--ur-color-primary-container))",this.darkMode=!1,this.isPlaying=!1,this.currentTime=0,this.duration=0,this.loadedPercentage=0,this.volume=.8,this.playbackRate=1,this.handlePlayPause=()=>{this.togglePlay()},this.handleSkipForward=()=>{this.skipForward()},this.handleSkipBackward=()=>{this.skipBackward()},this.handleProgressClick=t=>{const i=t.currentTarget.getBoundingClientRect();this.seekTo((t.clientX-i.left)/i.width*this.duration)},this.handleVolumeChange=t=>{this.setVolume(parseFloat(t.target.value))},this.handlePlaybackRateChange=t=>{this.setPlaybackRate(t)},this.onError=t=>{console.error("Audio error:",t),console.error("Error code:",this.audioElement.error?this.audioElement.error.code:"unknown"),console.error("Error message:",this.audioElement.error?this.audioElement.error.message:"unknown")},this.onTimeUpdate=()=>{this.currentTime=this.audioElement.currentTime,this.playerTimeUpdate.emit({currentTime:this.currentTime,duration:this.duration})},this.onLoadedMetadata=()=>{this.duration=this.audioElement.duration},this.onProgress=()=>{if(this.audioElement.buffered.length>0){const t=this.audioElement.buffered.end(this.audioElement.buffered.length-1);this.loadedPercentage=t/this.duration*100}},this.onEnded=()=>{this.isPlaying=!1,this.playerEnded.emit()},this.onPlay=()=>{this.isPlaying=!0},this.onPause=()=>{this.isPlaying=!1},this.isDragging=!1,this.handleThumbMouseDown=t=>{t.stopPropagation(),this.isDragging=!0,document.addEventListener("mousemove",this.handleThumbMouseMove),document.addEventListener("mouseup",this.handleThumbMouseUp)},this.handleThumbMouseMove=t=>{if(!this.isDragging)return;const i=this.element.shadowRoot.querySelector(".progress-bar").getBoundingClientRect(),o=Math.max(0,Math.min(1,(t.clientX-i.left)/i.width));this.seekTo(o*this.duration)},this.handleThumbMouseUp=()=>{this.isDragging=!1,document.removeEventListener("mousemove",this.handleThumbMouseMove),document.removeEventListener("mouseup",this.handleThumbMouseUp)}}onSourceChange(){this.audioElement&&(this.audioElement.load(),this.autoPlay&&this.play())}async play(){if(this.audioElement)try{console.log("Attempting to play audio from:",this.src),await this.audioElement.play(),this.isPlaying=!0,this.playerPlay.emit(),console.log("Audio playback started successfully")}catch(t){console.error("Failed to play audio:",t),this.isPlaying=!1}else console.error("Audio element not initialized")}async pause(){this.audioElement&&(this.audioElement.pause(),this.isPlaying=!1,this.playerPause.emit())}async togglePlay(){this.isPlaying?await this.pause():await this.play()}async seekTo(t){this.audioElement&&(this.audioElement.currentTime=t)}async setVolume(t){this.audioElement&&(this.volume=Math.max(0,Math.min(1,t)),this.audioElement.volume=this.volume,this.playerVolumeChange.emit({volume:this.volume}))}async setPlaybackRate(t){this.audioElement&&(this.playbackRate=t,this.audioElement.playbackRate=t,this.playerRateChange.emit({rate:t}))}async skipForward(t=15){this.audioElement&&(this.audioElement.currentTime=Math.min(this.audioElement.currentTime+t,this.audioElement.duration))}async skipBackward(t=15){this.audioElement&&(this.audioElement.currentTime=Math.max(this.audioElement.currentTime-t,0))}componentDidLoad(){this.setupAudioElement(),this.audioRef?(this.audioElement=this.audioRef,this.audioElement.volume=this.volume,this.audioElement.playbackRate=this.playbackRate,console.log("Audio element initialized from DOM reference"),this.autoPlay&&this.play()):console.error("Audio reference not found in the DOM")}disconnectedCallback(){this.cleanupAudioElement()}setupAudioElement(){console.log("Setting up audio element with source:",this.src)}cleanupAudioElement(){this.audioElement&&(this.audioElement.removeEventListener("timeupdate",this.onTimeUpdate),this.audioElement.removeEventListener("loadedmetadata",this.onLoadedMetadata),this.audioElement.removeEventListener("progress",this.onProgress),this.audioElement.removeEventListener("ended",this.onEnded),this.audioElement.removeEventListener("play",this.onPlay),this.audioElement.removeEventListener("pause",this.onPause),this.audioElement.pause())}formatTime(t){const i=Math.floor(t/60),o=Math.floor(t%60);return`${i}:${o<10?"0":""}${o}`}render(){return o(r,{key:"3784755b13c58a6b241ad106b955eafe8e5c7f6a",class:this.darkMode?"dark-theme":"light-theme",ref:t=>this.element=t},o("audio",{key:"9f88ef03244721e8b8a6140f8c81add436e11146",ref:t=>this.audioRef=t,src:this.src,preload:"auto",onTimeUpdate:this.onTimeUpdate,onLoadedMetaData:this.onLoadedMetadata,onProgress:this.onProgress,onEnded:this.onEnded,onPlay:this.onPlay,onPause:this.onPause,onError:this.onError,style:{display:"none"}}),o("div",{key:"ca2283b24e11c661d752e83dfb64efa0cbefeb65",class:"player-container"},o("div",{key:"3bb8f5150608aaa29ccca07fd472f0208a17a613",class:"player-header"},this.coverImage&&o("div",{key:"5e5935b12833a77ae861177651bdc7df1647c73a",class:"cover-image"},o("img",{key:"e1d2d8e3fd8d8d81902075bdc7f6c09f767232eb",src:this.coverImage,alt:`${this.storyTitle} cover`})),o("div",{key:"0735b27978bb6eb84ab1e0111ceb1d575d574161",class:"player-info"},o("h2",{key:"9efafc9fd60d82175b917b07062afc34beebf231",class:"title"},this.storyTitle),o("p",{key:"58ce0df524fa433d6513b3329bc35a87c14eca90",class:"author"},this.author),o("p",{key:"97ffbe5b8910f0d28d47517c3951324cc4d08d29",class:"chapter"},this.chapterName))),o("div",{key:"c410b2626405d6f8a82854d8800a761b2470767d",class:"progress-container"},o("div",{key:"79074856394e06cc11dcc6000301d31f8ab947bd",class:"progress-bar",onClick:this.handleProgressClick},o("ur-linear-progress",{key:"6cdc09c87fc017efae6a0bf16b247dd3711057fc",value:this.currentTime,max:this.duration}),o("div",{key:"163dde485b3b571ffcde99c23b19d0f6b8c02305",class:"progress-thumb",style:{left:this.currentTime/(this.duration||1)*100+"%",display:this.duration>0?"block":"none"},onMouseDown:this.handleThumbMouseDown})),o("div",{key:"4ee679f916e1f7815287fd787e0936d5110bbf13",class:"time-display"},o("span",{key:"298a1ab78bef5df7a785ce331e6e8fbaf78c70ed",class:"current-time"},this.formatTime(this.currentTime)),o("span",{key:"62fa4e25d103aade9953e1e4867669159b2229f6",class:"duration"},this.formatTime(this.duration)))),this.showControls&&o("div",{key:"096c0d370524acf6aeb197480a85a0dd380acb61",class:"controls"},o("div",{key:"b488dff526738db68bcc5e7a50cf875586c90788",class:"main-controls"},o("ur-button-icon",{key:"ba6ab65930391e7ff7aefded9e3c4b2906ccb758",icon:"skip_previous",variant:"standard",buttonHeight:"44px",buttonWidth:"44px",onClick:this.handleSkipBackward,"aria-label":this.backwardText}),o("ur-button-icon",{key:"11dc8296aefe4578f3ca57345d1c6ff8a1dc44e5",class:"play-pause-button",icon:this.isPlaying?"pause":"play_arrow",variant:"filled",buttonHeight:"56px",buttonWidth:"56px",onClick:this.handlePlayPause,"aria-label":this.isPlaying?this.pauseText:this.playText}),o("ur-button-icon",{key:"323350f1828866af2b1368746b5f291f8c78bad4",icon:"skip_next",variant:"standard",buttonHeight:"44px",buttonWidth:"44px",onClick:this.handleSkipForward,"aria-label":this.forwardText})),o("div",{key:"027cc7e5cc0f5d131d4b173324a64c1aef7cbe9e",class:"secondary-controls"},o("div",{key:"984a6c2d5aff9932e125f2dfc7daab18abd396d1",class:"speed-control"},o("ur-tooltip",{key:"e2ff53ffbb35ae499d17dcf6737aa9747dc91a1c",variant:"rich",placement:"top",trigger:"click"},o("ur-button-icon",{key:"860a586607b048f8cdadd064674c2d6765bb93dd",slot:"",icon:"speed",variant:"standard",buttonHeight:"36px",buttonWidth:"36px","aria-label":this.speedText}),o("div",{key:"c82594243bf8d9526989eeecc674b1b7c5a18101",slot:"rich-content",class:"speed-options"},[.5,.75,1,1.25,1.5,2].map((t=>o("button",{class:{"speed-option":!0,active:this.playbackRate===t},onClick:()=>this.handlePlaybackRateChange(t)},t,"x")))))),o("div",{key:"bb0a8250f8dce60cac9f989a50b0be14c16dbf41",class:"volume-control"},o("ur-button-icon",{key:"37246549b348f648cd03cfba29de9968b22ebfe3",icon:0===this.volume?"volume_off":this.volume<.5?"volume_down":"volume_up",variant:"standard",buttonHeight:"36px",buttonWidth:"36px",onClick:this.handleVolumeChange,"aria-label":this.volumeText}),o("div",{key:"5489c75cf2f63be8c61362b3c1368c297433d7df",class:"volume-slider-container"},o("input",{key:"78d00567d47174dd2e10d3d2d096912ec4c9139a",title:"Volume",type:"range",min:"0",max:"1",step:"0.01",value:this.volume,class:"volume-slider",onInput:this.handleVolumeChange})))))))}static get watchers(){return{src:["onSourceChange"]}}};e.style=":host{--ur-color-background:var(--mdui-color-background);--ur-color-on-background:var(--mdui-color-on-background);--ur-color-primary:var(--mdui-color-primary);--ur-color-primary-container:var(--mdui-color-primary-container);--ur-color-on-surface-lite:var(--mdui-color-on-surface-lite);--ur-color-surface-container-high:var(--mdui-color-surface-container-high);display:block;color:rgb(var(--ur-color-on-background));background:rgb(var(--ur-color-background))}:host .player-container{display:flex;flex-direction:column;width:100%;gap:16px}:host .player-header{display:flex;align-items:center;gap:16px}:host .cover-image{width:80px;height:80px;border-radius:8px;overflow:hidden;flex-shrink:0}:host .cover-image img{width:100%;height:100%;object-fit:cover}:host .player-info{flex:1;overflow:hidden}:host .title{margin:0;font-size:22px;font-style:normal;font-weight:700;line-height:24px;letter-spacing:-0.262px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host .author{margin:8px 0 0 0;font-size:14px;color:rgb(var(--ur-color-on-surface-lite));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host .chapter{margin:4px 0 0 0;font-size:12px;color:rgb(var(--ur-color-on-surface-lite));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host .progress-container{width:100%}:host .progress-bar{height:4px;background-color:rgb(var(--ur-color-surface-container-high));border-radius:2px;position:relative;cursor:pointer;margin-bottom:8px;overflow:visible;}:host .progress-thumb{position:absolute;width:12px;height:12px;background-color:rgb(var(--ur-color-primary));border-radius:50%;top:50%;transform:translate(-50%, -50%);cursor:grab;box-shadow:0 2px 4px rgba(0, 0, 0, 0.2);z-index:2;transition:transform 0.1s ease}:host .progress-thumb:hover,:host .progress-thumb:active{transform:translate(-50%, -50%) scale(1.2);cursor:grabbing}:host .progress-bar:hover .progress-thumb{transform:translate(-50%, -50%) scale(1.2)}:host .progress-loaded{position:absolute;height:100%;background-color:rgba(var(--ur-color-primary), 0.3);left:0;top:0}:host .progress-current{position:absolute;height:100%;background-color:rgb(var(--ur-color-primary));left:0;top:0;border-radius:2px;transition:width 0.1s linear}:host .time-display{display:flex;justify-content:space-between;font-size:12px;color:rgb(var(--ur-color-on-surface-lite))}:host .controls{display:flex;flex-direction:column;gap:16px}:host .main-controls{display:flex;justify-content:center;align-items:center;gap:24px}:host .play-pause-button{--mdui-icon-size:28px}:host .secondary-controls{display:flex;justify-content:space-between;align-items:center}:host .volume-control{position:relative;display:flex;align-items:center;justify-content:center}:host .speed-options{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);background-color:rgb(var(--ur-color-background));border-radius:8px;box-shadow:0 2px 10px rgba(0, 0, 0, 0.1);padding:8px;display:flex;flex-wrap:wrap;gap:4px;margin-bottom:8px;z-index:10;width:120px}:host .speed-option{background:none;border:none;padding:4px 8px;border-radius:4px;cursor:pointer;font-size:12px;color:rgb(var(--ur-color-on-background));transition:background-color 0.2s}:host .speed-option:hover{background-color:rgba(var(--ur-color-primary), 0.1)}:host .speed-option.active{background-color:rgb(var(--ur-color-primary-container));color:rgb(var(--ur-color-primary));font-weight:600}:host .volume-slider-container{border-radius:8px;z-index:10;display:flex;align-items:center;justify-content:center}:host .volume-slider{width:100px;height:4px;border-radius:2px;background-color:rgb(var(--ur-color-surface-container-high));outline:none}:host .volume-slider::-webkit-slider-thumb{appearance:none;width:16px;height:16px;border-radius:50%;background-color:rgb(var(--ur-color-primary));cursor:pointer}:host .volume-slider::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background-color:rgb(var(--ur-color-primary));cursor:pointer;border:none}@media (max-width: 480px){:host .player-container{gap:12px}:host .cover-image{width:64px;height:64px}:host .title{font-size:18px}:host .main-controls{gap:16px}}@keyframes placeholderAnimate{0%{background-position:-650px 0}100%{background-position:650px 0}}:host .title.loading{height:24px;margin:8px 0;border-radius:4px;animation-duration:1.7s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:placeholderAnimate;background:linear-gradient(\r\n to right,\r\n rgba(var(--ur-color-on-background), 0.04) 2%,\r\n rgba(var(--ur-color-on-background), 0.12) 18%,\r\n rgba(var(--ur-color-on-background), 0.04) 33%\r\n );background-size:1000px}:host .author.loading,:host .chapter.loading{height:16px;width:70%;margin:8px 0;border-radius:4px;animation-duration:1.7s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:placeholderAnimate;background:linear-gradient(\r\n to right,\r\n rgba(var(--ur-color-on-background), 0.04) 2%,\r\n rgba(var(--ur-color-on-background), 0.12) 18%,\r\n rgba(var(--ur-color-on-background), 0.04) 33%\r\n );background-size:1000px}";export{e as ur_player}
@@ -1 +1 @@
1
- import{r as i,c as t,h as s,H as e,a as o}from"./p-DvddpEp7.js";const h=class{constructor(s){i(this,s),this.intersectionUpdated=t(this,"intersectionUpdated"),this.prevClicked=t(this,"prevClicked"),this.nextClicked=t(this,"nextClicked"),this.users=[],this.breakpoints={},this.grid={rows:1,fill:"row"},this.slidesPerView="auto",this.spaceBetween="0",this.navigation=!1,this.followLabel="Follow",this.followingLabel="Following",this.followerLabel="Follower",this.followersLabel="Followers",this.onIntersection=async i=>{this.intersectionUpdated.emit(i)},this.onSlideChange=()=>{var i,t,s,e,o,h;null===(i=this.leftArrow)||void 0===i||i.setAttribute("disabled",null===(s=null===(t=this.swiperContainer)||void 0===t?void 0:t.swiper)||void 0===s?void 0:s.isBeginning),null===(e=this.rightArrow)||void 0===e||e.setAttribute("disabled",null===(h=null===(o=this.swiperContainer)||void 0===o?void 0:o.swiper)||void 0===h?void 0:h.isEnd)},this.onLeftClick=()=>{var i,t;null===(t=null===(i=this.swiperContainer)||void 0===i?void 0:i.swiper)||void 0===t||t.slidePrev(),this.prevClicked.emit()},this.onRightClick=()=>{var i,t;null===(t=null===(i=this.swiperContainer)||void 0===i?void 0:i.swiper)||void 0===t||t.slideNext(),this.nextClicked.emit()}}componentDidLoad(){var i;this.swiperContainer=this.el.shadowRoot.querySelector("swiper-container"),this.navigation&&(this.leftArrow=this.el.shadowRoot.querySelector("ur-button-arrow-left"),this.rightArrow=this.el.shadowRoot.querySelector("ur-button-arrow-right"),this.leftArrow.setAttribute("disabled","true"),this.rightArrow.setAttribute("disabled",`${0===this.users.length}`),this.leftArrow.addEventListener("click",this.onLeftClick),this.rightArrow.addEventListener("click",this.onRightClick),null===(i=this.swiperContainer)||void 0===i||i.swiper.on("slideChange",this.onSlideChange));const t=this.el.shadowRoot.querySelectorAll("ur-user");this.observer=new IntersectionObserver(this.onIntersection),t.forEach((i=>{this.observer.observe(i)}))}disconnectedCallback(){var i,t,s;null===(i=this.leftArrow)||void 0===i||i.removeEventListener("click",this.onLeftClick),null===(t=this.rightArrow)||void 0===t||t.removeEventListener("click",this.onRightClick),null===(s=this.swiperContainer)||void 0===s||s.swiper.destroy(!0,!0),this.observer.disconnect()}render(){return s(e,{key:"61a055697aa707ca98e20b598cc2dcef0be2a142"},s("div",{key:"7da6037e291b1a69dd8fe7376b3780af2eb2cf06",class:"carousel"},this.navigation&&s("ur-button-arrow-left",{key:"0206087e37a06bd2104d6c366478cbedbae38948",disabled:!0}),this.navigation&&s("ur-button-arrow-right",{key:"fd26ec650245aca713c8fdfa409812ad6b688862",disabled:!0}),s("swiper-container",{key:"124903c87df232285e50538880dba5f5cd30e41a","breakpoint-base":"container",grid:this.grid,breakpoints:this.breakpoints,"slides-per-view":this.slidesPerView,"space-between":this.spaceBetween},this.users.map(((i,t)=>{return s("swiper-slide",null,(e=i)&&e.content&&"function"==typeof e.content?s("div",{class:"custom",innerHTML:i.content(t)}):s("ur-user",Object.assign({},i,{followLabel:this.followLabel,followingLabel:this.followingLabel,followerLabel:this.followerLabel,followersLabel:this.followersLabel})));var e})))))}get el(){return o(this)}};h.style=":host{--swiper-slide-width:100%}:host{display:block;box-sizing:border-box;position:relative}:host .carousel{position:relative}:host swiper-slide{width:var(--swiper-slide-width)}:host ur-button-arrow-left,:host ur-button-arrow-right{position:absolute;top:calc(50% - 34px);left:-17px;z-index:2}:host ur-button-arrow-right{left:auto;right:-17px}@media (min-width: 0px){:host swiper-slide{width:calc(90% / 2)}}@media (min-width: 321px){:host swiper-slide{width:calc(90% / 2)}}@media (min-width: 640px){:host swiper-slide{width:calc(90% / 3)}}@media (min-width: 1150px){:host swiper-slide{width:calc(90% / 4)}}@media (min-width: 1770px){:host swiper-slide{width:calc(90% / 5)}}@media (min-width: 2140px){:host swiper-slide{width:calc(90% / 6)}}";export{h as ur_user_carousel}
1
+ import{r as i,c as t,h as s,H as e,a as o}from"./p-DvddpEp7.js";const h=class{constructor(s){i(this,s),this.intersectionUpdated=t(this,"intersectionUpdated"),this.prevClicked=t(this,"prevClicked"),this.nextClicked=t(this,"nextClicked"),this.users=[],this.breakpoints={},this.grid={rows:1,fill:"row"},this.slidesPerView="auto",this.spaceBetween="0",this.navigation=!1,this.followLabel="Follow",this.followingLabel="Following",this.followerLabel="Follower",this.followersLabel="Followers",this.onIntersection=async i=>{this.intersectionUpdated.emit(i)},this.onSlideChange=()=>{var i,t,s,e,o,h;null===(i=this.leftArrow)||void 0===i||i.setAttribute("disabled",null===(s=null===(t=this.swiperContainer)||void 0===t?void 0:t.swiper)||void 0===s?void 0:s.isBeginning),null===(e=this.rightArrow)||void 0===e||e.setAttribute("disabled",null===(h=null===(o=this.swiperContainer)||void 0===o?void 0:o.swiper)||void 0===h?void 0:h.isEnd)},this.onLeftClick=()=>{var i,t;null===(t=null===(i=this.swiperContainer)||void 0===i?void 0:i.swiper)||void 0===t||t.slidePrev(),this.prevClicked.emit()},this.onRightClick=()=>{var i,t;null===(t=null===(i=this.swiperContainer)||void 0===i?void 0:i.swiper)||void 0===t||t.slideNext(),this.nextClicked.emit()}}componentDidLoad(){var i;this.swiperContainer=this.el.shadowRoot.querySelector("swiper-container"),this.navigation&&(this.leftArrow=this.el.shadowRoot.querySelector("ur-button-arrow-left"),this.rightArrow=this.el.shadowRoot.querySelector("ur-button-arrow-right"),this.leftArrow.setAttribute("disabled","true"),this.rightArrow.setAttribute("disabled",`${0===this.users.length}`),this.leftArrow.addEventListener("click",this.onLeftClick),this.rightArrow.addEventListener("click",this.onRightClick),null===(i=this.swiperContainer)||void 0===i||i.swiper.on("slideChange",this.onSlideChange));const t=this.el.shadowRoot.querySelectorAll("ur-user");this.observer=new IntersectionObserver(this.onIntersection),t.forEach((i=>{this.observer.observe(i)}))}disconnectedCallback(){var i,t,s;null===(i=this.leftArrow)||void 0===i||i.removeEventListener("click",this.onLeftClick),null===(t=this.rightArrow)||void 0===t||t.removeEventListener("click",this.onRightClick),null===(s=this.swiperContainer)||void 0===s||s.swiper.destroy(!0,!0),this.observer.disconnect()}render(){return s(e,{key:"a7e9d4b27d165d42b0848536c7f082202ab66232"},s("div",{key:"e834334118380640d0970bf6fbf70d2168d2cb85",class:"carousel"},this.navigation&&s("ur-button-arrow-left",{key:"cdb26094f195f3941ceef015b13c757cb73dac85",disabled:!0}),this.navigation&&s("ur-button-arrow-right",{key:"28e58ee5dfa0f6e1757977dcf11a1de79b30c8a6",disabled:!0}),s("swiper-container",{key:"8247ccc9247a0cccd9059029c9b23db7347f9e33","breakpoint-base":"container",grid:this.grid,breakpoints:this.breakpoints,"slides-per-view":this.slidesPerView,"space-between":this.spaceBetween},this.users.map(((i,t)=>{return s("swiper-slide",null,(e=i)&&e.content&&"function"==typeof e.content?s("div",{class:"custom",innerHTML:i.content(t)}):s("ur-user",Object.assign({},i,{followLabel:this.followLabel,followingLabel:this.followingLabel,followerLabel:this.followerLabel,followersLabel:this.followersLabel})));var e})))))}get el(){return o(this)}};h.style=":host{--swiper-slide-width:100%}:host{display:block;box-sizing:border-box;position:relative}:host .carousel{position:relative}:host swiper-slide{width:var(--swiper-slide-width)}:host ur-button-arrow-left,:host ur-button-arrow-right{position:absolute;top:calc(50% - 34px);left:-17px;z-index:2}:host ur-button-arrow-right{left:auto;right:-17px}@media (min-width: 0px){:host swiper-slide{width:calc(90% / 2)}}@media (min-width: 321px){:host swiper-slide{width:calc(90% / 2)}}@media (min-width: 640px){:host swiper-slide{width:calc(90% / 3)}}@media (min-width: 1150px){:host swiper-slide{width:calc(90% / 4)}}@media (min-width: 1770px){:host swiper-slide{width:calc(90% / 5)}}@media (min-width: 2140px){:host swiper-slide{width:calc(90% / 6)}}";export{h as ur_user_carousel}
@@ -1 +1 @@
1
- import{r as t,c as i,h as o,H as e}from"./p-DvddpEp7.js";import{a as s,c as a,_ as n,t as r,M as c,x as l}from"./p-zh2SzAzp.js";import{n as m}from"./p-BaDNPIJn.js";import{n as h}from"./p-DEJm_QN9.js";import{w as p}from"./p-BvhH6khE.js";import{g as d,s as u,a as b,b as f}from"./p-BczUih5b.js";import{b as g}from"./p-BFSQNFmS.js";import{b as v}from"./p-CRnISBPX.js";import{o as y}from"./p-CoOsTs05.js";import{n as w}from"./p-yaA8vKgL.js";import"./p-C9D7GpT5.js";import"./p-DJx6zFbF.js";import"./p-CDumGMAI.js";import"./p-Clv8wqOh.js";import"./p-BikcNKGt.js";import"./p-Dyrf810J.js";import"./p-DOqf3A_i.js";import"./p-B5jYRBDz.js";import"./p-DCmgagZL.js";import"./p-mNKFcBdT.js";import"./p-Bm8xqKw-.js";import"./p-BnvqNZ1a.js";import"./p-Bm926Ekb.js";import"./p-B8AYZymA.js";import"./p-9r9PNduz.js";import"./p-CDMnlt9S.js";import"./p-CinnKCwG.js";import"./p-CJV4FEOd.js";import"./p-Bp-zUewd.js";import"./p-D3sLxRC_.js";const k=s`:host{--shape-corner:var(--mdui-shape-corner-extra-small);--z-index:2400;position:fixed;z-index:var(--z-index);display:none;align-items:center;flex-wrap:wrap;border-radius:var(--shape-corner);transform:scaleY(0);transition:transform 0s var(--mdui-motion-easing-linear) var(--mdui-motion-duration-short4);min-width:20rem;max-width:36rem;padding:.25rem 0;box-shadow:var(--mdui-elevation-level3);background-color:rgb(var(--mdui-color-inverse-surface));color:rgb(var(--mdui-color-inverse-on-surface));font-size:var(--mdui-typescale-body-medium-size);font-weight:var(--mdui-typescale-body-medium-weight);letter-spacing:var(--mdui-typescale-body-medium-tracking);line-height:var(--mdui-typescale-body-medium-line-height)}:host([placement^=top]){transform-origin:top}:host([placement^=bottom]){transform-origin:bottom}:host([placement=bottom-start]:not([mobile])),:host([placement=top-start]:not([mobile])){left:1rem}:host([placement=bottom-end]:not([mobile])),:host([placement=top-end]:not([mobile])){right:1rem}:host([placement=bottom]:not([mobile])),:host([placement=top]:not([mobile])){left:50%;transform:scaleY(0) translateX(-50%)}:host([mobile]){min-width:0;left:1rem;right:1rem}:host([open]){transform:scaleY(1);transition:top var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard),bottom var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard),transform var(--mdui-motion-duration-medium4) var(--mdui-motion-easing-emphasized-decelerate)}:host([placement=bottom][open]:not([mobile])),:host([placement=top][open]:not([mobile])){transform:scaleY(1) translateX(-50%)}.message{display:block;margin:.625rem 1rem}:host([message-line='1']) .message{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host([message-line='2']) .message{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:2}.action-group{display:flex;align-items:center;margin-left:auto;padding-right:.5rem}.action,.close-button{display:inline-flex;align-items:center;justify-content:center}.action{color:rgb(var(--mdui-color-inverse-primary));font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking)}.action mdui-button,::slotted(mdui-button[slot=action][variant=outlined]),::slotted(mdui-button[slot=action][variant=text]){color:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;--mdui-comp-ripple-state-layer-color:var(--mdui-color-inverse-primary)}.action mdui-button::part(button){padding:0 .5rem}.close-button{margin:0 -.25rem 0 .25rem;font-size:1.5rem;color:rgb(var(--mdui-color-inverse-on-surface))}.close-button mdui-button-icon,::slotted(mdui-button-icon[slot=close-button][variant=outlined]),::slotted(mdui-button-icon[slot=close-button][variant=standard]){font-size:inherit;color:inherit;--mdui-comp-ripple-state-layer-color:var(--mdui-color-inverse-on-surface)}.close-button .i,::slotted([slot=close-icon]){font-size:inherit}`,j=[];let C=!1,x=class extends c{constructor(){super(),this.open=!1,this.placement="bottom",this.actionLoading=!1,this.closeable=!1,this.autoCloseDelay=5e3,this.closeOnOutsideClick=!1,this.mobile=!1,this.onDocumentClick=this.onDocumentClick.bind(this)}async onOpenChange(){const t=d(this,"linear"),i=Array.from(this.renderRoot.querySelectorAll(".message, .action-group"));if(this.open){const o=this.hasUpdated;if(o||await this.updateComplete,o&&!this.emit("open",{cancelable:!0}))return;window.clearTimeout(this.closeTimeout),this.autoCloseDelay&&(this.closeTimeout=window.setTimeout((()=>{this.open=!1}),this.autoCloseDelay)),this.style.display="flex",await Promise.all([u(this),...i.map((t=>u(t)))]),j.push({height:this.clientHeight,snackbar:this}),await this.reorderStack(this);const e=b(this,"medium4");return await Promise.all([f(this,[{opacity:0},{opacity:1,offset:.5},{opacity:1}],{duration:o?e:0,easing:t,fill:"forwards"}),...i.map((i=>f(i,[{opacity:0},{opacity:0,offset:.2},{opacity:1,offset:.8},{opacity:1}],{duration:o?e:0,easing:t})))]),void(o&&this.emit("opened"))}if(!this.open&&this.hasUpdated){if(!this.emit("close",{cancelable:!0}))return;window.clearTimeout(this.closeTimeout),await Promise.all([u(this),...i.map((t=>u(t)))]);const o=b(this,"short4");await Promise.all([f(this,[{opacity:1},{opacity:0}],{duration:o,easing:t,fill:"forwards"}),...i.map((i=>f(i,[{opacity:1},{opacity:0,offset:.75},{opacity:0}],{duration:o,easing:t})))]),this.style.display="none",this.emit("closed");const e=j.findIndex((t=>t.snackbar===this));return j.splice(e,1),void(j[e]&&await this.reorderStack(j[e].snackbar))}}async onStackChange(){await this.reorderStack(this)}connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.onDocumentClick),this.mobile=g().down("sm"),this.observeResize=y(document.documentElement,(async()=>{const t=g().down("sm");this.mobile!==t&&(this.mobile=t,C||(C=!0,await this.reorderStack(),C=!1))}))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.onDocumentClick),window.clearTimeout(this.closeTimeout),this.open&&(this.open=!1),this.observeResize?.unobserve()}render(){return l`<slot part="message" class="message"></slot><div class="action-group"><slot name="action" part="action" class="action" @click="${this.onActionClick}">${this.action?l`<mdui-button variant="text" loading="${this.actionLoading}">${this.action}</mdui-button>`:w}</slot>${h(this.closeable,(()=>l`<slot name="close-button" part="close-button" class="close-button" @click="${this.onCloseClick}"><mdui-button-icon><slot name="close-icon" part="close-icon">${this.closeIcon?l`<mdui-icon name="${this.closeIcon}" class="i"></mdui-icon>`:l`<mdui-icon-clear class="i"></mdui-icon-clear>`}</slot></mdui-button-icon></slot>`))}</div>`}async reorderStack(t){for(let i=t?j.findIndex((i=>i.snackbar===t)):0;i<j.length;i++){const t=j[i].snackbar;this.mobile?["top","bottom"].forEach((o=>{if(t.placement.startsWith(o)){const e=j.filter(((t,e)=>e<i&&t.snackbar.placement.startsWith(o))),s=e.reduce(((t,i)=>t+i.height),0);t.style[o]=`calc(${s}px + ${e.length+1}rem)`,t.style["top"===o?"bottom":"top"]="auto"}})):["top","top-start","top-end","bottom","bottom-start","bottom-end"].forEach((o=>{if(t.placement===o){const e=j.filter(((t,e)=>e<i&&t.snackbar.placement===o)),s=e.reduce(((t,i)=>t+i.height),0);t.style[o.startsWith("top")?"top":"bottom"]=`calc(${s}px + ${e.length+1}rem)`,t.style[o.startsWith("top")?"bottom":"top"]="auto"}}))}}onDocumentClick(t){if(!this.open||!this.closeOnOutsideClick)return;const i=t.target;this.contains(i)||this===i||(this.open=!1)}onActionClick(t){t.stopPropagation(),this.emit("action-click")}onCloseClick(){this.open=!1}};x.styles=[a,k],n([m({type:Boolean,reflect:!0,converter:v})],x.prototype,"open",void 0),n([m({reflect:!0})],x.prototype,"placement",void 0),n([m({reflect:!0,attribute:"action"})],x.prototype,"action",void 0),n([m({type:Boolean,reflect:!0,converter:v,attribute:"action-loading"})],x.prototype,"actionLoading",void 0),n([m({type:Boolean,reflect:!0,converter:v})],x.prototype,"closeable",void 0),n([m({reflect:!0,attribute:"close-icon"})],x.prototype,"closeIcon",void 0),n([m({type:Number,reflect:!0,attribute:"message-line"})],x.prototype,"messageLine",void 0),n([m({type:Number,reflect:!0,attribute:"auto-close-delay"})],x.prototype,"autoCloseDelay",void 0),n([m({type:Boolean,reflect:!0,attribute:"close-on-outside-click",converter:v})],x.prototype,"closeOnOutsideClick",void 0),n([m({type:Boolean,reflect:!0,converter:v})],x.prototype,"mobile",void 0),n([p("open")],x.prototype,"onOpenChange",null),n([p("placement",!0),p("messageLine",!0)],x.prototype,"onStackChange",null),x=n([r("mdui-snackbar")],x);const z=class{constructor(o){t(this,o),this.urOpen=i(this,"urOpen"),this.urOpened=i(this,"urOpened"),this.urClose=i(this,"urClose"),this.urClosed=i(this,"urClosed"),this.urActionClick=i(this,"urActionClick"),this.open=!1,this.placement="bottom",this.actionLoading=!1,this.closeable=!1,this.messageLine=1,this.autoCloseDelay=5e3,this.closeOnOutsideClick=!1,this.message="",this.backColor="rgb(var(--mdui-color-surface-container-highest))",this.fontColor="rgb(var(--mdui-color-on-surface))",this.actionColor="rgb(var(--mdui-color-primary))",this.radius="4px",this.zIndex="1000",this.handleOpen=()=>{this.urOpen.emit()},this.handleOpened=()=>{this.urOpened.emit()},this.handleClose=()=>{this.urClose.emit()},this.handleClosed=()=>{this.urClosed.emit()},this.handleActionClick=()=>{this.urActionClick.emit()}}render(){return o(e,{key:"d64f7d522bf180d864d1cbb5e37e85363e50ebbf"},o("mdui-snackbar",{key:"7f3545a84846f45b494045120b8000b7896c7668",open:this.open,placement:this.placement,action:this.action,"action-loading":this.actionLoading,closeable:this.closeable,"close-icon":this.closeIcon,"message-line":this.messageLine,"auto-close-delay":this.autoCloseDelay,"close-on-outside-click":this.closeOnOutsideClick,onOpen:this.handleOpen,onOpened:this.handleOpened,onClose:this.handleClose,onClosed:this.handleClosed,"onAction-click":this.handleActionClick,style:{"--z-index":this.zIndex,"--shape-corner":this.radius,"background-color":this.backColor,color:this.fontColor}},this.message,o("slot",{key:"59596333378d3278899820265bdcce3d77a04b9f"}),o("slot",{key:"8c4ca2a0c9462599faccecd11d84791a5c958f9e",name:"action",slot:"action"}),o("slot",{key:"91cb3f3e90d5d286f542082e3be434ae5f5cce07",name:"close-button",slot:"close-button"}),o("slot",{key:"653f7e2fd0d656af21a665d2574822b5adb0d764",name:"close-icon",slot:"close-icon"})))}};z.style=":host{display:contents}";export{z as ur_snackbar}
1
+ import{r as t,c as i,h as o,H as e}from"./p-DvddpEp7.js";import{a as s,c as a,_ as n,t as r,M as c,x as l}from"./p-zh2SzAzp.js";import{n as m}from"./p-BaDNPIJn.js";import{n as h}from"./p-DEJm_QN9.js";import{w as p}from"./p-BvhH6khE.js";import{g as d,s as u,a as b,b as f}from"./p-BczUih5b.js";import{b as g}from"./p-BFSQNFmS.js";import{b as v}from"./p-CRnISBPX.js";import{o as y}from"./p-CoOsTs05.js";import{n as w}from"./p-yaA8vKgL.js";import"./p-C9D7GpT5.js";import"./p-DJx6zFbF.js";import"./p-CDumGMAI.js";import"./p-Clv8wqOh.js";import"./p-BikcNKGt.js";import"./p-Dyrf810J.js";import"./p-DOqf3A_i.js";import"./p-B5jYRBDz.js";import"./p-DCmgagZL.js";import"./p-mNKFcBdT.js";import"./p-Bm8xqKw-.js";import"./p-BnvqNZ1a.js";import"./p-Bm926Ekb.js";import"./p-B8AYZymA.js";import"./p-9r9PNduz.js";import"./p-CDMnlt9S.js";import"./p-CinnKCwG.js";import"./p-CJV4FEOd.js";import"./p-Bp-zUewd.js";import"./p-D3sLxRC_.js";const k=s`:host{--shape-corner:var(--mdui-shape-corner-extra-small);--z-index:2400;position:fixed;z-index:var(--z-index);display:none;align-items:center;flex-wrap:wrap;border-radius:var(--shape-corner);transform:scaleY(0);transition:transform 0s var(--mdui-motion-easing-linear) var(--mdui-motion-duration-short4);min-width:20rem;max-width:36rem;padding:.25rem 0;box-shadow:var(--mdui-elevation-level3);background-color:rgb(var(--mdui-color-inverse-surface));color:rgb(var(--mdui-color-inverse-on-surface));font-size:var(--mdui-typescale-body-medium-size);font-weight:var(--mdui-typescale-body-medium-weight);letter-spacing:var(--mdui-typescale-body-medium-tracking);line-height:var(--mdui-typescale-body-medium-line-height)}:host([placement^=top]){transform-origin:top}:host([placement^=bottom]){transform-origin:bottom}:host([placement=bottom-start]:not([mobile])),:host([placement=top-start]:not([mobile])){left:1rem}:host([placement=bottom-end]:not([mobile])),:host([placement=top-end]:not([mobile])){right:1rem}:host([placement=bottom]:not([mobile])),:host([placement=top]:not([mobile])){left:50%;transform:scaleY(0) translateX(-50%)}:host([mobile]){min-width:0;left:1rem;right:1rem}:host([open]){transform:scaleY(1);transition:top var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard),bottom var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard),transform var(--mdui-motion-duration-medium4) var(--mdui-motion-easing-emphasized-decelerate)}:host([placement=bottom][open]:not([mobile])),:host([placement=top][open]:not([mobile])){transform:scaleY(1) translateX(-50%)}.message{display:block;margin:.625rem 1rem}:host([message-line='1']) .message{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host([message-line='2']) .message{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:2}.action-group{display:flex;align-items:center;margin-left:auto;padding-right:.5rem}.action,.close-button{display:inline-flex;align-items:center;justify-content:center}.action{color:rgb(var(--mdui-color-inverse-primary));font-size:var(--mdui-typescale-label-large-size);font-weight:var(--mdui-typescale-label-large-weight);letter-spacing:var(--mdui-typescale-label-large-tracking)}.action mdui-button,::slotted(mdui-button[slot=action][variant=outlined]),::slotted(mdui-button[slot=action][variant=text]){color:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;--mdui-comp-ripple-state-layer-color:var(--mdui-color-inverse-primary)}.action mdui-button::part(button){padding:0 .5rem}.close-button{margin:0 -.25rem 0 .25rem;font-size:1.5rem;color:rgb(var(--mdui-color-inverse-on-surface))}.close-button mdui-button-icon,::slotted(mdui-button-icon[slot=close-button][variant=outlined]),::slotted(mdui-button-icon[slot=close-button][variant=standard]){font-size:inherit;color:inherit;--mdui-comp-ripple-state-layer-color:var(--mdui-color-inverse-on-surface)}.close-button .i,::slotted([slot=close-icon]){font-size:inherit}`,j=[];let C=!1,x=class extends c{constructor(){super(),this.open=!1,this.placement="bottom",this.actionLoading=!1,this.closeable=!1,this.autoCloseDelay=5e3,this.closeOnOutsideClick=!1,this.mobile=!1,this.onDocumentClick=this.onDocumentClick.bind(this)}async onOpenChange(){const t=d(this,"linear"),i=Array.from(this.renderRoot.querySelectorAll(".message, .action-group"));if(this.open){const o=this.hasUpdated;if(o||await this.updateComplete,o&&!this.emit("open",{cancelable:!0}))return;window.clearTimeout(this.closeTimeout),this.autoCloseDelay&&(this.closeTimeout=window.setTimeout((()=>{this.open=!1}),this.autoCloseDelay)),this.style.display="flex",await Promise.all([u(this),...i.map((t=>u(t)))]),j.push({height:this.clientHeight,snackbar:this}),await this.reorderStack(this);const e=b(this,"medium4");return await Promise.all([f(this,[{opacity:0},{opacity:1,offset:.5},{opacity:1}],{duration:o?e:0,easing:t,fill:"forwards"}),...i.map((i=>f(i,[{opacity:0},{opacity:0,offset:.2},{opacity:1,offset:.8},{opacity:1}],{duration:o?e:0,easing:t})))]),void(o&&this.emit("opened"))}if(!this.open&&this.hasUpdated){if(!this.emit("close",{cancelable:!0}))return;window.clearTimeout(this.closeTimeout),await Promise.all([u(this),...i.map((t=>u(t)))]);const o=b(this,"short4");await Promise.all([f(this,[{opacity:1},{opacity:0}],{duration:o,easing:t,fill:"forwards"}),...i.map((i=>f(i,[{opacity:1},{opacity:0,offset:.75},{opacity:0}],{duration:o,easing:t})))]),this.style.display="none",this.emit("closed");const e=j.findIndex((t=>t.snackbar===this));return j.splice(e,1),void(j[e]&&await this.reorderStack(j[e].snackbar))}}async onStackChange(){await this.reorderStack(this)}connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.onDocumentClick),this.mobile=g().down("sm"),this.observeResize=y(document.documentElement,(async()=>{const t=g().down("sm");this.mobile!==t&&(this.mobile=t,C||(C=!0,await this.reorderStack(),C=!1))}))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.onDocumentClick),window.clearTimeout(this.closeTimeout),this.open&&(this.open=!1),this.observeResize?.unobserve()}render(){return l`<slot part="message" class="message"></slot><div class="action-group"><slot name="action" part="action" class="action" @click="${this.onActionClick}">${this.action?l`<mdui-button variant="text" loading="${this.actionLoading}">${this.action}</mdui-button>`:w}</slot>${h(this.closeable,(()=>l`<slot name="close-button" part="close-button" class="close-button" @click="${this.onCloseClick}"><mdui-button-icon><slot name="close-icon" part="close-icon">${this.closeIcon?l`<mdui-icon name="${this.closeIcon}" class="i"></mdui-icon>`:l`<mdui-icon-clear class="i"></mdui-icon-clear>`}</slot></mdui-button-icon></slot>`))}</div>`}async reorderStack(t){for(let i=t?j.findIndex((i=>i.snackbar===t)):0;i<j.length;i++){const t=j[i].snackbar;this.mobile?["top","bottom"].forEach((o=>{if(t.placement.startsWith(o)){const e=j.filter(((t,e)=>e<i&&t.snackbar.placement.startsWith(o))),s=e.reduce(((t,i)=>t+i.height),0);t.style[o]=`calc(${s}px + ${e.length+1}rem)`,t.style["top"===o?"bottom":"top"]="auto"}})):["top","top-start","top-end","bottom","bottom-start","bottom-end"].forEach((o=>{if(t.placement===o){const e=j.filter(((t,e)=>e<i&&t.snackbar.placement===o)),s=e.reduce(((t,i)=>t+i.height),0);t.style[o.startsWith("top")?"top":"bottom"]=`calc(${s}px + ${e.length+1}rem)`,t.style[o.startsWith("top")?"bottom":"top"]="auto"}}))}}onDocumentClick(t){if(!this.open||!this.closeOnOutsideClick)return;const i=t.target;this.contains(i)||this===i||(this.open=!1)}onActionClick(t){t.stopPropagation(),this.emit("action-click")}onCloseClick(){this.open=!1}};x.styles=[a,k],n([m({type:Boolean,reflect:!0,converter:v})],x.prototype,"open",void 0),n([m({reflect:!0})],x.prototype,"placement",void 0),n([m({reflect:!0,attribute:"action"})],x.prototype,"action",void 0),n([m({type:Boolean,reflect:!0,converter:v,attribute:"action-loading"})],x.prototype,"actionLoading",void 0),n([m({type:Boolean,reflect:!0,converter:v})],x.prototype,"closeable",void 0),n([m({reflect:!0,attribute:"close-icon"})],x.prototype,"closeIcon",void 0),n([m({type:Number,reflect:!0,attribute:"message-line"})],x.prototype,"messageLine",void 0),n([m({type:Number,reflect:!0,attribute:"auto-close-delay"})],x.prototype,"autoCloseDelay",void 0),n([m({type:Boolean,reflect:!0,attribute:"close-on-outside-click",converter:v})],x.prototype,"closeOnOutsideClick",void 0),n([m({type:Boolean,reflect:!0,converter:v})],x.prototype,"mobile",void 0),n([p("open")],x.prototype,"onOpenChange",null),n([p("placement",!0),p("messageLine",!0)],x.prototype,"onStackChange",null),x=n([r("mdui-snackbar")],x);const z=class{constructor(o){t(this,o),this.urOpen=i(this,"urOpen"),this.urOpened=i(this,"urOpened"),this.urClose=i(this,"urClose"),this.urClosed=i(this,"urClosed"),this.urActionClick=i(this,"urActionClick"),this.open=!1,this.placement="bottom",this.actionLoading=!1,this.closeable=!1,this.messageLine=1,this.autoCloseDelay=5e3,this.closeOnOutsideClick=!1,this.message="",this.backColor="rgb(var(--mdui-color-surface-container-highest))",this.fontColor="rgb(var(--mdui-color-on-surface))",this.actionColor="rgb(var(--mdui-color-primary))",this.radius="4px",this.zIndex="1000",this.handleOpen=()=>{this.urOpen.emit()},this.handleOpened=()=>{this.urOpened.emit()},this.handleClose=()=>{this.urClose.emit()},this.handleClosed=()=>{this.urClosed.emit()},this.handleActionClick=()=>{this.urActionClick.emit()}}render(){return o(e,{key:"ffb037f37e00a20933d13b5df681705c3b0f207b"},o("mdui-snackbar",{key:"85b83426c89374deb849f820f15b4cd8b492f28b",open:this.open,placement:this.placement,action:this.action,"action-loading":this.actionLoading,closeable:this.closeable,"close-icon":this.closeIcon,"message-line":this.messageLine,"auto-close-delay":this.autoCloseDelay,"close-on-outside-click":this.closeOnOutsideClick,onOpen:this.handleOpen,onOpened:this.handleOpened,onClose:this.handleClose,onClosed:this.handleClosed,"onAction-click":this.handleActionClick,style:{"--z-index":this.zIndex,"--shape-corner":this.radius,"background-color":this.backColor,color:this.fontColor}},this.message,o("slot",{key:"c2551a3a53c0f5824d7330dfaf5bbe8fd0145853"}),o("slot",{key:"1be53de168a3795638ac73fc3ede76dc62cbdd15",name:"action",slot:"action"}),o("slot",{key:"e4f5591dd91148f7719c91738375ab18d0136aea",name:"close-button",slot:"close-button"}),o("slot",{key:"c2ec307a02be37dc6a21662ad626c870b084d89b",name:"close-icon",slot:"close-icon"})))}};z.style=":host{display:contents}";export{z as ur_snackbar}
@@ -1 +1 @@
1
- import{r as t,c as s,h as a,H as e,a as i}from"./p-DvddpEp7.js";import"./p-1e41d132.entry.js";import"./p-da9fd305.entry.js";import"./p-9e19f4e8.entry.js";import"./p-CDumGMAI.js";import"./p-zh2SzAzp.js";import"./p-BaDNPIJn.js";import"./p-DCmgagZL.js";import"./p-BikcNKGt.js";import"./p-CRnISBPX.js";import"./p-yaA8vKgL.js";import"./p-Clv8wqOh.js";import"./p-Bp-zUewd.js";import"./p-mNKFcBdT.js";import"./p-Bm8xqKw-.js";import"./p-BnvqNZ1a.js";import"./p-Bm926Ekb.js";import"./p-B8AYZymA.js";import"./p-9r9PNduz.js";import"./p-CDMnlt9S.js";import"./p-CinnKCwG.js";import"./p-CJV4FEOd.js";import"./p-Dyrf810J.js";import"./p-D3sLxRC_.js";import"./p-DJx6zFbF.js";import"./p-BvhH6khE.js";const c=class{constructor(a){t(this,a),this.readChapter=s(this,"readChapter"),this.deleteChapter=s(this,"deleteChapter"),this.isBound=!1,this.isStoryCompleted=!1,this.likes=0,this.views=0,this.isOwner=!1,this.readingDuration=0,this.readChapterText="Read",this.likesText="Likes",this.viewsText="Views",this.readingDurationText="Reading Duration",this.locale="en",this.isLocked=!1,this.isLastChapter=!1,this.loading=!1,this.onReadChapter=t=>{this.readChapter.emit(t)},this.onChapterDelete=(t,s)=>{this.deleteChapter.emit({chapterId:t,chapterTitle:s})}}render(){return a(e,{key:"45beebc5e61f8a2aaebc5b270a0e3b192cb76cbb"},a("div",{key:"4ec053e9fa3442fa5b3386533c52453e8bfbd6c6",class:"chapter-container"},a("div",{key:"a646560862e519e854964408e7d4c6a4a806918b",class:"chapter "+(this.isBound?"bound":"")},a("div",{key:"c84dfa94322e608edcc5984add5c956ced43b2f1",class:"chapter-card"},a("div",{key:"4f30e776a18f2a2424016e0fb6d399ef67ccf15c",class:"top-hld"},a("div",{key:"cc32e1c180d8eb22f1baebae52ea8cdb67a75124",class:"txt-hld"},a("span",{key:"643518e56ca470a122d2bc0199b98b0562703430",class:"chapter-number"},this.chapterNumber),a("span",{key:"6ff6cd1788b12ff13f2d6df76a4faa8ee262444f",class:"main-holder"},a("span",{key:"f79dbd4cfa4a91b9633a79efeb81afe159a3061e",class:"chapter-title",onClick:()=>this.onReadChapter(this.chapterId)},this.chapterTitle),a("span",{key:"d40bfa4e487c8ad2277e0cc0614bf473961f9ae8",class:"story-stats"},this.likes>0&&a("span",{key:"71e592c30bdc6bb31dc882777c67bc08f8132b94",class:"story-stat"},a("span",{key:"b7e83c9cc446785c295666a32a1dae3db2271d65",class:"story-stat-value"},this.likes),a("span",{key:"45024e66f2afccb6c890403cfc59e133d9204f9a",class:"story-stat-label"},this.likesText)),this.likes>0&&a("span",{key:"35f11b5f9a64e2e4264cebb175906077c2951a1c",class:"story-stat-separator"},"·"),this.views>0&&a("span",{key:"4af2afbd8a45ccb2701a1fe78568217755dc54ea",class:"story-stat"},a("span",{key:"3ae4340e258d7cb44fa98b49c47d091d0f40ded1",class:"story-stat-value"},this.views),a("span",{key:"ec5f510cbc74a732be07e095ad0895fa1919c5a7",class:"story-stat-label"},this.viewsText)),this.views>0&&a("span",{key:"4294082939e1008e1cc79986cbab7c559f5597c8",class:"story-stat-separator"},"·"),a("span",{key:"5ca228695f3b105fb023b634555fe53e89e33141",class:"story-stat"},a("span",{key:"b779a56648cd3412e8108c4ab77aedbf03814739",class:"story-stat-value"},-1===this.readingDuration?"N/A":this.readingDuration),a("span",{key:"aba624fee3d6760eba4f895f219f06a36fdc9514",class:"story-stat-label"},this.readingDurationText))),a("ur-time-ago",{key:"5a6d72785f91a724bd3162081de231d25ecd2ecd",class:"when",date:this.createdAt,locale:this.locale}))))),a("div",{key:"cbca848e0df3e87ae1ec2109a66c4ba0c01f1fc4",class:"action-buttons"},this.isOwner&&a("ur-button",{key:"7ebb4e847f0aef4acf43bd2a5cec79ca81160169",class:"action-button",disabled:this.loading,variant:"text",onClick:()=>this.onReadChapter(this.chapterId)},this.readChapterText),!this.isLocked&&!this.isOwner&&a("ur-button",{key:"ed4b8510cd41150700ddc37078c87570a70302f6",class:"action-button",disabled:this.loading,variant:"text",onClick:()=>this.onReadChapter(this.chapterId)},this.readChapterText),this.isOwner&&!this.isStoryCompleted&&this.isLastChapter&&a("ur-button-icon",{key:"7ee29b0f2e29f7ecf5aeb369724ce3a50021ca00",fontColor:"rgb(var(--ur-color-primary))",class:"menu-button",icon:"delete",onClick:()=>this.onChapterDelete(this.chapterId,this.chapterTitle)}),this.isLocked&&a("ur-button-icon",{key:"e67b3a9ec612e976a4fc882e4b25ada3f9f1d23b",disabled:!0,class:"menu-button",icon:"lock"})))))}get el(){return i(this)}};c.style=":host{display:block;--ur-color-on-background:var(--mdui-color-on-background);--ur-color-primary:var(--mdui-color-primary)}:host .chapter{display:flex}:host .chapter-card{flex:1}:host .main-holder{gap:4px;display:flex;flex-direction:column}:host .txt-hld{display:flex;flex-direction:row;font-size:16px;gap:12px}:host .story-stats{font-size:12px;line-height:1.4}:host .story-stat{display:inline}:host .story-stat-label{font-weight:700}:host .story-stat-value{font-weight:400;margin-right:4px}:host .story-stat-separator{margin:0 4px}:host .chapter-number{border-radius:50%;height:40px;width:40px;min-width:40px;display:flex;align-items:center;justify-content:center;border:1px solid rgb(var(--ur-color-on-background))}:host .chapter-title{font-size:16px;display:block;margin-top:13px;line-height:16px;cursor:pointer}:host .chapter-title:hover{text-decoration:underline}:host .when{font-weight:700;font-size:9px;text-transform:uppercase;opacity:0.3}:host .action-buttons{display:flex;flex-direction:row;gap:4px}.write-alternative-version{margin-top:8px}";export{c as ur_chapter_item}
1
+ import{r as t,c as s,h as a,H as e,a as i}from"./p-DvddpEp7.js";import"./p-a07f78d9.entry.js";import"./p-3d11160e.entry.js";import"./p-cd1dcff4.entry.js";import"./p-CDumGMAI.js";import"./p-zh2SzAzp.js";import"./p-BaDNPIJn.js";import"./p-DCmgagZL.js";import"./p-BikcNKGt.js";import"./p-CRnISBPX.js";import"./p-yaA8vKgL.js";import"./p-Clv8wqOh.js";import"./p-Bp-zUewd.js";import"./p-mNKFcBdT.js";import"./p-Bm8xqKw-.js";import"./p-BnvqNZ1a.js";import"./p-Bm926Ekb.js";import"./p-B8AYZymA.js";import"./p-9r9PNduz.js";import"./p-CDMnlt9S.js";import"./p-CinnKCwG.js";import"./p-CJV4FEOd.js";import"./p-Dyrf810J.js";import"./p-D3sLxRC_.js";import"./p-DJx6zFbF.js";import"./p-BvhH6khE.js";const c=class{constructor(a){t(this,a),this.readChapter=s(this,"readChapter"),this.deleteChapter=s(this,"deleteChapter"),this.isBound=!1,this.isStoryCompleted=!1,this.likes=0,this.views=0,this.isOwner=!1,this.readingDuration=0,this.readChapterText="Read",this.likesText="Likes",this.viewsText="Views",this.readingDurationText="Reading Duration",this.locale="en",this.isLocked=!1,this.isLastChapter=!1,this.loading=!1,this.onReadChapter=t=>{this.readChapter.emit(t)},this.onChapterDelete=(t,s)=>{this.deleteChapter.emit({chapterId:t,chapterTitle:s})}}render(){return a(e,{key:"f90c3f66435e92f8fde8738d8f58a06dc42ff134"},a("div",{key:"05fed758df81d762d9d8410c6e0615bf4532e537",class:"chapter-container"},a("div",{key:"714a9f5bcfbbac0eeda10c36d8c8b3f2fcae1a92",class:"chapter "+(this.isBound?"bound":"")},a("div",{key:"5b5bdc3908c4707cdcd0c7c9f26a2879b8be30e2",class:"chapter-card"},a("div",{key:"58fc7e60048d71f953db5667ebf172b0a1424f69",class:"top-hld"},a("div",{key:"e3fbdb9944919246d75e469f2fd7fb7f5b4c36b8",class:"txt-hld"},a("span",{key:"a1ad83de4204c8bb23921591f90a142c7a668056",class:"chapter-number"},this.chapterNumber),a("span",{key:"92dd28796b2df95eb09d8c2d74db022b213fb730",class:"main-holder"},a("span",{key:"69c118590986430dcf349f71052ca68c7d5f3645",class:"chapter-title",onClick:()=>this.onReadChapter(this.chapterId)},this.chapterTitle),a("span",{key:"4bcb5459ca2b6c0c8542ffce4c930c9cc46e3090",class:"story-stats"},this.likes>0&&a("span",{key:"28ce8ffc11b1e2d00435917ae9e342dc08e642c9",class:"story-stat"},a("span",{key:"0e9cfb7ec95339ea1cffef348f8b319371d57c56",class:"story-stat-value"},this.likes),a("span",{key:"fcc6a389bbc9efef4ae52c6b5d8a4aca3282eb2d",class:"story-stat-label"},this.likesText)),this.likes>0&&a("span",{key:"e0aec9eb5083ddc4cacd460780aed40d86e87df6",class:"story-stat-separator"},"·"),this.views>0&&a("span",{key:"58886d2ebe07b87ed86fa14a306aeffc5a1d10f4",class:"story-stat"},a("span",{key:"768b0742715af745024b7733393f64c2a4c1c1c1",class:"story-stat-value"},this.views),a("span",{key:"f72422cd7c15452c5df8391d60c54d832c4e8fe4",class:"story-stat-label"},this.viewsText)),this.views>0&&a("span",{key:"7519ae3d5012286db128a0f5152c154748e9a826",class:"story-stat-separator"},"·"),a("span",{key:"1a38075c0658632dbe2921be48ffe2efd5dfca8c",class:"story-stat"},a("span",{key:"6661717b5a859441dd44fa6d7b4ca36444813b24",class:"story-stat-value"},-1===this.readingDuration?"N/A":this.readingDuration),a("span",{key:"010b7d820ef82ede24034fa96adadba10219c437",class:"story-stat-label"},this.readingDurationText))),a("ur-time-ago",{key:"cbfb7631bf37a6fdb5a3719e94213b2c7cd92f55",class:"when",date:this.createdAt,locale:this.locale}))))),a("div",{key:"b66f8da5b8fef9ff379b9cc7a3c5c33109d9ecf6",class:"action-buttons"},this.isOwner&&a("ur-button",{key:"d6ff29861ad50fdbf3aebe6809f11397863bc407",class:"action-button",disabled:this.loading,variant:"text",onClick:()=>this.onReadChapter(this.chapterId)},this.readChapterText),!this.isLocked&&!this.isOwner&&a("ur-button",{key:"f2da39f0780472edb327e82d6db3ce0c803e2e37",class:"action-button",disabled:this.loading,variant:"text",onClick:()=>this.onReadChapter(this.chapterId)},this.readChapterText),this.isOwner&&!this.isStoryCompleted&&this.isLastChapter&&a("ur-button-icon",{key:"d02aa74dd1b2f0ce49d3ae7985a8d9b9544bbb82",fontColor:"rgb(var(--ur-color-primary))",class:"menu-button",icon:"delete",onClick:()=>this.onChapterDelete(this.chapterId,this.chapterTitle)}),this.isLocked&&a("ur-button-icon",{key:"26d4b1f29c3a55433b92dd1fd2475c23c911f4d3",disabled:!0,class:"menu-button",icon:"lock"})))))}get el(){return i(this)}};c.style=":host{display:block;--ur-color-on-background:var(--mdui-color-on-background);--ur-color-primary:var(--mdui-color-primary)}:host .chapter{display:flex}:host .chapter-card{flex:1}:host .main-holder{gap:4px;display:flex;flex-direction:column}:host .txt-hld{display:flex;flex-direction:row;font-size:16px;gap:12px}:host .story-stats{font-size:12px;line-height:1.4}:host .story-stat{display:inline}:host .story-stat-label{font-weight:700}:host .story-stat-value{font-weight:400;margin-right:4px}:host .story-stat-separator{margin:0 4px}:host .chapter-number{border-radius:50%;height:40px;width:40px;min-width:40px;display:flex;align-items:center;justify-content:center;border:1px solid rgb(var(--ur-color-on-background))}:host .chapter-title{font-size:16px;display:block;margin-top:13px;line-height:16px;cursor:pointer}:host .chapter-title:hover{text-decoration:underline}:host .when{font-weight:700;font-size:9px;text-transform:uppercase;opacity:0.3}:host .action-buttons{display:flex;flex-direction:row;gap:4px}.write-alternative-version{margin-top:8px}";export{c as ur_chapter_item}
@@ -1 +1 @@
1
- import{r as t,c as i,h as e,H as o}from"./p-DvddpEp7.js";import"./p-9e19f4e8.entry.js";import"./p-93354735.entry.js";import"./p-4e2e94b4.entry.js";import"./p-e659d21c.entry.js";import"./p-981382ab.entry.js";import"./p-CWDXcl2f.js";import"./p-zh2SzAzp.js";import"./p-BaDNPIJn.js";import"./p-DCmgagZL.js";import"./p-BikcNKGt.js";import"./p-Bm926Ekb.js";import"./p-BnvqNZ1a.js";import"./p-mNKFcBdT.js";import"./p-BvhH6khE.js";import"./p-CRnISBPX.js";import"./p-yaA8vKgL.js";import"./p-K4MXteSR.js";import"./p-B5jYRBDz.js";import"./p-Clv8wqOh.js";import"./p-Bp-zUewd.js";import"./p-C9D7GpT5.js";import"./p-Bm8xqKw-.js";import"./p-B8AYZymA.js";import"./p-9r9PNduz.js";import"./p-CDMnlt9S.js";import"./p-CinnKCwG.js";import"./p-CJV4FEOd.js";import"./p-Dyrf810J.js";import"./p-D3sLxRC_.js";import"./p-DieZm0eP.js";import"./p-1e41d132.entry.js";import"./p-CDumGMAI.js";import"./p-da9fd305.entry.js";import"./p-DJx6zFbF.js";import"./p-DLgdsY8g.js";import"./p-68391a31.entry.js";import"./p-BmqCYfl3.js";import"./p-xjvHLpY2.js";const r=class{constructor(e){t(this,e),this.attachStoryEvent=i(this,"attachStoryEvent"),this.readStoryEvent=i(this,"readStoryEvent"),this.writeStoryEvent=i(this,"writeStoryEvent"),this.buyStoryEvent=i(this,"buyStoryEvent"),this.editInfoClick=i(this,"editInfoClick"),this.visibilityChangeEvent=i(this,"visibilityChangeEvent"),this.completeStoryEvent=i(this,"completeStoryEvent"),this.revertStoryEvent=i(this,"revertStoryEvent"),this.toggleLibraryEvent=i(this,"toggleLibraryEvent"),this.novlTitle="This is long story title",this.completeText="Complete",this.ongoingText="Ongoing",this.deviceSize="large",this.likesText="Likes",this.viewsText="Views",this.readingDuration="1min",this.readingDurationText="Reading Duration",this.description="Description",this.languages="English",this.genres="Action, Adventure",this.literatureTypes="Novel",this.showLessText="Show less",this.showMoreText="Show more...",this.readStoryText="Read story",this.writeStoryText="Start writing",this.descriptionText="Description",this.chapterListText="Chapters",this.buyStoryText="Buy for",this.addToLibraryText="Manage Collections",this.isUserLoggedIn=!1,this.novlPurchasedAt="",this.isOwner=!1,this.attachRequestStatus="idle",this.attachStoryText="Attach to page",this.cancelRequestText="Cancel Request",this.requestPendingText="Request Pending",this.detachFromPageText="Detach from page",this.attachedToPageText="Attached to page",this.attachButtonHoverState="default",this.visibility="public",this.visibilityPublicText="Public story",this.visibilityPrivateText="Private story",this.completeStoryText="Complete story",this.revertStoryText="Revert to ongoing",this.expanded=!1,this.showPublishedButton=!0,this.skeleton=!1,this.showEditInfoButton=!1,this.editInfoButtonText="Edit story info"}onReadStory(){this.readStoryEvent.emit()}onAttachStory(t){this.attachStoryEvent.emit({status:t})}onWriteStory(){this.writeStoryEvent.emit()}onBuyStory(){this.buyStoryEvent.emit()}onChangeVisibility(){this.visibility="public"===this.visibility?"private":"public",this.visibilityChangeEvent.emit(this.visibility)}onCompleteStory(){this.completeStoryEvent.emit()}onRevertStory(){this.revertStoryEvent.emit()}onToggleLibrary(){this.toggleLibraryEvent.emit()}onEditInfoClick(){this.editInfoClick.emit()}async reset(){this.expanded=!1}handleAttachStoryClicked(){"pending"===this.attachRequestStatus?this.onAttachStory("canceled"):"accepted"===this.attachRequestStatus?this.onAttachStory("leave"):"idle"!==this.attachRequestStatus&&"rejected"!==this.attachRequestStatus||this.onAttachStory("pending")}getAttachButtonText(){switch(this.attachRequestStatus){case"pending":return"hover"===this.attachButtonHoverState?this.cancelRequestText:this.requestPendingText;case"accepted":return"hover"===this.attachButtonHoverState?this.detachFromPageText:this.attachedToPageText;default:return this.attachStoryText}}render(){return e(o,{key:"3032ca7d67078f7c8f567ea141fd637329a73213"},"large"===this.deviceSize&&e("div",{key:"d9a20474951922bcb56d7b9891b60df7b10cbba7",class:"cover-total",style:{backgroundImage:`url(${this.coverImage})`}},e("div",{key:"4146414ae5bf0a0cef323b6d9b046d442a08179d",class:"cover-blur-overlay"}),e("div",{key:"0c3258419babe21a7cbe890104415736a319f400",class:"cover-gradient-overlay"})),e("div",{key:"aaa1cfcb7ce9ce89349e2ea2f09616e33614d54b",class:"overview "+("small"===this.deviceSize?"small-device":"large-device")},e("div",{key:"66d3648eb9e9f82841157ee3a470dd29ffab8394",class:"cover"},e("div",{key:"b4b653d0563ff1d69b7b3eb2adb34551d69eaa40",class:"inner-cover-hld"},e("div",{key:"26bad038a046160766e6af05d90aa30196507bac",class:"inner-cover"},this.skeleton?e("div",{class:"cover-skeleton loading"}):e("img",{class:"cover-image",src:this.coverImage,alt:"Novl Cover"})),!this.skeleton&&this.isOwner&&this.renderVisibilitySwitch()),e("slot",{key:"88ffd63cda358e424604d2dc11441b15ae30807d",name:"ad-slot-left"})),e("div",{key:"846349657eebe8520824d256afbd6c8158b926e1",class:"novl-content"},e("div",{key:"916a052486b503398b1f6668f2d4e2d9833a6d59",class:"main-content"},e("div",{key:"37780180f8b10d827102497105b4c4ea05661d15",class:"upper-hld"},this.renderStatusChips(),e("div",{key:"0463645058f2790b451eed72ed51ff618030932b",class:"upper-right"},this.renderEditInfoButton())),e("div",{key:"621231e2f56f33a96d0fbd478c06a50076069e98",class:"main-content-inner"},e("div",{key:"4f7099da53bf193fa442b227ff3e05956446247b",class:"title-hld"},this.skeleton?e("h1",{class:"title-text title-skeleton loading"}," "):e("h1",{class:"title-text"},this.novlTitle))),this.skeleton?e("span",{class:"story-stats stats-skeleton loading"}," "):e("span",{class:"story-stats"},this.likes>0&&e("span",{class:"story-stat"},e("span",{class:"story-stat-value"},this.likes),e("span",{class:"story-stat-label"},this.likesText)),this.likes>0&&e("span",{class:"story-stat-separator"},"·"),this.views>0&&e("span",{class:"story-stat"},e("span",{class:"story-stat-value"},this.views),e("span",{class:"story-stat-label"},this.viewsText)),this.views>0&&e("span",{class:"story-stat-separator"},"·"),e("span",{class:"story-stat"},e("span",{class:"story-stat-value"},"-1"===this.readingDuration?"N/A":this.readingDuration),e("span",{class:"story-stat-label"},this.readingDurationText))),e("div",{key:"578cb3bc90411da0e310074a3b06f4673b63b03f",class:"novl-details"},this.skeleton?[e("ur-chip",{skeleton:!0,size:"28px",class:"info-chip"}),e("ur-chip",{skeleton:!0,size:"28px",class:"info-chip"}),e("ur-chip",{skeleton:!0,size:"28px",class:"info-chip"}),e("ur-chip",{skeleton:!0,size:"28px",class:"info-chip"})]:[...this.languages.split(",").map((t=>e("ur-chip",{fontColor:"rgb(var(--ur-color-on-surface-lite))",backColor:"rgb(var(--ur-color-surface-container-high))",size:"28px",class:"info-chip",clickable:!1,label:t}))),...this.literatureTypes.split(",").map((t=>e("ur-chip",{fontColor:"rgb(var(--ur-color-on-surface-lite))",backColor:"rgb(var(--ur-color-surface-container-high))",size:"28px",class:"info-chip",clickable:!1,label:t}))),...this.genres.split(",").map((t=>e("ur-chip",{fontColor:"rgb(var(--ur-color-on-surface-lite))",backColor:"rgb(var(--ur-color-surface-container-high))",size:"28px",class:"info-chip",clickable:!1,label:t})))]),e("div",{key:"2ffd9162ff8a92eb00270ba694fdc26f3a9ef389",class:"actions-holder"},this.skeleton?[e("ur-button",{skeleton:!0,class:"summary-action","full-width":"large"!==this.deviceSize}),e("ur-button",{skeleton:!0,class:"summary-action"})]:[this.hasBranches&&e("ur-button",{class:"summary-action",variant:"filled","full-width":"large"!==this.deviceSize,onClick:()=>this.onReadStory()},this.readStoryText),this.writeEnabled&&!this.hasBranches&&e("ur-button",{class:"summary-action",variant:"filled","full-width":"large"!==this.deviceSize,onClick:()=>this.onWriteStory()},this.writeStoryText),!this.skeleton&&this.isOwner&&this.attachRequestStatus&&e("ur-button",{class:"summary-action",variant:"tonal","full-width":"large"!==this.deviceSize,onMouseEnter:()=>this.attachButtonHoverState="hover",onMouseLeave:()=>this.attachButtonHoverState="default",onClick:()=>this.handleAttachStoryClicked()},this.getAttachButtonText()),!this.skeleton&&this.isOwner&&!this.novlPaid&&(this.storyCompleteStatus?e("ur-button",{class:"summary-action",variant:"tonal","full-width":"large"!==this.deviceSize,onClick:()=>this.onRevertStory()},this.revertStoryText):e("ur-button",{class:"summary-action",variant:"tonal","full-width":"large"!==this.deviceSize,onClick:()=>this.onCompleteStory(),disabled:!this.showPublishedButton},this.completeStoryText)),this.novlPaid&&(this.novlPurchasedAt?e("ur-button",{class:"summary-action",variant:"filled",fullWidth:!0,onClick:()=>this.onReadStory()},this.readStoryText):e("ur-button",{class:"summary-action",variant:"filled",fullWidth:!0,onClick:()=>this.onBuyStory()},this.buyStoryText," ",e("span",{class:"buy-price"},this.novlPrice))),this.isUserLoggedIn&&e("ur-button",{class:"summary-action",icon:"collections_bookmark--outlined",variant:"text",onClick:()=>this.onToggleLibrary()},this.addToLibraryText)].filter(Boolean))),e("div",{key:"999ee1ba97d5f9ad1cd2d7b204bf9225e583ce0d",class:"description"},e("div",{key:"d820a8af26ad64ebfa179f411b4f3f8c200a50b4",class:"description-header"},this.skeleton?e("span",{class:"label label-skeleton loading"}," "):e("span",{class:"label"},this.descriptionText)),this.skeleton?e("ur-long-description",{skeleton:!0}):e("slot",{name:"description"})),e("div",{key:"2bda95cdda7834d43405da214737c7ac772db555",class:"owner-holder"},this.skeleton?[e("ur-profile-card",{skeleton:!0,profileType:"user",avatarSize:"40px"}),e("ur-profile-card",{skeleton:!0,profileType:"page",avatarSize:"40px"})]:[e("slot",{name:"owner"}),e("slot",{name:"owner-page"})]),e("slot",{key:"3791090d3d2f747f9a4117d94db9398ef2cc158b",name:"chapters"})),e("div",{key:"b8dd8365eb2fefaaad518b5ff85f0c58ee111d85",class:"ad-space"},e("slot",{key:"f2da3ba35f3ed219863ea30ebfc589475eacba70",name:"ad-slot-right"}))))}renderStatusChips(){return e("div",{class:"status "+("small"===this.deviceSize?"small-device":"large-device")},e("ur-chip",this.skeleton?{skeleton:!0,size:"32px",class:"status-chip",radius:"50px",border:"2px"}:this.storyCompleteStatus?{fontColor:"#1A5100",backColor:"#C6F4D0",radius:"50px",border:"2px",size:"32px",class:"status-chip",clickable:!1,label:this.completeText}:{fontColor:"rgb(var(--ur-color-primary))",backColor:"rgb(var(--ur-color-primary-container))",size:"32px",class:"status-chip",border:"2px",radius:"50px",clickable:!1,label:this.ongoingText}))}renderVisibilitySwitch(){return e("div",{class:"visibility-toggle"},e("ur-switch",{checked:"public"===this.visibility,checkedIcon:"public",uncheckedIcon:"lock",onSwitchChange:()=>this.onChangeVisibility()}),e("span",{class:"visibility-label"},"public"===this.visibility?this.visibilityPublicText:this.visibilityPrivateText))}renderEditInfoButton(){return console.log("renderEditInfoButton called:",{isOwner:this.isOwner,showEditInfoButton:this.showEditInfoButton,willRender:this.isOwner&&this.showEditInfoButton}),this.isOwner&&this.showEditInfoButton?e("ur-tooltip",{colorScheme:"dark",placement:"left",content:this.editInfoButtonText},e("ur-button-icon",{buttonHeight:"36px",buttonWidth:"36px",class:"edit-info-button",icon:"edit",onClick:()=>this.onEditInfoClick()})):null}};r.style=":host{--ur-color-background:var(--mdui-color-background);--ur-color-on-background:var(--mdui-color-on-background);--ur-color-on-complete-surface:#1a5100;--ur-color-complete-surface:red;--ur-color-primary:var(--mdui-color-primary);--ur-color-primary-container:var(--mdui-color-primary-container);--ur-color-on-surface-lite:var(--mdui-color-on-surface-lite);--ur-color-surface-container-high:var(--mdui-color-surface-container-high);--ur-color-tertiary:var(--mdui-color-tertiary);--ur-color-outline:var(--mdui-color-outline);width:100%;display:block;color:rgb(var(--ur-color-on-background-rgb))}:host .cover-total{width:100%;min-height:150px;max-height:240px;overflow:hidden;background-repeat:no-repeat;height:calc((100vw - 56px) / 2.25);flex:0 0 auto;background-size:cover;background-position:center center;position:relative}:host .cover-blur-overlay{width:100%;height:100%;overflow:hidden;position:absolute;top:0;left:0;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}:host .cover-gradient-overlay{width:100%;height:100%;overflow:hidden;position:absolute;bottom:0;left:0;background:linear-gradient(to bottom, transparent 0%, rgb(var(--ur-color-background)) 100%);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}:host .overview.small-device{display:flex;flex-direction:column}:host .overview.large-device{display:flex;flex-direction:row;gap:18px}:host .overview.large-device .novl-content{flex:1;padding:24px 0;transform:translate(0, -122px)}:host .visibility-toggle{display:flex;flex-direction:row;align-items:center;gap:4px}:host .overview.large-device .cover-image{overflow:hidden}:host .overview.small-device .visibility-toggle{bottom:12px;right:24px;height:30px;position:absolute;padding:0 12px 0 0;border-radius:25px;background:rgb(var(--ur-color-background))}:host .description-header{display:flex;flex-direction:row;align-items:center}:host .overview.large-device .cover{display:flex;flex-direction:column;align-items:flex-end;padding-left:16px;flex:0.5 1}:host .overview.small-device .novl-content{max-width:initial;padding:24px}:host .overview.large-device .inner-cover{border-radius:12px;top:0;width:100%;border:4px solid rgb(var(--ur-color-background))}:host .overview.small-device .inner-cover{width:100%;max-width:initial;max-height:210px;height:calc(100vw / 3)}:host .overview.small-device .cover-image{object-fit:cover}:host .inner-cover .cover-image{height:100%;width:100%}:host .cover{flex:0.5;position:relative}:host .overview .inner-cover-hld{flex:1;align-items:flex-end}:host .overview.large-device .inner-cover-hld{gap:8px;width:100%;display:flex;max-width:380px;flex-direction:column;align-items:flex-start;position:relative;transform:translate(0, -125px)}:host .inner-cover{max-width:380px;position:relative;overflow:hidden}:host .main-content{display:flex;flex-direction:column;gap:12px}:host .status.small-device{display:flex;position:absolute;top:0;left:24px;transform:translate(0, -50%);background:rgb(var(--ur-color-background));border-radius:50px;padding:2px}:host .status.large-device{display:flex;border-radius:50px;padding:2px}:host .novl-content{flex:1;max-width:740px;display:flex;position:relative;gap:24px;flex-direction:column}:host .upper-hld{display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin-bottom:8px}:host .upper-right{display:flex;align-items:center}:host .main-content-inner{display:flex;flex-direction:column;gap:8px}:host .title-hld{display:flex;flex-direction:row;gap:4px}:host .ad-space{flex:0.5}:host .overview.small-device .ad-space{flex:0 0 0;width:0;overflow:hidden}:host .title-text{flex:1;margin:0;font-size:45px;font-style:normal;font-weight:700;line-height:45px;letter-spacing:-0.262px}:host .overview.small-device .title-text{font-size:28px;line-height:32px}:host .label{flex:1;font-size:20px;font-weight:600;letter-spacing:0.4px;min-height:30px}:host .description{display:flex;flex-direction:column;gap:8px}:host .story-stats{font-size:12px;line-height:1.4}:host .story-stat{display:inline}:host .story-stat-label{font-weight:700}:host .story-stat-value{font-weight:400;margin-right:4px}:host .story-stat-separator{margin:0 4px}:host .novl-details{display:flex;flex-wrap:wrap;gap:8px}:host .actions-holder{display:flex;gap:8px;overflow:auto}:host .owner-holder{display:flex;flex-direction:column;gap:8px}@keyframes placeholderAnimate{0%{background-position:-650px 0}100%{background-position:650px 0}}:host .title-text.loading{height:24px;margin:8px 0;border-radius:4px;animation-duration:1.7s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:placeholderAnimate;background:linear-gradient(\r\n to right,\r\n rgba(var(--ur-color-on-background), 0.04) 2%,\r\n rgba(var(--ur-color-on-background), 0.12) 18%,\r\n rgba(var(--ur-color-on-background), 0.04) 33%\r\n );background-size:1000px}:host .title-skeleton.loading{height:28px;width:80%;display:inline-block;animation-duration:1.7s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:placeholderAnimate;background:linear-gradient(\r\n to right,\r\n rgba(var(--ur-color-on-background), 0.04) 2%,\r\n rgba(var(--ur-color-on-background), 0.12) 18%,\r\n rgba(var(--ur-color-on-background), 0.04) 33%\r\n );background-size:1300px;border-radius:4px}:host .stats-skeleton.loading{height:14px;width:60%;display:inline-block;animation-duration:1.7s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:placeholderAnimate;background:linear-gradient(\r\n to right,\r\n rgba(var(--ur-color-on-background), 0.04) 2%,\r\n rgba(var(--ur-color-on-background), 0.12) 18%,\r\n rgba(var(--ur-color-on-background), 0.04) 33%\r\n );background-size:1300px;border-radius:4px}:host .cover-skeleton.loading{height:100%;width:100%;animation-duration:1.7s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:placeholderAnimate;background:linear-gradient(\r\n to right,\r\n rgba(var(--ur-color-on-background), 0.04) 2%,\r\n rgba(var(--ur-color-on-background), 0.12) 18%,\r\n rgba(var(--ur-color-on-background), 0.04) 33%\r\n );background-size:1300px}:host .label-skeleton.loading{display:inline-block;width:120px;height:24px;border-radius:4px;animation-duration:1.7s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:placeholderAnimate;background:linear-gradient(\r\n to right,\r\n rgba(var(--ur-color-on-background), 0.04) 2%,\r\n rgba(var(--ur-color-on-background), 0.12) 18%,\r\n rgba(var(--ur-color-on-background), 0.04) 33%\r\n );background-size:1300px}";export{r as ur_novl_overview_info}
1
+ import{r as t,c as i,h as e,H as o}from"./p-DvddpEp7.js";import"./p-cd1dcff4.entry.js";import"./p-93354735.entry.js";import"./p-4e2e94b4.entry.js";import"./p-d4da4e68.entry.js";import"./p-1afbea38.entry.js";import"./p-CWDXcl2f.js";import"./p-zh2SzAzp.js";import"./p-BaDNPIJn.js";import"./p-DCmgagZL.js";import"./p-BikcNKGt.js";import"./p-Bm926Ekb.js";import"./p-BnvqNZ1a.js";import"./p-mNKFcBdT.js";import"./p-BvhH6khE.js";import"./p-CRnISBPX.js";import"./p-yaA8vKgL.js";import"./p-K4MXteSR.js";import"./p-B5jYRBDz.js";import"./p-Clv8wqOh.js";import"./p-Bp-zUewd.js";import"./p-C9D7GpT5.js";import"./p-Bm8xqKw-.js";import"./p-B8AYZymA.js";import"./p-9r9PNduz.js";import"./p-CDMnlt9S.js";import"./p-CinnKCwG.js";import"./p-CJV4FEOd.js";import"./p-Dyrf810J.js";import"./p-D3sLxRC_.js";import"./p-YvOYo-vb.js";import"./p-a07f78d9.entry.js";import"./p-CDumGMAI.js";import"./p-3d11160e.entry.js";import"./p-DJx6zFbF.js";import"./p-DLgdsY8g.js";import"./p-89ac2a2c.entry.js";import"./p-BmqCYfl3.js";import"./p-xjvHLpY2.js";const r=class{constructor(e){t(this,e),this.attachStoryEvent=i(this,"attachStoryEvent"),this.readStoryEvent=i(this,"readStoryEvent"),this.writeStoryEvent=i(this,"writeStoryEvent"),this.buyStoryEvent=i(this,"buyStoryEvent"),this.editInfoClick=i(this,"editInfoClick"),this.visibilityChangeEvent=i(this,"visibilityChangeEvent"),this.completeStoryEvent=i(this,"completeStoryEvent"),this.revertStoryEvent=i(this,"revertStoryEvent"),this.toggleLibraryEvent=i(this,"toggleLibraryEvent"),this.novlTitle="This is long story title",this.completeText="Complete",this.ongoingText="Ongoing",this.deviceSize="large",this.likesText="Likes",this.viewsText="Views",this.readingDuration="1min",this.readingDurationText="Reading Duration",this.description="Description",this.languages="English",this.genres="Action, Adventure",this.literatureTypes="Novel",this.showLessText="Show less",this.showMoreText="Show more...",this.readStoryText="Read story",this.writeStoryText="Start writing",this.descriptionText="Description",this.chapterListText="Chapters",this.buyStoryText="Buy for",this.addToLibraryText="Manage Collections",this.isUserLoggedIn=!1,this.novlPurchasedAt="",this.isOwner=!1,this.attachRequestStatus="idle",this.attachStoryText="Attach to page",this.cancelRequestText="Cancel Request",this.requestPendingText="Request Pending",this.detachFromPageText="Detach from page",this.attachedToPageText="Attached to page",this.attachButtonHoverState="default",this.visibility="public",this.visibilityPublicText="Public story",this.visibilityPrivateText="Private story",this.completeStoryText="Complete story",this.revertStoryText="Revert to ongoing",this.expanded=!1,this.showPublishedButton=!0,this.skeleton=!1,this.showEditInfoButton=!1,this.editInfoButtonText="Edit story info"}onReadStory(){this.readStoryEvent.emit()}onAttachStory(t){this.attachStoryEvent.emit({status:t})}onWriteStory(){this.writeStoryEvent.emit()}onBuyStory(){this.buyStoryEvent.emit()}onChangeVisibility(){this.visibility="public"===this.visibility?"private":"public",this.visibilityChangeEvent.emit(this.visibility)}onCompleteStory(){this.completeStoryEvent.emit()}onRevertStory(){this.revertStoryEvent.emit()}onToggleLibrary(){this.toggleLibraryEvent.emit()}onEditInfoClick(){this.editInfoClick.emit()}async reset(){this.expanded=!1}handleAttachStoryClicked(){"pending"===this.attachRequestStatus?this.onAttachStory("canceled"):"accepted"===this.attachRequestStatus?this.onAttachStory("leave"):"idle"!==this.attachRequestStatus&&"rejected"!==this.attachRequestStatus||this.onAttachStory("pending")}getAttachButtonText(){switch(this.attachRequestStatus){case"pending":return"hover"===this.attachButtonHoverState?this.cancelRequestText:this.requestPendingText;case"accepted":return"hover"===this.attachButtonHoverState?this.detachFromPageText:this.attachedToPageText;default:return this.attachStoryText}}render(){return e(o,{key:"2404fcf2ee64eb00da15b0616b2750e4ceb721df"},"large"===this.deviceSize&&e("div",{key:"b43e244d157e964eefc0abbc86b00a2d8f8fada9",class:"cover-total",style:{backgroundImage:`url(${this.coverImage})`}},e("div",{key:"f2553a0432a8943276b2d2548dd6e3dab5f65114",class:"cover-blur-overlay"}),e("div",{key:"fcfef7f799628e50f1da4e1c0dc1e382968da4a2",class:"cover-gradient-overlay"})),e("div",{key:"0c738c27e414408da90e3e3536b9113fc3b01e1e",class:"overview "+("small"===this.deviceSize?"small-device":"large-device")},e("div",{key:"6d7e027b33ad039d98bb50bac5119af25488cc2a",class:"cover"},e("div",{key:"692b4b5cd80fb44ab6681c74b9a28b2d19d65804",class:"inner-cover-hld"},e("div",{key:"36bd945fccbf5726e4eca36410dfeb29811e3cad",class:"inner-cover"},this.skeleton?e("div",{class:"cover-skeleton loading"}):e("img",{class:"cover-image",src:this.coverImage,alt:"Novl Cover"})),!this.skeleton&&this.isOwner&&this.renderVisibilitySwitch()),e("slot",{key:"b2c81976175a2dce2f7546679e140b9384f4fef5",name:"ad-slot-left"})),e("div",{key:"f156ca24adede9eb0e4a2119d7b63d84ddb57b2a",class:"novl-content"},e("div",{key:"0b8e831bce53f01fd3b136a383a56c65d4f5c0d4",class:"main-content"},e("div",{key:"fee8f625de7df9a5f133f9518b43969fcec37c0a",class:"upper-hld"},this.renderStatusChips(),e("div",{key:"d1a3e7c9cac8999642d516dea712da471081e890",class:"upper-right"},this.renderEditInfoButton())),e("div",{key:"f9c3050fdc22915136b467234c1fd72f4c3a0d95",class:"main-content-inner"},e("div",{key:"8b23046b7e1a576eba2424f62291a5de442817fd",class:"title-hld"},this.skeleton?e("h1",{class:"title-text title-skeleton loading"}," "):e("h1",{class:"title-text"},this.novlTitle))),this.skeleton?e("span",{class:"story-stats stats-skeleton loading"}," "):e("span",{class:"story-stats"},this.likes>0&&e("span",{class:"story-stat"},e("span",{class:"story-stat-value"},this.likes),e("span",{class:"story-stat-label"},this.likesText)),this.likes>0&&e("span",{class:"story-stat-separator"},"·"),this.views>0&&e("span",{class:"story-stat"},e("span",{class:"story-stat-value"},this.views),e("span",{class:"story-stat-label"},this.viewsText)),this.views>0&&e("span",{class:"story-stat-separator"},"·"),e("span",{class:"story-stat"},e("span",{class:"story-stat-value"},"-1"===this.readingDuration?"N/A":this.readingDuration),e("span",{class:"story-stat-label"},this.readingDurationText))),e("div",{key:"e8c7f5cd89afec62a10dfb0ee9e3eda9ba4c3a2b",class:"novl-details"},this.skeleton?[e("ur-chip",{skeleton:!0,size:"28px",class:"info-chip"}),e("ur-chip",{skeleton:!0,size:"28px",class:"info-chip"}),e("ur-chip",{skeleton:!0,size:"28px",class:"info-chip"}),e("ur-chip",{skeleton:!0,size:"28px",class:"info-chip"})]:[...this.languages.split(",").map((t=>e("ur-chip",{fontColor:"rgb(var(--ur-color-on-surface-lite))",backColor:"rgb(var(--ur-color-surface-container-high))",size:"28px",class:"info-chip",clickable:!1,label:t}))),...this.literatureTypes.split(",").map((t=>e("ur-chip",{fontColor:"rgb(var(--ur-color-on-surface-lite))",backColor:"rgb(var(--ur-color-surface-container-high))",size:"28px",class:"info-chip",clickable:!1,label:t}))),...this.genres.split(",").map((t=>e("ur-chip",{fontColor:"rgb(var(--ur-color-on-surface-lite))",backColor:"rgb(var(--ur-color-surface-container-high))",size:"28px",class:"info-chip",clickable:!1,label:t})))]),e("div",{key:"eddc6dae77c3c80abdf93c240a4297efd6bcc9b1",class:"actions-holder"},this.skeleton?[e("ur-button",{skeleton:!0,class:"summary-action","full-width":"large"!==this.deviceSize}),e("ur-button",{skeleton:!0,class:"summary-action"})]:[this.hasBranches&&e("ur-button",{class:"summary-action",variant:"filled","full-width":"large"!==this.deviceSize,onClick:()=>this.onReadStory()},this.readStoryText),this.writeEnabled&&!this.hasBranches&&e("ur-button",{class:"summary-action",variant:"filled","full-width":"large"!==this.deviceSize,onClick:()=>this.onWriteStory()},this.writeStoryText),!this.skeleton&&this.isOwner&&this.attachRequestStatus&&e("ur-button",{class:"summary-action",variant:"tonal","full-width":"large"!==this.deviceSize,onMouseEnter:()=>this.attachButtonHoverState="hover",onMouseLeave:()=>this.attachButtonHoverState="default",onClick:()=>this.handleAttachStoryClicked()},this.getAttachButtonText()),!this.skeleton&&this.isOwner&&!this.novlPaid&&(this.storyCompleteStatus?e("ur-button",{class:"summary-action",variant:"tonal","full-width":"large"!==this.deviceSize,onClick:()=>this.onRevertStory()},this.revertStoryText):e("ur-button",{class:"summary-action",variant:"tonal","full-width":"large"!==this.deviceSize,onClick:()=>this.onCompleteStory(),disabled:!this.showPublishedButton},this.completeStoryText)),this.novlPaid&&(this.novlPurchasedAt?e("ur-button",{class:"summary-action",variant:"filled",fullWidth:!0,onClick:()=>this.onReadStory()},this.readStoryText):e("ur-button",{class:"summary-action",variant:"filled",fullWidth:!0,onClick:()=>this.onBuyStory()},this.buyStoryText," ",e("span",{class:"buy-price"},this.novlPrice))),this.isUserLoggedIn&&e("ur-button",{class:"summary-action",icon:"collections_bookmark--outlined",variant:"text",onClick:()=>this.onToggleLibrary()},this.addToLibraryText)].filter(Boolean))),e("div",{key:"596002ba6825d58406d0ac1b745e8e93e22642e9",class:"description"},e("div",{key:"ec6e5d194fae65021aae31c4b84f866a551e09d4",class:"description-header"},this.skeleton?e("span",{class:"label label-skeleton loading"}," "):e("span",{class:"label"},this.descriptionText)),this.skeleton?e("ur-long-description",{skeleton:!0}):e("slot",{name:"description"})),e("div",{key:"9f43d69a393a603b19fc3347be56981fb5fa885a",class:"owner-holder"},this.skeleton?[e("ur-profile-card",{skeleton:!0,profileType:"user",avatarSize:"40px"}),e("ur-profile-card",{skeleton:!0,profileType:"page",avatarSize:"40px"})]:[e("slot",{name:"owner"}),e("slot",{name:"owner-page"})]),e("slot",{key:"3f8d2747ef51f73e1a29419f79f3044fd5e26edb",name:"chapters"})),e("div",{key:"487406dd23d349959dbba7026bbee6e880fccf34",class:"ad-space"},e("slot",{key:"451ccfc527df9e1dc49be8710184761307c93d04",name:"ad-slot-right"}))))}renderStatusChips(){return e("div",{class:"status "+("small"===this.deviceSize?"small-device":"large-device")},e("ur-chip",this.skeleton?{skeleton:!0,size:"32px",class:"status-chip",radius:"50px",border:"2px"}:this.storyCompleteStatus?{fontColor:"#1A5100",backColor:"#C6F4D0",radius:"50px",border:"2px",size:"32px",class:"status-chip",clickable:!1,label:this.completeText}:{fontColor:"rgb(var(--ur-color-primary))",backColor:"rgb(var(--ur-color-primary-container))",size:"32px",class:"status-chip",border:"2px",radius:"50px",clickable:!1,label:this.ongoingText}))}renderVisibilitySwitch(){return e("div",{class:"visibility-toggle"},e("ur-switch",{checked:"public"===this.visibility,checkedIcon:"public",uncheckedIcon:"lock",onSwitchChange:()=>this.onChangeVisibility()}),e("span",{class:"visibility-label"},"public"===this.visibility?this.visibilityPublicText:this.visibilityPrivateText))}renderEditInfoButton(){return console.log("renderEditInfoButton called:",{isOwner:this.isOwner,showEditInfoButton:this.showEditInfoButton,willRender:this.isOwner&&this.showEditInfoButton}),this.isOwner&&this.showEditInfoButton?e("ur-tooltip",{colorScheme:"dark",placement:"left",content:this.editInfoButtonText},e("ur-button-icon",{buttonHeight:"36px",buttonWidth:"36px",class:"edit-info-button",icon:"edit",onClick:()=>this.onEditInfoClick()})):null}};r.style=":host{--ur-color-background:var(--mdui-color-background);--ur-color-on-background:var(--mdui-color-on-background);--ur-color-on-complete-surface:#1a5100;--ur-color-complete-surface:red;--ur-color-primary:var(--mdui-color-primary);--ur-color-primary-container:var(--mdui-color-primary-container);--ur-color-on-surface-lite:var(--mdui-color-on-surface-lite);--ur-color-surface-container-high:var(--mdui-color-surface-container-high);--ur-color-tertiary:var(--mdui-color-tertiary);--ur-color-outline:var(--mdui-color-outline);width:100%;display:block;color:rgb(var(--ur-color-on-background-rgb))}:host .cover-total{width:100%;min-height:150px;max-height:240px;overflow:hidden;background-repeat:no-repeat;height:calc((100vw - 56px) / 2.25);flex:0 0 auto;background-size:cover;background-position:center center;position:relative}:host .cover-blur-overlay{width:100%;height:100%;overflow:hidden;position:absolute;top:0;left:0;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}:host .cover-gradient-overlay{width:100%;height:100%;overflow:hidden;position:absolute;bottom:0;left:0;background:linear-gradient(to bottom, transparent 0%, rgb(var(--ur-color-background)) 100%);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}:host .overview.small-device{display:flex;flex-direction:column}:host .overview.large-device{display:flex;flex-direction:row;gap:18px}:host .overview.large-device .novl-content{flex:1;padding:24px 0;transform:translate(0, -122px)}:host .visibility-toggle{display:flex;flex-direction:row;align-items:center;gap:4px}:host .overview.large-device .cover-image{overflow:hidden}:host .overview.small-device .visibility-toggle{bottom:12px;right:24px;height:30px;position:absolute;padding:0 12px 0 0;border-radius:25px;background:rgb(var(--ur-color-background))}:host .description-header{display:flex;flex-direction:row;align-items:center}:host .overview.large-device .cover{display:flex;flex-direction:column;align-items:flex-end;padding-left:16px;flex:0.5 1}:host .overview.small-device .novl-content{max-width:initial;padding:24px}:host .overview.large-device .inner-cover{border-radius:12px;top:0;width:100%;border:4px solid rgb(var(--ur-color-background))}:host .overview.small-device .inner-cover{width:100%;max-width:initial;max-height:210px;height:calc(100vw / 3)}:host .overview.small-device .cover-image{object-fit:cover}:host .inner-cover .cover-image{height:100%;width:100%}:host .cover{flex:0.5;position:relative}:host .overview .inner-cover-hld{flex:1;align-items:flex-end}:host .overview.large-device .inner-cover-hld{gap:8px;width:100%;display:flex;max-width:380px;flex-direction:column;align-items:flex-start;position:relative;transform:translate(0, -125px)}:host .inner-cover{max-width:380px;position:relative;overflow:hidden}:host .main-content{display:flex;flex-direction:column;gap:12px}:host .status.small-device{display:flex;position:absolute;top:0;left:24px;transform:translate(0, -50%);background:rgb(var(--ur-color-background));border-radius:50px;padding:2px}:host .status.large-device{display:flex;border-radius:50px;padding:2px}:host .novl-content{flex:1;max-width:740px;display:flex;position:relative;gap:24px;flex-direction:column}:host .upper-hld{display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin-bottom:8px}:host .upper-right{display:flex;align-items:center}:host .main-content-inner{display:flex;flex-direction:column;gap:8px}:host .title-hld{display:flex;flex-direction:row;gap:4px}:host .ad-space{flex:0.5}:host .overview.small-device .ad-space{flex:0 0 0;width:0;overflow:hidden}:host .title-text{flex:1;margin:0;font-size:45px;font-style:normal;font-weight:700;line-height:45px;letter-spacing:-0.262px}:host .overview.small-device .title-text{font-size:28px;line-height:32px}:host .label{flex:1;font-size:20px;font-weight:600;letter-spacing:0.4px;min-height:30px}:host .description{display:flex;flex-direction:column;gap:8px}:host .story-stats{font-size:12px;line-height:1.4}:host .story-stat{display:inline}:host .story-stat-label{font-weight:700}:host .story-stat-value{font-weight:400;margin-right:4px}:host .story-stat-separator{margin:0 4px}:host .novl-details{display:flex;flex-wrap:wrap;gap:8px}:host .actions-holder{display:flex;gap:8px;overflow:auto}:host .owner-holder{display:flex;flex-direction:column;gap:8px}@keyframes placeholderAnimate{0%{background-position:-650px 0}100%{background-position:650px 0}}:host .title-text.loading{height:24px;margin:8px 0;border-radius:4px;animation-duration:1.7s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:placeholderAnimate;background:linear-gradient(\r\n to right,\r\n rgba(var(--ur-color-on-background), 0.04) 2%,\r\n rgba(var(--ur-color-on-background), 0.12) 18%,\r\n rgba(var(--ur-color-on-background), 0.04) 33%\r\n );background-size:1000px}:host .title-skeleton.loading{height:28px;width:80%;display:inline-block;animation-duration:1.7s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:placeholderAnimate;background:linear-gradient(\r\n to right,\r\n rgba(var(--ur-color-on-background), 0.04) 2%,\r\n rgba(var(--ur-color-on-background), 0.12) 18%,\r\n rgba(var(--ur-color-on-background), 0.04) 33%\r\n );background-size:1300px;border-radius:4px}:host .stats-skeleton.loading{height:14px;width:60%;display:inline-block;animation-duration:1.7s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:placeholderAnimate;background:linear-gradient(\r\n to right,\r\n rgba(var(--ur-color-on-background), 0.04) 2%,\r\n rgba(var(--ur-color-on-background), 0.12) 18%,\r\n rgba(var(--ur-color-on-background), 0.04) 33%\r\n );background-size:1300px;border-radius:4px}:host .cover-skeleton.loading{height:100%;width:100%;animation-duration:1.7s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:placeholderAnimate;background:linear-gradient(\r\n to right,\r\n rgba(var(--ur-color-on-background), 0.04) 2%,\r\n rgba(var(--ur-color-on-background), 0.12) 18%,\r\n rgba(var(--ur-color-on-background), 0.04) 33%\r\n );background-size:1300px}:host .label-skeleton.loading{display:inline-block;width:120px;height:24px;border-radius:4px;animation-duration:1.7s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:placeholderAnimate;background:linear-gradient(\r\n to right,\r\n rgba(var(--ur-color-on-background), 0.04) 2%,\r\n rgba(var(--ur-color-on-background), 0.12) 18%,\r\n rgba(var(--ur-color-on-background), 0.04) 33%\r\n );background-size:1300px}";export{r as ur_novl_overview_info}
@@ -1 +1 @@
1
- import{r as t,c as i,h as e,H as s}from"./p-DvddpEp7.js";const o=class{constructor(e){t(this,e),this.fileSelected=i(this,"fileSelected"),this.fileDropped=i(this,"fileDropped"),this.fileCleared=i(this,"fileCleared"),this.uploadError=i(this,"uploadError"),this.nativeUploadRequested=i(this,"nativeUploadRequested"),this.width="300px",this.height="200px",this.maxHeight="250px",this.borderRadius="8px",this.borderStyle="2px dashed rgb(var(--mdui-color-outline))",this.backgroundColor="rgb(var(--mdui-color-surface))",this.hoverBackgroundColor="rgb(var(--mdui-color-surface-variant))",this.acceptTypes="image/*",this.disabled=!1,this.placeholderText="Select a file or drag and drop here",this.uploadingText="Uploading...",this.showFileName=!0,this.maxFileSize=5242880,this.enableNativeUpload=!1,this.loading=!1,this.isDragOver=!1,this.selectedFile=null,this.previewUrl=null,this.isUploading=!1,this.handleClick=()=>{var t;this.disabled||(this.enableNativeUpload?this.nativeUploadRequested.emit():null===(t=this.fileInputRef)||void 0===t||t.click())},this.handleFileInput=t=>{var i;const e=null===(i=t.target.files)||void 0===i?void 0:i[0];e&&this.handleFile(e)},this.handleFile=t=>{if(!t.type.startsWith("image/"))return void this.uploadError.emit({error:"Please select an image file",file:t});if(t.size>this.maxFileSize){const i=(this.maxFileSize/1048576).toFixed(1);return void this.uploadError.emit({error:`File size must be less than ${i}MB`,file:t})}this.selectedFile=t;const i=new FileReader;i.onload=t=>{var i;this.previewUrl=null===(i=t.target)||void 0===i?void 0:i.result},i.readAsDataURL(t),this.fileSelected.emit(t)},this.handleDragOver=t=>{this.disabled||(t.preventDefault(),this.isDragOver=!0)},this.handleDragLeave=t=>{this.disabled||(t.preventDefault(),this.isDragOver=!1)},this.handleDrop=t=>{var i;if(this.disabled)return;t.preventDefault(),this.isDragOver=!1;const e=null===(i=t.dataTransfer)||void 0===i?void 0:i.files;if(e&&e.length>0){const t=e[0];this.handleFile(t),this.fileDropped.emit(t)}},this.clearFile=t=>{t.stopPropagation(),this.selectedFile=null,this.previewUrl=null,this.isUploading=!1,this.fileInputRef&&(this.fileInputRef.value=""),this.fileCleared.emit()}}componentDidLoad(){}async setImageUrl(t,i){this.previewUrl=t,i&&(this.selectedFile=new File([],i,{type:"image/jpeg"}))}async getImageUrl(){return this.previewUrl}async clearImage(){this.selectedFile=null,this.previewUrl=null,this.isUploading=!1,this.fileInputRef&&(this.fileInputRef.value=""),this.fileCleared.emit()}async getSelectedFile(){return this.selectedFile}async setUploadingState(t){this.isUploading=t}render(){return e(s,{key:"bb987f29962f8d4e7f2445458b6d38e612ea1f41"},e("div",{key:"21bdc919a812ff1e5133ceb08b6280b3f228fa3d",class:"uploader-container",style:{width:this.width,height:this.height,maxHeight:this.maxHeight,borderRadius:this.borderRadius,border:this.borderStyle,backgroundColor:this.isDragOver?this.hoverBackgroundColor:this.backgroundColor,cursor:this.disabled?"not-allowed":"pointer",opacity:this.disabled?"0.6":"1"},onClick:this.handleClick,onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},e("input",{key:"e72ed8787a3ec0ea8fc2c700555896224b951633",type:"file",accept:this.acceptTypes,ref:t=>this.fileInputRef=t,onChange:this.handleFileInput,style:{display:"none"},disabled:this.disabled}),this.previewUrl?e("div",{class:"preview-container"},e("img",{src:this.previewUrl,alt:"Preview",class:"preview-image"}),!this.isUploading&&!this.loading&&e("button",{class:"clear-button",onClick:this.clearFile,type:"button"},"×"),this.showFileName&&this.selectedFile&&e("div",{class:"file-name"},this.selectedFile.name),(this.isUploading||this.loading)&&e("div",{class:"upload-overlay"},e("mdui-circular-progress",{class:"upload-loader"}),e("div",{class:"upload-text"},this.uploadingText))):e("div",{class:"placeholder"},this.isUploading||this.loading?e("div",{class:"loading-content"},e("mdui-circular-progress",{class:"upload-loader"}),e("div",{class:"placeholder-text"},this.uploadingText)):e("div",{class:"upload-content"},e("mdui-icon",{class:"upload-icon",name:"cloud_upload--outlined"}),e("div",{class:"placeholder-text"},this.placeholderText)))))}};o.style=":host{display:block;touch-action:manipulation}:host .uploader-container{display:flex;align-items:center;justify-content:center;position:relative;transition:all 0.2s ease-in-out;overflow:hidden}:host .placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px;gap:8px}:host .upload-icon{font-size:2.5rem;opacity:0.6;color:rgb(var(--mdui-color-outline))}:host .placeholder-text{font-size:14px;color:rgb(var(--mdui-color-on-surface));font-weight:500}:host .preview-container{position:relative;width:100%;height:100%;display:flex;flex-direction:column}:host .preview-image{width:100%;height:100%;object-fit:cover;border-radius:inherit}:host .clear-button{position:absolute;top:8px;right:8px;width:32px;height:32px;border:none;border-radius:50%;background:rgba(0, 0, 0, 0.7);color:white;font-size:18px;font-weight:bold;cursor:pointer;display:flex;align-items:center;justify-content:center;line-height:1;transition:background-color 0.2s ease;min-width:44px;min-height:44px;touch-action:manipulation}:host .clear-button:hover{background:rgba(0, 0, 0, 0.9)}:host .file-name{position:absolute;bottom:0;left:0;right:0;background:rgba(0, 0, 0, 0.7);color:white;padding:4px 8px;font-size:12px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}:host .uploader-container.drag-over{border-color:#007bff;background-color:rgba(0, 123, 255, 0.1)}:host .uploader-container[disabled]{cursor:not-allowed;opacity:0.6}:host .upload-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0, 0, 0, 0.7);display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:inherit}:host .upload-loader{width:40px;height:40px;margin-bottom:8px}:host .upload-text{color:white;font-size:14px;font-weight:500}:host .loading-content,:host .upload-content{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}@media (max-width: 768px){:host .placeholder-text{font-size:12px}:host .upload-icon{font-size:1.5rem}}";export{o as ur_image_uploader}
1
+ import{r as t,c as i,h as e,H as s}from"./p-DvddpEp7.js";const o=class{constructor(e){t(this,e),this.fileSelected=i(this,"fileSelected"),this.fileDropped=i(this,"fileDropped"),this.fileCleared=i(this,"fileCleared"),this.uploadError=i(this,"uploadError"),this.nativeUploadRequested=i(this,"nativeUploadRequested"),this.width="300px",this.height="200px",this.maxHeight="250px",this.borderRadius="8px",this.borderStyle="2px dashed rgb(var(--mdui-color-outline))",this.backgroundColor="rgb(var(--mdui-color-surface))",this.hoverBackgroundColor="rgb(var(--mdui-color-surface-variant))",this.acceptTypes="image/*",this.disabled=!1,this.placeholderText="Select a file or drag and drop here",this.uploadingText="Uploading...",this.showFileName=!0,this.maxFileSize=5242880,this.enableNativeUpload=!1,this.loading=!1,this.isDragOver=!1,this.selectedFile=null,this.previewUrl=null,this.isUploading=!1,this.handleClick=()=>{var t;this.disabled||(this.enableNativeUpload?this.nativeUploadRequested.emit():null===(t=this.fileInputRef)||void 0===t||t.click())},this.handleFileInput=t=>{var i;const e=null===(i=t.target.files)||void 0===i?void 0:i[0];e&&this.handleFile(e)},this.handleFile=t=>{if(!t.type.startsWith("image/"))return void this.uploadError.emit({error:"Please select an image file",file:t});if(t.size>this.maxFileSize){const i=(this.maxFileSize/1048576).toFixed(1);return void this.uploadError.emit({error:`File size must be less than ${i}MB`,file:t})}this.selectedFile=t;const i=new FileReader;i.onload=t=>{var i;this.previewUrl=null===(i=t.target)||void 0===i?void 0:i.result},i.readAsDataURL(t),this.fileSelected.emit(t)},this.handleDragOver=t=>{this.disabled||(t.preventDefault(),this.isDragOver=!0)},this.handleDragLeave=t=>{this.disabled||(t.preventDefault(),this.isDragOver=!1)},this.handleDrop=t=>{var i;if(this.disabled)return;t.preventDefault(),this.isDragOver=!1;const e=null===(i=t.dataTransfer)||void 0===i?void 0:i.files;if(e&&e.length>0){const t=e[0];this.handleFile(t),this.fileDropped.emit(t)}},this.clearFile=t=>{t.stopPropagation(),this.selectedFile=null,this.previewUrl=null,this.isUploading=!1,this.fileInputRef&&(this.fileInputRef.value=""),this.fileCleared.emit()}}componentDidLoad(){}async setImageUrl(t,i){this.previewUrl=t,i&&(this.selectedFile=new File([],i,{type:"image/jpeg"}))}async getImageUrl(){return this.previewUrl}async clearImage(){this.selectedFile=null,this.previewUrl=null,this.isUploading=!1,this.fileInputRef&&(this.fileInputRef.value=""),this.fileCleared.emit()}async getSelectedFile(){return this.selectedFile}async setUploadingState(t){this.isUploading=t}render(){return e(s,{key:"b1eb1c685ab0cff83efe424f67b1b73db7b66cec"},e("div",{key:"dfea0e2229b974d4323a0c8b967b273418d04e39",class:"uploader-container",style:{width:this.width,height:this.height,maxHeight:this.maxHeight,borderRadius:this.borderRadius,border:this.borderStyle,backgroundColor:this.isDragOver?this.hoverBackgroundColor:this.backgroundColor,cursor:this.disabled?"not-allowed":"pointer",opacity:this.disabled?"0.6":"1"},onClick:this.handleClick,onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},e("input",{key:"815d6b04b2d3ba96c8fc8149277c898924b3c506",type:"file",accept:this.acceptTypes,ref:t=>this.fileInputRef=t,onChange:this.handleFileInput,style:{display:"none"},disabled:this.disabled}),this.previewUrl?e("div",{class:"preview-container"},e("img",{src:this.previewUrl,alt:"Preview",class:"preview-image"}),!this.isUploading&&!this.loading&&e("button",{class:"clear-button",onClick:this.clearFile,type:"button"},"×"),this.showFileName&&this.selectedFile&&e("div",{class:"file-name"},this.selectedFile.name),(this.isUploading||this.loading)&&e("div",{class:"upload-overlay"},e("mdui-circular-progress",{class:"upload-loader"}),e("div",{class:"upload-text"},this.uploadingText))):e("div",{class:"placeholder"},this.isUploading||this.loading?e("div",{class:"loading-content"},e("mdui-circular-progress",{class:"upload-loader"}),e("div",{class:"placeholder-text"},this.uploadingText)):e("div",{class:"upload-content"},e("mdui-icon",{class:"upload-icon",name:"cloud_upload--outlined"}),e("div",{class:"placeholder-text"},this.placeholderText)))))}};o.style=":host{display:block;touch-action:manipulation}:host .uploader-container{display:flex;align-items:center;justify-content:center;position:relative;transition:all 0.2s ease-in-out;overflow:hidden}:host .placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px;gap:8px}:host .upload-icon{font-size:2.5rem;opacity:0.6;color:rgb(var(--mdui-color-outline))}:host .placeholder-text{font-size:14px;color:rgb(var(--mdui-color-on-surface));font-weight:500}:host .preview-container{position:relative;width:100%;height:100%;display:flex;flex-direction:column}:host .preview-image{width:100%;height:100%;object-fit:cover;border-radius:inherit}:host .clear-button{position:absolute;top:8px;right:8px;width:32px;height:32px;border:none;border-radius:50%;background:rgba(0, 0, 0, 0.7);color:white;font-size:18px;font-weight:bold;cursor:pointer;display:flex;align-items:center;justify-content:center;line-height:1;transition:background-color 0.2s ease;min-width:44px;min-height:44px;touch-action:manipulation}:host .clear-button:hover{background:rgba(0, 0, 0, 0.9)}:host .file-name{position:absolute;bottom:0;left:0;right:0;background:rgba(0, 0, 0, 0.7);color:white;padding:4px 8px;font-size:12px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}:host .uploader-container.drag-over{border-color:#007bff;background-color:rgba(0, 123, 255, 0.1)}:host .uploader-container[disabled]{cursor:not-allowed;opacity:0.6}:host .upload-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0, 0, 0, 0.7);display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:inherit}:host .upload-loader{width:40px;height:40px;margin-bottom:8px}:host .upload-text{color:white;font-size:14px;font-weight:500}:host .loading-content,:host .upload-content{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}@media (max-width: 768px){:host .placeholder-text{font-size:12px}:host .upload-icon{font-size:1.5rem}}";export{o as ur_image_uploader}
@@ -0,0 +1 @@
1
+ import{r as n,c as o,h as t,H as i,a as e}from"./p-DvddpEp7.js";import"./p-YvOYo-vb.js";import"./p-89ac2a2c.entry.js";import"./p-a07f78d9.entry.js";import"./p-cd1dcff4.entry.js";import"./p-DLgdsY8g.js";import"./p-Clv8wqOh.js";import"./p-zh2SzAzp.js";import"./p-BaDNPIJn.js";import"./p-Bp-zUewd.js";import"./p-BikcNKGt.js";import"./p-mNKFcBdT.js";import"./p-CDumGMAI.js";import"./p-DCmgagZL.js";import"./p-CRnISBPX.js";import"./p-yaA8vKgL.js";import"./p-Bm8xqKw-.js";import"./p-BnvqNZ1a.js";import"./p-Bm926Ekb.js";import"./p-B8AYZymA.js";import"./p-9r9PNduz.js";import"./p-CDMnlt9S.js";import"./p-CinnKCwG.js";import"./p-CJV4FEOd.js";import"./p-Dyrf810J.js";import"./p-D3sLxRC_.js";const r=class{constructor(t){n(this,t),this.postCardEvent=o(this,"postCardEvent"),this.ownerType="user",this.isOwner=!1,this.liked=!1,this.likeCount=0,this.commentCount=0,this.skeleton=!1,this.userPollVote=-1,this.totalPollVotes=0,this.mobile=!1,this.spoilerWarningText="Spoiler warning",this.showSpoilerText="Show anyway",this.editText="Edit",this.deleteText="Delete",this.reportText="Report",this.likeText="Like",this.commentText="Comment",this.publicText="Public",this.privateText="Private",this.followersOnlyText="Followers only",this.subscribersOnlyText="Subscribers only",this.votesText="votes",this.lockedLoginText="Sign in to view this post",this.lockedFollowText="Follow to view this post",this.lockedSubscribeText="Subscribe to view this post",this.lockedTierText="Join {tiers} to view this post",this.loginBtnText="Sign in",this.followBtnText="Follow",this.subscribeBtnText="Subscribe",this.viewImageText="View image",this.spoilerRevealed=!1,this.menuOpen=!1,this.handlePostClick=()=>{this.emitEvent("post_click")},this.handleLikeClick=n=>{n.stopPropagation(),this.emitEvent("like")},this.handleCommentClick=n=>{n.stopPropagation(),this.emitEvent("comment")},this.handleOwnerClick=()=>{},this.handleLinkClick=n=>{n.stopPropagation(),this.emitEvent("link_click")},this.handlePollVote=(n,o)=>{n.stopPropagation(),-1===this.userPollVote&&this.emitEvent("poll_vote",{pollOptionIndex:o})},this.handleImageClick=(n,o)=>{n.stopPropagation(),this.emitEvent("image_click",{mediaIndex:o})},this.handleSpoilerReveal=n=>{n.stopPropagation(),this.spoilerRevealed=!0,this.emitEvent("spoiler_reveal")},this.handleUnlockClick=n=>{var o;n.stopPropagation();const t=null===(o=this.post)||void 0===o?void 0:o.lockReason;this.emitEvent("login"===t?"unlock_login":"followers"===t?"unlock_follow":"unlock_subscribe")},this.handleMenuAction=(n,o)=>{n.stopPropagation(),this.menuOpen=!1,this.emitEvent(o)},this.toggleMenu=n=>{if(n.stopPropagation(),this.mobile){const n=[];this.isOwner?n.push({id:"edit",label:this.editText,icon:"edit"},{id:"delete",label:this.deleteText,icon:"delete"}):n.push({id:"report",label:this.reportText,icon:"flag"}),this.postCardEvent.emit({type:"menu_open",post:this.post,menuActions:n})}else this.menuOpen=!this.menuOpen}}handleWindowClick(n){var o;if(!this.menuOpen)return;const t=n.composedPath(),i=null===(o=this.el.shadowRoot)||void 0===o?void 0:o.querySelector(".menu-container");i&&!t.includes(i)&&(this.menuOpen=!1)}emitEvent(n,o){this.postCardEvent.emit({type:n,post:this.post,pollOptionIndex:null==o?void 0:o.pollOptionIndex,mediaIndex:null==o?void 0:o.mediaIndex})}formatCount(n){return n>=1e6?`${(n/1e6).toFixed(1)}M`:n>=1e3?`${(n/1e3).toFixed(1)}K`:n.toString()}getAudienceIcon(){var n;switch(null===(n=this.post)||void 0===n?void 0:n.audience){case"public":default:return"public";case"private":return"lock";case"followers":return"group";case"subscribers":return"loyalty"}}getAudienceTooltip(){var n,o,t;switch(null===(n=this.post)||void 0===n?void 0:n.audience){case"public":default:return this.publicText;case"private":return this.privateText;case"followers":return this.followersOnlyText;case"subscribers":return this.isOwner&&(null===(t=null===(o=this.post)||void 0===o?void 0:o.audienceTierNames)||void 0===t?void 0:t.length)>0?`${this.subscribersOnlyText} (${this.post.audienceTierNames.join(", ")})`:this.subscribersOnlyText}}renderSkeleton(){return t(i,null,t("div",{class:"post loading"},t("div",{class:"header"},t("div",{class:"owner-info"},t("div",{class:"avatar-skeleton loading-el"}),t("div",{class:"header-text"},t("div",{class:"name-skeleton loading-el"}),t("div",{class:"timestamp-skeleton loading-el"})))),t("div",{class:"content"},t("div",{class:"title-skeleton loading-el"}),t("div",{class:"body-skeleton loading-el"}),t("div",{class:"body-skeleton short loading-el"})),t("div",{class:"actions-skeleton"},t("div",{class:"action-skeleton loading-el"}),t("div",{class:"action-skeleton loading-el"}))))}renderHeader(){return t("div",{class:"header"},t("div",{class:"owner-info",onClick:this.handleOwnerClick},t("ur-avatar",{class:"avatar clickable",src:this.ownerImage,name:this.ownerName,size:"40px",variant:this.ownerType}),t("div",{class:"header-text"},t("span",{class:"owner-name clickable"},this.ownerName),t("div",{class:"meta-row"},t("ur-time-ago",{class:"timestamp",date:this.timestamp}),t("span",{class:"meta-separator"},"·"),t("ur-tooltip",{content:this.getAudienceTooltip(),placement:"bottom"},t("ur-icon",{class:"audience-icon",name:this.getAudienceIcon(),size:"14px"}))))),t("div",{class:"menu-container"},t("button",{class:"menu-button",onClick:this.toggleMenu},t("ur-icon",{name:"more_vert",size:"20px"})),this.menuOpen&&t("div",{class:"menu-dropdown"},this.isOwner?[t("button",{class:"menu-item",onClick:n=>this.handleMenuAction(n,"edit")},t("ur-icon",{name:"edit",size:"16px"}),this.editText),t("button",{class:"menu-item delete",onClick:n=>this.handleMenuAction(n,"delete")},t("ur-icon",{name:"delete",size:"16px"}),this.deleteText)]:t("button",{class:"menu-item",onClick:n=>this.handleMenuAction(n,"report")},t("ur-icon",{name:"flag",size:"16px"}),this.reportText))))}renderSpoilerOverlay(){return t("div",{class:"spoiler-overlay"},t("div",{class:"spoiler-content"},t("ur-icon",{name:"visibility_off",size:"32px"}),t("span",{class:"spoiler-warning"},this.spoilerWarningText),t("ur-button",{variant:"outlined",onClick:this.handleSpoilerReveal},this.showSpoilerText)))}getLockedMessage(){var n,o,t;const i=null===(n=this.post)||void 0===n?void 0:n.lockReason;return"login"===i?this.lockedLoginText:"followers"===i?this.lockedFollowText:"tier"===i&&(null===(t=null===(o=this.post)||void 0===o?void 0:o.requiredTierNames)||void 0===t?void 0:t.length)?this.lockedTierText.replace("{tiers}",this.post.requiredTierNames.join(" or ")):this.lockedSubscribeText}getUnlockButtonText(){var n;const o=null===(n=this.post)||void 0===n?void 0:n.lockReason;return"login"===o?this.loginBtnText:"followers"===o?this.followBtnText:this.subscribeBtnText}renderLockedOverlay(){return t("div",{class:"locked-overlay"},t("div",{class:"locked-content"},t("ur-icon",{name:"lock",size:"32px"}),t("span",{class:"locked-message"},this.getLockedMessage()),t("ur-button",{variant:"filled",onClick:this.handleUnlockClick},this.getUnlockButtonText())))}renderTextContent(){return t("div",{class:"text-content"},t("h3",{class:"post-title"},this.post.title),this.post.body&&t("p",{class:"post-body"},this.post.body))}renderLinkContent(){return t("div",{class:"link-content"},t("h3",{class:"post-title"},this.post.title),this.post.body&&t("p",{class:"post-body"},this.post.body),t("a",{class:"link-preview",href:this.post.linkUrl,target:"_blank",rel:"noopener noreferrer",onClick:this.handleLinkClick},t("ur-icon",{name:"link",size:"16px"}),t("span",{class:"link-url"},this.post.linkUrl),t("ur-icon",{name:"open_in_new",size:"14px"})))}renderMediaContent(){const n=this.post.media&&this.post.media.length>0;return t("div",{class:"media-content"},t("h3",{class:"post-title"},this.post.title),n&&t("div",{class:"media-grid"},this.post.media.slice(0,4).map(((n,o)=>t("div",{class:"media-item "+(1===this.post.media.length?"single":""),key:o,onClick:n=>this.handleImageClick(n,o)},"image"===n.type?t("img",{src:n.url,alt:"",loading:"lazy"}):t("div",{class:"video-thumbnail"},t("img",{src:n.thumbnailUrl||n.url,alt:"",loading:"lazy"}),t("div",{class:"play-icon"},t("ur-icon",{name:"play_circle",size:"48px"}))),3===o&&this.post.media.length>4&&t("div",{class:"media-more"},"+",this.post.media.length-4),"image"===n.type&&t("div",{class:"image-hover-overlay"},t("ur-icon",{name:"visibility",size:"20px"}),t("span",null,this.viewImageText)))))),this.post.body&&t("p",{class:"post-body"},this.post.body))}renderPollContent(){var n;const o=-1!==this.userPollVote,i=this.post.pollResults&&this.post.pollResults.length>0,e=i?this.post.pollResults.reduce(((n,o)=>n+o.count),0):this.totalPollVotes;return t("div",{class:"poll-content"},t("h3",{class:"post-title"},this.post.title),t("div",{class:"poll-options"},null===(n=this.post.pollOptions)||void 0===n?void 0:n.map(((n,r)=>{const s=i?this.post.pollResults.find((n=>n.index===r)):null,a=s?s.percentage:e>0?Math.round((s?s.count:n.votes||0)/e*100):0,l=this.userPollVote===r;return t("button",{class:{"poll-option":!0,voted:o,selected:l},onClick:n=>this.handlePollVote(n,r),disabled:o,key:r},o&&t("div",{class:"poll-bar",style:{width:`${a}%`}}),t("span",{class:"poll-text"},n.text),o&&t("span",{class:"poll-percentage"},a,"%"),l&&t("ur-icon",{name:"check_circle",size:"16px",class:"poll-check"}))}))),t("div",{class:"poll-meta"},t("span",null,e," ",this.votesText)))}renderLockedContent(){return t("div",{class:"locked-placeholder"},t("h3",{class:"post-title"},this.post.title),t("div",{class:"locked-placeholder-body"},t("div",{class:"placeholder-line"}),t("div",{class:"placeholder-line"}),t("div",{class:"placeholder-line short"})))}renderContent(){var n,o,i,e,r,s;const a=(null===(n=this.post)||void 0===n?void 0:n.isSpoiler)&&!this.spoilerRevealed;return!0===(null===(o=this.post)||void 0===o?void 0:o.locked)?t("div",{class:"content blurred"},this.renderLockedContent(),this.renderLockedOverlay()):t("div",{class:{content:!0,blurred:a}},"text"===(null===(i=this.post)||void 0===i?void 0:i.type)&&this.renderTextContent(),"link"===(null===(e=this.post)||void 0===e?void 0:e.type)&&this.renderLinkContent(),"media"===(null===(r=this.post)||void 0===r?void 0:r.type)&&this.renderMediaContent(),"poll"===(null===(s=this.post)||void 0===s?void 0:s.type)&&this.renderPollContent(),a&&this.renderSpoilerOverlay())}renderActions(){return t("div",{class:"actions"},t("div",{class:"action-group"},t("button",{class:{"action-button":!0,active:this.liked},onClick:this.handleLikeClick},t("ur-icon",{name:this.liked?"thumb_up":"thumb_up_outline",size:"18px"})),this.likeCount>0&&t("span",{class:"action-count"},this.formatCount(this.likeCount))),t("div",{class:"action-group"},t("button",{class:"action-button",onClick:this.handleCommentClick},t("ur-icon",{name:"comment--outlined",size:"18px"})),this.commentCount>0&&t("span",{class:"action-count"},this.formatCount(this.commentCount))))}render(){return this.skeleton?this.renderSkeleton():this.post?t(i,null,t("div",{class:"post",onClick:this.handlePostClick},this.renderHeader(),this.renderContent(),this.renderActions())):null}get el(){return e(this)}};r.style=":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";export{r as ur_post_card}
@@ -0,0 +1 @@
1
+ import{r as t,h as i,H as s,a as p}from"./p-DvddpEp7.js";import"./p-BnHMCPA5.js";import"./p-pLhWehn7.js";import"./p-zh2SzAzp.js";import"./p-BaDNPIJn.js";import"./p-CinnKCwG.js";import"./p-DmwpJ3Xb.js";import"./p-CJV4FEOd.js";import"./p-DCmgagZL.js";import"./p-BikcNKGt.js";import"./p-CDMnlt9S.js";import"./p-CRnISBPX.js";import"./p-Bp-zUewd.js";import"./p-BvhH6khE.js";import"./p-CoOsTs05.js";import"./p-DOqf3A_i.js";import"./p-DEJm_QN9.js";import"./p-mNKFcBdT.js";import"./p-yaA8vKgL.js";import"./p-9r9PNduz.js";import"./p-Dyrf810J.js";import"./p-Clv8wqOh.js";const e=class{constructor(i){t(this,i)}componentDidLoad(){const t=this.el.shadowRoot.querySelector("mdui-tabs");t&&(t.addEventListener("change",(t=>{this.updatePanelVisibility(t.target.value)})),setTimeout((()=>{var i;const s=t.value||this.value||(null===(i=this.tabs[0])||void 0===i?void 0:i.value);this.updatePanelVisibility(s)}),10))}updatePanelVisibility(t){this.el.shadowRoot.querySelectorAll("mdui-tab-panel").forEach((i=>{i.style.display=i.getAttribute("value")===t?"block":"none"}))}render(){var t;return i(s,{key:"87b65f11dccb192e6a3d85febb5a7d7d86657e3c"},i("div",{key:"d719f32bedc03ee5aa514085928ee1d301beb5f6",class:"tabs-container"},i("mdui-tabs",{key:"460f9f818ce529d7e4ce1211dc97037f3132441b",value:this.value||(null===(t=this.tabs[0])||void 0===t?void 0:t.value)},this.tabs.map((t=>i("mdui-tab",{value:t.value},t.label)))),i("div",{key:"73db17b6c73d019a3fd472881f464d89878f66e6",class:"panels-container"},this.panels.map((t=>i("mdui-tab-panel",{value:t.value},i("slot",{name:`panel-${t.value}`},t.content)))))))}get el(){return p(this)}};e.style=":host{display:block;width:100%;height:100%}.tabs-container{display:flex;flex-direction:column;height:100%}mdui-tabs{flex:0 0 auto}.panels-container{flex:1;overflow:auto}mdui-tab-panel{padding:16px}";export{e as ur_tabs}
@@ -1 +1 @@
1
- import{r as i,c as t,h as s,H as r}from"./p-DvddpEp7.js";import"./p-B6naz4rR.js";import"./p-Clv8wqOh.js";import"./p-1e41d132.entry.js";import"./p-zh2SzAzp.js";import"./p-BaDNPIJn.js";import"./p-DCmgagZL.js";import"./p-BikcNKGt.js";import"./p-CRnISBPX.js";import"./p-Bm926Ekb.js";import"./p-BnvqNZ1a.js";import"./p-9r9PNduz.js";import"./p-CDMnlt9S.js";import"./p-CinnKCwG.js";import"./p-CJV4FEOd.js";import"./p-Dyrf810J.js";import"./p-Bp-zUewd.js";import"./p-mNKFcBdT.js";import"./p-CDumGMAI.js";import"./p-yaA8vKgL.js";import"./p-Bm8xqKw-.js";import"./p-B8AYZymA.js";import"./p-D3sLxRC_.js";const o=class{constructor(s){i(this,s),this.subscribeClicked=t(this,"subscribeClicked"),this.successContinue=t(this,"successContinue"),this.manageSubscription=t(this,"manageSubscription"),this.planTitle="Premium",this.subtitle="",this.description="",this.price="2.99",this.currency="€",this.period="/month",this.perMonthPrice="",this.perMonthText="/month when billed yearly",this.features="",this.benefitsJson="",this.buttonText="Subscribe",this.highlighted=!1,this.highlightLabel="Best Value",this.disabled=!1,this.unavailable=!1,this.unavailableText="Already subscribed",this.loading=!1,this.loadingText="Processing...",this.skeleton=!1,this.skeletonFeatureCount=5,this.stripePriceId="",this.memberLimit=0,this.currentMembers=0,this.seatsLeftText="{available} of {total} seats left",this.soldOutText="Sold out",this.requiresAddress=!1,this.requiresAddressText="Shipping address required",this.success=!1,this.successTitle="You're now Premium!",this.successMessage="Thank you for subscribing. Enjoy all premium features.",this.successButtonText="Continue",this.subscribed=!1,this.subscribedTitle="Already Premium",this.subscribedMessage="You already have an active subscription.",this.subscribedButtonText="Manage Subscription",this.handleSubscribeClick=()=>{this.disabled||this.loading||this.skeleton||this.subscribeClicked.emit({stripePriceId:this.stripePriceId})},this.handleSuccessContinue=()=>{this.successContinue.emit()},this.handleManageSubscription=()=>{this.manageSubscription.emit()}}getFeaturesList(){return this.features?this.features.split(",").map((i=>i.trim())).filter((i=>i)):[]}getBenefitsList(){if(this.benefitsJson)try{return JSON.parse(this.benefitsJson)}catch(i){return[]}return this.getFeaturesList().map((i=>({text:i,icon:"check"})))}getSeatsAvailable(){return this.memberLimit?Math.max(0,this.memberLimit-this.currentMembers):-1}isSoldOut(){return this.memberLimit>0&&0===this.getSeatsAvailable()}formatSeatsText(){const i=this.getSeatsAvailable();return this.seatsLeftText.replace("{available}",i.toString()).replace("{total}",this.memberLimit.toString())}renderSkeleton(){const i=Array.from({length:this.skeletonFeatureCount},((i,t)=>t));return s(r,null,s("mdui-card",{variant:"outlined",class:"card skeleton"},s("div",{class:"card-content"},s("div",{class:"skeleton-title loading"}),s("div",{class:"skeleton-price-container"},s("div",{class:"skeleton-price loading"})),s("ul",{class:"features"},i.map((()=>s("li",{class:"feature skeleton-feature"},s("div",{class:"skeleton-icon loading"}),s("div",{class:"skeleton-text loading"}))))),s("div",{class:"actions"},s("div",{class:"skeleton-button loading"})))))}renderSuccess(){const i=this.getFeaturesList();return s(r,null,s("mdui-card",{variant:"elevated",class:"card success"},s("div",{class:"card-content"},s("div",{class:"success-icon-container"},s("mdui-icon",{name:"check_circle",class:"success-icon"})),s("h3",{class:"state-title"},this.successTitle),s("p",{class:"state-message"},this.successMessage),i.length>0&&s("ul",{class:"features"},i.map((i=>s("li",{class:"feature"},s("span",{class:"check-badge"},s("mdui-icon",{name:"check"})),s("span",null,i))))),s("div",{class:"actions"},s("ur-button",{variant:"filled",onClick:this.handleSuccessContinue,style:{width:"100%"}},this.successButtonText)))))}renderSubscribed(){const i=this.getFeaturesList();return s(r,null,s("mdui-card",{variant:"outlined",class:"card subscribed"},s("div",{class:"card-content"},s("div",{class:"subscribed-icon-container"},s("mdui-icon",{name:"workspace_premium",class:"subscribed-icon"})),s("h3",{class:"state-title"},this.subscribedTitle),s("p",{class:"state-message"},this.subscribedMessage),i.length>0&&s("ul",{class:"features"},i.map((i=>s("li",{class:"feature"},s("span",{class:"check-badge"},s("mdui-icon",{name:"check"})),s("span",null,i))))),s("div",{class:"actions"},s("ur-button",{variant:"tonal",onClick:this.handleManageSubscription,disabled:this.loading,style:{width:"100%"}},this.loading?this.loadingText:this.subscribedButtonText)))))}render(){if(this.skeleton)return this.renderSkeleton();if(this.success)return this.renderSuccess();if(this.subscribed)return this.renderSubscribed();const i=this.getBenefitsList(),t=this.isSoldOut(),o=this.disabled||this.unavailable||this.loading||t,a=this.memberLimit>0;return s(r,null,s("mdui-card",{variant:this.highlighted?"elevated":"outlined",class:`card ${this.highlighted?"highlighted":""} ${t?"sold-out":""}`},this.highlighted&&s("div",{class:"highlight-label"},this.highlightLabel),s("div",{class:"card-content"},s("h3",{class:"title"},this.planTitle),this.subtitle&&s("p",{class:"subtitle"},this.subtitle),s("div",{class:"price-container"},s("span",{class:"currency"},this.currency),s("span",{class:"price"},this.price),s("span",{class:"period"},this.period)),this.perMonthPrice&&s("p",{class:"per-month"},this.currency,this.perMonthPrice,this.perMonthText),this.description&&s("p",{class:"description"},this.description),i.length>0&&s("ul",{class:"features"},i.map((i=>s("li",{class:"feature"},s("span",{class:"check-badge"},s("mdui-icon",{name:i.icon||"check"})),s("span",null,i.text))))),a&&s("div",{class:"seats-info "+(t?"sold-out":"")},s("mdui-icon",{name:t?"block":"group"}),s("span",null,t?this.soldOutText:this.formatSeatsText())),this.requiresAddress&&s("div",{class:"address-notice"},s("mdui-icon",{name:"local_shipping"}),s("span",null,this.requiresAddressText)),s("div",{class:"actions"},s("ur-button",{variant:"filled",onClick:this.handleSubscribeClick,disabled:o,style:{width:"100%"}},this.loading?this.loadingText:t?this.soldOutText:this.unavailable?this.unavailableText:this.buttonText)))))}};o.style=":host{display:block;width:100%}:host .card{width:100%;padding:24px;position:relative;overflow:visible}:host .card.highlighted{border:2px solid rgb(var(--mdui-color-primary))}:host .highlight-label{position:absolute;top:-12px;left:50%;transform:translateX(-50%);background:rgb(var(--mdui-color-primary));color:rgb(var(--mdui-color-on-primary));padding:4px 12px;border-radius:12px;font-size:12px;font-weight:600;white-space:nowrap}:host .card-content{display:flex;flex-direction:column;align-items:center;gap:16px}:host .title{margin:0;font-size:20px;font-weight:600;color:rgb(var(--mdui-color-on-surface))}:host .subtitle{margin:-8px 0 0 0;font-size:14px;color:rgb(var(--mdui-color-on-surface-variant))}:host .price-container{display:flex;align-items:baseline;gap:2px}:host .currency{font-size:20px;font-weight:500;color:rgb(var(--mdui-color-on-surface))}:host .price{font-size:40px;font-weight:700;color:rgb(var(--mdui-color-on-surface));line-height:1}:host .period{font-size:14px;color:rgb(var(--mdui-color-on-surface-variant))}:host .per-month{margin:-8px 0 0 0;font-size:13px;color:rgb(var(--mdui-color-on-surface-variant))}:host .features{list-style:none;margin:0;padding:0;width:100%}:host .feature{display:flex;align-items:center;gap:8px;padding:8px 0;font-size:14px;color:rgb(var(--mdui-color-on-surface))}:host .check-badge{display:flex;align-items:center;justify-content:center;width:1.2rem;height:1.2rem;border-radius:50%;background:rgb(var(--mdui-color-primary));color:rgb(var(--mdui-color-on-primary));flex-shrink:0}:host .check-badge mdui-icon{font-size:0.85rem}:host .actions{width:100%;margin-top:8px}@keyframes placeholderAnimate{0%{background-position:-650px 0}100%{background-position:650px 0}}:host .skeleton-title.loading{display:block;height:24px;width:70%;margin:0 auto;border-radius:4px;animation-duration:1.7s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:placeholderAnimate;background:linear-gradient(\n to right,\n rgba(var(--mdui-color-on-background), 0.04) 2%,\n rgba(var(--mdui-color-on-background), 0.12) 18%,\n rgba(var(--mdui-color-on-background), 0.04) 33%\n );background-size:1300px}:host .skeleton-price-container{display:flex;justify-content:center}:host .skeleton-price.loading{display:block;height:48px;width:120px;border-radius:4px;animation-duration:1.7s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:placeholderAnimate;background:linear-gradient(\n to right,\n rgba(var(--mdui-color-on-background), 0.04) 2%,\n rgba(var(--mdui-color-on-background), 0.12) 18%,\n rgba(var(--mdui-color-on-background), 0.04) 33%\n );background-size:1300px}:host .skeleton-feature{display:flex;align-items:center;gap:8px}:host .skeleton-icon.loading{display:block;width:18px;height:18px;border-radius:50%;flex-shrink:0;animation-duration:1.7s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:placeholderAnimate;background:linear-gradient(\n to right,\n rgba(var(--mdui-color-on-background), 0.04) 2%,\n rgba(var(--mdui-color-on-background), 0.12) 18%,\n rgba(var(--mdui-color-on-background), 0.04) 33%\n );background-size:1300px}:host .skeleton-text.loading{display:block;height:16px;flex:1;border-radius:4px;animation-duration:1.7s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:placeholderAnimate;background:linear-gradient(\n to right,\n rgba(var(--mdui-color-on-background), 0.04) 2%,\n rgba(var(--mdui-color-on-background), 0.12) 18%,\n rgba(var(--mdui-color-on-background), 0.04) 33%\n );background-size:1300px}:host .skeleton-button.loading{display:block;height:40px;width:100%;border-radius:20px;animation-duration:1.7s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:placeholderAnimate;background:linear-gradient(\n to right,\n rgba(var(--mdui-color-on-background), 0.04) 2%,\n rgba(var(--mdui-color-on-background), 0.12) 18%,\n rgba(var(--mdui-color-on-background), 0.04) 33%\n );background-size:1300px}:host .card.success{border:2px solid rgb(var(--mdui-color-primary))}:host .success-icon-container{display:flex;align-items:center;justify-content:center}:host .success-icon{font-size:4rem;color:rgb(var(--mdui-color-primary))}:host .state-title{margin:0;font-size:24px;font-weight:600;color:rgb(var(--mdui-color-on-surface));text-align:center}:host .state-message{margin:0;font-size:14px;color:rgb(var(--mdui-color-on-surface-variant));text-align:center}:host .card.subscribed{border:1px solid rgb(var(--mdui-color-outline-variant))}:host .subscribed-icon-container{display:flex;align-items:center;justify-content:center}:host .subscribed-icon{font-size:3rem;color:rgb(var(--mdui-color-primary))}:host .description{margin:0;font-size:14px;line-height:1.4;color:rgb(var(--mdui-color-on-surface-variant));text-align:center}:host .seats-info{display:flex;align-items:center;gap:6px;padding:8px 12px;border-radius:8px;background:rgba(var(--mdui-color-primary), 0.08);color:rgb(var(--mdui-color-primary));font-size:13px;font-weight:500}:host .seats-info mdui-icon{font-size:1rem}:host .seats-info.sold-out{background:rgba(var(--mdui-color-error), 0.08);color:rgb(var(--mdui-color-error))}:host .address-notice{display:flex;align-items:center;gap:6px;padding:8px 12px;border-radius:8px;background:rgba(var(--mdui-color-on-surface), 0.05);color:rgb(var(--mdui-color-on-surface-variant));font-size:13px}:host .address-notice mdui-icon{font-size:1rem}:host .card.sold-out{opacity:0.7}";export{o as ur_pricing_card}
1
+ import{r as i,c as t,h as s,H as r}from"./p-DvddpEp7.js";import"./p-B6naz4rR.js";import"./p-Clv8wqOh.js";import"./p-a07f78d9.entry.js";import"./p-zh2SzAzp.js";import"./p-BaDNPIJn.js";import"./p-DCmgagZL.js";import"./p-BikcNKGt.js";import"./p-CRnISBPX.js";import"./p-Bm926Ekb.js";import"./p-BnvqNZ1a.js";import"./p-9r9PNduz.js";import"./p-CDMnlt9S.js";import"./p-CinnKCwG.js";import"./p-CJV4FEOd.js";import"./p-Dyrf810J.js";import"./p-Bp-zUewd.js";import"./p-mNKFcBdT.js";import"./p-CDumGMAI.js";import"./p-yaA8vKgL.js";import"./p-Bm8xqKw-.js";import"./p-B8AYZymA.js";import"./p-D3sLxRC_.js";const o=class{constructor(s){i(this,s),this.subscribeClicked=t(this,"subscribeClicked"),this.successContinue=t(this,"successContinue"),this.manageSubscription=t(this,"manageSubscription"),this.planTitle="Premium",this.subtitle="",this.description="",this.price="2.99",this.currency="€",this.period="/month",this.perMonthPrice="",this.perMonthText="/month when billed yearly",this.features="",this.benefitsJson="",this.buttonText="Subscribe",this.highlighted=!1,this.highlightLabel="Best Value",this.disabled=!1,this.unavailable=!1,this.unavailableText="Already subscribed",this.loading=!1,this.loadingText="Processing...",this.skeleton=!1,this.skeletonFeatureCount=5,this.stripePriceId="",this.memberLimit=0,this.currentMembers=0,this.seatsLeftText="{available} of {total} seats left",this.soldOutText="Sold out",this.requiresAddress=!1,this.requiresAddressText="Shipping address required",this.success=!1,this.successTitle="You're now Premium!",this.successMessage="Thank you for subscribing. Enjoy all premium features.",this.successButtonText="Continue",this.subscribed=!1,this.subscribedTitle="Already Premium",this.subscribedMessage="You already have an active subscription.",this.subscribedButtonText="Manage Subscription",this.handleSubscribeClick=()=>{this.disabled||this.loading||this.skeleton||this.subscribeClicked.emit({stripePriceId:this.stripePriceId})},this.handleSuccessContinue=()=>{this.successContinue.emit()},this.handleManageSubscription=()=>{this.manageSubscription.emit()}}getFeaturesList(){return this.features?this.features.split(",").map((i=>i.trim())).filter((i=>i)):[]}getBenefitsList(){if(this.benefitsJson)try{return JSON.parse(this.benefitsJson)}catch(i){return[]}return this.getFeaturesList().map((i=>({text:i,icon:"check"})))}getSeatsAvailable(){return this.memberLimit?Math.max(0,this.memberLimit-this.currentMembers):-1}isSoldOut(){return this.memberLimit>0&&0===this.getSeatsAvailable()}formatSeatsText(){const i=this.getSeatsAvailable();return this.seatsLeftText.replace("{available}",i.toString()).replace("{total}",this.memberLimit.toString())}renderSkeleton(){const i=Array.from({length:this.skeletonFeatureCount},((i,t)=>t));return s(r,null,s("mdui-card",{variant:"outlined",class:"card skeleton"},s("div",{class:"card-content"},s("div",{class:"skeleton-title loading"}),s("div",{class:"skeleton-price-container"},s("div",{class:"skeleton-price loading"})),s("ul",{class:"features"},i.map((()=>s("li",{class:"feature skeleton-feature"},s("div",{class:"skeleton-icon loading"}),s("div",{class:"skeleton-text loading"}))))),s("div",{class:"actions"},s("div",{class:"skeleton-button loading"})))))}renderSuccess(){const i=this.getFeaturesList();return s(r,null,s("mdui-card",{variant:"elevated",class:"card success"},s("div",{class:"card-content"},s("div",{class:"success-icon-container"},s("mdui-icon",{name:"check_circle",class:"success-icon"})),s("h3",{class:"state-title"},this.successTitle),s("p",{class:"state-message"},this.successMessage),i.length>0&&s("ul",{class:"features"},i.map((i=>s("li",{class:"feature"},s("span",{class:"check-badge"},s("mdui-icon",{name:"check"})),s("span",null,i))))),s("div",{class:"actions"},s("ur-button",{variant:"filled",onClick:this.handleSuccessContinue,style:{width:"100%"}},this.successButtonText)))))}renderSubscribed(){const i=this.getFeaturesList();return s(r,null,s("mdui-card",{variant:"outlined",class:"card subscribed"},s("div",{class:"card-content"},s("div",{class:"subscribed-icon-container"},s("mdui-icon",{name:"workspace_premium",class:"subscribed-icon"})),s("h3",{class:"state-title"},this.subscribedTitle),s("p",{class:"state-message"},this.subscribedMessage),i.length>0&&s("ul",{class:"features"},i.map((i=>s("li",{class:"feature"},s("span",{class:"check-badge"},s("mdui-icon",{name:"check"})),s("span",null,i))))),s("div",{class:"actions"},s("ur-button",{variant:"tonal",onClick:this.handleManageSubscription,disabled:this.loading,style:{width:"100%"}},this.loading?this.loadingText:this.subscribedButtonText)))))}render(){if(this.skeleton)return this.renderSkeleton();if(this.success)return this.renderSuccess();if(this.subscribed)return this.renderSubscribed();const i=this.getBenefitsList(),t=this.isSoldOut(),o=this.disabled||this.unavailable||this.loading||t,a=this.memberLimit>0;return s(r,null,s("mdui-card",{variant:this.highlighted?"elevated":"outlined",class:`card ${this.highlighted?"highlighted":""} ${t?"sold-out":""}`},this.highlighted&&s("div",{class:"highlight-label"},this.highlightLabel),s("div",{class:"card-content"},s("h3",{class:"title"},this.planTitle),this.subtitle&&s("p",{class:"subtitle"},this.subtitle),s("div",{class:"price-container"},s("span",{class:"currency"},this.currency),s("span",{class:"price"},this.price),s("span",{class:"period"},this.period)),this.perMonthPrice&&s("p",{class:"per-month"},this.currency,this.perMonthPrice,this.perMonthText),this.description&&s("p",{class:"description"},this.description),i.length>0&&s("ul",{class:"features"},i.map((i=>s("li",{class:"feature"},s("span",{class:"check-badge"},s("mdui-icon",{name:i.icon||"check"})),s("span",null,i.text))))),a&&s("div",{class:"seats-info "+(t?"sold-out":"")},s("mdui-icon",{name:t?"block":"group"}),s("span",null,t?this.soldOutText:this.formatSeatsText())),this.requiresAddress&&s("div",{class:"address-notice"},s("mdui-icon",{name:"local_shipping"}),s("span",null,this.requiresAddressText)),s("div",{class:"actions"},s("ur-button",{variant:"filled",onClick:this.handleSubscribeClick,disabled:o,style:{width:"100%"}},this.loading?this.loadingText:t?this.soldOutText:this.unavailable?this.unavailableText:this.buttonText)))))}};o.style=":host{display:block;width:100%}:host .card{width:100%;padding:24px;position:relative;overflow:visible}:host .card.highlighted{border:2px solid rgb(var(--mdui-color-primary))}:host .highlight-label{position:absolute;top:-12px;left:50%;transform:translateX(-50%);background:rgb(var(--mdui-color-primary));color:rgb(var(--mdui-color-on-primary));padding:4px 12px;border-radius:12px;font-size:12px;font-weight:600;white-space:nowrap}:host .card-content{display:flex;flex-direction:column;align-items:center;gap:16px}:host .title{margin:0;font-size:20px;font-weight:600;color:rgb(var(--mdui-color-on-surface))}:host .subtitle{margin:-8px 0 0 0;font-size:14px;color:rgb(var(--mdui-color-on-surface-variant))}:host .price-container{display:flex;align-items:baseline;gap:2px}:host .currency{font-size:20px;font-weight:500;color:rgb(var(--mdui-color-on-surface))}:host .price{font-size:40px;font-weight:700;color:rgb(var(--mdui-color-on-surface));line-height:1}:host .period{font-size:14px;color:rgb(var(--mdui-color-on-surface-variant))}:host .per-month{margin:-8px 0 0 0;font-size:13px;color:rgb(var(--mdui-color-on-surface-variant))}:host .features{list-style:none;margin:0;padding:0;width:100%}:host .feature{display:flex;align-items:center;gap:8px;padding:8px 0;font-size:14px;color:rgb(var(--mdui-color-on-surface))}:host .check-badge{display:flex;align-items:center;justify-content:center;width:1.2rem;height:1.2rem;border-radius:50%;background:rgb(var(--mdui-color-primary));color:rgb(var(--mdui-color-on-primary));flex-shrink:0}:host .check-badge mdui-icon{font-size:0.85rem}:host .actions{width:100%;margin-top:8px}@keyframes placeholderAnimate{0%{background-position:-650px 0}100%{background-position:650px 0}}:host .skeleton-title.loading{display:block;height:24px;width:70%;margin:0 auto;border-radius:4px;animation-duration:1.7s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:placeholderAnimate;background:linear-gradient(\n to right,\n rgba(var(--mdui-color-on-background), 0.04) 2%,\n rgba(var(--mdui-color-on-background), 0.12) 18%,\n rgba(var(--mdui-color-on-background), 0.04) 33%\n );background-size:1300px}:host .skeleton-price-container{display:flex;justify-content:center}:host .skeleton-price.loading{display:block;height:48px;width:120px;border-radius:4px;animation-duration:1.7s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:placeholderAnimate;background:linear-gradient(\n to right,\n rgba(var(--mdui-color-on-background), 0.04) 2%,\n rgba(var(--mdui-color-on-background), 0.12) 18%,\n rgba(var(--mdui-color-on-background), 0.04) 33%\n );background-size:1300px}:host .skeleton-feature{display:flex;align-items:center;gap:8px}:host .skeleton-icon.loading{display:block;width:18px;height:18px;border-radius:50%;flex-shrink:0;animation-duration:1.7s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:placeholderAnimate;background:linear-gradient(\n to right,\n rgba(var(--mdui-color-on-background), 0.04) 2%,\n rgba(var(--mdui-color-on-background), 0.12) 18%,\n rgba(var(--mdui-color-on-background), 0.04) 33%\n );background-size:1300px}:host .skeleton-text.loading{display:block;height:16px;flex:1;border-radius:4px;animation-duration:1.7s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:placeholderAnimate;background:linear-gradient(\n to right,\n rgba(var(--mdui-color-on-background), 0.04) 2%,\n rgba(var(--mdui-color-on-background), 0.12) 18%,\n rgba(var(--mdui-color-on-background), 0.04) 33%\n );background-size:1300px}:host .skeleton-button.loading{display:block;height:40px;width:100%;border-radius:20px;animation-duration:1.7s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:placeholderAnimate;background:linear-gradient(\n to right,\n rgba(var(--mdui-color-on-background), 0.04) 2%,\n rgba(var(--mdui-color-on-background), 0.12) 18%,\n rgba(var(--mdui-color-on-background), 0.04) 33%\n );background-size:1300px}:host .card.success{border:2px solid rgb(var(--mdui-color-primary))}:host .success-icon-container{display:flex;align-items:center;justify-content:center}:host .success-icon{font-size:4rem;color:rgb(var(--mdui-color-primary))}:host .state-title{margin:0;font-size:24px;font-weight:600;color:rgb(var(--mdui-color-on-surface));text-align:center}:host .state-message{margin:0;font-size:14px;color:rgb(var(--mdui-color-on-surface-variant));text-align:center}:host .card.subscribed{border:1px solid rgb(var(--mdui-color-outline-variant))}:host .subscribed-icon-container{display:flex;align-items:center;justify-content:center}:host .subscribed-icon{font-size:3rem;color:rgb(var(--mdui-color-primary))}:host .description{margin:0;font-size:14px;line-height:1.4;color:rgb(var(--mdui-color-on-surface-variant));text-align:center}:host .seats-info{display:flex;align-items:center;gap:6px;padding:8px 12px;border-radius:8px;background:rgba(var(--mdui-color-primary), 0.08);color:rgb(var(--mdui-color-primary));font-size:13px;font-weight:500}:host .seats-info mdui-icon{font-size:1rem}:host .seats-info.sold-out{background:rgba(var(--mdui-color-error), 0.08);color:rgb(var(--mdui-color-error))}:host .address-notice{display:flex;align-items:center;gap:6px;padding:8px 12px;border-radius:8px;background:rgba(var(--mdui-color-on-surface), 0.05);color:rgb(var(--mdui-color-on-surface-variant));font-size:13px}:host .address-notice mdui-icon{font-size:1rem}:host .card.sold-out{opacity:0.7}";export{o as ur_pricing_card}
@@ -1 +1 @@
1
- import{r as t,h as e,H as a}from"./p-DvddpEp7.js";const s=class{constructor(e){t(this,e),this.locale="en"}watchDate(){this.updateTime()}watchLocale(){this.updateTime()}componentWillLoad(){this.updateTime(),this.timer=setInterval((()=>this.updateTime()),6e4)}disconnectedCallback(){this.timer&&clearInterval(this.timer)}updateTime(){const t=new Date(this.date),e=new Date,a=Math.floor((e.getTime()-t.getTime())/1e3);let s=Math.floor(a/31536e3);s>=1?this.timeAgo=this.format(s,"year"):(s=Math.floor(a/2592e3),s>=1?this.timeAgo=this.format(s,"month"):(s=Math.floor(a/86400),s>=1?this.timeAgo=this.format(s,"day"):(s=Math.floor(a/3600),s>=1?this.timeAgo=this.format(s,"hour"):(s=Math.floor(a/60),this.timeAgo=s>=1?this.format(s,"minute"):this.format(Math.floor(a),"second")))))}format(t,e){return new Intl.RelativeTimeFormat(this.locale,{numeric:"auto"}).format(-t,e)}render(){return e(a,{key:"1abc497793cd371fc95b41b3171056c4fbcb1b38"},e("span",{key:"9d0e79a5003b5723977bc448ec4ec66aadc46cf7",class:"time-ago",part:"time"},this.timeAgo))}static get watchers(){return{date:["watchDate"],locale:["watchLocale"]}}};s.style=":host{display:inline}:host .time-ago{color:inherit}";export{s as ur_time_ago}
1
+ import{r as t,h as e,H as a}from"./p-DvddpEp7.js";const s=class{constructor(e){t(this,e),this.locale="en"}watchDate(){this.updateTime()}watchLocale(){this.updateTime()}componentWillLoad(){this.updateTime(),this.timer=setInterval((()=>this.updateTime()),6e4)}disconnectedCallback(){this.timer&&clearInterval(this.timer)}updateTime(){const t=new Date(this.date),e=new Date,a=Math.floor((e.getTime()-t.getTime())/1e3);let s=Math.floor(a/31536e3);s>=1?this.timeAgo=this.format(s,"year"):(s=Math.floor(a/2592e3),s>=1?this.timeAgo=this.format(s,"month"):(s=Math.floor(a/86400),s>=1?this.timeAgo=this.format(s,"day"):(s=Math.floor(a/3600),s>=1?this.timeAgo=this.format(s,"hour"):(s=Math.floor(a/60),this.timeAgo=s>=1?this.format(s,"minute"):this.format(Math.floor(a),"second")))))}format(t,e){return new Intl.RelativeTimeFormat(this.locale,{numeric:"auto"}).format(-t,e)}render(){return e(a,{key:"1644e82203373257cd2f607d131a6414434c12cb"},e("span",{key:"bd9282d769b4e80a813d67da99e2046e46eaf14e",class:"time-ago",part:"time"},this.timeAgo))}static get watchers(){return{date:["watchDate"],locale:["watchLocale"]}}};s.style=":host{display:inline}:host .time-ago{color:inherit}";export{s as ur_time_ago}
@@ -0,0 +1 @@
1
+ import{r as i,c as t,h as e,H as s}from"./p-DvddpEp7.js";import"./p-Clv8wqOh.js";import"./p-BnHMCPA5.js";import"./p-cfee56df.entry.js";import"./p-263f0288.entry.js";import"./p-60481eb4.entry.js";import"./p-a07f78d9.entry.js";import"./p-3d11160e.entry.js";import"./p-zh2SzAzp.js";import"./p-BaDNPIJn.js";import"./p-Bp-zUewd.js";import"./p-BikcNKGt.js";import"./p-mNKFcBdT.js";import"./p-CinnKCwG.js";import"./p-DmwpJ3Xb.js";import"./p-CJV4FEOd.js";import"./p-DCmgagZL.js";import"./p-CDMnlt9S.js";import"./p-CRnISBPX.js";import"./p-BvhH6khE.js";import"./p-CoOsTs05.js";import"./p-DOqf3A_i.js";import"./p-DEJm_QN9.js";import"./p-yaA8vKgL.js";import"./p-9r9PNduz.js";import"./p-Dyrf810J.js";import"./p-oFwy-5pT.js";import"./p-BnvqNZ1a.js";import"./p-BmqCYfl3.js";import"./p-B103FkQR.js";import"./p-B8AYZymA.js";import"./p-xjvHLpY2.js";import"./p-B5jYRBDz.js";import"./p-DJx6zFbF.js";import"./p-Bm8xqKw-.js";import"./p-Bm926Ekb.js";import"./p-D3sLxRC_.js";import"./p-BTcgXI3W.js";import"./p-FXZebMHX.js";import"./p-CDumGMAI.js";const o=class{constructor(e){i(this,e),this.postSaved=t(this,"postSaved"),this.postCancelled=t(this,"postCancelled"),this.mediaUploadClicked=t(this,"mediaUploadClicked"),this.mediaRemoveClicked=t(this,"mediaRemoveClicked"),this.post=null,this.mode="create",this.skeleton=!1,this.saving=!1,this.hasSubscribers=!1,this.tiers=[],this.media=[],this.maxMedia=4,this.textTabText="Text",this.mediaTabText="Images & Video",this.linkTabText="Link",this.pollTabText="Poll",this.titleLabelText="Title",this.titlePlaceholderText="What's on your mind?",this.bodyLabelText="Body (optional)",this.bodyPlaceholderText="Share more details...",this.linkUrlLabelText="Link URL",this.linkUrlPlaceholderText="https://...",this.mediaUploadText="Drag and drop or click to upload",this.mediaHintText="Images up to 4MB",this.spoilerLabelText="Spoiler",this.spoilerHintText="May ruin a surprise",this.audienceLabelText="Who can see this?",this.publicText="Public",this.publicHintText="Anyone can see",this.followersText="Followers",this.followersHintText="Only your followers",this.subscribersText="Subscribers",this.subscribersHintText="Only your paying subscribers",this.privateText="Private",this.privateHintText="Only you can see",this.selectTiersText="Select tiers",this.allTiersText="All tiers",this.allTiersHintText="All paying subscribers can see",this.specificTiersText="Specific tiers",this.specificTiersHintText="Only selected tiers can see",this.postBtnText="Post",this.saveBtnText="Post",this.savingBtnText="Posting...",this.cancelBtnText="Cancel",this.pollOptionsLabelText="Poll options",this.pollOptionPlaceholderText="Option",this.addOptionText="Add another option",this.maxPollOptions=6,this.defaultTab="text",this.activeTab="text",this.title="",this.body="",this.linkUrl="",this.pollOptions=["",""],this.isSpoiler=!1,this.audience="public",this.tierSelectionMode="all",this.selectedTierIds=[],this.handleTabChange=i=>{var t;if("edit"===this.mode)return i.preventDefault(),void i.stopPropagation();const e=null===(t=i.target)||void 0===t?void 0:t.value;e&&(this.activeTab=e)},this.handleTitleChange=i=>{this.title=i.detail.value},this.handleBodyChange=i=>{this.body=i.detail.value},this.handleLinkUrlChange=i=>{this.linkUrl=i.detail.value},this.handleSpoilerChange=i=>{this.isSpoiler=i.detail.checked},this.handleAudienceChange=i=>{this.audience=i,"subscribers"!==i&&(this.tierSelectionMode="all",this.selectedTierIds=[])},this.handleTierSelectionModeChange=i=>{this.tierSelectionMode=i,"all"===i&&(this.selectedTierIds=[])},this.handlePollOptionChange=(i,t)=>{const e=[...this.pollOptions];e[i]=t.detail.value,this.pollOptions=e},this.handleRemovePollOption=i=>{this.pollOptions.length>2&&(this.pollOptions=this.pollOptions.filter(((t,e)=>e!==i)))},this.handleAddPollOption=()=>{this.pollOptions.length<this.maxPollOptions&&(this.pollOptions=[...this.pollOptions,""])},this.handleMediaUploadClick=()=>{this.mediaUploadClicked.emit()},this.handleMediaRemove=i=>{this.mediaRemoveClicked.emit({index:i,media:this.media[i]})},this.handleSave=()=>{var i;if(!this.isValid())return;const t={_id:null===(i=this.post)||void 0===i?void 0:i._id,type:this.activeTab,title:this.title.trim(),body:("text"===this.activeTab||"link"===this.activeTab||"media"===this.activeTab)&&this.body.trim()||void 0,linkUrl:"link"===this.activeTab&&this.linkUrl.trim()||void 0,pollOptions:"poll"===this.activeTab?this.pollOptions.filter((i=>i.trim())).map((i=>({text:i.trim()}))):void 0,media:"media"===this.activeTab&&this.media&&this.media.length>0?this.media:void 0,isSpoiler:this.isSpoiler,audience:this.audience,audienceTiers:"subscribers"===this.audience&&"specific"===this.tierSelectionMode&&this.selectedTierIds.length>0?this.selectedTierIds:void 0};this.postSaved.emit(t)},this.handleCancel=()=>{this.postCancelled.emit()},this.handleTierModeRadioChange=i=>{this.handleTierSelectionModeChange(i.detail.value)},this.handleTierCheckboxChange=(i,t)=>{const e=t.detail.checked;e&&!this.selectedTierIds.includes(i)?this.selectedTierIds=[...this.selectedTierIds,i]:!e&&this.selectedTierIds.includes(i)&&(this.selectedTierIds=this.selectedTierIds.filter((t=>t!==i)))}}postChanged(i){this.initializeFromPost(i)}defaultTabChanged(i){this.post||"create"!==this.mode||(this.activeTab=i)}componentWillLoad(){this.initializeFromPost(this.post)}initializeFromPost(i){var t;i?(this.activeTab=i.type||this.defaultTab,this.title=i.title||"",this.body=i.body||"",this.linkUrl=i.linkUrl||"",this.pollOptions=(null===(t=i.pollOptions)||void 0===t?void 0:t.map((i=>i.text)))||["",""],this.isSpoiler=i.isSpoiler||!1,this.audience=i.audience||"public",i.audienceTiers&&i.audienceTiers.length>0?(this.tierSelectionMode="specific",this.selectedTierIds=[...i.audienceTiers]):(this.tierSelectionMode="all",this.selectedTierIds=[])):(this.activeTab=this.defaultTab,this.title="",this.body="",this.linkUrl="",this.pollOptions=["",""],this.isSpoiler=!1,this.audience="public",this.tierSelectionMode="all",this.selectedTierIds=[])}isValid(){if(!this.title.trim())return!1;switch(this.activeTab){case"text":case"media":return!0;case"link":return this.linkUrl.trim().length>0;case"poll":return this.pollOptions.filter((i=>i.trim())).length>=2;default:return!1}}renderSkeleton(){return e(s,null,e("div",{class:"editor-container"},e("div",{class:"skeleton-tabs loading"}),e("div",{class:"form-section"},e("div",{class:"skeleton-field loading"}),e("div",{class:"skeleton-field tall loading"})),e("div",{class:"form-actions"},e("div",{class:"skeleton-button loading"}),e("div",{class:"skeleton-button loading"}))))}renderPollOptions(){const i="edit"===this.mode,t=!i&&this.pollOptions.length<this.maxPollOptions,s=!i&&this.pollOptions.length>2;return e("div",{class:"poll-options"},e("label",{class:"section-label"},this.pollOptionsLabelText),e("div",{class:"poll-options-list"},this.pollOptions.map(((t,o)=>e("div",{class:"poll-option-row",key:o},e("ur-text-field",{label:`${this.pollOptionPlaceholderText} ${o+1}`,value:t,name:`pollOption${o}`,maxlength:65,counter:!i,disabled:i,onValueChanged:i=>this.handlePollOptionChange(o,i)}),s&&e("ur-button-icon",{icon:"close",class:"remove-option-btn",onClick:()=>this.handleRemovePollOption(o)})))),t&&e("button",{type:"button",class:"add-option-btn",onClick:this.handleAddPollOption},e("mdui-icon",{name:"add"}),this.addOptionText)))}renderTextContent(){return e("div",{class:"form-section"},e("ur-text-field",{label:this.bodyLabelText,placeholder:this.bodyPlaceholderText,value:this.body,name:"body",maxlength:5e3,counter:!0,rows:4,autosize:!0,minRows:3,onValueChanged:this.handleBodyChange}))}renderMediaContent(){const i=!this.media||this.media.length<this.maxMedia;return[this.media&&this.media.length>0&&e("div",{class:"form-section"},e("div",{class:"media-preview-grid"},this.media.map(((i,t)=>e("div",{class:"media-preview-item",key:t},"video"===i.type?e("div",{class:"media-preview-video"},e("img",{src:i.thumbnailUrl||i.url,alt:""}),e("div",{class:"video-indicator"},e("mdui-icon",{name:"play_circle"}))):e("img",{src:i.url,alt:""}),e("button",{type:"button",class:"media-remove-btn",onClick:()=>this.handleMediaRemove(t),"aria-label":"Remove"},e("mdui-icon",{name:"close"}))))))),i&&e("div",{class:"form-section"},e("div",{class:"media-upload-area",onClick:this.handleMediaUploadClick},e("mdui-icon",{name:"cloud_upload"}),e("span",{class:"media-upload-text"},this.mediaUploadText),e("span",{class:"media-upload-hint"},this.mediaHintText))),e("div",{class:"form-section"},e("ur-text-field",{label:this.bodyLabelText,placeholder:this.bodyPlaceholderText,value:this.body,name:"body",maxlength:5e3,counter:!0,rows:3,autosize:!0,minRows:2,onValueChanged:this.handleBodyChange}))]}renderLinkContent(){return[e("div",{class:"form-section"},e("ur-text-field",{label:this.linkUrlLabelText,placeholder:this.linkUrlPlaceholderText,value:this.linkUrl,name:"linkUrl",type:"url",required:!0,onValueChanged:this.handleLinkUrlChange})),e("div",{class:"form-section"},e("ur-text-field",{label:this.bodyLabelText,placeholder:this.bodyPlaceholderText,value:this.body,name:"body",maxlength:5e3,counter:!0,rows:3,autosize:!0,minRows:2,onValueChanged:this.handleBodyChange}))]}renderPollContent(){return e("div",{class:"form-section"},this.renderPollOptions())}renderTabContent(){switch(this.activeTab){case"text":return this.renderTextContent();case"media":return this.renderMediaContent();case"link":return this.renderLinkContent();case"poll":return this.renderPollContent();default:return null}}formatTierPrice(i){var t;const e=(i.pricePerMonth/100).toFixed(2),s=(null===(t=i.currency)||void 0===t?void 0:t.toUpperCase())||"EUR";return`${"EUR"===s?"€":"USD"===s?"$":s}${e}/mo`}renderTierSelector(){return"subscribers"===this.audience&&this.tiers&&0!==this.tiers.length?e("div",{class:"form-section tier-selector"},e("label",{class:"section-label"},this.selectTiersText),e("div",{class:"tier-mode-options"},e("ur-radio-button",{name:"tierMode",value:"all",checked:"all"===this.tierSelectionMode,onValueSelected:this.handleTierModeRadioChange,fullWidth:!0},e("div",{class:"tier-mode-content"},e("span",{class:"tier-mode-label"},this.allTiersText),e("span",{class:"tier-mode-hint"},this.allTiersHintText))),e("ur-radio-button",{name:"tierMode",value:"specific",checked:"specific"===this.tierSelectionMode,onValueSelected:this.handleTierModeRadioChange,fullWidth:!0},e("div",{class:"tier-mode-content"},e("span",{class:"tier-mode-label"},this.specificTiersText),e("span",{class:"tier-mode-hint"},this.specificTiersHintText)))),"specific"===this.tierSelectionMode&&e("div",{class:"tier-list"},this.tiers.map((i=>e("ur-checkbox",{key:i._id,value:i._id,checked:this.selectedTierIds.includes(i._id),onValueChanged:t=>this.handleTierCheckboxChange(i._id,t),fullWidth:!0},e("div",{class:"tier-item-content"},e("span",{class:"tier-name"},i.name),e("span",{class:"tier-price"},this.formatTierPrice(i)))))))):null}renderAudienceSelector(){return e("div",{class:"form-section"},e("label",{class:"section-label"},this.audienceLabelText),e("div",{class:"audience-options"},e("button",{type:"button",class:"audience-option "+("public"===this.audience?"selected":""),onClick:()=>this.handleAudienceChange("public")},e("span",{class:"audience-icon"},e("mdui-icon",{name:"public"})),e("span",{class:"audience-text"},e("span",{class:"audience-label"},this.publicText),e("span",{class:"audience-hint"},this.publicHintText))),e("button",{type:"button",class:"audience-option "+("private"===this.audience?"selected":""),onClick:()=>this.handleAudienceChange("private")},e("span",{class:"audience-icon"},e("mdui-icon",{name:"lock"})),e("span",{class:"audience-text"},e("span",{class:"audience-label"},this.privateText),e("span",{class:"audience-hint"},this.privateHintText))),e("button",{type:"button",class:"audience-option "+("followers"===this.audience?"selected":""),onClick:()=>this.handleAudienceChange("followers")},e("span",{class:"audience-icon"},e("mdui-icon",{name:"group"})),e("span",{class:"audience-text"},e("span",{class:"audience-label"},this.followersText),e("span",{class:"audience-hint"},this.followersHintText))),this.hasSubscribers&&e("button",{type:"button",class:"audience-option "+("subscribers"===this.audience?"selected":""),onClick:()=>this.handleAudienceChange("subscribers")},e("span",{class:"audience-icon"},e("mdui-icon",{name:"loyalty"})),e("span",{class:"audience-text"},e("span",{class:"audience-label"},this.subscribersText),e("span",{class:"audience-hint"},this.subscribersHintText)))))}render(){if(this.skeleton)return this.renderSkeleton();const i="create"===this.mode,t=i?this.postBtnText:this.saveBtnText;return e(s,null,e("div",{class:"editor-container"},e("div",{class:{"tabs-wrapper":!0,"edit-mode":!i}},e("mdui-tabs",{value:this.activeTab,variant:"primary",onChange:this.handleTabChange},e("mdui-tab",{value:"text"},e("mdui-icon",{slot:"icon",name:"edit_note"}),this.textTabText),e("mdui-tab",{value:"media"},e("mdui-icon",{slot:"icon",name:"image"}),this.mediaTabText),e("mdui-tab",{value:"link"},e("mdui-icon",{slot:"icon",name:"link"}),this.linkTabText),e("mdui-tab",{value:"poll"},e("mdui-icon",{slot:"icon",name:"poll"}),this.pollTabText))),e("div",{class:"form-section"},e("ur-text-field",{label:this.titleLabelText,placeholder:this.titlePlaceholderText,value:this.title,name:"title",maxlength:200,counter:!0,required:!0,onValueChanged:this.handleTitleChange})),e("div",{class:"tab-content"},this.renderTabContent()),e("div",{class:"form-section checkbox-section"},e("ur-checkbox",{checked:this.isSpoiler,onValueChanged:this.handleSpoilerChange},e("div",{class:"checkbox-content"},e("span",{class:"checkbox-label"},this.spoilerLabelText),e("span",{class:"checkbox-hint"},this.spoilerHintText)))),this.renderAudienceSelector(),this.renderTierSelector(),e("div",{class:"form-actions"},e("ur-button",{variant:"text",onClick:this.handleCancel,disabled:this.saving},this.cancelBtnText),e("ur-button",{variant:"filled",onClick:this.handleSave,disabled:!this.isValid()||this.saving},this.saving?this.savingBtnText:t))))}static get watchers(){return{post:["postChanged"],defaultTab:["defaultTabChanged"]}}};o.style=":host{display:block}:host .editor-container{display:flex;flex-direction:column;gap:1.5rem;width:100%;max-width:550px}:host .tabs-wrapper{margin-bottom:0.5rem}:host .tabs-wrapper mdui-tab{font-size:14px}:host .tabs-wrapper.edit-mode mdui-tab:not([active]){display:none}:host .tabs-wrapper.edit-mode mdui-tab[active]{pointer-events:none}:host .tab-content{display:flex;flex-direction:column;gap:1.5rem}:host .form-section{display:flex;flex-direction:column;gap:0.5rem}:host .section-label{font-size:14px;font-weight:600;line-height:20px;letter-spacing:0.1px;color:rgb(var(--mdui-color-on-surface));margin-bottom:0.25rem}:host .media-upload-area{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0.75rem;padding:2.5rem 1rem;border:2px dashed rgba(var(--mdui-color-outline), 0.5);border-radius:12px;cursor:pointer;transition:all 0.2s ease;background:rgba(var(--mdui-color-surface-variant), 0.2)}:host .media-upload-area:hover{border-color:rgb(var(--mdui-color-primary));background:rgba(var(--mdui-color-primary), 0.05)}:host .media-upload-area mdui-icon{font-size:48px;color:rgb(var(--mdui-color-on-surface-variant));opacity:0.6}:host .media-upload-text{font-size:14px;font-weight:500;color:rgb(var(--mdui-color-on-surface))}:host .media-upload-hint{font-size:12px;color:rgb(var(--mdui-color-on-surface-variant))}:host .media-preview-grid{display:grid;grid-template-columns:repeat(2, 1fr);gap:0.5rem}:host .media-preview-item{position:relative;aspect-ratio:1;border-radius:8px;overflow:hidden;background:rgba(var(--mdui-color-surface-variant), 0.3)}:host .media-preview-item img{width:100%;height:100%;object-fit:cover}:host .media-preview-video{position:relative;width:100%;height:100%}:host .media-preview-video img{width:100%;height:100%;object-fit:cover}:host .media-preview-video .video-indicator{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);color:white;text-shadow:0 2px 4px rgba(0, 0, 0, 0.3)}:host .media-preview-video .video-indicator mdui-icon{font-size:40px}:host .media-remove-btn{position:absolute;top:4px;right:4px;display:flex;align-items:center;justify-content:center;width:28px;height:28px;border:none;border-radius:50%;background:rgba(0, 0, 0, 0.6);color:white;cursor:pointer;transition:background-color 0.2s}:host .media-remove-btn:hover{background:rgba(var(--mdui-color-error), 0.9)}:host .media-remove-btn mdui-icon{font-size:18px}:host .poll-options{display:flex;flex-direction:column;gap:0.5rem}:host .poll-options-list{display:flex;flex-direction:column;gap:0.75rem}:host .poll-option-row{display:flex;align-items:flex-start;gap:0.5rem}:host .poll-option-row ur-text-field{flex:1}:host .poll-option-row .remove-option-btn{margin-top:8px;flex-shrink:0}:host .add-option-btn{display:inline-flex;align-items:center;justify-content:flex-start;gap:0.25rem;padding:0.5rem 0;border:none;background:transparent;cursor:pointer;font-size:14px;font-weight:500;color:rgb(var(--mdui-color-primary));transition:opacity 0.2s}:host .add-option-btn:hover{opacity:0.8}:host .add-option-btn mdui-icon{font-size:20px}:host .checkbox-section{padding:0}:host .checkbox-content{display:flex;flex-direction:column;gap:0.125rem}:host .checkbox-label{font-size:14px;font-weight:500;line-height:20px;color:rgb(var(--mdui-color-on-surface))}:host .checkbox-hint{font-size:12px;line-height:16px;color:rgb(var(--mdui-color-on-surface-variant))}:host .audience-options{display:flex;flex-direction:column;gap:0.5rem}:host .audience-option{display:flex;align-items:center;gap:0.75rem;padding:0.75rem 1rem;background:rgba(var(--mdui-color-surface-variant), 0.3);border:2px solid transparent;border-radius:8px;cursor:pointer;transition:all 0.2s ease;text-align:left}:host .audience-option:hover{background:rgba(var(--mdui-color-surface-variant), 0.5)}:host .audience-option.selected{background:rgba(var(--mdui-color-primary), 0.1);border-color:rgb(var(--mdui-color-primary))}:host .audience-icon{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:rgba(var(--mdui-color-on-surface), 0.08);color:rgb(var(--mdui-color-on-surface-variant));flex-shrink:0;transition:all 0.2s ease}:host .audience-option.selected .audience-icon{background:rgb(var(--mdui-color-primary));color:rgb(var(--mdui-color-on-primary))}:host .audience-icon mdui-icon{font-size:18px}:host .audience-text{display:flex;flex-direction:column;gap:0.125rem;flex:1}:host .audience-label{font-size:14px;font-weight:500;line-height:20px;color:rgb(var(--mdui-color-on-surface))}:host .audience-hint{font-size:12px;line-height:16px;color:rgb(var(--mdui-color-on-surface-variant))}:host .tier-selector{margin-top:-0.5rem;padding-left:1rem;border-left:3px solid rgba(var(--mdui-color-primary), 0.3)}:host .tier-mode-options{display:flex;flex-direction:column;gap:0.25rem}:host .tier-mode-content{display:flex;flex-direction:column;gap:0.125rem}:host .tier-mode-label{font-size:14px;font-weight:500;line-height:20px;color:rgb(var(--mdui-color-on-surface))}:host .tier-mode-hint{font-size:12px;line-height:16px;color:rgb(var(--mdui-color-on-surface-variant))}:host .tier-list{display:flex;flex-direction:column;gap:0.25rem;margin-top:0.5rem;padding-left:0.25rem}:host .tier-item-content{display:flex;align-items:center;justify-content:space-between;flex:1;gap:0.5rem}:host .tier-name{font-size:13px;font-weight:500;color:rgb(var(--mdui-color-on-surface))}:host .tier-price{font-size:12px;font-weight:500;color:rgb(var(--mdui-color-on-surface-variant))}:host .form-actions{display:flex;align-items:center;justify-content:space-between;padding-top:1rem;border-top:1px solid rgba(var(--mdui-color-outline-variant), 0.5);margin-top:0.5rem}@keyframes skeleton-loading{0%{background-position:-650px 0}100%{background-position:650px 0}}:host .loading{animation-duration:1.7s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:skeleton-loading;background:linear-gradient(\n to right,\n rgba(var(--mdui-color-on-background), 0.04) 2%,\n rgba(var(--mdui-color-on-background), 0.12) 18%,\n rgba(var(--mdui-color-on-background), 0.04) 33%\n );background-size:1000px;border-radius:4px}:host .skeleton-tabs{height:48px;width:100%;border-radius:8px}:host .skeleton-field{height:56px;width:100%;border-radius:8px}:host .skeleton-field.tall{height:120px}:host .skeleton-button{height:40px;width:100px;border-radius:20px}";export{o as ur_post_editor}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as i,H as e}from"./p-DvddpEp7.js";import"./p-BnHMCPA5.js";import"./p-pLhWehn7.js";import"./p-zh2SzAzp.js";import"./p-BaDNPIJn.js";import"./p-CinnKCwG.js";import"./p-DmwpJ3Xb.js";import"./p-CJV4FEOd.js";import"./p-DCmgagZL.js";import"./p-BikcNKGt.js";import"./p-CDMnlt9S.js";import"./p-CRnISBPX.js";import"./p-Bp-zUewd.js";import"./p-BvhH6khE.js";import"./p-CoOsTs05.js";import"./p-DOqf3A_i.js";import"./p-DEJm_QN9.js";import"./p-mNKFcBdT.js";import"./p-yaA8vKgL.js";import"./p-9r9PNduz.js";import"./p-Dyrf810J.js";import"./p-Clv8wqOh.js";const a=class{constructor(i){t(this,i),this.tabChange=s(this,"tabChange"),this.activeTab="stories",this.homeTabText="Home",this.storiesTabText="Stories",this.postsTabText="Posts",this.libraryTabText="Shelves",this.transactionsTabText="Transactions",this.statisticsTabText="Statistics",this.settingsTabText="Settings",this.aboutTabText="About",this.earningsTabText="Earnings",this.isOwner=!1,this.isPartner=!1,this.homeTabEnabled=!1,this.fullWidthTabs=!0,this.isMobile=!1,this.handleTabChange=t=>{var s;const i=null===(s=t.target)||void 0===s?void 0:s.value;i&&this.tabChange.emit(i)}}componentWillLoad(){this.activeTab&&this.tabChange.emit(this.activeTab)}activeTabChanged(t){console.log("[ur-user-profile-tabs] activeTab changed to:",t)}isOwnerChanged(t){console.log("[ur-user-profile-tabs] isOwner changed to:",t)}homeTabEnabledChanged(t){console.log("[ur-user-profile-tabs] homeTabEnabled changed to:",t)}isPartnerChanged(t){console.log("[ur-user-profile-tabs] isPartner changed to:",t)}getTabs(){return[{value:"home",text:()=>this.homeTabText,visibleFor:this.homeTabEnabled?"all":"owner"},{value:"stories",text:()=>this.storiesTabText,visibleFor:"all"},{value:"posts",text:()=>this.postsTabText,visibleFor:"all"},{value:"collection",text:()=>this.libraryTabText,visibleFor:"all"},{value:"transactions",text:()=>this.transactionsTabText,visibleFor:"owner"},{value:"earnings",text:()=>this.earningsTabText,visibleFor:"partner"},{value:"statistics",text:()=>this.statisticsTabText,visibleFor:"owner"},{value:"settings",text:()=>this.settingsTabText,visibleFor:"owner"},{value:"about",text:()=>this.aboutTabText,visibleFor:"all",mobileOnly:!0}]}getVisibleTabs(){return this.getTabs().filter((t=>{let s=!1;return"all"===t.visibleFor?s=!0:"owner"===t.visibleFor?s=this.isOwner:"partner"===t.visibleFor&&(s=this.isOwner&&this.isPartner),s&&(!t.mobileOnly||this.isMobile)}))}render(){const t=this.getVisibleTabs();return i(e,{key:"cc1cd1f74e29ba6d8ae275944d1d1bca4a6708b6"},i("mdui-tabs",{key:"31ac1e55841e7578d91704c14d321e8b04ae325c",value:this.activeTab,onChange:this.handleTabChange,"full-width-tabs":this.fullWidthTabs},t.map((t=>i("mdui-tab",{key:t.value,value:t.value},t.text()))),t.map((t=>i("mdui-tab-panel",{key:t.value,slot:"panel",value:t.value},i("slot",{name:t.value}))))))}static get watchers(){return{activeTab:["activeTabChanged"],isOwner:["isOwnerChanged"],homeTabEnabled:["homeTabEnabledChanged"],isPartner:["isPartnerChanged"]}}};a.style=":host{display:block}mdui-tabs::part(container){border-bottom:1px solid rgb(var(--mdui-color-surface-variant))}mdui-tabs::part(container)::after{display:none !important}";export{a as ur_user_profile_tabs}