1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,290571,e=>{"use strict";var t=function(){return(t=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function r(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function n(e,t,r,n){return new(r||(r=Promise))(function(i,a){function s(e){try{l(n.next(e))}catch(e){a(e)}}function o(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}l((n=n.apply(e,t||[])).next())})}function i(e,t,r){if(r||2==arguments.length)for(var n,i=0,a=t.length;i<a;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError,e.s(["__assign",()=>t,"__awaiter",()=>n,"__rest",()=>r,"__spreadArray",()=>i])},233525,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},818581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=e.r(271645);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=a(e,n)),t&&(i.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},998183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return l},searchParamsToUrlQuery:function(){return a},urlQueryToSearchParams:function(){return o}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});function a(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function s(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,s(e));else t.set(r,s(n));return t}function l(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},195057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return o},formatWithValidation:function(){return c},urlObjectKeys:function(){return l}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(190809)._(e.r(998183)),s=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:r}=e,n=e.protocol||"",i=e.pathname||"",o=e.hash||"",l=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),l&&"object"==typeof l&&(l=String(a.urlQueryToSearchParams(l)));let u=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||s.test(n))&&!1!==c?(c="//"+(c||""),i&&"/"!==i[0]&&(i="/"+i)):c||(c=""),o&&"#"!==o[0]&&(o="#"+o),u&&"?"!==u[0]&&(u="?"+u),i=i.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${i}${u}${o}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return o(e)}},718967,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return y},MiddlewareNotFoundError:function(){return w},MissingStaticPage:function(){return v},NormalizeError:function(){return x},PageNotFoundError:function(){return b},SP:function(){return h},ST:function(){return g},WEB_VITALS:function(){return a},execOnce:function(){return s},getDisplayName:function(){return d},getLocationOrigin:function(){return c},getURL:function(){return u},isAbsoluteUrl:function(){return l},isResSent:function(){return f},loadGetInitialProps:function(){return m},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return j}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=["CLS","FCP","FID","INP","LCP","TTFB"];function s(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>o.test(e);function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function u(){let{href:e}=window.location,t=c();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function m(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await m(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let h="u">typeof performance,g=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class y extends Error{}class x extends Error{}class b extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class v extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class w extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function j(e){return JSON.stringify({message:e.message,stack:e.stack})}},573668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=e.r(718967),i=e.r(652817);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,i.hasBasePath)(r.pathname)}catch(e){return!1}}},284508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},522016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return y},useLinkStatus:function(){return b}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(190809),s=e.r(843476),o=a._(e.r(271645)),l=e.r(195057),c=e.r(8372),u=e.r(818581),d=e.r(718967),f=e.r(405550);e.r(233525);let p=e.r(91949),m=e.r(573668),h=e.r(509396);function g(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}function y(t){var r;let n,i,a,[l,y]=(0,o.useOptimistic)(p.IDLE_LINK_STATUS),b=(0,o.useRef)(null),{href:v,as:w,children:j,prefetch:_=null,passHref:S,replace:P,shallow:O,scroll:N,onClick:C,onMouseEnter:E,onTouchStart:I,legacyBehavior:R=!1,onNavigate:z,ref:M,unstable_dynamicOnHover:k,...T}=t;n=j,R&&("string"==typeof n||"number"==typeof n)&&(n=(0,s.jsx)("a",{children:n}));let A=o.default.useContext(c.AppRouterContext),$=!1!==_,L=!1!==_?null===(r=_)||"auto"===r?h.FetchStrategy.PPR:h.FetchStrategy.Full:h.FetchStrategy.PPR,{href:U,as:D}=o.default.useMemo(()=>{let e=g(v);return{href:e,as:w?g(w):e}},[v,w]);if(R){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>
1` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});i=o.default.Children.only(n)}let F=R?i&&"object"==typeof i&&i.ref:M,B=o.default.useCallback(e=>(null!==A&&(b.current=(0,p.mountLinkInstance)(e,U,A,L,$,y)),()=>{b.current&&((0,p.unmountLinkForCurrentNavigation)(b.current),b.current=null),(0,p.unmountPrefetchableInstance)(e)}),[$,U,A,L,y]),q={ref:(0,u.useMergedRef)(B,F),onClick(t){R||"function"!=typeof C||C(t),R&&i.props&&"function"==typeof i.props.onClick&&i.props.onClick(t),!A||t.defaultPrevented||function(t,r,n,i,a,s,l){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){a&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(699781);o.default.startTransition(()=>{d(n||r,a?"replace":"push",s??!0,i.current)})}}(t,U,D,b,P,N,z)},onMouseEnter(e){R||"function"!=typeof E||E(e),R&&i.props&&"function"==typeof i.props.onMouseEnter&&i.props.onMouseEnter(e),A&&$&&(0,p.onNavigationIntent)(e.currentTarget,!0===k)},onTouchStart:function(e){R||"function"!=typeof I||I(e),R&&i.props&&"function"==typeof i.props.onTouchStart&&i.props.onTouchStart(e),A&&$&&(0,p.onNavigationIntent)(e.currentTarget,!0===k)}};return(0,d.isAbsoluteUrl)(D)?q.href=D:R&&!S&&("a"!==i.type||"href"in i.props)||(q.href=(0,f.addBasePath)(D)),a=R?o.default.cloneElement(i,q):(0,s.jsx)("a",{...T,...q,children:n}),(0,s.jsx)(x.Provider,{value:l,children:a})}e.r(284508);let x=(0,o.createContext)(p.IDLE_LINK_STATUS),b=()=>(0,o.useContext)(x);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},972520,e=>{"use strict";let t=(0,e.i(475254).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",()=>t],972520)},827353,e=>{"use strict";function t(e){try{window.dataLayer=window.dataLayer||[],window.dataLayer.push(e)}catch{}}function r(){t({event:"sign_out",user_id:null})}e.s(["clearUserContext",()=>r,"pushDataLayer",()=>t])},46253,e=>{"use strict";var t=e.i(511795);function r(e){(async()=>{try{let r=(0,t.getSupabaseClient)(),{data:{session:n}}=await r.auth.getSession();if(!n)return;fetch("https://api.dayinterpreting.com/functions/v1/log-portal-activity",{method:"POST",headers:{Authorization:`Bearer ${n.access_token}`,"Content-Type":"application/json"},body:JSON.stringify(e)})}catch{}})()}e.s(["logPortalActivity",()=>r])},488143,(e,t,r)=>{"use strict";function n({widthInt:e,heightInt:t,blurWidth:r,blurHeight:n,blurDataURL:i,objectFit:a}){let s=r?40*r:e,o=n?40*n:t,l=s&&o?`viewBox='0 0 ${s} ${o}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${l}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${l?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${i}'/%3E%3C/svg%3E`}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},987690,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={VALID_LOADERS:function(){return a},imageConfigDefault:function(){return s}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=["default","imgix","cloudinary","akamai","custom"],s={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,
1contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1}},908927,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImgProps",{enumerable:!0,get:function(){return c}}),e.r(233525);let n=e.r(543369),i=e.r(488143),a=e.r(987690),s=["-moz-initial","fill","none","scale-down",void 0];function o(e){return void 0!==e.default}function l(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function c({src:e,sizes:t,unoptimized:r=!1,priority:c=!1,preload:u=!1,loading:d,className:f,quality:p,width:m,height:h,fill:g=!1,style:y,overrideSrc:x,onLoad:b,onLoadingComplete:v,placeholder:w="empty",blurDataURL:j,fetchPriority:_,decoding:S="async",layout:P,objectFit:O,objectPosition:N,lazyBoundary:C,lazyRoot:E,...I},R){var z;let M,k,T,{imgConf:A,showAltText:$,blurComplete:L,defaultLoader:U}=R,D=A||a.imageConfigDefault;if("allSizes"in D)M=D;else{let e=[...D.deviceSizes,...D.imageSizes].sort((e,t)=>e-t),t=D.deviceSizes.sort((e,t)=>e-t),r=D.qualities?.sort((e,t)=>e-t);M={...D,allSizes:e,deviceSizes:t,qualities:r}}if(void 0===U)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let F=I.loader||U;delete I.loader,delete I.srcSet;let B="__next_img_default"in F;if(B){if("custom"===M.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop. 2Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=F;F=t=>{let{config:r,...n}=t;return e(n)}}if(P){"fill"===P&&(g=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[P];e&&(y={...y,...e});let r={responsive:"100vw",fill:"100vw"}[P];r&&!t&&(t=r)}let q="",W=l(m),V=l(h);if((z=e)&&"object"==typeof z&&(o(z)||void 0!==z.src)){let t=o(e)?e.default:e;if(!t.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(k=t.blurWidth,T=t.blurHeight,j=j||t.blurDataURL,q=t.src,!g)if(W||V){if(W&&!V){let e=W/t.width;V=Math.round(t.height*e)}else if(!W&&V){let e=V/t.height;W=Math.round(t.width*e)}}else W=t.width,V=t.height}let G=!c&&!u&&("lazy"===d||void 0===d);(!(e="string"==typeof e?e:q)||e.startsWith("data:")||e.startsWith("blob:"))&&(r=!0,G=!1),M.unoptimized&&(r=!0),B&&!M.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(r=!0);let J=l(p),X=Object.assign(g?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:O,objectPosition:N}:{},$?{}:{color:"transparent"},y),H=L||"empty"===w?null:"blur"===w?`url("data:image/svg+xml;charset=utf-8,${(0,i.getImageBlurSvg)({widthInt:W,heightInt:V,blurWidth:k,blurHeight:T,blurDataURL:j||"",objectFit:X.objectFit})}")`:`url("${w}")`,Y=s.includes(X.objectFit)?"fill"===X.objectFit?"100% 100%":"cover":X.objectFit,K=H?{backgroundSize:Y,backgroundPosition:X.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:H}:{},Q=function({config:e,src:t,unoptimized:r,width:i,quality:a,sizes:s,loader:o}){if(r){let e=(0,n.getDeploymentId)();if(t.startsWith("/")&&!t.startsWith("//")&&e){let r=t.includes("?")?"&":"?";t=`${t}${r}dpl=${e}`}return{src:t,srcSet:void 0,sizes:void 0}}let{widths:l,kind:c}=function({deviceSizes:e,allSizes:t},r,n){if(n){let r=/(^|\s)(1?\d?\d)vw/g,i=[];for(let e;e=r.exec(n);)i.push(parseInt(e[2]));if(i.length){let r=.01*Math.min(...i);return{widths:t.filter(t=>t>=e[0]*r),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof r?{widths:e,kind:"w"}:{widths:[...new Set([r,2*r].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,i,s),u=l.length-1;return{sizes:s||"w"!==c?s:"100vw",srcSet:l.map((r,n)=>`${o({config:e,src:t,quality:a,width:r})} ${"w"===c?r:n+1}${c}`).join(", "),src:o({config:e,src:t,quality:a,width:l[u]})}}({config:M,src:e,unoptimized:r,width:W,quality:J,sizes:t,loader:F}),Z=G?"lazy":d;return{props:{...I,loading:Z,fetchPriority:_,width:W,height:V,decoding:S,className:f,style:{...X,...K},sizes:Q.sizes,srcSet:Q.srcSet,src:x||Q.src},meta:{unoptimized:r,preload:u||c,placeholder:w,fill:g}}}},898879,(e,t,r)=>{"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return o}});let n=e.r(271645),i="u"<typeof window,a=i?()=>{}:n.useLayoutEffect,s=i?()=>{}:n.useEffect;function o(e){let{headManager:t,reduceComponentsToState:r}=e;function o(){if(t&&t.mountedInstances){let e=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(e))}}return i&&(t?.mountedInstances?.add(e.children),o()),a(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),a(()=>(t&&(t._pendingUpdate=o),()=>{t&&(t._pendingUpdate=o)})),s(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},325633,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return h},defaultHead:function(){return d}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(555682),s=e.r(190809),o=e.r(843476),l=s._(e.r(271645)),c=a._(e.r(898879)),u=e.r(742732);function d(){return[(0,o.jsx)("meta",{charSet:"utf-8"},"charset"),(0,o.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===l.default.Fragment?e.concat(l.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}e.r(233525);let p=["name","httpEquiv","charSet","itemProp"];function m(e){let t,r,n,i;return e.reduce(f,[]).reverse().concat(d().reverse()).filter((t=new Set,r=new Set,n=new Set,i={},e=>{let a=!0,s=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){s=!0;let r=e.key.slice(e.key.indexOf("$")+1);t.has(r)?a=!1:t.add(r)}switch(e.type){case"title":case"base":r.has(e.type)?a=!1:r.add(e.type);break;case"meta":for(let t=0,r=p.length;t<r;t++){let r=p[t];if(e.props.hasOwnProperty(r))if("charSet"===r)n.has(r)?a=!1:n.add(r);else{let t=e.props[r],n=i[r]||new Set;("name"!==r||!s)&&n.has(t)?a=!1:(n.add(t),i[r]=n)}}}return a})).reverse().map((e,t)=>{let r=e.key||t;return l.default.cloneElement(e,{key:r})})}let h=function({children:e}){let t=(0,l.useContext)(u.HeadManagerContext);return(0,o.jsx)(c.default,{reduceComponentsToState:m,headManager:t,children:e})};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},918556,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ImageConfigContext",{enumerable:!0,get:function(){return a}});let n=e.r(555682)._(e.r(271645)),i=e.r(987690),a=n.default.createContext(i.imageConfigDefault)},65856,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"RouterContext",{enumerable:!0,get:function(){return n}});let n=e.r(555682)._(e.r(271645)).default.createContext(null)},670965,(e,t,r)=>{"use strict";function n(e,t){let r=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-r)<Math.abs(e-r)?t:e,0):r}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"findClosestQuality",{enumerable:!0,get:function(){return n}})},1948,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return s}});let n=e.r(670965),i=e.r(543369);function a({config:e,src:t,width:r,quality:a}){if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns. 3Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let s=(0,n.findClosestQuality)(a,e),o=(0,i.getDeploymentId)();return`${e.path}?url=${encodeURIComponent(t)}&w=${r}&q=${s}${t.startsWith("/")&&o?`&dpl=${o}`:""}`}a.__next_img_default=!0;let s=a},605500,(e,t,r)=>{"use strict";
3Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"Image",{enumerable:!0,get:function(){return v}});let n=e.r(555682),i=e.r(190809),a=e.r(843476),s=i._(e.r(271645)),o=n._(e.r(174080)),l=n._(e.r(325633)),c=e.r(908927),u=e.r(987690),d=e.r(918556);e.r(233525);let f=e.r(65856),p=n._(e.r(1948)),m=e.r(818581),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function g(e,t,r,n,i,a,s){let o=e?.src;e&&e["data-loaded-src"]!==o&&(e["data-loaded-src"]=o,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),r?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}n?.current&&n.current(e)}}))}function y(e){return s.use?{fetchPriority:e}:{fetchpriority:e}}"u"<typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let x=(0,s.forwardRef)(({src:e,srcSet:t,sizes:r,height:n,width:i,decoding:o,className:l,style:c,fetchPriority:u,placeholder:d,loading:f,unoptimized:p,fill:h,onLoadRef:x,onLoadingCompleteRef:b,setBlurComplete:v,setShowAltText:w,sizesInput:j,onLoad:_,onError:S,...P},O)=>{let N=(0,s.useCallback)(e=>{e&&(S&&(e.src=e.src),e.complete&&g(e,d,x,b,v,p,j))},[e,d,x,b,v,S,p,j]),C=(0,m.useMergedRef)(O,N);return(0,a.jsx)("img",{...P,...y(u),loading:f,width:i,height:n,decoding:o,"data-nimg":h?"fill":"1",className:l,style:c,sizes:r,srcSet:t,src:e,ref:C,onLoad:e=>{g(e.currentTarget,d,x,b,v,p,j)},onError:e=>{w(!0),"empty"!==d&&v(!0),S&&S(e)}})});function b({isAppRouter:e,imgAttributes:t}){let r={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...y(t.fetchPriority)};return e&&o.default.preload?(o.default.preload(t.src,r),null):(0,a.jsx)(l.default,{children:(0,a.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...r},"__nimg-"+t.src+t.srcSet+t.sizes)})}let v=(0,s.forwardRef)((e,t)=>{let r=(0,s.useContext)(f.RouterContext),n=(0,s.useContext)(d.ImageConfigContext),i=(0,s.useMemo)(()=>{let e=h||n||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t),i=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r,qualities:i,localPatterns:"u"<typeof window?n?.localPatterns:e.localPatterns}},[n]),{onLoad:o,onLoadingComplete:l}=e,m=(0,s.useRef)(o);(0,s.useEffect)(()=>{m.current=o},[o]);let g=(0,s.useRef)(l);(0,s.useEffect)(()=>{g.current=l},[l]);let[y,v]=(0,s.useState)(!1),[w,j]=(0,s.useState)(!1),{props:_,meta:S}=(0,c.getImgProps)(e,{defaultLoader:p.default,imgConf:i,blurComplete:y,showAltText:w});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(x,{..._,unoptimized:S.unoptimized,placeholder:S.placeholder,fill:S.fill,onLoadRef:m,onLoadingCompleteRef:g,setBlurComplete:v,setShowAltText:j,sizesInput:e.sizes,ref:t}),S.preload?(0,a.jsx)(b,{isAppRouter:!r,imgAttributes:_}):null]})});("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},794909,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return u},getImageProps:function(){return c}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(555682),s=e.r(908927),o=e.r(605500),l=a._(e.r(1948));function c(e){let{props:t}=(0,s.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let u=o.Image},657688,(e,t,r)=>{t.exports=e.r(794909)},388760,e=>{"use strict";var t=e.i(843476),r=e.i(657688);function n({className:e="",size:n="default",variant:i="default"}){let{width:a,height:s}={sm:{width:120,height:40},default:{width:160,height:53},lg:{width:220,height:73}}[n];return(0,t.jsx)(r.default,{src:"white"===i?"/di-logo-white-svg.svg":"/di-logo.png",alt:"Day Interpreting",width:a,height:s,className:e,priority:!0})}e.s(["Logo",()=>n])},286536,e=>{"use strict";let t=(0,e.i(475254).default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Eye",()=>t],286536)},77705,e=>{"use strict";let t=(0,e.i(475254).default)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);e.s(["EyeOff",()=>t],77705)},474748,e=>{"use strict";
3var t=e.i(843476),r=e.i(271645),n=e.i(618566),i=e.i(653145),a=e.i(994814),s=e.i(681307),o=e.i(522016),l=e.i(657688),c=e.i(286536),u=e.i(77705),d=e.i(972520),f=e.i(388760),p=e.i(511795),m=e.i(46253),h=e.i(827353);let g=s.z.object({email:s.z.string().email("Please enter a valid email address"),password:s.z.string().min(1,"Password is required")}),y="h-12 w-full rounded-lg border border-input bg-background px-4 text-sm outline-none placeholder:text-gray-600 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] transition-shadow";function x(){return(0,t.jsx)(r.Suspense,{fallback:(0,t.jsx)("div",{className:"min-h-screen flex items-center justify-center",children:(0,t.jsx)("div",{className:"size-8 animate-spin rounded-full border-2 border-primary/30 border-t-primary"})}),children:(0,t.jsx)(b,{})})}function b(){let e=(0,n.useRouter)(),s=(0,n.useSearchParams)(),x=s.get("return"),b=s.get("bridge"),v=s.get("next"),w=(v&&v.startsWith("/oauth/")?v:null)??("zoom-app"===x?b?`/zoom-app/signed-in?bridge=${encodeURIComponent(b)}`:"/zoom-app/signed-in":"/portal"),[j,_]=(0,r.useState)(""),[S,P]=(0,r.useState)(!1),[O,N]=(0,r.useState)(null),[C,E]=(0,r.useState)(!1),[I,R]=(0,r.useState)(!1),[z,M]=(0,r.useState)(!1),[k,T]=(0,r.useState)(!1),{register:A,handleSubmit:$,formState:{errors:L}}=(0,i.useForm)({resolver:(0,a.zodResolver)(g)}),U=async e=>{_(""),E(!0);try{let t=(0,p.getSupabaseClient)(),{error:r}=await t.auth.signInWithPassword({email:e.email,password:e.password});if(r)_(r.message),fetch("https://api.dayinterpreting.com/functions/v1/log-portal-activity",{method:"POST",headers:{Authorization:"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InpzY2h0dnVmbmhudHZodXhleGVmIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjMwOTM4ODYsImV4cCI6MjA3ODY2OTg4Nn0.QC_zRVvt09-OdaS_LIN73Vzdy5GMyyEqAU0_vRzvMVs","Content-Type":"application/json"},body:JSON.stringify({action:"login_failed",description:`Failed login attempt for ${e.email}`,category:"general",status:"error",metadata:{email:e.email}})}).catch(()=>{});else{let{data:e,error:r}=await t.auth.getUser();if(r||!e?.user)return void _("Unable to load your session. Please try again.");let{data:n,error:i}=await t.from("profiles").select("id, account_id").eq("id",e.user.id).single();if(i||!n?.account_id){await t.auth.signOut(),_(i?.message||"Your account is not fully provisioned yet. Please contact support.");return}let{data:a,error:s}=await t.from("accounts").select("id").eq("id",n.account_id).single();if(s||!a?.id){await t.auth.signOut(),_(s?.message||"Your account is not fully provisioned yet. Please contact support.");return}(0,m.logPortalActivity)({action:"login",description:"Signed in via email/password",category:"general"}),fetch("https://api.dayinterpreting.com/functions/v1/mark-migration-complete",{method:"POST",headers:{Authorization:`Bearer ${(await t.auth.getSession()).data.session?.access_token??""}`,"Content-Type":"application/json"}}).catch(()=>{}),(0,h.pushDataLayer)({event:"sign_in",user_id:e.user.id,login_method:"email_password"}),k?localStorage.setItem("di_remember_me","true"):(localStorage.removeItem("di_remember_me"),sessionStorage.setItem("di_active_session","1")),window.location.href=w}}catch{_("An unexpected error occurred. Please try again.")}finally{E(!1)}};return(0,r.useEffect)(()=>{let t=window.location.hash||"";if(!t.startsWith("#")||t.length<=1)return;let r=new URLSearchParams(t.slice(1)),n=r.get("error_code"),i=r.get("error_description"),a=r.get("type"),s=r.get("access_token");if(n||i?_(decodeURIComponent(i||"Verification link is invalid or has expired. Please request a new one.")):("signup"===a||s)&&N("Thanks for verifying your email. Redirecting to login..."),window.history.replaceState(null,"","/portal/login"),"signup"===a||s){let t=window.setTimeout(()=>{N(null),e.replace("/portal/login")},2e3);return()=>window.clearTimeout(t)}},[e]),(0,r.useEffect)(()=>{(0,p.getSupabaseClient)().auth.getSession().then(({data:{session:t}})=>{t?.user&&e.replace(w)})},[e,w]),(0,r.useEffect)(()=>{let e=sessionStorage.getItem("portal_auth_error");e&&(_(e),sessionStorage.removeItem("portal_auth_error")),sessionStorage.getItem("portal_auth_no_account")&&(P(!0),sessionStorage.removeItem("portal_auth_no_account"))},[]),(0,t.jsxs)("div",{className:"min-h-screen flex",children:[(0,t.jsxs)("div",{className:"hidden lg:flex lg:w-1/2 relative overflow-hidden",children:[(0,t.jsxs)("div",{className:"absolute inset-0 [clip-path:polygon(0_0,100%_0,78%_100%,0_100%)]",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-[linear-gradient(145deg,#142248_0%,#1c44d6_5
35%,#5b7bff_100%)]"}),(0,t.jsx)(l.default,{src:"/auth-image.png",alt:"",fill:!0,className:"object-cover opacity-15 mix-blend-screen scale-[1.04]",priority:!0}),(0,t.jsx)("div",{className:"absolute inset-0 opacity-15",children:(0,t.jsxs)("svg",{className:"w-full h-full",viewBox:"0 0 100 100",preserveAspectRatio:"none",children:[(0,t.jsx)("defs",{children:(0,t.jsx)("pattern",{id:"grid",width:"10",height:"10",patternUnits:"userSpaceOnUse",children:(0,t.jsx)("path",{d:"M 10 0 L 0 0 0 10",fill:"none",stroke:"white",strokeWidth:"0.5"})})}),(0,t.jsx)("rect",{width:"100",height:"100",fill:"url(#grid)"})]})}),(0,t.jsx)("div",{className:"absolute -top-16 -left-12 w-[240px] h-[240px] rounded-full bg-white/8 blur-2xl"}),(0,t.jsx)("div",{className:"absolute -bottom-16 -right-12 w-[280px] h-[280px] rounded-full bg-white/8 blur-2xl"}),(0,t.jsx)("div",{className:"absolute top-1/2 left-1/4 w-36 h-36 rounded-full bg-white/8 blur-2xl"})]}),(0,t.jsxs)("div",{className:"relative z-10 flex flex-col justify-between p-12 text-white w-full",children:[(0,t.jsx)(f.Logo,{size:"lg",className:"brightness-0 invert"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.3em] text-white/60 mb-4",children:"Client Portal"}),(0,t.jsxs)("h2",{className:"text-[2.6rem] font-bold leading-[1.05] tracking-tight mb-5",children:["Language access,",(0,t.jsx)("br",{}),(0,t.jsx)("span",{className:"text-white/70",children:"on demand."})]}),(0,t.jsx)("p",{className:"text-base text-white/70 leading-relaxed max-w-sm",children:"Connect with professional interpreters in 200+ languages instantly. Manage your account, view call history, and purchase credits -- all in one place."}),(0,t.jsxs)("div",{className:"grid grid-cols-3 gap-5 mt-10 pt-10 border-t border-white/15",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-2xl font-bold tracking-tight",children:"200+"}),(0,t.jsx)("p",{className:"text-xs text-white/50 mt-1",children:"Languages"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-2xl font-bold tracking-tight",children:"<10s"}),(0,t.jsx)("p",{className:"text-xs text-white/50 mt-1",children:"Connect time"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-2xl font-bold tracking-tight",children:"24/7"}),(0,t.jsx)("p",{className:"text-xs text-white/50 mt-1",children:"Availability"})]})]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-5 gap-y-2 text-xs text-white/45",children:[(0,t.jsx)("span",{children:"HIPAA Compliant"}),(0,t.jsx)("span",{className:"w-1 h-1 rounded-full bg-white/25"}),(0,t.jsx)("span",{children:"SOC 2 Ready"}),(0,t.jsx)("span",{className:"w-1 h-1 rounded-full bg-white/25"}),(0,t.jsx)("span",{children:"ISO 27001"})]})]})]}),(0,t.jsxs)("div",{className:"flex-1 flex flex-col relative overflow-hidden",children:[(0,t.jsxs)("div",{className:"pointer-events-none absolute inset-0",children:[(0,t.jsx)("div",{className:"absolute -top-10 right-10 h-36 w-36 rounded-full bg-slate-200/30 blur-3xl"}),(0,t.jsx)("div",{className:"absolute -bottom-8 left-10 h-36 w-36 rounded-full bg-slate-200/30 blur-3xl"})]}),(0,t.jsx)("div",{className:"flex justify-center pt-8 lg:hidden",children:(0,t.jsx)(f.Logo,{size:"lg"})}),(0,t.jsx)("div",{className:"flex-1 flex items-center justify-center p-8",children:(0,t.jsxs)("div",{className:"w-full max-w-md
3space-y-8",children:[(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-full border border-primary/20 bg-primary/5 px-3 py-1 text-xs font-semibold text-primary",children:[(0,t.jsx)("span",{className:"size-2 rounded-full bg-primary"}),"My Portal"]}),(0,t.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:"Sign in to your account"}),(0,t.jsx)("p",{className:"text-gray-600",children:"Sign in to access your client portal"})]}),(0,t.jsxs)("button",{type:"button",disabled:z||C,onClick:async()=>{M(!0),_("");try{k?localStorage.setItem("di_remember_me","true"):(localStorage.removeItem("di_remember_me"),sessionStorage.setItem("di_active_session","1"));let e=(0,p.getSupabaseClient)(),t=new URL(`${window.location.origin}/portal/auth/callback`);x&&t.searchParams.set("return",x),b&&t.searchParams.set("bridge",b);let{error:r}=await e.auth.signInWithOAuth({provider:"google",options:{redirectTo:t.toString()}});r&&_(r.message)}catch{_("Failed to initiate Google sign-in")}finally{M(!1)}},className:"h-12 w-full rounded-lg border border-input bg-background text-sm font-medium transition-all hover:bg-accent flex items-center justify-center gap-3 disabled:pointer-events-none disabled:opacity-50",children:[z?(0,t.jsx)("span",{className:"size-4 animate-spin rounded-full border-2 border-muted-foreground/30 border-t-muted-foreground"}):(0,t.jsxs)("svg",{className:"size-5",viewBox:"0 0 24 24",children:[(0,t.jsx)("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z",fill:"#4285F4"}),(0,t.jsx)("path",{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",fill:"#34A853"}),(0,t.jsx)("path",{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",fill:"#FBBC05"}),(0,t.jsx)("path",{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",fill:"#EA4335"})]}),"Continue with Google"]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,t.jsx)("div",{className:"w-full border-t border-border"})}),(0,t.jsx)("div",{className:"relative flex justify-center text-xs uppercase",children:(0,t.jsx)("span",{className:"bg-background px-2 text-gray-600",children:"or"})})]}),(0,t.jsxs)("form",{onSubmit:$(U),className:"space-y-5",children:[O&&(0,t.jsx)("div",{className:"rounded-lg border border-primary/20 bg-primary/5 px-4 py-3 text-sm text-primary",children:O}),j&&(0,t.jsxs)("div",{className:"rounded-lg border border-destructive/20 bg-destructive/5 px-4 py-3 text-sm text-destructive space-y-1",children:[(0,t.jsx)("p",{children:j}),S&&(0,t.jsxs)("p",{className:"text-destructive/80",children:["New to Day Interpreting?"," ",(0,t.jsx)(o.default,{href:"/portal/signup",className:"font-semibold underline underline-offset-2 hover:text-destructive",children:"Create an account"})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("label",{htmlFor:"email",className:"text-sm font-medium",children:"Email"}),(0,t.jsx)("input",{id:"email",type:"email",placeholder:"[email protected]",autoComplete:"email",className:y,...A("email")}),L.email&&(0,t.jsx)("p",{className:"text-sm text-destructive",children:L.email.message})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("label",{htmlFor:"password",className:"text-sm font-medium",children:"Password"}),(0,t.jsx)(o.default,{href:"/portal/forgot-password",className:"text-sm text-primary hover:underline",children:"Forgot password?"})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{id:"password",type:I?"text":"password",placeholder:"Enter your password",autoComplete:"current-password",className:`${y} pr-10`,...A("password")}),(0,t.jsx)("button",{type:"button",onClick:()=>R(!I),className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-600 hover:text-foreground transition-colors","aria-label":I?"Hide password":"Show password",children:I?(0,t.jsx)(u.EyeOff,{className:"size-5"}):(0,t.jsx)(c.Eye,{className:"size-5"})})]}),L.password&&(0,t.jsx)("p",{className:"text-sm text-destructive",children:L.password.message}),(0,t.jsxs)("p",{className:"text-xs text-gray-700",children:["First time signing in to the new portal?"," ",(0,t.jsx)(o.default,{href:"/portal/forgot-password",className:"font-medium text-primary hover:underline",children:"Use Forgot password"})," ","with your email â we'll help you set a new password on your existing account."]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("input",{id:"remember",type:"checkbox",checked:k,onChange:e=>T(e.target.checked),className:"size-4 rounded border-input accent-primary"}),(0,t.jsx)("label",{htmlFor:"remember",className:"text-sm text-gray-600 cursor-pointer",children:"Remember me for 30 days"})]}),(0,t.jsx)("button",{type:"submit",disabled:C,className:"h-14 px-10 rounded-lg bg-brand-gradient text-base font-semibold text-white shadow-lg transition-all cursor-pointer hover:-translate-y-0.5 hover:shadow-[0_14px_30px_-18px_rgba(28,68,214,0.9)] disabled:pointer-events-none disabled:opacity-50 inline-flex items-center justify-center gap-2",children:C?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"size-4 animate-spin rounded-full border-2 border-white/30 border-t-white"}),"Signing in..."]}):(0,t.jsxs)(t.Fragment,{children:["Sign in",(0,t.jsx)(d.ArrowRight,{className:"size-4"})]})})]}),(0,t.jsxs)("p",{className:"text-center text-sm text-gray-600",children:["Don't have an account?"," ",(0,t.jsx)(o.default,{href:"/portal/signup",className:"font-semibold text-primary hover:underline",children:"Create an account"})]})]})}),(0,t.jsxs)("p",{className:"pb-6 text-center text-xs text-gray-600 lg:hidden",children:["© ",new Date().getFullYear()," Day Interpreting"]})]})]})}e.s(["default",()=>x,"dynamic",0,"force-dynamic"])}]);
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.