{"version":3,"sources":["wwwroot/scripts/widgets/researchReportCollection.js"],"names":["reportList","length","functionMultiple","item","index","Vue","createApp","data","researchReportCollections","researchReportCollectionPage","researchReportCollectionPerPage","pageSize","researchReportCollectionPages","totalNumberofResearchReportCollectionPages","isMember","methods","setresearchReportCollectionPages","this","Math","ceil","pagination","openMemberOnlyAccessDenied","event","paginate","items","page","perPage","slice","setDeliveryChannel","researchReportCollectionDelivery","forEach","researchReportCollection","concat","productType","deliveryChannels","filter","i","ar","indexOf","setTopics","researchReportCollectionTopic","practiceArea","topics","resetPages","onTopicChange","onDeliveryChange","getImageMediaText","cmsImage","getOrchardImageMediaText","computed","displayedresearchReportCollections","filteredresearchReportCollections","watch","val","scrollOnPagination","created","filters","trimWords","value","split","splice","join","mount","researchReportCollectionsApp","researchReportCollectionsMountedApp"],"mappings":"AAAA,GAAA,EAAAA,WAAAC,OAAA,CAGA,SAAAC,iBAAAC,EAAAC,GACAC,IAAAC,UAAA,CACAC,OACA,MAAA,CACAC,0BAAAR,WAAAI,GACAK,6BAAA,EACAC,gCAAAC,SACAC,8BAAA,GACAC,2CAAA,EACAC,SAAAA,QACA,CACA,EACAC,QAAA,CACAC,iCAAAR,GACAS,KAAAL,8BAAA,GACAK,KAAAJ,2CAAAK,KAAAC,KAAAX,EAAAP,OAAAgB,KAAAP,+BAAA,EACAO,KAAAL,8BAAAQ,WAAAH,KAAAR,6BAAAQ,KAAAJ,0CAAA,CACA,EAEAQ,2BAAAC,GACAD,2BAAAC,CAAA,CACA,EAEAC,SAAAC,EAAAC,EAAAC,GAGA,OAAAF,EAAAG,MAFAF,EAAAC,EAAAA,EACAD,EAAAC,CACA,CACA,EAEAE,qBACA,IAAAC,EAAA,GACAZ,KAAAT,0BAAAsB,QAAA,SAAAC,GACAF,EAAAA,EAAAG,OAAAD,EAAAE,WAAA,CACA,CAAA,EAEAhB,KAAAiB,iBAAAL,EAAAM,OAAA,CAAAhC,EAAAiC,EAAAC,IAAAA,EAAAC,QAAAnC,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AC,EAAAC,GAGA,OAAAF,EAAAG,MAFAF,EAAAC,EAAAA,EACAD,EAAAC,CACA,CACA,EAEAL,2BAAAC,GACAD,2BAAAC,CAAA,CACA,EAEAM,qBACA,IAAAC,EAAA,GACAZ,KAAAT,0BAAAsB,QAAA,SAAAC,GACAF,EAAAA,EAAAG,OAAAD,EAAAE,WAAA,CACA,CAAA,EAEAhB,KAAAiB,iBAAAL,EAAAM,OAAA,CAAAhC,EAAAiC,EAAAC,IAAAA,EAAAC,QAAAnC,CAAA,IAAAiC,CAAA,CACA,EAEAG,YACA,IAAAC,EAAA,GACAvB,KAAAT,0BAAAsB,QAAA,SAAAC,GACAS,EAAAA,EAAAR,OAAAD,EAAAU,YAAA,CACA,CAAA,EAEAxB,KAAAyB,OAAAF,EAAAL,OAAA,CAAAhC,EAAAiC,EAAAC,IAAAA,EAAAC,QAAAnC,CAAA,IAAAiC,CAAA,CACA,EAEAO,aACA1B,KAAAR,6BAAA,CACA,EAEAmC,gBACA3B,KAAA0B,WAAA,CACA,EAEAE,mBACA5B,KAAA0B,WAAA,CACA,EACAG,kBAAAC,GACA,OAAAC,yBAAAD,CAAA,CACA,CACA,EACAE,SAAA,CACAC,qCACA,IAAAC,EAAAlC,KAAAT,0BAEA,OADAS,KAAAD,iCAAAmC,CAAA,EACAlC,KAAAM,SAAA4B,EAAAlC,KAAAR,6BAAAQ,KAAAP,+BAAA,CACA,CACA,EACA0C,MAAA,CACA5C,4BACAS,KAAAD,iCAAA,CACA,EAEAP,6BAAA,SAAA4C,GACAC,mBAAA,2BAAA,CACA,CACA,EAEAC,YAGAC,QAAA,CACAC,UAAAC,GACA,OAAAA,EAAAC,MAAA,GAAA,EAAAC,OAAA,EAAA,EAAA,EAAAC,KAAA,GAAA,EAAA,KACA,CACA,CACA,CAAA,EAEAG,EAAAD,EAAAD,MAAA,4BAAA,CACA","file":"researchReportCollection.min.js","sourcesContent":["if (reportList.length > 1) {\r\n\r\n reportList.forEach(functionMultiple);\r\n function functionMultiple(item, index) {\r\n const researchReportCollectionsApp = Vue.createApp({\r\n data() {\r\n return {\r\n researchReportCollections: reportList[index],\r\n researchReportCollectionPage: 1,\r\n researchReportCollectionPerPage: pageSize,\r\n researchReportCollectionPages: [],\r\n totalNumberofResearchReportCollectionPages: 0,\r\n isMember: isMember\r\n }\r\n },\r\n methods: {\r\n setresearchReportCollectionPages(researchReportCollections) {\r\n this.researchReportCollectionPages = [];\r\n this.totalNumberofResearchReportCollectionPages = Math.ceil(researchReportCollections.length / this.researchReportCollectionPerPage);\r\n this.researchReportCollectionPages = pagination(this.researchReportCollectionPage, this.totalNumberofResearchReportCollectionPages);\r\n },\r\n\r\n openMemberOnlyAccessDenied(event) {\r\n openMemberOnlyAccessDenied(event);\r\n },\r\n\r\n paginate(items, page, perPage) {\r\n let from = (page * perPage) - perPage;\r\n let to = (page * perPage);\r\n return items.slice(from, to);\r\n },\r\n\r\n setDeliveryChannel() {\r\n var researchReportCollectionDelivery = [];\r\n this.researchReportCollections.forEach(function (researchReportCollection) {\r\n researchReportCollectionDelivery = researchReportCollectionDelivery.concat(researchReportCollection.productType);\r\n });\r\n\r\n this.deliveryChannels = researchReportCollectionDelivery.filter((item, i, ar) => ar.indexOf(item) === i);\r\n },\r\n\r\n setTopics() {\r\n var researchReportCollectionTopic = [];\r\n this.researchReportCollections.forEach(function (researchReportCollection) {\r\n researchReportCollectionTopic = researchReportCollectionTopic.concat(researchReportCollection.practiceArea);\r\n });\r\n\r\n this.topics = researchReportCollectionTopic.filter((item, i, ar) => ar.indexOf(item) === i);\r\n },\r\n\r\n resetPages() {\r\n this.researchReportCollectionPage = 1;\r\n },\r\n\r\n onTopicChange() {\r\n this.resetPages();\r\n },\r\n\r\n onDeliveryChange() {\r\n this.resetPages();\r\n },\r\n getImageMediaText(cmsImage) {\r\n return getOrchardImageMediaText(cmsImage);\r\n }\r\n },\r\n computed: {\r\n displayedresearchReportCollections() {\r\n var filteredresearchReportCollections = this.researchReportCollections;\r\n this.setresearchReportCollectionPages(filteredresearchReportCollections);\r\n return this.paginate(filteredresearchReportCollections, this.researchReportCollectionPage, this.researchReportCollectionPerPage);\r\n }\r\n },\r\n watch: {\r\n researchReportCollections() {\r\n this.setresearchReportCollectionPages();\r\n },\r\n researchReportCollectionPage: function (val) {\r\n scrollOnPagination(\"ResearchReportCollection\" + index);\r\n }\r\n },\r\n\r\n created() {\r\n\r\n },\r\n filters: {\r\n trimWords(value) {\r\n return value.split(\" \").splice(0, 20).join(\" \") + '...';\r\n }\r\n }\r\n });\r\n\r\n const researchReportCollectionsMountedApp = researchReportCollectionsApp.mount('#ResearchReportCollection' + index);\r\n }\r\n \r\n}\r\nelse {\r\n \r\n const researchReportCollectionsApp = Vue.createApp({\r\n data() {\r\n return {\r\n researchReportCollections: reportList[0],\r\n researchReportCollectionPage: 1,\r\n researchReportCollectionPerPage: 12,\r\n researchReportCollectionPages: [],\r\n totalNumberofResearchReportCollectionPages: 0,\r\n isMember: isMember\r\n }\r\n },\r\n methods: {\r\n setresearchReportCollectionPages(researchReportCollections) {\r\n this.researchReportCollectionPages = [];\r\n this.totalNumberofResearchReportCollectionPages = Math.ceil(researchReportCollections.length / this.researchReportCollectionPerPage);\r\n this.researchReportCollectionPages = pagination(this.researchReportCollectionPage, this.totalNumberofResearchReportCollectionPages);\r\n },\r\n\r\n paginate(items, page, perPage) {\r\n let from = (page * perPage) - perPage;\r\n let to = (page * perPage);\r\n return items.slice(from, to);\r\n },\r\n\r\n openMemberOnlyAccessDenied(event) {\r\n openMemberOnlyAccessDenied(event);\r\n },\r\n\r\n setDeliveryChannel() {\r\n var researchReportCollectionDelivery = [];\r\n this.researchReportCollections.forEach(function (researchReportCollection) {\r\n researchReportCollectionDelivery = researchReportCollectionDelivery.concat(researchReportCollection.productType);\r\n });\r\n\r\n this.deliveryChannels = researchReportCollectionDelivery.filter((item, i, ar) => ar.indexOf(item) === i);\r\n },\r\n\r\n setTopics() {\r\n var researchReportCollectionTopic = [];\r\n this.researchReportCollections.forEach(function (researchReportCollection) {\r\n researchReportCollectionTopic = researchReportCollectionTopic.concat(researchReportCollection.practiceArea);\r\n });\r\n\r\n this.topics = researchReportCollectionTopic.filter((item, i, ar) => ar.indexOf(item) === i);\r\n },\r\n\r\n resetPages() {\r\n this.researchReportCollectionPage = 1;\r\n },\r\n\r\n onTopicChange() {\r\n this.resetPages();\r\n },\r\n\r\n onDeliveryChange() {\r\n this.resetPages();\r\n },\r\n getImageMediaText(cmsImage) {\r\n return getOrchardImageMediaText(cmsImage);\r\n }\r\n },\r\n computed: {\r\n displayedresearchReportCollections() {\r\n var filteredresearchReportCollections = this.researchReportCollections;\r\n this.setresearchReportCollectionPages(filteredresearchReportCollections);\r\n return this.paginate(filteredresearchReportCollections, this.researchReportCollectionPage, this.researchReportCollectionPerPage);\r\n }\r\n },\r\n watch: {\r\n researchReportCollections() {\r\n this.setresearchReportCollectionPages();\r\n },\r\n\r\n researchReportCollectionPage: function (val) {\r\n scrollOnPagination(\"ResearchReportCollection0\");\r\n }\r\n },\r\n\r\n created() {\r\n\r\n },\r\n filters: {\r\n trimWords(value) {\r\n return value.split(\" \").splice(0, 20).join(\" \") + '...';\r\n }\r\n }\r\n });\r\n\r\n const researchReportCollectionsMountedApp = researchReportCollectionsApp.mount('#ResearchReportCollection0');\r\n}\r\n"]}