{"version":3,"file":"global.js","sources":["webpack:///global.js"],"sourcesContent":["webpackJsonp([0],{10:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var o=n(109),a=n.n(o),i=n(50),s=n(34),r=n(51),c=n(52),l=n(53);n.d(t,\"createReducer\",function(){return i.a}),n.d(t,\"setCookie\",function(){return s.c}),n.d(t,\"getCookie\",function(){return s.a}),n.d(t,\"deleteCookie\",function(){return s.b}),n.d(t,\"serialize\",function(){return r.a}),n.d(t,\"swapUrls\",function(){return c.a}),n.d(t,\"clone\",function(){return a.a}),n.d(t,\"swiper\",function(){return l.a}),n.d(t,\"setUrlParameter\",function(){return u}),n.d(t,\"getUrlParameter\",function(){return d}),n.d(t,\"removeUrlParameter\",function(){return p}),n.d(t,\"liveQuery\",function(){return m}),n.d(t,\"attachAll\",function(){return f}),n.d(t,\"findParentWithMatchingClassName\",function(){return g}),n.d(t,\"debounce\",function(){return h}),n.d(t,\"throttle\",function(){return v}),n.d(t,\"stringToBool\",function(){return w}),n.d(t,\"measureTime\",function(){return y}),n.d(t,\"includesMultiple\",function(){return b}),n.d(t,\"initDebug\",function(){return E});var u=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,\" \"))},p=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),a=[],i=0;i-1&&n.call(s,t,s)}},!1)},f=function(e,t,n){var o=[];return e.forEach(function(e){for(var a=0;a1&&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;n0?e.classList.add(\"bold\"):e.classList.remove(\"bold\")},onAdd:function(e){window.selectedPostalCodes.push(e),this.handleCanSave()},onRemove:function(e){var t=window.selectedPostalCodes.indexOf(e);t>-1&&(window.selectedPostalCodes.splice(t,1),this.handleCanSave())},onClickCounty:function(e){for(var t=e.target.dataset.county,n=0;n0&&void 0!==arguments[0]&&arguments[0],t=window.location.href.toLowerCase();(e||t.includes(\"direkt\")||t.includes(\"triangel\")||t.includes(\"manuellt\")||t.includes(\"karttyp=byten\")||t.includes(\"bytes/\")&&!t.includes(\"redigera-bilder\"))&&(debug.log(\"Setting up phone number click listeners\"),this.setUpClickListener())}};t.a=i},146:function(e,t,n){\"use strict\";var o=n(2),a=n.n(o),i=function(e){var t=e.address1,n=e.address2,o=e.selectedDwellingIndex,i=e.handleToggle;return a.a.createElement(\"div\",{className:\"nav-tabs\"},a.a.createElement(\"a\",{className:\"nav-tabs__tab \"+(1===o?\"nav-tabs__tab--active\":\"\"),onClick:function(){return i(1)}},t),a.a.createElement(\"a\",{className:\"nav-tabs__tab \"+(2===o?\"nav-tabs__tab--active\":\"\"),onClick:function(){return i(2)}},n))};t.a=i},147:function(e,t,n){\"use strict\";var o=n(146);t.a=o.a},148:function(e,t,n){\"use strict\";var o=n(2),a=n.n(o),i=function(){return a.a.createElement(\"div\",{className:\"image-container image-container--proposition-presentation image-container--fallback\"})};t.a=i},149:function(e,t,n){\"use strict\";var o=n(2),a=n.n(o),i=function(e){var t=e.active,n=e.children;return a.a.createElement(\"div\",{className:\"hero-component \"+(t?\"hero-component--active\":\"\")},n)};t.a=i},150:function(e,t,n){\"use strict\";var o=n(149);t.a=o.a},151:function(e,t,n){\"use strict\";var o=n(2),a=n.n(o),i=function(){return a.a.createElement(\"div\",{className:\"loading-dots loading-dots--active loading-dots--large\"},a.a.createElement(\"div\",{className:\"loading-dots--inner\"},a.a.createElement(\"div\",{className:\"dot\"}),a.a.createElement(\"div\",{className:\"dot\"}),a.a.createElement(\"div\",{className:\"dot\"})))};t.a=i},152:function(e,t,n){\"use strict\";var o=n(151);t.a=o.a},153:function(e,t,n){\"use strict\";var o=n(2),a=n.n(o),i=n(19),s=function(e){var t=e.handleToggle,n=e.isAuthenticated,o=e.hasImages,s=e.hasCoords,r=e.hasStreetView,c=e.selectedHeroComponent;return a.a.createElement(\"nav\",{className:\"nav-tabs nav-tabs--proposition-hero\"},o&&a.a.createElement(\"a\",{onClick:function(){return t(i.g.CAROUSEL)},className:\"nav-tabs__tab \"+(c===i.g.CAROUSEL?\"nav-tabs__tab--active\":\"\")},document.lbDictionary.carousel_button_images),!o&&a.a.createElement(\"span\",{className:\"nav-tabs__tab nav-tabs__tab--inactive\"},document.lbDictionary.carousel_button_images),s&&a.a.createElement(\"a\",{onClick:function(){return t(i.g.MAP)},className:\"nav-tabs__tab \"+(c===i.g.MAP?\"nav-tabs__tab--active\":\"\")},document.lbDictionary.carousel_button_map),!s&&a.a.createElement(\"span\",{className:\"nav-tabs__tab nav-tabs__tab--inactive\"},document.lbDictionary.carousel_button_map),r&&a.a.createElement(\"a\",{onClick:function(){return t(i.g.STREET_VIEW)},className:\"nav-tabs__tab \"+(c===i.g.STREET_VIEW?\"nav-tabs__tab--active\":\"\")},\"Gatuvy\"),n&&a.a.createElement(\"a\",{onClick:function(){return t(i.g.NOTE)},className:\"nav-tabs__tab \"+(c===i.g.NOTE?\"nav-tabs__tab--active\":\"\")},\"Anteckningar\"))};t.a=s},154:function(e,t,n){\"use strict\";var o=n(153);t.a=o.a},155:function(e,t,n){\"use strict\";var o=n(20),a=n.n(o),i=n(3),s=n.n(i),r=n(5),c=n.n(r),l=n(8),u=n.n(l),d=n(7),p=n.n(d),m=n(2),f=n.n(m),g=n(324),h=n.n(g),v=n(158),w=n(10),y=function(e){function t(e){s()(this,t);var n=u()(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return b.call(n),n.state={isDesktop:!window.LBConfig.isMobileUser},n}return p()(t,e),c()(t,[{key:\"componentWillUnmount\",value:function(){for(var e=0;e-3&&n<3&&i>-3&&i<3&&e.showFullScreenImgs()}}))},this.showFullScreenImgs=function(){var t=window.location.origin,n=e.props.propositionId;e.state.isDesktop?window.location.href=\"\"+t+document.lbDictionary.carousel_image_path+\"/\"+n+\"/\"+e.props.selectedDwellingIndex:window.showPicturesContainer(!0)},this.resetCarousel=function(){e.slider.slickGoTo(0)},this.createFrames=function(){var t=(new Date).getTime();return e.props.selectedDwelling.images.map(function(e,n){return f.a.createElement(v.a,{src:e,maxWidth:\"800\",maxHeight:\"600\",key:t+n})})},this.createCarousel=function(){var t=e.createFrames(),n=window.LBConfig&&window.LBConfig.noAutoPlay||!1,o={customPaging:function(e){return f.a.createElement(\"span\",null,e+1,\" / \",t.length)},dots:!0,dotsClass:\"slick-paging\",infinite:!0,autoplay:!n,pauseOnFocus:!0,arrows:e.state.isDesktop,nextArrow:f.a.createElement(e.nextArrow,null),prevArrow:f.a.createElement(e.prevArrow,null)},i=[f.a.createElement(\"div\",{key:\"carousel-button-wrapper\",className:\"carousel-button-wrapper\"},f.a.createElement(\"button\",{className:\"carousel-button\",onClick:e.showFullScreenImgs},document.lbDictionary.carousel_button_show_all))];return i.push(f.a.createElement(h.a,a()({key:\"carousel\",reInit:e.handleCarouselInit,ref:function(t){e.slider=t}},o),t)),i},this.prevArrow=function(e){return f.a.createElement(\"div\",{className:\"arrow-wrapper__prev\",style:{display:\"block\"===e.style.display?\"flex\":\"none\"}},f.a.createElement(\"div\",{className:\"arrow\",onClick:e.onClick},f.a.createElement(\"div\",{className:\"arrow__prev\"})))},this.nextArrow=function(e){return f.a.createElement(\"div\",{className:\"arrow-wrapper__next\",style:{display:\"block\"===e.style.display?\"flex\":\"none\"}},f.a.createElement(\"div\",{className:\"arrow\",onClick:e.onClick},f.a.createElement(\"div\",{className:\"arrow__next\"})))}};t.a=y},156:function(e,t,n){\"use strict\";var o=n(155);t.a=o.a},157:function(e,t,n){\"use strict\";var o=n(3),a=n.n(o),i=n(5),s=n.n(i),r=n(8),c=n.n(r),l=n(7),u=n.n(l),d=n(2),p=n.n(d),m=n(10),f=n(152),g=n(95),h={alignItems:\"center\",display:\"flex\",flexDirection:\"column\",height:\"100%\",justifyContent:\"center\",width:\"100%\"},v=function(e){function t(e){a()(this,t);var o=c()(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.createImageEl=function(){var e=n.i(m.clone)(o.props);delete e.maxHeight,delete e.maxWidth,delete e.src;var t=p.a.createElement(g.a,null);return o.state.error||(t=p.a.createElement(\"div\",{style:o.state.imageStyle,className:\"image-container image-container--proposition-presentation\"},o.props.src&&!o.state.loaded&&!o.state.error&&p.a.createElement(f.a,null))),p.a.createElement(\"div\",e,t)},o.resizeImage=function(){var e=o.props,t=e.src,n=e.maxHeight,a=e.maxWidth;if(t){var i=new Image;i.onload=function(){var e=i.width,s=i.height,r={backgroundImage:\"url(\"+t+\"?maxWidth=\"+a+\"&maxHeight=\"+n+\")\",backgroundSize:\"contain\"};e>s&&(r.backgroundSize=\"cover\"),o.setState({loaded:!0,imageStyle:r});var c=document.createEvent(\"Event\");c.initEvent(\"resize\",!0,!0),window.dispatchEvent(c)},i.onerror=function(){o.setState({error:!0})},i.src=t}},o.render=function(){return o.createImageEl()},o.state={loaded:!1,error:!e.src,imageStyle:h},o}return u()(t,e),s()(t,[{key:\"componentDidMount\",value:function(){this.resizeImage()}}]),t}(p.a.Component);t.a=v},158:function(e,t,n){\"use strict\";var o=n(157);t.a=o.a},159:function(e,t,n){\"use strict\";var o=n(3),a=n.n(o),i=n(5),s=n.n(i),r=n(8),c=n.n(r),l=n(7),u=n.n(l),d=n(2),p=n.n(d),m=n(41),f=n.n(m),g=n(33),h=n(168),v=(n.n(h),n(156)),w=n(161),y=n(165),b=n(163),E=n(147),C=n(154),k=n(150),S=n(95),_=n(19),x=function(e){function t(e){a()(this,t);var n=c()(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));I.call(n);var o=window,i=o.propositionHero,s=i[\"dwelling\"+i.selectedDwellingIndex],r=s.images.length>0,l=s.latitude&&s.longitude&&!0;return n.propositionHeroComponent=p.a.createRef(),n.state={isMobile:window.LBConfig.isMobileUser,isAuthenticated:document.documentElement.classList.contains(\"authorized\"),propositionId:i.propositionId,propositionNo:i.propositionNo,dwelling1:i.dwelling1,dwelling2:i.dwelling2,selectedDwellingIndex:parseInt(i.selectedDwellingIndex),selectedDwelling:s,hasImages:r,hasCoords:l,streetViewData:null,coords:{lat:s.latitude,lng:s.longitude},selectedHeroComponent:r?_.g.CAROUSEL:l?_.g.MAP:_.g.NOTE},n}return u()(t,e),s()(t,[{key:\"componentDidMount\",value:function(){this.state.dwelling2.address&&(this._propositionContentElements=[document.getElementsByClassName(\"js-proposition-1\"),document.getElementsByClassName(\"js-proposition-2\")]),this.checkHasStreetView(),window.selectImgSuffix&&window.selectImgSuffix(this.state.selectedDwellingIndex)}},{key:\"render\",value:function(){var e=_.g.NOTE,t=_.g.MAP,n=_.g.CAROUSEL,o=_.g.STREET_VIEW,a=this.state,i=a.hasCoords,s=a.hasImages,r=a.isAuthenticated,c=a.selectedHeroComponent,l=a.selectedDwelling,u=a.selectedDwellingIndex;return this.mapComponent||c!==t||(this.mapComponent=p.a.createElement(w.a,{coords:this.state.coords,parentElement:this.propositionHeroComponent,selectedHeroComponent:c,selectedDwellingIndex:u})),this.streetViewComponent||c!==o||null===this.state.streetViewData||(this.streetViewComponent=p.a.createElement(y.a,{propositionId:this.state.propositionId,streetViewData:this.state.streetViewData,selectedDwellingIndex:this.state.selectedDwellingIndex})),!this.noteComponent&&r&&c===e&&(this.noteComponent=p.a.createElement(b.a,{id:this.state.propositionId,no:this.state.propositionNo,isMobile:this.state.isMobile})),p.a.createElement(\"div\",{className:\"proposition-jumbotron\",ref:this.propositionHeroComponent},this.state.dwelling2.address&&p.a.createElement(E.a,{selectedDwellingIndex:this.state.selectedDwellingIndex,handleToggle:this.handleDwellingToggle,address1:this.state.dwelling1.address,address2:this.state.dwelling2.address}),!s&&!i&&!r&&p.a.createElement(S.a,null),s&&p.a.createElement(k.a,{active:c===n},p.a.createElement(v.a,{selectedDwellingIndex:this.state.selectedDwellingIndex,selectedDwelling:l,propositionId:this.state.propositionId})),i&&p.a.createElement(k.a,{active:c===t},this.mapComponent),i&&this.state.streetViewData&&p.a.createElement(k.a,{active:c===o},this.streetViewComponent),r&&p.a.createElement(k.a,{active:!i&&!s||c===e},this.noteComponent),p.a.createElement(C.a,{selectedHeroComponent:c,isAuthenticated:r,handleToggle:this.handleHeroToggle,hasImages:s,hasCoords:i,hasStreetView:null!==this.state.streetViewData}))}}]),t}(d.Component),I=function(){var e=this;this.handleDwellingToggle=function(t){var n=e.state[\"dwelling\"+t],o=n.images.length>0,a=n.latitude&&n.longitude,i=_.g.MAP,s=_.g.CAROUSEL,r=_.g.NOTE,c=_.g.STREET_VIEW,l=-1!==[i,c].indexOf(e.state.selectedHeroComponent),u={lat:n.latitude,lng:n.longitude},d=void 0;if(e.mapComponent=void 0,e.streetViewComponent=void 0,d=e.state.selectedHeroComponent===s&&!o&&a?i:l&&!a&&o?s:l&&!a&&!o&&e.state.isAuthenticated?r:!l||a||o||e.state.isAuthenticated?e.state.selectedHeroComponent:s,e._propositionContentElements){for(var p=t-1,m=e._propositionContentElements[p],f=e._propositionContentElements[p?0:1],g=0;gVill du ta bort din anteckning för annonsnr. \"+i.props.no+\"?

\",buttons:[e.YES,e.NO],callback:function(e){e&&i.removeNote()}})},i.removeNote=s()(a.a.mark(function e(){var t,s,r,c,l,u;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.props.id,s=i.state,r=s.awsUrl,c=s.origin,l=s.token,e.next=4,n.i(v.a)(r+\"/proposition-note-commands/delete-note\",{method:\"POST\",body:JSON.stringify({propositionId:t,origin:c}),headers:{JWAUTH:l}});case 4:u=e.sent,u.ok&&i.setState({note:\"\",count:0});case 6:case\"end\":return e.stop()}},e,o)})),i.showMessage=function(e){i.setState({messageType:e,showMessage:!0}),setTimeout(i.hideMessage,3e3)},i.hideMessage=function(){i.setState({showMessage:!1})},i.handleNoteChange=function(e){i.setState({note:e.target.value,count:e.target.value.length})},i._handleErrors=function(e){if(!e.ok)throw Error(e.statusText);return e},i.state={count:0,note:\"\",showMessage:!1,messageType:\"success\",loading:!1,awsUrl:window.LBConfig.awsUrl,origin:window.LBConfig.origin,token:window.User.token()},i}return f()(t,e),u()(t,[{key:\"componentDidMount\",value:function(){this.getNote(),y.a.registerPlugin(n(144)),y.a.defaultOptions.className=\"vex-theme-default\"}},{key:\"render\",value:function(){var e=this,t=h.a.createElement(\"div\",{className:\"notes__status infobox infobox--\"+this.state.messageType+\" infobox--large \"+(this.state.showMessage?\"notes__status--active\":\"\")},h.a.createElement(\"i\",{className:\"fa-\"+(\"error\"===this.state.messageType?\"warning\":\"check\")}),\"error\"===this.state.messageType?\"Anteckningen kunde inte sparas\":\"Anteckningen sparades\"),n=this.state.loading||0===this.state.count,o=this.state.loading||0===this.state.count;return h.a.createElement(\"div\",{className:\"notes\"},!this.props.isMobile&&h.a.createElement(\"h2\",{className:\"notes__header\"},\"Mina anteckningar för annonsnr. \",this.props.no),h.a.createElement(\"p\",{className:\"notes__info infobox\"},h.a.createElement(\"i\",{className:\"fa fa-info-circle fa-fw\"}),\"Det är enbart du som ser dina anteckningar.\"),h.a.createElement(\"textarea\",{className:\"notes__textarea\",onChange:function(t){return e.handleNoteChange(t)},maxLength:\"500\",placeholder:\"Klicka här för att börja anteckna\",value:this.state.note}),h.a.createElement(\"div\",{className:\"notes__footer\"},h.a.createElement(\"button\",{className:\"notes__footer-button btn btn--neutral btn--small\",disabled:o,onClick:this.confirmRemove},\"Ta bort\",h.a.createElement(\"span\",{className:\"hide-for-small\"},\" anteckning\")),h.a.createElement(\"span\",{className:\"notes__footer-counter\"},\"Tecken kvar: \",500-this.state.count,\"/500\"),h.a.createElement(\"button\",{className:\"notes__footer-button btn btn--raised \"+(n?\"btn--disabled\":\"\")+\" small right\",disabled:n?\"disabled\":null,onClick:this.setNote},\"Spara\",h.a.createElement(\"span\",{className:\"hide-for-small\"},\" anteckning\"))),t)}}]),t}(g.Component);t.a=b},163:function(e,t,n){\"use strict\";var o=n(162);t.a=o.a},164:function(e,t,n){\"use strict\";var o=n(3),a=n.n(o),i=n(5),s=n.n(i),r=n(8),c=n.n(r),l=n(7),u=n.n(l),d=n(2),p=n.n(d),m=function(e){function t(){var e,n,o,i;a()(this,t);for(var s=arguments.length,r=Array(s),l=0;l99?99:e},s=function(){return{type:a.b}},r=function(){return{type:a.a}},c=function(e){return e.newSwaps=i(e.newSwaps),e.unreadMessages=i(e.unreadMessages),{type:a.c,notifications:e,receivedAt:(new Date).toISOString()}},l=function(){return function(e){return e(s()),n.i(o.a)(\"/VueMenu/GetVueMenuInfo?_=\"+(new Date).getTime(),{credentials:\"include\",headers:{JWAUTH:window.User.token()}}).then(function(e){return e.json()}).then(function(t){return e(c(t))})}},u=function(e){return e.notifications.hasRehydrated},d=function(){return function(e,t){if(u(t()))return e(l())}}},241:function(e,t,n){\"use strict\";var o=n(33),a=n(85);n.d(t,\"b\",function(){return r}),n.d(t,\"a\",function(){return l});var i=function(){return{type:a.a}},s=function(e){return{type:a.b,primaryParticipantId:e}},r=function(){return function(e){return e(i()),n.i(o.a)(\"/chat/primary-participant?_=\"+(new Date).getTime(),{credentials:\"include\",headers:{JWAUTH:window.User.token()}}).then(function(e){return e.json()}).then(function(t){return e(s(t))})}},c=function(e){var t=e.user;return!!t.hasRehydrated&&(!t.hasOwnProperty(\"primaryParticipantId\")&&!t.isFetching)},l=function(){return function(e,t){if(c(t()))return e(r())}}},34:function(e,t,n){\"use strict\";n.d(t,\"a\",function(){return o}),n.d(t,\"c\",function(){return a}),n.d(t,\"b\",function(){return i});var o=function(e){var t=document.cookie.match(\"(^|;) ?\"+e+\"=([^;]*)(;|$)\");return t?t[2]:null},a=function(e,t,n){var o=location.hostname.split();o.length>2&&o.shift();var a=o.join(\".\"),i=new Date;i.setTime(i.getTime()+864e5*n),document.cookie=e+\"=\"+t+\";path=/;expires=\"+i.toGMTString()+\";domain=.\"+a},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))}},350:function(e,t,n){function o(e){return n(a(e))}function a(e){var t=i[e];if(!(t+1))throw new Error(\"Cannot find module '\"+e+\"'.\");return t}var i={\"./font/lb-custom/lb-custom.svg\":696,\"./font/lb-custom/lb-custom.ttf\":697,\"./font/lb-custom/lb-custom.woff\":698,\"./img/add-square-inverted.svg\":699,\"./img/add-square.svg\":700,\"./img/arrow-right.svg\":701,\"./img/bytesforslag.svg\":702,\"./img/check-badge.svg\":703,\"./img/cog.svg\":704,\"./img/conversation-chat.svg\":705,\"./img/find.svg\":706,\"./img/headphones-customer-support-human.svg\":707,\"./img/heart.svg\":708,\"./img/help-wheel.svg\":709,\"./img/home.svg\":710,\"./img/launch.svg\":711,\"./img/lock-2.svg\":712,\"./img/lock.svg\":713,\"./img/love-hat.svg\":714,\"./img/menu.svg\":715,\"./img/menu2.svg\":716,\"./img/menu3.svg\":717,\"./img/money-wallet-1.svg\":718,\"./img/question-help-message.svg\":719,\"./img/real-estate-couple-search-house.svg\":720,\"./img/real-estate-house.svg\":721,\"./img/search-bar-1.svg\":722,\"./img/search-square.svg\":723,\"./img/space-rocket-earth.svg\":724,\"./img/unlock.svg\":725,\"./img/wallet.svg\":726};o.keys=function(){return Object.keys(i)},o.resolve=a,e.exports=o,o.id=350},351:function(e,t,n){\"use strict\";var o=n(406);o.default},353:function(e,t,n){\"use strict\";var o=n(166);document.addEventListener(\"DOMContentLoaded\",function(){var e=window.location.pathname.toLowerCase();window.LBTracking&&(window.LBTracking.isMobileDevice&&e.includes(\"visa-byten\")||(!e.includes(\"visa-byten\")||e.includes(\"direkt\")||e.includes(\"triangel\")||e.includes(\"manuellt\"))&&o.a.loadedPage())})},355:function(e,t,n){\"use strict\";var o=n(33),a=n(10),i={toggleElement:function(e,t){if(t){e.classList.add(\"button-favorite--active\");var n=new CustomEvent(\"tracking__favourite--true\");document.dispatchEvent(n)}else{e.classList.remove(\"button-favorite--active\");var o=new CustomEvent(\"tracking__favourite--false\");document.dispatchEvent(o)}e.setAttribute(\"data-is-favorite\",t)},handleFavoriteToggle:function(){var e=this;n.i(a.liveQuery)(\".js-favorite-toggle\",\"click\",function(t,a){var i=a.getAttribute(\"data-proposition-id\"),s=!a.getAttribute(\"data-is-favorite\").match(/true/i);a.setAttribute(\"disabled\",\"disabled\"),n.i(o.a)(helper.apiUrl(\"/api/v2/favourite\"),{method:\"POST\",credentials:\"include\",headers:{JWAUTH:User.token(),\"Content-Type\":\"application/json\"},body:JSON.stringify({propositionId:i,isFavourite:s})}).then(function(e){return e.json()}).then(function(t){e.toggleElement(a,s),a.removeAttribute(\"disabled\")})})},init:function(){this.handleFavoriteToggle()}};t.a=i},357:function(e,t,n){\"use strict\";var o=n(239),a=n(240),i=this,s={renderMessenger:function(){var e=this.store.getState().user;if(!e.isFetching&&!e.primaryParticipantId||void 0===e.primaryParticipantId)return this.store.dispatch(n.i(o.c)()),!1;var t=this.getChatRoomIdFromUrl(),a={isSelectingChatRoom:this.handleSelectChatRoom.bind(this),participantId:e.primaryParticipantId,scrollableContainerSelector:\".mobile-inner-wrap\",chatRoomId:t};this.messengerInitiator=new window.messenger(a),this.messengerInitiator.render()},handleSelectChatRoom:function(e){this.setPushState(e),e&&e.conversations[0].unreadCount>0&&this.decreaseUnreadCount()},decreaseUnreadCount:function(){this.store.dispatch(n.i(a.b)())},getChatRoomIdFromUrl:function(){var e=window.location.pathname.split(\"/\");return\"chat\"===e[1]&&e[2]&&!isNaN(e[2])?parseInt(e[2]):null},setPushState:function(e){return window.history.pushState(e||null,\"\",e?\"/chat/\"+e.id:\"/chat\")},handlePopState:function(e){return i.messengerInitiator.selectChatRoom(e.state&&e.state.id?e.state:null,!1)},init:function(e){document.getElementById(\"messenger\")&&(this.store=e,this.store.dispatch(n.i(o.c)()),this.renderMessenger(),this.store.subscribe(this.renderMessenger.bind(this)),window.addEventListener(\"popstate\",this.handlePopState))}};t.a=s},358:function(e,t,n){\"use strict\";var o=n(239),a={renderTabBadges:function(e,t){e&&(t>0?(99===t&&(t+=\"+\"),e.textContent=t,e.classList.add(\"badge--active\")):(e.textContent=\"\",e.classList.remove(\"badge--active\")))},render:function(){var e=this.store.getState().notifications,t=this.store.getState().user;return!!e.hasRehydrated&&(t.hasOwnProperty(\"primaryParticipantId\")?((!e.hasOwnProperty(\"lastUpdated\")&&!e.isFetching||e.hasOwnProperty(\"lastUpdated\")&&!e.isFetching&&new Date-new Date(e.lastUpdated)>6e4)&&this.store.dispatch(n.i(o.b)()),void(0!==e.items.length&&(this.unmarkedSwapCountElement=document.getElementsByClassName(\"js-unmarked-swaps-count\")[0],this.unreadCountElement=document.getElementsByClassName(\"js-unread-count\")[0],this.renderTabBadges(this.unmarkedSwapCountElement,e.items.newSwaps),this.renderTabBadges(this.unreadCountElement,e.items.unreadMessages)))):void this.store.dispatch(n.i(o.a)()))},handleNotifications:function(e){this.store=e,document.getElementsByClassName(\"js-notifications\")[0]&&this.store.subscribe(this.render.bind(this))},init:function(e){this.handleNotifications(e)}};t.a=a},360:function(e,t,n){\"use strict\";function o(e,t){var n=i.getUrlParameter(t),o=e.getElementsByClassName(\"js-slider\")[0],s=e.getElementsByClassName(\"js-slider-input\")[0],r=e.getElementsByClassName(\"js-slider-text\")[0],c=JSON.parse(o.getAttribute(\"data-range\")),l=parseInt(o.getAttribute(\"data-max\"));s.value=n||0,r.innerHTML=n?\"999\"===n?\"14+\":n:document.lbDictionary.search_index_index_not_selected,a.create(o,{start:n?c.indexOf(parseInt(n)):0,step:1,connect:[!0,!1],range:{min:0,max:l}}),o.noUiSlider.on(\"update\",function(e){var t=c[parseInt(e[0])];t=999===t?\"14+\":t,r.innerHTML=t||document.lbDictionary.search_index_index_not_selected}),window.deviceType.isDesktop&&o.noUiSlider.on(\"change\",function(e){var n=c[parseInt(e[0])];i.setUrlParameter(t,n)}),o.noUiSlider.on(\"set\",function(e){var t=c[parseInt(e[0])];s.value=0===t?null:t,angular.element(s).triggerHandler(\"change\")})}var a=n(806),i=n(10),s={handleRangeSliders:function(){location&&-1!==location.pathname.toLowerCase().indexOf(document.lbDictionary.path_search)&&(o(document.getElementsByClassName(\"js-rooms-slider\")[0],\"rok\"),o(document.getElementsByClassName(\"js-sqm-slider\")[0],\"kvm\"),o(document.getElementsByClassName(\"js-rent-slider\")[0],\"maxhyra\"))},init:function(){this.handleRangeSliders()}};t.a=s},363:function(e,t,n){\"use strict\";var o=n(10),a={handleRender:function(){if(!n.i(o.getCookie)(\"lb-cc\")){var e=document.querySelector(\"html.authorized\"),t=e&&e.querySelector(\".js-terms-approval-modal\");if(e&&!t)return n.i(o.setCookie)(\"lb-cc\",(new Date).toLocaleString(),180);var a=document.createElement(\"div\");a.classList.add(\"snackbar\");var i=document.createElement(\"div\");i.classList.add(\"snackbar__content\"),i.textContent=document.lbDictionary.snackbar_text,a.appendChild(i);var s=document.createElement(\"div\");s.classList.add(\"snackbar__action\");var r=document.createElement(\"a\");r.classList.add(\"btn\",\"btn--neutral\",\"btn--raised\"),r.href=\"/cookiepolicy\",r.textContent=document.lbDictionary.snackbar_action1,s.appendChild(r);var c=document.createElement(\"button\");c.classList.add(\"btn\",\"btn--raised\"),c.textContent=document.lbDictionary.snackbar_action2,c.addEventListener(\"click\",function(){debug.info(\"Cookie consent true\"),n.i(o.setCookie)(\"lb-cc\",(new Date).toLocaleString(),180),a.classList.remove(\"snackbar--active\"),window.onConsent&&window.onConsent()}),s.appendChild(c),a.appendChild(s),document.body.appendChild(a),setTimeout(function(){return window.requestAnimationFrame(function(){return a.classList.add(\"snackbar--active\")})},250)}},init:function(){this.handleRender()}};t.a=a},364:function(e,t,n){\"use strict\";var o=n(33),a={elements:{inspirationListLinks:document.getElementsByClassName(\"js-inspiration-list-link\"),inspirationList:document.getElementsByClassName(\"js-inspiration-list\")[0]},handleStartPageInspiration:function(){for(var e=0;e1024?4:2,i=e.firstElementChild.getAttribute(\"data-area\"),s=\"Home/GetStartPageInspiration?count=\"+a+\"&area=\"+i;n.i(o.a)(s).then(function(e){return e.text()}).then(function(e){return t.renderInspiration(e)})},setActiveTab:function(e){e.classList.add(\"nav-tabs__tab--active\")},renderInspiration:function(e){this.elements.inspirationList.innerHTML=e},init:function(){this.handleStartPageInspiration()}};t.a=a},366:function(e,t,n){\"use strict\";var o={handleExcerpts:function(){var e=document.getElementsByClassName(\"js-excerpt\");if(e){var t=function(e){return e&&e.classList&&e.classList.contains(\"js-excerpt-control\")},n=function(e,t){var n=[],o=e.parentNode.firstChild;do{t&&!t(o)||n.push(o)}while(o=o.nextSibling);return n};[].forEach.call(e,function(e){var o=n(e,t);if(o&&0!==o.length){var a=o[0];a.addEventListener(window.deviceType.isMobile?\"touchend\":\"click\",function(t){t.preventDefault(),e.classList.add(\"expanded\"),a.classList.add(\"is-hidden\")})}})}},init:function(){this.handleExcerpts()}};window.textExpander=o,t.a=o},367:function(e,t){!function(){String.prototype.includes||(String.prototype.includes=function(e,t){return\"number\"!=typeof t&&(t=0),!(t+e.length>this.length)&&-1!==this.indexOf(e,t)})}()},372:function(e,t){},373:function(e,t){},376:function(e,t){},402:function(e,t,n){\"use strict\";n(49)},404:function(e,t,n){\"use strict\";var o=n(3),a=n.n(o),i=n(5),s=n.n(i),r=n(8),c=n.n(r),l=n(7),u=n.n(l),d=n(2),p=n.n(d),m={lat:60.1281,lng:18.6435},f=function(e){function t(){var e,n,o,i;a()(this,t);for(var s=arguments.length,r=Array(s),l=0;l0&&this.fitToPolygons()}}]),t}(d.Component);t.a=f},405:function(e,t,n){\"use strict\";var o=n(404);t.a=o.a},406:function(e,t,n){\"use strict\";function o(){return{x:v.offsetWidth/4,y:0}}var a=n(3),i=n.n(a),s=n(5),r=n.n(s),c=n(8),l=n.n(c),u=n(7),d=n.n(u),p=n(2),m=n.n(p),f=n(41),g=(n.n(f),n(405)),h=function(e){function t(e){i()(this,t);var n=l()(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.loadPolygons=function(e){var t=new XMLHttpRequest,o=e.map(function(t){return(0===e.indexOf(t)?\"?\":\"&\")+\"postalCodes=\"+t}).join(\"\");t.open(\"GET\",\"/ad/GetThreeDigitPostalCodeBounds\"+o,!0),t.onload=function(){if(t.status>=200&&t.status<400){if(\"\"===t.responseText)return;var n=JSON.parse(t.responseText);0===n.length&&this.addPolygons(e[0],[]);for(var o in n)this.addPolygons(n[o].PostalCode,n[o].Geometry)}else this.addPolygons(e[0],[])}.bind(n),t.send()},n.addPolygons=function(e,t){var o,a=[];t.forEach(function(e,t){a[t]=[],e.forEach(function(e,n){a[t][n]=[],e.forEach(function(e){a[t][n].push({lat:e.Latitude,lng:e.Longitude})})})});var i=JSON.parse(JSON.stringify(n.state.polygons));i[e]=(o=[]).concat.apply(o,a),n.setState({polygons:i})},n.getSelectedPolygons=function(){var e={};return n.state.selectedPolygons.forEach(function(t){var o=n.state.polygons[t];o&&(e[t]=o)}),e},n.render=function(){return\"undefined\"==typeof google?null:m.a.createElement(g.a,{polygons:n.getSelectedPolygons(),centerOffset:n.props.centerOffset})},n.state={polygons:{},selectedPolygons:[]},n}return d()(t,e),r()(t,[{key:\"componentDidMount\",value:function(){var e=this;document.addEventListener(\"region-picker_update\",function(){var t=[],n=[];for(var o in window.selectedPostalCodes){var a=window.selectedPostalCodes[o];n.push(a),e.state.polygons[a]||t.push(a)}e.setState({selectedPolygons:n}),t.length>0&&e.loadPolygons(t)})}}]),t}(p.Component),v=document.getElementById(\"js-map-root\");v&&n.i(f.render)(m.a.createElement(h,{centerOffset:document.getElementsByTagName(\"body\")[0].offsetWidth>480?o:null}),v)},413:function(e,t,n){\"use strict\";function o(){var e=document.getElementsByClassName(\"off-canvas-wrap\")[0];e&&e.classList.remove(\"move-right\",\"move-left\")}function a(){var e=document.getElementsByClassName(\"off-canvas-list\")[0],t=document.getElementsByClassName(\"site-wrap\")[0];if(e){var n=e.getElementsByTagName(\"a\");[].forEach.call(n,function(e){e.addEventListener(\"click\",o)})}t&&t.addEventListener(\"click\",o),window.addEventListener(\"resize\",function(){window.innerWidth>ScreenWidth.small()&&o()})}function i(){var e=document.getElementsByClassName(\"f-dropdown\");[].forEach.call(e,function(e){var t=e.getElementsByClassName(\"a\");if([].forEach.call(t,function(t){if(e.classList.contains(\"open\")&&!t.classList.contains(\"disabled\")){var n=e.getAttribute(\"id\"),o=document.querySelector('a[data-dropdown=\"'+n+'\"]');o&&o.click()}}),document.getElementById(\"lb-map-page\")){var n=e.getElementsByClassName(\"button\");[].forEach.call(n,function(){if(e.classList.contains(\"open\")){var t=e.getAttribute(\"id\"),n=document.querySelector('a[data-dropdown=\"'+t+'\"]');n&&n.click()}})}})}Object.defineProperty(t,\"__esModule\",{value:!0});var s=n(10),r=n(367),c=(n.n(r),n(377)),l=n.n(c),u=n(67),d=n(364),p=n(360),m=n(366),f=n(143),g=n(114),h=n(358),v=n(357),w=(n(351),n(355)),y=n(115),b=n(142),E=(n(353),n(363));n(372),n(373),n(376),n(350),n.i(s.initDebug)();!window.isDev&&console.log(\"%c@@@@@@@@@@@@@@@@@@@@@@@@&(/***************************/&@@@@@@@@@@@@@@@@@@@@@@@\\n@@@@@@@@@@@@@@@@@@@(****************************************(@@@@@@@@@@@@@@@@@@\\n@@@@@@@@@@@@@@%**************************************************@@@@@@@@@@@@@@\\n@@@@@@@@@@@&***************COME*AND*WORK*WITH*US******************%@@@@@@@@@@@\\n@@@@@@@@@%***********************************************************(@@@@@@@@@\\n@@@@@@@(***************************************************************%@@@@@@@\\n@@@@@%*******************************************************************@@@@@@\\n@@@@*************************, ,**********************************%@@@@\\n@@@/*********************** ,********************************@@@@\\n@@(********************** ********************************@@@\\n@(********************* .***, *****,,,,***********************@@\\n@******************** ,******** . .******************(@\\n(****************** ,**********. ,****************@\\n***************** ,************ ***************/\\n***************, ************** .*******. ***************\\n***************, ,**********, ************, **************\\n*****************. ,******* ,**************, **************\\n*******************. .**** ****************** ,*************\\n***************,.,***. ,**, *******************, **************\\n************** ***. ,************************* **************\\n*************, ,**. ,********************, ***************\\n**************, ***. ,***************** ****************\\n***************** ,**. .************, ******************\\n******************* ,**. ,********* ,*******************\\n********************, ***. ******* ,*********************\\n*********************** ,**. *****, ************************\\n/***********************, ********** ,*************************\\n@************************** ,***** ****************************\\n@**************************** ,* ,****************************@\\n@@****************************, ,*****************************@@\\n@@@****************************** ********************************@@\\n@@@@******************************, ,********************************@@@\\n@@@@@******************************** **********************************@@@@\\n@@@@@@*******************************************************************@@@@@@\\n@@@@@@@@***************************************************************(@@@@@@@\\n@@@@@@@@@@***********************************************************@@@@@@@@@@\\n@@@@@@@@@@@@*******************************************************@@@@@@@@@@@@\\n@@@@@@@@@@@@@@@*************************************************@@@@@@@@@@@@@@@\\n@@@@@@@@@@@@@@@@@@******************************************@@@@@@@@@@@@@@@@@@@\\n\\nWe have lots of fun here at Lägenhetsbyte building products to help people swap apartments.\\nCome work with us! :)\\n\\nwww.lagenhetsbyte.se/jobba-hos-oss\\n\\n\",\"font: monospace 6px/3px;\"),window.Promise||(window.Promise=l.a),document.addEventListener(\"DOMContentLoaded\",function(){n.i(b.a)(),a(),i(),g.a.init(),m.a.init(),w.a.init(),p.a.init(),f.a.init(),d.a.init(),y.a.init(),v.a.init(u.a),E.a.init()}),h.a.init(u.a)},49:function(e,t,n){\"use strict\";n.d(t,\"a\",function(){return o});var o=\"SWITCH_PROPOSITION\"},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 r});var a=function(e){return e===o.a.DIRECT?\"direkt\":e===o.a.TRIANGLE?\"triangel\":\"manuellt\"},i=function(e){return e?\"?showDenied=true\":\"\"},s=function(){return window.location.protocol+\"//\"+window.location.hostname},r={swapList:s()+\"/visa-byten\",ad:function(e){return\"/proposition/\"+e},adHistory:function(e){return s()+\"/Bytes/\"+e},swap:function(e,t,n,o){return\"/swapchain/\"+e+\"/\"+t+\"/\"+a(n)+i(o)},swapHistory:function(e,t,n,o){return s()+\"/visa-byten/\"+e+\"/\"+t+\"/\"+a(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)}}},67:function(e,t,n){\"use strict\";var o=n(215),a=n.n(o),i=n(66),s=n(59),r=n(237),c=n.n(r),l=n(96),u=[c.a],d={key:\"primary\",storage:a.a},p=n.i(s.a)(d,l.a),m=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||i.a,f=n.i(i.b)(p,m(i.c.apply(void 0,u))),g=n.i(s.b)(f);window.User&&window.User.token&&\"\"!==window.User.token()||g.purge(),t.a=f},696:function(e,t,n){e.exports=n.p+\"../assets/font/lb-custom/lb-custom.svg\"},697:function(e,t,n){e.exports=n.p+\"../assets/font/lb-custom/lb-custom.ttf\"},698:function(e,t,n){e.exports=n.p+\"../assets/font/lb-custom/lb-custom.woff\"},699:function(e,t,n){e.exports=n.p+\"../assets/img/add-square-inverted.svg\"},700:function(e,t,n){e.exports=n.p+\"../assets/img/add-square.svg\"},701:function(e,t,n){e.exports=n.p+\"../assets/img/arrow-right.svg\"},702:function(e,t,n){e.exports=n.p+\"../assets/img/bytesforslag.svg\"},703:function(e,t,n){e.exports=n.p+\"../assets/img/check-badge.svg\"},704:function(e,t,n){e.exports=n.p+\"../assets/img/cog.svg\"},705:function(e,t,n){e.exports=n.p+\"../assets/img/conversation-chat.svg\"},706:function(e,t,n){e.exports=n.p+\"../assets/img/find.svg\"},707:function(e,t,n){e.exports=n.p+\"../assets/img/headphones-customer-support-human.svg\"},708:function(e,t,n){e.exports=n.p+\"../assets/img/heart.svg\"},709:function(e,t,n){e.exports=n.p+\"../assets/img/help-wheel.svg\"},710:function(e,t,n){e.exports=n.p+\"../assets/img/home.svg\"},711:function(e,t,n){e.exports=n.p+\"../assets/img/launch.svg\"},712:function(e,t,n){e.exports=n.p+\"../assets/img/lock-2.svg\"},713:function(e,t,n){e.exports=n.p+\"../assets/img/lock.svg\"},714:function(e,t,n){e.exports=n.p+\"../assets/img/love-hat.svg\"},715:function(e,t,n){e.exports=n.p+\"../assets/img/menu.svg\"},716:function(e,t,n){e.exports=n.p+\"../assets/img/menu2.svg\"},717:function(e,t,n){e.exports=n.p+\"../assets/img/menu3.svg\"},718:function(e,t,n){e.exports=n.p+\"../assets/img/money-wallet-1.svg\"},719:function(e,t,n){e.exports=n.p+\"../assets/img/question-help-message.svg\"},720:function(e,t,n){e.exports=n.p+\"../assets/img/real-estate-couple-search-house.svg\"},721:function(e,t,n){e.exports=n.p+\"../assets/img/real-estate-house.svg\"},722:function(e,t,n){e.exports=n.p+\"../assets/img/search-bar-1.svg\"},723:function(e,t,n){e.exports=n.p+\"../assets/img/search-square.svg\"},724:function(e,t,n){e.exports=n.p+\"../assets/img/space-rocket-earth.svg\"},725:function(e,t,n){e.exports=n.p+\"../assets/img/unlock.svg\"},726:function(e,t,n){e.exports=n.p+\"../assets/img/wallet.svg\"},84:function(e,t,n){\"use strict\";n.d(t,\"b\",function(){return o}),n.d(t,\"c\",function(){return a}),n.d(t,\"a\",function(){return i});var o=\"REQUEST_NOTIFICATIONS\",a=\"RECEIVE_NOTIFICATIONS\",i=\"DECREASE_UNREAD_MESSAGE_COUNT\"},85:function(e,t,n){\"use strict\";n.d(t,\"a\",function(){return o}),n.d(t,\"b\",function(){return a});var o=\"REQUEST_PRIMARY_PARTICIPANT_ID\",a=\"RECEIVE_PRIMARY_PARTICIPANT_ID\"},95:function(e,t,n){\"use strict\";var o=n(148);t.a=o.a},96:function(e,t,n){\"use strict\";var o=n(66),a=n(97),i=n(98);t.a=n.i(o.d)({notifications:a.a,user:i.a})},97:function(e,t,n){\"use strict\";var o=n(61),a=n.n(o),i=n(20),s=n.n(i),r=n(59),c=n(10),l=n(84),u=n(49);n.d(t,\"a\",function(){return w});var d,p={items:[],hasRehydrated:!1},m=function(e,t){var o=t.payload&&t.payload.notifications||e;return n.i(c.getCookie)(\"ImpersonatedAs\")&&(o=e),s()({},o,{hasRehydrated:!0,isFetching:!1})},f=function(e){var t=s()({},e);return t.items=[],delete t.lastUpdated,t},g=function(e){var t=n.i(c.clone)(e);return t.items.UnreadMessagesCount=Math.max(0,t.items.UnreadMessagesCount-1),s()({},t)},h=function(e){return s()({},e,{isFetching:!0})},v=function(e,t){return s()({},e,{isFetching:!1,items:t.notifications,lastUpdated:t.receivedAt})},w=n.i(c.createReducer)(p,(d={},a()(d,r.c,m),a()(d,l.a,g),a()(d,u.a,f),a()(d,l.b,h),a()(d,l.c,v),d))},98:function(e,t,n){\"use strict\";var o=n(61),a=n.n(o),i=n(20),s=n.n(i),r=n(59),c=n(10),l=n(85),u=n(49);n.d(t,\"a\",function(){return v});var d,p={hasRehydrated:!1,switchProposition:!1},m=function(e,t){var o=t.payload&&t.payload.user||e;return n.i(c.getCookie)(\"ImpersonatedAs\")&&(o=e),s()({},o,{hasRehydrated:!0,isFetching:!1})},f=function(e){var t=s()({},e);return delete t.primaryParticipantId,t.switchProposition=!0,t},g=function(e){return s()({},e,{isFetching:!0})},h=function(e,t){return s()({},e,{isFetching:!1,switchProposition:!1,primaryParticipantId:t.primaryParticipantId})},v=n.i(c.createReducer)(p,(d={},a()(d,r.c,m),a()(d,u.a,f),a()(d,l.a,g),a()(d,l.b,h),d))}},[413]);\n\n\n// WEBPACK FOOTER //\n// global.js"],"mappings":"AAAA","sourceRoot":""}