@everymatrix/general-footer-template 1.66.2 → 1.67.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/custom-content-section.cjs.entry.js +5 -2
- package/dist/collection/components/custom-content-section/custom-content-section.js +5 -2
- package/dist/esm/custom-content-section.entry.js +5 -2
- package/dist/general-footer-template/custom-content-section.entry.js +1 -1
- package/package.json +1 -1
|
@@ -1583,8 +1583,11 @@ const CustomContentSection = class {
|
|
|
1583
1583
|
this.postMessageEvent = '';
|
|
1584
1584
|
}
|
|
1585
1585
|
render() {
|
|
1586
|
-
const clean = DOMPurify.sanitize(this.customContent
|
|
1587
|
-
|
|
1586
|
+
const clean = DOMPurify.sanitize(this.customContent, {
|
|
1587
|
+
ALLOW_UNKNOWN_PROTOCOLS: true,
|
|
1588
|
+
ADD_ATTR: ["target"],
|
|
1589
|
+
});
|
|
1590
|
+
return index.h("div", { key: 'f57e52b273a4a0bd0f8a89a43fb115e581024ab9', class: "CustomContentSectionContainer" }, index.h("div", { key: 'b9f38e71ca3db8a09ec97b34d96d6d4541c10b7b', class: "CustomContentSectionWrapper" }, index.h("div", { key: 'f4191fdc5ded6a3d7a29bf3d268cc2060f39036c', class: "CustomContentSectionContent", innerHTML: clean }), this.repeaterContent ? index.h("image-list", { style: { width: "100%" }, repeaterContent: this.repeaterContent ? this.repeaterContent : null, "navigate-via-event": this.navigateViaEvent, "post-message-event": this.postMessageEvent }) : ''));
|
|
1588
1591
|
}
|
|
1589
1592
|
};
|
|
1590
1593
|
CustomContentSection.style = CustomContentSectionStyle0;
|
|
@@ -8,8 +8,11 @@ export class CustomContentSection {
|
|
|
8
8
|
this.postMessageEvent = '';
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
const clean = DOMPurify.sanitize(this.customContent
|
|
12
|
-
|
|
11
|
+
const clean = DOMPurify.sanitize(this.customContent, {
|
|
12
|
+
ALLOW_UNKNOWN_PROTOCOLS: true,
|
|
13
|
+
ADD_ATTR: ["target"],
|
|
14
|
+
});
|
|
15
|
+
return h("div", { key: 'f57e52b273a4a0bd0f8a89a43fb115e581024ab9', class: "CustomContentSectionContainer" }, h("div", { key: 'b9f38e71ca3db8a09ec97b34d96d6d4541c10b7b', class: "CustomContentSectionWrapper" }, h("div", { key: 'f4191fdc5ded6a3d7a29bf3d268cc2060f39036c', class: "CustomContentSectionContent", innerHTML: clean }), this.repeaterContent ? h("image-list", { style: { width: "100%" }, repeaterContent: this.repeaterContent ? this.repeaterContent : null, "navigate-via-event": this.navigateViaEvent, "post-message-event": this.postMessageEvent }) : ''));
|
|
13
16
|
}
|
|
14
17
|
static get is() { return "custom-content-section"; }
|
|
15
18
|
static get encapsulation() { return "scoped"; }
|
|
@@ -1579,8 +1579,11 @@ const CustomContentSection = class {
|
|
|
1579
1579
|
this.postMessageEvent = '';
|
|
1580
1580
|
}
|
|
1581
1581
|
render() {
|
|
1582
|
-
const clean = DOMPurify.sanitize(this.customContent
|
|
1583
|
-
|
|
1582
|
+
const clean = DOMPurify.sanitize(this.customContent, {
|
|
1583
|
+
ALLOW_UNKNOWN_PROTOCOLS: true,
|
|
1584
|
+
ADD_ATTR: ["target"],
|
|
1585
|
+
});
|
|
1586
|
+
return h("div", { key: 'f57e52b273a4a0bd0f8a89a43fb115e581024ab9', class: "CustomContentSectionContainer" }, h("div", { key: 'b9f38e71ca3db8a09ec97b34d96d6d4541c10b7b', class: "CustomContentSectionWrapper" }, h("div", { key: 'f4191fdc5ded6a3d7a29bf3d268cc2060f39036c', class: "CustomContentSectionContent", innerHTML: clean }), this.repeaterContent ? h("image-list", { style: { width: "100%" }, repeaterContent: this.repeaterContent ? this.repeaterContent : null, "navigate-via-event": this.navigateViaEvent, "post-message-event": this.postMessageEvent }) : ''));
|
|
1584
1587
|
}
|
|
1585
1588
|
};
|
|
1586
1589
|
CustomContentSection.style = CustomContentSectionStyle0;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{r as t,h as e}from"./index-83985f06.js";import{c as n}from"./_commonjsHelpers-1c8beb5f.js";var o={exports:{}};
|
|
2
|
-
/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */o.exports=function(){const{entries:t,setPrototypeOf:e,isFrozen:n,getPrototypeOf:o,getOwnPropertyDescriptor:i}=Object;let{freeze:r,seal:a,create:l}=Object,{apply:s,construct:c}="undefined"!=typeof Reflect&&Reflect;r||(r=function(t){return t}),a||(a=function(t){return t}),s||(s=function(t,e,n){return t.apply(e,n)}),c||(c=function(t,e){return new t(...e)});const u=k(Array.prototype.forEach),f=k(Array.prototype.pop),m=k(Array.prototype.push),p=k(String.prototype.toLowerCase),d=k(String.prototype.toString),h=k(String.prototype.match),g=k(String.prototype.replace),y=k(String.prototype.indexOf),b=k(String.prototype.trim),v=k(Object.prototype.hasOwnProperty),w=k(RegExp.prototype.test),x=(T=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return c(T,e)});var T;function k(t){return function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return s(t,e,o)}}function S(t,o){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p;e&&e(t,null);let r=o.length;for(;r--;){let e=o[r];if("string"==typeof e){const t=i(e);t!==e&&(n(o)||(o[r]=t),e=t)}t[e]=!0}return t}function A(t){for(let e=0;e<t.length;e++)v(t,e)||(t[e]=null);return t}function E(e){const n=l(null);for(const[o,i]of t(e))v(e,o)&&(n[o]=Array.isArray(i)?A(i):i&&"object"==typeof i&&i.constructor===Object?E(i):i);return n}function _(t,e){for(;null!==t;){const n=i(t,e);if(n){if(n.get)return k(n.get);if("function"==typeof n.value)return k(n.value)}t=o(t)}return function(){return null}}const R=r(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),L=r(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),C=r(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),D=r(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),O=r(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),z=r(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),M=r(["#text"]),I=r(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),F=r(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),P=r(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),N=r(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),j=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),U=a(/<%[\w\W]*|[\w\W]*%>/gm),B=a(/\${[\w\W]*}/gm),W=a(/^data-[\-\w.\u00B7-\uFFFF]/),H=a(/^aria-[\-\w]+$/),q=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=a(/^(?:\w+script|data):/i),X=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G=a(/^html$/i),$=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var V=Object.freeze({__proto__:null,MUSTACHE_EXPR:j,ERB_EXPR:U,TMPLIT_EXPR:B,DATA_ATTR:W,ARIA_ATTR:H,IS_ALLOWED_URI:q,IS_SCRIPT_OR_DATA:Y,ATTR_WHITESPACE:X,DOCTYPE_NAME:G,CUSTOM_ELEMENT:$});const J=1,K=3,Q=7,Z=8,tt=9,et=function(){return"undefined"==typeof window?null:window};var nt=function e(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:et();const o=t=>e(t);if(o.version="3.1.6",o.removed=[],!n||!n.document||n.document.nodeType!==tt)return o.isSupported=!1,o;let{document:i}=n;const a=i,s=a.currentScript,{DocumentFragment:c,HTMLTemplateElement:T,Node:k,Element:A,NodeFilter:j,NamedNodeMap:U=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:B,DOMParser:W,trustedTypes:H}=n,Y=A.prototype,X=_(Y,"cloneNode"),$=_(Y,"remove"),nt=_(Y,"nextSibling"),ot=_(Y,"childNodes"),it=_(Y,"parentNode");if("function"==typeof T){const t=i.createElement("template");t.content&&t.content.ownerDocument&&(i=t.content.ownerDocument)}let rt,at="";const{implementation:lt,createNodeIterator:st,createDocumentFragment:ct,getElementsByTagName:ut}=i,{importNode:ft}=a;let mt={};o.isSupported="function"==typeof t&&"function"==typeof it&<&&void 0!==lt.createHTMLDocument;const{MUSTACHE_EXPR:pt,ERB_EXPR:dt,TMPLIT_EXPR:ht,DATA_ATTR:gt,ARIA_ATTR:yt,IS_SCRIPT_OR_DATA:bt,ATTR_WHITESPACE:vt,CUSTOM_ELEMENT:wt}=V;let{IS_ALLOWED_URI:xt}=V,Tt=null;const kt=S({},[...R,...L,...C,...O,...M]);let St=null;const At=S({},[...I,...F,...P,...N]);let Et=Object.seal(l(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}})),_t=null,Rt=null,Lt=!0,Ct=!0,Dt=!1,Ot=!0,zt=!1,Mt=!0,It=!1,Ft=!1,Pt=!1,Nt=!1,jt=!1,Ut=!1,Bt=!0,Wt=!1,Ht=!0,qt=!1,Yt={},Xt=null;const Gt=S({},["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"]);let $t=null;const Vt=S({},["audio","video","img","source","image","track"]);let Jt=null;const Kt=S({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Qt="http://www.w3.org/1998/Math/MathML",Zt="http://www.w3.org/2000/svg",te="http://www.w3.org/1999/xhtml";let ee=te,ne=!1,oe=null;const ie=S({},[Qt,Zt,te],d);let re=null;const ae=["application/xhtml+xml","text/html"];let le=null,se=null;const ce=i.createElement("form"),ue=function(t){return t instanceof RegExp||t instanceof Function},fe=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!se||se!==t){if(t&&"object"==typeof t||(t={}),t=E(t),re=-1===ae.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,le="application/xhtml+xml"===re?d:p,Tt=v(t,"ALLOWED_TAGS")?S({},t.ALLOWED_TAGS,le):kt,St=v(t,"ALLOWED_ATTR")?S({},t.ALLOWED_ATTR,le):At,oe=v(t,"ALLOWED_NAMESPACES")?S({},t.ALLOWED_NAMESPACES,d):ie,Jt=v(t,"ADD_URI_SAFE_ATTR")?S(E(Kt),t.ADD_URI_SAFE_ATTR,le):Kt,$t=v(t,"ADD_DATA_URI_TAGS")?S(E(Vt),t.ADD_DATA_URI_TAGS,le):Vt,Xt=v(t,"FORBID_CONTENTS")?S({},t.FORBID_CONTENTS,le):Gt,_t=v(t,"FORBID_TAGS")?S({},t.FORBID_TAGS,le):{},Rt=v(t,"FORBID_ATTR")?S({},t.FORBID_ATTR,le):{},Yt=!!v(t,"USE_PROFILES")&&t.USE_PROFILES,Lt=!1!==t.ALLOW_ARIA_ATTR,Ct=!1!==t.ALLOW_DATA_ATTR,Dt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ot=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,zt=t.SAFE_FOR_TEMPLATES||!1,Mt=!1!==t.SAFE_FOR_XML,It=t.WHOLE_DOCUMENT||!1,Nt=t.RETURN_DOM||!1,jt=t.RETURN_DOM_FRAGMENT||!1,Ut=t.RETURN_TRUSTED_TYPE||!1,Pt=t.FORCE_BODY||!1,Bt=!1!==t.SANITIZE_DOM,Wt=t.SANITIZE_NAMED_PROPS||!1,Ht=!1!==t.KEEP_CONTENT,qt=t.IN_PLACE||!1,xt=t.ALLOWED_URI_REGEXP||q,ee=t.NAMESPACE||te,Et=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ue(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Et.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ue(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Et.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Et.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),zt&&(Ct=!1),jt&&(Nt=!0),Yt&&(Tt=S({},M),St=[],!0===Yt.html&&(S(Tt,R),S(St,I)),!0===Yt.svg&&(S(Tt,L),S(St,F),S(St,N)),!0===Yt.svgFilters&&(S(Tt,C),S(St,F),S(St,N)),!0===Yt.mathMl&&(S(Tt,O),S(St,P),S(St,N))),t.ADD_TAGS&&(Tt===kt&&(Tt=E(Tt)),S(Tt,t.ADD_TAGS,le)),t.ADD_ATTR&&(St===At&&(St=E(St)),S(St,t.ADD_ATTR,le)),t.ADD_URI_SAFE_ATTR&&S(Jt,t.ADD_URI_SAFE_ATTR,le),t.FORBID_CONTENTS&&(Xt===Gt&&(Xt=E(Xt)),S(Xt,t.FORBID_CONTENTS,le)),Ht&&(Tt["#text"]=!0),It&&S(Tt,["html","head","body"]),Tt.table&&(S(Tt,["tbody"]),delete _t.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');rt=t.TRUSTED_TYPES_POLICY,at=rt.createHTML("")}else void 0===rt&&(rt=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";e&&e.hasAttribute(o)&&(n=e.getAttribute(o));const i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(H,s)),null!==rt&&"string"==typeof at&&(at=rt.createHTML(""));r&&r(t),se=t}},me=S({},["mi","mo","mn","ms","mtext"]),pe=S({},["foreignobject","annotation-xml"]),de=S({},["title","style","font","a","script"]),he=S({},[...L,...C,...D]),ge=S({},[...O,...z]),ye=function(t){m(o.removed,{element:t});try{it(t).removeChild(t)}catch(e){$(t)}},be=function(t,e){try{m(o.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){m(o.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!St[t])if(Nt||jt)try{ye(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},ve=function(t){let e=null,n=null;if(Pt)t="<remove></remove>"+t;else{const e=h(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===re&&ee===te&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const o=rt?rt.createHTML(t):t;if(ee===te)try{e=(new W).parseFromString(o,re)}catch(t){}if(!e||!e.documentElement){e=lt.createDocument(ee,"template",null);try{e.documentElement.innerHTML=ne?at:o}catch(t){}}const r=e.body||e.documentElement;return t&&n&&r.insertBefore(i.createTextNode(n),r.childNodes[0]||null),ee===te?ut.call(e,It?"html":"body")[0]:It?e.documentElement:r},we=function(t){return st.call(t.ownerDocument||t,t,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT|j.SHOW_PROCESSING_INSTRUCTION|j.SHOW_CDATA_SECTION,null)},xe=function(t){return t instanceof B&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof U)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},Te=function(t){return"function"==typeof k&&t instanceof k},ke=function(t,e,n){mt[t]&&u(mt[t],(t=>{t.call(o,e,n,se)}))},Se=function(t){let e=null;if(ke("beforeSanitizeElements",t,null),xe(t))return ye(t),!0;const n=le(t.nodeName);if(ke("uponSanitizeElement",t,{tagName:n,allowedTags:Tt}),t.hasChildNodes()&&!Te(t.firstElementChild)&&w(/<[/\w]/g,t.innerHTML)&&w(/<[/\w]/g,t.textContent))return ye(t),!0;if(t.nodeType===Q)return ye(t),!0;if(Mt&&t.nodeType===Z&&w(/<[/\w]/g,t.data))return ye(t),!0;if(!Tt[n]||_t[n]){if(!_t[n]&&Ee(n)){if(Et.tagNameCheck instanceof RegExp&&w(Et.tagNameCheck,n))return!1;if(Et.tagNameCheck instanceof Function&&Et.tagNameCheck(n))return!1}if(Ht&&!Xt[n]){const e=it(t)||t.parentNode,n=ot(t)||t.childNodes;if(n&&e)for(let o=n.length-1;o>=0;--o){const i=X(n[o],!0);i.__removalCount=(t.__removalCount||0)+1,e.insertBefore(i,nt(t))}}return ye(t),!0}return t instanceof A&&!function(t){let e=it(t);e&&e.tagName||(e={namespaceURI:ee,tagName:"template"});const n=p(t.tagName),o=p(e.tagName);return!!oe[t.namespaceURI]&&(t.namespaceURI===Zt?e.namespaceURI===te?"svg"===n:e.namespaceURI===Qt?"svg"===n&&("annotation-xml"===o||me[o]):Boolean(he[n]):t.namespaceURI===Qt?e.namespaceURI===te?"math"===n:e.namespaceURI===Zt?"math"===n&&pe[o]:Boolean(ge[n]):t.namespaceURI===te?!(e.namespaceURI===Zt&&!pe[o])&&!(e.namespaceURI===Qt&&!me[o])&&!ge[n]&&(de[n]||!he[n]):!("application/xhtml+xml"!==re||!oe[t.namespaceURI]))}(t)?(ye(t),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!w(/<\/no(script|embed|frames)/i,t.innerHTML)?(zt&&t.nodeType===K&&(e=t.textContent,u([pt,dt,ht],(t=>{e=g(e,t," ")})),t.textContent!==e&&(m(o.removed,{element:t.cloneNode()}),t.textContent=e)),ke("afterSanitizeElements",t,null),!1):(ye(t),!0)},Ae=function(t,e,n){if(Bt&&("id"===e||"name"===e)&&(n in i||n in ce))return!1;if(Ct&&!Rt[e]&&w(gt,e));else if(Lt&&w(yt,e));else if(!St[e]||Rt[e]){if(!(Ee(t)&&(Et.tagNameCheck instanceof RegExp&&w(Et.tagNameCheck,t)||Et.tagNameCheck instanceof Function&&Et.tagNameCheck(t))&&(Et.attributeNameCheck instanceof RegExp&&w(Et.attributeNameCheck,e)||Et.attributeNameCheck instanceof Function&&Et.attributeNameCheck(e))||"is"===e&&Et.allowCustomizedBuiltInElements&&(Et.tagNameCheck instanceof RegExp&&w(Et.tagNameCheck,n)||Et.tagNameCheck instanceof Function&&Et.tagNameCheck(n))))return!1}else if(Jt[e]);else if(w(xt,g(n,vt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==y(n,"data:")||!$t[t])if(Dt&&!w(bt,g(n,vt,"")));else if(n)return!1;return!0},Ee=function(t){return"annotation-xml"!==t&&h(t,wt)},_e=function(t){ke("beforeSanitizeAttributes",t,null);const{attributes:e}=t;if(!e)return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:St};let i=e.length;for(;i--;){const r=e[i],{name:a,namespaceURI:l,value:s}=r,c=le(a);let m="value"===a?s:b(s);if(n.attrName=c,n.attrValue=m,n.keepAttr=!0,n.forceKeepAttr=void 0,ke("uponSanitizeAttribute",t,n),m=n.attrValue,Mt&&w(/((--!?|])>)|<\/(style|title)/i,m)){be(a,t);continue}if(n.forceKeepAttr)continue;if(be(a,t),!n.keepAttr)continue;if(!Ot&&w(/\/>/i,m)){be(a,t);continue}zt&&u([pt,dt,ht],(t=>{m=g(m,t," ")}));const p=le(t.nodeName);if(Ae(p,c,m)){if(!Wt||"id"!==c&&"name"!==c||(be(a,t),m="user-content-"+m),rt&&"object"==typeof H&&"function"==typeof H.getAttributeType)if(l);else switch(H.getAttributeType(p,c)){case"TrustedHTML":m=rt.createHTML(m);break;case"TrustedScriptURL":m=rt.createScriptURL(m)}try{l?t.setAttributeNS(l,a,m):t.setAttribute(a,m),xe(t)?ye(t):f(o.removed)}catch(t){}}}ke("afterSanitizeAttributes",t,null)},Re=function t(e){let n=null;const o=we(e);for(ke("beforeSanitizeShadowDOM",e,null);n=o.nextNode();)ke("uponSanitizeShadowNode",n,null),Se(n)||(n.content instanceof c&&t(n.content),_e(n));ke("afterSanitizeShadowDOM",e,null)};return o.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,i=null,r=null,l=null;if(ne=!t,ne&&(t="\x3c!--\x3e"),"string"!=typeof t&&!Te(t)){if("function"!=typeof t.toString)throw x("toString is not a function");if("string"!=typeof(t=t.toString()))throw x("dirty is not a string, aborting")}if(!o.isSupported)return t;if(Ft||fe(e),o.removed=[],"string"==typeof t&&(qt=!1),qt){if(t.nodeName){const e=le(t.nodeName);if(!Tt[e]||_t[e])throw x("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof k)n=ve("\x3c!----\x3e"),i=n.ownerDocument.importNode(t,!0),i.nodeType===J&&"BODY"===i.nodeName||"HTML"===i.nodeName?n=i:n.appendChild(i);else{if(!Nt&&!zt&&!It&&-1===t.indexOf("<"))return rt&&Ut?rt.createHTML(t):t;if(n=ve(t),!n)return Nt?null:Ut?at:""}n&&Pt&&ye(n.firstChild);const s=we(qt?t:n);for(;r=s.nextNode();)Se(r)||(r.content instanceof c&&Re(r.content),_e(r));if(qt)return t;if(Nt){if(jt)for(l=ct.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(St.shadowroot||St.shadowrootmode)&&(l=ft.call(a,l,!0)),l}let f=It?n.outerHTML:n.innerHTML;return It&&Tt["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&w(G,n.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+f),zt&&u([pt,dt,ht],(t=>{f=g(f,t," ")})),rt&&Ut?rt.createHTML(f):f},o.setConfig=function(){fe(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Ft=!0},o.clearConfig=function(){se=null,Ft=!1},o.isValidAttribute=function(t,e,n){se||fe({});const o=le(t),i=le(e);return Ae(o,i,n)},o.addHook=function(t,e){"function"==typeof e&&(mt[t]=mt[t]||[],m(mt[t],e))},o.removeHook=function(t){if(mt[t])return f(mt[t])},o.removeHooks=function(t){mt[t]&&(mt[t]=[])},o.removeAllHooks=function(){mt={}},o}();return nt}();const i=o.exports,r=class{constructor(e){t(this,e),this.customContent=void 0,this.repeaterContent=void 0,this.navigateViaEvent=!1,this.postMessageEvent=""}render(){const t=i.sanitize(this.customContent);return e("div",{key:"b5714ab60e4d00f640208651dbc57734b2e28a0d",class:"CustomContentSectionContainer"},e("div",{key:"2a8838f92c6e4068cbb190981366cca43b973319",class:"CustomContentSectionWrapper"},e("div",{key:"707c7326e3324fb86bab04fc0f3822da48f33f81",class:"CustomContentSectionContent",innerHTML:t}),this.repeaterContent?e("image-list",{style:{width:"100%"},repeaterContent:this.repeaterContent?this.repeaterContent:null,"navigate-via-event":this.navigateViaEvent,"post-message-event":this.postMessageEvent}):""))}};r.style=".sc-custom-content-section-h{display:block}*.sc-custom-content-section{margin:0}.CustomContentSectionWrapper.sc-custom-content-section{box-sizing:border-box;height:100%;align-items:center}";export{r as custom_content_section}
|
|
2
|
+
/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */o.exports=function(){const{entries:t,setPrototypeOf:e,isFrozen:n,getPrototypeOf:o,getOwnPropertyDescriptor:i}=Object;let{freeze:r,seal:a,create:l}=Object,{apply:s,construct:c}="undefined"!=typeof Reflect&&Reflect;r||(r=function(t){return t}),a||(a=function(t){return t}),s||(s=function(t,e,n){return t.apply(e,n)}),c||(c=function(t,e){return new t(...e)});const u=k(Array.prototype.forEach),f=k(Array.prototype.pop),m=k(Array.prototype.push),p=k(String.prototype.toLowerCase),d=k(String.prototype.toString),h=k(String.prototype.match),g=k(String.prototype.replace),y=k(String.prototype.indexOf),b=k(String.prototype.trim),v=k(Object.prototype.hasOwnProperty),w=k(RegExp.prototype.test),x=(T=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return c(T,e)});var T;function k(t){return function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return s(t,e,o)}}function A(t,o){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p;e&&e(t,null);let r=o.length;for(;r--;){let e=o[r];if("string"==typeof e){const t=i(e);t!==e&&(n(o)||(o[r]=t),e=t)}t[e]=!0}return t}function S(t){for(let e=0;e<t.length;e++)v(t,e)||(t[e]=null);return t}function E(e){const n=l(null);for(const[o,i]of t(e))v(e,o)&&(n[o]=Array.isArray(i)?S(i):i&&"object"==typeof i&&i.constructor===Object?E(i):i);return n}function _(t,e){for(;null!==t;){const n=i(t,e);if(n){if(n.get)return k(n.get);if("function"==typeof n.value)return k(n.value)}t=o(t)}return function(){return null}}const R=r(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),O=r(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),L=r(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),D=r(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),C=r(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),z=r(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),M=r(["#text"]),I=r(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),N=r(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),P=r(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),F=r(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),j=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),U=a(/<%[\w\W]*|[\w\W]*%>/gm),W=a(/\${[\w\W]*}/gm),B=a(/^data-[\-\w.\u00B7-\uFFFF]/),H=a(/^aria-[\-\w]+$/),q=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=a(/^(?:\w+script|data):/i),X=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G=a(/^html$/i),$=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var K=Object.freeze({__proto__:null,MUSTACHE_EXPR:j,ERB_EXPR:U,TMPLIT_EXPR:W,DATA_ATTR:B,ARIA_ATTR:H,IS_ALLOWED_URI:q,IS_SCRIPT_OR_DATA:Y,ATTR_WHITESPACE:X,DOCTYPE_NAME:G,CUSTOM_ELEMENT:$});const V=1,J=3,Q=7,Z=8,tt=9,et=function(){return"undefined"==typeof window?null:window};var nt=function e(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:et();const o=t=>e(t);if(o.version="3.1.6",o.removed=[],!n||!n.document||n.document.nodeType!==tt)return o.isSupported=!1,o;let{document:i}=n;const a=i,s=a.currentScript,{DocumentFragment:c,HTMLTemplateElement:T,Node:k,Element:S,NodeFilter:j,NamedNodeMap:U=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:W,DOMParser:B,trustedTypes:H}=n,Y=S.prototype,X=_(Y,"cloneNode"),$=_(Y,"remove"),nt=_(Y,"nextSibling"),ot=_(Y,"childNodes"),it=_(Y,"parentNode");if("function"==typeof T){const t=i.createElement("template");t.content&&t.content.ownerDocument&&(i=t.content.ownerDocument)}let rt,at="";const{implementation:lt,createNodeIterator:st,createDocumentFragment:ct,getElementsByTagName:ut}=i,{importNode:ft}=a;let mt={};o.isSupported="function"==typeof t&&"function"==typeof it&<&&void 0!==lt.createHTMLDocument;const{MUSTACHE_EXPR:pt,ERB_EXPR:dt,TMPLIT_EXPR:ht,DATA_ATTR:gt,ARIA_ATTR:yt,IS_SCRIPT_OR_DATA:bt,ATTR_WHITESPACE:vt,CUSTOM_ELEMENT:wt}=K;let{IS_ALLOWED_URI:xt}=K,Tt=null;const kt=A({},[...R,...O,...L,...C,...M]);let At=null;const St=A({},[...I,...N,...P,...F]);let Et=Object.seal(l(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}})),_t=null,Rt=null,Ot=!0,Lt=!0,Dt=!1,Ct=!0,zt=!1,Mt=!0,It=!1,Nt=!1,Pt=!1,Ft=!1,jt=!1,Ut=!1,Wt=!0,Bt=!1,Ht=!0,qt=!1,Yt={},Xt=null;const Gt=A({},["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"]);let $t=null;const Kt=A({},["audio","video","img","source","image","track"]);let Vt=null;const Jt=A({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Qt="http://www.w3.org/1998/Math/MathML",Zt="http://www.w3.org/2000/svg",te="http://www.w3.org/1999/xhtml";let ee=te,ne=!1,oe=null;const ie=A({},[Qt,Zt,te],d);let re=null;const ae=["application/xhtml+xml","text/html"];let le=null,se=null;const ce=i.createElement("form"),ue=function(t){return t instanceof RegExp||t instanceof Function},fe=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!se||se!==t){if(t&&"object"==typeof t||(t={}),t=E(t),re=-1===ae.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,le="application/xhtml+xml"===re?d:p,Tt=v(t,"ALLOWED_TAGS")?A({},t.ALLOWED_TAGS,le):kt,At=v(t,"ALLOWED_ATTR")?A({},t.ALLOWED_ATTR,le):St,oe=v(t,"ALLOWED_NAMESPACES")?A({},t.ALLOWED_NAMESPACES,d):ie,Vt=v(t,"ADD_URI_SAFE_ATTR")?A(E(Jt),t.ADD_URI_SAFE_ATTR,le):Jt,$t=v(t,"ADD_DATA_URI_TAGS")?A(E(Kt),t.ADD_DATA_URI_TAGS,le):Kt,Xt=v(t,"FORBID_CONTENTS")?A({},t.FORBID_CONTENTS,le):Gt,_t=v(t,"FORBID_TAGS")?A({},t.FORBID_TAGS,le):{},Rt=v(t,"FORBID_ATTR")?A({},t.FORBID_ATTR,le):{},Yt=!!v(t,"USE_PROFILES")&&t.USE_PROFILES,Ot=!1!==t.ALLOW_ARIA_ATTR,Lt=!1!==t.ALLOW_DATA_ATTR,Dt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ct=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,zt=t.SAFE_FOR_TEMPLATES||!1,Mt=!1!==t.SAFE_FOR_XML,It=t.WHOLE_DOCUMENT||!1,Ft=t.RETURN_DOM||!1,jt=t.RETURN_DOM_FRAGMENT||!1,Ut=t.RETURN_TRUSTED_TYPE||!1,Pt=t.FORCE_BODY||!1,Wt=!1!==t.SANITIZE_DOM,Bt=t.SANITIZE_NAMED_PROPS||!1,Ht=!1!==t.KEEP_CONTENT,qt=t.IN_PLACE||!1,xt=t.ALLOWED_URI_REGEXP||q,ee=t.NAMESPACE||te,Et=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ue(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Et.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ue(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Et.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Et.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),zt&&(Lt=!1),jt&&(Ft=!0),Yt&&(Tt=A({},M),At=[],!0===Yt.html&&(A(Tt,R),A(At,I)),!0===Yt.svg&&(A(Tt,O),A(At,N),A(At,F)),!0===Yt.svgFilters&&(A(Tt,L),A(At,N),A(At,F)),!0===Yt.mathMl&&(A(Tt,C),A(At,P),A(At,F))),t.ADD_TAGS&&(Tt===kt&&(Tt=E(Tt)),A(Tt,t.ADD_TAGS,le)),t.ADD_ATTR&&(At===St&&(At=E(At)),A(At,t.ADD_ATTR,le)),t.ADD_URI_SAFE_ATTR&&A(Vt,t.ADD_URI_SAFE_ATTR,le),t.FORBID_CONTENTS&&(Xt===Gt&&(Xt=E(Xt)),A(Xt,t.FORBID_CONTENTS,le)),Ht&&(Tt["#text"]=!0),It&&A(Tt,["html","head","body"]),Tt.table&&(A(Tt,["tbody"]),delete _t.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw x('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');rt=t.TRUSTED_TYPES_POLICY,at=rt.createHTML("")}else void 0===rt&&(rt=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";e&&e.hasAttribute(o)&&(n=e.getAttribute(o));const i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(H,s)),null!==rt&&"string"==typeof at&&(at=rt.createHTML(""));r&&r(t),se=t}},me=A({},["mi","mo","mn","ms","mtext"]),pe=A({},["foreignobject","annotation-xml"]),de=A({},["title","style","font","a","script"]),he=A({},[...O,...L,...D]),ge=A({},[...C,...z]),ye=function(t){m(o.removed,{element:t});try{it(t).removeChild(t)}catch(e){$(t)}},be=function(t,e){try{m(o.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){m(o.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!At[t])if(Ft||jt)try{ye(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},ve=function(t){let e=null,n=null;if(Pt)t="<remove></remove>"+t;else{const e=h(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===re&&ee===te&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const o=rt?rt.createHTML(t):t;if(ee===te)try{e=(new B).parseFromString(o,re)}catch(t){}if(!e||!e.documentElement){e=lt.createDocument(ee,"template",null);try{e.documentElement.innerHTML=ne?at:o}catch(t){}}const r=e.body||e.documentElement;return t&&n&&r.insertBefore(i.createTextNode(n),r.childNodes[0]||null),ee===te?ut.call(e,It?"html":"body")[0]:It?e.documentElement:r},we=function(t){return st.call(t.ownerDocument||t,t,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT|j.SHOW_PROCESSING_INSTRUCTION|j.SHOW_CDATA_SECTION,null)},xe=function(t){return t instanceof W&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof U)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},Te=function(t){return"function"==typeof k&&t instanceof k},ke=function(t,e,n){mt[t]&&u(mt[t],(t=>{t.call(o,e,n,se)}))},Ae=function(t){let e=null;if(ke("beforeSanitizeElements",t,null),xe(t))return ye(t),!0;const n=le(t.nodeName);if(ke("uponSanitizeElement",t,{tagName:n,allowedTags:Tt}),t.hasChildNodes()&&!Te(t.firstElementChild)&&w(/<[/\w]/g,t.innerHTML)&&w(/<[/\w]/g,t.textContent))return ye(t),!0;if(t.nodeType===Q)return ye(t),!0;if(Mt&&t.nodeType===Z&&w(/<[/\w]/g,t.data))return ye(t),!0;if(!Tt[n]||_t[n]){if(!_t[n]&&Ee(n)){if(Et.tagNameCheck instanceof RegExp&&w(Et.tagNameCheck,n))return!1;if(Et.tagNameCheck instanceof Function&&Et.tagNameCheck(n))return!1}if(Ht&&!Xt[n]){const e=it(t)||t.parentNode,n=ot(t)||t.childNodes;if(n&&e)for(let o=n.length-1;o>=0;--o){const i=X(n[o],!0);i.__removalCount=(t.__removalCount||0)+1,e.insertBefore(i,nt(t))}}return ye(t),!0}return t instanceof S&&!function(t){let e=it(t);e&&e.tagName||(e={namespaceURI:ee,tagName:"template"});const n=p(t.tagName),o=p(e.tagName);return!!oe[t.namespaceURI]&&(t.namespaceURI===Zt?e.namespaceURI===te?"svg"===n:e.namespaceURI===Qt?"svg"===n&&("annotation-xml"===o||me[o]):Boolean(he[n]):t.namespaceURI===Qt?e.namespaceURI===te?"math"===n:e.namespaceURI===Zt?"math"===n&&pe[o]:Boolean(ge[n]):t.namespaceURI===te?!(e.namespaceURI===Zt&&!pe[o])&&!(e.namespaceURI===Qt&&!me[o])&&!ge[n]&&(de[n]||!he[n]):!("application/xhtml+xml"!==re||!oe[t.namespaceURI]))}(t)?(ye(t),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!w(/<\/no(script|embed|frames)/i,t.innerHTML)?(zt&&t.nodeType===J&&(e=t.textContent,u([pt,dt,ht],(t=>{e=g(e,t," ")})),t.textContent!==e&&(m(o.removed,{element:t.cloneNode()}),t.textContent=e)),ke("afterSanitizeElements",t,null),!1):(ye(t),!0)},Se=function(t,e,n){if(Wt&&("id"===e||"name"===e)&&(n in i||n in ce))return!1;if(Lt&&!Rt[e]&&w(gt,e));else if(Ot&&w(yt,e));else if(!At[e]||Rt[e]){if(!(Ee(t)&&(Et.tagNameCheck instanceof RegExp&&w(Et.tagNameCheck,t)||Et.tagNameCheck instanceof Function&&Et.tagNameCheck(t))&&(Et.attributeNameCheck instanceof RegExp&&w(Et.attributeNameCheck,e)||Et.attributeNameCheck instanceof Function&&Et.attributeNameCheck(e))||"is"===e&&Et.allowCustomizedBuiltInElements&&(Et.tagNameCheck instanceof RegExp&&w(Et.tagNameCheck,n)||Et.tagNameCheck instanceof Function&&Et.tagNameCheck(n))))return!1}else if(Vt[e]);else if(w(xt,g(n,vt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==y(n,"data:")||!$t[t])if(Dt&&!w(bt,g(n,vt,"")));else if(n)return!1;return!0},Ee=function(t){return"annotation-xml"!==t&&h(t,wt)},_e=function(t){ke("beforeSanitizeAttributes",t,null);const{attributes:e}=t;if(!e)return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:At};let i=e.length;for(;i--;){const r=e[i],{name:a,namespaceURI:l,value:s}=r,c=le(a);let m="value"===a?s:b(s);if(n.attrName=c,n.attrValue=m,n.keepAttr=!0,n.forceKeepAttr=void 0,ke("uponSanitizeAttribute",t,n),m=n.attrValue,Mt&&w(/((--!?|])>)|<\/(style|title)/i,m)){be(a,t);continue}if(n.forceKeepAttr)continue;if(be(a,t),!n.keepAttr)continue;if(!Ct&&w(/\/>/i,m)){be(a,t);continue}zt&&u([pt,dt,ht],(t=>{m=g(m,t," ")}));const p=le(t.nodeName);if(Se(p,c,m)){if(!Bt||"id"!==c&&"name"!==c||(be(a,t),m="user-content-"+m),rt&&"object"==typeof H&&"function"==typeof H.getAttributeType)if(l);else switch(H.getAttributeType(p,c)){case"TrustedHTML":m=rt.createHTML(m);break;case"TrustedScriptURL":m=rt.createScriptURL(m)}try{l?t.setAttributeNS(l,a,m):t.setAttribute(a,m),xe(t)?ye(t):f(o.removed)}catch(t){}}}ke("afterSanitizeAttributes",t,null)},Re=function t(e){let n=null;const o=we(e);for(ke("beforeSanitizeShadowDOM",e,null);n=o.nextNode();)ke("uponSanitizeShadowNode",n,null),Ae(n)||(n.content instanceof c&&t(n.content),_e(n));ke("afterSanitizeShadowDOM",e,null)};return o.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,i=null,r=null,l=null;if(ne=!t,ne&&(t="\x3c!--\x3e"),"string"!=typeof t&&!Te(t)){if("function"!=typeof t.toString)throw x("toString is not a function");if("string"!=typeof(t=t.toString()))throw x("dirty is not a string, aborting")}if(!o.isSupported)return t;if(Nt||fe(e),o.removed=[],"string"==typeof t&&(qt=!1),qt){if(t.nodeName){const e=le(t.nodeName);if(!Tt[e]||_t[e])throw x("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof k)n=ve("\x3c!----\x3e"),i=n.ownerDocument.importNode(t,!0),i.nodeType===V&&"BODY"===i.nodeName||"HTML"===i.nodeName?n=i:n.appendChild(i);else{if(!Ft&&!zt&&!It&&-1===t.indexOf("<"))return rt&&Ut?rt.createHTML(t):t;if(n=ve(t),!n)return Ft?null:Ut?at:""}n&&Pt&&ye(n.firstChild);const s=we(qt?t:n);for(;r=s.nextNode();)Ae(r)||(r.content instanceof c&&Re(r.content),_e(r));if(qt)return t;if(Ft){if(jt)for(l=ct.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(At.shadowroot||At.shadowrootmode)&&(l=ft.call(a,l,!0)),l}let f=It?n.outerHTML:n.innerHTML;return It&&Tt["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&w(G,n.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+f),zt&&u([pt,dt,ht],(t=>{f=g(f,t," ")})),rt&&Ut?rt.createHTML(f):f},o.setConfig=function(){fe(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Nt=!0},o.clearConfig=function(){se=null,Nt=!1},o.isValidAttribute=function(t,e,n){se||fe({});const o=le(t),i=le(e);return Se(o,i,n)},o.addHook=function(t,e){"function"==typeof e&&(mt[t]=mt[t]||[],m(mt[t],e))},o.removeHook=function(t){if(mt[t])return f(mt[t])},o.removeHooks=function(t){mt[t]&&(mt[t]=[])},o.removeAllHooks=function(){mt={}},o}();return nt}();const i=o.exports,r=class{constructor(e){t(this,e),this.customContent=void 0,this.repeaterContent=void 0,this.navigateViaEvent=!1,this.postMessageEvent=""}render(){const t=i.sanitize(this.customContent,{ALLOW_UNKNOWN_PROTOCOLS:!0,ADD_ATTR:["target"]});return e("div",{key:"f57e52b273a4a0bd0f8a89a43fb115e581024ab9",class:"CustomContentSectionContainer"},e("div",{key:"b9f38e71ca3db8a09ec97b34d96d6d4541c10b7b",class:"CustomContentSectionWrapper"},e("div",{key:"f4191fdc5ded6a3d7a29bf3d268cc2060f39036c",class:"CustomContentSectionContent",innerHTML:t}),this.repeaterContent?e("image-list",{style:{width:"100%"},repeaterContent:this.repeaterContent?this.repeaterContent:null,"navigate-via-event":this.navigateViaEvent,"post-message-event":this.postMessageEvent}):""))}};r.style=".sc-custom-content-section-h{display:block}*.sc-custom-content-section{margin:0}.CustomContentSectionWrapper.sc-custom-content-section{box-sizing:border-box;height:100%;align-items:center}";export{r as custom_content_section}
|