forked from duneanalytics/DuneQueryRepo
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path9002-1ae196df58dc05d0.js.download
2 lines (2 loc) · 24.8 KB
/
9002-1ae196df58dc05d0.js.download
1
2
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9002],{99002:function(e,n,t){"use strict";t.d(n,{p:function(){return X}});var r=t(85893),i=t(99227),s=t.n(i),o=t(41664),a=t.n(o),l=t(41958),c=t(67294),d=t(81139),u=t(98997),h=t(45172),p=t(58653),v=t(11969),f=t(5558),m=t.n(f),g=t(15616),x=t.n(g);function _(e){return"user"===e.activeContext.type&&e.teams.some(b)?(0,r.jsx)(w,{...e}):e.children}function w(e){let n=(0,d.C)({fetchPolicy:"cache-first"});if(!n)return e.children;let t=(0,u.A)(n.usedCredits,n.maxCredits),i=t>=110?m()(t,-1):[95,75,50].find(e=>t>=e);return void 0===i?e.children:(0,r.jsx)(y,{...e,usageThreshold:i})}function y(e){let{usageThreshold:n}=e;(0,c.useEffect)(()=>{h.Z.trackEvent("Show Switch to paid team Feature Highlight",{surpassed_usage_threshold:n})},[]);let t="feat:ContextSwitcher_use_team_quota"+":".concat(x()(new Date,"MMMM yyyy"))+":threshold=".concat(n,"%");return(0,r.jsx)(l.S,{feature:t,position:"below-center",title:"Avoid incurring overage",onDismiss:v.BR,description:(0,r.jsxs)(r.Fragment,{children:["You've spent over ",n,"% of you user account credits. You belong to a team with a paid plan. Switch to your team's context to tap into the credit quota and other benefits."]}),children:e.children},t)}function b(e){return(0,p.P)(e.serviceTier.id)}var j=t(45186),C=t(32613),k=t(30297),L=t(45886),S=t(84541),U=t(10933),I=t(1801),z=t(68536);function O(e){let n=(0,z.c)(e.session.user.privateFields.serviceTier.name);return"Free"===n?null:(0,r.jsx)(I.C,{size:"M",variant:"filled",color:"brand-orange",children:n})}function P(e){let n=(0,z.c)(e.team.serviceTier.name);return"Free"===n?null:(0,r.jsx)(I.C,{size:"M",variant:"filled",color:"brand-orange",children:n})}var E=t(38574),M=t(38858),N=t(5493),B=t(78080),D=t(96981),F=t(41118),A=t(85361),R=t(57831),T=t(45466),q=t(54919),W=t(67129),H=t(66465),Z=t(11606),$=t(11163),K=t(18035);function X(){(0,A.at)();let[e,n]=(0,v.mg)();(0,c.useEffect)(()=>()=>n(!1),[n]);let t=(0,A._0)(),i=(0,R.Ke)(),{logout:o}=(0,c.useContext)(R.B3),l=(0,T.gh)(i),d=(0,T.PK)(i);!function(e,n){let t=(0,$.useRouter)();(0,Z.useRegisterActions)([{id:"userSettings-".concat(e.user.name),name:e.user.name,keywords:e.user.name,perform:()=>{(0,A._7)({type:"user",id:e.user.id}),t.push("/settings/profile")},parent:"goToSettings",subtitle:"Settings",priority:Z.Priority.LOW,section:{name:"",priority:Z.Priority.LOW}}],[e.user]),(0,Z.useRegisterActions)(n.map(e=>({id:"teamSettings-".concat(e.handle),name:e.handle,keywords:e.handle,perform:()=>{(0,A._7)({type:"team",id:e.id}),t.push("/settings/teams/manage/".concat(e.handle,"/profile"))},parent:"goToSettings",subtitle:"Settings",priority:Z.Priority.LOW,section:{name:"",priority:Z.Priority.LOW}})),[n]),(0,Z.useRegisterActions)([{id:"userContext-".concat(e.user.name),name:e.user.name,keywords:e.user.name,perform:()=>{(0,A._7)({type:"user",id:e.user.id})},parent:"switchContext",subtitle:"Switch context",priority:Z.Priority.LOW}],[e.user]),(0,Z.useRegisterActions)(n.map(e=>({id:"teamContext-".concat(e.handle),name:e.handle,keywords:e.handle,perform:()=>{(0,A._7)({type:"team",id:e.id})},parent:"switchContext",subtitle:"Switch context",priority:Z.Priority.LOW,section:{name:"",priority:Z.Priority.LOW}})),[n]),(0,Z.useRegisterActions)([{id:"userDataUploaded-".concat(e.user.name),name:e.user.name,keywords:e.user.name,perform:()=>{t.push((0,K.Y)({type:"user",handle:e.user.name})+"/data")},parent:"goToDataUploadedAction",subtitle:"Data uploaded",priority:Z.Priority.LOW,section:{name:"",priority:Z.Priority.LOW}}],[e.user]),(0,Z.useRegisterActions)(n.map(e=>({id:"teamDataUploaded-".concat(e.handle),name:e.handle,keywords:e.handle,perform:()=>{t.push("/settings/teams/manage/".concat(e.handle,"/data"))},parent:"goToDataUploadedAction",subtitle:"Data uploaded",priority:Z.Priority.LOW,section:{name:"",priority:Z.Priority.LOW}})),[n])}(i,l);let{captureEvent:u}=(0,H.z$)();return t?(0,r.jsx)(_,{activeContext:t,teams:l,children:(0,r.jsx)(j.r,{isOpen:e,setIsOpen:n,position:"below-align-left",content:e=>{let{close:n}=e;return(0,r.jsxs)(C.s_,{children:[(0,r.jsx)(C.$0,{title:"Your account",children:(0,r.jsxs)(C.ys,{onClick:()=>{n(),(0,A._7)({type:"user",id:i.user.id}),u("ContextSwitcher: Set context",{type:"user",id:i.user.id,handle:i.user.name})},nestedButtonsOrLinks:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(S.w,{theme:"ghost",size:"XS",href:"/".concat(i.user.name),children:(0,r.jsx)(M.IconIdentificationBadge,{})}),(0,r.jsx)(S.w,{theme:"ghost",size:"XS",href:"/settings/profile",children:(0,r.jsx)(E.IconGear,{})})]}),children:[(0,r.jsx)(k.q,{size:16,src:i.user.profileImageUrl,ownerId:i.user.id,handle:i.user.name,type:"user"}),(0,r.jsxs)(C.xv,{children:["@",i.user.name]}),(0,r.jsx)(O,{session:i})]})}),(0,r.jsxs)(C.$0,{title:"Teams",maxHeight:"30.5rem",children:[l.map(e=>(0,r.jsxs)(C.ys,{onClick:()=>{n(),(0,A._7)({type:"team",id:e.id}),u("ContextSwitcher: Set context",{type:"team",id:e.id,handle:e.handle})},nestedButtonsOrLinks:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(S.w,{theme:"ghost",size:"XS",href:"/".concat(e.handle),children:(0,r.jsx)(M.IconIdentificationBadge,{})}),["admin","editor"].includes(e.membership.role)&&(0,r.jsx)(S.w,{theme:"ghost",size:"XS",href:"/settings/teams/manage/".concat(e.handle),children:(0,r.jsx)(E.IconGear,{})})]}),children:[(0,r.jsx)(k.q,{size:16,src:e.profileImageUrl,ownerId:e.id,handle:e.handle,type:"team"}),(0,r.jsxs)(C.xv,{children:["@",e.handle]}),(0,r.jsx)(P,{team:e})]},e.id)),(0,r.jsxs)(C.FB,{href:"/teams/new",children:[(0,r.jsx)(B.IconPlus,{}),(0,r.jsx)(C.xv,{children:"Create new team"})]})]}),d.length>0&&(0,r.jsx)(C.$0,{title:(0,r.jsx)(a(),{href:"/settings/teams",children:"Invites"}),maxHeight:"30.5rem",children:d.map(e=>(0,r.jsxs)(C.FB,{href:"/".concat(e.handle),nestedButtonsOrLinks:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(U.h,{theme:"ghost",size:"XS",onClick:async()=>{await (0,q.O)(e.membership.id,i),(0,T.vL)(i)},children:(0,r.jsx)(D.IconCheckmark,{})}),(0,r.jsx)(U.h,{theme:"ghost",size:"XS",onClick:async()=>{await (0,W.r)(e.membership.id,i),(0,T.vL)(i)},children:(0,r.jsx)(F.IconCross,{})})]}),children:[(0,r.jsx)(k.q,{size:16,src:e.profileImageUrl,ownerId:e.id,handle:e.handle,type:"team"}),(0,r.jsxs)(C.xv,{children:["@",e.handle]})]},e.id))}),(0,r.jsx)(C.$0,{children:(0,r.jsx)(C.ys,{onClick:o,children:"Sign out"})})]})},children:(0,r.jsxs)("button",{className:s().button,children:[(0,r.jsx)(L.i,{size:"M",color:"inherit",owner:t}),(0,r.jsx)(N.IconChevronUpDown,{})]})})}):null}},11969:function(e,n,t){"use strict";t.d(n,{BR:function(){return l},MD:function(){return a},mg:function(){return c}});var r=t(73445);let i={isMenuOpen:!1},s=(0,r.Ue)(()=>i),o=e=>e.isMenuOpen;function a(e){s.getState().isMenuOpen!==e&&s.setState({isMenuOpen:e})}function l(){a(!0)}function c(){return[s(o),a]}},54919:function(e,n,t){"use strict";t.d(n,{O:function(){return c}});var r=t(82729),i=t(76138),s=t(39137),o=t(46367),a=t(84937);function l(){let e=(0,r._)(["\n mutation AcceptInvite($id: UUID!) {\n acceptInvite(membershipId: $id) {\n id\n }\n }\n"]);return l=function(){return e},e}async function c(e,n){var t,r,s;let l=await i.bj.mutate({mutation:a.NHc,variables:{id:e},context:{session:n}});if(!(0,o.n)(null===(t=l.data)||void 0===t?void 0:t.acceptInvite.id))throw Error("An error occurred while accepting invite");return(0,o.n)(null===(s=l.data)||void 0===s?void 0:null===(r=s.acceptInvite)||void 0===r?void 0:r.id)}(0,s.Z)(l())},67129:function(e,n,t){"use strict";t.d(n,{r:function(){return l}});var r=t(82729),i=t(76138),s=t(39137),o=t(84937);function a(){let e=(0,r._)(["\n mutation DeleteMembership($id: UUID!) {\n deleteMembership(id: $id) {\n ok\n }\n }\n"]);return a=function(){return e},e}let l=async(e,n)=>{var t,r,s,a;let l=await i.bj.mutate({context:{session:n},mutation:o.$qW,variables:{id:e}});if(!(null===(r=l.data)||void 0===r?void 0:null===(t=r.deleteMembership)||void 0===t?void 0:t.ok))throw Error("Error occurred while removing membership");return null===(a=l.data)||void 0===a?void 0:null===(s=a.deleteMembership)||void 0===s?void 0:s.ok};(0,s.Z)(a())},30297:function(e,n,t){"use strict";t.d(n,{q:function(){return o}});var r=t(85893);let i=["/assets/avatar-fallback/anon-blue.png","/assets/avatar-fallback/anon-green.png","/assets/avatar-fallback/anon-orange.png","/assets/avatar-fallback/anon-purple.png","/assets/avatar-fallback/anon-yellow.png"];var s=t(61575);let o=e=>{let n=(0,s.HH)(e.src)?e.src:function(e){if(void 0===e)return i[0];let n=e%i.length,t=i[n%i.length];return null!=t?t:i[0]}(e.ownerId),t=n.replace("s=40","s=".concat(e.size)),o=n.replace("s=40","s=".concat(2*e.size)),a=n.replace("s=40","s=".concat(3*e.size)),l=[t,o+" 2x",a+" 3x"].join(", "),c=void 0!==e.handle?"@".concat(e.handle):void 0;return(0,r.jsx)("img",{srcSet:l,src:t,alt:c,"aria-hidden":void 0===c||void 0,width:e.size,height:e.size,style:{borderRadius:function(e){let{type:n,size:t}=e;return"user"===n?"100%":t<=20?"4px":t<=32?"8px":t<=48?"12px":t<=64?"16px":t<=88?"20px":"24px"}(e)},className:e.className})}},18035:function(e,n,t){"use strict";function r(e){let{type:n,handle:t}=e;switch(n){case"team":return"/workspace/t/".concat(t,"/library");case"user":return"/workspace/u/".concat(t,"/library")}}t.d(n,{Y:function(){return r}})},81139:function(e,n,t){"use strict";t.d(n,{C:function(){return h}});var r=t(82729),i=t(57831),s=t(43720),o=t(39137),a=t(84937),l=t(46367),c=t(36458);function d(){let e=(0,r._)(["\n query GetUserUsage($id: Int!) {\n user(id: $id) {\n id\n privateFields {\n id\n privateDashboardsCount\n privateQueriesCount\n maxOverageCents\n serviceTier {\n id\n name\n baseMonthlyPriceDollarsCents\n maxPrivateDashboards\n maxPrivateQueries\n nanocreditsCostCents\n }\n }\n }\n\n billableUsage {\n creditsIncluded\n creditsUsed\n extraCreditsCents\n maxExtraCreditsCents\n bytesUsed\n bytesAllowed\n alertsUsed\n maxAlerts\n }\n }\n"]);return d=function(){return e},e}let u=s.MAX_VALUE.high,h=function(){var e,n,t,r,s,o,d,h,p,v,f,m,g,x,_,w,y,b,j;let{fetchPolicy:C="cache-and-network"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},k=(0,i.Ke)(),{data:L}=(0,a.S7b)({context:{session:k},variables:{id:k.user.id},fetchPolicy:C}),S=null==L?void 0:null===(e=L.user.privateFields)||void 0===e?void 0:e.serviceTier;if(!(0,l.n)(S))return null;let U=null==L?void 0:L.user.privateFields,I=null!==(h=null==L?void 0:L.billableUsage.creditsIncluded)&&void 0!==h?h:null,z=null!==(p=null==L?void 0:L.billableUsage.creditsUsed)&&void 0!==p?p:0,O=(0,l.n)(I)&&(0,l.n)(U)&&(0,l.n)(U.maxOverageCents)&&(0,l.n)(null==S?void 0:S.nanocreditsCostCents)?Math.floor(U.maxOverageCents.div(S.nanocreditsCostCents).div(new c.O(1e9)).toNumber()+I):null;return{maxPrivateQueries:null!==(v=S.maxPrivateQueries)&&void 0!==v?v:u,maxPrivateDashboards:null!==(f=S.maxPrivateDashboards)&&void 0!==f?f:u,maxCredits:I,maxCreditsWithOverage:O,usedCredits:z,extraCreditsCents:null!==(m=null==L?void 0:null===(n=L.billableUsage)||void 0===n?void 0:n.extraCreditsCents)&&void 0!==m?m:0,maxExtraCreditsCents:null!==(g=null==L?void 0:null===(t=L.billableUsage)||void 0===t?void 0:t.maxExtraCreditsCents)&&void 0!==g?g:null,privateDashboardsCount:null!==(x=null==U?void 0:U.privateDashboardsCount)&&void 0!==x?x:0,privateQueriesCount:null!==(_=null==U?void 0:U.privateQueriesCount)&&void 0!==_?_:0,creditsOverageProtectionDisabled:(null==U?void 0:U.maxOverageCents)===null,bytesUsed:null!==(w=null==L?void 0:null===(r=L.billableUsage)||void 0===r?void 0:r.bytesUsed)&&void 0!==w?w:new c.O(0),bytesAllowed:null!==(y=null==L?void 0:null===(s=L.billableUsage)||void 0===s?void 0:s.bytesAllowed)&&void 0!==y?y:null,alertsUsed:null!==(b=null==L?void 0:null===(o=L.billableUsage)||void 0===o?void 0:o.alertsUsed)&&void 0!==b?b:0,maxAlerts:null!==(j=null==L?void 0:null===(d=L.billableUsage)||void 0===d?void 0:d.maxAlerts)&&void 0!==j?j:null}};(0,o.Z)(d())},98997:function(e,n,t){"use strict";t.d(n,{A:function(){return f},l:function(){return m}});var r=t(85893),i=t(94184),s=t.n(i),o=t(38915),a=t.n(o),l=t(24745);t(67294);var c=t(47730),d=t(95404),u=t(46367);let h=e=>{let{reachedProtectionLimit:n=!(0,u.n)(e.overageProtectionDisabled)}=e,t=e.percentage>=100,i=e.percentage>=80;return(0,r.jsx)("div",{children:(0,r.jsx)("div",{className:s()(a().progressBarContainer,!t&&!i&&a().green,(i&&!t||t&&(0,u.n)(e.overageProtectionDisabled)||t&&!(0,u.n)(e.overageProtectionDisabled)&&!n)&&a().yellow,t&&!(0,u.n)(e.overageProtectionDisabled)&&n&&a().red),children:(0,r.jsx)("div",{style:{width:"".concat(e.percentage,"%")}})})})},p=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==e?"∞":v(e,n)},v=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!n)return(0,l.u)(Math.ceil(e));let t=new Intl.NumberFormat("en-US",{minimumFractionDigits:0,maximumFractionDigits:n});return t.format(e)},f=(e,n)=>0===n?100:(0,u.n)(n)?e/n*100:0,m=e=>(0,r.jsxs)("div",{className:e.className,children:[(0,r.jsxs)("div",{className:a().usageInfo,children:[(0,r.jsxs)("div",{children:[e.title,(0,r.jsx)(c.u,{style:e.tooltipStyle,label:(0,r.jsx)("span",{className:a().tooltipLabel,children:e.tooltipLabel}),position:"above-center",children:(0,r.jsx)("div",{className:a().icon,children:(0,r.jsx)(d.IconInformation,{})})})]}),(0,r.jsxs)("span",{children:[e.prefix,v(e.currentUsage,e.maxDecimals),"/",e.prefix,p(e.maxUsage),(0,u.n)(e.usagePerMonth)?" per month":"",(0,u.n)(e.usageThisMonth)?" this month":"",e.suffix]})]}),(0,r.jsx)(h,{overageProtectionDisabled:e.overageProtectionDisabled,reachedProtectionLimit:e.reachedProtectionLimit,percentage:f(e.currentUsage,e.maxUsage)})]})},1801:function(e,n,t){"use strict";t.d(n,{C:function(){return c}});var r=t(85893),i=t(55820),s=t.n(i),o=t(94184),a=t.n(o),l=t(67294);let c=(0,l.forwardRef)((e,n)=>{let{size:t,color:i,variant:o,iconOnly:l=!1,inline:c=!1,nowrap:d=!1}=e;return(0,r.jsx)("span",{className:a()(s().badge,l&&s().iconOnly,c&&s().inline,d&&s().nowrap,s()["size-".concat(t)],s()["color-".concat(i)],s()[o],e.className),ref:n,children:e.children})})},84541:function(e,n,t){"use strict";t.d(n,{w:function(){return h}});var r=t(85893),i=t(47272),s=t.n(i),o=t(94184),a=t.n(o),l=t(48089),c=t(41664),d=t.n(c),u=t(67294);let h=(0,u.forwardRef)((e,n)=>{let{theme:t,active:i,hovered:o,size:c,className:u,onOpen:h,href:p,as:v,replace:f,scroll:m,shallow:g,passHref:x,prefetch:_,locale:w,...y}=e;return(0,r.jsx)(d(),{href:p,as:v,replace:f,scroll:m,shallow:g,passHref:x,prefetch:_,locale:w,className:a()(s().iconButton,(0,l.e)({theme:t,hovered:o,active:i}),s()["size-".concat(c)],u),ref:n,onClick:h,onAuxClick:h,...y,children:e.children})})},95645:function(e,n,t){"use strict";t.d(n,{f:function(){return o}});var r=t(85893),i=t(85417),s=t(67294);function o(e){let[n,t]=(0,s.useState)(!1);return(0,r.jsx)(i.r,{...e,isOpen:n,setIsOpen:t})}},85417:function(e,n,t){"use strict";t.d(n,{r:function(){return p}});var r=t(85893),i=t(93240),s=t.n(i),o=t(94184),a=t.n(o),l=t(14921),c=t(67294),d=t(22262),u=t(61575),h=t(52502);function p(e){let{position:n,distancePx:t=4,renderInPortal:i=!1,disabled:o=!1}=e,{isOpen:p=!1,setIsOpen:f=()=>{}}=o?{}:e,m=(0,c.useRef)(null),[g,x]=(0,c.useState)(null),_=(0,h.N)();(0,c.useEffect)(()=>{if(!p)return;function n(n){"Escape"!==n.key||e.disableEscKey||f(!1)}let t={passive:!0};return window.addEventListener("wheel",_,t),window.addEventListener("scroll",_,t),window.addEventListener("resize",_,t),window.addEventListener("keydown",n,{passive:!0,once:!0}),()=>{window.removeEventListener("wheel",_),window.removeEventListener("scroll",_),window.removeEventListener("resize",_),window.addEventListener("keydown",n)}},[p,f,_]);let w=(0,c.useMemo)(()=>(0,d.b)(n,t),[n,t]),[y,b]=(0,c.useState)({});(0,c.useLayoutEffect)(()=>{var e;let n=w(null===(e=m.current)||void 0===e?void 0:e.getBoundingClientRect(),null==g?void 0:g.getBoundingClientRect());(y.top!==n.top||y.left!==n.left)&&b(n)}),(0,c.useEffect)(()=>{if(!g)return;let e=new ResizeObserver(_);return e.observe(g),()=>e.disconnect()},[g]);let{closeOnClickOutside:j=!0}=e;return!function(e,n){let t=(0,c.useMemo)(()=>[Array.isArray(e)?e:[e]].map(e=>e.filter(u.$K))[0],[e]);(0,c.useEffect)(()=>{if(0===t.length)return;let e=e=>{0!==t.filter(e=>null!==e.offsetParent).length&&t.every(n=>!n.contains(e.target))&&n(e)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[t,n])}([m.current,g],j?()=>f(!1):()=>{}),(0,r.jsxs)(r.Fragment,{children:[p&&v(e=>i?(0,r.jsx)(l.h,{children:e}):e)((0,r.jsx)("div",{ref:x,className:s().popover,style:y,children:e.content({close:()=>f(!1)})})),c.cloneElement(e.children,{ref:m,className:a()(e.children.props.className,s().trigger,p?"active":""),onMouseDown:()=>f(!p),onKeyDown:n=>{var t,r;switch(null===(t=(r=e.children.props).onKeyDown)||void 0===t||t.call(r,n),n.key){case" ":case"Enter":f(!p);return;case"Tab":f(!1);return}}})]})}let v=e=>n=>e(n)},45186:function(e,n,t){"use strict";t.d(n,{f:function(){return r.f},r:function(){return i.r}});var r=t(95645),i=t(85417)},5493:function(e,n,t){"use strict";t.r(n),t.d(n,{IconChevronUpDown:function(){return i}});var r=t(85893);function i(){return(0,r.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.73483 7.60983C2.88128 7.46339 3.11872 7.46339 3.26517 7.60983L6 10.3447L8.73483 7.60984C8.88128 7.46339 9.11872 7.46339 9.26517 7.60984C9.41161 7.75628 9.41161 7.99372 9.26517 8.14017L6.26516 11.1402C6.11872 11.2866 5.88128 11.2866 5.73484 11.1402L2.73483 8.14017C2.58839 7.99372 2.58839 7.75628 2.73483 7.60983Z",fill:"currentColor"}),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.73483 4.39017C2.88128 4.53661 3.11872 4.53661 3.26517 4.39017L6 1.65533L8.73483 4.39016C8.88128 4.53661 9.11872 4.53661 9.26517 4.39016C9.41161 4.24372 9.41161 4.00628 9.26517 3.85983L6.26516 0.859835C6.11872 0.713388 5.88128 0.713388 5.73484 0.859835L2.73483 3.85983C2.58839 4.00628 2.58839 4.24372 2.73483 4.39017Z",fill:"currentColor"})]})}},38858:function(e,n,t){"use strict";t.r(n),t.d(n,{IconIdentificationBadge:function(){return i}});var r=t(85893);function i(){return(0,r.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M8 10.5C9.10457 10.5 10 9.60457 10 8.5C10 7.39543 9.10457 6.5 8 6.5C6.89543 6.5 6 7.39543 6 8.5C6 9.60457 6.89543 10.5 8 10.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M5 12C5.3493 11.5343 5.80224 11.1563 6.32295 10.8959C6.84366 10.6355 7.41783 10.5 8 10.5C8.58217 10.5 9.15634 10.6355 9.67705 10.8959C10.1978 11.1563 10.6507 11.5343 11 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M13 13.5V2.5C13 2.22386 12.7761 2 12.5 2L3.5 2C3.22386 2 3 2.22386 3 2.5V13.5C3 13.7761 3.22386 14 3.5 14H12.5C12.7761 14 13 13.7761 13 13.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M6 4H10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]})}},78080:function(e,n,t){"use strict";t.r(n),t.d(n,{IconPlus:function(){return i}});var r=t(85893);function i(){return(0,r.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M2.5 8H13.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M8 2.5V13.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]})}},45886:function(e,n,t){"use strict";t.d(n,{i:function(){return c}});var r=t(85893),i=t(94514),s=t.n(i),o=t(94184),a=t.n(o),l=t(30297);function c(e){let{owner:n,size:t,color:i,flip:o=!1,inline:c=!0}=e;return(0,r.jsxs)("span",{className:a()(s().identity,s()["size-".concat(t)],s()["color-".concat(i)],o&&s().flip,c&&s().inline),children:[(0,r.jsx)(l.q,{ownerId:n.id,handle:n.handle,size:d[t],src:n.profile_image_url,type:n.type}),(0,r.jsxs)("span",{className:s().handle,children:["@",n.handle]})]})}let d={XS:12,S:16,M:16,L:20}},41958:function(e,n,t){"use strict";t.d(n,{S:function(){return y}});var r=t(85893),i=t(67294),s=t(87195),o=t.n(s),a=t(45186),l=t(61451),c=t(50292),d=t(11941),u=t(27073),h=t(73445),p=t(18172);let v={active:void 0,queue:[]},f=e=>e.active,m=(0,h.Ue)(()=>v),g=()=>m(f),x=e=>(function(e,n){n.setState((0,p.ZP)(n=>{n.active===e||n.queue.includes(e)||(void 0===n.active?n.active=e:n.queue.push(e))}))})(e,m),_=e=>(function(e,n){n.setState((0,p.ZP)(n=>{n.queue=n.queue.filter(n=>n!==e),n.active===e&&(n.active=n.queue.shift())}))})(e,m);var w=t(45172);let y=(0,d.X)(function(e){let{feature:n,children:t,position:s="below-align-left",endDate:l=new Date}=e,d=g(),[h,p]=(0,i.useState)("true"!==(0,c.v4)(n)),v=(0,u.iP)().width<499,f=Date.now()>l.valueOf(),m=!h||v||f,y=()=>{var t;p(!1),w.Z.trackEvent("New Feature Local Highlight Closed",{feature:n}),(0,c.EB)(n,"true"),_(n),null===(t=e.onDismiss)||void 0===t||t.call(e)};return((0,i.useEffect)(()=>{if(!m)return x(n),w.Z.trackEvent("New Feature Local Highlight Viewed",{feature:n}),()=>{y()}},[m]),m||n!==d)?t:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:o().overlay}),(0,r.jsx)(a.r,{isOpen:h,disableEscKey:!0,setIsOpen:p,position:s,content:()=>(0,r.jsx)(b,{...e,handleClose:y}),closeOnClickOutside:!1,children:(0,r.jsx)("div",{className:o().highlightedElement,children:t})})]})});function b(e){let{title:n,description:t,actions:i,img:s,handleClose:a}=e;return(0,r.jsxs)("div",{className:o().content,children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{children:n}),(0,r.jsx)("div",{className:o().description,children:t})]}),(0,r.jsxs)("div",{className:o().actions,children:[(0,r.jsx)(l.z,{size:"M",theme:"primary",onClick:a,children:"Got it"}),i]}),s&&(0,r.jsx)("div",{className:o().image,children:(0,r.jsx)("img",{src:s.src,alt:s.alt})})]})}},47730:function(e,n,t){"use strict";t.d(n,{u:function(){return u}});var r=t(85893),i=t(1009),s=t.n(i);t(78777);var o=t(94184),a=t.n(o),l=t(67294),c=t(53343),d=t(22262);function u(e){let{children:n,label:t,"aria-label":i,hidden:o=!1,forceOpen:u=!1,darkMode:h=!1,style:p,className:v}=e,[f,m]=(0,c.lL)(),g=(0,l.useRef)(null),x=a()(s().tooltip,s().reachTooltip,h&&"darkMode",v),{position:_,distancePx:w=4}=e,y=(0,l.useMemo)(()=>(0,d.b)(_,w),[_,w]),b=u||m.isVisible&&!o;return(0,r.jsxs)(r.Fragment,{children:[l.cloneElement(n,f),(0,r.jsx)(c.zG,{style:p,ref:g,id:m.id,triggerRect:m.triggerRect,isVisible:b,label:null!=t?t:"","aria-label":i,className:x,position:y})]})}},24745:function(e,n,t){"use strict";function r(e){return"function"==typeof e.toLocaleString?e.toLocaleString():e}function i(e){return"function"==typeof e.toLocaleString?e.toLocaleString("en-US",{style:"currency",currency:"USD"}).replace(/\.00$/,""):"$"+e.toFixed(2).replace(/\.00$/,"")}t.d(n,{g:function(){return i},u:function(){return r}})},68536:function(e,n,t){"use strict";t.d(n,{c:function(){return r}});let r=e=>{switch(e){case"community":case"free":return"Free";case"plus":case"plus_annually":return"Plus";case"premium":case"premium_annually":return"Premium";default:return"Enterprise"}}},99227:function(e){e.exports={button:"ContextSwitcher_button__vM46S"}},38915:function(e){e.exports={container:"Usage_container__aAxYh",progressBarContainer:"Usage_progressBarContainer__EHDYU",red:"Usage_red__3WvOS",yellow:"Usage_yellow__0SGyr",green:"Usage_green__3l8Mj",usageInfo:"Usage_usageInfo__gqVIA",icon:"Usage_icon__8sUEO",tooltipLabel:"Usage_tooltipLabel__bHs44",upgradeBox:"Usage_upgradeBox__zmasH",buttonGroup:"Usage_buttonGroup__rUfQm"}},55820:function(e){e.exports={badge:"Badge_badge__6fUkW",inline:"Badge_inline__O8ySn",nowrap:"Badge_nowrap__oxTiP","size-S":"Badge_size-S__T2oVh",iconOnly:"Badge_iconOnly__KnngB","size-M":"Badge_size-M__02oJW","size-L":"Badge_size-L__oaX_O",filled:"Badge_filled__JYvS7","color-neutral":"Badge_color-neutral__wXvN7","color-success":"Badge_color-success__2YRuc","color-brand-blue":"Badge_color-brand-blue__kK5TC","color-brand-orange":"Badge_color-brand-orange__7NYRj","color-info":"Badge_color-info__c1I0B","color-error":"Badge_color-error__eYihJ","color-warning":"Badge_color-warning__8J_kq",outlined:"Badge_outlined__p0oP8"}},93240:function(e){e.exports={popover:"ClickPopover_popover__KRDTT",appear:"ClickPopover_appear__zJZW2",trigger:"ClickPopover_trigger__JTrwi"}},94514:function(e){e.exports={identity:"Identity_identity__7Kqfy",handle:"Identity_handle__rcrwg",flip:"Identity_flip__fpIeO",inline:"Identity_inline__h6ZFn","color-inherit":"Identity_color-inherit__ON_bE","color-text-primary":"Identity_color-text-primary__3oG9s","color-text-secondary":"Identity_color-text-secondary__eHLnM","size-XS":"Identity_size-XS__oQOjH","size-S":"Identity_size-S__El_1l","size-M":"Identity_size-M__ZebbW","size-L":"Identity_size-L__A_r_j"}},87195:function(e){e.exports={overlay:"NewFeature_overlay__Clr4d",highlightedElement:"NewFeature_highlightedElement__56kq_",content:"NewFeature_content__Z5PTs",description:"NewFeature_description__Mp1z2",actions:"NewFeature_actions__SkzgW",image:"NewFeature_image__KdE6h"}},1009:function(e){e.exports={tooltip:"Tooltip_tooltip__aUkPk",reachTooltip:"Tooltip_reachTooltip__p7rNh"}}}]);
//# sourceMappingURL=9002-1ae196df58dc05d0.js.map