PageSourceSearch

https://brukshundklubben.se/assets/js/eventlistingpage.74ba8d58fe289f551f5a.min.js

js brukshundklubben.se collected 2026-10-02 06:28:12 UTC 36,901 bytes, 1 lines download raw bytes

1(()=>{var e,t={71999:(e,t,a)=>{"use strict";var s=a(70538),i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{attrs:{id:"SBKEventListingPage"}},[s("div",{staticClass:"search-header"},[s("div",{staticClass:"search-header-inner col col-md-8 offset-md-2 col-xl-6 offset-xl-3"},[s("div",{staticClass:"search-input-container search-element"},[e._m(0),e._v(" "),s("input",{staticClass:"search-input",attrs:{type:"text",name:"search","aria-label":"Sök",autofocus:""},domProps:{value:e.searchTerm},on:{input:function(t){return e.handleInput(t.target.value)},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.performSearch(!1)}}})]),e._v(" "),e.showResult?s("div",{attrs:{id:"hitResult",role:"status"}},[s("span",{staticClass:"result-text"},[e._v("Din sökning på")]),e._v(" "),s("span",{staticClass:"result-output"},[e._v('"'+e._s(e.returnData.searchTerm)+'"')]),s("span",{staticClass:"result-text"},[e._v(" gav")]),e._v(" "),s("span",{staticClass:"result-output"},[e._v(e._s(e.returnData.hits)+" ")]),s("span",{staticClass:"result-text"},[e._v("träff(ar)")])]):e._e(),e._v(" "),s("div",{staticClass:"search-button-footer"},[s("div",{staticClass:"select-boxes"},[s("div",{staticClass:"select-col"},[s("select",{attrs:{"aria-label":"Filtrera på aktivitet"},on:{change:function(t){return e.onChangeActivity(t,!0)}}},e._l(e.activityFilter,(function(t){return s("option",{domProps:{selected:e.selectedActivity==t.value,value:t.value}},[e._v(e._s(t.label))])})),0),e._v(" "),s("select",{attrs:{"aria-label":"Filtrera på ämne eller kategori"},on:{change:function(t){return e.onChangeSubActivity(t,!0)}}},e._l(e.subActivityFilter,(function(t){return s("option",{domProps:{selected:e.selectedSubActivity==t.value,value:t.value}},[e._v(e._s(t.label))])})),0),e._v(" "),s("select",{attrs:{"aria-label":"Filtrera på funktion"},on:{change:function(t){return e.onChangeFunction(t,!0)}}},e._l(e.functionFilter,(function(t){return s("option",{domProps:{selected:e.selectedFunction==t.value,value:t.value}},[e._v(e._s(t.label))])})),0)]),e._v(" "),s("div",{staticClass:"select-col"},[s("select",{attrs:{"aria-label":"Filtrera på ort"},on:{change:function(t){return e.onChangeCity(t,!0)}}},e._l(e.cityFilter,(function(t){return s("option",{domProps:{selected:e.selectedCity==t.value,value:t.value}},[e._v(e._s(t.label))])})),0),e._v(" "),s("select",{attrs:{"aria-label":"Filtrera på distrikt eller rasklubb"},on:{change:function(t){return e.onChange(t,!0)}}},e._l(e.parentFilter,(function(t){return s("option",{domProps:{selected:e.selectedOwner==t.value||e.selectedParent==t.value,value:t.value}},[e._v(e._s(t.label))])})),0),e._v(" "),s("select",{attrs:{"aria-label":"Filtrera på lokalklubb eller lokalt område"},on:{change:function(t){return e.onChange(t,!1)}}},e._l(e.childFilter,(function(t){return s("option",{domProps:{selected:e.selectedOwner==t.value,value:t.value}},[e._v(e._s(t.label))])})),0)]),e._v(" "),s("div",{staticClass:"select-col-small"},[s("date-picker",{attrs:{type:"date",valueType:"format",placeholder:"Tidigaste startdatum"},on:{change:function(t){return e.onChangeEarliest(t)}},model:{value:e.earliestStartDate,callback:function(t){e.earliestStartDate=t},expression:"earliestStartDate"}},[s("i",{attrs:{slot:"icon-calendar"},slot:"icon-calendar"},[s("img",{attrs:{src:a(10057),alt:"Tidigaste startdatum"}})])]),e._v(" "),s("date-picker",{attrs:{type:"date",valueType:"format",placeholder:"Senaste startdatum"},on:{change:function(t){return e.onChangeLatest(t)}},model:{value:e.latestStartDate,callback:function(t){e.latestStartDate=t},expression:"latestStartDate"}},[s("i",{attrs:{slot:"icon-calendar"},slot:"icon-calendar"},[s("img",{attrs:{src:a(10057),alt:"Senaste startdatum"}})])]),e._v(" "),s("div",{staticClass:"search-button-container"},[s("button",{staticClass:"search-button search-element",on:{click:function(t){return e.performSearch(!1)}}},[e._v("Sök")])])],1)])]),e._v(" "),s("div",{staticClass:"search-button-footer"},[s("div",{staticClass:"select-boxes"},[s("div",{staticClass:"select-col-large"},[e.selectedOwners.length>0||e.selectedActivities.length>0||e.selectedSubActivities.length>0||e.selectedFunctions.length>0||e.selectedCities.length>0?s("div",{staticClass:"selected-owners"},[e._l(e.selectedOwners,(function(t){return s("span",{staticClass:"owner-box",attrs:{"data-value":t.value}},[e._v(e._s(t.label)),s("button",{staticClass:"close",attrs:{"aria-label":"Ta bort filter för "+t.label},on:{click:function(a){return e.removeOwner(t)}}},[e._v("×")])])})),e._v(" "),e._l(e.selectedActivities,(function(t){return s("span",{staticClass:"owner-box",attrs:{"data-value":t.value}},[e._v(e._s(t.label)),s("button",{staticClass:"close",attrs:{"aria-label":"Ta bort filter för "+t.label},on:{click:function(a){return e.removeActivity(t)}}},[e._v("×")])])})),e._v(" "),e._l(e.selectedSubActivities,(function(t){return s("span",{staticClass:"owner-box",attrs:{"data-value":t.value}},[e._v(e._s(t.label)),s("button",{staticClass:"close",attrs:{"aria-label":"Ta bort filter för "+t.label},on:{click:function(a){return e.removeSubActivity(t)}}},[e._v("×")])])})),e._v(" "),e._l(e.selectedFunctions,(function(t){return s("span",{staticClass:"owner-box",attrs:{"data-value":t.value}},[e._v(e._s(t.label)),s("button",{staticClass:"close",attrs:{"aria-label":"Ta bort filter för "+t.label},on:{click:function(a){return e.removeFunction(t)}}},[e._v("×")])])})),e._v(" "),e._l(e.selectedCities,(function(t){return s("span",{staticClass:"owner-box",attrs:{"data-value":t.value}},[e._v(e._s(t.label)),s("button",{staticClass:"close",attrs:{"aria-label":"Ta bort filter för "+t.label},on:{click:function(a){return e.removeCity(t)}}},[e._v("×")])])}))],2):e._e()])])]),e._v(" "),s("div",{staticClass:"search-button-footer"},[s("label",{staticClass:"checkbox-container"},[s("span",[e._v("Visa inte passerade datum")]),e._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:e.hidePassedDates,expression:"hidePassedDates"}],attrs:{type:"checkbox",name:"hidePassedDates2",id:"hidePassedDates2"},domProps:{checked:Array.isArray(e.hidePassedDates)?e._i(e.hidePassedDates,null)>-1:e.hidePassedDates},on:{change:[function(t){var a=e.hidePassedDates,s=t.target,i=!!s.checked;if(Array.isArray(a)){var n=e._i(a,null);s.checked?n<0&&(e.hidePassedDates=a.concat([null])):n>-1&&(e.hidePassedDates=a.slice(0,n).concat(a.slice(n+1)))}else e.hidePassedDates=i},e.onChangeHidePassedDates]}}),e._v(" "),s("i",{staticClass:"checkmark"})])]),e._v(" "),s("div",{staticClass:"search-button-footer"},[s("div",{staticClass:"button-container"},[s("button",{staticClass:"rss-button",attrs:{type:"button"},on:{click:function(t){return e.getRssFeed()}}},[s("img",{attrs:{src:a(77706),alt:"Prenumerera på sökning"}}
1),e._v("Prenumerera")])])])])]),e._v(" "),s("div",{staticClass:"row"},[s("div",{staticClass:"results col col-md-8 offset-md-2 col-xl-6 offset-xl-3"},[e.returnData.hits>0&&e.itemsByPage.length>0?s("ul",{staticClass:"calendarlist"},e._l(e.itemsByPage,(function(t){return s("li",{staticClass:"calendar-item"},[s("div",{staticClass:"eventheader"},[s("div",{staticClass:"eventdate spacer"},[s("div",{staticClass:"year"},[e._v(e._s(t.values.eventYear))])]),e._v(" "),s("div",{staticClass:"eventtype"},[e._v(e._s(t.values.eventType))])]),e._v(" "),s("div",{staticClass:"eventinfo"},[s("div",{staticClass:"eventdate"},[e._v(e._s(t.values.eventStartDateFormat))]),e._v(" "),s("div",{staticClass:"eventinfo-text"},[s("div",{staticClass:"eventinfo-inner"},[s("div",{staticClass:"eventtitle"},[s("a",{attrs:{href:t.values.transformedUrl,title:""!=t.values.title&&null!=t.values.title?t.values.title:t.values.name}},[e._v(e._s(""!=t.values.title&&null!=t.values.title?t.values.title:t.values.name))])]),e._v(" "),s("div",{staticClass:"eventtext"},[e._v("\n                                    "+e._s(t.values.intro)+"\n                                ")])]),e._v(" "),s("div",{staticClass:"eventdetails"},[null==t.userDistance||isNaN(t.userDistance)?e._e():s("div",{staticClass:"distance"},[s("img",{staticClass:"road-icon",attrs:{src:a(86645),alt:"Avstånd"}}),e._v(" "+e._s(t.userDistance.toFixed(1))+" km\n                                ")]),e._v(" "),"True"==t.values.onlineEvent?s("div",{staticClass:"onlineevent"},[s("img",{attrs:{src:a(66240),alt:t.values.eventAddressText}}),e._v("\n                                    Online\n                                ")]):e._e(),e._v(" "),"True"!=t.values.onlineEvent&&(""!=t.values.eventAddressText||""!=t.values.eventAddress&&null!=t.values.eventAddress)?s("div",{staticClass:"place"},[s("img",{attrs:{src:a(66240),alt:t.values.eventAddressText}}),e._v(" "),s("a",{attrs:{href:"https://www.google.se/maps/search/"+t.values.eventAddress,target:"_blank",title:""==t.values.eventAddressText?t.values.eventAddress:t.values.eventAddressText}},[s("span",[e._v(e._s(""==t.values.eventAddressText?t.values.eventAddress:t.values.eventAddressText))])])]):e._e(),e._v(" "),s("div",{staticClass:"owner"},[s("img",{attrs:{src:a(76051),alt:t.values.eventCurrentOwner}}),e._v(" "),""!=t.values.ownerPageUrl?s("a",{attrs:{href:t.values.ownerPageUrl,title:t.values.eventCurrentOwner}},[e._v(e._s(t.values.eventCurrentOwner))]):e._e(),e._v(" "),""==t.values.ownerPageUrl?s("span",[e._v(e._s(t.values.eventCurrentOwner))]):e._e()])])])])])})),0):e._e(),e._v(" "),0==e.returnData.hits?s("div",{staticClass:"noresult"},[e._v("\n                Tyvärr hittades inga resultat. Försök filtrera om din sökning.\n            ")]):e._e(),e._v(" "),e.returnData.hits>0&&0==e.itemsByPage?s("div",{staticClass:"noresult"},[e._v("\n                Det finns inga kommande händelser.\n            ")]):e._e(),e._v(" "),s("ul",{staticClass:"pagination"},[s("li",[s("button",{class:1==e.selectedPage?"prev disabled":"prev",attrs:{disabled:1==e.selectedPage,"aria-label":"Föregående sida"},on:{click:function(t){return e.goToPage(e.selectedPage-1)}}},[s("img",{attrs:{src:a(64833),alt:"Föregående sida"}})])]),e._v(" "),e.noOfPages>5&&e.selectedPage>3?s("li",{staticClass:"dots"}
1,[e._v("...")]):e._e(),e._v(" "),e._l(e.noOfPages,(function(t,a){return t>=e.lowestToShow&&t<=e.largestToShow?s("li",[s("button",{class:e.selectedPage==t?"pagenumber active":"pagenumber",on:{click:function(a){return e.goToPage(t)}}},[s("span",[e._v(e._s(t))])])]):e._e()})),e._v(" "),0==e.noOfPages?s("li",{staticClass:"pagenumber active"},[e._v("1")]):e._e(),e._v(" "),e.noOfPages>5&&e.selectedPage<e.noOfPages-2?s("li",{staticClass:"dots"},[e._v("...")]):e._e(),e._v(" "),s("li",[s("button",{class:e.selectedPage==e.noOfPages||0==e.noOfPages?"next disabled":"next",attrs:{disabled:e.selectedPage==e.noOfPages||0==e.noOfPages,"aria-label":"Nästa sida"},on:{click:function(t){return e.goToPage(e.selectedPage+1)}}},[s("img",{attrs:{src:a(64833),alt:"Nästa sida"}})])])],2)])])])},n=[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"search-icon"},[t("img",{attrs:{src:a(866),alt:"Sök på brukshundklubben.se"}})])}];i._withStripped=!0;var r=a(96156),l=a(9669),c=a.n(l);function u(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function o(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?u(Object(a),!0).forEach((function(t){(0,r.Z)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):u(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}const d={name:"EventListingPage",components:{DatePicker:a(20235).Z},props:{content:Object,apiBaseUrl:String},data:function(){return{title:"",returnData:{searchTerm:"",results:[{id:"",score:0,values:{},allValues:{},breadcrumb:[]}],facets:[],owners:[],activities:[],hits:0},itemsByPage:[{id:"",score:0,values:{},allValues:{},breadcrumb:[]}],searchTerm:"",contentInput:"",documentInput:"",areaInput:"",showResult:!1,testarray:[],selectedFacet:{label:"Alla",value:"",type:""},selectedActivities:[],selectedActivity:"",selectedSubActivities:[],selectedSubActivity:"",selectedOwners:[],selectedOwner:"",selectedParent:"",selectedCity:"",selectedCities:[],selectedFunction:"",selectedFunctions:[],facets:[{label:"Alla",value:"",type:""}],parentFilter:[{label:"Förbund/Distrikt/Rasklubb",value:""}],childFilter:[{label:"Lokalklubb/Lokalområde",value:""}],activityFilter:[{label:"Aktivitet",value:""}],subActivityFilter:[{label:"Ämne/kategori",value:""}],functionFilter:[{label:"Funktion",value:""}],cityFilter:[{label:"Ort",value:""}],updateFacetsAndOwners:!0,initializeSearch:!0,selectedParentOwner:{},selectedChildOwner:{},selectedPage:1,noOfPages:1,lowestToShow:1,largestToShow:5,earliestStartDate:null,latestStartDate:null,selectedEarliestDate:"",selectedLatestDate:"",userCoordinates:{lat:null,lng:null},hidePassedDates:!0}},methods:{getRssFeed:function(){var e=this.$props.apiBaseUrl+"rss/event",t={searchQuery:this.searchTerm,owners:this.selectedOwners,activities:this.selectedActivities,subActivities:this.selectedSubActivities,earliestStartDate:this.selectedEarliestDate,latestStartDate:this.selectedLatestDate,userCoordinates:this.userCoordinates,functions:this.selectedFunctions,cities:this.selectedCities,searchUrl:window.location.href};(function(e,t,a){var s=e,i=Array.prototype.map.call(t.owners,(function(e){return e.value})).join(","),n=Array.prototype.map.call(t.activities,(function(e){return e.value})).join(","),r=Array.prototype.map.call(t.subActivities,(function(e){return e.value})).join(","),l=Array.prototype.map.call(t.functions,(function(e){return e.value})).join(","),u=Array.prototype.map.call(t.cities,(function(e){return e.value})).join(","),o="?searchQuery="+t.searchQuery+"&activities="+n+"&subActivities="+r+"&functions="+l+"&cities="+u+"&owners="+i+"&earliestStartDate="+t.earliestStartDate+"&latestStartDate="+t.latestStartDate+"&searchUrl="+t.searchUrl;return t.searchUrl=s+o,c().get(s+o).then((function(e){return e}))})(e,t).then((function(t){t.data,window.open(t.config.url),URL.revokeObjectURL(e)}))},getDistance:function(e,t){var a=function(e){return e*(Math.PI/180)},s=a(e-this.userCoordinates.lat),i=a(t-this.userCoordinates.lng),n=Math.sin(s/2)*Math.sin(s/2)+Math.cos(a(this.userCoordinates.lat))*Math.cos(a(e))*Math.sin(i/2)*Math.sin(i/2);return 2*Math.asin(Math.sqrt(n))*6371},goToPage:function(e){var t=this;this.selectedPage=e,this.itemsByPage=this.returnData.customResults.map((function(e){return o({},e)})).filter((function(e){return e.page==t.selectedPage})),this.lowestToShow=this.selectedPage-2,this.largestToShow=this.selectedPage+2,this.largestToShow>this.noOfPages?(this.largestToShow=this.noOfPages,this.lowestToShow=this.noOfPages-4):this.lowestToShow<1&&(this.lowestToShow=1,this.largestToShow=this.lowestToShow+4),this.updatePage()},updateOwners:function(){var e=this,t="",a=1;
1e.selectedOwners.forEach((function(s){""!=s.value&&(a==e.selectedOwners.length?t+=s.value:t+=s.value+","),a++}));var s=encodeURIComponent(t);window.history.replaceState("","",this.updateQueryParams(window.location.href,"o",s))},updateActivities:function(){var e=this,t="",a=1;e.selectedActivities.forEach((function(s){""!=s.value&&(a==e.selectedActivities.length?t+=s.value:t+=s.value+","),a++}));var s=encodeURIComponent(t);window.history.replaceState("","",this.updateQueryParams(window.location.href,"ac",s))},updateSubActivities:function(){var e=this,t="",a=1;e.selectedSubActivities.forEach((function(s){""!=s.value&&(a==e.selectedSubActivities.length?t+=s.value:t+=s.value+","),a++}));var s=encodeURIComponent(t);window.history.replaceState("","",this.updateQueryParams(window.location.href,"sac",s))},updateFunctions:function(){var e=this,t="",a=1;e.selectedFunctions.forEach((function(s){""!=s.value&&(a==e.selectedFunctions.length?t+=s.value:t+=s.value+","),a++}));var s=encodeURIComponent(t);window.history.replaceState("","",this.updateQueryParams(window.location.href,"fu",s))},updateCities:function(){var e=this,t="",a=1;e.selectedCities.forEach((function(s){""!=s.value&&(a==e.selectedCities.length?t+=s.value:t+=s.value+","),a++}));var s=encodeURIComponent(t);window.history.replaceState("","",this.updateQueryParams(window.location.href,"ci",s))},updateQuery:function(e){var t=encodeURIComponent(e);window.history.replaceState("","",this.updateQueryParams(window.location.href,"q",t))},updateDocumentType:function(e){var t=encodeURIComponent(e);window.history.replaceState("","",this.updateQueryParams(window.location.href,"d",t)),window.history.replaceState("","",this.updateQueryParams(window.location.href,"c",""))},updateContentType:function(e){var t=encodeURIComponent(e);window.history.replaceState("","",this.updateQueryParams(window.location.href,"c",t)),window.history.replaceState("","",this.updateQueryParams(window.location.href,"d",""))},updatePage:function(){window.history.replaceState("","",this.updateQueryParams(window.location.href,"p",this.selectedPage))},updateEarliestDate:function(){window.history.replaceState("","",this.updateQueryParams(window.location.href,"ed",this.selectedEarliestDate))},updateLatestDate:function(){window.history.replaceState("","",this.updateQueryParams(window.location.href,"ld",this.selectedLatestDate))},updateAll:function(){window.history.replaceState("","",this.updateQueryParams(window.location.href,"c","")),window.history.replaceState("","",this.updateQueryParams(window.location.href,"d",""))},removeOwner:function(e){var t=this.selectedOwners.indexOf(e);this.selectedOwners.splice(t,1),this.updateFacetsAndOwners=!1,this.search(),this.selectedParentOwner={},this.selectedChildOwner={},this.selectedOwner="",this.updateOwners()},removeActivity:function(e){var t=this.selectedActivities.indexOf(e);this.selectedActivities.splice(t,1),this.updateFacetsAndOwners=!1,this.search(),this.selectedActivity="",this.updateActivities()},removeSubActivity:function(e){var t=this.selectedSubActivities.indexOf(e);this.selectedSubActivities.splice(t,1),this.updateFacetsAndOwners=!1,this.search(),this.selectedSubActivity="",this.updateSubActivities()},removeFunction:function(e){var t=this.selectedFunctions.indexOf(e);this.selectedFunctions.splice(t,1),this.updateFacetsAndOwners=!1,this.search(),this.selectedFunction="",this.updateFunctions()},removeCity:function(e){var t=this.selectedCities.indexOf(e);this.selectedCities.splice(t,1),this.updateFacetsAndOwners=!1,this.search(),this.selectedCity="",this.updateCities()},onChangeEarliest:function(e){this.selectedEarliestDate=null==e?"":e,this.updateEarliestDate(),this.updateFacetsAndOwners=!1,this.search()},onChangeLatest:function(e){this.selectedLatestDate=null==e?"":e,this.updateLatestDate(),this.updateFacetsAndOwners=!1,this.search()},onChangeActivity:function(e,t){this.selectedActivity="";var a=this.activityFilter.find((function(t){return t.value==e.target.value}));this.selectedActivity=a.value,""!=a.value&&null==this.selectedActivities.find((function(e){return e.value==a.value}))&&(this.selectedActivities.push(a),this.updateActivities()),this.updateFacetsAndOwners=!1,this.search()},onChangeSubActivity:function(e,t){this.selectedSubActivity="";var a=this.subActivityFilter.find((function(t){return t.value==e.target.value}));this.selectedSubActivity=a.value,""!=a.value&&null==this.selectedSubActivities.find((function(e){return e.value==a.value}))&&(this.selectedSubActivities.push(a),this.updateSubActivities()),this.updateFacetsAndOwners=!1,this.search()},onChangeFunction:function(e,t){this.selectedFunction="";var a=this.functionFilter.find((function(t){return t.value==e.target.value}));this.selectedFunction=a.value,""!=a.value&&null==this.selectedFunctions.find((function(e){return e.value==a.value}))&&(this.selectedFunctions.push(a),this.updateFunctions()),this.updateFacetsAndOwners=!1,this.search()},onChangeCity:function(e,t){this.selectedCity="";var a=this.cityFilter.find((function(t){return t.value==e.target.value}));this.selectedCity=a.value,""!=a.value&&null==this.selectedCities.find((function(e){return e.value==a.value}))&&(this.selectedCities.push(a),this.updateCities()),this.updateFacetsAndOwners=!1,this.search()},onChangeHidePassedDates:function(e){this.updateFacetsAndOwners=!1,this.search()},onChange:function(e,t){if(this.selecteOwner="",t){var a=this.parentFilter.find((function(t){return t.value==e.target.value}));this.selectedParentOwner=a,this.selectedOwner=a.value,this.selectedChildOwner={},""!=a.value&&null==this.selectedOwners.find((function(e){return e.value==a.value}))&&(this.selectedOwners.push(a),this.updateOwners())}else a=this.childFilter.find((function(t){return t.value==e.target.value})),this.selectedChildOwner=a,""!=a.value&&null==this.selectedOwners.find((function(e){return e.value==a.value}))&&(this.selectedOwners.push(a),this.updateOwners()),""==a.value?this.selectedOwner=this.selectedParentOwner.value:(this.selectedParent=this.selectedOwner,this.selectedOwner=a.value);this.updateFacetsAndOwners=!1,this.search()},get_url:function(e){var t="";return(null==e.values.mediaUrl||""==e.values.mediaUrl)&&e.breadcrumb.length>0?t=e.breadcrumb[e.breadcrumb.length-1].Url:"media"!=e.values.__IndexType&&"pdf"!=e.values.__IndexType||(t=e.values.mediaUrl),t},search:function(){var e=this,t=this,a=this.$props.apiBaseUrl+"search_event",s=this.getQueryParams();this.updateFacetsAndOwners&&(this.selectedParentOwner={},this.selectedChildOwner={},this.selectedOwners=[],this.selectedActivities=[],this.selectedSubActivities=[],this.selectedFunctions=[],this.selectedCities=[],this.childFilter=[{label:"Lokalklubb/Lokalområde",value:""}],this.updateQuery(this.searchTerm),this.selectedPage=1,this.updatePage()),null==s||null!=s.p&&""!=s.p?(this.selectedPage=null!=s&&null!=s.p&&isNaN(s.p)?parseInt(s.p):1,t.updatePage()):(s.p=this.selectedPage,t.updatePage()),null==s||null!=s.o&&""!=s.o?this.updateFacetsAndOwners&&null!=s&&null!=s.o&&""!=s.o&&decodeURIComponent(s.o).split(",").forEach((function(e){if(!t.selectedOwners.some((function(t){return t.value==e}))){var a={label:e,value:e};t.selectedOwners.push(a),t.updateOwners()}})):function(e,t){var a=e;return c().get(a).then((function(e){return e}))}(this.$props.apiBaseUrl+"get_predefinedOwners").then((function(e){e.data.forEach((function(e){var a={label:e.label,value:e.value};null==t.selectedOwners.find((function(e){return e.value==a.value}))&&t.selectedOwners.push(a),t.updateOwners()}))}));var i={searchQuery:this.searchTerm,owners:this.selectedOwners,activities:this.selectedActivities,subActivities:this.selectedSubActivities,earliestStartDate:this.selectedEarliestDate,latestStartDate:this.selectedLatestDate,userCoordinates:this.userCoordinates,functions:this.selectedFunctions,cities:this.selectedCities,hidePassedDates:this.hidePassedDates};this.initializeSearch?null!=s&&null!=s.q&&(this.searchTerm=decodeURIComponent(s.q)):this.updateQuery(this.searchTerm),function(e,t,a){var s=e;return c().post(s,t).then((function(e){return e}))}
1(a,i).then((function(a){if(a.data.customResults.forEach((function(e,s){e.page=Math.ceil((s+.1)/a.data.pageSize),e.breadcrumb=null!=e.values.breadcrumb?JSON.parse(e.values.breadcrumb):[],null!=t.userCoordinates.lat&&null!=t.userCoordinates.lng&&(e.userDistance=t.getDistance(e.values.userLat,e.values.userLng))})),null!=t.userCoordinates.lat&&null!=t.userCoordinates.lng){var s=a.data.customResults.sort((function(e,t){return isNaN(e.userDistance)||isNaN(t.userDistance),new Date(e.values.eventStartDateRaw)-new Date(t.values.eventStartDateRaw)}));a.data.customResults=s}else{var i=a.data.customResults.sort((function(e,t){return new Date(e.values.eventStartDateRaw)-new Date(t.values.eventStartDateRaw)}));a.data.customResults=i}if(e.returnData=a.data,e.noOfPages=Math.ceil(a.data.hits/a.data.pageSize),e.itemsByPage=e.returnData.customResults.map((function(e){return o({},e)})).filter((function(t){return t.page==e.selectedPage})),e.updateFacetsAndOwners&&(e.facets=e.returnData.facets,e.owners=e.returnData.owners,e.activities=e.returnData.activities,e.subActivities=e.returnData.subActivities,e.functions=e.returnData.functions,e.cities=e.returnData.cities,t.parentFilter=[],e.owners.forEach((function(e){var a={label:e.label,value:e.value};t.parentFilter.push(a),e.childOwners.forEach((function(e){if(""!=e.value){var a={label:e.label,value:e.value};t.childFilter.push(a)}}))})),e.activities.forEach((function(e){var a={label:e.label,value:e.value};""==e.value||t.activityFilter.some((function(e){return e.value==a.value}))||t.activityFilter.push(a)})),e.subActivities.forEach((function(e){var a={label:e.label,value:e.value};""==e.value||t.subActivityFilter.some((function(e){return e.value==a.value}))||t.subActivityFilter.push(a)})),e.functions.forEach((function(e){var a={label:e.label,value:e.value};""==e.value||t.functionFilter.some((function(e){return e.value==a.value}))||t.functionFilter.push(a)})),e.cities.forEach((function(e){var a={label:e.label,value:e.value};""==e.value||t.cityFilter.some((function(e){return e.value==a.value}))||t.cityFilter.push(a)})),e.selectedPage=1,e.updatePage()),e.initializeSearch){var n=e,r=!1,l=e.getQueryParams();if(null!=l)for(var c=Object.keys(l),u=0;u<c.length;u++){if(("d"==c[u]||"c"==c[u])&&!r){var d=n.facets.find((function(e){return e.value==l[c[u]]}));null!=d&&(n.filterButtons(d),r=!0)}if("o"==c[u]){var v=l[c[u]],h=decodeURIComponent(v);if(""!=h)for(var f=h.split(","),p=0;p<f.length;p++){var g=n.parentFilter.find((function(e){return e.value==f[p]})),w=n.childFilter.find((function(e){return e.value==f[p]}));null==g||n.selectedOwners.some((function(e){return e.value==g.value}))?null==w||n.selectedOwners.some((function(e){return e.value==w.value}))||n.selectedOwners.push(w):n.selectedOwners.push(g)}e.updateFacetsAndOwners=!1}if("ac"==c[u]){var m=l[c[u]];if(""!=(y=decodeURIComponent(m))){var b=y.split(",");for(p=0;p<b.length;p++)null==(C=n.activityFilter.find((function(e){return e.value==b[p]})))||n.selectedActivities.some((function(e){return e.value==C.value}))||n.selectedActivities.push(C)}e.updateFacetsAndOwners=!1}if("sac"==c[u]){var y;if(m=l[c[u]],""!=(y=decodeURIComponent(m)))for(b=y.split(","),p=0;p<b.length;p++){var C;null==(C=n.subActivityFilter.find((function(e){return e.value==b[p]})))||n.selectedSubActivities.some((function(e){return e.value==C.value}))||n.selectedSubActivities.push(C)}e.updateFacetsAndOwners=!1}if("fu"==c[u]){var _=l[c[u]],O=decodeURIComponent(_);if(""!=O){var A=O.split(",");for(p=0;p<A.length;p++){var P=n.functionFilter.find((function(e){return e.value==A[p]}));null==P||n.selectedFunctions.some((function(e){return e.value==P.value}))||n.selectedFunctions.push(P)}}e.updateFacetsAndOwners=!1}if("ci"==c[u]){var S=l[c[u]],F=decodeURIComponent(S);if(""!=F){var D=F.split(",");for(p=0;p<D.length;p++){var x=n.cityFilter.find((function(e){return e.value==D[p]}));null==x||n.selectedCities.some((function(e){return e.value==x.value}))||n.selectedCities.push(x)}}e.updateFacetsAndOwners=!1}if("ed"==c[u]){var k=l[c[u]];e.earliestStartDate=""==k?null:k,e.selectedEarliestDate=k}if("ld"==c[u]){var E=l[c[u]];e.latestStartDate=""==E?null:E,e.selectedLatestDate=E}}e.initializeSearch=!1,e.search()}e.showResult=!0}))},handleInput:function(e){this.searchTerm=e},dateHandler:function(e){},performSearch:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.updateFacetsAndOwners=e,this.search()},filterButtons:function(e){this.selectedFacet=e,""==e.type&&(this.contentInput="",this.documentInput="",this.areaInput="",this.updateAll()),"ContentType"==e.type&&(this.contentInput=e.value,this.documentInput="",this.areaInput="",this.updateContentType(e.value)),"DocumentType"==e.type&&(this.contentInput="",this.documentInput=e.value,this.areaInput="",this.updateDocumentType(e.value)),this.updateFacetsAndOwners=!1,this.initializeSearch||this.search()},getQueryParams:function(){var e=window.location.href.split("?");if(2==e.length){var t=e[1].split("&"),a={},s="";return t.forEach((function(e){2==(s=e.split("=")).length&&(a[s[0]]=s[1])})),a}},updateQueryParams:function(e,t,a){var s=new RegExp("([?&])"+t+"=.*?(&|#|$)","i");if(void 0===a)return e.match(s)?e.replace(s,"$1$2").replace(/[?&]$/,"").replaceAll(/([?&])&+/g,"$1").replace(/[?&]#/,"#"):e;if(e.match(s))return e.replace(s,"$1"+t+"="+a+"$2");var i="";-1!==e.indexOf("#")&&(i=e.replace(/.*#/,"#"),e=e.replace(/#.*/,""));var n=-1!==e.indexOf("?")?"&":"?";return e+n+t+"="+a+i}},mounted:function(){var e=this;navigator.geolocation.getCurrentPosition((function(t){var a=t.coords.latitude,s=t.coords.longitude;e.userCoordinates={lat:a,lng:s},e.initializeSearch=!0,e.performSearch()}),null,{maximumAge:0,timeout:5e3,enableHighAccuracy:!0}),this.initializeSearch=!0,this.performSearch()},metaInfo:function(){return{title:this.title,meta:[{vmid:"description",name:"description",content:this.description}]}}};var v=(0,a(51900).Z)(d,i,n,!1,null,null,null);v.options.__file="templates/pages/EventListingPage.vue";const h=v.exports;s.ZP.config.productionTip=!1;var f={methods:{hashChangeHandler:function(){this.$router.push(window.location.hash.substring(1,window.location.hash.length))},isIE11:function(){return!!window.MSInputMethodContext&&!!document.documentMode}},mounted:function(){this.isIE11()&&window.addEventListener("hashchange",this.hashChangeHandler)},destroyed:function(){this.isIE11()&&window.removeEventListener("hashchange",this.hashChangeHandler)}},p=null!=document.getElementById("EventListingPageContainer"),g=null!=document.getElementById("EventListingPageContainer")&&""!=document.getElementById("EventListingPageContainer").getAttribute("data-content")?JSON.parse(document.getElementById("EventListingPageContainer").getAttribute("data-content")):{},w=null!=document.getElementById("EventListingPageContainer")&&""!=document.getElementById("EventListingPageContainer").getAttribute("data-apiBaseUrl")?document.getElementById("EventListingPageContainer").getAttribute("data-apiBaseUrl"):"";p&&new s.ZP({el:"#SBKEventListingPage",template:'<EventListingPage :content="content" :apiBaseUrl="apiBaseUrl" />',components:{EventListingPage:h},data:function(){return{content:g,apiBaseUrl:w}},methods:{},mixins:[f]})},567:()=>{},10057:e=>{e.exports="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3e%3cdefs%3e%3cstyle%3e.a%7bfill:none;%7d.b%7bfill:%23183a68;%7d%3c/style%3e%3c/defs%3e%3cpath class='a' d='M0,0H24V24H0Z'/%3e%3cpath class='b' d='M16,13H13a1,1,0,0,0-1,1v3a1,1,0,0,0,1,1h3a1,1,0,0,0,1-1V14A1,1,0,0,0,16,13ZM16,3V4H8V3A1,1,0,0,0,6,3V4H5A1.991,1.991,0,0,0,3.01,6L3,20a2,2,0,0,0,2,2H19a2.006,2.006,0,0,0,2-2V6a2.006,2.006,0,0,0-2-2H18V3a1,1,0,0,0-2,0Zm2,17H6a1,1,0,0,1-1-1V9H19V19A1,1,0,0,1,18,20Z'/%3e%3c/svg%3e"},64833:e=>{e.exports="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3e%3cdefs%3e%3cstyle%3e.a%7bfill:none;opacity:0.87;%7d.b%7bfill:%23183a68;%7d%3c/style%3e%3c/defs%3e%3cg transform='translate(0 24) rotate(-90)'%3e%3cpath class='a' d='M24,24H0V0H24Z'/%3e%3cpath class='b' d='M20.787,9.442,14.9,15.334,9,9.442a1.514,1.514,0,0,0-2.141,2.141l6.97,6.97a1.512,1.512,0,0,0,2.141,0l6.97-6.97a1.512,1.512,0,0,0,0-2.141,1.545,1.545,0,0,0-2.156,0Z' transform='translate(-3 -2)'/%3e%3c/g%3e%3c/svg%3e"},66240:e=>{e.exports="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='21' height='30' viewBox='0 0 21 30'%3e%3cdefs%3e%3cstyle%3e.a%7bfill:%23183a68;%7d%3c/style%3e%3c/defs%3e%3cpath class='a' d='M18,3A10.492,10.492,0,0,0,7.5,13.5C7.5,21.375,18,33,18,33S28.5,21.375,28.5,13.5A10.492,10.492,0,0,0,18,3Zm0,14.25a3.75,3.75,0,1,1,3.75-3.75A3.751,3.751,0,0,1,18,17.25Z' transform='translate(-7.5 -3)'/%3e%3c/svg%3e"},76051:e=>{e.exports="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='13.5' height='11.442' viewBox='0 0 13.5 11.442'%3e%3cdefs%3e%3cstyle%3e.a%7bfill:%23183a68;%7d%3c/style%3e%3c/defs%3e%3cg transform='translate(-9 -7.5)'%3e%3cpath class='a' d='M6,12a1.5,1.5,0,1,1-1.5-1.5A1.5,1.5,0,0,1,6,12Z' transform='translate(6)'/%3e%3cpath class='a' d='M12.75,6a1.5,1.5,0,1,1-1.5-1.5A1.5,1.5,0,0,1,12.75,6Z' transform='translate(2.25 3)'/%3e%3cpath class='a' d='M21.75,6a1.5,1.5,0,1,1-1.5-1.5A1.5,1.5,0,0,1,21.75,6Z' transform='translate(-2.25 3)'/%3e%3cpath class='a' d='M28.5,12A1.5,1.5,0,1,1,27,10.5,1.5,1.5,0,0,1,28.5,12Z' transform='translate(-6)'/%3e%3cpath class='a' d='M14.334,18.476c-.544-.638-1-1.182-1.55-1.819a2.652,2.652,0,0,0-1.094-.825,1.266,1.266,0,0,0-.206-.056A3.146,3.146,0,0,0,11,15.75a2.623,2.623,0,0,0-.494.031,1.266,1.266,0,0,0-.206.056,2.693,2.693,0,0,0-1.094.825c-.544.638-1,1.182-1.55,1.819-.819.819-1.826,1.726-1.638,2.995a1.963,1.963,0,0,0,1.457,1.45c.456.094,1.913-.275,3.464-.275h.113c1.55,0,3.007.363,3.464.275a1.972,1.972,0,0,0,1.457-1.45c.194-1.275-.813-2.182-1.632-3Z' transform='translate(4.76 -4)'/%3e%3c/g%3e%3c/svg%3e"},86645:e=>{e.exports="data:image/svg+xml,%3csvg aria-hidden='true' focusable='false' data-prefix='fas' data-icon='road' class='svg-inline--fa fa-road fa-w-18' role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3e%3cpath fill='%23183a68' d='M573.19 402.67l-139.79-320C428.43 71.29 417.6 64 405.68 64h-97.59l2.45 23.16c.5 4.72-3.21 8.84-7.96 8.84h-29.16c-4.75 0-8.46-4.12-7.96-8.84L267.91 64h-97.59c-11.93 0-22.76 7.29-27.73 18.67L2.8 402.67C-6.45 423.86 8.31 448 30.54 448h196.84l10.31-97.68c.86-8.14 7.72-14.32 15.91-14.32h68.8c8.19 0 15.05 6.18 15.91 14.32L348.62 448h196.84c22.23 0 36.99-24.14 27.73-45.33zM260.4 135.16a8 8 0 0 1 7.96-7.16h39.29c4.09 0 7.53 3.09 7.96 7.16l4.6 43.58c.75 7.09-4.81 13.26-11.93 13.26h-40.54c-7.13 0-12.68-6.17-11.93-13.26l4.59-43.58zM315.64 304h-55.29c-9.5 0-16.91-8.23-15.91-17.68l5.07-48c.86-8.14 7.72-14.32 15.91-14.32h45.15c8.19 0 15.05 6.18 15.91 14.32l5.07 48c1 9.45-6.41 17.68-15.91 17.68z'%3e%3c/path%3e%3c/svg%3e"},77706:e=>{e.exports="data:image/svg+xml,%3csvg aria-hidden='true' focusable='false' data-prefix='fas' data-icon='rss' class='svg-inline--fa fa-rss fa-w-14' role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3e%3cpath fill='currentColor' d='M128.081 415.959c0 35.369-28.672 64.041-64.041 64.041S0 451.328 0 415.959s28.672-64.041 64.041-64.041 64.04 28.673 64.04 64.041zm175.66 47.25c-8.354-154.6-132.185-278.587-286.95-286.95C7.656 175.76
15 0 183.105 0 192.253v48.069c0 8.415 6.49 15.472 14.887 16.018 111.832 7.284 201.473 96.702 208.772 208.772.547 8.397 7.604 14.887 16.018 14.887h48.069c9.149.001 16.489-7.655 15.995-16.79zm144.249.288C439.596 229.677 251.465 40.445 16.503 32.01 7.473 31.686 0 38.981 0 48.016v48.068c0 8.625 6.835 15.645 15.453 15.999 191.179 7.839 344.627 161.316 352.465 352.465.353 8.618 7.373 15.453 15.999 15.453h48.068c9.034-.001 16.329-7.474 16.005-16.504z'%3e%3c/path%3e%3c/svg%3e"},866:e=>{e.exports="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3e%3cdefs%3e%3cstyle%3e.a%7bfill:none;%7d.b%7bfill:%23183a68;%7d%3c/style%3e%3c/defs%3e%3cpath class='a' d='M0,0H28V28H0Z'/%3e%3cpath class='b' d='M18.433,16.58h-.975l-.346-.333a8.048,8.048,0,1,0-.864.864l.333.346v.975l5.247,5.247a1.3,1.3,0,0,0,1.84-1.839Zm-7.408,0a5.555,5.555,0,1,1,5.556-5.555A5.548,5.548,0,0,1,11.025,16.58Z' transform='translate(0 0)'/%3e%3c/svg%3e"}},a={};function s(e){var i=a[e];if(void 0!==i)return i.exports;var n=a[e]={exports:{}};return t[e].call(n.exports,n,n.exports,s),n.exports}s.m=t,s.amdD=function(){throw new Error("define cannot be used indirect")},s.amdO={},e=[],s.O=(t,a,i,n)=>{if(!a){var r=1/0;for(u=0;u<e.length;u++){for(var[a,i,n]=e[u],l=!0,c=0;c<a.length;c++)(!1&n||r>=n)&&Object.keys(s.O).every((e=>s.O[e](a[c])))?a.splice(c--,1):(l=!1,n<r&&(r=n));l&&(e.splice(u--,1),t=i())}return t}n=n||0;for(var u=e.length;u>0&&e[u-1][2]>n;u--)e[u]=e[u-1];e[u]=[a,i,n]},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var a in t)s.o(t,a)&&!s.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.j=257,(()=>{var e={257:0};s.O.j=t=>0===e[t];var t=(t,a)=>{var i,n,[r,l,c]=a,u=0;for(i in l)s.o(l,i)&&(s.m[i]=l[i]);for(c&&c(s),t&&t(a);u<r.length;u++)n=r[u],s.o(e,n)&&e[n]&&e[n][0](),e[r[u]]=0;s.O()},a=self.webpackChunkSBK_Frontend=self.webpackChunkSBK_Frontend||[];a.forEach(t.bind(null,0)),a.push=t.bind(null,a.push.bind(a))})(),s.O(void 0,[216],(()=>s(71999)));var i=s.O(void 0,[216],(()=>s(567)));i=s.O(i)})();

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.