{"version":3,"sources":["webpack:///./src/components/inputs/customs/BlogPostVisibilitySelect.vue?712c","webpack:///./node_modules/cache-loader/dist/cjs.js","webpack:///./src/components/inputs/customs/BlogPostVisibilitySelect.vue?4a6d","webpack:///./src/components/inputs/customs/BlogPostVisibilitySelect.vue","webpack:///./src/views/admin/cogeskey/BlogPostForm.vue?f3e8","webpack:///./node_modules/core-js/internals/create-html.js","webpack:///./src/components/inputs/TextInput.vue?9aad","webpack:///./src/components/inputs/TextInput.vue?2ffe","webpack:///./src/components/inputs/TextInput.vue","webpack:///./node_modules/core-js/modules/es.string.link.js","webpack:///./src/components/inputs/rich-text-editor/RichTextEditor.vue?45d6","webpack:///./node_modules/@tinymce/tinymce-vue/lib/es2015/main/ts/Utils.js","webpack:///./node_modules/@tinymce/tinymce-vue/lib/es2015/main/ts/ScriptLoader.js","webpack:///./node_modules/@tinymce/tinymce-vue/lib/es2015/main/ts/components/EditorPropTypes.js","webpack:///./node_modules/@tinymce/tinymce-vue/lib/es2015/main/ts/components/Editor.js","webpack:///./node_modules/@tinymce/tinymce-vue/lib/es2015/main/ts/index.js","webpack:///./src/components/inputs/rich-text-editor/RichTextEditor.vue?61ea","webpack:///./src/components/inputs/rich-text-editor/RichTextEditor.vue","webpack:///./src/components/inputs/TextInput.vue?a77f","webpack:///./node_modules/core-js/internals/string-html-forced.js","webpack:///./src/components/BackNavigationToolbar.vue?6b15","webpack:///./src/components/BackNavigationToolbar.vue?34ac","webpack:///./src/components/BackNavigationToolbar.vue?badb","webpack:///./src/components/BackNavigationToolbar.vue","webpack:///./node_modules/@tinymce/tinymce-vue/lib/es2015/main/ts/TinyMCE.js","webpack:///./src/components/inputs/rich-text-editor/RichTextEditor.vue?1a46","webpack:///./src/views/admin/cogeskey/BlogPostForm.vue?edc1","webpack:///./src/models/cogeskey-portal/blogPostVisibility.ts","webpack:///./src/models/cogeskey-portal/blogPost.ts","webpack:///./src/models/cogeskey-portal/blogPostContent.ts","webpack:///./src/models/cogeskey-portal/blogPostCreateRequest.ts","webpack:///./src/models/cogeskey-portal/blogPostUpdateRequest.ts","webpack:///./src/views/admin/cogeskey/BlogPostForm.vue?4e99","webpack:///./src/views/admin/cogeskey/BlogPostForm.vue","webpack:///./src/utils/axios-utils/formdata.utils.ts","webpack:///./src/services/cogeskey-portal/cogesKeyPortal.service.ts","webpack:///./src/components/inputs/TextInput.vue?e01e"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","items","rules","value","required","clearable","compact","on","handleSelect","staticRenderFns","BlogPostVisibilitySelect","getItems","visibilities","hidden","published","map","c","text","$t","code","$emit","Vue","__decorate","Prop","default","undefined","Component","components","SelectInput","component","uncurryThis","requireObjectCoercible","toString","quot","replace","module","exports","string","tag","attribute","S","p1","staticClass","class","fluid","hideLabel","labelString","placeholder","type","readonly","disabled","appendIcon","hideDetails","prependInnerIcon","handleInput","handleChange","handleBlur","handleFocus","TextInput","label","input","emit","$","createHTML","forcedStringHTMLMethod","target","proto","forced","link","url","id","branding","height","language","editorLanguage","mobile","menubar","plugins","resize","statusbar","toolbar","init_instance_callback","editor","e","onUpdate","model","callback","$$v","expression","$event","stopPropagation","onDelete","apply","arguments","_v","_s","_e","onCancel","saveDisabled","onSave","validEvents","isValidKey","key","event","toLowerCase","indexOf","bindHandlers","initEvent","listeners","Object","keys","filter","forEach","handler","substring","bindModelHandlers","ctx","modelEvents","$props","normalizedEvents","Array","isArray","join","getContent","format","outputFormat","initEditor","initialValue","setContent","initialized","cache","$watch","val","prevVal","$listeners","unique","uuid","prefix","time","Date","now","random","Math","floor","String","isTextarea","element","tagName","normalizePluginArray","split","mergePlugins","initPlugins","inputPlugins","concat","isNullOrUndefined","createState","scriptId","scriptLoaded","CreateScriptLoader","state","injectScriptTag","doc","scriptTag","createElement","referrerPolicy","src","removeEventListener","addEventListener","head","appendChild","load","push","getElementById","fn","reinitialize","ScriptLoader","editorProps","apiKey","cloudChannel","init","inline","Boolean","tinymceScriptSrc","validator","prop","__assign","assign","t","s","i","n","length","p","prototype","hasOwnProperty","call","renderInline","h","renderIframe","style","visibility","initialise","finalInit","selector","elementId","inlineEditor","setup","display","Editor","props","created","watch","setMode","mounted","$el","ownerDocument","channel","scriptSrc","beforeDestroy","remove","deactivated","_a","activated","RichTextEditor","$store","getters","UserGetters","User","fails","METHOD_NAME","test","goToPage","title","_t","BackNavigationToolbar","$router","go","getGlobal","window","global","getTinymce","tinymce","BlogPostVisibility","blogPost","slot","postVisibility","staticStyle","postImageFileName","mediaUrl","setFormModified","postImageFile","tabChanged","tabs","requiredRules","maxLengthRules","$set","content","showDeleteButton","validPost","cancel","openConfirmDelete","savePost","updateMap","ref","BlogPost","Hidden","BlogPostContent","slug","excerpt","lang","BlogPostCreateRequest","BlogPostUpdateRequest","BlogPostForm","actions","blogPostsByLang","Map","blogPostCreateRequest","blogPostUpdateRequest","modifiedForm","validForm","renderRTE","action","CREATE","dispatch","RootActions","SetPageTitle","EDIT","$route","params","initValidationRules","createPost","updatePost","getBlogPost","back","confirmDeleteBlogPost","confirm","then","response","deletePost","hasMedia","validContent","BlogPostForm_1","CONTENT_MAX_LENGTH","has","set","get","$spinner","showSpinner","cogesKeyPortalService","data","catch","$toaster","showError","finally","removeSpinner","buildBlogPostCreateRequest","createBlogPost","showSuccess","name","Routes","BlogPosts","buildBlogPostUpdateRequest","updateBlogPost","deleteBlogPost","isValidRequest","mediaFile","blogPostLangContent","modified","langContent","Ref","Card","CardContainer","FileInput","Modal","objectToFormData","formData","namespace","formKey","fd","FormData","index","tempFormKey","File","append","CogesKeyPortalService","size","sort","sortDir","filtersChanged","page","basePagination","endpoints","blogPostId","axios","config","headers","post","put","delete","merchantId","contact","contactId","privacy","settings","BasePaginationService"],"mappings":"2IAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,iBAAiB,CAACE,MAAM,CAAC,MAAQN,EAAIO,MAAM,MAAQP,EAA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,QA0HvBxD,EAAwB,IAAIoC,G,kCCtIzC","file":"js/chunk-609b9ddc.63c69a16.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('n-select-input',{attrs:{\"items\":_vm.items,\"rules\":_vm.rules || [],\"label\":\"blog-post.visibility\",\"value\":_vm.value,\"required\":_vm.required,\"clearable\":_vm.clearable,\"compact\":_vm.compact},on:{\"change\":_vm.handleSelect}})}\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\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\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\nimport { BlogPost } from '@/models/cogeskey-portal/blogPost';\nimport { BlogPostContent } from '@/models/cogeskey-portal/blogPostContent';\nimport { BlogPostCreateRequest } from '@/models/cogeskey-portal/blogPostCreateRequest';\nimport { BlogPostUpdateRequest } from '@/models/cogeskey-portal/blogPostUpdateRequest';\nimport { BlogPostVisibility } from '@/models/cogeskey-portal/blogPostVisibility';\nimport { Component, Prop, Ref, Vue } from 'vue-property-decorator';\nimport { RootActions } from '@/store/enums';\nimport { Routes } from '@/router/routes';\nimport BackNavigationToolbar from '@/components/BackNavigationToolbar.vue';\nimport BlogPostVisibilitySelect from '@/components/inputs/customs/BlogPostVisibilitySelect.vue';\nimport Card from '@/components/Card.vue';\nimport CardContainer from '@/components/CardContainer.vue';\nimport FileInput from '@/components/inputs/FileInput.vue';\nimport Modal from '@/components/Modal.vue';\nimport RichTextEditor from '@/components/inputs/rich-text-editor/RichTextEditor.vue';\nimport SelectInput from '@/components/inputs/SelectInput.vue';\nimport TextInput from '@/components/inputs/TextInput.vue';\nimport { actions } from '@/consts/actions';\nimport { cogesKeyPortalService } from '@/services/cogeskey-portal/cogesKeyPortal.service';\nimport {\n maxLengthRules,\n requiredRules,\n} from '@/utils/input-rules.utils';\n\n@Component({\n components: {\n 'n-back-navigation-toolbar': BackNavigationToolbar,\n 'n-blog-post-visibility-select': BlogPostVisibilitySelect,\n 'n-card': Card,\n 'n-card-container': CardContainer,\n 'n-file-input': FileInput,\n 'n-modal': Modal,\n 'n-rich-text-editor': RichTextEditor,\n 'n-select-input': SelectInput,\n 'n-text-input': TextInput,\n },\n})\nexport default class BlogPostForm extends Vue {\n public static readonly CONTENT_MAX_LENGTH = 200;\n public actions = actions;\n public blogPost: BlogPost = new BlogPost();\n public blogPostsByLang: Map = new Map();\n public blogPostCreateRequest: BlogPostCreateRequest = new BlogPostCreateRequest();\n public blogPostUpdateRequest: BlogPostUpdateRequest = new BlogPostUpdateRequest();\n public maxLengthRules: any[] = [];\n public modifiedForm: boolean = false;\n public postImageFile: any = null;\n public postImageFileName: string = '';\n public postVisibility: BlogPostVisibility = BlogPostVisibility.Hidden;\n public requiredRules: any[] = [];\n public tabs: any = null;\n public validForm: boolean = false;\n public renderRTE: boolean = false;\n\n @Prop(String)\n public action: string | undefined;\n\n\n @Ref('confirmDeleteBlogPost')\n public readonly confirmDeleteBlogPost!: Modal;\n\n public created(): void {\n if (this.action === actions.CREATE) {\n this.$store.dispatch(RootActions.SetPageTitle, 'pages.create-blogpost');\n } else if (this.action === actions.EDIT) {\n this.blogPost.id = this.$route.params.id;\n this.$store.dispatch(RootActions.SetPageTitle, 'pages.edit-blogpost');\n }\n this.initValidationRules();\n }\n\n public showDeleteButton(): boolean {\n return this.action === actions.EDIT;\n }\n\n public savePost(text: any, lang: string): void {\n if (this.action === actions.CREATE) {\n this.createPost();\n } else if (this.action === actions.EDIT) {\n this.updatePost(text, lang);\n }\n }\n\n public tabChanged(): void {\n this.renderRTE = false;\n switch (this.tabs) {\n case 0: this.getBlogPost('it'); break;\n case 1: this.getBlogPost('en'); break;\n case 2: this.getBlogPost('es'); break;\n case 3: this.getBlogPost('fr'); break;\n case 4: this.getBlogPost('de'); break;\n }\n }\n\n public cancel(): void {\n this.$router.back();\n }\n\n public openConfirmDelete(): void {\n this.confirmDeleteBlogPost\n .confirm('delete-blog-post', 'delete')\n .then((response) => {\n if (response) {\n this.deletePost();\n }\n });\n }\n\n public validPost(): boolean {\n let hasMedia = true;\n if (this.action === actions.CREATE) {\n hasMedia = !!this.postImageFile;\n }\n if (!!this.blogPost.title) {\n let validContent = this.blogPost.title.length <= BlogPostForm.CONTENT_MAX_LENGTH;\n if (!!this.blogPost.slug) {\n validContent = validContent && this.blogPost.slug.length <= BlogPostForm.CONTENT_MAX_LENGTH;\n }\n if (!!this.blogPost.excerpt) {\n validContent = validContent && this.blogPost.excerpt.length <= BlogPostForm.CONTENT_MAX_LENGTH;\n }\n return hasMedia && validContent;\n } else {\n return false;\n }\n }\n\n private getBlogPost(lang: string = 'en'): void {\n if (this.action === actions.CREATE) {\n if (!this.blogPostsByLang.has(lang)) {\n this.blogPostsByLang.set(lang, new BlogPost());\n }\n this.blogPost = this.blogPostsByLang.get(lang) ?? new BlogPost();\n this.renderRTE = true;\n } else {\n this.$spinner.showSpinner();\n cogesKeyPortalService\n .getBlogPost(this.blogPost.id, lang)\n .then((response) => {\n this.blogPost = response.data;\n this.blogPostsByLang.set(lang, this.blogPost);\n this.postImageFileName = this.blogPost.mediaUrl.replace(/^.*[\\\\\\/%2F]/, '');\n this.postVisibility = this.blogPost.visibility;\n })\n .catch(() => {\n this.$toaster.showError('errors.common', true);\n })\n .finally(() => {\n this.renderRTE = true;\n this.$spinner.removeSpinner();\n });\n }\n }\n\n private initValidationRules(): void {\n this.requiredRules = requiredRules();\n this.maxLengthRules = maxLengthRules(BlogPostForm.CONTENT_MAX_LENGTH);\n }\n\n private createPost(): void {\n this.$spinner.showSpinner();\n if (this.buildBlogPostCreateRequest()) {\n cogesKeyPortalService\n .createBlogPost(this.blogPostCreateRequest)\n .then((response) => {\n this.$toaster.showSuccess('success.common', true);\n this.$router.push({ name: Routes.BlogPosts });\n })\n .catch(() => {\n this.$toaster.showError('errors.common', true);\n })\n .finally(() => {\n this.$spinner.removeSpinner();\n });\n } else {\n this.$spinner.removeSpinner();\n }\n }\n\n private updatePost(text: string, lang: string): void {\n this.$spinner.showSpinner();\n this.buildBlogPostUpdateRequest(text, lang);\n cogesKeyPortalService\n .updateBlogPost(this.blogPost.id, lang, this.blogPostUpdateRequest)\n .then((response) => {\n this.blogPost.mediaUrl = response.data as unknown as string;\n this.postImageFile = null;\n this.postImageFileName = this.blogPost.mediaUrl.replace(/^.*[\\\\\\/%2F]/, '');\n this.$toaster.showSuccess('success.common', true);\n })\n .catch(() => {\n this.$toaster.showError('errors.common', true);\n })\n .finally(() => {\n this.$spinner.removeSpinner();\n });\n }\n\n private deletePost(): void {\n this.$spinner.showSpinner();\n cogesKeyPortalService\n .deleteBlogPost(this.blogPost.id)\n .then(() => {\n this.$toaster.showSuccess('success.common', true);\n this.$router.push({ name: Routes.BlogPosts });\n })\n .catch(() => {\n this.$toaster.showError('errors.common', true);\n })\n .finally(() => {\n this.$spinner.removeSpinner();\n });\n }\n\n private buildBlogPostCreateRequest(): boolean {\n this.blogPostCreateRequest = new BlogPostCreateRequest();\n if (!this.blogPostsByLang.get('it')) {\n this.$toaster.showError('errors.blog-post-ita-content', true);\n return false;\n }\n if (!this.blogPostsByLang.get('en')) {\n this.$toaster.showError('errors.blog-post-eng-content', true);\n return false;\n }\n let isValidRequest = true;\n this.blogPostCreateRequest.visibility = this.postVisibility ?? BlogPostVisibility.Hidden;\n this.blogPostCreateRequest.mediaFile = this.postImageFile;\n this.blogPostsByLang.forEach((blogPost, lang) => {\n if (!!blogPost.title && !!blogPost.content) {\n const blogPostLangContent = new BlogPostContent();\n blogPostLangContent.lang = lang;\n blogPostLangContent.title = blogPost.title;\n blogPostLangContent.excerpt = blogPost.excerpt ?? '';\n blogPostLangContent.slug = blogPost.slug ?? '';\n blogPostLangContent.text = blogPost.content;\n this.blogPostCreateRequest.content.push(blogPostLangContent);\n } else if (lang === 'it') {\n isValidRequest = false;\n this.$toaster.showError('errors.blog-post-ita-content', true);\n } else if (lang === 'en') {\n isValidRequest = false;\n this.$toaster.showError('errors.blog-post-eng-content', true);\n }\n });\n return isValidRequest;\n }\n\n private buildBlogPostUpdateRequest(text: string, lang: string): void {\n this.blogPostUpdateRequest.visibility = this.postVisibility ?? BlogPostVisibility.Hidden;\n this.blogPostUpdateRequest.title = this.blogPost.title;\n this.blogPostUpdateRequest.slug = this.blogPost.slug ?? '';\n this.blogPostUpdateRequest.excerpt = this.blogPost.excerpt ?? '';\n this.blogPostUpdateRequest.content = text;\n this.blogPostUpdateRequest.mediaFile = this.postImageFile;\n this.blogPostUpdateRequest.lang = lang;\n }\n\n private setFormModified(modified: boolean = true) {\n this.modifiedForm = modified;\n }\n\n private updateMap(text: any, lang: string) {\n const langContent = this.blogPostsByLang.get(lang) ?? new BlogPost();\n langContent.content = text;\n this.blogPostsByLang.set(lang, langContent);\n }\n}\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--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BlogPostVisibilitySelect.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--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BlogPostVisibilitySelect.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./BlogPostVisibilitySelect.vue?vue&type=template&id=771c313f&scoped=true&\"\nimport script from \"./BlogPostVisibilitySelect.vue?vue&type=script&lang=ts&\"\nexport * from \"./BlogPostVisibilitySelect.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 \"771c313f\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BlogPostForm.vue?vue&type=style&index=0&id=3f678ce7&lang=scss&scoped=true&\"","var uncurryThis = require('../internals/function-uncurry-this');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar toString = require('../internals/to-string');\n\nvar quot = /\"/g;\nvar replace = uncurryThis(''.replace);\n\n// `CreateHTML` abstract operation\n// https://tc39.es/ecma262/#sec-createhtml\nmodule.exports = function (string, tag, attribute, value) {\n var S = toString(requireObjectCoercible(string));\n var p1 = '<' + tag;\n if (attribute !== '') p1 += ' ' + attribute + '=\"' + replace(toString(value), quot, '"') + '\"';\n return p1 + '>' + S + '';\n};\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-text-field',{staticClass:\"input\",class:{ 'input__fluid': _vm.fluid , 'input__hidelabel': _vm.hideLabel, 'input__compact': _vm.compact},attrs:{\"rules\":_vm.rules || [],\"label\":_vm.labelString,\"placeholder\":_vm.$t(_vm.placeholder),\"required\":_vm.required,\"value\":_vm.value,\"type\":_vm.type,\"readonly\":_vm.readonly,\"disabled\":_vm.disabled,\"append-icon\":_vm.appendIcon,\"hide-details\":_vm.hideDetails,\"prepend-inner-icon\":_vm.prependInnerIcon},on:{\"input\":_vm.handleInput,\"change\":_vm.handleChange,\"blur\":_vm.handleBlur,\"focus\":_vm.handleFocus}})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","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--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TextInput.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--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TextInput.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./TextInput.vue?vue&type=template&id=ad9ad69c&\"\nimport script from \"./TextInput.vue?vue&type=script&lang=ts&\"\nexport * from \"./TextInput.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./TextInput.vue?vue&type=style&index=0&lang=scss&\"\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","'use strict';\nvar $ = require('../internals/export');\nvar createHTML = require('../internals/create-html');\nvar forcedStringHTMLMethod = require('../internals/string-html-forced');\n\n// `String.prototype.link` method\n// https://tc39.es/ecma262/#sec-string.prototype.link\n$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('link') }, {\n link: function link(url) {\n return createHTML(this, 'a', 'href', url);\n }\n});\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('editor',{attrs:{\"api-key\":\"7s3m1oyt07ty4h8l42oqx1nbr82llyznksqvko0is2b3whww\",\"init\":{\n id: _vm.id,\n branding: false,\n height: '320',\n language: _vm.editorLanguage,\n mobile: {\n menubar: false,\n },\n plugins: 'lists link code help wordcount',\n resize: false,\n statusbar: false,\n toolbar: 'language undo redo styleselect bold italic underline alignleft aligncenter alignright alignjustify | bullist numlist outdent indent',\n init_instance_callback: function (editor) {\n editor.on('blur', function (e) {\n _vm.onUpdate();\n });\n },\n }},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:\"value\"}}),_c('footer',{staticClass:\"footer\"},[(_vm.deleteButton)?_c('div',{staticClass:\"footer__delete-link\",on:{\"click\":function($event){$event.stopPropagation();return _vm.onDelete.apply(null, arguments)}}},[_c('span',[_vm._v(_vm._s(_vm.$t('delete')))])]):_vm._e(),(_vm.cancelButton)?_c('v-btn',{staticClass:\"footer__cancel-btn\",on:{\"click\":function($event){$event.stopPropagation();return _vm.onCancel.apply(null, arguments)}}},[_vm._v(_vm._s(_vm.$t('cancel')))]):_vm._e(),(_vm.saveButton)?_c('v-btn',{attrs:{\"disabled\":_vm.saveDisabled},on:{\"click\":function($event){$event.stopPropagation();return _vm.onSave.apply(null, arguments)}}},[_vm._v(_vm._s(_vm.$t('save')))]):_vm._e()],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","/**\n * Copyright (c) 2018-present, Ephox, Inc.\n *\n * This source code is licensed under the Apache 2 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\nvar validEvents = [\n 'onActivate',\n 'onAddUndo',\n 'onBeforeAddUndo',\n 'onBeforeExecCommand',\n 'onBeforeGetContent',\n 'onBeforeRenderUI',\n 'onBeforeSetContent',\n 'onBeforePaste',\n 'onBlur',\n 'onChange',\n 'onClearUndos',\n 'onClick',\n 'onContextMenu',\n 'onCopy',\n 'onCut',\n 'onDblclick',\n 'onDeactivate',\n 'onDirty',\n 'onDrag',\n 'onDragDrop',\n 'onDragEnd',\n 'onDragGesture',\n 'onDragOver',\n 'onDrop',\n 'onExecCommand',\n 'onFocus',\n 'onFocusIn',\n 'onFocusOut',\n 'onGetContent',\n 'onHide',\n 'onInit',\n 'onKeyDown',\n 'onKeyPress',\n 'onKeyUp',\n 'onLoadContent',\n 'onMouseDown',\n 'onMouseEnter',\n 'onMouseLeave',\n 'onMouseMove',\n 'onMouseOut',\n 'onMouseOver',\n 'onMouseUp',\n 'onNodeChange',\n 'onObjectResizeStart',\n 'onObjectResized',\n 'onObjectSelected',\n 'onPaste',\n 'onPostProcess',\n 'onPostRender',\n 'onPreProcess',\n 'onProgressState',\n 'onRedo',\n 'onRemove',\n 'onReset',\n 'onSaveContent',\n 'onSelectionChange',\n 'onSetAttrib',\n 'onSetContent',\n 'onShow',\n 'onSubmit',\n 'onUndo',\n 'onVisualAid'\n];\nvar isValidKey = function (key) { return validEvents.map(function (event) { return event.toLowerCase(); }).indexOf(key.toLowerCase()) !== -1; };\nvar bindHandlers = function (initEvent, listeners, editor) {\n Object.keys(listeners)\n .filter(isValidKey)\n .forEach(function (key) {\n var handler = listeners[key];\n if (typeof handler === 'function') {\n if (key === 'onInit') {\n handler(initEvent, editor);\n }\n else {\n editor.on(key.substring(2), function (e) { return handler(e, editor); });\n }\n }\n });\n};\nvar bindModelHandlers = function (ctx, editor) {\n var modelEvents = ctx.$props.modelEvents ? ctx.$props.modelEvents : null;\n var normalizedEvents = Array.isArray(modelEvents) ? modelEvents.join(' ') : modelEvents;\n editor.on(normalizedEvents ? normalizedEvents : 'change input undo redo', function () {\n ctx.$emit('input', editor.getContent({ format: ctx.$props.outputFormat }));\n });\n};\nvar initEditor = function (initEvent, ctx, editor) {\n var value = ctx.$props.value ? ctx.$props.value : '';\n var initialValue = ctx.$props.initialValue ? ctx.$props.initialValue : '';\n editor.setContent(value || (ctx.initialized ? ctx.cache : initialValue));\n // Always bind the value listener in case users use :value instead of v-model\n ctx.$watch('value', function (val, prevVal) {\n if (editor && typeof val === 'string' && val !== prevVal && val !== editor.getContent({ format: ctx.$props.outputFormat })) {\n editor.setContent(val);\n }\n });\n // checks if the v-model shorthand is used (which sets an v-on:input listener) and then binds either\n // specified the events or defaults to \"change keyup\" event and emits the editor content on that event\n if (ctx.$listeners.input) {\n bindModelHandlers(ctx, editor);\n }\n bindHandlers(initEvent, ctx.$listeners, editor);\n ctx.initialized = true;\n};\nvar unique = 0;\nvar uuid = function (prefix) {\n var time = Date.now();\n var random = Math.floor(Math.random() * 1000000000);\n unique++;\n return prefix + '_' + random + unique + String(time);\n};\nvar isTextarea = function (element) {\n return element !== null && element.tagName.toLowerCase() === 'textarea';\n};\nvar normalizePluginArray = function (plugins) {\n if (typeof plugins === 'undefined' || plugins === '') {\n return [];\n }\n return Array.isArray(plugins) ? plugins : plugins.split(' ');\n};\nvar mergePlugins = function (initPlugins, inputPlugins) {\n return normalizePluginArray(initPlugins).concat(normalizePluginArray(inputPlugins));\n};\nvar isNullOrUndefined = function (value) { return value === null || value === undefined; };\nexport { bindHandlers, bindModelHandlers, initEditor, isValidKey, uuid, isTextarea, mergePlugins, isNullOrUndefined };\n","/**\n * Copyright (c) 2018-present, Ephox, Inc.\n *\n * This source code is licensed under the Apache 2 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\nimport { uuid } from './Utils';\nvar createState = function () {\n return {\n listeners: [],\n scriptId: uuid('tiny-script'),\n scriptLoaded: false\n };\n};\nvar CreateScriptLoader = function () {\n var state = createState();\n var injectScriptTag = function (scriptId, doc, url, callback) {\n var scriptTag = doc.createElement('script');\n scriptTag.referrerPolicy = 'origin';\n scriptTag.type = 'application/javascript';\n scriptTag.id = scriptId;\n scriptTag.src = url;\n var handler = function () {\n scriptTag.removeEventListener('load', handler);\n callback();\n };\n scriptTag.addEventListener('load', handler);\n if (doc.head) {\n doc.head.appendChild(scriptTag);\n }\n };\n var load = function (doc, url, callback) {\n if (state.scriptLoaded) {\n callback();\n }\n else {\n state.listeners.push(callback);\n if (!doc.getElementById(state.scriptId)) {\n injectScriptTag(state.scriptId, doc, url, function () {\n state.listeners.forEach(function (fn) { return fn(); });\n state.scriptLoaded = true;\n });\n }\n }\n };\n // Only to be used by tests.\n var reinitialize = function () {\n state = createState();\n };\n return {\n load: load,\n reinitialize: reinitialize\n };\n};\nvar ScriptLoader = CreateScriptLoader();\nexport { ScriptLoader };\n","/**\n * Copyright (c) 2018-present, Ephox, Inc.\n *\n * This source code is licensed under the Apache 2 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\nexport var editorProps = {\n apiKey: String,\n cloudChannel: String,\n id: String,\n init: Object,\n initialValue: String,\n inline: Boolean,\n modelEvents: [String, Array],\n plugins: [String, Array],\n tagName: String,\n toolbar: [String, Array],\n value: String,\n disabled: Boolean,\n tinymceScriptSrc: String,\n outputFormat: {\n type: String,\n validator: function (prop) { return prop === 'html' || prop === 'text'; }\n },\n};\n","/**\n * Copyright (c) 2018-present, Ephox, Inc.\n *\n * This source code is licensed under the Apache 2 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport { ScriptLoader } from '../ScriptLoader';\nimport { getTinymce } from '../TinyMCE';\nimport { initEditor, isTextarea, mergePlugins, uuid, isNullOrUndefined } from '../Utils';\nimport { editorProps } from './EditorPropTypes';\nvar renderInline = function (h, id, tagName) {\n return h(tagName ? tagName : 'div', {\n attrs: { id: id }\n });\n};\nvar renderIframe = function (h, id) {\n return h('textarea', {\n attrs: { id: id },\n style: { visibility: 'hidden' }\n });\n};\nvar initialise = function (ctx) { return function () {\n var finalInit = __assign(__assign({}, ctx.$props.init), { readonly: ctx.$props.disabled, selector: \"#\" + ctx.elementId, plugins: mergePlugins(ctx.$props.init && ctx.$props.init.plugins, ctx.$props.plugins), toolbar: ctx.$props.toolbar || (ctx.$props.init && ctx.$props.init.toolbar), inline: ctx.inlineEditor, setup: function (editor) {\n ctx.editor = editor;\n editor.on('init', function (e) { return initEditor(e, ctx, editor); });\n if (ctx.$props.init && typeof ctx.$props.init.setup === 'function') {\n ctx.$props.init.setup(editor);\n }\n } });\n if (isTextarea(ctx.element)) {\n ctx.element.style.visibility = '';\n ctx.element.style.display = '';\n }\n getTinymce().init(finalInit);\n}; };\nexport var Editor = {\n props: editorProps,\n created: function () {\n this.elementId = this.$props.id || uuid('tiny-vue');\n this.inlineEditor = (this.$props.init && this.$props.init.inline) || this.$props.inline;\n this.initialized = false;\n },\n watch: {\n disabled: function () {\n this.editor.setMode(this.disabled ? 'readonly' : 'design');\n }\n },\n mounted: function () {\n this.element = this.$el;\n if (getTinymce() !== null) {\n initialise(this)();\n }\n else if (this.element && this.element.ownerDocument) {\n var channel = this.$props.cloudChannel ? this.$props.cloudChannel : '5';\n var apiKey = this.$props.apiKey ? this.$props.apiKey : 'no-api-key';\n var scriptSrc = isNullOrUndefined(this.$props.tinymceScriptSrc) ?\n \"https://cdn.tiny.cloud/1/\" + apiKey + \"/tinymce/\" + channel + \"/tinymce.min.js\" :\n this.$props.tinymceScriptSrc;\n ScriptLoader.load(this.element.ownerDocument, scriptSrc, initialise(this));\n }\n },\n beforeDestroy: function () {\n if (getTinymce() !== null) {\n getTinymce().remove(this.editor);\n }\n },\n deactivated: function () {\n var _a;\n if (!this.inlineEditor) {\n this.cache = this.editor.getContent();\n (_a = getTinymce()) === null || _a === void 0 ? void 0 : _a.remove(this.editor);\n }\n },\n activated: function () {\n if (!this.inlineEditor && this.initialized) {\n initialise(this)();\n }\n },\n render: function (h) {\n return this.inlineEditor ? renderInline(h, this.elementId, this.$props.tagName) : renderIframe(h, this.elementId);\n }\n};\n","/**\n * Copyright (c) 2018-present, Ephox, Inc.\n *\n * This source code is licensed under the Apache 2 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\nimport { Editor } from './components/Editor';\nexport default Editor;\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--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RichTextEditor.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--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RichTextEditor.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./RichTextEditor.vue?vue&type=template&id=5133384c&scoped=true&\"\nimport script from \"./RichTextEditor.vue?vue&type=script&lang=ts&\"\nexport * from \"./RichTextEditor.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./RichTextEditor.vue?vue&type=style&index=0&id=5133384c&lang=scss&scoped=true&\"\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 \"5133384c\",\n null\n \n)\n\nexport default component.exports","// extracted by mini-css-extract-plugin\nmodule.exports = {\"chartPrimary\":\"#0966ce\",\"chartRed\":\"#ff848b\",\"chartGreen\":\"#87e1c1\",\"chartGray\":\"#d9e2ea\",\"chartYellow\":\"#f5d187\",\"chartGrayCold\":\"#c3c3e5\",\"chartSalesPrimary\":\"#2859a4\",\"chartSalesSecondary\":\"#3bb3d4\",\"chartRechargesPrimary\":\"#60daaf\",\"chartRechargesSecondary\":\"#99ffdb\",\"chartColorDark\":\"#0966ce\",\"chartColorDarkContrast\":\"#6ecbff\",\"chartColorLight\":\"#c3c3e5\",\"chartTemperatureDataset1\":\"#0966ce\",\"chartTemperatureDataset2\":\"#6ecbff\",\"chartTemperatureDataset3\":\"#f5d187\",\"chartNeutral\":\"#d9e2ea\",\"chartWarnings\":\"#f5d187\",\"chartWarningsSecondary\":\"#f7daa1\",\"chartCriticals\":\"#ff848b\",\"chartCriticalsSecondary\":\"#ff999e\",\"chartOposErrors\":\"#374357\",\"chartOposErrorsSecondary\":\"#374357\"};","var fails = require('../internals/fails');\n\n// check the existence of a method, lowercase\n// of a tag and escaping quotes in arguments\nmodule.exports = function (METHOD_NAME) {\n return fails(function () {\n var test = ''[METHOD_NAME]('\"');\n return test !== test.toLowerCase() || test.split('\"').length > 3;\n });\n};\n","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BackNavigationToolbar.vue?vue&type=style&index=0&id=8a8411b2&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"toolbar\"},[_c('div',{staticClass:\"toolbar__title\"},[(_vm.allowBack)?_c('i',{staticClass:\"icon-arrow-left\",on:{\"click\":function($event){return _vm.goToPage()}}}):_vm._e(),_c('span',[_vm._v(_vm._s(_vm.title))])]),_c('div',{staticClass:\"toolbar__actions\"},[_vm._t(\"actions\")],2)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","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--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BackNavigationToolbar.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--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BackNavigationToolbar.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./BackNavigationToolbar.vue?vue&type=template&id=8a8411b2&scoped=true&\"\nimport script from \"./BackNavigationToolbar.vue?vue&type=script&lang=ts&\"\nexport * from \"./BackNavigationToolbar.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./BackNavigationToolbar.vue?vue&type=style&index=0&id=8a8411b2&lang=scss&scoped=true&\"\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 \"8a8411b2\",\n null\n \n)\n\nexport default component.exports","/**\n * Copyright (c) 2018-present, Ephox, Inc.\n *\n * This source code is licensed under the Apache 2 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\nvar getGlobal = function () { return (typeof window !== 'undefined' ? window : global); };\nvar getTinymce = function () {\n var global = getGlobal();\n return global && global.tinymce ? global.tinymce : null;\n};\nexport { getTinymce };\n","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RichTextEditor.vue?vue&type=style&index=0&id=5133384c&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-layout',{attrs:{\"column\":\"\"}},[_c('n-back-navigation-toolbar',{attrs:{\"title\":_vm.blogPost.title}}),_c('n-card-container',[_c('n-card',{attrs:{\"type\":\"xxl\"}},[_c('div',{attrs:{\"slot\":\"\"},slot:\"default\"},[_c('v-container',{staticClass:\"blogpost\",attrs:{\"fluid\":\"\"}},[_c('n-blog-post-visibility-select',{model:{value:(_vm.postVisibility),callback:function ($$v) {_vm.postVisibility=$$v},expression:\"postVisibility\"}}),_c('div',{staticClass:\"d-flex flex-wrap justify-content-around gap-2 mb-4\",staticStyle:{\"gap\":\"2rem\"}},[(!!_vm.postImageFileName)?_c('v-img',{staticClass:\"d-none d-sm-flex\",attrs:{\"max-height\":\"250\",\"max-width\":\"250\",\"alt\":_vm.postImageFileName,\"src\":_vm.blogPost.mediaUrl}}):_vm._e(),_c('div',{staticClass:\"flex-grow-1\"},[_c('n-file-input',{attrs:{\"label\":\"blog-post.upload-media\",\"accept\":'.png,.jpg,.jpeg,.gif,.webp'},on:{\"change\":_vm.setFormModified},model:{value:(_vm.postImageFile),callback:function ($$v) {_vm.postImageFile=$$v},expression:\"postImageFile\"}}),(!!_vm.postImageFileName)?_c('v-chip',{attrs:{\"link\":\"\"}},[_c('a',{attrs:{\"href\":_vm.blogPost.mediaUrl,\"target\":\"_blank\"}},[_vm._v(_vm._s(_vm.postImageFileName))]),_c('v-btn',{staticClass:\"ml-2\",attrs:{\"href\":_vm.blogPost.mediaUrl,\"target\":\"_blank\",\"icon\":\"\",\"x-small\":\"\"}},[_c('v-icon',[_vm._v(\"mdi-download\")])],1)],1):_vm._e()],1)],1),_c('v-tabs',{on:{\"change\":_vm.tabChanged},model:{value:(_vm.tabs),callback:function ($$v) {_vm.tabs=$$v},expression:\"tabs\"}},[_c('v-tab',[_vm._v(\" \"+_vm._s(_vm.$t('languages.it'))+\" \")]),_c('v-tab',[_vm._v(\" \"+_vm._s(_vm.$t('languages.en'))+\" \")]),_c('v-tab',[_vm._v(\" \"+_vm._s(_vm.$t('languages.es'))+\" \")]),_c('v-tab',[_vm._v(\" \"+_vm._s(_vm.$t('languages.fr'))+\" \")]),_c('v-tab',[_vm._v(\" \"+_vm._s(_vm.$t('languages.de'))+\" \")])],1),_c('v-tabs-items',{model:{value:(_vm.tabs),callback:function ($$v) {_vm.tabs=$$v},expression:\"tabs\"}},[_c('v-tab-item',[_c('n-text-input',{staticStyle:{\"margin-top\":\"1em\"},attrs:{\"label\":\"blog-post.title\",\"rules\":_vm.requiredRules.concat( _vm.maxLengthRules),\"required\":\"\"},model:{value:(_vm.blogPost.title),callback:function ($$v) {_vm.$set(_vm.blogPost, \"title\", $$v)},expression:\"blogPost.title\"}}),_c('n-text-input',{attrs:{\"label\":\"blog-post.slug\",\"rules\":_vm.maxLengthRules},model:{value:(_vm.blogPost.slug),callback:function ($$v) {_vm.$set(_vm.blogPost, \"slug\", $$v)},expression:\"blogPost.slug\"}}),_c('n-text-input',{attrs:{\"label\":\"blog-post.excerpt\",\"rules\":_vm.maxLengthRules},model:{value:(_vm.blogPost.excerpt),callback:function ($$v) {_vm.$set(_vm.blogPost, \"excerpt\", $$v)},expression:\"blogPost.excerpt\"}}),_c('span',{staticClass:\"blogpost__content-label\"},[_vm._v(_vm._s(_vm.$t('blog-post.content')))]),(_vm.renderRTE)?_c('n-rich-text-editor',{attrs:{\"text\":_vm.blogPost.content,\"cancel-button\":true,\"delete-button\":_vm.showDeleteButton(),\"save-disabled\":!_vm.validPost()},on:{\"cancel\":_vm.cancel,\"delete\":function($event){return _vm.openConfirmDelete()},\"save\":function($event){return _vm.savePost($event, 'it')},\"input\":function($event){return _vm.updateMap($event, 'it')}}}):_vm._e()],1),_c('v-tab-item',[_c('n-text-input',{staticStyle:{\"margin-top\":\"1em\"},attrs:{\"label\":\"blog-post.title\",\"rules\":_vm.requiredRules.concat( _vm.maxLengthRules),\"required\":\"\"},model:{value:(_vm.blogPost.title),callback:function ($$v) {_vm.$set(_vm.blogPost, \"title\", $$v)},expression:\"blogPost.title\"}}),_c('n-text-input',{attrs:{\"label\":\"blog-post.slug\",\"rules\":_vm.maxLengthRules},model:{value:(_vm.blogPost.slug),callback:function ($$v) {_vm.$set(_vm.blogPost, \"slug\", $$v)},expression:\"blogPost.slug\"}}),_c('n-text-input',{attrs:{\"label\":\"blog-post.excerpt\",\"rules\":_vm.maxLengthRules},model:{value:(_vm.blogPost.excerpt),callback:function ($$v) {_vm.$set(_vm.blogPost, \"excerpt\", $$v)},expression:\"blogPost.excerpt\"}}),_c('span',{staticClass:\"blogpost__content-label\"},[_vm._v(_vm._s(_vm.$t('blog-post.content')))]),(_vm.renderRTE)?_c('n-rich-text-editor',{attrs:{\"text\":_vm.blogPost.content,\"cancel-button\":true,\"delete-button\":_vm.showDeleteButton(),\"save-disabled\":!_vm.validPost()},on:{\"cancel\":_vm.cancel,\"delete\":function($event){return _vm.openConfirmDelete()},\"save\":function($event){return _vm.savePost($event, 'en')},\"input\":function($event){return _vm.updateMap($event, 'en')}}}):_vm._e()],1),_c('v-tab-item',[_c('n-text-input',{staticStyle:{\"margin-top\":\"1em\"},attrs:{\"label\":\"blog-post.title\",\"rules\":_vm.requiredRules.concat( _vm.maxLengthRules),\"required\":\"\"},model:{value:(_vm.blogPost.title),callback:function ($$v) {_vm.$set(_vm.blogPost, \"title\", $$v)},expression:\"blogPost.title\"}}),_c('n-text-input',{attrs:{\"label\":\"blog-post.slug\",\"rules\":_vm.maxLengthRules},model:{value:(_vm.blogPost.slug),callback:function ($$v) {_vm.$set(_vm.blogPost, \"slug\", $$v)},expression:\"blogPost.slug\"}}),_c('n-text-input',{attrs:{\"label\":\"blog-post.excerpt\",\"rules\":_vm.maxLengthRules},model:{value:(_vm.blogPost.excerpt),callback:function ($$v) {_vm.$set(_vm.blogPost, \"excerpt\", $$v)},expression:\"blogPost.excerpt\"}}),_c('span',{staticClass:\"blogpost__content-label\"},[_vm._v(_vm._s(_vm.$t('blog-post.content')))]),(_vm.renderRTE)?_c('n-rich-text-editor',{attrs:{\"text\":_vm.blogPost.content,\"cancel-button\":true,\"delete-button\":_vm.showDeleteButton(),\"save-disabled\":!_vm.validPost()},on:{\"cancel\":_vm.cancel,\"delete\":function($event){return _vm.openConfirmDelete()},\"save\":function($event){return _vm.savePost($event, 'es')},\"input\":function($event){return _vm.updateMap($event, 'es')}}}):_vm._e()],1),_c('v-tab-item',[_c('n-text-input',{staticStyle:{\"margin-top\":\"1em\"},attrs:{\"label\":\"blog-post.title\",\"rules\":_vm.requiredRules.concat( _vm.maxLengthRules),\"required\":\"\"},model:{value:(_vm.blogPost.title),callback:function ($$v) {_vm.$set(_vm.blogPost, \"title\", $$v)},expression:\"blogPost.title\"}}),_c('n-text-input',{attrs:{\"label\":\"blog-post.slug\",\"rules\":_vm.maxLengthRules},model:{value:(_vm.blogPost.slug),callback:function ($$v) {_vm.$set(_vm.blogPost, \"slug\", $$v)},expression:\"blogPost.slug\"}}),_c('n-text-input',{attrs:{\"label\":\"blog-post.excerpt\",\"rules\":_vm.maxLengthRules},model:{value:(_vm.blogPost.excerpt),callback:function ($$v) {_vm.$set(_vm.blogPost, \"excerpt\", $$v)},expression:\"blogPost.excerpt\"}}),_c('span',{staticClass:\"blogpost__content-label\"},[_vm._v(_vm._s(_vm.$t('blog-post.content')))]),(_vm.renderRTE)?_c('n-rich-text-editor',{attrs:{\"text\":_vm.blogPost.content,\"cancel-button\":true,\"delete-button\":_vm.showDeleteButton(),\"save-disabled\":!_vm.validPost()},on:{\"cancel\":_vm.cancel,\"delete\":function($event){return _vm.openConfirmDelete()},\"save\":function($event){return _vm.savePost($event, 'fr')},\"input\":function($event){return _vm.updateMap($event, 'fr')}}}):_vm._e()],1),_c('v-tab-item',[_c('n-text-input',{staticStyle:{\"margin-top\":\"1em\"},attrs:{\"label\":\"blog-post.title\",\"rules\":_vm.requiredRules.concat( _vm.maxLengthRules),\"required\":\"\"},model:{value:(_vm.blogPost.title),callback:function ($$v) {_vm.$set(_vm.blogPost, \"title\", $$v)},expression:\"blogPost.title\"}}),_c('n-text-input',{attrs:{\"label\":\"blog-post.slug\",\"rules\":_vm.maxLengthRules},model:{value:(_vm.blogPost.slug),callback:function ($$v) {_vm.$set(_vm.blogPost, \"slug\", $$v)},expression:\"blogPost.slug\"}}),_c('n-text-input',{attrs:{\"label\":\"blog-post.excerpt\",\"rules\":_vm.maxLengthRules},model:{value:(_vm.blogPost.excerpt),callback:function ($$v) {_vm.$set(_vm.blogPost, \"excerpt\", $$v)},expression:\"blogPost.excerpt\"}}),_c('span',{staticClass:\"blogpost__content-label\"},[_vm._v(_vm._s(_vm.$t('blog-post.content')))]),(_vm.renderRTE)?_c('n-rich-text-editor',{attrs:{\"text\":_vm.blogPost.content,\"cancel-button\":true,\"delete-button\":_vm.showDeleteButton(),\"save-disabled\":!_vm.validPost()},on:{\"cancel\":_vm.cancel,\"delete\":function($event){return _vm.openConfirmDelete()},\"save\":function($event){return _vm.savePost($event, 'de')},\"input\":function($event){return _vm.updateMap($event, 'de')}}}):_vm._e()],1)],1),_c('n-modal',{ref:\"confirmDeleteBlogPost\"})],1)],1)])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export enum BlogPostVisibility {\n Hidden = 0,\n Published = 1,\n}\n","import { BlogPostVisibility } from './blogPostVisibility';\n\nexport class BlogPost {\n public id: string = '';\n public visibility: BlogPostVisibility = BlogPostVisibility.Hidden;\n public title: string | undefined;\n public slug: string | undefined;\n public excerpt: string | undefined;\n public content: string = '';\n public mediaUrl: string = '';\n public creationDate: Date | string | undefined;\n public updateDate: Date | string | undefined;\n}\n","export class BlogPostContent {\n public title: string = '';\n public slug: string = '';\n public excerpt: string = '';\n public text: string = '';\n public lang: string = '';\n}\n","import { BlogPostContent } from './blogPostContent';\nimport { BlogPostVisibility } from './blogPostVisibility';\n\nexport class BlogPostCreateRequest {\n public visibility: BlogPostVisibility | undefined;\n public mediaFile: any | undefined;\n public content: BlogPostContent[] = [];\n}\n","import { BlogPostVisibility } from './blogPostVisibility';\n\nexport class BlogPostUpdateRequest {\n public visibility: BlogPostVisibility | undefined;\n public title: string | undefined;\n public slug: string | undefined;\n public excerpt: string | undefined;\n public content: string | undefined;\n public mediaFile: any | undefined;\n public lang: string | undefined;\n}\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--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BlogPostForm.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--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BlogPostForm.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./BlogPostForm.vue?vue&type=template&id=3f678ce7&scoped=true&\"\nimport script from \"./BlogPostForm.vue?vue&type=script&lang=ts&\"\nexport * from \"./BlogPostForm.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./BlogPostForm.vue?vue&type=style&index=0&id=3f678ce7&lang=scss&scoped=true&\"\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 \"3f678ce7\",\n null\n \n)\n\nexport default component.exports","/**\n * This method converts an object to form data.\n * This is useful when we want to prepare a payload for a multipart/form-data request.\n * It manages arrays and nested objects.\n *\n * @param data - The object.\n * @param formData - The form data for recursive calls.\n * @param namespace - The key prefix for nested items.\n *\n * @returns The form data.\n */\nexport const objectToFormData = (data: any, formData?: FormData, namespace?: string): FormData => {\n const fd = formData ?? new FormData();\n let formKey: string;\n for (const key in data) {\n if (Object.prototype.hasOwnProperty.call(data, key)) {\n if (namespace) {\n formKey = namespace + '[' + key + ']';\n } else {\n formKey = key;\n }\n if (data[key] instanceof Array) {\n data[key].forEach((element: any, index: any) => {\n const tempFormKey = `${formKey}[${index}]`;\n objectToFormData(element, fd, tempFormKey);\n });\n } else if (typeof data[key] === 'object' && !(data[key] instanceof File)) {\n objectToFormData(data[key], fd, key);\n } else {\n fd.append(formKey, data[key]);\n }\n }\n }\n return fd;\n};\n","import axios from 'axios';\nimport * as endpoints from '@/services/endpoints.service';\nimport { BlogPostFilter } from '@/models/cogeskey-portal/blogPostFilter';\nimport { BlogPostCreateRequest } from '@/models/cogeskey-portal/blogPostCreateRequest';\nimport { BlogPostUpdateRequest } from '@/models/cogeskey-portal/blogPostUpdateRequest';\nimport { CogesKeyContact } from '@/models/cogeskey-portal/cogesKeyContact';\nimport { CogesKeyMerchantDataRequest } from '@/models/cogeskey-portal/cogesKeyMerchantDataRequest';\nimport { CogesKeyPrivacy } from '@/models/cogeskey-portal/cogesKeyPrivacy';\nimport { CogesKeyServices } from '@/models/cogeskey-portal/cogesKeyServices';\nimport BasePaginationService from '../base/basepagination.service';\nimport { objectToFormData } from '@/utils/axios-utils/formdata.utils';\n\nclass CogesKeyPortalService extends BasePaginationService {\n\n // BLOG POSTS\n public getBlogPostsPaged(\n url: string,\n size: number,\n sort: string,\n sortDir: string,\n filter: BlogPostFilter,\n filtersChanged: boolean,\n page?: number,\n ) {\n\n return this.basePagination(\n url,\n endpoints.COGESKEY_BLOG_POSTS_PAGED(size),\n sort,\n sortDir,\n Object.assign({}, filter),\n filtersChanged,\n page,\n );\n }\n\n public getBlogPost(blogPostId: string, lang: string = 'en') {\n return axios.get(endpoints.COGESKEY_BLOG_POST_BY_ID_AND_LANG(blogPostId, lang));\n }\n\n public createBlogPost(data: BlogPostCreateRequest) {\n const config = {\n headers: {\n 'content-type': 'multipart/form-data',\n },\n };\n return axios.post(\n endpoints.COGESKEY_BLOG_POSTS(),\n objectToFormData(data),\n config,\n );\n }\n\n public updateBlogPost(blogPostId: string, lang: string, data: BlogPostUpdateRequest) {\n const config = {\n headers: {\n 'content-type': 'multipart/form-data',\n },\n };\n const formData = new FormData();\n for (const key in data) {\n if (Object.prototype.hasOwnProperty.call(data, key)) {\n const element = data[key];\n formData.append(key, element);\n }\n }\n return axios.put(endpoints.COGESKEY_BLOG_POST_BY_ID_AND_LANG(blogPostId, lang), formData, config);\n }\n\n public deleteBlogPost(blogPostId: string) {\n return axios.delete(endpoints.COGESKEY_BLOG_POST_BY_ID(blogPostId));\n }\n\n // MERCHANT EXTRA DATA\n public getConfig(merchantId: string) {\n return axios.get(endpoints.COGESKEY_MERCHANT_EXTRA_DATA(merchantId));\n }\n\n public updateConfig(merchantId: string, data: CogesKeyMerchantDataRequest) {\n const config = {\n headers: {\n 'content-type': 'multipart/form-data',\n },\n };\n const formData = new FormData();\n for (const key in data) {\n if (Object.prototype.hasOwnProperty.call(data, key)) {\n const element = data[key];\n formData.append(key, element);\n }\n }\n return axios.put(endpoints.COGESKEY_MERCHANT_EXTRA_DATA(merchantId), formData, config);\n }\n\n // MERCHANT CONTACTS\n public getContacts(merchantId: string) {\n return axios.get(endpoints.COGESKEY_MERCHANT_CONTACTS(merchantId));\n }\n\n public createContact(merchantId: string, contact: CogesKeyContact) {\n return axios.post(endpoints.COGESKEY_MERCHANT_CONTACTS(merchantId), contact);\n }\n\n public updateContact(merchantId: string, contact: CogesKeyContact) {\n return axios.put(endpoints.COGESKEY_MERCHANT_CONTACT_BY_ID(merchantId, contact.id), contact);\n }\n\n public deleteContact(merchantId: string, contactId: string) {\n return axios.delete(endpoints.COGESKEY_MERCHANT_CONTACT_BY_ID(merchantId, contactId));\n }\n\n // MERCHANT PRIVACY TEXTS\n public getPrivacyTexts(merchantId: string) {\n return axios.get(endpoints.COGESKEY_MERCHANT_PRIVACY_TEXTS(merchantId));\n }\n\n public updatePrivacyText(merchantId: string, lang: string, privacy: CogesKeyPrivacy) {\n return axios.put(endpoints.COGESKEY_MERCHANT_PRIVACY_BY_LANG(merchantId, lang), privacy);\n }\n\n public deletePrivacyText(merchantId: string, lang: string) {\n return axios.delete(endpoints.COGESKEY_MERCHANT_PRIVACY_BY_LANG(merchantId, lang));\n }\n\n // MERCHANT SERVICES\n public getServices(merchantId: string) {\n return axios.get(endpoints.COGESKEY_MERCHANT_SERVICES(merchantId));\n }\n\n public updateServices(merchantId: string, settings: CogesKeyServices) {\n return axios.put(endpoints.COGESKEY_MERCHANT_SERVICES(merchantId), settings);\n }\n}\n\nexport const cogesKeyPortalService = new CogesKeyPortalService();\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TextInput.vue?vue&type=style&index=0&lang=scss&\""],"sourceRoot":""}