PageSourceSearch

https://www.gemeindeschwyz.ch/compiled/index/js/suchformulartab-cms.fb47911f0d65b4490182.js

js gemeindeschwyz.ch collected 2026-10-02 10:07:27 UTC 6,430 bytes, 1 lines download raw bytes

1(self.webpackChunkCMS=self.webpackChunkCMS||[]).push([[3980],{46490:(e,t,a)=>{var s=a(19755)("meta[property='cms:stats-trackerid']").attr("content");void 0===window._paq&&(window._paq=[]),t.startTracker=function(){window._paq.push(["enableLinkTracking"]),function(){var e="https://stats4.i-web.ch/";window._paq.push(["setTrackerUrl",e+"matomo.php"]),window._paq.push(["setSiteId",s]),window._paq.push(["setIgnoreClasses","cms-download"]);var t=document,a=t.createElement("script"),n=t.getElementsByTagName("script")[0];a.async=!0,a.src=e+"matomo.js",n.parentNode.insertBefore(a,n)}(),document.addEventListener("click",(function(e){if(e.target.classList.contains("cms-download")){e.preventDefault();let t=e.target.title||"",a=e.target.href,s=e.target.target||"_self",n=a;const r=/(.+\/getZipFileString\/)[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}(\.zip\/.+)/;r.test(n)&&(n=n.replace(r,"$1hash$2")),window._paq.push(["trackLink",n,"download",t]),window.open(a,s)}}))},t.trackSearch=function(e,t,a){window._paq.push(["trackSiteSearch",e,t,parseInt(a)])},t.trackPage=function(e,t,a){window._paq.push(["setDocumentTitle",e]),t&&a&&(window._paq.push(["setCustomDimension",1,t]),window._paq.push(["setCustomDimension",2,a.toString()])),window._paq.push(["trackPageView"])}},38370:(e,t,a)=>{var s=a(19755);a(26101);let n=a(46490),r=s("html").attr("lang"),c="",i="",l="",o="",d="",u={};function h(e,t=!1){d&&(sessionStorage.removeItem("chat-completion-initial-search-query"),t&&sessionStorage.setItem("chat-completion-initial-search-query",e),s(d).trigger("chat-completion-initiate-initial-search",[e]),f(e,"vektor",0,"",{},8))}function b(){return s(l).val()||""}function p(e,t,a){u={query:b(),selectedTab:e||"website",selectedTabOrder:t||"",selectedTabFilter:a||{}},window.history.pushState(u,null,"?query="+encodeURI(u.query)+"&selectedTab="+u.selectedTab+"&selectedTabOrder="+u.selectedTabOrder+"&selectedTabFilter="+JSON.stringify(u.selectedTabFilter))}function f(e,t,a,l,d,h){let T={"Accept-Language":r};if(s("body").addClass("busy"),p(u.selectedTab,l,d),8&h){let e=document.querySelector('input[name="suchformular_tab[useAi]"]:checked');e&&"without"===e.value&&(d.withoutAi=!0)}var v=g();o&&0===v.length&&(o&&s("input[name^='"+o+"']").prop("checked",!0),v=g());var k={tab:t,query:e,offset:a,order:l,filter:d,selectedTab:u.selectedTab,selectedTabOrder:u.selectedTabOrder,selectedClientIds:v};s.ajax({url:c,data:k,method:"POST",headers:T,dataType:"json",success:function(t){if(t.searchResults&&t.searchResults.length){s("#tabHeaderNavigation").show();let a=0;s.each(t.searchResults,(function(e,t){t.content&&(a+=function(e,t){let a=e.tab,n=s("#tabResult-"+a);(8&t||1&t)&&(s("#tabHeader-"+a).empty(),s("#tabHeader-"+a).append(e.header));(8&t||2&t)&&(n.empty(),n.append(e.content));16&t&&s("#tabResult-"+a).append(e.content);(8&t||4&t)&&(s("#tabFooter-"+a).empty(),s("#tabFooter-"+a).append(e.footer));let r="";""!==e.totalLabel&&(r=' <span class="translatedTabTotal">'+e.totalLabel+"</span>");return s("#tabNavigation-"+a).html('<span class="translatedTab">'+e.translatedTab+"</span>"+r),s('[data-toggle="popover"]').popover(),e.total}(t,h))})),""===u.selectedTabOrder?s("#suchformulartab-sort-"+u.selectedTab).prop("selectedIndex",0):s("#suchformulartab-sort-"+u.selectedTab).val(u.selectedTabOrder),function(e){s(".suchformulartab-paging").unbind("click").on("click",(function(){let t=s(this).data("tab"),a=s(this).data("offset"),n="",r="#suchformulartab-sort-"+t;s(r).length&&(n=s(r).val()),f(b(),t,a,n,e,20)}))}(d),s("[id^=tabNavigation-]").unbind("click").on("click",(function(e){selectedTab=s(this).data("tab"),p(selectedTab,m(selectedTab)),setTimeout((()=>{w()}),500)})),s(".suchformulartab-sort").unbind("change").change((function(){let e=s(this).data("tab"),t=s(this).val();f(b(),e,0,t,u.selectedTabFilter,8)})),s(".suchformulartab-agg").unbind("click").on("click",(function(e){e.preventDefault();let t=s(this).data("tab"),a={entityType:s(this).data("agg")};f(b(),t,0,m(t),a,8)})),s(".suchformulartab-agg-all").unbind("click").on("click",(function(e){e.preventDefault();let t=s(this).data("tab");f(b(),t,0,m(t),{},8)})),40===h&&(function(e){let t=s("#tabNavigation-"+e),a=s("#"+e);s("[id^=tabNavigation-]").removeClass("active").attr("aria-selected",!1),s("[class^=tab-pane]").removeClass("show").removeClass("active"),t.attr("aria-selected",!0),t.addClass("show").addClass("active"),a.addClass("show").addClass("active"),w()}(u.selectedTab),function(e,t){e=e.replaceAll("/","-").toLowerCase();let a=i+"/keine Resultate/"+e;n.trackSearch(e,!1,t),t&&(a=i+"/Resultate/"+e);s("meta[property='cms:stats-title']").trigger("triggerstats",[a])}(e,a))}s("body").removeClass("busy")},error:function(e,t,a){s("body").removeClass("busy")}})}function m(e){return s("#suchformulartab-sort-"+e).val()||""}function g(){let e=[];return o&&s.each(s("input[name^='"+o+"']:checked"),(function(){e.push(s(this).val())})),e}function w(){let e=s("#tabContent .tab-pane.active"),t=s(".direct-result.height-not-initialized",e);if(t.length){let t=s(".card-body",e).prop("scrollHeight"),a=s(".direct-result-heading",e);t>=300&&a.length?(s(".direct-result-card",e).addClass("long-content"),a.addClass("collapsed"),s(".direct-result-collapse",e).addClass("collapse")):(s(".direct-result-card",e).addClass("short-content"),s(".direct-result-card .collapse",e).addClass("show"))}t.removeClass("height-not-initialized")}s(document).ready((function(){!function(){if(u={query:"",selectedTab:"website",selectedTabOrder:"",selectedTabFilter:{}},null!==window.location.search){let e=new URLSearchParams(document.location.search);u={query:e.get("query")||"",selectedTab:e.get("selectedTab")||"website",selectedTabOrder:e.get("selectedTabOrder")||"",selectedTabFilter:JSON.parse(e.get("selectedTabFilter"))||{}}}}();let e=u.query;""!==e&&(f(e,"",0,u.selectedTabOrder,u.selectedTabFilter,40),h(e,!0))})),s("[data-webpack-module*=suchformulartab]").each((function(){c=s(this).data("search-url"),i=s(this).data("track-path"),l=s(this).data("query-id"),o=s(this).data("checkbox-client-ids-name")||"",d=s(this).data("chat-completion-block-selector")||"",s("#tabHeaderNavigation").hide(),s(l).on("keypress",(function(e){if(13===e.keyCode){e.preventDefault();var t=b();f(t,"",0,"",{},40),h(t)}}
1)),s("#suchformulartab-main-submit, .use-ai-choice input").on("click",(function(){var e=b();f(e,"",0,"",{},40),h(e)}))})),s(document).ready((function(){}))}}]);

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.