1"use strict";(self.webpackChunkconferbot_client=self.webpackChunkconferbot_client||[]).push([[26673],{9636:(e,t,n)=>{n.d(t,{Z:()=>l});var i=n(47313),o=n(12840),a=n(47092),r=n(46417);const s=/^https:\/\/[a-z0-9-]+\.conferbot\.com$/,l=()=>{const[e,t]=(0,i.useState)("ready"),[n,l]=(0,i.useState)(""),c=new URLSearchParams(window.location.search).get("origin")||"",p=s.test(c)||!1;(0,i.useEffect)((()=>{p||(l("Invalid origin. This page can only be opened from a Conferbot subdomain."),t("error"))}),[p]);return(0,r.jsx)("div",{style:{minHeight:"100vh",background:"#0a0a0a",display:"flex",alignItems:"center",justifyContent:"center",padding:"20px"},children:(0,r.jsxs)("div",{style:{textAlign:"center",maxWidth:"400px"},children:[(0,r.jsx)("img",{src:a,alt:"Conferbot",style:{width:"180px",margin:"0 auto 32px",display:"block",filter:"brightness(2)"}}),(0,r.jsxs)("div",{style:{background:"#111",border:"1px solid #222",borderRadius:"16px",padding:"32px"},children:["ready"===e&&p&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{style:{color:"#94a3b8",fontSize:"14px",marginBottom:"24px"},children:"Sign in with your Google account"}),(0,r.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0,r.jsx)(o.kZ,{onSuccess:e=>{try{const{credential:n}=e;if(window.opener)window.opener.postMessage({type:"google-auth-proxy",credential:n},c),t("success"),setTimeout((()=>window.close()),500);else{const e=encodeURIComponent(JSON.stringify({credential:n}));window.location.href=`${c}/login?google_proxy=${e}`}}catch(n){l("Failed to process Google response"),t("error")}},onError:()=>{l("Google sign-in failed"),t("error")}})}),(0,r.jsx)("p",{style:{color:"#475569",fontSize:"11px",marginTop:"16px"},children:"You'll be redirected back to your workspace after signing in."})]}),"success"===e&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{style:{fontSize:"48px",marginBottom:"16px"},children:"\u2705"}),(0,r.jsx)("p",{style:{color:"#94a3b8"},children:"Success! Redirecting..."})]}),"error"===e&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{style:{fontSize:"48px",marginBottom:"16px"},children:"\u274c"}),(0,r.jsx)("p",{style:{color:"#ef4444",marginBottom:"16px"},children:n}),(0,r.jsx)("button",{onClick:()=>window.close(),style:{color:"#94a3b8",background:"none",border:"none",cursor:"pointer",fontSize:"12px"},children:"Close this window"})]})]})]})})}},37718:(e,t,n)=>{n.d(t,{Z:()=>d,c:()=>p});var i=n(47313),o=n(72652),a=n(28303),r=n(52917),s=n(32453),l=n(28901),c=n(46417);const p=e=>{var t,n,o,a,r;let{branding:s,displayName:l,mediaItems:p,slideDurationMs:d,fill:x=!1}=e;const g=d||6e3,h=s.primaryColor||"#0010F7",m=s.secondaryColor||h,u=s.bgFit||"cover",f=s.bgPosition||"center center",b=(s.loginCardPosition||"50,50").split(",").map(Number),y=b[0]||50,j=b[1]||50,[v,w]=(0,i.useState)(0),S=(0,i.useRef)(null),k=(0,i.useRef)({}),C=p.length>0?p.map((e=>({url:e.mediaUrl,type:e.mediaType||"image",adUrl:e.adUrl||"",adLabel:e.adLabel||""}))):s.loginBgImage?[{url:s.loginBgImage,type:"image",adUrl:null!==(t=s.loginAd)&&void 0!==t&&t.enabled&&(null===(n=s.loginAd)||void 0===n?void 0:n.url)||"",adLabel:(null===(o=s.loginAd)||void 0===o?void 0:o.label)||"Sponsored"}]:[],z=(0,i.useCallback)((()=>{w((e=>(e+1)%C.length))}),[C.length]);(0,i.useEffect)((()=>{C.forEach(((e,t)=>{const n=k.current[t];n&&"video"===e.type&&(t===v?(n.currentTime=0,n.play().catch((()=>{}))):n.pause())}))}),[v,C]),(0,i.useEffect)((()=>{if(C.length<=1)return;const e=C[v];if("video"!==(null===e||void 0===e?void 0:e.type))return S.current=setTimeout((()=>z()),g),()=>clearTimeout(S.current);clearInterval(S.current)}),[C.length,v,z]);const T=(null===(a=C[v])||void 0===a?void 0:a.adUrl)||"",I=(null===(r=C[v])||void 0===r?void 0:r.adLabel)||"Sponsored",N=(0,i.useCallback)((e=>null!==e&&void 0!==e&&e.url&&"video"!==e.type?"original"===u?{backgroundImage:`url(${e.url})`,backgroundSize:"auto",backgroundPosition:f,backgroundRepeat:"no-repeat",backgroundColor:"#0b0134"}:"fill"===u?{backgroundImage:`url(${e.url})`,backgroundSize:"100% 100%",backgroundPosition:f,backgroundRepeat:"no-repeat"}:{backgroundImage:`url(${e.url})`,backgroundSize:u,backgroundPosition:f,backgroundRepeat:"no-repeat",backgroundColor:"#0b0134"}:{background:"linear-gradient(180deg, #0b0134 0%, #15017a 30%, #1a1a8c 50%, #15017a 70%, #0b0134 100%)"}),[u,f]);return(0,c.jsxs)("div",{style:{width:x?"100%":"100vw",height:x?"100%":"100vh",position:"relative",overflow:"hidden",background:"linear-gradient(180deg, #0b0134 0%, #15017a 30%, #1a1a8c 50%, #15017a 70%, #0b0134 100%)"},children:[C.map(((e,t)=>(0,c.jsx)("div",{style:{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",opacity:t===v?1:0,transition:"opacity 1s ease-in-out",zIndex:0,..."video"!==e.type?N(e):{}},children:"video"===e.type&&(0,c.jsx)("video",{ref:e=>{k.current[t]=e}
1,src:e.url,loop:1===C.length,muted:!0,playsInline:!0,controlsList:"nodownload",onContextMenu:e=>e.preventDefault(),onEnded:C.length>1?z:void 0,style:{width:"100%",height:"100%",objectFit:"cover"}})},t))),C.length>1&&(0,c.jsx)("div",{style:{position:"absolute",bottom:"16px",insetInlineStart:"50%",transform:"translateX(-50%)",display:"flex",gap:"8px",zIndex:20},children:C.map(((e,t)=>(0,c.jsx)("div",{onClick:()=>{clearTimeout(S.current),w(t)},style:{width:t===v?"24px":"8px",height:"8px",borderRadius:"4px",background:t===v?"#fff":"rgba(255,255,255,0.4)",cursor:"pointer",transition:"all 0.3s ease"}},t)))}),T&&(0,c.jsxs)("div",{style:{position:"absolute",bottom:C.length>1?"44px":"20px",insetInlineEnd:"20px",background:"rgba(0,0,0,0.65)",backdropFilter:"blur(8px)",color:"#fff",fontSize:"13px",padding:"8px 16px",borderRadius:"8px",zIndex:15,display:"flex",alignItems:"center",gap:"8px",cursor:"pointer",border:"1px solid rgba(255,255,255,0.15)",transition:"background 0.2s"},onClick:()=>window.open(T,"_blank"),onMouseEnter:e=>{e.currentTarget.style.background="rgba(0,0,0,0.8)"},onMouseLeave:e=>{e.currentTarget.style.background="rgba(0,0,0,0.65)"},children:[(0,c.jsx)("span",{style:{fontSize:"14px"},children:"\ud83d\udd17"}),I]}),(0,c.jsxs)("div",{style:{position:"absolute",left:`${y}%`,top:`${j}%`,transform:"translate(-50%, -50%)",background:"#fff",borderRadius:"12px",boxShadow:"0 12px 60px rgba(0,0,0,0.3)",padding:"40px 44px",width:"440px",maxWidth:"92%",maxHeight:"90vh",overflow:"auto",zIndex:1},children:[(0,c.jsx)("div",{style:{textAlign:"center",marginBottom:"24px"},children:s.loginLogo?(0,c.jsx)("img",{src:s.loginLogo,alt:"Logo",style:{maxWidth:"200px",maxHeight:"70px",objectFit:"contain"}}):(0,c.jsx)("div",{style:{fontSize:"24px",fontWeight:700,color:"#1e293b"},children:l||"Conferbot"})}),(0,c.jsx)("h2",{style:{fontSize:"22px",fontWeight:600,color:"#1e293b",textAlign:"center",marginBottom:"4px"},children:"Login"}),(0,c.jsx)("p",{style:{color:"#94a3b8",fontSize:"14px",textAlign:"center",marginBottom:"24px"},children:"Welcome back, please login to your account."}),(0,c.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,c.jsx)("label",{style:{fontSize:"13px",fontWeight:500,color:"#334155",display:"block",marginBottom:"6px"},children:"Email"}),(0,c.jsx)("input",{type:"email",placeholder:"[email protected]",disabled:!0,style:{width:"100%",height:"42px",borderRadius:"8px",border:"1px solid #e2e8f0",padding:"0 12px",fontSize:"14px",background:"#f8fafc",color:"#94a3b8",boxSizing:"border-box"}})]}),(0,c.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,c.jsx)("label",{style:{fontSize:"13px",fontWeight:500,color:"#334155",display:"block",marginBottom:"6px"},children:"Password"}),(0,c.jsx)("input",{type:"password",placeholder:"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",disabled:!0,style:{width:"100%",height:"42px",borderRadius:"8px",border:"1px solid #e2e8f0",padding:"0 12px",fontSize:"14px",background:"#f8fafc",color:"#94a3b8",boxSizing:"border-box"}})]}),(0,c.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"20px"},children:[(0,c.jsxs)("label",{style:{fontSize:"13px",color:"#64748b",display:"flex",alignItems:"center",gap:"6px"},children:[(0,c.jsx)("input",{type:"checkbox",disabled:!0})," Remember me"]}),(0,c.jsx)("span",{style:{fontSize:"13px",color:m,cursor:"default"},children:"Forgot Password?"})]}),(0,c.jsx)("button",{disabled:!0,style:{width:"100%",height:"44px",borderRadius:"8px",background:h,color:"#fff",border:"none",fontSize:"15px",fontWeight:600,cursor:"default",marginBottom:"14px"},children:"Sign in"}),(0,c.jsxs)("p",{style:{textAlign:"center",fontSize:"13px",color:"#94a3b8",marginBottom:"14px"},children:["Don't have an account? ",(0,c.jsx)("span",{style:{color:m},children:"Create an account"})]}),(0,c.jsxs)("div",{style:{display:"flex",alignItems:"center",margin:"14px 0",gap:"8px"},children:[(0,c.jsx)("div",{style:{flex:1,height:1,background:"#e2e8f0"}}),(0,c.jsx)("span",{style:{fontSize:"12px",color:"#94a3b8"},children:"Or"}),(0,c.jsx)("div",{style:{flex:1,height:1,background:"#e2e8f0"}})]}),[{label:"Sign in with Google",icon:(0,c.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 48 48",children:[(0,c.jsx)("path",{fill:"#EA4335",d:"M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"}),(0,c.jsx)("path",{fill:"#4285F4",d:"M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"}),(0,c.jsx)("path",{fill:"#FBBC05",d:"M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"}),(0,c.jsx)("path",{fill:"#34A853",d:"M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"})]})},{label:"Sign in with OTP",icon:(0,c.jsx)("span",{style:{fontSize:"15px"},children:"\ud83d\udd12"})},{label:"Sign in with Magic Link",icon:(0,c.jsx)("span",{style:{fontSize:"15px"},children:"\ud83d\udd17"})}].map(((e,t)=>(0,c.jsxs)("button",{disabled:!0,style:{width:"100%",height:"42px",borderRadius:"8px",border:"1px solid #e2e8f0",background:"#fff",display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",fontSize:"13px",color:"#334155",cursor:"default",marginBottom:"8px"},children:[e.icon," ",e.label]},t))),(l||s.tagline)&&(0,c.jsxs)("div",{style:{marginTop:"14px",paddingTop:"12px",borderTop:"1px solid #f1f5f9"},children:[l&&(0,c.jsx)("div",{style:{fontSize:"14px",fontWeight:600,color:"#334155"},children:l}),s.tagline&&(0,c.jsx)("div",{style:{fontSize:"12px",color:"#94a3b8",marginTop:"2px"},children:s.tagline})]}),(0,c.jsxs)("p",{style:{textAlign:"center",fontSize:"11px",color:"#94a3b8",marginTop:"16px",lineHeight:1.5,marginBottom:0},children:["By continuing, you agree to the ",(0,c.jsx)("span",{style:{color:m},children:"Terms of Service"})," and ",(0,c.jsx)("span",{style:{color:m},children:"Privacy Policy"})]})]})]})},d=()=>{var e;const[t,n]=(0,i.useState)(!0),[d,x]=(0,i.useState)(null);if((0,i.useEffect)((()=>{(async()=>{try{const e=await(0,l.PX)();x(e.data)}catch{x(null)}n(!1)})()}),[]),t)return(0,c.jsx)("div",{style:{height:"100vh",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,c.jsx)(o.Z,{size:"large"})});const g=(null===d||void 0===d?void 0:d.branding)||{},h=(null===d||void 0===d?void 0:d.displayName)||"",m=null!==(e=g.loginMedia)&&void 0!==e&&e.length?g.loginMedia:[];return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.ql,{children:(0,c.jsxs)("title",{children:["Branded Login Preview | ",h||"Conferbot"]})}),(0,c.jsxs)(a.rU,{to:`/a/ws/${(null===d||void 0===d?void 0:d.workspaceId)||""}/branding`,style:{position:"fixed",top:"16px",insetInlineStart:"16px",zIndex:1e3,display:"flex",alignItems:"center",gap:"6px",padding:"8px 16px",background:"rgba(0,0,0,0.7)",color:"#fff",borderRadius:"8px",fontSize:"13px",fontWeight:500,textDecoration:"none",backdropFilter:"blur(10px)"},children:[(0,c.jsx)(r.Z,{})," Back to Branding Settings"]}),(0,c.jsx)("div",{style:{position:"fixed",top:"0",insetInlineEnd:"0",zIndex:1e3,background:"#f59e0b",color:"#fff",fontSize:"11px",fontWeight:700,padding:"4px 24px",borderRadius:"0 0 0 8px",textTransform:"uppercase",letterSpacing:"1px"},children:"Preview Mode"}),(0,c.jsx)(p,{branding:g,displayName:h,mediaItems:m,slideDurationMs:1e3*(g.slideDuration||6)})]})}}
1,98052:(e,t,n)=>{n.d(t,{Z:()=>H});var i=n(47313),o=n(68197),a=n(59624),r=n(78469),s=n(66672),l=n(32697),c=n(59491),p=n(28303),d=n(67091),x=n(8040),g=n(27543),h=n(40153),m=n(26672),u=n(56352),f=n(32453),b=n(15175),y=n(99610),j=n(72831),v=n(45703),w=n(14081),S=n(30383),k=n(32251),C=n(17252),z=n(18351),T=n(1140),I=n(73322),N=n(21040),Z=n(54972),A=n(46417);const P=[{emoji:"\ud83e\udd16",tile:"linear-gradient(135deg, #4f7cff, #3b5fd9)",title:"One bot, every platform",desc:"Deploy across WhatsApp, Telegram, Messenger, Slack, Teams and your website from a single builder."},{emoji:"\ud83d\udcac",tile:"linear-gradient(135deg, #10b981, #059669)",title:"Live chat & team inbox",desc:"All your customers in one unified inbox - with native desktop handover notifications."},{emoji:"\u2728",tile:"linear-gradient(135deg, #7c4dff, #5e35b1)",title:"AI agents",desc:"Automate conversations with AI agents trained on your own content and workflows."},{emoji:"\ud83d\udcca",tile:"linear-gradient(135deg, #f59e0b, #d97706)",title:"Analytics that matter",desc:"Track conversations, visitors and bot performance in real time."}],E=[{value:"50M+",label:"Messages sent"},{value:"10K+",label:"Active businesses"},{value:"99.9%",label:"Uptime SLA"},{value:"4.9/5",label:"User rating"}],W=e=>{let{visible:t,onClose:n,onSignup:r}=e;const[s,l]=(0,i.useState)("undefined"!==typeof window?window.innerWidth:1024);(0,i.useEffect)((()=>{if(!t)return;const e=()=>l(window.innerWidth);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[t]);const p=s<768,d=p?24:15,x=p?24:9,g=p?Math.min(460,s-24):880;return(0,A.jsxs)(N.default,{visible:t,onCancel:n,footer:null,centered:!0,width:g,bodyStyle:{padding:0,position:"relative",maxHeight:"calc(100vh - 48px)",overflowY:"auto",overflowX:"hidden"},style:{borderRadius:"16px",overflow:"hidden"},maskStyle:{background:"rgba(15, 23, 42, 0.45)",backdropFilter:"blur(6px)",WebkitBackdropFilter:"blur(6px)"},closable:!1,children:[(0,A.jsx)("button",{type:"button","aria-label":"Close",onClick:n,style:{position:"absolute",top:"14px",insetInlineEnd:"14px",zIndex:2,display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",borderRadius:"50%",border:"none",cursor:"pointer",background:"rgba(15, 23, 42, 0.55)",color:"#fff",boxShadow:"0 2px 8px rgba(15, 23, 42, 0.25)"},children:(0,A.jsx)(Z.tgW,{size:20})}),(0,A.jsxs)(o.Z,{children:[(0,A.jsxs)(a.Z,{span:d,style:{padding:"clamp(24px, 5vw, 44px)"},children:[(0,A.jsx)("h2",{style:{fontSize:"clamp(20px, 4.5vw, 27px)",fontWeight:700,marginBottom:"8px",letterSpacing:"-0.3px"},children:"Unlock Conferbot with an account"}),(0,A.jsx)("p",{style:{color:"#64748b",fontSize:"clamp(13px, 3.4vw, 14px)",marginBottom:"clamp(20px, 4vw, 32px)"},children:"Your AI-powered command center for customer conversations across all channels."}),(0,A.jsx)(o.Z,{gutter:[24,24],children:P.map((e=>(0,A.jsx)(a.Z,{xs:24,sm:12,children:(0,A.jsxs)("div",{style:{display:"flex",gap:"12px",alignItems:"flex-start"},children:[(0,A.jsx)("div",{style:{width:"38px",height:"38px",borderRadius:"10px",background:e.tile,display:"flex",alignItems:"center",justifyContent:"center",fontSize:"18px",flexShrink:0,boxShadow:"0 4px 12px rgba(15, 23, 42, 0.12)"},children:e.emoji}),(0,A.jsxs)("div",{children:[(0,A.jsx)("div",{style:{fontWeight:600,marginBottom:"4px",fontSize:"clamp(13px, 3.5vw, 15px)",color:"#0f172a"},children:e.title}),(0,A.jsx)("div",{style:{color:"#64748b",fontSize:"clamp(12px, 3.2vw, 13px)",lineHeight:1.55},children:e.desc})]})]})},e.title)))}),(0,A.jsx)(c.Z,{type:"primary",block:!0,size:"large",onClick:r,style:{marginTop:"clamp(24px, 5vw, 36px)",height:"46px",fontWeight:600,fontSize:"15px",border:"none",borderRadius:"10px",background:"linear-gradient(90deg, #4f7cff, #7c4dff)",boxShadow:"0 8px 24px rgba(79, 124, 255, 0.35)"},children:"Sign up for Free"}),(0,A.jsx)("div",{style:{textAlign:"center",marginTop:"12px"},children:(0,A.jsxs)(c.Z,{type:"link",onClick:n,style:{fontSize:"13px",color:"#64748b"},children:["Already have an account? ",(0,A.jsx)("span",{style:{color:"#4f7cff",marginInlineStart:"4px"},children:"Sign in"})]})})]}),(0,A.jsxs)(a.Z,{span:x,style:{background:"radial-gradient(900px 500px at 80% -10%, #1e2a52 0%, #0d1330 65%)",padding:"clamp(28px, 4vw, 40px) clamp(20px, 3vw, 32px)",display:"flex",flexDirection:"column",justifyContent:"center"},children:[(0,A.jsxs)("div",{style:{color:"#fff",fontSize:"17px",fontWeight:700,marginBottom:"6px",lineHeight:1.35},children:["One platform.",(0,A.jsx)("br",{}),(0,A.jsx)("span",{style:{color:"#f5b942"}
1,children:"Every conversation."})]}),(0,A.jsx)("div",{style:{color:"rgba(230, 233, 240, 0.65)",fontSize:"12.5px",lineHeight:1.6,marginBottom:"28px"},children:"Trusted by 10,000+ businesses worldwide."}),(0,A.jsx)(o.Z,{gutter:[12,20],children:E.map((e=>(0,A.jsxs)(a.Z,{span:12,children:[(0,A.jsx)("div",{style:{color:"#fff",fontSize:"20px",fontWeight:700},children:e.value}),(0,A.jsx)("div",{style:{color:"rgba(230, 233, 240, 0.55)",fontSize:"11.5px"},children:e.label})]},e.label)))}),(0,A.jsxs)("div",{style:{marginTop:"28px",paddingTop:"20px",borderTop:"1px solid rgba(255,255,255,0.08)",color:"rgba(230, 233, 240, 0.75)",fontSize:"12px",lineHeight:1.6,fontStyle:"italic"},children:["\u201cBest investment we made this year.\u201d",(0,A.jsx)("div",{style:{marginTop:"6px",fontStyle:"normal",color:"rgba(230, 233, 240, 0.5)",fontSize:"11px"},children:"Founder & CEO at GrowthLabs"})]})]})]})]})};var B=n(79642),R=n(15510),M=n(93331),F=n(66265),L=n(47092),O=n(85522),U=n(23940),D=n(9113);const H=e=>{var t;let{history:n}=e;const N=(0,U.J)(),[Z,P]=(0,i.useState)(""),[E,H]=(0,i.useState)(""),[G,$]=(0,i.useState)(!1),[q,_]=(0,i.useState)({open:!1,email:""}),[K,Y]=(0,i.useState)({open:!1,mfaToken:""}),V=(0,u.I0)(),J=(0,i.useRef)(null),{CaptchaWidget:X,captchaReady:Q,gate:ee,consumeCaptcha:te,rearmCaptcha:ne}=(0,B.oi)(),ie=(0,M.i)(),oe=!!ie.branding,ae=(0,R.F1)(),re=[R.eo.SSO,R.eo.OTP,R.eo.MAGIC_LINK],[se,le]=(0,i.useState)(re.includes(ae));(0,i.useEffect)((()=>{J.current&&J.current.focus()}),[]);const[ce,pe]=(0,i.useState)(!1),[de,xe]=(0,i.useState)(!1),[ge,he]=(0,i.useState)(!1);(0,i.useEffect)((()=>{(0,k.P)()&&"true"!==localStorage.getItem("alLoggInnn")&&!sessionStorage.getItem("cbDesktopWelcomeSeen")&&he(!0)}),[]);const me=()=>{try{sessionStorage.setItem("cbDesktopWelcomeSeen","1")}catch{}he(!1)},ue=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";pe(!0);try{const{verifier:t,challenge:n}=await(0,C.zn)();sessionStorage.setItem(C.g$,t);const i=new URLSearchParams(e);i.set("challenge",n),(0,k.mI)(`${window.location.origin}/desktop-auth?${i.toString()}`)}catch{pe(!1),(0,j.lt)("Couldn't start secure sign-in. Please try again.")}},fe=async e=>{e&&e.preventDefault();if(!/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(Z))return void(0,j.lt)("Please enter a valid email");if(E.length<6)return void(0,j.lt)("Please enter a valid password");if(!await ee())return void(0,j.lt)("Please verify that you are not a robot");const t=te();V((0,y.y)({email:Z,password:E,history:n,setLoading:$,captchaToken:t,onCaptchaSpent:ne,onRequiresVerification:(e,t)=>_({open:!0,email:e,expiresInMinutes:t}),onMfaRequired:e=>Y({open:!0,mfaToken:e})}))},be=(0,v._P)(),ye=e=>{"Enter"===e.key&&fe(e)};return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(f.ql,{children:[(0,A.jsx)("title",{children:"Login | Conferbot"}),(0,A.jsx)("meta",{name:"description",content:"Log in to your Conferbot account. Manage AI chatbots, live chat, and unified inbox across WhatsApp, Instagram, Telegram, Messenger & more."}),(0,A.jsx)("meta",{name:"robots",content:"index, follow"}),(0,A.jsx)("link",{rel:"canonical",href:"https://app.conferbot.com/login"}),(0,A.jsx)("meta",{property:"og:title",content:"Login | Conferbot - AI-Powered Conversational Engagement Platform"}),(0,A.jsx)("meta",{property:"og:description",content:"Log in to your Conferbot account. Manage conversations across all channels from one unified inbox."}),(0,A.jsx)("meta",{property:"og:url",content:"https://app.conferbot.com/login"}),(0,A.jsx)("meta",{property:"og:type",content:"website"})]}),(0,A.jsxs)(o.Z,{gutter:[32,0],className:`hp-authentication-page ${O.Z.centerContent}`,style:{height:"100vh",overflow:"hidden"},children:[oe?(0,A.jsx)(F.Z,{branding:ie.branding,displayName:ie.displayName}):(0,A.jsx)(b.Z,{}),(0,A.jsx)(a.Z,{lg:8,md:24,sm:24,xs:24,className:"hp-py-sm-0 hp-py-md-0",style:{height:"100vh",overflow:"auto",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,A.jsx)(o.Z,{className:"hp-h-100",align:"middle",justify:"center",children:(0,A.jsxs)(a.Z,{xxl:11,xl:15,lg:20,md:16,sm:24,className:"hp-px-sm-8 hp-pt-16 hp-pb-16 cb-login-fit",children:[(0,A.jsx)("style",{children:"\n @media screen and (max-height: 980px) {\n .cb-login-fit { zoom: 0.92; }\n }\n @media screen and (max-height: 880px) {\n .cb-login-fit { zoom: 0.85; }\n }\n @media screen and (max-height: 800px) {\n .cb-login-fit { zoom: 0.78; }\n }\n @media screen and (max-height: 720px) {\n .cb-login-fit { zoom: 0.7; }\n }\n "}),oe&&null!==(t=ie.branding)&&void 0!==t&&t.loginLogo?(0,A.jsx)("img",{src:ie.branding.loginLogo,alt:ie.displayName||"Workspace logo",style:{maxWidth:"200px",maxHeight:"80px",width:"auto",height:"auto",display:"block",margin:"0 auto"}}):(0,A.jsx)("img",{src:L,alt:"logo",style:{width:"80%",height:"auto",display:"block",margin:"0 auto"}}),(0,A.jsx)("h2",{className:"hp-mb-sm-0",style:{textAlign:"center",fontSize:N.type.size.pageTitle,fontWeight:N.type.weight.semibold,letterSpacing:N.type.tracking.tight},children:oe&&ie.displayName?`Sign in to ${ie.displayName}`:"Welcome back"}),(0,A.jsx)("p",{className:"hp-mt-sm-0 hp-mt-8",style:{textAlign:"center",color:N.text.muted},children:"Sign in to pick up where you left off."}),(0,A.jsxs)(r.Z,{layout:"vertical",name:"basic",initialValues:{remember:!0},className:"hp-mt-sm-16 hp-mt-8",children:[(0,A.jsxs)(r.Z.Item,{label:"Email :",className:"hp-mb-8",rules:[{required:!0,message:"Please enter your email"}],children:[(0,A.jsx)(s.default,{ref:J,id:"validating",value:Z,onChange:e=>P(e.target.value),onKeyPress:ye,autoComplete:"email"}),(0,A.jsx)(j.wV,{email:Z,onApply:P})]}),(0,A.jsx)(r.Z.Item,{label:"Password :",className:"hp-mb-8",rules:[{required:!0,message:"Please enter your password"}],children:(0,A.jsx)(s.default.Password,{id:"warning2",value:E,onChange:e=>H(e.target.value),onKeyPress:ye,autoComplete:"current-password"})}),(0,A.jsxs)(o.Z,{align:"middle",justify:"space-between",children:[(0,A.jsx)(r.Z.Item,{className:"hp-mb-0",children:(0,A.jsx)(l.Z,{name:"remember",children:"Remember me"})}
1),(0,A.jsx)(p.rU,{className:"hp-button hp-text-color-black-80 hp-text-color-dark-40",to:"/forgot-password",children:"Forgot Password?"})]}),(0,A.jsx)(X,{}),(0,A.jsxs)(r.Z.Item,{className:"hp-mt-16 hp-mb-8",children:[ae===R.eo.PASSWORD&&(0,A.jsx)("div",{style:{marginBottom:"6px"},children:(0,A.jsx)(R.MT,{})}),(0,A.jsx)(c.Z,{block:!0,type:"primary",size:"large",className:"cb-btn cb-btn--lg",htmlType:"submit",onClick:fe,loading:G,disabled:!Q,children:"Sign in"})]})]}),(0,A.jsxs)(a.Z,{className:"hp-form-info",children:[(0,A.jsx)("span",{className:"hp-text-color-black-80 hp-text-color-dark-40 hp-caption hp-mr-4",children:"Don't you have an account?"}),(0,A.jsxs)(p.rU,{className:"hp-text-color-primary-1 hp-text-color-dark-primary-2 hp-caption",to:"/signup",children:[" ","Create an account"]})]}),(0,A.jsx)(a.Z,{className:"hp-or-line hp-text-center hp-mt-8",children:(0,A.jsx)("span",{className:"hp-caption hp-text-color-black-80 hp-text-color-dark-30 hp-px-16 hp-bg-color-black-0 hp-bg-color-dark-100",children:"Or"})}),ae===R.eo.GOOGLE&&(0,A.jsx)("div",{className:"hp-mt-8",style:{display:"flex",justifyContent:"center"},children:(0,A.jsx)(R.MT,{})}),(0,A.jsx)(a.Z,{className:"hp-account-buttons hp-mt-8",style:{display:"flex",justifyContent:"center"},children:(0,k.P)()?(0,A.jsxs)("div",{style:{width:"100%"},children:[(0,A.jsxs)(c.Z,{block:!0,size:"large",onClick:()=>{ue()},loading:ce,className:"cb-btn cb-btn--lg",style:{display:"flex",alignItems:"center",justifyContent:"center",gap:N.space.sm},children:[!ce&&(0,A.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:6},children:[(0,A.jsx)("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"",style:{width:"16px",height:"16px"}}),(0,A.jsx)(m.tBk,{size:13,color:"#1877F2"}),(0,A.jsx)(m.hJX,{size:14}),(0,A.jsx)(m.oPZ,{size:15})]}),ce?"Complete sign-in in your browser...":"Sign in with your browser"]}),(0,A.jsx)("p",{style:{textAlign:"center",marginTop:"8px",marginBottom:0,fontSize:N.type.size.meta,color:N.text.disabled},children:"Continue with Google, Facebook, GitHub or Apple"}),(0,A.jsx)("div",{style:{textAlign:"center",marginTop:"10px"},children:(0,A.jsx)("button",{type:"button",onClick:()=>xe(!0),className:"cb-focus",style:{background:"none",border:"none",color:N.brand.primary,fontSize:N.type.size.meta,cursor:"pointer",padding:0},children:"Enter authorization token to sign in"})})]}):be?(0,A.jsxs)(c.Z,{block:!0,size:"large",onClick:async()=>{$(!0);try{const{credential:e}=await(0,S._)();V((0,y.K5)({credential:e,history:n,setLoading:$,onMfaRequired:e=>Y({open:!0,mfaToken:e})}))}catch(e){"Sign-in cancelled"!==e.message&&(0,j.lt)(e.message),$(!1)}},loading:G,className:"cb-btn cb-btn--lg",style:{display:"flex",alignItems:"center",justifyContent:"center",gap:N.space.sm},children:[(0,A.jsx)("img",{src:"https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg",alt:"G",style:{width:"18px",height:"18px"}}),"Sign in with Google"]}):(0,A.jsx)(d.Z,{text:"Sign in with Google",googleText:"signin_with",onSuccess:async e=>{$(!0),V((0,y.K5)({credential:e.credential,history:n,setLoading:$,onMfaRequired:e=>Y({open:!0,mfaToken:e})}))},onError:()=>{console.log("GOOGLE_LOGIN_ERROR")}})}),!(0,k.P)()&&(0,A.jsxs)(A.Fragment,{children:[[R.eo.FACEBOOK,R.eo.GITHUB,R.eo.APPLE].includes(ae)&&(0,A.jsx)("div",{className:"hp-mt-8",style:{display:"flex",justifyContent:"center"},children:(0,A.jsx)(R.MT,{label:{[R.eo.FACEBOOK]:"Facebook",[R.eo.GITHUB]:"GitHub",[R.eo.APPLE]:"Apple"}[ae]})}),(0,A.jsxs)(a.Z,{className:"hp-account-buttons hp-mt-8",style:{display:"flex",gap:"8px"},children:[(0,w.Ut)()&&(0,A.jsx)(x.Z,{compact:!0,onSuccess:e=>{$(!0),V((0,y.SW)({accessToken:e,history:n,setLoading:$,onMfaRequired:e=>Y({open:!0,mfaToken:e})}))},onError:e=>{(0,j.lt)((null===e||void 0===e?void 0:e.message)||"Facebook sign-in failed. Please try again."),$(!1)}}),(0,A.jsx)(g.Z,{compact:!0,onError:e=>{(0,j.lt)((null===e||void 0===e?void 0:e.message)||"GitHub sign-in failed. Please try again.")}}),(0,A.jsx)(h.Z,{compact:!0,onSuccess:e=>{let{idToken:t,user:i}=e;$(!0),V((0,y.Hx)({idToken:t,user:i,history:n,setLoading:$,onMfaRequired:e=>Y({open:!0,mfaToken:e})}))},onError:e=>{(0,j.lt)((null===e||void 0===e?void 0:e.message)||"Apple sign-in failed. Please try again."),$(!1)}})]})]}),(0,A.jsxs)("div",{style:{marginTop:N.space.md},children:[!se&&(0,A.jsx)("button",{type:"button",className:"cb-focus",onClick:()=>le(!0),style:{display:"block",margin:"0 auto",background:"none",border:"none",padding:N.space.xs,borderRadius:N.radius.control,color:N.text.muted,fontSize:N.type.size.meta,cursor:"pointer",textDecoration:"underline"},children:"More ways to sign in"}),se&&(0,A.jsxs)(D.oW,{children:[(0,A.jsx)(D.UN,{to:"/login/sso",glyph:"password",label:"Continue with SSO",badge:ae===R.eo.SSO?(0,A.jsx)(R.MT,{style:{marginInlineStart:"4px"}}):null}),(0,A.jsx)(D.UN,{to:"/login/otp",glyph:"otp",label:"Sign in with OTP",badge:ae===R.eo.OTP?(0,A.jsx)(R.MT,{style:{marginInlineStart:"4px"}}):null}),(0,A.jsx)(D.UN,{to:"/login/magic-link",glyph:"magic",label:"Sign in with Magic Link",badge:ae===R.eo.MAGIC_LINK?(0,A.jsx)(R.MT,{style:{marginInlineStart:"4px"}}):null})]})]}),(0,A.jsx)(D.Pt,{page:"login"}),!(0,k.P)()&&"/desktop-auth"===new URLSearchParams(n.location.search).get("redirect")&&(0,A.jsx)("p",{style:{textAlign:"center",marginTop:N.space.sm,fontSize:N.type.size.meta,color:N.text.disabled},children:"You've been redirected from the Conferbot Desktop App to
1sign in."})]})})})]}),(0,A.jsx)(z.Z,{visible:q.open,email:q.email,expiresInMinutes:q.expiresInMinutes,history:n,onCancel:()=>_({open:!1,email:""})}),(0,A.jsx)(T.Z,{visible:K.open,mfaToken:K.mfaToken,history:n,onClose:()=>Y({open:!1,mfaToken:""})}),(0,A.jsx)(W,{visible:ge,onClose:me,onSignup:()=>{me(),ue("intent=signup")}}),(0,A.jsx)(I.Z,{visible:de,onClose:()=>xe(!1),history:n})]})}},91576:(e,t,n)=>{n.d(t,{Z:()=>C});var i=n(47313),o=n(68197),a=n(59624),r=n(78469),s=n(66672),l=n(59491),c=n(28303),p=n(56352),d=n(32453),x=n(15175),g=n(48558),h=n(99610),m=n(10162),u=n(15510),f=n(72831),b=n(79642),y=n(1140),j=n(47092),v=n(85522),w=n(23940),S=n(9113),k=n(46417);const C=e=>{let{history:t}=e;const n=(0,w.J)(),[C,z]=(0,i.useState)("email"),[T,I]=(0,i.useState)(""),[N,Z]=(0,i.useState)(""),[A,P]=(0,i.useState)(!1),[E,W]=(0,i.useState)(0),[B,R]=(0,i.useState)({open:!1,mfaToken:""}),{CaptchaWidget:M,captchaReady:F,gate:L,consumeCaptcha:O,rearmCaptcha:U,resetCaptcha:D}=(0,b.oi)(),H=(0,p.I0)(),G=(0,u.F1)(),$=(0,i.useRef)(null),q=(0,i.useRef)(null);(0,i.useEffect)((()=>{$.current&&$.current.focus()}),[]),(0,i.useEffect)((()=>{"verify"===C&&q.current&&q.current.focus()}),[C]),(0,i.useEffect)((()=>{if(E<=0)return;const e=setTimeout((()=>W(E-1)),1e3);return()=>clearTimeout(e)}),[E]);const _=async()=>{const e=T.trim();if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e))return void(0,f.lt)("Please enter a valid email address");e!==T&&I(e);if(!await L())return void(0,f.lt)("Please verify that you are not a robot");const t=O();P(!0);try{const n=await(0,m.t1)(e,t);(0,f.Ur)(n.data.message||"OTP sent to your email"),z("verify"),W(60)}catch(r){var n,i,o,a;(0,f.lt)((null===r||void 0===r||null===(n=r.response)||void 0===n||null===(i=n.data)||void 0===i||null===(o=i.type)||void 0===o||null===(a=o[0])||void 0===a?void 0:a.message)||"Failed to send OTP"),U()}P(!1)},K=()=>{N&&6===N.length?H((0,h.Su)({email:T,otp:N,history:t,setLoading:P,onMfaRequired:e=>R({open:!0,mfaToken:e})})):(0,f.lt)("Please enter the 6-digit OTP")},Y=e=>{"Enter"===e.key&&("email"===C?_():K())};return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(d.ql,{children:[(0,k.jsx)("title",{children:"Sign in with OTP | Conferbot"}),(0,k.jsx)("meta",{name:"description",content:"Sign in to Conferbot with a one-time code sent to your email. No password required."}),(0,k.jsx)("meta",{name:"robots",content:"noindex"})]}),(0,k.jsxs)(o.Z,{gutter:[32,0],className:`hp-authentication-page ${v.Z.centerContent}`,style:{height:"100vh",overflow:"hidden"},children:[(0,k.jsx)(g.Z,{fallback:(0,k.jsx)(x.Z,{})}),(0,k.jsx)(a.Z,{lg:8,md:24,sm:24,xs:24,style:{height:"100vh",overflow:"auto",display:"flex",background:n.surface.card},children:(0,k.jsxs)("div",{style:{margin:"auto",width:"100%",maxWidth:"420px",padding:"40px 24px"},children:[(0,k.jsx)("img",{src:j,alt:"Conferbot",style:{width:"160px",maxWidth:"60%",height:"auto",display:"block",margin:"0 auto"}}),(0,k.jsx)("h2",{style:{textAlign:"center",fontSize:n.type.size.pageTitle,fontWeight:n.type.weight.semibold,color:n.text.primary,letterSpacing:n.type.tracking.tight,lineHeight:n.type.lineHeight.tight,margin:"28px 0 8px"},children:"Sign in with OTP"}),(0,k.jsx)("p",{className:"hp-mt-sm-0 hp-mt-8 hp-text-color-black-60",children:"email"===C?"Enter your email and we'll send you a one-time login code.":`Enter the 6-digit code sent to ${T}`}),(0,k.jsx)(r.Z,{layout:"vertical",className:"hp-mt-sm-16 hp-mt-8",children:"email"===C?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(r.Z.Item,{label:"Email :",className:"hp-mb-16",children:(0,k.jsx)(s.default,{ref:$,value:T,onChange:e=>I(e.target.value.trimStart()),onBlur:e=>I(e.target.value.trim()),onKeyPress:Y,placeholder:"[email protected]",autoComplete:"email",size:"large"})}),(0,k.jsx)(M,{}),(0,k.jsx)(r.Z.Item,{className:"hp-mt-16 hp-mb-8",children:(0,k.jsx)(l.Z,{block:!0,type:"primary",onClick:_,loading:A,disabled:!F,size:"large",className:"cb-btn cb-btn--lg",children:"Send Login Code"})})]}):(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(r.Z.Item,{label:"Enter OTP :",className:"hp-mb-8",children:(0,k.jsx)(s.default,{ref:q,value:N,onChange:e=>{const t=e.target.value.replace(/\D/g,"").slice(0,6);Z(t)},onKeyPress:Y,placeholder:"000000",maxLength:6,size:"large",style:{letterSpacing:"8px",fontSize:n.type.size.pageTitle,textAlign:"center",fontFamily:n.type.family.mono}})}),(0,k.jsx)(r.Z.Item,{className:"hp-mt-16 hp-mb-8",children:(0,k.jsx)(l.Z,{block:!0,type:"primary",onClick:K,loading:A,size:"large",className:"cb-btn cb-btn--lg",children:"Verify and sign in"})}),(0,k.jsxs)("div",{style:{textAlign:"center",marginTop:"8px"},children:[E>0?(0,k.jsxs)("span",{className:"hp-text-color-black-60",style:{fontSize:"13px"},children:["Resend code in ",E,"s"]}):(0,k.jsx)(l.Z,{type:"link",onClick:async()=>
1{if(!(E>0)){P(!0);try{await(0,m.t1)(T),(0,f.Ur)("New OTP sent to your email"),W(60),Z("")}catch(e){(0,f.lt)("Failed to resend OTP")}P(!1)}},disabled:A,style:{padding:0,fontSize:"13px"},children:"Resend Code"}),(0,k.jsx)("span",{style:{margin:"0 8px",color:n.text.disabled},children:"|"}),(0,k.jsx)(l.Z,{type:"link",onClick:()=>{z("email"),Z(""),D()},style:{padding:0,fontSize:"13px"},children:"Change Email"})]})]})}),(0,k.jsxs)(a.Z,{className:"hp-form-info hp-mt-8",children:[(0,k.jsx)("span",{className:"hp-text-color-black-80 hp-text-color-dark-40 hp-caption hp-mr-4",children:"Don't have an account?"}),(0,k.jsx)(c.rU,{className:"hp-text-color-primary-1 hp-text-color-dark-primary-2 hp-caption",to:"/signup",children:"Create an account"})]}),(0,k.jsx)(a.Z,{className:"hp-or-line hp-text-center hp-mt-8",children:(0,k.jsx)("span",{className:"hp-caption hp-text-color-black-80 hp-text-color-dark-30 hp-px-16 hp-bg-color-black-0 hp-bg-color-dark-100",children:"Or"})}),(0,k.jsxs)(S.oW,{style:{marginTop:8},children:[(0,k.jsx)(S.UN,{to:"/login",glyph:"password",label:"Sign in with Password",badge:G===u.eo.PASSWORD?(0,k.jsx)(u.MT,{style:{marginInlineStart:"4px"}}):null}),(0,k.jsx)(S.UN,{to:"/login/magic-link",glyph:"magic",label:"Sign in with Magic Link",badge:G===u.eo.MAGIC_LINK?(0,k.jsx)(u.MT,{style:{marginInlineStart:"4px"}}):null})]}),(0,k.jsx)(S.Pt,{page:"otp"})]})})]}),(0,k.jsx)(y.Z,{visible:B.open,mfaToken:B.mfaToken,history:t,onClose:()=>R({open:!1,mfaToken:""})})]})}},35596:(e,t,n)=>{n.d(t,{Z:()=>b});var i=n(47313),o=n(68197),a=n(59624),r=n(72652),s=n(28303),l=n(56352),c=n(32453),p=n(21911),d=n(41543),x=n(82775),g=n(10162),h=n(15510),m=n(47092),u=n(85522),f=n(46417);const b=()=>{const e=(0,p.k6)(),t=(0,l.I0)(),{user:n}=(0,l.v9)((e=>e.auth)),b=new URLSearchParams(window.location.search).get("message"),[y,j]=(0,i.useState)(b?"error":"verifying"),[v,w]=(0,i.useState)(b||""),S=(0,i.useRef)(!1);return(0,i.useEffect)((()=>{n&&!S.current&&(S.current=!0,(0,x.CL)(n,e))}),[n,e]),(0,i.useEffect)((()=>{S.current||n||b||(S.current=!0,(0,g.jb)().then((n=>{var i,o;if(null===n||void 0===n||null===(i=n.data)||void 0===i||!i.user||null===n||void 0===n||null===(o=n.data)||void 0===o||!o.accessToken)throw new Error("no-session");(0,h.z4)(h.eo.SSO),t({type:d.b.AUTH,payload:{accessToken:n.data.accessToken,user:n.data.user}}),setTimeout((()=>{(0,x.CL)(n.data.user,e)}),800)})).catch((()=>{j("error"),w("We couldn't complete single sign-on. Please try again.")})))}),[t,e,n]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(c.ql,{children:[(0,f.jsx)("title",{children:"Signing you in | Conferbot"}),(0,f.jsx)("meta",{name:"robots",content:"noindex"})]}),(0,f.jsx)(o.Z,{className:`hp-authentication-page ${u.Z.centerContent}`,style:{height:"100vh",overflow:"hidden"},align:"middle",justify:"center",children:(0,f.jsx)(a.Z,{xs:22,sm:16,md:12,lg:8,xl:6,children:(0,f.jsxs)("div",{style:{textAlign:"center"},children:[(0,f.jsx)("img",{src:m,alt:"logo",style:{width:"200px",margin:"0 auto 32px",display:"block"}}),"verifying"===y&&(0,f.jsxs)("div",{children:[(0,f.jsx)(r.Z,{size:"large"}),(0,f.jsx)("p",{className:"hp-mt-16 hp-text-color-black-60",style:{fontSize:"16px"},children:"Completing single sign-on..."})]}),"error"===y&&(0,f.jsxs)("div",{children:[(0,f.jsx)("div",{style:{fontSize:"48px",marginBottom:"16px"},children:"\u274c"}),(0,f.jsx)("h2",{style:{color:"#000",marginBottom:"8px"},children:"Sign-in Failed"}),(0,f.jsx)("p",{className:"hp-text-color-black-60",style:{marginBottom:"24px"},children:v}),(0,f.jsx)(s.rU,{to:"/login/sso",className:"ant-btn ant-btn-primary",style:{marginInlineEnd:"8px"},children:"Try Again"}),(0,f.jsx)(s.rU,{to:"/login",className:"ant-btn",children:"Back to Login"})]})]})})})]})}},67411:(e,t,n)=>{n.d(t,{Z:()=>v});var i=n(47313),o=n(68197),a=n(59624),r=n(78469),s=n(66672),l=n(59491),c=n(28303),p=n(32453),d=n(15175),x=n(48558),g=n(10162),h=n(15510),m=n(72831),u=n(47092),f=n(85522),b=n(23940),y=n(9113),j=n(46417);const v=()=>{const e=(0,b.J)(),[t,n]=(0,i.useState)(""),[v,w]=(0,i.useState)(!1),S=(0,i.useRef)(null),k=(0,h.F1)();(0,i.useEffect)((()=>{S.current&&S.current.focus()}),[]);const C=async()=>
1{if(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)){w(!0);try{var e,n;const i=await(0,g.ce)(t),o=null===i||void 0===i||null===(e=i.data)||void 0===e||null===(n=e.data)||void 0===n?void 0:n.loginUrl;if(!o)throw new Error("no-login-url");window.location.assign(o)}catch(r){var i;var o,a;if(400===(null===r||void 0===r||null===(i=r.response)||void 0===i?void 0:i.status))(0,m.lt)((null===r||void 0===r||null===(o=r.response)||void 0===o||null===(a=o.data)||void 0===a?void 0:a.error)||"Please enter a valid work email address");else(0,m.lt)("Single sign-on isn't set up for this email. Use Google, password, or OTP to sign in instead.");w(!1)}}else(0,m.lt)("Please enter a valid work email address")};return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(p.ql,{children:[(0,j.jsx)("title",{children:"Continue with SSO | Conferbot"}),(0,j.jsx)("meta",{name:"description",content:"Sign in to Conferbot with your organization's single sign-on (SSO) provider."}),(0,j.jsx)("meta",{name:"robots",content:"noindex"})]}),(0,j.jsxs)(o.Z,{gutter:[32,0],className:`hp-authentication-page ${f.Z.centerContent}`,style:{height:"100vh",overflow:"hidden"},children:[(0,j.jsx)(x.Z,{fallback:(0,j.jsx)(d.Z,{})}),(0,j.jsx)(a.Z,{lg:8,md:24,sm:24,xs:24,className:"hp-py-sm-0 hp-py-md-0",style:{height:"100vh",overflow:"auto",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,j.jsx)(o.Z,{className:"hp-h-100",align:"middle",justify:"center",children:(0,j.jsxs)(a.Z,{xxl:11,xl:15,lg:20,md:16,sm:24,className:"hp-px-sm-8 hp-pt-16 hp-pb-16",children:[(0,j.jsx)("img",{src:u,alt:"logo",style:{width:"80%",height:"auto",display:"block",margin:"0 auto"}}),(0,j.jsx)("h2",{className:"hp-mb-sm-0",style:{textAlign:"center",fontSize:e.type.size.pageTitle,fontWeight:e.type.weight.semibold,letterSpacing:e.type.tracking.tight},children:"Continue with SSO"}),(0,j.jsx)("p",{className:"hp-mt-sm-0 hp-mt-8 hp-text-color-black-60",children:"Enter your work email and we'll redirect you to your organization's single sign-on provider."}),(0,j.jsxs)(r.Z,{layout:"vertical",className:"hp-mt-sm-16 hp-mt-8",children:[(0,j.jsx)(r.Z.Item,{label:"Work email :",className:"hp-mb-16",children:(0,j.jsx)(s.default,{ref:S,value:t,onChange:e=>n(e.target.value),onKeyPress:e=>{"Enter"===e.key&&C()},placeholder:"[email protected]",autoComplete:"email",size:"large"})}),(0,j.jsx)(r.Z.Item,{className:"hp-mt-16 hp-mb-8",children:(0,j.jsx)(l.Z,{block:!0,type:"primary",onClick:C,loading:v,size:"large",className:"cb-btn cb-btn--lg",children:"Continue"})})]}),(0,j.jsxs)(a.Z,{className:"hp-form-info hp-mt-8",children:[(0,j.jsx)("span",{className:"hp-text-color-black-80 hp-text-color-dark-40 hp-caption hp-mr-4",children:"Don't have an account?"}),(0,j.jsx)(c.rU,{className:"hp-text-color-primary-1 hp-text-color-dark-primary-2 hp-caption",to:"/signup",children:"Create an account"})]}),(0,j.jsx)(a.Z,{className:"hp-or-line hp-text-center hp-mt-8",children:(0,j.jsx)("span",{className:"hp-caption hp-text-color-black-80 hp-text-color-dark-30 hp-px-16 hp-bg-color-black-0 hp-bg-color-dark-100",children:"Or"})}),(0,j.jsxs)(y.oW,{style:{marginTop:8},children:[(0,j.jsx)(y.UN,{to:"/login",glyph:"password",label:"Sign in with Password",badge:k===h.eo.PASSWORD?(0,j.jsx)(h.MT,{style:{marginInlineStart:"4px"}}):null}),(0,j.jsx)(y.UN,{to:"/login/otp",glyph:"otp",label:"Sign in with OTP",badge:k===h.eo.OTP?(0,j.jsx)(h.MT,{style:{marginInlineStart:"4px"}}):null})]}),(0,j.jsx)(y.Pt,{page:"sso"})]})})})]})]})}},15175:(e,t,n)=>{n.d(t,{Z:()=>j});var i=n(47313),o=n(59624),a=n(97128),r=n(70497),s=n(37584),l=n(26672),c=n(92709),p=n(93372),d=n(92766),x=n(18473),g=n(5969),h=n(72831),m=n(8873),u=n(32205),f=n(30157),b=n(88354),y=n(46417);const j=()=>{const[e,t]=(0,i.useState)(0),[n,j]=(0,i.useState)(0),v=[{icon:l.xpo,color:"#25D366",name:"WhatsApp",url:"/chatbot/whatsapp"},{icon:l.Ww5,color:"#0088cc",name:"Telegram",url:"/chatbot/telegram"},{icon:l.sAh,color:"#0084FF",name:"Messenger",url:"/chatbot/messenger"},{icon:l.Zf_,color:"#E1306C",name:"Instagram",url:"/chatbot/instagram"},{icon:l.w5k,color:"#4A154B",name:"Slack",url:"/chatbot/slack"},{icon:l.j2d,color:"#5865F2",name:"Discord",url:"/chatbot/discord"},{icon:c.nC_,color:"#6264A7",name:"Teams",url:"/chatbot/teams"},{icon:c.dqA,color:"#06C755",name:"LINE",url:"/chatbot/line"}],w=[{icon:l.k7O,color:"#21759B",name:"WordPress",url:"/integrations/website-widget"},{icon:l.kgb,color:"#96BF48",name:"Shopify",url:"/integrations/website-widget"},{icon:c.o7U,color:"#0C6EFC",name:"Wix",url:"/integrations/website-widget"},{icon:l.huN,color:"#61DAFB",name:"React",url:"/integrations/website-widget"}
1,{icon:c.Xou,color:"#fff",name:"Next.js",url:"/integrations/website-widget"},{icon:c.c9$,color:"#4353FF",name:"Webflow",url:"/integrations/website-widget"}],S=[{icon:l.huN,color:"#61DAFB",name:"React Native",url:"/integrations/react-native-sdk"},{icon:c.Bq1,color:"#02569B",name:"Flutter",url:"/integrations/flutter-sdk"},{icon:l.oPZ,color:"#fff",name:"iOS SDK",url:"/integrations/ios-sdk"},{icon:l.q2m,color:"#3DDC84",name:"Android SDK",url:"/integrations/android-sdk"}],k=[{icon:p.Z,title:"AI Chatbots",desc:"24/7 automated support"},{icon:d.Z,title:"Live Chat",desc:"Real-time conversations"},{icon:x.Z,title:"Analytics",desc:"Actionable insights"},{icon:g.Z,title:"Team Inbox",desc:"Collaborate seamlessly"}],C=[{quote:"Reduced response time by 80%",company:"TechFlow",role:"VP of Customer Success"},{quote:"Best investment we made this year",company:"GrowthLabs",role:"Founder & CEO"},{quote:"Our customers love the instant responses",company:"ShopifyPlus Store",role:"Head of E-commerce"}];(0,i.useEffect)((()=>{const e=setInterval((()=>{t((e=>(e+1)%v.length))}),2e3),n=setInterval((()=>{j((e=>(e+1)%C.length))}),4e3);return()=>{clearInterval(e),clearInterval(n)}}),[]);const z={hidden:{opacity:0,y:10},visible:{opacity:1,y:0,transition:{duration:.4,ease:[.25,.46,.45,.94]}}};return(0,y.jsxs)(o.Z,{lg:16,md:0,sm:0,xs:0,className:"cb-auth-container",style:{height:"100vh",position:"relative",overflow:"hidden"},children:[(0,y.jsx)(s.ZP,{}),(0,y.jsxs)(a.E.div,{variants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.06,delayChildren:.1}}},initial:"hidden",animate:"visible",style:{height:"100%",display:"flex",flexDirection:"column",position:"relative",zIndex:1,padding:"clamp(10px, 1.6vh, 16px) clamp(20px, 3vw, 44px)"},children:[(0,y.jsx)(a.E.div,{variants:z,style:{marginBottom:"clamp(6px, 1.6vh, 20px)"},children:(0,y.jsx)(h.V7,{accentColor:"#6366f1"})}),(0,y.jsxs)("div",{className:"cb-auth-scroll",style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"center",gap:"clamp(2px, 1.1vh, 13px)",minHeight:0},children:[(0,y.jsxs)(a.E.div,{variants:z,style:{textAlign:"center",width:"100%"},children:[(0,y.jsxs)("h1",{style:{color:"#fff",fontSize:"40px",fontWeight:700,lineHeight:1.2,margin:"0 0 clamp(5px, 1.1vh, 14px) 0",letterSpacing:"-0.5px"},children:["One platform."," ",(0,y.jsx)("span",{style:{background:"linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"},children:"Every conversation."})]}),(0,y.jsx)("p",{style:{color:"rgba(255,255,255,0.75)",fontSize:"clamp(13px, 1.5vh, 15px)",lineHeight:1.5,margin:"0 auto clamp(2px, 1vh, 16px) auto",maxWidth:"480px",textAlign:"center"},children:"Your AI-powered command center for customer conversations across all channels."})]}),(0,y.jsx)(a.E.div,{variants:z,style:{display:"flex",gap:"8px",marginBottom:"clamp(0px, 0.5vh, 10px)",justifyContent:"center",flexWrap:"wrap"},children:k.map(((e,t)=>{const n=e.icon;return(0,y.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"clamp(3px, 0.6vh, 6px)",padding:"clamp(7px, 1.2vh, 12px) 16px",background:"rgba(255,255,255,0.08)",backdropFilter:"blur(12px)",WebkitBackdropFilter:"blur(12px)",borderRadius:"12px",border:"1px solid rgba(255,255,255,0.15)",boxShadow:"0 8px 32px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.1)",cursor:"pointer",minWidth:"110px",transition:"all 0.3s ease"},onMouseEnter:e=>{e.currentTarget.style.background="rgba(255,255,255,0.12)",e.currentTarget.style.borderColor="rgba(255,255,255,0.25)"},onMouseLeave:e=>{e.currentTarget.style.background="rgba(255,255,255,0.08)",e.currentTarget.style.borderColor="rgba(255,255,255,0.15)"},children:[(0,y.jsx)("div",{style:{width:"clamp(28px, 3.4vh, 36px)",height:"clamp(28px, 3.4vh, 36px)",borderRadius:"10px",background:"rgba(251, 191, 36, 0.15)",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,y.jsx)(n,{size:18,color:"#fbbf24"})}),(0,y.jsxs)("div",{style:{textAlign:"center"},children:[(0,y.jsx)("div",{style:{color:"#fff",fontSize:"13px",fontWeight:600,marginBottom:"2px"},children:e.title}),(0,y.jsx)("div",{style:{color:"rgba(255,255,255,0.5)",fontSize:"10px"},children:e.desc})]})]},t)}))}),(0,y.jsxs)(a.E.div,{variants:z,className:"cb-auth-optional",style:{marginBottom:"clamp(0px, 0.5vh, 8px)"},children:[(0,y.jsx)("p",{style:{color:"rgba(255,255,255,0.6)",fontSize:"10px",fontWeight:700,textTransform:"uppercase",letterSpacing:"1.2px",margin:"0 0 clamp(3px, 0.8vh, 8px) 0",textAlign:"center"},children:"Mobile SDKs"}),(0,y.jsx)("div",{style:{display:"flex",gap:"8px",justifyContent:"center",flexWrap:"wrap"},children:S.map(((e,t)=>{const n=e.icon;return(0,y.jsxs)("div",{title:e.name,onClick:()=>window.open("https://www.conferbot.com"+e.url,"_blank","noopener,noreferrer"),style:{display:"flex",alignItems:"center",gap:"6px",padding:"clamp(5px, 0.9vh, 8px) 12px",background:"#fff",borderRadius:"8px",border:"1px solid rgba(0,0,0,0.08)",cursor:"pointer",boxShadow:"0 2px 6px rgba(0,0,0,0.08)",transition:"transform 0.2s ease, box-shadow 0.2s ease"},onMouseEnter:e=>{e.currentTarget.style.transform="translateY(-2px)",e.currentTarget.style.boxShadow="0 4px 12px rgba(0,0,0,0.12)"},onMouseLeave:e=>{e.currentTarget.style.transform="translateY(0)",e.currentTarget.style.boxShadow="0 2px 6px rgba(0,0,0,0.08)"},children:[(0,y.jsx)(n,{size:16,color:"#fff"===e.color?"#333":e.color}),(0,y.jsx)("span",{style:{fontSize:"12px",fontWeight:500,color:"#333"},children:e.name})]},t)}))})]}),(0,y.jsxs)(a.E.div,{variants:z,className:"cb-auth-optional",style:{marginBottom:"clamp(0px, 0.5vh, 8px)"},children:[(0,y.jsx)("p",{style:{color:"rgba(255,255,255,0.6)",fontSize:"10px",fontWeight:700,textTransform:"uppercase",letterSpacing:"1.2px",margin:"0 0 clamp(3px, 0.8vh, 8px) 0",textAlign:"center"},children:"All Web Frameworks & Platforms"}),(0,y.jsx)("div",{style:{display:"flex",gap:"8px",justifyContent:"center",flexWrap:"wrap"},children:w.map(((e,t)=>{const n=e.icon;return(0,y.jsxs)("div",{title:e.name,onClick:()=>window.open("https://www.conferbot.com"+e.url,"_blank","noopener,noreferrer"),style:{display:"flex",alignItems:"center",gap:"6px",padding:"clamp(5px, 0.9vh, 8px) 12px",background:"#fff",borderRadius:"8px",border:"1px solid rgba(0,0,0,0.08)",cursor:"pointer",boxShadow:"0 2px 6px rgba(0,0,0,0.08)",transition:"transform 0.2s ease, box-shadow 0.2s ease"},onMouseEnter:e=>{e.currentTarget.style.transform="translateY(-2px)",e.currentTarget.style.boxShadow="0 4px 12px rgba(0,0,0,0.12)"},onMouseLeave:e=>{e.currentTarget.style.transform="translateY(0)",e.currentTarget.style.boxShadow="0 2px 6px rgba(0,0,0,0.08)"},children:[(0,y.jsx)(n,{size:16,color:"#fff"===e.color?"#333":e.color}),(0,y.jsx)("span",{style:{fontSize:"12px",fontWeight:500,color:"#333"},children:e.name})]},t)}))})]}),(0,y.jsxs)(a.E.div,{variants:z,style:{marginBottom:"clamp(0px, 0.5vh, 10px)"},children:[(0,y.jsx)("p",{style:{color:"rgba(255,255,255,0.4)",fontSize:"10px",fontWeight:600,textTransform:"uppercase",letterSpacing:"1.2px",margin:"0 0 clamp(3px, 0.8vh, 8px) 0",textAlign:"center"},children:"Deploy on any messaging platform"}),(0,y.jsx)("div",{style:{display:"flex",gap:"8px",justifyContent:"center",flexWrap:"wrap"},children:v.map(((n,i)=>{const o=n.icon,r=i===e;return(0,y.jsx)(a.E.div,{animate:{scale:r?1.15:1,y:r?-3:0},transition:{duration:.2},style:{display:"flex",alignItems:"center",justifyContent:"center",width:"clamp(32px, 4.2vh, 42px)",height:"clamp(32px, 4.2vh, 42px)",background:r?n.color:"rgba(255,255,255,0.95)",borderRadius:"10px",boxShadow:r?`0 6px 20px ${n.color}50`:"0 2px 6px rgba(0,0,0,0.1)",cursor:"pointer",transition:"all 0.2s ease"},onMouseEnter:()=>t(i),onClick:()=>window.open("https://www.conferbot.com"+n.url,"_blank","noopener,noreferrer"),title:n.name,children:(0,y.jsx)(o,{size:20,color:r?"#fff":n.color,style:{transition:"color 0.2s ease"}})},i)}))})]}),(0,y.jsxs)(a.E.div,{variants:z,style:{background:"rgba(255,255,255,0.06)",backdropFilter:"blur(16px)",WebkitBackdropFilter:"blur(16px)",borderRadius:"14px",padding:"clamp(9px, 1.4vh, 14px) 18px",border:"1px solid rgba(255,255,255,0.12)",boxShadow:"0 8px 32px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.08)",marginBottom:"clamp(0px, 0.5vh, 10px)",width:"100%",maxWidth:"480px"},children:[(0,y.jsx)(r.M,{mode:"wait",children:(0,y.jsxs)(a.E.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.5,ease:"easeInOut"},style:{textAlign:"center"},children:[(0,y.jsx)("div",{style:{display:"flex",gap:"3px",marginBottom:"clamp(2px, 0.6vh, 6px)",justifyContent:"center"},children:[1,2,3,4,5].map((e=>(0,y.jsx)("span",{style:{color:"#fbbf24",fontSize:"12px"},children:"\u2605"},e)))}),(0,y.jsxs)("p",{style:{color:"#fff",fontSize:"clamp(13px, 1.5vh, 14px)",fontWeight:500,margin:"0 0 clamp(3px, 0.7vh, 6px) 0",lineHeight:1.4},children:['"',C[n].quote,'"']}),(0,y.jsxs)("p",{style:{color:"rgba(255,255,255,0.5)",fontSize:"12px",margin:0},children:[C[n].role," at ",C[n].company]})]},n)}),(0,y.jsx)("div",{style:{display:"flex",gap:"5px",marginTop:"clamp(4px, 0.9vh, 8px)",justifyContent:"center"},children:C.map(((e,t)=>(0,y.jsx)("div",{onClick:()=>j(t),style:{width:t===n?"18px":"6px",height:"6px",borderRadius:"3px",background:t===n?"#fbbf24":"rgba(255,255,255,0.2)",transition:"all 0.3s ease",cursor:"pointer"}},t)))})]}),(0,y.jsx)(a.E.div,{variants:z,style:{display:"flex",gap:"24px",justifyContent:"center",flexWrap:"wrap"},children:[{value:"50M+",label:"Messages sent"},{value:"10K+",label:"Active businesses"},{value:"99.9%",label:"Uptime SLA"},{value:"4.9/5",label:"User rating"}].map(((e,t)=>(0,y.jsxs)("div",{style:{textAlign:"center"},children:[(0,y.jsx)("div",{style:{fontSize:"clamp(16px, 2.1vh, 20px)",fontWeight:700,color:"#fff",lineHeight:1,marginBottom:"4px"},children:e.value}),(0,y.jsx)("div",{style:{fontSize:"11px",color:"rgba(255,255,255,0.5)",fontWeight:500},children:e.label})]},t)))})]}),(0,y.jsxs)(a.E.div,{variants:z,style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"clamp(4px, 1vh, 10px)",paddingTop:"clamp(6px, 1.2vh, 12px)",paddingBottom:"clamp(0px, 0.6vh, 8px)"},children:[(0,y.jsxs)("div",{style:{textAlign:"center"},children:[(0,y.jsx)("span",{style:{color:"rgba(255,255,255,0.6)",fontSize:"12px",fontWeight:600},children:"Trusted by 10,000+ businesses worldwide"}),(0,y.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"4px",marginTop:"4px"},children:[[1,2,3,4,5].map((e=>(0,y.jsx)("span",{style:{color:"#fbbf24",fontSize:"14px"},children:"\u2605"},e))),(0,y.jsx)("span",{style:{color:"rgba(255,255,255,0.5)",fontSize:"11px",marginInlineStart:"4px"},children:"4.9/5 from 500+ reviews"})]})]}),(0,y.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"24px"},children:[{url:"https://www.capterra.com/p/264691/Conferbot/reviews",img:f.Z,name:"Capterra"},{url:"https://www.getapp.com/customer-service-support-software/a/conferbot/reviews/",img:u,name:"GetApp",imgStyle:{height:"clamp(17px, 2.3vh, 24px)"},wrapStyle:{background:"#fff",padding:"clamp(4px, 0.7vh, 7px) 12px",borderRadius:"8px",display:"inline-flex",alignItems:"center"}},{url:"https://www.softwareadvice.com/live-chat/conferbot-profile/reviews/",img:b,name:"Software Advice"}].map(((e,t)=>(0,y.jsx)("a",{href:e.url,target:"_blank",rel:"noreferrer","aria-label":e.name,title:e.name,style:{opacity:.9,transition:"opacity 0.2s ease"},onMouseEnter:e=>e.currentTarget.style.opacity=1,onMouseLeave:e=>e.currentTarget.style.opacity=.9,children:(0,y.jsx)("span",{style:e.wrapStyle||{},children:(0,y.jsx)("img",{src:e.img,alt:"",loading:"eager",decoding:"async",style:{height:"clamp(25px, 3.5vh, 36px)",...e.imgStyle||{}}})})},t)))})]})]}),(0,y.jsxs)("div",{className:"re-captcha-container",children:[(0,y.jsx)("img",{src:m,alt:"re-captcha-logo",className:"re-captcha-logo"}),(0,y.jsxs)("div",{className:"slider-captcha",children:[(0,y.jsx)("span",{style:{display:"block",whiteSpace:"nowrap"},children:"protected by reCAPTCHA"}),(0,y.jsxs)("div",{children:[(0,y.jsx)("a",{href:"https://www.conferbot.com/privacy-policy",target:"_blank",rel:"noreferrer",style:{color:"inherit"},children:"Privacy"})," - ",(0,y.jsx)("a",{href:"https://www.conferbot.com/terms-of-service",target:"_blank",rel:"noreferrer",style:{color:"inherit"},children:"Terms"})]})]})]})]})}}}]);
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.