PageSourceSearch

https://www.rovetravel.com/_next/static/chunks/pages/admin/property-requests/[id]-740b1cd2c9d6dbc1.js

js rovetravel.com collected 2026-10-06 19:21:15 UTC 6,971 bytes, 1 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="285cf285-5fd2-45bd-8906-6a0212c69511",e._sentryDebugIdIdentifier="sentry-dbid-285cf285-5fd2-45bd-8906-6a0212c69511")}catch(e){}{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=Object.assign({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:rove-web":!0})}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6172],{17520:(e,a,t)=>{"use strict";t.d(a,{w:()=>c});var s=t(6029),l=t(55729),r=t(82203),n=t.n(r),d=t(81278),i=t(79510),o=t(72040),u=t.n(o);let c=e=>{let{breadcrumbs:a,onBack:t,hideBackButton:r=!1,title:o,badges:c,actions:p,meta:b}=e,_=(0,d.useRouter)();(0,l.useEffect)(()=>{o&&(0,i.fF)(_.asPath,o)},[o,_.asPath]);let h=!!(o||c||p);return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:u().header,children:[(0,s.jsx)("nav",{className:u().breadcrumbs,"aria-label":"Breadcrumb",children:(0,s.jsx)("ol",{className:u().breadcrumbList,children:a.map((e,t)=>{let l=t===a.length-1;return(0,s.jsxs)("li",{className:u().breadcrumbItem,children:[t>0&&(0,s.jsx)("span",{className:u().separator,"aria-hidden":"true",children:"/"}),l||!e.href?(0,s.jsx)("span",{className:u().breadcrumbCurrent,"aria-current":l?"page":void 0,children:e.label}):(0,s.jsx)(n(),{href:e.href,className:u().breadcrumbLink,children:e.label})]},t)})})}),!r&&(0,s.jsx)("button",{type:"button",onClick:()=>{t?t():_.back()},className:u().backButton,"aria-label":"Go back",children:"← Back"})]}),h&&(0,s.jsxs)("div",{className:u().titleStrip,children:[(0,s.jsxs)("div",{className:u().titleGroup,children:[o&&(0,s.jsx)("h1",{className:u().title,children:o}),c&&(0,s.jsx)("div",{className:u().badgeGroup,children:c})]}),p&&(0,s.jsx)("div",{className:u().titleActions,children:p})]}),b&&(0,s.jsx)("div",{className:u().meta,children:b})]})}},42897:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/property-requests/[id]",function(){return t(74240)}])},63502:e=>{e.exports={property:"detail_property__fpfkc",propertyMedia:"detail_propertyMedia__ixJbH",propertyInfo:"detail_propertyInfo__ITQiF",notes:"detail_notes__HzInf"}},72040:e=>{e.exports={header:"styles_header__nbJwd",breadcrumbs:"styles_breadcrumbs__i2t89",breadcrumbList:"styles_breadcrumbList__abRPN",breadcrumbItem:"styles_breadcrumbItem__u4vIQ",separator:"styles_separator__iHrl0",breadcrumbLink:"styles_breadcrumbLink__U6mZO",breadcrumbCurrent:"styles_breadcrumbCurrent__pZLlw",titleStrip:"styles_titleStrip__zOoB_",titleGroup:"styles_titleGroup__7j8_I",title:"styles_title__U_qNz",badgeGroup:"styles_badgeGroup__B55no",titleActions:"styles_titleActions__lG9j5",meta:"styles_meta__iYqJl",backButton:"styles_backButton__CmXrz"}},74240:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>N});var s=t(6029);t(55729);var l=t(81278),r=t(24890),n=t(73871),d=t(23224),i=t(46203),o=t(17520),u=t(79491),c=t(8353),p=t(82311),b=t(51674),_=t(52734),h=t(20638),m=t(81329),y=t(2729),v=t(73830),f=t(63502),x=t.n(f),j=t(51566),g=t.n(j);let N=(0,_.ix)(()=>{var e,a,t;let{id:_}=(0,l.useRouter)().query,{data:f,isLoading:j}=(0,h.i9)("string"==typeof _?_:null),N=(0,h.w2)();if(j)return(0,s.jsx)("div",{className:g().container,children:(0,s.jsx)("p",{className:g().noData,children:"Loading..."})});if(!f)return(0,s.jsx)("div",{className:g().container,children:(0,s.jsx)("p",{className:g().noData,children:"Property request not found"})});let w=f.requester,k=[null==w?void 0:w.first_name,null==w?void 0:w.last_name].filter(Boolean).join(" ")||(null==w?void 0:w.email)||"Unknown host",I=!!f.resolved_at,A=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.A,{title:"Host",children:(0,s.jsx)(c.A,{items:[{label:"Name",value:k},{label:"Email",value:(null==w?void 0:w.email)||"-"},{label:"Phone",value:(null==w?void 0:w.phone_number)||"-"},{label:"Organization",value:f.organization?(0,s.jsx)(n.u,{href:"/admin/organizations/".concat(f.organization.id),type:"internal",children:f.organization.name}):"-"}]})}),(0,s.jsx)(d.A,{title:"Request",children:(0,s.jsx)(c.A,{items:[{label:"Request ID",value:(0,s.jsx)(u.v,{id:f.id})},{label:"Requested",value:(0,b.CK)(f.created_at)},{label:"Handled",value:(0,b.CK)(f.resolved_at),hidden:!f.resolved_at},{label:"Handled by",value:[null==(e=f.resolved_by)?void 0:e.first_name,null==(a=f.resolved_by)?void 0:a.last_name].filter(
1Boolean).join(" ")||(null==(t=f.resolved_by)?void 0:t.email)||"-",hidden:!f.resolved_by}]})})]});return(0,s.jsxs)("div",{className:g().container,children:[(0,s.jsx)(o.w,{breadcrumbs:[{label:"Admin",href:"/admin"},{label:"Property Requests",href:"/admin/property-requests"},{label:k}],title:k,badges:(0,s.jsx)(y.A,{hideIndicator:!0,label:I?"Handled":"Open",variant:I?"success":"warning"}),meta:(0,s.jsx)(u.v,{id:f.id,label:"Request ID"}),actions:(0,s.jsx)(v.A,{title:I?"Reopen":"Mark handled",variant:I?"secondary":"primary",loading:N.isPending,disabled:N.isPending,onClick:()=>{N.mutate({id:f.id,resolved:!I},{onSuccess:()=>m.default.success(I?"Request reopened":"Marked as handled"),onError:()=>m.default.error("Failed to update the request",{description:"Please try again."})})}})}),(0,s.jsxs)(i.A,{rail:A,children:[(0,s.jsx)(d.A,{title:"Property",actions:f.photos.length>0?(0,s.jsx)(p.O,{photoCount:f.photos.length,downloadPhoto:e=>(0,r.ToF)(f.id,e)}):void 0,children:(0,s.jsxs)("div",{className:x().property,children:[f.photos.length>0&&(0,s.jsx)("div",{className:x().propertyMedia,children:(0,s.jsx)(p.s,{photos:f.photos})}),(0,s.jsx)("div",{className:x().propertyInfo,children:(0,s.jsx)(c.A,{items:[{label:"Airbnb listing",value:f.property_url?(0,s.jsx)(n.u,{href:f.property_url,type:"external",children:"Open listing"}):"-",hidden:!f.property_url},{label:"Address",value:f.property_address||"-",hidden:!f.property_address},{label:"Unit",value:f.unit||"-",hidden:!f.unit},{label:"Used as",value:f.property_usage?(0,b.yF)(f.property_usage):"-",hidden:!f.property_usage},{label:"Type",value:f.property_type?(0,b.yF)(f.property_type):"-",hidden:!f.property_type},{label:"Space",value:(e=>e&&[null!=e.max_guests&&"".concat(e.max_guests," guests"),null!=e.bedrooms&&"".concat(e.bedrooms," bedrooms"),null!=e.beds&&"".concat(e.beds," beds"),null!=e.bathrooms&&"".concat(e.bathrooms," bathrooms")].filter(Boolean).join(" \xb7 ")||"-")(f.space_details),hidden:!f.space_details},{label:"Photos",value:"".concat(f.photos.length),hidden:0===f.photos.length}]})})]})}),f.notes&&(0,s.jsx)(d.A,{title:"What they told us",children:(0,s.jsx)("p",{className:x().notes,children:f.notes})})]})]})})}},e=>{e.O(0,[1530,7035,6651,1464,7651,5076,543,6656,540,8232,9434,9302,1571,8188,8937,8486,636,6593,8792],()=>e(e.s=42897)),_N_E=e.O()}]);

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.