index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841
  1. <template>
  2. <modal
  3. v-if="station"
  4. :title="
  5. !isOwnerOrAdmin() && station.partyMode
  6. ? 'Add Song to Queue'
  7. : 'Manage Station'
  8. "
  9. :style="`--primary-color: var(--${station.theme})`"
  10. class="manage-station-modal"
  11. >
  12. <template #body>
  13. <div class="custom-modal-body" v-if="station && station._id">
  14. <div class="left-section">
  15. <div class="section">
  16. <div id="about-station-container">
  17. <div id="station-info">
  18. <div id="station-name">
  19. <h1>{{ station.displayName }}</h1>
  20. <i
  21. v-if="station.type === 'official'"
  22. class="material-icons verified-station"
  23. content="Verified Station"
  24. v-tippy
  25. >
  26. check_circle
  27. </i>
  28. <i
  29. class="material-icons stationMode"
  30. :content="
  31. station.partyMode
  32. ? 'Station in Party mode'
  33. : 'Station in Playlist mode'
  34. "
  35. v-tippy
  36. >{{
  37. station.partyMode
  38. ? "emoji_people"
  39. : "playlist_play"
  40. }}</i
  41. >
  42. </div>
  43. <p>{{ station.description }}</p>
  44. </div>
  45. <div id="admin-buttons" v-if="isOwnerOrAdmin()">
  46. <!-- (Admin) Pause/Resume Button -->
  47. <button
  48. class="button is-danger"
  49. v-if="stationPaused"
  50. @click="resumeStation()"
  51. >
  52. <i class="material-icons icon-with-button"
  53. >play_arrow</i
  54. >
  55. <span> Resume Station </span>
  56. </button>
  57. <button
  58. class="button is-danger"
  59. @click="pauseStation()"
  60. v-else
  61. >
  62. <i class="material-icons icon-with-button"
  63. >pause</i
  64. >
  65. <span> Pause Station </span>
  66. </button>
  67. <!-- (Admin) Skip Button -->
  68. <button
  69. class="button is-danger"
  70. @click="skipStation()"
  71. >
  72. <i class="material-icons icon-with-button"
  73. >skip_next</i
  74. >
  75. <span> Force Skip </span>
  76. </button>
  77. <router-link
  78. v-if="sector !== 'station' && station.name"
  79. :to="{
  80. name: 'station',
  81. params: { id: station.name }
  82. }"
  83. class="button is-primary"
  84. >
  85. Go To Station
  86. </router-link>
  87. </div>
  88. </div>
  89. <div class="tab-selection">
  90. <button
  91. v-if="isOwnerOrAdmin()"
  92. class="button is-default"
  93. :class="{ selected: tab === 'settings' }"
  94. ref="settings-tab"
  95. @click="showTab('settings')"
  96. >
  97. Settings
  98. </button>
  99. <button
  100. v-if="isAllowedToParty() || isOwnerOrAdmin()"
  101. class="button is-default"
  102. :class="{ selected: tab === 'playlists' }"
  103. ref="playlists-tab"
  104. @click="showTab('playlists')"
  105. >
  106. Playlists
  107. </button>
  108. <button
  109. v-if="isAllowedToParty() || isOwnerOrAdmin()"
  110. class="button is-default"
  111. :class="{ selected: tab === 'songs' }"
  112. ref="songs-tab"
  113. @click="showTab('songs')"
  114. >
  115. Songs
  116. </button>
  117. </div>
  118. <settings
  119. v-if="isOwnerOrAdmin()"
  120. class="tab"
  121. v-show="tab === 'settings'"
  122. />
  123. <playlists
  124. v-if="isAllowedToParty() || isOwnerOrAdmin()"
  125. class="tab"
  126. v-show="tab === 'playlists'"
  127. />
  128. <songs
  129. v-if="isAllowedToParty() || isOwnerOrAdmin()"
  130. class="tab"
  131. v-show="tab === 'songs'"
  132. />
  133. </div>
  134. </div>
  135. <div class="right-section">
  136. <div class="section">
  137. <div class="queue-title">
  138. <h4 class="section-title">Queue</h4>
  139. </div>
  140. <hr class="section-horizontal-rule" />
  141. <song-item
  142. v-if="currentSong._id"
  143. :song="currentSong"
  144. :requested-by="
  145. station.type === 'community' &&
  146. station.partyMode === true
  147. "
  148. header="Currently Playing.."
  149. class="currently-playing"
  150. />
  151. <queue sector="manageStation" />
  152. </div>
  153. </div>
  154. </div>
  155. </template>
  156. <template #footer>
  157. <button
  158. class="button is-primary tab-actionable-button"
  159. v-if="loggedIn && station.type === 'official'"
  160. @click="openModal('requestSong')"
  161. >
  162. <i class="material-icons icon-with-button">queue</i>
  163. <span> Request Song </span>
  164. </button>
  165. <div v-if="isOwnerOrAdmin()" class="right">
  166. <confirm @confirm="clearAndRefillStationQueue()">
  167. <a class="button is-danger">
  168. Clear and refill station queue
  169. </a>
  170. </confirm>
  171. <confirm
  172. v-if="station && station.type === 'community'"
  173. @confirm="removeStation()"
  174. >
  175. <button class="button is-danger">Delete station</button>
  176. </confirm>
  177. </div>
  178. </template>
  179. </modal>
  180. </template>
  181. <script>
  182. import { mapState, mapGetters, mapActions } from "vuex";
  183. import Toast from "toasters";
  184. import Confirm from "@/components/Confirm.vue";
  185. import Queue from "@/components/Queue.vue";
  186. import SongItem from "@/components/SongItem.vue";
  187. import Modal from "../../Modal.vue";
  188. import Settings from "./Tabs/Settings.vue";
  189. import Playlists from "./Tabs/Playlists.vue";
  190. import Songs from "./Tabs/Songs.vue";
  191. export default {
  192. components: {
  193. Modal,
  194. Confirm,
  195. Queue,
  196. SongItem,
  197. Settings,
  198. Playlists,
  199. Songs
  200. },
  201. props: {
  202. stationId: { type: String, default: "" },
  203. sector: { type: String, default: "admin" }
  204. },
  205. computed: {
  206. ...mapState({
  207. loggedIn: state => state.user.auth.loggedIn,
  208. userId: state => state.user.auth.userId,
  209. role: state => state.user.auth.role
  210. }),
  211. ...mapState("modals/manageStation", {
  212. tab: state => state.tab,
  213. station: state => state.station,
  214. originalStation: state => state.originalStation,
  215. songsList: state => state.songsList,
  216. stationPlaylist: state => state.stationPlaylist,
  217. includedPlaylists: state => state.includedPlaylists,
  218. excludedPlaylists: state => state.excludedPlaylists,
  219. stationPaused: state => state.stationPaused,
  220. currentSong: state => state.currentSong
  221. }),
  222. ...mapGetters({
  223. socket: "websockets/getSocket"
  224. })
  225. },
  226. mounted() {
  227. this.socket.dispatch(`stations.getStationById`, this.stationId, res => {
  228. if (res.status === "success") {
  229. const { station } = res.data;
  230. this.editStation(station);
  231. if (!this.isOwnerOrAdmin() && this.station.partyMode)
  232. this.showTab("songs");
  233. const currentSong = res.data.station.currentSong
  234. ? res.data.station.currentSong
  235. : {};
  236. this.updateCurrentSong(currentSong);
  237. this.updateStationPaused(res.data.station.paused);
  238. this.socket.dispatch(
  239. "stations.getStationIncludedPlaylistsById",
  240. this.stationId,
  241. res => {
  242. if (res.status === "success")
  243. this.setIncludedPlaylists(res.data.playlists);
  244. }
  245. );
  246. this.socket.dispatch(
  247. "stations.getStationExcludedPlaylistsById",
  248. this.stationId,
  249. res => {
  250. if (res.status === "success")
  251. this.setExcludedPlaylists(res.data.playlists);
  252. }
  253. );
  254. if (this.isOwnerOrAdmin()) {
  255. this.socket.dispatch(
  256. "playlists.getPlaylistForStation",
  257. this.station._id,
  258. true,
  259. res => {
  260. if (res.status === "success") {
  261. this.updateStationPlaylist(res.data.playlist);
  262. }
  263. }
  264. );
  265. }
  266. this.socket.dispatch(
  267. "stations.getQueue",
  268. this.stationId,
  269. res => {
  270. if (res.status === "success")
  271. this.updateSongsList(res.data.queue);
  272. }
  273. );
  274. this.socket.dispatch(
  275. "apis.joinRoom",
  276. `manage-station.${this.stationId}`
  277. );
  278. this.socket.on(
  279. "event:station.name.updated",
  280. res => {
  281. this.station.name = res.data.name;
  282. },
  283. { modal: "manageStation" }
  284. );
  285. this.socket.on(
  286. "event:station.displayName.updated",
  287. res => {
  288. this.station.displayName = res.data.displayName;
  289. },
  290. { modal: "manageStation" }
  291. );
  292. this.socket.on(
  293. "event:station.description.updated",
  294. res => {
  295. this.station.description = res.data.description;
  296. },
  297. { modal: "manageStation" }
  298. );
  299. this.socket.on(
  300. "event:station.partyMode.updated",
  301. res => {
  302. if (this.station.type === "community")
  303. this.station.partyMode = res.data.partyMode;
  304. },
  305. { modal: "manageStation" }
  306. );
  307. this.socket.on(
  308. "event:station.playMode.updated",
  309. res => {
  310. this.station.playMode = res.data.playMode;
  311. },
  312. { modal: "manageStation" }
  313. );
  314. this.socket.on(
  315. "event:station.theme.updated",
  316. res => {
  317. const { theme } = res.data;
  318. this.station.theme = theme;
  319. },
  320. { modal: "manageStation" }
  321. );
  322. this.socket.on(
  323. "event:station.privacy.updated",
  324. res => {
  325. this.station.privacy = res.data.privacy;
  326. },
  327. { modal: "manageStation" }
  328. );
  329. this.socket.on(
  330. "event:station.queue.lock.toggled",
  331. res => {
  332. this.station.locked = res.data.locked;
  333. },
  334. { modal: "manageStation" }
  335. );
  336. this.socket.on(
  337. "event:station.includedPlaylist",
  338. res => {
  339. const { playlist } = res.data;
  340. const playlistIndex = this.includedPlaylists
  341. .map(includedPlaylist => includedPlaylist._id)
  342. .indexOf(playlist._id);
  343. if (playlistIndex === -1)
  344. this.includedPlaylists.push(playlist);
  345. },
  346. { modal: "manageStation" }
  347. );
  348. this.socket.on(
  349. "event:station.excludedPlaylist",
  350. res => {
  351. const { playlist } = res.data;
  352. const playlistIndex = this.excludedPlaylists
  353. .map(excludedPlaylist => excludedPlaylist._id)
  354. .indexOf(playlist._id);
  355. if (playlistIndex === -1)
  356. this.excludedPlaylists.push(playlist);
  357. },
  358. { modal: "manageStation" }
  359. );
  360. this.socket.on(
  361. "event:station.removedIncludedPlaylist",
  362. res => {
  363. const { playlistId } = res.data;
  364. const playlistIndex = this.includedPlaylists
  365. .map(playlist => playlist._id)
  366. .indexOf(playlistId);
  367. if (playlistIndex >= 0)
  368. this.includedPlaylists.splice(playlistIndex, 1);
  369. },
  370. { modal: "manageStation" }
  371. );
  372. this.socket.on(
  373. "event:station.removedExcludedPlaylist",
  374. res => {
  375. const { playlistId } = res.data;
  376. const playlistIndex = this.excludedPlaylists
  377. .map(playlist => playlist._id)
  378. .indexOf(playlistId);
  379. if (playlistIndex >= 0)
  380. this.excludedPlaylists.splice(playlistIndex, 1);
  381. },
  382. { modal: "manageStation" }
  383. );
  384. } else {
  385. new Toast(`Station with that ID not found`);
  386. this.closeModal("manageStation");
  387. }
  388. });
  389. this.socket.on(
  390. "event:station.queue.updated",
  391. res => this.updateSongsList(res.data.queue),
  392. { modal: "manageStation" }
  393. );
  394. this.socket.on(
  395. "event:station.queue.song.repositioned",
  396. res => this.repositionSongInList(res.data.song),
  397. { modal: "manageStation" }
  398. );
  399. this.socket.on(
  400. "event:station.pause",
  401. () => this.updateStationPaused(true),
  402. { modal: "manageStation" }
  403. );
  404. this.socket.on(
  405. "event:station.resume",
  406. () => this.updateStationPaused(false),
  407. { modal: "manageStation" }
  408. );
  409. this.socket.on(
  410. "event:station.nextSong",
  411. res => {
  412. const { currentSong } = res.data;
  413. this.updateCurrentSong(currentSong || {});
  414. },
  415. { modal: "manageStation" }
  416. );
  417. if (this.isOwnerOrAdmin()) {
  418. this.socket.on(
  419. "event:playlist.song.added",
  420. res => {
  421. if (this.stationPlaylist._id === res.data.playlistId)
  422. this.stationPlaylist.songs.push(res.data.song);
  423. },
  424. {
  425. modal: "manageStation"
  426. }
  427. );
  428. this.socket.on(
  429. "event:playlist.song.removed",
  430. res => {
  431. if (this.stationPlaylist._id === res.data.playlistId) {
  432. // remove song from array of playlists
  433. this.stationPlaylist.songs.forEach((song, index) => {
  434. if (song.youtubeId === res.data.youtubeId)
  435. this.stationPlaylist.songs.splice(index, 1);
  436. });
  437. }
  438. },
  439. {
  440. modal: "manageStation"
  441. }
  442. );
  443. this.socket.on(
  444. "event:playlist.songs.repositioned",
  445. res => {
  446. if (this.stationPlaylist._id === res.data.playlistId) {
  447. // for each song that has a new position
  448. res.data.songsBeingChanged.forEach(changedSong => {
  449. this.stationPlaylist.songs.forEach(
  450. (song, index) => {
  451. // find song locally
  452. if (
  453. song.youtubeId === changedSong.youtubeId
  454. ) {
  455. // change song position attribute
  456. this.stationPlaylist.songs[
  457. index
  458. ].position = changedSong.position;
  459. // reposition in array if needed
  460. if (index !== changedSong.position - 1)
  461. this.stationPlaylist.songs.splice(
  462. changedSong.position - 1,
  463. 0,
  464. this.stationPlaylist.songs.splice(
  465. index,
  466. 1
  467. )[0]
  468. );
  469. }
  470. }
  471. );
  472. });
  473. }
  474. },
  475. {
  476. modal: "manageStation"
  477. }
  478. );
  479. }
  480. },
  481. beforeUnmount() {
  482. this.socket.dispatch(
  483. "apis.leaveRoom",
  484. `manage-station.${this.stationId}`,
  485. () => {}
  486. );
  487. if (this.isOwnerOrAdmin()) this.showTab("settings");
  488. this.clearStation();
  489. },
  490. methods: {
  491. isOwner() {
  492. return (
  493. this.loggedIn &&
  494. this.station &&
  495. this.userId === this.station.owner
  496. );
  497. },
  498. isAdmin() {
  499. return this.loggedIn && this.role === "admin";
  500. },
  501. isOwnerOrAdmin() {
  502. return this.isOwner() || this.isAdmin();
  503. },
  504. isPartyMode() {
  505. return (
  506. this.station &&
  507. this.station.type === "community" &&
  508. this.station.partyMode
  509. );
  510. },
  511. isAllowedToParty() {
  512. return (
  513. this.station &&
  514. this.isPartyMode() &&
  515. (!this.station.locked || this.isOwnerOrAdmin()) &&
  516. this.loggedIn
  517. );
  518. },
  519. isPlaylistMode() {
  520. return this.station && !this.isPartyMode();
  521. },
  522. removeStation() {
  523. this.socket.dispatch("stations.remove", this.station._id, res => {
  524. new Toast(res.message);
  525. if (res.status === "success") {
  526. this.closeModal("manageStation");
  527. }
  528. });
  529. },
  530. resumeStation() {
  531. this.socket.dispatch("stations.resume", this.station._id, res => {
  532. if (res.status !== "success")
  533. new Toast(`Error: ${res.message}`);
  534. else new Toast("Successfully resumed the station.");
  535. });
  536. },
  537. pauseStation() {
  538. this.socket.dispatch("stations.pause", this.station._id, res => {
  539. if (res.status !== "success")
  540. new Toast(`Error: ${res.message}`);
  541. else new Toast("Successfully paused the station.");
  542. });
  543. },
  544. skipStation() {
  545. this.socket.dispatch(
  546. "stations.forceSkip",
  547. this.station._id,
  548. res => {
  549. if (res.status !== "success")
  550. new Toast(`Error: ${res.message}`);
  551. else
  552. new Toast(
  553. "Successfully skipped the station's current song."
  554. );
  555. }
  556. );
  557. },
  558. clearAndRefillStationQueue() {
  559. this.socket.dispatch(
  560. "stations.clearAndRefillStationQueue",
  561. this.station._id,
  562. res => {
  563. if (res.status !== "success")
  564. new Toast({
  565. content: `Error: ${res.message}`,
  566. timeout: 8000
  567. });
  568. else new Toast({ content: res.message, timeout: 4000 });
  569. }
  570. );
  571. },
  572. ...mapActions("modals/manageStation", [
  573. "editStation",
  574. "setIncludedPlaylists",
  575. "setExcludedPlaylists",
  576. "clearStation",
  577. "updateSongsList",
  578. "updateStationPlaylist",
  579. "repositionSongInList",
  580. "updateStationPaused",
  581. "updateCurrentSong"
  582. ]),
  583. ...mapActions({
  584. showTab(dispatch, payload) {
  585. if (this.$refs[`${payload}-tab`])
  586. this.$refs[`${payload}-tab`].scrollIntoView({
  587. block: "nearest"
  588. }); // Only works if the ref exists, which it doesn't always
  589. return dispatch("modals/manageStation/showTab", payload);
  590. }
  591. }),
  592. ...mapActions("modalVisibility", ["openModal", "closeModal"]),
  593. ...mapActions("user/playlists", ["editPlaylist"])
  594. }
  595. };
  596. </script>
  597. <style lang="scss">
  598. .manage-station-modal.modal {
  599. z-index: 1800;
  600. .modal-card {
  601. width: 1300px;
  602. height: 100%;
  603. overflow: auto;
  604. .tab > button {
  605. width: 100%;
  606. margin-bottom: 10px;
  607. }
  608. .currently-playing.song-item {
  609. .song-info {
  610. width: calc(100% - 150px);
  611. }
  612. .thumbnail {
  613. min-width: 130px;
  614. width: 130px;
  615. height: 130px;
  616. }
  617. }
  618. }
  619. }
  620. </style>
  621. <style lang="scss" scoped>
  622. .night-mode {
  623. .manage-station-modal.modal .modal-card-body .custom-modal-body {
  624. .left-section {
  625. #about-station-container {
  626. background-color: var(--dark-grey-3) !important;
  627. border: 0;
  628. }
  629. .section {
  630. background-color: transparent !important;
  631. }
  632. .tab-selection .button {
  633. background: var(--dark-grey);
  634. color: var(--white);
  635. }
  636. .tab {
  637. background-color: var(--dark-grey-3);
  638. border: 0;
  639. }
  640. }
  641. .right-section .section,
  642. #queue {
  643. border-radius: 5px;
  644. background-color: transparent !important;
  645. }
  646. }
  647. }
  648. .manage-station-modal.modal .modal-card-body .custom-modal-body {
  649. display: flex;
  650. flex-wrap: wrap;
  651. height: 100%;
  652. .section {
  653. display: flex;
  654. flex-direction: column;
  655. flex-grow: 1;
  656. width: auto;
  657. padding: 15px !important;
  658. margin: 0 10px;
  659. }
  660. .left-section {
  661. flex-basis: 50%;
  662. height: 100%;
  663. overflow-y: auto;
  664. flex-grow: 1;
  665. .section:first-child {
  666. padding: 0 15px 15px !important;
  667. }
  668. #about-station-container {
  669. padding: 20px;
  670. display: flex;
  671. flex-direction: column;
  672. flex-grow: unset;
  673. border-radius: 5px;
  674. margin: 0 0 20px 0;
  675. background-color: var(--white);
  676. border: 1px solid var(--light-grey-3);
  677. #station-info {
  678. #station-name {
  679. flex-direction: row !important;
  680. display: flex;
  681. flex-direction: row;
  682. max-width: 100%;
  683. h1 {
  684. margin: 0;
  685. font-size: 36px;
  686. line-height: 0.8;
  687. }
  688. i {
  689. margin-left: 10px;
  690. font-size: 30px;
  691. color: var(--yellow);
  692. &.stationMode {
  693. padding-left: 10px;
  694. margin-left: auto;
  695. color: var(--primary-color);
  696. }
  697. }
  698. .verified-station {
  699. color: var(--primary-color);
  700. }
  701. }
  702. p {
  703. max-width: 700px;
  704. margin-bottom: 10px;
  705. }
  706. }
  707. #admin-buttons {
  708. display: flex;
  709. .button {
  710. margin: 3px;
  711. }
  712. }
  713. }
  714. .tab-selection {
  715. display: flex;
  716. overflow-x: auto;
  717. .button {
  718. border-radius: 5px 5px 0 0;
  719. border: 0;
  720. text-transform: uppercase;
  721. font-size: 14px;
  722. color: var(--dark-grey-3);
  723. background-color: var(--light-grey-2);
  724. flex-grow: 1;
  725. height: 32px;
  726. &:not(:first-of-type) {
  727. margin-left: 5px;
  728. }
  729. }
  730. .selected {
  731. background-color: var(--primary-color) !important;
  732. color: var(--white) !important;
  733. font-weight: 600;
  734. }
  735. }
  736. .tab {
  737. border: 1px solid var(--light-grey-3);
  738. padding: 15px;
  739. border-radius: 0 0 5px 5px;
  740. }
  741. }
  742. .right-section {
  743. flex-basis: 50%;
  744. height: 100%;
  745. overflow-y: auto;
  746. flex-grow: 1;
  747. .section {
  748. .queue-title {
  749. display: flex;
  750. line-height: 30px;
  751. .material-icons {
  752. margin-left: 5px;
  753. margin-bottom: 5px;
  754. font-size: 28px;
  755. cursor: pointer;
  756. &:first-of-type {
  757. margin-left: auto;
  758. }
  759. &.skip-station {
  760. color: var(--red);
  761. }
  762. &.resume-station,
  763. &.pause-station {
  764. color: var(--primary-color);
  765. }
  766. }
  767. }
  768. .currently-playing {
  769. margin-bottom: 10px;
  770. }
  771. }
  772. }
  773. }
  774. @media screen and (max-width: 1100px) {
  775. .manage-station-modal.modal .modal-card-body .custom-modal-body {
  776. .left-section,
  777. .right-section {
  778. flex-basis: unset;
  779. height: auto;
  780. }
  781. }
  782. }
  783. </style>