1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0804f-84f6-7250-87c2-38d175e35783")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,444620,e=>{"use strict";var t=e.i(943306),i=e.i(875849),s=e.i(839221);let a={sm:{badge:"gap-1 px-1.5 py-1 text-[11px]",icon:"h-3.5 w-3.5"},md:{badge:"gap-1 px-1.5 py-1 text-[12px] xs:text-[13px]",icon:"h-4 w-4 xs:h-[18px] xs:w-[18px]"}};e.s(["AppLibraryOfficialBadge",0,function({className:e,size:r="sm",...n}){let l=a[r];return(0,t.jsxs)("span",{className:(0,s.cn)("inline-flex shrink-0 items-center rounded-full border border-border/70 bg-background/96 font-semibold text-primary shadow-sm dark:border-border/80 dark:bg-background/92",l.badge,e),...n,children:[(0,t.jsx)(i.BadgeCheck,{className:l.icon}),(0,t.jsx)("span",{className:"leading-none",children:"Official"})]})}])},290852,e=>{"use strict";var t=e.i(943306),i=e.i(185783),s=e.i(935214),a=e.i(776034),r=e.i(354650),n=e.i(809382),l=e.i(19831);e.s(["PublicAppsHeaderAuthControl",0,function({hasParentProviders:e=!1}){let{isLoaded:o,isSignedIn:d}=(0,s.useUser)();return o?d?e?(0,t.jsx)(r.PublicAuthenticatedControls,{}):(0,t.jsx)(l.AppClientProviders,{workspaceFallback:"inline",children:(0,t.jsx)(r.PublicAuthenticatedControls,{})}):(0,t.jsx)(i.SignInButton,{mode:"modal",withSignUp:!0,signUpForceRedirectUrl:(0,a.buildOnboardingPath)({freshSignup:!0}),children:(0,t.jsx)(n.Button,{size:"sm",children:"Sign in"})}):(0,t.jsx)(r.PublicAuthPlaceholder,{})}])},914452,e=>{"use strict";var t=e.i(943306),i=e.i(931988),s=e.i(766693);function a(e){if(!e)return"/";let[t]=e.split(/[?#]/,1),i=t||"/";return"/"===i?"/":i.endsWith("/")?i.slice(0,-1):i}e.s(["ReloadableNavLink",0,function({href:e,className:r,children:n,title:l,ariaCurrent:o}){let d=a((0,s.usePathname)()),c=a(e);return(0,t.jsx)(i.default,{href:e,className:r,title:l,"aria-current":o,onClick:t=>{t.defaultPrevented||0!==t.button||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||d===c&&(t.preventDefault(),window.location.assign(e))},children:n})}])},21109,e=>{"use strict";let t="snow:app-library-install-changed";e.s(["APP_LIBRARY_INSTALL_CHANGED_EVENT",0,t,"notifyAppLibraryInstallChanged",0,function(e){window.dispatchEvent(new CustomEvent(t,{detail:e}))}])},59499,e=>{"use strict";var t=e.i(779786),i=e.i(967266);function s(e){return Array.isArray(e)&&e.every(e=>"string"==typeof e)}function a(e){return null===e||"string"==typeof e}function r(e){return(0,t.isObjectRecord)(e)&&s(e.addedPermissionKeys)&&s(e.addedIntegrationSlugs)&&s(e.addedDomains)&&"boolean"==typeof e.requiresAcceptance}function n(e){return(0,t.isObjectRecord)(e)&&"boolean"==typeof e.installed&&(void 0===e.accessDisabled||"boolean"==typeof e.accessDisabled)&&"string"==typeof e.libraryAppId&&a(e.installedAppId)&&a(e.installedVersionId)&&a(e.installedVersionLabel)&&a(e.currentVersionId)&&a(e.currentVersionLabel)&&"boolean"==typeof e.updateAvailable&&"boolean"==typeof e.detached&&(null===e.privacyDiff||r(e.privacyDiff))}function l(e){return(0,t.isObjectRecord)(e)&&"string"==typeof e.libraryAppId&&("installed"===e.status||"already_installed"===e.status||"not_found"===e.status||"error"===e.status)&&(null===e.installState||n(e.installState))&&(void 0===e.error||"string"==typeof e.error)}function o(e){if(!(0,t.isObjectRecord)(e))return!1;let i=e.privacySnapshot;return"string"==typeof e.libraryAppId&&"string"==typeof e.publicId&&"string"==typeof e.name&&"string"==typeof e.subtitle&&a(e.image)&&s(e.categories)&&"string"==typeof e.publisherDisplayName&&"boolean"==typeof e.isOfficial&&(null===e.installState||n(e.installState))&&"string"==typeof e.detailPath&&"number"==typeof e.actionCount&&Number.isFinite(e.actionCount)&&Array.isArray(e.actions)&&e.actions.every(e=>(0,t.isObjectRecord)(e)&&"string"==typeof e.name&&"string"==typeof e.displayName&&"string"==typeof e.description&&"string"==typeof e.icon&&"boolean"==typeof e.hasWidget)&&(0,t.isObjectRecord)(i)&&s(i.requestedPermissionKeys)&&s(i.requestedIntegrationSlugs)&&s(i.requestedDomains)&&s(i.summaryBullets)&&(void 0===e.matchedOn||Array.isArray(e.matchedOn)&&e.matchedOn.every(e=>"name"===e||"keywords"===e||"subtitle"===e||"categories"===e))}e.s(["isAppLibraryCard",0,function(e){return(0,t.isObjectRecord)(e)&&"string"==typeof e.id&&"string"==typeof e.publicId&&"string"==typeof e.name&&a(e.image)&&"string"==typeof e.subtitle&&s(e.categories)&&s(e.keywords)&&i.APP_LIBRARY_LISTING_STATUSES.some(t=>t===e.listingStatus)&&a(e.currentVersionId)&&a(e.currentVersionLabel)&&"string"==typeof e.publisherDisplayName&&"boolean"==typeof e.isOfficial&&a(e.publishedAt)&&"string"==typeof e.createdAt&&"string"==typeof e.updatedAt&&"number"==typeof e.installCount&&"number"==typeof e.activeInstallCount&&s(e.desktopImages)&&s(e.mobileImages)},"isAppLibraryInstallState",0,n,"isAppLibraryPrivacyDiff",0,r,"isInstallBatchResponse",0,function(e){var i;return(0,t.isObjectRecord)(e)&&!0===e.success&&Array.isArray(e.results)&&e.results.every(l)&&(i=e.summary,(0,t.isObjectRecord)(i)&&"number"==typeof i.requested&&"number"==typeof i.installed&&"number"==typeof i.alreadyInstalled&&"number"==typeof i.failed)},"parseBrowseAppLibraryToolData",0,function(e){return(0,t.isObjectRecord)(e)&&("search"===e.mode||"pack"===e.mode)&&Array.isArray(e.items)&&e.items.every(o)&&(void 0===e.queryLabel||"string"==typeof e.queryLabel)&&(void 0===e.packTitle||"string"==typeof e.packTitle)&&(void 0===e.subtitle||"string"==typeof e.subtitle)&&(void 0===e.missingPublicIds||s(e.missingPublicIds))?{mode:e.mode,items:e.items,..."string"==typeof e.queryLabel?{queryLabel:e.queryLabel}:{},..."string"==typeof e.packTitle?{packTitle:e.packTitle}:{},..."string"==typeof e.subtitle?{subtitle:e.subtitle}:{},...Array.isArray(e.missingPublicIds)?{missingPublicIds:e.missingPublicIds}:{}}:null}])},397885,166876,e=>{"use strict";var t=e.i(943306),i=e.i(931988),s=e.i(542095),a=e.i(27464),r=e.i(903090),n=e.i(444620),l=e.i(670880),o=e.i(167101),d=e.i(839221);e.s(["AppLibraryBrowseCard",0,function({app:e,isSearchResultActive:c=!1,searchResultDomId:u}){let p=e.installState?.installed===!0,m=e.installState?.updateAvailable===!0,h=(0,l.buildLibraryAppPath)({publicId:e.publicId,name:e.name});return(0,t.jsxs)(i.default,{"data-ph-unmask":"",href:h,onClick:()=>(0,o.rememberPageReturn)(h),id:u,className:(0,d.cn)("group relative flex items-center gap-3.5 rounded-2xl border border-transparent bg-card p-4 shadow-xs transition-[border-color,box-shadow] duration-200 hover:border-border hover:shadow-md",c&&"ring-2 ring-ring ring-offset-2 ring-offset-background"),children:[e.isOfficial?(0,t.jsx)(n.AppLibraryOfficialBadge,{className:"absolute -top-2 right-[10px] z-10"}):null,(0,t.jsxs)("div",{className:"relative shrink-0",children:[(0,t.jsx)(r.AppIcon,{app:{id:e.id,name:e.name,image:e.image??void 0},size:"lg"}),(p||m)&&(0,t.jsx)("div",{className:"absolute -right-1 -bottom-1 z-10",children:m?(0,t.jsx)("div",{className:"flex size-5 items-center justify-center rounded-full border-2 border-card bg-primary",children:(0,t.jsx)(a.RefreshCw,{className:"size-2.5 text-primary-foreground"})}):(0,t.jsx)("div",{className:"flex size-5 items-center justify-center rounded-full border-2 border-card bg-[oklch(82%_0.1_145deg)] dark:bg-[oklch(35%_0.1_145deg)]",children:(0,t.jsx)(s.Check,{className:"size-2.5 text-[oklch(35%_0.1_145deg)] dark:text-[oklch(82%_0.1_145deg)]"})})})]}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col justify-center self-stretch",children:[(0,t.jsx)("h3",{className:"truncate text-[15px] leading-tight font-bold text-foreground",children:e.name}),(0,t.jsx)("p",{className:"mt-1 line-clamp-2 text-[13px] leading-[1.55] text-muted-foreground",children:e.subt
1itle})]})]})}],397885);var c=e.i(297068),u=e.i(935214),p=e.i(21109),m=e.i(59499),h=e.i(778366),f=e.i(156419),b=e.i(581427),x=e.i(779786);e.s(["useLibraryInstallStates",0,function(e){let{isLoaded:t,isSignedIn:i}=(0,u.useUser)(),{isReady:s,workspace:a}=(0,b.useWorkspace)(),r=(0,h.workspaceScopeKey)(a),n=e?.initialInstallStates,l=(0,c.useRef)(void 0===n?null:r),[o,d]=(0,c.useState)(()=>void 0===n?null:{workspaceKey:r,status:"ready",installStates:n}),g=s&&i&&o?.workspaceKey===r?o:null,y=g?.status==="ready"?g.installStates:null,A=(0,c.useCallback)(e=>{d(t=>{let i=t?.workspaceKey===r&&"ready"===t.status?{...t.installStates}:{};for(let t of e)i[t.libraryAppId]=t.installState;return{workspaceKey:r,status:"ready",installStates:i}})},[r]);return(0,c.useEffect)(()=>{if(!t||!i||!s)return;let e=!0,a=null;async function n(){if(a)return;let t=new AbortController;a=t;try{let i=await (0,f.workspaceFetch)("/api/app-library/apps/install-states",{signal:t.signal,cache:"no-store"});if(!i.ok){e&&d({workspaceKey:r,status:"error"});return}let s=await i.json();if(!(0,x.isObjectRecord)(s)||!(0,x.isObjectRecord)(s.installStates)){e&&d({workspaceKey:r,status:"error"});return}let a=Object.fromEntries(Object.entries(s.installStates).filter(e=>null===e[1]||(0,m.isAppLibraryInstallState)(e[1])));e&&d({workspaceKey:r,status:"ready",installStates:a})}catch(t){if(t instanceof DOMException&&"AbortError"===t.name)return;e&&d({workspaceKey:r,status:"error"})}finally{a===t&&(a=null)}}function o(){"visible"===document.visibilityState&&n()}return l.current===r?l.current=null:n(),window.addEventListener("focus",n),window.addEventListener(p.APP_LIBRARY_INSTALL_CHANGED_EVENT,n),document.addEventListener("visibilitychange",o),()=>{e=!1,a?.abort(),window.removeEventListener("focus",n),window.removeEventListener(p.APP_LIBRARY_INSTALL_CHANGED_EVENT,n),document.removeEventListener("visibilitychange",o)}},[t,i,s,r]),{installStates:y,isLoading:!!(t&&i&&(!s||!g)),applyInstallResults:A}}],166876)},291074,e=>{"use strict";var t=e.i(943306),i=e.i(297068),s=e.i(766693),a=e.i(446998),r=e.i(677025),n=e.i(291010),l=e.i(749001),o=e.i(967266),d=e.i(670880),c=e.i(837173),u=e.i(312359),p=e.i(247854),m=e.i(158772),h=e.i(809382),f=e.i(167101),b=e.i(397885),x=e.i(166876);let g="app-library-search-results";function y(e){return`${g}-${encodeURIComponent(e)}`}function A({activeCategory:e,availableCategories:i,onSelect:s}){let a=e=>`px-3 text-[13px] ${e?"bg-foreground text-background hover:bg-foreground hover:text-background":"text-muted-foreground hover:bg-muted hover:text-foreground"}`;return(0,t.jsxs)("div",{className:"-mx-4 mb-6 no-scrollbar flex gap-1.5 overflow-x-auto px-4 sm:-mx-6 sm:px-6",children:[(0,t.jsx)(h.Button,{type:"button",variant:"ghost",size:"xs",onClick:()=>s(null),className:a(null===e),children:"All"}),i.map(i=>(0,t.jsx)(h.Button,{type:"button",variant:"ghost",size:"xs",onClick:()=>s(e===i?null:i),className:a(e===i),children:i},i))]})}function _(){return(0,t.jsx)("div",{className:"mt-3 flex justify-center",children:(0,t.jsx)(m.PublicCreateAppButton,{})})}function v({hasFilters:e}){return(0,t.jsxs)("div",{role:e?"status":void 0,className:"flex min-h-[60vh] flex-col items-center justify-center text-center",children:[(0,t.jsx)("div",{className:"mb-4 flex size-14 items-center justify-center rounded-2xl bg-muted",children:(0,t.jsx)(a.Package,{className:"size-6 text-muted-foreground"})}),(0,t.jsx)("p",{className:"text-sm font-semibold text-foreground",children:e?"No apps found":"No apps yet"}),(0,t.jsx)("p",{className:"mt-1 max-w-[240px] text-[13px] leading-snug text-muted-foreground",children:e?"Try adjusting your search or filters.":"We're still adding apps here. Check back soon!"})]})}function S(){return(0,t.jsx)("div",{className:"mt-12 mb-2 flex justify-center",children:(0,t.jsxs)("div",{className:"relative flex w-full max-w-lg flex-col items-center p-8",children:[(0,t.jsxs)("div",{className:"mb-6 flex items-center gap-3",children:[(0,t.jsx)("div",{className:"h-px w-10 bg-linear-to-r from-transparent to-border"}),(0,t.jsx)("div",{className:"flex size-8 items-center justify-center rounded-full bg-primary/8 ring-1 ring-primary/12",children:(0,t.jsx)(a.Package,{className:"size-3.5 text-primary"})}),(0,t.jsx)("div",{className:"h-px w-10 bg-linear-to-l from-transparent to-border"})]}),(0,t.jsx)("p",{className:"text-sm font-semibold text-foreground sm:text-[15px]",children:"More apps are landing soon"}),(0,t.jsx)("p",{className:"mt-1.5 max-w-[320px] text-center text-[13px] leading-relaxed text-muted-foreground",children:"Over the next few days, we'll be publishing more apps and approv
1ing new community submissions. Stay tuned."})]})})}e.s(["AppLibraryBrowseClient",0,function({apps:e,hideTitle:a=!1,inShellPage:m=!1,installStatesPreloaded:L=!0,onSelectApp:j}){let w=(0,s.useRouter)(),N=(0,i.useMemo)(()=>L?Object.fromEntries(e.map(e=>[e.id,e.installState])):void 0,[e,L]),{installStates:E}=(0,x.useLibraryInstallStates)({initialInstallStates:N}),[P,R]=(0,i.useState)(null),[C,I]=(0,i.useState)(""),[k,T]=(0,i.useState)(!1),B=(0,i.useRef)(null),O=(0,i.useMemo)(()=>e.map(e=>({...e,installState:E?E[e.id]??null:null})),[e,E]);(0,i.useEffect)(()=>{k&&window.matchMedia("(max-width: 639px)").matches&&B.current?.focus()},[k]);let D=(0,i.useCallback)(()=>{T(!0)},[]),M=(0,i.useCallback)(()=>{C.trim()||T(!1)},[C]),U=(0,i.useMemo)(()=>{let e=O;if(P&&(e=e.filter(e=>e.categories.includes(P))),C.trim()){let t=C.toLowerCase();e=e.filter(e=>e.name.toLowerCase().includes(t)||e.subtitle.toLowerCase().includes(t)||e.keywords.some(e=>e.toLowerCase().includes(t)))}return e},[P,O,C]),H=C.trim().length>0,z=H?U:[],Y=(0,l.useSearchResultNavigation)({results:z,getResultDomId:e=>y(e.publicId),onSelect:e=>{if(j)return void j(e);let t=(0,d.buildLibraryAppPath)({publicId:e.publicId,name:e.name});(0,f.rememberPageReturn)(t),w.push(t)}}),X=e=>{I(e),Y.reset()},F=(0,i.useMemo)(()=>o.APP_LIBRARY_CATEGORIES.filter(e=>O.some(t=>t.categories.includes(e))),[O]);P&&!F.includes(P)&&R(null);let G=!!P||!!C.trim(),K={ariaActiveDescendant:Y.activeResultDomId,ariaControls:H?g:void 0,ariaExpanded:H?U.length>0:void 0,ariaLabel:"Search apps",onKeyDown:Y.handleKeyDown,placeholder:n.APP_SEARCH_PLACEHOLDER,value:C,onValueChange:X},V=(0,t.jsx)("div",{className:`relative min-w-0 flex-1 transition-[max-width] duration-200 ease-in-out sm:hidden ${k?"max-w-full":"max-w-9"}`,children:k?(0,t.jsx)(n.AppSearchField,{...K,inputRef:B,inputClassName:"text-base",onBlur:M,showClearWhenEmpty:!0,onClear:()=>{I(""),T(!1)}}):(0,t.jsx)(h.Button,{type:"button",variant:"ghost",size:"icon-md","aria-label":"Open search",onClick:D,className:"text-muted-foreground hover:bg-muted hover:text-foreground",children:(0,t.jsx)(r.Search,{className:"size-4"})})}),W=(0,t.jsxs)(t.Fragment,{children:[0===U.length?(0,t.jsx)("div",{id:H?g:void 0,role:H?"region":void 0,"aria-label":H?"App Library search results":void 0,children:(0,t.jsx)(v,{hasFilters:G})}):(0,t.jsx)("div",{id:H?g:void 0,role:H?"region":void 0,"aria-label":H?"App Library search results":void 0,className:"grid grid-cols-[repeat(auto-fill,minmax(270px,1fr))] gap-3",children:U.map(e=>(0,t.jsx)(b.AppLibraryBrowseCard,{app:e,isSearchResultActive:Y.activeResult?.id===e.id,searchResultDomId:H?y(e.publicId):void 0},e.id))}),!G&&U.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(S,{}),(0,t.jsx)(_,{})]})]});return m?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.ShellPageBand,{title:"App Library",search:{...K,onClear:()=>X("")}}),(0,t.jsx)(p.ShellPageScrollColumn,{children:(0,t.jsxs)("div",{className:"mx-auto max-w-5xl px-4 pt-2 pb-20 sm:px-6",children:[(0,t.jsx)(A,{activeCategory:P,availableCategories:F,onSelect:R}),W]})})]}):(0,t.jsxs)("div",{className:"mx-auto max-w-5xl px-4 pb-20 sm:px-6",children:[a?(0,t.jsxs)("div",{className:"pb-5",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-2xl font-medium tracking-tight text-foreground",children:"Available apps"}),(0,t.jsx)("p",{className:"text-muted-foreground",children:"Discover apps that make Snow more useful."})]}),(0,t.jsx)(n.AppSearchField,{...K,className:"mt-4 w-full",onClear:()=>X("")})]}):(0,t.jsxs)("div",{className:"flex min-w-0 items-center pt-8 pb-3 sm:pt-10 sm:pb-5",children:[(0,t.jsx)("h1",{className:`min-w-0 text-2xl font-bold tracking-tight text-foreground transition-[opacity,max-width,margin] duration-200 ease-in-out sm:mr-auto! sm:max-w-none! sm:shrink-0 sm:text-3xl sm:opacity-100! ${k?"mr-0 max-w-0 overflow-hidden opacity-0":"mr-auto max-w-[200px] opacity-100"}`,children:(0,t.jsx)("span",{className:"whitespace-nowrap",children:"App Library"})}),(0,t.jsx)(n.AppSearchField,{...K,className:`ml-auto hidden shrink-0 sm:block ${c.SHELL_BAND_SEARCH_WIDTH_CLASS}`,inputClassName:"text-[13px]",onClear:()=>X("")}),V]}),(0,t.jsx)(A,{activeCategory:P,availableCategories:F,onSelect:R}),W]})}])},967266,e=>{"use strict";e.s(["APP_LIBRARY_CATEGORIES",0,["Productivity","Games","Utilities","Food","Finance","Media","Education","Health","Developer Tools","Travel"],"APP_LIBRARY_CHANGE_TYPES",0,["initial_publish","metadata_update","code_update","metadata_and_code_update"],"APP_LIBRARY_CHANGE_TYPE_LABELS",0,{initial_publish:"Initial publish",metadata_update:"Details only",code_update:"Code update",metadata_and_code_update:"Details + code"},"APP_LIBRARY_DEFAULT_CHANGE_TYPE",0,"metadata_update","APP_LIBRARY_EVENT_TYPES",0,["submission_created","submission_updated","submission_canceled","review_started","changes_requested","submission_rejected","submission_approved","listing_published","listing_unpublished","preview_installed","preview_uninstalled","install_created","install_updated","listing_marked_official","listing_unmarked_official"],"APP_LIBRARY_EVENT_TYPE_LABELS",0,{submission_created:"Submission created",submission_updated:"Submission updated",submission_canceled:"Submission canceled",review_started:"Review started",changes_requested:"Changes requested",submission_rejected:"Submission rejected",submission_approved:"Submission approved",listing_published:"Listing published",listing_unpublished:"Listing unpublished",preview_installed:"Preview installed",preview_uninstalled:"Preview uninstalled",install_created:"App installed",install_updated:"App updated",listing_marked_official:"Marked official Snow app",listing_unmarked_official:"Removed official Snow app"},"APP_LIBRARY_LIMITS",0,{NAME_MAX:25,SUBTITLE_MAX:180,DESCRIPTION_MAX:5e3,CATEGORY_MAX:1,CATEGORY_NAME_MAX:80,KEYWORD_MAX:10,KEYWORD_LENGTH_MAX:20,BUILD_MOTIVATION_MAX:200,VERSION_LABEL_MAX:20,CHANGELOG_MAX:1e3,PUBLISHER_MESSAGE_MAX:5e3,INTERNAL_NOTE_MAX:2e3,PUBLISHER_DISPLAY_NAME_MAX:80,PUBLISHER_WEBSITE_MAX:500,PUBLISHER_BIO_MAX:200,SCREENSHOT_MAX_PER_DEVICE:3,SCREENSHOT_URL_MAX:2e3,SCREENSHOT_UPLOAD_SIZE_MAX_BYTES:6291456,COLLECTION_NAME_MAX:80,COLLECTION_DESCRIPTION_MAX:500,COLLECTION_APP_MAX:24,TOOL_SEARCH_KEYWORD_MAX:5,TOOL_SEARCH_RESULT_DEFAULT:6,TOOL_SEARCH_RESULT_MAX:8,TOOL_PACK_APP_MAX:8,TOOL_BATCH_INSTALL_MAX:24},"APP_LIBRARY_LISTING_STATUSES",0,["published","unpublished"],"APP_LIBRARY_LISTING_STATUS_LABELS",0,{published:"Published",unpublished:"Unpublished"},"APP_LIBRARY_STATUS_LABELS",0,{draft:"Draft",submitted:"Submitted",in_review:"Under Review",changes_requested:"Needs Changes",rejected:"Rejected",approved:"Approved",canceled:"Canceled"},"APP_LIBRARY_SUBMISSION_STATUSES",0,["draft","submitted","in_review","changes_requested","rejected","approved","canceled"]])},670880,e=>{"use strict";var t=e.i(62706);function i(e){return(0,t.normalizeShortId)(e)}t.SHORT_ID_LENGTH;let s=/[^a-z0-9]+/g,a=/-{2,}/g,r=/^-+|-+$/g;function n(e){let t=e.trim().toLowerCase().replace(s,"-").replace(a,"-").replace(r,"");return t.length>0?t:"app"}e.s(["buildLibraryAppPath",0,function(e){let t=encodeURIComponent(i(e.publicId)),s=encodeURIComponent(n(e.name));return`/apps/${s}/${t}`},"buildLibraryCollectionPath",0,function(e){return`/apps/c/${encodeURIComponent(i(e))}`},"toLibraryUrlName",0,n],670880)},837173,e=>{"use strict";var t=e.i(943306),i=e.i(839221);let s="p-4 pt-[calc(1rem+env(safe-area-inset-top,0px))]",a=`z-20 flex w-full flex-none items-center gap-3 max-lg:min-h-[66px] lg:min-h-[62px] ${s}`;e.s(["SHELL_BAND_ROW_CLASS",0,a,"SHELL_BAND_ROW_PADDING_CLASS",0,s,"SHELL_BAND_SEARCH_WIDTH_CLASS",0,"sm:w-[220px]","SHELL_BAND_TITLE_CLASS",0,"min-w-0 truncate text-lg font-bold tracking-tight text-foreground","ShellBandRow",0,function({children:e,className:s,...r}){return(0,t.jsx)("header",{"data-shell-chrome":"band",className:(0,i.cn)(a,s),...r,children:e})}])},312359,63475,e=>{"use strict";var t=e.i(943306),i=e.i(297068),s=e.i(677025),a=e.i(291010),r=e.i(319458),n=e.i(830485),l=e.i(839221),o=e.i(960946),d=e.i(744636),c=e.i(873914),u=e.i(250423),p=e.i(837173),m=e.i(766693),h=e.i(470056),f=e.i(809382),b=e.i(167101);function x({back:e}){let i=(0,m.usePathname)(),s=(0,m.useRouter)();return(0,t.jsx)(f.Button,{type:"button",variant:"ghost",size:"icon-sm",onClick:()=>
1{if(e.onBack)return void e.onBack();let t=new URL(e.href,window.location.origin).pathname,a=(0,b.readPageReturn)({currentPathname:i,parentPath:t,sourceRoots:e.returnSources});((0,b.clearPageReturn)(),a)?s.back():s.push(e.href)},"aria-label":e.label,className:"-ml-1 shrink-0 text-muted-foreground hover:bg-(--shell-item-hover) hover:text-foreground",children:(0,t.jsx)(h.ArrowLeft,{className:"size-4"})})}e.s(["ShellPageBackButton",0,x],63475),e.s(["ShellPageBand",0,function({title:e,contentOwnsHeading:m=!1,icon:h,back:f,actions:b,search:g,className:y}){let{panelOpen:A}=(0,c.useShellState)(),{togglePanel:_}=(0,c.useShellActions)(),v=!!(b??g),[S,L]=(0,i.useState)(!1),j=(0,i.useRef)(null);return(0,i.useEffect)(()=>{S&&j.current?.focus()},[S]),(0,i.useEffect)(()=>{if(!g)return;let e=e=>{let t=e.target,i=t instanceof HTMLElement&&(t.isContentEditable||t.matches("input, textarea, select, [role='textbox']"));e.defaultPrevented||"/"!==e.key||e.altKey||e.ctrlKey||e.metaKey||i||(e.preventDefault(),L(!0),j.current?.focus({preventScroll:!0}))};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[g]),(0,t.jsxs)(p.ShellBandRow,{className:y,children:[f?(0,t.jsx)(x,{back:f}):(0,t.jsx)(u.ShellBrandMark,{href:"/",className:"lg:hidden"}),h?(0,t.jsx)("span",{className:"hidden size-7 shrink-0 items-center justify-center lg:flex","aria-hidden":"true",children:h}):null,e?m?(0,t.jsx)("span",{className:(0,l.cn)(p.SHELL_BAND_TITLE_CLASS,S&&"max-sm:hidden"),children:e}):(0,t.jsx)("h1",{className:(0,l.cn)(p.SHELL_BAND_TITLE_CLASS,S&&"max-sm:hidden"),children:e}):null,(0,t.jsx)("div",{className:(0,l.cn)("lg:hidden",S&&"max-sm:hidden"),children:(0,t.jsx)(o.ActivityPills,{compact:!0})}),(0,t.jsxs)("div",{className:(0,l.cn)("ml-auto flex min-w-0 items-center gap-2",S&&"max-sm:flex-1"),children:[(0,t.jsx)("span",{className:(0,l.cn)("contents",S&&"max-sm:hidden"),children:b}),g?(0,t.jsxs)(t.Fragment,{children:[S?null:(0,t.jsx)("button",{type:"button","aria-label":g.ariaLabel,onClick:()=>L(!0),className:"flex size-9 shrink-0 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-(--shell-item-hover) hover:text-foreground sm:hidden",children:(0,t.jsx)(s.Search,{className:"size-4"})}),(0,t.jsx)(a.AppSearchField,{ariaActiveDescendant:g.ariaActiveDescendant,ariaControls:g.ariaControls,ariaExpanded:g.ariaExpanded,ariaLabel:g.ariaLabel,placeholder:g.placeholder,value:g.value,onValueChange:g.onValueChange,onKeyDown:g.onKeyDown,onBlur:()=>{g?.value.trim()||L(!1)},inputRef:j,showClearWhenEmpty:S,onClear:()=>{g.onClear(),L(!1)},className:(0,l.cn)("min-w-0",p.SHELL_BAND_SEARCH_WIDTH_CLASS,S?"flex-1 sm:flex-none":"hidden sm:block"),inputClassName:"text-base sm:text-[13px]"})]}):null,(0,t.jsx)(u.ShellAppsToggleButton,{open:A,onToggle:_,panelId:d.SHELL_APPS_PANEL_ID,showLabel:!v,className:"lg:hidden"}),(0,t.jsx)("span",{className:"lg:hidden",children:(0,t.jsx)(n.ServiceStatusBanner,{mobile:!0})}),(0,t.jsx)("span",{className:"lg:hidden",children:(0,t.jsx)(r.UserMenu,{})})]})]})}],312359)},247854,e=>{"use strict";var t=e.i(943306),i=e.i(839221),s=e.i(395716);e.s(["ShellPageScrollColumn",0,function({children:e,className:a}){return(0,t.jsx)("div",{className:"shell-band-underlap relative min-h-0 w-full flex-1",children:(0,t.jsx)(s.ShellScrollFade,{className:"absolute inset-0",scrollClassName:(0,i.cn)("scroll-pt-(--shell-band-underlap) pt-(--shell-band-underlap) pb-0",a),children:e})})}])},250423,e=>{"use strict";var t=e.i(943306),i=e.i(60409),s=e.i(931988),a=e.i(903525),r=e.i(839221);e.s(["ShellAppsToggleButton",0,function({open:e,onToggle:i,panelId:s,showLabel:n=!0,className:l}){return(0,t.jsxs)("button",{type:"button","aria-label":"Apps",onClick:i,className:(0,r.cn)(`top-right-button touch-hit-target flex shrink-0 items-center gap-2 rounded-[10px] p-[7px] text-sm font-semibold text-foreground outline-1 backdrop-blur-xl transition-[color,background-color,box-shadow,outline-color,scale] duration-100 ease-out outline-solid focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background focus-visible:outline-hidden active:scale-[0.985] ${e?"bg-(--soft-button-bg-hover) shadow-sm shadow-primary/30 outline-primary/40 hover:outline-primary/60":"bg-(--soft-button-bg) shadow-xs outline-border hover:shadow-sm hover:shadow-
1primary/30 hover:outline-primary/30"}`,n&&"sm:pr-[10px]",l),"aria-controls":s,"aria-expanded":e,children:[(0,t.jsx)(a.AppsGridIcon,{className:"size-5 text-[#50bcec]"}),n&&(0,t.jsx)("span",{children:"Apps"})]})},"ShellBrandMark",0,function({href:e=null,allowReload:a=!0,className:n}){let l=(0,t.jsx)(i.default,{src:"/snow-chat-icon.svg",alt:"Snow Chat",width:30,height:30,className:"text-primary dark:text-primary dark:invert",decoding:"async",fetchPriority:"high"});return e?(0,t.jsx)(s.default,{href:e,className:(0,r.cn)("pointer-events-auto flex-none transition-opacity hover:opacity-80",n),"aria-label":"Go to Snow Chat homepage",children:l}):a?(0,t.jsx)("button",{type:"button",onClick:()=>window.location.reload(),className:(0,r.cn)("pointer-events-auto flex-none transition-opacity hover:opacity-80",n),"aria-label":"Reload page",children:l}):(0,t.jsx)("div",{className:(0,r.cn)("pointer-events-auto flex-none cursor-default",n),children:l})}])},354650,e=>{"use strict";var t=e.i(943306),i=e.i(319458),s=e.i(581427),a=e.i(901850);function r(){return(0,t.jsx)("div",{className:"inline-flex size-8 shrink-0 rounded-full bg-muted/70","aria-hidden":"true"})}e.s(["PublicAuthPlaceholder",0,r,"PublicAuthenticatedControls",0,function(){let{isReady:e}=(0,s.useWorkspace)();return e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.UserMenu,{}),(0,t.jsx)(a.GlobalFeedbackDialog,{})]}):(0,t.jsx)(r,{})}])},158772,e=>{"use strict";var t=e.i(943306),i=e.i(931988),s=e.i(185783),a=e.i(935214),r=e.i(980719),n=e.i(16970),l=e.i(776034),o=e.i(809382);let d=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Plus,{className:"size-4"}),"Create your app"]});e.s(["PublicCreateAppButton",0,function({className:e,fullWidth:r=!1,variant:c="default"}){let{isLoaded:u,isSignedIn:p}=(0,a.useUser)(),m=[r?"w-full justify-center":"","gap-2 rounded-full px-4",e??""].filter(Boolean).join(" ");return u?p?(0,t.jsx)(o.Button,{size:"sm",variant:c,className:m,render:(0,t.jsx)(i.default,{href:"/",onClick:()=>{(0,n.requestComposerFocusOnNextLoad)({hint:n.CREATE_APP_COMPOSER_HINT})}}),children:d}):(0,t.jsx)(s.SignInButton,{mode:"modal",withSignUp:!0,fallbackRedirectUrl:"/",signUpForceRedirectUrl:(0,l.buildOnboardingPath)({freshSignup:!0,returnTo:"/"}),children:(0,t.jsx)(o.Button,{size:"sm",variant:c,className:m,children:d})}):(0,t.jsx)(o.Button,{size:"sm",variant:c,className:m,disabled:!0,"aria-disabled":"true",children:d})}])},167101,e=>{"use strict";var t=e.i(779786);let i="snow:page-return",s=null;function a(){return s??=crypto.randomUUID()}function r(e,t){return e===t||e.startsWith(`${t}?`)||e.startsWith(`${t}#`)}function n(){let e=window.sessionStorage.getItem(i);if(!e)return null;try{let i=JSON.parse(e);if((0,t.isObjectRecord)(i)&&"string"==typeof i.sourcePath&&"string"==typeof i.targetPathname&&"string"==typeof i.documentId)return i}catch{}return l(),null}function l(){window.sessionStorage.removeItem(i)}e.s(["clearPageReturn",0,l,"clearPageReturnFrom",0,function(e){let t=n();t&&r(t.sourcePath,e)&&l()},"readPageReturn",0,function({currentPathname:e,parentPath:t,sourceRoots:i}){if(window.history.length<=1)return null;let s=n();if(!s)return null;if(s.documentId!==a())return l(),null;let o=r(s.sourcePath,t)||(i?.some(e=>{var t;return r(t=s.sourcePath,e)||t.startsWith(`${e}/`)})??!1);return s.targetPathname===e&&o?s.sourcePath:null},"rememberPageReturn",0,function(e){let t,s=(t=new URL(e,window.location.origin)).origin!==window.location.origin?null:t.pathname;if(!s)return;let r={sourcePath:`${window.location.pathname}${window.location.search}${window.location.hash}`,targetPathname:s,documentId:a()};window.sessionStorage.setItem(i,JSON.stringify(r))}])},919721,e=>{"use strict";let t=(0,e.i(820750).default)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);e.s(["default",0,t])},446998,e=>{"use strict";var t=e.i(919721);e.s(["Package",()=>t.default])}]); 2 3//# chunkId=01a0804f-84f6-7250-87c2-38d175e35783
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.