{"version":3,"sources":["webpack:///../../../src/components/VTextarea/VTextarea.ts","webpack:///./src/components/campaign.vue","webpack:///src/components/campaign.vue","webpack:///./src/components/campaign.vue?6be3","webpack:///./src/components/campaign.vue?4a01","webpack:///./src/components/campaign.vue?9729"],"names":["baseMixins","extend","name","props","autoGrow","Boolean","noResize","rowHeight","type","Number","String","default","validator","v","isNaN","parseFloat","rows","parseInt","computed","this","noResizeHandle","options","classes","call","watch","val","$nextTick","calculateInputHeight","$refs","input","style","removeProperty","setTimeout","methods","height","scrollHeight","minHeight","Math","max","genInput","tag","data","attrs","e","onInput","isFocused","keyCode","stopPropagation","$emit","scopedSlots","key","callback","_vm","active_tab","staticClass","mc","_c","print","on","show_email","show_delete_options","current","staticStyle","model","expression","ref","campaign_start","value","modal_campaign_start","$$v","save_campaign_start","$set","campaign_end_formatted","modal_campaign_end","campaign_end","status","status_percent","total_expense_calculated","suppliers_expense_formatted","item","description","desc_score","goalsScoresAverage","search_text","is_loading","itemsPerPage","fn","dodaj_artikal","_v","close_dialog","$event","delete_mc","staticRenderFns","render","QRCode","component"],"mappings":"gKAAA,sCAkBA,MAAMA,EAAa,eAGjB,QAIa,OAAAA,EAAWC,OAAO,CAC/BC,KAAM,aAENC,MAAO,CACLC,SAAUC,QACVC,SAAUD,QACVE,UAAW,CACTC,KAAM,CAACC,OAAQC,QACfC,QAAS,GACTC,UAAYC,IAAYC,MAAMC,WAAWF,KAE3CG,KAAM,CACJR,KAAM,CAACC,OAAQC,QACfC,QAAS,EACTC,UAAYC,IAAYC,MAAMG,SAASJ,EAAG,OAI9CK,SAAU,CACR,UACE,MAAO,CACL,cAAc,EACd,wBAAyBC,KAAKf,SAC9B,wBAAyBe,KAAKC,kBAC3B,OAAWC,QAAQH,SAASI,QAAQC,KAAKJ,QAGhD,iBACE,OAAOA,KAAKb,UAAYa,KAAKf,WAIjCoB,MAAO,CACL,SAAUC,GACRN,KAAKO,UAAU,K,MACbD,EACIN,KAAKQ,uBACW,QAAhB,EAA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mBACA,GAEA,kEAEA,2BACA,8CACA,wCACA,kCAEA,eACA,+BAGA,iBACA,uCACA,wCACA,wCACA,kCAEA,QACA,aACA,eAGA,QACA,gCACA,IAEA,KAGA,oBACA,8CACA,wCACA,kCAEA,iCACA,IAGA,8BACA,8BACA,uDACA,GAEA,2BACA,8BACA,sEACA,MAEA,yBACA,4BACA,oEACA,MAEA,WACA,4CACA,wBACA,uBACA,gBACA,iBACA,cACA,KAEA,GAEA,YACA,4CACA,wBACA,uBACA,gBACA,oBACA,cACA,KAEA,GAEA,cACA,4CACA,wBACA,uBACA,gBACA,gBACA,cACA,KAEA,IAGA,WACA,gBACA,oBACA,MACA,iBACA,aACA,cACA,2CACA,uBACA,cACA,kBACA,wBACA,sBACA,cACA,WACA,SACA,UACA,uCACA,uDACA,mCACA,yDAEA,mCACA,oCAEA,qBACA,IACA,WACA,KACA,mBACA,0BACA,oBACA,kBACA,YACA,iBACA,iBACA,mBACA,iBACA,iBACA,gBACA,UACA,iBACA,WAEA,MACA,KACA,aACA,iBACA,iBAGA,OACA,YACA,CACA,UACA,aAGA,QACA,UACA,YAEA,aACA,aACA,gBAEA,SACA,CACA,aACA,cACA,aACA,cAEA,CACA,aACA,cACA,aACA,eAEA,CACA,gBACA,YACA,aACA,cAEA,CACA,UACA,cACA,aACA,cAEA,CACA,cACA,eACA,aACA,cAEA,CACA,eACA,cACA,aACA,cAEA,CACA,wBACA,eACA,aACA,cAEA,CACA,UACA,gBACA,eAGA,UACA,CACA,UACA,WACA,YACA,qBAEA,CACA,mBACA,oBACA,YACA,cAEA,CACA,gBACA,sBACA,YACA,cAEA,CACA,iBACA,uBACA,YACA,cAEA,CACA,qBACA,uBACA,YACA,aACA,WAEA,CACA,iBACA,oBACA,YACA,kBAIA,OACA,SACA,UACA,WACA,gBACA,+BAEA,SACA,WACA,KACA,mBACA,0BACA,oBACA,kBACA,YACA,iBACA,iBACA,mBACA,iBACA,iBACA,gBACA,UACA,iBACA,WAEA,WACA,KACA,aACA,iBACA,iBAGA,yBACA,qBACA,YACA,qBAGA,cAEA,0BACA,UACA,kDAEA,cAEA,gBACA,UACA,8BAEA,cAEA,YACA,UACA,kBACA,0BACA,kBAIA,cACA,UACA,4BACA,SACA,OACA,+BACA,YACA,iBACA,4BACA,EACA,gCAGA,UAGA,SACA,iBACA,yCACA,0CAEA,qBACA,4CACA,8CAEA,WACA,2BACA,SAEA,6BACA,kCAEA,KACA,iDAEA,0CACA,2BAEA,gBACA,cACA,qBAEA,uCAGA,eACA,oBACA,WACA,cAEA,kDAGA,aACA,WACA,kBACA,SACA,mBAEA,oDAGA,GACA,OAIA,YACA,2BACA,SACA,2DACA,yBACA,KACA,2CACA,aACA,uBACA,eAIA,GACA,SAIA,aACA,2BACA,SAEA,2CACA,0CAEA,yCACA,KACA,IACA,2CACA,aACA,iCACA,eAGA,GACA,SAIA,kBACA,sDAEA,gBACA,GACA,8BACA,2CAEA,GAGA,qBAFA,qBACA,mCAEA,CACA,2BACA,mCAEA,cAEA,sBACA,4BACA,kCACA,kCACA,iCACA,MACA,QACA,qCACA,gDACA,oCAGA,QACA,2CAOA,2CACA,aACA,4BACA,eAIA,WACA,YACA,cACA,wCACA,MACA,+CACA,cAGA,SACA,sBACA,mBACA,6BACA,oCACA,kCAEA,QACA,2BAEA,4BAEA,2BACA,kEACA,QACA,2BAEA,0BAEA,yCACA,mBACA,mCACA,sCAEA,mBACA,iEACA,sBACA,UAEA,UACA,YACA,cACA,oBACA,MACA,+CACA,0BAEA,SACA,2CACA,uBAEA,4CACA,uBAEA,+BAIA,wBACA,YACA,cACA,6BACA,MACA,+CACA,cAEA,SACA,qBACA,sDACA,sBAGA,eACA,4BACA,gDAGA,sBACA,+DAEA,oBACA,2DAEA,gBACA,gBACA,UACA,uBACA,yDACA,iBACA,uBACA,0CACA,8CAGA,YACA,cACA,uBACA,iBAEA,SACA,eACA,iBACA,YACA,cACA,uBACA,MACA,kDAGA,eACA,sEACA,wBAEA,kBACA,uBACA,2CACA,aACA,QACA,8BACA,+FACA,iBAIA,iCACA,wBAGA,uBACA,2CACA,aACA,QACA,wCACA,oCACA,iBAIA,kBACA,uBACA,2CACA,aACA,QACA,kCACA,+FACA,kBAIA,UACA,uBACA,2CACA,aACA,sCACA,iBAIA,iBACA,8BACA,4DACA,QACA,2BACA,kDAEA,4BACA,uCAEA,2BACA,wDACA,QACA,2BAEA,0BAEA,uDACA,YACA,cACA,uBACA,aACA,SACA,mDAGA,SACA,gBACA,2CACA,eACA,0CACA,cAEA,uBACA,kDACA,oBACA,6CAEA,uBACA,2CACA,aACA,QACA,sDACA,iBAIA,kBACA,uBACA,2CACA,aACA,QACA,0CACA,+FACA,iBAIA,YACA,YACA,cACA,iCACA,MACA,+CACA,WACA,mCAEA,SACA,eACA,2CACA,eACA,yCACA,cAEA,oBACA,4CAEA,2CACA,aACA,uBACA,iBAKA,SACA,4CACA,mDACA,0BACA,gBACA,UACA,YACA,sBAEA,4BACA,iBACA,uBACA,4DACA,kCACA,oDACA,aACA,UACA,kBACA,QACA,sBACA,cACA,YACA,yBAEA,cACA,cACA,qCAEA,gCACA,MACA,CACA,2CAIA,aACA,qCACA,mBACA,QACA,sBACA,cACA,WACA,yBAEA,cACA,cACA,mCAEA,gCACA,MACA,CACA,qBAIA,aACA,qCACA,mBACA,QACA,sBACA,cACA,YAEA,cACA,cACA,+CACA,mCAEA,gCACA,MACA,mDACA,yDACA,6DACA,wDACA,6CACA,oDACA,iDACA,+CAGA,aACA,qCACA,mBACA,QACA,sBACA,cACA,WACA,yBAEA,cACA,cACA,mCAEA,gCACA,MACA,CACA,qBAIA,aACA,qCACA,mBACA,QACA,sBACA,cACA,YAEA,cACA,cACA,+CACA,kCACA,mCAEA,gCACA,MACA,+DACA,CACA,0BACA,wCAEA,CACA,8BACA,2CAEA,CACA,uCACA,2BAEA,8DACA,CACA,wCACA,0BAEA,8DAGA,aACA,qCACA,mBACA,QACA,sBACA,cACA,WACA,yBAEA,cACA,cACA,mCAEA,gCACA,MACA,CACA,mBAKA,aACA,qCACA,mBACA,oBACA,QACA,sBACA,cACA,YAEA,cACA,cACA,kCACA,qCAEA,2CACA,SACA,4CACA,EACA,sDAKA,IADA,oCACA,cACA,aACA,QACA,aACA,oCACA,iCACA,MACA,MACA,gCACA,QAEA,iBACA,yBACA,UACA,gBAGA,YACA,kCACA,4BACA,cACA,qCAIA,OACA,+BACA,IACA,KAGA,iBACA,OACA,yGACA,GACA,KAIA,MACA,iBACA,+DACA,mBACA,mCACA,sCAEA,6BACA,sCACA,UACA,oBAEA,mBACA,kFACA,sBACA,SAEA,sCAGA,wBACA,kDACA,UACA,yBACA,6BACA,6CAEA,yBACA,2BACA,kCAGA,sDACA,UACA,2BACA,iCAEA,2BACA,gCAGA,mDACA,0BAEA,oDACA,0CACA,yBACA,mBAGA,oDACA,sBAGA,0BACA,gDACA,gDACA,iDACA,kDACA,oDACA,mDAGA,UACA,gBACA,8BAEA,YACA,iCChiDiV,I,wBCQ7UC,EAAY,eACd,EACA,EACAH,GACA,EACA,KACA,WACA,MAIa,aAAAG,E,2CCnBf","file":"js/chunk-703b04b8.102aa8fd.js","sourcesContent":["// Styles\nimport './VTextarea.sass'\n\n// Extensions\nimport VTextField from '../VTextField/VTextField'\n\n// Utilities\nimport mixins from '../../util/mixins'\n\n// Types\nimport Vue from 'vue'\n\ninterface options extends Vue {\n $refs: {\n input: HTMLTextAreaElement\n }\n}\n\nconst baseMixins = mixins\n>(\n VTextField\n)\n\n/* @vue/component */\nexport default baseMixins.extend({\n name: 'v-textarea',\n\n props: {\n autoGrow: Boolean,\n noResize: Boolean,\n rowHeight: {\n type: [Number, String],\n default: 24,\n validator: (v: any) => !isNaN(parseFloat(v)),\n },\n rows: {\n type: [Number, String],\n default: 5,\n validator: (v: any) => !isNaN(parseInt(v, 10)),\n },\n },\n\n computed: {\n classes (): object {\n return {\n 'v-textarea': true,\n 'v-textarea--auto-grow': this.autoGrow,\n 'v-textarea--no-resize': this.noResizeHandle,\n ...VTextField.options.computed.classes.call(this),\n }\n },\n noResizeHandle (): boolean {\n return this.noResize || this.autoGrow\n },\n },\n\n watch: {\n autoGrow (val: boolean) {\n this.$nextTick(() => {\n val\n ? this.calculateInputHeight()\n : this.$refs.input?.style.removeProperty('height')\n })\n },\n lazyValue () {\n this.autoGrow && this.$nextTick(this.calculateInputHeight)\n },\n rowHeight () {\n this.autoGrow && this.$nextTick(this.calculateInputHeight)\n },\n },\n\n mounted () {\n setTimeout(() => {\n this.autoGrow && this.calculateInputHeight()\n }, 0)\n },\n\n methods: {\n calculateInputHeight () {\n const input = this.$refs.input\n if (!input) return\n\n input.style.height = '0'\n const height = input.scrollHeight\n const minHeight = parseInt(this.rows, 10) * parseFloat(this.rowHeight)\n // This has to be done ASAP, waiting for Vue\n // to update the DOM causes ugly layout jumping\n input.style.height = Math.max(minHeight, height) + 'px'\n },\n genInput () {\n const input = VTextField.options.methods.genInput.call(this)\n\n input.tag = 'textarea'\n delete input.data!.attrs!.type\n input.data!.attrs!.rows = this.rows\n\n return input\n },\n onInput (e: Event) {\n VTextField.options.methods.onInput.call(this, e)\n this.autoGrow && this.calculateInputHeight()\n },\n onKeyDown (e: KeyboardEvent) {\n // Prevents closing of a\n // dialog when pressing\n // enter\n if (this.isFocused && e.keyCode === 13) {\n e.stopPropagation()\n }\n\n this.$emit('keydown', e)\n },\n },\n})\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-dialog',{attrs:{\"width\":\"75rem\",\"persistent\":\"\",\"scrollable\":\"\"},model:{value:(_vm.visible),callback:function ($$v) {_vm.visible=$$v},expression:\"visible\"}},[(_vm.is_loading)?_c('v-card',[_c('v-skeleton-loader',{attrs:{\"type\":\"card, list-item@8\"}})],1):[_c('v-card',[_c('v-toolbar',{attrs:{\"color\":\"primary white--text\",\"flat\":\"\"},scopedSlots:_vm._u([{key:\"extension\",fn:function(){return [_c('v-tabs',{attrs:{\"hide-slider\":\"\",\"background-color\":\"background darken\"},model:{value:(_vm.active_tab),callback:function ($$v) {_vm.active_tab=$$v},expression:\"active_tab\"}},[_c('v-tab',[_vm._v(\"Info\")]),_c('v-tab',[_vm._v(\"Ciljevi\")]),_c('v-tab',[_vm._v(\"Troškovi\")]),_c('v-tab',[_vm._v(\"Artikli\")]),_c('v-tab',[_vm._v(\"PI (ROI)\")])],1)]},proxy:true}])},[_c('sabira_icon',{staticClass:\"mr-3\",attrs:{\"icon\":\"marketing\",\"strokewidth\":3,\"fill\":\"white\"}}),(_vm.mc.id > 0)?_c('v-toolbar-title',{staticClass:\"ml-1\"},[_vm._v(\"\\n \"+_vm._s(this.mc.campaign_name)+\"\\n \")]):_c('v-toolbar-title',{staticClass:\"ml-1\"},[_vm._v(\"\\n \"+_vm._s(_vm.title2)+\"\\n \")]),_c('v-spacer'),_c('div',{staticClass:\"text-h5 mr-4\"},[_vm._v(_vm._s(_vm.total_expense_calculated)+\" KM\")]),(_vm.mc.id > 0)?_c('v-toolbar-items',[_c('v-tooltip',{attrs:{\"left\":\"\",\"color\":\"#e9c46a\",\"open-on-hover\":\"\",\"open-delay\":\"150\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-btn',_vm._g(_vm._b({attrs:{\"icon\":\"\"},on:{\"click\":function($event){return _vm.print(false)}}},'v-btn',attrs,false),on),[_c('sabira_icon',{attrs:{\"icon\":\"file-pdf\",\"fill\":\"white\"}})],1)]}}],null,false,3133569643)},[_c('span',[_vm._v(\"Marketing kampanja pdf\")])]),_c('v-tooltip',{attrs:{\"left\":\"\",\"color\":\"#e9c46a\",\"open-on-hover\":\"\",\"open-delay\":\"150\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-btn',_vm._g(_vm._b({attrs:{\"icon\":\"\"},on:{\"click\":function($event){_vm.show_email = true}}},'v-btn',attrs,false),on),[_c('sabira_icon',{attrs:{\"icon\":\"email_invoice\",\"fill\":\"white\"}})],1)]}}],null,false,4103263404)},[_c('span',[_vm._v(\"Pošalji marketing kampanju\")])]),_c('v-spacer'),_c('v-tooltip',{attrs:{\"left\":\"\",\"color\":\"#e9c46a\",\"open-on-hover\":\"\",\"open-delay\":\"150\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-btn',_vm._g(_vm._b({attrs:{\"icon\":\"\"},on:{\"click\":function($event){_vm.show_delete_options = true}}},'v-btn',attrs,false),on),[_c('sabira_icon',{attrs:{\"icon\":\"trash\",\"fill\":\"white\"}})],1)]}}],null,false,3388525224)},[_c('span',[_vm._v(\"Obriši marketing kampanju\")])])],1):_vm._e()],1),_c('v-sheet',{staticClass:\"pl-7 pt-3\",attrs:{\"height\":\"3rem\",\"color\":\"quinary\"}},[_c('sabira_progress_bar',{staticClass:\"tertiry--text\",attrs:{\"status\":{\n min: 0,\n max: _vm.mc.planned_budget,\n current: _vm.total_expense_bar,\n }}})],1),_c('v-card-text',{staticClass:\"pa-4\",staticStyle:{\"height\":\"30rem\"}},[_c('v-tabs-items',{model:{value:(_vm.active_tab),callback:function ($$v) {_vm.active_tab=$$v},expression:\"active_tab\"}},[_c('v-tab-item',[_c('div',{staticStyle:{\"display\":\"grid\",\"grid-template-columns\":\"1fr 1fr 1fr\",\"grid-row-gap\":\"1rem\",\"margin-bottom\":\"-1rem\"}},[_c('v-text-field',{staticClass:\"mr-4 pt-1\",attrs:{\"label\":\"Naziv kampanje\",\"outlined\":\"\",\"maxlength\":\"100\",\"counter\":\"\"},model:{value:(_vm.mc.campaign_name),callback:function ($$v) {_vm.$set(_vm.mc, \"campaign_name\", $$v)},expression:\"mc.campaign_name\"}}),_c('v-dialog',{ref:\"dialog_campaign_start\",attrs:{\"return-value\":_vm.mc.campaign_start,\"persistent\":\"\",\"width\":\"290px\"},on:{\"update:returnValue\":function($event){return _vm.$set(_vm.mc, \"campaign_start\", $event)},\"update:return-value\":function($event){return _vm.$set(_vm.mc, \"campaign_start\", $event)}},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-text-field',_vm._g(_vm._b({staticClass:\"mr-4 pt-1\",attrs:{\"value\":_vm.campaign_start_formatted,\"label\":\"Kampanja počinje na datum\",\"prepend-inner-icon\":\"mdi-calendar\",\"readonly\":\"\",\"outlined\":\"\",\"hide-details\":\"\",\"width\":80}},'v-text-field',attrs,false),on))]}}]),model:{value:(_vm.modal_campaign_start),callback:function ($$v) {_vm.modal_campaign_start=$$v},expression:\"modal_campaign_start\"}},[_c('v-date-picker',{attrs:{\"locale\":\"bs-bs\",\"first-day-of-week\":1,\"show-week\":true},on:{\"change\":_vm.save_campaign_start},model:{value:(_vm.mc.campaign_start),callback:function ($$v) {_vm.$set(_vm.mc, \"campaign_start\", $$v)},expression:\"mc.campaign_start\"}})],1),_c('v-dialog',{ref:\"dialog_campaign_end\",attrs:{\"return-value\":_vm.mc.campaign_end,\"persistent\":\"\",\"width\":\"290px\"},on:{\"update:returnValue\":function($event){return _vm.$set(_vm.mc, \"campaign_end\", $event)},\"update:return-value\":function($event){return _vm.$set(_vm.mc, \"campaign_end\", $event)}},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-text-field',_vm._g(_vm._b({staticClass:\"pt-1\",attrs:{\"label\":\"Kampanja završava na datum\",\"prepend-inner-icon\":\"mdi-calendar\",\"readonly\":\"\",\"outlined\":\"\",\"hide-details\":\"\",\"width\":80},model:{value:(_vm.campaign_end_formatted),callback:function ($$v) {_vm.campaign_end_formatted=$$v},expression:\"campaign_end_formatted\"}},'v-text-field',attrs,false),on))]}}]),model:{value:(_vm.modal_campaign_end),callback:function ($$v) {_vm.modal_campaign_end=$$v},expression:\"modal_campaign_end\"}},[_c('v-date-picker',{attrs:{\"locale\":\"bs-bs\",\"first-day-of-week\":1,\"show-week\":true},on:{\"change\":_vm.save_campaign_end},model:{value:(_vm.mc.campaign_end),callback:function ($$v) {_vm.$set(_vm.mc, \"campaign_end\", $$v)},expression:\"mc.campaign_end\"}})],1)],1),_c('div',{staticStyle:{\"margin-top\":\"1rem\",\"margin-bottom\":\"-0.7rem\",\"display\":\"grid\",\"grid-template-columns\":\"1fr 1fr\",\"grid-row-gap\":\"1rem\"}},[_c('v-textarea',{staticClass:\"mr-4\",staticStyle:{\"padding-bottom\":\"-2rem\"},attrs:{\"outlined\":\"\",\"label\":\"Opis marketing kampanje\",\"rows\":\"5\",\"clearable\":\"\",\"maxlength\":\"1000\",\"counter\":\"\",\"placeholder\":\"Generalni opis i svrha marketing kampanje\"},model:{value:(_vm.mc.campaign_description),callback:function ($$v) {_vm.$set(_vm.mc, \"campaign_description\", $$v)},expression:\"mc.campaign_description\"}}),_c('div',[_c('div',{staticStyle:{\"display\":\"grid\",\"grid-template-columns\":\"1fr 1fr\",\"margin-bottom\":\"1.6rem\"}},[_c('v-select',{staticClass:\"mt-0 mr-2\",attrs:{\"items\":_vm.statuses,\"label\":\"Status kampanje\",\"hide-details\":\"\",\"outlined\":\"\",\"clearable\":\"\"},model:{value:(_vm.mc.status),callback:function ($$v) {_vm.$set(_vm.mc, \"status\", $$v)},expression:\"mc.status\"}}),_c('v-text-field',{staticClass:\"ml-2\",attrs:{\"hide-details\":\"\",\"outlined\":\"\",\"label\":\"Status %\",\"type\":\"number\"},on:{\"input\":function($event){return _vm.validate2()}},model:{value:(_vm.mc.status_percent),callback:function ($$v) {_vm.$set(_vm.mc, \"status_percent\", _vm._n($$v))},expression:\"mc.status_percent\"}})],1),_c('div',{staticStyle:{\"display\":\"grid\",\"grid-template-columns\":\"1fr 1fr\",\"column-gap\":\"1rem\"}},[_c('webpage_lookup_work_order_worker',{attrs:{\"update\":\"wp_worker_changed\",\"selected_id\":_vm.mc.employee_id}}),_c('webpage_lookup_departments',{attrs:{\"update\":\"wp_department_changed\",\"selected_id\":_vm.mc.department_id}})],1)])],1),_c('div',{staticStyle:{\"display\":\"grid\",\"grid-template-columns\":\"1fr 1fr 1fr\",\"grid-row-gap\":\"1rem\"}},[_c('v-text-field',{staticClass:\"mr-4 mt-3\",attrs:{\"outlined\":\"\",\"type\":\"number\",\"label\":\"Planirani budžet - ručni unos\"},model:{value:(_vm.mc.planned_budget),callback:function ($$v) {_vm.$set(_vm.mc, \"planned_budget\", $$v)},expression:\"mc.planned_budget\"}},[_vm._v(\"0\")]),_c('v-text-field',{staticClass:\"mt-3 mr-4\",attrs:{\"outlined\":\"\",\"readonly\":\"\",\"label\":\"Ukupni trošak - automatski obračun\"},model:{value:(_vm.total_expense_calculated),callback:function ($$v) {_vm.total_expense_calculated=$$v},expression:\"total_expense_calculated\"}}),_c('v-text-field',{staticClass:\"mt-3\",attrs:{\"outlined\":\"\",\"type\":\"number\",\"label\":\"Ostali troškovi - ručni unos\"},model:{value:(_vm.mc.other_expenses),callback:function ($$v) {_vm.$set(_vm.mc, \"other_expenses\", _vm._n($$v))},expression:\"mc.other_expenses\"}})],1),_c('div',{staticStyle:{\"display\":\"grid\",\"grid-template-columns\":\"1fr 1fr 1fr\",\"grid-row-gap\":\"1rem\"}},[_c('v-text-field',{staticClass:\"mr-4\",attrs:{\"outlined\":\"\",\"label\":\"Trošak dobavljača - automatski obračun\",\"readonly\":\"\"},model:{value:(_vm.suppliers_expense_formatted),callback:function ($$v) {_vm.suppliers_expense_formatted=$$v},expression:\"suppliers_expense_formatted\"}}),_c('v-text-field',{staticClass:\"mr-4\",attrs:{\"label\":\"Artikli - automatski obračun\",\"outlined\":\"\",\"readonly\":\"\"},model:{value:(_vm.grand_total),callback:function ($$v) {_vm.grand_total=$$v},expression:\"grand_total\"}}),_c('v-text-field',{attrs:{\"outlined\":\"\",\"readonly\":\"\",\"label\":\"Povrat investicije - automatski obračun\"},model:{value:(_vm.roi),callback:function ($$v) {_vm.roi=$$v},expression:\"roi\"}})],1)]),_c('v-tab-item',[_c('div',_vm._l((_vm.item.description.desc_item),function(description,index){return _c('div',{key:index,staticStyle:{\"display\":\"grid\",\"grid-template-columns\":\"2.3fr 0.4fr 0.15fr 0.15fr\",\"grid-column-gap\":\"1rem\",\"align-items\":\"center\"}},[_c('v-text-field',{staticClass:\"pt-1 mb-0 pb-0\",attrs:{\"label\":'Cilj ' + (index + 1),\"outlined\":\"\",\"maxlength\":\"255\",\"counter\":\"\"},model:{value:(_vm.item.description.desc_item[index]),callback:function ($$v) {_vm.$set(_vm.item.description.desc_item, index, $$v)},expression:\"item.description.desc_item[index]\"}}),_c('v-text-field',{staticClass:\"ml-4 pt-1 mb-0 pb-0\",attrs:{\"label\":'Realizacija cilja % ',\"outlined\":\"\",\"type\":\"number\"},on:{\"input\":function($event){return _vm.validate3(index)}},model:{value:(_vm.item.description.desc_score[index]),callback:function ($$v) {_vm.$set(_vm.item.description.desc_score, index, $$v)},expression:\"item.description.desc_score[index]\"}}),_c('v-btn',{staticClass:\"mb-5 mr-4\",attrs:{\"icon\":\"\",\"color\":\"primary\",\"dark\":\"\"},on:{\"click\":function($event){return _vm.addDescription()}}},[_c('sabira_icon',{attrs:{\"icon\":\"plus\",\"fill\":\"grey\",\"width\":38,\"height\":38,\"strokewidth\":3}})],1),(index > 0)?_c('v-btn',{staticClass:\"mb-5 mr-4\",attrs:{\"icon\":\"\"},on:{\"click\":function($event){return _vm.removeDescription(index)}}},[_c('sabira_icon',{attrs:{\"icon\":\"trash\",\"fill\":\"grey\",\"width\":38,\"height\":38,\"strokewidth\":3}})],1):_vm._e()],1)}),0),_c('div'),_c('div',{staticStyle:{\"display\":\"grid\",\"grid-template-columns\":\"2.3fr 0.4fr 0.3fr\",\"grid-column-gap\":\"1rem\",\"align-items\":\"center\"}},[_c('div'),_c('v-text-field',{staticClass:\"ml-1 mr-3 pt-1 mb-0 pb-0\",attrs:{\"label\":\"Prosjek %\",\"outlined\":\"\"},model:{value:(_vm.goalsScoresAverage),callback:function ($$v) {_vm.goalsScoresAverage=$$v},expression:\"goalsScoresAverage\"}}),_c('div')],1)]),_c('v-tab-item',[_c('v-text-field',{staticClass:\"mt-1\",attrs:{\"clearable\":\"\",\"hide-details\":\"\",\"prepend-inner-icon\":\"mdi-magnify\",\"label\":\"Pretraga marketing troškova u kampanji\",\"placeholder\":\"Unesite naziv pojma za pretragu\",\"outlined\":\"\"},model:{value:(_vm.search_text),callback:function ($$v) {_vm.search_text=$$v},expression:\"search_text\"}}),(_vm.is_loading)?_c('v-card',{attrs:{\"flat\":\"\"}},[_c('v-skeleton-loader',{attrs:{\"type\":\"table, list-item@6\"}})],1):[_c('v-data-table',{staticStyle:{\"background\":\"transparent\"},attrs:{\"no-data-text\":\"Podaci ne postoje za odabranu kategoriju\",\"search\":_vm.search_text,\"loading\":_vm.is_loading,\"items\":_vm.items,\"headers\":_vm.headers1,\"options\":{ itemsPerPage: 50 },\"footer-props\":{\n 'items-per-page-options': [10, 25, 50, -1],\n 'items-per-page-text': 'Broj zapisa po stranici',\n 'items-per-page-all-text': 'Svi',\n 'page-text': '{0}-{1} od {2}',\n }},scopedSlots:_vm._u([{key:`item.supplier_naziv`,fn:function({ item }){return [_c('div',{staticClass:\"body-2\",staticStyle:{\"font-weight\":\"500\"}},[_vm._v(\"\\n \"+_vm._s(item.supplier_naziv)+\"\\n \")])]}},{key:`item.uplaceno_datum`,fn:function({ item }){return [_vm._v(\"\\n \"+_vm._s(_vm.$moment(new Date(item.uplaceno_datum)).format(\"L\"))+\"\\n \")]}},{key:`item.uplaceno_km`,fn:function({ item }){return [_vm._v(\"\\n \"+_vm._s(_vm.$n(item.uplaceno_km))+\"\\n \")]}},{key:`item.referenca`,fn:function({ item }){return [_c('div',{staticStyle:{\"display\":\"grid\",\"grid-template-columns\":\"max-content 1fr\"}},[_c('div',{staticClass:\"mt-2 mb-2\"},[_c('div',[_vm._v(_vm._s(item.referenca))])])])]}}],null,true)})]],2),_c('v-tab-item',[_c('div',{staticStyle:{\"margin-top\":\"0.25rem\",\"align-items\":\"center\",\"display\":\"grid\",\"grid-template-columns\":\"0.98fr 1fr\",\"grid-column-gap\":\"1rem\"}},[_c('webpage_lookup_artikli',{attrs:{\"update\":\"wp_artikal_changed\"}}),_c('v-btn',{staticClass:\"ml-0\",attrs:{\"icon\":\"\",\"color\":\"primary\",\"dark\":\"\"},on:{\"click\":function($event){return _vm.dodaj_artikal()}}},[_c('sabira_icon',{staticClass:\"ml-3\",attrs:{\"icon\":\"plus\",\"fill\":\"grey\",\"width\":38,\"height\":38,\"strokewidth\":3}})],1)],1),_c('v-data-table',{staticClass:\"mt-2\",attrs:{\"items\":_vm.mc.artikli,\"headers\":_vm.headers,\"disable-pagination\":\"\",\"hide-default-footer\":\"\",\"no-data-text\":\"Podaci ne postoje za odabranu kategoriju\"},scopedSlots:_vm._u([{key:`item.kom`,fn:function({ item }){return [_c('v-text-field',{attrs:{\"outlined\":\"\",\"hide-details\":\"\",\"dense\":\"\",\"type\":\"number\"},model:{value:(item.kom),callback:function ($$v) {_vm.$set(item, \"kom\", _vm._n($$v))},expression:\"item.kom\"}})]}},{key:`item.ukupno`,fn:function({ item }){return [_vm._v(\"\\n \"+_vm._s(_vm.$n(parseFloat(item.ukupno).toFixed(2)))+\"\\n \")]}},{key:`item.jm_id`,fn:function({ item }){return [_c('webpage_lookup_jedinice_mjere',{attrs:{\"selected_id\":item.jm_id,\"reference_id\":item.id,\"update\":\"wp_event_jm_updated\"}})]}},{key:`item.rabat`,fn:function({ item }){return [_c('v-text-field',{attrs:{\"outlined\":\"\",\"hide-details\":\"\",\"dense\":\"\",\"type\":\"number\"},model:{value:(item.rabat),callback:function ($$v) {_vm.$set(item, \"rabat\", _vm._n($$v))},expression:\"item.rabat\"}})]}},{key:`item.cijena`,fn:function({ item }){return [_vm._v(\"\\n \"+_vm._s(_vm.$n(parseFloat(item.cijena).toFixed(2)))+\"\\n \")]}},{key:`body.append`,fn:function(){return [_c('tr',[_c('td',{staticStyle:{\"text-align\":\"right\"},attrs:{\"colspan\":7}},[_vm._v(\"\\n Ukupno bez PDV-a:\\n \")]),_c('td',{staticStyle:{\"text-align\":\"left\"}},[_vm._v(\"\\n \"+_vm._s(_vm.$n(parseFloat(_vm.mc_total).toFixed(2)))+\"\\n \")])]),_c('tr',[_c('td',{staticStyle:{\"text-align\":\"right\"},attrs:{\"colspan\":7}},[_vm._v(\"\\n PDV:\\n \")]),_c('td',{staticStyle:{\"text-align\":\"left\"}},[_vm._v(\"\\n \"+_vm._s(_vm.$n(parseFloat(_vm.tax_total).toFixed(2)))+\"\\n \")])]),_c('tr',[_c('td',{staticStyle:{\"text-align\":\"right\"},attrs:{\"colspan\":7}},[_vm._v(\"\\n Vrijednost usluga ili roba u kampanji:\\n \")]),_c('td',{staticStyle:{\"text-align\":\"left\"}},[_vm._v(\"\\n \"+_vm._s(_vm.$n(parseFloat(_vm.grand_total).toFixed(2)))+\"\\n \")])])]},proxy:true},{key:`item.actions`,fn:function({ item }){return [_c('v-btn',{attrs:{\"icon\":\"\"},on:{\"click\":function($event){return _vm.remove_artikal(item)}}},[_c('sabira_icon',{attrs:{\"icon\":\"trash\",\"fill\":\"grey\"}})],1)]}}],null,true)})],1),_c('v-tab-item',[_c('div',{staticClass:\"container\"},[_c('div',[_c('v-text-field',{staticClass:\"pt-1\",attrs:{\"outlined\":\"\",\"label\":\"Direktni prihod od kampanje\"},model:{value:(_vm.mc.revenue),callback:function ($$v) {_vm.$set(_vm.mc, \"revenue\", $$v)},expression:\"mc.revenue\"}}),_c('v-text-field',{attrs:{\"outlined\":\"\",\"readonly\":\"\",\"label\":\"Ukupni trošak kampanje - automatski obračun\"},model:{value:(_vm.total_expense_calculated),callback:function ($$v) {_vm.total_expense_calculated=$$v},expression:\"total_expense_calculated\"}}),_c('v-text-field',{attrs:{\"outlined\":\"\",\"label\":\"Povrat investicije - automatski obračun\",\"readonly\":\"\"},model:{value:(_vm.roi),callback:function ($$v) {_vm.roi=$$v},expression:\"roi\"}})],1)])])],1)],1),_c('v-card-actions',{staticClass:\"background\"},[_c('v-btn',{attrs:{\"text\":\"\"},on:{\"click\":_vm.close_dialog}},[_vm._v(\"Odustani\")]),_c('v-spacer'),_c('v-btn',{attrs:{\"loading\":_vm.is_btn_loading,\"text\":\"\",\"depressed\":\"\"},on:{\"click\":function($event){return _vm.save_campaign()}}},[_vm._v(\"Snimi\")])],1)],1)],_c('v-dialog',{attrs:{\"width\":\"30rem\",\"persistent\":\"\",\"scrollable\":\"\"},model:{value:(_vm.show_delete_options),callback:function ($$v) {_vm.show_delete_options=$$v},expression:\"show_delete_options\"}},[_c('v-card',[_c('v-toolbar',{attrs:{\"color\":\"primary white--text\",\"flat\":\"\"}},[_c('v-toolbar-title',{staticClass:\"ml-1\"},[_vm._v(\"\\n Brisanje marketing kampanje\\n \")])],1),_c('v-card-text',{staticClass:\"pt-0 mt-0\"},[_c('v-list',{attrs:{\"color\":\"transparent\"}},[_c('v-list-item',[_c('v-list-item-content',[_vm._v(\"\\n \"+_vm._s(\"Želite obrisati kampanju?\")+\"\\n \")])],1)],1)],1),_c('v-card-actions',{staticClass:\"background\"},[_c('v-btn',{attrs:{\"text\":\"\"},on:{\"click\":function($event){_vm.show_delete_options = false}}},[_vm._v(\"Odustani\")]),_c('v-spacer'),_c('v-btn',{attrs:{\"text\":\"\"},on:{\"click\":function($event){return _vm.delete_mc()}}},[_vm._v(\"Obriši\")])],1)],1)],1),_c('sabira_email',{attrs:{\"sender\":_vm.email.sender,\"message\":_vm.email.message,\"subject\":_vm.email.subject,\"attachments\":_vm.email.attachments,\"recipients\":_vm.email.recipients,\"visible\":_vm.show_email,\"close\":\"close_email_dialog\"}})],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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!./campaign.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!./campaign.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./campaign.vue?vue&type=template&id=4abf7653&scoped=true\"\nimport script from \"./campaign.vue?vue&type=script&lang=js\"\nexport * from \"./campaign.vue?vue&type=script&lang=js\"\nimport style0 from \"./campaign.vue?vue&type=style&index=0&id=4abf7653&prod&scoped=true&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 \"4abf7653\",\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/index.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./campaign.vue?vue&type=style&index=0&id=4abf7653&prod&scoped=true&lang=css\""],"sourceRoot":""}