forked from bombastictranz/subquery-staking
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path9580-b5c413933add594f.min.js.br
7 lines (5 loc) · 156 KB
/
9580-b5c413933add594f.min.js.br
1
2
3
4
5
6
7
"use strict";
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9047a44e-5b97-5514-a142-1c1b22fa96d2")}catch(e){}}();
(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[9580],{388505:(e,t,a)=>{a.d(t,{$g:()=>m,DI:()=>c,Eh:()=>o,GK:()=>r,J1:()=>s,KV:()=>l,b:()=>n,cr:()=>E,jG:()=>d,kz:()=>_,nW:()=>p,o8:()=>u,u1:()=>i,wv:()=>g});let n="universal_upgrade_sequence--closeButton--S-6M2",r="universal_upgrade_sequence--modalTitle--1nrY9 text--fontPos18--rYXJb text--_fontBase--QdLsd",l="universal_upgrade_sequence--modalSubtitle--cMqzE text--fontPos14--OL9Hp text--_fontBase--QdLsd",o="universal_upgrade_sequence--createTeamInput--MuDzz basic_form--labeledInputGroup--aeD6L text--fontPos14--OL9Hp text--_fontBase--QdLsd",i="universal_upgrade_sequence--spinner--K-cVF",s="universal_upgrade_sequence--tileUpgradeButton--xeNnN",c="universal_upgrade_sequence--nextButtonSmall--LG9cZ universal_upgrade_sequence--nextButton--jDx3Q",m="universal_upgrade_sequence--createTeamSection--V3vtF",d="universal_upgrade_sequence--scrollContainer--8KeVt",_="universal_upgrade_sequence--scrollContainerTopBorder--Aeveh",u="universal_upgrade_sequence--scrollContainerBottomBorder--dWxc4",p="universal_upgrade_sequence--teamTileContainer--uef0R org_self_serve--teamLargeTileContainer--0-UBG",E="universal_upgrade_sequence--teamTile--giMxy org_self_serve--teamTileLarge--0FsN1 text--fontPos14--OL9Hp text--_fontBase--QdLsd",g="universal_upgrade_sequence--lastTeamTile--jYkbS universal_upgrade_sequence--teamTile--giMxy org_self_serve--teamTileLarge--0FsN1 text--fontPos14--OL9Hp text--_fontBase--QdLsd"},205518:(e,t,a)=>{a.d(t,{Ds:()=>m,Kk:()=>o,Qn:()=>f,Qs:()=>s,SN:()=>d,Tj:()=>h,Tn:()=>i,Ub:()=>E,a4:()=>v,aj:()=>u,by:()=>c,jT:()=>n,kL:()=>r,lq:()=>_,qr:()=>p,vb:()=>b,wx:()=>l,xM:()=>g});let n="pro_trial_form_modal--modalContainer--aTaE8",r="pro_trial_form_modal--container--oMBWe",l="pro_trial_form_modal--header--inn7X",o="pro_trial_form_modal--icon--eck6U",i="pro_trial_form_modal--titleTextContainer--kWc-a",s="pro_trial_form_modal--content--JRSOu text--fontPos13--xW8hS text--_fontBase--QdLsd",c="pro_trial_form_modal--teamSelectContainer--Q0kRd",m="pro_trial_form_modal--teamContainer--AFU49",d="pro_trial_form_modal--teamContainerSelected--mA0-o pro_trial_form_modal--teamContainer--AFU49",_="pro_trial_form_modal--teamContainerHead--3pT1M",u="pro_trial_form_modal--teamNameContainer--h2I8F",p="pro_trial_form_modal--footer--vK94I",E="pro_trial_form_modal--footerCTA--nvMaL",g="pro_trial_form_modal--teamTypeCardContainer--m6SMT",f="pro_trial_form_modal--teamTypeCardContainerSelected--D-W-b pro_trial_form_modal--teamTypeCardContainer--m6SMT",h="pro_trial_form_modal--proTrialFeatureContainer--tQWCQ",b="pro_trial_form_modal--proTrialFeatureSelectContainer--mF5Dh",v="pro_trial_form_modal--proTrialFeatureContainerSelected--ZO11j pro_trial_form_modal--proTrialFeatureContainer--tQWCQ"},98239:(e,t,a)=>{a.d(t,{Rr:()=>l,aG:()=>r,hd:()=>n});let n="plan_switcher--planSwitcherRow--spl2a",r="plan_switcher--createTeamRow--jJWye",l="plan_switcher--createTeamSeparator--aAwJ0"},24973:(e,t,a)=>{a.d(t,{Mf:()=>r,vR:()=>n,xR:()=>l});let n="tab_group--tabs--ChhR5",r="tab_group--tab--j43X-",l="tab_group--selectedTab--dwZ1b tab_group--tab--j43X-"},773891:(e,t,a)=>{a.d(t,{I:()=>_});var n=a(411855),r=a(304913),l=a(467066),o=a(402791),i=a(820657),s=a(165077),c=a(625475),m=a(521388),d=a(388505);function _({customUpgradeText:e,eligibleTeams:t,selectTeam:a,numDesignFilesPerTeam:_,showEditorCount:u=!0}){let[p,E]=(0,n.useState)(!1),[g,f]=(0,n.useState)(!1);n.useEffect(()=>{E(t.length>=5)},[t]);let h=`${d.jG}`;p&&(h+=` ${d.o8}`),g&&(h+=` ${d.kz}`);let b=t[t.length-1],v=_&&_.length===t.length;return n.createElement(l.P,{onScroll:(e,a)=>{let n=t.length>=5,r=n&&0!==e,l=n&&e+a.trackHeight!==a.scrollHeight;l!==p&&E(l),r!==g&&f(r)},className:h,scrollingDisabled:!1},n.createElement("div",{className:d.nW},t.map((t,l)=>n.createElement(s.jm,{key:t.id,className:t===b?d.wv:d.cr,onClick:()=>a(t),trackingProperties:{teamId:t.id,trackingDescriptor:i.c.UPGRADE},innerText:"Upgrade"},n.createElement("div",{className:"org_self_serve--teamInfo--NZwPd"},n.createElement(m.Ro,{className:"org_self_serve--teamIcon--pyVIW",entity:t,size:40,shape:"SQUARE"}),n.createElement("div",{className:"org_self_serve--teamText--LOruA"},n.createElement("p",{className:"org_self_serve--teamName--H89GM text--fontPos11--2LvXf text--_fontBase--QdLsd ellipsis--ellipsis--Tjyfa"},t.name),n.createElement("p",{className:"org_self_serve--teamEditors--MBtOb text--fontPos11--2LvXf text--_fontBase--QdLsd"},!v&&u&&n.createElement(o.Tx,{id:"universal_upgrade.select_team.editor_count.seat_rename",editors:t.editors}),v&&_&&n.createElement(o.Tx,{id:"universal_upgrade.select_team.files_per_team_figma_files_used",numFilesUsed:_[l],numFreeFilesAllowed:c.WW})))),n.createElement(r.nR,{className:d.J1,dataTestId:"select_team.upgrade"},e??n.createElement(o.Tx,{id:"universal_upgrade.select_team.upgrade"}))))))}},195557:(e,t,a)=>{a.d(t,{$b:()=>v,jp:()=>k,gn:()=>y,Be:()=>x});var n=a(411855),r=a(188507),l=a(829826),o=a(402791),i=a(397345),s=a(756029),c=a(550438),m=a(813733),d=a(664080),_=a(113420),u=a(174495),p=a(98140),E=a(207668),g=a(816665);let f="code_settings_panel--codeSettingRow--81hbo",h="code_settings_panel--codeSettingLabel--OV3RZ",b="code_settings_panel--codeSettingValueWrapper--UMoQH";function v({onlyShowFirstPartyLanguages:e,disabled:t}){return(0,m.YE)(),n.createElement(E.VZ,{title:(0,o.t)("dev_handoff.code.settings"),recordingKey:"codeSettings",headerChildren:n.createElement(u.u,null)},n.createElement("div",{className:"code_settings_panel--codeSettingsPanel--LR2Tt text--fontPos11--2LvXf text--_fontBase--QdLsd"},n.createElement(w,{onlyShowFirstPartyLanguages:e,disabled:t}),n.createElement(T,{disabled:t}),!t&&n.createElement(C,{recordingKey:"codeSettings.pluginSettings"})))}function w({onlyShowFirstPartyLanguages:e,disabled:t}){return n.createElement("div",{className:f},n.createElement("div",{className:h},n.createElement(o.Tx,{id:"dev_handoff.code.settings.language"})),n.createElement("div",{className:b},n.createElement(s.NH,{dropdownId:"DEV_HANDOFF_NO_SELECTION_CODE_LANGUAGE_DROPDOWN",onlyShowFirstPartyLanguages:e,disabled:t})))}function T({disabled:e}){let t=(0,m.Em)(),a=(0,i.v4)(),r=(0,m.Bs)(),l=(0,i.QN)(),s=(0,m.RH)(),c=n.useCallback(e=>r(a,l,{unit:e}),[a,r,l]);return t?n.createElement("div",{className:f},n.createElement("div",{className:h},n.createElement(o.Tx,{id:"dev_handoff.alternative_units.dimension_unit"})),!e&&n.createElement(y,{currentUnit:s,onChangeUnit:c})):null}function y({currentUnit:e,onChangeUnit:t}){let a=(0,m.wQ)(),{showing:l,toggle:i}=(0,_.B)("DEV_HANDOFF_NO_SELECTION_DIMENSION_UNIT_DROPDOWN"),s=(0,r.wA)(),d=n.useRef(null),u=n.useMemo(()=>new x(a),[a]),E=n.useMemo(()=>c.zq.map(a=>({name:a.toString(),displayText:u.format(a),callback:()=>t(a),isChecked:a===e})),[e,u,t]);return n.createElement("div",{className:"code_settings_panel--codeSettingUnitDropdownContainer--ywHNy","data-tooltip":(0,o.t)("dev_handoff.alternative_units.dimension_unit"),"data-tooltip-show-above":!0},n.createElement("div",{ref:d,"data-testid":"dimension_unit",className:b},n.createElement(g.uQ,{formatter:u,property:e,onClick:()=>i()})),l&&d.current&&n.createElement(p.j,{items:E,onSelectItem:e=>{e.callback&&e.callback("",null,s)},dispatch:s,parentRect:d.current.getBoundingClientRect(),showPoint:!1,lean:"right",leanPadding:8,alwaysShowCheckMarkOffset:!0,activatePathOnMount:[u.format(e)]}))}class x{constructor(e){this.scaledUnitName=e}format(e){return e===d.tKW.PIXEL?(0,o.t)("dev_handoff.alternative_units.pixel_unit"):this.scaledUnitName}}function C(e){let t=(0,m.SF)({includeActions:!1});return 0===t.length?null:n.createElement(n.Fragment,null,t.map(t=>n.createElement(N,{key:t.name,item:t,recordingKey:l.Pt(e,`${t.name}`)})))}function N({item:e,recordingKey:t}){return n.createElement("div",{className:f},n.createElement("div",{className:h},e.displayText),n.createElement(k,{item:e,recordingKey:t}))}function k({item:e,recordingKey:t}){var a,o;let{showing:i,data:s,toggle:c}=(0,_.B)("CODEGEN_PLUGIN_SETTINGS_DROPDOWN"),m=(0,r.wA)(),d=n.useRef(null),u=e.name===(null==s?void 0:s.name)&&i,E=(null==(o=null==(a=e.children)?void 0:a.find(e=>e.isChecked))?void 0:o.displayText)??"",f=l.rf(l.Pt(t,"select"),"click",()=>c({data:{name:e.name??""}}));return n.createElement("div",null,n.createElement("div",{ref:d,className:b},n.createElement(g.uQ,{formatter:{format:e=>e},property:E,onClick:f})),u&&d.current&&n.createElement(p.j,{items:e.children??[],onSelectItem:e=>{var t;null==(t=e.callback)||t.call(e,"",null,m)},dispatch:m,recordingKey:l.Pt(t,"dropdown"),parentRect:d.current.getBoundingClientRect(),showPoint:!1,lean:"right",leanPadding:8,alwaysShowCheckMarkOffset:!0,activatePathOnMount:E?[E]:void 0}))}},284579:(e,t,a)=>{a.d(t,{S_:()=>N,cw:()=>k,g_:()=>C,gk:()=>S});var n=a(169614),r=a(703473),l=a(611464),o=a(952277),i=a(55362),s=a(656927),c=a(377372),m=a(402791),d=a(248228),_=a(983245),u=a(705715),p=a(22310),E=a(268082),g=a(625475),f=a(477654),h=a(950187),b=a(854918),v=a(703204),w=a(639061),T=a(352604),y=a(276253),x=a(156828);let C=(0,d.nF)((e,{teamId:t,teamName:a,previousView:n})=>{e.dispatch(_.$T({view:"promoReview",teamId:t,teamName:a,previousView:n}))}),N=(0,d.nF)((e,t)=>{let{promoCode:a,teamId:n,teamName:r,onSuccess:l,onError:o}=t;s.Ay.post("/api/teams/redeem_promo",{promo_code:a,team_id:n}).then(()=>{l(),e.dispatch(c.s.flash((0,m.t)("flash.redeem_promo.success",{teamName:r})))}).catch(t=>{o(),e.dispatch(c.s.error((0,m.t)("flash.redeem_promo.failure")))})}),k=(0,d.nF)((e,t)=>{var a;let{teamId:n,surveyResult:r}=t,o=null==(a=e.getState().user)?void 0:a.id,i=(0,l.kc)().ps_benchmark;s.Ay.post(`/api/teams/${n}/pro_trial`).then(()=>{i&&o?e.dispatch(w._l({workspace:{userId:o,orgId:null,teamId:n},view:{view:"allProjects"}})):e.dispatch(_.$T({view:"team",teamId:n})),e.dispatch(c.s.flash((0,m.t)("payments.pro_trial.start_pro_trial_success"))),f.R_.trackInitiationSubmit(r,!0)}).catch(t=>{i&&o?e.dispatch(w._l({workspace:{userId:o,orgId:null,teamId:n},view:{view:"recentsAndSharing"}})):e.dispatch(_.$T({view:"recentFiles"})),e.dispatch(c.s.error((0,m.t)("payments.pro_trial.start_pro_trial_error"))),f.R_.trackInitiationSubmit(r,!1)})}),S=(0,d.nF)((e,{teamName:t,invites:a,teamId:d,selectedCurrency:f,hasSelectedStudentTeam:C,teamFlowType:N,onSuccess:k,promotionCodeId:S})=>{var I;let A;let O=e.getState(),P=(0,l.kc)().ps_benchmark,R=(0,l.kc)().pro_onboarding_launch,D=null==(I=O.user)?void 0:I.id,M=(e,t)=>({annual_quantity:(0,g.fD)(e,t),monthly_quantity:(0,g.Rq)(e,t)}),L={...M(O.payment.billingPeriod,O.payment.numDesignEditors),annual_whiteboard_quantity:M(O.payment.billingPeriod,O.payment.numWhiteboardEditors).annual_quantity,monthly_whiteboard_quantity:M(O.payment.billingPeriod,O.payment.numWhiteboardEditors).monthly_quantity,editor_status_changes:O.payment.editorStatusChanges,subscription_monthly_quantity_figjam:M(O.payment.billingPeriod,O.payment.numWhiteboardEditors).monthly_quantity,subscription_annual_quantity_figjam:M(O.payment.billingPeriod,O.payment.numWhiteboardEditors).annual_quantity,vat_gst_id:O.payment.vatGstId||null,regional_vat_gst_id:O.payment.regionalVatGstId||null,legal_name:O.payment.legalName||null,display_name:O.payment.displayName||null};if(null===d){let e=O.payment.promo,n=!!O.user&&(0,i.cn)(O.user);if(null!=e)A={...L,team_name:t,invite_emails:a,promo_code:e.code};else if(n&&C)A={...L,team_name:t,invite_emails:a,student_team:!0};else{let e=(0,l.DC)();A={...L,team_name:t,invite_emails:a,subscribe_to_pro:!0,address:null==e?void 0:e.address,payment_method_id:null==e?void 0:e.payment_method_id,selected_currency:f,promotion_code_id:S}}}else A={...L,selected_currency:f,promotion_code_id:S};let F=d?`/api/subscriptions-2018-11-08/team/${d}`:"/api/teams/create",B=O.selectedView,U=O.payment.upgradingNewTeam;s.Ay.post(F,A).then(({data:t})=>{let l="team"in t.meta?t.meta.team:t.meta,i=()=>{if(P&&D){let t={userId:D,teamId:l.id,orgId:null};e.dispatch(w._l({workspace:t,view:{view:"allProjects",isProUpgrade:R||void 0}}))}else e.dispatch(_.$T({view:"team",teamId:l.id})),R?e.dispatch(u.to({type:v.C,data:{teamId:l.id}})):e.dispatch(c.s.flash((0,m.t)("flash.successfully_upgraded_to_a_professional_team")))};d||(0,E.P8)(l,e,{dontRedirect:!0,inviteEmails:a,teamFlowType:N}),e.dispatch(T.I2({submitPending:!1})),e.dispatch(T.Je({editorStatusChanges:{upgrade:{whiteboard:[],design:[],slides:[],sites:[]},downgrade:{whiteboard:[],design:[],slides:[],sites:[]}}})),l&&e.dispatch(y.yJ({team:l,userInitiated:!1})),l.student_team&&e.dispatch(T.Lo({billingPeriod:h.tY.UNSPECIFIED})),O.payment.promo&&((0,o._H)(),e.dispatch(T.Ay({promo:null})));let s=new URLSearchParams(r.Ay.location.search);if(U){if(s.get("onCompleteRedirectFileKey")){let t=decodeURIComponent(s.get("onCompleteRedirectFileKey")),a=decodeURIComponent(s.get("onCompleteRedirectNodeId")),n={view:"fullscreen",fileKey:t,...a?{nodeId:a}:{}};e.dispatch(_.$T({...n,teamToMoveFileToOnNavigate:l.id,editorType:"design"}))}else i()}else if(e.dispatch(x.Be({teamId:l.id})),s.get("onCompleteRedirectFileKey")){let t=decodeURIComponent(s.get("onCompleteRedirectFileKey")),a=decodeURIComponent(s.get("onCompleteRedirectNodeId")),n={view:"fullscreen",fileKey:t,...a?{nodeId:a}:{}};e.dispatch(_.$T({...n,teamToMoveFileToOnNavigate:l.id,editorType:"design"}))}else i();(0,n.sx)("Pro Team Purchased (GTM)"),k&&k()}).catch(t=>{var a;let l=(t,a={})=>{let n=new URLSearchParams(r.Ay.location.search),l=n.get("onCompleteRedirectFileKey"),o=n.get("onCompleteRedirectNodeId");e.dispatch(_.$T({...B,view:"teamUpgrade",teamFlowType:t?b.SC.UPGRADE_EXISTING_TEAM:b.SC.CREATE_AND_UPGRADE,teamId:t||a.freeTeamId||null,paymentStep:h.tn.PAYMENT_AND_ADDRESS,previousView:B.previousView,planType:b.Sc.TEAM,...l?{searchParams:{onCompleteRedirectFileKey:l,onCompleteRedirectNodeId:o}}:{}}))};e.dispatch(T.I2({submitPending:!1}));let o=(null==(a=t.data)?void 0:a.message)||t.message;null!==d?(0,p._J)("Pro Checkout Error",d,O,{error_message:o}):(0,n.sx)("Pro Checkout Error"),((t,a)=>{let n=(0,m.Jv)(t);n&&("PROMO_CODE"===t.data.reason?(e.dispatch(T.Ay({promo:null})),l(a,{}),e.dispatch(T.Qg({error:n}))):"CARD_ERROR"===t.data.reason?(e.dispatch(T.WG({token:null})),l(a,{}),e.dispatch(T.Qg({error:n}))):"PROMOTION_CODE_ID_ERROR"===t.data.reason?e.dispatch(T.Qg({error:n,errorCode:"PROMOTION_CODE_ID_ERROR"})):e.dispatch(c.s.error(n)))})(t,d)})})},704675:(e,t,a)=>{a.d(t,{F:()=>m,x:()=>c});var n=a(402791),r=a(573760),l=a(680452),o=a(275238),i=a(248228),s=a(308736);let c=(0,i.nF)(async(e,t)=>{let{currentUserOrgId:a}=e.getState();if(!a)throw Error("currentOrgId not set while attempting to self-assign workspace");await l.Eh.selfAssignWorkspace({orgId:a,workspaceId:t.workspace.id}).then(a=>{let l;let o=t.workspace.name;o&&(l=(0,n.t)("workspace.you_joined_the_workspace",{groupName:o}),e.dispatch(r.F.enqueue({type:"self-assign-workspace",message:l}))),e.dispatch(s.yJ({orgUser:a.data.meta,userInitiated:!1}))}).catch(t=>{var a;e.dispatch(r.F.enqueue({type:"self-assign-workspace",message:(null==(a=t.data)?void 0:a.message)||(0,n.t)("workspace.an_error_occurred_while_submitting_your_workspace_selection"),error:!0}))})}),m=(0,i.MM)("WORKSPACE_DEFAULT_TEAMS_SET",async(e,t,{optimistId:a})=>{var l,s;try{let s=(null==(l=t.workspace.defaultTeams)?void 0:l.map(e=>e.teamId))||[],c=s.filter(e=>!t.teamIds.includes(e)),m=t.teamIds.filter(e=>!s.includes(e));c.length&&await o.u.deleteDefaultTeams({workspaceId:t.workspace.id,removedTeamIds:c}),m.length&&await o.u.addDefaultTeams({workspaceId:t.workspace.id,addedTeamIds:m}),e.dispatch(i.hp.commit(a)),e.dispatch(r.F.enqueue({type:"workspace-default-teams-set",message:(0,n.t)("workspace.succesfully_updated_default_teams")}))}catch(t){e.dispatch(i.hp.revert(a)),e.dispatch(r.F.enqueue({type:"workspace-default-teams-set",message:(null==(s=t.data)?void 0:s.message)||(0,n.t)("workspace.failed_to_update_default_teams_please_try_again"),error:!0}))}})},86630:(e,t,a)=>{a.d(t,{K:()=>l,w:()=>r});var n=a(188507);function r(e){var t,a;return!(null==(t=null==e?void 0:e.profile)?void 0:t.job_title)||!(null==(a=null==e?void 0:e.profile)?void 0:a.images)}function l(e){let t=r(e),a=(0,n.d4)(e=>{var t;return null==(t=e.userFlags)?void 0:t.seen_profile});return t&&!a}},269732:(e,t,a)=>{a.d(t,{z:()=>_});var n=a(188507),r=a(465),l=a(639061),o=a(705715),i=a(979282),s=a(21122),c=a(194646),m=a(206936),d=a(846659);function _(){let e=(0,s.TA)(),t=(0,n.wA)(),a=(0,c.f)("team_creation_speed_bump_dismissed"),_=(0,n.d4)(e=>e.teams),u=(0,n.d4)(e=>e.roles.byTeamId),p=(0,r.I7)("starter_team_loophole_experiment_m0"),E=(0,r.I7)("starter_team_loophole_experiment_m1"),g=(0,n.d4)(e=>e.user),f=()=>{e&&t(l.Dw({ignoreCurrentPlan:!0}))};return e&&!a&&(0,m.Ct)(e,Object.values(_),u)&&!(0,i.e5)({userId:e,teams:Object.values(_),rolesByTeamId:u,getM0Config:p.getConfig,getM1Config:E.getConfig})?()=>t(o.to({type:d.FK,data:{user:g,startTeamCreation:f,editorType:null}})):f}},905180:(e,t,a)=>{a.d(t,{x:()=>m});var n=a(411855),r=a(188507),l=a(304913),o=a(959875),i=a(402791),s=a(705715),c=a(419298);function m(e){return"org"===e.variant?n.createElement(d,{...e}):n.createElement(_,{...e})}function d(e){return n.createElement("div",null,n.createElement(u,{subtitle:n.createElement(i.Tx,{id:"org_self_serve.review_step.organization_details"})}),n.createElement(p,{header:n.createElement(i.Tx,{id:"org_self_serve.review_step.company_name"}),value:e.legalName}),n.createElement(p,{header:n.createElement(i.Tx,{id:"org_self_serve.review_step.company_display_name"}),value:e.displayName}),n.createElement(p,{header:n.createElement(i.Tx,{id:"org_self_serve.review_step.domain"}),value:e.domain}),e.totalTeams>0&&n.createElement(p,{header:n.createElement(i.Tx,{id:"org_self_serve.review_step.teams"}),value:e.totalTeams.toString()}))}function _(e){let t=(0,r.wA)();return n.createElement("div",null,n.createElement(u,{subtitle:n.createElement(i.Tx,{id:"pro_cart.review.details"})}),n.createElement(p,{header:n.createElement(i.Tx,{id:"pro_cart.review.team_name"}),value:e.displayName}),n.createElement(p,{header:n.createElement(i.Tx,{id:"pro_cart.review.company_name"}),value:e.legalName}),n.createElement(l.Ph,{onClick:()=>{t((0,s.to)({type:c.L,data:{modalTitle:(0,i.t)("pro_cart.review.edit_details_modal_header"),displayName:e.displayName,legalName:e.legalName,updateNameImmediately:!1}}))},trackingEventName:"Edit team details - checkout flow",trusted:!0},n.createElement(i.Tx,{id:"pro_cart.review.edit_all_details"})))}function u({subtitle:e}){return n.createElement("div",{className:o.cx.font15.fontMedium.lh24.colorText.$},e)}function p({header:e,value:t}){return n.createElement("div",{className:o.cx.flex.flexColumn.mt16.$},n.createElement("p",{className:o.cx.font11.lh16.spacingWide.colorText.$},e),n.createElement("p",{className:o.cx.font13.lh24.fontMedium.colorText.breakWord.$},t))}},477654:(e,t,a)=>{let n,r,l;a.d(t,{$Q:()=>k,Mm:()=>T,NN:()=>w,PG:()=>A,R_:()=>o,TB:()=>S,bo:()=>I,h3:()=>N,iX:()=>y});var o,i=a(411855),s=a(169614),c=a(487644),m=a(402791),d=a(884096),_=a(677029),u=a(965821),p=a(485247),E=a(569673),g=a(301834),f=a(383234),h=a(637427),b=a(236446),v=a(176694);let w="Pro Trial Initiation Modal",T="Pro Trial Downgrade Modal";var y=((n=y||{})[n.SELECT_TEAM=0]="SELECT_TEAM",n[n.SELECT_TEAM_TYPE=1]="SELECT_TEAM_TYPE",n[n.SELECT_FEATURES=2]="SELECT_FEATURES",n),x=((r=x||{}).FREELANCER="freelancer",r.AGENCY="agency",r.PRODUCT="product",r.OTHER="other",r),C=((l=C||{}).UNLIMITED_FILES="unlimited_files",l.COMPONENT_LIBRARIES="component_libraries",l.ORGANIZING_FILES="organizing_files",l.VOTING_WORKSHOPS="voting_workshops",l.PLAYING_VIDEOS="playing_videos",l.SHARING_FILES="sharing_files",l.INVITING_VISITORS="inviting_visitors",l.AUDIO="audio",l);let N=Object.keys(y).length/2,k={freelancer:"https://static.figma.com/uploads/06cfa92c773695fb0be0202d467640e521950e67",agency:"https://static.figma.com/uploads/e98abc8479042db5e94f5c35bf764ad4326f892f",product:"https://static.figma.com/uploads/915ace9058a397e6e4ceadc221dd20a9d95898d7",other:"https://static.figma.com/uploads/4423aaa8499d483db2703e6cad1b4c90805e7f16"},S=[{teamType:"freelancer",imageAltText:()=>(0,m.t)("pro_trials_v3.pro_trial_initiation_modal.freelancer"),descriptionText:i.createElement(d.E,{i18nId:"pro_trials_v3.pro_trial_initiation_modal.freelancer",fontSize:14,fontWeight:"medium"})},{teamType:"agency",imageAltText:()=>(0,m.t)("pro_trials_v3.pro_trial_initiation_modal.agency"),descriptionText:i.createElement(d.E,{i18nId:"pro_trials_v3.pro_trial_initiation_modal.agency",fontSize:14,fontWeight:"medium"})},{teamType:"product",imageAltText:()=>(0,m.t)("pro_trials_v3.pro_trial_initiation_modal.product"),descriptionText:i.createElement(d.E,{i18nId:"pro_trials_v3.pro_trial_initiation_modal.product",fontSize:14,fontWeight:"medium"})},{teamType:"other",imageAltText:()=>(0,m.t)("pro_trials_v3.pro_trial_initiation_modal.other_team_type"),descriptionText:i.createElement(d.E,{i18nId:"pro_trials_v3.pro_trial_initiation_modal.other_team_type",fontSize:14,fontWeight:"medium"})}],I={unlimited_files:i.createElement(c.B,{svg:u.A}),component_libraries:i.createElement(c.B,{svg:h.A}),organizing_files:i.createElement(c.B,{svg:p.A}),voting_workshops:i.createElement(c.B,{svg:v.A}),playing_videos:i.createElement(c.B,{svg:b.A}),sharing_files:i.createElement(c.B,{svg:f.A}),inviting_visitors:i.createElement(c.B,{svg:E.A}),audio:i.createElement(c.B,{svg:g.A})},A=[{featureType:"unlimited_files",featureText:i.createElement(d.E,{i18nId:"pro_trials_v3.pro_trial_initiation_modal.unlimited_files",fontSize:14,fontWeight:"medium"})},{featureType:"component_libraries",featureText:i.createElement(d.E,{i18nId:"pro_trials_v3.pro_trial_initiation_modal.component_libraries",fontSize:14,fontWeight:"medium"})},{featureType:"organizing_files",featureText:i.createElement(d.E,{i18nId:"pro_trials_v3.pro_trial_initiation_modal.organizing_files",fontSize:14,fontWeight:"medium"})},{featureType:"voting_workshops",featureText:i.createElement(d.E,{i18nId:"pro_trials_v3.pro_trial_initiation_modal.voting_workshopping",fontSize:14,fontWeight:"medium"})},{featureType:"playing_videos",featureText:i.createElement(d.E,{i18nId:"pro_trials_v3.pro_trial_initiation_modal.playing_videos",fontSize:14,fontWeight:"medium"})},{featureType:"sharing_files",featureText:i.createElement(d.E,{i18nId:"pro_trials_v3.pro_trial_initiation_modal.sharing_files",fontSize:14,fontWeight:"medium"})},{featureType:"inviting_visitors",featureText:i.createElement(d.E,{i18nId:"pro_trials_v3.pro_trial_initiation_modal.inviting_visitors",fontSize:14,fontWeight:"medium"})},{featureType:"audio",featureText:i.createElement(d.E,{i18nId:"pro_trials_v3.pro_trial_initiation_modal.using_audio",fontSize:14,fontWeight:"medium"})}];(o||(o={})).trackInitiationSubmit=function(e,t){(0,s.sx)("pro_trial_initiation_submit",{startedTrialSuccessfully:t,...e,..._.ng.getTrackingProperties(),features:e.features?e.features.join(", "):null})}},892820:(e,t,a)=>{a.d(t,{pG:()=>U,qs:()=>B});var n=a(411855),r=a(89487),l=a(679720),o=a(16248),i=a(109388),s=a(188507),c=a(491059),m=a(202980),d=a(731630),_=a(732326),u=a(480201),p=a(292101),E=a(959875),g=a(402791),f=a(518867),h=a(165247),b=a(983245),v=a(639246),w=a(452555),T=a(585219),y=a(704268),x=a(220485),C=a(113420),N=a(736176),k=a(579038),S=a(417446),I=a(328430),A=a(673327),O=a(631044),P=a(98140),R=a(757358),D=a(455399),M=a(796206),L=a(140586),F=a(362679);function B(){let e=(0,I.VR)(),t=(0,x.JI)();return n.createElement(U,{...e,runPlugin:t})}let U=n.memo(function(e){return!function(){let[e,t]=n.useState(!1);return n.useEffect(()=>{let e=requestAnimationFrame(()=>{t(!0)});return()=>cancelAnimationFrame(e)},[]),e}()?null:n.createElement(p.tH,{boundaryKey:"PinnedPlugins",fallback:n.createElement(n.Fragment,null)},n.createElement(d.hh,null,n.createElement(G,{...e}),n.createElement(j,null)))});function j(){let e=K(),t=!!e,[a,r]=n.useState({x:0,y:0});return n.useEffect(()=>{if(t){let e=e=>{r({x:e.clientX,y:e.clientY})};return window.addEventListener("mousemove",e),()=>window.removeEventListener("mousemove",e)}},[t]),e?i.createPortal(n.createElement(A.V,{plugin:e,className:E.cx.h16.w16.bRadius2.$,style:{position:"fixed",left:a.x-8,top:a.y-8,pointerEvents:"none",zIndex:1e5}}),document.body):null}function G(e){var t;let{pinnedPlugins:a,unpinPlugin:r,movePin:l,runPlugin:o}=e,i=(0,_.md)(S.be),[c,d]=n.useState(!1),u=K(),p=(0,s.wA)(),{shownPlugins:g,overflowPlugins:f}=a.length>3?{shownPlugins:a.slice(0,2),overflowPlugins:a.slice(2)}:{shownPlugins:a,overflowPlugins:[]},h=(null==i?void 0:i.plugin_id)??null,b=f.findIndex(e=>e.plugin_id===h);if(-1!==b){let e=f[b];u||f.splice(b,1),g.push(e)}let w=null==(t=g[g.length-1])?void 0:t.plugin_id,T=(0,m.k9)(()=>new Set(a.map(e=>e.plugin_id)),[a]);return n.useEffect(()=>{p(v.Vg({resourceType:N.bD.PLUGIN,resourceIds:Array.from(T)}))},[T,p]),n.createElement("div",{className:E.cx.flex.flexRow.flexGrow1.itemsEnd.$,"data-testid":"pinned-plugins"},n.createElement("div",{className:E.cx.hFull.wFull.flex.flexRow.justifyEnd.alignCenter.$},n.createElement(H,{target:{type:"begin"},variant:"vertical"}),g.map(e=>{let t=e.plugin_id===h&&!!u&&-1!==b;return n.createElement("div",{key:e.plugin_id,style:{visibility:t?"hidden":"visible",display:"contents"}},n.createElement(z,{plugin:e,unpinPlugin:r,movePin:l,runPlugin:o,setIsDropdownShown:d}),n.createElement(H,{target:{type:"after",id:e.plugin_id},variant:"vertical",disabled:t}))}),f.length>0&&n.createElement(W,{isDropdownShown:!!u||c,setIsDropdownShown:d,plugins:f,unpinPlugin:r,lastShownPluginID:w,movePin:l,runPlugin:o})))}function z({plugin:e,unpinPlugin:t,movePin:a,runPlugin:l,setIsDropdownShown:o}){var i;let m=(0,y.Gt)(e.plugin_id,"pinned"),d=(0,_.md)(S.be),u=(null==d?void 0:d.plugin_id)??null,[p,g]=(0,_.fp)(f.H),v=(0,c.U)(),T=n.useRef(null),x=(0,h._I)(),N=(0,O.ks)()&&!x,I=(0,s.wA)(),R=(0,C.U)(),D=(0,y.pd)(e.plugin_id,m),F=D.length>0,B=(0,L.yG)(e.plugin_id,"pinned")&&F,U=n.useCallback(t=>{if(F){B?I(b.oB()):I((0,L.dr)({pluginId:e.plugin_id,tileType:"pinned"}));return}m()},[F,m,B,I,e.plugin_id]),[{isDragging:j},G]=(0,r.i)(()=>({type:"pinned-plugin",collect:e=>({isDragging:!!e.isDragging()}),item:e,canDrag:()=>u!==e.plugin_id&&!N,end:(t,n)=>{let r=n.getDropResult();n.didDrop()&&r&&a(e.plugin_id,r)}}),[N,a,u,e.plugin_id]),z=(null==R?void 0:R.type)===V&&R.data.pluginId===e.plugin_id,W=n.useCallback(t=>{t.stopPropagation(),t.preventDefault(),z?I(b.oB()):I(b.j7({type:V,data:{targetRect:t.currentTarget.getBoundingClientRect(),pluginId:e.plugin_id}}))},[I,z,e.plugin_id]),H=null==(i=T.current)?void 0:i.getBoundingClientRect();return n.createElement("div",{className:E.cx.relative.$,ref:T},n.createElement("button",{className:(null==d?void 0:d.plugin_id)===e.plugin_id?"pinned_plugins--runningPin--SFxzi pinned_plugins--basePin--ivx6q":"pinned_plugins--pin--QIbCP pinned_plugins--basePin--ivx6q","data-tooltip-type":z||j?void 0:k.Ib.TEXT,"data-tooltip":z||j?void 0:e.name,onClick:t=>{N?(g(f._.PLUGIN),I(w.IN({fdPreviewResource:{id:e.plugin_id,type:M.s.PLUGIN}}))):F?U(t):l&&(g(f._.PLUGIN),u!==e.plugin_id&&(m(),v("Dev Handoff Ran Pinned Plugin",{pluginId:e.plugin_id})),o(!1))},onContextMenu:W},n.createElement(A.V,{plugin:e,draggable:!1,className:E.cx.h16.w16.bRadius2.$,ref:G,style:{opacity:j?.5:1}})),z&&n.createElement($,{plugin:e,unpinPlugin:t}),B&&H&&n.createElement(P.j,{showPoint:!1,items:D,onSelectItem:t=>{t.callback&&(t.callback("",null,I),o(!1),v("Dev Handoff Ran Pinned Plugin Submenu",{pluginId:e.plugin_id}))},parentRect:H,dispatch:I,lean:"left"}))}function W({plugins:e,unpinPlugin:t,lastShownPluginID:a,isDropdownShown:r,setIsDropdownShown:l,movePin:o,runPlugin:i}){let s=n.useRef(null);return n.useEffect(()=>{let e=e=>{s.current&&!s.current.contains(e.target)&&l(!1)};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[l]),n.createElement(n.Fragment,null,n.createElement("div",{className:"pinned_plugins--dotContainer--SMpVn",ref:s},n.createElement(D.YW,{svg:F.A,onClick:()=>l(!r),onMouseDown:T.dG,recordingKey:"overflow_pins",selected:!1,tooltipForScreenReadersOnly:!0,"data-tooltip-type":k.Ib.TEXT,"data-tooltip":(0,g.t)("dev_handoff.inspect_panel.more_plugins")}),r&&n.createElement("div",{className:"pinned_plugins--dropdown--qIr18"},n.createElement(H,{target:{type:"after",id:a},variant:"horizontal"}),e.map(e=>n.createElement(n.Fragment,{key:e.plugin_id},n.createElement(z,{plugin:e,unpinPlugin:t,movePin:o,runPlugin:i,setIsDropdownShown:l}),n.createElement(H,{target:{type:"after",id:e.plugin_id},variant:"horizontal"}))))))}function $({plugin:e,unpinPlugin:t}){let a=(0,C.U)();return n.createElement(R.Cf,{targetRect:null==a?void 0:a.data.targetRect,lean:"left",minWidth:64,maxWidth:120,disableDropdownScrollContainer:!0,propagateCloseClick:!0},n.createElement(u.W.Option,{onClick:()=>t(e.plugin_id)},n.createElement(g.Tx,{id:"dev_handoff.inspect_panel.unpin"})))}function H({target:e,variant:t,disabled:a=!1}){let[{isOver:r},o]=(0,l.H)(()=>({accept:"pinned-plugin",drop:()=>e,collect:e=>({isOver:!!e.isOver()}),canDrop:()=>!a}),[e,a]),i={position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",flexGrow:"begin"===e.type?1:0,..."vertical"===t?"begin"===e.type?{position:"relative",justifyContent:"end",minWidth:16,height:32,marginRight:-8}:{width:16,height:32,top:0,left:-8}:{width:32,height:16,top:-8,left:0}};return n.createElement("div",{style:{position:"relative",flexGrow:"begin"===e.type?1:0,width:0,height:0,display:"flex",overflow:"visible",zIndex:200}},n.createElement("div",{style:i,ref:o},r&&n.createElement(q,{variant:t,target:e})))}function q({variant:e,target:t}){return n.createElement("div",{style:{background:"var(--color-icon-brand)",..."horizontal"===e?{height:2,width:32}:{height:32,width:2},..."begin"===t.type?{marginRight:6}:{}}})}function K(){let e=(0,o.u)(),[t,a]=n.useState(null);return n.useEffect(()=>e.getMonitor().subscribeToStateChange(()=>{a(e.getMonitor().getItem())}),[e,a]),t}let V="PINNED_PLUGIN_DROPDOWN"},367571:(e,t,a)=>{let n;a.d(t,{G:()=>p,Q:()=>u});var r=a(411855),l=a(629019),o=a.n(l),i=a(611464),s=a(732326),c=a(292101),m=a(61415),d=a(917278),_=a(384380),u=((n=u||{}).FILE_BROWSER="file_browser",n);function p({entryPoint:e}){return r.createElement(c.tH,{boundaryKey:"figment-debugger",fallback:r.createElement("div",null)},r.createElement(E,{entryPoint:e}))}function E({entryPoint:e}){let[t,a]=(0,s.fp)(d.eE);return(0,r.useEffect)(()=>{a(!!(0,_.wh)())},[]),t&&(0,i.kc)().figment_debugger?r.createElement("div",{className:o()("file_browser"===e?"figment_debugger--fileBrowserContainer--KNMPr figment_debugger--container--4qsMx":"figment_debugger--container--4qsMx",m.s4,m.Dm)},r.createElement(g,null)):null}function g(){let[e,t]=(0,s.fp)(d.a4),[a,n]=(0,r.useState)([]),l=(0,r.useRef)(null),o=l.current&&l.current.value.length>0,i=o?a:e;return r.createElement("div",{className:"figment_debugger--mainWrapper--Tty8t",tabIndex:0,"data-fullscreen-intercept":!0},r.createElement(f,null,r.createElement("input",{ref:l,placeholder:"\u{1F50E} Event name",className:"figment_debugger--searchBar--uECKp",onInput:t=>{let a=t.target.value.toLowerCase();a.length<3&&n([]),n(e.filter(e=>e.requestJson.event.toLowerCase().includes(a)))}})),r.createElement(f,null,r.createElement("button",{onClick:()=>{t("clear")}},"[clear]")),o&&r.createElement(f,null,"Showing "+i.length+" of "+e.length+" most recent events"),i.map(e=>r.createElement(h,{key:e.requestJson.figment_debugger_uuid,req:e})))}function f(e){return r.createElement("div",{className:"figment_debugger--sectionWrapper--Zr0-r","data-fullscreen-intercept":!0},e.children)}function h({req:e}){let[t,a]=(0,r.useState)(!1),[n,l]=(0,r.useState)(!1),o=e.requestJson,i=(0,r.useMemo)(()=>t&&null!=o.properties?Object.entries(o.properties).map(([e,t])=>r.createElement("div",{key:e},e,": ",JSON.stringify(t))):[],[o,t]);return r.createElement(r.Fragment,null,r.createElement("div",{className:"figment_debugger--logrow--dxWpW",tabIndex:0,role:"button",onClick:()=>{a(!t),l(!1)},"data-fullscreen-intercept":!0},r.createElement("span",null,t?"\uFF0D":"\uFF0B"),"\xa0",r.createElement("span",null,e.networkState===d.tM.SUCCESS?"\u{1F49A}":e.networkState===d.tM.FAILURE?"\u{1F494}":"\u{1F9E1}"),"\xa0",r.createElement("span",{className:"figment_debugger--timestamp--BaHtN"},o.sentAt.slice(11,16)),"\xa0",o.event),t&&r.createElement("div",{className:"figment_debugger--propertiesWrapper--hZGnc"},r.createElement("div",{className:"figment_debugger--propertiesButtonsRow--ZL1rH"},r.createElement("button",{onClick:()=>{navigator.clipboard.writeText(JSON.stringify(e.requestJson.properties)),l(!0)}},"[",n?"copied":"copy","]")),i))}},178782:(e,t,a)=>{a.d(t,{A:()=>w});var n=a(411855),r=a(254661),l=a(194031),o=a(188507),i=a(218017),s=a(304913),c=a(402791),m=a(55330),d=a(965528),_=a(346532),u=a(482402),p=a(428748),E=a(22852),g=a(221033);let f={education:{title:n.createElement(c.Tx,{id:"whiteboard.whats_new.diagram.title"}),carousel:["https://static.figma.com/uploads/c58d5f4a37c974b72777d0d482b5e168819ed339","https://static.figma.com/uploads/87363e4551c98cc4dd5c2eb17c8a1c216b4df558","https://static.figma.com/uploads/17e4b5731b359b5da1cc9498bee8d19a574ecb39"],body:n.createElement(c.Tx,{id:"whiteboard.whats_new.other.control.body"})},"software-development":{title:n.createElement(c.Tx,{id:"whiteboard.whats_new.diagram.title"}),carousel:["https://static.figma.com/uploads/d17ad024cc18607d4a8b1a00d5e2c2d9c33f7124","https://static.figma.com/uploads/6c43de4a393f0c6a62c810c9e624475937af46b1","https://static.figma.com/uploads/39e86727a54bf46978d4893784240e752197b537"],body:n.createElement(c.Tx,{id:"whiteboard.whats_new.engineer.control.body"})},"user-research":{title:n.createElement(c.Tx,{id:"whiteboard.whats_new.workshop.title"}),carousel:["https://static.figma.com/uploads/3875dfbdfc499dfc81addcc2cb4c425432e4d83c","https://static.figma.com/uploads/19c6fa16695aa643eb32b6de523e34682c99ff74","https://static.figma.com/uploads/d32d06accd71ec34d461ebeb0683d372ce3c4e86"],body:n.createElement(c.Tx,{id:"whiteboard.whats_new.research.control.body"})},design:{title:n.createElement(c.Tx,{id:"whiteboard.whats_new.brainstorm.title"}),carousel:["https://static.figma.com/uploads/86daaf50ff13c8defd9b675fbfabffe8fe2b6913","https://static.figma.com/uploads/4d374f6472949a2b2b6428ea45e6e09d4608b5b2","https://static.figma.com/uploads/532f390ae672946525645d4b0bdaaf4d84a2d1e5"],body:n.createElement(c.Tx,{id:"whiteboard.whats_new.design.control.body"})},marketing:{title:n.createElement(c.Tx,{id:"whiteboard.whats_new.workshop.title"}),carousel:["https://static.figma.com/uploads/86daaf50ff13c8defd9b675fbfabffe8fe2b6913","https://static.figma.com/uploads/19c6fa16695aa643eb32b6de523e34682c99ff74","https://static.figma.com/uploads/5828c6e302bd2cf83170176485c5cae9a7e09fa9"],body:n.createElement(c.Tx,{id:"whiteboard.whats_new.marketing.control.body"})},"product-management":{title:n.createElement(c.Tx,{id:"whiteboard.whats_new.meeting.title"}),carousel:["https://static.figma.com/uploads/07a2696df083d2dcbbc25f3c1b184c88b72ed4a6","https://static.figma.com/uploads/19c6fa16695aa643eb32b6de523e34682c99ff74","https://static.figma.com/uploads/d42ae46e1e5c846580f4cfa3d275a0a4fde6c482"],body:n.createElement(c.Tx,{id:"whiteboard.whats_new.product.control.body"})},other:{title:n.createElement(c.Tx,{id:"whiteboard.whats_new.diagram.title"}),carousel:["https://static.figma.com/uploads/c58d5f4a37c974b72777d0d482b5e168819ed339","https://static.figma.com/uploads/87363e4551c98cc4dd5c2eb17c8a1c216b4df558","https://static.figma.com/uploads/17e4b5731b359b5da1cc9498bee8d19a574ecb39"],body:n.createElement(c.Tx,{id:"whiteboard.whats_new.other.control.body"})}};function h(e){let t=f[e.jobTitle].carousel,a=(0,n.useRef)(null),[r,l]=(0,n.useState)(1),o=(0,n.useCallback)(()=>(a.current&&(1===r?a.current.style.transition="none":a.current.style.transition="transform 0.4s ease-in-out"),r===2*t.length-2)?l(1):l(e=>e+1),[t.length,r]);return(0,n.useEffect)(()=>{setTimeout(()=>{setTimeout(()=>{o(),a.current&&(a.current.style.transform=`translateX(-${210*r-45}px)`)},1===r?400:3e3)},0)},[r,o]),n.createElement("div",{className:"whats_new_v2_carousel--carouselContainer--fm3dW"},n.createElement("div",{className:"whats_new_v2_carousel--slideTrack--CsJL8",ref:a},n.createElement("img",{src:t[2],alt:"clone of last thumbnail"}),n.createElement("img",{src:t[0],alt:"first thumbnail"}),n.createElement("img",{src:t[1],alt:"second thumbnail"}),n.createElement("img",{src:t[2],alt:"last thumbnail"}),n.createElement("img",{src:t[0],alt:"clone of first thumbnail"}),n.createElement("img",{src:t[1],alt:"clone of second thumbnail"})))}function b(e){let t=(0,o.wA)(),a=(0,g.Bq)(),[r,l]=n.useState(!0),{title:m}=f[e.jobTitle],b=(0,n.useCallback)(()=>{t(_.b({seen_whats_new_v2_modal:!0,dont_show_figjam_updates_in_figma_design:!r})),e.dismissModal()},[r,t,e]);return n.createElement(E.wz,null,n.createElement("div",{className:"whats_new_v2--modalContainer--k7xQq"},n.createElement("img",{src:"https://static.figma.com/uploads/f9217dd1dac2a765d218e1de9eb6fcbb32a454ec",alt:"",className:"whats_new_v2--newBadge--kl1gy"}),n.createElement("img",{src:"https://static.figma.com/uploads/d67cccad0bd5d4d8f50d8cac15b5ed848027e0a8",alt:"",className:"whats_new_v2--peaceIcon--Uk3-s"}),n.createElement("div",{className:"whats_new_v2--header--M26Ut"},n.createElement("h1",null,m),n.createElement(i.Jn,{onClick:b,trackingProperties:{action:"close"}})),n.createElement(h,{jobTitle:e.jobTitle}),n.createElement("div",{className:"whats_new_v2--bodyContainer--aPPa4"},n.createElement("div",{className:"whats_new_v2--description--pnGbT text--fontPos11--2LvXf text--_fontBase--QdLsd"},f[e.jobTitle].body),n.createElement("div",{className:"whats_new_v2--ctaRow--8jvr-"},n.createElement(s.vd,{className:"whats_new_v2--cta--lKezj text--fontPos11--2LvXf text--_fontBase--QdLsd",onClick:()=>{b(),t(_.b({interacted_figjam_whats_new_v2_cta:!0})),t(d.zE({state:a,editorType:u._Y.WHITEBOARD,team:void 0,from:p.f6.FIGJAM_WHATS_NEW_MODAL,openNewFileIn:p.ai.NEW_TAB}))}},n.createElement(c.Tx,{id:"rcs.whats_new_in_figjam.try_fig_jam"})),e.inEditor&&n.createElement("div",{className:"whats_new_v2--checkboxRow--eYDbx"},n.createElement(v,{checked:r,setChecked:()=>l(!r)}))))))}function v({checked:e,setChecked:t}){return n.createElement(m.S,{label:(0,c.t)("rcs.whats_new_in_figjam.show_fig_jam_updates"),checked:e,onChange:t})}let w=n.memo(function({context:e,isShowing:t,jobTitle:a,onClickPrimaryCta:o,onClose:i,onManualDismiss:s}){let{trackingContextName:c,element:m}=function(e,t){e=e??"other";let a=`Design to FigJam What's New v2 > ${e} > ${t}`;return{modalType:l.q3.SELF_CONTAINED,trackingContextName:a,element:({dismissModal:a})=>n.createElement(b,{jobTitle:e,dismissModal:a,inEditor:"editor"===t})}}(a,e);return n.createElement(r.h,{modalType:l.q3.SELF_CONTAINED,trackingContextName:c,element:m,isShowing:t,onClickPrimaryCta:o,onClose:i,onManualDismiss:s,userFlagOnShow:"seen_whats_new_v2_modal"})})},672649:(e,t,a)=>{let n;a.d(t,{$l:()=>j});var r=a(411855),l=a(188507),o=a(629019),i=a.n(o),s=a(868879),c=a(732326),m=a(159849),d=a(346532),_=a(979282),u=a(287243),p=a(613431),E=a(194646),g=a(721401),f=a(254661),h=a(194031),b=a(949322),v=a(574079),w=a(50027);function T(e){return r.createElement(w.vC,{dismissModal:e.onClickPrimaryCta,openUpgradeFlow:m.lQ})}var y=a(794307),x=a(705407),C=a(165077),N=a(21122),k=a(415600),S=a(353075),I=a(151428);function A(e){let t="what_brings_you_to_figma_today_v1";return r.createElement(I.ay,{isSingleSelect:!1,questionKey:t,options:new Set(["learn_design","joining_team_project","testing_figma_for_team","fun","giving_feedback_on_design","join_meeting_or_brainstorm"]),answerStyle:{maxWidth:"960px"},onNext:a=>{e.onNext((0,S.i)(t,Array.from(a)))},onSkip:()=>e.onNext(void 0),isInGen1SignalCollection:!0})}var O=a(755603),P=((n=P||{}).TELL_US_ABOUT_YOURSELF="Tell Us About Yourself Step",n.WHAT_BRINGS_YOU_TO_FIGMA_TODAY="What Brings You To Figma Today Step",n.HAVE_YOU_USED_FIGMA_PRODUCTS_BEFORE="Have You Used Figma Products Before Step",n);let R=["What Brings You To Figma Today Step","Have You Used Figma Products Before Step"],D=["Have You Used Figma Products Before Step"];var M=a(724811);function L(e){let t=M.q$,a=M.N9,n=e.step,[l,o]=r.useState(window.innerHeight);return r.useEffect(()=>{let e=()=>{o(window.innerHeight)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[o]),r.createElement("div",{className:l>=610?M.z6:M.b0},r.createElement("div",{className:n===P.TELL_US_ABOUT_YOURSELF?t:a}),r.createElement("div",{className:M.DG}),r.createElement("div",{className:n===P.WHAT_BRINGS_YOU_TO_FIGMA_TODAY?t:a}),r.createElement("div",{className:M.DG}),r.createElement("div",{className:n===P.HAVE_YOU_USED_FIGMA_PRODUCTS_BEFORE?t:a}))}function F(e){let t=(0,l.wA)(),a=(0,N.TA)(),n=(0,_.IF)(),[o,i]=r.useState(P.TELL_US_ABOUT_YOURSELF),s=(0,_.vU)(),c=r.useRef(),m=n===_.ex.SIGNAL_NUX?D:R,d=r.useCallback(()=>{let e=c.current;e&&a&&t(x.yJ({user:{id:a,onboarding_signals:e},userInitiated:!0}))},[t,a]),u=()=>{if((0,_.IG)()&&!s()){d(),e.onClickPrimaryCta();return}i(m[0])},p=t=>{t&&(c.current={...c.current,...t});let a=m.indexOf(o);a>-1&&a<m.length-1?i(m[a+1]):(d(),e.onClickPrimaryCta())};return r.createElement(C.fu,{name:o},(()=>{switch(o){case P.TELL_US_ABOUT_YOURSELF:return r.createElement(O.s,{onNext:u,isInFigjamOnboarding:!1,isFinalStep:!1});case P.WHAT_BRINGS_YOU_TO_FIGMA_TODAY:return r.createElement(A,{onNext:p});case P.HAVE_YOU_USED_FIGMA_PRODUCTS_BEFORE:return r.createElement(k.x,{gen1:!0,onNext:p});default:return(0,y.xb)(o)}})(),!(0,_.IG)()&&r.createElement(L,{step:o}))}var B=a(95161);function U(e){let t=(0,_.IF)(),a=(0,l.wA)();return t===_.ex.DYNAMIC_NUX?r.createElement(f.h,{testId:"DynamicGen1WelcomeOverlay",modalType:h.q3.WELCOME,trackingContextName:"Dynamic Gen1 Welcome Modal",element:T,tintedModalBackground:!1,fullscreen:!0,isShowing:e.isShowing,onClickPrimaryCta:e.onClickPrimaryCta,onClose:()=>{e.onClose(),a(d.b({welcome_onboarded:!0}))},onManualDismiss:e.onManualDismiss}):r.createElement(f.h,{testId:"Gen1WelcomeOverlay",modalType:h.q3.WELCOME,trackingContextName:"Gen1 Welcome Modal",element:F,tintedModalBackground:!1,fullscreen:!0,isShowing:e.isShowing,onClickPrimaryCta:e.onClickPrimaryCta,onClose:()=>{e.onClose(),a(d.b({welcome_onboarded:!0}))},onManualDismiss:e.onManualDismiss,className:i()({[B.k]:(0,_.IG)()})})}function j(){let e=(0,l.wA)(),t=!!(0,E.f)("not_gen_0"),a=(0,c.md)(p.NT),n=(0,c.md)(p.g5),o=(0,u.e)({overlay:b.KoA,priority:g.N.HIGH_PRIORITY_MODAL},[a,n]),i=r.useCallback(()=>{o.show({canShow:(e,a)=>(function(e){let{emailValidatedAt:t,isGen1:a,jobTitle:n}=e;return a&&!function({emailValidatedAt:e,jobTitle:t}){return!!t||(0,v.Rs)(e)}({jobTitle:n,emailValidatedAt:t})})({emailValidatedAt:a,isGen1:t,jobTitle:e})})},[o,t]);return((0,s.h)(()=>{i()}),o.isShowing)?r.createElement(U,{isShowing:o.isShowing,onClickPrimaryCta:()=>{e(d.b({welcome_onboarded:!0})),o.complete()},onClose:m.lQ,onManualDismiss:m.lQ,additionalOnExplicitDismiss:m.lQ}):null}},2972:(e,t,a)=>{a.d(t,{P:()=>y});var n=a(411855),r=a(188507),l=a(868879),o=a(611464);if(443==a.j)var i=a(732326);var s=a(402791),c=a(705715),m=a(820657),d=a(287243),_=a(613431),u=a(764019),p=a(21122),E=a(721401),g=a(186618),f=a(609818),h=a(949322);let b=443==a.j?864e5:null,v=()=>Date.now()-b,w="seen_japanese_launch_announcement",T=(0,u.r1)(w);function y(){let e=(0,r.wA)(),t=(0,p.TA)(),a=(0,i.md)(_.mp),u=(0,i.md)(T),b=(0,d.e)({overlay:h.hxO,priority:E.N.DEFAULT_MODAL},[a,u]);return(0,l.h)(()=>{var e,t,a;let n=(null==(e=(0,o.Ay)())?void 0:e.iso_code)==="JP",r=(null==(a=null==(t=(0,o.Ay)())?void 0:t.user_data)?void 0:a.locale)==="ja";n&&!r&&b.show({canShow:(e,t)=>!t&&null!=e&&e.getTime()<v()})}),n.createElement(g._l,{isShowing:b.isShowing,title:n.createElement(s.Tx,{id:"rcs.japanese_launch_modal.title"}),description:n.createElement(s.Tx,{id:"rcs.japanese_launch_modal.body"}),media:n.createElement("img",{width:408,src:"https://static.figma.com/uploads/aa243114f8307af99f0c1728ada3182f8568a919",alt:""}),primaryCta:{type:"button",label:n.createElement(s.Tx,{id:"rcs.japanese_launch_modal.button"}),onClick:()=>{e((0,c.to)({type:f.kA,data:{source:f.IO.USER_SETTINGS}}))},ctaTrackingDescriptor:m.c.UPDATE_LANGUAGE_SETTINGS,trackingProperties:{userId:t}},trackingContextName:"Japanese Launch Announcement Modal",userFlagOnShow:w,onClose:b.complete})}},211304:(e,t,a)=>{a.d(t,{k:()=>p,s:()=>E});var n=a(411855),r=a(868879),l=a(38580);if(443==a.j)var o=a(732326);if(443==a.j)var i=a(646240);var s=a(287243),c=a(613431),m=a(764019),d=a(721401),_=a(574079),u=a(949322);let p=(0,l.eU)(!1);function E(){let e=(0,o.md)(c.NT),t=(0,o.md)(m.$B),a=(0,o.md)(c.g5),l=(0,i.Xr)(p),{show:E,isShowing:g,complete:f}=(0,s.e)({overlay:u.s7O,priority:d.N.OVERRIDING_MODAL},[t,e,a]),h=(0,n.useCallback)((e,t,a)=>!e&&!(0,_.d2)({emailValidatedAt:a,jobTitle:t}),[]);(0,r.h)(()=>E({canShow:h}));let b=n.useCallback(()=>{f()},[f]);return g?n.createElement(_.vm,{onClickPrimaryCta:b,onManualDismiss:b,onClose:()=>{l(!0),b()},isShowing:g}):null}},302339:(e,t,a)=>{a.d(t,{m:()=>I});var n=a(411855),r=a(188507),l=a(921436),o=a(377372),i=a(402791),s=a(983245),c=a(705715),m=a(284579),d=a(669480),_=a(477654),u=a(566046),p=a(784402),E=a(162122),g=a(884096),f=a(165077),h=a(677029),b=a(492997),v=a(205518);function w(e){let{selectedFeatures:t,setSelectedFeatures:a,shuffledFeaturesContent:r,hideModal:l,onClickCTA:o,onBack:i}=e;return n.createElement(f.fu,{name:_.iX[_.iX.SELECT_FEATURES]},n.createElement(b.$,{stepProps:{currentStep:_.iX.SELECT_FEATURES,totalSteps:_.h3},titleText:n.createElement(g.E,{i18nId:"pro_trials_v3.pro_trial_initiation_modal.what_are_you_excited",fontSize:24,fontWeight:"bold"}),descriptionText:n.createElement(g.E,{i18nId:"pro_trials_v3.pro_trial_initiation_modal.you_have_14_days",i18nParams:{proTrialDuration:h.$g},fontSize:13}),middleContent:n.createElement("div",{className:v.vb},r.map(({featureType:e,featureText:r})=>n.createElement(T,{featureIcon:_.bo[e],featureText:r,key:e,onClick:()=>{t.has(e)?a(new Set([...t].filter(t=>e!==t))):a(new Set([...t,e]))},isSelected:t.has(e)}))),ctaOnClick:o,ctaDisabled:0===t.size,ctaText:n.createElement(g.E,{i18nId:"pro_trials_v3.pro_trial_initiation_modal.finish"}),textCtaOnClick:i,textCtaText:n.createElement(g.E,{i18nId:"pro_trials_v3.pro_trial_initiation_modal.go_back",fontSize:13}),hideModal:l}))}function T(e){let{featureIcon:t,featureText:a,onClick:r,isSelected:l}=e;return n.createElement(f.jm,{role:"button",className:l?v.a4:v.Tj,onClick:r},n.createElement(E.Y,{direction:"horizontal",horizontalAlignItems:"start",verticalAlignItems:"center",spacing:"12px"},n.createElement(E.Y,{direction:"horizontal",horizontalAlignItems:"center",verticalAlignItems:"center",width:32,height:32},t),a))}function y(e){let{selectedTeamName:t,setSelectedTeamType:a,selectedTeamType:r,shuffledTeamTypeContent:l,hideModal:o,onClickCTA:i,onBack:s}=e;return n.createElement(f.fu,{name:_.iX[_.iX.SELECT_TEAM_TYPE]},n.createElement(b.$,{stepProps:{currentStep:_.iX.SELECT_TEAM_TYPE,totalSteps:_.h3},titleText:n.createElement(g.E,{i18nId:"pro_trials_v3.pro_trial_initiation_modal.what_type_of_team",i18nParams:{teamName:t},fontSize:24,fontWeight:"bold"}),descriptionText:n.createElement(g.E,{i18nId:"pro_trials_v3.pro_trial_initiation_modal.not_being_nosy",fontSize:13}),middleContent:n.createElement(E.Y,{direction:"horizontal",horizontalAlignItems:"center",verticalAlignItems:"center",spacing:"12px"},l.map(({teamType:e,imageAltText:t,descriptionText:l})=>n.createElement(x,{key:e,isSelected:e===r,onClick:()=>{e!==r?a(e):a(void 0)},image:n.createElement("img",{src:_.$Q[e],alt:t(),height:110}),text:l}))),ctaOnClick:i,ctaDisabled:void 0===r,ctaText:n.createElement(g.E,{i18nId:"pro_trials_v3.pro_trial_initiation_modal.continue"}),textCtaOnClick:s,textCtaText:n.createElement(g.E,{i18nId:"pro_trials_v3.pro_trial_initiation_modal.go_back",fontSize:13}),hideModal:o}))}function x(e){let{image:t,text:a,onClick:r,isSelected:l}=e;return n.createElement(f.jm,{role:"button",className:l?v.Qn:v.xM,onClick:r},n.createElement(E.Y,{direction:"vertical",horizontalAlignItems:"center",verticalAlignItems:"start",spacing:8,padding:{horizontal:12},height:195},t,a))}var C=a(922990),N=a(355319);function k(e){let{teams:t,setSelectedTeamID:a,selectedTeamID:r,hideModal:l,onClickCTA:o,onBack:i}=e;return n.createElement(f.fu,{name:_.iX[_.iX.SELECT_TEAM]},n.createElement(b.$,{stepProps:{currentStep:_.iX.SELECT_TEAM,totalSteps:_.h3},titleText:n.createElement(g.E,{i18nId:"pro_trials_v3.pro_trial_initiation_modal.pick_a_team",fontSize:24,fontWeight:"bold"}),descriptionText:n.createElement(g.E,{i18nId:"pro_trials_v3.pro_trial_initiation_modal.everyone_will_be_upgraded",fontSize:13}),middleContent:n.createElement("div",{className:v.by},t.map(e=>n.createElement(S,{team:e,key:e.id,onClick:()=>{e.id!==r?a(e.id):a(void 0)},isSelected:e.id===r}))),ctaOnClick:o,ctaDisabled:void 0===r,ctaText:n.createElement(g.E,{i18nId:"pro_trials_v3.pro_trial_initiation_modal.upgrade_to_pro"}),textCtaOnClick:i,textCtaText:n.createElement(g.E,{i18nId:"pro_trials_v3.pro_trial_initiation_modal.cancel",fontSize:13}),hideModal:l}))}function S(e){let{team:t,onClick:a,isSelected:r}=e;return n.createElement(f.jm,{role:"button",className:r?v.SN:v.Ds,onClick:a},n.createElement("div",{className:v.lq},n.createElement(C.nl,{team:t,size:N.P.LARGE}),n.createElement("div",{className:v.aj},n.createElement(g.E,{children:t.name,fontSize:14,truncate:"end",fontWeight:"medium"}))),n.createElement(g.E,{i18nId:"pro_trials_v3.pro_trial_initiation_modal.editors.seat_rename",i18nParams:{numEditors:t.editors},color:"secondary",fontSize:14,fontWeight:"medium"}))}let I=(0,u.Ju)(function(){let[e,t]=(0,n.useState)(_.iX.SELECT_TEAM),[a,u]=(0,n.useState)(),[E,g]=(0,n.useState)(),[f,h]=(0,n.useState)(new Set),[b,v]=(0,n.useState)(_.TB),[T,x]=(0,n.useState)(_.PG),C=(0,d.xX)(),N=(0,r.wA)(),S=(0,n.useCallback)(()=>{var e;return(null==(e=C.find(e=>e.id===a))?void 0:e.name)??(0,i.t)("pro_trials_v3.pro_trial_initiation_modal.your_team")},[C,a]),I=(0,n.useCallback)(()=>N(c.Ce()),[N]),A=(0,i.t)("payments.pro_trial.start_pro_trial_error");(0,n.useEffect)(()=>{v((0,l.k4)(_.TB)),x((0,l.k4)(_.PG))},[]);let O=(0,n.useCallback)(()=>{void 0===a?t(_.iX.SELECT_TEAM):C.find(e=>e.id===a)?N((0,m.cw)({teamId:a,surveyResult:{teamId:a,teamType:E,features:Array.from(f)}})):(N(s.$T({view:"recentFiles"})),N(o.s.error(A))),I()},[C,N,I,a,E,f,A]);return 0===C.length&&I(),n.createElement(p.t,{trackingName:_.NN,trackingProperties:{currentStage:_.iX[e],teamId:a,selectedTeamType:E??null,selectedFeatures:f.size>0?Array.from(f).join(" "):null},hideModal:I},e===_.iX.SELECT_TEAM&&n.createElement(k,{teams:C,setSelectedTeamID:u,selectedTeamID:a,hideModal:I,onClickCTA:()=>t(_.iX.SELECT_TEAM_TYPE),onBack:I}),e===_.iX.SELECT_TEAM_TYPE&&n.createElement(y,{selectedTeamName:S(),setSelectedTeamType:g,selectedTeamType:E,shuffledTeamTypeContent:b,hideModal:I,onClickCTA:()=>t(_.iX.SELECT_FEATURES),onBack:()=>{t(_.iX.SELECT_TEAM),g(void 0)}}),e===_.iX.SELECT_FEATURES&&n.createElement(w,{selectedFeatures:f,setSelectedFeatures:h,shuffledFeaturesContent:T,hideModal:I,onClickCTA:O,onBack:()=>{t(_.iX.SELECT_TEAM_TYPE),h(new Set)}}))},"ProTrialInitiationModal")},784402:(e,t,a)=>{a.d(t,{t:()=>s});var n=a(411855),r=a(165077),l=a(677029),o=a(905618),i=a(205518);function s({hideModal:e,trackingName:t,trackingProperties:a,children:s}){return n.createElement(r.fu,{name:t,properties:{...a,...l.ng.getTrackingProperties()}},n.createElement(o.Nb,{hide:e,size:"any",className:i.jT},s))}},492997:(e,t,a)=>{a.d(t,{$:()=>d});var n=a(411855),r=a(218017),l=a(304913),o=a(487644),i=a(884096),s=a(677029),c=a(205518);if(443==a.j)var m=a(694953);function d(e){let{stepProps:t,titleText:a,descriptionText:d,middleContent:_,ctaOnClick:u,ctaDisabled:p,ctaText:E,textCtaOnClick:g,textCtaText:f,hideModal:h}=e;return n.createElement("div",{className:c.kL},n.createElement("div",{className:c.wx},n.createElement(o.B,{svg:m.A,className:c.Kk,useOriginalSrcFills_DEPRECATED:!0}),n.createElement(r.Jn,{innerText:"Close",onClick:h})),n.createElement("div",{className:c.Qs},n.createElement("div",{className:c.Tn},t&&n.createElement(i.E,{i18nId:"pro_trials_v3.pro_trial_initiation_modal.step_counter",i18nParams:{currentStep:t.currentStep+1,totalSteps:t.totalSteps},color:"secondary",fontSize:13}),a,d),_,n.createElement("div",{className:c.qr},n.createElement(l.nD,{onClick:u,className:c.Ub,disabled:p,trackingProperties:s.ng.getTrackingProperties("continue")},E),n.createElement(l.eM,{trackingProperties:s.ng.getTrackingProperties("go back"),onClick:g},f))))}},141390:(e,t,a)=>{a.d(t,{z:()=>b,B:()=>v});var n=a(411855),r=a(188507),l=a(952277),o=a(218017),i=a(304913),s=a(911060),c=a(402791),m=a(773891),d=a(983245),_=a(352604),u=a(284579),p=a(165077),E=a(543841),g=a(959896),f=a(96155),h=a(905618);function b(e){let{selectedView:t,promo:a}=e,o=(0,r.wA)(),i=(0,g.Ud)({teamId:t.teamId,jamboardPromoCodeId:null}),m=()=>{(0,l._H)(),o(_.Ay({promo:null})),o(d.$T(e.selectedView.previousView||{view:"team",teamId:t.teamId}))},h=()=>{o(u.S_({teamId:t.teamId,teamName:t.teamName,promoCode:(null==a?void 0:a.code)||"",onSuccess:m,onError:m}))};return a?n.createElement(p.fu,{name:"Redeem Promo Code > Confirm",properties:{teamId:t.teamId}},n.createElement("div",{className:"promo_modals--promoReviewInner--uFbL9"},n.createElement("div",{className:"promo_modals--cancelRow--lFCDD"},n.createElement("button",{type:"button",className:"promo_modals--cancelButton--2MtYG text--fontPos11--2LvXf text--_fontBase--QdLsd",onClick:m},n.createElement(c.Tx,{id:"promo.promo_review.cancel"}))),n.createElement("div",{className:"promo_modals--promoReviewTitle--xaWkg text--fontPos20--Bcz97 text--_fontBase--QdLsd"},n.createElement(c.Tx,{id:"promo.promo_review.redeem_your_days_of_free_professional_plan",days:a.promo_value})),n.createElement("div",{className:"promo_modals--promoReviewDescription--A3IZe text--fontPos13--xW8hS text--_fontBase--QdLsd"},n.createElement(c.Tx,{id:"promo.promo_review.any_additional_editors_invited_to_selected_view_team_name_will_also_be_free_of_charge_for_the_next_days.seat_rename",teamName:t.teamName,days:a.promo_value})),n.createElement("div",null,n.createElement(s.x,{isLoading:i},()=>n.createElement(f.d,{selectedView:t,onClickConfirm:h,currency:(0,E.LN)()}))))):(m(),null)}function v(e){let t=(0,r.wA)(),a=e.promo,l="",s=parseInt(a.promo_value);if(a.claims_end_at){let e=new Date(Date.parse(a.claims_end_at));l=a.is_multi_redeemable?(0,c.t)("promo.select_team.multi_redeem_w_deadline_promo_str.seat_rename",{days:s,date:e}):(0,c.t)("promo.select_team.single_redeem_w_deadline_promo_str.seat_rename",{days:s,date:e})}else l=a.is_multi_redeemable?(0,c.t)("promo.select_team.multi_redeem_without_deadline_promo_str.seat_rename",{days:s}):(0,c.t)("promo.select_team.single_redeem_without_deadline_promo_str.seat_rename",{days:s});return n.createElement(h.Nb,{hide:e.dismissModal,size:437,className:"promo_modals--modal--5yXIS"},n.createElement("div",{className:"promo_modals--promoSelectTeamTitle--Tkzh6 text--fontPos13--xW8hS text--_fontBase--QdLsd"},n.createElement(c.Tx,{id:"promo.select_team.choose_teams_to_upgrade"})),n.createElement("div",{className:"promo_modals--promoSelectTeamDescription--2XF-M text--fontPos11--2LvXf text--_fontBase--QdLsd"},l),n.createElement(o.Jn,{className:"promo_modals--closeButton--dPZjw",onClick:e.dismissModal,innerText:"close"}),n.createElement(i.Kz,{multiple:2}),n.createElement(m.I,{eligibleTeams:e.starterTeams,selectTeam:a=>{t(u.g_({teamId:a.id,teamName:a.name,previousView:e.previousView}))},numDesignFilesPerTeam:e.filesPerStarterTeam}))}},390726:(e,t,a)=>{a.d(t,{u:()=>b,s:()=>v});var n=a(411855),r=a(188507),l=a(483469),o=a(178041),i=a(820746),s=a(884096),c=a(984282),m=a(983245),d=a(639061),_=a(888112),u=a(482402),p=a(731939),E=a(641445),g=a(683579),f=a(102393),h=a(34572);let b="DRAFT_FOLDER_LINK_ONBOARDING_KEY";function v(e){let[t,a]=n.useState(!1),v=(0,r.d4)(t=>{let a=(0,l.xx)(p.canCreateFileOrRequestUpgradeLG),n=a(e.folder,t,u._Y.WHITEBOARD),r=a(e.folder,t,u._Y.DESIGN);return n||r})?n.createElement(f.h,{folder:e.folder,dropdownType:(0,g.p_)(e.folder.id),isUserDraftFolder:!0}):void 0;return n.createElement(o.Y,{isDragTarget:e=>{let t=new _.le(e);return!!(t.isFigFiles()||t.isRepos()||t.isPrototypes()||t.isTiles())},onTargetDragEnter:()=>{a(!0)},onTargetDragLeave:()=>{a(!1)},onTargetDrop:t=>{let n=new _.le(t);(0,E.A)(e.dispatch,e.folder,null,n),e.dispatch(c.T()),a(!1)},draggable:!1},n.createElement(h.Z,{rowClassName:t?"draft_folder_link--dropBorder--Q15l8":void 0,isSelected:"folder"===e.selectedView.view&&e.selectedView.folderId===e.folder.id||"deletedFiles"===e.selectedView.view,onClick:t=>{let a=e.folder;t.metaKey||t.ctrlKey||0!==t.button||(e.dispatch(d.gN(a.id)),e.dispatch(m.Oe({clickedResourceType:"drafts",resourceIdOrKey:a.id})))},"data-onboarding-key":b,icon:n.createElement(i.In,{icon:"page-16"}),text:n.createElement(s.E,{i18nId:"sidebar.drafts",truncate:!0}),badge:v}))}},641445:(e,t,a)=>{a.d(t,{A:()=>r});var n=a(996531);function r(e,t,a,r){let l=[],o=[];if(r.isFigFiles()){if(!(l=r.getData()))return}else if(r.isRepos()){let e=r.getReposData();e&&(l=e.files,o=e.repos)}else if(r.isTiles()){let e=r.getTilesData();e&&(l=e.files,o=e.repos)}e(n.z({files:l,repos:o,folder:t,team:a}))}},599701:(e,t,a)=>{a.d(t,{U:()=>P,b:()=>R});var n=a(411855),r=a(188507),l=a(294608),o=a(611464),i=a(732326),s=a(769514),c=a(959875),m=a(402791),d=a(884096),_=a(983245),u=a(124764),p=a(365948),E=a(482402),g=a(495695),f=a(731939),h=a(916949),b=a(266723),v=a(795360),w=a(102677),T=a(121566),y=a(639061),x=a(697089),C=a(408381),N=a(98239),k=a(974397),S=a(874804),I=a(247866);function A(){let e=(0,r.wA)(),t=(0,r.d4)(e=>{var t,a;return null==(a=null==(t=e.dropdownShown)?void 0:t.data)?void 0:a.targetRect}),a=(0,r.d4)(e=>e.user),l=(0,r.d4)(e=>(0,f.getPermissionsStateMemoized)(e)),o=a?(0,p.pZ)(l,null==a?void 0:a.id):void 0,i=(0,r.d4)(e=>e.orgUsersByOrgId);return n.createElement(C.U,{items:a&&o?o.map(t=>{var r;let o=(0,p.HE)(l,t),d=(0,p.O_)(l,t),_=!t.orgId,u=!1;t.orgId&&i.orgUsers[t.orgId]&&(u=(null==(r=i.orgUsers[t.orgId][t.userId])?void 0:r.permission)===E._D.GUEST);let g={view:"recentsAndSharing"};return{displayText:o,itemBadge:u?n.createElement(s.Ex,{className:c.cx.ml4.$,text:(0,m.t)("navbar.navbar.guest"),color:s.zE.TOOLBAR}):void 0,icon:n.createElement(v.n,{className:c.cx.mr8.$,userId:t.userId,orgId:t.orgId,personalSpaceIcon:k.A,personalSpaceIcon1x:S.A,size:16}),subText:_&&a.external_restricted_org_id?(0,m.t)("navbar.workspaces.disabled_by_your_admins"):void 0,alternativeRightIconIfNotChecked:_&&a.external_restricted_org_id?I.A:void 0,isActive:d,isChecked:d,className:N.hd,callback:()=>e(y._l({workspace:t,view:g})),"data-onboarding-key":_?x.m_:void 0}}):[],onSelectItem:(t,a)=>{t.callback&&t.callback("",null,e)},parentRect:t,dispatch:e})}var O=a(750024);let P="PLAN_SWITCHER_ONBOARDING_KEY";function R(){var e;let t=(0,r.wA)(),a=(0,r.d4)(e=>(0,f.getPermissionsStateMemoized)(e)),y=(0,l.R)(e=>(0,p.vp)(e.user,e.currentUserOrgId,e.currentTeamId)),x=(null==(e=(0,g.xw)(a))?void 0:e.permission)===E._D.GUEST,C=(0,r.d4)(e=>e.user),N=(0,r.d4)(e=>e.plans);n.useEffect(()=>{(0,o.kc)().ps_benchmark&&t((0,u.hr)({loadedPlans:N}))},[]);let I=C?(0,p.pZ)(a,null==C?void 0:C.id):void 0,R=(0,p.HE)(a,y),D=n.useRef(null),[M,L]=(0,i.fp)(b.A);n.useLayoutEffect(()=>{var e;L(null==(e=D.current)?void 0:e.getBoundingClientRect())},[L]);let F=(0,o.kc)().ps_benchmark,B=F?O.ER:"FILE_BROWSER_PLAN_SWITCHER",U=(0,r.d4)((0,h.E)(B));if(!y||!I)return null;let j=F||I.length>1,G=n.createElement("div",{className:c.cx.flex.flexRow.itemsCenter.overflowHidden.if(!j,c.cx.pl4).$},n.createElement(v.n,{size:16,userId:y.userId,orgId:y.orgId,teamId:y.teamId,personalSpaceIcon:k.A,personalSpaceIcon1x:S.A}),n.createElement("div",{className:c.cx.flex.flexRow.ml8.overflowHidden.$},n.createElement(d.E,{fontSize:13,fontWeight:"medium",color:"default",truncate:!0},R)),!F&&x&&n.createElement(s.Ex,{className:c.cx.ml6.$,color:s.zE.TERTIARY,text:(0,m.t)("navbar.navbar.guest")}));if(!j)return G;let z=F?O.zt:A;return n.createElement(n.Fragment,null,n.createElement("div",{className:c.cx.flex.flexRow.itemsCenter.justifyBetween.$,"data-onboarding-key":P},n.createElement(w.g,{isShowingDropdown:U,ref:D,onClick:()=>{var e;let a=null==(e=D.current)?void 0:e.getBoundingClientRect();a&&!U&&t(_.j7({type:B,data:{targetRect:a}}))}},G),F&&n.createElement(T.A,{workspace:y})),D.current&&U&&n.createElement(z,null))}},750024:(e,t,a)=>{a.d(t,{ER:()=>T,KC:()=>y,zt:()=>x});var n=a(411855),r=a(188507),l=a(78418),o=a(487644),i=a(959875),s=a(402791),c=a(639061),m=a(269732),d=a(365948),_=a(21122),u=a(422710),p=a(731939),E=a(770235),g=a(277398),f=a(795360),h=a(121566),b=a(408381),v=a(98239);if(443==a.j)var w=a(559735);let T="FILE_BROWSER_PLAN_SWITCHER_V2",y="PLAN_SPACES_ONBOARDING_KEY";function x(){let e=(0,r.wA)(),t=(0,_.iZ)(),a=(0,r.d4)(e=>{var t,a;return null==(a=null==(t=e.dropdownShown)?void 0:t.data)?void 0:a.targetRect}),l=(0,r.d4)(e=>e.plans),c=(0,r.d4)(e=>(0,p.getPermissionsStateMemoized)(e)),d=(0,m.z)(),E=(0,u.GU)(t)&&l.length>1,f=(E?l.filter(e=>e.plan_type===g.O.ORG&&e.plan_id===(null==t?void 0:t.external_restricted_org_id)):l).map(a=>C(a,t,c,e));if(E){let a=l.filter(e=>!(e.plan_type===g.O.ORG&&e.plan_id===(null==t?void 0:t.external_restricted_org_id))).map(a=>C(a,t,c,e)),n={displayText:(0,s.t)("navbar.navbar.view_only_plans"),subText:(0,s.t)("navbar.navbar.disabled_by_your_admins"),className:i.cx.wFull.mt8.bt1.colorBorderMenu.bSolid.$,displayTextClassname:i.cx.colorTextMenu.$,disabled:!0};f.push(n,...a)}if(!(0,u.GU)(t)){let e={displayText:"",className:v.Rr},t={displayText:(0,s.t)("navbar.navbar.create_new"),icon:n.createElement(o.B,{svg:w.A,className:i.cx.mr4.$}),className:v.aG,"data-onboarding-key":y,callback:d};f.push(e,t)}return n.createElement(b.U,{items:f,onSelectItem:(t,a)=>{t.callback&&t.callback("",null,e)},parentRect:a,dispatch:e})}function C(e,t,a,r){let o;let s=(0,l.O)(e,t.id),m=(0,d.HE)(a,s),_=(0,d.O_)(a,s);return o=s.teamId?{view:"team",teamId:s.teamId}:{view:"org",orgId:s.orgId,orgViewTab:E.X.HOME},{displayText:m,itemBadgeV2:n.createElement(h.A,{workspace:s,isInDropdown:!0}),icon:n.createElement(f.n,{className:i.cx.mr8.$,userId:s.userId,orgId:s.orgId,teamId:s.teamId,size:16}),isActive:_,isChecked:_,className:v.hd,callback:()=>r(c._l({workspace:s,view:o}))}}},121566:(e,t,a)=>{a.d(t,{A:()=>N});var n=a(411855),r=a(188507),l=a(769514),o=a(959875),i=a(402791),s=a(482402),c=a(495695),m=a(951851),d=a(731939);function _(e){var t;let a=(0,r.d4)(e=>(0,d.getPermissionsStateMemoized)(e)),_=(null==(t=(0,c.H)(a,e.orgId))?void 0:t.permission)===s._D.GUEST,u=e.isInDropdown?l.zE.TOOLBAR:l.zE.TERTIARY;return e.isInDropdown?_?n.createElement(l.Ex,{className:o.cx.ml4.mr0.$,color:u,text:(0,i.t)("navbar.navbar.guest")}):n.createElement(l.Ex,{className:o.cx.ml4.mr0.$,color:u,text:(0,i.t)((0,m.kA)(a.orgById[e.orgId])?"navbar.navbar.enterprise":"navbar.navbar.org")}):null}var u=a(169614),p=a(611464),E=a(683543),g=a(639061),f=a(705715),h=a(165077),b=a(669480),v=a(625475),w=a(677029),T=a(895649),y=a(579038);let x="plan_switcher_team_badges--warningBadgeHover---4mBq";function C(e){let t=(0,r.wA)(),a=(0,r.d4)(e=>e.user),c=(0,r.d4)(e=>e.teams)[e.teamId],m=(0,v.w5)(c),_=(0,b.TN)(e.teamId),C=(0,r.d4)(e=>(0,d.getPermissionsStateMemoized)(e)),[N,k]=(0,n.useState)(!1),S=(0,n.useRef)();if(!a||!c)return null;let I=e=>{t((0,f.to)({type:E.V,data:{teamId:c.id,upsellSource:e}}))};if(c.student_team){if(e.isInDropdown)return n.createElement(l.Ex,{color:l.zE.TOOLBAR,text:(0,i.t)("navbar.navbar.edu"),className:o.cx.ml4.mr0.noWrap.flex.$})}else{var A,O;if(!(0,v.oc)(c.id,C)&&((null==(A=null==c?void 0:c.restrictions_list)?void 0:A.includes(s.P4.FILES_LIMITED_LEGACY))||(null==(O=null==c?void 0:c.restrictions_list)?void 0:O.includes(s.P4.WHITEBOARD_FILES_LIMITED_BETA))?0:1)){if(_&&w.ng.canSeeProTrialUx(_)){let t=(e,t,a=!1)=>n.createElement(l.Ex,{color:e,text:(0,i.t)("navbar.navbar.pro_trial"),className:`${t} ${!a&&"plan_switcher_team_badges--proTrialBadgeHover--yHK39"}`});return e.isInDropdown?t(l.zE.TOOLBAR,o.cx.ml4.mr0.noWrap.$,!0):n.createElement(h.fu,{name:l._Y.PRO_TRIAL,properties:{userId:a.id,teamId:c.id,...w.ng.getTrackingProperties()}},n.createElement(h.$z,{type:"button",onClick:()=>I(T.b.PRO_TRIAL_UPSELL_MODAL),className:o.cx.ml8.noWrap.$,trackingProperties:w.ng.getTrackingProperties("Badge Clicked")},n.createElement("span",{"data-tooltip-type":y.Ib.SPECIAL,"data-tooltip":y.MW.PRO_TRIAL,"data-tooltip-pro-trials-days-left":_.daysLeft,"data-tooltip-show-right":!0,"data-tooltip-max-width":195,"data-tooltip-timeout-delay":50},t(l.zE.DEFAULT,o.cx.ml4.mr0.noWrap.colorText.colorBgSelectedSecondary.flex.$))))}if(m&&e.isInDropdown)return n.createElement(l.Ex,{color:l.zE.TOOLBAR,text:(0,i.t)("navbar.navbar.pro"),className:o.cx.ml4.mr0.noWrap.flex.$});if(!m){let r=(e,t,a=!1)=>n.createElement(l.Ex,{color:e,text:(0,i.t)("navbar.navbar.free"),className:`${t} ${!a&&"plan_switcher_team_badges--freeBadgeHover--w2Vpt"}`});if(e.isInDropdown)return r(l.zE.TOOLBAR,o.cx.ml4.mr0.noWrap.flex.$,!0);if((0,d.hasEditorRoleAccessOnTeam)(c.id,C))return n.createElement("button",{onClick:e=>{e.stopPropagation(),t(g.dm(c.id)),I(T.b.STARTER_TEAM_BADGE),(0,u.sx)("Starter Team Badge Clicked",{userId:a.id,teamId:c.id})},onMouseEnter:()=>{N||(S.current=setTimeout(()=>{(0,u.sx)("Starter Team Badge Viewed",{userId:a.id,teamId:c.id}),k(!0)},1e3))},onMouseLeave:()=>{clearTimeout(S.current)},className:o.cx.bgTransparent.$},r(l.zE.DEFAULT,o.cx.ml4.mr0.noWrap.colorText.colorBgSelectedSecondary.flex.$))}}else{if(c.student_team_at&&(0,p.kc)().edu_onboarding_grace_period)return null;let t=w.ng.canSeeProTrialExpiryUx(_),r=(e,t=!1)=>n.createElement(l.Ex,{color:e,text:(0,i.t)("navbar.navbar.trial_expired"),className:`${o.cx.ml4.mr0.noWrap.$} ${!t&&x}`}),s=(e,t=!1)=>n.createElement(l.Ex,{color:e,text:(0,i.t)("navbar.navbar.locked"),className:`${o.cx.ml4.mr0.noWrap.$} ${!t&&x}`});return e.isInDropdown?t?r(l.zE.WARNING,!0):s(l.zE.WARNING,!0):(0,d.hasEditorRoleAccessOnTeam)(c.id,C)?t?n.createElement(h.fu,{name:l._Y.PRO_TRIAL_EXPIRED,properties:{userId:a.id,teamId:c.id,...w.ng.getTrackingProperties()}},n.createElement(h.$z,{type:"button",onClick:()=>I(T.b.PRO_TRIAL_UPSELL_MODAL),className:o.cx.bgTransparent.$,trackingProperties:w.ng.getTrackingProperties("Badge Clicked")},n.createElement("span",{"data-tooltip-type":y.Ib.SPECIAL,"data-tooltip":y.MW.PRO_TRIAL_EXPIRED,"data-tooltip-show-right":!0,"data-tooltip-max-width":128,"data-tooltip-timeout-delay":50},r(l.zE.WARNING)))):n.createElement(h.fu,{name:l._Y.LOCKED,properties:{userId:a.id,teamId:c.id}},n.createElement(h.$z,{type:"button",onClick:()=>I(T.b.LOCKED_TEAM_BADGE),className:o.cx.bgTransparent.$,trackingProperties:{text:"Badge Clicked"}},s(l.zE.WARNING))):t?n.createElement(h.fu,{name:l._Y.PRO_TRIAL_EXPIRED,properties:{userId:a.id,teamId:c.id,...w.ng.getTrackingProperties()}},r(l.zE.WARNING)):s(l.zE.WARNING)}}return null}function N({workspace:e,isInDropdown:t}){return e.orgId?n.createElement(_,{orgId:e.orgId,isInDropdown:t}):e.teamId?n.createElement(C,{teamId:e.teamId,isInDropdown:t}):null}},408381:(e,t,a)=>{a.d(t,{U:()=>s});var n=a(411855),r=a(499200),l=a(98140),o=a(860168);let i=(0,r.jz)(o.Hvv)-8;function s(e){return n.createElement(l.j,{depth:0,dispatch:e.dispatch,items:e.items,lean:"right",minLeftMargin:-4,minWidth:i,onSelectItem:e.onSelectItem,parentRect:e.parentRect,rootAndSubmenuMaxWidth:i,showCheckmarkOnRight:!0,showPoint:!1})}},46235:(e,t,a)=>{a.d(t,{J:()=>m,P:()=>d});var n=a(411855),r=a(188507),l=a(820746),o=a(884096),i=a(983245),s=a(639061),c=a(34572);let m="TEAM_PROJECT_LINK_ONBOARDING_KEY";function d({selectedView:e,teamFolderId:t,teamFolderName:a}){let d=(0,r.wA)();return t&&a?n.createElement(c.Z,{isSelected:e&&"folder"===e.view&&e.folderId===t,onClick:()=>{d(s.gN(t)),d(i.Oe({clickedResourceType:"folder"}))},icon:n.createElement(l.In,{icon:"folder-32"}),text:n.createElement(o.E,{truncate:!0,showTooltipWhenTruncated:!1},a),"data-onboarding-key":m}):null}},96155:(e,t,a)=>{a.d(t,{d:()=>f});var n=a(411855),r=a(188507),l=a(703473),o=a(611464),i=a(304913),s=a(548891),c=a(402791),m=a(55330),d=a(905180),_=a(543841),u=a(950187),p=a(628086),E=a(207531),g=a(396754);function f(e){var t,a,f,v;let[w,T]=n.useState(!1),y=new _.vr(e.currency),[x,C]=n.useState(!1),N=(0,r.d4)(e=>e.payment),k=(0,r.d4)(e=>e.payment,(e,t)=>x||e===t),S=(0,r.d4)(t=>e.selectedView.teamId?t.teams[e.selectedView.teamId].name:e.teamName)??"",I=N.displayName||S,A=N.legalName||S,O=N.billingPeriod===u.tY.STUDENT,P=!!(0,E.p1)(e.selectedView,N),R=P||O,D=(0,p.mF)(N.billingPeriod),M="PROMOTION_CODE_ID_ERROR"===N.errorCode,L=N.submitPending||!P&&!w||M,F=(0,p.U8)({numWhiteboardEditors:N.numWhiteboardEditors,billingPeriod:N.billingPeriod}),B=(0,E.Qo)(N.numDesignEditors,N.billingPeriod,e.currency),U=(0,E.PK)(F,N.billingPeriod,e.currency),j=R?0:(null==(t=N.taxes)?void 0:t.total)||B+U,G=new URLSearchParams(l.Ay.location.search),z=G.get("onCompleteRedirectFileKey"),W=G.get("onCompleteRedirectNodeId"),{trackingDescriptor:$,buttonText:H,finePrint:q}=(0,E.V8)({isPromo:P,isEducationTeam:O,claimsEndAtDate:null==(a=N.promo)?void 0:a.claims_end_at}),K=async t=>{t.preventDefault(),await C(!0),e.onClickConfirm()},V=(0,o.kc)().pro_team_business_names;return n.createElement("div",{className:V?g.HX:g.db},V&&n.createElement("div",{className:g.PT},n.createElement(d.x,{displayName:I??"",legalName:A??"",variant:"team"})),n.createElement("div",{className:V?g.Bo:void 0},n.createElement("div",{className:g.TV},n.createElement(c.Tx,{id:O?"edu.checkout_team_name":"pro_cart.review.upgrade_team_name_to_a_professional_team",teamName:S})),D?n.createElement(E.eG,{payment:k,currency:e.currency,isPromo:P,isEducationTeam:O}):n.createElement(E.$c,{payment:k,currency:e.currency,isPromo:P,isEducationTeam:O}),n.createElement("div",{className:g.pV}),n.createElement(i.Kz,{multiple:2}),k.taxes&&!!e.address&&n.createElement(n.Fragment,null,n.createElement(E.Wy,{mainText:n.createElement(c.Tx,{id:"pro_cart.info.subtotal"}),priceText:y.formatMoney(k.taxes.sub_total||0,{showCents:!0}),"data-testid":"subtotal-summary"}),n.createElement(i.Kz,{multiple:1.5}),n.createElement(E.Wy,{mainText:n.createElement(c.Tx,{id:"pro_cart.review.tax"}),priceText:y.formatMoney((null==(f=k.taxes)?void 0:f.tax_total)||0,{showCents:!0}),subText:n.createElement(c.Tx,{id:"pro_cart.review.tax_percent",taxPercent:(null==(v=k.taxes.lines[0])?void 0:v.tax_percent)||0}),"data-testid":"tax-summary"}),n.createElement(i.Kz,{multiple:1.5})),n.createElement(E.Wy,{"data-testid":"confirm-total-summary",mainText:O?n.createElement(c.Tx,{id:"pro_cart.review.total"}):n.createElement(c.Tx,{id:"pro_cart.review.total_due_today"}),priceText:y.formatMoney(j,{showCents:!0,showFullFormat:(0,_._Z)()}),subText:P?n.createElement(c.Tx,{id:"pro_cart.review.you_will_not_be_charged_during_the_free_period",days:k.promo.promo_value}):void 0}),n.createElement(i.Kz,{multiple:2}),n.createElement("div",null,q,!P&&n.createElement("div",{className:g.Gn},n.createElement(m.S,{checked:w,onChange:e=>{T(e.currentTarget.checked)}}),n.createElement("p",null," ",n.createElement(c.Tx,{id:"pro_cart.review.agree_with_privacy_and_cancellation",termsOfServiceLink:n.createElement(E.BO,null),privacyLink:n.createElement(h,null),cancellationLink:n.createElement(b,null)})))),n.createElement(i.Kz,{multiple:2.5}),n.createElement(i.Kz,{multiple:2.5}),n.createElement(i.vd,{className:g.fK,onClick:K,trackingProperties:{teamId:e.selectedView.teamId,inPublishDraftExp:!!(W&&z),trackingDescriptor:$},disabled:L,dataTestId:"confirm-purchase-button"},N.submitPending?n.createElement(s.kt,{className:g.S}):H)))}function h(){return n.createElement(i.Us,{href:"/privacy",target:"_blank",trusted:!0},n.createElement(c.Tx,{id:"pro_cart.review.privacy_policy"}))}function b(){return n.createElement(i.Us,{href:"/pricing-faq/#how-do-i-cancel-my-paid-plan",target:"_blank",trusted:!0},n.createElement(c.Tx,{id:"pro_cart.review.cancellation_policy"}))}},721612:(e,t,a)=>{a.d(t,{X:()=>s});var n=a(411855),r=a(487644),l=a(959875),o=a(884096);if(443==a.j)var i=a(377869);function s(e){return n.createElement("p",{className:l.cx.flex.itemsCenter.gap8.mt8.$},n.createElement(r.B,{svg:i.A,className:l.cx.colorIconDesign.$}),n.createElement(o.E,{fontSize:13},e.bulletLabel))}},507352:(e,t,a)=>{a.d(t,{ZL:()=>O});var n=a(411855),r=a(188507),l=a(629019),o=a.n(l),i=a(611464),s=a(1705),c=a(55362),m=a(304913),d=a(487644),_=a(959875),u=a(402791),p=a(639061),E=a(705715),g=a(352604),f=a(979282),h=a(165077),b=a(921370),v=a(194646),w=a(533965),T=a(625475),y=a(731939),x=a(676083),C=a(566046),N=a(951366),k=a(657968),S=a(247866);function I(e,t,a){return a||(e.length>0?e[0]:t.length>0?t[0]:null)}function A(e,t){let a=t.findIndex(t=>t.id===e.id);a>0&&(t.splice(a,1),t.unshift(e))}let O=(0,C.Ju)(function(e){var t,a,l,C;let O=(0,r.d4)(e=>e),P=(0,r.wA)(),R=(0,b._6)(),D=(0,s.Rs)(w.UpR,{}),M=(0,f.H5)(),L=!!(0,v.f)("edu_hide_verification");if("loaded"!==D.status||((0,i.kc)().edu_bootcamps_reverification||(L=((null==(l=null==(a=null==(t=D.data)?void 0:t.currentUser)?void 0:a.schoolType)?void 0:l.status)===s.tT.Loaded?D.data.currentUser.schoolType.data:null)===k.h6.BOOTCAMP_OR_ONLINE&&M()),!O.user))return null;let F=(0,c.x$)(null==(C=D.data.currentUser)?void 0:C.eduPeriodEnd,(0,c.cn)(O.user));if(F===1/0)return null;let B=F>0?function(e,t){let a=Object.values(e.teams).filter(t=>t.student_team_state===x.kU.STUDENT_TEAM_CURRENT&&(0,y.canOwnTeam)(t.id,e)),r=Object.values(e.teams).filter(t=>t.student_team_state===x.kU.STUDENT_TEAM_CURRENT&&(0,y.canEditTeam)(t.id,e)&&!(0,y.canOwnTeam)(t.id,e)),l=I(a,r,t);if(null===l)return null;let o=null;if((0,y.canOwnTeam)(l.id,e)){if(A(l,a),r.length>0)switch(a.length){case 0:break;case 1:o=n.createElement(u.Tx,{id:"edu.offboarding_modal.the_team_you_own_will_become_view_only_for_all_members_and_you_ll_lose_edit_access_to_other_teams",teamName:n.createElement("strong",null,a[0].name),teamCount:r.length});break;case 2:o=n.createElement(u.Tx,{id:"edu.offboarding_modal.the_two_teams_you_own_will_become_view_only_for_all_members_and_you_ll_lose_edit_access_to_other_teams",teamName1:n.createElement("strong",null,a[0].name),teamName2:n.createElement("strong",null,a[1].name),teamCount:r.length});break;default:o=n.createElement(u.Tx,{id:"edu.offboarding_modal.the_three_teams_you_own_will_become_view_only_for_all_members_and_you_ll_lose_edit_access_to_other_teams",teamName1:n.createElement("strong",null,a[0].name),teamName2:n.createElement("strong",null,a[1].name),teamName3:n.createElement("strong",null,a[2].name),teamCount:r.length})}else switch(a.length){case 0:break;case 1:o=n.createElement(u.Tx,{id:"edu.offboarding_modal.the_team_you_own_will_become_view_only_for_all_members_once_your_plan_expires",teamName:n.createElement("strong",null,a[0].name)});break;case 2:o=n.createElement(u.Tx,{id:"edu.offboarding_modal.the_two_teams_you_own_will_become_view_only_for_all_members_once_your_plan_expires",teamName1:n.createElement("strong",null,a[0].name),teamName2:n.createElement("strong",null,a[1].name)});break;default:o=n.createElement(u.Tx,{id:"edu.offboarding_modal.the_three_teams_you_own_will_become_view_only_for_all_members_once_your_plan_expires",teamName1:n.createElement("strong",null,a[0].name),teamName2:n.createElement("strong",null,a[1].name),teamName3:n.createElement("strong",null,a[2].name)})}}else switch(A(l,r),r.length){case 0:break;case 1:o=n.createElement(u.Tx,{id:"edu.offboarding_modal.you_ll_lose_edit_access_to_team_once_your_plan_expires",teamName:n.createElement("strong",null,r[0].name)});break;default:o=n.createElement(u.Tx,{id:"edu.offboarding_modal.you_ll_lose_edit_access_to_team_and_team_once_your_plan_expires",teamName1:n.createElement("strong",null,r[0].name),teamName2:n.createElement("strong",null,r[1].name)})}return null===o?null:{displayTeam:l,title:o}}(O,e.team):function(e,t){let a=Object.values(e.teams).filter(t=>t.student_team_state===x.kU.STUDENT_TEAM_EXPIRED&&(0,y.canOwnTeam)(t.id,e)&&(0,T.oc)(t.id,e)),r=Object.values(e.teams).filter(t=>t.student_team_state===x.kU.STUDENT_TEAM_CURRENT&&!(0,y.canEditTeam)(t.id,e)),l=I(a,r,t);if(null===l)return null;let o=null;if((0,y.canOwnTeam)(l.id,e)){if(A(l,a),r.length>0)switch(a.length){case 0:break;case 1:o=n.createElement(u.Tx,{id:"edu.offboarding_modal.the_team_you_own_is_now_view_only_for_all_members_and_you_can_no_longer_make_edits",teamName:n.createElement("strong",null,a[0].name),teamCount:r.length});break;case 2:o=n.createElement(u.Tx,{id:"edu.offboarding_modal.the_two_teams_you_own_are_now_view_only_for_all_members_and_you_can_no_longer_make_edits",teamName1:n.createElement("strong",null,a[0].name),teamName2:n.createElement("strong",null,a[1].name),teamCount:r.length});break;default:o=n.createElement(u.Tx,{id:"edu.offboarding_modal.the_three_teams_you_own_are_now_view_only_for_all_members_and_you_can_no_longer_make_edits",teamName1:n.createElement("strong",null,a[0].name),teamName2:n.createElement("strong",null,a[1].name),teamName3:n.createElement("strong",null,a[2].name),teamCount:r.length})}else switch(a.length){case 0:break;case 1:o=n.createElement(u.Tx,{id:"edu.offboarding_modal.the_team_you_own_is_now_view_only_for_all_members",teamName:n.createElement("strong",null,a[0].name)});break;case 2:o=n.createElement(u.Tx,{id:"edu.offboarding_modal.the_two_teams_you_own_are_now_view_only_for_all_members",teamName1:n.createElement("strong",null,a[0].name),teamName2:n.createElement("strong",null,a[1].name)});break;default:o=n.createElement(u.Tx,{id:"edu.offboarding_modal.the_three_teams_you_own_are_now_view_only_for_all_members",teamName1:n.createElement("strong",null,a[0].name),teamName2:n.createElement("strong",null,a[1].name),teamName3:n.createElement("strong",null,a[2].name)})}}else switch(A(l,r),r.length){case 0:break;case 1:o=n.createElement(u.Tx,{id:"edu.offboarding_modal.you_can_no_longer_edit_team",teamName:n.createElement("strong",null,r[0].name)});break;default:o=n.createElement(u.Tx,{id:"edu.offboarding_modal.you_can_no_longer_edit_team_and_team",teamName1:n.createElement("strong",null,r[0].name),teamName2:n.createElement("strong",null,r[1].name)})}return null===o?null:{displayTeam:l,title:o}}(O,e.team);if(null===B)return null;let U=B.displayTeam,j=B.title,G=(0,y.canOwnTeam)(U.id,O),z=()=>{P(E.Ce())},W=()=>{z(),P(p.Dw({}))};return n.createElement(h.fu,{name:"Edu Offboarding Modal"},n.createElement(N.XV,{title:(0,u.t)("edu.offboarding_modal.your_education_status"),maxWidth:381,onClose:z},n.createElement("div",{className:o()(_.cx.flex.itemsCenter.p8.$,_.cx.if(F>0,_.cx.colorBgWarningTertiary,_.cx.colorBgDangerTertiary).$)},n.createElement(d.B,{className:_.cx.p8.colorIcon.$,svg:S.A}),n.createElement("p",null,n.createElement("strong",null,F>0?n.createElement(u.Tx,{id:"edu.offboarding_modal.your_education_plan_expires_in_days",daysLeft:F}):n.createElement(u.Tx,{id:"edu.offboarding_modal.your_education_plan_has_expired"})))),n.createElement("div",{className:_.cx.px16.pt8.pb12.$},n.createElement("p",null,j),n.createElement("div",{className:_.cx.pt16.flex.$},n.createElement("div",{className:_.cx.w4.h4.colorBgDisabled.mt6.mr8.flexShrink0.$}),n.createElement("p",null,n.createElement("strong",null,n.createElement(u.Tx,{id:"edu.offboarding_modal.if_you_graduated"})),G?n.createElement(u.Tx,{id:"edu.offboarding_modal.continue_below_to_upgrade_your_team_s_to_the_professional_plan_or",createProTeamLink:n.createElement(m.Us,{onClick:W,trusted:!0},n.createElement(u.Tx,{id:"edu.offboarding_modal.create_a_new_professional_team"}))}):n.createElement(u.Tx,{id:"edu.offboarding_modal.create_a_new_professional_team_and_start_fresh"}))),!L&&n.createElement("div",{className:_.cx.pt16.flex.$},n.createElement("div",{className:_.cx.w4.h4.colorBgDisabled.mt6.mr8.flexShrink0.$}),n.createElement("p",null,n.createElement("strong",null,n.createElement(u.Tx,{id:"edu.offboarding_modal.if_you_re_still_in_education"})),n.createElement(u.Tx,{id:"edu.offboarding_modal.verify_your_status_to_keep_collaborating_with_your_teams",verifyStatusLink:n.createElement(m.Us,{href:"/education/apply",target:"_blank",trusted:!0},n.createElement(u.Tx,{id:"edu.offboarding_modal.verify_your_status"}))}))),n.createElement("div",{className:_.cx.pt16.flex.$},n.createElement("div",{className:_.cx.w4.h4.colorBgDisabled.mt6.mr8.flexShrink0.$}),n.createElement("p",null,n.createElement("strong",null,n.createElement(u.Tx,{id:"edu.offboarding_modal.to_save_your_work"})),G?n.createElement(u.Tx,{id:"edu.offboarding_modal.duplicate_or_move_files_to_your_drafts_to_save_them_for_later_and_consider_transferring_ownership_of_your_team_s",transferringOwnershipLink:n.createElement(m.Us,{href:"https://help.figma.com/hc/articles/360038512093",target:"_blank",trusted:!0},n.createElement(u.Tx,{id:"edu.offboarding_modal.transferring_ownership"}))}):n.createElement(u.Tx,{id:"edu.offboarding_modal.duplicate_or_move_files_to_your_drafts_to_save_them_for_later"}))),n.createElement("div",{className:_.cx.flex.flexColumn.itemsEnd.pt32.$},G?n.createElement(m.vd,{onClick:()=>{z(),P(g.WX({teamId:U.id,selectedView:R}))}},n.createElement(u.Tx,{id:"edu.offboarding_modal.upgrade_to_professional"})):n.createElement(m.vd,{onClick:W},n.createElement(u.Tx,{id:"edu.offboarding_modal.create_a_new_professional_team_cta"}))))))},"EDU_OFFBOARDING_MODAL")},243559:(e,t,a)=>{a.d(t,{I:()=>v});var n=a(411855),r=a(188507),l=a(1705),o=a(304913),i=a(487644),s=a(402791),c=a(705715),m=a(352604),d=a(820657),_=a(165077),u=a(533965),p=a(625475),E=a(566046),g=a(905618),f=a(321112),h=a(630834);let b=class extends n.PureComponent{constructor(){super(...arguments),this.onClickClose=b.onClickCloseFn(this)}render(){let{team:e,children:t}=this.props,a="team_modals-post--modal--anW4d";return this.props.className&&(a+=` ${this.props.className}`),n.createElement(_.fu,{name:this.props.name,properties:{teamId:e.id}},n.createElement(g.aF,{className:a,size:"medium"},n.createElement("div",{className:"team_modals-post--modalBar--O7yjs"},n.createElement(i.B,{className:"team_modals-post--modalCloseX--EZs-2",svg:h.default,onClick:this.onClickClose})),t,this.props.buttons&&n.createElement("div",{className:`${f.v0} team_modals-post--buttonRow--2H7wN`},this.props.buttons)))}};b.displayName="TeamModal",b.closeModalFn=function(e){return()=>{e.props.dispatch(c.Lo())}},b.onClickCloseFn=function(e){let t=b.closeModalFn(e);return e=>{e.preventDefault(),t()}};let v="TEAM_USAGE_MODAL";(0,E.qK)(v,e=>{let t=e.teams[e.modalShown.data.teamId];return n.createElement(T,{team:t,selectedView:e.selectedView})});let w=class extends n.PureComponent{constructor(){super(...arguments),this.closeModal=b.closeModalFn(this),this.onClickClose=b.onClickCloseFn(this),this.onClickUpgrade=e=>{e.preventDefault(),this.closeModal(),this.props.dispatch(m.WX({teamId:this.props.team.id,selectedView:this.props.selectedView}))},this.renderButtons=()=>n.createElement(o.M7,{onClick:this.onClickClose,trackingProperties:{teamId:this.props.team.id}},n.createElement(s.Tx,{id:"payments_modal.okay"}))}render(){let{team:e,numDesignFilesForTeam:t,numWhiteboardFilesForTeam:a,folders:r}=this.props,l=t>p.WW,i=a>p.WW,c=e.projects>p.Wf,m=Object.keys(r).filter(e=>r[e].is_view_only).map(e=>r[e]),_=Object.keys(r).filter(e=>r[e].is_invite_only).map(e=>r[e]);return n.createElement(b,{name:w.displayName,team:e,dispatch:this.props.dispatch,buttons:this.renderButtons()},n.createElement("h3",{className:"team_modals-post--headerText--ik-S4"},n.createElement(s.Tx,{id:"payments_modal.to_meet_the_limits_for_your_starter_plan"})),n.createElement("ul",null,l&&n.createElement("li",null,n.createElement(s.Tx,{id:"payments_modal.move_figma_files_to_drafts",numFigmaFiles:t-p.WW})),i&&n.createElement("li",null,n.createElement(s.Tx,{id:"payments_modal.move_figjam_files_to_drafts",numFigJamFiles:a-p.WW})),c&&n.createElement("li",null,n.createElement(s.Tx,{id:"payments_modal.remove_projects",numProjects:e.projects-p.Wf})),m.length>0&&n.createElement("li",null,n.createElement(s.Tx,{id:"payments_modal.remove_view_only_permissions_from_all_projects"})),_.length>0&&n.createElement("li",null,n.createElement(s.Tx,{id:"payments_modal.remove_invite_only_permissions_from_all_projects"}))),n.createElement("p",null,n.createElement(s.Tx,{id:"payments_modal.if_you_would_rather_keep_the_current_limits",upgradeToProfessional:n.createElement(o.Us,{onClick:this.onClickUpgrade,trackingProperties:{trackingDescriptor:d.c.UPGRADE_TO_PROFESSIONAL},trusted:!0},n.createElement(s.Tx,{id:"payments_modal.upgrade_to_professional"}))})))}};function T(e){var t,a,o,i,s,c;let m=(0,r.wA)(),{team:d,selectedView:_}=e,p=(0,r.d4)(e=>e.folders),E=(0,l.Rs)(u.bel,{teamId:d.id}),g=(null==(o=null==(a=null==(t=E.data)?void 0:t.team)?void 0:a.teamFileCounts)?void 0:o.designFileCount)??0,f=(null==(c=null==(s=null==(i=E.data)?void 0:i.team)?void 0:s.teamFileCounts)?void 0:c.whiteboardFileCount)??0;return n.createElement(w,{team:d,selectedView:_,folders:p,numDesignFilesForTeam:g,numWhiteboardFilesForTeam:f,dispatch:m})}w.displayName="LockedTeamUsageModal"},57901:(e,t,a)=>{a.d(t,{L0:()=>c,UA:()=>s,_:()=>m,fS:()=>d});var n=a(411855),r=a(959875),l=a(402791),o=a(884096),i=a(721612);let s="seen_pro_onboarding_welcome_modal";function c(){return n.createElement("div",{className:r.cx.mt16.$},n.createElement(i.X,{bulletLabel:(0,l.t)("pro_onboarding.unlimited_files_for_all_your_ideas")}),n.createElement(i.X,{bulletLabel:(0,l.t)("pro_onboarding.unlimited_projects_to_organize_your_files")}),n.createElement(i.X,{bulletLabel:(0,l.t)("pro_onboarding.dev_mode_for_simpler_inspection_and_handoff")}))}function m({user:e}){return n.createElement(o.E,{i18nId:"pro_onboarding.welcome_to_professional",i18nParams:{userName:e.name.split(" ")[0]},fontSize:24,fontWeight:"bold"})}function d(){return n.createElement("img",{width:313,src:"https://static.figma.com/uploads/4323e87513cec17f5decef84ebf66c12c0d2ea59",alt:"An illustration welcoming you to Figma Professional"})}},703204:(e,t,a)=>{a.d(t,{C:()=>E});var n=a(411855),r=a(188507),l=a(402791),o=a(884096),i=a(705715),s=a(119560),c=a(820657),m=a(21122),d=a(664269),_=a(566046),u=a(186618),p=a(57901);let E=(0,_.Ju)(function({teamId:e}){var t;let a=(0,m.iZ)(),_=(0,r.d4)(t=>t.teams[e]),E=(0,r.wA)(),g=(0,r.d4)(e=>e.userTeamFlags);if(!a||(null==(t=g[e])?void 0:t[p.UA]))return null;let f=()=>{E(s.bE({all_team_flags:[{team_id:e,flags:{[p.UA]:!0}}]})),E(i.Ce())},h=n.createElement(n.Fragment,null,n.createElement(l.Tx,{id:"pro_onboarding.you_successfully_upgraded_team_name_to_a_professional_plan",teamName:n.createElement(o.E,{fontWeight:"bold"},_.name)}),n.createElement(p.L0,null));return n.createElement(u.xx,{title:n.createElement(p._,{user:a}),description:h,media:n.createElement(p.fS,null),primaryCta:{type:"button",label:n.createElement(o.E,{i18nId:"pro_onboarding.get_started",fontSize:13}),ctaTrackingDescriptor:c.c.GET_STARTED,onClick:f},trackingContextName:"Pro Onboarding Team Upgrader Welcome Modal",trackingProperties:d.S.getTrackingProperties(e),onClose:f,closeButtonColor:"light"})},"ProOnboardingTeamUpgraderWelcomeModal")},846659:(e,t,a)=>{a.d(t,{FK:()=>N});var n=a(411855),r=a(188507),l=a(384305),o=a(218017),i=a(304913),s=a(487644),c=a(402791),m=a(869659),d=a(55330),_=a(705715),u=a(346532),p=a(165077),E=a(733138),g=a(597722),f=a(566046),h=a(905618),b=a(629019),v=a.n(b);function w(e){let{text:t,hoverText:a}=e,[r,l]=n.useState(!1);return n.createElement("div",{onMouseLeave:()=>{a&&l(!1)},className:"hover_tooltip--tooltipParent--KAceC"},n.createElement("span",null,!!a&&n.createElement("span",{className:v()({"hover_tooltip--tooltipHoverStateVisible--XZGjZ":r,"hover_tooltip--tooltipHoverStateHidden--9a66V hover_tooltip--tooltipHoverStateVisible--XZGjZ":!r})},a,n.createElement("div",{className:"hover_tooltip--tooltipHoverTriangle--ehc6Y"})),n.createElement("span",{className:"hover_tooltip--tooltipMarker--nT5Gb"},"\u2713"),n.createElement("span",{onMouseOver:()=>{a&&l(!0)},className:v()({"hover_tooltip--tooltipHoverable--oYa3X":!!a})},t)))}var T=a(63291),y=a(498634);function x({user:e}){var t;let a=(0,l.qe)(e.email)?null:null==(t=(0,l.zN)(e.email))?void 0:t.split(".")[0];return a=a?a.charAt(0).toUpperCase()+a.slice(1):(0,c.t)("team_creation_speed_bump.placeholder.team_name",{userName:e.name}),n.createElement("div",{className:"team_creation_speed_bump--placeholderVisual--Oqrum"},n.createElement("div",{className:"team_creation_speed_bump--placeholderHeader--homNf text--fontPos11--2LvXf text--_fontBase--QdLsd"},n.createElement(m.n,{team:{name:a}}),n.createElement("div",{"aria-hidden":!0},a)),n.createElement("div",{className:"team_creation_speed_bump--placeholderContent--FCRBG"},n.createElement(C,{pxTextWidth:66}),n.createElement(C,{pxTextWidth:39}),n.createElement(C,{pxTextWidth:82})))}function C({pxTextWidth:e}){return n.createElement("div",{className:"team_creation_speed_bump--placeholderDirectory--IAGl8"},n.createElement("div",{className:"team_creation_speed_bump--placeholderLine--vY1Tr"}),n.createElement(s.B,{svg:y.A}),n.createElement("div",{className:"team_creation_speed_bump--placeholderText--T0k3s",style:{width:`${e}px`}}))}let N=(0,f.Ju)(function(e){let t=(0,r.wA)(),a=(0,n.useRef)(null),[l,s]=(0,n.useState)(550),m=()=>{t(_.Lo())},f=()=>{t(_.Ce())},b=()=>{m(),t((0,_.to)({type:T.DV,data:{resource:g.Pj.TEAM_CREATION_SPEED_BUMP,currentPlan:E.F.Plan.STARTER,upsellPlan:E.F.Plan.PRO,editorType:e.editorType}}))},[v,y]=(0,n.useState)(!1),C=()=>{v&&t(u.b({team_creation_speed_bump_dismissed:!0}))};return(0,n.useLayoutEffect)(()=>{var e;let t=null==(e=null==a?void 0:a.current)?void 0:e.offsetWidth;t&&t>167&&s(550+(t-167))},[]),n.createElement(p.fu,{name:"Team creation speed bump"},n.createElement(h.aF,{title:(0,c.t)("team_creation_speed_bump.title"),titleClassName:"team_creation_speed_bump--modalTitle--ji1ue",className:"team_creation_speed_bump--modal--Q02I8",size:l},n.createElement(o.Jn,{className:"team_creation_speed_bump--closeButton--JcGlN close_button--modalUpperRightCorner--eKAQg",onClick:()=>{C(),m()},innerText:"Close"}),n.createElement("div",{className:"team_creation_speed_bump--modalContent--RxtK4 text--fontPos13--xW8hS text--_fontBase--QdLsd"},n.createElement("div",{className:"team_creation_speed_bump--modalText--GFoIV"},n.createElement("p",null,n.createElement(c.Tx,{id:"team_creation_speed_bump.body.best_way_to_organize_team_projects"})),n.createElement("p",{className:"team_creation_speed_bump--modalBold--Z5JFe"},(0,c.t)("team_creation_speed_bump.body.upgrade_a_team")),n.createElement(w,{text:(0,c.t)("team_creation_speed_bump.body.unlimited_files")}),n.createElement(w,{text:(0,c.t)("team_creation_speed_bump.body.viewers_and_commenters"),hoverText:(0,c.t)("team_creation_speed_bump.tooltip.viewers_and_commenters")}),n.createElement(w,{text:(0,c.t)("team_creation_speed_bump.body.set_permissions"),hoverText:(0,c.t)("team_creation_speed_bump.tooltip.set_permissions")})),n.createElement(x,{user:e.user})),n.createElement("div",{className:"team_creation_speed_bump--separator--8QwGz"}),n.createElement("div",{className:"team_creation_speed_bump--footer--qMvoj"},n.createElement(d.S,{checked:v,onChange:e=>y(e.currentTarget.checked),label:(0,c.t)("team_creation_speed_bump.footer.checkbox_text")}),n.createElement("div",{className:"team_creation_speed_bump--footerButtons--zvChs"},n.createElement("div",{ref:a},n.createElement(i.tM,{className:"team_creation_speed_bump--upgradeButton--Z3aHm",onClick:()=>{C(),m(),b()},innerText:(0,c.t)("team_creation_speed_bump.footer.upgrade_button.text")},(0,c.t)("team_creation_speed_bump.footer.upgrade_button.text"),n.createElement("div",{className:"team_creation_speed_bump--proLabel--OKnVm text--fontPos9--naThA text--_fontBase--QdLsd"},(0,c.t)("team_creation_speed_bump.footer.upgrade_button.label")))),n.createElement(i.vd,{className:"team_creation_speed_bump--createTeamButton--C0SJY",onClick:()=>{C(),f(),e.startTeamCreation()}},(0,c.t)("team_creation_speed_bump.footer.create_team_button.text"))))))},"TeamCreationSpeedBump")},69296:(e,t,a)=>{a.d(t,{BO:()=>I,IG:()=>S,gL:()=>A,oX:()=>N});var n=a(411855),r=a(188507);if(443==a.j)var l=a(732326);var o=a(344298),i=a(656927),s=a(304913),c=a(377372),m=a(402791),d=a(346532),_=a(672984),u=a(165077),p=a(669234),E=a(748673),g=a(290850),f=a(22852),h=a(639461),b=a(194031),v=a(29295),w=a(120550),T=a(403126),y=a(828843),x=a(983238),C=a(972045);function N({dismissModal:e}){return n.createElement(g.NJ,{dismissModal:e,targetKey:"rcs-figjam-disabled-by-org"},n.createElement(m.Tx,{id:"rcs.figjam_disabled_by_org.this_file_is_view_only_because_fig_jam_has_been_disabled_by_your_organization"}))}function k({trackingContextName:e,getTitle:t,getBody:a,width:r=268}){return{modalType:b.q3.POINTER,trackingContextName:e,width:r,onboardingKey:v.yl,shouldCenterArrow:w.EL.FALLBACK,element:()=>n.createElement(n.Fragment,null,n.createElement(h.x,{target:v.yl}),n.createElement("div",{className:C.Hj},t()),a()),userFlag:"seen_figjam_widget_nudge_flag"}}b.q3.SELF_CONTAINED,k({trackingContextName:"FigJam Widget Nudge Generic",getTitle:()=>(0,m.t)("rcs.figjam_widget_nudge.generic_title"),getBody:()=>(0,m.t)("rcs.figjam_widget_nudge.generic_body")}),k({trackingContextName:"FigJam Widget Nudge Project Management",getTitle:()=>(0,m.t)("rcs.figjam_widget_nudge.pm_title"),getBody:()=>(0,m.t)("rcs.figjam_widget_nudge.pm_body"),width:240}),k({trackingContextName:"FigJam Widget Nudge Alignment",getTitle:()=>(0,m.t)("rcs.figjam_widget_nudge.align_title"),getBody:()=>(0,m.t)("rcs.figjam_widget_nudge.align_body")}),k({trackingContextName:"FigJam Widget Nudge Fun",getTitle:()=>(0,m.t)("rcs.figjam_widget_nudge.fun_title"),getBody:()=>(0,m.t)("rcs.figjam_widget_nudge.fun_body")});let S={modalType:b.q3.MOBILE,trackingContextName:"Mobile FigJam Redirect Modal",element:function(e){return n.useEffect(()=>{i.Ay.post("/api/mobile_redirect/figjam").catch(e=>{console.error(e)})},[]),n.createElement(n.Fragment,null,n.createElement(f.Gv,{width:"100%",src:"https://static.figma.com/uploads/f95cfc857cdc5c164958966add0665b69673667c"}),n.createElement(f.ok,null,n.createElement("h1",null,n.createElement(m.Tx,{id:"rcs.redirect_from_mobile_to_desktop.head_to_figjam_on_desktop"})),n.createElement(s.Kz,{multiple:1,direction:"y"}),n.createElement("p",{className:C.G3},n.createElement(m.Tx,{id:"rcs.redirect_from_mobile_to_desktop.to_use_figjam_head_to_a_desktop_device_we've_sent_you_an_email_with_instructions"})),n.createElement(s.Kz,{multiple:3,direction:"y"}),n.createElement(s.CY,{onClick:e.dismissModal,role:"button",style:{fontSize:"13px"},trusted:!0},n.createElement(m.Tx,{id:"rcs.redirect_from_mobile_to_desktop.continue_in_mobile_browser"}))))},userFlag:"seen_figjam_mobile_signup_redirect_modal"},I={modalType:b.q3.MOBILE,type:b.dZ.SHELF,trackingContextName:"Mobile Redirect Shelf",element:(0,E.XY)(e=>n.createElement(f.mS,null,n.createElement("p",{className:C.RZ},n.createElement(m.Tx,{id:"rcs.redirect_from_mobile_to_desktop.continue_in"})),n.createElement(s.Kz,{multiple:3,direction:"y"}),n.createElement(y.t,{icon:"https://static.figma.com/uploads/a3006bdcba9fa948d80e6248c95f310fed735fcd",title:(0,m.t)("rcs.redirect_from_mobile_to_desktop.open_in_desktop"),description:(0,m.t)("rcs.redirect_from_mobile_to_desktop.for_the_full_figma_experience"),ctaType:"primary",ctaText:(0,m.t)("rcs.redirect_from_mobile_to_desktop.email_link"),ctaOnClick:()=>{i.Ay.post("/api/mobile_redirect/login").then(()=>{e.dispatch(c.s.flash("Email sent!"))}).catch(e=>{console.error(e)}),e.dismissModal()}}),(0,o.tS)()&&n.createElement(n.Fragment,null,n.createElement(s.Kz,{multiple:3,direction:"y"}),n.createElement(y.t,{icon:"https://static.figma.com/uploads/669133f44606033fe46c705fc9e031582da50554",title:(0,m.t)("rcs.redirect_from_mobile_to_desktop.figma_app"),description:(0,m.t)("rcs.redirect_from_mobile_to_desktop.for_viewing_and_commenting"),ctaType:"secondary",ctaText:(0,m.t)("rcs.redirect_from_mobile_to_desktop.get"),ctaHref:(0,o.j5)()?_.o:_.J,ctaOnClick:()=>{e.dismissModal()}})),n.createElement(s.Kz,{multiple:3,direction:"y"}),n.createElement(y.t,{icon:"https://static.figma.com/uploads/363af28bb9933a27b22cab48d7243afb3d53d8ac",title:(0,m.t)("rcs.redirect_from_mobile_to_desktop.mobile_browser"),ctaType:"secondary",ctaText:(0,m.t)("rcs.redirect_from_mobile_to_desktop.continue"),ctaOnClick:()=>{e.dismissModal()}})))};function A(e){let[t,a]=n.useState(!0),o=(0,r.wA)(),i=(0,l.md)(p.yV);n.useEffect(()=>{setTimeout(()=>a(!1),1e3)});let c=()=>{o(d.b({explicitly_dismissed_create_component_pointer:!0})),e.dismissModal()};return t?null:n.createElement(u.fu,{name:"library upsell create component pointer",properties:{fileKey:null==i?void 0:i.key,teamId:null==i?void 0:i.teamId}},n.createElement(h.x,{target:"create-symbol"}),n.createElement(g.NJ,{dismissModal:c,width:244,targetKey:"create-symbol",shouldNotWrapInParagraphTag:!0,shouldCenterArrow:w.EL.FALLBACK},n.createElement("p",null,n.createElement(m.Tx,{id:"rcs.upsell_libraries.click_here_to_turn_into_component"})),n.createElement(s.Kz,{multiple:2}),n.createElement("div",{className:x.kP},n.createElement(s.vd,{onClick:c,className:x.ZO},n.createElement(m.Tx,{id:"rcs.upsell_libraries.visual_bell.got_it"})))))}b.q3.FEATURE_UPDATE,(0,r.Ng)(e=>{var t;return{userId:(null==(t=e.user)?void 0:t.id)||""}})(e=>n.createElement(n.Fragment,null,n.createElement(f.u9.Content,null,n.createElement("div",{className:C.xi},n.createElement(s.Kz,{multiple:5}),n.createElement("div",{className:C.o$},n.createElement(m.Tx,{id:"rcs.figjam_april_2022_onboarding.new"})),n.createElement("h1",null,n.createElement(m.Tx,{id:"rcs.figjam_april_2022_onboarding.creative_tools_for_you_built_line_break_with_by_our_community",lineBreak:n.createElement("br",null)})),n.createElement(s.Kz,{multiple:2}),n.createElement("p",null,n.createElement(m.Tx,{id:"rcs.figjam_april_2022_onboarding.figma_community_puts_thousands_of_templates_time_saving_ui_kits_and_powerful_plugins_at_your_fingertips_all_created_by_figma_users_just_like_you"})),n.createElement(s.Kz,{multiple:4}),n.createElement(s.pY,{trackingProperties:{userId:e.userId},href:"/community",target:"_blank",rel:"noopener",onClick:e.onClickPrimaryCta},n.createElement(m.Tx,{id:"rcs.figjam_april_2022_onboarding.explore_community"})),n.createElement(s.Kz,{multiple:5})),n.createElement("div",{className:C.g2},n.createElement("div",{className:C.vW},n.createElement("img",{width:512,src:"https://static.figma.com/uploads/2ab09dc63038e0d9d96ad3845ef3e8af4bde427a",alt:""})))))),b.q3.SELF_CONTAINED,e=>n.createElement(g.OA,{dismissModal:e.dismissModal,ctaText:(0,m.t)("rcs.copy_link_pointer.got_it"),title:(0,m.t)("rcs.copy_link_pointer.ready_to_share"),onClickPrimaryCta:e.dismissModal,targetKey:T.xq,width:300},n.createElement("p",null,n.createElement(m.Tx,{id:"rcs.copy_link_pointer.just_click_to_copy_file"})))},170095:(e,t,a)=>{let n;a.r(t),a.d(t,{CREATE_TEAM_ONBOARDING_KEY:()=>ty,FAVORITES_COUNT_CROSSED_THRESHOLD_EVENT:()=>R,TEAM_FILES_ONBOARDING_KEY:()=>tT,USER_FLAG_V2:()=>j,default:()=>nv});var r=a(411855),l=a(611464),o=a(344298),i=a(979282),s=a(801199),c=a(360897),m=a(732326),d=a(402791),_=a(287243),u=a(764019),p=a(721401),E=a(781074),g=a(509794),f=a(46235),h=a(120550),b=a(949322);let v="seen_team_project_link_overlay",w=(0,u.r1)(v);function T(){let e=(0,m.md)(w),t=(0,i.fn)(),a=()=>t===i.ih.CONTROL,{show:n,isShowing:l,complete:o}=(0,_.e)({overlay:b.BTz,priority:p.N.DEFAULT_MODAL,experiment:{check:()=>a(),predicate:e=>!e,postCheck:e=>!e}},[e]);return(0,r.useEffect)(()=>{n({canShow:e=>!e})}),r.createElement(E.rq,{arrowPosition:h.F_.LEFT_TITLE,description:r.createElement(d.Tx,{id:"team_project_link.overlay.description"}),emphasized:!0,isShowing:l,onClose:o,targetKey:f.J,trackingContextName:"Team Project Link Overlay",userFlagOnShow:v,zIndex:g.R.MODAL})}var y=a(672649),x=a(2972),C=a(211304),N=a(165077),k=a(147944),S=a(422053),I=a(304913),A=a(290850);function O(e){return r.createElement("div",{className:"custom_sections_onboarding_modal--overlay--zfqF2"},r.createElement(A.CR,{width:360,dismissModal:e.onClickPrimaryCta,targetKey:"custom-sections-nudge-modal",topPadding:4,arrowPosition:h.F_.LEFT_TITLE,pointerBackgroundColor:"var(--color-bg, $figmaBGWhite)"},r.createElement("h1",{className:"custom_sections_onboarding_modal--header--zCuMU"},r.createElement(d.Tx,{id:"favorited_resources.custom_sections_nudge_header"})),r.createElement("p",null,r.createElement(d.Tx,{id:"favorited_resources.custom_sections_nudge_body",ellipses:r.createElement("strong",null,r.createElement(d.Tx,{id:"favorited_resources.ellipses"})),plus:r.createElement("strong",null,r.createElement(d.Tx,{id:"favorited_resources.plus"}))})),r.createElement("div",{className:"custom_sections_onboarding_modal--footerContainerButtonRight--MDGUy custom_sections_onboarding_modal--footerContainer--pTO2u"},r.createElement(I.vd,{onClick:e.onClickPrimaryCta},r.createElement(d.Tx,{id:"rcs.file_browser.got_it"})))))}let P="seen_custom_sections_nudge",R="favorites-count-crossed-threshold",D=(0,u.r1)(P);function M(){let e=(0,m.md)(D),t=(0,_.e)({overlay:b.LB2,priority:p.N.OVERRIDING_MODAL},[e]);return(0,k.E)(t.uniqueId,R,()=>{t.show({canShow:e=>!e})}),r.createElement(S.M,{isShowing:t.isShowing,userFlagOnShow:P},r.createElement(N.fu,{name:"Custom Sections Nudge"},r.createElement(O,{onClickPrimaryCta:t.complete})))}var L=a(868879),F=a(613431),B=a(178782),U=a(856920);let j="seen_whats_new_v2_modal",G=(0,u.r1)(j),z=(0,F.tH)("last_figjam_at");function W(){let e=(0,m.md)(u.GW),t=(0,m.md)(F.mp),a=(0,m.md)(z),n=(0,m.md)(G),l=(0,m.md)(F.NT),o=(0,m.md)(F.Ot),i=(0,_.e)({overlay:b.I3H,priority:p.N.DEFAULT_MODAL},[e,t,n,o,l]);return(0,L.h)(()=>{i.show({canShow:(e,t,n,r)=>e&&!r&&(0,U.f)({lastUsedFigjamDate:a,userCreatedAt:t,hasSeenOverlayV2:n})})}),r.createElement(B.A,{context:"file_browser",jobTitle:(0,U.E)(l,["education"]),isShowing:i.isShowing,onClickPrimaryCta:i.complete,onClose:i.complete,onManualDismiss:i.complete})}var $=a(188507),H=a(639061),q=a(705715),K=a(346532),V=a(21122),X=a(628086),Y=a(857105),Q=a(218017),J=a(138611),Z=a(959875),ee=a(905618),et=a(256320);function ea(e){return r.createElement(N.fu,{name:"jamboard_importer_onboarding_modal"},r.createElement(ee.Nb,{className:et.Tw,size:"fitContent",hide:e.onDismiss,disableClickOutsideToHide:!0,disableKeyboardEventPropagation:!0,tintedModalBackground:!0},r.createElement(J.i,null,r.createElement("div",{className:Z.cx.flex.bRadius8.overflowHidden.$},r.createElement("div",{className:"jamboard_importer_onboarding_modal--leftContainer--HAH2c"},r.createElement("div",{className:"jamboard_importer_onboarding_modal--textContainer--v51YX"},r.createElement("img",{className:"jamboard_importer_onboarding_modal--googleIcon--9rIQo",alt:(0,d.t)("rcs.jamboard.google_drive_icon.alt"),src:"https://static.figma.com/uploads/aab6d002fd18a545784da803e83ce7e38673a9b9.png"}),r.createElement("span",{className:"jamboard_importer_onboarding_modal--titleText--vLErd text--fontPos24Whyte--gYiFz text--_fontBaseWhyte--efAjI"},r.createElement(d.Tx,{id:"rcs.jamboard.bring_jamboard_into_figjam.title"})),r.createElement("span",{className:"jamboard_importer_onboarding_modal--descText--Nc68K text--fontPos14Whyte--pEiDq text--_fontBaseWhyte--efAjI"},r.createElement(d.Tx,{id:"rcs.jamboard.bring_jamboard_into_figjam.desc"}))),r.createElement("div",{className:Z.cx.flex.justifyStart.gap8.flexWrap.$},r.createElement(I.vd,{onClick:e.onConnect},r.createElement(d.Tx,{id:"rcs.jamboard.connect_google_drive"})),r.createElement(I.tM,{onClick:e.onLater},r.createElement(d.Tx,{id:"rcs.jamboard.later"})))),r.createElement("div",{className:"jamboard_importer_onboarding_modal--rightContainer--HThFZ"},r.createElement("img",{className:"jamboard_importer_onboarding_modal--image--s7coB",src:"https://static.figma.com/uploads/87349c3f414f211c94ca3846c952dc7c50fc9aef.png",alt:(0,d.t)("rcs.jamboard.import_button_image.alt")}),r.createElement(Q.Jn,{className:"jamboard_importer_onboarding_modal--closeButton--BZ8hE",onClick:e.onDismiss,trackingProperties:{text:"dismiss"}}))))))}function en({onConnect:e,onDismiss:t}){return r.createElement(N.fu,{name:"jamboard_offer_onboarding_modal"},r.createElement(ee.Nb,{className:et.Tw,size:"fitContent",hide:t,disableClickOutsideToHide:!0,disableKeyboardEventPropagation:!0,tintedModalBackground:!0},r.createElement(J.i,null,r.createElement("div",{className:Z.cx.flex.flexRow.bRadius8.overflowHidden.$},r.createElement("div",{className:"jamboard_offer_onboarding_modal--leftContainer--8DRmI"},r.createElement("div",null,r.createElement("h1",{className:Z.cx.font24.fontBold.lh32.fontWhyte.mb8.$},r.createElement(d.Tx,{id:"rcs.jamboard.offer_onboarding_modal.title"})),r.createElement("p",{className:Z.cx.font16.lh24.fontWhyte.$},r.createElement(d.Tx,{id:"rcs.jamboard.offer_onboarding_modal.desc"}))),r.createElement("div",null,r.createElement("p",{className:Z.cx.font11.lh16.colorTextSecondary.mb16.$},r.createElement(d.Tx,{id:"rcs.jamboard.offer_onboarding_modal.fine_print",seeTermsLink:r.createElement(r.Fragment,null,r.createElement("br",null),r.createElement(N.L0,{target:"_blank",rel:"noopener",href:"/jamboard-terms",className:Z.cx.colorTextSecondary.underline.cursorDefault.$},r.createElement(d.Tx,{id:"rcs.jamboard.offer_onboarding_modal.see_terms"})))})),r.createElement(I.nD,{onClick:e,fullWidth:!0,className:"jamboard_offer_onboarding_modal--primaryButton--AYA3X basic_form--primaryBtnFigjam--sOysn basic_form--btn--FSrmp ellipsis--ellipsis--Tjyfa text--fontPos11--2LvXf text--_fontBase--QdLsd"},r.createElement(d.Tx,{id:"rcs.jamboard.offer_onboarding_modal.cta"})))),r.createElement("div",{className:"jamboard_offer_onboarding_modal--rightContainer---mUjS"},r.createElement("img",{className:"jamboard_offer_onboarding_modal--image--JFX2t",src:"https://static.figma.com/uploads/6e8598560656ad06fca5886009a00868f2b4882f",alt:(0,d.t)("rcs.jamboard.offer_onboarding_modal.graphic_alt_text"),width:562,height:820}),r.createElement(Q.Jn,{className:"jamboard_offer_onboarding_modal--closeButton--DArp0",onClick:t,trackingProperties:{text:"dismiss"}}))))))}let er="seen_figjam_jamboard_import_onboarding",el="signed_up_from_figjam_jamboard",eo=(0,u.r1)(er),ei=(0,u.r1)(el),es=(0,u.r1)("file_browser_onboarded");function ec({onManualDismiss:e,onClickPrimaryCta:t}){let a=(0,$.wA)(),n=(0,V.iZ)(),l=(0,s.dq)(),o=(0,X.R9)();(0,r.useEffect)(()=>{a(K.b({[er]:!0}))},[a]);let i=()=>{let e=null==n?void 0:n.drafts_folder_id;e&&a(H.gN(e)),a((0,q.to)({type:Y.Qn,data:{onImportCompleted:()=>t()}}))};return r.createElement("div",{"data-testid":"JamboardFileBrowserOnboarding"},(()=>{if(!l){if("loading"===o.queryStatus)return null;if(o.isOfferActive)return r.createElement(en,{onConnect:i,onDismiss:e})}return r.createElement(ea,{onConnect:i,onLater:t,onDismiss:e})})())}function em(){let e=(0,m.md)(eo),t=(0,m.md)(ei),a=(0,m.md)(es),n=(0,m.md)(F.zN),l=(0,_.e)({overlay:b.I5n,priority:p.N.OVERRIDING_MODAL},[e,t,a,n]);return(0,L.h)(()=>{l.show({canShow:(e,t,a,n)=>!e&&t&&a&&!n})}),r.createElement(S.M,{isShowing:l.isShowing},r.createElement(ec,{onManualDismiss:l.complete,onClickPrimaryCta:l.complete}))}var ed=a(921370),e_=a(194646),eu=a(254661),ep=a(69296);let eE="seen_figjam_mobile_signup_redirect_modal",eg="seen_general_mobile_signup_redirect_shelf",ef=(0,u.r1)(eE),eh=(0,u.r1)(eg);function eb(){let e=(0,m.md)(F.g5),t=(0,m.md)(ef),a=(0,m.md)(eh),n="recentsAndSharing"===(0,ed.z3)(),l=(0,_.e)({overlay:b.jQF,priority:p.N.HIGH_PRIORITY_MODAL},[e,t,a]),o=(0,e_.f)("signed_up_from_figjam_page");(0,r.useEffect)(()=>{n&&l.show({canShow:(e,t,a)=>!(!e||e.getTime()<Date.now()-6e4)&&(o?!t:!a)})},[l,o,n]);let i=o?ep.IG:ep.BO;return r.createElement(eu.h,{isShowing:l.isShowing,modalType:i.modalType,type:i.type,trackingContextName:i.trackingContextName,element:i.element,userFlagOnShow:o?eE:eg,onClickPrimaryCta:l.complete,onClose:l.complete,onManualDismiss:l.complete})}var ev=a(613064),ew=a(159849),eT=a(820657),ey=a(390380),ex=a(646300),eC=a(16168),eN=a(845377);let ek=(0,u.r1)("delayed_nux_questions_for_jamboard"),eS=(0,u.r1)("seen_jamboard_delayed_nux_questions");function eI({dismiss:e,next:t}){return r.createElement(eC.X,{testId:"DelayedNuxQuestionsReminderOverlay",trackingContextName:"File Browser Delayed NUX Questions Reminder Popup",emphasized:!0,isShowing:!0,position:g.Q.BOTTOM_RIGHT,title:r.createElement(d.Tx,{id:"rcs.delayed_nux_questions.reminder_header"}),description:r.createElement(d.Tx,{id:"rcs.delayed_nux_questions.reminder_body"}),primaryCta:{label:r.createElement(d.Tx,{id:"rcs.delayed_nux_questions.reminder_primary_button"}),ctaTrackingDescriptor:eT.c.CONTINUE,type:"button",onClick:t},onClose:e})}function eA({dismiss:e,next:t}){return r.createElement(S.M,{testId:"NuxQuestionsOverlay",isShowing:!0,userFlagOnShow:"seen_jamboard_delayed_nux_questions"},r.createElement(N.fu,{name:"File Browser Delayed NUX Questions Modal"},r.createElement(ee.Nb,{className:et.Tw,size:"fitContent",hide:e,disableClickOutsideToHide:!0,disableKeyboardEventPropagation:!0,tintedModalBackground:!0},r.createElement(J.i,null,r.createElement(Q.i0,{onClick:e}),r.createElement(eN.VL,{acceptTitle:ew.lQ,dismissModal:e,onClickPrimaryCta:t,forceRender:ew.lQ,shouldShowOnlyDelayedNuxQuestions:!0,isInFullscreenOverlay:!1})))))}var eO=((n=eO||{})[n.REMINDER=0]="REMINDER",n[n.NUX_QUESTIONS=1]="NUX_QUESTIONS",n);function eP(){let e=(0,$.wA)(),t=(0,m.md)(ek),a=(0,m.md)(eS),n=(0,m.md)(F.g5),l=(0,_.e)({overlay:b.n0G,priority:p.N.OVERRIDING_MODAL},[t,a,n]);(0,L.h)(()=>{l.show({canShow:(e,t,a)=>e&&!t&&!!a&&(0,ev.A)(a).add(24,"hour").isBefore((0,ev.A)())})});let o=[0,1],{currentStep:i,next:s}=(0,ey.A)({numSteps:o.length,onComplete:l.complete}),c=r.useCallback(()=>{e(K.b({seen_jamboard_delayed_nux_questions:!0})),l.complete()},[l,e]),d=o.map(e=>{switch(e){case 0:return r.createElement(eI,{key:e,dismiss:c,next:s});case 1:return r.createElement(eA,{key:e,dismiss:l.complete,next:s})}});return r.createElement(ex.U,{isShowing:l.isShowing,currentStep:i},...d)}var eR=a(216817),eD=a(507776),eM=a(682679),eL=a(581572),eF=a(974844),eB=a(531885),eU=a(170766),ej=a(574079),eG=a(983245),ez=a(129771),eW=a(507026);function e$(e){let t=e=>{e.stopPropagation()};return r.createElement("span",{className:"account_switching_onboarding--footerContainer--NtI0l"},r.createElement("span",{className:"account_switching_onboarding--steps--aCBzs"},r.createElement(d.Tx,{id:"rcs.account_switching.step_counter",step:e.step,totalSteps:e.totalSteps})),r.createElement(I.tM,{className:"account_switching_onboarding--pointerButton--7lP5N",onClick:a=>{t(a),e.onClick()},onMouseDown:t},e.step===e.totalSteps?r.createElement(d.Tx,{id:"rcs.account_switching.done"}):r.createElement(d.Tx,{id:"rcs.account_switching.next"})))}function eH(e){let t=(0,$.wA)();return r.createElement(A.NJ,{dismissModal:e.dismissModal,width:247,targetKey:ez.nT,alignPointerToLeft:!0,className:"account_switching_onboarding--accountSwitchingAddAccountViewPointerModal--mf5oH pointer_modal--pointerModalBlue--9Jjg8 pointer_modal--pointerModal--wrpFz"},r.createElement(d.Tx,{id:"rcs.account_switching.this_is_where_you_access_account_settings_add_or_remove_accounts_and_see_your_figma_profiles"}),r.createElement(e$,{step:e.step,onClick:()=>{t(eG.oB()),e.onClickPrimaryCta()},totalSteps:e.totalSteps}))}function eq(e){return r.createElement(A.NJ,{dismissModal:e.dismissModal,width:208,targetKey:eW.Ro,alignPointerToLeft:!0},r.createElement(d.Tx,{id:"rcs.account_switching.notifications_for_your_workspace_live_here"}),r.createElement(e$,{step:e.step,onClick:e.onClickPrimaryCta,totalSteps:e.totalSteps}))}var eK=a(194031),eV=a(22852),eX=a(304516);let eY="File Browser Onboarding -";function eQ(e){return r.createElement(eV.wz,null,r.createElement("div",{className:"file_browser_rcs_steps--takeTourModal--vuKR0 pointer_modal--pointerModalBlue--9Jjg8 pointer_modal--pointerModal--wrpFz"},r.createElement("h1",null,r.createElement(d.Tx,{id:"rcs.take_tour.take_a_quick_tour_of_the_file_browser"})),r.createElement(Q.Jn,{className:"file_browser_rcs_steps--closeButtonExtraSpacing--ijSe9",onClick:e.dismissModal,svg:eX.A}),r.createElement("p",null,r.createElement(d.Tx,{id:"rcs.take_tour.see_how_to_create_files_learn_about_drafts_and_teams_ways_to_access_community_and_more"})),r.createElement("div",{className:"file_browser_rcs_steps--footerButtons--7ivv7"},r.createElement(N.$z,{className:"file_browser_rcs_steps--dismissButton--6xjcV",onClick:e.dismissModal},r.createElement(d.Tx,{id:"rcs.take_tour.no_thanks"})),r.createElement(I.vd,{className:"file_browser_rcs_steps--nextButton--TfaGE",onClick:e.onClickPrimaryCta},r.createElement(d.Tx,{id:"rcs.take_tour.let_s_go"})))))}function eJ(e){return r.createElement(eu.h,{testId:"TakeTourOfFileBrowserOverlay",modalType:eK.q3.SELF_CONTAINED,trackingContextName:`${eY} Take tour`,element:eQ,isShowing:e.isShowing,onClickPrimaryCta:e.onClickPrimaryCta,onClose:e.onClose,onManualDismiss:e.onManualDismiss})}function eZ(e){return r.createElement(eu.h,{testId:"AccountSettingsOverlay",modalType:eK.q3.SELF_CONTAINED,trackingContextName:`${eY} Account settings`,element:e=>r.createElement(eH,{dismissModal:e.dismissModal,onClickPrimaryCta:e.onClickPrimaryCta,forceRender:e.forceRender,step:5,totalSteps:6}),isShowing:e.isShowing,onClickPrimaryCta:e.onClickPrimaryCta,onClose:e.onClose,onManualDismiss:e.onManualDismiss})}var e0=a(585219),e1=a(683579),e4=a(221033);function e2(e){let t=(0,$.wA)(),a=(0,$.d4)(e=>{var t;return null==(t=e.user)?void 0:t.drafts_folder_id});return r.useEffect(()=>(a&&t(eG.j7({type:(0,e1.p_)(a)})),()=>{t(eG.oB())}),[t,a]),r.createElement(A.NJ,{dismissModal:e.dismissModal,width:228,targetKey:e4.lZ,topPadding:12,alignPointerToLeft:!0,onMouseDown:e0.dG},(0,l.kc)().figjam_3p_file_importer?r.createElement(d.Tx,{id:"rcs.create_files.create_files_from_scratch_import_designs_from_sketch_or_jamboard_or_start_from_templates"}):r.createElement(d.Tx,{id:"rcs.create_files.create_files_from_scratch_import_designs_from_sketch_or_start_from_templates"}),r.createElement(e$,{onClick:e.onClickPrimaryCta,step:1,totalSteps:6}))}function e8(e){return r.createElement(eu.h,{testId:"CreateFilesOverlay",modalType:eK.q3.SELF_CONTAINED,trackingContextName:`${eY} Create files`,element:e2,isShowing:e.isShowing,onClickPrimaryCta:e.onClickPrimaryCta,onClose:e.onClose,onManualDismiss:e.onManualDismiss})}var e3=a(390726);function e6(e){return r.createElement(A.NJ,{dismissModal:e.dismissModal,width:228,targetKey:e3.u,topPadding:8,alignPointerToLeft:!0},r.createElement(d.Tx,{id:"rcs.create_files.files_are_great_for_collaboration_while_your_drafts_are_more_personal_if_you_share_them_they_re_view_only"}),r.createElement(e$,{onClick:e.onClickPrimaryCta,step:2,totalSteps:6}))}function e5(e){return r.createElement(eu.h,{testId:"DraftsOverlay",modalType:eK.q3.SELF_CONTAINED,trackingContextName:`${eY} Drafts`,element:e6,isShowing:e.isShowing,onClickPrimaryCta:e.onClickPrimaryCta,onClose:e.onClose,onManualDismiss:e.onManualDismiss})}var e7=a(834067),e9=a(459621),te=a(149197);function tt(e){let t=(0,$.wA)(),a=(0,m.md)(e9.A);return r.createElement(A.NJ,{dismissModal:e.dismissModal,width:247,targetKey:e7.vM,alignPointerToLeft:!0,topPadding:12},r.createElement(d.Tx,{id:"rcs.account_switching.explore_files_plugins_and_widgets_created_by_the_figma_community"}),r.createElement(e$,{onClick:()=>{a&&t(eG.j7({type:te.B,data:{targetRect:a}})),e.onClickPrimaryCta()},step:4,totalSteps:6}))}function ta(e){return r.createElement(eu.h,{testId:"ExploreCommunityOverlay",modalType:eK.q3.SELF_CONTAINED,trackingContextName:`${eY} Community Hub`,element:tt,isShowing:e.isShowing,onClickPrimaryCta:e.onClickPrimaryCta,onClose:e.onClose,onManualDismiss:e.onManualDismiss})}function tn(){return r.createElement("div",null,r.createElement(eV.Gv,{src:"https://static.figma.com/app/onboarding/page-4.gif"}),r.createElement(eV.ak,null,r.createElement(d.Tx,{id:"rcs.import.one_of_the_coolest_things_about_figma_is_that_you_don_t_have_to_start_from_scratch_to_get_to_work"}),r.createElement("br",null),r.createElement("br",null),r.createElement(d.Tx,{id:"rcs.import.just_drag_your_sketch_files_onto_the_browser_and_we_ll_convert_them_to_figma_for_you"})))}function tr(e){return r.createElement(eu.h,{testId:"ImportOverlay",modalType:eK.q3.DRAGGABLE,title:()=>(0,d.t)("rcs.import.import_sketch_files"),trackingContextName:"Import Sketch File Onboarding Modal",element:tn,onboardingKey:"import",userFlagOnShow:"import_file_onboarded",currentStepIndex:e.currentStepIndex,totalNumSteps:e.totalNumSteps,isShowing:e.isShowing,onClickPrimaryCta:e.onClickPrimaryCta,onClose:e.onClose,onManualDismiss:e.onManualDismiss})}function tl(e){return r.createElement(eu.h,{testId:"NotificationsOverlay",modalType:eK.q3.SELF_CONTAINED,trackingContextName:`${eY} Notifications`,element:e=>r.createElement(eq,{dismissModal:e.dismissModal,onClickPrimaryCta:e.onClickPrimaryCta,forceRender:e.forceRender,step:6,totalSteps:6}),isShowing:e.isShowing,onClickPrimaryCta:e.onClickPrimaryCta,onClose:e.onClose,onManualDismiss:e.onManualDismiss})}var to=a(172169),ti=a(965528),ts=a(487337);a(472931);var tc=a(731939),tm=a(428748);function td(e){return r.createElement(eu.h,{testId:"OpenFileOverlay",modalType:eK.q3.DRAGGABLE,title:()=>(0,d.t)("rcs.open_file.edit_a_file"),ctaText:r.createElement(d.Tx,{id:"rcs.open_file.create_file"}),trackingContextName:"Edit a File Onboarding Modal",element:()=>r.createElement(eV.ak,null,r.createElement(d.Tx,{id:"rcs.open_file.open_a_file_to_learn_more_about_figma_s_powerful_editing_features"})),currentStepIndex:e.currentStepIndex,totalNumSteps:e.totalNumSteps,isShowing:e.isShowing,onClickPrimaryCta:()=>{e.onClickPrimaryCta(),function(){let e=to.D.getState();to.D.dispatch(ti.uM((0,ts.xA)(e,tm.ai.SAME_TAB)))}()},onClose:e.onClose,onManualDismiss:e.onManualDismiss})}var t_=a(108253),tu=a(704987),tp=a(972045);function tE(){let e=(0,$.d4)(e=>e.currentUserOrgId),t=(0,$.d4)(e=>e.orgById),a=e&&t[e],n=(0,tu.c4)(e).data??!1,l=r.createElement(d.Tx,{id:"rcs.org_welcome.click_on_the_organization_button_on_the_left_to_find_teams_to_join"});return(0,t_.D6)(e)?l=n?r.createElement(d.Tx,{id:"rcs.bigma_org_welcome.click_the_all_workspaces_button_on_the_left_to_find_teams_to_join"}):r.createElement(d.Tx,{id:"rcs.org_welcome.click_the_all_teams_button_on_the_left_to_find_teams_to_join"}):a&&(l=r.createElement(d.Tx,{id:"rcs.org_welcome.click_the_current_org_name_span_button_on_the_left_to_find_teams_to_join",orgName:r.createElement("span",{className:tp.Cr},a.name)})),r.createElement("div",null,r.createElement(eV.Gv,{src:"https://static.figma.com/uploads/6f3307f82aeddf6f609eaf97ee9e66e788d485c1",width:215,margin:"14px 0px 14px 27px"}),r.createElement(eV.ak,null,r.createElement("p",null,r.createElement(d.Tx,{id:"rcs.org_welcome.figma_organization_connects_files_projects_libraries_and_teams_securely_across_your_company"})),l))}function tg(e){return r.createElement(eu.h,{testId:"OrgWelcomeOverlay",modalType:eK.q3.DRAGGABLE,title:()=>(0,d.t)("rcs.org_welcome.welcome_to_your_figma_organization"),trackingContextName:"Orgs Welcome Onboarding Modal",highlightOnlyKey:"new-team-icon",element:tE,width:376,userFlagOnShow:"orgs_onboarded",currentStepIndex:e.currentStepIndex,totalNumSteps:e.totalNumSteps,isShowing:e.isShowing,onClickPrimaryCta:e.onClickPrimaryCta,onClose:e.onClose,onManualDismiss:e.onManualDismiss})}var tf=a(750024),th=a(266723);function tb(e){let t=(0,$.wA)(),a=(0,m.md)(th.A);return r.useEffect(()=>{a&&t(eG.j7({type:tf.ER,data:{targetRect:a}}))},[t,a]),r.createElement(A.NJ,{dismissModal:e.dismissModal,width:228,targetKey:tf.KC,topPadding:8,alignPointerToLeft:!0,className:"plan_spaces_overlay--planSpacesPointerModal--7b5Xd pointer_modal--pointerModalBlue--9Jjg8 pointer_modal--pointerModal--wrpFz"},r.createElement(d.Tx,{id:"rcs.plan_spaces.file_browser_onboarding_step.seat_rename"}),r.createElement(e$,{onClick:()=>{t(eG.oB()),e.onClickPrimaryCta()},step:3,totalSteps:6}))}function tv(e){return r.createElement(eu.h,{testId:"PlanSpacesOverlay",modalType:eK.q3.SELF_CONTAINED,trackingContextName:`${eY} Plan Spaces`,element:tb,isShowing:e.isShowing,onClickPrimaryCta:e.onClickPrimaryCta,onClose:e.onClose,onManualDismiss:e.onManualDismiss})}var tw=a(206936);let tT="TEAM_FILES_ONBOARDING_KEY",ty="create-team-link";function tx(e){let t=(0,$.d4)(e=>(0,tw._L)(e.user,e.roles,e.teams).length>0);return r.createElement(A.NJ,{dismissModal:e.dismissModal,width:228,targetKey:t?tT:ty,topPadding:t?8:void 0,alignPointerToLeft:!0},t?r.createElement(d.Tx,{id:"rcs.team_files.files_in_teams_are_accessible_by_team_members_and_shareable_with_other_editors.seat_rename"}):r.createElement(d.Tx,{id:"rcs.team_files.create_a_team_to_co_edit_files_with_your_teammates"}),r.createElement(e$,{onClick:e.onClickPrimaryCta,step:3,totalSteps:6}))}function tC(e){return r.createElement(eu.h,{testId:"TeamFilesOverlay",modalType:eK.q3.SELF_CONTAINED,trackingContextName:`${eY} Team files`,element:tx,isShowing:e.isShowing,onClickPrimaryCta:e.onClickPrimaryCta,onClose:e.onClose,onManualDismiss:e.onManualDismiss})}function tN(e){return r.createElement(r.Fragment,null,r.createElement(eV.ak,null,r.createElement(d.Tx,{id:"rcs.welcome_step.welcome_to_figma"}),r.createElement("br",null),r.createElement("br",null),r.createElement(d.Tx,{id:"rcs.welcome_step.we_re_different_from_other_design_tools_in_some_really_special_ways_so_we_d_like_to_take_you_through_them"})),r.createElement(eV.iy,null,r.createElement(I.vd,{onClick:e.onClickPrimaryCta},r.createElement(d.Tx,{id:"rcs.welcome_step_view.next"}))))}function tk(e){let t=(0,$.d4)(e=>{var t;return null==(t=e.user)?void 0:t.name}),a=t?(0,d.t)("rcs.welcome_step.welcome_user_name",{userFirstName:t}):(0,d.t)("rcs.welcome_step.welcome");return r.createElement(eu.h,{testId:"WelcomeOnboardingOverlay",modalType:eK.q3.DRAGGABLE,title:()=>a,trackingContextName:"Welcome Onboarding Modal",element:tN,userFlagOnShow:"welcome_onboarded",disableFooter:!0,currentStepIndex:e.currentStepIndex,totalNumSteps:e.totalNumSteps,isShowing:e.isShowing,onClickPrimaryCta:e.onClickPrimaryCta,onClose:e.onClose,onManualDismiss:e.onManualDismiss})}let tS=(0,u.r1)("file_browser_onboarded"),tI=["seen_sidebar_workspace_onboarding","seen_search_workspace_onboarding","seen_libraries_workspace_onboarding"],tA=e=>["file_browser_onboarded","community_hub_onboarded","variants_onboarded","account_switcher_onboarded","seen_account_profile_switcher_onboarding","seen_shared_files_onboarding",...e?tI:[]],tO=()=>{let e=(0,eD.DN)();try{return!!e.get(eM.zl)}catch(e){}return!1};function tP(){let e=(0,$.wA)(),t=(0,m.md)(u.qG),a=(0,m.md)(F.g5),n=(0,m.md)(tS),o=(0,eR.Z)(n),i=(0,m.md)(F.d2),s=(0,m.md)(F.NT),c=(0,$.d4)(e=>e.currentUserOrgId),d=(0,eL.UC)(c),E=(0,m.md)(d),g=(0,_.e)({overlay:b.Ob5,priority:p.N.OVERRIDING_MODAL},[t,a,i,E,s]),[f,h]=(0,r.useState)([]),[v,w]=(0,r.useState)([]),T=(0,r.useCallback)(e=>{g.show({canShow:(t,a,n,r,o)=>{let i=(function({userFlags:e,emailValidatedAt:t,userSpace:a,isReset:n,jobTitle:r}){let o=a===eU.qo.ORG,i=(0,eF.of)(e),s=(0,l.kc)().figjam_3p_file_importer&&(0,eF.mW)(e,el)&&!(0,eF.mW)(e,er),c=(0,l.kc)().ps_benchmark,m=(0,eF.mW)(e,"not_gen_0"),d=(0,ej.d2)({emailValidatedAt:t,jobTitle:r}),_=(0,eF.mW)(e,"welcome_onboarded"),u=(0,eF.mW)(e,"file_browser_onboarded"),p=[tg,tr,(0,eB._q)(e)?null:td],E=[e8,e5,c?tv:tC,ta,eZ,tl],g=s?[ec]:[eJ,...E];return n||m||o||!d?!n&&(o||m)&&u?[]:o?p:i?g:m?tO()||_?[eJ,...E]:[tk,...E]:tO()||n?g:[ej.vm,...g]:u?[]:g})({userFlags:t,emailValidatedAt:a,userSpace:n,isReset:e,jobTitle:o}).filter(e=>!!e);return!!i.length&&(h(i),w(tA(n===eU.qo.ORG&&r)),!0)}})},[g]);(0,L.h)(()=>{T(!1)}),(0,k.E)(g.uniqueId,"Reset Onboarding",()=>T(!0)),r.useEffect(()=>{g.isShowing&&(null==o?void 0:o.status)==="loaded"&&(null==o?void 0:o.data)===!1&&(null==n?void 0:n.status)==="loaded"&&(null==n?void 0:n.data)===!0&&g.complete()},[g,n,o]);let y=r.useCallback(()=>{let t={};for(let e of v)t[e]=!0;e(K.b(t)),g.complete()},[e,g,v]);return g.isShowing&&0!==f.length?r.createElement(tR,{steps:f,onComplete:y}):null}function tR(e){let{steps:t,onComplete:a}=e,n=(0,ey.A)({numSteps:t.length,onComplete:a});return r.createElement(ex.U,{currentStep:n.currentStep,isShowing:!0,children:r.useMemo(()=>t.map((e,l)=>r.createElement(e,{onClickPrimaryCta:n.next,onClose:ew.lQ,onManualDismiss:a,isShowing:!0,currentStepIndex:l,totalNumSteps:t.length})),[t,n,a])})}var tD=a(33276),tM=a(204932),tL=a(976748);function tF(){let e=(0,$.d4)(e=>e.currentUserOrgId),t=(0,m.md)(tM.Z),a=(0,tL.RG)(),n=r.createElement(d.Tx,{id:"rcs.org_welcome.click_on_the_organization_button_on_the_left_to_find_teams_to_join"});return(0,t_.D6)(e)?n=a?r.createElement(d.Tx,{id:"rcs.bigma_org_welcome.click_the_all_workspaces_button_on_the_left_to_find_teams_to_join"}):r.createElement(d.Tx,{id:"rcs.org_welcome.click_the_all_teams_button_on_the_left_to_find_teams_to_join"}):t&&(n=r.createElement(d.Tx,{id:"rcs.org_welcome.click_the_current_org_name_span_button_on_the_left_to_find_teams_to_join",orgName:r.createElement("span",{className:Z.cx.fontBold.$},t.name)})),r.createElement(r.Fragment,null,r.createElement("p",{className:Z.cx.pb8.$},r.createElement(d.Tx,{id:"rcs.org_welcome.figma_organization_connects_files_projects_libraries_and_teams_securely_across_your_company"})),n)}let tB="orgs_onboarded",tU=(0,u.r1)(tB);function tj(){let e=(0,m.md)(F.d2),t=(0,m.md)(tU),a=(0,_.e)({overlay:b.X5_,priority:p.N.OVERRIDING_MODAL},[e,t]);return(0,L.h)(()=>{a.show({canShow:(e,t)=>e===eU.qo.ORG&&!t})}),r.createElement(eC.X,{width:350,isShowing:a.isShowing,title:r.createElement(d.Tx,{id:"rcs.org_welcome.welcome_to_your_figma_organization"}),description:r.createElement(tF,null),media:r.createElement(tD.y,{src:"https://static.figma.com/uploads/87621fc5a99a1d24beb515288cf764febb8f01e9.png",alt:"A screenshot of the teams list with cursor hovering over the 'Request to Join' link",aspectRatio:1.75}),primaryCta:{label:r.createElement(d.Tx,{id:"rcs.rcs_shared.done"}),type:"button",onClick:a.complete,ctaTrackingDescriptor:eT.c.DONE},trackingContextName:"Orgs Welcome Onboarding Modal",userFlagOnShow:tB,position:g.Q.CENTER,onClose:a.complete})}var tG=a(921436),tz=a(785341),tW=a(143551),t$=a(937749),tH=a(114687),tq=a(38580),tK=a(83212),tV=a(533965);let tX=(0,m.Iz)(({orgId:e,eventType:t})=>(0,tH.Z1)((0,tV._ob)({orgId:e,eventType:t}),e=>{var t,a;return!!(null==(a=null==(t=e.currentUser.baseOrgUser)?void 0:t.orgUserFlag)?void 0:a.id)})),tY=(0,m.Iz)(e=>(0,tq.eU)(t=>{let a=t(eL._s);return a?t(tX({orgId:a,eventType:e})):tK.Qw.disabled()}));var tQ=a(871007),tJ=a(629019),tZ=a.n(tJ),t0=a(169614),t1=a(821721),t4=a(467066),t2=a(704675),t8=a(521388);let t3="workspace_selector";function t6({workspaces:e,onModalClose:t}){let[a,n]=r.useState(null),l=(0,$.wA)(),o=(0,$.d4)(({selectedView:e})=>e),i=(0,s.sZ)();if(!i)throw Error("org is not defined");("fullscreen"===o.view||"prototype"===o.view)&&t();let c=r.createElement("div",{className:Z.cx.flexShrink0.flex.flexColumn.itemsCenter.gap8.$},r.createElement("img",{className:Z.cx.w100.h100.$,src:"https://static.figma.com/uploads/b907892c6132bbea2173d8e95c096187288f54f9",alt:"",width:100,height:100}),r.createElement("span",{className:Z.cx.textHeadingLarge.colorText.$},r.createElement(d.Tx,{id:"onboarding.workspace_step.title"})),r.createElement("span",{className:Z.cx.textBodyLarge.colorText.$},r.createElement("div",{className:"workspace_selector--descriptionContainer--Poqc8"},r.createElement(d.Tx,{id:"onboarding.workspace_step.subtitle_v2",orgName:i.name,tipText:r.createElement("span",{className:Z.cx.textBodyLargeStrong.$},r.createElement(d.Tx,{id:"onboarding.workspace_step.tip"}))})))),m=r.createElement(t4.P,{className:Z.cx.flexShrink1.minH200.mt24.$,innerClassName:Z.cx.flex.flexColumn.gap12.p16.pt2.$},e.map(e=>r.createElement(t5,{key:e.id,workspace:e,onClick:()=>n(e),isSelected:(null==a?void 0:a.id)===e.id}))),_=r.createElement("div",{className:Z.cx.flex.justifyEnd.p16.colorBorder.bSolid.bt1.$},r.createElement("div",{className:Z.cx.flex.gap10.$},r.createElement(t1.tM,{onClick:t,trackingProperties:{trackingDescriptor:eT.c.SKIP}},r.createElement(d.Tx,{id:"onboarding.skip"})),r.createElement(t1.vd,{onClick:()=>{a&&(l(t2.x({workspace:a})),t())},disabled:null===a,trackingProperties:{trackingDescriptor:eT.c.JOIN}},r.createElement(d.Tx,{id:"onboarding.workspace_step.join"}))));return r.createElement(N.fu,{name:t3},r.createElement(ee.Nb,{className:Z.cx.relative.$,size:680,height:576,padding:0,tintedModalBackground:!0,hide:e=>{(0,t0.sx)("Modal Close",{source:e,trackingContext:t3}),t()},disableClickOutsideToHide:!0},r.createElement("div",{className:Z.cx.flex.flexColumn.hFull.$},r.createElement(t4.P,{className:Z.cx.flexGrow1.$,innerClassName:Z.cx.borderBox.hFull.flex.flexColumn.itemsCenter.alignCenter.px32.pt32.$},c,m),_),r.createElement(Q.Jn,{className:Z.cx.absolute.top0.right0.mt8.mr8.$,onClick:t,trackingProperties:{trackingDescriptor:eT.c.CLOSE_BUTTON}})))}function t5({workspace:e,isSelected:t,onClick:a}){return r.createElement("button",{className:tZ()("workspace_selector--workspaceOptionButton--9k-VL",{"workspace_selector--workspaceOptionButtonSelected--awRzJ":t}),onClick:a,type:"button"},r.createElement(t8.z6,{entity:e,size:32}),r.createElement("span",{className:Z.cx.flexGrow1.truncate.textBodyLarge.colorText.ml16.$},e.name),r.createElement("div",{className:tZ()("workspace_selector--radioButton--uNZM1",{"workspace_selector--radioButtonSelected--dzhgt":t})}))}let t7="workspace_selector_seen",t9=tY(t7),ae=(0,m.Iz)(e=>(0,tH.Z1)((0,tV.saW)({orgId:e}),e=>{var t;if(!(null==(t=e.org)?void 0:t.workspaces))return null;let a=e.org.workspaces.filter(e=>e.canView);return(0,tG.KQ)(a,"name"),a}));function at(){let e=(0,s.dq)(),t=(0,t$.a9)(),a=(0,m.md)(F.d2),n=(0,m.md)(eL.uA),l=(0,tu.SJ)(e),o=(0,m.md)(ae(e)),i=(0,m.md)(t9),{show:c,complete:d,isShowing:u}=(0,_.e)({overlay:b.USq,priority:p.N.HIGH_PRIORITY_MODAL},[a,n,l,o,i]);return((0,L.h)(()=>{c({canShow:(e,t,a,n,r)=>e===eU.qo.ORG&&!!t&&!a&&!!n&&0!==n.length&&!r,onShow:()=>{tQ.G.postOrgUserFlags({orgUserId:t.id,flags:{[t7]:!0}})}})}),u&&"loaded"===o.status)?o.data?r.createElement(S.M,{isShowing:!0,testId:"org-select-workspace-overlay"},r.createElement(t6,{onModalClose:d,workspaces:o.data})):((0,tz.$D)(tW.e.SCALE,Error("workspaceSelectorOptionsAtomQuery.data not present after OrgSelectWorkspace overlay is showing")),d(),null):null}var aa=a(705407),an=a(22583),ar=a(422710),al=a(277398),ao=a(703473),ai=a(884096);let as=r.memo(({hasOrgPlan:e,vidSrc:t,hideModal:a})=>r.createElement(ac,{onClickPrimaryCTA:a,titleText:r.createElement(ai.E,{i18nId:e?"rcs.plan_spaces.a_simpler_switcher_menu":"rcs.plan_spaces.a_new_space_for_teams",fontSize:20,fontWeight:"medium"}),descriptionText:r.createElement(ai.E,{i18nId:e?"rcs.plan_spaces.a_simpler_switcher_menu.description":"rcs.plan_spaces.a_new_space_for_teams.description",fontSize:14}),vidSrc:t})),ac=r.memo(({titleText:e,descriptionText:t,onClickPrimaryCTA:a,vidSrc:n})=>{let l=(0,r.useCallback)(()=>{ao.Ay.unsafeRedirect("https://help.figma.com/hc/articles/14381406380183","_blank")},[]);return r.createElement("div",{className:"plan_spaces_launch_modal_components--container--NK3aa"},r.createElement("div",{className:"plan_spaces_launch_modal_components--textContainer--nwyLP"},r.createElement("p",{className:"plan_spaces_launch_modal_components--titleProperties--L9MV7"},e),r.createElement("div",{className:Z.cx.pb16.$},t),r.createElement("div",null,r.createElement(ai.E,{i18nId:"rcs.plan_spaces.user_help_migrating_drafts_awareness",fontSize:14,color:"secondary"})),r.createElement("div",{className:"plan_spaces_launch_modal_components--ctaRow--cJhI7"},r.createElement(I.nD,{onClick:a},r.createElement(ai.E,{i18nId:"rcs.plan_spaces.got_it",fontSize:13})),r.createElement(I.$9,{onClick:l},r.createElement(ai.E,{i18nId:"rcs.plan_spaces.learn_more",fontSize:13})))),r.createElement(eV.GV,{width:364,src:n}))}),am="seen_plan_spaces_launch_modal",ad=(0,u.r1)(am),a_=new Date("2024-02-05T20:00:00.000Z").getTime();function au(){return r.createElement(ap,null)}function ap(){let e=(0,m.md)(ad),t=(0,$.d4)(e=>e.plans),a=(0,$.d4)(e=>e.teams),n=(0,$.d4)(e=>e.user),o=(0,$.d4)(e=>e.userFlags.personal_draft_migration_scheduled),i=t.filter(e=>e.plan_type===al.O.TEAM).map(e=>a[e.plan_id]).filter(e=>!!e),s=(0,$.wA)(),c=(0,an.DP)(),d=(0,m.md)(F.mp),u=t.some(e=>e.plan_type===al.O.ORG),E=function(e,t){let a={darkMode:{org:"https://static.figma.com/uploads/35339bd6f100fd7c2dca24546e4ded3f7397d137",teams:"https://static.figma.com/uploads/055e7f20c52382bdb565fbe89f04d9673952663a"},lightMode:{org:"https://static.figma.com/uploads/d26daa4a5677426d2b01aa43677bf4c65f50b0bd",teams:"https://static.figma.com/uploads/1c1ca856971dff41eff57240862cf81437cb4dce"}},n=e?"darkMode":"lightMode";return t?a[n].org:a[n].teams}("dark"===c,u),g=1===i.length&&i[0].starter_team&&!u,f=!!(0,l.kc)().ps_benchmark,h=!!(0,l.kc)().ps_personal_draft_migration&&f&&!o&&(g||(0,ar.GU)(n)),{show:v,isShowing:w,complete:T}=(0,_.e)({overlay:b.sqw,priority:p.N.DEFAULT_MODAL+1},[e,d]);(0,L.h)(()=>{v({canShow:(e,t)=>!e&&f&&null!=t&&t.getTime()<=a_})});let y=!!t&&t.length>0;(0,r.useEffect)(()=>{h&&y&&s(aa.FY())},[s,h,y]);let x=(0,r.useCallback)(e=>r.createElement(as,{hasOrgPlan:u,vidSrc:E,hideModal:e.onClickPrimaryCta}),[u,E]);return t.length?r.createElement(eu.h,{isShowing:w,element:x,modalType:eK.q3.FEATURE_UPDATE,trackingContextName:"plan_spaces_launch_modal",userFlagOnShow:am,onClose:T,onClickPrimaryCta:T,onManualDismiss:T,disableClickOutsideToHide:!0,closeButtonStyle:eK.M_.ON_LIGHT}):null}var aE=a(456804);let ag="seen_plan_spaces_new_starter_team_modal",af=(0,u.r1)(ag),ah=(0,u.r1)("has_planless_user_backfilled_team");function ab(){let e=!!(0,l.kc)().ps_benchmark,t=(0,m.md)(af),a=(0,m.md)(ah),n=(0,_.e)({overlay:b.Duq,priority:p.N.DEFAULT_MODAL},[t,a]);return(0,L.h)(()=>{n.show({canShow:(t,a)=>!t&&!e&&a})}),r.createElement(E.rq,{isShowing:n.isShowing,userFlagOnShow:ag,onClose:n.complete,arrowPosition:aE.F_.LEFT_TITLE,targetKey:tT,title:r.createElement(d.Tx,{id:"rcs.plan_spaces_new_starter_team.title"}),description:r.createElement("p",null,r.createElement(d.Tx,{id:"rcs.plan_spaces_new_starter_team.text"})),emphasized:!0,testId:"PlanSpacesNewStarterTeamOverlay",trackingContextName:"plan_spaces_new_starter_team_modal"})}var av=a(599701);let aw="saw_recreated_starter_team_onboarding",aT=(0,u.r1)(aw),ay=(0,u.r1)("had_recreated_starter_team");function ax(){let e=!!(0,l.kc)().ps_benchmark,t=(0,m.md)(aT),a=(0,m.md)(ay),{show:n,isShowing:o,complete:i}=(0,_.e)({overlay:b.yjU,priority:p.N.DEFAULT_MODAL},[t,a]);return(0,L.h)(()=>{n({canShow:(t,a)=>!t&&e&&a})}),r.createElement(E.rq,{isShowing:o,userFlagOnShow:aw,onClose:i,arrowPosition:aE.F_.LEFT_TITLE,targetKey:av.U,title:r.createElement(d.Tx,{id:"rcs.plan_spaces_new_starter_team.title"}),description:r.createElement("p",null,r.createElement(d.Tx,{id:"rcs.plan_spaces_new_starter_team.text"})),emphasized:!0,testId:"PlanSpacesRecreatedStarterTeamOverlay",trackingContextName:"plan_spaces_recreated_starter_team_modal"})}var aC=a(1705),aN=a(119560),ak=a(664269),aS=a(186618),aI=a(57901);let aA="seen_pro_onboarding_team_member_welcome_modal",aO=(0,u.r1)(aA);function aP(){let e=(0,tw.ol)();return e&&e.pro_team&&ak.S.isRecentlyUpgraded(e)?r.createElement(aR,{teamId:e.id}):null}function aR({teamId:e}){let t=(0,V.iZ)(),a=(0,m.md)(aO),n=(0,$.d4)(e=>e.userTeamFlags),o=(0,aC.Rs)(tV.kQI,{id:e}),s=(0,ed._6)(),c=(0,i.kO)(),{show:u,isShowing:E,complete:g}=(0,_.e)({overlay:b.syA,priority:p.N.DEFAULT_MODAL,experiment:{check:c,predicate:e=>e,postCheck:e=>!e}},[a,o]),f=(0,$.d4)(e=>!!e.modalShown),h=(0,$.wA)();if((0,L.h)(()=>{var t;f||null!=(t=n[e])&&t[aI.UA]||u({canShow:(e,t)=>{var a;return!!(null==(a=t.team)?void 0:a.hasPermission)}})}),!E||!t)return null;let v=r.createElement(r.Fragment,null,r.createElement(d.Tx,{id:"pro_onboaridng.you_ve_been_upgraded_to_a_professional_plan"}),r.createElement(aI.L0,null)),w=()=>{h(aN.bE({all_team_flags:[{team_id:e,flags:{[aI.UA]:!0}}]})),g()},T=(0,l.kc)().ps_benchmark;return r.createElement(aS._l,{isShowing:E,userFlagOnShow:aA,title:r.createElement(aI._,{user:t}),description:v,media:r.createElement(aI.fS,null),primaryCta:{type:"button",label:r.createElement(ai.E,{i18nId:"pro_onboarding.get_started",fontSize:13}),ctaTrackingDescriptor:eT.c.GET_STARTED,onClick:()=>{if(w(),"team"!==s.view||s.teamId!==e){if(T){let a={userId:t.id,teamId:e,orgId:null};h(H._l({workspace:a,view:{view:"allProjects"}}))}else h(eG.$T({view:"team",teamId:e}))}}},trackingContextName:"Pro Onboarding Team Member Welcome Modal",trackingProperties:ak.S.getTrackingProperties(e),onClose:w,closeButtonColor:"light"})}var aD=a(669480),aM=a(677029),aL=a(352604),aF=a(162122),aB=a(820746);function aU({title:e,leftComponent:t,isExpanded:a,onClick:n,children:l}){let[o,i]=(0,r.useState)(a??!1);return(0,r.useEffect)(()=>{void 0!==a&&i(a)},[a]),r.createElement(aF.Y,{verticalAlignItems:"start",width:"100%",height:"hug-contents"},t,r.createElement(aF.Y,{direction:"vertical"},r.createElement("div",{tabIndex:0,className:Z.cx.wFull.$,role:"button",onClick:()=>{n&&n(o),i(e=>!e)}},r.createElement(aF.Y,{horizontalAlignItems:"space-between",verticalAlignItems:"center"},r.createElement("div",{className:Z.cx.font14.fontMedium.$},e),r.createElement(aB.In,{icon:o?"chevron-up-32":"chevron-down-32"}))),o&&r.createElement("div",{className:Z.cx.font13.$},l)))}var aj=a(487644),aG=a(625475),az=a(477654),aW=a(566046),a$=a(784402),aH=a(492997),aq=a(721015),aK=a(577789);function aV(){let[e,t]=(0,r.useState)(),a=(0,r.useMemo)(()=>[{title:r.createElement(ai.E,{i18nId:"pro_trials_v3.downgrade_modal.feature_downgrade.consumption_limit.title",i18nParams:{maxNumOfFiles:aG.WW,maxNumOfProjects:aG.Wf}}),children:r.createElement(ai.E,{i18nId:"pro_trials_v3.downgrade_modal.feature_downgrade.consumption_limit.description"}),leftComponent:r.createElement(aF.Y,{width:"hug-contents",height:"hug-contents",padding:{top:8}},r.createElement(aj.B,{svg:aq.A,className:Z.cx.colorIconDanger.$}))},{title:r.createElement(ai.E,{i18nId:"pro_trials_v3.downgrade_modal.feature_downgrade.team_library.title"}),children:r.createElement(ai.E,{i18nId:"pro_trials_v3.downgrade_modal.feature_downgrade.team_library.description"}),leftComponent:r.createElement(aF.Y,{width:"hug-contents",height:"hug-contents",padding:{top:8}},r.createElement(aj.B,{svg:aK.A,className:Z.cx.colorIconDanger.$}))},{title:r.createElement(ai.E,{i18nId:"pro_trials_v3.downgrade_modal.feature_downgrade.other.title"}),children:r.createElement(ai.E,{i18nId:"pro_trials_v3.downgrade_modal.feature_downgrade.other.description"}),leftComponent:r.createElement(aF.Y,{width:"hug-contents",height:"hug-contents",padding:{top:8}},r.createElement(aj.B,{svg:aK.A,className:Z.cx.colorIconDanger.$}))}],[]);return r.createElement(aF.Y,{width:"100%",direction:"vertical",spacing:24,padding:{top:32}},a.map(({title:a,children:n,leftComponent:l},o)=>r.createElement(aF.Y,{key:o,height:"hug-contents",strokeColor:"default",strokeWidth:{left:0,top:0,right:0,bottom:1},padding:{bottom:24}},r.createElement(aU,{leftComponent:l,title:a,isExpanded:e===o,onClick:e=>{e?t(void 0):t(o)}},n))))}let aX=(0,aW.Ju)(function({teamId:e}){let t=(0,$.wA)(),a=(0,r.useCallback)(()=>{t(q.Ce())},[t]),n=(0,r.useCallback)(()=>{a(),t(aN.bE({all_team_flags:[{team_id:e,flags:{[aM.u_]:!1}}]}))},[t,a,e]);return r.createElement(a$.t,{trackingName:az.Mm,hideModal:a},r.createElement(aH.$,{titleText:r.createElement(ai.E,{i18nId:"pro_trials_v3.downgrade_modal.title",fontSize:24,fontWeight:"bold"}),descriptionText:r.createElement(ai.E,{color:"secondary",i18nId:"pro_trials_v3.downgrade_modal.description",fontSize:13}),middleContent:r.createElement(aV,null),ctaOnClick:a,ctaDisabled:!1,ctaText:r.createElement(ai.E,{i18nId:"pro_trials_v3.downgrade_modal.cta.text"}),textCtaOnClick:n,textCtaText:r.createElement(ai.E,{i18nId:"pro_trials_v3.downgrade_modal.text_cta.text"}),hideModal:a}))},"ProTrialDowngradeModal");var aY=a(302339),aQ=a(721612);function aJ(e){let{hideModal:t}=e,a=(0,$.wA)(),n=r.createElement(r.Fragment,null,r.createElement(ai.E,{i18nId:"pro_trials_v3.entry_modal_explanation",fontSize:13}),r.createElement(a4,null)),l=r.createElement(I.nD,{onClick:()=>{t(),a((0,q.to)({type:aY.m}))},trackingProperties:aM.ng.getTrackingProperties("Start professional trial")},r.createElement(ai.E,{i18nId:"pro_trials_v3.entry_modal_cta_text",fontSize:13}));return r.createElement(a1,{titleText:r.createElement(ai.E,{i18nId:"pro_trials_v3.entry_modal_title",fontSize:24,fontWeight:"bold"}),descriptionText:n,ctaButton:l,imgSrc:"https://static.figma.com/uploads/4323e87513cec17f5decef84ebf66c12c0d2ea59"})}function aZ(e){let{teamId:t,hideModal:a}=e,n=(0,$.wA)(),l=r.createElement(r.Fragment,null,r.createElement(ai.E,{i18nId:"pro_trials_v3.team_welcome_modal_explanation",fontSize:13}),r.createElement(a4,null)),o=r.createElement(I.nD,{onClick:()=>{a(),n(eG.$T({view:"team",teamId:t}))},trackingProperties:aM.ng.getTrackingProperties("Team welcome to Professional trial")},r.createElement(ai.E,{i18nId:"pro_trials_v3.team_welcome_modal_cta",fontSize:13}));return r.createElement(a1,{descriptionText:l,titleText:r.createElement(ai.E,{i18nId:"pro_trials_v3.team_welcome_modal_title",fontSize:24,fontWeight:"bold"}),imgSrc:"https://static.figma.com/uploads/4323e87513cec17f5decef84ebf66c12c0d2ea59",ctaButton:o})}function a0(e){let{hideModal:t,teamId:a}=e,n=(0,$.wA)(),l={view:"team",teamId:a},o=r.createElement(I.nD,{onClick:()=>{t(),n(aL.WX({teamId:a,selectedView:l}))},trackingProperties:aM.ng.getTrackingProperties("Upgrade from Pro trial expiry modal")},r.createElement(ai.E,{i18nId:"pro_trials_v3.expiry_modal_cta_text",fontSize:13})),i=r.createElement(I.$9,{onClick:()=>{n((0,q.to)({type:aX,data:{teamId:a}}))},trackingProperties:aM.ng.getTrackingProperties("Go back to Starter from Pro trial expiry modal")},r.createElement(ai.E,{i18nId:"pro_trials_v3.expiry_modal_secondary_cta_text",fontSize:13}));return r.createElement(a1,{titleText:r.createElement(ai.E,{i18nId:"pro_trials_v3.expiry_modal_title",fontSize:24,fontWeight:"bold"}),descriptionText:r.createElement(ai.E,{i18nId:"pro_trials_v3.expiry_modal_explanation",fontSize:13}),ctaButton:o,secondaryCtaButton:i,imgSrc:"https://static.figma.com/uploads/47a15784276e736195c9794a0c47c4d02c4c3ca4"})}function a1(e){let{titleText:t,descriptionText:a,ctaButton:n,imgSrc:l,secondaryCtaButton:o}=e;return r.createElement("div",{className:"pro_trials_v3_modal_components--container--4uK4B"},r.createElement("div",{className:"pro_trials_v3_modal_components--textContainer--jcK64"},r.createElement("p",null,t),r.createElement("div",null,a),r.createElement("div",{className:"pro_trials_v3_modal_components--ctaRow--ze0-l"},n,o)),r.createElement(eV.Gv,{width:313,src:l}))}function a4(){return r.createElement("div",{className:"pro_trials_v3_modal_components--proFeatureCheckBullets--gfFnO"},r.createElement(aQ.X,{bulletLabel:(0,d.t)("pro_trials_v3.entry_modal_bullet_pt_1")}),r.createElement(aQ.X,{bulletLabel:(0,d.t)("pro_trials_v3.entry_modal_bullet_pt_2")}),r.createElement(aQ.X,{bulletLabel:(0,d.t)("pro_trials_v3.entry_modal_bullet_pt_3")}))}function a2(){let e=(0,_.e)({overlay:b.MwQ,priority:p.N.DEFAULT_MODAL}),t=(0,$.wA)();return(0,L.h)(()=>{e.show()}),r.createElement(eu.h,{isShowing:e.isShowing,element:()=>r.createElement(aJ,{hideModal:e.complete}),modalType:eK.q3.FEATURE_UPDATE,trackingContextName:"pro_trials_entry_modal",trackingProperties:aM.ng.getTrackingProperties(),onClose:()=>{t(K.b({[aM.Jy]:!0})),e.complete()},onClickPrimaryCta:e.complete,onManualDismiss:e.complete,width:700,height:404,disableClickOutsideToHide:!0,closeButtonStyle:eK.M_.ON_DARK})}function a8(e){let t=(0,_.e)({overlay:b.NdL,priority:p.N.DEFAULT_MODAL}),{proTrial:a}=e,n=a.teamId,l=(0,$.wA)();(0,L.h)(()=>{t.show()});let o=r.useCallback(()=>l(aN.bE({all_team_flags:[{team_id:n,flags:{[aM.u_]:!0}}]})),[l,n]);return r.createElement(eu.h,{isShowing:t.isShowing,element:()=>r.createElement(a0,{teamId:n,hideModal:t.complete}),modalType:eK.q3.FEATURE_UPDATE,trackingContextName:"pro_trials_expiry_modal",trackingProperties:aM.ng.getTrackingProperties(),onClose:()=>{o(),t.complete()},onClickPrimaryCta:t.complete,onManualDismiss:t.complete,width:700,height:404,disableClickOutsideToHide:!0,closeButtonStyle:eK.M_.ON_LIGHT})}function a3(e){let t=(0,_.e)({overlay:b.bGx,priority:p.N.DEFAULT_MODAL}),{proTrial:a}=e,n=a.teamId,l=(0,$.wA)();(0,L.h)(()=>{t.show()});let o=r.useCallback(()=>l(aN.bE({all_team_flags:[{team_id:n,flags:{[aM.v$]:!0}}]})),[l,n]);return r.createElement(eu.h,{isShowing:t.isShowing,element:()=>r.createElement(aZ,{teamId:n,hideModal:t.complete}),modalType:eK.q3.FEATURE_UPDATE,trackingContextName:"pro_trials_v3_team_welcome_modal",trackingProperties:aM.ng.getTrackingProperties(),onClose:()=>{o(),t.complete()},onClickPrimaryCta:t.complete,onManualDismiss:t.complete,width:700,height:404,disableClickOutsideToHide:!0,closeButtonStyle:eK.M_.ON_DARK})}function a6(){let e=(0,ed._6)(),t=(0,$.d4)(e=>e.userTeamFlags),a=(0,$.d4)(e=>!!e.modalShown),n=(0,e_.f)(aM.Jy),l=(0,aD.xX)(),{ongoingTrials:o,expiredTrials:i}=(0,aD.j9)(),s=aM.ng.entryEnabled()&&l.length>0&&!n,c=o.find(e=>{var a;let n=null==(a=t[e.teamId])?void 0:a[aM.v$];return!e.isOwner&&!n&&e.daysLeft>0}),m=i.find(e=>{var a;if(!aM.ng.canSeeProTrialExpiryUx(e))return!1;let n=null==(a=t[e.teamId])?void 0:a[aM.u_];return e.isOwner&&!n}),d=r.useCallback(()=>s?r.createElement(a2,null):m?r.createElement(a8,{proTrial:m}):c?r.createElement(a3,{proTrial:c}):null,[s,m,c]);return!aM.ng.isEligibleTrialEntryView(e)||a?null:r.createElement("div",{"data-testid":"proTrialsV3FileBrowserOverlayWrapper"},d())}var a5=a(952277),a7=a(61048);let a9=(0,tq.eU)(()=>{let e=(0,eD.UG)();try{return e.get(a5.Bq)}catch(e){console.error("Failed to get show modal cookie",e)}return!1}),ne=(0,a7.bt)(e=>null!=e.payment.promo);var nt=a(361504);function na({dismissModal:e}){let t=(0,$.d4)(({payment:e})=>e.promo);return((0,L.h)(()=>{(0,a5.lc)()}),(0,r.useEffect)(()=>{null==t&&e()},[e,t]),null==t)?null:r.createElement(A.NJ,{targetKey:ty,dismissModal:e,width:301,shouldScrollTargetIntoView:!0},r.createElement("div",{className:tp.Hj},r.createElement(d.Tx,{id:"rcs.promo_new_team_create_pointer.first_create_a_team"})),r.createElement(d.Tx,{id:"rcs.promo_new_team_create_pointer.to_get_professional_free_for_days_you_ll_need_to_set_up_a_new_team_first_it_ll_take_less_than_a_minute",days:parseInt(t.promo_value)}))}function nn(){let e=(0,m.md)(nt.I),t=(0,m.md)(a9),a=(0,m.md)(ne),n=(0,_.e)({overlay:b.Qlc,priority:p.N.OVERRIDING_MODAL},[e]),l=(0,r.useCallback)(()=>{t&&a&&n.show({canShow:e=>!e})},[t,a,n]);return(0,L.h)(()=>{l()}),r.createElement(eu.h,{element:na,isShowing:n.isShowing,modalType:eK.q3.SELF_CONTAINED,onClickPrimaryCta:n.complete,onClose:n.complete,onManualDismiss:n.complete,trackingContextName:"Redeem Promo Code > Create Team"})}var nr=a(818533),nl=a(141390);function no({dismissModal:e}){let t=(0,$.d4)(({payment:e})=>e.promo),a=(0,$.d4)(({selectedView:e})=>e),n=(0,$.d4)(e=>e.teams),l=(0,nr.FC)(),o=r.useMemo(()=>Object.values(n).filter(e=>!(0,aG.w5)(e)&&(0,tc.canEditTeam)(e.id,l)),[n,l]),i=[],s=r.useMemo(()=>o.map(e=>({teamId:e.id})),[o]);return((0,aC.p)(tV.bel,s).forEach(e=>{var t,a,n;i.push((null==(n=null==(a=null==(t=e.result.data)?void 0:t.team)?void 0:a.teamFileCounts)?void 0:n.designFileCount)??0)}),(0,L.h)(()=>{(0,a5.lc)()}),(0,r.useEffect)(()=>{(null==t||0===o.length)&&e()},[e,t,o]),null==t||0===o.length)?null:r.createElement(nl.B,{starterTeams:o,promo:t,filesPerStarterTeam:i,dismissModal:e,previousView:a})}function ni(){let e=(0,m.md)(nt.I),t=(0,m.md)(a9),a=(0,m.md)(ne),n=(0,_.e)({overlay:b.I$z,priority:p.N.OVERRIDING_MODAL},[e]),l=(0,r.useCallback)(()=>{t&&a&&n.show({canShow:e=>e})},[t,a,n]);return(0,L.h)(()=>{l()}),r.createElement(eu.h,{element:no,isShowing:n.isShowing,modalType:eK.q3.WELCOME,onClickPrimaryCta:n.complete,onClose:n.complete,onManualDismiss:n.complete,trackingContextName:"Redeem Promo Code > Select Team"})}var ns=a(55362),nc=a(507352);function nm(){let e=(0,m.md)(u.qG),t=(0,m.md)(F.Qm),a=(0,m.md)(F.zN),n=(0,$.wA)(),r=(0,_.e)({overlay:b.Ult,priority:p.N.HIGH_PRIORITY_MODAL},[e,t,a]);return(0,L.h)(()=>{r.show({canShow:(e,t,a)=>!(0,eF.mW)(e,"seen_edu_offboarding_modal")&&(0,ns.x$)(t,a)!==1/0,onShow:()=>{n((0,q.to)({type:nc.ZL})),n(K.b({seen_edu_offboarding_modal:!0})),r.complete()}})}),null}var nd=a(566806);let n_={key:"createEduTeam",value:"1"},nu={key:"upgradeEduTeam",value:"1"};var np=a(949427);function nE(){let e=(0,_.e)({overlay:b.kmq,priority:p.N.HIGH_PRIORITY_MODAL}),t=(0,$.wA)();return(0,L.h)(()=>{let a=(0,nd.QL)(n_.key),n=(0,nd.QL)(nu.key);a===n_.value?e.show({onShow:()=>{t(H.Dw({isEduTeam:!0})),(0,nd.EM)(n_.key)}}):n===nu.value&&e.show({onShow:()=>{t((0,q.to)({type:np.qB})),(0,nd.EM)(nu.key)}})}),null}var ng=a(683543),nf=a(68065),nh=a(895649);function nb(){let e=(0,$.wA)(),t=(0,m.md)(F.d2),a=(0,_.e)({overlay:b.Wb3,priority:p.N.URGENT_ALERT},[t]);return(0,L.h)(()=>{switch((0,nd.QL)("upgrade")){case"pro":a.show({canShow:e=>e===eU.qo.PERSONAL,onShow:()=>{let t={dispatch:e,plan:nf.In.PRO,upsellSource:nh.b.UNIVERSAL_UPGRADE_SEQUENCE_MACHINE};e((0,q.to)({type:nf.dR,data:{...t}})),a.complete()}});break;case"plan_comparison":a.show({canShow:e=>e===eU.qo.PERSONAL,onShow:()=>{e((0,q.to)({type:ng.V,data:{upsellSource:nh.b.DEEPLINK}})),a.complete()}})}}),null}function nv(){let e=(0,s.dq)();return r.createElement(r.Fragment,null,r.createElement(c.p,null,r.createElement(x.P,null)),r.createElement(c.p,null,r.createElement(nb,null)),r.createElement(c.p,null,r.createElement(nE,null)),r.createElement(c.p,{featureFlag:"edu_offboarding_experience"},r.createElement(nm,null)),(o.XN||!o.rr)&&r.createElement(r.Fragment,null,r.createElement(c.p,null,r.createElement(y.$l,null)),r.createElement(c.p,null,r.createElement(tP,null)),r.createElement(c.p,{featureFlag:"figjam_3p_file_importer"},r.createElement(em,null)),r.createElement(c.p,{featureFlag:"figjam_jamboard_easy_signup"},r.createElement(eP,null))),!o.XN&&(0,i.IG)()&&r.createElement(r.Fragment,null,r.createElement(c.p,{featureFlag:"exp_mobile_web_nux_ff"},r.createElement(y.$l,null)),r.createElement(c.p,{featureFlag:"exp_mobile_web_nux_ff"},r.createElement(C.s,null))),r.createElement(c.p,{featureFlag:"pro_trials_v3_ux"},r.createElement(a6,null)),r.createElement(c.p,null,r.createElement(au,null)),r.createElement(c.p,null,r.createElement(ab,null),r.createElement(ax,null)),r.createElement(c.p,null,r.createElement(T,null)),r.createElement(c.p,null,r.createElement(nn,null),r.createElement(ni,null)),r.createElement(c.p,null,r.createElement(W,null)),r.createElement(c.p,null,r.createElement(M,null)),e&&r.createElement(c.p,null,r.createElement(at,null)),r.createElement(c.p,null,r.createElement(tj,null)),(0,l.kc)().mobile_sign_up_redirect&&o.rr&&r.createElement(c.p,null,r.createElement(eb,null)),r.createElement(c.p,null,r.createElement(aP,null)))}},266723:(e,t,a)=>{a.d(t,{A:()=>n});let n=(0,a(38580).eU)(void 0)},459621:(e,t,a)=>{a.d(t,{A:()=>n});let n=(0,a(38580).eU)(void 0)},149197:(e,t,a)=>{a.d(t,{B:()=>ef,s:()=>eh});var n=a(411855),r=a(188507),l=a(3794),o=a.n(l),i=a(42821),s=a(509952),c=a(611464),m=a(732326),d=a(434107),_=a(344298),u=a(22583),p=a(999231),E=a(21122),g=a(408381),f=a(703473),h=a(785341),b=a(143551),v=a(959875),w=a(402791),T=a(922990),y=a(820746),x=a(312701),C=a(218197),N=a(983245),k=a(639061),S=a(705715),I=a(705407),A=a(890332),O=a(277398),P=a(129771),R=a(619075),D=a(978194),M=a(304913),L=a(566046),F=a(951366),B=a(321112);let U=(0,L.Ju)(function(){let e=(0,r.wA)(),t=()=>{e(S.Lo())};return n.createElement(F.XV,{onClose:t,minWidth:400,maxWidth:400,title:(0,w.t)("multi-account.max_accounts_title")},n.createElement("div",{className:B.kL},n.createElement(w.Tx,{id:"multi-account.max_accounts_body"}),n.createElement("div",{className:B.v0},n.createElement(M.$$,{onClick:t},n.createElement(w.Tx,{id:"multi-account.max_accounts_submit"})))))},"TooManyAccountsModal");var j=a(515229),G=a(629019),z=a.n(G),W=a(884096),$=a(723231),H=a(86630),q=a(22310),K=a(742872),V=a(170766),X=a(712041),Y=a(395606),Q=a(487644),J=a(501226);function Z(e){return n.createElement("button",{className:"editable_avatar_with_pencil--profilePictureUpdaterContainer--X-nf6",onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onClick:e.onClick},n.createElement(T.H8,{user:e.user,size:T.Pf.XLARGE}),n.createElement(Q.B,{className:"editable_avatar_with_pencil--profilePictureEditButton--LpEdQ",svg:J.A}))}function ee(e){return n.createElement(Z,{onClick:t=>{e.onClick&&e.onClick(t),e.dispatch((0,X.X)({entity:e.user,entityType:Y.ck.CURRENT_USER,shape:"CIRCLE"}))},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,user:e.user})}function et({dispatch:e,user:t}){let a=(0,p.UP)(),l=(0,p.kc)(),o=a&&!!l,i=(0,p.s_)(),s=o&&l.public_at,c=(0,H.K)(t)&&!s,m=(0,r.d4)(e=>(0,$.m)(e,e.authedActiveCommunityProfile)),d=o?m:t.email,[_,u]=n.useState(d),E=()=>u(d);return n.createElement(n.Fragment,null,o&&(0,p.cs)(l)?n.createElement(T.H8,{user:i,size:T.Pf.XLARGE}):n.createElement(ee,{dispatch:e,onClick:()=>e(N.oB()),onMouseEnter:()=>u((0,w.t)("account_switcher.change_photo")),onMouseLeave:E,user:t}),n.createElement("button",{onClick:()=>{e(N.oB()),s?e((0,C.Dg)({profileId:l.id,view:{view:"communityHub",subView:"handle",handle:l.profile_handle}})):(a&&(0,j.tO)(t.id),e(N.$T({view:"user",userId:t.id,userViewTab:K.o.INTERNAL_PROFILE}))),c&&(0,q.Cu)({trackingContext:V.e0.FILE_BROWSER,context:"job_title",text:"Internal Profile"})},className:z()(v.cx.colorBgTooltip.mt8.wFull.overflowHidden.noWrap.ellipsis.colorTextTooltip.lh16.$,"profile_item--underlineHover--DagMB"),onMouseOver:()=>u(s?(0,w.t)("account_switcher.view_community_profile"):(0,w.t)("account_switcher.view_profile")),onMouseLeave:E},o&&(0,p.cs)(l)?l.name:t.handle),n.createElement(W.E,{fontSize:11,color:"desktopBackgrounded",truncate:!0},_))}let ea="account_switcher_items--optionClassOverride--dRdRQ",en="account_switcher_items--noIconClassOverride--t-OW2";function er({displayText:e,callback:t,icon:a,children:r,dataOnboardingKey:l}){return{displayText:e,optionHeight:32,callback:t,icon:n.createElement(y.In,{icon:a,fill:"onbrand"}),className:ea,children:r,"data-onboarding-key":l}}let el=(e,t)=>({className:"account_switcher_items--profileClassOverride--7JiNH",disabled:!0,displayText:(0,w.t)("navbar.settings_dropdown.profile_label"),render:()=>n.createElement(et,{user:e,dispatch:t})}),eo=()=>er({displayText:(0,w.t)("navbar.settings_dropdown.settings"),icon:"adjust-32",dataOnboardingKey:"settings-nav-bar-item",callback:(e,t,a)=>{a(S.to({type:R.s,data:{tab:R.c.ACCOUNT}}))}}),ei=e=>er({displayText:(0,w.t)("navbar.settings_dropdown.theme"),icon:"theme-32",children:(0,A.w3)(e)}),es=(e,t)=>er({displayText:(0,w.t)("navbar.profile_switcher.community"),icon:"community-32",callback:(a,n,r)=>{r((0,C.Dg)({profileId:e,view:{view:"communityHub",subView:"handle",handle:t}}))}}),ec=e=>e.map(e=>{let t={id:e.id,name:e.name,img_url:e.img_url},a=n.createElement(x.e,{entity:t,size:24});return{displayText:e.name,subText:`@${e.profile_handle}`,optionHeight:48,className:ea,icon:a,callback:(t,a,n)=>{null==n||n(N.$T({view:"communityHub",subView:"handle",handle:e.profile_handle}))}}}),em=e=>{let t=n.createElement(T.H8,{user:e,size:T.Pf.MEDIUM});return{displayText:(0,w.t)("navbar.profile_switcher.create_a_community_profile"),subText:e.email,optionHeight:48,className:ea,icon:t,callback:(t,a,n)=>{null==n||n(S.to({type:D.G$,data:{userId:e.id,variations:[D.FF.OPT_IN]}}))}}},ed=()=>({displayText:(0,w.t)("navbar.navbar.logout_button_label"),icon:"sign-out-32"});function e_(e,t=!1){return{displayText:e.name,subText:e.email,optionHeight:32,className:ea,isChecked:t,icon:n.createElement("div",{className:v.cx.m4.$},n.createElement(T.H8,{size:T.Pf.MEDIUM,user:e})),callback:(a,n,r)=>{if(t)r(N.$T({view:"recentFiles"}));else{if((0,c.kc)().ps_benchmark){let t=(0,j.QF)(e.id)||[],a=null,n=null,l=t[0],o=t[1];l===O.O.ORG&&o?a=o:l===O.O.TEAM&&o&&(n=o),r(k._l({workspace:{userId:e.id,orgId:a,teamId:n}}))}else r(k._l({workspace:{userId:e.id,orgId:(0,j.VE)(e.id)}}));(0,j.I2)(e.id)}}}}let eu=(e,t)=>o()([e_(e,!0),...t.orderedIds.filter(t=>t!==e.id).map(e=>e_(t.byId[e]))]),ep=(e,t)=>er({displayText:(0,w.t)("navbar.profile_switcher.add_account"),icon:"plus-32",dataOnboardingKey:P.nT,callback:(a,n,r)=>{e>=10?r(S.to({type:U})):t?r(k.rq()):f.Ay.redirect("/login?cont=","_blank")}}),eE=()=>er({displayText:(0,w.t)("navbar.settings_dropdown.desktop_app_cta"),icon:"download-32",callback:()=>f.Ay.redirect(`/download/desktop/${_.Ay.mac?"mac":"win"}`,"_blank")}),eg={displayText:"",disabled:!0,separator:!0},ef="FILE_BROWSER_ACCOUNT_SWITCHER_DROPDOWN";function eh(e){let t=(0,r.d4)(e=>e.authedUsers),a=(0,E.Pc)(),l=(0,u.am)(),f=(0,m.md)(d.b),v=(0,p.kc)(),T=(0,r.d4)(e=>e.authedProfilesById),y=(0,r.d4)(e=>(0,p.gc)(e),s.c2),x=(0,r.d4)(e=>(0,p.Tm)(e)),C=o()(Object.values(y).map(e=>e.community_profile_id&&T[e.community_profile_id])),N=o()(Object.values(x).map(e=>e.community_profile_id&&T[e.community_profile_id])),k=!i.eD&&(_.Ay.mac||_.Ay.windows),S=[el(a,e.dispatch),ei(l),...f?[]:o()([eo(),k&&eE(),eg,!(0,c.kc)().cmty_deprecate_browse_as_admin&&(null==v?void 0:v.public_at)&&es(v.id,v.profile_handle),(0,c.kc)().cmty_deprecate_browse_as_admin&&function(e,t,a,n){let r=ec(o()([t,...a,...n]));return t||r.push(em(e)),er({displayText:(0,w.t)("navbar.profile_switcher.community"),icon:"community-32",children:r})}(a,a.community_profile_id?T[a.community_profile_id]:void 0,C,N),eg,...eu(a,t),ep(t.orderedIds.length,!!i.eD)]),eg,function(e){let t=e.orderedIds;return t.length<2?er({...ed(),callback:(a,n,r)=>{let l=e.byId[t[0]];if(!l){(0,h.$D)(b.e.EXPLORE,Error("user not defined while logging out single user"));return}r(I.ql({user:l}))}}):er({...ed(),children:[...e.orderedIds.map(t=>{let a=e.byId[t];return{displayText:a.email,optionHeight:32,className:en,callback:(e,t,n)=>n(I.ql({user:a}))}}),eg,{displayText:(0,w.t)("navbar.profile_switcher.logout_all_accounts"),optionHeight:32,className:en,callback:(e,t,a)=>a(I.S5())}]})}(t)];return n.createElement(g.U,{items:S,onSelectItem:t=>{t.callback&&t.callback("",null,e.dispatch)},parentRect:e.targetRect,dispatch:e.dispatch})}},965681:(e,t,a)=>{a.d(t,{E8:()=>o,Hw:()=>l,Oz:()=>n,Vl:()=>r,nJ:()=>i});let n=function(){return!1},r=function(){return!1},l=function(){return!1},o=function(){return!1},i=function(){return!1}},657968:(e,t,a)=>{let n,r,l;a.d(t,{h6:()=>s});var o=a(411855),i=((n=i||{}).STUDENT="student",n.EDUCATOR="educator",n.ADMINISTRATOR="administrator",n.EMPTY="",n),s=((r=s||{}).K12="k12",r.HIGHER_ED="higher_ed",r.BOOTCAMP_OR_ONLINE="bootcamp_or_online",r.EMPTY="",r),c=((l=c||{}).GENERAL_EDUCATION="General Education",l.SOCIAL_STUDIES="Social Studies",l.ENGLISH_LANGUAGE_ARTS="English Language Arts",l.COMPUTER_SCIENCE_ENGINEERING_TECHNOLOGY="Computer Science / Engineering / Technology",l.CAREER_AND_TECHNICAL_EDUCATION="Career and Technical Education",l.MATH="Math",l.SCIENCE="Science",l.ART_GRAPHIC_DESIGN="Art / Graphic Design",l.LIBRARIES="Libraries",l.FOREIGN_LANGUAGE="Foreign Language",l.HUMAN_COMPUTER_INTERACTION="Human-Computer Interaction",l.GRAPHIC_VISUAL_DESIGN="Graphic / Visual Design",l.COMPUTER_SCIENCE="Computer Science",l.ENTREPRENEURSHIP="Entrepreneurship",l.UX_UI_OR_INTERACTION_DESIGN="UX/UI or Interaction Design",l.INFORMATION_SCIENCE="Information Science",l.OTHER="Other",l);o.createContext({})}}]);
//# debugId=9047a44e-5b97-5514-a142-1c1b22fa96d2
//# sourceMappingURL=https://admin.figma.com/admin/webpack-artifacts/3c0315ec50feec81ec3f541ff0162be9793b14bd/9580-b5c413933add594f.min.js.map