1import{q as yt,i as R,l as _,a as O,h as ae,j as oe,s as _e,u as Ke,e as Z,p as U,b as ye,t as gt,d as bt,f as Ge,v as xt,G as Le,c as Ze,F as ge,w as kt,o as de,m as wt,r as St,x as qe,M as Pt}from"../index.a621a35b.js";import{_ as At}from"./Map.dcae3970.js";import{g as Ot,c as at,a as Et}from"./_commonjsHelpers.f037b798.js";const tt="ap",rt="filterIds",nt="smin",it="smax",be=yt("project-list",{state:()=>({filters:[],pages:[],activePage:{id:0,name:"Galleri"},sliderInitialValues:[],sliderValues:[]}),actions:{initPages(v){this.pages=v;const d=this.getUrlSegment(tt);d==0||d==1||d==2?this.activePage=this.pages[d]:(this.activePage=this.pages[0],this.updateActivePageUrlSegment())},initFilters(v,d){var f=this.getUrlSegment(rt);if(f!==null){var k=f.split(",");k.forEach(l=>{var y=v.find(A=>(A==null?void 0:A.id)===decodeURIComponent(l));y!==void 0&&this.addFilter(y.id,y.name,d,!1)})}},initSliderValues(v,d){this.sliderInitialValues=[v,d];let f=this.getUrlSegment(nt),k=this.getUrlSegment(it);if(f!==null&&k!==null){var l=JSON.parse("["+f+","+k+"]");this.sliderValues=l}else this.sliderValues=this.sliderInitialValues,this.updateSliderUrlSegment()},navigate(v){this.activePage=v,this.updateActivePageUrlSegment()},isActivePage(v){var d;return((d=this.activePage)==null?void 0:d.name)===v.title},filterByTimePeriod(v){this.sliderValues!=v&&(this.sliderValues=v,this.updateSliderUrlSegment())},toggleFilter(v,d,f){var k=!!this.filters.find(l=>l.id===v);k?this.removeFilter(v):this.addFilter(v,d,f)},addFilter(v,d,f,k=!0){var l=!!this.filters.find(y=>y.id===v);l||this.filters.push({id:v,name:d,filterType:f}),k&&this.updateFiltersUrlSegment()},isActiveFilter(v){return!!this.filters.find(d=>d.id===v)},resetFilters(){this.filters=[],this.sliderValues=this.sliderInitialValues,this.updateFiltersUrlSegment(),this.updateSliderUrlSegment()},removeFilter(v){this.filters=this.filters.filter(d=>d.id!=v),this.updateFiltersUrlSegment()},getUrlSegment(v){var l;var d=window.location.hash.slice(1),f=d.split("&").reduce(function(y,A){var c=A.split("=");return c[0]=c[0].replace("?",""),y[c[0]]=c[1],y},{}),k=(l=f[v])!=null?l:null;return k},updateActivePageUrlSegment(){var d;var v=window.location.hash;v=this.replaceQueryParam(tt,(d=this.activePage)==null?void 0:d.id,v),window.location.hash=v},updateFiltersUrlSegment(){var v=window.location.hash,d=this.filters.map(f=>f.id);v=this.replaceQueryParam(rt,d.toString(),v),window.location.hash=v},updateSliderUrlSegment(){var v=window.location.hash;v=this.replaceQueryParam(nt,this.sliderValues[0],v),v=this.replaceQueryParam(it,this.sliderValues[1],v),window.location.hash=v},replaceQueryParam(v,d,f){var k=new RegExp("([?;&])"+v+"[^&;]*[;&]?"),l=f.replace(k,"$1").replace(/&$/,"");return(l.length>2?l+"&":"?")+(d?v+"="+d:"")}}}),Rt={class:"flex-container-filter"},_t=["onClick"],Dt={__name:"Filters",setup(v){const d=be(),f=k=>{d.removeFilter(k.id,k.name)};return(k,l)=>{var y,A;return R(),_("div",Rt,[O("div",null,[(R(!0),_(ae,null,oe(U(d).filters,c=>(R(),_("button",{class:"btn-filter tag-text text--medium",key:c.id,onClick:_e(p=>f(c),["prevent"])},[Ke(Z(c.name)+" ",1),l[1]||(l[1]=O("span",{class:"icon icon--close-24"},null,-1))],8,_t))),128)),((A=(y=U(d))==null?void 0:y.filters)==null?void 0:A.length)>0?(R(),_("button",{key:0,class:"btn-reset-filter tag-text text--medium",onClick:l[0]||(l[0]=_e(c=>U(d).resetFilters(),["prevent"]))},"Nullstill filter")):ye("",!0)])])}}},Vt={class:"flex-container-navigation"},jt={class:"project-list-menu"},Ct=["onClick"],Tt={__name:"Navigation",setup(v){var c;const d=gt([]),f=be(),k=bt({activeIndex:(c=f.activePage)==null?void 0:c.id,itemHeight:0,itemWidth:0}),l=p=>{f.navigate(p)},y=Ge(()=>{var p,a;return{height:k.itemHeight+"px",width:k.itemWidth+3+"px",left:((p=f.activePage)==null?void 0:p.id)*k.itemWidth+7+10*((a=f.activePage)==null?void 0:a.id)+"px"}}),A=()=>{d.value[0]!==void 0&&(k.itemHeight=d.value[0].clientHeight,k.itemWidth=d.value[0].clientWidth)};return xt(()=>{A(),window.addEventListener("resize",A)}),(p,a)=>(R(),_("div",Vt,[O("nav",jt,[O("ul",null,[O("li",{class:"menu-active",style:Le(y.value)},null,4),(R(!0),_(ae,null,oe(U(f).pages,i=>{var x;return R(),_("li",{key:i.id,ref_for:!0,ref_key:"items",ref:d},[O("button",{class:Ze(["btn-page-selector fakta",{active:i.id==((x=U(f).activePage)==null?void 0:x.id)}]),onClick:_e(D=>l(i),["prevent"])},Z(i.name),11,Ct)])}),128))])])]))}},zt={class:"col-12 col-md-12 col-xl-8"},Ft={class:"tag-filters"},Bt={class:"lead-classic-large"},Mt={class:"container"},Lt={class:"row"},$t=["onClick"],It=["id"],Nt=["for"],Ut={__name:"TagFilters",props:{tagsTitle:String,tagsFilterResult:Array},setup(v){const d=be(),f=v;return(k,l)=>(R(),_("div",zt,[O("div",Ft,[O("h2",Bt,Z(f.tagsTitle),1),O("div",Mt,[O("div",Lt,[(R(!0),_(ae,null,oe(f.tagsFilterResult,y=>
1(R(),_("div",{class:Ze(["col-6 col-md-3 input-checkbox-filter",{active:U(d).isActiveFilter(y.id)}]),key:y.name,onClick:_e(A=>U(d).toggleFilter(y.id,y.name,U(ge).TAG),["prevent"])},[O("input",{id:y.id,type:"checkbox",name:"consent",required:""},null,8,It),O("label",{for:y.id},[Ke(Z(y.name)+" ",1),O("sub",null,Z(y.articleIds.length),1)],8,Nt)],10,$t))),128))])])])]))}},Ht={class:"col-12"},Yt={class:"firm-filters"},Wt={class:"lead-classic-large"},Xt={class:"container"},qt={class:"row"},Gt={class:"fakta"},Kt=["onClick"],Zt=["id"],Qt=["for"],Jt={__name:"FirmFilters",props:{firmsTitle:String,firmsFilterResult:Object},setup(v){const d=be(),f=v;return(k,l)=>(R(),_("div",Ht,[O("div",Yt,[O("h2",Wt,Z(f.firmsTitle),1),O("div",Xt,[O("div",qt,[(R(!0),_(ae,null,oe(f.firmsFilterResult,(y,A)=>(R(),_("div",{class:"firm-by-letter col-12 col-md-4 col-xl-3",key:A},[O("h3",Gt,Z(A.toUpperCase()),1),(R(!0),_(ae,null,oe(y,c=>(R(),_("div",{class:Ze(["input-checkbox-filter",{active:U(d).isActiveFilter(c.id)}]),key:c.id,onClick:_e(p=>U(d).toggleFilter(c.id,c.name,U(ge).FIRM),["prevent"])},[O("input",{id:c.id,type:"checkbox",name:"consent",required:""},null,8,Zt),O("label",{for:c.id},[Ke(Z(c.name)+" ",1),O("sub",null,Z(c.articleIds.length),1)],8,Qt)],10,Kt))),128))]))),128))])])])]))}};var ot={exports:{}};const er=Ot(kt);(function(v,d){(function(f,k){v.exports=k(er)})(typeof self<"u"?self:at,function(f){return function(){var k={388:function(c,p){var a,i,x;(function(D,C){i=[],a=C,x=typeof a=="function"?a.apply(p,i):a,x===void 0||(c.exports=x)})(typeof self<"u"&&self,function(){function D(){var C=Object.getOwnPropertyDescriptor(document,"currentScript");if(!C&&"currentScript"in document&&document.currentScript||C&&C.get!==D&&document.currentScript)return document.currentScript;try{throw new Error}catch(se){var $,z,F,S=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,L=/@([^@]*):(\d+):(\d+)\s*$/gi,m=S.exec(se.stack)||L.exec(se.stack),W=m&&m[1]||!1,J=m&&m[2]||!1,ee=document.location.href.replace(document.location.hash,""),I=document.getElementsByTagName("script");W===ee&&($=document.documentElement.outerHTML,z=new RegExp("(?:[^\\n]+?\\n){0,"+(J-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),F=$.replace(z,"$1").trim());for(var B=0;B<I.length;B++)if(I[B].readyState==="interactive"||I[B].src===W||W===ee&&I[B].innerHTML&&I[B].innerHTML.trim()===F)return I[B];return null}}return D})},905:function(c,p,a){a.r(p);var i=a(117),x=a.n(i),D=a(488),C=a.n(D),$=C()(x());$.push([c.id,".vue-slider-dot{position:absolute;-webkit-transition:all 0s;transition:all 0s;z-index:5}.vue-slider-dot:focus{outline:none}.vue-slider-dot-tooltip{position:absolute;visibility:hidden}.vue-slider-dot-hover:hover .vue-slider-dot-tooltip,.vue-slider-dot-tooltip-show{visibility:visible}.vue-slider-dot-tooltip-top{top:-10px;left:50%;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.vue-slider-dot-tooltip-bottom{bottom:-10px;left:50%;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.vue-slider-dot-tooltip-left{left:-10px;top:50%;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.vue-slider-dot-tooltip-right{right:-10px;top:50%;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)}",""]),p.default=$},121:function(c,p,a){a.r(p);var i=a(117),x=a.n(i),D=a(488),C=a.n(D),$=C()(x());$.push([c.id,".vue-slider-marks{position:relative;width:100%;height:100%}.vue-slider-mark{position:absolute;z-index:1}.vue-slider-ltr .vue-slider-mark,.vue-slider-rtl .vue-slider-mark{width:0;height:100%;top:50%}.vue-slider-ltr .vue-slider-mark-step,.vue-slider-rtl .vue-slider-mark-step{top:0}.vue-slider-ltr .vue-slider-mark-label,.vue-slider-rtl .vue-slider-mark-label{top:100%;margin-top:10px}.vue-slider-ltr .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ltr .vue-slider-mark-step{left:0}.vue-slider-ltr .vue-slider-mark-label{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.vue-slider-rtl .vue-slider-mark{-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%)}.vue-slider-rtl .vue-slider-mark-step{right:0}.vue-slider-rtl .vue-slider-mark-label{right:50%;-webkit-transform:translateX(50%);transform:translateX(50%)}.vue-slider-btt .vue-slider-mark,.vue-slider-ttb .vue-slider-mark{width:100%;height:0;left:50%}.vue-slider-btt .vue-slider-mark-step,.vue-slider-ttb .vue-slider-mark-step{left:0}.vue-slider-btt .vue-slider-mark-label,.vue-slider-ttb .vue-slider-mark-label{left:100%;margin-left:10px}.vue-slider-btt .vue-slider-mark{-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}.vue-slider-btt .vue-slider-mark-step{top:0}.vue-slider-btt .vue-slider-mark-label{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.vue-slider-ttb .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ttb .vue-slider-mark-step{bottom:0}.vue-slider-ttb .vue-slider-mark-label{bottom:50%;-webkit-transform:translateY(50%);transform:translateY(50%)}.vue-slider-mark-label,.vue-slider-mark-step{position:absolute}",""]),p.default=$},207:function(c,p,a){a.r(p);var i=a(117),x=a.n(i),D=a(488),C=a.n(D),$=C()(x());$.push([c.id,".vue-slider{position:relative;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.vue-slider-rail{position:relative;width:100%;height:100%;-webkit-transition-property:width,height,left,right,top,bottom;transition-property:width,height,left,right,top,bottom}.vue-slider-process{position:absolute;z-index:1}",""]),p.default=$},488:function(c){c.exports=function(p){var a=[];return a.toString=function(){return this.map(function(i){var x="",D=typeof i[5]<"u";return i[4]&&(x+="@supports (".concat(i[4],") {")),i[2]&&(x+="@media ".concat(i[2]," {")),D&&(x+="@layer".concat(i[5].length>0?" ".concat(i[5]):""," {")),x+=p(i),D&&(x+="}"),i[2]&&(x+="}"),i[4]&&(x+="}"),x}).join("")},a.i=function(i,x,D,C,$){typeof i=="string"&&(i=[[null,i,void 0]]);var z={};if(D)for(var F=0;F<this.length;F++){var S=this[F][0];S!=null&&(z[S]=!0)}for(var L=0;L<i.length;L++){var m=[].concat(i[L]);D&&z[m[0]]||(typeof $<"u"&&(typeof m[5]>"u"||(m[1]="@layer".concat(m[5].length>0?" ".concat(m[5]):""," {").concat(m[1],"}")),m[5]=$),x&&(m[2]&&(m[1]="@media ".concat(m[2]," {").concat(m[1],"}")),m[2]=x),C&&(m[4]?(m[1]="@supports (".concat(m[4],") {").concat(m[1],"}"),m[4]=C):m[4]="".concat(C)),a.push(m))}},a}},117:function(c){c.exports=function(p){return p[1]}},831:function(c,p){p.Z=(a,i)=>{const x=a.__vccOpts||a;for(const[D,C]of i)x[D]=C;return x}},466:function(c,p,a){var i=a(905);i.__esModule&&(i=i.default),typeof i=="string"&&(i=[[c.id,i,""]]),i.locals&&(c.exports=i.locals);var x=a(959).Z;x("50bc1720",i,!0,{sourceMap:!1,shadowMode:!1})},18:function(c,p,a){var i=a(121);i.__esModule&&(i=i.default),typeof i=="string"&&(i=[[c.id,i,""]]),i.locals&&(c.exports=i.locals);var x=a(959).Z;x("10aa5f36",i,!0,{sourceMap:!1,shadowMode:!1})},631:function(c,p,a){var i=a(207);i.__esModule&&(i=i.default),typeof i=="string"&&(i=[[c.id,i,""]]),i.locals&&(c.exports=i.locals);var x=a(959).Z;x("1772934e",i,!0,{sourceMap:!1,shadowMode:!1})},959:function(c,p,a){function i(w,j){for(var o=[],s={},g=0;g<j.length;g++){var E=j[g],T=E[0],V=E[1],N=E[2],H=E[3],te={id:w+":"+g,css:V,media:N,sourceMap:H};s[T]?s[T].parts.push(te):o.push(s[T]={id:T,parts:[te]})}return o}a.d(p,{Z:function(){return J}});var x=typeof document<"u";if(typeof DEBUG<"u"&&DEBUG&&!x)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var D={},C=x&&(document.head||document.getElementsByTagName("head")[0]),$=null,z=0,F=!1,S=function(){},L=null,m="data-vue-ssr-id",W=typeof navigator<"u"&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function J(w,j,o,s){F=o,L=s||{};var g=i(w,j);return ee(g),function(E){for(var T=[],V=0;V<g.length;V++){var N=g[V],H=D[N.id];H.refs--,T.push(H)}for(E?(g=i(w,E),ee(g)):g=[],V=0;V<T.length;V++)if(H=T[V],H.refs===0){for(var te=0;te<H.parts.length;te++)H.parts[te]();delete D[H.id]}}}function ee(w){for(var j=0;j<w.length;j++){var o=w[j],s=D[o.id];if(s){s.refs++;for(var g=0;g<s.parts.length;g++)s.parts[g](o.parts[g]);for(;g<o.parts.length;g++)s.parts.push(B(o.parts[g]));s.parts.length>o.parts.length&&(s.parts.length=o.parts.length)}else{var E=[];for(g=0;g<o.parts.length;g++)E.push(B(o.parts[g]));D[o.id]={id:o.id,refs:1,parts:E}}}}function I(){var w=document.createElement("style");return w.type="text/css",C.appendChild(w),w}function B(w){var j,o,s=document.querySelector("style["+m+'~="'+w.id+'"]');if(s){if(F)return S;s.parentNode.removeChild(s)}if(W){var g=z++;s=$||($=I()),j=ie.bind(null,s,g,!1),o=ie.bind(null,s,g,!0)}else s=I(),j=ne.bind(null,s),o=function(){s.parentNode.removeChild(s)};return j(w),function(E){if(E){if(E.css===w.css&&E.media===w.media&&E.sourceMap===w.sourceMap)return;j(w=E)}else o()}}var se=function(){var w=[];
1return function(j,o){return w[j]=o,w.filter(Boolean).join(` 2`)}}();function ie(w,j,o,s){var g=o?"":s.css;if(w.styleSheet)w.styleSheet.cssText=se(j,g);else{var E=document.createTextNode(g),T=w.childNodes;T[j]&&w.removeChild(T[j]),T.length?w.insertBefore(E,T[j]):w.appendChild(E)}}function ne(w,j){var o=j.css,s=j.media,g=j.sourceMap;if(s&&w.setAttribute("media",s),L.ssrId&&w.setAttribute(m,j.id),g&&(o+=` 3/*# sourceURL=`+g.sources[0]+" */",o+=` 4/*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(g))))+" */"),w.styleSheet)w.styleSheet.cssText=o;else{for(;w.firstChild;)w.removeChild(w.firstChild);w.appendChild(document.createTextNode(o))}}},927:function(c){c.exports=f}},l={};function y(c){var p=l[c];if(p!==void 0)return p.exports;var a=l[c]={id:c,exports:{}};return k[c].call(a.exports,a,a.exports,y),a.exports}(function(){y.n=function(c){var p=c&&c.__esModule?function(){return c.default}:function(){return c};return y.d(p,{a:p}),p}})(),function(){y.d=function(c,p){for(var a in p)y.o(p,a)&&!y.o(c,a)&&Object.defineProperty(c,a,{enumerable:!0,get:p[a]})}}(),function(){y.o=function(c,p){return Object.prototype.hasOwnProperty.call(c,p)}}(),function(){y.r=function(c){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})}}(),function(){y.p=""}();var A={};return function(){if(y.d(A,{default:function(){return ft}}),typeof window<"u"){var c=window.document.currentScript,p=y(388);c=p(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:p});var a=c&&c.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);a&&(y.p=a[1])}var i=y(927);function x(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var D={key:0,class:"vue-slider-marks"};function C(e,t,r,n,u,h){var b=(0,i.resolveComponent)("vue-slider-mark"),K=(0,i.resolveComponent)("vue-slider-dot");return(0,i.openBlock)(),(0,i.createElementBlock)("div",(0,i.mergeProps)({ref:"container",class:e.containerClasses,style:e.containerStyles,onClick:t[1]||(t[1]=function(){return e.clickHandle&&e.clickHandle.apply(e,arguments)}),onTouchstartPassive:t[2]||(t[2]=function(){return e.dragStartOnProcess&&e.dragStartOnProcess.apply(e,arguments)}),onMousedownPassive:t[3]||(t[3]=function(){return e.dragStartOnProcess&&e.dragStartOnProcess.apply(e,arguments)})},e.$attrs),[(0,i.createElementVNode)("div",{class:"vue-slider-rail",style:(0,i.normalizeStyle)(e.railStyle)},[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(e.processArray,function(P,Y){return(0,i.renderSlot)(e.$slots,"process",(0,i.normalizeProps)((0,i.guardReactiveProps)(P)),function(){return[((0,i.openBlock)(),(0,i.createElementBlock)("div",{class:"vue-slider-process",key:"process-".concat(Y),style:(0,i.normalizeStyle)(P.style)},null,4))]})}),256)),e.sliderMarks&&e.control?((0,i.openBlock)(),(0,i.createElementBlock)("div",D,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(e.control.markList,function(P,Y){return(0,i.renderSlot)(e.$slots,"mark",(0,i.normalizeProps)((0,i.guardReactiveProps)(P)),function(){var Q;return[((0,i.openBlock)(),(0,i.createBlock)(b,{key:"mark-".concat(Y),mark:P,hideLabel:e.hideLabel,style:(0,i.normalizeStyle)((Q={},x(Q,e.isHorizontal?"height":"width","100%"),x(Q,e.isHorizontal?"width":"height",e.tailSize),x(Q,e.mainDirection,"".concat(P.pos,"%")),Q)),stepStyle:e.stepStyle,stepActiveStyle:e.stepActiveStyle,labelStyle:e.labelStyle,labelActiveStyle:e.labelActiveStyle,onPressLabel:function(Oe){return e.clickable&&e.setValueByPos(Oe)}},{step:(0,i.withCtx)(function(){return[(0,i.renderSlot)(e.$slots,"step",(0,i.normalizeProps)((0,i.guardReactiveProps)(P)))]}),label:(0,i.withCtx)(function(){return[(0,i.renderSlot)(e.$slots,"label",(0,i.normalizeProps)((0,i.guardReactiveProps)(P)))]}),_:2},1032,["mark","hideLabel","style","stepStyle","stepActiveStyle","labelStyle","labelActiveStyle","onPressLabel"]))]})}),256))])):(0,i.createCommentVNode)("",!0),((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(e.dots,function(P,Y){var Q;return(0,i.openBlock)(),(0,i.createBlock)(K,(0,i.mergeProps)({ref_for:!0,ref:"dot-".concat(Y),key:"dot-".concat(Y),value:P.value,disabled:P.disabled,focus:P.focus,"dot-style":[P.style,P.disabled?P.disabledStyle:null,P.focus?P.focusStyle:null],tooltip:P.tooltip||e.tooltip,"tooltip-style":[e.tooltipStyle,P.tooltipStyle,P.disabled?P.tooltipDisabledStyle:null,P.focus?P.tooltipFocusStyle:null],"tooltip-formatter":Array.isArray(e.sliderTooltipFormatter)?e.sliderTooltipFormatter[Y]:e.sliderTooltipFormatter,"tooltip-placement":e.tooltipDirections[Y],style:[e.dotBaseStyle,(Q={},x(Q,e.mainDirection,"".concat(P.pos,"%")),x(Q,"transition","".concat(e.mainDirection," ").concat(e.animateTime,"s")),Q)],onDragStart:function(){return e.dragStart(Y)},role:"slider","aria-valuenow":P.value,"aria-valuemin":e.min,"aria-valuemax":e.max,"aria-orientation":e.isHorizontal?"horizontal":"vertical",tabindex:"0",onFocus:function(){return e.focus(P,Y)},onBlur:t[0]||(t[0]=function(){return e.blur()})},e.dotAttrs),{dot:(0,i.withCtx)(function(){return[(0,i.renderSlot)(e.$slots,"dot",(0,i.normalizeProps)((0,i.guardReactiveProps)(P)))]}),tooltip:(0,i.withCtx)(function(){return[(0,i.renderSlot)(e.$slots,"tooltip",(0,i.normalizeProps)((0,i.guardReactiveProps)(P)))]}),_:2},1040,["value","disabled","focus","dot-style","tooltip","tooltip-style","tooltip-formatter","tooltip-placement","style","onDragStart","aria-valuenow","aria-valuemin","aria-valuemax","aria-orientation","onFocus"])}),128))],4),(0,i.renderSlot)(e.$slots,"default",{value:e.getValue()})],16)}var $=["aria-valuetext"],z={class:"vue-slider-dot-tooltip-text"};function F(e,t,r,n,u,h){var b;return(0,i.openBlock)(),(0,i.createElementBlock)("div",{ref:"dot",class:(0,i.normalizeClass)(e.dotClasses),"aria-valuetext":(b=e.tooltipValue)===null||b===void 0?void 0:b.toString(),onMousedownPassive:t[0]||(t[0]=function(){return e.dragStart&&e.dragStart.apply(e,arguments)}),onTouchstartPassive:t[1]||(t[1]=function(){return e.dragStart&&e.dragStart.apply(e,arguments)})},[(0,i.renderSlot)(e.$slots,"dot",{},function(){return[(0,i.createElementVNode)("div",{class:(0,i.normalizeClass)(e.handleClasses),style:(0,i.normalizeStyle)(e.dotStyle)},null,6)]}),e.tooltip!=="none"?((0,i.openBlock)(),(0,i.createElementBlock)("div",{key:0,class:(0,i.normalizeClass)(e.tooltipClasses)},[(0,i.renderSlot)(e.$slots,"tooltip",{},function(){return[(0,i.createElementVNode)("div",{class:(0,i.normalizeClass)(e.tooltipInnerClasses),style:(0,i.normalizeStyle)(e.tooltipStyle)},[(0,i.createElementVNode)("span",z,(0,i.toDisplayString)(e.tooltipValue),1)],6)]})],2)):(0,i.createCommentVNode)("",!0)],42,$)}y(466);var S=(0,i.defineComponent)({name:"VueSliderDot",emits:["DragStart"],props:{value:{type:[String,Number],default:0},tooltip:{type:String,required:!0},tooltipPlacement:{type:String,validator:function(e){return["top","right","bottom","left"].indexOf(e)>-1},required:!0},tooltipFormatter:{type:[String,Function]},focus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dotStyle:{type:Object},tooltipStyle:{type:Object}},computed:{dotClasses:function(){return["vue-slider-dot",{"vue-slider-dot-hover":this.tooltip==="hover"||this.tooltip==="active","vue-slider-dot-disabled":this.disabled,"vue-slider-dot-focus":this.focus}]},handleClasses:function(){return["vue-slider-dot-handle",{"vue-slider-dot-handle-disabled":this.disabled,"vue-slider-dot-handle-focus":this.focus}]},tooltipClasses:function(){return["vue-slider-dot-tooltip",["vue-slider-dot-tooltip-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-show":this.showTooltip}]},tooltipInnerClasses:function(){return["vue-slider-dot-tooltip-inner",["vue-slider-dot-tooltip-inner-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-inner-disabled":this.disabled,"vue-slider-dot-tooltip-inner-focus":this.focus}]},showTooltip:function(){switch(this.tooltip){case"always":return!0;case"none":return!1;case"focus":case"active":return!!this.focus;default:return!1}},tooltipValue:function(){return this.tooltipFormatter?typeof this.tooltipFormatter=="string"?this.tooltipFormatter.replace(/\{value\}/,String(this.value)):this.tooltipFormatter(this.value):this.value}},methods:{dragStart:function(){if(this.disabled)return!1;this.$emit("DragStart")}}}),L=y(831),W=(0,L.Z)(S,[["render",F]]);function J(e,t,r,n,u,h){return(0,i.openBlock)(),(0,i.createElementBlock)("div",{class:(0,i.normalizeClass)(e.marksClasses)},[(0,i.renderSlot)(e.$slots,"step",{},function(){return[(0,i.createElementVNode)("div",{class:(0,i.normalizeClass)(e.stepClasse
4s),style:(0,i.normalizeStyle)([e.stepStyle,e.mark.style||{},e.mark.active&&e.stepActiveStyle?e.stepActiveStyle:{},e.mark.active&&e.mark.activeStyle?e.mark.activeStyle:{}])},null,6)]}),e.hideLabel?(0,i.createCommentVNode)("",!0):(0,i.renderSlot)(e.$slots,"label",{key:0},function(){return[(0,i.createElementVNode)("div",{class:(0,i.normalizeClass)(e.labelClasses),style:(0,i.normalizeStyle)([e.labelStyle,e.mark.labelStyle||{},e.mark.active&&e.labelActiveStyle?e.labelActiveStyle:{},e.mark.active&&e.mark.labelActiveStyle?e.mark.labelActiveStyle:{}]),onClick:t[0]||(t[0]=function(){return e.labelClickHandle&&e.labelClickHandle.apply(e,arguments)})},(0,i.toDisplayString)(e.mark.label),7)]})],2)}y(18);var ee=(0,i.defineComponent)({name:"VueSliderMark",emits:["PressLabel"],props:{mark:{type:Object,required:!0},hideLabel:{type:Boolean},stepStyle:{type:Object,default:function(){return{}}},stepActiveStyle:{type:Object,default:function(){return{}}},labelStyle:{type:Object,default:function(){return{}}},labelActiveStyle:{type:Object,default:function(){return{}}}},computed:{marksClasses:function(){return["vue-slider-mark",{"vue-slider-mark-active":this.mark.active}]},stepClasses:function(){return["vue-slider-mark-step",{"vue-slider-mark-step-active":this.mark.active}]},labelClasses:function(){return["vue-slider-mark-label",{"vue-slider-mark-label-active":this.mark.active}]}},methods:{labelClickHandle:function(e){e.stopPropagation(),this.$emit("PressLabel",this.mark.pos)}}});const I=(0,L.Z)(ee,[["render",J]]);var B,se=I,ie=function(e){return typeof e=="number"?"".concat(e,"px"):e},ne=function(e){var t=document.documentElement,r=document.body,n=e.getBoundingClientRect(),u={y:n.top+(window.pageYOffset||t.scrollTop)-(t.clientTop||r.clientTop||0),x:n.left+(window.pageXOffset||t.scrollLeft)-(t.clientLeft||r.clientLeft||0)};return u},w=function(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,u="targetTouches"in e?e.targetTouches[0]:e,h=ne(t),b={x:u.pageX-h.x,y:u.pageY-h.y};return{x:r?t.offsetWidth*n-b.x:b.x,y:r?t.offsetHeight*n-b.y:b.y}};(function(e){e[e.PAGE_UP=33]="PAGE_UP",e[e.PAGE_DOWN=34]="PAGE_DOWN",e[e.END=35]="END",e[e.HOME=36]="HOME",e[e.LEFT=37]="LEFT",e[e.UP=38]="UP",e[e.RIGHT=39]="RIGHT",e[e.DOWN=40]="DOWN"})(B||(B={}));var j=function(e,t){if(t.hook){var r=t.hook(e);if(typeof r=="function")return r;if(!r)return null}switch(e.keyCode){case B.UP:return function(n){return t.direction==="ttb"?n-1:n+1};case B.RIGHT:return function(n){return t.direction==="rtl"?n-1:n+1};case B.DOWN:return function(n){return t.direction==="ttb"?n+1:n-1};case B.LEFT:return function(n){return t.direction==="rtl"?n+1:n-1};case B.END:return function(){return t.max};case B.HOME:return function(){return t.min};case B.PAGE_UP:return function(n){return n+10};case B.PAGE_DOWN:return function(n){return n-10};default:return null}};function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function g(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function E(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var T,V,N=function(){function e(t){o(this,e),E(this,"num",void 0),this.num=t}return g(e,[{key:"decimal",value:function(t,r){var n=this.num,u=this.getDecimalLen(n),h=this.getDecimalLen(t),b=0;switch(r){case"+":b=this.getExponent(u,h),this.num=(this.safeRoundUp(n,b)+this.safeRoundUp(t,b))/b;break;case"-":b=this.getExponent(u,h),this.num=(this.safeRoundUp(n,b)-this.safeRoundUp(t,b))/b;break;case"*":this.num=this.safeRoundUp(this.safeRoundUp(n,this.getExponent(u)),this.safeRoundUp(t,this.getExponent(h)))/this.getExponent(u+h);break;case"/":b=this.getExponent(u,h),this.num=this.safeRoundUp(n,b)/this.safeRoundUp(t,b);break;case"%":b=this.getExponent(u,h),this.num=this.safeRoundUp(n,b)%this.safeRoundUp(t,b)/b;break}return this}},{key:"plus",value:function(t){return this.decimal(t,"+")}},{key:"minus",value:function(t){return this.decimal(t,"-")}},{key:"multiply",value:function(t){return this.decimal(t,"*")}},{key:"divide",value:function(t){return this.decimal(t,"/")}},{key:"remainder",value:function(t){return this.decimal(t,"%")}},{key:"toNumber",value:function(){return this.num}},{key:"getDecimalLen",value:function(t){var r="".concat(t).split("e");return("".concat(r[0]).split(".")[1]||"").length-(r[1]?+r[1]:0)}},{key:"getExponent",value:function(t,r){return Math.pow(10,r!==void 0?Math.max(t,r):t)}},{key:"safeRoundUp",value:function(t,r){return Math.round(t*r)}}]),e}();function H(e,t){return X(e)||fe(e,t)||De(e,t)||te()}
4function te(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 5In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,u,h=[],b=!0,K=!1;try{for(r=r.call(e);!(b=(n=r.next()).done)&&(h.push(n.value),!(t&&h.length===t));b=!0);}catch(P){K=!0,u=P}finally{try{b||r.return==null||r.return()}finally{if(K)throw u}}return h}}function X(e){if(Array.isArray(e))return e}function q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,n)}return r}function xe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?q(Object(r),!0).forEach(function(n){M(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function le(e){return Ne(e)||Ie(e)||De(e)||$e()}function $e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 6In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function De(e,t){if(e){if(typeof e=="string")return ce(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ce(e,t):void 0}}function Ie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ne(e){if(Array.isArray(e))return ce(e)}function ce(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ke(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ue(e,t,r){return t&&ke(e.prototype,t),r&&ke(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function M(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}(function(e){e[e.VALUE=1]="VALUE",e[e.INTERVAL=2]="INTERVAL",e[e.MIN=3]="MIN",e[e.MAX=4]="MAX",e[e.ORDER=5]="ORDER"})(V||(V={}));var je=(T={},M(T,V.VALUE,'The type of the "value" is illegal'),M(T,V.INTERVAL,'The prop "interval" is invalid, "(max - min)" must be divisible by "interval"'),M(T,V.MIN,'The "value" must be greater than or equal to the "min".'),M(T,V.MAX,'The "value" must be less than or equal to the "max".'),M(T,V.ORDER,'When "order" is false, the parameters "minRange", "maxRange", "fixed", "enabled" are invalid.'),T),Ce=function(){function e(t){Ve(this,e),M(this,"dotsPos",[]),M(this,"dotsValue",[]),M(this,"data",void 0),M(this,"enableCross",void 0),M(this,"fixed",void 0),M(this,"max",void 0),M(this,"min",void 0),M(this,"interval",void 0),M(this,"minRange",void 0),M(this,"maxRange",void 0),M(this,"order",void 0),M(this,"marks",void 0),M(this,"included",void 0),M(this,"process",void 0),M(this,"adsorb",void 0),M(this,"dotOptions",void 0),M(this,"onError",void 0),M(this,"cacheRangeDir",{}),this.data=t.data,this.max=t.max,this.min=t.min,this.interval=t.interval,this.order=t.order,this.marks=t.marks,this.included=t.included,this.process=t.process,this.adsorb=t.adsorb,this.dotOptions=t.dotOptions,this.onError=t.onError,this.order?(this.minRange=t.minRange||0,this.maxRange=t.maxRange||0,this.enableCross=t.enableCross,this.fixed=t.fixed):((t.minRange||t.maxRange||!t.enableCross||t.fixed)&&this.emitError(V.ORDER),this.minRange=0,this.maxRange=0,this.enableCross=!0,this.fixed=!1),this.setValue(t.value)}return Ue(e,[{key:"setValue",value:function(t){this.setDotsValue(Array.isArray(t)?le(t):[t],!0)}},{key:"setDotsValue",value:function(t,r){this.dotsValue=t,r&&this.syncDotsPos()}},{key:"setDotsPos",value:function(t){var r=this,n=this.order?le(t).sort(function(u,h){return u-h}):t;this.dotsPos=n,this.setDotsValue(n.map(function(u){return r.getValueByPos(u)}),this.adsorb)}},{key:"getValueByPos",value:function(t){var r=this.parsePos(t);if(this.included){var n=100;this.markList.forEach(function(u){var h=Math.abs(u.pos-t);h<n&&(n=h,r=u.value)})}return r}},{key:"syncDotsPos",value:function(){var t=this;this.dotsPos=this.dotsValue.map(function(r){return t.parseValue(r)})}},{key:"markList",get:function(){var t=this;if(!this.marks)return[];var r=function(n,u){var h=t.parseValue(n);return xe({pos:h,value:n,label:n,active:t.isActiveByPos(h)},u)};return this.marks===!0?this.getValues().map(function(n){return r(n)}):Object.prototype.toString.call(this.marks)==="[object Object]"?Object.keys(this.marks).sort(function(n,u){return+n-+u}).map(function(n){var u=t.marks[n];return r(n,typeof u!="string"?u:{label:u})}):Array.isArray(this.marks)?this.marks.map(function(n){return r(n)}):typeof this.marks=="function"?this.getValues().map(function(n){return{value:n,result:t.marks(n)}}).filter(function(n){var u=n.result;return!!u}).map(function(n){var u=n.value,h=n.result;return r(u,h)}):[]}},{key:"getRecentDot",value:function(t){var r=this.dotsPos.map(function(n){return Math.abs(n-t)});return r.indexOf(Math.min.apply(Math,le(r)))}},{key:"getIndexByValue",value:function(t){return this.data?this.data.indexOf(t):new N(+t).minus(this.min).divide(this.interval).toNumber()}},{key:"getValueByIndex",value:function(t){return t<0?t=0:t>this.total&&(t=this.total),this.data?this.data[t]:new N(t).multiply(this.interval).plus(this.min).toNumber()}},{key:"setDotPos",value:function(t,r){t=this.getValidPos(t,r).pos;var n=t-this.dotsPos[r];if(n){var u=new Array(this.dotsPos.length);this.fixed?u=this.getFixedChangePosArr(n,r):this.minRange||this.maxRange?u=this.getLimitRangeChangePosArr(t,n,r):u[r]=n,this.setDotsPos(this.dotsPos.map(function(h,b){return h+(u[b]||0)}))}}},{key:"getFixedChangePosArr",value:function(t,r){var n=this;return this.dotsPos.forEach(function(u,h){if(h!==r){var b=n.getValidPos(u+t,h),K=b.pos,P=b.inRange;P||(t=Math.min(Math.abs(K-u),Math.abs(t))*(t<0?-1:1))}}),this.dotsPos.map(function(u){return t})}},{key:"getLimitRangeChangePosArr",value:function(t,r,n){var u=this,h=[{index:n,changePos:r}],b=r;return[this.minRange,this.maxRange].forEach(function(K,P){if(!K)return!1;var Y=P===0,Q=r>0,Oe=0;Oe=Y?Q?1:-1:Q?-1:1;for(var ht=function(mt,vt){var et=Math.abs(mt-vt);return Y?et<u.minRangeDir:et>u.maxRangeDir},Ee=n+Oe,Re=u.dotsPos[Ee],Qe=t;u.isPos(Re)&&ht(Re,Qe);){var pt=u.getValidPos(Re+b,Ee),Je=pt.pos;h.push({index:Ee,changePos:Je-Re}),Ee+=Oe,Qe=Je,Re=u.dotsPos[Ee]}}),this.dotsPos.map(function(K,P){var Y=h.filter(function(Q){return Q.index===P});return Y.length?Y[0].changePos:0})}},{key:"isPos",value:function(t){return typeof t=="number"}},{key:"getValidPos",value:function(t,r){var n=this.valuePosRange[r],u=!0;return t<n[0]?(t=n[0],u=!1):t>n[1]&&(t=n[1],u=!1),{pos:t,inRange:u}}},{key:"parseValue",value:function(t){if(this.data)t=this.data.indexOf(t);else if(typeof t=="number"||typeof t=="string"){if(t=+t,t<this.min)return this.emitError(V.MIN),0;if(t>this.max)return this.emitError(V.MAX),0;if(typeof t!="number"||t!==t)return this.emitError(V.VALUE),0;t=new N(t).minus(this.min).divide(this.interval).toNumber()}var r=new N(t).multiply(this.gap).toNumber();return r<0?0:r>100?100:r}},{key:"parsePos",value:function(t){var r=Math.round(t/this.gap);return this.getValueByIndex(r)}},{key:"isActiveByPos",value:function(t){return this.processArray.some(function(r){var n=H(r,2),u=n[0],h=n[1];return t>=u&&t<=h})}},{key:"getValues",value:function(){if(this.data)return this.data;for(var t=[],r=0;r<=this.total;r++)t.push(new N(r).multiply(this.interval).plus(this.min).toNumber());return t}},{key:"getRangeDir",value:function(t){return t?new N(t).divide(new N(this.data?this.data.length-1:this.max).minus(this.data?0:this.min).toNumber()).multiply(100).toNumber():100}},{key:"emitError",value:function(t){this.onError&&this.onError(t,je[t])}},{key:"processArray",get:function(){if(this.process){if(typeof this.process=="function")return this.process(this.dotsPos);if(this.dotsPos.length===1)return[[0,this.dotsPos[0]]];if(this.dotsPos.length>1)return[[Math.min.apply(Math,le(this.dotsPos)),Math.max.apply(Math,le(this.dotsPos))]]}return[]}},{key:"total",get:function(){var t=0;return t=this.data?this.data.length-1:new N(this.max).minus(this.min).divide(this.interval).toNumber(),t
6-Math.floor(t)!==0?(this.emitError(V.INTERVAL),0):t}},{key:"gap",get:function(){return 100/this.total}},{key:"minRangeDir",get:function(){return this.cacheRangeDir[this.minRange]?this.cacheRangeDir[this.minRange]:this.cacheRangeDir[this.minRange]=this.getRangeDir(this.minRange)}},{key:"maxRangeDir",get:function(){return this.cacheRangeDir[this.maxRange]?this.cacheRangeDir[this.maxRange]:this.cacheRangeDir[this.maxRange]=this.getRangeDir(this.maxRange)}},{key:"getDotRange",value:function(t,r,n){if(!this.dotOptions)return n;var u=Array.isArray(this.dotOptions)?this.dotOptions[t]:this.dotOptions;return u&&u[r]!==void 0?this.parseValue(u[r]):n}},{key:"valuePosRange",get:function(){var t=this,r=this.dotsPos,n=[];return r.forEach(function(u,h){n.push([Math.max(t.minRange?t.minRangeDir*h:0,t.enableCross?0:r[h-1]||0,t.getDotRange(h,"min",0)),Math.min(t.minRange?100-t.minRangeDir*(r.length-1-h):100,t.enableCross?100:r[h+1]||100,t.getDotRange(h,"max",100))])}),n}},{key:"dotsIndex",get:function(){var t=this;return this.dotsValue.map(function(r){return t.getIndexByValue(r)})}}]),e}();function Te(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function we(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ze(e,t,r){return t&&we(e.prototype,t),r&&we(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Se(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Fe=function(){function e(t){Te(this,e),Se(this,"map",void 0),Se(this,"states",0),this.map=t}return ze(e,[{key:"add",value:function(t){this.states|=t}},{key:"delete",value:function(t){this.states&=~t}},{key:"toggle",value:function(t){this.has(t)?this.delete(t):this.add(t)}},{key:"has",value:function(t){return!!(this.states&t)}}]),e}();y(631);function he(e){return He(e)||Me(e)||me(e)||Be()}function Be(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 7In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Me(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function He(e){if(Array.isArray(e))return ve(e)}function Pe(e){return Pe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pe(e)}function Ae(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,n)}return r}function ue(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ae(Object(r),!0).forEach(function(n){re(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ae(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function re(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pe(e,t){return ut(e)||lt(e,t)||me(e,t)||Ye()}function Ye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 8In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function me(e,t){if(e){if(typeof e=="string")return ve(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ve(e,t):void 0}}function ve(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function lt(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,u,h=[],b=!0,K=!1;try{for(r=r.call(e);!(b=(n=r.next()).done)&&(h.push(n.value),!(t&&h.length===t));b=!0);}catch(P){K=!0,u=P}finally{try{b||r.return==null||r.return()}finally{if(K)throw u}}return h}}function ut(e){if(Array.isArray(e))return e}
8var G={None:0,Drag:2,Focus:4},We=4,ct=(0,i.defineComponent)({name:"VueSlider",components:{VueSliderDot:W,VueSliderMark:se},emits:["change","drag-start","dragging","drag-end","error","update:modelValue"],data:function(){return{control:null,states:new Fe(G),scale:1,focusDotIndex:0}},props:{modelValue:{type:[Number,String,Array],default:0},silent:{type:Boolean,default:!1},direction:{type:String,default:"ltr",validator:function(e){return["ltr","rtl","ttb","btt"].indexOf(e)>-1}},width:{type:[Number,String]},height:{type:[Number,String]},dotSize:{type:[Number,Array],default:14},contained:{type:Boolean,default:!1},min:{type:Number,default:0},max:{type:Number,default:100},interval:{type:Number,default:1},disabled:{type:Boolean,default:!1},clickable:{type:Boolean,default:!0},dragOnClick:{type:Boolean,default:!1},duration:{type:Number,default:.5},data:{type:[Object,Array]},dataValue:{type:String,default:"value"},dataLabel:{type:String,default:"label"},lazy:{type:Boolean,default:!1},tooltip:{type:String,default:"active",validator:function(e){return["none","always","focus","hover","active"].indexOf(e)>-1}},tooltipPlacement:{type:[String,Array],validator:function(e){return(Array.isArray(e)?e:[e]).every(function(t){return["top","right","bottom","left"].indexOf(t)>-1})}},tooltipFormatter:{type:[String,Array,Function]},useKeyboard:{type:Boolean,default:!0},keydownHook:{type:Function},enableCross:{type:Boolean,default:!0},fixed:{type:Boolean,default:!1},order:{type:Boolean,default:!0},minRange:{type:Number},maxRange:{type:Number},marks:{type:[Boolean,Object,Array,Function],default:!1},process:{type:[Boolean,Function],default:!0},zoom:{type:Number},included:{type:Boolean},adsorb:{type:Boolean},hideLabel:{type:Boolean},dotOptions:{type:[Object,Array]},dotAttrs:{type:Object},railStyle:{type:Object},processStyle:{type:Object},dotStyle:{type:Object},tooltipStyle:{type:Object},stepStyle:{type:Object},stepActiveStyle:{type:Object},labelStyle:{type:Object},labelActiveStyle:{type:Object}},computed:{isHorizontal:function(){return this.direction==="ltr"||this.direction==="rtl"},isReverse:function(){return this.direction==="rtl"||this.direction==="btt"},tailSize:function(){return ie((this.isHorizontal?this.height:this.width)||We)},containerClasses:function(){return["vue-slider",["vue-slider-".concat(this.direction)],{"vue-slider-disabled":this.disabled}]},containerStyles:function(){var e=Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],t=pe(e,2),r=t[0],n=t[1],u=this.width?ie(this.width):this.isHorizontal?"auto":ie(We),h=this.height?ie(this.height):this.isHorizontal?ie(We):"auto";return{padding:this.contained?"".concat(n/2,"px ").concat(r/2,"px"):this.isHorizontal?"".concat(n/2,"px 0"):"0 ".concat(r/2,"px"),width:u,height:h}},processArray:function(){var e=this;return this.control.processArray.map(function(t,r){var n,u=pe(t,3),h=u[0],b=u[1],K=u[2];if(h>b){var P=[b,h];h=P[0],b=P[1]}var Y=e.isHorizontal?"width":"height";return{start:h,end:b,index:r,style:ue(ue((n={},re(n,e.isHorizontal?"height":"width","100%"),re(n,e.isHorizontal?"top":"left",0),re(n,e.mainDirection,"".concat(h,"%")),re(n,Y,"".concat(b-h,"%")),re(n,"transitionProperty","".concat(Y,",").concat(e.mainDirection)),re(n,"transitionDuration","".concat(e.animateTime,"s")),n),e.processStyle),K)}})},dotBaseStyle:function(){var e,t=Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],r=pe(t,2),n=r[0],u=r[1];return e=this.isHorizontal?re({transform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),WebkitTransform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),top:"50%"},this.direction==="ltr"?"left":"right","0"):re({transform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),WebkitTransform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),left:"50%"},this.direction==="btt"?"bottom":"top","0"),ue({width:"".concat(n,"px"),height:"".concat(u,"px")},e)},mainDirection:function(){switch(this.direction){case"ltr":return"left";case"rtl":return"right";case"btt":return"bottom";case"ttb":return"top";default:return"left"}},tooltipDirections:function(){var e=this.tooltipPlacement||(this.isHorizontal?"top":"left");return Array.isArray(e)?e:this.dots.map(function(){return e})},dots:function(){var e=this;return this.control.dotsPos.map(function(t,r){return ue({pos:t,index:r,value:e.control.dotsValue[r],focus:e.states.has(G.Focus)&&e.focusDotIndex===r,disabled:e.disabled,style:e.dotStyle},(Array.isArray(e.dotOptions)?e.dotOptions[r]:e.dotOptions)||{})})},animateTime:function(){return this.states.has(G.Drag)?0:this.duration},canSort:function(){return this.order&&!this.minRange&&!this.maxRange&&!this.fixed&&this.enableCross},sliderData:function(){var e=this;return this.isObjectArrayData(this.data)?this.data.map(function(t){return t[e.dataValue]}):this.isObjectData(this.data)?Object.keys(this.data):this.data},sliderMarks:function(){var e=this;return this.marks?this.marks:this.isObjectArrayData(this.data)?function(t){var r={label:t};return e.data.some(function(n){return n[e.dataValue]===t&&(r.label=n[e.dataLabel],!0)}),r}:this.isObjectData(this.data)?this.data:void 0},sliderTooltipFormatter:function(){var e=this;if(this.tooltipFormatter)return this.tooltipFormatter;if(this.isObjectArrayData(this.data))return function(r){var n=""+r;return e.data.some(function(u){return u[e.dataValue]===r&&(n=u[e.dataLabel],!0)}),n};if(this.isObjectData(this.data)){var t=this.data;return function(r){return t[r]}}},isNotSync:function(){var e=this.control.dotsValue;return Array.isArray(this.modelValue)?this.modelValue.length!==e.length||this.modelValue.some(function(t,r){return t!==e[r]}):this.modelValue!==e[0]},dragRange:function(){var e=this.dots[this.focusDotIndex-1],t=this.dots[this.focusDotIndex+1];
8return[e?e.pos:-1/0,t?t.pos:1/0]}},watch:{modelValue:function(){this.control&&!this.states.has(G.Drag)&&this.isNotSync&&this.control.setValue(this.modelValue)}},methods:{isObjectData:function(e){return!!e&&Object.prototype.toString.call(e)==="[object Object]"},isObjectArrayData:function(e){return!!e&&Array.isArray(e)&&e.length>0&&Pe(e[0])==="object"},bindEvent:function(){document.addEventListener("touchmove",this.dragMove,{passive:!1}),document.addEventListener("touchend",this.dragEnd,{passive:!1}),document.addEventListener("mousedown",this.blurHandle),document.addEventListener("mousemove",this.dragMove),document.addEventListener("mouseup",this.dragEnd),document.addEventListener("mouseleave",this.dragEnd),document.addEventListener("keydown",this.keydownHandle)},unbindEvent:function(){document.removeEventListener("touchmove",this.dragMove),document.removeEventListener("touchend",this.dragEnd),document.removeEventListener("mousedown",this.blurHandle),document.removeEventListener("mousemove",this.dragMove),document.removeEventListener("mouseup",this.dragEnd),document.removeEventListener("mouseleave",this.dragEnd),document.removeEventListener("keydown",this.keydownHandle)},setScale:function(){this.scale=new N(Math.floor(this.isHorizontal?this.$el.offsetWidth:this.$el.offsetHeight)).multiply(this.zoom||1).divide(100).toNumber()},initControl:function(){var e=this;this.control=new Ce({value:this.modelValue,data:this.sliderData,enableCross:this.enableCross,fixed:this.fixed,max:this.max,min:this.min,interval:this.interval,minRange:this.minRange,maxRange:this.maxRange,order:this.order,marks:this.sliderMarks,included:this.included,process:this.process,adsorb:this.adsorb,dotOptions:this.dotOptions,onError:this.emitError}),["data","enableCross","fixed","max","min","interval","minRange","maxRange","order","marks","process","adsorb","included","dotOptions"].forEach(function(t){e.$watch(t,function(r){if(t==="data"&&Array.isArray(e.control.data)&&Array.isArray(r)&&e.control.data.length===r.length&&r.every(function(n,u){return n===e.control.data[u]}))return!1;switch(t){case"data":case"dataLabel":case"dataValue":e.control.data=e.sliderData;break;case"mark":e.control.marks=e.sliderMarks;break;default:e.control[t]=r}["data","max","min","interval"].indexOf(t)>-1&&e.control.syncDotsPos()})})},syncValueByPos:function(){var e=this.control.dotsValue;if(this.isDiff(e,Array.isArray(this.modelValue)?this.modelValue:[this.modelValue])){var t=e.length===1?e[0]:he(e);this.$emit("change",t,this.focusDotIndex),this.$emit("update:modelValue",t)}},isDiff:function(e,t){return e.length!==t.length||e.some(function(r,n){return r!==t[n]})},emitError:function(e,t){this.silent||console.error("[VueSlider error]: ".concat(t)),this.$emit("error",e,t)},dragStartOnProcess:function(e){if(this.dragOnClick){this.setScale();var t=this.getPosByEvent(e),r=this.control.getRecentDot(t);if(this.dots[r].disabled)return;this.dragStart(r),this.control.setDotPos(t,this.focusDotIndex),this.lazy||this.syncValueByPos()}},dragStart:function(e){this.focusDotIndex=e,this.setScale(),this.states.add(G.Drag),this.states.add(G.Focus),this.$emit("drag-start",this.focusDotIndex)},dragMove:function(e){if(!this.states.has(G.Drag))return!1;e.preventDefault();var t=this.getPosByEvent(e);this.isCrossDot(t),this.control.setDotPos(t,this.focusDotIndex),this.lazy||this.syncValueByPos();var r=this.control.dotsValue;this.$emit("dragging",r.length===1?r[0]:he(r),this.focusDotIndex)},isCrossDot:function(e){if(this.canSort){var t=this.focusDotIndex,r=e;if(r>this.dragRange[1]?(r=this.dragRange[1],this.focusDotIndex++):r<this.dragRange[0]&&(r=this.dragRange[0],this.focusDotIndex--),t!==this.focusDotIndex){var n=this.$refs["dot-".concat(this.focusDotIndex)];n&&n.$el&&n.$el.focus(),this.control.setDotPos(r,t)}}},dragEnd:function(e){var t=this;if(!this.states.has(G.Drag))return!1;setTimeout(function(){t.lazy&&t.syncValueByPos(),t.included&&t.isNotSync?t.control.setValue(t.modelValue):t.control.syncDotsPos(),t.states.delete(G.Drag),t.useKeyboard&&!("targetTouches"in e)||t.states.delete(G.Focus),t.$emit("drag-end",t.focusDotIndex)})},blurHandle:function(e){if(!this.states.has(G.Focus)||!this.$refs.container||this.$refs.container.contains(e.target))return!1;this.states.delete(G.Focus)},clickHandle:function(e){if(!this.clickable||this.disabled)return!1;if(!this.states.has(G.Drag)){this.setScale();var t=this.getPosByEvent(e);this.setValueByPos(t)}},focus:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;e.disabled||(this.states.add(G.Focus),this.focusDotIndex=t)},blur:function(){this.states.delete(G.Focus)},getValue:function(){var e=this.control.dotsValue;return e.length===1?e[0]:e},getIndex:function(){var e=this.control.dotsIndex;return e.length===1?e[0]:e},setValue:function(e){this.control.setValue(Array.isArray(e)?he(e):[e]),this.syncValueByPos()},setIndex:function(e){var t=this,r=Array.isArray(e)?e.map(function(n){return t.control.getValueByIndex(n)}):this.control.getValueByIndex(e);this.setValue(r)},setValueByPos:function(e){var t=this,r=this.control.getRecentDot(e);
8if(this.disabled||this.dots[r].disabled)return!1;this.focusDotIndex=r,this.control.setDotPos(e,r),this.syncValueByPos(),this.useKeyboard&&this.states.add(G.Focus),setTimeout(function(){t.included&&t.isNotSync?t.control.setValue(t.modelValue):t.control.syncDotsPos()})},keydownHandle:function(e){var t=this;if(!this.useKeyboard||!this.states.has(G.Focus))return!1;var r=this.included&&this.marks,n=j(e,{direction:this.direction,max:r?this.control.markList.length-1:this.control.total,min:0,hook:this.keydownHook});if(n){e.preventDefault();var u=-1,h=0;r?(this.control.markList.some(function(b,K){return b.value===t.control.dotsValue[t.focusDotIndex]&&(u=n(K),!0)}),u<0?u=0:u>this.control.markList.length-1&&(u=this.control.markList.length-1),h=this.control.markList[u].pos):(u=n(this.control.getIndexByValue(this.control.dotsValue[this.focusDotIndex])),h=this.control.parseValue(this.control.getValueByIndex(u))),this.isCrossDot(h),this.control.setDotPos(h,this.focusDotIndex),this.syncValueByPos()}},getPosByEvent:function(e){return w(e,this.$el,this.isReverse,this.zoom)[this.isHorizontal?"x":"y"]/this.scale},renderSlot:function(e,t,r){var n=this.$slots[e];return n?n(t):r}},created:function(){this.initControl()},mounted:function(){this.bindEvent()},beforeUnmount:function(){this.unbindEvent()}}),Xe=(0,L.Z)(ct,[["render",C]]);Xe.VueSliderMark=se,Xe.VueSliderDot=W;var dt=Xe,ft=dt}(),A=A.default,A}()})})(ot);const tr=Et(ot.exports);const rr={class:"col-12 col-md-12 col-xl-8"},nr={class:"time-period-filter"},ir={class:"lead-classic-large"},ar={__name:"TimePeriodFilters",props:{timePeriodTitle:String,minYear:Number,maxYear:Number},setup(v){const d=be(),f=v,k={dotSize:24,contained:!0,height:8};return(l,y)=>(R(),_("div",rr,[O("div",nr,[O("h2",ir,Z(f.timePeriodTitle),1),de(U(tr),wt({modelValue:U(d).sliderValues,"onUpdate:modelValue":y[0]||(y[0]=A=>U(d).sliderValues=A)},k,{min:f.minYear,max:f.maxYear,"enable-cross":!1,"tooltip-placement":["bottom","bottom"],tooltip:"always",onChange:y[1]||(y[1]=A=>U(d).filterByTimePeriod(A))}),null,16,["modelValue","min","max"])])]))}};var st={exports:{}};(function(v){(function(d,f){v.exports?v.exports=f():d.Rellax=f()})(typeof window<"u"?window:at,function(){var d=function(f,k){var l=Object.create(d.prototype),y=0,A=0,c=0,p=0,a=[],i=!0,x=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||function(o){return setTimeout(o,1e3/60)},D=null,C=!1;try{var $=Object.defineProperty({},"passive",{get:function(){C=!0}});window.addEventListener("testPassive",null,$),window.removeEventListener("testPassive",null,$)}catch{}var z=window.cancelAnimationFrame||window.mozCancelAnimationFrame||clearTimeout,F=window.transformProp||function(){var o=document.createElement("div");if(o.style.transform===null){var s=["Webkit","Moz","ms"];for(var g in s)if(o.style[s[g]+"Transform"]!==void 0)return s[g]+"Transform"}return"transform"}();l.options={speed:-2,verticalSpeed:null,horizontalSpeed:null,breakpoints:[576,768,1201],center:!1,wrapper:null,relativeToWrapper:!1,round:!0,vertical:!0,horizontal:!1,verticalScrollAxis:"y",horizontalScrollAxis:"x",callback:function(){}},k&&Object.keys(k).forEach(function(o){l.options[o]=k[o]});function S(){if(l.options.breakpoints.length===3&&Array.isArray(l.options.breakpoints)){var o=!0,s=!0,g;if(l.options.breakpoints.forEach(function(E){typeof E!="number"&&(s=!1),g!==null&&E<g&&(o=!1),g=E}),o&&s)return}l.options.breakpoints=[576,768,1201],console.warn("Rellax: You must pass an array of 3 numbers in ascending order to the breakpoints option. Defaults reverted")}k&&k.breakpoints&&S(),f||(f=".rellax");var L=typeof f=="string"?document.querySelectorAll(f):[f];if(L.length>0)l.elems=L;else{console.warn("Rellax: The elements you're trying to select don't exist.");return}if(l.options.wrapper&&!l.options.wrapper.nodeType){var m=document.querySelector(l.options.wrapper);if(m)l.options.wrapper=m;else{console.warn("Rellax: The wrapper you're trying to use doesn't exist.");return}}var W,J=function(o){var s=l.options.breakpoints;return o<s[0]?"xs":o>=s[0]&&o<s[1]?"sm":o>=s[1]&&o<s[2]?"md":"lg"},ee=function(){for(var o=0;o<l.elems.length;o++){var s=B(l.elems[o]);a.push(s)}},I=function(){for(var o=0;o<a.length;o++)l.elems[o].style.cssText=a[o].style;a=[],A=window.innerHeight,p=window.innerWidth,W=J(p),se(),ee(),j(),i&&(window.addEventListener("resize",I),i=!1,w())},B=function(o){var s=o.getAttribute("data-rellax-percentage"),g=o.getAttribute("data-rellax-speed"),E=o.getAttribute("data-rellax-xs-speed"),T=o.getAttribute("data-rellax-mobile-speed"),V=o.getAttribute("data-rellax-tablet-speed"),N=o.getAttribute("data-rellax-desktop-speed"),H=o.getAttribute("data-rellax-vert
8ical-speed"),te=o.getAttribute("data-rellax-horizontal-speed"),fe=o.getAttribute("data-rellax-vertical-scroll-axis"),X=o.getAttribute("data-rellax-horizontal-scroll-axis"),q=o.getAttribute("data-rellax-zindex")||0,xe=o.getAttribute("data-rellax-min"),le=o.getAttribute("data-rellax-max"),$e=o.getAttribute("data-rellax-min-x"),De=o.getAttribute("data-rellax-max-x"),Ie=o.getAttribute("data-rellax-min-y"),Ne=o.getAttribute("data-rellax-max-y"),ce,Ve=!0;!E&&!T&&!V&&!N?Ve=!1:ce={xs:E,sm:T,md:V,lg:N};var ke=l.options.wrapper?l.options.wrapper.scrollTop:window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop;if(l.options.relativeToWrapper){var Ue=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop;ke=Ue-l.options.wrapper.offsetTop}var M=l.options.vertical&&(s||l.options.center)?ke:0,je=l.options.horizontal&&(s||l.options.center)?l.options.wrapper?l.options.wrapper.scrollLeft:window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft:0,Ce=M+o.getBoundingClientRect().top,Te=o.clientHeight||o.offsetHeight||o.scrollHeight,we=je+o.getBoundingClientRect().left,ze=o.clientWidth||o.offsetWidth||o.scrollWidth,Se=s||(M-Ce+A)/(Te+A),Fe=s||(je-we+p)/(ze+p);l.options.center&&(Fe=.5,Se=.5);var he=Ve&&ce[W]!==null?Number(ce[W]):g||l.options.speed,Be=H||l.options.verticalSpeed,Me=te||l.options.horizontalSpeed,He=fe||l.options.verticalScrollAxis,Pe=X||l.options.horizontalScrollAxis,Ae=ie(Fe,Se,he,Be,Me),ue=o.style.cssText,re="",pe=/transform\s*:/i.exec(ue);if(pe){var Ye=pe.index,me=ue.slice(Ye),ve=me.indexOf(";");ve?re=" "+me.slice(11,ve).replace(/\s/g,""):re=" "+me.slice(11).replace(/\s/g,"")}return{baseX:Ae.x,baseY:Ae.y,top:Ce,left:we,height:Te,width:ze,speed:he,verticalSpeed:Be,horizontalSpeed:Me,verticalScrollAxis:He,horizontalScrollAxis:Pe,style:ue,transform:re,zindex:q,min:xe,max:le,minX:$e,maxX:De,minY:Ie,maxY:Ne}},se=function(){var o=y,s=c;if(y=l.options.wrapper?l.options.wrapper.scrollTop:(document.documentElement||document.body.parentNode||document.body).scrollTop||window.pageYOffset,c=l.options.wrapper?l.options.wrapper.scrollLeft:(document.documentElement||document.body.parentNode||document.body).scrollLeft||window.pageXOffset,l.options.relativeToWrapper){var g=(document.documentElement||document.body.parentNode||document.body).scrollTop||window.pageYOffset;y=g-l.options.wrapper.offsetTop}return!!(o!=y&&l.options.vertical||s!=c&&l.options.horizontal)},ie=function(o,s,g,E,T){var V={},N=(T||g)*(100*(1-o)),H=(E||g)*(100*(1-s));return V.x=l.options.round?Math.round(N):Math.round(N*100)/100,V.y=l.options.round?Math.round(H):Math.round(H*100)/100,V},ne=function(){window.removeEventListener("resize",ne),window.removeEventListener("orientationchange",ne),(l.options.wrapper?l.options.wrapper:window).removeEventListener("scroll",ne),(l.options.wrapper?l.options.wrapper:document).removeEventListener("touchmove",ne),D=x(w)},w=function(){se()&&i===!1?(j(),D=x(w)):(D=null,window.addEventListener("resize",ne),window.addEventListener("orientationchange",ne),(l.options.wrapper?l.options.wrapper:window).addEventListener("scroll",ne,C?{passive:!0}:!1),(l.options.wrapper?l.options.wrapper:document).addEventListener("touchmove",ne,C?{passive:!0}:!1))},j=function(){for(var o,s=0;s<l.elems.length;s++){var g=a[s].verticalScrollAxis.toLowerCase(),E=a[s].horizontalScrollAxis.toLowerCase(),T=g.indexOf("x")!=-1?y:0,V=g.indexOf("y")!=-1?y:0,N=E.indexOf("x")!=-1?c:0,H=E.indexOf("y")!=-1?c:0,te=(V+H-a[s].top+A)/(a[s].height+A),fe=(T+N-a[s].left+p)/(a[s].width+p);o=ie(fe,te,a[s].speed,a[s].verticalSpeed,a[s].horizontalSpeed);var X=o.y-a[s].baseY,q=o.x-a[s].baseX;a[s].min!==null&&(l.options.vertical&&!l.options.horizontal&&(X=X<=a[s].min?a[s].min:X),l.options.horizontal&&!l.options.vertical&&(q=q<=a[s].min?a[s].min:q)),a[s].minY!=null&&(X=X<=a[s].minY?a[s].minY:X),a[s].minX!=null&&(q=q<=a[s].minX?a[s].minX:q),a[s].max!==null&&(l.options.vertical&&!l.options.horizontal&&(X=X>=a[s].max?a[s].max:X),l.options.horizontal&&!l.options.vertical&&(q=q>=a[s].max?a[s].max:q)),a[s].maxY!=null&&(X=X>=a[s].maxY?a[s].maxY:X),a[s].maxX!=null&&(q=q>=a[s].maxX?a[s].maxX:q);var xe=a[s].zindex,le="translate3d("+(l.options.horizontal?q:"0")+"px,"+(l.options.vertical?X:"0")+"px,"+xe+"px) "+a[s].transform;l.elems[s].style[F]=le}l.options.callback(o)};return l.destroy=function(){for(var o=0;o<l.elems.length;o++)l.elems[o].style.cssText=a[o].style;i||(window.removeEventListener("resize",I),i=!0),z(D),D=null},I(),l.refresh=I,l};return d})})(st);const or=st.exports,sr={class:"container project-list"},lr={class:"row project-list-filter-navigation"},ur={key:0,class:"row"},cr=["onClick","onKeyup","data-rellax-speed"],dr={class:"h2-standard underline"},fr={class:"project-result-list h2-standard"},hr=["src","alt"],pr=["onClick","onKeyup","data-rellax-speed"],mr={class:"h2-standard underline"},vr={class:"project-result-list h2-standard"},yr=["src","alt"],gr=["onClick","onKeyup","data-rellax-speed"],br={class:"h2-standard underline"},xr={class:"project-result-list h2-standard"},kr=["src","alt"],wr={key:4},Er={__name:"ProjectList",props:{pages:Array,allArticles:Array,tagsTitle:String,timePeriodTitle:String,firmsTitle:String,minYear:Number,maxYear:Number,tagsFilterResult:Array,firmsFilterResult:Object,mapData:Object},setup(v){var $;const d=be(),f=v;St(()=>{d.initPages(f.pages),d.initFilters(f.tagsFilterResult,ge.TAG),d.initSliderValues(f.minYear,f.maxYear);for(const[z,F]of Object.entries(f.firmsFilterResult))d.initFilters(F,ge.FIRM);new or(".rellax")}
8);const k=z=>{window.location.href=z.url},l=(z,F)=>{if(F.length==0)return!0;var S=!1;return F.forEach(L=>{var m=z.tags.find(W=>W===L.name)?!0:z.category.name===L.name;m&&(S=!0)}),S},y=(z,F)=>{if(F.length==0)return!0;var S=!1;return F.forEach(L=>{var m=z.architects.map(J=>J.id),W=!!m.find(J=>J==L.id);W&&(S=!0)}),S},A=Ge(()=>{var z=d.filters,F=f.allArticles;if(z.length===0&&d.sliderValues[0]===d.sliderInitialValues[0]&&d.sliderValues[1]===d.sliderInitialValues[1])return F;var S=z.filter(m=>m.filterType===ge.TAG),L=z.filter(m=>m.filterType===ge.FIRM);return F=F.filter(m=>{var W=l(m,S),J=y(m,L);let ee=new Date(m.publishDate),I=ee==null?void 0:ee.getFullYear();var B=I<=d.sliderValues[1]&&I>=d.sliderValues[0];return W&&J&&B}),F}),c=($=A==null?void 0:A.value)==null?void 0:$.length;let p=0;const a=z=>{if(p++,p>4&&(p=1),p===1)return-2;if(p===2)return 0;if(p===3)return-3;if(p===4)return-1};let i=0;const x=z=>{if(i++,i>3&&(i=1),i===1)return-2;if(i===2)return 0;if(i===3)return-1},D=z=>z%2===2-1?-2:-1,C=Ge(()=>`margin-bottom: ${c*80}px;`);return(z,F)=>(R(),_("div",sr,[O("div",lr,[de(Dt,{class:"col-md-6"}),de(Tt,{class:"col-md-6",menu:f.pages},null,8,["menu"])]),U(d).activePage.id===2?(R(),_("div",ur,[de(Ut,{"tags-title":f.tagsTitle,"tags-filter-result":f.tagsFilterResult},null,8,["tags-title","tags-filter-result"]),de(ar,{"time-period-title":f.timePeriodTitle,"min-year":f.minYear,"max-year":f.maxYear},null,8,["time-period-title","min-year","max-year"]),de(Jt,{"firms-title":f.firmsTitle,"firms-filter-result":f.firmsFilterResult},null,8,["firms-title","firms-filter-result"])])):ye("",!0),U(d).activePage.id!==1?(R(),_("div",{key:1,class:"row project-result d-none d-xl-flex",style:Le(C.value)},[(R(!0),_(ae,null,oe(A.value,(S,L)=>(R(),_("a",{class:"col-6 col-md-4 col-xl-3 project-preview rellax",onClick:m=>k(S),onKeyup:qe(m=>k(S),["enter"]),"data-rellax-speed":a(),key:S.id,tabindex:"0"},[O("div",null,[O("h2",dr,Z(S.title),1),O("ul",fr,[(R(!0),_(ae,null,oe(S.architects,m=>(R(),_("li",{key:m.id},Z(m.name),1))),128))])]),O("img",{src:S.image,alt:S.imageAlt,loading:"lazy"},null,8,hr)],40,cr))),128))],4)):ye("",!0),U(d).activePage.id!==1?(R(),_("div",{key:2,class:"project-result d-none d-md-flex d-xl-none row",style:Le(C.value)},[(R(!0),_(ae,null,oe(A.value,(S,L)=>(R(),_("a",{class:"col-6 col-md-4 col-xl-3 project-preview rellax",onClick:m=>k(S),onKeyup:qe(m=>k(S),["enter"]),"data-rellax-speed":x(),key:S.id,tabindex:"0"},[O("div",null,[O("h4",mr,Z(S.title),1),O("ul",vr,[(R(!0),_(ae,null,oe(S.architects,m=>(R(),_("li",{key:m.id},Z(m.name),1))),128))])]),O("img",{src:S.image,alt:S.imageAlt,loading:"lazy"},null,8,yr)],40,pr))),128))],4)):ye("",!0),U(d).activePage.id!==1?(R(),_("div",{key:3,class:"row project-result d-md-none",style:Le(C.value)},[(R(!0),_(ae,null,oe(A.value,(S,L)=>(R(),_("a",{class:"col-6 col-md-4 col-xl-3 project-preview rellax",onClick:m=>k(S),onKeyup:qe(m=>k(S),["enter"]),"data-rellax-speed":D(L),key:S.id,tabindex:"0"},[O("div",null,[O("h4",br,Z(S.title),1),O("ul",xr,[(R(!0),_(ae,null,oe(S.architects,m=>(R(),_("li",{key:m.id},Z(m.name),1))),128))])]),O("img",{src:S.image,alt:S.imageAlt,loading:"lazy"},null,8,kr)],40,gr))),128))],4)):ye("",!0),U(d).activePage.id===1?(R(),_("div",wr,[de(At,{"map-data":f.mapData,"map-style":U(Pt).LANDING,class:"row-full"},null,8,["map-data","map-style"])])):ye("",!0)]))}};export{Er as default}; 9//# sourceMappingURL=ProjectList.b1a39a34.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.