1!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="099c8ccc-d363-4f26-8f39-2fab97b00a86",t._sentryDebugIdIdentifier="sentry-dbid-099c8ccc-d363-4f26-8f39-2fab97b00a86")}catch(t){}}();var _sentryModuleMetadataGlobal="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_sentryModuleMetadataGlobal._sentryModuleMetadata=_sentryModuleMetadataGlobal._sentryModuleMetadata||{},_sentryModuleMetadataGlobal._sentryModuleMetadata[(new _sentryModuleMetadataGlobal.Error).stack]=Object.assign({},_sentryModuleMetadataGlobal._sentryModuleMetadata[(new _sentryModuleMetadataGlobal.Error).stack],{"_sentryBundlerPluginAppKey:naturehouse":!0}),(self.webpackChunknature_house=self.webpackChunknature_house||[]).push([[9100],{PzJS:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});const o={templateInstantiated:"template-instantiated"}},"/dQ+":(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});n("3bBZ");var o,s,i,a,r,c=n("PzJS"),l=function(t,e,n,o){if("a"===n&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?o:"a"===n?o.call(t):o?o.value:e.get(t)};class d{constructor(){o.add(this),this.components=[],this.instantiatedComponents=new Map}getComponent(t){return this.instantiatedComponents.get(t)}init(){this.components.length>0&&this.resolveComponents();document.addEventListener(c.Z.templateInstantiated,(t=>{this.resolveComponents(t.detail)}))}resolveComponents(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;Array.from(t.querySelectorAll("[data-nh-component]")).forEach((t=>{let e=t.getAttribute("data-nh-component");if(!e)return;e=s.toPascalCase(e);const n=this.components.find((t=>{if(void 0===t.getClassName)throw new Error("Class ".concat(t,' does not have required static method "getClassName"'));return t.getClassName()===e}));if(n){const s=l(this,o,"m",i).call(this,t,n);this.instantiatedComponents.set(e,s)}}))}static formatBinding(t){return t.substring(4,5).toLowerCase()+t.slice(5)}static toPascalCase(t){return t.split("-").map((t=>"".concat(t.charAt(0).toUpperCase()).concat(t.slice(1)))).join("")}}s=d,o=new WeakSet,i=function(t,e){const n={element:t,bindings:l(this,o,"m",a).call(this,t)},s=l(this,o,"m",r).call(this,e,n);return Object.keys(n.bindings).forEach((t=>{let e=n.bindings[t];Reflect.defineProperty(n.bindings,t,{set(t){e=t},get:()=>e,configurable:!1})})),this.resolveComponents(t),s.onInit&&s.onInit(),t.removeAttribute("data-nh-component"),s},a=function(t){const e=t.dataset,n={};return Object.keys(e).forEach((t=>{if(t.startsWith("bind")){const o=s.formatBinding(t);n[o]=e[t]}})),n},r=function(t,e){return new t(e)};const u=d},qlyM:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r,p:()=>a});var o=n("lmi8"),s=n("PWvM"),i=n.n(s);function a(t){return i().render(t)}function r(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5e3,s=document.querySelector('[data-role="notification-container"]');s||(s=document.createElement("div"),s.dataset.role="notification-container",s.className="nh-notification-container",s.dataset.position="top-right",document.body.appendChild(s));const i=new o.Z({type:t,content:e,delay:n});s.appendChild(i),s||document.body.appendChild(s)}},lmi8:(t,e,n)=>{"use strict";n.d(e,{k:()=>M,Z:()=>O});n("BFK5"),n("6OJ2");var o,s,i,a,r,c,l,d=n("6KDB"),u=function(t,e,n,o){if("a"===n&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?o:"a"===n?o.call(t):o?o.value:e.get(t)};class h extends HTMLElement{constructor(t){super(),o.add(this),s.set(this,(t=>{t.target===window&&this.play()})),i.set(this,(t=>{t.target===window&&this.pause()})),a.set(this,(t=>{t.stopPropagation(),this.dispatchEvent(new Event("done"))})),u(this,o,"m",r).call(this,t)}play(){this.style.animationPlayState="running"}pause(){this.style.animationPlayState="paused"}connectedCallback(){u(this,o,"m",c).call(this),window.document.hasFocus()&&this.play()}disconnectedCallback(){this.pause(),u(this,o,"m",l).call(this)}}s=new WeakMap,i=new WeakMap,a=new WeakMap,o=new WeakSet,r=function(t){this.style.animationDuration="".concat(t,"ms"),this.style.animationPlayState="paused"},c=function(){this.addEventListener("animationend",u(this,a,"f")),window.addEventListener("focus",u(this,s,"f")),window.addEventListener("blur",u(this,i,"f"))},l=function(){this.removeEventListener("animationend",u(this,a,"f")),window.removeEventListener("focus",u(this,s,"f")),window.removeEventListener("blur",u(this,i,"f"))};const m=h;window.customElements.get("nh-notification-progress-bar")||window.customElements.define("nh-notification-progress-bar",h);var p,f,b,w,v,g,y,E,k,L,M,A=function(t,e,n,o){if("a"===n&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?o:"a"===n?o.call(t):o?o.value:e.get(t)}
1,C=function(t,e,n,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,n):s?s.value=n:e.set(t,n),n};!function(t){t.PLAY="play",t.PAUSE="pause"}(L||(L={})),function(t){t.INFO="info",t.WARNING="warning",t.ERROR="error",t.SUCCESS="success"}(M||(M={}));const P={[M.INFO]:"circle-info",[M.WARNING]:"warning",[M.ERROR]:"error",[M.SUCCESS]:"success"},F={type:M.INFO,content:"",delay:0};class _ extends HTMLElement{constructor(t){var e;super(),p.add(this),f.set(this,null),b.set(this,void 0),this.options=Object.assign(Object.assign({},F),t),A(this,p,"m",g).call(this);const n=this.innerHTML;this.innerText="",this.attachShadow({mode:"open"});const o=this.getAttribute("delay")||(null===(e=this.options.delay)||void 0===e?void 0:e.toString())||"0";this.setAttribute("delay",o),A(this,p,"m",y).call(this);const s=A(this,p,"m",E).call(this,this.options.content||n);Number(o)>0&&A(this,p,"m",k).call(this,s)}static get observedAttributes(){return["show","hide"]}show(){A(this,b,"f")&&(A(this,b,"f").play(),A(this,b,"f").addEventListener("done",(()=>{this.toggleAttribute("hide",!0)})))}hide(){this.toggleAttribute("show",!1),this.addEventListener("animationend",(()=>{this.remove()}))}connectedCallback(){var t,e;this.toggleAttribute("show",!0),this.addEventListener("mouseover",A(this,p,"m",w).bind(this,L.PAUSE)),this.addEventListener("mouseout",A(this,p,"m",w).bind(this,L.PLAY)),C(this,f,(null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector('[part="close-icon"]'))||null,"f"),null===(e=A(this,f,"f"))||void 0===e||e.addEventListener("click",A(this,p,"m",v).bind(this))}disconnectedCallback(){var t;null===(t=A(this,f,"f"))||void 0===t||t.removeEventListener("click",A(this,p,"m",v).bind(this)),this.removeEventListener("mouseover",A(this,p,"m",w).bind(this,L.PAUSE)),this.removeEventListener("mouseout",A(this,p,"m",w).bind(this,L.PLAY))}attributeChangedCallback(t){"show"===t&&this.show(),"hide"===t&&this.hide()}}f=new WeakMap,b=new WeakMap,p=new WeakSet,w=function(t){var e,n;t!==L.PLAY?t===L.PAUSE&&(null===(n=A(this,b,"f"))||void 0===n||n.pause()):null===(e=A(this,b,"f"))||void 0===e||e.play()},v=function(){this.toggleAttribute("hide",!0),this.dispatchEvent(new Event("closed"))},g=function(){const t=this.options.type||M.INFO;!this.hasAttribute("type")&&Object.values(M).includes(t)&&this.setAttribute("type",t)},y=function(){if(!this.shadowRoot)return;const t=P[this.options.type||""];if(t){const e=new d.Z;e.name=t,e.size="1",e.setAttribute("part","icon"),this.shadowRoot.append(e)}const e=new d.Z;e.name="close",e.size="1",e.setAttribute("part","close-icon");const n=document.createElement("slot");n.setAttribute("name","content"),this.shadowRoot.append(n,e)},E=function(t){const e=document.createElement("DIV");return e.setAttribute("slot","content"),e.innerHTML=t||"",this.append(e),e},k=function(t){if(!this.hasAttribute("delay"))return;const e=Number(this.getAttribute("delay"));C(this,b,new m(e),"f"),A(this,b,"f").setAttribute("part","progress-bar"),t.append(A(this,b,"f"))};const O=_;window.customElements.get("nh-notification-item")||window.customElements.define("nh-notification-item",_)},PWvM:(t,e,n)=>{var o,s=n("1I2M");o=s.currentEnv?s.currentEnv:s.currentEnv=new s.Environment([],void 0);n("lA6S")(o);var i=s.webpackDependencies||(s.webpackDependencies={});i["@naturehouse/design-system/components/atoms/anchor/Anchor.macro.njk"]=n("nIrG");var a=n("fEtM");(s.nunjucksPrecompiled=s.nunjucksPrecompiled||{})["design-system/v3/components/molecules/notification-message/NotificationMessage.html.njk"]={root:function(t,e,n,o,s){var i=0,a=0,r="";try{r+='<div class="nh-notification-message">\n <span class="nh-notification-message__title">\n ',r+=o.suppressValue(t.getFilter("default").call(e,o.contextOrFrameLookup(e,n,"title"),""),t.opts.autoescape),r+='\n </span>\n <div class="nh-notification-message__content">\n ',r+=o.suppressValue(t.getFilter("safe").call(e,t.getFilter("default").call(e,o.
1contextOrFrameLookup(e,n,"content"))),t.opts.autoescape),r+="\n </div>\n ",!0===t.getTest("defined").call(e,o.contextOrFrameLookup(e,n,"cta"))&&t.getFilter("default").call(e,o.memberLookup(o.contextOrFrameLookup(e,n,"cta"),"label"))&&t.getFilter("default").call(e,o.memberLookup(o.contextOrFrameLookup(e,n,"cta"),"href"))&&(r+="\n ",t.getTemplate("@naturehouse/design-system/components/atoms/anchor/Anchor.macro.njk",!1,"design-system/v3/components/molecules/notification-message/NotificationMessage.html.njk",!1,(function(c,l){c?s(c):l.getExported((function(c,l){var d,u;c?s(c):(e.setVariable("anchorTemplate",l),d={},n.set("icon",d,!0),n.topLevel&&e.setVariable("icon",d),n.topLevel&&e.addExport("icon",d),"_blank"==t.getFilter("default").call(e,o.memberLookup(o.contextOrFrameLookup(e,n,"cta"),"target"),"")&&(u={name:"external-link"},n.set("icon",u,!0),n.topLevel&&e.setVariable("icon",u),n.topLevel&&e.addExport("icon",u)),r+=o.suppressValue((i=18,a=32,o.callWrap(o.memberLookup(l,"render"),'anchorTemplate["render"]',e,[{label:o.memberLookup(o.contextOrFrameLookup(e,n,"cta"),"label"),href:o.memberLookup(o.contextOrFrameLookup(e,n,"cta"),"href"),target:t.getFilter("default").call(e,o.memberLookup(o.contextOrFrameLookup(e,n,"cta"),"target"),""),classes:["nh-notification-message__button"],icon:o.contextOrFrameLookup(e,n,"icon"),iconPosition:"right",data:t.getFilter("default").call(e,o.memberLookup(o.contextOrFrameLookup(e,n,"cta"),"data"),{})}])),t.opts.autoescape),r+="\n ")}))}))),s(null,r+="\n</div>\n")}catch(t){s(o.handleError(t,i,a))}}},t.exports=a(s,o,s.nunjucksPrecompiled["design-system/v3/components/molecules/notification-message/NotificationMessage.html.njk"],i)}}]); 2//# sourceMappingURL=9100.e9803723.js.map
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.