PageSourceSearch

https://plant4growthuk-production-a1cd.up.railway.app/static/js/1980.4a2cdc05.chunk.js

js plant4growthuk-production-a1cd.up.railway.app collected 2026-10-03 12:13:31 UTC 23,746 bytes, 3 lines download raw bytes

1/*! For license information please see 1980.4a2cdc05.chunk.js.LICENSE.txt */
2"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[1980],{1286(e,t,s){s.d(t,{A:()=>a});const a=(0,s(7784).A)("phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]])},1980(e,t,s){s.r(t),s.d(t,{LoginPage:()=>N,default:()=>j});var a=s(5043),n=s(5685),r=s(8729),o=s(3390),l=s(2264),i=s(9938),c=s(1140),d=s(9690),u=s(6328),m=s(2024),p=s(5469),f=s(5727),v=s(5327),h=s(1286),x=s(8384),g=s(4459),b=s(579);const N=()=>{const[e,t]=(0,a.useState)(!1),[s,N]=(0,a.useState)(""),[j,w]=(0,a.useState)(""),[y,A]=(0,a.useState)(""),[C,R]=(0,a.useState)(""),[T,D]=(0,a.useState)(""),[F,S]=(0,a.useState)(""),[I,M]=(0,a.useState)(!1),[E,_]=(0,a.useState)(""),{login:k,sendOtp:B,verifyOtp:P}=(0,r.As)(),L=(0,n.Zp)();return(0,b.jsxs)("div",{className:"min-h-screen flex",children:[(0,b.jsxs)("div",{className:"hidden lg:flex lg:w-1/2 relative bg-cover bg-center",style:{backgroundImage:"url('https://images.pexels.com/photos/6203473/pexels-photo-6203473.jpeg')"},children:[(0,b.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-[#0D1B2A]/90 to-[#1B3A4B]/80"}),(0,b.jsxs)("div",{className:"relative z-10 flex flex-col justify-center px-12 text-white",children:[(0,b.jsxs)(n.N_,{to:"/",className:"flex items-center gap-2 text-[#41EAD4] hover:text-white transition-colors mb-12",children:[(0,b.jsx)(p.A,{className:"w-5 h-5"}),"Back to Home"]}),(0,b.jsxs)("div",{className:"flex items-center gap-3 mb-8",children:[(0,b.jsx)("div",{className:"w-14 h-14 bg-[#41EAD4] rounded-xl flex items-center justify-center font-bold text-[#0D1B2A] text-2xl",children:"P"}),(0,b.jsxs)("div",{children:[(0,b.jsx)("h1",{className:"text-2xl font-bold tracking-tight",children:"Plan 4 Growth"}),(0,b.jsx)("p",{className:"text-slate-300 text-sm",children:"Member Portal"})]})]}),(0,b.jsxs)("h2",{className:"text-4xl font-bold mb-4 font-['Manrope']",children:["Elevate Your ",(0,b.jsx)("br",{}),(0,b.jsx)("span",{className:"text-[#41EAD4]",children:"Dental Practice"})]}),(0,b.jsx)("p",{className:"text-slate-300 text-lg max-w-md leading-relaxed",children:"Access world-class dental training programs, submit assignments, and track your progress towards certification."})]})]}),(0,b.jsx)("div",{className:"flex-1 flex items-center justify-center p-8 bg-[#F8FAFC]",children:(0,b.jsxs)("div",{className:"w-full max-w-md",children:[(0,b.jsxs)("div",{className:"lg:hidden flex items-center gap-3 mb-8",children:[(0,b.jsx)("div",{className:"w-12 h-12 bg-[#0D1B2A] rounded-xl flex items-center justify-center",children:(0,b.jsx)("span",{className:"text-[#41EAD4] font-bold text-xl",children:"P"})}),(0,b.jsxs)("div",{children:[(0,b.jsx)("h1",{className:"text-xl font-bold text-[#0D1B2A]",children:"Plan 4 Growth"}),(0,b.jsx)("p",{className:"text-slate-500 text-sm",children:"Member Portal"})]})]}),(0,b.jsxs)(c.Zp,{className:"border-slate-200 shadow-lg",children:[(0,b.jsxs)(c.aR,{className:"text-center pb-2",children:[(0,b.jsx)(c.ZB,{className:"text-2xl font-bold text-[#0D1B2A]",children:"Welcome"}),(0,b.jsx)(c.BT,{children:"Sign in to access your courses and assignments"})]}),(0,b.jsxs)(c.Wu,{className:"pt-4",children:[(0,b.jsxs)(d.tU,{defaultValue:"login",className:"w-full",children:[(0,b.jsxs)(d.j7,{className:"grid w-full grid-cols-2 mb-6",children:[(0,b.jsx)(d.Xi,{value:"login","data-testid":"login-tab",children:"Sign In"}),(0,b.jsx)(d.Xi,{value:"register","data-testid":"register-tab",children:"Register"})]}),(0,b.jsx)(d.av,{value:"login",children:(0,b.jsxs)("form",{onSubmit:async e=>{e.preventDefault(),t(!0);try{const e=await k(s,j);u.oR.success("Welcome back!"),["super_admin","instructor","reviewer","developer","course_coordinator"].includes(e.role)?L("/admin"):"seo"===e.role?L("/admin/blogs"):L("/dashboard")}catch(r){var a,n;const e=null===(a=r.response)||void 0===a||null===(n=a.data)||void 0===n?void 0:n.detail;u.oR.error("string"===typeof e?e:"Login failed")}finally{t(!1)}},className:"space-y-4",children:[(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(i.J,{htmlFor:"login-email",children:"Email"}),(0,b.jsxs)("div",{className:"relative",children:[(0,b.jsx)(v.A,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400"}),(0,b.jsx)(l.p,{id:"login-email",type:"email",placeholder:"[email protected]",value:s,onChange:e=>N(e.target.value),className:"pl-10",required:!0,"data-testid":"login-email"})]})]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(i.J,{htmlFor:"login-password",children:"Password"}),(0,b.jsxs)("div",{className:"relative",children:[(0,b.jsx)(f.A,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400"}),(0,b.jsx)(l.p,{id:"login-password",type:"password",placeholder:"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",value:j,onChange:e=>w(e.target.value),className:"pl-10",required:!0,"data-testid":"login-password"})]})]}),(0,b.jsx)("div",{className:"text-right -mt-2",children:(0,b.jsx)(n.N_,{to:"/reset-password",className:"text-xs text-[#0D1B2A] hover:text-[#41EAD4] underline","data-testid":"forgot-password-link",children:"Forgot / reset password?"})}),(0,b.jsxs)(o.$,{type:"submit",className:"w-full bg-[#0D1B2A] hover:bg-[#1B3A4B] text-white",disabled:e,"data-testid":"login-submit",children:[e?(0,b.jsx)(m.A,{className:"w-4 h-4 animate-spin mr-2"}):null,"Sign In"]})]})}),(0,b.jsx)(d.av,{value:"register",children:I?(0,b.jsxs)("form",{onSubmit:async e=>{e.preventDefault(),t(!0);try{await P(C,E),u.oR.success("Account created successfully!"),L("/dashboard")}catch(n){var s,a;const e=null===(s=n.response)||void 0===s||null===(a=s.data)||void 0===a?void 0:a.detail;u.oR.error("string"===typeof e?e:"Invalid or expired code")}finally{t(!1)}},className:"space-y-4",children:[(0,b.jsxs)("div",{className:"text-center mb-2",children:[(0,b.jsx)(x.A,{className:"w-10 h-10 text-[#41EAD4] mx-auto mb-2"}),(0,b.jsxs)("p",{className:"text-sm text-slate-600",children:["We sent a 6-digit code to ",(0,b.jsx)("strong",{children:C})]})]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(i.J,{htmlFor:"register-otp",children:"Verification Code"}),(0,b.jsx)(l.p,{id:"register-otp",type:"text",inputMode:"numeric",placeholder:"123456",value:E,onChange:e=>_(e.target.value.replace(/\D/g,"").slice(0,6)),className:"text-center text-xl tracking-widest",required:!0,maxLength:6,"data-testid":"register-otp"})]}),(0,b.jsxs)(o.$,{type:"submit",className:"w-full bg-[#0D1B2A] hover:bg-[#1B3A4B] text-white",disabled:e||6!==E.length,"data-testid":"register-otp-submit",children:[e?(0,b.jsx)(m.A,{className:"w-4 h-4 animate-spin mr-2"}):null,"Verify & Create Account"]}),(0,b.jsx)("button",{type:"button",className:"w-full text-sm text-slate-500 hover:text-slate-800 underline",onClick:()=>{M(!1),_("")},children:"Go back and change details"})]}):(0,b.jsxs)("form",{onSubmit:async e=>{e.preventDefault();
2const s=y.trim(),a=C.trim(),n=T.trim(),r=F;if(s.length<2)return void u.oR.error("Please enter your full name.");if(!/^[^@\s]+@[^@\s]+\.[^@\s]+$/.test(a))return void u.oR.error("Please enter a valid email address.");if(n.replace(/\D/g,"").length<7)u.oR.error("A valid phone number is required.");else if(r.length<6)u.oR.error("Password must be at least 6 characters.");else{t(!0);try{await B(a,r,s,n),M(!0),u.oR.success("Verification code sent! Check your inbox.")}catch(i){var o,l;const e=null===(o=i.response)||void 0===o||null===(l=o.data)||void 0===l?void 0:l.detail;u.oR.error("string"===typeof e?e:"Could not send verification code")}finally{t(!1)}}},className:"space-y-4",children:[(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(i.J,{htmlFor:"register-name",children:"Full Name"}),(0,b.jsxs)("div",{className:"relative",children:[(0,b.jsx)(g.A,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400"}),(0,b.jsx)(l.p,{id:"register-name",type:"text",placeholder:"Dr. John Smith",value:y,onChange:e=>A(e.target.value),className:"pl-10",required:!0,"data-testid":"register-name"})]})]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(i.J,{htmlFor:"register-email",children:"Email"}),(0,b.jsxs)("div",{className:"relative",children:[(0,b.jsx)(v.A,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400"}),(0,b.jsx)(l.p,{id:"register-email",type:"email",placeholder:"[email protected]",value:C,onChange:e=>R(e.target.value),className:"pl-10",required:!0,"data-testid":"register-email"})]})]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsxs)(i.J,{htmlFor:"register-phone",children:["Phone Number ",(0,b.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,b.jsxs)("div",{className:"relative",children:[(0,b.jsx)(h.A,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400"}),(0,b.jsx)(l.p,{id:"register-phone",type:"tel",placeholder:"+44 7123 456789",value:T,onChange:e=>D(e.target.value),className:"pl-10",required:!0,"data-testid":"register-phone"})]}),(0,b.jsx)("p",{className:"text-xs text-slate-500",children:"We'll use this for course reminders and support only."})]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(i.J,{htmlFor:"register-password",children:"Password"}),(0,b.jsxs)("div",{className:"relative",children:[(0,b.jsx)(f.A,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400"}),(0,b.jsx)(l.p,{id:"register-password",type:"password",placeholder:"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",value:F,onChange:e=>S(e.target.value),className:"pl-10",required:!0,minLength:6,"data-testid":"register-password"})]})]}),(0,b.jsxs)(o.$,{type:"submit",className:"w-full bg-[#0D1B2A] hover:bg-[#1B3A4B] text-white",disabled:e,"data-testid":"register-submit",children:[e?(0,b.jsx)(m.A,{className:"w-4 h-4 animate-spin mr-2"}):null,"Continue"]})]})})]}),(0,b.jsxs)("div",{className:"relative my-6",children:[(0,b.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,b.jsx)("div",{className:"w-full border-t border-slate-200"})}),(0,b.jsx)("div",{className:"relative flex justify-center text-xs uppercase",children:(0,b.jsx)("span",{className:"bg-white px-2 text-slate-500",children:"Or continue with"})})]}),(0,b.jsxs)(o.$,{type:"button",variant:"outline",className:"w-full border-slate-200 hover:bg-slate-50",onClick:()=>{const e=window.location.origin+"/auth/callback";window.location.href="https://auth.emergentagent.com/?redirect=".concat(encodeURIComponent(e))},"data-testid":"google-login",children:[(0,b.jsxs)("svg",{className:"w-5 h-5 mr-2",viewBox:"0 0 24 24",children:[(0,b.jsx)("path",{fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),(0,b.jsx)("path",{fill:"#34A853",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),(0,b.jsx)("path",{fill:"#FBBC05",d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),(0,b.jsx)("path",{fill:"#EA4335",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"})]}),"Sign in with Google"]})]})]})]})})]})},j=N},2894(e,t,s){s.d(t,{C:()=>o});var a=s(5043),n=s(2814),r=s(503);var o=e=>{const{present:t,children:s}=e,o=function(e){const[t,s]=a.useState(),n=a.useRef(null),o=a.useRef(e),i=a.useRef("none"),c=e?"mounted":"unmounted",[d,u]=function(e,t){return a.useReducer((e,s)=>{const a=t[e][s];return null!==a&&void 0!==a?a:e},e)}(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const e=l(n.current);i.current="mounted"===d?e:"none"},[d]),(0,r.N)(()=>{const t=n.current,s=o.current;if(s!==e){const a=i.current,n=l(t);if(e)u("MOUNT");else if("none"===n||"none"===(null===t||void 0===t?void 0:t.display))u("UNMOUNT");else{u(s&&a!==n?"ANIMATION_OUT":"UNMOUNT")}o.current=e}},[e,u]),(0,r.N)(()=>
2{if(t){var e;let s;const a=null!==(e=t.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{const r=l(n.current).includes(CSS.escape(e.animationName));if(e.target===t&&r&&(u("ANIMATION_END"),!o.current)){const e=t.style.animationFillMode;t.style.animationFillMode="forwards",s=a.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=e)})}},c=e=>{e.target===t&&(i.current=l(n.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",r),t.addEventListener("animationend",r),()=>{a.clearTimeout(s),t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",r),t.removeEventListener("animationend",r)}}u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:a.useCallback(e=>{n.current=e?getComputedStyle(e):null,s(e)},[])}}(t),i="function"===typeof s?s({present:o.isPresent}):a.Children.only(s),c=(0,n.s)(o.ref,function(e){var t,s;let a=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,n=a&&"isReactWarning"in a&&a.isReactWarning;if(n)return e.ref;if(a=null===(s=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===s?void 0:s.get,n=a&&"isReactWarning"in a&&a.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(i));return"function"===typeof s||o.isPresent?a.cloneElement(i,{ref:c}):null};function l(e){return(null===e||void 0===e?void 0:e.animationName)||"none"}o.displayName="Presence"},5131(e,t,s){s.d(t,{b:()=>u});var a=s(9379),n=s(5043),r=s(3986),o=(s(7950),s(6851)),l=s(579);const i=["asChild"];var c=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const s=(0,o.TL)("Primitive.".concat(t)),c=n.forwardRef((e,n)=>{const{asChild:o}=e,c=(0,r.A)(e,i),d=o?s:t;return"undefined"!==typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(d,(0,a.A)((0,a.A)({},c),{},{ref:n}))});return c.displayName="Primitive.".concat(t),(0,a.A)((0,a.A)({},e),{},{[t]:c})},{});var d=n.forwardRef((e,t)=>(0,l.jsx)(c.label,(0,a.A)((0,a.A)({},e),{},{ref:t,onMouseDown:t=>{var s;t.target.closest("button, input, select, textarea")||(null===(s=e.onMouseDown)||void 0===s||s.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})));d.displayName="Label";var u=d},5469(e,t,s){s.d(t,{A:()=>a});const a=(0,s(7784).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},5727(e,t,s){s.d(t,{A:()=>a});const a=(0,s(7784).A)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},6711(e,t,s){s.d(t,{RG:()=>C,bL:()=>_,q7:()=>k});var a=s(3986),n=s(9379),r=s(5043),o=s(858),l=s(5094),i=s(2814),c=s(1862),d=s(4490),u=s(7914),m=s(7490),p=s(3642),f=s(4204),v=s(579);const h=["__scopeRovingFocusGroup","orientation","loop","dir","currentTabStopId","defaultCurrentTabStopId","onCurrentTabStopIdChange","onEntryFocus","preventScrollOnEntryFocus"],x=["__scopeRovingFocusGroup","focusable","active","tabStopId","children"];var g="rovingFocusGroup.onEntryFocus",b={bubbles:!1,cancelable:!0},N="RovingFocusGroup",[j,w,y]=(0,l.N)(N),[A,C]=(0,c.A)(N,[y]),[R,T]=A(N),D=r.forwardRef((e,t)=>(0,v.jsx)(j.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,v.jsx)(j.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,v.jsx)(F,(0,n.A)((0,n.A)({},e),{},{ref:t}))})}));D.displayName=N;var F=r.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:s,orientation:l,loop:c=!1,dir:d,currentTabStopId:x,defaultCurrentTabStopId:j,onCurrentTabStopIdChange:y,onEntryFocus:A,preventScrollOnEntryFocus:C=!1}=e,T=(0,a.A)(e,h),D=r.useRef(null),F=(0,i.s)(t,D),S=(0,f.jH)(d),[I,M]=(0,p.i)({prop:x,defaultProp:null!==j&&void 0!==j?j:null,onChange:y,caller:N}),[_,k]=r.useState(!1),B=(0,m.c)(A),P=w(s),L=r.useRef(!1),[O,G]=r.useState(0);return r.useEffect(()=>{const e=D.current;if(e)return e.addEventListener(g,B),()=>e.removeEventListener(g,B)},[B]),(0,v.jsx)(R,{scope:s,orientation:l,dir:S,loop:c,currentTabStopId:I,onItemFocus:r.useCallback(e=>M(e),[M]),onItemShiftTab:r.useCallback(()=>k(!0),[]),onFocusableItemAdd:r.useCallback(()=>G(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>G(e=>e-1),[]),children:(0,v.jsx)(u.sG.div,(0,n.A)((0,n.A)({tabIndex:_||0===O?-1:0,"data-orientation":l},T),{},{ref:F,style:(0,n.A)({outline:"none"},e.style),onMouseDown:(0,o.mK)(e.onMouseDown,()=>{L.current=!0}),onFocus:(0,o.mK)(e.onFocus,e=>{const t=!L.current;if(e.target===e.currentTarget&&t&&!_){const t=new CustomEvent(g,b);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=P().filter(e=>
2e.focusable);E([e.find(e=>e.active),e.find(e=>e.id===I),...e].filter(Boolean).map(e=>e.ref.current),C)}}L.current=!1}),onBlur:(0,o.mK)(e.onBlur,()=>k(!1))}))})}),S="RovingFocusGroupItem",I=r.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:s,focusable:l=!0,active:i=!1,tabStopId:c,children:m}=e,p=(0,a.A)(e,x),f=(0,d.B)(),h=c||f,g=T(S,s),b=g.currentTabStopId===h,N=w(s),{onFocusableItemAdd:y,onFocusableItemRemove:A,currentTabStopId:C}=g;return r.useEffect(()=>{if(l)return y(),()=>A()},[l,y,A]),(0,v.jsx)(j.ItemSlot,{scope:s,id:h,focusable:l,active:i,children:(0,v.jsx)(u.sG.span,(0,n.A)((0,n.A)({tabIndex:b?0:-1,"data-orientation":g.orientation},p),{},{ref:t,onMouseDown:(0,o.mK)(e.onMouseDown,e=>{l?g.onItemFocus(h):e.preventDefault()}),onFocus:(0,o.mK)(e.onFocus,()=>g.onItemFocus(h)),onKeyDown:(0,o.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void g.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,s){const a=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,s);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(a)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(a)?void 0:M[a]}(e,g.orientation,g.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=N().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();const r=n.indexOf(e.currentTarget);n=g.loop?(a=r+1,(s=n).map((e,t)=>s[(a+t)%s.length])):n.slice(r+1)}setTimeout(()=>E(n))}var s,a}),children:"function"===typeof m?m({isCurrentTabStop:b,hasTabStop:null!=C}):m}))})});I.displayName=S;var M={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function E(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const s=document.activeElement;for(const a of e){if(a===s)return;if(a.focus({preventScroll:t}),document.activeElement!==s)return}}var _=D,k=I},7127(e,t,s){s.d(t,{B8:()=>k,UC:()=>P,bL:()=>_,l9:()=>B});var a=s(9379),n=s(3986),r=s(5043),o=s(858),l=s(1862),i=s(6711),c=s(2894),d=s(7914),u=s(4204),m=s(3642),p=s(4490),f=s(579);const v=["__scopeTabs","value","onValueChange","defaultValue","orientation","dir","activationMode"],h=["__scopeTabs","loop"],x=["__scopeTabs","value","disabled"],g=["__scopeTabs","value","forceMount","children"];var b="Tabs",[N,j]=(0,l.A)(b,[i.RG]),w=(0,i.RG)(),[y,A]=N(b),C=r.forwardRef((e,t)=>{const{__scopeTabs:s,value:r,onValueChange:o,defaultValue:l,orientation:i="horizontal",dir:c,activationMode:h="automatic"}=e,x=(0,n.A)(e,v),g=(0,u.jH)(c),[N,j]=(0,m.i)({prop:r,onChange:o,defaultProp:null!==l&&void 0!==l?l:"",caller:b});return(0,f.jsx)(y,{scope:s,baseId:(0,p.B)(),value:N,onValueChange:j,orientation:i,dir:g,activationMode:h,children:(0,f.jsx)(d.sG.div,(0,a.A)((0,a.A)({dir:g,"data-orientation":i},x),{},{ref:t}))})});C.displayName=b;var R="TabsList",T=r.forwardRef((e,t)=>{const{__scopeTabs:s,loop:r=!0}=e,o=(0,n.A)(e,h),l=A(R,s),c=w(s);return(0,f.jsx)(i.bL,(0,a.A)((0,a.A)({asChild:!0},c),{},{orientation:l.orientation,dir:l.dir,loop:r,children:(0,f.jsx)(d.sG.div,(0,a.A)((0,a.A)({role:"tablist","aria-orientation":l.orientation},o),{},{ref:t}))}))});T.displayName=R;var D="TabsTrigger",F=r.forwardRef((e,t)=>{const{__scopeTabs:s,value:r,disabled:l=!1}=e,c=(0,n.A)(e,x),u=A(D,s),m=w(s),p=M(u.baseId,r),v=E(u.baseId,r),h=r===u.value;return(0,f.jsx)(i.q7,(0,a.A)((0,a.A)({asChild:!0},m),{},{focusable:!l,active:h,children:(0,f.jsx)(d.sG.button,(0,a.A)((0,a.A)({type:"button",role:"tab","aria-selected":h,"aria-controls":v,"data-state":h?"active":"inactive","data-disabled":l?"":void 0,disabled:l,id:p},c),{},{ref:t,onMouseDown:(0,o.mK)(e.onMouseDown,e=>{l||0!==e.button||!1!==e.ctrlKey?e.preventDefault():u.onValueChange(r)}),onKeyDown:(0,o.mK)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&u.onValueChange(r)}),onFocus:(0,o.mK)(e.onFocus,()=>{const e="manual"!==u.activationMode;h||l||!e||u.onValueChange(r)})}))}))});F.displayName=D;var S="TabsContent",I=r.forwardRef((e,t)=>{const{__scopeTabs:s,value:o,forceMount:l,children:i}=e,u=(0,n.A)(e,g),m=A(S,s),p=M(m.baseId,o),v=E(m.baseId,o),h=o===m.value,x=r.useRef(h);return r.useEffect(()=>{const e=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,f.jsx)(c.C,{present:l||h,children:s=>{let{present:n}=s;return(0,f.jsx)(d.sG.div,(0,a.A)((0,a.A)({"data-state":h?"active":"inactive","data-orientation":m.orientation,role:"tabpanel","aria-labelledby":p,hidden:!n,id:v,tabIndex:0},u),{},{ref:t,style:(0,a.A)((0,a.A)({},e.style),{},{animationDuration:x.current?"0s":void 0}),children:n&&i}))}})});function M(e,t){return"".concat(e,"-trigger-").concat(t)}function E(e,t){return"".concat(e,"-content-").concat(t)}I.displayName=S;var _=C,k=T,B=F,P=I},8384(e,t,s){s.d(t,{A:()=>a});const a=(0,s(7784).A)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
2y:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},9690(e,t,s){s.d(t,{Xi:()=>f,av:()=>v,j7:()=>p,tU:()=>m});var a=s(9379),n=s(3986),r=s(5043),o=s(7127),l=s(9766),i=s(579);const c=["className"],d=["className"],u=["className"],m=o.bL,p=r.forwardRef((e,t)=>{let{className:s}=e,r=(0,n.A)(e,c);return(0,i.jsx)(o.B8,(0,a.A)({ref:t,className:(0,l.cn)("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",s)},r))});p.displayName=o.B8.displayName;const f=r.forwardRef((e,t)=>{let{className:s}=e,r=(0,n.A)(e,d);return(0,i.jsx)(o.l9,(0,a.A)({ref:t,className:(0,l.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",s)},r))});f.displayName=o.l9.displayName;const v=r.forwardRef((e,t)=>{let{className:s}=e,r=(0,n.A)(e,u);return(0,i.jsx)(o.UC,(0,a.A)({ref:t,className:(0,l.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",s)},r))});v.displayName=o.UC.displayName},9938(e,t,s){s.d(t,{J:()=>m});var a=s(9379),n=s(3986),r=s(5043),o=s(5131),l=s(917),i=s(9766),c=s(579);const d=["className"],u=(0,l.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),m=r.forwardRef((e,t)=>{let{className:s}=e,r=(0,n.A)(e,d);return(0,c.jsx)(o.b,(0,a.A)({ref:t,className:(0,i.cn)(u(),s)},r))});m.displayName=o.b.displayName}}]);
3//# sourceMappingURL=1980.4a2cdc05.chunk.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.