{"version":3,"sources":["webpack:///./src/views/Components/MessageTemplate/RenderedMessage.vue","webpack:///src/views/Components/MessageTemplate/RenderedMessage.vue","webpack:///./src/views/Components/MessageTemplate/RenderedMessage.vue?03ea","webpack:///./src/views/Components/MessageTemplate/RenderedMessage.vue?8d45"],"names":["render","_vm","this","_c","_self","message","mode","staticClass","on","$event","$emit","subject","renderedSubject","renderedMessage","rawTemplateMessage","rawTemplateSubject","isDefault","staticStyle","directives","name","rawName","modifiers","attrs","_e","scopedSlots","_u","key","fn","proxy","e","stopPropagation","_v","_s","isNew","model","value","innerMessage","callback","$$v","$set","expression","preventDefault","copy","_l","fields","t","copyTemplate","staticRenderFns","props","templateData","data","isDropDownOpen","showPopUp","watch","immediate","handler","val","computed","renderTemplate","methods","_this","navigator","clipboard","writeText","then","$emitter","emit","toLocaleString","minimumFractionDigits","maximumFractionDigits","replace","RegExp","component"],"mappings":"uJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAAsB,QAApBF,EAAII,QAAQC,KAAgBH,EAAG,MAAM,CAACI,YAAY,4BAA4BC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOR,EAAIS,MAAM,WAAY,CAC9MC,QAASV,EAAIW,gBACbP,QAASJ,EAAIY,gBACbC,mBAAoBb,EAAII,QAAQA,QAChCU,mBAAoBd,EAAII,QAAQM,aAC5B,EAA4B,IAA1BV,EAAII,QAAQW,UAAoBb,EAAG,MAAM,CAACI,YAAY,eAAeU,YAAY,CAAC,SAAW,WAAW,MAAQ,OAAO,QAAU,cAAc,cAAc,SAAS,kBAAkB,SAAS,QAAU,WAAW,MAAQ,OAAO,YAAY,OAAO,cAAc,SAAS,CAACd,EAAG,IAAI,CAACe,WAAW,CAAC,CAACC,KAAK,YAAYC,QAAQ,oBAAoBC,UAAU,CAAC,OAAQ,KAAQd,YAAY,0BAA0Be,MAAM,CAAC,MAAQ,wBAAwBrB,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,CACAiD,WAAA,EACAC,QAAA,SAAAC,GACA,KAAApB,aAAAoB,KAIAC,SAAA,CACA7C,gBAAA,WACA,YAAA8C,eAAA,KAAArD,QAAAM,UAEAE,gBAAA,WACA,IAAAR,EAAA,KAAAqD,eAAA,KAAArD,iBAEA,OAAAA,IAGAsD,QAAA,CACAb,aAAA,SAAAD,GAAA,IAAAe,EAAA,KAGAC,UAAAC,UAAAC,UAAAlB,GAAAmB,MAAA,WACAJ,EAAAK,SAAAC,KAAA,WAAA7D,QAAAwC,EAAA,8BAGAa,eAAA,SAAArD,GACA,IAAA4C,EAAA,KAAAA,aACA,IAAA5C,EAAA,SAQA,QAAAqB,KANAuB,EAAA,kBAAAA,EACA,kBACAkB,eAAA,SACAC,sBAAA,EACAC,sBAAA,IAEApB,EACA5C,IAAAiE,QACA,IAAAC,OAAA,KAAA7C,EAAA,UACAuB,EAAAvB,IAMA,OAAArB,MC3NsX,I,YCOlXmE,EAAY,eACd,EACAxE,EACA+C,GACA,EACA,KACA,KACA,MAIa,aAAAyB,E","file":"js/Components-MessageTemplate-RenderedMessage-vue.c2cbc942.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[(_vm.message.mode == 'view')?_c('div',{staticClass:\"shadow-none card prm-card\",on:{\"click\":function($event){return _vm.$emit('selected', {\n subject: _vm.renderedSubject,\n message: _vm.renderedMessage,\n rawTemplateMessage: _vm.message.message,\n rawTemplateSubject: _vm.message.subject,\n })}}},[(_vm.message.isDefault === true)?_c('div',{staticClass:\"default-pill\",staticStyle:{\"position\":\"absolute\",\"right\":\"60px\",\"display\":\"inline-flex\",\"align-items\":\"center\",\"justify-content\":\"center\",\"padding\":\"5px 10px\",\"color\":\"gray\",\"font-size\":\"12px\",\"font-weight\":\"bold\"}},[_c('i',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",modifiers:{\"hover\":true}}],staticClass:\"fa-solid fa-circle-star\",attrs:{\"title\":\"Default Template\"}})]):_vm._e(),_c('div',{staticClass:\"text-center\",staticStyle:{\"position\":\"absolute\",\"right\":\"0px\",\"top\":\"0px\"}},[_c('b-dropdown',{staticClass:\"p-0 m-0\",attrs:{\"dropleft\":\"\",\"variant\":\"link\",\"toggle-class\":\"text-decoration-none\",\"no-caret\":\"\",\"size\":\"lg\",\"id\":\"dropdown-1\",\"text\":\"Action\"},scopedSlots:_vm._u([{key:\"button-content\",fn:function(){return [_c('div',{staticClass:\"prm-options\"},[_c('i',{staticClass:\"fa-solid fa-circle-ellipsis\"})])]},proxy:true}],null,false,3211327258)},[_c('b-dropdown-item',{on:{\"click\":(e) => {\n e.stopPropagation();\n _vm.$emit('edit', _vm.message);\n }}},[_c('i',{staticClass:\"fa-solid fa-pen\"}),_vm._v(\"Edit\")]),_c('b-dropdown-item',{on:{\"click\":(e) => {\n e.stopPropagation();\n _vm.$emit('makeDefault', _vm.message);\n }}},[_c('i',{staticClass:\"fa fa-star\"}),_vm._v(\"Make Default\")]),_c('b-dropdown-item',{on:{\"click\":(e) => {\n e.stopPropagation();\n _vm.$emit('delete', _vm.message);\n }}},[_c('i',{staticClass:\"fa-solid fa-trash\"}),_vm._v(\"Delete\")])],1)],1),_c('div',{staticClass:\"select-pill\"},[_vm._v(\"Select Template\")]),_c('b',[_vm._v(\"Email Subject\")]),_c('div',{staticClass:\"pt-1 pb-4\"},[_vm._v(\"\\n \"+_vm._s(_vm.renderedSubject)+\"\\n \")]),_c('b',[_vm._v(\"Message\")]),_c('div',{staticClass:\"pt-1\",staticStyle:{\"white-space\":\"pre-wrap\"}},[_vm._v(_vm._s(_vm.renderedMessage))]),_c('br')]):_vm._e(),(_vm.message.mode == 'edit')?_c('div',{staticClass:\"shadow card prm-card prm-card-edit\"},[_c('b-row',[_c('b-col',{staticClass:\"prm-main\"},[(!_vm.message.isNew)?_c('h3',{staticClass:\"pb-4\"},[_vm._v(\"Edit Message\")]):_vm._e(),(_vm.message.isNew)?_c('h3',{staticClass:\"pb-4\"},[_vm._v(\"Create Message Template\")]):_vm._e(),_c('label',{staticClass:\"form-control-label\"},[_vm._v(\"Email Subject\")]),_c('b-input',{model:{value:(_vm.innerMessage.subject),callback:function ($$v) {_vm.$set(_vm.innerMessage, \"subject\", $$v)},expression:\"innerMessage.subject\"}}),_c('label',{staticClass:\"form-control-label pt-4\"},[_vm._v(\"Message\")]),_c('b-textarea',{staticClass:\"form-control p-3\",attrs:{\"label\":\"Message\",\"rows\":\"4\"},model:{value:(_vm.innerMessage.message),callback:function ($$v) {_vm.$set(_vm.innerMessage, \"message\", $$v)},expression:\"innerMessage.message\"}}),_c('div',{staticClass:\"text-right mt-3\",staticStyle:{\"display\":\"flex\",\"justify-content\":\"flex-end\"}},[(!_vm.innerMessage.isNew)?_c('b-button',{attrs:{\"variant\":\"danger\"},on:{\"click\":function($event){return _vm.$emit('cancel')}}},[_vm._v(\"Cancel\")]):_vm._e(),(_vm.innerMessage.isNew)?_c('b-button',{staticStyle:{\"margin-top\":\"10px\"},attrs:{\"variant\":\"danger\"},on:{\"click\":function($event){return _vm.$emit('cancelCreate')}}},[_vm._v(\"Cancel\")]):_vm._e(),_c('div',{staticStyle:{\"width\":\"100%\",\"text-align\":\"right\"}},[_c('b-button',{attrs:{\"variant\":\"success\"},on:{\"click\":function($event){return _vm.$emit('saved', _vm.innerMessage)}}},[_vm._v(\"Save Template\")])],1)],1)],1),_c('b-col',{staticClass:\"prm-sidebar text-left\",attrs:{\"md\":\"auto\"}},[_c('h3',{staticClass:\"pb-1\"},[_vm._v(\"Dynamic Fields\")]),_c('p',{staticStyle:{\"font-size\":\"0.8em\",\"line-height\":\"1.2em\"}},[_vm._v(\"\\n Click the dynamic field and paste into your message.\\n \")]),_c('div',{staticClass:\"prm-df\"},[_c('a',{attrs:{\"href\":\"#\"},on:{\"click\":function($event){$event.preventDefault();return _vm.copy(_vm.key.key)}}},_vm._l((_vm.fields),function(t){return _c('div',{key:t,staticClass:\"pb-3\"},[_c('a',{attrs:{\"href\":\"#\"},on:{\"click\":(e) => {\n e.stopPropagation();\n _vm.copyTemplate(t);\n }}},[_vm._v(\"\\n \"+_vm._s(t)+\"\\n \")])])}),0)])])],1)],1):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","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!./RenderedMessage.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!./RenderedMessage.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./RenderedMessage.vue?vue&type=template&id=7c693c41\"\nimport script from \"./RenderedMessage.vue?vue&type=script&lang=js\"\nexport * from \"./RenderedMessage.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"],"sourceRoot":""}