(self.webpackChunk=self.webpackChunk||[]).push([[260],{1122:(t,e,a)=>{var n=a(9755);n(document).ready((function(){function t(){n(".btn-remove-category").off(),n(".btn-remove-category").on("click",(function(t){t.preventDefault(),this.dispatchEvent(new Event("custom:change",{bubbles:!0})),n(this).closest("tr").remove()})),n(".btn-remove-allowed-pzn").off(),n(".btn-remove-allowed-pzn").on("click",(function(t){t.preventDefault(),this.dispatchEvent(new Event("custom:change",{bubbles:!0})),n(this).closest("tr").remove()}))}t(),n("#input-add-category, #input-add-locked-out-category").select2({minimumInputLength:3,ajax:{url:window.routing.categoryAutocomplete,type:"POST",dataType:"json",delay:250,data:function(t){return{term:t}},results:function(t,e){return{results:t.results}}}}),n("#input-add-allowed-pzn").select2({minimumInputLength:3,ajax:{url:window.routing.productAutocomplete,type:"POST",dataType:"json",delay:250,data:function(t){return{term:t}},results:function(t,e){return{results:t.results}}}}),n("#input-add-category").on("select2:select",(function(e){e.preventDefault();var a=!1;n('input[name="categoryIds[]"]').each((function(){n(this).val()==e.params.data.id&&(a=!0)})),a||(n(".categories-table tbody").append("