1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5636,1005,4661],{59318:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/templates/[id]",function(){return s(28070)}])},29094:function(e,t){"use strict";t.Z={src:"/_next/static/media/Sal-Painting-2x.c8081548.png",height:5035,width:5077,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAVFBMVEVMaXEAAAAYGBjh4eEAAAAAAAAAAAABAQECAgIAAADf3983NzcBAQEDAwMAAAB/f38zMzPMzMwAAAA/Pz+ampoCAgK1tbWGhoYAAAAAAACVlZXr6+utrPL5AAAAGXRSTlMAOh6Fz9nD/YVc0yTjSbYErTL2iWWutGjs83dYZgAAAAlwSFlzAAAWJQAAFiUBSVIk8AAAAEFJREFUeJwVxkcSgCAQAMEh7xLEbKH//6dFnxojV/V+McQw0kgjYMux7jOcr4vJK2xfjlWAnp1VBbgfWpspIlbND1vVAkv9ao33AAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},38095:function(e,t){"use strict";t.Z={src:"/_next/static/media/Sal-Spray.5abcbf19.svg",height:1657,width:2161,blurWidth:0,blurHeight:0}},71508:function(e,t){"use strict";t.Z={src:"/_next/static/media/gamma-logo-profile-image.c51e9197.png",height:265,width:265,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAVFBMVEX16+XLN8P46dv3yMDq2ebQsOnXkrP27+b28+j8+uP1w9vlo5713+Xxt9TdU5zYdLqnmfHgbYyTKuagQremCurcuOzIi+KQVuzwqpHqrO3vdcz3U6Pc/F4nAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAQElEQVR4nCWLSRKAIBDEGgVmGnFXVPj/P6kpc8klAQAqDJEt0OyfMxYvYHDxuG6Cn3vXJSkk17ZPg0U6j/8GNXdHWAH663uVwQAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8}},17072:function(e,t,s){"use strict";s.d(t,{z:function(){return em}});var i=s(52322);s(98248),s(61219);var n=s(55671),r=s(62202),o=s(18200),l=s(81674),a=s(94523),c=s(97729),d=s.n(c),u=s(5632),h=s(2784),p=s(43997),m=s(14274),g=s(93202),y=s(2013);let b=e=>{let t=["malformed","encoded","illegal"];return e.includes("URIError")&&e.split(" ").some(e=>t.includes(e))};class x extends h.Component{componentDidMount(){window.addEventListener("error",this.handleError),window.addEventListener("unhandledrejection",this.handleUnhandledRejection)}componentWillUnmount(){window.removeEventListener("error",this.handleError),window.removeEventListener("unhandledrejection",this.handleUnhandledRejection)}componentDidCatch(e,t){if("dev"===m.v.APPLICATION_ENVIRONMENT)throw e}static getDerivedStateFromError(e){return{hasError:!0,errMessage:e.message,shouldMountChildren:!1}}handleError(e){if("dev"===m.v.APPLICATION_ENVIRONMENT)throw Error("[ErrorBoundary]: ".concat(e.message))}handleUnhandledRejection(e){let t=this.props.unhandledRejectionFilter(e);if(t){var s;let t=(null===(s=e.reason)||void 0===s?void 0:s.message)||"";this.setState({hasError:!0,errMessage:t})}}render(){let e=!0===b(this.state.errMessage)?{opacity:"0.65",starOverlay:!1}:{};return(0,i.jsxs)(i.Fragment,{children:[this.state.hasError&&(0,i.jsx)(y.q,{pos:"absolute",top:0,...e,errMessage:""===this.state.errMessage?void 0:this.state.errMessage,showDisclosure:!0}),this.state.shouldMountChildren&&this.props.children]})}constructor(e){super(e),this.state={hasError:!1,errMessage:"",shouldMountChildren:!0},this.handleError=this.handleError.bind(this),this.handleUnhandledRejection=this.handleUnhandledRejection.bind(this)}}x.defaultProps={unhandledRejectionFilter:e=>{var t;return!!b((null===(t=e.reason)||void 0===t?void 0:t.message)||"")||e.reason instanceof g.YBv&&!1===document.hidden||e.reason instanceof g.R5s}},s(61036),s(62376),s(6991),s(76298),s(4466),s(43839),s(40917);var A=s(11050),_=s(42005);let S=()=>{let e=(0,h.useRef)(!1),t=(0,h.useRef)(new Map);(0,h.useEffect)(()=>{if("production"!==m.v.APPLICATION_ENVIRONMENT)return;let s=()=>{if(e.current)return;let s=t.current.get("total"),i=t.current.get("notTrusted"),n=i/s>.5;n&&s>5&&(e.current=!0,_.c.track(A.xW.NOT_TRUSTED_EVENTS_DETECTED,{totalEvents:s,notTrustedEvents:i}))},i=e=>{e.isTrusted||t.current.set("notTrusted",(t.current.get("notTrusted")||0)+1),t.current.set("total",(t.current.get("total")||0)+1),s()};return document.addEventListener("paste",i,{capture:!0}),document.addEventListener("mousedown",i,{capture:!0}),document.addEventListener("keydown",i,{capture:!0}),()=>{document.removeEventListener("paste",i,{capture:!0}),document.removeEventListener("mousedown",i,{capture:!0}),document.removeEventListener("keydown",i,{capture:!0})}},[])};var f=s(79254),C=s(90221),v=s(93441),D=s(90383);let j=()=>{let e=!(0,C.l6)()&&!(0,D.wg)();return(0,v.GE)(e,'\n!function(w,d,i,s){function l(){if(!d.getElementById(i)){var f=d.getElementsByTagName(s)[0],e=d.createElement(s);e.type="text/javascript",e.async=!0,e.src="https://canny.io/sdk.js",f.parentNode.insertBefore(e,f)}}if("function"!=typeof w.Canny){var c=function(){c.q.push(arguments)};c.q=[],w.Canny=c,"complete"===d.readyState?l():w.attachEvent?w.attachEvent("onload",l):w.addEventListener("load",l,!1)}}(window,document,"canny-jssdk","script");\n'),null};var w=s(27354),E=s(42111),P=s(32019),k=s(99092),I=s(36651);let T=(e,t)=>
1{k.H.init(m.v.HIGHLIGHT_PROJECT_ID,{environment:m.v.APPLICATION_ENVIRONMENT,sessionShortcut:!!t&&"shift+command+0",enableStrictPrivacy:e,enableSegmentIntegration:!0,networkRecording:{enabled:!0,recordHeadersAndBody:!0}}),A.co.loadSdkPromise.then(e=>{e&&e.addSourceMiddleware(k.LZ)})},N=e=>{let{children:t}=e,{user:s,anonymousUser:n,isGammaOrgUser:r,isUserLoading:o}=(0,I.SE)(),{enabled:l,enableStrictPrivacy:a}=(0,E.ye)("highlight");return(0,h.useEffect)(()=>{l&&!o&&s&&T(a,r)},[a,l,r,o,s]),(0,h.useEffect)(()=>{if(!o){if(s){let{id:e,displayName:t,email:i,profileImageUrl:n}=s;k.H.identify(e,{highlightDisplayName:t,email:i,avatar:n})}else if(null==n?void 0:n.id){let{id:e,displayName:t}=n;k.H.identify("",{anonDisplayName:t||"",anonId:e})}}},[s,n,o]),(0,i.jsx)(i.Fragment,{children:t})};var F=s(34881),L=s(87254),V=s(5879),U=s(44754);let R=e=>{let{children:t}=e;return(0,U.b)(),(0,i.jsx)(V.bd,{i18n:L.ag,children:t})};var O=s(18875),z=s(17292),M=s(55478),G=s(76332),H=s(6912),B=s(27902),W=s(84473),K=s(78462),q=s(72354),Y=s(1163),X=s(2953);let Z="get-gamma-pro",Q=e=>{var t,s;let{children:n}=e,{currentWorkspace:r,isUserLoading:o}=(0,W.SE)(),[l,a]=(0,h.useState)(!1),c=(0,B.z$)(),d=(0,E.ye)("upsellUXEnabled_Pro"),{data:u,refetch:p}=(0,G.FaU)({variables:{workspaceId:null==r?void 0:r.id,includeExpired:!0},skip:!(null==r?void 0:r.id)}),m=null==u?void 0:u.subscription;(0,H.ET)({subscription:m,workspace:r,autoLaunch:!0});let{data:g}=(0,G.kNl)({variables:{workspaceId:null==r?void 0:r.id},skip:!r}),y=null==g?void 0:null===(t=g.products)||void 0===t?void 0:t.find(e=>"pro"===e.key),b=null==y?void 0:null===(s=y.prices)||void 0===s?void 0:s.find(e=>e.frequencyUnit===G.C_B.Year),x=(0,Y.K9)(r),{isOpen:A,onOpen:_,onClose:S}=(0,M.q)({id:"upsell-modal"}),f=(0,h.useRef)(null),C=(0,h.useCallback)(e=>{let{onOpenCallback:t,onCloseCallback:s,insufficientCreditsWarning:i,segmentEvent:n}=e;d&&(a(!!i),null==t||t(),_(),null==c||c.track(n),f.current=s||null)},[c,_,d]),v=(0,h.useCallback)(()=>{var e;null==f||null===(e=f.current)||void 0===e||e.call(f),S(),f.current=null,a(!1)},[S]),[D,j]=(0,h.useState)({openUpsellModal:C,product:x,subscription:m,proYearlyProductPrice:b});return(0,h.useEffect)(()=>{let e="true"===(0,K.SJ)()[Z];e&&!o&&r&&(_(),(0,F.lO)({query:{...(0,K.SJ)(),[Z]:void 0},emitChange:!1}))},[_,r,o]),(0,h.useEffect)(()=>{j({openUpsellModal:C,refetchSubscription:p,product:x,subscription:m,proYearlyProductPrice:b})},[C,x,m,b,p]),(0,i.jsxs)(X.P.Provider,{value:D,children:[n,(0,i.jsx)(q.b,{insufficientCreditsWarning:l,isUpsellModalOpen:A,closeUpsellModal:v}),(0,i.jsx)(H.S1,{})]})};var J=s(99268),$=s(25944),ee=s(19902);let et="no_org_id",es=e=>{let{children:t}=e;(0,$.iZ)();let{user:s,anonymousUser:n,currentWorkspace:r,isUserLoading:o}=(0,I.SE)();return(0,h.useEffect)(()=>{let e=(0,ee.K)();(0,J.$n)(e.get()),e.fetch().then(J.$n).catch(()=>{})},[]),(0,h.useEffect)(()=>{let e;if(!o){if(s){let{id:t,email:i}=s,n=!!i&&i.endsWith("@gamma.app"),o=(null==r?void 0:r.id)||et;e={userId:t,isGammaUser:n,userOrgId:o,anonymousUser:!1,gammaUserFirstName:n?s.firstName:""}}else e={userId:"anonymous_user",isGammaUser:!1,userOrgId:et,anonymousUser:!0,gammaUserFirstName:""};(0,J.$n)(e)}},[o,s,n,r]),(0,i.jsx)(i.Fragment,{children:t})};var ei=s(54839),en=s(91994),er=s(89311),eo=s(95426),el=s(1198),ea=s(60742),ec=s(13265);l.vc.autoAddCss=!1;let ed=(0,en.bh)(),eu=(0,g.RqP)(),eh=(0,g.PGq)(),ep=(0,r.B1)(a.qZ,{styles:{global:{".ProseMirror":{outline:"0 none"}}}});((e,t)=>{let s=(0,ei.I)({theme:t});e.globalToast=s})(window,ep),(0,ea.Lq)(),z.F7.initialize(),(0,F.lt)(),A.co.init(),(0,O.S1)(),(0,w.u7)(),(0,eo.a)("appMainBundleLoaded"),console.log("\uD83D\uDE80 GammaApp main wrapper imported"),E.VH.get("debugLogging")||(window.console.debug=()=>{});let em=e=>function(t){return(0,i.jsx)(eg,{children:(0,i.jsx)(e,{...t})})},eg=e=>{let{children:t}=e;console.log("\uD83D\uDE80 GammaApp main wrapper rendered");let s=(0,u.useRouter)();(0,er.l)(),(0,ec.k)(),S(),(0,h.useEffect)(()=>{let e=(e,t)=>{let{shallow:s}=t;console.debug("[GammaApp - handleRouteChange] App is changing to ".concat(e," ").concat(s?"with":"without"," shallow routing"))};return s.events.on("routeChangeStart",e),()=>{s.events.off("routeChangeStart",e)}},[s]);let r=(0,el.aY)();return(0,i.jsx)(p.zt,{store:ed,children:(0,i.jsx)(R,{children:(0,i.jsx)(o.x,{theme:ep,resetCSS:!0,children:(0,i.jsx)(x,{children:(0,i.jsx)(n.e,{client:eu,children:(0,i.jsxs)(g.mdV,{client:eh,children:[(0,i.jsx)(eb,{}),(0,i.jsx)(f.H6,{}),(0,i.jsx)(O.GQ,{}),(0,i.jsx)(j,{}),(0,i.jsxs)(I.fS,{children:[(0,i.jsx)(B.qA,{children:(0,i.jsx)(E.dF,{children:(0,i.jsx)(Q,{children:(0,i.jsx)(g.Imj,{children:(0,i.jsx)(es,{children:(0,i.jsx)(N,{children:(0,i.jsx)(el.dv,{value:r,children:(0,i.jsx)(P.u,{children:t})})})})})})})}),(0,i.jsx)(E.MG,{})]})]})})})})})})},ey="A new medium for presenting ideas, powered by AI. Beautiful, engaging content with none of the formatting and design work.",eb=()=>{let e=m.v.APPLICATION_ENVIRONMENT;return(0,i.jsxs)(d(),{children:[(0,i.jsx)("title",{children:"Gamma"}),(0,i.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, viewport-fit=cover"}),(0,i.jsx)("link",{rel:"manifest",href:"/manifest.json"}),(0,i.jsx)("link",{rel:"shortcut icon",href:"production"===e?"/fav
1icons/favicon-transparent-96x96.png":"staging"===e?"/favicons/favicon_staging.jpg":"/favicons/favicon_local.jpg"}),(0,i.jsx)("meta",{content:ey,name:"description"},"description"),(0,i.jsx)("meta",{content:"Gamma",property:"og:title"},"og:title"),(0,i.jsx)("meta",{content:ey,property:"og:description"},"og:description"),(0,i.jsx)("meta",{content:m.v.OG_IMAGE_URL,property:"og:image"},"og:image"),(0,i.jsx)("meta",{content:"Gamma",property:"twitter:title"},"twitter:title"),(0,i.jsx)("meta",{content:ey,property:"twitter:description"},"twitter:description"),(0,i.jsx)("meta",{content:m.v.OG_IMAGE_URL,property:"twitter:image"},"twitter:image"),(0,i.jsx)("meta",{property:"og:type",content:"website"},"og:type"),(0,i.jsx)("meta",{content:"summary_large_image",name:"twitter:card"},"twitter:card"),(0,i.jsx)("link",{href:"https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900",rel:"stylesheet"}),(0,i.jsx)("link",{rel:"stylesheet",href:"https://use.typekit.net/tiw2cwq.css"}),!(0,C.l6)()&&!(0,D.wg)()&&(0,i.jsx)("script",{async:!0,src:"https://cdn.optimizely.com/js/20579410255.js"}),(0,i.jsx)("script",{src:"//cdn.iframe.ly/embed.js",async:!0,charSet:"utf-8"})]})}},60510:function(e,t,s){"use strict";s.d(t,{r:function(){return L},h:function(){return V}});var i=s(52322),n=s(38035),r=s(17993),o=s(77533),l=s(62614),a=s(81672),c=s(42946),d=s(49929),u=s(2784),h=s(90221),p=s(90439),m=s(93441),g=s(89458),y=s(90383),b=s(18733),x=s(5879),A=s(42111),_=s(78462),S=s(94199),f=s(11082),C=s(64173),v=s(31807),D=s(6912),j=s(48832),w=s(11050),E=s(36651),P=s(81640),k=s(12265),I=s(11942),T=s(88640);let N=[{Component:()=>{let e=(0,A.ye)("outageButterbar");if(!e.enabled)return null;let{header:t,text:s,buttonLink:n,buttonText:r,key:o,pathnameRegexp:l}=e;return(0,i.jsx)(V,{definition:{key:o,header:t,text:s,buttonText:r,buttonLink:n,conditions:()=>!l||null!==window.location.pathname.match(new RegExp(l))}})},key:"outage-butterbar"},{Component:()=>{let e=(0,A.ye)("openAiStatus");return"NORMAL"===e?null:(0,i.jsx)(V,{definition:{key:"ai-service-status",header:(0,i.jsx)(x.cC,{id:"1Agl06"}),text:(0,i.jsx)(x.cC,{id:"cCl6WD"}),ttl:86400,conditions:()=>(0,_._r)(window.location.pathname)}})},key:"ai-service-status-butterbar"},{Component:()=>{var e,t,s;let{user:n,currentWorkspace:r}=(0,E.SE)(),{subscription:o,product:l}=(0,P.z)(),{launchFailedPaymentFlow:a,failedPaymentFlowEnabled:c}=(0,D.ET)({subscription:o,workspace:r,autoLaunch:!1});if(!o||!l)return null;let d=(0,k.K)(),{name:u,dontChurnMessage:h}=d[l],{status:p,expirationTime:m,id:g}=o,y=(0,j.p6)(m,"MMMM do, yyyy"),b=(null==o?void 0:null===(e=o.createdByUser)||void 0===e?void 0:e.id)===(null==n?void 0:n.id),A=(0,I._8)(),_=m>Date.now();if(!("unpaid"===p||"past_due"===p)&&!_)return null;let C=A&&(b||!(null==o?void 0:o.createdByUser))?(0,i.jsx)(x.cC,{id:"velw1T",values:{expirationFormatted:y,GAMMA_PROPER_NOUN:S.N6,productName:u},components:{0:(0,i.jsx)(f.r,{href:A,isExternal:!0,textDecoration:"underline"})}}):(0,i.jsx)(x.cC,{id:"9aBOfk",values:{expirationFormatted:y,GAMMA_PROPER_NOUN:S.N6,productName:u,0:null===(t=o.createdByUser)||void 0===t?void 0:t.displayName,1:null===(s=o.createdByUser)||void 0===s?void 0:s.email},components:{0:(0,i.jsx)("b",{}),1:(0,i.jsx)("b",{})}});return(0,i.jsx)(V,{definition:{key:"payment-overdue-".concat(g),header:(0,i.jsx)(x.cC,{id:"gosJne",values:{productName:u}}),text:(0,i.jsxs)(i.Fragment,{children:[h," ",C]}),buttonText:(0,i.jsx)(x.cC,{id:"WLvqZR"}),buttonLink:c?void 0:A,buttonOnClick:c?a:void 0}})},key:"payment-overdue-butterbar"},{Component:()=>{let{subscription:e,openUpsellModal:t}=(0,P.z)();if(!e)return null;let{status:s,expirationTime:n,id:r}=e,o=new Date>(0,v.Z)(n)&&new Date<(0,C.Z)((0,v.Z)(n),{days:10});if(!o)return null;let l=()=>t({segmentEvent:w.AA.GAMMA_PRO_UPSELL_SUBSCRIPTION_EXPIRED_BUTTERBAR}),a=(0,i.jsx)(f.r,{onClick:l,isExternal:!0,textDecoration:"underline",children:(0,i.jsx)(x.cC,{id:"mj68q/"})});return(0,i.jsx)(V,{definition:{key:"subscription-expired-".concat(r),header:(0,i.jsx)(x.cC,{id:"5nhH6A"}),text:(0,i.jsxs)(i.Fragment,{children:["unpaid"===s||"past_due"===s?(0,i.jsx)(x.cC,{id:"Qdg
1XJv"}):""," ",a]}),buttonText:(0,i.jsx)(x.cC,{id:"kwkhPe"}),buttonOnClick:l}})},key:"subscription-expired-butterbar"},{Component:()=>{var e,t,s;let{user:n}=(0,E.SE)(),{subscription:r,product:o}=(0,P.z)();if(!r||!o)return null;let{status:l,expirationTime:a,id:c,cancellationRequestedTime:d}=r,u="canceled"!=l&&d&&new Date<(0,v.Z)(a)&&new Date>(0,C.Z)((0,v.Z)(a),{days:-7});if(!u)return null;let h=(null==r?void 0:null===(e=r.createdByUser)||void 0===e?void 0:e.id)===(null==n?void 0:n.id),p=(0,I._8)(),m=(0,j.p6)(a,"MMMM do, yyyy"),g=(0,k.K)(),{name:y,dontChurnMessage:b}=g[o],A=!h&&(null==r?void 0:r.createdByUser)?(0,i.jsx)(x.cC,{id:"z4DeyC",values:{expirationFormatted:m,GAMMA_PROPER_NOUN:S.N6,productName:y,0:null===(t=r.createdByUser)||void 0===t?void 0:t.displayName,1:null===(s=r.createdByUser)||void 0===s?void 0:s.email},components:{0:(0,i.jsx)("b",{}),1:(0,i.jsx)("b",{})}}):(0,i.jsx)(x.cC,{id:"qP91+f",values:{expirationFormatted:m,GAMMA_PROPER_NOUN:S.N6,productName:y},components:{0:(0,i.jsx)(f.r,{href:p,isExternal:!0,textDecoration:"underline"})}});return(0,i.jsx)(V,{definition:{key:"subscription-ending-soon-".concat(c),header:(0,i.jsx)(x.cC,{id:"THJAvC",values:{productName:y}}),text:(0,i.jsxs)(i.Fragment,{children:[b," ",A]}),buttonText:(0,i.jsx)(x.cC,{id:"3jHA5d"}),buttonLink:p}})},key:"upcoming-cancellation-butterbar"},{key:"tablet-browser-warning",header:(0,i.jsx)(x.cC,{id:"JAtlMu",values:{GAMMA_PROPER_NOUN:S.N6}}),text:(0,i.jsx)(x.cC,{id:"9JlCFS",values:{GAMMA_PROPER_NOUN:S.N6}}),conditions:()=>(0,h.dA)(),dismissKey:T.H.lastDismissedPreferredBrowserMessage},{key:"desktop-browser-warning",header:(0,i.jsx)(x.cC,{id:"3S0+Wy",values:{GAMMA_PROPER_NOUN:S.N6}}),text:(0,i.jsx)(x.cC,{id:"Tf7VpJ"}),conditions:()=>F()&&(0,h.ds)(),dismissKey:T.H.lastDismissedPreferredBrowserMessage}],F=()=>(0,h.jP)()||!(0,h.i7)()&&!(0,h.G6)()&&!(0,h.NA)(),L=e=>{let{isViewOnly:t}=e,s=(0,m.gF)();if(t||!s||(0,h.l6)()||p.cx||(0,y.wg)())return null;let r=N.map(e=>"Component"in e?(0,i.jsx)(e.Component,{},e.key):(0,i.jsx)(V,{definition:e},e.key));return(0,i.jsx)(n.k,{"data-testid":"butterbar",direction:"column",top:0,pos:"relative",zIndex:"banner",sx:{"> *:not(:first-child)":{display:"none"}},children:r})},V=e=>{let{definition:t}=e,{key:s,dismissKey:h="butterbar-dismiss-".concat(s),header:p,text:m,buttonText:y,buttonLink:x,buttonOnClick:A=x?()=>window.open(x,"_blank"):void 0,conditions:_,ttl:S}=t,[f,C]=(0,g.I)(h,!1);return((0,u.useEffect)(()=>{if(!(S&&f))return;let e=new Date().getTime(),t=new Date(f).getTime(),s=e-t>1e3*S;s&&b.W.removeItem(h)},[h,f,S]),_&&!_()||f)?null:(0,i.jsxs)(n.k,{direction:"row",bg:"indigo.500",color:"white",py:3,px:4,align:"center",fontSize:"sm",children:[(0,i.jsxs)(r.g,{flex:"1",align:"start",spacing:0,children:[(0,i.jsx)(o.x,{fontWeight:"bold",children:p}),(0,i.jsx)(o.x,{opacity:"0.7",fontSize:"xs",children:m})]}),y&&A&&(0,i.jsx)(l.z,{variant:"plain",size:"sm",mr:4,rightIcon:x?(0,i.jsx)(d.G,{icon:c.wlW}):void 0,onClick:A,children:y}),(0,i.jsx)(a.P,{onClick:()=>{C(String(new Date))}})]})}},2013:function(e,t,s){"use strict";s.d(t,{q:function(){return f}});var i=s(52322),n=s(38035),r=s(77533),o=s(49259),l=s(87436),a=s(95897),c=s(28535),d=s(89511),u=s(11121),h=s(44438),p=s(42822),m=s(62614),g=s(75009),y=s(94523),b=s(5879),x=s(3543),A=s(92981);let _=(0,i.jsx)(b.cC,{id:"HiX9QN"}),S={bgImage:"radial-gradient(1px 1px at 20px 30px, #eee, rgba(0,0,0,0)),\n radial-gradient(1px 1px at 40px 70px, #fff, rgba(0,0,0,0)),\n radial-gradient(1px 1px at 50px 160px, #ddd, rgba(0,0,0,0)),\n radial-gradient(1px 1px at 90px 40px, #fff, rgba(0,0,0,0)),\n radial-gradient(1px 1px at 130px 80px, #fff, rgba(0,0,0,0)),\n radial-gradient(1px 1px at 160px 120px, #ddd, rgba(0,0,0,0))",bgRepeat:"repeat",bgSize:"200px 200px",transform:"translate(-50%,-50%)",borderRadius:{base:0,lg:"100px"},pos:"relative",maxW:"8xl",maxH:"5xl",minH:{base:0,lg:"5xl"}},f=e=>{let{errMessage:t=_,showDisclosure:s=!1,opacity:f=1,starOverlay:C=!0,backgroundColor:v=y.qZ.colors.trueblue[900],...D}=e,j=C?S:{};return(0,i.jsx)(n.k,{"data-error-component":!0,w:"100vw",h:"100vh",overflow:"hidden",zIndex:99999,backgroundColor:(0,x.tT)(v,f),...D,children:(0,i.jsx)(n.k,{...j,justifyContent:"center",alignItems:"center",flex:1,p:[4,16],left
1:"50%",top:"50%",children:(0,i.jsxs)(A.qX,{lede:"",title:(0,i.jsx)(b.cC,{id:"HbR60U"}),stackProps:{shadow:"lg-dark",position:"relative"},children:[(0,i.jsx)(r.x,{children:(0,i.jsx)(b.cC,{id:"1gm+lP"})}),s&&(0,i.jsx)(o.U,{allowToggle:!0,pt:4,children:(0,i.jsxs)(l.Q,{children:[(0,i.jsxs)(a.K,{px:0,_hover:{bgColor:"none"},borderStyle:"none",children:[(0,i.jsx)(c.xu,{flex:"1",textAlign:"left",children:(0,i.jsx)(b.cC,{id:"qug3k/"})}),(0,i.jsx)(d.X,{})]}),(0,i.jsx)(u.H,{pb:4,children:(0,i.jsx)(h.E,{colorScheme:"red",children:t})})]})}),(0,i.jsx)(p.M,{children:(0,i.jsx)(m.z,{variant:"solid",size:"lg",m:6,onClick:()=>{window.location.reload()},children:(0,i.jsx)(b.cC,{id:"C6f2hU"})})}),(0,i.jsx)(g.E,{pos:"absolute",w:36,bottom:"calc(-100% + 120px)",right:-12,src:"/_next/static/media/Sal-Asteroid-Parachute.ad317576.png",pointerEvents:"none",opacity:{base:0,md:1}})]})})})}},4661:function(e,t,s){"use strict";s.d(t,{o:function(){return l}});var i=s(52322),n=s(38035),r=s(60510);let o=e=>{let{children:t,withFooter:s,isViewOnly:o}=e;return(0,i.jsxs)(n.k,{direction:"column",width:"100%",height:"100%",minHeight:"var(--100vh)",bgColor:"gray.100",color:"gray.800",children:[(0,i.jsx)(r.r,{isViewOnly:o}),(0,i.jsx)(n.k,{zIndex:"1",id:"main",flex:"1",justifyContent:"center",alignItems:"center",direction:"column",position:"relative",children:t}),s&&(0,i.jsxs)(n.k,{fontSize:"12px",color:"gray.400",pb:8,id:"footer",justifyContent:"center",children:["\xa9 ",new Date().getFullYear()," Gamma Tech, Inc."]})]})};function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withFooter:!1,isViewOnly:!1},{withFooter:s,isViewOnly:n}=t,r=t=>(0,i.jsx)(o,{withFooter:s,isViewOnly:n,children:(0,i.jsx)(e,{...t})});return"getInitialProps"in e&&(r.getInitialProps=e.getInitialProps),r}},86236:function(e,t,s){"use strict";s.d(t,{oO:function(){return i.o},GE:function(){return S}});var i=s(4661),n=s(52322),r=s(38035),o=s(15706),l=s(5632),a=s(73534),c=s.n(a),d=s(2784),u=s(14274),h=s(55001),p=s(18606),m=s(7454),g=s(17283),y=s(17821),b=s(90221);let x=u.v.IS_CLIENT_SIDE&&document.cookie.includes("gammaGADebug=true"),A=()=>"production"===u.v.APPLICATION_ENVIRONMENT&&!(0,b.l6)()||x,_=e=>{let{children:t,headerMode:s}=e,i=(0,l.useRouter)();return(0,d.useEffect)(()=>{if(!A())return;let e=e=>{(0,g.o8)(e)};return i.events.on("routeChangeComplete",e),i.events.on("hashChangeComplete",e),()=>{i.events.off("routeChangeComplete",e),i.events.off("hashChangeComplete",e)}},[i.events]),(0,n.jsxs)(r.k,{direction:"column",width:"100%",height:"100%",minHeight:"var(--100vh)",bg:"#EDE9E8",color:"gray.800",overflowX:"hidden",children:[A()&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c(),{strategy:"afterInteractive",src:"https://www.googletagmanager.com/gtag/js?id=".concat(g.vt)}),(0,n.jsx)(c(),{id:"gtag-init",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:"\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', '".concat(g.vt,"', {\n page_path: window.location.pathname,\n });\n ")}})]}),(0,n.jsx)(p.P,{headerMode:s}),(0,n.jsx)(r.k,{zIndex:"1",id:"main",flex:"1",justifyContent:"flex-start",alignItems:"center",direction:"column",position:"relative",children:t}),(0,n.jsx)(h.Y,{})]})};function S(e,t){let s=s=>{let{headerMode:i}=t||{};return(0,n.jsxs)(o.f6,{theme:m.i,children:[(0,n.jsx)(y.ZP,{}),(0,n.jsx)(_,{headerMode:i,children:(0,n.jsx)(e,{...s})})]})};return"getInitialProps"in e&&(s.getInitialProps=e.getInitialProps),s}},79254:function(e,t,s){"use strict";s.d(t,{$C:function(){return h},H6:function(){return u},Uj:function(){return p}});var i=s(52322),n=s(5632),r=s(73534),o=s.n(r),l=s(14274),a=s(93441),c=s(34385);let d=["/signin","/signup","/invitations/workspaces/[workspaceId]"],u=()=>{let e=(0,n.useRouter)().pathname;return!(0,a.gF)()||d.includes(e)?null:(0,i.jsx)("style",{children:".grecaptcha-badge { visibility: hidden; }"})},h=()=>(0,i.jsx)(o(),{src:"https://www.google.com/recaptcha/enterprise.js?render=".concat(l.v.RECAPTCHA_SCORING_KEY),async:!0,defer:!0}),p=async e=>(await (0,c.X)(50,100)(()=>!!window.grecaptcha).catch(()=>{throw Error("Timed out waiting for grecaptcha")}),new Promise((t,s)=>{grecaptcha.enterprise.ready(async()=>{try{let s=await grecaptcha.enterprise.execute(l.v.RECAPTCHA_SCORING_KEY,{action:e});t(s)}catch(e){console.log(e),s(e)}})}))},49165:function(e,t,s){"use strict";s.d(t,{R:function(){return g},c:function(){return y}});var i=s(52322),n=s(70065),r=s(5879),o=s(5632),l=s(2784),a=s(93202),c=s(42111),d=s(84405),u=s(56356),h=s(41425),p=s(23147),m=s(36651);let g={example_deck_clone_toast:a.L17.DuplicateInspiration,import_google_doc:a.L17.ImportGoogleDoc,import_google_slides:a.L17.ImportGoogleSlides,import_docx:a.L17.ImportDocx,import_pptx:a.L17.ImportPptx,blank:a.L17.Blank,template_browser:a.L17.DuplicateTemplate,get_started_modal:a.L17.Blank,template_modal_griditem:a.L17.DuplicateTemplate,template_dashboard_griditem:a.L17.DuplicateTemplate,template_modal_preview:a.L17.DuplicateTemplate,template_modal_preview_create_theme:a.L17.DuplicateTemplate,"slash-new":a.L17.SlashNew,editor_toolbar_doc_menu_duplicate:a.L17.DuplicateDoc,dashboard_docs_view_duplicate:a.L17.DuplicateDoc,ai_generated:a.L17.AiGenerated,ai_generated_advanced:a.L17.AiGenerated,sites_add_page:a.L17.SitesAddPage,sites_copy_to_site:a.L17.SitesCopyToSite,sites_duplicate_page:a.L17.SitesDuplicatePage},y=()=>{let{user:e,currentWorkspace:t}=(0,m.SE)(),s=(0,c.ye)("cardLayoutsEnabled"),[y,{data:b,loading:x}]=(0,a.CsQ)(),{push:A,replace:_}=(0,o.useRouter)(),S=(0,n.p)(),f=(0,l.useCallback)(n=>{var o;let l=null==e?void 0:null===(o=e.settings)||void 0===o?void 0:o.needsEditorOnboarding,a=n.source,c=null==n?void 0:n.channelId,m=(null==n?void 0:n.historyFn)==="replace"?_:A,b=l?"quickstart":"empty";if(!(null==t?void 0:t.id)){console.error("[createDocAndNavigate] No currentWorkspace found");return}let x={cardLayoutsEnabled:s},f=(null==n?void 0:n.document)?n.document:"empty"===b?(0,u.bx)(e,{docFlags:x}):(0,u.VK)(e,{docFlags:x}),C=(0,p.qI)(f);return console.debug("[createDocAndNavigate] Creating doc",{document:f,encodedDocument:C}),y({variables:{workspaceId:null==t?void 0:t.id,title:(null==n?void 0:n.title)||"",source:g[n.source],initialContent:{ydoc:C,schemaVersion:h.bI,editors:[null==e?void 0:e.id]},...c?{channels:[{channelId:c}]}:{}}
1}).then(async e=>{let{data:t}=e;(0,d.Q)({doc_id:null==t?void 0:t.createDoc.id,source:a,channel:c||null}),console.debug("[createDocAndNavigate] Doc created. Navigating to Editor",null==t?void 0:t.createDoc.id),m("/docs/".concat(null==t?void 0:t.createDoc.id).concat(l?"?tour=true":""))}).catch(e=>{console.error("[createDocAndNavigate]",e),S({title:(0,i.jsx)(r.cC,{id:"0jT1fA"}),description:e.message,position:"top",status:"error",isClosable:!0,duration:null})})},[s,y,null==t?void 0:t.id,A,_,S,e]);return[f,{data:b,loading:x}]}},18469:function(e,t,s){"use strict";s.d(t,{p:function(){return m}});var i=s(43019),n=s(9850),r=s.n(n),o=s(54073),l=s.n(o),a=s(30764),c=s(2784),d=s(42111),u=s(91994),h=s(91073),p=s(66625);let m=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,s=(0,u.TL)(),n=(0,d.ye)("cardTextComputedEnabled");(0,c.useEffect)(()=>{if(!t||!n)return;let e=l()(()=>{let e={};t.state.doc.descendants((s,n)=>{if((0,h.KH)(s)&&s.attrs.id){let r=s.toJSON(),o=(0,i.getCardTitle)(r),l=t.state.doc.resolve(n),a=0===l.parentOffset&&1===l.depth;e[s.attrs.id]={title:o,text:g(t.schema,r,o),isFirstCard:a}}return!0}),s((0,p.uD)({localCardTextMap:e}))},1e3,{leading:!0,trailing:!0,maxWait:1e3});return e(),t.on("update",e),()=>{t.off("update",e)}},[t,s,n]),(0,c.useEffect)(()=>{e&&s((0,p.eJ)({cards:e}))},[s,e]),(0,c.useEffect)(()=>()=>{s((0,p.mc)())},[])},g=(e,t,s)=>{try{var n;let o=r()(t),l=(0,i.removeNodesOfType)(o,["cardNotes"]);if(!l)return"";l.content=null===(n=l.content)||void 0===n?void 0:n.map(e=>{if("card"!==e.type)return e;let t=(0,i.getCardTitle)(e);return{type:"paragraph",content:t?[{type:"text",text:t}]:[]}});let c=a.NB.fromJSON(e,l),d=c.textBetween(0,c.content.size,"\n\n",e=>{let t=e.type.name;return i.nodeSerializers[t]&&i.nodeSerializers[t](e)||" "});if(s)return(0,i.removeTitle)(d,s);return d}catch(e){return""}}},6912:function(e,t,s){"use strict";s.d(t,{S1:function(){return _},B_:function(){return C},ET:function(){return S}});var i=s(2784),n=s(14274),r=s(88232),o=s(42111),l=s(49152),a=s(44663),c=s(1163),d=s(11050),u=s(90221),h=s(23284),p=s(90383),m=s(87254),g=s(82108),y=s.n(g),b=s(94199);let x=(e,t)=>{let s=y()(t);return{[e]:{next:m.ag._({id:"hXzOVo"}),back:m.ag._({id:"iH8pgl"}),nevermind:m.ag._({id:"CKyk7Q"}),goToAccount:m.ag._({id:"C9yTHG",values:{GAMMA_PROPER_NOUN:b.N6}}),getHelp:m.ag._({id:"pWsyuL"}),declineOffer:m.ag._({id:"aIFikE"}),confirmAndCancel:m.ag._({id:"G9nPRC"}),pauseSubscription:m.ag._({id:"2RgEmU"}),cancelSubscription:m.ag._({id:"dEgA5A"}),discountSubscription:m.ag._({id:"qG4Wa/"}),claimOffer:m.ag._({id:"/Gl/RK"}),discountOff:m.ag._({id:"Bdtwnw"}),discountFor:m.ag._({id:"sQv06Y"}),discountForever:m.ag._({id:"FsOOWf"}),discountOneTime:m.ag._({id:"HpXCa4"}),day:m.ag._({id:"5YWExy"}),month:m.ag._({id:"obrMay"}),year:m.ag._({id:"/Tw548"}),error:m.ag._({id:"wTrpxV"}),genericErrorDescription:m.ag._({id:"PUjJ3A"}),cancelNow:m.ag._({id:"EiakwV"}),applyingDiscount:m.ag._({id:"8kSYjw"}),applyingCancel:m.ag._({id:"VpuvNv"}),applyingResume:m.ag._({id:"eIoGiX"}),applyingPause:m.ag._({id:"UD7gOq"}),discountApplied:m.ag._({id:"jdYyiz"}),discountAppliedMessage:m.ag._({id:"DhHX6G"}),pauseApplied:m.ag._({id:"eeITvj"}),pauseAppliedMessage:m.ag._({id:"nm0VaE"}),pauseAppliedResumeMessage:m.ag._({id:"qOe0SS"}),pauseScheduledMessage:m.ag._({id:"mqRc6d"}),until:m.ag._({id:"C51N+0"}),cancelApplied:m.ag._({id:"Wcg6zu"}),cancelAppliedMessage:m.ag._({id:"8vN97Y"}),cancelAppliedDateMessage:m.ag._({id:"BS/SGu"}),howLongToPausePrompt:m.ag._({id:"HLyJ9n"}),whatCouldWeHaveDone:m.ag._({id:"fcbm8H"}),weReadEveryAnswer:m.ag._({id:"nkuKRd"}),applyingCustomerAction:m.ag._({id:"PXwF+s"}),loading:m.ag._({id:"Z3FXyt"}),pauseWallCardPunch:m.ag._({id:"iL2TQ6"}),pauseWallCta:m.ag._({id:"TvXj47"}),pauseWallCardHeading:m.ag._({id:"kHm8Fg"}),scheduledToReactivate:m.ag._({id:"aH7vi8"}),resumeApplied:m.ag._({id:"diOgYK"}),resumeAppliedMessage:m.ag._({id:"YqFvUY"}),resumeNextChargeMessage:m.ag._({id:"VDqPUf"}),resumeNextChargeMessageWithoutAmount:m.ag._({id:"RrvVAn"}
1),resumeAccountDataInfo:m.ag._({id:"dJCJXA"}),subscriptionPauseNotice:m.ag._({id:"fpxliT"}),failedPaymentNotice:m.ag._({id:"Vxg5vO"}),chargedMultipleTimeNotice:m.ag._({id:"lAlv46"}),failedPaymentCardPunch:m.ag._({id:"KEZrHg",values:{GAMMA_PROPER_NOUN:b.N6,productName:s}}),resumeHey:m.ag._({id:"hdOctW"}),invoicePaidTitle:m.ag._({id:"aJGfDL"}),logout:m.ag._({id:"W+3RJN"}),note:m.ag._({id:"ycCSuD"}),discount:m.ag._({id:"HmpVeZ"}),discountNoticeHeadline:m.ag._({id:"5P1dmt"}),discountNoticePrepend:m.ag._({id:"yjadEY"}),discountOverride:m.ag._({id:"JfBDWL"}),discountValidUntil:m.ag._({id:"uXxNua"}),updateBilling:m.ag._({id:"tQilrI"}),extendTrialCTA:m.ag._({id:"m3l7VI"}),extendTrialPunch:m.ag._({id:"s5pINo"}),extendTrialOfferTitle:m.ag._({id:"SyzXYh"}),trialExtended:m.ag._({id:"fezME2"}),trialExtendedMessage:m.ag._({id:"QE4mUs"}),applyingTrialExtension:m.ag._({id:"vI2q9R"}),switchPlanCTA:m.ag._({id:"P2mx2L"}),changePlanHighlights:m.ag._({id:"qbgW+C"}),changePlanOfferPunch:m.ag._({id:"MRkiFP"}),planChanged:m.ag._({id:"ByFtyh"}),planChangedMessage:m.ag._({id:"Pf5z1G"}),applyingPlanChange:m.ag._({id:"9vKKLI"}),surveyStepTag:m.ag._({id:"cSUBI1"}),freeFormStepTag:m.ag._({id:"cSUBI1"}),finalConfirmation:m.ag._({id:"1/oP/N"}),offerDiscountTag:m.ag._({id:"LTgtxG"}),offerChangePlanTag:m.ag._({id:"ENMJv2"}),offerExtendTrialTag:m.ag._({id:"MWKntz"}),offerRedirectTag:m.ag._({id:"cvpAvL"}),offerContactTag:m.ag._({id:"cvpAvL"}),offerPauseTag:m.ag._({id:"+T6DGl"}),completeTag:m.ag._({id:"K5c1e7"}),errorTag:m.ag._({id:"EuvbIW"}),offerAccepted:m.ag._({id:"ZU0opP"})}}},A="\n!function(){ \n if (!window.churnkey || !window.churnkey.created) {\n window.churnkey = { created: true };\n const a = document.createElement('script');\n a.src = 'https://assets.churnkey.co/js/app.js?appId=".concat(n.v.CHURNKEY_APP_ID,"';\n a.async = true;\n const b = document.getElementsByTagName('script')[0];\n b.parentNode.insertBefore(a, b);\n }\n }();\n"),_=()=>{let e=!(0,u.l6)()&&!(0,p.wg)();return(0,h.G)(e,A),null},S=e=>{let{subscription:t,workspace:s,autoLaunch:d=!0}=e,u=(0,o.ye)("churnkeyFailedPaymentWallEnabled"),h=(0,l.l)(),p=(0,c.K9)(s),m=(0,a.G)(),g=(0,i.useCallback)(async()=>{if(t&&p&&u)return(0,r.d6)("churnkey").then(e=>{var s,i;if(!e||!t.billingSubscriptionId||!(null===(s=t.createdByUser)||void 0===s?void 0:s.billingCustomerId)){console.error("[Churnkey] launchFailedPayment Missing hmac or subscription data",{hmac:e,subscription:t});return}console.debug("[Churnkey] launchFailedPayment - launching churnkey with:",{hmac:e,appId:n.v.CHURNKEY_APP_ID,subscriptionId:t.billingSubscriptionId,customerId:null===(i=t.createdByUser)||void 0===i?void 0:i.billingCustomerId}),f({authHash:e,subscription:t,localeKey:h,productKey:p,launchIntercomUI:m})})},[t,p,u,h,m]);return(0,i.useEffect)(()=>{d&&g()},[g,d]),{launchFailedPaymentFlow:g,failedPaymentFlowEnabled:u}},f=async e=>{var t,s;let{authHash:i,subscription:r,localeKey:o,productKey:l,launchIntercomUI:a}=e;null===(s=window.churnkey)||void 0===s||s.check("failed-payment",{subscriptionId:r.billingSubscriptionId,customerId:null===(t=r.createdByUser)||void 0===t?void 0:t.billingCustomerId,authHash:i,customerAttributes:{language:o},i18n:{lang:o,messages:x(o,l)},appId:n.v.CHURNKEY_APP_ID,mode:n.v.CHURNKEY_MODE,provider:"stripe",softWall:!0,forceCheck:!1,gracePeriodDays:3,ignoreInvoicesWithoutAttempt:!1,handleSupportRequest(){var e;a(),d.co.track(d.AA.CHURNKEY_HANDLE_SUPPORT_CLICK,{source:"failed-payment-wall",subscriptionId:r.billingSubscriptionId,customerId:null===(e=r.createdByUser)||void 0===e?void 0:e.billingCustomerId})},async handleCancel(e){var t,s;return d.co.track(d.AA.CANCEL_SUBSCRIPTION_CLICK,{source:"failed-payment-wall",subscriptionId:r.billingSubscriptionId,customerId:null===(t=r.createdByUser)||void 0===t?void 0:t.billingCustomerId}),console.debug("[launchChurnkeyFailedPayment.handleCancel]",{subscriptionId:r.billingSubscriptionId,customerId:null===(s=r.createdByUser)||void 0===s?void 0:s.billingCustomerId,customer:e}),v({authHash:i,subscription:r,localeKey:o,productKey:l,launchIntercomUI:a,customerAttributes:{viaFailedPayment:!0}}).catch(e=>f({authHash:i,subscription:r,localeKey:o,productKey:l,launchIntercomUI:a}))},onFailedPaymentWallActivated(){var e;d.co.track(d.AA.CHURNKEY_FAILED_PAYMENT_WALL_SHOWN,{subscriptionId:r.billingSubscriptionId,customerId:null===(e=r.createdByUser)||void 0===e?void 0:e.b
1illingCustomerId})},onUpdatePaymentInformation(){var e;d.co.track(d.AA.CHURNKEY_PAYMENT_METHOD_UPDATED,{source:"failed-payment-wall",subscriptionId:r.billingSubscriptionId,customerId:null===(e=r.createdByUser)||void 0===e?void 0:e.billingCustomerId})},onFailedPaymentWallClose(){var e;d.co.track(d.AA.CHURNKEY_FAILED_PAYMENT_WALL_CLOSED,{subscriptionId:r.billingSubscriptionId,customerId:null===(e=r.createdByUser)||void 0===e?void 0:e.billingCustomerId})},onCancel(){var e;d.co.track(d.AA.CHURNKEY_CANCEL_SUBSCRIPTION_COMPLETE,{source:"failed-payment-wall",subscriptionId:r.billingSubscriptionId,customerId:null===(e=r.createdByUser)||void 0===e?void 0:e.billingCustomerId})},onError(e,t){console.warn('Churnkey check("failed-payment", ...) error',e,t)}})},C=(e,t)=>{let s=(0,o.ye)("churnkeyCancelFlowEnabled"),n=(0,l.l)(),d=(0,c.K9)(t),u=(0,a.G)(),h=(0,i.useCallback)(()=>{if(e&&d&&s)return(0,r.d6)("churnkey").then(t=>{var s;if(!t||!e.billingSubscriptionId||!(null===(s=e.createdByUser)||void 0===s?void 0:s.billingCustomerId)){console.debug("[Churnkey] handleCancel - Missing hmac or subscription data",{hmac:t,subscription:e});return}return v({authHash:t,subscription:e,localeKey:n,productKey:d,launchIntercomUI:u})})},[s,n,d,e,u]);return{launchCancelFlow:h,cancelFlowEnabled:s}},v=async e=>{let{authHash:t,subscription:s,localeKey:i,productKey:r,customerAttributes:o={},launchIntercomUI:l}=e;return new Promise((e,a)=>{var u,h,p;null===(p=window.churnkey)||void 0===p||p.init("show",{subscriptionId:s.billingSubscriptionId,customerId:null===(u=s.createdByUser)||void 0===u?void 0:u.billingCustomerId,authHash:t,customerAttributes:{language:i,frequency:null===(h=(0,c.OJ)(s))||void 0===h?void 0:h.frequencyUnit,productKey:r,...o},i18n:{lang:i,messages:x(i,r)},appId:n.v.CHURNKEY_APP_ID,mode:n.v.CHURNKEY_MODE,provider:"stripe",record:!0,handleSupportRequest(){var e;l(),d.co.track(d.AA.CHURNKEY_HANDLE_SUPPORT_CLICK,{source:"cancel-flow",subscriptionId:s.billingSubscriptionId,customerId:null===(e=s.createdByUser)||void 0===e?void 0:e.billingCustomerId})},onCancel(e,t,i){var n;d.co.track(d.AA.CHURNKEY_CANCEL_SUBSCRIPTION_COMPLETE,{source:"cancel-flow",subscriptionId:s.billingSubscriptionId,customerId:null===(n=s.createdByUser)||void 0===n?void 0:n.billingCustomerId,surveyResponse:t,freeformFeedback:i}),console.debug("[launchChurnkeyCancelFlow.onCancel]",{surveyResponse:t,freeformFeedback:i})},onGoToAccount(t){console.debug("[launchChurnkeyCancelFlow.onGoToAccount]",{sessionResults:t}),e({sessionResults:t})},onClose(t){if(console.debug("[launchChurnkeyCancelFlow.onClose]",{sessionResults:t}),!t||t.aborted){a("Churnkey cancel flow aborted");return}e({sessionResults:t})},onError(e){console.warn("[launchChurnkeyCancelFlow.onError]",{message:e}),a({message:e})}})})}},31702:function(e,t,s){"use strict";s.d(t,{Im:function(){return eN},nL:function(){return tQ},UB:function(){return tX},jn:function(){return tD},tk:function(){return tv}});var i,n,r,o,l,a,c,d,u,h,p,m,g,y,b,x,A,_,S,f,C,v,D,j,w,E,P,k,I,T,N,F,L,V,U,R,O,z,M,G,H,B,W,K,q,Y,X,Z,Q,J,$,ee,et,es,ei,en,er,eo,el,ea,ec,ed,eu,eh,ep,em,eg,ey,eb,ex,eA,e_,eS,ef,eC,ev,eD=s(52322),ej=s(77533),ew=s(38035),eE=s(43297),eP=s(74409),ek=s(20204),eI=s(82562);let eT={renderNode:{[eI.BLOCKS.PARAGRAPH]:function(e,t){return(0,eD.jsx)(ej.x,{color:"gray.600",children:t})}}},eN=e=>{let{category:t}=e,s=t.description?(0,ek.h)(t.description,eT):null;return(0,eD.jsx)(ew.k,{direction:"row",alignItems:"flex-start",justify:"space-between",children:(0,eD.jsxs)(eE.K,{mb:6,fontSize:"md",children:[(0,eD.jsx)(eP.X,{fontSize:"2xl",mb:-1,children:t.title}),s&&s]})})};var eF=s(54326),eL=s(2338),eV=s(97217),eU=s(75009),eR=s(50250),eO=s(62614),ez=s(28535),eM=s(67109),eG=s(69251),eH=s(30523),eB=s(42946),eW=s(49929),eK=s(5879),eq=s(49165),eY=s(29094),eX=s(55478),eZ=s(82729),eQ=s(2784),eJ=s(16426),e$=s(12136),e0=s(90221),e1=s(33579),e2=s(92850),e5=s(26468),e4=s(22226),e3=s(73235),e8=s(57981),e9=s(40794);function e6(){let e=(0,e3._)(["\n fragment InspirationCategoryFieldsFragment on InspirationCategory {\n title\n slug\n sys {\n id\n }\n description {\n json\n }\n}\n "]);return e6=function(){return e},e}function e7(){let e=(0,e3._)(["\n fragment InspirationEntryFieldsFragment on InspirationEntry {\n title\n slug\n description {\n json\n }\n sys {\n id\n firstPublishedAt\n }\n deck {\n title\n docId\n previewCardId\n previewImage {\n url\n }\n author {\n name\n image {\n url\n }\n }\n }\n}\n "]);return e7=function(){return e},e}function te(){let e=(0,e3._)(["\n fragment TemplateCategoryFieldsFragment on TemplateCategory {\n title\n slug\n sys {\n id\n }\n description {\n json\n }\n}\n "]);return te=function(){return e},e}function tt(){let e=(0,e3._)(["\n fragment TemplateEntryFieldsFragment on TemplateEntry {\n title\n slug\n sys {\n id\n firstPublishedAt\n }\n deck {\n title\n docId\n previewCardId\n previewImage {\n url\n }\n author {\n name\n image {\n url\n }\n }\n }\n}\n "]);return tt=function(){return e},e}function ts(){let e=(0,e3._)(["\n fragment TemplateCategoryFieldsWithEntriesFragment on TemplateCategory {\n ...TemplateCategoryFieldsFragment\n templateEntriesCollection(limit: 7) {\n items {\n ...TemplateEntryFieldsFragment\n }\n }\n}\n ","\n",""]);return ts=function(){return e},e}function ti(){let e=(0,e3._)(["\n query GetInspirationCategoryCollection($where: InspirationCategoryFilter, $locale: String) {\n inspirationCategoryCollection(\n where: $where\n locale: $locale\n limit: 10\n order: priority_DESC\n ) {\n items {\n ...Ins
1pirationCategoryFieldsFragment\n inspirationEntriesCollection(limit: 20) {\n items {\n ...InspirationEntryFieldsFragment\n }\n }\n }\n }\n}\n ","\n",""]);return ti=function(){return e},e}function tn(){let e=(0,e3._)(["\n query GetTemplateCategoryCollection($where: TemplateCategoryFilter, $locale: String) {\n templateCategoryCollection(\n where: $where\n locale: $locale\n limit: 20\n order: priority_DESC\n ) {\n items {\n ...TemplateCategoryFieldsFragment\n templateEntriesCollection(limit: 100) {\n items {\n ...TemplateEntryFieldsFragment\n }\n }\n }\n }\n}\n ","\n",""]);return tn=function(){return e},e}function tr(){let e=(0,e3._)(["\n query GetTemplateEntry($id: String!) {\n templateEntry(id: $id) {\n ...TemplateEntryFieldsFragment\n description {\n json\n }\n linkedFrom {\n templateCategoryCollection {\n items {\n ...TemplateCategoryFieldsWithEntriesFragment\n }\n }\n }\n }\n}\n ","\n",""]);return tr=function(){return e},e}function to(){let e=(0,e3._)(["\n query GetAllTemplateEntries($where: TemplateEntryFilter) {\n templateEntryCollection(where: $where) {\n items {\n ...TemplateEntryFieldsFragment\n description {\n json\n }\n }\n }\n}\n ",""]);return to=function(){return e},e}function tl(){let e=(0,e3._)(["\n query GetFeaturedTemplateEntries($id: String!) {\n featuredTemplates(id: $id) {\n templateEntriesCollection {\n items {\n ...TemplateEntryFieldsFragment\n description {\n json\n }\n }\n }\n }\n}\n ",""]);return tl=function(){return e},e}function ta(){let e=(0,e3._)(["\n query GetTours($where: TourFilter) {\n tourCollection(where: $where, limit: 1) {\n items {\n id\n title\n description\n stepsCollection {\n items {\n body {\n json\n }\n headline\n sys {\n id\n }\n videoUrl\n posterUrl\n staticImageUrl\n }\n total\n }\n }\n }\n}\n "]);return ta=function(){return e},e}let tc={};(i=M||(M={})).UrlAsc="url_ASC",i.UrlDesc="url_DESC",i.SizeAsc="size_ASC",i.SizeDesc="size_DESC",i.ContentTypeAsc="contentType_ASC",i.ContentTypeDesc="contentType_DESC",i.FileNameAsc="fileName_ASC",i.FileNameDesc="fileName_DESC",i.WidthAsc="width_ASC",i.WidthDesc="width_DESC",i.HeightAsc="height_ASC",i.HeightDesc="height_DESC",i.SysIdAsc="sys_id_ASC",i.SysIdDesc="sys_id_DESC",i.SysPublishedAtAsc="sys_publishedAt_ASC",i.SysPublishedAtDesc="sys_publishedAt_DESC",i.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",i.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",i.SysPublishedVersionAsc="sys_publishedVersion_ASC",i.SysPublishedVersionDesc="sys_publishedVersion_DESC",(n=G||(G={})).TitleAsc="title_ASC",n.TitleDesc="title_DESC",n.SlugAsc="slug_ASC",n.SlugDesc="slug_DESC",n.SysIdAsc="sys_id_ASC",n.SysIdDesc="sys_id_DESC",n.SysPublishedAtAsc="sys_publishedAt_ASC",n.SysPublishedAtDesc="sys_publishedAt_DESC",n.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",n.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",n.SysPublishedVersionAsc="sys_publishedVersion_ASC",n.SysPublishedVersionDesc="sys_publishedVersion_DESC",(r=H||(H={})).TitleAsc="title_ASC",r.TitleDesc="title_DESC",r.InternalNameAsc="internalName_ASC",r.InternalNameDesc="internalName_DESC",r.SlugAsc="slug_ASC",r.SlugDesc="slug_DESC",r.PriorityAsc="priority_ASC",r.PriorityDesc="priority_DESC",r.SysIdAsc="sys_id_ASC",r.SysIdDesc="sys_id_DESC",r.SysPublishedAtAsc="sys_publishedAt_ASC",r.SysPublishedAtDesc="sys_publishedAt_DESC",r.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",r.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",r.SysPublishedVersionAsc="sys_publishedVersion_ASC",r.SysPublishedVersionDesc="sys_publishedVersion_DESC",(o=B||(B={})).TitleAsc="title_ASC",o.TitleDesc="title_DESC",o.InternalNameAsc="internalName_ASC",o.InternalNameDesc="internalName_DESC",o.SlugAsc="slug_ASC",o.SlugDesc="slug_DESC",o.PriorityAsc="priority_ASC",o.PriorityDesc="priority_DESC",o.SysIdAsc="sys_id_ASC",o.SysIdDesc="sys_id_DESC",o.SysPublishedAtAsc="sys_publishedAt_ASC",o.SysPublishedAtDesc="sys_publishedAt_DESC",o.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",o.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",o.SysPublishedVersionAsc="sys_publishedVersion_ASC",o.SysPublishedVersionDesc="sys_publishedVersion_DESC",(l=W||(W={})).TitleAsc="title_ASC",l.TitleDesc="title_DESC",l.SlugAsc="slug_ASC",l.SlugDesc="slug_DESC",l.SysIdAsc="sys_id_ASC",l.SysIdDesc="sys_id_DESC",l.SysPublishedAtAsc="sys_publishedAt_ASC",l.SysPublishedAtDesc="sys_publishedAt_DESC",l.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",l.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",l.SysPublishedVersionAsc="sys_publishedVersion_ASC",l.SysPublishedVersionDesc="sys_publishedVersion_DESC",(a=K||(K={})).TitleAsc="title_ASC",a.TitleDesc="title_DESC",a.DocIdAsc="docId_ASC",a.DocIdDesc="docId_DESC",a.PreviewCardIdAsc="previewCardId_ASC",a.PreviewCardIdDesc="previewCardId_DESC",a.StagingDocIdAsc="stagingDocId_ASC",a.StagingDocIdDesc="stagingDocId_DESC",a.IsNewAsc="isNew_ASC",a.IsNewDesc="isNew_DESC",a.AuthorDisplayNameAsc="authorDisplayName_ASC",a.AuthorDisplayNameDesc="authorDisplayName_DESC",a.SlugAsc="slug_ASC",a.SlugDesc="slug_DESC",a.SysIdAsc="sys_id_ASC",a.SysIdDesc="sys_id_DESC",a.SysPublishedAtAsc="sys_publishedAt_ASC",a.SysPublishedAtDesc="sys_publishedAt_DESC",a.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",a.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",a.SysPublishedVersionAsc="sys_publishedVersion_ASC",a.SysPublishedVersionDesc="sys_publishedVersion_DESC",(c=q||(q={})).TitleAsc="title_ASC",c.TitleDesc="title_DESC",c.SlugAsc="slug_ASC",c.SlugDesc="slug_DESC",c.PriorityAsc="priority_ASC",c.PriorityDesc="priority_DESC",c.SysIdAsc="sys_id_ASC",c.SysIdDesc="sys_id_DESC",c.SysPublishedAtAsc="sys_publishedAt_ASC",c.SysPublishedAtDesc="sys_publishedAt_DESC",c.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",c.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",c.SysPublishedVersionAsc="sys_publishedVersion_ASC",c.SysPublishedVersionDesc="sys_publishedVersion_DESC",(d=Y||(Y={})).TitleAsc="title_ASC",d.TitleDesc="title_DESC",d.SlugAsc="slug_ASC",d.SlugDesc="slug_DESC",d.PriorityAsc="priority_ASC",d.PriorityDesc="priority_DESC",d.SysIdAsc="sys_id_ASC",d.SysIdDesc="sys_id_DESC",d.SysPublishedAtAsc="sys_publishedAt_ASC",d.SysPublishedAtDesc="sys_publishedAt_DESC",d.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",d.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",d.SysPublishedVersionAsc="sys_publishedVersion_ASC",d.SysPublishedVersionDesc="sys_publishedVersion_DESC",(u=X||(X={})).IdAsc="id_ASC",u.IdDesc="id_DESC",u.NameAsc="name_ASC",u.NameDesc="name_DESC",u.DescriptionAsc="description_ASC",u.DescriptionDesc="description_DESC",u.SysIdAsc="sys_id_ASC",u.SysIdDesc="sys_id_DESC",u.SysPublishedAtAsc="sys_publishedAt_ASC",u.SysPublishedAtDesc="sys_publishedAt_DESC",u.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",u.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",u.SysPublishedVersionAsc="sys_publishedVersion_ASC",u.SysPublishedVersionDesc="sys_publishedVersion_DESC",(h=Z||(Z={})).TitleAsc="title_ASC",h.TitleDesc="title_DESC",h.SlugAsc="slug_ASC",h.SlugDesc="slug_DESC",h.SysIdAsc="sys_id_ASC",h.SysIdDesc="sys_id_DESC",h.SysPublishedAtAsc="sys_publishedAt_ASC",h.SysPublishedAtDesc="sys_publishedAt_DESC",h.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",h.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",h.SysPublishedVersionAsc="sys_publishedVersion_ASC",h.SysPublishedVersionDesc="sys_publishedVersion_DESC",(p=Q||(Q={})).TitleAsc="title_ASC",p.TitleDesc="title_DESC",p.SlugAsc="slug_ASC",p.SlugDesc="slug_DESC",p.PriorityAsc="priority_ASC",p.PriorityDesc="priority_DESC",p.SysIdAsc="sys_id_ASC",p.SysIdDesc="sys_id_DESC",p.SysPublishedAtAsc="sys_publishedAt_ASC",p.SysPublishedAtDesc="sys_publishedAt_DESC",p.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",p.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",p.SysPublishedVersionAsc="sys_publishedVersion_ASC",p.SysPublishedVersionDesc="sys_publishedVersion_DESC",(m=J||(J={})).TitleAsc="title_ASC",m.TitleDesc="title_DESC",m.SlugAsc="slug_ASC",m.SlugDesc="slug_DESC",m.SysIdAsc="sys_id_ASC",m.SysIdDesc="sys_id_DESC",m.SysPublishedAtAsc="sys_publishedAt_ASC",m.SysPublishedAtDesc="sys_publishedAt_DESC",m.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",m.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",m.SysPublishedVersionAsc="sys_publishedVersion_ASC",m.SysPublishedVersionDesc="sys_publishedVersion_DESC",(g=$||($={})).TitleAsc="title_ASC",g.TitleDesc="title_DESC",g.SlugAsc="slug_ASC",g.SlugDesc="slug_DESC",g.SysIdAsc="sys_id_ASC",g.
1SysIdDesc="sys_id_DESC",g.SysPublishedAtAsc="sys_publishedAt_ASC",g.SysPublishedAtDesc="sys_publishedAt_DESC",g.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",g.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",g.SysPublishedVersionAsc="sys_publishedVersion_ASC",g.SysPublishedVersionDesc="sys_publishedVersion_DESC",(y=ee||(ee={})).SysIdAsc="sys_id_ASC",y.SysIdDesc="sys_id_DESC",y.SysPublishedAtAsc="sys_publishedAt_ASC",y.SysPublishedAtDesc="sys_publishedAt_DESC",y.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",y.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",y.SysPublishedVersionAsc="sys_publishedVersion_ASC",y.SysPublishedVersionDesc="sys_publishedVersion_DESC",(b=et||(et={})).SlugAsc="slug_ASC",b.SlugDesc="slug_DESC",b.SysIdAsc="sys_id_ASC",b.SysIdDesc="sys_id_DESC",b.SysPublishedAtAsc="sys_publishedAt_ASC",b.SysPublishedAtDesc="sys_publishedAt_DESC",b.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",b.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",b.SysPublishedVersionAsc="sys_publishedVersion_ASC",b.SysPublishedVersionDesc="sys_publishedVersion_DESC",(x=es||(es={})).TitleAsc="title_ASC",x.TitleDesc="title_DESC",x.SlugAsc="slug_ASC",x.SlugDesc="slug_DESC",x.SysIdAsc="sys_id_ASC",x.SysIdDesc="sys_id_DESC",x.SysPublishedAtAsc="sys_publishedAt_ASC",x.SysPublishedAtDesc="sys_publishedAt_DESC",x.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",x.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",x.SysPublishedVersionAsc="sys_publishedVersion_ASC",x.SysPublishedVersionDesc="sys_publishedVersion_DESC",(A=ei||(ei={})).TitleAsc="title_ASC",A.TitleDesc="title_DESC",A.ColorSchemeAsc="colorScheme_ASC",A.ColorSchemeDesc="colorScheme_DESC",A.PreviewImageAsc="previewImage_ASC",A.PreviewImageDesc="previewImage_DESC",A.IconNameAsc="iconName_ASC",A.IconNameDesc="iconName_DESC",A.ActionAsc="action_ASC",A.ActionDesc="action_DESC",A.SysIdAsc="sys_id_ASC",A.SysIdDesc="sys_id_DESC",A.SysPublishedAtAsc="sys_publishedAt_ASC",A.SysPublishedAtDesc="sys_publishedAt_DESC",A.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",A.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",A.SysPublishedVersionAsc="sys_publishedVersion_ASC",A.SysPublishedVersionDesc="sys_publishedVersion_DESC",(_=en||(en={})).IdAsc="id_ASC",_.IdDesc="id_DESC",_.TitleAsc="title_ASC",_.TitleDesc="title_DESC",_.SysIdAsc="sys_id_ASC",_.SysIdDesc="sys_id_DESC",_.SysPublishedAtAsc="sys_publishedAt_ASC",_.SysPublishedAtDesc="sys_publishedAt_DESC",_.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",_.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",_.SysPublishedVersionAsc="sys_publishedVersion_ASC",_.SysPublishedVersionDesc="sys_publishedVersion_DESC",(S=er||(er={})).IdAsc="id_ASC",S.IdDesc="id_DESC",S.TitleAsc="title_ASC",S.TitleDesc="title_DESC",S.SysIdAsc="sys_id_ASC",S.SysIdDesc="sys_id_DESC",S.SysPublishedAtAsc="sys_publishedAt_ASC",S.SysPublishedAtDesc="sys_publishedAt_DESC",S.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",S.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",S.SysPublishedVersionAsc="sys_publishedVersion_ASC",S.SysPublishedVersionDesc="sys_publishedVersion_DESC",(f=eo||(eo={})).TitleAsc="title_ASC",f.TitleDesc="title_DESC",f.ColorSchemeAsc="colorScheme_ASC",f.ColorSchemeDesc="colorScheme_DESC",f.PreviewImageAsc="previewImage_ASC",f.PreviewImageDesc="previewImage_DESC",f.IconNameAsc="iconName_ASC",f.IconNameDesc="iconName_DESC",f.ActionAsc="action_ASC",f.ActionDesc="action_DESC",f.SysIdAsc="sys_id_ASC",f.SysIdDesc="sys_id_DESC",f.SysPublishedAtAsc="sys_publishedAt_ASC",f.SysPublishedAtDesc="sys_publishedAt_DESC",f.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",f.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",f.SysPublishedVersionAsc="sys_publishedVersion_ASC",f.SysPublishedVersionDesc="sys_publishedVersion_DESC",(C=el||(el={})).Jpg="JPG",C.JpgProgressive="JPG_PROGRESSIVE",C.Png="PNG",C.Png8="PNG8",C.Webp="WEBP",C.Avif="AVIF",(v=ea||(ea={})).Center="CENTER",v.Top="TOP",v.TopRight="TOP_RIGHT",v.Right="RIGHT",v.BottomRight="BOTTOM_RIGHT",v.Bottom="BOTTOM",v.BottomLeft="BOTTOM_LEFT",v.Left="LEFT",v.TopLeft="TOP_LEFT",v.Face="FACE",v.Faces="FACES",(D=ec||(ec={})).Fit="FIT",D.Pad="PAD",D.Fill="FILL",D.Scale="SCALE",D.Crop="CROP",D.Thumb="THUMB",(j=ed||(ed={})).TitleAsc="title_ASC",j.TitleDesc="title_DESC",j.SlugAsc="slug_ASC",j.SlugDesc="slug_DESC",j.SysIdAsc="sys_id_ASC",j.SysIdDesc="sys_id_DESC",j.SysPublishedAtAsc="sys_publishedAt_ASC",j.SysPublishedAtDesc="sys_publishedAt_DESC",j.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",j.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",j.SysPublishedVersionAsc="sys_publishedVersion_ASC",j.SysPublishedVersionDesc="sys_publishedVersion_DESC",(w=eu||(eu={})).TitleAsc="title_ASC",w.TitleDesc="title_DESC",w.InternalNameAsc="internalName_ASC",w.InternalNameDesc="internalName_DESC",w.SlugAsc="slug_ASC",w.SlugDesc="slug_DESC",w.PriorityAsc="priority_ASC",w.PriorityDesc="priority_DESC",w.SysIdAsc="sys_id_ASC",w.SysIdDesc="sys_id_DESC",w.SysPublishedAtAsc="sys_publishedAt_ASC",w.SysPublishedAtDesc="sys_publishedAt_DESC",w.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",w.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",w.SysPublishedVersionAsc="sys_publishedVersion_ASC",w.SysPublishedVersionDesc="sys_publishedVersion_DESC",(E=eh||(eh={})).TitleAsc="title_ASC",E.TitleDesc="title_DESC",E.InternalNameAsc="internalName_ASC",E.InternalNameDesc="internalName_DESC",E.SlugAsc="slug_ASC",E.SlugDesc="slug_DESC",E.PriorityAsc="priority_ASC",E.PriorityDesc="priority_DESC",E.SysIdAsc="sys_id_ASC",E.SysIdDesc="sys_id_DESC",E.SysPublishedAtAsc="sys_publishedAt_ASC",E.SysPublishedAtDesc="sys_publishedAt_DESC",E.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",E.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",E.SysPublishedVersionAsc="sys_publishedVersion_ASC",E.SysPublishedVersionDesc="sys_publishedVersion_DESC",(P=ep||(ep={})).TitleAsc="title_ASC",P.TitleDesc="title_DESC",P.SlugAsc="slug_ASC",P.SlugDesc="slug_DESC",P.SysIdAsc="sys_id_ASC",P.SysIdDesc="sys_id_DESC",P.SysPublishedAtAsc="sys_publishedAt_ASC",P.SysPublishedAtDesc="sys_publishedAt_DESC",P.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",P.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",P.SysPublishedVersionAsc="sys_publishedVersion_ASC",P.SysPublishedVersionDesc="sys_publishedVersion_DESC",(k=em||(em={})).TitleAsc="title_ASC",k.TitleDesc="title_DESC",k.DocIdAsc="docId_ASC",k.DocIdDesc="docId_DESC",k.PreviewCardIdAsc="previewCardId_ASC",k.PreviewCardIdDesc="previewCardId_DESC",k.StagingDocIdAsc="stagingDocId_ASC",k.StagingDocIdDesc="stagingDocId_DESC",k.IsNewAsc="isNew_ASC",k.IsNewDesc="isNew_DESC",k.AuthorDisplayNameAsc="authorDisplayName_ASC",k.AuthorDisplayNameDesc="authorDisplayName_DESC",k.SlugAsc="slug_ASC",k.SlugDesc="slug_DESC",k.SysIdAsc="sys_id_ASC",k.SysIdDesc="sys_id_DESC",k.SysPublishedAtAsc="sys_publishedAt_ASC",k.SysPublishedAtDesc="sys_publishedAt_DESC",k.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",k.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",k.SysPublishedVersionAsc="sys_publishedVersion_ASC",k.SysPublishedVersionDesc="sys_publishedVersion_DESC",(I=eg||(eg={})).NameAsc="name_ASC",I.NameDesc="name_DESC",I.EmailAsc="email_ASC",I.EmailDesc="email_DESC",I.PhoneAsc="phone_ASC",I.PhoneDesc="phone_DESC",I.FacebookAsc="facebook_ASC",I.FacebookDesc="facebook_DESC",I.TwitterAsc="twitter_ASC",I.TwitterDesc="twitter_DESC",I.SysIdAsc="sys_id_ASC",I.SysIdDesc="sys_id_DESC",I.SysPublishedAtAsc="sys_publishedAt_ASC",I.SysPublishedAtDesc="sys_publishedAt_DESC",I.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",I.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",I.SysPublishedVersionAsc="sys_publishedVersion_ASC",I.SysPublishedVersionDesc="sys_publishedVersion_DESC",(T=ey||(ey={})).TitleAsc="title_ASC",T.TitleDesc="title_DESC",T.InternalNameAsc="internalName_ASC",T.InternalNameDesc="internalName_DESC",T.SlugAsc="slug_ASC",T.SlugDesc="slug_DESC",T.PriorityAsc="priority_ASC",T.PriorityDesc="priority_DESC",T.SysIdAsc="sys_id_ASC",T.SysIdDesc="sys_id_DESC",T.SysPublishedAtAsc="sys_publishedAt_ASC",T.SysPublishedAtDesc="sys_publishedAt_DESC",T.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",T.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",T.SysPublishedVersionAsc="sys_publishedVersion_ASC",T.SysPublishedVersionDesc="sys_publishedVersion_DESC",(N=eb||(eb={})).TitleAsc="title_ASC",N.TitleDesc="title_DESC",N.SlugAsc="slug_ASC",N.SlugDesc="slug_DESC",N.SysIdAsc="sys_id_ASC",N.SysIdDesc="sys_id_DESC",N.SysPublishedAtAsc="sys_publishedAt_ASC",N.SysPublishedAtDesc="sys_publishedAt_DESC",N.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",N.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",N.SysPublishedVersionAsc="sys_publishedVersion_ASC",N.SysPublishedVersionDesc="sys_publishedVersion_DESC",(F=ex||(ex={})).SlugAsc="slug_ASC",F.SlugDesc="slug_DESC",F.SysIdAsc="sys_id_ASC",F.SysIdDesc="sys_id_DESC",F.SysPublishedAtAsc="sys_publishedAt_ASC",F.SysPublishedAtDesc="sys_publishedAt_DESC",F.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",F.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",F.SysPublishedVersionAsc="sys_publishedVersion_ASC",F.SysPublishedVersionDesc="sys_publishedVersion_DESC",(L=eA||(eA={}
1)).TitleAsc="title_ASC",L.TitleDesc="title_DESC",L.InternalNameAsc="internalName_ASC",L.InternalNameDesc="internalName_DESC",L.SlugAsc="slug_ASC",L.SlugDesc="slug_DESC",L.PriorityAsc="priority_ASC",L.PriorityDesc="priority_DESC",L.SysIdAsc="sys_id_ASC",L.SysIdDesc="sys_id_DESC",L.SysPublishedAtAsc="sys_publishedAt_ASC",L.SysPublishedAtDesc="sys_publishedAt_DESC",L.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",L.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",L.SysPublishedVersionAsc="sys_publishedVersion_ASC",L.SysPublishedVersionDesc="sys_publishedVersion_DESC",(V=e_||(e_={})).TitleAsc="title_ASC",V.TitleDesc="title_DESC",V.SlugAsc="slug_ASC",V.SlugDesc="slug_DESC",V.SysIdAsc="sys_id_ASC",V.SysIdDesc="sys_id_DESC",V.SysPublishedAtAsc="sys_publishedAt_ASC",V.SysPublishedAtDesc="sys_publishedAt_DESC",V.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",V.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",V.SysPublishedVersionAsc="sys_publishedVersion_ASC",V.SysPublishedVersionDesc="sys_publishedVersion_DESC",(U=eS||(eS={})).IdAsc="id_ASC",U.IdDesc="id_DESC",U.TitleAsc="title_ASC",U.TitleDesc="title_DESC",U.DescriptionAsc="description_ASC",U.DescriptionDesc="description_DESC",U.SysIdAsc="sys_id_ASC",U.SysIdDesc="sys_id_DESC",U.SysPublishedAtAsc="sys_publishedAt_ASC",U.SysPublishedAtDesc="sys_publishedAt_DESC",U.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",U.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",U.SysPublishedVersionAsc="sys_publishedVersion_ASC",U.SysPublishedVersionDesc="sys_publishedVersion_DESC",(R=ef||(ef={})).IdAsc="id_ASC",R.IdDesc="id_DESC",R.TitleAsc="title_ASC",R.TitleDesc="title_DESC",R.DescriptionAsc="description_ASC",R.DescriptionDesc="description_DESC",R.SysIdAsc="sys_id_ASC",R.SysIdDesc="sys_id_DESC",R.SysPublishedAtAsc="sys_publishedAt_ASC",R.SysPublishedAtDesc="sys_publishedAt_DESC",R.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",R.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",R.SysPublishedVersionAsc="sys_publishedVersion_ASC",R.SysPublishedVersionDesc="sys_publishedVersion_DESC",(O=eC||(eC={})).HeadlineAsc="headline_ASC",O.HeadlineDesc="headline_DESC",O.VideoUrlAsc="videoUrl_ASC",O.VideoUrlDesc="videoUrl_DESC",O.PosterUrlAsc="posterUrl_ASC",O.PosterUrlDesc="posterUrl_DESC",O.StaticImageUrlAsc="staticImageUrl_ASC",O.StaticImageUrlDesc="staticImageUrl_DESC",O.SysIdAsc="sys_id_ASC",O.SysIdDesc="sys_id_DESC",O.SysPublishedAtAsc="sys_publishedAt_ASC",O.SysPublishedAtDesc="sys_publishedAt_DESC",O.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",O.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",O.SysPublishedVersionAsc="sys_publishedVersion_ASC",O.SysPublishedVersionDesc="sys_publishedVersion_DESC",(z=ev||(ev={})).HeadlineAsc="headline_ASC",z.HeadlineDesc="headline_DESC",z.VideoUrlAsc="videoUrl_ASC",z.VideoUrlDesc="videoUrl_DESC",z.PosterUrlAsc="posterUrl_ASC",z.PosterUrlDesc="posterUrl_DESC",z.StaticImageUrlAsc="staticImageUrl_ASC",z.StaticImageUrlDesc="staticImageUrl_DESC",z.SysIdAsc="sys_id_ASC",z.SysIdDesc="sys_id_DESC",z.SysPublishedAtAsc="sys_publishedAt_ASC",z.SysPublishedAtDesc="sys_publishedAt_DESC",z.SysFirstPublishedAtAsc="sys_firstPublishedAt_ASC",z.SysFirstPublishedAtDesc="sys_firstPublishedAt_DESC",z.SysPublishedVersionAsc="sys_publishedVersion_ASC",z.SysPublishedVersionDesc="sys_publishedVersion_DESC";let td=(0,e8.Ps)(e6()),tu=(0,e8.Ps)(e7()),th=(0,e8.Ps)(te()),tp=(0,e8.Ps)(tt()),tm=(0,e8.Ps)(ts(),th,tp),tg=(0,e8.Ps)(ti(),td,tu),ty=(0,e8.Ps)(tn(),th,tp);(0,e8.Ps)(tr(),tp,tm),(0,e8.Ps)(to(),tp),(0,e8.Ps)(tl(),tp),(0,e8.Ps)(ta());var tb=s(39794),tx=s.n(tb),tA=s(10649);let t_=e=>{var t;return!!((null==e?void 0:e.graphQLErrors)&&(null==e?void 0:null===(t=e.graphQLErrors)||void 0===t?void 0:t.length)>0&&tx()(null==e?void 0:e.graphQLErrors,e=>{var t,s;return(null==e?void 0:null===(s=e.extensions)||void 0===s?void 0:null===(t=s.contentful)||void 0===t?void 0:t.code)==="UNRESOLVABLE_LINK"}))&&(null==e?void 0:e.clientErrors.length)===0&&!(null==e?void 0:e.networkError)},tS="en-US",tf=e=>e===tA.p5?tS:"ko"===e?"ko":tS,tC=(e,t)=>({variables:{where:{},locale:t},context:{clientName:"contentfulGraphql"},onError:t=>{t_(t)||console.error("[".concat(e,"] error"),t.message)},errorPolicy:"all",fetchPolicy:"cache-first",nextFetchPolicy:"cache-only"}),tv=()=>{var e;let{i18n:t}=(0,eK.mV)(),{data:s,loading:i,error:n}=function(e){let t={...tc,...e};return e9.a(ty,t)}({...tC("useGetTemplateCategories",tf(t.locale))}),r=(0,e1.$H)(null==s?void 0:null===(e=s.templateCategoryCollection)||void 0===e?void 0:e.items),o=t_(n)?void 0:n;return{categories:r,loading:i,error:o}},tD=()=>{var e;let{i18n:t}=(0,eK.mV)(),{data:s,loading:i,error:n}=function(e){let t={...tc,...e};return e9.a(tg,t)}({...tC("useGetInspirationCategories",tf(t.locale))}),r=(0,e1.$H)(null==s?void 0:null===(e=s.inspirationCategoryCollection)||void 0===e?void 0:e.items),o=t_(n)?void 0:n;return{categories:r,loading:i,error:o}};
1var tj=s(89364),tw=s(42822),tE=s(81540),tP=s(32899),tk=s(93202),tI=s(18469),tT=s(11050);let tN="260px";var tF=s(56356),tL=s(46409);let tV="template-preview-modal-body",tU=e=>{let{doc:t,theme:s,snapshotContent:i,setEditor:n}=e;return(0,eD.jsxs)(ew.k,{w:"100%",flex:1,direction:"column",className:"".concat(tV),align:"center",overflowY:"auto",overflowX:"auto",justifyContent:"flex-start",h:"100%",borderWidth:"1px",borderStyle:"solid",borderColor:"gray.200",css:{"--editor-width":"calc(100vw - ".concat(tN," - var(--chakra-sizes-32) - 2px)")},children:[(0,eD.jsx)(tL.Y,{}),(0,eD.jsx)(tF.yE,{animationsEnabled:!1,isStatic:!1,theme:s||void 0,initialContent:i,doc:t,docId:t.id,readOnly:!0,scrollingParentSelector:".".concat(tV),onCreate:e=>{let{editor:t}=e;return n(t)}},t.id)]})};var tR=s(56581),tO=s(11881),tz=s(94523),tM=s(94199),tG=s(53596);let tH=e=>{let{isChecked:t,setTheme:s,theme:i}=e;return(0,eD.jsxs)(ez.xu,{as:tO.f,p:2,transition:"all 0.2s ease-in-out",bgColor:t?"trueblue.100":"linen.50",textAlign:"left",tabIndex:0,borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_focus:{boxShadow:t?void 0:"outline"},outline:"none",onClick:()=>s(i),_hover:{bgColor:t?"trueblue.100":"gray.100"},"data-theme-id":i.id,"data-testid":t?"current-theme-preview":void 0,cursor:"pointer",children:[(0,eD.jsx)(tG.n,{theme:i}),(0,eD.jsxs)(eE.K,{direction:"row",spacing:1,pt:1,children:[t&&(0,eD.jsx)(tR.n,{w:3,h:"auto",mr:1,color:"trueblue.700"}),(0,eD.jsx)(ej.x,{fontSize:"sm",noOfLines:1,"data-testid":"theme-name",color:t?"trueblue.700":void 0,children:i.name})]})]})},tB=e=>{let{heading:t,themes:s,currentTheme:i,setTheme:n}=e;return(0,eD.jsxs)(eE.K,{spacing:2,children:[(0,eD.jsx)(tz.NZ,{children:t}),(0,eD.jsx)(eE.K,{spacing:4,p:1,pr:4,children:null==s?void 0:s.map((e,t)=>{let s=e.id===(null==i?void 0:i.id);return(0,eD.jsx)(tH,{theme:e,setTheme:n,isChecked:s},t)})})]})},tW=e=>{let{templateTheme:t,setTheme:s,currentTheme:i,themes:n,onCloneClick:r,isCloneButtonDisabled:o}=e;return(0,eD.jsxs)(ew.k,{w:tN,ml:4,direction:"column",children:[(0,eD.jsx)(ez.xu,{w:"100%",pb:8,children:(0,eD.jsxs)(eO.z,{w:"100%",variant:"solid",size:"lg",onClick:r,isDisabled:o,children:[(0,eD.jsx)(eK.cC,{id:"p6eI8J"})," â"]})}),(0,eD.jsxs)(eE.K,{spacing:6,overflowY:"auto",h:"100%",pb:8,children:[(0,eD.jsx)(tB,{heading:(0,eD.jsx)(eK.cC,{id:"mdLv9o"}),themes:t?[t]:[],currentTheme:i,setTheme:s}),(0,eD.jsx)(tB,{heading:(0,eD.jsx)(eK.cC,{id:"mvmJyu"}),themes:n||[],currentTheme:i,setTheme:s}),(0,eD.jsx)(eE.K,{spacing:4,p:1,pr:4,children:(0,eD.jsx)(ew.k,{alignItems:"center",justifyContent:"center",border:"1px solid",borderColor:"gray.200",borderRadius:"lg",background:"gray.50",minH:36,_hover:{background:"white",color:"trueblue.600",cursor:"pointer"},onClick:()=>r({openThemeEditor:!0}),children:(0,eD.jsxs)(eE.K,{textAlign:"center",children:[(0,eD.jsx)(ej.x,{fontSize:"xl",children:(0,eD.jsx)(eW.G,{icon:eB.EQ8})}),(0,eD.jsx)(ej.x,{children:(0,eD.jsx)(eK.cC,{id:"YHI6sk"})})]})})}),(0,eD.jsx)(ez.xu,{px:2,py:4,children:(0,eD.jsxs)(ej.x,{textAlign:"center",fontSize:"sm",color:"gray.600",children:[(0,eD.jsx)(eK.cC,{id:"k0ByBj",values:{GAMMA_ARTIFACT_PROPER_NOUN:tM.Yc}})," ",(0,eD.jsx)("span",{role:"img","aria-label":"thumbs-up",children:"\uD83D\uDC4D"})]})})]})]})},tK=()=>(0,eD.jsxs)(eD.Fragment,{children:[(0,eD.jsx)(eF.x,{children:(0,eD.jsx)(eM.O,{w:"80%",h:"48px"})}),(0,eD.jsx)(eL.o,{}),(0,eD.jsxs)(eV.f,{display:"flex",overflow:"hidden",children:[(0,eD.jsx)(ew.k,{flex:1,children:(0,eD.jsx)(tw.M,{w:"100%",bg:"gray.100",children:(0,eD.jsx)(tE.$,{})})}),(0,eD.jsxs)(ew.k,{w:tN,ml:4,direction:"column",children:[(0,eD.jsx)(eM.O,{w:"100%",h:"48px",mb:4}),(0,eD.jsx)(eM.O,{w:"50%",h:8,mb:4}),(0,eD.jsx)(eM.O,{w:"100%",h:36,mb:4}),(0,eD.jsx)(eM.O,{w:"100%",h:36,mb:4}),(0,eD.jsx)(eM.O,{w:"100%",h:36,mb:4})]})]}),(0,eD.jsx)(eR.m,{children:(0,eD.jsx)(eM.O,{w:48,h:"42px"})})]}),tq=e=>{let{onClose:t,heading:s,errorMessage:i,onBackClick:n}=e;return(0,eD.jsxs)(eD.Fragment,{children:[(0,eD.jsxs)(eF.x,{children:[!!n&&(0,eD.jsx)(tP.h,{"aria-label":"Back",icon:(0,eD.jsx)(tj.R,{}),variant:"ghost",onClick:n,mr:2}),s]}),(0,eD.jsx)(eL.o,{}),(0,eD.jsx)(eV.f,{display:"flex",overflow:"hidden",className:"template-preview-modal-body",children:(0,eD.jsxs)(ew.k,{direction:"column",justify:"center",align:"center",w:"100%",children:[(0,eD.jsx)(eU.E,{src:eY.Z.src,width:"300px",alt:"Sal, the Gamma mascot, perched on a rocket enjoying some screentime",mb:6}),(0,eD.jsx)(eP.X,{size:"sm",mb:2,textAlign:"center",children:(0,eD.jsx)(eK.cC,{id:"zwZQVm"})}),(0,eD.jsxs)(ej.x,{fontSize:"md",color:"gray.400",textAlign:"center",children:[(0,eD.jsx)(eK.cC,{id:"u4Djqb"}),(0,eD.jsx)("br",{}),!!i&&i]})]})}),(0,eD.jsx)(eR.m,{children:(0,eD.jsx)(eO.z,{variant:"solid",onClick:t,children:(0,eD.jsx)(eK.cC,{id:"yz7wBu"})})})]})},tY=e=>{var t,s;let{previewDeck:i,onBackClick:n,forceChannelId:r,onClose:o}=e,[l,a]=(0,eQ.useState)(!1),c=(0,e$.e)(),d=(0,e1.Lq)(i);(0,tT.If)(e=>{e.track(tT.AA.DOC_VIEWED,{doc_id:d}),e.track(tT.AA.EXAMPLE_VIEWED,{doc_id:d})});let{data:u,loading:h,error:p}=(0,tk.Iej)({variables:{id:d},skip:!d,fetchPolicy:"cache-first",nextFetchPolicy:"cache-only"}),{data:m,loading:g}=(0,tk.BCl)({variables:{workspaceId:null,archived:!1},fetchPolicy:"cache-first",nextFetchPolicy:"cache-only"}),y=(null==m?void 0:m.themes)||[],b=(0,tT.z$)(),x=null==u?void 0:u.doc,A=null==x?void 0:x.theme,[_,S]=(0,eQ.useState)(A),f=(0,eQ.useRef)(!1),[C,v]=(0,eQ.useState)(),D=!i||h,j=p||p,w=null==x?void 0:null===(t=x.currentSnapshot)||void 0===t?void 0:t.content.default;(0,tI.p)(null==u?void 0:null===(s=u.doc)||void 0===s?void 0:s.cards,C);let E=[...y.filter(e=>e.id!==(null==A?void 0:A.id))];(0,eQ.useEffect)(()=>{A&&!f.current&&(S(A),f.current=!0)},[A]),(0,eQ.useEffect)(()=>
1{if(C){let e=null==_?void 0:_.config.accentBackgrounds;if(!e||0===e.length){w&&C.commands.setContent(w);return}C.commands.updateThemeAccentImages(e)}},[w,C,_]);let P=(0,eQ.useCallback)(e=>{S(e),null==b||b.track(tT.AA.IN_APP_TEMPLATE_THEME_CLICKED,{theme_id:e.id})},[b]),k=(0,eQ.useCallback)(e=>{let{openThemeEditor:t}=e;x&&w&&(a(!0),t&&(null==b||b.track(tT.AA.IN_APP_TEMPLATE_CREATE_THEME_CLICKED,{source_doc_id:x.id})),c({docId:x.id,initialContent:w,channelId:r,newWindow:!(0,e0.Q5)(),onSuccess:o,openThemeEditor:t,source:t?"template_modal_preview":"template_modal_preview_create_theme"}))},[x,w,c,r,b,o]);return D?(0,eD.jsx)(tK,{}):!j&&i&&x&&w?(0,eD.jsxs)(eD.Fragment,{children:[(0,eD.jsxs)(eF.x,{children:[!!n&&(0,eD.jsx)(tP.h,{"aria-label":"Back",icon:(0,eD.jsx)(tj.R,{}),variant:"ghost",onClick:n,mr:2}),i.title]}),(0,eD.jsx)(eL.o,{}),(0,eD.jsxs)(eV.f,{display:"flex",overflow:"hidden",children:[(0,eD.jsx)(tU,{doc:x,snapshotContent:w,theme:_,setEditor:v}),(0,eD.jsx)(tW,{setTheme:P,currentTheme:_,templateTheme:A,themes:E,onCloneClick:k,isCloneButtonDisabled:l})]})]}):(j&&console.error("[TemplatePreview] Error loading template: ".concat(j.message)),(0,eD.jsx)(tq,{onClose:o,onBackClick:n,heading:(null==i?void 0:i.title)?i.title:"Error loading template",errorMessage:null==j?void 0:j.message}))},tX=e=>{let{isOpen:t,onClose:s,forceDocId:i=null,forceChannelId:n=null,forceCategoryId:r=null}=e,[o,l]=(0,eQ.useState)(i),{categories:a,loading:c,error:d}=tv(),u=(0,e1.Up)(a),[h,p]=(0,eQ.useState)(r),m=(null==a?void 0:a.find(e=>e.id===h))||a[0],g=null==u?void 0:u.find(e=>{let t=(0,e1.Lq)(e);return t===o}),y=(0,eQ.useCallback)(e=>{if(!e){console.error("[TemplatesModal] onPreviewClick: docId is not defined");return}l(e)},[]),b=i?void 0:()=>l(null),x=o?"preview":"browser";return(0,eD.jsxs)(e2.u_,{isOpen:t,onClose:s,size:"full",returnFocusOnClose:!1,children:[(0,eD.jsx)(e5.Z,{}),(0,eD.jsxs)(e4.h,{borderRadius:"xl",m:6,minH:"calc(100vh - var(--chakra-sizes-12))",h:"calc(100vh - var(--chakra-sizes-12))",w:"calc(100vw - var(--chakra-sizes-12))",children:["browser"===x&&(0,eD.jsx)(t3,{onClose:s,categories:a,isLoading:c,error:d,onPreviewClick:y,currentCategory:m,setCurrentCategoryId:p,forceChannelId:n}),"preview"===x&&(0,eD.jsx)(tY,{onBackClick:b,previewDeck:g,forceChannelId:n,onClose:s})]})]})},tZ={transitionProperty:"common",transitionDuration:"normal",transform:"scale(.9)",opacity:0,_groupFocus:{opacity:1,transform:"scale(1)"},_groupHover:{opacity:1,transform:"scale(1)"},_focus:{opacity:1,shadow:"outline"}},tQ=e=>{let{deck:t,onPreviewClick:s,forceChannelId:i=null,onCloseEnclosingModal:n}=e,{isOpen:r,onOpen:o,onClose:l}=(0,eX.q)({id:"template-browser-modal"}),a=(0,e1.Lq)(t),c=(0,e$.e)(),[d,u]=(0,eQ.useState)(!1),{title:h,previewImageUrl:p}=t,m=s?()=>s(a):o,g=(0,eQ.useCallback)(()=>{if(!a){console.error("[TemplateGridItem] docIdToUse is required to clone");return}n||u(!0);let e=n?"template_modal_griditem":"template_dashboard_griditem";c({docId:a,channelId:i,source:e,newWindow:!(0,e0.Q5)(),onSuccess:()=>{n?n():setTimeout(()=>{u(!1)},3e3)}})},[a,c,i,n]);return a?(0,eD.jsxs)(eH.P,{role:"group",position:"relative",children:[(0,eD.jsxs)(eE.K,{children:[(0,eD.jsxs)(ez.xu,{tabIndex:0,role:"group",borderRadius:"5px",shadow:"md",_focus:{shadow:"outline"},_focusWithin:{shadow:"outline"},_hover:{shadow:"lg"},position:"relative",overflow:"hidden",transition:"box-shadow .2s ease",color:"white",onClick:e=>{var t,s;(null===(t=e.target)||void 0===t?void 0:t.closest('[data-target-name="use-template-button"]'))||(null===(s=e.target)||void 0===s?void 0:s.closest('[data-target-name="preview-button"]'))||m()},cursor:"pointer",children:[(0,eD.jsx)(eZ.o,{ratio:40/21,bgColor:"gray.100",children:(0,eD.jsx)(eU.E,{src:p,fallbackSrc:eJ.Z.src,fit:"cover"})}),(0,eD.jsx)(ew.k,{alignItems:"center",justifyContent:"center",position:"absolute",inset:0,zIndex:2,children:(0,eD.jsxs)(eE.K,{direction:"column",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[(0,eD.jsx)(eO.z,{...tZ,size:"sm","data-target-name":"use-template-button",variant:"solid",onClick:g,isDisabled:d,children:(0,eD.jsx)(eK.cC,{id:"QNtP5M"})}),(0,eD.jsx)(eO.z,{"data-target-name":"preview-button",...tZ,onClick:m,w:"fit-content",size:"xs",variant:"plain",textDecoration:"none !important",children:(0,eD.jsx)(eK.cC,{id:"rdUucN"})})]})}),(0,eD.jsx)(ez.xu,{position:"absolute",inset:0,bg:"blackAlpha.300",zIndex:1,transitionProperty:"common",transitionDuration:"normal",opacity:0,_groupFocus:{opacity:1},_groupHover:{opacity:1}})]}),(0,eD.jsx)(ej.x,{fontSize:"md",children:h})]}),(0,eD.jsx)(tX,{forceDocId:a,isOpen:r,onClose:l})]}):(console.error(["[TemplateGridItem] docIdToUse is not defined",t]),(0,eD.jsx)(eD.Fragment,{}))},tJ=e=>{var t;let{category:s,onPreviewClick:i,forceChannelId:n,onClose:r}=e;return(0,eD.jsxs)(ew.k,{flex:1,w:"100%",pl:6,direction:"column",overflowY:"auto",pr:6,mr:-6,children:[(0,eD.jsx)(eN,{
1category:s}),(0,eD.jsx)(ez.xu,{w:"100%",children:(0,eD.jsx)(eG.r,{templateColumns:{base:"repeat(1, 1fr)",md:"repeat(2, 1fr)",lg:"repeat(3, 1fr)"},gap:6,children:null===(t=s.decks)||void 0===t?void 0:t.map(e=>(0,eD.jsx)(tQ,{deck:e,onPreviewClick:i,forceChannelId:n,onCloseEnclosingModal:r},e.docId))})})]})};var t$=s(36371),t0=s(73582),t1=s(2969);let t2=e=>{let{categories:t,setCurrentCategoryId:s,currentCategoryId:i}=e,n=null==t?void 0:t.findIndex(e=>e.id===i);return t&&(null==t?void 0:t.length)!==0?(0,eD.jsx)(ez.xu,{w:tN,children:(0,eD.jsx)(t$.m,{index:n,variant:"soft-rounded",orientation:"vertical",size:"md",w:"100%",children:(0,eD.jsx)(t0.t,{w:"100%",children:(null==t?void 0:t.length)>0&&t.map(e=>{let{title:t,id:i,decks:n}=e;return(0,eD.jsxs)(t1.O,{flexDirection:"column",borderRadius:"base",border:"none",onClick:()=>s(i),alignItems:"flex-start",width:"100%",textAlign:"left",display:"block",children:[t," ","".concat(n&&(null==n?void 0:n.length)>0?"(".concat(n.length,")"):"")]},i)})})})}):(console.error("[TemplateBrowserSidebar] categories is empty"),null)},t5=e=>{let{error:t,onClose:s}=e;return(0,eD.jsxs)(eD.Fragment,{children:[(0,eD.jsx)(eF.x,{}),(0,eD.jsx)(eL.o,{}),(0,eD.jsx)(eV.f,{display:"flex",overflow:"hidden",children:(0,eD.jsxs)(ew.k,{direction:"column",justify:"center",align:"center",w:"100%",children:[(0,eD.jsx)(eU.E,{src:eY.Z.src,width:"300px",alt:"Sal, the Gamma mascot, perched on a rocket enjoying some screentime",mb:6}),(0,eD.jsx)(eP.X,{size:"sm",mb:2,textAlign:"center",children:(0,eD.jsx)(eK.cC,{id:"zwZQVm"})}),(0,eD.jsxs)(ej.x,{fontSize:"md",color:"gray.400",textAlign:"center",children:[(0,eD.jsx)(eK.cC,{id:"JhOQAi"}),(0,eD.jsx)("br",{}),(null==t?void 0:t.message)&&t.message]})]})}),(0,eD.jsx)(eR.m,{children:(0,eD.jsx)(eO.z,{variant:"solid",onClick:s,children:(0,eD.jsx)(eK.cC,{id:"yz7wBu"})})})]})},t4=e=>{let{onClose:t}=e;return(0,eD.jsxs)(eD.Fragment,{children:[(0,eD.jsx)(eF.x,{children:(0,eD.jsx)(eK.cC,{id:"iTylMl"})}),(0,eD.jsx)(eL.o,{}),(0,eD.jsx)(eV.f,{children:(0,eD.jsxs)(ew.k,{direction:"row",children:[(0,eD.jsxs)(ez.xu,{w:48,h:"100%",children:[(0,eD.jsx)(eM.O,{w:"100%",h:"40px",mb:2}),(0,eD.jsx)(eM.O,{w:"100%",h:"40px",mb:2}),(0,eD.jsx)(eM.O,{w:"100%",h:"40px",mb:2})]}),(0,eD.jsxs)(ew.k,{flex:1,w:"100%",pl:6,direction:"column",children:[(0,eD.jsx)(eM.O,{w:"50%",h:"48px",mb:4}),(0,eD.jsx)(ez.xu,{w:"100%",children:(0,eD.jsxs)(eG.r,{templateColumns:["repeat(2, 1fr)","repeat(3, 1fr)"],gap:6,children:[(0,eD.jsx)(eH.P,{bg:"linen.50",borderRadius:"5px",height:"200px",as:eM.O}),(0,eD.jsx)(eH.P,{bg:"linen.50",borderRadius:"5px",height:"200px",as:eM.O}),(0,eD.jsx)(eH.P,{bg:"linen.50",borderRadius:"5px",height:"200px",as:eM.O})]})})]})]})}),(0,eD.jsx)(eR.m,{children:(0,eD.jsx)(eO.z,{variant:"solid",onClick:t,children:(0,eD.jsx)(eK.cC,{id:"DPfwMq"})})})]})},t3=e=>{var t;let{categories:s,onClose:i,onPreviewClick:n,currentCategory:r,setCurrentCategoryId:o,forceChannelId:l,isLoading:a,error:c}=e,[d,{data:u,loading:h}]=(0,eq.c)();return a?(0,eD.jsx)(t4,{onClose:i}):c?(0,eD.jsx)(t5,{error:c,onClose:i}):(0,eD.jsxs)(eD.Fragment,{children:[(0,eD.jsx)(eF.x,{children:(0,eD.jsx)(eK.cC,{id:"iTylMl"})}),(0,eD.jsx)(eL.o,{}),(0,eD.jsx)(eV.f,{overflow:"hidden",children:(0,eD.jsxs)(ew.k,{direction:"row",h:"100%",children:[s&&(null==s?void 0:s.length)>0&&(0,eD.jsx)(t2,{currentCategoryId:r.id,setCurrentCategoryId:o,categories:s}),(null==r?void 0:null===(t=r.decks)||void 0===t?void 0:t.length)>0&&(0,eD.jsx)(tJ,{category:r,onPreviewClick:n,forceChannelId:l,onClose:i})]})}),(0,eD.jsxs)(eR.m,{justifyContent:"space-between",children:[(0,eD.jsx)(eO.z,{size:"md",variant:"ghost",isDisabled:h,leftIcon:(0,eD.jsx)(eW.G,{icon:eB.r8p}),onClick:()=>{d({channelId:l,source:"template_browser"})},children:(0,eD.jsx)(eK.cC,{id:"exOjhh"})}),(0,eD.jsx)(eO.z,{variant:"solid",onClick:i,children:(0,eD.jsx)(eK.cC,{id:"DPfwMq"})})]})]})}},33579:function(e,t,s){"use strict";s.d(t,{$H:function(){return h},Lq:function(){return l},Up:function(){return p}});var i=s(35676),n=s.n(i),r=s(14274),o=s(16426);let l=e=>{if(!e){console.warn("[getDocIdForEnv] Deck is undefined. This is unexpected.");return}return"production"!==r.v.APPLICATION_ENVIRONMENT?e.stagingDocId||"oltspxg8obq2nzc":e.docId},a=e=>{let{docId:t,previewCardId:s}=e;return s&&t?"https://assets.api.gamma.app/".concat("zc87vhr30n8uf3n","/screenshots/").concat(t,"/").concat(s,"/slide"):null},c=e=>e.filter(e=>null!==e),d=e=>{var t,s,i,n,r,l,c,d,u,h,p,m,g;return{title:e.title||null,id:(null==e?void 0:null===(t=e.sys)||void 0===t?void 0:t.id)||null,description:(null===(s=e.description)||void 0===s?void 0:s.json)||null,slug:e.slug||null,docId:(null===(i=e.deck)||void 0===i?void 0:i.docId)||null,previewCardId:(null===(n=e.deck)||void 0===n?void 0:n.previewCardId)||null,authorDisplayName:(null===(l=e.deck)||void 0===l?void 0:null===(r=l.author)||void 0===r?void 0:r.name)||null,authorImageUrl:(null===(u=e.deck)||void 0===u?void 0:null===(d=u.author)||void 0===d?void 0:null===(c=d.image)||void 0===c?void 0:c.url)||null,previewImageUrl:(null===(p=e.deck)||void 0===p?void 0:null===(h=p.previewImage)||void 0===h?void 0:h.url)||a({docId:null===(m=e.deck)||void 0===m?void 0:m.docId,previewCardId:null===(g=e.deck)||void 0===g?void 0:g.previewCardId})||o.Z.src}},u=e=>{var t,s;if(!e)return[];let i=[];return(null==e?void 0:e.__typename)==="TemplateCategory"?i=(null===(t=e.templateEntriesCollection)||void 0===t?void 0:t.items)||[]:(null==e?void 0:e.__typename)==="InspirationCategory"&&(i=(null===(s=e.inspirationEntriesCollection)||void 0===s?void 0:s.items)||[]),c(i).map(d)||[]},h=e=>e&&0!==e.length?c(e).map(e=>{var t,s;return{id:(null==e?void 0:null===(t=e.sys)||void 0===t?void 0:t.id)||null,title:e.title||null,description:(null===(s=e.description)||void 0===s?void 0:s.json)||null,slug:(null==e?void 0:e.slug)||null,decks:u(e)||null}}):[],p=e=>e&&n()(e.map(e=>e.decks))||[]},31961:function(e,t,s){"use strict";s.d(t,{D:function(){return c}});var i=s(52322),n=s(67964),r=s(90383),o=s(78462),l=s(37869),a=s(47146);let c=e=>{var t,s,c,d;let{doc:u,token:h,content:p,noindex:m,nofollow:g}=e,y=(0,n.dU)(null==u?void 0:u.organization)||(0,r.wg)(),b=null==p?void 0:null===(t=p.content)||void 0===t?void 0:t[0].attrs,x=(0,l.U)(null==u?void 0:u.title,y),A=(0,l.V)((null==b?void 0:null===(s=b.settings)||void 0===s?void 0:s.metaDescription)||(null==u?void 0:null===(c=u.titleCard)||void 0===c?void 0:c.text),y),_=null==u?void 0:null===(d=u.titleCard)||void 0===d?void 0:d.previewUrl,S="".concat(_).concat(h?"?shareToken="+h:""),f=(0,r.wg)()?void 0:(0,o.Gn)({docId:null==u?void 0:u.id,docTitle:null==u?void 0:u.title,path:h?"docs":"public",token:h,absolute:!0});return(0,i.jsx)(a.U,{title:x,description:A,imageUrl:S,canonicalUrl:f,noindex:m,nofollow:g})}},47146:function(e,t,s){"use strict";s.d(t,{U:function(){return a}});var i=s(52322),n=s(97729),r=s.n(n),o=s(14274),l=s(64518);let a=e=>{let{title:t,description:s=l.D,imageUrl:n,canonicalUrl:a,noindex:c=!1,nofollow:d=!1}=e,u=t||"Gamma",h=n||o.v.OG_IMAGE_URL,p=s.slice(0,l.N),m=[c?"noindex":"",d?"
1nofollow":""].join(", ");return(0,i.jsxs)(r(),{children:[(0,i.jsx)("title",{children:u}),(0,i.jsx)("meta",{name:"robots",content:m}),(0,i.jsx)("meta",{content:p,name:"description"},"description"),(0,i.jsx)("meta",{content:u,property:"og:title"},"og:title"),(0,i.jsx)("meta",{content:p,property:"og:description"},"og:description"),(0,i.jsx)("meta",{content:h,property:"og:image"},"og:image"),(0,i.jsx)("meta",{content:u,property:"twitter:title"},"twitter:title"),(0,i.jsx)("meta",{content:p,property:"twitter:description"},"twitter:description"),(0,i.jsx)("meta",{content:h,property:"twitter:image"},"twitter:image"),(0,i.jsx)("meta",{property:"og:type",content:"website"},"og:type"),(0,i.jsx)("meta",{content:"summary_large_image",name:"twitter:card"},"twitter:card"),a&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("link",{rel:"canonical",href:a},"canonical"),(0,i.jsx)("meta",{property:"og:url",content:a},"og:url")]})]})}},37869:function(e,t,s){"use strict";s.d(t,{U:function(){return n},V:function(){return r}});var i=s(64518);let n=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?e||"Untitled":e?"".concat(e," | Gamma"):"Gamma"},r=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(null==e?void 0:e.trim())||(t?"":i.D)}},95632:function(e,t,s){"use strict";s.d(t,{D:function(){return n.D},U:function(){return i.U}});var i=s(47146),n=s(31961)},48832:function(e,t,s){"use strict";s.d(t,{BK:function(){return f},Dw:function(){return S},Km:function(){return _},dN:function(){return x},p6:function(){return A}});var i=s(87254),n=s(82282),r=s(32361),o=s(96740),l=s(31807),a=s(73871),c=s(57907),d=s(21346),u=s(48053),h=s(1363),p=s(49738),m=s(90535),g=s(9283),y=s(75528);let b={en:c.Z,"pt-br":d.Z,ja:u.Z,"zh-cn":h.Z,"zh-tw":p.Z,es:m.Z,fr:g.Z,ko:y.Z},x=()=>b[i.ag.locale]||void 0,A=(e,t)=>e?(0,n.Z)((0,l.Z)(e),t,{locale:x()}):"",_=(e,t)=>e?(0,o.Z)((0,l.Z)(e),t?(0,l.Z)(t):new Date,{locale:x()}):"",S=e=>e?(0,r.Z)((0,l.Z)(e),{locale:x()}):"",f=e=>e?(0,a.Z)((0,l.Z)(e),new Date,{locale:x(),addSuffix:!0,roundingMethod:"floor"}):""},55001:function(e,t,s){"use strict";s.d(t,{Y:function(){return b}});var i=s(52322),n=s(38035),r=s(17190),o=s(43297),l=s(20437),a=s(28535),c=s(11082),d=s(75009),u=s(74409),h=s(97010),p=s(42822),m=s(44663),g=s(82979);let y=e=>[{category:"Product",items:[{text:"Help",url:g.mc.help},{text:"Change log",url:g.mc.changeLog},{text:"Pricing",url:g.mc.pricing},{text:"Templates",url:g.mc.templates},{text:"Inspiration",url:g.mc.inspiration},{text:"Contact us",onClick:e}]},{category:"Company",items:[{text:"Team",url:g.mc.team},{text:"Terms of Service",url:g.mc.terms},{text:"Privacy Policy",url:g.mc.privacy}]},{category:"Follow us",items:[{text:"Twitter",url:"https://twitter.com/meetgamma"},{text:"Instagram",url:"https://www.instagram.com/meetgamma/"},{text:"LinkedIn",url:"https://www.linkedin.com/company/gamma-app/"},{text:"TikTok",url:"https://www.tiktok.com/@meetgamma"}]}],b=()=>{let e=(0,m.G)(),t=y(e);return(0,i.jsx)(n.k,{fontSize:"12px",bgColor:"#1d0042",color:"gray.400",py:20,id:"footer",justifyContent:"center",children:(0,i.jsx)(r.W,{maxW:"940px",children:(0,i.jsxs)(o.K,{children:[(0,i.jsxs)(l.M,{columns:4,spacing:6,mb:10,minChildWidth:"200px",children:[(0,i.jsx)(a.xu,{w:"100%",children:(0,i.jsx)(c.r,{href:"/",children:(0,i.jsx)(d.E,{src:"https://assets.website-files.com/60de2701a7b28f308f619d3d/60de2701a7b28ff7e9619d49_White%20Logo%20g%20spot.svg",loading:"lazy",width:"120px",alt:"Gamma logo"})})}),t.map((e,t)=>{let{category:s,items:n}=e;return(0,i.jsxs)(a.xu,{w:"100%",children:[(0,i.jsx)(u.X,{marginBottom:"25px",color:"rgba(239, 208, 255, 0.7)",fontWeight:"bold",fontSize:"14px",fontFamily:"var(--body-font)",letterSpacing:"normal",children:s}),(0,i.jsx)(h.QI,{listStyleType:"none",margin:0,children:n.map((e,t)=>{let{text:s,url:n,onClick:r}=e;return(0,i.jsx)(h.HC,{fontSize:"14px",pb:4,children:(0,i.jsx)(c.r,{color:"hsla(0, 0%, 100%, 0.86)",href:n||void 0,onClick:r||void 0,children:s})},t)})})]},t)})]}),(0,i.jsxs)(p.M,{color:"rgba(239, 208, 255, 0.7)",fontSize:"13px",children:["\xa9 ",new Date().getFullYear()," Gamma Tech, Inc."]})]})})})}},18606:function(e,t,s){"use strict";s.d(t,{P:function(){return m}});var i=s(52322),n=s(28535),r=s(43297),o=s(11082),l=s(75009),a=s(36474),c=s(62614),d=s(36651),u={src:"/_next/static/media/gamma-logo-white.9613e68b.svg"},h=s(82979);let p=[{text:"Pricing",url:h.mc.pricing,hideWhenSmall:!0},{text:"Templates",url:h.mc.templates,hideWhenSmall:!0},{text:"Login",url:h.mc.login}],m=e=>{let{headerMode:t="light"}=e,{user:s,isUserLoading:m}=(0,d.SE)(),g="light"===t;return(0,i.jsx)(n.xu,{py:4,px:[6,6,12],h:h.AP,pr:[4,6,12],zIndex:"999",top:["auto","auto","0"],children:(0,i.jsxs)(r.K,{direction:"row",children:[(0,i.jsx)(o.r,{href:"/","aria-current":"page",children:(0,i.jsx)(l.E,{w:"100px",src:g?"https://assets.website-files.com/62e823626cd4fdd0e5dc1527/62e823626cd4fdc26bdc1576_Gamma.svg":u.src,loading:"lazy",alt:"Gamma logo"})}),(0,i.jsx)(a.L,{}),!m&&!s&&(0,i.jsxs)(r.K,{direction:"row",spacing:[4,4,8],fontWeight:"500",fontSize:"14px",color:g?"#3b3a40":"#fff",alignItems:"center",transition:"color 300ms ease",children:[p.map(e=>{let{text:t,url:s,hideWhenSmall:n}=e;return(0,i.jsx)(o.r,{display:n?["none","none","block"]:"block",href:s,color:g?void 0:"whiteAlpha.800",_hover:{color:g?"#000":"whiteAlpha.900",textDecoration:"none"},children:t},t)}),(0,i.jsx)(c.z,{as:o.r,href:h.mc.signup,maxHeight:"32px",borderStyle:"solid",borderWidth:"0.5px",fontSize:"14px",borderColor:"rgba(0, 0, 0, 0.24)",backgroundColor:"#fff",boxShadow:"0 4px 4px 0 rgb(0 0 0 / 5%)",fontWeight:"700",borderRadius:"100px",color:"#3b3a40",_hover:{color:"black",textDecoration:"none"},children:"Try for free"})]})]})})}},82979:function(e,t,s){"use strict";s.d(t,{AP:function(){return n},mc:function(){return i}});let i={pricing:"/pricing",help:"https://help.gamma.app",changeLog:"https://gamma.app/public/Change-Log-awopg3inl2eo3b3",team:"https://gamma.app/public/Meet-the-Team-at-Gamma-nbqgqy05eyfcsbi",terms:"https://gamma.app/terms",privacy:"https://gamma.app/privacy",login:"/signin",signup:"/signup",templates:"/templates",inspiration:"/inspiration"},n=16},7454:function(e,t,s){"use strict";s.d(t,{i:function(){return l}});var i=s(62202),n=s(15193),r=s(94523);let o={colors:r.qZ.colors,zIndices:{tooltip:5600,modal:1800,dropdown:1600},fonts:{body:"'Eudoxus Sans', sans-serif",heading:"'p22-mackinac-pro', sans-serif"},fontSizes:{xxs:"11px"},components:{Link:{baseStyle:{textDecoration:"none"}},Button:{variants:{fancy:{color:"white",borderRadius:"full",background:"linear-gradient(180deg, #6850FF 0%, rgba(38, 59, 227, 0) 100%), linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%), linear-gradient(272.9deg, #003DD9 0.18%, #6850FF 109.19%, #DF7A6C 188.8%)",border:"1px solid rgba(255, 255, 255, 0.12)",_hover:{background:"linear-gradient(180deg, #3A24C2 0%, rgba(38, 59, 227, 0) 100%), linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%), linear-gradient(272.9deg, #002C9D 0.18%, #6850FF 109.19%, #DF7A6C 188.8%, #A56057 224.56%)"},_active:{boxShadow:"inset 1px 1px 5px rgb(0 0 0 / 50%)",background:"linear-gradient(180deg, #3A24C2 0%, rgba(38, 59, 227, 0) 100%), linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%), linear-gradient(272.9deg, #002C9D 0.18%, #6850FF 109.19%, #DF7A6C 188.8%, #A56057 224.56%)"},textDecoration:"none !important"}}},Heading:{baseStyle:{letterSpacing:"-0.04em"},variants:{fancy:{backgroundImage:r.qZ.colors.gradient["blue-to-purple"],backgroundClip:"text",color:"transparent"}}}}},l=(0,i.B1)(o,(0,n.A)({colorScheme:"trueblue"}))},17283:function(e,t,s){"use strict";s.d(t,{o8:function(){return r},vt:function(){return n}});var i=s(14274);let n=i.v.NEXT_PUBLIC_GA_ID,r=e=>{var t,s;null===(t=(s=window).gtag)||void 0===t||t.call(s,"config",n,{page_path:e})}},31822:function(e,t,s){"use strict";s.d(t,{q0:function(){return f},FR:function(){return F}});var i=s(52322),n=s(43297),r=s(77533),o=s(30523),l=s(11082),a=s(28535),c=s(82729),d=s(75009),u=s(94523),h=s(39097),p=s.n(h),m=s(16426),g=s(93202),y=s(33579),b=s(42111),x=s(83330),A=s(71508),_=s(78462);let S=e=>{let{authorDisplayName:t,authorImageUrl:s,title:o}=e;return(0,i.jsx)(n.K,{align:"center",direction:"row",alignItems:"flex-start",spacing:2,p:3,m:0,children:t?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.Vw,{mt:.5,display:"inline-block",size:"sm",fontSize:"sm",name:t||"Gamma",src:s||A.Z.src,tooltipProps:{placement:"top"},alignSelf:"center"}),(0,i.jsxs)(n.K,{ml:2,mr:2,spacing:.5,children:[(0,i.jsx)(r.x,{noOfLines:2,lineHeight:1.3,fontSize:["sm","sm","md"],fontWeight:"bold",children:o}),(0,i.jsx)(r.x,{noOfLines:1,fontSize:"xs",color:"gray.600",children:t||"Gamma"})]})]}):(0,i.jsxs)(n.K,{ml:2,mr:2,spacing:.5,children:[(0,i.jsx)(r.x,{noOfLines:2,lineHeight:1.3,fontSize:["sm","sm","md"],fontWeight:"bold",children:o}),(0,i.jsx)(r.x,{children:"\xa0"})]})})},f=e=>{var t;let{deck:s,deckCollectionKey:r}=e;(0,b.ye)("screenshotsEnabled");let u=(0,y.Lq)(s),{data:h}=(0,g.hPC)({variables:{id:u},fetchPolicy:"cache-first",skip:!u||!!(null==s?void 0:null===(t=s.previewImage)||void 0===t?void 0:t.url)||!!(null==s?void 0:s.previewCardId)}),{title:A,previewImageUrl:f,authorDisplayName:C,authorImageUrl:v,slug:D,id:j}=s,w=u&&"inspiration"===r?(0,_.Gn)({docId:u,path:"public"})||"":u&&"templates"===r&&(0,x.iw)({id:s.id,slug:D})||"";return u?(0,i.jsx)(p(),{href:w,passHref:!0,legacyBehavior:!0,children:(0,i.jsx)(o.P,{as:l.r,title:A||void 0,role:"group",position:"relative",bg:"white",borderRadius:"md",shadow:"md",_focus:{shadow:"outline"},_focusWithin:{shadow:"outline"},_hover:{textDecoration:"none",shadow:"lg"},overflow:"hidden",children:(0,i.jsxs)(n.K,{spacing:0,children:[(0,i.jsxs)(a.xu,{tabIndex:0,role:"group",position:"relative",overflow:"hidden",transition:"box-shadow .2s ease",color:"white",children:[(0,i.jsx)(c.o,{ratio:40/21,bgColor:"gray.100",children:(0,i.jsx)(d.E,{src:f,fallbackSrc:m.Z.src,fit:"cover"})}),(0,i.jsx)(a.xu,{position:"absolute",inset:0,bg:"blackAlpha.500",zIndex:1,transitionProperty:"common",transitionDuration:"normal",opacity:0,_groupFocus:{opacity:1},_groupHover:{opacity:1}})]}),(0,i.jsx)(S,{authorImageUrl:v,authorDisplayName:C,title:A})]})})}):(console.error(["[PublicExampleGridItem] docIdToUse is not defined",s]),(0,i.jsx)(i.Fragment,{}))};
1var C=s(38035),v=s(69251),D=s(17190),j=s(74409),w=s(31702),E=s(95632),P=s(90221),k=s(14274),I=s(38095);let T={templates:{title:"Presentation Templates",imageSrc:I.Z.src,imageAlt:"Sal spraying flecks of deck inspiration",description:(0,i.jsxs)(r.x,{children:["Make an awesome deck in seconds with our free presentation templates. If you're curious about what others have made with Gamma, check out our"," ",(0,i.jsx)(p(),{href:"/inspiration",passHref:!0,legacyBehavior:!0,children:(0,i.jsx)(l.r,{color:"trueblue.500",children:" showcase"})})," ","of inspiration decks."]}),metaTitle:"Presentation Templates | Gamma",metaDescription:"Get started quickly with Gamma's slide deck templates",canonicalUrl:"https://gamma.app/templates"},inspiration:{title:"Presentation Inspiration",imageSrc:"/_next/static/media/Sal-SelfieStick.45e3edd1.svg",imageAlt:"Sal holding a selfie stick",description:(0,i.jsxs)(n.K,{spacing:2,w:"100%",children:[(0,i.jsx)(r.x,{children:"Browse through the beautiful decks people have made with Gamma. If you're excited to share with us, tag us with #MadeWithGamma."}),(0,i.jsxs)(r.x,{children:["Looking for presentation templates to help you get a head start? Check out our"," ",(0,i.jsx)(p(),{href:"/templates",passHref:!0,legacyBehavior:!0,children:(0,i.jsx)(l.r,{color:"trueblue.500",children:"free presentation templates"})}),"!"]})]}),metaTitle:"Presentation Inspiration | Gamma",metaDescription:"Explore a public gallery of slide decks created in Gamma",canonicalUrl:"https://gamma.app/inspiration"}};k.v.APPLICATION_ENVIRONMENT;let N=e=>{let{category:t,children:s}=e;return t?(0,i.jsxs)(a.xu,{pb:20,children:[(0,i.jsx)(C.k,{direction:"row",alignItems:"flex-start",justify:"space-between",children:(0,i.jsx)(w.Im,{category:t})}),(0,i.jsx)(v.r,{templateColumns:{base:"repeat(1, 1fr)",sm:"repeat(2, 1fr)",md:"repeat(2, 1fr)",lg:"repeat(3, 1fr)"},gap:10,children:s})]},t.id):(0,i.jsx)(i.Fragment,{})},F=e=>{let{deckCollectionKey:t,categories:s}=e,{title:r,imageSrc:o,imageAlt:l,description:c,metaDescription:u,metaTitle:h,canonicalUrl:p}=T[t];return(0,i.jsxs)(a.xu,{w:"100%","data-testid":"templates-view-container",py:[2,2,10],px:[2,2,8],children:[(0,i.jsx)(E.U,{title:h,description:u,canonicalUrl:p}),(0,i.jsxs)(D.W,{maxW:"80em",p:(0,P.s2)()?4:void 0,children:[(0,i.jsxs)(n.K,{pt:[6,12],pb:[6,20],mb:10,borderBottomColor:"gray.200",borderBottomStyle:"solid",borderBottomWidth:"1px",alignItems:["left","center"],spacing:4,children:[(0,i.jsx)(C.k,{w:["200px"],h:["80px","150px"],children:(0,i.jsx)(d.E,{src:o,alt:l})}),(0,i.jsx)(j.X,{variant:"fancy",size:"2xl",children:r}),(0,i.jsx)(a.xu,{maxW:["100%","80%","80%","60%"],color:"rgba(54, 49, 43, 0.8)",textAlign:["left","center"],fontWeight:"500",fontSize:"lg",children:c})]}),s&&(null==s?void 0:s.length)>0&&(null==s?void 0:s.map(e=>{var s;return(0,i.jsx)(N,{category:e,children:null===(s=e.decks)||void 0===s?void 0:s.map(e=>(0,i.jsx)(f,{deck:e,deckCollectionKey:t},e.docId))},e.id)}))]})]})}},83330:function(e,t,s){"use strict";s.d(t,{Ci:function(){return eJ},AP:function(){return i.AP},q0:function(){return n.q0},P2:function(){return $},XX:function(){return ej},iw:function(){return C}}),s(55001),s(18606);var i=s(82979);s(17283),s(7454);var n=s(31822),r=s(52322),o=s(77533),l=s(11082),a=s(73481),c=s(28535),d=s(97010),u=s(69251),h=s(17190),p=s(43297),m=s(74409),g=s(38035),y=s(39097),b=s.n(y),x=s(5632),A=s(31702),_=s(95632),S=s(14274);let f=e=>"/templates/categories/".concat(e),C=e=>{let{id:t,slug:s,absolute:i=!1}=e;return t?"".concat(i?S.v.FRONTEND_URL:"","/templates/").concat(s?"".concat(s,"-"):"").concat(t):""};var v=s(38095),D=s(90221),j=s(46949),w=s(55478),E=s(74105),P=s(20816),k=s(85573),I=s(92850),T=s(26468),N=s(22226),F=s(97217),L=s(94523),V=s(11881),U=s(75009),R=s(22589),O=s(2784),z=s(16426),M=s(11050),G=s(93441),H=s(81540);let B=e=>{let{onChange:t,query:s,isDisabled:i=!1,isLoading:n=!1}=e;return(0,r.jsxs)(E.B,{size:"lg",variant:"unstyled",children:[(0,r.jsx)(P.Z,{p:4,pointerEvents:"none",color:"gray.300",children:(0,r.jsx)(j.W,{})}),(0,r.jsx)(k.I,{isDisabled:i,placeholder:"Search",p:3,pl:12,border:"none",outline:"none",shadow:"none",value:s,onChange:t,_placeholder:{opacity:1,color:"gray.300"}}),(0,r.jsx)(P.x,{p:4,pointerEvents:"none",color:"gray.500",opacity:n?1:0,transitionProperty:"common",transitionDuration:"normal",mr:(0,D.s2)()?8:0,children:(0,r.jsx)(H.$,{size:"sm"})})]})},W=(0,O.memo)(e=>{let{query:t,children:s}=e,i=RegExp(t,"gi"),n=s.split(i),o=s.match(i);return(0,r.jsx)(r.Fragment,{children:n.map((e,t)=>(0,r.jsxs)(r.Fragment,{children:[e,o&&o[t]&&(0,r.jsx)("mark",{children:o[t]})]}))})});W.displayName="HighlightText";let K=e=>{let{deckEntries:t}=e,s=(0,M.z$)(),[i,n]=(0,O.useState)(""),{push:l}=(0,x.useRouter)(),[a,d]=(0,O.useState)([]),[u,h]=(0,O.useState)(0),m=(0,G.Kt)(d,500),[y,A]=(0,O.useState)(!1),_=(0,O.useCallback)(e=>{let{value:i}=e.target;if(i){A(!0),n(i);let e=t.filter(e=>e.title.toLowerCase().includes(i.toLowerCase())||(0,R.a)(e.description).toLowerCase().includes(i.toLowerCase()))||[];m(()=>(A(!1),null==s||s.track(M.AA.TEMPLATE_SEARCH,{query:i}),e))}else n(""),d([]),h(0)},[s,t,m]),S=(0,O.useCallback)(e=>{if("ArrowDown"===e.key)e.preventDefault(),u>=a.length-1?h(0):h(u+1);else if("ArrowUp"===e.key)e.preventDefault(),u<=0?h(a.length-1):h(u-1);else if("Enter"===e.key&&(e.preventDefault(),a.length)){let e=a[u];if(e){let t=C(e);l(t)}}},[u,l,a]);return(0,r.jsxs)(g.k,{direction:"column",p:2,w:"100%",sx:{mark:{bgColor:"yellow.200"}},onKeyDown:S,children:[(0,r.jsx)(B,{query:i,onChange:_,isLoading:y}),!y&&!!i.length&&(0,r.jsxs)(c.xu,{p:2,children:[(0,r.jsx)(o.x,{ml:2,fontWeight:"600",fontSize:"10px",textTransform:"uppercase",mb:2,color:"gray.400",letterSpacing:"0.5px",children:1===a.length?"1 result":"".concat(a.length," results")}),!!a.length&&a.length>0&&a.map((e,t)=>{let s=C({id:e.id,slug:e.slug}),n=(0,R.a)(null==e?void 0:e.description),l=0>n.indexOf(i)?0:n.indexOf(i),a=l-20<0?0:l-20,c="".concat(a>0?"...":"").concat(n.slice(a,a+200));return(0,r.jsx)(V.f,{cursor:"pointer",children:(0,r.jsx)(b(),{href:s,passHref:!0,legacyBehavior:!0,children:(0,r.jsx)(V.A,{display:"block",_hover:{bgColor:"trueblue.50"},_active:{bgColor:"trueblue.50"},_focusVisible:{bgColor:"trueblue.50",outline:"0 none !important"},borderRadius:"md",children:(0,r.jsxs)(p.K,{direction:"row",p:2,_hover:{bgColor:"trueblue.50"},_active:{bgColor:"trueblue.50"},_focusVisible:{bgColor:"trueblue.50"},bgColor:u===t?"trueblue.50":"none",children:[(0,r.jsx)(U.E,{src:e.previewImageUrl,fallbackSrc:z.Z.src,w:"160px",alt:e.title||"Deck thumbnail"}),(0,r.jsxs)(p.K,{spacing:1,children:[(0,r.jsx)(o.x,{fontWeight:"bold",children:(0,r.jsx)(W,{query:i,children:e.title||""})}),(0,r.jsx)(o.x,{noOfLines:3,fontSize:"sm",children:(0,r.jsx)(W,{query:i,children:c})})]})]})})})},t)})]})]})},q=e=>{let{deckEntries:t,isDark:s=!1}=e,{isOpen:i,onOpen:n,onClose:o}=(0,w.q)({id:"template-search-widget"});return(0,r.jsxs)(c.xu,{mb:8,children:[(0,r.jsx)(L.Wk,{isDark:s,children:(0,r.jsxs)(E.B,{children:[(0,r.jsx)(P.Z,{pointerEvents:"none",children:(0,r.jsx)(j.W,{})}),(0,r.jsx)(k.I,{border:s?"1px solid #4A5568":void 0,bgColor:s?"rgba(255,255,255,0.1)":"white",borderRadius:"full",size:"md",placeholder:"Search templates",_placeholder:{opacity:1},onChange:n,fontSize:"sm",onClick:n,value:""})]})}),(0,r.jsxs)(I.u_,{isOpen:i,onClose:o,onOverlayClick:o,returnFocusOnClose
1:!1,size:"xl",children:[(0,r.jsx)(T.Z,{}),(0,r.jsx)(N.h,{children:(0,r.jsx)(F.f,{p:0,children:(0,r.jsx)(K,{deckEntries:t})})})]})]})},Y={title:"Explore Gamma Templates",imageSrc:v.Z.src,imageAlt:"Sal spraying flecks of deck inspiration",description:(0,r.jsxs)(o.x,{children:["Make an awesome deck in seconds with our free templates. If you're curious about what others have made with Gamma, check out our"," ",(0,r.jsx)(b(),{href:"/inspiration",passHref:!0,legacyBehavior:!0,children:(0,r.jsx)(l.r,{color:"shocking.500",children:" showcase"})})," ","of inspiration decks."]}),metaTitle:"Explore Gamma Templates",metaDescription:"Get started quickly with Gamma's slide deck templates",canonicalUrl:"https://gamma.app/templates"},X=e=>{let{categories:t,currentCategoryId:s}=e,{push:i}=(0,x.useRouter)();return(0,r.jsx)(a.P,{w:"320px",maxW:"100%",placeholder:"Select option",onChange:e=>{i(f(e.target.value))},children:t.map((e,t)=>(0,r.jsx)("option",{value:e.slug,selected:e.id===s,children:e.title},t))})},Z=e=>{let{categories:t,currentCategoryId:s,deckEntries:i}=e;return(0,r.jsxs)(c.xu,{width:"200px",children:[(0,r.jsx)(q,{deckEntries:i}),(0,r.jsx)(o.x,{fontWeight:"600",fontSize:"10px",textTransform:"uppercase",mb:2,color:"gray.400",letterSpacing:"0.5px",children:"Browse by category"}),(0,r.jsx)(d.QI,{listStyleType:"none",marginInlineStart:0,fontSize:"sm",children:t.map(e=>(0,r.jsx)(d.HC,{mb:1,fontWeight:s===e.id?"600":"500",children:(0,r.jsx)(b(),{href:f(e.slug),passHref:!0,legacyBehavior:!0,children:(0,r.jsx)(l.r,{children:e.title})})},e.id))})]})},Q=e=>{let{category:t,children:s}=e;return t?(0,r.jsxs)(c.xu,{pb:20,w:"100%",children:[(0,r.jsx)(A.Im,{category:t}),(0,r.jsx)(u.r,{templateColumns:{base:"repeat(1, 1fr)",sm:"repeat(2, 1fr)",md:"repeat(2, 1fr)",lg:"repeat(3, 1fr)"},gap:10,children:s})]},t.id):(0,r.jsx)(r.Fragment,{})},J=e=>{let{title:t,description:s}=e;return(0,r.jsx)(c.xu,{w:"100%",bgImage:"/_next/static/media/space-time.d1f58d17.jpg",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center center",alignContent:"center",py:20,mt:-i.AP,children:(0,r.jsx)(h.W,{maxW:"80em",h:"100%",children:(0,r.jsxs)(p.K,{alignItems:["left","center"],spacing:4,h:"100%",justifyContent:"center",children:[(0,r.jsx)(m.X,{color:"white",size:"2xl",fontWeight:"500",children:(0,r.jsx)(b(),{href:"/templates",passHref:!0,legacyBehavior:!0,children:(0,r.jsx)(l.r,{_hover:{textDecoration:"none",color:"whiteAlpha.900"},children:t})})}),(0,r.jsx)(c.xu,{maxW:["100%","80%","80%","60%"],color:"whiteAlpha.800",textAlign:["left","center"],fontWeight:"500",fontSize:"md",children:s})]})})})},$=e=>{var t;let{category:s,categories:i,deckEntries:o}=e,{title:l,imageSrc:a,imageAlt:d,description:u,metaDescription:p,metaTitle:m,canonicalUrl:y}=Y;return(0,r.jsxs)(c.xu,{w:"100%","data-testid":"templates-view-container",minH:"80vh",children:[(0,r.jsx)(_.U,{title:"".concat(s.title," Templates | ").concat(m),description:p,canonicalUrl:y}),(0,r.jsx)(J,{title:l,description:u}),(0,r.jsxs)(h.W,{maxW:"80em",p:(0,D.s2)()?4:void 0,mt:20,children:[(0,r.jsx)(g.k,{display:["block","block","none"],my:8,children:(0,r.jsx)(X,{categories:i,currentCategoryId:s.id})}),(0,r.jsxs)(g.k,{direction:"row",children:[(0,r.jsx)(c.xu,{display:["none","none","block"],mr:8,children:(0,r.jsx)(Z,{categories:i,deckEntries:o,currentCategoryId:s.id})}),(0,r.jsx)(Q,{category:s,children:null===(t=s.decks)||void 0===t?void 0:t.map(e=>(0,r.jsx)(n.q0,{deck:e,deckCollectionKey:"templates"},e.docId))},s.id)]})]})]})};var ee=s(89099),et=s(16556);let es=e=>{let{categories:t}=e;return(0,r.jsx)(c.xu,{w:"100%",bg:"black",children:(0,r.jsx)(h.W,{maxW:"70em",h:"100%",justifyContent:"center",position:"relative",color:"white",py:20,pb:32,children:(0,r.jsxs)(p.K,{spacing:6,children:[(0,r.jsx)(m.X,{textAlign:"center",size:"xl",children:"Explore by category"}),(0,r.jsx)(ee.E,{justify:"center",spacing:4,children:t.map(e=>{let t=f(e.slug);return(0,r.jsx)(b(),{href:t,passHref:!0,legacyBehavior:!0,children:(0,r.jsx)(l.r,{_hover:{textDecoration:"none",color:"whiteAlpha.900"},children:(0,r.jsx)(et.Vp,{size:"lg",borderRadius:"full",variant:"solid",p:2,px:6,colorScheme:"transparent",border:"1px solid rgba(255,255,255,0.2)",bg
1:"rgba(255,255,255,0.07)",_hover:{bg:"rgba(255,255,255,0.1)"},children:e.title})})},e.slug)})})]})})})};var ei=s(33570),en=s(69339),er=s(62614),eo=s(32899),el=s(20204),ea=s(89140),ec=s(82562);let ed={renderNode:{[ec.BLOCKS.PARAGRAPH]:function(e,t){return(0,r.jsx)(o.x,{fontSize:"sm",mb:4,children:t})},[ec.BLOCKS.UL_LIST]:function(e,t){return(0,r.jsx)(d.QI,{ml:2,children:t})},[ec.BLOCKS.OL_LIST]:function(e,t){return(0,r.jsx)(d.GS,{ml:2,children:t})},[ec.BLOCKS.QUOTE]:function(e,t){return(0,r.jsx)(c.xu,{as:"blockquote",borderLeft:"4px solid",borderColor:"gray.200",pl:4,mb:4,children:t})},[ec.BLOCKS.LIST_ITEM]:function(e,t){return(0,r.jsx)(d.HC,{ml:4,children:t})},[ec.INLINES.HYPERLINK]:function(e,t){let{uri:s}=e.data;return(0,r.jsx)(b(),{href:s,passHref:!0,children:(0,r.jsx)(l.r,{color:"trueblue.500",children:t})})},[ec.INLINES.ENTRY_HYPERLINK]:function(e,t){let{sys:s}=e.data.target,{id:i}=s;return(0,r.jsx)(b(),{href:C({id:i}),passHref:!0,children:(0,r.jsx)(l.r,{color:"trueblue.500",children:t})})}}};var eu=s(71508);let eh=e=>{let{templateEntry:t}=e,{title:s,previewImageUrl:i,authorDisplayName:n,authorImageUrl:a,slug:d,description:u,id:h}=t,y=(0,el.h)(u,ed),x=C({id:h,slug:d,absolute:!0});return(0,r.jsxs)(g.k,{w:"100%",position:"relative",overflow:"hidden",borderRadius:"xl",border:"1px solid #222",justifyContent:"center",minHeight:"360px",children:[(0,r.jsx)(c.xu,{w:"100%",h:"100%",position:"absolute",children:(0,r.jsx)(U.E,{w:"100%",height:"100%",src:i,zIndex:0,filter:"blur(10px) brightness(0.5)",transform:"scale(3)",transformOrigin:"top center"})}),(0,r.jsxs)(p.K,{position:"relative",p:[4,4,12],zIndex:"999",direction:["column","column","row"],color:"white",spacing:8,children:[(0,r.jsxs)(p.K,{direction:"column",spacing:2,width:["100%","100%","50%"],children:[(0,r.jsx)(U.E,{src:i,fallbackSrc:z.Z.src,fit:"cover",borderRadius:"md"}),(0,r.jsxs)(p.K,{align:"center",direction:"row",alignItems:"center",spacing:2,color:"white",children:[(0,r.jsx)(L.Vw,{mt:.5,label:n,display:"inline-block",size:"sm",fontSize:"sm",name:n||"Gamma",src:a||eu.Z.src,background:"transparent",border:"1px solid white"}),(0,r.jsx)(p.K,{ml:2,mr:2,spacing:.5,children:(0,r.jsxs)(o.x,{noOfLines:1,fontSize:"xs",children:["Created by ",n||"Gamma"]})})]})]}),(0,r.jsxs)(p.K,{direction:"column",width:["100%","100%","50%"],spacing:4,justifyContent:"center",children:[(0,r.jsx)(o.x,{bgColor:"rgba(255,255,255,0.1)",color:"white",px:4,py:1,borderRadius:"xl",fontSize:"xs",display:"flex",fontWeight:"bold",w:"fit-content",children:"Featured template"}),(0,r.jsx)(m.X,{size:"lg",fontFamily:"Inter, sans-serif",letterSpacing:"-1px",fontWeight:"800",children:s}),y&&(0,r.jsx)(c.xu,{noOfLines:3,mb:2,...(0,D.G6)()||(0,D.s2)()?{overflow:"hidden !important",display:"block !important"}:{},maxHeight:"3.9375rem",children:y}),(0,r.jsx)(b(),{passHref:!0,href:x,legacyBehavior:!0,children:(0,r.jsx)(er.z,{rightIcon:(0,r.jsx)(ei.X,{}),as:l.r,w:"fit-content",variant:"fancy",children:"Go to template"})})]})]})]})},ep={next:{styleProps:{right:0,bg:"linear-gradient(to left, rgba(0,0,0,0.5), transparent)"},icon:(0,r.jsx)(ei.X,{}),label:"Next"},prev:{styleProps:{left:0,bg:"linear-gradient(to right, rgba(0,0,0,0.5), transparent)"},icon:(0,r.jsx)(en.w,{}),label:"Previous"}},em=e=>{let{type:t,onClick:s}=e,{styleProps:i,icon:n,label:o}=ep[t];return(0,r.jsx)(g.k,{height:"100%",position:"absolute",width:"80px",onClick:s,zIndex:"999",cursor:"pointer",justifyContent:"center",alignItems:"center",role:"group",...i,children:(0,r.jsx)(eo.h,{"aria-label":o,_groupHover:{color:"rgba(255,255,255,1)"},color:"white",variant:"transparent",icon:n,zIndex:"9999",fontSize:"6xl",filter:"drop-shadow(1px 1px 4px rgb(0 0 0 / 0.5))"})})},eg=e=>{let{featuredTemplates:t}=e,s=Math.floor(Math.round(t.length/2))-1,[i,n]=(0,ea.Z)({startIndex:s,inViewThreshold:.5,draggable:!1}),[o,l]=(0,O.useState)(s),a=(0,O.useCallback)(()=>{n&&n.scrollPrev()},[n]),d=(0,O.useCallback)(()=>{n&&n.scrollNext()},[n]),u=(0,O.useCallback)(e=>{"next"===e?d():"prev"===e&&a()},[d,a]);return(0,O.useEffect)(()=>{if(!n)return;let e=()=>{l(n.slidesInView(!0)[0])};return n.on("reInit",e),n.on("init",e),n.on("select",e),()=>{n.off("select",e)}}),(0,r.jsx)(c.xu,{w:"100%",bg:"black",children:(0,r.jsxs)(h.W,{maxW:"70em",h:"100%",justifyContent:"center",position:"relative",children:[o<t.length-1&&(0,r.jsx)(em,{type:"next",onClick:()=>u("next")}),o>0&&(0,r.jsx)(em,{type:"prev",onClick:()=>u("prev")}),(0,r.jsx)(g.k,{ref:i,overflow:"hidden",position:"relative",className:"carousel-container",children:(0,r.jsx)(g.k,{display:"flex",w:"88%",marginLeft:"6%",children:t.map((e,t)=>(0,r.jsx)(c.xu,{flex:"0 0 100%",minWidth:"0",my:0,mx:-4,alignSelf:"center",transform:o===t?"scale(1)":"scale(0.9)",zIndex:o===t?99:void 0,children:(0,r.jsx)(eh,{templateEntry:e})},t))})})]})})};var ey=s(73235),eb=s(28165),ex=s(24772),eA=s(5879);function e_(){let e=(0,ey._)(["\nfrom { margin-left: -20%;}\nto { margin-left: 0%;}\n"]);return e_=function(){return e},e}let eS=[13,12,13],ef=(0,eb.F4)(e_()),eC=e=>{let{deckEntries:t,ind:s}=e,i="".concat(ef," infinite ").concat(eS[s],"s linear alternate");return(0,r.jsx)(p.K,{animation:i,direction:"row",w:"fit-content",spacing:4,paddingLeft:s%2==0?"0%":"".concat(125,"px"),children:t.map((e,t)=>(0,r.jsx)(c.xu,{borderRadius:"md",width:"".concat(250,"px"),overflow:"hidden",children:(0,r.jsx)(U.E,{w:"".concat(250,"px"),h:"auto",src:e.previewImageUrl})},t))})},ev=e=>{let{title:t,description:s,deckEntries:n,onBrowseAllClick:a}=e,d=Math.floor(n.length/3),u=2*Math.floor(n.length/3),y=3*Math.floor(n.length/3),x=(0,ex.S)(["100%","100%","45%"]);return(0,r.jsx)(c.xu,{w:"100%",bg:"black",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center center",alignContent:"center",py:8,pt:i.AP,mt:-i.AP,children:(0,r.jsx)(h.W,{maxW:"70em",h:"100%",children:(0,r.jsxs)(c.xu,{width:"100%",position:"relative",children:[(0,r.jsx)(g.k,{position:"absolute",w:"100%",zIndex:"2",alignItems:"center",h:"100%",px:[0,0,12],children:(0,r.jsxs)(p.K,{spacing:4,color:"white",w:x,children:[(0,r.jsx)(m.X,{color:"white",size:"2xl",fontWeight:"500",children:(0,r.jsx)(l.r,{as:b(),href:"/templates",_hover:{textDecoration:"none",color:"whiteAlpha.900"},children:t})}),(0,r.jsx)(o.x,{children:s}),(0,r.jsxs)(p.K,{direction:["column","column","row"],spacing:4,children:[(0,r.jsx)(q,{deckEntries:n,isDark:!0}),(0,r.jsx)(er.z,{rightIcon:(0,r.jsx)(ei.X,{}),as:l.r,colorScheme:"transparent",onClick:a,children:(0,r.jsx)(eA.cC,{id:"O+m8q9"})})]})]})}),(0,r.jsx)(c.xu,{pointerEvents:"none",bg:"linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 50%, rgba(0,0,0,0.9) 75%, transparent 100%);",position:"absolute",zIndex:"1",w:"calc(".concat(x," + 100px)"),h:"100%",left:0}),(0,r.jsx)(c.xu,{pointerEvents:"none",bg:"linear-gradient(to left, black, transparent 100%);",position:"absolute",zIndex:"1",w:"140px",right:0,h:"100%"}),(0,r.jsxs)(p.K,{spacing:4,padding:4,overflow:"hidden",pointerEvents:"none",children:[(0,r.jsx)(eC,{deckEntries:n.slice(0,d),ind:0}),(0,r.jsx)(eC,{deckEntries:n.slice(d,u),ind:1}),(0,r.jsx)(eC,{deckEntries:n.slice(u,y),ind:2})]})]})})})},eD={title:"Explore Gamma Templates",imageSrc:v.Z.src,imageAlt:"Sal spraying flecks of deck inspiration",description:"Explore what you can craft with Gamma. Templates are only the beginning.",metaTitle:"Explore Gamma Templates",metaDescription:"Get started quickly with Gamma's slide deck templates",canonicalUrl:"https://gamma.app/templates"},ej=e=>{var t;let{categories:s,deckEntries:i,featuredTemplates:o}=e,l=(0,O.useRef)(null),{title:a,description:d,metaDescription:p,metaTitle:m,canonicalUrl:y}=eD;return(0,r.jsxs)(c.xu,{w:"100%","data-testid":"templates-view-container",minH:"80vh",children:[(0,r.jsx)(_.U,{title:m,description:p,canonicalUrl:y}),(0,r.jsx)(ev,{title:a,description:d,deckEntries:i,onBrowseAllClick:()=>{l.current&&l.current.scrollIntoView({behavior:"smooth"})}}),(0,r.jsx)(eg,{featuredTemplates:o}),(0,r.jsx)(es,{categories:s}),(0,r.jsx)(h.W,{maxW:"70em",p:(0,D.s2)()?4:void 0,mt:20,children:(0,r.jsx)(g.k,{direction:"row",justifyContent:"center",children:(0,r.jsx)(u.r,{w:"100%",templateColumns:{base:"repeat(1, 1fr)",sm:"repeat(2, 1fr)",md:"repeat(2, 1fr)",lg:"repeat(3, 1fr)"},gap:10,ref:l,pb:20,children:null===(t=i.slice(0,20))||void 0===t?void 0:t.map(e=>(0,r.jsx)(n.q0,{deck:e,deckCollectionKey:"templates"},e.docId))})})})]})};var ew=s(25215),eE=s(58450),eP=s(41421),ek=s(30523),eI=s(47443),eT=s(52929),eN=s(74444),eF=s(42946),eL=s(49929),eV=s(33579),eU=s(78462);let eR=e=>{let{authorDisplayName:t,authorImageUrl:s,title:i}=e;return(0,r.jsxs)(p.K,{align:"center",direction:"row",alignItems:"center",spacing:2,children:[(0,r.jsx)(L.Vw,{mt:.5,label:t,display:"inline-block",size:"sm",fontSize:"sm",name:t||"Gamma",src:s||eu.Z.src,background:"transparent",border:"1px solid white"}),(0,r.jsx)(p.K,{ml:2,mr:2,spacing:.5,children:(0,r.jsxs)(o.x,{noOfLines:1,fontSize:"xs",color:"gray.600",children:["Created by ",t||"Gamma"]})})]})};var eO=s(42822);let ez=e=>{let{categories:t}=e;if(!t||0===t.length)return null;let s=t.find(e=>"popular"!==e.slug)||t[0];return(0,r.jsxs)(p.K,{spacing:12,my:20,children:[(0,r.jsxs)(m.X,{textAlign:"center",children:["Explore more"," ",(0,r.jsx)(b(),{passHref:!0,href:f(s.slug),legacyBehavior:!0,children:(0,r.jsx)(l.r,{as:"span",backgroundImage:L.qZ.colors.gradient["blue-to-purple"],backgroundClip:"text",color:"transparent",_hover:{borderBottom:"2px s
1olid var(--chakra-colors-shocking-500)"},children:s.title})})," ","templates"]}),(0,r.jsx)(u.r,{templateColumns:{base:"repeat(1, 1fr)",sm:"repeat(2, 1fr)",md:"repeat(2, 1fr)",lg:"repeat(3, 1fr)"},gap:10,children:s.decks.map(e=>(0,r.jsx)(n.q0,{deck:e,deckCollectionKey:"templates"},e.docId))}),(0,r.jsx)(eO.M,{children:(0,r.jsx)(b(),{href:"/templates",passHref:!0,legacyBehavior:!0,children:(0,r.jsx)(l.r,{variant:"link",color:"trueblue.500",children:"See all presentation templates â"})})})]})};var eM=s(49259),eG=s(87436),eH=s(95897),eB=s(89511),eW=s(11121),eK=s(29094);let eq=[{image:"/_next/static/media/Sal-Flying-2x.c9896a58.png",title:"Waaayyy faster than Powerpoint",body:"With a writing-based interface and one-click themes, stop wasting time pushing around boxes and start focusing on what matters: your ideas."},{image:eK.Z.src,title:"The brevity of slides with the clarity of memos",body:"Pull out key points, and let people drill into details with nested cards and footnotes. Every deck doubles as a readable, standalone doc with the full context."},{image:v.Z.src,title:"Beautiful and interactive",body:"Bring your ideas to life with interactive embeds: images, videos, diagrams, and even entire websites. Invite people to comment and react on your ideas."}],eY=[{icon:eF.pkM,title:"Easy and writing based",body:"Gamma is easy to learn: think Notion meets Canva."},{icon:eF.iOm,title:"Built for collaboration",body:"Works great for teams working in real time or async. Keep the discussion going with comments and reactions."},{icon:eF.koM,title:"Analytics",body:"See how your decks are being used, and which cards are getting the most engagement."},{icon:eF.EfQ,title:"Easy to share",body:"Share a link or embed your deck. On mobile devices, Gammas are optimized for readability."},{icon:eF.q2v,title:"One-click themes",body:"Add your company colors and logos."},{icon:eF.gSj,title:"Export to PDF",body:"Export your deck to a PDF for easy sharing and offline reading."}],eX=[{question:"How do I get started?",answer:(0,r.jsxs)(o.x,{children:["Just"," ",(0,r.jsxs)(l.r,{color:"trueblue.500",href:"/signup",children:[" ","sign up"]})," ","for a free account and start creating decks. You can import from Google docs, copy and paste from just anywhere, or you can duplicate an existing template and customize it for your needs."]})},{question:"How much does it cost?",answer:(0,r.jsxs)(o.x,{children:["Gamma is completely free to use right now during our Public Beta. Please visit our"," ",(0,r.jsxs)(l.r,{color:"trueblue.500",href:i.mc.pricing,children:[" ","pricing page"]})," ","for more info."]})},{question:"Can I collaborate with others on a deck?",answer:"Yes, Gamma was built with real time collaboration in mind. As you and your collaborators make edits, you'll see each other's cursors. You can also comment and react on blocks."},{question:"How do I share a deck?",answer:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.x,{mb:6,children:"You can share your deck in the following ways:"}),(0,r.jsxs)(d.GS,{mb:6,children:[(0,r.jsx)(d.HC,{children:"Export as a PDF"}),(0,r.jsx)(d.HC,{children:"Invite people via email with a link with a special token that acts like a password"}),(0,r.jsx)(d.HC,{children:"Make your deck public, and share the public URL"}),(0,r.jsx)(d.HC,{children:"Make your deck public, and embed it somewhere "})]}),(0,r.jsxs)(o.x,{children:["If you are part of a team workspace, you can add workspace members one by one to your decks, or you can give your entire workspace permission to view, comment on, or edit your deck."," "]})]})},{question:"How is Gamma different from Powerpoint and Google Slides?",answer:"Gamma frees you from the constraints of a traditional slide. With flexible, expandable cards, you won't need to shrink your ideas to fit on a fixed rectangle."},{question:"Can I create my own company-branded theme in Gamma?",answer:"Yep! You can easily create themes from our theme editor."},{question:"How can I keep track of your latest features?",answer:(0,r.jsxs)(o.x,{children:["Check out our"," ",(0,r.jsx)(l.r,{color:"trueblue.500",href:i.mc.changeLog,children:"Change Log"})," ","for the latest updates."]})},{question:"I have questions that aren't answered here.",answer:(0,r.jsxs)(o.x,{children:["Check out our"," ",(0,r.jsx)(l.r,{color:"trueblue.500",href:i.mc.help,children:"Help Center"}),"."]})}],eZ=()=>(0,r.jsxs)(p.K,{spacing:40,w:"100%",pt:20,children:[(0,r.jsxs)(p.K,{spacing:20,children:[(0,r.jsx)(m.X,{textAlign:"center",children:"Why try Gamma?"}),(0,r.jsx)(u.r,{gridTemplateColumns:["autofit","autofit","1fr 1fr 1fr"],gap:10,children:eq.map(e=>{let{title:t,body:s,image:i}=e;return(0,r.jsx)(ek.P,{children:(0,r.jsxs)(p.K,{spacing:6,children:[i&&(0,r.jsx)(c.xu,{h:"140px",maxH:"140px",w:"auto",alignSelf:"center",children:(0,r.jsx)(U.E,{src:i,maxW:"100%",maxH:"100%"})}),(0,r.jsxs)(p.K,{spacing:2,children:[(0,r.jsx)(m.X,{size:"md",children:t}),(0,r.jsx)(o.x,{color:"gray.700",children:s})]})]})},t)})})]}),(0,r.jsxs)(p.K,{spacing:20,children:[(0,r.jsx)(m.X,{textAlign:"center",children:"Other benefits of using Gamma"}),(0,r.jsx)(u.r,{gridTemplateColumns:["autofit","autofit","1fr 1fr"],gap:10,w:"max-content",maxW:"100%",alignSelf:"center",children:eY.map(e=>{let{title:t,body:s,icon:i}=e;return(0,r.jsx)(ek.P,{children:(0,r.jsxs)(p.K,{direction:"row",spacing:6,alignItems:"center",children:[(0,r.jsx)(c.Cd,{bgColor:"trueblue.50",size:"3em",children:(0,r.jsx)(eL.G,{icon:i,size:"1x"})}),(0,r.jsxs)(p.K,{spacing:1,children:[(0,r.jsx)(m.X,{size:"sm",children:t}),(0,r.jsx)(o.x,{color:"gray.700",children:s})]})]})},t)})})]}),(0,r.jsxs)(p.K,{spacing:20,alignItems:"center",children:[(0,r.jsx)(m.X,{textAlign:"center",children:"FAQ"}),(0,r.jsx)(eM.U,{defaultIndex:[0],allowMultiple:!0,w:["100%","100%","80%"],children:eX.map((e,t)=>{let{question:s,answer:i}=e;return(0,r.jsxs)(eG.Q,{children:[(0,r.jsxs)(eH.K,{children:[(0,r.jsx)(c.xu,{p:2,flex:"1",textAlign:"left",fontWeight:"bold",fontSize:"lg",children:s}),(0,r.jsx)(eB.X,{})]}),(0,r.jsx)(eW.H,{pb:4,children:(0,r.jsx)(c.xu,{px:2,children:i})})]},t)})})]})]}),eQ="70em",eJ=e=>{let{deck:t}=e,{title:s,authorDisplayName:i,authorImageUrl:n,previewImageUrl:a,description:d,categories:y,id:x,slug:A}=t,S=(0,el.h)(d,ed),f=(0,eV.Lq)(t),v=(0,eU.Gn)({docId:f,path:"example"}),j=C({id:x,slug:A,absolute:!0});return(0,r.jsxs)(c.xu,{w:"100%",mt:[5,5,20],mb:20,children:[(0,r.jsx)(_.U,{title:"".concat("".concat(s," Template")," | Gamma"),canonicalUrl:j,imageUrl:a}),(0,r.jsxs)(p.K,{spacing:(0,D.s2)()?2:10,children:[(0,r.jsx)(h.W,{maxW:eQ,p:(0,D.s2)()?4:void 0,alignSelf:"center",children:(0,r.jsxs)(p.K,{spacing:10,children:[(0,r.jsxs)(ew.a,{color:"gray.600",fontSize:"sm",separator:(0,r.jsx)(c.xu,{c
1olor:"gray.300",children:(0,r.jsx)(eL.G,{icon:eF.yOZ})}),children:[(0,r.jsx)(eE.g,{children:(0,r.jsx)(b(),{href:"/templates",passHref:!0,legacyBehavior:!0,children:(0,r.jsx)(eP.A,{children:"Templates"})})}),(0,r.jsx)(eE.g,{isCurrentPage:!0,children:(0,r.jsx)(b(),{href:C({id:x,slug:A}),passHref:!0,legacyBehavior:!0,children:(0,r.jsx)(eP.A,{color:"gray.500",children:s})})})]}),(0,r.jsxs)(u.r,{gridTemplateColumns:["autofit","autofit","3fr 1fr"],gap:10,children:[(0,r.jsx)(ek.P,{children:(0,r.jsxs)(p.K,{spacing:4,children:[(0,r.jsx)(m.X,{size:"lg",variant:"fancy",children:t.title}),(0,D.s2)()?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eR,{authorImageUrl:n,authorDisplayName:i}),S]}):(0,r.jsx)(r.Fragment,{children:S})]})}),!(0,D.s2)()&&(0,r.jsx)(ek.P,{display:"block",children:(0,r.jsxs)(p.K,{spacing:4,children:[(0,r.jsx)(b(),{passHref:!0,href:v,legacyBehavior:!0,children:(0,r.jsx)(er.z,{width:"100%",variant:"fancy",as:l.r,textDecoration:"none !important",target:"_blank",size:"lg",children:"Use this template â"})}),(0,r.jsx)(o.x,{fontSize:"xs",color:"gray.600",children:"Free"}),(0,r.jsx)(eR,{authorImageUrl:n,authorDisplayName:i})]})})]}),(0,D.s2)()&&(0,r.jsxs)(eI.b,{status:"info",alignItems:"flex-start",children:[(0,r.jsx)(eT.z,{}),(0,r.jsx)(eN.X,{fontSize:"sm",children:"Below is a preview of this template on mobile. To experience the full magic of Gamma, please open this webpage on a desktop browser."})]})]})}),(0,r.jsx)(g.k,{w:"100%",h:(0,D.s2)()?"80vh":"100vh",p:(0,D.s2)()?2:void 0,bgColor:(0,D.s2)()?void 0:"blackAlpha.900",justify:"center",alignSelf:"center",children:(0,r.jsx)(c.xu,{w:["100vw","calc(90vw)"],h:(0,D.s2)()?"100%":"90vh",borderRadius:"xl",border:"3px solid var(--chakra-colors-gray-200)",overflow:"hidden",alignSelf:"center",children:(0,r.jsx)("iframe",{src:"/demo/".concat(f),width:"100%",height:"100%",allow:"fullscreen",title:"Gamma embed"})})}),(0,r.jsxs)(h.W,{maxW:eQ,p:(0,D.s2)()?4:void 0,alignSelf:"center",children:[(0,r.jsx)(ez,{categories:y}),(0,r.jsx)(eZ,{})]})]})]})}},25944:function(e,t,s){"use strict";s.d(t,{bf:function(){return g},iZ:function(){return p},lh:function(){return h},wK:function(){return m}});var i=s(2784),n=s(42111),r=s(91994),o=s(47968),l=s(90604),a=s(56400),c=s(99268);let d=e=>Math.random()<=1/e;class u{setupProvider(){this.t1SetupProvider||(this.t1SetupProvider=performance.now())}downloadDoc(){this.t2DownloadDoc||(this.t2DownloadDoc=performance.now())}onCreate(){this.t3OnCreate||(this.t3OnCreate=performance.now())}report(){return null===this.t1SetupProvider||null===this.t2DownloadDoc||null===this.t3OnCreate?null:{downloadDoc:this.t2DownloadDoc-this.t1SetupProvider,onCreate:this.t3OnCreate-this.t2DownloadDoc}}constructor(){this.t1SetupProvider=null,this.t2DownloadDoc=null,this.t3OnCreate=null}}let h=(e,t)=>{let s=(0,r.CG)(o.Pw),n=(0,i.useRef)(s);(0,i.useEffect)(()=>{n.current=s},[s]),(0,i.useEffect)(()=>{if(e)return window.addEventListener("keydown",s,!0),()=>{window.removeEventListener("keydown",s,!0)};function s(e){let s=e.target.closest(".ProseMirror");if(!s||!n.current||!d(t))return;let i=performance.now();requestAnimationFrame(()=>{let t=e.key;" "===t&&(t="Space");let s=performance.now()-i;(0,c.EF)({...(0,a.H)(),key:t,duration:s})})}},[e,n,t])},p=()=>{let e=(0,n.ye)("rumSampleRate");(0,i.useEffect)(()=>{(0,c._k)(e)},[e])},m=e=>{let t=(0,i.useCallback)(t=>{let{isFullscreen:s=!1}=t;if(!e)return;let i=performance.now();requestAnimationFrame(()=>{requestAnimationFrame(()=>{let e=performance.now()-i;(0,c.gG)({...(0,a.H)(),toMode:l.q.SLIDE_VIEW,duration:e,isFullscreen:s})})})},[e]),s=(0,i.useCallback)(t=>{let{isFullscreen:s=!1}=t;if(!e)return;let i=performance.now();requestAnimationFrame(()=>{requestAnimationFrame(()=>{let e=performance.now()-i;(0,c.gG)({...(0,a.H)(),toMode:l.q.DOC_VIEW,duration:e,isFullscreen:s})})})},[e]);return{recordExitSlideModePerformance:s,recordEnterSlideModePerformance:t}},g=()=>{let[e]=(0,i.useState)(()=>new u),t=(0,i.useCallback)(()=>{e.setupProvider()},[e]),s=(0,i.useCallback)(()=>{e.downloadDoc()},[e]),n=(0,i.useCallback)(()=>{e.onCreate();let t=e.report();if(null===t){console.warn("[HoneycombDocLoadTimer] failed to generate doc timings");return}(0,c.Py)({...(0,a.H)(),duration:t.onCreate}),(0,c.aZ)({...(0,a.H)(),duration:t.downloadDoc})},[e]);return{timeOnCreate:n,timeOnSetupProvider:t,timeOnDownloadDoc:s}}},89311:function(e,t,s){"use strict";s.d(t,{l:function(){return l}});
1var i=s(5632),n=s(2784),r=s(7e4),o=s(88640);let l=()=>{let{pathname:e,isReady:t}=(0,i.useRouter)(),s=(0,n.useRef)(!1),[l,a]=(0,r.X)(o.H.lastHomeUrl,"/");(0,n.useEffect)(()=>{if(s.current||!t)return;let i="/inspiration"===e||"/templates"===e?e:"/";a(i),s.current=!0},[a,t,e])}},84405:function(e,t,s){"use strict";s.d(t,{J:function(){return o},Q:function(){return r}});var i=s(11050),n=s(25566);let r=e=>{let{doc_id:t,source:s,source_doc_id:r,channel:o,extra:l}=e;null===i.co||void 0===i.co||i.co.track(n.AA.DOC_CREATED,{doc_id:t,source_doc_id:r,source:s,channel:o,extra:l})},o=e=>{let{docId:t,type:s,source:r}=e;if(!t){console.debug("[trackDocShareLinkCopiedEvent]: doc_id is required");return}null===i.co||void 0===i.co||i.co.track(n.AA.DOC_SHARELINK_COPIED,{doc_id:t,source:r,type:s})}},53596:function(e,t,s){"use strict";s.d(t,{n:function(){return _}});var i=s(52322),n=s(28535),r=s(82554),o=s(38035),l=s(77533),a=s(73200),c=s(5879),d=s(2784),u=s(50260),h=s(5200),p=s(13608),m=s(22569),g=s(87205),y=s(15151),b=s(27333),x=s(5995),A=s(89098);let _=(0,d.memo)(e=>{var t;let{theme:s,variant:d="outline",..._}=e,{contentStyles:f}=s.config,C=(0,m.R5)(s),v=(0,u.wj)(s),D=(0,x.l)(s),j=(0,y.J)(s,!1),w=(0,A.c)(s),E=(0,m.wh)(C,v,g.Iv),P=null===(t=s.config.accentBackgrounds)||void 0===t?void 0:t[0],k=P?(0,m.wh)(P,v,g.Iv):{},I=P?{display:"grid",gridTemplateRows:"minmax(2.5em, auto) auto",gridTemplateAreas:'"accent" "body"',gridTemplateColumns:"1fr",overflow:"hidden"}:{},T=S(s);return(0,i.jsxs)(n.xu,{css:D,sx:j,w:"100%",pos:"relative",children:[T&&null===s.workspaceId&&(0,i.jsx)(r.C,{pos:"absolute",right:-1,top:-1,zIndex:1,colorScheme:"green",children:(0,i.jsx)(c.cC,{id:"isRobC"})}),(0,i.jsxs)(o.k,{borderTopRadius:"ghost"===d?"none":"md",boxShadow:"sm",_focus:{boxShadow:"outline"},p:"1em",transitionProperty:"common",transitionDuration:"normal",...E,backgroundAttachment:"initial",direction:"row",align:"center",..._,children:[(0,i.jsx)(h.P,{theme:s}),(0,i.jsxs)(n.xu,{sx:{...w.cardSx,...f},...I,borderRadius:"base",className:"".concat(p.pL," ").concat(v?"is-dark":""),color:v?"white":"gray.900",flex:1,pointerEvents:"none",children:[P&&(0,i.jsx)(n.xu,{gridArea:'"accent"',...k}),(0,i.jsxs)(n.xu,{gridArea:P?'"body"':void 0,py:P?2:4,px:4,children:[(0,i.jsx)(l.x,{className:"block-title",mt:"0 !important",mb:"".concat(P?"0":"var(--chakra-space-1)"," !important"),children:(0,i.jsx)(l.x,{as:"span",className:(0,a.cx)("title",b.A8),fontSize:"1.6em !important",paddingBottom:"0 !important",children:(0,i.jsx)(c.cC,{id:"MHrjPM"})})}),(0,i.jsx)(l.x,{fontSize:"0.9em !important",noOfLines:3,className:"block block-paragraph",my:"0 !important",children:(0,i.jsx)(c.cC,{id:"U41VTK",components:{0:(0,i.jsx)(l.x,{as:"a",className:"link"})}})})]})]})]})]})});_.displayName="ThemePreviewThumbnail";let S=e=>{if(!e.createdTime)return!1;let t=new Date(e.createdTime),s=new Date;return s.setDate(s.getDate()-30),t>s}},46409:function(e,t,s){"use strict";s.d(t,{Y:function(){return R}});var i=s(52322),n=s(84586),r=s(28165),o=s(2784),l=s(13608),a=s(71997),c=s(4878);let d={fontSize:"var(--chakra-fontSizes-sm) !important",fontFamily:'"Inter", sans-serif !important',fontWeight:"500 !important",lineHeight:"1.5 !important",textTransform:"none",letterSpacing:"normal !important",textAlign:"left !important",margin:"0 !important",color:"var(--chakra-colors-gray-900) !important",background:"none !important",blockquote:{borderLeftWidth:"0px !important",borderLeftStyle:"solid !important",borderLeftColor:"transparent !important",padding:"0 !important",color:"var(--chakra-colors-gray-900) !important",fontStyle:"normal !important"},border:"0 none !important",padding:"0 !important",content:'""'},u={...d,color:"var(--chakra-colors-blue-500) !important","&:hover":{textDecoration:"underline"},cursor:"pointer"},h={"p,h1,h2,h3,h4,h5,h6, .title, .section-title":{...d,margin:0},a:u,"ul, ol":{marginLeft:"1.2em"},blockquote:{borderLeft:"3px solid var(--chakra-colors-gray-200)",paddingLeft:"0.5em"},color:"var(--chakra-colors-gray-900) !important",wordBreak:"break-word",lineHeight:"1.5 !important",letterSpacing:"normal !important",".mention":{bgColor:"trueblue.50",whiteSpace:"break-spaces"}},p={fontFamily:'"Inter", sans-serif !important',fontWeight:"500","@media screen and (max-width: 30rem)":{".controls-wrapper":{}},"@media screen and (min-width: 30rem)":{".controls-wrapper":{paddingLeft:"var(--comment-padding)"},".controls-wrapper__gridLayout, .controls-wrapper__gallery":{paddingLeft:"calc(-1 * var(--grid-padding) + var(--comment-padding))"}},".comments-list":{".comments-sign-up":{a:{...d,...u,fontSize:"xs",color:"gray.500",fontWeight:"bold","&:hover":{color:"gray.500",textDecoration:"underline"}}},".comment":{".reactions-row ul":{marginLeft:"auto"},".comment-date":{fontSize:"var(--chakra-fontSizes-xs) !important",color:"var(--chakra-colors-gray-500) !important"},...h},".block-image":{"&.is-focused":{"img, .image, .placeholder":{boxShadow:"var(--chakra-shadows-outline)"}}},".block-target-html":{"p,h1,h2,h3,h4,h5,h6,blockquote,ol,ul,li, .title, .section-title":{...d,"::after":d},a:{...u},li:{margin:"0 !important",padding:"0 !important",listStyle:"none !important",p:{margin:0}},img:{maxWidth:"200px",maxHeight:"80px"}}},".comment-editor .ProseMirror":{...h,"\n @media only screen and (max-device-width: 812px) and (-webkit-min-device-pixel-ratio: 2),\n @media only screen and (max-device-width: 812px) and (-webkit-min-device-pixel-ratio: 3),\n @media only screen and (max-device-width: 640px) and (-webkit-min-device-pixel-ratio: 4)\n ":{fontSize:"16px !important"},padding:"12px",borderRadius:"5px","&.focus-visible":{boxShadow:"0 0 0 2px rgb(49, 130, 206)"},"a.image-link":{pointerEvents:"none"}}};var m=s(73235),g=s(56974),y=s.n(g),b=s(24992),x=s(93814),A=s(65301);function _(){let e=(0,m._)(["\n 0% {\n box-shadow: ",";\n }
1\n 7%,\n 60% {\n box-shadow: var(--link-box-shadow);\n }\n 100% {\n box-shadow: ",";\n }\n"]);return _=function(){return e},e}function S(){let e=(0,m._)(["\n 0% \n 100% {\n box-shadow: ",";\n }\n"]);return S=function(){return e},e}let f="0 0 0 0 rgba(0, 0, 0, 0.0)",C=(0,r.F4)(_(),f,f),v=(0,r.F4)(S(),f);var D=s(12304);let j={"math-display":{fontSize:"1.125em",".katex":{whiteSpace:"normal"}},"math-inline":{"&.ProseMirror-selectednode":{marginY:"-0.25em"}},"math-display, math-inline":{"&.ProseMirror-selectednode":{boxShadow:"outline",borderRadius:"var(--box-border-radius)",backgroundColor:"gray.100",padding:".25em",marginX:"3px",".math-src":{color:"gray.700"}}}};var w=s(49354),E=s(58879),P=s(87254);let k=e=>({".block-smartLayout":{'[data-node-view-content-outer="smartLayout"]':{display:"contents"},'[data-node-view-content-inner="smartLayout"]':{display:"contents"},"[data-selection-ring]":{outlineStyle:"none",outlineWidth:"1px",outlineColor:"var(--grid-outline-color)"},'[data-selection-ring="padded"]':{outlineOffset:"0.25em",".add-button":{m:"-0.25em"}},"&:not(.is-focused)":{"[data-content-empty=true] > [data-node-view-content]":{height:0}},"&.is-focused":{"[data-content-empty=true]":{"[placeholder]::before":E.BI}},["&.is-focused, &:hover, &[".concat(A.r,"]")]:{".is-editable":{"[data-selection-ring]":{outlineStyle:"solid"},".add-button":{opacity:1}}}},".node-smartLayoutCell":{display:"contents","> [data-node-view-wrapper]":{display:"contents"},"--heading-placeholder":(0,E.iI)(P.ag._({id:"HX5SVx"})),'[data-node-view-content-inner="smartLayoutCell"] > .first-block':{mt:[0,0]},'[data-node-view-content-inner="smartLayoutCell"] > .last-block':{mb:[0,0]},".slash-menu-prompt":{display:"none"},".block-heading, .block-title":{...(0,w.iL)(e).tight},".block-paragraph":{...(0,w.YW)(e).tight}}});var I=s(97676),T=s(89),N=s(46741);function F(){let e=(0,m._)(["\n 0% {\n align-items: flex-start;\n grid-template-rows: 0.2fr;\n overflow: hidden;\n }\n 99% {\n align-items: flex-start;\n overflow: hidden;\n }\n 100% {\n align-items: initial;\n grid-template-rows: 1fr;\n overflow: visible;\n }\n"]);return F=function(){return e},e}let L=(0,r.F4)(F()),V=e=>({height:"100%",outlineWidth:"0px",lineHeight:e?"1.6 !important":D.I0,"&.is-focused":{".is-empty":{"[data-placeholder]":{_after:E.BI},"[data-multiline-placeholder]":{position:"relative",_after:E.cY,"> [data-node-view-content-inner]":{position:"absolute",width:"100%",minH:"1em"}}}},"--block-margin":(0,w.l1)(e),"--box-border-color":"var(--chakra-colors-blackAlpha-200)","--grid-border":"1px","--grid-padding":"1.22em","&.is-dark":{"--box-border-color":"var(--chakra-colors-whiteAlpha-400)",".block-blockquote":{blockquote:{borderLeftColor:"var(--accent-color)"}},...I.KX.dark,...T.E_.dark},".block-card":{"&.expandable-node":{"&-selected .expandable-selected":{animation:"".concat(C," 3000ms ease-in-out forwards")},"&-reset .expandable-selected":{animation:"".concat(v)}}},".block":{my:"var(--block-margin)",fontFamily:"var(--body-font)",fontWeight:"var(--body-font-weight)",color:"var(--body-color)"},"&.is-nested":{display:"grid",animation:"".concat(L," ").concat(x.nY,"ms ease-out forwards")},"&.is-full-width":{".block.is-full-width":{width:"var(--full-width)",position:"relative",left:"50%",transform:"translateX(-50%)"}},'[data-node-view-content-inner="cardLayoutItem"], [data-node-view-content-inner="card"]':{"> .first-block":{mt:"0em"},"> .last-block":{mb:"0em"}},"a.link":{color:"var(--text-color, var(--link-color))",cursor:"pointer",fontWeight:"bold",textDecoration:"underline",'&[href=""]':{textDecorationStyle:"dashed"},"&:hover":{color:"var(--text-color, var(--link-color-hover))"},"&:active":{color:"var(--text-color, var(--link-color-hover))"}},".block-toggle":{"&.expandable-node":{"&-selected .toggle":{animation:"".concat(C," 3000ms ease-in-out forwards")},"&-reset .toggle":{animation:"".concat(v)}},'[data-open="false"]':{'[data-node-view-content-inner="toggle"]':{"> :not(:first-child)":{display:"none"}}}},...D.g6,...I.KX.default,...T.E_.default,...N.dE,...j,".block-codeBlock":{pre:{fontFamily:"mono",fontSize:w.um.codeBlock,"@media print":{fontSize:y()(w.um.codeBlock)},color:"var(--body-color)",background:"var(--accent-color-background-muted)",borderRadius:"var(--box-border-radius)",overflow:"hidden",code:{display:"block",padding:".75em 1em"}}},code:{backgroundColor:"var(--accent-color-background-muted)",color:"var(--body-color)",...I.FC},".block-blockquote":{blockquote:{pl:"1.5em"}},".block-embed, .block-video":{"&.expandable-node":{"&-selected":{".embed-preview, .embed-viewer, .video-player":{animation:"".concat(C," 3000ms ease-in-out forwards")}},"&-reset":{".embed-preview, .embed-viewer, .video-player":{animation:"".concat(v)}}}},".block-image":{"&.expandable-node":{"&-selected":{"[data-selection-ring]":{animation:"".concat(C," 3000ms ease-in-out forwards")}},"&-reset ":{"[data-selection-ring]":{animation:"".concat(v)}}}},".block-contributors":{".contributors-list":{fontSize:"1.25em",fontWeight:"bold"}},".mention":{bgColor:"var(--accent-color-100)"},".block-gallery":{mx:"calc(-1 * var(--grid-padding))",my:"calc(-0.25 * var(--grid-padding))",".gallery":{px:"var(--grid-padding)",py:"calc(0.75 * var(--grid-padding))",border:"1px solid",borderColor:"transparent",borderRadius:"var(--box-border-radius)",".add-image":{mb:"calc(0.75 * var(--grid-padding))"},["&.".concat(b.A)]:{border:"1px dashed var(--chakra-colors-trueblue-300) !important",backgroundColor:"var(--chakra-colors-trueblue-50) !important",".gallery-placeholder":{pointerEvents:"none"}}},"&.is-focused, &.is-empty":{".gallery":{backgroundColor:"blackAlpha.50"}},["&.is-focused, &:hover, &[".concat(A.r,"]")]:{".gallery":{borderColor:"var(--grid-outline-color)"},".add-image":{opacity:1}},"&.expandable-node":{"&-selected .gallery":{animation:"".concat(C," 3000ms ease-in-out forwards")},"&-reset .gallery":{animation:"".concat(v)}}},...k(e),".block-gridLayout":{mx:"calc(-1 * var(--grid-padding))",".layout-content":{display:"contents","> div":{display:"contents"}},".grid-cell":{position:"relative",height:"100%",paddingX:"var(--grid-padding)",display:"flex",flexDirection:"column",outlineWidth:"1px",outlineStyle:"none",outlineColor:"var(--grid-outline-color)",".block-gallery":{my:"0"}},["&.is-focused, &:hover, &[".concat(A.r,"]")]:{".is-editable":{".grid-cell":{outlineStyle:"solid"}},".add-column":{opacity:1}}},".node-cardLayoutItem, .node-cardAccentLayoutItem":{position:"relative",display:"flex",flexDirection:"column",justifyContent:"stretch",minWidth:0,minHeight:0,"> [data-node-view-wrapper]":{position:"relative",height:"100%",width:"100%"}},".node-cardNotes":{display:"none"},".block-table":{table:{'[data-node-view-content-inner="table"]':{display:"contents",'[data-node-view-content-inner="tableRow"]':{display:"contents"},td:{verticalAlign:"top",".block-heading [data-placeholder]::before":{display:"none"}}}},td:{minWidth:"3em",paddingX:"1em",position:"relative",".block":{maxWidth:e?"75vw":void 0},"&:not(:first-of-type)":{borderLeft:"1px solid transparent"}},".selectedCell:after":{zIndex:2,position:"absolute",content:'""',left:0,right:0,top:0,bottom:0,backgroundColor:"trueblue.100",pointerEvents:"none",opacity:.4},"&.is-focused, &:hover":{"td:not(:first-of-type)":{borderLeft:"1px solid var(--grid-outline-color)"}}},".tippy-arrow":{borderLeftColor:"red"},".footnote-label":{textDecoration:"underline",textDecorationColor:"var(--link-color)",_hover:{bgColor:"var(--accent-color-100)",color:"gray.800",borderRadius:"sm"}},".footnote":{color:"var(--link-color)",_hover:{_after:{bgColor:"var(--accent-color-100)",color:"gray.800"}}},".node-emoji":{color:"initial"},".block-paragraph":{...(0,D.v0)("default")},".block-heading":{...(0,w.iL)(e).default,".heading":{position:"relative"},'.heading[level="1"]':{...(0,D.v0)("h1")},'.heading[level="2"]':{...(0,D.v0)("h2")},'.heading[level="3"]':{...(0,D.v0)("h3")},'.heading[level="4"]':{...(0,D.v0)("h4")}},".block-title":{...(0,w.iL)(e).default,".title":{position:"relative",...(0,D.v0)("title")}}
1,".node-gridLayout, .node-calloutBox":{".block-heading, .block-title":{...(0,w.iL)(e).compact},".block-paragraph":{...(0,w.YW)(e).compact}},".block-table td":{".block":{...(0,w.YW)(e).tight},".block-heading, .block-title":{...(0,w.iL)(e).tight}},'[data-node-view-content-inner="card"]:not(:has(> .node-cardAccentLayoutItem)) [data-node-view-content-inner="cardLayoutItem"] > .first-block:not(.last-block)':{"&.block-heading, &.block-title":{"&:not(:has(+ .block-heading, + .block-title, + .node-gridLayout))":{mb:(0,w.iL)(e).relaxed.mb}}},'[data-node-view-content-inner="cardLayoutItem"] > .first-block:not(.last-block)':{"&.block-paragraph":{...(0,w.YW)(e).compact,"+ .block-heading, + .block-title":{mt:(0,w.iL)(e).compact.mt}},'&.block-heading:has([level="2"], [level="3"], [level="4"])':{mb:(0,w.iL)(e).compact.mb,"+ .block-heading, + .block-title":{mt:(0,w.iL)(e).compact.mt}}}});var U=s(3561);let R=(0,o.memo)(()=>{let e=(0,c.TZ)();return(0,i.jsx)(r.xB,{styles:t=>{let s={[".".concat(l.pL)]:V(e),[".".concat(U.G)]:p,[".".concat(a.d)]:a.l};if(!s)return;let i=(0,n.iv)(s)(t);return i}})});R.displayName="GlobalCardStyles"},58879:function(e,t,s){"use strict";s.d(t,{BI:function(){return i},cY:function(){return n},iI:function(){return r}});let i={content:"attr(data-placeholder)",position:"absolute",top:0,opacity:.25,pointerEvents:"none",left:0,width:"100%",color:"var(--heading-color)",lineClamp:1,textOverflow:"ellipsis",overflow:"hidden",boxOrient:"vertical",wordBreak:"break-all",height:"100%",whiteSpace:"nowrap"},n={...i,content:"attr(data-multiline-placeholder)",color:"inherit",position:"relative",lineClamp:0,whiteSpace:"normal",wordBreak:"normal"},r=e=>'"'.concat(e,'"')},12136:function(e,t,s){"use strict";s.d(t,{e:function(){return g}});var i=s(52322),n=s(70065),r=s(5879),o=s(5632),l=s(2784),a=s(93202),c=s(49165),d=s(11050),u=s(84405),h=s(36651),p=s(41425),m=s(23147);let g=()=>{let[e]=(0,a.So6)({refetchQueries:["GetDocs"]}),{push:t}=(0,o.useRouter)(),s=(0,n.p)(),{user:g,currentWorkspace:y}=(0,h.SE)(),b=(0,d.z$)(),x=(0,l.useCallback)(async n=>{var o;let{docId:l,docTitle:a,initialContent:h,channelId:x,source:A,openThemeEditor:_,onSuccess:S,newWindow:f}=n,C=null==g?void 0:null===(o=g.settings)||void 0===o?void 0:o.needsEditorOnboarding;if(!l)return Promise.reject(Error("Cannot duplicate without a docId"));let v=s({id:"duplicate-toast-".concat(l),isClosable:!1,position:"top",status:"loading",variant:"light",duration:null,title:(0,i.jsx)(r.cC,{id:"OvEjsP"})});return g&&(null==y?void 0:y.id)?e({variables:{duplicateDocInput:{orgId:null==y?void 0:y.id,sourceDocId:l,source:c.R[A],initialContent:h?{ydoc:(0,m.qI)(h),schemaVersion:p.bI,editors:[null==g?void 0:g.id]}:void 0,...x?{channels:[{channelId:x}]}:{}}}}).then(e=>{var n,o,c;if(!(null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.duplicateDoc))throw Error("No data received");null==b||b.track(d.AA.EXAMPLE_DUPLICATED,{doc_id:l,title:a,source:A});let h=null==e?void 0:null===(c=e.data)||void 0===c?void 0:null===(o=c.duplicateDoc)||void 0===o?void 0:o.id;(0,u.Q)({doc_id:h,source:A,source_doc_id:l}),console.debug("[Duplicate.".concat(A,"] Doc duplicated New doc id (").concat(h,"). Navigating to Editor")),s.update(v,{status:"success",description:(0,i.jsx)(r.cC,{id:"zzDlyQ"}),duration:5e3,isClosable:!0});let p=_?"/docs/".concat(h).concat(_?"?openThemeEditor=true":""):C?"/docs/".concat(h,"?tour=true"):"/docs/".concat(h);f?window.open(p,"_blank"):t(p),S&&h&&S(h)},e=>{console.error("[Duplicate.".concat(A,"] Error duplicating doc:"),e.message),s.update(v,{title:(0,i.jsx)(r.cC,{id:"ADJtFi"}),description:e.message,status:"error",duration:null,isClosable:!0})}).catch(e=>{console.error("[Duplicate.".concat(A,"] Error duplicating doc:"),e.message),s.update(v,{title:(0,i.jsx)(r.cC,{id:"ADJtFi"}),description:e.message,status:"error",duration:null,isClosable:!0})}):(console.error("[Duplicate.".concat(A,"] Cannot duplicate without a user or workspace"),{user:g}),Promise.reject(Error("Cannot duplicate without a user or workspace")))},[null==y?void 0:y.id,g,s,e,b,t]);return x}},28070:function(e,t,s){"use strict";s.r(t),s.d(t,{IndividualTemplatePage:function(){return a},__N_SSG:function(){return l}});var i=s(52322),n=s(17072),r=s(86236),o=s(83330),l=!0;let a=e=>{let{deck:t}=e;return(0,i.jsx)(o.Ci,{deck:t})};t.default=(0,n.z)((0,r.GE)(a))},90439:function(e,t,s){"use strict";s.d(t,{Oj:function(){return l},Pv:function(){return o},QX:function(){return r},cx:function(){return n}});var i=s(14274);let n=i.v.GAMMA_PUPPETEER_SERVICE,r=n&&"pptx"===window.format,o=n&&"pdf"===window.format,l=n&&"screenshot"===window.format},7e4:function(e,t,s){"use strict";s.d(t,{X:function(){return r}});var i=s(2784),n=s(18733);function r(e,t){let[s,r]=(0,i.useState)(()=>{try{let s=n.Q.getItem(e);if(null===s)return t;return JSON.parse(s)}catch(e){return console.error("[useSessionStorage.getItem] Error getting sessionStorage item",e),t}}),o=(0,i.useCallback)(t=>{try{n.Q.setItem(e,JSON.stringify(t)),r(t)}catch(e){console.error("[useSessionStorage.setItem] Error setting sessionStorage item",e)}},[e]);return[s,o]}},62376:function(){},6991:function(){},76298:function(){},4466:function(){},43839:function(){}},function(e){e.O(0,[9774,7662,8433,2182,2812,8774,6694,4078,3273,9025,5333,4424,8707,146,3661,3016,4138,9808,5112,3693,931,2808,2175,205,4582,2252,1537,6656,2681,8794,9718,4001,2888,179],function(){return e(e.s=59318)}),_N_E=e.O()}]); 2//# sourceMappingURL=[id]-ab76fc5d9134e576.js.map
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.