PageSourceSearch

https://www.rovetravel.com/_next/static/chunks/pages/admin/reservations-search-3e8cb34004223918.js

js rovetravel.com collected 2026-10-06 19:21:27 UTC 21,844 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:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9fe420b9-1144-4cac-ab9d-d50e7860c983",e._sentryDebugIdIdentifier="sentry-dbid-9fe420b9-1144-4cac-ab9d-d50e7860c983")}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([[714],{31651:e=>{e.exports={wrapper:"styles_wrapper__QHCzG",form:"styles_form__2qG_c",formRow:"styles_formRow__kpvoT",formField:"styles_formField__nJ1Dm",formFieldNarrow:"styles_formFieldNarrow__Cb5Rk",formFieldCompact:"styles_formFieldCompact__TaE8d",formFieldMedium:"styles_formFieldMedium__C5jPR",formLabel:"styles_formLabel__X8ktX",stepper:"styles_stepper__KpC7x",stepperButton:"styles_stepperButton__vAmoX",stepperValue:"styles_stepperValue__BsXVy",formSubmit:"styles_formSubmit__t97Pd",error:"styles_error__9Va1j",funnel:"styles_funnel__84Eh_",funnelStat:"styles_funnelStat__sPWX4",funnelArrow:"styles_funnelArrow__pLhaM",funnelMeta:"styles_funnelMeta__79sja",notes:"styles_notes__wDnWG",map:"styles_map__6yOF7",mapLegend:"styles_mapLegend__Z28we",table:"styles_table__O0jvw",outcomeCell:"styles_outcomeCell__Xy7ti",dropReason:"styles_dropReason__qTlrq",listingLink:"styles_listingLink__ihUoN"}},35016:(e,t,a)=>{"use strict";a.d(t,{G:()=>m});var l=a(6029),s=a(55729),n=a(79220),o=a(39696),r=a(90476),i=a(95227),c=a(79022),d=a.n(c);let u=new Map([["copy_id","Copy ID"],["actions","Actions"]]),g={asc:"ascending",desc:"descending"};function m(e){var t;let{data:a,columns:c,searchPlaceholder:m="Search...",onSearch:h,searchValue:_,hideSearch:p=!1,isLoading:b,toolbarExtras:y,total:f,pageSize:x=50,pageIndex:j=0,onPageChange:v,onPageSizeChange:w,onSortChange:N,sortBy:C,sortOrder:k,defaultHiddenColumns:S=[],onRowClick:F}=e,[M,R]=(0,s.useState)([]),[z,L]=(0,s.useState)([]),[I,P]=(0,s.useState)(""),[q,D]=(0,s.use
1State)(S.reduce((e,t)=>({...e,[t]:!1}),{})),[A,B]=(0,s.useState)({}),T=!!v,V=T&&f?Math.ceil(f/x):0,E=!!N&&!!C,O=(0,s.useMemo)(()=>C?[{id:C,desc:"asc"!==k}]:[],[C,k]),W=(0,n.N4)({data:a,columns:c,state:{sorting:E?O:M,columnFilters:z,globalFilter:T?"":I,columnVisibility:q,columnSizing:A,...T&&{pagination:{pageIndex:j,pageSize:x}}},onSortingChange:e=>{let t="function"==typeof e?e(E?O:M):e;E||R(t),N&&t.length>0&&N(t[0].id,t[0].desc?"desc":"asc")},onColumnFiltersChange:L,onGlobalFilterChange:P,onColumnVisibilityChange:D,onColumnSizingChange:B,columnResizeMode:"onChange",enableColumnResizing:!0,getCoreRowModel:(0,o.HT)(),getSortedRowModel:T?void 0:(0,o.h5)(),getFilteredRowModel:T?void 0:(0,o.hM)(),getPaginationRowModel:T?void 0:(0,o.kW)(),manualPagination:T,manualSorting:T&&!!N,enableSortingRemoval:!(T&&N),pageCount:T?V:void 0}),$=T?j:W.getState().pagination.pageIndex,X=T?x:W.getState().pagination.pageSize,K=T?V:W.getPageCount(),G=T?f:W.getFilteredRowModel().rows.length;return(0,l.jsxs)("div",{className:d().container,children:[(!p||y)&&(0,l.jsx)("div",{className:d().toolbar,children:(0,l.jsxs)("div",{className:d().searchSection,children:[!p&&(0,l.jsx)("div",{className:d().searchContainer,children:(0,l.jsx)(r.A,{placeholder:m,"aria-label":m.replace(/\.+$/,""),value:null!=(t=null!=_?_:I)?t:"",onChange:e=>{h?h(e):P(e)},containerStyle:d().searchInput})}),y&&(0,l.jsx)("div",{className:d().toolbarExtras,children:y})]})}),(0,l.jsx)("div",{className:d().tableWrapper,children:b?(0,l.jsx)("div",{className:d().loading,children:"Loading..."}):0===a.length?(0,l.jsx)("div",{className:d().empty,children:"No data found"}):(0,l.jsxs)("table",{className:d().table,children:[(0,l.jsx)("thead",{children:W.getHeaderGroups().map(e=>(0,l.jsx)("tr",{children:e.headers.map(e=>{let t;return(0,l.jsxs)("th",{scope:"col","aria-sort":(t=e.column.getIsSorted())?g[t]:void 0,className:d().th,style:{width:e.getSize(),minWidth:e.getSize()},children:[(0,l.jsxs)("div",{className:d().thContent,onClick:e.column.getToggleSortingHandler(),children:[e.isPlaceholder?null:(0,n.Kv)(e.column.columnDef.header,e.getContext()),""===e.column.columnDef.header&&u.has(e.column.id)&&(0,l.jsx)("span",{className:"visually-hidden",children:u.get(e.column.id)}),e.column.getIsSorted()&&(0,l.jsx)("span",{className:d().sortIcon,children:"asc"===e.column.getIsSorted()?"▲":"▼"})]}),e.column.getCanResize()&&(0,l.jsx)("div",{onMouseDown:e.getResizeHandler(),onTouchStart:e.getResizeHandler(),className:"".concat(d().resizer," ").concat(e.column.getIsResizing()?d().isResizing:"")}
1)]},e.id)})},e.id))}),(0,l.jsx)("tbody",{children:W.getRowModel().rows.map(e=>(0,l.jsx)("tr",{className:"".concat(d().tr," ").concat(F?d().trClickable:""),onClick:()=>null==F?void 0:F(e.original),children:e.getVisibleCells().map(e=>(0,l.jsx)("td",{className:d().td,style:{width:e.column.getSize(),minWidth:e.column.getSize(),maxWidth:e.column.getSize()},children:(0,n.Kv)(e.column.columnDef.cell,e.getContext())},e.id))},e.id))})]})}),(0,l.jsxs)("div",{className:d().pagination,children:[(0,l.jsxs)("div",{className:d().pageInfo,children:["Showing ",$*X+1," to"," ",Math.min(($+1)*X,G||0)," ","of ",G||0," results"]}),(0,l.jsxs)("div",{className:d().pageControls,children:[(0,l.jsx)(i.A,{ariaLabel:"Rows per page",options:[{value:10,label:"10 per page"},{value:25,label:"25 per page"},{value:50,label:"50 per page"},{value:100,label:"100 per page"}],value:X,onChange:e=>{w?w(e):W.setPageSize(e)},containerStyle:d().pageSizeSelect}),(0,l.jsxs)("div",{className:d().pageButtons,children:[(0,l.jsx)("button",{type:"button","aria-label":"First page",className:d().pageButton,onClick:()=>{v?v(0):W.setPageIndex(0)},disabled:0===$,children:"\xab"}),(0,l.jsx)("button",{type:"button","aria-label":"Previous page",className:d().pageButton,onClick:()=>{v?v($-1):W.previousPage()},disabled:0===$,children:"‹"}),(0,l.jsxs)("span",{className:d().pageLabel,children:["Page ",$+1," of ",K||1]}),(0,l.jsx)("button",{type:"button","aria-label":"Next page",className:d().pageButton,onClick:()=>{v?v($+1):W.nextPage()},disabled:$>=K-1,children:"›"}),(0,l.jsx)("button",{type:"button","aria-label":"Last page",className:d().pageButton,onClick:()=>{v?v(K-1):W.setPageIndex(K-1)},disabled:$>=K-1,children:"\xbb"})]})]})]})]})}},35425:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>I});var l=a(6029),s=a(55729),n=a(52734),o=a(31651),r=a.n(o),i=a(21751),c=a(16932),d=a(24890),u=a(73830),g=a(90476),m=a(72726),h=a(16845);function _(e){let{label:t,value:a,onChange:s,min:n,max:o}=e;return(0,l.jsxs)("div",{className:r().formFieldCompact,children:[(0,l.jsx)("label",{className:r().formLabel,children:t}),(0,l.jsxs)("div",{className:r().stepper,children:[(0,l.jsx)("button",{type:"button",className:r().stepperButton,onClick:()=>s(Math.max(n,a-1)),disabled:a<=n,"aria-label":"Decrease ".concat(t),children:"−"}),(0,l.jsx)("span",{className:r().stepperValue,children:a}),(0,l.jsx)("button",{type:"button",className:r().stepperButton,onClick:()=>s(Math.min(o,a+1)),disabled:a>=o,"aria-label":"Increase ".concat(t),children:"+"})]})]})}function p(e){let{value:t,onChange:a,onSubmit:s,canSubmit:n,disabledReason:o,isLoading:i}=e,c=(e,l)=>a({...t,[e]:l});return(0,l.jsxs)("div",{className:r().form,children:[(0,l.jsxs)("div",{className:r().formRow,children:[(0,l.jsxs)("div",{className:r().formField,children:[(0,l.jsx)("label",{className:r().formLabel,htmlFor:"search-debug-locations",children:"Locations (comma-separated)"}),(0,l.jsx)(g.A,{id:"search-debug-locations",placeholder:"e.g. West Village, Williamsburg",value:t.locations,onChange:e=>c("locations",e)})]}),(0,l.jsxs)("div",{className:r().formField,children:[(0,l.jsx)("label",{className:r().formLabel,htmlFor:"search-debug-poi",children:"POI (geocoded)"}),(0,l.jsx)(g.A,{id:"search-debug-poi",placeholder:"e.g. Mount Sinai Hospital",value:t.poi,onChange:e=>c("poi",e)})]}),(0,l.jsxs)("div",{className:r().formField,children:[(0,l.jsx)("label",{className:r().formLabel,htmlFor:"search-debug-city",children:"City"}),(0,l.jsx)(g.A,{id:"search-debug-city",placeholder:"e.g. New York",value:t.city,onChange:e=>c("city",e)})]}),(0,l.jsxs)("div",{className:r().formFieldNarrow,children:[(0,l.jsx)("label",{className:r().formLabel,htmlFor:"search-debug-state",children:"State"}),(0,l.jsx)(g.A,{id:"search-debug-state",placeholder:"e.g. NY",value:t.state,onChange:e=>c("state",e)})]}),(0,l.jsxs)("div",{className:r().formField,children:[(0,l.jsx)("span",{className:r().formLabel,children:"Trip dates"}),(0,l.jsx)(m.A,{value:t.dates,startLabel:"Check-in",endLabel:"Check-out",onRangeSelect:e=>c("dates",e),onDatesClear:()=>c("dates",{from:null,to:null}),showFuzzyDates:!0,fuzzyDatesOffset:{from:t.dateFlexDays,to:t.dateFlexDays},onFuzzyDatesOffsetChange:e=>c("dateFlexDays",e.from!==t.dateFlexDays?e.from:e.to)})]})]}),(0,l.jsxs)("div",{className:r().formRow,children:[(0,l.jsxs)("div",{className:r().formFieldMedium,children:[(0,l.jsx)("label",{className:r().formLabel,htmlFor:"search-debug-budget",children:"Budget ($)"}),(0,l.jsx)(g.A,{id:"search-debug-budget",placeholder:"e.g. 40000 or 40k",value:t.budget,onChange:e=>c("budget",e)})]}),(0,l.jsxs)("div",{className:r().formFieldCompact,children:[(0,l.jsx)("span",{className:r().formLabel,children:"Budget period"}),(0,l.jsx)(h.A,{actions:[{id:"total",label:"Total"},{id:"monthly",label:"Monthly"},{id:"nightly",label:"Nightly"}],selectedId:t.budgetPeriod,onSelect:e=>c("budgetPeriod",e)})]}),(0,l.jsx)(_,{label:"Adults",value:t.adults,onChange:e=>c("adults",e),min:1,max:20}),(0,l.jsx)(_,{label:"Children",value:t.children,onChange:e=>c("children",e),min:0,max:20}),(0,l.jsx)(_,{label:"Pets",value:t.pets,onChange:e=>c("pets",e),min:0,max:5}),(0,l.jsx)("div",{className:r().formSubmit,children:(0,l.jsx)(u.A,{title:"Search",onClick:s,disabled:!n,loading:i,disabledTooltip:o})})]})]})}var b=a(44600);let y={url:"data:image/svg+xml;charset=UTF-8,".concat(encodeURIComponent('\n  <svg width="28" height="40" viewBox="0 0 28 40" xmlns="http://www.w3.org/2000/svg">\n    <path d="M14 0C6.268 0 0 6.268 0 14c0 9.5 14 26 14 26s14-16.5 14-26C28 6.268 21.732 0 14 0z" fill="#231F20"/>\n    <circle cx="14" cy="14" r="5" fill="#FFFFFF"/>\n  </svg>\n'.trim())),scaledSize:{width:28,height:40},anchor:{x:14,y:40}}
1,f={recommended:"#1E7A3C",ranked_below_cap:"#8A8A8A",dropped:"#C77700",not_fetched:"#C0392B"},x=e=>"number"==typeof e.lat&&Number.isFinite(e.lat)&&"number"==typeof e.lng&&Number.isFinite(e.lng);function j(e){let{poi:t,rows:a,selectedId:n,onMarkerClick:o}=e,i=(0,s.useMemo)(()=>a.filter(x),[a]),c=(0,s.useMemo)(()=>i.map(e=>{var t;return{id:e.listing_id,position:{lat:e.lat,lng:e.lng},icon:((e,t)=>{let a=t?8:6,l=2*a+4,s=l/2,n='<svg width="'.concat(l,'" height="').concat(l,'" viewBox="0 0 ').concat(l," ").concat(l,'" xmlns="http://www.w3.org/2000/svg"><circle cx="').concat(s,'" cy="').concat(s,'" r="').concat(a,'" fill="').concat(e,'" stroke="#FFFFFF" stroke-width="2"/></svg>');return{url:"data:image/svg+xml;charset=UTF-8,".concat(encodeURIComponent(n)),scaledSize:{width:l,height:l},anchor:{x:s,y:s}}})(f[e.outcome],e.listing_id===n),title:"".concat(null!=(t=e.title)?t:e.listing_id," — ").concat(e.outcome)}}),[i,n]),d=(0,s.useMemo)(()=>t?[{position:{lat:t.lat,lng:t.lng},title:t.label,icon:y,zIndex:9999}]:[],[t]),u=(0,s.useMemo)(()=>{let e=[...t?[t.lat]:[],...i.map(e=>e.lat)],a=[...t?[t.lng]:[],...i.map(e=>e.lng)];if(0===e.length)return;let l=Math.max(...e),s=Math.min(...e),n=Math.max(...a),o=Math.min(...a),r=Math.max((l-s)*.2,.004),c=Math.max((n-o)*.2,.004);return{north:l+r,south:s-r,east:n+c,west:o-c}},[t,i]);if(!t&&0===i.length)return null;let g=t?{lat:t.lat,lng:t.lng}:{lat:i[0].lat,lng:i[0].lng};return(0,l.jsxs)("div",{className:r().map,children:[(0,l.jsx)(b.A,{zoom:13,center:g,boundsLiteral:u,fitMaxZoom:15,customMarkers:c,markers:d,selectedMarkerId:n,onMarkerClick:e=>null==o?void 0:o(e),preserveViewportOnRerender:!0,mapContainerStyle:{height:380,borderRadius:12}}),(0,l.jsxs)("div",{className:r().mapLegend,children:[(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{style:{background:f.recommended}})," Recommended"]}),(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{style:{background:f.ranked_below_cap}})," Ranked out"]}),(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{style:{background:f.dropped}})," Dropped by filter"]}),(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{style:{background:f.not_fetched}})," Not fetched"]})]})]})}var v=a(2729),w=a(35016);let N={recommended:{label:"Recommended",variant:"success"},ranked_below_cap:{label:"Ranked out",variant:"neutral"},dropped:{label:"Dropped",variant:"warning"},not_fetched:{label:"Not fetched",variant:"danger"}},C=e=>null===e||0===e?"—":String(e);function k(e){let{rows:t,onRowSelect:a}=e,n=(0,s.useMemo)(()=>[{id:"outcome",header:"Outcome",accessorKey:"outcome",cell:e=>{let{row:t}=e,a=N[t.original.outcome];return(0,l.jsxs)("span",{className:r().outcomeCell,children:[(0,l.jsx)(v.A,{label:a.label,variant:a.variant}),t.original.drop_reason&&(0,l.jsx)("span",{className:r().dropReason,children:t.original.drop_reason.replaceAll("_"," ")})]})}},{id:"rank",header:"#",accessorKey:"rank",cell:e=>{var t;let{row:a}=e;return null!=(t=a.original.rank)?t:"—"}},{id:"title",header:"Listing",accessorKey:"title",cell:e=>{var t;let{row:a}=e;return(0,l.jsx)("a",{className:r().listingLink,href:"/admin/listings/".concat(a.original.listing_id),target:"_blank",rel:"noreferrer",onClick:e=>e.stopPropagation(),children:null!=(t=a.original.title)?t:a.original.listing_id})}},{id:"distance_km",header:"Distance",accessorKey:"distance_km",cell:e=>{var t;let{row:a}=e;return null===(t=a.original.distance_km)?"—":t<1?"".concat(Math.round(1e3*t)," m"):"".concat(t.toFixed(1)," km")}},{id:"price",header:"Price",accessorKey:"price",cell:e=>{let t,{row:a}=e;return null===(t=a.original.price)?"—":"$".concat(Math.round(t).toLocaleString())}},{id:"window",header:"Available window",cell:e=>{let{row:t}=e;return t.original.closest_start&&t.original.closest_end?"".concat(t.original.closest_start," → ").concat(t.original.closest_end):"—"}},{id:"beds",header:"Beds / sleeps",cell:e=>{var t,a;let{row:l}=e;return"".concat(null!=(t=l.original.beds)?t:"—"," / ").concat(null!=(a=l.original.accommodates)?a:"—")}},{id:"stay",header:"Min–max stay",cell:e=>{let{row:t}=e;return"".concat(C(t.original.min_stay),"–").concat(C(t.original.max_stay))}}],[]);return(0,l.jsx)("div",{className:r().table,children:(0,l.jsx)(w.G,{data:t,columns:n,searchPlaceholder:"Filter listings...",onRowClick:e=>null==a?void 0:a(e.listing_id)})})}let S={locations:"",poi:"",city:"",state:"",dates:{from:null,to:null},dateFlexDays:0,budget:"",budgetPeriod:"total",adults:2,children:0,pets:0},F=e=>{var t,a;return(null==(t=e.polygon_slugs)?void 0:t.length)?"polygon scope: ".concat(e.polygon_slugs.join(", ")):e.district?"district: ".concat(e.district):(null==(a=e.neighborhoods)?void 0:a.length)?"neighborhoods: ".concat(e.neighborhoods.join(", ")):e.market?"market: ".concat(e.market):e.city?"city: ".concat(e.city):null},M={no_meta:"no meta",seed_org:"seed org",too_few_beds:"too few beds",too_few_bedrooms:"too few bedrooms",has_excluded_amenity:"excluded amenity",stay_too_short:"stay too short",stay_too_long:"stay too long",over_budget:"over budget",out_of_band:"out of price band"},R=function(){var e,t,a;
1let[n,o]=(0,s.useState)(S),[u,g]=(0,s.useState)(),m=(0,c.n)({mutationFn:d.GwG}),h=[...new Set(n.locations.split(",").map(e=>e.trim()).filter(Boolean))],_=(e=>{let t=e.trim().toLowerCase().replace(/[$,\s]/g,"");if(!t)return NaN;let a=t.match(/^(\d+(?:\.\d+)?)k$/);return a?1e3*Number(a[1]):Number(t)})(n.budget),b=!n.budget.trim()||Number.isFinite(_)&&_>0&&_<=1e5,y=h.length<=5&&h.every(e=>e.length<=100),f=h.length>0||n.poi.trim().length>0||n.city.trim().length>0,x=n.dates.from&&n.dates.to&&f?b?y?"":"Up to ".concat(5," locations, ").concat(100," characters each"):"Budget must be between $1 and $".concat(1e5.toLocaleString()):"Dates plus a location, POI, or city are required",v=!!n.dates.from&&!!n.dates.to&&f&&b&&y,w=m.data,N=w?Object.entries(w.funnel.dropped).filter(e=>{let[,t]=e;return t>0}):[];return(0,l.jsxs)("div",{className:r().wrapper,children:[(0,l.jsx)(p,{value:n,onChange:o,onSubmit:()=>{if(!v||!n.dates.from||!n.dates.to)return;let e={check_in:(0,i.Q7)(n.dates.from),check_out:(0,i.Q7)(n.dates.to),...h.length?{locations:h}:{},...n.poi.trim()?{poi:n.poi.trim()}:{},...n.city.trim()?{city:n.city.trim()}:{},...n.state.trim()?{state:n.state.trim()}:{},...n.dateFlexDays>0?{date_flex_days:n.dateFlexDays}:{},...Number.isFinite(_)&&_>0?{budget:_,budget_period:n.budgetPeriod}:{},adults:n.adults,children:n.children,pets:n.pets};g(void 0),m.mutate(e)},canSubmit:v,disabledReason:x,isLoading:m.isPending}),m.isError&&(0,l.jsx)("div",{className:r().error,children:null!=(t=null==(e=m.error)?void 0:e.message)?t:"Search failed"}),w&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:r().funnel,children:[(0,l.jsxs)("span",{className:r().funnelStat,children:[(0,l.jsxs)("strong",{children:[w.funnel.reference_total,w.funnel.reference_truncated?"+":""]})," ","in area"]}),(0,l.jsx)("span",{className:r().funnelArrow,children:"→"}),(0,l.jsxs)("span",{className:r().funnelStat,children:[(0,l.jsx)("strong",{children:w.funnel.fetched})," fetched"]}),(0,l.jsx)("span",{className:r().funnelArrow,children:"→"}),(0,l.jsxs)("span",{className:r().funnelStat,children:[(0,l.jsx)("strong",{children:w.funnel.after_filters})," after filters"]}),(0,l.jsx)("span",{className:r().funnelArrow,children:"→"}),(0,l.jsxs)("span",{className:r().funnelStat,children:[(0,l.jsx)("strong",{children:w.funnel.recommended})," recommended"]}),(0,l.jsxs)("span",{className:r().funnelMeta,children:[w.query.sorted_by_distance?"fetch sorted by distance":null!=w.query.price_anchor?"fetch sorted by budget proximity":"fetch sorted by availability",null!=w.query.fetch_limit&&" \xb7 limit ".concat(w.query.fetch_limit),null!=w.query.radius_km&&" \xb7 radius ".concat(w.query.radius_km,"km"),null!=w.query.budget_ceiling&&" \xb7 budget ≤ $".concat(w.query.budget_ceiling.toLocaleString()).concat(w.query.budget_basis?" ".concat(w.query.budget_basis):""),null!=w.query.budget_raw&&w.query.budget_period&&"total"!==w.query.budget_period&&" (from $".concat(w.query.budget_raw.toLocaleString(),"/").concat("monthly"===w.query.budget_period?"mo":"night",")"),w.query.budget_assumed&&" \xb7 assumed monthly",null!=w.query.price_anchor&&null!=w.query.band_high&&" \xb7 anchor $".concat(w.query.price_anchor.toLocaleString(),", band $").concat((null!=(a=w.query.band_low)?a:0).toLocaleString(),"–$").concat(w.query.band_high.toLocaleString()),F(w.query)&&" \xb7 ".concat(F(w.query))]})]}),w.locations&&w.locations.length>0&&(0,l.jsx)("div",{className:r().notes,children:w.locations.map(e=>{var t,a,s;return(0,l.jsxs)("span",{children:[e.term," → ",(null==(t=e.polygon_slugs)?void 0:t.length)?"polygons: ".concat(e.polygon_slugs.join(", ")):e.district?"district: ".concat(e.district):(null==(a=e.neighborhoods)?void 0:a.length)?"neighborhoods: ".concat(e.neighborhoods.join(", ")):e.market?"market: ".concat(e.market):'⚠️ no area match — fell back to city term "'.concat(null!=(s=e.city)?s:e.term,'"')]},e.term)})}),(N.length>0||w.funnel.beds_fallback_used||w.query.pet_friendly_required)&&(0,l.jsxs)("div",{className:r().notes,children:[N.length>0&&(0,l.jsxs)("span",{children:["Dropped:"," ",N.map(e=>
1{let[t,a]=e;return"".concat(M[t]," \xd7").concat(a)}).join(", ")]}),w.funnel.beds_fallback_used&&(0,l.jsx)("span",{children:"Beds filter relaxed to avoid zero results."}),w.query.pet_friendly_required&&(0,l.jsx)("span",{children:"Pets in party: only confirmed pet-friendly listings were searched — listings with unknown pet policy are excluded entirely."})]}),(0,l.jsx)(j,{poi:w.poi,rows:w.rows,selectedId:u,onMarkerClick:g}),(0,l.jsx)(k,{rows:w.rows,onRowSelect:g})]})]})};var z=a(51566),L=a.n(z);let I=(0,n.ix)(()=>(0,l.jsxs)("div",{className:L().container,children:[(0,l.jsxs)("div",{className:L().header,children:[(0,l.jsx)("h1",{className:L().title,children:"Reservations Agent Search"}),(0,l.jsx)("p",{className:L().subtitle,children:"Run the reservations's listing search for locations (one or many, e.g. West Village, Williamsburg), a POI, dates, and party, and see why each listing was recommended, ranked out, dropped, or never fetched"})]}),(0,l.jsx)(R,{})]}))},75108:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/reservations-search",function(){return a(35425)}])},79022:e=>{e.exports={container:"styles_container__oSVMB",toolbar:"styles_toolbar___x5MV",searchSection:"styles_searchSection__sRFxM",searchContainer:"styles_searchContainer__OTj9r",toolbarExtras:"styles_toolbarExtras__Iu0NZ",searchInput:"styles_searchInput__cuX4B",tableWrapper:"styles_tableWrapper__rZyLb",table:"styles_table__JJreU",th:"styles_th__DYMCw",thContent:"styles_thContent__pfzI2",resizer:"styles_resizer__J9y_z",isResizing:"styles_isResizing__ULPbH",sortIcon:"styles_sortIcon__dsvJ_",td:"styles_td__lxICR",tr:"styles_tr__KzSZ_",trClickable:"styles_trClickable__6XuHz",pagination:"styles_pagination__ODpNV",pageInfo:"styles_pageInfo__ntQxB",pageControls:"styles_pageControls__T7a64",pageButtons:"styles_pageButtons__NM3P1",pageButton:"styles_pageButton__CcszB",pageLabel:"styles_pageLabel__leFnV",pageSizeSelect:"styles_pageSizeSelect__2_VX9",loading:"styles_loading__T8uyJ",empty:"styles_empty__rJAVZ"}}},e=>{e.O(0,[4862,1530,7035,6651,1464,7651,9220,8370,5076,543,6656,540,8232,9434,9302,1571,8188,8937,4600,636,6593,8792],()=>e(e.s=75108)),_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.