1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[9323],{29792:(t,e,s)=>{s.r(e),s.d(e,{default:()=>o});const a={components:{Vuepagination:s(65452).A},data:function(){return{page:0,filter:{},items:{},multiple:!0,loading:!0}},watch:{multiple:function(t,e){this.load()}},created:function(){this.load(),this.closeNavbar()},computed:{hasItems:function(){return this.items.data.length>0}},methods:{load:function(t){var e=this;this.page=t,this.loading=!0;var s={page:t,filter:this.filter};if(this.multiple)var a="/settings/places/alternatives";else a="/settings/places";axios.post(a,s).then(function(t){e.items=t.data,e.loading=!1})},edit:function(t,e,s,a){this.$router.push({name:"places.form",params:{country_id:t,name:e,zip_from:s,zip_until:a}})},remove:function(t){var e=this;confirm(this.r("Weet u zeker dat u deze plaats wilt verwijderen?"))&&axios.post("/settings/places/delete",{country:t.country,name:t.name,zip_from:t.zip_from,zip_until:t.zip_until}).then(function(s){var a=s.data;if(a.success){var i=e.items.data.indexOf(t);e.items.data.splice(i,1),e.sendAlert("success","","Succesvol verwijderd")}else e.sendAlert("error",a.error,a.message)})}}};var i=s(85072),l=s.n(i),r=s(47959),n={insert:"head",singleton:!1};l()(r.A,n);r.A.locals;const o=(0,s(14486).A)(a,function(){var t=this,e=t._self._c;return e("section",[e("h1",[t._v(t._s(t.r("Plaatsen")))]),t._v(" "),e("div",{staticClass:"options"},[e("router-link",{staticClass:"btn btn-sm btn-success",attrs:{to:{name:"places.add"}}},[e("i",{staticClass:"fas fa-plus-square"}),t._v(" "+t._s(t.r("Toevoegen")))]),t._v("\n  \n "),e("router-link",{staticClass:"btn btn-sm btn-success",staticStyle:{"margin-left":"10px"},attrs:{to:{name:"places.import"}}},[e("i",{staticClass:"fas fa-file-import"}),t._v(" "+t._s(t.r("Importeren")))])],1),t._v(" "),e("form",{on:{submit:function(e){return e.preventDefault(),t.load()}}},[e("div",{staticClass:"filter"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-8"},[e("div",{staticClass:"form-group"},[e("label",{staticClass:"control-label"},[t._v(t._s(t.r("Zoeken")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.filter.search,expression:"filter.search"}],staticClass:"form-control",attrs:{disabled:t.loading,type:"text"},domProps:{value:t.filter.search},on:{input:function(e){e.target.composing||t.$set(t.filter,"search",e.target.value)}}})])]),t._v(" "),e("div",{staticClass:"col-md-2 vcenter"},[e("label",{staticClass:"css-input css-checkbox"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.multiple,expression:"multiple"}],attrs:{type:"checkbox",id:"all",value:"all",disabled:t.loading},domProps:{checked:Array.isArray(t.multiple)?t._i(t.multiple,"all")>-1:t.multiple},on:{change:function(e){var s=t.multiple,a=e.target,i=!!a.checked;if(Array.isArray(s)){var l=t._i(s,"all");a.checked?l<0&&(t.multiple=s.concat(["all"])):l>-1&&(t.multiple=s.slice(0,l).concat(s.slice(l+1)))}else t.multiple=i}}}),t._v(" "),e("span"),t._v(" "),e("small",[t._v(t._s(t.r("met alternatieve namen")))])])]),t._v(" "),e("div",{staticClass:"col-md-2 text-right"},[e("button",{staticClass:"btn btn-primary search",attrs:{disabled:t.loading,type:"submit"}},[t._v(t._s(t.r("Zoeken"))+" "),e("i",{staticClass:"fad fa-search"})])])])])]),t._v(" "),e("div",{staticClass:"panel"},[e("table",{staticClass:"table table-striped table-hover"},[e("thead",[e("tr",[e("th",{staticClass:"col-icon"}),t._v(" "),e("th",[t._v(t._s(t.r("Land")))]),t._v(" "),e("th",[t._v(t._s(t.r("Plaats")))]),t._v(" "),t.multiple?t._e():e("th",[t._v(t._s(t.r("Postcodes vanaf")))]),t._v(" "),t.multiple?t._e():e("th",[t._v(t._s(t.r("Postcodes tot")))]),t._v(" "),t.multiple?e("th",[t._v(t._s(t.r("Alternatieven")))]):t._e(),t._v(" "),t.multiple?t._e():e("th",[t._v("#")])])]),t._v(" "),e("tbody",[t.loading?e("tr",[e("td",{staticClass:"norows",attrs:{colspan:"5"}},[e("i",{staticClass:"fas fa-pulse fa-spinner"}),t._v(" "+t._s(t.r("Bezig met ophalen..")))])]):t._e(),t._v(" "),t.loading||t.hasItems?t._e():e("tr",[e("td",{staticClass:"norows",attrs:{colspan:"5"}},[t._v(t._s(t.r("Geen eenheden gevonden")))])]),t._v(" "),t._l(t.items.data,function(s){return!t.loading&&t.hasItems?e("tr",[e("td",{staticClass:"col-icon col-edit",on:{click:function(e){return e.stopPropagation(),t.edit(s.country,s.name,s.zip_from,s.zip_until)}}}),t._v(" "),e("td",[t._v(t._s(s.country))]),t._v(" "),e("td",[t._v(t._s(s.name))]),t._v(" "),t.multiple?t._e():e("td",[t._v(" "+t._s(s.zip_from))]),t._v(" "),t.multiple?t._e():e("td",[t._v(t._s(s.zip_until))]),t._v(" "),t.multiple?e("td",[s.alternatives>0?e("span",{staticClass:"numbercircle"},[t._v(t._s(s.alternatives))]):t._e()]):t._e(),t._v(" "),t.multiple?t._e():e("td",{staticClass:"delete",on:{click:function(e){return e.stopPropagation(),t.remove(s)}}}
1,[e("i",{staticClass:"fad fa-trash-alt"})])]):t._e()})],2)]),t._v(" "),e("vuepagination",{attrs:{data:t.items},on:{changepage:t.load}})],1)])},[],!1,null,null,null).exports},47959:(t,e,s)=>{s.d(e,{A:()=>l});var a=s(76798),i=s.n(a)()(function(t){return t[1]});i.push([t.id,".numbercircle{background:red;border-radius:.8em;-moz-border-radius:.8em;-webkit-border-radius:.8em;color:#fff;display:inline-block;font-weight:700;line-height:1.6em;margin-right:5px;text-align:center;width:1.6em}.vcenter{margin-top:20px}td.delete i{color:#d6151d}td.delete:hover{background:#d6151d!important;background-color:#d6151d!important}td.delete{cursor:pointer}td.delete:hover i{color:#fff!important}",""]);const l=i}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.