{"version":3,"file":"desktop.js","sources":["webpack:///desktop.js"],"sourcesContent":["webpackJsonp([3],{10:function(e,n,t){\"use strict\";Object.defineProperty(n,\"__esModule\",{value:!0});var r=t(109),o=t.n(r),i=t(50),c=t(34),u=t(51),a=t(52),s=t(53);t.d(n,\"createReducer\",function(){return i.a}),t.d(n,\"setCookie\",function(){return c.c}),t.d(n,\"getCookie\",function(){return c.a}),t.d(n,\"deleteCookie\",function(){return c.b}),t.d(n,\"serialize\",function(){return u.a}),t.d(n,\"swapUrls\",function(){return a.a}),t.d(n,\"clone\",function(){return o.a}),t.d(n,\"swiper\",function(){return s.a}),t.d(n,\"setUrlParameter\",function(){return d}),t.d(n,\"getUrlParameter\",function(){return f}),t.d(n,\"removeUrlParameter\",function(){return l}),t.d(n,\"liveQuery\",function(){return p}),t.d(n,\"attachAll\",function(){return h}),t.d(n,\"findParentWithMatchingClassName\",function(){return m}),t.d(n,\"debounce\",function(){return v}),t.d(n,\"throttle\",function(){return w}),t.d(n,\"stringToBool\",function(){return E}),t.d(n,\"measureTime\",function(){return g}),t.d(n,\"includesMultiple\",function(){return y}),t.d(n,\"initDebug\",function(){return R});var d=function(e,n){var t=window.location.href,r=t.replace(new RegExp(\"([?&]\"+e+\"(?=[=&#]|$)[^#&]*|(?=#|$))\"),\"&\"+e+\"=\"+encodeURIComponent(n)).replace(/^([^?&]+)&/,\"$1?\");history.pushState&&window.history.pushState({path:r},null,r)},f=function(e){e=e.replace(/[\\[]/,\"\\\\[\").replace(/[\\]]/,\"\\\\]\");var n=new RegExp(\"[\\\\?&]\"+e+\"=([^&#]*)\"),t=n.exec(window.location.search);return null===t?\"\":decodeURIComponent(t[1].replace(/\\+/g,\" \"))},l=function(e){var n=window.location.href,t=n.replace(new RegExp(\"^([^#]*?)(([^#]*)&)?\"+e+\"(=[^&#]*)?(&|#|$)\"),\"$1$3$5\").replace(/^([^#]*)((\\?)&|\\?(#|$))/,\"$1$3$4\");history.pushState&&window.history.pushState({path:t},null,t)},p=function(e,n,t){(arguments.length>3&&void 0!==arguments[3]?arguments[3]:document).addEventListener(n,function(n){for(var r=document.querySelectorAll(e),o=[],i=0;i-1&&t.call(c,n,c)}},!1)},h=function(e,n,t){var r=[];return e.forEach(function(e){for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:\"anonymous\",t=performance.now();e();var r=performance.now();debug.log(\"Call to \"+n+\" took \"+(r-t)+\" milliseconds.\")},y=function(e,n){for(var t=0;t2&&r.shift();var o=r.join(\".\"),i=new Date;i.setTime(i.getTime()+864e5*t),document.cookie=e+\"=\"+n+\";path=/;expires=\"+i.toGMTString()+\";domain=.\"+o},i=function(e){document.cookie=e+\"=; path=/; expires=Thu, 01 Jan 1971 01:00:01 GMT\",window.debug.log(\"Deleted \"+e+\". New value: \"+r(e))}},356:function(e,n,t){\"use strict\";var r={handlePropositionsSelector:function(){var e=document.getElementsByClassName(\"js-account-dropdown\")[0],n=document.getElementsByClassName(\"js-account-dropdown-trigger\")[0];n&&(n.addEventListener(\"click\",function(n){n.preventDefault(),n.stopPropagation(),e.classList.toggle(\"is-open\")}),document.body.addEventListener(\"click\",function(){e.classList.contains(\"is-open\")&&e.classList.remove(\"is-open\")}))},init:function(){this.handlePropositionsSelector()}};n.a=r},371:function(e,n){},412:function(e,n,t){\"use strict\";Object.defineProperty(n,\"__esModule\",{value:!0});var r=t(371),o=(t.n(r),t(67)),i=t(356);window.deviceType={isMobile:!1,isDesktop:!0},document.addEventListener(\"DOMContentLoaded\",function(){i.a.init(o.a)})},49:function(e,n,t){\"use strict\";t.d(n,\"a\",function(){return r});var r=\"SWITCH_PROPOSITION\"},50:function(e,n,t){\"use strict\";t.d(n,\"a\",function(){return r});var r=function(e,n){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,r=arguments[1];return n.hasOwnProperty(r.type)?n[r.type](t,r):t}}},51:function(e,n,t){\"use strict\";t.d(n,\"a\",function(){return r});var r=function(e){if(e&&\"FORM\"===e.nodeName){var n=void 0,t=void 0,r=[];for(n=e.elements.length-1;n>=0;n-=1)if(\"\"!==e.elements[n].name)switch(e.elements[n].nodeName){case\"INPUT\":switch(e.elements[n].type){case\"text\":case\"hidden\":case\"password\":case\"button\":case\"reset\":case\"submit\":r.push(e.elements[n].name+\"=\"+encodeURIComponent(e.elements[n].value));break;case\"checkbox\":case\"radio\":e.elements[n].checked&&r.push(e.elements[n].name+\"=\"+encodeURIComponent(e.elements[n].value))}break;case\"TEXTAREA\":r.push(e.elements[n].name+\"=\"+encodeURIComponent(e.elements[n].value));break;case\"SELECT\":switch(e.elements[n].type){case\"select-one\":r.push(e.elements[n].name+\"=\"+encodeURIComponent(e.elements[n].value));break;case\"select-multiple\":for(t=e.elements[n].options.length-1;t>=0;t-=1)e.elements[n].options[t].selected&&r.push(e.elements[n].name+\"=\"+encodeURIComponent(e.elements[n].options[t].value))}break;case\"BUTTON\":switch(e.elements[n].type){case\"reset\":case\"submit\":case\"button\":r.push(e.elements[n].name+\"=\"+encodeURIComponent(e.elements[n].value))}}return r.join(\"&\")}}},52:function(e,n,t){\"use strict\";var r=t(19);t.d(n,\"a\",function(){return u});var o=function(e){return e===r.a.DIRECT?\"direkt\":e===r.a.TRIANGLE?\"triangel\":\"manuellt\"},i=function(e){return e?\"?showDenied=true\":\"\"},c=function(){return window.location.protocol+\"//\"+window.location.hostname},u={swapList:c()+\"/visa-byten\",ad:function(e){return\"/proposition/\"+e},adHistory:function(e){return c()+\"/Bytes/\"+e},swap:function(e,n,t,r){return\"/swapchain/\"+e+\"/\"+n+\"/\"+o(t)+i(r)},swapHistory:function(e,n,t,r){return c()+\"/visa-byten/\"+e+\"/\"+n+\"/\"+o(t)+i(r)}}},53:function(e,n,t){\"use strict\";t.d(n,\"a\",function(){return r});var r={touchStartX:0,touchEndX:0,minSwipePixels:30,detectionZone:void 0,swiperCallback:function(){},touchStartListener:function(e){r.touchStartX=e.changedTouches[0].screenX},touchEndListener:function(e){r.touchEndX=e.changedTouches[0].screenX,r.handleSwipeGesture()},init:function(e,n){var t=this;r.swiperCallback=n,e.addEventListener(\"touchstart\",function(e){return t.touchStartListener(e)},!1),e.addEventListener(\"touchend\",function(e){return t.touchEndListener(e)},!1)},remove:function(e){var n=this;e.removeEventListener(\"touchstart\",function(e){return n.touchStartListener(e)},!1),e.removeEventListener(\"touchend\",function(e){return n.touchEndListener(e)},!1)},handleSwipeGesture:function(){var e=void 0,n=void 0;r.touchEndX<=r.touchStartX&&(n=r.touchStartX-r.touchEndX,e=\"left\"),r.touchEndX>=r.touchStartX&&(n=r.touchEndX-r.touchStartX,e=\"right\"),n>r.minSwipePixels&&\"undefined\"!==e&&r.swipe(e,n)},swipe:function(e,n){var t={};t.direction=e,t.movedPixels=n,r.swiperCallback(t)}}},67:function(e,n,t){\"use strict\";var r=t(215),o=t.n(r),i=t(66),c=t(59),u=t(237),a=t.n(u),s=t(96),d=[a.a],f={key:\"primary\",storage:o.a},l=t.i(c.a)(f,s.a),p=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||i.a,h=t.i(i.b)(l,p(i.c.apply(void 0,d))),m=t.i(c.b)(h);window.User&&window.User.token&&\"\"!==window.User.token()||m.purge(),n.a=h},84:function(e,n,t){\"use strict\";t.d(n,\"b\",function(){return r}),t.d(n,\"c\",function(){return o}),t.d(n,\"a\",function(){return i});var r=\"REQUEST_NOTIFICATIONS\",o=\"RECEIVE_NOTIFICATIONS\",i=\"DECREASE_UNREAD_MESSAGE_COUNT\"},85:function(e,n,t){\"use strict\";t.d(n,\"a\",function(){return r}),t.d(n,\"b\",function(){return o});var r=\"REQUEST_PRIMARY_PARTICIPANT_ID\",o=\"RECEIVE_PRIMARY_PARTICIPANT_ID\"},96:function(e,n,t){\"use strict\";var r=t(66),o=t(97),i=t(98);n.a=t.i(r.d)({notifications:o.a,user:i.a})},97:function(e,n,t){\"use strict\";var r=t(61),o=t.n(r),i=t(20),c=t.n(i),u=t(59),a=t(10),s=t(84),d=t(49);t.d(n,\"a\",function(){return E});var f,l={items:[],hasRehydrated:!1},p=function(e,n){var r=n.payload&&n.payload.notifications||e;return t.i(a.getCookie)(\"ImpersonatedAs\")&&(r=e),c()({},r,{hasRehydrated:!0,isFetching:!1})},h=function(e){var n=c()({},e);return n.items=[],delete n.lastUpdated,n},m=function(e){var n=t.i(a.clone)(e);return n.items.UnreadMessagesCount=Math.max(0,n.items.UnreadMessagesCount-1),c()({},n)},v=function(e){return c()({},e,{isFetching:!0})},w=function(e,n){return c()({},e,{isFetching:!1,items:n.notifications,lastUpdated:n.receivedAt})},E=t.i(a.createReducer)(l,(f={},o()(f,u.c,p),o()(f,s.a,m),o()(f,d.a,h),o()(f,s.b,v),o()(f,s.c,w),f))},98:function(e,n,t){\"use strict\";var r=t(61),o=t.n(r),i=t(20),c=t.n(i),u=t(59),a=t(10),s=t(85),d=t(49);t.d(n,\"a\",function(){return w});var f,l={hasRehydrated:!1,switchProposition:!1},p=function(e,n){var r=n.payload&&n.payload.user||e;return t.i(a.getCookie)(\"ImpersonatedAs\")&&(r=e),c()({},r,{hasRehydrated:!0,isFetching:!1})},h=function(e){var n=c()({},e);return delete n.primaryParticipantId,n.switchProposition=!0,n},m=function(e){return c()({},e,{isFetching:!0})},v=function(e,n){return c()({},e,{isFetching:!1,switchProposition:!1,primaryParticipantId:n.primaryParticipantId})},w=t.i(a.createReducer)(l,(f={},o()(f,u.c,p),o()(f,d.a,h),o()(f,s.a,m),o()(f,s.b,v),f))}},[412]);\n\n\n// WEBPACK FOOTER //\n// desktop.js"],"mappings":"AAAA","sourceRoot":""}