PageSourceSearch

https://www.zollikofen.ch/compiled/index/js/hierarchySelect-cms.bce91bd4af5bbac8c661.js

js zollikofen.ch collected 2026-10-02 12:17:38 UTC 2,266 bytes, 1 lines download raw bytes

1(self.webpackChunkCMS=self.webpackChunkCMS||[]).push([[6079],{98741:(e,t,l)=>{var a=l(19755);a.fn.fillSelect=function(e,t,l){if(this.empty(),void 0===e||a.isEmptyObject(e))this.hideSelect();else{var i=this;a.each(e,(function(e,a){"0"===e&&void 0!==l&&(a.label=l),e===t?i.append('<option value="'+e+'" selected = "1">'+a.label+"</option>"):i.append('<option value="'+e+'">'+a.label+"</option>")})),this.showSelect()}return this},a.fn.hideSelect=function(){this.parent().parent().hide(),this.prop("disabled","disabled")},a.fn.showSelect=function(){this.parent().parent().show(),this.removeAttr("disabled")},a.fn.updateSelect=function(e,t,l,i,n,c){for(var s=!0,h=0;h<l.length;h++)s=s&&!1===l[h].prop("disabled")&&(h<n-1||0!==l[h].val());if(s){this.showSelect();var o=e.data,d=0;a.each(l,(function(t,l){var a=l.val();0===a?o=e.getAll(i,d+1):void 0!==o&&(o=o[a].children),d++})),this.fillSelect(o,t,c)}else this.hideSelect()};var i={getAllRec:function(e,t,l){var i=this;a.each(e,(function(e,a){0===l?t[e]=a:void 0!==a.children&&i.getAllRec(a.children,t,l-1)}))},getAll:function(e,t){var l={};return this.getAllRec(this.data,l,t),e&&Object.keys(l).length>1&&(l=a.extend({0:{label:"Alle"}},l)),l},updateSelects:function(e,t,l,a,i,n){for(var c=[t[0]],s=0;s<l;s++)c.push(t[s+1]);for(s=l+1;s<t.length;s++)t[s].updateSelect(this,e[s],c,a,i,n),c.push(t[s])},initSelects:function(e,t,l,a,n){0===e.length&&t.forEach((function(){e.push(0)})),t[0].fillSelect(i.data,e[0],n),i.updateSelects(e,t,0,l,a,n)},addChangeHandler:function(e,t,l,n){a.each(e,(function(a,c){c.change((function(){i.updateSelects([],e,a,t,l,n)}))}))}};Promise.resolve().then(function(){a('div[data-webpack-module="hierarchySelect"]').each((function(){var e=a(this).data("reset-button-id")||"",t=a(this).data("select-ids"),l=a(this).data("selectortree"),n=a(this).data("label-alle"),c=a(this).data("preselect"),s=[],h=[];(a.each(t,(function(e,t){var l=a("input#"+t),i=a("<select>");h.push(l.val()),i.attr("class","form-control custom-select"),["id","name","required"].forEach((function(e){i.attr(e,l.attr(e))})),l.replaceWith(i),s.push(a("select#"+t))})),i.data=l,i.addChangeHandler(s,!0,2,n),i.initSelects(h,s,!0,2,n),e)&&a("#"+e).click((function(){i.initSelects(c,s,!0,2,n)}))}))}.bind(null,l)).catch(l.oe)}}]);

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.