[Bugfix] Cannot read properties of null (.split())

This commit is contained in:
Matej Glasnák committed 2024-09-18 17:59:56 +02:00
1 parent 2ffa3e24c8
commit e1e46a5c0b
87 files changed
+186 -78

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
"use strict";(self["webpackChunkjandl"]=self["webpackChunkjandl"]||[]).push([[3862],{70026:function(e,t){t["Z"]={data(){return{header:{initialized:!1,marginTop:0,calendar_previousScrollPosition:0,isVisible:!0}}},unmounted(){this.$refs.page?.querySelector(".vuecal__bg")?.removeEventListener("scroll",this.handleScroll)},methods:{_initScrollListener(e=0){if(this.initialized&&e>0)return;const t=this.$refs.page?.querySelector(".vuecal__bg");if(!t)return setTimeout((()=>{e<20&&this._initScrollListener(e+1)}),200);t.addEventListener("scroll",this._handleScroll),this.initialized=!0,this.header.calendar_previousScrollPosition=t.scrollTop},_handleScroll(e){const t=document.querySelector("div.subheader");this.initialized?(this.header.calendar_previousScrollPosition>e.target.scrollTop?this.header.isVisible||this.showHeader():(t.offsetHeight,Math.abs(e.target.scrollTop),this.header.isVisible&&this.hideHeader()),this.header.calendar_previousScrollPosition=e.target.scrollTop):this.header.calendar_previousScrollPosition=e.target.scrollTop},hideHeader(){const e=document.querySelector("div.subheader");e.style.transition="margin-top 0.5s",e.style.marginTop=`-${e.offsetHeight}px`,this.header.isVisible=!1,setTimeout((()=>{e.style.transition=""}),500)},showHeader(){const e=document.querySelector("div.subheader");e.style.transition="margin-top 0.5s",e.style.marginTop="0",this.header.isVisible=!0,setTimeout((()=>{e.style.transition=""}),500)}}}},3862:function(e,t,n){n.r(t),n.d(t,{default:function(){return Oc}});var r=n(73396);const i={ref:"page"};function s(e,t,n,s,o,a){const l=(0,r.up)("A-project-filter"),c=(0,r.up)("A-project-calendar"),d=(0,r.up)("W-loadable");return(0,r.wg)(),(0,r.iD)("div",i,[e.$store.getters["tm/isInitialized"]?((0,r.wg)(),(0,r.j4)(l,{key:0,onFilterChanged:a.onFilterChanged},null,8,["onFilterChanged"])):(0,r.kq)("",!0),(0,r.Wm)(d,{class:"non-projects",content:a.filteredProjects,emptyMessage:"Nenašli sa žiadne vyhovujúce projekty"},{default:(0,r.w5)((()=>[(0,r.Wm)(c,{events:a.filteredProjects,month:o.filter.month,year:o.filter.year,onOpenDetail:a.openMasterTaskModal},null,8,["events","month","year","onOpenDetail"])])),_:1},8,["content"])],512)}const o={id:"calendar",class:"mb-12"};function a(e,t,n,i,s,a){const l=(0,r.up)("V-full-calendar");return(0,r.wg)(),(0,r.iD)("div",o,[(0,r.Wm)(l,{ref:"fullCalendar",options:a.calendarOptions},null,8,["options"])])}n(57658),n(30541);var l,c,d,u,f,h,p,g={},m=[],v=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function b(e,t){for(var n in t)e[n]=t[n];return e}function y(e){var t=e.parentNode;t&&t.removeChild(e)}function A(e,t,n){var r,i,s,o={};for(s in t)"key"==s?r=t[s]:"ref"==s?i=t[s]:o[s]=t[s];if(arguments.length>2&&(o.children=arguments.length>3?l.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===o[s]&&(o[s]=e.defaultProps[s]);return _(e,o,r,i,null)}function _(e,t,n,r,i){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++d:i};return null==i&&null!=c.vnode&&c.vnode(s),s}function E(){return{current:null}}function C(e){return e.children}function w(e,t){this.props=e,this.context=t}function D(e,t){if(null==t)return e.__?D(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?D(e):null}function S(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return S(e)}}function R(e){(!e.__d&&(e.__d=!0)&&f.push(e)&&!k.__r++||h!==c.debounceRendering)&&((h=c.debounceRendering)||setTimeout)(k)}function k(){for(var e;k.__r=f.length;)e=f.sort((function(e,t){return e.__v.__b-t.__v.__b})),f=[],e.some((function(e){var t,n,r,i,s,o;e.__d&&(s=(i=(t=e).__v).__e,(o=t.__P)&&(n=[],(r=b({},i)).__v=i.__v+1,j(o,i,r,t.__n,void 0!==o.ownerSVGElement,null!=i.__h?[s]:null,n,null==s?D(i):s,i.__h),z(n,i),i.__e!=s&&S(i)))}))}function T(e,t,n,r,i,s,o,a,l,c){var d,u,f,h,p,v,b,y=r&&r.__k||m,A=y.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(h=n.__k[d]=null==(h=t[d])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?_(null,h,null,null,h):Array.isArray(h)?_(C,{children:h},null,null,null):h.__b>0?_(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(f=y[d])||f&&h.key==f.key&&h.type===f.type)y[d]=void 0;else for(u=0;u<A;u++){if((f=y[u])&&h.key==f.key&&h.type===f.type){y[u]=void 0;break}f=null}j(e,h,f=f||g,i,s,o,a,l,c),p=h.__e,(u=h.ref)&&f.ref!=u&&(b||(b=[]),f.ref&&b.push(f.ref,null,h),b.push(u,h.__c||p,h)),null!=p?(null==v&&(v=p),"function"==typeof h.type&&h.__k===f.__k?h.__d=l=x(h,l,e):l=I(e,h,f,y,p,l),"function"==typeof n.type&&(n.__d=l)):l&&f.__e==l&&l.parentNode!=e&&(l=D(f))}for(n.__e=v,d=A;d--;)null!=y[d]&&F(y[d],y[d]);if(b)for(d=0;d<b.length;d++)V(b[d],b[++d],b[++d])}function x(e,t,n){for(var r,i=e.__k,s=0;i&&s<Line truncated
//# sourceMappingURL=3862.b079a5bd.js.map