{"version":3,"sources":["webpack:///./src/assets/font-awesomes/lock.svg","webpack:///./src/assets/font-awesomes/folder.svg","webpack:///./src/commoncomponents/CollectionCardComponent/CollectionCardComponent.vue?2c8e","webpack:///./src/commoncomponents/CollectionCardComponent/CollectionCardComponent.ts","webpack:///./src/commoncomponents/CollectionCardComponent/CollectionCardComponent.vue?c212","webpack:///./src/commoncomponents/CollectionCardComponent/CollectionCardComponent.vue?5ab3","webpack:///./src/commoncomponents/CollectionCardComponent/CollectionCardComponent.vue","webpack:///./src/assets/font-awesomes/folder-open.svg","webpack:///./src/commoncomponents/CollectionCardComponent/CollectionCardComponent.less?f5ab"],"names":["module","exports","render","_vm","this","_h","$createElement","_c","_self","staticClass","class","selected","collectionChecked","small","attrs","routeTo","cardData","contentImages","length","slice","_e","_v","_s","totalItemsText","title","collectionId","on","handleSelect","handleEdit","handleDelete","staticRenderFns","CollectionCardComponent","newValue","$emit","value","data","totalItems","name","params","learningLibraryEditing","String","Vue","tslib_1","Prop","type","Object","Boolean","default","Watch","immediate","Component","components","CmsCheckbox","ContextMenu","ContextMenuItem","component"],"mappings":"qGAAAA,EAAOC,QAAU,IAA0B,yB,uBCA3CD,EAAOC,QAAU,IAA0B,2B,2CCA3C,IAAIC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,OAAOC,MAAM,CAACC,SAAUR,EAAIS,oBAAoB,CAACL,EAAG,aAAa,CAACE,YAAY,iBAAiBC,MAAM,CAACG,MAAOV,EAAIU,OAAOC,MAAM,CAAC,GAAKX,EAAIY,UAAU,CAACR,EAAG,MAAM,CAACE,YAAY,cAAc,CAAGN,EAAIa,SAASC,eAAuD,IAAtCd,EAAIa,SAASC,cAAcC,OAA+Hf,EAAIa,SAASC,cAAcC,QAAU,EAAGX,EAAG,MAAM,CAACE,YAAY,oBAAoBK,MAAM,CAAC,IAAMX,EAA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S,+BAIvBH,QADCC,eAAK,CAAEC,KAAME,WAAU,4BAIxBJ,QADCC,eAAK,CAAEC,KAAME,QAASC,SAAS,KAAQ,kCAMxCL,QADCC,eAAK,CAAEC,KAAME,WAAU,6CAsBxBJ,QADCM,eAAM,cAAe,CAAEC,WAAW,KAAO,wCAjCvBlB,EAAuB,QAR3CmB,eAAU,CACTb,KAAM,kBACNc,WAAY,CACVC,yBACAC,yBACAC,iCAGiBvB,WCkENA,ICjFqZ,I,wBCQhawB,EAAY,eACd,EACArD,EACA4B,GACA,EACA,KACA,WACA,MAIa,aAAAyB,E,gCCnBfvD,EAAOC,QAAU,IAA0B,gC,yDCA3C","file":"js/chunk-4db741c8.9f54e56e93f72b5814f9.1727471474572.min.js","sourcesContent":["module.exports = __webpack_public_path__ + \"img/lock.ddfe9bf2.svg\";","module.exports = __webpack_public_path__ + \"img/folder.f30614ff.svg\";","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"card\",class:{selected: _vm.collectionChecked}},[_c('RouterLink',{staticClass:\"card-container\",class:{small: _vm.small},attrs:{\"to\":_vm.routeTo}},[_c('div',{staticClass:\"card-image\"},[(!_vm.cardData.contentImages || _vm.cardData.contentImages.length === 0)?_c('img',{staticClass:\"card-image-single\",attrs:{\"src\":require(\"../../assets/font-awesomes/folder-open.svg\")}}):(_vm.cardData.contentImages.length <= 3)?_c('img',{staticClass:\"card-image-single\",attrs:{\"src\":_vm.cardData.contentImages.slice(-1)}}):[_c('img',{staticClass:\"card-image-collage\",attrs:{\"src\":_vm.cardData.contentImages.slice(-1)}}),_c('img',{staticClass:\"card-image-collage\",attrs:{\"src\":_vm.cardData.contentImages.slice(-2, -1)}}),_c('img',{staticClass:\"card-image-collage\",attrs:{\"src\":_vm.cardData.contentImages.slice(-3, -2)}}),_c('img',{staticClass:\"card-image-collage\",attrs:{\"src\":_vm.cardData.contentImages.slice(-4, -3)}})]],2),_c('div',{staticClass:\"card-header\"},[(!_vm.small)?_c('span',[_c('img',{attrs:{\"src\":require(\"../../assets/font-awesomes/folder.svg\")}})]):_vm._e(),(!_vm.small)?_c('span',{staticClass:\"card-content-type\"},[_vm._v(\"COLLECTION\")]):_vm._e(),(!_vm.small)?_c('span',{staticClass:\"card-count\"},[_vm._v(_vm._s(_vm.totalItemsText))]):_vm._e(),_c('h4',{staticClass:\"card-title\"},[_vm._v(_vm._s(_vm.cardData.title))]),(_vm.small)?_c('span',{staticClass:\"card-count\"},[_vm._v(_vm._s(_vm.totalItemsText))]):_vm._e(),(!_vm.small)?_c('span',{staticClass:\"card-count-mobile\"},[_vm._v(_vm._s(_vm.totalItemsText))]):_vm._e()])]),(_vm.small)?_c('div',{staticClass:\"card-actions active\"},[_c('CmsCheckbox',{attrs:{\"id\":_vm.cardData.collectionId,\"checked\":_vm.collectionChecked},on:{\"change\":_vm.handleSelect}})],1):_vm._e(),(!_vm.small)?_c('div',{staticClass:\"card-actions\"},[(_vm.cardData.isLocked)?_c('img',{attrs:{\"src\":require(\"../../assets/font-awesomes/lock.svg\")}}):_c('div',{staticClass:\"card-context-menu\"},[_c('ContextMenu',{attrs:{\"variant\":\"neutral\",\"elevation\":\"400\",\"mode\":\"click\",\"position\":\"bottom-right\"}},[_c('ContextMenuItem',{on:{\"click\":_vm.handleEdit}},[_vm._v(\"Edit\")]),_c('ContextMenuItem',{on:{\"click\":_vm.handleDelete}},[_vm._v(\"Delete\")])],1)],1)]):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { CollectionCardData } from '@/utilities/cmsUtilities';\nimport { Component, Prop, Vue, Watch } from 'vue-property-decorator';\nimport { Location } from 'vue-router';\nimport ContextMenu from '../contextMenuComponents/ContextMenu.vue';\nimport ContextMenuItem from '../contextMenuComponents/ContextMenuItem.vue';\nimport CmsCheckbox from '@/commoncomponents/Checkbox.vue';\n\n@Component({\n name: 'collection-card',\n components: {\n CmsCheckbox,\n ContextMenu,\n ContextMenuItem,\n },\n})\nexport default class CollectionCardComponent extends Vue {\n @Prop({ type: Object })\n cardData!: CollectionCardData;\n\n @Prop({ type: Boolean })\n small?: boolean;\n\n @Prop({ type: Boolean, default: false })\n highlighted!: boolean;\n\n collectionChecked: boolean = false;\n\n @Prop({ type: Boolean })\n learningLibraryEditing?: boolean;\n\n get totalItemsText() {\n return `${this.cardData.totalItems} ${\n this.cardData.totalItems === 1\n ? 'item'\n : 'items'\n }`;\n }\n\n get routeTo(): Location {\n return {\n name: 'Single Collection',\n params: {\n collectionId: this.cardData.collectionId,\n learningLibraryEditing: String(this.cardData.learningLibraryEditing),\n }\n };\n }\n\n @Watch('highlighted', { immediate: true })\n onHighlightedChange(newValue: boolean): void {\n if (!newValue) {\n return;\n }\n this.handleSelect(true);\n }\n\n handleEdit(): void {\n this.$emit('edit', this.cardData);\n }\n\n handleDelete(): void {\n this.$emit('delete', this.cardData);\n }\n\n handleSelect(value: boolean): void {\n this.collectionChecked = value;\n this.$emit('select', {\n selected: this.collectionChecked,\n data: this.cardData,\n });\n }\n}\n","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport CollectionCardComponent from \"./CollectionCardComponent\";\nexport default CollectionCardComponent;\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CollectionCardComponent.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CollectionCardComponent.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CollectionCardComponent.vue?vue&type=template&id=f76bbc3c&scoped=true&\"\nimport script from \"./CollectionCardComponent.vue?vue&type=script&lang=ts&\"\nexport * from \"./CollectionCardComponent.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./CollectionCardComponent.less?vue&type=style&index=0&id=f76bbc3c&lang=less&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 \"f76bbc3c\",\n null\n \n)\n\nexport default component.exports","module.exports = __webpack_public_path__ + \"img/folder-open.e5016a12.svg\";","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!./CollectionCardComponent.less?vue&type=style&index=0&id=f76bbc3c&lang=less&scoped=true&\""],"sourceRoot":""}