/home/bonphmya/liebeszauber-magie.de/wp-content/plugins/gtm-kit/assets/admin/467.js
"use strict";(globalThis.webpackChunkgtm_kit_settings=globalThis.webpackChunkgtm_kit_settings||[]).push([[467],{237:(e,t,n)=>{n.d(t,{A:()=>s});var i=n(6087),o=n(790);const r=(0,i.memo)((({as:e="h3",title:t="",children:n,className:i="",...r})=>(0,o.jsxs)(e,{...r,className:"gtmkit-font-bold gtmkit-text-lg gtmkit-px-8 gtmkit-py-4 gtmkit-border-b gtmkit-border-color-grey gtmkit-flex gtmkit-items-center "+i,children:[t,n]}))),a=(0,i.memo)((({as:e="div",children:t,className:n="",...i})=>(0,o.jsx)(e,{...i,className:"gtmkit-px-8 gtmkit-py-6 "+n,children:t}))),l=(0,i.forwardRef)((({children:e,className:t="",disabled:n=!1,...i},r)=>(0,o.jsx)("div",{...i,className:"gtmkit-mb-12 gtmkit-border gtmkit-bg-white gtmkit-max-w-screen-lg gtmkit-border-color-grey gtmkit-rounded "+t+(n?"gtmkit-opacity-60":""),ref:r,children:e})));l.Header=r,l.Content=a;const s=l},2467:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Te});var i=n(7723),o=n(6427),r=n(7677),a=n(5573),l=n(790),s=(0,l.jsx)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)(a.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})}),c=(0,l.jsx)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)(a.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})}),m=n(6087),u=n(6942),p=n.n(u);const{entries:d,setPrototypeOf:f,isFrozen:g,getPrototypeOf:h,getOwnPropertyDescriptor:T}=Object;let{freeze:y,seal:b,create:_}=Object,{apply:E,construct:k}="undefined"!=typeof Reflect&&Reflect;y||(y=function(e){return e}),b||(b=function(e){return e}),E||(E=function(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];return e.apply(t,i)}),k||(k=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return new e(...n)});const A=P(Array.prototype.forEach),N=P(Array.prototype.lastIndexOf),S=P(Array.prototype.pop),x=P(Array.prototype.push),w=P(Array.prototype.splice),v=P(String.prototype.toLowerCase),C=P(String.prototype.toString),D=P(String.prototype.match),R=P(String.prototype.replace),O=P(String.prototype.indexOf),L=P(String.prototype.trim),I=P(Object.prototype.hasOwnProperty),M=P(RegExp.prototype.test),z=(U=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return k(U,t)});var U;function P(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return E(e,t,i)}}function j(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v;f&&f(e,null);let i=t.length;for(;i--;){let o=t[i];if("string"==typeof o){const e=n(o);e!==o&&(g(t)||(t[i]=e),o=e)}e[o]=!0}return e}function F(e){for(let t=0;t<e.length;t++)I(e,t)||(e[t]=null);return e}function H(e){const t=_(null);for(const[n,i]of d(e))I(e,n)&&(Array.isArray(i)?t[n]=F(i):i&&"object"==typeof i&&i.constructor===Object?t[n]=H(i):t[n]=i);return t}function B(e,t){for(;null!==e;){const n=T(e,t);if(n){if(n.get)return P(n.get);if("function"==typeof n.value)return P(n.value)}e=h(e)}return function(){return null}}const G=y(["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","search","section","select","shadow","slot","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"]),W=y(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Y=y(["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"]),X=y(["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"]),$=y(["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"]),q=y(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),V=y(["#text"]),K=y(["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","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Z=y(["accent-height","accumulate","additive","alignment-baseline","amplitude","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","exponent","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","intercept","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","mask-type","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","slope","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","tablevalues","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"]),J=y(["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"]),Q=y(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ee=b(/\{\{[\w\W]*|[\w\W]*\}\}/gm),te=b(/<%[\w\W]*|[\w\W]*%>/gm),ne=b(/\$\{[\w\W]*/gm),ie=b(/^data-[\-\w.\u00B7-\uFFFF]+$/),oe=b(/^aria-[\-\w]+$/),re=b(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ae=b(/^(?:\w+script|data):/i),le=b(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),se=b(/^html$/i),ce=b(/^[a-z][.\w]*(-[.\w]+)+$/i);var me=Object.freeze({__proto__:null,ARIA_ATTR:oe,ATTR_WHITESPACE:le,CUSTOM_ELEMENT:ce,DATA_ATTR:ie,DOCTYPE_NAME:se,ERB_EXPR:te,IS_ALLOWED_URI:re,IS_SCRIPT_OR_DATA:ae,MUSTACHE_EXPR:ee,TMPLIT_EXPR:ne});const ue=function(){return"undefined"==typeof window?null:window};var pe=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ue();const n=t=>e(t);if(n.version="3.3.1",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let{document:i}=t;const o=i,r=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:l,Node:s,Element:c,NodeFilter:m,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:f,trustedTypes:g}=t,h=c.prototype,T=B(h,"cloneNode"),b=B(h,"remove"),E=B(h,"nextSibling"),k=B(h,"childNodes"),U=B(h,"parentNode");if("function"==typeof l){const e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let P,F="";const{implementation:ee,createNodeIterator:te,createDocumentFragment:ne,getElementsByTagName:ie}=i,{importNode:oe}=o;let ae={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof d&&"function"==typeof U&&ee&&void 0!==ee.createHTMLDocument;const{MUSTACHE_EXPR:le,ERB_EXPR:ce,TMPLIT_EXPR:pe,DATA_ATTR:de,ARIA_ATTR:fe,IS_SCRIPT_OR_DATA:ge,ATTR_WHITESPACE:he,CUSTOM_ELEMENT:Te}=me;let{IS_ALLOWED_URI:ye}=me,be=null;const _e=j({},[...G,...W,...Y,...$,...V]);let Ee=null;const ke=j({},[...K,...Z,...J,...Q]);let Ae=Object.seal(_(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}})),Ne=null,Se=null;const xe=Object.seal(_(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let we=!0,ve=!0,Ce=!1,De=!0,Re=!1,Oe=!0,Le=!1,Ie=!1,Me=!1,ze=!1,Ue=!1,Pe=!1,je=!0,Fe=!1,He=!0,Be=!1,Ge={},We=null;const Ye=j({},["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 Xe=null;const $e=j({},["audio","video","img","source","image","track"]);let qe=null;const Ve=j({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ke="http://www.w3.org/1998/Math/MathML",Ze="http://www.w3.org/2000/svg",Je="http://www.w3.org/1999/xhtml";let Qe=Je,et=!1,tt=null;const nt=j({},[Ke,Ze,Je],C);let it=j({},["mi","mo","mn","ms","mtext"]),ot=j({},["annotation-xml"]);const rt=j({},["title","style","font","a","script"]);let at=null;const lt=["application/xhtml+xml","text/html"];let st=null,ct=null;const mt=i.createElement("form"),ut=function(e){return e instanceof RegExp||e instanceof Function},pt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ct||ct!==e){if(e&&"object"==typeof e||(e={}),e=H(e),at=-1===lt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,st="application/xhtml+xml"===at?C:v,be=I(e,"ALLOWED_TAGS")?j({},e.ALLOWED_TAGS,st):_e,Ee=I(e,"ALLOWED_ATTR")?j({},e.ALLOWED_ATTR,st):ke,tt=I(e,"ALLOWED_NAMESPACES")?j({},e.ALLOWED_NAMESPACES,C):nt,qe=I(e,"ADD_URI_SAFE_ATTR")?j(H(Ve),e.ADD_URI_SAFE_ATTR,st):Ve,Xe=I(e,"ADD_DATA_URI_TAGS")?j(H($e),e.ADD_DATA_URI_TAGS,st):$e,We=I(e,"FORBID_CONTENTS")?j({},e.FORBID_CONTENTS,st):Ye,Ne=I(e,"FORBID_TAGS")?j({},e.FORBID_TAGS,st):H({}),Se=I(e,"FORBID_ATTR")?j({},e.FORBID_ATTR,st):H({}),Ge=!!I(e,"USE_PROFILES")&&e.USE_PROFILES,we=!1!==e.ALLOW_ARIA_ATTR,ve=!1!==e.ALLOW_DATA_ATTR,Ce=e.ALLOW_UNKNOWN_PROTOCOLS||!1,De=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Re=e.SAFE_FOR_TEMPLATES||!1,Oe=!1!==e.SAFE_FOR_XML,Le=e.WHOLE_DOCUMENT||!1,ze=e.RETURN_DOM||!1,Ue=e.RETURN_DOM_FRAGMENT||!1,Pe=e.RETURN_TRUSTED_TYPE||!1,Me=e.FORCE_BODY||!1,je=!1!==e.SANITIZE_DOM,Fe=e.SANITIZE_NAMED_PROPS||!1,He=!1!==e.KEEP_CONTENT,Be=e.IN_PLACE||!1,ye=e.ALLOWED_URI_REGEXP||re,Qe=e.NAMESPACE||Je,it=e.MATHML_TEXT_INTEGRATION_POINTS||it,ot=e.HTML_INTEGRATION_POINTS||ot,Ae=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ut(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ae.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ut(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ae.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ae.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Re&&(ve=!1),Ue&&(ze=!0),Ge&&(be=j({},V),Ee=[],!0===Ge.html&&(j(be,G),j(Ee,K)),!0===Ge.svg&&(j(be,W),j(Ee,Z),j(Ee,Q)),!0===Ge.svgFilters&&(j(be,Y),j(Ee,Z),j(Ee,Q)),!0===Ge.mathMl&&(j(be,$),j(Ee,J),j(Ee,Q))),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?xe.tagCheck=e.ADD_TAGS:(be===_e&&(be=H(be)),j(be,e.ADD_TAGS,st))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?xe.attributeCheck=e.ADD_ATTR:(Ee===ke&&(Ee=H(Ee)),j(Ee,e.ADD_ATTR,st))),e.ADD_URI_SAFE_ATTR&&j(qe,e.ADD_URI_SAFE_ATTR,st),e.FORBID_CONTENTS&&(We===Ye&&(We=H(We)),j(We,e.FORBID_CONTENTS,st)),e.ADD_FORBID_CONTENTS&&(We===Ye&&(We=H(We)),j(We,e.ADD_FORBID_CONTENTS,st)),He&&(be["#text"]=!0),Le&&j(be,["html","head","body"]),be.table&&(j(be,["tbody"]),delete Ne.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw z('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw z('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');P=e.TRUSTED_TYPES_POLICY,F=P.createHTML("")}else void 0===P&&(P=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(n=t.getAttribute(i));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(g,r)),null!==P&&"string"==typeof F&&(F=P.createHTML(""));y&&y(e),ct=e}},dt=j({},[...W,...Y,...X]),ft=j({},[...$,...q]),gt=function(e){x(n.removed,{element:e});try{U(e).removeChild(e)}catch(t){b(e)}},ht=function(e,t){try{x(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){x(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ze||Ue)try{gt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Tt=function(e){let t=null,n=null;if(Me)e="<remove></remove>"+e;else{const t=D(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===at&&Qe===Je&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=P?P.createHTML(e):e;if(Qe===Je)try{t=(new f).parseFromString(o,at)}catch(e){}if(!t||!t.documentElement){t=ee.createDocument(Qe,"template",null);try{t.documentElement.innerHTML=et?F:o}catch(e){}}const r=t.body||t.documentElement;return e&&n&&r.insertBefore(i.createTextNode(n),r.childNodes[0]||null),Qe===Je?ie.call(t,Le?"html":"body")[0]:Le?t.documentElement:r},yt=function(e){return te.call(e.ownerDocument||e,e,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},bt=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof u)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},_t=function(e){return"function"==typeof s&&e instanceof s};function Et(e,t,i){A(e,(e=>{e.call(n,t,i,ct)}))}const kt=function(e){let t=null;if(Et(ae.beforeSanitizeElements,e,null),bt(e))return gt(e),!0;const i=st(e.nodeName);if(Et(ae.uponSanitizeElement,e,{tagName:i,allowedTags:be}),Oe&&e.hasChildNodes()&&!_t(e.firstElementChild)&&M(/<[/\w!]/g,e.innerHTML)&&M(/<[/\w!]/g,e.textContent))return gt(e),!0;if(7===e.nodeType)return gt(e),!0;if(Oe&&8===e.nodeType&&M(/<[/\w]/g,e.data))return gt(e),!0;if(!(xe.tagCheck instanceof Function&&xe.tagCheck(i))&&(!be[i]||Ne[i])){if(!Ne[i]&&Nt(i)){if(Ae.tagNameCheck instanceof RegExp&&M(Ae.tagNameCheck,i))return!1;if(Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(i))return!1}if(He&&!We[i]){const t=U(e)||e.parentNode,n=k(e)||e.childNodes;if(n&&t)for(let i=n.length-1;i>=0;--i){const o=T(n[i],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,E(e))}}return gt(e),!0}return e instanceof c&&!function(e){let t=U(e);t&&t.tagName||(t={namespaceURI:Qe,tagName:"template"});const n=v(e.tagName),i=v(t.tagName);return!!tt[e.namespaceURI]&&(e.namespaceURI===Ze?t.namespaceURI===Je?"svg"===n:t.namespaceURI===Ke?"svg"===n&&("annotation-xml"===i||it[i]):Boolean(dt[n]):e.namespaceURI===Ke?t.namespaceURI===Je?"math"===n:t.namespaceURI===Ze?"math"===n&&ot[i]:Boolean(ft[n]):e.namespaceURI===Je?!(t.namespaceURI===Ze&&!ot[i])&&!(t.namespaceURI===Ke&&!it[i])&&!ft[n]&&(rt[n]||!dt[n]):!("application/xhtml+xml"!==at||!tt[e.namespaceURI]))}(e)?(gt(e),!0):"noscript"!==i&&"noembed"!==i&&"noframes"!==i||!M(/<\/no(script|embed|frames)/i,e.innerHTML)?(Re&&3===e.nodeType&&(t=e.textContent,A([le,ce,pe],(e=>{t=R(t,e," ")})),e.textContent!==t&&(x(n.removed,{element:e.cloneNode()}),e.textContent=t)),Et(ae.afterSanitizeElements,e,null),!1):(gt(e),!0)},At=function(e,t,n){if(je&&("id"===t||"name"===t)&&(n in i||n in mt))return!1;if(ve&&!Se[t]&&M(de,t));else if(we&&M(fe,t));else if(xe.attributeCheck instanceof Function&&xe.attributeCheck(t,e));else if(!Ee[t]||Se[t]){if(!(Nt(e)&&(Ae.tagNameCheck instanceof RegExp&&M(Ae.tagNameCheck,e)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(e))&&(Ae.attributeNameCheck instanceof RegExp&&M(Ae.attributeNameCheck,t)||Ae.attributeNameCheck instanceof Function&&Ae.attributeNameCheck(t,e))||"is"===t&&Ae.allowCustomizedBuiltInElements&&(Ae.tagNameCheck instanceof RegExp&&M(Ae.tagNameCheck,n)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(n))))return!1}else if(qe[t]);else if(M(ye,R(n,he,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==O(n,"data:")||!Xe[e])if(Ce&&!M(ge,R(n,he,"")));else if(n)return!1;return!0},Nt=function(e){return"annotation-xml"!==e&&D(e,Te)},St=function(e){Et(ae.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||bt(e))return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ee,forceKeepAttr:void 0};let o=t.length;for(;o--;){const r=t[o],{name:a,namespaceURI:l,value:s}=r,c=st(a),m=s;let u="value"===a?m:L(m);if(i.attrName=c,i.attrValue=u,i.keepAttr=!0,i.forceKeepAttr=void 0,Et(ae.uponSanitizeAttribute,e,i),u=i.attrValue,!Fe||"id"!==c&&"name"!==c||(ht(a,e),u="user-content-"+u),Oe&&M(/((--!?|])>)|<\/(style|title|textarea)/i,u)){ht(a,e);continue}if("attributename"===c&&D(u,"href")){ht(a,e);continue}if(i.forceKeepAttr)continue;if(!i.keepAttr){ht(a,e);continue}if(!De&&M(/\/>/i,u)){ht(a,e);continue}Re&&A([le,ce,pe],(e=>{u=R(u,e," ")}));const p=st(e.nodeName);if(At(p,c,u)){if(P&&"object"==typeof g&&"function"==typeof g.getAttributeType)if(l);else switch(g.getAttributeType(p,c)){case"TrustedHTML":u=P.createHTML(u);break;case"TrustedScriptURL":u=P.createScriptURL(u)}if(u!==m)try{l?e.setAttributeNS(l,a,u):e.setAttribute(a,u),bt(e)?gt(e):S(n.removed)}catch(t){ht(a,e)}}else ht(a,e)}Et(ae.afterSanitizeAttributes,e,null)},xt=function e(t){let n=null;const i=yt(t);for(Et(ae.beforeSanitizeShadowDOM,t,null);n=i.nextNode();)Et(ae.uponSanitizeShadowNode,n,null),kt(n),St(n),n.content instanceof a&&e(n.content);Et(ae.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,r=null,l=null,c=null;if(et=!e,et&&(e="\x3c!--\x3e"),"string"!=typeof e&&!_t(e)){if("function"!=typeof e.toString)throw z("toString is not a function");if("string"!=typeof(e=e.toString()))throw z("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Ie||pt(t),n.removed=[],"string"==typeof e&&(Be=!1),Be){if(e.nodeName){const t=st(e.nodeName);if(!be[t]||Ne[t])throw z("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof s)i=Tt("\x3c!----\x3e"),r=i.ownerDocument.importNode(e,!0),1===r.nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?i=r:i.appendChild(r);else{if(!ze&&!Re&&!Le&&-1===e.indexOf("<"))return P&&Pe?P.createHTML(e):e;if(i=Tt(e),!i)return ze?null:Pe?F:""}i&&Me&>(i.firstChild);const m=yt(Be?e:i);for(;l=m.nextNode();)kt(l),St(l),l.content instanceof a&&xt(l.content);if(Be)return e;if(ze){if(Ue)for(c=ne.call(i.ownerDocument);i.firstChild;)c.appendChild(i.firstChild);else c=i;return(Ee.shadowroot||Ee.shadowrootmode)&&(c=oe.call(o,c,!0)),c}let u=Le?i.outerHTML:i.innerHTML;return Le&&be["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&M(se,i.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+u),Re&&A([le,ce,pe],(e=>{u=R(u,e," ")})),P&&Pe?P.createHTML(u):u},n.setConfig=function(){pt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Ie=!0},n.clearConfig=function(){ct=null,Ie=!1},n.isValidAttribute=function(e,t,n){ct||pt({});const i=st(e),o=st(t);return At(i,o,n)},n.addHook=function(e,t){"function"==typeof t&&x(ae[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=N(ae[e],t);return-1===n?void 0:w(ae[e],n,1)[0]}return S(ae[e])},n.removeHooks=function(e){ae[e]=[]},n.removeAllHooks=function(){ae={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),de=n(237),fe=n(282),ge=n(4277);const he=(0,m.memo)((({title:e,type:t,hideEmpty:n=!0})=>{const{useNotifications:a,setNotificationStatus:u,useIsUpdatingNotifications:d}=(0,m.useContext)(fe.V2),[f,g]=(0,m.useState)(!1),h=a[t],T=(0,m.useMemo)((()=>Object.entries(h.active)),[h.active]),y=(0,m.useMemo)((()=>Object.entries(h.dismissed)),[h.dismissed]),b=(0,m.useCallback)((()=>{g((e=>!e))}),[]),_=(0,m.useCallback)(((e,t,n)=>(0,l.jsxs)("div",{className:p()("gtmkit-flex gtmkit-items-center gtmkit-justify-between gtmkit-border gtmkit-px-4 gtmkit-py-3 gtmkit-gap-x-16",{"gtmkit-border gtmkit-border-t-0":n},{"gtmkit-border-2":!n}),children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("span",{className:"gtmkit-font-bold gtmkit-mr-2",children:t.header}),(0,l.jsx)("span",{className:"gtmkit-text-sm",dangerouslySetInnerHTML:{__html:pe.sanitize(t.message)}})]}),(0,l.jsxs)(o.Button,{variant:"primary",className:"gtmkit-rounded !gtmkit-py-1 !gtmkit-px-3 gtmkit-h-min",onClick:()=>u(t.id,n?"restore":"dismiss"),children:[(0,l.jsx)("span",{className:"gtmkit-text-sm",children:n?(0,i.__)("Restore","gtm-kit"):(0,i.__)("Dismiss","gtm-kit")}),d?(0,l.jsx)(o.Spinner,{}):null]})]},e)),[u,d]);return 0===h.total&&n?null:(0,l.jsxs)(de.A,{children:[(0,l.jsx)(de.A.Header,{title:e,children:(0,l.jsx)(ge.A,{count:h.active.length,important:"problem"===t})}),(0,l.jsxs)(de.A.Content,{className:"gtmkit-space-y-4",children:[T.map((([e,t])=>_(e,t,!1))),y.length>0&&(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"gtmkit-border-2 gtmkit-px-4 gtmkit-py gtmkit-font-bold gtmkit-flex gtmkit-items-center gtmkit-justify-between gtmkit-cursor-pointer",onClick:b,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),b())},role:"button",tabIndex:0,children:[(0,l.jsx)("span",{children:(0,i.sprintf)(
// translators: %1$d is number %2$s can be either 'problem' or 'notification'.
// translators: %1$d is number %2$s can be either 'problem' or 'notification'.
(0,i._n)("You have %1$d hidden %2$s:","You have %1$d hidden %2$ss:",y.length,"gtm-kit"),y.length,t)}),(0,l.jsx)(r.A,{icon:f?s:c,size:48})]}),(0,l.jsx)("div",{className:p()("gtmkit-border","gtmkit-border-t-0","gtmkit-mb-4","gtmkit-bg-color-background-disabled",{"gtmkit-hidden":!f}),children:y.map((([e,t])=>_(e,t,!0)))})]}),0===h.total&&(0,l.jsx)("p",{children:(0,i.__)("No notifications at the moment.","gtm-kit")})]})]})})),Te=()=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h2",{className:"gtmkit-text-2xl gtmkit-font-bold gtmkit-text-color-heading gtmkit-mb-8",children:(0,i.__)("Misc","gtm-kit")}),(0,l.jsx)(he,{title:(0,i.__)("Problems","gtm-kit"),type:"problem"}),(0,l.jsx)(he,{title:(0,i.__)("Notifications","gtm-kit"),type:"notice",hideEmpty:!1})]})}}]);