1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4661],{60510:function(e,t,n){n.d(t,{r:function(){return U},h:function(){return B}});var i=n(52322),r=n(38035),o=n(17993),l=n(77533),s=n(62614),a=n(81672),d=n(42946),c=n(49929),u=n(2784),x=n(90221),p=n(90439),m=n(93441),f=n(89458),j=n(90383),v=n(18733),y=n(5879),h=n(42111),w=n(78462),g=n(94199),b=n(11082),C=n(64173),k=n(31807),N=n(6912),M=n(48832),P=n(11050),_=n(36651),A=n(81640),E=n(12265),O=n(11942),R=n(88640);let Z=[{Component:()=>{let e=(0,h.ye)("outageButterbar");if(!e.enabled)return null;let{header:t,text:n,buttonLink:r,buttonText:o,key:l,pathnameRegexp:s}=e;return(0,i.jsx)(B,{definition:{key:l,header:t,text:n,buttonText:o,buttonLink:r,conditions:()=>!s||null!==window.location.pathname.match(new RegExp(s))}})},key:"outage-butterbar"},{Component:()=>{let e=(0,h.ye)("openAiStatus");return"NORMAL"===e?null:(0,i.jsx)(B,{definition:{key:"ai-service-status",header:(0,i.jsx)(y.cC,{id:"1Agl06"}),text:(0,i.jsx)(y.cC,{id:"cCl6WD"}),ttl:86400,conditions:()=>(0,w._r)(window.location.pathname)}})},key:"ai-service-status-butterbar"},{Component:()=>{var e,t,n;let{user:r,currentWorkspace:o}=(0,_.SE)(),{subscription:l,product:s}=(0,A.z)(),{launchFailedPaymentFlow:a,failedPaymentFlowEnabled:d}=(0,N.ET)({subscription:l,workspace:o,autoLaunch:!1});if(!l||!s)return null;let c=(0,E.K)(),{name:u,dontChurnMessage:x}=c[s],{status:p,expirationTime:m,id:f}=l,j=(0,M.p6)(m,"MMMM do, yyyy"),v=(null==l?void 0:null===(e=l.createdByUser)||void 0===e?void 0:e.id)===(null==r?void 0:r.id),h=(0,O._8)(),w=m>Date.now();if(!("unpaid"===p||"past_due"===p)&&!w)return null;let C=h&&(v||!(null==l?void 0:l.createdByUser))?(0,i.jsx)(y.cC,{id:"velw1T",values:{expirationFormatted:j,GAMMA_PROPER_NOUN:g.N6,productName:u},components:{0:(0,i.jsx)(b.r,{href:h,isExternal:!0,textDecoration:"underline"})}}):(0,i.jsx)(y.cC,{id:"9aBOfk",values:{expirationFormatted:j,GAMMA_PROPER_NOUN:g.N6,productName:u,0:null===(t=l.createdByUser)||void 0===t?void 0:t.displayName,1:null===(n=l.createdByUser)||void 0===n?void 0:n.email},components:{0:(0,i.jsx)("b",{}),1:(0,i.jsx)("b",{})}});return(0,i.jsx)(B,{definition:{key:"payment-overdue-".concat(f),header:(0,i.jsx)(y.cC,{id:"gosJne",values:{productName:u}}),text:(0,i.jsxs)(i.Fragment,{children:[x," ",C]}),buttonText:(0,i.jsx)(y.cC,{id:"WLvqZR"}),buttonLink:d?void 0:h,buttonOnClick:d?a:void 0}})},key:"payment-overdue-butterbar"},{Component:()=>{let{subscription:e,openUpsellModal:t}=(0,A.z)();if(!e)return null;let{status:n,expirationTime:r,id:o}=e,l=new Date>(0,k.Z)(r)&&new Date<(0,C.Z)((0,k.Z)(r),{days:10});if(!l)return null;let s=()=>t({segmentEvent:P.AA.GAMMA_PRO_UPSELL_SUBSCRIPTION_EXPIRED_BUTTERBAR}),a=(0,i.jsx)(b.r,{onClick:s,isExternal:!0,textDecoration:"underline",children:(0,i.jsx)(y.cC,{id:"mj68q/"})});return(0,i.jsx)(B,{definition:{key:"subscription-expired-".concat(o),header:(0,i.jsx)(y.cC,{id:"5nhH6A"}),text:(0,i.jsxs)(i.Fragment,{children:["unpaid"===n||"past_due"===n?(0,i.jsx)(y.cC,{id:"QdgXJv"}):""," ",a]}),buttonText:(0,i.jsx)(y.cC,{id:"kwkhPe"}),buttonOnClick:s}})},key:"subscription-expired-butterbar"},{Component:()=>{var e,t,n;let{user:r}=(0,_.SE)(),{subscription:o,product:l}=(0,A.z)();if(!o||!l)return null;let{status:s,expirationTime:a,id:d,cancellationRequestedTime:c}=o,u="canceled"!=s&&c&&new Date<(0,k.Z)(a)&&new Date>(0,C.Z)((0,k.Z)(a),{days:-7});if(!u)return null;let x=(null==o?void 0:null===(e=o.createdByUser)||void 0===e?void 0:e.id)===(null==r?void 0:r.id),p=(0,O._8)(),m=(0,M.p6)(a,"MMMM do, yyyy"),f=(0,E.K)(),{name:j,dontChurnMessage:v}=f[l],h=!x&&(null==o?void 0:o.createdByUser)?(0,i.jsx)(y.cC,{id:"z4DeyC",values:{expirationFormatted:m,GAMMA_PROPER_NOUN:g.N6,productName:j,0:null===(t=o.createdByUser)||void 0===t?void 0:t.displayName,1:null===(n=o.createdByUser)||void 0===n?void 0:n.email},components:{0:(0,i.jsx)("b",{}),1:(0,i.jsx)("b",{})}}):(0,i.jsx)(y.cC,{id:"qP91+f",values:{expirationFormatted:m,GAMMA_PROPER_NOUN:g.N6,productName:j},components:{0:(0,i.jsx)(b.r,{href:p,isExternal:!0,textDecoration:"underline"})}});return(0,i.jsx)(B,{definition:{key:"subscription-ending-soon-".concat(d),header:(0,i.jsx)(y.cC,{id:"THJAvC",values:{productName:j}}),text:(0,i.jsxs)(i.Fragment,{children:[v," ",h]}),buttonText:(0,i.jsx)(y.cC,{id:"3jHA5d"}),buttonLink:p}})},key:"upcoming-cancellation-butterbar"},{key:"tablet-browser-warning",header:(0,i.jsx)(y.cC,{id:"JAtlMu",values:{GAMMA_PROPER_NOUN:g.N6}}),text:(0,i.jsx)(y.cC,{id:"9JlCFS",values:{GAMMA_PROPER_NOUN:g.N6}}),conditions:()=>
1(0,x.dA)(),dismissKey:R.H.lastDismissedPreferredBrowserMessage},{key:"desktop-browser-warning",header:(0,i.jsx)(y.cC,{id:"3S0+Wy",values:{GAMMA_PROPER_NOUN:g.N6}}),text:(0,i.jsx)(y.cC,{id:"Tf7VpJ"}),conditions:()=>D()&&(0,x.ds)(),dismissKey:R.H.lastDismissedPreferredBrowserMessage}],D=()=>(0,x.jP)()||!(0,x.i7)()&&!(0,x.G6)()&&!(0,x.NA)(),U=e=>{let{isViewOnly:t}=e,n=(0,m.gF)();if(t||!n||(0,x.l6)()||p.cx||(0,j.wg)())return null;let o=Z.map(e=>"Component"in e?(0,i.jsx)(e.Component,{},e.key):(0,i.jsx)(B,{definition:e},e.key));return(0,i.jsx)(r.k,{"data-testid":"butterbar",direction:"column",top:0,pos:"relative",zIndex:"banner",sx:{"> *:not(:first-child)":{display:"none"}},children:o})},B=e=>{let{definition:t}=e,{key:n,dismissKey:x="butterbar-dismiss-".concat(n),header:p,text:m,buttonText:j,buttonLink:y,buttonOnClick:h=y?()=>window.open(y,"_blank"):void 0,conditions:w,ttl:g}=t,[b,C]=(0,f.I)(x,!1);return((0,u.useEffect)(()=>{if(!(g&&b))return;let e=new Date().getTime(),t=new Date(b).getTime(),n=e-t>1e3*g;n&&v.W.removeItem(x)},[x,b,g]),w&&!w()||b)?null:(0,i.jsxs)(r.k,{direction:"row",bg:"indigo.500",color:"white",py:3,px:4,align:"center",fontSize:"sm",children:[(0,i.jsxs)(o.g,{flex:"1",align:"start",spacing:0,children:[(0,i.jsx)(l.x,{fontWeight:"bold",children:p}),(0,i.jsx)(l.x,{opacity:"0.7",fontSize:"xs",children:m})]}),j&&h&&(0,i.jsx)(s.z,{variant:"plain",size:"sm",mr:4,rightIcon:y?(0,i.jsx)(c.G,{icon:d.wlW}):void 0,onClick:h,children:j}),(0,i.jsx)(a.P,{onClick:()=>{C(String(new Date))}})]})}},4661:function(e,t,n){n.d(t,{o:function(){return s}});var i=n(52322),r=n(38035),o=n(60510);let l=e=>{let{children:t,withFooter:n,isViewOnly:l}=e;return(0,i.jsxs)(r.k,{direction:"column",width:"100%",height:"100%",minHeight:"var(--100vh)",bgColor:"gray.100",color:"gray.800",children:[(0,i.jsx)(o.r,{isViewOnly:l}),(0,i.jsx)(r.k,{zIndex:"1",id:"main",flex:"1",justifyContent:"center",alignItems:"center",direction:"column",position:"relative",children:t}),n&&(0,i.jsxs)(r.k,{fontSize:"12px",color:"gray.400",pb:8,id:"footer",justifyContent:"center",children:["\xa9 ",new Date().getFullYear()," Gamma Tech, Inc."]})]})};function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withFooter:!1,isViewOnly:!1},{withFooter:n,isViewOnly:r}=t,o=t=>(0,i.jsx)(l,{withFooter:n,isViewOnly:r,children:(0,i.jsx)(e,{...t})});return"getInitialProps"in e&&(o.getInitialProps=e.getInitialProps),o}},48832:function(e,t,n){n.d(t,{BK:function(){return b},Dw:function(){return g},Km:function(){return w},dN:function(){return y},p6:function(){return h}});var i=n(87254),r=n(82282),o=n(32361),l=n(96740),s=n(31807),a=n(73871),d=n(57907),c=n(21346),u=n(48053),x=n(1363),p=n(49738),m=n(90535),f=n(9283),j=n(75528);let v={en:d.Z,"pt-br":c.Z,ja:u.Z,"zh-cn":x.Z,"zh-tw":p.Z,es:m.Z,fr:f.Z,ko:j.Z},y=()=>v[i.ag.locale]||void 0,h=(e,t)=>e?(0,r.Z)((0,s.Z)(e),t,{locale:y()}):"",w=(e,t)=>e?(0,l.Z)((0,s.Z)(e),t?(0,s.Z)(t):new Date,{locale:y()}):"",g=e=>e?(0,o.Z)((0,s.Z)(e),{locale:y()}):"",b=e=>e?(0,a.Z)((0,s.Z)(e),new Date,{locale:y(),addSuffix:!0,roundingMethod:"floor"}):""},90439:function(e,t,n){n.d(t,{Oj:function(){return s},Pv:function(){return l},QX:function(){return o},cx:function(){return r}});var i=n(14274);let r=i.v.GAMMA_PUPPETEER_SERVICE,o=r&&"pptx"===window.format,l=r&&"pdf"===window.format,s=r&&"screenshot"===window.format}}]); 2//# sourceMappingURL=4661-b3429408016da2ee.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.