PageSourceSearch

https://jidipi.com/_next/static/chunks/pages/dashboard/cloud/[type]-b65a23e9e646efd7.js

js jidipi.com collected 2026-10-02 12:11:48 UTC 42,995 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3657],{8377:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});let s=a.p+"static/media/jpg.e180f157.svg",l=a.p+"static/media/pdf.7353e1f4.svg",i=a.p+"static/media/psd.a43b0fff.svg",o=a.p+"static/media/doc.b3d90c64.svg",d=a.p+"static/media/xls.c8c86a06.svg",n=a.p+"static/media/unk.b3d2d2a7.svg",c=a.p+"static/media/zip.1079f953.svg",r={"image/jpg":s,"image/jpeg":s,"image/png":s,"image/svg":s,"image/svg+xml":s,"image/gif":s,"image/ico":s,"image/webp":s,"application/pdf":l,"application/x-photoshop":i,"image/vnd.adobe.photoshop":i,"application/vnd.ms-excel":d,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":d,"application/atom+xml":d,"application/xml":d,"application/msword":o,"application/vnd.openxmlformats-officedocument.wordprocessingml.document":o,"application/gz":c,"application/gzip":c,"application/zip":c,"application/x-7z-compressed":c,folder:a.p+"static/media/folder.221c49be.svg",unk:n,default:n};function p(e,t){return!e&&t&&(t.endsWith("jpg")&&(e="image/jpg"),t.endsWith("png")&&(e="image/png"),t.endsWith("pdf")&&(e="application/pdf"),t.endsWith("zip")&&(e="application/zip")),r[e]??r.unk}},17436:e=>{e.exports={widget:"Chat_widget__Xa0zo","color-text":"Chat_color-text__FkDb8","color-title":"Chat_color-title__qKqPi","color-invalid":"Chat_color-invalid__D8z2t","color-hover":"Chat_color-hover__KozM4","bg-tint":"Chat_bg-tint__YeOEo","bg-title":"Chat_bg-title__XRAKC",icon:"Chat_icon__uq8qS",sm:"Chat_sm__J_rPH","w-100":"Chat_w-100__Yo63b",white:"Chat_white___CeTt",tint:"Chat_tint__owqxw",divider:"Chat_divider__jGrtz",active:"Chat_active__S6t7U",buttons:"Chat_buttons__R9mdx",col:"Chat_col__CjHI7",transparent:"Chat_transparent__AyAbG","bottom-buttons":"Chat_bottom-buttons__IoRz8","chat-content":"Chat_chat-content__zwdRY","widget-title":"Chat_widget-title__anBqP","widget-content":"Chat_widget-content__uaSVT","widget-tooltip":"Chat_widget-tooltip__qsO19",chat:"Chat_chat__jHbAO",panel:"Chat_panel__AfGZQ","chat-wrapper":"Chat_chat-wrapper__y2KLW","divider-line":"Chat_divider-line__mc_mS","chat-message":"Chat_chat-message__dwDXO","no-padding":"Chat_no-padding__zSkkz","chat-placeholder":"Chat_chat-placeholder__779zW",header:"Chat_header__G2jGg",description:"Chat_description__oWr_7",text:"Chat_text__BEHxv",self:"Chat_self__FKMXi",upload:"Chat_upload__Rs91O","upload-process":"Chat_upload-process__V5UEY",title:"Chat_title__lsGBN",controls:"Chat_controls___9_MC",status:"Chat_status__1unYw","full-size":"Chat_full-size__7zTEs","upload-wrapper":"Chat_upload-wrapper__dxaAQ",dragenter:"Chat_dragenter__aIhyK","state-uploading":"Chat_state-uploading__CVQRJ",close:"Chat_close__13Ike",pause:"Chat_pause__K00hc","state-cancelled":"Chat_state-cancelled__WdahO",arrow:"Chat_arrow__lYGRs","state-paused":"Chat_state-paused__NnTpD","state-failed":"Chat_state-failed__nMbbD","state-success":"Chat_state-success__mg90t",success:"Chat_success__xqhsU","state-download":"Chat_state-download__xT9V4",download:"Chat_download__kV4Iu","upload-placeholder":"Chat_upload-placeholder__drCcf","top-buttons":"Chat_top-buttons__VNI3S",row:"Chat_row__xyUXK"}},23251:(e,t,a)=>{"use strict";a.d(t,{Tb:()=>o,xG:()=>i});var s=a(1479),l=a.n(s);function i(e){return null==e||""===e?"-":l().tz(e,"Europe/Berlin").format("YYYY-MM-DD")}function o(e){return null==e||""===e?"-":l().tz(e,"Europe/Berlin").format("HH:mm")}},25303:(e,t,a)=>{"use strict";a.d(t,{H:()=>j,A:()=>y});var s,l,i=a(37876),o=a(14232),d=a(17436),n=a.n(d),c=a(23251),r=a(75656),p=a(60117),m=a(98701),h=a.n(m),_=a(10841),u=a.n(_),g=a(59335);let f=Object.freeze({create:"Create post",draft:"Changed status (draft)",finish:"Changed status (finished)",schedule:"Changed status (scheduled) @%",publish:"Changed status (publish)",rename:"Rename to %",deactivate:"Changed status (deactivate)",activate:"Changed status (activate)",move:"Move to %1 from %2",trash:"Move into trash",delete:"Move into trash",recover:"Recover from trash",restore:"Recover from trash",title:"Change title to %",slug:"Change slug to %",company:"Bind main company to %",companies:"Link % companies",featuredImage:"Changed Feature Image",validity:"Setup validity from %1, until %2",upload:"upload %",connect:"Send to jidipi %",colour:"Change colour to %",star:"Change star to %"}),x=e=>{let t="folderChat"===e.chatType?"/document/":"/post/",a=e.postId??e.folderId,{data:s,error:l}=(0,r.Ay)(t+a+"/history",p.fG);if(!s||!s.history)return(0,i.jsx)(i.Fragment,{});let o=s.history.reduce((e,t)=>
1{let a=(0,c.xG)(t.createdAt),s={...e};return s[a]||(s[a]=[]),s[a].push(t),s},{}),d=Object.keys(o).map(e=>({date:e,history:o[e]}));return(0,i.jsx)("div",{className:`${n()["chat-content"]} flex-grow`,children:(0,i.jsx)("div",{className:`${n().panel}`,children:(0,i.jsx)("div",{className:`${n()["widget-content"]}`,children:(0,i.jsx)("div",{className:`${n()["chat-wrapper"]}`,children:d.map(t=>(0,i.jsxs)("div",{className:h()["history-activities"],children:[(0,i.jsx)("label",{className:"w-100 mx-1",children:u()(t.date).format("DD MMMM")}),(0,i.jsx)("div",{className:h()["activities-box"],children:t.history.map(t=>(0,i.jsxs)("div",{className:`${h()["single-box"]} d-flex align-items-center`,children:[(0,i.jsx)("div",{className:h()["time-text"],children:(0,i.jsx)("b",{children:(0,c.Tb)(t.createdAt)})}),(0,i.jsxs)("div",{className:h()["text-activities"],children:[(0,i.jsxs)("h4",{children:[" ",`${t.cronjob?"Cronjob":`${t.createdBy?.firstName??"Deleted"} ${t.createdBy?.lastName??"User"}`}  `]}),(0,i.jsx)("h3",{children:((e,t="post",a)=>{let s=e.action.toLowerCase();return f[s]&&(s=f[s],"create"===e.action&&(s="post"!==t&&e._id!==a?"Create "+t+": "+e.folderId?.name:"Create this "+t),"title"===e.action&&(s=s.replace("%",e.title)),"schedule"===e.action&&(s=s.replace("%",(0,c.xG)(e.scheduledDate))),"company"===e.action&&(s=s.replace("%",e.companyId&&e.companyId.companyName?e.companyId.companyName:"")),"companies"===e.action&&(s=s.replace("%",e.companies.length)),"validity"===e.action&&(s=(s=s.replace("%1",(0,c.xG)(e.fromDate))).replace("%2",(0,c.xG)(e.untilDate))),"move"===e.action&&(s=(s=s.replace("%1",e.parentFolderId?.name??"")).replace("%2",e.oldParentFolderId?.name??"")),"connect"===e.action&&(s=s.replace("%",(0,g.ZH)(e.pageFolderId?.title??""))),e.description&&("colour"===e.action&&(s=s.replace("%",e.description)),"rename"===e.action&&(s=s.replace("%",e.description))),"upload"===e.action&&(s="Upload file: "+e.folderId?.name),"star"===e.action&&(!0===e.description||"true"===e.description?s="Stared":(!1===e.description||"false"===e.description)&&(s="Unstared"))),s})(t,"folderChat"===e.chatType?"folder":"post",a)})]})]},t._id))})]},t.date))})})})})};var v=a(18847);let b=a.n(v)()(()=>Promise.all([a.e(6756),a.e(4808),a.e(2217)]).then(a.bind(a,86311)).then(e=>e.Conversation),{loadableGenerated:{webpack:()=>[86311]},ssr:!1});var j=((s={}).PostChat="postChat",s.CompanyChat="companyChat",s.PartnerChat="partnerChat",s.FolderChat="folderChat",s),C=((l=C||{}).CHAT="CHAT",l.ACTIVITY="ACTIVITY",l);let y=e=>{let[t,a]=(0,o.useState)("CHAT");return(0,i.jsxs)("div",{className:`${n().widget} ${n().chat}  d-flex flex-column flex-grow`,children:[(0,i.jsx)("div",{className:`${n()["widget-title"]} `,children:"PARTNER"}),(0,i.jsxs)("div",{className:`row g-0 ${n().buttons} ${n()["top-buttons"]}`,children:[(0,i.jsx)("div",{className:"col",children:(0,i.jsx)("button",{onClick:()=>a("CHAT"),className:`${n().panel} ${"ACTIVITY"===t?n().tint:""}`,children:"CHAT"})}),(0,i.jsx)("div",{className:"col",children:(0,i.jsx)("button",{onClick:()=>a("ACTIVITY"),className:`${n().panel} ${"CHAT"===t?n().tint:""}`,children:"ACTIVITY"})})]}),"CHAT"===t&&(0,i.jsx)(b,{postId:e.postId,folderId:e.folderId,chatType:e.chatType}),"ACTIVITY"===t&&(0,i.jsx)(x,{postId:e.postId,folderId:e.folderId,chatType:e.chatType})]})}},28778:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/cloud/[type]",function(){return a(44368)}])},35154:e=>{e.exports={"chat-container":"Cloud_chat-container__yw98u"}},37544:e=>{e.exports={"modal-container":"Modal_modal-container__bhBZE",border:"Modal_border__y312p","modal-tabs":"Modal_modal-tabs__XPXG4","tab-item":"Modal_tab-item__8K6Hd","tab-icon":"Modal_tab-icon__9LJTo",upload:"Modal_upload__3eL4V",active:"Modal_active__txMdU","tab-text":"Modal_tab-text__CdzpD","tab-content":"Modal_tab-content__9IQql","content-header":"Modal_content-header__24w6J","header-text":"Modal_header-text__YHJMK",close:"Modal_close__i_ubV","folder-content":"Modal_folder-content__sM3Gs",cancel:"Modal_cancel__YDyTf","folder-body":"Modal_folder-body__AkTvG","folder-name":"Modal_folder-name__V_UxF",tools:"Modal_tools__Tw_Nc",confirm:"Modal_confirm__e6Vyn","content-body":"Modal_content-body__SsPgo","active-dropzone":"Modal_active-dropzone__axz8X","upload-file":"Modal_upload-file__bvMjl",text:"Modal_text__4vnug",browse:"Modal_browse__GUZU_","modal
1-dialog":"Modal_modal-dialog__PGGHa","modal-content":"Modal_modal-content__ByLcR","modal-body":"Modal_modal-body__8D1rR","header-body":"Modal_header-body__Q9_i3",modal:"Modal_modal__wZv5d",show:"Modal_show__r2Jtb",header:"Modal_header__YwDsQ","file-container":"Modal_file-container__jPXPo","file-info":"Modal_file-info__KsvIF",information:"Modal_information__VIdUk",size:"Modal_size__q8wmx",description:"Modal_description__H9Urp","tool-item":"Modal_tool-item__9LUTk","uploading-process":"Modal_uploading-process__0ctd6","send-to-page":"Modal_send-to-page__b6nIl","tab-buttons":"Modal_tab-buttons___1UBB",item:"Modal_item__gej6_","select-page":"Modal_select-page__SJrr_","close-block":"Modal_close-block__CcDz_","change-block":"Modal_change-block__HDySk","select-group":"Modal_select-group__ZALmF","select-btn":"Modal_select-btn__AtbHV",title:"Modal_title__ZPR1r",content:"Modal_content__DSfcc","item-content":"Modal_item-content__AWtnI",label:"Modal_label__nqjvJ","selected-item":"Modal_selected-item__y5zO9","select-content":"Modal_select-content__dt3Jq",open:"Modal_open__zPJLk","btn-block":"Modal_btn-block__0Qhak",button:"Modal_button__HNLPp","menu-move":"Modal_menu-move__aR3XC","move-container":"Modal_move-container__GyMtw",folders:"Modal_folders__QWSDv",arrow:"Modal_arrow__xFW4P",footer:"Modal_footer__XrOef","menu-group":"Modal_menu-group__rmHiU","menu-rename":"Modal_menu-rename__5ysKo","group-container":"Modal_group-container__8fnJe","menu-change-color":"Modal_menu-change-color__nVWOG","colors-container":"Modal_colors-container__OQ4QM","selected-icon":"Modal_selected-icon__4OLtN"}},38956:e=>{e.exports={"table-menu":"ContextMenu_table-menu__vePub",item:"ContextMenu_item__Q_L5J",disabled:"ContextMenu_disabled__MghVx",open:"ContextMenu_open__Xbf8G"}},42072:e=>{e.exports={"grid-view":"GridView_grid-view__66_j2","grid-item":"GridView_grid-item__OWaD8",image:"GridView_image__J1PJq",title:"GridView_title__KqHUk"}},44368:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSP:()=>eK,default:()=>eX});var s,l,i,o,d,n,c=a(37876),r=a(14232),p=a(82709),m=a(75656),h=a(60117),_=a(3669),u=a(25301),g=a(58882),f=a(48226),x=a(26961),v=a(69241),b=a(17434),j=a.n(b),C=a(8377),y=a(89099),N=a(48230),I=a.n(N);let w=a.p+"static/media/folder-red.20ff0218.svg",F=a.p+"static/media/folder-orange.58410aca.svg",S=a.p+"static/media/folder-yellow.887d2375.svg",A=a.p+"static/media/folder-green.1470dbdd.svg",M=a.p+"static/media/folder-ocean.3c4f0226.svg",T=a.p+"static/media/folder-sky.6d812a6e.svg",k=a.p+"static/media/folder-blue.44087226.svg",$=a.p+"static/media/folder-purple.eb8009ff.svg",E=a.p+"static/media/folder-rose.2eb4fe76.svg",O=a.p+"static/media/folder-default.85eef216.svg",R=[{_id:"unconnected",title:"unconnected"},{_id:"post",title:"post"},{_id:"information",title:"information"}],D="unconnected",U=[{colour:"#F89590",icon:w},{colour:"#F9B960",icon:F},{colour:"#FFF07B",icon:S},{colour:"#62E5A3",icon:A},{colour:"#60F3EC",icon:M},{colour:"#96D8F6",icon:T},{colour:"#73B9F6",icon:k},{colour:"#A8A9F9",icon:$},{colour:"#F66A8F",icon:E},{colour:"#BDC0C6",icon:O}],P=a.p+"static/media/link.dbf803ee.svg",z={cloudTable:!0,headers:{fixedSide:{id:{index:0,name:"NAME",prop:"name",sortable:!0,field:"name",headerStyle:{minWidth:400},bodyStyle:{minWidth:400,alignItems:"flex-start",display:"flex",flexDirection:"column",overflow:"hidden",height:80,background:"transparent"},component:function({item:e,prop:t,style:a}){let s=e._id,{asPath:l,pathname:i,query:o}=(0,y.useRouter)();if(!e)return(0,c.jsx)(c.Fragment,{});let d=(0,C.A)("FOLDER"===e.folderType?"folder":e.contentType?e.contentType:e.type,e.name);if("FOLDER"===e.folderType&&e.colour){let t=U.find(t=>t.colour===e.colour);t&&(d=t.icon)}let n=()=>(0,c.jsxs)("div",{className:(0,v.A)(j()["table-cell"],j().name),children:[(0,c.jsx)("img",{className:j()["folder-icon"],alt:"",src:d.src}),(0,c.jsxs)("span",{children:[" ",e.name??"-"]}),e.isStar&&(0,c.jsx)("img",{className:j().star,src:"/dashboard/cloud/icons/table/star.svg",alt:""})]});return"FILE"===e.folderType?n():(0,c.jsx)(I(),{href:{pathname:i,query:{...o,folderId:s}}
1,className:j().link,children:n()})},componentName:"FileNameCell",componentProps:{}}},scrollableSide:{creator:{index:1,name:"CREATOR",sortable:!0,field:"createdBy",prop:"createdBy",headerStyle:{},bodyStyle:{justifyContent:"center",background:"transparent"},component:x.A,componentName:"AvatarCell",componentProps:{}},date:{index:2,name:"MODIFIED",prop:"updatedAt",sortable:!0,field:"updatedAt",headerStyle:{},bodyStyle:{justifyContent:"center",minWidth:100,background:"transparent"},component:g.A,componentName:"DateCell",componentProps:{}},size:{index:3,name:"VOLUMEN",headerStyle:{},bodyStyle:{justifyContent:"center",background:"transparent"},component:u.A,componentName:"DefaultCell",componentProps:{},prop:"size",field:"size",sortable:!0},page:{index:4,name:"PAGE",headerStyle:{},bodyStyle:{justifyContent:"center",background:"transparent"},component:({item:e,prop:t,style:a})=>{let s=e[t]?e[t].title:"-";return(0,c.jsx)(c.Fragment,{children:(0,c.jsx)("div",{className:(0,v.A)(j()["table-cell"],j().page),style:a??{},children:(0,c.jsx)("div",{className:j()["select-group"],children:(0,c.jsxs)("div",{className:j()["select-btn"],children:[(0,c.jsx)("div",{className:j().content,children:(0,c.jsx)("h3",{className:j().label,children:s})}),(0,c.jsx)("div",{className:j()["selected-item"],children:(0,c.jsx)("h3",{className:j().label})})]})})})})},componentName:"SelectCell",componentProps:{},prop:"pageFolder",field:"pageFolderId",sortable:!0},connect:{index:6,name:"STATUS",headerStyle:{},bodyStyle:{justifyContent:"center",background:"transparent"},component:({item:e,prop:t,style:a})=>{if(e.isSpecial||e.isDeleted)return(0,c.jsx)(c.Fragment,{});if("UNARCHIVED"!==e.categoryType||e.disabled)if("FILE"===e.folderType)return(0,c.jsx)(c.Fragment,{children:(0,c.jsx)("div",{className:j()["table-cell"],children:(0,c.jsx)("img",{src:P.src,alt:""})})});else return(0,c.jsx)("div",{className:j()["table-cell"],children:e.uniqueId});return"FILE"===e.folderType?(0,c.jsx)(c.Fragment,{children:(0,c.jsx)("div",{className:j()["table-cell"],children:(0,c.jsx)("img",{src:P.src,alt:""})})}):"FOLDER"===e.folderType?(0,c.jsx)(c.Fragment,{children:(0,c.jsx)("div",{className:(0,v.A)(j()["table-cell"],j().status),style:a??{},children:(0,c.jsxs)("div",{className:j()["form-switch"],children:[(0,c.jsx)("span",{className:j()["status-text"],children:"Editable"}),(0,c.jsx)("input",{className:j()["form-check-input"],type:"checkbox"}),(0,c.jsx)("span",{className:j()["status-text"],children:"Send to Jidipi"})]})})}):(0,c.jsx)(c.Fragment,{})},componentName:"ConnectCell",componentProps:{},prop:"",field:"pageFolderId",sortable:!0,action:f.J.connect}}},leftStatus:!1,rightStatus:!1};var L=a(55494),B=a(17183),H=a.n(B),G=a(88467),V=a.n(G);let Y=a.p+"static/media/grid-view.e401cbdc.svg",W=a.p+"static/media/list-view.fcd03a10.svg";var J=((s={}).none="none",s.grid="grid",s.list="list",s);let q=[{type:"grid",label:"Grid View",icon:Y},{type:"list",label:"List View",icon:W}],K=({type:e,filterParameters:t,handleChange:a,onOpenAddModal:s,viewType:l,setViewType:i,folderId:o,path:d,uploadAble:n})=>{let r;o&&(l===J.grid?r=q.find(e=>e.type===J.list):l===J.list&&(r=q.find(e=>e.type===J.grid)));let p="/dashboard/cloud/";return(0,c.jsxs)("div",{className:V().filters,children:[(0,c.jsx)("div",{className:V().breadcrumb,children:d.map((e,t)=>{let a;return 0===t?(p+=e._id,a=p):a=`${p}?folderId=${e._id}`,(0,c.jsx)("div",{className:V().item,children:(0,c.jsx)(I(),{href:a,children:(0,c.jsxs)("div",{className:"d-flex",children:[(0,c.jsxs)("span",{children:[" ",e.title.toUpperCase()," "]}),(0,c.jsx)("img",{src:"/dashboard/cloud/icons/filters/arrow-right.svg",alt:""})]})})},t)})}),(0,c.jsxs)("div",{className:(0,v.A)(H()["filters-container"],V().tools,"p-0"),children:[n&&(0,c.jsxs)("div",{onClick:()=>{s()},className:V()["add-btn"],children:[(0,c.jsx)("img",{src:"/dashboard/cloud/icons/filters/add.svg"}),(0,c.jsx)("span",{children:"Add"})]}),(0,c.jsx)("div",{className:"flex-grow-1",children:(0,c.jsx)(L.A,{handleChange:a,value:t.searchKey,prop:"searchKey",gridClass:"filter-item search-section p-0"})}),r&&(0,c.jsxs)("div",{onClick:()=>{i(r?.type)},className:V()["view-btn"],children:[(0,c.jsx)("img",{src:r?.icon.src}),(0,c.jsx)("span",{className:V()["view-btn-label"],children:r?.label})]})]})]})};var X=a(81255),Q=a(38956),Z=a.n(Q),ee=((l={}).copy="copy",l.move="move",l.group="group",l.star="star",l.colour="colour",l.rename="rename",l.download="download",l.delete="delete",l.restore="restore",l.connect="connect",l.add="add",l.upload="upload",l);class et extends r.Component{componentDidMount(){document.addEventListener("contextmenu",this._handleContextMenu),document.addEventListener("click",this._handleClick),document.addEventListener("scroll",this._handleScroll)}componentWillUnmount(){document.removeEventListener("contextmenu",this._handleContextMenu),document.removeEventListener("click",this._handleClick),document.removeEventListener("scroll",this._handleScroll)}render(){let{visible:e}=this.state;return e?(e||null)&&(0,c.jsx)("div",{ref:e=>{this.root=e},className:Z()["table-menu"],children:(0,c.jsx)("div",{className:Z()["item-content"],
1children:this.props.items.map((e,t)=>(0,c.jsxs)("div",{className:(0,v.A)(Z().item,e.disabled?Z().disabled:""),onClick:()=>{this.props.onSubmit({action:e.action,folderId:this.props.folder._id})},children:[(0,c.jsx)("img",{src:e.icon.src,alt:e.label}),(0,c.jsx)("span",{children:e.label})]},t))})}):(0,c.jsx)(c.Fragment,{})}constructor(...e){super(...e),this.state={visible:!1},this._handleContextMenu=e=>{e.preventDefault(),this.setState({visible:!0});let t=e.clientX,a=e.clientY,s=window.innerWidth,l=window.innerHeight,i=this.root?.offsetWidth??0,o=this.root?.offsetHeight??0;if(this.props.event&&(t=this.props.event.clientX,a=this.props.event.clientY),this.props.warpElementId){let e=document.getElementById(this.props.warpElementId);if(document.getElementById(this.props.warpElementId)?.getBoundingClientRect(),e){let s=e.getBoundingClientRect(),l={left:s.left,right:s.left+e.clientWidth,top:s.top,bottom:s.top+e.clientHeight};if(t<l.left||t>l.right||a<l.top||a>l.bottom)return void this.setState({visible:!1})}}let d=s-t>i,n=l-a>o;this.root&&(d&&(this.root.style.left=`${t+5}px`),d||(this.root.style.left=`${t-i-5}px`),n&&(this.root.style.top=`${a+5}px`),n||(this.root.style.top=`${a-o-5}px`))},this._handleClick=e=>{let{visible:t}=this.state;e.target.contains!==this.root&&t&&this.setState({visible:!1})},this._handleScroll=()=>{let{visible:e}=this.state;e&&this.setState({visible:!1})}}}var ea=a(35154),es=a.n(ea);let el=a.p+"static/media/delete.0c779d35.svg";var ei=a(37544),eo=a.n(ei);let ed=a.p+"static/media/close-icon.142a0a4f.svg",en=a.p+"static/media/confirm-icon.a18b605c.svg",ec=a.p+"static/media/arrow-right.86660896.svg",er=a.p+"static/media/folder-white.9ec511cc.svg",ep=a.p+"static/media/plus.63057674.svg",em=({companyId:e,onClose:t,folderId:a,onSubmit:s,folder:l})=>{let i=ee.move,[o,d]=(0,r.useState)(""),[n,p]=(0,r.useState)(l),_=`/company/${e}/folders?categoryType=unarchived&folderType=FOLDER&isSpecial=false`;n&&(_=`/company/${e}/folders?folderId=${n}&folderType=FOLDER&isSpecial=false`);let{data:u,error:g}=(0,m.Ay)(_,h.fG),f=u&&u.folders?u.folders:[],x=[(0,c.jsx)("span",{onClick:()=>p(""),children:"Unconnected > "},"unconnected")];return u&&u.path&&u.path.length>0&&x.push(...u.path.map((e,t)=>(0,c.jsx)("span",{onClick:()=>p(e._id),children:e.name+" > "},t))),(0,c.jsxs)("div",{className:eo()["move-container"],children:[(0,c.jsxs)("div",{className:eo().header,children:[(0,c.jsxs)("div",{children:[" ",x," "]}),(0,c.jsx)("img",{src:ed.src,onClick:()=>{t()},alt:""})]}),(0,c.jsx)("div",{className:eo().folders,children:f.filter(e=>e._id!==a).map((e,t)=>{let l=(0,C.A)("folder");return(0,c.jsxs)("div",{className:eo().item,children:[(0,c.jsxs)("div",{children:[(0,c.jsx)("img",{onClick:()=>{s({action:i,parentFolderId:e._id,folderId:a})},src:l.src,alt:""}),(0,c.jsx)("span",{children:e.name??"-"})]}),(0,c.jsx)("img",{onClick:()=>{p(e._id)},className:eo().arrow,src:ec.src,alt:""})]},t)})}),(0,c.jsxs)("div",{className:eo().footer,children:[(0,c.jsx)("img",{src:er.src,alt:""}),(0,c.jsx)("input",{type:"text",onChange:e=>{d(e.target.value)},placeholder:"Add new folder name"}),(0,c.jsx)("img",{onClick:()=>{s({action:i,parentFolderId:n,parentFolderName:o,folderId:a})},src:ep.src,alt:""})]})]})},eh=a.p+"static/media/send-icon.81c440ca.svg",e_=a.p+"static/media/xmark.a77f10ae.svg";var eu=((i=eu||{}).POST="POST",i.INFORMATION="INFORMATION",i);let eg={POST:["PRODUCT","PROJECT"],INFORMATION:["INFORMATION"]};var ef=((o=ef||{}).PRODUCT="PRODUCT",o.PROJECT="PROJECT",o),ex=((d=ex||{}).INFORMATION="INFORMATION",d);let ev=({companyId:e,onClose:t,folderId:a,onSubmit:s,folder:l,pageFolders:i})=>{let[o,d]=(0,r.useState)("POST"),[n,p]=(0,r.useState)(!1),[m,h]=(0,r.useState)(""),[_,u]=(0,r.useState)([]);return(0,r.useEffect)(()=>{u(i.filter(e=>eg[o].includes(e.pageType)))},[o]),(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)("div",{className:eo()["modal-container"],children:[(0,c.jsxs)("div",{className:eo()["tab-buttons"],children:[(0,c.jsxs)("div",{className:(0,v.A)(eo().item,"POST"===o&&eo().active),onClick:()=>{d("POST")},children:[(0,c.jsx)("img",{src:eh.src,alt:""}),(0,c.jsx)("span",{children:"Send to Post"})]}),(0,c.jsxs)("div",{className:(0,v.A)(eo().item,"INFORMATION"===o&&eo().active),onClick:()=>{d("INFORMATION")},children:[(0,c.jsx)("img",{src:eh.src,alt:""}),(0,c.jsx)("span",{children:"Send to Information"})]})]}),(0,c.jsxs)("div",{className:eo()["select-page"],children:[(0,c.jsxs)("div",{className:eo()["close-block"],children:[(0,c.jsx)("span",{children:"Select a page"}),(0,c.jsx)("img",{onClick:t,src:ed.src,alt:""})]}),(0,c.jsxs)("div",{className:eo()["change-block"],children:[(0,c.jsxs)("div",{className:(0,v.A)(eo()["select-group"],eo()["post-select"]),children:[(0,c.jsx)("div",{className:eo()["select-btn"],children:(0,c.jsxs)("div",{className:m?eo()["selected-item"]:eo().content,onClick:()=>h(""),children:[(0,c.jsx)("h3",{className:eo().label,children:_.find(e=>e._id===m)?.title?.toUpperCase()??"-"}),m&&(0,c.jsx)("img",{src:e_.src,onClick:()=>h("")})]})}),!m&&(0,c.jsx)("div",{className:(0,v.A)(eo()["select-content"],eo().open),children:_.map((e,t)=>(0,c.jsx)("div",{className:eo().item,onClick:t=>{t.preventDefault(),h(e._id)},children:(0,c.jsx)("span",{children:e.title.toUpperCase()})},t))})]}),(0,c.jsxs)("div",{className:eo()["btn-block"],children:[(0,c.jsxs)("div",{onClick:t,className:(0,v.A)(eo().button,eo().cancel),children:[(0,c.jsx)("img",{src:ed.src,alt:""}),(0,c.jsx)("span",{children:"Cancel"}),(0,c.jsx)("div",{className:eo().right})]}),(0,c.jsxs)("div",{onClick:()=>{s({action:ee.connect,pageFolderId:m,folderId:a})},className:(0,v.A)(eo().button,eo().confirm),children:[(0,c.jsx)("img",{src:en.src,alt:""}),(0,c.jsx)("span",{children:"Confirm"}),(0,c.jsx)("div",{className:eo().right})]})]})]})]})]})})};var eb=a(53608);let ej=a.p+"static/media/upload-icon.1ab32f7d.svg",eC=a.p+"static/media/folder-icon.2184086e.svg",ey=a.p+"static/media/upload-folder-icon.9c4eb09e.svg",eN=a.p+"static/media/file-icon.4a80763c.svg";var eI=a(77621),ew=a(73467),eF=a(58353),eS=((n=eS||{}).addFolder="addFolder",n.uploadFolder="uploadFolder",n.uploadFiles="uploadFiles",n.uploading="uploading",n);let eA=({companyId:e,onClose:t,folderId:a,onSubmit:s,folder:l,onSelectedFiles:i})=>{let[o,d]=(0,r.useState)(a?"uploadFolder":"addFolder"),[n,p]=(0,r.useState)(""),m={files:[],type:eI.pt.COMPANY,companyId:e};e&&(m.companyId=e),a&&(m.folderId=a);let[h,_]=(0,r.useState)(m),[u,g]=(0,r.useState)(),f=(0,r.useCallback)(async e=>{d("uploading");let t=new eI.Ay(m,e,_);g(t),await t.start()},[]);(0,r.useEffect)(()=>{h&&"allSuccess"===h.status&&(0,eF.yy)(1e3).then(e=>{})}
1,[h]);let{getRootProps:x,getInputProps:b}=(0,eb.VB)({onDrop:f}),j=()=>(0,c.jsxs)("div",{className:(0,v.A)(eo()["folder-upload-drop"],eo()["content-body"]),...x(),children:[(0,c.jsx)("div",{className:eo()["upload-file"],children:(0,c.jsx)("img",{src:ej.src,alt:""})}),(0,c.jsxs)("div",{className:eo().text,children:["Drag and Drop or",(0,c.jsx)("label",{htmlFor:"file-input",children:(0,c.jsx)("span",{className:eo().browse,children:"Browse"})}),"to upload"]}),(0,c.jsx)("input",{...b()})]}),C={addFolder:(0,c.jsxs)("div",{className:eo()["folder-body"],children:[(0,c.jsx)("input",{onChange:e=>{p(e.target.value)},type:"text",className:(0,v.A)(eo()["folder-name"],eo().border)}),(0,c.jsxs)("div",{className:eo().tools,children:[(0,c.jsxs)("div",{onClick:()=>{t()},className:(0,v.A)(eo().border,eo().cancel),children:[(0,c.jsx)("img",{src:ed.src,alt:""}),(0,c.jsx)("span",{children:"Cancel"})]}),(0,c.jsxs)("div",{onClick:()=>{s({action:ee.add,parentFolderId:a,name:n})},className:(0,v.A)(eo().border,eo().confirm),children:[(0,c.jsx)("img",{src:en.src,alt:""}),(0,c.jsx)("span",{children:"Confirm"})]})]})]}),uploadFolder:j(),uploadFiles:j(),uploading:null};return(0,c.jsxs)(c.Fragment,{children:["uploading"===o&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:eo().header,children:(0,c.jsxs)("div",{className:eo()["header-body"],children:[(0,c.jsxs)("div",{className:eo()["header-text"],children:["Uploading ",h.files.length," files"]}),(0,c.jsx)("div",{onClick:t,className:eo().close,children:(0,c.jsx)("img",{src:ed.src,alt:""})})]})}),(0,c.jsx)("div",{className:eo()["file-container"],children:h&&h.files.length>0&&h.files.map((e,t)=>(0,c.jsx)(ew.l,{file:e,onPause:e=>{u?.pause(e)},onResume:async e=>{await u?.resume(e)},onCancel:e=>{u?.cancel(e)},fullSize:!0},t))})]}),"uploading"!==o&&(0,c.jsxs)("div",{className:eo()["modal-container"],children:[(0,c.jsx)("div",{className:eo()["modal-tabs"],children:a?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{onClick:()=>d("uploadFolder"),className:(0,v.A)(eo()["tab-item"],eo().upload,"uploadFolder"===o&&eo().active),children:[(0,c.jsx)("div",{className:eo()["tab-icon"],children:(0,c.jsx)("img",{src:ey.src,alt:""})}),(0,c.jsx)("div",{className:eo()["tab-text"],children:"Upload folder"})]}),(0,c.jsxs)("div",{onClick:()=>d("uploadFiles"),className:(0,v.A)(eo()["tab-item"],"uploadFiles"===o&&eo().active),children:[(0,c.jsx)("div",{className:eo()["tab-icon"],children:(0,c.jsx)("img",{src:eN.src,alt:""})}),(0,c.jsx)("div",{className:eo()["tab-text"],children:"Upload file"})]})]}):(0,c.jsxs)("div",{onClick:()=>d("addFolder"),className:(0,v.A)(eo()["tab-item"],"addFolder"===o&&eo().active),children:[(0,c.jsx)("div",{className:eo()["tab-icon"],children:(0,c.jsx)("img",{src:eC.src,alt:""})}),(0,c.jsx)("div",{className:eo()["tab-text"],children:"Add folder"})]})}),(0,c.jsx)("div",{className:eo()["tab-content"],children:(0,c.jsxs)("div",{className:eo()["folder-content"],children:[(0,c.jsxs)("div",{className:eo()["content-header"],children:[(0,c.jsx)("span",{className:eo()["header-text"],children:{addFolder:"Add a new folder",uploadFolder:"Upload a folder from computer",uploadFiles:"Add new files",uploading:""}[o]}),(0,c.jsx)("div",{onClick:()=>{t()},className:eo().close,children:(0,c.jsx)("img",{src:ed.src,alt:""})})]}),C[o]]})})]})]})};class eM extends r.Component{renameWidget(){return(0,c.jsx)("div",{className:eo()["group-container"],children:(0,c.jsxs)("div",{className:eo().header,children:[(0,c.jsx)("span",{children:this.props.title}),(0,c.jsx)("img",{src:ed.src,alt:"",onClick:()=>{this.props.onClose()}}),(0,c.jsx)("input",{type:"text",onChange:e=>{this.setState({name:e.target.value})}}),(0,c.jsxs)("div",{className:eo()["btn-block"],children:[(0,c.jsxs)("div",{className:(0,v.A)("button",eo().button,eo().cancel),onClick:()=>{this.props.onClose()},children:[(0,c.jsx)("img",{src:ed.src,alt:""}),(0,c.jsx)("span",{children:"Cancel"}),(0,c.jsx)("div",{className:"right"})]}),(0,c.jsxs)("div",{className:(0,v.A)("button",eo().button,eo().confirm),onClick:()=>{let{name:e}=this.state;this.props.onSubmit({action:this.props.action,folderId:this.props.folderId,name:e})},children:[(0,c.jsx)("img",{src:en.src,alt:""}),(0,c.jsx)("span",{children:"Confirm"}),(0,c.jsx)("div",{className:"right"})]})]})]})})}render(){return(0,c.jsxs)("div",{className:"modals",children:[(0,c.jsx)("div",{className:(0,v.A)("modal","show","fade",eo().modal,eo().show,eo()[this.props.className]),children:(0,c.jsx)("div",{className:(0,v.A)("modal-dialog",eo()["modal-dialog"]),children:(0,c.jsx)("div",{className:(0,v.A)("modal-content",eo()["modal-content"]),children:(0,c.jsxs)("div",{className:(0,v.A)("modal-body",eo()["modal-body"]),children:[[ee.rename,ee.group].includes(this.props.action)&&this.renameWidget(),[ee.move].includes(this.props.action)&&(0,c.jsx)(em,{onClose:()=>{this.props.onClose()},onSubmit:e=>{this.props.onSubmit(e)},folderId:this.props.folderId,companyId:this.props.companyId}),[ee.connect].includes(this.props.action)&&(0,c.jsx)(ev,{onClose:this.props.onClose,onSubmit:e=>{this.props.onSubmit(e)},folderId:this.props.folderId,companyId:this.props.companyId,pageFolders:this.props.pageFolders,pageFolderId:this.props.pageFolderId}),[ee.add].includes(this.props.action)&&(0,c.jsx)(eA,{onClose:this.props.onClose,onSubmit:e=>{this.props.onSubmit(e)},folderId:this.props.folderId,companyId:this.props.companyId,onSelectedFiles:async e=>{this.props.onSubmit({action:ee.upload,folderId:this.props.folderId,files:e})}})]})})})}),(0,c.jsx)("div",{className:"modal-backdrop fade show"})]})}constructor(...e){super(...e),this.state={name:"",folderId:this.props.folderId,selectedFolderId:""}}}let eT=a.p+"static/media/selected.64db0285.svg",ek=({style:e,onSubmit:t,colour:a,folderId:s})=>(0,c.jsx)(c.Fragment,{children:(0,c.jsx)("div",{id:"change-colour",className:eo()["menu-change-color"],style:e,children:(0,c.jsx)("div",{className:eo()["colors-container"],children:U.map((e,l)=>(0,c.jsxs)("div",{onClick:()=>t({action:ee.colour,colour:e.colour,folderId:s}),children:[(0,c.jsx)("img",{src:e.icon.src,alt:""}),e.colour===a&&(0,c.jsx)("span",{className:eo()["selected-icon"],children:(0,c.jsx)("img",{src:eT.src,alt:""})})]},l))})})});var e$=a(42072),eE=a.n(e$),eO=a(26306);let eR=({folders:e})=>(0,c.jsx)(c.Fragment,{children:(0,c.jsx)("div",{className:eE()["grid-view"],children:e&&e.map((e,t)=>{let a=(0,C.A)(e.contentType??e.type,e.name),s=e.liveURL??"";return s.includes("jpg")||s.includes("png")||s.includes("jpeg")||s.includes("gif")||s.includes("svg")||(s=a.src),(0,c.jsxs)("div",{className:eE()["grid-item"],children:[(0,c.jsx)("div",{className:eE().image,children:(0,c.jsx)("img",{loading:"lazy",src:(0,eO.t)({url:s,width:320}),alt:""})}),(0,c.jsxs)("div",{className:eE().title,children:[(0,c.jsx)("img",{src:a.src,alt:""}),(0,c.jsxs)("span",{children:[e.name," "]})]})]},t)})})});var eD=a(25303);let eU=a.p+"static/media/duplicate.b32b35e5.svg",eP=a.p+"static/media/move.1582c650.svg",ez=a.p+"static/media/group.e401cbdc.svg",eL=a.p+"static/media/star.adcb1247.svg",eB=a.p+"static/media/color.a007cfd1.svg",eH=a.p+"static/media/edit.d387d5fd.svg",eG=a.p+"static/media/download.40b31341.svg",eV=[{action:ee.move,title:"Move",className:"menu-move"},{action:ee.group,title:"Group",className:"menu-group"},{action:ee.rename,title:"Rename",className:"menu-rename"},{action:ee.connect,title:"",className:"send-to-page"},{action:ee.colour,title:"Colour",className:"menu-change-color"}],eY=(e,t,a)=>{let s="";return Object.entries({...t,...a}
1).forEach(([e,t])=>{"folderId"!==e&&"categoryType"!==e&&null!=t&&""!==t&&(s+=`&${e}=${t}`)}),`${e}${s}`},eW=({type:e,currentFolderId:t,companyId:a,pageFolders:s,filters:l})=>{let i;e||(e=D);let o=R.find(t=>t.title===e)??{_id:"unconnected",title:"unconnected"},d="unconnected"===o._id?"unarchived":o._id;z.headers.scrollableSide.connect.name=e===D?"STATUS":"ID";let n=null,[p,u]=(0,r.useState)([]),g=`/company/${a}/folders?categoryType=${d}`;t&&(g=`/company/${a}/folders?folderId=${t}`),a||(g="");let[x,b]=(0,r.useState)(l.postFilters),[C,y]=(0,r.useState)(l&&l.sort.field?l.sort:{field:"createdAt",order:-1}),[N,I]=(0,r.useState)(!1),[w,F]=(0,r.useState)([]),[S,A]=(0,r.useState)(void 0),[M,T]=(0,r.useState)(void 0),k=async({action:e,name:s,folderId:l,parentFolderId:i,parentFolderName:o,colour:d,pageFolderId:c})=>{if(e===ee.star){let e;p.map(t=>(t._id===l&&(t.isStar=!t.isStar,e=t.isStar),t)),u(p),void 0!==e&&await (0,h.Uc)(`/document/${l}`,{isStar:e})}else if(e===ee.copy)await (0,h.Uc)(`/document/${l}/copy`,{});else if(e===ee.download){window.open(`${h.H$}/document/${l}/download`),F([]);return}else if(e===ee.delete){let e=p.findIndex(e=>e._id===l);p.splice(e,1),n?.isTrashFolder?await (0,h.SJ)(`/document/${l}`):await (0,h.Uc)(`/document/${l}`,{action:"trash"})}else if(e===ee.restore)await (0,h.Uc)(`/document/${l}`,{action:"restore"});else if(e===ee.rename)s&&(await (0,h.Uc)(`/document/${l}`,{name:s}),p.map(e=>(e._id===l&&(e.name=s),e)),u(p));else if(e===ee.group)s&&w.length>0&&await (0,h.Uc)(`/company/${a}/group`,{name:s,files:w});else if(e===ee.move){let a={action:e};(l!==i&&t!==i||o)&&(i&&(a.parentFolderId=i),o&&(a.parentFolderName=o),await (0,h.Uc)(`/document/${l}`,a))}else if(e===ee.colour)await (0,h.Uc)(`/document/${l}`,{colour:d});else if(e===ee.connect){let t=p.find(e=>e._id===l);t&&(t.isSpecial||"UNARCHIVED"===t.categoryType&&await (0,h.Uc)(`/document/${l}`,{action:e,pageFolderId:c}))}else if(e===ee.add){if(s){let e={name:s};i&&(e.parentFolderId=i),await (0,h.LO)(`/document/${a}/folder`,e)}}else ee.upload;F([]),T(void 0),await P(eY(g,x,C))},$=async(t,a,s)=>{let l=p.find(e=>e._id===a);if(t===f.J.contextMenu)l&&!l.disabled&&["unconnected"].includes(e)?(w.includes(a)||F([a]),A({folder:l,event:s})):A(void 0);else if(t===f.J.connect){let e=eV.find(e=>e.action.toString()===t.toString());l&&(l.isSpecial||("FILE"===l.folderType||l.disabled?window.open(`${l.liveURL}`):"UNARCHIVED"===l.categoryType&&(F([a]),e&&l&&T({...e,folderId:a,pageFolderId:l.pageFolderId}))))}else if(t===f.J.click){if(l.disabled)return;let e=w.indexOf(a);e>-1?w.splice(e,1):w.push(a),F([...w])}},E=async({action:e,name:t,folderId:a,parentFolderId:s,parentFolderName:l,colour:i,pageFolderId:o})=>{if(A(void 0),e===ee.colour){if(a){let t=document.getElementById(a),s=p.find(e=>e._id===a);if(t){let l=t.getBoundingClientRect(),i=eV.find(t=>t.action===e);i&&T({...i,folderId:a,colour:s?s.colour:"",style:{left:l.left+"px",top:l.top+t.clientHeight+"px"}})}}}else if([ee.star,ee.copy,ee.download,ee.delete,ee.restore].includes(e))await k({action:e,name:t,folderId:a,parentFolderId:s,parentFolderName:l,colour:i,pageFolderId:o});else{let t=eV.find(t=>t.action===e);t?T({...t,folderId:a}):A(void 0)}},O=async({action:e,name:t,folderId:a,parentFolderId:s,parentFolderName:l,colour:i,pageFolderId:o,files:d})=>{await k({action:e,name:t,folderId:a,parentFolderId:s,parentFolderName:l,colour:i,pageFolderId:o,files:d})},{data:U,mutate:P}=(0,m.Ay)(g?eY(g,x,C):null,h.fG,{revalidateOnFocus:!1,revalidateOnReconnect:!1}),L=!0,[B,H]=(0,r.useState)([]);(0,r.useEffect)(()=>{if(U&&U.success){i=U?.folder?.isRootFolder&&U?.folder?.postId;let e=U.folder?.postId?.pageFolderId??void 0,t=U.folder;L=!(t?.isChatFolder||t?.isInfoFolder||t?.isTrashFolder||t?.isContractFolder),n=t,I(t&&L),u(U?.folders?U.folders.map(t=>((t.isSpecial||U.folder&&U.folder.isInfoFolder)&&(t.disabled=!0),"number"==typeof t.size&&(t.size=(0,X.z)(t.size,2)),t.pageFolder||(t.pageFolder=s.find(e=>e._id===t.pageFolderId)),w.includes(t._id)?t.selected=!0:t.selected=!1,t.pageFolderId||(t.pageFolderId=e),t)):[])}let e=n?.isTrashFolder,t=p.find(e=>e._id===w[0])?.folderType==="FILE",a=[{action:ee.copy,label:"Duplicate",icon:eU,disabled:w.length>1||e},{action:ee.move,label:"Move to",icon:eP,disabled:w.length>1||e},{action:ee.group,label:"Group files",icon:ez,disabled:w.length<2},{action:ee.star,label:"Mark star",icon:eL,disabled:w.length>1||e},{action:ee.colour,label:"Change colour",icon:eB,disabled:w.length>1||e||t},{action:ee.rename,label:"Rename",icon:eH,disabled:w.length>1||e},{action:ee.download,label:"Download",icon:eG,disabled:w.length>1||e},{action:ee.delete,label:"Delete",icon:el,disabled:w.length>1}];U?.folder?.isTrashFolder?a.push({action:ee.restore,label:"Restore",icon:el,disabled:w.length>1}):a.filter(e=>e.action!==ee.restore),H(a)},[U?.success]);let[G,V]=(0,r.useState)(J.list);(0,r.useEffect)(()=>{V(J.list),F([])},[e,t]);let Y=[o];
1return U&&U.path&&U.path.forEach(e=>{let t={_id:e._id.toString(),title:e.name.toString()};Y.push(t)}),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("section",{className:(0,v.A)("main-content","bg-white",es()["info-section"]),children:[(0,c.jsx)(K,{type:e,filterParameters:x,handleChange:(e,t)=>{b(a=>(a[e]=t,{...a}))},onOpenAddModal:()=>{T({action:ee.add,folderId:t,title:"",className:""})},viewType:G,setViewType:V,folderId:t,path:Y,uploadAble:L}),G===J.grid&&(0,c.jsx)(eR,{folders:p,sort:C,type:e}),G===J.list&&(0,c.jsxs)("div",{className:(0,v.A)(j()["folder-page"]),children:[S&&(0,c.jsx)(et,{items:B,warpElementId:"main-table-body",onSubmit:E,...S}),M&&[ee.rename,ee.group,ee.move,ee.connect,ee.add].includes(M.action)&&(0,c.jsx)(eM,{onClose:()=>{T(void 0),P(eY(g,x,C)).then()},onSubmit:O,companyId:a,pageFolders:s,...M}),M&&M.action===ee.colour&&(0,c.jsx)(ek,{onClose:()=>{T(void 0)},onSubmit:O,companyId:a,...M}),(0,c.jsx)(_.A,{options:p,handleSortChange:(e,t)=>{y({field:e,order:t})},handleItemChange:$,sort:C,tableData:z})]})]}),N&&(0,c.jsx)("div",{className:(0,v.A)(es()["chat-container"],"h-100","d-flex"),children:(0,c.jsx)(eD.A,{postId:i?._id,folderId:t,chatType:i?._id?eD.H.PartnerChat:eD.H.FolderChat})})]})};var eJ=a(21718),eq=a(14709),eK=!0;function eX(e){let{session:{user:t}}=(0,eq.As)(),a=t?.companyId?._id??t?.companyId??void 0,s=e.pageFolders,l=e.query&&e.query.type?e.query.type:D,i=e.query&&e.query.folderId?e.query.folderId:void 0;return(0,c.jsx)(p.N,{tab:(0,c.jsx)(eJ.A,{menuFolders:R,user:t,isCloud:!0}),paddingTop:!0,paddingBottom:!0,children:(0,c.jsx)(eW,{filters:e.filters,type:l,currentFolderId:i,companyId:a,pageFolders:s})})}},59335:(e,t,a)=>{"use strict";a.d(t,{Se:()=>l,TF:()=>s,ZH:()=>i});let s=e=>{let{telephone:t,fax:a}=e;return t&&a?`T ${t}    F ${a}`:t?`T ${t}`:a?`F ${a}`:""},l=e=>e?e.startsWith("http")?e:`https://${e}`:"http://jidipi.com",i=e=>e&&0!==e.length?(e=e.toLowerCase()).split(" ").map(e=>0===e.length?e:e[0].toUpperCase()+e.substring(1)).join(" "):""},73467:(e,t,a)=>{"use strict";a.d(t,{l:()=>x,A:()=>v});var s,l=a(37876),i=a(17436),o=a.n(i);a(14232);var d=a(10841),n=a.n(d),c=a(81255),r=((s={}).CLOSE="close",s.SUCCESS="success",s.DOWNLOAD="download",s.PAUSE="pause",s.FAILED="failed",s.RETRY="retry",s);let p=e=>{let t="failed"===e.action?"/dashboard/chat/icon-close.svg":"/dashboard/chat/icon-"+e.action+".svg";return(0,l.jsx)("button",{onClick:()=>e.onSubmit(),className:`${o().icon} ${o().divider} sm ${o()[e.action]}`,children:(0,l.jsx)("img",{src:t,alt:e.action})})};var m=a(77621),h=a(8377),_=a(54587),u=a.n(_),g=a(87857),f=a(80459);let x=({messageId:e,file:t,onPause:a,onResume:s,onCancel:i,fullSize:d})=>{let n,_="";e||t&&(_=t.success?"- Successfully":!1===t.success?t.status===m.A8.paused?"- Paused":"- Failed":"- Uploading"),e?n=r.DOWNLOAD:void 0===t.success?n=r.CLOSE:!1===t.success?n=r.FAILED:t.success&&(n=r.SUCCESS);let g=[m.A8.paused,m.A8.cancelled].includes(t.status)||!1===t.success,f={width:100*t.progress+"%"},x=(0,h.A)(t.contentType??t.type);return(0,l.jsxs)("div",{className:`${o().text} ${o().upload} ${o()["state-uploading"]} ${d?o()["full-size"]:""} d-flex `,children:[!e&&!t.success&&(0,l.jsx)("div",{className:`${o()["upload-process"]}`,style:f}),(0,l.jsx)("div",{className:`${o().icon}`,children:(0,l.jsx)(u(),{src:x,alt:""})}),(0,l.jsxs)("div",{className:`${o().description} flex-grow-1`,children:[(0,l.jsx)("div",{className:`${o().title}`,children:t.name}),(0,l.jsxs)("div",{className:`${o().status} ${!1===t.success&&t.status!==m.A8.paused?o()["color-invalid"]:""}`,children:[(0,c.z)(t.size)," ",_]})]}),(0,l.jsxs)("div",{className:`d-flex align-items-center ${o().controls}`,children:[!e&&!t.success&&(0,l.jsx)(p,{action:g?r.RETRY:r.PAUSE,onSubmit:()=>{g?s(t._id):a(t._id)}}),n&&(0,l.jsx)(p,{action:n,onSubmit:()=>{e?window.open(`${t.liveURL}`):i(t._id)}})]})]})},v=e=>{let t=e.message,a=t.userId;a||(a=e.user);let s=a&&a.avatar?a.avatar:a&&a.logoId&&a.logoId.liveURL?a.logoId.liveURL:f.x,i=!t.userId||t.userId._id===e.user._id;if(t.message.includes("======"))return(0,l.jsx)("div",{className:`${o()["divider-line"]} ${o().active}`});let d=`${a.uniqueId}`;return a.memberType!==g.ut.Team&&(d+=` - ${(a.firstName+" "+a.lastName).trim()}`),(0,l.jsxs)("div",{className:`${o()["chat-message"]} ${i?o().self:""} ${!e.showSender?o()["no-padding"]:""}`,children:[e.showSender&&(0,l.jsxs)("div",{className:`${o().header}`,children:[(0,l.jsx)("div",{className:`${o().icon}`,children:(0,l.jsx)("img",{src:s,alt:"avatar"})}),(0,l.jsxs)("div",{className:`${o().description}`,children:[n()(t.createdAt).format("YYYY-MM-DD HH:MM"),(0,l.jsx)("br",{}),d]})]}),t.isFile?(0,l.jsx)(x,{messageId:t._id,file:t.file,onPause:e.onPause,onCancel:e.onCancel,onResume:e.onResume}):(0,l.jsx)("div",{className:`${o().text}`,children:t.message})]})}},81255:(e,t,a)=>{"use strict";function s(e,t=2){if(0===e)return"0 Bytes";let a=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,a)).toFixed(t<0?0:t))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][a]}a.d(t,{z:()=>s})},88467:e=>{e.exports={filters:"Filter_filters__jdIpe",breadcrumb:"Filter_breadcrumb__wKLkf",item:"Filter_item__J7uLX",tools:"Filter_tools__tYiF4","add-btn":"Filter_add-btn__0GfQ9","view-btn":"Filter_view-btn__mIVnB","view-btn-label":"Filter_view-btn-label__uz4_w","filter-item":"Filter_filter-item__s2Wdu","search-section":"Filter_search-section__pDRA1",search:"Filter_search__dcTAG","input-group":"Filter_input-group__WAowE",icon:"Filter_icon__qR_Pf","search-data":"Filter_search-data__Jj28g"}},98701:e=>{e.exports={"history-activities":"Activity_history-activities__4MSSe","single-box":"Activity_single-box__W4SVP","time-text":"Activity_time-text__vnExk","text-activities":"Activity_text-activities__g9IjO"}}},e=>{e.O(0,[3716,123,4587,9124,6212,5629,7379,2826,7288,636,6593,8792],()=>e(e.s=28778)),_N_E=e.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.