375e),f=a(0x10a716a94),y=a(0x120c268ad),C=a.n(y),b=a(0x15f8e452a),x=a(0x15fb82076),A=a(0x2501a2cee),N=a(0x172dd1bf5),h=a(0xe874a88a),v=a(0x22a29f141),S=a(0x1dfdeb1c8),g=a(0x1ec68d6a3),I=a(0xe747dd27);let w=(0,S.A)("lists.import generated fetcher",(e,t,a)=>new h.S((l,n)=>{let{abortSignal:r,reason:i,...s}=a,o=(0,I.VA)(s);e((0,v.apiCall)({method:"lists.import",args:o,abortSignal:r,reason:i})).then(e=>{l(e)}).catch(e=>{(0,g.default)({getState:t}).error(`API call to lists.import
						with reason ${i} failed, initiated by generated fetcher`),n(e)})}));w.meta={name:"listsImportFetcher",key:"createFetcherListsImportFetcher",description:"lists.import generated fetcher"};let T=new i.Ay("lists"),ImportModalStep01=({onUploadStart:e,onSuccess:t,onFailure:r})=>{let i=(0,n.wA)(),o=(0,l.useRef)(null),c=(0,l.useRef)(null),[d,p]=(0,l.useState)(!1),[m,u]=(0,l.useState)(!1),[_,E]=(0,l.useState)(!1),[f,y]=(0,l.useState)(null),[h,v]=(0,l.useState)(""),S=(0,l.useCallback)(async a=>{if(a){y(a),u(!0),v(""),e();try{let e=await i(w({file:a,reason:"import-list"}));t(a,e),E(!0)}catch(e){r(),v(e.data.error),(0,g.default)({label:"lists"}).error("error importing file",e)}finally{u(!1)}}},[i,r,t,e]),I=(0,l.useCallback)(()=>{f||o.current?.click()},[f]),F=(0,l.useCallback)(()=>{o.current?.click()},[]),U=(0,l.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),p(!1),S(e?.dataTransfer?.files?.[0]??null)},[S]),k=(0,l.useCallback)(e=>{e.preventDefault(),e.dataTransfer.dropEffect="copy"},[]),R=(0,l.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),e.target!==c.current&&p(!0)},[]),L=(0,l.useCallback)(e=>{p(!1)},[]),B=(0,l.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),e.target===c.current&&p(!1)},[]),P=(0,l.useCallback)(e=>{let t=e?.target?.files?.[0]??null;t&&S(t)},[S]);return l.createElement("div",{className:"display_flex p-lists_import_modal_file_picker",onDragOver:k,onDragEnter:R,onDragEnd:L,onDragLeave:B,onDrop:U},l.createElement("input",{ref:o,type:"file",className:"hidden",accept:".csv",onChange:P}),l.createElement(s.Nm,{className:C()("p-lists_import_modal__upload_button",{"p-lists_import_modal__upload_button--uploaded":f}),onClick:I},_&&l.createElement(N.e,{getAnimationImport:()=>a.e("lottie-lists-upload2.json").then(a.t.bind(a,0x246b05383,23)),className:"p-lists_import_modal__upload_animation",autoplay:!0,loop:!1}),l.createElement("div",{className:"p-lists_import_modal__upload_button_instructions"},!f&&l.createElement(l.Fragment,null,l.createElement("div",{className:"p-lists_import_modal__upload_button_title"},T.rt("Drag file here or <span>browse files</span>",{"<span>":({text:e})=>l.createElement("span",{className:"p-lists_import_modal__upload_button_title_link"},e)})),l.createElement("div",{className:"p-lists_import_modal__upload_button_subtitle"},T.t("Only .csv files are currently supported.")),l.createElement("div",{className:"p-lists_import_modal__upload_button_subtitle bold"},T.t("The first row of your .csv file should be the name of each column."))),f&&m&&l.createElement(l.Fragment,null,l.createElement("div",{className:"p-lists_import_modal__upload_button_title"},T.t("Uploading\u2026")),l.createElement("div",{className:"p-lists_import_modal__upload_button_subtitle"},f.name)),f&&h&&l.createElement(l.Fragment,null,l.createElement("div",{className:"p-lists_import_modal__upload_error_icon",style:{fontSize:"90px"}},l.createElement(A.Ah,{name:"warning-filled"})),l.createElement("div",{className:"p-lists_import_modal__upload_button_title"},T.rt("Couldn\u2019t import {fileName}",{fileName:f.name})),l.createElement("div",{className:"p-lists_import_modal__upload_button_subtitle"},"over_row_maximum"===h?T.rt("Imported files can\u2019t have more than {maxRowsPerList} rows.",{maxRowsPerList:1e3}):T.t("Something went wrong")," ",l.createElement(x.A,{onClick:F},T.t("Upload another file")))),f&&l.createElement(l.Fragment,null,l.createElement("div",{className:"p-lists_import_modal__upload_button_title"},T.t("Your file has been uploaded successfully")),l.createElement("div",{className:"p-lists_import_modal__upload_button_subtitle"},f.name)))),d&&l.createElement("div",{className:"p-lists_import_modal__drag_overlay",ref:c},l.createElement(b.A,{className:"c-icon__file p-file_thumbnail__file_icon p-lists_import_modal__drag_overlay_icon",file:"svgicon",type:"generic"})))};ImportModalStep01.displayName="ImportModalStep01";let F=l.memo(ImportModalStep01);var U=a(0x15dd8a31),k=a(0x1fdec3e16),R=a(0x57d5a5b5);let L=new i.Ay("lists"),ImportModalStep02=({csvData:e,primaryColumn:t,onPrimaryColumnSelected:a})=>{let n=(e?.columns??[]).map((e,t)=>({value:(0,R.Og)(e.rows[0],t),label:e.rows[0]})),r=n.find(({value:e})=>e===t.key)||n?.[0],i=(0,l.useCallback)(()=>{let a=e?.columns.find((e,a)=>(0,R.Og)(e.rows[0],a)===t.key)||e?.columns[0];return a?.rows.slice(1,6).map((e,t)=>l.createElement("div",{key:t,className:"p-lists_import_modal__primary_column_row"},l.createElement(k.A,{lines:1,withTooltip:!0},e)))},[e?.columns,t]),s=(0,l.useCallback)(({value:e,label:t})=>{a({key:e,value:t})},[a]);return l.createElement("div",{className:"p-lists_import_modal__step02"},l.createElement(U.A,{className:"p-lists_import_modal__primary_column_select",selectedOption:r,onOptionSelected:s,options:n,placeholderText:" "}),l.createElement("div",{className:"margin_top_50"},l.createElement("strong",null,L.t("Preview of item titles"))),l.createElement("div",{className:"p-lists_import_modal__primary_column_rows"},l.createElement("div",{className:"p-lists_import_modal__primary_column_header_row"},l.createElement(k.A,{lines:1,withTooltip:!0},t.value||n?.[0]?.value)),i()))};ImportModalStep02.displayName="ImportModalStep02";let B=l.memo(ImportModalStep02);var P=a(0x45bd075),D=a(0x1d2cd7755);let M=new i.Ay("lists"),ImportTypeOption=({onColumnTypeUpdated:e,onIsMultiSelectUpdated:t,column:a,choices:n})=>{let r=(0,l.useCallback)(({value:t})=>{e(a.rows[0],t)},[a.rows,e]),i=(0,l.useCallback)(e=>{t(a.rows[0],e.target.checked)},[a.rows,t]);return l.createElement("div",{key:`labels-${a.rows?.[0]}`,className:"p-lists_import_modal__column_type_row"},l.createElement("div",{className:"p-lists_import_modal__column_type_row_label"},a.rows?.[0]),l.createElement("div",{className:"p-lists_import_modal__column_type_row_ex"},M.t("Values"),": ",a.rows?.slice(1,4).join(", ")),l.createElement(U.A,{className:"p-lists_import_modal__column_type_row_select",selectedOption:n.find(e=>e.value===a.type),selectId:a.rows?.[0],onOptionSelected:r,key:`select-${a.rows?.[0]}`,options:n,placeholderText:" "}),"select"===a.type&&l.createElement("div",{className:"margin_bottom_75"},l.createElement(D.A,{type:"inline",cursor:"pointer",text:M.t("Allow multiple selections")},l.createElement(P.A,{onChange:i,name:"is_multi_select",checked:!!a.isMultiSelect}))))};ImportTypeOption.displayName="ImportTypeOption";let O=l.memo(ImportTypeOption),H=new i.Ay("lists"),ImportModalStep03=({csvData:e,primaryColumn:t,onColumnTypeUpdated:a,onIsMultiSelectUpdated:n})=>{let r=(e?.columns??[]).filter((e,a)=>(0,R.Og)(e.rows?.[0],a)!==t.key),i=[{label:H.t("Text"),value:"text"},{label:H.t("Number"),value:"number"},{label:H.t("Select"),value:"select"}];return l.createElement("div",{className:"p-lists_import_modal__step03"},l.createElement("div",null,r.map(e=>l.createElement(O,{key:e.rows?.[0],column:e,onColumnTypeUpdated:a,onIsMultiSelectUpdated:n,choices:i}))))};ImportModalStep03.displayName="ImportModalStep03";let V=l.memo(ImportModalStep03);var W=a(0x14fad6485),$=a(0xa6f3163b),Z=a(0x126f22530),G=a(0x1b3ecb90f),X=a(0x1faaed399),z=a(0x3ec30a76),j=a(0x1b77d8ef3),Q=a(0x2c5a5afa);let Y=new i.Ay("lists"),ImportModalStep04=({name:e,icon:t,onNameChanged:a,onDescriptionChanged:n,onIconChanged:r,inputRef:i})=>{let{windowRef:s}=(0,l.useContext)(W._0);return l.createElement("div",{className:"p-lists_import_modal__step04"},l.createElement(D.A,{text:Y.t("Name",{fallbackHash:"709a23220f2c3d64d1e1d6d18c4d5280f8d82fca",fallbackHashNs:"slack_docs"}),htmlFor:"text-name",id:"text-label-name"},l.createElement("div",{className:"display_flex p-lists_import_modal__name_wrapper"},l.createElement(X.A,{offsetY:5,onEmojiSelected:(e,t)=>r(`:${t}:`),position:"bottom"},l.createElement($.A,{className:"p-lists_import_modal__icon_button"},l.createElement(l.Fragment,null,t?l.createElement(G.Ay,{forceDisplay:!0,text:t,emojiSize:G.lw.MEDIUM,showTooltip:!1}):l.createElement(b.A,{type:"smile-o"})))),l.createElement(Z.A,{ariaDescribedById:"text-label-name",name:"text-name",id:"text-name",value:e,onChange:a,size:"medium"}))),l.createElement(D.A,{text:Y.t("Description"),htmlFor:"textarea-description",id:"text-label-description",optional:!0},l.createElement(j.A,{className:"p-lists_import_modal__basic_container"},l.createElement(Q.A,{ref:i,id:"textarea-description",windowRef:s,ariaLabel:Y.t("List description"),placeholder:Y.t("Describe how your team plans to use this list",{fallbackHash:"50581e17b7701b212050d7785fe7d974bf8621c7"}),maxLength:z.W,onTextChange:n,useStickyComposer:!1,completeOnEmoji:!0,completeOnChannels:!0,completeOnMembers:!0,position:"bottom",enableBroadcastKeywords:!1,useWysiwyg:!0}))))};ImportModalStep04.displayName="ImportModalStep04";let q=l.memo(ImportModalStep04);var K=a(0x245a090f5),J=a(0x153cbdf74),ee=a(0x20e80190e),et=a(0x2275c26b8),ea=a(0x3711e82d),el=a(0x1851ee91d),en=a(0x11e302e7a),er=a(0x1fcbb004d);let ei=new i.Ay("lists"),es={elementName:"import_list",action:ea.UiAction.ADD,onClick:{enableClogAction:!0}},ListsImportModal=({onSuccessNavigateOptions:e})=>{let t=(0,n.wA)(),a=(0,l.useRef)(null),[i,y]=(0,l.useState)(null),[C,b]=(0,l.useState)(null),[x,A]=(0,l.useState)(1),[N,h]=(0,l.useState)(!1),[v,S]=(0,l.useState)({value:"",key:""}),[g,I]=(0,l.useState)(""),[w,T]=(0,l.useState)(""),[U,k]=(0,l.useState)(0),L={1:ei.t("Import a list"),2:ei.t("Choose a column to use for item titles"),3:ei.t("Choose field types for your columns"),4:ei.t("Name your new list")},P={2:ei.t("You won\u2019t be able to change this later."),3:l.createElement("div",null,ei.t("Field types let you to use dynamic filters or group like items together. Changing field types later on could clear your data."),l.createElement("ul",null,l.createElement("li",null,ei.t("Number fields should only contain numbers. Other characters will be removed.")),l.createElement("li",null,ei.t("Choose Select for fields with values that repeat across items, like groups, regions or project statuses."))))},D=(0,l.useCallback)((e,t)=>{y(e),I(e.name.split(".").slice(0,-1).join(".")),b(t),S({value:t.columns?.[0].rows?.[0]??"",key:(0,R.Og)(t.columns?.[0].rows?.[0],0)}),h(!1)},[]),M=(0,l.useCallback)(()=>{h(!1)},[]),O=(0,l.useCallback)((e,t,a)=>{if(e===J.$.Select)return{choices:[...new Set(a===et.YP.MultiSelect?t.flatMap(e=>e.split(",").map(e=>e.trim())):t)].map((e,t)=>({value:(0,R.W3)(),label:e,color:(0,R.Vy)({index:t})})),...a&&{format:a}}},[]),H=(0,l.useCallback)(async()=>{if(A(e=>e<4?e+1:e),4===x){h(!0);let l=(C?.columns??[]).map((e,t)=>({name:e.rows[0],type:e.type,key:(0,R.Og)(e.rows[0],t)===v.key?"name":(0,R.vm)(),options:O(e.type,e.rows.slice(1),e.isMultiSelect?et.YP.MultiSelect:void 0)})),n=a?.current?.getContents(),r=t((0,el.p)({textyContents:n}));i&&await t((0,en.D)({name:g,icon:w,...{descriptionBlocks:r?.length?r:K.B},schema:l,navigateAfterCreate:!0,file:i,...e,reason:"create-list-from-import"})),t((0,er.O)())}},[C,t,i,w,g,v,x,O,e,a]),W=(0,l.useCallback)(()=>{A(e=>(2===e&&y(null),e>1?e-1:e))},[]),$=(0,l.useCallback)(e=>{S(e)},[]),Z=(0,l.useCallback)(e=>{I(e)},[]),G=(0,l.useCallback)(()=>{a?.current&&k(a?.current?.getNumCharsOverLimit())},[]),X=(0,l.useCallback)(e=>{T(e)},[]),z=(0,l.useCallback)((e,t)=>{if(!C)return;let a=C.columns.findIndex(t=>t.rows[0]===e);a>=0&&b(e=>{if(!e)return null;let l={...e};return l?.columns&&(l.columns[a].type=t),l})},[C]),j=(0,l.useCallback)((e,t)=>{if(!C)return;let a=C.columns.findIndex(t=>t.rows[0]===e);a>=0&&b(e=>{if(!e)return null;let l={...e};return l?.columns&&(l.columns[a].isMultiSelect=t),l})},[C]),Q=(0,l.useCallback)(()=>{h(!0)},[]),Y=(0,l.useCallback)(()=>{t((0,er.O)())},[t]),eo=(0,l.useCallback)(({cancel:e})=>l.createElement(ee.ty,{description:!1,cancelButtonLabel:ei.t("Keep Editing"),continueButtonLabel:ei.t("Cancel Import"),heading:ei.t("Are you sure you want to cancel?"),onContinue:Y,onCancel:e}),[Y]),ec=(0,l.useMemo)(()=>null===i||4===x&&!!(U>0),[i,U,x]);return l.createElement(f.A,{subtype:"lists"},l.createElement(r.A,{eventId:ea.EventId.SLACK_LISTS,uiComponentName:ea.UiComponentName.LISTS_BROWSER},l.createElement(o.A,{centered:!0,forceSpeedBumpEnabled:!0},l.createElement(_.A,null,l.createElement(E.A,{title:L[x]??"",subtitle:P[x]??""})),l.createElement(d.A,null,l.createElement(p.A,{className:"p-lists_import_modal__content"},1===x&&l.createElement(F,{onUploadStart:Q,onSuccess:D,onFailure:M}),2===x&&l.createElement(B,{csvData:C,primaryColumn:v,onPrimaryColumnSelected:$}),3===x&&l.createElement(V,{csvData:C,primaryColumn:v,onColumnTypeUpdated:z,onIsMultiSelectUpdated:j}),4===x&&l.createElement(q,{name:g,icon:w,onNameChanged:Z,onDescriptionChanged:G,onIconChanged:X,inputRef:a}))),l.createElement(m.A,{renderSpeedBump:eo},l.createElement("div",{className:"p-lists_import_modal__step"},ei.t("Step {step} of 4",{step:x})),l.createElement(u.A,null,1===x&&l.createElement(c.A,{type:"outline","aria-label":ei.t("Cancel")},ei.t("Cancel")),x>1&&l.createElement(s.Ay,{type:"outline",onClick:W},ei.t("Back")),l.createElement(s.lV,{onClick:H,disabled:ec,loading:N,autoClogProps:4===x?es:void 0,"aria-label":4===x?ei.t("Create List"):ei.t("Next")},4===x?ei.t("Create List"):ei.t("Next")))))))};ListsImportModal.displayName="ListsImportModal";let eo=l.memo(ListsImportModal)},0x2b326dc7:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>F});var l=a(0xbad225b5),n=a(0x16cf1da63),r=a(0x1cbdfeceb),i=a(0x40c0d834),s=a(0x20482ad21),o=a(0x19709d5e1),c=a(0x66306c2d),d=a(0x70de3606),p=a(0x167d76333),m=a(0xa1832ae4),u=a(0x1b887bf79),_=a(0x3711e82d),E=a(0x10079cc7),f=a(0x178f0e117),y=a(0x140422d4a),C=a(0x41a56f6d),b=a(0x226892387),x=a(0x20e69791a),A=a(0x20061cab9),N=a(0xf3c65e54),h=a(0x5b1935a6),v=a(0x91e15f37),S=a(0x431513f8),g=a(0x1ee439e69);let I=a.p+"unified-files-browser-canvas-lists-a23a097.gif",w=new s.Ay("browsers"),getButtonAutoClogProps=e=>({elementName:e,elementType:_.ElementType.BUTTON,onClick:{enableClogAction:!0}}),T=getButtonAutoClogProps("new_list"),UnifiedFilesBanner=()=>{let e=(0,b.d4)(d._q),t=(0,b.d4)(p.F),a=(0,b.d4)(d.Il),s=(0,n.wA)(),F=(0,b.d4)(e=>(0,m.tc)((0,g.H7)(e))),U=E.ZO.PaidFeatureTrial,k=E.zG.Canvas,R=(0,b.d4)(e=>F&&(0,v.hq)(e,U,k)),L=(0,b.d4)(u.X);(0,l.useEffect)(()=>{F&&s((0,S.A)({campaignType:U,campaignSubType:k,reason:"canvas_view_only_button"}))},[s,k,U,F]),(0,l.useEffect)(()=>{s((0,N.A)({notificationName:h.ze.UNIFIED_BROWSER_UNIFIED_FILES_BROWSER_HERO_BANNER,action:h.hw.IMPRESSION}))},[s]);let B=(0,l.useCallback)(()=>{s((0,A.Ay)({spaceName:h.xu.UNIFIED_FILES_BROWSER_HEADER,action:h.hw.DISMISS}))},[s]),P=(0,l.useCallback)(()=>s((0,c.A)({uiComponentVariant:_.UiComponentVariant.UNIFIED_FILES_EMPTY_STATE_ALL_FILES})),[s]),D=(0,l.useCallback)(()=>s((0,y.A)({source:C.P.UNIFIED_FILES_BROWSER_HERO_BANNER})),[s]),M=(0,l.useCallback)(()=>{s((0,x.V)({...e&&{todoMode:!0},source:f.d.UNIFIED_FILES_BROWSER_HERO_BANNER,reason:"create-list-from-unified-files-browser-hero-banner"}))},[s,e]),O=w.t("Collect and share information with a canvas, or track your next project in a list.");t?a||(O=w.t("Collect, share information, and track your next project with a canvas")):O=w.t("Collect, share information, and track your next project with a list"),F&&(O=w.t("Upgrade to a paid plan to work in canvases and lists, where you can collect and share information or manage projects without leaving Slack."));let H=t?D:r.A;F&&(H=R?P:r.A);let{primaryCTAButtonText:V,primaryCTAAutoClogProps:W}=(0,l.useMemo)(()=>F?R?{primaryCTAButtonText:w.t("Try Pro Free"),primaryCTAAutoClogProps:getButtonAutoClogProps("trial")}:L?{primaryCTAButtonText:w.t("Upgrade Now"),primaryCTAAutoClogProps:getButtonAutoClogProps("upgrade_now")}:{primaryCTAButtonText:w.t("Compare Plans",{fallbackHash:"a4c41c6ef8445eceff077890e23e09c7482740cb"}),primaryCTAAutoClogProps:getButtonAutoClogProps("compare_plans")}:{primaryCTAButtonText:t?w.t("New Canvas"):void 0,primaryCTAAutoClogProps:getButtonAutoClogProps("new_canvas")},[F,R,L,t]);return l.createElement(i.A,{eventId:_.EventId.UNIFIED_FILES_HERO_BANNER,clogImpression:!0},l.createElement("div",{className:"margin_bottom_75"},l.createElement(o.H,{title:w.t("Get your work done in Slack"),content:O,backgroundColor:"mojito",showBanner:!0,primaryImgSrc:I,primaryImgMinHeight:274,onCloseBanner:B,primaryCTAButtonText:V,primaryCTAAutoClogProps:W,primaryCTAButtonType:F?"primary":"outline",primaryCTAButtonIconName:F?void 0:"plus",secondaryCTAButtonText:a?w.t("New List"):void 0,secondaryCTAAutoClogProps:T,secondaryCTAButtonIconName:"plus",primaryCTAOnClick:H,primaryCTAButtonHref:F&&!R?(0,E.hZ)({entryPoint:"unified-files-browser-hero-banner"}):void 0,secondaryCTAOnClick:a?M:void 0})))};UnifiedFilesBanner.displayName="UnifiedFilesBanner";let F=UnifiedFilesBanner},0x20d1aecb9:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});var l=a(0xbad225b5),n=a(0x1f856e640);let SyntheticCanvasHeaderBanner=({hasRecentFiles:e,...t})=>e?l.createElement(n.A,{...t,uiPage:"canvas_synthetic_view",showBorder:!0}):null;SyntheticCanvasHeaderBanner.displayName="SyntheticCanvasHeaderBanner";let r=SyntheticCanvasHeaderBanner},0x1d41b97cf:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>p});var l=a(0xbad225b5),n=a(0x120c268ad),r=a.n(n),i=a(0x1e1dbaf57),s=a(0x523c4a9a),o=a(0x218842a12),c=a(0x7dc390be),d=a.n(c);o.g.FREE_TO_PLUS_TRIAL_CANVAS_BROWSER_BANNER;let FreeToPlusTrialCanvasBrowserBanner=({trialAwarenessInfo:e,canvasUsed:t,canvasCount:a,className:n,hasFutureSwitch:o=!1})=>{let{trialEndDate:c,daysRemaining:p,canUserPurchase:m}=e;return l.createElement("div",{className:r()(n,`p-explorer_results__contained-result ${d().browserWrapper}`)},l.createElement(s.A,{trialEndDate:c,daysRemaining:p,canUserPurchase:m,canvasUsed:!!t,canvasCount:a,entryPoint:i.TZ.CANVAS_BROWSER_BANNER,hasFutureSwitch:o}))};FreeToPlusTrialCanvasBrowserBanner.displayName="FreeToPlusTrialCanvasBrowserBanner";let p=FreeToPlusTrialCanvasBrowserBanner},0x136860cce:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>N});var l=a(0xbad225b5),n=a(0x16cf1da63),r=a(0x40c0d834),i=a(0x20482ad21),s=a(0x11a296110),o=a(0x2501a2cee),c=a(0x18a31435e),d=a(0x25354019b),p=a(0xa9c4eb3c),m=a(0x20d440ee3),u=a(0x218842a12),_=a(0x3711e82d),E=a(0x10079cc7),f=a(0x226892387),y=a(0x1209850c6);let C=new i.Ay("guided_trials");u.g.SUPPORT_UPGRADE_DECISION_CANVAS_PAGE_BANNER;let b={elementName:"upgrade_now_cta",onClick:{enableClogAction:!0}},x={elementName:"see_upgrade_options_cta",onClick:{enableClogAction:!0}},A={elementName:"compare_free_vs_paid_cta",onClick:{enableClogAction:!0}},SyntheticCanvasHeaderBannerTrialExpiringSoon=({trialEndDate:e,standaloneCanvasTeamCount:t,canUserPurchase:a})=>{let i=(0,n.wA)(),u=(0,l.useCallback)(()=>{i((0,p.A)({canUserPurchase:a}))},[i,a]),N=(0,f.d4)(e=>(0,E.m6)(e,{action:"checkout",productLevel:E.i6.standard.id,entryPoint:"guided_trials_peek_upgrade_cta"}));return e?l.createElement(r.A,{uiComponentName:_.UiComponentName.GUIDED_TRIAL_CANVASES_PAGE_HEADER_BANNER},l.createElement("div",{className:"p-synthetic_canvas_header_banner_trial_expiring_soon__wrapper"},l.createElement("div",{className:"p-synthetic_canvas_header_banner_trial_expiring_soon","data-qa":"synthetic-canvas-header-banner-trial-expiring-soon"},l.createElement("div",{className:"p-synthetic_canvas_header_banner_trial_expiring_soon__content"},l.createElement("div",{className:"p-synthetic_canvas_header_banner_trial_expiring_soon__text"},l.createElement("div",{className:"p-synthetic_canvas_header_banner_trial_expiring_soon__headline"},(0,m.A)(C.rt("Canvases created on their own are locking soon"),{position:m.D.RIGHT_ALIGNED,isTrialVariant:!0,uiComponentVariant:_.UiComponentVariant.CANVAS_SYNTHETIC_VIEW_HEADER})),t&&t>0?l.createElement("div",{className:"p-synthetic_canvas_header_banner_trial_expiring_soon__subtext"},C.rt("If you choose not to upgrade by {trialEndDate}, <strong>{count} {count, plural, =1 {canvas} other {canvases}}</strong> your team created will be made <strong>view only.</strong> Upgrade to keep edit access for all your canvases.",{trialEndDate:(0,y.Pd)(e),count:t})):l.createElement("div",{className:"p-synthetic_canvas_header_banner_trial_expiring_soon__subtext"},C.rt("If you choose not to upgrade by {trialEndDate}, any created canvases outside of conversations will be made view only. Upgrade to create and share unlimited canvases. ",{trialEndDate:(0,y.Pd)(e)})),l.createElement("div",{className:"p-synthetic_canvas_header_banner_trial_expiring_soon__ctas"},a?l.createElement(s.z9,{autoClogProps:b,href:N,"data-qa":"synthetic-canvas-header-banner-trial-expiring-soon-upgrade-cta",size:"small"},C.t("Upgrade Now")):l.createElement(c.A,{feature:E.c4.UNLIMITED_CANVAS,autoClogProps:x,type:"outline",size:"small",entryPoint:d.b.SYNTHETIC_CANVAS_HEADER_BANNER_TRIAL_UPGRADE},C.t("See Upgrade Options")),l.createElement(s.Nm,{autoClogProps:A,onClick:u,className:"p-synthetic_canvas_header_banner_trial_expiring_soon__cta_compare","data-qa":"synthetic-canvas-header-banner-trial-expiring-soon-compare-plans-cta"},l.createElement(o.Ah,{name:"help"}),C.t("Compare free vs. paid plan")))),l.createElement("div",{role:"presentation",className:"p-synthetic_canvas_header_banner_trial_expiring_soon__image"}))))):null};SyntheticCanvasHeaderBannerTrialExpiringSoon.displayName="SyntheticCanvasHeaderBannerTrialExpiringSoon";let N=SyntheticCanvasHeaderBannerTrialExpiringSoon},0x42b88c77:(e,t,a)=>{"use strict";a.d(t,{f:()=>m});var l=a(0x3711e82d),n=a(0x45012309),r=a(0x11c82607b),i=a(0x183e20f52),s=a(0x1c56fcf95),o=a(0x1512257b8),c=a(0x19315733c),d=a(0xd1201dea),p=a(0x14ea3ce99);let m=(0,r.Ay)("Clog file result click",(e,t,{fileId:a,browserInstanceId:r})=>{let m=t(),u=(0,n.eo)({state:m}),{metadata:_,results:E,page:f,sort:y}=(0,s.gK)(m,r),C=_?.[a]?.iid,b=E&&E[f].indexOf(a),x=(0,p.Lp)(m,a);u.track(l.EventId.SEARCH_CLICK,{...(0,d.D)(m,r),...(0,c.M)(m,e,r),click_target_type:o.v.FILE,click_iid:C,click_user_id:x.user,click_file_id:a,click_position:b,click_file_type:x.filetype}),u.track(l.EventId.SEARCH_RESULT_CLICK,{...(0,d.D)(m,r),...(0,c.M)(m,e,r),click_target_type:o.v.FILE,click_iid:C,click_user_id:x.user,click_file_id:a,click_position:b,click_file_type:x.filetype}),"recommended"===y&&e((0,i.aV)({position:b,id:a,selectedType:"file"}))});m.meta={name:"clogFileResultClick",key:"createThunkClogFileResultClick",description:"Clog file result click"}},0x137f0da99:(e,t,a)=>{"use strict";a.d(t,{J:()=>o});var l=a(0xe874a88a),n=a(0x1f3226107),r=a(0x11c82607b),i=a(0x14ea3ce99),s=a(0x23e1fed85);let o=(0,r.Ay)("Edit file canvas template mode",(e,t,{fileId:a})=>(0,i.Lp)(t(),a)?e((0,n.$y)({fileId:a,isCanvasTemplate:!0})).then(({file:t})=>{e((0,s.b)({files:[t]}))}):l.S.reject(Error("Missing file")));o.meta={name:"createCanvasTemplate",key:"createThunkCreateCanvasTemplate",description:"Edit file canvas template mode"}},0x201a9ec20:(e,t,a)=>{"use strict";a.d(t,{L:()=>canUserCreateCanvasTemplates});var l=a(0x1aba0c452),n=a(0x167d76333),r=a(0xa1832ae4),i=a(0xb8504a42),s=a(0x5c354532),o=a(0x1ee439e69);function canUserCreateCanvasTemplates(e){let t=(0,o.H7)(e),a=(0,i.r7)(t),c=(0,r.qR)(t);return!!(0,n.F)(e)&&((0,s.I5)(e)&&(a||c)||(0,l.N)(e))}}}]);
//# sourceMappingURL=https://slack.com/source-maps/bv1-13/gantry-v2-async-client-browse-unified-files-view.987ae6236e83990a97da.min.js.mapØA
—Eoúô