1"use strict";(self.webpackChunksimplywise_web=self.webpackChunksimplywise_web||[]).push([[7411],{65796:function(e,n,i){i.d(n,{H:function(){return l}});var t,o,s=i(30168),r=i(74912),l=(r.ZP.div(t||(t=(0,s.Z)(["\n position: absolute;\n z-index: 2;\n left: 6px;\n top: 3px;\n"]))),r.ZP.div(o||(o=(0,s.Z)(["\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n align-items: center;\n justify-content: space-around;\n text-align: center;\n padding: 10px;\n"]))))},810:function(e,n,i){i.d(n,{T:function(){return l}});var t,o,s=i(30168),r=i(74912),l=r.ZP.div(t||(t=(0,s.Z)(["\n display: flex;\n width: 100%;\n flex-direction: row;\n flex-wrap: wrap;\n align-items: center;\n"])));r.ZP.div(o||(o=(0,s.Z)(["\n display: flex;\n flex-direction: column;\n width: 100%;\n margin-top: 15px;\n"])))},17411:function(e,n,i){i.r(n);var t=i(57689),o=i(80140),s=i(86222),r=i(16326),l=i(80184);n.default=function(){var e=(0,s._P)().members,n=(0,t.UO)().id,i=(null===e||void 0===e?void 0:e.find((function(e){var i;return String(null===e||void 0===e||null===(i=e.user)||void 0===i?void 0:i.id)===n})))||void 0;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.Z,{showDrawer:!0}),(0,l.jsx)("div",{style:{maxWidth:1200,margin:"auto",padding:20},children:i?(0,l.jsx)(r.Z,{member:i,bigDescription:!0,showActions:!0}):null})]})}},16326:function(e,n,i){i.d(n,{Z:function(){return z}});var t=i(5397),o=i(40318),s=i(57689),r=i(11480),l=i(91754),d=i(99995),a=i(86222),c=i(9618),u=(i(72791),i(93324)),v=i(76189),m=i(80184),h=(0,v.Z)((0,m.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V6h5.17l2 2H20v10zm-5-5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm-4 4h8v-1c0-1.33-2.67-2-4-2s-4 .67-4 2v1z"}),"FolderSharedOutlined"),f=i(58931),x=i(61271),g=i(68239),p=i(91432),j=i(810),y=i(43310),b=i(65796),w=i(1173),S=function(e){var n,i=e.categories,t=e.disableSpaceNames,o=e.emptyMessage,r=e.member,d=(0,p.E)(),a=d.spaces,c=d.groupCategoriesBySpace,v=(0,g.a)().user,S=c(i),Z=(0,s.s0)();return(0,m.jsxs)(m.Fragment,{children:[null!==(n=Object.entries(S))&&void 0!==n&&n.length?null:(0,m.jsxs)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:40},children:["add"===o?(0,m.jsx)(h,{fontSize:"medium",color:"disabled"}):(0,m.jsx)(f.Z,{fontSize:"medium",color:"disabled"}),(0,m.jsx)("div",{style:{height:10}}),(0,m.jsx)(l.uT,{style:{fontWeight:"bold",fontSize:24,color:"gray"},children:"add"===o?"Add a folder":"This list is empty"})]}),Object.entries(S).map((function(e){var n,i=(0,u.Z)(e,2),o=i[0],s=i[1],d=a.find((function(e){return e.id.toString()===o}));return(0,m.jsxs)("div",{children:[(0,m.jsx)(l.uT,{style:{marginBottom:10,marginTop:10,fontWeight:"bold"},children:t?null:null!==(n=null===d||void 0===d?void 0:d.name)&&void 0!==n?n:a.find((function(e){return"Home"===e.name}))&&null!==v&&void 0!==v&&v.first_name?"".concat(v.first_name,"'s Documents"):"Home"}),(0,m.jsx)(j.T,{style:{marginBottom:20,justifyContent:"flex-start"},children:s.map((function(e){var n,i,t,o,s=(0,w.V$)(null===(n=e.user)||void 0===n?void 0:n.id.toString());return(0,m.jsx)(y._L,{onClick:function(){Z("/share/select-folders",{state:{member:r}})},style:{width:150,height:150,boxShadow:"0px 0px 10px rgba(0, 0, 0, 0.1)"},children:(0,m.jsxs)(b.H,{children:[(0,m.jsx)(x.Z,{iconId:null===e||void 0===e?void 0:e.icon_id,folderName:null===e||void 0===e?void 0:e.name,size:45}),(0,m.jsx)(l.uT,{children:null===e||void 0===e?void 0:e.name}),(null===v||void 0===v?void 0:v.id)!==(null===e||void 0===e||null===(i=e.user)||void 0===i?void 0:i.id)&&(0,m.jsx)("div",{style:{opacity:.5,backgroundColor:s,justifyContent:"center",alignItems:"center",width:20,height:20,borderRadius:10,position:"absolute",top:10,right:10},children:(0,m.jsx)(l.uT,{style:{color:"#FFF",fontSize:12,marginTop:1},children:null===e||void 0===e||null===(t=e.user)||void 0===t||null===(o=t.first_name)||void 0===o?void 0:o.charAt(0).toLocaleUpperCase()})})]})},e.tag_id)}))})]},o)}))]})},Z=function(e){var n,i,t=e.member;return(0,m.jsx)("div",{style:{flex:1,flexDirection:"column"},children:(0,m.jsx)(S,{member:t,categories:(null===t||void 0===t||null===(n=t.tags)||void 0===n||null===(i=n.filter((function(e){return"outgoing"===(null===e||void 0===e?void 0:e.type)})))||void 0===i?void 0:i.map((function(e){return null===e||void 0===e?void 0:e.tag})))||[],disableSpaceNames:!1})})},T=function(e){var n=e.member,i=(0,s.s0)(),o=(0,d.D)().setSnackbar,l=(0,a._P)().resendInvite;return(0,m.jsx)("div",{style:{width:"100%",marginBottom:30,alignSelf:"center"},children:"pending"===(null===n||void 0===n?void 0:n.status)?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(r.ZP,{text:"Resend Invite",noshadow:!0,onClick:function(){l(n).then((function(){o({message:"Invite resent successfully.",status:"success"})})).catch((function(){o({message:"There was a problem in sending the invite. Please try again.",status:"error"})}))},style:{width:"100%",marginTop:10}}),(0,m.jsx)(r.ZP,{style:{fontSize:18,backgroundColor:"transparent",width:"100%",marginTop:10},noshadow:!0,icon:(0,m.jsx)(t.Z,{style:{color:"red",marginRight:20}}),textStyle:{color:"red"},onClick:function(){i("/share/remove-confirm",{state:{member:n}})},text:"Revoke Access"})]}):(0,m.jsx)(r.ZP,{mode:"contained",text:"Update Access",noshadow:!0,style:{width:"100%",marginTop:10},onClick:function(){i("/share/select-folders",{state:{member:n}})}})})},z=function(e){var n,i,s=e.member,r=e.accessText,d=(e.bigDescription,e.showActions);e.shareMode;return(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)("div",{style:{flex:1,borderRadius:c.Z.roundness},children:[(0,m.jsxs)("div",{children:[(0,m.jsxs)(l.uT,{style:{display:"flex",marginBottom:40,marginTop:20,fontWeight:"bold",fontSize:24},children:["Shared with ",null===s||void 0===s||null===(n=s.user)||void 0===n?void 0:n.first_name]}),"confirm"===r||"remove"===r?(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)("div",{style:{margin:20},children:[(0,m.jsxs)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:["remove"===r?(0,m.jsx)(t.Z,{color:"error",fontSize:"small"}):(0,m.jsx)(o.Z,{color:"success",fontSize:"small"}),(0,m.jsx)("div",{style:{margin:5}}),(0,m.jsxs)(l.uT,{style:{fontWeight:"bold",color:"gray"},children:["view"===r?"invited"===(null===s||void 0===s?void 0:s.status)?"You will have access to":"You have access to":"confirm"===r?"W
1ill have access to":"remove"===r?"Will lose access to":"invited"===(null===s||void 0===s?void 0:s.status)?"You will have access to":"You have access to",":"]})]}),(0,m.jsx)("div",{style:{margin:10}}),(0,m.jsx)(S,{categories:(null===s||void 0===s||null===(i=s.tags)||void 0===i?void 0:i.map((function(e){return null===e||void 0===e?void 0:e.tag})))||[],disableSpaceNames:"invited"===(null===s||void 0===s?void 0:s.status)})]})}):(0,m.jsx)(Z,{member:s}),(0,m.jsx)("div",{style:{height:50}})]}),d&&!r?(0,m.jsx)(T,{member:s}):null]})})}},1173:function(e,n,i){i.d(n,{V$:function(){return t},ks:function(){return o}});var t=function(e){var n,i=0;null===(n=e+="noiseynoise!@#$%^&*()_+\xa7\xa71234567890-=~`{}[]|\\:\";'<>,.?/")||void 0===n||n.split("").forEach((function(e,n){i=e.charCodeAt(0)+((i<<6)-i)+n}));for(var t="#",o=0;o<3;o++){var s=i>>8*o&255;s=255&(s^i>>16*o&255),t+=Math.floor(s%128+64).toString(16).padStart(2,"0")}return t},o=function(e,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.startsWith("#")&&(e=e.slice(1),i=!0);var t=parseInt(e,16),o=(t>>16)+n;o=Math.min(255,Math.max(o,0));var s=(t>>8&255)+n;s=Math.min(255,Math.max(s,0));var r=(255&t)+n;return(i?"#":"")+((r=Math.min(255,Math.max(r,0)))|s<<8|o<<16).toString(16)}}}]); 2//# sourceMappingURL=7411.c529bcf2.chunk.js.map
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.