{"version":3,"sources":["webpack:///../../../src/components/VGrid/VRow.ts","webpack:///./src/views/groups/components/SingleInvitation.vue?1e21","webpack:///./src/views/groups/components/SingleInvitation.vue","webpack:///./src/views/groups/components/SingleInvitation.vue?f47e","webpack:///./src/views/groups/components/SingleInvitation.vue?8ebd","webpack:///../../../src/components/VGrid/VCol.ts","webpack:///./src/views/groups/components/GroupInvitations.vue?cf58","webpack:///./src/views/groups/components/GroupInvitations.vue","webpack:///./src/views/groups/components/GroupInvitations.vue?2df3","webpack:///./src/views/groups/components/GroupInvitations.vue?e736"],"names":["breakpoints","ALIGNMENT","makeProps","prefix","def","reduce","props","val","upperFirst","alignValidator","str","includes","alignProps","type","String","default","validator","justifyValidator","justifyProps","alignContentValidator","alignContentProps","propMap","align","Object","keys","justify","alignContent","classMap","breakpointClass","prop","className","breakpoint","replace","toLowerCase","cache","Map","Vue","extend","name","functional","tag","dense","Boolean","noGutters","render","h","data","children","cacheKey","classList","get","forEach","value","push","set","mergeData","staticClass","class","_vm","this","_h","$createElement","_c","_self","VListItem","attrs","VList","scopedSlots","_u","key","fn","_v","_s","inviter","proxy","group","date","VListItemAction","VBtn","on","accept","$t","VIcon","decline","staticRenderFns","SingleInvitation","invitation","id","iso","createdAt","DateTime","fromISO","toRelative","locale","$i18n","end","Group","api","parseGroup","addGroupToList","msg","toString","displaySnackbar","$emit","console","log","__decorate","Prop","Action","Component","component","breakpointProps","Number","offsetProps","orderProps","col","offset","order","cols","alignSelf","parent","hasColClasses","some","startsWith","VRow","VCol","VCard","VSpacer","loading","staticStyle","_l","inv","i","remove","_e","GroupInvitations","invitations","length","splice","components"],"mappings":"uUAOMA,EAAc,CAAC,KAAM,KAAM,KAAM,MAEjCC,EAAY,CAAC,QAAS,MAAO,UAEnC,SAASC,EAAWC,EAAgBC,GAClC,OAAOJ,EAAYK,QAAO,SAACC,EAAOC,GAEhC,OADAD,EAAMH,EAASK,eAAWD,IAAQH,IAC3BE,IACN,IAGL,IAAMG,EAAkB,SAA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c,GAAGd,EAAIuB,GAAG,sBAAsBnB,EAAGoB,EAAA,KAAM,CAACjB,MAAM,CAAC,MAAQ,KAAK,CAACP,EAAIa,GAAG,kBAAkB,IAAI,GAAGT,EAAGI,EAAA,KAAM,CAAC+D,YAAY,CAAC,SAAW,QAAQhE,MAAM,CAAC,aAAa,UAAUP,EAAIwE,GAAIxE,EAAe,aAAE,SAASyE,EAAIC,GAAG,OAAOtE,EAAG,mBAAmB,CAACO,IAAI+D,EAAEnE,MAAM,CAAC,WAAakE,GAAKpD,GAAG,CAAC,OAAS,WAAc,OAAOrB,EAAI2E,OAAOD,UAAW,IAAI,IAAI,IAAI,IAAI,GAAG1E,EAAI4E,MAC3zBlD,EAAkB,G,gJCkCDmD,EAAgB,wDAArC,mBAEsC,OAFtC,uB,0BACE,EAAAP,SAAU,EACV,EAAAQ,YAAiC,GAAG,EAsBnC,OACF,iCAtBC,WACE,OAAO7E,KAAK6E,YAAYC,OAAS,IAClC,wEAED,kGAGyC,OAFvC9E,KAAKqE,SAAU,EAAK,SAEZjC,EAAM,0BAAyB,SACXE,OAAI/C,IAAI6C,GAAI,OAAtCpC,KAAK6E,YAAc,EAAH,wDAEhBhC,QAAQC,IAAI,EAAD,IAAQ,QAErB9C,KAAKqE,SAAU,EAAM,yDACtB,qDAXA,IAWA,oBAED,SAAOI,GACLzE,KAAK6E,YAAYE,OAAON,EAAG,KAC5B,qBAED,WACEzE,KAAKT,UACN,EAxBkC,CAASd,cAAzBmG,EAAgB,gBADpC1B,eAAU,CAAE8B,WAAY,CAAEtD,kCACNkD,WC5C0Z,I,YCO3azB,EAAY,eACd,EACAlE,EACAwC,GACA,EACA,KACA,KACA,MAIa,aAAA0B,E","file":"assets/js/chunk-6f44b09c.2dcf2dcd.js","sourcesContent":["import './VGrid.sass'\n\nimport Vue, { PropOptions } from 'vue'\nimport mergeData from '../../util/mergeData'\nimport { upperFirst } from '../../util/helpers'\n\n// no xs\nconst breakpoints = ['sm', 'md', 'lg', 'xl']\n\nconst ALIGNMENT = ['start', 'end', 'center']\n\nfunction makeProps (prefix: string, def: () => PropOptions) {\n return breakpoints.reduce((props, val) => {\n props[prefix + upperFirst(val)] = def()\n return props\n }, {} as Dictionary)\n}\n\nconst alignValidator = (str: any) => [...ALIGNMENT, 'baseline', 'stretch'].includes(str)\nconst alignProps = makeProps('align', () => ({\n type: String,\n default: null,\n validator: alignValidator,\n}))\n\nconst justifyValidator = (str: any) => [...ALIGNMENT, 'space-between', 'space-around'].includes(str)\nconst justifyProps = makeProps('justify', () => ({\n type: String,\n default: null,\n validator: justifyValidator,\n}))\n\nconst alignContentValidator = (str: any) => [...ALIGNMENT, 'space-between', 'space-around', 'stretch'].includes(str)\nconst alignContentProps = makeProps('alignContent', () => ({\n type: String,\n default: null,\n validator: alignContentValidator,\n}))\n\nconst propMap = {\n align: Object.keys(alignProps),\n justify: Object.keys(justifyProps),\n alignContent: Object.keys(alignContentProps),\n}\n\nconst classMap = {\n align: 'align',\n justify: 'justify',\n alignContent: 'align-content',\n}\n\nfunction breakpointClass (type: keyof typeof propMap, prop: string, val: string) {\n let className = classMap[type]\n if (val == null) {\n return undefined\n }\n if (prop) {\n // alignSm -> Sm\n const breakpoint = prop.replace(type, '')\n className += `-${breakpoint}`\n }\n // .align-items-sm-center\n className += `-${val}`\n return className.toLowerCase()\n}\n\nconst cache = new Map()\n\nexport default Vue.extend({\n name: 'v-row',\n functional: true,\n props: {\n tag: {\n type: String,\n default: 'div',\n },\n dense: Boolean,\n noGutters: Boolean,\n align: {\n type: String,\n default: null,\n validator: alignValidator,\n },\n ...alignProps,\n justify: {\n type: String,\n default: null,\n validator: justifyValidator,\n },\n ...justifyProps,\n alignContent: {\n type: String,\n default: null,\n validator: alignContentValidator,\n },\n ...alignContentProps,\n },\n render (h, { props, data, children }) {\n // Super-fast memoization based on props, 5x faster than JSON.stringify\n let cacheKey = ''\n for (const prop in props) {\n cacheKey += String((props as any)[prop])\n }\n let classList = cache.get(cacheKey)\n\n if (!classList) {\n classList = []\n // Loop through `align`, `justify`, `alignContent` breakpoint props\n let type: keyof typeof propMap\n for (type in propMap) {\n propMap[type].forEach(prop => {\n const value: string = (props as any)[prop]\n const className = breakpointClass(type, prop, value)\n if (className) classList!.push(className)\n })\n }\n\n classList.push({\n 'no-gutters': props.noGutters,\n 'row--dense': props.dense,\n [`align-${props.align}`]: props.align,\n [`justify-${props.justify}`]: props.justify,\n [`align-content-${props.alignContent}`]: props.alignContent,\n })\n\n cache.set(cacheKey, classList)\n }\n\n return h(\n props.tag,\n mergeData(data, {\n staticClass: 'row',\n class: classList,\n }),\n children\n )\n },\n})\n","import { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\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:{\"ripple\":\"\"}},[_c(VListItemContent,[_c(VListItemTitle,[_c('i18n',{attrs:{\"path\":\"groups.inv.message\",\"tag\":\"span\"},scopedSlots:_vm._u([{key:\"inviter\",fn:function(){return [_c('b',[_vm._v(_vm._s(_vm.inviter))])]},proxy:true},{key:\"group\",fn:function(){return [_c('b',[_vm._v(_vm._s(_vm.group))])]},proxy:true}])})],1),_c(VListItemSubtitle,[_vm._v(_vm._s(_vm.date))])],1),_c(VListItemAction,[_c(VBtn,{attrs:{\"text\":\"\",\"color\":\"primary\"},on:{\"click\":_vm.accept}},[_c('span',[_vm._v(_vm._s(_vm.$t(\"groups.inv.accept\")))]),_c(VIcon,{attrs:{\"right\":\"\"}},[_vm._v(\"mdi-check\")])],1)],1),_c(VListItemAction,[_c(VBtn,{attrs:{\"text\":\"\"},on:{\"click\":_vm.decline}},[_c('span',[_vm._v(_vm._s(_vm.$t(\"groups.inv.decline\")))]),_c(VIcon,{attrs:{\"right\":\"\"}},[_vm._v(\"mdi-close\")])],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\r\nimport Vue from \"vue\";\r\nimport { DateTime } from \"luxon\";\r\nimport { Action } from \"vuex-class\";\r\nimport { Component, Prop } from \"vue-property-decorator\";\r\n\r\nimport api from \"@/core/utils/api\";\r\nimport { Group, GroupInvitation } from \"@/core/models\";\r\n\r\n@Component\r\nexport default class SingleInvitation extends Vue {\r\n @Prop({ default: () => undefined }) invitation?: GroupInvitation;\r\n @Action(\"groups/addGroupToList\") addGroupToList!: (g: Group) => void;\r\n @Action(\"displaySnackbar\") displaySnackbar!: (m: string) => void;\r\n\r\n get id() {\r\n return this.invitation?.id || 0;\r\n }\r\n get inviter() {\r\n return this.invitation?.inviter || \"\";\r\n }\r\n get group() {\r\n return this.invitation?.group || \"\";\r\n }\r\n get date() {\r\n if (!this.invitation) return null;\r\n const iso = this.invitation.createdAt;\r\n return DateTime.fromISO(iso).toRelative({ locale: this.$i18n.locale });\r\n }\r\n\r\n async accept() {\r\n try {\r\n const end = `/api/Groups/AcceptInvitation/${this.id}`;\r\n const group = Group.parseGroup(await api.get(end));\r\n this.addGroupToList(group);\r\n const msg = this.$t(\"groups.inv.accepted\", {\r\n group: this.invitation?.group,\r\n }).toString();\r\n this.displaySnackbar(msg);\r\n this.$emit(\"remove\");\r\n } catch (error) {\r\n console.log(error);\r\n }\r\n }\r\n\r\n async decline() {\r\n try {\r\n const end = `/api/Groups/DeclineInvitation/${this.id}`;\r\n await api.get(end);\r\n const msg = this.$t(\"groups.inv.declined\", {\r\n inviter: this.invitation?.inviter,\r\n }).toString();\r\n this.displaySnackbar(msg);\r\n this.$emit(\"remove\");\r\n } catch (error) {\r\n console.log(error);\r\n }\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!./SingleInvitation.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!./SingleInvitation.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./SingleInvitation.vue?vue&type=template&id=7bf59cd2&\"\nimport script from \"./SingleInvitation.vue?vue&type=script&lang=ts&\"\nexport * from \"./SingleInvitation.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 './VGrid.sass'\n\nimport Vue, { VNode, PropOptions } from 'vue'\nimport mergeData from '../../util/mergeData'\nimport { upperFirst } from '../../util/helpers'\n\n// no xs\nconst breakpoints = ['sm', 'md', 'lg', 'xl']\n\nconst breakpointProps = (() => {\n return breakpoints.reduce((props, val) => {\n props[val] = {\n type: [Boolean, String, Number],\n default: false,\n }\n return props\n }, {} as Dictionary)\n})()\n\nconst offsetProps = (() => {\n return breakpoints.reduce((props, val) => {\n props['offset' + upperFirst(val)] = {\n type: [String, Number],\n default: null,\n }\n return props\n }, {} as Dictionary)\n})()\n\nconst orderProps = (() => {\n return breakpoints.reduce((props, val) => {\n props['order' + upperFirst(val)] = {\n type: [String, Number],\n default: null,\n }\n return props\n }, {} as Dictionary)\n})()\n\nconst propMap = {\n col: Object.keys(breakpointProps),\n offset: Object.keys(offsetProps),\n order: Object.keys(orderProps),\n}\n\nfunction breakpointClass (type: keyof typeof propMap, prop: string, val: boolean | string | number) {\n let className = type\n if (val == null || val === false) {\n return undefined\n }\n if (prop) {\n const breakpoint = prop.replace(type, '')\n className += `-${breakpoint}`\n }\n // Handling the boolean style prop when accepting [Boolean, String, Number]\n // means Vue will not convert to sm: true for us.\n // Since the default is false, an empty string indicates the prop's presence.\n if (type === 'col' && (val === '' || val === true)) {\n // .col-md\n return className.toLowerCase()\n }\n // .order-md-6\n className += `-${val}`\n return className.toLowerCase()\n}\n\nconst cache = new Map()\n\nexport default Vue.extend({\n name: 'v-col',\n functional: true,\n props: {\n cols: {\n type: [Boolean, String, Number],\n default: false,\n },\n ...breakpointProps,\n offset: {\n type: [String, Number],\n default: null,\n },\n ...offsetProps,\n order: {\n type: [String, Number],\n default: null,\n },\n ...orderProps,\n alignSelf: {\n type: String,\n default: null,\n validator: (str: any) => ['auto', 'start', 'end', 'center', 'baseline', 'stretch'].includes(str),\n },\n tag: {\n type: String,\n default: 'div',\n },\n },\n render (h, { props, data, children, parent }): VNode {\n // Super-fast memoization based on props, 5x faster than JSON.stringify\n let cacheKey = ''\n for (const prop in props) {\n cacheKey += String((props as any)[prop])\n }\n let classList = cache.get(cacheKey)\n\n if (!classList) {\n classList = []\n // Loop through `col`, `offset`, `order` breakpoint props\n let type: keyof typeof propMap\n for (type in propMap) {\n propMap[type].forEach(prop => {\n const value: string | number | boolean = (props as any)[prop]\n const className = breakpointClass(type, prop, value)\n if (className) classList!.push(className)\n })\n }\n\n const hasColClasses = classList.some(className => className.startsWith('col-'))\n\n classList.push({\n // Default to .col if no other col-{bp}-* classes generated nor `cols` specified.\n col: !hasColClasses || !props.cols,\n [`col-${props.cols}`]: props.cols,\n [`offset-${props.offset}`]: props.offset,\n [`order-${props.order}`]: props.order,\n [`align-self-${props.alignSelf}`]: props.alignSelf,\n })\n\n cache.set(cacheKey, classList)\n }\n\n return h(props.tag, mergeData(data, { class: classList }), children)\n },\n})\n","import { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VList } from 'vuetify/lib/components/VList';\nimport { VRow } from 'vuetify/lib/components/VGrid';\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 (_vm.has)?_c(VRow,[_c(VCol,{attrs:{\"cols\":\"12\"}},[_c('div',{staticClass:\"text-h4 font-weight-bold mb-6\"},[_c('span',[_vm._v(_vm._s(_vm.$t(\"groups.inv.title\")))])]),_c(VCard,{attrs:{\"elevation\":\"0\"}},[_c(VCardText,[_c('div',{staticClass:\"d-flex\"},[_c(VSpacer),_c(VBtn,{attrs:{\"text\":\"\",\"small\":\"\",\"loading\":_vm.loading,\"disabled\":_vm.loading},on:{\"click\":_vm.get}},[_c('span',[_vm._v(_vm._s(_vm.$t(\"global.refresh\")))]),_c(VIcon,{attrs:{\"right\":\"\"}},[_vm._v(\"mdi-refresh\")])],1)],1),_c(VList,{staticStyle:{\"overflow\":\"auto\"},attrs:{\"max-height\":\"300px\"}},_vm._l((_vm.invitations),function(inv,i){return _c('SingleInvitation',{key:i,attrs:{\"invitation\":inv},on:{\"remove\":function () { return _vm.remove(i); }}})}),1)],1)],1)],1)],1):_vm._e()}\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\r\nimport Vue from \"vue\";\r\nimport { Component } from \"vue-property-decorator\";\r\n\r\nimport api from \"@/core/utils/api\";\r\nimport { GroupInvitation } from \"@/core/models\";\r\nimport SingleInvitation from \"./SingleInvitation.vue\";\r\n\r\n@Component({ components: { SingleInvitation } })\r\nexport default class GroupInvitations extends Vue {\r\n loading = false;\r\n invitations: GroupInvitation[] = [];\r\n get has() {\r\n return this.invitations.length > 0;\r\n }\r\n\r\n async get() {\r\n this.loading = true;\r\n try {\r\n const end = \"/api/Groups/Invitations\";\r\n this.invitations = (await api.get(end)) as GroupInvitation[];\r\n } catch (error) {\r\n console.log(error);\r\n }\r\n this.loading = false;\r\n }\r\n\r\n remove(i: number) {\r\n this.invitations.splice(i, 1);\r\n }\r\n\r\n mounted() {\r\n this.get();\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!./GroupInvitations.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!./GroupInvitations.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./GroupInvitations.vue?vue&type=template&id=7b97a2ac&\"\nimport script from \"./GroupInvitations.vue?vue&type=script&lang=ts&\"\nexport * from \"./GroupInvitations.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":""}