1"use strict";(self.webpackChunksimplywise_web=self.webpackChunksimplywise_web||[]).push([[9399],{19399:function(e,i,t){t.r(i);var n=t(57689),l=t(72791),r=t(80140),o=t(88276),s=t(11480),d=t(86222),a=t(91754),u=t(5340),c=t(80184);i.default=function(){var e=(0,n.s0)(),i=(0,d._P)(),t=i.members,v=i.getMembers;(0,l.useEffect)((function(){v()}),[]);var h=null===t||void 0===t?void 0:t.filter((function(e){var i;return null===e||void 0===e||null===(i=e.tags)||void 0===i?void 0:i.some((function(e){return"outgoing"===(null===e||void 0===e?void 0:e.type)}))}));return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(r.Z,{showDrawer:!0}),(0,c.jsxs)("div",{style:{maxWidth:1200,margin:"auto",padding:20},children:[(0,c.jsx)("div",{style:{height:20}}),(0,c.jsxs)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between"},children:[(0,c.jsx)("div",{style:{fontWeight:"bold",fontSize:24},children:"Share"}),(0,c.jsx)("div",{style:{flex:1}}),(0,c.jsx)(s.ZP,{text:"Add Member",onClick:function(){e("/share/add-member")},style:{width:200,margin:"auto"}})]}),(0,c.jsx)("div",{style:{height:40}}),(0,c.jsxs)("div",{children:[0===h.length?(0,c.jsxs)("div",{style:{height:"90%",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"},children:[(0,c.jsx)("div",{style:{width:400,height:400},children:(0,c.jsx)(o.Z,{})}),(0,c.jsx)("div",{style:{margin:30}}),(0,c.jsx)(a.uT,{style:{textAlign:"center",fontSize:24,marginBottom:5},children:"Be on top of your"}),(0,c.jsx)(a.uT,{style:{fontWeight:"bold",textAlign:"center",fontSize:22,marginBottom:2},children:"Teams or Family"}),(0,c.jsx)(a.uT,{style:{fontWeight:"bold",textAlign:"center",fontSize:24},children:"expenses"}),(0,c.jsx)("div",{style:{margin:20}})]}):null,h.length>0&&(0,c.jsx)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",boxShadow:"0px 0px 20px 0px rgba(0, 0, 0, 0.03)",borderRadius:8,marginBottom:10},children:h.map((function(e,i){var n;return(0,c.jsx)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%",padding:20,borderBottom:i===t.length-1?"none":"2px solid rgba(0, 0, 0, 0.03)"},children:(0,c.jsx)(u.Z,{member:e})},null===(n=e.user)||void 0===n?void 0:n.id)}))})]})]})]})}},5340:function(e,i,t){var n=t(57689),l=t(98268),r=t(84220),o=t(91754),s=t(9618),d=t(1173),a=t(80184);i.Z=function(e){var i,t,u,c,v,h,f,x,m,g,y=e.member,j=e.disableStatus,p=e.onClick,b=e.status,w=e.statusColor,S=e.enableRemove,C=e.isOwner,z=(0,n.s0)(),M=(0,d.V$)(null===y||void 0===y||null===(i=y.user)||void 0===i||null===(t=i.id)||void 0===t?void 0:t.toString());return(0,a.jsx)("div",{onClick:function(){var e;S||null!==p&&(null===p||void 0===p||p(),z("/share/member/".concat(null===y||void 0===y||null===(e=y.user)||void 0===e?void 0:e.id)))},style:{paddingLeft:20,width:"100%",cursor:S?"default":"pointer"},children:(0,a.jsxs)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:[(0,a.jsx)("div",{style:{width:50,height:50,borderRadius:50,backgroundColor:M,display:"flex",justifyContent:"center",alignItems:"center",marginRight:10},children:(0,a.jsx)(o.uT,{style:{color:"#fff",fontSize:24,fontWeight:"bold"},children:null===y||void 0===y||null===(u=y.user)||void 0===u||null===(c=u.first_name)||void 0===c?void 0:c.charAt(0).toLocaleUpperCase()})}),(0,a.jsx)("div",{style:{display:"flex",flexDirection:"column",flex:1,marginLeft:10},children:(0,a.jsxs)("div",{children:[j||"active"===(null===y||void 0===y?void 0:y.status)?null:(0,a.jsx)("div",{style:{marginBottom:2},children:(0,a.jsx)(o.uT,{style:{color:w||s.Z.colors.error,fontWeight:"bold"},children:b||"Invite pending"})}),(0,a.jsx)(o.uT,{style:{fontWeight:"bold",fontSize:18},children:null===y||void 0===y||null===(v=y.user)||void 0===v?void 0:v.first_name}),(null===(h=y.user)||void 0===h?void 0:h.mobile)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{style:{margin:2}}),(0,a.jsxs)(o.uT,{style:{color:"gray",fontSize:14,fontWeight:"500"},children:[null===(f=y.user)||void 0===f?void 0:f.mobile,(null===(x=y.user)||void 0===x?void 0:x.email)&&", ".concat(null===(m=y.user.email)||void 0===m?void 0:m.substring(0,(null===(g=y.user.email)||void 0===g?void 0:g.indexOf("@"))+1),"...")]})]})]})}),(0,a.jsxs)(a.Fragment,{children:[null===p||S?null:(0,a.jsx)(l.Z,{fontSize:"medium",style:{marginRight:15}}),S&&C&&(0,a.jsx)(r.Z,{onClick:function(e){e.stopPropagation(),null===p||void 0===p||p()},fontSize:"large",style:{marginRight:15,cursor:"pointer",color:s.Z.colors.error}})]})]})})}},1173:function(e,i,t){t.d(i,{V$:function(){return n},ks:function(){return l}});var n=function(e){var i,t=0;null===(i=e+="noiseynoise!@#$%^&*()_+\xa7\xa71234567890-=~`{}[]|\\:\";'<>,.?/")||void 0===i||i.split("").forEach((function(e,i){t=e.charCodeAt(0)+((t<<6)-t)+i}));for(var n="#",l=0;l<3;l++){var r=t>>8*l&255;r=255&(r^t>>16*l&255),n+=Math.floor(r%128+64).toString(16).padStart(2,"0")}return n},l=function(e,i){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.startsWith("#")&&(e=e.slice(1),t=!0);var n=parseInt(e,16),l=(n>>16)+i;l=Math.min(255,Math.max(l,0));var r=(n>>8&255)+i;r=Math.min(255,Math.max(r,0));var o=(255&n)+i;return(t?"#":"")+((o=Math.min(255,Math.max(o,0)))|r<<8|l<<16).toString(16)}},84220:function(e,i,t){var n=t(76189),l=t(80184);i.Z=(0,n.Z)((0,l.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline")}}]); 2//# sourceMappingURL=9399.95b16fc6.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.