1(self.webpackChunksvk_designsystem=self.webpackChunksvk_designsystem||[]).push([[6648,7928],{72348:function(t,e,i){var n={"./sv":41011,"./sv.js":41011,"node_modules/moment/locale/sv":41011,"node_modules/moment/locale/sv.js":41011};function r(t){var e=s(t);return i(e)}function s(t){if(!i.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}r.keys=function(){return Object.keys(n)},r.resolve=s,t.exports=r,r.id=72348},35363:function(module,__unused_webpack_exports,__webpack_require__){var moment=__webpack_require__(95093);module.exports=function(obj){obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;function print(){__p+=__j.call(arguments,"")}with(obj)data.map(t=>{__p+='\n\t<li class="results__list-item">\n\t\t<svk-card\n\t\t\tsize="small"\n\t\t\timg-src="'+__e(t.images[0])+'?doprocessing=1"\n\t\t\timg-fallback="true"\n\t\t\timg-fallback-icon="church"\n\t\t>\n\t\t\t<div class="card__pretitle">\n\t\t\t\tStart: '+__e(moment(t.start).format("D MMMM YYYY"))+'\n\t\t\t</div>\n\t\t\t<h3 class="card__title">\n\t\t\t\t<a href="'+__e(t.url)+'">\n\t\t\t\t\t'+__e(t.title)+'\n\t\t\t\t</a>\n\t\t\t</h3>\n\t\t\t<div class="card__subtitle">\n\t\t\t\t'+(null==(__t=getPlaceTitle(t))?"":__t)+'\n\t\t\t</div>\n\t\t\t<p class="card__text">\n\t\t\t\t'+__e(t.description)+'\n\t\t\t</p>\n\t\t\t<div class="card__tags">\n\t\t\t\t',null!==t.themes&&t.themes.length&&(__p+="\n\t\t\t\t\t",t.themes.map(t=>{__p+='\n\t\t\t\t\t\t<svk-chip label="'+__e(t)+'" class="chip--secondary label-50"></svk-chip>\n\t\t\t\t\t'}),__p+="\n\t\t\t\t"),__p+="\n\t\t\t</div>\n\t\t</svk-card>\n\t</li>\n"}),__p+="\n";return __p}},98086:function(module){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div class="results">\n\t<div class="results__header">\n\t\t<svk-readspeaker>\n\t\t\t<a href="https://app-eu.readspeaker.com/cgi-bin/rsent?customerid=4936&lang=sv_se&readid=konfirmations-resultat" class="readspeaker__button svk-button button--tertiary">\n\t\t\t\t<svk-icon name="speaker"></svk-icon> Lyssna\n\t\t\t</a>\n\t\t</svk-readspeaker>\n\t</div>\n\t<ul id="konfirmations-resultat" class="results__list list--none"></ul>\n\t<div class="results__loadmore">\n\t\t<button class="results__loadmore-button svk-button js-loadmore">\n\t\t\tVisa fler\n\t\t</button>\n\t</div>\n</div>\n';return __p}},8532:function(t,e,i){"use strict";i.d(e,{c:function(){return n}});let n=(t,e)=>{let i=document,n="script",r=i.createElement(n),s=i.getElementsByTagName(n)[0];r.src=t,e&&"function"==typeof e&&r.addEventListener("load",t=>{e(null,t)},!1),s.parentNode.insertBefore(r,s)}},35160:function(t,e,i){"use strict";i.d(e,["U",0,t=>{const{url:e,hasDoProcessing:i}=(t=>{if(!t||!t.includes("?"))return{url:t,hasDoProcessing:!1};const[e,i]=t.split("?"),n=new URLSearchParams(i),r=n.has("DoProcessing")||n.has("doprocessing");return r&&(n.delete("w"),n.delete("ra"),n.delete("c")),{url:`${e}${n.toString()?"?"+n.toString():""}`,hasDoProcessing:r}})(t.src);if(i){return`\n\t\t\t${Object.entries(t.sizes).sort(([t],[e])=>e-t).map(([t,{w:i,ra:n}])=>`<source ${0!==t&&"0"!==t?`media="(min-width: ${t}px)"`:""} srcset="${e}&w=${i}${n?`&ra=${n}&c=85`:""} 1x, ${e}&w=${Math.min(2*i,1920)}${n?`&ra=${n}&c=75`:""} 2x" ${0!==t&&"0"!==t?`sizes="${i}px"`:'sizes="100vw"'} />`).join("\n")}\n\t\t\t<img\n\t\t\t\tsrc="${e}&w=${t.default.w}${t.default.ra?`&ra=${t.default.ra}`:""}"\n\t\t\t\tsrcset="${e}&w=${t.default.w}${t.default.ra?`&ra=${t.default.ra}`:""}&c=85 1x, ${e}&w=${Math.min(2*t.default.w,1920)}${t.default.ra?`&ra=${t.default.ra}`:""}&c=75 2x"\n\t\t\t\talt="${t.alt?t.alt:""}"\n\t\t\t\t${t.width?`width="${t.width}"`:`width="${t.default.w}"`}\n\t\t\t\t${t.height?`height="${t.height}"`:`height="${t.default.ra?t.default.w/t.default.ra:t.default.w}"`}\n\t\t\t\tsizes="100vw"\n\t\t\t\tloading="lazy"\n\t\t\t\t${t.position?`style="object-position: ${t.position}"`:""} />\n\t\t`}return`\n\t\t\t<img\n\t\t\t\tsrc="${e}"\n\t\t\t\talt="${t.alt?t.alt:""}"\n\t\t\t\t${t.width?`width="${t.width}"`:`width="${t.default.w}"`}\n\t\t\t\t${t.height?`height="${t.height}"`:`height="${t.default.ra?t.default.w/t.default.ra:t.default.w}"`}\n\t\t\t\tsizes="100vw"\n\t\t\t\tloading="lazy" />\n\t\t`}])}
1,33730:function(t,e,i){"use strict";function n(t){return encodeURIComponent(t).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}function r(t){return"string"!=typeof t?{}:(t=t.trim().replace(/^(\?|#|&)/,""))?t.split("&").reduce(function(t,e){var i=e.replace(/\+/g," ").split("="),n=i.shift(),r=i.length>0?i.join("="):void 0;return n=decodeURIComponent(n),r=void 0===r?null:decodeURIComponent(r),t.hasOwnProperty(n)?Array.isArray(t[n])?t[n].push(r):t[n]=[t[n],r]:t[n]=r,t},{}):{}}function s(t){return t?Object.keys(t).map(function(e){var i=t[e];return void 0===i?"":null===i?e:Array.isArray(i)?i.map(function(t){return n(e)+"="+n(t)}).join("&"):n(e)+"="+n(i)}).filter(function(t){return t.length>0}).join("&"):""}i.d(e,{As:function(){return s},qg:function(){return r}})},47316:function(t,e,i){"use strict";i.r(e),i.d(e,{SvkCard:function(){return r}});i(26648);var n=i(35160);class r extends HTMLElement{constructor(){super(),this.size=this.getAttribute("size"),this.heading=this.getAttribute("heading"),this.imgSrc=this.getAttribute("img-src"),this.imgSrcset=this.getAttribute("img-srcset"),this.imgAlt=this.getAttribute("img-alt")||"",this.imgWidth=this.getAttribute("img-width")||"",this.imgHeight=this.getAttribute("img-height")||"",this.imgSizes=this.getAttribute("img-sizes")||"100vw",this.imgProcessing="false"!==this.getAttribute("img-processing"),this.imgPosition=this.getAttribute("img-position"),this.imgFallback="true"===this.getAttribute("img-fallback"),this.imgFallbackIcon=this.getAttribute("img-fallback-icon")||"image",this.illustrationFile=this.getAttribute("illustration-file"),this.illustrationName=this.getAttribute("illustration-name"),this.hasRendered=!1}connectedCallback(){this.hasRendered||(this.modifyContent(),this.render(),this.hasRendered=!0)}modifyContent(){let t=this.querySelector("h2, h3, h4",".card__title"),e=this.querySelector("a"),i=this.querySelector(".card__text, p:not(.card__subtitle,.card__pretitle"),n=this.querySelector(".card__pretitle"),r=this.querySelector(".card__subtitle");if(null!==t){let e="heading-03";null!==this.heading?e=this.heading:"large"===this.size?e="heading-02":"small"===this.size&&(e="heading-04"),t.classList.add(e)}null!==e&&(e.classList.add("svk-link"),e.classList.add("link--expand")),null!==i&&("small"===this.size?i.classList.add("paragraph-75"):i.classList.add("paragraph-100")),null!==n&&n.classList.add("paragraph-75"),null!==r&&r.classList.add("label-100")}getSizeConfiguration(){const t={large:{default:{w:"480",ra:"1.33"},sizes:{0:{w:"443",ra:"1.33"},480:{w:"641",ra:"1.33"},680:{w:"777",ra:"1.5"},860:{w:"375",ra:"1.5"},1024:{w:"443",ra:"1.5"},1200:{w:"602",ra:"1.5"}}},medium:{default:{w:"480",ra:"1.33"},sizes:{0:{w:"443",ra:"1.33"},480:{w:"641",ra:"1.33"},680:{w:"777",ra:"1.55"},860:{w:"458",ra:"1"},1024:{w:"543",ra:"1.6"},1200:{w:"740",ra:"1.6"}}},small:{default:{w:"480",ra:"1"},sizes:{0:{w:"443",ra:"1"},480:{w:"641",ra:"1"},680:{w:"641",ra:"1"},860:{w:"380",ra:"1"},1024:{w:"300",ra:"1"},1200:{w:"486",ra:"1"}}},default:{default:{w:"480",ra:"1"},sizes:{0:{w:"443",ra:"1"},480:{w:"641",ra:"1"},680:{w:"641",ra:"1"},860:{w:"380",ra:"1"},1024:{w:"300",ra:"1"},1200:{w:"486",ra:"1"}}}};return t[this.size]||t.default}getImage(){if(void 0!==this.imgSrc&&null!==this.imgSrc){if(this.imgProcessing){if(this.imgSrcset)return`\n\t\t\t\t<figure class="card__image">\n\t\t\t\t\t<picture>\n\t\t\t\t\t\t<img\n\t\t\t\t\t\t\tsrc="${this.imgSrc}"\n\t\t\t\t\t\t\tsrcset="${this.imgSrcset}"\n\t\t\t\t\t\t\talt="${this.imgAlt}"\n\t\t\t\t\t\t\tsizes="${this.imgSizes}"\n\t\t\t\t\t\t\tloading="lazy"\n\t\t\t\t\t\t\t${this.imgPosition?`style="object-position: ${this.imgPosition}"`:""} />\n\t\t\t\t\t</picture>\n\t\t\t\t</figure>`;{const t=this.getSizeConfiguration();return`\n\t\t\t\t<figure class="card__image">\n\t\t\t\t\t<picture>\n\t\t\t\t\t\t${(0,n.U)({src:this.imgSrc,alt:this.imgAlt,...t})}\n\t\t\t\t\t</picture>\n\t\t\t\t</figure>`}}return`\n\t\t\t\t<figure class="card__image">\n\t\t\t\t\t<picture>\n\t\t\t\t\t\t<img\n\t\t\t\t\t\t\tsrc="${this.imgSrc}"\n\t\t\t\t\t\t\talt="${this.imgAlt}"\n\t\t\t\t\t\t\tloading="lazy"\n\t\t\t\t\t\t\t${this.imgPosition?`style="object-position: ${this.imgPosition}"`:""} />\n\t\t\t\t\t</picture>\n\t\t\t\t</figure>`}return null!==this.illustrationFile&&null!==this.illustrationName?`\n\t\t\t<figure class="card__image"><svk-illustration file="${this.illustrationFile}" name="${this.illustrationName}"></svk-illustration></figure>`:this.imgFallback?null!==this.imgFallbackIcon?`<div class="card__image card__image--fallback"><svk-icon name="${this.imgFallbackIcon}"></svk-icon></div>`:(this.classList.add("card--no-image"),'<div class="card__image card__image--fallback"></div>'):(this.classList.add("card--no-image"),"")}checkLazyImages(){let t=this.querySelector("[loading=lazy]");"loading"in HTMLImageElement.prototype?null!==t&&(t.addEventListener("load",this.handleLazyImageLoad,!1),t.addEventListener("error",this.handleLazyImageError.bind(this),!1)):this.querySelector("img").classList.add("is-loaded")}isClamped(t){const e=t.clientHeight;return t.scrollHeight>e}toggleLineClamp(t){const e=t.target.previousElementSibling;e.classList.contains("is-show-more")?(e.classList.remove("is-show-more"),t.target.innerHTML='Visa mer <svk-icon name="arrow-down"></svk-icon>'):(e.classList.add("is-show-more"),t.target.innerHTML='Visa mindre <svk-icon name="arrow-up"></svk-icon>')}checkTextOverflow(){const t=this.querySelector(".card__content p");t&&this.isClamped(t)&&(t.insertAdjacentHTML("afterend",'<button class="svk-button button--tertiary button--tertiary-inline js-readmore">Visa mer <svk-icon name="arrow-down"></svk-icon></button>'),this.querySelector(".js-readmore").addEventListener("click",this.toggleLineClamp.bind(this)))}handleLazyImageLoad(t){t.currentTarget.classList.add("is-loaded")}handleLazyImageError(){try{this.imgFallback?this.querySelector(".card__content").insertAdjacentHTML("beforebegin",`<div class="card__image card__image--fallback"><svk-icon name="${this.imgFallbackIcon}"></svk-icon></div>`):(this.classList.add("card--no-image"),this.querySelector(".card__content").insertAdjacentHTML("beforebegin",'<div class="card__image card__image--fallback"></svk-icon></div>')),this.removeChild(this.querySelector(".card__image"))}catch(t){}}render(){let t=this.innerHTML;this.innerHTML=`\n\t\t\t${this.getImage()}\n\t\t\t<div class="card__content">\n\t\t\t\t${t}\n\t\t\t</div>\n\t\t`,this.checkLazyImages(),this.querySelector("a[href]")||this.checkTextOverflow()}}window.customElements.define("svk-card",r)}
1,26648:function(t,e,i){"use strict";i.r(e),i.d(e,{SvkChip:function(){return n}});class n extends HTMLElement{constructor(){super(),this.label=this.getAttribute("label"),this.action=this.getAttribute("action"),this.type=this.getAttribute("type"),this.href=this.getAttribute("href"),this.attachShadow({mode:"open"})}connectedCallback(){this.render()}templateLabel(){let t=`${this.label}`;return"filter"===this.action?t=`<svk-icon name="check-300"></svk-icon> ${t}`:"input"===this.action&&(t+='<svk-icon name="close-300"></svk-icon>'),t}templateText(){return`\n\t\t\t<span class="chip ${null!==this.action?`chip--${this.action}`:""}">\n\t\t\t\t${this.templateLabel()}\n\t\t\t</span>`}templateLink(){return`\n\t\t\t<a href="${this.href}" class="chip chip--button ${null!==this.action?`chip--${this.action}`:""}">\n\t\t\t\t${this.templateLabel()}\n\t\t\t</a>`}templateButton(){return`\n\t\t\t<button class="chip chip--button ${null!==this.action?`chip--${this.action}`:""}">\n\t\t\t\t${this.templateLabel()}\n\t\t\t</button>`}render(){let t=document.createElement("template");this.classList.add("label-50"),t.innerHTML='\n\t\t\t<style>\n\t\t\t\t:host {\n\t\t\t\t\tdisplay: flex;\n\t\t\t\t}\n\n\t\t\t\t.chip {\n\t\t\t\t\tdisplay: inline-flex;\n\t\t\t\t\tgap: var(--space-50);\n\t\t\t\t\talign-items: center;\n\t\t\t\t\tjustify-content: center;\n\t\t\t\t\tcolor: var(--link-color-primary);\n\t\t\t\t\tline-height: 1;\n\t\t\t\t\tbackground: transparent;\n\t\t\t\t\tborder: 1px solid currentColor;\n\t\t\t\t\tborder-radius: 10rem;\n\t\t\t\t\tpadding: var(--space-25) var(--space-50);\n\t\t\t\t\tfont-size: inherit;\n\t\t\t\t\ttext-decoration: none;\n\t\t\t\t\tcursor: default;\n\t\t\t\t}\n\n\t\t\t\t.chip--button,\n\t\t\t\t.chip--input,\n\t\t\t\t.chip--filter {\n\t\t\t\t\tposition: relative;\n\t\t\t\t\tpadding: var(--space-50) var(--space-75);\n\n\t\t\t\t\t&:after {\n\t\t\t\t\t\tcontent: "";\n\t\t\t\t\t\tposition: absolute;\n\t\t\t\t\t\ttop: 50%;\n\t\t\t\t\t\tleft: 50%;\n\t\t\t\t\t\tmin-width: 44px;\n\t\t\t\t\t\tmin-height: 44px;\n\t\t\t\t\t\theight: 100%;\n\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\ttransform: translate(-50%, -50%);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t.chip--button {\n\t\t\t\t\tcursor: pointer;\n\t\t\t\t}\n\n\t\t\t\t@media (hover: hover) {\n\t\t\t\t\t.chip--button:hover {\n\t\t\t\t\t\tbackground: var(--color-opacity-brand-primary-008);\n\t\t\t\t\t\toutline: 1px solid currentColor;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t.chip--button:active {\n\t\t\t\t\tbackground: var(--color-opacity-brand-primary-016);\n\t\t\t\t\toutline: 1px solid currentColor;\n\t\t\t\t}\n\n\t\t\t\t.chip--button:focus-visible {\n\t\t\t\t\tborder-color: transparent;\n\t\t\t\t\toutline: var(--support-border-focused) solid var(--support-color-focused);\n\t\t\t\t}\n\n\t\t\t\t.chip--input {\n\t\t\t\t\tcolor: var(--color-black);\n\t\t\t\t\tbackground: var(--color-white);\n\t\t\t\t}\n\t\t\t\t.chip--filter svk-icon {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\n\t\t\t\t.chip--filter {\n\t\t\t\t\tcolor: var(--color-black);\n\t\t\t\t}\n\n\t\t\t\t:host([checked]) .chip--filter {\n\t\t\t\t\tcolor: var(--color-white);\n\t\t\t\t\tborder-color: var(--color-orange-700);\n\t\t\t\t\tbackground: var(--color-orange-700);\n\t\t\t\t}\n\n\t\t\t\t:host([checked]) .chip--filter svk-icon {\n\t\t\t\t\tdisplay: flex;\n\t\t\t\t}\n\n\t\t\t\t@media (hover: hover) {\n\t\t\t\t\t:host([checked]) .chip--filter:hover {\n\t\t\t\t\t\tbackground-color: var(--color-orange-800);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t:host([checked]) .chip--filter:active {\n\t\t\t\t\tbackground-color: var(--color-orange-900);\n\t\t\t\t}\n\n\t\t\t\tsvk-icon {\n\t\t\t\t\tdisplay: inline-flex;\n\t\t\t\t\twidth: 0.8em;\n\t\t\t\t\theight: 0.8em;\n\t\t\t\t}\n\n\t\t\t\tsvg {\n\t\t\t\t\twidth: 100%;\n\t\t\t\t\theight: 100%;\n\t\t\t\t}\n\n\t\t\t\tsvg:not([fill]) {\n\t\t\t\t\tfill: currentColor;\n\t\t\t\t}\n\n\t\t\t\t:host(.chip--secondary) .chip {\n\t\t\t\t\tcolor: var(--color-black);\n\t\t\t\t}\n\n\t\t\t\t:host(.chip--primary) .chip {\n\t\t\t\t\tcolor: var(--color-white);\n\t\t\t\t\tborder-color: var(--color-orange-700);\n\t\t\t\t\tbackground: var(--color-orange-700);\n\t\t\t\t}\n\n\t\t\t\t@media (hover: hover) {\n\t\t\t\t\t:host(.chip--primary) .chip:hover {\n\t\t\t\t\t\tbackground-color: var(--color-orange-800);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t:host(.chip--primary) .chip:active {\n\t\t\t\t\tbackground-color: var(--color-orange-900);\n\t\t\t\t}\n\n\t\t\t\t:host(.chip--tertiary) .chip {\n\t\t\t\t\tcolor: var(--color-black);\n\t\t\t\t\tborder-color: var(--color-black);\n\t\t\t\t\tbackground: var(--color-opacity-brand-primary-008);\n\t\t\t\t}\n\n\t\t\t\t@media (hover: hover) {\n\t\t\t\t\t:host(.chip--tertiary) .chip:hover {\n\t\t\t\t\t\tbackground: var(--color-opacity-brand-primary-016);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t:host(.chip--tertiary) .chip:active {\n\t\t\t\t\tbackground: var(--color-opacity-brand-primary-024);\n\t\t\t\t}\n\n\t\t\t\t:host([type=info]) .chip {\n\t\t\t\t\tbackground: var(--color-white);\n\t\t\t\t\tcolor: var(--color-black);\n\t\t\t\t\tborder-color: var(--color-white);\n\t\t\t\t}\n\t\t\t</style>\n\t\t\t',"link"===this.type?t.innerHTML+=this.templateLink():"button"===this.type?t.innerHTML+=this.templateButton():t.innerHTML+=this.templateText(),this.shadowRoot.appendChild(t.content)}}window.customElements.define("svk-chip",n)}
1,68813:function(t,e,i){"use strict";i.r(e),i.d(e,{SvkConfirmationResults:function(){return l}});var n=i(33730),r=(i(47316),i(63375)),s=i(98086),a=i(35363),o=(i(90504),i(10766));i(95093).locale("sv");class l extends HTMLElement{constructor(){super(),this.dom={},this.dom.el=this,this.baseRendered=!1,this.filter=o.store.get().filter,this.state={limit:12,offset:0},this.render(),this.setupDom(),this.bindEvents(),this.handleStoreChange=this.handleStoreChange.bind(this)}connectedCallback(){o.store.onChange(this.handleStoreChange),this.getResults()}disconnectedCallback(){o.store.removeChangeListener(this.handleStoreChange)}async fetchData(){let t={...this.filter,...this.state};return void 0!==t.view&&delete t.view,(await fetch(`/webapi/api-v2/confirmation/search?apiKey=cbe1f4b6-552e-497f-a3d4-dde7409c3566&${n.As(t)}`)).json()}setupDom(){this.dom.list=this.dom.el.querySelector(".results__list"),this.dom.container=this.dom.el.querySelector(".results"),this.dom.loadMoreButton=this.dom.el.querySelector(".results__loadmore-button")}getPlaceTitle(t){let e="";if(null!==t.placeName&&(e+=t.placeName),null!==t.places&&t.places.length){""!==e&&(e+=" â "),e+=t.places.shift(),t.places.length&&(e+="<br />",t.places=r(t.places),e+=t.places.join(", "))}return e}getResults(){this.state.limit=12,this.state.offset=0,this.dom.list.innerHTML="",this.fetchData().then(t=>{this.total=parseInt(t.meta.total),o.store.updateCount(t.meta.total),this.state.offset+this.state.limit>=this.total?this.dom.loadMoreButton.style.display="none":this.dom.loadMoreButton.style.display="block",this.renderList({data:t.confirmations})}).catch(t=>{this.dom.el.innerHTML='<div class="results results--error"><h2>Ett fel har inträffat</h2><p>Vi upplever just nu problem med konfirmationer.</p></div>'})}handleLoadMoreClick(t){this.state.offset+=this.state.limit,this.state.offset+this.state.limit>=this.total&&(this.dom.loadMoreButton.style.display="none"),this.fetchData().then(t=>{this.renderList({data:t.confirmations})}).catch(t=>{this.dom.el.innerHTML='<div class="results results--error"><h2>Ett fel har inträffat</h2><p>Vi upplever just nu problem med konfirmationer.</p></div>'})}handleStoreChange(t){this.filter=t.filter,this.getResults()}bindEvents(){this.dom.loadMoreButton.addEventListener("click",this.handleLoadMoreClick.bind(this))}render(){this.dom.el.innerHTML=s()}renderList(t){if(t.data.length?this.dom.list.insertAdjacentHTML("beforeEnd",a({data:t.data,getPlaceTitle:this.getPlaceTitle})):this.dom.list.innerHTML='<p class="results__empty">Vi hittade inga konfirmandaktiviteter som matchade din sökning. Prova att söka pÃ¥ fler teman, ett annat datum eller utöka din sökradie.</p>',void 0!==window.ReadSpeaker)try{window.ReadSpeaker.ui.destroyActivePlayer()}catch(t){}}}window.customElements.define("svk-confirmation-results",l)},10766:function(t,e,i){"use strict";i.r(e);var n=i(33730),r=i(30228),s=i(95093);const a=new class{constructor(){this.filter={longitude:"",latitude:"",name:"",type:"",distance:"",themes:"",freeOfCharge:!1,days:"",date:""},this.count="",this.ee=new r}sanitizeFilter(){let t=structuredClone(this.filter),e={};return Object.entries(t).forEach(([t,i])=>{""!==i&&i&&("start"!==t||"start"===t&&!s().isSame(s(i),"day"))&&(e[t]=i)}),e}getQueryParameters(){return n.qg(window.location.search)}setQueryParameters(t={}){let e=n.As(t);history.replaceState(null,"",`${window.location.origin}${window.location.pathname}?${e}`)}onReady(t){this.ee.on("ready",e=>{t&&t(this.sanitizeFilter(e))})}onChange(t){this.ee.on("update",t)}removeChangeListener(t){this.ee.off("update",t)}onCountChange(t){this.ee.on("updateCount",t)}removeCountChange(t){this.ee.off("updateCount",t)}updateCount(t){this.count=t,this.ee.emit("updateCount",this.count)}update(t){let e=this.sanitizeFilter();this.setQueryParameters(e),this.ee.emit("update",{filter:e,action:t})}set(t,e){"string"==typeof e||"boolean"==typeof e?this.filter={...this.filter,[t]:e}:"object"==typeof e&&(this.filter={...this.filter,...e}),this.update({action:"add",key:t,value:e})}remove(t){"freeOfCharge"===t?this.filter[t]=!1:"name"===t?(this.filter.name="",this.filter.longitude="",this.filter.latitude="",this.filter.type="",this.filter.distance=""):this.filter[t]="",this.update({action:"name"===t?"resetPlace":"remove",key:t})}resetFilter(){this.filter={...this.filter,freeOfCharge:!1,days:"",date:"",themes:"",longitude:"",latitude:"",name:"",type:"",distance:""},this.update({action:"resetFilter"})}resetPlace(){this.filter={...this.filter,longitude:"",latitude:"",name:"",type:"",distance:""},this.update({action:"resetPlace"})}resetThemes(){this.filter.themes="",this.update({action:"resetThemes"})}addToArray(t,e){let i=""!==this.filter[t]?this.filter[t].split(","):[];i.push(e),this.filter[t]=i.join(","),this.update({action:"add",key:t,value:e})}removeFromArray(t,e){let i=this.filter[t].split(","),n=i.indexOf(e);-1!==n&&i.splice(n,1),this.filter[t]=i.length?i.join(","):"",this.update({action:"remove",key:t,value:e})}get(){return{filter:this.sanitizeFilter()}}init(){let t=this.getQueryParameters();this.filter={...this.filter,...t},this.ee.emit("ready")}};i.d(e,["store",0,a])}
1,90504:function(t,e,i){"use strict";i.r(e),i.d(e,{SvkReadspeaker:function(){return s}});var n=i(8532);let r=!1;class s extends HTMLElement{constructor(){super(),this.isFixed=!1,this.init=!1,this.querySelector("a").classList.add("rs_skip","readspeaker_wrapper","rs_href","rs_preserve"),this.insertAdjacentHTML("beforeend",'\n\t\t\t<div id="readspeaker" class="rs_preserve rs_skip rs_addtools rs_splitbutton rs_exp"></div>\n\t\t')}connectedCallback(){this.bindEvents()}rsSkipForContent(){const t=document.getElementById("innehall");t&&t.querySelectorAll("button, img, .svk-button").forEach(t=>{t.closest("svk-text")||t.closest("svk-block-banner")||t.classList.add("rs_skip")})}startReadspeaker(){void 0!==window.readpage&&(this.rsSkipForContent(),this.classList.add("is-active"),window.readpage(this.querySelector("a").href,"readspeaker"))}handleClick(t){var e;t.preventDefault(),this.init?this.stopReadspeaker():(e=()=>{this.startReadspeaker()},(window.ReadSpeaker||(r||(r=!0,window.rsConf={googletranslate:{en:"en_uk",sv:"sv_se",de:"de_de",es:"es_es",fa:"fa_ir",fr:"fr_fr",fi:"fi_fi",ar:"ar_ar",hr:"hr_hr",tr:"tr_tr"},general:{usePost:!0},params:"https://f1-eu.readspeaker.com/script/4936/webReader/webReader.js?pids=wr&notools=1"},(0,n.c)("https://f1-eu.readspeaker.com/script/4936/webReader/webReader.js?pids=wr&notools=1",()=>{window.ReadSpeaker.init(),e&&"function"==typeof e&&e()})),0))&&e&&"function"==typeof e&&e())}bindEvents(){const t=this.querySelector("a");t&&t.addEventListener("click",this.handleClick.bind(this))}}window.customElements.define("svk-readspeaker",s)}}]);
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.