{"version":3,"sources":["webpack:///./src/components/email.vue?9280","webpack:///src/components/email.vue","webpack:///./src/components/email.vue?00d6","webpack:///./src/components/email.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","VDialog","attrs","model","value","callback","$$v","dialog","expression","VCard","VToolbar","staticClass","_v","VSubheader","staticStyle","_s","active_item","sender","name","email","VTextField","$set","_l","recipient","index","key","VBtn","on","$event","remove_recipient","rules","regex","scopedSlots","_u","fn","proxy","recipients","length","add_recipient","_e","VTextarea","attachment","VChip","filename","close_dialog","VSpacer","is_loading","send_email","$t","staticRenderFns","component"],"mappings":"iQAaIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAGE,EAAA,KAAQ,CAACC,MAAM,CAAC,MAAQ,QAAQ,WAAa,GAAG,WAAa,IAAIC,MAAM,CAACC,MAAOT,EAAU,OAAEU,SAAS,SAAUC,GAAMX,EAAIY,OAAOD,GAAKE,WAAW,WAAW,CAACT,EAAGU,EAAA,KAAM,CAACV,EAAGW,EAAA,KAAS,CAACR,MAAM,CAAC,MAAQ,sBAAsB,KAAO,KAAK,CAACH,EAAG,cAAc,CAACY,YAAY,OAAOT,MAAM,CAAC,KAAO,gBAAgB,KAAO,KAAK,YAAc,EAAE,KAAO,WAAWH,EAAG,OAAc,CAACJ,EAAIiB,GAAG,oCAAoC,GAAGb,EAAG,OAAU,CAACY,YAAY,QAAQ,CAACZ,EAAGc,EAAA,KAAW,CAACF,YAAY,aAAa,CAAChB,EAAIiB,GAAG,kCAAkCb,EAAG,MAAM,CAACe,YAAY,CAAC,QAAU,OAAO,kBAAkB,OAAO,wBAAwB,oBAAoB,CAACf,EAAG,MAAM,CAACJ,EAAIiB,GAAGjB,EAAIoB,GAAGpB,EAAIqB,YAAYC,OAAOC,SAASnB,EAAG,MAAM,CAACJ,EAAIiB,GAAG,IAAIjB,EAAIoB,GAAGpB,EAAIqB,YAAYC,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EAAIiD,kBAAkB,CAACjD,EAAIiB,GAAG,cAAcb,EAAG8C,EAAA,MAAS9C,EAAG2B,EAAA,KAAK,CAACxB,MAAM,CAAC,QAAUP,EAAImD,WAAW,KAAO,IAAInB,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOjC,EAAIoD,gBAAgB,CAACpD,EAAIiB,GAAGjB,EAAIoB,GAAGpB,EAAIqD,GAAG,aAAa,IAAI,IAAI,IAC/9GC,EAAkB,GC0GtB,G,UAAA,CACA,YACA,6DAEA,OACA,SACA,aACA,YAEA,SACA,YACA,cAEA,QACA,YACA,cAEA,YACA,WACA,gBAEA,SACA,YACA,cAEA,aACA,WACA,gBAEA,OACA,YACA,eAGA,OACA,OACA,cACA,UACA,aACA,aACA,cACA,YACA,eACA,cAEA,OACA,OACA,6BACA,SACA,uDACA,uCAKA,OACA,SACA,UACA,0BAEA,cAEA,SACA,UACA,uCAEA,cAEA,QACA,UACA,qCAEA,cAEA,YACA,UACA,6CAEA,cAEA,SACA,UACA,uCAEA,cAEA,aACA,UACA,+CAEA,eAGA,SACA,WACA,2BACA,SACA,6DACA,KACA,wCAEA,GACA,OAIA,eACA,yCAEA,oBACA,6BAEA,gBACA,0DAEA,aACA,mBACA,OACA,iCACA,uCACA,iCACA,+BACA,mBACA,yCACA,oDAGA,YACA,cACA,+BACA,SAEA,SACA,eACA,2CACA,eACA,kCACA,cAEA,qBAEA,2CACA,aACA,wCACA,gBAIA,UACA,2CACA,aACA,UACA,gBAGA,aACA,yBCpR+U,I,YCO3UC,EAAY,eACd,EACAxD,EACAuD,GACA,EACA,KACA,KACA,MAIa,aAAAC,E","file":"js/chunk-2d0af0a9.ad867dc9.js","sourcesContent":["import { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardActions } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VChip } from 'vuetify/lib/components/VChip';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VSubheader } from 'vuetify/lib/components/VSubheader';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\nimport { VTextarea } from 'vuetify/lib/components/VTextarea';\nimport { VToolbar } from 'vuetify/lib/components/VToolbar';\nimport { VToolbarTitle } from 'vuetify/lib/components/VToolbar';\n\nvar render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(VDialog,{attrs:{\"width\":\"40rem\",\"persistent\":\"\",\"scrollable\":\"\"},model:{value:(_vm.dialog),callback:function ($$v) {_vm.dialog=$$v},expression:\"dialog\"}},[_c(VCard,[_c(VToolbar,{attrs:{\"color\":\"primary white--text\",\"flat\":\"\"}},[_c('sabira_icon',{staticClass:\"mr-3\",attrs:{\"icon\":\"email_invoice\",\"size\":\"42\",\"strokewidth\":3,\"fill\":\"white\"}}),_c(VToolbarTitle,[_vm._v(\"Elektronsko slanje dokumenata\")])],1),_c(VCardText,{staticClass:\"pa-4\"},[_c(VSubheader,{staticClass:\"ml-0 pl-0\"},[_vm._v(\"\\n Pošiljalac\\n \")]),_c('div',{staticStyle:{\"display\":\"grid\",\"grid-column-gap\":\"1rem\",\"grid-template-columns\":\"max-content 1fr\"}},[_c('div',[_vm._v(_vm._s(_vm.active_item.sender.name))]),_c('div',[_vm._v(\"<\"+_vm._s(_vm.active_item.sender.email)+\">\")])]),_c(VTextField,{staticClass:\"mt-2\",attrs:{\"hide-details\":\"\",\"outlined\":\"\",\"label\":\"Naslov\"},model:{value:(_vm.active_item.subject),callback:function ($$v) {_vm.$set(_vm.active_item, \"subject\", $$v)},expression:\"active_item.subject\"}}),_c(VSubheader,{staticClass:\"ml-0 pl-0\"},[_vm._v(\"\\n Primalac\\n \")]),_vm._l((_vm.active_item.recipients),function(recipient,index){return _c('div',{key:'r_' + index,staticClass:\"mb-2\",staticStyle:{\"display\":\"grid\",\"grid-column-gap\":\"1rem\",\"grid-template-columns\":\"1fr 1fr\",\"align-items\":\"center\"}},[_c('div',{staticStyle:{\"display\":\"grid\",\"grid-template-columns\":\"max-content 1fr\",\"align-items\":\"center\"}},[(index > 0)?_c(VBtn,{attrs:{\"icon\":\"\"},on:{\"click\":function($event){return _vm.remove_recipient(index)}}},[_c('sabira_icon',{attrs:{\"icon\":\"trash\"}})],1):_c('div',[_vm._v(\" \")]),_c(VTextField,{attrs:{\"outlined\":\"\",\"hide-details\":\"\",\"label\":\"Naziv primaoca\"},model:{value:(recipient.name),callback:function ($$v) {_vm.$set(recipient, \"name\", $$v)},expression:\"recipient.name\"}})],1),_c('div',{staticStyle:{\"display\":\"grid\",\"grid-template-columns\":\"1fr max-content\",\"align-items\":\"center\"}},[_c(VTextField,{attrs:{\"hide-details\":\"\",\"type\":\"email\",\"rules\":[_vm.rules.email.regex],\"outlined\":\"\",\"label\":\"Email adresa primaoca\"},scopedSlots:_vm._u([{key:\"prepend-inner\",fn:function(){return [_c('sabira_icon',{staticClass:\"mr-2\",attrs:{\"icon\":\"at-sign\"}})]},proxy:true}],null,true),model:{value:(recipient.email),callback:function ($$v) {_vm.$set(recipient, \"email\", $$v)},expression:\"recipient.email\"}}),(index == _vm.recipients.length - 1)?_c(VBtn,{attrs:{\"icon\":\"\"},on:{\"click\":function($event){return _vm.add_recipient()}}},[_c('sabira_icon',{attrs:{\"icon\":\"plus\"}})],1):_vm._e()],1)])}),_c(VTextarea,{staticClass:\"mt-4\",attrs:{\"label\":\"Poruka\",\"hide-details\":\"\",\"clearable\":\"\",\"outlined\":\"\"},model:{value:(_vm.active_item.message),callback:function ($$v) {_vm.$set(_vm.active_item, \"message\", $$v)},expression:\"active_item.message\"}}),_c(VSubheader,{staticClass:\"ml-0 pl-0\"},[_vm._v(\"\\n Prilog\\n \")]),_vm._l((_vm.active_item.attachments),function(attachment,index){return _c(VChip,{key:'a_' + index,staticClass:\"pl-2\",attrs:{\"label\":\"\",\"color\":\"primary\"}},[_c('sabira_icon',{staticClass:\"left mr-2\",attrs:{\"width\":20,\"fill\":\"white\",\"icon\":\"file-pdf\"}}),_vm._v(\"\\n \"+_vm._s(attachment.filename)+\"\\n \")],1)})],2),_c(VCardActions,{staticClass:\"background\"},[_c(VBtn,{attrs:{\"text\":\"\"},on:{\"click\":function($event){return _vm.close_dialog()}}},[_vm._v(\"Odustani\")]),_c(VSpacer),_c(VBtn,{attrs:{\"loading\":_vm.is_loading,\"text\":\"\"},on:{\"click\":function($event){return _vm.send_email()}}},[_vm._v(_vm._s(_vm.$t(\"send\")))])],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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!./email.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!./email.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./email.vue?vue&type=template&id=0d2107a5&\"\nimport script from \"./email.vue?vue&type=script&lang=js&\"\nexport * from \"./email.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":""}