PageSourceSearch

https://www.simplywise.com/static/js/5163.74d97e59.chunk.js

js simplywise.com collected 2026-09-28 08:44:21 UTC 8,688 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunksimplywise_web=self.webpackChunksimplywise_web||[]).push([[5163],{95163:function(e,o,n){n.r(o);var i=n(74165),t=n(15861),r=n(1413),l=n(93324),s=n(88447),d=n(20890),a=n(72791),u=n(57689),c=n(11480),v=n(80140),f=n(68239),m=n(99995),h=n(86222),g=n(9618),x=n(21545),y=n(5340),p=n(80184);o.default=function(){var e,o=(0,u.s0)(),n=(0,f.a)().user,b=(0,u.TH)().state,j=b.folderId,w=b.memberFlow,Z=(0,m.D)().setSnackbar,C=(0,h._P)(),k=C.members,S=C.setMemberAccess,M=C.getFolderShareInfo,_=C.getMembers;(0,a.useEffect)((function(){w&&_()}),[]);var I=(0,x.j)().folders,D=(null===I||void 0===I?void 0:I.find((function(e){return(null===e||void 0===e?void 0:e.tag_id)===j})))||{},z=(null===D||void 0===D?void 0:D.user_id)===(null===n||void 0===n?void 0:n.id),R=null===k||void 0===k?void 0:k.find((function(e){var o;return(null===e||void 0===e||null===(o=e.user)||void 0===o?void 0:o.id)===(null===D||void 0===D?void 0:D.user_id)})),O=M(D),W=(0,a.useState)(!1),A=(0,l.Z)(W,2),B=A[0],F=A[1],P=(0,a.useState)(""),T=(0,l.Z)(P,2),E=T[0],L=T[1],V=(0,a.useState)(""),H=(0,l.Z)(V,2),$=H[0],U=H[1],Y=(0,a.useState)(""),N=(0,l.Z)(Y,2),q=N[0],G=N[1],J=(0,a.useState)(),K=(0,l.Z)(J,2),Q=K[0],X=K[1],ee=function(e,o,n,i){L(e),U(o),G(n),i&&X(i),F(!0)},oe=function(){L(""),U(""),G(""),X(null),F(!1)};return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(s.Z,{open:B,onClose:oe,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:(0,p.jsxs)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:400,backgroundColor:"#fff",borderRadius:15,padding:30},children:[(0,p.jsx)(d.Z,{id:"modal-modal-title",variant:"h6",component:"h2",children:E}),(0,p.jsx)(d.Z,{id:"modal-modal-description",sx:{mt:2},children:$}),(0,p.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",marginTop:40,marginBottom:20},children:[(0,p.jsx)(c.ZP,{mode:"contained",onClick:function(){return"leave"===q?function(){var e;R?S((0,r.Z)((0,r.Z)({},R),{},{tags:null===R||void 0===R||null===(e=R.tags)||void 0===e?void 0:e.filter((function(e){var o;return(null===e||void 0===e||null===(o=e.tag)||void 0===o?void 0:o.tag_id)!==j}))})).then((function(){oe(),o("/app")})).catch((function(e){Z({message:"Error leaving folder",status:"error"})})).finally((function(){oe()})):console.error("Owner not found")}():"remove"===q?function(){var e;Q?S((0,r.Z)((0,r.Z)({},Q),{},{tags:null===(e=Q.tags)||void 0===e?void 0:e.filter((function(e){var o;return(null===e||void 0===e||null===(o=e.tag)||void 0===o?void 0:o.tag_id)!==j}))})).then((function(){Z({message:"User removed",status:"success"})})).catch((function(e){console.error("Error removing user",e),Z({message:"Error removing user",status:"error"})})).finally((0,t.Z)((0,i.Z)().mark((function e(){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_();case 2:O=M(D),oe();case 4:case"end":return e.stop()}}),e)})))):console.error("Member not found.")}():null},noshadow:!0,style:{width:300,margin:"auto",backgroundColor:g.Z.colors.secondary,marginBottom:20},text:"Yes"}),(0,p.jsx)(c.ZP,{mode:"contained",onClick:function(){oe()},noshadow:!0,style:{width:300,margin:"auto",backgroundColor:g.Z.colors.white,border:"1px solid ".concat(g.Z.colors.secondary)},textStyle:{color:g.Z.colors.secondary},text:"No"})]})]})}),(0,p.jsx)(v.Z,{showDrawer:!0}),(0,p.jsxs)("div",{style:{maxWidth:1200,margin:"auto",padding:20},children:[(0,p.jsx)("div",{style:{height:20}}),(0,p.jsxs)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between"},children:[(0,p.jsxs)("div",{style:{fontWeight:"bold",fontSize:24},children:[D.name," Members (",null===(e=O)||void 0===e?void 0:e.length,")"]}),(0,p.jsx)("div",{style:{flex:1}}),z?(0,p.jsx)(c.ZP,{mode:"contained",onClick:function(){o("/share/folder-member-suggestion",{state:{folderId:j,memberFlow:!0}})},noshadow:!0,style:{width:200,margin:"auto",backgroundColor:g.Z.colors.secondary},text:"Add Member"}):(0,p.jsx)(c.ZP,{mode:"contained",noshadow:!0,style:{width:200,margin:"auto",backgroundColor:g.Z.colors.error},onClick:function(){ee("Leave folder","Are you sure you want to leave this folder? You will lose access to all receipts in this folder.","leave")},text:"Leave folder"})]}),(0,p.jsx)("div",{style:{height:40}}),(0,p.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",boxShadow:"0px 0px 20px 0px rgba(0, 0, 0, 0.03)",borderRadius:8,marginBottom:10},children:[(0,p.jsx)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%",padding:20,borderBottom:0===O.length?"none":"2px s
1olid rgba(0, 0, 0, 0.03)"},children:(0,p.jsx)(y.Z,{member:{user:D.user_id===(null===n||void 0===n?void 0:n.id)?n:D.user,status:"owner"},onClick:null,status:"Owner",statusColor:g.Z.colors.primary,isOwner:z})}),O.map((function(e,o){var n,i;return(0,p.jsx)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%",padding:20,borderBottom:o===O.length-1?"none":"2px solid #f0f0f0"},children:(0,p.jsx)(y.Z,{member:e,enableRemove:!0,isOwner:z,onClick:function(){var o;ee("Remove member","Are you sure you want to remove ".concat(null===e||void 0===e||null===(o=e.user)||void 0===o?void 0:o.first_name," from this folder?"),"remove",e)}},null===e||void 0===e||null===(i=e.user)||void 0===i?void 0:i.id)},null===(n=e.user)||void 0===n?void 0:n.id)}))]})]})]})}},5340:function(e,o,n){var i=n(57689),t=n(98268),r=n(84220),l=n(91754),s=n(9618),d=n(1173),a=n(80184);o.Z=function(e){var o,n,u,c,v,f,m,h,g,x,y=e.member,p=e.disableStatus,b=e.onClick,j=e.status,w=e.statusColor,Z=e.enableRemove,C=e.isOwner,k=(0,i.s0)(),S=(0,d.V$)(null===y||void 0===y||null===(o=y.user)||void 0===o||null===(n=o.id)||void 0===n?void 0:n.toString());return(0,a.jsx)("div",{onClick:function(){var e;Z||null!==b&&(null===b||void 0===b||b(),k("/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:Z?"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:S,display:"flex",justifyContent:"center",alignItems:"center",marginRight:10},children:(0,a.jsx)(l.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:[p||"active"===(null===y||void 0===y?void 0:y.status)?null:(0,a.jsx)("div",{style:{marginBottom:2},children:(0,a.jsx)(l.uT,{style:{color:w||s.Z.colors.error,fontWeight:"bold"},children:j||"Invite pending"})}),(0,a.jsx)(l.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===(f=y.user)||void 0===f?void 0:f.mobile)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{style:{margin:2}}),(0,a.jsxs)(l.uT,{style:{color:"gray",fontSize:14,fontWeight:"500"},children:[null===(m=y.user)||void 0===m?void 0:m.mobile,(null===(h=y.user)||void 0===h?void 0:h.email)&&", ".concat(null===(g=y.user.email)||void 0===g?void 0:g.substring(0,(null===(x=y.user.email)||void 0===x?void 0:x.indexOf("@"))+1),"...")]})]})]})}),(0,a.jsxs)(a.Fragment,{children:[null===b||Z?null:(0,a.jsx)(t.Z,{fontSize:"medium",style:{marginRight:15}}),Z&&C&&(0,a.jsx)(r.Z,{onClick:function(e){e.stopPropagation(),null===b||void 0===b||b()},fontSize:"large",style:{marginRight:15,cursor:"pointer",color:s.Z.colors.error}})]})]})})}},1173:function(e,o,n){n.d(o,{V$:function(){return i},ks:function(){return t}});var i=function(e){var o,n=0;null===(o=e+="noiseynoise!@#$%^&*()_+\xa7\xa71234567890-=~`{}[]|\\:\";'<>,.?/")||void 0===o||o.split("").forEach((function(e,o){n=e.charCodeAt(0)+((n<<6)-n)+o}));for(var i="#",t=0;t<3;t++){var r=n>>8*t&255;r=255&(r^n>>16*t&255),i+=Math.floor(r%128+64).toString(16).padStart(2,"0")}return i},t=function(e,o){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.startsWith("#")&&(e=e.slice(1),n=!0);var i=parseInt(e,16),t=(i>>16)+o;t=Math.min(255,Math.max(t,0));var r=(i>>8&255)+o;r=Math.min(255,Math.max(r,0));var l=(255&i)+o;return(n?"#":"")+((l=Math.min(255,Math.max(l,0)))|r<<8|t<<16).toString(16)}},84220:function(e,o,n){var i=n(76189),t=n(80184);o.Z=(0,i.Z)((0,t.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=5163.74d97e59.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.