PageSourceSearch

https://donate.mujeresunidas.net/chunks/593e0e32/js/ClyWHoJh.js

js mujeresunidas.net collected 2026-09-25 19:39:18 UTC 7,831 bytes, 1 lines download raw bytes

1import{n as l,af as n,W as d,N as c,cV as h,cW as u,cj as m,cX as v,cl as o}from"./DBiBkISY.js";import{g as p}from"./C4-nxPUU.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"835e187a3c1d607b337ae213ae6c693fe0fb243d"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ff33fb6b-c6b7-4282-b7db-234d9ab838e3",e._sentryDebugIdIdentifier="sentry-dbid-ff33fb6b-c6b7-4282-b7db-234d9ab838e3")}catch{}})();const f={components:{WgBtn:d,WgTextField:n},data(){return{label:this.$store.state.dialog.props.label||"Givers",width:"320px",householdId:this.$store.state.dialog.props.householdId,invites:[],isEditing:!1,household:{},loading:!1,givers:[]}},computed:{amIAdmin(){return this.isAdmin(this.$store.state.customer.current_login)},invitesWithGivers(){return this.givers.concat(this.invites)},headers(){return[{text:"Name",value:"name",width:"50%"},{text:"Status",value:"status",width:"20%"},{text:"",value:"actions",width:"20%"}]}},mounted(){this.fetchInvites()},created(){this.fetchHousehold()},methods:{fetchHousehold(){p(this.$route.params.id).then(e=>{this.household=e.data.data,this.givers=e.data.data.members})},performAction(e,t,s){e(t).then(()=>{this.showSnackbar({message:s,timeout:1e3,color:"success"})}).catch(a=>{this.showSnackbar({message:`${a.response.data.message}`,timeout:-1,color:"error"})}).finally(()=>{this.fetchHousehold()})},removeSelf(e){this.performAction(o,{householdId:this.household.id,userId:e.id},"You have left the group"),this.closeDialog(),this.$router.push({name:"Profile"})},removeMember(e){this.performAction(o,{householdId:this.household.id,userId:e.id},"Member removed successfully")},makeAdmin(e){this.performAction(v,{householdId:this.household.id,userId:e.id},"Member made admin successfully"),this.fetchHousehold()},resendInvite(e){this.performAction(m,{householdId:this.household.id,params:{emails:[e.email],redirect_url:`${window.location.origin}/${this.$store.state.organization.slug}/sign-up`}},"Your Invitation Has Been Sent")},isAdmin(e){var t;return e.id&&((t=this.household)!=null&&t.members)?this.household.members.find(s=>s.id===e.id&&s.pivot.primary):!1},addMembers(){this.$store.dispatch("dialog/showDialog",{component:"CreateGroupDialog",solo:!0,width:"320px",householdReceived:this.household,stepReceived:3}).then(()=>{this.$router.push({name:"HouseholdView",params:{id:this.household.id}})})},saveName(){this.loading=!0,u(this.household).then(e=>{setTimeout(()=>{this.loading=!1},600),this.closeDialog(),this.household=e.data.data})},fetchInvites(){h(this.$route.params.id).then(e=>{this.invites=e.data})},avatar(e){return e.avatar},...c({closeDialog:"dialog/closeDialog",showSnackbar:"snackbar/showSnackbar"}),cancel(){this.closeDialog()},routeAndClose(e){this.$router.push({name:"User",params:{id:e.id}}),this.$store.dispatch("dialog/closeDialog")},followUser(e){this.$store.dispatch("user/followUser",e.id).then(()=>{e.is_following=!0})},unfollowUser(e){this.$store.dispatch("user/unfollowUser",e.id).then(()=>{e.is_following=!1})}}};var g=function(){var t=this,s=t._self._c;return s("v-card",{staticClass:"card-shadow",staticStyle:{"border-radius":"16px",overflow:"hidden"}},[s("v-row",{attrs:{align:"center",justify:"center"}},[s("v-col",{staticClass:"pt-8",attrs:{md:"12",cols:"12"}},[s("v-row",{attrs:{align:"center",justify:"center"}},[s("v-col",{staticClass:"d-flex justify-space-between pb-0",attrs:{cols:"12"}},[s("div",{staticClass:"d-flex ml-4"},[t.isEditing?t._e():s("h3",{staticClass:"my-auto"},[t._v(t._s(t.household.name))]),t.isEditing?s("wg-text-field",{staticClass:"no-border",attrs:{placeholder:"Household Name","data-cy":"group-name"},model:{value:t.household.name,callback:function(a){t.$set(t.household,"name",a)},expression:"household.name"}}):t._e(),s("wg-btn",{staticClass:"mb-2",attrs:{"min-width":"32",width:"32","max-height":"32",icon:"","data-cy":"group-name-edit"},on:{click:function(a){t.isEditing=!t.isEditing}}},[s("v-icon",[t._v("$pencilIcon")])],1)],1),s("wg-btn",{staticClass:"mr-4",staticStyle:{"border-radius":"10px !important"},attrs:{"min-width":"32",width:"32","max-height":"32","data-cy":"add-members"},on:{click:t.addMembers}},[s("v-icon",{attrs:{size:"16"}},[t._v("mdi-plus")])],1)],1),s("v-col",{staticClass:"pt-0",attrs:{cols:"12"}},[s("span",{staticClass:"ml-4"},[t._v("Add or remove Group Members")])]),s("v-col",{staticClass:"wg-blue-border",attrs:{cols:"12"}},[s("v-data-table",{staticClass:"px-0 mx-0",staticStyle:{"border-top":"1px solid #e3eef6 !important"},attrs:{"disable-sort":"","mobile-breakpoint":0,items:t.invitesWithGivers,headers:t.headers,"hide-default-footer":""},scopedSlots:t._u([{key:"item.name",fn:function({item:a}){return[s("v-row",[s("v-col",{attrs:{cols:"4"}},[a.avatar?s("v-avatar",{staticClass:"mr-4 my-4",attrs:{size:"40"}},[s("v-img",{attrs:{src:a.avatar}})],1):s("v-avatar",{staticClass:"mr-4 my-4",staticStyle:{"background-color":"var(--v-primary-base)"},attrs:{size:"40"}},[s("v-icon",{attrs:{size:"24"}},[t._v("mdi-account")])],1)],1),s("v-col",{attrs:{cols:"5"}},[s("div",{staticClass:"font-weight-bold pt-3 truncate-cell",class:a.name?"pt-3":"pt-6",staticStyle:{width:"90px"}},[t._v(" "+t._s(a.name)+" ")]),s("div",{staticClass:"truncate-cell",staticStyle:{width:"90px","font-weight":"normal",color:"#486f88"}},[t._v(" "+t._s(a.email_1||a.email)+" ")])])],1)]}},{key:"item.status",fn:function({item:a}){return[t.isAdmin(a)?s("v-chip",{staticClass:"my-auto",staticStyle:{"border-radius":"6px"},attrs:{small:"","text-color":"success",color:"rgba(7, 193, 128, .24)"}},[t._v(" Admin ")]):a.name?s("v-chip",{staticClass:"my-auto",staticStyle:{"border-radius":"6px"},attrs:{small:"","text-color":"success",color:"rgba(7, 193, 128, .24)"}},[t._v(" Success ")]):s("v-chip",{staticClass:"my-auto",staticStyle:{"border-radius":"6px"},attrs:{small:"","text-color":"warning",color:"rgba(255, 153, 49, .24)"}},[t._v(" Pending ")])]}},{key:"item.actions",fn:function({item:a}){return[s("v-menu",{attrs:{"offset-y":"",left:""},scopedSlots:t._u([{key:"activator",fn:function({on:i,attrs:r}){return[s("v-btn",t._g(t._b({attrs:{icon:"",small:""}},"v-btn",r,!1),i),[s("v-icon",{attrs:{size:"24"}},[t._v("$moreVertical")])],1)]}}],null,!0)},[t.isAdmin(a)?t._e():s("v-list",{staticStyle:{"background-color":"#223345","border-radius":"8px"}},[a.name&&!t.isAdmin(a)?s("v-list-item",{staticStyle:{"min-height":"36px !important"},on:{click:function(i){return t.removeMember(a)}}},[s("span",{staticClass:"white--text menu-vals"},[t._v("Remove")])]):t._e(),a.name?t._e():s("v-list-item",{staticStyle:{"min-height":"36px !important"},on:{click:function(i){return t.resendInvite(a)}}},[s("span",{staticClass:"white--text menu-vals"}
1,[t._v("Resend Invite")])]),a.name&&!t.isAdmin(a)&&t.amIAdmin?s("v-list-item",{staticStyle:{"min-height":"36px !important"},on:{click:function(i){return t.makeAdmin(a)}}},[s("span",{staticClass:"white--text menu-vals"},[t._v("Make Admin")])]):t._e()],1)],1)]}}],null,!0)})],1),s("v-col",{staticClass:"mt-9",attrs:{cols:"12"}},[s("v-row",[s("v-col",{staticClass:"pr-2 pl-4 mb-4",attrs:{cols:"6",align:"right"}},[s("wg-btn",{attrs:{small:"",width:"95%","data-cy":"leave-group"},on:{click:function(a){return t.removeSelf(t.$store.state.customer.current_login)}}},[t._v(" Leave Group "),s("v-icon",{staticClass:"ml-4",attrs:{size:"16"}},[t._v("$logout")])],1)],1),s("v-col",{staticClass:"pl-2 pr-4 mb-4",attrs:{cols:"6"}},[s("wg-btn",{attrs:{loading:t.loading,small:"",width:"95%",background:"gradient","data-cy":"save-name"},on:{click:t.saveName}},[t._v(" Save Group "),s("v-icon",{staticClass:"ml-auto",attrs:{size:"16"}},[t._v("$saveIcon")])],1)],1)],1)],1)],1)],1)],1)],1)},b=[],_=l(f,g,b,!1,null,"4928b162");const x=_.exports;export{x as default};

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.