(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8624],{27300:function(a,b,c){var d=c(8180).w_;a.exports.FiChevronDown=function(a){return d({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"6 9 12 15 18 9"}}]})(a)}},20412:function(a,b,c){var d=c(85246),e=c(62034),f=c(68286),g=c(36060),h=c(93746),i=c(56974),j=g(function(a,b){var c=i(b);return h(c)&&(c=void 0),h(a)?d(a,e(b,1,h,!0),f(c,2)):[]});a.exports=j},56974:function(a){a.exports=function(a){var b=null==a?0:a.length;return b?a[b-1]:void 0}},78624:function(a,b,c){"use strict";c.r(b),c.d(b,{"__N_SSP":function(){return ay},default:function(){return az}});var d=c(52322),e=c(2784),f=c(97729),g=c.n(f),h=c(89800),i=c(53247),j=c(31213),k=c(24595),l=c(90246),m=c(98788),n=c(70865),o=c(96670),p=c(66383),q=c(92228),r=c(94776),s=c.n(r),t=c(57800),u=c(33379),v=c(90047),w=c(57440),x=c(30677),y=c(26297),z=c(50930),A=c(63397),B=c(32952),C=c(51274),D=c(1878),E=c(83052),F=c(80767),G=c(58400),H=c(12896),I=c(67355),J=c(62036),K=c(83621),L=c(27122),M=c(31956),N=c(57713),O=c(27420),P=c(12365),Q=c(13191),R=c(62933),S=c(26984),T=new R.default({access:new S.ZP().oneOf(Object.values([J.folderAccountAccess.MEMBER,J.folderAccountAccess.VIEWER])),inviteList:(0,C.getSendToListYupValidator)({})}),U=function(a){var b=a.accountList,c=a.allowViewer,f=a.isDisabled,g=void 0!==f&&f,i=a.folderID,j=a.onSubmit,k=(0,p.Z)(e.useState(function(){return{access:J.folderAccountAccess.MEMBER,inviteList:[]}}),1)[0],l=e.useRef({clearMentionNodeCount:function(){}}),m=function(a,b){var c;j(a,b),null===(c=l.current)|| void 0===c||c.clearMentionNodeCount()};return(0,d.jsx)(A.Formik,{initialValues:k,onSubmit:m,validateOnChange:!1,validateOnMount:!1,validationSchema:T,children:function(a){var e=a.errors,f=a.handleSubmit,j=a.isValid,k=a.isSubmitting,m=a.setErrors,p=a.setFieldValue;return(0,d.jsxs)(h.x.form,{display:"flex",id:"folder-share-form",onSubmit:f,children:[(0,d.jsx)(A.Field,{name:"inviteList",children:function(a){var e=a.field;return(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(h.x.div,{"aria-label":"inviteList",w:"100%",children:(0,d.jsx)(N.InputWithMentionContainer,(0,o.Z)((0,n.Z)({},e),{accountList:b,"aria-label":"email",borderRadius:c?"0.5rem 0 0 0.5rem":"0.5rem",filterMembersOfFolderID:i,hideHeaders:!0,onChange:function(a){p("inviteList",(0,z.Z)(a.map(function(a){return"text"===a.type?{mentionType:M.mentionType.EMAIL,name:a.text}:a})))},onFocus:function(){return m({})},p:"unset",placeholder:"Enter a name or email",position:"relative",ref:l,showMentionsByDefault:!1}))})})}}),c?(0,d.jsx)(A.Field,{name:"access",children:function(a){var b=a.field;return(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(H.Select,(0,o.Z)((0,n.Z)({"aria-label":"Access",autoFocus:!0,borderRadius:"0 0.5rem 0.5rem 0",boxShadow:{focus:"none"},color:"onBGSubtle",disabled:g,display:"flex",flexShrink:"0",maxWidth:"30%",minWidth:"7rem",onFocus:function(){return m({})},style:{textAlignLast:"right"}},b),{iconOffset:2,marginBottom:"1.2rem",children:[(0,d.jsx)("option",{value:J.folderAccountAccess.MEMBER,children:"Member"},J.folderAccountAccess.MEMBER),"(",(0,d.jsx)("option",{value:J.folderAccountAccess.VIEWER,children:"Viewer"},J.folderAccountAccess.VIEWER)]}))})}}):null,(0,d.jsx)(h.x.div,{ml:"1rem",children:(0,d.jsx)(E.ButtonPrimary,{disabled:k|| !(0,K.h)(e)&&!j||g,flexShrink:0,form:"folder-share-form",type:"submit",children:"Invite"})})]})}})},V=function(a){var b=a.item,c=a.isDisabled,f=void 0!==c&&c,g=a.onClick,h=(0,p.Z)(e.useState(function(){return f}),2),i=h[0],j=h[1],k=e.useCallback((0,m.Z)(s().mark(function a(){return s().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,j(!0),a.next=4,null==g?void 0:g(b);case 4:a.next=9;break;case 6:a.prev=6,a.t0=a.catch(0),j(!1);case 9:case"end":return a.stop()}},a,null,[[0,6]])})),[b,g]);return(0,d.jsx)(F.ButtonSecondary,{"aria-label":"resend-invite",disabled:i,display:{_:"none",sm:"inline-flex"},onClick:k,children:"Resend"})},W=function(a){var b,c=a.deletable,f=void 0===c||c,g=a.isDisabled,h=void 0!==g&&g,i=a.item,j=a.onClick,k=(0,p.Z)(e.useState(function(){return h}),2),l=k[0],q=k[1],r=e.useCallback((b=(0,m.Z)(s().mark(function a(b){var c;return s().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return c=b.target.value,a.prev=1,q(!0),a.next=5,null==j?void 0:j((0,o.Z)((0,n.Z)({},i),{access:c})).catch(function(){});case 5:return q(!1),a.abrupt("return");case 9:a.prev=9,a.t0=a.catch(1),q(!1);case 12:case"end":return a.stop()}},a,null,[[1,9]])})),function(a){return b.apply(this,arguments)}),[i,j]);return(0,d.jsxs)(H.Select,{"aria-label":"Change Member role",backgroundColor:"transparent",boxShadow:{focus:"none"},disabled:l,onChange:r,value:i.access||J.folderAccountAccess.MEMBER,children:[(0,d.jsx)("option",{disabled:"invite"===i.type,value:J.folderAccountAccess.ADMIN,children:"Admin"},J.folderAccountAccess.ADMIN),(0,d.jsx)("option",{disabled:!f,value:J.folderAccountAccess.MEMBER,children:"Member"},J.folderAccountAccess.MEMBER),i.access===J.folderAccountAccess.VIEWER?(0,d.jsx)("option",{value:J.folderAccountAccess.VIEWER,children:"Viewer"},J.folderAccountAccess.VIEWER):null,(0,d.jsx)("option",{disabled:!f,value:J.folderAccountAccess.NONE,children:"Remove"},J.folderAccountAccess.NONE)]})},X=function(a){var b,c=a.accountID,f=a.accountList,g=a.onCopyLinkClick,i=a.onUpdateAccountAccessClick,j=a.onInviteSubmit,k=a.onFolderLinkAccessChange,l=a.onFolderWorkspaceAccessChange,q=a.onResendClick,r=a.folder,t=a.isDisabled,u=(0,y.Z)(a,["accountID","accountList","onCopyLinkClick","onUpdateAccountAccessClick","onInviteSubmit","onFolderLinkAccessChange","onFolderWorkspaceAccessChange","onResendClick","folder","isDisabled"]),v=e.useMemo(function(){return(0,z.Z)(r.accountList.map(function(a){return(0,o.Z)((0,n.Z)({},a),{type:"account"})})).concat((0,z.Z)(r.inviteList.map(function(a){return(0,o.Z)((0,n.Z)({},a),{type:"invite"})}))).filter(function(a){return"invite"===a.type||!(0,Q.l)(null==a?void 0:a.name)}).sort(function(a,b){var c="account"===a.type&&a.name||a.email,d="account"===b.type&&b.name||b.email;return c.localeCompare(d)})},[r]),w=(0,p.Z)(e.useState(!1),2),x=w[0],A=w[1],C=(b=(0,m.Z)(s().mark(function a(){var b,c,d,e=arguments;return s().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:for(c=Array(b=e.length),d=0;d<b;d++)c[d]=e[d];return a.prev=1,A(!0),a.next=5,null==j?void 0:j.apply(void 0,(0,z.Z)(c));case 5:c[1].resetForm();case 6:return a.prev=6,A(!1),a.finish(6);case 9:case"end":return a.stop()}},a,null,[[1,,6,9]])})),function(){return b.apply(this,arguments)}),F=(0,p.Z)(e.useState(null==r?void 0:r.linkAccess),2),J=F[0],K=F[1],M=(0,p.Z)(e.useState(null==r?void 0:r.workspaceAccess),2),N=M[0],R=M[1],S=e.useCallback(function(a){var b=a.target.value;null==k||k(b),K(b)},[k,K]),T=e.useCallback(function(a){var b=a.target.value;null==l||l(b),R(b)},[l]);return(0,d.jsxs)(h.x.div,(0,o.Z)((0,n.Z)({display:"flex",flexDirection:"column",h:"100%"},u),{children:[(0,d.jsx)(h.x.div,{display:"flex",flexGrow:1,gap:"0.5rem",overflow:"hidden",pb:"1rem",children:(0,d.jsxs)(h.x.div,{display:"flex",flexDirection:"column",flexGrow:1,minWidth:0,children:[(0,d.jsx)(U,{accountList:f,allowViewer:(0,L.isDefaultFolder)(r.type),folderID:r.id,isDisabled:x,onSubmit:C}),(0,d.jsxs)(h.x.div,{"aria-label":"user List",flexGrow:1,mr:"5.5rem",overflowY:"auto",pt:"1rem",children:[(0,L.isWorkspaceFolder)(r.type)?null:(0,d.jsxs)(d.Fragment,{children:[(0,O.isDefaultWorkspace)(r.workspace)?(0,d.jsxs)(h.x.div,{alignItems:"center",display:"flex",gap:"1rem",h:"3.5rem",children:[(0,d.jsx)(h.x.div,{alignItems:"center",borderRadius:"50%",display:"flex",flex:"0 0 auto",h:"2rem",justifyContent:"center",w:"2rem",children:(0,d.jsx)(P.IconFromURLOrEmoji,{icon:r.workspace.logo,w:"2.5rem"})}),(0,d.jsxs)(h.x.div,{"aria-label":"anyone from workspace",flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",children:["Anyone from ",r.workspace.name]}),(0,d.jsx)(h.x.div,{display:"flex",flex:"0 0 auto",justifyContent:"flex-end",children:(0,d.jsxs)(H.Select,{backgroundColor:"transparent",boxShadow:{focus:"none"},disabled:t,justifyContent:"flex-end",onChange:T,style:{textAlignLast:"right"},value:N,children:[(0,d.jsx)("option",{dir:"rtl",value:I.z.NONE,children:"No access"},I.z.NONE),(0,d.jsx)("option",{dir:"rtl",value:I.z.VIEWER,children:"Can view"},I.z.VIEWER),(0,d.jsx)("option",{dir:"rtl",value:I.z.MEMBER,children:"Can join as a member"},I.z.MEMBER)]})})]}):null,(0,d.jsxs)(h.x.div,{alignItems:"center","aria-label":"anyone with link",display:"flex",gap:"1rem",h:"3.5rem",children:[(0,d.jsx)(h.x.div,{alignItems:"center",borderColor:"bg03",borderRadius:"50%",borderWidth:"1px",display:"flex",flex:"0 0 auto",h:"2rem",justifyContent:"center",w:"2rem",children:(0,d.jsx)(D.Icon,{component:B.FiLink})}),(0,d.jsx)(h.x.div,{flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",children:"Anyone with the link"}),(0,d.jsx)(h.x.div,{display:"flex",flex:"0 0 auto",justifyContent:"flex-end",children:(0,d.jsxs)(H.Select,{backgroundColor:"transparent",boxShadow:{focus:"none"},disabled:t,justifyContent:"flex-end",onChange:S,style:{textAlignLast:"right"},value:J,children:[(0,d.jsx)("option",{dir:"rtl",value:I.z.NONE,children:"No access"},I.z.NONE),(0,d.jsx)("option",{dir:"rtl",value:I.z.VIEWER,children:"Can view"},I.z.VIEWER),(0,d.jsx)("option",{dir:"rtl",value:I.z.MEMBER,children:"Can join as a member"},I.z.MEMBER)]})})]})]}),v.map(function(a){return(0,d.jsxs)(h.x.div,{alignItems:"center",display:"flex",children:[(0,d.jsx)(G.AvatarHero,{h:"3.5rem",name:"account"===a.type?a.name:a.email,opacity:"account"===a.type?1:.6,src:"account"===a.type?a.avatar:void 0,children:(0,d.jsxs)(h.x.div,{overflow:"hidden",children:[(0,d.jsx)(h.x.div,{"aria-label":"Account name",ml:"1rem",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",children:"account"===a.type?a.name:a.email}),(0,d.jsx)(h.x.div,{color:"onBGSubtle",fontStyle:"invite"===a.type?"italic":"normal",ml:"1rem",text:"smallText",children:"invite"===a.type?"Pending invite":null})]})}),(0,d.jsxs)(h.x.div,{display:"flex",flexGrow:1,justifyContent:"flex-end",children:["invite"===a.type&&Date.now()-Number(new Date(a.sentAt))>1e3&&(0,d.jsx)(V,{item:a,onClick:q}),(0,d.jsx)(W,{deletable:c!==a.id,isDisabled:t,item:a,onClick:i})]})]},a.id)})]})]})}),(0,d.jsx)(h.x.div,{alignItems:"center",backgroundColor:"bg",bottom:0,boxShadow:"listFooter",display:"flex",flexShrink:0,h:"4.5rem",pb:"1rem",position:"sticky",w:"100%",zIndex:2,children:(0,L.isWorkspaceFolder)(r.type)?null:(0,d.jsx)(E.ButtonPrimary,{onClick:g,children:"Copy folder link"})})]}))},Y=c(65508),Z=c(8576),$=c(97978),_=c(78981),aa=c(27453),ab=c(31215),ac=c(8511),ad=c(20412),ae=c.n(ad),af=c(6318);function ag(){var a=(0,q.Z)(["\n  fragment FolderShareContainerFragment on Query {\n    account {\n      id\n    }\n    folder(id: $id) {\n      url\n      accountList {\n        access\n        avatar\n        email\n        id\n        name\n      }\n      inviteList {\n        email\n        id\n        access\n        sentAt\n      }\n      id\n      type\n      linkAccess\n      workspaceAccess\n      workspaceID\n      workspace {\n        id\n        logo\n        name\n        type\n      }\n    }\n  }\n"]);return ag=function(){return a},a}function ah(){var a=(0,q.Z)(["\n  query FolderShareContainerQuery($id: ID!) {\n    ...FolderShareContainerFragment\n    ...FolderAndFriendListContainerFragment\n  }\n\n  ","\n  ","\n"]);return ah=function(){return a},a}function ai(){var a=(0,q.Z)(["\n  mutation FolderShareContainerFolderInviteCreateMutation(\n    $input: FolderInviteCreateInput!\n  ) {\n    folderInviteCreate(input: $input) {\n      id\n    }\n  }\n"]);return ai=function(){return a},a}function aj(){var a=(0,q.Z)(["\n  mutation FolderShareContainerFolderUpdateAccountAccessMutation(\n    $id: ID!\n    $input: FolderUpdateAccountAccessInput!\n  ) {\n    folderUpdateAccountAccess(id: $id, input: $input) {\n      id\n      accountList {\n        access\n        avatar\n        email\n        id\n        name\n      }\n    }\n  }\n"]);return aj=function(){return a},a}function ak(){var a=(0,q.Z)(["\n  mutation FolderShareContainerFolderInviteDeleteMutation($id: ID!) {\n    folderInviteDelete(id: $id) {\n      id\n    }\n  }\n"]);return ak=function(){return a},a}function al(){var a=(0,q.Z)(["\n  mutation FolderShareContainerFolderInviteResendMutation($id: ID!) {\n    folderInviteResend(id: $id) {\n      id\n      sentAt\n    }\n  }\n"]);return al=function(){return a},a}function am(){var a=(0,q.Z)(["\n  mutation FolderShareContainerFolderUpdateLinkAccess(\n    $id: ID!\n    $input: FolderUpdateLinkAccessInput!\n  ) {\n    folderUpdateLinkAccess(id: $id, input: $input) {\n      id\n      linkAccess\n      accountList {\n        access\n        avatar\n        email\n        id\n        name\n      }\n    }\n  }\n"]);return am=function(){return a},a}function an(){var a=(0,q.Z)(["\n  mutation FolderShareContainerFolderUpdateWorkspaceAccessMutation(\n    $id: ID!\n    $input: FolderUpdateWorkspaceAccessInput!\n  ) {\n    folderUpdateWorkspaceAccess(id: $id, input: $input) {\n      id\n      workspaceAccess\n      accountList {\n        access\n        avatar\n        email\n        id\n        name\n      }\n    }\n  }\n"]);return an=function(){return a},a}var ao=(0,t.Ps)(ag()),ap=(0,t.Ps)(ah(),ao,ac.folderAndFriendListContainerFragment),aq=(0,t.Ps)(ai()),ar=(0,t.Ps)(aj()),as=(0,t.Ps)(ak()),at=(0,t.Ps)(al()),au=(0,t.Ps)(am()),av=(0,t.Ps)(an()),aw=function(){var a,b,c,f,g,h,j=(0,ab.E)(),k=((0,Z.$_)()||{}).slug,l=(0,$.wK)()||{},q=l.id,r=l.slug,t=(0,af.useAnalyticsListener)().trackEvent,y=(0,x.useQuery)(ap,{variables:{id:q}}),z=y.data,A=void 0===z?{}:z,B=A.account,C=A.folder,D=(0,ac.useFolderAndFriendList)(),E=D.accountList,F=e.useMemo(function(){return ae()(E,(null==C?void 0:C.accountList)||[],"id")},[E,null==C?void 0:C.accountList]),G=(0,p.Z)((0,u.D)(ar),1),H=G[0],I=(0,p.Z)((0,u.D)(as,{awaitRefetchQueries:!0,refetchQueries:[{query:ap,variables:{id:null==C?void 0:C.id}},]}),1),J=I[0],K=(0,p.Z)((0,u.D)(aq,{awaitRefetchQueries:!0,refetchQueries:[{query:ap,variables:{id:null==C?void 0:C.id}},]}),1),L=K[0],N=(0,p.Z)((0,u.D)(au),1),O=N[0],P=(0,p.Z)((0,u.D)(av),1),Q=P[0],R=(0,p.Z)((0,u.D)(at),1),S=R[0],T=e.useCallback(function(a){if(null==C?void 0:C.url){var b;if(t("folderLinkCopied",{folderID:null==C?void 0:C.id,folderSlug:r,workspaceID:null==C?void 0:null===(b=C.workspace)|| void 0===b?void 0:b.id,workspaceSlug:k}),(0,aa.cmdCtrlPressed)(a,j)){window.open(C.url,"_blank");return}navigator.clipboard.writeText(C.url).catch(function(){}),v.toast.info("Link copied to clipboard")}},[null==C?void 0:C.url,null==C?void 0:C.id,null==C?void 0:null===(a=C.workspace)|| void 0===a?void 0:a.id,r,k,t,j,]),U=e.useCallback((b=(0,m.Z)(s().mark(function a(b){var c,d,e,f;return s().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(c=b.access,d=b.id,f={id:d,type:e=b.type},!(null==C?void 0:C.id)){a.next=12;break}if("invite"!==e){a.next=9;break}return a.next=6,J({variables:{id:d}});case 6:t("folderDeleteInvite",f),a.next=12;break;case 9:return a.next=11,H({variables:{id:C.id,input:{access:c,accountID:d}}});case 11:t("folderUpdatedAccountAccess",(0,o.Z)((0,n.Z)({},f),{access:c}));case 12:case"end":return a.stop()}},a)})),function(a){return b.apply(this,arguments)}),[null==C?void 0:C.id,t,J,H]),V=e.useCallback((c=(0,m.Z)(s().mark(function a(b,c){var d,e,f,g;return s().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(d=b.inviteList,e=b.access,f=c.setFieldValue,!(null==C?void 0:C.id)){a.next=7;break}return g=null==d?void 0:d.map(function(a){return a.mentionType===M.mentionType.EMAIL?a.name:a.id}),a.next=5,L({variables:{input:{access:e,folderID:C.id,inviteList:g}}});case 5:g.forEach(function(a){t("folderInviteSent",(0,o.Z)((0,n.Z)({},(0,w.J)(a)?{email:a}:{accountID:a}),{from:"sharePage"}))}),f("inviteList",[]);case 7:case"end":return a.stop()}},a)})),function(a,b){return c.apply(this,arguments)}),[null==C?void 0:C.id,t,L]),W=e.useCallback((f=(0,m.Z)(s().mark(function a(b){return s().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!(null==C?void 0:C.id)){a.next=4;break}return a.next=3,O({variables:{id:C.id,input:{linkAccess:b}}});case 3:t("folderUpdatedLinkAccess",{linkAccess:b});case 4:case"end":return a.stop()}},a)})),function(a){return f.apply(this,arguments)}),[null==C?void 0:C.id,t,O]),ad=e.useCallback((g=(0,m.Z)(s().mark(function a(b){return s().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!(null==C?void 0:C.id)){a.next=4;break}return a.next=3,Q({variables:{id:C.id,input:{workspaceAccess:b}}});case 3:t("folderUpdatedWorkspaceAccess",{linkAccess:b});case 4:case"end":return a.stop()}},a)})),function(a){return g.apply(this,arguments)}),[null==C?void 0:C.id,t,Q]),ag=e.useCallback((h=(0,m.Z)(s().mark(function a(b){var c;return s().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return c=b.id,a.prev=1,a.next=4,S({variables:{id:c}});case 4:t("folderInviteResent",{inviteID:c}),v.toast.info("Invite resent"),a.next=11;break;case 8:a.prev=8,a.t0=a.catch(1),(0,Y.e)(a.t0);case 11:case"end":return a.stop()}},a,null,[[1,8]])})),function(a){return h.apply(this,arguments)}),[S,t]),ah=e.useMemo(function(){return B&&!(0,_.hasAdminAccess)(null==C?void 0:C.accountList.find(function(a){return a.id===B.id}))},[B,null==C?void 0:C.accountList]);return C?(0,d.jsx)(X,{accountList:F,flexGrow:1,folder:C,isDisabled:ah,maxWidth:"38.875rem",onCopyLinkClick:T,onFolderLinkAccessChange:W,onFolderWorkspaceAccessChange:ad,onInviteSubmit:V,onResendClick:ag,onUpdateAccountAccessClick:U}):(0,d.jsx)(i.a,{})},ax=function(){var a=(0,$.wK)()||{},b=a.name,c=a.type,f=(0,L.isWorkspaceFolder)(c)?"Invite teammates to ".concat(b):"Share ".concat(b),m=e.useRef();return(e.useEffect(function(){m.current=document.querySelector('[aria-label="Add people"]')||m.current},[]),b)?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(g(),{children:(0,d.jsx)("title",{children:f})}),(0,d.jsx)(j.e,{children:(0,d.jsx)(l.Mh,{})}),(0,d.jsx)(k._,{children:(0,d.jsxs)(h.x.div,{display:"flex",flexDirection:"column",flexGrow:1,px:{_:"1rem",md:"10.75rem"},w:"100%",children:[(0,d.jsx)(h.x.div,{paddingBottom:"2rem",paddingTop:"1.5rem",text:"subTitle",children:f}),(0,d.jsx)(aw,{})]})})]}):(0,d.jsx)(i.a,{})},ay=!0,az=ax},83621:function(a,b,c){"use strict";c.d(b,{h:function(){return d}});var d=function(a){return!!Object.values(a).some(function(a){return a.endsWith("cannot be empty")})}},57440:function(a,b,c){"use strict";c.d(b,{J:function(){return g}});var d=c(39029),e=c(80251),f=c(31956),g=function(a){return new d.default().isValidSync(a)};new e.default().test("selectedMentionsList","Invalid mention",function(a){if(!a)return!1;var b=!0,c=!1,d=void 0;try{for(var e,h=a[Symbol.iterator]();!(b=(e=h.next()).done);b=!0){var i=e.value;if("text"===i.type&&!g(i.text)||i.id===f.mentionType.EMAIL&&!g(i.email))return!1}}catch(j){c=!0,d=j}finally{try{b||null==h.return||h.return()}finally{if(c)throw d}}return!0})},26984:function(a,b,c){"use strict";b.ZP=void 0;var d,e=(d=c(57041),d&&d.__esModule?d:{default:d});let f=e.default;b.ZP=f,(function a(){return new f}).prototype=f.prototype},12896:function(a,b,c){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.Select=void 0;let d=c(5163),e=(0,d.__importDefault)(c(2784)),f=c(45469),g=c(27300),h=c(89800),i=c(1878),j=a=>{var{className:b,display:c,iconOffset:j=1,maxWidth:k,w:l,disabled:m}=a,n=(0,d.__rest)(a,["className","display","iconOffset","maxWidth","w","disabled"]);let o=(0,f.useTheme)();return e.default.createElement(h.x.div,{className:b,display:c,maxWidth:k,position:"relative",w:l},e.default.createElement(h.x.select,Object.assign({appearance:"none",backgroundColor:"bg02",borderRadius:"0.5rem",boxShadow:{_:"none",focus:`0 0 0 1px ${o.colors.onBGSubtle}`},color:"onBG02",disabled:m,outline:"none",padding:"0.625rem 2.25rem 0.625rem 0.75rem",text:"body",w:"100%"},n,m?{cursor:"disabled"}:{cursor:"pointer"})),e.default.createElement(i.Icon,{component:g.FiChevronDown,pointerEvents:"none",position:"absolute",right:"0.625rem",top:`calc((100% - ${j}rem) / 2)`}))};b.Select=j},13191:function(a,b){"use strict";b.l=void 0,b.l=a=>null==a}}])
//# sourceMappingURL=8624-d71bd05ea318253f.js.map