From 1b83cb5f15a89c2b1123824da60abd6fd3f5212a Mon Sep 17 00:00:00 2001 From: olatechpro Date: Mon, 15 Apr 2024 17:34:56 +0100 Subject: [PATCH 01/37] Content Calendar not displaying on Old WordPress Version #1588 --- modules/calendar/lib/async-calendar/js/index.jsx | 2 +- modules/calendar/lib/async-calendar/js/index.min.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/calendar/lib/async-calendar/js/index.jsx b/modules/calendar/lib/async-calendar/js/index.jsx index 7e692eaf..40518ae5 100644 --- a/modules/calendar/lib/async-calendar/js/index.jsx +++ b/modules/calendar/lib/async-calendar/js/index.jsx @@ -35,6 +35,6 @@ jQuery(() => { if (createRoot) { createRoot(container).render(component); } else { - render(component); + render(component, container); } }); diff --git a/modules/calendar/lib/async-calendar/js/index.min.js b/modules/calendar/lib/async-calendar/js/index.min.js index 2d0b7e96..3a3db7e7 100644 --- a/modules/calendar/lib/async-calendar/js/index.min.js +++ b/modules/calendar/lib/async-calendar/js/index.min.js @@ -1,3 +1,3 @@ !function(e){var t={};function a(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=4)}([function(e,t){e.exports=wp.element},function(e,t,a){ /*! @license DOMPurify 2.4.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.7/LICENSE */ -e.exports=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,a){return(t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,a)}function a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function n(e,r,o){return(n=a()?Reflect.construct:function(e,a,n){var r=[null];r.push.apply(r,a);var o=new(Function.bind.apply(e,r));return n&&t(o,n.prototype),o}).apply(null,arguments)}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a1?a-1:0),r=1;r/gm),Y=d(/\${[\w\W]*}/gm),V=d(/^data-[\-\w.\u00B7-\uFFFF]/),Q=d(/^aria-[\-\w]+$/),$=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),K=d(/^(?:\w+script|data):/i),J=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),X=d(/^html$/i),Z=function(){return"undefined"==typeof window?null:window},ee=function(t,a){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var n=null;a.currentScript&&a.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=a.currentScript.getAttribute("data-tt-policy-suffix"));var r="dompurify"+(n?"#"+n:"");try{return t.createPolicy(r,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function t(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z(),n=function(e){return t(e)};if(n.version="2.4.7",n.removed=[],!a||!a.document||9!==a.document.nodeType)return n.isSupported=!1,n;var o=a.document,l=a.document,i=a.DocumentFragment,s=a.HTMLTemplateElement,c=a.Node,u=a.Element,d=a.NodeFilter,m=a.NamedNodeMap,f=void 0===m?a.NamedNodeMap||a.MozNamedAttrMap:m,h=a.HTMLFormElement,g=a.DOMParser,y=a.trustedTypes,A=u.prototype,te=O(A,"cloneNode"),ae=O(A,"nextSibling"),ne=O(A,"childNodes"),re=O(A,"parentNode");if("function"==typeof s){var oe=l.createElement("template");oe.content&&oe.content.ownerDocument&&(l=oe.content.ownerDocument)}var le=ee(y,o),ie=le?le.createHTML(""):"",se=l,ce=se.implementation,ue=se.createNodeIterator,pe=se.createDocumentFragment,de=se.getElementsByTagName,me=o.importNode,fe={};try{fe=D(l).documentMode?l.documentMode:{}}catch(e){}var he={};n.isSupported="function"==typeof re&&ce&&void 0!==ce.createHTMLDocument&&9!==fe;var ge,ye,ve=W,be=B,Ee=Y,we=V,Re=Q,ke=K,Ce=J,xe=$,Se=null,_e=N({},[].concat(r(j),r(F),r(L),r(M),r(U))),Te=null,Ae=N({},[].concat(r(H),r(G),r(q),r(z))),Ne=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),De=null,Oe=null,je=!0,Fe=!0,Le=!1,Ie=!0,Me=!1,Pe=!1,Ue=!1,He=!1,Ge=!1,qe=!1,ze=!1,We=!0,Be=!1,Ye="user-content-",Ve=!0,Qe=!1,$e={},Ke=null,Je=N({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Xe=null,Ze=N({},["audio","video","img","source","image","track"]),et=null,tt=N({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),at="http://www.w3.org/1998/Math/MathML",nt="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml",ot=rt,lt=!1,it=null,st=N({},[at,nt,rt],R),ct=["application/xhtml+xml","text/html"],ut="text/html",pt=null,dt=l.createElement("form"),mt=function(e){return e instanceof RegExp||e instanceof Function},ft=function(t){pt&&pt===t||(t&&"object"===e(t)||(t={}),t=D(t),ge=ge=-1===ct.indexOf(t.PARSER_MEDIA_TYPE)?ut:t.PARSER_MEDIA_TYPE,ye="application/xhtml+xml"===ge?R:w,Se="ALLOWED_TAGS"in t?N({},t.ALLOWED_TAGS,ye):_e,Te="ALLOWED_ATTR"in t?N({},t.ALLOWED_ATTR,ye):Ae,it="ALLOWED_NAMESPACES"in t?N({},t.ALLOWED_NAMESPACES,R):st,et="ADD_URI_SAFE_ATTR"in t?N(D(tt),t.ADD_URI_SAFE_ATTR,ye):tt,Xe="ADD_DATA_URI_TAGS"in t?N(D(Ze),t.ADD_DATA_URI_TAGS,ye):Ze,Ke="FORBID_CONTENTS"in t?N({},t.FORBID_CONTENTS,ye):Je,De="FORBID_TAGS"in t?N({},t.FORBID_TAGS,ye):{},Oe="FORBID_ATTR"in t?N({},t.FORBID_ATTR,ye):{},$e="USE_PROFILES"in t&&t.USE_PROFILES,je=!1!==t.ALLOW_ARIA_ATTR,Fe=!1!==t.ALLOW_DATA_ATTR,Le=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ie=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Me=t.SAFE_FOR_TEMPLATES||!1,Pe=t.WHOLE_DOCUMENT||!1,Ge=t.RETURN_DOM||!1,qe=t.RETURN_DOM_FRAGMENT||!1,ze=t.RETURN_TRUSTED_TYPE||!1,He=t.FORCE_BODY||!1,We=!1!==t.SANITIZE_DOM,Be=t.SANITIZE_NAMED_PROPS||!1,Ve=!1!==t.KEEP_CONTENT,Qe=t.IN_PLACE||!1,xe=t.ALLOWED_URI_REGEXP||xe,ot=t.NAMESPACE||rt,Ne=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&mt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ne.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&mt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ne.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ne.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Me&&(Fe=!1),qe&&(Ge=!0),$e&&(Se=N({},r(U)),Te=[],!0===$e.html&&(N(Se,j),N(Te,H)),!0===$e.svg&&(N(Se,F),N(Te,G),N(Te,z)),!0===$e.svgFilters&&(N(Se,L),N(Te,G),N(Te,z)),!0===$e.mathMl&&(N(Se,M),N(Te,q),N(Te,z))),t.ADD_TAGS&&(Se===_e&&(Se=D(Se)),N(Se,t.ADD_TAGS,ye)),t.ADD_ATTR&&(Te===Ae&&(Te=D(Te)),N(Te,t.ADD_ATTR,ye)),t.ADD_URI_SAFE_ATTR&&N(et,t.ADD_URI_SAFE_ATTR,ye),t.FORBID_CONTENTS&&(Ke===Je&&(Ke=D(Ke)),N(Ke,t.FORBID_CONTENTS,ye)),Ve&&(Se["#text"]=!0),Pe&&N(Se,["html","head","body"]),Se.table&&(N(Se,["tbody"]),delete De.tbody),p&&p(t),pt=t)},ht=N({},["mi","mo","mn","ms","mtext"]),gt=N({},["foreignobject","desc","title","annotation-xml"]),yt=N({},["title","style","font","a","script"]),vt=N({},F);N(vt,L),N(vt,I);var bt=N({},M);N(bt,P);var Et=function(e){var t=re(e);t&&t.tagName||(t={namespaceURI:ot,tagName:"template"});var a=w(e.tagName),n=w(t.tagName);return!!it[e.namespaceURI]&&(e.namespaceURI===nt?t.namespaceURI===rt?"svg"===a:t.namespaceURI===at?"svg"===a&&("annotation-xml"===n||ht[n]):Boolean(vt[a]):e.namespaceURI===at?t.namespaceURI===rt?"math"===a:t.namespaceURI===nt?"math"===a&>[n]:Boolean(bt[a]):e.namespaceURI===rt?!(t.namespaceURI===nt&&!gt[n])&&!(t.namespaceURI===at&&!ht[n])&&!bt[a]&&(yt[a]||!vt[a]):!("application/xhtml+xml"!==ge||!it[e.namespaceURI]))},wt=function(e){E(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},Rt=function(e,t){try{E(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){E(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Te[e])if(Ge||qe)try{wt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},kt=function(e){var t,a;if(He)e=""+e;else{var n=k(e,/^[\r\n\t ]+/);a=n&&n[0]}"application/xhtml+xml"===ge&&ot===rt&&(e=''+e+"");var r=le?le.createHTML(e):e;if(ot===rt)try{t=(new g).parseFromString(r,ge)}catch(e){}if(!t||!t.documentElement){t=ce.createDocument(ot,"template",null);try{t.documentElement.innerHTML=lt?ie:r}catch(e){}}var o=t.body||t.documentElement;return e&&a&&o.insertBefore(l.createTextNode(a),o.childNodes[0]||null),ot===rt?de.call(t,Pe?"html":"body")[0]:Pe?t.documentElement:o},Ct=function(e){return ue.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT,null,!1)},xt=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof f)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},St=function(t){return"object"===e(c)?t instanceof c:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},_t=function(e,t,a){he[e]&&v(he[e],(function(e){e.call(n,t,a,pt)}))},Tt=function(e){var t;if(_t("beforeSanitizeElements",e,null),xt(e))return wt(e),!0;if(_(/[\u0080-\uFFFF]/,e.nodeName))return wt(e),!0;var a=ye(e.nodeName);if(_t("uponSanitizeElement",e,{tagName:a,allowedTags:Se}),e.hasChildNodes()&&!St(e.firstElementChild)&&(!St(e.content)||!St(e.content.firstElementChild))&&_(/<[/\w]/g,e.innerHTML)&&_(/<[/\w]/g,e.textContent))return wt(e),!0;if("select"===a&&_(/