{"version":3,"sources":["webpack:///./src/components/removable.vue?d434","webpack:///./src/assets/img/close.svg","webpack:///./src/components/removable.vue?0fb0","webpack:///./src/components/removable.vue?d336","webpack:///./src/components/removable.vue","webpack:///./src/assets/img/chevronLeft.svg","webpack:///./src/components/uoseWriter.vue?e955","webpack:///./src/components/uoseWriter.vue?9c13","webpack:///./src/components/uoseWriter.vue","webpack:///./src/components/uoseWriterTextarea.vue?9967","webpack:///./src/components/mixins/withModel.ts","webpack:///./src/components/uoseWriterTextarea.vue?a7b1","webpack:///./src/components/uoseWriterTextarea.vue","webpack:///./src/assets/img/management/add.svg","webpack:///./src/assets/img/icon_bin.svg","webpack:///./src/assets/img/search.svg","webpack:///./src/components/uoseWriter.vue?5168","webpack:///./src/components/removableImage.vue?57f8","webpack:///./src/components/removableImage.vue?0b0b","webpack:///./src/components/removableImage.vue","webpack:///./src/components/removableImage.vue?776f","webpack:///./src/views/communities/modals/createCommunity.vue?44c3","webpack:///./src/views/communities/components/step1.vue?6241","webpack:///./src/views/communities/components/step1.vue?0a6f","webpack:///./src/views/communities/components/step1.vue","webpack:///./src/views/communities/components/step2.vue?7c83","webpack:///./src/views/communities/components/step2.vue?3878","webpack:///./src/views/communities/components/step2.vue","webpack:///./src/views/communities/components/step3.vue?feee","webpack:///./src/views/communities/components/step3.vue?c3cd","webpack:///./src/views/communities/components/step3.vue","webpack:///./src/views/communities/modals/createCommunity.vue?4171","webpack:///./src/views/communities/modals/createCommunity.vue"],"names":["module","exports","_withId","_hoisted_1","src","render","_ctx","_cache","$props","$setup","$data","$options","class","onClick","args","showBin","_show","bin","$slots","undefined","binTimer","this","$emit","setTimeout","__exports__","key","ref","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_directive_localizedPlaceholder","_directive_userimage","tabindex","placeholder","contenteditable","onInput","setLocalText","maxHeight","minHeight","onKeydown","checkLetter","showSearch","type","$event","search","target","value","hideSearch","chatSearchCommunities","item","identifier","setCommunity","image","name","localText","doRec","recbuffer","textarea","$refs","modelValue","innerHTML","searchCommunities","next","prev","LocalizationServices","getLocalizedValue","placeholderKey","placeholderText","ev","data","eCommercialeTriggered","which","enterTriggered","document","getElementById","classList","remove","clearTimeout","debouncia","setShowSearch","insertPosition","searchInput","focus","execCommand","preventDefault","query","chatSearch","then","x","community","getById","slug","title","customUrl","slice","console","log","error","add","_component_localized_text","_component_uose_writer","titleKey","titleText","localizedKey","text","localValue","reset","val","components","UoseWriter","style","url","_hidden","back","currentStep","step","disabled","canNext","_component_user_profile_image","_component_file_selector","_component_uose_writer_textarea","$store","state","createCommunityVm","logo","accept","default","logoPreview","_","backgroundImage","backgroundPreview","description","communityType","communityPublic","communityOnRequest","communityClose","Public","OnRequest","Close","makeLogoPreview","store","reader","FileReader","onload","e","result","readAsDataURL","makeBgPreview","gallery","UoseWriterTextarea","categories","i","active","category","autocomplete","newTag","tags","length","addTag","removeTag","loaded","getCategories","trim","elementInLower","find","toLowerCase","includes","push","tagInput","index","splice","Removable","_component_removable_image","tempFile","tempFiles","onRemove","removeImage","forEach","RemovableImage","globalSpinner","createCommunity","Promise","all","updateBackgroundImage","updateLogoImage","addGalleryImages","y","$router","$opModal","closeAll","catch","finally"],"mappings":"kKAAA,W,gDCAAA,EAAOC,QAAU,IAA0B,0B,yECG3C,MAAMC,EAAuB,eAAa,mBAE1C,eAAa,mBACb,MAAMC,EAA0B,eAAa,MAAO,CAAEC,IAAK,KAAc,MAAO,GAChF,iBAEO,MAAMC,EAAsBH,EAAQ,CAACI,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,KAC3F,iBAAc,eAAa,MAAO,CACxCC,MAAO,oBACPC,QAASN,EAAO,KAAOA,EAAO,GAElC,IAAIO,IAAUR,EAAKS,SAAWT,EAAKS,WAAWD,KACzC,CACD,eAAa,MAAO,CAClBF,MAAO,CAAC,gBAAiB,CAAEI,MAAOV,EAAKW,OACtC,CACDd,GACC,GACH,eAAYG,EAAKY,OAAQ,UAAW,QAAIC,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S,EAAA,KAAMlB,MAAMC,kBAAkBC,MAAQgB,EAAA,KAAMlB,MAAMC,kBAAkBM,gBACrI,GAApB/G,KAAKgG,YACJ0B,EAAA,KAAMlB,MAAMC,kBAAkB8B,UAAYb,EAAA,KAAMlB,MAAMC,kBAAkBiC,KAAKC,OAAS,EACnE,GAApB3I,KAAKgG,kBAAR,EAQX,OACOhG,KAAKgG,YAAc,EAClBhG,KAAKgG,cAELhG,KAAKC,MAAM,SAInB,OAC2B,GAApBD,KAAKgG,YACJhG,KAAKgG,YAAc,EACO,GAApBhG,KAAKgG,YACXhG,KAAKgG,YAAc,EACO,GAApBhG,KAAKgG,cACX0B,EAAA,KAAMlB,MAAMyD,gBACZ,OAAgBC,gBAAgBxC,EAAA,KAAMlB,MAAMC,mBAC3CpC,KAAKC,IACF6F,QAAQC,IAAI,CACR,OAAoBC,sBAAsB/F,EAAEtC,WAAY0F,EAAA,KAAMlB,MAAMC,kBAAkBM,iBACtF,OAAoBuD,gBAAgBhG,EAAEtC,WAAY0F,EAAA,KAAMlB,MAAMC,kBAAkBC,MAChF,OAAoB6D,iBAAiBjG,EAAEtC,WAAY0F,EAAA,KAAMlB,MAAMC,kBAAkByB,WAClF7D,KAAMmG,IACLxK,KAAKyK,QAAQpB,KAAK,gBAAkB/E,EAAEG,MACtCzE,KAAK0K,SAASC,eAGrBC,MAAMtG,OAENuG,QAAQ,IAAMnD,EAAA,KAAMlB,MAAMyD,oBA1DlB,GAAe,gBADnC,eAAQ,KACY,cCNrB,MAAM,GAA2B,IAAgB,GAAQ,CAAC,CAAC,SAASjL,KAErD","file":"js/chunk-72fe1015dda6e0b64020.js","sourcesContent":["export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./removable.vue?vue&type=style&index=0&id=1dc4ab25&scoped=true&lang=css\"","module.exports = __webpack_public_path__ + \"img/close.32f94dc6.svg\";","import { createVNode as _createVNode, renderSlot as _renderSlot, openBlock as _openBlock, createBlock as _createBlock, withScopeId as _withScopeId, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\nimport _imports_0 from '@/assets/img/icon_bin.svg'\n\nconst _withId = /*#__PURE__*/_withScopeId(\"data-v-1dc4ab25\")\n\n_pushScopeId(\"data-v-1dc4ab25\")\nconst _hoisted_1 = /*#__PURE__*/_createVNode(\"img\", { src: _imports_0 }, null, -1)\n_popScopeId()\n\nexport const render = /*#__PURE__*/_withId((_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) => {\n return (_openBlock(), _createBlock(\"div\", {\n class: \"position-relative\",\n onClick: _cache[1] || (_cache[1] = \n//@ts-ignore\n(...args) => (_ctx.showBin && _ctx.showBin(...args)))\n }, [\n _createVNode(\"div\", {\n class: [\"_pallinoRosso\", { _show: _ctx.bin }]\n }, [\n _hoisted_1\n ], 2),\n _renderSlot(_ctx.$slots, \"default\", {}, undefined, true)\n ]))\n})","\r\nimport { Options, Vue } from 'vue-class-component';\r\nimport { Prop } from 'vue-property-decorator';\r\n\r\n@Options({})\r\nexport default class Removable extends Vue {\r\n\r\n @Prop() url: string;\r\n\r\n bin: boolean = false;\r\n binTimer: any = null;\r\n showBin(){\r\n if(this.bin){\r\n this.$emit('remove');\r\n return;\r\n }\r\n this.bin = true;\r\n this.binTimer = setTimeout(() => {\r\n this.bin = false;\r\n }, 600);\r\n }\r\n\r\n}\r\n\r\n","import { render } from \"./removable.vue?vue&type=template&id=1dc4ab25&scoped=true&ts=true\"\nimport script from \"./removable.vue?vue&type=script&lang=ts\"\nexport * from \"./removable.vue?vue&type=script&lang=ts\"\n\nimport \"./removable.vue?vue&type=style&index=0&id=1dc4ab25&scoped=true&lang=css\"\n\nimport exportComponent from \"C:\\\\Users\\\\rekt\\\\source\\\\repos\\\\uose\\\\uoseapp_new\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1dc4ab25\"]])\n\nexport default __exports__","module.exports = __webpack_public_path__ + \"img/chevronLeft.86209808.svg\";","import { createVNode as _createVNode, resolveDirective as _resolveDirective, withDirectives as _withDirectives, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createBlock as _createBlock, toDisplayString as _toDisplayString, withModifiers as _withModifiers, createCommentVNode as _createCommentVNode, withScopeId as _withScopeId, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\nimport _imports_0 from '@/assets/img/search.svg'\nimport _imports_1 from '@/assets/img/close.svg'\n\nconst _withId = /*#__PURE__*/_withScopeId(\"data-v-032ecc52\")\n\n_pushScopeId(\"data-v-032ecc52\")\nconst _hoisted_1 = {\n key: 0,\n class: \"chatSearchCommunities widePagePadding hasHeader\",\n ref: \"chatSearchContainer\"\n}\nconst _hoisted_2 = { class: \"header d-flex aling-items-center justify-content-between\" }\nconst _hoisted_3 = { class: \"searchContainer\" }\nconst _hoisted_4 = /*#__PURE__*/_createVNode(\"img\", { src: _imports_0 }, null, -1)\nconst _hoisted_5 = { class: \"ms-3 me-2 d-flex align-items-center\" }\nconst _hoisted_6 = { class: \"itemImage\" }\nconst _hoisted_7 = { class: \"itemText\" }\n_popScopeId()\n\nexport const render = /*#__PURE__*/_withId((_ctx: any,_cache: any) => {\n const _directive_localizedPlaceholder = _resolveDirective(\"localizedPlaceholder\")!\n const _directive_userimage = _resolveDirective(\"userimage\")!\n\n return (_openBlock(), _createBlock(\"div\", null, [\n _createVNode(\"div\", {\n class: \"editor\",\n tabindex: \"0\",\n ref: \"textarea\",\n \"data-placeholder\": _ctx.placeholder,\n contenteditable: \"true\",\n onInput: _cache[1] || (_cache[1] = \n//@ts-ignore\n(...args) => (_ctx.setLocalText && _ctx.setLocalText(...args))),\n \"max-height\": _ctx.maxHeight,\n \"min-height\": _ctx.minHeight,\n onKeydown: _cache[2] || (_cache[2] = \n//@ts-ignore\n(...args) => (_ctx.checkLetter && _ctx.checkLetter(...args)))\n }, null, 40, [\"data-placeholder\", \"max-height\", \"min-height\"]),\n (_ctx.showSearch)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_1, [\n _createVNode(\"div\", _hoisted_2, [\n _createVNode(\"div\", _hoisted_3, [\n _hoisted_4,\n _withDirectives(_createVNode(\"input\", {\n type: \"text\",\n onInput: _cache[3] || (_cache[3] = ($event: any) => (_ctx.search = $event.target.value)),\n class: \"searchInput ms-2\",\n ref: \"searchInput\"\n }, null, 544), [\n [_directive_localizedPlaceholder, { key: 'app_cercacommunityDaCollegare', value: 'Cerca community da collegare...' }]\n ])\n ]),\n _createVNode(\"div\", _hoisted_5, [\n _createVNode(\"img\", {\n src: _imports_1,\n onClick: _cache[4] || (_cache[4] = ($event: any) => (_ctx.hideSearch()))\n })\n ])\n ]),\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.chatSearchCommunities, (item) => {\n return (_openBlock(), _createBlock(\"div\", {\n class: \"searchItem\",\n key: item.identifier,\n onClick: _withModifiers(($event: any) => (_ctx.setCommunity(item)), [\"stop\",\"prevent\"])\n }, [\n _withDirectives(_createVNode(\"div\", _hoisted_6, null, 512), [\n [_directive_userimage, item.image]\n ]),\n _createVNode(\"div\", _hoisted_7, _toDisplayString(item.name), 1)\n ], 8, [\"onClick\"]))\n }), 128))\n ], 512))\n : _createCommentVNode(\"\", true)\n ]))\n})","\r\nimport { Options, Vue } from 'vue-class-component';\r\nimport { Prop, Watch } from 'vue-property-decorator';\r\nimport { setCaretLast, decodeHtml, getCaretPosition } from '@/utils';\r\nimport { CommunityClient } from '@/services/Services';\r\nimport * as OM from '@/model';\r\nimport { LocalizationServices } from '@/services/LocalizationServices';\r\n\r\n\r\n@Options({})\r\nexport default class UoseWriter extends Vue {\r\n\r\n @Prop() modelValue: string;\r\n @Prop() reset: number;\r\n @Prop() placeholderText: string;\r\n @Prop() placeholderKey: string;\r\n @Prop() minHeight: number;\r\n @Prop() maxHeight: number;\r\n\r\n localText: string = \"\";\r\n\r\n textarea: any;\r\n mounted() {\r\n this.textarea = this.$refs.textarea;\r\n if(this.modelValue)\r\n this.textarea.innerHTML = this.modelValue;\r\n\r\n this.searchCommunities(\"\");\r\n }\r\n\r\n @Watch('reset')\r\n onValueChange(next, prev){\r\n if(next){\r\n this.localText = \"\";\r\n this.textarea.innerHTML = \"\";\r\n }\r\n }\r\n\r\n get placeholder(){\r\n return LocalizationServices.getLocalizedValue(this.placeholderKey, this.placeholderText);\r\n }\r\n\r\n setLocalText(ev){\r\n this.localText = decodeHtml(ev.target.innerHTML);\r\n this.$emit('update:modelValue', this.localText);\r\n\r\n if(ev.data == '&')\r\n this.eCommercialeTriggered();\r\n else if(ev.which == 13)\r\n this.enterTriggered(ev);\r\n }\r\n hideSearch() {\r\n document.getElementById(\"app\").classList.remove(\"chatSearchCommunitiesOpened\");\r\n setTimeout(() => {\r\n this.search = \"\";\r\n this.showSearch = false;\r\n setCaretLast(this.textarea);\r\n }, 100)\r\n }\r\n\r\n showSearch: boolean = false;\r\n search: string = \"\";\r\n debouncia: any;\r\n @Watch('search')\r\n onSearchChange(next, prev){\r\n clearTimeout(this.debouncia);\r\n this.debouncia = setTimeout(() => {\r\n this.searchCommunities(next);\r\n }, 300);\r\n }\r\n doRec: boolean = false;\r\n recbuffer: string = \"\";\r\n insertPosition: number;\r\n checkLetter(ev){\r\n // ev.key == '&' - ev.keyCode == 13\r\n if(ev.key == '&')\r\n this.eCommercialeTriggered();\r\n else if(ev.which == 13)\r\n this.enterTriggered(ev);\r\n }\r\n\r\n eCommercialeTriggered() {\r\n this.setShowSearch();\r\n this.insertPosition = getCaretPosition(this.textarea);\r\n setTimeout(() => {\r\n (this.$refs.searchInput).focus();\r\n }, 100);\r\n }\r\n enterTriggered(ev) {\r\n // insert 2 br tags (if only one br tag is inserted the cursor won't go to the second line)\r\n document.execCommand('insertHTML', false, '

');\r\n // prevent the default behaviour of return key pressed\r\n ev.preventDefault();\r\n return false;\r\n }\r\n\r\n chatSearchCommunities: OM.SearchResultVm[] = [];\r\n searchCommunities(query){\r\n CommunityClient.chatSearch(query)\r\n .then(x => {\r\n this.chatSearchCommunities = x;\r\n })\r\n }\r\n\r\n async setCommunity(item: OM.SearchResultVm) {\r\n this.search = \"\";\r\n\r\n try {\r\n const community = await CommunityClient.getById(item.identifier);\r\n\r\n // controllo se ce dlug e titol\r\n if (community && community.slug && community.title) {\r\n // url per evitare il push\r\n const customUrl = `/communities/${community.slug}/`;\r\n // Aggiorna la stringa this.localText con l'URL personalizzato\r\n this.localText = this.localText.slice(0, this.insertPosition - 1) +\r\n `${community.title} ` +\r\n this.localText.slice(this.insertPosition + 1);\r\n\r\n \r\n this.textarea.innerHTML = this.localText;\r\n\r\n console.log(this.localText);\r\n\r\n \r\n this.$emit('update:modelValue', this.localText);\r\n } else {\r\n console.error('Informazioni sulla comunità non valide:', community);\r\n }\r\n } catch (error) {\r\n console.error('Errore durante la chiamata API per ottenere la comunità:', error);\r\n }\r\n\r\n // nascondi la ricerca\r\n this.hideSearch();\r\n }\r\n\r\n setShowSearch(){\r\n this.showSearch = true;\r\n document.getElementById(\"app\").classList.add(\"chatSearchCommunitiesOpened\");\r\n // this.$nextTick(() => {\r\n // let root = this.textarea;\r\n // let container = this.$refs.chatSearchContainer;\r\n // let rect = container.getBoundingClientRect();\r\n // if(rect.x > window.innerWidth / 2){\r\n // container.style.right = \"0\";\r\n // } else {\r\n // container.style.left = \"0\";\r\n // }\r\n // let height = root.getBoundingClientRect().height;\r\n // let toAdd = 40;\r\n // if(height > 80){\r\n // height = 80;\r\n // toAdd = 20;\r\n // }\r\n // if(rect.y > window.innerHeight / 2){\r\n // container.style.bottom = height + toAdd + \"px\";\r\n // } else {\r\n // container.style.top = height + toAdd + \"px\";\r\n // }\r\n // })\r\n }\r\n}\r\n\r\n","import { render } from \"./uoseWriter.vue?vue&type=template&id=032ecc52&scoped=true&ts=true\"\nimport script from \"./uoseWriter.vue?vue&type=script&lang=ts\"\nexport * from \"./uoseWriter.vue?vue&type=script&lang=ts\"\n\nimport \"./uoseWriter.vue?vue&type=style&index=0&id=032ecc52&scoped=true&lang=css\"\n\nimport exportComponent from \"C:\\\\Users\\\\rekt\\\\source\\\\repos\\\\uose\\\\uoseapp_new\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-032ecc52\"]])\n\nexport default __exports__","import { resolveComponent as _resolveComponent, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, withScopeId as _withScopeId, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\nconst _withId = /*#__PURE__*/_withScopeId(\"data-v-1f29b362\")\n\n_pushScopeId(\"data-v-1f29b362\")\nconst _hoisted_1 = { class: \"form-group squareInputContainer withLabel mt-3\" }\nconst _hoisted_2 = { key: 0 }\n_popScopeId()\n\nexport const render = /*#__PURE__*/_withId((_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) => {\n const _component_localized_text = _resolveComponent(\"localized-text\")!\n const _component_uose_writer = _resolveComponent(\"uose-writer\")!\n\n return (_openBlock(), _createBlock(\"div\", _hoisted_1, [\n (_ctx.titleKey && _ctx.titleText)\n ? (_openBlock(), _createBlock(\"label\", _hoisted_2, [\n _createVNode(_component_localized_text, {\n localizedKey: _ctx.titleKey,\n text: _ctx.titleText,\n class: \"fs_12 grey\"\n }, null, 8, [\"localizedKey\", \"text\"])\n ]))\n : _createCommentVNode(\"\", true),\n _createVNode(_component_uose_writer, {\n class: \"genericInput squareInput ptInput uoseWriter\",\n modelValue: _ctx.localValue,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_ctx.localValue = $event)),\n ref: \"chatInput\",\n minHeight: _ctx.minHeight,\n maxHeight: _ctx.maxHeight,\n reset: _ctx.reset,\n placeholderText: _ctx.placeholderText,\n placeholderKey: _ctx.placeholderKey\n }, null, 8, [\"modelValue\", \"minHeight\", \"maxHeight\", \"reset\", \"placeholderText\", \"placeholderKey\"])\n ]))\n})","import { Options, Vue } from 'vue-class-component';\r\nimport { Prop, Watch } from 'vue-property-decorator';\r\n\r\n@Options({})\r\nexport default class WithModel extends Vue {\r\n \r\n @Prop() modelValue: any;\r\n\r\n localValue: any = null;\r\n\r\n @Watch('modelValue')\r\n onModelValueChange(next, prev){\r\n this.localValue = next;\r\n }\r\n\r\n @Watch(\"localValue\")\r\n emitModel(val: any){\r\n this.$emit(\"update:modelValue\", val);\r\n }\r\n \r\n created(){\r\n this.localValue = this.modelValue;\r\n }\r\n\r\n\r\n}","\r\nimport { mixins, Options, Vue } from 'vue-class-component';\r\nimport { Prop } from 'vue-property-decorator';\r\nimport UoseWriter from '@/components/uoseWriter.vue';\r\nimport WithModel from '@/components/mixins/withModel';\r\n\r\n@Options({\r\n components: {\r\n UoseWriter\r\n }\r\n})\r\nexport default class UoseWriterTextarea extends mixins(WithModel) {\r\n\r\n @Prop() titleText: string;\r\n @Prop() titleKey: string;\r\n\r\n @Prop() reset: number;\r\n @Prop() placeholderText: string;\r\n @Prop() placeholderKey: string;\r\n @Prop() minHeight: number;\r\n @Prop() maxHeight: number;\r\n\r\n}\r\n\r\n","import { render } from \"./uoseWriterTextarea.vue?vue&type=template&id=1f29b362&scoped=true&ts=true\"\nimport script from \"./uoseWriterTextarea.vue?vue&type=script&lang=ts\"\nexport * from \"./uoseWriterTextarea.vue?vue&type=script&lang=ts\"\n\nimport exportComponent from \"C:\\\\Users\\\\rekt\\\\source\\\\repos\\\\uose\\\\uoseapp_new\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1f29b362\"]])\n\nexport default __exports__","module.exports = __webpack_public_path__ + \"img/add.f97fc20c.svg\";","module.exports = __webpack_public_path__ + \"img/icon_bin.08cb267e.svg\";","module.exports = __webpack_public_path__ + \"img/search.dd70734b.svg\";","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./uoseWriter.vue?vue&type=style&index=0&id=032ecc52&scoped=true&lang=css\"","import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, withScopeId as _withScopeId, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\nimport _imports_0 from '@/assets/img/icon_bin.svg'\n\nconst _withId = /*#__PURE__*/_withScopeId(\"data-v-78ce4b33\")\n\n_pushScopeId(\"data-v-78ce4b33\")\nconst _hoisted_1 = /*#__PURE__*/_createVNode(\"img\", { src: _imports_0 }, null, -1)\n_popScopeId()\n\nexport const render = /*#__PURE__*/_withId((_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) => {\n return (_openBlock(), _createBlock(\"div\", {\n class: \"_binContainer\",\n style: 'background-image: url(\\'' + _ctx.url +'\\');',\n onClick: _cache[1] || (_cache[1] = \n//@ts-ignore\n(...args) => (_ctx.showBin && _ctx.showBin(...args)))\n }, [\n _createVNode(\"div\", {\n class: [\"_pallinoRosso\", { _hidden: !_ctx.bin }]\n }, [\n _hoisted_1\n ], 2)\n ], 4))\n})","\r\nimport { Options, Vue } from 'vue-class-component';\r\nimport { Prop } from 'vue-property-decorator';\r\n\r\n@Options({})\r\nexport default class RemovableImage extends Vue {\r\n\r\n @Prop() url: string;\r\n\r\n bin: boolean = false;\r\n binTimer: any = null;\r\n showBin(){\r\n if(this.bin){\r\n this.$emit('remove');\r\n return;\r\n }\r\n this.bin = true;\r\n this.binTimer = setTimeout(() => {\r\n this.bin = false;\r\n }, 600);\r\n }\r\n\r\n}\r\n\r\n","import { render } from \"./removableImage.vue?vue&type=template&id=78ce4b33&scoped=true&ts=true\"\nimport script from \"./removableImage.vue?vue&type=script&lang=ts\"\nexport * from \"./removableImage.vue?vue&type=script&lang=ts\"\n\nimport \"./removableImage.vue?vue&type=style&index=0&id=78ce4b33&scoped=true&lang=css\"\n\nimport exportComponent from \"C:\\\\Users\\\\rekt\\\\source\\\\repos\\\\uose\\\\uoseapp_new\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-78ce4b33\"]])\n\nexport default __exports__","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./removableImage.vue?vue&type=style&index=0&id=78ce4b33&scoped=true&lang=css\"","import { createVNode as _createVNode, resolveComponent as _resolveComponent, toDisplayString as _toDisplayString, resolveDynamicComponent as _resolveDynamicComponent, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\nimport _imports_0 from '@/assets/img/chevronLeft.svg'\n\n\nconst _hoisted_1 = { class: \"genericPadding hasHeader hasFooter bgWhite\" }\nconst _hoisted_2 = { class: \"header withShadow d-flex aling-items-center justify-content-between py-4\" }\nconst _hoisted_3 = /*#__PURE__*/_createVNode(\"img\", { src: _imports_0 }, null, -1)\nconst _hoisted_4 = { class: \"text-center\" }\nconst _hoisted_5 = { class: \"fs_10 grey d-block ln_12\" }\nconst _hoisted_6 = /*#__PURE__*/_createVNode(\"div\", { class: \"sideContainer\" }, null, -1)\nconst _hoisted_7 = { class: \"footerButtonContainer\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_localized_text = _resolveComponent(\"localized-text\")!\n\n return (_openBlock(), _createBlock(\"div\", _hoisted_1, [\n _createVNode(\"div\", _hoisted_2, [\n _createVNode(\"div\", {\n class: \"sideContainer\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.back()))\n }, [\n _hoisted_3\n ]),\n _createVNode(\"div\", _hoisted_4, [\n _createVNode(_component_localized_text, {\n class: \"fs_12 greyBlue d-block ln_12\",\n localizedKey: \"app_creaunacommunity\",\n text: \"Crea una community\"\n }),\n _createVNode(\"span\", _hoisted_5, \"Step \" + _toDisplayString(_ctx.currentStep) + \"/3\", 1)\n ]),\n _hoisted_6\n ]),\n (_openBlock(), _createBlock(_resolveDynamicComponent(_ctx.step))),\n _createVNode(\"div\", _hoisted_7, [\n _createVNode(\"button\", {\n class: \"genericButton bgGreyBlue w-100\",\n onClick: _cache[2] || (_cache[2] = ($event: any) => (_ctx.next())),\n disabled: !_ctx.canNext\n }, [\n _createVNode(_component_localized_text, {\n class: \"fs_14 white\",\n localizedKey: \"app_avanti\",\n text: \"Avanti\"\n })\n ], 8, [\"disabled\"])\n ])\n ]))\n}","import { resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, vModelText as _vModelText, withDirectives as _withDirectives, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"mt-4\" }\nconst _hoisted_2 = { class: \"mt-4\" }\nconst _hoisted_3 = { class: \"form-group squareInputContainer withLabel\" }\nconst _hoisted_4 = { class: \"form-group squareInputContainer withLabel mt-3\" }\nconst _hoisted_5 = { class: \"d-flex flex-wrap\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_user_profile_image = _resolveComponent(\"user-profile-image\")!\n const _component_localized_text = _resolveComponent(\"localized-text\")!\n const _component_file_selector = _resolveComponent(\"file-selector\")!\n const _component_uose_writer_textarea = _resolveComponent(\"uose-writer-textarea\")!\n\n return (_openBlock(), _createBlock(\"div\", null, [\n _createVNode(_component_file_selector, {\n modelValue: _ctx.$store.state.createCommunityVm.logo,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_ctx.$store.state.createCommunityVm.logo = $event)),\n accept: \"image/png, image/jpeg, image/jpg\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_user_profile_image, {\n class: \"profileImageRound\",\n src: _ctx.logoPreview,\n key: _ctx.logoPreview\n }, null, 8, [\"src\"]),\n _createVNode(_component_localized_text, {\n localizedKey: \"app_cambiafotologo\",\n text: \"Cambia foto logo\",\n class: \"fs_14 grey d-block text-center mt-2\"\n })\n ]),\n _: 1\n }, 8, [\"modelValue\"]),\n _createVNode(\"div\", _hoisted_1, [\n _createVNode(_component_file_selector, {\n modelValue: _ctx.$store.state.createCommunityVm.backgroundImage,\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => (_ctx.$store.state.createCommunityVm.backgroundImage = $event))\n }, {\n default: _withCtx(() => [\n _createVNode(_component_user_profile_image, {\n class: \"profileImageRound\",\n src: _ctx.backgroundPreview\n }, null, 8, [\"src\"]),\n _createVNode(_component_localized_text, {\n localizedKey: \"app_cambiafotocopertina\",\n text: \"Cambia foto copertina\",\n class: \"fs_14 grey d-block text-center mt-2\"\n })\n ]),\n _: 1\n }, 8, [\"modelValue\"])\n ]),\n _createVNode(\"div\", _hoisted_2, [\n _createVNode(\"div\", _hoisted_3, [\n _createVNode(\"label\", null, [\n _createVNode(_component_localized_text, {\n localizedKey: \"app_nomecommunity\",\n text: \"Nome community\",\n class: \"fs_12 grey\"\n })\n ]),\n _withDirectives(_createVNode(\"input\", {\n type: \"text\",\n class: \"genericInput squareInput\",\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => (_ctx.$store.state.createCommunityVm.title = $event))\n }, null, 512), [\n [_vModelText, _ctx.$store.state.createCommunityVm.title]\n ])\n ]),\n _createVNode(\"div\", _hoisted_4, [\n _createVNode(_component_uose_writer_textarea, {\n modelValue: _ctx.$store.state.createCommunityVm.description,\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => (_ctx.$store.state.createCommunityVm.description = $event)),\n placeholderText: \"scrivi una descrizione\",\n placeholderKey: \"app_scriviDescrizione\",\n \"max-height\": 200\n }, null, 8, [\"modelValue\"])\n ]),\n _createVNode(_component_localized_text, {\n class: \"fs_12 greyBlue d-block mt-2 mb-2\",\n localizedKey: \"app_visibilitacommunity\",\n text: \"Visibilità community\"\n }),\n _createVNode(\"div\", _hoisted_5, [\n _createVNode(\"div\", {\n class: [\"filterTab\", _ctx.$store.state.createCommunityVm.communityType == _ctx.communityPublic ? 'active' : ''],\n onClick: _cache[5] || (_cache[5] = ($event: any) => (_ctx.$store.state.createCommunityVm.communityType = _ctx.communityPublic))\n }, [\n _createVNode(_component_localized_text, {\n class: \"fs_12 d-block\",\n localizedKey: \"app_pubblica\",\n text: \"Pubblica\"\n })\n ], 2),\n _createVNode(\"div\", {\n class: [\"filterTab\", _ctx.$store.state.createCommunityVm.communityType == _ctx.communityOnRequest ? 'active' : ''],\n onClick: _cache[6] || (_cache[6] = ($event: any) => (_ctx.$store.state.createCommunityVm.communityType = _ctx.communityOnRequest))\n }, [\n _createVNode(_component_localized_text, {\n class: \"fs_12 d-block\",\n localizedKey: \"app_surichiesta\",\n text: \"Su richiesta\"\n })\n ], 2),\n _createVNode(\"div\", {\n class: [\"filterTab\", _ctx.$store.state.createCommunityVm.communityType == _ctx.communityClose ? 'active' : ''],\n onClick: _cache[7] || (_cache[7] = ($event: any) => (_ctx.$store.state.createCommunityVm.communityType = _ctx.communityClose))\n }, [\n _createVNode(_component_localized_text, {\n class: \"fs_12 d-block\",\n localizedKey: \"app_chiusa\",\n text: \"Chiusa\"\n })\n ], 2)\n ])\n ])\n ]))\n}","\r\nimport { Options, Vue } from 'vue-class-component';\r\nimport { Watch } from 'vue-property-decorator';\r\nimport store from '@/store';\r\nimport * as OM from '@/model';\r\nimport UoseWriterTextarea from '@/components/uoseWriterTextarea.vue';\r\n\r\n\r\n@Options({\r\n components:{\r\n UoseWriterTextarea\r\n }\r\n})\r\n\r\nexport default class Step1 extends Vue {\r\n\r\n communityPublic = OM.CommunityType.Public;\r\n communityOnRequest = OM.CommunityType.OnRequest;\r\n communityClose = OM.CommunityType.Close;\r\n\r\n logoPreview: any = null;\r\n\r\n\r\n\r\n @Watch('$store.state.createCommunityVm.logo')\r\n onLogoChange(next, prev){\r\n this.makeLogoPreview();\r\n }\r\n\r\n makeLogoPreview() {\r\n if(store.state.createCommunityVm.logo) {\r\n if(typeof store.state.createCommunityVm.logo == typeof \"\") {\r\n this.logoPreview = store.state.createCommunityVm.logo;\r\n } else {\r\n var reader = new FileReader();\r\n reader.onload = (e: any) => {\r\n this.logoPreview = e.target.result;\r\n }\r\n reader.readAsDataURL(store.state.createCommunityVm.logo);\r\n }\r\n }\r\n }\r\n \r\n \r\n backgroundPreview: any = null;\r\n @Watch('$store.state.createCommunityVm.backgroundImage')\r\n onBackgroundChange(next, prev){\r\n this.makeBgPreview();\r\n }\r\n makeBgPreview(){\r\n if(store.state.createCommunityVm.backgroundImage){\r\n if(typeof store.state.createCommunityVm.backgroundImage == typeof \"\"){\r\n this.backgroundPreview = store.state.createCommunityVm.backgroundImage;\r\n } else {\r\n var reader = new FileReader();\r\n reader.onload = (e: any) => {\r\n this.backgroundPreview = e.target.result;\r\n }\r\n reader.readAsDataURL(store.state.createCommunityVm.backgroundImage);\r\n }\r\n }\r\n }\r\n\r\n created(){\r\n\r\n console.log(\"oggetto\",store.state.createCommunityVm)\r\n console.log(\"back\", store.state.createCommunityVm.backgroundImage)\r\n console.log(\"logo\", store.state.createCommunityVm.logo)\r\n console.log(\"galleria\", store.state.createCommunityVm.gallery)\r\n\r\n this.makeLogoPreview();\r\n this.makeBgPreview();\r\n }\r\n\r\n}\r\n\r\n","import { render } from \"./step1.vue?vue&type=template&id=7902a9db&ts=true\"\nimport script from \"./step1.vue?vue&type=script&lang=ts\"\nexport * from \"./step1.vue?vue&type=script&lang=ts\"\n\nimport exportComponent from \"C:\\\\Users\\\\rekt\\\\source\\\\repos\\\\uose\\\\uoseapp_new\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { resolveComponent as _resolveComponent, createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createBlock as _createBlock, vModelText as _vModelText, withDirectives as _withDirectives, toDisplayString as _toDisplayString } from \"vue\"\nimport _imports_0 from '@/assets/img/management/add.svg'\nimport _imports_1 from '@/assets/img/management/trash.svg'\n\n\nconst _hoisted_1 = { class: \"d-flex flex-wrap\" }\nconst _hoisted_2 = { class: \"d-flex\" }\nconst _hoisted_3 = /*#__PURE__*/_createVNode(\"img\", { src: _imports_0 }, null, -1)\nconst _hoisted_4 = /*#__PURE__*/_createVNode(\"img\", { src: _imports_1 }, null, -1)\nconst _hoisted_5 = { class: \"fs_14 spaceCadet ms-2\" }\n\nexport function render(_ctx: any,_cache: any) {\n const _component_localized_text = _resolveComponent(\"localized-text\")!\n\n return (_openBlock(), _createBlock(\"div\", null, [\n _createVNode(_component_localized_text, {\n class: \"fs_12 greyBlue d-block mt-2 mb-2\",\n localizedKey: \"app_selezionaUnaCategoria\",\n text: \"Seleziona una categoria\"\n }),\n _createVNode(\"div\", _hoisted_1, [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.categories, (item, i) => {\n return (_openBlock(), _createBlock(\"div\", {\n class: [\"filterTab\", { active: _ctx.$store.state.createCommunityVm.category == item.name }],\n key: i,\n onClick: ($event: any) => (_ctx.$store.state.createCommunityVm.category = item.name)\n }, [\n _createVNode(_component_localized_text, {\n class: \"fs_12 d-block\",\n localizedKey: 'app_' + item.name,\n text: item.name\n }, null, 8, [\"localizedKey\", \"text\"])\n ], 10, [\"onClick\"]))\n }), 128))\n ]),\n _createVNode(_component_localized_text, {\n class: \"fs_12 greyBlue d-block mt-3 mb-2\",\n localizedKey: \"app_inseriscifinoatretag\",\n text: \"Inserisci fino a 3 tag\"\n }),\n _createVNode(\"div\", _hoisted_2, [\n _withDirectives(_createVNode(\"input\", {\n type: \"text\",\n autocomplete: \"off\",\n class: \"genericInput littleHeight squareInput w-100\",\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_ctx.newTag = $event)),\n disabled: _ctx.$store.state.createCommunityVm.tags.length >= 3,\n ref: \"tagInput\"\n }, null, 8, [\"disabled\"]), [\n [_vModelText, _ctx.newTag]\n ]),\n _createVNode(\"div\", {\n class: \"managementButton\",\n onClick: _cache[2] || (_cache[2] = ($event: any) => (_ctx.addTag())),\n disabled: _ctx.$store.state.createCommunityVm.tags.length >= 3 || !_ctx.newTag\n }, [\n _hoisted_3\n ], 8, [\"disabled\"])\n ]),\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.$store.state.createCommunityVm.tags, (item, i) => {\n return (_openBlock(), _createBlock(\"div\", {\n class: \"d-flex align-items-center mt-2\",\n key: i,\n onClick: ($event: any) => (_ctx.removeTag(i))\n }, [\n _hoisted_4,\n _createVNode(\"span\", _hoisted_5, _toDisplayString(item), 1)\n ], 8, [\"onClick\"]))\n }), 128))\n ]))\n}","\r\nimport { Options, Vue } from 'vue-class-component';\r\nimport { AppConfigClient } from '@/services/Services';\r\nimport Removable from '@/components/removable.vue';\r\nimport store from '@/store';\r\nimport * as OM from '@/model';\r\n\r\n@Options({\r\n components: {\r\n Removable\r\n }\r\n})\r\nexport default class Step2 extends Vue {\r\n\r\n loaded: boolean = false;\r\n categories: OM.CategoryConfigVm[] = [];\r\n newTag: string = \"\";\r\n\r\n created() {\r\n AppConfigClient.getCategories()\r\n .then(x => {\r\n this.categories = x;\r\n });\r\n }\r\n\r\n addTag() {\r\n var newTag = this.newTag.trim();\r\n var elementInLower = store.state.createCommunityVm.tags.find(x => x.toLowerCase() == this.newTag.toLowerCase())\r\n\r\n if(!newTag || store.state.createCommunityVm.tags.includes(this.newTag) == true \r\n || elementInLower)\r\n\r\n return\r\n\r\n store.state.createCommunityVm.tags.push(this.newTag);\r\n this.newTag = \"\";\r\n (this.$refs.tagInput).focus();\r\n \r\n }\r\n removeTag(index: number) {\r\n store.state.createCommunityVm.tags.splice(index, 1);\r\n }\r\n\r\n}\r\n\r\n","import { render } from \"./step2.vue?vue&type=template&id=e71b1902&ts=true\"\nimport script from \"./step2.vue?vue&type=script&lang=ts\"\nexport * from \"./step2.vue?vue&type=script&lang=ts\"\n\nimport exportComponent from \"C:\\\\Users\\\\rekt\\\\source\\\\repos\\\\uose\\\\uoseapp_new\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\nimport _imports_0 from '@/assets/img/management/add.svg'\n\n\nconst _hoisted_1 = { class: \"twoBlocksContainer justify-content-start\" }\nconst _hoisted_2 = /*#__PURE__*/_createVNode(\"img\", { src: _imports_0 }, null, -1)\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_localized_text = _resolveComponent(\"localized-text\")!\n const _component_file_selector = _resolveComponent(\"file-selector\")!\n const _component_removable_image = _resolveComponent(\"removable-image\")!\n\n return (_openBlock(), _createBlock(_Fragment, null, [\n _createVNode(_component_localized_text, {\n class: \"fs_12 greyBlue d-block mt-1 mb-3\",\n localizedKey: \"app_creagallery\",\n text: \"Crea gallery\"\n }),\n _createVNode(\"div\", _hoisted_1, [\n _createVNode(_component_file_selector, {\n class: \"block addPhotoSquare\",\n modelValue: _ctx.tempFile,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_ctx.tempFile = $event))\n }, {\n default: _withCtx(() => [\n _hoisted_2\n ]),\n _: 1\n }, 8, [\"modelValue\"]),\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.tempFiles, (item, i) => {\n return (_openBlock(), _createBlock(_component_removable_image, {\n class: \"block galleryItem\",\n key: i,\n style: 'background-image: url(\\'' + item +'\\');',\n onRemove: ($event: any) => (_ctx.removeImage(i))\n }, null, 8, [\"style\", \"onRemove\"]))\n }), 128))\n ])\n ], 64))\n}","\r\nimport { Options, Vue } from 'vue-class-component';\r\nimport { Watch } from 'vue-property-decorator';\r\nimport RemovableImage from '@/components/removableImage.vue';\r\nimport store from '@/store';\r\n\r\n@Options({\r\n components: {\r\n RemovableImage\r\n }\r\n})\r\nexport default class Step3 extends Vue {\r\n\r\n loaded: boolean = false;\r\n\r\n tempFile: File = null;\r\n tempFiles: string[] = [];\r\n @Watch('tempFile')\r\n onTempFileChange(next, prev){\r\n if(this.tempFile){\r\n if(typeof this.tempFile == \"string\"){\r\n this.tempFiles.push(this.tempFile);\r\n store.state.createCommunityVm.gallery.push(this.tempFile);\r\n this.tempFile = null;\r\n } else {\r\n store.state.createCommunityVm.gallery.push(this.tempFile);\r\n var reader = new FileReader();\r\n reader.onload = (e: any) => {\r\n this.tempFiles.push(e.target.result);\r\n }\r\n reader.readAsDataURL(this.tempFile);\r\n this.tempFile = null;\r\n }\r\n }\r\n }\r\n\r\n removeImage(index: number){\r\n store.state.createCommunityVm.gallery.splice(index, 1);\r\n this.tempFiles.splice(index, 1);\r\n }\r\n\r\n created(){\r\n if(store.state.createCommunityVm.gallery.length > 0){\r\n store.state.createCommunityVm.gallery.forEach(x => {\r\n var reader = new FileReader();\r\n reader.onload = (e: any) => {\r\n this.tempFiles.push(e.target.result);\r\n }\r\n reader.readAsDataURL(x);\r\n })\r\n }\r\n }\r\n\r\n}\r\n\r\n","import { render } from \"./step3.vue?vue&type=template&id=77cfa758&ts=true\"\nimport script from \"./step3.vue?vue&type=script&lang=ts\"\nexport * from \"./step3.vue?vue&type=script&lang=ts\"\n\nimport exportComponent from \"C:\\\\Users\\\\rekt\\\\source\\\\repos\\\\uose\\\\uoseapp_new\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\r\nimport { Options, Vue } from 'vue-class-component';\r\nimport Step1 from '../components/step1.vue';\r\nimport Step2 from '../components/step2.vue';\r\nimport Step3 from '../components/step3.vue';\r\nimport store from '@/store';\r\nimport * as VM from '@/viewModel';\r\nimport * as OM from '@/model';\r\nimport { BaseCommunityClient, CommunityClient } from '@/services/Services';\r\n\r\n@Options({})\r\nexport default class CreateCommunity extends Vue {\r\n\r\n created() {\r\n store.state.createCommunityVm = new VM.CreateCommunityVm();\r\n }\r\n\r\n currentStep: number = 1;\r\n get step() {\r\n if(this.currentStep == 1){\r\n return Step1;\r\n } else if(this.currentStep == 2){\r\n return Step2;\r\n } else if(this.currentStep == 3){\r\n return Step3;\r\n }\r\n }\r\n\r\n get canNext() {\r\n if(this.currentStep == 1){\r\n return store.state.createCommunityVm.title && store.state.createCommunityVm.description && store.state.createCommunityVm.logo && store.state.createCommunityVm.backgroundImage;\r\n } else if(this.currentStep == 2) {\r\n return store.state.createCommunityVm.category && store.state.createCommunityVm.tags.length > 0;\r\n } else if(this.currentStep == 3) {\r\n return true;\r\n }\r\n // else if(this.$route.name == 'community_create_step4') {\r\n // return store.state.createCommunityVm.title && store.state.createCommunityVm.description && store.state.createCommunityVm.logo;\r\n // }\r\n }\r\n\r\n back() {\r\n if(this.currentStep > 1){\r\n this.currentStep--;\r\n } else {\r\n this.$emit('close');\r\n }\r\n }\r\n\r\n next() {\r\n if(this.currentStep == 1){\r\n this.currentStep = 2;\r\n } else if(this.currentStep == 2) {\r\n this.currentStep = 3\r\n } else if(this.currentStep == 3) {\r\n store.state.globalSpinner++;\r\n CommunityClient.createCommunity(store.state.createCommunityVm)\r\n .then(x => {\r\n Promise.all([\r\n BaseCommunityClient.updateBackgroundImage(x.identifier, store.state.createCommunityVm.backgroundImage),\r\n BaseCommunityClient.updateLogoImage(x.identifier, store.state.createCommunityVm.logo),\r\n BaseCommunityClient.addGalleryImages(x.identifier, store.state.createCommunityVm.gallery)\r\n ]).then( y => {\r\n this.$router.push('/communities/' + x.slug);\r\n this.$opModal.closeAll();\r\n })\r\n })\r\n .catch(x => {\r\n })\r\n .finally(() => store.state.globalSpinner--);\r\n }\r\n }\r\n}\r\n\r\n","import { render } from \"./createCommunity.vue?vue&type=template&id=9c555de2&ts=true\"\nimport script from \"./createCommunity.vue?vue&type=script&lang=ts\"\nexport * from \"./createCommunity.vue?vue&type=script&lang=ts\"\n\nimport exportComponent from \"C:\\\\Users\\\\rekt\\\\source\\\\repos\\\\uose\\\\uoseapp_new\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"sourceRoot":""}