PageSourceSearch

https://socialnarratives.ai/assets/SharedScheduleViewer-DtzE1CkZ.js

js socialnarratives.ai collected 2026-10-05 15:08:33 UTC 3,402 bytes, 1 lines download raw bytes

1import{j as e,g as x}from"./ui-vendor-XNsX7NFl.js";import{u as p,a}from"./i18n-BCZ_8xSB.js";import{P as d}from"./PageTitle-BbJuYOtw.js";import{j}from"./shareService-DQnnDb3i.js";import{S as g}from"./ScheduleViewer-DPelUPln.js";import{U as b}from"./UnavailableState-Q31Yyr7X.js";import{L as l}from"./index-Dg7geK91.js";import{n as v}from"./plainText-9F6VL9GP.js";import{f as y,L as S}from"./react-router-oAHNt2ka.js";import"./firebase-db-Csu2kn54.js";import"./firebase-auth-BWbhO1CC.js";import"./softToast-QI7-xv9r.js";import"./scheduleStorageService-z2SbfB12.js";import"./offlineScheduleService-CIGpnk33.js";import"./capacitor-DQeCf45c.js";import"./milestoneService-CFL88J1Q.js";import"./useOverlayFocus-BVNVqolP.js";import"./geminiService-uPfLUin3.js";import"./StateHeading-D9MlYpnP.js";import"./usePlatform-jw2ahvaa.js";import"./packAvailability-CbMDVbWF.js";import"./stripeConfig-X3dkQhO0.js";import"./aiModels-qXgPnQ3X.js";import"./creditErrors-CoJqQJBl.js";import"./CreditCost-LMZ_7bRy.js";import"./emotionConstants-B6UviN0Q.js";import"./HoldToExitButton-qZzCNrYq.js";import"./LocalizedModalHeader-CFEf2KkU.js";import"./StateAction-LWPd75gj.js";function $(){const{t}=p(["schedules","common"]),{token:i}=y(),[n,u]=a.useState(null),[h,m]=a.useState(!0),[f,o]=a.useState(!1);a.useEffect(()=>{let r=!1;return i?(async()=>{try{const s=await j(i);if(r)return;if(!s?.isValid||!s.schedule){console.error("Shared schedule unavailable:",s?.error),o(!0);return}u(v(s.schedule))}catch(s){console.error("Shared schedule failed to load:",s),r||o(!0)}finally{r||m(!1)}})():(o(!0),m(!1)),()=>{r=!0}},[i]);const c=e.jsx(d,{item:n,fallback:t("pdf.typeDefault")});return h?e.jsxs("div",{className:"min-h-screen flex items-center justify-center p-6 font-['Nunito']",children:[c,e.jsxs("div",{className:"text-center text-slate-700 dark:text-dim-text",role:"status",children:[e.jsx("div",{className:"inline-flex h-14 w-14 items-center justify-center rounded-full bg-slate-100 dark:bg-dim-elevated mb-4",children:e.jsx(x,{className:"h-7 w-7","aria-hidden":"true"})}),e.jsx("p",{className:"font-bold",children:t("shared.loading")})]})]}):f?e.jsxs("div",{className:"font-['Nunito']",children:[e.jsx(d,{fallback:t("shared.linkGoneTitle")}),e.jsx(b,{media:e.jsx(l,{variant:"mark",size:48}),title:t("shared.linkGoneTitle"),message:t("shared.linkGoneBody"),primaryAction:{label:t("common:unavailable.goHome"),to:"/"},tone:"slate"})]}):e.jsxs("div",{className:"min-h-screen px-4 py-8 font-['Nunito'] sm:px-6 sm:py-10 lg:px-8",children:[c,e.jsxs("header",{className:"mx-auto mb-6 flex max-w-4xl flex-col items-center gap-3 text-center",children:[e.jsx(l,{size:32}),e.jsx("p",{"data-testid":"shared-schedule-note",className:"text-sm text-slate-600 dark:text-dim-text-secondary",children:t("shared.tryHere")})]}),e.jsx(g,{schedule:n,sessionOnly:!0,showActions:!1}),e.jsx("footer",{className:"mt-2 flex justify-center pb-6",children:e.jsxs(S,{to:"/","aria-label":t("common:shared.madeWithLabel"),className:"inline-flex min-h-[44px] items-center gap-2 rounded-full px-4 text-sm font-bold text-slate-600 transition-colors hover:bg-white hover:text-slate-900 focus:outline-none focus-visible:ring-2 focus-visible:ring-sage-500 dark:text-dim-text-secondary dark:hover:bg-dim-surface dark:hover:text-dim-text",children:[e.jsx("span",{children:t("common:shared.madeWith")}),e.jsx(l,{size:24,decorative:!0})]})})]})}export{$ as default};

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.