1import{a as se}from"./chunk-ZUTBQZFT.js";import{a as sn}from"./chunk-MTTMEMOK.js";import{Ad as ai,Ae as ct,Af as de,Be as ze,Ce as He,Cg as Ei,Ch as Ai,Ef as Xe,Gh as Ni,Hf as fi,Jf as Q,Nf as hi,Of as bi,Qe as si,Qf as Ci,Rf as vi,Sf as xi,Sg as Di,Tf as Te,Tg as qi,Vf as Ze,Xf as wi,Yf as Mi,_f as yi,ca as Kt,dg as Pi,eg as Oi,fg as ve,ig as ki,kf as $e,l as $t,lf as Je,m as Jt,mg as Si,nf as We,o as Wt,od as ii,p as Yt,pd as ni,pf as ae,pg as Ke,q as Xt,qf as Z,rg as Ti,sd as oi,th as Ii,v as Zt,vd as ri,vf as Ye,wf as ui,xf as _i,zg as et}from"./chunk-Z7QJGSO2.js";import"./chunk-CAAQCI76.js";import{a as ei,h as ti}from"./chunk-2DG4EMG2.js";import"./chunk-HSHVAMXQ.js";import{a as Fi}from"./chunk-HT4BWSKW.js";import{F as mi,g as li,q as dt,s as ci,y as di}from"./chunk-7IP4N3MI.js";import"./chunk-Y7VNH7AT.js";import{A as Vt,B as Rt,G as Ut,H as Qe,J as Lt,K as Qt,M as gi,c as Be,e as fe,g as Ve,h as Re,j as he,m as V,n as It,o as At,t as Nt,w as Gt,x as Ue,y as Le,z as Bt}from"./chunk-SN2LMZH2.js";import{a as $}from"./chunk-SKJKBA5P.js";import{$a as Ct,$b as Mt,Ab as v,Ca as ne,Ea as W,Fb as u,Fd as L,Gd as je,Hb as l,Hc as U,J as gt,K as D,Lb as R,Ma as bt,Mb as M,Na as Oe,Nb as y,Nc as H,Nd as jt,O as J,Qa as Ie,Ra as s,Rb as B,Rd as K,S as ot,Sd as zt,Tc as ge,Td as be,Ua as F,Uc as re,Ud as Ce,Vb as at,Vc as kt,Vd as Ht,Wb as d,Xa as Ae,Xb as T,Xc as St,Xd as lt,Ya as p,Yb as z,Yd as X,Zb as wt,Zd as pi,_a as A,_c as Tt,aa as ue,ac as yt,ad as Et,b as _t,bc as Pt,cc as Ot,dc as st,e as Fe,eb as E,ha as ft,hb as ke,hc as oe,ia as ht,ib as ce,ic as x,jb as h,jc as Ne,ka as rt,lb as b,md as Dt,nb as Y,ob as N,oc as w,pb as G,pc as P,pd as Ft,qa as _,qb as m,qc as Se,qd as qt,ra as g,rb as o,rd as Ge,s as Pe,sa as k,sb as r,ta as I,tb as f,tc as O,xa as qe,xb as vt,yb as xt,zb as _e}from"./chunk-TMJ7EB5C.js";import"./chunk-XLHMB6CO.js";import"./chunk-N2ADYHRH.js";import"./chunk-2N4XUULZ.js";import{a as te,b as ye,h as an,j as ut}from"./chunk-E5QWB6YB.js";var ln=["description"],cn=["readBtn"],Gi=t=>({"read-all":t}),Bi=(()=>{class t{constructor(e,i){this.cdr=e,this.renderer=i,this.mode="wrapped",this.stringStyle=!1,this.readText="Read more",this.showMore=!1,this.clickedAtVal=null}ngOnInit(){}ngOnChanges(){setTimeout(()=>{if(this.currentText=this.groupInfo?.description||"",this.stringStyle=!!this.groupInfo?.description,!this.currentText){this.currentText="",this.renderer.setStyle(this.descriptionEl.nativeElement,"max-height","100%"),this.renderer.setStyle(this.readBtn.nativeElement,"display","none"),this.cdr.detectChanges();return}setTimeout(()=>{this.renderer.setStyle(this.descriptionEl.nativeElement,"max-height","100%"),this.checkForContentAndShowBtn()},100)},100)}ngOnDestroy(){this.groupInfo=null}checkForContentAndShowBtn(){this.descriptionEl.nativeElement.clientHeight>221?(this.renderer.setStyle(this.descriptionEl.nativeElement,"max-height","221px"),this.renderer.setStyle(this.readBtn.nativeElement,"display","block")):this.renderer.setStyle(this.readBtn.nativeElement,"display","none"),this.cdr.detectChanges()}toggleTextView(){this.showMore=!this.showMore,this.readText=this.showMore?"Read less":"Read more",this.showMore?(this.clickedAtVal=this.descriptionEl.nativeElement.getBoundingClientRect().top,this.renderer.setStyle(this.descriptionEl.nativeElement,"max-height","none")):this.descriptionEl.nativeElement.clientHeight>221&&(window.scroll(0,this.clickedAtVal+221),this.renderer.setStyle(this.descriptionEl.nativeElement,"max-height","221px"))}static{this.\u0275fac=function(i){return new(i||t)(p(U),p(Ae))}}static{this.\u0275cmp=A({type:t,selectors:[["app-group-description"]],viewQuery:function(i,n){if(i&1&&R(ln,5,W)(cn,5,W),i&2){let a;M(a=y())&&(n.descriptionEl=a.first),M(a=y())&&(n.readBtn=a.first)}},inputs:{groupInfo:"groupInfo",mode:"mode"},standalone:!1,features:[ne],decls:12,vars:13,consts:[["inner",""],["description",""],["readBtn",""],[1,"c-quest-descption"],[1,"c-quest-descption__caption"],[1,"c-quest-descption__caption__inner"],[1,"c-quest-descption__typo","h-typography",3,"ngClass","innerHTML"],[1,"read-more-btn",3,"ngClass"],[3,"click"]],template:function(i,n){i&1&&(o(0,"div",3)(1,"div",4)(2,"div",5,0),f(4,"div",6,1),w(6,"normalizeRichText"),w(7,"safe"),o(8,"div",7,2)(10,"button",8),u("click",function(){return n.toggleTextView()}),d(11),r()()()()()),i&2&&(s(4),m("ngClass",x(9,Gi,n.showMore))("innerHTML",Se(7,6,P(6,4,n.currentText),"html"),bt),s(4),m("ngClass",x(11,Gi,n.showMore)),s(3),T(n.readText))},dependencies:[H,wi,Mi],styles:["[_ngcontent-%COMP%]:root{--accent-color: #008297;--accent-color-rgb: 0 130 151;--accent-dark-color: #295967;--accent-bg-light-color: #339BAC;--btn-text-color: #2e3638;--theme-text-dark: #2e3638;--bg-text-color: #2e3638;--theme-text-light: #ffffff;--btn-text-light: #ffffff;--quest-content-bg: #FFFFFF;--quest-highlight-bg: #E5EAED;--white-section-bg: #ffffff;--comment-blue-bg: #E5F2F5;--quest-header-bg: #008297;--lighter-btn-bg: #E5F2F5;--quest-detail-nav: #008297;--quest-detail-nav-dark: #295967;--site-header: #ffffff;--site-header-text: #2e3638;--site-header-highlight: #008297;--site-header-highlight-light: #008297;--site-header-highlight-text: #ffffff;--site-header-highlight-text-invert: #ffffff;--site-header-box-shadow: #00000080;--site-header-badge-bg: #E5F2F5;--site-header-badge-text: #008297;--avatar-border: #e0e0e0;--success-bg-btn: #1D966A;--success-bg-text: #ffffff;--table-row-hover: #F2F9FA;--mission-statement-bg: #E5F2F5;--mission-statement-text: #2e3638;--bg-text-color-light: #6d787e;--bg-white-ghost: #F8F8F9;--bg-milestone: #f3f3f3;--white-bg-original: #ffffff;--modal-bg: #ffffff;--feedback-bg: #f5f7f8;--transparent-white-bg: #FFFFFF;--milestone-task-bg: #f5f7f8;--primary-bg: #f3f3f3;--primary-bg-secondary: #ffffff;--quest-detail-right: #E5EAED;--input-field-bg: #ffffff;--nav-flow-number-bg: #ffffff;--nav-flow-number-color: #000000;--flow-pages-bg: #f3f3f3;--flow-pages-section-bg: #ffffff;--tooltip-bg: #000000;--tooltip-text-color: #ffffff;--close-btn-invert: 0;--close-btn-invert-str: invert(0);--payment-block-row: #ffffff;--search-hover-bg: #f0f0f0;--progress-bar-uncovered: #ffffff;--bg-text-color-secondary: #c5c9cb;--bs-backdrop-bg-custom: #000000;--read-more-gradient: #ffffff;--read-more-btn-text: #2e3638;--dots-bg: #E5F2F5;--dots-color: #2e3638;--total-amount-color: #2e3638;--team-option-bg: #f9f9f9;--team-option-bg-dark: #ededed;--checkbox-selection-color: #ffffff;--comment-text-color: #2e3638;--table-member-bg: #F4F7F7;--table-rank-bg: #ffffff;--table-gutter-bg: #E8E9EA;--error-dark: #D00808;
1--error-dark-hover: #e61c1c;--timeline-bg: #F3F4F5;--marked-milestone-bg: #1D966A;--marked-milestone-bg-hover: #22ab79;--marked-milestone-block: #E8F4F0;--accent-color-secondary-light: #EAEEF0;--sample-primary-bg: #f3f3f3;--sample-quest-content-bg: #ffffff;--sample-bg-text-color: #2e3638;--sample-theme-bg-color: #008297;--sample-theme-bg-color-light: #339BAC;--sample-theme-text-light: #ffffff;--sample-btn-text-light: #ffffff;--sample-btn-text-color: #2e3638;--white-10: rgba(255, 255, 255, .1);--black: #000;--black-70: rgba(0, 0, 0, .7);--black-50: rgba(0, 0, 0, .5);--black-40: rgba(0, 0, 0, .4);--black-10: rgba(0, 0, 0, .1);--black-05: rgba(0, 0, 0, .05);--petrol-70: rgba(0, 81, 102, .7);--petrol-50: rgba(0, 81, 102, .5);--petrol-30: rgba(0, 81, 102, .3);--petrol-15: rgba(0, 81, 102, .05);--blue-stone-15: rgba(0,81,102, .05);--bismark-80: rgba(71,121,133,.8);--cornflowerBlue-10: rgba(36,88,102,.1);--white-70: rgba(255, 255, 255, .7);--white-50: rgba(255, 255, 255, .5);--white-30: rgba(255, 255, 255, .3);--light-blue-grey: #a6dce5;--jungle-mist: #aac9ce;--powder-blue: #b0e0e8;--shakespeare: #3fb1d1;--matisse: #1D728F;--blizzard-blue: #a6e0ec;--aquamarine-blue: #86d0e1;--hippie-blue: #609eae;--purpley-grey: #9e94a2;--ebony-clay: #1f3034;--petrol: #005166;--orient: #006a86;--cutty-sark: #516e75;--juniper: #648288;--smalt-blue: #548b97;--bali-hai: #81a8b3;--golden-fizz: #f8ec31;--amber: #FFC107;--geraldine: #ff7f7f;--cinnabar: #e83d3d;--white: #fff;--silver: #bbb;--shamrock: #2ecc71;--amazon: #347750;--puce: #cc8588;--alto: #dedede;--bermuda: #83cad9;--cornflower: #92d6e5;--bright-yellow: #fff100;--tabasco: #b41212;--casal: #295966;--outer-space: #2e3638;--dove-gray: #646464;--dusty-gray: #979797;--silver-sand: #bec1c1;--tower-gray: #d6dee1;--geyser: #d6dee1;--wild-sand: #f4f4f4;--alabaster: #f9f9f9;--anakiwa: #87ffff;--pelorous: #34a6b1;--shakespeare: #41abcb;--eastern-blue: #168cb2;--tealColor: #008297;--tealLightColor: #339BAC;--tealDarkColor: #295967;--greyDarkColor: #2e3638;--greyColor: #6d787e;--lightGreyColor: #c5c9cb;--ghostWhite: #F8F8F9;--ghostGrey: #EBECED;--paleCyan: #cce6ea;--secondary-bg: #ebebeb;--progress-bg: #f5f7f8;--tealLightBg: #E5EAED;--backgroundOptionsGray: #f5f5f5;--platinum: #A7AEB2;--grayBlueBg: #E5F2F5;--errorRed: #B73622;--warning-color: #EB7200;--orange-warning: #EB7200;--orange-warning-light: #FDF1E5;--orange: #FFB217;--orange-80: rgba(255, 178, 23, .8);--physical: #DB3900;--environmental: #4A8500;--occupational: #E20096;--mental: #018484;--friends: #905CB4;--piggybank: #AD7D00;--teal-01: rgba(41, 89, 103, .1);--teal-005: rgba(41, 89, 103, .05);--light-gold: #F2EBD9;--brown-gold: #A67B00;--border-radius-val: 5px;--borderLightGray: #C5C9CB;--silver-20: #F3F4F5;--teal-70: #4DA7B6;--success-bg: #1D966A;--success-bg-hover: #22ab79;--sinbad: #99CDD5;--btn-theme-bg: #008297;--btn-theme-bg-light-color: #339BAC;--btn-theme-text: #ffffff;--sample-btn-bg-color: #008297;--ab-offset: 0px}[_nghost-%COMP%]{display:block}.c-quest-descption[_ngcontent-%COMP%]{display:block}.c-quest-descption__header[_ngcontent-%COMP%]{display:flex;align-items:baseline;flex-wrap:wrap}.c-quest-descption__category[_ngcontent-%COMP%]{color:#000;font-size:12px;font-family:ProximaNova-Bold;text-transform:uppercase}.c-quest-descption__date[_ngcontent-%COMP%]{color:#000;font-size:12px;font-family:ProximaNova-Semibold;margin-left:10px}.c-quest-descption__title[_ngcontent-%COMP%]{width:100%;margin-top:10px;font-family:ProximaNova-Bold;margin-bottom:0;text-transform:uppercase}.c-quest-descption__caption[_ngcontent-%COMP%]{padding-top:0;position:relative;font-size:14px}.c-quest-descption__caption__inner[_ngcontent-%COMP%]{overflow:hidden;position:relative}.c-quest-descption__trigger[_ngcontent-%COMP%]{cursor:pointer}.c-quest-descption[_ngcontent-%COMP%] .h-typography[_ngcontent-%COMP%] + .c-quest-descption__trigger[_ngcontent-%COMP%]{text-align:left;margin:10px auto 0 0;width:auto}.c-quest-descption__typo[_ngcontent-%COMP%]{transition:all .5s ease-out;color:var(--bg-text-color)}@media(min-width:730px){.c-quest-descption__typo[_ngcontent-%COMP%]{margin-top:0!important}}.c-quest-descption__typo[aria-expanded=false][_ngcontent-%COMP%]{position:relative}.read-more-btn[_ngcontent-%COMP%]{width:100%;bottom:0;z-index:9;padding-top:20px;position:absolute;background:linear-gradient(0deg,var(--primary-bg-secondary) 58%,transparent)}.read-more-btn.read-all[_ngcontent-%COMP%]{position:static}.read-more-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background:none;border:none;padding:0;margin:0;font-size:14px;font-family:ProximaNova-Semibold;text-decoration:underline;color:var(--read-more-btn-text)}.read-more-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{text-decoration:none}"],changeDetection:0})}}return t})();var pn=(t,c)=>({"is-loading":t,"is-disabled":c});function un(t,c){if(t&1){let e=v();o(0,"div",36)(1,"div",37),u("click",function(){_(e);let n=l().$implicit,a=l(3);return g(a.selectedUser(n))}),o(2,"div",38),f(3,"app-profile-avatar",39),r(),o(4,"div",40),d(5),r()()()}if(t&2){let e=l().$implicit;s(3),m("avatar",e.profilePictureURL)("firstName",e.firstName)("isBrand",!1)("lastName",e.lastName),s(2),z(" ",e.name," ")}}function _n(t,c){if(t&1&&h(0,un,6,5,"div",36),t&2){let e=c.$implicit;b(!(e==null||e.plan==null)&&e.plan.isPrivate?-1:0)}}function gn(t,c){if(t&1&&(o(0,"div",29),N(1,_n,1,1,null,null,ce().userTrackBy,!0),r()),t&2){let e=l(2);s(),G(e.usersList)}}function fn(t,c){if(t&1&&(o(0,"div",46)(1,"div",50),f(2,"app-profile-avatar",39),r(),o(3,"span"),d(4),r()()),t&2){let e=l().$implicit;s(2),m("avatar",e.value==null?null:e.value.userProfilePicture)("firstName",e.value==null?null:e.value.userName)("isBrand",!1)("lastName",""),s(2),T((e.value==null?null:e.value.userName)||"")}}function hn(t,c){if(t&1){let e=v();o(0,"tr")(1,"td",10),h(2,fn,5,5,"div",46),r(),o(3,"td")(4,"span"),d(5),r()(),o(6,"td")(7,"span",47),u("click",function(){let n=_(e).$index,a=l(3);return g(a.removeSelectedUser(n))}),k(),o(8,"svg",48),f(9,"use",49),r()()()()}if(t&2){let e=c.$implicit;s(2),b(e.value!=null&&e.value.userName?2:-1),s(3),T(e.value==null?null:e.value.userEmail)}}function bn(t,c){if(t&1&&(o(0,"div",30)(1,"table",41)(2,"colgroup"),f(3,"col",42)(4,"col",43)(5,"col",44),r(),o(6,"tbody",45),N(7,hn,10,2,"tr",null,Y),r()()()),t&2){let e=l(2);s(7),G(e.getInviteListControl().controls)}}function Cn(t,c){if(t&1){let e=v();o(0,"div",4)(1,"div",23)(2,"strong",24),d(3,"Invite People"),r(),o(4,"div",25)(5,"input",26),u("keyup",function(n){_(e);let a=l();return g(a.searchUsers(n))}),r(),k(),o(6,"svg",27),f(7,"use",28),r(),h(8,gn,3,0,"div",29),r()(),h(9,bn,9,0,"div",30),I(),o(10,"div",31)(11,"div",32)(12,"strong",24),d(13,"Add a personal note"),r(),o(14,"div",33)(15,"textarea",34),d(16," "),r()()(),o(17,"button",35),u("click",function(){_(e);let n=l();return g(n.submitConnections())}),d(18,"Send"),r()()()}if(t&2){let e=l();
1m("formGroup",e.connectionsForm),s(5),m("placeholder",e.isUserAuthenticated?"Search by name or email":"Enter email"),s(3),b(e.usersList&&e.usersList.length>0?8:-1),s(),b((e.connectionsForm.value==null||e.connectionsForm.value.emails==null?null:e.connectionsForm.value.emails.length)>0?9:-1),s(6),m("appInputAutoHeight",e.connectionsForm.get("message")),s(2),m("disabled",e.connectionFormSubmitted||!(!(e.connectionsForm.value==null||e.connectionsForm.value.emails==null)&&e.connectionsForm.value.emails.length)||(e.connectionsForm.value==null||e.connectionsForm.value.emails==null?null:e.connectionsForm.value.emails.length)<1)("ngClass",Ne(7,pn,e.connectionFormSubmitted,e.connectionFormSubmitted||!(!(e.connectionsForm.value==null||e.connectionsForm.value.emails==null)&&e.connectionsForm.value.emails.length)||(e.connectionsForm.value==null||e.connectionsForm.value.emails==null?null:e.connectionsForm.value.emails.length)<1))}}var tt=(()=>{class t{constructor(e,i,n,a,C,S,q){this.modalService=e,this.shareWidjetService=i,this.notifier=n,this.fb=a,this.questService=C,this.cdr=S,this.store=q,this.searchUserSubs=null,this.usersList=[],this.config=mi,this.isUserAuthenticated=!1,this.connectionFormSubmitted=!1,this.store.select("auth").subscribe(j=>{this.isUserAuthenticated=j.authenticated})}ngOnInit(){this.store.select("group").pipe(D(4)).subscribe(e=>{this.url=`${window.location.origin}/${e.selectedGroupDetail?.user?.userName}/group/${this.groupId}`}),this.connectionsForm=this.fb.group({searchUser:new V(""),message:new V(""),emails:new Nt([])})}closeModal(){this.modalService.dismissAll()}shareViaFacebook(){this.shareWidjetService.shareViaFacebook(this.url)}copied(){this.notifier.notify("success","URL copied")}searchUsers(e){let i=e.target.value.trim();if(!this.isUserAuthenticated){this.usersList=[{id:null,email:i,name:i,profilePictureURL:null,coverPictureURL:null}],this.cdr.detectChanges();return}this.searchUserSubs&&this.searchUserSubs.unsubscribe(),i!=""&&(this.searchUserSubs=this.questService.searchUsers(i).subscribe(n=>{let a=n;a&&a.length>0?this.connectionsForm.value.emails&&this.connectionsForm.value.emails.length>0&&this.connectionsForm.value.emails.forEach(C=>{a=n.filter(S=>S.id!==C.userId)}):a.push({id:null,email:i,name:i,profilePictureURL:null,coverPictureURL:null}),this.usersList=a,this.cdr.detectChanges()},()=>{this.usersList=[]}))}selectedUser(e){e.id?(this.connectionsForm.get("emails").push(new he({userEmail:new V(e.email),userId:new V(e.id||null),userName:new V(e.name||null),userProfilePicture:new V(e.profilePictureURL||null)})),this.connectionsForm.patchValue({searchUser:""}),this.usersList=[]):e.email.match(dt)&&e.email.match(dt).length>0?(this.connectionsForm.get("emails").push(new he({userEmail:new V(e.email),userId:new V(null),userName:new V(null),userProfilePicture:new V(null)})),this.connectionsForm.patchValue({searchUser:""}),this.usersList=[]):this.notifier.notify("warning","Please, enter a valid email id"),this.cdr.detectChanges()}removeSelectedUser(e){this.connectionsForm.get("emails").removeAt(e),this.cdr.detectChanges()}submitConnections(){if(this.connectionFormSubmitted||!this.connectionsForm.value.emails||this.connectionsForm.value.emails&&this.connectionsForm.value.emails.length<1)return;this.connectionFormSubmitted=!0;let e=[];this.connectionsForm.value.emails.forEach(n=>{e.push(n.userEmail)});let i=this.connectionsForm.value.message;this.shareWidjetService.shareGroupViaEmail(this.groupId,e,i).subscribe(()=>{this.connectionFormSubmitted=!1,this.notifier.notify("success","Your Group has been shared."),this.closeModal()},n=>{this.connectionFormSubmitted=!1,this.notifier.notify("error","There was an issue completing your request. Please try again."),this.closeModal()})}getInviteListControl(){return this.connectionsForm.get("emails")}userTrackBy(e,i){return i.id}static{this.\u0275fac=function(i){return new(i||t)(p(Z),p(Pi),p($),p(Qe),p(Q),p(U),p(L))}}static{this.\u0275cmp=A({type:t,selectors:[["app-share-modal"]],inputs:{groupId:"groupId",feedPostId:"feedPostId"},standalone:!1,decls:34,vars:5,consts:[[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body","share-widget"],[1,"share-widget__connections",3,"formGroup"],[1,"share-widget__share-parent"],[1,"share-widget__share-parent__msg"],[1,"share-widget__share-parent__cont"],[1,"share-icons-parent"],["type","button",1,"share-icons-parent__item","h-btn-reset",3,"click"],[1,""],[1,"icon","icon-facebook-og"],[0,"xlink","href","#icon-facebook-og"],[1,"share-icons-parent__label"],[1,"share-icons-parent__item","twitter-share-button"],[1,"icon","icon-twitter-og"],[0,"xlink","href","#icon-twitter-og"],[1,"share-icons-parent__item","linkedin-share-button"],[1,"icon","icon-linkedin-og"],[0,"xlink","href","#icon-linkedin-og"],["type","button","ngxClipboard","",1,"e-btn","e-btn_dark-revert",3,"cbOnSuccess","cbContent"],[1,"icon","icon-link"],[0,"xlink","href","#icon-link"],[1,"c-n-form__group","mb-15"],[1,"c-n-form__legend"],[1,"c-n-form__control","position-relative","search-field"],["type","text","formControlName","searchUser",1,"c-n-form__input",3,"keyup","placeholder"],[1,"icon","search-gray"],[0,"xlink","href","#search-gray"],[1,"search-email-list"],[1,"share-widget__connections__table"],[1,"share-widget__connections__note-section"],[1,"c-n-form__group","mb-0"],[1,"c-n-form__control"],["type","text","formControlName","message","placeholder","Enter message...","aria-label","Enter message...",1,"c-n-form__input","overflow-hidden",3,"appInputAutoHeight"],["type","button",1,"e-btn","e-btn_dark",3,"click","disabled","ngClass"],[1,"d-flex","d-flex__justify__space-between"],[1,"search-email-list__row","d-flex","d-flex-row",3,"click"],[1,"search-email-list__row__image"],[1,"search-email-list__row__image__inner",3,"avatar","firstName","
1isBrand","lastName"],[1,"search-email-list__row__name"],[1,"table"],["width","40%"],["width","45%"],["width","15%"],["formArrayName","emails"],[1,"name-cont"],[1,"cursor-pointer",3,"click"],[1,"icon","icon-cancel-rounded-corner"],[0,"xlink","href","#icon-cancel-rounded-corner"],[1,"name-cont__img"]],template:function(i,n){i&1&&(o(0,"div",0)(1,"h4",1),d(2),r(),o(3,"button",2),u("click",function(){return n.closeModal()}),r()(),o(4,"div",3),h(5,Cn,19,10,"div",4),o(6,"div",5)(7,"p",6),d(8,"Share on social to make a greater impact"),r(),o(9,"div",7)(10,"div",8)(11,"button",9),u("click",function(){return n.shareViaFacebook()}),o(12,"div",10),k(),o(13,"svg",11),f(14,"use",12),r()(),I(),o(15,"span",13),d(16,"Facebook"),r()(),o(17,"a",14)(18,"div",10),k(),o(19,"svg",15),f(20,"use",16),r()(),I(),o(21,"span",13),d(22,"Twitter"),r()(),o(23,"a",17)(24,"div",10),k(),o(25,"svg",18),f(26,"use",19),r()(),I(),o(27,"span",13),d(28,"LinkedIn"),r()()(),o(29,"button",20),u("cbOnSuccess",function(){return n.copied()}),k(),o(30,"svg",21),f(31,"use",22),r(),I(),o(32,"span"),d(33,"COPY LINK"),r()()()()()),i&2&&(s(2),T(n.feedPostId?"Share this post":"Help us spread the word"),s(3),b(!n.feedPostId&&n.isUserAuthenticated?5:-1),s(12),ke("href","https://twitter.com/intent/tweet?&url="+n.url,Oe),s(6),ke("href","https://www.linkedin.com/sharing/share-offsite/?url="+n.url,Oe),s(6),m("cbContent",n.url))},dependencies:[H,Be,Ve,Re,Le,Ue,Gt,Oi,Ye,ve,$t],styles:[".modal-header[_ngcontent-%COMP%]{border-bottom:0}.modal-header[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{text-transform:uppercase;text-align:center;width:100%;font-size:24px}.share-widget__connections[_ngcontent-%COMP%]{padding-bottom:30px;margin-bottom:30px;border-bottom:solid 1px var(--lightGreyColor)}.share-widget__connections[_ngcontent-%COMP%] .search-field[_ngcontent-%COMP%] .search-gray[_ngcontent-%COMP%]{position:absolute;top:13px;z-index:2;left:15px;height:15px;width:15px;transform:rotate(90deg)}.share-widget__connections[_ngcontent-%COMP%] .search-field[_ngcontent-%COMP%] .c-n-form__input[_ngcontent-%COMP%]{padding-left:40px}.share-widget__connections[_ngcontent-%COMP%] .mb-15[_ngcontent-%COMP%]{margin-bottom:15px}.share-widget__connections__table[_ngcontent-%COMP%]{border-radius:var(--border-radius-val);border:solid 1px var(--lightGreyColor);background:var(--table-member-bg);margin-bottom:20px;overflow-y:auto;font-size:14px}.share-widget__connections__table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{color:var(--bg-text-color)}.share-widget__connections__table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .icon-cancel-rounded-corner[_ngcontent-%COMP%]{fill:var(--bg-text-color)}.share-widget__connections__table.no-visibility[_ngcontent-%COMP%]{visibility:hidden}.share-widget__connections__table[_ngcontent-%COMP%] .name-cont[_ngcontent-%COMP%]{font-family:ProximaNova-Bold;display:flex;align-items:center}.share-widget__connections__table[_ngcontent-%COMP%] .name-cont__img[_ngcontent-%COMP%]{position:relative;width:30px;height:30px;margin-right:8px}.share-widget__connections__table[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{height:30px;display:flex;align-items:center}.share-widget__connections__table[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{height:30px}.share-widget__connections__table[_ngcontent-%COMP%] .table[_ngcontent-%COMP%]{margin-bottom:0}.share-widget__connections__table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:10px 20px}.share-widget__connections__table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{padding-left:50px}.share-widget__connections__table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding-right:50px}.share-widget__connections__note-section[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:end}.share-widget__connections__note-section[_ngcontent-%COMP%] .c-n-form__group[_ngcontent-%COMP%]{width:100%}.share-widget__connections__note-section[_ngcontent-%COMP%] .e-btn[_ngcontent-%COMP%]{margin-left:2em}.share-widget__share-parent__msg[_ngcontent-%COMP%]{font-size:16px;font-family:ProximaNova-Bold;margin-bottom:20px}.share-widget__share-parent__cont[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between}.share-widget__share-parent[_ngcontent-%COMP%] .share-icons-parent[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.share-widget__share-parent[_ngcontent-%COMP%] .share-icons-parent__item[_ngcontent-%COMP%]{margin-right:2rem;width:4.5rem;height:4.5rem}.share-widget__share-parent[_ngcontent-%COMP%] .share-icons-parent__item[_ngcontent-%COMP%]:last-child{margin-right:0}.share-widget__share-parent[_ngcontent-%COMP%] .share-icons-parent__item[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:4.5rem;height:4.5rem}.share-widget__share-parent[_ngcontent-%COMP%] .share-icons-parent__label[_ngcontent-%COMP%]{display:none}.share-widget[_ngcontent-%COMP%] .search-email-list[_ngcontent-%COMP%]{position:absolute;top:40px;width:100%;background:var(--white-section-bg);border:solid 1px var(--accent-color);padding:5px 20px;z-index:9;max-height:200px;overflow-y:auto}.share-widget[_ngcontent-%COMP%] .search-email-list__row[_ngcontent-%COMP%]{font-size:14px;border-bottom:solid 1px tealLightBg;cursor:pointer;align-items:center;padding:5px 2px}.share-widget[_ngcontent-%COMP%] .search-email-list__row[_ngcontent-%COMP%]:last-child{border-bottom:none}.share-widget[_ngcontent-%COMP%] .search-email-list__row__image[_ngcontent-%COMP%]{margin-right:10px;width:35px;height:35px;position:relative}.share-widget[_ngcontent-%COMP%] .search-email-list__row__image__inner[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:50%;overflow:hidden;border:1px solid #fff}.share-widget[_ngcontent-%COMP%] .search-email-list__row__name[_ngcontent-%COMP%]{display:flex;flex-direction:column}.share-widget[_ngcontent-%COMP%] .search-email-list__row__name[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;font-size:12px;color:var(--greyColor)}.share-widget[_ngcontent-%COMP%] .search-email-list[_ngcontent-%COMP%] .invite-label[_ngcontent-%COMP%]{font-size:14px;font-family:ProximaNova-Bold;cursor:pointer}.share-widget[_ngcontent-%COMP%] .search-email-list[_ngcontent-%COMP%] .invite-label[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-left:5px}"],changeDetection:0})}}return t})();var Ui=(()=>{class t{constructor(e,i){this.http=e,this.reaquestHeadersService=i}sendMessageAll(e,i,n,a,C=!1){let S=this.reaquestHeadersService.getHeaders();return this.http.post(X.target+X.context+`/group/message-all/${e}`,{subject:n,message:i,group:a,plain:C,domain:window.location.origin},{headers:S})}static{this.\u0275fac=function(i){return new(i||t)(rt(Dt),rt(pi))}}static{this.\u0275prov=ft({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var wn=["doerContainer"],Mn=["messageAllModal"],yn=["removeMemberTemp"],Pn=(t,c)=>
1({"d-flex__justify__space-between":t,"d-flex__justify__center":c}),Ee=t=>({"is-loading":t}),On=t=>({"show-border-top":t}),kn=t=>({friendInfo:t}),Li=t=>({active:t}),Sn=t=>["/",t],Tn=t=>["/",t,"hub","profile"],Qi=t=>["/",t,"hub"],En=t=>({"is-disabled":t});function Dn(t,c){if(t&1&&(o(0,"div",15)(1,"span"),d(2),w(3,"currency"),r()()),t&2){let e=l().$implicit;s(2),T(Se(3,1,e.amountBackedSum?e.amountBackedSum/100:0,"USD"))}}function Fn(t,c){if(t&1&&(o(0,"div")(1,"a",13),f(2,"app-profile-avatar",14),w(3,"brandDisplayName"),w(4,"brandDisplayName"),w(5,"brandDisplayName"),o(6,"div",15)(7,"span",16),d(8),w(9,"brandDisplayName"),w(10,"brandDisplayName"),r()(),h(11,Dn,4,4,"div",15),r()()),t&2){let e=c.$implicit,i=c.$index,n=l(2);at(st("avatarDiv member-avatar-",i+1)),s(),m("routerLink",e.profileLink),s(),m("avatar",e.isAnonymous?null:e.avatarUrl||e.imageURL||e.profilePictureURL)("isBrand",n.isOrganizationIdentity(e.brand,e.isUserBrand))("firstName",e.isAnonymous?e!=null&&e.displayName?e==null?null:e.displayName:"Anonymous":e!=null&&e.displayName?e==null?null:e.displayName:e.backerDisplayName&&e.backerDisplayName!=""?e.backerDisplayName:P(3,11,e==null?null:e.brand)?P(4,13,e==null?null:e.brand):e!=null&&e.userFirstName?e.userFirstName:e.firstName)("lastName",e.isAnonymous||e!=null&&e.displayName||e.backerDisplayName&&e.backerDisplayName!=""||P(5,15,e==null?null:e.brand)?"":e!=null&&e.userLastName?e.userLastName:e.lastName)("userName",e.isAnonymous?null:e.userId),s(6),T(e.isAnonymous?e!=null&&e.displayName?e==null?null:e.displayName:"Anonymous":e!=null&&e.displayName?e==null?null:e.displayName:e.backerDisplayName&&e.backerDisplayName!=" "?'"'+e.backerDisplayName+'"':e.brand&&P(9,17,e.brand)?P(10,19,e==null?null:e.brand):(e!=null&&e.userFirstName?e.userFirstName:e.firstName)+" "+(e!=null&&e.userLastName||(e==null?null:e.userLastName)==""?e.userLastName:e.lastName)),s(3),b((e==null?null:e.amountBackedSum)>0?11:-1)}}function qn(t,c){if(t&1&&N(0,Fn,12,21,"div",12,ce().memberTrackBy,!0),t&2){let e=l();G(e.viewListDoersCutoff)}}function In(t,c){if(t&1&&(o(0,"div"),f(1,"div",17),r()),t&2){let e=c.$implicit;at(st("avatarDiv temp-box-",e))}}function An(t,c){if(t&1&&N(0,In,2,3,"div",12,Y),t&2){let e=l();G(e.membersCutOffTempArr)}}function Nn(t,c){if(t&1){let e=v();o(0,"a",20),u("click",function(){_(e);let n=l(2);return g(n.openMessageAllDialog())}),d(1,"Message"),r()}}function Gn(t,c){if(t&1){let e=v();o(0,"a",21),u("click",function(){_(e);let n=l(2),a=B(16);return g(n.openMembersDialog(a))}),d(1,"VIEW ALL"),r()}}function Bn(t,c){if(t&1&&(o(0,"div",11),h(1,Nn,2,0,"a",18),h(2,Gn,2,0,"a",19),r()),t&2){let e=l();m("ngClass",Ne(3,Pn,e.canSendBulkMessage,!e.canSendBulkMessage)),s(),b(e.canSendBulkMessage?1:-1),s(),b(e.fullDoers.length>0?2:-1)}}function Vn(t,c){if(t&1&&(o(0,"option",31),d(1),r()),t&2){let e=c.$implicit;m("value",e),s(),T(e==="All"?"All members":e)}}function Rn(t,c){t&1&&(o(0,"div",36)(1,"div"),d(2,"Invalid message"),r()())}function Un(t,c){if(t&1&&f(0,"app-alert-banner",37),t&2){let e=l(2);m("message","Please note the maximum message length is "+e.messageLimit+".")("type","info")}}function Ln(t,c){if(t&1){let e=v();o(0,"div",22)(1,"h4",23),d(2,"New message"),r(),o(3,"button",24),u("click",function(){_(e);let n=l();return g(n.closeDialog())}),r()(),o(4,"div",25)(5,"form",26,5),u("ngSubmit",function(){_(e);let n=l();return g(n.sendMessageForDoers())}),o(7,"div",27)(8,"label",28),d(9,"To:"),r(),o(10,"div",29)(11,"select",30),N(12,Vn,2,2,"option",31,Y),r()()(),o(14,"div",27)(15,"label",28),d(16,"Subject:"),r(),o(17,"div",29),f(18,"input",32),r()(),o(19,"div",27)(20,"div",33),d(21,"Message:"),r(),o(22,"div",34),f(23,"quill-editor",35),r(),h(24,Rn,3,0,"div",36),h(25,Un,1,2,"app-alert-banner",37),r(),o(26,"div",38)(27,"button",39)(28,"span"),d(29,"Send"),r()()()()()}if(t&2){let e=l();s(5),m("formGroup",e.messageAllForm),s(7),G(e.sendToOptions),s(6),m("formControlName","subject")("readOnly",e.isLoading||e.dialogInProgress),s(5),m("modules",e.quillConfig)("readOnly",e.isLoading||e.dialogInProgress),s(),b(e.messageAllFormSubmitted&&e.messageAllForm.invali
1d?24:-1),s(),b(e.showMessageLengthErr()?25:-1),s(2),m("disabled",e.isLoading||e.dialogInProgress)("ngClass",x(9,Ee,e.isLoading||e.dialogInProgress))}}function Qn(t,c){}function jn(t,c){if(t&1&&E(0,Qn,0,0,"ng-template",49),t&2){let e=c.$implicit;l(3);let i=B(18);m("ngTemplateOutlet",i)("ngTemplateOutletContext",x(2,kn,e))}}function zn(t,c){if(t&1&&(o(0,"div",40)(1,"h4"),d(2),r(),N(3,jn,1,4,null,49,Y),r()),t&2){let e=l(2);s(2),z("Requests (",e.requestsReceived==null?null:e.requestsReceived.length,")"),s(),G(e.requestsReceived)}}function Hn(t,c){if(t&1){let e=v();o(0,"div",41)(1,"div",50),u("click",function(){_(e);let n=l(2);return g(n.changeTab("all"))}),d(2," All Members "),r(),o(3,"div",50),u("click",function(){_(e);let n=l(2);return g(n.changeTab("add"))}),d(4," Add Member "),r()()}if(t&2){let e=l(2);s(),m("ngClass",x(2,Li,e.memberTab==="all_members")),s(2),m("ngClass",x(4,Li,e.memberTab==="add_member"))}}function $n(t,c){if(t&1){let e=v();o(0,"div",51)(1,"div",52),u("click",function(){_(e);let n=l().$implicit,a=l(3);return g(a.selectedUser(n))}),o(2,"div",53),f(3,"app-profile-avatar",54),r(),o(4,"div",55),d(5),r()()()}if(t&2){let e=l().$implicit;s(3),m("avatar",e.profilePictureURL)("firstName",e.firstName)("isBrand",!1)("lastName",e.lastName),s(2),z(" ",e.name," ")}}function Jn(t,c){if(t&1&&h(0,$n,6,5,"div",51),t&2){let e=c.$implicit;b(!(e==null||e.plan==null)&&e.plan.isPrivate?-1:0)}}function Wn(t,c){if(t&1&&(o(0,"div",47),N(1,Jn,1,1,null,null,ce().userTrackBy,!0),r()),t&2){let e=l(2);s(),G(e.usersList)}}function Yn(t,c){t&1&&(o(0,"div",58),d(1," Joined Date "),r())}function Xn(t,c){if(t&1){let e=v();o(0,"ng-select",73),u("change",function(n){_(e);let a=l().$index,C=l(3);return g(C.roleChange(n,a))})("open",function(){_(e);let n=l(4);return g(n.openedDropdown())})("close",function(){_(e);let n=l(4);return g(n.closedDropdown())}),Pt("ngModelChange",function(n){_(e);let a=l().$implicit;return yt(a.roleId,n)||(a.roleId=n),g(n)}),r()}if(t&2){let e=l().$implicit,i=l(3);m("searchable",!1)("clearable",!1)("items",i.allRoles)("placeholder","Role")("value",e.roleId),Mt("ngModel",e.roleId)}}function Zn(t,c){if(t&1&&(o(0,"span",70),d(1),r()),t&2){let e=l().$implicit;s(),T(e==null?null:e.roleName)}}function Kn(t,c){if(t&1){let e=v();o(0,"span",76),u("click",function(){_(e);let n=l(2).$implicit,a=l(3);return g(a.sendConnectionRequest(n))}),k(),o(1,"svg",77),f(2,"use",78),r()()}}function eo(t,c){t&1&&f(0,"span")}function to(t,c){t&1&&(o(0,"span",75),k(),o(1,"svg",79),f(2,"use",80),r()())}function io(t,c){if(t&1&&(h(0,Kn,3,0,"span",74),h(1,eo,1,0,"span"),h(2,to,3,0,"span",75)),t&2){let e=l().$implicit;b(!e.isConnection&&!e.connectionRequest?0:-1),s(),b(!e.isConnection&&e.connectionRequest?1:-1),s(),b(e.isConnection&&!e.connectionRequest?2:-1)}}function no(t,c){if(t&1){let e=v();o(0,"span",81),u("click",function(){_(e);let n=l().$implicit,a=l(3);return g(a.removeMemberConf(n))}),k(),o(1,"svg",82),f(2,"use",83),r()()}}function oo(t,c){if(t&1&&(o(0,"div",61)(1,"div",63)(2,"a",64)(3,"div",65),f(4,"app-profile-avatar",14),w(5,"brandDisplayName"),w(6,"brandDisplayName"),w(7,"brandDisplayName"),r(),o(8,"span",66),d(9),w(10,"brandDisplayName"),w(11,"brandDisplayName"),r()()(),o(12,"div",67),d(13),w(14,"date"),r(),o(15,"div",68),h(16,Xn,1,6,"ng-select",69)(17,Zn,2,1,"span",70),r(),o(18,"div",71),h(19,io,3,3),h(20,no,3,0,"span",72),r()()),t&2){let e=c.$implicit,i=l(3);s(2),m("routerLink",e.userName&&e.userName.trim()?x(24,Sn,e.userName.trim()):x(26,Tn,e.userId)),s(2),m("avatar",e==null?null:e.profilePictureURL)("isBrand","N")("firstName",P(5,11,e==null?null:e.brand)?P(6,13,e==null?null:e.brand):e==null?null:e.firstName)("lastName",P(7,15,e==null?null:e.brand)?"":e==null?null:e.lastName)("userName",e==null?null:e.userName),s(5),z(" ",P(10,17,e==null?null:e.brand)?P(11,19,e==null?null:e.brand):(e==null?null:e.firstName)+" "+(e==null?null:e.lastName)," "),s(4),z(" ",Se(14,21,e==null?null:e.startDate,"MM/dd/yyyy")," "),s(3),b(i.isCurrentMemberAdminOrCreator?16:17),s(3),b(i.currentUser.id!==e.userId?19:-1),s(),b(i.isCurrentMemberAdminOrCreator?20:-1)}}function ro(t,c){t&1&&(o(0,"div",62)(1,"p",84),d(2,"No member found"),r()())}function ao(t,c){if(t&1&&(o(0,"div",48)(1,"div",56)(2,"div",57),d(3),r(),h(4,Yn,2,0,"div",58),o(5,"div",59),d(6," Role "),r(),o(7,"div",60),d(8," \xA0 "),r()(),N(9,oo,21,28,"div",61,Y),h(11,ro,3,0,"div",62),r()),t&2){let e=l(2);s(3),z(" ",(e.filteredMembers==null?null:e.filteredMembers.length)>1?"Members ("+e.filteredMembers.length+")":"Member ("+e.filteredMembers.length+")"," "),s(),b((e.filteredMembers==null?null:e.filteredMembers.length)>0?4:-1),s(5),G(e.filteredMembers),s(2),b(e.filteredMembers.length<1?11:-1)}}function so(t,c){if(t&1){let e=v();o(0,"div",61)(1,"div",63)(2,"div",88)(3,"div",65),f(4,"app-profile-avatar",14),r(),o(5,"span",66),d(6),r()()(),o(7,"div",71)(8,"span",89),u("click",function(){let n=_(e).$implicit,a=l(4);return g(a.removeNewMember(n))}),k(),o(9,"svg",82),f(10,"use",83),r()()()()}if(t&2){let e=c.$implicit;s(4),m("avatar",e==null?null:e.profilePictureURL)("isBrand","N")("firstName",e.name)("lastName","")("userName",null),s(2),z(" ",e.name," ")}}function lo(t,c){if(t&1){let e=v();o(0,"div",85)(1,"div",56)(2,"div",57),d(3),r(),o(4,"div",60),d(5," \xA0 "),r()(),N(6,so,11,6,"div",61,Y),o(8,"div",86)(9,"button",87),u("click",function(){_(e);let n=l(3);return g(n.addAllFriends())}),d(10,"Add"),r()()()}if(t&2){let e=l(3);s(3),z(" ",(e.addedNewMember==null?null:e.addedNewMember.length)>1?"Members ("+e.addedNewMember.length+")":"Member ("+e.addedNewMember.length+")"," "),s(3),G(e.addedNewMember),s(3),m("disabled",e.addingMembers)("ngClass",x(3,Ee,e.addingMembers))}}function co(t,c){if(t&1&&h(0,lo,11,5,"div",85),t&2){let e=l(2);b((e.addedNewMember==null?null:e.addedNewMember.length)>0?0:-1)}}function mo(t,c){if(t&1){let e=v();o(0,"div",22)(1,"h4",23),d(2,"View All Members"),r(),o(3,"button",24),u("click",function(){_(e);let n=l();return g(n.closeDialog())}
1),r()(),o(4,"div",25),h(5,zn,5,1,"div",40),h(6,Hn,5,6,"div",41),o(7,"div",42)(8,"div",43),f(9,"input",44),k(),o(10,"svg",45),f(11,"use",46),r(),h(12,Wn,3,0,"div",47),r()(),h(13,ao,12,3,"div",48),h(14,co,1,1),r()}if(t&2){let e=l();s(5),b((e.requestsReceived==null?null:e.requestsReceived.length)>0&&e.isCurrentMemberAdminOrCreator?5:-1),s(),b(e.isCurrentMemberAdminOrCreator?6:-1),s(),m("formGroup",e.filterMembersForm),s(),m("ngClass",x(7,On,(e.requestsReceived==null?null:e.requestsReceived.length)>0||e.isCurrentMemberAdminOrCreator)),s(4),b(e.usersList&&e.usersList.length>0?12:-1),s(),b(e.memberTab==="all_members"?13:-1),s(),b(e.memberTab==="add_member"?14:-1)}}function po(t,c){if(t&1&&(o(0,"div",97),d(1),w(2,"timeAgo"),r()),t&2){let e=l().friendInfo;s(),z(" ",P(2,1,e.requestedAt)," ")}}function uo(t,c){if(t&1){let e=v();o(0,"button",101),u("click",function(){_(e);let n=l().friendInfo,a=l();return g(a.acceptRequest(n.id))}),d(1,"ACCEPT"),r(),o(2,"button",102),u("click",function(){_(e);let n=l().friendInfo,a=l();return g(a.cancelRequest(n.id))}),d(3,"DECLINE"),r()}if(t&2){let e=l().friendInfo,i=l();m("disabled",e.status==="APPROVED"||e.status==="REJECTED"||i.requestResponding)("ngClass",x(4,Ee,i.requestResponding)),s(2),m("disabled",e.status==="APPROVED"||e.status==="REJECTED"||i.requestResponding)("ngClass",x(6,Ee,i.requestResponding))}}function _o(t,c){t&1&&(o(0,"span",99),d(1,"You accepted this request"),r())}function go(t,c){t&1&&(o(0,"span",100),d(1,"You declined this request"),r())}function fo(t,c){if(t&1&&(o(0,"div",90)(1,"div",91)(2,"a",92),f(3,"app-profile-avatar",93),w(4,"brandDisplayName"),w(5,"brandDisplayName"),w(6,"brandDisplayName"),r(),o(7,"div",94)(8,"a",95)(9,"span",96),d(10),w(11,"brandDisplayName"),w(12,"brandDisplayName"),w(13,"brandDisplayName"),r(),o(14,"span"),d(15,"\xA0requested to join"),r()(),h(16,po,3,3,"div",97),r()(),o(17,"div",98),h(18,uo,4,8),h(19,_o,2,0,"span",99),h(20,go,2,0,"span",100),r()()),t&2){let e=c.friendInfo;s(2),m("routerLink",x(25,Qi,e.userName&&e.userName.trim()||e.userId)),s(),m("avatar",e.profilePictureURL)("firstName",P(4,13,e==null?null:e.brand)?P(5,15,e.brand):e.firstName)("isBrand",!1)("lastName",P(6,17,e==null?null:e.brand)?"":e.lastName)("userName",e.userName),s(5),m("routerLink",x(27,Qi,e.userName&&e.userName.trim()||e.userId)),s(2),wt("",P(11,19,e==null?null:e.brand)?P(12,21,e.brand):e.firstName," ",P(13,23,e==null?null:e.brand)?"":e.lastName),s(6),b(e.requestedAt?16:-1),s(2),b(e.status==="REQUESTED"?18:-1),s(),b(e.status==="APPROVED"?19:-1),s(),b(e.status==="REJECTED"?20:-1)}}function ho(t,c){if(t&1){let e=v();o(0,"div",22)(1,"h4",103),d(2,"Remove Member?"),r(),o(3,"button",104),u("click",function(){_(e);let n=l();return g(n.closeDialog())}),r()(),o(4,"div",25)(5,"p")(6,"strong"),d(7,"Are you sure you want to remove member from this group?"),r()()(),o(8,"div",105)(9,"div",106)(10,"button",107),u("click",function(){_(e);let n=l();return g(n.closeDialog())}),d(11,"Cancel"),r(),o(12,"button",108),u("click",function(){_(e);let n=l();return g(n.removeMember())}),d(13,"Yes, Remove"),r()()()}if(t&2){let e=l();s(10),m("disabled",e.isRemoving)("ngClass",x(4,En,e.isRemoving)),s(2),m("disabled",e.isRemoving)("ngClass",x(6,Ee,e.isRemoving))}}var ji=(()=>{class t{constructor(e,i,n,a,C,S,q,j,Me){this.questService=e,this.membersService=i,this.store=n,this.notifier=a,this.modalService=C,this.activeModal=S,this.cdr=q,this.route=j,this.friendsService=Me,this.isOrganizationIdentity=Ke,this.members=[],this.viewListDoers=[],this.viewListDoersCutoff=[],this.fullDoers=[],this.quillConfig=te({},li),this.messages=ei,this.messageLimit=4e3,this.dialogInProgress=!1,this.canSendBulkMessage=!1,this.isLoading=!1,this.messageAllFormSubmitted=!1,this.maxCountToDisplay=8,this.sendToOptions=[],this.modalReference=null,this.memberCount=0,this.draftMemberArray=["Aaron","Betty","Cameron","John"],this.membersCutOffTempArr=[1,2,3,4],this.teamId=0,this.requestResponding=!1,this.memberToRemove=null,this.isRemoving=!1,this.allRoles=di,this.selectedRole=[],this.isCurrentMemberAdminOrCreator=!1,this.pageSize=ti,this.pageNumber=1,this.membersScoreApiLoaded=!1,this.memberTab="all_members",this.usersList=[],this.addedNewMember=[],this.addingMembers=!1,this.userInfoState=this.store.select("userInfo"),this.sendToOptions.push("All"),this.messageAllForm=new he({sendTo:new V("All"),subject:ne
1w V(null,[]),messageToAll:new V("",[fe.required,fe.max(this.messageLimit)]),brandedMessage:new V({value:!0,disabled:!1},[])}),this.filterMembersForm=new he({search:new V("")})}ngOnInit(){this.route.params.pipe(D(1)).subscribe(e=>{this.teamId=Number(e.teamId)||0}),this.store.select("group").pipe(J()).subscribe(e=>{this.groupId=e.selectedGroupId,this.groupDetail=e.selectedGroupDetail,this.memberCount=e.membersCount,this.members=e.allMembers,this.fullDoers=[...this.members],this.isCurrentMemberAdminOrCreator=this.currentUser?.id===this.groupDetail?.creatorId||(e.allMembers.length>0?e.allMembers.find(i=>i.userId===this.currentUser?.id)?.roleName.toLowerCase()==="admin":!1),setTimeout(()=>{this.prepareListDoers([...this.members])})}),this.getGroupsForMsg(),this.userInfoStateSubscription=this.userInfoState.subscribe(e=>{this.currentUser=e,this.currentAndSentFriends=[...e.friendsNoAction,...e.currentFriends],this.friendRequests=e.hasGotFriendRequests?[...e.friendRequests]:[],this.canSendBulkMessage=this.allowEditQuest&&(e.userPermissions.send_messages||e.userPermissions.send_group_messages||e.accountTier&&e.accountTier.level&&(e.accountTier.level==="QUEST Pro"||e.accountTier.level==="QUEST+"))}),this.filterMembersForm.controls.search.valueChanges.pipe(Pe(e=>(e??"").toString().trim()),gt(300),J()).subscribe(e=>{this.memberTab==="add_member"?this.searchUsers():this.filteredMembers=this.fullDoers.filter(i=>i.firstName.toLowerCase().match(e.toLowerCase())&&i.firstName.toLowerCase().match(e.toLowerCase()).index>=0||i.lastName.toLowerCase().match(e.toLowerCase())&&i.lastName.toLowerCase().match(e.toLowerCase()).index>=0||Te(i.brand).toLowerCase().match(e.toLowerCase())&&Te(i.brand).toLowerCase().match(e.toLowerCase()).index>=0).filter(i=>i.status==="APPROVED")})}ngOnDestroy(){this.activeModal.close(),this.destroySubscriptions(),this.cdr.detach()}destroySubscriptions(){this.userInfoStateSubscription&&this.userInfoStateSubscription.unsubscribe()}prepareListDoers(e){e=e.map(n=>ye(te({},n),{profileLink:Xe(n,this.currentUser)})),this.maxCountToDisplay=8,this.doerContainer&&this.doerContainer.nativeElement.offsetWidth&&Number(this.doerContainer.nativeElement.offsetWidth)&&(this.maxCountToDisplay=Number(this.doerContainer.nativeElement.offsetWidth)/77<7?8:Number(this.doerContainer.nativeElement.offsetWidth)/77),this.maxCountToDisplay=Math.floor(this.maxCountToDisplay),this.viewListDoers=[...e],this.doersCount=e.length;let i=this.viewListDoers.length>this.maxCountToDisplay?this.maxCountToDisplay:this.viewListDoers.length;this.viewListDoersCutoff=this.viewListDoers.slice(0,i),this.membersCutOffTempArr=[1,2,3,4].slice(0,4-this.viewListDoersCutoff.length),this.cdr.detectChanges()}openMembersDialog(e){this.calculateMembers(),this.modalReference=this.modalService.open(e,{windowClass:"no-overflow group-members-modal"})}calculateMembers(e=!0){let i=[...this.fullDoers];i.map(n=>{n.isConnection=this.currentAndSentFriends.findIndex(a=>a.id===n.userId)>-1,n.connectionRequest=this.friendRequests.findIndex(a=>a.id===n.userId)>-1}),this.fullDoers=[...i],this.filteredMembers=[...i].filter(n=>n.status==="APPROVED"),this.filteredMembers.forEach(n=>{this.selectedRole.push(n.roleId)}),e&&(this.requestsReceived=this.fullDoers.filter(n=>n.status==="REQUESTED"))}openMessageAllDialog(){this.isLoading=!0,this.messageAllForm.patchValue({sendTo:"All",subject:null,messageToAll:"",brandedMessage:!0}),setTimeout(()=>{this.modalReference=this.modalService.open(this.messageAllModal,{windowClass:"no-overflow"}),this.isLoading=!1})}closeDialog(){this.activeModal.close(),this.modalReference&&this.modalReference.close(),this.modalReference=null,this.memberToRemove=null,this.addedNewMember=[]}sendMessageForDoers(){if(this.messageAllFormSubmitted=!0,this.dialogInProgress||this.messageAllForm.invalid)return;let e=this.messageAllForm.get("messageToAll").value.trim();if(e.length>this.messageLimit)return;this.dialogInProgress=!0;let i=(this.messageAllForm.get("subject").value||"").trim()||null,n=!this.messageAllForm.get("brandedMessage").value,a=this.messageAllForm.get("sendTo").value;this.membersService.sendMessageAll(this.groupId,e,i,a,n).subscribe(()=>{this.dialogInProgress=!1,this.notifier.notify("success","Your message has been sent."),this.closeDialog()},()=>{this.dialogInProgress=!1,this.notifier.notify("error","There was an issue completing your request. Please try again.")})}getGroupsForMsg(){}showMessageLengthErr(){return!this.messageAllForm.value.messageToAll||this.messageAllForm.value.messageToAll===""||this.messageAllForm.value.messageToAll.trim()===""?!1:this.messageAllForm.get("messageToAll").value.trim().length>this.messageLimit}memberTrackBy(e,i){return i.userId}sendConnectionRequest(e){this.friendsService.sendFriendRequest(e.userId).subscribe(i=>{e.isConnection=!0,this.isLoading=null,this.notifier.notify("success","Connection request sent")},()=>{this.notifier.notify("error","There was an issue completing your request. Please try again.")})}acceptRequest(e){this.requestResponding=!0,this.questService.acceptGroupJoinRequest(e).pipe(ot(()=>this.requestResponding=!1)).subscribe(i=>{i.id?(this.notifier.notify("success","Request accepted"),this.requestsReceived.map(n=>{n.userId===i.userId&&(n.status="APPROVED"),n.startDate=i.startDate}),this.fullDoers.splice(this.fullDoers.findIndex(n=>n.userId===i.userId),1,i),this.calculateMembers(!1)):this.notifier.notify("error","There was an issue completing your request. Please try again.")},()=>{this.notifier.notify("error","There was an issue completing your request. Please try again.")})}cancelRequest(e){this.requestResponding=!0,this.questService.rejectGroupJoinRequest(e).pipe(ot(()=>this.requestResponding=!1)).subscribe(i=>{i.id?(this.notifier.notify("success","Request rejected"),this.requestsReceived.map(n=>{n.userId===i.userId&&(n.status="REJECTED")})):this.notifier.notify("error","There was an issue completing your request. Please try again.")},()=>{this.notifier.notify("error","There was an issue completing your request. Please try again.")})}removeMemberConf(e){this.closeDialog(),setTimeout(()=>{this.memberToRemove=e,this.isRemoving=!1,this.modalReference=this.modalService.open(this.removeMemberTemp,{windowClass:"confirm-modal"})},100)}removeMember(){this.questService.removeMemberFromGroup(this.memberToRemove.id).subscribe(e=>{e.id?(this.notifier.notify("success","Removed member from the group."),this.fullDoers=this.fullDoers.filter(i=>i.id!==this.memberToRemove.id),this.filteredMembers=[...this.fullDoers],this.memberToRemove=null):this.notifier.notify("error","There was an issue completing your request. Please try again.")},()=>{this.notifier.notify("error","There was an issue completing your request. Please try again.")})}openedDropdown(){setTimeout(()=>{let e=document.getElementsByClassName("ng-select-opened");for(let i=0;i<e.length;i++)e[i].style.zIndex="99"},100)}closedDropdown(){setTimeout(()=>{let e=document.getElementsByClassName("ng-select");for(let i=0;i<e.length;i++)e[i].style.zIndex="9"},200)}roleChange(e,i){this.questService.updateGroupMemberRole(this.filteredMembers[i].id,e).subscribe(n=>{n.id?this.filteredMembers[i]=ye(te({},this.filteredMembers[i]),{roleId:e.id,roleName:e.name}):(this.notifier.notify("error","There was an issue completing your request. Please try again."),this.filteredMembers[i]=ye(te({},this.filteredMembers[i]),{roleId:this.filteredMembers[i].roleId,roleName:this.filteredMembers[i].roleName}))},()=>{this.notifier.notify("error","There was an issue completing your request. Please try again."),this.filteredMembers[i]=ye(te({},this.filteredMembers[i]),{roleId:this.filteredMembers[i].roleId,roleName:this.filteredMembers[i].roleName})})}changeTab(e){this.memberTab=e==="add"?"add_member":"all_members",this.filterMembersForm.reset(),this.addedNewMember=[]}searchUsers(){let e=this.filterMembersForm.value.search;if(!e||(e=e.trim(),this.searchUserSubs&&this.searchUserSubs.unsubscribe(),e==""))return;let i=new Set(this.fullDoers.map(a=>a.userId)),n=new Set(this.addedNewMember.map(a=>a.id));this.searchUserSubs=this.questService.searchUsers(e).subscribe(a=>{let C=a.filter(S=>!i.has(S.id));C=C.filter(S=>!n.has(S.id)),this.usersList=[...C],this.cdr.detectChanges()},()=>{this.usersList=[]})}userTrackBy(e,i){return i.id}selectedUser(e){this.addedNewMember.push(e),this.filterMembersForm.reset(),this.usersList=[]}removeNewMember(e){this.addedNewMember.splice(this.addedNewMember.findIndex(i=>i.id===e.id),1),this.filterMembersForm.reset(),this.usersList=[]}addAllFriends(){this.addingMembers=!0,this.questService.addUsersToGroup(this.groupId,this.addedNewMember.map(e=>e.id)).subscribe(e=>{this.notifier.notify("success","Member"+(this.addedNewMember.length>
11?"s":"")+" added"),this.addingMembers=!1,this.questService.getGroupMembers(this.groupId).subscribe(i=>{this.store.dispatch(new He(i)),setTimeout(()=>{this.calculateMembers()},500)}),this.changeTab("all")},e=>{this.notifier.notify("error","There was an issue completing your request. Please try again."),this.addingMembers=!1})}static{this.\u0275fac=function(i){return new(i||t)(p(Q),p(Ui),p(L),p($),p(Z),p(ae),p(U),p(K),p(Si))}}static{this.\u0275cmp=A({type:t,selectors:[["app-group-members"]],viewQuery:function(i,n){if(i&1&&R(wn,5,W)(Mn,5,F)(yn,5,F),i&2){let a;M(a=y())&&(n.doerContainer=a.first),M(a=y())&&(n.messageAllModal=a.first),M(a=y())&&(n.removeMemberTemp=a.first)}},inputs:{allowEditQuest:"allowEditQuest"},standalone:!1,decls:21,vars:7,consts:[["doerContainer",""],["messageAllModal",""],["membersModal",""],["groupJoinRequestTemp",""],["removeMemberTemp",""],["ngForm","ngForm"],[1,"c-quest__article__header"],[1,"c-quest__article__header__headline","d-flex"],[1,"c-quest__article__header__headline__title"],[1,"c-quest__article__inner","c-quest__article__inner__white","members"],[1,"c-quest__doers"],[1,"d-flex","btn-container","d-flex-align_center","d-flex-row",2,"margin-bottom","20px",3,"ngClass"],[3,"class"],[1,"c-quest__doer",3,"routerLink"],[1,"c-quest-profile__img","c-avatar","thin-border",3,"avatar","isBrand","firstName","lastName","userName"],[1,"c-quest__doer__amount",2,"margin-top","7px","text-align","center","width","60px !important"],[1,"c-my-friends__item__title"],[1,"c-quest__doer"],["href","javascript:void(null)",1,"c-article__tool","e-btn","e-btn_dark-revert","ml-0",2,"margin-right","10px"],["href","javascript:void(null)",1,"c-link","c-link__dark"],["href","javascript:void(null)",1,"c-article__tool","e-btn","e-btn_dark-revert","ml-0",2,"margin-right","10px",3,"click"],["href","javascript:void(null)",1,"c-link","c-link__dark",3,"click"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body"],[1,"c-n-modal__body",3,"ngSubmit","formGroup"],[1,"c-n-form__group"],["for","messageAllModalSubject",1,"c-n-form__legend"],[1,"c-n-form__control"],["formControlName","sendTo",1,"c-n-form__input"],[3,"value"],["id","messageAllModalSubject","type","text","name","subject","placeholder","Howdy y'all","maxlength","250","appInputFocusTrigger","",1,"c-n-form__input",3,"formControlName","readOnly"],[1,"c-n-form__legend","is-required-label"],[1,"c-n-form__control","is-editor"],["theme","bubble","format","html","placeholder","Type your message here...","formControlName","messageToAll",1,"c-n-form__input","quill-editor","is-editor","h-typography",2,"min-height","120px",3,"modules","readOnly"],["role","alert",1,"c-n-form__alert"],[1,"mt-10","d-block",3,"message","type"],[1,"c-n-modal__footer"],["type","submit","aria-label","Submit",1,"e-btn","e-btn_dark",3,"disabled","ngClass"],[1,"member-modal__requests-cont"],[1,"member-modal__tab-row"],[1,"member-modal__search-cont",3,"formGroup"],[1,"c-n-form__control","position-relative",3,"ngClass"],["type","text","formControlName","search","placeholder","Search for a member",1,"c-n-form__input"],[1,"icon","search-gray"],[0,"xlink","href","#search-gray"],[1,"search-email-list"],[1,"member-modal__table"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"member-modal__tab-row__item",3,"click","ngClass"],[1,"d-flex","d-flex__justify__space-between"],[1,"search-email-list__row","d-flex","d-flex-row",3,"click"],[1,"search-email-list__row__image"],[1,"search-email-list__row__image__inner",3,"avatar","firstName","isBrand","lastName"],[1,"search-email-list__row__name"],[1,"member-modal__table__row","header"],[1,"member-modal__table__col","name","head"],[1,"member-modal__table__col","date","head"],[1,"member-modal__table__col","role","head"],[1,"member-modal__table__col","connection","head"],[1,"member-modal__table__row"],[1,"member-modal__table__row","empty"],[1,"member-modal__table__col","name"],[1,"d-flex","align-items-center","user-link",3,"routerLink"],[1,"position-relative","user-image","m-r-10"],[1,"user-name"],[1,"member-modal__table__col","date"],[1,"member-modal__table__col","role"],["bindValue","id","bindLabel","name",1,"c-n-form__input",3,"searchable","clearable","items","placeholder","value","ngModel"],[1,"role-text"],[1,"member-modal__table__col","connection"],["title","Remove Member",1,"delete-joinee"],["bindValue","id","bindLabel","name",1,"c-n-form__input",3,"change","open","close","ngModelChange","searchable","clearable","items","placeholder","value","ngModel"],[1,"send-request"],[1,"already-friend"],[1,"send-request",3,"click"],[1,"icon","send-friend-request"],[0,"xlink","href","#send-friend-request"],[1,"icon","already-friend"],[0,"xlink","href","#already-friend"],["title","Remove Member",1,"delete-joinee",3,"click"],[1,"icon","icon-trash"],[0,"xlink","href","#icon-trash"],[1,"text-center"],[1,"member-modal__add-member-section","member-modal__table","new-members"],[1,"btn-cont","mt-10","d-flex",2,"justify-content","flex-end"],[1,"e-btn","e-btn_dark",3,"click","disabled","ngClass"],[1,"d-flex","align-items-center","user-link"],["title","Remove User",1,"delete-joinee",3,"click"],[1,"d-flex","d-flex__justify__space-between","main-parent","request-row"],[1,"d-flex","left-part"],["href","javascript:void(0)",1,"c-my-friends__item__img",3,"routerLink"],[1,"c-my-friends__item__img__inner",3,"avatar","firstName","
1isBrand","lastName","userName"],[1,"c-my-friends__item__caption"],["href","javascript:void(0)",1,"c-my-friends__item__title",3,"routerLink"],[1,"fw-semibold"],[1,"c-my-friends__request-ago"],[1,"d-flex","right-part"],[1,"accepted"],[1,"rejected"],[1,"e-btn","e-btn_dark",2,"margin-right","10px",3,"click","disabled","ngClass"],[1,"e-btn","e-btn_dark-gray",3,"click","disabled","ngClass"],["id","modal-basic-title",1,"modal-title"],["type","button","aria-label","Close",1,"btn-close","absolute-btn",3,"click"],[1,"modal-footer"],[1,"d-flex","d-flex__justify__space-between","w-100"],[1,"e-btn","e-btn_dark-revert",3,"click","disabled","ngClass"],["aria-label","Submit",1,"e-btn","e-btn_delete",3,"click","disabled","ngClass"]],template:function(i,n){i&1&&(o(0,"div",6)(1,"div",7)(2,"h3",8)(3,"span"),d(4),r(),d(5),w(6,"digitk"),r()()(),o(7,"div",9)(8,"div",10,0),h(10,qn,2,0),h(11,An,2,0),r(),h(12,Bn,3,6,"div",11),r(),E(13,Ln,30,11,"ng-template",null,1,O)(15,mo,15,9,"ng-template",null,2,O)(17,fo,21,29,"ng-template",null,3,O)(19,ho,14,8,"ng-template",null,4,O)),i&2&&(s(4),T("Members"),s(),z(" \xA0(",n.memberCount?n.memberCount:P(6,5,n.doersCount?n.doersCount:0),") "),s(5),b(n.viewListDoersCutoff&&n.viewListDoersCutoff.length>0?10:-1),s(),b(n.membersCutOffTempArr.length<4?11:-1),s(),b(n.canSendBulkMessage||n.fullDoers.length>0?12:-1))},dependencies:[H,re,At,Vt,Rt,Be,Bt,Ve,Re,Ut,It,Le,Ue,Ye,ui,ve,Ti,hi,Ce,Yt,Tt,St,Ze,yi,xi],styles:['[_ngcontent-%COMP%]:root{--accent-color: #008297;--accent-color-rgb: 0 130 151;--accent-dark-color: #295967;--accent-bg-light-color: #339BAC;--btn-text-color: #2e3638;--theme-text-dark: #2e3638;--bg-text-color: #2e3638;--theme-text-light: #ffffff;--btn-text-light: #ffffff;--quest-content-bg: #FFFFFF;--quest-highlight-bg: #E5EAED;--white-section-bg: #ffffff;--comment-blue-bg: #E5F2F5;--quest-header-bg: #008297;--lighter-btn-bg: #E5F2F5;--quest-detail-nav: #008297;--quest-detail-nav-dark: #295967;--site-header: #ffffff;--site-header-text: #2e3638;--site-header-highlight: #008297;--site-header-highlight-light: #008297;--site-header-highlight-text: #ffffff;--site-header-highlight-text-invert: #ffffff;--site-header-box-shadow: #00000080;--site-header-badge-bg: #E5F2F5;--site-header-badge-text: #008297;--avatar-border: #e0e0e0;--success-bg-btn: #1D966A;--success-bg-text: #ffffff;--table-row-hover: #F2F9FA;--mission-statement-bg: #E5F2F5;--mission-statement-text: #2e3638;--bg-text-color-light: #6d787e;--bg-white-ghost: #F8F8F9;--bg-milestone: #f3f3f3;--white-bg-original: #ffffff;--modal-bg: #ffffff;--feedback-bg: #f5f7f8;--transparent-white-bg: #FFFFFF;--milestone-task-bg: #f5f7f8;--primary-bg: #f3f3f3;--primary-bg-secondary: #ffffff;--quest-detail-right: #E5EAED;--input-field-bg: #ffffff;--nav-flow-number-bg: #ffffff;--nav-flow-number-color: #000000;--flow-pages-bg: #f3f3f3;--flow-pages-section-bg: #ffffff;--tooltip-bg: #000000;--tooltip-text-color: #ffffff;--close-btn-invert: 0;--close-btn-invert-str: invert(0);--payment-block-row: #ffffff;--search-hover-bg: #f0f0f0;--progress-bar-uncovered: #ffffff;--bg-text-color-secondary: #c5c9cb;--bs-backdrop-bg-custom: #000000;--read-more-gradient: #ffffff;--read-more-btn-text: #2e3638;--dots-bg: #E5F2F5;--dots-color: #2e3638;--total-amount-color: #2e3638;--team-option-bg: #f9f9f9;--team-option-bg-dark: #ededed;--checkbox-selection-color: #ffffff;--comment-text-color: #2e3638;--table-member-bg: #F4F7F7;--table-rank-bg: #ffffff;--table-gutter-bg: #E8E9EA;--error-dark: #D00808;--error-dark-hover: #e61c1c;--timeline-bg: #F3F4F5;--marked-milestone-bg: #1D966A;--marked-milestone-bg-hover: #22ab79;--marked-milestone-block: #E8F4F0;--accent-color-secondary-light: #EAEEF0;--sample-primary-bg: #f3f3f3;--sample-quest-content-bg: #ffffff;--sample-bg-text-color: #2e3638;--sample-theme-bg-color: #008297;--sample-theme-bg-color-light: #339BAC;--sample-theme-text-light: #ffffff;--sample-btn-text-light: #ffffff;--sample-btn-text-color: #2e3638;--white-10: rgba(255, 255, 255, .1);--black: #000;--black-70: rgba(0, 0, 0, .7);--black-50: rgba(0, 0, 0, .5);--black-40: rgba(0, 0, 0, .4);--black-10: rgba(0, 0, 0, .1);--black-05: rgba(0, 0, 0, .05);--petrol-70: rgba(0, 81, 102, .7);--petrol-50: rgba(0, 81, 102, .5);--petrol-30: rgba(0, 81, 102, .3);--petrol-15: rgba(0, 81, 102, .05);--blue-stone-15: rgba(0,81,102, .05);--bismark-80: rgba(71,121,133,.8);--cornflowerBlue-10: rgba(36,88,102,.1);--white-70: rgba(255, 255, 255, .7);--white-50: rgba(255, 255, 255, .5);--white-30: rgba(255, 255, 255, .3);--light-blue-grey: #a6dce5;--jungle-mist: #aac9ce;--powder-blue: #b0e0e8;--shakespeare: #3fb1d1;--matisse: #1D728F;--blizzard-blue: #a6e0ec;--aquamarine-blue: #86d0e1;--hippie-blue: #609eae;--purpley-grey: #9e94a2;--ebony-clay: #1f3034;--petrol: #005166;--orient: #006a86;--cutty-sark: #516e75;--juniper: #648288;--smalt-blue: #548b97;--bali-hai: #81a8b3;--golden-fizz: #f8ec31;--amber: #FFC107;--geraldine: #ff7f7f;--cinnabar: #e83d3d;--white: #fff;
1--silver: #bbb;--shamrock: #2ecc71;--amazon: #347750;--puce: #cc8588;--alto: #dedede;--bermuda: #83cad9;--cornflower: #92d6e5;--bright-yellow: #fff100;--tabasco: #b41212;--casal: #295966;--outer-space: #2e3638;--dove-gray: #646464;--dusty-gray: #979797;--silver-sand: #bec1c1;--tower-gray: #d6dee1;--geyser: #d6dee1;--wild-sand: #f4f4f4;--alabaster: #f9f9f9;--anakiwa: #87ffff;--pelorous: #34a6b1;--shakespeare: #41abcb;--eastern-blue: #168cb2;--tealColor: #008297;--tealLightColor: #339BAC;--tealDarkColor: #295967;--greyDarkColor: #2e3638;--greyColor: #6d787e;--lightGreyColor: #c5c9cb;--ghostWhite: #F8F8F9;--ghostGrey: #EBECED;--paleCyan: #cce6ea;--secondary-bg: #ebebeb;--progress-bg: #f5f7f8;--tealLightBg: #E5EAED;--backgroundOptionsGray: #f5f5f5;--platinum: #A7AEB2;--grayBlueBg: #E5F2F5;--errorRed: #B73622;--warning-color: #EB7200;--orange-warning: #EB7200;--orange-warning-light: #FDF1E5;--orange: #FFB217;--orange-80: rgba(255, 178, 23, .8);--physical: #DB3900;--environmental: #4A8500;--occupational: #E20096;--mental: #018484;--friends: #905CB4;--piggybank: #AD7D00;--teal-01: rgba(41, 89, 103, .1);--teal-005: rgba(41, 89, 103, .05);--light-gold: #F2EBD9;--brown-gold: #A67B00;--border-radius-val: 5px;--borderLightGray: #C5C9CB;--silver-20: #F3F4F5;--teal-70: #4DA7B6;--success-bg: #1D966A;--success-bg-hover: #22ab79;--sinbad: #99CDD5;--btn-theme-bg: #008297;--btn-theme-bg-light-color: #339BAC;--btn-theme-text: #ffffff;--sample-btn-bg-color: #008297;--ab-offset: 0px}[_nghost-%COMP%]{display:block}.c-n-form__legend[_ngcontent-%COMP%]{display:block}.c-quest__doers.is-align-left[_ngcontent-%COMP%]{justify-content:flex-start}.c-quest__doers[_ngcontent-%COMP%] .avatarDiv[_ngcontent-%COMP%]{display:block;text-align:center;margin-bottom:25px}.c-quest__doers[_ngcontent-%COMP%] .avatarDiv.last-draft-item[_ngcontent-%COMP%]{display:none}@media(max-width:767px){.c-quest__doers[_ngcontent-%COMP%] .avatarDiv.last-draft-item[_ngcontent-%COMP%]{display:block}}.c-quest__doers[_ngcontent-%COMP%]:not(.no-grid) .avatarDiv.member-avatar-7[_ngcontent-%COMP%], .c-quest__doers[_ngcontent-%COMP%]:not(.no-grid) .avatarDiv.member-avatar-8[_ngcontent-%COMP%]{display:none}@media(max-width:767px){.c-quest__doers[_ngcontent-%COMP%]:not(.no-grid) .avatarDiv.member-avatar-7[_ngcontent-%COMP%], .c-quest__doers[_ngcontent-%COMP%]:not(.no-grid) .avatarDiv.member-avatar-8[_ngcontent-%COMP%]{display:block}}.c-quest__doers[_ngcontent-%COMP%]:not(.no-grid) .avatarDiv.temp-box-3[_ngcontent-%COMP%]{display:none}.c-quest__doers[_ngcontent-%COMP%]:not(.no-grid) .avatarDiv.temp-box-2[_ngcontent-%COMP%]{display:block}.c-quest__doers[_ngcontent-%COMP%]:not(.no-grid) .avatarDiv.temp-box-1[_ngcontent-%COMP%]{display:none}@media(max-width:767px){.c-quest__doers[_ngcontent-%COMP%]:not(.no-grid) .avatarDiv.temp-box-1[_ngcontent-%COMP%]{display:block}}.c-article__header.flex-hdr[_ngcontent-%COMP%]{flex-direction:row;justify-content:space-between}@media only screen and (min-width:730px){.c-article__header[_ngcontent-%COMP%] .mobile-only[_ngcontent-%COMP%]{display:none}.c-article__header[_ngcontent-%COMP%] .desktop-only[_ngcontent-%COMP%]{display:block}}@media only screen and (max-width:729px){.c-article__header[_ngcontent-%COMP%] .mobile-only[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-width:50%;width:100%}.c-article__header[_ngcontent-%COMP%] .mobile-only[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:0 auto 20px;max-width:270px}.c-article__header[_ngcontent-%COMP%] .mobile-only[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{margin-bottom:0}.c-article__header[_ngcontent-%COMP%] .desktop-only[_ngcontent-%COMP%]{display:none}}.c-my-friends__item__title[_ngcontent-%COMP%]{font-family:ProximaNova-Regular}.c-quest__doers[_ngcontent-%COMP%] .c-avatar[_ngcontent-%COMP%]{font-size:55px!important}.c-quest__doer__amount[_ngcontent-%COMP%]{width:85px!important}@media(max-width:650px){.c-quest__doers[_ngcontent-%COMP%] .c-avatar[_ngcontent-%COMP%]{font-size:55px!important}.c-quest__doers__more[_ngcontent-%COMP%]{width:55px!important;height:55px!important;margin-bottom:32px!important}
1.c-quest__doer__amount[_ngcontent-%COMP%]{width:85px!important}}.ml-0[_ngcontent-%COMP%]{margin-left:0}@media(max-width:729px){.c-article__header[_ngcontent-%COMP%]{flex-wrap:wrap}}.c-members__inner[_ngcontent-%COMP%]{display:block}.c-search__item[_ngcontent-%COMP%]{border-bottom:1px solid #c5c9cb;margin-bottom:0}.c-search__item[_ngcontent-%COMP%]:last-child{border-bottom:0}.draft-member-section[_ngcontent-%COMP%]{background-color:transparent!important;padding:0!important}.draft-member-section[_ngcontent-%COMP%] app-profile-avatar .c-avatar__inner{background-color:var(--white)!important;border:solid 1px var(--lightGreyColor)!important;border-radius:100%!important}.draft-member-section[_ngcontent-%COMP%] app-profile-avatar .c-avatar__inner .c-profile-new__header__photo__img__cont-bg{width:24px;height:24px;top:calc(50% - 12px);left:calc(50% - 12px)}.member-modal__requests-cont[_ngcontent-%COMP%]{margin:0 2rem 2rem;background:var(--milestone-task-bg);padding:1.6rem}.member-modal__requests-cont[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:16px;font-family:ProximaNova-Bold;margin-bottom:0;text-transform:none}.member-modal__requests-cont[_ngcontent-%COMP%] .request-row[_ngcontent-%COMP%]{padding-bottom:16px;padding-top:16px;border-bottom:solid 1px var(--bg-text-color-secondary)}@media(max-width:570px){.member-modal__requests-cont[_ngcontent-%COMP%] .request-row[_ngcontent-%COMP%]{flex-direction:column}}.member-modal__requests-cont[_ngcontent-%COMP%] .request-row[_ngcontent-%COMP%] .left-part[_ngcontent-%COMP%], .member-modal__requests-cont[_ngcontent-%COMP%] .request-row[_ngcontent-%COMP%] .right-part[_ngcontent-%COMP%]{width:50%}@media(max-width:570px){.member-modal__requests-cont[_ngcontent-%COMP%] .request-row[_ngcontent-%COMP%] .left-part[_ngcontent-%COMP%], .member-modal__requests-cont[_ngcontent-%COMP%] .request-row[_ngcontent-%COMP%] .right-part[_ngcontent-%COMP%]{width:100%}}.member-modal__requests-cont[_ngcontent-%COMP%] .request-row[_ngcontent-%COMP%]:last-child{border-bottom-width:0;padding-bottom:0}.member-modal__requests-cont[_ngcontent-%COMP%] .request-row[_ngcontent-%COMP%] .c-my-friends__item__img{width:40px;min-width:40px;height:40px}.member-modal__requests-cont[_ngcontent-%COMP%] .request-row[_ngcontent-%COMP%] .c-my-friends__item__caption{display:block}.member-modal__requests-cont[_ngcontent-%COMP%] .request-row[_ngcontent-%COMP%] .c-my-friends__request-ago[_ngcontent-%COMP%]{color:var(--accent-color);font-size:12px;font-weight:700}.member-modal__requests-cont[_ngcontent-%COMP%] .request-row[_ngcontent-%COMP%] .right-part[_ngcontent-%COMP%]{height:30px;justify-content:flex-end}.member-modal__requests-cont[_ngcontent-%COMP%] .request-row[_ngcontent-%COMP%] .right-part[_ngcontent-%COMP%] .e-btn[_ngcontent-%COMP%]{max-width:125px}.member-modal__requests-cont[_ngcontent-%COMP%] .request-row[_ngcontent-%COMP%] .right-part[_ngcontent-%COMP%] .accepted[_ngcontent-%COMP%], .member-modal__requests-cont[_ngcontent-%COMP%] .request-row[_ngcontent-%COMP%] .right-part[_ngcontent-%COMP%] .rejected[_ngcontent-%COMP%]{font-family:ProximaNova-Semibold;font-size:16px;color:var(--success-bg)}.member-modal__requests-cont[_ngcontent-%COMP%] .request-row[_ngcontent-%COMP%] .right-part[_ngcontent-%COMP%] .rejected[_ngcontent-%COMP%]{color:var(--bg-text-color-light)}.member-modal__search-cont[_ngcontent-%COMP%]{padding-left:2rem;padding-right:2rem;margin-bottom:3rem}@media(max-width:569px){.member-modal__search-cont[_ngcontent-%COMP%]{padding-left:0;padding-right:0}}.member-modal__search-cont[_ngcontent-%COMP%] .c-n-form__control.show-border-top[_ngcontent-%COMP%]{border-top:solid 1px var(--bg-text-color-secondary);padding-top:3rem}.member-modal__search-cont[_ngcontent-%COMP%] .c-n-form__input[_ngcontent-%COMP%]{border-color:var(--accent-color);text-indent:15px}.member-modal__search-cont[_ngcontent-%COMP%] .search-gray[_ngcontent-%COMP%]{fill:var(--accent-color);width:17px;height:17px;position:absolute;bottom:11px;z-index:1;left:8px}.member-modal__table[_ngcontent-%COMP%]{padding-left:2rem;padding-right:2rem;padding-bottom:75px;max-height:320px;overflow-y:auto}.member-modal__table.new-members[_ngcontent-%COMP%]{padding-bottom:0}.member-modal__table.new-members[_ngcontent-%COMP%] .member-modal__table__col.name[_ngcontent-%COMP%]{width:75%}@media(max-width:569px){.member-modal__table[_ngcontent-%COMP%]{padding-left:0;padding-right:0}}.member-modal__table__row[_ngcontent-%COMP%]{font-size:1.6rem;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.member-modal__table__row[_ngcontent-%COMP%]:not(.header){padding:1.2rem 0;border-bottom:solid 1px var(--bg-text-color-secondary)}.member-modal__table__row[_ngcontent-%COMP%]:not(.header):last-child{border-bottom-width:0}.member-modal__table__row[_ngcontent-%COMP%] app-profile-avatar[_ng
1content-%COMP%]{width:40px;height:40px}.member-modal__table__row[_ngcontent-%COMP%] .user-image[_ngcontent-%COMP%]{width:40px;height:40px;text-align:center;margin-right:8px}.member-modal__table__row[_ngcontent-%COMP%] .user-image.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.member-modal__table__row[_ngcontent-%COMP%] .user-link[_ngcontent-%COMP%]{text-decoration:none;color:var(--accent-color)}.member-modal__table__col.head[_ngcontent-%COMP%]{font-family:ProximaNova-Bold}.member-modal__table__col.name[_ngcontent-%COMP%]{width:30%}.member-modal__table__col.name[_ngcontent-%COMP%]:not(.head){color:var(--accent-color);cursor:pointer;font-family:ProximaNova-Semibold}.member-modal__table__col.name[_ngcontent-%COMP%]:not(.head):hover{text-decoration:underline}.member-modal__table__col.date[_ngcontent-%COMP%], .member-modal__table__col.role[_ngcontent-%COMP%]{width:25%}.member-modal__table__col.connection[_ngcontent-%COMP%]{width:20%;display:flex;justify-content:flex-end;align-items:center}.member-modal__table__col.connection[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;padding:1rem .7rem;width:36px;height:36px}.member-modal__table__col.connection[_ngcontent-%COMP%] span.already-friend[_ngcontent-%COMP%]{border:solid 1px var(--accent-color);border-radius:var(--border-radius-val);opacity:.5}.member-modal__table__col.connection[_ngcontent-%COMP%] span.already-friend[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:22px;height:16px;display:block;fill:var(--accent-color);cursor:not-allowed}.member-modal__table__col.connection[_ngcontent-%COMP%] span.delete-joinee[_ngcontent-%COMP%]{border:solid 1px var(--error-dark);border-radius:var(--border-radius-val);cursor:pointer;margin-left:15px}.member-modal__table__col.connection[_ngcontent-%COMP%] span.delete-joinee[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{fill:var(--error-dark);width:20px;height:16px;display:block}.member-modal__table__col.connection[_ngcontent-%COMP%] span.send-request[_ngcontent-%COMP%]{border:solid 1px var(--accent-color);border-radius:var(--border-radius-val);cursor:pointer}.member-modal__table__col.connection[_ngcontent-%COMP%] span.send-request[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:18px;height:13px;display:block;fill:var(--accent-color)}.member-modal__tab-row[_ngcontent-%COMP%]{display:flex;padding-left:2rem;padding-right:2rem}@media(max-width:569px){.member-modal__tab-row[_ngcontent-%COMP%]{padding-left:0;padding-right:0}}.member-modal__tab-row__item[_ngcontent-%COMP%]{cursor:pointer;width:100px;font-size:1.4rem;padding:0 10px 5px}.member-modal__tab-row__item.active[_ngcontent-%COMP%]{position:relative}.member-modal__tab-row__item.active[_ngcontent-%COMP%]:after{content:"";height:2px;width:100%;bottom:0;left:0;position:absolute;background:var(--accent-color)}.search-email-list[_ngcontent-%COMP%]{position:absolute;top:calc(40px + 3rem);width:100%;background:var(--white-section-bg);border:solid 1px var(--accent-color);padding:5px 20px;z-index:9;max-height:200px;overflow-y:auto}.search-email-list__row[_ngcontent-%COMP%]{font-size:14px;border-bottom:solid 1px tealLightBg;cursor:pointer;align-items:center;padding:5px 2px}.search-email-list__row[_ngcontent-%COMP%]:last-child{border-bottom:none}.search-email-list__row__image[_ngcontent-%COMP%]{margin-right:10px;width:35px;height:35px;position:relative}.search-email-list__row__image__inner[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:50%;overflow:hidden;border:1px solid #fff}.search-email-list__row__name[_ngcontent-%COMP%]{display:flex;flex-direction:column}.search-email-list__row__name[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;font-size:12px;color:var(--greyColor)}.search-email-list[_ngcontent-%COMP%] .invite-label[_ngcontent-%COMP%]{font-size:14px;font-family:ProximaNova-Bold;cursor:pointer}.search-email-list[_ngcontent-%COMP%] .invite-label[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-left:5px}'],changeDetection:0})}}return t})();var Co=["donateTeamBox"],vo=["optionsDropdown"],xo=["startQuestConfTemp"],wo=t=>({"is-loading":t}),Mo=t=>["/manage/group/details",t];function yo(t,c){if(t&1){let e=v();o(0,"div",4)(1,"button",6),u("click",function(){_(e);let n=l();return g(n.toggleEditOptions())}),k(),o(2,"svg",7),f(3,"use",8),r(),I(),o(4,"span",9),d(5,"Edit"),r(),k(),o(6,"svg",10),f(7,"use",11),r(),I(),o(8,"div",12,1)(10,"div",13)(11,"div",14)(12,"ul")(13,"li",15)(14,"a",16),k(),o(15,"svg",7),f(16,"use",8),r(),I(),o(17,"span"),d(18,"Edit Details"),r()()()()()()()()()}if(t&2){let e=l();s(14),m("routerLink",x(1,Mo,e.groupId))}}function Po(t,c){if(t&1){let e=v();o(0,"div",17)(1,"h4",18),d(2,"Let's go!"),r(),o(3,"button",19),u("click",function(){_(e);let n=l();return g(n.closeModal())}),r()(),o(4,"div",20)(5,"p"),d(6,"Ready to begin? Click 'Join' to proceed. If you're not ready, click 'Cancel'."),r()(),o(7,"div",21)(8,"div",22)(9,"button",23),u("click",function(){_(e);let n=l();return g(n.closeModal())}),o(10,"span"),d(11,"Cancel"),r()(),o(12,"button",24),u("click",function(){_(e);let n=l();return g(n.requestJoining())}),o(13,"span"),d(14,"Join"),r()()()()}if(t&2){let e=l();s(9),m("disabled",e.isProgress),s(3),m("disabled",e.isProgress)}}var zi=(()=>{class t{constructor(e,i,n,a,C,S,q,j){this.router=e,this.cdr=i,this.store=n,this.modalService=a,this.notifier=C,this.questService=S,this.formBuilder=q,this.activeModal=j,this.isMegaQuest=!1,this.isGeneralFundOrDefaultTeamPage=!1,this.isLoaded=!1,this.raisedByTeamMembers=0,this.raisedByDirectDonations=0,this.showTeamSelection=!1,this.modalReference=null,this.doQuestTasksExist=!1,this.environment=X,this.isEventRegister=!1,this.templateLoading=!1,this.isAmountApiCalled=!1,this.taskViewDisabled=!1,this.publishLoading=!1,this.listOfTasks=[],this.deleteInProgress=!1,this.doTicketsExist=!1,this.isGetTicketsApiCalled=!1,this.isProgress=!1,this.alreadyJoined=!1,this.alreadyRequested=!1,this.isCurrentMemberAdmin=!1,this.userInfoState=this.store.select("userInfo"),this.authState=this.store.select("auth"),this.groupState=this.store.select("group"),this.templateForm=this.formBuilder.group({questName:["",[fe.required,fe.minLength(3)]]})}
1outsideClick(e){this.showTeamSelection&&this.donateTeamBox&&!this.donateTeamBox.nativeElement.contains(e.target)&&(this.showTeamSelection=!1)}ngOnInit(){this.groupState.pipe(J()).subscribe(e=>{this.groupData=e.selectedGroupDetail,this.alreadyJoined=!!e.allMembers.find(i=>i.userId===this.currentUser?.id&&i.status==="APPROVED"),this.alreadyRequested=!!e.allMembers.find(i=>i.userId===this.currentUser?.id&&i.status==="REQUESTED"),this.groupData?.id&&this.afterDataLoaded(),this.isCurrentMemberAdmin=e.allMembers?.length>0?e.allMembers.find(i=>i.userId===this.currentUser?.id)?.roleName.toLowerCase()==="admin":!1,this.cdr.detectChanges()}),this.userInfoState.pipe(D(1)).subscribe(e=>{this.currentUser=e,this.cdr.detectChanges()}),this.groupId=this.groupData.id,this.userId=this.groupData.user.id,this.isLoaded=!0}afterDataLoaded(){this.store.select("auth").pipe(D(1)).subscribe(e=>{let i=localStorage.getItem("openMoveTo")||"";i=i===""?"":JSON.parse(i),e.authenticated&&i!==""?setTimeout(()=>{this.activeModal.close(),this.closeModal(),i==="join-group"&&this.startQuestConfirm(),localStorage.removeItem("openMoveTo"),this.cdr.detectChanges()},700):!e.authenticated&&i!==""&&this.openLoginModal()})}doNothing(){}getGroupId(){return this.groupId}getUserId(){return this.userId}closeModal(){this.modalService.dismissAll(),this.modalReference=null,this.cdr.detectChanges()}iAmDoer(){return this.currentUser&&this.currentUser.id===this.userId}toggleEditOptions(){if(this.optionsDropdown.isOpen()){this.optionsDropdown.close();return}this.optionsDropdown.open()}navigateToGroup(){this.router.navigate(["/",this.groupData.user.userName,"group",this.groupId])}confDeleteGroup(e){this.modalReference=this.modalService.open(e,{windowClass:"confirm-modal"})}deleteQuest(){this.deleteInProgress=!0,this.questService.deleteQuest(this.groupData.id).subscribe(e=>{e.Success?(this.deleteInProgress=!1,this.closeModal(),this.router.navigate(["/workspace"])):(this.deleteInProgress=!1,this.notifier.notify("error","There was an issue completing your request. Please try again.")),this.cdr.detectChanges()},e=>{this.deleteInProgress=!1,this.notifier.notify("error","There was an issue completing your request. Please try again."),this.cdr.detectChanges()})}startQuestConfirm(){this.iAmDoer()||(this.modalReference=this.modalService.open(this.startQuestConfTemp,{windowClass:"confirm-modal"}))}requestJoining(){this.isProgress||(this.isProgress=!0,this.questService.requestJoiningGroup(this.groupId).subscribe(e=>{this.isProgress=!1,this.alreadyRequested=!0,e.success?this.notifier.notify("success","Request sent"):e.result==="MEMBER"?this.notifier.notify("error","Already a member"):e.result==="REQUESTED"?this.notifier.notify("error","Already requested"):e.result==="REJECTED"?this.notifier.notify("error","Request rejected"):this.notifier.notify("error","There was an issue completing your request. Please try again."),this.cdr.detectChanges(),this.closeModal()},e=>{this.isProgress=!1,this.notifier.notify("error","There was an issue completing your request. Please try again."),this.cdr.detectChanges()}))}openLoginModal(){this.modalService.open(de,{windowClass:"no-overflow small-login-modal",backdrop:"static"})}static{this.\u0275fac=function(i){return new(i||t)(p(be),p(U),p(L),p(Z),p($),p(Q),p(Qe),p(ae))}}static{this.\u0275cmp=A({type:t,selectors:[["app-group-options"]],viewQuery:function(i,n){if(i&1&&R(Co,5,W)(vo,5)(xo,5,F),i&2){let a;M(a=y())&&(n.donateTeamBox=a.first),M(a=y())&&(n.optionsDropdown=a.first),M(a=y())&&(n.startQuestConfTemp=a.first)}},hostBindings:function(i,n){i&1&&u("click",function(C){return n.outsideClick(C)},Ie)},standalone:!1,decls:8,vars:8,consts:[["startQuestConfTemp",""],["optionsDropdown","ngbDropdown"],[1,"c-quest__article","c-quest__article__donate"],[1,"c-quest-donate","c-quest__article__inner","c-quest__article__inner__white"],[1,"edit-quest-btn__cont"],[1,"e-btn","e-btn_dark","e-btn_dark","d-block","w-100p",3,"appAuthGuard","disabled","ngClass","open-move-to","openLoginModal"],[1,"e-btn","e-btn_dark","w-100p","edit-quest-btn","position-relative","e-btn_dark-revert",3,"click"],[1,"icon","icon-pencil"],[0,"xlink","href","#icon-pencil"],[1,"text"],[1,"icon","icon-accordion-down"],[0,"xlink","href","#icon-accordion-down"],["ngbDropdown","",1,"edit-quest-btn__dropdown","c-quest-detail__header__dropdown","header__dropdown__right"],["ngbDropdownMenu","",1,"c-quest-detail__header__dropdown__menu"],[1,"c-quest-detail__header__dropdown","header__dropdown__right"],["ngbDropdownItem","","title","Details",1,"edit-icon"],["title","Details",3,"routerLink"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body"],[1,"modal-footer"],[1,"d-flex","d-flex__justify__space-between","w-100"],["type","button",1,"e-btn","e-btn_dark-revert",3,"click","disabled"],["type","button",1,"e-btn","e-btn_dark",3,"click","disabled"]],template:function(i,n){i&1&&(o(0,"div",2)(1,"div",3),h(2,yo,19,3,"div",4),o(3,"button",5),u("appAuthGuard",function(){return n.startQuestConfirm()}),o(4,"span"),d(5),r()()()(),E(6,Po,15,2,"ng-template",null,0,O)),i&2&&(s(2),b(((n.currentUser==null?null:n.currentUser.id)===(n.groupData==null||n.groupData.user==null?null:n.groupData.user.id)||n.isCurrentMemberAdmin)&&(!(n.currentUser==null||n.currentUser.userPermissions==null)&&n.currentUser.userPermissions.edit_groups)?2:-1),s(),m("disabled",n.iAmDoer()||n.alreadyJoined||n.alreadyRequested||n.isProgress)("ngClass",x(6,wo,n.isProgress))("open-move-to","join-group")("openLoginModal","small"),s(2),T(n.alreadyRequested?"Requested":n.alreadyJoined?"Joined":"Join Group"))},dependencies:[H,ki,We,Je,$e,Ce],styles:['[_ngcontent-%COMP%]:root{--accent-color: #008297;--accent-color-rgb: 0 130 151;--accent-dark-color: #295967;--accent-bg-light-color: #339BAC;--btn-text-color: #2e3638;--theme-text-dark: #2e3638;--bg-text-color: #2e3638;--theme-text-light: #ffffff;--btn-text-light: #ffffff;--quest-content-bg: #FFFFFF;--quest-highlight-bg: #E5EAED;--white-section-bg: #ffffff;--comment-blue-bg: #E5F2F5;--quest-header-bg: #008297;--lighter-btn-bg: #E5F2F5;--quest-detail-nav: #008297;--quest-detail-nav-dark: #295967;--site-header: #ffffff;--site-header-text: #2e3638;--site-header-highlight: #008297;--site-header-highlight-light: #008297;--site-header-highlight-text: #ffffff;--site-header-highlight-text-invert: #ffffff;--site-header-box-shadow: #00000080;--site-header-badge-bg: #E5F2F5;--site-header-badge-text: #008297;--avatar-border: #e0e0e0;--success-bg-btn: #1D966A;--success-bg-text: #ffffff;--table-row-hover: #F2F9FA;--mission-statement-bg: #E5F2F5;--mission-statement-text: #2e3638;--bg-text-color-light: #6d787e;--bg-white-ghost: #F8F8F9;--bg-milestone: #f3f3f3;--white-bg-original: #ffffff;--modal-bg: #ffffff;--feedback-bg: #f5f7f8;--transparent-white-bg: #FFFFFF;--milestone-task-bg: #f5f7f8;--primary-bg: #f3f3f3;--primary-bg-secondary: #ffffff;--quest-detail-right: #E5EAED;--input-field-bg: #ffffff;--nav-flow-number-bg: #ffffff;--nav-flow-number-color: #000000;--flow-pages-bg: #f3f3f3;--flow-pages-section-bg: #ffffff;--tooltip-bg: #000000;--tooltip-text-color: #ffffff;--close-btn-invert: 0;--close-btn-invert-str: invert(0);--payment-block-row: #ffffff;--search-hover-bg: #f0f0f0;--progress-bar-uncovered: #ffffff;--bg-text-color-secondary: #c5c9cb;--bs-backdrop-bg-custom: #000000;--read-more-gradient: #ffffff;--read-more-btn-text: #2e3638;--dots-bg: #E5F2F5;--dots-color: #2e3638;--total-amount-color: #2e3638;--team-option-bg: #f9f9f9;--team-option-bg-dark: #ededed;--checkbox-selection-color: #ffffff;--comment-text-color: #2e3638;--table-member-bg: #F4F7F7;--table-rank-bg: #ffffff;--table-gutter-bg: #E8E9EA;--error-dark: #D00808;
1--error-dark-hover: #e61c1c;--timeline-bg: #F3F4F5;--marked-milestone-bg: #1D966A;--marked-milestone-bg-hover: #22ab79;--marked-milestone-block: #E8F4F0;--accent-color-secondary-light: #EAEEF0;--sample-primary-bg: #f3f3f3;--sample-quest-content-bg: #ffffff;--sample-bg-text-color: #2e3638;--sample-theme-bg-color: #008297;--sample-theme-bg-color-light: #339BAC;--sample-theme-text-light: #ffffff;--sample-btn-text-light: #ffffff;--sample-btn-text-color: #2e3638;--white-10: rgba(255, 255, 255, .1);--black: #000;--black-70: rgba(0, 0, 0, .7);--black-50: rgba(0, 0, 0, .5);--black-40: rgba(0, 0, 0, .4);--black-10: rgba(0, 0, 0, .1);--black-05: rgba(0, 0, 0, .05);--petrol-70: rgba(0, 81, 102, .7);--petrol-50: rgba(0, 81, 102, .5);--petrol-30: rgba(0, 81, 102, .3);--petrol-15: rgba(0, 81, 102, .05);--blue-stone-15: rgba(0,81,102, .05);--bismark-80: rgba(71,121,133,.8);--cornflowerBlue-10: rgba(36,88,102,.1);--white-70: rgba(255, 255, 255, .7);--white-50: rgba(255, 255, 255, .5);--white-30: rgba(255, 255, 255, .3);--light-blue-grey: #a6dce5;--jungle-mist: #aac9ce;--powder-blue: #b0e0e8;--shakespeare: #3fb1d1;--matisse: #1D728F;--blizzard-blue: #a6e0ec;--aquamarine-blue: #86d0e1;--hippie-blue: #609eae;--purpley-grey: #9e94a2;--ebony-clay: #1f3034;--petrol: #005166;--orient: #006a86;--cutty-sark: #516e75;--juniper: #648288;--smalt-blue: #548b97;--bali-hai: #81a8b3;--golden-fizz: #f8ec31;--amber: #FFC107;--geraldine: #ff7f7f;--cinnabar: #e83d3d;--white: #fff;--silver: #bbb;--shamrock: #2ecc71;--amazon: #347750;--puce: #cc8588;--alto: #dedede;--bermuda: #83cad9;--cornflower: #92d6e5;--bright-yellow: #fff100;--tabasco: #b41212;--casal: #295966;--outer-space: #2e3638;--dove-gray: #646464;--dusty-gray: #979797;--silver-sand: #bec1c1;--tower-gray: #d6dee1;--geyser: #d6dee1;--wild-sand: #f4f4f4;--alabaster: #f9f9f9;--anakiwa: #87ffff;--pelorous: #34a6b1;--shakespeare: #41abcb;--eastern-blue: #168cb2;--tealColor: #008297;--tealLightColor: #339BAC;--tealDarkColor: #295967;--greyDarkColor: #2e3638;--greyColor: #6d787e;--lightGreyColor: #c5c9cb;--ghostWhite: #F8F8F9;--ghostGrey: #EBECED;--paleCyan: #cce6ea;--secondary-bg: #ebebeb;--progress-bg: #f5f7f8;--tealLightBg: #E5EAED;--backgroundOptionsGray: #f5f5f5;--platinum: #A7AEB2;--grayBlueBg: #E5F2F5;--errorRed: #B73622;--warning-color: #EB7200;--orange-warning: #EB7200;--orange-warning-light: #FDF1E5;--orange: #FFB217;--orange-80: rgba(255, 178, 23, .8);--physical: #DB3900;--environmental: #4A8500;--occupational: #E20096;--mental: #018484;--friends: #905CB4;--piggybank: #AD7D00;--teal-01: rgba(41, 89, 103, .1);--teal-005: rgba(41, 89, 103, .05);--light-gold: #F2EBD9;--brown-gold: #A67B00;--border-radius-val: 5px;--borderLightGray: #C5C9CB;--silver-20: #F3F4F5;--teal-70: #4DA7B6;--success-bg: #1D966A;--success-bg-hover: #22ab79;--sinbad: #99CDD5;--btn-theme-bg: #008297;--btn-theme-bg-light-color: #339BAC;--btn-theme-text: #ffffff;--sample-btn-bg-color: #008297;--ab-offset: 0px}@media(max-width:767px){.c-quest__article.c-quest__article__donate[_ngcontent-%COMP%]{margin-bottom:0}}.c-quest-donate[_ngcontent-%COMP%]{padding:20px 20px 5px}.c-quest-donate[_ngcontent-%COMP%] .e-btn[_ngcontent-%COMP%]{margin-bottom:1.6rem}.c-quest-donate[_ngcontent-%COMP%] .e-btn.date-msg-exists[_ngcontent-%COMP%]{margin-bottom:.8rem}.c-quest-donate.is-page[_ngcontent-%COMP%]{flex-direction:row;display:flex;align-items:center;justify-content:space-between;padding-top:0;padding-bottom:0;padding-right:0}@media(max-width:569px){.c-quest-donate.is-page[_ngcontent-%COMP%]{flex-direction:column;padding-left:0;padding-right:0}}.c-quest-donate.is-page.page-published[_ngcontent-%COMP%]{justify-content:end}.c-quest-donate.is-page[_ngcontent-%COMP%] .e-btn[_ngcontent-%COMP%]{margin-bottom:0}@media(min-width:570px){.c-quest-donate.is-page[_ngcontent-%COMP%] .e-btn[_ngcontent-%COMP%]{max-width:300px}}.c-quest-donate__progress-block[_ngcontent-%COMP%]{padding-bottom:0}@media only screen and (min-width:730px){.c-quest-donate__progress-block[_ngcontent-%COMP%]{flex-grow:1}}.c-quest-donate__progress-block__total[_ngcontent-%COMP%]{font-size:12px;line-height:22px;color:var(--bg-text-color);font-family:ProximaNova-Semibold}.c-quest-donate__progress-block__total[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:10px}@media(max-width:767px){.c-quest-donate__progress-block__total[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:none}}
1.c-quest-donate__progress-block__total__amount[_ngcontent-%COMP%]{font-size:14px;line-height:36px}@media(min-width:768px){.c-quest-donate__progress-block__total__amount.mobile-only[_ngcontent-%COMP%]{display:none}}@media(max-width:767px){.c-quest-donate__progress-block__total__amount.desktop-only[_ngcontent-%COMP%]{display:none}}.c-quest-donate__progress-block__total__amount[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{font-size:22px;font-family:ProximaNova-Bold}@media(max-width:767px){.c-quest-donate__progress-block__total__amount[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{font-size:24px}}.c-quest-donate__progress-block__total__amount[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{display:none;font-size:14px;position:relative;padding-left:15px}@media(max-width:767px){.c-quest-donate__progress-block__total__amount[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{display:inline}}.c-quest-donate__progress-block__total__amount[_ngcontent-%COMP%] small[_ngcontent-%COMP%]:before{content:".";font-family:ProximaNova-Bold;font-size:30px;line-height:10px;height:10px;display:inline-block;position:absolute;top:-3px;left:0}.c-quest-donate__progress-block__total-desc[_ngcontent-%COMP%]{font-size:12px;line-height:15px;margin-bottom:5px;color:var(--bg-text-color)}@media(max-width:767px){.c-quest-donate__progress-block__total-desc[_ngcontent-%COMP%]{display:none}}.c-quest-donate__progress-block__desc[_ngcontent-%COMP%]{font-size:12px;color:var(--bg-text-color)}@media(max-width:767px){.c-quest-donate__progress-block__desc[_ngcontent-%COMP%]{display:none}}.c-quest-donate__progress-block__range[_ngcontent-%COMP%]{align-items:center;position:relative;margin-top:0;margin-bottom:10px;display:flex}@media(max-width:767px){.c-quest-donate__progress-block__range[_ngcontent-%COMP%]{margin-bottom:10px}}.c-quest-donate__progress-block__range.has-trigger[_ngcontent-%COMP%]{padding-right:50px}.c-quest-donate__progress-block__range__trigger[_ngcontent-%COMP%]{background-color:#ffea00;position:relative;border-radius:50%;margin-left:16px;color:#295966;flex-shrink:0;border:none;height:24px;width:24px}.c-quest-donate__progress-block__range__trigger[_ngcontent-%COMP%]:before, .c-quest-donate__progress-block__range__trigger[_ngcontent-%COMP%]:after{background-color:currentColor;position:absolute;display:block;margin:auto;content:"";inset:0}.c-quest-donate__progress-block__range__trigger[_ngcontent-%COMP%]:before{height:14px;width:2px}.c-quest-donate__progress-block__range__trigger[_ngcontent-%COMP%]:after{height:2px;width:14px}.c-quest-donate__progress-block__progress[_ngcontent-%COMP%]{background-color:var(--ghostGrey);border-radius:5px;position:relative;overflow:hidden;flex-grow:1;height:15px}.c-quest-donate__progress-block__progress[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{background-color:var(--accent-dark-color);border-radius:5px;position:absolute;max-width:100%;height:100%;left:0;top:0}.c-quest-donate__buttons-block[_ngcontent-%COMP%]{padding:0;display:flex;flex-direction:column;justify-content:space-between}.c-quest-donate__buttons-block.flex-direction-column[_ngcontent-%COMP%]{flex-direction:column}.c-quest-donate__buttons-block[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:block;margin:0 0 10px;max-width:100%;width:100%}.c-quest-donate__buttons-block[_ngcontent-%COMP%] button.mq-donate-btn[_ngcontent-%COMP%]{min-width:270px!important}.c-quest-donate__buttons-block[_ngcontent-%COMP%] app-ui-select-team[_ngcontent-%COMP%]{min-width:270px;position:relative;margin-top:0;display:block;margin-bottom:10px;height:42px}.c-quest-donate__log-act-btn[_ngcontent-%COMP%]{position:relative}.c-quest-donate__log-act-btn[_ngcontent-%COMP%] .e-btn[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{position:absolute;right:13px}.c-quest-donate__share-block[_ngcontent-%COMP%] app-quest-header-tools[_ngcontent-%COMP%] .c-quest-detail__header__dropdown[_ngcontent-%COMP%] .c-quest-detail__header__dropdown__menu[_ngcontent-%COMP%], .c-quest-donate__log-act-btn[_ngcontent-%COMP%] app-quest-header-tools[_ngcontent-%COMP%] .c-quest-detail__header__dropdown[_ngcontent-%COMP%] .c-quest-detail__header__dropdown__menu[_ngcontent-%COMP%]{left:0;right:unset}.c-quest-donate__ttl[_ngcontent-%COMP%]{flex-direction:row;color:#000;margin-top:3px;font-size:22px;display:flex}.c-quest-donate__info[_ngcontent-%COMP%]{list-style-type:none;margin-bottom:0;padding-left:0;margin-top:8px}.c-quest-donate__inner[_ngcontent-%COMP%] .c-quest__article__amount[_ng
1content-%COMP%]{flex-grow:1;display:flex;align-items:center}.c-quest-donate__inner[_ngcontent-%COMP%] .c-quest__article__amount[_ngcontent-%COMP%] .info-icon[_ngcontent-%COMP%]{position:relative;display:flex}.c-quest-donate__inner[_ngcontent-%COMP%] .c-quest__article__amount[_ngcontent-%COMP%] .info-icon[_ngcontent-%COMP%] .i-icon[_ngcontent-%COMP%]{display:inline-block;color:#008297;background:#fff;border-radius:50%;padding:5px;font-size:14px;width:20px;height:20px;text-align:center;line-height:10px;border:solid 1px #008297;font-family:ProximaNova-Bold}@media only screen and (max-width:767px){.c-quest-donate__inner[_ngcontent-%COMP%]{flex-direction:column}}@media only screen and (min-width:751px){.c-quest-donate__inner[_ngcontent-%COMP%]{flex-direction:column}}.c-quest-donate[_ngcontent-%COMP%] .dropdown.bootstrap-select{position:relative}@media only screen and (max-width:751px){.c-quest-donate[_ngcontent-%COMP%] .dropdown.bootstrap-select{display:block;max-width:270px;margin:auto}}.c-quest-donate[_ngcontent-%COMP%] .dropdown.bootstrap-select button.dropdown-toggle{max-width:100%}.c-quest-donate[_ngcontent-%COMP%] .dropdown.bootstrap-select .dropdown-menu.open{min-width:270px!important;box-shadow:0 4px 4px #00000080}.c-quest-donate[_ngcontent-%COMP%] .dropdown.bootstrap-select .dropdown-menu.open li a span.text{align-items:center}.w-100p[_ngcontent-%COMP%]{width:100%;max-width:100%}.mb-8[_ngcontent-%COMP%]{margin-bottom:10px}.mt-8[_ngcontent-%COMP%]{margin-top:10px}.edit-quest-btn__dropdown[_ngcontent-%COMP%]{top:37px;position:absolute;left:0;width:100%}.edit-quest-btn__cont.is-page[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:0!important;margin-right:20px}@media(max-width:569px){.edit-quest-btn__cont.is-page[_ngcontent-%COMP%]{margin-right:0;flex-direction:column;margin-bottom:1.5rem!important}}.edit-quest-btn__cont.is-page.page-published[_ngcontent-%COMP%]{margin-right:0}@media(max-width:569px){.edit-quest-btn__cont.is-page.page-published[_ngcontent-%COMP%]{width:100%}}.edit-quest-btn__cont.is-page[_ngcontent-%COMP%] .edit-quest-btn[_ngcontent-%COMP%]{margin-bottom:0!important;margin-right:15px;max-width:250px}@media(max-width:569px){.edit-quest-btn__cont.is-page[_ngcontent-%COMP%] .edit-quest-btn[_ngcontent-%COMP%]{max-width:100%;margin-right:0;margin-bottom:10px!important}}.edit-quest-btn__cont.is-page[_ngcontent-%COMP%] .edit-quest-btn.page-published[_ngcontent-%COMP%]{min-width:250px;margin-right:0}.edit-quest-btn__cont.in-draft-mode[_ngcontent-%COMP%]{padding:1.6rem;background-color:var(--orange-warning-light);margin-bottom:15px}.edit-quest-btn__cont.in-draft-mode[_ngcontent-%COMP%] .edit-quest-btn__msg[_ngcontent-%COMP%]{color:var(--orange-warning)}.edit-quest-btn__cont.in-draft-mode[_ngcontent-%COMP%] .edit-quest-btn__msg[_ngcontent-%COMP%] .e-help[_ngcontent-%COMP%]{border-color:var(--orange-warning);background-color:var(--orange-warning)}.edit-quest-btn__cont.in-draft-mode[_ngcontent-%COMP%] .edit-quest-btn__msg[_ngcontent-%COMP%] .e-help[_ngcontent-%COMP%]:after{color:var(--orange-warning-light)}.edit-quest-btn__msg[_ngcontent-%COMP%]{display:flex;flex-direction:row;font-size:1.6rem;color:var(--accent-dark-color)}.edit-quest-btn__msg[_ngcontent-%COMP%] .e-help[_ngcontent-%COMP%]{border-color:var(--accent-dark-color);background-color:var(--accent-dark-color);min-width:20px;max-width:20px;height:20px;margin-right:10px;display:flex}.edit-quest-btn__msg[_ngcontent-%COMP%] .e-help[_ngcontent-%COMP%]:after{color:var(--accent-color-secondary-light)}.edit-quest-btn__msg[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:0}.edit-quest-btn[_ngcontent-%COMP%] .icon-pencil[_ngcontent-%COMP%]{width:15px;height:15px}.edit-quest-btn[_ngcontent-%COMP%] .icon-accordion-down[_ngcontent-%COMP%]{margin-left:10px;margin-right:0;width:10px;height:6px}.span_sales[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto;font-size:14px;display:block;text-align:center;margin-bottom:1.6rem;color:var(--theme-text-dark)}@media(max-width:569px){.publish-btn__cont.is-page[_ngcontent-%COMP%]{width:100%}}.publish-btn__cont.is-page[_ngcontent-%COMP%] .e-btn[_ngcontent-%COMP%]{margin-bottom:0;min-width:220px}.publish-btn__cont__tooltip[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:3;cursor:pointer}.dots-loader[_ngcontent-%COMP%]{width:60px;aspect-ratio:4;--_g: no-repeat radial-gradient(circle closest-side,#000 90%,#0000);background:var(--_g) 0% 50%,var(--_g) 50% 50%,var(--_g) 100% 50%;background-size:33.3333333333% 100%;animation:_ngcontent-%COMP%_l7 1s infinite linear}@keyframes _ngcontent-%COMP%_l7{33%{background-size:33.3333333333% 0%,33.3333333333% 100%,33.3333333333% 100%}50%{background-size:33.3333333333% 100%,33.3333333333% 0%,33.3333333333% 100%}66%{background-size:33.3333333333% 100%,33.3333333333% 100%,33.3333333333% 0%}}.e-btn_dark[_ngcontent-%COMP%] .dots-loader[_ngcontent-%COMP%]{--_g: no-repeat radial-gradient(circle closest-side,var(--btn-text-light) 90%,#0000)}.e-btn_dark-revert[_ngcontent-%COMP%] .dots-loader[_ngcontent-%COMP%]{--_g: no-repeat radial-gradient(circle closest-side,var(--accent-color) 90%,#0000)}.use-template-btn.is-page[_ngcontent-%COMP%]{margin-left:1.5rem}@media(max-width:569px){.use-template-btn.is-page[_ngcontent-%COMP%]{margin-left:0}}'],changeDetection:0})}}return t})();var ko=["toolsContainer"],So=["confirmRemovalTemp"];function To(t,c){t&1&&(k(),o(0,"svg",12),f(1,"use",14),r())}function Eo(t,c){if(t&1){let e=v();o(0,"button",15),u("click",function(n){_(e);let a=l(2),C=a.$implicit,S=a.$index,q=l(2);return g(q.confirmRemoveQuestPhoto(n,C.id,S))}),k(),o(1,"svg",16),f(2,"use",17),r()()}}function Do(t,c){if(t&1){let e=v();o(0,"figure",8)(1,"div",9),u("click",function(){_(e);let n=l().$index,a=l(2);return g(a.openGalleryFs(n))}),o(2,"div",10)(3,"img",11,3),u("load",function(){_(e);let n=B(4),a=l().$implicit,C=l(2);return g(C.getPhotoDimensions(a,n))}),r(),h(5,To,2,0,":svg:svg",12),r()(),h(6,Eo,3,0,"button",13),w(7,"async"),r()}if(t&2){let e=l().$implicit,i=l(2);s(),ke("data-size",e.questImageDimensions),s(2),m("src",Ot(e.questImageUrl),Oe)("alt",i.getAltText(e.creator.name)),s(2),b(e.isVideo&&e.questImageUrl?5:-1),s(),b(P(7,6,i.userInfoState).id===e.creator.id?6:-1)}}function Fo(t,c){if(t&1&&(o(0,"div",7),h(1,Do,8,8,"figure",8),r()),t&2){let e=c.$implicit;s(),b(e.questImageUrl?1:-1)}}function qo(t,c){if(t&1){let e=v();o(0,"ngx-slick-carousel",6,2),u("afterChange",function(n){_(e);let a=l();return g(a.afterChange(n))})("init",function(n){_(e);let a=l();return g(a.onInitCarousel(n))})("click",function(){_(e);let n=l();return g(n.openGallery())}),N(2,Fo,2,1,"div",7,ce().slideTrackBy,!0),r()}if(t&2){let e=l();
1m("config",e.slideConfig),s(2),G(e.images)}}function Io(t,c){if(t&1){let e=v();o(0,"div",18)(1,"h4",19),d(2,"Remove photo"),r(),o(3,"button",20),u("click",function(){_(e);let n=l();return g(n.closeModal())}),r()(),o(4,"div",21)(5,"p"),d(6,"Are you sure you would like to remove this photo"),r()(),o(7,"div",22)(8,"div",23)(9,"button",24),u("click",function(){_(e);let n=l();return g(n.closeModal())}),o(10,"span"),d(11,"No"),r()(),o(12,"button",25),u("click",function(){_(e);let n=l();return g(n.removePhoto())}),o(13,"span"),d(14,"Yes"),r()()()()}}var Ao=1.2,Hi=(()=>{class t{constructor(e,i,n,a,C){this.store=e,this.questService=i,this.cdr=n,this.notifier=a,this.modalService=C,this.isLoaded=!1,this.photoDimensions="2048x2048",this.isCurrentUserAdminOrOwner=!1,this.photoToDelete=null,this.userInfoState=this.store.select("userInfo")}ngOnInit(){this.slideConfig={slidesToShow:Ao,infinite:!1,dots:!1,arrows:!0,prevArrow:'<button class="c-gallery__tools__arrow-left h-btn-reset" type="button" aria-label="Previous"><svg class="icon icon-arrow-right show-left"><use xlink:href="#icon-arrow-right"></use></svg></button>',nextArrow:'<button class="c-gallery__tools__arrow-right h-btn-reset" type="button" aria-label="Next"><svg class="icon icon-arrow-right"><use xlink:href="#icon-arrow-right"></use></svg></button>',appendArrows:this.toolsContainer.nativeElement,centerMode:!1,swipeToSlide:!0,draggable:!1,touchThreshold:10,customPaging:function(e,i){return`<span>${e.$slides.length} ${e.$slides.length===1?"photo":"photos"}</span>`}}}ngAfterViewChecked(){this.cdr.detectChanges()}ngOnChanges(){this.images=[],setTimeout(()=>{this.images=[...this.imagesArr],this.images.map((e,i)=>{e.isVideo=e.questVideoUrl&&e.questVideoUrl!==""&&e.questVideoUrl!=="null",i===this.images.length-1&&(this.isLoaded=!0)})})}afterChange(e){}openGallery(){}onInitCarousel(e){}openGalleryFs(e){let i=this.modalService.open(Di,{backdropClass:"carousel-bg",windowClass:"carousel-modal"});i.componentInstance.assets=this.images,i.componentInstance.focusedIndex=e}getAltText(e){return this.altImageText=e+"s photo"}closeModal(){this.modalService.dismissAll(),this.photoToDelete=null}confirmRemoveQuestPhoto(e,i,n){this.photoToDelete={index:n,photoId:i},this.modalService.open(this.confirmRemovalTemp,{windowClass:"confirm-modal"})}removePhoto(){this.questService.removeQuestPhoto(this.photoToDelete.photoId).subscribe(()=>{this.images.splice(this.photoToDelete.index,1),this.notifier.notify("success","Image removed"),this.photoToDelete=null,this.cdr.detectChanges()},()=>{this.notifier.notify("error","Error removing image")})}getPhotoDimensions(e,i){this.photoDimensions=i.naturalWidth+"x"+i.naturalHeight,e.questImageDimensions=this.photoDimensions}slideTrackBy(e,i){return i.id}static{this.\u0275fac=function(i){return new(i||t)(p(L),p(Q),p(U),p($),p(Z))}}static{this.\u0275cmp=A({type:t,selectors:[["app-quest-carousel"]],viewQuery:function(i,n){if(i&1&&R(ko,7)(So,5,F),i&2){let a;M(a=y())&&(n.toolsContainer=a.first),M(a=y())&&(n.confirmRemovalTemp=a.first)}},inputs:{imagesArr:"imagesArr",isCurrentUserAdminOrOwner:"isCurrentUserAdminOrOwner"},standalone:!1,features:[ne],decls:5,vars:1,consts:[["toolsContainer",""],["confirmRemovalTemp",""],["slickModal","slick-carousel"],["img",""],["id","galleryKey","itemscope","","itemtype","http://schema.org/ImageGallery",1,"c-gallery","my-gallery","carousel",3,"config"],[1,"c-gallery__tools"],["id","galleryKey","itemscope","","itemtype","http://schema.org/ImageGallery",1,"c-gallery","my-gallery","carousel",3,"afterChange","init","click","config"],[1,"c-gallery__item"],["itemprop","associatedMedia","itemscope","","itemtype","http://schema.org/ImageObject","ngxSlickItem","",1,"slide"],["itemprop","contentUrl",1,"c-gallery__item",3,"click"],[1,"c-gallery__item__thumb"],["itemprop","thumbnail",3,"load","alt","src"],[1,"icon","icon-play-btn"],["type","button",1,"c-gallery__item__delete","h-btn-reset"],[0,"xlink","href","#icon-play-btn"],["type","button",1,"c-gallery__item__delete","h-btn-reset",3,"click"],[1,"icon","icon-trash"],[0,"xlink","href","#icon-trash"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body"],[1,"modal-footer"],[1,"d-flex","d-flex__justify__space-between","w-100"],["type","button",1,"c-btn","c-btn_md","c-btn_dark-alternate",3,"click"],["type","button",1,"c-btn","c-btn_md","c-btn_dark",3,"click"]],template:function(i,n){i&1&&(h(0,qo,4,1,"ngx-slick-carousel",4),f(1,"div",5,0),E(3,Io,15,0,"ng-template",null,1,O)),i&2&&b(n.isLoaded?0:-1)},dependencies:[Ci,vi,kt],styles:["[_nghost-%COMP%]{display:block}vg-player[_ngcontent-%COMP%] video[_ngcontent-%COMP%]{width:100%}.c-gallery[_ngcontent-%COMP%]{margin-left:-10px;margin-right:-10px}.c-gallery__item[_ngcontent-%COMP%]{display:block;position:relative}.c-gallery__item__thumb[_ngcontent-%COMP%]{position:relative}@media(min-width:800px){.c-gallery__item__thumb[_ngcontent-%COMP%]{height:300px}.c-gallery__item__thumb[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}}@media(min-width:0px)and (max-width:799px){.c-gallery__item__thumb[_ngcontent-%COMP%]{height:220px}.c-gallery__item__thumb[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}}.c-gallery__item__thumb[_ngcontent-%COMP%] .icon-play-btn[_ngcontent-%COMP%]{width:50px;height:50px;position:absolute;top:calc(50% - 25px);left:calc(50% - 25px);cursor:pointer}.c-gallery__item__inner[_ngcontent-%COMP%]{display:block;overflow:hidden;border-radius:4px;text-decoration:none!important;color:inherit}.c-gallery__item__figure[_ngcontent-%COMP%]{display:block;width:100%;margin:0;padding:0}
1.c-gallery__item__delete[_ngcontent-%COMP%]{position:relative;right:-2px;bottom:32px;background:#ffffff80;display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;font-size:16px;z-index:2}.c-gallery[_ngcontent-%COMP%] .slide[_ngcontent-%COMP%]{display:block;width:auto;margin:0}.c-gallery[_ngcontent-%COMP%] .slick-slide[_ngcontent-%COMP%]{padding-left:10px;padding-right:10px}.c-gallery[_ngcontent-%COMP%] .slick-dots[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;padding:10px 5px 0;justify-content:center;list-style-type:none;margin-bottom:0}.c-gallery[_ngcontent-%COMP%] .slick-dots[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:none}.c-gallery[_ngcontent-%COMP%] .slick-dots[_ngcontent-%COMP%] li.slick-active[_ngcontent-%COMP%]{display:inline-flex}.c-gallery[_ngcontent-%COMP%] .slick-track[_ngcontent-%COMP%]{margin:0}.c-gallery[_ngcontent-%COMP%] figcaption[_ngcontent-%COMP%]{display:none}"],changeDetection:0})}}return t})();var Vo=["fundraiseModal"],Ro=["startQuestTeamModal"],Uo=["backFundraiserModal"],Lo=["startQuestMultiTeamModal"],Qo=["confirmRepeatTemplate"],jo=["supportQuestConfTemp"],zo=["joinQuestConfTemp"],Ho=()=>({showBorder:!0}),$o=()=>({showBorder:!1}),Jo=()=>({width:"auto"}),Wo=t=>({"mb-0 w-100":t});function Yo(t,c){}function Xo(t,c){}function Zo(t,c){}function Ko(t,c){}function er(t,c){}function tr(t,c){}function ir(t,c){if(t&1&&f(0,"app-group-description",27),t&2){let e=l();m("groupInfo",e.data)("mode","wrapped")}}function nr(t,c){if(t&1){let e=v();o(0,"div",44)(1,"button",45),u("click",function(){_(e);let n=l(2);return g(n.openLogActivityModal())}),k(),o(2,"svg",46),f(3,"use",47),r(),I(),o(4,"span"),d(5,"POST"),r()()()}}function or(t,c){if(t&1){let e=v();o(0,"div",28)(1,"div",29)(2,"div",30)(3,"ul",31)(4,"li",32)(5,"app-profile-avatar",33),w(6,"brandDisplayName"),w(7,"brandDisplayName"),w(8,"brandDisplayName"),u("click",function(){_(e);let n=l();return g(n.firstAvatarClick())}),r(),o(9,"span",34),u("click",function(){_(e);let n=l();return g(n.firstAvatarClick())}),d(10),w(11,"brandDisplayName"),w(12,"brandDisplayName"),r()()()(),o(13,"div",35)(14,"div",36)(15,"div",37)(16,"app-profile-avatar",33),w(17,"brandDisplayName"),w(18,"brandDisplayName"),w(19,"brandDisplayName"),u("click",function(){_(e);let n=l();return g(n.firstAvatarClick())}),r(),o(20,"div")(21,"div")(22,"span",34),u("click",function(){_(e);let n=l();return g(n.firstAvatarClick())}),d(23),w(24,"brandDisplayName"),w(25,"brandDisplayName"),r()(),f(26,"ul",31),r()(),o(27,"div",38)(28,"div",39)(29,"span",40),u("click",function(){_(e);let n=l();return g(n.openShareModal())}),k(),o(30,"svg",41),f(31,"use",42),r()()()()()()(),I(),o(32,"div",43),h(33,nr,6,0,"div",44),r()()}if(t&2){let e=l();s(5),m("avatar",e.data.user==null?null:e.data.user.profilePictureURL)("firstName",e.data.user.brand&&P(6,14,e.data.user.brand)?P(7,16,e.data.user.brand):e.data.user.firstName)("isBrand",e.isOrganizationIdentity(e.data==null||e.data.user==null?null:e.data.user.brand,e.data==null||e.data.user==null?null:e.data.user.isUserBrand))("lastName",e.data.user.brand&&P(8,18,e.data.user.brand)?"":e.data.user.lastName)("userName",(e.data==null||e.data.user==null?null:e.data.user.firstName)+" "+(e.data==null||e.data.user==null?null:e.data.user.lastName)),s(5),T(e.data.user.brand&&P(11,20,e.data.user.brand)?P(12,22,e.data.user.brand):(e.data==null||e.data.user==null?null:e.data.user.firstName)+" "+(e.data==null||e.data.user==null?null:e.data.user.lastName)),s(6),m("avatar",e.data.user==null?null:e.data.user.profilePictureURL)("firstName",e.data.user.brand&&P(17,24,e.data.user.brand)?P(18,26,e.data.user.brand):e.data.user.firstName)("isBrand",e.isOrganizationIdentity(e.data==null||e.data.user==null?null:e.data.user.brand,e.data==null||e.data.user==null?null:e.data.user.isUserBrand))("lastName",e.data.user.brand&&P(19,28,e.data.user.brand)?"":e.data.user.lastName)("userName",(e.data==null||e.data.user==null?null:e.data.user.firstName)+" "+(e.data==null||e.data.user==null?null:e.data.user.lastName)),s(7),T(e.data.user.brand&&P(24,30,e.data.user.brand)?P(25,32,e.data.user.brand):(e.data==null||e.data.user==null?null:e.data.user.firstName)+" "+(e.data==null||e.data.user==null?null:e.data.user.lastName)),s(9),m("ngStyle",oe(34,Jo)),s(),b(e.showLogActivityButton()?33:-1)}}function rr(t,c){t&1&&f(0,"div",50)}function ar(t,c){if(t&1&&(o(0,"div",48),f(1,"app-group-members",49,16),h(3,rr,1,0,"div",50),r()),t&2){let e=l().showBorder,i=l();s(),m("allowEditQuest",i.editableQuest),s(2),b(e?3:-1)}}function sr(t,c){if(t&1&&h(0,ar,4,2,"div",48),t&2){let e=l();b((e.members==null?null:e.members.length)>0?0:-1)}}function lr(t,c){t&1&&(o(0,"div",51),d(1,"Teams"),r())}function cr(t,c){t&1&&(o(0,"div",51),d(1,"Members"),r(),o(2,"div",52),d(3,"Group members will be listed here as your community grows."),r(),f(4,"app-group-members",53,16)),t&2&&(s(4),m("draftMode",!0))}
1function dr(t,c){if(t&1&&f(0,"app-quest-carousel",63),t&2){let e=l(2);m("isCurrentUserAdminOrOwner",e.isCurrentUserAdminOrOwner)("imagesArr",e.questImages)}}function mr(t,c){if(t&1){let e=v();o(0,"div",66),u("click",function(){_(e);let n=l(2),a=B(44);return g(n.openModal(a))}),k(),o(1,"svg",67),f(2,"use",68),r(),I(),f(3,"div",69),r()}}function pr(t,c){if(t&1){let e=v();o(0,"div",54)(1,"div",55)(2,"div",56)(3,"h3",57),d(4),r(),o(5,"div",58)(6,"button",59),u("click",function(){_(e);let n=l(),a=B(44);return g(n.openModal(a))}),k(),o(7,"svg",60),f(8,"use",61),r()()()()(),I(),o(9,"div",62),h(10,dr,1,2,"app-quest-carousel",63),o(11,"div",64),h(12,mr,4,0,"div",65),r()()()}if(t&2){let e=c.galleryClass,i=l();s(4),z("Gallery\xA0",i.questImages.length>0?"("+i.questImages.length+")":""),s(5),m("id",e),s(),b(i.questImages.length>0?10:-1),s(2),b(i.questImages.length===0?12:-1)}}function ur(t,c){t&1&&(o(0,"div",51),d(1,"Gallery"),r(),o(2,"div",52),d(3,"This gallery will showcase activities and posts from your members."),r(),o(4,"div",70),k(),o(5,"svg",67),f(6,"use",68),r()())}function _r(t,c){if(t&1){let e=v();o(0,"div",71)(1,"h4",72),d(2),r(),o(3,"button",73),u("click",function(){_(e);let n=l();return g(n.closeModal())}),r()()}if(t&2){let e=l();s(2),T(e.fundraiseModalAction==="edit"?"Edit Fundraiser":"Start Fundraiser")}}function gr(t,c){if(t&1){let e=v();o(0,"div",71)(1,"h4",72),d(2,"Let's do this"),r(),o(3,"button",73),u("click",function(){_(e);let n=l();return g(n.closeTeamModal())}),r()(),f(4,"div",74)}}function fr(t,c){if(t&1){let e=v();o(0,"div",71)(1,"button",73),u("click",function(){_(e);let n=l();return g(n.closeModal())}),r()()}}function hr(t,c){if(t&1){let e=v();o(0,"div",71)(1,"h4",72),d(2,"Let's do this"),r(),o(3,"button",73),u("click",function(){_(e);let n=l();return g(n.closeTeamModal())}),r()(),f(4,"div",75)}}function br(t,c){if(t&1){let e=v();o(0,"div",71)(1,"h4",72),d(2,"Repeat Quest"),r(),o(3,"button",73),u("click",function(){_(e);let n=l();return g(n.closeModal())}),r()(),o(4,"div",75)(5,"p"),d(6,"This action will repeat the Quest. Do you wish to proceed?"),r()(),o(7,"div",76)(8,"div",77)(9,"button",78),u("click",function(){_(e);let n=l();return g(n.closeModal())}),o(10,"span"),d(11,"No"),r()(),o(12,"button",79),u("click",function(){_(e);let n=l();return g(n.repeatQuest())}),o(13,"span"),d(14,"Yes"),r()()()()}}function Cr(t,c){if(t&1){let e=v();o(0,"div",71)(1,"h4",72),d(2,"Let's go!"),r(),o(3,"button",73),u("click",function(){_(e);let n=l();return g(n.closeModal())}),r()(),o(4,"div",75)(5,"p"),d(6,"Ready to help? Click 'Support' to proceed. If you're not ready, click 'Cancel'."),r()(),o(7,"div",76)(8,"div",77)(9,"button",80),u("click",function(){_(e);let n=l();return g(n.closeModal())}),o(10,"span"),d(11,"Cancel"),r()(),o(12,"button",81),u("click",function(){_(e);let n=l();return g(n.doQuest())}),o(13,"span"),d(14,"Support"),r()()()()}if(t&2){let e=l();s(9),m("disabled",e.isProgress),s(3),m("disabled",e.isProgress)}}function vr(t,c){if(t&1){let e=v();o(0,"div",71)(1,"h4",72),d(2,"Let's go!"),r(),o(3,"button",73),u("click",function(){_(e);let n=l();return g(n.closeModal())}),r()(),o(4,"div",75)(5,"p"),d(6,"Ready to unite? Click 'Join' to proceed. If you're not ready, click 'Cancel'."),r()(),o(7,"div",76)(8,"div",77)(9,"button",80),u("click",function(){_(e);let n=l();return g(n.closeModal())}),o(10,"span"),d(11,"Cancel"),r()(),o(12,"button",81),u("click",function(){_(e);let n=l();return g(n.doJoinTeam())}),o(13,"span"),d(14,"Join"),r()()()()}if(t&2){let e=l();s(9),m("disabled",e.isProgress),s(3),m("disabled",e.isProgress)}}function xr(t,c){}function wr(t,c){if(t&1&&f(0,"app-group-options",82),t&2){let e=c.isInMainCont;m("ngClass",x(1,Wo,e))}}var $i=(()=>{class t{constructor(e,i,n,a,C,S,q,j,Me,it){this.store=e,this.route=i,this.questService=n,this.sanitizer=a,this.router=C,this.isServer=S,this.modalService=q,this.activeModal=j,this.notifier=Me,this.myQuestsSevice=it,this.isOrganizationIdentity=Ke,this.destroyed$=new Fe(1),this.isProgressApiCalled=!1,this.isMegaQuestApiCalled=!1,this.fundraisingLink=null,this.editableQuest=!1,this.allowCheckMilestones=!1,this.hasCurrentUserQuestActivity=!1,this.team=null,this.hasUrlUserQuestActivity=!1,this.megaQuests=[],this.teamIdIsNotDefault=!1,this.isCurrentUserQuestDoer=!1,this.isMegaQuestHasFundraising=!1,this.parentTeamQuests=[],this.isDoerHasFundraisingLink=!1,this.fundraiseModalAction="start",this.modalReference=null,this.isCurrentUserAdminOrOwner=!1,this.fundraisingButtonPresent=!1,this.fundraisingButtonForcedHidden=!1,this.isCurrentUserHasFundraisingLink=!1,this.teams=[],this.isProgress=!1,this.isCurrentUsersRepresentation=!1,this.isOpenLogActivityCalled=!1,this.isLogActivityModalOpen=!1,this.userVersionExists=!1,this.isImagesApiCalled=!1,this.environment=X,this.isCountdownTimerChecked=!1,this.countdownTimer={days:0,hours:0,minutes:0,seconds:0,timeDiff:0},this.loggedUserTeamId=0,this.members=[],this.membersCount=0,this.questImages=[],this.isUserQuestMember=!1,this.userInfoState=this.store.select("userInfo")}ngOnInit(){this.userInfoState.pipe(ue(this.destroyed$)).subscribe(e=>{this.currentUser=e,this.isCurrentUsersRepresentation=this.currentUser&&this.currentUser.id===this.userId}),this.status=se.Public,this.store.select("group").pipe(J(),ue(this.destroyed$)).subscribe(e=>{console.log("189",e),this.groupId=e.selectedGroupId,this.data=e.selectedGroupDetail,this.status=this.buildViewerDetailsStatus(),this.editableQuest=this.data?.creatorId===this.currentUser?.id,this.membersCount=e.membersCount||0,this.members=[...e.allMembers]}
1),this.route.snapshot.queryParams.gallery&&this.waitGallery()}ngAfterViewInit(){this.questSubscription=this.questService.getUpdateForQuest().subscribe(e=>{switch(e){case"gallery":this.getQuestImages();break;case"doQuest":this.doQuest();break;default:break}})}ngOnDestroy(){this.destroyed$.next(!0),this.destroyed$.complete()}waitGallery(){return ut(this,null,function*(){if(window.innerWidth<768){for(;!document.getElementById("gallery-key-mobile");)yield new Promise(e=>setTimeout(e,500));document.getElementById("gallery-key-mobile").scrollIntoView({behavior:"smooth",block:"start"})}else{for(;!document.getElementById("gallery-key-web");)yield new Promise(e=>setTimeout(e,500));document.getElementById("gallery-key-web").scrollIntoView({behavior:"smooth",block:"start"})}})}prepareQuestVideoId(e){let i=fi(e);return i?this.sanitizer.bypassSecurityTrustResourceUrl(`https://www.youtube.com/embed/${i}`):null}firstAvatarClick(){let e=Xe(this.data.user,this.currentUser);e&&this.router.navigate(e)}showLogActivityButton(){return this.data&&this.currentUser&&this.currentUser.userPermissions&&this.currentUser.userPermissions.log_activity}doesMegaQuestHasFundraising(){this.isMegaQuestHasFundraising=!1,this.parentTeamQuests&&this.parentTeamQuests.length>0&&this.parentTeamQuests.forEach(e=>{if(e.fundraising){this.isMegaQuestHasFundraising=!0;return}})}openEditFundraiserModal(){this.fundraiseModalMode="fundraise",this.fundraiseModalAction="edit",this.openModal(this.fundraiseModalElem)}shouldShowFundraisingButton(){let e=!1;return this.fundraisingButtonPresent&&!this.fundraisingButtonForcedHidden&&(e=!0),this.iAmAnonymous()&&!this.fundraisingButtonForcedHidden&&(e=!0),e}openStartFundraiserModal(e){if(!this.isCurrentUserAdminOrOwner){if(e==="fundraise"&&this.shouldDisableFundraisingButton())return!1;
1this.teamsWithoutFundraising||e==="fundraise"&&this.isQuestInTeamMode()&&this.isDoerHasFundraisingLink?(this.openModal(this.startQuestTeamModal),this.store.dispatch(new ii(this.team?this.team.teamId:null))):(this.fundraiseModalMode=e,this.fundraiseModalAction="start",this.openModal(e==="fundraise"?this.fundraiseModalElem:this.backFundraiserModal))}}buildViewerDetailsStatus(){let e=this.isQuestInSupportMode()||this.isQuestInTeamMode();return!this.isCurrentUsersRepresentation&&!e?se.Public:se.Public}openShareModal(){this.modalReference=this.modalService.open(tt,{windowClass:"no-overflow"}),this.modalReference.componentInstance.groupId=this.groupId}openLogActivityModal(e){this.isServer||this.store.dispatch(new ri(!0,e))}openModal(e){if(!this.isServer){if(!this.currentUser||this.currentUser&&!this.currentUser.id)return this.modalService.open(de,{windowClass:"no-overflow small-login-modal",backdrop:"static"}),!1;this.modalReference=this.modalService.open(e,{windowClass:"no-overflow"})}}closeModal(){this.modalReference&&this.modalReference.close(),this.modalReference=null}shouldDisableFundraisingButton(){return this.isCurrentUserHasFundraisingLink||this.isCurrentUserAdminOrOwner||this.isCurrentUserInQuestTeam()&&this.isDoersTeam()&&this.isDoerHasFundraisingLink||this.isCurrentUserInQuestTeam()&&this.isCreatorsTeam()}isDoersTeam(){return this.isQuestInTeamMode()&&this.team}isCreatorsTeam(){return this.isQuestInTeamMode()&&this.isDoerIsCreator()&&this.isDoerHasFundraisingLink}getCurrentUserTeam(){return this.currentUser&&this.teams&&this.teams.length?this.teams.find(e=>e.memberIds.includes(this.currentUser.id)):null}canCurrentUserEditMilestones(){return this.editableQuest}isCurrentUserInQuestTeam(){return this.isQuestInTeamMode()&&!!this.getCurrentUserTeam()&&this.hasCurrentUserQuestActivity}isParentQuest(){return this.data}isModeSupportOnly(){return this.viewerActivityTracker&&this.viewerActivityTracker.isModeSupportOnly()}isModePaceYourself(){return this.viewerActivityTracker&&this.viewerActivityTracker.isModePaceYourself()}isModeTeam(){return this.viewerActivityTracker&&this.viewerActivityTracker.isModeTeam()}isStatusComplete(){return this.viewerActivityTracker&&this.viewerActivityTracker.isStatusComplete()}isQuestInTeamMode(){return!1}isQuestInSupportMode(){return!1}isStatusInProgress(){return this.viewerActivityTracker&&this.viewerActivityTracker.isStatusInProgress()}isDoerIsSimpleDoer(){return!1}isDoerIsCreator(){return this.userId===this.data.creatorId}iAmCreator(){return this.currentUser&&this.currentUser.id===this.data.creatorId}iAmAnonymous(){return!this.currentUser||this.currentUser.id===null}iAmDoer(){return this.currentUser&&this.currentUser.id===this.userId}isQuestInMultiTeamMode(){return!1}isCurrentUserIsTeamCreator(){return this.currentUser&&this.team?this.team.creatorId===this.currentUser.id:!1}isUserHasAccessThisParentQuestTeam(){return!1}isMegaQuest(){return!1}getCountdownDetail(){let e=this.countdownTimer.timeDiff;var i=Math.floor(e/86400);e-=i*86400,this.countdownTimer.days=Math.floor(i);var n=Math.floor(e/3600)%24;e-=n*3600,this.countdownTimer.hours=Math.floor(n);var a=Math.floor(e/60)%60;e-=a*60,this.countdownTimer.minutes=Math.floor(a);var C=e%60;this.countdownTimer.seconds=Math.floor(C)}getFormattedValue(e){let i="00"+e;return i.substring(i.length-2,i.length)}checkIfCurrentUserQuestDoer(){this.currentUser&&this.currentUser.id&&(this.isCurrentUserQuestDoer=this.data&&this.data.user&&this.data.user.id===this.currentUser.id?!0:this.isUserQuestMember),this.members?.length>0&&this.data&&this.data.user&&this.currentUser&&this.currentUser.id&&this.isCurrentUserQuestDoer&&setTimeout(()=>{this.store.select("quest").pipe(D(1)).subscribe(e=>{e.actionAfterLoad==="log-activity"&&!this.isLogActivityModalOpen&&!this.isOpenLogActivityCalled&&(this.isOpenLogActivityCalled=!0,this.isLogActivityModalOpen=!0,this.openLogActivityModal(e.logActivityPreSelectedId),this.store.dispatch(new ai(null)))})},1e3)}startFundraiser(e){}doQuest(){this.isProgress=!0}afterDoQuest(e){this.closeModal()}checkIfUserIsMember(){}closeTeamModal(){this.closeModal(),this.store.dispatch(new ni)}backFundraiser(){this.closeModal(),this.router.navigate(["/donate",this.fundraisingLink.quest.id,this.fundraisingLink.doer.id])}repeatQuest(){}doJoinTeam(){}addGalleryPhoto(e){e.selectedArea==="questGalleryPhoto"&&this.addImageToCarousel(e.croppedImage)}
1addImageToCarousel(e){let i=[...e,...this.questImages];setTimeout(()=>{this.store.dispatch(new oi(i))})}getQuestImages(){}getStaticQuestImages(){}static{this.\u0275fac=function(i){return new(i||t)(p(L),p(K),p(Q),p(Ge),p(be),p("isServer"),p(Z),p(ae),p($),p(et))}}static{this.\u0275cmp=A({type:t,selectors:[["app-group-detail-page"]],viewQuery:function(i,n){if(i&1&&R(Vo,5,F)(Ro,5,F)(Uo,5,F)(Lo,5,F)(Qo,5,F)(jo,5,F)(zo,5,F),i&2){let a;M(a=y())&&(n.fundraiseModalElem=a.first),M(a=y())&&(n.startQuestTeamModal=a.first),M(a=y())&&(n.backFundraiserModal=a.first),M(a=y())&&(n.startQuestMultiTeamModal=a.first),M(a=y())&&(n.confirmRepeatTemplate=a.first),M(a=y())&&(n.supportQuestConfTemp=a.first),M(a=y())&&(n.joinQuestConfTemp=a.first)}},standalone:!1,decls:47,vars:10,consts:[["descriptionVideoTemp",""],["breadcrumbCreatorSecTemp",""],["memberListTemp",""],["teamsDraftTemp",""],["membersDraftTemp",""],["galleryTemplate",""],["galleryDraftTemp",""],["fundraiseModal",""],["startQuestTeamModal",""],["backFundraiserModal",""],["startQuestMultiTeamModal",""],["confirmRepeatTemplate",""],["supportQuestConfTemp",""],["joinQuestConfTemp",""],["cropperModal",""],["pageOptionsTemp",""],["appGroupMembers",""],[1,"c-quest-tabs__tab","d-flex"],[1,"details-tab__left"],[1,"c-quest-detail__layout__content"],[1,"quest-info-box"],[1,"desktop-only"],[3,"ngTemplateOutlet"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"details-tab__right"],[1,"mobile-only","mobile-only__breadcrumb-sec"],[1,"border-separation-top",2,"padding-bottom","1px"],["id","skip-nav-target",3,"groupInfo","mode"],[1,"d-flex","breadcrumb-creator-section","d-flex-align_center"],[1,"breadcrumb-creator-section__left"],[1,"creator-section","desktop-only"],[1,"c-quest-detail__layout__creator-cont"],[1,"no-dot","created-by-parent"],[1,"c-avatar","is-creator",3,"click","avatar","firstName","isBrand","lastName","userName"],[3,"click"],[1,"creator-section","mobile-only"],[1,"d-flex","d-flex__justify__space-between"],[1,"creator-section__left","d-flex","d-flex-align_center"],[1,"creator-section__right"],[1,"share-item"],["title","Share",1,"e-btn","e-btn_dark","mw-auto",3,"click"],[1,"icon","icon-bi-share",2,"margin-right","0"],[0,"xlink","href","#icon-bi-share"],[1,"breadcrumb-creator-section__right",3,"ngStyle"],[1,"c-quest-detail__action-cta-cont"],["type","button",1,"e-btn","e-btn_dark-revert","w-100p",3,"click"],[1,"icon","icon-plus-slim"],[0,"xlink","href","#icon-plus-slim"],[1,"c-quest__article","c-quest__members-list"],[3,"allowEditQuest"],[1,"border-separation-top"],[1,"label"],[1,"para"],[3,"draftMode"],[1,"c-quest__article","c-quest__article__gallery"],[1,"c-quest__article__header"],[1,"c-quest__article__header__headline","d-flex"],[1,"c-quest__article__header__headline__title"],[1,"c-quest__article__header__headline__btn-cont"],[1,"e-btn","icon-only",3,"click"],[1,"icon","icon-camera-plus"],[0,"xlink","href","#icon-camera-plus"],[3,"id"],[3,"isCurrentUserAdminOrOwner","imagesArr"],[1,"c-quest__article__inner","gallery"],[1,"c-gallery__empty"],[1,"c-gallery__empty",3,"click"],[1,"icon","icon-picture"],[0,"xlink","href","#icon-picture"],[1,"c-gallery__empty__overwrap"],[1,"gallery-demo-draft","mt-20","mb-20"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body",2,"padding","0 20px"],[1,"modal-body"],[1,"modal-footer"],[1,"d-flex","d-flex__justify__space-between","w-100"],["type","button",1,"c-btn","c-btn_md","c-btn_dark-alternate",3,"click"],["type","button",1,"c-btn","c-btn_md","c-btn_dark",3,"click"],["type","button",1,"c-btn","c-btn_md","c-btn_dark-alternate",3,"click","disabled"],["type","button",1,"c-btn","c-btn_md","c-btn_dark",3,"click","disabled"],[1,"c-quest__row",3,"ngClass"]],template:function(i,n){if(i&1&&(o(0,"div",17)(1,"div",18)(2,"div",19)(3,"div",20)(4,"div",21),E(5,Yo,0,0,"ng-template",22),r(),E(6,Xo,0,0,"ng-template",22),r(),E(7,Zo,0,0,"ng-template",23),r()(),o(8,"div",24)(9,"div",25),E(10,Ko,0,0,"ng-template",22),r(),E(11,er,0,0,"ng-template",22),vt(12),f(13,"div",26),E(14,tr,0,0,"ng-template",23),xt(),r()(),E(15,ir,1,2,"ng-template",null,0,O)(17,or,34,35,"ng-template",null,1,O)(19,sr,1,1,"ng-template",null,2,O)(21,lr,2,0,"ng-template",null,3,O)(23,cr,6,1,"ng-template",null,4,O)(25,pr,13,4,"ng-template",null,5,O)(27,ur,7,0,"ng-template",null,6,O)(29,_r,4,1,"ng-template",null,7,O)(31,gr,5,0,"ng-template",null,8,O)(33,fr,2,0,"ng-template",null,9,O)(35,hr,5,0,"ng-template",null,10,O)(37,br,15,0,"ng-template",null,11,O)(39,Cr,15,2,"ng-template",null,12,O)(41,vr,15,2,"ng-template",null,13,O)(43,xr,0,0,"ng-template",null,14,O)(45,wr,1,3,"ng-template",null,15,O)),i&2){let a=B(16),C=B(18),S=B(20),q=B(46);s(5),m("ngTemplateOutlet",C),s(),m("ngTemplateOutlet",a),s(),m("ngTemplateOutlet",S)("ngTemplateOutletContext",oe(8,Ho)),s(3),m("ngTemplateOutlet",C),s(),m("ngTemplateOutlet",q),s(3),m("ngTemplateOutlet",S)("ngTemplateOutletContext",oe(9,$o))}},dependencies:[H,re,ge,ve,ji,Bi,zi,Hi,Ze],styles:['[_ngcontent-%COMP%]:root{--accent-color: #008297;--accent-color-rgb: 0 130 151;--accent-dark-color: #295967;--accent-bg-light-color: #339BAC;--btn-text-color: #2e3638;--theme-text-dark: #2e3638;--bg-text-color: #2e3638;--theme-text-light: #ffffff;--btn-text-light: #ffffff;--quest-content-bg: #FFFFFF;--quest-highlight-bg: #E5EAED;--white-section-bg: #ffffff;--comment-blue-bg: #E5F2F5;--quest-header-bg: #008297;--lighter-btn-bg: #E5F2F5;--quest-detail-nav: #008297;--quest-detail-nav-dark: #295967;--site-header: #ffffff;--site-header-text: #2e3638;--site-header-highlight: #008297;--site-header-highlight-light: #008297;--site-header-highlight-text: #ffffff;--site-header-highlight-text-invert: #ffffff;--site-header-box-shadow: #00000080;--site-header-badge-bg: #E5F2F5;--site-header-badge-text: #008297;--avatar-border: #e0e0e0;--success-bg-btn: #1D966A;--success-bg-text: #ffffff;--table-row-hover: #F2F9FA;--mission-statement-bg: #E5F2F5;--mission-statement-text: #2e3638;--bg-text-color-light: #6d787e;--bg-white-ghost: #F8F8F9;--bg-milestone: #f3f3f3;--white-bg-original: #ffffff;--modal-bg: #ffffff;--feedback-bg: #f5f7f8;--transparent-white-bg: #FFFFFF;--milestone-task-bg: #f5f7f8;--primary-bg: #f3f3f3;--primary-bg-secondary: #ffffff;--quest-detail-right: #E5EAED;--input-field-bg: #ffffff;--nav-flow-number-bg: #ffffff;--nav-flow-number-color: #000000;--flow-pages-bg: #f3f3f3;--flow-pages-section-bg: #ffffff;--tooltip-bg: #000000;--tooltip-text-color: #ffffff;--close-btn-invert: 0;--close-btn-invert-str: invert(0);--payment-block-row: #ffffff;--search-hover-bg: #f0f0f0;--progress-bar-uncovered: #ffffff;--bg-text-color-secondary: #c5c9cb;--bs-backdrop-bg-custom: #000000;--read-more-gradient: #ffffff;--read-more-btn-text: #2e3638;--dots-bg: #E5F2F5;--dots-color: #2e3638;--total-amount-color: #2e3638;--team-option-bg: #f9f9f9;--team-option-bg-dark: #ededed;--checkbox-selection-color: #ffffff;--comment-text-color: #2e3638;--table-member-bg: #F4F7F7;--table-rank-bg: #ffffff;--table-gutter-bg: #E8E9EA;--error-dark: #D00808;
1--error-dark-hover: #e61c1c;--timeline-bg: #F3F4F5;--marked-milestone-bg: #1D966A;--marked-milestone-bg-hover: #22ab79;--marked-milestone-block: #E8F4F0;--accent-color-secondary-light: #EAEEF0;--sample-primary-bg: #f3f3f3;--sample-quest-content-bg: #ffffff;--sample-bg-text-color: #2e3638;--sample-theme-bg-color: #008297;--sample-theme-bg-color-light: #339BAC;--sample-theme-text-light: #ffffff;--sample-btn-text-light: #ffffff;--sample-btn-text-color: #2e3638;--white-10: rgba(255, 255, 255, .1);--black: #000;--black-70: rgba(0, 0, 0, .7);--black-50: rgba(0, 0, 0, .5);--black-40: rgba(0, 0, 0, .4);--black-10: rgba(0, 0, 0, .1);--black-05: rgba(0, 0, 0, .05);--petrol-70: rgba(0, 81, 102, .7);--petrol-50: rgba(0, 81, 102, .5);--petrol-30: rgba(0, 81, 102, .3);--petrol-15: rgba(0, 81, 102, .05);--blue-stone-15: rgba(0,81,102, .05);--bismark-80: rgba(71,121,133,.8);--cornflowerBlue-10: rgba(36,88,102,.1);--white-70: rgba(255, 255, 255, .7);--white-50: rgba(255, 255, 255, .5);--white-30: rgba(255, 255, 255, .3);--light-blue-grey: #a6dce5;--jungle-mist: #aac9ce;--powder-blue: #b0e0e8;--shakespeare: #3fb1d1;--matisse: #1D728F;--blizzard-blue: #a6e0ec;--aquamarine-blue: #86d0e1;--hippie-blue: #609eae;--purpley-grey: #9e94a2;--ebony-clay: #1f3034;--petrol: #005166;--orient: #006a86;--cutty-sark: #516e75;--juniper: #648288;--smalt-blue: #548b97;--bali-hai: #81a8b3;--golden-fizz: #f8ec31;--amber: #FFC107;--geraldine: #ff7f7f;--cinnabar: #e83d3d;--white: #fff;--silver: #bbb;--shamrock: #2ecc71;--amazon: #347750;--puce: #cc8588;--alto: #dedede;--bermuda: #83cad9;--cornflower: #92d6e5;--bright-yellow: #fff100;--tabasco: #b41212;--casal: #295966;--outer-space: #2e3638;--dove-gray: #646464;--dusty-gray: #979797;--silver-sand: #bec1c1;--tower-gray: #d6dee1;--geyser: #d6dee1;--wild-sand: #f4f4f4;--alabaster: #f9f9f9;--anakiwa: #87ffff;--pelorous: #34a6b1;--shakespeare: #41abcb;--eastern-blue: #168cb2;--tealColor: #008297;--tealLightColor: #339BAC;--tealDarkColor: #295967;--greyDarkColor: #2e3638;--greyColor: #6d787e;--lightGreyColor: #c5c9cb;--ghostWhite: #F8F8F9;--ghostGrey: #EBECED;--paleCyan: #cce6ea;--secondary-bg: #ebebeb;--progress-bg: #f5f7f8;--tealLightBg: #E5EAED;--backgroundOptionsGray: #f5f5f5;--platinum: #A7AEB2;--grayBlueBg: #E5F2F5;--errorRed: #B73622;--warning-color: #EB7200;--orange-warning: #EB7200;--orange-warning-light: #FDF1E5;--orange: #FFB217;--orange-80: rgba(255, 178, 23, .8);--physical: #DB3900;--environmental: #4A8500;--occupational: #E20096;--mental: #018484;--friends: #905CB4;--piggybank: #AD7D00;--teal-01: rgba(41, 89, 103, .1);--teal-005: rgba(41, 89, 103, .05);--light-gold: #F2EBD9;--brown-gold: #A67B00;--border-radius-val: 5px;--borderLightGray: #C5C9CB;--silver-20: #F3F4F5;--teal-70: #4DA7B6;--success-bg: #1D966A;--success-bg-hover: #22ab79;--sinbad: #99CDD5;--btn-theme-bg: #008297;--btn-theme-bg-light-color: #339BAC;--btn-theme-text: #ffffff;--sample-btn-bg-color: #008297;--ab-offset: 0px}[_nghost-%COMP%]{display:block}@media(max-width:570px){[_nghost-%COMP%] .no-mobile-col[_ngcontent-%COMP%]{display:none}}.c-quest-top-message[_ngcontent-%COMP%]{display:block;padding:0 0 5px}.w-100p[_ngcontent-%COMP%]{width:100%;max-width:100%}.c-quest-detail__article-draft[_ngcontent-%COMP%]{position:relative;padding:40px 20px 15px;text-align:center;margin-bottom:25px;color:var(--bg-text-color-light)}.c-quest-detail__article-draft.no-web-col[_ngcontent-%COMP%]{display:none}@media(max-width:570px){.c-quest-detail__article-draft.no-web-col[_ngcontent-%COMP%]{display:block}}.c-quest-detail__article-draft[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{color:var(--bg-text-color);font-size:16px;font-family:ProximaNova-Bold}.c-quest-detail__article-draft[_ngcontent-%COMP%] .para[_ngcontent-%COMP%]{font-size:14px;color:var(--bg-text-color-light)}.c-quest-detail__article-draft[_ngcontent-%COMP%]:before{content:"";z-index:1;background-color:#fff6;position:absolute;width:100%;height:100%;top:0;left:0}.c-quest-detail__article-draft[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{z-index:2;position:relative}.c-quest-detail__article-draft__title[_ngcontent-%COMP%]{font-size:16px;color:var(--bg-text-color)}
1@media(max-width:570px){.c-quest-detail__article-draft__title[_ngcontent-%COMP%]{padding:0 20px}}.gallery-demo-draft[_ngcontent-%COMP%]{background-color:var(--white);border-radius:5px;border:solid 1px var(--lightGreyColor);width:100%;height:130px;display:flex;align-items:center;justify-content:center}.gallery-demo-draft[_ngcontent-%COMP%] .icon-picture[_ngcontent-%COMP%]{width:50px;height:50px}.countdown-timer[_ngcontent-%COMP%]{font-size:1.5rem;font-family:ProximaNova-Bold;margin-bottom:40px}.countdown-timer.ended-timer[_ngcontent-%COMP%]{opacity:.7}@media(max-width:569px){.countdown-timer[_ngcontent-%COMP%]{margin:15px 0 20px;padding:0 20px}}.countdown-timer[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:0;font-size:22px}.countdown-timer[_ngcontent-%COMP%] .last-msg[_ngcontent-%COMP%]{color:var(--accent-color);margin-top:1.6rem;text-align:center;width:100%;font-size:1.4rem}.countdown-timer__parent[_ngcontent-%COMP%]{background-color:var(--primary-bg-secondary);border-radius:5px;margin-top:1.6rem;padding:1.6rem}.countdown-timer__cont[_ngcontent-%COMP%]{display:flex;width:100%;flex-direction:row;text-align:center;justify-content:space-between}.countdown-timer__cont[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:23%;margin-right:2%;padding:1.5rem .8rem;text-transform:uppercase;border-radius:5px;border:solid 1px var(--accent-color)}.countdown-timer__cont[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{display:block}.countdown-timer__cont[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{margin-right:0}.countdown-timer__cont[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:2.3rem;line-height:2.2rem;font-family:ProximaNova-Bold}.countdown-timer__cont[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:1.2rem;line-height:1.2rem;font-weight:400}.desktop-only[_ngcontent-%COMP%]{display:block}@media(max-width:569px){.desktop-only[_ngcontent-%COMP%]{display:none}}.mobile-only[_ngcontent-%COMP%]{display:none}@media(max-width:569px){.mobile-only[_ngcontent-%COMP%]{display:block}}.mobile-only__breadcrumb-sec[_ngcontent-%COMP%]{background:var(--primary-bg-secondary);padding:20px 20px 0}.mobile-only__breadcrumb-sec[_ngcontent-%COMP%] .c-quest-detail__layout__content__highlight.mb-20[_ngcontent-%COMP%]{margin-bottom:0!important}.breadcrumb-creator-section[_ngcontent-%COMP%]{flex-direction:row;justify-content:space-between;width:100%;padding-bottom:15px;border-bottom:solid 1px var(--platinum);margin-bottom:20px;position:relative}@media(max-width:569px){.breadcrumb-creator-section[_ngcontent-%COMP%]{flex-direction:column;align-items:normal;margin-bottom:0}}.breadcrumb-creator-section__left[_ngcontent-%COMP%]{min-width:340px}.breadcrumb-creator-section__left[_ngcontent-%COMP%] .c-avatar.is-page[_ngcontent-%COMP%]{width:40px;height:40px}@media(max-width:569px){.breadcrumb-creator-section.is-page[_ngcontent-%COMP%]{margin-bottom:20px}}@media(max-width:569px){.breadcrumb-creator-section[_ngcontent-%COMP%] .creator-section.breadcrumb-exists[_ngcontent-%COMP%]{padding-left:8px}}.breadcrumb-creator-section[_ngcontent-%COMP%] .creator-section.mobile-only[_ngcontent-%COMP%]{color:var(--bg-text-color-light);font-size:12px}.breadcrumb-creator-section[_ngcontent-%COMP%] .creator-section__left[_ngcontent-%COMP%] .c-avatar[_ngcontent-%COMP%]{width:40px;height:40px}.breadcrumb-creator-section[_ngcontent-%COMP%] .creator-section[_ngcontent-%COMP%] .c-avatar[_ngcontent-%COMP%]{margin-right:.8rem}.breadcrumb-creator-section[_ngcontent-%COMP%] .creator-section[_ngcontent-%COMP%] .share-item[_ngcontent-%COMP%] .e-btn[_ngcontent-%COMP%]{width:40px;height:40px;padding:0}.c-quest-detail__header[_ngcontent-%COMP%], .c-quest-tabs__content[_ngcontent-%COMP%]{position:relative}.c-quest-detail__header.skeleton[_ngcontent-%COMP%], .c-quest-tabs__content.skeleton[_ngcontent-%COMP%]{aspect-ratio:4/1}.c-quest-detail__header[_ngcontent-%COMP%] .w-40p[_ngcontent-%COMP%], .c-quest-tabs__content[_ngcontent-%COMP%] .w-40p[_ngcontent-%COMP%]{width:40%}.c-quest-detail__header[_ngcontent-%COMP%] .w-70p[_ngcontent-%COMP%], .c-quest-tabs__content[_ngcontent-%COMP%] .w-70p[_ngcontent-%COMP%]{width:70%}.c-quest-detail__header[_ngcontent-%COMP%] .w-100p[_ngcontent-%COMP%], .c-quest-tabs__content[_ngcontent-%COMP%] .w-100p[_ngcontent-%COMP%]{width:100%}.quest-detail-cont[_ngcontent-%COMP%]{background-color:var(--primary-bg-secondary);padding-bottom:40px}.quest-detail-cont__headbar[_ngcontent-%COMP%]{padding:20px 30px}.quest-detail-cont.is-donations[_ngcontent-%COMP%] app-dl-map-milestones[_ngcontent-%COMP%]{padding:20px 30px}.quest-detail-cont__main[_ngcontent-%COMP%]{display:flex;flex-direction:row}@media(max-width:767.98px){.quest-detail-cont__main[_ngcontent-%COMP%]{flex-direction:column}}.quest-detail-cont__main__left[_ngcontent-%COMP%]{position:relative}.quest-detail-cont__main__left[_ngcontent-%COMP%]:after{content:"";position:absolute;width:1px;height:70%;
1top:15%;right:0;background-color:var(--theme-text-dark)}@media(max-width:767.98px){.quest-detail-cont__main__left[_ngcontent-%COMP%]:after{display:none}}.quest-detail-cont__main__left[_ngcontent-%COMP%], .quest-detail-cont__main__right[_ngcontent-%COMP%]{width:50%;padding:2rem 3.5rem}@media(max-width:767.98px){.quest-detail-cont__main__left[_ngcontent-%COMP%], .quest-detail-cont__main__right[_ngcontent-%COMP%]{width:100%;padding:2rem}}.quest-detail-cont__milestones[_ngcontent-%COMP%]{width:100%;padding:2rem 3.5rem}']})}}return t})();var mt=an(sn());var Mr=["optionsDropdown"],yr=["sideMenuQuestOptions"],Pr=["confirmUnsaveTemplate"],Or=["confirmCancelTemplate"],kr=["confirmCompleteQuestTemp"],Sr=["incompleteTasksConfirmTemp"];function Tr(t,c){t&1&&_e(0)}function Er(t,c){t&1&&_e(0)}function Dr(t,c){if(t&1){let e=v();o(0,"li",8)(1,"a",9),u("click",function(){_(e);let n=l(2);return g(n.downloadMembers())}),o(2,"span"),d(3),r()()()}if(t&2){let e=l(2);s(3),T(e.memberDownloadProgress?"Downloading":"Download Members")}}function Fr(t,c){if(t&1){let e=v();o(0,"li",8)(1,"a",9),u("click",function(){_(e);let n=l(2);return g(n.downloadActivities())}),o(2,"span"),d(3),r()()()}if(t&2){let e=l(2);s(3),T(e.activityDownloadProgress?"Downloading":"Download Activities")}}function qr(t,c){if(t&1&&(o(0,"div",7)(1,"ul"),h(2,Dr,4,1,"li",8),h(3,Fr,4,1,"li",8),r()()),t&2){let e=l();s(2),b((e.isViewerAdmin||e.isCurrentUserAllowedForDownload||e.isViewerCreator)&&(!(e.userInfo==null||e.userInfo.userPermissions==null)&&e.userInfo.userPermissions.download_quest_activities)?2:-1),s(),b((e.isViewerAdmin||e.isCurrentUserAllowedForDownload||e.isViewerCreator)&&(!(e.userInfo==null||e.userInfo.userPermissions==null)&&e.userInfo.userPermissions.download_quest_activities)?3:-1)}}var Ji=(()=>{class t{constructor(e,i,n,a,C,S,q,j){this.route=e,this.store=i,this.questService=n,this.referenceDataService=a,this.notifier=C,this.profileService=S,this.mobileSideNavService=q,this.cdr=j,this.isOpen=!1,this.isViewerAdmin=!1,this.isViewerCreator=!1,this.hasEvent=!1,this.isQuestMq=!1,this.registrationDownloadProgress=!1,this.donorsDownloadProgress=!1,this.isCurrentUserAllowedForDownload=!1,this.activityDownloadProgress=!1,this.modalReference=null,this.sideNavOpened=new qe,this.isUserActive=!1,this.memberDownloadProgress=!1,this.authState=this.store.select("auth"),this.profileState=this.store.select("userInfo")}ngOnInit(){this.profileState.pipe(D(1)).subscribe(e=>{this.userInfo=e,this.checkUserPermission()}),this.store.select("group").pipe(J()).subscribe(e=>{this.isViewerCreator=this.userInfo&&e.selectedGroupDetail?.user?.id===this.userInfo.id,this.groupData=e.selectedGroupDetail,this.cdr.detectChanges()}),this.route.snapshot.data[0]?this.status=this.route.snapshot.data[0].status:this.status="public"}ngOnChanges(){this.openSideNavMobile&&(this.mobileSideNavService.openSideNav(this.sideMenuQuestOptions,"options"),this.sideNavOpened.emit(!0),this.openSideNavMobile=!1),this.showQuestOption&&this.optionsDropdown.open()}checkUserPermission(){this.isCurrentUserAllowedForDownload=this.userInfo&&(X.production&&this.userInfo.id===73||!X.production&&this.userInfo.id===1386)}closeDropdown(e){this.showQuestOption=!1,this.optionsDropdown&&this.optionsDropdown.close()}supportQuest(){this.closeDropdown("optionsDropdown")}downloadActivities(){this.activityDownloadProgress=!0,this.profileService.downloadActivityCSV(this.groupData.id).subscribe(e=>{this.activityDownloadProgress=!1;let i=new Blob([e],{type:"text/csv;charset=utf-8"});(0,mt.saveAs)(i,this.referenceDataService.slugify(Te(this.userInfo?.brand)||this.userInfo?.firstName)+"_activities_"+this.referenceDataService.slugify(new Date().toDateString())+".csv"),this.cdr.detectChanges()})}downloadMembers(){this.memberDownloadProgress=!0,this.questService.downloadGroupMembers(this.groupData.id).subscribe(e=>{this.memberDownloadProgress=!1;let i=new Blob([e],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});(0,mt.saveAs)(i,this.referenceDataService.slugify(this.groupData.name)+"_members.xlsx"),this.cdr.detectChanges()},e=>{this.memberDownloadProgress=!1,this.cdr.detectChanges()})}static{this.\u0275fac=function(i){return new(i||t)(p(K),p(L),p(Q),p(_i),p($),p(qi),p(Ei),p(U))}}static{this.\u0275cmp=A({type:t,selectors:[["app-group-header-tools"]],viewQuery:function(i,n){if(i&1&&R(Mr,5)(yr,5,W)(Pr,5,F)(Or,5,F)(kr,5,F)(Sr,5,F),i&2){let a;M(a=y())&&(n.optionsDropdown=a.first),M(a=y())&&(n.sideMenuQuestOptions=a.first),M(a=y())&&(n.confirmUnsaveTemplate=a.first),M(a=y())&&(n.confirmCancelTemplate=a.first),M(a=y())&&(n.confirmCompleteQuestTemp=a.first),M(a=y())&&(n.incompleteTasksConfirmTemp=a.first)}},inputs:{showQuestOption:"showQuestOption",openSideNavMobile:"openSideNavMobile",editableQuest:"editableQuest"},outputs:{sideNavOpened:"sideNavOpened"},standalone:!1,features:[ne],decls:9,vars:3,consts:[["optionsDropdown","ngbDropdown"],["sideMenuQuestOptions",""],["questOptionsTemplate",""],["ngbDropdown","",1,"c-quest-detail__header__dropdown","header__dropdown__right"],["ngbDropdownMenu","",1,"c-quest-detail__header__dropdown__menu"],[4,"ngTemplateOutlet"],[3,"title"],[1,"c-quest-detail__header__dropdown","header__dropdown__right"],["ngbDropdownItem",""],["href","javascript:void(null)",3,"click"]],template:function(i,n){if(i&1&&(o(0,"div",3,0)(2,"div",4),E(3,Tr,1,0,"ng-container",5),r()(),o(4,"app-mobile-side-nav",6,1),E(6,Er,1,0,"ng-container",5),r(),E(7,qr,4,2,"ng-template",null,2,O)),i&2){let a=B(8);s(3),m("ngTemplateOutlet",a),s(),m("title","Options"),s(2),m("ngTemplateOutlet",a)}},dependencies:[re,We,Je,$e,Ai],encapsulation:2,changeDetection:0})}}return t})();var Ar=["headerPhotoElem"],Nr=t=>({"no-image-header":t});function Gr(t,c){t&1&&_e(0)}function Br(t,c){if(t&1&&(o(0,"div",4)(1,"h1"),E(2,Gr,1,0,"ng-container",6),r()()),t&2){l();let e=B(6);s(2),m("ngTemplateOutlet",e)}}function Vr(t,c){t&1&&_e(0)}function Rr(t,c){if(t&1&&(o(0,"div",5),E(1,Vr,1,0,"ng-container",6),r()),t&2){l();let e=B(6);s(),m("ngTemplateOutlet",e)}}function Ur(t,c){if(t&1&&(o(0,"span"),d(1),r()),t&2){let e=l(2);s(),T(e.groupData.name)}}function Lr(t,c){if(t&1&&h(0,Ur,2,1,"span"),t&2){let e=l();b(e.groupData.name?0:-1)}}var Wi=(()=>{class t{constructor(e,i,n,a,C){this.questService=e,this.store=i,this.route=n,this.renderer=a,this.cdr=C,this.isCurrentUserAdminOrOwner=!1,this.changeCoverImage=new qe,this.isViewShort=!1,this.questImageStyle={},this.allowEdit=!1,this.questTasks=[],this.taskViewDisabled=!1,this.profileState=this.store.select("userInfo")}ngOnInit(){this.route.params.pipe(D(1)).subscribe(e=>{this.userId=Number(e.userId)}),this.store.select("dlMilestones").subscribe(e=>
1{this.questTasks=e.milestones,e.milestones.forEach(i=>{if(i.taskViewDisabled&&!this.taskViewDisabled){this.taskViewDisabled=!0;return}})}),this.store.select("quest").pipe(J()).subscribe(e=>{this.isCurrentUserAdminOrOwner=e.isCurrentUserAdminOrOwner})}ngOnChanges(){this.photoToBeUsed=this.groupData.coverImage||null,this.profileState.pipe(D(1)).subscribe(e=>{this.currentUser=e}),this.photoToBeUsed&&this.photoToBeUsed!==""&&(this.questImageStyle={background:`url('${this.photoToBeUsed}') 0 0 / cover no-repeat`,width:"100%",height:"100%"},this.positionCoverImage())}onChangeCoverImage(){this.changeCoverImage.emit(),this.cdr.detectChanges()}positionCoverImage(){if(!this.groupData.coverCenterX||!this.groupData.coverCenterY||!this.groupData.coverZoomValue)return;let e=document.createElement("div");e.setAttribute("id","tobe-deleted-cont");let i=document.createElement("img");i.onload=()=>{i.setAttribute("id","tobe-deleted-img"),i.setAttribute("style","width: 100%"),e.appendChild(i),this.renderer.appendChild(this.headerPhotoElem.nativeElement,e);let n=document.getElementById("tobe-deleted-img").height,a=document.getElementById("tobe-deleted-img").width;document.getElementById("tobe-deleted-cont").remove();let C=Math.abs(this.groupData.coverCenterX*a/100-this.headerPhotoElem.nativeElement.clientWidth/2),S=Math.abs(this.groupData.coverCenterY*n/100-this.headerPhotoElem.nativeElement.clientHeight/2);this.questImageStyle={background:`url('${this.photoToBeUsed}') -${C}px -${S}px / cover no-repeat`,width:`${this.groupData.coverZoomValue*100}%`,height:`${this.groupData.coverZoomValue*100}%`}},i.src=this.photoToBeUsed}static{this.\u0275fac=function(i){return new(i||t)(p(Q),p(L),p(K),p(Ae),p(U))}}static{this.\u0275cmp=A({type:t,selectors:[["app-group-header"]],viewQuery:function(i,n){if(i&1&&R(Ar,7,W),i&2){let a;M(a=y())&&(n.headerPhotoElem=a.first)}},inputs:{groupData:"groupData",isViewShort:"isViewShort"},outputs:{changeCoverImage:"changeCoverImage"},standalone:!1,features:[ne],decls:7,vars:6,consts:[["headerPhotoElem",""],["questNameTemplate",""],[1,"c-quest-detail__header",3,"ngClass"],[1,"c-quest-detail__header__img",3,"ngStyle"],[1,"c-quest-detail__header__title"],[1,"c-quest-detail__header__title-short"],[4,"ngTemplateOutlet"]],template:function(i,n){i&1&&(o(0,"div",2,0),f(2,"div",3),h(3,Br,3,1,"div",4),h(4,Rr,2,1,"div",5),r(),E(5,Lr,1,1,"ng-template",null,1,O)),i&2&&(m("ngClass",x(4,Nr,!n.photoToBeUsed||n.photoToBeUsed===""||n.photoToBeUsed==="null")),s(2),m("ngStyle",n.questImageStyle),s(),b(n.isViewShort?-1:3),s(),b(n.isViewShort?4:-1))},dependencies:[H,re,ge],styles:['.c-quest-detail__header[_ngcontent-%COMP%]{position:relative;aspect-ratio:4/1;overflow:hidden}.c-quest-detail__header__title-short[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}.c-quest-detail__header__title-short[_ngcontent-%COMP%]:before{content:"";position:absolute;background:linear-gradient(180deg,#2e3638,#29596700);top:0;left:0;width:100%;height:50%;z-index:2}.c-quest-detail__header__title-short[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:absolute;top:20px;left:20px;width:calc(100% - 40px);font-size:16px;color:var(--white);font-family:ProximaNova-Bold;z-index:3}']})}}return t})();var jr=["teamNewName"],zr=["shareOptionsBox"],Yi=t=>({display:t}),Hr=()=>["active"],ie=t=>({"static-skeleton":t}),$r=()=>[1,2,3,4],Jr=()=>[1,2,3];function Wr(t,c){if(t&1&&(o(0,"li",7)(1,"a",20)(2,"span",21),d(3),r()()()),t&2){let e=c.$implicit;m("ngStyle",x(4,Yi,e.available?"flex":"none"))("routerLinkActive",oe(6,Hr)),s(),m("routerLink",e.key),s(2),T(e.value)}}function Yr(t,c){if(t&1){let e=v();o(0,"div",1)(1,"div",2),f(2,"app-group-header",3),o(3,"div",4)(4,"div",5)(5,"ul",6),N(6,Wr,4,7,"li",7,Y),r(),o(8,"ul",8)(9,"li",9)(10,"span",10),u("click",function(){_(e);let n=l();return g(n.openShareModal())}),k(),o(11,"svg",11),f(12,"use",12),r(),I(),o(13,"span",13),d(14,"Share"),r()()(),o(15,"li",14,0)(17,"span",15),u("click",function(){_(e);let n=l();return g(n.toggleOptionsMenu())}),o(18,"span",13),d(19,"OPTIONS"),r(),k(),o(20,"svg",16),f(21,"use",17),r()(),I(),o(22,"app-group-header-tools",18),u("sideNavOpened",function(n){_(e);let a=l();return g(a.sideNavOpenedMobile(n))}),r()()()()(),o(23,"div",19),f(24,"router-outlet"),r()()()}if(t&2){let e=l();s(2),m("groupData",e.data),s(4),G(e.tabs),s(16),m("showQuestOption",e.showQuestOptions)("openSideNavMobile",e.openSideNavMobile)("editableQuest",e.editableQuest)}}function Xr(t,c){if(t&1&&(o(0,"li",7)(1,"a",20)(2,"span",21),d(3),r()()()),t&2){let e=c.$implicit;m("ngStyle",x(4,Yi,e.available?"flex":"none"))("routerLinkActive","active"),s(),m("routerLink",e.key),s(2),T(e.value)}}function Zr(t,c){if(t&1&&(o(0,"div",30)(1,"p",28),d(2,"\xA0"),r()()),t&2){let e=l(2);s(),m("ngClass",x(1,ie,e.displayUserLockElem))}}function Kr(t,c){if(t&1&&(o(0,"div",34)(1,"div",35)(2,"p",28),d(3,"\xA0"),r()(),o(4,"div",36)(5,"p",28),d(6,"\xA0"),r()(),o(7,"button",37)(8,"span",38),d(9,"\xA0"),r()()()),t&2){let e=l(2);s(2),m("ngClass",x(3,ie,e.displayUserLockElem)),s(3),m("ngClass",x(5,ie,e.displayUserLockElem)),s(3),m("ngClass",x(7,ie,e.displayUserLockElem))}}function ea(t,c){if(t&1&&(o(0,"div",1)(1,"div",2)(2,"div",22)(3,"div",23),f(4,"div",24),r()(),o(5,"div",4)(6,"div",5)(7,"ul",6),N(8,Xr,4,6,"li",7,Y),r()()(),o(10,"div",19)(11,"div",25)(12,"div",26)(13,"div",27)(14,"h2",28),d(15,"\xA0"),r()(),o(16,"div",29),d(17,"\xA0"),r(),N(18,Zr,3,3,"div",30,Y),o(20,"div",31)(21,"p",28),d(22,"\xA0"),r()(),o(23,"div",32)(24,"p",28),d(25,"\xA0"),r()(),o(26,"div",29),d(27,"\xA0"),r()(),o(28,"div",33),N(29,Kr,10,9,"div",34,Y),r()()()()()),t&2){let e=l();s(3),m("ngClass",x(5,ie,e.displayUserLockElem)),s(),m("ngClass",x(7,ie,e.displayUserLockElem)),s(4),G(e.tabs),s(6),m("ngClass",x(9,ie,e.displayUserLockElem)),s(4),G(oe(11,$r)),s(3),m("ngClass",x(12,ie,e.displayUserLockElem)),s(3),m("ngClass",x(14,ie,e.displayUserLockElem)),s(5),G(oe(16,Jr))}}var Xi=(()=>{class t{constructor(e,i,n,a,C,S,q,j,Me,it,Zi,Ki,en,tn,nn){this.route=e,this.router=i,this.questService=n,this.store=a,this.modalService=C,this.activeModal=S,this.myQuestsSevice=q,this.sanitizer=j,this.accountService=Me,this.notifier=it,this.isServer=Zi,this.meta=Ki,this.titleService=en,this.commonService=tn,this.cdr=nn,this.teamIdIsNotDefault=!1,this.currentUser=Kt,this.hasUrlUserQuestActivity=!1,this.hasCurrentUserQuestActivity=!1,this.isCurrentUsersRepresentation=!1,this.isCurrentUserHasFundraisingLink=!1,this.isCurrentUserAdminOrOwner=!1,this.isCurrentUserQuestDoer=!1,this.fundraiseModalAction="start",this.fundraisingLink=null,this.fundraisingButtonForcedHidden=!1,this.renameMode=!1,this.isLoaded=!1,this.isProgress=!1,this.tabs=[{key:"details",value:"Details",available:!0}],this.members=[],this.teams=[],this.team=null,this.selectedUploadTeamImageModalMode="",this.isFirstTimeLoaded=!1,this.modalReference=null,this.showQuestOptions=!1,this.environment=X,this.destroyed$=new Fe(1),this.openSideNavMobile=!1,this.questTasks=[],this.loggedUserTeamId=0,this.userVersionExists=!1,this.displayUserLockElem=!1,this.milestoneControlsDisabled=!1,this.isUserQuestMember=!1,this.isOpenLogActivityCalled=!1,this.isLogActivityModalOpen=!1,this.userInfoState=this.store.select("userInfo"),this.dlMilestoneState=this.store.select("dlMilestones");let pt=null;this.router.events.subscribe(on=>{on instanceof jt&&this.route.params.pipe(D(1)).subscribe(rn=>{let nt=Number(rn.groupId);console.log("169",nt),nt!==pt&&(console.log("172 calling all the reaload"),pt=nt,this.destroyAllParams(),this.ngOnInit())})})}outsideClick(e){this.shareOptionsBox&&!this.shareOptionsBox.nativeElement.contains(e.target)&&(this.showQuestOptions=!1)}ngOnInit(){this.isLoaded=!1,this.isFirstTimeLoaded=!1;let e=!1,i=!1;this.userInfoState.pipe(ue(this.destroyed$)).subscribe(n=>{i||(i=!0,this.checkIfUserIsMember())}),this.store.pipe(je("auth"),D(1)).subscribe(n=>{e=n.authenticated}),this.authSubscription=this.store.pipe(je("auth"),Pe(n=>n.authenticated),J()).subscribe(n=>{n&&(this.viewStatus=null),this.userInfoState.subscribe(a=>{let C=!1;!e&&n&&a.id&&(e=n,this.checkIfUserIsMember());let S=(q,j)=>q&&j?q.id!==j.id:!(!q&&!j);if(n)if(a&&a.id&&S(this.currentUser,a))console.log("284 current user",a),this.currentUser=a,C=!0;else return;C&&(this.currentUser=a,console.log("303 Current user changed - reloading",this.currentUser),this.loadPageData(),this.checkIfCurrentUserQuestDoer(),this.checkIfUserIsMember())})}
1),this.routeParamsSubscription=this.route.params.pipe(D(1),ue(this.destroyed$)).subscribe(n=>{this.groupId=Number(n.groupId),this.store.dispatch(new ct(this.groupId)),this.loadPageData(),this.getMembers()}),this.milestoneSubscription=this.dlMilestoneState.subscribe(n=>{this.questTasks=n.milestones,this.milestoneControlsDisabled=!1;let a=n.milestones.filter(C=>C.groupStatus!=="HIDDEN");this.milestoneControlsDisabled=a.length>0?a.filter(C=>C.milestoneControlsDisabled).length>0:!0}),this.joinedTeamSubscription=this.store.pipe(je(si),Pe(n=>n.joinedTeam)).subscribe(n=>{if(n){if(this.isProgress=!1,!n.moveToMyQuests){this.activeModal.close(),this.modalService.dismissAll(),setTimeout(()=>{this.router.navigate([n.teamPageUrl])}),this.getMembers();return}setTimeout(()=>{this.router.navigate(["/workspace"])})}})}ngOnDestroy(){this.destroyed$.next(!0),this.destroyed$.complete(),this.store.dispatch(new ze(null)),this.store.dispatch(new ct(null)),this.destroyAllParams(),this.commonService.setMetaTagsToDIEMlife()}destroyAllParams(){this.groupId=null,this.data=null,this.fundraisingLink=null,this.fundraisingButtonForcedHidden=null,this.isCurrentUserHasFundraisingLink=null,this.isCurrentUserAdminOrOwner=null,this.editableQuest=null,this.teamIdIsNotDefault=!1,this.userVersionExists=!1,this.displayUserLockElem=!1,this.isUserQuestMember=!1,this.activeModal.close(),this.closeModal(),this.store.dispatch(new ze(null)),this.questSubscription&&this.questSubscription.unsubscribe(),this.questTeamsSubscription&&this.questTeamsSubscription.unsubscribe(),this.joinedTeamSubscription&&this.joinedTeamSubscription.unsubscribe(),this.authSubscription&&this.authSubscription.unsubscribe(),this.routeParamsSubscription&&this.routeParamsSubscription.unsubscribe(),this.questDetailSubscription&&this.questDetailSubscription.unsubscribe(),this.milestoneSubscription&&this.milestoneSubscription.unsubscribe()}ngAfterViewInit(){}loadPageData(){this.isLoaded=!1,this.isFirstTimeLoaded||(this.data=null),this.team=null,this.isCurrentUserHasFundraisingLink=!1,this.isCurrentUserAdminOrOwner=!1,this.fundraisingButtonForcedHidden=!1,this.groupId&&this.questService.getGroupData(this.groupId).pipe(D(1)).subscribe(e=>{this.data=e,this.setMetaTags(),this.store.dispatch(new ze(e)),this.editableQuest=this.data.creatorId===this.currentUser.id,this.questService.checkQuestCustomColorAndApply(null,this.currentUser?.id,this.data.creatorId),this.getQuestInfo(),this.checkIfCurrentUserQuestDoer()},e=>{this.viewStatus=e.status||401,e&&e.status&&(e.status===401||e.status===403)&&(this.displayUserLockElem=!0,this.currentUser&&this.currentUser.id?this.notifier.notify("error","Request access from the administrator, or switch to an account with access"):this.openLoginModal())})}getQuestInfo(){this.isLoaded=!1,this.status=se.Public,this.hasCurrentUserQuestActivity=this.viewerActivityTracker&&this.viewerActivityTracker.hasUserActivity(),this.isCurrentUsersRepresentation=this.currentUser&&this.currentUser.id===this.userId,this.status=this.buildViewerDetailsStatus(),this.getQuestCompletionPercent(this.groupId,this.getQuestCompletionUser()).subscribe(()=>{}),this.isLoaded=!0,this.isFirstTimeLoaded=!0}getMembers(){this.questService.getGroupMembers(this.groupId).subscribe(e=>{this.store.dispatch(new He(e))})}checkIfUserIsMember(){!this.currentUser||this.currentUser&&!this.currentUser.id||!this.groupId||(console.log("868 checkIfUserIsMember"),this.questService.isUserQuestMember(this.groupId).subscribe(e=>{this.isUserQuestMember=e.isMember,this.checkIfCurrentUserQuestDoer()},e=>{this.isUserQuestMember=!1}))}getLoggedUserTeamId(){this.questService.getUserTeamIdForQuest(this.groupId,this.currentUser.id).subscribe(e=>{this.loggedUserTeamId=e&&e.id})}checkIfCurrentUserQuestDoer(){this.currentUser&&this.currentUser.id&&(this.isCurrentUserQuestDoer=this.groupId===222||this.data&&this.data?.creatorId===this.currentUser?.id?!0:this.isUserQuestMember)}getQuestCompletionUser(){return this.hasCurrentUserQuestActivity&&this.isModePaceYourself()?this.userId:this.hasCurrentUserQuestActivity&&this.isModeTeam()&&this.team?this.team?this.team.creatorId:this.userId:this.hasUrlUserQuestActivity?this.userId:this.data.creatorId}getQuestCompletionPercent(e,i){return new _t(n=>{!this.groupId||!this.userId||this.questService.getQuestCompletionPercent(e,i).pipe(D(1)).subscribe(a=>{this.data=te(te({},this.data),a),n.next(),n.complete()},()=>{n.complete()})})}closeModal(){this.modalReference&&this.modalReference.close(),this.modalReference=null}isQuestInTeamMode(){return!1}isMegaQuest(){return!1}isParentQuest(){return!1}isQuestInSupportMode(){return!1}getCurrentUserTeam(){return this.currentUser&&this.teams&&this.teams.length?this.teams.find(e=>e.memberIds.includes(this.currentUser.id)):null}isStatusInProgress(){return this.viewerActivityTracker&&this.viewerActivityTracker.isStatusInProgress()}isStatusComplete(){return this.viewerActivityTracker&&this.viewerActivityTracker.isStatusComplete()}isModeSupportOnly(){return this.viewerActivityTracker&&this.viewerActivityTracker.isModeSupportOnly()}isModePaceYourself(){return this.viewerActivityTracker&&this.viewerActivityTracker.isModePaceYourself()}isModeTeam(){return this.viewerActivityTracker&&this.viewerActivityTracker.isModeTeam()}iAmCreator(){return this.currentUser&&this.currentUser.id===this.data.creatorId}iAmDoer(){return this.currentUser&&this.currentUser.id===this.userId}iAmAnonymous(){return!this.currentUser||this.currentUser.id===null}isDoerIsSimpleDoer(){return!1}isDoerIsCreator(){return this.userId===this.data.creatorId}isCurrentUserIsTeamCreator(){return this.currentUser&&this.team?this.team.creatorId===this.currentUser.id:!1}buildViewerDetailsStatus(){let e=this.isQuestInSupportMode()||this.isQuestInTeamMode();return!this.isCurrentUsersRepresentation&&!e?se.Public:se.Public}closeUploadTeamImageModal(){this.selectedUploadTeamImageModalMode="",this.closeModal()}
1toggleOptionsMenu(){if(window.innerWidth>570){this.showQuestOptions=!this.showQuestOptions;return}this.openSideNavMobile=!0}sideNavOpenedMobile(e){e&&(this.openSideNavMobile=!1)}openShareModal(){this.modalReference=this.modalService.open(tt,{windowClass:"no-overflow"}),this.modalReference.componentInstance.groupId=this.groupId}openLoginModal(){this.modalService.dismissAll(),this.modalService.open(de,{windowClass:"no-overflow small-login-modal"})}extractContent(e){var i=document.createElement("span");return i.innerHTML=e,i.textContent||i.innerText}setMetaTags(){this.titleService.setTitle(this.data.name),this.meta.updateTag({property:"og:title",content:this.data.name}),this.meta.updateTag({property:"og:image",content:this.data.coverImage||ci}),this.meta.updateTag({property:"og:description",content:this.extractContent(this.data.description&&this.data.description).substring(0,3e3)}),this.meta.updateTag({property:"description",content:this.extractContent(this.data.description&&this.data.description).substring(0,3e3)}),this.meta.updateTag({property:"og:image:width",content:"1200"}),this.meta.updateTag({property:"og:image:height",content:"600"})}openLogActivityModal(e){if(this.isServer)return;if(this.isOpenLogActivityCalled=!0,this.activeModal.dismiss(),this.closeModal(),this.isLogActivityModalOpen=!0,!this.currentUser||this.currentUser&&!this.currentUser.id){this.modalReference=this.modalService.open(de,{windowClass:"no-overflow small-login-modal"}),this.isOpenLogActivityCalled=!1;return}if(this.userVersionExists){this.isLogActivityModalOpen=!0,this.notifier.notify("success","Switched to member view"),this.router.navigate(["/quest-detail",this.groupId,this.currentUser.id,0,"details"]),this.isOpenLogActivityCalled=!1;return}if(!(this.groupId===222||this.data&&this.data?.creatorId===this.currentUser.id?!0:this.isCurrentUserQuestDoer)){this.notifier.notify("warning","Please join the Quest before logging an activity"),this.isOpenLogActivityCalled=!1;return}this.isLogActivityModalOpen=!0,this.modalReference=this.modalService.open(Ii,{size:"lg",windowClass:"log-activity-modal no-overflow",backdrop:"static"}),this.modalReference.componentInstance.questId=this.groupId,this.modalReference.componentInstance.userId=this.userId,this.modalReference.componentInstance.teamId=this.loggedUserTeamId,e&&e>0&&(this.modalReference.componentInstance.preSelectTaskId=e),setTimeout(()=>{this.isLogActivityModalOpen=!1,this.isOpenLogActivityCalled=!1},3e3)}static{this.\u0275fac=function(i){return new(i||t)(p(K),p(be),p(Q),p(L),p(Z),p(ae),p(et),p(Ge),p(gi),p($),p("isServer"),p(Ft),p(qt),p(Fi),p(U))}}static{this.\u0275cmp=A({type:t,selectors:[["app-group-detail"]],viewQuery:function(i,n){if(i&1&&R(jr,5)(zr,5,W),i&2){let a;M(a=y())&&(n.teamNewName=a.first),M(a=y())&&(n.shareOptionsBox=a.first)}},hostBindings:function(i,n){i&1&&u("click",function(C){return n.outsideClick(C)},Ie)},standalone:!1,decls:2,vars:1,consts:[["shareOptionsBox",""],[1,"c-quest-detail-new"],[1,"c-container"],[1,"c-quest-header",3,"groupData"],[1,"c-quest-tabs-nav"],[1,"c-quest-tabs-nav__container"],[1,"c-quest-tabs-nav__list"],[1,"c-quest-tabs-nav__list-item",3,"ngStyle","routerLinkActive"],[1,"c-quest-tabs-nav__icon-list"],["title","Share",1,"share-icon","no-mobile-col"],["title","Share",3,"click"],[1,"icon","icon-bi-share"],[0,"xlink","href","#icon-bi-share"],[1,"text"],[1,"options-icon"],[3,"click"],[1,"icon","icon-down-filled"],[0,"xlink","href","#icon-down-filled"],[1,"c-quest-detail__header__tools",3,"sideNavOpened","showQuestOption","openSideNavMobile","editableQuest"],[1,"c-quest-tabs__content","mt-0"],[1,"c-quest-tabs-nav__link",3,"routerLink"],[1,"tab-name"],[1,"c-quest-header"],[1,"c-quest-detail__header","skeleton",3,"ngClass"],[1,"c-quest-detail__header__img","skeleton-item",3,"ngClass"],[1,"c-quest-tabs__tab","d-flex"],[1,"details-tab__left",2,"padding","20px 40px"],[1,"mb-20","w-70p"],[1,"skeleton-item",3,"ngClass"],[1,"mb-20"],[1,"w-100p"],[1,"w-70p"],[1,"w-40p","mb-20"],[1,"details-tab__right"],[1,"c-quest-detail__article-draft"],[1,"label"],[1,"para"],[1,"e-btn","e-btn_dark","w-100p","draft
1-btn","mt-10"],[1,"skeleton-item",2,"width","100%",3,"ngClass"]],template:function(i,n){i&1&&h(0,Yr,25,4,"div",1)(1,ea,31,17,"div",1),i&2&&b(n.data&&(n.isLoaded||n.isFirstTimeLoaded)?0:1)},dependencies:[H,ge,zt,Ce,Ht,Ji,Wi],styles:['[_ngcontent-%COMP%]:root{--accent-color: #008297;--accent-color-rgb: 0 130 151;--accent-dark-color: #295967;--accent-bg-light-color: #339BAC;--btn-text-color: #2e3638;--theme-text-dark: #2e3638;--bg-text-color: #2e3638;--theme-text-light: #ffffff;--btn-text-light: #ffffff;--quest-content-bg: #FFFFFF;--quest-highlight-bg: #E5EAED;--white-section-bg: #ffffff;--comment-blue-bg: #E5F2F5;--quest-header-bg: #008297;--lighter-btn-bg: #E5F2F5;--quest-detail-nav: #008297;--quest-detail-nav-dark: #295967;--site-header: #ffffff;--site-header-text: #2e3638;--site-header-highlight: #008297;--site-header-highlight-light: #008297;--site-header-highlight-text: #ffffff;--site-header-highlight-text-invert: #ffffff;--site-header-box-shadow: #00000080;--site-header-badge-bg: #E5F2F5;--site-header-badge-text: #008297;--avatar-border: #e0e0e0;--success-bg-btn: #1D966A;--success-bg-text: #ffffff;--table-row-hover: #F2F9FA;--mission-statement-bg: #E5F2F5;--mission-statement-text: #2e3638;--bg-text-color-light: #6d787e;--bg-white-ghost: #F8F8F9;--bg-milestone: #f3f3f3;--white-bg-original: #ffffff;--modal-bg: #ffffff;--feedback-bg: #f5f7f8;--transparent-white-bg: #FFFFFF;--milestone-task-bg: #f5f7f8;--primary-bg: #f3f3f3;--primary-bg-secondary: #ffffff;--quest-detail-right: #E5EAED;--input-field-bg: #ffffff;--nav-flow-number-bg: #ffffff;--nav-flow-number-color: #000000;--flow-pages-bg: #f3f3f3;--flow-pages-section-bg: #ffffff;--tooltip-bg: #000000;--tooltip-text-color: #ffffff;--close-btn-invert: 0;--close-btn-invert-str: invert(0);--payment-block-row: #ffffff;--search-hover-bg: #f0f0f0;--progress-bar-uncovered: #ffffff;--bg-text-color-secondary: #c5c9cb;--bs-backdrop-bg-custom: #000000;--read-more-gradient: #ffffff;--read-more-btn-text: #2e3638;--dots-bg: #E5F2F5;--dots-color: #2e3638;--total-amount-color: #2e3638;--team-option-bg: #f9f9f9;--team-option-bg-dark: #ededed;--checkbox-selection-color: #ffffff;--comment-text-color: #2e3638;--table-member-bg: #F4F7F7;--table-rank-bg: #ffffff;--table-gutter-bg: #E8E9EA;--error-dark: #D00808;--error-dark-hover: #e61c1c;--timeline-bg: #F3F4F5;--marked-milestone-bg: #1D966A;--marked-milestone-bg-hover: #22ab79;--marked-milestone-block: #E8F4F0;--accent-color-secondary-light: #EAEEF0;--sample-primary-bg: #f3f3f3;--sample-quest-content-bg: #ffffff;--sample-bg-text-color: #2e3638;--sample-theme-bg-color: #008297;--sample-theme-bg-color-light: #339BAC;--sample-theme-text-light: #ffffff;--sample-btn-text-light: #ffffff;--sample-btn-text-color: #2e3638;--white-10: rgba(255, 255, 255, .1);--black: #000;--black-70: rgba(0, 0, 0, .7);--black-50: rgba(0, 0, 0, .5);--black-40: rgba(0, 0, 0, .4);--black-10: rgba(0, 0, 0, .1);--black-05: rgba(0, 0, 0, .05);--petrol-70: rgba(0, 81, 102, .7);--petrol-50: rgba(0, 81, 102, .5);--petrol-30: rgba(0, 81, 102, .3);--petrol-15: rgba(0, 81, 102, .05);--blue-stone-15: rgba(0,81,102, .05);--bismark-80: rgba(71,121,133,.8);--cornflowerBlue-10: rgba(36,88,102,.1);--white-70: rgba(255, 255, 255, .7);--white-50: rgba(255, 255, 255, .5);--white-30: rgba(255, 255, 255, .3);--light-blue-grey: #a6dce5;--jungle-mist: #aac9ce;--powder-blue: #b0e0e8;--shakespeare: #3fb1d1;--matisse: #1D728F;--blizzard-blue: #a6e0ec;--aquamarine-blue: #86d0e1;--hippie-blue: #609eae;--purpley-grey: #9e94a2;--ebony-clay: #1f3034;--petrol: #005166;--orient: #006a86;--cutty-sark: #516e75;--juniper: #648288;--smalt-blue: #548b97;--bali-hai: #81a8b3;--golden-fizz: #f8ec31;--amber: #FFC107;--geraldine: #ff7f7f;--cinnabar: #e83d3d;--white: #fff;--silver: #bbb;--shamrock: #2ecc71;--amazon: #347750;--puce: #cc8588;--alto: #dedede;--bermuda: #83cad9;--cornflower: #92d6e5;--bright-yellow: #fff100;--tabasco: #b41212;--casal: #295966;--outer-space: #2e3638;--dove-gray: #646464;--dusty-gray: #979797;--silver-sand: #bec1c1;--tower-gray: #d6dee1;--geyser: #d6dee1;--wild-sand: #f4f4f4;--alabaster: #f9f9f9;--anakiwa: #87ffff;--pelorous: #34a6b1;--shakespeare: #41abcb;--eastern-blue: #168cb2;--tealColor: #008297;--tealLightColor: #339BAC;--tealDarkColor: #295967;--greyDarkColor: #2e3638;--greyColor: #6d787e;--lightGreyColor: #c5c9cb;--ghostWhite: #F8F8F9;--ghostGrey: #EBECED;--paleCyan: #cce6ea;--secondary-bg: #ebebeb;--progress-bg: #f5f7f8;--tealLightBg: #E5EAED;--backgroundOptionsGray: #f5f5f5;--platinum: #A7AEB2;--grayBlueBg: #E5F2F5;--errorRed: #B73622;--warning-color: #EB7200;--orange-warning: #EB7200;--orange-warning-light: #FDF1E5;--orange: #FFB217;--orange-80: rgba(255, 178, 23, .8);--physical: #DB3900;--environmental: #4A8500;--occupational: #E20096;--mental: #018484;--friends: #905CB4;--piggybank: #AD7D00;--teal-01: rgba(41, 89, 103, .1);--teal-005: rgba(41, 89, 103, .05);
1--light-gold: #F2EBD9;--brown-gold: #A67B00;--border-radius-val: 5px;--borderLightGray: #C5C9CB;--silver-20: #F3F4F5;--teal-70: #4DA7B6;--success-bg: #1D966A;--success-bg-hover: #22ab79;--sinbad: #99CDD5;--btn-theme-bg: #008297;--btn-theme-bg-light-color: #339BAC;--btn-theme-text: #ffffff;--sample-btn-bg-color: #008297;--ab-offset: 0px}[_nghost-%COMP%]{display:block}@media(max-width:570px){[_nghost-%COMP%] .no-mobile-col[_ngcontent-%COMP%]{display:none}}.c-quest-detail-new[_ngcontent-%COMP%]{background:var(--primary-bg)}@media(max-width:767.98px){.c-quest-detail-new[_ngcontent-%COMP%] > .c-container[_ngcontent-%COMP%]{padding-left:0;padding-right:0}}.w-100p[_ngcontent-%COMP%]{width:100%;max-width:100%}.c-quest-detail__article-draft[_ngcontent-%COMP%]{position:relative;padding:40px 20px 15px;text-align:center;margin-bottom:25px;color:var(--bg-text-color-light)}.c-quest-detail__article-draft.no-web-col[_ngcontent-%COMP%]{display:none}@media(max-width:570px){.c-quest-detail__article-draft.no-web-col[_ngcontent-%COMP%]{display:block}}.c-quest-detail__article-draft[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{color:var(--bg-text-color);font-size:16px;font-family:ProximaNova-Bold}.c-quest-detail__article-draft[_ngcontent-%COMP%] .para[_ngcontent-%COMP%]{font-size:14px;color:var(--bg-text-color-light)}.c-quest-detail__article-draft[_ngcontent-%COMP%]:before{content:"";z-index:1;background-color:#fff6;position:absolute;width:100%;height:100%;top:0;left:0}.c-quest-detail__article-draft[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{z-index:2;position:relative}.c-quest-detail__article-draft__title[_ngcontent-%COMP%]{font-size:16px;color:var(--bg-text-color)}@media(max-width:570px){.c-quest-detail__article-draft__title[_ngcontent-%COMP%]{padding:0 20px}}.locked-user-section[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;text-align:center;width:100%;background:linear-gradient(0deg,#fff 50%,#fff0);padding:50px 0;z-index:1080}.locked-user-section__cont[_ngcontent-%COMP%]{padding:30px 40px;border:solid 1px var(--accent-color);border-radius:5px;font-size:20px;font-family:ProximaNova-Bold;display:inline-block}.locked-user-section__cont[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:0}.locked-user-section__cont[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-top:20px}.locked-user-section__cont[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-family:ProximaNova-Semibold;font-size:16px}.c-quest-detail__header[_ngcontent-%COMP%], .c-quest-tabs__content[_ngcontent-%COMP%]{position:relative}.c-quest-detail__header.skeleton[_ngcontent-%COMP%], .c-quest-tabs__content.skeleton[_ngcontent-%COMP%]{aspect-ratio:4/1}.c-quest-detail__header[_ngcontent-%COMP%] .w-40p[_ngcontent-%COMP%], .c-quest-tabs__content[_ngcontent-%COMP%] .w-40p[_ngcontent-%COMP%]{width:40%}.c-quest-detail__header[_ngcontent-%COMP%] .w-70p[_ngcontent-%COMP%], .c-quest-tabs__content[_ngcontent-%COMP%] .w-70p[_ngcontent-%COMP%]{width:70%}.c-quest-detail__header[_ngcontent-%COMP%] .w-100p[_ngcontent-%COMP%], .c-quest-tabs__content[_ngcontent-%COMP%] .w-100p[_ngcontent-%COMP%]{width:100%}']})}}return t})();var ta=[{path:"",component:Xi,children:[{path:"details",component:$i},{path:"**",redirectTo:"details"}]},{path:"**",redirectTo:""}],Tl=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=Ct({type:t})}static{this.\u0275inj=ht({imports:[Et,Lt,Qt,Wt,Zt,Ni,Jt,bi,lt.forChild(ta),Xt.forRoot(),lt]})}}return t})();export{Tl as GroupDetailModule};
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.