1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5994,6573,8462],{938:(e,r,t)=>{"use strict";t.d(r,{MobileKeepAlive:()=>er});var o=t(95155),n=t(19749),i=t(12115),a=t(82222),l=t(68467),s=t(41841),c=t(74545),d=t(7722),m=t(82034),u=t(72274),h=t(73549),p=t.n(h),f=t(41595),x=t(949),g=t(73139),b=t(94992),y=t(97947),v=t(57128),j=t(70407),w=t(32485),S=t(40067),C=t(43859),k=t(63578),B=t(37586),_=t(91057),M=t(46374),I=t(56562),$=t(31855),z=t(6438),A=t(58411),W=t(67911);let F=({links:e,churchName:r,onNavigate:t})=>{let n=(0,i.useContext)(m.A),l=(0,a.useRouter)(),c=(0,a.usePathname)(),d=z.MB.colors,{mode:u,toggle:h}=(0,W.K)(),F=n?.person?.photo?B.gN.getPhotoUrl(n.person):void 0,P=n?.person?.name?.first||n?.user?.firstName||"",R=n?.person?.name?.last||n?.user?.lastName||"",E=(0,A.IM)({name:{first:P,last:R}}),L=B.gA.currentUserChurch&&B.gA.checkAccess(M.x.contentApi.content.edit),[T,N]=i.useState(!1);i.useEffect(()=>{N(!$.I.isStandalone())},[]);let H=i.useMemo(()=>{if(!L||!n?.userChurch?.jwt||!n?.userChurch?.church?.id)return"";let e=new URL("/login",I.yJ.Common.B1AdminRoot);return e.searchParams.set("churchId",n.userChurch.church.id),e.searchParams.set("returnUrl","/"),e.hash="jwt="+encodeURIComponent(n.userChurch.jwt),e.toString()},[L,n?.userChurch?.jwt,n?.userChurch?.church?.id]),D=e=>{if(!c||e.startsWith("http"))return!1;let r=c.indexOf("/mobile");if(-1===r)return!1;let t=c.substring(r).split("?")[0],o=e.split("?")[0];return"/mobile/dashboard"===o?"/mobile/dashboard"===t||"/mobile"===t:t===o||t.startsWith(o+"/")};return(0,o.jsxs)(s.default,{role:"navigation","aria-label":_.h.label("mobile.components.navigation"),sx:{height:"100%",display:"flex",flexDirection:"column",bgcolor:d.surface,pt:z.MB.safe.top,pb:z.MB.safe.bottom},children:[(0,o.jsx)(s.default,{sx:{p:`${z.MB.spacing.md}px`,borderBottom:`1px solid ${d.border}`,boxShadow:z.MB.shadows.sm},children:n?.user&&(0,o.jsxs)(f.default,{direction:"row",spacing:1.5,alignItems:"center",sx:{mb:2},children:[F?(0,o.jsx)(x.A,{src:F,sx:{width:48,height:48}}):(0,o.jsx)(x.A,{sx:{width:48,height:48,bgcolor:d.primary,fontSize:18,fontWeight:600},children:E}),(0,o.jsxs)(s.default,{sx:{flex:1,minWidth:0},children:[(0,o.jsxs)(g.default,{noWrap:!0,sx:{fontSize:18,fontWeight:600,color:d.text,mb:.5},children:[P," ",R]}),(0,o.jsxs)(s.default,{component:"button",onClick:()=>{t?.(),l.push("/mobile/profileEdit")},sx:{display:"inline-flex",alignItems:"center",gap:"4px",bgcolor:d.iconBackground,border:"none",borderRadius:`${z.MB.radius.sm}px`,padding:"6px 8px",cursor:"pointer",color:d.primary,fontSize:14,fontWeight:500,lineHeight:1},children:[(0,o.jsx)(j.default,{sx:{fontSize:16,color:d.primary}}),_.h.label("mobile.components.editProfile")]})]})]})}),(0,o.jsxs)(s.default,{sx:{flex:1,overflowY:"auto"},children:[(0,o.jsx)(p(),{href:"/mobile/dashboard",style:{textDecoration:"none",color:"inherit"},onClick:t,children:(0,o.jsxs)(s.default,{sx:{display:"flex",alignItems:"center",gap:1.5,minHeight:48,px:`${z.MB.spacing.md}px`,py:`${z.MB.spacing.sm+4}px`,mx:"8px",mb:"2px",mt:"6px",borderRadius:`${z.MB.radius.md}px`,bgcolor:D("/mobile/dashboard")?d.primaryLight:"transparent",cursor:"pointer","&:hover":{bgcolor:D("/mobile/dashboard")?d.primaryLight:d.iconBackground}},children:[(0,o.jsx)(b.default,{sx:{fontSize:24,color:d.primary},children:"home"}),(0,o.jsx)(g.default,{sx:{fontSize:16,fontWeight:D("/mobile/dashboard")?600:500,color:D("/mobile/dashboard")?d.primary:d.text,flex:1},children:_.h.label("mobile.components.home")})]})}),n?.user&&(0,o.jsx)(p(),{href:"/mobile/me",style:{textDecoration:"none",color:"inherit"},onClick:t,children:(0,o.jsxs)(s.default,{sx:{display:"flex",alignItems:"center",gap:1.5,minHeight:48,px:`${z.MB.spacing.md}px`,py:`${z.MB.spacing.sm+4}px`,mx:"8px",mb:"2px",borderRadius:`${z.MB.radius.md}px`,bgcolor:D("/mobile/me")?d.primaryLight:"transparent",cursor:"pointer","&:hover":{bgcolor:D("/mobile/me")?d.primaryLight:d.iconBackground}},children:[(0,o.jsx)(b.default,{sx:{fontSize:24,color:d.primary},children:"person"}),(0,o.jsx)(g.default,{sx:{fontSize:16,fontWeight:500,color:D("/mobile/me")?d.primary:d.text,flex:1},children:_.h.label("mobile.me.title")})]})}),L&&(0,o.jsxs)(s.default,{component:"a",href:H,onClick:t,sx:{dis
1play:"flex",alignItems:"center",gap:1.5,minHeight:48,px:`${z.MB.spacing.md}px`,py:`${z.MB.spacing.sm+4}px`,mx:"8px",mb:"2px",borderRadius:`${z.MB.radius.md}px`,color:"inherit",textDecoration:"none",cursor:"pointer","&:hover":{bgcolor:d.iconBackground}},children:[(0,o.jsx)(b.default,{sx:{fontSize:24,color:d.primary},children:"settings"}),(0,o.jsx)(g.default,{sx:{fontSize:16,fontWeight:500,color:d.text,flex:1,minWidth:0,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:_.h.label("header.adminPortal")})]}),e.map((e,r)=>{if("separator"===e.linkType)return(0,o.jsx)(y.default,{sx:{my:1}},`sep-${r}`);let n=(0,z.Vu)(e.linkType,e.linkData,e.text,e.url);if(!n)return null;let i="url"===e.linkType||n.startsWith("http"),a=!i&&D(n),l=(0,z.Fw)(e.linkType,e.icon),c=e.id||`${e.linkType}-${r}`,m={textDecoration:"none",color:"inherit"},u=(0,o.jsxs)(s.default,{sx:{display:"flex",alignItems:"center",gap:1.5,minHeight:48,px:`${z.MB.spacing.md}px`,py:`${z.MB.spacing.sm+4}px`,mx:"8px",mb:"2px",borderRadius:`${z.MB.radius.md}px`,bgcolor:a?d.primaryLight:"transparent",cursor:"pointer","&:hover":{bgcolor:a?d.primaryLight:d.iconBackground}},children:[(0,o.jsx)(b.default,{sx:{fontSize:24,color:d.primary},children:l}),(0,o.jsx)(g.default,{sx:{fontSize:16,fontWeight:a?600:500,color:a?d.primary:d.text,flex:1,minWidth:0,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.text})]});return i?(0,o.jsx)("a",{href:n,target:"_blank",rel:"noopener noreferrer",style:m,onClick:t,children:u},c):(0,o.jsx)(p(),{href:n,style:m,onClick:t,children:u},c)}),T&&(0,o.jsx)(p(),{href:"/mobile/install",style:{textDecoration:"none",color:"inherit"},onClick:t,children:(0,o.jsxs)(s.default,{sx:{display:"flex",alignItems:"center",gap:1.5,minHeight:48,px:`${z.MB.spacing.md}px`,py:`${z.MB.spacing.sm+4}px`,mx:"8px",mb:"2px",borderRadius:`${z.MB.radius.md}px`,bgcolor:D("/mobile/install")?d.primaryLight:"transparent",cursor:"pointer","&:hover":{bgcolor:D("/mobile/install")?d.primaryLight:d.iconBackground}},children:[(0,o.jsx)(b.default,{sx:{fontSize:24,color:d.primary},children:"install_mobile"}),(0,o.jsx)(g.default,{sx:{fontSize:16,fontWeight:500,color:D("/mobile/install")?d.primary:d.text,flex:1},children:_.h.label("mobile.screenTitles.installApp")})]})})]}),(0,o.jsxs)(s.default,{sx:{p:`${z.MB.spacing.md}px`,borderTop:`1px solid ${d.border}`,boxShadow:z.MB.shadows.sm},children:[(0,o.jsx)(v.default,{variant:"outlined",fullWidth:!0,startIcon:"dark"===u?(0,o.jsx)(k.A,{sx:{fontSize:24,color:d.primary}}):(0,o.jsx)(C.A,{sx:{fontSize:24,color:d.primary}}),onClick:h,"aria-label":"dark"===u?_.h.label("mobile.components.switchToLight"):_.h.label("mobile.components.switchToDark"),sx:{color:d.primary,borderColor:d.primary,borderRadius:`${z.MB.radius.md}px`,textTransform:"none",fontWeight:500,fontSize:14,justifyContent:"flex-start",py:1,mb:1},children:"dark"===u?_.h.label("mobile.components.lightMode"):_.h.label("mobile.components.darkMode")}),n?.user?(0,o.jsx)(v.default,{variant:"outlined",fullWidth:!0,startIcon:(0,o.jsx)(w.A,{sx:{fontSize:24,color:d.primary}}),component:"a",href:"/mobile/logout",sx:{color:d.primary,borderColor:d.primary,borderRadius:`${z.MB.radius.md}px`,textTransform:"none",fontWeight:500,fontSize:14,justifyContent:"flex-start",py:1,mb:1},children:_.h.label("mobile.components.logout")}):(0,o.jsx)(v.default,{variant:"contained",fullWidth:!0,disableElevation:!0,startIcon:(0,o.jsx)(S.A,{sx:{fontSize:24}}),component:"a",href:c?`/mobile/login?returnUrl=${encodeURIComponent(c)}`:"/mobile/login",sx:{bgcolor:d.primary,color:d.onPrimary,borderRadius:`${z.MB.radius.md}px`,textTransform:"none",fontWeight:500,fontSize:14,justifyContent:"flex-start",py:1,mb:1,"&:hover":{bgcolor:d.primary}},children:_.h.label("mobile.components.signIn")}),r&&(0,o.jsx)(g.default,{sx:{fontSize:12,color:d.disabled,textAlign:"center"},children:r}),(0,o.jsx)(g.default,{sx:{fontSize:12,textAlign:"center",mt:.5},children:(0,o.jsx)(s.default,{component:"a",href:"https://churchapps.org/privacy",target:"_blank",rel:"noopener noreferrer",sx:{color:d.primary,textDecoration:"none","&:hover":{textDecoration:"underline"}},children:_.h.label("mobile.components.privacyPolicy")})})]})]})},P=e=>{let r,t,i,l,c,d,m,u,h,f,x,g,y,v,j,w=(0,n.c)(45),{links:S,onMore:C}=e,k=(0,a.usePathname)();w[0]!==k?(r=(0,z.PU)(k),w[0]=k,w[1]=r):r=w[1];
1let B=r,M=z.MB.colors;if(w[2]!==S||w[3]!==B){let e,r,n,a,f,x,g=S.filter(R).map(E).filter(L).slice(0,3);w[12]!==B?(e=e=>B===e.split("?")[0].split("/").filter(Boolean).pop(),w[12]=B,w[13]=e):e=w[13];let y=e;w[14]===Symbol.for("react.memo_cache_sentinel")?(r=e=>({flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"2px",py:"8px",minWidth:0,cursor:"pointer",textDecoration:"none",color:e?M.primary:M.textHint,border:"none",background:"transparent"}),w[14]=r):r=w[14],h=r,i=T,t=s.default,l="nav",w[15]===Symbol.for("react.memo_cache_sentinel")?(c=_.h.label("mobile.components.navigation"),w[15]=c):c=w[15],w[16]===Symbol.for("react.memo_cache_sentinel")?(d={position:"fixed",bottom:0,left:0,right:0,display:{xs:"flex",md:"none"},alignItems:"stretch",bgcolor:M.surface,borderTop:`1px solid ${M.border}`,pb:z.MB.safe.bottom,minHeight:`${z.MB.tabBarHeight}px`,zIndex:N},w[16]=d):d=w[16];let v=!B||"dashboard"===B;w[17]!==v?(n=h(v),w[17]=v,w[18]=n):n=w[18],w[19]===Symbol.for("react.memo_cache_sentinel")?(a=(0,o.jsx)(b.default,{sx:{fontSize:24},children:"home"}),w[19]=a):a=w[19],w[20]!==B?(f=i(_.h.label("mobile.components.home"),!B||"dashboard"===B),w[20]=B,w[21]=f):f=w[21],w[22]!==n||w[23]!==f?(m=(0,o.jsxs)(s.default,{component:p(),href:"/mobile/dashboard",sx:n,children:[a,f]}),w[22]=n,w[23]=f,w[24]=m):m=w[24],w[25]!==y?(x=e=>{let{link:r,route:t}=e,n=y(t);return(0,o.jsxs)(s.default,{component:p(),href:t,sx:h(n),children:[(0,o.jsx)(b.default,{sx:{fontSize:24},children:(0,z.Fw)(r.linkType,r.icon)}),i(r.text||"",n)]},r.id||t)},w[25]=y,w[26]=x):x=w[26],u=g.map(x),w[2]=S,w[3]=B,w[4]=t,w[5]=i,w[6]=l,w[7]=c,w[8]=d,w[9]=m,w[10]=u,w[11]=h}else t=w[4],i=w[5],l=w[6],c=w[7],d=w[8],m=w[9],u=w[10],h=w[11];return w[27]===Symbol.for("react.memo_cache_sentinel")?(f=_.h.label("mobile.components.openMenu"),w[27]=f):f=w[27],w[28]!==h?(x=h(!1),w[28]=h,w[29]=x):x=w[29],w[30]===Symbol.for("react.memo_cache_sentinel")?(g=(0,o.jsx)(b.default,{sx:{fontSize:24},children:"more_horiz"}),w[30]=g):g=w[30],w[31]!==i?(y=i(_.h.label("mobile.components.more"),!1),w[31]=i,w[32]=y):y=w[32],w[33]!==C||w[34]!==y||w[35]!==x?(v=(0,o.jsxs)(s.default,{component:"button",type:"button",onClick:C,"aria-label":f,sx:x,children:[g,y]}),w[33]=C,w[34]=y,w[35]=x,w[36]=v):v=w[36],w[37]!==t||w[38]!==v||w[39]!==l||w[40]!==c||w[41]!==d||w[42]!==m||w[43]!==u?(j=(0,o.jsxs)(t,{component:l,"aria-label":c,sx:d,children:[m,u,v]}),w[37]=t,w[38]=v,w[39]=l,w[40]=c,w[41]=d,w[42]=m,w[43]=u,w[44]=j):j=w[44],j};function R(e){return"separator"!==e.linkType&&"url"!==e.linkType&&"page"!==e.linkType&&"votd"!==e.linkType}function E(e){return{link:e,route:(0,z.Vu)(e.linkType,e.linkData,e.text,e.url)}}function L(e){return!!e.route&&!e.route.startsWith("http")}function T(e,r){return(0,o.jsx)(g.default,{noWrap:!0,sx:{fontSize:10.5,fontWeight:r?700:600,lineHeight:1.2,color:"inherit",maxWidth:"100%"},children:e})}function N(e){return e.zIndex.appBar}let H=()=>{let e=(0,i.useContext)(m.A),r=e?.user?.id,t=e?.userChurch?.church?.id,o=e?.userChurch?.jwt,n=(0,i.useRef)(""),a=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{let e=async()=>{if(!r||!t||!o)return;let e=I.lC.getPermissionState();if(!I.lC.isSupported()||"granted"!==e)return;let i=`${r}:${t}:${e}:${I.lC.isServerRegistrationEnabled()?"server":"local"}`;if(n.current!==i&&!a.current){a.current=!0;try{await I.lC.getExistingSubscription()&&I.lC.isServerRegistrationEnabled()?await I.lC.refreshEnrollment():await I.lC.subscribe(),n.current=i}catch(e){console.error("[webpush] background enrollment sync failed:",e)}finally{a.current=!1}}},i=()=>{e()},l=()=>{"visible"===document.visibilityState&&e()};return e(),window.addEventListener("focus",i),window.addEventListener("pageshow",i),document.addEventListener("visibilitychange",l),()=>{window.removeEventListener("focus",i),window.removeEventListener("pageshow",i),document.removeEventListener("visibilitychange",l)}},[t,o,r]),null};var D=t(86438),U=t(32524),O=t(78003),J=t(10757);let K=({personId:e,churchId:r})=>{let t=(0,a.usePathname)(),o=(0,a.useSearchParams)(),n=(0,i.useRef)(""),l=(0,I.Q0)();return(0,i.useEffect)(()=>
1{if(!e||!r||!l.valid||!l.compatible)return;let t=`${e}:${r}:${l.normalizedUrl}`,o=!1,i=async()=>{try{if(await D.i.init(),o)return;U.D.ensureHandlers(),O.Z.ensureHandlers(),J.v.setupRejoin(),D.i.setPersonChurch({personId:e,churchId:r}),n.current=t}catch(e){if(o)return;console.error("[chat] socket bootstrap failed:",(0,I.Xf)(e))}};return n.current!==t||"UNINITIALIZED"===D.i.getConnectionState()?i():D.i.setPersonChurch({personId:e,churchId:r}),()=>{o=!0}},[r,e,l.compatible,l.normalizedUrl,l.valid]),(0,i.useEffect)(()=>{if(!e)return;let r=`ChatNotificationBridge-${e}`,n=async r=>{try{if("u"<typeof Notification||"granted"!==Notification.permission)return;let n=r.notifyPersonId;if(n&&n!==e)return;let i=r.message,a=r.fromPersonId||i?.personId,l=r.toPersonId,s=r.conversationId||i?.conversationId;if(!s||a===e)return;let c=o?.get("conversationId")||"",d=t?.match(/^\/mobile\/messages\/([^/?#]+)/),m=d?.[1]?decodeURIComponent(d[1]):"",u=a&&a!==e?a:l&&l!==e?l:m;if(c&&c===s||m&&m===u||I.lC.isServerRegistrationEnabled()&&await I.lC.hasConfirmedServerEnrollment())return;let h=await I.lC.getRegistration();if(!h)return;await h.showNotification(i?.displayName||"New message",{body:i?.content||"You received a new private message.",icon:"/images/logo-icon.png",badge:"/images/logo-icon.png",tag:`privatemessage:${s}`,data:{type:"privatemessage",personId:u,conversationId:s,contentId:s}})}catch(e){console.error("[chat] failed to surface private message notification:",(0,I.Xf)(e))}};return D.i.addHandler("privateMessage",r,n),()=>{D.i.removeHandler(r)}},[t,e,o]),null};var X=t(89236);let Z=e=>{let r,t,i=(0,n.c)(5);return i[0]!==e?(r=(0,o.jsx)(G,{...e}),i[0]=e,i[1]=r):r=i[1],i[2]!==e.config||i[3]!==r?(t=(0,o.jsx)(W.h,{config:e.config,children:r}),i[2]=e.config,i[3]=r,i[4]=t):t=i[4],t},G=({config:e,children:r})=>{let[t,n]=(0,i.useState)(!1),l=(0,i.useContext)(m.A),h=(0,a.useRouter)(),{mode:p}=(0,W.K)(),f=e?.appTheme?.[p],x=e=>/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test((e||"").trim()),g=x(f?.primary)?f.primary:x(e?.appearance?.primaryColor)?e.appearance.primaryColor:z.MB.colors.primary,b=z.MB.drawerWidth,y=l?.userChurch?.jwt,{data:v}=(0,X.U)(e?.church?.id,y),j=(0,i.useMemo)(()=>(0,X.a)(v,y?l?.userChurch:null),[v,y,l?.userChurch]),w=(0,a.usePathname)(),S=(0,z.PU)(w);return(0,o.jsxs)(s.default,{className:"mobileAppRoot",sx:{display:"flex",minHeight:"100vh",maxWidth:"100%",overflowX:"hidden",bgcolor:z.MB.colors.background},style:{"--mobile-primary":g},children:[(0,o.jsx)(H,{}),y&&(0,o.jsx)(K,{personId:l?.person?.id,churchId:l?.userChurch?.church?.id}),(0,o.jsx)(u.J,{config:e,drawerWidth:b,onAvatarClick:()=>h.push("/mobile/profileEdit")}),(0,o.jsx)(c.Ay,{variant:"temporary",open:t,onClose:()=>n(!1),ModalProps:{keepMounted:!0},sx:{display:{xs:"block",md:"none"},"& .MuiDrawer-paper":{boxSizing:"border-box",width:b,bgcolor:z.MB.colors.surface}},children:(0,o.jsx)(F,{links:j,churchName:e?.church?.name,onNavigate:()=>n(!1)})}),(0,o.jsx)(c.Ay,{variant:"permanent",open:!0,sx:{display:{xs:"none",md:"block"},width:b,flexShrink:0,"& .MuiDrawer-paper":{boxSizing:"border-box",width:b,bgcolor:z.MB.colors.surface,borderRight:`1px solid ${z.MB.colors.border}`}},children:(0,o.jsx)(F,{links:j,churchName:e?.church?.name})}),(0,o.jsxs)(s.default,{component:"main",sx:{flexGrow:1,minWidth:0,width:{md:`calc(100% - ${b}px)`},bgcolor:z.MB.colors.background,pb:{xs:`calc(${z.MB.tabBarHeight}px + ${z.MB.safe.bottom})`,md:0}},children:[S&&"dashboard"!==S?(0,o.jsx)(d.default,{sx:{minHeight:`calc(${z.MB.headerHeight}px + ${z.MB.safe.top}) !important`}}):(0,o.jsx)(s.default,{sx:{height:z.MB.safe.top}}),(0,o.jsx)(s.default,{sx:{maxWidth:760,mx:"auto",width:"100%"},children:r})]}),(0,o.jsx)(P,{links:j,onMore:()=>n(!0)})]})};function V(e){let r,t,i,a=(0,n.c)(8),{config:s,children:c}=e;return a[0]!==s?(r=(0,o.jsx)(l.Sx,{config:s}),a[0]=s,a[1]=r):r=a[1],a[2]!==c||a[3]!==s?(t=(0,o.jsx)(Z,{config:s,children:c}),a[2]=c,a[3]=s,a[4]=t):t=a[4],a[5]!==r||a[6]!==t?(i=(0,o.jsxs)(o.Fragment,{children:[r,t]}),a[5]=r,a[6]=t,a[7]=i):i=a[7],i}var Y=t(66596);let q={myGroups:"groups",donation:"donate",service:"checkin",plan:"plans",volunteerBrowse:"volunteer",searchMessageUser:"messages"},Q=new Set(["dashboard","more","me","sermons","groups","community","donate","checkin","plans","votd","bible","registrations","volunteer","messages"]),ee=i.useLayoutEffect;function er(e){let r,t,l,s,c,d,m,u=(0,n.c)(23),{sdSlug:h,config:p,children:f}=e,x=(0,a.useParams)(),g=x?.pageSlug;if(u[0]!==x?.id||u[1]!==g){let e;r=g&&!x?.id?(e=q[g]??g,Q.has(e)?e:void 0):void 0,u[0]=x?.id,u[1]=g,u[2]=r}else r=u[2];let b=r;u[3]!==b?(t=()=>b?[b]:[],u[3]=b,u[4]=t):t=u[4];let[y,v]=(0,i.useState)(t);b&&!y.includes(b)&&v([...y,b]),u[5]===Symbol.for("react.memo_cache_sentinel")?(l={},u[5]=l):l=u[5];let j=(0,i.useRef)(l);if(u[6]!==b?(s=()=>
1{if(!b)return;let e=j.current[b]??0,r=()=>{j.current[b]=window.scrollY};window.addEventListener("scroll",r,{passive:!0});let t=requestAnimationFrame(()=>requestAnimationFrame(()=>window.scrollTo(0,e)));return()=>{window.removeEventListener("scroll",r),cancelAnimationFrame(t)}},c=[b],u[6]=b,u[7]=s,u[8]=c):(s=u[7],c=u[8]),ee(s,c),!g){let e;return u[9]!==f?(e=(0,o.jsx)(o.Fragment,{children:f}),u[9]=f,u[10]=e):e=u[10],e}if(u[11]!==p||u[12]!==b||u[13]!==y){let e;u[15]!==p||u[16]!==b?(e=e=>(0,o.jsx)(i.Activity,{mode:e===b?"visible":"hidden",name:"tab-"+e,children:(0,o.jsx)(Y.ScreenRouter,{pageSlug:e,config:p})},e),u[15]=p,u[16]=b,u[17]=e):e=u[17],d=y.map(e),u[11]=p,u[12]=b,u[13]=y,u[14]=d}else d=u[14];return u[18]!==f||u[19]!==p||u[20]!==h||u[21]!==d?(m=(0,o.jsxs)(V,{sdSlug:h,config:p,children:[d,f]}),u[18]=f,u[19]=p,u[20]=h,u[21]=d,u[22]=m):m=u[22],m}},4849:e=>{e.exports={style:{fontFamily:"'Newsreader', 'Newsreader Fallback'"},className:"__className_3e8c00",variable:"__variable_3e8c00"}},47773:e=>{e.exports={container:"youtubeBackground_container__3S4zy",videoContainer:"youtubeBackground_videoContainer__gLSZC",videoInnerContainer:"youtubeBackground_videoInnerContainer__WJmNn",overlay:"youtubeBackground_overlay__sxyiy",videoIframe:"youtubeBackground_videoIframe__KzgFR"}},57762:()=>{},62674:()=>{},71921:()=>{},77500:(e,r,t)=>{"use strict";t.d(r,{MobileClientLayout:()=>B});var o=t(95155),n=t(19749),i=t(12115),a=t(66282),l=t(35097),s=t(41841),c=t(51711),d=t(46059),m=t(91057),u=t(37586),h=t(25163),p=t(56562),f=t(82034),x=t(61993),g=t(61755),b=t(82222),y=t(69205);function v(){let e,r,t,a,l=(0,n.c)(5),s=(0,b.usePathname)(),c=y.y.Common.GoogleAnalyticsTag;return(l[0]!==s?(e=()=>{if(!c||!s)return;let e=s+window.location.search;void 0!==window.gtag&&window.gtag("config",c,{page_path:e})},r=[s,c],l[0]=s,l[1]=e,l[2]=r):(e=l[1],r=l[2]),(0,i.useEffect)(e,r),c)?(l[3]===Symbol.for("react.memo_cache_sentinel")?(t=(0,o.jsx)(g.default,{strategy:"afterInteractive",src:`https://www.googletagmanager.com/gtag/js?id=${c}`}),l[3]=t):t=l[3],l[4]===Symbol.for("react.memo_cache_sentinel")?(a=(0,o.jsxs)(o.Fragment,{children:[t,(0,o.jsx)(g.default,{id:"mobile-google-analytics",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:`window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}gtag('js',new Date());gtag('config','${c}');`}})]}),l[4]=a):a=l[4],a):null}var j=t(36459),w=t(79939);let S=(0,a.A)({palette:{primary:{main:"#0D47A1"},secondary:{main:"#444444"}},shape:{borderRadius:14},typography:{fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'},components:{MuiButton:{styleOverrides:{root:{textTransform:"none",borderRadius:999,fontWeight:600,boxShadow:"none"}}}}});function C(e){let r,t=(0,n.c)(3),{children:i}=e,a=(0,j.T)();if("idle"===a||"hydrating"===a){let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,o.jsx)(s.default,{role:"status","aria-live":"polite","aria-label":m.h.label("mobile.screens.loading"),sx:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"#FFFFFF"},children:(0,o.jsx)(c.default,{size:40})}),t[0]=e):e=t[0],e}return t[1]!==i?(r=(0,o.jsx)(o.Fragment,{children:i}),t[1]=i,t[2]=r):r=t[2],r}let k=(0,o.jsx)("div",{role:"status","aria-live":"polite",style:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#FFFFFF"}});function B(e){let r,t,a,m,g,b,y,j,B=(0,n.c)(12),{children:z}=e,[A,W]=i.useState(!1),[F,P]=i.useState(!1);return(B[0]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{W(!0)},t=[],B[0]=r,B[1]=t):(r=B[0],t=B[1]),(0,i.useEffect)(r,t),B[2]!==A?(a=()=>{if(!A)return;p.yJ.init();let e=new Promise($);Promise.race([p.yJ.initLocale(),e]).catch(I).finally(()=>P(!0)),u.V_.init(M,_)},m=[A],B[2]=A,B[3]=a,B[4]=m):(a=B[3],m=B[4]),(0,i.useEffect)(a,m),(0,w.h)(F),A)?(B[5]===Symbol.for("react.memo_cache_sentinel")?(g=(0,o.jsx)(d.A,{styles:{"html, body":{overflowX:"hidden",maxWidth:"100%"},img:{maxWidth:"100%"}}}),B[5]=g):g=B[5],B[6]===Symbol.for("react.memo_cache_sentinel")?(b=(0,o.jsx)(v,{}),B[6]=b):b=B[6],B[7]!==z||B[8]!==F?(y=F?z:(0,o.jsx)(s.default,{role:"status","aria-live":"polite",sx:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"#FFFFFF"},children:(0,o.jsx)(c.default,{size:40})}),B[7]=z,B[8]=F,B[9]=y):y=B[9],B[10]!==y?(j=(0,o.jsx)(h.Z,{children:(0,o.jsxs)(l.default,{theme:S,children:[g,(0,o.jsx)(f.v,{children:(0,o.jsxs)(x.k,{children:[b,(0,o.jsx)(C,{children:y})]})})]})}),B[10]=y,B[11]=j):j=B[11],j):k}function _(){}function M(){return{churchId:u.gA.currentUserChurch?.church?.id||"",userId:u.gA.user?.id||"",originUrl:window.location.toString(),application:"B1Mobile"}}function I(e){return console.error("Locale init failed",e)}function $(e){return setTimeout(e,8e3)}},79177:(e,r,t)=>{Promise.resolve().then(t.t.bind(t,71921,23)),Promise.resolve().then(t.t.bind(t,92904,23)),Promise.resolve().then(t.t.bind(t,4849,23)),Promise.resolve().then(t.bind(t,938)),Promise.resolve().then(t.bind(t,77500)),Promise.resolve().then(t.bind(t,58959)),Promise.resolve().then(t.bind(t,961))}},e=>{e.O(0,[4504,9958,2899,1416,1678,8754,4121,2076,7358],()=>e(e.s=79177)),_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.