PageSourceSearch

https://dashboard.klyient.ai/_next/static/chunks/app/start/page-fed42817191740d6.js

js klyient.ai collected 2026-10-05 14:31:01 UTC 14,638 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2670],{50375:function(e,t,n){Promise.resolve().then(n.bind(n,68263))},38292:function(e,t,n){"use strict";n.d(t,{default:function(){return c}});var r=n(2265),s={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1};var l=n(28308);let i=(0,r.createContext)({}),o=()=>(0,r.useContext)(i),c=(0,r.forwardRef)((e,t)=>{var n,i,c;let{color:u,size:d,strokeWidth:x,absoluteStrokeWidth:f,className:h="",children:m,iconNode:p,...g}=e,{size:b=24,strokeWidth:j=2,absoluteStrokeWidth:v=!1,color:y="currentColor",className:N=""}=null!==(n=o())&&void 0!==n?n:{},w=(null!=f?f:v)?24*Number(null!=x?x:j)/Number(null!=d?d:b):null!=x?x:j;return(0,r.createElement)("svg",{ref:t,...s,width:null!==(i=null!=d?d:b)&&void 0!==i?i:s.width,height:null!==(c=null!=d?d:b)&&void 0!==c?c:s.height,stroke:null!=u?u:y,strokeWidth:w,className:(0,l.z)("lucide",N,h),...!m&&!a(g)&&{"aria-hidden":"true"},...g},[...p.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(m)?m:[m]])})},47411:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(2265),s=n(28308);let a=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),l=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),i=e=>{let t=l(e);return t.charAt(0).toUpperCase()+t.slice(1)};var o=n(38292);let c=(e,t)=>{let n=(0,r.forwardRef)((n,l)=>{let{className:c,...u}=n;return(0,r.createElement)(o.default,{ref:l,iconNode:t,className:(0,s.z)("lucide-".concat(a(i(e))),"lucide-".concat(e),c),...u})});return n.displayName=i(e),n}},30401:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(47411).Z)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},51817:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(47411).Z)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},82718:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(47411).Z)("message-circle",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]])},28308:function(e,t,n){"use strict";n.d(t,{z:function(){return r}});let r=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim()}},99376:function(e,t,n){"use strict";var r=n(35475);n.o(r,"useParams")&&n.d(t,{useParams:function(){return r.useParams}}),n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}})},68263:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var r=n(57437),s=n(2265),a=n(27648),l=n(83464),i=n(99376),o=n(51817),c=n(82718),u=n(29919),d=n(19907),x=n(66474),f=n(892),h=n(80656),m=n(87159);function p(){let e=(0,i.useRouter)(),[t,n]=(0,s.useState)(""),[p,g]=(0,s.useState)(""),[b,j]=(0,s.useState)("dental"),[v,y]=(0,s.useState)([]),[N,w]=(0,s.useState)("details"),[_,k]=(0,s.useState)(""),[S,C]=(0,s.useState)(30),[Z,z]=(0,s.useState)(!1),[A,E]=(0,s.useState)(null),[P,R]=(0,s.use
1State)(!1);(0,s.useEffect)(()=>{let t=(0,h.nP)();t.userId&&t.token&&e.replace(t.registered?"/dashboard/home":"/start/google")},[e]),(0,s.useEffect)(()=>{(0,m.oz)().then(y)},[]);let M=async e=>{var n,r,s;if(null==e||e.preventDefault(),E(null),R(!1),!h.VC.test(p))return E("Enter a valid 10-digit mobile number.");z(!0);try{let e=await l.Z.post("".concat(h.z0,"/auth/signup/start"),{mobile_no:"91".concat(p),name:t.trim()||void 0,vertical:b,tier:"lite"});C(Number(null===(n=e.data)||void 0===n?void 0:n.resend_in_seconds)||30),w("code")}catch(e){(null==e?void 0:null===(s=e.response)||void 0===s?void 0:null===(r=s.data)||void 0===r?void 0:r.status)==="ALREADY_REGISTERED"&&R(!0),E((0,h.Os)(e,"Could not send the code. Try again."))}finally{z(!1)}},F=async()=>{try{await l.Z.post("".concat(h.z0,"/auth/signup/resend"),{mobile_no:"91".concat(p)})}catch(e){E((0,h.Os)(e,"Could not send the code again."))}},W=async t=>{if(null==t||t.preventDefault(),6!==_.length)return E("Enter the 6-digit code.");z(!0),E(null);try{let t=await l.Z.post("".concat(h.z0,"/auth/signup/verify"),{mobile_no:"91".concat(p),code:_});(0,h.Aj)(t.data),e.push("/start/google")}catch(e){E((0,h.Os)(e,"Could not check the code.")),z(!1)}};return(0,r.jsx)(u.ZP,{step:1,narrow:!0,top:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{children:"Already with Klyient?"}),(0,r.jsx)(a.default,{href:"/login",className:d._0,children:"Sign in"})]}),bottom:(0,r.jsx)(d.vl,{ask:"Questions first?",label:"Message our receptionist on WhatsApp"}),after:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.SX,{}),(0,r.jsx)(d.un,{className:"lg:hidden"}),(0,r.jsxs)("p",{className:"text-center text-[14.5px] text-muted-foreground lg:hidden",children:["Already with Klyient? ",(0,r.jsx)(a.default,{href:"/login",className:d.Vl,children:"Sign in"})]})]}),children:(0,r.jsxs)("div",{children:[(0,r.jsx)(d.l3,{title:"Start your free trial",sub:"About ten minutes to go live."}),"details"===N?(0,r.jsxs)("form",{onSubmit:M,className:"flex flex-col gap-4",children:[(0,r.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,r.jsx)(d.Ye,{id:"name",label:"Your name",children:(0,r.jsx)("input",{id:"name",value:t,onChange:e=>n(e.target.value),placeholder:"Dr Anjali Malik",autoComplete:"name",disabled:Z,className:d.rk})}),(0,r.jsx)(d.Ye,{id:"mobile",label:"Mobile number",children:(0,r.jsx)(d.VL,{id:"mobile",value:p,onChange:g,disabled:Z})})]}),v.length>1&&(0,r.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,r.jsx)("span",{id:"practice-label",className:"text-sm font-extrabold text-foreground",children:"Your practice"}),(0,r.jsx)("div",{role:"radiogroup","aria-labelledby":"practice-label",className:"grid grid-cols-2 gap-2 sm:grid-cols-3 sm:gap-2.5",children:v.map(e=>{let t=e.slug===b;return(0,r.jsx)("button",{type:"button",role:"radio","aria-checked":t,onClick:()=>j(e.slug),disabled:Z,className:(0,x.cn)("min-h-[48px] rounded-xl px-2.5 py-1.5 text-sm font-extrabold leading-tight transition-colors",t?"bg-primary text-white":"bg-white text-primary shadow-[inset_0_0_0_1.5px_#c7c8fa] hover:bg-secondary"),children:e.label},e.slug)})})]}),(0,r.jsx)(u.jj,{children:A&&(0,r.jsxs)(r.Fragment,{children:[A,P&&(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsx)(a.default,{href:"/login",className:"underline",children:"Sign in"})]})]})}),(0,r.jsx)(d.$m,{type:"submit",disabled:Z,className:"mt-1.5",children:Z?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Z,{className:"size-4 animate-spin"})," Sending…"]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.Z,{className:"size-[18px]","aria-hidden":"true"})," Send code on WhatsApp"]})}),(0,r.jsxs)("p",{className:"text-center text-[13px] text-muted-foreground",children:["By continuing you agree to the ",(0,r.jsx)("a",{href:"/terms",target:"_blank",className:"font-bold text-primary hover:underline",children:"Terms"})," and ",(0,r.jsx)("a",{href:"/privacy",target:"_blank",className:"font-bold text-primary hover:underline",children:"Privacy Policy"}),"."]})]}):(0,r.jsxs)("form",{onSubmit:W,className:"flex flex-col gap-4",children:[(0,r.jsx)(f.Z,{label:"Code sent to +91 ".concat((0,h.rk)(p).replace(/(\d{5})(\d{5}
1)/,"$1 $2")),value:_,onChange:k,disabled:Z,resendIn:S,onResend:F,aside:(0,r.jsx)("button",{type:"button",onClick:()=>{w("details"),k(""),E(null)},className:d.Vl,children:"Change number"})}),(0,r.jsx)(u.jj,{children:A}),(0,r.jsx)(d.$m,{type:"submit",disabled:Z||6!==_.length,children:Z?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Z,{className:"size-4 animate-spin"})," Checking…"]}):"Continue"})]})]})})}},892:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(57437),s=n(2265),a=n(66474);let l=e=>"".concat(Math.floor(e/60),":").concat(String(e%60).padStart(2,"0"));function i(e){let{id:t="code",label:n="6-digit code",value:i,onChange:o,disabled:c,resendIn:u=30,onResend:d,aside:x,className:f}=e,[h,m]=(0,s.useState)(u);(0,s.useEffect)(()=>{m(u)},[u]),(0,s.useEffect)(()=>{if(h<=0)return;let e=setTimeout(()=>m(e=>e-1),1e3);return()=>clearTimeout(e)},[h]);let p=(i||"").padEnd(6," ").split("");return(0,r.jsxs)("div",{className:(0,a.cn)("flex flex-col gap-2",f),children:[(0,r.jsx)("label",{htmlFor:t,className:"text-sm font-extrabold text-foreground",children:n}),(0,r.jsxs)("div",{className:"relative w-fit max-w-full",children:[(0,r.jsx)("div",{"aria-hidden":"true",className:"flex gap-2 sm:gap-2.5",children:p.map((e,t)=>(0,r.jsx)("span",{className:(0,a.cn)("flex h-14 w-12 items-center justify-center rounded-xl bg-white font-display text-[26px] font-extrabold text-foreground sm:h-[60px] sm:w-[52px]",t!==Math.min((i||"").length,5)||c?"shadow-[inset_0_0_0_1.5px_#c7c8fa]":"shadow-[inset_0_0_0_2px_#3730a3]"),children:e.trim()},t))}),(0,r.jsx)("input",{id:t,value:i,onChange:e=>o(e.target.value.replace(/\D/g,"").slice(0,6)),inputMode:"numeric",autoComplete:"one-time-code",maxLength:6,disabled:c,autoFocus:!0,className:"absolute inset-0 h-full w-full cursor-text opacity-0"})]}),(d||x)&&(0,r.jsxs)("div",{className:"flex items-center justify-between gap-3 text-sm",children:[d?h>0?(0,r.jsxs)("span",{className:"text-muted-foreground",children:["Resend in ",(0,r.jsx)("b",{className:"tabular-nums text-foreground",children:l(h)})]}):(0,r.jsx)("button",{type:"button",onClick:async()=>{await d(),m(u)},className:"inline-flex min-h-[44px] items-center font-extrabold text-primary hover:underline",children:"Resend code"}):(0,r.jsx)("span",{}),x]})]})}},29919:function(e,t,n){"use strict";n.d(t,{Gn:function(){return b},KM:function(){return m},ZP:function(){return x},gN:function(){return g},gh:function(){return p},jj:function(){return j},rQ:function(){return f},s_:function(){return h}});var r=n(57437),s=n(2265),a=n(30401),l=n(82718),i=n(66474),o=n(80656),c=n(19907);let u=["Your number","Google","Clinic","WhatsApp"];function d(e){let{step:t}=e;return(0,r.jsx)("ol",{"aria-label":"Steps",className:"mb-6 flex items-center gap-x-2.5 sm:gap-x-3",children:u.map((e,n)=>{let l=n+1,o=l<t,c=l===t;return(0,r.jsxs)(s.Fragment,{children:[n>0&&(0,r.jsx)("li",{"aria-hidden":"true",className:(0,i.cn)("h-0.5 min-w-3 flex-1 rounded-full",l<=t?"bg-primary":"bg-border")}),(0,r.jsxs)("li",{"aria-current":c?"step":void 0,className:"flex items-center gap-2",children:[(0,r.jsx)("span",{className:(0,i.cn)("flex size-[26px] shrink-0 items-center justify-center rounded-full text-[13px] font-extrabold",c||o?"bg-primary text-white":"text-primary shadow-[inset_0_0_0_1.5px_#c7c8fa]"),children:o?(0,r.jsx)(a.Z,{className:"size-3.5",strokeWidth:3}):l}),(0,r.jsx)("span",{className:(0,i.cn)("whitespace-nowrap text-[13.5px]",c?"font-extrabold text-foreground":"hidden font-semibold text-muted-foreground sm:inline"),children:e})]})]},e)})})}function x(e){let{step:t,narrow:n=!1,top:s,bottom:a,after:i,children:u}=e,x=1===t?"30+ clinics across Delhi NCR, Pune and Mumbai":(0,r.jsxs)("a",{href:o.Cc,target:"_blank",rel:"noopener noreferrer",className:"inline-flex min-h-[44px] items-center gap-2 text-sm font-bold text-white hover:text-white/85",children:[(0,r.jsx)(l.Z,{className:"size-4"})," Stuck? Message us on WhatsApp"]});return(0,r.jsxs)(c.ZP,{left:(0,r.jsx)(c.sn,{}),line:1===t?"7 days of Grow, free.":"Set up your clinic",sub:1===t?"No card. Plans from ₹799 / 3 months.":null,foot:x,size:n?"md":"lg",card:n,top:s,bottom:a,after:i,children:[(0,r.jsx)(d,{step:t}),(0,r.jsx)("div",{className:"flex flex-col gap-6",children:u})]})}function f(e){let{title:t,sub:n}=e;return(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:"font-display text-3xl font-extrabold text-foreground sm:text-[34px]",children:t}),n&&(0,r.jsx)("p",{className:"mt-2 text-base text-muted-foreground",children:n})]})}function h(e){let{className:t,children:n}=e;return(0,r.jsx)("div",{className:(0,i.cn)("rounded-[20px] bg-white p-6 shadow-[0_1px_3px_rgba(22,22,63,0.06)] sm:p-7",t),children:n})}function m(e){let{className:t,children:n,...s}=e;return(0,r.jsx)("button",{...s,className:(0,i.cn)("inline-flex min-h-[48px] items-center justify-center gap-2 rounded-xl bg-primary px-5 text-[15px] font-extrabold text-white transition-colors hover:bg-primary/90 disabled:opacity-60",t),children:n})}function p(e){let{className:t,children:n,...s}=e;return(0,r.jsx)("button",{...s,className:(0,i.cn)("inline-flex min-h-[44px] items-center justify-center gap-2 rounded-xl px-4 text-sm font-extrabold text-primary transition-colors hover:bg-secondary disabled:opacity-60",t),children:n})}function g(e){let{id:t,label:n,hint:s,children:a}=e;return(0,r.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,r.jsx)("label",{htmlFor:t,className:"text-sm font-bold text-foreground",children:n}),a,s&&(0,r.jsx)("p",{className:"text-[13px] text-muted-foreground",children:s})]})}let b="min-h-[46px] w-full rounded-xl border-[1.5px] border-border bg-white px-3.5 text-[15px] text-foreground placeholder:text-slate-400 focus-visible:border-primary focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-secondary disabled:opacity-60";function j(e){let{children:t}=e;return t?(0,r.jsx)("p",{role:"alert",className:"rounded-xl bg-rose-50 px-4 py-3 text-sm font-semibold text-rose-800",children:t}):null}},87159:function(e,t,n){"use strict";n.d(t,{KH:function(){return d},ef:function(){return u},oz:function(){return o},t9:function(){return c}});var r=n(2265),s=n(83464),a=n(64131);let l=null,i=null;async function o(){if(l)return l;if(i)return i;let e=a.Z.get("authtoken");return i=s.Z.get("".concat("https://api.klyient.ai","/verticals"),{headers:{Authorization:e}}).then(e=>{var t;return l=(null===(t=e.data)||void 0===t?void 0:t.verticals)||[]}).catch(()=>(i=null,[]))}function c(){let[e,t]=(0,r.useState)(l||[]);return(0,r.useEffect)(()=>{let e=!0;return o().then(n=>{e&&t(n)}),()=>{e=!1}},[]),e}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=c();if(!n.length)return e;if(t){let r=n.find(e=>e.slug===t);return r?r.qa_categories:e}let r=new Set;for(let e of n)for(let t of e.qa_categories)r.add(t);let s=[...r];return s.filter(e=>"other"!==e).concat(s.includes("other")?["other"]:[])}function d(e){return(null==e?void 0:e.vertical)||"dental"}}},function(e){e.O(0,[3464,6137,4639,2903,2971,2117,1744],function(){return e(e.s=50375)}),_N_E=e.O()}]);

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.