@penwin/discord-components-core 4.3.8 → 4.3.9-dev-32917005672.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (207) hide show
  1. package/CHANGELOG.md +826 -826
  2. package/LICENSE.md +20 -0
  3. package/README.md +673 -673
  4. package/custom-elements.json +1803 -1708
  5. package/dist/bundle/index.mjs +1898 -1981
  6. package/dist/bundle/index.mjs.map +1 -1
  7. package/dist/bundle/styles/base.css +1 -2
  8. package/dist/components/_private/BaseDiscordSelectMenuOption.js +72 -72
  9. package/dist/components/_private/DiscordMediaAttachmentStyles.js +114 -114
  10. package/dist/components/_private/DiscordPlaybackControlStyles.js +153 -153
  11. package/dist/components/_private/DiscordVolumeControlStyles.js +158 -158
  12. package/dist/components/_private/DiscordWhiteSpace.js +4 -4
  13. package/dist/components/discord-action-row/DiscordActionRow.js +6 -6
  14. package/dist/components/discord-attachments/DiscordAttachments.js +18 -18
  15. package/dist/components/discord-audio-attachment/DiscordAudioAttachment.js +202 -202
  16. package/dist/components/discord-author-info/DiscordAuthorInfo.d.ts.map +1 -1
  17. package/dist/components/discord-author-info/DiscordAuthorInfo.js +156 -156
  18. package/dist/components/discord-author-info/DiscordAuthorInfo.js.map +1 -1
  19. package/dist/components/discord-bold/DiscordBold.js +4 -4
  20. package/dist/components/discord-button/DiscordButton.d.ts.map +1 -1
  21. package/dist/components/discord-button/DiscordButton.js +131 -128
  22. package/dist/components/discord-button/DiscordButton.js.map +1 -1
  23. package/dist/components/discord-channel-select-menu-option/DiscordChannelSelectMenuOption.js +131 -131
  24. package/dist/components/discord-code/DiscordCode.js +64 -64
  25. package/dist/components/discord-code-block/DiscordCodeBlock.js +2 -2
  26. package/dist/components/discord-command/DiscordCommand.js +109 -109
  27. package/dist/components/discord-components-column/DiscordComponentsColumn.js +18 -18
  28. package/dist/components/discord-container/DiscordContainer.js +47 -47
  29. package/dist/components/discord-custom-emoji/DiscordCustomEmoji.js +36 -36
  30. package/dist/components/discord-embed/DiscordEmbed.d.ts.map +1 -1
  31. package/dist/components/discord-embed/DiscordEmbed.js +285 -285
  32. package/dist/components/discord-embed/DiscordEmbed.js.map +1 -1
  33. package/dist/components/discord-embed-description/DiscordEmbedDescription.js +25 -25
  34. package/dist/components/discord-embed-field/DiscordEmbedField.js +40 -40
  35. package/dist/components/discord-embed-fields/DiscordEmbedFields.js +19 -19
  36. package/dist/components/discord-embed-footer/DiscordEmbedFooter.js +36 -36
  37. package/dist/components/discord-file-attachment/DiscordFileAttachment.js +191 -191
  38. package/dist/components/discord-forwarded-message/DiscordForwardedMessage.js +126 -126
  39. package/dist/components/discord-header/DiscordHeader.js +27 -27
  40. package/dist/components/discord-image-attachment/DiscordImageAttachment.js +38 -38
  41. package/dist/components/discord-input-text/DiscordInputText.js +284 -284
  42. package/dist/components/discord-invite/DiscordInvite.js +225 -225
  43. package/dist/components/discord-italic/DiscordItalic.js +4 -4
  44. package/dist/components/discord-link/DiscordLink.js +19 -19
  45. package/dist/components/discord-list-item/DiscordListItem.d.ts.map +1 -1
  46. package/dist/components/discord-list-item/DiscordListItem.js +8 -5
  47. package/dist/components/discord-list-item/DiscordListItem.js.map +1 -1
  48. package/dist/components/discord-media-fullscreen-previewer/DiscordMediaFullscreenPreviewer.js +463 -463
  49. package/dist/components/discord-media-gallery/DiscordMediaGallery.js +219 -219
  50. package/dist/components/discord-media-gallery-item/DiscordMediaGalleryItem.d.ts.map +1 -1
  51. package/dist/components/discord-media-gallery-item/DiscordMediaGalleryItem.js +102 -99
  52. package/dist/components/discord-media-gallery-item/DiscordMediaGalleryItem.js.map +1 -1
  53. package/dist/components/discord-media-spoileable-cover/DiscordMediaSpoileableCover.js +65 -65
  54. package/dist/components/discord-mention/DiscordMention.js +66 -66
  55. package/dist/components/discord-message/DiscordMessage.d.ts.map +1 -1
  56. package/dist/components/discord-message/DiscordMessage.js +338 -335
  57. package/dist/components/discord-message/DiscordMessage.js.map +1 -1
  58. package/dist/components/discord-messages/DiscordMessages.js +77 -77
  59. package/dist/components/discord-modal/DiscordModal.js +465 -465
  60. package/dist/components/discord-ordered-list/DiscordOrderedList.d.ts.map +1 -1
  61. package/dist/components/discord-ordered-list/DiscordOrderedList.js +20 -14
  62. package/dist/components/discord-ordered-list/DiscordOrderedList.js.map +1 -1
  63. package/dist/components/discord-poll/DiscordPoll.js +157 -157
  64. package/dist/components/discord-poll-answer/DiscordPollAnswer.js +227 -227
  65. package/dist/components/discord-pre/DiscordPre.js +18 -18
  66. package/dist/components/discord-quote/DiscordQuote.js +31 -31
  67. package/dist/components/discord-reaction/DiscordReaction.js +73 -73
  68. package/dist/components/discord-reactions/DiscordReactions.js +9 -9
  69. package/dist/components/discord-reply/DiscordReply.d.ts.map +1 -1
  70. package/dist/components/discord-reply/DiscordReply.js +246 -246
  71. package/dist/components/discord-reply/DiscordReply.js.map +1 -1
  72. package/dist/components/discord-role-select-menu-option/DiscordRoleSelectMenuOption.js +75 -75
  73. package/dist/components/discord-section/DiscordSection.js +6 -6
  74. package/dist/components/discord-section-components/DiscordSectionComponents.js +14 -14
  75. package/dist/components/discord-select-menu-portal/DiscordSelectMenuPortal.js +30 -30
  76. package/dist/components/discord-separator/DiscordSeparator.js +9 -9
  77. package/dist/components/discord-spoiler/DiscordSpoiler.js +31 -31
  78. package/dist/components/discord-string-select-menu/DiscordStringSelectMenu.js +192 -192
  79. package/dist/components/discord-string-select-menu-option/DiscordStringSelectMenuOption.js +45 -45
  80. package/dist/components/discord-subscript/DiscordSubscript.js +15 -15
  81. package/dist/components/discord-system-message/DiscordSystemMessage.d.ts.map +1 -1
  82. package/dist/components/discord-system-message/DiscordSystemMessage.js +134 -131
  83. package/dist/components/discord-system-message/DiscordSystemMessage.js.map +1 -1
  84. package/dist/components/discord-tenor-video/DiscordTenorVideo.js +76 -76
  85. package/dist/components/discord-text-display/DiscordTextDisplay.js +10 -10
  86. package/dist/components/discord-text-file-attachment-previewer/DiscordTextFileAttachmentPreviewer.js +55 -55
  87. package/dist/components/discord-thread/DiscordThread.js +81 -81
  88. package/dist/components/discord-thread-message/DiscordThreadMessage.js +90 -90
  89. package/dist/components/discord-thumbnail/DiscordThumbnail.js +20 -20
  90. package/dist/components/discord-time/DiscordTime.js +7 -7
  91. package/dist/components/discord-transcript-header/DiscordTranscriptHeader.js +51 -51
  92. package/dist/components/discord-unordered-list/DiscordUnorderedList.d.ts.map +1 -1
  93. package/dist/components/discord-unordered-list/DiscordUnorderedList.js +18 -15
  94. package/dist/components/discord-unordered-list/DiscordUnorderedList.js.map +1 -1
  95. package/dist/components/discord-user-select-menu-option/DiscordUserSelectMenuOption.js +58 -58
  96. package/dist/components/discord-verified-author-tag/DiscordVerifiedAuthorTag.js +36 -36
  97. package/dist/components/discord-video-attachment/DiscordVideoAttachment.js +494 -494
  98. package/dist/components/discord-voice-message/DiscordVoiceMessage.js +255 -255
  99. package/dist/components/svgs/AttachmentDownloadButton.js +67 -67
  100. package/dist/components/svgs/AttachmentReply.js +5 -5
  101. package/dist/components/svgs/Boost.js +3 -3
  102. package/dist/components/svgs/ChannelForum.js +19 -19
  103. package/dist/components/svgs/ChannelIcon.js +17 -17
  104. package/dist/components/svgs/ChannelThread.js +15 -15
  105. package/dist/components/svgs/ChannelsAndRoles.js +23 -23
  106. package/dist/components/svgs/CommandIcon.js +4 -4
  107. package/dist/components/svgs/CommandIconName.js +5 -5
  108. package/dist/components/svgs/CommandReply.js +9 -9
  109. package/dist/components/svgs/CustomizeCommunity.js +17 -17
  110. package/dist/components/svgs/DMCall.js +6 -6
  111. package/dist/components/svgs/DMEdit.js +8 -8
  112. package/dist/components/svgs/DMMissedCall.js +8 -8
  113. package/dist/components/svgs/Ephemeral.js +21 -21
  114. package/dist/components/svgs/ExpandMore.js +4 -4
  115. package/dist/components/svgs/FileAttachment.js +10 -10
  116. package/dist/components/svgs/GuildBadge.js +8 -8
  117. package/dist/components/svgs/LaunchIcon.js +9 -9
  118. package/dist/components/svgs/LockedVoiceChannel.js +17 -17
  119. package/dist/components/svgs/MediaPauseIcon.js +2 -2
  120. package/dist/components/svgs/MediaPlayIcon.js +2 -2
  121. package/dist/components/svgs/MediaRestartIcon.js +2 -2
  122. package/dist/components/svgs/MediaVolumeAbove50PercentIcon.js +3 -3
  123. package/dist/components/svgs/MediaVolumeBelow50PercentIcon.js +2 -2
  124. package/dist/components/svgs/MediaVolumeMutedIcon.js +2 -2
  125. package/dist/components/svgs/MessageIcon.js +3 -3
  126. package/dist/components/svgs/ModalClose.js +4 -4
  127. package/dist/components/svgs/ModalWarning.js +5 -5
  128. package/dist/components/svgs/PartnerBadgeOverlay.js +11 -11
  129. package/dist/components/svgs/Pin.js +5 -5
  130. package/dist/components/svgs/PremiumIcon.js +6 -6
  131. package/dist/components/svgs/ReplyIcon.js +5 -5
  132. package/dist/components/svgs/ServerGuide.js +17 -17
  133. package/dist/components/svgs/ServerUpgrade.js +7 -7
  134. package/dist/components/svgs/SystemAlert.js +7 -7
  135. package/dist/components/svgs/SystemError.js +6 -6
  136. package/dist/components/svgs/Thread.js +9 -9
  137. package/dist/components/svgs/UserJoin.js +5 -5
  138. package/dist/components/svgs/UserLeave.js +5 -5
  139. package/dist/components/svgs/VerifiedBadgeOverlay.js +4 -4
  140. package/dist/components/svgs/VerifiedTick.js +13 -13
  141. package/dist/components/svgs/VideoFullScreenIcon.js +8 -8
  142. package/dist/components/svgs/VideoPausePopIcon.js +2 -2
  143. package/dist/components/svgs/VideoPlayPopIcon.js +2 -2
  144. package/dist/components/svgs/VoiceChannel.js +19 -19
  145. package/dist/components/svgs/clan-icons/Crystal.js +27 -27
  146. package/dist/components/svgs/clan-icons/Diamond.js +35 -35
  147. package/dist/components/svgs/clan-icons/Explosion.js +30 -30
  148. package/dist/components/svgs/clan-icons/Flame.js +23 -23
  149. package/dist/components/svgs/clan-icons/Flower.js +18 -18
  150. package/dist/components/svgs/clan-icons/Heart.js +19 -19
  151. package/dist/components/svgs/clan-icons/Key.js +32 -32
  152. package/dist/components/svgs/clan-icons/Leaf.js +23 -23
  153. package/dist/components/svgs/clan-icons/Lightning.js +25 -25
  154. package/dist/components/svgs/clan-icons/Magic.js +34 -34
  155. package/dist/components/svgs/clan-icons/Moon.js +21 -21
  156. package/dist/components/svgs/clan-icons/Mushroom.js +33 -33
  157. package/dist/components/svgs/clan-icons/Mythical.js +32 -32
  158. package/dist/components/svgs/clan-icons/Ornament.js +48 -48
  159. package/dist/components/svgs/clan-icons/Plasma.js +23 -23
  160. package/dist/components/svgs/clan-icons/Rock.js +20 -20
  161. package/dist/components/svgs/clan-icons/Shell.js +29 -29
  162. package/dist/components/svgs/clan-icons/Skull.js +28 -28
  163. package/dist/components/svgs/clan-icons/Sun.js +36 -36
  164. package/dist/components/svgs/clan-icons/Sword.js +27 -27
  165. package/dist/components/svgs/clan-icons/Water.js +20 -20
  166. package/dist/config.d.ts +1 -1
  167. package/dist/config.d.ts.map +1 -1
  168. package/dist/config.js +9 -3
  169. package/dist/config.js.map +1 -1
  170. package/dist/hydrate/index.d.ts +40 -0
  171. package/dist/hydrate/index.d.ts.map +1 -0
  172. package/dist/hydrate/index.js +48 -0
  173. package/dist/hydrate/index.js.map +1 -0
  174. package/package.json +222 -219
  175. package/dist/bundle/styles/base.css.map +0 -1
  176. package/dist/components/discord-container copy/DiscordContainer.d.ts +0 -22
  177. package/dist/components/discord-container copy/DiscordContainer.d.ts.map +0 -1
  178. package/dist/components/discord-container copy/DiscordContainer.js +0 -159
  179. package/dist/components/discord-container copy/DiscordContainer.js.map +0 -1
  180. package/dist/components/discord-media-fullscreen-previewer/context.d.ts +0 -10
  181. package/dist/components/discord-media-fullscreen-previewer/context.d.ts.map +0 -1
  182. package/dist/components/discord-media-fullscreen-previewer/context.js +0 -3
  183. package/dist/components/discord-media-fullscreen-previewer/context.js.map +0 -1
  184. package/dist/components/discord-media-gallery-tem/DiscordMediaGalleryItem.d.ts +0 -26
  185. package/dist/components/discord-media-gallery-tem/DiscordMediaGalleryItem.d.ts.map +0 -1
  186. package/dist/components/discord-media-gallery-tem/DiscordMediaGalleryItem.js +0 -183
  187. package/dist/components/discord-media-gallery-tem/DiscordMediaGalleryItem.js.map +0 -1
  188. package/dist/components/discord-section/DiscordContainer.d.ts +0 -22
  189. package/dist/components/discord-section/DiscordContainer.d.ts.map +0 -1
  190. package/dist/components/discord-section/DiscordContainer.js +0 -159
  191. package/dist/components/discord-section/DiscordContainer.js.map +0 -1
  192. package/dist/components/discord-section copy/DiscordSection.d.ts +0 -15
  193. package/dist/components/discord-section copy/DiscordSection.d.ts.map +0 -1
  194. package/dist/components/discord-section copy/DiscordSection.js +0 -77
  195. package/dist/components/discord-section copy/DiscordSection.js.map +0 -1
  196. package/dist/components/discord-section-components/DiscordSection.d.ts +0 -15
  197. package/dist/components/discord-section-components/DiscordSection.d.ts.map +0 -1
  198. package/dist/components/discord-section-components/DiscordSection.js +0 -77
  199. package/dist/components/discord-section-components/DiscordSection.js.map +0 -1
  200. package/dist/components/discord-text-display/DiscordSection.d.ts +0 -15
  201. package/dist/components/discord-text-display/DiscordSection.d.ts.map +0 -1
  202. package/dist/components/discord-text-display/DiscordSection.js +0 -79
  203. package/dist/components/discord-text-display/DiscordSection.js.map +0 -1
  204. package/dist/components/discord-text-file-attachment-preview/DiscordTextFileAttachmentPreviewer.d.ts +0 -71
  205. package/dist/components/discord-text-file-attachment-preview/DiscordTextFileAttachmentPreviewer.d.ts.map +0 -1
  206. package/dist/components/discord-text-file-attachment-preview/DiscordTextFileAttachmentPreviewer.js +0 -238
  207. package/dist/components/discord-text-file-attachment-preview/DiscordTextFileAttachmentPreviewer.js.map +0 -1
