1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4530],{5597:(t,e,o)=>{"use strict";o.d(e,{A:()=>r});var a=o(37876),l=o(60230),n=o(6907),i=o(25296);let r=t=>{let{label:e,items:o,defaultValue:r,id:s,onChange:p,maxWidth:d,widht:x,isfull:c=!1}=t,m=(0,n.u)(),u={PaperProps:{style:{width:{widht:x},maxHeight:224,border:"1px solid ".concat(m.palette.promptsColorPalette.newBgColor3)}}};return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(i.A,{id:s,select:!0,defaultValue:r,label:e,onChange:t=>{p(t.target.value,s)},SelectProps:{MenuProps:u},sx:{width:"100%","& .MuiInputLabel-root":{fontSize:"14px",fontStyle:"normal",fontWeight:600,color:"".concat(m.palette.promptsColorPalette.mainText," !important")},"&.MuiTextField-root":{margin:"0 !important"},"& .MuiInputBase-root":{border:"1px solid ".concat(m.palette.promptsColorPalette.newBgColor3),...c?{background:m.palette.promptsColorPalette.bgBlackInput}:{backgroundColor:"".concat(m.palette.promptsColorPalette.black300," !important")},borderRadius:"4px !important","&.Mui-focused":{boxShadow:"none !important"},"& .MuiInputBase-input":{padding:"4px 13px !important"}},"& .MuiInputBase-root, .MuiInputBase-input":{width:"100%",fontSize:c?"14px":"16px",fontWeight:"500",lineHeight:c?"20px":"24px",color:"".concat(m.palette.promptsColorPalette.mainText," !important"),"& .MuiSvgIcon-root ":{color:"".concat(m.palette.promptsColorPalette.mainText," !important")}},"& .MuiSelect-select ":{display:"flex",alignItems:"end"},"&.MuiFormControl-root ":{width:c?"100% !important":"".concat(d,"px !important")}},children:o.map(t=>(0,a.jsxs)(l.A,{component:"div",value:t.value,sx:{"& .MuiSelect-select":{color:m.palette.promptsColorPalette.mainText}},children:[t.icon&&(0,a.jsx)("img",{src:t.icon,alt:t.label}),t.label]},t.value))})})}},15914:(t,e,o)=>{"use strict";o.r(e),o.d(e,{default:()=>tt});var a=o(37876),l=o(98086),n=o(59456),i=o(6907),r=o(81003),s=o(60595),p=o(95389),d=o(72907),x=o(12201),c=o(35096),m=o(22208),u=o(52825),h=o(53612),g=o(21173),b=o(32740);let A=()=>{var t,e;let o=(0,i.u)(),l=(0,r.A)(t=>t.breakpoints.down("md")),{listView:n,deleteModalOpen:A,setDeleteModalOpen:j,handleDeleteSubmit:f,storageData:w,isFetching:C,clearPagination:v,outerStorageFolderData:y}=(0,x.P)();return(0,a.jsxs)("div",{children:[n?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(b.A,{})}):(0,a.jsxs)(a.Fragment,{children:[l?(0,a.jsx)(a.Fragment,{children:(null==y?void 0:y.folder)&&(null==y||null==(t=y.folder)?void 0:t.length)>0?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(s.A,{className:l?"":"common-border-shadow-2",sx:{marginBottom:"4px",[o.breakpoints.down("md")]:{borderRadius:"0"}},children:(0,a.jsx)(p.A,{sx:{padding:"12px !important"},children:(0,a.jsx)(g.A,{})})})}):(0,a.jsx)(a.Fragment,{})}):(0,a.jsx)(g.A,{}),C?(0,a.jsx)(d.A,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(312px, 1fr))",gap:"24px"},children:null==(e=Array.from({length:8}))?void 0:e.map((t,e)=>(0,a.jsx)(d.A,{children:(0,a.jsx)(u.I,{})},e))}):w&&w.length>0?l?(0,a.jsx)(s.A,{className:l?"":"common-border-shadow-2",sx:{marginBottom:"40px",[o.breakpoints.down("sm")]:{borderRadius:0}},children:(0,a.jsx)(p.A,{sx:{padding:"12px !important"},children:(0,a.jsx)(c.A,{})})}):(0,a.jsx)(c.A,{}):(0,a.jsx)(d.A,{sx:{minHeight:"calc(100vh - 550px) !important",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,a.jsx)(h.A,{img:"light"===o.palette.mode?"/images/emptyImage/storage-Light.svg":"/images/emptyImage/storage.svg",title:"There are no files",subText:""})})]}),A&&(0,a.jsx)(m.A,{isShowDelete:A,setIsShowDelete:j,submitEvent:()=>{v(),f()},modalTitleName:"Are you sure you want to delete selected files/folders?",isClass:!0})]})};var j=o(14232),f=o(1992),w=o(23369),C=o(71918),v=o(24779),y=o(84812),P=o(35003),S=o(39467),I=o(44365),k=o(41316),z=o(85811),T=o(35244),W=o(88713),M=o(9395),B=o(13865),F=o(77898),R=o(53206),N=o(35573),H=o(25296),E=o(70970),_=o(5597),O=o(62712),D=o(89099),L=o(34356),G=o(83067),V=o(40419),U=o(21733),X=o(65675);let q=t=>{var e,o,l,p,c,m,u,h,g,b,A,w,C,v,y,S,I,k,z,W,M,B,N,H,E,_,q,Q,Z,$,J,K,Y,tt;let{}=t,te=(0,i.u)(),{push:to}=(0,D.useRouter)(),ta=(0,L.A)(),tl=(0,j.useContext)(U.E),{isFetching:tn,isPaginationFetching:ti}=(0,x.P)(),tr=(0,r.A)(t=>t.breakpoints.down("md")),ts=async()=>{try{return await (0,R.api)({endpoint:F.zu})}catch(t){}},{data:tp}=(0,f.useQuery)(["StorageDashboardData",tn,ti],ts);return(0,a.jsxs)(s.A,{className:tr?"":"common-border-shadow-2",sx:{p:"16px",flexGrow:1,[te.breakpoints.down("sm")]:{borderRadius:"0 ",padding:"12px",marginBottom:"4px"}},children:[(0,a.jsxs)(P.A,{sx:{fontWeight:700,fontSize:"18px",lineHeight:"24px",color:te.palette.promptsColorPalette.mainText2,display:"flex",alignItems:"center",gap:"4px","& svg":{width:"24px",height:"24px"}},children:[(0,a.jsx)(V.A,{icon:"storageIcon",sideBarColor:te.palette.promptsColorPalette.sidebarIconColor})," ",(0,T.t)("storage.storage")]}),tn||ti?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(O.A,{variant:"rounded",width:"100%",height:8,sx:{mb:"8px",mt:"16px"}}),(0,a.jsxs)(d.A,{sx:{display:"flex",gap:"8px",minHeight:"20px",justifyContent:"flex-start",alignItems:"center",width:"100%"},children:[(0,a.jsx)(O.A,{variant:"circular",width:20,height:20}),(0,a.jsx)(O.A,{variant:"circular",width:20,height:20}),(0,a.jsx)(O.A,{variant:"circular",width:20,height:20}),(0,a.jsx)(O.A,{variant:"circular",width:20,height:20}),(0,a.jsx)(O.A,{variant:"circular",width:20,height:20})]})]}):(0,a.jsxs)(d.A,{children:[(0,a.jsx)(d.A,{sx:{display:"flex",mb:"8px",mt:"16px",width:"100%",borderRadius:"4px",overflow:"hidden",background:te.palette.promptsColorPalette.newFinalBg},children:(e=[{color:"#498AE4",title:(0,T.t)("storage.documents"),size:null==tp||null==(l=tp.data)||null==(o=l.data)?void 0:o.totalDocumentSize},{color:te.palette.error.main,title:(0,T.t)("storage.photos"),size:null==tp||null==(c=tp.data)||null==(p=c.data)?void 0:p.totalPhotoSize},{color:"#A049E4",title:(0,T.t)("storage.videos"),size:null==tp||null==(u=tp.data)||null==(m
1=u.data)?void 0:m.totalVideoSize},{color:"#49E4C8",title:(0,T.t)("storage.audios"),size:null==tp||null==(g=tp.data)||null==(h=g.data)?void 0:h.totalAudioSize},{color:"#00ff00",title:(0,T.t)("storage.others"),size:null==tp||null==(A=tp.data)||null==(b=A.data)?void 0:b.totalOtherFileSize},{color:te.palette.promptsColorPalette.newFinalBg,title:"Remaining Storage",size:null==tp||null==(C=tp.data)||null==(w=C.data)?void 0:w.availableStorage}],e.map((t,e)=>{var o,l;return(0,a.jsx)(X.A,{placement:"bottom-start",title:(0,a.jsxs)(d.A,{sx:{textAlign:"center"},children:[(0,a.jsx)(P.A,{sx:{fontSize:"14px",lineHeight:"20px",fontWeight:"500",mb:"10px",color:te.palette.promptsColorPalette.mainText2},children:null==t?void 0:t.title}),(0,a.jsx)(P.A,{sx:{fontSize:"20px",lineHeight:"28px",fontWeight:"600",color:te.palette.promptsColorPalette.mainText2},children:(0,G.z3)(null==t?void 0:t.size)})]}),children:(0,a.jsx)("div",{className:"progress-bar-success",role:"progressbar",style:{width:"".concat((null==t?void 0:t.size)/(null==tp||null==(l=tp.data)||null==(o=l.data)?void 0:o.totalStorage)*100,"%"),minWidth:(null==t?void 0:t.size)===0?0:"".concat(4,"%"),height:"8px",backgroundColor:null==t?void 0:t.color,borderRight:" ".concat((null==t?void 0:t.size)===0||(null==t?void 0:t.title)==="Remaining Storage"?"px":"1px solid ".concat(te.palette.promptsColorPalette.newBgColor3)),fontWeight:"600"}})},e)}))}),(0,a.jsx)(d.A,{sx:{display:"flex",gap:"8px"},children:(v=[{title:(0,T.t)("storage.documents"),color:"#498AE4",size:null==tp||null==(S=tp.data)||null==(y=S.data)?void 0:y.totalDocumentSize},{title:(0,T.t)("storage.photos"),color:te.palette.error.main,size:null==tp||null==(k=tp.data)||null==(I=k.data)?void 0:I.totalPhotoSize},{title:(0,T.t)("storage.videos"),color:"#A049E4",size:null==tp||null==(W=tp.data)||null==(z=W.data)?void 0:z.totalVideoSize},{title:(0,T.t)("storage.audios"),color:"#49E4C8",size:null==tp||null==(B=tp.data)||null==(M=B.data)?void 0:M.totalAudioSize},{title:(0,T.t)("storage.others"),color:"#00ff00",size:null==tp||null==(H=tp.data)||null==(N=H.data)?void 0:N.totalOtherFileSize}],v.map((t,e)=>(0,a.jsx)(d.A,{children:(0,a.jsxs)(d.A,{sx:{display:"flex",gap:"4px",alignItems:"center"},children:[(0,a.jsx)(d.A,{sx:{width:"12px",height:"12px",backgroundColor:null==t?void 0:t.color,borderRadius:"50%",[te.breakpoints.down("sm")]:{width:"8px",height:"8px"}}}),(0,a.jsx)(P.A,{sx:{fontWeight:400,fontSize:14,lineHeight:"20px",color:te.palette.promptsColorPalette.mainText2,[te.breakpoints.down("sm")]:{fontSize:12}},children:null==t?void 0:t.title})]},e)})))})]}),(0,a.jsxs)(d.A,{sx:{mt:"16px",display:"flex",alignContent:"center",justifyContent:"flex-start",flexWrap:"wrap",gap:"16px"},children:[(0,a.jsxs)(P.A,{sx:{fontWeight:500,fontSize:"14px",lineHeight:"20px",color:te.palette.promptsColorPalette.subText},children:[(0,G.z3)("number"==typeof(null==tp||null==(_=tp.data)||null==(E=_.data)?void 0:E.totalUsage)?null==tp||null==(Q=tp.data)||null==(q=Q.data)?void 0:q.totalUsage:0)," ",(null==ta||null==(Z=ta.user)?void 0:Z.organizationSubRole)===n.$S.POA&&(0,a.jsxs)(a.Fragment,{children:["/"," ",(null==tp||null==(J=tp.data)||null==($=J.data)?void 0:$.totalStorage)?(K=(null==tp||null==(tt=tp.data)||null==(Y=tt.data)?void 0:Y.totalStorage)/1024/1024,K.toFixed()):0," ","GB"]})]}),(null==tl?void 0:tl.can("read",n.Iu.PROMPT_ENG_ORGANIZATION_ADMIN))&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.A,{sx:{width:"1px",height:"20px",background:te.palette.promptsColorPalette.mainText2}}),(0,a.jsx)(P.A,{sx:{fontWeight:500,fontSize:"14px",lineHeight:"20px",color:te.palette.promptsColorPalette.primary,cursor:"pointer",transition:"0.3s ease-in-out","&:hover":{color:te.palette.promptsColorPalette.mainText}},onClick:()=>to({pathname:"".concat(n.ij,"additional-storage")}),children:(0,T.t)("storage.upgradeStorage")}),(0,a.jsx)(d.A,{sx:{width:"1px",height:"20px",background:te.palette.promptsColorPalette.mainText2}}),(0,a.jsx)(P.A,{sx:{fontWeight:500,fontSize:"14px",lineHeight:"20px",color:te.palette.promptsColorPalette.primary,cursor:"pointer",transition:"0.3s ease-in-out","&:hover":{color:te.palette.promptsColorPalette.mainText}},onClick:()=>to({pathname:"".concat(n.ij,"additional-storage"),query:{hasDownGradeStorage:!0}}),children:(0,T.t)("storage.downgradeStorage")})]}),(0,a.jsx)(d.A,{sx:{width:"1px",height:"20px",background:te.palette.promptsColorPalette.mainText2}}),(0,a.jsx)(P.A,{sx:{fontWeight:500,fontSize:"14px",lineHeight:"20px",color:te.palette.promptsColorPalette.primary,cursor:"pointer",transition:"0.3s ease-in-out","&:hover":{color:te.palette.promptsColorPalette.mainText}},onClick:()=>to({pathname:"".concat(n.ij,"my-storage/clean-up")}),children:(0,T.t)("storage.cleanupStorage")})]})]})};
1var Q=o(62958),Z=o(47528),$=o(61575),J=o(37830);let K=()=>{let t=(0,i.u)(),[e,o]=(0,j.useState)(!1),{queryData:l}=(0,W.G)("folderId"),n=(0,r.A)(t=>t.breakpoints.down("md")),{setFilterType:c,filterType:u,listView:h,setListView:g,searchValue:b,setSearchValue:A,storageFileTypes:O,sortingValue:D,setSortingValue:L,infiniteRefetch:G,refetch:V,folderDataRefetch:U,allSelectedIds:X,setAllSelectedIds:K,clearPagination:Y,innerSortingValue:tt,setInnerSortingValue:te,openSortModel:to,setOpenSortModel:ta,openFilterModel:tl,setOpenFilterModel:tn,innerFilterValue:ti,setInnerFilterValue:tr}=(0,x.P)(),ts=async()=>{X&&(null==X?void 0:X.length)>0&&(Y(),await tc.mutateAsync({itemIds:X}))},tp=()=>{te('usm."createdAt"'),ta(!1)},td=()=>{tr("All"),tn(!1)},tx={"& .MuiFormControlLabel-label":{color:"".concat(t.palette.promptsColorPalette.mainText," !important")},"&.MuiFormGroup-root":{flexDirection:"column",gap:"16px"},"& .Mui-checked + .MuiTypography-root":{color:"".concat(t.palette.promptsColorPalette.mainText," !important")},"& .MuiFormControlLabel-root":{flexDirection:"row-reverse",m:"0 !important",justifyContent:"space-between",padding:"0 10px",fontSize:"16px",fontWeight:"500",lineHeight:"24px"},"& .MuiRadio-root":{padding:"0"}},tc=(0,f.useMutation)(async t=>await (0,R.api)({endpoint:F.Ud,payloadData:t}),{onSuccess:async t=>{(0,N.lA)(t)&&(l?await U():h?await V():await G(),K([]))}}),tm=null==O?void 0:O.map(t=>({value:t.fileType,label:t.fileType.toUpperCase()})),tu=[{label:"Created at",value:'usm."createdAt"'},{label:"Owner name",value:'u."firstName"'}],th=(0,f.useMutation)(async t=>await (0,R.api)({endpoint:F.EA,payloadData:t}),{onSuccess:t=>{(0,N.lA)(t)&&V()},onError:()=>{}}),tg=(0,a.jsxs)(d.A,{children:[tu&&(null==tu?void 0:tu.length)>0?(0,a.jsx)(d.A,{sx:{mb:"16px"},children:(0,a.jsx)(w.A,{row:!0,name:"sortType",id:"sortType",value:tt,onChange:t=>{te(t.target.value)},sx:tx,children:tu.map(t=>(0,a.jsx)(C.A,{value:t.value,label:t.label,control:(0,a.jsx)(v.A,{checkedIcon:(0,a.jsx)(J.A,{icon:"latestFilledRadioIcon"}),icon:(0,a.jsx)(J.A,{icon:"latestOutlineRadioIcon"})})},t.label))})}):(0,a.jsx)(a.Fragment,{}),(0,a.jsxs)(d.A,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"8px",mt:"10px",width:"100%"},children:[(0,a.jsx)(y.A,{variant:"outlined",color:"inherit",className:"btn-custom spacing-1 minh32 br6 auth-btn ".concat("light"===t.palette.mode?"btn-secondary-new":"btn-black"),onClick:tp,sx:{[t.breakpoints.down("sm")]:{minWidth:"calc(50% - 4px)"}},children:(0,T.t)("workflow.clearALl")}),(0,a.jsx)(y.A,{variant:"contained",className:"btn-custom btn-blue common-shadow-one minh32 br6",onClick:()=>{L(tt),ta(!1)},sx:{[t.breakpoints.down("sm")]:{minWidth:"calc(50% - 4px)"}},children:(0,T.t)("workflow.apply")})]})]}),tb=(0,j.useMemo)(()=>[{value:"All",label:"All"},...tm],[tm]),tA=(0,a.jsxs)(d.A,{children:[tb&&(null==tb?void 0:tb.length)>0?(0,a.jsx)(d.A,{sx:{mb:"16px"},children:(0,a.jsx)(w.A,{row:!0,name:"filterType",id:"filterType",value:ti,onChange:t=>{tr(t.target.value)},sx:tx,children:tb.map(t=>(0,a.jsx)(C.A,{value:t.value,label:t.label,control:(0,a.jsx)(v.A,{checkedIcon:(0,a.jsx)(J.A,{icon:"latestFilledRadioIcon"}),icon:(0,a.jsx)(J.A,{icon:"latestOutlineRadioIcon"})})},t.label))})}):(0,a.jsx)(a.Fragment,{}),(0,a.jsxs)(d.A,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"8px",mt:"10px",width:"100%"},children:[(0,a.jsx)(y.A,{variant:"outlined",color:"inherit",className:"btn-custom spacing-1 minh32 br6 auth-btn ".concat("light"===t.palette.mode?"btn-secondary-new":"btn-black"),onClick:td,sx:{[t.breakpoints.down("sm")]:{minWidth:"calc(50% - 4px)"}},children:(0,T.t)("workflow.clearALl")}),(0,a.jsx)(y.A,{variant:"contained",className:"btn-custom btn-blue common-shadow-one minh32 br6",onClick:()=>{c(ti),tn(!1)},sx:{[t.breakpoints.down("sm")]:{minWidth:"calc(50% - 4px)"}},children:(0,T.t)("workflow.apply")})]})]});return(0,a.jsxs)(a.Fragment,{children:[n?(0,a.jsx)(a.Fragment,{}):(0,a.jsx)(d.A,{sx:{marginBottom:"16px"},children:(0,a.jsxs)(d.A,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"8px",flexWrap:"wrap"},children:[(0,a.jsx)(d.A,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap"},children:(0,a.jsx)(P.A,{variant:"h5",sx:{p:0,fontSize:"20px",lineHeight:"32px",fontWeight:"700",color:t.palette.promptsColorPalette.mainText2},children:(0,T.t)("My Storage")})}),(0,a.jsx)(M.A,{action:B.C.CREATE,children:(0,a.jsxs)(y.A,{variant:"contained",className:"btn-custom btn-blue common-shadow-one minh32 br6",sx:{dis
1play:"flex",alignItems:"center",justifyContent:"center",gap:"4px"},onClick:async t=>{t.stopPropagation(),Y(),K([]),await th.mutateAsync()},children:[(0,T.t)("storage.createFolder"),(0,a.jsx)(z.In,{fontSize:"16px",icon:"tabler:plus"})]})})]})}),X&&(null==X?void 0:X.length)>0?(0,a.jsx)(Z.A,{}):(0,a.jsx)(a.Fragment,{children:n?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(d.A,{sx:{display:"flex",alignItems:"center",gap:"12px",width:"100%",position:"fixed",bottom:"0",left:"0",right:"0",zIndex:100,backgroundColor:"".concat(t.palette.promptsColorPalette.bgCalender),borderTop:"1px solid ".concat(t.palette.promptsColorPalette.borderColor)},children:[(0,a.jsx)(y.A,{variant:"text",color:"inherit",sx:{width:"100%",fontSize:"12px",lineHeight:"20px",borderRight:"1px solid ".concat(t.palette.promptsColorPalette.borderColor),borderRadius:"0"},onClick:()=>{ta(!0)},children:"Sort"}),(0,a.jsx)(y.A,{variant:"text",color:"inherit",sx:{width:"100%",fontSize:"12px",lineHeight:"20px"},onClick:()=>{tn(!0)},children:"Filter"})]}),(0,a.jsx)(s.A,{className:n?"":"common-border-shadow-2",sx:{marginBottom:"4px",[t.breakpoints.down("sm")]:{borderRadius:"0"}},children:(0,a.jsxs)(p.A,{sx:{padding:"12px !important"},children:[(0,a.jsxs)(d.A,{sx:{display:"flex",alignItems:"center",gap:"12px",marginBottom:"12px"},children:[(0,a.jsx)(H.A,{id:"input-with-icon-textfield",placeholder:(0,T.t)("common.search"),value:b,onChange:t=>A(t.target.value),InputProps:{startAdornment:(0,a.jsx)(S.A,{position:"start",children:(0,a.jsx)(z.In,{icon:"tabler:search",width:"16",height:"16",color:t.palette.promptsColorPalette.mainText2})})},sx:{maxWidth:"100%",flex:"1%","& .MuiInputBase-root":{border:"1px solid ".concat(t.palette.promptsColorPalette.newBgColor3),boxShadow:"none !important",borderRadius:"4px !important",backgroundColor:"".concat(t.palette.promptsColorPalette.black300," !important"),width:"100%",minHeight:"32px","& .MuiInputBase-input":{padding:"4.5px 13px 4.5px 0 !important",fontSize:"12px",lineHeight:"16px",color:t.palette.promptsColorPalette.mainText,fontWeight:400,minWidth:"262px"}},[t.breakpoints.down("sm")]:{maxWidth:"100%"}}}),(0,a.jsx)(y.A,{className:"btn-custom no-space ".concat(h?"btn-blue":"btn-black-new-38"),onClick:()=>{g(t=>!t)},sx:{minWidth:"32px !important",minHeight:"32px",height:"32px",borderRadius:"4px",border:"0 !important",boxShadow:"none !important","&:hover":{border:"0 !important"}},children:(0,a.jsx)(J.A,{icon:h?"GridIcon":"ListIcon"})})]}),(0,a.jsxs)(d.A,{sx:{display:"flex",alignItems:"center",gap:"12px"},children:[(0,a.jsx)(Q.A,{showButtonOnly:!0}),(0,a.jsx)(M.A,{action:B.C.CREATE,children:(0,a.jsxs)(y.A,{variant:"contained",className:"btn-custom btn-blue common-shadow-one minh32 br6",sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:"4px",flex:"1",[t.breakpoints.down("sm")]:{padding:"6px 10px !important"}},onClick:async t=>{t.stopPropagation(),Y(),K([]),await th.mutateAsync()},children:[(0,T.t)("storage.createFolder"),(0,a.jsx)(z.In,{fontSize:"16px",icon:"tabler:plus"})]})})]})]})})]}):(0,a.jsx)(d.A,{sx:{marginBottom:"16px"},className:"animate__animated animate__fadeIn animate__faster",children:(0,a.jsxs)(d.A,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"16px",flexWrap:"wrap"},children:[(0,a.jsx)(d.A,{sx:{display:"flex",alignItems:"center",gap:"12px"},children:(0,a.jsx)(H.A,{id:"input-with-icon-textfield",placeholder:(0,T.t)("common.search"),value:b,onChange:t=>A(t.target.value),InputProps:{startAdornment:(0,a.jsx)(S.A,{position:"start",children:(0,a.jsx)(z.In,{icon:"tabler:search",width:"16",height:"16",color:t.palette.promptsColorPalette.mainText2})})},sx:{maxWidth:"360px",flex:"1%","& .MuiInputBase-root":{border:"1px solid ".concat(t.palette.promptsColorPalette.newBgColor3),boxShadow:"none !important",borderRadius:"4px !important",backgroundColor:"".concat(t.palette.promptsColorPalette.black300," !important"),width:"100%",minHeight:"32px","& .MuiInputBase-input":{padding:"4.5px 13px 4.5px 0 !important",fontSize:"12px",lineHeight:"16px",color:t.palette.promptsColorPalette.mainText,fontWeight:400,minWidth:"262px"}},[t.breakpoints.down("sm")]:{maxWidth:"100%"}}})}),(0,a.jsxs)(d.A,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"12px"},children:[(0,a.jsxs)(d.A,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:"12px"},children:[(0,a.jsx)(P.A,{sx:{fontSize:"16px",fontWeight:"500",lineHeight:"24px",color:t.palette.promptsColorPalette.subText,textWrap:"nowrap"},children:(0,T.t)("workflow.filter")}),(0,a.jsx)(E.A,{isAllValue:!0,options:tm,value:u,onChange:t=>c(t.target.value),maxWidth:160})]}),(0,a.jsxs)(d.A,{sx:{display:"flex",alignItems:"center",flex:"1%",gap:"12px"},children:[(0,a.jsx)(P.A,{sx:{fontSize:"16px",fontWeight:"500",lineHeight:"24px",color:t.palette.promptsColorPalette.subText,textWrap:"nowrap"},children:"Sort :"}),(0,a.jsx)(_.A,{label:"",items:tu,defaultValue:'usm."createdAt"',maxWidth:160,widht:160,value:D,onChange:t=>L(t)})]}),(0,a.jsxs)(I.A,{"aria-label":"Storage button group",sx:{borderRadius:"4px"},children:[(0,a.jsx)(y.A,{className:"btn-custom no-space ".concat(h?"btn-black-new-38":"btn-blue"),onClick:()=>{g(!1)},sx:{minWidth:"32px !important",minHeight:"32px",height:"32px",borderRadius:"4px",border:"0 !important",boxShadow:"none !important","& :hover":{border:"0 !important"}},children:(0,a.jsx)(z.In,{icon:"tabler:layout-grid",width:"14px",height:"14px"})}),(0,a.jsx)(y.A,{className:"btn-custom no-space ".concat(h?"btn-blue":"btn-black-new-38"),onClick:()=>{g(!0)},sx:{minWidth:"32px !important",minHeight:"32px",height:"32px",borderRadius:"4px",border:"0 !important",boxShadow:"none !important","& :hover":{border:"0 !important"}},children:(0,a.jsx)(z.In,{icon:"tabler:list",width:"14px",height:"14px"})})]})]})]})})}),(0,a.jsxs)(k.Ay,{container:!0,spacing:2,className:"match-height",sx:{marginBottom:"8px",[t.breakpoints.down("md")]:{mb:"4px"}},children:[(0,a.jsx)(k.Ay,{item:!0,xl:6,lg:6,md:6,sm:12,xs:12,children:(0,a.jsx)(q,{})}),n?null:(0,a.jsx)(M.A,{action:B.C.CREATE,children:(0,a.jsx)(k.Ay,{item:!0,xl:6,lg:6,md:6,sm:12,xs:12,children:(0,a.jsx)(Q.A,{})})})]}),e&&(0,a.jsx)(m.A,{isShowDelete:e,setIsShowDelete:o,submitEvent:()=>ts(),modalTitleName:"Are you sure you want to delete selected files/folders?",isClass:!0}),to&&n&&(0,a.jsx)($.A,{handleClose:tp,open:to,title:"Sort By",content:tg,size:"sm",titlePosition:"left",manageNewUi:!0,maxWidth:"600px"}),tl&&n&&(0,a.jsx)($.A,{handleClose:td,open:tl,title:"Filter",content:tA,size:"sm",titlePosition:"left",manageNewUi:!0,maxWidth:"600px"})]})},Y=()=>(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(l.N,{children:[(0,a.jsx)(K,{}),(0,a.jsx)(A,{})]})});Y.acl={action:"read",subject:n.eu.ALL_PROMPT_ENG};let tt=Y},70970:(t,e,o)=>{"use strict";o.d(e,{A:()=>x});var a=o(37876);o(14232);var l=o(72907),n=o(18952),i=o(3061),r=o(52782),s=o(60230),p=o(17203),d=o(6907);let x=t=>{let{label:e,options:o,value:x,onChange:c,defaultValue:m,isAllValue:u,maxWidth:h=160,disabled:g}=t,b=(0,d.u)(),A={PaperProps:{style:{maxHeight:342,border:"1px solid ".concat(b.palette.promptsColorPalette.newBgColor3)}}};return(0,a.jsx)(l.A,{sx:{minWidth:100},children:(0,a.jsxs)(n.A,{sx:{width:"100%","& .MuiInputLabel-root":{fontSize:"14px",fontStyle:"normal",fontWeight:600,color:"".concat(b.palette.promptsColorPalette.subText," !important"),mt:"-9px",...x&&{display:"none"}},"&.MuiTextField-root":{margin:"0 !important"},"& .MuiInputBase-root":{border:"1px solid ".concat(b.palette.promptsColorPalette.newBgColor3),backgroundColor:"".concat(b.palette.promptsColorPalette.black300," !important"),borderRadius:"4px !important","& .MuiInputBase-input":{padding:"4px 13px !important"}},"&.Mui-disabled":{background:"".concat(b.palette.action.disabledBackgroun
1d," !important")},"& .MuiInputBase-root, .MuiInputBase-input":{width:"100%",fontSize:"16px",fontWeight:"500",lineHeight:"24px",color:"".concat(b.palette.promptsColorPalette.mainText," !important"),"& .MuiSvgIcon-root ":{color:"".concat(b.palette.promptsColorPalette.mainText," !important")}},"& .MuiOutlinedInput-notchedOutline":{border:"none",minWidth:"".concat(h,"px !important"),borderRadius:"4px !important"},"& .Mui-focused .MuiOutlinedInput-notchedOutline":{borderWidth:"1px !important"},"& .MuiSelect-select ":{maxWidth:h?"calc(".concat(h,"px - 42px)"):"100%"},"&.MuiFormControl-root ":{width:"".concat(h,"px !important")}},children:[(0,a.jsx)(i.A,{shrink:!1,sx:{color:x?"".concat(b.palette.promptsColorPalette.subText," !important"):"#A9A9A9"},children:e}),(0,a.jsxs)(r.A,{value:x,onChange:c,label:e,defaultValue:m,placeholder:"helllo",MenuProps:A,disabled:g,IconComponent:p.A,children:[u&&(0,a.jsx)(s.A,{value:"All",defaultValue:"All",children:"All"}),null==o?void 0:o.map(t=>(0,a.jsx)(s.A,{value:t.value,defaultValue:m,children:t.label},t.value))]})]})})}},89857:(t,e,o)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/my-storage",function(){return o(15914)}])}},t=>{t.O(0,[5646,9773,8460,9530,6421,1439,636,6593,8792],()=>t(t.s=89857)),_N_E=t.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.