{"version":3,"sources":["wwwroot/scripts/widgets/authorCardHalfBio.js"],"names":["authorsApp","Vue","createApp","data","wawAuthors","halfBioList","halfBioListdivIdjs","selectedTopic","txtSearch","showCertifications","showEmail","showCTA","ctaText","authorPage","authorPerPage","recordsPerPage","length","authorPages","totalNumberofAuthorPages","divIdForScroll","methods","setAuthorPages","authors","this","Math","ceil","pagination","paginate","items","page","perPage","slice","resetPages","getImageMediaText","cmsImage","getOrchardImageMediaText","computed","displayedAuthors","filteredAuthors","filter","item","undefined","WaWAuthor","Name","Text","toLowerCase","includes","Designation","Certifications","Email","ShortBio","Taxonomy","TagNames","paging","watch","val","scrollOnPagination","authorMountedApp","mount","ex"],"mappings":"AAAA,IAAAA,WAAAC,IAAAC,UAAA,CACAC,OACA,MAAA,CACAC,WAAAC,YAAAC,oBACAC,cAAA,GACAC,UAAA,GACAC,mBAAAA,mBACAC,UAAAA,UACAC,QAAAA,QACAC,QAAAA,QACAC,WAAA,EACAC,cAAA,GAAAC,eAAAA,eAAAV,YAAAC,oBAAAU,OACAC,YAAA,GACAC,yBAAA,EACAC,eAAAb,kBACA,CACA,EACAc,QAAA,CACAC,eAAAC,GACAC,KAAAN,YAAA,GACAM,KAAAL,yBAAAM,KAAAC,KAAAH,EAAAN,OAAAO,KAAAT,aAAA,EACAS,KAAAN,YAAAS,WAAAH,KAAAV,WAAAU,KAAAL,wBAAA,CACA,EACAS,SAAAC,EAAAC,EAAAC,GAGA,OAAAF,EAAAG,MAFAF,EAAAC,EAAAA,EACAD,EAAAC,CACA,CACA,EACAE,aACAT,KAAAV,WAAA,CACA,EACAoB,kBAAAC,GACA,OAAAC,yBAAAD,CAAA,CACA,CAEA,EACAE,SAAA,CACAC,mBACA/B,oBAAA,EACA,IAAAgC,EAAAf,KAAAnB,WAAAmC,OAAA,SAAAC,GACA,OACAC,MAAAD,EAAAE,UAAAC,KAAAC,MAAAJ,EAAAE,UAAAC,KAAAC,KAAAC,YAAA,EAAAC,SAAAvB,KAAAf,UAAAqC,YAAA,CAAA,GACAJ,MAAAD,EAAAE,UAAAK,YAAAH,MAAAJ,EAAAE,UAAAK,YAAAH,KAAAC,YAAA,EAAAC,SAAAvB,KAAAf,UAAAqC,YAAA,CAAA,GACAJ,MAAAD,EAAAE,UAAAM,eAAAJ,MAAAJ,EAAAE,UAAAM,eAAAJ,KAAAC,YAAA,EAAAC,SAAAvB,KAAAf,UAAAqC,YAAA,CAAA,GACAJ,MAAAD,EAAAE,UAAAO,MAAAL,MAAAJ,EAAAE,UAAAO,MAAAL,KAAAC,YAAA,EAAAC,SAAAvB,KAAAf,UAAAqC,YAAA,CAAA,GACAJ,MAAAD,EAAAE,UAAAQ,SAAAN,MAAAJ,EAAAE,UAAAQ,SAAAN,KAAAC,YAAA,EAAAC,SAAAvB,KAAAf,UAAAqC,YAAA,CAAA,GACA,IAAAtB,KAAAf,aAEAiC,MAAAD,EAAAE,UAAAS,SAAAC,UAAAZ,EAAAE,UAAAS,SAAAC,SAAAN,SAAAvB,KAAAhB,aAAA,GAAA,IAAAgB,KAAAhB,cAEA,EAAAgB,IAAA,EAGA,OADAA,KAAAF,eAAAiB,CAAA,EACA,QAAAe,OACA9B,KAAAI,SAAAW,EAAAf,KAAAV,WAAAU,KAAAT,aAAA,EAGAwB,CAGA,CACA,EACAgB,MAAA,CACAlD,aACAmB,KAAAF,eAAA,CACA,EACAR,WAAA,SAAA0C,GACAC,mBAAA,uBAAAjC,KAAAJ,cAAA,CACA,CACA,CACA,CAAA,EAEA,IACA,IAAAsC,iBAAAzD,WAAA0D,MAAA,wBAAApD,kBAAA,CAIA,CAFA,MAAAqD","file":"authorCardHalfBio.min.js","sourcesContent":["var authorsApp = Vue.createApp({\r\n data() {\r\n return {\r\n wawAuthors: halfBioList[halfBioListdivIdjs],\r\n selectedTopic: \"\",\r\n txtSearch: \"\",\r\n showCertifications: showCertifications,\r\n showEmail: showEmail,\r\n showCTA: showCTA,\r\n ctaText: ctaText,\r\n authorPage: 1,\r\n authorPerPage: recordsPerPage != 0 ? recordsPerPage : halfBioList[halfBioListdivIdjs].length,\r\n authorPages: [],\r\n totalNumberofAuthorPages: 0,\r\n divIdForScroll: halfBioListdivIdjs\r\n }\r\n },\r\n methods: {\r\n setAuthorPages(authors) {\r\n this.authorPages = [];\r\n this.totalNumberofAuthorPages = Math.ceil(authors.length / this.authorPerPage);\r\n this.authorPages = pagination(this.authorPage, this.totalNumberofAuthorPages);\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 resetPages() {\r\n this.authorPage = 1;\r\n },\r\n getImageMediaText(cmsImage) {\r\n return getOrchardImageMediaText(cmsImage);\r\n }\r\n\r\n },\r\n computed: {\r\n displayedAuthors() {\r\n halfBioListdivIdjs = halfBioListdivIdjs + 1;\r\n var filteredAuthors = this.wawAuthors.filter(function (item) {\r\n return (\r\n (item.WaWAuthor.Name.Text != undefined && item.WaWAuthor.Name.Text.toLowerCase().includes(this.txtSearch.toLowerCase())\r\n || (item.WaWAuthor.Designation.Text != undefined && item.WaWAuthor.Designation.Text.toLowerCase().includes(this.txtSearch.toLowerCase()))\r\n || (item.WaWAuthor.Certifications.Text != undefined && item.WaWAuthor.Certifications.Text.toLowerCase().includes(this.txtSearch.toLowerCase()))\r\n || (item.WaWAuthor.Email.Text != undefined && item.WaWAuthor.Email.Text.toLowerCase().includes(this.txtSearch.toLowerCase()))\r\n || (item.WaWAuthor.ShortBio.Text != undefined && item.WaWAuthor.ShortBio.Text.toLowerCase().includes(this.txtSearch.toLowerCase()))\r\n || this.txtSearch == \"\")\r\n &&\r\n (item.WaWAuthor.Taxonomy.TagNames != undefined && item.WaWAuthor.Taxonomy.TagNames.includes(this.selectedTopic) || this.selectedTopic == \"\")\r\n );\r\n }, this);\r\n\r\n this.setAuthorPages(filteredAuthors);\r\n if (paging == 'Show') {\r\n return this.paginate(filteredAuthors, this.authorPage, this.authorPerPage);\r\n }\r\n else {\r\n return filteredAuthors;\r\n }\r\n\r\n }\r\n },\r\n watch: {\r\n wawAuthors() {\r\n this.setAuthorPages();\r\n },\r\n authorPage: function (val) {\r\n scrollOnPagination(\"author_card_half_bio\" + this.divIdForScroll);\r\n }\r\n },\r\n});\r\n\r\ntry {\r\n var authorMountedApp = authorsApp.mount('#author_card_half_bio' + halfBioListdivIdjs);\r\n}\r\ncatch (ex) {\r\n\r\n}"]}