PageSourceSearch

https://www.clicktime.ch/wp-content/themes/clicktime/assets/dist/scripts/scripts.js?id=78449a9419b5c3ba344b

js clicktime.ch collected 2026-09-24 13:29:47 UTC 16,953 bytes, 1 lines download raw bytes

1(self.webpackChunkwk_theme=self.webpackChunkwk_theme||[]).push([[522],{560:function(){var t=document.querySelectorAll(".language-switcher__icon");t.length&&t.forEach((function(t){t.addEventListener("click",(function(){t.classList.toggle("is-open"),t.parentNode.querySelector(".language-switcher__list").classList.toggle("is-open")}))}))},927:function(t,e,i){"use strict";i(348);var n=i(306),o=i(47);i(474);(0,i(369).ZP)("[data-tooltip]",{content:function(t){return t.dataset.tooltip}});i(560);var s=i(174),r=i(564),a=i.n(r),l=function(){document.querySelectorAll(".functions-slider").forEach((function(t){var e=t.querySelectorAll(".functions-slider__text"),i=t.querySelectorAll(".functions-slider__image-wrapper"),n=t.querySelector(".functions-slider__media"),o=0;a()(n,(function(){i.forEach((function(t){t.clientHeight>o&&(o=t.clientHeight)})),n.style.height=o+"px"})),e.forEach((function(t){["mouseenter","mouseleave"].forEach((function(n){return t.addEventListener(n,(function(t){var n=t.target.getAttribute("data-id");e.forEach((function(t){t.classList.remove("active")})),i.forEach((function(t){t.classList.remove("active"),t.getAttribute("data-id")===n&&t.classList.add("active")})),t.target.classList.add("active")}))}))}))}))};function c(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}document.addEventListener("DOMContentLoaded",(function(){return l()})),(0,s.Z)((function(t){l()}));var d={callback:function(t){},distance:50,container:jQuery(document)},u=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e.data=Object.assign({page:1,postsPerPage:6,type:"button"},e.data),this.options=e,this.loading=!1,this.hasNext=!0,this.prevScrollPos=this.getScrollPos(),this.scroller={options:Object.assign(d,this.options)},this.handleScroll=this.handleScroll.bind(this)}var e,i,n;return e=t,i=[{key:"setFilters",value:function(t){this.options.data.filters=t,this.hasNext=void 0}},{key:"resetFilters",value:function(){this.options.data.filters={}}},{key:"infiniteScroll",value:function(){var t=this;"scroll"===this.options.type?(window.addEventListener("scroll",(function(e){return t.handleScroll(t.scroller,e)}),{passive:!0}),document.addEventListener("touchmove",(function(e){return t.handleScroll(t.scroller,e)}))):this.options.button&&this.options.button.addEventListener("click",(function(){t.load()}))}},{key:"load",value:function(){var t=this;this.loading||!1===this.hasNext||(this.loading=!0,this.options.button&&this.options.button.classList.add("loading"),this.scroller.options.container.addClass("post-grid--is-loading"),this.options.callback(this.options.data,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.options.data.page++,t.loading=!1;var i="boolean"==typeof e.has_next&&e.has_next;t.hasNext=i,t.options.button&&t.options.button.classList.remove("loading"),t.scroller.options.container.removeClass("post-grid--is-loading")})))}},{key:"reset",value:function(){this.options.data.page=0}},{key:"getScrollPos",value:function(){return window.pageYOffset}},{key:"handleScroll",value:function(t,e){if(!this.loading&&!1!==this.hasNext){var i=this.getScrollPos();if(i!==this.prevScrollPos){var n=t.options.container;i>=(n.is(document)?0:n.offset().top)+n.outerHeight()-window.innerHeight+120&&this.load(),this.prevScrollPos=i}}}}],i&&c(e.prototype,i),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function p(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function f(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?p(Object(i),!0).forEach((function(e){h(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):p(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}
1function h(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}!function(t){var e=window.wkScriptVars,i=e.rest_url,n=e.theme_url,o="".concat(n,"/assets/src/images/loader.svg"),s='<img src="'.concat(o,'" class="post-grid__loading-animation">'),r=document.querySelectorAll("[data-post-grid]");r.length&&r.forEach((function(e){var n=e.dataset.postGrid,o=t(e),r=t('[data-post-grid-loader="'+n+'"]'),a=t('[data-post-filter-id="'+n+'"]'),l=e.dataset,c=l.filterable,d=l.postGridType,p=l.postGridOrder,h=l.postTypes,g=l.taxonomies,v=l.postsPerPage,_=l.postsPerLoad,m=l.gridClasses,y=[],b=document.querySelector('[data-post-grid-load-more="'+n+'"]'),w={data:{postsPerPage:v,postsPerLoad:_,postTypes:h,postGridOrder:p,taxonomies:g,filters:y,gridClasses:m},container:o,type:d,button:b,callback:function(e,n){r.html(s),t.ajax({url:"".concat(i,"wk-filters/v1/load_posts"),method:"POST",data:f({},e)}).then((function(e){e.has_next?t(b).show():t(b).hide();if(r.html(""),""!==e.content){var i=""===o.html();t(e.content).appendTo(o),!0===i&&window.scrollTo({top:o.offset().top-t(".header").height()-180,behavior:"smooth"}),window.dispatchEvent(new Event("postGridLoaded"))}n(e)}))}},k=function(){o.html(""),C.options.data.page=0,C.setFilters(y),C.reset(),C.load()},S=function(){y.length?history.replaceState(null,null,document.location.pathname+"#"+y.join(",")):history.replaceState(null,null,document.location.pathname)},E=o.hasClass("has-filter-children"),C=null;if(o.length>0&&((C=new u(w)).infiniteScroll(),setTimeout((function(){if("true"===c&&window.location.hash){var e=window.location.hash.substring(1);y=e.includes(",")?e.split(","):[e],o.find(".post-grid__tag-link--active").removeClass("post-grid__tag-link--active"),y.length&&(y.forEach((function(e){var i=t('[data-post-filter-id="'+n+'"][data-post-filter="'+e+'"]');if(i.length)i.addClass("post-grid__tag-link--active");else{var o=t('[data-main-category="'+e+'"]');o.length&&o.addClass("post-grid__tag-link--active")}})),y.forEach((function(e){var i=t('[data-post-filter-id="'+n+'"][data-post-filter="'+e+'"]');if(i.length){for(var o=i;o.length>0;){var s=o.closest(".post-grid__filter-children");if(!(s.length>0))break;s.removeClass("hidden"),s.addClass("visible"),o=s.parent()}var r=i.closest(".post-grid__filter-group");if(r.length){var a=r.children(".post-grid__filter-children");a.length&&(a.removeClass("hidden"),a.addClass("visible"))}}})),o.hasClass("reference-archive")&&y.forEach((function(e){o.find(".post-grid__sub-filter-item").each((function(){t(this).data("parent-slug")===e?t(this).removeClass("is-hidden"):t(this).addClass("is-hidden")}))})),k())}}),100),a.on("click",(function(e){e.preventDefault();var i=t(this).data("post-filter"),o=t(this).closest(".post-grid__filter-group");if(t('[data-post-filter-id="'+n+'"].post-grid__tag-link--active').removeClass("post-grid__tag-link--active"),"all"===i)y=[],t(".post-grid__sub-filter-item").each((function(){t(this).removeClass("is-hidden")}));else{var s=(y=[]).indexOf(i);-1!==s?(y.splice(s,1),t(this).removeClass("post-grid__tag-link--active")):(y.push(i),t(this).addClass("post-grid__tag-link--active"))}0===y.length?(t('[data-post-filter-id="'+n+'"].post-grid__tag-link--active').removeClass("post-grid__tag-link--active"),t(".post-grid__filter-item.post-grid__tag-link--active").removeClass("post-grid__tag-link--active"),t('.post-grid__filter-item[data-main-category="all"]').addClass("post-grid__tag-link--active"),t('[data-post-filter-id="'+n+'"][data-post-filter="all"]').addClass("post-grid__tag-link--active")):t('[data-post-filter-id="'+n+'"][data-post-filter="all"]').removeClass("post-grid__tag-link--active"),E&&function(e){t(".post-grid__filter-children").each((function(){t(this).removeClass("visible"),t(this).addClass("hidden")}));var i=e.children(".post-grid__filter-children");0===i.length&&(i=e.closest(".post-grid__filter-children").closest(".post-grid__filter-group").children(".post-grid__filter-children")),i.length>0&&(i.removeClass("hidden"),i.addClass("visible"))}(o),S(),k()})),t(".reference-archive .post-grid__filter-item").on("click",(function(e){e.preventDefault();var i=t(this).data("main-category");if(t(".post-grid__filter-item.post-grid__tag-link--active").removeClass("post-grid__tag-link--active"),"all"===i)y=[],t(".post-grid__sub-filter-item").each((function(){t(this).removeClass("is-hidden")}));else{var o=(y=[]).indexOf(i);-1!==o?(y.splice(o,1),t(this).removeClass("post-grid__tag-link--active")):(y.push(i),t(this).addClass("post-grid__tag-link--active")),t(".post-grid__sub-filter-item").each((function(){t(this).removeClass("is-hidden"),t(this).data("parent-slug")!=i&&t(this).addClass("is-hidden")}))}t('[data-post-filter-id="'+n+'"].post-grid__tag-link--active').removeClass("post-grid__tag-link--active"),0===y.length?t('.post-grid__filter-item[data-main-category="all"]').addClass("post-grid__tag-link--active"):t('.post-grid__filter-item[data-main-category="all"]').removeClass("post-grid__tag-link--active"),S(),k()})),"true"===c&&window.location.hash)){var L=window.location.hash.substring(1);y=L.includes(",")?L.split(","):[L],t(".post-grid__tag-link--active").removeClass("post-grid__tag-link--active"),y.length&&(y.forEach((function(e){var i=t('[data-post-filter-id="'+n+'"][data-post-filter="'+e+'"]');i.length&&i.addClass("post-grid__tag-link--active")}
1)),E&&y.forEach((function(e){var i=t('[data-post-filter-id="'+n+'"][data-post-filter="'+e+'"]');if(i.length)for(var o=i.closest(".post-grid__filter-children");o.length>0;)o.removeClass("hidden"),o.addClass("visible"),o=o.parent().closest(".post-grid__filter-children")})),k())}}));var a=document.querySelector(".post-grid__filter-toggle");a&&a.addEventListener("click",(function(){return a.parentNode.classList.toggle("is-open")})),document.querySelectorAll(".has-filter-children .post-grid__filter-group").forEach((function(t){var e=t.querySelector(".post-grid__filter-children");e&&(t.addEventListener("mouseenter",(function(){e.classList.remove("hidden"),e.classList.add("visible")})),t.addEventListener("mouseleave",(function(){t.querySelector(".post-grid__tag-link--active")||(e.classList.remove("visible"),e.classList.add("hidden"))})))}))}(window.jQuery);var g=function(t){var e=parseFloat(t.value),i=!!t.min&&parseFloat(t.min);return{val:e,min:i,max:!!t.max&&parseFloat(t.max),step:t.step?parseFloat(t.step):1,zero:!1!==i?i:0}},v=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;t.querySelectorAll(".plus-minus-input:not(.is-initialized)").forEach((function(t){t.classList.add("is-initialized");var e=t.querySelector("input"),i=t.querySelector(".plus-minus-input__plus"),n=t.querySelector(".plus-minus-input__minus");i.addEventListener("click",(function(t){t.preventDefault();var i=g(e),n=i.val,o=i.max,s=i.step,r=i.zero;isNaN(n)?e.value=r:(!1===o||n<o)&&(e.value=n+s),e.dispatchEvent(new Event("input"))})),n.addEventListener("click",(function(t){t.preventDefault();var i=g(e),n=i.val,o=i.min,s=i.step,r=i.zero;isNaN(n)?e.value=r:(!1===o||n>o)&&(e.value=n-s),e.dispatchEvent(new Event("input"))}))}))};document.addEventListener("DOMContentLoaded",(function(){v()}));var _=v;document.addEventListener("alpine:init",(function(){var t=window.wkScriptVars.package_configurator;Alpine.data("packageConfigurator",(function(){return{name:"",costs_onetime:0,costs_annual:{},options:{},devices:{},el:null,step:"configuration",pricePer:"year",employees:4,init:function(){var t=this;this.el=this.$el;var e=this.el.querySelector(".gform_wrapper");e&&jQuery(document).on("gform_post_render",(function(i,n){if(n==e.id.replace("gform_wrapper_","")){var o=document.createElement("button");o.type="button",o.classList.add("button","button-secondary","button-back"),o.innerHTML=wkScriptVars.package_configurator.back,o.addEventListener("click",(function(e){e.preventDefault(),t.switchStep("configuration")})),e.querySelector(".gform_footer").insertAdjacentElement("afterbegin",o)}}))},loadInitData:function(t){Object.assign(this,t),_(this.$el),this.devices.forEach((function(t){return t.quantity=0}))},displayPrice:function(e){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t.on_request,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"ch";if(!1===e||e===Number.NEGATIVE_INFINITY)return s;i&&"month"===this.pricePer&&(e/=12);var a=e.toFixed(2);return"ch"===r?n+"CHF "+(e!=a?"~":"")+a+o:n+"EUR "+(e!=a?"~":"")+a+o},getMatchingByEmployees:function(t,e){var i=this,n=e.sort((function(t,e){return t.max_employees-e.max_employees})).find((function(t){return i.employees<=t.max_employees}));return n?n[t]:Number.NEGATIVE_INFINITY},getTotalAnnual:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["package","options","devices"];if(Array.isArray(e))return e.reduce((function(e,i){return e+t.getTotalAnnual(i)}),0);switch(e){case"package":return this.getMatchingByEmployees("costs",this.costs_annual)*this.employees;case"options":return this.options.filter((function(t){return t.selected})).reduce((function(e,i){return e+i.costs_annual*t.employees}),0);case"devices":return this.devices.filter((function(t){return t.quantity})).reduce((function(t,e){return t+e.costs_annual*e.quantity}),0)}},getTotalExpensesService:function(t){var e=this,i=this.getMatchingByEmployees("expense",t.estimate.expense_employees),n=t.estimate.expense_options.filter((function(t){var i=e.options.find((function(e){return e.name===t.option}));return i&&i.selected})).reduce((function(t,e){return t+e.factor*i}),0);return i+n},getTotalOnetime:function(){var t=this,e=arguments.length>
10&&void 0!==arguments[0]?arguments[0]:["package","options","devices","services"];if(Array.isArray(e))return e.reduce((function(e,i){return e+t.getTotalOnetime(i)}),0);switch(e){case"package":return this.costs_onetime;case"options":return this.options.filter((function(t){return t.selected})).reduce((function(t,e){return t+e.costs_onetime}),0);case"devices":return this.devices.filter((function(t){return t.quantity})).reduce((function(t,e){return t+e.costs_onetime*e.quantity}),0);case"services":return this.services.reduce((function(e,i){return e+t.getTotalExpensesService(i)*i.costs_hourly}),0)}},switchStep:function(t){if("form"===t){var e=this.el.querySelector('.package-configurator-summary input[type="hidden"]');e&&(e.value=JSON.stringify(this.generateSummary()))}this.step=t;var i=this.el.offsetTop-document.querySelector(".header").offsetHeight;window.scrollTo({top:i,behavior:"smooth"})},generateSummary:function(){return{name:this.name,employees:this.employees,options:this.options.filter((function(t){return t.selected})).map((function(t){return"".concat(t.name)})).join(", "),devices:this.devices.filter((function(t){return t.quantity})).map((function(t){return"".concat(t.quantity,"x ").concat(t.name)})).join(", ")}}}}))}));i(372);var m,y,b,w,k,S=i(30);m=window.jQuery,y=document.querySelector(".share-icons__icon.toggle"),b=document.querySelectorAll(".share-icons__icon"),w=!1,k=S.Z.timeline({easing:"easeInOutQuad",autoplay:!1,duration:300,changeComplete:function(){this.pause(),this.reverse(),w=!1}}).add({targets:".share-icons__icon.mail",translateX:30},30).add({targets:".share-icons__icon.twitter",translateX:60},60).add({targets:".share-icons__icon.linkedin",translateX:90},90).add({targets:".share-icons__icon.facebook",translateX:120},120),m(y).click((function(){if(!w){var t=function(){w=!0,k.play()};if(y.classList.contains("open")){y.classList.remove("open");for(var e=0;e<b.length;++e)b[e].classList.remove("show");t()}else{for(y.classList.add("open"),e=0;e<b.length;++e)b[e].classList.add("show");t()}}})),m(window).on("resize scroll",(function(){if(!w&&y&&y.classList.contains("open")){w=!0,y.classList.remove("open");for(var t=0;t<b.length;++t)b[t].classList.remove("show");k.play()}})),n.Z.plugin(o.Z),window.Alpine=n.Z,n.Z.start()},372:function(){document.addEventListener("DOMContentLoaded",(function(){var t=document.querySelector(".single-function");if(t){var e=t.querySelector(".single-post__top"),i=t.querySelector(".single-post__top--content"),n=t.querySelector(".single-post__top--media"),o=t.querySelector(".single-post__image"),s=t.querySelector(".single-post__button-wrapper"),r=t.querySelector(".single-post__content");e&&i&&n&&o&&s&&r&&(a(),window.addEventListener("resize",a))}function a(){var t=e.offsetHeight,i=parseInt(getComputedStyle(e).paddingTop)||0,n=o.offsetHeight,a=s.offsetHeight,l=t-i,c=Math.max(0,n-l)-a;r.style.setProperty("--content-offset","".concat(c,"px"))}}))},503:function(){}},function(t){var e=function(e){return t(t.s=e)};t.O(0,[242,941],(function(){return e(927),e(503)}));t.O()}]);

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.