1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7971,1005],{24962:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/new",function(){return n(12618)}])},99309:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{noSSR:function(){return o},default:function(){return l}});let r=n(43219),i=(n(2784),r._(n(70220)));function a(e){return{default:(null==e?void 0:e.default)||e}}function o(e,t){return delete t.webpack,delete t.modules,e(t)}function l(e,t){let n=i.default,r={loading:e=>{let{error:t,isLoading:n,pastDelay:r}=e;return null}};e instanceof Promise?r.loader=()=>e:"function"==typeof e?r.loader=e:"object"==typeof e&&(r={...r,...e}),r={...r,...t};let l=r.loader;return(r.loadableGenerated&&(r={...r,...r.loadableGenerated},delete r.loadableGenerated),"boolean"!=typeof r.ssr||r.ssr)?n({...r,loader:()=>null!=l?l().then(a):Promise.resolve(a(()=>null))}):(delete r.webpack,delete r.modules,o(n,r))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},38437:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return a}});let r=n(43219),i=r._(n(2784)),a=i.default.createContext(null)},70220:function(e,t,n){"use strict";/** 2@copyright (c) 2017-present James Kyle <[email protected]> 3 MIT License 4 Permission is hereby granted, free of charge, to any person obtaining 5a copy of this software and associated documentation files (the 6"Software"), to deal in the Software without restriction, including 7without limitation the rights to use, copy, modify, merge, publish, 8distribute, sublicense, and/or sell copies of the Software, and to 9permit persons to whom the Software is furnished to do so, subject to 10the following conditions: 11 The above copyright notice and this permission notice shall be 12included in all copies or substantial portions of the Software. 13 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 14EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 15MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 16NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 17LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 18OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 19WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE 20*/Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return g}});let r=n(43219),i=r._(n(2784)),a=n(38437),o=[],l=[],s=!1;function d(e){let t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(e=>(n.loading=!1,n.loaded=e,e)).catch(e=>{throw n.loading=!1,n.error=e,e}),n}class c{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function u(e){return function(e,t){let n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),r=null;function o(){if(!r){let t=new c(e,n);r={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return r.promise()}if(!s){let e=n.webpack?n.webpack():n.modules;e&&l.push(t=>{for(let n of e)if(t.includes(n))return o()})}function d(e,t){!function(){o();let e=i.default.useContext(a.LoadableContext);
20e&&Array.isArray(n.modules)&&n.modules.forEach(t=>{e(t)})}();let l=i.default.useSyncExternalStore(r.subscribe,r.getCurrentValue,r.getCurrentValue);return i.default.useImperativeHandle(t,()=>({retry:r.retry}),[]),i.default.useMemo(()=>{var t;return l.loading||l.error?i.default.createElement(n.loading,{isLoading:l.loading,pastDelay:l.pastDelay,timedOut:l.timedOut,error:l.error,retry:r.retry}):l.loaded?i.default.createElement((t=l.loaded)&&t.default?t.default:t,e):null},[e,l])}return d.preload=()=>o(),d.displayName="LoadableComponent",i.default.forwardRef(d)}(d,e)}function p(e,t){let n=[];for(;e.length;){let r=e.pop();n.push(r(t))}return Promise.all(n).then(()=>{if(e.length)return p(e,t)})}u.preloadAll=()=>new Promise((e,t)=>{p(o).then(e,t)}),u.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let n=()=>(s=!0,t());p(l,e).then(n,n)})),window.__NEXT_PRELOADREADY=u.preloadReady;let g=u},17072:function(e,t,n){"use strict";n.d(t,{z:function(){return em}});var r=n(52322);n(98248),n(61219);var i=n(55671),a=n(62202),o=n(18200),l=n(81674),s=n(94523),d=n(97729),c=n.n(d),u=n(5632),p=n(2784),g=n(43997),m=n(14274),f=n(93202),h=n(2013);let _=e=>{let t=["malformed","encoded","illegal"];return e.includes("URIError")&&e.split(" ").some(e=>t.includes(e))};class v extends p.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 n;let t=(null===(n=e.reason)||void 0===n?void 0:n.message)||"";this.setState({hasError:!0,errMessage:t})}}render(){let e=!0===_(this.state.errMessage)?{opacity:"0.65",starOverlay:!1}:{};return(0,r.jsxs)(r.Fragment,{children:[this.state.hasError&&(0,r.jsx)(h.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)}}v.defaultProps={unhandledRejectionFilter:e=>{var t;return!!_((null===(t=e.reason)||void 0===t?void 0:t.message)||"")||e.reason instanceof f.YBv&&!1===document.hidden||e.reason instanceof f.R5s}},n(61036),n(62376),n(6991),n(76298),n(4466),n(43839),n(40917);var y=n(11050),b=n(42005);let w=()=>{let e=(0,p.useRef)(!1),t=(0,p.useRef)(new Map);(0,p.useEffect)(()=>{if("production"!==m.v.APPLICATION_ENVIRONMENT)return;let n=()=>{if(e.current)return;let n=t.current.get("total"),r=t.current.get("notTrusted"),i=r/n>.5;i&&n>5&&(e.current=!0,b.c.track(y.xW.NOT_TRUSTED_EVENTS_DETECTED,{totalEvents:n,notTrustedEvents:r}))},r=e=>{e.isTrusted||t.current.set("notTrusted",(t.current.get("notTrusted")||0)+1),t.current.set("total",(t.current.get("total")||0)+1),n()};return document.addEventListener("paste",r,{capture:!0}),document.addEventListener("mousedown",r,{capture:!0}),document.addEventListener("keydown",r,{capture:!0}),()=>{document.removeEventListener("paste",r,{capture:!0}),document.removeEventListener("mousedown",r,{capture:!0}),document.removeEventListener("keydown",r,{capture:!0})}},[])};var C=n(79254),E=n(90221),x=n(93441),I=n(90383);let P=()=>{let e=!(0,E.l6)()&&!(0,I.wg)();return(0,x.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 A=n(27354),j=n(42111),k=n(32019),S=n(99092),N=n(36651);let D=(e,t)=>{S.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}}),y.co.loadSdkPromise.then(e=>{e&&e.addSourceMiddleware(S.LZ)})},T=e=>{let{children:t}=e,{user:n,anonymousUser:i,isGammaOrgUser:a,isUserLoading:o}=(0,N.SE)(),{enabled:l,enableStrictPrivacy:s}=(0,j.ye)("highlight");return(0,p.useEffect)(()=>{l&&!o&&n&&D(s,a)},[s,l,a,o,n]),(0,p.useEffect)(()=>
20{if(!o){if(n){let{id:e,displayName:t,email:r,profileImageUrl:i}=n;S.H.identify(e,{highlightDisplayName:t,email:r,avatar:i})}else if(null==i?void 0:i.id){let{id:e,displayName:t}=i;S.H.identify("",{anonDisplayName:t||"",anonId:e})}}},[n,i,o]),(0,r.jsx)(r.Fragment,{children:t})};var R=n(34881),L=n(87254),O=n(5879),U=n(44754);let M=e=>{let{children:t}=e;return(0,U.b)(),(0,r.jsx)(O.bd,{i18n:L.ag,children:t})};var H=n(18875),F=n(17292),G=n(55478),B=n(76332),q=n(6912),K=n(27902),Y=n(84473),W=n(78462),V=n(72354),Z=n(1163),X=n(2953);let z="get-gamma-pro",J=e=>{var t,n;let{children:i}=e,{currentWorkspace:a,isUserLoading:o}=(0,Y.SE)(),[l,s]=(0,p.useState)(!1),d=(0,K.z$)(),c=(0,j.ye)("upsellUXEnabled_Pro"),{data:u,refetch:g}=(0,B.FaU)({variables:{workspaceId:null==a?void 0:a.id,includeExpired:!0},skip:!(null==a?void 0:a.id)}),m=null==u?void 0:u.subscription;(0,q.ET)({subscription:m,workspace:a,autoLaunch:!0});let{data:f}=(0,B.kNl)({variables:{workspaceId:null==a?void 0:a.id},skip:!a}),h=null==f?void 0:null===(t=f.products)||void 0===t?void 0:t.find(e=>"pro"===e.key),_=null==h?void 0:null===(n=h.prices)||void 0===n?void 0:n.find(e=>e.frequencyUnit===B.C_B.Year),v=(0,Z.K9)(a),{isOpen:y,onOpen:b,onClose:w}=(0,G.q)({id:"upsell-modal"}),C=(0,p.useRef)(null),E=(0,p.useCallback)(e=>{let{onOpenCallback:t,onCloseCallback:n,insufficientCreditsWarning:r,segmentEvent:i}=e;c&&(s(!!r),null==t||t(),b(),null==d||d.track(i),C.current=n||null)},[d,b,c]),x=(0,p.useCallback)(()=>{var e;null==C||null===(e=C.current)||void 0===e||e.call(C),w(),C.current=null,s(!1)},[w]),[I,P]=(0,p.useState)({openUpsellModal:E,product:v,subscription:m,proYearlyProductPrice:_});return(0,p.useEffect)(()=>{let e="true"===(0,W.SJ)()[z];e&&!o&&a&&(b(),(0,R.lO)({query:{...(0,W.SJ)(),[z]:void 0},emitChange:!1}))},[b,a,o]),(0,p.useEffect)(()=>{P({openUpsellModal:E,refetchSubscription:g,product:v,subscription:m,proYearlyProductPrice:_})},[E,v,m,_,g]),(0,r.jsxs)(X.P.Provider,{value:I,children:[i,(0,r.jsx)(V.b,{insufficientCreditsWarning:l,isUpsellModalOpen:y,closeUpsellModal:x}),(0,r.jsx)(q.S1,{})]})};var Q=n(99268),$=n(25944),ee=n(19902);let et="no_org_id",en=e=>{let{children:t}=e;(0,$.iZ)();let{user:n,anonymousUser:i,currentWorkspace:a,isUserLoading:o}=(0,N.SE)();return(0,p.useEffect)(()=>{let e=(0,ee.K)();(0,Q.$n)(e.get()),e.fetch().then(Q.$n).catch(()=>{})},[]),(0,p.useEffect)(()=>{let e;if(!o){if(n){let{id:t,email:r}=n,i=!!r&&r.endsWith("@gamma.app"),o=(null==a?void 0:a.id)||et;e={userId:t,isGammaUser:i,userOrgId:o,anonymousUser:!1,gammaUserFirstName:i?n.firstName:""}}else e={userId:"anonymous_user",isGammaUser:!1,userOrgId:et,anonymousUser:!0,gammaUserFirstName:""};(0,Q.$n)(e)}},[o,n,i,a]),(0,r.jsx)(r.Fragment,{children:t})};var er=n(54839),ei=n(91994),ea=n(89311),eo=n(95426),el=n(1198),es=n(60742),ed=n(13265);l.vc.autoAddCss=!1;let ec=(0,ei.bh)(),eu=(0,f.RqP)(),ep=(0,f.PGq)(),eg=(0,a.B1)(s.qZ,{styles:{global:{".ProseMirror":{outline:"0 none"}}}});((e,t)=>{let n=(0,er.I)({theme:t});e.globalToast=n})(window,eg),(0,es.Lq)(),F.F7.initialize(),(0,R.lt)(),y.co.init(),(0,H.S1)(),(0,A.u7)(),(0,eo.a)("appMainBundleLoaded"),console.log("\uD83D\uDE80 GammaApp main wrapper imported"),j.VH.get("debugLogging")||(window.console.debug=()=>{});let em=e=>function(t){return(0,r.jsx)(ef,{children:(0,r.jsx)(e,{...t})})},ef=e=>{let{children:t}=e;console.log("\uD83D\uDE80 GammaApp main wrapper rendered");let n=(0,u.useRouter)();(0,ea.l)(),(0,ed.k)(),w(),(0,p.useEffect)(()=>{let e=(e,t)=>{let{shallow:n}=t;console.debug("[GammaApp - handleRouteChange] App is changing to ".concat(e," ").concat(n?"with":"without"," shallow routing"))};return n.events.on("routeChangeStart",e),()=>{n.events.off("routeChangeStart",e)}},[n]);let a=(0,el.aY)();return(0,r.jsx)(g.zt,{store:ec,children:(0,r.jsx)(M,{children:(0,r.jsx)(o.x,{theme:eg,resetCSS:!0,children:(0,r.jsx)(v,{children:(0,r.jsx)(i.e,{client:eu,children:(0,r.jsxs)(f.mdV,{client:ep,children:[(0,r.jsx)(e_,{}),(0,r.jsx)(C.H6,{}),(0,r.jsx)(H.GQ,{}),(0,r.jsx)(P,{}),(0,r.jsxs)(N.fS,{children:[(0,r.jsx)(K.qA,{children:(0,r.jsx)(j.dF,{children:(0,r.jsx)(J,{children:(0,r.jsx)(f.Imj,{children:(0,r.jsx)(en,{children:(0,r.jsx)(T,{children:(0,r.jsx)(el.dv,{value:a,children:(0,r.jsx)(k.u,{children:t})})})})})})})}),(0,r.jsx)(j.MG,{})]})]})})})})})})},eh="A new medium for presenting ideas, powered by AI. Beautiful, engaging content with none of the formatting and design work.",e_=()=>{let e=m.v.APPLICATION_ENVIRONMENT;return(0,r.jsxs)(c(),{children:[(0,r.jsx)("title",{children:"Gamma"}),(0,r.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, viewport-fit=cover"}),(0,r.jsx)("link",{rel:"manifest",href:"/manifest.json"}),(0,r.jsx)("link",{rel:"shortcut icon",href:"production"===e?"/fav
20icons/favicon-transparent-96x96.png":"staging"===e?"/favicons/favicon_staging.jpg":"/favicons/favicon_local.jpg"}),(0,r.jsx)("meta",{content:eh,name:"description"},"description"),(0,r.jsx)("meta",{content:"Gamma",property:"og:title"},"og:title"),(0,r.jsx)("meta",{content:eh,property:"og:description"},"og:description"),(0,r.jsx)("meta",{content:m.v.OG_IMAGE_URL,property:"og:image"},"og:image"),(0,r.jsx)("meta",{content:"Gamma",property:"twitter:title"},"twitter:title"),(0,r.jsx)("meta",{content:eh,property:"twitter:description"},"twitter:description"),(0,r.jsx)("meta",{content:m.v.OG_IMAGE_URL,property:"twitter:image"},"twitter:image"),(0,r.jsx)("meta",{property:"og:type",content:"website"},"og:type"),(0,r.jsx)("meta",{content:"summary_large_image",name:"twitter:card"},"twitter:card"),(0,r.jsx)("link",{href:"https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900",rel:"stylesheet"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://use.typekit.net/tiw2cwq.css"}),!(0,E.l6)()&&!(0,I.wg)()&&(0,r.jsx)("script",{async:!0,src:"https://cdn.optimizely.com/js/20579410255.js"}),(0,r.jsx)("script",{src:"//cdn.iframe.ly/embed.js",async:!0,charSet:"utf-8"})]})}},2013:function(e,t,n){"use strict";n.d(t,{q:function(){return C}});var r=n(52322),i=n(38035),a=n(77533),o=n(49259),l=n(87436),s=n(95897),d=n(28535),c=n(89511),u=n(11121),p=n(44438),g=n(42822),m=n(62614),f=n(75009),h=n(94523),_=n(5879),v=n(3543),y=n(92981);let b=(0,r.jsx)(_.cC,{id:"HiX9QN"}),w={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"}},C=e=>{let{errMessage:t=b,showDisclosure:n=!1,opacity:C=1,starOverlay:E=!0,backgroundColor:x=h.qZ.colors.trueblue[900],...I}=e,P=E?w:{};return(0,r.jsx)(i.k,{"data-error-component":!0,w:"100vw",h:"100vh",overflow:"hidden",zIndex:99999,backgroundColor:(0,v.tT)(x,C),...I,children:(0,r.jsx)(i.k,{...P,justifyContent:"center",alignItems:"center",flex:1,p:[4,16],left:"50%",top:"50%",children:(0,r.jsxs)(y.qX,{lede:"",title:(0,r.jsx)(_.cC,{id:"HbR60U"}),stackProps:{shadow:"lg-dark",position:"relative"},children:[(0,r.jsx)(a.x,{children:(0,r.jsx)(_.cC,{id:"1gm+lP"})}),n&&(0,r.jsx)(o.U,{allowToggle:!0,pt:4,children:(0,r.jsxs)(l.Q,{children:[(0,r.jsxs)(s.K,{px:0,_hover:{bgColor:"none"},borderStyle:"none",children:[(0,r.jsx)(d.xu,{flex:"1",textAlign:"left",children:(0,r.jsx)(_.cC,{id:"qug3k/"})}),(0,r.jsx)(c.X,{})]}),(0,r.jsx)(u.H,{pb:4,children:(0,r.jsx)(p.E,{colorScheme:"red",children:t})})]})}),(0,r.jsx)(g.M,{children:(0,r.jsx)(m.z,{variant:"solid",size:"lg",m:6,onClick:()=>{window.location.reload()},children:(0,r.jsx)(_.cC,{id:"C6f2hU"})})}),(0,r.jsx)(f.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}})]})})})}},79254:function(e,t,n){"use strict";n.d(t,{$C:function(){return p},H6:function(){return u},Uj:function(){return g}});var r=n(52322),i=n(5632),a=n(73534),o=n.n(a),l=n(14274),s=n(93441),d=n(34385);let c=["/signin","/signup","/invitations/workspaces/[workspaceId]"],u=()=>{let e=(0,i.useRouter)().pathname;return!(0,s.gF)()||c.includes(e)?null:(0,r.jsx)("style",{children:".grecaptcha-badge { visibility: hidden; }"})},p=()=>(0,r.jsx)(o(),{src:"https://www.google.com/recaptcha/enterprise.js?render=".concat(l.v.RECAPTCHA_SCORING_KEY),async:!0,defer:!0}),g=async e=>(await (0,d.X)(50,100)(()=>!!window.grecaptcha).catch(()=>{throw Error("Timed out waiting for grecaptcha")}),new Promise((t,n)=>{grecaptcha.enterprise.ready(async()=>{try{let n=await grecaptcha.enterprise.execute(l.v.RECAPTCHA_SCORING_KEY,{action:e});t(n)}catch(e){console.log(e),n(e)}})}))},49165:function(e,t,n){"use strict";n.d(t,{R:function(){return f},c:function(){return h}});var r=n(52322),i=n(70065),a=n(5879),o=n(5632),l=n(2784),s=n(93202),d=n(42111),c=n(84405),u=n(56356),p=n(41425),g=n(23147),m=n(36651);let f={example_deck_clone_toast:s.L17.DuplicateInspiration,import_google_doc:s.L17.ImportGoogleDoc,import_google_slides:s.L17.ImportGoogleSlides,import_docx:s.L17.ImportDocx,import_pptx:s.L17.ImportPptx,blank:s.L17.Blank,template_browser:s.L17.DuplicateTemplate,get_started_modal:s.L17.Blank,template_modal_griditem:s.L17.DuplicateTemplate,template_dashboard_griditem:s.L17.DuplicateTemplate,template_modal_preview:s.L17.DuplicateTemplate,template_modal_preview_create_theme:s.L17.DuplicateTemplate,"slash-new":s.L17.SlashNew,editor_toolbar_doc_menu_duplicate:s.L17.DuplicateDoc,dashboard_docs_view_duplicate:s.L17.DuplicateDoc,ai_generated:s.L17.AiGenerated,ai_generated_advanced:s.L17.AiGenerated,sites_add_page:s.L17.SitesAddPage,sites_copy_to_site:s.L17.SitesCopyToSite,sites_duplicate_page:s.L17.SitesDuplicatePage},h=()=>{let{user:e,currentWorkspace:t}=(0,m.SE)(),n=(0,d.ye)("cardLayoutsEnabled"),[h,{data:_,loading:v}]=(0,s.CsQ)(),{push:y,replace:b}=(0,o.useRouter)(),w=(0,i.p)(),C=(0,l.useCallback)(i=>{var o;let l=null==e?void 0:null===(o=e.settings)||void 0===o?void 0:o.needsEditorOnboarding,s=i.source,d=null==i?void 0:i.channelId,m=(null==i?void 0:i.historyFn)==="replace"?b:y,_=l?"quickstart":"empty";if(!(null==t?void 0:t.id)){console.error("[createDocAndNavigate] No currentWorkspace found");return}let v={cardLayoutsEnabled:n},C=(null==i?void 0:i.document)?i.document:"empty"===_?(0,u.bx)(e,{docFlags:v}):(0,u.VK)(e,{docFlags:v}),E=(0,g.qI)(C);return console.debug("[createDocAndNavigate] Creating doc",{document:C,encodedDocument:E}),h({variables:{workspaceId:null==t?void 0:t.id,title:(null==i?void 0:i.title)||"",source:f[i.source],initialContent:{ydoc:E,schemaVersion:p.bI,editors:[null==e?void 0:e.id]},...d?{channels:[{channelId:d}]}:{}}}).then(async e=>{let{data:t}=e;(0,c.Q)({doc_id:null==t?void 0:t.createDoc.id,source:s,channel:d||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),w({title:(0,r.jsx)(a.cC,{id:"0jT1fA"}),description:e.message,position:"top",status:"error",isClosable:!0,duration:null})})},[n,h,null==t?void 0:t.id,y,b,w,e]);return[C,{data:_,loading:v}]}},6912:function(e,t,n){"use strict";n.d(t,{S1:function(){return b},B_:function(){return E},ET:function(){return w}});var r=n(2784),i=n(14274),a=n(88232),o=n(42111),l=n(49152),s=n(44663),d=n(1163),c=n(11050),u=n(90221),p=n(23284),g=n(90383),m=n(87254),f=n(82108),h=n.n(f),_=n(94199);let v=(e,t)=>
20{let n=h()(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:_.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"}),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:_.N6,productName:n}}),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"})}}},y="\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(i.v.CHURNKEY_APP_ID,"';\n a.async = true;\n const b = document.getElementsByTagName('script')[0];\n b.parentNode.insertBefore(a, b);\n }\n }();\n"),b=()=>{let e=!(0,u.l6)()&&!(0,g.wg)();return(0,p.G)(e,y),null},w=e=>{let{subscription:t,workspace:n,autoLaunch:c=!0}=e,u=(0,o.ye)("churnkeyFailedPaymentWallEnabled"),p=(0,l.l)(),g=(0,d.K9)(n),m=(0,s.G)(),f=(0,r.useCallback)(async()=>{if(t&&g&&u)return(0,a.d6)("churnkey").then(e=>{var n,r;if(!e||!t.billingSubscriptionId||!(null===(n=t.createdByUser)||void 0===n?void 0:n.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:i.v.CHURNKEY_APP_ID,subscriptionId:t.billingSubscriptionId,customerId:null===(r=t.createdByUser)||void 0===r?void 0:r.billingCustomerId}),C({authHash:e,subscription:t,localeKey:p,productKey:g,launchIntercomUI:m})})},[t,g,u,p,m]);return(0,r.useEffect)(()=>{c&&f()},[f,c]),{launchFailedPaymentFlow:f,failedPaymentFlowEnabled:u}},C=async e=>{var t,n;let{authHash:r,subscription:a,localeKey:o,productKey:l,launchIntercomUI:s}=e;null===(n=window.churnkey)||void 0===n||n.check("failed-payment",{subscriptionId:a.billingSubscriptionId,customerId:null===(t=a.createdByUser)||void 0===t?void 0:t.billingCustomerId,authHash:r,customerAttributes:{language:o},i18n:{lang:o,messages:v(o,l)},appId:i.v.CHURNKEY_APP_ID,mode:i.v.CHURNKEY_MODE,provider:"stripe",softWall:!0,forceCheck:!1,gracePeriodDays:3,ignoreInvoicesWithoutAttempt:!1,handleSupportRequest
20(){var e;s(),c.co.track(c.AA.CHURNKEY_HANDLE_SUPPORT_CLICK,{source:"failed-payment-wall",subscriptionId:a.billingSubscriptionId,customerId:null===(e=a.createdByUser)||void 0===e?void 0:e.billingCustomerId})},async handleCancel(e){var t,n;return c.co.track(c.AA.CANCEL_SUBSCRIPTION_CLICK,{source:"failed-payment-wall",subscriptionId:a.billingSubscriptionId,customerId:null===(t=a.createdByUser)||void 0===t?void 0:t.billingCustomerId}),console.debug("[launchChurnkeyFailedPayment.handleCancel]",{subscriptionId:a.billingSubscriptionId,customerId:null===(n=a.createdByUser)||void 0===n?void 0:n.billingCustomerId,customer:e}),x({authHash:r,subscription:a,localeKey:o,productKey:l,launchIntercomUI:s,customerAttributes:{viaFailedPayment:!0}}).catch(e=>C({authHash:r,subscription:a,localeKey:o,productKey:l,launchIntercomUI:s}))},onFailedPaymentWallActivated(){var e;c.co.track(c.AA.CHURNKEY_FAILED_PAYMENT_WALL_SHOWN,{subscriptionId:a.billingSubscriptionId,customerId:null===(e=a.createdByUser)||void 0===e?void 0:e.billingCustomerId})},onUpdatePaymentInformation(){var e;c.co.track(c.AA.CHURNKEY_PAYMENT_METHOD_UPDATED,{source:"failed-payment-wall",subscriptionId:a.billingSubscriptionId,customerId:null===(e=a.createdByUser)||void 0===e?void 0:e.billingCustomerId})},onFailedPaymentWallClose(){var e;c.co.track(c.AA.CHURNKEY_FAILED_PAYMENT_WALL_CLOSED,{subscriptionId:a.billingSubscriptionId,customerId:null===(e=a.createdByUser)||void 0===e?void 0:e.billingCustomerId})},onCancel(){var e;c.co.track(c.AA.CHURNKEY_CANCEL_SUBSCRIPTION_COMPLETE,{source:"failed-payment-wall",subscriptionId:a.billingSubscriptionId,customerId:null===(e=a.createdByUser)||void 0===e?void 0:e.billingCustomerId})},onError(e,t){console.warn('Churnkey check("failed-payment", ...) error',e,t)}})},E=(e,t)=>{let n=(0,o.ye)("churnkeyCancelFlowEnabled"),i=(0,l.l)(),c=(0,d.K9)(t),u=(0,s.G)(),p=(0,r.useCallback)(()=>{if(e&&c&&n)return(0,a.d6)("churnkey").then(t=>{var n;if(!t||!e.billingSubscriptionId||!(null===(n=e.createdByUser)||void 0===n?void 0:n.billingCustomerId)){console.debug("[Churnkey] handleCancel - Missing hmac or subscription data",{hmac:t,subscription:e});return}return x({authHash:t,subscription:e,localeKey:i,productKey:c,launchIntercomUI:u})})},[n,i,c,e,u]);return{launchCancelFlow:p,cancelFlowEnabled:n}},x=async e=>{let{authHash:t,subscription:n,localeKey:r,productKey:a,customerAttributes:o={},launchIntercomUI:l}=e;return new Promise((e,s)=>{var u,p,g;null===(g=window.churnkey)||void 0===g||g.init("show",{subscriptionId:n.billingSubscriptionId,customerId:null===(u=n.createdByUser)||void 0===u?void 0:u.billingCustomerId,authHash:t,customerAttributes:{language:r,frequency:null===(p=(0,d.OJ)(n))||void 0===p?void 0:p.frequencyUnit,productKey:a,...o},i18n:{lang:r,messages:v(r,a)},appId:i.v.CHURNKEY_APP_ID,mode:i.v.CHURNKEY_MODE,provider:"stripe",record:!0,handleSupportRequest(){var e;l(),c.co.track(c.AA.CHURNKEY_HANDLE_SUPPORT_CLICK,{source:"cancel-flow",subscriptionId:n.billingSubscriptionId,customerId:null===(e=n.createdByUser)||void 0===e?void 0:e.billingCustomerId})},onCancel(e,t,r){var i;c.co.track(c.AA.CHURNKEY_CANCEL_SUBSCRIPTION_COMPLETE,{source:"cancel-flow",subscriptionId:n.billingSubscriptionId,customerId:null===(i=n.createdByUser)||void 0===i?void 0:i.billingCustomerId,surveyResponse:t,freeformFeedback:r}),console.debug("[launchChurnkeyCancelFlow.onCancel]",{surveyResponse:t,freeformFeedback:r})},onGoToAccount(t){console.debug("[launchChurnkeyCancelFlow.onGoToAccount]",{sessionResults:t}),e({sessionResults:t})},onClose(t){if(console.debug("[launchChurnkeyCancelFlow.onClose]",{sessionResults:t}),!t||t.aborted){s("Churnkey cancel flow aborted");return}e({sessionResults:t})},onError(e){console.warn("[launchChurnkeyCancelFlow.onError]",{message:e}),s({message:e})}})})}},48832:function(e,t,n){"use strict";n.d(t,{BK:function(){return C},Dw:function(){return w},Km:function(){return b},dN:function(){return v},p6:function(){return y}});var r=n(87254),i=n(82282),a=n(32361),o=n(96740),l=n(31807),s=n(73871),d=n(57907),c=n(21346),u=n(48053),p=n(1363),g=n(49738),m=n(90535),f=n(9283),h=n(75528);let _={en:d.Z,"pt-br":c.Z,ja:u.Z,"zh-cn":p.Z,"zh-tw":g.Z,es:m.Z,fr:f.Z,ko:h.Z},v=()=>_[r.ag.locale]||void 0,y=(e,t)=>e?(0,i.Z)((0,l.Z)(e),t,{locale:v()}):"",b=(e,t)=>e?(0,o.Z)((0,l.Z)(e),t?(0,l.Z)(t):new Date,{locale:v()}):"",w=e=>e?(0,a.Z)((0,l.Z)(e),{locale:v()}):"",C=e=>e?(0,s.Z)((0,l.Z)(e),new Date,{locale:v(),addSuffix:!0,roundingMethod:"floor"}):""},25944:function(e,t,n){"use strict";n.d(t,{bf:function(){return f},iZ:function(){return g},lh:function(){return p},wK:function(){return m}});var r=n(2784),i=n(42111),a=n(91994),o=n(47968),l=n(90604),s=n(56400),d=n(99268);let c=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 p=(e,t)=>{let n=(0,a.CG)(o.Pw),i=(0,r.useRef)(n);(0,r.useEffect)(()=>{i.current=n},[n]),(0,r.useEffect)(()=>
20{if(e)return window.addEventListener("keydown",n,!0),()=>{window.removeEventListener("keydown",n,!0)};function n(e){let n=e.target.closest(".ProseMirror");if(!n||!i.current||!c(t))return;let r=performance.now();requestAnimationFrame(()=>{let t=e.key;" "===t&&(t="Space");let n=performance.now()-r;(0,d.EF)({...(0,s.H)(),key:t,duration:n})})}},[e,i,t])},g=()=>{let e=(0,i.ye)("rumSampleRate");(0,r.useEffect)(()=>{(0,d._k)(e)},[e])},m=e=>{let t=(0,r.useCallback)(t=>{let{isFullscreen:n=!1}=t;if(!e)return;let r=performance.now();requestAnimationFrame(()=>{requestAnimationFrame(()=>{let e=performance.now()-r;(0,d.gG)({...(0,s.H)(),toMode:l.q.SLIDE_VIEW,duration:e,isFullscreen:n})})})},[e]),n=(0,r.useCallback)(t=>{let{isFullscreen:n=!1}=t;if(!e)return;let r=performance.now();requestAnimationFrame(()=>{requestAnimationFrame(()=>{let e=performance.now()-r;(0,d.gG)({...(0,s.H)(),toMode:l.q.DOC_VIEW,duration:e,isFullscreen:n})})})},[e]);return{recordExitSlideModePerformance:n,recordEnterSlideModePerformance:t}},f=()=>{let[e]=(0,r.useState)(()=>new u),t=(0,r.useCallback)(()=>{e.setupProvider()},[e]),n=(0,r.useCallback)(()=>{e.downloadDoc()},[e]),i=(0,r.useCallback)(()=>{e.onCreate();let t=e.report();if(null===t){console.warn("[HoneycombDocLoadTimer] failed to generate doc timings");return}(0,d.Py)({...(0,s.H)(),duration:t.onCreate}),(0,d.aZ)({...(0,s.H)(),duration:t.downloadDoc})},[e]);return{timeOnCreate:i,timeOnSetupProvider:t,timeOnDownloadDoc:n}}},89311:function(e,t,n){"use strict";n.d(t,{l:function(){return l}});var r=n(5632),i=n(2784),a=n(7e4),o=n(88640);let l=()=>{let{pathname:e,isReady:t}=(0,r.useRouter)(),n=(0,i.useRef)(!1),[l,s]=(0,a.X)(o.H.lastHomeUrl,"/");(0,i.useEffect)(()=>{if(n.current||!t)return;let r="/inspiration"===e||"/templates"===e?e:"/";s(r),n.current=!0},[s,t,e])}},84405:function(e,t,n){"use strict";n.d(t,{J:function(){return o},Q:function(){return a}});var r=n(11050),i=n(25566);let a=e=>{let{doc_id:t,source:n,source_doc_id:a,channel:o,extra:l}=e;null===r.co||void 0===r.co||r.co.track(i.AA.DOC_CREATED,{doc_id:t,source_doc_id:a,source:n,channel:o,extra:l})},o=e=>{let{docId:t,type:n,source:a}=e;if(!t){console.debug("[trackDocShareLinkCopiedEvent]: doc_id is required");return}null===r.co||void 0===r.co||r.co.track(i.AA.DOC_SHARELINK_COPIED,{doc_id:t,source:a,type:n})}},12618:function(e,t,n){"use strict";n.r(t),n.d(t,{NewDocPage:function(){return d}});var r=n(89220),i=n(2784),a=n(17072),o=n(49165),l=n(42111),s=n(36651);let d=()=>{let{push:e,replace:t}=(0,r.useRouter)(),{currentWorkspace:n,userStatus:a}=(0,s.SE)(),d=(0,i.useRef)(!1),c=(0,l.ye)("cardLayoutsEnabled"),[u]=(0,o.c)();return(0,i.useEffect)(()=>{"loading"===a||d.current||("loggedOut"!==a&&n?(d.current=!0,u({title:"",historyFn:"replace",source:"slash-new"})):e("/signin?redirect_to=".concat(encodeURIComponent(window.location.href))))},[c,u,n,a,e,t]),null};t.default=(0,a.z)(d)},90439:function(e,t,n){"use strict";n.d(t,{Oj:function(){return l},Pv:function(){return o},QX:function(){return a},cx:function(){return i}});var r=n(14274);let i=r.v.GAMMA_PUPPETEER_SERVICE,a=i&&"pptx"===window.format,o=i&&"pdf"===window.format,l=i&&"screenshot"===window.format},7e4:function(e,t,n){"use strict";n.d(t,{X:function(){return a}});var r=n(2784),i=n(18733);function a(e,t){let[n,a]=(0,r.useState)(()=>{try{let n=i.Q.getItem(e);if(null===n)return t;return JSON.parse(n)}catch(e){return console.error("[useSessionStorage.getItem] Error getting sessionStorage item",e),t}}),o=(0,r.useCallback)(t=>{try{i.Q.setItem(e,JSON.stringify(t)),a(t)}catch(e){console.error("[useSessionStorage.setItem] Error setting sessionStorage item",e)}},[e]);return[n,o]}},62376:function(){},6991:function(){},76298:function(){},4466:function(){},43839:function(){},25237:function(e,t,n){e.exports=n(99309)}},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,4328,205,2252,1537,6656,2681,8794,9718,4001,2888,179],function(){return e(e.s=24962)}),_N_E=e.O()}]); 21//# sourceMappingURL=new-9a04972cc64fa5c6.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.