@@ -50,362 +50,362 @@ let DiscordVideoAttachment = class DiscordVideoAttachment extends DiscordMediaLi
50
50
  DiscordVolumeControlStyles,
51
51
  DiscordPlaybackControlStyles,
52
52
  DiscordMediaAttachmentStyles,
53
- css `
54
- :host {
55
- display: grid;
56
- height: -moz-fit-content;
57
- height: fit-content;
58
- grid-auto-flow: row;
59
- grid-row-gap: 0.25rem;
60
- grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
61
- text-indent: 0;
62
- min-height: 0;
63
- min-width: 0;
64
- padding-top: 0.125rem;
65
- padding-bottom: 0.125rem;
66
- position: relative;
67
-
68
- --seek-before-width: 0%;
69
- --buffered-width: 0%;
70
- --volume-slider-opacity: 0;
71
- }
72
-
73
- :host .discord-button-download-attachment {
74
- top: 5px !important;
75
- right: 5px !important;
76
- }
77
-
78
- :host([is-in-media-full-screen-previewer]) {
79
- display: flex;
80
- align-items: center;
81
- justify-content: center;
82
-
83
- .discord-media-attachment-non-visual-media-item-container {
84
- margin-top: 0;
85
-
86
- &.isFullScreen {
87
- .discord-video-attachment-wrapper {
88
- background-color: transparent;
89
- }
90
- .discord-video-attachment-video-container {
91
- max-height: 100vh;
92
- max-width: 100vw;
93
- height: 100vh;
94
- width: 100vw;
95
- object-fit: contain;
96
- }
97
- }
98
- }
99
-
100
- .discord-video-attachment-one-by-one-grid {
101
- margin: 0;
102
- max-height: inherit;
103
- }
104
-
105
- .discord-video-attachment-image-wrapper {
106
- width: unset;
107
- height: unset;
108
- }
109
-
110
- .discord-button-download-attachment {
111
- display: none !important;
112
- }
113
- .discord-video-attachment-video-container {
114
- object-fit: contain;
115
- }
116
-
117
- .discord-video-attachment-loading-overlay {
118
- display: flex;
119
- align-items: center;
120
- justify-content: center;
121
- }
122
-
123
- .discord-video-attachment-wrapper {
124
- width: unset;
125
- height: unset;
126
- }
127
- }
128
-
129
- .discord-video-attachment-one-by-one-grid {
130
- max-width: 100%;
131
- border-radius: 8px;
132
- overflow: hidden;
133
- display: inline-block;
134
- width: -moz-fit-content;
135
- width: fit-content;
136
- max-height: 350px;
137
- }
138
-
139
- .discord-media-attachment-mosaic-item-media {
140
- overflow: hidden;
141
- align-items: start;
142
- justify-self: auto !important;
143
- }
144
-
145
- .discord-video-attachment-image-wrapper {
146
- display: block;
147
- max-height: inherit;
148
- margin: auto;
149
- width: 550px;
150
- height: 100%;
151
- flex: auto;
152
- position: relative;
153
- -webkit-user-select: text;
154
- -moz-user-select: text;
155
- user-select: text;
156
- overflow: hidden;
157
- border-radius: 3px;
158
- }
159
-
160
- /* .discord-video-attachment-loading-overlay {
161
- aspect-ratio: 1.74603 / 1;
162
- width: 100%;
163
- height: 100%;
164
- } */
165
-
166
- .discord-video-attachment-wrapper {
167
- height: 100%;
168
- width: 100%;
169
- max-height: inherit;
170
- position: relative;
171
- overflow: hidden;
172
- border-radius: 3px;
173
- color: hsl(0 calc(1 * 0%) 100% / 1);
174
- -webkit-user-select: none;
175
- -moz-user-select: none;
176
- user-select: none;
177
- background-color: hsl(225 calc(1 * 6.3%) 12.5% / 1);
178
- }
179
-
180
- .discord-video-attachment-wrapper-light-theme.discord-video-attachment-wrapper {
181
- background-color: hsl(0 calc(1 * 0%) 97.6% / 1);
182
- }
183
-
184
- .discord-video-attachment-video-container {
185
- aspect-ratio: var(--width) / var(--height);
186
- width: 100%;
187
- height: 100%;
188
- max-height: var(--current-media-container-height, inherit);
189
- object-fit: cover;
190
- position: relative;
191
- display: block;
192
- -o-object-fit: cover;
193
- border-radius: 3px;
194
- }
195
-
196
- :host(:not(.video-attachment-in-fullscreen-previewer)) {
197
- .discord-video-attachment-video-container {
198
- max-height: 350px;
199
- max-width: 550px;
200
- object-fit: contain;
201
- -o-object-fit: contain;
202
- object-position: left;
203
- }
204
-
205
- .discord-video-attachment-wrapper {
206
- max-height: 350px;
207
- max-width: 550px;
208
- width: unset;
209
- aspect-ratio: var(--width) / var(--height);
210
- }
211
- .discord-video-attachment-image-wrapper {
212
- width: fit-content;
213
- }
214
-
215
- .isFullScreen {
216
- .discord-video-attachment-wrapper {
217
- aspect-ratio: unset;
218
- width: 100%;
219
- max-height: unset;
220
- max-width: unset;
221
- }
222
-
223
- .discord-video-attachment-video-container {
224
- aspect-ratio: unset;
225
- max-height: unset;
226
- max-width: unset;
227
- object-position: unset;
228
- }
229
- }
230
- }
231
-
232
- .discord-video-attachment-video-container::-webkit-media-controls-enclosure {
233
- display: none !important;
234
- }
235
-
236
- .discord-video-attachment-video-controls {
237
- position: absolute;
238
- left: 0;
239
- right: 0;
240
- bottom: -80px;
241
- padding-bottom: 10px;
242
- width: 100%;
243
- display: flex;
244
- align-items: center;
245
- background-color: hsl(0 calc(1 * 0%) 0% / 0.6);
246
- height: 32px;
247
- transition: bottom 0.25s ease-out;
248
- }
249
-
250
- .play-overlay-container {
251
- position: absolute;
252
- inset: 0;
253
- display: flex;
254
- align-items: center;
255
- justify-content: center;
256
- z-index: 10;
257
- cursor: pointer;
258
-
259
- .discord-media-attachment-control-icon {
260
- width: 24px;
261
- height: 24px;
262
- background-color: hsl(0 calc(1 * 0%) 0% /1);
263
- color: hsl(0 calc(1 * 0%) 100% /1);
264
- padding: 12px;
265
- border-radius: 50%;
266
- opacity: 0.6;
267
- transition: opacity 0.25s;
268
- }
269
-
270
- &:hover .discord-media-attachment-control-icon {
271
- opacity: 0.8;
272
- }
273
- }
274
-
275
- .discord-video-attachment-one-by-one-grid:hover .discord-video-attachment-video-controls {
276
- bottom: -10px;
277
- }
278
-
279
- .discord-video-attachment-video-button {
280
- margin-right: 8px;
281
- }
282
-
283
- .discord-video-attachment-control-icon {
284
- display: block;
285
- width: 24px;
286
- height: 24px;
287
- padding: 4px;
288
- cursor: pointer;
289
- flex: 0 0 auto;
290
- opacity: 0.6;
291
- }
292
-
293
- .discord-video-attachment-duration-time-wrapper {
294
- flex: 0 0 auto;
295
- margin: 4px;
296
- height: 12px;
297
- }
298
-
299
- .discord-video-attachment-duration-time-display {
300
- font-weight: 500;
301
- display: inline-block;
302
- font-family:
303
- 'gg mono', 'Source Code Pro', Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', 'Lucida Sans Typewriter',
304
- 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono', 'Nimbus Mono L', Monaco, 'Courier New', Courier, monospace;
305
- font-size: 12px;
306
- line-height: 12px;
307
- vertical-align: text-top;
308
- }
309
-
310
- .discord-video-attachment-duration-time-separator {
311
- margin: 0 2px;
312
- }
313
-
314
- .discord-video-attachment-full-screen-button {
315
- cursor: pointer;
316
- margin-right: 8px;
317
- width: auto;
318
- background: transparent;
319
- color: currentColor;
320
- border: 0;
321
- padding: 0;
322
- margin: 0;
323
- position: relative;
324
- display: flex;
325
- justify-content: center;
326
- align-items: center;
327
- box-sizing: border-box;
328
- border-radius: 3px;
329
- font-size: 14px;
330
- font-weight: 500;
331
- line-height: 16px;
332
- -webkit-user-select: none;
333
- -moz-user-select: none;
334
- user-select: none;
335
- }
336
-
337
- .discord-video-attachment-play-pause-pop {
338
- opacity: 0;
339
- transform: scale(2.5) translateZ(0px);
340
- position: absolute;
341
- top: 50%;
342
- left: 50%;
343
- margin-left: -23px;
344
- margin-top: -23px;
345
- padding: 12px;
346
- width: 24px;
347
- height: 24px;
348
- background-color: hsl(0 calc(1 * 0%) 0% / 0.6);
349
- color: hsl(0 calc(1 * 0%) 100% / 1);
350
- border-radius: 50%;
351
- pointer-events: none;
352
- }
353
-
354
- .discord-video-attachment-play-pause-pop-icon {
355
- width: 24px;
356
- height: 24px;
357
- display: block;
358
- }
359
-
360
- .discord-video-attachment-horizontal {
361
- width: 100%;
362
- display: flex;
363
- align-self: stretch;
364
- }
365
-
366
- .discord-video-attachment-media-bar-interaction {
367
- position: relative;
368
- flex: 1 1 auto;
369
- align-self: stretch;
370
- display: flex;
371
- align-items: center;
372
- cursor: pointer;
373
- margin: 0 7px;
374
- }
375
-
376
- @keyframes playPausePopIconKeyframes {
377
- 0% {
378
- opacity: 0;
379
- }
380
- 100% {
381
- opacity: 0;
382
- }
383
- }
384
-
385
- .discord-video-attachment-overlay-content-hidden {
386
- animation: playPausePopIconKeyframes 0.2s ease-in-out infinite;
387
- }
388
-
389
- .discord-video-attachment-video-controls.isFullScreen {
390
- bottom: -80px !important;
391
- &.showControlsInFullScreen {
392
- bottom: -10px !important;
393
- }
394
- }
395
-
396
- .no-duration-indicator {
397
- .discord-video-attachment-video-controls:not(.isFullScreen) {
398
- .discord-media-attachment-duration-time-wrapper {
399
- display: none !important;
400
- }
401
- }
402
- }
403
-
404
- .discord-video-attachment-video-controls {
405
- .discord-media-attachment-playback-control {
406
- width: 100%;
407
- }
408
- }
53
+ css `
54
+ :host {
55
+ display: grid;
56
+ height: -moz-fit-content;
57
+ height: fit-content;
58
+ grid-auto-flow: row;
59
+ grid-row-gap: 0.25rem;
60
+ grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
61
+ text-indent: 0;
62
+ min-height: 0;
63
+ min-width: 0;
64
+ padding-top: 0.125rem;
65
+ padding-bottom: 0.125rem;
66
+ position: relative;
67
+
68
+ --seek-before-width: 0%;
69
+ --buffered-width: 0%;
70
+ --volume-slider-opacity: 0;
71
+ }
72
+
73
+ :host .discord-button-download-attachment {
74
+ top: 5px !important;
75
+ right: 5px !important;
76
+ }
77
+
78
+ :host([is-in-media-full-screen-previewer]) {
79
+ display: flex;
80
+ align-items: center;
81
+ justify-content: center;
82
+
83
+ .discord-media-attachment-non-visual-media-item-container {
84
+ margin-top: 0;
85
+
86
+ &.isFullScreen {
87
+ .discord-video-attachment-wrapper {
88
+ background-color: transparent;
89
+ }
90
+ .discord-video-attachment-video-container {
91
+ max-height: 100vh;
92
+ max-width: 100vw;
93
+ height: 100vh;
94
+ width: 100vw;
95
+ object-fit: contain;
96
+ }
97
+ }
98
+ }
99
+
100
+ .discord-video-attachment-one-by-one-grid {
101
+ margin: 0;
102
+ max-height: inherit;
103
+ }
104
+
105
+ .discord-video-attachment-image-wrapper {
106
+ width: unset;
107
+ height: unset;
108
+ }
109
+
110
+ .discord-button-download-attachment {
111
+ display: none !important;
112
+ }
113
+ .discord-video-attachment-video-container {
114
+ object-fit: contain;
115
+ }
116
+
117
+ .discord-video-attachment-loading-overlay {
118
+ display: flex;
119
+ align-items: center;
120
+ justify-content: center;
121
+ }
122
+
123
+ .discord-video-attachment-wrapper {
124
+ width: unset;
125
+ height: unset;
126
+ }
127
+ }
128
+
129
+ .discord-video-attachment-one-by-one-grid {
130
+ max-width: 100%;
131
+ border-radius: 8px;
132
+ overflow: hidden;
133
+ display: inline-block;
134
+ width: -moz-fit-content;
135
+ width: fit-content;
136
+ max-height: 350px;
137
+ }
138
+
139
+ .discord-media-attachment-mosaic-item-media {
140
+ overflow: hidden;
141
+ align-items: start;
142
+ justify-self: auto !important;
143
+ }
144
+
145
+ .discord-video-attachment-image-wrapper {
146
+ display: block;
147
+ max-height: inherit;
148
+ margin: auto;
149
+ width: 550px;
150
+ height: 100%;
151
+ flex: auto;
152
+ position: relative;
153
+ -webkit-user-select: text;
154
+ -moz-user-select: text;
155
+ user-select: text;
156
+ overflow: hidden;
157
+ border-radius: 3px;
158
+ }
159
+
160
+ /* .discord-video-attachment-loading-overlay {
161
+ aspect-ratio: 1.74603 / 1;
162
+ width: 100%;
163
+ height: 100%;
164
+ } */
165
+
166
+ .discord-video-attachment-wrapper {
167
+ height: 100%;
168
+ width: 100%;
169
+ max-height: inherit;
170
+ position: relative;
171
+ overflow: hidden;
172
+ border-radius: 3px;
173
+ color: hsl(0 calc(1 * 0%) 100% / 1);
174
+ -webkit-user-select: none;
175
+ -moz-user-select: none;
176
+ user-select: none;
177
+ background-color: hsl(225 calc(1 * 6.3%) 12.5% / 1);
178
+ }
179
+
180
+ .discord-video-attachment-wrapper-light-theme.discord-video-attachment-wrapper {
181
+ background-color: hsl(0 calc(1 * 0%) 97.6% / 1);
182
+ }
183
+
184
+ .discord-video-attachment-video-container {
185
+ aspect-ratio: var(--width) / var(--height);
186
+ width: 100%;
187
+ height: 100%;
188
+ max-height: var(--current-media-container-height, inherit);
189
+ object-fit: cover;
190
+ position: relative;
191
+ display: block;
192
+ -o-object-fit: cover;
193
+ border-radius: 3px;
194
+ }
195
+
196
+ :host(:not(.video-attachment-in-fullscreen-previewer)) {
197
+ .discord-video-attachment-video-container {
198
+ max-height: 350px;
199
+ max-width: 550px;
200
+ object-fit: contain;
201
+ -o-object-fit: contain;
202
+ object-position: left;
203
+ }
204
+
205
+ .discord-video-attachment-wrapper {
206
+ max-height: 350px;
207
+ max-width: 550px;
208
+ width: unset;
209
+ aspect-ratio: var(--width) / var(--height);
210
+ }
211
+ .discord-video-attachment-image-wrapper {
212
+ width: fit-content;
213
+ }
214
+
215
+ .isFullScreen {
216
+ .discord-video-attachment-wrapper {
217
+ aspect-ratio: unset;
218
+ width: 100%;
219
+ max-height: unset;
220
+ max-width: unset;
221
+ }
222
+
223
+ .discord-video-attachment-video-container {
224
+ aspect-ratio: unset;
225
+ max-height: unset;
226
+ max-width: unset;
227
+ object-position: unset;
228
+ }
229
+ }
230
+ }
231
+
232
+ .discord-video-attachment-video-container::-webkit-media-controls-enclosure {
233
+ display: none !important;
234
+ }
235
+
236
+ .discord-video-attachment-video-controls {
237
+ position: absolute;
238
+ left: 0;
239
+ right: 0;
240
+ bottom: -80px;
241
+ padding-bottom: 10px;
242
+ width: 100%;
243
+ display: flex;
244
+ align-items: center;
245
+ background-color: hsl(0 calc(1 * 0%) 0% / 0.6);
246
+ height: 32px;
247
+ transition: bottom 0.25s ease-out;
248
+ }
249
+
250
+ .play-overlay-container {
251
+ position: absolute;
252
+ inset: 0;
253
+ display: flex;
254
+ align-items: center;
255
+ justify-content: center;
256
+ z-index: 10;
257
+ cursor: pointer;
258
+
259
+ .discord-media-attachment-control-icon {
260
+ width: 24px;
261
+ height: 24px;
262
+ background-color: hsl(0 calc(1 * 0%) 0% /1);
263
+ color: hsl(0 calc(1 * 0%) 100% /1);
264
+ padding: 12px;
265
+ border-radius: 50%;
266
+ opacity: 0.6;
267
+ transition: opacity 0.25s;
268
+ }
269
+
270
+ &:hover .discord-media-attachment-control-icon {
271
+ opacity: 0.8;
272
+ }
273
+ }
274
+
275
+ .discord-video-attachment-one-by-one-grid:hover .discord-video-attachment-video-controls {
276
+ bottom: -10px;
277
+ }
278
+
279
+ .discord-video-attachment-video-button {
280
+ margin-right: 8px;
281
+ }
282
+
283
+ .discord-video-attachment-control-icon {
284
+ display: block;
285
+ width: 24px;
286
+ height: 24px;
287
+ padding: 4px;
288
+ cursor: pointer;
289
+ flex: 0 0 auto;
290
+ opacity: 0.6;
291
+ }
292
+
293
+ .discord-video-attachment-duration-time-wrapper {
294
+ flex: 0 0 auto;
295
+ margin: 4px;
296
+ height: 12px;
297
+ }
298
+
299
+ .discord-video-attachment-duration-time-display {
300
+ font-weight: 500;
301
+ display: inline-block;
302
+ font-family:
303
+ 'gg mono', 'Source Code Pro', Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', 'Lucida Sans Typewriter',
304
+ 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono', 'Nimbus Mono L', Monaco, 'Courier New', Courier, monospace;
305
+ font-size: 12px;
306
+ line-height: 12px;
307
+ vertical-align: text-top;
308
+ }
309
+
310
+ .discord-video-attachment-duration-time-separator {
311
+ margin: 0 2px;
312
+ }
313
+
314
+ .discord-video-attachment-full-screen-button {
315
+ cursor: pointer;
316
+ margin-right: 8px;
317
+ width: auto;
318
+ background: transparent;
319
+ color: currentColor;
320
+ border: 0;
321
+ padding: 0;
322
+ margin: 0;
323
+ position: relative;
324
+ display: flex;
325
+ justify-content: center;
326
+ align-items: center;
327
+ box-sizing: border-box;
328
+ border-radius: 3px;
329
+ font-size: 14px;
330
+ font-weight: 500;
331
+ line-height: 16px;
332
+ -webkit-user-select: none;
333
+ -moz-user-select: none;
334
+ user-select: none;
335
+ }
336
+
337
+ .discord-video-attachment-play-pause-pop {
338
+ opacity: 0;
339
+ transform: scale(2.5) translateZ(0px);
340
+ position: absolute;
341
+ top: 50%;
342
+ left: 50%;
343
+ margin-left: -23px;
344
+ margin-top: -23px;
345
+ padding: 12px;
346
+ width: 24px;
347
+ height: 24px;
348
+ background-color: hsl(0 calc(1 * 0%) 0% / 0.6);
349
+ color: hsl(0 calc(1 * 0%) 100% / 1);
350
+ border-radius: 50%;
351
+ pointer-events: none;
352
+ }
353
+
354
+ .discord-video-attachment-play-pause-pop-icon {
355
+ width: 24px;
356
+ height: 24px;
357
+ display: block;
358
+ }
359
+
360
+ .discord-video-attachment-horizontal {
361
+ width: 100%;
362
+ display: flex;
363
+ align-self: stretch;
364
+ }
365
+
366
+ .discord-video-attachment-media-bar-interaction {
367
+ position: relative;
368
+ flex: 1 1 auto;
369
+ align-self: stretch;
370
+ display: flex;
371
+ align-items: center;
372
+ cursor: pointer;
373
+ margin: 0 7px;
374
+ }
375
+
376
+ @keyframes playPausePopIconKeyframes {
377
+ 0% {
378
+ opacity: 0;
379
+ }
380
+ 100% {
381
+ opacity: 0;
382
+ }
383
+ }
384
+
385
+ .discord-video-attachment-overlay-content-hidden {
386
+ animation: playPausePopIconKeyframes 0.2s ease-in-out infinite;
387
+ }
388
+
389
+ .discord-video-attachment-video-controls.isFullScreen {
390
+ bottom: -80px !important;
391
+ &.showControlsInFullScreen {
392
+ bottom: -10px !important;
393
+ }
394
+ }
395
+
396
+ .no-duration-indicator {
397
+ .discord-video-attachment-video-controls:not(.isFullScreen) {
398
+ .discord-media-attachment-duration-time-wrapper {
399
+ display: none !important;
400
+ }
401
+ }
402
+ }
403
+
404
+ .discord-video-attachment-video-controls {
405
+ .discord-media-attachment-playback-control {
406
+ width: 100%;
407
+ }
408
+ }
409
409
  `
410
410
  ]; }
411
411
  async handleFullScreenClicked() {
@@ -455,164 +455,164 @@ let DiscordVideoAttachment = class DiscordVideoAttachment extends DiscordMediaLi
455
455
  this.handleMouseMoveInFullScreen();
456
456
  }
457
457
  render() {
458
- return html `<div
458
+ return html `<div
459
459
  class=${classMap({
460
460
  'discord-media-attachment-non-visual-media-item-container': true,
461
461
  isFullScreen: this.isFullScreen,
462
462
  'no-duration-indicator': Boolean(this.width && this.height && (this.width / this.height) * 350 < 300)
463
- })}
463
+ })}
464
464
  style=${styleMap({
465
465
  '--width': this.width,
466
466
  '--height': this.height
467
- })}
468
- >
469
- ${when(!this.isClickedPlayOverlay && !this.isInMediaFullScreenPreviewer, () => html `<div class="play-overlay-container" @click=${this.handleClickPlayOverlay}>
470
- ${MediaPlayIcon({ class: 'discord-media-attachment-control-icon' })}
471
- </div>`)}
472
- <div class="discord-video-attachment-one-by-one-grid">
473
- <div class="discord-media-attachment-mosaic-item-media">
474
- <div class="discord-video-attachment-image-wrapper">
475
- <div
476
- class="discord-video-attachment-loading-overlay"
477
- ${ref(this.fullScreenContainerRef)}
478
- @fullscreenchange=${this.handleFullScreenChange}
479
- @mousemove=${this.handleMouseMoveInFullScreen}
480
- >
481
- <div
467
+ })}
468
+ >
469
+ ${when(!this.isClickedPlayOverlay && !this.isInMediaFullScreenPreviewer, () => html `<div class="play-overlay-container" @click=${this.handleClickPlayOverlay}>
470
+ ${MediaPlayIcon({ class: 'discord-media-attachment-control-icon' })}
471
+ </div>`)}
472
+ <div class="discord-video-attachment-one-by-one-grid">
473
+ <div class="discord-media-attachment-mosaic-item-media">
474
+ <div class="discord-video-attachment-image-wrapper">
475
+ <div
476
+ class="discord-video-attachment-loading-overlay"
477
+ ${ref(this.fullScreenContainerRef)}
478
+ @fullscreenchange=${this.handleFullScreenChange}
479
+ @mousemove=${this.handleMouseMoveInFullScreen}
480
+ >
481
+ <div
482
482
  class=${classMap({
483
483
  'discord-video-attachment-wrapper': true,
484
484
  'discord-video-attachment-wrapper-light-theme': this.lightTheme
485
- })}
486
- >
487
- <video
488
- ${ref(this.mediaComponentRef)}
489
- class="discord-video-attachment-video-container"
490
- playsinline
491
- height="315"
492
- preload="metadata"
493
- width="550"
494
- role="button"
495
- poster=${ifDefined(this.poster)}
496
- @play=${this.handleHasStartedPlayingOrHasPaused}
497
- @pause=${this.handleHasStartedPlayingOrHasPaused}
498
- @progress=${this.displayBufferedAmount}
499
- @click=${this.handleClickPlayPauseIcon}
500
- @ended=${this.handleEnded}
501
- >
502
- <source src=${ifDefined(this.href)} />
503
- </video>
504
- <div
485
+ })}
486
+ >
487
+ <video
488
+ ${ref(this.mediaComponentRef)}
489
+ class="discord-video-attachment-video-container"
490
+ playsinline
491
+ height="315"
492
+ preload="metadata"
493
+ width="550"
494
+ role="button"
495
+ poster=${ifDefined(this.poster)}
496
+ @play=${this.handleHasStartedPlayingOrHasPaused}
497
+ @pause=${this.handleHasStartedPlayingOrHasPaused}
498
+ @progress=${this.displayBufferedAmount}
499
+ @click=${this.handleClickPlayPauseIcon}
500
+ @ended=${this.handleEnded}
501
+ >
502
+ <source src=${ifDefined(this.href)} />
503
+ </video>
504
+ <div
505
505
  class=${classMap({
506
506
  'discord-video-attachment-video-controls': true,
507
507
  isFullScreen: this.isFullScreen,
508
508
  showControlsInFullScreen: this.showControlsInFullScreen || this.hasEnded
509
- })}
510
- >
511
- <div class="discord-media-attachment-controls no-background" style="transform: translateY(0%)">
512
- <div
513
- class="discord-media-attachment-video-button"
514
- tabindex="0"
515
- aria-label="${this.isPlaying ? 'Pause' : 'Play'}"
516
- role="button"
517
- @click=${this.handleClickPlayPauseIcon}
518
- @keydown=${this.handleSpaceToPlayPause}
519
- >
520
- ${when(this.hasEnded, () => MediaRestartIcon({ class: 'discord-media-attachment-control-icon' }), () => when(this.isPlaying, () => MediaPauseIcon({ class: 'discord-media-attachment-control-icon' }), () => MediaPlayIcon({ class: 'discord-media-attachment-control-icon' })))}
521
- </div>
522
- <div class="discord-media-attachment-duration-time-wrapper">
523
- <span role="status" class="discord-media-attachment-duration-time-display"
524
- >${this.currentPlaybackPosition}</span
525
- >
526
- <span
527
- role="separator"
528
- class="discord-media-attachment-duration-time-display discord-media-attachment-duration-time-separator"
529
- >/</span
530
- >
531
- <span class="discord-media-attachment-duration-time-display">${this.totalMediaDuration}</span>
532
- </div>
533
- <div class="discord-media-attachment-horizontal">
534
- <div class="discord-media-attachment-media-bar-interaction">
535
- <input
536
- type="range"
537
- ${ref(this.seekSliderRef)}
538
- class="discord-media-attachment-playback-control"
539
- @input=${this.handleSeekSliderInput}
540
- @change=${this.handleSeekSliderChange}
541
- max="100"
542
- value="0"
543
- />
544
- </div>
545
- </div>
546
- <div class="discord-media-attachment-flex discord-volume-container">
547
- <div class="discord-media-attachment-flex-container">
548
- <button
549
- aria-label="Control volume"
550
- type="button"
551
- class="discord-media-attachment-button"
552
- @focus=${this.handleVolumeVerticalFocus}
553
- @blur=${this.handleVolumeVerticalBlur}
554
- @click=${this.handleClickMuteIcon}
555
- >
556
- <div class="discord-media-attachment-button-content">
509
+ })}
510
+ >
511
+ <div class="discord-media-attachment-controls no-background" style="transform: translateY(0%)">
512
+ <div
513
+ class="discord-media-attachment-video-button"
514
+ tabindex="0"
515
+ aria-label="${this.isPlaying ? 'Pause' : 'Play'}"
516
+ role="button"
517
+ @click=${this.handleClickPlayPauseIcon}
518
+ @keydown=${this.handleSpaceToPlayPause}
519
+ >
520
+ ${when(this.hasEnded, () => MediaRestartIcon({ class: 'discord-media-attachment-control-icon' }), () => when(this.isPlaying, () => MediaPauseIcon({ class: 'discord-media-attachment-control-icon' }), () => MediaPlayIcon({ class: 'discord-media-attachment-control-icon' })))}
521
+ </div>
522
+ <div class="discord-media-attachment-duration-time-wrapper">
523
+ <span role="status" class="discord-media-attachment-duration-time-display"
524
+ >${this.currentPlaybackPosition}</span
525
+ >
526
+ <span
527
+ role="separator"
528
+ class="discord-media-attachment-duration-time-display discord-media-attachment-duration-time-separator"
529
+ >/</span
530
+ >
531
+ <span class="discord-media-attachment-duration-time-display">${this.totalMediaDuration}</span>
532
+ </div>
533
+ <div class="discord-media-attachment-horizontal">
534
+ <div class="discord-media-attachment-media-bar-interaction">
535
+ <input
536
+ type="range"
537
+ ${ref(this.seekSliderRef)}
538
+ class="discord-media-attachment-playback-control"
539
+ @input=${this.handleSeekSliderInput}
540
+ @change=${this.handleSeekSliderChange}
541
+ max="100"
542
+ value="0"
543
+ />
544
+ </div>
545
+ </div>
546
+ <div class="discord-media-attachment-flex discord-volume-container">
547
+ <div class="discord-media-attachment-flex-container">
548
+ <button
549
+ aria-label="Control volume"
550
+ type="button"
551
+ class="discord-media-attachment-button"
552
+ @focus=${this.handleVolumeVerticalFocus}
553
+ @blur=${this.handleVolumeVerticalBlur}
554
+ @click=${this.handleClickMuteIcon}
555
+ >
556
+ <div class="discord-media-attachment-button-content">
557
557
  ${when(this.currentVolume === 0 || this.isMuted, () => AudioVideoVolumeMutedIcon({
558
558
  class: 'discord-media-attachment-button-control-icon'
559
559
  }), () => when(this.currentVolume <= 0.5, () => MediaVolumeBelow50PercentIcon({
560
560
  class: 'discord-media-attachment-button-control-icon'
561
561
  }), () => MediaVolumeAbove50PercentIcon({
562
562
  class: 'discord-media-attachment-button-control-icon'
563
- })))}
564
- </div>
565
- </button>
566
- <div ${ref(this.volumeControlRef)} class="discord-media-attachment-button-slider">
567
- <div class="discord-media-attachment-volume-vertical">
568
- <input
569
- ${ref(this.volumeControlInputRef)}
570
- type="range"
571
- class="discord-media-attachment-volume-slider"
572
- @input=${this.handleVolumeSliderInput}
573
- max="100"
574
- value="100"
575
- />
576
- </div>
577
- </div>
578
- </div>
579
- </div>
580
- <div>
581
- <button
582
- aria-label="Full screen"
583
- type="button"
584
- class="discord-media-attachment-button"
585
- @click=${this.handleFullScreenClicked}
586
- >
587
- <div class="discord-media-attachment-button-content">
588
- ${when(this.isFullScreen, () => VideoExitFullScreenIcon({ class: 'discord-media-attachment-button-control-icon' }), () => VideoFullScreenIcon({ class: 'discord-media-attachment-button-control-icon' }))}
589
- </div>
590
- </button>
591
- </div>
592
- </div>
593
- </div>
594
- <div class="discord-video-attachment-play-pause-pop">
595
- ${VideoPausePopIcon({ class: 'discord-video-attachment-play-pause-pop-icon' })}
596
- </div>
597
- <div ${ref(this.playPausePopAnimationContainerRef)}></div>
598
- </div>
599
- </div>
600
- </div>
601
- </div>
602
- </div>
603
- <div class="discord-button-download-attachment">
604
- <a
605
- class="discord-link-download-attachment"
606
- aria-label="Download"
607
- href="${ifDefined(this.href)}"
608
- rel="noreferrer noopener"
609
- target="_blank"
610
- role="button"
611
- tabindex="0"
612
- >
613
- ${AttachmentDownloadButton()}
614
- </a>
615
- </div>
563
+ })))}
564
+ </div>
565
+ </button>
566
+ <div ${ref(this.volumeControlRef)} class="discord-media-attachment-button-slider">
567
+ <div class="discord-media-attachment-volume-vertical">
568
+ <input
569
+ ${ref(this.volumeControlInputRef)}
570
+ type="range"
571
+ class="discord-media-attachment-volume-slider"
572
+ @input=${this.handleVolumeSliderInput}
573
+ max="100"
574
+ value="100"
575
+ />
576
+ </div>
577
+ </div>
578
+ </div>
579
+ </div>
580
+ <div>
581
+ <button
582
+ aria-label="Full screen"
583
+ type="button"
584
+ class="discord-media-attachment-button"
585
+ @click=${this.handleFullScreenClicked}
586
+ >
587
+ <div class="discord-media-attachment-button-content">
588
+ ${when(this.isFullScreen, () => VideoExitFullScreenIcon({ class: 'discord-media-attachment-button-control-icon' }), () => VideoFullScreenIcon({ class: 'discord-media-attachment-button-control-icon' }))}
589
+ </div>
590
+ </button>
591
+ </div>
592
+ </div>
593
+ </div>
594
+ <div class="discord-video-attachment-play-pause-pop">
595
+ ${VideoPausePopIcon({ class: 'discord-video-attachment-play-pause-pop-icon' })}
596
+ </div>
597
+ <div ${ref(this.playPausePopAnimationContainerRef)}></div>
598
+ </div>
599
+ </div>
600
+ </div>
601
+ </div>
602
+ </div>
603
+ <div class="discord-button-download-attachment">
604
+ <a
605
+ class="discord-link-download-attachment"
606
+ aria-label="Download"
607
+ href="${ifDefined(this.href)}"
608
+ rel="noreferrer noopener"
609
+ target="_blank"
610
+ role="button"
611
+ tabindex="0"
612
+ >
613
+ ${AttachmentDownloadButton()}
614
+ </a>
615
+ </div>
616
616
  </div>`;
617
617
  }
618
618
  };