PageSourceSearch

https://www.danmarkbolig.dk/dist/vue/search-app.js?v=ZimP7quwhkKPYKRJQobxGNZoeGatGLxhd-Lzj7FPjXA

js danmarkbolig.dk collected 2026-10-04 13:23:50 UTC 218,669 bytes, 25 lines download raw bytes

1!function(e){function t(t){for(var n,a,o=t[0],l=t[1],c=t[2],f=0,d=[];f<o.length;f++)a=o[f],Object.prototype.hasOwnProperty.call(r,a)&&r[a]&&d.push(r[a][0]),r[a]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);for(u&&u(t);d.length;)d.shift()();return s.push.apply(s,c||[]),i()}function i(){for(var e,t=0;t<s.length;t++){for(var i=s[t],n=!0,o=1;o<i.length;o++){var l=i[o];0!==r[l]&&(n=!1)}n&&(s.splice(t--,1),e=a(a.s=i[0]))}return e}var n={},r={8:0},s=[];function a(t){if(n[t])return n[t].exports;var i=n[t]={i:t,l:!1,exports:{}};return e[t].call(i.exports,i,i.exports,a),i.l=!0,i.exports}a.m=e,a.c=n,a.d=function(e,t,i){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(a.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(i,n,function(t){return e[t]}.bind(null,n));return i},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var o=window.webpackJsonp=window.webpackJsonp||[],l=o.push.bind(o);o.push=t,o=o.slice();for(var c=0;c<o.length;c++)t(o[c]);var u=l;s.push([426,0]),i()}({134:function(e,t,i){"use strict";var n=i(3),r=i(0),s=i.n(r),a=i(87),o=i(8),l=(i(88),i(22)),c=i(6);i(86);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return d(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function h(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function p(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?h(Object(i),!0).forEach((function(t){g(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):h(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function g(e,t,i){return(t=function(e){var t=function(e,t){if("object"!==u(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===u(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var v={mixins:[i(27).a],props:{authenticated:{type:Boolean,default:!1}},components:{DatabaseImage:a.a},data:function(){return{savedLejlighedstyper:[],isAuthed:!1}},computed:{searchCriteria:function(){return this.$store.getters.searchCriteria},items:function(){return this.$store.getters.items},hasMorePages:function(){return this.searchResult.page<this.searchResult.totalPages},searchResult:function(){return this.$store.getters.searchResult},initialResultsLoaded:{get:function(){return this.$store.getters.initialResultsLoaded}
1,set:function(e){this.$store.dispatch("setInitialResultsLoaded",e)}}},watch:{items:function(e,t){setTimeout((function(){Array.isArray(t)&&t.length?o.a.reInit("equalizer"):new o.a.Equalizer(s()("[data-equalizer]"))}),500)}},methods:{goTo:function(e){var t={path:"/",query:p(p({},new l.a),Object(l.b)(this.$route))};t.query.lastPos=document.documentElement.scrollTop||document.body.scrollTop,this.$router.replace(t),window.location.href="/"+this.$i18n.locale+"/"+e.url},scChanged:function(e){var t=this;if("/"===this.$route.path){var i={path:"/",query:e};this.$nextTick().then((function(){window.location.href="/"+t.$i18n.locale+"/soeg"+t.$router.resolve(i).href}))}},isLoggedIn:function(){return new Promise((function(e,t){n.a.post("/api/user/is-logged-in").then((function(t){e(t.data)})).catch((function(e){alert("Der skete en fejl, prøv igen.")}))}))},isAlreadySaved:function(e){return!!this.savedLejlighedstyper&&this.savedLejlighedstyper.includes(e)},getSavedChecksums:function(){var e=this;return n.a.get("/api/user/get-saved-lejlighedstyper-as-checksums").then((function(t){e.savedLejlighedstyper=t.data})).catch((function(e){alert("Der skete en fejl, prøv igen."),console.log(e)}))},saveLejlighedstype:function(e){var t=this;n.a.post("/api/user/save-lejlighedstype?checksum="+e).then((function(i){if(200!==i.status)throw"";i.data.error?n.a.post("/api/user/delete-saved-lejlighedstype?checksum="+e).then((function(i){!0===i.data?t.savedLejlighedstyper=t.savedLejlighedstyper.filter((function(t){return t!==e})):alert(i.data.message)})).catch((function(e){alert(i.data.message),console.log(e)})):t.savedLejlighedstyper=[].concat(f(t.savedLejlighedstyper),[e])})).catch((function(e){console.log(e)}))},getNextPage:function(){c.a.setLoadingState("loading",!0);this.$store.dispatch("getNextPage").then((function(e){c.a.setLoadingState("loading",!1)}))},loadSavedSearch:function(e){var t=this;return n.a.get("/api/saved-search/get-saved-sc?fragment="+this.$route.query.ssId).then((function(e){var i=p(p({},new l.a),e.data);t.$store.dispatch("searchAndSetItems",i).then((function(e){location.reload(),c.a.setLoadingState("loading",!1)})).catch((function(e){console.log(e)}))})).catch((function(e){alert("Der skete en fejl, prøv igen."),console.log(e)}))},loadInitial:function(){var e=this,t=this,i=p(p({},new l.a),Object(l.b)(this.$route));i.currentPage>1?i.loadPreviousPages=!0:i.loadPreviousPages=!1,this.$store.dispatch("searchAndSetItems",i).then((function(i){t.initialResultsLoaded=!0,e.$route.query.lastPos&&null!==e.$route.query.lastPos&&e.$route.query.lastPos.length>0&&e.$nextTick().then((function(){setTimeout((function(){s()("html, body").animate({scrollTop:e.$route.query.lastPos});var t=p({},e.$route);t.query.lastPos=null;var i=e.$router.resolve(t).href;e.$router.replace(i)}),500)}))})).catch((function(e){console.log(e)}))}},created:function(){c.a.setLoadingState("loading",!0)},mounted:function(){var e=this,t=this;c.a.$on("sc-changed",(function(e){return t.scChanged(e)})),this.initialResultsLoaded&&new o.a.Equalizer(s()("[data-equalizer]")),this.$route.query.ssId&&this.$route.query.ssId.length>0?this.loadSavedSearch(this.$route.query.ssId):this.loadInitial(),this.isLoggedIn().then((function(t){e.isAuthed=t,!0===t&&e.getSavedChecksums().then((function(){}))}))},beforeDestroy:function(){c.a.$off("sc-changed")}},m=i(2),y=Object(m.a)(v,(function(){var e=this,t=e._self._c;return e.initialResultsLoaded?t("section",{staticClass:"grid-x results-container grid-margin-x",attrs:{"data-equalizer":"","data-equalize-by-row":"true"}},[e._l(e.items,(function(i,n){return t("section",{key:n,ref:i.checksum,refInFor:!0,staticClass:"cell large-3 medium-6 small-12 result",attrs:{id:i.checksum}},[t("div",{staticClass:"favourite-offer"},[t("a",{class:e.isAlreadySaved(i.checksum)?"active":"",attrs:{href:"#",title:e.$t("søgeside:knap:gem-bolig-link-title")},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.saveLejlighedstype(i.checksum)}}},[t("span",{staticClass:"heart-icon-wrapper"},[t("svg",{staticClass:"icon heart-icon"},[t("use",{attrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink","xlink:href":"/dist/svg/sprite.svg#icon-heart"}})])]),e._v("\n          "+e._s(e.isAlreadySaved(i.checksum)?e.$t("søgeside:knap:gemt"):e.$t("søgeside:knap:gem-bolig"))+"\n        ")])]),e._v(" "),t("a",{staticStyle:{position:"relative"},attrs:{href:i.url,title:i.title},on:{click:function(t){return t.preventDefault(),e.goTo(i)}}},[t("div",{staticStyle:{overflow:"hidden"}},[i.images.length>0?t("database-image",{staticClass:"result-image",attrs:{uri:i.images[0].url,width:600,height:212,mode:"crop"}}
1):e._e(),e._v(" "),i.images.length<=0?t("img",{staticClass:"result-image result-image-default",attrs:{src:"/dist/images/illustration.png",alt:"Billede mangler"}}):e._e()],1),e._v(" "),t("div",{staticClass:"result-content grid-x",attrs:{"data-equalizer-watch":""}},[t("div",{staticClass:"cell large-12"},[t("p",{staticClass:"resident-status"},[e._v(e._s(i.statusText))]),e._v(" "),t("h2",{staticClass:"h3"},[e._v(e._s(i.title))]),e._v(" "),t("p",[e._v(e._s(i.zipCode)+" "+e._s(i.city))]),e._v(" "),t("p",{staticClass:"data"},[t("span",{staticClass:"rooms"},[e._v(e._s(i.roomsFormattedText))]),e._v(" "),t("span",{staticClass:"size"},[e._v(e._s(i.sizeM2)+" m2")])]),e._v(" "),t("h3",{staticClass:"price hidden-medium"},[e._v("\n                    "+e._s(i.priceFormatted)+"\n                    "),t("span",[e._v(e._s(e.$t("søgeside:per-måned")))])]),e._v(" "),t("p",{staticClass:"data fluid"},[t("span",{staticClass:"type"},[e._v(e._s(i.boligTypeString))])])]),e._v(" "),t("div",{staticClass:"cell large-12 medium-6 small-6 visible-medium"},[t("h3",{staticClass:"price"},[e._v("\n                    "+e._s(i.priceFormatted)+"\n                    "),t("span",[e._v(e._s(e.$t("søgeside:per-måned")))])])]),e._v(" "),i.handicapIcons.length>0?t("div",{staticClass:"cell large-12 medium-12 small-12 handicap-spacing"},[t("p",[e._v("Handicapvenlighed:")]),e._v(" "),t("div",{staticClass:"handicap-icons-wrapper",on:{click:function(e){e.stopPropagation(),e.preventDefault()}}},e._l(i.handicapIcons,(function(i,n){return t("div",{key:n,staticClass:"icon-wrapper"},[t("span",{staticClass:"tooltiptext"},[e._v("\n                    "+e._s(e.$t("søgeside:ikon-tooltip:"+i.replace(" inactive","")))+"\n                  ")]),e._v(" "),t("svg",{class:"icon icon--white accesibility-icon position-relative "+i},[t("use",{attrs:{"xlink:href":"/dist/svg/sprite.svg#icon-"+i.replace(" inactive",""),"xmlns:xlink":"http://www.w3.org/1999/xlink"}})])])})),0)]):e._e()])])])})),e._v(" "),e.hasMorePages?t("div",{staticClass:"cell large-12 button-container"},[t("button",{staticClass:"primary button",attrs:{type:"button",title:e.$t("søgeside:knap:vis-flere-boliger")},on:{click:e.getNextPage}},[e._v("\n        "+e._s(e.$t("søgeside:knap:vis-flere-boliger"))+"\n      ")])]):e._e(),e._v(" "),0==e.items.length?t("div",{staticClass:"cell large-12 medium-12 small-12 no-results text-center",attrs:{role:"alert","aria-atomic":"true","aria-live":"assertive"}},[t("h1",[e._v(e._s(e.$t("søgeside:ingen-resultater:overskrift")))]),e._v(" "),t("p",[e._v(e._s(e.$t("søgeside:ingen-resultater:tekst")))]),e._v(" "),t("h5",[e._v(e._s(e.$t("søgeside:ingen-resultater:under-overskrift")))])]):e._e()],2):e._e()}),[],!1,null,null,null);t.a=y.exports},14:function(e,t,i){"use strict";i.d(t,"a",(function(){return a})),i.d(t,"b",(function(){return o}));var n=i(5),r=i(18),s=i(3);n.default.use(r.a);var a=new r.a({locale:document.currentCulture,fallbackLocale:document.currentCulture,messages:document.localizedTexts,silentTranslationWarn:!0});function o(e){return a.locale=e,s.a.defaults.headers.common["Accept-Language"]=e,document.querySelector("html").setAttribute("lang",e),e}},22:function(e,t,i){"use strict";i.d(t,"a",(function(){return f})),i.d(t,"b",(function(){return d}));var n=i(86),r=i.n(n);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function o(e,t,i){return(t=u(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function l(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function c(e,t,i){return t&&l(e.prototype,t),i&&l(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===s(t)?t:String(t)}var f=c((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.currentPage=1,this.resultSet=0,this.resultsPerPage=12,this.selectedSortMethod=0,this.paging=!0,this.zipCityQuery="",this.zipCodes=[],this.kommuner=[],this.zipCodeRanges=[],this.selectedRegion=null,this.boligOrganisationIds=[],this.displayValue="",this.facets=[],this.roomMin=null,this.roomMax=null,this.roomIsDirty=!1,this.sizeMin=null,this.sizeMax=null,this.sizeIsDirty=!1,this.rentMin=null,this.rentMax=null,this.rentIsDirty=!1,this.loadPreviousPages=!1,this.boligTypeTags=[],this.boligTypeTagsPhrases=[]}));function d(e){var t=r.a.parse(e.fullPath.replace("#","").replace("/kort","").replace("/","")),i=new f;return t.currentPage=t.currentPage?parseInt(t.currentPage):i.currentPage,t.resultSet=t.resultSet?parseInt(t.resultSet):i.resultSet,t.resultsPerPage=t.resultsPerPage?parseInt(t.resultsPerPage):i.resultsPerPage,t.selectedSortMethod=t.selectedSortMethod?parseInt(t.selectedSortMethod):i.selectedSortMethod,t.loadPreviousPages=!1,t.paging=!0,t.boligOrganisationIds=t.boligOrganisationIds?t.boligOrganisationIds:[],t.facets=t.facets?t.facets:[],"string"==typeof t.boligOrganisationIds&&(t.boligOrganisationIds=[t.boligOrganisationIds]),"string"==typeof t.facets&&(t.facets=[t.facets]),void 0!==t.zipCodeRanges&&"string"==typeof t.zipCodeRanges&&(t.zipCodeRanges=[t.zipCodeRanges]),void 0!==t.zipCodes&&"string"==typeof t.zipCodes&&(t.zipCodes=[t.zipCodes]),void 0!==t.kommuner&&"string"==typeof t.kommuner&&(t.kommuner=[t.kommuner]),t.roomMin||t.roomMax?t.roomIsDirty=!0:t.roomIsDirty="true"===t.roomIsDirty,t.sizeMin||t.sizeMax?t.sizeIsDirty=!0:t.sizeIsDirty="true"===t.sizeIsDirty,t.rentMin||t.rentMax?t.rentIsDirty=!0:t.rentIsDirty="true"===t.rentIsDirty,function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};
1t%2?a(Object(i),!0).forEach((function(t){o(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({},t)}},27:function(e,t,i){"use strict";var n=i(14);t.a={beforeCreate:function(){Object(n.b)(document.currentCulture)}}},3:function(e,t,i){"use strict";var n=i(21),r=i.n(n),s=i(0),a=i.n(s);i(8).a.addToJquery(a.a);var o=r.a.create();o.defaults.headers.post.RequestVerificationToken=a()("#RequestVerificationToken")[0].value,o.defaults.headers.common.axios=!0,o.defaults.headers.common.Lang=document.currentCulture,o.interceptors.response.use((function(e){return e}),(function(e){if(401===e.response.status)try{setTimeout((function(){document.loginFormApp.$children[0].showModal("#login-modal")}),100)}catch(e){console.log(e),location.reload()}return e})),t.a=o},40:function(e,t,i){"use strict";var n=i(53),r=i.n(n),s={data:function(){return{value:"",currentValue:null,combobo:null}},props:{id:{type:String},options:{type:Array,default:function(){return[]}},titleProperty:{type:String,default:"title"},keyProperty:{type:String},defaultSelection:{type:Object,default:null},searchable:{type:Boolean,default:!1},noSelectionValue:{type:Object,default:null},t:{type:Function}},methods:{isDefault:function(e){var t=this;return!!this.defaultSelection&&t.options.map((function(e){return e[t.keyProperty]})).indexOf(this.defaultSelection[t.keyProperty])===e},updateValue:function(e){e&&null!==e||(e=this.noSelectionValue);this.currentValue=e,this.$emit("update:value",e),this.value=e[this.titleProperty]},noSearchFilter:function(e,t){return t.filter((function(e){return!0}))}},mounted:function(){var e=this,t=this;this.combobo=new r.a({input:"#"+this.id+"-input",allowEmpty:this.searchable,list:".listbox."+this.id,activeClass:"active",noResultsText:this.t("global:dropdown:ingen-resultater"),selectionValue:function(e){return e[0].innerText.trim()},filter:t.searchable?"contains":t.noSearchFilter});var i=function(){e.$nextTick((function(){try{document.selection.empty()}catch(e){}try{window.getSelection().removeAllRanges()}catch(e){}}))};this.combobo.on("selection",(function(n){"true"===n.option.dataset.noselection?t.updateValue(e.noSelectionValue):t.updateValue(t.options[n.option.dataset.index]),$(e.id).removeClass(t.combobo.config.openClass),$(e.id+"-input").attr("aria-expanded","false"),t.combobo.isOpen=!1,$(e.id).focus(),i()})).on("list:close",(function(e){i()})).on("list:open",(function(e){i()})),null===t.defaultSelection&&null!=t.noSelectionValue?t.updateValue(t.noSelectionValue):t.updateValue(t.defaultSelection)}},a=i(2),o=Object(a.a)(s,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"combo-wrap combobo-single"},[t("input",{ref:"input",staticStyle:{cursor:"pointer"},attrs:{type:"text",id:e.id+"-input","aria-label":e.value,autocomplete:"off",readonly:"readonly"},domProps:{value:e.value}}),e._v(" "),t("div",{staticClass:"listbox",class:e.id},[e.noSelectionValue?t("div",{staticClass:"option",attrs:{"data-noselection":"true"}},[e._v(e._s(e.noSelectionValue[e.titleProperty]))]):e._e(),e._v(" "),e._l(e.options,(function(i,n){return t("div",{key:n,staticClass:"option",class:e.isDefault(n)?"active selected":"",attrs:{"aria-selected":e.isDefault(n),"data-index":n}},[e._v(e._s(i[e.titleProperty]))])}))],2)])}),[],!1,null,null,null);t.a=o.exports},423:function(e,t,i){"use strict";i.r(t);var n=i(5),r=i(0),s=i.n(r),a=i(49),o=i(58),l=i(14),c=i(89),u=i(8),f=i(180),d=i(185),h=i(103),p=i(104),g=i(78),v=i(77),m=i(26),y=i(30),b=i(15),_=i(38),w=i(88);u.a.plugin(d.a,"Dropdown"),u.a.plugin(h.a,"Slider"),u.a.plugin(p.a,"Accordion"),u.a.plugin(g.a,"DropdownMenu"),u.a.plugin(v.a,"Reveal"),u.a.plugin(y.a,"Triggers"),u.a.plugin(b.a,"Keyboard"),u.a.plugin(m.a,"Motion"),u.a.plugin(_.a,"Touch"),u.a.plugin(w.a,"Equalizer"),u.a.plugin(f.a,"Toggler"),u.a.addToJquery(s.a);var C={mounted:function(){s()(this.$el).on("show.zf.dropdown",(function(e){s()(".search-overlay").css("display","block"),s()("body").addClass("filter-elm-is-visible")})),s()(this.$el).on("hide.zf.dropdown",(function(e){s()(".search-overlay").css("display","none"),s()("body").removeClass("filter-elm-is-visible")})),s()(this.$el).foundation()},destroyed:function(){}},k=i(6);function S(e){return function(e){if(Array.isArray(e))return x(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return x(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return x(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var $={props:["standalone","mobile","tablet"],data:function(){return{}},computed:{activeSlideoutFiltersCount:function(){return this.$store.getters.activeFiltersInSlideoutCount},activeSlideoutFilters:function(){return this.$store.getters.activeFiltersInSlideout},activeMobileSlideoutFiltersCount:function(){return this.$store.getters.activeMobileFiltersInSlideoutCount},activeMobileSlideoutFilters:function(){return this.$store.getters.activeMobileFiltersInSlideout},tempSearchCriteria:function(){return this.$store.getters.tempSearchCriteria},wrapperClass:function(){return this.isStandaloneView?"standalone-filter":"slideout-filter cell medium-12 small-12"},isStandaloneView:function(){return!0===this.standalone},isTabletView:function(){return!0===this.tablet},isMobileView:function(){return!0===this.mobile}},methods:{setActiveSlideoutFiltersCount:function(e,t){this.$store.dispatch("updateActiveFiltersInSlideout",{filterName:e,count:t})}
1,setActiveMobileSlideoutFiltersCount:function(e,t){this.$store.dispatch("updateActiveMobileFiltersInSlideout",{filterName:e,count:t})},initSlideoutFilter:function(){var e=this,t=s()(this.$el.ownerDocument.documentElement),i=s()("body",t),n=this;s()(".js-toggle-filter-nav",t).on("click",(function(e){e.preventDefault(),e.stopImmediatePropagation(),i.hasClass("filter-nav-is-visible")?n.closeSlideout(!0):n.openSlideout()})),s()(".show-result",t).on("click",(function(t){t.preventDefault(),t.stopImmediatePropagation(),i.hasClass("filter-nav-is-visible")&&(e.updateSearch(),n.closeSlideout(!0))}))},openSlideout:function(){var e=s()(this.$el.ownerDocument.documentElement),t=s()("body",e),i=this;s()(".dropdown-pane > .close-button",e).click(),t.addClass("filter-nav-is-visible"),e.css("top",-s()(window).scrollTop()),e.addClass("no-scroll"),s()(".search-overlay").css("display","block"),s()(".js-toggle-filter-nav").addClass("active");var n=.01*window.innerHeight;document.documentElement.style.setProperty("--vh","".concat(n,"px")),setTimeout((function(){i.trapFocus(s()(".filter-navigation-panel"))}),300)},closeSlideout:function(e){!0===e&&k.a.$emit("search-slideout-close","");var t=s()(this.$el.ownerDocument.documentElement),i=s()("body",t);s()(".js-toggle-filter-nav.active:visible:not(.close-icon-container)").first().focus();var n=parseInt(t.css("top"),10);i.removeClass("filter-nav-is-visible"),t.removeClass("no-scroll"),t.removeAttr("style");var r=.01*window.innerHeight;document.documentElement.style.setProperty("--vh","".concat(r,"px")),i.hasClass("filter-elm-is-visible")||s()(".search-overlay").css("display","none"),s()(window).scrollTop(-n),s()(".js-toggle-filter-nav").removeClass("active")},facetsInUseCount:function(e){return this.getFacetsInUse(e).length},getFacetsInUse:function(e){var t=this,i=[];return e.forEach((function(e){t.tempSearchCriteria.facets.includes(e)&&i.push(e)})),i},getDiffedFacetValue:function(e,t,i){var n=[t,i].reduce((function(e,t){return e.filter((function(e){return!t.includes(e)}))}));return S(new Set(n.concat(e)))},updateSearch:function(){this.closeSlideout(!1);var e=Object.assign({},this.tempSearchCriteria);e.currentPage=1,e.loadPreviousPages=!1,this.$store.dispatch("setTempSearchCriteria",e),this.$store.dispatch("searchAndSetItems",e).then((function(){document.getElementById("result-title")&&null!==document.getElementById("result-title")&&(document.getElementById("result-title").removeAttribute("role","alert"),document.getElementById("result-title").setAttribute("role","alert"))}))},getBoligTypeTagsInUse:function(e,t){var i=[];return e.forEach((function(e){t.boligTypeTags.includes(e)&&i.push(e)})),i},reset:function(){k.a.$emit("search-filter-reset",""),this.$emit("search-filter-reset")},resetFull:function(){k.a.$emit("search-filter-reset-all",""),this.$emit("search-filter-reset-all")},trapFocus:function(e){var t=e.find("a, button, textarea, input, select"),i=t.first(),n=t.last();i.focus(),s()(document).off("keydown").on("keydown",(function(e){("Tab"===e.key||9===e.keyCode)&&(e.shiftKey?s()(i).is(":focus")&&(n.focus(),e.preventDefault()):s()(n).is(":focus")&&(i.focus(),e.preventDefault()))}))}},mounted:function(){var e=this;s()(e.$el).on("show.zf.dropdown",(function(t){e.closeSlideout(!0);try{s()("[data-slider]",e.$el).foundation("_reflow")}catch(e){console.log(e)}}))}},O={mixins:[C,$],props:["standalone"],data:function(){return{localSelected:[],dropdown:{}}},computed:{searchResult:function(){return this.$store.getters.searchResult},boligTyper:function(){return this.searchResult.facetGroups.length>0?this.searchResult.facetGroups[4].facets:[]},firstTwoTypes:function(){return this.boligTyper.slice(0,2)},lastTwoTypes:function(){return this.boligTyper.slice(2)},searchCriteria:function(){return this.$store.getters.searchCriteria},tempSearchCriteria:function(){return this.$store.getters.tempSearchCriteria},activeFilters:function(){return this.$store.getters.filtersCount.boligtyper},selected:{get:function(){return this.tempSearchCriteria.facets},set:function(e){var t=Object.assign({},this.tempSearchCriteria),i=this.boligTyper.map((function(e){return e.value}));t.facets=this.getDiffedFacetValue(e,this.tempSearchCriteria.facets,i);var n=this.getFacetsInUse(i).length;this.$emit("filter-count",n),this.setActiveMobileSlideoutFiltersCount("boligFacets",n),this.$store.dispatch("setTempSearchCriteria",t)}}},methods:{getId:function(e){return e.label.toLowerCase().replace("æ","ae").replace("ø","oe").replace("å","aa").replace(" ","_")+"-"+e.value.replace("/","-")},resetToCurrent:function(){this.selected=this.searchCriteria.facets},reset:function(){this.selected=[]}},mounted:function(){var e=this;e.isStandaloneView?(s()(e.$el).on("hide.zf.dropdown",(function(t){e.resetToCurrent()})),s()(e.$el).on("show.zf.dropdown",(function(t){setTimeout((function(){e.trapFocus(s()(t.target))}),300)}))):(k.a.$on("search-slideout-close",(function(t){e.resetToCurrent()})),k.a.$on("search-filter-reset-all",(function(t){e.reset()})))}},T=i(2),P=Object(T.a)(O,(function(){var e=this,t=e._self._c;return t("div",{class:e.wrapperClass},[e.isStandaloneView?t("button",{staticClass:"button filter",attrs:{type:"button","data-toggle":"property-type"}},[e._v(e._s(e.$t("søgeside:filter:boligtype"))),t("span",{directives:[{name:"show",rawName:"v-show",value:e.activeFilters>0,expression:"activeFilters > 0"}],staticClass:"badge"}
1,[e._v(e._s(e.activeFilters))])]):e._e(),e._v(" "),e.isStandaloneView?t("div",{staticClass:"dropdown-pane bottom",attrs:{id:"property-type","data-dropdown":"","data-closable":"","data-close-on-click":"true"}},[t("button",{staticClass:"close-button",attrs:{title:e.$t("knap:luk"),type:"button","data-close":""}},[t("span",{attrs:{"aria-hidden":"true"}},[t("svg",{staticClass:"icon close-icon"},[t("use",{attrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink","xlink:href":"/dist/svg/sprite.svg#icon-close"}})])]),e._v(" "),t("span",{staticClass:"close-text"},[e._v(e._s(e.$t("knap:luk")))])]),e._v(" "),t("h5",[e._v(e._s(e.$t("søgeside:filter:boligtype")))]),e._v(" "),e._l(e.boligTyper,(function(i,n){return t("fieldset",{key:n,staticClass:"large-12 cell checkbox-fieldset"},[t("legend",{attrs:{id:"checkbox-type-"+e.getId(i)+"-label"}},[e._v(e._s(i.translatedLabel))]),e._v(" "),t("label",{attrs:{for:"checkbox-type-"+e.getId(i)}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selected,expression:"selected"}],attrs:{id:"checkbox-type-"+e.getId(i),"aria-label":i.translatedLabel,type:"checkbox"},domProps:{value:i.value,checked:Array.isArray(e.selected)?e._i(e.selected,i.value)>-1:e.selected},on:{change:function(t){var n=e.selected,r=t.target,s=!!r.checked;if(Array.isArray(n)){var a=i.value,o=e._i(n,a);r.checked?o<0&&(e.selected=n.concat([a])):o>-1&&(e.selected=n.slice(0,o).concat(n.slice(o+1)))}else e.selected=s}}}),e._v(" "),t("span",{staticClass:"checkmark"}),e._v("\n                "+e._s(i.translatedLabel)+"\n            ")])])})),e._v(" "),t("div",{staticClass:"filter-buttons"},[t("button",{staticClass:"reset-button",attrs:{id:"reset-type-values",title:e.$t("søgeside:filter:knap:nulstil"),type:"button"},on:{click:e.reset}},[e._v(e._s(e.$t("søgeside:filter:knap:nulstil")))]),e._v(" "),t("button",{staticClass:"button lightblue filter-show-results",attrs:{title:e.$t("søgeside:filter:knap:vis-resultater"),type:"button","data-toggle":"property-type"},on:{click:e.updateSearch}},[e._v(e._s(e.$t("søgeside:filter:knap:vis-resultater")))])])],2):e._e(),e._v(" "),e.isStandaloneView?e._e():t("div",{staticClass:"cell large-12 small-12"},[t("div",{staticClass:"grid-x"},[t("div",{staticClass:"cell large-12 small-12"},[t("h5",[e._v(e._s(e.$t("søgeside:filter:boligtype")))])]),e._v(" "),t("div",{staticClass:"cell large-6 small-12"},e._l(e.firstTwoTypes,(function(i,n){return t("fieldset",{key:n,staticClass:"large-12 cell checkbox-fieldset"},[t("legend",{attrs:{id:"checkbox-type-slideout-"+e.getId(i)+"-label"}},[e._v(e._s(i.translatedLabel))]),e._v(" "),t("label",{attrs:{for:"checkbox-type-slideout-"+e.getId(i)}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selected,expression:"selected"}],attrs:{id:"checkbox-type-slideout-"+e.getId(i),"aria-label":i.translatedLabel,type:"checkbox"},domProps:{value:i.value,checked:Array.isArray(e.selected)?e._i(e.selected,i.value)>-1:e.selected},on:{change:function(t){var n=e.selected,r=t.target,s=!!r.checked;if(Array.isArray(n)){var a=i.value,o=e._i(n,a);r.checked?o<0&&(e.selected=n.concat([a])):o>-1&&(e.selected=n.slice(0,o).concat(n.slice(o+1)))}else e.selected=s}}}),e._v(" "),t("span",{staticClass:"checkmark"}),e._v("\n                        "+e._s(i.translatedLabel)+"\n                    ")])])})),0),e._v(" "),t("div",{staticClass:"cell large-6 small-12"},e._l(e.lastTwoTypes,(function(i,n){return t("fieldset",{key:n,staticClass:"large-12 cell checkbox-fieldset"},[t("legend",{attrs:{id:"checkbox-type-slideout-"+e.getId(i)+"-label"}},[e._v(e._s(i.translatedLabel))]),e._v(" "),t("label",{attrs:{for:"checkbox-type-slideout-"+e.getId(i)}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selected,expression:"selected"}],attrs:{id:"checkbox-type-slideout-"+e.getId(i),"aria-label":i.translatedLabel,type:"checkbox"},domProps:{value:i.value,checked:Array.isArray(e.selected)?e._i(e.selected,i.value)>-1:e.selected},on:{change:function(t){var n=e.selected,r=t.target,s=!!r.checked;if(Array.isArray(n)){var a=i.value,o=e._i(n,a);r.checked?o<0&&(e.selected=n.concat([a])):o>
1-1&&(e.selected=n.slice(0,o).concat(n.slice(o+1)))}else e.selected=s}}}),e._v(" "),t("span",{staticClass:"checkmark"}),e._v("\n                        "+e._s(i.translatedLabel)+"\n                    ")])])})),0)])])])}),[],!1,null,null,null).exports,j=i(181),A={props:{start:{type:Number,default:0},end:{type:Number,default:0},initialStart:{type:Number,default:0},initialEnd:{type:Number,default:0},step:{type:Number,default:1},sliderId:{type:String,default:"PleaseSetUniqueID"},handlePostFix:{type:String,default:""},startval:{type:Number,default:0},endval:{type:Number,default:0},dirty:{type:Boolean,default:!1}},data:function(){var e=this;return{value:[this.$props.initialStart,this.$props.initialEnd],formatter:function(t){return e.setComma(t)},min:this.$props.start,max:this.$props.end,isReset:!1}},components:{VueSlider:i.n(j).a},methods:{getStartValue:function(){var e=this.$refs.slider.getValue()[0];return e==this.min?this.start:e},getEndValue:function(){var e=this.$refs.slider.getValue()[1];return e==this.max?this.end:e},isDirty:function(){var e=this.$refs.slider.getValue()[0],t=this.$refs.slider.getValue()[1];return e!==this.start||t!==this.end},setHandles:function(e,t){e=null===e?this.min:e,t=null===t?this.max:t,this.$refs.slider.setValue([e,t])},reset:function(){this.setHandles(null,null),this.isReset=!0},setMinValue:function(){this.$refs.slider.setValue([this.min,this.getEndValue()])},setMaxValue:function(){this.$refs.slider.setValue([this.getStartValue(),this.max])},setComma:function(e){return"da"===window.location.href.split("/")[3]?e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,"."):e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")},emitUpdates:function(){var e=this.$refs.slider.getValue()[0];this.$refs.slider.getValue()[1]===this.end?this.$emit("update:endval",null):this.$emit("update:endval",this.getEndValue()),e===this.start?this.$emit("update:startval",null):this.$emit("update:startval",this.getStartValue()),this.$emit("update:dirty",this.isDirty()),this.isReset=!1}},beforeUpdate:function(){this.emitUpdates()}},E=Object(T.a)(A,(function(){var e=this;return(0,e._self._c)("VueSlider",{ref:"slider",attrs:{useKeyboard:!0,"tooltip-formatter":e.formatter,"min-range":0,"max-range":1e4,min:e.min,max:e.max,width:320,interval:e.step,"tooltip-placement":e.top,tooltip:"always","data-initial-end":e.initialEnd,"data-start":e.start,"data-end":e.end,"aria-disabled":"false","aria-hidden":"false","process-style":{backgroundColor:"#087998"}},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})}),[],!1,null,null,null).exports,I={mixins:[$,C],components:{VueSlider:E},data:function(){return{roomRangeMax:7,roomRangeMin:1,isVisible:!1,sizeRangeMax:200,sizeRangeMin:0,activeFilters:0,dropdown:{}}},computed:{searchCriteria:function(){return this.$store.getters.searchCriteria},tempSearchCriteria:function(){return this.$store.getters.tempSearchCriteria},activeFiltersCount:function(){return this.$store.getters.filtersCount.stoerrelse},sizeMinValue:{get:function(){return this.tempSearchCriteria.sizeMin},set:function(e){var t=Object.assign({},this.tempSearchCriteria);t.sizeMin=e,this.$store.dispatch("setTempSearchCriteria",t)}},sizeMaxValue:{get:function(){return this.tempSearchCriteria.sizeMax},set:function(e){var t=Object.assign({},this.tempSearchCriteria);t.sizeMax=e,this.$store.dispatch("setTempSearchCriteria",t)}},sizeIsDirty:{get:function(){return this.tempSearchCriteria.sizeIsDirty},set:function(e){var t=Object.assign({},this.tempSearchCriteria);t.sizeIsDirty=e,this.setActiveMobileSlideoutFiltersCount("size",t.sizeIsDirty?1:0),this.$store.dispatch("setTempSearchCriteria",t)}},roomMinValue:{get:function(){return this.tempSearchCriteria.roomMin},set:function(e){var t=Object.assign({},this.tempSearchCriteria);t.roomMin=e,this.$store.dispatch("setTempSearchCriteria",t)}},roomMaxValue:{get:function(){return this.tempSearchCriteria.roomMax},set:function(e){var t=Object.assign({},this.tempSearchCriteria);t.roomMax=e,this.$store.dispatch("setTempSearchCriteria",t)}},roomIsDirty:{get:function(){return this.tempSearchCriteria.roomIsDirty},set:function(e){var t=Object.assign({},this.tempSearchCriteria);t.roomIsDirty=e,this.setActiveMobileSlideoutFiltersCount("room",t.roomIsDirty?1:0),this.$store.dispatch("setTempSearchCriteria",t)}}},methods:{setMinRoom:function(){this.$refs.roomSlider.setMinValue()}
1,setMaxRoom:function(){this.$refs.roomSlider.setMaxValue()},setMinSize:function(){this.$refs.sizeSlider.setMinValue()},setMaxSize:function(){this.$refs.sizeSlider.setMaxValue()},resetToCurrent:function(){var e=this;this.$nextTick((function(){e.$refs.sizeSlider.setHandles(e.searchCriteria.sizeMin,e.searchCriteria.sizeMax),e.$refs.roomSlider.setHandles(e.searchCriteria.roomMin,e.searchCriteria.roomMax)}))},reset:function(){this.$refs.sizeSlider.reset(),this.$refs.roomSlider.reset()}},mounted:function(){var e=this;e.isStandaloneView?(s()(e.$el).on("hide.zf.dropdown",(function(t){e.isVisible=!1,e.resetToCurrent()})),s()(e.$el).on("show.zf.dropdown",(function(t){e.isVisible=!0,e.resetToCurrent(),setTimeout((function(){e.trapFocus(s()(t.target))}),300)}))):k.a.$on("search-slideout-close",(function(t){e.resetToCurrent()})),this.resetToCurrent(),k.a.$on("search-filter-reset-all",(function(t){e.reset()}))}},L=Object(T.a)(I,(function(){var e=this,t=e._self._c;return t("div",{class:e.wrapperClass},[e.isStandaloneView?t("button",{staticClass:"button filter",attrs:{type:"button",id:"property-size-button","data-toggle":"property-size"}},[e._v("\n        "+e._s(e.$t("søgeside:filter:størrelse"))),t("span",{directives:[{name:"show",rawName:"v-show",value:e.activeFiltersCount>0,expression:"activeFiltersCount > 0"}],staticClass:"badge"},[e._v(e._s(e.activeFiltersCount))])]):e._e(),e._v(" "),e.isStandaloneView?t("div",{staticClass:"dropdown-pane bottom",attrs:{id:"property-size","data-dropdown":"","data-closable":"","data-close-on-click":"true"}},[t("button",{staticClass:"close-button",attrs:{title:e.$t("knap:luk"),type:"button","data-close":""},on:{click:e.resetToCurrent}},[t("span",{attrs:{"aria-hidden":"true"}},[t("svg",{staticClass:"icon close-icon"},[t("use",{attrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink","xlink:href":"/dist/svg/sprite.svg#icon-close"}})])]),e._v(" "),t("span",{staticClass:"close-text"},[e._v(e._s(e.$t("knap:luk")))])]),e._v(" "),t("h5",[e._v(e._s(e.$t("søgeside:filter:boligens-størrelse")))]),e._v(" "),t("div",{staticClass:"size-slider"},[t("span",{staticClass:"min-value value-limit",on:{click:e.setMinSize}},[e._v("0")]),e._v(" "),t("span",{staticClass:"max-value value-limit",on:{click:e.setMaxSize}},[e._v("200+")]),e._v(" "),t("VueSlider",{directives:[{name:"show",rawName:"v-show",value:e.isVisible,expression:"isVisible"}],ref:"sizeSlider",attrs:{title:"size-slider",role:"slider",startval:e.sizeMinValue,endval:e.sizeMaxValue,dirty:e.sizeIsDirty,step:10,max:200,min:0,start:e.sizeRangeMin,end:e.sizeRangeMax,initialStart:e.sizeRangeMin,initialEnd:e.sizeRangeMax,sliderId:"size-slider","aria-labelledby":"size-slider",id:"size-slider"},on:{"update:startval":function(t){e.sizeMinValue=t},"update:endval":function(t){e.sizeMaxValue=t},"update:dirty":function(t){e.sizeIsDirty=t}}})],1),e._v(" "),t("span",{staticClass:"divider"}),e._v(" "),t("h5",[e._v(e._s(e.$t("søgeside:filter:antal-rum")))]),e._v(" "),t("div",{staticClass:"room-slider"},[t("span",{staticClass:"min-value value-limit",on:{click:e.setMinRoom}},[e._v("1")]),e._v(" "),t("span",{staticClass:"max-value value-limit",on:{click:e.setMaxRoom}},[e._v("7+")]),e._v(" "),t("VueSlider",{directives:[{name:"show",rawName:"v-show",value:e.isVisible,expression:"isVisible"}],ref:"roomSlider",attrs:{role:"slider",title:"room-slider",startval:e.roomMinValue,endval:e.roomMaxValue,dirty:e.roomIsDirty,step:1,tabindex:"1",start:e.roomRangeMin,end:e.roomRangeMax,initialStart:e.roomRangeMin,initialEnd:e.roomRangeMax,"aria-labelledby":"room-slider",sliderId:"room-slider",id:"room-slider"},on:{"update:startval":function(t){e.roomMinValue=t},"update:endval":function(t){e.roomMaxValue=t},"update:dirty":function(t){e.roomIsDirty=t}}})],1),e._v(" "),t("div",{staticClass:"filter-buttons"},[t("button",{staticClass:"reset-button",attrs:{id:"reset-size-values",title:e.$t("søgeside:filter:knap:nulstil"),type:"button"},on:{click:e.reset}},[e._v(e._s(e.$t("søgeside:filter:knap:nulstil")))]),e._v(" "),t("button",{staticClass:"button lightblue filter-show-results",attrs:{title:e.$t("søgeside:filter:knap:vis-resultater"),type:"button","data-toggle":"property-size"},on:{click:e.updateSearch}},[e._v(e._s(e.$t("søgeside:filter:knap:vis-resultater")))])])]):e._e(
1),e._v(" "),e.isStandaloneView?e._e():t("div",{staticClass:"cell large-14 small-14"},[t("h5",[e._v(e._s(e.$t("søgeside:filter:boligens-størrelse")))]),e._v(" "),t("div",{staticClass:"mini-slider-view__ mini-slider-view first"},[t("span",{staticClass:"min-value value-limit",on:{click:e.setMinSize}},[e._v("0 m"),t("sup",[e._v("2")])]),e._v(" "),t("span",{staticClass:"max-value value-limit",on:{click:e.setMaxSize}},[e._v("200+ m"),t("sup",[e._v("2")])]),e._v(" "),t("VueSlider",{ref:"sizeSlider",attrs:{title:"size-slider_mini",startval:e.sizeMinValue,endval:e.sizeMaxValue,dirty:e.sizeIsDirty,role:"slider",step:10,minRange:10,start:e.sizeRangeMin,end:e.sizeRangeMax,initialStart:e.sizeRangeMin,initialEnd:e.sizeRangeMax,"aria-labelledby":"size-slider__mini-view",sliderId:"size-slider__mini-view",id:"size-slider__mini-view"},on:{"update:startval":function(t){e.sizeMinValue=t},"update:endval":function(t){e.sizeMaxValue=t},"update:dirty":function(t){e.sizeIsDirty=t}}})],1)]),e._v(" "),e.isStandaloneView?e._e():t("span",{staticClass:"divider"}),e._v(" "),e.isStandaloneView?e._e():t("div",{staticClass:"cell large-12 small-12"},[t("h5",[e._v(e._s(e.$t("søgeside:filter:antal-rum")))]),e._v(" "),t("div",{staticClass:"mini-slider-view__ mini-slider-view second"},[t("span",{staticClass:"min-value value-limit",on:{click:e.setMinRoom}},[e._v("1")]),e._v(" "),t("span",{staticClass:"max-value value-limit",on:{click:e.setMaxRoom}},[e._v("7+")]),e._v(" "),t("VueSlider",{ref:"roomSlider",attrs:{title:"room-slider_mini",startval:e.roomMinValue,endval:e.roomMaxValue,dirty:e.roomIsDirty,role:"slider",step:1,start:e.roomRangeMin,end:e.roomRangeMax,initialStart:e.roomRangeMin,initialEnd:e.roomRangeMax,"aria-labelledby":"room-slider__mini-view",sliderId:"room-slider__mini-view",id:"room-slider__mini-view"},on:{"update:startval":function(t){e.roomMinValue=t},"update:endval":function(t){e.roomMaxValue=t},"update:dirty":function(t){e.roomIsDirty=t}}})],1)])])}),[],!1,null,null,null).exports,M={mixins:[C,$],components:{VueSlider:E},data:function(){return{rentStart:1500,rentEnd:1e4,isVisible:!1}},computed:{searchCriteria:function(){return this.$store.getters.searchCriteria},tempSearchCriteria:function(){return this.$store.getters.tempSearchCriteria},activeFiltersCount:function(){return this.$store.getters.filtersCount.pris},rentMinValue:{get:function(){return this.tempSearchCriteria.rentMin},set:function(e){var t=Object.assign({},this.tempSearchCriteria);t.rentMin=e,this.$store.dispatch("setTempSearchCriteria",t)}},rentMaxValue:{get:function(){return this.tempSearchCriteria.rentMax},set:function(e){var t=Object.assign({},this.tempSearchCriteria);t.rentMax=e,this.$store.dispatch("setTempSearchCriteria",t)}},rentIsDirty:{get:function(){return this.tempSearchCriteria.rentIsDirty},set:function(e){var t=Object.assign({},this.tempSearchCriteria);t.rentIsDirty=e,this.setActiveMobileSlideoutFiltersCount("rent",t.rentIsDirty?1:0),this.$store.dispatch("setTempSearchCriteria",t)}}},methods:{setMinValue:function(){this.$refs.rentSlider.setMinValue()},setMaxValue:function(){this.$refs.rentSlider.setMaxValue()},resetToCurrent:function(){var e=this;this.$nextTick((function(){e.$refs.rentSlider.setHandles(e.searchCriteria.rentMin,e.searchCriteria.rentMax)}))},reset:function(){this.$refs.rentSlider.reset()},emitUpdates:function(){this.$emit("update:startval",this.rentMinValue),this.$emit("update:endval",this.rentMaxValue),this.$emit("update:dirty",this.rentIsDirty)},setComma:function(){return"da"===window.location.href.split("/")[3]?["1.500","10.000+"]:["1,500","10,000+"]}},mounted:function(){var e=this;e.isStandaloneView?(s()(e.$el).on("hide.zf.dropdown",(function(t){e.resetToCurrent(),e.isVisible=!1})),s()(e.$el).on("show.zf.dropdown",(function(t){e.resetToCurrent(),e.isVisible=!0,setTimeout((function(){e.trapFocus(s()(t.target))}),300)}))):k.a.$on("search-slideout-close",(function(t){e.resetToCurrent()})),this.resetToCurrent(),k.a.$on("search-filter-reset-all",(function(t){e.reset()}))}},F=Object(T.a)(M,(function(){var e=this,t=e._self._c;return t("div",{class:e.wrapperClass},[e.isStandaloneView?t("button",{staticClass:"button filter",attrs:{type:"button","data-toggle":"property-price"}},[e._v("\n        "+e._s(e.$t("søgeside:filter:pris"))),t("span",{directives:[{name:"show",rawName:"v-show",value:e.activeFiltersCount>0,expression:"activeFiltersCount > 0"}],staticClass:"badge"}
1,[e._v(e._s(e.activeFiltersCount))])]):e._e(),e._v(" "),e.isStandaloneView?t("div",{staticClass:"dropdown-pane bottom",attrs:{id:"property-price","data-dropdown":"","data-closable":"","data-close-on-click":"true"}},[t("button",{staticClass:"close-button",attrs:{title:e.$t("knap:luk"),type:"button","data-close":""},on:{click:e.resetToCurrent}},[t("span",{attrs:{"aria-hidden":"true"}},[t("svg",{staticClass:"icon close-icon"},[t("use",{attrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink","xlink:href":"/dist/svg/sprite.svg#icon-close"}})])]),e._v(" "),t("span",{staticClass:"close-text"},[e._v(e._s(e.$t("knap:luk")))])]),e._v(" "),t("h5",[e._v(e._s(e.$t("søgeside:filter:husleje")))]),e._v(" "),t("div",[t("div",{staticClass:"rent-slider"},[t("span",{staticClass:"min-value value-limit",on:{click:e.setMinValue}},[e._v(e._s(e.setComma()[0]))]),e._v(" "),t("span",{staticClass:"max-value value-limit",on:{click:e.setMaxValue}},[e._v(e._s(e.setComma()[1]))]),e._v(" "),t("VueSlider",{directives:[{name:"show",rawName:"v-show",value:e.isVisible,expression:"isVisible"}],ref:"rentSlider",attrs:{"aria-labelledby":"price-slider","aria-label":"price-slider",title:"rent-slider",startval:e.rentMinValue,endval:e.rentMaxValue,dirty:e.rentIsDirty,start:e.rentStart,end:e.rentEnd,"min-range":0,"max-range":1e4,minRange:1500,max:1e4,width:320,step:100,initialStart:e.rentStart,initialEnd:e.rentEnd,"slider-id":"rent-slider-slideout",id:"price-slider"},on:{"update:startval":function(t){e.rentMinValue=t},"update:endval":function(t){e.rentMaxValue=t},"update:dirty":function(t){e.rentIsDirty=t}}})],1)]),e._v(" "),t("div",{staticClass:"filter-buttons"},[t("button",{staticClass:"reset-button",attrs:{id:"reset-rent-values",title:e.$t("søgeside:filter:knap:nulstil"),type:"button"},on:{click:e.reset}},[e._v(e._s(e.$t("søgeside:filter:knap:nulstil")))]),e._v(" "),t("button",{staticClass:"button lightblue filter-show-results",attrs:{"data-toggle":"property-price",title:e.$t("søgeside:filter:knap:vis-resultater"),type:"button"},on:{click:e.updateSearch}},[e._v(e._s(e.$t("søgeside:filter:knap:vis-resultater")))])])]):e._e(),e._v(" "),e.isStandaloneView?e._e():t("div",{staticClass:"cell large-12 small-12"},[t("h5",[e._v(e._s(e.$t("søgeside:filter:husleje")))]),e._v(" "),t("div",{staticClass:"mini-slider-view"},[t("span",{staticClass:"min-value value-limit",on:{click:e.setMinValue}},[e._v(e._s(e.setComma()[0]))]),e._v(" "),t("span",{staticClass:"max-value value-limit",on:{click:e.setMaxValue}},[e._v(e._s(e.setComma()[1]))]),e._v(" "),t("VueSlider",{ref:"rentSlider",attrs:{startval:e.rentMinValue,endval:e.rentMaxValue,dirty:e.rentIsDirty,step:100,start:e.rentStart,end:e.rentEnd,initialStart:e.rentStart,initialEnd:e.rentEnd,"slider-id":"rent-slider-slideout__mini-view","aria-labelledby":"price-slider__mini-view",id:"price-slider__mini-view"},on:{"update:startval":function(t){e.rentMinValue=t},"update:endval":function(t){e.rentMaxValue=t},"update:dirty":function(t){e.rentIsDirty=t}}})],1)])])}),[],!1,null,null,null).exports,R=i(53),z=i.n(R),V={data:function(){return{value:"",currentValue:null,combobo:{},selectedOptionsLocal:[]}},props:{id:{type:String},options:{type:Array,default:function(){return[]}},titleProperty:{type:String,default:"title"},keyProperty:{type:String},placeholder:{type:String},defaultSelection:{type:Object,default:null},noSelectionValue:{type:Object,default:null},selectedOptions:{type:Array,default:function(){return[]}},t:{type:Function}},methods:{remove:function(e){var t=this,i=t.options.findIndex((function(i){return e===i[t.keyProperty]}));t.combobo.goTo(i).select(),t.combobo.selected.length||t.combobo.reset()},isDefault:function(e){var t=this;return!!this.defaultSelection&&t.options.map((function(e){return e[t.keyProperty]})).indexOf(this.defaultSelection[t.keyProperty])===e},reset:function(){this.combobo.reset()},updateValue:function(){var e=this,t=this.combobo.selected.map((function(t){return e.options[t.dataset.index]}));e.$emit("update:selectedOptions",t)},noSearchFilter:function(e,t){return t.filter((function(e){return!0}))},clearInput:function(){this.$refs.input&&(this.$refs.input.value="")},initCombobo:function(){var e=this,t=this;this.combobo=new z.a({input:"#"+this.id+"-input",allowEmpty:!0,list:".listbox."+this.id,activeClass:"active",noResultsText:"Ingen resultater fundet.",multiselect:!0,selectionValue:function(t){return e.placeholder},filter:"contains"});this.combobo.on("selection",(function(e){t.updateValue()})).on("deselection",(function(e){t.updateValue()}))}},mounted:function(){var e=this;this.initCombobo(),this.$nextTick().then((function(){e.selectedOptions.map((function(t){var i=e.options.findIndex((function(i){return t[e.keyProperty]===i[e.keyProperty]}));e.combobo.goTo(i).select()}
1)),e.updateValue()})),this.$refs.input.addEventListener("click",this.clearInput)},beforeDestroy:function(){this.$refs.input&&this.$refs.input.removeEventListener("click",this.clearInput)}},D=Object(T.a)(V,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"combo-wrap combobo-multi"},[t("div",e._l(e.selectedOptions,(function(i,n){return t("span",{key:n,staticClass:"combobo-tag"},[t("span",[e._v(e._s(i[e.titleProperty]))]),e._v(" "),t("button",{staticClass:"combobo-close-icon",attrs:{"data-id":i[e.keyProperty]},on:{click:function(t){return e.remove(i[e.keyProperty])}}})])})),0),e._v(" "),t("input",{ref:"input",staticClass:"combobox",attrs:{"aria-label":"Vælg her",type:"text",id:e.id+"-input",autocomplete:"NoAutocomplete",placeholder:e.placeholder}}),e._v(" "),t("div",{staticClass:"listbox",class:e.id},[e.noSelectionValue?t("div",{staticClass:"option",attrs:{"data-noselection":"true"}},[e._v("\n      "+e._s(e.noSelectionValue[e.titleProperty])+"\n    ")]):e._e(),e._v(" "),e._l(e.options,(function(i,n){return t("div",{key:n,staticClass:"option",class:e.isDefault(n)?"active selected":"",attrs:{"data-index":n,"data-id":i[e.keyProperty],"aria-selected":e.isDefault(n)}},[e._v("\n      "+e._s(i[e.titleProperty])+"\n    ")])}))],2)])}),[],!1,null,null,null).exports,N=i(79);function B(e){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function U(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function q(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?U(Object(i),!0).forEach((function(t){H(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):U(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function H(e,t,i){return(t=function(e){var t=function(e,t){if("object"!==B(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==B(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===B(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var K={mixins:[C,$],components:{MultiSelect:D},data:function(){return{loading:!0,kommunerLoaded:!1,zipCodesLoaded:!1,kommunerResetToCurrent:!1,zipCodeIsDeselectingKommune:!1,kommuneIsDeselecting:!1,kommunerReset:!1,zipCodeReset:!1,placeholderKommune:this.$t("søgeside:filter:beliggenhed:vælg-kommune"),placeholderPostnummer:this.$t("søgeside:filter:beliggenhed:vælg-postnummer")}},computed:q(q({},Object(N.c)(["kommuner","zipCodes","selectedKommuner","selectedZipCodes"])),{},{activeFilters:function(){return this.$store.getters.filtersCount.beliggenhed},searchCriteria:function(){return this.$store.getters.searchCriteria},tempSearchCriteria:function(){return this.$store.getters.tempSearchCriteria},zipCodeValues:{get:function(){return this.selectedZipCodes},set:function(e){var t=this;if(s()(".zipcodeSelect").find('div[style="display: none;"]').length!==t.zipCodes.length){if(t.zipCodeIsDeselectingKommune=!1,e.length<t.selectedZipCodes.length&&!t.zipCodeReset){var i=t.$refs.zipCodeRef.combobo.currentOption.getAttribute("data-id");t.updateKommunerByDeselectedZipCode(i)}t.$refs.zipCodeRef.combobo.currentOption=null,t.zipCodeReset=!1,this.setSelectedZipCodes(e),this.setSearchCriteriaZipCodes(e),this.setFilterCount(e)}}},kommuneValues:{get:function(){return this.selectedKommuner},set:function(e){var t=this;if(s()(".kommuneSelect").find('div[style="display: none;"]').length!==t.kommuner.length){if(t.kommuneIsDeselecting=!1,(0!==e.length||0!==t.selectedKommuner.length&&!t.kommunerReset)&&!t.zipCodeIsDeselectingKommune){var i=null;if(e.length<t.selectedKommuner.length&&t.selectedKommuner.length>0)t.kommuneIsDeselecting=!0,i=t.$refs.kommuneRef.combobo.currentOption.getAttribute("data-id"),i=Number(i);else{var n=t.selectedKommuner.map((function(e){return e.id}));i=e.map((function(e){return e.id})).filter((function(e){return!n.includes(e)}))[0]}}t.kommunerReset=!1,this.setSelectedKommuner(e);var r=Object.assign({},this.tempSearchCriteria);r.kommuner=this.selectedKommuner.map((function(e){return e.id})),this.$store.dispatch("setTempSearchCriteria",r)}}}}),methods:q(q({},Object(N.b)(["getAllZipcodes","getAllKommuner","setSelectedKommuner","setSelectedZipCodes","addZipCodeToSelection"])),{},{selectZipCodesByKommune:function(e,t){if(0!==e.length){var i=this;e.map((function(e){var n=i.zipCodes.findIndex((function(t){return e.id===t.id})),r=i.selectedZipCodes.find((function(t){return t.id==e.id}));void 0===r?-1===n||(i.zipCodes[n].selectedByKommune=t,i.$refs.zipCodeRef.combobo.goTo(n).select()):void 0!==r.selectedByKommune?r.selectedByKommune=t:i.zipCodes[n].selectedByKommune=t})),i.$refs.zipCodeRef.updateValue()}},updateKommunerByDeselectedZipCode:function(e){var t=this;if(!t.kommuneIsDeselecting){var i=t.selectedZipCodes.find((function(t){return t.id==e})),n=i.selectedByKommune;if("number"==typeof n){if(t.zipCodeIsDeselectingKommune=!0,delete i.selectedByKommune,-1!=t.selectedKommuner.findIndex((function(e){return e.id===n}))){var r=t.kommuner.findIndex((function(e){return e.id===n}));t.$refs.kommuneRef.combobo.goTo(r).select(),t.$refs.kommuneRef.updateValue()}t.zipCodeIsDeselectingKommune=!1}}},selectKommuner:function(e){var t=this;e.map((function(e){var i=t.kommuner.findIndex((function(t){return e.id===t.id}));t.$refs.kommuneRef.combobo.goTo(i).select()}
1))},selectZipCodes:function(e){var t=this;e.map((function(e){var i=t.zipCodes.findIndex((function(t){return e.id===t.id}));t.$refs.zipCodeRef.combobo.goTo(i).select()}))},updateZipCodesWithKommuneId:function(e,t){var i=this;e.map((function(e){var n=i.zipCodes.findIndex((function(t){return e.id===t.id}));i.zipCodes[n].selectedByKommune=t}))},setSearchCriteriaZipCodes:function(e){var t=Object.assign({},this.tempSearchCriteria),i=[],n=[];e.forEach((function(e){if(null!=e.zipCode)return i=i.concat(e.zipCode),!0;null!=e.zipCodeFrom&&null!=e.zipCodeTo&&(n=n.concat(e.zipCodeFrom+"-"+e.zipCodeTo))})),t.zipCodeRanges=n,t.zipCodes=i,this.$store.dispatch("setTempSearchCriteria",t)},setFilterCount:function(e){var t=e.length;this.$emit("filter-count",t),this.setActiveMobileSlideoutFiltersCount("beliggenhed",t)},reset:function(){var e=this;e.zipCodeReset=!0,e.kommunerReset=!0,e.zipCodeValues=[],e.kommuneValues=[],e.$refs.zipCodeRef.combobo.reset(),e.$refs.kommuneRef.combobo.reset()},resetToCurrent:function(){var e=this,t=this.zipCodes.filter((function(t){return e.searchCriteria.zipCodes.find((function(e){return e==t.id}))})),i=this.zipCodes.filter((function(t){return e.searchCriteria.zipCodeRanges.includes(t.id)})),n=t.concat(i),r=this.kommuner.filter((function(t){return e.searchCriteria.kommuner.find((function(e){return e==t.id}))}));0===n.length&&0===r.length?e.reset():(0===e.selectedZipCodes.length&&n.length>0&&e.selectZipCodes(n),0===e.selectedKommuner.length&&r.length>0&&(e.kommunerResetToCurrent=!0,e.selectKommuner(r)))}}),mounted:function(){var e=this;this.getAllKommuner().then((function(t){e.kommunerLoaded=!0})),this.getAllZipcodes().then((function(t){e.zipCodesLoaded=!0})),e.loading=!1,e.isStandaloneView?(s()(e.$el).on("hide.zf.dropdown",(function(t){e.resetToCurrent()})),s()(e.$el).on("show.zf.dropdown",(function(t){setTimeout((function(){e.trapFocus(s()(t.target))}),300)}))):(k.a.$on("search-slideout-close",(function(t){e.resetToCurrent()})),k.a.$on("search-filter-reset-all",(function(t){e.reset()})))}},Y=Object(T.a)(K,(function(){var e=this,t=e._self._c;return t("div",{class:e.wrapperClass},[e.isStandaloneView?t("button",{staticClass:"button filter",attrs:{type:"button","data-toggle":"property-location"}},[e._v("\n    "+e._s(e.$t("søgeside:filter:beliggenhed"))+"\n    "),t("span",{directives:[{name:"show",rawName:"v-show",value:e.activeFilters>0,expression:"activeFilters > 0"}],staticClass:"badge"},[e._v(e._s(e.activeFilters))])]):e._e(),e._v(" "),e.isStandaloneView?t("div",{staticClass:"dropdown-pane bottom",attrs:{id:"property-location","data-dropdown":"","data-closable":"","data-close-on-click":"true"}},[t("button",{staticClass:"close-button",attrs:{title:e.$t("knap:luk"),type:"button","data-close":""},on:{click:e.resetToCurrent}},[t("span",{attrs:{"aria-hidden":"true"}},[t("svg",{staticClass:"icon close-icon"},[t("use",{attrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink","xlink:href":"/dist/svg/sprite.svg#icon-close"}})])]),e._v(" "),t("span",{staticClass:"close-text"},[e._v(e._s(e.$t("knap:luk")))])]),e._v(" "),t("h5",[e._v(e._s(e.$t("søgeside:filter:beliggenhed")))]),e._v(" "),t("h6",[e._v("\n      "+e._s(e.$t("søgeside:filter:beliggenhed:info"))+"\n    ")]),e._v(" "),t("label",{attrs:{for:"kommuneSelect-input"}},[e._v(e._s(e.$t("søgeside:filter:beliggenhed:kommune")))]),e._v(" "),!e.loading&&e.kommunerLoaded?t("multi-select",{ref:"kommuneRef",attrs:{t:e.$t,options:e.kommuner,selectedOptions:e.kommuneValues,titleProperty:"name",keyProperty:"id",placeholder:e.placeholderKommune,id:"kommuneSelect"},on:{"update:options":function(t){e.kommuner=t},"update:selectedOptions":function(t){e.kommuneValues=t},"update:selected-options":function(t){e.kommuneValues=t}}}):e._e(),e._v(" "),t("label",{attrs:{for:"zipcodeSelect-input"}},[e._v(e._s(e.$t("søgeside:filter:beliggenhed:postnummer")))]),e._v(" "),!e.loading&&e.zipCodesLoaded?t("multi-select",{ref:"zipCodeRef",attrs:{t:e.$t,options:e.zipCodes,selectedOptions:e.zipCodeValues,titleProperty:"name",keyProperty:"id",placeholder:e.placeholderPostnummer,id:"zipcodeSelect"},on:{"update:options":function(t){e.zipCodes=t},"update:selectedOptions":function(t){e.zipCodeValues=t},"update:selected-options":function(t){e.zipCodeValues=t}}}
1):e._e(),e._v(" "),t("div",{staticClass:"filter-buttons"},[t("button",{staticClass:"reset-button",attrs:{id:"reset-location-values",title:e.$t("søgeside:filter:knap:nulstil"),type:"button"},on:{click:e.reset}},[e._v("\n        "+e._s(e.$t("søgeside:filter:knap:nulstil"))+"\n      ")]),e._v(" "),t("button",{staticClass:"button lightblue filter-show-results",attrs:{"data-toggle":"property-location",title:e.$t("søgeside:filter:knap:vis-resultater"),type:"button"},on:{click:e.updateSearch}},[e._v("\n        "+e._s(e.$t("søgeside:filter:knap:vis-resultater"))+"\n      ")])])],1):e._e(),e._v(" "),e.isStandaloneView?e._e():t("div",{staticClass:"cell large-12 small-12"},[t("h5",[e._v(e._s(e.$t("søgeside:filter:beliggenhed")))]),e._v(" "),t("h6",[e._v("\n        "+e._s(e.$t("søgeside:filter:beliggenhed:info"))+"\n    ")]),e._v(" "),t("label",{attrs:{for:"kommuneSelectSmall-input"}},[e._v(e._s(e.$t("søgeside:filter:beliggenhed:kommune")))]),e._v(" "),!e.loading&&e.kommunerLoaded?t("multi-select",{ref:"kommuneRef",attrs:{t:e.$t,options:e.kommuner,selectedOptions:e.kommuneValues,titleProperty:"name",keyProperty:"id",placeholder:e.placeholderKommune,id:"kommuneSelectSmall"},on:{"update:options":function(t){e.kommuner=t},"update:selectedOptions":function(t){e.kommuneValues=t},"update:selected-options":function(t){e.kommuneValues=t}}}):e._e(),e._v(" "),t("label",{attrs:{for:"zipcodeSelectSmall-input"}},[e._v(e._s(e.$t("søgeside:filter:beliggenhed:postnummer")))]),e._v(" "),!e.loading&&e.zipCodesLoaded?t("multi-select",{ref:"zipCodeRef",attrs:{t:e.$t,options:e.zipCodes,selectedOptions:e.zipCodeValues,titleProperty:"name",keyProperty:"id",placeholder:e.placeholderPostnummer,id:"zipcodeSelectSmall"},on:{"update:options":function(t){e.zipCodes=t},"update:selectedOptions":function(t){e.zipCodeValues=t},"update:selected-options":function(t){e.zipCodeValues=t}}}):e._e()],1)])}),[],!1,null,null,null).exports,G={mixins:[C,$],data:function(){return{}},computed:{fleksUrl:function(){var e=this.$store.getters.searchPageContent;return e&&e.fleksibelUdlejningUrl?"/"+this.$i18n.locale+"/"+this.$store.getters.searchPageContent.fleksibelUdlejningUrl:"#"},searchResult:function(){return this.$store.getters.searchResult},searchCriteria:function(){return this.$store.getters.searchCriteria},tempSearchCriteria:function(){return this.$store.getters.tempSearchCriteria},availabilityFacets:function(){return this.searchResult.facetGroups.length>0?this.searchResult.facetGroups[3].facets:[]},jumpTheQueueFacets:function(){return this.searchResult.facetGroups.length>0?this.searchResult.facetGroups[7].facets:[]},selectedAvailabilityFacets:{get:function(){return this.tempSearchCriteria.facets},set:function(e){var t=Object.assign({},this.tempSearchCriteria),i=this.availabilityFacets.map((function(e){return e.value}));t.facets=this.getDiffedFacetValue(e,this.tempSearchCriteria.facets,i);var n=this.getFacetsInUse(i).length;this.$emit("filter-count",n),this.setActiveMobileSlideoutFiltersCount("availFacets",n),this.$store.dispatch("setTempSearchCriteria",t)}},selectedJumpTheQueueFacets:{get:function(){return this.tempSearchCriteria.facets},set:function(e){var t=Object.assign({},this.tempSearchCriteria),i=this.jumpTheQueueFacets.map((function(e){return e.value}));t.facets=this.getDiffedFacetValue(e,this.tempSearchCriteria.facets,i);var n=this.getFacetsInUse(i).length;this.$emit("filter-count",n),this.setActiveMobileSlideoutFiltersCount("jumpFacets",n),this.$store.dispatch("setTempSearchCriteria",t)}},activeFilters:function(){return this.$store.getters.filtersCount.ledighed}},methods:{resetToCurrent:function(){var e=this,t=this.availabilityFacets.map((function(e){return e.value})),i=this.jumpTheQueueFacets.map((function(e){return e.value})),n=[t,this.searchCriteria.facets];this.selectedAvailabilityFacets=n.reduce((function(e,t){return e.filter((function(e){return t.includes(e)}))})),this.$nextTick((function(){var t=[i,e.searchCriteria.facets];e.selectedJumpTheQueueFacets=t.reduce((function(e,t){return e.filter((function(e){return t.includes(e)}))}))}))},reset:function(){var e=this.availabilityFacets.map((function(e){return e.value})),t=this.jumpTheQueueFacets.map((function(e){return e.value})),i=[this.tempSearchCriteria.facets,e];this.selectedAvailabilityFacets=i.reduce((function(e,t){return e.filter((function(e){return!t.includes(e)}))}));var n=[this.tempSearchCriteria.facets,t];this.selectedJumpTheQueueFacets=n.reduce((function(e,t){return e.filter((function(e){return!t.includes(e)}))}))}},mounted:function(){var e=this;e.isStandaloneView?(s()(e.$el).on("hide.zf.dropdown",(function(t){e.resetToCurrent()})),s()(e.$el).on("show.zf.dropdown",(function(t){setTimeout((function(){e.trapFocus(s()(t.target))}),300)}))):(k.a.$on("search-slideout-close",(function(t){e.resetToCurrent()})),k.a.$on("search-filter-reset-all",(function(t){e.reset()})))}},J=Object(T.a)(G,(function(){var e=this,t=e._self._c;return t("div",{class:e.wrapperClass},[e.isStandaloneView?t("button",{staticClass:"button filter",attrs:{type:"button","data-toggle":"property-availability"}},[e._v("\n    "+e._s(e.$t("søgeside:filter:ledighed"))),t("span",{directives:[{name:"show",rawName:"v-show",value:e.activeFilters>0,expression:"activeFilters > 0"}],staticClass:"badge"}
1,[e._v(e._s(e.activeFilters))])]):e._e(),e._v(" "),e.isStandaloneView?t("div",{staticClass:"dropdown-pane bottom",attrs:{id:"property-availability","data-dropdown":"","data-closable":"","data-close-on-click":"true"}},[t("button",{staticClass:"close-button",attrs:{title:e.$t("knap:luk"),type:"button","data-close":""},on:{click:e.resetToCurrent}},[t("span",{attrs:{"aria-hidden":"true"}},[t("svg",{staticClass:"icon close-icon"},[t("use",{attrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink","xlink:href":"/dist/svg/sprite.svg#icon-close"}})])]),e._v(" "),t("span",{staticClass:"close-text"},[e._v(e._s(e.$t("knap:luk")))])]),e._v(" "),t("h5",[e._v(e._s(e.$t("søgeside:filter:ledighed")))]),e._v(" "),t("div",{staticClass:"filter-checkbox-container content-after"},e._l(e.availabilityFacets,(function(i,n){return t("fieldset",{key:n,staticClass:"large-12 cell checkbox-fieldset"},[t("legend",{attrs:{id:"checkbox-type-"+i.label+"-legend"}},[e._v("\n              "+e._s(i.translatedLabel)+"\n            ")]),e._v(" "),t("label",{attrs:{for:"checkbox-type-"+i.label}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedAvailabilityFacets,expression:"selectedAvailabilityFacets"}],attrs:{id:"checkbox-type-"+i.label,type:"checkbox","aria-label":i.translatedLabel},domProps:{value:i.value,checked:Array.isArray(e.selectedAvailabilityFacets)?e._i(e.selectedAvailabilityFacets,i.value)>-1:e.selectedAvailabilityFacets},on:{change:function(t){var n=e.selectedAvailabilityFacets,r=t.target,s=!!r.checked;if(Array.isArray(n)){var a=i.value,o=e._i(n,a);r.checked?o<0&&(e.selectedAvailabilityFacets=n.concat([a])):o>-1&&(e.selectedAvailabilityFacets=n.slice(0,o).concat(n.slice(o+1)))}else e.selectedAvailabilityFacets=s}}}),e._v(" "),t("span",{staticClass:"checkmark"}),e._v("\n                "+e._s(i.translatedLabel)+"\n            ")])])})),0),e._v(" "),t("span",{staticClass:"divider"}),e._v(" "),t("h5",[e._v(e._s(e.$t("søgeside:filter:kom-foran-i-køen")))]),e._v(" "),t("p",[e._v(e._s(e.$t("søgeside:filter:kom-foran-i-køen:tekst")))]),e._v(" "),t("div",{staticClass:"filter-checkbox-container"},e._l(e.jumpTheQueueFacets,(function(i,n){return t("fieldset",{key:n,staticClass:"large-12 cell checkbox-fieldset"},[t("legend",{attrs:{id:"checkbox-type-"+i.label+"-legend"}},[e._v("\n              "+e._s(i.translatedLabel)+"\n            ")]),e._v(" "),t("label",{attrs:{for:"checkbox-type-"+i.label}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedJumpTheQueueFacets,expression:"selectedJumpTheQueueFacets"}],attrs:{id:"checkbox-type-"+i.label,type:"checkbox","aria-label":i.translatedLabel},domProps:{value:i.value,checked:Array.isArray(e.selectedJumpTheQueueFacets)?e._i(e.selectedJumpTheQueueFacets,i.value)>-1:e.selectedJumpTheQueueFacets},on:{change:function(t){var n=e.selectedJumpTheQueueFacets,r=t.target,s=!!r.checked;if(Array.isArray(n)){var a=i.value,o=e._i(n,a);r.checked?o<0&&(e.selectedJumpTheQueueFacets=n.concat([a])):o>-1&&(e.selectedJumpTheQueueFacets=n.slice(0,o).concat(n.slice(o+1)))}else e.selectedJumpTheQueueFacets=s}}}),e._v(" "),t("span",{staticClass:"checkmark"}),e._v("\n                "+e._s(i.translatedLabel)+"\n            ")])])})),0),e._v(" "),t("a",{staticClass:"form-link",attrs:{href:e.fleksUrl,title:e.$t("søgeside:filter:kom-foran-i-køen:link"),target:"_blank"}},[t("svg",{staticClass:"icon icon--pink link-pointer-icon"},[t("use",{attrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink","xlink:href":"/dist/svg/sprite.svg#icon-menu-pointer"}})]),e._v("\n      "+e._s(e.$t("søgeside:filter:kom-foran-i-køen:link"))+"\n    ")]),e._v(" "),t("div",{staticClass:"filter-buttons"},[t("button",{staticClass:"reset-button",attrs:{title:e.$t("søgeside:filter:knap:nulstil"),type:"button"},on:{click:e.reset}},[e._v("\n        "+e._s(e.$t("søgeside:filter:knap:nulstil"))+"\n      ")]),e._v(" "),t("button",{staticClass:"button lightblue filter-show-results",attrs:{title:e.$t("søgeside:filter:knap:vis-resultater"),type:"button","data-toggle":"property-availability"},on:{click:e.updateSearch}},[e._v("\n        "+e._s(e.$t("søgeside:filter:knap:vis-resultater"))+"\n      ")])])]):e._e(
1),e._v(" "),e.isStandaloneView?e._e():t("div",{staticClass:"cell large-12 small-12"},[t("h5",[e._v(e._s(e.$t("søgeside:filter:ledighed")))]),e._v(" "),t("div",{staticClass:"filter-checkbox-container content-after grid-x"},e._l(e.availabilityFacets,(function(i,n){return t("fieldset",{key:n,staticClass:"large-6 medium-12 small-12 cell checkbox-fieldset"},[t("legend",{attrs:{id:"checkbox-type-"+i.label+"-slideout-legend"}},[e._v("\n              "+e._s(i.translatedLabel)+"\n            ")]),e._v(" "),t("label",{attrs:{for:"checkbox-type-"+i.label+"-slideout"}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedAvailabilityFacets,expression:"selectedAvailabilityFacets"}],attrs:{id:"checkbox-type-"+i.label+"-slideout",type:"checkbox","aria-label":i.translatedLabel},domProps:{value:i.value,checked:Array.isArray(e.selectedAvailabilityFacets)?e._i(e.selectedAvailabilityFacets,i.value)>-1:e.selectedAvailabilityFacets},on:{change:function(t){var n=e.selectedAvailabilityFacets,r=t.target,s=!!r.checked;if(Array.isArray(n)){var a=i.value,o=e._i(n,a);r.checked?o<0&&(e.selectedAvailabilityFacets=n.concat([a])):o>-1&&(e.selectedAvailabilityFacets=n.slice(0,o).concat(n.slice(o+1)))}else e.selectedAvailabilityFacets=s}}}),e._v(" "),t("span",{staticClass:"checkmark"}),e._v("\n                "+e._s(i.translatedLabel)+"\n            ")])])})),0)]),e._v(" "),e.isStandaloneView?e._e():t("div",{staticClass:"cell large-12 small-12"},[t("h5",[e._v(e._s(e.$t("søgeside:filter:kom-foran-i-køen")))]),e._v(" "),t("p",[e._v(e._s(e.$t("søgeside:filter:kom-foran-i-køen:tekst")))]),e._v(" "),t("div",{staticClass:"filter-checkbox-container content-after grid-x"},e._l(e.jumpTheQueueFacets,(function(i,n){return t("fieldset",{key:n,staticClass:"large-6 medium-12 small-12 cell checkbox-fieldset"},[t("legend",{attrs:{id:"checkbox-type-"+i.label+"-slideout-legend"}},[e._v("\n              "+e._s(i.translatedLabel)+"\n            ")]),e._v(" "),t("label",{attrs:{for:"checkbox-type-"+i.label+"-slideout"}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedJumpTheQueueFacets,expression:"selectedJumpTheQueueFacets"}],attrs:{id:"checkbox-type-"+i.label+"-slideout",type:"checkbox","aria-label":i.translatedLabel},domProps:{value:i.value,checked:Array.isArray(e.selectedJumpTheQueueFacets)?e._i(e.selectedJumpTheQueueFacets,i.value)>-1:e.selectedJumpTheQueueFacets},on:{change:function(t){var n=e.selectedJumpTheQueueFacets,r=t.target,s=!!r.checked;if(Array.isArray(n)){var a=i.value,o=e._i(n,a);r.checked?o<0&&(e.selectedJumpTheQueueFacets=n.concat([a])):o>-1&&(e.selectedJumpTheQueueFacets=n.slice(0,o).concat(n.slice(o+1)))}else e.selectedJumpTheQueueFacets=s}}}),e._v(" "),t("span",{staticClass:"checkmark"}),e._v("\n                "+e._s(i.translatedLabel)+"\n            ")])])})),0),e._v(" "),t("a",{staticClass:"form-link",attrs:{href:e.fleksUrl,"aria-label":e.$t("søgeside:filter:kom-foran-i-køen:link"),target:"_self"}},[t("svg",{staticClass:"icon icon--pink link-pointer-icon"},[t("use",{attrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink","xlink:href":"/dist/svg/sprite.svg#icon-menu-pointer"}})]),e._v("\n      "+e._s(e.$t("søgeside:filter:kom-foran-i-køen:link"))+"\n    ")])])])}),[],!1,null,null,null).exports,Q=i(40),Z=i(3),W={mixins:[C,$],components:{SingleSelect:Q.a},data:function(){return{isAuthed:!1,authChecked:!1,showHandicapProfiles:!1,noHandicapProfileSelection:{id:null,name:this.$t("søgeside:filter:intet-valg")}}},computed:{searchResult:function(){return this.$store.getters.searchResult},searchCriteria:function(){return this.$store.getters.searchCriteria},tempSearchCriteria:function(){return this.$store.getters.tempSearchCriteria},initialResultsLoaded:function(){return this.$store.getters.initialResultsLoaded},handicapFacets:function(){return this.searchResult.facetGroups.length>0?this.searchResult.facetGroups[5].facets:[]},handicapProfiles:function(){return this.searchResult.tilgaengelighedsprofiler&&this.searchResult.tilgaengelighedsprofiler.length>0?this.searchResult.tilgaengelighedsprofiler:[]},selectedHandicapProfile:{get:function(){var e=this,t=this.handicapProfiles.filter((function(t){return t.id==e.tempSearchCriteria.selectedHandicapProfile}));return t.length>0?t[0]:this.noHandicapProfileSelection},set:function(e){var t=Object.assign({},this.tempSearchCriteria),i=this.handicapFacets.map((function(e){return e.value})),n=this.getFacetsInUse(i).length;e&&null!=e&&null!=e.id?(t.selectedHandicapProfile=e.id,n+=1):t.selectedHandicapProfile=null,this.$emit("filter-count",n),this.setActiveMobileSlideoutFiltersCount("handicapFacets",n),this.$store.dispatch("setTempSearchCriteria",t)}},selectedHandicapFacets:{get:function(){return this.tempSearchCriteria.facets},set:function(e){var t=Object.assign({},this.tempSearchCriteria),i=this.handicapFacets.map((function(e){return e.value}));t.facets=this.getDiffedFacetValue(e,this.tempSearchCriteria.facets,i);var n=this.getFacetsInUse(i).length;null!=this.selectedHandicapProfile.id&&(n+=1),this.$emit("filter-count",n),this.setActiveMobileSlideoutFiltersCount("handicapFacets",n),this.$store.dispatch("setTempSearchCriteria",t)}},activeFilters:function(){return this.$store.getters.filtersCount.handicapvenlighed}},methods:{isLoggedIn:function(){var e=this;return!0===e.authChecked?new Promise((function(t,i){t(e.isAuthed)})):new Promise((function(t,i){Z.a.post("/api/user/is-logged-in").then((function(i){e.isAuthed=i.data,e.authChecked=!0,t(i.data)})).catch((function(e){alert("Der skete en fejl, prøv igen.")}))}))},resetToCurrent:function(){var e=this,t=[this.handicapFacets.map((function(e){return e.value})),this.searchCriteria.facets];this.selectedHandicapFacets=t.reduce((function(e,t){return e.filter((function(e){return t.includes(e)}))}));var i=this.handicapProfiles.filter((function(t){return t.id==e.searchCriteria.selectedHandicapProfile}));this.selectedHandicapProfile=i[0],this.isLoggedIn().then((function(t){!0===t&&e.$refs.handicapProfile.updateValue(i[0])}))},reset:function(){var e=this.handicapFacets.map((function(e){return e.value})),t=[this.tempSearchCriteria.facets,e];this.selectedHandicapFacets=t.reduce((function(e,t){return e.filter((function(e){return!t.includes(e)}))})),this.selectedHandicapProfile=null}},mounted:function(){var e=this,t=this;k.a.$on("initial-results-loaded",(function(){t.isLoggedIn().then((function(e){!0===e&&t.$nextTick().then((function(){t.showHandicapProfiles=!0,t.$nextTick().then((function(){t.resetToCurrent()}))}))}))})),k.a.$on("search-slideout-close",(function(e){t.resetToCurrent()})),k.a.$on("search-filter-reset",(function(i){t.isLoggedIn().then((function(i){!0===i&&t.$refs.handicapProfile.updateValue({id:null,name:e.$t("søgeside:filter:intet-valg")})}))})),k.a.$on("search-filter-reset-all",(function(e){t.reset()})),t.isStandaloneView&&(s()(t.$el).on("hide.zf.dropdown",(function(e){t.resetToCurrent()})),s()(t.$el).on("show.zf.dropdown",(function(e){setTimeout((function(){t.trapFocus(s()(e.target))}),300)})))}},X=Object(T.a)(W,(function(){var e=this,t=e._self._c;return t("div",{class:e.wrapperClass},[e.isStandaloneView?t("button",{staticClass:"button filter",attrs:{type:"button","data-toggle":"property-accessibility"}},[e._v(e._s(e.$t("søgeside:filter:handicapvenlighed"))),t("span",{directives:[{name:"show",rawName:"v-show",value:e.activeFilters>0,expression:"activeFilters > 0"}],staticClass:"badge"}
1,[e._v(e._s(e.activeFilters))])]):e._e(),e._v(" "),e.isStandaloneView?t("div",{staticClass:"dropdown-pane bottom",attrs:{id:"property-accessibility","data-dropdown":"","data-closable":"","data-close-on-click":"true"}},[t("button",{staticClass:"close-button",attrs:{title:e.$t("knap:luk"),type:"button","data-close":""},on:{click:e.resetToCurrent}},[t("span",{attrs:{"aria-hidden":"true"}},[t("svg",{staticClass:"icon close-icon"},[t("use",{attrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink","xlink:href":"/dist/svg/sprite.svg#icon-close"}})])]),e._v(" "),t("span",{staticClass:"close-text"},[e._v(e._s(e.$t("knap:luk")))])]),e._v(" "),t("h5",[e._v(e._s(e.$t("søgeside:filter:handicapvenlighed:overskrift")))]),e._v(" "),t("p",{staticClass:"accessibility-lead-text"},[e._v(e._s(e.$t("søgeside:filter:handicapvenlighed:manchet")))]),e._v(" "),t("div",{staticClass:"filter-checkbox-container"},e._l(e.handicapFacets,(function(i,n){return t("fieldset",{key:n,staticClass:"large-12 cell checkbox-fieldset handicap-filter"},[t("legend",{attrs:{id:"label-type-"+i.label}},[e._v(e._s(i.translatedLabel))]),e._v(" "),t("label",{attrs:{for:"checkbox-type-"+i.label}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedHandicapFacets,expression:"selectedHandicapFacets"}],attrs:{id:"checkbox-type-"+i.label,type:"checkbox","aria-label":i.translatedLabel},domProps:{value:i.value,checked:Array.isArray(e.selectedHandicapFacets)?e._i(e.selectedHandicapFacets,i.value)>-1:e.selectedHandicapFacets},on:{change:function(t){var n=e.selectedHandicapFacets,r=t.target,s=!!r.checked;if(Array.isArray(n)){var a=i.value,o=e._i(n,a);r.checked?o<0&&(e.selectedHandicapFacets=n.concat([a])):o>-1&&(e.selectedHandicapFacets=n.slice(0,o).concat(n.slice(o+1)))}else e.selectedHandicapFacets=s}}}),e._v(" "),t("span",{staticClass:"checkmark"}),e._v("\n                    "+e._s(i.translatedLabel)+"\n                  "),t("svg",{class:"icon icon--white accesibility-icon handicap-icon-filters "+i.icon},[t("use",{attrs:{"xlink:href":"/dist/svg/sprite.svg#icon-"+i.icon,"xmlns:xlink":"http://www.w3.org/1999/xlink"}})])])])})),0),e._v(" "),e.showHandicapProfiles?t("div",[t("span",{staticClass:"divider"}),e._v(" "),t("h5",[e._v(e._s(e.$t("søgeside:filter:tilgængelighedsprofil")))]),e._v(" "),t("single-select",{ref:"handicapProfile",attrs:{t:e.$t,options:e.handicapProfiles,noSelectionValue:{id:null,name:e.$t("søgeside:filter:intet-valg")},titleProperty:"name",keyProperty:"id",value:e.selectedHandicapProfile,id:"handicapProfile"},on:{"update:value":function(t){e.selectedHandicapProfile=t}}})],1):e._e(),e._v(" "),t("div",{staticClass:"filter-buttons"},[t("button",{staticClass:"reset-button",attrs:{id:"reset-accessibility-values",title:e.$t("søgeside:filter:knap:nulstil"),type:"button"},on:{click:e.reset}},[e._v(e._s(e.$t("søgeside:filter:knap:nulstil")))]),e._v(" "),t("button",{staticClass:"button lightblue filter-show-results",attrs:{title:e.$t("søgeside:filter:knap:vis-resultater"),type:"button","data-toggle":"property-accessibility"},on:{click:e.updateSearch}},[e._v(e._s(e.$t("søgeside:filter:knap:vis-resultater")))])])]):e._e(),e._v(" "),e.isStandaloneView?e._e():t("div",{staticClass:"cell large-12 small-12"},[t("h5",[e._v(e._s(e.$t("søgeside:filter:handicapvenlighed:overskrift")))]),e._v(" "),t("p",{staticClass:"accessibility-lead-text"},[e._v(e._s(e.$t("søgeside:filter:handicapvenlighed:manchet")))]),e._v(" "),t("div",{staticClass:"filter-checkbox-container handicap-filter-wrapper"},e._l(e.handicapFacets,(function(i,n){return t("fieldset",{key:n,staticClass:"large-6 medium-12 small-12 cell checkbox-fieldset handicap-filter"},[t("legend",{attrs:{id:"label-type-"+i.label+"-slideout"}},[e._v(e._s(i.translatedLabel))]),e._v(" "),t("label",{attrs:{for:"checkbox-type-"+i.label+"-slideout"}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedHandicapFacets,expression:"selectedHandicapFacets"}],attrs:{id:"checkbox-type-"+i.label+"-slideout",type:"checkbox","aria-label":i.translatedLabel},domProps:{value:i.value,checked:Array.isArray(e.selectedHandicapFacets)?e._i(e.selectedHandicapFacets,i.value)>-1:e.selectedHandicapFacets},on:{change:function(t){var n=e.selectedHandicapFacets,r=t.target,s=!!r.checked;if(Array.isArray(n)){var a=i.value,o=e._i(n,a);r.checked?o<0&&(e.selectedHandicapFacets=n.concat([a])):o>
1-1&&(e.selectedHandicapFacets=n.slice(0,o).concat(n.slice(o+1)))}else e.selectedHandicapFacets=s}}}),e._v(" "),t("span",{staticClass:"checkmark"}),e._v("\n                    "+e._s(i.translatedLabel)+"\n                    "),t("svg",{class:"icon icon--white accesibility-icon handicap-icon-filters "+i.icon},[t("use",{attrs:{"xlink:href":"/dist/svg/sprite.svg#icon-"+i.icon,"xmlns:xlink":"http://www.w3.org/1999/xlink"}})])])])})),0),e._v(" "),e.showHandicapProfiles?t("div",[t("span",{staticClass:"divider"}),e._v(" "),t("h5",[e._v(e._s(e.$t("søgeside:filter:tilgængelighedsprofil")))]),e._v(" "),t("single-select",{ref:"handicapProfile",attrs:{t:e.$t,options:e.handicapProfiles,noSelectionValue:{id:null,name:e.$t("søgeside:filter:intet-valg")},titleProperty:"name",keyProperty:"id",value:e.selectedHandicapProfile,id:"handicapProfile-standalone"},on:{"update:value":function(t){e.selectedHandicapProfile=t}}})],1):e._e()])])}),[],!1,null,null,null).exports;function ee(e){return(ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function te(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,r,s,a,o=[],l=!0,c=!1;try{if(s=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=s.call(i)).done)&&(o.push(n.value),o.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=i.return&&(a=i.return(),Object(a)!==a))return}finally{if(c)throw r}}return o}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ie(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return ie(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ie(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function ne(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function re(e,t,i){return(t=function(e){var t=function(e,t){if("object"!==ee(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==ee(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ee(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var se={mixins:[C,$],components:{MultiSelect:D,SingleSelect:Q.a},data:function(){return{loading:!0,orgValue:[],orgShow:!0,placeholderMulti:this.$t("søgeside:filter:vælg-boligorganisation")}},computed:{opskrivsamUrl:function(){var e=this.$store.getters.searchPageContent;return e&&e.opskrivningssamarbejderUrl?"/"+this.$i18n.locale+"/"+this.$store.getters.searchPageContent.opskrivningssamarbejderUrl:"#"},searchCriteria:function(){return this.$store.getters.searchCriteria},tempSearchCriteria:function(){return this.$store.getters.tempSearchCriteria},organisationValue:{get:function(){var e=this;return this.organisationer.filter((function(t){return-1!==e.tempSearchCriteria.boligOrganisationIds.indexOf(t.id)}))},set:function(e){var t=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(i),!0).forEach((function(t){re(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ne(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({},this.tempSearchCriteria);if(t.boligOrganisationIds=[],e&&null!==e){var i=e.map((function(e){return e.id}));this.setActiveSlideoutFiltersCount("org",i.length),t.boligOrganisationIds=t.boligOrganisationIds.concat(i)}this.$store.dispatch("setTempSearchCriteria",t)}},regionValue:{get:function(){var e=this;return this.regioner.find((function(t){return t.nummer===e.tempSearchCriteria.selectedRegion}))},set:function(e){var t=this,i=this.tempSearchCriteria;i.selectedRegion=e&&null!==e&&null!==e.nummer?e.nummer:null,this.setActiveSlideoutFiltersCount("region",null!==i.selectedRegion?1:0),i.selectedRegion&&null!==i.selectedRegion&&(this.organisationValue=[],this.orgShow=!1),this.$store.dispatch("setTempSearchCriteria",i).then((function(){t.orgShow=!0}))}},searchPageContent:function(){return this.$store.getters.searchPageContent},organisationGroups:function(){return this.searchPageContent.boligOrganisationGroups},regioner:function(){return this.searchPageContent.regioner},organisationer:function(){if(this.regionValue&&null!==this.regionValue)return this.organisationGroups[this.regionValue.nummer];var e=[];
1return Object.entries(this.organisationGroups).forEach((function(t){var i=te(t,2),n=(i[0],i[1]);return e=e.concat(n)})),e}},methods:{resetToCurrent:function(){var e=this,t=this,i=this.regioner.find((function(e){return e.nummer===parseInt(t.searchCriteria.selectedRegion)}));this.regionValue=i,i&&this.$refs.region&&this.$refs.region.updateValue(i);var n=[];Object.entries(this.organisationGroups).forEach((function(e){var t=te(e,2),i=(t[0],t[1]);return n=n.concat(i)}));var r=n.filter((function(t){return e.searchCriteria.boligOrganisationIds.includes(t.id)}));this.organisationValue=r}},mounted:function(){var e=this,t=this;this.$store.dispatch("getSearchPageContent").then((function(e){t.$nextTick().then((function(){t.resetToCurrent(),t.$nextTick().then((function(){t.loading=!1,t.$nextTick().then((function(){t.resetToCurrent()}))}))}))})),k.a.$on("search-slideout-close",(function(e){t.resetToCurrent()})),k.a.$on("search-filter-reset",(function(i){t.organisationValue=[],t.regionValue=null,e.$refs.region.updateValue(t.regionValue),e.$refs.organisation.reset()}))}},ae=Object(T.a)(se,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"cell large-12 small-12"},[t("h5",[e._v("\n    "+e._s(e.$t("søgeside:filter:boligorganisationer-og-opskrivningssamarbejder"))+"\n  ")]),e._v(" "),t("label",{attrs:{for:"regionSelect-input"}},[e._v(e._s(e.$t("søgeside:filter:vælg-region")))]),e._v(" "),e.loading?e._e():t("single-select",{ref:"region",attrs:{t:e.$t,noSelectionValue:{navn:e.$t("søgeside:filter:intet-valg"),nummer:null},options:e.regioner,titleProperty:"navn",keyProperty:"nummer",value:e.regionValue,id:"regionSelect"},on:{"update:value":function(t){e.regionValue=t}}}),e._v(" "),t("label",{attrs:{for:"orgSelect-input"}},[e._v(e._s(e.$t("søgeside:filter:vælg-boligorganisation")))]),e._v(" "),!e.loading&&e.orgShow?t("multi-select",{ref:"organisation",attrs:{t:e.$t,options:e.organisationer,selectedOptions:e.organisationValue,titleProperty:"title",keyProperty:"id",placeholder:e.placeholderMulti,id:"orgSelect"},on:{"update:options":function(t){e.organisationer=t},"update:selectedOptions":function(t){e.organisationValue=t},"update:selected-options":function(t){e.organisationValue=t}}}):e._e(),e._v(" "),e.loading?e._e():t("a",{staticClass:"form-link",attrs:{href:e.opskrivsamUrl,title:e.$t("søgeside:filter:opskrivningssamarbejder:link-tekst"),target:"_blank"}},[t("svg",{staticClass:"icon icon--pink link-pointer-icon"},[t("use",{attrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink","xlink:href":"/dist/svg/sprite.svg#icon-menu-pointer"}})]),e._v("\n    "+e._s(e.$t("søgeside:filter:opskrivningssamarbejder:link-tekst"))+"\n  ")])],1)}),[],!1,null,null,null).exports,oe={mixins:[$],methods:{localReset:function(){this.$emit("reset-filter"),this.reset()},fullReset:function(){this.$emit("reset-filter"),this.resetFull(),this.reset()},localUpdate:function(){}},mounted:function(){this.initSlideoutFilter()}},le=Object(T.a)(oe,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"cell large-12 small-12 save-advance-search text-right"},[t("a",{staticClass:"reset-search hidden-mobile",attrs:{href:"#",title:e.$t("søgeside:filter:knap:nulstil")},on:{click:function(t){return t.preventDefault(),e.localReset.apply(null,arguments)}}},[e._v(e._s(e.$t("søgeside:filter:knap:nulstil")))]),e._v(" "),t("a",{staticClass:"reset-search hidden-desktop",attrs:{href:"#",title:e.$t("søgeside:filter:knap:nulstil")},on:{click:function(t){return t.preventDefault(),e.fullReset.apply(null,arguments)}}},[e._v(e._s(e.$t("søgeside:filter:knap:nulstil")))]),e._v(" "),t("a",{staticClass:"show-result button lightblue",attrs:{href:"#",title:e.$t("søgeside:filter:knap:vis-resultater")},on:{click:function(t){return t.preventDefault(),e.localUpdate.apply(null,arguments)}}},[e._v(e._s(e.$t("søgeside:filter:knap:vis-resultater")))])])}),[],!1,null,null,null).exports,ce={mixins:[$],props:{addGridX:{type:Boolean,default:!0},fieldsetClass:{type:String,default:"cell large-6 small-12"},groupName:{type:String},facetGroupIndex:{type:Number},updateSlideoutFilterCount:{type:Boolean}},computed:{searchResult:function(){return this.$store.getters.searchResult},searchCriteria:function(){return this.$store.getters.searchCriteria},tempSearchCriteria:function(){return this.$store.getters.tempSearchCriteria},facets:function(){return this.searchResult.facetGroups.length>0?this.searchResult.facetGroups[this.facetGroupIndex].facets:[]},selectedFacets:{get:function(){return this.tempSearchCriteria.facets},set:function(e){var t=Object.assign({},this.tempSearchCriteria),i=this.facets.map((function(e){return e.value}));t.facets=this.getDiffedFacetValue(e,this.tempSearchCriteria.facets,i),this.$store.dispatch("setTempSearchCriteria",t);var n=this.getFacetsInUse(i).length;this.$emit("filter-count",n),!0===this.updateSlideoutFilterCount&&this.setActiveSlideoutFiltersCount(this.groupName,n)}}},methods:{getSafeId:function(e){return e.toLowerCase().replace("æ","ae").replace("ø","oe").replace("å","aa").replace(" ","_")+"-"+e.replace("/","-")},resetToCurrent:function(){var e=[this.facets.map((function(e){return e.value})),this.searchCriteria.facets];this.selectedFacets=e.reduce((function(e,t){return e.filter((function(e){return t.includes(e)}))}))}},mounted:function(){var e=this;k.a.$on("search-slideout-close",(function(t){e.resetToCurrent()})),k.a.$on("search-filter-reset",(function(t){e.selectedFacets=[]}))}},ue=Object(T.a)(ce,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"cell"},[t("div",{class:e.addGridX?"grid-x":""},e._l(e.facets,(function(i,n){return t("fieldset",{key:n,class:e.fieldsetClass+" checkbox-fieldset"},[t("legend",{attrs:{id:"checkbox-label-"+e.getSafeId(i.label)}},[e._v(e._s(e.$t("facetter:"+e.groupName+":"+i.label)))]),e._v(" "),t("label",{attrs:{for:"checkbox-type-"+e.getSafeId(i.label)}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedFacets,expression:"selectedFacets"}],attrs:{id:"checkbox-type-"+e.getSafeId(i.label),"aria-label":e.$t("facetter:"+e.groupName+":"+i.label),type:"checkbox"},domProps:{value:i.value,checked:Array.isArray(e.selectedFacets)?e._i(e.selectedFacets,i.value)>-1:e.selectedFacets},on:{change:function(t){var n=e.selectedFacets,r=t.target,s=!!r.checked;if(Array.isArray(n)){var a=i.value,o=e._i(n,a);r.checked?o<0&&(e.selectedFacets=n.concat([a])):o>
1-1&&(e.selectedFacets=n.slice(0,o).concat(n.slice(o+1)))}else e.selectedFacets=s}}}),e._v(" "),t("span",{staticClass:"checkmark"}),e._v("\n                "+e._s(e.$t("facetter:"+e.groupName+":"+i.label))+"\n            ")])])})),0)])}),[],!1,null,null,null).exports,fe={components:{FacetCheckboxes:ue}},de=Object(T.a)(fe,(function(){var e=this._self._c;return e("div",{staticClass:"cell large-12 small-12"},[e("div",{staticClass:"grid-x"},[e("div",{staticClass:"cell large-12 small-12"},[e("h5",[this._v(this._s(this.$t("søgeside:filter:faciliteter")))])]),this._v(" "),e("facet-checkboxes",{attrs:{"group-name":"faciliteter","facet-group-index":2,"update-slideout-filter-count":!0}})],1)])}),[],!1,null,null,null).exports,he={mixins:[$],props:["tablet","mobile"],computed:{text:function(){return this.isMobileView?this.$t("søgeside:filter:knap:mobil:se-filtre"):this.isTabletView?this.$t("søgeside:filter:knap:se-filtre"):this.$t("søgeside:filter:knap:flere-filtre")},activeFiltersMobile:function(){return(this.isMobileView||this.isTabletView)&&this.getCountMobile>0},activeFilters:function(){return!this.isMobileView&&!this.isTabletView&&this.getCount>0},getCount:function(){return this.$store.getters.filtersCount.boligorganisationer+this.$store.getters.filtersCount.faciliteter+this.$store.getters.filtersCount.byggerityper+this.$store.getters.filtersCount.husdyr+this.$store.getters.filtersCount.transport+this.$store.getters.filtersCount.boligTypeTags},getCountMobile:function(){return this.getCount+this.$store.getters.filtersCount.transport+this.$store.getters.filtersCount.boligtyper+this.$store.getters.filtersCount.stoerrelse+this.$store.getters.filtersCount.pris+this.$store.getters.filtersCount.beliggenhed+this.$store.getters.filtersCount.ledighed+this.$store.getters.filtersCount.handicapvenlighed}},mounted:function(){this.initSlideoutFilter()}},pe=Object(T.a)(he,(function(){var e=this,t=e._self._c;return t("button",{staticClass:"js-toggle-filter-nav",class:[e.isMobileView?"filter-links mobile mobile-filters":e.isTabletView?"filter-links tablet tablet-filters":"button"],attrs:{title:e.text,type:"button"}},[e._v("\n  "+e._s(e.text)+"\n  "),e.activeFiltersMobile?t("span",{staticClass:"badge"},[e._v(e._s(this.getCountMobile))]):e._e(),e._v(" "),e.activeFilters?t("span",{staticClass:"badge"},[e._v(e._s(this.getCount))]):e._e()])}),[],!1,null,null,null).exports,ge={components:{FacetCheckboxes:ue}},ve=Object(T.a)(ge,(function(){var e=this._self._c;return e("div",{staticClass:"cell large-12 small-12"},[e("div",{staticClass:"grid-x"},[e("div",{staticClass:"cell large-12 small-12"},[e("h5",[this._v(this._s(this.$t("søgeside:filter:byggeritype")))])]),this._v(" "),e("facet-checkboxes",{attrs:{"group-name":"byggeri","facet-group-index":1,"update-slideout-filter-count":!0}})],1)])}),[],!1,null,null,null).exports,me={components:{FacetCheckboxes:ue}},ye=Object(T.a)(me,(function(){var e=this._self._c;return e("div",{staticClass:"cell large-12 small-12"},[e("div",{staticClass:"grid-x"},[e("div",{staticClass:"cell large-12 small-12"},[e("h5",[this._v(this._s(this.$t("søgeside:filter:husdyr")))])]),this._v(" "),e("facet-checkboxes",{attrs:{"group-name":"husdyr","facet-group-index":8,"update-slideout-filter-count":!0}})],1)])}),[],!1,null,null,null).exports,be={components:{FacetCheckboxes:ue}},_e=Object(T.a)(be,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"cell large-12 small-12"},[t("div",{staticClass:"grid-x"},[t("div",{staticClass:"cell large-12 small-12"},[t("h5",[e._v(e._s(e.$t("søgeside:filter:transport")))])]),e._v(" "),t("facet-checkboxes",{attrs:{"group-name":"transport","facet-group-index":6,"update-slideout-filter-count":!0}}),e._v(" "),t("div",{staticClass:"cell large-12 small-12 filter-info-text-container"},[t("h5",[e._v(e._s(e.$t("søgeside:filter:transport:titel")))]),e._v(" "),t("p",[e._v(e._s(e.$t("søgeside:filter:transport:tekst")))])])],1)])}),[],!1,null,null,null).exports,we={props:{classes:{type:String,default:"filter-links reset-search"}},methods:{resetSearch:function(){var e="/kort"===this.$route.path?1e4:null;this.$store.dispatch("resetSearch",e)}}},Ce=Object(T.a)(we,(function(){var e=this;return(0,e._self._c)("a",{class:e.classes,attrs:{href:"#",title:e.$t("søgeside:knap:nulstil-søgning")},on:{click:function(t){return t.preventDefault(),e.resetSearch.apply(null,arguments)}}},[e._v(e._s(e.$t("søgeside:knap:nulstil-søgning")))])}),[],!1,null,null,null).exports,ke=i(90),Se=i(22),xe={computed:{showMapLink:function(){return-1===this.$route.path.indexOf("/kort")},kortLink:function(){var e=Object(Se.b)(this.$route);return e.resultsPerPage=1e4,e.currentPage=1,e.loadPreviousPages=!1,{path:"/kort",query:e}},listLink:function(){var e=Object(Se.b)(this.$route);return e.resultsPerPage=12,e.currentPage=1,e.loadPreviousPages=!1,{path:"/",query:e}}}},$e=Object(T.a)(xe,(function(){var e=this,t=e._self._c;return t("div",[e.showMapLink?t("router-link",{staticClass:"filter-links mobile mobile-toggle-map",attrs:{to:e.kortLink,"aria-label":e.$t("søgeside:knap:mobil:vis-kort")}}
1,[e._v(e._s(e.$t("søgeside:knap:mobil:vis-kort")))]):e._e(),e._v(" "),e.showMapLink?e._e():t("router-link",{staticClass:"filter-links mobile mobile-toggle-list",attrs:{to:e.listLink,"aria-label":e.$t("søgeside:knap:mobil:vis-liste")}},[e._v(e._s(e.$t("søgeside:knap:mobil:vis-liste")))])],1)}),[],!1,null,null,null).exports;function Oe(e){return function(e){if(Array.isArray(e))return Pe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Te(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Te(e,t){if(e){if("string"==typeof e)return Pe(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Pe(e,t):void 0}}function Pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var je={name:"BoligTypeTagFilter",mixins:[C,$],computed:{tags:function(){var e=this;if(this.$store.getters.searchPageContent&&this.$store.getters.searchPageContent.boligTypeTags){var t=[];return this.$store.getters.searchPageContent.boligTypeTags.items.map((function(i){("en"===e.$i18n.locale&&i.useOnEnglish||"da"===e.$i18n.locale&&i.useOnDanish)&&t.pu
1sh({groupName:i.groupName,searchPhrases:i.searchPhrases})})),t}return[]},searchCriteria:function(){return this.$store.getters.searchCriteria},tempSearchCriteria:function(){return this.$store.getters.tempSearchCriteria},selectedTags:{get:function(){return this.tempSearchCriteria.boligTypeTags},set:function(e){var t=Object.assign({},this.tempSearchCriteria),i=this.tags.map((function(e){return e.groupName}));t.boligTypeTags=this.getDiffedFacetValue(e,this.tempSearchCriteria.boligTypeTags,i);var n=this.getBoligTypeTagsInUse(i,t).length;t.boligTypeTagsPhrases=[];var r,s=function(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=Te(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,o=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){o=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(o)throw s}}}}(this.tags);try{var a=function(){var i,n=r.value;e.some((function(e){return e===n.groupName}))&&(i=t.boligTypeTagsPhrases).push.apply(i,Oe(n.searchPhrases))};for(s.s();!(r=s.n()).done;)a()}catch(e){s.e(e)}finally{s.f()}this.$store.dispatch("setTempSearchCriteria",t),this.$emit("filter-count",n)}}},methods:{getSafeId:function(e){return e.toLowerCase().replace("æ","ae").replace("ø","oe").replace("å","aa").replace(" ","_")+"-"+e.replace("/","-")}}},Ae=Object(T.a)(je,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"cell large-12 small-12"},[t("div",[t("div",{staticClass:"cell large-12 small-12"},[t("h5",[e._v(e._s(e.$t("søgeside:filter:boligtypetag")))])]),e._v(" "),e._l(e.tags,(function(i,n){return t("fieldset",{key:n,class:" checkbox-fieldset"},[t("legend",{attrs:{id:"checkbox-label-"+e.getSafeId(i.groupName)}},[e._v(e._s(i.groupName))]),e._v(" "),t("label",{attrs:{for:"checkbox-type-"+e.getSafeId(i.groupName)}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedTags,expression:"selectedTags"}],attrs:{id:"checkbox-type-"+e.getSafeId(i.groupName),"aria-label":i.groupName,type:"checkbox"},domProps:{value:i.groupName,checked:Array.isArray(e.selectedTags)?e._i(e.selectedTags,i.groupName)>-1:e.selectedTags},on:{change:function(t){var n=e.selectedTags,r=t.target,s=!!r.checked;if(Array.isArray(n)){var a=i.groupName,o=e._i(n,a);r.checked?o<0&&(e.selectedTags=n.concat([a])):o>-1&&(e.selectedTags=n.slice(0,o).concat(n.slice(o+1)))}else e.selectedTags=s}}}),e._v(" "),t("span",{staticClass:"checkmark"}),e._v("\n        "+e._s(i.groupName)+"\n      ")])])})),e._v(" "),t("div",{staticClass:"disclaimer"},[t("svg",{staticClass:"disclaimer-icon"},[t("use",{attrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink","xlink:href":"/dist/svg/sprite.svg#icon-exclamation"}})]),e._v(" "),t("div",{staticClass:"disclaimer-body"},[t("span",[e._v(e._s(e.$t("søgeside:filter:boligtypetag:infotext")))])])])],2)])}),[],!1,null,null,null).exports,Ee=function(e,t,i,r,c){s()(e).length&&new n.default({el:e,render:function(e){return e(t,{props:{standalone:!0===i,tablet:!0===r,mobile:!0===c}})},store:a.a,router:o.a,i18n:l.a})};Ee("#js-search-sort-filter",c.a,!0),Ee("#js-search-sort-filter-slideout",c.a),Ee("js-search-bolig-type-filter",P,!0),Ee("js-search-bolig-type-filter-slideout",P),Ee("js-search-size-filter",L,!0),Ee("js-search-size-filter-slideout",L),Ee("js-search-price-filter",F,!0),Ee("js-search-price-filter-slideout",F),Ee("js-search-beliggenhed-filter",Y,!0),Ee("js-search-beliggenhed-filter-slideout",Y),Ee("js-search-ledighed-filter",J,!0),Ee("js-search-ledighed-filter-slideout",J),Ee("js-search-handicap-filter",X,!0),Ee("js-search-handicap-filter-slideout",X),Ee("js-search-region-organisation-filter",ae),Ee("js-search-filter-buttons",le),Ee("js-search-faciliteter-filter",de),Ee("js-search-bolig-type-tag-filter",Ae),Ee("js-search-more-filters-button",pe,!1,!1,!1),Ee("js-search-more-filters-button-mobile",pe,!1,!1,!0),Ee("js-search-more-filters-button-tablet",pe,!1,!0,!1),Ee("js-search-byggeri-type-filter",ve),Ee("js-search-husdyr-filter",ye),Ee("js-search-transport-filter",_e),Ee("js-search-reset-search-button",Ce),Ee("js-search-reset-search-button-tablet",Ce),Ee("js-search-save-search-button",ke.a),Ee("js-search-save-search-button-desktop",ke.a),Ee("js-map-and-list-switch",$e)},426:function(e,t,i){"use strict";i.r(t);var n=i(5),r=i(58),s=i(49),a=i(76),o=i(14),l=i(6),c=i(0),u=i.n(c),f=i(78),d=i(89),h=i(90),p=i(3),g=i(8),v=i(77),m=i(26),y=i(30),b=i(15),_=i(27);g.a.addToJquery(u.a),g.a.plugin(v.a,"Reveal"),g.a.plugin(y.a,"Triggers"),g.a.plugin(b.a,"Keyboard"),g.a.plugin(m.a,"Motion");var w={mixins:[_.a],props:{authenticated:{type:Boolean,default:!1}},data:function(){return{error:!1,baseUrl:"",urlFragment:null}},computed:{searchCriteria:function(){return this.$store.getters.searchCriteria},savedSearchUrl:function(){var e={path:"/",query:{ssId:this.urlFragment}},t=this.$router.resolve(e).href;return this.baseUrl+"/"+this.$i18n.locale+"/soeg"+t}},methods:{savedSearchInputClick:function(){this.$refs.savedSearchInput.setSelectionRange(0,this.$refs.savedSearchInput.value.length)},createAndOpenModal:function(){var e=new g.a.Reveal(u()(this.$el));this.$nextTick().then((function(){u()(e.$element).on("closed.zf.reveal",(function(t){u()(e.$element).foundation("_destroy"),l.a.$emit("SaveSearch_ModalClosed")})),e.open()}))},saveSearch:function(){var e=this;return p.a.post("/api/saved-search/save",this.searchCriteria).then((function(t){e.urlFragment=t.data.urlFragment})).catch((function(t){e.error=!0,alert("Der skete en fejl, prøv igen.")}))}},mounted:function(){var e=this;e.baseUrl=document.location.origin,e.saveSearch().then((function(t){!1===e.error?e.createAndOpenModal():e.$emit("error")}))}},C=i(2),k=Object(C.a)(w,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"reveal",attrs:{id:"save-search-modal","data-animation-in":"fade-in","data-animation-out":"fade-out","data-close-on-click":"false"}},[t("div",{staticClass:"modal-head"},[t("h2",{staticClass:"h3"},[e._v(e._s(e.$t("søgeside:gem-søgning-modal:overskrift")))]),e._v(" "),t("button",{staticClass:"close-button",attrs:{"data-close":"",title:e.$t("knap:luk"),t
1ype:"button"}},[t("span",{staticClass:"close-icon",attrs:{"aria-hidden":"true"}},[e._v("×")]),t("span",{staticClass:"close-text",attrs:{"aria-hidden":"true"}},[e._v(e._s(e.$t("knap:luk")))])])]),e._v(" "),t("div",{staticClass:"modal-body"},[e.authenticated?t("p",{domProps:{innerHTML:e._s(e.$t("søgeside:gem-søgning-modal:tekst"))}}):e._e(),e._v(" "),e.authenticated?e._e():t("p",{domProps:{innerHTML:e._s(e.$t("søgeside:gem-søgning-modal:tekst-ikke-logget-ind"))}}),e._v(" "),t("p",[t("a",{attrs:{href:"/"+e.$i18n.locale+"/min-side#/gemte-soegninger",title:e.$t("søgeside:gem-søgning-modal:gå-til-min-side")}},[e._v(e._s(e.$t("søgeside:gem-søgning-modal:gå-til-min-side")))])]),e._v(" "),t("p",{domProps:{innerHTML:e._s(e.$t("søgeside:gem-søgning-modal:link-beskrivelse"))}}),e._v(" "),t("input",{ref:"savedSearchInput",staticClass:"modal-input",attrs:{type:"text","aria-label":e.$t("søgeside:gem-søgning-modal:link-beskrivelse"),readonly:"readonly"},domProps:{value:e.savedSearchUrl},on:{click:e.savedSearchInputClick}}),e._v(" "),t("div",{staticClass:"button-panel text-right"},[t("a",{attrs:{role:"button",title:"Luk","data-close":""}},[e._v(e._s(e.$t("knap:luk")))])])])])}),[],!1,null,null,null).exports,S=i(22);Foundation.addToJquery(u.a),Foundation.plugin(f.a,"DropdownMenu");var x={props:["authenticated"],mixins:[_.a],components:{SortFilter:d.a,SaveSearchModal:k,SaveSearchButton:h.a},data:function(){return{showSavedSearch:!1,savedSearchUrl:"",loading:!1}},methods:{hideSavedSearchModal:function(){this.showSavedSearch=!1}},computed:{isListView:function(){return"/"==this.$route.path},kortLink:function(){var e=Object(S.b)(this.$route);return e.resultsPerPage=1e4,e.currentPage=1,e.loadPreviousPages=!1,{path:"/kort",query:e}},listLink:function(){var e=Object(S.b)(this.$route);return e.resultsPerPage=12,e.currentPage=1,e.loadPreviousPages=!1,{path:"/",query:e}},isAuthenticated:function(){return"True"===this.authenticated},searchCriteria:function(){return this.$store.getters.searchCriteria},initialResultsLoaded:function(){return this.$store.getters.initialResultsLoaded},searchResult:function(){return this.$store.getters.searchResult},totalResults:function(){try{return this.searchResult.totalResultsCount.toLocaleString("da-DK")}catch(e){return console.log(e),""}},totalLedige:function(){try{return this.searchResult.totalLedigeCount.toLocaleString("da-DK")}catch(e){return console.log(e),""}},totalOnWait:function(){try{return(this.searchResult.totalResultsCount-this.searchResult.totalLedigeCount).toLocaleString("da-DK")}catch(e){return console.log(e),""}}},mounted:function(){var e=this;l.a.$off("SaveSearch_ButtonClicked"),l.a.$off("SaveSearch_ModalClosed"),l.a.$on("SaveSearch_ButtonClicked",(function(t){e.showSavedSearch=!0})),l.a.$on("SaveSearch_ModalClosed",(function(t){e.showSavedSearch=!1}))}},O=Object(C.a)(x,(function(){var e=this,t=e._self._c;return t("article",{attrs:{id:"search-page-app"}},[e.initialResultsLoaded&&0!=e.totalResults?t("div",{staticClass:"grid-x settings-container"},[t("div",{staticClass:"cell large-auto medium-auto small-12 result-information",attrs:{role:"alertdialog","aria-labelledby":"result-title"}},[t("h1",{attrs:{id:"result-title"}},[e._v(e._s(e.searchResult.texts.title))]),e._v(" "),t("save-search-button",{staticClass:"hidden-desktop save-search-mobile"}),e._v(" "),t("p",{staticClass:"available-info",attrs:{role:"alert"}},[t("span",[t("b",[e._v(e._s(e.totalLedige))]),e._v(" "+e._s(e.$t("søgeside:ledige-boliger")))]),t("b",[e._v(e._s(e.totalOnWait))]),e._v(" "+e._s(e.$t("søgeside:boliger-med-venteliste")))])],1),e._v(" "),t("div",{staticClass:"cell large-4 medium-6 small-auto hidden-mobile sort-information"},[e.isListView?t("sort-filter"):e._e(),e._v(" "),t("router-link",{staticClass:"result-type-link",class:e.isListView?"router-link-exact-active":"",attrs:{to:e.listLink}},[e._v(e._s(e.$t("søgeside:knap:liste")))]),e._v(" "),t("router-link",{staticClass:"result-type-link",class:e.isListView?"":"router-link-exact-active",attrs:{to:e.kortLink}},[e._v(e._s(e.$t("søgeside:knap:kort")))])],1)]):e._e(),e._v(" "),t("router-view",{attrs:{authenticated:e.isAuthenticated}}),e._v(" "),e.showSavedSearch?t("save-search-modal",{attrs:{authenticated:e.isAuthenticated},on:{error:e.hideSavedSearchModal}}
1):e._e()],1)}),[],!1,null,null,null).exports,T=i(182),P=i.n(T),j={mixins:[i(183).mixin],props:{inputId:{type:String},placeholder:{type:String,default:""},ariaLabel:{type:String,default:""},value:{type:Object,default:function(){return{text:""}}},inputClass:{type:String,default:""}},name:"search-suggest-input",data:function(){return{inputValue:"",suggestion:{},suggestions:[],selected:null,showList:!0}},watch:{suggestion:function(e){this.$emit("update:value",e)},inputValue:function(e){Object.keys(this.suggestion).length>0&&this.suggestion.text!==e&&(this.suggestion={}),Object.keys(this.suggestion).length<=0&&this.$emit("update:value",{value:e,text:e})}},computed:{hasSuggestions:function(){return this.suggestions.length>0},autocompleteValue:function(){return this.hasSuggestions?("Municipalities"===this.suggestions[1].valueType?this.suggestions[1].text:this.suggestions[1].value).substring(this.inputValue.length):""}},methods:{clickSuggestion:function(e){this.setSelected(e),this.setShowList(!1)},clickedAway:function(e){!0===this.showList&&this.setShowList(!1)},setShowList:function(e){this.selected=null,this.showList=!!e},keyup:function(e){switch(e.key){case"ArrowDown":this.setSelected(this.selected+1);break;case"ArrowUp":this.setSelected(this.selected-1);break;case"Escape":break;default:this.selected=null,this.getSuggestionsDebounced()}},setSelected:function(e){if(!(e<0)&&this.suggestions[e]){if("title"===this.suggestions[e].type&&(e>this.selected?e+=1:e-=1),e<0)return void(this.selected=null);this.selected=e,this.inputValue=this.suggestions[e].text,this.suggestion=this.suggestions[e]}},getSuggestions:function(){var e=this;this.showList=!0;var t=this.inputValue;""!=t?p.a.post("/api/search/Suggestions?query="+t).then((function(t){e.suggestions=t.data.combined})).catch((function(e){console.log(e)})):this.suggestions=[]},getSuggestionsDebounced:function(){}},created:function(){this.getSuggestionsDebounced=P()((function(){this.getSuggestions()}),300)},mounted:function(){this.inputValue=this.value.text||"",$("#topnav-search-input-frontpage").keypress((function(e){13==e.which&&(e.preventDefault(),$(".search-button").click())}))}},A=Object(C.a)(j,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"search-autocomplete-input-wrapper"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.inputValue,expression:"inputValue"}],class:e.inputClass,attrs:{type:"search",id:e.inputId,"aria-label":e.ariaLabel,placeholder:e.placeholder,autocomplete:"off"},domProps:{value:e.inputValue},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:(t.stopPropagation(),t.preventDefault(),e.setShowList(!1))},keyup:e.keyup,input:function(t){t.target.composing||(e.inputValue=t.target.value)}},nativeOn:{focus:function(t){return e.setShowList(!0)}}}),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.hasSuggestions&&e.showList&&e.inputValue.length>0&&null==e.selected,expression:"\n      hasSuggestions && showList && inputValue.length > 0 && selected == null\n    "}],staticClass:"autocomplete"},[t("span",{staticClass:"query"},[e._v(e._s(e.inputValue))]),e._v("\n    "+e._s(e.autocompleteValue)+"\n  ")]),e._v(" "),e.hasSuggestions&&e.showList?t("div",{directives:[{name:"on-clickaway",rawName:"v-on-clickaway",value:e.clickedAway,expression:"clickedAway"}],ref:"suggestions",staticClass:"suggestions-wrapper"},e._l(e.suggestions,(function(i,n){return t("div",{key:n,class:{"suggestion-title":"title"===i.type,selected:e.selected===n},attrs:{"data-value":i.value,"data-type":i.type},on:{click:function(t){return e.clickSuggestion(n)}}},[e._v("\n      "+e._s(i.text)+"\n    ")])})),0):e._e()])}),[],!1,null,null,null).exports,E=i(86),I=i.n(E);function L(e){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function M(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function F(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};
1t%2?M(Object(i),!0).forEach((function(t){R(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):M(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function R(e,t,i){return(t=function(e){var t=function(e,t){if("object"!==L(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==L(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===L(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var z={mixins:[_.a],components:{SearchSuggestInput:A},props:{redirectOnSearch:{type:Boolean}},data:function(){return{query:{},showSearch:!1}},computed:{searchCriteria:function(){return this.$store.getters.searchCriteria},zipCityQuery:function(){return this.$store.getters.searchCriteria.zipCityQuery}},methods:{search:function(){var e="/kort"===this.$route.path?this.$route.path:"/",t=F(F({},new S.a),Object(S.b)(this.$route));switch(this.query.valueType){case"Municipalities":t.kommuner=[this.query.value],t.displayValue=this.query.text,t.zipCityQuery="";break;case"Cities":this.query.value.includes("-")?t.zipCodeRanges=[this.query.value]:t.zipCodes=[this.query.value],t.zipCityQuery="",t.displayValue=this.query.text;break;default:t.zipCityQuery=this.query.value,t.displayValue=this.query.text}var i={path:e,query:t};if(!0!==this.redirectOnSearch)this.$store.dispatch("searchAndSetItems",t);else{var n=this.$router.resolve(i).href;window.location.href="/"+this.$i18n.locale+"/soeg"+n}}},mounted:function(){var e=this,t=I.a.parse(this.$route.fullPath.replace("#","").replace("/",""));this.query={text:""!=t.displayValue?t.displayValue:t.zipCityQuery},this.$nextTick().then((function(){e.showSearch=!0})),$(".search-button").keypress((function(e){13==e.which&&$(".search-button").click()})),$(".search-field").keypress((function(e){13==e.which&&$(".search-button").click()})),$(".scroll-filter-toggle").on("click",(function(e){e.stopPropagation(),$(".scroll-filter-toggle").hasClass("shown")?($(".filter-navigation.desktop").slideUp(200),$(".scroll-filter-toggle").removeClass("shown")):($(".filter-navigation.desktop").slideDown(200),$(".scroll-filter-toggle").addClass("shown"))}))}},V=Object(C.a)(z,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"cell xxlarge-7 xlarge-7 large-6 medium-8 small-8 db-search text-right"},[t("form",{staticClass:"input-group search-field-group",on:{submit:function(e){e.preventDefault()}}},[e.showSearch?t("search-suggest-input",{attrs:{value:e.query,inputClass:"input-group-field search-field",inputId:"topnav-search-input-frontpage",ariaLabel:"Søgefelt"},on:{"update:value":function(t){e.query=t}}}):e._e(),e._v(" "),t("div",{staticClass:"input-group-button"},[t("input",{staticClass:"button lightblue search-button",attrs:{type:"submit","aria-label":e.$t("knap:søg")},domProps:{value:e.$t("knap:søg")},on:{click:e.search}})])],1),e._v(" "),t("button",{staticClass:"button scroll-filter-toggle",attrs:{type:"button"}},[e._v("Se filtre")])])}),[],!1,null,null,null).exports,D=i(40),N={mixins:[_.a],components:{SearchSuggestInput:A,SingleSelect:D.a},data:function(){return{comboValue:"",query:{},selectedLedighed:{name:this.$t("facetter:ledighed:alle"),value:""}}},computed:{availabilityOptions:function(){return[{name:this.$t("facetter:ledighed:alle"),value:""},{name:this.$t("facetter:ledighed:ledig"),value:"3/0"},{name:this.$t("facetter:ledighed:snart-klar"),value:"3/1"}]}},methods:{search:function(){var e=new S.a;switch(this.query.valueType){case"Municipalities":e.kommuner=[this.query.value],e.displayValue=this.query.text,e.zipCityQuery="";break;case"Cities":this.query.value.includes("-")?e.zipCodeRanges=[this.query.value]:e.zipCodes=[this.query.value],e.zipCityQuery="",e.displayValue=this.query.text;break;default:e.zipCityQuery=this.query.value,e.displayValue=this.query.text}e.facets=this.selectedLedighed.value;var t={path:"/",query:e},i=this.$router.resolve(t).href;window.location.href="/"+this.$i18n.locale+"/soeg"+i}},mounted:function(){$("#search-input-frontpage").keypress((function(e){13==e.which&&$(".search-button").click()}))}},B=Object(C.a)(N,(function(){var e=this,t=e._self._c;return t("form",{staticClass:"search-container"},[t("h2",[t("svg",{staticClass:"icon icon--white"},[t("use",{attrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink","xlink:href":"/dist/svg/sprite.svg#icon-search"}})]),e._v("\n    "+e._s(e.$t("forside:søg:titel"))+"\n  ")]),e._v(" "),t("label",{attrs:{for:"search-input-frontpage"}},[e._v(e._s(e.$t("forside:søg:input:label")))]),e._v(" "),t("search-suggest-input",{attrs:{value:e.query,inputId:"search-input-frontpage",placeholder:e.$t("forside:søg:input:placeholder"),ariaLabel:e.$t("forside:søg:input:label")},on:{"update:value":function(t){e.query=t}}}),e._v(" "),t("label",{attrs:{for:"availability-frontpage-input"}},[e._v(e._s(e.$t("forside:søg:ledighed")))]),e._v(" "),t("single-select",{attrs:{options:e.availabilityOptions,t:e.$t,titleProperty:"name",keyProperty:"name",defaultSelection:e.selectedLedighed,value:e.selectedLedighed,id:"availability-frontpage"},on:{"update:value":function(t){e.selectedLedighed=t}}}),e._v(" "),t("input",{staticClass:"button search-button lightblue",attrs:{type:"button","aria-label":e.$t("knap:søg"),value:e.$t("knap:søg")},on:{click:e.search}}
1)],1)}),[],!1,null,null,null).exports;n.default.use(a.a),i(433),i(423),n.default.config.devtools=!0;document.getElementsByTagName("js-search-page-app").length&&new n.default({el:"js-search-page-app",render:function(e){return e(O,{props:{authenticated:this.$el.attributes["data-authenticated"].value}})},store:s.a,router:r.a,i18n:o.a}),document.getElementsByTagName("js-search-input-app").length&&new n.default({el:"js-search-input-app",render:function(e){return e(V,{props:{redirectOnSearch:(t=this.$el,i="data-redirect-on-search",n=t.attributes[i],!!n&&"true"===n.value.toLowerCase())}});var t,i,n},store:s.a,router:r.a,i18n:o.a}),document.getElementsByTagName("js-search-frontpage-app").length&&new n.default({name:"search-frontpage-app",el:"js-search-frontpage-app",render:function(e){return e(B,{props:{}})},store:s.a,router:r.a,i18n:o.a})},433:function(e,t,i){"use strict";i.r(t);var n=i(5),r=i(49),s=i(58),a=i(6),o={data:function(){return{loading:!1}},created:function(){var e=this;a.a.$on("loading",(function(t){e.loading=t,!0===t?$(e.$el.ownerDocument.body).addClass("overflow-hidden"):$(e.$el.ownerDocument.body).removeClass("overflow-hidden")}))}},l=i(2),c=Object(l.a)(o,(function(){return(0,this._self._c)("div",{directives:[{name:"show",rawName:"v-show",value:this.loading,expression:"loading"}],staticClass:"app-loading"},[this._m(0)])}),[function(){var e=this._self._c;return e("div",{staticClass:"spinner",attrs:{id:"loading-bar-spinner"}},[e("div",{staticClass:"spinner-icon"})])}],!1,null,null,null).exports;new n.default({name:"loading-spinner-app",el:"js-loading-spinner",render:function(e){return e(c,{})},store:r.a,router:s.a})},49:function(e,t,i){"use strict";var n=i(5),r=i(79),s=i(42),a=i(3),o=i(22),l=i(6);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,r,s,a,o=[],l=!0,c=!1;try{if(s=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=s.call(i)).done)&&(o.push(n.value),o.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=i.return&&(a=i.return(),Object(a)!==a))return}finally{if(c)throw r}}return o}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return u(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}n.default.use(r.a),n.default.use(s.a);var f=new o.a,d={searchResult:{facetGroups:[],tilgaengelighedsprofiler:[]},items:[],initialSearchCriteria:Object.assign({},f),searchCriteria:Object.assign({},f),tempSearchCriteria:Object.assign({},f),searchPageContent:null,zipCodes:[],kommuner:[],selectedKommuner:[],selectedZipCodes:[],initialResultsLoaded:!1,activeFiltersInSlideout:{},activeFiltersInSlideoutCount:0,activeMobileFiltersInSlideout:{},activeMobileFiltersInSlideoutCount:0,mapInitialized:!1,filtersCount:{boligtyper:0,stoerrelse:0,pris:0,beliggenhed:0,ledighed:0,handicapvenlighed:0,boligorganisationer:0,faciliteter:0,byggerityper:0,husdyr:0,transport:0,boligTypeTags:0}},h=Object.assign({},d);t.a=new r.a.Store({state:h,mutations:{setSearchPageContent:function(e,t){e.searchPageContent=t},appendZipCode:function(e,t){e.zipCodes=e.zipCodes.concat(t)},setZipCodes:function(e,t){e.zipCodes=t},setSelectedZipCodes:function(e,t){e.selectedZipCodes=t},setKommuner:function(e,t){e.kommuner=t},setSelectedKommuner:function(e,t){e.selectedKommuner=t},setSearchResult:function(e,t){e.searchResult=t},setSearchCriteria:function(e,t){e.searchCriteria=t},setTempSearchCriteria:function(e,t){e.tempSearchCriteria=t},setItems:function(e,t){e.items=t},concatItems:function(e,t){e.items=e.items.concat(t)},setInitialResultsLoaded:function(e,t){e.initialResultsLoaded=t,l.a.$emit("initial-results-loaded")},updateActiveFiltersInSlideout:function(e,t){var i=t.filterName,n=t.count;e.activeFiltersInSlideout[i]=n;var r=0;Object.entries(e.activeFiltersInSlideout).forEach((function(e){var t=c(e,2),i=(t[0],t[1]);return r+=i})),e.activeFiltersInSlideoutCount=r},updateActiveMobileFiltersInSlideout:function(e,t){var i=t.filterName,n=t.count;e.activeMobileFiltersInSlideout[i]=n;var r=0;Object.entries(e.activeMobileFiltersInSlideout).forEach((function(e){var t=c(e,2),i=(t[0],t[1]);return r+=i})),e.activeMobileFiltersInSlideoutCount=r},setMapInitialized:function(e,t){e.mapInitialized=t},setFiltersCount:function(e,t){e.filtersCount=t}},getters:{searchPageContent:function(e){return e.searchPageContent},searchResult:function(e){return e.searchResult},items:function(e){return e.items},initialSearchCriteria:function(e){return e.initialSearchCriteria},searchCriteria:function(e){return e.searchCriteria},tempSearchCriteria:function(e){return e.tempSearchCriteria},initialResultsLoaded:function(e){return e.initialResultsLoaded},activeFiltersInSlideout:function(e){return e.activeFiltersInSlideout},activeFiltersInSlideoutCount:function(e){return e.activeFiltersInSlideoutCount},activeMobileFiltersInSlideout:function(e){return e.activeMobileFiltersInSlideout},activeMobileFiltersInSlideoutCount:function(e){return e.activeMobileFiltersInSlideoutCount},mapInitialized:function(e){return e.mapInitialized},filtersCount:function(e){return e.filtersCount}},actions:{updateActiveFiltersInSlideout:function(e,t){var i=t.filterName,n=t.count;e.commit("updateActiveFiltersInSlideout",{filterName:i,count:n})},updateActiveMobileFiltersInSlideout:function(e,t){var i=t.filterName,n=t.count;e.commit("updateActiveMobileFiltersInSlideout",{filterName:i,count:n})},getSearchPageContent:function(e,t){return this.getters.searchPageContent&&!0!==t?this.getters.searchPageContent:new Promise((function(t,i){a.a.get("/api/search/GetPageContent").then((function(i){e.commit("setSearchPageContent",i.data),t(i.data)})).catch((function(e){console.log(e),i(e)}))}))},addZipCodeToSelection:function(e,t){e.commit("appendZipCode",t)},getAllZipcodes:function(e,t){return this.state.zipCodes.length&&!0!==t?this.state.zipCodes:new Promise((function(t,i){a.a.get("/api/postnumre").then((function(i){e.commit("setZipCodes",i.data),t(i.data)})).catch((function(e){console.log(e),i(e)}))}))},getAllZipcodesByKommuneId:function(e,t){return new Promise((function(e,i){a.a.get("/api/postnumre/getByKommune?id="+t).then((function(t){e(t.data)})).catch((function(e){console.log(e),i(e)}))}))},getAllKommuner:function(e,t){return this.state.kommuner.length&&!0!==t?this.state.kommuner:new Promise((function(t,i){a.a.get("/api/kommuner").then((function(i){e.commit("setKommuner",i.data),t(i.data)})).catch((function(e){console.log(e),i(e)}))}))},setSelectedKommuner:function(e,t){e.commit("setSelectedKommuner",t)},setSelectedZipCodes:function(e,t){e.commit("setSelectedZipCodes",t)},setMapInitialized:function(e,t){e.commit("setMapInitialized",t)},resetSearch:function(e,t){var i=Object.assign({},f);t&&null!==t&&(i.resultsPerPage=t),e.commit("setTempSearchCriteria",Object.assign({},i)),e.dispatch("searchAndSetItems",Object.assign({},i))},resetTempSearchCriteria:function(e){e.commit("setTempSearchCriteria",Object.assign({},f))},setSearchResult:function(e,t){e.commit("setSearchResult",t)},setItems:function(e,t){e.commit("setItems",t)},concatItems:function(e,t){e.commit("concatItems",t)},setSearchCriteria:function(e,t){e.commit("setSearchCriteria",t)},setTempSearchCriteria:function(e,t){e.commit("setTempSearchCriteria",t)},setInitialResultsLoaded:function(e,t){e.commit("setInitialResultsLoaded",t)},search:function(e,t){return new Promise((function(i,n){var r=t.loadPreviousPages;t.loadPreviousPages=!1,e.dispatch("setSearchCriteria",t).then((function(){l.a.$emit("sc-changed",t),a.a.post("/api/search?loadPreviousPages="+r,t).then((function(t){e.dispatch("setSearchResult",t.data).then((function(){i(t.data)}))})).catch((function(e){console.log(e),n(e)}))}))}))},searchAndSetItems:function(e,t){var i=this.getters.filtersCount;return i.boligtyper=t.facets.filter((function(e){return e.startsWith("4/")})).length,i.stoerrelse=(t.sizeIsDirty?1:0)+(t.roomIsDirty?1:0),i.pris=t.rentIsDirty?1:0,i.beliggenhed=t.zipCodes.length+t.zipCodeRanges.length+t.kommuner.length,i.ledighed=t.facets.filter((function(e){return e.startsWith("3/")||e.startsWith("7/")})).length,i.handicapvenlighed=t.facets.filter((function(e){return e.startsWith("5/")})).length+(t.selectedHandicapProfile?1:0),i.boligorganisationer=(t.selectedRegion?1:0)+t.boligOrganisationIds.length,i.faciliteter=t.facets.filter((function(e){return e.startsWith("2/")})).length,i.byggerityper=t.facets.filter((function(e){return e.startsWith("1/")})).length,i.husdyr=t.facets.filter((function(e){return e.startsWith("8/")})).length,i.transport=t.facets.filter((function(e){return e.startsWith("6/")})).length,i.boligTypeTags=t.boligTypeTags.length,e.commit("setFiltersCount",i),l.a.setLoadingState("loading",!0),new Promise((function(i,n){e.dispatch("search",t).then((function(n){e.commit("setTempSearchCriteria",t),e.dispatch("setItems",n.items),i(),l.a.setLoadingState("loading",!1)})).catch((function(e){console.log(e),n(e),l.a.setLoadingState("loading",!1)}))}))},getNextPage:function(e){console.log(e);var t=this.getters.searchCriteria;return t.currentPage=this.getters.searchCriteria.currentPage+1,console.log("get next page"),console.log(t),new Promise((function(i,n){e.dispatch("search",t).then((function(t){e.dispatch("concatItems",t.items),i(t)})).catch((function(e){console.log(e),n(e)}))}))}}})},53:function(e,t,i){(function(e){var i,n,r,s;function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}"undefined"!=typeof self&&self,s=function(){return function(e){var t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};
1return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=2)}([function(e,t,i){"use strict";e.exports=a;var n=i(3),r=i(4),s=Array.prototype;function a(e){if(!(this instanceof a))return new a(e);var t,i=r(e.className).split(/\s+/);for(this._elem=e,this.length=0,t=0;t<i.length;t+=1)i[t]&&s.push.call(this,i[t])}a.prototype.add=function(){var e,t;for(t=0;t<arguments.length;t+=1)n(this,e=""+arguments[t])>=0||s.push.call(this,e);return this._elem.className=this.toString(),this},a.prototype.remove=function(){var e,t;for(t=0;t<arguments.length;t+=1)(e=n(this,""+arguments[t]))<0||s.splice.call(this,e,1);return this._elem.className=this.toString(),this},a.prototype.contains=function(e){return n(this,e+="")>=0},a.prototype.toggle=function(e,t){return e+="",!0===t?this.add(e):!1===t?this.remove(e):this[this.contains(e)?"remove":"add"](e)},a.prototype.toString=function(){return s.join.call(this," ")}},function(e,t){var i;i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(e){"object"===("undefined"==typeof window?"undefined":a(window))&&(i=window)}e.exports=i},function(e,t,i){"use strict";var n=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=_(i(0)),s=_(i(5)),a=_(i(6)),o=_(i(7)),l=_(i(8)),c=_(i(9)),u=_(i(10)),f=_(i(12)),d=_(i(14)),h=_(i(15)),p=_(i(17)),g=_(i(18)),v=_(i(19)),m=_(i(32)),y=_(i(33)),b=_(i(36));function _(e){return e&&e.__esModule?e:{default:e}}e.exports=function(){function e(t){var i=this;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=t||{},this.config=(0,y.default)(t),this.input=(0,h.default)(this.config.input),this.list=(0,h.default)(this.config.list),this.cachedOpts=this.currentOpts=(0,h.default)(this.config.options,!0,this.list),this.isOpen=!1,this.currentOption=null,this.selected=[],this.groups=[],this.isHovering=!1,this.config.groups){var n=(0,h.default)(this.config.groups,!0,this.list);this.groups=n.map((function(e){return{element:e,options:i.cachedOpts.filter((function(t){return e.contains(t)}))}}))}if(!this.input||!this.list)throw new Error("Unable to find required elements (list/input)");(0,v.default)(this.input,this.list,this.cachedOpts),this.config.useLiveRegion&&(this.liveRegion=new a.default({ariaLive:"assertive"})),this.initEvents()}return n(e,[{key:"initEvents",value:function(){var e=this;(0,s.default)(this),this.input.addEventListener("click",(function(){e.openList().goTo(e.getOptIndex()||0)})),this.input.addEventListener("blur",(function(){e.isHovering||e.closeList()})),this.input.addEventListener("focus",(function(){e.selected.length&&(e.input.value=e.selected.length>=2?"":e.config.selectionValue(e.selected))})),document.addEventListener("click",(function(t){!(0,d.default)(t.target,[e.input,e.list],!0)&&e.isOpen&&e.closeList()})),this.optionEvents(),this.initKeys()}},{key:"getOptIndex",value:function(){return this.currentOption&&this.currentOpts.indexOf(this.currentOption)}},{key:"optionEvents",value:function(){var e=this;this.cachedOpts.forEach((function(t){t.addEventListener("click",(function(){e.goTo(e.currentOpts.indexOf(t)).select()})),t.addEventListener("mouseover",(function(){var i=e.currentOption;i&&(0,r.default)(i).remove(e.config.activeClass),(0,r.default)(t).add(e.config.activeClass),e.isHovering=!0})),t.addEventListener("mouseout",(function(){(0,r.default)(t).remove(e.config.activeClass),e.isHovering=!1}))}))}},{key:"openList",value:function(){(0,r.default)(this.list).add(this.config.openClass),this.input.setAttribute("aria-expanded","true"),this.isOpen||this.announceCount(),this.isOpen=!0,this.emit("list:open");var e=(0,c.default)(this.list);if(!e.visible){var t="bottom"===e.position?0-(window.innerHeight-(this.input.clientHeight+this.list.clientHeight)):0;(0,o.default)({element:this.input,offset:t,bezier:[.19,1,.22,1],duration:100})}return this}},{key:"closeList",value:function(e,t){return(0,r.default)(this.list).remove(this.config.openClass),this.input.setAttribute("aria-expanded","fal
1se"),this.isOpen=!1,e&&this.input.focus(),!this.multiselect&&this.selected.length&&(this.input.value=this.config.selectionValue(this.selected)),t&&this.input.select(),this.emit("list:close"),this}},{key:"initKeys",value:function(){var e=this;f.default.down(this.input,[{keys:["up","down"],callback:function(t,i){if(e.isOpen)return-1===e.currentOpts.indexOf(e.currentOption)?e.goTo(0,!0):e.goTo("down"===i?"next":"prev",!0);var n=e.selected.length?e.currentOpts.indexOf(e.selected[e.selected.length-1]):0;e.goTo(n,!0).openList()},preventDefault:!0},{keys:["enter"],callback:function(t){e.isOpen&&(t.preventDefault(),t.stopPropagation(),e.select())}},{keys:["escape"],callback:function(t){e.isOpen&&(t.stopPropagation(),e.closeList(!0,!0))}},{keys:["backspace"],callback:function(){e.selected.length>=2&&(e.input.value="")}}]);var t=[9,13,27,16];f.default.up(this.input,(function(i){var n=e.config.filter,r=e.cachedInputValue;t.indexOf(i.which)>-1||!n||(e.freshSelection?(e.clearFilters(),(r||"").trim()!==e.input.value.trim()&&(e.filter().openList(),e.freshSelection=!1)):e.filter().openList(),(0,g.default)(e.list,e.currentOpts,e.config.noResultsText))}))}},{key:"clearFilters",value:function(){return this.cachedOpts.forEach((function(e){return e.style.display=""})),this.groups.forEach((function(e){return e.element.style.display=""})),this.currentOpts=this.cachedOpts,this}},{key:"filter",value:function(e){var t=this,i=this.config.filter,n=this.currentOpts;return this.currentOpts="function"==typeof i?i(this.input.value.trim(),this.cachedOpts):u.default[i](this.input.value.trim(),this.cachedOpts),this.currentOpts=this.currentOpts||[],this.updateOpts(),n.every((function(e){return t.currentOpts.indexOf(e)>-1}))||e||this.announceCount(),this}},{key:"announceCount",value:function(){var e=this.config.announcement&&this.config.announcement.count;return e&&this.liveRegion&&this.liveRegion.announce(e(this.currentOpts.length),500),this}},{key:"updateOpts",value:function(){var e=this,t=this.config.optionValue;return this.cachedOpts.forEach((function(i){i.style.display=-1===e.currentOpts.indexOf(i)?"none":"",i.innerHTML="string"==typeof t?(0,m.default)(i,e.input,t):t(i)})),this.updateGroups(),this}},{key:"updateGroups",value:function(){return this.groups.forEach((function(e){var t=e.options.filter((function(e){return""===e.style.display}));e.element.style.display=t.length?"":"none"})),this}},{key:"select",value:function(){var e=this,t=this.currentOption;if(t){!this.config.multiselect&&this.selected.length&&(0,r.default)(this.selected[0]).remove(this.config.selectedClass);var i=this.selected.indexOf(t),n=i>-1;return this.config.multiselect?n?this.selected.splice(i,1):this.selected.push(t):this.selected=this.config.allowEmpty&&n?[]:[t],this.cachedOpts.forEach((function(t){t.setAttribute("aria-selected",e.selected.indexOf(t)>-1?"true":"false")})),n?(t.classList.remove(this.config.selectedClass),this.emit("deselection",{text:this.input.value,option:t})):(t.classList.add(this.config.selectedClass),this.emit("selection",{text:this.input.value,option:t})),this.freshSelection=!0,this.input.value=this.selected.length?this.config.selectionValue(this.selected):"",this.cachedInputValue=this.input.value,this.filter(!0).clearFilters(),this.config.multiselect||(this.closeList(),this.input.select()),this}}},{key:"reset",value:function(){var e=this;return this.clearFilters(),this.input.value="",this.updateOpts(),this.input.removeAttribute("aria-activedescendant"),this.input.removeAttribute("data-active-option"),this.currentOption=null,this.selected=[],this.cachedOpts.forEach((function(t){(0,r.default)(t).remove(e.config.selectedClass),(0,r.default)(t).remove(e.config.activeClass),t.setAttribute("aria-selected","false")})),this}},{key:"goTo",value:function(e,t){var i=this;if("string"==typeof e){var n=this.getOptIndex();return this.goTo("next"===e?n+1:n-1,t)}var r=this.currentOpts[e],s=!1;if(!this.currentOpts[e])return 0===this.getOptIndex()&&(this.list.scrollTop=0),this;if(this.groups.length){var a=(0,p.default)(this.groups,r);s=a&&a!==this.currentGroup,this.currentGroup=a}return this.currentOption=r,this.pseudoFocus(s),this.currentOpts.forEac
1h((function(e){e.classList.contains(i.config.activeClass)&&!(0,l.default)(i.list,e)&&(0,o.default)(e)})),this}},{key:"pseudoFocus",value:function(e){var t=this.currentOption,i=this.config.activeClass,n=this.input.getAttribute("data-active-option"),s=n&&document.getElementById(n);return s&&i&&(0,r.default)(s).remove(i),t&&(this.input.setAttribute("data-active-option",t.id),i&&(0,r.default)(t).add(i),this.liveRegion&&(0,b.default)(t,this.config,this.liveRegion.announce.bind(this.liveRegion),e,this.currentGroup&&this.currentGroup.element),this.input.setAttribute("aria-activedescendant",t.id),this.currentOption=t,this.emit("change")),this}}]),e}()},function(e,t){e.exports=function(e,t){if(e.indexOf)return e.indexOf(t);for(var i=0;i<e.length;++i)if(e[i]===t)return i;return-1}},function(e,t){(t=e.exports=function(e){return e.replace(/^\s*|\s*$/g,"")}).left=function(e){return e.replace(/^\s*/,"")},t.right=function(e){return e.replace(/\s*$/,"")}},function(e,t,i){function n(e){if(e)return function(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}(e)}e.exports=n,n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},n.prototype.once=function(e,t){function i(){this.off(e,i),t.apply(this,arguments)}return i.fn=t,this.on(e,i),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var i,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var r=0;r<n.length;r++)if((i=n[r])===t||i.fn===t){n.splice(r,1);break}return 0===n.length&&delete this._callbacks["$"+e],this},n.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),i=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(i){n=0;for(var r=(i=i.slice(0)).length;n<r;++n)i[n].apply(this,t)}return this},n.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},n.prototype.hasListeners=function(e){return!!this.listeners(e).length}},function(e,t,i){"use strict";function n(e){this.region=document.createElement("div"),this.options=e||{},this.configure(),document.body.appendChild(this.region)}n.prototype.configure=function(){var e=this.options,t=this.region;t.setAttribute("aria-live",e.ariaLive||"polite"),t.setAttribute("role",e.role||"log"),t.setAttribute("aria-relevant",e.ariaRelevant||"additions"),t.setAttribute("aria-atomic",e.ariaAtomic||"false"),this.region.style.position="absolute",this.region.style.width="1px",this.region.style.height="1px",this.region.style.marginTop="-1px",this.region.style.clip="rect(1px, 1px, 1px, 1px)",this.region.style.overflow="hidden"},n.prototype.announce=function(e,t){var i=document.createElement("div");i.innerHTML=e,this.region.appendChild(i),(t||void 0===t)&&setTimeout(function(){this.region.removeChild(i)}.bind(this),t||7e3)},n.prototype.destroy=function(){this.region.parentNode.removeChild(this.region)},e.exports=n},function(e,t,i){e.exports=function(e){function t(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var i={};return t.m=e,t.c=i,t.i=function(e){return e},t.d=function(e,i,n){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=1)}([function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function r(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}function s(){}Object.defineProperty(t,"__esModule",{value:!0});var a=n(i(4)),o=n(i(7)),l=i(2),c=n(i(3)),u=[.19,1,.22,1];t.default=function(e){function t(e){null===v&&(v=e);var n=e-v,r=f(n/i)*m;h.scrollTop=Math.round(p+r),n<i?(0,o.default)(t):d()}var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=0,f=void 0,d=void 0;if((0,l.isElement)(e))f=a.default.apply(void 0,u),d=s;else{if(!(0,l.isObject)(e))throw new TypeError("The first argument must be HTMLElement or Object.");if(!(0,l.isElement)(e.element))throw new TypeError("`element` must be HTMLElement.");n=(0,l.isNumeric)(e.offset)?e.offset:0,f=(0,l.isArray)(e.bezier)&&4===e.bezier.length?a.default.apply(void 0,r(e.bezier)):a.default.apply(void 0,u),i=e.duration,d=(0,l.isFunction)(e.then)?e.then:s,e=e.element}(!(0,l.isNumeric)(i)||i<0)&&(i=100);var h=(0,c.default)(e),p=h.scrollTop,g=h.offsetTop,v=null,m=("BODY"===h.nodeName?e.getBoundingClientRect().top+(window.scrollY||window.pageYOffset||document.body.scrollTop)-g:e.offsetTop-g)-p+n;(0,o.default)(t)}},function(e,t,i){"use strict";
1var n=function(e){return e&&e.__esModule?e:{default:e}}(i(0));e.exports=n.default},function(e,t,i){"use strict";function n(e){return Object.prototype.toString.call(e)}function r(e){return!isNaN(parseFloat(e))&&isFinite(e)}Object.defineProperty(t,"__esModule",{value:!0});var s="function"==typeof Symbol&&"symbol"==a(Symbol.iterator)?function(e){return a(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":a(e)};t.isObject=function(e){return"[object Object]"===n(e)},t.isArray=function(e){return null!=e&&"[object Array]"===n(e)},t.isNumeric=r,t.isPositive=function(e){return r(e)&&e>=0},t.isFunction=function(e){return null!=e&&"[object Function]"===n(e)},t.isElement=function(e){return"object"===s(window.HTMLElement)?e instanceof window.HTMLElement:!!e&&"object"===(void 0===e?"undefined":s(e))&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}},function(e,t,i){"use strict";function n(e,t){return window.getComputedStyle(e,null).getPropertyValue(t)}function r(e){if(1===e.nodeType)return s.test(function(e){return n(e,"overflow")+n(e,"overflow-y")}(e))&&e.scrollHeight>e.clientHeight}Object.defineProperty(t,"__esModule",{value:!0});var s=/(auto|scroll)/;t.default=function(e){for(var t=function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=t.parentNode;return null===n||"HTML"===n.nodeName?i:e(n,i.concat(n))}(e),i=document.body,n=0,s=t.length;n<s;n++)if(r(t[n])){i=t[n];break}return i}},function(e,t){function i(e,t){return 1-3*t+3*e}function n(e,t){return 3*t-6*e}function r(e){return 3*e}function s(e,t,s){return((i(t,s)*e+n(t,s))*e+r(t))*e}function a(e,t,s){return 3*i(t,s)*e*e+2*n(t,s)*e+r(t)}
1function o(e,t,i,n,r){var a,o,l=0;do{(a=s(o=t+(i-t)/2,n,r)-e)>0?i=o:t=o}while(Math.abs(a)>u&&++l<f);return o}function l(e,t,i,n){for(var r=0;r<c;++r){var o=a(t,i,n);if(0===o)return t;t-=(s(t,i,n)-e)/o}return t}var c=4,u=1e-7,f=10,d=.1,h="function"==typeof Float32Array;e.exports=function(e,t,i,n){function r(t){for(var n=0,r=1;10!==r&&c[r]<=t;++r)n+=d;--r;var s=n+(t-c[r])/(c[r+1]-c[r])*d,u=a(s,e,i);return u>=.001?l(t,s,e,i):0===u?s:o(t,n,n+d,e,i)}if(!(0<=e&&e<=1&&0<=i&&i<=1))throw new Error("bezier x values must be in [0, 1] range");var c=h?new Float32Array(11):new Array(11);if(e!==t||i!==n)for(var u=0;u<11;++u)c[u]=s(u*d,e,i);return function(a){return e===t&&i===n?a:0===a?0:1===a?1:s(r(a),t,n)}}},function(e,t,i){(function(t){(function(){var i,n,r,s,a,o;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:null!=t&&t.hrtime?(e.exports=function(){return(i()-a)/1e6},n=t.hrtime,s=(i=function(){var e;return 1e9*(e=n())[0]+e[1]})(),o=1e9*t.uptime(),a=s-o):Date.now?(e.exports=function(){return Date.now()-r},r=Date.now()):(e.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(this)}).call(t,i(6))},function(e,t){function i(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function r(e){if(c===setTimeout)return setTimeout(e,0);if((c===i||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function s(){p&&d&&(p=!1,d.length?h=d.concat(h):g=-1,h.length&&a())}function a(){if(!p){var e=r(s);p=!0;for(var t=h.length;t;){for(d=h,h=[];++g<t;)d&&d[g].run();g=-1,t=h.length}d=null,p=!1,function(e){if(u===clearTimeout)return clearTimeout(e);if((u===n||!u)&&clearTimeout)return u=clearTimeout,clearTimeout(e);try{u(e)}catch(t){try{return u.call(null,e)}catch(t){return u.call(this,e)}}}(e)}}function o(e,t){this.fun=e,this.array=t}function l(){}var c,u,f=e.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:i}catch(e){c=i}try{u="function"==typeof clearTimeout?clearTimeout:n}catch(e){u=n}}();var d,h=[],p=!1,g=-1;f.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];h.push(new o(e,t)),1!==h.length||p||r(a)},o.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=l,f.addListener=l,f.once=l,f.off=l,f.removeListener=l,f.removeAllListeners=l,f.emit=l,f.binding=function(e){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(e){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(e,t,i){(function(t){for(var n=i(5),r="undefined"==typeof window?t:window,s=["moz","webkit"],a="AnimationFrame",o=r["request"+a],l=r["cancel"+a]||r["cancelRequest"+a],c=0;!o&&c<s.length;c++)o=r[s[c]+"Request"+a],l=r[s[c]+"Cancel"+a]||r[s[c]+"CancelRequest"+a];if(!o||!l){var u=0,f=0,d=[];o=function(e){if(0===d.length){var t=n(),i=Math.max(0,1e3/60-(t-u));u=i+t,setTimeout((function(){var e=d.slice(0);d.length=0;for(var t=function(){if(!e[i].cancelled)try{e[i].callback(u)}catch(e){setTimeout((function(){throw e}),0)}},i=0;i<e.length;i++)t()}),Math.round(i))}return d.push({handle:++f,callback:e,cancelled:!1}),f},l=function(e){for(var t=0;t<d.length;t++)d[t].handle===e&&(d[t].cancelled=!0)}}e.exports=function(e){return o.call(r,e)},e.exports.cancel=function(){l.apply(r,arguments)},e.exports.polyfill=function(){r.requestAnimationFrame=o,r.cancelAnimationFrame=l}}).call(t,i(8))},function(e,t){var i;i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(e){"object"==("undefined"==typeof window?"undefined":a(window))&&(i=window)}e.exports=i}])},function(e,t,i){"use strict";e.exports=function(e,t){var i=e.clientHeight,n=t.clientHeight,r=e.scrollTop,s=t.offsetTop;return!(r>s||r+i-n<s)}},function(e,t,i){"use strict";e.exports=function(e){var t=window.innerHeight,i=e.getBoundingClientRect(),n=i.top<0,r=i.bottom>t,s=!n&&!r,a={visible:s};return s||(a.position=n?"top":"bottom"),a}},function(e,t,i){"use strict";var n,r=i(11),s=(n=r)&&n.__esModule?n:{default:n};e.exports={contains:function(e,t){return t.filter((function(t){return(0,s.default)(t).toLowerCase().indexOf(e.toLowerCase())>-1}))},equals:function(e,t){return t.filter((function(t){return(0,s.default)(t).toLowerCase()===e.toLowerCase()}))},"starts-with":function(e,t){return t.filter((function(t){return 0===(0,s.default)(t).toLowerCase().indexOf(e.toLowerCase())}))}}},function(e,t,i){"use strict";e.exports=function(e){return e.getAttribute("data-value")||e.innerText}},function(e,t,i){"use strict";var n,r=i(13),s=(n=r)&&n.__esModule?n:{default:n};t.attach=function(e,t,i){if("function"==typeof i)return t.addEventListener(e,i);i&&i.length&&t.addEventListener(e,(function(e){var t=s.default[e.which];
1i.forEach((function(i){i.keys.indexOf(t)>-1&&(i.preventDefault&&e.preventDefault(),i.callback(e,t))}))}))},t.up=function(e,i){return t.attach("keyup",e,i)},t.down=function(e,i){return t.attach("keydown",e,i)},t.press=function(e,i){return t.attach("keypress",e,i)}},function(e,t,i){"use strict";e.exports={8:"backspace",9:"tab",13:"enter",27:"escape",32:"space",37:"left",38:"up",39:"right",40:"down"}},function(e,t,i){"use strict";e.exports=function(e,t,i){if(t=t.length?t:[t],i&&t.indexOf(e)>-1)return!0;for(var n=e.parentNode;n&&"HTML"!==n.tagName;){if(t.indexOf(n)>-1)return!0;n=n.parentNode}return!1}},function(e,t,i){"use strict";var n,r=i(16),s=(n=r)&&n.__esModule?n:{default:n};e.exports=function(e,t,i){return i=i||document,"string"==typeof e?t?s.default.all(e,i):(0,s.default)(e,i):e}},function(e,t,i){"use strict";(e.exports=function(e,t){return(t=t||document).querySelector(e)}).all=function(e,t){return t=t||document,Array.prototype.slice.call(t.querySelectorAll(e))}},function(e,t,i){"use strict";e.exports=function(e,t){var i=e.filter((function(e){return e.options.indexOf(t)>-1}));return i.length&&i[0]}},function(e,t,i){"use strict";var n,r=i(0),s=(n=r)&&n.__esModule?n:{default:n};e.exports=function(e,t,i){var n=e.querySelector(".combobo-no-results");!i||t.length||n?n&&t.length&&e.removeChild(n):(n=document.createElement("div"),(0,s.default)(n).add("combobo-no-results"),n.innerHTML=i,e.appendChild(n))}},function(e,t,i){"use strict";var n,r=i(20),s=(n=r)&&n.__esModule?n:{default:n};e.exports=function(e,t,i){t.id=t.id||(0,s.default)(),e.setAttribute("role","combobox"),t.setAttribute("role","listbox"),e.setAttribute("aria-owns",t.id),e.setAttribute("aria-autocomplete","list"),e.setAttribute("aria-expanded","false"),i.forEach((function(e){e.setAttribute("role","option"),e.id=e.id||(0,s.default)()}))}},function(e,t,i){"use strict";var n,r=i(21),s=(n=r)&&n.__esModule?n:{default:n};e.exports=function e(t){t=t||8;var i=(0,s.default)(t);return document.getElementById(i)?e(t):i}},function(e,t,i){(function(n){var r=i(26);function s(e){r("string"==typeof e,"the list of characters must be a string!");var t=n.byteLength(e);return function(i){r("number"==typeof(i=i||10)&&i>=0,"the length of the random string must be a number!");for(var n="",s=0;s<i;s++)n+=e[Math.floor(t*Math.random())];return n}}(t=e.exports=s("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")).base62=t,t.base36=s("abcdefghijklmnopqrstuvwxyz0123456789"),t.base10=s("0123456789"),t.create=s}).call(t,i(22).Buffer)},function(e,t,i){"use strict";(function(e){
2/*!
3         * The buffer module from node.js, for the browser.
4         *
5         * @author   Feross Aboukhadijeh <[email protected]> <http://feross.org>
6         * @license  MIT
7         */
8var n=i(23),r=i(24),s=i(25);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,i){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,i);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return c(this,e,t,i)}function c(e,t,i,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,i,n){if(t.byteLength,i<0||t.byteLength<i)throw new RangeError("'offset' is out of bounds");if(t.byteLength<i+(n||0))throw new RangeError("'length' is out of bounds");return t=void 0===i&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,i):new Uint8Array(t,i,n),l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=d(e,t),e}(e,t,i,n):"string"==typeof t?function(e,t,i){if("string"==typeof i&&""!==i||(i="utf8"),!l.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var n=0|p(t,i),r=(e=o(e,n)).write(t,i);return r!==n&&(e=e.slice(0,r)),e}(e,t,i):function(e,t){if(l.isBuffer(t)){var i=0|h(t.length);return 0===(e=o(e,i)).length||t.copy(e,0,0,i),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?o(e,0):d(e,t);if("Buffer"===t.type&&s(t.data))return d(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(u(t),e=o(e,t<0?0:0|h(t)),!l.TYPED_ARRAY_SUPPORT)for(var i=0;i<t;++i)e[i]=0;return e}function d(e,t){var i=t.length<0?0:0|h(t.length);e=o(e,i);for(var n=0;n<i;n+=1)e[n]=255&t[n];return e}function h(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&
vendor: 21,046 bytes, lines 8-14
8(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var i=e.length;if(0===i)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return D(e).length;default:if(n)return V(e).length;t=(""+t).toLowerCase(),n=!0}}function g(e,t,i){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,i);case"utf8":case"utf-8":return $(this,t,i);case"ascii":return O(this,t,i);case"latin1":case"binary":return T(this,t,i);case"base64":return x(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,i);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function v(e,t,i){var n=e[t];e[t]=e[i],e[i]=n}function m(e,t,i,n,r){if(0===e.length)return-1;if("string"==typeof i?(n=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=r?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(r)return-1;i=e.length-1}else if(i<0){if(!r)return-1;i=0}if("string"==typeof t&&(t=l.from(t,n)),l.isBuffer(t))return 0===t.length?-1:y(e,t,i,n,r);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,i):Uint8Array.prototype.lastIndexOf.call(e,t,i):y(e,[t],i,n,r);throw new TypeError("val must be string, number or Buffer")}function y(e,t,i,n,r){var s,a=1,o=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,o/=2,l/=2,i/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(r){var u=-1;for(s=i;s<o;s++)if(c(e,s)===c(t,-1===u?0:s-u)){if(-1===u&&(u=s),s-u+1===l)return u*a}else-1!==u&&(s-=s-u),u=-1}else for(i+l>o&&(i=o-l),s=i;s>=0;s--){for(var f=!0,d=0;d<l;d++)if(c(e,s+d)!==c(t,d)){f=!1;break}if(f)return s}return-1}function b(e,t,i,n){i=Number(i)||0;var r=e.length-i;n?(n=Number(n))>r&&(n=r):n=r;var s=t.length;if(s%2!=0)throw new TypeError("Invalid hex string");n>s/2&&(n=s/2);for(var a=0;a<n;++a){var o=parseInt(t.substr(2*a,2),16);if(isNaN(o))return a;e[i+a]=o}return a}function _(e,t,i,n){return N(V(t,e.length-i),e,i,n)}function w(e,t,i,n){return N(function(e){for(var t=[],i=0;i<e.length;++i)t.push(255&e.charCodeAt(i));return t}(t),e,i,n)}function C(e,t,i,n){return w(e,t,i,n)}function k(e,t,i,n){return N(D(t),e,i,n)}function S(e,t,i,n){return N(function(e,t){for(var i,n,r,s=[],a=0;a<e.length&&!((t-=2)<0);++a)i=e.charCodeAt(a),n=i>>8,r=i%256,s.push(r),s.push(n);return s}(t,e.length-i),e,i,n)}function x(e,t,i){return 0===t&&i===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,i))}function $(e,t,i){i=Math.min(e.length,i);for(var n=[],r=t;r<i;){var s,a,o,l,c=e[r],u=null,f=c>239?4:c>223?3:c>191?2:1;if(r+f<=i)switch(f){case 1:c<128&&(u=c);break;case 2:128==(192&(s=e[r+1]))&&(l=(31&c)<<6|63&s)>127&&(u=l);break;case 3:s=e[r+1],a=e[r+2],128==(192&s)&&128==(192&a)&&(l=(15&c)<<12|(63&s)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:s=e[r+1],a=e[r+2],o=e[r+3],128==(192&s)&&128==(192&a)&&128==(192&o)&&(l=(15&c)<<18|(63&s)<<12|(63&a)<<6|63&o)>65535&&l<1114112&&(u=l)}null===u?(u=65533,f=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),r+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var i="",n=0;n<t;)i+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return i}(n)}function O(e,t,i){var n="";i=Math.min(e.length,i);for(var r=t;r<i;++r)n+=String.fromCharCode(127&e[r]);return n}function T(e,t,i){var n="";i=Math.min(e.length,i);for(var r=t;r<i;++r)n+=String.fromCharCode(e[r]);return n}function P(e,t,i){var n,r=e.length;(!t||t<0)&&(t=0),(!i||i<0||i>r)&&(i=r);for(var s="",a=t;a<i;++a)s+=(n=e[a])<16?"0"+n.toString(16):n.toString(16);return s}function j(e,t,i){for(var n=e.slice(t,i),r="",s=0;s<n.length;s+=2)r+=String.fromCharCode(n[s]+256*n[s+1]);return r}function A(e,t,i){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>i)throw new RangeError("Trying to access beyond buffer length")}function E(e,t,i,n,r,s){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<s)throw new RangeError('"value" argument is out of bounds');if(i+n>e.length)throw new RangeError("Index out of range")}function I(e,t,i,n){t<0&&(t=65535+t+1);for(var r=0,s=Math.min(e.length-i,2);r<s;++r)e[i+r]=(t&255<<8*(n?r:1-r))>>>8*(n?r:1-r)}function L(e,t,i,n){t<0&&(t=4294967295+t+1);for(var r=0,s=Math.min(e.length-i,4);r<s;++r)e[i+r]=t>>>8*(n?r:3-r)&255}function M(e,t,i,n,r,s){if(i+n>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function F(e,t,i,n,s){return s||M(e,0,i,4),r.write(e,t,i,n,23,4),i+4}function R(e,t,i,n,s){return s||M(e,0,i,8),r.write(e,t,i,n,52,8),i+8}t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,i){return c(null,e,t,i)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,i){return function(e,t,i,n){return u(t),t<=0?o(e,t):void 0!==i?"string"==typeof n?o(e,t).fill(i,n):o(e,t).fill(i):o(e,t)}(null,e,t,i)},l.allocUnsafe=function(e){return f(null,e)},l.allocUnsafeSlow=function(e){return f(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var i=e.length,n=t.length,r=0,s=Math.min(i,n);r<s;++r)if(e[r]!==t[r]){i=e[r],n=t[r];break}return i<n?-1:n<i?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!s(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var i;if(void 0===t)for(t=0,i=0;i<e.length;++i)t+=e[i].length;var n=l.allocUnsafe(t),r=0;for(i=0;i<e.length;++i){var a=e[i];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,r),r+=a.length}return n},l.byteLength=p,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?$(this,0,e):g.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",i=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,i,n,r){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===n&&(n=0),void 0===r&&(r=this.length),t<0||i>e.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&t>=i)return 0;if(n>=r)return-1;if(t>=i)return 1;if(this===e)return 0;for(var s=(r>>>=0)-(n>>>=0),a=(i>>>=0)-(t>>>=0),o=Math.min(s,a),c=this.slice(n,r),u=e.slice(t,i),f=0;f<o;++f)if(c[f]!==u[f]){s=c[f],a=u[f];break}return s<a?-1:a<s?1:0},l.prototype.includes=function(e,t,i){return-1!==this.indexOf(e,t,i)},l.prototype.indexOf=function(e,t,i){return m(this,e,t,i,!0)},l.prototype.lastIndexOf=function(e,t,i){return m(this,e,t,i,!1)},l.prototype.write=function(e,t,i,n){if(void 0===t)n="utf8",i=this.length,t=0;else if(void 0===i&&"string"==typeof t)n=t,i=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(i)?(i|=0,void 0===n&&(n="utf8")):(n=i,i=void 0)}var r=this.length-t;if((void 0===i||i>r)&&(i=r),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var s=!1;;)switch(n){case"hex":return b(this,e,t,i);case"utf8":case"utf-8":return _(this,e,t,i);case"ascii":return w(this,e,t,i);case"latin1":case"binary":return C(this,e,t,i);case"base64":return k(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,i);default:if(s)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),s=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(e,t){var i,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(i=this.subarray(e,t)).__proto__=l.prototype;else{var r=t-e;i=new l(r,void 0);for(var s=0;s<r;++s)i[s]=this[s+e]}return i},l.prototype.readUIntLE=function(e,t,i){e|=0,t|=0,i||A(e,t,this.length);for(var n=this[e],r=1,s=0;++s<t&&(r*=256);)n+=this[e+s]*r;return n},l.prototype.readUIntBE=function(e,t,i){e|=0,t|=0,i||A(e,t,this.length);for(var n=this[e+--t],r=1;t>0&&(r*=256);)n+=this[e+--t]*r;return n},l.prototype.readUInt8=function(e,t){return t||A(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||A(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||A(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,i){e|=0,t|=0,i||A(e,t,this.length);for(var n=this[e],r=1,s=0;++s<t&&(r*=256);)n+=this[e+s]*r;return n>=(r*=128)&&(n-=Math.pow(2,8*t)),n},l.prototype.readIntBE=function(e,t,i){e|=0,t|=0,i||A(e,t,this.length);for(var n=t,r=1,s=this[e+--n];n>0&&(r*=256);)s+=this[e+--n]*r;return s>=(r*=128)&&(s-=Math.pow(2,8*t)),s},l.prototype.readInt8=function(e,t){return t||A(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||A(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},l.prototype.readInt16BE=function(e,t){t||A(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},l.prototype.readInt32LE=function(e,t){return t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||A(e,4,this.length),r.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||A(e,4,this.length),r.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||A(e,8,this.length),r.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||A(e,8,this.length),r.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,i,n){e=+e,t|=0,i|=0,n||E(this,e,t,i,Math.pow(2,8*i)-1,0);var r=1,s=0;for(this[t]=255&e;++s<i&&(r*=256);)this[t+s]=e/r&255;return t+i},l.prototype.writeUIntBE=function(e,t,i,n){e=+e,t|=0,i|=0,n||E(this,e,t,i,Math.pow(2,8*i)-1,0);var r=i-1,s=1;for(this[t+r]=255&e;--r>=0&&(s*=256);)this[t+r]=e/s&255;return t+i},l.prototype.writeUInt8=function(e,t,i){return e=+e,t|=0,i||E(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,i){return e=+e,t|=0,i||E(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,i){return e=+e,t|=0,i||E(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,i){return e=+e,t|=0,i||E(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,i){return e=+e,t|=0,i||E(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,i,n){if(e=+e,t|=0,!n){var r=Math.pow(2,8*i-1);E(this,e,t,i,r-1,-r)}var s=0,a=1,o=0;for(this[t]=255&e;++s<i&&(a*=256);)e<0&&0===o&&0!==this[t+s-1]&&(o=1),this[t+s]=(e/a>>0)-o&255;return t+i},l.prototype.writeIntBE=function(e,t,i,n){if(e=+e,t|=0,!n){var r=Math.pow(2,8*i-1);E(this,e,t,i,r-1,-r)}var s=i-1,a=1,o=0;for(this[t+s]=255&e;--s>=0&&(a*=256);)e<0&&0===o&&0!==this[t+s+1]&&(o=1),this[t+s]=(e/a>>0)-o&255;return t+i},l.prototype.writeInt8=function(e,t,i){return e=+e,t|=0,i||E(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,i){return e=+e,t|=0,i||E(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,i){return e=+e,t|=0,i||E(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,i){return e=+e,t|=0,i||E(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,i){return e=+e,t|=0,i||E(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,i){return F(this,e,t,!0,i)},l.prototype.writeFloatBE=function(e,t,i){return F(this,e,t,!1,i)},l.prototype.writeDoubleLE=function(e,t,i){return R(this,e,t,!0,i)},l.prototype.writeDoubleBE=function(e,t,i){return R(this,e,t,!1,i)},l.prototype.copy=function(e,t,i,n){if(i||(i=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<i&&(n=i),n===i)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-i&&(n=e.length-t+i);var r,s=n-i;if(this===e&&i<t&&t<n)for(r=s-1;r>=0;--r)e[r+t]=this[r+i];else if(s<1e3||!l.TYPED_ARRAY_SUPPORT)for(r=0;r<s;++r)e[r+t]=this[r+i];else Uint8Array.prototype.set.call(e,this.subarray(i,i+s),t);return s},l.prototype.fill=function(e,t,i,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,i=this.length):"string"==typeof i&&(n=i,i=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!l.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;var s;if(t>>>=0,i=void 0===i?this.length:i>>>0,e||(e=0),"number"==typeof e)for(s=t;s<i;++s)this[s]=e;else{var a=l.isBuffer(e)?e:V(new l(e,n).toString()),o=a.length;for(s=0;s<i-t;++s)this[s+t]=a[s%o]}return this};var z=/[^+\/0-9A-Za-z-_]/g;function V(e,t){var i;t=t||1/0;for(var n=e.length,r=null,s=[],a=0;a<n;++a){if((i=e.charCodeAt(a))>55295&&i<57344){if(!r){if(i>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&s.push(239,191,189);continue}r=i;continue}if(i<56320){(t-=3)>-1&&s.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(t-=3)>-1&&s.push(239,191,189);if(r=null,i<128){if((t-=1)<0)break;s.push(i)}else if(i<2048){if((t-=2)<0)break;s.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;s.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return s}function D(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(z,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function N(e,t,i,n){for(var r=0;r<n&&!(r+i>=t.length||r>=e.length);++r)t[r+i]=e[r];return r}}).call(t,i(1))},function(e,t,i){"use strict";t.byteLength=function(e){var t=c(e),i=t[0],n=t[1];return 3*(i+n)/4-n},t.toByteArray=function(e){for(var t,i=c(e),n=i[0],a=i[1],o=new s(function(e,t,i){return 3*(t+i)/4-i}(0,n,a)),l=0,u=a>0?n-4:n,f=0;f<u;f+=4)t=r[e.charCodeAt(f)]<<18|r[e.charCodeAt(f+1)]<<12|r[e.charCodeAt(f+2)]<<6|r[e.charCodeAt(f+3)],o[l++]=t>>16&255,o[l++]=t>>8&255,o[l++]=255&t;return 2===a&&(t=r[e.charCodeAt(f)]<<2|r[e.charCodeAt(f+1)]>>4,o[l++]=255&t),1===a&&(t=r[e.charCodeAt(f)]<<10|r[e.charCodeAt(f+1)]<<4|r[e.charCodeAt(f+2)]>>2,o[l++]=t>>8&255,o[l++]=255&t),o},t.fromByteArray=function(e){for(var t,i=e.length,r=i%3,s=[],a=0,o=i-r;a<o;a+=16383)s.push(u(e,a,a+16383>o?o:a+16383));return 1===r?(t=e[i-1],s.push(n[t>>2]+n[t<<4&63]+"==")):2===r&&(t=(e[i-2]<<8)+e[i-1],s.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),s.join("")};for(var n=[],r=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,l=a.length;o<l;++o)n[o]=a[o],r[a.charCodeAt(o)]=o;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");return-1===i&&(i=t),[i,i===t?0:4-i%4]}function u(e,t,i){for(var r,s,a=[],o=t;o<i;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),a.push(n[(s=r)>>18&63]+n[s>>12&63]+n[s>>6&63]+n[63&s]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,i,n,r){var s,a,o=8*r-n-1,l=(1<<o)-1,c=l>>1,u=-7,f=i?r-1:0,d=i?-1:1,h=e[t+f];for(f+=d,s=h&(1<<-u)-1,h>>=-u,u+=o;u>0;s=256*s+e[t+f],f+=d,u-=8);for(a=s&(1<<-u)-1,s>>=-u,u+=n;u>0;a=256*a+e[t+f],f+=d,u-=8);if(0===s)s=1-c;else{if(s===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),s-=c}return(h?-1:1)*a*Math.pow(2,s-n)},t.write=function(e,t,i,n,r,s){var a,o,l,c=8*s-r-1,u=(1<<c)-1,f=u>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:s-1,p=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(a++,l/=2),a+f>=u?(o=0,a=u):a+f>=1?(o=(t*l-1)*Math.pow(2,r),a+=f):(o=t*Math.pow(2,f-1)*Math.pow(2,r),a=0));r>=8;e[i+h]=255&o,h+=p,o/=256,r-=8);for(a=a<<r|o,c+=r;c>0;e[i+h]=255&a,h+=p,a/=256,c-=8);e[i+h-p]|=128*g}},function(e,t){var i={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==i.call(e)}},function(e,t,i){"use strict";(function(t){var n=i(27);
9/*!
10         * The buffer module from node.js, for the browser.
11         *
12         * @author   Feross Aboukhadijeh <[email protected]> <http://feross.org>
13         * @license  MIT
14         */function r(e,t){if(e===t)return 0;for(var i=e.length,n=t.length,r=0,s=Math.min(i,n);r<s;++r)if(e[r]!==t[r]){i=e[r],n=t[r];break}return i<n?-1:n<i?1:0}function s(e){return t.Buffer&&"function"==typeof t.Buffer.isBuffer?t.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var o=i(28),l=Object.prototype.hasOwnProperty,c=Array.prototype.slice,u="foo"===function(){}.name;function f(e){return Object.prototype.toString.call(e)}function d(e){return!s(e)&&"function"==typeof t.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer)))}var h=e.exports=b,p=/\s*function\s+([^\(\s]*)\s*/;function g(e){if(o.isFunction(e)){if(u)return e.name;var t=e.toString().match(p);return t&&t[1]}}function v(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function m(e){if(u||!o.isFunction(e))return o.inspect(e);var t=g(e);return"[Function"+(t?": "+t:"")+"]"}function y(e,t,i,n,r){throw new h.AssertionError({message:i,actual:e,expected:t,operator:n,stackStartFunction:r})}function b(e,t){e||y(e,!0,t,"==",h.ok)}function _(e,t,i,n){if(e===t)return!0;
vendor: 3,371 bytes, line 14
14if(s(e)&&s(t))return 0===r(e,t);if(o.isDate(e)&&o.isDate(t))return e.getTime()===t.getTime();if(o.isRegExp(e)&&o.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"===a(e)||null!==t&&"object"===a(t)){if(d(e)&&d(t)&&f(e)===f(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===r(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(s(e)!==s(t))return!1;var l=(n=n||{actual:[],expected:[]}).actual.indexOf(e);return-1!==l&&l===n.expected.indexOf(t)||(n.actual.push(e),n.expected.push(t),function(e,t,i,n){if(null==e||null==t)return!1;if(o.isPrimitive(e)||o.isPrimitive(t))return e===t;if(i&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var r=w(e),s=w(t);if(r&&!s||!r&&s)return!1;if(r)return e=c.call(e),t=c.call(t),_(e,t,i);var a,l,u=S(e),f=S(t);if(u.length!==f.length)return!1;for(u.sort(),f.sort(),l=u.length-1;l>=0;l--)if(u[l]!==f[l])return!1;for(l=u.length-1;l>=0;l--)if(a=u[l],!_(e[a],t[a],i,n))return!1;return!0}(e,t,i,n))}return i?e===t:e==t}function w(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function C(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function k(e,t,i,n){var r;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof i&&(n=i,i=null),r=function(e){var t;try{e()}catch(e){t=e}return t}(t),n=(i&&i.name?" ("+i.name+").":".")+(n?" "+n:"."),e&&!r&&y(r,i,"Missing expected exception"+n);var s="string"==typeof n,a=!e&&r&&!i;if((!e&&o.isError(r)&&s&&C(r,i)||a)&&y(r,i,"Got unwanted exception"+n),e&&r&&i&&!C(r,i)||!e&&r)throw r}h.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return v(m(e.actual),128)+" "+e.operator+" "+v(m(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||y;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var i=new Error;if(i.stack){var n=i.stack,r=g(t),s=n.indexOf("\n"+r);if(s>=0){var a=n.indexOf("\n",s+1);n=n.substring(a+1)}this.stack=n}}},o.inherits(h.AssertionError,Error),h.fail=y,h.ok=b,h.equal=function(e,t,i){e!=t&&y(e,t,i,"==",h.equal)},h.notEqual=function(e,t,i){e==t&&y(e,t,i,"!=",h.notEqual)},h.deepEqual=function(e,t,i){_(e,t,!1)||y(e,t,i,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(e,t,i){_(e,t,!0)||y(e,t,i,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(e,t,i){_(e,t,!1)&&y(e,t,i,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function e(t,i,n){_(t,i,!0)&&y(t,i,n,"notDeepStrictEqual",e)},h.strictEqual=function(e,t,i){e!==t&&y(e,t,i,"===",h.strictEqual)},h.notStrictEqual=function(e,t,i){e===t&&y(e,t,i,"!==",h.notStrictEqual)},h.throws=function(e,t,i){k(!0,e,t,i)},h.doesNotThrow=function(e,t,i){k(!1,e,t,i)},h.ifError=function(e){if(e)throw e},h.strict=n((function e(t,i){t||y(t,!0,i,"==",e)}),h,{equal:h.strictEqual,deepEqual:h.deepStrictEqual,notEqual:h.notStrictEqual,notDeepEqual:h.notDeepStrictEqual}),h.strict.strict=h.strict;var S=Object.keys||function(e){var t=[];for(var i in e)l.call(e,i)&&t.push(i);return t}}
vendor: 4,560 bytes, lines 14-19
14).call(t,i(1))},function(e,t,i){"use strict";
15/*
16      object-assign
17      (c) Sindre Sorhus
18      @license MIT
19      */var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},i=0;i<10;i++)t["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var i,o,l=a(e),c=1;c<arguments.length;c++){for(var u in i=Object(arguments[c]))r.call(i,u)&&(l[u]=i[u]);if(n){o=n(i);for(var f=0;f<o.length;f++)s.call(i,o[f])&&(l[o[f]]=i[o[f]])}}return l}},function(e,t,i){(function(e){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),i={},n=0;n<t.length;n++)i[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return i},r=/%[sdj%]/g;t.format=function(e){if(!y(e)){for(var t=[],i=0;i<arguments.length;i++)t.push(l(arguments[i]));return t.join(" ")}i=1;for(var n=arguments,s=n.length,a=String(e).replace(r,(function(e){if("%%"===e)return"%";if(i>=s)return e;switch(e){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(e){return"[Circular]"}default:return e}})),o=n[i];i<s;o=n[++i])v(o)||!w(o)?a+=" "+o:a+=" "+l(o);return a},t.deprecate=function(i,n){if(void 0!==e&&!0===e.noDeprecation)return i;if(void 0===e)return function(){return t.deprecate(i,n).apply(this,arguments)};var r=!1;return function(){if(!r){if(e.throwDeprecation)throw new Error(n);e.traceDeprecation?console.trace(n):console.error(n),r=!0}return i.apply(this,arguments)}};var s,o={};function l(e,i){var n={seen:[],stylize:u};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(i)?n.showHidden=i:i&&t._extend(n,i),b(n.showHidden)&&(n.showHidden=!1),b(n.depth)&&(n.depth=2),b(n.colors)&&(n.colors=!1),b(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),f(n,e,n.depth)}function c(e,t){var i=l.styles[t];return i?"�["+l.colors[i][0]+"m"+e+"�["+l.colors[i][1]+"m":e}function u(e,t){return e}function f(e,i,n){if(e.customInspect&&i&&S(i.inspect)&&i.inspect!==t.inspect&&(!i.constructor||i.constructor.prototype!==i)){var r=i.inspect(n,e);return y(r)||(r=f(e,r,n)),r}var s=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(y(t)){var i="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(i,"string")}return m(t)?e.stylize(""+t,"number"):g(t)?e.stylize(""+t,"boolean"):v(t)?e.stylize("null","null"):void 0}(e,i);if(s)return s;var a=Object.keys(i),o=function(e){var t={};return e.forEach((function(e,i){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(i)),k(i)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(i);if(0===a.length){if(S(i)){var l=i.name?": "+i.name:"";return e.stylize("[Function"+l+"]","special")}if(_(i))return e.stylize(RegExp.prototype.toString.call(i),"regexp");if(C(i))return e.stylize(Date.prototype.toString.call(i),"date");if(k(i))return d(i)}var c,u="",w=!1,x=["{","}"];return p(i)&&(w=!0,x=["[","]"]),S(i)&&(u=" [Function"+(i.name?": "+i.name:"")+"]"),_(i)&&(u=" "+RegExp.prototype.toString.call(i)),C(i)&&(u=" "+Date.prototype.toUTCString.call(i)),k(i)&&(u=" "+d(i)),0!==a.length||w&&0!=i.length?n<0?_(i)?e.stylize(RegExp.prototype.toString.call(i),"regexp"):e.stylize("[Object]","special"):(e.seen.push(i),c=w?function(e,t,i,n,r){for(var s=[],a=0,o=t.length;a<o;++a)P(t,String(a))?s.push(h(e,t,i,n,String(a),!0)):s.push("");return r.forEach((function(r){r.match(/^\d+$/)||s.push(h(e,t,i,n,r,!0))})),s}(e,i,n,o,a):a.map((function(t){return h(e,i,n,o,t,w)})),e.seen.pop(),function(e,t,i){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?i[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+i[1]:i[0]+t+" "+e.join(", ")+" "+i[1]}(c,u,x)):x[0]+u+x[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,i,n,r,s){var a,o,l;if((l=Object.getOwnPropertyDescriptor(t,r)||{value:t[r]}).get?o=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(o=e.stylize("[
19Setter]","special")),P(n,r)||(a="["+r+"]"),o||(e.seen.indexOf(l.value)<0?(o=v(i)?f(e,l.value,null):f(e,l.value,i-1)).indexOf("\n")>-1&&(o=s?o.split("\n").map((function(e){return"  "+e})).join("\n").substr(2):"\n"+o.split("\n").map((function(e){return"   "+e})).join("\n")):o=e.stylize("[Circular]","special")),b(a)){if(s&&r.match(/^\d+$/))return o;(a=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+o}function p(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function v(e){return null===e}function m(e){return"number"==typeof e}function y(e){return"string"==typeof e}function b(e){return void 0===e}function _(e){return w(e)&&"[object RegExp]"===x(e)}function w(e){return"object"===a(e)&&null!==e}function C(e){return w(e)&&"[object Date]"===x(e)}function k(e){return w(e)&&("[object Error]"===x(e)||e instanceof Error)}function S(e){return"function"==typeof e}function x(e){return Object.prototype.toString.call(e)}function $(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(i){if(b(s)&&(s=e.env.NODE_DEBUG||""),i=i.toUpperCase(),!o[i])if(new RegExp("\\b"+i+"\\b","i").test(s)){var n=e.pid;o[i]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",i,n,e)}}else o[i]=function(){};return o[i]},t.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,t.isBoolean=g,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=y,t.isSymbol=function(e){return"symbol"===a(e)},t.isUndefined=b,t.isRegExp=_,t.isObject=w,t.isDate=C,t.isError=k,t.isFunction=S,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===a(e)||void 0===e},t.isBuffer=i(30);var O=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(){var e=new Date,t=[$(e.getHours()),$(e.getMinutes()),$(e.getSeconds())].join(":");return[e.getDate(),O[e.getMonth()],t].join(" ")}function P(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",T(),t.format.apply(t,arguments))},t.inherits=i(31),t._extend=function(e,t){if(!t||!w(t))return e;for(var i=Object.keys(t),n=i.length;n--;)e[i[n]]=t[i[n]];return e};var j="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function A(e,t){if(!e){var i=new Error("Promise was rejected with a falsy value");i.reason=e,e=i}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(j&&e[j]){var t;if("function"!=typeof(t=e[j]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,j,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,i,n=new Promise((function(e,n){t=e,i=n})),r=[],s=0;s<arguments.length;s++)r.push(arguments[s]);r.push((function(e,n){e?i(e):t(n)}));try{e.apply(this,r)}catch(e){i(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),j&&Object.defineProperty(t,j,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,n(e))},t.promisify.custom=j,t.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function i(){for(var i=[],n=0;n<arguments.length;n++)i.push(arguments[n]);var r=i.pop();if("function"!=typeof r)throw new TypeError("The last argument must be of type Function");var s=this,a=function(){return r.apply(s,arguments)};t.apply(this,i).then((function(t){e.nextTick(a,null,t)}),(function(t){e.nextTick(A,t,a)}))}return Object.setPrototypeOf(i,Object.getPrototypeOf(t)),Object.defineProperties(i,n(t)),i}}).call(t,i(29))},function(e,t){var i,n,r=e.exports={};function s(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function o(e){if(i===setTimeout)return setTimeout(e,0);if((i===s||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:s}
19catch(e){i=s}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l,c=[],u=!1,f=-1;function d(){u&&l&&(u=!1,l.length?c=l.concat(c):f=-1,c.length&&h())}function h(){if(!u){var e=o(d);u=!0;for(var t=c.length;t;){for(l=c,c=[];++f<t;)l&&l[f].run();f=-1,t=c.length}l=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function g(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];c.push(new p(e,t)),1!==c.length||u||o(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=g,r.addListener=g,r.once=g,r.off=g,r.removeListener=g,r.removeAllListeners=g,r.emit=g,r.prependListener=g,r.prependOnceListener=g,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(e,t){e.exports=function(e){return e&&"object"===a(e)&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}},function(e,t,i){"use strict";e.exports=function(e,t,i){var n=t.value,r=e.innerText,s=r.toLowerCase().indexOf(n.toLowerCase()),a=n.length;return n&&s>=0?r.substring(0,s)+'<span class="'+i+'">'+r.substr(s,a)+"</span>"+r.substring(s+a):r}},function(e,t,i){"use strict";var n,r=i(34),s=(n=r)&&n.__esModule?n:{default:n},a={input:".combobox",list:".listbox",options:".option",groups:null,openClass:"open",activeClass:"active",selectedClass:"selected",useLiveRegion:!0,allowEmpty:!0,multiselect:!1,noResultsText:null,selectionValue:function(e){return e.map((function(e){return e.innerText.trim()})).join(" - ")},optionValue:function(e){return e.innerHTML},announcement:{count:function(e){return e+" options available"},selected:"Selected."},filter:"contains"};e.exports=function(e){var t={},i={};return e.announcement=e.announcement||{},(0,s.default)(i,a.announcement,e.announcement),(0,s.default)(t,a,e),t.announcement=i,t}},function(e,t,i){"use strict";var n=i(35);function r(e,t){for(var i in t)s(t,i)&&(e[i]=t[i])}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e){n(e)||(e={});for(var t=arguments.length,i=1;i<t;i++){var s=arguments[i];n(s)&&r(e,s)}return e}},function(e,t,i){"use strict";
20/*!
21       * is-extendable <https://github.com/jonschlinkert/is-extendable>
22       *
23       * Copyright (c) 2015, Jon Schlinkert.
24       * Licensed under the MIT License.
25       */e.exports=function(e){return null!=e&&("object"===a(e)||"function"==typeof e)}},function(e,t,i){"use strict";e.exports=function(e,t,i,n,r){var s="true"===e.getAttribute("aria-selected"),a=t.announcement.selected,o=e.innerText;o=n&&t.announcement&&t.announcement.groupChange?t.announcement.groupChange(r)+" "+o:o,i(o=s&&a?o+" "+a:o,500)}}])},"object"===a(t)&&"object"===a(e)?e.exports=s():(n=[],void 0===(r="function"==typeof(i=s)?i.apply(t,n):i)||(e.exports=r))}).call(this,i(145)(e))},58:function(e,t,i){"use strict";var n,r=i(5),s=i(42),a=i(49),o=i(134),l=i(22),c=i(27),u={name:"MaxTypesModal",data:function(){return{dontShowAgain:!1,hideMaxTypesModal:!1}},mounted:function(){this.hideMaxTypesModal=this.hasClosedModalBefore(),this.initFoundationModal()},methods:{initFoundationModal:function(){this.hideMaxTypesModal||($(this.$el).foundation(),$(this.$el).foundation("open"),$(this.$el).on("closed.zf.reveal",this.onCloseModal))},onCloseModal:function(){if(sessionStorage.setItem("dkb-has-closed-modal",!0),!0===this.dontShowAgain){var e=new Date;e.setFullYear(e.getFullYear()+5),document.cookie="dkb-remember-modal-choice=true; expires=".concat(e.toUTCString(),"; Path=/")}this.$emit("hide-max-types-modal",!0)},hasClosedModalBefore:function(){return document.cookie.split(";").some((function(e){return e.trim().startsWith("dkb-remember-modal-choice=")}))||"true"===sessionStorage.getItem("dkb-has-closed-modal")}}},f=i(2),d=Object(f.a)(u,(function(){var e=this,t=e._self._c;return e.hideMaxTypesModal?e._e():t("div",{staticClass:"reveal max-types-modal",attrs:{"data-reveal":"","aria-label":"Max types modal","aria-hidden":"true",role:"dialog","aria-labelledby":"max-types-modal-header","data-animation-in":"fade-in","data-animation-out":"fade-out","data-close-on-click":"false"}},[t("div",{staticClass:"modal-head"},[t("h1",{staticClass:"h3",attrs:{id:"login-modal-header"}},[e._v("\n      "+e._s(e.$t("søgeside:max-typer-modal:titel"))+"\n    ")]),e._v(" "),t("button",{staticClass:"close-button",attrs:{"data-close":"",title:e.$t("knap:luk"),t
25ype:"button"}},[t("span",{staticClass:"close-icon",attrs:{"aria-hidden":"true"}},[e._v("×")]),e._v(" "),t("span",{staticClass:"close-text",attrs:{"aria-hidden":"true"}},[e._v(e._s(e.$t("knap:luk")))])])]),e._v(" "),t("div",{staticClass:"modal-body"},[t("h2",{staticClass:"h4"},[e._v("\n      "+e._s(e.$t("søgeside:max-typer-modal:beskrivelse-overskrift"))+"\n    ")]),e._v(" "),t("p",[e._v("\n      "+e._s(e.$t("søgeside:max-typer-modal:beskrivelse-tekst"))+"\n    ")]),e._v(" "),t("h2",{staticClass:"h4"},[e._v("\n      "+e._s(e.$t("søgeside:max-typer-modal:antal-overskrift"))+"\n    ")]),e._v(" "),t("p",[e._v("\n      "+e._s(e.$t("søgeside:max-typer-modal:antal-tekst"))+"\n    ")])]),e._v(" "),t("div",{staticClass:"modal-footer"},[t("fieldset",{staticClass:"checkbox-fieldset"},[t("legend",{attrs:{id:"dont-show-again-lable"}},[e._v("\n        "+e._s(e.$t("søgeside:max-typer-modal:vis-ikke"))+"\n      ")]),e._v(" "),t("label",{attrs:{for:"dont-show-again"}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.dontShowAgain,expression:"dontShowAgain"}],attrs:{id:"dont-show-again","aria-label":"Dont show again",type:"checkbox"},domProps:{checked:Array.isArray(e.dontShowAgain)?e._i(e.dontShowAgain,null)>-1:e.dontShowAgain},on:{change:function(t){var i=e.dontShowAgain,n=t.target,r=!!n.checked;if(Array.isArray(i)){var s=e._i(i,null);n.checked?s<0&&(e.dontShowAgain=i.concat([null])):s>-1&&(e.dontShowAgain=i.slice(0,s).concat(i.slice(s+1)))}else e.dontShowAgain=r}}}),e._v(" "),t("span",{staticClass:"checkmark"}),e._v("\n        "+e._s(e.$t("søgeside:max-typer-modal:vis-ikke"))+"\n      ")])]),e._v(" "),t("button",{staticClass:"button lightblue button--full-width",attrs:{type:"button","data-close":""}},[e._v("\n      "+e._s(e.$t("søgeside:max-typer-modal:accept"))+"\n    ")])])])}),[],!1,null,null,null).exports,h=i(6),p=i(133),g=i(21),v=i.n(g);function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */y=function(){return e};var e={},t=Object.prototype,i=t.hasOwnProperty,n=Object.defineProperty||function(e,t,i){e[t]=i.value},r="function"==typeof Symbol?Symbol:{},s=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function l(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,i){return e[t]=i}}function c(e,t,i,r){var s=t&&t.prototype instanceof d?t:d,a=Object.create(s.prototype),o=new O(r||[]);return n(a,"_invoke",{value:k(e,i,o)}),a}function u(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f={};function d(){}function h(){}function p(){}var g={};l(g,s,(function(){return this}));var v=Object.getPrototypeOf,b=v&&v(v(T([])));b&&b!==t&&i.call(b,s)&&(g=b);var _=p.prototype=d.prototype=Object.create(g);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){var r;n(this,"_invoke",{value:function(n,s){function a(){return new t((function(r,a){!function n(r,s,a,o){var l=u(e[r],e,s);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==m(f)&&i.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,o)}),(function(e){n("throw",e,a,o)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,o)}))}o(l.arg)}(n,s,r,a)}))}return r=r?r.then(a,a):a()}})}function k(e,t,i){var n="suspendedStart";return function(r,s){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===r)throw s;return P()}for(i.method=r,i.arg=s;;){var a=i.delegate;if(a){var o=S(a,i);if(o){if(o===f)continue;return o}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===n)throw n="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);n="executing";var l=u(e,t,i);if("normal"===l.type){if(n=i.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(n="completed",i.method="throw",i.arg=l.arg)}}}function S(e,t){var i=t.method,n=e.iterator[i];if(void 0===n)return t.delegate=null,"throw"===i&&e.iterator.return&&
vendor: 4,790 bytes, line 25
25(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==i&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+i+"' method")),f;var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var s=r.arg;return s?s.done?(t[e.resultName]=s.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):s:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function $(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(i.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:P}}function P(){return{value:void 0,done:!0}}return h.prototype=p,n(_,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,o,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,o,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},w(C.prototype),l(C.prototype,a,(function(){return this})),e.AsyncIterator=C,e.async=function(t,i,n,r,s){void 0===s&&(s=Promise);var a=new C(c(t,i,n,r),s);return e.isGeneratorFunction(i)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(_),l(_,o,"Generator"),l(_,s,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),i=[];for(var n in t)i.push(n);return i.reverse(),function e(){for(;i.length;){var n=i.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=T,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach($),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(i,n){return a.type="throw",a.arg=e,t.next=i,n&&(t.method="next",t.arg=void 0),!!n}for(var r=this.tryEntries.length-1;r>=0;--r){var s=this.tryEntries[r],a=s.completion;if("root"===s.tryLoc)return n("end");if(s.tryLoc<=this.prev){var o=i.call(s,"catchLoc"),l=i.call(s,"finallyLoc");if(o&&l){if(this.prev<s.catchLoc)return n(s.catchLoc,!0);if(this.prev<s.finallyLoc)return n(s.finallyLoc)}else if(o){if(this.prev<s.catchLoc)return n(s.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return n(s.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var s=r;break}}s&&("break"===e||"continue"===e)&&s.tryLoc<=t&&t<=s.finallyLoc&&(s=null);var a=s?s.completion:{};return a.type=e,a.arg=t,s?(this.method="next",this.next=s.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),$(i),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var n=i.completion;if("throw"===n.type){var r=n.arg;$(i)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:T(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=void 0),f}},e}function b(e,t,i,n,r,s,a){try{var o=e[s](a),l=o.value}catch(e){return void i(e)}o.done?t(l):Promise.resolve(l).then(n,r)}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,r,s,a,o=[],l=!0,c=!1;try{if(s=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=s.call(i)).done)&&(o.push(n.value),o.length!==t);l=!0);}catch(e){c=!0,r=e}
25finally{try{if(!l&&null!=i.return&&(a=i.return(),Object(a)!==a))return}finally{if(c)throw r}}return o}}(e,t)||C(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||C(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){if(e){if("string"==typeof e)return k(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?k(e,t):void 0}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function S(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function x(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?S(Object(i),!0).forEach((function(t){O(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):S(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function O(e,t,i){return(t=function(e){var t=function(e,t){if("object"!==m(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===m(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var T={mixins:[c.a],components:{"max-types-modal":d},watch:{geoJson:function(e,t){this.updateMapData()}},data:function(){return{activeLayers:[],poiData:[{id:"standsningssted",altTitle:"Trans
25port",sortOrder:0,icon:"trancit",poiObj:null},{id:"daginstitution",sortOrder:1,icon:"daycare",poiObj:null},{id:"uddannelsesinstitution",altTitle:"Uddannelse",sortOrder:2,icon:"school-education",poiObj:null},{id:"indkoeb",sortOrder:3,icon:"supermarket",poiObj:null},{id:"sport_idraet",altTitle:"Sport/Idræt",sortOrder:4,icon:"sport",poiObj:null},{id:"natur",sortOrder:5,icon:"nature",poiObj:null},{id:"sundhedsinstitution",altTitle:"Sundhed",sortOrder:6,icon:"health",poiObj:null},{id:"sevaerdighed",sortOrder:7,icon:"attractions",poiObj:null},{id:"kommunal",sortOrder:8,icon:"job",poiObj:null}],currentResolution:0,currentCenter:[724413,6175985],currentBbox:[199940,6127702,979409,6352982],hiddenLayers:[],perType:50,perPage:200,septimaToken:"14ed377a-939b-4d59-9456-1b75a25ff00f",blacklist:["kyst"]}},computed:{searchResult:function(){return this.$store.getters.searchResult},geoJson:function(){return this.$store.getters.searchResult.geoJson},initialResultsLoaded:{get:function(){return this.$store.getters.initialResultsLoaded},set:function(e){this.$store.dispatch("setInitialResultsLoaded",e)}},mapInitialized:{get:function(){return this.$store.getters.mapInitialized},set:function(e){this.$store.dispatch("setMapInitialized",e)}},searchCriteria:function(){return this.$store.getters.searchCriteria}},methods:{scChanged:function(e){var t=this;"/kort"===this.$route.path&&this.$nextTick().then((function(){t.$router.push({path:"/kort",query:e})}))},loadData:function(){var e=this,t=this;return new Promise((function(i,n){var r=x(x({},new l.a),Object(l.b)(e.$route));r.resultsPerPage=1e4,e.$store.dispatch("searchAndSetItems",r).then((function(e){t.initialResultsLoaded=!0,i()})).catch((function(e){console.log(e),n()}))})).then(this.loadPoiTypes())},loadMap:function(){var e=this;return new Promise((function(t,i){var r=e;!0!==r.mapInitialized?e.$loadScript("https://widget.cdn.septima.dk/latest/widgetapi.js").then((function(){r.initMap().then((function(e){r.mapInitialized=!0,t(e)}))})):t(n)})).catch((function(e){console.log(e),Object(p.reject)()}))},infoTemplate:function(){return'\n        <button class="close-icon" data-widget-close="true" title="luk">&#x2715;</button>\n          <div class="map-result-wrapper">\n            <img src="{{image}}?width=260&height=160&mode=crop" alt="map" class="map-result-image">\n            <div class="grid-x map-result-item">\n              <div class="cell">\n                <h2 class="h3">{{title}}</h2>\n                <p>{{zipCode}}
25 {{city}}</p>\n                <p class="data"><span class="rooms">{{roomsFormattedText}}</span><span class="size">{{sizeM2}} m2</span></p>\n                <p class="data fluid"><span class="type">{{boligTypeString}}</span></p>\n                <h3 class="price">{{priceFormatted}}<span>'.concat(this.$t("søgeside:per-måned"),'</span></h3>\n                <p class="resident-status">{{statusText}}</p>\n              </div>\n              <div class="cell">\n                <a href="{{url}}" class="button show-bolig-button lightblue"\n                  title="').concat(this.$t("søgeside:knap:kort:vis-bolig"),'">').concat(this.$t("søgeside:knap:kort:vis-bolig"),"</a>\n              </div>\n            </div>\n          </div>\n      ")},initMap:function(){var e=this,t=this;return new Promise((function(i,r){try{i(n=new WidgetAPI("#map",{map:{maxZoomLevel:2,view:{zoomLevel:2,x:724413,y:6175985},layer:[{id:"base",namedlayer:"#dk_standard"},{id:"boliger",features:!0,data:{type:"FeatureCollection",crs:{type:"name",properties:{name:"urn:ogc:def:crs:EPSG::4326"}},features:[]},features_dataType:"json",features_style:{icon:"/dist/images/map_pin.svg",icon_selected:"/dist/images/map_pin_selected.svg",scale:.3,scale_selected:.3},template_info:t.infoTemplate(),cluster:{distance:80,features_style:{fillcolor:"rgba(83,217,239, {{opacityratio}})",textFillcolor:"#1B1918",textFont:"bold 12px Montserrat"}}}].concat(w(e.generatePoiLayers(e.poiData))),controls:[{info:{disable:!1,eventtype:"click",type:"cloud",autoPan:!0},hover:{disable:!1},overlay:{disable:!1,activateText:e.$t("søgeside:knap:kort:aktiver-kort")}}]}}))}catch(e){r(e)}})).then(this.registerMapMoveEvent())},updateMapData:function(){var e=JSON.parse(this.searchResult.geoJson);!0===this.mapInitialized&&(e.features.length<=0?n.removeData("boliger"):n.addData(e,{srs:"EPSG:4326",layerID:"boliger",clear:!0,zoomOptions:{zoomStyle:"fast",minResolution:.8}}))},templateStyle:function(){return'<h2 class="widget-hoverbox-title"><%= navn %></h2>'},generatePoiLayers:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.flatMap((function(t){return(t.poiObj.undertyper||[]).map((function(i){return{id:i.id,name:i.titel_ental,srs:"EPSG:4326",features:!0,styleType:"static",visible:!1,cache:!0,selectable:!0,template_hover:e.templateStyle(),features_style:{icon:e.generateImgLink(t.icon,!0),icon_selected:e.generateImgLink(t.icon,!0),imgSize:[45,55],maxResolution:4},data:{type:"FeatureCollection",crs:{type:"name",properties:{name:"urn:ogc:def:crs:EPSG::25832"}},features:[]}}}))}))},toggleLayerPicker:function(){this.$refs["layer-switcher-container"].classList.toggle("map-container__layer-switcher-container--open"),document.querySelector("body").classList.toggle("layer-picker--open")},toggleLayer:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];-1===this.activeLayers.indexOf(e)?(this.currentResolution<=4&&n.showLayer(e),this.activeLayers.push(e),t&&this.loadPoi(this.currentBbox)):(n.hideLayer(e),this.activeLayers.splice(this.activeLayers.indexOf(e),1))},generateImgLink:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"/dist/images/poi/icon-".concat(t?"pin":"poi","-").concat(e,".svg")},registerMapMoveEvent:function(){var e=this;n.on("mapmove",(function(t,i,r){e.activeLayers.length>0&&e.loadPoi(r.bbox),r.resolution==e.currentResolution&&e.activeLayers.length>0||(r.resolution>4&&e.activeLayers.forEach((function(t){n.hideLayer(t),e.hiddenLayers.push(t)})),r.resolution<=4&&e.hiddenLayers.length>0&&e.activeLayers.forEach((function(t){n.showLayer(t),e.hiddenLayers.splice(e.hiddenLayers.indexOf(t),1)})),e.currentResolution=r.resolution,e.currentCenter=r.center,e.currentBbox=r.bbox)}))},loadPoi:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=2==t.length?"punkt":"bbox",r=new Array("https://poi.septima.dk/poi","?per_type=".concat(this.perType),"&per_side=".concat(this.perPage),"&token=".concat(this.septimaToken),"&srid=25832","&".concat(i,"=").concat(t.join(",")),"&undertype=".concat(this.activeLayers.join(",")));
25v.a.get(r.join("")).then((function(t){e.activeLayers.forEach((function(e){var i={type:"FeatureCollection",crs:{type:"name",properties:{name:"urn:ogc:def:crs:EPSG::25832"}},features:t.data.filter((function(t){return t.undertype===e})).map((function(e){return{type:"Feature",geometry:{type:"Point",coordinates:e.punkt},properties:Object.fromEntries(Object.entries(e).filter((function(e){var t=_(e,2),i=t[0];t[1];return"punkt"!==i})))}}))};n.addData(i,{layerID:e,clear:!0})}))}))},getSubTypes:function(e){return null!==e&&e.undertyper||[]},openSubMenu:function(e){e.target.classList.toggle("open")},hasActiveSubTypes:function(e){var t=this;return e.filter((function(e){return t.activeLayers.includes(e.id)})).length>0},loadPoiTypes:function(){var e,t=this;return(e=y().mark((function e(){return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v.a.get("https://poi.septima.dk/typer").then((function(e){t.poiData.forEach((function(i){var n=e.data.find((function(e){return e.id===i.id}));n.undertyper=t.getSubTypes(n).filter(t.blackListFilter),i.poiObj=n}))})).catch((function(e){return console.error("Der skete en fejl ved henting af interessepunkter",e)}));case 2:case"end":return e.stop()}}),e)})),function(){var t=this,i=arguments;return new Promise((function(n,r){var s=e.apply(t,i);function a(e){b(s,n,r,a,o,"next",e)}function o(e){b(s,n,r,a,o,"throw",e)}a(void 0)}))})()},getTitle:function(e){return-1!==Object.keys(e).indexOf("altTitle")?e.altTitle:e.poiObj.titel_flertal},getSubtypesIds:function(e){return this.getSubTypes(e).map((function(e){return e.id}))||[]},toggleAllLayers:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.every((function(t){return-1!==e.activeLayers.indexOf(t)}))?t.forEach((function(t){return e.toggleLayer(t)})):(t.filter((function(t){return-1===e.activeLayers.indexOf(t)})).forEach((function(t){return e.toggleLayer(t,!1)})),this.loadPoi(this.currentBbox))},allSubtypesChecked:function(e){var t=this;return this.getSubtypesIds(e).every((function(e){return-1!==t.activeLayers.indexOf(e)}))},blackListFilter:function(e){return-1===this.blacklist.indexOf(e.id)}},mounted:function(){var e=this;h.a.$on("sc-changed",(function(t){return e.scChanged(t)})),e.loadData().then((function(){!0===e.mapInitialized?e.initMap().then((function(t){e.updateMapData()})):e.loadMap().then((function(t){e.updateMapData()}))})),"small"!==window.MediaQuery&&this.toggleLayerPicker()},beforeDestroy:function(){h.a.$off("sc-changed")}},P=Object(f.a)(T,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"grid-x map-grid-wrapper"},[t("div",{staticClass:"cell map-container"},[t("div",{ref:"map",attrs:{id:"map","data-widget-height":"100%"}}),e._v(" "),t("div",{ref:"layer-switcher-container",staticClass:"map-container__layer-switcher-container"},[t("button",{on:{click:e.toggleLayerPicker}}),e._v(" "),t("ol",e._l(e.poiData,(function(i){return t("li",{key:i.id,attrs:{"aria-sort":i.sortOrder,"data-active-filters":e.hasActiveSubTypes(e.getSubTypes(i.poiObj))},on:{click:function(t){return t.target!==t.currentTarget?null:e.openSubMenu(t)}}},[t("div",{staticClass:"layer-switcher-legend"},[t("img",{attrs:{src:e.generateImgLink(i.icon)}}),e._v(" "),null!==i.poiObj?t("p",{staticClass:"widget-layerswitch-text"},[e._v("\n              "+e._s(e.getTitle(i))+"\n            ")]):e._e(),e._v(" "),t("span",{attrs:{title:"Åben/Luk menu"}})]),e._v(" "),i.poiObj?t("div",{staticClass:"layer-switcher-subtypes"},[t("div",{staticClass:"subtype-legend",class:e.allSubtypesChecked(i.poiObj)?"active":null,on:{click:function(t){e.toggleAllLayers(e.getSubtypesIds(i.poiObj))}}},[e._m(0,!0),e._v(" "),t("label",{staticClass:"v-checkbox",attrs:{"aria-checked":e.allSubtypesChecked(i.poiObj)}},[t("span",{staticClass:"v-checkbox__v-checkmark"})])]),e._v(" "),e._l(e.getSubTypes(i.poiObj).filter(e.blackListFilter),(function(i){return t("div",{key:i.id,staticClass:"subtype-legend",class:-1!==e.activeLayers.indexOf(i.id)?"active":null,on:{click:function(t){return e.toggleLayer(i.id)}}},[t("p",[e._v(e._s(i.titel_ental))]),e._v(" "),t("label",{staticClass:"v-checkbox",attrs:{"aria-checked":-1!==e.activeLayers.indexOf(i.id)}},[t("span",{staticClass:"v-checkbox__v-checkmark"})])])}))],2):e._e()])})),0)]),e._v(" "),t("button",{staticClass:"map-container__poi-activate-button",attrs:{"aria-label":"Interessepunkter",title:"Interessepunkter"},on:{click:e.toggleLayerPicker}})]),e._v(" "),t("max-types-modal")],1)}),[function(){var e=this._self._c;return e("p",[e("i",[this._v("Vælg/Fravælg alle")])])}],!1,null,null,null).exports;r.default.use(s.a);var j=new s.a({routes:[{path:"/",component:o.a},{path:"/kort",name:"Kort",component:P}],scrollBehavior:function(e,t,i){return i}});j.beforeEach((function(e,t,i){"/"===e.path?$("body").removeClass("map-view"):"/kort"===e.path&&$("body").addClass("map-view"),e.path!==t.path&&a.a.dispatch("setItems",[]),i()}));t.a=j},6:function(e,t,i){"use strict";var n=i(5);t.a=new n.default({methods:{setLoadingState:function(e,t){this.$emit(e,t)}}})},87:function(e,t,i){"use strict";
25var n={props:{uri:{type:String},altText:{type:String,default:""},classes:{type:String,default:""},width:{type:Number,default:null},height:{type:Number,default:null},mode:{type:String,default:""}},computed:{url:function(){return this.uri+"?width="+this.width+"&height="+this.height+"&mode="+this.mode}}},r=i(2),s=Object(r.a)(n,(function(){return(0,this._self._c)("img",{attrs:{src:this.url,alt:this.altText}})}),[],!1,null,null,null);t.a=s.exports},89:function(e,t,i){"use strict";var n=i(179),r={data:function(){return{sortOptions:[{name:this.$t("søgeside:filter:husleje"),value:0},{name:this.$t("søgeside:filter:størrelse"),value:1},{name:this.$t("søgeside:filter:antal-rum"),value:2}]}},computed:{searchCriteria:function(){return this.$store.getters.searchCriteria},sortValue:{get:function(){var e=this;return this.sortOptions.find((function(t){return t.value===e.searchCriteria.selectedSortMethod}))},set:function(e){var t=this.searchCriteria;t.selectedSortMethod=e.value,this.$store.dispatch("searchAndSetItems",t).then((function(e){})).catch((function(e){console.log(e)}))}}},methods:{setSort:function(e){var t=this.searchCriteria;t.selectedSortMethod=e.value,this.$store.dispatch("searchAndSetItems",t).then((function(e){})).catch((function(e){console.log(e)}))}},components:{Multiselect:i.n(n).a}},s=i(2),a=Object(s.a)(r,(function(){var e=this,t=e._self._c;return t("div",[t("multiselect",{attrs:{placeholder:e.$t("søgeside:filter:sorter-efter"),options:e.sortOptions,"track-by":"value",label:"name",searchable:!1,"close-on-select":!0,"clear-on-select":!1,"show-labels":!1},scopedSlots:e._u([{key:"singleLabel",fn:function({option:i}){return[t("span",{staticClass:"hide-on-small"},[e._v(e._s(e.$t("søgeside:filter:sorter-efter"))+" "+e._s(i.name))]),e._v(" "),t("span",{staticClass:"show-on-small"},[e._v(e._s(e.$t("søgeside:filter:sorter")))])]}}]),model:{value:e.sortValue,callback:function(t){e.sortValue=t},expression:"sortValue"}}),e._v(" "),t("svg",{staticClass:"icon sort-icon"},[t("use",{attrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink","xlink:href":"/dist/svg/sprite.svg#icon-sort"}})])],1)}),[],!1,null,null,null);t.a=a.exports},90:function(e,t,i){"use strict";var n=i(6),r={props:{classes:{type:String,default:"filter-links"}},methods:{saveSearch:function(){n.a.$emit("SaveSearch_ButtonClicked")}}},s=i(2),a=Object(s.a)(r,(function(){var e=this;return(0,e._self._c)("a",{class:e.classes,attrs:{href:"#",title:e.$t("søgeside:knap:gem-søgning")},on:{click:function(t){return t.preventDefault(),e.saveSearch.apply(null,arguments)}}},[e._v(e._s(e.$t("søgeside:knap:gem-søgning")))])}),[],!1,null,null,null);t.a=a.exports}});

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.