1import{a7 as m,a8 as e,aw as te,aR as p,az as me}from"./main-D7pIRdNI.js";import{a as O,d as b,u as ie,S as T,w as ue,T as X,M as he,c as oe,t as le,B as _e}from"./timezone-B1_DdeIj.js";import{M as ne,S as ae}from"./root-store-CfZ3FaRz.js";import{F as se}from"./file-category.enum-Ddw5bNPu.js";import{i as pe}from"./index-CvFgMXwg.js";const xe="/assets/NotfoundErrorV2-D3BFTUhs.svg",ge="_Card_5y153_1",ye="_container1_5y153_16",fe="_profilemain_5y153_24",ve="_profile1_5y153_34",je="_picture_5y153_68",be="_roundedpicture_5y153_74",Ne="_frontcreditsection_5y153_86",we="_profilecontent_5y153_95",Se="_profilewritting_5y153_103",ke="_userinfo_5y153_110",Ae="_profilelogoBox_5y153_119",Ie="_companylogo_5y153_128",Me="_imageContainer_5y153_135",Ce="_heroImage_5y153_150",Te="_text1_5y153_163",Be="_roundImage_5y153_167",De="_text2_5y153_195",Ge="_duration_5y153_204",Ee="_durationtext_5y153_214",Le="_separator_5y153_224",Fe="_containerSetTimemain_5y153_232",$e="_containerSetTime_5y153_232",qe="_container2_5y153_275",Ye="_info_5y153_282",ze="_data_5y153_291",Oe="_heading_5y153_298",Pe="_subheading_5y153_308",Re="_editText_5y153_318",Ue="_hrline_5y153_335",We="_inputGroup_5y153_344",Ze="_formdata_5y153_358",He="_inputRow_5y153_366",Ve="_addGuestsSection_5y153_417",Ke="_addGuestInput_5y153_423",Je="_addGuestInputEmail_5y153_454",Qe="_addBtn_5y153_466",Xe="_addGuestsLabel_5y153_485",et="_guestList_5y153_496",tt="_guestItem_5y153_505",at="_removeBtn_5y153_522",st="_footer_5y153_536",nt="_buttonGroup_5y153_544",it="_guestText_5y153_550",rt="_localText_5y153_557",ot="_domainText_5y153_564",lt="_backBtn_5y153_569",ct="_bookBtn_5y153_586",dt="_guestCount_5y153_611",mt="_mcreditsection_5y153_621",ut="_credittext_5y153_625",a={Card:ge,container1:ye,profilemain:fe,profile1:ve,picture:je,roundedpicture:be,frontcreditsection:Ne,profilecontent:we,profilewritting:Se,userinfo:ke,profilelogoBox:Ae,companylogo:Ie,imageContainer:Me,heroImage:Ce,text1:Te,roundImage:Be,text2:De,duration:Ge,durationtext:Ee,separator:Le,containerSetTimemain:Fe,containerSetTime:$e,container2:qe,info:Ye,data:ze,heading:Oe,subheading:Pe,editText:Re,hrline:Ue,inputGroup:We,formdata:Ze,inputRow:He,addGuestsSection:Ve,addGuestInput:Ke,addGuestInputEmail:Je,addBtn:Qe,addGuestsLabel:Xe,guestList:et,guestItem:tt,removeBtn:at,footer:st,buttonGroup:nt,guestText:it,localText:rt,domainText:ot,backBtn:lt,bookBtn:ct,guestCount:dt,mcreditsection:mt,credittext:ut},ht="_calendarContainer_qmk9v_1",_t="_headerText_qmk9v_14",pt="_calendarHeader_qmk9v_24",xt="_navButtons_qmk9v_42",gt="_weekdays_qmk9v_54",yt="_weekday_qmk9v_54",ft="_daysGrid_qmk9v_77",vt="_day_qmk9v_77",jt="_empty_qmk9v_94",bt="_timezoneDropdown_qmk9v_120",Nt="_customArrow_qmk9v_159",wt="_available_qmk9v_169",St="_unavailable_qmk9v_175",kt="_userSelected_qmk9v_182",At="_disabledArrow_qmk9v_187",It="_activeArrow_qmk9v_192",Mt="_noDates_qmk9v_197",Ct="_calendarLoader_qmk9v_209",Tt="_spinner_qmk9v_216",Bt="_timezoneDropdownContainer_qmk9v_234",Dt="_timezoneTrigger_qmk9v_241",Gt="_timezoneOption_qmk9v_283",Et="_selected_qmk9v_306",Lt="_noAvailabilityContainer_qmk9v_351",Ft="_noAvailTitle_qmk9v_356",$t="_noAvailDesc_qmk9v_363",o={calendarContainer:ht,headerText:_t,calendarHeader:pt,navButtons:xt,weekdays:gt,weekday:yt,daysGrid:ft,day:vt,empty:jt,timezoneDropdown:bt,customArrow:Nt,available:wt,unavailable:St,userSelected:kt,disabledArrow:At,activeArrow:It,noDates:Mt,calendarLoader:Ct,spinner:Tt,timezoneDropdownContainer:Bt,timezoneTrigger:Dt,timezoneOption:Gt,selected:Et,noAvailabilityContainer:Lt,noAvailTitle:Ft,noAvailDesc:$t},qt=({selectedDate:s,setSelectedDate:v,selectedTimezone:g,setSelectedTimezone:k,isTablet:L,setShowTimeSelection:A})=>{var J;const i=O(n=>n.businessprofilestore.result??null),h=b(),[l,I]=m.useState(s??h),N=ie(),Z=O(n=>n.meetingstore.availability.availability??null),[ee,D]=m.useState(!1),[P,G]=m.useState(!1),F=m.useRef(!1),w=m.useRef(!!s),$=O(n=>n.meetingstore.availability),q=!$.hasAvailability||!$.availability||Object.keys($.availability).length===0,R=(n,c)=>Object.entries(n).filter(([x,u])=>{if(x==="timeZone")return!1;const y=b(x);return y.month()===c.month()&&y.year()===c.year()&&Array.isArray(u)&&u.length>0&&(y.isSame(h,"day")||y.isAfter(h,"day"))}).map(([x])=>b(x).date()),E=Z?Object.entries(Z).filter(([n,c])=>{if(n==="timeZone")return!1;const x=b(n);return x.month()===l.month()&&x.year()===l.year()&&Array.isArray(c)&&c.length>0}).map(([n])=>b(n).date()):[],C=m.useCallback((n,c,x)=>{!c||c==="default"||i!=null&&i.userId&&(D(!0),N(ne.availabilityTime({userId:i.userId,timezone:c,month_no:n.month()+1,year:n.year()})).unwrap().then(u=>{var _;let y={};if(u&&typeof u=="object"&&((_=u.result)!=null&&_.availability&&typeof u.result.availability=="object"||u.result.availability&&u.result.availability,y=u.result.availability),x&&!w.current){const t=R(y,n);if(t.length===0){const d=n.add(1,"month"),r=h.add(1,"month");d.isSame(r,"month")||d.isBefore(r,"month")?I(d):w.current=!0}else if(w.current=!0,!(s&&s.month()===n.month()&&s.year()===n.year()&&t.includes(s.date()))){const r=Math.min(...t);v(n.set("date",r))}}else if(!x){const t=R(y,n);if(!(s&&s.month()===n.month()&&s.year()===n.year()&&t.includes(s.date())))if(t.length>0){const r=Math.min(...t);v(n.set("date",r))}else v(null);F.current=!1}}).catch(u=>{console.error("API fetch error:",u),w.current=!0,F.current=!1}).finally(()=>{D(!1)}))},[N,i==null?void 0:i.userId]);m.useEffect(()=>{if(!(i!=null&&i.userId)||!g||g==="default")return;const n=!w.current;C(l,g,n)},[i==null?void 0:i.userId,l,g,C]);const Y=n=>{const c=l.add(n,"month"),x=h.add(1,"month");c.isBefore(h,"month")||c.isAfter(x,"month")||(F.current=!0,I(c),v(null))},H=n=>{const c=l.set("date",n);E.includes(n)&&(c.isSame(h,"day")||c.isAfter(h,"day"))&&(v(c),L&&A(!0))},U=()=>{const c=l.endOf("month").date(),x=l.startOf("month").day(),u=[],y=E.filter(_=>{const t=l.set("date",_);return(t.isSame(h,"day")||t.isAfter(h,"day"))&&t.month()===l.month()});for(let _=0;_<x;_++)u.push(e.jsx("div",{className:o.empty},`empty-${_}`));for(let _=1;_<=c;_++){const t=l.set("date",_),d=E.includes(_)&&(t.isSame(h,"day")||t.isAfter(h,"day")),r=s&&s.date()===_&&s.month()===l.month();u.push(e.jsx("div",{className:`${o.day} ${d?o.available:o.unavailable} ${r?o.userSelected:""}`,onClick:()=>d&&H(_),children:_},_))}return y.length===0&&u.push(e.jsxs("div",{className:o.noDates,children:["No available dates in ",l.format("MMMM")]},"no-dates")),u},V=l.isSame(h,"month"),K=l.isSame(h.add(1,"month"),"month");return q?e.jsxs("div",{className:o.noAvailabilityContainer,children:[e.jsx("p",{className:o.noAvailTitle,children:"No Availability Configured"}),e.jsxs("p",{className:o.noAvailDesc,children:["Looks like ",i==null?void 0:i.firstName," has not set up their available dates
1yet. Please check back later or contact them directly."]})]}):e.jsxs("div",{className:o.calendarContainer,style:{marginRight:"40px",fontFamily:"Manrope"},children:[e.jsx("div",{className:o.header,children:e.jsx("span",{className:o.headerText,children:"Select preferred date"})}),ee?e.jsx("div",{className:o.calendarLoader,children:e.jsx("div",{className:o.spinner})}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:o.calendarHeader,children:[e.jsx("h3",{style:{fontFamily:"Manrope"},children:l.format("MMMM YYYY")}),e.jsxs("div",{className:o.navButtons,children:[e.jsx("button",{onClick:()=>Y(-1),disabled:V,children:e.jsx(T.Arrow_Back,{height:"24px",width:"24px",className:V?o.disabledArrow:o.activeArrow})}),e.jsx("button",{onClick:()=>Y(1),disabled:K,children:e.jsx(T.Arrow_Forward,{height:"24px",width:"24px",className:K?o.disabledArrow:o.activeArrow})})]})]}),e.jsx("div",{className:o.weekdays,children:ue.map((n,c)=>e.jsx("div",{className:o.weekday,style:{fontFamily:"Manrope"},children:n.charAt(0)},c))}),e.jsx("div",{className:o.daysGrid,children:U()})]}),e.jsxs("div",{className:o.timezoneDropdownContainer,children:[e.jsxs("button",{className:o.timezoneTrigger,onClick:()=>G(!P),children:[g==="default"?"Select time zone":((J=Object.entries(X).find(([n,c])=>c===g))==null?void 0:J[0])||g,e.jsx(T.Arrow_Up,{className:o.customArrow})]}),P&&e.jsxs("div",{className:o.timezoneDropdown,children:[e.jsx("div",{className:`${o.timezoneOption} ${g==="default"?o.selected:""}`,onClick:()=>{k("default"),G(!1)},style:{fontFamily:"Manrope"},children:"Select time zone"}),Object.entries(X).map(([n,c])=>e.jsx("div",{className:`${o.timezoneOption} ${g===c?o.selected:""}`,onClick:()=>{k(c),G(!1)},style:{fontFamily:"Manrope"},children:n},c))]})]})]})};b.extend(oe);b.extend(le);b.extend(oe);b.extend(le);const Yt=()=>{const s=O(t=>t.businessprofilestore.result??null);console.log(s);const v=ie();function g(t){try{return Intl.DateTimeFormat(void 0,{timeZone:t}).resolvedOptions().timeZone}catch{return t}}const k=()=>{try{const t=Intl.DateTimeFormat().resolvedOptions().timeZone,d=g(t),r=Object.entries(X).find(([f,j])=>{try{return g(j)===d}catch{return!1}});if(r)return r[1]}catch(t){console.error("Error detecting system timezone:",t)}return X["(UTC+01:00) Central European Time (CET)"]},[L,A]=m.useState(1),[i,h]=m.useState(null),[l,I]=m.useState(null),[N,Z]=m.useState(k());function ee(t,d,r){if(!t||!d)return null;const j=d.trim().toLowerCase().replace(/\s/g,"").match(/^(\d{1,2})(?::(\d{2}))?(am|pm)?$/);if(!j)return null;let[,Q,z,W]=j,B=parseInt(Q,10),ce=parseInt(z||"0",10);W==="pm"&&B<12&&(B+=12),W==="am"&&B===12&&(B=0);const de=`${t.format("YYYY-MM-DD")} ${String(B).padStart(2,"0")}:${String(ce).padStart(2,"0")}`;return b.tz(de,"YYYY-MM-DD HH:mm",r)}const[D,P]=m.useState(""),[G,F]=m.useState(""),[w,$]=m.useState(""),[q,R]=m.useState(""),[M,E]=m.useState([]),[C,Y]=m.useState(""),H=O(t=>t.meetingstore.availability.availability),U=i?i.format("YYYY-MM-DD"):null,V=U&&Array.isArray(H[U])?H[U]:[],[K,J]=m.useState(window.innerWidth<680);m.useEffect(()=>{const t=()=>{J(window.innerWidth<680)};return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]);const n=t=>{const d=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;if(!t)return"Email is required";if(t.length>320)return"Email is too long (max 320 characters)";if(t.includes(";"))return"Email cannot contain semicolons (;)";const[r,f]=t.split("@");return f?r.length>64?"Local part (before @) is too long (max 64 characters)":f.length>255?"Domain part (after @) is too long (max 255 characters)":d.test(t)?!0:"Invalid email format":"Invalid email format (missing domain)"},c=t=>/^\+?\d{10,15}$/.test(t),x=()=>{if(!C){p.error("Guest email cannot be empty");return}const t=n(C);if(t!==!0){p.error(t);return}if(M.length>=10){p.error("Maximum of 10 guests allowed");return}if(C===w){p.error("Guest email cannot match your email");return}if(M.includes(C)){p.error("Guest email already added");return}E([...M,C]),Y("")},u=t=>{if(t.preventDefault(),!D.trim()){p.error("First name is required");return}if(!G.trim()){p.error("Last name is required");return}const d=n(w);if(d!==!0){p.error(d);return}if(!q){p.error("Phone number is required");return}if(!c(q)){p.error("Invalid phone number (10-15 digits with optional + prefix)");return}if(!i||!l){p.error("Please select a date and time");return}const r=ee(i,l,N);if(r){if(console.log(r),r.isBefore(b())){p.error("Selected time must be in the future");return}if(M.some(j=>!n(j))){p.error("One or more guest emails are invalid");return}const f=p.loading("Creating meeting...");v(ne.create({body:{attendees:[{email:w,phone:q,name:`${D} ${G}`},...M.map(j=>({email:j}))],meetingStart:r.toISOString(),topic:`Meeting with ${D}`,description:"Booked via Configure Link",timeZone:N,platform:he.BOTSWORKPLATFORM},id:(s==null?void 0:s.userId)??""})).finally(()=>{v(ne.availabilityTime({userId:(s==null?void 0:s.userId)||"",timezone:N,month_no:i.month()+1,year:i.year()})),p.dismiss(f)})}else console.log("Invalid Date or Time");P(""),F(""),$(""),R(""),E([]),Y(""),h(null),I(null),A(1)},y=t=>{const d=M.filter((r,f)=>f!==t);E(d)},_=()=>e.jsxs("div",{className:a.containerSetTimemain,children:[e.jsx("hr",{className:a.separator}),e.jsx("div",{className:a.containerSetTime,children:e.jsxs("div",{className:"set-time-container",children:[e.jsx("text",{style:{fontFamily:"Manrope"},children:"Select"}),e.jsx("span",{style:{fontFamily:"Manrope"},children:"Your preferred time"}),e.jsx("div",{className:"time-list-container",children:e.jsx("div",{className:"time-list",children:V.map(t=>e.jsx("div",{className:`time-slot ${l===t?"selected":""}`,onClick:()=>I(t),style:{fontFamily:"Manrope"},children:t},t))})}),l?e.jsx("button",{className:"next-btn",style:{fontFamily:"Manrope"},onClick:()=>
1{if(!l){p.error("Please select a time before proceeding.");return}if(i){const t=b(`${i.year}-${String(i.month).padStart(2,"0")}-${String(i.day).padStart(2,"0")} ${l}`,"YYYY-MM-DD hh:mm A"),d=b();if(t.isBefore(d)){p.error("Selected time has already passed. Please choose a future time.");return}A(2)}else{p.error("Please select a date before proceeding.");return}},children:"Next"}):e.jsx("button",{style:{fontFamily:"Manrope"},className:a.backBtn,children:"Back"})]})})]});return e.jsx(e.Fragment,{children:e.jsxs("section",{className:a.Card,children:[L===1&&e.jsxs("div",{className:a.container1,children:[e.jsxs("div",{className:a.profilemain,children:[e.jsxs("div",{className:a.profile1,children:[e.jsxs("div",{className:a.profilecontent,children:[e.jsx("div",{className:a.profilelogoBox,children:s!=null&&s.organisationLogo?e.jsx("img",{src:te.API_URL+ae.FILESTREAM+"?fileCategory="+se.IMAGE+"&fileName="+s.organisationLogo,alt:s==null?void 0:s.organisation,className:a.companylogo}):e.jsx("span",{children:(s==null?void 0:s.organisation)||"Organization"})}),e.jsxs("div",{className:a.profilewritting,children:[e.jsx("div",{className:a.picture,children:e.jsx("div",{className:a.roundedpicture,children:e.jsx("img",{src:s!=null&&s.profilePicture?`${te.API_URL+ae.FILESTREAM}?fileCategory=${se.IMAGE}&fileName=${s.profilePicture}`:"/images/DummyUser.png",alt:"Hero Image",className:a.roundImage,onError:t=>{t.currentTarget.src="/images/DummyUser.png"}})})}),e.jsxs("div",{className:a.userinfo,children:[e.jsx("div",{className:a.text1,children:e.jsx("text",{style:{fontFamily:"Manrope"},children:"Meet with"})}),e.jsx("div",{className:a.text2,children:e.jsx("text",{style:{fontFamily:"Manrope"},children:s!=null&&s.firstName?`${s.firstName} ${s.lastName}`:"Unknown"})}),e.jsxs("div",{className:a.duration,children:[e.jsx(T.Duration,{height:"30px",width:"30px",className:a.durationsvg}),e.jsx("text",{className:a.durationtext,style:{fontFamily:"Manrope"},children:"30min"})]})]})]}),e.jsxs("div",{className:a.frontcreditsection,children:[e.jsx("text",{className:a.credittext,style:{fontFamily:"Manrope"},children:"Powered By "}),e.jsx(T.LogoFebUpdate,{height:"37px",width:"132px"})]})]}),e.jsx("div",{className:a.imageContainer,children:e.jsx("img",{src:pe.tile_image,alt:"Hero Image",className:a.heroImage})})]}),e.jsx("hr",{className:a.separator})]}),e.jsx(qt,{selectedDate:i,setSelectedDate:h,selectedTimezone:N,setSelectedTimezone:Z,isTablet:!1,setShowTimeSelection:()=>{}}),_(),e.jsxs("div",{className:a.mcreditsection,children:[e.jsx("text",{className:a.credittext,children:"Powered By "}),e.jsx(T.LogoFebUpdate,{height:"25.001379013061523px",width:"165.09136962890625px"})]})]}),L===2&&e.jsxs("div",{className:a.container2,children:[e.jsxs("div",{className:a.info,children:[e.jsxs("div",{className:a.data,children:[e.jsx("p",{className:a.heading,style:{fontFamily:"Manrope"},children:"Your Information"}),e.jsx("p",{className:a.subheading,style:{fontFamily:"Manrope"},children:i&&l?e.jsxs(e.Fragment,{children:[i.isValid()?i.format("dddd, DD MMM YYYY"):"Invalid Date"," ",(()=>{var W,B;const t=i,d=l.trim(),[r,f]=d.split(":"),j=(f==null?void 0:f.replace(/[^0-9]/g,""))||"0",Q=(B=(W=d.match(/am|pm/i))==null?void 0:W[0])==null?void 0:B.toUpperCase();let z;return Q?z=t.hour(Q==="PM"&&r!=="12"?+r+12:+r).minute(+j).second(0):z=t.hour(+r).minute(+j).second(0),z.isValid()?z.format("h:mm A"):"Invalid Time"})(),e.jsx("span",{style:{fontFamily:"Manrope"},className:a.editText,onClick:()=>{A(1),h(i)},children:"Edit"})]}):""})]}),e.jsx("div",{className:a.profilelogoBox,style:{marginTop:"0px"},children:s!=null&&s.organisationLogo?e.jsx("img",{src:te.API_URL+ae.FILESTREAM+"?fileCategory="+se.IMAGE+"&fileName="+(s==null?void 0:s.organisationLogo),alt:s==null?void 0:s.organisation,className:a.companylogo}):e.jsx("span",{style:{textAlign:"center",display:"flex",justifyItems:"center",alignItems:"center"},children:(s==null?void 0:s.organisation)||"Organization"})})]}),e.jsx("hr",{className:a.hrline}),e.jsxs("div",{className:a.formdata,children:[e.jsxs("div",{className:a.inputRow,children:[e.jsxs("div",{className:a.inputGroup,children:[e.jsx("label",{children:"First Name"}),e.jsx("input",{placeholder:"First Name",type:"text",value:D,onChange:t=>P(t.target.value)})]}),e.jsxs("div",{className:a.inputGroup,children:[e.jsx("label",{children:"Last Name"}),e.jsx("input",{placeholder:"Last Name",type:"text",value:G,onChange:t=>F(t.target.value)})]})]}),e.jsxs("div",{className:a.inputGroup,children:[e.jsx("label",{children:"Your email address"}),e.jsx("input",{placeholder:" Enter Your Email",type:"email",value:w,onChange:t=>$(t.target.value)})]}),e.jsxs("div",{className:a.inputGroup,children:[e.jsx("label",{children:"Mobile Phone number"}),e.jsx("input",{placeholder:"Enter Your Phone Number",type:"tel",value:q,onChange:t=>R(t.target.value)})]}),e.jsxs("div",{className:a.addGuestsSection,children:[e.jsx("label",{className:a.addGuestsLabel,children:"Add guests"}),e.jsx("label",{className:a.guestsInfo,children:"Invite up to 10 guests to attend the meeting."}),e.jsxs("div",{className:a.addGuestInput,children:[e.jsxs("div",{className:a.addGuestInputEmail,children:[e.jsx("input",{type:"email",placeholder:"Add email",value:C,onChange:t=>Y(t.target.value)}),e.jsxs("label",{className:a.guestCount,children:[M.length,"/10 Guest"]})]}),e.jsx("button",{className:a.addBtn,onClick:x,children:"Add"})]}),e.jsx("div",{className:a.guestList,children:M.map((t,d)=>{const[r,f]=t.split("@"),j=r.length>30?`${K?r.substring(0,23):r.substring(0,8)}...`:r;return e.jsxs("div",{className:a.guestItem,children:[e.jsxs("span",{className:a.guestText,title:t,style:{paddingBottom:"0px"},children:[e.jsx("span",{className:a.localText,children:j}),e.jsxs("span",{className:a.domainText,children:["@",f]})]}),e.jsx("button",{className:a.removeBtn,onClick:()=>y(d),children:e.jsx(T.Close,{height:"13.15px",width:"13.15px"})})]},d)})})]}),e.jsxs("div",{className:a.footer,children:[e.jsxs("div",{className:a.creditsection,children:[e.jsx("text",{className:a.credittext,children:"Powered By "}),e.jsx(T.LogoFebUpdate,{height:"37px",width:"132px"})]}),e.jsxs("div",{className:a.buttonGroup,children:[e.jsx("button",{className:a.backBtn,onClick:()=>{A(1)},children:"Back"}),e.jsx("button",{className:a.bookBtn,onClick:t=>u(t),children:"Book now"})]})]})]})]})]})})},zt="_pageWrapper_3j7o6_1",Ot="_topsection_3j7o6_12",Pt="_logo_3j7o6_20",Rt="_cardWrapper_3j7o6_25",Ut="_errorCard_3j7o6_32",Wt="_robotImage_3j7o6_46",Zt="_textSection_3j7o6_52",Ht="_messageTitle_3j7o6_59",Vt="_countdown_3j7o6_67",Kt="_homeButton_3j7o6_73",S={pageWrapper:zt,topsection:Ot,logo:Pt,cardWrapper:Rt,errorCard:Ut,robotImage:Wt,textSection:Zt,messageTitle:Ht,countdown:Vt,homeButton:Kt},Jt=({message:s="Uh-oh, it seems youâve been redirected to a non existing page.",countdown:v})=>e.jsxs("main",{className:S.pageWrapper,children:[e.jsx("div",{className:S.topsection,children:e.jsx(T.LogoFebUpdate,{className:S.logo})}),e.jsx("div",{className:S.cardWrapper,children:e.jsxs("div",{className:S.errorCard,children:[e.jsx("img",{fetchPriority:"high",decoding:"async",src:xe,alt:"Not Found",className:S.robotImage}),e.jsxs("div",{className:S.textSection,children:[e.jsx("span",{className:S.messageTitle,children:s}),v!==void 0&&e.jsxs("span",{className:S.countdown,children:["Redirecting to homepage in ",e.jsx("b",{children:v})," seconds..."]}),e.jsx("button",{className:S.homeButton,onClick:()=>window.location.href="https://botswork.app",children:"Go to Homepage"})]})]})})]}),Qt="_wrapper_hyuov_1",re={wrapper:Qt};function na({isErrorRoute:s}){const v=O(I=>I.businessprofilestore.result??null),g=ie(),{username:k}=me(),[L,A]=m.useState(!1),[i,h]=m.useState(10);m.useEffect(()=>{k?g(_e.getbyId(k)).finally(()=>{A(!0)}):A(!0)},[g,k]);const l=s||k===""||L&&v===null;return m.useEffect(()=>{if(l){const I=setInterval(()=>{h(N=>(N<=1&&(window.location.href="https://botswork.site"),N-1))},1e3);return()=>clearInterval(I)}}
1,[l]),l?e.jsx("main",{className:re.wrapper,role:"main",children:e.jsx(Jt,{message:"This meeting link is invalid or incomplete.",countdown:i})}):e.jsx("main",{className:re.wrapper,role:"main",children:e.jsx(Yt,{})})}export{na as default}; 2//# sourceMappingURL=index-CTcwkVBu.js.map
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.