PageSourceSearch

https://us.zoie.ai/assets/AppointmentConfirmation-AixltNVV.js

js zoie.ai collected 2026-10-05 14:20:37 UTC 4,395 bytes, 1 lines download raw bytes

1import{e}from"./index-C3mDJt84.js";import{r as m,i as Y,S as v,k as b,X as h,T as l,e as R,C as j,c5 as A,c6 as T,f as F,B as f,ax as M,bu as P,l as g,bl as B}from"./vendor-antd-Dp-wSBmF.js";import{u as E,t as H}from"./timezone-d65MrB67.js";import{p as x}from"./timezoneUtils-BcVgYIkf.js";import{a as $}from"./vendor-network-vEC1ZpqK.js";import{u as U}from"./vendor-react-B8SZ4TuU.js";g.extend(B);g.extend(E);g.extend(H);function G(){var _,y;const{token:r}=U(),[C,p]=m.useState(!1),[n,w]=m.useState([]),[t,k]=m.useState([]);return m.useEffect(()=>{if(!r)return;(async()=>{var i,o;try{p(!0);const d={headers:{Authorization:`Bearer ${r}`}},[a]=await Promise.all([$.get(`https://api-us.zoie.ai/api/v1/auth/lead-access/${r}`,d)]),s=(i=a==null?void 0:a.data)==null?void 0:i.lead;if(w(s),k((o=a==null?void 0:a.data)==null?void 0:o.business),p(!1),s!=null&&s.id&&(s==null?void 0:s.appointment_status)!=="Confirmed"){const u={id:s.id,appointment_status:"Confirmed",lead_status:"Appointment"};await $.post(`https://api-us.zoie.ai/api/v1/auth/lead-access/${r}/appointment`,u).catch(()=>{})}}catch{p(!1)}})()},[r]),e.jsx(Y,{theme:{token:{colorPrimary:"#4E5BFF",fontFamily:"Inter, ui-sans-serif, system-ui",borderRadius:16},components:{Card:{boxShadow:"0 10px 40px rgba(17, 24, 39, 0.08)"},Button:{controlHeight:44,borderRadius:14}}},children:e.jsx("div",{style:{minHeight:"100vh",background:"#F7F7FF",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",textAlign:"center",padding:20},children:C?e.jsx(v,{}):e.jsxs(e.Fragment,{children:[e.jsx(b,{preview:!1,height:60,width:300,src:t==null?void 0:t.business_logo_url,style:{marginTop:"-15px"}}),e.jsxs(h,{bordered:!1,style:{borderRadius:24,width:500,maxWidth:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:32,boxShadow:"0 10px 40px rgba(17, 24, 39, 0.08)"},children:[e.jsx(b,{preview:!1,height:100,width:100,src:"https://teracrm.nyc3.cdn.digitaloceanspaces.com/Common/Checkbox.png",style:{marginBottom:16}}),e.jsxs(l.Title,{level:2,style:{marginBottom:24},children:["Your Appointment ",e.jsx("br",{})," Is Confirmed!"]}),e.jsxs(R,{gutter:[20,20],justify:"center",wrap:!0,style:{marginBottom:24},children:[e.jsx(j,{children:e.jsxs(h,{children:[e.jsx(A,{style:{color:"#3900DB",fontSize:14}}),e.jsx(l,{style:{fontSize:14},children:(_=x(n==null?void 0:n.appointment_date_time))==null?void 0:_.format("MMM DD, YYYY")})]})}),e.jsx(j,{children:e.jsxs(h,{children:[e.jsx(T,{style:{color:"#3900DB",fontSize:14}}),e.jsx(l,{style:{fontSize:14},children:(y=x(n==null?void 0:n.appointment_date_time))==null?void 0:y.format("h:mm A")})]})})]}),e.jsxs(F,{direction:"vertical",size:16,style:{width:"100%"},children:[e.jsx(f,{type:"primary",icon:e.jsx(M,{}),size:"large",onClick:()=>{const c=encodeURIComponent(`${n==null?void 0:n.service} with ${(t==null?void 0:t.business_name)||"Business"}`),i=encodeURIComponent(`Appointment confirmed at ${(t==null?void 0:t.business_name)||"Business"}. Please arrive 10 minutes early.`),o=t==null?void 0:t.address,d=o?`${o.business_address_street}, ${o.business_address_city}, ${o.business_address_state}, ${o.business_address_zip_code}, ${o.business_address_country}`:"",a=encodeURIComponent(d),s=x(n==null?void 0:n.appointment_date_time),u=Number(n==null?void 0:n.appointment_duration)||30,z=s!=null&&s.isValid()?s.utc().format("YYYYMMDDTHHmmss[Z]"):"",S=s!=null&&s.isValid()?s.add(u,"minute").utc().format("YYYYMMDDTHHmmss[Z]"):"",I=`https://calendar.google.com/calendar/render?action=TEMPLATE&text=${c}&dates=${z}/${S}&details=${i}&location=${a}`;window.open(I,"_blank")},block:!0,children:"Add to Calendar"}),e.jsx(f,{icon:e.jsx(P,{}),size:"large",onClick:()=>{if(t!=null&&t.address){const{business_address_street:c,business_address_city:i,business_address_state:o,business_address_zip_code:d,business_address_country:a}=t.address,s=`${c}, ${i}, ${o}, ${d}, ${a}`;window.open(`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(s)}`,"_blank")}else alert("Business address not available.")},block:!0,children:"Get Directions"})]}),e.jsxs(l.Text,{type:"secondary",style:{marginTop:18},children:["Need To Change Something?",e.jsx(f,{style:{color:"#3900DB",fontWeight:600},type:"link",onClick:()=>{window.open(`https://us.zoie.ai/appointment-rescheduleRequested/${r}`,"_blank")},children:"Reschedule"})]})]})]})})})}export{G as default};

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.