PageSourceSearch

https://www.svenskakyrkan.se/assets/presentation/verktygsladan/chunks/98f9bc2e7af3495422a3.js

js svenskakyrkan.se collected 2026-09-24 08:50:36 UTC 12,995 bytes, 1 lines download raw bytes

1(self.webpackChunksvk_designsystem=self.webpackChunksvk_designsystem||[]).push([[3623],{54128:function(t,e,n){var a=n(31800),s=/^\s+/;t.exports=function(t){return t?t.slice(0,a(t)+1).replace(s,""):t}},31800:function(t){var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},38221:function(t,e,n){var a=n(23805),s=n(10124),i=n(99374),o=Math.max,l=Math.min;t.exports=function(t,e,n){var r,d,c,u,p,_,v=0,h=!1,f=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function k(e){var n=r,a=d;return r=d=void 0,v=e,u=t.apply(a,n)}function g(t){var n=t-_;return void 0===_||n>=e||n<0||f&&t-v>=c}function b(){var t=s();if(g(t))return y(t);p=setTimeout(b,function(t){var n=e-(t-_);return f?l(n,c-(t-v)):n}(t))}function y(t){return p=void 0,m&&r?k(t):(r=d=void 0,u)}function w(){var t=s(),n=g(t);if(r=arguments,d=this,_=t,n){if(void 0===p)return function(t){return v=t,p=setTimeout(b,e),h?k(t):u}(_);if(f)return clearTimeout(p),p=setTimeout(b,e),k(_)}return void 0===p&&(p=setTimeout(b,e)),u}return e=i(e)||0,a(n)&&(h=!!n.leading,c=(f="maxWait"in n)?o(i(n.maxWait)||0,e):c,m="trailing"in n?!!n.trailing:m),w.cancel=function(){void 0!==p&&clearTimeout(p),v=0,r=_=d=p=void 0},w.flush=function(){return void 0===p?u:y(s())},w}},23805:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},10124:function(t,e,n){var a=n(9325);t.exports=function(){return a.Date.now()}},99374:function(t,e,n){var a=n(54128),s=n(23805),i=n(44394),o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,r=/^0o[0-7]+$/i,d=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(s(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=s(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=a(t);var n=l.test(t);return n||r.test(t)?d(t.slice(2),n?2:8):o.test(t)?NaN:+t}},68663:function(module){module.exports=function(obj){obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;function print(){__p+=__j.call(arguments,"")}with(obj)data.data.result.forEach(function(t,e){__p+="\n\t<li>\n\t\t";let n=getCalendarListTitle(t,e,data.data.result);if(__p+="\n\t\t",n&&(__p+='\n\t\t\t<h2 class="calendar-list-events__title heading-04">\n\t\t\t\t'+(null==(__t=n)?"":__t)+"\n\t\t\t</h2>\n\t\t"),__p+='\n\t\t<ol>\n\t\t\t<li>\n\t\t\t\t<svk-list-item>\n\t\t\t\t\t<h3>\n\t\t\t\t\t\t<a class="js-open-event" data-id="'+__e(t.id)+'" href="?eventId='+__e(t.id)+'">\n\t\t\t\t\t\t\t'+__e(t.title)+'\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</h3>\n\t\t\t\t\t<span class="list-item__meta label-100">\n\t\t\t\t\t\t<svk-icon name="clock"></svk-icon>\n\t\t\t\t\t\t'+(null==(__t=date.eventTime(t.start,t.end,t.isFullDayEvent,t.startLocalTime,t.endLocalTime))?"":__t)+"\n\t\t\t\t\t</span>\n\t\t\t\t\t",t.place?.name===undefined&&t.owner?.name===undefined&&t.attendanceMode?.online===undefined||(__p+="\n\t\t\t\t\t\t",t.attendanceMode?.online!==undefined&&t.attendanceMode?.offline===undefined?__p+='\n\t\t\t\t\t\t\t<span class="list-item__meta label-100">\n\t\t\t\t\t\t\t\t<svk-icon name="web"></svk-icon>\n\t\t\t\t\t\t\t\tEndast online '+(null==(__t=t.place?.name!==undefined?`· Sänds från ${t.place.name}`:"")?"":__t)+"\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t":t.place?.name===undefined&&t.owner?.name===undefined||(__p+='\n\t\t\t\t\t\t\t<span class="list-item__meta label-100">\n\t\t\t\t\t\t\t\t<svk-icon name="location"></svk-icon>\n\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\t\t'+(null==(__t=t.place?.name!==undefined?`${t.place.name}`:""+(t.owner?.name!==undefined?`${t.owner.name}`:""))?"":__t)+"\n\t\t\t\t\t\t\t\t\t"+(null==(__t=t.attendanceMode?.online!==undefined?"· Sänds även digitalt":"")?"":__t)+"\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t"),__p+="\n\t\t\t\t\t"),__p+="\n\t\t\t\t\t",t.performers!==undefined&&t.performers.length&&(__p+='\n\t\t\t\t\t\t<span class="list-item__meta label-100">\n\t\t\t\t\t\t\t<svk-icon name="performer"></svk-icon>\n\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\t',t.performers.forEach((e,n)=>{__p+="\n\t\t\t\t\t\t\t\t\t"+__e(e.title)+" "+__e(e.name)+(null==(__t=t.performers.length!==n+1?", ":"")?"":__t)+"\n\t\t\t\t\t\t\t\t"}),__p+="\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t"),__p+="\n\t\t\t\t\t",t.eventType!==undefined&&Object.keys(t.eventType).length||t.attendanceMode?.online!==undefined){__p+='\n\t\t\t\t\t\t<ul class="list-item__list">\n\t\t\t\t\t\t\t'+(null==(__t=t.attendanceMode?.online!==undefined?'<li class="item__event item__event--digital"><svk-chip label="Digitalt" class="chip--secondary"></svk-chip></li>':"")?"":__t)+"\n\t\t\t\t\t\t\t";for(const e in t.eventType){__p+="\n\t\t\t\t\t\t\t\t";let t=getEventTypeById(e);__p+="\n\t\t\t\t\t\t\t\t"+(null==(__t=t!==undefined?`<li class="item__event"><svk-chip label="${t}" class="chip--secondary"></svk-chip></li>`:"")?"":__t)+"\n\t\t\t\t\t\t\t"}__p+="\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t"}__p+="\n\t\t\t\t\t",""!==t.description&&(__p+='\n\t\t\t\t\t\t<p class="list-item__text">\n\t\t\t\t\t\t\t'+(null==(__t=t.description)?"":__t)+"\n\t\t\t\t\t\t</p>\n\t\t\t\t\t"),__p+="\n\t\t\t\t</svk-list-item>\n\t\t\t</li>\n\t\t</ol>\n\t</li>\n"}),__p+="\n",data.data.next!==undefined&&(__p+='\n\t<li class="calendar-list-events-more">\n\t\t<button class="svk-button button--loader calendar-list-events-more-btn js-show-all" data-url="'+__e(data.data.next)+'" data-continuation="'+__e(data.data.continuation)+'">\n\t\t\tVisa fler händelser\n\t\t</button>\n\t</li>\n'),__p+="\n";return __p}},29546:function(module){module.exports=function(obj){obj||(obj={});var __t,__p="",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,"")}with(obj){var self=this;__p+='\n<svk-list id="kalender-resultat">
1\n\t<svk-readspeaker class="header__readspeaker">\n\t\t<a href="https://app-eu.readspeaker.com/cgi-bin/rsent?customerid=4936&lang=sv_se&readid=kalender-resultat" class="readspeaker__button svk-button button--tertiary">\n\t\t\t<svk-icon name="speaker"></svk-icon> Lyssna\n\t\t</a>\n\t</svk-readspeaker>\n\t<ol class="events__list"></ol>\n</svk-list>\n<style>\n\t@page\n\t{\n\t\tsize: auto;\n\t\tmargin: 1.5cm 1.5cm 1.5cm 1.5cm;\n\t}\n</style>\n'}return __p}},77223:function(module){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div class="svk-grid grid--size-300">\n\t<svk-loader-skeleton type="text" width="10" style="margin-top: var(--space-150);"></svk-loader-skeleton>\n\t<div>\n\t\t<svk-loader-skeleton type="heading-03" width="40%"></svk-loader-skeleton>\n\t\t<svk-loader-skeleton type="text" width="60%"></svk-loader-skeleton>\n\t\t<svk-loader-skeleton type="text" width="40%"></svk-loader-skeleton>\n\t</div>\n\t<div>\n\t\t<svk-loader-skeleton type="heading-03" width="80%"></svk-loader-skeleton>\n\t\t<svk-loader-skeleton type="text" width="60%"></svk-loader-skeleton>\n\t\t<svk-loader-skeleton type="text" width="40%"></svk-loader-skeleton>\n\t</div>\n\t<div>\n\t\t<svk-loader-skeleton type="heading-03" width="80%"></svk-loader-skeleton>\n\t\t<svk-loader-skeleton type="text" width="60%"></svk-loader-skeleton>\n\t\t<svk-loader-skeleton type="text" width="40%"></svk-loader-skeleton>\n\t</div>\n</div>\n';return __p}},94341:function(module){module.exports=function(obj){obj||(obj={});var __t,__p="",__e=_.escape;with(obj)__p+='<div class="calendar-list-events-error">\n\t<h3 class="calendar-list-events-error-title">\n\t\t'+__e(title)+'\n\t</h3>\n\t<p class="calendar-list-events-error-text">\n\t\t'+__e(error)+"\n\t</p>\n</div>\n";return __p}},89298:function(t,e,n){"use strict";n.d(e,["A",0,(t,e)=>n=>{n.target.matches(t)?(n.delegatedElement=n.target,e(n)):n.target.closest(t)&&(n.delegatedElement=n.target.closest(t),e(n))}])},13623:function(t,e,n){"use strict";n.r(e);var a=n(38221),s=n(30228),i=n(95093),o=n(4845),l=n(81859),r=n(89298),d=n(77223),c=n(94341),u=n(29546),p=n(68663);n(89340),n(90504);e.default=class{constructor(t,e,n){this.dom={},this.dom.el=t,this.ee=new s,this.listDate=void 0,this.state=e,this.options={},this.options.scroll={},this.options.scroll.offset=100,this.options.loading=!1,this.handleScroll=this.handleScroll.bind(this),this.throttleScroll=a(this.handleScroll,20),this.handleResize=this.handleResize.bind(this),this.bindEvents()}get randomStr(){return(+new Date).toString(36)}loading(t){t?(this.dom.el.querySelector(".calendar-list-events-more-btn").setAttribute("loading",""),this.dom.el.querySelector(".calendar-list-events-more-btn").textContent="Laddar fler händelser"):this.dom.el.innerHTML=d()}loadMore(){this.dom.el.querySelector(".calendar-list-events-more-btn").setAttribute("loading",""),this.dom.el.querySelector(".calendar-list-events-more-btn").textContent="Laddar fler händelser"}update(t){if(void 0!==window.ReadSpeaker)try{window.ReadSpeaker.PlayerAPI.stop(),window.ReadSpeaker.ui.ControlPanel.kill()}catch(t){}"Ok"===t.data.status?t.data.result.length?("new"===t.type?(this.listDate=void 0,this.dom.el.innerHTML=u({data:t,count:0,utils:o})):this.dom.el.querySelector(".calendar-list-events-more").parentElement.removeChild(this.dom.el.querySelector(".calendar-list-events-more")),this.renderEvents(t)):this.dom.el.innerHTML=c({title:"Inga träffar.",error:"Prova gärna att lägga till ett sökord eller välj någon av kategorierna."}):this.dom.el.innerHTML=c({title:"Ingen plats.",error:"Vi kunde inte hitta din plats, välj en plats för att få händelser."})}updateContainerHeight(){this.options.scroll.containerBottom=this.dom.el.offsetTop+this.dom.el.scrollHeight}getPlaceAndAttandanceMode(t){let e="",n="";return void 0===t.place?.name&&void 0===t.owner?.name&&void 0===t.attendanceMode?.online||(e+="<span>",void 0!==t.attendanceMode?.online&&void 0===t.attendanceMode?.offline?e+='<svg class="svg-icon" focusable="false" aria-hidden="true">\n\t\t\t\t\t\t\t<use xlink:href="/assets/presentation/verktygsladan/assets/svg/ui.svg?v2.17.2#web-bold"></use>\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t\tEndast online '+(void 0!==t.place?.name?`· Sänds från ${t.place.name}`:""):(e+='<svg class="svg-icon" focusable="false" aria-hidden="true">\n\t\t\t\t\t\t\t\t\t<use xlink:href="/assets/presentation/verktygsladan/assets/svg/ui.svg?v2.17.2#location-bold"></use>\n\t\t\t\t\t\t\t\t</svg>',n=void 0!==t.place?.name?`${t.place.name}`:""+(void 0!==t.owner?.name?`${t.owner.name}`:""),e+=`${n} ${""!==n&&void 0!==t.attendanceMode?.online?"·":""} ${void 0!==t.attendanceMode?.online?"Sänds även digitalt":""} `),e+="</span>"),e}getCalendarListTitle(t,e,n){const a=i(t.start).format("YYYY-MM-DD");if(this.listDate===a)return"";this.listDate=a;let s=this.getFeastByDate(t.feasts,t.start);const o=t.startLocalTime?.date;o&&o!==a&&(s=this.getFeastInCurrentGroup(n,e,a));const l=this.getFeastName(s),r=i(t.start).format("dddd D MMMM YYYY");
1return l?`<span>${l}</span><span>${r}</span>`:r}getFeastInCurrentGroup(t,e,n){for(let a=e+1;a<t.length;a++){const e=t[a];if(i(e.start).format("YYYY-MM-DD")!==n)break;if(e.startLocalTime?.date!==n)continue;const s=this.getFeastByDate(e.feasts,e.start);if(s)return s}}getFeastByDate(t,e){if(Array.isArray(t))return t.find(t=>{const n=this.getFeastDate(t);return void 0!==n&&o.isSame(n,e,"day")})}getFeastDate(t){return t?.date||t?.startDate||t?.start||t?.feastDate||t?.Date||t?.StartDate||t?.FeastDate}getFeastName(t){return t?.feastName||t?.FeastName||t?.name||t?.Name||t?.title||t?.Title}handleShowMoreEventsClick(t){let e=t.target.getAttribute("data-url"),n=t.target.getAttribute("data-continuation");this.ee.emit("paginate",{next:e,continuation:n}),this.bindInfiniteScrollEvents()}handleEventsClick(t){t.preventDefault();let e=t.target.getAttribute("data-id"),n={};n.eventId=e,this.ee.emit("openEvent",n)}handleScroll(){this.options.loading||window.pageYOffset+window.innerHeight>=this.options.scroll.containerBottom-this.options.scroll.offset&&(this.options.loading=!0,this.paginate())}handleResize(){this.updateContainerHeight()}bindEvents(){this.dom.el.addEventListener("click",(0,r.A)(".js-show-all",this.handleShowMoreEventsClick.bind(this)))}bindInfiniteScrollEvents(){window.addEventListener("scroll",this.handleScroll),window.addEventListener("resize",this.handleResize)}removeInfiniteScrollEvents(){window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("resize",this.handleResize)}on(t,e){switch(t){case"paginate":this.ee.on("paginate",t=>{e(t)});break;case"openEvent":this.ee.on("openEvent",t=>{e(t)})}}renderEvents(t){t.data.result.length&&this.dom.el.querySelector(".events__list").insertAdjacentHTML("beforeend",p({data:t,date:o,getEventTypeById:l.getEventTypeById,getCalendarListTitle:this.getCalendarListTitle.bind(this),getPlaceAndAttandanceMode:this.getPlaceAndAttandanceMode}))}}},95862:function(t,e,n){"use strict";n.r(e),n.d(e,{SvkListItem:function(){return a}});n(26648);class a extends HTMLElement{constructor(){super()}}window.customElements.define("svk-list-item",a)},89340:function(t,e,n){"use strict";n.r(e),n.d(e,{SvkList:function(){return a}});n(95862);class a extends HTMLElement{constructor(){super()}}window.customElements.define("svk-list",a)}}]);

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.