"use strict";(self.webpackChunkscp_com=self.webpackChunkscp_com||[]).push([[698],{60854:function(n,t,i){var u=i(47075),r=i(88763),v=i(10467),y=i(23029),p=i(92901),w=i(54756),o=i.n(w),f=function(){return p.A(function n(){y.A(this,n)},null,[{key:"fetchAd",value:(n=v.A(o().mark(function n(t){var i;return o().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,fetch("https://pubads.g.doubleclick.net/gampad/adx?"+new URLSearchParams(t),{cors:"no-cors"});case 2:return i=n.sent,n.abrupt("return",i.text());case 4:case"end":return n.stop()}},n)})),function(){return n.apply(this,arguments)})},{key:"parseHref",value:function(n){var t=new RegExp('href="(.*?googleads.g.doubleclick.net/pcs/click?[^"]*)"').exec(n);return!t||t.length<1?null:t[0].replace('"http://','"https://').replace("href=","").replace(/"/g,"")}},{key:"parseSrc",value:function(n){var t=new RegExp("(https://tpc.googlesyndication.com/simgad/[0-9]*)").exec(n);return!t||t.length<1?null:t[0]}}]);var n}(),b=f.fetchAd,k=f.parseHref,d=f.parseSrc,s=i(62717),h=i(64293),g=function(n){var t=n.slot,o=n.width,c=n.height,i=n.iu,y=n.sz,p=n.c,w={iu:i,sz:y,c:p},g=r.J0(null),l=u.A(g,2),a=l[0],f=l[1],nt=r.J0(null),v=u.A(nt,2),tt=v[0],e=v[1];return r.vJ(function(){var n;return window.addEventListener("scroll",h.N2,!1),s.A.getConsent("ad-tracking")?((n=document.createElement("script")).src="https://securepubads.g.doubleclick.net/tag/js/gpt.js",n.async=!0,document.head.appendChild(n),window.googletag=window.googletag||{cmd:[]},googletag.cmd.push(function(){googletag.defineSlot(i,[o,c],t).addService(googletag.pubads());googletag.pubads().enableSingleRequest();googletag.pubads().addEventListener("impressionViewable",function(){var n,r=null===(n=document.getElementById("google_ads_iframe_".concat(i,"_0")))||void 0===n?void 0:n.contentDocument,t;r&&(t=document.createElement("style"),t.textContent=".img_ad { max-width: 100%; height: auto; }",r.head.appendChild(t))});googletag.enableServices()}),googletag.cmd.push(function(){googletag.display(t)})):b(w).then(function(n){n?(f(k(n)),e(d(n))):(f(null),e(null))}).catch(function(){f(null);e(null)}),function(){window.removeEventListener("scroll",h.N2,!1)}},[]),s.A.getConsent("ad-tracking")?r.Ay.createElement("div",{id:t,className:"scad-wrapper"}):r.Ay.createElement("div",{className:"scad-wrapper"},a&&r.Ay.createElement("a",{className:"scad__link",href:a,target:"_blank",rel:"noopener","aria-label":"Banner Link"},r.Ay.createElement("img",{className:"scad__image",src:tt,width:o,height:c,alt:""})))},e=document.getElementById("scad-component");if(e)try{var c=e.getAttribute("data-slot"),nt="".concat("32983921","/").concat(c),l=window.innerWidth>=768?"728x90":"320x100",tt=l.split("x").map(Number),a=u.A(tt,2),it=a[0],rt=a[1],ut=Math.floor(999999999*Math.random())+1;r.XX(r.Ay.createElement(g,{slot:c,width:it,height:rt,iu:nt,sz:l,c:ut}),e)}catch(n){console.log("ERROR",n)}},68408:function(n,t,i){function ot(n,t,i){return t=o.A(t),a.A(n,k()?Reflect.construct(t,i||[],o.A(n).constructor):t.apply(n,i))}function k(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(k=function(){return!!n})()}function lt(n,t,i){return t=o.A(t),a.A(n,d()?Reflect.construct(t,i||[],o.A(n).constructor):t.apply(n,i))}function d(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(d=function(){return!!n})()}function yt(n,t,i){return t=o.A(t),a.A(n,g()?Reflect.construct(t,i||[],o.A(n).constructor):t.apply(n,i))}function g(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(g=function(){return!!n})()}function dt(n,t,i){return t=o.A(t),a.A(n,nt()?Reflect.construct(t,i||[],o.A(n).constructor):t.apply(n,i))}function nt(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(nt=function(){return!!n})()}var r=i(88763),c=i(23029),l=i(92901),a=i(50388),o=i(53954),v=i(15361),f=i(64467),ft=i(86663),et=i(5556),u=i.n(et),e=i(14745),y=i(8642),p=i(50246),w=i(74897),st=function(n){function t(){return c.A(this,t),ot(this,t,arguments)}return v.A(t,n),l.A(t,[{key:"render",value:function(){var u,t,o,i,n;this.props.item.video?(o=this.props.item.video,i={backgroundImage:"url(https://i.ytimg.com/vi/".concat(o,"/hqdefault.jpg)")}):Array.isArray(this.props.item.Image)?(t=this.props.item.Image[0].ExternalId,this.props.item.Image[0].FileName,u=this.props.item.Image[0].Caption,i={backgroundImage:"url(https://embed.widencdn.net/img/scprt/".concat(t,"/1024px/?u=nkm28l%23quality=75)")}):null!=(n=this.props.item).Image&&n.Image.ExternalId&&(t=n.Image.ExternalId,n.Image.FileName,u=n.Image.Caption,i={backgroundImage:"url(https://embed.widencdn.net/img/scprt/".concat(t,"/1024px/?u=nkm28l%23quality=75)")});var f=this.props,h=f.onOpenLooker,c=f.currentItem,s=f.id;return r.Ay.createElement("div",{className:"gallery__item","data-row":this.props.item.currentRow,style:i,onClick:h.bind(null,s),id:"row-item-gallery-media"},r.Ay.createElement("div",{className:"gallery__layer"},r.Ay.createElement(e.A,{condition:this.props.item.Image},r.Ay.createElement("img",{src:"/images/logo-plus.png",className:"img-responsive",alt:u||""})),r.Ay.createElement(e.A,{condition:this.props.item.video},r.Ay.createElement("i",{className:"fa fa-youtube-play","aria-hidden":"true"}))),r.Ay.createElement(e.A,{condition:c===s},r.Ay.createElement("div",{className:"gallery__activeIndicator"})))}}])}(r.uA),ht=y.Z(p.A({classes:u().object.isRequired,id:u().number.isRequired,item:u().shape({Caption:u().string.isRequired,Embed:u().string,Image:u().string,PreviewImage:u().string,Title:u().string}),items:u().array.isRequired,onCloseLooker:u().func.isRequired,onOpenLooker:u().func.isRequired,onNavigate:u().func.isRequired,currentItem:u().any}),w.A({id:null,item:{Caption:"",Embed:"",Image:"",PreviewImage:"",Title:""},items:[],currentItem:null,onCloseLooker:function(){return!0},onOpenLooker:function(){return!0},onNavigate:function(){return!0}}))(st),ct=y.Z(p.A({classes:u().object.isRequired,item:u().any.isRequired,onSetItem:u().func.isRequired}),w.A({classes:{pinImage:"pinImage"},item:"",onSetItem:function(n){return n}}))(function(n){var i=n.classes,t=n.item,u=n.onSetItem;return r.Ay.createElement("div",{className:i.pinImage,onClick:u.bind(null,t),style:{cursor:"pointer"}},r.Ay.createElement("img",{src:t,className:"img-responsive",style:{maxWidth:"100%"}}))}),tt,it,h,rt,ut;u().object.isRequired;u().array.isRequired;u().bool.isRequired;var at=function(n){function t(n){var i;return c.A(this,t),i=lt(this,t,[n]),f.A(i,"closeModal",function(){i.state.isOpen;i.setState({isOpen:!1},function(){document.body.classList.remove("has-modal-back-drop");var n=document.getElementsByClassName("modal-backdrop")[0];n&&n.parentElement.removeChild(n)})}),f.A(i,"setItem",function(n){var t=i.state.pinterestUrl,r=window.location.href.replace(/\:/g,"%3A"),u=n.replace(/\:/g,"%3A");t="https://pinterest.com/pin/create/button/?url="+r+"&media="+u+"&description=";i.setState({pinterestUrl:t},function(){window.open(t)})}),i.state={items:n.items,isOpen:n.isOpen,pinterestUrl:""},i}return v.A(t,n),l.A(t,[{key:"componentWillReceiveProps",value:function(n){if(this.state.isOpen!==n.isOpen&&this.setState({isOpen:n.isOpen}),this.state.items!==n.items){var t=this.state.items;n.items.forEach(function(n){-1===t.indexOf(n)&&(t=t.concat(n))});this.setState({items:t})}}},{key:"render",value:function(){var i=this,n=this.state,u=n.items,f=n.isOpen,t=this.props.classes;return r.Ay.createElement("div",null,r.Ay.createElement(e.A,{condition:!0===f},r.Ay.createElement("div",{className:t.customModal,tabIndex:"-1",role:"dialog","aria-hidden":"true"},r.Ay.createElement("div",{className:"modal-header"},r.Ay.createElement("button",{type:"button",className:t.close,onClick:this.closeModal,"aria-hidden":"true"},"X"),r.Ay.createElement("h3",null,"Click the image to pin it on Pinterest.")),r.Ay.createElement("div",{className:"modal-body"},u.map(function(n,t){return r.Ay.createElement(ct,{item:n,key:t,onSetItem:i.setItem})})),r.Ay.createElement("div",{className:"modal-footer"}))))}}])}(r.uA),vt=y.Z(p.A({classes:u().object.isRequired,items:u().array.isRequired,isOpen:u().bool.isRequired}),w.A({items:[],isOpen:!1,classes:{customModal:"customModal",close:"close"}}))(at),b=i(47427),s={socialBox:"components-SocialShare-socialBox--kEml0",socialItem:"components-SocialShare-socialItem--BVb62",fa:"components-SocialShare-fa--sP+Hd",customModal:"components-SocialShare-customModal--bVDsl",modalHeader:"components-SocialShare-modalHeader--DVTmR",modalBody:"components-SocialShare-modalBody--F-O7K",pinImage:"components-SocialShare-pinImage--oeCPx",socialIcon:"components-SocialShare-socialIcon--hITvl"};var pt=function(n){function t(){var n;c.A(this,t);for(var r=arguments.length,u=new Array(r),i=0;i<r;i++)u[i]=arguments[i];return n=yt(this,t,[].concat(u)),f.A(n,"state",{facebookShare:"",pinterestShare:"",twitterShare:"",isOpen:!1,pinterestImages:[]}),f.A(n,"pinterestImagePicker",function(t){t.preventDefault();var r=n.props.pinterest,i=(Array.prototype.slice.call(document.querySelectorAll("img")),n.state.pinterestImages);!0===r&&(i=i.concat(n.props.img),n.setState({pinterestImages:i,isOpen:!0},function(){if(!document.getElementsByClassName("modal-backdrop")[0]){var n=document.createElement("div");n.classList.add("modal-backdrop");document.body.appendChild(n);document.body.classList.add("has-modal-back-drop")}}))}),n}return v.A(t,n),l.A(t,[{key:"componentDidMount",value:function(){var n=this.props,e=n.facebook,o=n.twitter,s=(n.googlePlus,n.description),h=n.title,c=n.img,t=window.location.href.replace(/\:/g,"%3A"),i=this.state,r=i.facebookShare,u=i.twitterShare,f;!0===e&&(f=t+"&picture="+encodeURIComponent(c)+"&title="+encodeURIComponent(h)+"&description="+encodeURIComponent(s),r="https://www.facebook.com/sharer/sharer.php?u=".concat(f),this.setState({facebookShare:r}));!0===o&&(u="https://x.com/home?status=".concat(t),this.setState({twitterShare:u}))}},{key:"render",value:function(){var t=this.props,i=(t.img,t.isImage),n=this.state,u=n.pinterestImages,f=n.facebookShare,o=n.twitterShare,h=n.isOpen;return r.Ay.createElement("div",null,r.Ay.createElement("div",{className:s.socialBox,id:"looker-social-box"},r.Ay.createElement(b.A,{to:f,className:s.socialItem,target:"_blank",rel:"noopener"},r.Ay.createElement("svg",{role:"img","aria-label":"Facebook",className:s.socialIcon},r.Ay.createElement("use",{href:"/images/icons/facebook.svg#facebook"}))),r.Ay.createElement(b.A,{to:o,className:s.socialItem,target:"_blank",rel:"noopener"},r.Ay.createElement("svg",{role:"img","aria-label":"Twitter",className:s.socialIcon},r.Ay.createElement("use",{href:"/images/icons/twitter.svg#twitter"}))),r.Ay.createElement(e.A,{condition:i},r.Ay.createElement(b.A,{to:"",className:"".concat(s.socialItem),onClick:this.pinterestImagePicker},r.Ay.createElement("svg",{role:"img","aria-label":"Pinterest",className:s.socialIcon},r.Ay.createElement("use",{href:"/images/icons/pinterest.svg#pinterest"}))))),r.Ay.createElement(vt,{classes:s,items:u,isOpen:h}))}}])}(r.uA),wt=y.Z(p.A({facebook:u().bool.isRequired,twitter:u().bool.isRequired,pinterest:u().bool.isRequired,img:u().string.isRequired,description:u().string.isRequired,title:u().string.isRequired,isImage:u().bool.isRequired}),w.A({facebook:!1,twitter:!1,pinterest:!1,img:"",description:"",title:"",isImage:!1}))(pt),bt=i(4375),kt=i(57242);tt=function(n){function t(n){var i;return c.A(this,t),i=dt(this,t,[n]),f.A(i,"buildLooker",function(n){var t,o,u,f,h,s,l,c,a;n&&(h=i.state.currentItem,s=i.state.items,s=s.filter(i.hasImageOrVideo),Array.isArray(i.state.lookerAttributes.Image)||i.state.lookerAttributes.Image?Array.isArray(i.state.lookerAttributes.Image)?(o=i.state.lookerAttributes.Image[0].ExternalId,i.state.lookerAttributes.Image[0].FileName,t=i.state.lookerAttributes.Image[0].Caption):null!==(f=i.state.lookerAttributes).Image&&f.Image.ExternalId&&(o=f.Image.ExternalId,f.Image.FileName,t=f.Image.Caption):u=i.state.lookerAttributes.video,l=Array.from(document.getElementsByClassName("gallery__item"))[n].getAttribute("data-row"),c=Array.from(document.querySelectorAll('[data-row="'.concat(l,'"]'))),c[c.length-1].insertAdjacentHTML("afterend",'<div id="looker-holder"><\/div>'),a=r.Ay.createElement("div",{className:"gallery__looker"},r.Ay.createElement("div",{className:"gallery__arrow"}),r.Ay.createElement("div",{className:"gallery__closer",onClick:function(n){i.closeLooker(n,!0)},id:"looker-closer"},"X"),r.Ay.createElement(e.A,{condition:h>1},r.Ay.createElement("div",{className:"gallery__navigation",id:"prevMedia",onClick:i.navigate})),r.Ay.createElement(e.A,{condition:h<=s.length-1},r.Ay.createElement("div",{className:"gallery__navigation",id:"nextMedia",onClick:i.navigate})),r.Ay.createElement("div",{className:"gallery__lookerContainer"},r.Ay.createElement(e.A,{condition:!u},r.Ay.createElement("div",null,r.Ay.createElement(wt,{facebook:!0,twitter:!0,pinterest:!0,img:"https://embed.widencdn.net/img/scprt/".concat(o,"/1024px/?u=nkm28l%23quality=75"),description:t,title:t,isImage:!0}),r.Ay.createElement("img",{src:"https://embed.widencdn.net/img/scprt/".concat(o,"/1024px/?u=nkm28l%23quality=75"),className:"img-responsive"}),r.Ay.createElement("div",{className:"gallery__caption"},t))),r.Ay.createElement(e.A,{condition:u&&u.length>0},r.Ay.createElement(bt.A,{sourceId:u,preview:"false"})))),r.XX(a,document.getElementById("looker-holder"),function(){i.scrollToLooker()}))}),f.A(i,"calculateRows",function(n){var t,r=1,u=1;return t=window.innerWidth<768?1:window.innerWidth<992?2:5,n=n.map(function(n,i){return(u+=1)>t&&(u=1,r+=1),{Id:n.Id,Image:n.Image,currentRow:i+1<t?1:r,video:n.video}}),i.setState({items:n}),t}),f.A(i,"closeLooker",function(){var f=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=i.state,r=(t.lookerAttributes,t.currentItem,Array.from(document.getElementsByClassName("gallery__looker"))),u=Array.from(document.getElementsByClassName("gallery__activeIndicator")),n;r.length>0&&r.forEach(function(n){return n.parentElement.removeChild(n)});u.length>0&&!0===f&&(u.forEach(function(n){return n.style.display="none"}),i.setState({currentItem:null,lookerAttributes:null}));n=document.getElementById("looker-holder");n&&n.parentNode.removeChild(n)}),f.A(i,"isElementInViewport",function(n){var t=n.getBoundingClientRect();return t.bottom>0&&t.right>0&&t.left<(window.innerWidth||document.documentElement.clientWidth)&&t.top<(window.innerHeight||document.documentElement.clientHeight)}),f.A(i,"hasImageOrVideo",function(n){return!!(null!==n.Image||n.video&&n.video.length>0)&&n}),f.A(i,"handleGalleryVisibility",function(){var n=document.getElementById("wrap").getBoundingClientRect().top+window.pageYOffset;window.pageYOffset>=n-1200&&null===i.state.shouldShow&&i.setState({shouldShow:!0},function(){window.removeEventListener("scroll",i.handleGalleryVisibility,!1)})}),f.A(i,"increaseLimit",function(n){n.preventDefault();var t=i.state.limit,r=i.state.currentItem,u=i.state.lookerAttributes;i.closeLooker();t+="true"===i.props.isParksPage?9:10;i.setState({limit:t,currentItem:r,lookerAttributes:u},function(){window.history.pushState(null,null,"".concat(window.location.pathname,"?limit=").concat(i.state.limit));i.buildLooker(i.state.currentItem)})}),f.A(i,"navigate",function(n){var e;i.closeLooker();var r=i.state,t=r.currentItem,f=(r.lookerAttributes,r.items),u=r.limit;"prevMedia"===n.currentTarget.id?t-=1:t+=1;e=f.filter(function(n,i){return i===t-1})[0];t>=u-1&&u<f.length?(u+=10,i.setState({currentItem:i.state.currentItem+1,lookerAttributes:i.state.items.filter(function(n,t){return t===i.state.currentItem})[0],limit:u},function(){i.buildLooker(i.state.currentItem)})):i.setState({currentItem:t,lookerAttributes:e},function(){i.buildLooker(t)})}),f.A(i,"openLooker",function(n){i.closeLooker();var t=i.state.items[n-1];i.setState({currentItem:n,lookerAttributes:t},function(){i.buildLooker(n)})}),f.A(i,"scrollToLooker",function(){var n=document.getElementsByClassName("gallery__closer")[0].getBoundingClientRect().top+window.pageYOffset-200;window.scrollTo(0,n)}),i.state={items:[],limit:9,lookerAttributes:{},currentItem:null,currentViewPort:5,shouldShow:null},i}return v.A(t,n),l.A(t,[{key:"componentWillMount",value:function(){var n=this.state.items;n=(n=this.props.items?this.props.items:[]).filter(function(n){return null===n.YoutubeVideo});this.calculateRows(n);!1===this.isElementInViewport(document.getElementById("wrap"))?window.addEventListener("scroll",this.handleGalleryVisibility,!1):this.setState({shouldShow:!0})}},{key:"componentDidMount",value:function(){var n=Number(ft.parse(window.location.search).limit);n&&this.setState({limit:n})}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.handleGalleryVisibility,!1)}},{key:"render",value:function(){var t=this,f=this.props.galleryName,n=this.state,o=n.currentItem,s=n.items,i=n.limit,h=n.shouldShow,u=s.filter(this.hasImageOrVideo);return r.Ay.createElement(e.A,{condition:null!==h},r.Ay.createElement("section",{className:"gallery__imageGallery"},r.Ay.createElement("div",{className:"gallery__fullScreenImageGallery row"},r.Ay.createElement("div",{className:"gallery__item gallery__firstGalleryTile",id:"row-item-gallery-media"},r.Ay.createElement("h5",null,f),r.Ay.createElement("h2",{className:"gallery__galleryHeader"},"Gallery")),u.filter(kt.rR.bind(null,i)).map(function(n,i){return r.Ay.createElement(ht,{currentItem:o,item:n,id:i+1,onCloseLooker:t.closeLooker,onOpenLooker:t.openLooker,onNavigate:t.navigate,key:i})})),r.Ay.createElement(e.A,{condition:i<u.length},r.Ay.createElement("div",{className:"gallery__loadMore"},r.Ay.createElement("div",null,r.Ay.createElement("div",{className:"gallery__loadPlus",onClick:this.increaseLimit}," + "),r.Ay.createElement("span",{className:"gallery__loadText",onClick:this.increaseLimit},"LOAD MORE"))))))}}])}(r.uA);it=tt;try{h=document.getElementById("wrap");h&&(rt=JSON.parse(h.getAttribute("data-items")),ut=h.getAttribute("data-gallery-name"),r.XX(r.Ay.createElement(it,{items:rt,galleryName:ut}),h))}catch(n){console.log("ERROR",n)}},29584:function(n,t,i){var r=i(88763),f=i(62717),e=i(45462),o=function(n){var t=-1!==n.source.indexOf("AGENDA")?"400":"700";return r.Ay.createElement("iframe",{style:{border:"none",width:"100%",height:t},src:n.source,width:"100%",height:t})},u=Array.from(document.querySelectorAll(".google-calendar-component"));u&&u.forEach(function(n){if(f.A.getConsent("social-media"))try{var t=n.getAttribute("data-source");r.XX(r.Ay.createElement(o,{source:t}),n)}catch(n){console.log("ERROR",n)}else try{r.XX(r.Ay.createElement(e.A,{title:"Google Calendar",description:"Blocked by privacy settings for social media",height:"500px"}),n)}catch(n){console.log("ERROR",n)}})},45462:function(n,t,i){var r=i(88763),f=i(62717),u=i(67525),e=function(){f.A.setConsent(["ad-tracking","analytics","social-media"]);location.reload()};t.A=function(n){var t="social-media";return r.Ay.createElement("div",{className:u.A.placeholder,style:{width:n.width,height:n.height}},f.A.consentEnabled()?r.Ay.createElement("label",{className:u.A.placeholder__label,key:t},r.Ay.createElement("input",{className:u.A.placeholder__input,name:t,type:"checkbox",onChange:e}),r.Ay.createElement("span",{className:u.A.placeholder__labelText},"Update privacy preferences to allow ",n.title),r.Ay.createElement("span",{className:u.A.placeholder__toggle})):r.Ay.createElement("span",{className:u.A.placeholder__labelTextDisabled},n.title,r.Ay.createElement("br",null),"Blocked"))}},37781:function(n,t,i){var r=i(88763),u=i(62717),f=i(45462),h=(i(67525),function(n){return r.vJ(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-gallery-script").appendChild(t)},[]),r.Ay.createElement("div",{id:"ugc-gallery-script"})}),c=function(n){return r.vJ(function(){var t=document.createElement("script");t.src="https://map-embeds.crowdriff.com/js/crowdriff.js";t.setAttribute("id",n.mapId);t.async=!0;document.getElementById("ugc-map-script").appendChild(t)},[]),r.Ay.createElement("div",{id:"ugc-map-script"})},l=function(n){return r.Ay.createElement("iframe",{style:{border:"none",width:n.width,height:n.height},src:n.source,width:n.width,height:n.height})},s=Array.from(document.querySelectorAll(".ugc-component")),e,o;s&&s.forEach(function(n){if(u.A.getConsent("social-media"))try{var t=n.getAttribute("data-gallery-id");r.XX(r.Ay.createElement(h,{galleryId:t}),n)}catch(n){console.log("ERROR",n)}else try{r.XX(r.Ay.createElement(f.A,{title:"social media",description:"Blocked by privacy settings for social media",height:"500px"}),n)}catch(n){console.log("ERROR",n)}});e=Array.from(document.querySelectorAll(".ugc-map-component"));e&&e.forEach(function(n){if(u.A.getConsent("social-media"))try{var t=n.getAttribute("data-id");r.XX(r.Ay.createElement(c,{mapId:t}),n)}catch(n){console.log("ERROR",n)}else try{r.XX(r.Ay.createElement(f.A,{title:"social media",description:"Blocked by privacy settings for social media",height:"500px"}),n)}catch(n){console.log("ERROR",n)}});o=Array.from(document.querySelectorAll(".ugc-post-component"));o&&o.forEach(function(n){if(u.A.getConsent("social-media"))try{var t=n.getAttribute("data-source"),i=n.getAttribute("height"),e=n.getAttribute("width");r.XX(r.Ay.createElement(l,{source:t,height:i,width:e}),n)}catch(n){console.log("ERROR",n)}else try{r.XX(r.Ay.createElement(f.A,{title:"social media",description:"Blocked by privacy settings for social media",height:"500px"}),n)}catch(n){console.log("ERROR",n)}})},69218:function(n,t,i){function p(n,t,i){return t=u.A(t),h.A(n,a()?Reflect.construct(t,i||[],u.A(n).constructor):t.apply(n,i))}function a(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(a=function(){return!!n})()}function b(n,t,i){return t=u.A(t),h.A(n,v()?Reflect.construct(t,i||[],u.A(n).constructor):t.apply(n,i))}function v(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(v=function(){return!!n})()}var r=i(88763),o=i(23029),s=i(92901),h=i(50388),u=i(53954),c=i(15361),l=i(64467),y=i(90991),w=function(n){function t(){return o.A(this,t),p(this,t,arguments)}return c.A(t,n),s.A(t,null,[{key:"getWeather",value:function(n){return y.A(u.A(t),"get",this).call(this,"/api/weather?productId=".concat(n))}}])}(i(94249).A),k=function(n){function t(){var n;o.A(this,t);for(var r=arguments.length,u=new Array(r),i=0;i<r;i++)u[i]=arguments[i];return n=b(this,t,[].concat(u)),l.A(n,"state",{weather:{icon:"",temperature:0,weatherText:""}}),l.A(n,"setweatherText",function(n){var t="";switch(n){case"01d":case"01n":t="Clear Sky";break;case"02d":case"02n":t="Cloudy";break;case"03d":case"03n":t="Partly Cloudy";break;case"04d":case"04n":t="Chance of Rain";break;case"09d":case"09n":t="Scattered Showers";break;case"10d":case"10n":t="Rain";break;case"11d":case"11n":t="Thunderstorm";break;case"13d":case"13n":t="Snow";break;case"50d":case"50n":t="Fog"}return t}),n}return c.A(t,n),s.A(t,[{key:"componentDidMount",value:function(){var n=this,t=this.props.productId;w.getWeather(t).then(function(t){var i=t.icon,r={icon:i,temperature:t.temperature,weatherText:n.setweatherText(i)};n.setState({weather:r})}).catch(function(){return console.error("error retrieving weather")})}},{key:"render",value:function(){var n=this.state.weather;return n.icon&&n.temperature&&n.weatherText?r.Ay.createElement("div",{className:"logo-wrapper"},r.Ay.createElement("img",{src:"../../../images/weather/".concat(n.icon,".png"),alt:"Weather Icon",className:"img-responsive"}),r.Ay.createElement("h3",null,Math.round(n.temperature),"°"),r.Ay.createElement("h4",null,n.weatherText)):null}}])}(r.uA),d=k,g=i(19953),e=document.getElementById("weather-component"),f;if(e)try{if(f=e.getAttribute("data-product-id"),!f)throw Error("productId was expected to be defined but instead received ".concat(f));r.XX(r.Ay.createElement(g.A,null,r.Ay.createElement(d,{productId:f})),e)}catch(n){0}},4375:function(n,t,i){i.d(t,{A:function(){return l}});var u=i(47075),r=i(88763),f=i(62717),e=i(45462),o="components-YoutubeVideo-youtubeVideo--wY6c0",s="components-YoutubeVideo-youtubeVideoPreview--jbwsQ",h="components-YoutubeVideo-youtubeVideoPreviewButton--2C3dE",c="components-YoutubeVideo-youtubeVideoPreviewIcon--CSd4Z",l=function(n){var t=n.sourceId,p=n.preview,w=r.J0(!1),i=u.A(w,2),b=i[0],k=i[1],d=r.J0(p||!0),l=u.A(d,2),a=l[0],g=l[1],nt="https://i.ytimg.com/vi/".concat(t,"/hqdefault.jpg"),v="https://i.ytimg.com/vi/".concat(t,"/maxresdefault.jpg"),y=r.li(null);return r.vJ(function(){var r=f.A.getConsent("social-media"),n,i;(k(r),r)&&(n=document.querySelector('[data-source-id="'.concat(t,'"]')),(n?n.clientWidth:0)>480&&(i=new Image,i.onload=function(n){n.target.width>480&&(y.current.style.backgroundImage="url(".concat(v,")"))},i.src=v))},[]),r.Ay.createElement(r.Ay.Fragment,null,b?r.Ay.createElement("div",{className:o},!0===a?r.Ay.createElement("div",{className:s},r.Ay.createElement("button",{ref:y,className:h,"aria-label":"Video Preview",onClick:function(n){return n.preventDefault(),void g({preview:!a})},style:{backgroundImage:"url(".concat(nt,")")}},r.Ay.createElement("img",{src:"/images/icons/play-button.png",className:c,alt:"Video Icon",loading:"lazy"}))):r.Ay.createElement("iframe",{style:{width:"100%",height:"100%",border:"none"},src:"https://www.youtube.com/embed/".concat(t,"?autoplay=1&rel=0"),allowFullScreen:!0,loading:"lazy"})):r.Ay.createElement(e.A,{title:"YouTube Video",description:"Blocked by privacy settings for social media"}))}},57401:function(n,t,i){var r=i(88763),f=i(4375),u=Array.from(document.querySelectorAll(".youtube-video-component"));u&&u.forEach(function(n){try{var t=n.getAttribute("data-source-id");r.XX(r.Ay.createElement(f.A,{sourceId:t}),n)}catch(n){console.log("ERROR",n)}})},67525:function(n,t){t.A={"placeholder-component":"components-Privacy-placeholder-component--PWSRB",placeholder:"components-Privacy-placeholder--v+M0x",placeholder__label:"components-Privacy-placeholder__label--YGrO+",placeholder__labelText:"components-Privacy-placeholder__labelText--S230L",placeholder__labelTextDisabled:"components-Privacy-placeholder__labelTextDisabled--aw+gS",placeholder__input:"components-Privacy-placeholder__input--6rH8L",placeholder__toggle:"components-Privacy-placeholder__toggle--L5fxC"}},64848:function(){},24800:function(){},38188:function(){},47075:function(n,t,i){function r(n,t){(null==t||t>n.length)&&(t=n.length);for(var i=0,r=Array(t);i<t;i++)r[i]=n[i];return r}function u(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){var i=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=i){var e,o,s,u,f=[],r=!0,h=!1;try{if(s=(i=i.call(n)).next,0===t){if(Object(i)!==i)return;r=!1}else for(;!(r=(e=s.call(i)).done)&&(f.push(e.value),f.length!==t);r=!0);}catch(n){h=!0;o=n}finally{try{if(!r&&null!=i.return&&(u=i.return(),Object(u)!==u))return}finally{if(h)throw o;}}return f}}(n,t)||function(n,t){if(n){if("string"==typeof n)return r(n,t);var i={}.toString.call(n).slice(8,-1);return"Object"===i&&n.constructor&&(i=n.constructor.name),"Map"===i||"Set"===i?Array.from(n):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?r(n,t):void 0}}(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}()}i.d(t,{A:function(){return u}})}},function(n){var t=function(t){return n(n.s=t)};t(60854);t(68408);t(29584);t(37781);t(57401);t(69218);t(38188);t(24800);t(64848)}])