PageSourceSearch

https://www.upcar.ai/_next/static/chunks/88271-b9c3c1d608d3219a.js

js upcar.ai collected 2026-10-05 15:26:09 UTC 13,743 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[88271],{72937:function(e,t,o){o.d(t,{Z:function(){return u}});var l=o(27573),i=o(7653),s=o(38951),r=o(7384),a=o(67754),n=o(5734),c=o(89825);let d=async(e,t)=>{try{let o=await c.ZP.post("/admin/tasks",e,{authToken:t});return{ok:!0,data:o.data}}catch(e){if(e.response)return{ok:!1,data:e.response.data};throw e}};var u=e=>{var t;let{isOpen:o,onClose:c,initialTitle:u="",initialDescription:m=""}=e,[p,y]=(0,i.useState)({name:"",email:"",title:u,description:m,priority:"high"}),[x,h]=(0,i.useState)(!1),[b,f]=(0,i.useState)(null),[g,v]=(0,i.useState)(!1),w=(0,a.useSearchParams)(),j=(null===(t=w.get("isAppView"))||void 0===t?void 0:t.toLocaleLowerCase())==="yes",P=(0,r.v9)(e=>e.user.token)||w.get("token"),k=(0,r.v9)(e=>e.user.user);(0,n.Ni)(o);let N=async e=>{e.preventDefault(),f(null),v(!0);try{let{ok:e,data:t}=await d({...p,status:"pending",assignedTo:"support_team",metadata:{createdBy:null==k?void 0:k.userId,source:"support_page"}},P);if(!e)throw Error(t.message||"Failed to create ticket");h(!0);let o=[];p.title&&o.push("Ticket: ".concat(p.title)),p.description&&o.push(p.description);let l=o.join("\n\n");{let e=encodeURIComponent(l),t="/upcar-ai?initialMessage=".concat(e).concat(j&&P?"&isAppView=yes&token="+P:""),o=e.length>1500,i=window.open(o?"/upcar-ai":t,"_blank");o&&i&&setTimeout(()=>{try{i.postMessage({type:"UPPY_INIT_MESSAGE",payload:{message:l}},window.location.origin)}catch(e){}},400)}}catch(e){console.error("Error submitting ticket:",e),f(e.message||"Failed to create ticket. Please try again.")}finally{v(!1)}},C=()=>{h(!1),f(null),y({name:k?k.firstName+" "+k.lastName:"",email:k?k.email:"",title:u,description:m,priority:"high"}),c()};return(i.useEffect(()=>{y(e=>({...e,...k?{name:k.firstName+" "+k.lastName,email:k.email}:{},title:u||e.title,description:m||e.description}))},[k,u,m]),o)?(0,l.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",children:(0,l.jsxs)("div",{className:"bg-white rounded-lg p-6 w-full max-w-md min-h-[300px] max-h-[50vh] lg:max-h-[90vh] flex flex-col mx-4",children:[(0,l.jsxs)("div",{className:"flex justify-between items-center mb-4 sticky top-0 bg-white",children:[(0,l.jsx)("h2",{className:"text-xl font-semibold",children:"Create Service Ticket"}),(0,l.jsx)("button",{onClick:C,className:"text-gray-500 hover:text-gray-700",children:(0,l.jsx)(s.q5L,{size:24})})]}),(0,l.jsx)("div",{className:"flex-1 overflow-y-auto px-1 scrollbar-none",children:x?(0,l.jsxs)("div",{className:"text-center py-8",children:[(0,l.jsx)("div",{className:"flex justify-center mb-4",children:(0,l.jsx)("div",{className:"bg-blue-100 p-3 rounded-full",children:(0,l.jsx)(s.UgA,{className:"text-blue-500",size:32})})}),(0,l.jsx)("h3",{className:"text-xl font-semibold text-gray-800 mb-2",children:"Service Ticket Created Successfully!"}),(0,l.jsx)("p",{className:"text-gray-600 mb-6",children:"Our team will review your ticket and get back to you shortly."}),(0,l.jsx)("button",{onClick:C,className:"px-6 py-2 bg-[#027BFF] text-white rounded-lg hover:bg-[#0066cc] transition-colors",children:"Close"})]}):(0,l.jsxs)("form",{onSubmit:N,className:"space-y-4 pb-16 md:pb-8",onKeyDown:e=>{"Enter"===e.key&&e.target instanceof HTMLElement&&"textarea"!==e.target.tagName.toLowerCase()&&N(e)},children:[b&&(0,l.jsx)("div",{className:"bg-red-50 border border-red-200 text-red-600 px-4 py-3 rounded-lg",children:b}),!k&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Name"}),(0,l.jsx)("input",{type:"text",value:p.name,onChange:e=>y(t=>({...t,name:e.target.value})),className:"w-full border rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-[#027BFF] text-base",required:!0})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Email"}),(0,l.jsx)("input",{type:"email",value:p.email,onChange:e=>y(t=>({...t,email:e.target.value})),className:"w-full border rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-[#027BFF] text-base",required:!0})]})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Title"}),(0,l.jsx)("input",{type:"text",value:p.title,onChange:e=>y(t=>({...t,title:e.target.value})),className:"w-full border rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-[#027BFF] text-base",required:!0})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Description"}),(0,l.jsx)("textarea",{value:p.description,onChange:e=>y(t=>({...t,description:e.target.value})),className:"w-full border rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-[#027BFF] h-32 text-base",required:!0})]})]})}),!x&&(0,l.jsxs)("div",{className:"flex justify-end space-x-2 sticky bottom-0 bg-white",children:[(0,l.jsx)("button",{type:"button",onClick:C,className:"px-4 py-2 text-gray-700 bg-gray-100 rounded-lg hover:bg-gray-200 text-base",disabled:g,children:"Cancel"}),(0,l.jsx)("button",{className:"px-4 py-2 text-white bg-[#027BFF] rounded-lg hover:bg-[#0066cc] disabled:opacity-50 disabled:cursor-not-allowed text-base",onClick:N,disabled:g,children:g?"Submitting...":"Submit"})]})]})}):null}},88271:function(e,t,o){var l=o(27573),i=o(7653),s=o(86164),r=o(72937),a=o(71540),n=o(87659),c=o(67754),d=o(7384);t.default=()=>{var e;let[t,o]=(0,i.useState)(!1),u=(0,c.useSearchParams)(),m=(null===(e=u.get("isAppView"))||void 0===e?void 0:e.toLocaleLowerCase())==="yes",p=u.get("token")||"",y=(0,d.v9)(e=>e.user.login),x=m&&p?"?isAppView=yes&token=".concat(p):"";return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a.Z,{title:"Contact Us",desc:"Whether you have questions or need assistance!"}),(0,l.jsxs)("div",{className:"max-w-[1200px] mx-auto p-6",children:[(0,l.jsxs)("div",{className:"flex justify-between items-center mb-4 md:flex-row flex-col space-y-1",children:[(0,l.jsx)("h1",{className:"text-4xl text-black font-bold",children:"Contact Methods"}),(0,l.jsx)("span",{className:"text-black bg-gray-200 px-3 py-1 rounded-2xl"})]}),(0,l.jsxs)("div",{className:"space-y-6",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h2",{className:"text-xl text-black font-bold mb-2",children:"1. Messaging"}),(0,l.jsxs)("ul",{className:"text-black space-y-1",children:[(0,l.jsx)("li",{className:"list-disc ml-5",children:"For prompt assistance, please send a message to our customer service below."}),(0,l.jsx)("li",{className:"list-disc ml-5",children:(0,l.jsx)(n.default,{href:m&&p?"/upcar-ai".concat(x):y?"/upcar-ai".concat(x):"/login-static?nextPage=/upcar-ai".concat(x?"".concat(x,"&closeUrl=/"):"?closeUrl=/"),className:"inline-block bg-[#027BFF] hover:bg-[#0066cc] text-white font-bold py-2 px-4 roun
1ded-lg",children:"Chat with us"})}),(0,l.jsx)("li",{className:"list-disc ml-5",children:"24/7 Support"})]})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("h2",{className:"text-xl text-black font-bold mb-2",children:"2. Phone Support"}),(0,l.jsxs)("ul",{className:"list-disc list-inside text-black space-y-1",children:[(0,l.jsx)("li",{className:"list-disc ml-5",children:"Speak directly with a customer service representative. Our team is ready to assist you with bookings, cancellations, or any other inquiries."}),(0,l.jsxs)("li",{className:"cursor-pointer list-disc ml-5",children:["Phone:"," ",(0,l.jsx)("a",{href:"tel:7077064302","aria-label":"Call Upcar customer support at 707-706-4302",className:"text-black hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-black",children:"707-706-4302"})]}),(0,l.jsx)("li",{className:"list-disc ml-5",children:"Hours: Monday to Friday, 10 AM - 5 PM (Local Time)"})]})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("h2",{className:"text-xl font-bold text-black mb-2",children:"3. Email Support"}),(0,l.jsx)("ul",{className:"list-disc list-inside text-black space-y-1 ml-3 space-x-5",children:(0,l.jsxs)("li",{className:"list-disc ml-5",children:["Prefer to send an email? Contact us at"," ",(0,l.jsx)("a",{href:"mailto:[email protected]","aria-label":"Email Upcar customer support at [email protected]",className:"text-black hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-black",children:"[email protected]"})," ","or create a service ticket, and we will get back to you within 24 hours."]})})]})]}),(0,l.jsx)("div",{className:"mt-8 mb-8 text-center",children:(0,l.jsxs)("button",{className:"bg-[#027BFF] hover:bg-[#0066cc] text-white font-bold py-3 px-6 rounded-lg text-lg transition-colors duration-200 flex items-center justify-center mx-auto",onClick:()=>{o(!0)},children:[(0,l.jsx)(s.Z,{className:"mr-2"}),"Create Service Ticket"]})}),(0,l.jsxs)("div",{className:"mt-6",children:[(0,l.jsx)("h2",{className:"text-xl font-bold mb-2 text-black",children:"Upcar Support Availability"}),(0,l.jsx)("p",{className:"text-black",children:"Our customer service team is committed to providing you with prompt and helpful support. If you reach out outside of regular business hours, we will respond to your inquiry as soon as possible during the next business day."})]})]}),(0,l.jsx)(r.Z,{isOpen:t,onClose:()=>{o(!1)}})]})}},71540:function(e,t,o){var l=o(27573);t.Z=e=>{let{title:t,desc:o}=e;return(0,l.jsxs)("section",{className:"relative flex flex-col gap-4 md:gap-8 py-24 !px-6 md:!px-6",children:[(0,l.jsx)("div",{className:"absolute top-0 left-0 w-full h-full bg-[linear-gradient(180deg,#E6F2FF_16.28%,#FFFFFF_100%)] bg-transparent -z-10"}),(0,l.jsx)("h3",{className:"text-2xl md:text-4xl lg:text-[40px] font-bold text-center title-color",children:t}),(0,l.jsx)("p",{className:"max-w-[1200px] mx-auto text-base sm:text-lg md:text-xl lg:text-2xl text-center title-color",children:o})]})}},5734:function(e,t,o){o.d(t,{Ni:function(){return m},sP:function(){return u}});var l=o(7653);let i="__upcarBodyScrollLockStateV1",s="data-scroll-locked";function r(){let e=globalThis,t=e[i];if(t)return t;let o={lockCount:0,saved:null,restoreScrollOnRelease:!0,lockPinnedToTop:!1};return Object.defineProperty(e,i,{configurable:!0,value:o,writable:!0}),o}function a(e,t,o,l){o?e.setProperty(t,o,l):e.removeProperty(t)}function n(){let e=document.body,t=document.documentElement;e.style.removeProperty("position"),e.style.removeProperty("top"),e.style.removeProperty("left"),e.style.removeProperty("right"),e.style.removeProperty("width"),e.style.removeProperty("overflow"),e.style.removeProperty("padding-right"),t.style.removeProperty("overflow"),e.removeAttribute(s)}function c(e){e.restoreScrollOnRelease=!0,e.lockPinnedToTop=!1}function d(){if("undefined"==typeof document)return!1;let e=r();return!(e.lockCount>0)&&null===e.saved&&!!document.body.hasAttribute(s)&&(n(),c(e),!0)}function u(e){(0,l.useEffect)(()=>{let e=()=>d();e();let t=window.requestAnimationFrame(e),o=window.setTimeout(e,250);return()=>{window.cancelAnimationFrame(t),window.clearTimeout(o)}},[e]),(0,l.useEffect)(()=>{let e=()=>d();return window.addEventListener("pageshow",e),()=>window.removeEventListener("pageshow",e)},[])}function m(e,t){let o=null==t?void 0:t.restoreScroll,i=null==t?void 0:t.pinToTop;(0,l.useEffect)(()=>
1{if(e)return function(e){if("undefined"==typeof document)return()=>{};let t=r(),o=(null==e?void 0:e.pinToTop)===!0,l=0===t.lockCount;l&&d(),t.lockCount+=1,l?(t.restoreScrollOnRelease=!o&&(null==e?void 0:e.restoreScroll)!==!1,function(e){let t=r(),o=document.body,l=document.documentElement;e&&window.scrollTo(0,0);let i=e?0:window.scrollY||window.pageYOffset||0,a=window.innerWidth-l.clientWidth;t.saved={bodyPosition:o.style.position,bodyPositionPriority:o.style.getPropertyPriority("position"),bodyTop:o.style.top,bodyTopPriority:o.style.getPropertyPriority("top"),bodyLeft:o.style.left,bodyLeftPriority:o.style.getPropertyPriority("left"),bodyRight:o.style.right,bodyRightPriority:o.style.getPropertyPriority("right"),bodyWidth:o.style.width,bodyWidthPriority:o.style.getPropertyPriority("width"),bodyOverflow:o.style.overflow,bodyOverflowPriority:o.style.getPropertyPriority("overflow"),bodyPaddingRight:o.style.paddingRight,bodyPaddingRightPriority:o.style.getPropertyPriority("padding-right"),htmlOverflow:l.style.overflow,htmlOverflowPriority:l.style.getPropertyPriority("overflow"),scrollY:i},o.style.position="fixed",o.style.top=e?"0px":"-".concat(i,"px"),o.style.left="0",o.style.right="0",o.style.width="100%",o.style.setProperty("overflow","hidden","important"),l.style.setProperty("overflow","hidden","important"),o.setAttribute(s,"1"),a>0&&(o.style.paddingRight="".concat(a,"px")),t.lockPinnedToTop=e}(o)):(o&&function(){let e=r();e.lockPinnedToTop||(window.scrollTo(0,0),document.body.style.top="0px",e.lockPinnedToTop=!0)}(),(o||(null==e?void 0:e.restoreScroll)===!1)&&(t.restoreScrollOnRelease=!1));let i=!1;return()=>{i||(i=!0,t.lockCount=Math.max(0,t.lockCount-1),0===t.lockCount&&function(){let e=r(),t=document.body,o=document.documentElement,l=e.saved;if(!l){0===e.lockCount&&t.hasAttribute(s)&&n(),c(e);return}e.saved=null,a(t.style,"position",l.bodyPosition,l.bodyPositionPriority),a(t.style,"top",l.bodyTop,l.bodyTopPriority),a(t.style,"left",l.bodyLeft,l.bodyLeftPriority),a(t.style,"right",l.bodyRight,l.bodyRightPriority),a(t.style,"width",l.bodyWidth,l.bodyWidthPriority),a(t.style,"padding-right",l.bodyPaddingRight,l.bodyPaddingRightPriority),a(t.style,"overflow",l.bodyOverflow,l.bodyOverflowPriority),a(o.style,"overflow",l.htmlOverflow,l.htmlOverflowPriority),t.removeAttribute(s),e.restoreScrollOnRelease&&window.scrollTo(0,l.scrollY),c(e)}())}}({restoreScroll:o,pinToTop:i})},[e,o,i])}}}]);

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.