(function(){if(function(f,t){if(typeof exports=="object"&&typeof module=="object")module.exports=t();else if(typeof define=="function"&&define.amd)define([],t);else{var n=t();for(var i in n)(typeof exports=="object"?exports:f)[i]=n[i]}}(typeof self!="undefined"?self:this,function(){return function(f){function t(i){if(n[i])return n[i].exports;var s=n[i]={i,l:!1,exports:{}};return f[i].call(s.exports,s,s.exports,t),s.l=!0,s.exports}var n={};return t.m=f,t.c=n,t.d=function(i,s,d){t.o(i,s)||Object.defineProperty(i,s,{configurable:!1,enumerable:!0,get:d})},t.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return t.d(s,"a",s),s},t.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},t.p="",t(t.s=7)}([function(f,t,n){"use strict";function i(p){return p&&p.__esModule?p:{default:p}}function s(p,X){function O(e,u){var a=y,m=a.classNameActiveSlide;e.forEach(function(g,w){g.classList.contains(m)&&g.classList.remove(m)}),e[u].classList.add(m)}function F(e){var u=y,a=u.infinite,m=e.slice(0,a),g=e.slice(e.length-a,e.length);return m.forEach(function(w){var N=w.cloneNode(!0);_.appendChild(N)}),g.reverse().forEach(function(w){var N=w.cloneNode(!0);_.insertBefore(N,_.firstChild)}),_.addEventListener(I.transitionEnd,ce),z.call(_.children)}function S(e,u,a){(0,pe.default)(p,e+".lory."+u,a)}function q(e,u,a){var m=_&&_.style;m&&(m[I.transition+"TimingFunction"]=a,m[I.transition+"Duration"]=u+"ms",m[I.transform]="translateX("+e+"px)")}function Y(e){return e.getBoundingClientRect().width||e.offsetWidth}function $(e,u){var a=y,m=a.slideSpeed,g=a.slidesToScroll,w=a.infinite,N=a.rewind,P=a.rewindPrev,D=a.rewindSpeed,oe=a.ease,se=a.classNameActiveSlide,Z=a.classNameDisabledNextCtrl,me=Z===void 0?"disabled":Z,he=a.classNameDisabledPrevCtrl,_e=he===void 0?"disabled":he,le=m,xe=u?r+1:r-1,re=Math.round(K-Q);S("before","slide",{index:r,nextSlide:xe}),b&&b.classList.remove(_e),E&&E.classList.remove(me),typeof e!="number"&&(e=u?w&&r+2*w!==v.length?r+(w-r%w):r+g:w&&r%w!=0?r-r%w:r-g),e=Math.min(Math.max(e,0),v.length-1),w&&u===void 0&&(e+=w),P&&Math.abs(M.x)===0&&u===!1&&(e=v.length-1,le=D);var ae=Math.min(Math.max(-1*v[e].offsetLeft,-1*re),0);N&&Math.abs(M.x)===re&&u&&(ae=0,e=0,le=D),q(ae,le,oe),M.x=ae,v[e].offsetLeft<=re&&(r=e),!w||e!==v.length-w&&e!==v.length-v.length%w&&e!==0||(u&&(r=w),u||(r=v.length-2*w),M.x=-1*v[r].offsetLeft,J=function(){q(-1*v[r].offsetLeft,0,void 0)}),se&&O(z.call(v),r),!b||w||P||e!==0||b.classList.add(_e),!E||w||N||e+1!==v.length||E.classList.add(me),S("after","slide",{currentSlide:r})}function we(){S("before","init"),I=(0,h.default)(),y=d({},ke.default,X);var e=y,u=e.classNameFrame,a=e.classNameSlideContainer,m=e.classNamePrevCtrl,g=e.classNameNextCtrl,w=e.classNameDisabledNextCtrl,N=w===void 0?"disabled":w,P=e.classNameDisabledPrevCtrl,D=P===void 0?"disabled":P,oe=e.enableMouseEvents,se=e.classNameActiveSlide,Z=e.initialIndex;r=Z,c=p.getElementsByClassName(u)[0],_=c.getElementsByClassName(a)[0],b=p.getElementsByClassName(m)[0],E=p.getElementsByClassName(g)[0],M={x:_.offsetLeft,y:_.offsetTop},y.infinite?v=F(z.call(_.children)):(v=z.call(_.children),b&&!y.rewindPrev&&b.classList.add(D),E&&v.length===1&&!y.rewind&&E.classList.add(N)),te(),se&&O(v,r),b&&E&&(b.addEventListener("click",ne),E.addEventListener("click",ie)),c.addEventListener("touchstart",G,V),oe&&(c.addEventListener("mousedown",G),c.addEventListener("click",fe)),y.window.addEventListener("resize",ve),S("after","init")}function te(){var e=y,u=e.infinite,a=e.ease,m=e.rewindSpeed,g=e.rewindOnResize,w=e.classNameActiveSlide,N=e.initialIndex;K=Y(_),Q=Y(c),Q===K&&(K=v.reduce(function(P,D){return P+Y(D)},0)),g?r=N:(a=null,m=0),u?(q(-1*v[r+u].offsetLeft,0,null),r+=u,M.x=-1*v[r].offsetLeft):(q(-1*v[r].offsetLeft,m,a),M.x=-1*v[r].offsetLeft),w&&O(z.call(v),r)}function be(e){$(e)}function Ee(){return r-y.infinite||0}function ne(){$(!1,!1)}function ie(){$(!1,!0)}function Le(){S("before","destroy"),c.removeEventListener(I.transitionEnd,ce),c.removeEventListener("touchstart",G,V),c.removeEventListener("touchmove",T,V),c.removeEventListener("touchend",C),c.removeEventListener("mousemove",T),c.removeEventListener("mousedown",G),c.removeEventListener("mouseup",C),c.removeEventListener("mouseleave",C),c.removeEventListener("click",fe),y.window.removeEventListener("resize",ve),b&&b.removeEventListener("click",ne),E&&E.removeEventListener("click",ie),y.infinite&&Array.apply(null,Array(y.infinite)).forEach(function(){_.removeChild(_.firstChild),_.removeChild(_.lastChild)}),S("after","destroy")}function ce(){J&&(J(),J=void 0)}function G(e){var u=y,a=u.enableMouseEvents,m=e.touches?e.touches[0]:e;a&&(c.addEventListener("mousemove",T),c.addEventListener("mouseup",C),c.addEventListener("mouseleave",C)),c.addEventListener("touchmove",T,V),c.addEventListener("touchend",C);var g=m.pageX,w=m.pageY;B={x:g,y:w,time:Date.now()},R=void 0,L={},S("on","touchstart",{event:e})}function T(e){var u=e.touches?e.touches[0]:e,a=u.pageX,m=u.pageY;L={x:a-B.x,y:m-B.y},R===void 0&&(R=!!(R||Math.abs(L.x)<Math.abs(L.y))),!R&&B&&q(M.x+L.x,0,null),S("on","touchmove",{event:e})}function C(e){var u=B?Date.now()-B.time:void 0,a=Number(u)<300&&Math.abs(L.x)>25||Math.abs(L.x)>Q/3,m=!r&&L.x>0||r===v.length-1&&L.x<0,g=L.x<0;R||(a&&!m?$(!1,g):q(M.x,y.snapBackSpeed)),B=void 0,c.removeEventListener("touchmove",T),c.removeEventListener("touchend",C),c.removeEventListener("mousemove",T),c.removeEventListener("mouseup",C),c.removeEventListener("mouseleave",C),S("on","touchend",{event:e})}function fe(e){L.x&&e.preventDefault()}function ve(e){Q!==Y(c)&&(te(),S("on","resize",{event:e}))}var M=void 0,K=void 0,Q=void 0,v=void 0,c=void 0,_=void 0,b=void 0,E=void 0,I=void 0,J=void 0,r=0,y={},V=!!(0,k.default)()&&{passive:!0};typeof jQuery!="undefined"&&p instanceof jQuery&&(p=p[0]);var B=void 0,L=void 0,R=void 0;return we(),{setup:we,reset:te,slideTo:be,returnIndex:Ee,prev:ne,next:ie,destroy:Le}}Object.defineProperty(t,"__esModule",{value:!0});var d=Object.assign||function(p){for(var X=1;X<arguments.length;X++){var O=arguments[X];for(var F in O)Object.prototype.hasOwnProperty.call(O,F)&&(p[F]=O[F])}return p};t.lory=s;var l=n(1),h=i(l),x=n(2),k=i(x),ye=n(3),pe=i(ye),ge=n(6),ke=i(ge),z=Array.prototype.slice},function(f,t,n){"use strict";function i(){var s=void 0,d=void 0,l=void 0;return function(){var h=document.createElement("_"),x=h.style,k=void 0;x[k="webkitTransition"]===""&&(l="webkitTransitionEnd",d=k),x[k="transition"]===""&&(l="transitionend",d=k),x[k="webkitTransform"]===""&&(s=k),x[k="msTransform"]===""&&(s=k),x[k="transform"]===""&&(s=k),document.body.insertBefore(h,null),x[s]="translateX(0)",document.body.removeChild(h)}(),{transform:s,transition:d,transitionEnd:l}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},function(f,t,n){"use strict";function i(){var s=!1;try{var d=Object.defineProperty({},"passive",{get:function(){s=!0}});window.addEventListener("testPassive",null,d),window.removeEventListener("testPassive",null,d)}catch(l){}return s}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},function(f,t,n){"use strict";function i(l,h,x){var k=new d.default(h,{bubbles:!0,cancelable:!0,detail:x});l.dispatchEvent(k)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var s=n(4),d=function(l){return l&&l.__esModule?l:{default:l}}(s)},function(f,t,n){(function(i){var s=i.CustomEvent;f.exports=function(){try{var d=new s("cat",{detail:{foo:"bar"}});return d.type==="cat"&&d.detail.foo==="bar"}catch(l){}return!1}()?s:typeof document!="undefined"&&typeof document.createEvent=="function"?function(d,l){var h=document.createEvent("CustomEvent");return l?h.initCustomEvent(d,l.bubbles,l.cancelable,l.detail):h.initCustomEvent(d,!1,!1,void 0),h}:function(d,l){var h=document.createEventObject();return h.type=d,l?(h.bubbles=!!l.bubbles,h.cancelable=!!l.cancelable,h.detail=l.detail):(h.bubbles=!1,h.cancelable=!1,h.detail=void 0),h}}).call(t,n(5))},function(f,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(i){typeof window=="object"&&(n=window)}f.exports=n},function(f,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={slidesToScroll:1,slideSpeed:300,rewindSpeed:600,snapBackSpeed:200,ease:"ease",rewind:!1,infinite:!1,initialIndex:0,classNameFrame:"js_frame",classNameSlideContainer:"js_slides",classNamePrevCtrl:"js_prev",classNameNextCtrl:"js_next",classNameActiveSlide:"active",enableMouseEvents:!1,window:typeof window!="undefined"?window:null,rewindOnResize:!0}},function(f,t,n){f.exports=n(0)}])}),!ee)var ee=function(t,n,i){_wwk_height[n]==0||_wwk_layout[n].indexOf("balloon")!==-1?_wwk_layout[n]===""||_wwk_layout[n]==="default"?_wwk_show[n]==="yes"?t.style.height="344px":t.style.height="172px":_wwk_layout[n]==="modern"?_wwk_show[n]==="yes"?t.style.height="290px":t.style.height="142px":_wwk_layout[n].indexOf("button-")===0?t.style.height="30px":_wwk_layout[n].indexOf("balloon")!==-1?_wwk_width[n]==="manual"?t.style.height=_wwk_width_amount[n]:(t.style.height=i+"px",window.addEventListener&&window.addEventListener("resize",function(){t.style.height=t.getBoundingClientRect().width+"px"})):_wwk_layout[n]=="new_default"||_wwk_layout[n]=="new_badges"?t.style.height="250px":t.style.height="163px":t.style.height=_wwk_height[n],_wwk_width[n]==="auto"?t.style.width="100%":t.style.width=_wwk_width_amount[n]};if(!ue)var ue=function(t){for(var n=document.querySelector(".wwk-widget-container[data-index='"+t+"']"),i=n.querySelectorAll(".wwk-widget-default-slides li"),s=0;s<i.length;s++)i[s].style.width=n.querySelector(".wwk-widget-default-slides").offsetWidth+"px";lory(n.querySelector(".wwk-widget-default-container"),{infinite:1,classNameFrame:"wwk-widget-default-slides"})};var o=0,H="https://dashboard.webwinkelkeur.nl/webshops/widget_html?id="+_wwk_id[o]+"&layout="+_wwk_layout[o]+"&theme="+_wwk_theme[o]+"&color="+encodeURIComponent(_wwk_color[o])+"&show="+_wwk_show[o]+"&view="+_wwk_view[o]+"&amount="+_wwk_amount[o]+"&width="+_wwk_width[o]+"&width_amount="+encodeURIComponent(_wwk_width_amount[o])+"&height="+_wwk_height[o]+"&interval="+_wwk_interval[o]+"&index="+o;if(typeof _wwk_language!="undefined"&&typeof _wwk_language[o]!="undefined"&&(H+="&language="+_wwk_language[o]),typeof _wwk_inline!="undefined"&&typeof _wwk_inline[o]!="undefined"&&_wwk_layout[o]!=="button-stars"&&_wwk_layout[o]!=="balloon"&&(H+="&inline="+_wwk_inline[o]),typeof webwinkelkeurPopup=="function"&&(H+="&postmessage"),typeof _wwk_inline!="undefined"&&typeof _wwk_inline[o]!="undefined"&&_wwk_inline[o]==="1"&&_wwk_layout[o]!=="modern"&&_wwk_layout[o]!=="balloon"){var U=document.createElement("div");U.className="wwk-widget-container",U.setAttribute("data-index",o),ee(U,o);var W=document.getElementsByClassName("wwk_script");W[o].parentNode.insertBefore(U,W[o]);var A=new XMLHttpRequest;A.onreadystatechange=function(){if(A.readyState===XMLHttpRequest.DONE)if(A.status===200){var f=document.querySelectorAll(".wwk-widget-container")[0];if(f.innerHTML=A.responseText,(_wwk_layout[o]===""||_wwk_layout[o]==="default")&&_wwk_view[o]==="slider"&&_wwk_show[o]==="yes"&&ue(o),_wwk_layout[o]===""||_wwk_layout[o]==="default"){var t=f.querySelectorAll(".wwk-widget-default-head")[0];_wwk_theme[o]==="light"&&parseInt(getComputedStyle(t).width)-t.querySelectorAll("div")[0].offsetWidth>113&&t.querySelectorAll("img")[0].setAttribute("src","https://dashboard.webwinkelkeur.nl/img/widget/logo_light_big.png"),parseInt(getComputedStyle(t).width)<210&&(t.querySelectorAll("div p:first-child")[0].innerHTML="&nbsp;");var n=f.querySelectorAll(".wwk-widget-default-footer")[0];if(parseInt(getComputedStyle(n).width)-n.querySelectorAll("div")[0].offsetWidth<108&&(n.querySelectorAll("p")[0].innerHTML=""),_wwk_show[o]==="yes"){var i=f.querySelectorAll(".wwk-widget-default-experiences")[0];parseInt(getComputedStyle(i.querySelectorAll("a")[0]).width)<168&&(i.querySelectorAll("a")[0].innerHTML="...")}}else if(_wwk_layout[o]==="klantenscores"){var s=document.querySelectorAll(".wwk-widget-container[data-index='c'] .wwk-widget-klantenscores-wrapper")[0],d=parseInt(getComputedStyle(s).width),l;d<120?l="tiny":d<200?l="small":d<260?l="medium":l="large",l="wwk-widget-klantenscores-"+l,s.classList.remove("wwk-widget-klantenscores-tiny"),s.classList.remove("wwk-widget-klantenscores-small"),s.classList.remove("wwk-widget-klantenscores-medium"),s.classList.remove("wwk-widget-klantenscores-large"),s.classList.add(l)}}else console.log(A.status)},A.open("GET",H,!0),A.send()}else{var j=document.createElement("iframe"),de="wwk-widget--"+_wwk_layout[o];j.className="wwk-widget-iframe "+de+" "+de+"--"+_wwk_theme[o],j.setAttribute("data-index",o),j.src=H,j.style.borderWidth="0px",j.setAttribute("scrolling","no"),ee(j,o,document.getElementsByClassName("wwk_script")[o].parentNode.getBoundingClientRect().width);var W=document.getElementsByClassName("wwk_script");W[o].parentNode.insertBefore(j,W[o])}window.postMessage&&window.addEventListener&&window.addEventListener("message",function(f){if(f.data==="$WebwinkelKeur$popup")try{var t=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,n=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,i=!1;if(!t||!n?i=!1:(t<910||n<440)&&(i=!0),!i)webwinkelkeurReviews();else throw"Mobile"}catch(l){var s="https://www.webwinkelkeur.nl/leden/x_"+_wwk_id[o]+".html",d=window.open(s);(!d||d.outerHeight===0)&&(window.location=s,d&&d.close())}},!1)})();