PageSourceSearch

https://farma-plus-stolberg.de/wp-content/plugins/ia-main-plugin/p…ia-main-plugin-working-hours-manager.min.js

js farma-plus-stolberg.de collected 2026-10-02 00:35:40 UTC 7,559 bytes, 1 lines download raw bytes

vendor: 4,931 bytes, line 1
1(()=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){var t,r,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.toStringTag||"@@toStringTag";function i(e,o,a,s){var i=o&&o.prototype instanceof c?o:c,l=Object.create(i.prototype);return n(l,"_invoke",function(e,n,o){var a,s,i,c=0,l=o||[],f=!1,p={p:0,n:0,v:t,a:y,f:y.bind(t,4),d:function(e,n){return a=e,s=0,i=t,p.n=n,u}};function y(e,n){for(s=e,i=n,r=0;!f&&c&&!o&&r<l.length;r++){var o,a=l[r],y=p.p,h=a[2];e>3?(o=h===n)&&(i=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=t):a[0]<=y&&((o=e<2&&y<a[1])?(s=0,p.v=n,p.n=a[1]):y<h&&(o=e<3||a[0]>n||n>h)&&(a[4]=e,a[5]=n,p.n=h,s=0))}if(o||e>1)return u;throw f=!0,n}return function(o,l,h){if(c>1)throw TypeError("Generator is already running");for(f&&1===l&&y(l,h),s=l,i=h;(r=s<2?t:i)||!f;){a||(s?s<3?(s>1&&(p.n=-1),y(s,i)):p.n=i:p.v=i);try{if(c=2,a){if(s||(o="next"),r=a[o]){if(!(r=r.call(a,i)))throw TypeError("iterator result is not an object");if(!r.done)return r;i=r.value,s<2&&(s=0)}else 1===s&&(r=a.return)&&r.call(a),s<2&&(i=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=t}else if((r=(f=p.n<0)?i:e.call(n,p))!==u)break}catch(e){a=t,s=1,i=e}finally{c=1}}return{value:r,done:f}}}(e,a,s),!0),l}var u={};function c(){}function l(){}function f(){}r=Object.getPrototypeOf;var p=[][a]?r(r([][a]())):(n(r={},a,function(){return this}),r),y=f.prototype=c.prototype=Object.create(p);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,n(t,s,"GeneratorFunction")),t.prototype=Object.create(y),t}return l.prototype=f,n(y,"constructor",f),n(f,"constructor",l),l.displayName="GeneratorFunction",n(f,s,"GeneratorFunction"),n(y),n(y,s,"Generator"),n(y,a,function(){return this}),n(y,"toString",function(){return"[object Generator]"}),(e=function(){return{w:i,m:h}})()}function n(t,e,r,o){var a=Object.defineProperty;try{a({},"",{})}catch(t){a=0}n=function(t,e,r,o){function s(e,r){n(t,e,function(t){return this._invoke(e,r,t)})}e?a?a(t,e,{value:r,enumerable:!o,configurable:!o,writable:!o}):t[e]=r:(s("next",0),s("throw",1),s("return",2))},n(t,e,r,o)}function r(t,e,n,r,o,a,s){try{var i=t[a](s),u=i.value}catch(t){return void n(t)}i.done?e(u):Promise.resolve(u).then(r,o)}function o(t){return function(){var e=this,n=arguments;return new Promise(function(o,a){var s=t.apply(e,n);function i(t){r(s,o,a,i,u,"next",t)}function u(t){r(s,o,a,i,u,"throw",t)}i(void 0)})}}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function s(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==t(n)?n:n+""}(new(function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.DOM={workingHoursWrapper:".js-working-hours-wrapper",statusMessageElement:".js-display-open-status",statusContainer:".js-trigger-current-time-status",dayElements:".js-working-day-wrapper",dayName:".js-get-day-name",currentTimeStatusIcon:".js-display-is-open-status-min",singleTime:".js-is-active-single-time",currentTimeStatus:".js-trigger-current-time-status-class",statusIcon:".js-trigger-notdienst-icon",statusText:".js-trigger-status-text"},this.workingHoursWrappers=document.querySelectorAll(this.DOM.workingHoursWrapper),this.statusMessageElements=document.querySelectorAll(this.DOM.statusMessageElement),this.statusContainers=document.querySelectorAll(this.DOM.statusContainer),this.endpoint="/wp-json/ia-working-hours/v1/working-hours",this.data=null},n=[{key:"init",value:(i=o(e().m(function t(){return e().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,this.fetchWorkingHours();case 1:this.data&&(this.updateDayStatuses(),this.updateStatusMessages(),this.updateCurrentTimeStatus());case 2:return t.a(2)}},t,this)})),function(){return i.apply(this,arguments)})},{key:"fetchWorkingHours",value:(s=o(e().m(function t(){var n;return e().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,fetch(this.endpoint);case 1:if((n=t.v).ok){t.n=2;break}throw new Error("Failed to fetch working hours");case 2:return t.n=3,n.json();case 3:this.data=t.v,t.n=5;break;case 4:t.p=4,t.v,this.data=null;case 5:return t.a(2)}},t,this,[[0,4]])})),function(){return s.apply(this,arguments)})},{key:"applyClass",value:function(t,e,n){null==t||t.classList.toggle(n,e)}},{key:"updateDayStatuses",value:function(){var t=this;if(this.data){var e=this.data,n=e.statusClassMin,r=e.openStatus,o=e.workingHours;
1this.workingHoursWrappers.forEach(function(e){e.querySelectorAll(t.DOM.dayElements).forEach(function(e){var a,s=null===(a=e.querySelector(t.DOM.dayName))||void 0===a?void 0:a.textContent.trim(),i=o.days.find(function(t){return t.day===s});if(i&&(t.applyClass(e,i.isToday,"is-active"),i.isToday)){e.classList.add("now-".concat(n)),t.applyClass(e.querySelector(t.DOM.singleTime),!0,"is-active");var u=e.querySelector(t.DOM.currentTimeStatusIcon);u&&(u.classList.add("is-".concat(r.status)),"notdienst"===r.status&&(u.innerHTML=t.getEmergencyIcon()))}})})}}},{key:"updateStatusMessages",value:function(){var t=this;this.data&&this.statusMessageElements.forEach(function(e){return e.textContent=t.data.openStatus.message||"Error fetching status"})}},{key:"updateCurrentTimeStatus",value:function(){var t=this;if(this.data){var e=this.data.openStatus;this.statusContainers.forEach(function(n){var r=n.querySelector(t.DOM.currentTimeStatus),o=n.querySelector(t.DOM.statusIcon),a=n.querySelector(t.DOM.statusText);n.className=n.className.replace(/\bis-\S+/g,"").trim(),n.classList.add("is-".concat(e.status)),null==r||r.classList.add("is-".concat(e.status)),o&&a&&(o.innerHTML="notdienst"===e.status?t.getEmergencyIcon():"",a.textContent=e.text||"Error fetching status")})}}},{key:"getEmergencyIcon",value:function(){return"\n      <svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'><path fill='red' d='M2.668 6.707a.56.56 0 0 1-.424-.174.466.466 0 0 1-.136-.401 5.7 5.7 0 0 1 .522-1.944 5.804 5.804 0 0 1 1.157-1.641c.101-.111.23-.164.386-.159a.601.601 0 0 1 .416.19c.1.11.149.239.144.385a.558.558 0 0 1-.174.386 4.96 4.96 0 0 0-1.331 2.828.585.585 0 0 1-.56.53Zm10.664 0a.509.509 0 0 1-.363-.144.619.619 0 0 1-.181-.386 5.113 5.113 0 0 0-.416-1.512 4.682 4.682 0 0 0-.885-1.316.559.559 0 0 1-.174-.386.503.503 0 0 1 .159-.386.488.488 0 0 1 .393-.181c.161 0 .293.055.393.166a6.316 6.316 0 0 1 1.12 1.641c.282.6.454 1.243.514 1.929a.466.466 0 0 1-.136.4.56.56 0 0 1-.424.175Zm-9.757 5.551a.543.543 0 0 1-.56-.56.543.543 0 0 1 .56-.545h.727V6.708c0-.837.25-1.599.748-2.284A3.376 3.376 0 0 1 7.04 3.09v-.438c0-.262.093-.48.28-.65a.96.96 0 0 1 .673-.258.96.96 0 0 1 .673.257c.186.172.28.389.28.65v.44a3.442 3.442 0 0 1 2.004 1.33c.51.686.764 1.448.764 2.285v4.447h.71c.152 0 .28.053.386.159a.525.525 0 0 1 .16.386.543.543 0 0 1-.545.56h-8.85Zm4.418 1.997c-.353 0-.658-.126-.916-.378a1.243 1.243 0 0 1-.385-.923h2.601c0 .363-.126.67-.378.923-.252.252-.56.378-.922.378Z'/></svg>"}}],n&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r,s,i}())).init()})();

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.