1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1298],{7183:(e,s,l)=>{"use strict";function t(e){return(s,l)=>e("".concat("account",".").concat(s),l)}function a(e,s){return e("orgKinds.".concat(s))}function r(e,s){return e("orgRoles.".concat(s))}function n(e,s){return e("socialPlatforms.".concat(s))}l.d(s,{$8:()=>a,QL:()=>t,ZM:()=>r,d6:()=>i,dG:()=>o,ty:()=>n});let i=["business","charity","social_enterprise","society","other"],o=["website","linkedin","facebook","instagram","x","youtube","tiktok","mastodon","other"]},8376:(e,s,l)=>{"use strict";l.d(s,{PasswordForm:()=>r});var t=l(95155),a=l(12115);function r(e){let{action:s,submitLabel:l,showEmail:r=!1,emailOnly:n=!1,compact:i=!1}=e,o=!n,[c,d,m]=(0,a.useActionState)(async(e,l)=>{let t=await s(e,l);return null!=t?t:{}},void 0),u=i?"mb-0.5 block text-xs font-medium text-secondary":"mb-1 block text-sm font-medium text-secondary";return(0,t.jsxs)("form",{action:d,className:"flex w-full flex-col ".concat(i?"gap-2":"max-w-sm gap-4"),children:[r||n?(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"email",className:u,children:"Email"}),(0,t.jsx)("input",{id:"email",name:"email",type:"email",required:!0,autoComplete:"email",className:"os-input"})]}):null,o?(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"password",className:u,children:"New password"}),(0,t.jsx)("input",{id:"password",name:"password",type:"password",required:!0,minLength:8,autoComplete:"new-password",className:"os-input"})]}):null,o?(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"confirm",className:u,children:"Confirm new password"}),(0,t.jsx)("input",{id:"confirm",name:"confirm",type:"password",required:!0,minLength:8,autoComplete:"new-password",className:"os-input"})]}):null,(null==c?void 0:c.error)?(0,t.jsx)("p",{className:"text-sm text-danger",role:"alert",children:c.error}):null,(null==c?void 0:c.success)?(0,t.jsx)("p",{className:"text-sm text-success",role:"status",children:c.success}):null,(0,t.jsx)("button",{type:"submit",disabled:m,className:"os-btn-primary disabled:opacity-50",children:m?"â¦":l})]})}},11479:(e,s,l)=>{"use strict";l.d(s,{AuthForm:()=>i});var t=l(95155),a=l(12115),r=l(86437),n=l(33322);function i(e){let{action:s,submitLabel:l,pendingLabel:i="Signing inâ¦",alternate:o,next:c}=e,{translate:d}=(0,n.L)(),[m,u,x]=(0,a.useActionState)(async(e,l)=>{try{let t=await s(e,l);return null!=t?t:{}}catch(e){if((0,r.isRedirectError)(e))throw e;return{error:e instanceof Error?e.message:"Sign-in failed."}}},void 0);return(0,t.jsxs)("form",{action:u,className:"flex w-full max-w-sm flex-col gap-4",children:[c?(0,t.jsx)("input",{type:"hidden",name:"next",value:c}):null,(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"email",className:"mb-1 block text-sm font-medium text-secondary",children:"Email"}),(0,t.jsx)("input",{id:"email",name:"email",type:"email",required:!0,autoComplete:"email",className:"os-input"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"password",className:"mb-1 block text-sm font-medium text-secondary",children:"Password"}),(0,t.jsx)("input",{id:"password",name:"password",type:"password",required:!0,minLength:8,autoComplete:"Sign up"===l?"new-password":"current-password",className:"os-input"})]}),(null==m?void 0:m.error)?(0,t.jsx)("p",{className:"text-sm text-danger",role:"alert",children:m.error}):null,(0,t.jsx)("button",{type:"submit",disabled:x,className:"os-btn-primary disabled:opacity-50",children:x?i:l}),x?(0,t.jsx)("p",{className:"text-xs text-muted",children:d("auth.signInSlowHint")}):null,o?(0,t.jsx)("p",{className:"text-center text-sm text-muted",children:(0,t.jsx)("a",{href:o.href,className:"os-link",children:o.label})}):null]})}},16807:(e,s,l)=>{"use strict";l.r(s),l.d(s,{SocialLinksEditor:()=>o});var t=l(95155),a=l(12115),r=l(17039),n=l(33322),i=l(7183);function o(e){let{links:s,saveAction:l,removeAction:o,organizationId:c,orgRemoveAction:d,canEditOrg:m}=e,{translate:u}=(0,n.L)(),x=(0,i.QL)(u),p=u("common.required"),h=u("common.optional"),[f,b,j]=(0,a.useActionState)(l,void 0),[v,g]=(0,a.useTransition)();return(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[s.length>0?(0,t.jsx)("ul",{className:"flex flex-col gap-2",children:s.map(e=>(0,t.jsxs)("li",{className:"flex flex-wrap items-center justify-between gap-2 rounded-lg border border-border bg-surface px-3 py-2 text-sm",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsxs)("span",{className:"font-medium text-foreground",children:[(0,i.ty)(x,e.platform),e.label?" \xb7 ".concat(e.label):""]}),(0,t.jsx)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"mt-0.5 block truncate text-xs os-link",children:e.url})]}),(0,t.jsx)("button",{type:"button",disabled:v,className:"text-xs text-danger hover:underline",onClick:()=>g(async()=>{c&&d?await d(c,e.id):o&&await o(e.id)}),children:u("common.remove")})]},e.id))}):(0,t.jsx)("p",{className:"text-xs text-muted",children:x("social.empty")}),c&&!m?(0,t.jsx)("p",{className:"text-xs text-muted",children:x("social.adminOnly")}):(0,t.jsxs)("form",{action:b,className:"flex flex-col gap-3 rounded-lg border border-dashed border-border p-3",children:[c?(0,t.jsx)("input",{type:"hidden",name:"organization_id",value:c}):null,(0,t.jsx)("p",{className:"text-xs font-medium text-secondary",children:x("social.addLink")}),(0,t.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-xs",children:[(0,t.jsx)(r.d,{required:!0,requiredTitle:p,children:x("social.platform")}),(0,t.jsx)("select",{name:"platform",className:"os-input",required:!0,"aria-required":"true",defaultValue:"website",children:i.dG.map(e=>(0,t.jsx)("option",{value:e,children:(0,i.ty)(x,e)},e))})]}),(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-xs",children:[(0,t.jsx)(r.d,{optional:!0,optionalLabel:h,children:x("social.labelOptional")}),(0,t.jsx)("input",{name:"label",className:"os-input",placeholder:x("social.labelPlaceholder")})]})]}),(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-xs",children:[(0,t.jsx)(r.d,{required:!0,requiredTitle:p,children:x("social.url")}),(0,t.jsx)("input",{name:"url",className:"os-input",type:"url",placeholder:"https://",required:!0,"aria-required":"true"})]}),(null==f?void 0:f.error)?(0,t.jsx)("p",{className:"text-xs text-danger",children:f.error}):null,(0,t.jsx)("button",{type:"submit",disabled:j,className:"os-btn-secondary w-full sm:w-auto text-xs",children:j?x("social.adding"):x("social.add")})]})]})}},17039:(e,s,l)=>{"use strict";l.d(s,{d:()=>a});var t=l(95155);function a(e){let{children:s,required:l=!1,optional:a=!1,requiredTitle:r="Required",optionalLabel:n="optional",className:i="text-muted"}=e;return(0,t.jsxs)("span",{className:i,children:[s,l?(0,t.jsx)("abbr",{className:"ml-0.5 text-warning no-underline",title:r,"aria-label":r,children:"*"}):null,a?(0,t.jsxs)("span",{className:"font-normal text-muted/80",children:[" (",n,")"]}):null]})}},20063:(e,s,l)=>{"use strict";var t=l(47260);l.o(t,"usePathname")&&l.d(s,{usePathname:function(){return t.usePathname}}),l.o(t,"useRouter")&&l.d(s,{useRouter:function(){return t.useRouter}}),l.o(t,"useSearchParams")&&l.d(s,{useSearchParams:function(){return t.useSearchParams}})},27351:(e,s,l)=>{"use strict";l.d(s,{SeoModuleAccessPanel:()=>o});var t=l(95155),a=l(12115),r=l(33322),n=l(30926);let i=(0,n.createServerReference)("60869211f284b4cc5a23f811b7f9af13379c4a9f48",n.callServer,void 0,n.findSourceMapURL,"updateSeoModuleAllowlistAction");function o(e){let{initialAllowlist:s}=e,{translate:l}=(0,r.L)(),[n,o,c]=(0,a.useActionState)(i,void 0);return(0,t.jsxs)("section",{id:"seo-access",className:"os-panel mt-2 scroll-mt-24 border-t border-border p-4 sm:p-5",children:[(0,t.jsx)("p",{className:"os-section-label",children:l("seoAccess.admin.kicker")}),(0,t.jsx)("h2",{className:"mt-1 text-sm font-medium text-foreground",children:l("seoAccess.admin.title")}),(0,t.jsx)("p",{className:"mt-1 text-xs text-secondary",children:l("seoAccess.admin.lead")}),(0,t.jsxs)("form",{action:o,className:"mt-4 flex flex-col gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"seo_allowlist_emails",className:"mb-1 block text-xs text-muted",children:l("seoAccess.admin.allowlistLabel")}),(0,t.jsx)("textarea",{id:"seo_allowlist_emails",name:"seo_allowlist_emails",rows:3,defaultValue:s,placeholder:l("seoAccess.admin.allowlistPlaceholder"),className:"os-input w-full resize-y font-mono text-sm"})]}),(null==n?void 0:n.error)?(0,t.jsx)("p",{className:"text-xs text-danger",children:n.error}):null,(null==n?void 0:n.ok)?(0,t.jsx)("p",{className:"text-xs text-success",children:l("seoAccess.admin.saved")}
1):null,(0,t.jsx)("button",{type:"submit",disabled:c,className:"self-start os-btn-primary text-sm",children:l(c?"seoAccess.admin.saving":"seoAccess.admin.save")})]})]})}},30926:(e,s,l)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),!function(e,s){for(var l in s)Object.defineProperty(e,l,{enumerable:!0,get:s[l]})}(s,{callServer:function(){return t.callServer},createServerReference:function(){return r.createServerReference},findSourceMapURL:function(){return a.findSourceMapURL}});let t=l(41209),a=l(85153),r=l(77197)},46444:(e,s,l)=>{"use strict";l.d(s,{ProfileForm:()=>o});var t=l(95155),a=l(12115),r=l(17039),n=l(33322),i=l(7183);function o(e){let{profile:s,signInEmail:l,action:o,compact:c=!1,minimal:d=!1}=e,{translate:m}=(0,n.L)(),u=(0,i.QL)(m),x=m("common.required"),[p,h,f]=(0,a.useActionState)(o,void 0);return(0,t.jsxs)("form",{action:h,className:"flex flex-col ".concat(c?"gap-3":"gap-4"),children:[c?null:(0,t.jsx)("p",{className:"text-[10px] text-muted",children:m("common.requiredFieldsHint")}),(0,t.jsxs)("div",{className:"grid sm:grid-cols-2 ".concat(c?"gap-3":"gap-4"),children:[(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-xs",children:[(0,t.jsx)(r.d,{required:!0,requiredTitle:x,children:u("profile.firstName")}),(0,t.jsx)("input",{name:"first_name",className:"os-input",defaultValue:s.first_name,required:!0,"aria-required":"true",autoComplete:"given-name"})]}),(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-xs",children:[(0,t.jsx)(r.d,{required:!0,requiredTitle:x,children:u("profile.lastName")}),(0,t.jsx)("input",{name:"last_name",className:"os-input",defaultValue:s.last_name,required:!0,"aria-required":"true",autoComplete:"family-name"})]})]}),d?null:c?(0,t.jsx)("p",{className:"text-[11px] text-muted",children:(0,t.jsx)("a",{href:"#security",className:"os-link",children:u("profile.changeEmailLink")})}):(0,t.jsxs)("p",{className:"text-xs text-muted",children:[u("profile.contactHint")," ",(0,t.jsx)("span",{className:"font-mono text-secondary",children:l})," â"," ",(0,t.jsx)("a",{href:"#email",className:"os-link",children:u("profile.changeEmailLink")})]}),(null==p?void 0:p.error)?(0,t.jsx)("p",{className:"text-xs text-danger",children:p.error}):null,(null==p?void 0:p.ok)?(0,t.jsx)("p",{className:"text-xs text-success",children:u("profile.saved")}):null,(0,t.jsx)("button",{type:"submit",disabled:f,className:"os-btn-primary w-full sm:w-auto",children:u(f?"profile.saving":"profile.save")})]})}},47519:(e,s,l)=>{"use strict";l.d(s,{AccountPreferencesPanel:()=>n});var t=l(95155),a=l(76135),r=l(33322);function n(){let{translate:e,themeChangeable:s}=(0,r.L)();return(0,t.jsxs)("section",{className:"os-panel p-4",id:"preferences","aria-labelledby":"account-preferences-heading",children:[(0,t.jsx)("h2",{id:"account-preferences-heading",className:"text-xs font-medium text-foreground",children:e("account.preferences.title")}),(0,t.jsx)("p",{className:"mt-1 text-[11px] text-muted",children:e(s?"account.preferences.lead":"account.preferences.leadLocaleOnly")}),(0,t.jsx)("div",{className:"mt-3",children:(0,t.jsx)(a.u,{})})]})}},62803:(e,s,l)=>{"use strict";l.d(s,{SiteAccessAdminPanel:()=>c});var t=l(95155),a=l(12115),r=l(33322),n=l(30926);let i=(0,n.createServerReference)("60b00d686a79ca5c200451628a3a79903b45c8ea4b",n.callServer,void 0,n.findSourceMapURL,"updateSiteAccessConfigAction"),o=["live","closed_beta","maintenance"];function c(e){let{initialMode:s,initialBetaNotice:l,initialBetaNoticeMi:n,initialMaintenanceNotice:c,initialMaintenanceNoticeMi:d}=e,{translate:m}=(0,r.L)(),[u,x,p]=(0,a.useActionState)(i,void 0);return(0,t.jsxs)("section",{className:"os-panel mt-6 p-4 sm:p-5",children:[(0,t.jsx)("p",{className:"os-section-label",children:m("siteAccess.admin.kicker")}),(0,t.jsx)("h2",{className:"mt-1 text-sm font-medium text-foreground",children:m("siteAccess.admin.title")}),(0,t.jsx)("p",{className:"mt-1 text-xs text-secondary",children:m("siteAccess.admin.lead")}),(0,t.jsxs)("form",{action:x,className:"mt-4 flex flex-col gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"access_mode",className:"mb-1 block text-xs text-muted",children:m("siteAccess.admin.modeLabel")}),(0,t.jsx)("select",{id:"access_mode",name:"access_mode",defaultValue:s,
1className:"os-input w-full font-mono text-sm",children:o.map(e=>(0,t.jsx)("option",{value:e,children:m("siteAccess.admin.modes.".concat(e))},e))})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"beta_notice",className:"mb-1 block text-xs text-muted",children:m("siteAccess.admin.betaNoticeLabel")}),(0,t.jsx)("textarea",{id:"beta_notice",name:"beta_notice",rows:3,defaultValue:l,placeholder:m("siteAccess.admin.noticePlaceholder"),className:"os-input w-full resize-y text-sm"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"beta_notice_mi",className:"mb-1 block text-xs text-muted",children:m("siteAccess.admin.betaNoticeMiLabel")}),(0,t.jsx)("textarea",{id:"beta_notice_mi",name:"beta_notice_mi",rows:3,defaultValue:n,placeholder:m("siteAccess.admin.noticeMiPlaceholder"),className:"os-input w-full resize-y text-sm"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"maintenance_notice",className:"mb-1 block text-xs text-muted",children:m("siteAccess.admin.maintenanceNoticeLabel")}),(0,t.jsx)("textarea",{id:"maintenance_notice",name:"maintenance_notice",rows:3,defaultValue:c,placeholder:m("siteAccess.admin.noticePlaceholder"),className:"os-input w-full resize-y text-sm"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"maintenance_notice_mi",className:"mb-1 block text-xs text-muted",children:m("siteAccess.admin.maintenanceNoticeMiLabel")}),(0,t.jsx)("textarea",{id:"maintenance_notice_mi",name:"maintenance_notice_mi",rows:3,defaultValue:d,placeholder:m("siteAccess.admin.noticeMiPlaceholder"),className:"os-input w-full resize-y text-sm"})]}),(null==u?void 0:u.error)?(0,t.jsx)("p",{className:"text-sm text-danger",children:u.error}):null,(null==u?void 0:u.ok)?(0,t.jsx)("p",{className:"text-sm text-success",children:m("siteAccess.admin.saved")}):null,(0,t.jsx)("button",{type:"submit",disabled:p,className:"self-start os-btn-primary text-sm disabled:opacity-50",children:p?m("siteAccess.admin.saving"):m("siteAccess.admin.save")})]})]})}},64990:(e,s,l)=>{"use strict";l.d(s,{VolunteerSeekSyncPanel:()=>o});var t=l(95155),a=l(12115),r=l(33322),n=l(30926);let i=(0,n.createServerReference)("407de607578baa08ea2e67e0b8e1aa2f288f335c4d",n.callServer,void 0,n.findSourceMapURL,"syncSeekVolunteerListingsAction");function o(){let{translate:e}=(0,r.L)(),[s,l,n]=(0,a.useActionState)(i,void 0);return(0,t.jsxs)("section",{id:"seek-sync",className:"os-panel mt-6 scroll-mt-24 p-4 sm:p-5",children:[(0,t.jsx)("p",{className:"os-section-label",children:e("volunteers.import.syncKicker")}),(0,t.jsx)("h2",{className:"mt-1 text-sm font-medium text-foreground",children:e("volunteers.import.syncTitle")}),(0,t.jsx)("p",{className:"mt-1 text-xs text-secondary",children:e("volunteers.import.syncLead")}),(0,t.jsx)("p",{className:"mt-2 text-[10px] text-muted",children:e("volunteers.import.syncCronNote")}),(0,t.jsx)("form",{action:l,className:"mt-4",children:(0,t.jsx)("button",{type:"submit",disabled:n,className:"os-btn-primary text-sm",children:e(n?"volunteers.import.syncing":"volunteers.import.syncCta")})}),(null==s?void 0:s.error)?(0,t.jsx)("p",{className:"mt-3 text-xs text-danger",children:s.error}):null,(null==s?void 0:s.ok)&&s.result?(0,t.jsxs)("div",{className:"mt-3 rounded-lg border border-border bg-card px-3 py-2 text-xs text-secondary",children:[(0,t.jsx)("p",{children:e("volunteers.import.syncDone")}),(0,t.jsxs)("ul",{className:"mt-2 list-inside list-disc",children:[(0,t.jsxs)("li",{children:[s.result.pagesFetched," ",e("volunteers.import.syncPages")]}),(0,t.jsxs)("li",{children:[s.result.scanned," ",e("volunteers.import.syncScanned")]}),(0,t.jsxs)("li",{children:[s.result.inserted," ",e("volunteers.import.syncInserted")]}),(0,t.jsxs)("li",{children:[s.result.updated," ",e("volunteers.import.syncUpdated")]}),s.result.enriched>0?(0,t.jsxs)("li",{children:[s.result.enriched," ",e("volunteers.import.syncEnriched")]}):null,s.result.expired>0?(0,t.jsxs)("li",{children:[s.result.expired," ",e("volunteers.import.syncExpired")]}):null]}),s.result.errors.length?(0,t.jsx)("p",{className:"mt-2 text-danger",children:s.result.errors.slice(0,3).join(" \xb7 ")}):null]}):null]})}},67929:(e,s,l)=>{"use strict";l.d(s,{AccountPrimaryWorkspaceForm:()=>i});var t=l(95155),a=l(12115),r=l(33322),n=l(7183);function i(e){let{workspaces:s,currentSlug:l,action:i}=e,{translate:o}=(0,r.L)(),c=(0,n.QL)(o),[d,m,u]=(0,a.useActionState)(i,void 0);return s.length<=1?null:(0,t.jsxs)("section",{className:"os-panel p-4",id:"primary-workspace","aria-labelledby":"account-primary-workspace-heading",children:[(0,t.jsx)("h2",{id:"account-primary-workspace-heading",className:"text-xs font-medium text-foreground",children:c("primaryWorkspace.title")}),(0,t.jsx)("p",{className:"mt-1 text-[11px] text-muted",children:c("primaryWorkspace.lead")}),(0,t.jsxs)("form",{action:m,className:"mt-3 flex flex-col gap-3 sm:flex-row sm:items-end",children:[(0,t.jsxs)("label",{className:"flex min-w-0 flex-1 flex-col gap-1 text-xs",children:[(0,t.jsx)("span",{className:"text-secondary",children:c("primaryWorkspace.label")}),(0,t.jsxs)("select",{name:"primary_workspace_slug",className:"os-input",defaultValue:null!=l?l:"",children:[(0,t.jsx)("option",{value:"",children:c("primaryWorkspace.auto")}),s.map(e=>(0,t.jsxs)("option",{value:e.slug,children:[e.name," (",e.slug,")"]},e.slug))]})]}),(0,t.jsx)("button",{type:"submit",disabled:u,className:"os-btn-primary shrink-0 text-sm disabled:opacity-50",children:c(u?"primaryWorkspace.saving":"primaryWorkspace.save")})]}),(null==d?void 0:d.error)?(0,t.jsx)("p",{className:"mt-2 text-xs text-danger",children:d.error}):null,(null==d?void 0:d.ok)?(0,t.jsx)("p",{className:"mt-2 text-xs text-success",children:c("primaryWorkspace.saved")}):null]})}},68405:(e,s,l)=>{"use strict";l.d(s,{OrgInvitePanel:()=>c});var t=l(95155),a=l(12115),r=l(17039),n=l(33322),i=l(7183);function o(e){let s="https://www.osvector.ai".replace(/\/$/,"");return"".concat(s,"/account/accept-invite?token=").concat(encodeURIComponent(e))}function c(e){let{organizationId:s,pendingInvites:l,inviteAction:c,revokeAction:d}=e,{translate:m}=(0,n.L)(),u=(0,i.QL)(m),x=m("common.required"),[p,h,f]=(0,a.useActionState)(c,void 0),[b,j]=(0,a.useTransition)(),[v,g]=(0,a.useState)(null);
1return(0,t.jsxs)("div",{className:"flex flex-col gap-4 rounded-lg border border-dashed border-border p-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-sm font-medium text-foreground",children:u("invites.title")}),(0,t.jsx)("p",{className:"mt-1 text-xs text-muted",children:u("invites.lead")})]}),(0,t.jsxs)("form",{action:h,className:"flex flex-col gap-3 sm:flex-row sm:items-end",children:[(0,t.jsx)("input",{type:"hidden",name:"organization_id",value:s}),(0,t.jsxs)("label",{className:"flex min-w-0 flex-1 flex-col gap-1 text-xs",children:[(0,t.jsx)(r.d,{required:!0,requiredTitle:x,children:u("invites.email")}),(0,t.jsx)("input",{name:"email",type:"email",required:!0,"aria-required":"true",className:"os-input",placeholder:u("invites.emailPlaceholder"),autoComplete:"email"})]}),(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-xs sm:w-36",children:[(0,t.jsx)(r.d,{required:!0,requiredTitle:x,children:u("invites.role")}),(0,t.jsxs)("select",{name:"role",className:"os-input",required:!0,"aria-required":"true",defaultValue:"member",children:[(0,t.jsx)("option",{value:"member",children:(0,i.ZM)(u,"member")}),(0,t.jsx)("option",{value:"admin",children:(0,i.ZM)(u,"admin")})]})]}),(0,t.jsx)("button",{type:"submit",disabled:f,className:"os-btn-primary shrink-0 text-xs",children:f?u("invites.sending"):u("invites.send")})]}),(null==p?void 0:p.error)?(0,t.jsx)("p",{className:"text-xs text-danger",children:p.error}):null,(null==p?void 0:p.ok)?(0,t.jsx)("p",{className:"text-xs text-success",children:u("invites.invitePending")}):null,(null==p?void 0:p.ok)&&p.emailSent?(0,t.jsx)("p",{className:"text-xs text-muted",children:u("invites.emailSent")}
1):null,(null==p?void 0:p.ok)&&p.shareLinkOnly?(0,t.jsx)("p",{className:"text-xs text-warning",children:u("invites.shareLinkOnly")}):null,l.length>0?(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs font-medium text-secondary",children:u("invites.pendingTitle")}),(0,t.jsx)("ul",{className:"mt-2 flex flex-col gap-2",children:l.map(e=>(0,t.jsxs)("li",{className:"flex flex-wrap items-center justify-between gap-2 rounded-lg border border-border bg-surface px-3 py-2 text-xs",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("span",{className:"font-medium text-foreground",children:e.email}),(0,t.jsxs)("span",{className:"ml-2 text-muted",children:[(0,i.ZM)(u,e.role)," \xb7 ",u("invites.expires")," ",new Date(e.expires_at).toLocaleDateString()]}),(0,t.jsx)("p",{className:"mt-1 truncate font-mono text-[10px] text-muted",children:o(e.token)}),(0,t.jsx)("button",{type:"button",className:"mt-1 text-[10px] text-accent hover:underline",onClick:async()=>{let s=o(e.token);try{await navigator.clipboard.writeText(s),g(e.id),window.setTimeout(()=>g(s=>s===e.id?null:s),2e3)}catch(e){}},children:v===e.id?u("invites.copied"):u("invites.copyLink")})]}),(0,t.jsx)("button",{type:"button",disabled:b,className:"text-danger hover:underline",onClick:()=>{j(()=>{d(s,e.id)})},children:u("invites.revoke")})]},e.id))})]}):null]})}l(95704)},68649:(e,s,l)=>{"use strict";l.d(s,{AccountSection:()=>a});var t=l(95155);function a(e){let{title:s,id:l,children:a,defaultOpen:r=!1,hint:n}=e;return(0,t.jsxs)("details",{className:"os-panel group",id:l,open:r,children:[(0,t.jsx)("summary",{className:"cursor-pointer list-none p-4 [&::-webkit-details-marker]:hidden",children:(0,t.jsxs)("span",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)("span",{className:"text-xs font-medium uppercase tracking-wide text-muted",children:s}),n?(0,t.jsx)("span",{className:"text-[10px] text-muted group-open:hidden",children:n}):null]})}),(0,t.jsx)("div",{className:"border-t border-border px-4 pb-4 pt-3",children:a})]})}},76135:(e,s,l)=>{"use strict";l.d(s,{r:()=>r,u:()=>n});var t=l(95155),a=l(33322);function r(e){let{label:s,value:l,options:a,onChange:r,disabled:n}=e;return(0,t.jsx)("div",{className:"flex items-center gap-1 rounded-lg border border-border bg-surface p-0.5",role:"group","aria-label":s,children:a.map(e=>{let s=l===e.id;return(0,t.jsx)("button",{type:"button",disabled:n,"aria-pressed":s,onClick:()=>r(e.id),className:"rounded-md px-2 py-1 text-[11px] font-medium transition ".concat(s?"bg-surface-elevated text-foreground shadow-sm":"text-muted hover:text-secondary"),children:e.label},e.id)})})}function n(e){let{layout:s="stacked",showLanguage:l=!0}=e,{locale:n,theme:i,themeChangeable:o,translate:c,setLocale:d,setTheme:m,pending:u}=(0,a.L)(),x="inline"===s,p=x?[{id:"en",label:"EN"},{id:"mi",label:"MI"}]:[{id:"en",label:c("common.languageEn")},{id:"mi",label:c("common.languageMi")}];return(0,t.jsxs)("div",{className:x?"flex items-center gap-2":"flex flex-col gap-3",children:[o?(0,t.jsx)(r,{label:c("common.themeLabel"),value:i,disabled:u,onChange:m,options:[{id:"dark",label:c("common.themeDark")},{id:"light",label:c("common.themeLight")}]}):x?null:(0,t.jsx)("p",{className:"text-[11px] text-muted",children:c("account.preferences.themeLocked")}),l?(0,t.jsx)(r,{label:c("common.languageLabel"),value:n,disabled:u,onChange:d,options:[...p]}):null]})}},80392:(e,s,l)=>{"use strict";l.d(s,{EmailChangeForm:()=>d});var t=l(95155),a=l(12115),r=l(17039),n=l(33322),i=l(7183),o=l(30926);let c=(0,o.createServerReference)("60cdab3e4a33c986b2ae6241a7a6483cb73aafef87",o.callServer,void 0,o.findSourceMapURL,"updateSignInEmail");function d(e){var s;let{currentEmail:l,compact:o=!1}=e,{translate:d}=(0,n.L)(),m=(0,i.QL)(d),[u,x,p]=(0,a.useActionState)(c,void 0);return(0,t.jsxs)("form",{action:x,className:"flex w-full flex-col ".concat(o?"gap-2":"max-w-sm gap-4"),children:[o?null:(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs text-muted",children:m("email.current")}),(0,t.jsx)("p",{className:"mt-1 font-mono text-sm text-secondary",children:l})]}),(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-xs",children:[(0,t.jsx)(r.d,{children:m("email.new")}),(0,t.jsx)("input",{name:"email",type:"email",required:!0,autoComplete:"email",className:"os-input",placeholder:"[email protected]",defaultValue:null!=(s=null==u?void 0:u.pendingEmail)?s:""})]}),(null==u?void 0:u.error)?(0,t.jsx)("p",{className:"text-sm text-danger",role:"alert",children:u.error}):null,(null==u?void 0:u.success)?(0,t.jsx)("p",{className:"text-sm text-success",role:"status",children:u.success}):null,(0,t.jsx)("button",{type:"submit",disabled:p,className:"os-btn-primary disabled:opacity-50",children:m(p?"email.sending":"email.submit")})]})}},81339:(e,s,l)=>{"use strict";l.d(s,{VolunteerHubGovernancePanel:()=>c});var t=l(95155),a=l(12115),r=l(33322),n=l(30926);let i=(0,n.createServerReference)("609232ec7fef1a9cf0deb9eb662507ce1bcf671704",n.callServer,void 0,n.findSourceMapURL,"setVolunteerHubSuspendedAction");function o(e){let{row:s,suspend:l}=e,{translate:n}=(0,r.L)(),[o,c,d]=(0,a.useActionState)(i,void 0);return(0,t.jsxs)("form",{action:c,className:"mt-2 flex flex-col gap-2",children:[(0,t.jsx)("input",{type:"hidden",name:"workspace_slug",value:s.workspace_slug}),(0,t.jsx)("input",{type:"hidden",name:"suspend",value:l?"on":"off"}),l?(0,t.jsx)("input",{type:"text",name:"reason",placeholder:n("volunteers.governance.reasonPlaceholder"),className:"os-input w-full text-sm"}):null,(null==o?void 0:o.error)?(0,t.jsx)("p",{className:"text-xs text-red-400",children:o.error}):null,(null==o?void 0:o.ok)?(0,t.jsx)("p",{className:"text-xs text-secondary",children:n("volunteers.governance.saved")}):null,(0,t.jsx)("button",{type:"submit",disabled:d,className:l?"os-btn-secondary text-xs":"os-btn-primary text-xs",children:n(d?"volunteers.governance.saving":l?"volunteers.governance.suspend":"volunteers.governance.restore")})]})}function c(e){let{hubs:s}=e,{translate:l}=(0,r.L)();return(0,t.jsxs)("section",{className:"os-panel mt-6 p-4 sm:p-5",children:[(0,t.jsx)("p",{className:"os-section-label",children:l("volunteers.governance.kicker")}),(0,t.jsx)("h2",{className:"mt-1 text-sm font-medium text-foreground",children:l("volunteers.governance.title")}),(0,t.jsx)("p",{className:"mt-1 text-xs text-secondary",children:l("volunteers.governance.lead")}),0===s.length?(0,t.jsx)("p",{className:"mt-4 text-sm text-muted",children:l("volunteers.governance.empty")}):(0,t.jsx)("ul",{className:"mt-4 flex flex-col gap-3",children:s.map(e=>(0,t.jsxs)("li",{className:"rounded-lg border border-border bg-card px-3 py-3 text-sm",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-baseline justify-between gap-2",children:[(0,t.jsx)("span",{className:"font-medium text-foreground",children:e.brand_name}),(0,t.jsxs)("span",{className:"font-mono text-xs text-muted",children:["/join/",e.hub.short_slug]})]}),(0,t.jsxs)("p",{className:"mt-1 text-xs text-secondary",children:[e.workspace_name," \xb7 ",e.workspace_slug]}),e.hub.suspended?(0,t.jsxs)("p",{className:"mt-2 text-xs text-red-400",children:[l("volunteers.governance.suspended"),e.hub.suspended_reason?" â ".concat(e.hub.suspended_reason):""]}):null,(0,t.jsx)(o,{row:e,suspend:!e.hub.suspended})]},e.workspace_id))})]})}},94728:(e,s,l)=>{Promise.resolve().then(l.bind(l,47519)),Promise.resolve().then(l.bind(l,67929)),Promise.resolve().then(l.bind(l,68649)),Promise.resolve().then(l.bind(l,80392)),Promise.resolve().then(l.bind(l,68405)),Promise.resolve().then(l.bind(l,98994)),Promise.resolve().then(l.bind(l,46444)),Promise.resolve().then(l.bind(l,27351)),Promise.resolve().then(l.bind(l,62803)),Promise.resolve().then(l.bind(l,16807)),Promise.resolve().then(l.bind(l,81339)),Promise.resolve().then(l.bind(l,98886)),Promise.resolve().then(l.bind(l,64990)),Promise.resolve().then(l.bind(l,11479)),Promise.resolve().then(l.bind(l,8376)),Promise.resolve().then(l.t.bind(l,52619,23))},98886:(e,s,l)=>{"use strict";l.d(s,{VolunteerSeekOrgPanel:()=>d});var t=l(95155),a=l(52619),r=l.n(a),n=l(12115),i=l(33322),o=l(30926);let c=(0,o.createServerReference)("60b2e0f23611867cf1a962a380cb8d88a5ac720037",o.callServer,void 0,o.findSourceMapURL,"importSeekOrgFromUrlAction");function d(){let{translate:e}=(0,i.L)(),[s,l,a]=(0,n.useActionState)(c,void 0);return(0,t.jsxs)("section",{id:"seek-org-import",className:"os-panel mt-6 scroll-mt-24 p-4 sm:p-5",children:[(0,t.jsx)("p",{className:"os-section-label",children:e("volunteers.orgs.importKicker")}),(0,t.jsx)("h2",{className:"mt-1 text-sm font-medium text-foreground",children:e("volunteers.orgs.importTitle")}),(0,t.jsx)("p",{className:"mt-1 text-xs text-secondary",children:e("volunteers.orgs.importLead")}),(0,t.jsxs)("form",{action:l,className:"mt-4 space-y-3",children:[(0,t.jsxs)("label",{className:"block",children:[(0,t.jsx)("span",{className:"text-[10px] font-medium uppercase tracking-wide text-muted",children:e("volunteers.orgs.importUrlLabel")}),(0,t.jsx)("input",{type:"url",name:"seekOrgUrl",required:!0,placeholder:"https://seekvolunteer.co.nz/volunteering-organisations/3322/graeme-dingle-foundation-wbop",className:"mt-1 w-full rounded-lg border border-border bg-card px-3 py-2 text-sm text-foreground"})]}),(0,t.jsx)("button",{type:"submit",disabled:a,className:"os-btn-primary text-sm",children:e(a?"volunteers.orgs.importing":"volunteers.orgs.importCta")})]}),(null==s?void 0:s.error)?(0,t.jsx)("p",{className:"mt-3 text-xs text-danger",children:s.error}):null,(null==s?void 0:s.ok)?(0,t.jsxs)("div",{className:"mt-3 rounded-lg border border-border bg-card px-3 py-2 text-xs text-secondary",children:[(0,t.jsxs)("p",{children:[e(s.created?"volunteers.orgs.importCreated":"volunteers.orgs.importUpdated"),": ",(0,t.jsx)("strong",{className:"text-foreground",children:s.orgName})]}),s.orgSlug?(0,t.jsx)("p",{className:"mt-2",children:(0,t.jsx)(r(),{href:"/join/bop/org/".concat(s.orgSlug),className:"text-accent hover:underline",children:e("volunteers.orgs.viewProfile")})}):null]}):null,(0,t.jsxs)("div",{className:"mt-4 border-t border-border pt-4",children:[(0,t.jsx)("p",{className:"text-xs text-muted",children:e("volunteers.orgs.exportHint")}),(0,t.jsxs)("div",{className:"mt-2 flex flex-wrap gap-2",children:[(0,t.jsx)("a",{href:"/api/admin/seek-orgs-export",className:"os-btn-secondary text-xs",children:e("volunteers.orgs.exportJson")}),(0,t.jsx)("a",{href:"/api/admin/seek-orgs-export?format=csv",className:"os-btn-secondary text-xs",children:e("volunteers.orgs.exportCsv")})]})]})]})}}
1,98994:(e,s,l)=>{"use strict";l.r(s),l.d(s,{OrganizationForm:()=>o});var t=l(95155),a=l(12115),r=l(17039),n=l(33322),i=l(7183);function o(e){var s,l,o,c,d,m,u,x,p;let{organization:h,action:f,submitLabel:b}=e,{translate:j}=(0,n.L)(),v=(0,i.QL)(j),g=j("common.required"),N=j("common.optional"),[y,w,k]=(0,a.useActionState)(f,void 0);return(0,t.jsxs)("form",{action:w,className:"flex flex-col gap-4",children:[h?(0,t.jsx)("input",{type:"hidden",name:"organization_id",value:h.id}):null,(0,t.jsx)("p",{className:"text-[10px] text-muted",children:j("common.requiredFieldsHint")}),(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-xs",children:[(0,t.jsx)(r.d,{required:!0,requiredTitle:g,children:v("orgForm.name")}),(0,t.jsx)("input",{name:"name",className:"os-input",required:!0,"aria-required":"true",defaultValue:null!=(s=null==h?void 0:h.name)?s:"",placeholder:v("orgForm.namePlaceholder")})]}),(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-xs",children:[(0,t.jsx)(r.d,{required:!0,requiredTitle:g,children:v("orgForm.type")}),(0,t.jsx)("select",{name:"org_kind",className:"os-input",required:!0,"aria-required":"true",defaultValue:null!=(l=null==h?void 0:h.org_kind)?l:"business",children:i.d6.map(e=>(0,t.jsx)("option",{value:e,children:(0,i.$8)(v,e)},e))})]}),(0,t.jsxs)("fieldset",{className:"flex flex-col gap-3 rounded-lg border border-border p-3",children:[(0,t.jsx)("legend",{className:"px-1 text-xs font-medium text-secondary",children:v("orgForm.addressLegend")}),(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-xs",children:[(0,t.jsx)(r.d,{required:!0,requiredTitle:g,children:v("orgForm.line1")}
1),(0,t.jsx)("input",{name:"address_line1",className:"os-input",required:!0,"aria-required":"true",defaultValue:null!=(o=null==h?void 0:h.address_line1)?o:"",autoComplete:"address-line1"})]}),(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-xs",children:[(0,t.jsx)(r.d,{optional:!0,optionalLabel:N,children:v("orgForm.line2")}),(0,t.jsx)("input",{name:"address_line2",className:"os-input",defaultValue:null!=(c=null==h?void 0:h.address_line2)?c:"",autoComplete:"address-line2"})]}),(0,t.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-xs",children:[(0,t.jsx)(r.d,{required:!0,requiredTitle:g,children:v("orgForm.city")}),(0,t.jsx)("input",{name:"city",className:"os-input",required:!0,"aria-required":"true",defaultValue:null!=(d=null==h?void 0:h.city)?d:"",autoComplete:"address-level2"})]}),(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-xs",children:[(0,t.jsx)(r.d,{optional:!0,optionalLabel:N,children:v("orgForm.region")}),(0,t.jsx)("input",{name:"region",className:"os-input",defaultValue:null!=(m=null==h?void 0:h.region)?m:"",autoComplete:"address-level1"})]})]}),(0,t.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-xs",children:[(0,t.jsx)(r.d,{optional:!0,optionalLabel:N,children:v("orgForm.postcode")}),(0,t.jsx)("input",{name:"postcode",className:"os-input",defaultValue:null!=(u=null==h?void 0:h.postcode)?u:"",autoComplete:"postal-code"})]}),(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-xs",children:[(0,t.jsx)(r.d,{required:!0,requiredTitle:g,children:v("orgForm.country")}),(0,t.jsx)("input",{name:"country",className:"os-input",required:!0,"aria-required":"true",defaultValue:null!=(x=null==h?void 0:h.country)?x:"NZ",autoComplete:"country-name"})]})]})]}),(0,t.jsxs)("label",{className:"flex flex-col gap-1 text-xs",children:[(0,t.jsx)(r.d,{optional:!0,optionalLabel:N,children:v("orgForm.website")}),(0,t.jsx)("input",{name:"website_url",className:"os-input",type:"url",placeholder:"https://",defaultValue:null!=(p=null==h?void 0:h.website_url)?p:""})]}),(null==y?void 0:y.error)?(0,t.jsx)("p",{className:"text-xs text-danger",children:y.error}):null,(null==y?void 0:y.ok)?(0,t.jsx)("p",{className:"text-xs text-success",children:v("organizations.saved")}):null,(0,t.jsx)("button",{type:"submit",disabled:k,className:"os-btn-primary w-full sm:w-auto",children:k?v("orgForm.saving"):b})]})}}},e=>{e.O(0,[2619,3322,8441,1255,7358],()=>e(e.s=94728)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.