1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="c3e1faa0-5b32-40ad-ca51-f37212298f34")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,546871,e=>{"use strict";var r=e.i(304886),t=e.i(160183);e.i(161979);var i=e.i(588039);e.s(["default",0,e=>{let{url:n}=e,{t:a}=(0,i.useTranslation)(["general"]);return(0,t.useEffect)(()=>{window.location.replace(n)},[n]),(0,r.jsxs)("output",{className:"flex min-h-[50vh] flex-col items-center justify-center gap-4 px-6 text-center",children:[(0,r.jsx)("span",{"aria-hidden":"true",className:"inline-block h-8 w-8 animate-spin rounded-full border-2 border-current border-t-transparent text-[var(--color-brand-primaryColor)]"}),(0,r.jsx)("span",{className:"text-ui-text-primary block text-lg font-medium",children:a("general:redirect")}),(0,r.jsx)("a",{href:n,onClick:e=>{e.preventDefault(),window.location.replace(n)},className:"text-sm text-[var(--color-brand-primaryColor)] hover:underline",children:a("general:redirecting_notice")})]})}])},265811,e=>{"use strict";var r=e.i(304886),t=e.i(160183);e.i(161979);var i=e.i(588039),n=e.i(430119),a=e.i(69584),o=e.i(953631),l=e.i(153027),s=e.i(518341),d=e.i(181421),c=e.i(260219),u=e.i(288435),m=e.i(602674),g=e.i(394743),h=e.i(720955),p=e.i(447789),b=e.i(716026),f=e.i(277868),x=e.i(31855),v=e.i(335233),E=e.i(830437),y=e.i(914494),_=e.i(796557),C=e.i(433241),I=e.i(250492),N=e.i(373003),k=e.i(415914),T=e.i(373564),S=e.i(277621),j=e.i(306271);let R={__meta__:{hash:"sha256:a9b326757c9c05986ae3bb0c2577dbdc97bc25e124f89b353adf7c893980334b"},kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"LogIn"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"subdomain"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"auth"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"LOGIN_AUTH"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"logIn"},arguments:[{kind:"Argument",name:{kind:"Name",value:"subdomain"},value:{kind:"Variable",name:{kind:"Name",value:"subdomain"}}},{kind:"Argument",name:{kind:"Name",value:"auth"},value:{kind:"Variable",name:{kind:"Name",value:"auth"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"token"}},{kind:"Field",name:{kind:"Name",value:"user"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"email"}},{kind:"Field",name:{kind:"Name",value:"roles"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"loggedInPath"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};var w=e.i(265354);let{LEARNING_CENTER:A}=_.FEATURES,P=()=>{let{t:e}=(0,i.useTranslation)(["login","general"]),o=(0,s.default)(),l=(0,a.useSearchParams)(),d=l?.get("redirect")??void 0,[u,m]=(0,t.useState)(!1),P=(0,t.useRef)(!1),M=o.turnstileProtectionEnabled??!1,D=o.turnstileSiteKey,L=(0,t.useMemo)(()=>{let r={email:I.string().email(e("login:invalid_email")).required(e("login:enter_email")),password:I.string().required(e("login:enter_password"))};return M?I.object().shape({...r,turnstileToken:I.string().required(e("login:turnstile_required"))}):I.object().shape(r)},[e,M]),F=(0,f.default)(e("login:login_failed")),U=(0,_.isEnabled)(o,A),[O,{data:B,loading:W,error:G}]=(0,p.useMutation)(R,{errorPolicy:"all"}),V=!!B?.logIn?.token&&!G;(0,t.useEffect)(()=>{if(!B?.logIn?.token||G||P.current)return;P.current=!0;let{token:e,user:r,loggedInPath:t}=B.logIn,i=r?.roles?.includes(y.ROLE_TYPES_ENUM.TEACHING_ASSISTANT)&&U?"/teaching":d||t||c.default.get("before_login_path")||"/";(0,E.login)({token:e,user:r},i)},[B,G,U,d]),(0,t.useEffect)(()=>{G&&F()},[G,F]);let{register:$,handleSubmit:H,setValue:Y,formState:{errors:z}}=(0,h.useForm)({resolver:(0,b.yupResolver)(L),reValidateMode:"onChange"}),[q,X]=(0,t.useState)(0);return(0,t.useEffect)(()=>{G&&(Y("turnstileToken",""),X(e=>e+1))},[G,Y]),(0,w.useColorModeValue)("gray.300","gray.700"),(0,r.jsxs)("form",{method:"post",onSubmit:H(e=>{O({variables:{subdomain:o.subdomain,auth:e}})}),className:"login-form",children:[(0,r.jsxs)("div",{className:"flex flex-col items-stretch gap-6",children:[(0,r.jsxs)(T.FormControl,{id:"email",isRequired:!0,isInvalid:!!z.email,children:[(0,r.jsx)(T.FormLabel,{htmlFor:"email",fontSize:"sm",children:e("login:email")}),(0,r.jsx)(j.Input,{type:"email",placeholder:"[email protected]",autoComplete:"email",...$("email")}),z.email&&(0,r.jsx)(T.FormErrorMessage,{children:(0,r.jsx)(r.Fragment,{children:z.email.message})})]}),(0,r.jsxs)(T.FormControl,{id:"password",isRequired:!0,isInvalid:!!z.password,children:[(0,r.jsx)(T.FormLabel,{htmlFor:"password",fontSize:"sm",children:e("login:password")}),(0,r.jsxs)(j.InputGroup,{size:"md",children:[(0,r.jsx)(j.Input,{type:u?"text":"password",placeholder:"********",...$("password")}),(0,r.jsx)(j.InputRightElement,{children:(0,r.jsx)(S.IconButton,{onClick:()=>{m(!u)},borderLeftRadius:"none","aria-label":u?"Mask Password":"Reveal Password",variant:"text",icon:u?(0,r.jsx)(x.HeroIcon,{name:"EyeSlashIcon",variant:"solid-20",width:20,height:20}):(0,r.jsx)(x.HeroIcon,{name:"EyeIcon",variant:"solid-20",width:20,height:20})})})]}),z.password&&(0,r.jsx)(T.FormErrorMessage,{children:(0,r.jsx)(r.Fragment,{children:z.password.message})})]}),(0,r.jsx)(T.FormControl,{id:"termsCheckbox",children:(0,r.jsx)(k.Checkbox,{name:"termsCheckbox",colorScheme:"brand.primary",children:e("login:remember_me")})}),M&&D&&(0,r.jsxs)(T.FormControl,{id:"turnstile",isInvalid:!!z.turnstileToken,children:[(0,r.jsx)(v.TurnstileWidget,{siteKey:D,onSuccess:e=>Y("turnstileToken",e,{shouldValidate:!0}),onExpire:()=>Y("turnstileToken",""),onError:()=>Y("turnstileToken","")}
2,q),z.turnstileToken&&(0,r.jsx)(T.FormErrorMessage,{children:(0,r.jsx)(r.Fragment,{children:z.turnstileToken.message})})]}),G&&(0,C.getGraphQLErrors)(G).map(e=>{let{message:t}=e;return(0,r.jsx)("div",{className:"mb-5 bg-gray-50 p-5 dark:bg-gray-700",children:(0,r.jsx)(g.Text,{color:"red.500",children:t})},t)}),(0,r.jsx)(N.Button,{w:"full",type:"submit",colorScheme:"brand.primary",size:"lg",fontSize:"md",isLoading:W||V,loadingText:V?e("general:signing_in"):void 0,children:e("login:confirm_to_login")})]}),(0,r.jsxs)("div",{className:"mt-6 text-sm font-semibold text-[var(--color-brand-primaryColor)] [&_a:hover]:underline",children:[(0,r.jsx)(n.default,{href:"/forgot-password",children:e("login:forgot_password")}),(0,r.jsx)("br",{}),(0,r.jsx)(n.default,{href:"/resend-confirmation",children:e("login:resend_email_confirmation")})]})]})};e.s(["default",0,()=>{let{t:e}=(0,i.useTranslation)(["login"]),h=(0,s.default)(),p=(0,a.useSearchParams)(),b=p?.get("redirect"),f=["Line","Facebook","Google","CustomOauth"],x=Object.values(h.integrations).map(e=>e.type).filter(e=>f.includes(e));return(0,t.useEffect)(()=>{!b||!b.startsWith("/")||b.startsWith("//")||c.default.set("before_login_path",`${window.location.origin}${b}`,{expires:1/144,...d.secureCookieAttributes})},[b]),(0,r.jsxs)("div",{className:"login-page min-h-[100vh] py-12 sm:px-6 lg:px-8",children:[(0,r.jsxs)("div",{className:"sm:mx-auto sm:w-full sm:max-w-md",children:[(0,r.jsx)("div",{className:"mx-auto mt-6 flex max-w-xs items-center justify-center text-center font-extrabold",children:(0,r.jsx)(n.default,{href:"/",children:h.logo?(0,r.jsx)(o.ImgProxyImg,{src:h.logo,alt:h.name}):h.name||""})}),h.slogan&&(0,r.jsx)(g.Text,{mt:"4",align:"center",maxW:"md",fontWeight:"medium",className:"slogan",children:(0,r.jsx)("span",{children:h.slogan})})]}),(0,r.jsx)("div",{className:"mt-8 sm:mx-auto sm:w-full sm:max-w-md",children:(0,r.jsxs)("div",{className:"bg-white px-4 py-8 shadow-lg sm:rounded-lg md:px-8 dark:bg-gray-800",children:[(0,r.jsxs)("div",{className:"mb-4 flex items-center justify-between",children:[(0,r.jsx)(m.Heading,{as:"h1",fontSize:"xl",fontWeight:"600",children:e("login:login")}),h.registrable&&(0,r.jsxs)("span",{className:"text-base font-semibold text-[var(--color-brand-primaryColor)]",children:[e("login:no_account"),(0,r.jsx)(n.default,{href:b?`/signup?redirect=${encodeURIComponent(b)}`:"/signup",children:(0,r.jsx)("u",{children:e("login:sign_up_now")})})]})]}),x.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.default,{subdomain:h.subdomain,providers:x}),(0,r.jsx)("div",{children:(0,r.jsx)("div",{className:"mx-auto w-full max-w-screen-lg px-4 py-4 md:py-8",children:(0,r.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[(0,r.jsx)(u.Divider,{}),(0,r.jsx)(g.Text,{fontSize:"md",fontWeight:"medium",whiteSpace:"nowrap",children:e("login:or")}),(0,r.jsx)(u.Divider,{})]})})})]}),(0,r.jsx)(P,{})]})})]})}],265811)},742372,e=>{"use strict";var r=e.i(304886);e.s(["default",0,function(e){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:"1em",height:"1em","aria-hidden":"true",focusable:"false",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z"})})}])},153027,e=>{"use strict";var r=e.i(304886);e.i(161979);var t=e.i(588039),i=e.i(69584),n=e.i(742372);let a=function(e){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"1em",height:"1em","aria-hidden":"true",focusable:"false",...e,children:(0,r.jsxs)("g",{transform:"matrix(1, 0, 0, 1, 27.009001, -39.238998)",children:[(0,r.jsx)("path",{fill:"#4285F4",d:"M -3.264 51.509 C -3.264 50.719 -3.334 49.969 -3.454 49.239 L -14.754 49.239 L -14.754 53.749 L -8.284 53.749 C -8.574 55.229 -9.424 56.479 -10.684 57.329 L -10.684 60.329 L -6.824 60.329 C -4.564 58.239 -3.264 55.159 -3.264 51.509 Z"}),(0,r.jsx)("path",{fill:"#34A853",d:"M -14.754 63.239 C -11.514 63.239 -8.804 62.159 -6.824 60.329 L -10.684 57.329 C -11.764 58.049 -13.134 58.489 -14.754 58.489 C -17.884 58.489 -20.534 56.379 -21.484 53.529 L -25.464 53.529 L -25.464 56.619 C -23.494 60.539 -19.444 63.239 -14.754 63.239 Z"}),(0,r.jsx)("path",{fill:"#FBBC05",d:"M -21.484 53.529 C -21.734 52.809 -21.864 52.039 -21.864 51.239 C -21.864 50.439 -21.724 49.669 -21.484 48.949 L -21.484 45.859 L -25.464 45.859 C -26.284 47.479 -26.754 49.299 -26.754 51.239 C -26.754 53.179 -26.284 54.999 -25.464 56.619 L -21.484 53.529 Z"}),(0,r.jsx)("path",{fill:"#EA4335",d:"M -14.754 43.989 C -12.984 43.989 -11.404 44.599 -10.154 45.789 L -6.734 42.369 C
2-8.804 40.429 -11.514 39.239 -14.754 39.239 C -19.444 39.239 -23.494 41.939 -25.464 45.859 L -21.484 48.949 C -20.534 46.099 -17.884 43.989 -14.754 43.989 Z"})]})})};var o=e.i(518341),l=e.i(260219),s=e.i(373003),d=e.i(265354);function c(){return(0,r.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"#06C755","aria-hidden":"true",focusable:"false",children:(0,r.jsx)("path",{d:"M19.365 9.863c.349 0 .63.285.63.631 0 .345-.281.63-.63.63H17.61v1.125h1.755c.349 0 .63.283.63.63 0 .344-.281.629-.63.629h-2.386c-.345 0-.627-.285-.627-.629V8.108c0-.345.282-.63.63-.63h2.386c.346 0 .627.285.627.63 0 .349-.281.63-.63.63H17.61v1.125h1.755zm-3.855 3.016c0 .27-.174.51-.432.596-.064.021-.133.031-.199.031-.211 0-.391-.09-.51-.25l-2.443-3.317v2.94c0 .344-.279.629-.631.629-.346 0-.626-.285-.626-.629V8.108c0-.27.173-.51.43-.595.06-.023.136-.033.194-.033.195 0 .375.104.495.254l2.462 3.33V8.108c0-.345.282-.63.63-.63.345 0 .63.285.63.63v4.771zm-5.741 0c0 .344-.282.629-.631.629-.345 0-.627-.285-.627-.629V8.108c0-.345.282-.63.63-.63.346 0 .628.285.628.63v4.771zm-2.466.629H4.917c-.345 0-.63-.285-.63-.629V8.108c0-.345.285-.63.63-.63.348 0 .63.285.63.63v4.141H7.304c.345 0 .629.283.629.63 0 .344-.282.629-.629.629M24 10.314C24 4.943 18.615.572 12 .572S0 4.943 0 10.314c0 4.811 4.27 8.842 10.035 9.608.391.082.923.258 1.058.59.12.301.079.766.038 1.08l-.164 1.02c-.045.301-.24 1.186 1.049.645 1.291-.539 6.916-4.078 9.436-6.975C23.176 14.393 24 12.458 24 10.314"})})}let u=new Set(["bizonline","cleoshop","cplearning","cwlearning","ettoday","nlac"]);function m(e,r){return`${e("login:use_provider_account",{provider:r})}`}e.s(["default",0,function(e){let{subdomain:g,providers:h=[]}=e,{t:p}=(0,t.useTranslation)(["login"]),b=(0,o.default)(),f=(0,i.useSearchParams)(),x=b.customOauthDisplayName?.trim()||b.name?.trim()||"",v=(0,d.useColorModeValue)("#385898","#6482C0"),E=()=>{let e=f?.get("redirect")??void 0;if(e&&e.startsWith("/")&&!e.startsWith("//")){let r={path:"/",secure:"https:"===window.location.protocol,sameSite:"lax"},t=`${window.location.origin}${e}`;l.default.set("next",e,r),l.default.set("before_login_path",t,{...r,expires:1/144})}else l.default.remove("next",{path:"/"})};return(0,r.jsxs)("div",{className:"flex flex-col items-stretch gap-4",children:[h.includes("Google")&&(0,r.jsx)(s.Button,{as:"a",href:`https://${g}.kaik.io/auth/google_oauth2/start`,onClick:E,variant:"outline",leftIcon:(0,r.jsx)(a,{}),children:m(p,"Google")}),h.includes("Facebook")&&(0,r.jsx)(s.Button,{as:"a",href:`https://${g}.kaik.io/auth/facebook/start`,onClick:E,variant:"outline",leftIcon:(0,r.jsx)(n.default,{style:{color:v}}),children:m(p,"Facebook")}),h.includes("Line")&&(0,r.jsx)(s.Button,{as:"a",href:`https://${g}.kaik.io/auth/line/start`,onClick:E,variant:"outline",leftIcon:(0,r.jsx)(c,{}),children:m(p,"LINE")}),h.includes("CustomOauth")&&!u.has(b.subdomain??"")&&(0,r.jsx)(s.Button,{as:"a",href:`https://${g}.kaik.io/auth/custom_oauth/start`,onClick:E,variant:"outline",children:m(p,x)}),"ettoday"===b.subdomain&&(0,r.jsx)(s.Button,{as:"a",href:"https://member.ettoday.net/partner/login.php7?client_id=teachify&response_type=token&redirect_uri=https%3A%2F%2Fetstar.ettoday.net%2Fapi%2Fauth%2Fcustom_oauth%2Fcallback",variant:"outline",children:p("login:member_login_with_brand",{brand:"ETToday"})})]})}],153027)},373003,330342,e=>{"use strict";var r=e.i(304886),t=e.i(160183);let i=(0,t.createContext)({});function n(){return(0,t.useContext)(i)}e.s(["ButtonGroupContext",0,i,"useButtonGroup",0,n],330342);var a=e.i(766613),o=e.i(338319);function l(e){if(null!=e)return Array.isArray(e)?e[0]??void 0:"object"==typeof e?e.base:e}let s="inline-flex shrink-0 self-center";function d(){return(0,r.jsx)("span",{"aria-hidden":"true",className:"inline-block h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent"})}let c=(0,t.forwardRef)(function(e,t){let i,c=n(),{as:m="button",className:g,children:h,variant:p,colorScheme:b,size:f,isLoading:x=!1,loadingText:v,spinner:E,spinnerPlacement:y="start",leftIcon:_,rightIcon:C,iconSpacing:I=2,isDisabled:N,disabled:k,isActive:T=!1,type:S="button",...j}=e,R=l(p)??c.variant??"solid",w=l(b)??c.colorScheme??"gray",A=l(f)??c.size??"md",P=!0===N||!0===k||void 0===N&&void 0===k&&!0===c.isDisabled,[M,D]=(0,a.splitStyleProps)(j),L=(0,a.styleClass)(M),F="solid"===R||"outline"===R||"ghost"===R||"link"===R||"unstyled"===R?R:"text"===R?"ghost":"solid",U="xs"===A||"sm"===A||"lg"===A||"md"===A?A:"md",O=function(e,r){if("brand"===r||"brand.primary"===r||"brand.primaryColor"===r)switch(e){case"solid":return"bg-brand-primaryColor text-white hover:opacity-90";case"outline":return"border border-brand-primaryColor text-brand-primaryColor hover:[--btn-bg:var(--color-brand-primaryColor)] hover:[--btn-color:white] bg-transparent";case"ghost":return"text-brand-primaryColor hover:[--btn-bg:var(--color-brand-primaryColor)] hover:[--btn-color:white] bg-transparent";case"link":return"text-brand-primaryColor underline hover:opacity-80 bg-transparent border-none";case"unstyled":return""}let t={blue:"500",gray:"600",red:"500",green:"500",orange:"500",yellow:"500",purple:"500",pink:"500",teal:"500",cyan:"500",brand:"500","brand.primary":"500","brand.primaryColor":"500"}[r]??"500",i="hover:[--btn-bg:color-mix(in_srgb,currentcolor_10%,transparent)]";switch(e){case"solid":return`bg-${r}-${t} text-white hover:[--btn-bg:color-mix(in_srgb,var(--btn-bg-base)_85%,black)]`;case"outline":return`border border-${r}-${t} text-${r}-${t} ${i} bg-transparent`;case"ghost":return`text-${r}-${t} ${i} bg-transparent`;case"link":return`text-${r}-${t} underline hover:[--btn-color:color-mix(in_srgb,var(--btn-color-base)_85%,black)] bg-transparent border-none`;case"unstyled":return""}}(F,w),B="link"===F||"unstyled"===F?"":function(e){switch(e){case"xs":return"px-3 py-1 text-xs h-6";case"sm":return"px-4 py-1 text-sm h-8";case"md":return"px-4 py-2 text-sm h-10";case"lg":return"px-6 py-3 text-base h-12"}}(U),W=void 0!==M.display,G=(0,o.cn)(W?"items-center justify-center":"inline-flex items-center justify-center","cursor-pointer select-none","whitespace-nowrap","rounded-md font-semibold","transition-colors duration-200","focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","unstyled"===F?void 0:"focus-visible:ring-[var(--btn-ring-color)]",O,B,T?"brightness-90":void 0,P||x?"pointer-events-none cursor-not-allowed opacity-60":void 0,L,g),V=`gap-${I}`,$=E??(0,r.jsx)(d,{});i=x?v?"start"===y?(0,r.jsxs)(r.Fragment,{children:[$,(0,r.jsx)("span",{children:v})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{children:v}),$]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("span",{className:(0,o.cn)("invisible flex items-center",V),children:[_&&(0,r.jsx)("span",{"aria-hidden":"true",className:s,children:_}),h,C&&(0,r.jsx)("span",{"aria-hidden":"true",className:s,children:C})]}),(0,r.jsx)("span",{className:"absolute",children:$})]}):(0,r.jsxs)(r.Fragment,{children:[_&&(0,r.jsx)("span",{"aria-hidden":"true",className:s,children:_}),h,C&&(0,r.jsx)("span",{"aria-hidden":"true",className:s,children:C})]});let H="button"===m?{type:S,disabled:P||x||void 0}:{},Y="link"===F||"unstyled"===F?{}:function(e){switch(e){case"xs":return{paddingInline:"0.5rem",minHeight:"1.5rem",fontSize:"0.75rem"};case"sm":return{paddingInline:"0.75rem",minHeight:"2rem",fontSize:"0.875rem"};case"lg":return{paddingInline:"1.5rem",minHeight:"3rem",fontSize:"1.125rem"};default:return{paddingInline:"1rem",minHeight:"2.5rem",fontSize:"1rem"}}}(U),z=function(e,r){let t=u(r);switch(e){case"solid":return{"--btn-bg-base":t,backgroundColor:"var(--btn-bg, var(--btn-bg-base))",color:"white",borderWidth:0};case"outline":return{"--btn-color-base":t,backgroundColor:"var(--btn-bg, transparent)",color:"var(--btn-color, var(--btn-color-base))",borderWidth:1,borderStyle:"solid",borderColor:t};case"ghost":return{"--btn-color-base":t,backgroundColor:"var(--btn-bg, transparent)",color:"var(--btn-color, var(--btn-color-base))",borderWidth:0};case"link":return{"--btn-color-base":t,backgroundColor:"var(--btn-bg, transparent)",color:"var(--btn-color, var(--btn-color-base))",borderWidth:0,textDecoration:"underline"};default:return}}(F,w),q="string"==typeof M.bg?M.bg:"string"==typeof M.bgColor?M.bgColor:"string"==typeof M.backgroundColor?M.backgroundColor:void 0,X="string"==typeof M.color?M.color:void 0,K={};q&&(K.background=q),X&&(K.color=X);let Q="string"==typeof M.justifyContent?M.justifyContent:void 0,Z="string"==typeof M.alignItems?M.alignItems:void 0,J=(0,a.resolveTokenFontSize)(l(M.fontSize)),ee="unstyled"===F?void 0:{...W?{}:{display:"inline-flex"},...Z?{}:{alignItems:"center"},...Q?{}:{justifyContent:"center"},cursor:"pointer",fontWeight:600,borderRadius:a.RADIUS_TOKEN_TO_CSS.md,whiteSpace:"nowrap",...Y,...z,"--btn-ring-color":u(w,"var(--color-gray-500)"),...K,...J?{fontSize:J}:{}},er=(0,a.flattenInlineStyleProps)(M),et=(0,a.flattenSxToStyle)(M.sx),ei=ee?{...ee,...er,...et,...D.style}:{...er,...et,...D.style},{style:en,...ea}=D;return(0,r.jsx)(m,{ref:t,className:(0,o.cn)(G,x&&!v?"relative":void 0,V),style:ei,"aria-disabled":P||x||void 0,...H,...ea,children:i})});function u(e,r){return"brand"===e||"brand.primary"===e||"brand.primaryColor"===e?"var(--color-brand-primaryColor)":r?`var(--color-${e}-500, ${r})`:`var(--color-${e}-500)`}e.s(["Button",0,c],373003)},415914,e=>{"use strict";var r=e.i(304886),t=e.i(160183),i=e.i(766613),n=e.i(338319),a=e.i(373564),o=e.i(601658);let l=(0,t.forwardRef)(function(e,l){let d,{isChecked:c,isIndeterminate:u,isDisabled:m,isReadOnly:g,isRequired:h,isInvalid:p,colorScheme:b,size:f,className:x,children:v,...E}=e;"brand.primary"===b||"brand.primaryColor"===b?d="var(--color-brand-primaryColor, #007BFF)":b&&(d=`var(--color-${b}-500)`);let[y,_]=(0,i.splitStyleProps)(E),C=(0,i.styleClass)(y),{disabled:I,readOnly:N,required:k,...T}=_,{inputProps:S,labelProps:j}=function(e){let r={},t={};for(let[i,n]of Object.entries(e))s.has(i)||i.startsWith("aria-")?r[i]=n:t[i]=n;return{inputProps:r,labelProps:t}}(T),R=(0,a.useFormControlContext)(),{id:w,disabled:A,readOnly:P,required:M,ariaInvalid:D,ariaDescribedBy:L}=(0,o.useFormControlField)({id:S.id,disabled:m??I,readOnly:g??N,required:h??k,ariaInvalid:p??S["aria-invalid"],ariaDescribedBy:S["aria-describedby"]}),F=h??k??S["aria-required"]??R?.isRequired??void 0,[U,O]=(0,t.useState)(()=>!!(S.defaultChecked??c)),B=c??U,W=S.onChange,G=S.onBlur,V=S.value,$=(0,t.useCallback)(e=>{void 0===V&&void 0===S.defaultValue&&e.hasAttribute("value")&&e.removeAttribute("value")},[V,S.defaultValue]),H=(0,t.useCallback)(e=>{void 0===c&&O(e.target.checked),$(e.target),W?.(e)},[W,c,$]),Y=(0,t.useCallback)(e=>{void 0===c&&O(e.target.checked),$(e.target),G?.(e)},[G,c,$]),z=(0,t.useCallback)(e=>{e&&(e.indeterminate=!!u),"function"==typeof l?l(e):l&&(l.current=e)},[u,l]);return(0,r.jsxs)("label",{...j,className:(0,n.cn)("inline-flex cursor-pointer items-center gap-2",A&&"cursor-not-allowed opacity-40",C,x),children:[(0,r.jsx)("input",{...S,ref:z,type:"checkbox",id:w,checked:c,onChange:H,onBlur:Y,disabled:A,readOnly:P,required:M,"aria-invalid":D,"aria-required":F,"aria-describedby":L,className:(0,n.cn)("h-4 w-4 shrink-0 cursor-pointer appearance-none","bg-ui-surface rounded-sm border",B?"border-transparent":"border-gray-300 dark:border-gray-500"),style:B?{backgroundColor:d??"var(--color-brand-primaryColor, #007BFF)",backgroundImage:"url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 8 7 12 13 4'/></svg>\")",backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"80% 80%"}:void 0}),v]})}),s=new Set(["id","name","value","defaultChecked","defaultValue","autoF
2ocus","autoComplete","tabIndex","form","role","onChange","onBlur","onFocus","onKeyDown","onKeyUp","onKeyPress","onInput","onPaste","onInvalid"]);e.s(["Checkbox",0,l])},288435,e=>{"use strict";var r=e.i(304886),t=e.i(160183),i=e.i(766613),n=e.i(338319);function a(e){let r;if(null!=e&&void 0!==(r="object"!=typeof e||Array.isArray(e)?Array.isArray(e)?e[0]??e[e.length-1]:e:e.base??e.sm??e.md??e.lg??e.xl??Object.values(e)[0])){if("number"==typeof r)return`${.25*r}rem`;if("string"==typeof r&&r.length>0)return/^[0-9]+(?:\.[0-9]+)?$/.test(r)?`${.25*Number(r)}rem`:r}}function o(e){if(void 0!==e)return e.startsWith("#")||e.startsWith("rgb")||e.startsWith("hsl")||"transparent"===e||"currentColor"===e?e:e.includes(".")?`var(--color-${e.replace(/\./g,"-")})`:`var(--color-${e})`}let l=(0,t.forwardRef)(function(e,t){let l,{orientation:s="horizontal",className:d,style:c,...u}=e,[m,g]=(0,i.splitStyleProps)(u),h=(0,i.styleClass)(m),p="string"==typeof(l=m.borderColor)?o(l):"object"!=typeof l||null===l||Array.isArray(l)?void 0:o(l.base??Object.values(l)[0]),b=p??"var(--divider-border, var(--color-gray-200))",f="vertical"===s?{borderWidth:0,borderLeftWidth:1,borderLeftStyle:"solid",borderColor:b,height:"100%"}:{borderWidth:0,borderBottomWidth:1,borderBottomStyle:"solid",borderColor:b,width:"100%"},x=a(m.my??m.marginY);void 0!==x&&(f.marginTop=x,f.marginBottom=x);let v=a(m.mt??m.marginTop);void 0!==v&&(f.marginTop=v);let E=a(m.mb??m.marginBottom);void 0!==E&&(f.marginBottom=E);let y=a(m.mx??m.marginX);void 0!==y&&(f.marginLeft=y,f.marginRight=y);let _=a(m.ml??m.marginLeft);void 0!==_&&(f.marginLeft=_);let C=a(m.mr??m.marginRight);void 0!==C&&(f.marginRight=C);let{style:I,...N}=g;return(0,r.jsx)("hr",{ref:t,"aria-orientation":s,style:{...f,...c},className:(0,n.cn)(h,void 0===p&&"dark:[--divider-border:var(--color-gray-700)]",d),...N})});e.s(["Divider",0,l])},277621,e=>{"use strict";var r=e.i(304886),t=e.i(160183),i=e.i(373003),n=e.i(338319);let a=(0,t.forwardRef)(function(e,t){let{icon:a,isRound:o=!1,children:l,size:s="md",className:d,...c}=e,u={xs:"h-6 w-6 p-0",sm:"h-8 w-8 p-0",md:"h-10 w-10 p-0",lg:"h-12 w-12 p-0"},m={xs:{width:"18px",height:"18px",minWidth:"18px",minHeight:"18px",padding:0,paddingInline:0},sm:{width:"2rem",height:"2rem",minWidth:"2rem",minHeight:"2rem",padding:0,paddingInline:0},md:{width:"2.5rem",height:"2.5rem",minWidth:"2.5rem",minHeight:"2.5rem",padding:0,paddingInline:0},lg:{width:"3rem",height:"3rem",minWidth:"3rem",minHeight:"3rem",padding:0,paddingInline:0}},g=Array.isArray(s)?s[0]??"md":"object"==typeof s&&null!==s?s.base??"md":s,h=u[g]??u.md,p=m[g]??m.md,b=c.style,f=(()=>{let{style:e,...r}=c;return r})();return(0,r.jsx)(i.Button,{ref:t,size:s,className:(0,n.cn)(h,o?"rounded-full":void 0,d),style:{...p,...o?{borderRadius:"9999px"}:void 0,...b},...f,children:a??l})});e.s(["IconButton",0,a])},394743,e=>{"use strict";var r=e.i(304886),t=e.i(160183),i=e.i(774659),n=e.i(766613),a=e.i(338319);let o=(0,t.forwardRef)(function(e,t){let{as:o="p",noOfLines:l,align:s,textAlign:d,className:c,fontSize:u,fontWeight:m,style:g,...h}=e,p=void 0!==l&&l>=1&&l<=6?`line-clamp-${l}`:void 0,b=(0,n.resolveTokenFontSize)(u),f=(0,n.resolveTokenFontWeight)(m),x={};void 0!==b&&(x.fontSize=b),void 0!==f&&(x.fontWeight=f);let v=Object.keys(x).length>0||g?{...x,...g}:void 0;return(0,r.jsx)(i.Box,{ref:t,...h,as:o,textAlign:d??s,className:(0,a.cn)(p,c),style:v})});e.s(["Text",0,o])},774659,796715,e=>{"use strict";var r=e.i(304886),t=e.i(160183),i=e.i(338319),n=e.i(766613);function a(e){let{className:r,style:a,srOnly:o,noOfLines:l,...s}=e,d="number"==typeof l&&l>=1&&l<=6?`line-clamp-${l}`:void 0,[c,u]=(0,n.splitStyleProps)(s),m=(0,n.styleClass)(c),g=(0,n.flattenInlineStyleProps)(c),h=(0,n.flattenSxToStyle)(c.sx),p=(0,n.extractResponsiveInlineMediaRules)(c),b=(0,t.useId)(),f=p.mediaRules&&p.mediaRules.length>0?`cx-${b.replace(/[^a-zA-Z0-9_-]/g,"_")}`:void 0,x=f?(0,n.serializeResponsiveMediaRules)(f,p.mediaRules):"",v=g||h||a||p.inline?{...g,...p.inline,...h,...a}:void 0;return{className:(0,i.cn)(o&&"sr-only",d,m,f,r),style:v,domProps:u,mediaCss:x}}e.s(["useBoxStyleProps",0,a],796715);let o=(0,t.forwardRef)(function(e,i){let{as:n="div",children:o,...l}=e,{className:s,style:d,domProps:c,mediaCss:u}=a(l);return(0,r.jsxs)(t.Fragment,{children:[(0,r.jsx)(n,{ref:i,className:s,style:d,...c,children:o}),u?(0,r.jsx)("style",{children:u}):null]})});e.s(["Box",0,o],774659)},265354,37419,e=>{"use strict";var r=e.i(160183),t=e.i(150886);function i(){if("u"<typeof document)return null;let e=document.documentElement;return e.classList.contains("dark")||"dark"===e.getAttribute("data-theme")?"dark":e.classList.contains("light")||"light"===e.getAttribute("data-theme")?"light":null}function n(){let e=(0,r.useContext)(t.ColorModeContext),[n,a]=(0,r.useState)(e);return(0,r.useEffect)(()=>{let e=i();null!==e&&e!==n&&a(e);let r=new MutationObserver(()=>{let e=i();null!==e&&a(e)});return r.observe(document.documentElement,{attributes:!0,attributeFilter:["class","data-theme"]}),()=>r.disconnect()},[]),{colorMode:n,setColorMode:()=>void 0,toggleColorMode:()=>void 0}}e.s(["useColorMode",0,n],37419),e.s(["useColorModeValue",0,function(e,r){return"dark"===n().colorMode?r:e}],265354)},914494,e=>{"use strict";var r,t,i,n,a,o,l,s,d,c,u,m,g,h,p,b,f,x=((r={}).STUDENT="student",r.TEACHING_ASSISTANT="teaching_assistant",r.LECTURER="lecturer",r.OWNER="owner",r.MANAGER="manager",r.ADMIN="admin",r.TEACHER="teacher",r),v=((t={}).PAID="paid",t.FREE_REDEEM="free_redeem",t.PUBLIC_ACCESS="public_access",t.PRE_ORDER="pre_order",t),E=((i={}).DELIVERED="delivered",i.GROUP_BUYING="group_buying",i.PRE_ORDERING="pre_ordering",i.EXPIRED="expired",i),y=((n={}).ONE_TIME_PURCHASE="one_time_purchase",n.GROUP_BUY="group_buy",n.PRE_ORDER="pre_order",n.SPECIFIC_LENGTH="specific_length",n.FIXED_DATE="fixed_date",n.FREE="free",n.WEB3_DISCOUNT="web3_discount",n),_=((a={}).SUBMITTED="submitted",a.UNSUBMITTED="unsubmitted",a.RETURNED="returned",a.CHECKED="checked",a.NOT_SUBMITTED_YET="not_submitted_yet",a.IS_DUED="is_dued",a.DONE="done",a),C=((o={}).REQUIRED="required",o.OPTIONAL="optional",o.NONE="none",o),I=((l={}).FAILED="failed",l.NOT_PAID="not_paid",l.PAID="paid",l.EXPIRED="expired",l.REFUNDED="refunded",l.REFUNDING="refunding",l.MANUAL_ENROLLED="manual_enrolled",l),N=((s={}
2).PENDING="pending",s.AWAITING_TRANSFER="awaiting_transfer",s.AWAITING_PAYMENT_GATEWAY_REVIEW="awaiting_payment_gateway_review",s.AWAITING_ALLOWANCE="awaiting_allowance",s.COMPLETED="completed",s),k=((d={}).CVS="cvs",d.ATM="atm",d.WEB_ATM="web_atm",d.CREDIT="credit",d.LINE_PAY="line_pay",d),T=((c={}).RECURRING="recurring",c.FIXED_DATE="fixed_date",c.SPECIFIC_LENGTH="specific_length",c.LIFETIME="lifetime",c),S=((u={}).ALL="all",u.COMPLETED="completed",u.SCHEDULED="scheduled",u.IN_PROGRESS="in_progress",u),j=((m={}).LOGIN_REQUIRED="login_required",m.PAID="paid",m.PUBLIC_ACCESS="public_access",m),R=((g={}).ACTIVE="active",g.TRIALING="trialing",g.PAST_DUE="past_due",g.CANCELED="canceled",g.EXPIRED="expired",g.INCOMPLETE="incomplete",g),w=((h={}).B2B="b2b",h.B2C="b2c",h),A=((p={}).MEMBER="member",p.MOBILE="mobile",p.CERTIFICATE="certificate",p),P=((b={}).BUYER="buyer",b.MONEY="money",b),M=((f={}).ORDER_BUMP="OrderBump",f.CURRICULUM_PLAN="CurriculumPlan",f.MEMBERSHIP_PLAN="MembershipPlan",f.DIGITAL_PRODUCT="DigitalProduct",f);e.s(["ASSIGNMENT_RESTRICTION_ENUM",()=>C,"COURSE_DELIVERY_STATE_ENUM",()=>E,"COURSE_TYPES_ENUM",()=>v,"INVOICE_CARRIER_TYPE_ENUM",()=>A,"INVOICE_CATEGORY_ENUM",()=>w,"LINEITEM_TYPE_ENUM",()=>M,"MEMBERSHIP_PLAN_TYPE_ENUM",()=>T,"MY_EVENTS_STATUS_ENUM",()=>S,"PAYMENT_REFUNDING_STATE_ENUM",()=>N,"PAYMENT_STATE_ENUM",()=>I,"PAYMENT_TYPE_ENUM",()=>k,"PLAN_TYPES_ENUM",()=>y,"POST_TYPE_ENUM",()=>j,"PRE_ORDER_GOAL_TYPE_ENUM",()=>P,"ROLE_TYPES_ENUM",()=>x,"SUBMISSION_STATE_ENUM",()=>_,"SUBSCRIPTION_STATE_ENUM",()=>R])},796557,e=>{"use strict";var r,t=((r={}).LEARNING_CENTER="learning_center",r.DIGITAL_PRODUCT="digital_product",r.EVENT="event",r.CREDIT_CARD_MANAGEMENT="credit_card_management",r.VIEWING_COVERAGE="viewing_coverage",r);e.s(["FEATURES",()=>t,"isEnabled",0,(e,r)=>Object.values(e.features).map(e=>e.type).includes(r)])},85684,e=>{"use strict";e.s([],762166),e.i(762166);var r=e.i(868121);e.s(["BANNER_IMAGE_PROXY_WIDTH",()=>r.BANNER_IMAGE_PROXY_WIDTH,"DEVICE_SIZES",()=>r.DEVICE_SIZES,"LQIP_QUALITY",()=>r.LQIP_QUALITY,"LQIP_WIDTH",()=>r.LQIP_WIDTH,"MAX_PROXY_WIDTH",()=>r.MAX_PROXY_WIDTH,"imageProxy",()=>r.imageProxy,"imageProxyOriginalFormat",()=>r.imageProxyOriginalFormat,"imageProxySets",()=>r.imageProxySets,"imgProxyLoader",()=>r.imgProxyLoader,"isFromHost",()=>r.isFromHost,"isGifSource",()=>r.isGifSource,"isInternalImage",()=>r.isInternalImage,"lqipUrl",()=>r.lqipUrl,"shouldUseImgProxy",()=>r.shouldUseImgProxy],419737);var t=e.i(419737);e.s(["utils",0,t],85684)}]); 3
4//# debugId=c3e1faa0-5b32-40ad-ca51-f37212298f34 5//# sourceMappingURL=08hpw-b43ue63.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.