PageSourceSearch

https://give.worldimpact.org/chunks/876389f9/js/B-9hCypG.js

js worldimpact.org collected 2026-09-28 11:54:32 UTC 7,967 bytes, 1 lines download raw bytes

1import{n as i,O as o,W as l,af as r,c_ as n,N as c,cj as d}from"./DJ9aVpqf.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};a.SENTRY_RELEASE={id:"e09cc1569679c7caf032c7dc74235024dfa1e7eb"};var e=new a.Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="e11c66a0-5403-44e8-9a16-21caba449fc2",a._sentryDebugIdIdentifier="sentry-dbid-e11c66a0-5403-44e8-9a16-21caba449fc2")}catch{}})();const u={components:{WgTextField:r,WgBtn:l},props:{givers:{type:Array},label:{type:String},solo:{type:Boolean},width:{type:String},maxHeight:{type:String},householdId:{type:String},stepReceived:{type:Number},householdReceived:{type:Object}},data(){return{step:this.stepReceived?this.stepReceived:1,isEditing:!1,loading:!1,stepTimer:null,emails:"",invites:[],household:{name:null,type:null,members:[{id:this.$store.state.customer.current_login.id}]},users:[{avatar:this.$store.state.customer.current_login.avatar,name:this.$store.state.customer.current_login.name,email:this.$store.state.customer.current_login.email_1,status:"Pending"}],headers:[{text:"User",value:"name",width:"50%"},{text:"Status",value:"status",width:"20%"}]}},computed:{householdValue(){return this.householdReceived?this.householdReceived:this.household},current_user(){return this.$store.state.customer.current_login},emailsArray(){return this.emails.split(/[\s,]+/).filter(function(a){return a.trim().length>0})}},watch:{stepReceived(){return this.stepReceived?this.step=3:null}},validations:{household:{name:{required:o.required}}},methods:{addInvites(){this.loading=!0,this.emails?d({householdId:this.householdValue.id,params:{emails:this.emailsArray,redirect_url:`${window.location.origin}/${this.$store.state.organization.slug}/sign-in`}}).then(()=>{this.loading=!1,this.showSnackbar({message:"Your Invitation Has Been Sent",timeout:5e3,color:"success"}),this.closeDialog()}).catch(a=>{this.loading=!1,this.showSnackbar({message:`${a.response.data.message}`,timeout:-1,color:"error"})}):(this.loading=!1,this.closeDialog()),this.householdReceived||this.$router.push({name:"HouseholdView",params:{id:this.householdValue.id}})},...c({closeDialog:"dialog/closeDialog",showSnackbar:"snackbar/showSnackbar"}),createGroup(){this.$v.$touch(),!this.$v.$invalid&&(this.loading=!0,n(this.household).then(a=>{this.household=a.data.data,this.setStep(3)}).finally(()=>this.loading=!1))},setStep(a){this.step=a}}};var h=function(){var e=this,t=e._self._c;return t("v-card",{staticClass:"card-shadow pa-1 special-dialog",staticStyle:{"border-radius":"16px !important"},attrs:{width:"320px","max-height":357}},[t("v-col",{staticClass:"pa-0",attrs:{cols:"12",md:"12"}},[t("v-stepper",{staticClass:"pa-0",model:{value:e.step,callback:function(s){e.step=s},expression:"step"}},[t("v-stepper-items",{staticClass:"pa-0"},[t("v-stepper-content",{staticClass:"py-3",attrs:{step:1}},[t("v-row",{staticClass:"grid-16"},[t("v-col",{staticClass:"mx-3",attrs:{cols:"12"}},[t("h3",[e._v("Create Group")]),t("span",[e._v("Choose the type of group you want to create!")])]),t("v-col",{staticClass:"pt-4 mx-3",attrs:{cols:"12"}},[t("v-radio-group",{attrs:{mandatory:""},model:{value:e.household.type,callback:function(s){e.$set(e.household,"type",s)},expression:"household.type"}},[t("label",{staticClass:"d-flex"},[t("v-radio",{attrs:{value:"1"}}),t("span",[e._v("Family")])],1),t("label",{staticClass:"d-flex"},[t("v-radio",{attrs:{value:"2"}}),t("span",[e._v("Corporation")])],1),t("label",{staticClass:"d-flex"},[t("v-radio",{attrs:{value:"3"}}),t("span",[e._v("Fundraising Team")])],1),t("label",{staticClass:"d-flex"},[t("v-radio",{attrs:{value:"4"}}),t("span",[e._v("Church")])],1)])],1),t("v-col",{attrs:{md:"4",cols:"5",align:"right"}},[t("wg-btn",{class:{"ml-3":!e.$vuetify.breakpoint.mobile},attrs:{small:"",width:"97"},on:{click:function(s){return e.$store.dispatch("dialog/closeDialog")}}},[e._v(" Cancel ")])],1),t("v-col",{attrs:{md:"8",cols:"6",align:"right"}},[t("wg-btn",{staticClass:"mr-3",attrs:{small:"",width:e.$vuetify.breakpoint.mobile?"160":"175",background:"gradient","data-cy":"create-btn"},on:{click:function(s){return e.setStep(2)}}},[e._v(" Next "),t("v-icon",{staticClass:"ml-auto",attrs:{size:"16"}},[e._v("$chevronRight")])],1)],1)],1)],1),t("v-stepper-content",{staticClass:"pa-0",attrs:{step:2}},[t("v-row",{staticClass:"grid-16"},[t("v-col",{staticClass:"px-0",attrs:{cols:"12"}},[t("wg-text-field",{staticClass:"no-border mx-auto",staticStyle:{width:"95% !important"},attrs:{autofocus:"",label:"Name Your Group","error-messages":e.$v.household.name.$dirty&&!e.$v.household.name.required?["Required"]:[],"data-cy":"group-name"},on:{input:function(s){return e.$v.household.name.$touch()}},model:{value:e.household.name,callback:function(s){e.$set(e.household,"name",s)},expression:"household.name"}}),t("span",{staticClass:"ml-4"},[e._v("Add or remove group members")])],1),t("v-col",{staticClass:"pt-6 mb-9",attrs:{cols:"12"}},[t("v-divider",{staticClass:"disabled-table"}),t("v-data-table",{staticClass:"disabled-table",attrs:{"hide-default-footer":"","read-only":!0,"disable-sort":"",items:e.users,headers:e.headers},scopedSlots:e._u([{key:"item.name",fn:function({item:s}){return[t("v-row",[t("v-col",{attrs:{cols:"4"}},[t("v-avatar",{staticClass:"mr-4 my-4",attrs:{size:"40"}},[t("img",{attrs:{src:s.avatar}})])],1),t("v-col",{staticClass:"truncate-cell",attrs:{cols:"8"}},[t("div",{staticClass:"truncate-cell py-3",staticStyle:{width:"100px"}},[t("span",{staticClass:"font-weight-bold"},[e._v(e._s(s.name))]),t("br"),t("span",{staticClass:"font-weight-light"}
1,[e._v(" "+e._s(s.email)+" ")])])])],1)]}},{key:"item.status",fn:function(){return[t("div",{staticClass:"d-flex"},[t("v-chip",{staticClass:"my-auto",staticStyle:{"border-radius":"6px"},attrs:{small:"","text-color":"success",color:"rgba(7, 193, 128, .24)"}},[e._v(" Admin ")]),t("wg-btn",{attrs:{icon:""}},[t("v-icon",[e._v("$moreVertical")])],1)],1)]},proxy:!0}],null,!0)})],1),t("v-col",{staticClass:"mb-4",attrs:{md:"4",cols:"5"}},[t("wg-btn",{staticClass:"ml-4",attrs:{small:"",width:"97"},on:{click:function(s){return e.setStep(1)}}},[t("v-icon",{attrs:{size:"16"}},[e._v("$chevronLeft")]),e._v(" Go Back ")],1)],1),t("v-col",{staticClass:"mb-4",attrs:{md:"8",cols:"6"}},[t("wg-btn",{class:e.$vuetify.breakpoint.mobile?"":"ml-5",attrs:{small:"",width:e.$vuetify.breakpoint.mobile?160:167,background:"gradient",loading:e.loading,"data-cy":"save-btn"},on:{click:e.createGroup}},[e._v(" Next "),t("v-icon",{staticClass:"ml-auto",attrs:{size:"16"}},[e._v("$saveIcon")])],1)],1)],1)],1),t("v-stepper-content",{staticClass:"pa-3",attrs:{step:3}},[t("v-row",[t("v-col",{staticClass:"d-flex",attrs:{cols:"12"}},[t("h3",{staticClass:"my-auto"},[e._v("Invite a member to group")])]),t("v-col",{attrs:{cols:"12"}},[t("span",[e._v(" Add email(s) of the members you want to invite to this group. ")])]),t("v-col",{staticClass:"pb-14",attrs:{cols:"12"}},[t("v-text-field",{staticClass:"household-email",staticStyle:{"border-radius":"10px",color:"#000 !important","font-weight":"bold !important"},attrs:{justify:"center",align:"center",height:"36",dense:"",outlined:"",placeholder:"Enter emails to send invites","data-cy":"member-email"},scopedSlots:e._u([{key:"append",fn:function(){return[t("v-icon",{staticStyle:{"margin-top":"4px"},attrs:{size:"16",color:"primary"}},[e._v(" $email ")])]},proxy:!0}]),model:{value:e.emails,callback:function(s){e.emails=s},expression:"emails"}})],1),t("v-col",{staticClass:"pt-10",attrs:{cols:"12"}},[t("wg-btn",{attrs:{small:"",loading:e.loading,width:"100%",background:"gradient","data-cy":"invite-or-skip"},on:{click:function(s){return e.addInvites()}}},[t("span",[e._v(e._s(e.emails?"Send Invites":"Skip Inviting"))]),t("v-icon",{staticClass:"ml-auto",attrs:{size:"16"}},[e._v("$email")])],1)],1)],1)],1)],1)],1)],1)],1)},p=[],v=i(u,h,p,!1,null,"f8abcb17");const g=v.exports;export{g 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.