PageSourceSearch

https://boardwalkai.com/_next/static/chunks/9161-a42ed2719238ad91.js

js boardwalkai.com collected 2026-10-09 22:56:48 UTC 9,642 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9161],{3998:(e,r,t)=>{t.d(r,{$:()=>l});var s=t(95155);t(12115);var i=t(32467),n=t(83101),a=t(64269);let o=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-brand text-primary-foreground shadow-xs hover:bg-brand-dim",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-brand underline-offset-4 hover:underline",pill:"rounded-full border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground data-[state=on]:bg-brand data-[state=on]:text-primary-foreground data-[state=on]:border-brand aria-pressed:bg-brand aria-pressed:text-primary-foreground aria-pressed:border-brand"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-7 gap-1 px-2.5 text-xs has-[>svg]:px-2",sm:"h-8 gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 px-6 has-[>svg]:px-4",icon:"size-9 rounded-full",navRail:"size-8 p-0 gap-0 has-[>svg]:p-0"}},compoundVariants:[{variant:"pill",class:"rounded-full"},{variant:"pill",size:"xs",class:"has-[>svg:first-child]:ps-2 has-[>svg:first-child]:pe-2.5"},{variant:"pill",size:"sm",class:"has-[>svg:first-child]:ps-2.5 has-[>svg:first-child]:pe-3.5"},{variant:"pill",size:"default",class:"has-[>svg:first-child]:ps-3 has-[>svg:first-child]:pe-4"},{variant:"pill",size:"lg",class:"has-[>svg:first-child]:ps-4 has-[>svg:first-child]:pe-5"}],defaultVariants:{variant:"default",size:"default"}});function l(e){let{className:r,variant:t,size:n,asChild:l=!1,...d}=e,u=l?i.DX:"button";return(0,s.jsx)(u,{"data-slot":"button",className:(0,a.cn)(o({variant:t,size:n}),r),...d})}},7569:(e,r,t)=>{t.d(r,{S:()=>o});var s=t(95155),i=t(15239),n=t(52619),a=t.n(n);function o(){return(0,s.jsx)("header",{className:"mb-6 text-center",children:(0,s.jsx)("div",{className:"flex h-6 items-center justify-center",children:(0,s.jsx)(a(),{href:"/",className:"inline-flex min-h-11 items-center rounded-sm","aria-label":"Boardwalk home",children:(0,s.jsx)(i.default,{src:"/boardwalk-black.svg",alt:"Boardwalk",width:979,height:77,className:"h-auto w-60 max-w-full",priority:!0})})})})}},12320:(e,r,t)=>{t.d(r,{d:()=>i});var s=t(95155);function i(){return(0,s.jsxs)("div",{"aria-hidden":"true",className:"pointer-events-none fixed inset-0 overflow-hidden",children:[(0,s.jsx)("div",{className:"absolute -inset-3 origin-top-right scale-[1.08] bg-cover bg-right-top bg-no-repeat blur-[4px]",style:{backgroundImage:"url(/images/auth-app-background.webp)"}}),(0,s.jsx)("div",{className:"absolute inset-0 bg-black/65"})]})}},16994:(e,r,t)=>{t.d(r,{f:()=>n});var s=t(95155),i=t(3998);function n(e){let{message:r,onDismiss:t}=e;return(0,s.jsxs)("div",{role:"alert","aria-atomic":"true",className:"mb-4 rounded-md bg-destructive/10 p-3 text-sm text-destructive",children:[(0,s.jsx)("p",{className:"whitespace-pre-wrap break-words",children:r}),(0,s.jsx)(i.$,{type:"button",variant:"link",size:"sm",onClick:t,className:"mt-2 h-11 px-0 text-destructive",children:"Dismiss"})]})}},64269:(e,r,t)=>{t.d(r,{cn:()=>n});var s=t(2821);let i=(0,t(75889).zu)({extend:{classGroups:{"font-size":["text-title","text-section","text-ui-lg","text-ui","text-ui-sm","text-label","text-meta"]}}});function n(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return i((0,s.$)(r))}},65142:(e,r,t)=>{t.d(r,{p:()=>n});var s=t(95155);t(12115);var i=t(64269);function n(e){let{className:r,type:t,...n}=e;return(0,s.jsx)("input",{type:t,"data-slot":"input",className:(0,i.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",r),...n})}},87056:(e,r,t)=>{t.d(r,{AuthProvider:()=>v,jO:()=>u,As:()=>f});var s=t(95155),i=t(12115),n=t(47886),a=t(95704),o=t(65932),l=t(58406);function d(e){if(!e)return void(0,l.sd)({userId:null,teamId:null,planTier:null,isTrial:null,isPaying:null,isInternal:!1});
1(0,l.sd)({userId:Number.isFinite(Number(e.id))?Number(e.id):null,isInternal:(0,n.uN)(e,"ROLE_ADMIN")})}let u="bw_signup_at";function c(){try{return!!window.localStorage.getItem("pendingTeamInvite")}catch(e){return!1}}function g(){try{window.localStorage.setItem(u,String(Date.now()))}catch(e){}}let h=(0,i.createContext)(void 0);function v(e){let{children:r}=e,[t,u]=(0,i.useState)(null),[v,f]=(0,i.useState)(!0),[p,b]=(0,i.useState)(!1),[m,x]=(0,i.useState)(!1);(0,i.useEffect)(()=>{(async()=>{console.log("=== Environment Debug Info ==="),console.log("API URL:","https://data.civicstar.ai"),console.log("Environment:","production"),console.log("NODE_ENV:","production"),console.log("Current URL:",window.location.href),console.log("Auth token present:",!!localStorage.getItem("token")),console.log("Auth user present:",!!localStorage.getItem("user")),console.log("All NEXT_PUBLIC env vars:",Object.keys(a.env).filter(e=>e.startsWith("NEXT_PUBLIC_"))),console.log("===============================");let e=n.y1.getUser(),r=n.y1.getToken();if(e&&r&&n.y1.tokenNeedsRefresh()&&(await n.y1.ensureFreshToken(),e=n.y1.getUser(),r=n.y1.isAuthenticatedSync()?n.y1.getToken():null),console.log("\uD83D\uDD27 AUTH INIT - User:",!!e,"Token:",!!r),e&&r)try{console.log("\uD83D\uDD27 AUTH INIT - Setting authenticated state from localStorage"),u(e),b(!0),(0,o.gm)(e),d(e),console.log("\uD83D\uDD27 AUTH INIT - Auth state set to authenticated for user:",e.email)}catch(e){console.error("\uD83D\uDD27 AUTH INIT - Error during authentication setup:",e),e instanceof SyntaxError&&(console.log("\uD83D\uDD27 AUTH INIT - Clearing auth due to parsing error"),n.y1.logout(),u(null),b(!1))}else console.log("\uD83D\uDD27 AUTH INIT - Setting unauthenticated state"),u(null),b(!1),d(null);f(!1),x(!0)})()},[]);let y=async(e,r,t)=>{f(!0);try{let s=await n.y1.login(e,r,t);if(s.needsVerification)return u(null),b(!1),(0,l.u4)("signin_failed",{method:"email",reason:"unverified"}),s;return s.success&&s.user?(u(s.user),b(!0),(0,o.TF)({user:s.user,method:"email",isNewUser:s.isNewUser}),d(s.user),(0,l.u4)("user_signed_in",{method:"email",is_first_login:!0===s.isNewUser})):(u(null),b(!1),(0,l.u4)("signin_failed",{method:"email",reason:function(e){let r=(e||"").toLowerCase();return r.includes("verif")?"unverified":r.includes("lock")||r.includes("disabled")||r.includes("suspend")?"locked":r.includes("network")||r.includes("server")||r.includes("unavailable")?"server":r.includes("credential")||r.includes("password")||r.includes("invalid")||r.includes("email")?"bad_credentials":"server"}(s.error)})),s}finally{f(!1)}},w=async()=>{console.log("\uD83D\uDD27 AUTH LOGOUT - Starting logout process"),console.trace("\uD83D\uDD27 AUTH LOGOUT - Logout called from:"),f(!0);try{await n.y1.logout(),console.log("\uD83D\uDD27 AUTH LOGOUT - Auth service logout completed"),(0,o.i_)(),(0,l.u4)("user_logged_out",{trigger:"user"}),d(null),u(null),b(!1),console.log("\uD83D\uDD27 AUTH LOGOUT - Auth state cleared"),window.location.replace("/")}catch(e){throw f(!1),e}},k=async(e,r,t,s,i,a,h,v,p,m)=>{f(!0);try{let f=await n.y1.register(e,r,t,s,i,a,h,v,p,m);if(f.needsVerification)return u(null),b(!1),g(),(0,l.u4)("user_registered",{method:"email",is_invited:c()}),f;return f.success&&f.user?(u(f.user),b(!0),(0,o.TF)({user:f.user,method:"email",isNewUser:!0}),d(f.user),g(),(0,l.u4)("user_registered",{method:"email",is_invited:c()}),(0,l.u4)("user_signed_in",{method:"email",is_first_login:!0})):(u(null),b(!1)),f}finally{f(!1)}},_=async(e,r)=>{let t=await n.y1.verifySignup(e,r);return t.success&&t.user&&(u(t.user),b(!0),(0,o.TF)({user:t.user,method:"email",isNewUser:!0}),d(t.user),(0,l.u4)("user_signed_in",{method:"email",is_first_login:!0})),t},N=async e=>n.y1.resendVerification(e),T=async e=>{try{return await n.y1.requestPasswordReset(e)}catch(e){return{success:!1,error:"Failed to send password reset email"}}},I=async(e,r)=>{try{return await n.y1.resetPassword(e,r)}catch(e){return{success:!1,error:"Failed to reset password"}}},U=null==t?void 0:t.id,A=(0,i.useCallback)(e=>{if(!U)return;let r=n.y1.updateUserProfile(U,e);r&&u(r)},[U]);return(0,s.jsx)(h.Provider,{value:{user:t,loading:v,login:y,logout:w,register:k,verifySignup:_,resendVerification:N,requestPasswordReset:T,resetPassword:I,isAuthenticated:p,updateProfile:A},children:r})}function f(){let e=(0,i.useContext)(h);if(void 0===e)throw Error("useAuth must be used within an AuthProvider");return e}}}]);

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.