(self.webpackChunkdsc_com=self.webpackChunkdsc_com||[]).push([[525],{82744:function(n,t,i){"use strict";function k(n){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var i,r=e.Z(n),u;return t?(u=e.Z(this).constructor,i=Reflect.construct(r,arguments,u)):i=r.apply(this,arguments),v.Z(this,i)}}var r=i(35776),c=i(68670),l=i(83816),u=i(36678),a=i(98766),v=i(30929),e=i(4656),f=i(94949),y=function(n){return r.default.createElement("a",{href:"#",className:"carousel__arrow carousel__arrow--left","aria-label":"Previous slide",onClick:n.onClick},r.default.createElement("svg",{className:"carousel__arrow-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 72 72"},r.default.createElement("polygon",{points:"20.9,11.9 27.8,11.9 8.2,36.9 27.8,61.8 20.9,61.8 1.3,36.9"})))},p=function(n){return r.default.createElement("a",{href:"#",className:"carousel__arrow carousel__arrow--right","aria-label":"Next slide",onClick:n.onClick},r.default.createElement("svg",{className:"carousel__arrow-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 72 72"},r.default.createElement("polygon",{points:"50.4,11.9 43.5,11.9 63.1,36.9 43.5,61.8 50.4,61.8 70,36.9"})))},w=function(n){return r.default.createElement("li",null,r.default.createElement("a",{className:n.index===n.activeIndex?"carousel__indicator carousel__indicator--active":"carousel__indicator","aria-label":"Click to select slide",onClick:n.onClick}))},o="image.jpg",s="cccccc",h="nkm28l",b=function(n){var w,b,i=(w=n.slide.imageUrl,{externalId:(b=w.match(/(?:\/scprt\/)(.+)\/(?:.+)\//))?b[1]:"",filename:o,width:"",height:"",crop:"yes",keep:"c",color:s,quality:80,u:h}),t,k,u,d,f,g,e,nt,c,tt,l,it,a,rt,v,ut,y,ft,p,et,ot;return i.width=720,i.height=405,ot=(k=(t=i).externalId,u=t.format,d=void 0===u?"web":u,f=t.filename,g=void 0===f?o:f,e=t.width,nt=void 0===e?"":e,c=t.height,tt=void 0===c?"":c,l=t.crop,it=void 0===l?"yes":l,a=t.keep,rt=void 0===a?"c":a,v=t.color,ut=void 0===v?s:v,y=t.quality,ft=void 0===y?80:y,p=t.u,et=void 0===p?h:p,"https://scprt.widen.net/content/".concat(k,"/").concat(d.toLowerCase(),"/").concat(g,"?w=").concat(nt,"&h=").concat(tt,"&keep=").concat(rt,"&crop=").concat(it,"&color=").concat(ut,"&quality=").concat(ft,"&u=").concat(et)),r.default.createElement("li",{className:"carousel__slide",style:{backgroundImage:'url("'.concat(ot,'")')},"data-share":"image"})},d=function(n){function t(n){var r;return c.Z(this,t),r=i.call(this,n),f.Z(u.Z(r),"goToSlide",function(n){r.setState({activeIndex:n})}),f.Z(u.Z(r),"goToPrevSlide",function(n){n&&n.preventDefault();var t=r.state.activeIndex,i=r.props.slides.length;t<1&&(t=i);--t;r.setState({activeIndex:t})}),f.Z(u.Z(r),"goToNextSlide",function(n){n&&n.preventDefault();var t=r.state.activeIndex;t===r.props.slides.length-1&&(t=-1);++t;r.setState({activeIndex:t})}),f.Z(u.Z(r),"tick",function(){r.state.pause||r.goToNextSlide()}),r.state={activeIndex:0,pause:!1,timer:setInterval(r.tick,5e3)},r}a.Z(t,n);var i=k(t);return l.Z(t,[{key:"componentWillUnmount",value:function(){this.clearInterval(this.state.timer)}},{key:"render",value:function(){var n=this,t=100*this.state.activeIndex;return r.default.createElement("div",{className:"carousel",onMouseEnter:function(){n.setState({pause:!0})},onMouseLeave:function(){n.setState({pause:!1})}},r.default.createElement("div",{className:"carousel__stage"},r.default.createElement("ul",{className:"carousel__slides",style:{transform:"translateX(-".concat(t,"%")}},this.props.slides.map(function(t,i){return r.default.createElement(b,{key:i,index:i,activeIndex:n.state.activeIndex,slide:t})})),this.props.slides.length>1&&r.default.createElement(y,{onClick:function(t){return n.goToPrevSlide(t)}}),this.props.slides.length>1&&r.default.createElement(p,{onClick:function(t){return n.goToNextSlide(t)}}),this.props.slides.length>1&&r.default.createElement("ul",{className:"carousel__indicators"},this.props.slides.map(function(t,i){return r.default.createElement(w,{key:i,index:i,activeIndex:n.state.activeIndex,isActive:n.state.activeIndex===i,onClick:function(){return n.goToSlide(i)}})}))),this.props.hasCaptions&&r.default.createElement("p",{className:"carousel__slide-caption"},this.props.slides[this.state.activeIndex].caption))}}]),t}(r.Component);try{Array.from(document.querySelectorAll(".carousel-component")).forEach(function(n){var t=JSON.parse(n.getAttribute("data-items")),i=!1;t.forEach(function(n){n.caption&&(i=!0)});r.render(r.default.createElement(d,{slides:t,hasCaptions:i}),n)})}catch(n){console.log("ERROR",n)}},27231:function(n,t,i){"use strict";function a(n){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var i,r=f.Z(n),u;return t?(u=f.Z(this).constructor,i=Reflect.construct(r,arguments,u)):i=r.apply(this,arguments),l.Z(this,i)}}var r=i(35776),s=i(68670),h=i(83816),u=i(36678),c=i(98766),l=i(30929),f=i(4656),e=i(94949),v=function(n){function t(){var n;s.Z(this,t);for(var f=arguments.length,o=new Array(f),r=0;r<f;r++)o[r]=arguments[r];return n=i.call.apply(i,[this].concat(o)),e.Z(u.Z(n),"state",{progress:0}),e.Z(u.Z(n),"handleScroll",function(){var t=document.body.scrollTop||document.documentElement.scrollTop,i=document.documentElement.scrollHeight-document.documentElement.clientHeight,r=Math.ceil(t/i*100);n.setState({progress:r})}),n}c.Z(t,n);var i=a(t);return h.Z(t,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.handleScroll)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.handleScroll)}},{key:"render",value:function(){return r.default.createElement("div",{className:"progress",style:{width:"".concat(this.state.progress,"%")}})}}]),t}(r.Component),o=document.getElementById("progress-component");if(o)try{r.render(r.default.createElement(v,null),o)}catch(n){console.log("ERROR",n)}},36261:function(n,t,i){"use strict";function y(n){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var i,r=e.Z(n),u;return t?(u=e.Z(this).constructor,i=Reflect.construct(r,arguments,u)):i=r.apply(this,arguments),c.Z(this,i)}}function p(n){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var i,r=e.Z(n),u;return t?(u=e.Z(this).constructor,i=Reflect.construct(r,arguments,u)):i=r.apply(this,arguments),c.Z(this,i)}}var l,a,v;i.d(t,{Z:function(){return v}});var o=i(68670),s=i(83816),u=i(36678),h=i(98766),c=i(30929),e=i(4656),f=i(94949),r=i(35776);l=function(n){function t(){var r;o.Z(this,t);for(var e=arguments.length,s=new Array(e),n=0;n<e;n++)s[n]=arguments[n];return r=i.call.apply(i,[this].concat(s)),f.Z(u.Z(r),"modalStyles",{position:"fixed",maxHeight:"80vh",maxWeight:"80vw",left:"0",top:"10vh",right:"0",margin:"0 auto",bottom:"10vh",padding:"10px",boxShadow:"rgba(0,0,0,.5) 0 0 100px"}),r}h.Z(t,n);var i=y(t);return s.Z(t,[{key:"render",value:function(){var n=this.props,t=n.pinterestImages,i=n.closeModal,u=n.setImage;return r.default.createElement("div",{style:this.modalStyles,className:"custom-modal modal-fade"},r.default.createElement("div",{className:"modal-header"},r.default.createElement("button",{type:"button",className:"close","data-dismiss":"modal","aria-hidden":"true",onClick:i},"X"),r.default.createElement("h2",null,"Choose the image you would like to pin on Pinterest...")),r.default.createElement("div",{className:"modal-body"},t.map(function(n){return r.default.createElement("div",{className:"pin-image",onClick:function(){return u(n)}},r.default.createElement("img",{src:n}))})))}}]),t}(r.Component);a=function(){function n(){o.Z(this,n)}return s.Z(n,null,[{key:"trackEvent",value:function(n,t,i,r){"undefined"!=typeof ga&&ga("gtm1.send","event",n,t,i,r,{transport:"beacon"})}}]),n}();v=function(n){function t(n){var e;return o.Z(this,t),e=i.call(this,n),f.Z(u.Z(e),"closeModal",function(){e.setState({pinterestImages:[]},function(){var n=document.getElementsByClassName("custom-modal")[0];n&&(n.style.display="none")})}),f.Z(u.Z(e),"pinterestImagePicker",function(n){n.preventDefault();var t=e.state.pinterestImages,i=e.props.imgsrc;i&&-1===window.location.pathname.indexOf("articles")?t=t.concat(i):Array.from(document.querySelectorAll('[data-share="image"]')).forEach(function(n){var i,r;n.src?t=t.concat(n.src):(i=n.currentStyle||window.getComputedStyle(n,!1),i.backgroundImage&&i.backgroundImage.length>0&&(r=i.backgroundImage.slice(4,-1).replace(/"/g,""),t=t.concat(r)))});e.setState({pinterestImages:t},function(){var n=document.createElement("div");n.classList.add("custom-modal-component");document.body.appendChild(n);r.render(r.default.createElement(l,{pinterestImages:t,closeModal:e.closeModal,setImage:e.setImage}),document.getElementsByClassName("custom-modal-component")[0],function(){var n=document.getElementsByClassName("custom-modal")[0];n&&(n.style.display="block")})})}),f.Z(u.Z(e),"setImage",function(n){var t;if(n){var i=window.location.href,r=n.replace(/\:/g,"%3A"),u="https://pinterest.com/pin/create/button/?url=".concat(i,"&media=").concat(r,"&description=");window.open(u);t=document.getElementsByClassName("custom-modal")[0];t&&(t.style.display="none")}}),f.Z(u.Z(e),"clap",function(){var n=e.state.claps;n<10&&(a.trackEvent("Applause","Click",window.location.pathname),e.setState({claps:n+1}))}),e.state={applause:n.applause||!1,facebook:n.facebook,twitter:n.twitter,pinterest:n.pinterest,title:n.title,description:n.description,facebookShare:"",twitterShare:"",pinterestImages:[],image:n.image,claps:0},e}h.Z(t,n);var i=p(t);return s.Z(t,[{key:"componentDidMount",value:function(){var t=window.location.href,n=this.state,f=n.facebook,e=n.twitter,i,r,u;n.pinterest;n.title;n.description;this.props.imgsrc.replace(/^(\/\/)/g,"https://").replace(/\s+/g,"-");f&&(i=encodeURIComponent(t),r="https://www.facebook.com/sharer/sharer.php?u=".concat(i),this.setState({facebookShare:r}));e&&(u="https://twitter.com/home?status="+t,this.setState({twitterShare:u}))}},{key:"render",value:function(){var i=this,n=this.state,u=n.applause,f=n.facebook,e=n.twitter,o=n.pinterest,s=n.facebookShare,h=n.twitterShare,t=n.claps;return r.default.createElement("div",{className:"social-box"},u&&r.default.createElement("button",{className:"applause ".concat(t?"applause--active":""),"aria-label":"Applause",onClick:this.clap},t>0?r.default.createElement("span",{className:"applause__claps"},"+",t):null,r.default.createElement("svg",{className:"applause__icon ".concat(t?"applause__icon--active":""),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 72 72"},r.default.createElement("g",{xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{d:"M51.8,39.4c-0.7-0.6-0.2-1.5-0.6-2.2c-0.4-0.6-0.2-1.5-0.4-2.3s-0.1-1.6-0.4-2.3c-0.5-1.3-0.6-2.7-0.9-4.1   c-0.2-1.1-0.4-2.1-0.9-3.1c-0.7,0-1.4,0-1.9,0c-0.7,0.7-1.3,1.3-1.9,1.9c-0.1,0.5-0.2,1-0.3,1.3c0.2,1.3,0.4,2.3,0.6,3.3   c0.1,0.1-0.1,0.1-0.2,0.2c-0.8-0.6-1.5-1.3-2-2.2c-0.5-1-1-2.1-1.5-3.2c-0.4-0.9-0.9-1.7-1.7-2.3c-0.3,0-0.6,0-1,0   c-0.5,0.7-1.3,1.1-1.6,2c-0.3,0-0.5,0-0.8-0.2c-0.7-0.4-1.4-0.9-2.1-1.4c-0.7-0.6-1.5-0.9-2.6-0.7c-0.5,0.4-1.1,0.9-1.7,1.5   c0,0.5,0,1,0,1.4c-0.3,0.1-0.6,0.1-0.9,0.2s-0.6,0.2-1,0.4c-0.2,0.2-0.5,0.5-0.8,0.8c0,0-0.1,0-0.3,0.1c-0.2-0.1-0.6-0.1-0.9-0.2   c-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,0c2.7,1.8,5.4,3.6,8,5.3c0.5-0.6,0-0.9-0.3-1c-1.2-0.6-2.1-1.7-3.4-2.1   c-1.4-1.4-3.3-2.1-4.8-3.5c-0.1-0.1-0.3-0.1-0.5-0.2c-0.1-0.6-0.3-1.3-0.4-1.8c0.4-0.9,1.1-1.1,2.1-1.3c2.8,1.8,5.8,3.8,8.8,5.8   c0.1-0.1,0.2-0.2,0.3-0.3c0-0.1,0-0.2-0.1-0.2c-1.3-0.9-2.6-1.7-3.8-2.7c-1.4-1.1-3.1-1.8-4.3-3.1c0-0.4,0-0.8,0-1.1   c0.4-0.4,0.8-0.8,1.2-1.1c0.6-0.4,1.2-0.1,1.7,0.2c3,1.9,6,3.8,8.9,6c1.1,0.8,2.4,1.4,3.5,2.4c0.3-0.8,0.1-1.2-0.1-1.8   c-0.4-1.3-0.5-2.7-0.3-4.2c0.4-0.4,1-0.9,1.6-1.4c0.3,0,0.7,0,1.2,0c0,0.1,0.1,0.3,0.1,0.4c0.3,0.9,0.3,1.8,0.6,2.7   c0.2,0.7-0.1,1.5,0.4,2.2c-0.1,1.5,0.5,3,0.7,4.5c0.2,1.3,0.5,2.6,0.8,3.9C51.3,40.8,51.5,42,50.9,43.1z"}),r.default.createElement("path",{d:"M28.8,21.1c-0.1-0.6-0.2-1.2-0.3-1.8c0-0.2-0.9-2.5-1-2.7c0-0.1-0.1-0.1-0.2-0.1c-0.1,0.1-0.2,0.2-0.3,0.3   c0.2,1.1,0.8,2.1,0.9,3.2C27.9,20.4,27.8,21.2,28.8,21.1z"}),r.default.createElement("path",{d:"M31.7,20.7c0-1,0-2,0-2.9c-0.3,0-0.5,0-0.9,0c0.2,1.1,0.3,2,0.5,3C31.4,20.8,31.5,20.8,31.7,20.7z"}),r.default.createElement("path",{d:"M26.5,22.4c-0.5-0.9-1-1.7-1.5-2.6c-0.2,0-0.4,0-0.8,0c0.6,0.9,1,1.7,1.6,2.6C25.9,22.4,26.2,22.4,26.5,22.4z"})))),f&&r.default.createElement("a",{href:s,target:"_blank",rel:"noopener",className:"social-item","aria-label":"Facebook"},r.default.createElement("svg",{className:"social-box__icon social-box__icon--facebook",viewBox:"0 0 264 512"},r.default.createElement("path",{d:"M76.7 512V283H0v-91h76.7v-71.7C76.7 42.4 124.3 0 193.8 0c33.3 0 61.9 2.5 70.2 3.6V85h-48.2c-37.8 0-45.1 18-45.1 44.3V192H256l-11.7 91h-73.6v229"}))),e&&r.default.createElement("a",{href:h,target:"_blank",rel:"noopener",className:"social-item","aria-label":"Twitter"},r.default.createElement("svg",{className:"social-box__icon social-box__icon--twitter",viewBox:"0 0 512 512"},r.default.createElement("path",{d:"M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"}))),o&&r.default.createElement("a",{href:"#",className:"social-item",onClick:function(n){return i.pinterestImagePicker(n)},"aria-label":"Pinterest"},r.default.createElement("svg",{className:"social-box__icon social-box__icon--pinterest",viewBox:"0 0 384 512"},r.default.createElement("path",{d:"M204 6.5C101.4 6.5 0 74.9 0 185.6 0 256 39.6 296 63.6 296c9.9 0 15.6-27.6 15.6-35.4 0-9.3-23.7-29.1-23.7-67.8 0-80.4 61.2-137.4 140.4-137.4 68.1 0 118.5 38.7 118.5 109.8 0 53.1-21.3 152.7-90.3 152.7-24.9 0-46.2-18-46.2-43.8 0-37.8 26.4-74.4 26.4-113.4 0-66.2-93.9-54.2-93.9 25.8 0 16.8 2.1 35.4 9.6 50.7-13.8 59.4-42 147.9-42 209.1 0 18.9 2.7 37.5 4.5 56.4 3.4 3.8 1.7 3.4 6.9 1.5 50.4-69 48.6-82.5 71.4-172.8 12.3 23.4 44.1 36 69.3 36 106.2 0 153.9-103.5 153.9-196.8C384 71.3 298.2 6.5 204 6.5z"}))))}}]),t}(r.Component)},52691:function(n,t,i){"use strict";var r=i(35776),f=i(36261),u=document.getElementById("social-box-component");if(u)try{r.render(r.default.createElement(f.Z,{applause:!0,facebook:!0,pinterest:!0,twitter:!0,images:"",imgsrc:"",description:""}),u)}catch(n){console.log("ERROR",n)}},40690:function(n,t,i){"use strict";function y(n){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var i,r=f.Z(n),u;return t?(u=f.Z(this).constructor,i=Reflect.construct(r,arguments,u)):i=r.apply(this,arguments),v.Z(this,i)}}var r=i(35776),s=i(3044),h=i(94635),c=i(68670),l=i(83816),u=i(36678),a=i(98766),v=i(30929),f=i(4656),e=i(94949),p=function(n){function t(){var n;c.Z(this,t);for(var f=arguments.length,o=new Array(f),r=0;r<f;r++)o[r]=arguments[r];return n=i.call.apply(i,[this].concat(o)),e.Z(u.Z(n),"state",{shouldShow:!1}),e.Z(u.Z(n),"handleScroll",function(){var t=n.props,i=t.at,r=t.offset;window.pageYOffset>=i-r&&n.setState({shouldShow:!0},function(){n.props.onLoad&&n.props.onLoad();window.removeEventListener("scroll",n.handleScroll,!1)})}),n}a.Z(t,n);var i=y(t);return l.Z(t,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.handleScroll,!1)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.handleScroll,!1)}},{key:"render",value:function(){return this.state.shouldShow?this.props.children:null}}]),t}(r.Component),w=function(n){var t=document.querySelector(".ugc").getBoundingClientRect().top;return r.default.createElement(p,{at:t,offset:2e3,onLoad:function(){var t=document.createElement("script");t.src="https://starling.crowdriff.com/js/crowdriff.js";t.setAttribute("id",n.galleryId);t.async=!0;document.getElementById("ugc-script").appendChild(t)}},r.default.createElement("div",{id:"ugc-script"}))},o=Array.from(document.querySelectorAll(".ugc-component"));o&&o.forEach(function(n){if(s.Z.getConsent("social-media"))try{var t=n.getAttribute("data-gallery-id");r.render(r.default.createElement(w,{galleryId:t}),n)}catch(n){console.log("ERROR",n)}else try{r.render(r.default.createElement(h.Z,{title:"social media gallery",description:"Blocked by privacy settings for social media",height:"500px"}),n)}catch(n){console.log("ERROR",n)}})},29159:function(){},18900:function(){},41891:function(){},43185:function(){},50899:function(){}},0,[[50899,592],[41891,592],[18900,592],[43185,592],[29159,592],[82744,592],[40690,592],[27231,592],[52691,592]]])