PageSourceSearch

https://blueplanit.co/_next/static/chunks/222.c158e812d8d336e7.js

js blueplanit.co collected 2026-09-24 13:30:45 UTC 37,952 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[222],{3323:function(e,t,n){"use strict";n.r(t);var r=n(59499),i=n(4730),s=n(8363),o=n(47638),a=n(46701),c=n(85893),l=["className"];function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var u=(0,a.ZP)(function(e){var t=e.className,n=(0,i.Z)(e,l);return(0,c.jsx)(s.Z,p(p({},n),{},{classes:{popper:t}}))})(function(e){var t=e.theme;return(0,r.Z)({},"& .".concat(o.Z.tooltip),{backgroundColor:"#f5f5f9",color:"rgba(0, 0, 0, 0.87)",maxWidth:220,fontSize:t.typography.pxToRem(14),border:"1px solid #dadde9"})});t.default=u},70222:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return eN}});var r=n(92777),i=n(82262),s=n(10748),o=n(45959),a=n(63553),c=n(37247),l=n(44866),d=n(67294),p=n(59499),u=n(20946),h=n(48837);n(94301);var f=function(e){(0,o.Z)(s,e);var t,n=(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(e){return!1}}(),function(){var e,n=(0,c.Z)(s);return e=t?Reflect.construct(n,arguments,(0,c.Z)(this).constructor):n.apply(this,arguments),(0,a.Z)(this,e)});function s(){return(0,r.Z)(this,s),n.apply(this,arguments)}return(0,i.Z)(s,[{key:"getGooglePlacesData",value:function(e){return fetch("".concat("/tmApi","/googlePlaces/"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({googlePlaceId:e})}).then(function(e){return e.json()}).then(function(e){return e}).catch(function(e){(0,l.Z)(e)})}},{key:"getOtherServicesData",value:function(e,t,n,r,i,s,o){return fetch("".concat("/tmApi","/otherServices/"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({eventType:e,latlon:t,date:n,string_date:r,search_radius_miles:i,address:s,currencyData:o})}).then(function(e){return e.json()}).then(function(e){return e}).catch(function(e){return(0,l.Z)(e)})}},{key:"getFlickrPhotos",value:function(e,t){if(e||t.length>0)return fetch("".concat("/tmApi","/eventPhotos"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({latlon:!!e&&e,text:t})}).then(function(e){return e.json()}).then(function(e){return e}).catch(function(e){(0,l.Z)(e)})}},{key:"getGooglePlacesPhoto",value:function(e){if(e)return fetch("".concat("/tmApi","/googlePlacesPhoto"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({photoref:e})}).then(function(e){return e.json()}).then(function(e){return e}).catch(function(e){(0,l.Z)(e)})}}]),s}(d.Component),m=n(30564),v=n(6814),y=n(49620),g=n(85893),C=function(e){(0,o.Z)(s,e);var t,n=(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(e){return!1}}(),function(){var e,n=(0,c.Z)(s);return e=t?Reflect.construct(n,arguments,(0,c.Z)(this).constructor):n.apply(this,arguments),(0,a.Z)(this,e)});function s(e){return(0,r.Z)(this,s),n.call(this,e)}return(0,i.Z)(s,[{key:"render",value:function(){return(0,g.jsxs)(v.Z,{open:this.props.open,fullWidth:!0,"aria-labelledby":"responsive-dialog-title",scroll:"paper",maxWidth:"sm",children:[(0,g.jsx)(y.Z,{id:"responsive-dialog-title",children:this.props.title}),(0,g.jsxs)(m.Z,{children:[this.props.message,(0,g.jsx)("br",{}),(0,g.jsx)("br",{})]})]})}}]),s}(d.PureComponent),j=n(9470),x=n.n(j),_=n(24276),b=n.n(_),Z=n(67426),w=n.n(Z),O=n(7793),D=n(35480).ZP.div.withConfig({displayName:"apiNotLoaded__ErrorContainer",componentId:"sc-zd4new-0"})(["text-align:center;padding-right:1em;padding-left:1em;padding-top:.5em;padding-bottom:.5em;background-color:#ffcfcf;border:1px #ff8080 solid;border-radius:5px;margin-top:1em;font-size:12px;width:100%;"]),S=function(e){var t="We're having trouble connecting to Google Maps. Please refresh or try again later.";return e.returnNull?null:e.returnInputField?(0,g.jsxs)(O.ZP,{container:!0,style:{marginTop:"10px",marginBottom:"10px",color:"red",fontSize:"small"},children:[(0,g.jsx)("input",{id:"tripName",className:"fixedTextInput ".concat(b().initialInputs),type:"text",placeholder:"Input a location...",maxLength:w().MAX_CHAR_LENGTH_SHORT}),(0,g.jsx)(D,{children:t})]}):(0,g.jsx)("div",{children:t})};function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?T(Object(n),!0).forEach(function(t){(0,p.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var I=function(e){(0,o.Z)(d,e);var t,n=(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(e){return!1}}(),function(){var e,n=(0,c.Z)(d);return e=t?Reflect.construct(n,arguments,(0,c.Z)(this).constructor):n.apply(this,arguments),(0,a.Z)(this,e)});function d(e){var t;return(0,r.Z)(this,d),t=n.call(this,e),(0,p.Z)((0,s.Z)(t),"handleChange",function(e){t.props.setAddress(e)}),(0,p.Z)((0,s.Z)(t),"handleSelect",function(e){e&&""!==e&&(t.setState({isFilteringByLocation:!0}),t.props.setIsLoading(),t.props.setAddress(e),(0,h.NU)(e).then(function(e){return e[0].place_id}).then(function(e){t.apiService.getGooglePlacesData(e).then(function(e){return setTimeout(function(){t.props.populateFeed(k(k({},e.result),{},{type:"LOCATION",resetCategories:!0})),t.props.setLocation(e.result)},150),e},function(e){return e}).catch(function(e){(0,l.Z)(e)})}).catch(function(e){t.setState({isFilteringByLocation:!1}),t.props.setAddress(""),console.error("Error",e)}))}),t.apiService=new f,t.state={isFilteringByLocation:!1},t}return(0,i.Z)(d,[{key:"render",value:function(){if(!window.google)return(0,g.jsx)(S,{returnInputField:!0});var e=null;return this.state.isFilteringByLocation&&(e=(0,g.jsx)(C,{open:!0,message:"Searching for trips...",title:"Filtering by Location"})),(0,g.jsxs)("div",{children:[e,(0,g.jsx)(h.ZP,{value:this.props.address,onChange:this.handleChange,onSelect:this.handleSelect,shouldFetchSuggestions:this.props.address.length>0,children:function(e){var t=e.getInputProps,n=e.suggestions,r=e.getSuggestionItemProps,i=e.loading;return(0,g.jsxs)("div",{className:"mobileFix noMarginBottom",style:{width:"100%"},children:[(0,g.jsx)("input",k(k({id:"searchbar",style:{width:"-webkit-fill-available"}},t({className:"location-search-input ".concat(x().feedLocationSearchDiv," homepageInputs")})),{},{type:"text",name:"searchbar",placeholder:"Search trips by location..."})),(0,g.jsxs)("div",{className:"autocomplete-dropdown-container",children:[i&&(0,g.jsx)("div",{children:"Loading..."}),n.map(function(e){var t=e.active?"suggestion-item--active":"suggestion-item",n=e.active?{backgroundColor:"#fafafa",cursor:"pointer"}:{backgroundColor:"#ffffff",cursor:"pointer"};return(0,g.jsx)("div",k(k({},r(e,{className:t,style:n})),{},{children:(0,g.jsx)("span",{children:e.description})}))})]})]})}})]})}}]),d}(d.Component),P=n(41664),L=n.n(P),N=n(22809),A=n(59102),R=n(71059),E=n(8941),F=n(67034),B=n(73131),M=n.n(B),q=function(e){(0,o.Z)(l,e);var t,n=(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(e){return!1}}(),function(){var e,n=(0,c.Z)(l);return e=t?Reflect.construct(n,arguments,(0,c.Z)(this).constructor):n.apply(this,arguments),(0,a.Z)(this,e)});function l(e){var t;return(0,r.Z)(this,l),(t=n.call(this,e)).handleHashtagClick=t.handleHashtagClick.bind((0,s.Z)(t)),t}return(0,i.Z)(l,[{key:"handleHashtagClick",value:function(e,t){this.props.handleHashtagClick(e,t),e.preventDefault()}},{key:"render",value:function(){var e="/globeph.png",t=[],n=null,r=[];if(this.props.events&&void 0!==this.props.events&&this.props.events.length>0&&(r=this.props.events.slice()).sort(function(e,t){return-e.eventObj.thumbnail.localeCompare("")}),r.length>0)for(var i=r.length,s=0;s<i;s++){var o=M().eventImg;n=e,r[s].eventObj.thumbnail?n=r[s].eventObj.thumbnail:o="phThumbnail";var a=(0,F.routes)("view-trip",this.props.trip),c=(0,F.genHREFLinkProp)("view-trip",null),l=(0,g.jsxs)(O.ZP,{container:!0,className:M().singleEventContainer,children:[(0,g.jsx)(L(),{href:c,as:a,children:(0,g.jsx)(O.ZP,{container:!0,item:!0,xs:12,md:12,alignItems:"center",justify:"center",className:M().eventImgDiv,children:(0,g.jsx)(E.Z,{className:o,src:n,placeholderSrc:"/placeholder.png"})})}),(0,g.jsx)(O.ZP,{item:!0,xs:12,className:M().eventInfoDiv,children:r[s].eventObj.bookingURL?(0,g.jsx)("a",{target:"_blank",href:r[s].eventObj.bookingURL,children:(0,F.formatEventName)(r[s].eventObj.name)}):(0,g.jsx)("span",{children:(0,F.formatEventName)(r[s].eventObj.name)})})]},"feedEventCard"+s);(n!==e||n===e&&1===i)&&t.push(l)}return(0,g.jsx)(N.Z,{container:!0,className:M().eventsContainer,id:"eventCardId"+this.props.trip._id,children:r.length>0?t:(0,g.jsx)("div",{className:M().noEventsDiv,children:"There are no events for this trip yet."})},"feedEventCard"+s)}}]),l}
1(d.PureComponent),H=n(66261),W=n(21295),U=n(2114),z=n(31194),V=n(49406),G=n.n(V),Y=function(e){(0,o.Z)(l,e);var t,n=(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(e){return!1}}(),function(){var e,n=(0,c.Z)(l);return e=t?Reflect.construct(n,arguments,(0,c.Z)(this).constructor):n.apply(this,arguments),(0,a.Z)(this,e)});function l(e){var t;return(0,r.Z)(this,l),(t=n.call(this,e)).state={comment:"",alertMessage:null},t.handleMessageDismiss=t.handleMessageDismiss.bind((0,s.Z)(t)),t}return(0,i.Z)(l,[{key:"componentDidUpdate",value:function(e){if(e.comments.length<this.props.comments.length){var t="lastCommentDivId"+this.props.tripId;H.NY.scrollToBottom({containerId:t})}}},{key:"handleMessageDismiss",value:function(){this.setState({alertMessage:null})}},{key:"render",value:function(){var e,t=this,n="/user.png",r=this.props.comments.map(function(e,n){var r,i;return(0,g.jsx)(z.Z,{comment:e,i:n,user:null===(r=t.props)||void 0===r?void 0:r.user},"".concat(null===(i=t.props)||void 0===i||null===(i=i.user)||void 0===i?void 0:i.userName,"_comment_").concat(n))}),i=null===(e=this.props)||void 0===e||null===(e=e.user)||void 0===e?void 0:e.avatar;i||(i=n);var s="lastCommentDivId"+this.props.tripId;return(0,g.jsxs)(O.ZP,{container:!0,xs:12,className:G().feedCommentsContainer,children:[null,(0,g.jsxs)(O.ZP,{container:!0,justify:"left",xs:12,style:{display:"flex",alignItems:"center"},children:[(0,g.jsx)(O.ZP,{item:!0,xs:2,sm:2,md:1,children:(0,g.jsx)(E.Z,{src:i,className:G().feedCommentAvatar,placeholderSrc:n})}),(0,g.jsx)(O.ZP,{item:!0,xs:10,sm:10,md:11,className:G().commentFieldContainer,children:(0,g.jsx)("form",{onSubmit:this.handlePostComment,children:(0,g.jsx)(W.Z,{className:G().commentFieldDiv,autoComplete:"off",margin:"normal",value:this.state.comment,onChange:this.onCommentChange,name:"comment_trip",type:"text",inputProps:{maxLength:w().MAX_CHAR_LENGTH_XLONG},placeholder:"Add a public comment..."})})})]}),(0,g.jsx)(O.ZP,{container:!0,justify:"right",xs:12,className:G().commentFieldContainer,children:(0,g.jsx)(O.ZP,{item:!0,xs:12,sm:12,md:12,className:G().feedCommentButton,children:(0,g.jsx)(U.Z,{onClick:this.handlePostComment,variant:"outlined",color:"primary",className:b().solidButton,children:"Comment"})})}),(0,g.jsx)(O.ZP,{container:!0,xs:12,className:G().commentsDiv,id:s,children:r}),(0,g.jsx)(O.ZP,{container:!0,xs:12,className:G().lastCommentDiv})]})}}]),l}(d.PureComponent),X=n(19765),Q=n(94743),J=n(73531),K=n.n(J),$=n(72478),ee=n.n($),et=n(86228),en=n.n(et),er=n(4106);function ei(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function es(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ei(Object(n),!0).forEach(function(t){(0,p.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ei(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var eo=function(e){(0,o.Z)(p,e);var t,n=(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(e){return!1}}(),function(){var e,n=(0,c.Z)(p);return e=t?Reflect.construct(n,arguments,(0,c.Z)(this).constructor):n.apply(this,arguments),(0,a.Z)(this,e)});function p(e){var t;return(0,r.Z)(this,p),(t=n.call(this,e)).state={commentsOpen:!1,userNotLoggedIn:!1,eventsDivWidth:0},t.handleCommentButtonClick=t.handleCommentButtonClick.bind((0,s.Z)(t)),t.handleRightArrowClick=t.handleRightArrowClick.bind((0,s.Z)(t)),t.handleLeftArrowClick=t.handleLeftArrowClick.bind((0,s.Z)(t)),t.sideScroll=t.sideScroll.bind((0,s.Z)(t)),t.handleDismiss=t.handleDismiss.bind((0,s.Z)(t)),t.eventsDiv=d.createRef(),t.alertMessage="Sign Up / Log in to join in the conversation!",t.alertHeadline="Please log in.",t}return(0,i.Z)(p,[{key:"handleRightArrowClick",value:function(){var e=document.getElementById("eventCardId"+this.props.trip._id);this.sideScroll(e,"right",5,2*w().EVENT_THUMBNAIL_WIDTH,10)}},{key:"handleLeftArrowClick",value:function(){var e=document.getElementById("eventCardId"+this.props.trip._id);this.sideScroll(e,"left",5,2*w().EVENT_THUMBNAIL_WIDTH,10)}},{key:"sideScroll",value:function(e,t,n,r,i){var s=0,o=setInterval(function(){"left"===t?e.scrollLeft-=i:e.scrollLeft+=i,(s+=i)>=r&&window.clearInterval(o)},n)}},{key:"handleCommentButtonClick",value:function(e){e.preventDefault(),this.setState({commentsOpen:!this.state.commentsOpen})}},{key:"handleDismiss",value:function(){this.setState({userNotLoggedIn:!1})}},{key:"componentDidMount",value:function(){this.eventsDiv.current&&this.setState({eventsDivWidth:this.eventsDiv.current.offsetWidth})}},{key:"render",value:function(){var e=this;(0,l.Z)("feed card render");var t=0;
1this.props.events&&this.props.events.forEach(function(n){(n.eventObj.thumbnail||!n.eventObj.thumbnail&&1===e.props.events.length)&&(t+=1)});var n=null;void 0!==this.props.trip.likes&&(n=Object.keys(this.props.trip.likes).length-1);var r=(0,g.jsx)(R.Z,{style:{cursor:"pointer",fontSize:"1.5em",paddingRight:"5px"},onClick:this.handleLike}),i="Posted "+(0,$.generateMDYDate)(this.props.trip.dateAdded),s=this.props.trip.user.avatar?this.props.trip.user.avatar:"/user.png",o=!1;if(this.state.eventsDivWidth>0){var a=Math.floor((this.state.eventsDivWidth-w().FEEDCARD_SCROLL_PADDING)/w().EVENT_THUMBNAIL_WIDTH)-1;t>a&&(o=!0)}var c=o;this.props.smallestMobileView&&(c=!1);var d=K().sumEventCosts(this.props.events,this.props.trip._id,this.props.trip.inputs);d.totalCostBaseNumber>w().MAX_TRIP_COST&&(d.totalCost=ee().round2NearestHundredth(w().MAX_TRIP_COST)+"+"),0===this.props.trip.inputs.baseCurrency.currency_code.localeCompare(this.props.trip.inputs.tripCurrency[0].currency_code)&&(d.convertedTotal=null);var p=K().genMonthOfTravelStr(this.props.trip),u=(0,F.routes)("view-trip",this.props.trip),h=(0,F.genHREFLinkProp)("view-trip"),f=es(es({sumOfEventCosts:d},this.props.trip.inputs),{},{monthOfTravelStr:p,userName:this.props.trip.user.userName});return(0,g.jsxs)(N.Z,{container:!0,className:"".concat(en().feedCardContainer," cardShadow"),children:[(0,g.jsxs)(N.Z,{container:!0,alignItems:"center",style:es(es({},{marginBottom:"1em"}),{},{width:"100%"}),children:[(0,g.jsxs)(N.Z,{container:!0,item:!0,alignItems:"center",size:{xs:6},children:[(0,g.jsx)(A.Z,{alt:"User Profile Picture",width:30,src:s,style:{width:"30px",height:"30px"}}),(0,g.jsx)("div",{style:{paddingLeft:"10px",fontSize:"14px"},children:f.userName})]}),(0,g.jsx)(N.Z,{size:{xs:6},style:{textAlign:"right"}})]}),(0,g.jsxs)("div",{style:{padding:"0em",border:"1px solid #ececec",borderRadius:"10px",width:"100%",marginBottom:"1em"},children:[(0,g.jsxs)(N.Z,{container:!0,item:!0,xs:12,style:{padding:"1em",paddingBottom:"0px"},children:[(0,g.jsx)(N.Z,{size:{xs:12},className:"".concat(en().tripNameDiv," ").concat(en().feedCardTitleLink),children:(0,g.jsx)(L(),{href:h,as:u,children:this.props.trip.inputs.tripName})}),(0,er.Z)(f)]}),(0,g.jsxs)("div",{className:en().eventArrowRelativeDiv,ref:this.eventsDiv,children:[o?(0,g.jsx)("div",{className:en().moreEventsArrow,children:(0,g.jsx)(X.Z,{onClick:this.handleRightArrowClick,className:en().arrowSVG})}):null,c?(0,g.jsx)("div",{className:en().leftArrow,children:(0,g.jsx)(Q.Z,{onClick:this.handleLeftArrowClick,className:en().arrowSVG})}):null,(0,g.jsx)(q,{events:this.props.events,trip:this.props.trip,smallestMobileView:this.props.smallestMobileView,handleHashtagClick:this.handleHashtagClick})]})]}),(0,g.jsxs)(N.Z,{container:!0,className:en().moreTripInfoDiv,style:{width:"100%",display:"flex",alignItems:"center",fontSize:".9em"},children:[(0,g.jsxs)(N.Z,{size:{xs:6},className:en().numLikes,style:{display:"flex",alignItems:"center"},children:[r," ",n+" likes"]}),(0,g.jsx)(N.Z,{size:{xs:6},className:en().numComments,children:(0,g.jsx)("a",{href:"#",onClick:function(t){return e.handleCommentButtonClick(t)},children:this.props.comments.length+" Comments"})})]}),this.state.commentsOpen?(0,g.jsx)(Y,{tripId:this.props.trip._id,comments:this.props.comments,user:null}):null,(0,g.jsx)(N.Z,{container:!0,className:en().timePostedDiv,style:{width:"100%"},children:i}),null]},"feedCard"+this.props.index)}}]),p}(d.PureComponent),ea=function(e){(0,o.Z)(l,e);var t,n=(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(e){return!1}}(),function(){var e,n=(0,c.Z)(l);return e=t?Reflect.construct(n,arguments,(0,c.Z)(this).constructor):n.apply(this,arguments),(0,a.Z)(this,e)});function l(e){var t;return(0,r.Z)(this,l),(t=n.call(this,e)).handleHashtagClick=t.handleHashtagClick.bind((0,s.Z)(t)),t.handleCopyTrip=t.handleCopyTrip.bind((0,s.Z)(t)),t}return(0,i.Z)(l,[{key:"handleHashtagClick",value:function(e){this.props.handleHashtagClick(e)}},{key:"handleCopyTrip",value:function(e){this.props.handleCopyTrip(e)}},{key:"render",value:function(){return(0,g.jsx)(eo,{trip:this.props.trip,index:this.props.index,events:this.props.events,comments:this.props.comments,user:this.props.user,handleLike:this.props.handleLike,handleUnlike:this.props.handleUnlike,handleFeedCommentPost:this.props.handleFeedCommentPost,handleHashtagClick:this.handleHashtagClick,handleCopyTrip:this.handleCopyTrip,smallestMobileView:this.props.smallestMobileView})}}]),l}(d.Component),ec=n(58533),el=n(733),ed=n.n(el),ep=n(1544),eu=n(17654),eh=n.n(eu),ef=n(47998),em=n(98687),ev=n(18694),ey=n(43534),eg=n(49627);function eC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ej(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?eC(Object(n),!0).forEach(function(t){(0,p.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ex=function(e){(0,o.Z)(l,e);var t,n=(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(e){return!1}}(),function(){var e,n=(0,c.Z)(l);return e=t?Reflect.construct(n,arguments,(0,c.Z)(this).constructor):n.apply(this,arguments),(0,a.Z)(this,e)});function l(e){var t;return(0,r.Z)(this,l),t=n.call(this,e),(0,p.Z)((0,s.Z)(t),"listenToScroll",function(){t.setState({scrollYPos:window.pageYOffset})}),t.state={scrollYPos:0},t.listenToScroll=t.listenToScroll.bind((0,s.Z)(t)),t}return(0,i.Z)(l,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.listenToScroll)}},{key:"render",value:function(){var e=0;this.state.scrollYPos>0&&(e=15-this.state.scrollYPos,this.state.scrollYPos>57&&(e=-42));var t=new Date().getFullYear();if(this.props.smallestMobileView)return null;var n=(0,g.jsxs)("div",{className:"buttons",children:[(0,g.jsx)("a",{className:"fb",href:w().FB_URL,target:"_blank",children:(0,g.jsx)(ef.Z,{fontSize:"small"})}),(0,g.jsx)("a",{className:"ig",href:w().IG_URL,target:"_blank",children:(0,g.jsx)(em.Z,{fontSize:"small"})}),(0,g.jsx)("a",{className:"yt",href:w().YT_URL,target:"_blank",children:(0,g.jsx)(ev.Z,{fontSize:"small"})}),(0,g.jsx)("a",{className:"tw",href:w().TW_URL,target:"_blank",children:(0,g.jsx)(ey.Z,{fontSize:"small"})}),(0,g.jsx)("a",{className:"pt",href:w().PT_URL,target:"_blank",children:(0,g.jsx)(eg.Z,{fontSize:"small"})})]});return(0,g.jsxs)("div",{className:"".concat(eh().feedFooterContainerTop," cardShadow"),style:ej(ej({marginTop:e},{textAlign:"center"}),{},{fontSize:".9em"}),children:[(0,g.jsxs)(N.Z,{container:!0,children:[(0,g.jsx)(N.Z,{size:{xs:3},children:(0,g.jsx)(L(),{href:"/about",children:"About"})}),(0,g.jsx)(N.Z,{size:{xs:3},children:(0,g.jsx)(L(),{href:"/contact",children:"Contact"})}),(0,g.jsx)(N.Z,{size:{xs:3},children:(0,g.jsx)(L(),{href:"/privacy",children:"Privacy"})}),(0,g.jsx)(N.Z,{size:{xs:3},children:(0,g.jsx)(L(),{href:"/terms",children:"Terms"})})]}),(0,g.jsx)(N.Z,{container:!0,style:{justifyContent:"center",paddingTop:"5px",paddingBottom:"5px"},children:(0,g.jsxs)("small",{children:["Blue Planit \xa9 ",t," All Rights Reserved"]})}),(0,g.jsx)(N.Z,{container:!0,style:{justifyContent:"center"},justify:"space-around",children:(0,g.jsx)(N.Z,{item:!0,className:"".concat(eh().buttons),children:n})})]})}}]),l}(d.PureComponent),e_=n(34946),eb=n.n(e_);function eZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ew(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eZ(Object(n),!0).forEach(function(t){(0,p.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var eO=!1,eD=!0,eS=function(e){(0,o.Z)(d,e);var t,n=(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(e){return!1}}(),function(){var e,n=(0,c.Z)(d);return e=t?Reflect.construct(n,arguments,(0,c.Z)(this).constructor):n.apply(this,arguments),(0,a.Z)(this,e)});function d(e){var t;return(0,r.Z)(this,d),(t=n.call(this,e)).state={isLoading:!0,address:"",hasMoreTrips:!0,query:{limit:5,lastTripId:null,tripIdsInFeed:{},minDistance:0,type:"DEFAULT",lat:null,lng:null,categories:[],windowWidth:480,smallestMobileView:!1},location:{},open:!1,tripIdToBeCopied:null,trips:{},events:{},comments:{}},t.setIsLoading=t.setIsLoading.bind((0,s.Z)(t)),t.setAddress=t.setAddress.bind((0,s.Z)(t)),t.setLocation=t.setLocation.bind((0,s.Z)(t)),t.populateFeed=t.populateFeed.bind((0,s.Z)(t)),t.updateFeed=t.updateFeed.bind((0,s.Z)(t)),t.handleLocationFilterClick=t.handleLocationFilterClick.bind((0,s.Z)(t)),t.handleCategoryFilterChange=t.handleCategoryFilterChange.bind((0,s.Z)(t)),t.handleHashtagClick=t.handleHashtagClick.bind((0,s.Z)(t)),t.handleCopyTripClose=t.handleCopyTripClose.bind((0,s.Z)(t)),t.handleCopyTrip=t.handleCopyTrip.bind((0,s.Z)(t)),t.updateWindowDimensions=t.updateWindowDimensions.bind((0,s.Z)(t)),t}return(0,i.Z)(d,[{key:"updateWindowDimensions",value:function(){window.innerWidth<=w().XS_WIDTH?this.setState({smallestMobileView:!0}):this.setState({smallestMobileView:!1}),this.setState({windowWidth:window.innerWidth})}},{key:"setQueryState",value:function(e,t){var n=ew({},t);0===e.localeCompare("DEFAULT")?this.setState(ew(ew({},this.state),{},{query:ew(ew({},this.state.query),{},{type:"DEFAULT"})})):0===e.localeCompare("LOCATION")&&this.setState(ew(ew({},this.state),{},{query:ew(ew(ew({},this.state.query),n),{},{type:"LOCATION",minDistance:0})}))}},{key:"updateFeed",value:function(){var e=this;(0,l.Z)("start update feed"),eD=!1;var t=[],n=this.state.query.lastTripId,r=null,i=0;if(0===this.state.query.type.localeCompare("DEFAULT"))r=(0,u.Oo)(ew({},this.state.query));else if(0===this.state.query.type.localeCompare("LOCATION"))r=(0,u.c0)(ew({},this.state.query));else{(0,l.Z)("error in update feed");return}r?r.then(function(e){return i=(t=e.trips).length,e.trips}).catch(function(e){(0,l.Z)("update feed error: trips query")}).then(function(r){var s=ee().formatFeedData(r),o=s.trips,a=s.events,c=s.comments;i>0&&(n=t[i-1]._id);var l=!0;if((0===i||i<e.state.query.limit)&&(l=!1),0===e.state.query.type.localeCompare("DEFAULT"))e.setState(ew(ew({},e.state),{},{query:ew(ew({},e.state.query),{},{lastTripId:n}),trips:ew(ew({},e.state.trips),o),events:ew(ew({}
1,e.state.events),a),comments:ew(ew({},e.state.comments),c),hasMoreTrips:l}));else if(0===e.state.query.type.localeCompare("LOCATION")){var d=null;i>0&&t&&(d=t[i-1].distance);for(var p=ew({},e.state.query.tripIdsInFeed),u=0;u<i;u++)p[t[u]._id]=t[u]._id;e.setState(ew(ew({},e.state),{},{query:ew(ew({},e.state.query),{},{lastTripId:null,minDistance:d,tripIdsInFeed:p}),trips:ew(ew({},e.state.trips),o),events:ew(ew({},e.state.events),a),comments:ew(ew({},e.state.comments),c),hasMoreTrips:l}))}}):this.setState({isLoading:!1})}},{key:"populateFeed",value:function(e){var t=this;(0,l.Z)("populate feed"),this.setState({isLoading:!0}),eD=!0;var n=null,r=[],i=[],s=this.state.query.lastTripId,o=null;if(0===e.type.localeCompare("DEFAULT"))o=(0,u.Oo)({limit:this.state.query.limit,categories:this.state.query.categories}),this.setQueryState(e.type,{});else if(0===e.type.localeCompare("LOCATION")){n=e.geometry?ew({},e.geometry.location):this.state.location.geometry.location,!0!==e.resetCategories&&(r=this.state.query.categories);var a=ew(ew({},n),{},{limit:this.state.query.limit,categories:r,address_components:e.address_components});o=(0,u.c0)(a),this.setQueryState(e.type,a)}else{(0,l.Z)("error in the feed"),this.setState({isLoading:!1});return}o?o.then(function(e){return i=e.trips,e.trips}).catch(function(e){t.setState({isLoading:!1})}).then(function(e){var n=ee().formatFeedData(e),r=n.trips,o=n.events,a=n.comments,c=i.length;c>0&&(s=i[c-1]._id);var l=ew({},t.state.query.tripIdsInFeed),d=t.state.query.minDistance;if(0===t.state.query.type.localeCompare("LOCATION")){c>0&&i&&(d=i[c-1].distance);for(var p=0;p<c;p++)l[i[p]._id]=i[p]._id}var u=!0;(0===c||c<t.state.query.limit)&&(u=!1),t.setState(ew(ew({},t.state),{},{query:ew(ew({},t.state.query),{},{lastTripId:s,minDistance:d,tripIdsInFeed:l}),trips:r,events:o,comments:a,hasMoreTrips:u,isLoading:!1}))}):this.setState({isLoading:!1})}},{key:"setIsLoading",value:function(){this.setState(ew(ew({},this.state),{},{isLoading:!0,hasMoreTrips:!0,query:ew(ew({},this.state.query),{},{lastTripId:null,minDistance:0,tripIdsInFeed:{},categories:[]})}))}},{key:"handleLocationFilterClick",value:function(){this.setState(ew(ew({},this.state),{},{address:"",hasMoreTrips:!0,query:ew(ew({},this.state.query),{},{lastTripId:null,minDistance:0,tripIdsInFeed:{},type:"DEFAULT"}),location:{}})),eO=!0}},{key:"setLocation",value:function(e){this.setState(ew(ew({},this.state),{},{location:e}))}},{key:"setAddress",value:function(e){this.setState(ew(ew({},this.state),{},{address:e}))}},{key:"handleCategoryFilterChange",value:function(e){var t={};0===this.state.query.type.localeCompare("LOCATION")&&(t=ew({},this.state.location)),this.setState({address:"",hasMoreTrips:!0,query:ew(ew({},this.state.query),{},{lastTripId:null,minDistance:0,tripIdsInFeed:{},categories:e}),location:t}),eO=!0}},{key:"handleHashtagClick",value:function(e){if(e&&0!==e.localeCompare("")){var t=this.state.query.categories.slice();-1===t.indexOf(e)&&t.push(e),this.setState(ew(ew({},this.state),{},{query:ew(ew({},this.state.query),{},{categories:t})})),eO=!0}}},{key:"componentDidMount",value:function(){(0,$.isRunningOnClientSide)()&&(this.updateWindowDimensions(),window.scroll(0,0),window.addEventListener("resize",this.updateWindowDimensions)),this.populateFeed({type:"DEFAULT"})}},{key:"componentDidUpdate",value:function(e,t){t.windowWidth!==this.state.windowWidth&&this.updateWindowDimensions(),window.document.getElementById("feedDiv")&&window.document.getElementById("feedDiv").offsetHeight<=window.innerHeight&&this.state.hasMoreTrips&&this.updateFeed(),eO&&(this.populateFeed({type:this.state.query.type}),eO=!1)}},{key:"handleCopyTripClose",value:function(){this.setState({open:!1,tripIdToBeCopied:null})}},{key:"handleCopyTrip",value:function(e){this.setState({open:!0,tripIdToBeCopied:e})}},{key:"render",value:function(){var e=this;(0,l.Z)("feed render ");var t=this.state,n=t.isLoading,r=t.hasMoreTrips,i=t.query;if(n)return(0,g.jsx)("div",{className:"appLoadingDiv",children:(0,g.jsx)(ed(),{type:"spin",color:"#808080",height:"5%",width:"5%",delay:0})});var s="No more trips. You have seen it all.";!r&&0===i.type.localeCompare("LOCATION")&&eD&&(s="No trips near your search location were found.");var o=Object.keys(this.state.trips).length,a=Object.keys(this.state.trips).map(function(t,n){return(0,g.jsx)(ea,{windowWidth:e.state.windowWidth,trip:e.state.trips[t],index:n,events:e.state.events[e.state.trips[t]._id],comments:e.state.comments[e.state.trips[t]._id],handleHashtagClick:e.handleHashtagClick,handleCopyTrip:e.handleCopyTrip,smallestMobileView:e.state.smallestMobileView},n)}),c=null;return this.state.open&&(c=(0,g.jsx)(v.Z,{open:this.state.open,onClose:this.handleCopyTripClose,"aria-labelledby":"form-dialog-title",children:(0,g.jsx)(m.Z,{children:(0,g.jsx)(CopyTripInitialInputContainer,{tripId:this.state.tripIdToBeCopied,onClose:this.handleCopyTripClose})})})),(0,g.jsxs)("div",{id:"feedDiv",className:eb().mainFeedContainer,children:[c,(0,g.jsxs)(N.Z,{container:!0,children:[(0,g.jsxs)(N.Z,{size:{xs:12,md:9},children:[(0,g.jsx)(I,{setIsLoading:this.setIsLoading,setAddress:this.setAddress,setLocation:this.setLocation,address:this.state.address,populateFeed:this.populateFeed}),(0,g.jsx)("div",{style:{marginBottom:"15px"}}),(0,g.jsx)(ec.Z,{dataLength:o,next:this.updateFeed,hasMore:this.state.hasMoreTrips,loader:(0,g.jsx)("div",{className:"appLoadingDiv",children:(0,g.jsx)(ed(),{type:"spin",color:"#808080",height:"5%",width:"5%",delay:0})}),endMessage:(0,g.jsx)("p",{style:{textAlign:"center"},children:(0,g.jsx)("b",{children:s})}),children:a})]}),(0,g.jsx)(ep.Z,{smDown:!0,children:(0,g.jsx)(N.Z,{size:{xs:12,md:3},children:(0,g.jsx)(ex,{smallestMobileView:this.state.smallestMobileView})})})]})]})}}]),d}(d.Component),eT=n(9008),ek=n.n(eT),eI=n(69227),eP=n.n(eI),eL=function(e){return e?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(eP(),{url:"https://maps.googleapis.com/ma
1ps/api/js?key=AIzaSyCbk825UP1WmGnyG3wtA7waNXp3bve-lwg&libraries=places",onLoad:e.handleScriptLoad,onCreate:e.handleScriptCreate}),!1!==e.showLoadingAnimation?(0,g.jsx)("div",{className:"appLoadingDiv",children:(0,g.jsx)(ed(),{type:"spin",color:"#808080",height:"5%",width:"5%",delay:0})}):null]}):null},eN=function(e){(0,o.Z)(d,e);var t,n=(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(e){return!1}}(),function(){var e,n=(0,c.Z)(d);return e=t?Reflect.construct(n,arguments,(0,c.Z)(this).constructor):n.apply(this,arguments),(0,a.Z)(this,e)});function d(e){var t;return(0,r.Z)(this,d),(t=n.call(this,e)).state={googleMapsAPILoaded:!1},t.handleScriptLoad=t.handleScriptLoad.bind((0,s.Z)(t)),t.handleScriptCreate=t.handleScriptCreate.bind((0,s.Z)(t)),t}return(0,i.Z)(d,[{key:"handleScriptLoad",value:function(){(0,l.Z)("google maps api script loaded!"),this.setState({googleMapsAPILoaded:!0})}},{key:"handleScriptCreate",value:function(){(0,l.Z)("google maps api script created!")}},{key:"render",value:function(){var e=w().BROWSE_PAGE_META_DESC;return this.state.googleMapsAPILoaded||window.google?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(ek(),{children:[(0,g.jsx)("title",{children:"Blue Planit | Browse Trips"}),(0,g.jsx)("meta",{name:"description",content:e})]}),(0,g.jsx)(eS,{setFeedDataToStore:this.props.setFeedDataToStore,appendFeedDataToStore:this.props.appendFeedDataToStore,trips:this.props.trips,events:this.props.events,comments:this.props.comments,user:this.props.user})]}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(ek(),{children:[(0,g.jsx)("title",{children:"Blue Planit | Browse Trips"}),(0,g.jsx)("meta",{name:"description",content:e})]}),(0,g.jsx)(eL,{handleScriptCreate:this.handleScriptCreate,handleScriptLoad:this.handleScriptLoad})]})}}]),d}(d.Component)},67034:function(e,t,n){"use strict";var r=n(46440),i=r(n(67426)),s=r(n(3323)),o=n(85893);n(67294);var a=n(31304);e.exports={routes:function(e,t){switch(e){case"view-trip":var n=a(t.inputs.tripName,{lower:!0});return n||(n="".concat(a(t.inputs.locationStr,{lower:!0}),"-trip")),"/view-trip/".concat(t.shortTripId,"/").concat(n);case"itinerary-view":return"/itinerary-view/".concat(t);case"blog":return"/blog/".concat(t);default:return!1}},genHREFLinkProp:function(e){switch(e){case"view-trip":return"/view-trip/[shortTripId]/[tripName]";case"itinerary-view":return"/itinerary-view/[tripId]";case"blog-post":return"/blog/[post]";default:return!1}},formatEventName:function(e){var t=e;if(t){var n=t.indexOf(" "),r=Math.floor(i.default.USER_ITEM_DESC_STR_LENGTH/5),a=Math.floor(i.default.USER_ITEM_DESC_STR_LENGTH/2.5);n>=0?n>r?t=e.substring(0,r)+"...":e.length>a&&(t=e.substring(0,a)+"..."):-1===n&&e.length>r&&(t=e.substring(0,r)+"...")}return 0!==t.localeCompare(e)&&(t=(0,o.jsx)(s.default,{title:e,children:(0,o.jsx)("span",{children:t})})),t}}},17654:function(e){e.exports={footerContainer:"footer_footerContainer__7KHTp",copyrightDiv:"footer_copyrightDiv__c0pkZ",feedFooterContainerTop:"footer_feedFooterContainerTop__7mhaH",dashFooterContainer:"footer_dashFooterContainer__CfZYM",buttons:"footer_buttons__VcK0a",frontFooterContainer:"footer_frontFooterContainer__2IgAs",pageLinksContainer:"footer_pageLinksContainer__ZPBdK",colorWhite:"footer_colorWhite__OsMFB"}},34946:function(e){e.exports={mainFeedContainer:"feed_mainFeedContainer__qWWF7",feedLoadingDiv:"feed_feedLoadingDiv__9tjHB"}},86228:function(e){e.exports={feedAuthorAvatar:"feedCard_feedAuthorAvatar__dZ5O1",feedCardContainer:"feedCard_feedCardContainer__cTPRi",tripNameDiv:"feedCard_tripNameDiv__5g20D",feedCardTitleLink:"feedCard_feedCardTitleLink__xwm0_",feedTopBarAvatarContainer:"feedCard_feedTopBarAvatarContainer__Cy12b",numDaysDiv:"feedCard_numDaysDiv__9QphR",categoriesDivFeedCard:"feedCard_categoriesDivFeedCard__wyZ0b",moreTripInfoDiv:"feedCard_moreTripInfoDiv__6IALN",numLikes:"feedCard_numLikes__nZUJh",numComments:"feedCard_numComments__XNute",marginAuto:"feedCard_marginAuto__rDrjQ",actionsBar:"feedCard_actionsBar__o3dVt",textAlignCenter:"feedCard_textAlignCenter__oJeKa",eventArrowRelativeDiv:"feedCard_eventArrowRelativeDiv__xDGhh",arrowSVG:"feedCard_arrowSVG__jejvg",feedCardAuthorImgDiv:"feedCard_feedCardAuthorImgDiv__gQDr2",leftArrow:"feedCard_leftArrow__ZFqQB",moreEventsArrow:"feedCard_moreEventsArrow__zNZbE",timePostedDiv:"feedCard_timePostedDiv__s7ni5"}},73131:function(e){e.exports={singleEventContainer:"feedCardEvents_singleEventContainer__r2At9",emptyEventImg:"feedCardEvents_emptyEventImg__DfeQw",categoryLinkInSingleEventDiv:"feedCardEvents_categoryLinkInSingleEventDiv__YR2ZT",eventInfoDiv:"feedCardEvents_eventInfoDiv__pr_YS",eventImgDiv:"feedCardEvents_eventImgDiv__4x4kn",eventImg:"feedCardEvents_eventImg__z0Hp7",categoriesInEventCard:"feedCardEvents_categoriesInEventCard__Eea2I",eventsContainer:"feedCardEvents_eventsContainer__1OPrn",noEventsDiv:"feedCardEvents_noEventsDiv__3jLXw"}},49406:function(e){e.exports={feedCommentButton:"feedComments_feedCommentButton__UBPdt",commentFieldDiv:"feedComments_commentFieldDiv__cHV_I",commentFieldContainer:"feedComments_commentFieldContainer__y8FAT",commentsDiv:"feedComments_commentsDiv__bxqro",feedCommentsContainer:"feedComments_feedCommentsContainer__CJKSS",feedCommentAvatar:"feedComments_feedCommentAvatar__Xb6_6",lastCommentDiv:"feedComments_lastCommentDiv__vFfih"}},9470:function(e){e.exports={feedLocationSearchDiv:"feedSearchBar_feedLocationSearchDiv__XN2sS"}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.