PageSourceSearch

https://sa0-sp.roadtrippers.com/packs/4233.37074410a23701269445.js

js roadtrippers.com collected 2026-09-24 08:29:14 UTC 13,624 bytes, 1 lines download raw bytes

1(self.webpackChunk=self.webpackChunk||[]).push([[4233],{78387:(e,t,i)=>{"use strict";i.d(t,{I:()=>o});var r=i(50791),n=i(31270);function o({tripId:e}){return async(t,i)=>{const o=(0,n.S)(i(),e),s=(null==o?void 0:o.cid)||null;return t({payload:{tripCid:s,tripId:e},type:"deleteTrip"}),(await fetch(`/api/v2/trips/${e}`,{headers:{"Content-Type":"application/json"},method:"DELETE"})).ok?(t({payload:{action:"deleteTripSuccess",lastModifyingActionTime:Date.now(),tripCid:s,tripId:e},type:"deleteTripSuccess"}),t((0,r.Yz)({text:"Trip successfully deleted.",type:"success"})),!0):(t({payload:{action:"deleteTripError",lastModifyingActionTime:Date.now(),tripCid:s,tripId:e},type:"deleteTripError"}),t((0,r.Yz)({text:"Oops. There was an issue trying to delete your trip.",type:"error"})),!1)}}},24233:(e,t,i)=>{"use strict";i.r(t),i(29177);var r=i(76318);rt.people.views.AbstractPersonView=Backbone.View.extend({events:{"change .user-profile-list-sort-select":"handleSortSelectChange"},initialize:function(e){this.username=e.username,this.viewId=e.viewId,this.contentClassName=".user-profile-content",this.contentEl=this.el.querySelector(this.contentClassName),this.mainEl=this.el.querySelector(".user-profile-main"),this.prevCurrentUser=(0,r.HF)(redux.getState()),this.prevCurrentUser||(this.unsubscribe=redux.subscribe((()=>{const e=(0,r.HF)(redux.getState());this.prevCurrentUser||(null==e?void 0:e.username)!==this.username||(this.unsubscribe(),window.location.reload()),this.prevCurrentUser=e})))},remove:function(){var e;this.username=null,null===(e=this.unsubscribe)||void 0===e||e.call(this)},handleSortSelectChange:function(e){const t=new URL(window.location.href),{currentTarget:i}=e;i.disabled=!0,i.blur(),t.searchParams.set("sort",i.value),t.searchParams.delete("page"),rt.core.actionCreators.history.navigate({url:t.toString()})},getTitle:function(){return this.el.querySelector(`#${this.viewId}`).dataset.title},loadPaginationUrl:function(e){$.ajax({beforeSend:()=>{this.contentEl.classList.add("loading")},success:e=>{const t=(new DOMParser).parseFromString(e,"text/html").querySelector(this.contentClassName);t&&(this.contentEl.innerHTML=t.innerHTML),this.contentEl.classList.remove("loading"),this.mainEl.scrollIntoView({behavior:"smooth",block:"start"}),this.render()},url:e})}},{createView:function(e){return new Promise((t=>{this.isCurrentUser(e)?(this.activeView.loadPaginationUrl(window.location.href),t(this.activeView)):this.isRendered()?(this.activeView=new this({el:"main",username:e,viewId:this.viewId}),t(this.activeView)):this.promiseHtml().then((i=>{this.activeView=new this({el:i,username:e,viewId:this.viewId}),t(this.activeView)}))}))},isCurrentUser:function(e){return(this.activeView?this.activeView.username:null)===e},isRendered:function(){return rt.app.router.initialRoute&&document.getElementById(this.viewId)},promiseHtml:function(){return fetch(window.location.href,{headers:{"X-Requested-With":"XMLHttpRequest"}}).then((e=>e.text()))}}),i(93037);var n=i(47774),o=i(43622);rt.people.views.PersonFavoritesView=rt.people.views.AbstractPersonView.extend({events:{...rt.people.views.AbstractPersonView.prototype.events,"click .map-view-button":"handleMapViewButtonClick"},handleMapViewButtonClick:function(){(0,o.Ar)("profile favorites")},render:function(){rt.people.views.AbstractPersonView.prototype.render.apply(this),(0,n.K)(),(0,n.U)(this.el)},remove:function(){rt.people.views.AbstractPersonView.prototype.remove.apply(this),(0,n.K)()}},{viewId:"user-profile-favorites"});var s=i(9270);rt.people.views.PersonPhotosView=rt.people.views.AbstractPersonView.extend({events:{...rt.people.views.AbstractPersonView.prototype.events,"click .user-profile-photo a":"handlePhotoClick"},handlePhotoClick:function(e){e.preventDefault(),e.stopPropagation(),(0,s.Hf)({context:"profile photos",galleryImageList:this.galleryImageList,onClose:e=>{null!=e&&e.length&&(e.length===this.galleryImageList.length?window.location.reload():this.loadPaginationUrl(window.location.pathname+window.location.search))},photoId:Number(e.currentTarget.dataset.id)})},render:function(){rt.people.views.AbstractPersonView.prototype.render.apply(this);const e=this.el.querySelector(".user-profile-photos-data");e&&(this.galleryImageList=JSON.parse(e.textContent))}},{viewId:"user-profile-photos"}),i(58994);var a=i(22614),l=i(258),c=i(78387),p=i(41148),u=i(13992),d=i(30740),h=i(76834),w=i(89230);rt.people.views.PersonTripsView=rt.people.views.AbstractPersonView.extend({events:{...rt.people.views.AbstractPersonView.prototype.events,"click .create-trip":"handleCreateTripButtonClick","click .delete-trip":"handleDeleteTripButtonClick","click .duplicate-trip":"handleDuplicateTripButtonClick","click .leave-tr
1ip":"handleLeaveTripButtonClick","click .rt-membership-banner-button":"handleMembershipBannerButtonClick","click .rt-menu .rt-button":"handleMenuButtonClick","click .rt-trip-card-link":"handleTripCardClick"},initialize:function(e){this.refreshCurrentPage=this.refreshCurrentPage.bind(this),this.handleDocumentMouseDown=this.handleDocumentMouseDown.bind(this),document.addEventListener("click",this.handleDocumentMouseDown,!1),rt.people.views.AbstractPersonView.prototype.initialize.apply(this,[e])},remove:function(){rt.people.views.AbstractPersonView.prototype.remove.apply(this),document.removeEventListener("click",this.handleDocumentMouseDown,!1)},render:function(){rt.people.views.AbstractPersonView.prototype.render.apply(this)},handleCreateTripButtonClick:function(){(0,l.tP)("trips empty")},handleDuplicateTripButtonClick:async function(e){const{tripId:t,tripName:i}=e.currentTarget.dataset;this.contentEl.classList.add("loading"),await(0,u.M)({sourceTripId:t,sourceTripName:i}),this.refreshCurrentPage()},handleDeleteTripButtonClick:function(e){(0,a.rm)({onPrimaryButtonClick:()=>{this.contentEl.classList.add("loading"),redux.dispatch((0,c.I)({tripId:Number(e.currentTarget.dataset.tripId)})).then(this.refreshCurrentPage)}})},handleDocumentMouseDown:function(){this.hideMenuLists()},handleLeaveTripButtonClick:function(e){(0,a.Bp)({onPrimaryButtonClick:async()=>{const t=(0,r.HF)(redux.getState()),{tripId:i,tripIsPrivate:n}=e.currentTarget.dataset;this.contentEl.classList.add("loading"),await redux.dispatch((0,p.n)({isTripPrivate:!!n,tripId:parseInt(i,10),userId:t.id}))&&this.refreshCurrentPage()}})},handleMembershipBannerButtonClick:function(){(0,w.O)({context:"profile trips banner",tierName:(0,d.fR)().name}).then((e=>{e&&window.location.reload()}))},handleMenuButtonClick:function(e){const t=e.currentTarget.nextElementSibling;e.stopPropagation(),this.hideMenuLists(t),t.classList.toggle("visible")},handleTripCardClick:function(e){const{locked:t}=e.currentTarget.dataset;t&&(e.preventDefault(),e.stopPropagation(),"owner"===t?(0,w.O)({context:"view trip",tierName:(0,d.fR)().name}).then((e=>{e&&window.location.reload()})):(0,h.q)({contentText:"The owner of this trip needs to upgrade their membership in order to view this trip.",headerText:"Cannot View Trip"}))},hideMenuLists:function(e=null){document.querySelectorAll(".rt-menu-list.visible").forEach((t=>{e!==t&&t.classList.remove("visible")}))},refreshCurrentPage:function(){const e=this.el.querySelector('.pagination-view a[rel="prev"]');1===this.el.querySelectorAll(".rt-trip-card").length&&e?rt.core.actionCreators.history.navigate({url:e.href}):this.loadPaginationUrl(window.location.pathname+window.location.search)}},{viewId:"user-profile-trips"})},93037:()=>{!function(){"use strict";rt.people.views.PersonCommunityView=rt.people.views.AbstractPersonView.extend({afterDomInsertion:function(){if("undefined"==typeof Juicer){const e=document.createElement("script");e.addEventListener("load",this.handleJuicerScriptLoad.bind(this),!1),e.async=!0,e.src="//assets.juicer.io/embed-amd.js",e.type="text/javascript",document.body.appendChild(e)}else Juicer.initialize()},remove:function(){rt.people.views.AbstractPersonView.prototype.remove.apply(this),"undefined"!=typeof Juicer&&Juicer.remove()},handleJuicerScriptLoad:function(){Juicer.initialize()}},{viewId:"user-profile-community"})}()},58994:()=>{rt.people.views.PersonReviewsView=rt.people.views.AbstractPersonView.extend({initialize:function(e){this.reviewList=[],rt.people.views.AbstractPersonView.prototype.initialize.apply(this,[e])},remove:function(){rt.people.views.AbstractPersonView.prototype.remove.apply(this)},render:function(e){rt.people.views.AbstractPersonView.prototype.render.apply(this,[e]),this.reviewList=[],this.el.querySelectorAll(".person-review-view").forEach(((e,t)=>{this.reviewList[t]=this.newReviewView(e)}))},deleteReview:function(e){this.reviewList.splice(e,1)[0].remove()},newReviewView:function(e){return new rt.core.review.views.ReviewView({el:e,props:{context:"profile",deleteReview:this.deleteReview.bind(this)}})}},{viewId:"user-profile-reviews"})},31627:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var r=i(45469),n=i(37787),o=i(96444),s=i(45697),a=i.n(s),l=i(67480),c=i(45007),p=i(67294),u=i(85893);function d({className:e="rt-place-card-add-waypoint-button",context:t,place:i,poiId:s}){var a;const d=(0,c.v9)(l.Wt),[h,w]=(0,p.useState)(!1),v=null==d||null===(a=d.wayp
1oints.find((e=>e.poi_id===s)))||void 0===a?void 0:a.id;return(0,u.jsx)(r.Z,{className:`${e} tertiary-filled`,isDisabled:h,onClick:async function(){v?await async function(){w(!0);try{await rt.core.actionCreators.activeTrip.deleteWaypoint({context:t,waypointId:v})}finally{w(!1)}}():await async function(){w(!0);try{const e=await async function(){if(!i){const e=await fetch(`/api/v1/pois/${s}`);if(!e.ok)throw new Error(`Failed to fetch POI ${s}`);return e.json()}return i}();await rt.core.actionCreators.activeTrip.createWaypointFromPoi({context:t,insertionIndex:null,poi:{...e,city:null,state_name:null}})}finally{w(!1)}}()},size:"small",variant:"icon",children:v?(0,u.jsx)(n.Z,{}):(0,u.jsx)(o.Z,{})})}d.propTypes={className:a().string,context:a().string.isRequired,place:a().object,poiId:a().number.isRequired}},97690:(e,t,i)=>{"use strict";i.d(t,{Z:()=>h});var r=i(45469),n=i(59537),o=i(38166),s=i(45697),a=i.n(s),l=i(92207),c=i(89797),p=i(45007),u=i(67294),d=i(85893);function h({className:e="rt-place-card-save-button",context:t,poiId:i}){const s=(0,p.I0)(),a=(0,p.v9)((e=>(0,c.$l)(e,i))),[h,w]=(0,u.useState)(!1);return(0,d.jsx)(r.Z,{className:`${e} tertiary-filled`,isDisabled:h,onClick:async function(){w(!0);try{a?await s((0,l.Ye)({savableId:i})):await s((0,l.zM)({savableId:i,trackAuthenticationPromptedContext:t,trackPoiSavedContext:t}))}finally{w(!1)}},size:"small",variant:"icon",children:a?(0,d.jsx)(n.Z,{}):(0,d.jsx)(o.Z,{})})}h.propTypes={className:a().string,context:a().string.isRequired,poiId:a().number.isRequired}},47774:(e,t,i)=>{"use strict";i.d(t,{U:()=>p,K:()=>u});var r=i(31627),n=i(97690),o=i(20745),s=i(45007),a=i(85893);class l{constructor(e){({el:this.el}=e),this.addWaypointButtonRoot=(0,o.s)(this.el.querySelector(".rt-place-card-add-waypoint-button-container")),this.saveButtonRoot=(0,o.s)(this.el.querySelector(".rt-place-card-save-button-container")),this.render()}remove(){this.addWaypointButtonRoot.unmount(),this.saveButtonRoot.unmount()}render(){const{context:e,poiId:t}=this.el.querySelector(".rt-place-card-link").dataset,i={context:e,poiId:parseInt(t)};this.addWaypointButtonRoot.render((0,a.jsx)(s.zt,{store:redux,children:(0,a.jsx)(r.Z,{...i})})),this.saveButtonRoot.render((0,a.jsx)(s.zt,{store:redux,children:(0,a.jsx)(n.Z,{...i})}))}}let c=[];function p(e){e.querySelectorAll(".rt-place-card").forEach((e=>{c.push(new l({el:e}))}))}function u(){var e;null!==(e=c)&&void 0!==e&&e.length&&(c.forEach((e=>{e.remove()})),c=[])}},13992:(e,t,i)=>{"use strict";i.d(t,{M:()=>s});var r=i(22614),n=i(84134),o=i(31270);async function s({sourceTripId:e,sourceTripName:t}){var i,s,a;if(!await(0,n.S)({context:"save new trip"})||null===(i=rt)||void 0===i||null===(s=i.core)||void 0===s||null===(a=s.trip)||void 0===a||!a.duplicateTrip)return;const l=await rt.core.trip.duplicateTrip({context:"trip planner",sourceTripId:e,tripName:`Copy of ${t}`.slice(0,60)});(0,r.BB)({cancelButtonLabel:"Not Yet",contentText:"We’ve saved a copy of this trip to your account. Would you like to start working on the new trip?",headerText:"Trip duplicated!",onPrimaryButtonClick:()=>{const e=(0,o.S)(redux.getState(),l.id);rt.core.actionCreators.activeTrip.set({tripCid:e.cid}),rt.core.actionCreators.history.navigate({url:`/?a4=t!${l.id}`})},primaryButtonLabel:"Open New Trip"})}},38166:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});var r=i(85893);function n(){return(0,r.jsx)("svg",{className:"icon-heart-outline",height:"24",viewBox:"0 0 24 24",width:"24",children:(0,r.jsx)("path",{d:"M11.5882 4.31595L12.0698 4.83667L12.5906 4.31681C14.0443 2.9 16.0577 2.25516 18.0365 2.58452C21.0264 3.08269 23.2178 5.66984 23.2178 8.70309V8.95477C23.2178 10.7556 22.4714 12.4784 21.1522 13.7064L13.3109 21.027C12.9854 21.3308 12.5558 21.5 12.1089 21.5C11.6619 21.5 11.2323 21.3308 10.9069 21.027L3.06512 13.7064C1.74768 12.4784 1 10.7556 1 8.95477V8.70309C1 5.66984 3.19227 3.08269 6.18125 2.58452C8.12097 2.25516 10.1735 2.9 11.5882 4.31595C11.5882 4.31595 11.5491 4.31595 11.5882 4.31595ZM12.0698 7.78313L10.1171 5.75229C9.17544 4.84882 7.83891 4.42009 6.52407 4.6388C4.53879 4.96989 3.08292 6.6896 3.08292 8.70309V8.95477C3.08292 10.1785 3.59106 11.3501 4.48628 12.1833L12.1089 19.2999L19.7332 12.1833C20.6271 11.3501 21.1349 10.1785 21.1349 8.95477V8.70309C21.1349 6.6896 19.6768 4.96989 17.6937 4.6388C16.3789 4.42009 15.0423 4.84882 14.1007 5.75229L12.0698 7.78313Z"})})}},29177:()=>{var e,t;(e=window.rt).people||(e.people={}),(t=window.rt.people).views||(t.views={})}}]);

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.