{"version":3,"sources":["webpack:///./src/views/networks/messages/NetworkMessageForm.vue?ca58","webpack:///./src/components/forms/ValidationError.vue","webpack:///./src/components/forms/ValidationError.vue?88b1","webpack:///src/components/forms/ValidationError.vue","webpack:///./src/components/forms/ValidationError.vue?7712","webpack:///./src/views/networks/messages/NetworkMessageForm.vue?3755","webpack:///./src/components/commons/Media/Selector.vue","webpack:///./src/components/commons/Media/Selector.vue?007e","webpack:///src/components/commons/Media/Selector.vue","webpack:///./src/components/commons/Media/Selector.vue?f396","webpack:///./src/views/networks/messages/NetworkMessageForm.vue?a36d","webpack:///src/views/networks/messages/NetworkMessageForm.vue","webpack:///./src/views/networks/messages/Create.vue?dcc6","webpack:///src/views/networks/messages/Create.vue","webpack:///./src/views/networks/messages/NetworkMessageForm.vue?28e4","webpack:///./src/views/networks/messages/NetworkMessageForm.vue","webpack:///./src/views/networks/messages/Create.vue?da60","webpack:///./src/views/networks/messages/Create.vue"],"names":["name","props","errors","type","Array","default","data","computed","validationErrors","Object","values","flat","component","_vm","this","_c","_self","_l","value","key","staticClass","attrs","_v","_s","$t","_e","components","vSelect","networks","allowMultiple","Boolean","existingMedia","videoOnly","media","selectedMedia","managedNetworks","mounted","_this","$store","dispatch","then","methods","searchMedia","debounce","searchQuery","_this2","busy","length","splice","params","query","media_type","for_selector","network_id","map","n","id","toString","$http","get","resp","orderBy","results","forEach","m1","find","m2","slug","push","limit","sortedMedia","m","on","$event","$emit","scopedSlots","_u","fn","option","title","proxy","model","callback","$$v","expression","NetworkMediaSelector","ValidationError","DatePicker","Editor","EmailEditor","network","message","reusedContent","String","tinyMceApiKey","process","editors","label","wantToAttachMedia","form","initialForm","files","timezones","s3Params","options","uploadFinished","minDate","Date","maxDate","message_preview","message_preview_html","formType","templateOptions","getTemplates","messageFormErrors","mail_setting","upcomingMeetings","upcomingMeetingsCalendar","upcoming_meetings","home","window","location","origin","path","split","$route","fullPath","selectedVariable","variableOptions","clickHandler","concat","_toConsumableArray","vanity_link","customTimezone","showMessageEditHistoryModal","iftinyEditor","ifunlayerEditor","formErrors","state","formUpdated","JSON","stringify","watch","init","editData","unlayerEditorReady","$refs","emailEditor","editor","registerCallback","file","done","uploadImage","attachments","loadDesign","design","handleVariableClick","variable","copyVariable","copy","content","msg","showToast","addMeeting","meeting","addMeetingToCalendar","addVanityLink","link","toggleMeetings","utcToLocal","dt","moment","utc","local","momentFormat","momentShortenedFormat","format","setDate","post","setupUploadForm","catch","err","$bvModal","msgBoxOk","meetings","upcomingWithOccurrences","inProgressWithOccurrences","browserTZ","Intl","DateTimeFormat","resolvedOptions","timeZone","timezone","tz","local_timezone","s3","url","formAttributes","action","maxFilesize","autoProcessQueue","maxFiles","acceptedFiles","_this$reusedContent","attached_media_id","sent_at_date","add","sent_at_time","schedule_message","mail_from_text","default_from_name","$message","is_scheduled","scheduled_on","mediaSelectedEvent","submitRequest","requestAction","_this3","isSave","eventAction","_method","exportHtml","sendMessageAction","_this4","href","error","showServerError","showConfirmPrompt","uploadImageTinyMceBlob","blobInfo","success","_this5","_asyncToGenerator","_regeneratorRuntime","mark","_callee","wrap","_context","prev","next","blob","stop","requestType","_this6","_callee2","remoteHost","properPath","formData","axios_instance","_context2","uploadPathPrefix","FormData","formInputs","append","size","axios","create","headers","Authorization","loadProgressBar","attributes","_this7","res","setTemplateToMessage","template","showMessagePreview","_this8","show","hide","onEditorChange","_this9","includes","response","status","parse","request","NetworkMessageForm","staticStyle","directives","rawName","domProps","isArray","_i","$$a","$$el","target","$$c","checked","$$i","slice","composing","$set","members_count","index","_q","preventDefault","history","ref","height","menubar","images_upload_handler","automatic_uploads","file_picker_types","browser_spellcheck","paste_as_text","relative_urls","remove_script_host","document_base_url","plugins","toolbar","image_advtab","image_class_list","_m","start","date","reusedMessage","formLeaveWithoutSave","appendData","newV","refresh","beforeRouteLeave","to","confirm","_vm$reusedMessage","$router"],"mappings":"4GAAA,W,gECAA,ICAuW,ECUxV,CACfA,KAAA,kBACAC,MAAA,CACAC,OAAA,CACAC,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ACK,YAAY,qBAAqB,CAACL,EAAG,qBAAqB,CAACM,MAAM,CAAC,QAAUR,EAAI6E,QAAQ,QAAU7E,EAAI8E,QAAQ,cAAiC,QAAlBwO,EAACtT,EAAI8S,qBAAa,IAAAQ,OAAA,EAAjBA,EAAmBnK,SAASxF,GAAG,CAAC,eAAe3D,EAAI8H,YAAY,8BAA8B,SAASlE,GAAQ,OAAO5D,EAAIuT,QAAQhQ,KAAK,aAAevD,EAAIsD,KAAO,kBAAkB,OAAgBtD,EAAIY,OAElrB,IDSpB,EACA,KACA,KACA,MAIa,Y","file":"assets/js/chunk-d6a3e1ac.386a78a7.js","sourcesContent":["export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NetworkMessageForm.vue?vue&type=style&index=0&id=dacaf8aa&prod&scoped=true&lang=css\"","var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.validationErrors)?_c('div',_vm._l((_vm.validationErrors),function(value){return _c('div',{key:value,staticClass:\"alert alert-danger alert-dismissible fade show\",attrs:{\"role\":\"alert\"}},[_c('h5',{staticClass:\"alert-heading\"},[_vm._v(_vm._s(_vm.$t('ValidationError.validation-error')))]),_vm._v(\" \"+_vm._s(value)+\" \"),_c('button',{staticClass:\"btn-close\",attrs:{\"id\":\"close\",\"data-test\":\"close\",\"type\":\"button\",\"data-bs-dismiss\":\"alert\",\"aria-label\":\"Close\"}})])}),0):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ValidationError.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ValidationError.vue?vue&type=script&lang=js\"","<template>\n <div v-if=\"validationErrors\">\n <div v-for=\"value in validationErrors\" :key=\"value\" class=\"alert alert-danger alert-dismissible fade show\" role=\"alert\">\n <h5 class=\"alert-heading\">{{ $t('ValidationError.validation-error') }}</h5>\n {{ value }}\n <button id=\"close\" data-test=\"close\" type=\"button\" data-bs-dismiss=\"alert\" aria-label=\"Close\" class=\"btn-close\"></button>\n </div>\n </div>\n</template>\n<script>\nexport default {\n name: 'ValidationError',\n props: {\n errors: {\n type: Array,\n default: null,\n },\n },\n data() {\n return {};\n },\n computed: {\n validationErrors() {\n let errors = Object.values(this.errors);\n errors = errors.flat();\n return errors;\n },\n },\n};\n</script>\n","import { render, staticRenderFns } from \"./ValidationError.vue?vue&type=template&id=3134d8f8\"\nimport script from \"./ValidationError.vue?vue&type=script&lang=js\"\nexport * from \"./ValidationError.vue?vue&type=script&lang=js\"\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","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NetworkMessageForm.vue?vue&type=style&index=1&id=dacaf8aa&prod&lang=css\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col px-0\"},[_c('v-select',{attrs:{\"id\":\"selected_media\",\"data-test\":\"selected_media\",\"options\":_vm.media,\"label\":\"title\",\"placeholder\":_vm.$t('network.networkForm.selectExistingMedia'),\"filterable\":false,\"multiple\":_vm.allowMultiple},on:{\"input\":function($event){return _vm.$emit('media-selected', _vm.selectedMedia)},\"search\":_vm.searchMedia},scopedSlots:_vm._u([{key:\"option\",fn:function(option){return [_vm._v(\" \"+_vm._s(option.title)+\" \")]}},{key:\"no-options\",fn:function(){return [(_vm.busy)?_c('span',{staticClass:\"text-center\"},[_c('i',{staticClass:\"fas fa-2x fa-spinner mt-2\"})]):_c('span',[(_vm.selectedMedia.length == 0 || _vm.selectedMedia == '')?_c('span',[_vm._v(_vm._s(_vm.$t('sorry-there-are-no-matching-options')))]):_c('span',[_vm._v(\"Select media to add to this collection\")])])]},proxy:true}]),model:{value:(_vm.selectedMedia),callback:function ($$v) {_vm.selectedMedia=$$v},expression:\"selectedMedia\"}})],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Selector.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Selector.vue?vue&type=script&lang=js\"","<template>\n <div class=\"row\">\n <div class=\"col px-0\">\n <v-select\n id=\"selected_media\"\n v-model=\"selectedMedia\"\n data-test=\"selected_media\"\n :options=\"media\"\n label=\"title\"\n :placeholder=\"$t('network.networkForm.selectExistingMedia')\"\n :filterable=\"false\"\n :multiple=\"allowMultiple\"\n @input=\"$emit('media-selected', selectedMedia)\"\n @search=\"searchMedia\"\n >\n <template v-slot:option=\"option\">\n {{ option.title }}\n </template>\n <template v-slot:no-options>\n <span v-if=\"busy\" class=\"text-center\">\n <i class=\"fas fa-2x fa-spinner mt-2\"></i>\n </span>\n <span v-else>\n <span v-if=\"selectedMedia.length == 0 || selectedMedia == ''\">{{ $t('sorry-there-are-no-matching-options') }}</span>\n <span v-else>Select media to add to this collection</span>\n </span>\n </template>\n </v-select>\n </div>\n </div>\n</template>\n<script>\nimport { debounce, orderBy } from 'lodash';\nimport vSelect from 'vue-select';\nimport 'vue-select/dist/vue-select.css';\n\nexport default {\n components: {\n vSelect,\n },\n props: {\n networks: {\n type: Array,\n default: null,\n },\n allowMultiple: {\n type: Boolean,\n default: false,\n },\n existingMedia: {\n type: Array,\n default: null,\n },\n videoOnly: {\n type: Boolean,\n default: false,\n },\n },\n data() {\n return {\n media: [],\n selectedMedia: this.existingMedia ? this.existingMedia : null,\n managedNetworks: null,\n };\n },\n mounted() {\n this.$store.dispatch('loadManagedNetworks').then(networks => {\n this.managedNetworks = networks;\n });\n },\n methods: {\n searchMedia: debounce(function (searchQuery) {\n this.busy = true;\n if (searchQuery.length === 0) {\n return;\n }\n if (this.selectedMedia && this.selectedMedia.length > 0) {\n this.existingMedia.splice(0);\n\n let params = {\n query: searchQuery,\n media_type: this.videoOnly ? 'video' : 'media',\n for_selector: true,\n network_id: this.managedNetworks.map(n => n.id).toString(),\n };\n this.$http.get('networks/feed', { params }).then(resp => {\n this.media.splice(0);\n const sortedResults = orderBy(resp.data.results, 'title');\n\n sortedResults.forEach(m1 => {\n let mediaExistsInCollection = this.existingMedia.find(m2 => m1.slug === m2.slug);\n if (!mediaExistsInCollection) {\n this.media.push(m1);\n }\n });\n this.busy = false;\n });\n } else {\n let params = {\n limit: this.videoOnly ? 1 : 5,\n query: searchQuery,\n media_type: this.videoOnly ? 'video' : ['video', 'file'],\n for_selector: true,\n };\n\n if (this.networks) {\n params.network_id = this.networks.map(n => n.id).toString();\n }\n\n this.$http.get('networks/feed', { params }).then(resp => {\n this.media.splice(0);\n const sortedMedia = orderBy(resp.data.results, 'title');\n\n sortedMedia.forEach(m => this.media.push(m));\n if (sortedMedia.length === 0) {\n this.busy = false;\n }\n });\n }\n }, 600),\n },\n};\n</script>\n","import { render, staticRenderFns } from \"./Selector.vue?vue&type=template&id=812fc8b0\"\nimport script from \"./Selector.vue?vue&type=script&lang=js\"\nexport * from \"./Selector.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NetworkMessageForm.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NetworkMessageForm.vue?vue&type=script&lang=js\"","<template>\n <div class=\"row input-section message-form\">\n <div class=\"col-md-12 col-lg-12 col-sm-12\">\n <div class=\"row p-0\">\n <!-- Breadcrumbs -->\n <nav aria-label=\"breadcrumb\" class=\"col-md-6 col-lg-6 col-sm-6 pt-4\" style=\"padding-left: unset;\">\n <ol class=\"breadcrumb align-middle\">\n <li class=\"breadcrumb-item\">\n <a :href=\"'/networks/' + network.slug + '/messages'\" class=\"text-primary fw-bold\">\n {{ $t('announcements') }}\n </a>\n </li>\n <li class=\"breadcrumb-item\">\n <a class=\"text-secondary fw-bold\">\n <span v-if=\"path[4] == 'create'\">{{ $t('network.messages.CreateMessage') }}</span>\n <span v-else>{{ $t('network.messages.UpdateMessage') }}</span>\n </a>\n </li>\n </ol>\n </nav>\n <div class=\"col-md-6 col-lg-6 col-sm-6 pt-4\">\n <div class=\"form-check form-switch float-end\">\n <input id=\"mail_from\" v-model=\"mail_setting\" data-test=\"mail_from\" type=\"checkbox\" class=\"form-check-input\" />\n <label for=\"mail_from\" class=\"form-check-label form-check-lg\">{{ $t('network.message.modify-mail-setting') }}</label>\n </div>\n </div>\n </div>\n </div>\n <ValidationError v-if=\"messageFormErrors\" :errors=\"messageFormErrors\"></ValidationError>\n <div class=\"col-md-12 col-lg-12 col-sm-12\">\n <!--Mail Setting start-->\n <div v-if=\"mail_setting\" class=\"form-group py-2\">\n <label for=\"mail_from_text\">{{ $t('NetworkMessageForm.from') }}</label>\n <input id=\"mail_from_text\" v-model=\"form.mail_from_text\" data-test=\"mail_from_text\" type=\"text\" class=\"form-control\" />\n </div>\n <div v-if=\"mail_setting\" class=\"form-group py-2\">\n <label for=\"mailTo\">{{ $t('NetworkMessageForm.mail-to') }}</label>\n <button id=\"mailTo\" data-test=\"mailTo\" type=\"button\" class=\"btn btn-primary btn-sm ms-3\">\n {{ this.network.name }} : {{ $t('network.tabMembers') }}\n <span class=\"badge bg-light ms-1\">{{ this.network.members_count }}</span>\n </button>\n </div>\n <!--Mail Setting end-->\n <div class=\"row\">\n <div class=\"col-md-8 ps-0\">\n <div class=\"form-group py-2\">\n <label for=\"title\" class=\"fw-bold\">{{ $t('network.networkForm.title') }}</label>\n <input id=\"title\" v-model=\"form.title\" data-test=\"title\" type=\"text\" :placeholder=\"$t('enter-title-for-your-message')\" class=\"custom-input form-control\" autofocus />\n </div>\n </div>\n <div class=\"col-md-4 pe-0\">\n <div class=\"form-group py-2\">\n <label class=\"fw-bold\"></label>\n <div class=\"form-check pt-2\" style=\"display: flex; justify-content: space-between;\">\n <div v-for=\"(editor, index) in editors\" :key=\"index\" class=\"form-check-inline\">\n <input\n :id=\"editor.id\"\n v-model=\"form.type\"\n :data-test=\"editor.id\"\n type=\"radio\"\n :value=\"editor.value\"\n class=\"form-check-input check-input\"\n @click.prevent=\"onEditorChange(editor.value)\"\n />\n <span class=\"check-span\">{{ editor.label }}</span>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"row\">\n <div v-if=\"iftinyEditor\" class=\"col-md-8 ps-0\">\n <div class=\"form-group py-2\">\n <label class=\"fw-bold\">{{ $t('insert') }}</label>\n <v-select\n v-model=\"selectedVariable\"\n :options=\"variableOptions\"\n label=\"label\"\n :placeholder=\"$t('select-option-to-insert')\"\n @input=\"handleVariableClick\"\n ></v-select>\n </div>\n </div>\n <div v-if=\"ifunlayerEditor && templateOptions.length > 0\" class=\"col-md-8 ps-0\">\n <div class=\"form-group py-2\">\n <label class=\"fw-bold\">{{ $t('network.messages.availableTemplates') }}</label>\n <ul type=\"none\" class=\"p-0\">\n <li>\n <label\n v-for=\"(option, index) in templateOptions\"\n :key=\"index\"\n role=\"button\"\n class=\"m-2 p-2 badge bg-info btn-block\"\n @click=\"setTemplateToMessage(option.template)\"\n >\n {{ option.name }}\n </label>\n </li>\n </ul>\n </div>\n </div>\n </div>\n\n <div class=\"card shadow-lg p-2 mt-3\">\n <div class=\"d-flex justify-content-between\">\n <label class=\"fw-bold\">{{ $t('network.member.message') }}</label>\n <label v-if=\"path[4] != 'create' && message && message.history.length\" class=\"fw-bold text-primary cursor\" @click=\"showMessageEditHistoryModal = ! showMessageEditHistoryModal\">\n View edit history\n </label>\n </div>\n <EmailEditor v-if=\"ifunlayerEditor\" ref=\"emailEditor\" v-model=\"form.design\" style=\"height: 700px; width: 100%;\" @ready=\"unlayerEditorReady\" />\n <editor\n v-if=\"iftinyEditor\"\n v-model=\"form.content\"\n :api-key=\"tinyMceApiKey\"\n :init=\"{\n height: 500,\n menubar: false,\n images_upload_handler: uploadImageTinyMceBlob,\n automatic_uploads: true,\n file_picker_types: 'image',\n browser_spellcheck: true,\n paste_as_text: true,\n relative_urls : false,\n remove_script_host : false,\n document_base_url : home,\n plugins: [\n 'advlist autolink lists link image charmap print preview anchor',\n 'searchreplace visualblocks code fullscreen',\n 'insertdatetime media table paste code help wordcount',\n ],\n toolbar:\n 'undo redo | formatselect | bold italic backcolor | \\\n alignleft aligncenter alignright alignjustify | \\\n bullist numlist outdent indent | removeformat | help | link image ',\n image_advtab: true,\n image_class_list: [\n { title: 'None', value: '' },\n { title: 'Rounded', value: 'rounded' },\n { title: 'Rounded (circle)', value: 'rounded-circle' },\n { title: 'Margin Right', value: 'mr-5' },\n { title: 'Picture', value: 'img-fluid img-thumbnail' },\n { title: 'Fluid', value: 'img-fluid' },\n ],\n }\"\n />\n\n <br><label class=\"fw-bold\">{{ $t('attach-existing-media') }}</label>\n <NetworkMediaSelector :network=\"network\" :existingMedia=\"existingMedia\" @media-selected=\"mediaSelectedEvent\" />\n </div>\n\n <div class=\"card shadow-lg p-2 my-3\">\n <label class=\"fw-bold\">{{ $t('choose-when-to-send') }}</label>\n <div class=\"can-toggle can-toggle--size-large\">\n <input id=\"c\" v-model=\"form.schedule_message\" type=\"checkbox\">\n <label data-test=\"choose_when_send\" for=\"c\">\n <div class=\"can-toggle__switch pointer\" data-checked=\"Later\" data-unchecked=\"Now\"></div>\n </label>\n </div>\n\n <div v-if=\"form.schedule_message\">\n <div class=\"d-flex justify-content-between mt-3\">\n <div class=\"col-6 pe-2\">\n <label class=\"fw-bold\">{{ $t('network.date') }}</label><br>\n <date-picker\n v-model=\"form.sent_at_date\"\n value-type=\"format\"\n format=\"YYYY-MM-DD\"\n type=\"date\"\n data-test=\"date\"\n :placeholder=\"$t('network.dashboard.selectDate')\"\n style=\"width: -webkit-fill-available;\"\n ></date-picker>\n </div>\n <div class=\"col-6 ps-2\">\n <label class=\"fw-bold\">{{ $t('network.meeting.time') }}</label><br>\n <date-picker\n v-model=\"form.sent_at_time\"\n value-type=\"format\"\n format=\"HH:mm\"\n type=\"time\"\n :placeholder=\"$t('select-time')\"\n style=\"width: -webkit-fill-available;\"\n ></date-picker>\n </div>\n </div>\n\n <br><label class=\"fw-bold\">{{ $t('change-timezone') }}</label>\n <div class=\"form-group\">\n <v-select\n id=\"timezones\"\n v-model=\"form.timezone\"\n data-test=\"timezones\"\n :options=\"timezones\"\n label=\"name\"\n :clearable=\"false\"\n :placeholder=\"$t('network.meeting.selectTimezone')\"\n ></v-select>\n </div>\n </div>\n </div>\n\n <span id=\"message-preview\" data-test=\"message-preview\" class=\"text-primary fw-bold pointer\" @click=\"message_preview = !message_preview, showMessagePreview()\">\n {{ $t('see-preview') }}\n </span>\n </div>\n\n <div class=\"col-md-12 col-lg-12 col-sm-12 mt-4\">\n <button id=\"save\" data-test=\"save\" :disabled=\"iftinyEditor ? (form.title.length === 0 || form.content.length === 0) : form.title.length === 0\"\n class=\"btn btn-outline-primary me-2\" style=\"border: 2px solid;\" @click=\"submitRequest('save')\">\n {{ $t('finish-later') }}\n </button>\n <button id=\"send\" data-test=\"send\" :disabled=\"iftinyEditor ? (form.title.length === 0 || form.content.length === 0) : form.title.length === 0\"\n class=\"btn btn-primary\" @click=\"submitRequest('send')\">\n <div v-if=\"form.schedule_message\">{{ $t('schedule') }}</div>\n <div v-else>{{ $t('send-now') }}</div>\n </button>\n </div>\n\n <b-modal\n v-if=\"iftinyEditor\"\n id=\"messagePreviewModal\"\n size=\"lg\"\n hide-footer\n :title=\"this.$t('network.messages.networkMessagePreview')\"\n body-class=\"p-0\"\n @hide=\"message_preview = false\"\n >\n <p v-html=\"message_preview_html\"></p>\n </b-modal>\n <b-modal v-model=\"upcomingMeetings\" hide-footer hide-header size=\"lg\">\n <v-select\n id=\"upcoming_meetings\"\n data-test=\"upcoming_meetings\"\n :options=\"upcoming_meetings\"\n placeholder=\"Select meeting to include\"\n label=\"title\"\n @input=\"addMeeting\"\n >\n <template v-slot:option=\"option\">\n {{ utcToLocal(option.start).format('dddd, MMMM D, YYYY, hh:mm A') }} - <b>{{ option.title }}</b>\n </template>\n <template v-slot:no-options>{{ $t('sorry-there-are-no-upcoming-meetings-for-this-network') }}</template>\n </v-select>\n </b-modal>\n <b-modal v-model=\"upcomingMeetingsCalendar\" hide-footer hide-header size=\"lg\">\n <v-select\n id=\"upcoming_meetings_calendar\"\n data-test=\"upcoming_meetings_calendar\"\n :options=\"upcoming_meetings\"\n placeholder=\"Select meeting to add to calendar\"\n label=\"title\"\n @input=\"addMeetingToCalendar\"\n >\n <template v-slot:option=\"option\">\n {{ utcToLocal(option.start).format('dddd, MMMM D, YYYY, hh:mm A') }} - <b>{{ option.title }}</b>\n </template>\n <template v-slot:no-options>{{ $t('sorry-there-are-no-upcoming-meetings-for-this-network') }}</template>\n </v-select>\n </b-modal>\n <b-modal v-model=\"showMessageEditHistoryModal\" hide-footer hide-header size=\"sm\" @close=\"showMessageEditHistoryModal = false\">\n <h3 style=\"margin-left: 35px;\">Edit history</h3>\n <div v-if=\"message && message.history\">\n <ul class=\"timeline\">\n <li v-for=\"editor in this.message.history\" :key=\"editor\">\n <div class=\"direction-r\">\n <div class=\"flag-wrapper\">\n <span class=\"flag\">{{ momentShortenedFormat(editor.date) }}</span>\n </div>\n <div class=\"desc\">Updated by {{ editor.name }}</div>\n </div>\n </li>\n </ul>\n </div>\n </b-modal>\n </div>\n</template>\n<script>\nimport NetworkMediaSelector from '@/components/commons/Media/Selector.vue';\nimport ValidationError from '../../../components/forms/ValidationError.vue';\nimport { EmailEditor } from 'vue-email-editor';\nimport { loadProgressBar } from 'axios-progress-bar';\nimport axios from 'axios';\nimport copy from 'copy-to-clipboard';\n//import DateRangePicker from 'vue2-daterange-picker';\nimport 'vue2-daterange-picker/dist/vue2-daterange-picker.css';\nimport DatePicker from 'vue2-datepicker';\nimport 'vue2-datepicker/index.css';\nimport Editor from '@tinymce/tinymce-vue';\nimport moment from 'moment';\nimport { orderBy, split } from 'lodash';\nimport vSelect from 'vue-select';\nimport 'vue-select/dist/vue-select.css';\n\nexport default {\n components: {\n NetworkMediaSelector,\n ValidationError,\n //DateRangePicker,\n DatePicker,\n Editor,\n EmailEditor,\n vSelect,\n },\n props: {\n network: {\n type: Object,\n default: null,\n },\n message: {\n type: Object,\n default: null,\n },\n reusedContent: {\n type: String,\n default: null,\n },\n },\n data() {\n return {\n tinyMceApiKey: process.env.VUE_APP_TINYMCE_API_KEY,\n editors: [\n { id: 'unlayer', value: 'unlayer', label: this.$t('NetworkMessageForm.unlayer-builder') },\n { id: 'tinymceEditor', value: 'tinymce', label: 'TinyMCE' },\n ],\n wantToAttachMedia: false,\n form: this.initialForm(),\n files: [],\n timezones: [],\n s3Params: {},\n options: {}, // uploader options\n uploadFinished: false,\n minDate: new Date(),\n maxDate: new Date(),\n message_preview: false,\n message_preview_html: '',\n existingMedia: null,\n formType: this.message ? 'edit' : 'create',\n templateOptions: this.getTemplates(),\n messageFormErrors: [],\n mail_setting: false,\n upcomingMeetings: false,\n upcomingMeetingsCalendar: false,\n upcoming_meetings: [],\n home: window.location.origin,\n path: split(this.$route.fullPath, '/'),\n selectedVariable: null,\n variableOptions: [\n { label: this.$t('network.auth.firstName'), value: '{{FIRST_NAME}}', clickHandler: 'copyVariable' },\n { label: this.$t('network.auth.lastName'), value: '{{LAST_NAME}}', clickHandler: 'copyVariable' },\n { label: this.$t('network.auth.email'), value: '{{EMAIL}}', clickHandler: 'copyVariable' },\n { label: this.$t('network.message.attachedMedia'), value: '{{ATTACHED_MEDIA}}', clickHandler: 'copyVariable' },\n { label: this.$t('network.meeting.joinMeeting'), value: '{{JOIN_MEETING}}', clickHandler: 'toggleMeetings' },\n ...(this.network.vanity_link\n ? [\n { label: 'Vanity Link', value: this.network.vanity_link, clickHandler: 'addVanityLink' },\n ]\n : []),\n { label: this.$t('add-to-calendar'), value: '{{ADD_TO_CALENDAR}}', clickHandler: 'toggleMeetings' },\n ],\n customTimezone: false,\n showMessageEditHistoryModal: false,\n };\n },\n computed: {\n iftinyEditor() {\n return this.form.type === 'tinymce';\n },\n ifunlayerEditor() {\n return this.form.type === 'unlayer';\n },\n formErrors() {\n return this.$store.state.validationErrors;\n },\n formUpdated(){\n return ( JSON.stringify(this.form) != JSON.stringify(this.initialForm()) ) ? true : false;\n }\n },\n watch: {\n formUpdated(value) {\n this.$emit('form-updated', value);\n }\n },\n mounted() {\n this.init();\n if (this.message) {\n this.form = this.editData();\n }\n },\n methods: {\n /**\n * @define called when the editor has finished loading\n */\n unlayerEditorReady() {\n this.$refs.emailEditor.editor.registerCallback('image', (file, done) => {\n // CAUTION only handles a single upload\n window.file = file;\n this.uploadImage(file.attachments[0], done, 'unlayer');\n });\n\n if (this.formType === 'edit' && this.message.type === 'unlayer') {\n var loadDesign = this.message.design.design;\n if (loadDesign) {\n this.$refs.emailEditor.editor.loadDesign(loadDesign);\n }\n }\n },\n handleVariableClick(variable) {\n const clickHandler = this[variable.clickHandler];\n if (clickHandler) {\n clickHandler(variable.value);\n }\n },\n copyVariable(variable) {\n copy(variable);\n this.form.content = this.form.content + variable;\n let msg = this.$t('network.message.textCopied');\n this.showToast(msg, this.$t('network.message.textCopied'), 'info', false);\n },\n addMeeting(meeting){\n if (!meeting) return;\n this.copyVariable('<a href=\"https://networks.resonancehealth.org/networks/join-meeting/' + meeting.id + '\" target=\"_blank\">'+\n '<button style=\"background-color: #3498db; border-color: #3498db; border: solid 1px #3498db; border-radius: 5px; box-sizing: border-box; color: #ffffff; cursor: pointer; display: inline-block; font-size: 14px; font-weight: bold; margin: 0; padding: 12px 25px; text-decoration: none; width: 150px;\">'+\n 'Join Meeting</button></a>'+' ');\n },\n addMeetingToCalendar(meeting){\n if (!meeting) return;\n this.copyVariable('<a href=\"https://networks.resonancehealth.org/networks/join-meeting/' + meeting.id + '\" target=\"_blank\">'+\n '<button style=\"background-color: #3498db; border-color: #3498db; border: solid 1px #3498db; border-radius: 5px; box-sizing: border-box; color: #ffffff; cursor: pointer; display: inline-block; font-size: 14px; font-weight: bold; margin: 0; padding: 12px 25px; text-decoration: none; width: 175px;\">'+\n 'Add to Calendar</button></a>'+' ');\n },\n addVanityLink(link){\n if (!link) return;\n this.copyVariable('<a href=\"' + link + '\" target=\"_blank\">'+\n '<button style=\"background-color: #3498db; border-color: #3498db; border: solid 1px #3498db; border-radius: 5px; box-sizing: border-box; color: #ffffff; cursor: pointer; display: inline-block; font-size: 14px; font-weight: bold; margin: 0; padding: 12px 25px; text-decoration: none; width: 150px;\">'+\n 'Join Meeting</button></a>'+' ');\n },\n toggleMeetings(value) {\n if (value == '{{JOIN_MEETING}}') {\n this.upcomingMeetings = !this.upcomingMeetings;\n } else {\n this.upcomingMeetingsCalendar = !this.upcomingMeetingsCalendar;\n }\n },\n utcToLocal: function (dt) {\n return moment.utc(dt).local();\n },\n momentFormat: function (dt) {\n return moment(dt);\n },\n momentShortenedFormat: function (dt) {\n return moment.utc(dt, \"MMMM D, YYYY, h:mm a\").local().format(\"MMM D, YYYY, h:mm a\");\n },\n /**\n * @define Form events\n */\n init() {\n //this.maxDate.setDate(new Date().getDate() + 5);\n this.maxDate.setDate(new Date());\n this.busy = true;\n\n this.$http\n .post('s3/upload-params')\n .then(resp => {\n this.setupUploadForm(resp.data);\n // upload seutp is done!\n this.busy = false;\n })\n .catch(err => {\n this.$bvModal.msgBoxOk(\n this.$t('CreateMediaWithoutCollection.s3-upload-initialization-failed-please-check-console-for-details-or-refresh-the-page-to-try-again')\n );\n console.log('get s3 upload params failed', err);\n this.busy = false;\n });\n\n this.$http.get('networks/' + this.network.slug + '/meetings').then(resp => {\n let meetings = [];\n // future meetings\n resp.data.upcomingWithOccurrences.forEach(m => meetings.push(m));\n // in progress meetings\n resp.data.inProgressWithOccurrences.forEach(m => meetings.push(m));\n this.upcoming_meetings = orderBy(meetings, 'start');\n });\n\n this.$http.get('timezones').then(resp => {\n this.timezones = resp.data;\n let browserTZ = Intl.DateTimeFormat().resolvedOptions().timeZone;\n if (browserTZ == 'America/Buenos_Aires') {\n browserTZ = 'America/Argentina/Buenos_Aires';\n }\n this.form.timezone = resp.data.find(tz => tz.name == browserTZ);\n this.form.local_timezone = resp.data.find(tz => tz.name == browserTZ);\n if (!this.form.timezone) {\n /*this.$swal.fire({\n icon: 'info',\n title: this.$t('user.timezone.notFound', {\n defaultValue: 'We were unable to match your timezone ({{timezone}}), please select it from the list.',\n timezone: browserTZ,\n }),\n });*/\n this.form.timezone = resp.data.find(tz => tz.name == 'UTC');\n this.form.local_timezone = resp.data.find(tz => tz.name == 'UTC');\n }\n });\n },\n setupUploadForm(s3) {\n // see option documentation here: https://github.com/thetutlage/vue-clip\n this.options = {\n url: s3.formAttributes.action,\n maxFilesize: this.maxFilesize || 500, // 500 MB\n autoProcessQueue: true,\n maxFiles: this.maxFiles || 10,\n };\n if (this.acceptedFiles) this.options.acceptedFiles = this.acceptedFiles;\n\n this.s3Params = s3;\n },\n initialForm() {\n return {\n title: '',\n content: this.reusedContent ?? '',\n timezone: '',\n local_timezone: '',\n design: '',\n type: 'tinymce',\n attached_media_id: null,\n sent_at_date: moment().add(1, 'hour').format('YYYY-MM-DD'),\n sent_at_time: moment().add(1, 'hour').format('HH:mm'),\n schedule_message: false,\n mail_from_text: this.network.default_from_name,\n };\n },\n editData() {\n let $message = this.message;\n let sent_at_date = $message.is_scheduled\n ? moment(this.utcToLocal($message.scheduled_on)).format('YYYY-MM-DD')\n : '';\n let sent_at_time = $message.is_scheduled\n ? moment(this.utcToLocal($message.scheduled_on)).format('HH:mm')\n : '';\n this.wantToAttachMedia = !!$message.attached_media_id;\n this.existingMedia = this.wantToAttachMedia ? $message.media : null;\n return {\n title: $message.title,\n content: $message.content,\n timezone: $message.timezone,\n local_timezone: $message.local_timezone,\n design: [],\n type: $message.type,\n attached_media_id: $message.attached_media_id,\n sent_at_date,\n sent_at_time,\n schedule_message: !!$message.is_scheduled,\n };\n },\n mediaSelectedEvent(media) {\n this.form.attached_media_id = media.id;\n },\n /**\n * @define To submit form\n */\n submitRequest(requestAction) {\n this.$emit('form-updated', false);\n let msg, url, message;\n let isSave = requestAction === 'save';\n this.form.eventAction = isSave ? 'save' : 'send';\n this.form.schedule_message =\n this.form.schedule_message === null || this.form.schedule_message === '' || this.form.schedule_message === false ? false : true;\n if (this.form.schedule_message) {\n message = this.$t('network.messages.areYouSureSchedule');\n } else {\n message = this.$t('network.messages.areYouSure');\n }\n msg = !isSave ? message : '';\n url = this.message ? 'networks/messages/' + this.message.id : 'networks/' + this.network.slug + '/messages';\n this.form._method = this.formType === 'edit' ? 'PUT' : 'POST';\n this.form.local_timezone = this.form.timezone;\n if (this.ifunlayerEditor) {\n this.$refs.emailEditor.editor.exportHtml(data => {\n this.form.design = data;\n this.sendMessageAction(isSave, url, msg);\n });\n } else {\n this.sendMessageAction(isSave, url, msg);\n }\n },\n sendMessageAction(isSave, url, msg) {\n if (!isSave) {\n let action = () => {\n this.$http\n .post(url, this.form)\n .then(() => {\n if (this.form.schedule_message) {\n this.wantToAttachMedia = false;\n this.form = this.initialForm();\n window.location.href = '/networks/' + this.network.slug + '/messages#scheduled';\n } else {\n this.wantToAttachMedia = false;\n this.form = this.initialForm();\n window.location.href = '/networks/' + this.network.slug + '/messages#sent';\n }\n })\n .catch(error => {\n this.showServerError(error);\n });\n };\n this.showConfirmPrompt(action, msg);\n } else {\n this.$http\n .post(url, this.form)\n .then(() => {\n this.wantToAttachMedia = false;\n window.location.href = '/networks/' + this.network.slug + '/messages#drafts';\n })\n .catch(error => {\n this.showServerError(error);\n });\n }\n },\n /**\n * @define Upload To S3 function for TinyMCE and Unlayer\n */\n async uploadImageTinyMceBlob(blobInfo, success) {\n await this.uploadImage(blobInfo.blob(), success, 'tinymce');\n },\n /**\n * @define Upload Image to S3 using Axios\n * @param file\n * @param success\n * @param requestType\n * @returns {Promise<void>}\n */\n async uploadImage(file, success, requestType) {\n let remoteHost = this.s3Params.formAttributes.action;\n var fullPath = file.name;\n var properPath = this.s3Params.uploadPathPrefix + '/' + fullPath;\n\n var formData = new FormData();\n // update formData before the file is uploaded\n for (let key in this.s3Params.formInputs) {\n var value = this.s3Params.formInputs[key];\n if (key == 'key') value = properPath; // use the proper path calculated (in case its a full folder upload)\n formData.append(key, value);\n }\n this.files.push({\n name: file.name,\n size: file.size,\n fullPath: properPath,\n });\n formData.append('file', file, file.name);\n let axios_instance = axios.create({ headers: { Authorization: '' } });\n loadProgressBar('', axios_instance);\n await axios_instance\n .post(remoteHost, formData)\n .then(() => {\n let attributes = {\n url: remoteHost + '/' + properPath,\n href: remoteHost + '/' + properPath,\n };\n if (requestType === 'tinymce') {\n success(attributes.url);\n } else {\n success({ url: attributes.url });\n }\n })\n .catch(err => {\n console.log('get s3 upload params failed', err);\n });\n },\n /**\n * @define To Load Network Template for Unlayer Editor\n */\n getTemplates() {\n this.$http.get('networks/' + this.network.slug + '/templates').then(res => {\n this.templateOptions = res.data;\n });\n },\n /**\n * @define To Set Template design in Editor by Selecting Template Option\n * @param template\n */\n setTemplateToMessage(template) {\n this.$refs.emailEditor.editor.loadDesign(template.design);\n },\n /**\n * @define To show preview of Email template in modal\n */\n showMessagePreview() {\n this.form.eventAction = 'preview';\n this.$http.post('networks/' + this.network.slug + '/message/preview', this.form).then(res => {\n this.message_preview_html = res.data;\n\n if (this.message_preview) {\n this.$bvModal.show('messagePreviewModal');\n } else {\n this.$bvModal.hide('messagePreviewModal');\n }\n });\n },\n /**\n * @define To Change Editor Layout\n * @param value\n */\n onEditorChange(value) {\n let msg =\n this.$t('NetworkMessageForm.are-you-sure-you-want-to-change-editor') + ' ' + this.$t('NetworkMessageForm.you-will-lose-all-changes-you-made-since-last-save');\n let action = () => {\n this.form.type = value;\n };\n this.showConfirmPrompt(action, msg);\n },\n /**\n * @define show server error with alert\n */\n showServerError(error) {\n let statusCodes = [403, 404, 422];\n if (!statusCodes.includes(error.response.status)) {\n this.messageFormErrors = [JSON.parse(error.request.response).message];\n }\n },\n },\n};\n</script>\n<style scoped>\n.message-variable {\n cursor: pointer;\n}\n.check-span {\n vertical-align: sub !important;\n margin-left: 10px !important;\n}\n.check-input {\n width: 1.5em !important;\n height: 1.5em !important;\n}\n.custom-input {\n background-color: #fff;\n border-color: rgb(195 174 174 / 26%);\n box-shadow: 0 0 0 0 transparent, 0 0.375rem 0.625rem -0.3125rem rgba(0, 95, 154, 0.15);\n}\n/* switch */\n.can-toggle {\n position: relative;\n font-weight: 700;\n}\n.can-toggle *, .can-toggle *:before, .can-toggle *:after {\n box-sizing: border-box;\n}\n.can-toggle input[type=checkbox] {\n opacity: 0;\n position: absolute;\n top: 0;\n left: 0;\n}\n.can-toggle input[type=checkbox][disabled] ~ label {\n pointer-events: none;\n}\n.can-toggle input[type=checkbox][disabled] ~ label .can-toggle__switch {\n opacity: 0.4;\n}\n.can-toggle input[type=checkbox]:checked ~ label .can-toggle__switch:before {\n content: attr(data-unchecked);\n left: 0;\n}\n.can-toggle input[type=checkbox]:checked ~ label .can-toggle__switch:after {\n content: attr(data-checked);\n}\n.can-toggle label {\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n position: relative;\n display: flex;\n align-items: center;\n}\n.can-toggle label .can-toggle__switch {\n position: relative;\n}\n.can-toggle label .can-toggle__switch:before {\n content: attr(data-checked);\n position: absolute;\n top: 0;\n text-transform: uppercase;\n text-align: center;\n}\n.can-toggle label .can-toggle__switch:after {\n content: attr(data-unchecked);\n position: absolute;\n z-index: 5;\n text-transform: uppercase;\n text-align: center;\n background: #F1FAFF;\n transform: translate3d(0, 0, 0);\n}\n.can-toggle input[type=checkbox][disabled] ~ label {\n color: rgba(119, 119, 119, 0.5);\n}\n.can-toggle input[type=checkbox]:focus ~ label .can-toggle__switch, .can-toggle input[type=checkbox]:hover ~ label .can-toggle__switch {\n background-color: #D9D9D9;\n}\n.can-toggle input[type=checkbox]:focus ~ label .can-toggle__switch:after, .can-toggle input[type=checkbox]:hover ~ label .can-toggle__switch:after {\n color: #5c6d80;\n}\n.can-toggle input[type=checkbox]:hover ~ label {\n color: #5c6d80;\n}\n.can-toggle input[type=checkbox]:checked ~ label:hover {\n color: #5c6d80;\n}\n.can-toggle input[type=checkbox]:checked ~ label .can-toggle__switch {\n background-color: #D9D9D9;\n}\n.can-toggle input[type=checkbox]:checked ~ label .can-toggle__switch:after {\n color: #5c6d80;\n}\n.can-toggle input[type=checkbox]:checked:focus ~ label .can-toggle__switch, .can-toggle input[type=checkbox]:checked:hover ~ label .can-toggle__switch {\n background-color: #D9D9D9;\n}\n.can-toggle input[type=checkbox]:checked:focus ~ label .can-toggle__switch:after, .can-toggle input[type=checkbox]:checked:hover ~ label .can-toggle__switch:after {\n color: #5c6d80;\n}\n.can-toggle label .can-toggle__switch {\n transition: background-color 0.3s cubic-bezier(0, 1, 0.5, 1);\n background: #D9D9D9;\n}\n.can-toggle label .can-toggle__switch:before {\n color: #5c6d80;\n}\n.can-toggle label .can-toggle__switch:after {\n transition: transform 0.3s cubic-bezier(0, 1, 0.5, 1);\n color: #5c6d80;\n}\n.can-toggle input[type=checkbox]:checked ~ label .can-toggle__switch:after {\n transform: translate3d(157px, 0, 0);\n}\n.can-toggle label {\n font-size: 14px;\n}\n.can-toggle label .can-toggle__switch {\n height: 36px;\n flex: 0 0 134px;\n}\n.can-toggle.can-toggle--size-large label {\n font-size: 14px;\n}\n.can-toggle.can-toggle--size-large label .can-toggle__switch {\n height: 52px;\n flex: 0 0 320px;\n border-radius: 1rem;\n}\n.can-toggle.can-toggle--size-large label .can-toggle__switch:before {\n left: 160px;\n font-size: 14px;\n line-height: 50px;\n width: 160px;\n padding: 0 12px;\n border-radius: 1rem;\n}\n.can-toggle.can-toggle--size-large label .can-toggle__switch:after {\n top: 3px;\n left: 3px;\n width: 156px;\n line-height: 46px;\n font-size: 14px;\n border-radius: 1rem;\n}\n/*edit history*/\n.timeline {\n margin: 0 auto;\n margin-top: 15px;\n list-style-type: none;\n}\n.timeline:before {\n position: absolute;\n left: 9%;\n top: 0;\n content: ' ';\n display: block;\n width: 3px;\n height: 100%;\n margin-left: -3px;\n background: rgb(80,80,80);\n z-index: 5;\n}\n.timeline li {\n padding: 1em 0;\n}\n.timeline li:after {\n content: \"\";\n display: block;\n height: 0;\n clear: both;\n visibility: hidden;\n}\n.direction-r {\n position: relative;\n width: 220px;\n float: right;\n}\n.flag-wrapper {\n position: relative;\n display: inline-block;\n text-align: center;\n}\n.flag {\n position: relative;\n display: inline;\n border-radius: 5px;\n font-size: larger;\n font-weight: 600;\n text-align: left;\n}\n.direction-r .flag:before {\n position: absolute;\n top: 50%;\n right: -40px;\n content: ' ';\n display: block;\n width: 15px;\n height: 15px;\n margin-top: -10px;\n background: rgb(80, 80, 80);\n border-radius: 10px;\n border: 4px solid rgb(80, 80, 80);\n z-index: 10;\n left: -40px;\n}\n.direction-r .flag:after {\n content: \"\";\n position: absolute;\n right: 100%;\n top: 50%;\n height: 0;\n width: 0;\n margin-top: -8px;\n border: solid transparent;\n border-right-color: rgb(248,248,248);\n border-width: 8px;\n pointer-events: none;\n}\n.desc {\n font-size: large;\n font-weight: 600;\n line-height: 1.5em;\n}\n</style>\n<style>\n.mx-table {\n width: initial !important;\n}\n</style>","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Create.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Create.vue?vue&type=script&lang=js\"","<template>\n <div v-if=\"appendData\" nav-mode=\"light\">\n <div v-if=\"busy\" class=\"row text-center\">\n <lottie-player\n autoplay\n loop\n speed=\"2.5\"\n src=\"/img/animations/custom_loader.json\"\n style=\"height: 130px;\"\n >\n </lottie-player>\n </div>\n\n <div v-if=\"!busy\" class=\"row my-3\">\n <div class=\"col-md-8 offset-2\">\n <NetworkMessageForm :network=\"network\" :message=\"message\" :reusedContent=reusedMessage?.content @form-updated=\"formUpdated\" @network-message-form-submit=\"$router.push('/networks/' + slug + '/messages')\" />\n </div>\n </div>\n </div>\n</template>\n<script>\nimport NetworkMessageForm from './NetworkMessageForm.vue';\n\nexport default {\n name: 'NetworkHome',\n components: {\n NetworkMessageForm,\n },\n props: {\n slug: {\n type: String,\n default: null,\n },\n id: {\n type: String,\n default: null,\n },\n reusedMessage: {\n type: Object,\n default: null,\n },\n },\n data() {\n return {\n busy: true,\n network: null,\n formLeaveWithoutSave: false,\n message: null,\n };\n },\n computed: {\n appendData() {\n if (this.id !== null) {\n return this.network && this.message;\n } else {\n return this.network;\n }\n },\n },\n watch: {\n slug(newV) {\n if (newV != this.network.slug) this.refresh();\n },\n },\n mounted() {\n this.refresh();\n },\n beforeRouteLeave(to) {\n if (this.formLeaveWithoutSave) {\n const answer = window.confirm('Do you really want to leave? you have unsaved changes!');\n if (answer) {\n window.location.href = to.path;\n } else {\n return false;\n }\n } else {\n window.location.href = to.path;\n }\n },\n methods: {\n formUpdated(value) {\n this.formLeaveWithoutSave = value;\n },\n // check the route parameter and the store, and refresh it if needed\n refresh() {\n if (this.network == null || this.network.slug != this.slug) {\n // refresh it!\n this.busy = true;\n this.$http.get('networks/' + this.slug).then(resp => {\n this.network = resp.data;\n this.busy = false;\n });\n }\n if (this.id) {\n // refresh it!\n this.busy = true;\n this.$http.get('networks/' + this.slug + '/messages/' + this.id).then(response => {\n this.message = response.data.message;\n this.busy = false;\n });\n }\n },\n },\n};\n</script>","import { render, staticRenderFns } from \"./NetworkMessageForm.vue?vue&type=template&id=dacaf8aa&scoped=true\"\nimport script from \"./NetworkMessageForm.vue?vue&type=script&lang=js\"\nexport * from \"./NetworkMessageForm.vue?vue&type=script&lang=js\"\nimport style0 from \"./NetworkMessageForm.vue?vue&type=style&index=0&id=dacaf8aa&prod&scoped=true&lang=css\"\nimport style1 from \"./NetworkMessageForm.vue?vue&type=style&index=1&id=dacaf8aa&prod&lang=css\"\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 \"dacaf8aa\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"row input-section message-form\"},[_c('div',{staticClass:\"col-md-12 col-lg-12 col-sm-12\"},[_c('div',{staticClass:\"row p-0\"},[_c('nav',{staticClass:\"col-md-6 col-lg-6 col-sm-6 pt-4\",staticStyle:{\"padding-left\":\"unset\"},attrs:{\"aria-label\":\"breadcrumb\"}},[_c('ol',{staticClass:\"breadcrumb align-middle\"},[_c('li',{staticClass:\"breadcrumb-item\"},[_c('a',{staticClass:\"text-primary fw-bold\",attrs:{\"href\":'/networks/' + _vm.network.slug + '/messages'}},[_vm._v(\" \"+_vm._s(_vm.$t('announcements'))+\" \")])]),_c('li',{staticClass:\"breadcrumb-item\"},[_c('a',{staticClass:\"text-secondary fw-bold\"},[(_vm.path[4] == 'create')?_c('span',[_vm._v(_vm._s(_vm.$t('network.messages.CreateMessage')))]):_c('span',[_vm._v(_vm._s(_vm.$t('network.messages.UpdateMessage')))])])])])]),_c('div',{staticClass:\"col-md-6 col-lg-6 col-sm-6 pt-4\"},[_c('div',{staticClass:\"form-check form-switch float-end\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.mail_setting),expression:\"mail_setting\"}],staticClass:\"form-check-input\",attrs:{\"id\":\"mail_from\",\"data-test\":\"mail_from\",\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.mail_setting)?_vm._i(_vm.mail_setting,null)>-1:(_vm.mail_setting)},on:{\"change\":function($event){var $$a=_vm.mail_setting,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.mail_setting=$$a.concat([$$v]))}else{$$i>-1&&(_vm.mail_setting=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.mail_setting=$$c}}}}),_c('label',{staticClass:\"form-check-label form-check-lg\",attrs:{\"for\":\"mail_from\"}},[_vm._v(_vm._s(_vm.$t('network.message.modify-mail-setting')))])])])])]),(_vm.messageFormErrors)?_c('ValidationError',{attrs:{\"errors\":_vm.messageFormErrors}}):_vm._e(),_c('div',{staticClass:\"col-md-12 col-lg-12 col-sm-12\"},[(_vm.mail_setting)?_c('div',{staticClass:\"form-group py-2\"},[_c('label',{attrs:{\"for\":\"mail_from_text\"}},[_vm._v(_vm._s(_vm.$t('NetworkMessageForm.from')))]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.form.mail_from_text),expression:\"form.mail_from_text\"}],staticClass:\"form-control\",attrs:{\"id\":\"mail_from_text\",\"data-test\":\"mail_from_text\",\"type\":\"text\"},domProps:{\"value\":(_vm.form.mail_from_text)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.form, \"mail_from_text\", $event.target.value)}}})]):_vm._e(),(_vm.mail_setting)?_c('div',{staticClass:\"form-group py-2\"},[_c('label',{attrs:{\"for\":\"mailTo\"}},[_vm._v(_vm._s(_vm.$t('NetworkMessageForm.mail-to')))]),_c('button',{staticClass:\"btn btn-primary btn-sm ms-3\",attrs:{\"id\":\"mailTo\",\"data-test\":\"mailTo\",\"type\":\"button\"}},[_vm._v(\" \"+_vm._s(this.network.name)+\" : \"+_vm._s(_vm.$t('network.tabMembers'))+\" \"),_c('span',{staticClass:\"badge bg-light ms-1\"},[_vm._v(_vm._s(this.network.members_count))])])]):_vm._e(),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-8 ps-0\"},[_c('div',{staticClass:\"form-group py-2\"},[_c('label',{staticClass:\"fw-bold\",attrs:{\"for\":\"title\"}},[_vm._v(_vm._s(_vm.$t('network.networkForm.title')))]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.form.title),expression:\"form.title\"}],staticClass:\"custom-input form-control\",attrs:{\"id\":\"title\",\"data-test\":\"title\",\"type\":\"text\",\"placeholder\":_vm.$t('enter-title-for-your-message'),\"autofocus\":\"\"},domProps:{\"value\":(_vm.form.title)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.form, \"title\", $event.target.value)}}})])]),_c('div',{staticClass:\"col-md-4 pe-0\"},[_c('div',{staticClass:\"form-group py-2\"},[_c('label',{staticClass:\"fw-bold\"}),_c('div',{staticClass:\"form-check pt-2\",staticStyle:{\"display\":\"flex\",\"justify-content\":\"space-between\"}},_vm._l((_vm.editors),function(editor,index){return _c('div',{key:index,staticClass:\"form-check-inline\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.form.type),expression:\"form.type\"}],staticClass:\"form-check-input check-input\",attrs:{\"id\":editor.id,\"data-test\":editor.id,\"type\":\"radio\"},domProps:{\"value\":editor.value,\"checked\":_vm._q(_vm.form.type,editor.value)},on:{\"click\":function($event){$event.preventDefault();return _vm.onEditorChange(editor.value)},\"change\":function($event){return _vm.$set(_vm.form, \"type\", editor.value)}}}),_c('span',{staticClass:\"check-span\"},[_vm._v(_vm._s(editor.label))])])}),0)])])]),_c('div',{staticClass:\"row\"},[(_vm.iftinyEditor)?_c('div',{staticClass:\"col-md-8 ps-0\"},[_c('div',{staticClass:\"form-group py-2\"},[_c('label',{staticClass:\"fw-bold\"},[_vm._v(_vm._s(_vm.$t('insert')))]),_c('v-select',{attrs:{\"options\":_vm.variableOptions,\"label\":\"label\",\"placeholder\":_vm.$t('select-option-to-insert')},on:{\"input\":_vm.handleVariableClick},model:{value:(_vm.selectedVariable),callback:function ($$v) {_vm.selectedVariable=$$v},expression:\"selectedVariable\"}})],1)]):_vm._e(),(_vm.ifunlayerEditor && _vm.templateOptions.length > 0)?_c('div',{staticClass:\"col-md-8 ps-0\"},[_c('div',{staticClass:\"form-group py-2\"},[_c('label',{staticClass:\"fw-bold\"},[_vm._v(_vm._s(_vm.$t('network.messages.availableTemplates')))]),_c('ul',{staticClass:\"p-0\",attrs:{\"type\":\"none\"}},[_c('li',_vm._l((_vm.templateOptions),function(option,index){return _c('label',{key:index,staticClass:\"m-2 p-2 badge bg-info btn-block\",attrs:{\"role\":\"button\"},on:{\"click\":function($event){return _vm.setTemplateToMessage(option.template)}}},[_vm._v(\" \"+_vm._s(option.name)+\" \")])}),0)])])]):_vm._e()]),_c('div',{staticClass:\"card shadow-lg p-2 mt-3\"},[_c('div',{staticClass:\"d-flex justify-content-between\"},[_c('label',{staticClass:\"fw-bold\"},[_vm._v(_vm._s(_vm.$t('network.member.message')))]),(_vm.path[4] != 'create' && _vm.message && _vm.message.history.length)?_c('label',{staticClass:\"fw-bold text-primary cursor\",on:{\"click\":function($event){_vm.showMessageEditHistoryModal = ! _vm.showMessageEditHistoryModal}}},[_vm._v(\" View edit history \")]):_vm._e()]),(_vm.ifunlayerEditor)?_c('EmailEditor',{ref:\"emailEditor\",staticStyle:{\"height\":\"700px\",\"width\":\"100%\"},on:{\"ready\":_vm.unlayerEditorReady},model:{value:(_vm.form.design),callback:function ($$v) {_vm.$set(_vm.form, \"design\", $$v)},expression:\"form.design\"}}):_vm._e(),(_vm.iftinyEditor)?_c('editor',{attrs:{\"api-key\":_vm.tinyMceApiKey,\"init\":{\n height: 500,\n menubar: false,\n images_upload_handler: _vm.uploadImageTinyMceBlob,\n automatic_uploads: true,\n file_picker_types: 'image',\n browser_spellcheck: true,\n paste_as_text: true,\n relative_urls : false,\n remove_script_host : false,\n document_base_url : _vm.home,\n plugins: [\n 'advlist autolink lists link image charmap print preview anchor',\n 'searchreplace visualblocks code fullscreen',\n 'insertdatetime media table paste code help wordcount',\n ],\n toolbar:\n 'undo redo | formatselect | bold italic backcolor | \\\n alignleft aligncenter alignright alignjustify | \\\n bullist numlist outdent indent | removeformat | help | link image ',\n image_advtab: true,\n image_class_list: [\n { title: 'None', value: '' },\n { title: 'Rounded', value: 'rounded' },\n { title: 'Rounded (circle)', value: 'rounded-circle' },\n { title: 'Margin Right', value: 'mr-5' },\n { title: 'Picture', value: 'img-fluid img-thumbnail' },\n { title: 'Fluid', value: 'img-fluid' },\n ],\n }},model:{value:(_vm.form.content),callback:function ($$v) {_vm.$set(_vm.form, \"content\", $$v)},expression:\"form.content\"}}):_vm._e(),_c('br'),_c('label',{staticClass:\"fw-bold\"},[_vm._v(_vm._s(_vm.$t('attach-existing-media')))]),_c('NetworkMediaSelector',{attrs:{\"network\":_vm.network,\"existingMedia\":_vm.existingMedia},on:{\"media-selected\":_vm.mediaSelectedEvent}})],1),_c('div',{staticClass:\"card shadow-lg p-2 my-3\"},[_c('label',{staticClass:\"fw-bold\"},[_vm._v(_vm._s(_vm.$t('choose-when-to-send')))]),_c('div',{staticClass:\"can-toggle can-toggle--size-large\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.form.schedule_message),expression:\"form.schedule_message\"}],attrs:{\"id\":\"c\",\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.form.schedule_message)?_vm._i(_vm.form.schedule_message,null)>-1:(_vm.form.schedule_message)},on:{\"change\":function($event){var $$a=_vm.form.schedule_message,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.form, \"schedule_message\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.form, \"schedule_message\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.form, \"schedule_message\", $$c)}}}}),_vm._m(0)]),(_vm.form.schedule_message)?_c('div',[_c('div',{staticClass:\"d-flex justify-content-between mt-3\"},[_c('div',{staticClass:\"col-6 pe-2\"},[_c('label',{staticClass:\"fw-bold\"},[_vm._v(_vm._s(_vm.$t('network.date')))]),_c('br'),_c('date-picker',{staticStyle:{\"width\":\"-webkit-fill-available\"},attrs:{\"value-type\":\"format\",\"format\":\"YYYY-MM-DD\",\"type\":\"date\",\"data-test\":\"date\",\"placeholder\":_vm.$t('network.dashboard.selectDate')},model:{value:(_vm.form.sent_at_date),callback:function ($$v) {_vm.$set(_vm.form, \"sent_at_date\", $$v)},expression:\"form.sent_at_date\"}})],1),_c('div',{staticClass:\"col-6 ps-2\"},[_c('label',{staticClass:\"fw-bold\"},[_vm._v(_vm._s(_vm.$t('network.meeting.time')))]),_c('br'),_c('date-picker',{staticStyle:{\"width\":\"-webkit-fill-available\"},attrs:{\"value-type\":\"format\",\"format\":\"HH:mm\",\"type\":\"time\",\"placeholder\":_vm.$t('select-time')},model:{value:(_vm.form.sent_at_time),callback:function ($$v) {_vm.$set(_vm.form, \"sent_at_time\", $$v)},expression:\"form.sent_at_time\"}})],1)]),_c('br'),_c('label',{staticClass:\"fw-bold\"},[_vm._v(_vm._s(_vm.$t('change-timezone')))]),_c('div',{staticClass:\"form-group\"},[_c('v-select',{attrs:{\"id\":\"timezones\",\"data-test\":\"timezones\",\"options\":_vm.timezones,\"label\":\"name\",\"clearable\":false,\"placeholder\":_vm.$t('network.meeting.selectTimezone')},model:{value:(_vm.form.timezone),callback:function ($$v) {_vm.$set(_vm.form, \"timezone\", $$v)},expression:\"form.timezone\"}})],1)]):_vm._e()]),_c('span',{staticClass:\"text-primary fw-bold pointer\",attrs:{\"id\":\"message-preview\",\"data-test\":\"message-preview\"},on:{\"click\":function($event){_vm.message_preview = !_vm.message_preview, _vm.showMessagePreview()}}},[_vm._v(\" \"+_vm._s(_vm.$t('see-preview'))+\" \")])]),_c('div',{staticClass:\"col-md-12 col-lg-12 col-sm-12 mt-4\"},[_c('button',{staticClass:\"btn btn-outline-primary me-2\",staticStyle:{\"border\":\"2px solid\"},attrs:{\"id\":\"save\",\"data-test\":\"save\",\"disabled\":_vm.iftinyEditor ? (_vm.form.title.length === 0 || _vm.form.content.length === 0) : _vm.form.title.length === 0},on:{\"click\":function($event){return _vm.submitRequest('save')}}},[_vm._v(\" \"+_vm._s(_vm.$t('finish-later'))+\" \")]),_c('button',{staticClass:\"btn btn-primary\",attrs:{\"id\":\"send\",\"data-test\":\"send\",\"disabled\":_vm.iftinyEditor ? (_vm.form.title.length === 0 || _vm.form.content.length === 0) : _vm.form.title.length === 0},on:{\"click\":function($event){return _vm.submitRequest('send')}}},[(_vm.form.schedule_message)?_c('div',[_vm._v(_vm._s(_vm.$t('schedule')))]):_c('div',[_vm._v(_vm._s(_vm.$t('send-now')))])])]),(_vm.iftinyEditor)?_c('b-modal',{attrs:{\"id\":\"messagePreviewModal\",\"size\":\"lg\",\"hide-footer\":\"\",\"title\":this.$t('network.messages.networkMessagePreview'),\"body-class\":\"p-0\"},on:{\"hide\":function($event){_vm.message_preview = false}}},[_c('p',{domProps:{\"innerHTML\":_vm._s(_vm.message_preview_html)}})]):_vm._e(),_c('b-modal',{attrs:{\"hide-footer\":\"\",\"hide-header\":\"\",\"size\":\"lg\"},model:{value:(_vm.upcomingMeetings),callback:function ($$v) {_vm.upcomingMeetings=$$v},expression:\"upcomingMeetings\"}},[_c('v-select',{attrs:{\"id\":\"upcoming_meetings\",\"data-test\":\"upcoming_meetings\",\"options\":_vm.upcoming_meetings,\"placeholder\":\"Select meeting to include\",\"label\":\"title\"},on:{\"input\":_vm.addMeeting},scopedSlots:_vm._u([{key:\"option\",fn:function(option){return [_vm._v(\" \"+_vm._s(_vm.utcToLocal(option.start).format('dddd, MMMM D, YYYY, hh:mm A'))+\" - \"),_c('b',[_vm._v(_vm._s(option.title))])]}},{key:\"no-options\",fn:function(){return [_vm._v(_vm._s(_vm.$t('sorry-there-are-no-upcoming-meetings-for-this-network')))]},proxy:true}])})],1),_c('b-modal',{attrs:{\"hide-footer\":\"\",\"hide-header\":\"\",\"size\":\"lg\"},model:{value:(_vm.upcomingMeetingsCalendar),callback:function ($$v) {_vm.upcomingMeetingsCalendar=$$v},expression:\"upcomingMeetingsCalendar\"}},[_c('v-select',{attrs:{\"id\":\"upcoming_meetings_calendar\",\"data-test\":\"upcoming_meetings_calendar\",\"options\":_vm.upcoming_meetings,\"placeholder\":\"Select meeting to add to calendar\",\"label\":\"title\"},on:{\"input\":_vm.addMeetingToCalendar},scopedSlots:_vm._u([{key:\"option\",fn:function(option){return [_vm._v(\" \"+_vm._s(_vm.utcToLocal(option.start).format('dddd, MMMM D, YYYY, hh:mm A'))+\" - \"),_c('b',[_vm._v(_vm._s(option.title))])]}},{key:\"no-options\",fn:function(){return [_vm._v(_vm._s(_vm.$t('sorry-there-are-no-upcoming-meetings-for-this-network')))]},proxy:true}])})],1),_c('b-modal',{attrs:{\"hide-footer\":\"\",\"hide-header\":\"\",\"size\":\"sm\"},on:{\"close\":function($event){_vm.showMessageEditHistoryModal = false}},model:{value:(_vm.showMessageEditHistoryModal),callback:function ($$v) {_vm.showMessageEditHistoryModal=$$v},expression:\"showMessageEditHistoryModal\"}},[_c('h3',{staticStyle:{\"margin-left\":\"35px\"}},[_vm._v(\"Edit history\")]),(_vm.message && _vm.message.history)?_c('div',[_c('ul',{staticClass:\"timeline\"},_vm._l((this.message.history),function(editor){return _c('li',{key:editor},[_c('div',{staticClass:\"direction-r\"},[_c('div',{staticClass:\"flag-wrapper\"},[_c('span',{staticClass:\"flag\"},[_vm._v(_vm._s(_vm.momentShortenedFormat(editor.date)))])]),_c('div',{staticClass:\"desc\"},[_vm._v(\"Updated by \"+_vm._s(editor.name))])])])}),0)]):_vm._e()])],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('label',{attrs:{\"data-test\":\"choose_when_send\",\"for\":\"c\"}},[_c('div',{staticClass:\"can-toggle__switch pointer\",attrs:{\"data-checked\":\"Later\",\"data-unchecked\":\"Now\"}})])\n}]\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./Create.vue?vue&type=template&id=6f27dfd0\"\nimport script from \"./Create.vue?vue&type=script&lang=js\"\nexport * from \"./Create.vue?vue&type=script&lang=js\"\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","var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.appendData)?_c('div',{attrs:{\"nav-mode\":\"light\"}},[(_vm.busy)?_c('div',{staticClass:\"row text-center\"},[_c('lottie-player',{staticStyle:{\"height\":\"130px\"},attrs:{\"autoplay\":\"\",\"loop\":\"\",\"speed\":\"2.5\",\"src\":\"/img/animations/custom_loader.json\"}})],1):_vm._e(),(!_vm.busy)?_c('div',{staticClass:\"row my-3\"},[_c('div',{staticClass:\"col-md-8 offset-2\"},[_c('NetworkMessageForm',{attrs:{\"network\":_vm.network,\"message\":_vm.message,\"reusedContent\":_vm.reusedMessage?.content},on:{\"form-updated\":_vm.formUpdated,\"network-message-form-submit\":function($event){return _vm.$router.push('/networks/' + _vm.slug + '/messages')}}})],1)]):_vm._e()]):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }"],"sourceRoot":""}