{"version":3,"sources":["webpack:///./src/views/liverecorder/components/PresentationSelect.vue?20f0","webpack:///./src/views/liverecorder/components/PresentationSelect.vue","webpack:///./src/views/liverecorder/components/PresentationSelect.vue?ffee","webpack:///./src/views/liverecorder/components/PresentationSelect.vue?bf03"],"names":["render","_vm","this","_h","$createElement","_c","_self","VBtn","attrs","selected","disabled","loading","on","openSelect","VIcon","_v","_s","name","VDialog","model","value","callback","$$v","dialog","expression","VCard","$t","VList","_l","item","i","VListItem","key","$event","selectPresentation","staticRenderFns","PresentationSelect","items","presentations","map","p","File","Name","unshift","toString","length","displaySnackbar","pres","retrieved","getPresentations","Vue","__decorate","Prop","default","PropSync","Getter","Action","Component","component"],"mappings":"6NAWIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAGE,EAAA,KAAK,CAACC,MAAM,CAAC,MAAQP,EAAIQ,SAAW,UAAY,cAAc,UAAYR,EAAIQ,SAAW,IAAM,IAAI,OAASR,EAAIQ,SAAS,SAAWR,EAAIS,SAAS,QAAUT,EAAIU,SAASC,GAAG,CAAC,MAAQX,EAAIY,aAAa,CAACR,EAAGS,EAAA,KAAM,CAACN,MAAM,CAAC,KAAO,KAAK,CAACP,EAAIc,GAAG,sBAAsBV,EAAG,OAAO,CAACJ,EAAIc,GAAGd,EAAIe,GAAGf,EAAIgB,UAAU,GAAGZ,EAAGa,EAAA,KAAQ,CAACV,MAAM,CAAC,YAAY,SAASW,MAAM,CAACC,MAAOnB,EAAU,OAAEoB,SAAS,SAAUC,GAAMrB,EAAIsB,OAAOD,GAAKE,WAAW,WAAW,CAACnB,EAAGoB,EAAA,KAAM,CAACpB,EAAG,OAAW,CAACJ,EAAIc,GAAGd,EAAIe,GAAGf,EAAIyB,GAAG,qBAAqBrB,EAAG,OAAU,CAACA,EAAGsB,EAAA,KAAM1B,EAAI2B,GAAI3B,EAAS,OA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CAVPpB,EAAkB,gBADtCqB,QACoBrB,WC7C4Z,I,YCO7asB,EAAY,eACd,EACA1D,EACAmC,GACA,EACA,KACA,KACA,MAIa,aAAAuB,E","file":"assets/js/chunk-2d0cb721.53d77386.js","sourcesContent":["import { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VCardTitle } from 'vuetify/lib/components/VCard';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VList } from 'vuetify/lib/components/VList';\nimport { VListItem } from 'vuetify/lib/components/VList';\nimport { VListItemContent } from 'vuetify/lib/components/VList';\nimport { VListItemTitle } from 'vuetify/lib/components/VList';\n\nvar render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c(VBtn,{attrs:{\"color\":_vm.selected ? 'primary' : 'transparent',\"elevation\":_vm.selected ? '0' : '2',\"text\":!!_vm.selected,\"disabled\":_vm.disabled,\"loading\":_vm.loading},on:{\"click\":_vm.openSelect}},[_c(VIcon,{attrs:{\"left\":\"\"}},[_vm._v(\"mdi-presentation\")]),_c('span',[_vm._v(_vm._s(_vm.name))])],1),_c(VDialog,{attrs:{\"max-width\":\"600px\"},model:{value:(_vm.dialog),callback:function ($$v) {_vm.dialog=$$v},expression:\"dialog\"}},[_c(VCard,[_c(VCardTitle,[_vm._v(_vm._s(_vm.$t(\"upsess.select\")))]),_c(VCardText,[_c(VList,_vm._l((_vm.items),function(item,i){return _c(VListItem,{key:i,on:{\"click\":function($event){return _vm.selectPresentation(item.value)}}},[_c(VListItemContent,[_c(VListItemTitle,[_vm._v(_vm._s(item.value ? item.name : _vm.$t(\"global.none\")))])],1)],1)}),1)],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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\r\nimport Vue from \"vue\";\r\nimport { Action, Getter } from \"vuex-class\";\r\nimport { Presentation } from \"@/core/models\";\r\nimport { Component, Prop, PropSync } from \"vue-property-decorator\";\r\n\r\ntype Item = { name: string; value: Presentation | null };\r\n@Component\r\nexport default class PresentationSelect extends Vue {\r\n @Prop({ default: () => false }) disabled!: boolean;\r\n @PropSync(\"selectedProp\", { default: () => null })\r\n selected!: Presentation | null;\r\n\r\n @Getter(\"presentations/loading\") loading!: boolean;\r\n @Getter(\"presentations/retrieved\") retrieved!: boolean;\r\n @Getter(\"presentations/getPresentations\") presentations!: Presentation[];\r\n @Action(\"presentations/getPresentations\")\r\n getPresentations!: () => Promise;\r\n @Action(\"displaySnackbar\") displaySnackbar!: (s: string) => void;\r\n\r\n dialog = false;\r\n get items() {\r\n const items: Item[] = this.presentations.map(p => ({\r\n name: `${p.File.Name}`,\r\n value: p,\r\n }));\r\n items.unshift({ name: this.$t(\"global.none\").toString(), value: null });\r\n return items;\r\n }\r\n get name() {\r\n if (!this.selected) return this.$t(\"upsess.select\").toString();\r\n return this.selected.File.Name;\r\n }\r\n openSelect() {\r\n if (!this.presentations.length)\r\n this.displaySnackbar(this.$t(\"pres.none\").toString());\r\n else this.dialog = true;\r\n }\r\n selectPresentation(pres: Presentation | null) {\r\n this.dialog = false;\r\n this.selected = pres;\r\n }\r\n\r\n created() {\r\n if (!this.retrieved) this.getPresentations();\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!./PresentationSelect.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!./PresentationSelect.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./PresentationSelect.vue?vue&type=template&id=5747aaa1&\"\nimport script from \"./PresentationSelect.vue?vue&type=script&lang=ts&\"\nexport * from \"./PresentationSelect.vue?vue&type=script&lang=ts&\"\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 null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}