{"version":3,"file":"agreement-contractor.js","sources":["webpack:///agreement-contractor.js"],"sourcesContent":["webpackJsonp([4],{10:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var o=n(109),r=n.n(o),i=n(50),a=n(34),c=n(51),u=n(52),s=n(53);n.d(t,\"createReducer\",function(){return i.a}),n.d(t,\"setCookie\",function(){return a.c}),n.d(t,\"getCookie\",function(){return a.a}),n.d(t,\"deleteCookie\",function(){return a.b}),n.d(t,\"serialize\",function(){return c.a}),n.d(t,\"swapUrls\",function(){return u.a}),n.d(t,\"clone\",function(){return r.a}),n.d(t,\"swiper\",function(){return s.a}),n.d(t,\"setUrlParameter\",function(){return l}),n.d(t,\"getUrlParameter\",function(){return d}),n.d(t,\"removeUrlParameter\",function(){return f}),n.d(t,\"liveQuery\",function(){return m}),n.d(t,\"attachAll\",function(){return p}),n.d(t,\"findParentWithMatchingClassName\",function(){return h}),n.d(t,\"debounce\",function(){return v}),n.d(t,\"throttle\",function(){return w}),n.d(t,\"stringToBool\",function(){return g}),n.d(t,\"measureTime\",function(){return E}),n.d(t,\"includesMultiple\",function(){return b}),n.d(t,\"initDebug\",function(){return y});var l=function(e,t){var n=window.location.href,o=n.replace(new RegExp(\"([?&]\"+e+\"(?=[=&#]|$)[^#&]*|(?=#|$))\"),\"&\"+e+\"=\"+encodeURIComponent(t)).replace(/^([^?&]+)&/,\"$1?\");history.pushState&&window.history.pushState({path:o},null,o)},d=function(e){e=e.replace(/[\\[]/,\"\\\\[\").replace(/[\\]]/,\"\\\\]\");var t=new RegExp(\"[\\\\?&]\"+e+\"=([^&#]*)\"),n=t.exec(window.location.search);return null===n?\"\":decodeURIComponent(n[1].replace(/\\+/g,\" \"))},f=function(e){var t=window.location.href,n=t.replace(new RegExp(\"^([^#]*?)(([^#]*)&)?\"+e+\"(=[^&#]*)?(&|#|$)\"),\"$1$3$5\").replace(/^([^#]*)((\\?)&|\\?(#|$))/,\"$1$3$4\");history.pushState&&window.history.pushState({path:n},null,n)},m=function(e,t,n){(arguments.length>3&&void 0!==arguments[3]?arguments[3]:document).addEventListener(t,function(t){for(var o=document.querySelectorAll(e),r=[],i=0;i-1&&n.call(a,t,a)}},!1)},p=function(e,t,n){var o=[];return e.forEach(function(e){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:\"anonymous\",n=performance.now();e();var o=performance.now();debug.log(\"Call to \"+t+\" took \"+(o-n)+\" milliseconds.\")},b=function(e,t){for(var n=0;n2&&o.shift();var r=o.join(\".\"),i=new Date;i.setTime(i.getTime()+864e5*n),document.cookie=e+\"=\"+t+\";path=/;expires=\"+i.toGMTString()+\";domain=.\"+r},i=function(e){document.cookie=e+\"=; path=/; expires=Thu, 01 Jan 1971 01:00:01 GMT\",window.debug.log(\"Deleted \"+e+\". New value: \"+o(e))}},370:function(e,t){},403:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var o=n(369),r=n.n(o),i=n(145),a=n.n(i),c=n(10);n(370);var u=n(378);n.i(c.initDebug)();var s=function(){var e=new u(\".js-smooth-scroll\");if(window.location.hash&&n.i(c.includesMultiple)(window.location.hash,[\"#faq\",\"#bazinga\",\"#kom-igang-direkt\"])){var t=document.querySelector(window.location.hash);e.animateScroll(t,0,{speed:1e3})}};document.addEventListener(\"DOMContentLoaded\",function(){if(s(),window.LBTracking.isAuthenticated){a.a.registerPlugin(n(144)),a.a.defaultOptions.className=\"vex-theme-default\";for(var e={YES:{text:\"Okej\",type:\"submit\",className:\"vex-dialog-button-primary\",click:function(){this.value=!0}},NO:{text:\"Avbryt\",type:\"button\",className:\"vex-dialog-button-secondary\",click:function(){this.value=!1,this.close()}}},t=document.querySelectorAll(\".js-agreement-contractor-start\"),o=window.LBConfig.isMobileUser,i=0,u=t.length;iFör att starta bytesansökan krävs att du och dina bytesparter är överens om att använda tjänsten.

\\n

Bytesansökan kostar 0kr per bytespart.

\\n

Genom att klicka på \"Okej\" startar du en bytesansökan och ett inbjudningsmail går ut till de parter du har kommit överens med.

\\n

Klicka nedan för att komma igång eller avbryt för att komma tillbaka.

',buttons:[e.YES,e.NO],callback:function(e){console.info(e),e&&(window.location=t.target.href)}})});if(o){var l=document.getElementsByTagName(\"body\")[0],d=document.getElementsByClassName(\"js-modal-toggle\"),f=document.getElementsByClassName(\"js-modal-close\"),m=document.getElementsByClassName(\"js-propositions-modal\")[0];n.i(c.attachAll)([\"click\",\"touchstart\"],d,function(){m.classList.add(\"modal--active\"),l.classList.add(\"noscroll\")}),n.i(c.attachAll)([\"click\",\"touchstart\"],f,function(){m.classList.remove(\"modal--active\"),l.classList.remove(\"noscroll\")})}var p=[].concat(r()(document.getElementsByClassName(\"js-toggle-swaps\"))),h=p.length;if(0!==h)if(p[0].parentElement.nextElementSibling.classList.add(\"proposition-card__children--active\"),1===h){var v=document.createElement(\"span\");v.classList.add(\"js-toggle-swaps\"),v.textContent=\"Dina 100%-iga byten\",p[0].parentNode.replaceChild(v,p[0]),p[0]=v}else n.i(c.attachAll)([\"click\",\"touchstart\"],p,function(e){e.currentTarget.parentElement.nextElementSibling.classList.toggle(\"proposition-card__children--active\")})}})},50:function(e,t,n){\"use strict\";n.d(t,\"a\",function(){return o});var o=function(e,t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,o=arguments[1];return t.hasOwnProperty(o.type)?t[o.type](n,o):n}}},51:function(e,t,n){\"use strict\";n.d(t,\"a\",function(){return o});var o=function(e){if(e&&\"FORM\"===e.nodeName){var t=void 0,n=void 0,o=[];for(t=e.elements.length-1;t>=0;t-=1)if(\"\"!==e.elements[t].name)switch(e.elements[t].nodeName){case\"INPUT\":switch(e.elements[t].type){case\"text\":case\"hidden\":case\"password\":case\"button\":case\"reset\":case\"submit\":o.push(e.elements[t].name+\"=\"+encodeURIComponent(e.elements[t].value));break;case\"checkbox\":case\"radio\":e.elements[t].checked&&o.push(e.elements[t].name+\"=\"+encodeURIComponent(e.elements[t].value))}break;case\"TEXTAREA\":o.push(e.elements[t].name+\"=\"+encodeURIComponent(e.elements[t].value));break;case\"SELECT\":switch(e.elements[t].type){case\"select-one\":o.push(e.elements[t].name+\"=\"+encodeURIComponent(e.elements[t].value));break;case\"select-multiple\":for(n=e.elements[t].options.length-1;n>=0;n-=1)e.elements[t].options[n].selected&&o.push(e.elements[t].name+\"=\"+encodeURIComponent(e.elements[t].options[n].value))}break;case\"BUTTON\":switch(e.elements[t].type){case\"reset\":case\"submit\":case\"button\":o.push(e.elements[t].name+\"=\"+encodeURIComponent(e.elements[t].value))}}return o.join(\"&\")}}},52:function(e,t,n){\"use strict\";var o=n(19);n.d(t,\"a\",function(){return c});var r=function(e){return e===o.a.DIRECT?\"direkt\":e===o.a.TRIANGLE?\"triangel\":\"manuellt\"},i=function(e){return e?\"?showDenied=true\":\"\"},a=function(){return window.location.protocol+\"//\"+window.location.hostname},c={swapList:a()+\"/visa-byten\",ad:function(e){return\"/proposition/\"+e},adHistory:function(e){return a()+\"/Bytes/\"+e},swap:function(e,t,n,o){return\"/swapchain/\"+e+\"/\"+t+\"/\"+r(n)+i(o)},swapHistory:function(e,t,n,o){return a()+\"/visa-byten/\"+e+\"/\"+t+\"/\"+r(n)+i(o)}}},53:function(e,t,n){\"use strict\";n.d(t,\"a\",function(){return o});var o={touchStartX:0,touchEndX:0,minSwipePixels:30,detectionZone:void 0,swiperCallback:function(){},touchStartListener:function(e){o.touchStartX=e.changedTouches[0].screenX},touchEndListener:function(e){o.touchEndX=e.changedTouches[0].screenX,o.handleSwipeGesture()},init:function(e,t){var n=this;o.swiperCallback=t,e.addEventListener(\"touchstart\",function(e){return n.touchStartListener(e)},!1),e.addEventListener(\"touchend\",function(e){return n.touchEndListener(e)},!1)},remove:function(e){var t=this;e.removeEventListener(\"touchstart\",function(e){return t.touchStartListener(e)},!1),e.removeEventListener(\"touchend\",function(e){return t.touchEndListener(e)},!1)},handleSwipeGesture:function(){var e=void 0,t=void 0;o.touchEndX<=o.touchStartX&&(t=o.touchStartX-o.touchEndX,e=\"left\"),o.touchEndX>=o.touchStartX&&(t=o.touchEndX-o.touchStartX,e=\"right\"),t>o.minSwipePixels&&\"undefined\"!==e&&o.swipe(e,t)},swipe:function(e,t){var n={};n.direction=e,n.movedPixels=t,o.swiperCallback(n)}}}},[403]);\n\n\n// WEBPACK FOOTER //\n// agreement-contractor.js"],"mappings":"AAAA","sourceRoot":""}