{"version":3,"sources":["webpack:///./src/views/configuration/components/advertisement.vue?064a","webpack:///./src/views/configuration/components/advertisement.vue?b449","webpack:///src/views/configuration/components/advertisement.vue","webpack:///./src/views/configuration/components/advertisement.vue?5716","webpack:///./src/views/configuration/components/advertisement.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","on","$event","preventDefault","onSubmit","_m","staticClass","directives","name","rawName","value","advertisement","expression","class","errors","has","attrs","domProps","target","composing","$set","_v","required","url","require_protocol","_s","first","isEdit","_e","uploadFile","ref","maxAllowedAdvertisements","_l","group","index","key","id","isCategoryUnavailable","Array","isArray","advertisementGroups","_i","$$a","$$el","$$c","checked","$$v","$$i","concat","slice","getAdvertismentGroups","length","zone","zones","isSaving","closeModal","staticRenderFns","data","initialGroups","computed","mounted","$validator","reset","fetchZones","methods","includes","adCount","$refs","uploadLabel","innerHTML","filename","image","e","files","$bvModal","hide","component"],"mappings":"kHAAA,W,2CCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,OAAO,CAACE,GAAG,CAAC,OAAS,SAASC,GAAgC,OAAxBA,EAAOC,iBAAwBR,EAAIS,SAASF,MAAW,CAACP,EAAIU,GAAG,GAAGN,EAAG,MAAM,CAACO,YAAY,cAAc,CAACP,EAAG,MAAM,CAACO,YAAY,cAAc,CAACX,EAAIU,GAAG,GAAGN,EAAG,QAAQ,CAACQ,WAAW,CAAC,CAACC,KAAK,QAAQC,QAAQ,UAAUC,MAAOf,EAAIgB,cAAkB,KAAEC,WAAW,sBAAsB,CAACJ,KAAK,WAAWC,QAAQ,aAAaC,MAAM,WAAaE,WAAW,eAAeN,YAAY,eAAeO,MAAM,CAAE,aAAclB,EAAImB,OAAOC,IAAI,SAAUC,MAAM,CAAC,GAAK,OAAO,KAAO,OAAO,KAAO,OAAO,aAAe,MAAM,YAAc,aAAa,aAAa,cAAcC,SAAS,CAAC,MA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YAAY,qB,giCCuGxoC,OACEE,KAAM,gBACNiD,KAAM,WACJ,MAAO,CACLC,cAAe,GACf/B,QAAQ,EACR2B,UAAU,EACVvB,yBAA0B,GAC1BpB,cAAe,CACb6B,oBAAqB,GACrBa,MAAO,MAIbM,SAAU,EAAZ,GACA,wEAEEC,QAAS,WACPhE,KAAKe,cAAgB,EAAzB,yBACIf,KAAK8D,cAAgB9D,KAAKe,cAAc6B,oBACxC5C,KAAK+B,SAAW/B,KAAKe,cAAcyB,GACnCxC,KAAKiE,WAAWC,QAChBlE,KAAKmE,cAEPC,QAAS,EAAX,CACI3B,sBADJ,SACA,GACM,OAAIzC,KAAK8D,cAAcO,SAAShC,EAAMG,KAG/BH,EAAMiC,SAAWtE,KAAKmC,0BAE/BF,WAPJ,SAOA,GACM,IAAN,6BACA,gBACMjC,KAAKuE,MAAMC,YAAYC,UAAYC,EACnC1E,KAAKe,cAAc4D,MAAQC,EAAEtD,OAAOuD,MAAM,IAE5C,SAbJ,WAaA,mIACA,wBADA,UACA,EADA,OAGA,EAHA,iDAOA,cAEA,4DACA,iBACA,cACA,wCACA,kBAEA,kBACA,cACA,gDAjBA,8CAoBIlB,WAjCJ,WAkCM3D,KAAK8E,SAASC,KAAK,4BAEzB,qDCpKqX,I,wBCQjXC,EAAY,eACd,EACAlF,EACA8D,GACA,EACA,KACA,WACA,MAIa,aAAAoB,E","file":"js/chunk-63d921cb.1dba72ed.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!./advertisement.vue?vue&type=style&index=0&id=2e8cdc09&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.onSubmit($event)}}},[_vm._m(0),_c('div',{staticClass:\"modal-body\"},[_c('div',{staticClass:\"form-group\"},[_vm._m(1),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.advertisement.name),expression:\"advertisement.name\"},{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],staticClass:\"form-control\",class:{ 'is-invalid': _vm.errors.has('name') },attrs:{\"id\":\"name\",\"name\":\"name\",\"type\":\"text\",\"autocomplete\":\"off\",\"placeholder\":\"Image Name\",\"data-vv-as\":\"Image Name\"},domProps:{\"value\":(_vm.advertisement.name)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.advertisement, \"name\", $event.target.value)}}}),_c('div',{staticClass:\"invalid-feedback\"},[_vm._v(\"The Image Name field is required.\")])]),_c('div',{staticClass:\"form-group\"},[_vm._m(2),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.advertisement.imgAltText),expression:\"advertisement.imgAltText\"},{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],staticClass:\"form-control\",class:{ 'is-invalid': _vm.errors.has('imgAltText') },attrs:{\"id\":\"imgAltText\",\"name\":\"imgAltText\",\"type\":\"text\",\"autocomplete\":\"off\",\"placeholder\":\"Image Alt Text\",\"data-vv-as\":\"Image Alt Text\"},domProps:{\"value\":(_vm.advertisement.imgAltText)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.advertisement, \"imgAltText\", $event.target.value)}}}),_c('div',{staticClass:\"invalid-feedback\"},[_vm._v(\"The Image Alt Text field is required.\")])]),_c('div',{staticClass:\"form-group\"},[_vm._m(3),_c('small',{staticClass:\"form-text text-muted mt-0 mb-1\",attrs:{\"id\":\"passwordHelpBlock\"}},[_vm._v(\" The provided URL requires a protocol (i.e. http or https) at the beginning of the address \")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.advertisement.linkToUrl),expression:\"advertisement.linkToUrl\"},{name:\"validate\",rawName:\"v-validate\",value:({ required: true, url: { require_protocol: true }}),expression:\"{ required: true, url: { require_protocol: true }}\"}],staticClass:\"form-control\",class:{ 'is-invalid': _vm.errors.has('linkToUrl') },attrs:{\"id\":\"linkToUrl\",\"name\":\"linkToUrl\",\"type\":\"text\",\"autocomplete\":\"off\",\"placeholder\":\"Link Url\",\"data-vv-as\":\"Link Url\"},domProps:{\"value\":(_vm.advertisement.linkToUrl)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.advertisement, \"linkToUrl\", $event.target.value)}}}),_c('div',{staticClass:\"invalid-feedback\"},[_vm._v(_vm._s(_vm.errors.first('linkToUrl')))])]),_c('div',{staticClass:\"form-group\"},[_vm._m(4),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.advertisement.linkTitleText),expression:\"advertisement.linkTitleText\"},{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],staticClass:\"form-control\",class:{ 'is-invalid': _vm.errors.has('linkTitleText') },attrs:{\"id\":\"linkTitleText\",\"name\":\"linkTitleText\",\"type\":\"text\",\"autocomplete\":\"off\",\"placeholder\":\"Link Title Text\",\"data-vv-as\":\"Link Title Text\"},domProps:{\"value\":(_vm.advertisement.linkTitleText)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.advertisement, \"linkTitleText\", $event.target.value)}}}),_c('div',{staticClass:\"invalid-feedback\"},[_vm._v(\"The Link Title Text field is required.\")])]),(!_vm.isEdit)?_c('div',{staticClass:\"form-group\"},[_c('label',{attrs:{\"for\":\"exampleFormControlFile1\"}},[_vm._v(\"Upload File\")]),_c('div',{staticClass:\"custom-file\"},[_c('input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],staticClass:\"custom-file-input\",class:{ 'is-invalid': _vm.errors.has('validatedCustomFile') },attrs:{\"type\":\"file\",\"id\":\"validatedCustomFile\",\"name\":\"validatedCustomFile\",\"accept\":\"image/*\"},on:{\"change\":_vm.uploadFile}}),_c('label',{staticClass:\"custom-file-label\",attrs:{\"for\":\"validatedCustomFile\"}},[_c('span',{ref:\"uploadLabel\",staticClass:\"custom-file-label-text\"},[_vm._v(\"Choose file...\")])]),_c('div',{staticClass:\"invalid-feedback\"},[_vm._v(\"Example invalid custom file feedback\")])])]):_vm._e(),_c('div',{staticClass:\"form-group\"},[_c('label',{staticClass:\"mb-0\"},[_vm._v(\"Apply To Group\")]),_c('small',{staticClass:\"form-text text-muted mt-0 mb-1\"},[_vm._v(\" Disabled options indicate that the advertisement group has reached capacity (\"+_vm._s(_vm.maxAllowedAdvertisements)+\"). \")]),_c('div',{attrs:{\"id\":\"shareWithZones\"}},_vm._l((_vm.getAdvertismentGroups),function(group,index){return _c('div',{key:group.id,staticClass:\"custom-control custom-checkbox\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.advertisement.advertisementGroups),expression:\"advertisement.advertisementGroups\"},{name:\"validate\",rawName:\"v-validate\",value:('required'),expression:\"'required'\"}],staticClass:\"custom-control-input\",class:{ 'is-invalid': _vm.errors.has('adGroup') },attrs:{\"id\":'adGroup-' + index,\"name\":\"adGroup\",\"type\":\"checkbox\",\"readonly\":_vm.isCategoryUnavailable(group),\"disabled\":_vm.isCategoryUnavailable(group)},domProps:{\"value\":group.id,\"checked\":Array.isArray(_vm.advertisement.advertisementGroups)?_vm._i(_vm.advertisement.advertisementGroups,group.id)>-1:(_vm.advertisement.advertisementGroups)},on:{\"change\":function($event){var $$a=_vm.advertisement.advertisementGroups,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=group.id,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.advertisement, \"advertisementGroups\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.advertisement, \"advertisementGroups\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.advertisement, \"advertisementGroups\", $$c)}}}}),_c('label',{staticClass:\"custom-control-label\",attrs:{\"for\":'adGroup-' + index}},[_vm._v(_vm._s(group.name))]),(index === _vm.getAdvertismentGroups.length - 1)?_c('div',{staticClass:\"invalid-feedback\"},[_vm._v(\"Please select at least one advertisement group.\")]):_vm._e()])}),0)]),_c('div',{staticClass:\"form-group\"},[_vm._m(5),_c('small',{staticClass:\"form-text text-muted mt-0 mb-1\"},[_vm._v(\" When no zones are selected, it is assumed available for all. \")]),_c('div',{attrs:{\"id\":\"shareWithZones\"}},_vm._l((_vm.getZones),function(zone,index){return _c('div',{key:zone.id,staticClass:\"custom-control custom-checkbox\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.advertisement.zones),expression:\"advertisement.zones\"}],staticClass:\"custom-control-input\",attrs:{\"id\":'zone-' + index,\"name\":\"zone\",\"type\":\"checkbox\"},domProps:{\"value\":zone.id,\"checked\":Array.isArray(_vm.advertisement.zones)?_vm._i(_vm.advertisement.zones,zone.id)>-1:(_vm.advertisement.zones)},on:{\"change\":function($event){var $$a=_vm.advertisement.zones,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=zone.id,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.advertisement, \"zones\", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.advertisement, \"zones\", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.advertisement, \"zones\", $$c)}}}}),_c('label',{staticClass:\"custom-control-label\",attrs:{\"for\":'zone-' + index}},[_vm._v(_vm._s(zone.name))])])}),0)])]),_c('div',{staticClass:\"modal-footer\"},[_c('button',{staticClass:\"btn btn-success ld-ext-right\",class:{ 'running' : _vm.isSaving },attrs:{\"type\":\"submit\",\"disabled\":_vm.isSaving}},[(_vm.isSaving)?_c('span',[_vm._v(\"Saving...\")]):_c('span',[_vm._v(\"Save\")]),_c('div',{staticClass:\"ld ld-ring ld-spin\"})]),_c('button',{staticClass:\"btn btn-secondary\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.closeModal}},[_vm._v(\"Close\")])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"modal-header\"},[_c('h4',{staticClass:\"modal-title\"},[_vm._v(\"Manage Advertisement\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',{attrs:{\"for\":\"name\"}},[_vm._v(\"Image Name \"),_c('span',{staticClass:\"red-dot ml-3\"})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',{attrs:{\"for\":\"imgAltText\"}},[_vm._v(\"Image Alt Text \"),_c('span',{staticClass:\"red-dot ml-3\"})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',{staticClass:\"mb-0\",attrs:{\"for\":\"linkToUrl\"}},[_vm._v(\"Link Url \"),_c('span',{staticClass:\"red-dot ml-3\"})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',{attrs:{\"for\":\"linkTitleText\"}},[_vm._v(\"Link Title Text \"),_c('span',{staticClass:\"red-dot ml-3\"})])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',{staticClass:\"mb-0\"},[_vm._v(\"Apply To Zone \"),_c('span',{staticClass:\"red-dot ml-3\"})])}]\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\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!./advertisement.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!./advertisement.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./advertisement.vue?vue&type=template&id=2e8cdc09&scoped=true&\"\nimport script from \"./advertisement.vue?vue&type=script&lang=js&\"\nexport * from \"./advertisement.vue?vue&type=script&lang=js&\"\nimport style0 from \"./advertisement.vue?vue&type=style&index=0&id=2e8cdc09&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 \"2e8cdc09\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}