PageSourceSearch

https://www.upcar.ai/_next/static/chunks/91853-a4c6d5f73d79d77b.js

js upcar.ai collected 2026-10-05 15:27:36 UTC 10,396 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[91853],{31435:function(t,e,n){n.d(e,{d:function(){return d}});var r=n(7653),o=n(47982);let i=null,l=()=>(i||(i=window.matchMedia("(max-width: 767px)")),i),u=t=>{let e=l();return e.addEventListener("change",t),()=>e.removeEventListener("change",t)},c=()=>l().matches;function d(){let t=(0,o.ey)();return(0,r.useSyncExternalStore)(u,c,()=>t)}},5734:function(t,e,n){n.d(e,{Ni:function(){return f},sP:function(){return s}});var r=n(7653);let o="__upcarBodyScrollLockStateV1",i="data-scroll-locked";function l(){let t=globalThis,e=t[o];if(e)return e;let n={lockCount:0,saved:null,restoreScrollOnRelease:!0,lockPinnedToTop:!1};return Object.defineProperty(t,o,{configurable:!0,value:n,writable:!0}),n}function u(t,e,n,r){n?t.setProperty(e,n,r):t.removeProperty(e)}function c(){let t=document.body,e=document.documentElement;t.style.removeProperty("position"),t.style.removeProperty("top"),t.style.removeProperty("left"),t.style.removeProperty("right"),t.style.removeProperty("width"),t.style.removeProperty("overflow"),t.style.removeProperty("padding-right"),e.style.removeProperty("overflow"),t.removeAttribute(i)}function d(t){t.restoreScrollOnRelease=!0,t.lockPinnedToTop=!1}function a(){if("undefined"==typeof document)return!1;let t=l();return!(t.lockCount>0)&&null===t.saved&&!!document.body.hasAttribute(i)&&(c(),d(t),!0)}function s(t){(0,r.useEffect)(()=>{let t=()=>a();t();let e=window.requestAnimationFrame(t),n=window.setTimeout(t,250);return()=>{window.cancelAnimationFrame(e),window.clearTimeout(n)}},[t]),(0,r.useEffect)(()=>{let t=()=>a();return window.addEventListener("pageshow",t),()=>window.removeEventListener("pageshow",t)},[])}function f(t,e){let n=null==e?void 0:e.restoreScroll,o=null==e?void 0:e.pinToTop;(0,r.useEffect)(()=>{if(t)return function(t){if("undefined"==typeof document)return()=>{};let e=l(),n=(null==t?void 0:t.pinToTop)===!0,r=0===e.lockCount;r&&a(),e.lockCount+=1,r?(e.restoreScrollOnRelease=!n&&(null==t?void 0:t.restoreScroll)!==!1,function(t){let e=l(),n=document.body,r=document.documentElement;t&&window.scrollTo(0,0);let o=t?0:window.scrollY||window.pageYOffset||0,u=window.innerWidth-r.clientWidth;e.saved={bodyPosition:n.style.position,bodyPositionPriority:n.style.getPropertyPriority("position"),bodyTop:n.style.top,bodyTopPriority:n.style.getPropertyPriority("top"),bodyLeft:n.style.left,bodyLeftPriority:n.style.getPropertyPriority("left"),bodyRight:n.style.right,bodyRightPriority:n.style.getPropertyPriority("right"),bodyWidth:n.style.width,bodyWidthPriority:n.style.getPropertyPriority("width"),bodyOverflow:n.style.overflow,bodyOverflowPriority:n.style.getPropertyPriority("overflow"),bodyPaddingRight:n.style.paddingRight,bodyPaddingRightPriority:n.style.getPropertyPriority("padding-right"),htmlOverflow:r.style.overflow,htmlOverflowPriority:r.style.getPropertyPriority("overflow"),scrollY:o},n.style.position="fixed",n.style.top=t?"0px":"-".concat(o,"px"),n.style.left="0",n.style.right="0",n.style.width="100%",n.style.setProperty("overflow","hidden","important"),r.style.setProperty("overflow","hidden","important"),n.setAttribute(i,"1"),u>0&&(n.style.paddingRight="".concat(u,"px")),e.lockPinnedToTop=t}(n)):(n&&function(){let t=l();t.lockPinnedToTop||(window.scrollTo(0,0),document.body.style.top="0px",t.lockPinnedToTop=!0)}(),(n||(null==t?void 0:t.restoreScroll)===!1)&&(e.restoreScrollOnRelease=!1));let o=!1;return()=>{o||(o=!0,e.lockCount=Math.max(0,e.lockCount-1),0===e.lockCount&&function(){let t=l(),e=document.body,n=document.documentElement,r=t.saved;if(!r){0===t.lockCount&&e.hasAttribute(i)&&c(),d(t);return}t.saved=null,u(e.style,"position",r.bodyPosition,r.bodyPositionPriority),u(e.style,"top",r.bodyTop,r.bodyTopPriority),u(e.style,"left",r.bodyLeft,r.bodyLeftPriority),u(e.style,"right",r.bodyRight,r.bodyRightPriority),u(e.style,"width",r.bodyWidth,r.bodyWidthPriority),u(e.style,"padding-right",r.bodyPaddingRight,r.bodyPaddingRightPriority),u(e.style,"overflow",r.bodyOverflow,r.bodyOverflowPriority),u(n.style,"overflow",r.htmlOverflow,r.htmlOverflowPriority),e.removeAttribute(i),t.restoreScrollOnRelease&&window.scrollTo(0,r.scrollY),d(t)}())}}({restoreScroll:n,pinToTop:o})},[t,n,o])}},47982:function(t,e,n){n.d(e,{Ge:function(){return l},au:function(){return u},ey:function(){return c}});var r=n(7653);let o=(0,r.createContext)(!1),i=(0,r.createContext)(!1),l=o.Provider,u=i.Provider;function c(){return(0,r.useContext)(i)}},35662:function(t,e,n){n.d(e,{AL:function(){return a},D5:function(){return v},OZ:function(){return S},Ob:function(){return l},P9:function(){return h},Ph:function(){return g},Qu:function(){return k},T4:function(){return s},TT:function(){return d},UI:function(){return u},Vo:function(){return T},Wk:function(){return y},Yi:function(){return w},aF:function(){return P},cn:function(){return i},fT:function(){return N},gR:function(){return b},p6:function(){return m},rp:function(){return c},vS:function(){return D},xG:function(){return f},zd:function(){return p}});var r=n(57908),o=n(66290);function i(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return(0,o.m6)((0,r.W)(e))}let l=t=>{let e=new Date(t);return new Intl.DateTimeFormat("en-US",{weekday:"short",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}).format(e)},u=async()=>{let{default:t}=await n.e(36440).then(n.bind(n,36440)),e=await t.load();return(await e.get()).visitorId},c=t=>!t||!(t instanceof Date)||isNaN(t.getTime())?"MM/DD/YYYY":"".concat((t.getMonth()+1).toString().padStart(2,"0"),"/").concat(t.getDate().toString().padStart(2,"0"),"/").concat(t.getFullYear()),d=t=>!t||!(t instanceof Date)||isNaN(t.getTime())?"":t.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"}),a=function(t){let{locale:e="en-US",utc:n=!1,fallback:r=""}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)return r;let o="string"==typeof t&&/^\d{4}-\d{2}-\d{2}$/.test(t),i=new Date(!n&&o?"".concat(t,"T12:00:00"):t);return isNaN(i.getTime())?r:i.toLocaleDateString(e,{weekday:"short",month:"short",day:"numeric",...n&&{timeZone:"UTC"}})},s=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;
1return"$".concat(Number(t||0).toLocaleString("en-US",{minimumFractionDigits:e,maximumFractionDigits:e}))},f=(t,e)=>t||0===t?void 0===e?"$".concat(Number(t).toLocaleString("en-US")):s(t,e):"$0",y=t=>{if(!t)return"";let e=new Date(t);if(isNaN(e.getTime()))return"";let n={timeZone:"UTC"},r=e.toLocaleDateString("en-GB",{...n,weekday:"short"}),o=e.toLocaleDateString("en-GB",{...n,day:"2-digit"}),i=e.toLocaleDateString("en-GB",{...n,month:"short"});return"".concat(r,", ").concat(o,"-").concat(i)},m=t=>{if(!t||!(t instanceof Date))return null;let e=t.getTimezoneOffset();return new Date(t.getTime()-6e4*e).toISOString().split("T")[0]},p=t=>{if(!t)return"12:00 AM";let e=String(t).trim();if(/[ap]m$/i.test(e))return e.toUpperCase();let[n,r]=e.split(":").map(Number);if(Number.isNaN(n))return"12:00 AM";Number.isNaN(r)&&(r=0);let o=(n=(n%24+24)%24)>=12?"PM":"AM",i=n%12||12;return"".concat(i,":").concat(r.toString().padStart(2,"0")," ").concat(o)},g=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:30,e=[];for(let n=0;n<24;n++)for(let r=0;r<60;r+=t)e.push("".concat(n.toString().padStart(2,"0"),":").concat(r.toString().padStart(2,"0")));return e};function h(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())}function v(t){let e=t.trim();return e=e.replace(/^https?:?\/+:?/i,"https://"),/^https?:\/\//i.test(e)||(e="https://"+e),e}function w(t){let[e,n]=t.split("T"),[r]=n.split(/[-+]/),[o,i,l]=e.split("-").map(Number),[u,c,d]=r.split(":").map(Number);return new Date(o,i-1,l,u,c,d)}function b(t){let[e,n]=(t.endsWith("Z")?t.slice(0,-1):t).split("T"),r=n.split(/[-+]/)[0];r=r.replace(/\.\d+/,"");let[o,i,l]=e.split("-").map(Number),[u,c,d]=r.split(":").map(Number);return new Date(o,i-1,l,u,c,d||0)}function P(t,e){return t?t.length>e?"".concat(t.substring(0,e),"..."):t:""}function S(t){return t>=4.5?"Excellent":t>=4?"Very Good":t>=3.5?"Good":t>=3?"Average":"Poor"}function T(t,e){if(!t||!e||0===e.length)return!1;let n=t=>((null==t?void 0:t.message)||(null==t?void 0:t.msg)||"").trim(),r=n(t),o=Number((null==t?void 0:t.timestamp)||0);return e.some(e=>{if(e.id&&t.id&&e.id===t.id)return!0;let i=n(e)===r,l=(null==e?void 0:e.roomId)==null||(null==t?void 0:t.roomId)==null||String(e.roomId)===String(t.roomId),u=(null==e?void 0:e.senderId)!=null&&(null==t?void 0:t.senderId)!=null&&String(e.senderId)===String(t.senderId)&&(null==e?void 0:e.senderType)===(null==t?void 0:t.senderType),c=Math.abs(Number((null==e?void 0:e.timestamp)||0)-o),d=(null==e?void 0:e.isOptimistic)?c<=6e4:c<5e3;return i&&l&&u&&d})}function N(t,e,n){let r=Math.ceil(e/n),o=Math.floor(t/n),i=t%n;return{"rounded-tl-2xl":0===o&&0===i,"rounded-tr-2xl":0===o&&(i===n-1||t===e-1),"rounded-bl-2xl":o===r-1&&0===i,"rounded-br-2xl":t===e-1||(e%n||n)<n&&o===r-2&&i===n-1}}function k(t,e){let n="prod".trim().toLowerCase(),r="development"===n||"dev"===n||"local"===n||/localhost|127\.0\.0\.1|lvh\.me/i.test(e||""),o=r?"".concat(t||"username",".lvh.me:4000"):"".concat(t||"username",".").concat("latest"===n?"dev.private-rents.com":"private-rents.com");return"".concat(r?"http":"https","://").concat(o)}function D(t){return!!(t&&(t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||1===t.button))}},24286:function(t,e,n){n.d(e,{CH:function(){return c},IS:function(){return u},W9:function(){return o},az:function(){return r},fg:function(){return d},mb:function(){return l},p$:function(){return i}});let r="Only cars with no active loan can be listed";function o(t,e){let n=(t||"").trim();if(!n)return!0;let r=e||[];if(0===r.length)return!1;let o=n.toLowerCase();return!r.some(t=>String(t||"").trim().toLowerCase()===o)}function i(t){return"has_loan"===t}function l(t){return"no_loan"===t}function u(t,e){return t?null:e?"Camera not supported in this browser. Enter the VIN manually here.":"Scanning needs a secure (https) connection. Enter the VIN manually here."}function c(t){let e=new Set,n=new Set;for(let r of t||[]){let t=String((null==r?void 0:r.buyerId)||"");!t||e.has(t)||(e.add(t),n.add(String(null==r?void 0:r._id)))}return n}function d(t){let e=String(t||"").trim();return/^Host:/i.test(e)?{declinedByHost:!0,reason:e.replace(/^Host:\s*/i,"").trim()}:{declinedByHost:!1,reason:""}}}}]);

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.