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,IAAI4B,SAAS,CAAC,MAAST,EAAO,KAAGU,GAAG,CAAC,SAAWhB,EAAIX,WAAW,MAAQ,SAASC,GAAWA,EAAO2B,OAAOC,WAAqBlB,EAAImB,KAAKb,EAAK,MAAOhB,EAAO2B,OAAOL,MAAM,OAAOZ,EAAIS,GAAG,KAAKN,EAAG,MAAM,CAACK,YAAY,kBAAkB,CAACL,EAAG,QAAQ,CAACH,EAAIS,GAAG,cAAcT,EAAIS,GAAG,KAAKN,EAAG,QAAQ,CAACO,WAAW,CAAC,CAACZ,KAAK,QAAQa,QAAQ,UAAUC,MAAON,EAAO,IAAEO,WAAW,YAAYC,MAAM,CAAC,KAAO,SAAS,YAAc,WAAW,KAAQ,YAAc3B,EAAM,SAAU,IAAM,IAAI,SAAW,IAAI4B,SAAS,CAAC,MAAST,EAAO,KAAGU,GAAG,CAAC,MAAQ,SAAS1B,GAAWA,EAAO2B,OAAOC,WAAqBlB,EAAImB,KAAKb,EAAK,MAAOhB,EAAO2B,OAAOL,MAAM,OAAOZ,EAAIS,GAAG,KAAMT,EAAI1B,KAAKS,OAAS,EAAGoB,EAAG,SAAS,CAACK,YAAY,SAASM,MAAM,CAAC,KAAO,UAAUE,GAAG,CAAC,MAAQ,SAAS1B,GAAQ,OAAOU,EAAId,UAAUC,EAAI,IAAI,CAACgB,EAAG,IAAI,CAACK,YAAY,mBAAmBR,EAAIoB,MAAM,IAAGpB,EAAIS,GAAG,KAAKN,EAAG,SAAS,CAACK,YAAY,cAAcM,MAAM,CAAC,KAAO,UAAUE,GAAG,CAAC,MAAQhB,EAAIhB,SAAS,CAACmB,EAAG,IAAI,CAACK,YAAY,eAAeR,EAAIS,GAAG,+BAA+B,EAAE,EACz/CY,EAAkB,E","sources":["webpack:///./resources/area/web/default/js/components/cms/forms/ProductSelectWidget.vue?7824","webpack:///./resources/area/web/default/js/components/cms/forms/ProductSelectWidget.vue","webpack:///./resources/area/web/default/js/components/cms/forms/ProductSelectWidget.vue?140c","webpack:///./resources/area/web/default/js/components/cms/forms/ProductSelectWidget.vue?c43a"],"sourcesContent":["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport {Component, Vue, Prop} from 'vue-property-decorator';\n\n@Component({\n name: 'product-select-widget'\n})\n\nexport default class extends Vue {\n @Prop({default: []}) readonly articles: Array<string>;\n\n private rows: Array<object> = [];\n\n private created() {\n this.articles.forEach(a => {\n this.rows.push({sku: a['sku'], qty: a['qty']});\n });\n\n if ( ! this.articles.length) {\n this.addRow();\n }\n }\n\n private addRow(rowData: null|object = null) {\n this.rows.push(rowData ? rowData : {sku: '', qty: ''});\n }\n\n private deleteRow(idx) {\n this.rows.splice(idx, 1);\n }\n\n private onlyNumber ($event) {\n let keyCode = ($event.keyCode || $event.which);\n if ((keyCode < 48 || keyCode > 57)) {\n $event.preventDefault();\n }\n }\n}\n","import { render, staticRenderFns } from \"./ProductSelectWidget.vue?vue&type=template&id=314beb58&\"\nimport script from \"./ProductSelectWidget.vue?vue&type=script&lang=ts&\"\nexport * from \"./ProductSelectWidget.vue?vue&type=script&lang=ts&\"\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/ts-loader/index.js??clonedRuleSet-5[0].rules[0].use[0]!../../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ProductSelectWidget.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../../../../node_modules/ts-loader/index.js??clonedRuleSet-5[0].rules[0].use[0]!../../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ProductSelectWidget.vue?vue&type=script&lang=ts&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_vm._l((_vm.rows),function(row,idx){return _c('div',{key:(\"article-row-\" + idx),staticClass:\"article-row\"},[_c('div',{staticClass:\"form-group\"},[_c('label',[_vm._v(\"Artikelnummer *\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(row.sku),expression:\"row.sku\"}],attrs:{\"placeholder\":\"Artikelnummer *\",\"type\":\"text\",\"name\":(\"articles[\" + idx + \"][sku]\"),\"minlength\":\"6\",\"maxlength\":\"6\",\"required\":\"\"},domProps:{\"value\":(row.sku)},on:{\"keypress\":_vm.onlyNumber,\"input\":function($event){if($event.target.composing){ return; }_vm.$set(row, \"sku\", $event.target.value)}}})]),_vm._v(\" \"),_c('div',{staticClass:\"form-group qty\"},[_c('label',[_vm._v(\"Aantal *\")]),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(row.qty),expression:\"row.qty\"}],attrs:{\"type\":\"number\",\"placeholder\":\"Aantal *\",\"name\":(\"articles[\" + idx + \"][qty]\"),\"min\":\"1\",\"required\":\"\"},domProps:{\"value\":(row.qty)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(row, \"qty\", $event.target.value)}}})]),_vm._v(\" \"),(_vm.rows.length > 1)?_c('button',{staticClass:\"remove\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.deleteRow(idx)}}},[_c('i',{staticClass:\"fa fa-remove\"})]):_vm._e()])}),_vm._v(\" \"),_c('button',{staticClass:\"add-article\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.addRow}},[_c('i',{staticClass:\"fa fa-plus\"}),_vm._v(\"Meer producten toevoegen\")])],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }"],"names":["Vue","rows","created","this","articles","forEach","a","push","sku","qty","length","addRow","rowData","deleteRow","idx","splice","onlyNumber","$event","keyCode","which","preventDefault","Prop","default","Array","Component","name","render","_vm","_h","$createElement","_c","_self","_l","row","key","staticClass","_v","directives","rawName","value","expression","attrs","domProps","on","target","composing","$set","_e","staticRenderFns"],"sourceRoot":""}