{"version":3,"sources":["webpack:///./src/components/Icon/LargeIcon.vue","webpack:///./src/components/Icon/LargeIcon.vue?b656","webpack:///./src/components/Icon/LargeIcon.vue?b04d","webpack:///./src/components/Icon/LargeIcon.vue?1349","webpack:///./src/services/CatalogSongsService.ts","webpack:///./src/views/IntellectualProperty/Catalogs/CatalogDetail.vue?8d0c","webpack:///./src/components/Icon/LargeIcon.vue?d67f","webpack:///./src/views/IntellectualProperty/Catalogs/CatalogSongResults.vue?b02b","webpack:///./src/views/IntellectualProperty/Catalogs/CatalogDetail.vue","webpack:///./src/views/IntellectualProperty/Catalogs/CatalogSongResults.vue","webpack:///./src/views/IntellectualProperty/Catalogs/CatalogSongResults.vue?3c45","webpack:///./src/views/IntellectualProperty/Catalogs/CatalogSongResults.vue?69c5","webpack:///./src/views/IntellectualProperty/Catalogs/CatalogSongResults.vue?2209","webpack:///./src/views/IntellectualProperty/Catalogs/CatalogDetail.vue?cf20","webpack:///./src/views/IntellectualProperty/Catalogs/CatalogDetail.vue?dd25","webpack:///./src/views/IntellectualProperty/Catalogs/CatalogDetail.vue?3fbc"],"names":["render","_vm","this","_c","_self","_setupProxy","staticClass","class","icon","attrs","staticRenderFns","LargeIcon","Vue","__decorate","Prop","required","Component","component","CatalogSongsServiceClass","constructor","catalogId","numResults","catalogLabel","searchResults","query","page","sortBy","numPerPage","lyricsCached","reset","setQueryParams","data","toString","numperpage","router","push","path","catch","err","getQueryParams","currentRoute","parseInt","includes","setSortBy","onSetTerritory","performSearch","setNumPerPage","setPage","BusyService","showBusy","response","ApiService","post","territoryId","TerritoryService","filters","JSON","stringify","adminIds","catalogIds","contributorIds","search","pageSize","currentFilters","label","hideBusy","songId","lyrics","offset","Date","getTimezoneOffset","encodeURIComponent","CatalogSongsService","_v","_s","$t","store","on","downloadAll","loading","_e","goToPage","onNumPerPageChange","columns","onHeadingClick","scopedSlots","_u","key","fn","row","songPath","ccliSongId","songTitle","_l","contributors","c","i","index","catalogs","name","percent","hasLyrics","$event","stopPropagation","preventDefault","openLyricsModal","hasChords","openChordsModal","join","featureToggleChords","length","ref","CatalogSongResults","_ProfileService$profi","ProfileService","profile","cols","i18n","t","sortable","selected","ascDir","apiParam","find","$route","s","col","filter","forEach","$refs","lyricsModal","init","authors","chordsModal","metaInfo","title","DynamicTranslationService","searchAllCatalogsTitle","components","Table","SvgIcon","FButton","Modal","SimplePagination","LyricsModal","ChordsModal","CatalogDetail","params","id","error","bus","$on","beforeDestroy","$off","asyncDownload","downloadAllUrl","Watch","catalogDetailsTitle"],"mappings":"kKAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,IAAI,CAACG,YAAY,sBAAsBC,MAAMN,EAAIO,KAAKC,MAAM,CAAC,cAAc,WAE1KC,EAAkB,G,wBCEtB,IAAqBC,EAArB,cAAuCC,SAGvCC,eAAA,CADCC,eAAK,CAACC,UAAU,K,2BAFIJ,EAASE,eAAA,CAD7BG,QACoBL,WCJgY,I,wBCQjZM,EAAY,eACd,EACAjB,EACAU,GACA,EACA,KACA,WACA,MAIa,OAAAO,E,qKCRf,IAAMC,EAAN,cAAuCN,OAAvCO,c,oBACE,KAAAC,UAAY,GACZ,KAAAC,WAAa,EACb,KAAAC,aAAe,GACf,KAAAC,cAAqC,KAErC,KAAAC,MAAQ,CACNC,KAAM,EACNC,OAAQ,GACRC,WAAY,IA2Fd,KAAAC,aAA6C,GAxF7CC,QACE3B,KAAKqB,cAAgB,KAGvBO,iBACE,MAAMC,EAA2C,GAE7C7B,KAAKsB,MAAMC,KAAO,IACpBM,EAAKN,KAAOvB,KAAKsB,MAAMC,KAAKO,YAGD,IAAzB9B,KAAKsB,MAAMG,aACbI,EAAKE,WAAa/B,KAAKsB,MAAMG,WAAWK,YAGtC9B,KAAKsB,MAAME,SACbK,EAAKL,OAASxB,KAAKsB,MAAME,QAG3BQ,OAAOC,KAAK,CAAEC,KAAM,kCAAk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MAAM/C,QACXyH,SAAIG,KAAK,oBAIX,sBACEzG,OAAYC,iBACN/C,KAAK0E,MAAM/B,gBACjBG,OAAYiB,WAGda,cACE4E,eAAcxJ,KAAK0E,MAAM+E,eAAmBzJ,KAAK0E,MAAMxD,UAAd,UAP3CP,eAAA,CADC+I,eAAM,W,kCAhCYV,EAAarI,eAAA,CAVjCG,eAAU,CACTsH,SAAUA,KAAA,CACRC,MAAOC,OAA0BqB,sBAEnCnB,WAAW,CACT1B,qBACA6B,eACAlI,qBAGiBuI,WCrBsZ,ICQva,G,UAAY,eACd,EACAlJ,EACAU,GACA,EACA,KACA,WACA,OAIa,e","file":"js/intellectual-property-catalogs-detail.d2e7c2c9.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('i',{staticClass:\"text-secondary icon\",class:_vm.icon,attrs:{\"aria-hidden\":\"true\"}})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\nimport { Component, Prop, Vue } from 'vue-property-decorator'\r\n\r\n@Component\r\nexport default class LargeIcon extends Vue {\r\n\r\n@Prop({required: true})\r\nicon!: string[]\r\n\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LargeIcon.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LargeIcon.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./LargeIcon.vue?vue&type=template&id=14c6862a&scoped=true\"\nimport script from \"./LargeIcon.vue?vue&type=script&lang=ts\"\nexport * from \"./LargeIcon.vue?vue&type=script&lang=ts\"\nimport style0 from \"./LargeIcon.vue?vue&type=style&index=0&id=14c6862a&prod&scoped=true&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"14c6862a\",\n null\n \n)\n\nexport default component.exports","import { SearchSongFilter } from '@/models/SearchSongFilter';\r\nimport { SongResult } from '@/models/SongResult';\r\nimport { ApplyFilters } from '@/models/ApplyFilters';\r\nimport { SearchSongData } from '@/models/SearchSongData';\r\nimport router from '@/router';\r\nimport { Component, Vue } from 'vue-property-decorator'\r\nimport { BusyService } from './BusyService';\r\nimport { ApiService } from './ApiService';\r\nimport { TerritoryService } from './TerritoryService';\r\n\r\n@Component\r\nclass CatalogSongsServiceClass extends Vue {\r\n catalogId = '';\r\n numResults = 0;\r\n catalogLabel = '';\r\n searchResults: SongResult[] | null = null;\r\n\r\n query = {\r\n page: 1,\r\n sortBy: '',\r\n numPerPage: 10,\r\n }\r\n\r\n reset() {\r\n this.searchResults = null;\r\n }\r\n\r\n setQueryParams(){\r\n const data: {[key: string]: string[] | string} = {}\r\n\r\n if (this.query.page > 1){\r\n data.page = this.query.page.toString();\r\n }\r\n\r\n if (this.query.numPerPage != 10){\r\n data.numperpage = this.query.numPerPage.toString();\r\n }\r\n\r\n if (this.query.sortBy){\r\n data.sortBy = this.query.sortBy\r\n }\r\n\r\n router.push({ path: `/intellectualproperty/catalogs/${this.catalogId}`, query: data}).catch((err)=>{});\r\n }\r\n\r\n getQueryParams(){\r\n\r\n if (router.currentRoute.query.page) {\r\n this.query.page = parseInt(router.currentRoute.query.page as string)\r\n }else{\r\n this.query.page = 1;\r\n }\r\n\r\n if (router.currentRoute.query.numperpage) {\r\n this.query.numPerPage = parseInt(router.currentRoute.query.numperpage as string)\r\n }else{\r\n this.query.numPerPage = 10;\r\n }\r\n\r\n if (router.currentRoute.query.sortBy && ['TitleAsc', 'TitleDesc', 'LyricsAsc', 'LyricsDesc', 'SongIdAsc', 'SongIdDesc'].includes(router.currentRoute.query.sortBy as string)) {\r\n this.query.sortBy = router.currentRoute.query.sortBy as string;\r\n }else{\r\n this.query.sortBy = '';\r\n }\r\n }\r\n\r\n setSortBy(sortBy: string) {\r\n this.query.sortBy = sortBy;\r\n this.query.page = 1;\r\n this.setQueryParams();\r\n }\r\n\r\n onSetTerritory(){\r\n this.query.page = 1;\r\n this.setQueryParams();\r\n this.performSearch();\r\n }\r\n\r\n setNumPerPage(numPerPage: number){\r\n this.query.numPerPage = numPerPage;\r\n this.query.page = 1;\r\n this.setQueryParams();\r\n }\r\n\r\n setPage(page: number) {\r\n this.query.page = page;\r\n this.setQueryParams();\r\n }\r\n\r\n async performSearch() {\r\n BusyService.showBusy();\r\n // sample api call when endpoint is ready\r\n const response = await ApiService.post('/api/SearchSongs', {\r\n territoryId: parseInt(TerritoryService.territoryId),\r\n filters: JSON.stringify({\r\n adminIds: [],\r\n catalogIds: [this.catalogId],\r\n contributorIds: []\r\n }),\r\n search: '',\r\n page: this.query.page || 1,\r\n pageSize: this.query.numPerPage || 10,\r\n sortBy: this.query.sortBy || '', // options: TitleAsc, TitleDesc, LyricsAsc, LyricsDesc, SongIdAsc, SongIdDesc\r\n }) as SearchSongData;\r\n\r\n this.catalogLabel = response.currentFilters[0].label;\r\n this.searchResults = response.searchResults as SongResult[];\r\n this.numResults = response.numResults as number;\r\n BusyService.hideBusy();\r\n }\r\n\r\n lyricsCached: {[songId: string]: string[]} = {};\r\n async getLyrics(songId: string){\r\n if (!this.lyricsCached[songId]){\r\n const lyrics = await ApiService.post('/api/GetSongLyricsPreview', { songId});\r\n this.lyricsCached[songId] = lyrics;\r\n }\r\n return this.lyricsCached[songId];\r\n }\r\n\r\n get downloadAllUrl() {\r\n const offset = new Date().getTimezoneOffset();\r\n return `/api/DownloadCatalog?CatalogId=${this.catalogId}&CatalogName=${encodeURIComponent(this.catalogLabel)}&Offset=${offset}&TerritoryId=${TerritoryService.territoryId}`\r\n }\r\n}\r\n\r\nexport const CatalogSongsService = new CatalogSongsServiceClass()\r\n","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CatalogDetail.vue?vue&type=style&index=0&id=05d73eb4&prod&lang=scss&scoped=true\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LargeIcon.vue?vue&type=style&index=0&id=14c6862a&prod&scoped=true&lang=scss\"","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CatalogSongResults.vue?vue&type=style&index=0&id=ff03b6da&prod&lang=scss&scoped=true\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"mt-2 border-top border-1 p-4\"},[_c('div',{staticClass:\"mb-2\"},[_c('router-link',{staticClass:\"text-secondary small\",attrs:{\"to\":\"/intellectualproperty/catalogs\"}},[_c('i',{staticClass:\"me-1 fa-solid fa-caret-left\",attrs:{\"aria-hidden\":\"true\"}}),_vm._v(\" \"+_vm._s(_vm.$t('R.LIT_GoBackToCatalogs'))+\" \")])],1),(_vm.store.searchResults)?_c('div',[_c('div',{staticClass:\"mb-4 d-md-flex align-items-center justify-content-between\"},[_c('div',[_c('h2',{staticClass:\"mb-0\"},[_vm._v(\" \"+_vm._s(_vm.store.catalogLabel)+\" \")]),_c('div',[_vm._v(_vm._s(_vm.store.numResults)+\" \"+_vm._s(_vm.$t('G.LIT_Songs')))])]),_c('div',{staticClass:\"mt-3 mt-md-0\"},[_c('FButton',{attrs:{\"utility\":\"1\",\"before-icon\":\"fa-light fa-download\",\"type\":\"button\"},on:{\"click\":_vm.downloadAll}},[_vm._v(\" \"+_vm._s(_vm.$t('R.LIT_Catalog_DownloadAll'))+\" \")])],1)]),_c('CatalogSongResults')],1):(!_vm.store.searchResults && !_vm.loading)?_c('div',[_c('div',{staticClass:\"text-center\"},[_c('LargeIcon',{staticClass:\"mb-2\",attrs:{\"icon\":\"fa-solid fa-exclamation-triangle\"}}),_c('h1',[_vm._v(_vm._s(_vm.$t('R.LIT_CatalogNotFound')))]),_c('p',[_vm._v(_vm._s(_vm.$t('R.MES_CatalogNotFound'))+\" \")]),_c('div',{staticClass:\"my-3\"},[_c('router-link',{staticClass:\"btn btn-primary\",attrs:{\"to\":\".\"}},[_vm._v(\" \"+_vm._s(_vm.$t('R.LIT_GoBack'))+\" \")])],1)],1)]):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return (_vm.store.searchResults)?_c('div',[(_vm.numResults)?_c('SimplePagination',{attrs:{\"page\":_vm.page,\"num-per-page\":_vm.numPerPage,\"total\":_vm.numResults},on:{\"page\":_vm.goToPage,\"numperpage\":_vm.onNumPerPageChange}}):_vm._e(),_c('Table',{attrs:{\"columns\":_vm.columns,\"data\":_vm.store.searchResults},on:{\"headingClick\":_vm.onHeadingClick},scopedSlots:_vm._u([{key:\"songTitle\",fn:function({row}){return [_c('router-link',{attrs:{\"to\":`${_vm.songPath}${ row.ccliSongId }`}},[_c('strong',[_vm._v(_vm._s(row.songTitle))])])]}},{key:\"contributors\",fn:function({ row }){return _vm._l((row.contributors),function(c,i){return _c('div',{key:`${row.index}cont${i}`},[_c('router-link',{attrs:{\"to\":`/intellectualproperty/songs?s=${encodeURIComponent(c)}`}},[_vm._v(\" \"+_vm._s(c)+\" \")])],1)})}},{key:\"catalogs\",fn:function({ row }){return _vm._l((row.catalogs),function(c,i){return _c('div',{key:`${row.index}c${i}`},[_vm._v(\" \"+_vm._s(c.name)+\" (\"+_vm._s(c.percent)+\"%) \")])})}},{key:\"lyrics\",fn:function({ row }){return [(row.hasLyrics)?_c('a',{attrs:{\"href\":\"#\",\"type\":\"button\",\"title\":_vm.$t('R.LIT_HasLyrics')},on:{\"click\":function($event){$event.stopPropagation();$event.preventDefault();return _vm.openLyricsModal(row.ccliSongId, row.songTitle)}}},[_c('SvgIcon',{attrs:{\"icon\":\"lyrics\"}})],1):_c('div')]}},{key:\"chords\",fn:function({ row }){return [(row.hasChords)?_c('a',{attrs:{\"href\":\"#\",\"type\":\"button\",\"title\":_vm.$t('R.LIT_HasChords')},on:{\"click\":function($event){$event.stopPropagation();$event.preventDefault();_vm.openChordsModal(row.ccliSongId, row.songTitle, row.contributors.join(', '))}}},[_c('SvgIcon',{attrs:{\"icon\":\"chord\"}})],1):_vm._e()]}},{key:\"mobile\",fn:function({ row }){return [_c('div',{staticClass:\"d-flex align-items-center\"},[_c('router-link',{attrs:{\"to\":`${_vm.songPath}${ row.ccliSongId }`}},[_c('strong',[_vm._v(_vm._s(row.songTitle))])]),(row.hasLyrics)?_c('a',{staticClass:\"ms-2\",attrs:{\"href\":\"#\",\"type\":\"button\",\"title\":_vm.$t('R.LIT_HasLyrics')},on:{\"click\":function($event){$event.stopPropagation();$event.preventDefault();return _vm.openLyricsModal(row.ccliSongId, row.songTitle)}}},[_c('SvgIcon',{attrs:{\"icon\":\"lyrics\"}})],1):_vm._e(),(row.hasChords && _vm.featureToggleChords)?_c('a',{staticClass:\"ms-2\",attrs:{\"href\":\"#\",\"type\":\"button\",\"title\":_vm.$t('R.LIT_HasChords')},on:{\"click\":function($event){$event.stopPropagation();$event.preventDefault();return _vm.openChordsModal(row.ccliSongId, row.songTitle)}}},[_c('SvgIcon',{attrs:{\"icon\":\"chord\"}})],1):_vm._e()],1),_c('div',[_vm._v(\" \"+_vm._s(_vm.$t('R.LIT_SongId'))+\": \"+_vm._s(row.ccliSongId)+\" \")]),_c('div',{staticClass:\"small\"},[_vm._v(\" \"+_vm._s(_vm.$t('R.LIT_SongContributors'))+\": \"),_vm._l((row.contributors),function(c,i){return _c('span',{key:`${row.index}cont${i}`},[_c('router-link',{attrs:{\"to\":`/intellectualproperty/songs?s=${encodeURIComponent(c)}`}},[_vm._v(\" \"+_vm._s(c)+\" \")]),(i !== row.contributors.length-1)?[_vm._v(\",\")]:_vm._e()],2)})],2),_c('div',{staticClass:\"small\"},[_vm._v(\" \"+_vm._s(_vm.$t('R.LIT_Catalogs'))+\": \"),_vm._l((row.catalogs),function(c,i){return _c('span',{key:`${row.index}c${i}`},[_c('span',[_vm._v(\" \"+_vm._s(c.name)+\" (\"+_vm._s(c.percent)+\"%)\"),(i !== row.catalogs.length-1)?[_vm._v(\",\")]:_vm._e()],2)])})],2)]}}],null,false,3173092656)}),(_vm.numResults)?_c('SimplePagination',{attrs:{\"page\":_vm.page,\"num-per-page\":_vm.numPerPage,\"total\":_vm.numResults},on:{\"page\":_vm.goToPage,\"numperpage\":_vm.onNumPerPageChange}}):_vm._e(),_c('LyricsModal',{ref:\"lyricsModal\"}),_c('ChordsModal',{ref:\"chordsModal\"})],1):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\nimport Table from '@/components/Table/Table.vue'\r\nimport SvgIcon from '@/components/SvgIcon/SvgIcon.vue'\r\nimport FButton from '@/components/Button/FButton.vue'\r\nimport Modal from '@/components/Modal/Modal.vue'\r\nimport LyricsModal from './../Shared/LyricsModal.vue';\r\nimport ChordsModal from './../Shared/ChordsModal.vue';\r\nimport SimplePagination from '@/components/Pagination/SimplePagination.vue';\r\nimport { Component, Vue } from 'vue-property-decorator'\r\nimport { CatalogSongsService } from '@/services/CatalogSongsService'\r\nimport { i18n } from '@/main';\r\nimport { DynamicTranslationService } from '@/services/DynamicTranslationService';\r\nimport { ProfileService } from '@/services/ProfileService';\r\n\r\n@Component({\r\n metaInfo: () => ({\r\n title: DynamicTranslationService.searchAllCatalogsTitle\r\n }),\r\n components:{\r\n Table,\r\n SvgIcon,\r\n FButton,\r\n Modal,\r\n SimplePagination,\r\n LyricsModal,\r\n ChordsModal\r\n }\r\n})\r\nexport default class CatalogSongResults extends Vue {\r\n store = CatalogSongsService;\r\n\r\n get featureToggleChords(){\r\n return ProfileService.profile?.featureToggleChords || false;\r\n }\r\n get columns() {\r\n const cols = [\r\n {\r\n key:'songTitle',\r\n label: i18n.t('R.LIT_SongTitle').toString(),\r\n sortable: true,\r\n selected: false,\r\n ascDir: true,\r\n apiParam: 'Title'\r\n },\r\n {\r\n key:'contributors',\r\n label: i18n.t('R.LIT_SongContributors').toString()\r\n },\r\n {\r\n key:'catalogs',\r\n label: i18n.t('R.LIT_Catalogs').toString()\r\n },\r\n {\r\n key: 'lyrics',\r\n label: i18n.t('R.LIT_Lyrics').toString(),\r\n sortable: true ,\r\n selected: false,\r\n ascDir: true,\r\n apiParam: 'Lyrics'\r\n }\r\n ];\r\n\r\n if (this.featureToggleChords){\r\n cols.push({\r\n key: 'chords',\r\n label: i18n.t('R.LIT_Chords').toString(),\r\n sortable: true ,\r\n selected: false,\r\n ascDir: true,\r\n apiParam: 'Chords'\r\n });\r\n }\r\n\r\n cols.push(\r\n {\r\n key: 'ccliSongId',\r\n label: i18n.t('R.LIT_SongId').toString(),\r\n sortable: true ,\r\n selected: false,\r\n ascDir: true,\r\n apiParam: 'SongId'\r\n });\r\n if (!this.store.query.sortBy){\r\n return cols;\r\n }\r\n if (this.store.query.sortBy === 'TitleAsc'){\r\n cols.find(c => c.key === 'songTitle')!.selected = true;\r\n cols.find(c => c.key === 'songTitle')!.ascDir = true;\r\n }else if (this.store.query.sortBy === 'TitleDesc'){\r\n cols.find(c => c.key === 'songTitle')!.selected = true;\r\n cols.find(c => c.key === 'songTitle')!.ascDir = false;\r\n }else if (this.store.query.sortBy === 'LyricsAsc'){\r\n cols.find(c => c.key === 'lyrics')!.selected = true;\r\n cols.find(c => c.key === 'lyrics')!.ascDir = true;\r\n }else if (this.store.query.sortBy === 'LyricsDesc'){\r\n cols.find(c => c.key === 'lyrics')!.selected = true;\r\n cols.find(c => c.key === 'lyrics')!.ascDir = false;\r\n }else if (this.store.query.sortBy === 'ChordsAsc'){\r\n cols.find(c => c.key === 'chords')!.selected = true;\r\n cols.find(c => c.key === 'chords')!.ascDir = true;\r\n }else if (this.store.query.sortBy === 'ChordsDesc'){\r\n cols.find(c => c.key === 'chords')!.selected = true;\r\n cols.find(c => c.key === 'chords')!.ascDir = false;\r\n }else if (this.store.query.sortBy === 'SongIdAsc'){\r\n cols.find(c => c.key === 'ccliSongId')!.selected = true;\r\n cols.find(c => c.key === 'ccliSongId')!.ascDir = true;\r\n }else if (this.store.query.sortBy === 'SongIdDesc'){\r\n cols.find(c => c.key === 'ccliSongId')!.selected = true;\r\n cols.find(c => c.key === 'ccliSongId')!.ascDir = false;\r\n }\r\n return cols;\r\n }\r\n\r\n songPath = `/intellectualproperty/catalogs/${this.store.catalogId}/`;\r\n\r\n get search() {\r\n return this.$route.query.s as string;\r\n }\r\n\r\n get numResults() {\r\n return this.store.numResults;\r\n }\r\n\r\n get page() {\r\n return this.store.query.page;\r\n }\r\n\r\n get numPerPage(){\r\n return this.store.query.numPerPage;\r\n }\r\n\r\n onNumPerPageChange(numPerPage: number){\r\n this.store.setNumPerPage(numPerPage);\r\n }\r\n\r\n goToPage(page: number){\r\n this.store.setPage(page);\r\n }\r\n\r\n onHeadingClick(key: string) {\r\n const col = this.columns.find(c => c.key === key)\r\n if (!col || !col.apiParam){\r\n return;\r\n }\r\n let sortBy = col.apiParam;\r\n if (col.selected){\r\n col.ascDir = !col.ascDir;\r\n }else{\r\n this.columns.filter(c => c.sortable).forEach(c => c.selected = false)\r\n col.selected = true;\r\n col.ascDir = true;\r\n }\r\n\r\n sortBy += col.ascDir ? 'Asc' : 'Desc';\r\n this.store.setSortBy(sortBy)\r\n }\r\n\r\n openLyricsModal(songId: string, songTitle: string){\r\n (this.$refs.lyricsModal as LyricsModal).init(songId, songTitle);\r\n }\r\n\r\n openChordsModal(songId: string, songTitle: string, authors: string){\r\n (this.$refs.chordsModal as ChordsModal).init(songId, songTitle, authors);\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CatalogSongResults.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CatalogSongResults.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./CatalogSongResults.vue?vue&type=template&id=ff03b6da&scoped=true\"\nimport script from \"./CatalogSongResults.vue?vue&type=script&lang=ts\"\nexport * from \"./CatalogSongResults.vue?vue&type=script&lang=ts\"\nimport style0 from \"./CatalogSongResults.vue?vue&type=style&index=0&id=ff03b6da&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"ff03b6da\",\n null\n \n)\n\nexport default component.exports","\r\nimport { bus, i18n } from '@/main';\r\nimport { Component, Vue, Watch } from 'vue-property-decorator'\r\nimport CatalogSongResults from './CatalogSongResults.vue'\r\nimport FButton from '@/components/Button/FButton.vue'\r\nimport LargeIcon from '@/components/Icon/LargeIcon.vue'\r\nimport { BusyService } from '@/services/BusyService';\r\nimport { CatalogSongsService } from '@/services/CatalogSongsService';\r\nimport { asyncDownload } from '@/functions/DownloadFunctions';\r\nimport { DynamicTranslationService } from '@/services/DynamicTranslationService';\r\n\r\n@Component({\r\n metaInfo: () => ({\r\n title: DynamicTranslationService.catalogDetailsTitle\r\n }), \r\n components:{ \r\n CatalogSongResults, \r\n FButton, \r\n LargeIcon\r\n }\r\n})\r\nexport default class CatalogDetail extends Vue {\r\n\r\n store = CatalogSongsService;\r\n loading = false;\r\n\r\n get search(): string{ \r\n return this.$route.query.s as string || '';\r\n }\r\n\r\n async mounted() { \r\n BusyService.showBusy();\r\n this.loading = true;\r\n this.store.catalogId = this.$route.params.id;\r\n try{\r\n this.store.getQueryParams();\r\n await this.store.performSearch();\r\n this.loading = false;\r\n BusyService.hideBusy();\r\n }catch(error){ \r\n this.loading = false;\r\n BusyService.hideBusy();\r\n throw error;\r\n }\r\n \r\n bus.$on('territoryUpdated', this.performSearch);\r\n }\r\n \r\n beforeDestroy() {\r\n this.store.reset();\r\n bus.$off('territoryUpdated');\r\n }\r\n\r\n @Watch('$route')\r\n async performSearch(){ \r\n BusyService.showBusy();\r\n await this.store.performSearch();\r\n BusyService.hideBusy();\r\n }\r\n\r\n downloadAll() { \r\n asyncDownload(this.store.downloadAllUrl, `${this.store.catalogId}.csv`);\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CatalogDetail.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CatalogDetail.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./CatalogDetail.vue?vue&type=template&id=05d73eb4&scoped=true\"\nimport script from \"./CatalogDetail.vue?vue&type=script&lang=ts\"\nexport * from \"./CatalogDetail.vue?vue&type=script&lang=ts\"\nimport style0 from \"./CatalogDetail.vue?vue&type=style&index=0&id=05d73eb4&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"05d73eb4\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}