{"version":3,"sources":["webpack:///./src/views/MyContent.vue?57fb","webpack:///./src/components/contentItems/drafts/CreateContentTypeSelect.vue?5780","webpack:///./src/components/contentItems/drafts/CreateContentTypeSelect.vue","webpack:///./src/components/contentItems/drafts/CreateContentTypeSelect.vue?1038","webpack:///./src/components/contentItems/drafts/CreateContentTypeSelect.vue?2d18","webpack:///./src/views/MyContent.vue","webpack:///./src/views/MyContent.vue?5236","webpack:///./src/views/MyContent.vue?7427"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","directives","name","rawName","staticClass","on","openTypeSelectDialog","DOCEO_ICONS","CREATE","_v","_e","_l","contentItem","key","contentItemId","versionId","dialogs","typeSelect","open","closeTypeSelectDialog","submitTypeSelectDialog","staticRenderFns","model","value","callback","$$v","isOpen","expression","CLOSE","close","allowedContentTypes","contentType","allowedExternalSites","externalSite","scopedSlots","_u","fn","ref","_g","_b","publishDate","datePickerOpen","$dayjs","format","$event","submit","extend","components","DoceoIcon","props","type","Boolean","required","data","methods","$emit","DraftUserExternalLink","DraftUserArticle","externalType","Facebook","Instagram","YouTube","LinkedIn","Twitter","Journal","computed","component","VBtn","VCard","VCardActions","VCardText","VCardTitle","VCol","VDatePicker","VDialog","VMenu","VRow","VSelect","VSpacer","VTextField","metaInfo","link","rel","href","$route","path","ContentItemSummary","CreateContentTypeSelect","created","loadItems","selectedContentType","myContentItems","userContentClient","getUserContent","contentItems","filter","e","UserArticle","UserExternalLink","includes","contentItemType","query","$router","push","params","newestContentItems","sort","a","b","createdOn","getTime","hasCreateAccess","allowedRoles","Doctor","Admin","VoiceOf","roles","some","role","watch","to","from","VContainer"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,cAAc,CAACE,MAAM,CAAC,MAAQ,KAAK,CAACF,EAAG,QAAQ,CAACG,WAAW,CAAC,CAACC,KAAK,UAAUC,QAAQ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AChBrG,KAAM,gBACNsG,OAAQ,CAAEJ,gBAAiB,WAC3BC,MAAOA,IAET,MACF,KAAK,OAAgB7C,sBACnB7D,KAAK2G,QAAQC,KAAK,CAChBrG,KAAM,gBACNsG,OAAQ,CAAEJ,gBAAiB,gBAC3BC,MAAOA,IAET,SAIRpC,SAAU,iCACL,eAAW,CAAC,WADT,IAENwC,mBAFQ,WAGN,OAAO,eAAI9G,KAAKgG,gBAAgBe,MAAK,SAACC,EAAGC,GAAJ,OAAUA,EAAEC,UAAUC,UAAYH,EAAEE,UAAUC,cAErFC,gBALQ,WAMN,IAAMC,EAAe,CAAC,OAAMC,OAAQ,OAAMC,MAAO,OAAMC,SACvD,OAAOxH,KAAKyH,MAAMC,MAAK,SAACC,GAAD,OAAUN,EAAab,SAASmB,SAG3DC,MAAO,CACLnC,OADK,SACEoC,EAAIC,GACT9H,KAAK8F,gBC3IyX,I,YCOhY,EAAY,eACd,EACAhG,EACA4B,GACA,EACA,KACA,WACA,MAIa,eAAiB,QAQhC,IAAkB,EAAW,CAAC+C,QAAA,KAAMI,OAAA,KAAKkD,aAAA,KAAW9C,OAAA","file":"js/chunk-2d0c972d.9fa222c6.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{attrs:{\"fluid\":\"\"}},[_c('v-row',{directives:[{name:\"masonry\",rawName:\"v-masonry\"}],attrs:{\"transition-duration\":\"0\"}},[(_vm.hasCreateAccess)?_c('v-col',{attrs:{\"cols\":\"12\",\"sm\":\"6\",\"md\":\"4\",\"lg\":\"3\"}},[_c('v-card',{staticClass:\"text-center d-flex flex-column align-center justify-center\",attrs:{\"ripple\":false,\"height\":\"250px\",\"rounded\":\"lg\",\"elevation\":\"2\"},on:{\"click\":_vm.openTypeSelectDialog}},[_c('div',[_c('v-row',{attrs:{\"dense\":\"\",\"justify\":\"center\"}},[_c('v-col',{attrs:{\"cols\":\"auto\"}},[_c('doceo-icon',{attrs:{\"icon\":_vm.DOCEO_ICONS.CREATE,\"size\":64,\"alt\":\"Create new post\",\"title\":\"Create new post\"}})],1)],1),_c('v-row',{attrs:{\"dense\":\"\"}},[_c('v-col',[_c('span',{staticClass:\"second-header\"},[_vm._v(\"Create new post\")])])],1)],1)])],1):_vm._e(),_vm._l((_vm.newestContentItems),function(contentItem){return _c('v-col',{key:contentItem.contentItemId + '_' + contentItem.versionId,attrs:{\"cols\":\"12\",\"sm\":\"6\",\"md\":\"4\",\"lg\":\"3\"}},[_c('content-item-summary',{attrs:{\"height\":\"100%\",\"contentItemSummary\":contentItem,\"hideSave\":\"\"}})],1)})],2),_c('create-content-type-select',{attrs:{\"isOpen\":_vm.dialogs.typeSelect.open},on:{\"close\":_vm.closeTypeSelectDialog,\"submit\":_vm.submitTypeSelectDialog}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-dialog',{attrs:{\"width\":\"480px\",\"persistent\":\"\"},model:{value:(_vm.isOpen),callback:function ($$v) {_vm.isOpen=$$v},expression:\"isOpen\"}},[_c('v-card',{staticClass:\"overflow-hidden\"},[_c('v-card-title',[_c('v-row',{attrs:{\"align\":\"center\"}},[_c('v-col',{staticClass:\"text-center section-title\"},[_vm._v(\"New Post\")]),_c('v-col',{attrs:{\"cols\":\"auto\"}},[_c('doceo-icon',{attrs:{\"icon\":_vm.DOCEO_ICONS.CLOSE,\"size\":16,\"alt\":\"Close\",\"title\":\"Close\"},on:{\"click\":_vm.close}})],1)],1)],1),_c('v-card-text',[_c('v-row',[_c('v-col',[_c('v-select',{staticClass:\"remove-underline\",attrs:{\"items\":_vm.allowedContentTypes,\"item-text\":\"name\",\"item-value\":\"value\",\"label\":\"Content type\",\"hide-details\":\"\",\"filled\":\"\"},model:{value:(_vm.contentType),callback:function ($$v) {_vm.contentType=$$v},expression:\"contentType\"}})],1)],1),(_vm.contentType == 'external')?_c('v-row',[_c('v-col',[_c('v-select',{staticClass:\"remove-underline\",attrs:{\"items\":_vm.allowedExternalSites,\"item-text\":\"name\",\"item-value\":\"value\",\"label\":\"External Site\",\"hide-details\":\"\",\"filled\":\"\"},model:{value:(_vm.externalSite),callback:function ($$v) {_vm.externalSite=$$v},expression:\"externalSite\"}})],1)],1):_vm._e(),_c('v-row',{staticClass:\"mt-6\",attrs:{\"dense\":\"\"}},[_c('v-col',[_c('span',{staticClass:\"fifth-header\"},[_vm._v(\"Publish Date\")])])],1),_c('v-row',{staticClass:\"mb-0 pb-0 pt-0 mt-0\",attrs:{\"dense\":\"\"}},[_c('v-col',{staticClass:\"small-text\"},[_vm._v(\" You can change this later \")])],1),_c('v-row',{attrs:{\"dense\":\"\"}},[_c('v-col',[_c('v-menu',{attrs:{\"close-on-content-click\":false,\"min-width\":\"auto\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('v-text-field',_vm._g(_vm._b({staticClass:\"remove-underline\",attrs:{\"persistent-hint\":\"\",\"readonly\":\"\",\"hide-details\":\"\",\"filled\":\"\",\"placeholder\":\"mm/dd/yyy\"},model:{value:(_vm.publishDate),callback:function ($$v) {_vm.publishDate=$$v},expression:\"publishDate\"}},'v-text-field',attrs,false),on))]}}]),model:{value:(_vm.datePickerOpen),callback:function ($$v) {_vm.datePickerOpen=$$v},expression:\"datePickerOpen\"}},[_c('v-date-picker',{staticClass:\"remove-underline\",attrs:{\"min\":_vm.$dayjs().format('YYYY-MM-DD')},on:{\"input\":function($event){_vm.datePickerOpen = false}},model:{value:(_vm.publishDate),callback:function ($$v) {_vm.publishDate=$$v},expression:\"publishDate\"}})],1)],1)],1)],1),_c('v-card-actions',[_c('v-row',[_c('v-spacer'),_c('v-col',{attrs:{\"cols\":\"auto\"}},[_c('v-btn',{attrs:{\"color\":\"submit\",\"rounded\":\"\",\"ripple\":false},on:{\"click\":_vm.submit}},[_vm._v(\"Next\")])],1),_c('v-spacer')],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\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, { PropType } from \"vue\";\r\nimport { mapState, mapActions } from \"pinia\";\r\nimport { ContentItemType, ExternalLinkType } from \"@/api/DoceoApi\";\r\n\r\nimport DoceoIcon from \"@/components/DoceoIcon.vue\";\r\nimport DOCEO_ICONS from \"@/constants/icons\";\r\n\r\nexport default Vue.extend({\r\n name: \"CreateContentTypeSelect\",\r\n components: { DoceoIcon },\r\n props: {\r\n isOpen: {\r\n type: Boolean,\r\n required: true,\r\n },\r\n },\r\n data: () => ({\r\n contentType: \"article\",\r\n externalSite: \"Facebook\",\r\n allowedExternalSites: [\r\n {\r\n name: \"Facebook\",\r\n value: \"facebook\",\r\n },\r\n {\r\n name: \"Instagram\",\r\n value: \"instagram\",\r\n },\r\n {\r\n name: \"YouTube\",\r\n value: \"youtube\"\r\n },\r\n {\r\n name: \"LinkedIn\",\r\n value: \"linkedin\"\r\n },\r\n {\r\n name: \"Twitter\",\r\n value: \"twitter\"\r\n }\r\n ],\r\n allowedContentTypes: [\r\n {\r\n name: \"Article\",\r\n value: \"article\",\r\n },\r\n {\r\n name: \"External Link\",\r\n value: \"external\",\r\n },\r\n {\r\n name: \"Journal Link\",\r\n value: \"journal\"\r\n }\r\n ],\r\n publishDate: \"\",\r\n datePickerOpen: false,\r\n DOCEO_ICONS,\r\n }),\r\n methods: {\r\n close() {\r\n this.$emit(\"close\");\r\n },\r\n submit() {\r\n let contentType\r\n if (this.contentType == \"journal\" || this.contentType == \"external\") {\r\n contentType = ContentItemType.DraftUserExternalLink\r\n } else {\r\n contentType = ContentItemType.DraftUserArticle\r\n }\r\n\r\n let externalType = null as ExternalLinkType | null\r\n\r\n if (this.contentType == \"external\") {\r\n switch (this.externalSite) {\r\n case \"facebook\":\r\n externalType = ExternalLinkType.Facebook;\r\n break;\r\n case 'instagram':\r\n externalType = ExternalLinkType.Instagram;\r\n break;\r\n case 'youtube':\r\n externalType = ExternalLinkType.YouTube;\r\n break;\r\n case 'linkedin':\r\n externalType = ExternalLinkType.LinkedIn;\r\n break;\r\n case 'twitter':\r\n externalType = ExternalLinkType.Twitter;\r\n break;\r\n }\r\n } else if (this.contentType == \"journal\") {\r\n externalType = ExternalLinkType.Journal;\r\n }\r\n\r\n this.$emit(\"submit\", contentType, this.publishDate, externalType);\r\n },\r\n },\r\n computed: {},\r\n});\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CreateContentTypeSelect.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CreateContentTypeSelect.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CreateContentTypeSelect.vue?vue&type=template&id=27343465&scoped=true&\"\nimport script from \"./CreateContentTypeSelect.vue?vue&type=script&lang=ts&\"\nexport * from \"./CreateContentTypeSelect.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 \"27343465\",\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { 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 { VCol } from 'vuetify/lib/components/VGrid';\nimport { VDatePicker } from 'vuetify/lib/components/VDatePicker';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VMenu } from 'vuetify/lib/components/VMenu';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSelect } from 'vuetify/lib/components/VSelect';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\ninstallComponents(component, {VBtn,VCard,VCardActions,VCardText,VCardTitle,VCol,VDatePicker,VDialog,VMenu,VRow,VSelect,VSpacer,VTextField})\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 { mapState, mapActions } from \"pinia\";\r\nimport { mapGetters } from \"vuex\";\r\nimport { ContentItemSummaryResult, ContentItemType, ExternalLinkType, UserContentClient } from \"@/api/DoceoApi\";\r\n\r\nimport ContentItemSummary from \"@/components/contentItems/ContentItemSummary.vue\";\r\nimport CreateContentTypeSelect from \"@/components/contentItems/drafts/CreateContentTypeSelect.vue\";\r\nimport DoceoIcon from \"@/components/DoceoIcon.vue\";\r\nimport DOCEO_ICONS from \"@/constants/icons\";\r\nimport Roles from \"@/constants/roles\";\r\n\r\nexport default Vue.extend({\r\n name: \"MyContent\",\r\n metaInfo() {\r\n return {\r\n link: [{ rel: \"canonical\", href: `${process.env.VUE_APP_BASE_URL}${this.$route.path}` }],\r\n };\r\n },\r\n components: {\r\n DoceoIcon,\r\n ContentItemSummary,\r\n CreateContentTypeSelect,\r\n },\r\n async created() {\r\n await this.loadItems();\r\n },\r\n data: () => ({\r\n dialogs: {\r\n typeSelect: {\r\n open: false,\r\n selectedContentType: null as ContentItemType | null,\r\n },\r\n },\r\n myContentItems: [] as ContentItemSummaryResult[],\r\n DOCEO_ICONS,\r\n }),\r\n methods: {\r\n async loadItems() {\r\n let userContentClient = new UserContentClient();\r\n let contentItems = await userContentClient.getUserContent();\r\n this.myContentItems = contentItems.filter((e) =>\r\n [\r\n // only show these content items\r\n ContentItemType.DraftUserArticle,\r\n ContentItemType.DraftUserExternalLink,\r\n ContentItemType.UserArticle,\r\n ContentItemType.UserExternalLink,\r\n ].includes(e.contentItemType)\r\n );\r\n },\r\n openTypeSelectDialog() {\r\n this.dialogs.typeSelect.open = true;\r\n },\r\n closeTypeSelectDialog() {\r\n this.dialogs.typeSelect.open = false;\r\n },\r\n submitTypeSelectDialog(type: ContentItemType, publishDate = \"\", externalType: string) {\r\n this.dialogs.typeSelect.open = false;\r\n this.dialogs.typeSelect.selectedContentType = type;\r\n\r\n let query: any;\r\n if (publishDate != \"\") {\r\n query = {\r\n publishDate,\r\n externalType: externalType,\r\n };\r\n } else {\r\n query = {\r\n externalType: externalType,\r\n };\r\n }\r\n\r\n switch (this.dialogs.typeSelect.selectedContentType) {\r\n case ContentItemType.DraftUserArticle:\r\n this.$router.push({\r\n name: \"CreateContent\",\r\n params: { contentItemType: \"article\" },\r\n query: query,\r\n });\r\n break;\r\n case ContentItemType.DraftUserExternalLink:\r\n this.$router.push({\r\n name: \"CreateContent\",\r\n params: { contentItemType: \"externalLink\" },\r\n query: query,\r\n });\r\n break;\r\n }\r\n },\r\n },\r\n computed: {\r\n ...mapGetters([\"roles\"]),\r\n newestContentItems(): ContentItemSummaryResult[] {\r\n return [...this.myContentItems].sort((a, b) => b.createdOn.getTime() - a.createdOn.getTime());\r\n },\r\n hasCreateAccess(): boolean {\r\n const allowedRoles = [Roles.Doctor, Roles.Admin, Roles.VoiceOf];\r\n return this.roles.some((role) => allowedRoles.includes(role));\r\n },\r\n },\r\n watch: {\r\n $route(to, from) {\r\n this.loadItems();\r\n },\r\n },\r\n});\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyContent.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyContent.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./MyContent.vue?vue&type=template&id=77f9ebe9&scoped=true&\"\nimport script from \"./MyContent.vue?vue&type=script&lang=ts&\"\nexport * from \"./MyContent.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 \"77f9ebe9\",\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VRow } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VCard,VCol,VContainer,VRow})\n"],"sourceRoot":""}