{"version":3,"sources":["webpack:///../../../src/mixins/rippleable/index.ts","webpack:///../../../src/components/VCheckbox/VCheckbox.ts","webpack:///./src/views/sessions/components/SharedWithUserItem.vue?07d6","webpack:///./src/views/sessions/components/SharedWithUserItem.vue","webpack:///./src/views/sessions/components/SharedWithUserItem.vue?c032","webpack:///./src/views/sessions/components/SharedWithUserItem.vue?2392","webpack:///./src/components/sessions/DeleteSession.vue?1e15","webpack:///./src/components/sessions/DeleteSession.vue","webpack:///./src/components/sessions/DeleteSession.vue?c632","webpack:///./src/components/sessions/DeleteSession.vue?6490","webpack:///../../../src/mixins/selectable/index.ts"],"names":["Vue","extend","name","directives","ripple","props","type","Boolean","Object","default","methods","genRipple","data","this","staticClass","push","value","center","$createElement","Selectable","indeterminate","indeterminateIcon","String","offIcon","onIcon","inputIndeterminate","computed","classes","VInput","options","call","computedIcon","isActive","validationState","isDisabled","hasError","shouldValidate","hasSuccess","hasColor","computedColor","watch","val","$nextTick","$emit","genCheckbox","attrs$","checkboxAttrs","title","VIcon","setTextColor","dense","dark","light","genInput","toString","rippleState","genDefaultSlot","genLabel","render","_vm","_h","_c","_self","VListItem","attrs","user","email","on","toggleUser","VListItemAction","VCheckbox","model","callback","$$v","checked","expression","VList","_v","_s","$t","_e","staticRenderFns","SharedWithItem","users","includes","isIncluded","idx","findIndex","x","splice","__decorate","PropSync","Array","Prop","Watch","immediate","Component","components","DeleteSession","component","VDialog","scopedSlots","_u","key","fn","ref","VBtn","_g","loading","confirmDeleteDialog","VCard","staticStyle","VDivider","VSpacer","$event","stopPropagation","confirmDelete","SessionDetails","canDelete","deleteSession","id","Action","prevent","e","preventDefault","mixins","Rippleable","Comparable","prop","event","inputValue","falseValue","trueValue","multiple","label","lazyValue","color","isDark","appIsDark","isMultiple","isArray","internalValue","input","some","item","valueComparator","undefined","isDirty","click","assign","disabled","computedId","role","domProps","blur","onBlur","change","onChange","focus","onFocus","keydown","onKeydown","onClick","isInteractive","length","filter","validate","isFocused"],"mappings":"iIA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,QAAQ,SAAArB,GAAD,OAAgB,EAAKC,gBAAgBD,EAAMhI,MAE5D8H,EAAMsB,SAAWA,GACnBtB,EAAM/H,KAAKC,QAGb8H,OAD4BI,IAAnBrI,KAAKuH,gBAA+Cc,IAApBrI,KAAKsH,WACtCtH,KAAKoI,gBAAgBH,EAAOjI,KAAKuH,WAAavH,KAAKsH,WAAatH,KAAKuH,UACpEpH,EACDH,KAAKoI,gBAAgBH,EAAO9H,GAAS,KAAOA,GAE3C8H,EAGXjI,KAAKyJ,UAAS,EAAMxB,GACpBjI,KAAKgI,cAAgBC,EACrBjI,KAAKyB,SAAWwG,IAElBiB,QAAO,SAAEpC,GACP9G,KAAK0J,WAAY,EACjB1J,KAAK8B,MAAM,QAASgF,IAEtBgC,OAAM,SAAEhC,GACN9G,KAAK0J,WAAY,EACjB1J,KAAK8B,MAAM,OAAQgF,IAGrBsC,UAAS,SAAEtC","file":"assets/js/chunk-6f81dfc0.8eb91575.js","sourcesContent":["// Directives\nimport ripple from '../../directives/ripple'\n\n// Types\nimport Vue, { VNode, VNodeData, VNodeDirective } from 'vue'\n\nexport default Vue.extend({\n name: 'rippleable',\n\n directives: { ripple },\n\n props: {\n ripple: {\n type: [Boolean, Object],\n default: true,\n },\n },\n\n methods: {\n genRipple (data: VNodeData = {}): VNode | null {\n if (!this.ripple) return null\n\n data.staticClass = 'v-input--selection-controls__ripple'\n\n data.directives = data.directives || []\n data.directives.push({\n name: 'ripple',\n value: { center: true },\n } as VNodeDirective)\n\n return this.$createElement('div', data)\n },\n },\n})\n","// Styles\nimport './VCheckbox.sass'\nimport '../../styles/components/_selection-controls.sass'\n\n// Components\nimport VIcon from '../VIcon'\nimport VInput from '../VInput'\n\n// Mixins\nimport Selectable from '../../mixins/selectable'\n\n/* @vue/component */\nexport default Selectable.extend({\n name: 'v-checkbox',\n\n props: {\n indeterminate: Boolean,\n indeterminateIcon: {\n type: String,\n default: '$checkboxIndeterminate',\n },\n offIcon: {\n type: String,\n default: '$checkboxOff',\n },\n onIcon: {\n type: String,\n default: '$checkboxOn',\n },\n },\n\n data () {\n return {\n inputIndeterminate: this.indeterminate,\n }\n },\n\n computed: {\n classes (): object {\n return {\n ...VInput.options.computed.classes.call(this),\n 'v-input--selection-controls': true,\n 'v-input--checkbox': true,\n 'v-input--indeterminate': this.inputIndeterminate,\n }\n },\n computedIcon (): string {\n if (this.inputIndeterminate) {\n return this.indeterminateIcon\n } else if (this.isActive) {\n return this.onIcon\n } else {\n return this.offIcon\n }\n },\n // Do not return undefined if disabled,\n // according to spec, should still show\n // a color when disabled and active\n validationState (): string | undefined {\n if (this.isDisabled && !this.inputIndeterminate) return undefined\n if (this.hasError && this.shouldValidate) return 'error'\n if (this.hasSuccess) return 'success'\n if (this.hasColor !== null) return this.computedColor\n return undefined\n },\n },\n\n watch: {\n indeterminate (val) {\n // https://github.com/vuetifyjs/vuetify/issues/8270\n this.$nextTick(() => (this.inputIndeterminate = val))\n },\n inputIndeterminate (val) {\n this.$emit('update:indeterminate', val)\n },\n isActive () {\n if (!this.indeterminate) return\n this.inputIndeterminate = false\n },\n },\n\n methods: {\n genCheckbox () {\n const { title, ...checkboxAttrs } = this.attrs$\n return this.$createElement('div', {\n staticClass: 'v-input--selection-controls__input',\n }, [\n this.$createElement(VIcon, this.setTextColor(this.validationState, {\n props: {\n dense: this.dense,\n dark: this.dark,\n light: this.light,\n },\n }), this.computedIcon),\n this.genInput('checkbox', {\n ...checkboxAttrs,\n 'aria-checked': this.inputIndeterminate\n ? 'mixed'\n : this.isActive.toString(),\n }),\n this.genRipple(this.setTextColor(this.rippleState)),\n ])\n },\n genDefaultSlot () {\n return [\n this.genCheckbox(),\n this.genLabel(),\n ]\n },\n },\n})\n","import { VCheckbox } from 'vuetify/lib/components/VCheckbox';\nimport { VListItem } from 'vuetify/lib/components/VList';\nimport { VListItemAction } from 'vuetify/lib/components/VList';\nimport { VListItemContent } from 'vuetify/lib/components/VList';\nimport { VListItemSubtitle } 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(VListItem,{attrs:{\"value\":_vm.user.email},on:{\"change\":_vm.toggleUser}},[_c(VListItemAction,[_c(VCheckbox,{on:{\"click\":_vm.toggleUser,\"input\":_vm.toggleUser,\"change\":_vm.toggleUser},model:{value:(_vm.checked),callback:function ($$v) {_vm.checked=$$v},expression:\"checked\"}})],1),_c(VListItemContent,[_c(VListItemTitle,[_vm._v(\" \"+_vm._s(_vm.user.name)+\" \")]),_c(VListItemSubtitle,[_vm._v(\" \"+_vm._s(_vm.user.email)+\" \")]),(_vm.user.isManager)?_c(VListItemSubtitle,[_vm._v(\" \"+_vm._s(_vm.$t(\"roles.manager\"))+\" \")]):_vm._e()],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\r\nimport Vue from \"vue\";\r\nimport { FilterUser } from \"@/core/models\";\r\nimport { Component, Prop, PropSync, Watch } from \"vue-property-decorator\";\r\nimport DeleteSession from \"@/components/sessions/DeleteSession.vue\";\r\n\r\n@Component({ components: { DeleteSession } })\r\nexport default class SharedWithItem extends Vue {\r\n @PropSync(\"selected\", { type: Array }) users!: string[];\r\n @Prop({ default: {} as FilterUser }) user!: FilterUser;\r\n\r\n get isIncluded() {\r\n return this.users.includes(this.user.email);\r\n }\r\n\r\n toggleUser() {\r\n if (this.isIncluded) {\r\n const idx = this.users.findIndex(x => x === this.user.email);\r\n this.users.splice(idx, 1);\r\n } else this.users.push(this.user.email);\r\n }\r\n\r\n checked = false;\r\n @Watch(\"users\", { immediate: true })\r\n usesChanged() {\r\n this.checked = this.isIncluded;\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!./SharedWithUserItem.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!./SharedWithUserItem.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./SharedWithUserItem.vue?vue&type=template&id=2aa3c38a&\"\nimport script from \"./SharedWithUserItem.vue?vue&type=script&lang=ts&\"\nexport * from \"./SharedWithUserItem.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","import { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardActions } 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 { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\n\nvar render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(VDialog,{attrs:{\"max-width\":\"300px\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [(_vm.canDelete)?_c(VBtn,_vm._g({attrs:{\"icon\":\"\",\"elevation\":\"0\",\"color\":\"main\",\"disabled\":_vm.loading,\"loading\":_vm.loading}},on),[_c(VIcon,[_vm._v(\"mdi-delete\")])],1):_vm._e()]}}]),model:{value:(_vm.confirmDeleteDialog),callback:function ($$v) {_vm.confirmDeleteDialog=$$v},expression:\"confirmDeleteDialog\"}},[_c(VCard,{attrs:{\"elevation\":\"0\",\"loading\":_vm.loading,\"disabled\":_vm.loading}},[_c(VCardTitle,{staticClass:\"headline grey lighten-2\",staticStyle:{\"word-break\":\"break-word\"}},[_c('span',[_vm._v(_vm._s(_vm.$t(\"sessionsPage.deleteSession.youSureDelete\")))])]),_c(VCardText,{staticClass:\"mt-6\"},[_vm._v(\" \"+_vm._s(_vm.$t(\"sessionsPage.deleteSession.deletionInfo\"))+\" \")]),_c(VDivider),_c(VCardActions,[_c(VSpacer),_c(VBtn,{attrs:{\"text\":\"\",\"loading\":_vm.loading,\"disabled\":_vm.loading},on:{\"click\":function($event){$event.stopPropagation();_vm.confirmDeleteDialog = false}}},[_c('span',[_vm._v(_vm._s(_vm.$t(\"sessionsPage.deleteSession.cancelSessDel\")))])]),_c(VBtn,{attrs:{\"elevation\":\"0\",\"color\":\"prezpRed other--text\",\"loading\":_vm.loading,\"disabled\":_vm.loading},on:{\"click\":function($event){$event.stopPropagation();return _vm.confirmDelete($event)}}},[_c('span',[_vm._v(_vm._s(_vm.$t(\"sessionsPage.deleteSession.confirmSessDel\")))])])],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\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport Vue from \"vue\";\r\nimport { Action } from \"vuex-class\";\r\nimport { Component, Prop } from \"vue-property-decorator\";\r\n\r\n@Component\r\nexport default class SessionDetails extends Vue {\r\n @Prop({ default: () => 0 }) id!: number;\r\n @Prop({ default: () => false }) canDelete!: boolean;\r\n @Action(\"sessions/deleteSession\")\r\n deleteSession!: (i: number) => Promise;\r\n\r\n loading = false;\r\n confirmDeleteDialog = false;\r\n async confirmDelete() {\r\n if (!this.canDelete) return;\r\n this.loading = true;\r\n await this.deleteSession(this.id);\r\n this.confirmDeleteDialog = false;\r\n this.$emit(\"deleted\");\r\n this.loading = false;\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!./DeleteSession.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!./DeleteSession.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./DeleteSession.vue?vue&type=template&id=48990b6f&\"\nimport script from \"./DeleteSession.vue?vue&type=script&lang=ts&\"\nexport * from \"./DeleteSession.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","// Components\nimport VInput from '../../components/VInput'\n\n// Mixins\nimport Rippleable from '../rippleable'\nimport Comparable from '../comparable'\n\n// Utilities\nimport mixins from '../../util/mixins'\n\nexport function prevent (e: Event) {\n e.preventDefault()\n}\n\n/* @vue/component */\nexport default mixins(\n VInput,\n Rippleable,\n Comparable\n).extend({\n name: 'selectable',\n\n model: {\n prop: 'inputValue',\n event: 'change',\n },\n\n props: {\n id: String,\n inputValue: null as any,\n falseValue: null as any,\n trueValue: null as any,\n multiple: {\n type: Boolean,\n default: null,\n },\n label: String,\n },\n\n data () {\n return {\n hasColor: this.inputValue,\n lazyValue: this.inputValue,\n }\n },\n\n computed: {\n computedColor (): string | undefined {\n if (!this.isActive) return undefined\n if (this.color) return this.color\n if (this.isDark && !this.appIsDark) return 'white'\n return 'primary'\n },\n isMultiple (): boolean {\n return this.multiple === true || (this.multiple === null && Array.isArray(this.internalValue))\n },\n isActive (): boolean {\n const value = this.value\n const input = this.internalValue\n\n if (this.isMultiple) {\n if (!Array.isArray(input)) return false\n\n return input.some(item => this.valueComparator(item, value))\n }\n\n if (this.trueValue === undefined || this.falseValue === undefined) {\n return value\n ? this.valueComparator(value, input)\n : Boolean(input)\n }\n\n return this.valueComparator(input, this.trueValue)\n },\n isDirty (): boolean {\n return this.isActive\n },\n rippleState (): string | undefined {\n return !this.isDisabled && !this.validationState\n ? undefined\n : this.validationState\n },\n },\n\n watch: {\n inputValue (val) {\n this.lazyValue = val\n this.hasColor = val\n },\n },\n\n methods: {\n genLabel () {\n const label = VInput.options.methods.genLabel.call(this)\n\n if (!label) return label\n\n label!.data!.on = {\n // Label shouldn't cause the input to focus\n click: prevent,\n }\n\n return label\n },\n genInput (type: string, attrs: object) {\n return this.$createElement('input', {\n attrs: Object.assign({\n 'aria-checked': this.isActive.toString(),\n disabled: this.isDisabled,\n id: this.computedId,\n role: type,\n type,\n }, attrs),\n domProps: {\n value: this.value,\n checked: this.isActive,\n },\n on: {\n blur: this.onBlur,\n change: this.onChange,\n focus: this.onFocus,\n keydown: this.onKeydown,\n click: prevent,\n },\n ref: 'input',\n })\n },\n onClick (e: Event) {\n this.onChange()\n this.$emit('click', e)\n },\n onChange () {\n if (!this.isInteractive) return\n\n const value = this.value\n let input = this.internalValue\n\n if (this.isMultiple) {\n if (!Array.isArray(input)) {\n input = []\n }\n\n const length = input.length\n\n input = input.filter((item: any) => !this.valueComparator(item, value))\n\n if (input.length === length) {\n input.push(value)\n }\n } else if (this.trueValue !== undefined && this.falseValue !== undefined) {\n input = this.valueComparator(input, this.trueValue) ? this.falseValue : this.trueValue\n } else if (value) {\n input = this.valueComparator(input, value) ? null : value\n } else {\n input = !input\n }\n\n this.validate(true, input)\n this.internalValue = input\n this.hasColor = input\n },\n onFocus (e: FocusEvent) {\n this.isFocused = true\n this.$emit('focus', e)\n },\n onBlur (e: FocusEvent) {\n this.isFocused = false\n this.$emit('blur', e)\n },\n /** @abstract */\n onKeydown (e: Event) {},\n },\n})\n"],"sourceRoot":""}