1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6606],{59760:(U,T,r)=>{r.d(T,{T:()=>b});var j=r(19757),e=r(11009),k=r(14684),I=r(68286),s=r(42760),c=r(10465),l=r(54438);let b=(()=>{class M{static{this.\u0275fac=function(d){return new(d||M)}}static{this.\u0275mod=l.$C({type:M})}static{this.\u0275inj=l.G2t({imports:[j.Gg,e.R,I.g,k.f,s.V,c.W,e.R,I.g]})}}return M})()},16881:(U,T,r)=>{r.d(T,{n:()=>A});var j=r(94092),e=r(25599),k=r(44818),I=r(64646),s=r(34278);class c{static hasCalendly(){return typeof Calendly<"u"&&!!Calendly}static scheduleMeeting(y,h,v){const P=y.queryString().indexOf("utm_source")>=0?y.queryString():"?utm_source=seth_contact&utm_medium=personal_medium&utm_campaign=seth_convo&utm_content=personal_convo";Calendly.initPopupWidget({url:v+P}),h.trackConversion("AW-808814079/zB-eCKGL9vgBEP-L1oED"),s.c.trackEvent({category:I.l_.scheduleMeeting,action:I.bi.click,label:null})}}var l=r(54438),b=r(5430),M=r(93738),R=r(99213),w=r(46879),d=r(60177),N=r(99053),D=r(96702);function V(C,y){if(1&C){const h=l.RV6();l.j41(0,"wb-button",12),l.bIt("click",function(){l.eBV(h);const P=l.XpG();return l.Njj(P.scheduleMeeting())}),l.EFF(1,"Schedule a Demo"),l.k0s()}}function G(C,y){if(1&C){const h=l.RV6();l.j41(0,"button",17),l.bIt("click",function(){const P=l.eBV(h).$implicit,X=l.XpG(3);return l.Njj(X.onWatchVideo(P.id))}),l.EFF(1),l.k0s()}if(2&C){const h=y.$implicit;l.R7$(),l.JRh(h.name)}}function F(C,y){if(1&C&&(l.qex(0),l.j41(1,"div",14)(2,"mat-icon"),l.EFF(3,"play_circle"),l.k0s(),l.EFF(4," Watch a Video to Learn More "),l.k0s(),l.j41(5,"mat-menu",15,1),l.DNE(7,G,2,1,"button",16),l.k0s(),l.bVm()),2&C){const h=l.sdS(6),v=l.XpG(2);l.R7$(),l.Y8G("matMenuTriggerFor",h),l.R7$(4),l.Y8G("overlapTrigger",!1),l.R7$(2),l.Y8G("ngForOf",v.videos)}}function E(C,y){if(1&C){const h=l.RV6();l.j41(0,"div",18),l.bIt("click",function(){l.eBV(h);const P=l.XpG(2);return l.Njj(P.onWatchVideo(P.videos[0].id))}),l.j41(1,"mat-icon"),l.EFF(2,"play_circle"),l.k0s(),l.EFF(3," Watch a Video to Learn More "),l.k0s()}}function S(C,y){if(1&C&&(l.qex(0),l.DNE(1,F,8,3,"ng-container",13)(2,E,4,0,"ng-template",null,0,l.C5r),l.bVm()),2&C){const h=l.sdS(3),v=l.XpG();l.R7$(),l.Y8G("ngIf",v.videos.length>1)("ngIfElse",h)}}let A=(()=>{class C extends j.$G{constructor(h,v,P){super(h),this.platformUI=v,this.analyticsService=P}onWatchVideo(h){this.appService.notify(new k.U2({component:j.dn,size:"full",model:{url:`https://www.youtube.com/embed/${h}?autoplay=1`}}))}hasCalendly(){return c.hasCalendly()}scheduleMeeting(){c.scheduleMeeting(this.platformUI,this.analyticsService,e.T.SalesCalendlyLink)}static{this.\u0275fac=function(v){return new(v||C)(l.rXU(b.d3),l.rXU(M.W),l.rXU(b.cu))}}static{this.\u0275cmp=l.VBU({type:C,selectors:[["wb-admin-platform-coach"]],inputs:{message:"message",videos:"videos"},features:[l.Vt3],decls:12,vars:3,consts:[["singleTemplate",""],["videoMenu","matMenu"],[1,"coach-container"],[1,"coach-img-container"],["src","/assets/images/logo.png","alt","Setup Coach"],[1,"coach-msg-container"],[1,"coach-arrow"],[1,"coach-msg"],[3,"innerHTML"],[1,"clearfix"],["class","mgn t1 right","type","remove","size","small","btnClass","alert",3,"click",4,"ngIf"],[4,"ngIf"],["type","remove","size","small","btnClass","alert",1,"mgn","t1","right",3,"click"],[4,"ngIf","ngIfElse"],[1,"coach-video",3,"matMenuTriggerFor"],[3,"overlapTrigger"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[1,"coach-video",3,"click"]],template:function(v,P){1&v&&(l.j41(0,"div",2)(1,"div",3),l.nrm(2,"img",4),l.j41(3,"div"),l.EFF(4,"WealthBlock"),l.k0s()(),l.j41(5,"div",5),l.nrm(6,"div",6),l.j41(7,"div",7),l.nrm(8,"div",8),l.j41(9,"div",9),l.DNE(10,V,2,0,"wb-button",10),l.k0s(),l.DNE(11,S,4,2,"ng-container",11),l.k0s()()()),2&v&&(l.R7$(8),l.Y8G("innerHTML",P.message,l.npT),l.R7$(2),l.Y8G("ngIf",P.hasCalendly()),l.R7$(),l.Y8G("ngIf",P.videos))},dependencies:[R.An,w.pI,w.gy,w.fS,d.Sq,d.bT,N.cF,N.Mq,D.Q],styles:['[_ngcontent-%COMP%]:root{--brand-primary: #100001;--brand-secondary: #100006;--brand-alert: #100011;--brand-success: #100016;--brand-warn: #100021;--brand-shout: #100026;--border-default: #edeef0}html[_ngcontent-%COMP%]{font-size:62.5%}body[_ngcontent-%COMP%]{font-size:1.4rem}h1[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h2[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h3[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h4[_ng
1content-%COMP%] a[_ngcontent-%COMP%], h5[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h6[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-weight:inherit}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{line-height:1.1}h1[_ngcontent-%COMP%]{font-size:2.9rem;font-weight:500}h2[_ngcontent-%COMP%]{font-size:2.5rem;font-weight:500}h3[_ngcontent-%COMP%]{font-size:2.1rem;font-weight:500}h4[_ngcontent-%COMP%]{font-size:1.7rem;font-weight:400}h5[_ngcontent-%COMP%]{font-size:1.3rem;font-weight:400}h6[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:500;text-transform:uppercase}.coach-container[_ngcontent-%COMP%]{zoom:1}.coach-container[_ngcontent-%COMP%]:before, .coach-container[_ngcontent-%COMP%]:after{display:table;content:"";line-height:0}.coach-container[_ngcontent-%COMP%]:after{clear:both}.coach-img-container[_ngcontent-%COMP%]{float:left;font-weight:500;text-align:center}.coach-img-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{box-shadow:0 2px 8px #00000024;border-radius:50%;width:82px;display:block}.coach-img-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin-top:2px}@media (max-width: 992px){.coach-img-container[_ngcontent-%COMP%]{display:none}}.coach-msg-container[_ngcontent-%COMP%]{text-align:left;float:left;position:relative;margin-left:25px;box-shadow:0 2px 8px #00000024}.coach-msg-container[_ngcontent-%COMP%] .coach-arrow[_ngcontent-%COMP%]{width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent;border-right:12px solid #ffffff;position:absolute;top:12px;left:-12px}.coach-msg-container[_ngcontent-%COMP%] .coach-msg[_ngcontent-%COMP%]{padding:20px;width:340px;border-radius:8px;background:#fff}.coach-video[_ngcontent-%COMP%]{padding-top:20px;cursor:pointer;color:#100001}.coach-video[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:2rem;position:relative;top:4px}.coach-video[_ngcontent-%COMP%]:hover{color:#100002}']})}}return C})()},62757:(U,T,r)=>{r.d(T,{u:()=>To});var j=r(10467),e=r(54438),k=r(94092),I=r(58811),s=r(17782),c=r(66831),l=r(25599),b=r(81361),M=r(44818),R=r(30162),w=r(23135),d=r(5430),N=r(93738),D=r(36138),V=r(345),G=r(17279),F=r(44613),E=r(224),S=r(88588),A=r(83269),C=r(99213),y=r(66737),h=r(20962),v=r(84579),P=r(76233),X=r(18017),g=r(60177),u=r(89417),m=r(99053),f=r(96702),x=r(91018),L=r(32118),O=r(67642),Y=r(68485),B=r(36540),Q=r(80022),Z=r(65293),J=r(16881),H=r(54348),$=r(32864);const W=i=>({url:i});function ee(i,_){if(1&i){const n=e.RV6();e.j41(0,"wb-file-upload",15),e.bIt("done",function(t){e.eBV(n);const o=e.XpG();return e.Njj(o.config.landingPageImage=t.url)})("fileRemoved",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.config.landingPageImage=null)}),e.k0s()}if(2&i){const n=e.XpG();e.Y8G("fileInfo",e.eq3(3,W,n.config.landingPageImage))("uploadInfo",n.getUploadInfo)("showPreview",!0)}}function ne(i,_){if(1&i){const n=e.RV6();e.j41(0,"div")(1,"wb-file-upload",16),e.bIt("done",function(t){e.eBV(n);const o=e.XpG();return e.Njj(o.config.loginPageImage=t.url)})("fileRemoved",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.config.loginPageImage=null)}),e.k0s()()}if(2&i){const n=e.XpG();e.R7$(),e.Y8G("fileInfo",e.eq3(3,W,n.config.loginPageImage))("uploadInfo",n.getUploadInfo)("showPreview",!0)}}function te(i,_){if(1&i){const n=e.RV6();e.qex(0),e.j41(1,"div",2)(2,"mat-checkbox",20),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(2);return e.DH7(o.config.disableLandingPageMask,t)||(o.config.disableLandingPageMask=t),e.Njj(t)}),e.EFF(3,"Disable Hero Image Mask"),e.k0s()(),e.j41(4,"div",2)(5,"mat-checkbox",21),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(2);return e.DH7(o.config.landingPageRegister,t)||(o.config.landingPageRegister=t),e.Njj(t)}),e.EFF(6,"Show Registration Form (defaults to: Login)"),e.k0s()(),e.j41(7,"div",2)(8,"mat-form-field",22)(9,"mat-label"),e.EFF(10,'Log In Button Text (defaults to: "Log In")'),e.k0s(),e.j41(11,"input",23),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(2);return e.DH7(o.config.landingPageCTA,t)||(o.config.landingPageCTA=t),e.Njj(t)}),e.bIt("ngModelChange",function(){e.eBV(n);const t=e.XpG(2);return e.Njj(t.smartDefaultRegister())}),e.k0s()()(),e.bVm()}if(2&i){const n=e.XpG(2);e.R7$(2),e.R50("ngModel",n.config.disableLandingPageMask),e.R7$(3),e.R50("ngModel",n.config.landingPageRegister),e.R7$(6),e.R50("ngModel",n.config.landingPageCTA)}}function oe(i,_){if(1&i){const n=e.RV6();e.qex(0),e.j41(1,"div",2)(2,"mat-checkbox",24),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(2);return e.DH7(o.config.showLoginPageHeader,t)||(o.config.showLoginPageHeader=t),e.Njj(t)}),e.EFF(3,"Show Header Navigation Bar"),e.k0s()(),e.j41(4,"div",2)(5,"mat-checkbox",21),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(2);return e.DH7(o.config.landingPageRegister,t)||(o.config.landingPageRegister=t),e.Njj(t)}),e.EFF(6,"Show Registration Form (defaults to: Login)"),e.k0s()(),e.j41(7,"div",25)(8,"mat-form-field",22)(9,"mat-label"),e.EFF(10,"Log In Form Title"),e.k0s(),e.j41(11,"input",26),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(2);return e.DH7(o.config.loginPageTitle,t)||(o.config.loginPageTitle=t),e.Njj(t)}),e.k0s()()(),e.j41(12,"div",25)(13,"mat-form-field",22)(14,"mat-label"),e.EFF(15,"Sign Up Form Title"),e.k0s(),e.j41(16,"input",27),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(2);return e.DH7(o.config.signupPageTitle,t)||(o.config.signupPageTitle=t),e.Njj(t)}),e.k0s()()(),e.bVm()}if(2&i){const n=e.XpG(2);e.R7$(2),e.R50("ngModel",n.config.showLoginPageHeader),e.R7$(3),e.R50("ngModel",n.config.landingPageRegister),e.R7$(6),e.R50("ngModel",n.config.loginPageTitle),e.R7$(5),e.R50("ngModel",n.config.signupPageTitle)}}function ie(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",17)(1,"div",1),e.DNE(2,te,12,3,"ng-container",10)(3,oe,17,4,"ng-container",10),e.j41(4,"div",2)(5,"h5",18),e.EFF(6,"Optional Custom HTML (appears above tag line)"),e.k0s(),e.j41(7,"wb-rich-text-editor",19),e.mxI("valueChange",function(t){e.eBV(n);const o=e.XpG();return e.DH7(o.config.landingPageHTML,t)||(o.config.landingPageHTML=t),e.Njj(t)}),e.k0s()()()()}if(2&i){const n=e.XpG();e.R7$(2),e.Y8G("ngIf",n.config.defaultLandingPage===n.PlatformLandingPage.Default),e.R7$(),e.Y8G("ngIf",n.config.defaultLandingPage===n.PlatformLandingPage.Login),e.R7$(4),e.R50("value",n.config.landingPageHTML),e.Y8G("allowHtml",!0)}}function ae(i,_){if(1&i&&(e.j41(0,"mat-option",32),e.EFF(1),e.k0s()),2&i){const n=_.$implicit;e.Y8G("value",n.value),e.R7$(),e.JRh(n.name)}}function ce(i,_){if(1&i&&(e.j41(0,"mat-optgroup",37),e.DNE(1,ae,2,2,"mat-option",38),e.k0s()),2&i){const n=_.$implicit;e.Y8G("label",n.name),e.R7$(),e.Y8G("ngForOf",n.options)}}function _e(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",29)(1,"mat-form-field",22)(2,"mat-label"),e.EFF(3,"List Restrictions"),e.k0s(),e.j41(4,"mat-select",35),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG().index,p=e.XpG();return e.DH7(p.config.landingPageNav[o].listIds,t)||(p.config.landingPageNav[o].listIds=t),e.Njj(t)}),e.DNE(5,ce,2,2,"mat-optgroup",36),e.k0s()()()}if(2&i){const n=e.XpG().index,a=e.XpG();e.R7$(4),e.Mz_("name","landingPageNavListIds",n,""),e.R50("ngModel",a.config.landingPageNav[n].listIds),e.Y8G("multiple",!0),e.R7$(),e.Y8G("ngForOf",a.accountSelectLists)}}function le(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",28)(1,"div",1)(2,"div",29)(3,"mat-form-field",22)(4,"mat-label"),e.EFF(5,"Link Name"),e.k0s(),e.j41(6,"input",30),e.mxI("ngModelChange",function(t){const o=e.eBV(n).index,p=e.XpG();return e.DH7(p.config.landingPageNav[o].name,t)||(p.config.landingPageNav[o].name=t),e.Njj(t)}),e.k0s()()(),e.j41(7,"div",29)(8,"mat-form-field",22)(9,"mat-label"),e.EFF(10,"Full Link URL (e.g. https://www.google.com)"),e.k0s(),e.j41(11,"input",30),e.mxI("ngModelChange",function(t){const o=e.eBV(n).index,p=e.XpG();return e.DH7(p.config.landingPageNav[o].url,t)||(p.config.landingPageNav[o].url=t),e.Njj(t)}),e.k0s()()(),e.j41(12,"div",29)(13,"mat-form-field",22)(14,"mat-label"),e.EFF(15,"Visibility"),e.k0s(),e.j41(16,"mat-select",31),e.mxI("ngModelChange",function(t){const o=e.eBV(n).index,p=e.XpG();return e.DH7(p.config.landingPageNav[o].vis,t)||(p.config.landingPageNav[o].vis=t),e.Njj(t)}),e.j41(17,"mat-option",32),e.EFF(18,"Public"),e.k0s(),e.j41(19,"mat-option",32),e.EFF(20,"Logged In"),e.k0s()()()(),e.DNE(21,_e,6,5,"div",33),e.j41(22,"div",29)(23,"mat-form-field",22)(24,"mat-label"),e.EFF(25,"Position"),e.k0s(),e.j41(26,"mat-select",31),e.mxI("ngModelChange",function(t){const o=e.eBV(n).index,p=e.XpG();return e.DH7(p.config.landingPageNav[o].left,t)||(p.config.landingPageNav[o].left=t),e.Njj(t)}),e.j41(27,"mat-option",32),e.EFF(28,"Right"),e.k0s(),e.j41(29,"mat-option",32),e.EFF(30,"Left"),e.k0s()()()(),e.j41(31,"div",29)(32,"mat-form-field",22)(33,"mat-label"),e.EFF(34,"Open In"),e.k0s(),e.j41(35,"mat-select",31),e.mxI("ngModelChange",function(t){const o=e.eBV(n).index,p=e.XpG();return e.DH7(p.config.landingPageNav[o].newTab,t)||(p.config.landingPageNav[o].newTab=t),e.Njj(t)}),e.j41(36,"mat-option",32),e.EFF(37,"Same Tab"),e.k0s(),e.j41(38,"mat-option",32),e.EFF(39,"New Tab"),e.k0s()()()()(),e.j41(40,"mat-icon",34),e.bIt("click",function(){const t=e.eBV(n).index,o=e.XpG();return e.Njj(o.removeLandingPageNav(t))}),e.EFF(41,"delete"),e.k0s()()}if(2&i){const n=_.index,a=e.XpG();e.R7$(6),e.Mz_("name","landingPageNavName",n,""),e.R50("ngModel",a.config.landingPageNav[n].name),e.R7$(5),e.Mz_("name","landingPageNavUrl",n,""),e.R50("ngModel",a.config.landingPageNav[n].url),e.R7$(5),e.Mz_("name","landingPageNavVis",n,""),e.R50("ngModel",a.config.landingPageNav[n].vis),e.R7$(),e.Y8G("value",a.PlatformLandingPageNavVisibility.Public),e.R7$(2),e.Y8G("value",a.PlatformLandingPageNavVisibility.LoggedIn),e.R7$(2),e.Y8G("ngIf",!a.isPublic(n)),e.R7$(5),e.Mz_("name","landingPageNavLeft",n,""),e.R50("ngModel",a.config.landingPageNav[n].left),e.R7$(),e.Y8G("value",!1),e.R7$(2),e.Y8G("value",!0),e.R7$(6),e.Mz_("name","landingPageNavNewTab",n,""),e.R50("ngModel",a.config.landingPageNav[n].newTab),e.R7$(),e.Y8G("value",!1),e.R7$(2),e.Y8G("value",!0)}}let re=(()=>{class i extends k.$G{constructor(n,a,t,o,p){super(n),this.platformService=a,this.accountListService=t,this.accountModelService=o,this.formService=p,this.PlatformLandingPage=s.UYF,this.PlatformLandingPageNavVisibility=s.P8S,this.getUploadInfo=z=>this.platformService.getUploadInfo(z)}ngOnInit(){this.formService.getAll().then(n=>{this.accountListService.getLists(this.accountModelService.selectedAccount.id,!0).then(a=>{this.accountSelectLists=k.Oj.getOptionsList(a,n)})})}isPublic(n){return this.config.landingPageNav[n].vis===s.P8S.Public}addLandingPageNav(){this.config.landingPageNav||(this.config.landingPageNav=[]),this.config.landingPageNav.push(new s.lRj)}removeLandingPageNav(n){this.config.landingPageNav.splice(n,1)}smartDefaultRegister(){if(this.config.landingPageCTA){const n=this.config.landingPageCTA.toLowerCase();(n.indexOf("register")>-1||n.indexOf("join")>-1||n.indexOf("up")>-1||n.indexOf("learn")>-1||n.indexOf("access")>-1)&&(this.config.landingPageRegister=!0)}}static{this.\u0275fac=function(a){return new(a||i)(e.rXU(d.d3),e.rXU(d.fP),e.rXU(d.LW),e.rXU(d.UF),e.rXU(d.ux))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["wb-admin-landing-page"]],inputs:{config:"config"},features:[e.Vt3],decls:33,vars:17,consts:[[1,"row","landing-page"],[1,"row"],[1,"col","s12"],[3,"valueChange","value"],[1,"col","s12","l4"],["imgSrc","/assets/images/icons/landing-page-simple.png",3,"value","contentHeight"],["imgSrc","/assets/images/icons/landing-page-login.png",3,"value","contentHeight"],["imgSrc","/assets/images/icons/landing-page-marketplace.png",3,"value","contentHeight"],[1,"col","s12","l6"],["title","Default Landing Page Hero Image",3,"fileInfo","uploadInfo","showPreview","done","fileRemoved",4,"ngIf"],[4,"ngIf"],["class","col s12 l6 landing-page-settings",4,"ngIf"],["size","small",3,"click"],[1,"landing-page-nav-wrapper"],["class","landing-page-nav",4,"ngFor","ngForOf"],["t
1itle","Default Landing Page Hero Image",3,"done","fileRemoved","fileInfo","uploadInfo","showPreview"],["title","Optional Background Image",3,"done","fileRemoved","fileInfo","uploadInfo","showPreview"],[1,"col","s12","l6","landing-page-settings"],[1,"mgn","t0"],["name","landingPageHTML",3,"valueChange","value","allowHtml"],["name","disableLandingPageMask",3,"ngModelChange","ngModel"],["name","landingPageRegister",3,"ngModelChange","ngModel"],["appearance","outline"],["autocomplete","off","type","text","matInput","","name","landingPageCTA",3,"ngModelChange","ngModel"],["name","showLoginPageHeader",3,"ngModelChange","ngModel"],[1,"col","s6"],["autocomplete","off","type","text","matInput","","name","loginPageTitle",3,"ngModelChange","ngModel"],["autocomplete","off","type","text","matInput","","name","signupPageTitle",3,"ngModelChange","ngModel"],[1,"landing-page-nav"],[1,"col","s12","l2"],["autocomplete","off","type","text","matInput","",3,"ngModelChange","ngModel","name"],[3,"ngModelChange","ngModel","name"],[3,"value"],["class","col s12 l2",4,"ngIf"],[1,"hover",3,"click"],[3,"ngModelChange","ngModel","multiple","name"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],[3,"value",4,"ngFor","ngForOf"]],template:function(a,t){1&a&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3"),e.EFF(4,"Landing Page"),e.k0s()()(),e.j41(5,"div",1)(6,"wb-radio-card-group",3),e.mxI("valueChange",function(p){return e.DH7(t.config.defaultLandingPage,p)||(t.config.defaultLandingPage=p),p}),e.j41(7,"div",4)(8,"wb-radio-card",5)(9,"h5"),e.EFF(10,"Simple (Default)"),e.k0s(),e.EFF(11," Hero image, nav bar, and call-to-action "),e.k0s()(),e.j41(12,"div",4)(13,"wb-radio-card",6)(14,"h5"),e.EFF(15,"Login Form"),e.k0s(),e.EFF(16," A simple login form. "),e.k0s()(),e.j41(17,"div",4)(18,"wb-radio-card",7)(19,"h5"),e.EFF(20,"Marketplace"),e.k0s(),e.EFF(21," Show the marketplace. "),e.k0s()()()(),e.j41(22,"div",1)(23,"div",8),e.DNE(24,ee,1,5,"wb-file-upload",9)(25,ne,2,5,"div",10),e.k0s(),e.DNE(26,ie,8,4,"div",11),e.j41(27,"div",2)(28,"div")(29,"wb-button",12),e.bIt("click",function(){return t.addLandingPageNav()}),e.EFF(30,"Add Navigation Link"),e.k0s()(),e.j41(31,"div",13),e.DNE(32,le,42,22,"div",14),e.k0s()()()()),2&a&&(e.R7$(6),e.R50("value",t.config.defaultLandingPage),e.R7$(2),e.AVh("selected",t.config.defaultLandingPage===t.PlatformLandingPage.Default),e.Y8G("value",t.PlatformLandingPage.Default)("contentHeight",60),e.R7$(5),e.AVh("selected",t.config.defaultLandingPage===t.PlatformLandingPage.Login),e.Y8G("value",t.PlatformLandingPage.Login)("contentHeight",60),e.R7$(5),e.AVh("selected",t.config.defaultLandingPage===t.PlatformLandingPage.Marketplace),e.Y8G("value",t.PlatformLandingPage.Marketplace)("contentHeight",60),e.R7$(6),e.Y8G("ngIf",t.config.defaultLandingPage===t.PlatformLandingPage.Default),e.R7$(),e.Y8G("ngIf",t.config.defaultLandingPage===t.PlatformLandingPage.Login),e.R7$(),e.Y8G("ngIf",t.config.defaultLandingPage!==t.PlatformLandingPage.Marketplace),e.R7$(6),e.Y8G("ngForOf",t.config.landingPageNav))},dependencies:[G.NZ,F.Ky,F.aw,E.aL,S.cu,A.d1,A.Oh,C.An,g.Sq,g.bT,u.me,u.BC,u.vS,m.cF,m.rc,f.Q,O.P,$.u,$.b,B.q],styles:["[_ngcontent-%COMP%]:root{--brand-primary: #100001;--brand-secondary: #100006;--brand-alert: #100011;--brand-success: #100016;--brand-warn: #100021;--brand-shout: #100026;--border-default: #edeef0}html[_ngcontent-%COMP%]{font-size:62.5%}body[_ngcontent-%COMP%]{font-size:1.4rem}h1[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h2[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h3[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h4[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h5[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h6[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-weight:inherit}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{line-height:1.1}h1[_ngcontent-%COMP%]{font-size:2.9rem;font-weight:500}h2[_ngcontent-%COMP%]{font-size:2.5rem;font-weight:500}h3[_ngcontent-%COMP%]{font-size:2.1rem;font-weight:500}h4[_ngcontent-%COMP%]{font-size:1.7rem;font-weight:400}h5[_ngcontent-%COMP%]{font-size:1.3rem;font-weight:400}h6[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:500;text-transform:uppercase}h3[_ngcontent-%COMP%]{font-weight:300;color:#344551;margin-top:1.46rem;margin-bottom:20px;text-transform:uppercase}h3[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:1.3rem}mat-card[_ngcontent-%COMP%]{padding:16px 40px 40px;margin-bottom:20px}@media (max-width: 992px){mat-card[_ngcontent-%COMP%]{padding:10px}}mat-form-field[_ngcontent-%COMP%]{width:100%}.buttons[_ngcontent-%COMP%]{margin-top:20px;text-align:center}wb-file-upload[_ngcontent-%COMP%]{display:block;margin-bottom:30px}.landing-page-settings[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]{margin-bottom:5px}.landing-page-settings[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:78px}mat-icon.help[_ngcontent-%COMP%]{position:relative;font-size:1.7rem;top:3px;left:4px}.landing-page-nav-wrapper[_ngcontent-%COMP%]{margin-top:30px}.landing-page-nav[_ngcontent-%COMP%]{position:relative;padding-right:10px}.landing-page-nav[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#bbc0cd;position:absolute;top:16px;right:-15px}wb-radio-card[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-weight:500;font-size:1.5rem}wb-radio-card.selected[_ngcontent-%COMP%]{color:#100001}"]})}}return i})();var se=r(60496),me=r(49750),ge=r(72142),de=r(20834);const pe=["customPageSelector"];function fe(i,_){if(1&i){const n=e.RV6();e.qex(0),e.j41(1,"wb-button",14),e.bIt("click",function(){e.eBV(n);const t=e.XpG(2);return e.Njj(t.preview())}),e.EFF(2,"Preview"),e.k0s(),e.j41(3,"wb-button",15),e.bIt("click",function(){e.eBV(n);const t=e.XpG(2);return e.Njj(t.onUpdateCustomPage())}),e.EFF(4,"Save Custom Page"),e.k0s(),e.bVm()}}function ue(i,_){if(1&i&&(e.j41(0,"mat-option",17),e.EFF(1),e.k0s()),2&i){const n=_.$implicit;e.Y8G("value",n),e.R7$(),e.JRh(n.slug)}}function he(i,_){if(1&i&&(e.qex(0),e.DNE(1,ue,2,2,"mat-option",16),e.bVm()),2&i){const n=e.XpG(2);e.R7$(),e.Y8G("ngForOf",n.customPages)}}function Ce(i,_){1&i&&e.nrm(0,"mat-progress-bar",18)}function be(i,_){if(1&i&&(e.j41(0,"mat-option",17),e.EFF(1),e.k0s()),2&i){const n=_.$implicit;e.Y8G("value",n._id),e.R7$(),e.SpI(" ",n.name," ")}}function ve(i,_){if(1&i){const n=e.RV6();e.j41(0,"mat-form-field",29)(1,"mat-label"),e.EFF(2,"Make this the Landing Page for only accounts on the selected lists..."),e.k0s(),e.j41(3,"mat-select",30),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.selectedCustomPage.settings.landingPageListIds,t)||(o.selectedCustomPage.settings.landingPageListIds=t),e.Njj(t)}),e.DNE(4,be,2,2,"mat-option",16),e.k0s()()}if(2&i){const n=e.XpG(3);e.R7$(3),e.R50("ngModel",n.selectedCustomPage.settings.landingPageListIds),e.R7$(),e.Y8G("ngForOf",n.accountLists)}}function Pe(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",19)(1,"div",20)(2,"div",21)(3,"h4"),e.EFF(4,"Page Settings"),e.k0s(),e.j41(5,"div")(6,"mat-form-field",22)(7,"mat-label"),e.EFF(8,"Page Slug (Path where the page will live. Only numbers, letters, hypens or underscores are valid.)"),e.k0s(),e.j41(9,"input",23),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(2);return e.DH7(o.selectedCustomPage.slug,t)||(o.selectedCustomPage.slug=t),e.Njj(t)}),e.bIt("blur",function(){e.eBV(n);const t=e.XpG(2);return e.Njj(t.validateSlug())}),e.k0s()(),e.j41(10,"p")(11,"span",24),e.EFF(12,"Full Page URL:"),e.k0s(),e.EFF(13,"\xa0"),e.j41(14,"a",25),e.EFF(15),e.k0s()()(),e.j41(16,"div")(17,"mat-checkbox",26),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(2);return e.DH7(o.selectedCustomPage.settings.hideContainer,t)||(o.selectedCustomPage.settings.hideContainer=t),e.Njj(t)}
1),e.EFF(18,"Hide Background Container"),e.k0s()(),e.j41(19,"div")(20,"mat-checkbox",26),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(2);return e.DH7(o.selectedCustomPage.settings.isLandingPage,t)||(o.selectedCustomPage.settings.isLandingPage=t),e.Njj(t)}),e.EFF(21,"Is Landing Page"),e.k0s()(),e.j41(22,"div"),e.DNE(23,ve,5,2,"mat-form-field",27),e.k0s()(),e.j41(24,"div",21)(25,"h4"),e.EFF(26,"Access Settings"),e.k0s(),e.j41(27,"wb-content-access-type",28),e.mxI("accessTypeChange",function(t){e.eBV(n);const o=e.XpG(2);return e.DH7(o.selectedCustomPage.accessType,t)||(o.selectedCustomPage.accessType=t),e.Njj(t)})("accessReferenceChange",function(t){e.eBV(n);const o=e.XpG(2);return e.DH7(o.selectedCustomPage.accessRef,t)||(o.selectedCustomPage.accessRef=t),e.Njj(t)}),e.k0s()()()()}if(2&i){const n=e.XpG(2);e.R7$(9),e.R50("ngModel",n.selectedCustomPage.slug),e.Y8G("disabled",n.selectedCustomPage._id),e.R7$(5),e.FCK("href","",n.platformUrl,"/",n.selectedCustomPage.slug,"",e.B4B),e.R7$(),e.Lme("",n.platformUrl,"/",n.selectedCustomPage.slug,""),e.R7$(2),e.R50("ngModel",n.selectedCustomPage.settings.hideContainer),e.R7$(3),e.R50("ngModel",n.selectedCustomPage.settings.isLandingPage),e.R7$(3),e.Y8G("ngIf",n.selectedCustomPage.settings.isLandingPage&&n.accountLists),e.R7$(4),e.R50("accessType",n.selectedCustomPage.accessType)("accessReference",n.selectedCustomPage.accessRef),e.Y8G("config",n.accessTypeConfig)}}function ke(i,_){if(1&i&&(e.j41(0,"div",35),e.nrm(1,"wb-content-manager",36),e.k0s()),2&i){const n=e.XpG(4);e.R7$(),e.Y8G("pageContents",n.pageContents)}}function Me(i,_){if(1&i&&e.nrm(0,"wb-content-renderer",37),2&i){const n=_.$implicit,a=_.index,t=e.XpG(4);e.Y8G("index",a)("content",n)("pageContents",t.pageContents)("manageMode",!0)}}function xe(i,_){if(1&i&&(e.j41(0,"mat-card",32),e.DNE(1,ke,2,1,"div",33)(2,Me,1,4,"wb-content-renderer",34),e.k0s()),2&i){const n=e.XpG(3);e.R7$(),e.Y8G("ngIf",0===n.pageContents.length),e.R7$(),e.Y8G("ngForOf",n.pageContents)}}function je(i,_){if(1&i){const n=e.RV6();e.j41(0,"mat-form-field",29)(1,"mat-label"),e.EFF(2,"Custom Script"),e.k0s(),e.j41(3,"textarea",38),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.selectedCustomPage.script,t)||(o.selectedCustomPage.script=t),e.Njj(t)}),e.k0s()()}if(2&i){const n=e.XpG(3);e.R7$(3),e.R50("ngModel",n.selectedCustomPage.script)}}function Ie(i,_){if(1&i){const n=e.RV6();e.j41(0,"wb-button",44),e.bIt("click",function(){e.eBV(n);const t=e.XpG(4);return e.Njj(t.onRemoveCustomPage())}),e.EFF(1,"Remove Custom Page"),e.k0s()}}function ye(i,_){if(1&i){const n=e.RV6();e.j41(0,"mat-card")(1,"div",39)(2,"wb-button",40),e.bIt("click",function(){e.eBV(n);const t=e.XpG(3);return e.Njj(t.onUpdateCustomPage())}),e.EFF(3,"Save Custom Page"),e.k0s(),e.DNE(4,Ie,2,0,"wb-button",41),e.j41(5,"wb-button",42),e.bIt("click",function(){e.eBV(n);const t=e.XpG(3);return e.Njj(t.preview())}),e.EFF(6,"Preview"),e.k0s(),e.j41(7,"wb-button",43),e.bIt("click",function(){e.eBV(n);const t=e.XpG(3);return e.Njj(t.cancelEdit())}),e.EFF(8,"Cancel"),e.k0s()()()}if(2&i){const n=e.XpG(3);e.R7$(2),e.Y8G("disabled",!n.selectedCustomPage.slug),e.R7$(2),e.Y8G("ngIf",n.selectedCustomPage._id),e.R7$(),e.Y8G("disabled",!n.selectedCustomPage.slug)}}function Fe(i,_){if(1&i&&(e.qex(0),e.DNE(1,xe,3,2,"mat-card",31),e.j41(2,"mat-card"),e.DNE(3,je,4,1,"mat-form-field",27),e.k0s(),e.DNE(4,ye,9,3,"mat-card",8),e.bVm()),2&i){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",n.pageContents),e.R7$(2),e.Y8G("ngIf",n.selectedCustomPage.script),e.R7$(),e.Y8G("ngIf",n.canUpdate)}}function we(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",3)(1,"mat-card",4)(2,"div",5)(3,"div",6)(4,"h3",7),e.EFF(5,"Custom Pages"),e.k0s(),e.DNE(6,fe,5,0,"ng-container",8),e.j41(7,"mat-form-field",9)(8,"mat-label"),e.EFF(9,"Select a Custom Page"),e.k0s(),e.j41(10,"mat-select",10,1),e.bIt("selectionChange",function(t){e.eBV(n);const o=e.XpG();return e.Njj(o.onLoadCustomPage(t.value))}),e.j41(12,"mat-option",11),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.onAddNewCustomPage())}),e.EFF(13,"Create a new page"),e.k0s(),e.DNE(14,he,2,1,"ng-container",8),e.k0s()()()(),e.DNE(15,Ce,1,0,"mat-progress-bar",12)(16,Pe,28,13,"div",13),e.k0s(),e.DNE(17,Fe,5,3,"ng-container",8),e.k0s()}if(2&i){const n=e.XpG();e.R7$(6),e.Y8G("ngIf",null==n.selectedCustomPage?null:n.selectedCustomPage.slug),e.R7$(6),e.Y8G("value",null),e.R7$(2),e.Y8G("ngIf",(null==n.customPages?null:n.customPages.length)>0),e.R7$(),e.Y8G("ngIf",!n.customPages),e.R7$(),e.Y8G("ngIf",n.selectedCustomPage),e.R7$(),e.Y8G("ngIf",n.selectedCustomPage)}}function Ae(i,_){if(1&i){const n=e.RV6();e.j41(0,"wb-button",45),e.bIt("click",function(){e.eBV(n);const t=e.XpG();
1return e.Njj(t.edit())}),e.EFF(1,"Close"),e.k0s(),e.j41(2,"div",46),e.nrm(3,"wb-custom-page",47),e.k0s(),e.j41(4,"wb-button",45),e.bIt("click",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.edit())}),e.EFF(5,"Close"),e.k0s()}if(2&i){const n=e.XpG();e.R7$(3),e.Y8G("showPreview",!0)("slug",n.selectedCustomPage.slug)}}let Te=(()=>{class i extends k.$G{constructor(n,a,t,o,p){super(n),this.accountModelService=a,this.accountListService=t,this.platformService=o,this.contentService=p}ngOnInit(){this.platformUrl=this.platformService.getUrl(),this.accessTypeConfig={label:"Who can view this page?",types:[{type:s.lWF.None,label:"Everyone"},{type:s.lWF.SignIn,label:"Signed in users"},{type:s.lWF.AccountList,label:"User on the selected account lists"}]},this.loadCustomPages()}loadCustomPages(){this.platformService.getCustomPages().then(n=>this.customPages=n.data)}onAddNewCustomPage(){setTimeout(()=>l.T.EnableOverflow=!0),this.selectedCustomPage={slug:"",content:[],settings:{}},this.pageContents=[],this.initAccountLists()}onLoadCustomPage(n){var a=this;return(0,j.A)(function*(){if(!n)return;setTimeout(()=>l.T.EnableOverflow=!0);const t=yield a.platformService.getCustomPage(n.slug);if(a.selectedCustomPage=t.data,a.selectedCustomPage.settings||(a.selectedCustomPage.settings={}),a.selectedCustomPage.content)a.pageContents=yield a.contentService.getByIds(a.selectedCustomPage.content,!0);else{let o=new s.UCW(s.cME.HTML);o.blocks=[{type:s.cME.HTML,data:[a.selectedCustomPage.html]}],o=yield a.contentService.add(o),a.selectedCustomPage.content=[o._id.toString()],delete a.selectedCustomPage.html,a.pageContents=yield a.contentService.getByIds(a.selectedCustomPage.content,!0),yield a.onUpdateCustomPage()}a.initAccountLists()})()}validateSlug(){this.selectedCustomPage._id||(this.selectedCustomPage.slug=b.y_.toSafeId(this.selectedCustomPage.slug)),["home","offerings","portfolio","account","dashboard","dcouments","manage","analytics","network","transactions","admin"].indexOf(this.selectedCustomPage.slug)>-1&&(this.appService.notify(new c.L_(c.U7.Error(`The slug '${this.selectedCustomPage.slug}' is reserved and restricted from use. Please enter a different slug.`))),this.selectedCustomPage.slug="")}onUpdateCustomPage(){this.selectedCustomPage.content=[];for(let a,n=0;a=this.pageContents[n];n++)this.selectedCustomPage.content.push(a._id.toString());this.pageContents.forEach(n=>{n&&typeof n.selected<"u"&&this.contentService.update(n)}),this.platformService.updateCustomPage(this.selectedCustomPage).then(n=>{n.success&&(this.selectedCustomPage._id||(this.selectedCustomPage._id=n.data._id,this.customPages.push(this.selectedCustomPage)),this.appService.notify(new c.L_(c.U7.Info("The custom page has been updated successfully"))))})}onRemoveCustomPage(){this.appService.notify(new M.U2({title:"Delete Update",text:`Are you sure you want to remove the custom page /${this.selectedCustomPage.slug}?`,eventHandlers:{submit:()=>{this.platformService.removeCustomPage(this.selectedCustomPage.slug).then(n=>{n.success&&(this.customPages.splice(this.customPages.findIndex(a=>a._id===this.selectedCustomPage._id),1),this.closePage(),this.appService.notify(new c.L_(c.U7.Info("The custom page has been removed"))))})}}}))}closePage(){this.selectedCustomPage=null,this.customPageSelector.value=null}cancelEdit(){this.closePage()}initAccountLists(){var n=this;return(0,j.A)(function*(){if(!n.accountLists){const a=yield n.accountListService.getLists(n.accountModelService.selectedAccount.id,!0);n.accountLists=b.y_.sort(a,"name")}})()}preview(){this.showPreview=!0}edit(){this.showPreview=!1}ngOnDestroy(){setTimeout(()=>l.T.EnableOverflow=!1)}static{this.\u0275fac=function(a){return new(a||i)(e.rXU(d.d3),e.rXU(d.UF),e.rXU(d.LW),e.rXU(d.fP),e.rXU(d.fH))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["wb-custom-page-admin"]],viewQuery:function(a,t){if(1&a&&e.GBs(pe,5),2&a){let o;e.mGM(o=e.lsd())&&(t.customPageSelector=o.first)}},inputs:{canUpdate:"canUpdate"},features:[e.Vt3],decls:3,vars:2,consts:[["previewPage",""],["customPageSelector",""],["class","custom-pages",4,"ngIf","ngIfElse"],[1,"custom-pages"],[1,"mat-elevation-z7","header-card"],[1,"row","header"],[1,"col","s12"],[1,"left"],[4,"ngIf"],["appearance","outline","size","small",1,"right"],[3,"selectionChange"],[1,"new-option",3,"click","value"],["mode","indeterminate",4,"ngIf"],["class","page-settings",4,"ngIf"],["type","cancel","size","small",1,"right",3,"click"],["type","submit","size","small",1,"right",3,"click"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["mode","indeterminate"],[1,"page-settings"],[1,"row"],[1,"col","s12","l6"],["appearance","outline",1,"no-margin"],["autocomplete","off","type","text","matInput","","name","slug",3,"ngModelChange","blur","ngModel","disabled"],[1,"semibold"],["target","_blank",3,"href"],[3,"ngModelChange","ngModel"],["appearance","outline",4,"ngIf"],[3,"accessTypeChange","accessReferenceChange","accessType","accessReference","config"],["appearance","outline"],["name","landingPageListIds","multiple","",3,"ngModelChange","ngModel"],["class","builder",4,"ngIf"],[1,"builder"],["class","no-content",4,"ngIf"],[3,"index","content","pageContents","manageMode",4,"ngFor","ngForOf"],[1,"no-content"],[3,"pageContents"],[3,"index","content","pageContents","manageMode"],["rows","10","matInput","","name","customScript",2,"width","100%",3,"ngModelChange","ngModel"],[1,"center"],["size","small",3,"click","disabled"],["type","remove","size","small",3,"click",4,"ngIf"],["size","small","type","cancel",3,"click","disabled"],["size","small","type","cancel",3,"click"],["type","remove","size","small",3,"click"],["size","small","type","action",1,"right",3,"click"],[1,"page-preview"],[3,"showPreview","slug"]],template:function(a,t){if(1&a&&e.DNE(0,we,18,6,"div",2)(1,Ae,6,2,"ng-template",null,0,e.C5r),2&a){const o=e.sdS(2);e.Y8G("ngIf",!t.showPreview)("ngIfElse",o)}},dependencies:[G.NZ,F.Ky,F.aw,E.aL,S.cu,A.d1,h._m,v.oM,g.Sq,g.bT,u.me,u.BC,u.vS,m.TX,m.rc,f.Q,se.R,me.Y,ge.k,de.k],styles:["[_ngcontent-%COMP%]:root{--brand-primary: #100001;--brand-secondary: #100006;--brand-alert: #100011;--brand-success: #100016;--brand-warn: #100021;--brand-shout: #100026;--border-default: #edeef0}html[_ngcontent-%COMP%]{font-size:62.5%}body[_ngcontent-%COMP%]{font-size:1.4rem}h1[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h2[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h3[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h4[_ng
1content-%COMP%] a[_ngcontent-%COMP%], h5[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h6[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-weight:inherit}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{line-height:1.1}h1[_ngcontent-%COMP%]{font-size:2.9rem;font-weight:500}h2[_ngcontent-%COMP%]{font-size:2.5rem;font-weight:500}h3[_ngcontent-%COMP%]{font-size:2.1rem;font-weight:500}h4[_ngcontent-%COMP%]{font-size:1.7rem;font-weight:400}h5[_ngcontent-%COMP%]{font-size:1.3rem;font-weight:400}h6[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:500;text-transform:uppercase}mat-form-field[_ngcontent-%COMP%]{width:100%}mat-card.header-card[_ngcontent-%COMP%]{padding:16px 40px 4px;margin-bottom:20px}@media (max-width: 992px){mat-card.header-card[_ngcontent-%COMP%]{padding:10px}}.header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-weight:300;color:#344551;margin-top:1.46rem;margin-bottom:20px;text-transform:uppercase}.header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:1.3rem}.header[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:200px;margin-left:10px}.page-settings[_ngcontent-%COMP%]{margin-top:30px}h4[_ngcontent-%COMP%]{font-weight:300;margin-bottom:20px}mat-card[_ngcontent-%COMP%]{padding:20px;margin-bottom:20px}@media (max-width: 992px){mat-card[_ngcontent-%COMP%]{padding:10px}}.custom-pages[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{position:relative;margin:7px 0 15px}.custom-pages[_ngcontent-%COMP%] wb-button[_ngcontent-%COMP%]{margin:0 0 0 10px}.page-preview[_ngcontent-%COMP%]{padding-top:5rem;padding-bottom:2rem}wb-content-access-type[_ngcontent-%COMP%]{position:relative;top:-2px}mat-card.builder[_ngcontent-%COMP%]{padding:0;min-height:180px}.no-content[_ngcontent-%COMP%]{position:relative;margin-left:calc(50% - 22.5px);padding-top:90px}"]})}}return i})();function Re(i,_){if(1&i&&(e.j41(0,"mat-card",4),e.nrm(1,"wb-admin-landing-page",5),e.k0s()),2&i){const n=e.XpG();e.R7$(),e.Y8G("config",n.config)}}function Ge(i,_){if(1&i&&e.nrm(0,"wb-custom-page-admin",6),2&i){const n=e.XpG();e.Y8G("canUpdate",n.canUpdate)}}let Ee=(()=>{class i extends k.$G{constructor(n,a){super(n),this.platformService=a}static{this.\u0275fac=function(a){return new(a||i)(e.rXU(d.d3),e.rXU(d.fP))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["wb-admin-pages"]],inputs:{config:"config",canUpdate:"canUpdate"},features:[e.Vt3],decls:5,vars:0,consts:[[1,"spacer","overflow"],["label","Landing Page"],["matTabContent",""],["label","Custom Page"],[1,"mat-elevation-z7"],[3,"config"],[3,"canUpdate"]],template:function(a,t){1&a&&(e.j41(0,"mat-tab-group",0)(1,"mat-tab",1),e.DNE(2,Re,2,1,"ng-template",2),e.k0s(),e.j41(3,"mat-tab",3),e.DNE(4,Ge,1,1,"ng-template",2),e.k0s()())},dependencies:[H.cR,H.pW,H.c_,h._m,re,Te],styles:["[_ngcontent-%COMP%]:root{--brand-primary: #100001;--brand-secondary: #100006;--brand-alert: #100011;--brand-success: #100016;--brand-warn: #100021;--brand-shout: #100026;--border-default: #edeef0}html[_ngcontent-%COMP%]{font-size:62.5%}body[_ngcontent-%COMP%]{font-size:1.4rem}h1[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h2[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h3[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h4[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h5[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h6[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-weight:inherit}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{line-height:1.1}h1[_ngcontent-%COMP%]{font-size:2.9rem;font-weight:500}h2[_ngcontent-%COMP%]{font-size:2.5rem;font-weight:500}h3[_ngcontent-%COMP%]{font-size:2.1rem;font-weight:500}h4[_ngcontent-%COMP%]{font-size:1.7rem;font-weight:400}h5[_ngcontent-%COMP%]{font-size:1.3rem;font-weight:400}h6[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:500;text-transform:uppercase}h3[_ngcontent-%COMP%]{font-weight:300;color:#344551;margin-top:1.46rem;margin-bottom:20px;text-transform:uppercase}h3[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:1.3rem}mat-card[_ngcontent-%COMP%]{padding:16px 40px 40px;margin-bottom:20px}@media (max-width: 992px){mat-card[_ngcontent-%COMP%]{padding:10px}}mat-form-field[_ngcontent-%COMP%]{width:100%}.buttons[_ngcontent-%COMP%]{margin-top:20px;text-align:center}wb-file-upload[_ngcontent-%COMP%]{display:block;margin-bottom:30px}.landing-page-settings[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]{margin-bottom:5px}.landing-page-settings[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:78px}mat-icon.help[_ngcontent-%COMP%]{position:relative;font-size:1.7rem;top:3px;left:4px}.landing-page-nav-wrapper[_ngcontent-%COMP%]{margin-top:30px}.landing-page-nav[_ngcontent-%COMP%]{position:relative;padding-right:10px}.landing-page-nav[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#bbc0cd;position:absolute;top:16px;right:-15px}wb-radio-card[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-weight:500;font-size:1.5rem}wb-radio-card.selected[_ngcontent-%COMP%]{color:#100001}"]})}}return i})();const Se=["stepper"],Ne=i=>({title:i}),q=i=>({url:i});function De(i,_){1&i&&e.nrm(0,"img",59)}function Ve(i,_){1&i&&(e.j41(0,"div",60)(1,"div",61),e.nrm(2,"img",62),e.k0s(),e.j41(3,"h3"),e.EFF(4,"A little bit about your platform"),e.k0s()())}function Xe(i,_){if(1&i){const n=e.RV6();e.qex(0,38),e.j41(1,"div",63)(2,"mat-form-field",35)(3,"mat-label"),e.EFF(4,"Website URL"),e.k0s(),e.j41(5,"input",64),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(2);return e.DH7(o.networkProfile.websiteUrl,t)||(o.networkProfile.websiteUrl=t),e.Njj(t)}),e.k0s()()(),e.j41(6,"div",63)(7,"mat-form-field",35)(8,"mat-label"),e.EFF(9,"LinkedIn URL"),e.k0s(),e.j41(10,"input",65),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(2);return e.DH7(o.networkProfile.linkedInUrl,t)||(o.networkProfile.linkedInUrl=t),e.Njj(t)}),e.k0s()()(),e.j41(11,"div",63)(12,"mat-form-field",35)(13,"mat-label"),e.EFF(14,"FINRA CRD
1Number"),e.k0s(),e.j41(15,"input",66),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(2);return e.DH7(o.networkProfile.crdNumber,t)||(o.networkProfile.crdNumber=t),e.Njj(t)}),e.k0s()()(),e.bVm()}if(2&i){const n=e.XpG(2);e.R7$(5),e.R50("ngModel",n.networkProfile.websiteUrl),e.R7$(5),e.R50("ngModel",n.networkProfile.linkedInUrl),e.R7$(5),e.R50("ngModel",n.networkProfile.crdNumber)}}function Oe(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",38)(1,"h3"),e.EFF(2,"Header Logo "),e.j41(3,"span"),e.EFF(4,"(optional)"),e.k0s(),e.nrm(5,"wb-help",45),e.k0s(),e.j41(6,"wb-file-upload",67),e.bIt("fileRemoved",function(){e.eBV(n);const t=e.XpG(2);return e.Njj(t.config.logoHdr=null)})("done",function(t){e.eBV(n);const o=e.XpG(2);return e.Njj(o.onHeaderLogoUploadComplete(t))}),e.k0s()()}if(2&i){const n=e.XpG(2);e.AVh("l6",!n.canUpdateFavicon)("l4",n.canUpdateFavicon),e.R7$(5),e.Y8G("top",7)("left",8),e.R7$(),e.Y8G("fileInfo",e.eq3(9,q,n.config.logoHdr))("uploadInfo",n.getUploadInfo)("showPreview",!0)}}function Be(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",63)(1,"h3"),e.EFF(2,"Favicon "),e.nrm(3,"wb-help",45),e.k0s(),e.j41(4,"wb-file-upload",68),e.bIt("done",function(t){e.eBV(n);const o=e.XpG(2);return e.Njj(o.onFaviconUploadComplete(t))}),e.k0s()()}if(2&i){const n=e.XpG(2);e.R7$(3),e.Y8G("top",7)("left",8),e.R7$(),e.Y8G("fileInfo",e.eq3(5,q,n.config.favicon))("uploadInfo",n.getUploadInfo)("showPreview",!0)}}function Ue(i,_){if(1&i){const n=e.RV6();e.qex(0),e.j41(1,"div",34)(2,"label"),e.EFF(3,"Successful completed actions and alerts"),e.k0s(),e.j41(4,"mat-form-field",50)(5,"mat-label"),e.EFF(6,"Brand Success"),e.k0s(),e.j41(7,"input",69),e.bIt("colorChange",function(t){e.eBV(n);const o=e.XpG(2);return e.Njj(o.config.theme.brandSuccess=t)}),e.k0s()()(),e.j41(8,"div",34)(9,"label"),e.EFF(10,"Warning messages and alerts"),e.k0s(),e.j41(11,"mat-form-field",50)(12,"mat-label"),e.EFF(13,"Brand Warn"),e.k0s(),e.j41(14,"input",70),e.bIt("colorChange",function(t){e.eBV(n);const o=e.XpG(2);return e.Njj(o.config.theme.brandAlert=t)}),e.k0s()()(),e.j41(15,"div",34)(16,"label"),e.EFF(17,"Error messages and critical alerts"),e.k0s(),e.j41(18,"mat-form-field",50)(19,"mat-label"),e.EFF(20,"Brand Error"),e.k0s(),e.j41(21,"input",71),e.bIt("colorChange",function(t){e.eBV(n);const o=e.XpG(2);return e.Njj(o.config.theme.brandWarn=t)}),e.k0s()()(),e.j41(22,"div",34)(23,"label"),e.EFF(24,"Alternative highlight color"),e.k0s(),e.j41(25,"mat-form-field",50)(26,"mat-label"),e.EFF(27,"Brand Shout"),e.k0s(),e.j41(28,"input",72),e.bIt("colorChange",function(t){e.eBV(n);const o=e.XpG(2);return e.Njj(o.config.theme.brandShout=t)}),e.k0s()()(),e.bVm()}if(2&i){const n=e.XpG(2);e.R7$(7),e.Y8G("value",n.config.theme.brandSuccess)("colorpicker",n.config.theme.brandSuccess),e.R7$(7),e.Y8G("value",n.config.theme.brandAlert)("colorpicker",n.config.theme.brandAlert),e.R7$(7),e.Y8G("value",n.config.theme.brandWarn)("colorpicker",n.config.theme.brandWarn),e.R7$(7),e.Y8G("value",n.config.theme.brandShout)("colorpicker",n.config.theme.brandShout)}}function Le(i,_){if(1&i){const n=e.RV6();e.j41(0,"mat-icon",85),e.bIt("click",function(){e.eBV(n);const t=e.XpG().index,o=e.XpG(4);return e.Njj(o.removeMarketplace(t))}),e.EFF(1,"delete"),e.k0s()}}function Ye(i,_){if(1&i){const n=e.RV6();e.j41(0,"mat-icon",86),e.bIt("click",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.addMarketplace())}),e.EFF(1,"add"),e.k0s()}}function He(i,_){if(1&i&&(e.j41(0,"mat-form-field",87)(1,"mat-label"),e.EFF(2,"Visible to All Accounts"),e.k0s(),e.nrm(3,"input",88),e.k0s()),2&i){const n=e.XpG(),a=n.$implicit,t=n.index;e.R7$(3),e.FCK("name","marketplaceLists",a.name,"",t,""),e.Y8G("disabled",!0)}}function qe(i,_){if(1&i){const n=e.RV6();e.j41(0,"mat-form-field",35)(1,"mat-label"),e.EFF(2,"Visible Only To Account List"),e.k0s(),e.j41(3,"wb-account-list-select",89),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG().$implicit;return e.DH7(o.listIds,t)||(o.listIds=t),e.Njj(t)}),e.k0s()()}if(2&i){const n=e.XpG(),a=n.$implicit,t=n.index,o=e.XpG(4);e.R7$(3),e.FCK("name","marketplaceLists",a.name,"",t,""),e.Y8G("accountLists",o.accountLists),e.R50("ngModel",a.listIds),e.Y8G("toIds",!0)("multiple",!0)}}function Ke(i,_){if(1&i){const n=e.RV6();e.qex(0)(1),e.j41(2,"div",78)(3,"mat-form-field",35)(4,"mat-label"),e.EFF(5,"Marketplace Name"),e.k0s(),e.j41(6,"input",79),e.mxI("ngModelChange",function(t){const o=e.eBV(n).$implicit;return e.DH7(o.name,t)||(o.name=t),e.Njj(t)}),e.k0s(),e.DNE(7,Le,2,0,"mat-icon",80)(8,Ye,2,0,"mat-icon",81),e.k0s(),e.j41(9,"mat-form-field",35)(10,"mat-label"),e.EFF(11),e.k0s(),e.j41(12,"input",79),e.mxI("ngModelChange",function(t){const o=e.eBV(n).$implicit;return e.DH7(o.title,t)||(o.title=t),e.Njj(t)}
1),e.k0s()(),e.j41(13,"h5"),e.EFF(14),e.k0s(),e.j41(15,"wb-rich-text-editor",82),e.mxI("valueChange",function(t){const o=e.eBV(n).$implicit;return e.DH7(o.descr,t)||(o.descr=t),e.Njj(t)}),e.k0s(),e.DNE(16,He,4,4,"mat-form-field",83)(17,qe,4,7,"mat-form-field",84),e.k0s(),e.bVm()()}if(2&i){const n=_.$implicit,a=_.index,t=e.XpG(4);e.R7$(6),e.Mz_("name","marketplaceNameLabel",a,""),e.R50("ngModel",n.name),e.R7$(),e.Y8G("ngIf",!n.isDefault),e.R7$(),e.Y8G("ngIf",n.isDefault),e.R7$(3),e.SpI("",n.name," Marketplace Title"),e.R7$(),e.FCK("name","marketplace",n.name,"Label",a,""),e.R50("ngModel",n.title),e.R7$(2),e.SpI("",n.name," Marketplace Description"),e.R7$(),e.FCK("name","marketplaceDescr",n.name,"Label",a,""),e.R50("value",n.descr),e.Y8G("allowHtml",!0),e.R7$(),e.Y8G("ngIf",0===a&&t.config.marketplaces.length>1),e.R7$(),e.Y8G("ngIf",a>0)}}function ze(i,_){if(1&i&&(e.qex(0),e.DNE(1,Ke,18,18,"ng-container",77),e.bVm()),2&i){const n=e.XpG(3);e.R7$(),e.Y8G("ngForOf",n.config.marketplaces)}}function $e(i,_){if(1&i){const n=e.RV6();e.qex(0),e.j41(1,"h3"),e.EFF(2,"Text and Labels "),e.nrm(3,"wb-help",45),e.k0s(),e.j41(4,"div",33),e.DNE(5,ze,2,1,"ng-container",53),e.k0s(),e.j41(6,"div",33)(7,"div",38)(8,"a",73),e.bIt("click",function(){e.eBV(n);const t=e.XpG(2);return e.Njj(t.showDefaultDisclaimer())}),e.EFF(9,"View Default Disclaimer"),e.k0s(),e.j41(10,"h5"),e.EFF(11,"Investment Platform Disclaimer"),e.k0s(),e.j41(12,"wb-rich-text-editor",74),e.mxI("valueChange",function(t){e.eBV(n);const o=e.XpG(2);return e.DH7(o.config.labels.disclaimer,t)||(o.config.labels.disclaimer=t),e.Njj(t)}),e.k0s()()(),e.j41(13,"h3"),e.EFF(14,"Custom CSS"),e.k0s(),e.j41(15,"div",33)(16,"div",38)(17,"mat-form-field",35)(18,"mat-label"),e.EFF(19,"Custom CSS"),e.k0s(),e.j41(20,"textarea",75),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(2);return e.DH7(o.config.theme.style,t)||(o.config.theme.style=t),e.Njj(t)}),e.k0s()(),e.j41(21,"div",76)(22,"em"),e.EFF(23,"(note css changes will take affect only after refreshing page)"),e.k0s()()()(),e.bVm()}if(2&i){const n=e.XpG(2);e.R7$(3),e.Y8G("top",7)("left",8),e.R7$(2),e.Y8G("ngIf",n.config.marketplaces),e.R7$(7),e.R50("value",n.config.labels.disclaimer),e.Y8G("allowHtml",!0)("allowClasses",!0),e.R7$(8),e.R50("ngModel",n.config.theme.style)}}function We(i,_){if(1&i){const n=e.RV6();e.j41(0,"mat-checkbox",113),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.config.enableKycDocumentCheck,t)||(o.config.enableKycDocumentCheck=t),e.Njj(t)}),e.EFF(1," Enable Document Verification Check "),e.j41(2,"mat-icon",114),e.EFF(3,"help_outline"),e.k0s()()}if(2&i){const n=e.XpG(3);e.R50("ngModel",n.config.enableKycDocumentCheck),e.Y8G("disabled",n.config.enableKycDocumentCheck&&n.config.kycProvider===n.IdentificationVerificationType.OnfidoCheck)("matTooltip",n.config.kycProvider===n.IdentificationVerificationType.OnfidoCheck?"Document verification is required when Onfido is your selected KYC / AML provider. Please change your provider to disabled this setting.":null)}}function Qe(i,_){if(1&i&&(e.j41(0,"mat-option",117),e.EFF(1,"Cybrid"),e.k0s()),2&i){const n=e.XpG(4);e.Y8G("value",n.IdentificationVerificationType.Cybrid)}}function Ze(i,_){if(1&i&&(e.j41(0,"mat-option",117),e.EFF(1,"Brassica"),e.k0s()),2&i){const n=e.XpG(4);e.Y8G("value",n.IdentificationVerificationType.Brassica)}}function Je(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",115)(1,"mat-form-field",50)(2,"mat-label"),e.EFF(3,"KYC / AML Provider"),e.k0s(),e.j41(4,"mat-select",116),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.config.kycProvider,t)||(o.config.kycProvider=t),e.Njj(t)}),e.j41(5,"mat-option",117),e.EFF(6,"North Capital"),e.k0s(),e.j41(7,"mat-option",118),e.EFF(8,"Onfido"),e.k0s(),e.DNE(9,Qe,2,1,"mat-option",119)(10,Ze,2,1,"mat-option",119),e.k0s()(),e.j41(11,"mat-icon",120),e.EFF(12,"help_outline"),e.k0s()()}if(2&i){const n=e.XpG(3);e.R7$(4),e.R50("ngModel",n.config.kycProvider),e.R7$(),e.Y8G("value",n.IdentificationVerificationType.NorthCapitalCheck),e.R7$(2),e.Y8G("value",n.IdentificationVerificationType.OnfidoCheck)("disabled",!n.config.enableKycDocumentCheck)("matTooltip",n.config.enableKycDocumentCheck?"":"To use Onfido, please enable the Document Verification Check setting above"),e.R7$(2),e.Y8G("ngIf",n.config.cybrid&&n.config.cybrid.enabled),e.R7$(),e.Y8G("ngIf",n.config.brassica&&n.config.brassica.enabled)}}function en(i,_){if(1&i){const n=e.RV6();e.j41(0,"mat-checkbox",121),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.config.enableKycFailedEmail,t)||(o.config.enableKycFailedEmail=t),e.Njj(t)}),e.EFF(1," Enable KYC/AML Failed Notification "),e.j41(2,"mat-icon",122),e.EFF(3,"help_outline"),e.k0s()()}if(2&i){const n=e.XpG(3);e.R50("ngModel",n.config.enableKycFailedEmail)}}function nn(i,_){if(1&i){const n=e.RV6();e.j41(0,"mat-checkbox",123),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.config.autoGroupTransactions,t)||(o.config.autoGroupTransactions=t),e.Njj(t)}),e.EFF(1," Auto Group Related Transactions "),e.j41(2,"mat-icon",124),e.EFF(3,"help_outline"),e.k0s()()}if(2&i){const n=e.XpG(3);e.R50("ngModel",n.config.autoGroupTransactions)}}function tn(i,_){if(1&i&&(e.j41(0,"mat-option",117),e.EFF(1,"Brassica"),e.k0s()),2&i){const n=e.XpG(4);e.Y8G("value",n.CustodyType.Brassica)}}function on(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",125)(1,"mat-form-field",50)(2,"mat-label"),e.EFF(3,"Custody Provider"),e.k0s(),e.j41(4,"mat-select",116),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.config.custodianProvider,t)||(o.config.custodianProvider=t),e.Njj(t)}),e.j41(5,"mat-option",117),e.EFF(6,"None"),e.k0s(),e.j41(7,"mat-option",117),e.EFF(8,"North Capital"),e.k0s(),e.DNE(9,tn,2,1,"mat-option",119),e.k0s()(),e.j41(10,"mat-icon",126),e.EFF(11,"help_outline"),e.k0s()()}if(2&i){const n=e.XpG(3);e.R7$(4),e.R50("ngModel",n.config.custodianProvider),e.R7$(),e.Y8G("value",null),e.R7$(2),e.Y8G("value",n.CustodyType.NorthCapital),e.R7$(2),e.Y8G("ngIf",n.config.brassica&&n.config.brassica.enabled)}}function an(i,_){if(1&i){const n=e.RV6();e.j41(0,"wb-document-upload",130),e.bIt("documentDone",function(t){e.eBV(n);const o=e.XpG(4);return e.Njj(o.config.northCapital.custodianDocumentId=t.id)}),e.k0s()}if(2&i){const n=e.XpG(4);e.Y8G("document",n.custodianDocument)("title","Custodial Agreement")("uploadInfo",n.getUploadInfo)}}function cn(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",127)(1,"mat-form-field",35)(2,"mat-label"),e.EFF(3,"North Capital Agreement Document Id"),e.k0s(),e.j41(4,"input",128),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.config.northCapital.custodianDocumentId,t)||(o.config.northCapital.custodianDocumentId=t),e.Njj(t)}),e.k0s()(),e.DNE(5,an,1,3,"wb-document-upload",129),e.k0s()}if(2&i){const n=e.XpG(3);e.R7$(4),e.R50("ngModel",n.config.northCapital.custodianDocumentId),e.R7$(),e.Y8G("ngIf",!n.config.northCapital.custodianDocumentId)}}function _n(i,_){if(1&i){const n=e.RV6();e.j41(0,"mat-checkbox",131),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.config.disableReferralLinks,t)||(o.config.disableReferralLinks=t),e.Njj(t)}),e.EFF(1," Disable Sharing Referral Links "),e.j41(2,"mat-icon",132),e.EFF(3,"help_outline"),e.k0s()()}if(2&i){const n=e.XpG(3);e.R50("ngModel",n.config.disableReferralLinks)}}function ln(i,_){if(1&i){const n=e.RV6();e.j41(0,"mat-checkbox",133),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.config.enableSocialSharing,t)||(o.config.enableSocialSharing=t),e.Njj(t)}),e.EFF(1,"Allow Social Sharing"),e.k0s()}if(2&i){const n=e.XpG(3);e.R50("ngModel",n.config.enableSocialSharing)}}function rn(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",168)(1,"mat-form-field",50)(2,"mat-label"),e.EFF(3,"Account Approval Message"),e.k0s(),e.j41(4,"input",169),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.authentication.accountApprovalMsg,t)||(o.config.authentication.accountApprovalMsg=t),e.Njj(t)}),e.k0s()(),e.j41(5,"mat-icon",170),e.EFF(6,"help_outline"),e.k0s()()}if(2&i){const n=e.XpG(5);e.R7$(4),e.R50("ngModel",n.config.authentication.accountApprovalMsg)}}function sn(i,_){if(1&i){const n=e.RV6();e.qex(0),e.DNE(1,rn,7,1,"div",165),e.j41(2,"mat-checkbox",166),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(4);return e.DH7(o.config.authentication.inviteApproval,t)||(o.config.authentication.inviteApproval=t),e.Njj(t)}),e.EFF(3," Require Account Approval for Invites "),e.j41(4,"mat-icon",167),e.EFF(5,"help_outline"),e.k0s()(),e.bVm()}if(2&i){const n=e.XpG(4);e.R7$(),e.Y8G("ngIf",n.config.authentication.accountApproval),e.R7$(),e.R50("ngModel",n.config.authentication.inviteApproval)}}function mn(i,_){if(1&i){const n=e.RV6();e.j41(0,"mat-checkbox",171),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(4);return e.DH7(o.config.requireKycOnSignUp,t)||(o.config.requireKycOnSignUp=t),e.Njj(t)}),e.EFF(1," Show Identity Verification On Sign Up "),e.j41(2,"mat-icon",172),e.EFF(3,"help_outline"),e.k0s()()}if(2&i){const n=e.XpG(4);e.R50("ngModel",n.config.requireKycOnSignUp)}}function gn(i,_){if(1&i){const n=e.RV6();e.j41(0,"mat-checkbox",173),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(4);return e.DH7(o.config.authentication.noSignupInvesting,t)||(o.config.authentication.noSignupInvesting=t),e.Njj(t)}),e.EFF(1,"Allow No Signup Investing"),e.k0s()}if(2&i){const n=e.XpG(4);e.R50("ngModel",n.config.authentication.noSignupInvesting)}}function dn(i,_){if(1&i){const n=e.RV6();e.j41(0,"mat-checkbox",174),e.bIt("change",function(t){e.eBV(n);const o=e.XpG(4);return e.Njj(o.confirmTwoFactorAuth(t))}),e.EFF(1," Require Multi-Factor Setup to Login "),e.j41(2,"mat-icon",175),e.EFF(3,"help_outline"),e.k0s()()}if(2&i){const n=e.XpG(4);e.Y8G("ngModel",n.config.authentication.requireTwoFactorAuth)}}function pn(i,_){if(1&i){const n=e.RV6();e.j41(0,"mat-checkbox",176),e.bIt("change",function(t){e.eBV(n);const o=e.XpG(4);return e.Njj(o.confirmAdminTwoFactorAuth(t))}),e.EFF(1," Require Multi-Factor Setup for Administrators to Login "),e.j41(2,"mat-icon",177),e.EFF(3,"help_outline"),e.k0s()()}if(2&i){const n=e.XpG(4);e.Y8G("ngModel",n.config.authentication.requireAdminTwoFactorAuth)}}function fn(i,_){if(1&i){const n=e.RV6();e.j41(0,"mat-checkbox",178),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(4);return e.DH7(o.config.enableKycAccountLock,t)||(o.config.enableKycAccountLock=t),e.Njj(t)}),e.EFF(1," Disallow modifying account after KYC "),e.j41(2,"mat-icon",179),e.EFF(3,"help_outline"),e.k0s()()}if(2&i){const n=e.XpG(4);e.R50("ngModel",n.config.enableKycAccountLock)}}function un(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",180)(1,"mat-form-field",50)(2,"mat-label"),e.EFF(3,"Emails for Account Change Request"),e.k0s(),e.j41(4,"input",181),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(4);return e.DH7(o.config.authentication.accountChangeRequestEmails,t)||(o.config.authentication.accountChangeRequestEmails=t),e.Njj(t)}),e.k0s()(),e.j41(5,"mat-icon",182),e.EFF(6,"help_outline"),e.k0s()()}if(2&i){const n=e.XpG(4);e.R7$(4),e.R50("ngModel",n.config.authentication.accountChangeRequestEmails)}}function hn(i,_){if(1&i){const n=e.RV6();e.j41(0,"mat-card",32)(1,"div",33)(2,"div",38)(3,"h3"),e.EFF(4,"Access and Security "),e.nrm(5,"wb-help",134),e.k0s()(),e.j41(6,"div",34)(7,"mat-checkbox",135),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.config.authentication.disableRegistration,t)||(o.config.authentication.disableRegistration=t),e.Njj(t)}),e.EFF(8,"Disallow Self-Registration"),e.k0s(),e.j41(9,"mat-checkbox",136),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.config.authentication.accountApproval,t)||(o.config.authentication.accountApproval=t),e.Njj(t)}),e.EFF(10," Require Account Approval "),e.j41(11,"mat-icon",137),e.EFF(12,"help_outline"),e.k0s()(),e.DNE(13,sn,6,2,"ng-container",53),e.j41(14,"mat-checkbox",138),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.config.authentication.required,t)||(o.config.authentication.required=t),e.Njj(t)}),e.EFF(15,"Require Sign-in to View Offers"),e.k0s(),e.DNE(16,mn,4,1,"mat-checkbox",139)(17,gn,2,1,"mat-checkbox",140)(18,dn,4,1,"mat-checkbox",141)(19,pn,4,1,"mat-checkbox",142),e.j41(20,"div",143)(21,"mat-form-field",50)(22,"mat-label"),e.EFF(23,"Secure Invite Expiration Time (in minutes)"),e.k0s(),e.j41(24,"input",144),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.config.authentication.secureLoginExpiration,t)||(o.config.authentication.secureLoginExpiration=t),e.Njj(t)}),e.k0s()(),e.j41(25,"mat-icon",145),e.EFF(26,"help_outline"),e.k0s()(),e.j41(27,"mat-checkbox",146),e.bIt("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.Njj(o.config.authentication.secureLoginIPChangeLimitTime=t?0:void 0)}),e.EFF(28," Allow Multiple IP Address to Access Invitation Links "),e.j41(29,"mat-icon",147),e.EFF(30,"help_outline"),e.k0s()(),e.j41(31,"div",148)(32,"mat-form-field",50)(33,"mat-label"),e.EFF(34,"Multi-Factor Authentication Required Every X Days"),e.k0s(),e.j41(35,"input",149),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.config.authentication.twoFactorTimeout,t)||(o.config.authentication.twoFactorTimeout=t),e.Njj(t)}),e.k0s()(),e.j41(36,"mat-icon",150),e.EFF(37,"help_outline"),e.k0s()()(),e.j41(38,"div",34)(39,"mat-checkbox",151),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.config.authentication.emailVerification,t)||(o.config.authentication.emailVerification=t),e.Njj(t)}),e.EFF(40,"Require Email Verification to View Offers"),e.k0s(),e.j41(41,"mat-checkbox",152),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.config.authentication.allowNonAccredited,t)||(o.config.authentication.allowNonAccredited=t),e.Njj(t)}),e.EFF(42,"Allow Non-accredited Investors to Sign Up"),e.k0s(),e.j41(43,"mat-checkbox",153),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.config.hideAccreditationOnSignUp,t)||(o.config.hideAccreditationOnSignUp=t),e.Njj(t)}),e.EFF(44," Hide Accreditation Sign Up Step "),e.j41(45,"mat-icon",154),e.EFF(46,"help_outline"),e.k0s()(),e.j41(47,"mat-checkbox",155),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.config.disableManageDocuments,t)||(o.config.disableManageDocuments=t),e.Njj(t)}),e.EFF(48," Disallow Investors from Managing Documents "),e.j41(49,"mat-icon",156),e.EFF(50,"help_outline"),e.k0s()(),e.j41(51,"mat-checkbox",157),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.config.authentication.allowIssuerRegistration,t)||(o.config.authentication.allowIssuerRegistration=t),e.Njj(t)}),e.EFF(52," Allow Issuers to Self-Register Accounts "),e.j41(53,"mat-icon",158),e.EFF(54,"help_outline"),e.k0s()(),e.DNE(55,fn,4,1,"mat-checkbox",159),e.j41(56,"mat-checkbox",160),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.config.authentication.accountChangeRequests,t)||(o.config.authentication.accountChangeRequests=t),e.Njj(t)}),e.EFF(57," Enable Account Change Requests "),e.j41(58,"mat-icon",161),e.EFF(59,"help_outline"),e.k0s()(),e.DNE(60,un,7,1,"div",162),e.j41(61,"mat-checkbox",163),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.config.enableAddAccountACH,t)||(o.config.enableAddAccountACH=t),e.Njj(t)}),e.EFF(62,"Allow Investors to Add Bank Payment Method "),e.j41(63,"mat-icon",164),e.EFF(64,"help_outline"),e.k0s()()()()()}if(2&i){const n=e.XpG(3);e.R7$(5),e.Y8G("top",7)("left",8),e.R7$(2),e.R50("ngModel",n.config.authentication.disableRegistration),e.R7$(2),e.AVh("no-margin",n.config.authentication.accountApproval),e.R50("ngModel",n.config.authentication.accountApproval),e.R7$(4),e.Y8G("ngIf",n.config.authentication.accountApproval),e.R7$(),e.R50("ngModel",n.config.authentication.required),e.R7$(2),e.Y8G("ngIf",n.config.enableKycCheck||n.config.enableKycSSNCheck),e.R7$(),e.Y8G("ngIf",n.isSupportAdmin),e.R7$(),e.Y8G("ngIf",n.config.authentication.enableTwoFactorAuth),e.R7$(),e.Y8G("ngIf",n.config.authentication.enableTwoFactorAuth),e.R7$(5),e.R50("ngModel",n.config.authentication.secureLoginExpiration),e.R7$(3),e.Y8G("ngModel",0===n.config.authentication.secureLoginIPChangeL
1imitTime),e.R7$(8),e.R50("ngModel",n.config.authentication.twoFactorTimeout),e.R7$(4),e.R50("ngModel",n.config.authentication.emailVerification),e.R7$(2),e.R50("ngModel",n.config.authentication.allowNonAccredited),e.R7$(2),e.R50("ngModel",n.config.hideAccreditationOnSignUp),e.R7$(4),e.R50("ngModel",n.config.disableManageDocuments),e.R7$(4),e.R50("ngModel",n.config.authentication.allowIssuerRegistration),e.R7$(4),e.Y8G("ngIf",n.config.enableKycCheck),e.R7$(),e.R50("ngModel",n.config.authentication.accountChangeRequests),e.R7$(4),e.Y8G("ngIf",n.config.authentication.accountChangeRequests),e.R7$(),e.R50("ngModel",n.config.enableAddAccountACH)}}function Cn(i,_){if(1&i){const n=e.RV6();e.j41(0,"mat-step",90)(1,"mat-card",32)(2,"div",33)(3,"div",38)(4,"h3"),e.EFF(5,"Features "),e.nrm(6,"wb-help",91),e.k0s()(),e.j41(7,"div",34)(8,"mat-checkbox",92),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(2);return e.DH7(o.config.enableKycCheck,t)||(o.config.enableKycCheck=t),e.Njj(t)}),e.bIt("ngModelChange",function(t){e.eBV(n);const o=e.XpG(2);return e.Njj(o.clearChildKeys(t,["enableKycFailedEmail","enableKycAccountLock"]))}),e.EFF(9," Enable Know Your Customer (KYC/AML) Check "),e.j41(10,"mat-icon",93),e.EFF(11,"help_outline"),e.k0s()(),e.DNE(12,We,4,3,"mat-checkbox",94)(13,Je,13,7,"div",95)(14,en,4,1,"mat-checkbox",96),e.j41(15,"mat-checkbox",97),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(2);return e.DH7(o.config.enableKycSSNCheck,t)||(o.config.enableKycSSNCheck=t),e.Njj(t)}),e.EFF(16," Require SSN / Tax ID "),e.j41(17,"mat-icon",98),e.EFF(18,"help_outline"),e.k0s()(),e.j41(19,"mat-checkbox",99),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(2);return e.DH7(o.config.enableAccreditationCheck,t)||(o.config.enableAccreditationCheck=t),e.Njj(t)}),e.EFF(20," Enable Full Accreditation Check "),e.j41(21,"mat-icon",100),e.EFF(22,"help_outline"),e.k0s()(),e.DNE(23,nn,4,1,"mat-checkbox",101)(24,on,12,4,"div",102)(25,cn,6,2,"div",103),e.k0s(),e.j41(26,"div",34)(27,"mat-checkbox",104),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(2);return e.DH7(o.config.enableReferralProgram,t)||(o.config.enableReferralProgram=t),e.Njj(t)}),e.EFF(28,"Allow Investors to Invite Others"),e.k0s(),e.j41(29,"mat-checkbox",105),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(2);return e.DH7(o.config.enableFavoriteOffers,t)||(o.config.enableFavoriteOffers=t),e.Njj(t)}),e.EFF(30,"Allow Investors to Favorite Offers"),e.k0s(),e.DNE(31,_n,4,1,"mat-checkbox",106)(32,ln,2,1,"mat-checkbox",107),e.j41(33,"mat-checkbox",108),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(2);return e.DH7(o.config.enableSingleOfferMode,t)||(o.config.enableSingleOfferMode=t),e.Njj(t)}),e.EFF(34," Enable Single Offer Mode "),e.j41(35,"mat-icon",109),e.EFF(36,"help_outline"),e.k0s()(),e.j41(37,"mat-checkbox",110),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(2);return e.DH7(o.config.disableChatGPT,t)||(o.config.disableChatGPT=t),e.Njj(t)}),e.EFF(38,"Disable ChatGPT from all platform text editors"),e.k0s(),e.j41(39,"mat-checkbox",111),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(2);return e.DH7(o.config.enableBlockchainSettings,t)||(o.config.enableBlockchainSettings=t),e.Njj(t)}),e.EFF(40,"Include Blockchain Integration"),e.k0s()()()(),e.DNE(41,hn,65,24,"mat-card",112),e.k0s()}if(2&i){const n=e.XpG(2);e.Y8G("aria-label",n.Steps.Features),e.R7$(6),e.Y8G("top",7)("left",8),e.R7$(2),e.R50("ngModel",n.config.enableKycCheck),e.R7$(4),e.Y8G("ngIf",n.config.enableKycCheck),e.R7$(),e.Y8G("ngIf",n.config.enableKycCheck),e.R7$(),e.Y8G("ngIf",n.config.enableKycCheck),e.R7$(),e.R50("ngModel",n.config.enableKycSSNCheck),e.R7$(4),e.R50("ngModel",n.config.enableAccreditationCheck),e.R7$(2),e.Mz_("matTooltip","We integrate with North Capital to run accreditation checks. Note that you will be billed a pass-through fee of $",n.NorthCapitalAccreditationFee," per accreditation check."),e.R7$(2),e.Y8G("ngIf",n.isSupportAdmin),e.R7$(),e.Y8G("ngIf",n.isSupportAdmin),e.R7$(),e.Y8G("ngIf",n.isSupportAdmin&&n.config.custodianProvider===n.CustodyType.NorthCapital),e.R7$(2),e.R50("ngModel",n.config.enableReferralProgram),e.R7$(2),e.R50("ngModel",n.config.enableFavoriteOffers),e.R7$(2),e.Y8G("ngIf",n.config.enableReferralProgram),e.R7$(),e.Y8G("ngIf",n.config.enableReferralProgram),e.R7$(),e.R50("ngModel",n.config.enableSingleOfferMode),e.R7$(4),e.R50("ngModel",n.config.disableChatGPT),e.R7$(2),e.R50("ngModel",n.config.enableBlockchainSettings),e.R7$(2),e.Y8G("ngIf",n.hasMarketplace)}}function bn(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",34)(1,"label"),e.EFF(2,"Your platform URL"),e.k0s(),e.j41(3,"mat-form-field",35)(4,"mat-label"),e.EFF(5,"Platform URL"),e.k0s(),e.j41(6,"input",203),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.config.url,t)||(o.config.url=t),e.Njj(t)}),e.k0s()()()}if(2&i){const n=e.XpG(3);e.R7$(6),e.R50("ngModel",n.config.url)}}function vn(i,_){if(1&i){const n=e.RV6();e.qex(0),e.j41(1,"div",196)(2,"label"),e.EFF(3,"Enable Text Messaging Via Twilio"),e.k0s(),e.j41(4,"mat-form-field",35)(5,"mat-label"),e.EFF(6,"Account SID"),e.k0s(),e.j41(7,"input",204),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.config.sms.accountSid,t)||(o.config.sms.accountSid=t),e.Njj(t)}),e.k0s()()(),e.j41(8,"div",34)(9,"label"),e.EFF(10,"Twilio Auth Token"),e.k0s(),e.j41(11,"mat-form-field",35)(12,"mat-label"),e.EFF(13,"Twilio Auth Token"),e.k0s(),e.j41(14,"input",205),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.config.sms.authToken,t)||(o.config.sms.authToken=t),e.Njj(t)}),e.k0s()()(),e.j41(15,"div",196)(16,"label",206),e.EFF(17,"Twilio Phone #"),e.k0s(),e.j41(18,"mat-form-field",35)(19,"mat-label"),e.EFF(20,"Twilio Phone #"),e.k0s(),e.j41(21,"input",207),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.config.sms.from,t)||(o.config.sms.from=t),e.Njj(t)}),e.k0s()()(),e.bVm()}if(2&i){const n=e.XpG(3);e.R7$(7),e.R50("ngModel",n.config.sms.accountSid),e.R7$(7),e.R50("ngModel",n.config.sms.authToken),e.R7$(7),e.R50("ngModel",n.config.sms.from)}}function Pn(i,_){if(1&i){const n=e.RV6();e.j41(0,"div")(1,"mat-form-field",35)(2,"mat-label"),e.EFF(3,"Full Refund Note"),e.k0s(),e.j41(4,"input",222),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(6);return e.DH7(o.config.northCapital.refundFullNote,t)||(o.config.northCapital.refundFullNote=t),e.Njj(t)}),e.k0s(),e.j41(5,"mat-icon",221),e.bIt("click",function(){e.eBV(n);const t=e.XpG(6);return e.Njj(t.setNorthCapitalDefault("refundFullNote"))}),e.EFF(6,"restart_alt"),e.k0s()()()}if(2&i){const n=e.XpG(6);e.R7$(4),e.R50("ngModel",n.config.northCapital.refundFullNote)}}function kn(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",63)(1,"div")(2,"mat-checkbox",216),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.northCapital.useAltInstance,t)||(o.config.northCapital.useAltInstance=t),e.Njj(t)}),e.EFF(3," Use Secondary North Capital Instance "),e.j41(4,"mat-icon",217),e.EFF(5,"help_outline"),e.k0s()()(),e.j41(6,"div")(7,"mat-checkbox",218),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.northCapital.refundNotesEnabled,t)||(o.config.northCapital.refundNotesEnabled=t),e.Njj(t)}),e.EFF(8," Send refund messages as part of investor cancellations "),e.j41(9,"mat-icon",219),e.EFF(10,"help_outline"),e.k0s()()(),e.DNE(11,Pn,7,1,"div",53),e.j41(12,"div")(13,"mat-form-field",35)(14,"mat-label"),e.EFF(15,"Partial Refund Note"),e.k0s(),e.j41(16,"input",220),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.northCapital.refundPartialNote,t)||(o.config.northCapital.refundPartialNote=t),e.Njj(t)}),e.k0s(),e.j41(17,"mat-icon",221),e.bIt("click",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.setNorthCapitalDefault("refundPartialNote"))}),e.EFF(18,"restart_alt"),e.k0s()()()()}if(2&i){const n=e.XpG(5);e.R7$(2),e.R50("ngModel",n.config.northCapital.useAltInstance),e.R7$(5),e.R50("ngModel",n.config.northCapital.refundNotesEnabled),e.R7$(4),e.Y8G("ngIf",n.config.northCapital.refundNotesEnabled),e.R7$(5),e.R50("ngModel",n.config.northCapital.refundPartialNote)}}function Mn(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",211)(1,"div",38)(2,"p",212),e.EFF(3,"You have enabled North Capital"),e.k0s(),e.nrm(4,"br"),e.j41(5,"mat-checkbox",213),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(4);return e.DH7(o.showAdvancedNorthCapital,t)||(o.showAdvancedNorthCapital=t),e.Njj(t)}),e.EFF(6,"Show Advanced Settings"),e.k0s()(),e.DNE(7,kn,19,4,"div",48),e.j41(8,"div",214)(9,"wb-button",215),e.bIt("click",function(){e.eBV(n);const t=e.XpG(4);return e.Njj(t.disconnectNorthCapital())}),e.EFF(10,"Disconnect North Capital"),e.k0s()()()}if(2&i){const n=e.XpG(4);e.R7$(5),e.R50("ngModel",n.showAdvancedNorthCapital),e.R7$(2),e.Y8G("ngIf",n.showAdvancedNorthCapital)}}function xn(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",211)(1,"wb-button",224),e.bIt("click",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.enableNorthCapital())}),e.EFF(2,"Enable North Capital"),e.k0s()()}}function jn(i,_){if(1&i&&e.DNE(0,xn,3,0,"div",223),2&i){const n=e.XpG(4);e.Y8G("ngIf",n.showNorthCapital)}}function In(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",208)(1,"h3"),e.EFF(2,"North Capital "),e.j41(3,"mat-slide-toggle",209),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.showNorthCapital,t)||(o.showNorthCapital=t),e.Njj(t)}),e.k0s()(),e.DNE(4,Mn,11,2,"div",210)(5,jn,1,1,"ng-template",null,2,e.C5r),e.k0s()}if(2&i){const n=e.sdS(6),a=e.XpG(3);e.R7$(3),e.R50("ngModel",a.showNorthCapital),e.R7$(),e.Y8G("ngIf",a.config.northCapital.enabled)("ngIfElse",n)}}function yn(i,_){1&i&&(e.j41(0,"p",212),e.EFF(1,"You have authorized your Cliq Account"),e.k0s())}function Fn(i,_){1&i&&(e.j41(0,"p",212),e.EFF(1,"Your application is in review, we'll let you know
1when its been approved"),e.k0s())}function wn(i,_){if(1&i){const n=e.RV6();e.qex(0),e.j41(1,"div",229),e.EFF(2," Use an Escrow Account "),e.j41(3,"mat-slide-toggle",230),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.cliq.escrow,t)||(o.config.cliq.escrow=t),e.Njj(t)}),e.bIt("change",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.toggleCliqEscrow())}),e.k0s()(),e.j41(4,"div",229),e.EFF(5," Disable Credit Card "),e.j41(6,"mat-slide-toggle",231),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.cliq.ccDisabled,t)||(o.config.cliq.ccDisabled=t),e.Njj(t)}),e.bIt("change",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.toggleCliqCreditCard())}),e.k0s()(),e.bVm()}if(2&i){const n=e.XpG(5);e.R7$(3),e.R50("ngModel",n.config.cliq.escrow),e.R7$(3),e.R50("ngModel",n.config.cliq.ccDisabled),e.Y8G("disabled",n.config.cliq.escrow)}}function An(i,_){if(1&i){const n=e.RV6();e.j41(0,"wb-button",234),e.bIt("click",function(){e.eBV(n);const t=e.XpG(6);return e.Njj(t.onSaveCliqAuthToken())}),e.EFF(1,"Save new API Token"),e.k0s()}}function Tn(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",33)(1,"p"),e.EFF(2,"Cliq has migrated to a new API, provide your new API token to
1start using the new cliq API"),e.k0s(),e.j41(3,"div",196)(4,"mat-form-field",35)(5,"mat-label"),e.EFF(6,"ACH Auth Token"),e.k0s(),e.j41(7,"textarea",232),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.cliq.achAuthToken,t)||(o.config.cliq.achAuthToken=t),e.Njj(t)}),e.k0s()()(),e.j41(8,"div",38),e.DNE(9,An,2,0,"wb-button",233),e.k0s()()}if(2&i){const n=e.XpG(5);e.R7$(7),e.R50("ngModel",n.config.cliq.achAuthToken),e.R7$(2),e.Y8G("ngIf",n.config.cliq.achAuthToken)}}function Rn(i,_){if(1&i){const n=e.RV6();e.j41(0,"wb-button",234),e.bIt("click",function(){e.eBV(n);const t=e.XpG(6);return e.Njj(t.onSaveCliqMerchantNumber())}),e.EFF(1,"Save new API Token"),e.k0s()}}function Gn(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",33)(1,"p"),e.EFF(2,"Cliq has updated their API, we now required the Credit Card Merchant Number from "),e.j41(3,"a",235),e.EFF(4,"https://portal.cliq.com/"),e.k0s()(),e.j41(5,"div",196)(6,"mat-form-field",35)(7,"mat-label"),e.EFF(8,"Credit Card Merchant Number"),e.k0s(),e.j41(9,"input",236),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.cliq.merchantNumber,t)||(o.config.cliq.merchantNumber=t),e.Njj(t)}),e.k0s()()(),e.j41(10,"div",38),e.DNE(11,Rn,2,0,"wb-button",233),e.k0s()()}if(2&i){const n=e.XpG(5);e.R7$(9),e.R50("ngModel",n.config.cliq.merchantNumber),e.R7$(2),e.Y8G("ngIf",n.config.cliq.merchantNumber)}}function En(i,_){if(1&i){const n=e.RV6();e.j41(0,"wb-button",215),e.bIt("click",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.onDisconnectCliq())}),e.EFF(1,"Connect to a Different Cliq Account"),e.k0s()}}function Sn(i,_){if(1&i){const n=e.RV6();e.j41(0,"wb-button",215),e.bIt("click",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.onCompleteCliq())}),e.EFF(1,"Complete Application"),e.k0s()}}function Nn(i,_){if(1&i&&(e.j41(0,"div",211),e.DNE(1,yn,2,0,"p",226)(2,Fn,2,0,"p",226),e.nrm(3,"br"),e.DNE(4,wn,7,3,"ng-container",53)(5,Tn,10,2,"div",227)(6,Gn,12,2,"div",227),e.j41(7,"div"),e.DNE(8,En,2,0,"wb-button",228)(9,Sn,2,0,"wb-button",228),e.k0s()()),2&i){const n=e.XpG(4);e.R7$(),e.Y8G("ngIf",n.config.cliq.merchantId),e.R7$(),e.Y8G("ngIf",!n.config.cliq.merchantId),e.R7$(2),e.Y8G("ngIf",n.isSupportAdmin),e.R7$(),e.Y8G("ngIf",n.config.cliq.enabled&&n.cliqAuthMissing&&n.cliqACHMigrationEnabled),e.R7$(),e.Y8G("ngIf",n.config.cliq.enabled&&n.cliqMerchantNumberMissing),e.R7$(2),e.Y8G("ngIf",n.config.cliq.merchantId),e.R7$(),e.Y8G("ngIf",!n.config.cliq.merchantId&&n.isSupportAdmin)}}function Dn(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",211),e.qex(1),e.j41(2,"div",229),e.EFF(3," Use an Escrow Account "),e.j41(4,"mat-slide-toggle",230),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.cliq.escrow,t)||(o.config.cliq.escrow=t),e.Njj(t)}),e.bIt("change",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.toggleCliqEscrow())}),e.k0s()(),e.j41(5,"div",229),e.EFF(6," Disable Credit Card "),e.j41(7,"mat-slide-toggle",231),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.cliq.ccDisabled,t)||(o.config.cliq.ccDisabled=t),e.Njj(t)}),e.bIt("change",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.toggleCliqCreditCard())}),e.k0s()(),e.bVm(),e.j41(8,"wb-button",224),e.bIt("click",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.connectCliq())}),e.EFF(9,"Connect Existing Account"),e.k0s(),e.j41(10,"wb-button",237),e.bIt("click",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.newRegisterCliq())}),e.EFF(11,"Register for a New Account"),e.k0s()()}if(2&i){const n=e.XpG(5);e.R7$(4),e.R50("ngModel",n.config.cliq.escrow),e.R7$(3),e.R50("ngModel",n.config.cliq.ccDisabled),e.Y8G("disabled",n.config.cliq.escrow)}}function Vn(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",211)(1,"form",238,4),e.bIt("ngSubmit",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.onConnectCliq())}),e.j41(3,"div",196)(4,"mat-form-field",35)(5,"mat-label"),e.EFF(6,"ACH Merchant ID"),e.k0s(),e.j41(7,"input",239),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.cliq.merchantId,t)||(o.config.cliq.merchantId=t),e.Njj(t)}),e.k0s()()(),e.j41(8,"div",196)(9,"mat-form-field",35)(10,"mat-label"),e.EFF(11,"ACH Service Key"),e.k0s(),e.j41(12,"input",240),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.cliq.clientKey,t)||(o.config.cliq.clientKey=t),e.Njj(t)}),e.k0s()()(),e.j41(13,"div",196)(14,"mat-form-field",35)(15,"mat-label"),e.EFF(16,"Submid Merchant Type"),e.k0s(),e.j41(17,"input",241),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.cliq.merchantType,t)||(o.config.cliq.merchantType=t),e.Njj(t)}),e.k0s()()(),e.j41(18,"div",214)(19,"mat-form-field",35)(20,"mat-label"),e.EFF(21,"ACH Auth Token"),e.k0s(),e.j41(22,"textarea",232),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.cliq.achAuthToken,t)||(o.config.cliq.achAuthToken=t),e.Njj(t)}),e.k0s()()(),e.j41(23,"div",196)(24,"mat-form-field",35)(25,"mat-label"),e.EFF(26,"Credit Card Gateway Key"),e.k0s(),e.j41(27,"input",242),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.cliq.securityKey,t)||(o.config.cliq.securityKey=t),e.Njj(t)}),e.k0s()()(),e.j41(28,"div",214)(29,"mat-form-field",35)(30,"mat-label"),e.EFF(31,"Credit Card Merchant Number"),e.k0s(),e.j41(32,"input",236),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.cliq.merchantNumber,t)||(o.config.cliq.merchantNumber=t),e.Njj(t)}),e.k0s()()(),e.j41(33,"div",196)(34,"mat-form-field",35)(35,"mat-label"),e.EFF(36,"Distribution ACH Merchant ID"),e.k0s(),e.j41(37,"input",243),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.cliq.distribution.merchantId,t)||(o.config.cliq.distribution.merchantId=t),e.Njj(t)}
1),e.k0s()()(),e.j41(38,"div",196)(39,"mat-form-field",35)(40,"mat-label"),e.EFF(41,"Distribution ACH Service Key"),e.k0s(),e.j41(42,"input",244),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.cliq.distribution.clientKey,t)||(o.config.cliq.distribution.clientKey=t),e.Njj(t)}),e.k0s()()(),e.j41(43,"div",38)(44,"wb-button",245),e.EFF(45,"Connect My Cliq Account"),e.k0s(),e.j41(46,"wb-button",246),e.bIt("click",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.cancelCliq())}),e.EFF(47,"Cancel"),e.k0s()()()()}if(2&i){const n=e.sdS(2),a=e.XpG(5);e.R7$(7),e.R50("ngModel",a.config.cliq.merchantId),e.R7$(5),e.R50("ngModel",a.config.cliq.clientKey),e.R7$(5),e.R50("ngModel",a.config.cliq.merchantType),e.R7$(5),e.R50("ngModel",a.config.cliq.achAuthToken),e.R7$(5),e.R50("ngModel",a.config.cliq.securityKey),e.R7$(5),e.R50("ngModel",a.config.cliq.merchantNumber),e.R7$(5),e.R50("ngModel",a.config.cliq.distribution.merchantId),e.R7$(5),e.R50("ngModel",a.config.cliq.distribution.clientKey),e.R7$(2),e.Y8G("disabled",!n.valid||!a.config.cliq.merchantId&&!a.config.cliq.securityKey)}}function Xn(i,_){if(1&i&&e.nrm(0,"iframe",249),2&i){const n=e.XpG(7);e.Y8G("src",n.cliqFullFormUrl,e.f$h)}}function On(i,_){if(1&i&&e.nrm(0,"iframe",249),2&i){const n=e.XpG(7);e.Y8G("src",n.cliqACHOnlyFormUrl,e.f$h)}}function Bn(i,_){if(1&i&&(e.qex(0),e.DNE(1,Xn,1,1,"iframe",248)(2,On,1,1,"iframe",248),e.bVm()),2&i){const n=e.XpG(6);e.R7$(),e.Y8G("ngIf",!n.config.cliq.ccDisabled),e.R7$(),e.Y8G("ngIf",n.config.cliq.ccDisabled)}}function Un(i,_){if(1&i&&(e.qex(0),e.nrm(1,"iframe",249),e.bVm()),2&i){const n=e.XpG(6);e.R7$(),e.Y8G("src",n.cliqEscrowFormUrl,e.f$h)}}function Ln(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",211),e.DNE(1,Bn,3,2,"ng-container",53)(2,Un,2,1,"ng-container",53),e.j41(3,"div",247)(4,"wb-button",234),e.bIt("click",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.submitCliq())}),e.EFF(5,"I have completed the above form"),e.k0s(),e.j41(6,"wb-button",246),e.bIt("click",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.cancelCliq())}),e.EFF(7,"Cancel"),e.k0s()()()}if(2&i){const n=e.XpG(5);e.R7$(),e.Y8G("ngIf",!n.config.cliq.escrow),e.R7$(),e.Y8G("ngIf",n.config.cliq.escrow)}}function Yn(i,_){if(1&i&&e.DNE(0,Dn,12,3,"div",223)(1,Vn,48,9,"div",223)(2,Ln,8,2,"div",223),2&i){const n=e.XpG(4);e.Y8G("ngIf",n.showCliq&&!n.connectExistingCliq&&!n.registerCliq),e.R7$(),e.Y8G("ngIf",n.showCliq&&n.connectExistingCliq),e.R7$(),e.Y8G("ngIf",n.showCliq&&n.registerCliq&&n.globalConfig)}}function Hn(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",208)(1,"h3"),e.EFF(2,"Electronic Payment (ACH, Credit Card, Escrow) "),e.j41(3,"span"),e.EFF(4,"powered by Cliq"),e.k0s(),e.j41(5,"mat-slide-toggle",225),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.showCliq,t)||(o.showCliq=t),e.Njj(t)}),e.bIt("change",function(){e.eBV(n);const t=e.XpG(3);return e.Njj(t.toggleCliq())}),e.k0s()(),e.DNE(6,Nn,10,7,"div",210)(7,Yn,3,3,"ng-template",null,3,e.C5r),e.k0s()}if(2&i){const n=e.sdS(8),a=e.XpG(3);e.R7$(5),e.R50("ngModel",a.showCliq),e.R7$(),e.Y8G("ngIf",a.config.cliq.enabled)("ngIfElse",n)}}function qn(i,_){if(1&i){const n=e.RV6();e.j41(0,"wb-button",224),e.bIt("click",function(){e.eBV(n);const t=e.XpG(6);return e.Njj(t.loadNewTemplates())}),e.EFF(1,"Load E-Sign Templates"),e.k0s()}}function Kn(i,_){if(1&i&&(e.j41(0,"div",229),e.DNE(1,qn,2,0,"wb-button",253),e.k0s()),2&i){const n=e.XpG(5);e.R7$(),e.Y8G("ngIf",n.canLoadTemplates)}}function zn(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",211),e.DNE(1,Kn,2,1,"div",252),e.j41(2,"p",212),e.EFF(3,"You have authorized your DocuSign Account"),e.k0s(),e.nrm(4,"br"),e.j41(5,"div")(6,"wb-button",215),e.bIt("click",function(){e.eBV(n);const t=e.XpG(4);return e.Njj(t.onDisconnectDocuSign())}),e.EFF(7,"Connect to a Different DocuSign Account"),e.k0s()()()}if(2&i){const n=e.XpG(4);e.R7$(),e.Y8G("ngIf",n.canLoadTemplates())}}function $n(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",211)(1,"p"),e.EFF(2," Note that a HelloSign integration is already included in your subscription. Connect only if your wish to use DocuSign in place of HelloSign. This requires that you have subscribed to your own "),e.j41(3,"a",254),e.
1EFF(4,"DocuSign API Plan"),e.k0s(),e.EFF(5,". "),e.nrm(6,"br"),e.k0s(),e.j41(7,"form",238,6),e.bIt("ngSubmit",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.onConnectDocuSign())}),e.j41(9,"div",196)(10,"mat-form-field",35)(11,"mat-label"),e.EFF(12,"DocuSign Integration Key"),e.k0s(),e.j41(13,"input",255),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.docusign.integrationKey,t)||(o.config.docusign.integrationKey=t),e.Njj(t)}),e.k0s()()(),e.j41(14,"div",196)(15,"mat-form-field",35)(16,"mat-label"),e.EFF(17,"DocuSign Secret Key"),e.k0s(),e.j41(18,"input",256),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.docusign.secretKey,t)||(o.config.docusign.secretKey=t),e.Njj(t)}),e.k0s()()(),e.j41(19,"div",196)(20,"mat-form-field",35)(21,"mat-label"),e.EFF(22,"DocuSign API Account ID"),e.k0s(),e.j41(23,"input",257),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.docusign.accountId,t)||(o.config.docusign.accountId=t),e.Njj(t)}),e.k0s()()(),e.j41(24,"div",196)(25,"mat-form-field",35)(26,"mat-label"),e.EFF(27,"DocuSign API Username"),e.k0s(),e.j41(28,"input",258),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.docusign.username,t)||(o.config.docusign.username=t),e.Njj(t)}),e.k0s()()(),e.j41(29,"div",34)(30,"mat-form-field",35)(31,"mat-label"),e.EFF(32,"DocuSign Public Key"),e.k0s(),e.j41(33,"textarea",259),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.docusign.publicKey,t)||(o.config.docusign.publicKey=t),e.Njj(t)}),e.k0s()()(),e.j41(34,"div",34)(35,"mat-form-field",35)(36,"mat-label"),e.EFF(37,"DocuSign Private Key"),e.k0s(),e.j41(38,"textarea",260),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.docusign.privateKey,t)||(o.config.docusign.privateKey=t),e.Njj(t)}),e.k0s()()(),e.j41(39,"div",38)(40,"wb-button",261),e.EFF(41,"Connect My DocuSign Account"),e.k0s()()()()}if(2&i){const n=e.sdS(8),a=e.XpG(5);e.R7$(13),e.R50("ngModel",a.config.docusign.integrationKey),e.R7$(5),e.R50("ngModel",a.config.docusign.secretKey),e.R7$(5),e.R50("ngModel",a.config.docusign.accountId),e.R7$(5),e.R50("ngModel",a.config.docusign.username),e.R7$(5),e.R50("ngModel",a.config.docusign.publicKey),e.R7$(5),e.R50("ngModel",a.config.docusign.privateKey),e.R7$(2),e.Y8G("disabled",!n.valid)}}function Wn(i,_){if(1&i&&e.DNE(0,$n,42,7,"div",223),2&i){const n=e.XpG(4);e.Y8G("ngIf",n.showDocuSign)}}function Qn(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",208)(1,"h3"),e.EFF(2,"DocuSign Integration "),e.j41(3,"mat-slide-toggle",250),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.showDocuSign,t)||(o.showDocuSign=t),e.Njj(t)}),e.k0s(),e.nrm(4,"wb-help",251),e.k0s(),e.DNE(5,zn,8,1,"div",210)(6,Wn,1,1,"ng-template",null,5,e.C5r),e.k0s()}if(2&i){const n=e.sdS(7),a=e.XpG(3);e.R7$(3),e.R50("ngModel",a.showDocuSign),e.R7$(),e.Y8G("top",7)("left",8),e.R7$(),e.Y8G("ngIf",a.config.docusign.enabled)("ngIfElse",n)}}function Zn(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",211)(1,"p",212),e.EFF(2,"You have authorized your ACHQ Account"),e.k0s(),e.nrm(3,"br"),e.j41(4,"div")(5,"wb-button",215),e.bIt("click",function(){e.eBV(n);const t=e.XpG(4);return e.Njj(t.onDisconnectACHQ())}),e.EFF(6,"Connect to a Different ACHQ Account"),e.k0s()()()}}function Jn(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",211)(1,"wb-button",224),e.bIt("click",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.connectACHQ())}),e.EFF(2,"Connect Existing ACHQ Account"),e.k0s(),e.j41(3,"wb-button",264),e.bIt("click",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.newRegisterACHQ())}),e.EFF(4,"Register for an ACHQ Account"),e.k0s()()}if(2&i){const n=e.XpG(5);e.R7$(3),e.Y8G("disabled",n.loadingACHQScript)}}function et(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",211)(1,"form",238,8),e.bIt("ngSubmit",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.onConnectACHQ())}),e.j41(3,"div",196)(4,"mat-form-field",35)(5,"mat-label"),e.EFF(6,"Merchant ID"),e.k0s(),e.j41(7,"input",265),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.achq.merchantId,t)||(o.config.achq.merchantId=t),e.Njj(t)}),e.k0s()()(),e.j41(8,"div",196)(9,"mat-form-field",35)(10,"mat-label"),e.EFF(11,"Merchant Gate ID"),e.k0s(),e.j41(12,"input",266),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.achq.merchantGateId,t)||(o.config.achq.merchantGateId=t),e.Njj(t)}),e.k0s()()(),e.j41(13,"div",196)(14,"mat-form-field",35)(15,"mat-label"),e.EFF(16,"Merchant Gate Key"),e.k0s(),e.j41(17,"input",267),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.achq.merchantGateKey,t)||(o.config.achq.merchantGateKey=t),e.Njj(t)}),e.k0s()()(),e.j41(18,"div",38)(19,"wb-button",245),e.EFF(20,"Connect My ACHQ Account"),e.k0s(),e.j41(21,"wb-button",246),e.bIt("click",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.cancelACHQ())}),e.EFF(22,"Cancel"),e.k0s()()()()}if(2&i){const n=e.sdS(2),a=e.XpG(5);e.R7$(7),e.R50("ngModel",a.config.achq.merchantId),e.R7$(5),e.R50("ngModel",a.config.achq.merchantGateId),e.R7$(5),e.R50("ngModel",a.config.achq.merchantGateKey),e.R7$(2),e.Y8G("disabled",!n.valid)}}function nt(i,_){1&i&&(e.j41(0,"div",211),e.nrm(1,"div",268),e.k0s())}function tt(i,_){if(1&i&&e.DNE(0,Jn,5,1,"div",223)(1,et,23,4,"div",223)(2,nt,2,0,"div",223),2&i){const n=e.XpG(4);e.Y8G("ngIf",n.showACHQ&&!n.connectExistingACHQ&&!n.registerACHQ),e.R7$(),e.Y8G("ngIf",n.showACHQ&&n.connectExistingACHQ),e.R7$(),e.Y8G("ngIf",n.showACHQ&&n.registerACHQ)}}function ot(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",208)(1,"h3"),e.EFF(2,"ACHQ Integration "),e.j41(3,"mat-slide-toggle",262),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.showACHQ,t)||(o.showACHQ=t),e.Njj(t)}),e.k0s(),e.nrm(4,"wb-help",263),e.k0s(),e.DNE(5,Zn,7,0,"div",210)(6,tt,3,3,"ng-template",null,7,e.C5r),e.k0s()}if(2&i){const n=e.sdS(7),a=e.XpG(3);e.R7$(3),e.R50("ngModel",a.showACHQ),e.R7$(),e.Y8G("top",7)("left",8),e.R7$(),e.Y8G("ngIf",a.config.achq.enabled)("ngIfElse",n)}}function it(i,_){if(1&i&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&i){const n=e.XpG(5);e.R7$(),e.SpI(" using ",n.config.vertalo.clientId?"a client":"the WealthBlock"," account")}}function at(i,_){if(1&i){const n=e.RV6();e.j41(0,"div")(1,"wb-button",215),e.bIt("click",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.onDisconnectVertalo())}),e.EFF(2,"Connect to a Different Vertalo Account"),e.k0s()()}}function ct(i,_){if(1&i&&(e.j41(0,"div",211)(1,"p",212),e.EFF(2,"You are connected to Vertalo"),e.DNE(3,it,2,1,"span",53),e.k0s(),e.nrm(4,"br"),e.DNE(
15,at,3,0,"div",53),e.k0s()),2&i){const n=e.XpG(4);e.R7$(3),e.Y8G("ngIf",n.isSupportAdmin),e.R7$(2),e.Y8G("ngIf",n.isSupportAdmin)}}function _t(i,_){if(1&i){const n=e.RV6();e.j41(0,"form",238,10),e.bIt("ngSubmit",function(){e.eBV(n);const t=e.XpG(6);return e.Njj(t.onConnectVertalo())}),e.j41(2,"p"),e.EFF(3,"To connect using the WealthBlock account leave the keys blank"),e.k0s(),e.j41(4,"div",196)(5,"mat-form-field",35)(6,"mat-label"),e.EFF(7,"Vertalo Client ID"),e.k0s(),e.j41(8,"input",272),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(6);return e.DH7(o.config.vertalo.clientId,t)||(o.config.vertalo.clientId=t),e.Njj(t)}),e.k0s()()(),e.j41(9,"div",196)(10,"mat-form-field",35)(11,"mat-label"),e.EFF(12,"Vertalo Client Secret"),e.k0s(),e.j41(13,"input",273),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(6);return e.DH7(o.config.vertalo.clientSecret,t)||(o.config.vertalo.clientSecret=t),e.Njj(t)}),e.k0s()()(),e.j41(14,"div",38)(15,"wb-button",261),e.EFF(16,"Connect My Vertalo Account"),e.k0s()()()}if(2&i){const n=e.sdS(1),a=e.XpG(6);e.R7$(8),e.R50("ngModel",a.config.vertalo.clientId),e.R7$(5),e.R50("ngModel",a.config.vertalo.clientSecret),e.R7$(2),e.Y8G("disabled",!n.valid)}}function lt(i,_){if(1&i&&(e.j41(0,"div",211),e.DNE(1,_t,17,3,"form",271),e.k0s()),2&i){const n=e.XpG(5);e.R7$(),e.Y8G("ngIf",n.isSupportAdmin)}}function rt(i,_){if(1&i&&e.DNE(0,lt,2,1,"div",223),2&i){const n=e.XpG(4);e.Y8G("ngIf",n.showVertalo)}}function st(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",208)(1,"h3"),e.EFF(2,"Vertalo Integration "),e.j41(3,"mat-slide-toggle",269),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.showVertalo,t)||(o.showVertalo=t),e.Njj(t)}),e.bIt("ngModelChange",function(){e.eBV(n);const t=e.XpG(3);return e.Njj(t.onVertaloToggle())}),e.k0s(),e.nrm(4,"wb-help",270),e.k0s(),e.DNE(5,ct,6,2,"div",210)(6,rt,1,1,"ng-template",null,9,e.C5r),e.k0s()}if(2&i){const n=e.sdS(7),a=e.XpG(3);e.R7$(3),e.R50("ngModel",a.showVertalo),e.R7$(),e.Y8G("top",7)("left",8),e.R7$(),e.Y8G("ngIf",a.config.vertalo.enabled)("ngIfElse",n)}}function mt(i,_){if(1&i){const n=e.RV6();e.qex(0),e.j41(1,"p",212),e.EFF(2,"You have authorized your Zum Rail Account"),e.k0s(),e.nrm(3,"br"),e.j41(4,"div")(5,"wb-button",234),e.bIt("click",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.onChangeZum())}),e.EFF(6,"Connect to a Different Zum Rail Account"),e.k0s(),e.j41(7,"wb-button",276),e.bIt("click",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.onDisconnectZum())}),e.EFF(8,"Disable Zum Rail"),e.k0s()(),e.bVm()}}function gt(i,_){if(1&i&&(e.j41(0,"div",247),e.nrm(1,"iframe",277),e.k0s()),2&i){const n=e.XpG(5);e.R7$(),e.Y8G("src",n.addZumRailUrl,e.f$h)}}function dt(i,_){if(1&i&&(e.j41(0,"div",211),e.DNE(1,mt,9,0,"ng-container",53)(2,gt,2,1,"div",275),e.k0s()),2&i){const n=e.XpG(4);e.R7$(),e.Y8G("ngIf",!n.addZumRailUrl),e.R7$(),e.Y8G("ngIf",n.addZumRailUrl)}}function pt(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",211)(1,"form",238,12),e.bIt("ngSubmit",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.onConnectZum())}),e.j41(3,"div",196)(4,"mat-form-field",35)(5,"mat-label"),e.EFF(6,"API Username"),e.k0s(),e.j41(7,"input",278),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.zum.clientId,t)||(o.config.zum.clientId=t),e.Njj(t)}),e.k0s()()(),e.j41(8,"div",196)(9,"mat-form-field",35)(10,"mat-label"),e.EFF(11,"API Password"),e.k0s(),e.j41(12,"input",256),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.zum.clientSecret,t)||(o.config.zum.clientSecret=t),e.Njj(t)}),e.k0s(),e.j41(13,"mat-icon",279),e.bIt("click",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.openZumRails("https://help.zumrails.com/en/articles/5334436-api-keys"))}),e.EFF(14,"help_outline"),e.k0s()()(),e.j41(15,"div",196)(16,"mat-form-field",35)(17,"mat-label"),e.EFF(18,"Funding Source ID"),e.k0s(),e.j41(19,"input",280),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.zum.fundingSourceId,t)||(o.config.zum.fundingSourceId=t),e.Njj(t)}),e.k0s(),e.j41(20,"mat-icon",281),e.bIt("click",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.openZumRails("https://help.zumrails.com/en/articles/5201824-adding-a-funding-source"))}),e.EFF(21,"help_outline"),e.k0s()()(),e.j41(22,"div",38)(23,"wb-button",261),e.EFF(24,"Connect My Zum Rail Account"),e.k0s()()()()}if(2&i){const n=e.sdS(2),a=e.XpG(5);e.R7$(7),e.R50("ngModel",a.config.zum.clientId),e.R7$(5),e.R50("ngModel",a.config.zum.clientSecret),e.R7$(7),e.R50("ngModel",a.config.zum.fundingSourceId),e.R7$(4),e.Y8G("disabled",!n.valid)}}function ft(i,_){if(1&i&&e.DNE(0,pt,25,4,"div",223),2&i){const n=e.XpG(4);e.Y8G("ngIf",n.showZumRail)}}function ut(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",208)(1,"h3"),e.EFF(2,"Zum Rails Integration "),e.j41(3,"mat-slide-toggle",274),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.showZumRail,t)||(o.showZumRail=t),e.Njj(t)}),e.k0s()(),e.DNE(4,dt,3,2,"div",210)(5,ft,1,1,"ng-template",null,11,e.C5r),e.k0s()}if(2&i){const n=e.sdS(6),a=e.XpG(3);e.R7$(3),e.R50("ngModel",a.showZumRail),e.R7$(),e.Y8G("ngIf",a.config.zum.enabled)("ngIfElse",n)}}function ht(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",196)(1,"mat-form-field",35)(2,"mat-label"),e.EFF(3,"Website.hook ID"),e.k0s(),e.j41(4,"input",284),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.voPayWebsiteHookId,t)||(o.voPayWebsiteHookId=t),e.Njj(t)}),e.k0s()(),e.j41(5,"wb-button",234),e.bIt("click",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.onVoPayWebhookSetup())}),e.EFF(6,"Reset Hook"),e.k0s()()}if(2&i){const n=e.XpG(5);e.R7$(4),e.R50("ngModel",n.voPayWebsiteHookId)}}function Ct(i,_){if(1&i&&(e.j41(0,"div",211)(1,"p",212),e.EFF(2,"You are connected to VoPay"),e.k0s(),e.nrm(3,"br"),e.DNE(4,ht,7,1,"div",283),e.k0s()),2&i){const n=e.XpG(4);e.R7$(4),e.Y8G("ngIf",n.isSupportAdmin&&!n.isRelease)}}function bt(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",211)(1,"form",238,14),e.bIt("ngSubmit",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.onConnectVoPay())}),e.j41(3,"div",196)(4,"mat-form-field",35)(5,"mat-label"),e.EFF(6,"Account ID"),e.k0s(),e.j41(7,"input",257),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.vopay.accountId,t)||(o.config.vopay.accountId=t),e.Njj(t)}),e.k0s()()(),e.j41(8,"div",196)(9,"mat-form-field",35)(10,"mat-label"),e.EFF(11,"API Shared Secret"),e.k0s(),e.j41(12,"input",285),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.vopay.secret,t)||(o.config.vopay.secret=t),e.Njj(t)}),e.k0s()()(),e.j41(13,"div",196)(14,"mat-form-field",35)(15,"mat-label"),e.EFF(16,"API Key"),e.k0s(),e.j41(17,"input",286),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.vopay.key,t)||(o.config.vopay.key=t),e.Njj(t)}),e.k0s()()(),e.j41(18,"div",38)(19,"wb-button",261),e.EFF(20,"Connect My VoPay Account"),e.k0s()()()()}if(2&i){const n=e.sdS(2),a=e.XpG(5);e.R7$(7),e.R50("ngModel",a.config.vopay.accountId),e.R7$(5),e.R50("ngModel",a.config.vopay.secret),e.R7$(5),e.R50("ngModel",a.config.vopay.key),e.R7$(2),e.Y8G("disabled",!n.valid)}}function vt(i,_){if(1&i&&e.DNE(0,bt,21,4,"div",223),2&i){const n=e.XpG(4);e.Y8G("ngIf",n.showVoPay)}}function Pt(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",208)(1,"h3"),e.EFF(2,"VoPay Integration "),e.j41(3,"mat-slide-toggle",282),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.showVoPay,t)||(o.showVoPay=t),e.Njj(t)}),e.bIt("ngModelChange",function(){e.eBV(n);const t=e.XpG(3);
1return e.Njj(t.onVoPayToggle())}),e.k0s()(),e.DNE(4,Ct,5,1,"div",210)(5,vt,1,1,"ng-template",null,13,e.C5r),e.k0s()}if(2&i){const n=e.sdS(6),a=e.XpG(3);e.R7$(3),e.R50("ngModel",a.showVoPay),e.Y8G("disabled",!a.isSupportAdmin),e.R7$(),e.Y8G("ngIf",a.config.vopay.enabled)("ngIfElse",n)}}function kt(i,_){if(1&i&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&i){const n=e.XpG(5);e.R7$(),e.SpI(" using ",n.config.cybrid.clientId?"a client":"the WealthBlock"," account")}}function Mt(i,_){1&i&&(e.j41(0,"span"),e.EFF(1," with an External Bank Account"),e.k0s())}function xt(i,_){if(1&i){const n=e.RV6();e.j41(0,"wb-button",288),e.bIt("click",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.onCybridWebhook(!0))}),e.EFF(1,"Setup Webhook"),e.k0s()}}function jt(i,_){if(1&i){const n=e.RV6();e.j41(0,"wb-button",288),e.bIt("click",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.reloadWebhook())}),e.EFF(1,"Refresh Webhook"),e.k0s()}}function It(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",211)(1,"p",212),e.EFF(2,"You are connected to Cybrid"),e.DNE(3,kt,2,1,"span",53)(4,Mt,2,0,"span",53),e.k0s(),e.nrm(5,"br"),e.j41(6,"div")(7,"wb-button",215),e.bIt("click",function(){e.eBV(n);const t=e.XpG(4);return e.Njj(t.onChangeCybrid())}),e.EFF(8,"Connect to a Different Cybrid Account"),e.k0s(),e.j41(9,"wb-button",276),e.bIt("click",function(){e.eBV(n);const t=e.XpG(4);return e.Njj(t.onDisconnectCybrid())}),e.EFF(10,"Disable Cybrid"),e.k0s(),e.j41(11,"wb-button",288),e.bIt("click",function(){e.eBV(n);const t=e.XpG(4);return t.showCybridUpdateForm=!0,e.Njj(t.populateBankForm())}),e.EFF(12),e.k0s(),e.DNE(13,xt,2,0,"wb-button",289)(14,jt,2,0,"wb-button",289),e.k0s()()}if(2&i){const n=e.XpG(4);e.R7$(3),e.Y8G("ngIf",n.isSupportAdmin),e.R7$(),e.Y8G("ngIf",n.config.cybrid.bankExternalAccountId),e.R7$(8),e.SpI("",n.config.cybrid.bankExternalAccountId?"Change":"Connect"," External Bank Account"),e.R7$(),e.Y8G("ngIf",!n.config.cybrid.webhookGuid),e.R7$(),e.Y8G("ngIf",n.config.cybrid.webhookGuid)}}function yt(i,_){if(1&i){const n=e.RV6();e.qex(0),e.j41(1,"div",63)(2,"mat-form-field",35)(3,"mat-label"),e.EFF(4,"Organization GUID"),e.k0s(),e.j41(5,"input",291),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(6);return e.DH7(o.config.cybrid.organizationId,t)||(o.config.cybrid.organizationId=t),e.Njj(t)}),e.k0s()()(),e.j41(6,"div",63)(7,"mat-form-field",35)(8,"mat-label"),e.EFF(9,"Organization Client ID"),e.k0s(),e.j41(10,"input",278),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(6);return e.DH7(o.config.cybrid.clientId,t)||(o.config.cybrid.clientId=t),e.Njj(t)}),e.k0s()()(),e.j41(11,"div",63)(12,"mat-form-field",35)(13,"mat-label"),e.EFF(14,"Organization Client Secret"),e.k0s(),e.j41(15,"input",292),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(6);return e.DH7(o.config.cybrid.clientSecret,t)||(o.config.cybrid.clientSecret=t),e.Njj(t)}),e.k0s()()(),e.j41(16,"div",63)(17,"mat-form-field",35)(18,"mat-label"),e.EFF(19,"Bank GUID"),e.k0s(),e.j41(20,"input",293),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(6);return e.DH7(o.config.cybrid.bankGuid,t)||(o.config.cybrid.bankGuid=t),e.Njj(t)}),e.k0s()()(),e.j41(21,"div",63)(22,"mat-form-field",35)(23,"mat-label"),e.EFF(24,"Bank Client ID"),e.k0s(),e.j41(25,"input",294),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(6);return e.DH7(o.config.cybrid.bankClientId,t)||(o.config.cybrid.bankClientId=t),e.Njj(t)}),e.k0s()()(),e.j41(26,"div",63)(27,"mat-form-field",35)(28,"mat-label"),e.EFF(29,"Bank Client Secret"),e.k0s(),e.j41(30,"input",295),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(6);return e.DH7(o.config.cybrid.bankClientSecret,t)||(o.config.cybrid.bankClientSecret=t),e.Njj(t)}),e.k0s()()(),e.bVm()}if(2&i){const n=e.XpG(6);e.R7$(5),e.R50("ngModel",n.config.cybrid.organizationId),e.R7$(5),e.R50("ngModel",n.config.cybrid.clientId),e.R7$(5),e.R50("ngModel",n.config.cybrid.clientSecret),e.R7$(5),e.R50("ngModel",n.config.cybrid.bankGuid),e.R7$(5),e.R50("ngModel",n.config.cybrid.bankClientId),e.R7$(5),e.R50("ngModel",n.config.cybrid.bankClientSecret)}}function Ft(i,_){if(1&i){const n=e.RV6();e.j41(0,"input",301),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(8);return e.DH7(o.config.cybrid.bankExternalAccountId,t)||(o.config.cybrid.bankExternalAccountId=t),e.Njj(t)}),e.k0s()}if(2&i){const n=e.XpG(8);e.R50("ngModel",n.config.cybrid.bankExternalAccountId)}}function wt(i,_){if(1&i){const n=e.RV6();e.j41(0,"input",302),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(8);return e.DH7(o.cybridBank.guid,t)||(o.cybridBank.guid=t),e.Njj(t)}),e.k0s()}if(2&i){const n=e.XpG(8);e.R50("ngModel",n.cybridBank.guid)}}function At(i,_){if(1&i&&(e.j41(0,"div",63)(1,"mat-form-field",35)(2,"mat-label"),e.EFF(3,"External Bank Guid"),e.k0s(),e.DNE(4,Ft,1,1,"input",299)(5,wt,1,1,"input",300),e.k0s()()),2&i){const n=e.XpG(7);
1e.R7$(4),e.Y8G("ngIf",!n.showCybridUpdateForm),e.R7$(),e.Y8G("ngIf",n.showCybridUpdateForm)}}function Tt(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",63)(1,"mat-form-field",35)(2,"mat-label"),e.EFF(3,"Company Name"),e.k0s(),e.j41(4,"input",303),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(7);return e.DH7(o.cybridBank.companyName,t)||(o.cybridBank.companyName=t),e.Njj(t)}),e.k0s()()(),e.j41(5,"div",63)(6,"mat-form-field",35)(7,"mat-label"),e.EFF(8,"Email"),e.k0s(),e.j41(9,"input",304),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(7);return e.DH7(o.cybridBank.email,t)||(o.cybridBank.email=t),e.Njj(t)}),e.k0s()()(),e.j41(10,"div"),e.nrm(11,"wb-address",305),e.k0s(),e.j41(12,"div",63)(13,"mat-form-field",35)(14,"mat-label"),e.EFF(15,"Bank Name"),e.k0s(),e.j41(16,"input",306),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(7);return e.DH7(o.cybridBank.bankName,t)||(o.cybridBank.bankName=t),e.Njj(t)}),e.k0s()()(),e.j41(17,"div",63)(18,"mat-form-field",35)(19,"mat-label"),e.EFF(20,"Account Number"),e.k0s(),e.j41(21,"input",307),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(7);return e.DH7(o.cybridBank.accountNumber,t)||(o.cybridBank.accountNumber=t),e.Njj(t)}),e.k0s()()(),e.j41(22,"div",63)(23,"mat-form-field",35)(24,"mat-label"),e.EFF(25,"Routing Number"),e.k0s(),e.j41(26,"input",308),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(7);return e.DH7(o.cybridBank.routingNumber,t)||(o.cybridBank.routingNumber=t),e.Njj(t)}),e.k0s()()(),e.j41(27,"div",63)(28,"mat-form-field",35)(29,"mat-label"),e.EFF(30,"Bank Type"),e.k0s(),e.j41(31,"mat-select",309),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(7);return e.DH7(o.cybridBank.routingNumberType,t)||(o.cybridBank.routingNumberType=t),e.Njj(t)}),e.j41(32,"mat-option",310),e.EFF(33,"ABA - USA"),e.k0s(),e.j41(34,"mat-option",311),e.EFF(35,"CPA - Canada"),e.k0s()()()()}if(2&i){const n=e.XpG(7);e.R7$(4),e.R50("ngModel",n.cybridBank.companyName),e.R7$(5),e.R50("ngModel",n.cybridBank.email),e.R7$(2),e.Y8G("profile",n.cybridBank)("showCountry",!0)("required",!0),e.R7$(5),e.R50("ngModel",n.cybridBank.bankName),e.R7$(5),e.R50("ngModel",n.cybridBank.accountNumber),e.R7$(5),e.R50("ngModel",n.cybridBank.routingNumber),e.R7$(5),e.R50("ngModel",n.cybridBank.routingNumberType)}}function Rt(i,_){if(1&i){const n=e.RV6();e.qex(0),e.j41(1,"div",214)(2,"h5",296),e.EFF(3,"Create External Bank Account "),e.j41(4,"mat-slide-toggle",297),e.bIt("ngModelChange",function(){e.eBV(n);const t=e.XpG(6);return e.Njj(t.populateBankForm())}),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(6);return e.DH7(o.showCybridBankForm,t)||(o.showCybridBankForm=t),e.Njj(t)}),e.k0s()()(),e.DNE(5,At,6,2,"div",298)(6,Tt,36,9,"ng-template",null,17,e.C5r),e.bVm()}if(2&i){const n=e.sdS(7),a=e.XpG(6);e.R7$(4),e.R50("ngModel",a.showCybridBankForm),e.R7$(),e.Y8G("ngIf",!a.showCybridBankForm)("ngIfElse",n)}}function Gt(i,_){if(1&i){const n=e.RV6();e.j41(0,"wb-button",312),e.bIt("click",function(){e.eBV(n);const t=e.XpG(6);return e.Njj(t.disconnectCybridExternalBank())}),e.EFF(1,"Remove External Bank Account"),e.k0s()}}function Et(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",211)(1,"form",238,16),e.bIt("ngSubmit",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.onConnectCybrid())}),e.DNE(3,yt,31,6,"ng-container",53)(4,Rt,8,3,"ng-container",53),e.j41(5,"div",38)(6,"wb-button",261),e.EFF(7),e.k0s(),e.DNE(8,Gt,2,0,"wb-button",290),e.k0s()()()}if(2&i){const n=e.sdS(2),a=e.XpG(5);e.R7$(3),e.Y8G("ngIf",!a.config.cybrid.enabled),e.R7$(),e.Y8G("ngIf",a.config.cybrid.bankClientSecret&&a.config.cybrid.bankClientId&&a.config.cybrid.bankGuid||a.showCybridUpdateForm),e.R7$(2),e.Y8G("disabled",!n.valid),e.R7$(),e.SpI("",a.config.cybrid.enabled?"Update":"Connect"," My Cybrid Account"),e.R7$(),e.Y8G("ngIf",a.config.cybrid.enabled&&a.config.cybrid.bankExternalAccountId)}}function St(i,_){if(1&i&&e.DNE(0,Et,9,5,"div",223),2&i){const n=e.XpG(4);e.Y8G("ngIf",n.showCybrid)}}function Nt(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",208)(1,"h3"),e.EFF(2,"Cybrid Integration "),e.j41(3,"mat-slide-toggle",287),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.showCybrid,t)||(o.showCybrid=t),e.Njj(t)}),e.bIt("ngModelChange",function(){e.eBV(n);const t=e.XpG(3);return e.Njj(t.onCybridToggle())}),e.k0s()(),e.DNE(4,It,15,5,"div",210)(5,St,1,1,"ng-template",null,15,e.C5r),e.k0s()}if(2&i){const n=e.sdS(6),a=e.XpG(3);e.R7$(3),e.R50("ngModel",a.showCybrid),e.R7$(),e.Y8G("ngIf",a.config.cybrid.enabled&&!a.showCybridUpdateForm)("ngIfElse",n)}}function Dt(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",211)(1,"p",212),e.EFF(2,"You are connected to WalletConnect"),e.k0s(),e.nrm(3,"br"),e.j41(4,"div")(5,"wb-button",215),e.bIt("click",function(){e.eBV(n);const t=e.XpG(4);return e.Njj(t.onChangeWallet())}),e.EFF(6,"Connect to a Different WalletConnect Account"),e.k0s(),e.j41(7,"wb-button",276),e.bIt("click",function(){e.eBV(n);const t=e.XpG(4);return e.Njj(t.onDisconnectWallet())}),e.EFF(8,"Disable WalletConnect"),e.k0s()()()}}function Vt(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",211)(1,"form",238,19),e.bIt("ngSubmit",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.onConnectWallet())}),e.j41(3,"div",63)(4,"mat-form-field",35)(5,"mat-label"),e.EFF(6,"Project ID"),e.k0s(),e.j41(7,"input",314),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.walletConnect.projectId,t)||(o.config.walletConnect.projectId=t),e.Njj(t)}),e.k0s()()(),e.j41(8,"div",38)(9,"wb-button",261),e.EFF(10,"Connect My WalletConnect Account"),e.k0s()()()()}if(2&i){const n=e.sdS(2),a=e.XpG(5);e.R7$(7),e.R50("ngModel",a.config.walletConnect.projectId),e.R7$(2),e.Y8G("disabled",!n.valid)}}function Xt(i,_){if(1&i&&e.DNE(0,Vt,11,2,"div",223),2&i){const n=e.XpG(4);e.Y8G("ngIf",n.showWallet)}}function Ot(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",208)(1,"h3"),e.EFF(2,"WalletConnect Integration "),e.j41(3,"mat-slide-toggle",313),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.showWallet,t)||(o.showWallet=t),e.Njj(t)}),e.bIt("ngModelChange",function(){e.eBV(n);const t=e.XpG(3);return e.Njj(t.onWalletToggle())}),e.k0s()(),e.DNE(4,Dt,9,0,"div",210)(5,Xt,1,1,"ng-template",null,18,e.C5r),e.k0s()}if(2&i){const n=e.sdS(6),a=e.XpG(3);e.R7$(3),e.R50("ngModel",a.showWallet),e.R7$(),e.Y8G("ngIf",a.config.walletConnect.enabled)("ngIfElse",n)}}function Bt(i,_){if(1&i&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&i){const n=e.XpG(5);e.R7$(),e.SpI(" using ",n.config.brassica.apiKey?"a client":"the WealthBlock"," account")}}function Ut(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",211)(1,"p",212),e.EFF(2,"You are connected to Brassica"),e.DNE(3,Bt,2,1,"span",53),e.k0s(),e.nrm(4,"br"),e.j41(5,"div")(6,"wb-button",215),e.bIt("click",function(){e.eBV(n);const t=e.XpG(4);return e.Njj(t.onChangeBrassica())}),e.EFF(7,"Connect to a Different Brassica Account"),e.k0s(),e.j41(8,"wb-button",276),e.bIt("click",function(){e.eBV(n);const t=e.XpG(4);return e.Njj(t.onDisconnectBrassica())}),e.EFF(9,"Disable Brassica"),e.k0s()()()}if(2&i){const n=e.XpG(4);e.R7$(3),e.Y8G("ngIf",n.isSupportAdmin)}}function Lt(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",211)(1,"form",238,21),e.bIt("ngSubmit",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.onConnectBrassica())}),e.j41(3,"div",63)(4,"mat-form-field",35)(5,"mat-label"),e.EFF(6,"API Key"),e.k0s(),e.j41(7,"input",316),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.brassica.apiKey,t)||(o.config.brassica.apiKey=t),e.Njj(t)}),e.k0s()()(),e.j41(8,"div",63)(9,"mat-form-field",35)(10,"mat-label"),e.EFF(11,"Platform"),e.k0s(),e.j41(12,"input",317),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.brassica.platform,t)||(o.config.brassica.platform=t),e.Njj(t)}),e.k0s()()(),e.j41(13,"div",38)(14,"wb-button",261),e.EFF(15,"Connect My Brassica Account"),e.k0s()()()()}if(2&i){const n=e.sdS(2),a=e.XpG(5);e.R7$(7),e.R50("ngModel",a.config.brassica.apiKey),e.R7$(5),e.R50("ngModel",a.config.brassica.platform),e.R7$(2),e.Y8G("disabled",!n.valid)}}function Yt(i,_){if(1&i&&e.DNE(0,Lt,16,3,"div",223),2&i){const n=e.XpG(4);e.Y8G("ngIf",n.showBrassica)}}function Ht(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",208)(1,"h3"),e.EFF(2,"Brassica Integration "),e.j41(3,"mat-slide-toggle",315),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.showBrassica,t)||(o.showBrassica=t),e.Njj(t)}),e.bIt("ngModelChange",function(){e.eBV(n);const t=e.XpG(3);return e.Njj(t.onBrassicaToggle())}),e.k0s()(),e.DNE(4,Ut,10,1,"div",210)(5,Yt,1,1,"ng-template",null,20,e.C5r),e.k0s()}if(2&i){const n=e.sdS(6),a=e.XpG(3);e.R7$(3),e.R50("ngModel",a.showBrassica),e.R7$(),e.Y8G("ngIf",a.config.brassica.enabled)("ngIfElse",n)}}function qt(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",211)(1,"p",212),e.EFF(2,"The BitGo integration is enabled. "),e.j41(3,"em"),e.EFF(4),e.k0s()(),e.nrm(5,"br"),e.j41(6,"div")(7,"wb-button",215),e.bIt("click",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.onChangeBitGo())}),e.EFF(8,"Connect to a Different BitGo Account"),e.k0s()()()}if(2&i){const n=e.XpG(5);e.R7$(4),e.SpI("Enterprise: ",n.config.bitgo.enterpriseId,"")}}function Kt(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",211)(1,"form",238,23),e.bIt("ngSubmit",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.onEnableBitGo(!0))}),e.j41(3,"div")(4,"mat-form-field",35)(5,"mat-label"),e.EFF(6,"Organization ID"),e.k0s(),e.j41(7,"input",319),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.bitgo.organizationId,t)||(o.config.bitgo.organizationId=t),e.Njj(t)}),e.k0s()()(),e.j41(8,"div",63)(9,"mat-form-field",35)(10,"mat-label"),e.EFF(11,"Enterprise ID"),e.k0s(),e.j41(12,"input",320),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.bitgo.enterpriseId,t)||(o.config.bitgo.enterpriseId=t),e.Njj(t)}),e.k0s()()(),e.j41(13,"div",63)(14,"mat-form-field",35)(15,"mat-label"),e.EFF(16,"Access Token"),e.k0s(),e.j41(17,"input",321),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.bitgo.accessToken,t)||(o.config.bitgo.accessToken=t),e.Njj(t)}),e.k0s()()(),e.j41(18,"div",63)(19,"mat-form-field",35)(20,"mat-label"),e.EFF(21,"Service User ID"),e.k0s(),e.j41(22,"input",322),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.bitgo.serviceUserId,t)||(o.config.bitgo.serviceUserId=t),e.Njj(t)}),e.k0s()()(),e.j41(23,"div",63)(24,"mat-form-field",35)(25,"mat-label"),e.EFF(26,"Express Proxy URL"),e.k0s(),e.j41(27,"input",323),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.config.bitgo.expressProxyUrl,t)||(o.config.bitgo.expressProxyUrl=t),e.Njj(t)}),e.k0s()()(),e.j41(28,"div",38)(29,"wb-button",261),e.EFF(30,"Enable BitGo Integration"),e.k0s()()()()}if(2&i){const n=e.sdS(2),a=e.XpG(5);e.R7$(7),e.R50("ngModel",a.config.bitgo.organizationId),e.R7$(5),e.R50("ngModel",a.config.bitgo.enterpriseId),e.R7$(5),e.R50("ngModel",a.config.bitgo.accessToken),e.R7$(5),e.R50("ngModel",a.config.bitgo.serviceUserId),e.R7$(5),e.R50("ngModel",a.config.bitgo.expressProxyUrl),e.R7$(2),e.Y8G("disabled",!n.valid)}}function zt(i,_){if(1&i&&(e.qex(0),e.DNE(1,qt,9,1,"div",210)(2,Kt,31,6,"ng-template",null,22,e.C5r),e.bVm()),2&i){const n=e.sdS(3),a=e.XpG(4);e.R7$(),e.Y8G("ngIf",a.config.bitgo.enabled)("ngIfElse",n)}}function $t(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",208)(1,"h3"),e.EFF(2,"BitGo Integration "),e.j41(3,"mat-slide-toggle",318),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.showBitGo,t)||(o.showBitGo=t),e.Njj(t)}),e.bIt("ngModelChange",function(){e.eBV(n);const t=e.XpG(3);return e.Njj(t.onEnableBitGo(!1))}),e.k0s()(),e.DNE(4,zt,4,2,"ng-container",53),e.k0s()}if(2&i){const n=e.XpG(3);e.R7$(3),e.R50("ngModel",n.showBitGo),e.R7$(),e.Y8G("ngIf",n.showBitGo)}}function Wt(i,_){1&i&&(e.j41(0,"p",212),e.EFF(1,"You have enabled GMail"),e.k0s())}function Qt(i,_){1&i&&(e.j41(0,"p",212),e.EFF(1,"You have authorized your Outlook account and GMail"),e.k0s())}function Zt(i,_){if(1&i){const n=e.RV6();e.j41(0,"wb-button",234),e.bIt("click",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.onChangeOutlook())}),e.EFF(1,"Connect to a Different Outlook Account"),e.k0s()}}function Jt(i,_){if(1&i){const n=e.RV6();e.j41(0,"wb-button",234),e.bIt("click",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.onConnectOutlook())}),e.EFF(1,"Connect to an Outlook Account"),e.k0s()}}function eo(i,_){if(1&i){const n=e.RV6();e.j41(0,"wb-button",276),e.bIt("click",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.onDisconnectOutlook())}),e.EFF(1,"Disconnect Outlook"),e.k0s()}}function no(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",211),e.qex(1),e.DNE(2,Wt,2,0,"p",226),e.nrm(3,"br"),e.DNE(4,Qt,2,0,"p",226),e.nrm(5,"br"),e.j41(6,"div"),e.DNE(7,Zt,2,0,"wb-button",233)(8,Jt,2,0,"wb-button",233),e.j41(9,"wb-button",276),e.bIt("click",function(){e.eBV(n);const t=e.XpG(4);return e.Njj(t.onDisconnectMailConnect())}),e.EFF(10,"Disable Email Connect"),e.k0s(),e.DNE(11,eo,2,0,"wb-button",325),e.k0s(),e.bVm(),e.k0s()}if(2&i){const n=e.XpG(4);e.R7$(2),e.Y8G("ngIf",!n.config.mailConnect.outlook),e.R7$(2),e.Y8G("ngIf",n.config.mailConnect.outlook),e.R7$(3),e.Y8G("ngIf",n.config.mailConnect.outlook),e.R7$(),e.Y8G("ngIf",!n.config.mailConnect.outlook),e.R7$(3),e.Y8G("ngIf",n.config.mailConnect.outlook)}}function to(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",330)(1,"mat-form-field",50)(2,"mat-label"),e.EFF(3,"Outlook Client ID"),e.k0s(),e.j41(4,"input",331),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(6);return e.DH7(o.config.mailConnect.outlook.id,t)||(o.config.mailConnect.outlook.id=t),e.Njj(t)}),e.k0s()(),e.j41(5,"mat-icon",332),e.EFF(6,"help_outline"),e.k0s()()}if(2&i){const n=e.XpG(6);e.R7$(4),e.R50("ngModel",n.config.mailConnect.outlook.id)}}function oo(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",330)(1,"mat-form-field",50)(2,"mat-label"),e.EFF(3,"Outlook Client Secret"),e.k0s(),e.j41(4,"input",333),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(6);return e.DH7(o.config.mailConnect.outlook.secret,t)||(o.config.mailConnect.outlook.secret=t),e.Njj(t)}),e.k0s()(),e.j41(5,"mat-icon",332),e.EFF(6,"help_outline"),e.k0s()()}if(2&i){const n=e.XpG(6);e.R7$(4),e.R50("ngModel",n.config.mailConnect.outlook.secret)}}function io(i,_){if(1&i&&(e.j41(0,"div",334)(1,"wb-button",261),e.EFF(2,"Connect Outlook"),e.k0s()()),2&i){e.XpG();const n=e.sdS(2),a=e.XpG(5);e.R7$(),e.Y8G("disabled",!n.valid||a.config.mailConnect.outlook.secret===a.mask)}}function ao(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",334)(1,"wb-button",335),e.EFF(2,"Connect GMail"),e.k0s(),e.j41(3,"wb-button",336),e.bIt("click",function(){e.eBV(n);const t=e.XpG(6);return e.Njj(t.onConnectOutlook())}),e.EFF(4,"Enable Outlook"),e.k0s()()}}function co(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",327)(1,"form",238,25),e.bIt("ngSubmit",function(){e.eBV(n);const t=e.XpG(5);return e.Njj(t.onEmailConnect())}),e.DNE(3,to,7,1,"div",328)(4,oo,7,1,"div",328)(5,io,3,1,"div",329)(6,ao,5,0,"div",329),e.k0s()()}if(2&i){const n=e.XpG(5);e.R7$(3),e.Y8G("ngIf",n.config.mailConnect.outlook),e.R7$(),e.Y8G("ngIf",n.config.mailConnect.outlook),e.R7$(),e.Y8G("ngIf",n.config.mailConnect.outlook),e.R7$(),e.Y8G("ngIf",!n.config.mailConnect.outlook)}}function _o(i,_){if(1&i&&e.DNE(0,co,7,4,"div",326),2&i){const n=e.XpG(4);e.Y8G("ngIf",n.showMailConnect)}}function lo(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",208)(1,"h3"),e.EFF(2,"Email Connect "),e.j41(3,"mat-slide-toggle",324),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.showMailConnect,t)||(o.showMailConnect=t),e.Njj(t)}),e.k0s()(),e.DNE(4,no,12,5,"div",210)(5,_o,1,1,"ng-template",null,24,e.C5r),e.k0s()}if(2&i){const n=e.sdS(6),a=e.XpG(3);e.R7$(3),e.R50("ngModel",a.showMailConnect),e.R7$(),e.Y8G("ngIf",a.config.mailConnect.enabled&&(!a.config.mailConnect.outlook||a.config.mailConnect.outlook.id))("ngIfElse",n)}}function ro(i,_){if(1&i){const n=e.RV6();e.qex(0),e.j41(1,"div",337)(2,"div",338)(3,"mat-slide-toggle",339),e.bIt("change",function(t){const o=e.eBV(n).$implicit,p=e.XpG(3);return e.Njj(p.toggleDisabled(t,o.type))}),e.k0s()(),e.j41(4,"label"),e.EFF(5),e.j41(6,"mat-icon",340),e.bIt("click",function(t){const o=e.eBV(n).$implicit,p=e.XpG(3);return e.Njj(p.sendTestHook(t,o.type))}),e.EFF(7,"
1send"),e.k0s()(),e.j41(8,"mat-form-field",35)(9,"mat-label"),e.EFF(10),e.k0s(),e.j41(11,"input",341),e.mxI("ngModelChange",function(t){const o=e.eBV(n).$implicit,p=e.XpG(3);return e.DH7(p.config.hooks[o.type],t)||(p.config.hooks[o.type]=t),e.Njj(t)}),e.bIt("blur",function(){const t=e.eBV(n).$implicit,o=e.XpG(3);return e.Njj(o.validateHook(t.type))}),e.k0s()()(),e.bVm()}if(2&i){const n=_.$implicit,a=e.XpG(3);e.R7$(3),e.Y8G("ngModel",a.getToggleState(n.type))("name","hookDisabled"+n.type)("matTooltip",a.getToggleState(n.type)?"Disable Web Hook":"Enable Web Hook"),e.R7$(2),e.SpI("",n.label," "),e.R7$(5),e.JRh(n.placeholder),e.R7$(),e.R50("ngModel",a.config.hooks[n.type]),e.Y8G("name","hook"+n.type)}}function so(i,_){1&i&&e.nrm(0,"mat-progress-bar",348)}function mo(i,_){if(1&i){const n=e.RV6();e.qex(0),e.j41(1,"h3"),e.EFF(2,"API"),e.k0s(),e.j41(3,"div",33)(4,"div",34)(5,"mat-form-field",35)(6,"mat-label"),e.EFF(7,"API Client ID"),e.k0s(),e.nrm(8,"input",342),e.k0s()(),e.j41(9,"div",34)(10,"mat-form-field",343),e.bIt("click",function(){e.eBV(n);const t=e.XpG(3);return e.Njj(t.onLoadApiKey())}),e.j41(11,"mat-label"),e.EFF(12,"API Key"),e.k0s(),e.nrm(13,"input",344),e.k0s(),e.DNE(14,so,1,0,"mat-progress-bar",345),e.k0s(),e.j41(15,"div",38)(16,"a",346),e.EFF(17,"View our API Documentation"),e.k0s(),e.j41(18,"wb-button",347),e.bIt("click",function(){e.eBV(n);const t=e.XpG(3);return e.Njj(t.onConfirmRotateAPIKey())}),e.EFF(19,"Rotate API Key"),e.k0s()()(),e.bVm()}if(2&i){const n=e.XpG(3);e.R7$(8),e.Y8G("value",n.clientId),e.R7$(5),e.Y8G("type",n.apiKey?"text":"password")("value",n.apiKey),e.R7$(),e.Y8G("ngIf",n.loadingApiKey),e.R7$(4),e.Y8G("disabled",n.loadingApiKey)}}function go(i,_){1&i&&e.nrm(0,"mat-progress-bar",348)}
1function po(i,_){if(1&i){const n=e.RV6();e.j41(0,"wb-button",357),e.bIt("click",function(){e.eBV(n);const t=e.XpG(6);return e.Njj(t.confirmPolicy(t.PlatformAgreementType.Privacy,t.privacyPolicy))}),e.EFF(1,"Save Privacy Policy"),e.k0s()}}function fo(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",33)(1,"div",38)(2,"wb-rich-text-editor",355),e.mxI("valueChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.privacyPolicy,t)||(o.privacyPolicy=t),e.Njj(t)}),e.k0s(),e.nrm(3,"br"),e.DNE(4,po,2,0,"wb-button",356),e.k0s()()}if(2&i){const n=e.XpG(5);e.R7$(2),e.R50("value",n.privacyPolicy),e.Y8G("allowHtml",!0),e.R7$(2),e.Y8G("ngIf",n.canUpdate)}}function uo(i,_){if(1&i&&(e.qex(0),e.j41(1,"h3"),e.EFF(2,"Privacy Policy"),e.k0s(),e.DNE(3,go,1,0,"mat-progress-bar",345)(4,fo,5,3,"div",227),e.bVm()),2&i){const n=e.XpG(4);e.R7$(3),e.Y8G("ngIf",n.loadingPolicies[n.PlatformAgreementType.Privacy]),e.R7$(),e.Y8G("ngIf",!n.loadingPolicies[n.PlatformAgreementType.Privacy])}}function ho(i,_){1&i&&e.nrm(0,"mat-progress-bar",348)}function Co(i,_){if(1&i){const n=e.RV6();e.j41(0,"wb-button",357),e.bIt("click",function(){e.eBV(n);const t=e.XpG(6);return e.Njj(t.confirmPolicy(t.PlatformAgreementType.TermsOfUse,t.termsOfUse))}),e.EFF(1,"Save Terms of Use"),e.k0s()}}function bo(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",33)(1,"div",38)(2,"wb-rich-text-editor",358),e.mxI("valueChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.termsOfUse,t)||(o.termsOfUse=t),e.Njj(t)}),e.k0s(),e.nrm(3,"br"),e.DNE(4,Co,2,0,"wb-button",356),e.k0s()()}if(2&i){const n=e.XpG(5);e.R7$(2),e.R50("value",n.termsOfUse),e.Y8G("allowHtml",!0),e.R7$(2),e.Y8G("ngIf",n.canUpdate)}}function vo(i,_){if(1&i&&(e.qex(0),e.j41(1,"h3"),e.EFF(2,"Terms of Use"),e.k0s(),e.DNE(3,ho,1,0,"mat-progress-bar",345)(4,bo,5,3,"div",227),e.bVm()),2&i){const n=e.XpG(4);e.R7$(3),e.Y8G("ngIf",n.loadingPolicies[n.PlatformAgreementType.TermsOfUse]),e.R7$(),e.Y8G("ngIf",!n.loadingPolicies[n.PlatformAgreementType.TermsOfUse])}}function Po(i,_){1&i&&e.nrm(0,"mat-progress-bar",348)}
1function ko(i,_){if(1&i){const n=e.RV6();e.j41(0,"wb-button",357),e.bIt("click",function(){e.eBV(n);const t=e.XpG(6);return e.Njj(t.uploadPolicy(t.PlatformAgreementType.RiskDisclosure,t.riskDisclosure))}),e.EFF(1,"Update Risk Disclosure"),e.k0s()}}function Mo(i,_){if(1&i){const n=e.RV6();e.j41(0,"div",33)(1,"div",38)(2,"wb-rich-text-editor",359),e.mxI("valueChange",function(t){e.eBV(n);const o=e.XpG(5);return e.DH7(o.riskDisclosure,t)||(o.riskDisclosure=t),e.Njj(t)}),e.k0s(),e.nrm(3,"br"),e.DNE(4,ko,2,0,"wb-button",356),e.k0s()()}if(2&i){const n=e.XpG(5);e.R7$(2),e.R50("value",n.riskDisclosure),e.Y8G("allowHtml",!0),e.R7$(2),e.Y8G("ngIf",n.canUpdate)}}function xo(i,_){if(1&i&&(e.qex(0),e.j41(1,"h3"),e.EFF(2,"Risk Disclosure"),e.k0s(),e.DNE(3,Po,1,0,"mat-progress-bar",345)(4,Mo,5,3,"div",227),e.bVm()),2&i){const n=e.XpG(4);e.R7$(3),e.Y8G("ngIf",n.loadingPolicies[n.PlatformAgreementType.RiskDisclosure]),e.R7$(),e.Y8G("ngIf",!n.loadingPolicies[n.PlatformAgreementType.RiskDisclosure])}}function jo(i,_){if(1&i){const n=e.RV6();e.j41(0,"mat-step",349)(1,"mat-card",32)(2,"h3"),e.EFF(3,"Policies "),e.nrm(4,"wb-help",350),e.k0s(),e.j41(5,"div",351)(6,"mat-form-field",35)(7,"mat-label"),e.EFF(8,"Select a Policy Type"),e.k0s(),e.j41(9,"mat-select",352),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(3);return e.DH7(o.selectedPolicyType,t)||(o.selectedPolicyType=t),e.Njj(t)}),e.bIt("selectionChange",function(t){e.eBV(n);const o=e.XpG(3);return e.Njj(o.onLoadPolicy(t.value))}),e.j41(10,"mat-option",117),e.EFF(11,"Privacy Policy"),e.k0s(),e.j41(12,"mat-option",117),e.EFF(13,"Terms Of Use"),e.k0s()()(),e.qex(14,353),e.DNE(15,uo,5,2,"ng-container",354)(16,vo,5,2,"ng-container",354)(17,xo,5,2,"ng-container",354),e.bVm(),e.k0s()()()}if(2&i){const n=e.XpG(3);e.Y8G("aria-label",n.Steps.Policies),e.R7$(4),e.Y8G("top",7)("left",8),e.R7$(5),e.R50("ngModel",n.selectedPolicyType),e.R7$(),e.Y8G("value",n.PlatformAgreementType.Privacy),e.R7$(2),e.Y8G("value",n.PlatformAgreementType.TermsOfUse),e.R7$(2),e.Y8G("ngSwitch",n.selectedPolicyType),e.R7$(),e.Y8G("ngSwitchCase",n.PlatformAgreementType.Privacy),e.R7$(),e.Y8G("ngSwitchCase",n.PlatformAgreementType.TermsOfUse),e.R7$(),e.Y8G("ngSwitchCase",n.PlatformAgreementType.RiskDisclosure)}}function Io(i,_){if(1&i){const n=e.RV6();e.qex(0),e.j41(1,"mat-step",183),e.nrm(2,"wb-admin-pages",184),e.k0s(),e.j41(3,"mat-step",185)(4,"mat-card",32)(5,"h3"),e.EFF(6,"Website"),e.k0s(),e.j41(7,"div",33),e.DNE(8,bn,7,1,"div",186),e.j41(9,"div",34)(10,"label"),e.EFF(11,"Where should clicking the platform logo take you?"),e.k0s(),e.j41(12,"mat-form-field",35)(13,"mat-label"),e.EFF(14,"Home Redirect URL (defaults to Marketplace)"),e.k0s(),e.j41(15,"input",187),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(2);return e.DH7(o.config.homeUrl,t)||(o.config.homeUrl=t),e.Njj(t)}),e.k0s()()(),e.j41(16,"div",34)(17,"label"),e.EFF(18,"Where should users land when they logout?"),e.k0s(),e.j41(19,"mat-form-field",35)(20,"mat-label"),e.EFF(21,"Logout Redirect URL (defaults to platform login)"),e.k0s(),e.j41(22,"input",188),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(2);return e.DH7(o.config.logoutUrl,t)||(o.config.logoutUrl=t),e.Njj(t)}),e.k0s()()(),e.j41(23,"div",34)(24,"label"),e.EFF(25,"Redirect invalid URLs to another page"),e.k0s(),e.j41(26,"mat-form-field",35)(27,"mat-label"),e.EFF(28,"Page Not Found URL (defaults to built-in 'access denied' page)"),e.k0s(),e.j41(29,"input",189),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(2);return e.DH7(o.config.notFoundUrl,t)||(o.config.notFoundUrl=t),e.Njj(t)}),e.k0s()()()()(),e.j41(30,"mat-card",32)(31,"h3"),e.EFF(32,"Third-Party"),e.k0s(),e.j41(33,"div",33)(34,"div",34)(35,"label"),e.EFF(36,"Connect your platform to Stripe"),e.k0s(),e.j41(37,"mat-form-field",35)(38,"mat-label"),e.EFF(39,"Stripe Public Key (pk_live)"),e.k0s(),e.j41(40,"input",190),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(2);return e.DH7(o.config.stripePublicKey,t)||(o.config.stripePublicKey=t),e.Njj(t)}),e.k0s()()(),e.j41(41,"div",34)(42,"label"),e.EFF(43,"Enter your stripe secret key"),e.k0s(),e.j41(44,"mat-form-field",35)(45,"mat-label"),e.EFF(46,"Stripe Secret Key (sk_live)"),e.k0s(),e.j41(47,"input",191),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(2);return e.DH7(o.config.stripeSecretKey,t)||(o.config.stripeSecretKey=t),e.Njj(t)}),e.k0s()()()(),e.j41(48,"div",33)(49,"div",34)(50,"label"),e.EFF(51,"Build a community by connecting your FB app"),e.k0s(),e.j41(52,"mat-form-field",35)(53,"mat-label"),e.EFF(54,"Facebook App ID"),e.k0s(),e.j41(55,"input",192),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(2);return e.DH7(o.config.facebookAppId,t)||(o.config.facebookAppId=t),e.Njj(t)}),e.k0s()()(),e.j41(56,"div",34)(57,"label"),e.EFF(58,"Send platform activity to your Google Analytics "),e.j41(59,"mat-icon",193),e.
1EFF(60,"help_outline"),e.k0s()(),e.j41(61,"mat-form-field",35)(62,"mat-label"),e.EFF(63,"Google Analytics Tracking ID"),e.k0s(),e.j41(64,"input",194),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(2);return e.DH7(o.config.googleAnalyticsId,t)||(o.config.googleAnalyticsId=t),e.Njj(t)}),e.k0s()()(),e.j41(65,"div",34)(66,"label"),e.EFF(67,"Add new users to a Mailchimp List"),e.k0s(),e.j41(68,"mat-form-field",35)(69,"mat-label"),e.EFF(70,"Mailchimp API Key"),e.k0s(),e.j41(71,"input",195),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(2);return e.DH7(o.config.mailchimpApiKey,t)||(o.config.mailchimpApiKey=t),e.Njj(t)}),e.k0s()()(),e.j41(72,"div",196)(73,"label"),e.EFF(74,"Mailchimp API Datacenter ID"),e.k0s(),e.j41(75,"mat-form-field",197)(76,"mat-label"),e.EFF(77,"Mailchimp API Datacenter ID"),e.k0s(),e.j41(78,"input",198),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(2);return e.DH7(o.config.mailchimpDCId,t)||(o.config.mailchimpDCId=t),e.Njj(t)}),e.k0s()()(),e.j41(79,"div",196)(80,"label"),e.EFF(81,"Mailchimp List to add new users to"),e.k0s(),e.j41(82,"mat-form-field",35)(83,"mat-label"),e.EFF(84,"Mailchimp List/Audience ID"),e.k0s(),e.j41(85,"input",199),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(2);return e.DH7(o.config.mailchimpListId,t)||(o.config.mailchimpListId=t),e.Njj(t)}),e.k0s()()(),e.DNE(86,vn,22,3,"ng-container",53),e.k0s(),e.DNE(87,In,7,3,"div",200)(88,Hn,9,3,"div",200)(89,Qn,8,5,"div",200)(90,ot,8,5,"div",200)(91,st,8,5,"div",200)(92,ut,7,3,"div",200)(93,Pt,7,4,"div",200)(94,Nt,7,3,"div",200)(95,Ot,7,3,"div",200)(96,Ht,7,3,"div",200)(97,$t,5,2,"div",200)(98,lo,7,3,"div",200),e.k0s(),e.j41(99,"mat-card",32)(100,"h3"),e.EFF(101,"Web Hooks"),e.k0s(),e.j41(102,"div",33),e.DNE(103,ro,12,7,"ng-container",77),e.j41(104,"div",38)(105,"a",201),e.EFF(106,"View our Webhook Documentation"),e.k0s()()(),e.DNE(107,mo,20,5,"ng-container",53),e.k0s()(),e.DNE(108,jo,18,10,"mat-step",202),e.bVm()}if(2&i){const n=e.XpG(2);e.R7$(),e.Y8G("aria-label",n.Steps.CustomPages),e.R7$(),e.Y8G("config",n.config)("canUpdate",n.canUpdate),e.R7$(),e.Y8G("aria-label",n.Steps.Integrations),e.R7$(5),e.Y8G("ngIf",n.isSuperAdmin),e.R7$(7),e.R50("ngModel",n.config.homeUrl),e.R7$(7),e.R50("ngModel",n.config.logoutUrl),e.R7$(7),e.R50("ngModel",n.config.notFoundUrl),e.R7$(11),e.R50("ngModel",n.config.stripePublicKey),e.R7$(7),e.R50("ngModel",n.config.stripeSecretKey),e.R7$(8),e.R50("ngModel",n.config.facebookAppId),e.R7$(9),e.R50("ngModel",n.config.googleAnalyticsId),e.R7$(7),e.R50("ngModel",n.config.mailchimpApiKey),e.R7$(7),e.R50("ngModel",n.config.mailchimpDCId),e.R7$(7),e.R50("ngModel",n.config.mailchimpListId),e.R7$(),e.Y8G("ngIf",n.config.sms),e.R7$(),e.Y8G("ngIf",n.config.northCapital&&n.isSupportAdmin),e.R7$(),e.Y8G("ngIf",n.config.cliq&&(n.showCliq||n.isSupportAdmin||n.config.cliq.enabled)),e.R7$(),e.Y8G("ngIf",n.config.docusign),e.R7$(),e.Y8G("ngIf",n.config.achq),e.R7$(),e.Y8G("ngIf",n.config.vertalo),e.R7$(),e.Y8G("ngIf",n.config.zum),e.R7$(),e.Y8G("ngIf",n.config.vopay&&(n.config.vopay.enabled||n.config.vopay.show||n.isSupportAdmin)),e.R7$(),e.Y8G("ngIf",n.config.cybrid&&n.cybridFeatureEnabled),e.R7$(),e.Y8G("ngIf",n.config.walletConnect&&n.cybridFeatureEnabled),e.R7$(),e.Y8G("ngIf",n.config.brassica),e.R7$(),e.Y8G("ngIf",n.bitGoIntegrationEnabled&&n.config.bitgo),e.R7$(),e.Y8G("ngIf",n.config.mailConnect&&n.isSupportAdmin),e.R7$(5),e.Y8G("ngForOf",n.getHooks()),e.R7$(4),e.Y8G("ngIf",!n.hideResources),e.R7$(),e.Y8G("ngIf",n.hasMarketplace)}}function yo(i,_){if(1&i){const n=e.RV6();e.j41(0,"mat-step",360)(1,"mat-card",32)(2,"h3"),e.EFF(3,"Private Config"),e.k0s(),e.j41(4,"div",33)(5,"div",361)(6,"mat-form-field",35)(7,"mat-label"),e.EFF(8,"Platform Slug"),e.k0s(),e.j41(9,"input",362),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG(2);return e.DH7(o.privateConfig.slug,t)||(o.privateConfig.slug=t),e.Njj(t)}),e.k0s()(),e.j41(10,"wb-button",363),e.bIt("click",function(){e.eBV(n);const t=e.XpG(2);return e.Njj(t.onUpdateSlug())}),e.EFF(11,"Update Slug"),e.k0s()()()()()}if(2&i){const n=e.XpG(2);e.Y8G("aria-label",n.Steps.SuperAdmin),e.R7$(9),e.R50("ngModel",n.privateConfig.slug),e.R7$(),e.Y8G("disabled",!n.privateConfig.slug)}}function Fo(i,_){if(1&i&&(e.j41(0,"wb-button",364),e.EFF(1),e.k0s()),2&i){e.XpG();const n=e.sdS(3),a=e.XpG();e.Y8G("disabled",!n.valid)("iconRight",a.showNextStep?"keyboard_arrow_right":null),e.R7$(),e.JRh(a.showNextStep?"NEXT":"UPDATE PLATFORM")}}function wo(i,_){if(1&i&&e.nrm(0,"wb-admin-platform-coach",365),2&i){e.XpG();const n=e.sdS(5),a=e.XpG();e.ZvI("coach_step_",(null==n?null:n.selectedIndex)||0,""),e.Y8G("message",a.getCoachMessage())("videos",a.getCoachVideos())}}function Ao(i,_){if(1&i){const n=e.RV6();e.DNE(0,De,1,0,"img",27)(1,Ve,5,0,"div",28),e.j41(2,"form",29,0),e.bIt("ngSubmit",function(){e.eBV(n);const t=e.XpG();return e.Njj(t.onSave())}),e.j41(4,"mat-stepper",30,1)(6,"mat-step",31)(7,"mat-card",32)(8,"h3"),e.EFF(9,"Basic Information"),e.k0s(),e.j41(10,"div",33)(11,"div",34)(12,"mat-form-field",35)(13,"mat-label"),e.EFF(14,"Platform Name"),e.k0s(),e.j41(15,"input",36),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG();return e.DH7(o.config.name,t)||(o.config.name=t),e.Njj(t)}),e.k0s()()(),e.j41(16,"div",34)(17,"mat-form-field",35)(18,"mat-label"),e.EFF(19,"Main Tagline"),e.k0s(),e.j41(20,"input",37),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG();return e.DH7(o.config.tagline,t)||(o.config.tagline=t),e.Njj(t)}),e.k0s()()(),e.j41(21,"div",38)(22,"mat-form-field",35)(23,"mat-label"),e.EFF(24,"Description"),e.k0s(),e.j41(25,"input",39),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG();return e.DH7(o.config.description,t)||(o.config.description=t),e.Njj(t)}),e.k0s()()()(),e.qex(26),e.j41(27,"h3"),e.EFF(28,"Distribution Network Information "),e.nrm(29,"wb-help",40),e.k0s(),e.j41(30,"div",33)(31,"div",38)(32,"mat-checkbox",41),e.mxI("ngModelChange",function(t){e.eBV(n);const o=e.XpG();return e.DH7(o.config.enableNetworkConnect,t)||(o.config.enableNetworkConnect=t),e.Njj(t)}),e.EFF(33," List my platform in the distribution Network "),e.j41(34,"mat-icon",42),e.EFF(35,"help_outline"),e.k0s()()(),e.DNE(36,Xe,16,3,"ng-container",43),e.k0s(),e.bVm(),e.k0s()(),e.j41(37,"mat-step",44)(38,"mat-card",32)(39,"div",33)(40,"div",38)(41,"h3"),e.EFF(42,"* Platform Logo "),e.nrm(43,"wb-help",45),e.k0s(),e.j41(44,"wb-file-upload",46),e.bIt("done",function(t){e.eBV(n);const o=e.XpG();
1return e.Njj(o.onLogoUploadComplete(t))}),e.k0s()(),e.DNE(45,Oe,7,11,"div",47)(46,Be,5,7,"div",48),e.k0s(),e.j41(47,"h3"),e.EFF(48,"Select Your Brand Colors"),e.k0s(),e.j41(49,"div",49)(50,"div",34)(51,"label"),e.EFF(52,"Primary color used for buttons and links"),e.k0s(),e.j41(53,"mat-form-field",50)(54,"mat-label"),e.EFF(55,"Brand Primary"),e.k0s(),e.j41(56,"input",51),e.bIt("colorChange",function(t){e.eBV(n);const o=e.XpG();return e.Njj(o.config.theme.brandPrimary=t)}),e.k0s()()(),e.j41(57,"div",34)(58,"label"),e.EFF(59,"For non-commital buttons and checkboxes"),e.k0s(),e.j41(60,"mat-form-field",50)(61,"mat-label"),e.EFF(62,"Brand Secondary"),e.k0s(),e.j41(63,"input",52),e.bIt("colorChange",function(t){e.eBV(n);const o=e.XpG();return e.Njj(o.config.theme.brandSecondary=t)}),e.k0s()()(),e.DNE(64,Ue,29,8,"ng-container",53),e.k0s(),e.DNE(65,$e,24,7,"ng-container",53),e.k0s()(),e.DNE(66,Cn,42,22,"mat-step",54)(67,Io,109,31,"ng-container",53)(68,yo,12,3,"mat-step",55),e.k0s(),e.j41(69,"div",56),e.DNE(70,Fo,2,3,"wb-button",57)(71,wo,1,5,"wb-admin-platform-coach",58),e.k0s()()}if(2&i){const n=e.XpG();e.Y8G("ngIf",n.isInitialSetup&&n.showTrackingPixel),e.R7$(),e.Y8G("ngIf",n.isInitialSetup),e.R7$(3),e.AVh("disable-steps",n.showNextStep),e.R7$(2),e.Y8G("aria-label",n.Steps.Basic),e.R7$(9),e.R50("ngModel",n.config.name),e.R7$(5),e.R50("ngModel",n.config.tagline),e.R7$(5),e.R50("ngModel",n.config.description),e.R7$(4),e.Y8G("top",7)("left",8),e.R7$(3),e.R50("ngModel",n.config.enableNetworkConnect),e.R7$(4),e.Y8G("ngIf",n.config.enableNetworkConnect&&n.account),e.R7$(),e.Y8G("aria-label",n.Steps.Theme),e.R7$(3),e.AVh("l6",!n.isInitialSetup&&!n.canUpdateFavicon)("l4",n.canUpdateFavicon),e.R7$(3),e.Y8G("top",7)("left",8),e.R7$(),e.Y8G("fileInfo",e.eq3(36,q,n.config.logo))("uploadInfo",n.getUploadInfo)("showPreview",!0)("cropOptions",n.platformLogoCropOptions),e.R7$(),e.Y8G("ngIf",!n.isInitialSetup),e.R7$(),e.Y8G("ngIf",n.canUpdateFavicon),e.R7$(10),e.Y8G("value",n.config.theme.brandPrimary)("colorpicker",n.config.theme.brandPrimary),e.R7$(7),e.Y8G("value",n.config.theme.brandSecondary)("colorpicker",n.config.theme.brandSecondary),e.R7$(),e.Y8G("ngIf",!n.isInitialSetup),e.R7$(),e.Y8G("ngIf",!n.isInitialSetup&&n.hasMarketplace),e.R7$(),e.Y8G("ngIf",!n.disableFeatures),e.R7$(),e.Y8G("ngIf",n.hasMarketplace&&!n.isInitialSetup),e.R7$(),e.Y8G("ngIf",n.isSuperAdmin),e.R7$(2),e.Y8G("ngIf",n.canUpdate),e.R7$(),e.Y8G("ngIf",n.isInitialSetup)}}var K=function(i){return i.Basic="basic",i.Theme="theme",i.Features="features",i.Integrations="integrations",i.Policies="policies",i.CustomPages="custom-pages",i.SuperAdmin="super-admin",i}(K||{});let To=(()=>{class i extends k.$G{constructor(n,a,t,o,p,z,Ro,Go,Eo,So,No,Do,Vo,Xo,Oo,Bo,Uo,Lo,Yo,Ho,qo){super(n),this.accountService=a,this.platformService=t,this.roleService=o,this.analyticsService=p,this.profileService=z,this.formService=Ro,this.platformUI=Go,this.deployService=Eo,this.documentSignService=So,this.routerService=No,this.themeService=Do,this.zumService=Vo,this.sanitizer=Xo,this.voPayService=Oo,this.featureToggleService=Bo,this.accountListService=Uo,this.documentService=Lo,this.cybridService=Yo,this.accountModelService=Ho,this.cliqService=qo,this.save=new e.bkB,this.Steps=K,this.privacyPolicy="",this.termsOfUse="",this.riskDisclosure="",this.platformLogoCropOptions={height:200,width:200,enableResize:!0,type:"square",canCancel:!0},this.PlatformLandingPage=s.UYF,this.PlatformAgreementType=s.UUM,this.showTrackingPixel=!l.T.Development,this.NorthCapitalAccreditationFee=s.GLd,this.IdentificationVerificationType=s.Yln,this.CustodyType=s.AnK,this.cybridBank={},this.isRelease=!l.T.Development,this.existingHooks={},this.mask=b.y_.passwordMask,this.getUploadInfo=Ko=>this.platformService.getUploadInfo(Ko),this.loadingPolicies={},this.coachVideos=[null,[{id:"g97pDuGYYD0",name:"Update Your Platform Theme"}],[{id:"slV7hO3NNT4",name:"Turn On/Off Platform Features"},{id:"vq77sFwwecU",name:"Manage Access & Security"},{id:"4cC2C_FveaQ",name:"Choose Your Landing Page"}]]}ngOnInit(){this.featureToggleService.isActive(s.TBz.CybridIntegration).then(n=>
1{this.cybridFeatureEnabled=n}),this.featureToggleService.isActive(s.TBz.CliqAPIMigration).then(n=>{this.cliqACHMigrationEnabled=n}),this.featureToggleService.isActive(s.TBz.BitGoIntegration).then(n=>{this.bitGoIntegrationEnabled=n}),this.initAccountLists(),this.roleService.hasPrivilege(null,s.FCm.UpdatePlatformAdmin).then(n=>{this.canUpdate=n,this.canUpdate?(this.roleService.hasPrivilege(null,s.FCm.UpdateSupport).then(a=>{this.isSupportAdmin=a,this.platformService.clearCache(),this.platformService.getGlobalConfig().then(t=>{this.globalConfig=t,this.cliqACHOnlyFormUrl=this.sanitizer.bypassSecurityTrustResourceUrl(this.globalConfig.cliqACHOnlyFormUrl),this.cliqEscrowFormUrl=this.sanitizer.bypassSecurityTrustResourceUrl(this.globalConfig.cliqEscrowFormUrl),this.cliqFullFormUrl=this.sanitizer.bypassSecurityTrustResourceUrl(this.globalConfig.cliqFullFormUrl)}),this.platformService.getConfig(!0).then(t=>{this.init(t),this.roleService.hasPrivilege(null,s.FCm.UpdateSuperAdmin).then(o=>{this.isSuperAdmin=o,o&&(this.privateConfig={slug:t.slug,documentSignClientId:null})})})}),this.roleService.hasPlatformPrivilege(s.FCm.ViewAsset).then(a=>{this.hasMarketplace=a}),this.formService.getAll().then(a=>this.forms=a.filter(t=>t.canDelete))):this.appService.navigate(I.zD.Resources)})}init(n){this.setNetworkProfile(n.accountId),this.isInitialSetup&&(this.showNextStep=!0,this.analyticsService.trackConversion("AW-808814079/y_drCMn7xMIBEP-L1oED")),this.clientId=n.clientId,this.disableFeatures=n.disableFeatures,this.hideResources=n.hideResources,this.canUpdateFavicon=!this.isInitialSetup&&(n.status===s.iQk.Active||n.status===s.iQk.ActiveTesting)&&"demo"!==l.T.Environment;const a=!this.isInitialSetup&&n.status!==s.iQk.Active;this.northCapitalDefaults=s.EpV.defaults(),this.config={id:n.id,name:n.name,btype:n.btype,tagline:n.tagline,description:n.description,url:n.url,homeUrl:n.homeUrl,logoutUrl:n.logoutUrl,notFoundUrl:n.notFoundUrl,logo:this.platformService.getLogo()||null,logoHdr:this.platformService.getHeaderLogo()||null,favicon:this.platformService.getFavicon()||null,shareImage:this.platformService.getShareImage()||null,stripePublicKey:n.stripePublicKey,stripeSecretKey:n.stripeSecretKey,facebookAppId:n.facebookAppId,mailchimpApiKey:n.mailchimpApiKey,mailchimpListId:n.mailchimpListId,mailchimpDCId:n.mailchimpDCId,googleAnalyticsId:n.googleAnalyticsId,docusign:n.docusign||{},assure:n.assure||{},achq:n.achq||{},cliq:n.cliq||{},vertalo:n.vertalo||{},defaultLandingPage:n.defaultLandingPage,landingPageImage:this.platformService.getLandingPageImage(),disableLandingPageMask:this.platformService.disableLandingPageMask(),landingPageHTML:this.platformService.getLandingPageHTML(),loginPageImage:this.platformService.getLoginPageImage(),loginPageTitle:this.platformService.getLoginPageTitle(),signupPageTitle:this.platformService.getSignUpPageTitle(),landingPageCTA:this.platformService.getLandingPageCTA(),landingPageNav:this.platformService.getLandingPageNav(),landingPageRegister:this.platformService.getDefaultRegistration(),showLoginPageHeader:this.platformService.showLoginPageHeader(),enableKycCheck:n.enableKycCheck,disableManageDocuments:n.disableManageDocuments,enableKycDocumentCheck:n.enableKycDocumentCheck,enableKycSSNCheck:n.enableKycSSNCheck,enableKycFailedEmail:n.enableKycFailedEmail,requireKycOnSignUp:n.requireKycOnSignUp,kycProvider:n.kycProvider,enableAccreditationCheck:n.enableAccreditationCheck,hideAccreditationOnSignUp:n.hideAccreditationOnSignUp,enableBlockchainSettings:n.enableBlockchainSettings,disableChatGPT:n.disableChatGPT,enableReferralProgram:n.enableReferralProgram,disableReferralLinks:n.disableReferralLinks,enableFavoriteOffers:n.enableFavoriteOffers,enableSocialSharing:n.enableSocialSharing,enableKycAccountLock:n.enableKycAccountLock,enableNetworkConnect:n.enableNetworkConnect,enableAddAccountACH:n.enableAddAccountACH,utilityToken:n.utilityToken,utilityTokenAddress:n.utilityTokenAddress,autoGroupTransactions:n.autoGroupTransactions,custodianProvider:n.custodianProvider||null,theme:b.y_.extend({},n.theme),authentication:this.platformService.getAuthentication(),notifications:this.platformService.getNotifications(),labels:this.platformService.getLabels(),achDetails:n.achDetails,disablePortfolio:n.disablePortfolio,enableSingleOfferMode:n.enableSingleOfferMode,marketplaces:this.platformService.marketplaces(),hooks:n.hooks||{},disabledHooks:n.disabledHooks||[],zum:n.zum||{},mailConnect:n.mailConnect||{},hidePoweredBy:n.hidePoweredBy,fortress:n.fortress||{},vopay:n.vopay||{},signatureOptions:n.signatureOptions||{}
1,cybrid:n.cybrid||{},bitgo:n.bitgo||{},walletConnect:n.walletConnect||{projectId:a?"6d23c8c0b02e35506024430ad6a3a643":""},brassica:n.brassica||{},northCapital:n.northCapital||this.northCapitalDefaults},this.config.cliq.distribution=this.config.cliq.distribution||{},this.existingHooks={...this.config.hooks},this.isSupportAdmin?this.config.mailConnect&&this.config.mailConnect.enabled&&(this.showMailConnect=!0):delete this.config.mailConnect,this.config.northCapital.enabled&&(this.showNorthCapital=!0),this.config.docusign.enabled&&(this.showDocuSign=!0),this.config.assure.enabled&&(this.showAssure=!0),this.config.achq.enabled&&(this.showACHQ=!0),(this.config.cliq.enabled||this.config.cliq.show)&&(this.showCliq=!0,this.cliqAuthMissing=!this.config.cliq.achAuthToken,this.cliqMerchantNumberMissing=!this.config.cliq.ccDisabled&&!this.config.cliq.merchantNumber),this.config.vertalo.enabled&&(this.showVertalo=!0),this.config.zum.enabled&&(this.showZumRail=!0),this.config.fortress.enabled&&(this.showFortress=!0),(this.config.vopay.enabled||this.config.vopay.show)&&(this.showVoPay=!0),this.config.cybrid.enabled&&(this.showCybrid=!0),this.config.walletConnect.enabled&&(this.showWallet=!0),this.config.brassica.enabled&&(this.showBrassica=!0),this.config.bitgo.enabled&&(this.showBitGo=!0),this.custodianDocument=new s.yoT(!0),this.config.northCapital.custodianDocumentId&&this.documentService.getByIds([this.config.northCapital.custodianDocumentId]).then(t=>{this.custodianDocument=t[0]}),this.setSMSConfig(n)}ngAfterViewChecked(){this.stepLoaded||this.setTab()}setSMSConfig(n){this.config.sms=n.sms||{enabled:!1,from:""},this.prevSmsFrom=this.config.sms.from}setTab(){const n=this.routerService.params("step");if(this.stepper&&n){this.stepLoaded=!0;const a=this.stepper._steps,t=a.first;a.forEach(o=>{o.ariaLabel===n&&setTimeout(()=>{o.select(),t.reset()})})}}onStepChange(n){this.appService.navigate(I.zD.Platform,{step:n.selectedStep.ariaLabel})}onSave(){if(this.showNextStep)this.nextStep();else if(this.config.theme&&this.config.theme.style&&!this.config.theme.style.includes("<style>")&&!this.config.theme.style.includes("<link>")&&(this.config.theme.style=`<style>${this.config.theme.style}</style>`),this.config.url=this.setUrl(this.config.url),this.config.homeUrl=this.setUrl(this.config.homeUrl),this.config.logoutUrl=this.setUrl(this.config.logoutUrl),this.config.logo=this.config.logo.replace("/assets/images/platform/",""),this.config.mailchimpApiKey===b.y_.passwordMask&&delete this.config.mailchimpApiKey,this.config.stripePublicKey===b.y_.passwordMask&&delete this.config.stripePublicKey,this.config.stripeSecretKey===b.y_.passwordMask&&delete this.config.stripeSecretKey,this.config.fundamericaApiKey===b.y_.passwordMask?delete this.config.fundamericaApiKey:(this.config.enableFundamerica=!1,this.config.creditCardDetails={enabled:!0,gateway:s.tYF.NorthCapital},this.config.achDetails={enabled:!0,gateway:s.tYF.NorthCapital}),this.config.cliq&&this.config.cliq.enabled&&(this.config.cliq.ccDisabled||(this.config.creditCardDetails={...this.config.creditCardDetails||{},enabled:!0,gateway:s.tYF.Cliq}),this.config.achDetails={...this.config.achDetails||{},enabled:!0,gateway:s.tYF.Cliq}),!this.config.enableKycCheck&&!this.config.enableKycSSNCheck&&(this.config.requireKycOnSignUp=!1),this.config.authentication.required&&this.config.defaultLandingPage===s.UYF.Marketplace)this.appService.notify(new c.L_(c.U7.Error('To set "Marketplace" as the default landing page, you must first turn off "Require Sign-in to View Offers"')));else{if(this.config.sms.accountSid&&this.config.sms.accountSid!==b.y_.passwordMask||this.config.sms.authToken&&this.config.sms.authToken!==b.y_.passwordMask||this.config.sms.from!==this.prevSmsFrom){if(!this.config.sms.accountSid||this.config.sms.accountSid===b.y_.passwordMask||!this.config.sms.authToken||this.config.sms.authToken===b.y_.passwordMask||!this.config.sms.from)return void this.appService.notify(new c.L_(c.U7.Error("Please enter the Twilio Account SID, Auth Token, and Sending Phone #. If updating Twilio settings, please re-enter all three fields.")));this.config.sms.enabled=!0}else delete this.config.sms;delete this.config.docusign,delete this.config.assure,delete this.config.achq,delete this.config.cliq,delete this.config.zum,delete this.config.mailConnect,delete this.config.vertalo,delete this.config.cybrid,delete this.config.walletConnect,delete this.config.fortress,delete this.config.vopay,delete this.config.brassica,delete this.config.bitgo,this.platformService.updateConfig(this.config).then(n=>
1{this.appService.notify(new c.u8(n)),this.appService.notify(new c.L_(c.U7.Info("platform configuration updated successfully"))),this.init(n),this.themeService.refreshPlatformStyles(n),this.save.emit()}),this.saveNetworkProfile()}}setNetworkProfile(n){this.accountService.getById(n).then(a=>{this.account=a,this.networkProfile=new s.WVQ,this.networkProfile.websiteUrl=this.account.profile.websiteUrl,this.networkProfile.linkedInUrl=this.account.profile.linkedInUrl,this.networkProfile.crdNumber=this.account.profile.crdNumber})}saveNetworkProfile(){(this.networkProfile.websiteUrl!==this.account.profile.websiteUrl||this.networkProfile.linkedInUrl!==this.account.profile.linkedInUrl||this.networkProfile.crdNumber!==this.account.profile.crdNumber)&&this.profileService.updateProfile(this.account.id,this.networkProfile).then(()=>{this.account.profile.websiteUrl=this.networkProfile.websiteUrl,this.account.profile.linkedInUrl=this.networkProfile.linkedInUrl,this.account.profile.crdNumber=this.networkProfile.crdNumber})}setUrl(n){return n&&n.indexOf("http")<0&&(n=`https://${n}`),n}nextStep(){1!==this.stepper.selectedIndex||this.config.logo?(this.stepper.next(),this.platformUI.scrollToTop(),2===this.stepper.selectedIndex&&(this.showNextStep=!1)):this.appService.notify(new c.L_(c.U7.Error("Please upload a logo to continue")))}trimArray(n){return n.forEach((a,t)=>n[t]=a.trim()),n}onLogoUploadComplete(n){this.config.logo=n.url}onHeaderLogoUploadComplete(n){this.config.logoHdr=n.url}onFaviconUploadComplete(n){this.config.favicon=n.url,this.deployService.uploadFavicon(this.config.favicon).then(a=>{a.success||(delete this.config.favicon,this.appService.notify(new c.L_(c.U7.Error(a.msg))))})}onShareImageUploadComplete(n){this.config.shareImage=n.url}showDefaultDisclaimer(){this.appService.notify(new M.U2({title:"Default Disclaimer",component:R.Y,model:{isModal:!0}}))}goToManageOffers(){this.appService.navigate(I.qh.ManageAssets)}isFreePlatform(){return l.T.IsFreePlatform}confirmPolicy(n,a){this.appService.notify(new M.U2({title:"confirm-policy-user-reset",cancelText:"No, just save my update",confirmText:"Yes",confirmationType:k.vB.YesNo,text:`Would you like to have all accounts on login be prompted through the Sign Up flow to acknowledge this updated ${n===s.UUM.Privacy?"Privacy Policy":"Terms and Conditions"}?`,eventHandlers:{submit:()=>{console.log("Reset Terms"),this.uploadPolicy(n,a),this.platformService.resetUserTerms()},cancel:()=>{console.log("Just Save"),this.uploadPolicy(n,a)}}}))}uploadPolicy(n,a){this.platformService.updateAgreement(n,a).then(()=>{this.appService.notify(new c.L_(c.U7.Info("the agreement was updated successfully")))})}onLoadPolicy(n){this.loadingPolicies[n]=!0,this.platformService.getAgreementByType(n).then(a=>{if(this.loadingPolicies[n]=!1,a)switch(n){case s.UUM.TermsOfUse:this.termsOfUse=a.html;break;case s.UUM.Privacy:this.privacyPolicy=a.html;break;case s.UUM.RiskDisclosure:this.riskDisclosure=a.html}}
1)}onConnectDocuSign(){this.platformService.updateConfig({id:this.config.id,docusign:this.config.docusign}).then(()=>{this.documentSignService.getAuthUrl().then(n=>{b.Oi.setRedirectRoute(I.zD.Platform,{step:K.Integrations}),this.platformUI.openExternal(n.url)})})}cancelACHQ(){this.registerACHQ=!1,this.connectExistingACHQ=!1}newRegisterACHQ(){this.loadingACHQScript=!0,this.connectExistingACHQ=!1,this.platformUI.createDynamicElement("https://go.achq.com/__embed.min.js","body","achq-script").then(n=>{this.loadingACHQScript=!1,n?this.registerACHQ=!0:this.appService.notify(new c.L_(c.U7.Error("Unable to load ACHQ. Please contact support.")))}).catch(()=>this.loadingACHQScript=!1)}connectACHQ(){this.registerACHQ=!1,this.connectExistingACHQ=!0}onConnectACHQ(){this.config.achq.enabled=!0,this.platformService.updateConfig({id:this.config.id,achq:this.config.achq}).then(()=>{this.appService.notify(new c.L_(c.U7.Info("Your ACHQ Account has been linked.")))})}cancelCliq(){this.registerSubMidCliq=!1,this.registerCliq=!1,this.connectExistingCliq=!1}onCompleteCliq(){this.connectExistingCliq=!0,this.config.cliq.enabled=!1}newRegisterCliq(){this.connectExistingCliq=!1,this.config.cliq.enabled=!1,this.config.cliq.distribution={},this.registerCliq=!0}submitCliq(){this.config.cliq.enabled=!0,this.platformService.updateConfig({id:this.config.id,cliq:this.config.cliq}).then(()=>{this.appService.notify(new c.L_(c.U7.Info("Your Cliq Account has been linked.")))})}toggleCliq(){this.config.cliq.show=this.showCliq,this.platformService.updateConfig({id:this.config.id,cliq:this.config.cliq}).then(()=>{this.appService.notify(new c.L_(c.U7.Info("Cliq has been enabled.")))})}toggleCliqEscrow(){this.config.cliq.escrow&&(this.config.cliq.ccDisabled=!1),this.platformService.updateConfig({id:this.config.id,cliq:this.config.cliq}).then(()=>{this.appService.notify(new c.L_(c.U7.Info("Cliq escrow has changed.")))})}toggleCliqCreditCard(){this.platformService.updateConfig({id:this.config.id,cliq:this.config.cliq}).then(()=>{this.appService.notify(new c.L_(c.U7.Info("Cliq credit card setting has changed.")))})}connectCliq(){this.registerSubMidCliq=!1,this.connectExistingCliq=!0,this.config.cliq.distribution={}}onConnectCliq(){this.config.cliq.merchantId||this.config.cliq.securityKey?(this.cliqMerchantNumberMissing=!this.config.cliq.ccDisabled&&!this.config.cliq.merchantNumber,this.config.cliq.enabled=!0,this.platformService.updateConfig({id:this.config.id,cliq:this.config.cliq}).then(()=>{this.appService.notify(new c.L_(c.U7.Info("Your Cliq Account has been linked.")))})):this.appService.notify(new c.L_(c.U7.Error("You need to provide CC key or ACH info")))}onSaveCliqAuthToken(){this.cliqAuthMissing=!1,this.cliqService.saveAuthToken(this.config.cliq.achAuthToken).then(()=>{this.appService.notify(new c.L_(c.U7.Info("Your Cliq Account has been updated.")))})}onSaveCliqMerchantNumber(){this.cliqMerchantNumberMissing=!1,this.cliqService.saveMerchantNumber(this.config.cliq.merchantNumber).then(()=>{this.appService.notify(new c.L_(c.U7.Info("Your Cliq Account has been updated.")))})}disconnectNorthCapital(){this.config.northCapital={enabled:!1},this.platformService.updateConfig({id:this.config.id,northCapital:this.config.northCapital}).then(()=>{this.appService.notify(new c.L_(c.U7.Info("Your North Capital link as been removed.")))})}enableNorthCapital(){this.config.northCapital=new s.EpV(!0),this.platformService.updateConfig({id:this.config.id,northCapital:this.config.northCapital}).then(()=>{this.appService.notify(new c.L_(c.U7.Info("Your platform has been linked to North Capital.")))})}setNorthCapitalDefault(n){this.config.northCapital[n]=this.northCapitalDefaults[n],console.log("Default",n,this.northCapitalDefaults[n],this.config.northCapital[n])}onConnectVertalo(){this.config.vertalo.enabled=!0,this.platformService.updateConfig({id:this.config.id,vertalo:this.config.vertalo}).then(()=>{this.appService.notify(new c.L_(c.U7.Info("Your Vertalo Account has been linked.")))})}onVertaloToggle(){this.config.vertalo.enabled=this.showVertalo,this.platformService.updateConfig({id:this.config.id,vertalo:this.config.vertalo}).then(()=>
1{this.appService.notify(new c.L_(c.U7.Info(this.showVertalo?"Vertalo Account has been linked.":"Vertalo Account has been disconnected.")))})}onConnectCybrid(){const n=()=>this.cybridService.createBankExternalAccount(this.cybridBank).then(a=>{a.success?(this.showCybridUpdateForm=!1,this.showCybridBankForm=!1,this.appService.notify(new c.L_(c.U7.Info("Your Cybrid Account has been linked and your Cybrid Bank Account Created.")))):this.appService.notify(new c.L_(c.U7.Error(a.msg||"Error connecting your bank account")))});return this.config.cybrid.enabled&&this.showCybridUpdateForm?n():(this.config.cybrid.enabled=!0,this.config.cybrid.countries=["US","CA"],this.platformService.updateConfig({id:this.config.id,cybrid:this.config.cybrid}).then(()=>{this.onCybridWebhook(!1).then(()=>{this.showCybridBankForm?n():this.appService.notify(new c.L_(c.U7.Info("Your Cybrid Account has been linked.")))})}))}reloadWebhook(){return this.cybridService.reloadWebhook().then(n=>{n.success?(this.config.cybrid.webhookGuid=n.data,this.appService.notify(new c.L_(c.U7.Info("Your Cybrid Webhook as been created.")))):this.appService.notify(new c.L_(c.U7.Error(n.msg||"Error creating webhook")))})}onCybridWebhook(n){return this.cybridService.enableWebhook().then(a=>{a.success?(this.config.cybrid.webhookGuid=a.data,n&&this.appService.notify(new c.L_(c.U7.Info("Your Cybrid Webhook as been created.")))):n&&this.appService.notify(new c.L_(c.U7.Error(a.msg||"Error creating webhook")))})}onCybridToggle(){this.showCybrid||(this.config.cybrid.enabled=this.showCybrid,this.platformService.updateConfig({id:this.config.id,cybrid:this.config.cybrid}).then(()=>{this.appService.notify(new c.L_(c.U7.Info(this.showCybrid?"Cybrid Account has been linked.":"Cybrid Account has been disconnected.")))}))}populateBankForm(){const n=this.accountModelService.selectedAccount,a=t=>{this.cybridBank[t]=n.profile[t]};a(s.G9M.CompanyName),a(s.G9M.Email),a(s.G9M.AddressStreet),a(s.G9M.AddressStreet2),a(s.G9M.AddressCity),a(s.G9M.AddressState),a(s.G9M.AddressCountry),a(s.G9M.AddressZip)}onDisconnectCybrid(){this.config.cybrid={},this.platformService.updateConfig({id:this.config.id,cybrid:this.config.cybrid}).then(()=>{this.appService.notify(new c.L_(c.U7.Info("Cybrid Account has been disconnected.")))})}disconnectCybridExternalBank(){return this.cybridService.removeBankExternalAccount().then(n=>{n.success?(delete this.config.cybrid.bankExternalAccountId,this.showCybridUpdateForm=!1,this.showCybridBankForm=!1,this.appService.notify(new c.L_(c.U7.Info("Your Cybrid Bank Account has been removed.")))):this.appService.notify(new c.L_(c.U7.Error(n.msg||"Error removing your bank account")))})}onChangeCybrid(){this.config.cybrid={}}onConnectBrassica(){this.config.brassica.enabled=!0;const n={id:this.config.id,brassica:this.config.brassica};this.config.custodianProvider||(n.custodianProvider=s.AnK.Brassica),this.platformService.updateConfig(n).then(()=>{this.appService.notify(new c.L_(c.U7.Info("Your Brassica Account has been linked.")))})}onBrassicaToggle(){this.showBrassica||(this.config.brassica.enabled=this.showBrassica,this.platformService.updateConfig({id:this.config.id,brassica:this.config.brassica}).then(()=>{this.appService.notify(new c.L_(c.U7.Info(this.showBrassica?"Brassica Account has been enabled.":"Brassica Account has been disabled.")))}))}onEnableBitGo(n){if(!this.showBitGo||n){if(this.config.bitgo.expressProxyUrl&&!/^https?:\/\/([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+(:\d+)?(\/[a-zA-Z0-9._~:@!$&'()*+,;=-]*)*\/$/.test(this.config.bitgo.expressProxyUrl))return void this.appService.notify(new c.L_(c.U7.Error("BitGo Express Proxy URL must be a valid URL matching proxy expected path /api/ (e.g. http://host:port/api/)")));this.config.bitgo.enabled=this.showBitGo,this.config.bitgo.enabled&&(this.config.bitgo.enterpriseId=this.config.bitgo.enterpriseId.trim(),this.config.bitgo.accessToken=this.config.bitgo.accessToken.trim(),this.config.bitgo.serviceUserId=this.config.bitgo.serviceUserId.trim()),this.platformService.updateConfig({id:this.config.id,bitgo:this.config.bitgo}).then(()=>
1{this.appService.notify(new c.L_(c.U7.Info(this.showBitGo?"The BitGo integration has been enabled.":"The BitGo integration has been disabled.")))})}}onChangeBitGo(){this.config.bitgo={}}onDisconnectBrassica(){this.config.brassica={};const n={id:this.config.id,brassica:this.config.brassica};this.config.custodianProvider===s.AnK.Brassica&&(n.custodianProvider=null),this.platformService.updateConfig(n).then(()=>{this.appService.notify(new c.L_(c.U7.Info("Brassica Account has been disconnected.")))})}onChangeBrassica(){this.config.brassica={}}onConnectWallet(){this.config.walletConnect.enabled=!0,this.platformService.updateConfig({id:this.config.id,walletConnect:this.config.walletConnect}).then(()=>{this.appService.notify(new c.L_(c.U7.Info("Your WalletConnect Account has been linked.")))})}onWalletToggle(){this.showWallet||(this.config.walletConnect.enabled=this.showWallet,this.platformService.updateConfig({id:this.config.id,walletConnect:this.config.walletConnect}).then(()=>{this.appService.notify(new c.L_(c.U7.Info(this.showWallet?"WalletConnect Account has been linked.":"WalletConnect Account has been disconnected.")))}))}onDisconnectWallet(){this.config.walletConnect={},this.platformService.updateConfig({id:this.config.id,walletConnect:this.config.walletConnect}).then(()=>{this.appService.notify(new c.L_(c.U7.Info("WalletConnect Account has been disconnected.")))})}onChangeWallet(){this.config.walletConnect={}}onConnectVoPay(){this.config.vopay.enabled=!0,this.platformService.updateConfig({id:this.config.id,vopay:this.config.vopay}).then(()=>{this.appService.notify(new c.L_(c.U7.Info("Your VoPay Account has been linked."))),this.onVoPayPlaidSetup(),this.onVoPayWebhookSetup()})}onVoPayToggle(){let n=!1;this.showVoPay?this.config.vopay.secret&&!this.config.vopay.enabled?(this.config.vopay.enabled=!0,n=!0):(this.config.vopay.show=!0,n=!0):(this.config.vopay={},this.config.vopay.enabled=!1,n=!0),n&&this.platformService.updateConfig({id:this.config.id,vopay:this.config.vopay}).then(()=>{this.appService.notify(new c.L_(c.U7.Info(this.showVoPay?this.config.vopay.enabled?"VoPay Account has been linked.":"VoPay has been enabled.":"VoPay Account has been disconnected.")))})}onVoPayWebhookSetup(){this.voPayService.setupWebhook(this.voPayWebsiteHookId).then(n=>{n.success?(this.config.vopay.secret=this.mask,this.appService.notify(new c.L_(c.U7.Info("VoPay webhooks configured.")))):this.appService.notify(new c.L_(c.U7.Error(n.msg)))})}onVoPayPlaidSetup(){this.voPayService.setupPlaid()}onDisconnectDocuSign(){this.config.docusign={}}onChangeAssure(){this.config.assure={}}onDisconnectVertalo(){this.config.vertalo={}}onDisconnectACHQ(){this.config.achq={}}onDisconnectCliq(){this.config.cliq={}}onDisconnectVoPay(){this.config.cliq={}}openZumRails(n){this.platformUI.openExternal(n)}onAddZumFundingSource(){this.zumService.getConfigUrl().then(n=>{const a=n.data.indexOf("sandbox")>=0;this.addZumRailUrl=this.sanitizer.bypassSecurityTrustResourceUrl(`${n.data}fundingsource/${this.config.zum.clientId}?testinstitution=${a}&extrafield1=${this.config.id}&LastName=${encodeURI(this.appService.userService.user.profile.lastName)}&FirstName=${encodeURI(this.appService.userService.user.profile.firstName)}&Email=${encodeURI(this.appService.userService.user.username)}`)}),this.zumService.getFundingConnector().then(n=>{n.success?(this.config.zum.fundingSource=n.data,this.platformService.updateConfig({id:this.config.id,zum:this.config.zum}).then(()=>{this.appService.notify(new c.L_(c.U7.Info("Your Zum Rails funding source has been added."))),setTimeout(()=>{this.addZumRailUrl=null},2e3)})):(this.addZumRailUrl=null,this.appService.notify(new c.L_(c.U7.Error(`Failed to add funding source: ${n.msg}. Please try again.`))))})}onConnectZum(){this.config.zum.enabled=!0,this.platformService.updateConfig({id:this.config.id,zum:this.config.zum}).then(()=>{this.appService.notify(new c.L_(c.U7.Info("Your Zum Rails Account has been linked.")))})}onChangeZum(){this.config.zum={}}onDisconnectZum(){this.config.zum={},this.platformService.updateConfig({id:this.config.id,zum:this.config.zum}).then(()=>
1{this.appService.notify(new c.L_(c.U7.Info("Zum Rails has been disconnected.")))})}onEmailConnect(){this.config.mailConnect.enabled=!0,this.platformService.updateConfig({id:this.config.id,mailConnect:this.config.mailConnect}).then(()=>{this.appService.notify(new c.L_(c.U7.Info(this.config.mailConnect.outlook&&this.config.mailConnect.outlook.id?"Outlook has been linked.":"GMail has been linked.")))})}onConnectOutlook(){this.config.mailConnect.outlook={},this.config.mailConnect.enabled=!1}onChangeOutlook(){this.config.mailConnect.outlook={},this.config.mailConnect.enabled=!1}onDisconnectMailConnect(){this.showMailConnect=!1,this.config.mailConnect={},this.platformService.updateConfig({id:this.config.id,mailConnect:this.config.mailConnect}).then(()=>{this.appService.notify(new c.L_(c.U7.Info("Outlook has been linked.")))})}onDisconnectOutlook(){delete this.config.mailConnect.outlook,this.platformService.updateConfig({id:this.config.id,mailConnect:this.config.mailConnect}).then(()=>{this.appService.notify(new c.L_(c.U7.Info("Outlook has been linked.")))})}onLoadApiKey(){this.loadingApiKey=!0,this.platformService.getApiKey().then(n=>{this.loadingApiKey=!1,n.success?this.apiKey=n.data:this.appService.notify(new c.L_(c.U7.Info(n.msg)))})}onConfirmRotateAPIKey(){this.appService.notify(new M.U2({text:"Are you sure you would like to rotate your API key? Clicking 'Yes' will immediately disable any existing keys in use.",confirmationType:k.vB.YesNo,eventHandlers:{submit:()=>{this.rotateAPIKey()}},disableClose:!0}))}rotateAPIKey(){this.loadingApiKey=!0,this.platformService.rotateApiKey().then(n=>{this.loadingApiKey=!1,n.success?this.apiKey=n.data:this.appService.notify(new c.L_(c.U7.Info(n.msg)))})}onUpdateSlug(){this.platformService.updateConfig({id:this.config.id,slug:this.privateConfig.slug}).then(()=>{this.appService.notify(new c.L_(c.U7.Info("Slug updated successfully")))})}confirmTwoFactorAuth(n){w.w.confirmTwoFactorAuth(this.config,this.appService,n)}confirmAdminTwoFactorAuth(n){w.w.confirmAdminTwoFactorAuth(this.config,this.appService,n)}getCoachMessage(){switch(this.stepper?this.stepper.selectedIndex:0){case 0:return"Let's add some basic info about your platform. We've added some default text to get you started. You can edit this at anytime, so just click <em>next</em> if you'd prefer to update this later.";case 1:return"Highlight your brand by uploading your logo and choosing your basic colors. To ensure your logo shows up as large as possible, crop it as close to the image as possible, leaving no excess whitespace around it.";case 2:return(this.config.btype!==s.QX9.Other?`Because you told us you'll be raising capital for ${s.TcI[this.config.btype]}, we've`:"We've")+" enabled various features, and adjusted your access and security settings, to match your industry best practices. However, we know that one size may not fit all, so feel free to customize these settings as you see fit."}}getCoachVideos(){return this.coachVideos[this.stepper?this.stepper.selectedIndex:0]}canLoadTemplates(){return this.platformService.hasESignAccount()}loadNewTemplates(){this.documentSignService.loadNewTemplates().then(n=>{n.success&&this.appService.notify(new c.L_(c.U7.Info(`${n.data.length} new templates loaded successfully`)))})}getHooks(){return b.y_.dynamicProperty(this,"hooks",()=>s.UiQ.getHooks())}validateHook(n){this.config.hooks[n]&&!this.config.hooks[n].startsWith("http")&&(this.config.hooks[n]=`https://${this.config.hooks[n]}`)}getToggleState(n){return!this.config.disabledHooks||!this.config.disabledHooks.includes(n)}toggleDisabled(n,a){this.config.disabledHooks||(this.config.disabledHooks=[]),n.checked?this.config.disabledHooks=this.config.disabledHooks.filter(t=>t!==a):this.config.disabledHooks.push(a)}sendTestHook(n,a){n.stopImmediatePropagation(),this.existingHooks&&this.existingHooks[a]?this.platformService.testHook(a).then(t=>{this.appService.notify(new M.U2({text:`<h3 class="center">Sent Data</h3><div style="text-align: left"><code style="overflow-wrap: break-word; white-space: pre-wrap;">${JSON.stringify(t,null,2)}</code></div>`,confirmationType:k.vB.None}))}
1):this.appService.notify(new c.L_(c.U7.Error("Please save first")))}clearChildKeys(n,a){w.w.clearChildKeys(this.config,n,a)}addMarketplace(){this.config.marketplaces.push({icon:"",name:`Offerings ${this.config.marketplaces.length}`,title:"",descr:""})}removeMarketplace(n){0!==n&&this.config.marketplaces.splice(n,1)}initAccountLists(){var n=this;return(0,j.A)(function*(){n.accountLists=yield n.accountListService.getLists(n.accountModelService.selectedAccount.id,!0)})()}static{this.\u0275fac=function(a){return new(a||i)(e.rXU(d.d3),e.rXU(d.Di),e.rXU(d.fP),e.rXU(d.WK),e.rXU(d.cu),e.rXU(d.pq),e.rXU(d.ux),e.rXU(N.W),e.rXU(d.jH),e.rXU(d.Wk),e.rXU(d.HM),e.rXU(d.Fs),e.rXU(D.II),e.rXU(V.up),e.rXU(d.vG),e.rXU(d.IJ),e.rXU(d.LW),e.rXU(d.DK),e.rXU(d.hv),e.rXU(d.UF),e.rXU(d.N$))}}static{this.\u0275cmp=e.VBU({type:i,selectors:[["wb-admin-platform"]],viewQuery:function(a,t){if(1&a&&e.GBs(Se,5),2&a){let o;e.mGM(o=e.lsd())&&(t.stepper=o.first)}},inputs:{isInitialSetup:"isInitialSetup"},outputs:{save:"save"},features:[e.Vt3],decls:2,vars:4,consts:[["platformForm","ngForm"],["stepper",""],["connectNCTemplate",""],["connectCliqTemplate",""],["cliqForm","ngForm"],["connectDocusignTemplate",""],["docusignForm","ngForm"],["connectACHQTemplate",""],["achqForm","ngForm"],["connectVertaloTemplate",""],["vertaloForm","ngForm"],["connectZumTemplate",""],["zumForm","ngForm"],["connectVoPayTemplate",""],["vopayForm","ngForm"],["connectCybridTemplate",""],["cybridForm","ngForm"],["cybridBankFormTemplate",""],["connectWalletTemplate",""],["walletForm","ngForm"],["connectBrassicaTemplate",""],["brassicaForm","ngForm"],["connectBitGoTemplate",""],["bitgoForm","ngForm"],["connectMailTemplate",""],["mailConnectForm","ngForm"],[3,"initialized","header"],["height","1","width","1","style","display:none;","alt","","src","https://px.ads.linkedin.com/collect/?pid=1651570&conversionId=1720250&fmt=gif",4,"ngIf"],["class","setup-wrapper",4,"ngIf"],["ngNativeValidate","",1,"setup-form",3,"ngSubmit"],["orientation","horizontal",1,"overflow"],["label","Basic Info",3,"aria-label"],[1,"mat-elevation-z7"],[1,"row"],[1,"col","s12","l6"],["appearance","outline"],["autocomplete","off","type","text","matInput","","name","name","required","",3,"ngModelChange","ngModel"],["autocomplete","off","type","text","matInput","","name","tagline",3,"ngModelChange","ngModel"],[1,"col","s12"],["autocomplete","off","type","text","matInput","","name","description","required","",3,"ngModelChange","ngModel"],["article","61000275071",3,"top","left"],["name","enableNetworkConnect",3,"ngModelChange","ngModel"],["matTooltip","Your platform will be discoverable in the distribution network, allowing you to connect with other platforms, collaborate, share deals, and leverage engagement.",1,"help"],["class","col s12",4,"ngIf"],["label","Theme Settings",3,"aria-label"],["article","61000275208",3,"top","left"],["title","Upload Logo",3,"done","fileInfo","uploadInfo","showPreview","cropOptions"],["class","col s12",3,"l6","l4",4,"ngIf"],["class","col s12 l4",4,"ngIf"],[1,"row","colors"],["appearance","outline","size","small"],["type","text","matInput","","name","brandPrimary","readonly","",3,"colorChange","value","colorpicker"],["type","text","matInput","","name","brandSecondary","readonly","",3,"colorChange","value","colorpicker"],[4,"ngIf"],["label","Features",3,"aria-label",4,"ngIf"],["label","Super Admin",3,"aria-label",4,"ngIf"],[1,"buttons"],["type","submit",3,"disabled","iconRight",4,"ngIf"],[3,"class","message","videos",4,"ngIf"],["height","1","width","1","alt","","src","https://px.ads.linkedin.com/collect/?pid=1651570&conversionId=1720250&fmt=gif",2,"display","none"],[1,"setup-wrapper"],[1,"logo"],["src","/assets/images/logo_brand.svg"],[1,"col","s12","l4"],["autocomplete","off","type","text","matInput","","name","websiteUrl","required","",3,"ngModelChange","ngModel"],["autocomplete","off","type","text","matInput","","name","linkedInUrl",3,"ngModelChange","ngModel"],["autocomplete","off","type","text","matInput","","name","crdNumber",3,"ngModelChange","ngModel"],["title","Upload Logo",3,"fileRemoved","done","fileInfo","uploadInfo","showPreview"],["title","Upload Favicon",3,"done","fileInfo","uploadInfo","showPreview"],["type","text","matInput","","name","brandSuccess","readonly","",3,"colorChange","value","colorpicker"],["type","text","matInput","","name","brandAlert","readonly","",3,"colorChange","value","colorpicker"],["type","text","matInput","","name","brandWarn","readonly","",3,"colorChange","value","colorpicker"],["type","text","matInput","","name","brandShout","readonly","",3,"colorChange","value","colorpicker"],["href","javascript:void(0)",1,"right",3,"click"],["name","disclaimer",3,"valueChange","value","allowHtml","allowClasse
1s"],["autocomplete","off","matInput","","name","themeStyle","rows","9",3,"ngModelChange","ngModel"],[2,"margin-top","-14px"],[4,"ngFor","ngForOf"],[1,"col","s12","l6","mgn","b2"],["autocomplete","off","type","text","matInput","",3,"ngModelChange","ngModel","name"],["class","hover","matSuffix","","matTooltip","Remove this marketplace",3,"click",4,"ngIf"],["class","hover","matSuffix","","matTooltip","Add a new marketplace",3,"click",4,"ngIf"],[1,"marketplace-descr",3,"valueChange","value","name","allowHtml"],["appearance","outline","matTooltip","Lists cannot be added to the default marketplace",4,"ngIf"],["appearance","outline",4,"ngIf"],["matSuffix","","matTooltip","Remove this marketplace",1,"hover",3,"click"],["matSuffix","","matTooltip","Add a new marketplace",1,"hover",3,"click"],["appearance","outline","matTooltip","Lists cannot be added to the default marketplace"],["autocomplete","off","type","text","matInput","",3,"name","disabled"],[3,"ngModelChange","accountLists","ngModel","name","toIds","multiple"],["label","Features",3,"aria-label"],["article","61000275436",3,"top","left"],["name","enableKycCheck",3,"ngModelChange","ngModel"],["wbHelpArticle","61000275010",1,"help","hover"],["name","enableKycDocumentCheck",3,"ngModel","disabled","matTooltip","ngModelChange",4,"ngIf"],["class","input-wrapper dropdown-wrapper tight",4,"ngIf"],["name","enableKycFailedEmail",3,"ngModel","ngModelChange",4,"ngIf"],["name","enableKycSSNCheck",3,"ngModelChange","ngModel"],["matTooltip","Require a SSN to be captured. This is automatically enabled for platforms integrating with specific payment providers.",1,"help"],["name","enableAccreditationCheck",3,"ngModelChange","ngModel"],[1,"help",3,"matTooltip"],["name","autoGroupTransactions",3,"ngModel","ngModelChange",4,"ngIf"],["class","input-wrapper dropdown-wrapper",4,"ngIf"],["class","input-wrappertight",4,"ngIf"],["name","enableReferralProgram",3,"ngModelChange","ngModel"],["name","enableFavoriteOffers",3,"ngModelChange","ngModel"],["name","disableReferralLinks",3,"ngModel","ngModelChange",4,"ngIf"],["name","enableSocialSharing",3,"ngModel","ngModelChange",4,"ngIf"],["name","enableSingleOfferMode",3,"ngModelChange","ngModel"],["matTooltip","If enabled and the platform has only one live offer, the marketplace home will default to that offer's detail page",1,"help"],["name","disableChatGPT",3,"ngModelChange","ngModel"],["name","enableBlockchainSettings",3,"ngModelChange","ngModel"],["class","mat-elevation-z7",4,"ngIf"],["name","enableKycDocumentCheck",3,"ngModelChange","ngModel","disabled","matTooltip"],["matTooltip","Onfido also performs identity verification by analyzing the authenticity of each investor's identification (e.g. driver's license, passport, state ID etc.). If you do NOT wish to collect identification (via image/pdf upload) from investors, uncheck this option.",1,"help"],[1,"input-wrapper","dropdown-wrapper","tight"],["name","kycProvider",3,"ngModelChange","ngModel"],[3,"value"],[3,"value","disabled","matTooltip"],[3,"value",4,"ngIf"],["matTooltip","Providers are built into WealthBlock and do not require a separate relationship or contract.",1,"tooltip"],["name","enableKycFailedEmail",3,"ngModelChange","ngModel"],["matTooltip","If the KYC/AML results in a failure, notify the Account/User to update the required information in order to run KYC/AML again.",1,"help"],["name","autoGroupTransactions",3,"ngModelChange","ngModel"],["matTooltip","When enabled, capital call and distribution transactions will be auto grouped under parent transactions for the same offer, regardless of whether or not a related transaction is specified",1,"help"],[1,"input-wrapper","dropdown-wrapper"],["matTooltip","Both providers are built into WealthBlock and do not require a separate relationship or contract.",1,"tooltip"],[1,"input-wrappertight"],["autocomplete","off","type","text","matInput","","name","custodianDocumentId",3,"ngModelChange","ngModel"],["data-automation-id","upload-custodial-agreement",3,"document","title","uploadInfo","documentDone",4,"ngIf"],["data-automation-id","upload-custodial-agreement",3,"documentDone","document","title","uploadInfo"],["name","disableReferralLinks",3,"ngModelChange","ngModel"],["matTooltip","Each user of the platform is provided a unique referral link that they can share with others, allowing the platform to track who invited who. Check this setting if you want to disallow users from directly seeing, copying and sharing their referral link.",1,"help"],["name","enableSocialSharing",3,"ngModelChange","ngModel"],["article","61000275445",3,"top","left"],["name","disableRegistration",3,"ngModelChange","ngModel"],["name","accountApproval",3,"ngModelChange","ngModel"],["matTooltip","When enabled, new accounts that self-register must be approved by an admin before they can view offers.",1,"help"],["name","requireAuthentication",3,"ngModelChange","ngModel"],["name","requireKycOnSignUp",3,"ngModel","ngModelChange",4,"ngIf"],["name","noSignupInvesting",3,"ngModel","ngModelChange",4,"ngIf"],["name","requireTwoFactorAuth",3,"ngModel","change",4,"ngIf"],["name","requireAdminTwoFactorAuth",3,"ngModel","change",4,"ngIf"],[1,"input-wrapper"],["autocomplete","off","type","number","inputFormat","numeric","matInput","","name","secureLoginExpiration",3,"ngModelChange","ngModel"],["matTooltip","By default, secure invite links expire after 4,320 minutes (72 hours). Enter a value (in minutes) to override the default.",1,"tooltip"],["name","secureLoginIPChangeLimitTime",3,"ngModelChange","ngModel"],["matTooltip","This will allow multiple devices/IPs to access the invitation link
1without expiring the invitation link.",1,"help"],[1,"input-wrapper","mgn","t2"],["autocomplete","off","type","number","inputFormat","numeric","matInput","","name","twoFactorTimeout","placeholder","Defaults to every login",3,"ngModelChange","ngModel"],["matTooltip","By default, users will have to enter a code every login. Enter a value (in days) to override the default. A value of 0 will make it always required.",1,"tooltip"],["name","requireEmailVerification",3,"ngModelChange","ngModel"],["name","allowNonAccredited",3,"ngModelChange","ngModel"],["name","hideAccreditationOnSignUp",3,"ngModelChange","ngModel"],["matTooltip","During sign up, investors are asked to select their accreditation status (e.g. income > $200K, assets over $1M, etc.). Check this box to hide accreditation selection on sign up.",1,"help"],["name","disableManageDocuments",3,"ngModelChange","ngModel"],["matTooltip","Every account in the system is provided their own personal document library. If this option is checked, only platform admins will be allowed to upload documents to an investor's personal document library, and these documents will be read-only for the investor.",1,"help"],["name","allowIssuerRegistration",3,"ngModelChange","ngModel"],["matTooltip","When enabled, a new option will appear during the sign up flow, allowing the user to first choose whether they are an Investor or Issuer.",1,"help"],["name","enableKycAccountLock",3,"ngModel","ngModelChange",4,"ngIf"],["name","accountChangeRequests",3,"ngModelChange","ngModel"],["matTooltip","When enabled, changes made to account profile will require admin a
1pproval. As an admin you will not have to approve your own changes.",1,"help"],["class","input-wrapper mgn b2",4,"ngIf"],["name","enableAddAccountACH",3,"ngModelChange","ngModel"],["matTooltip","Enable this option if, and only if, you are NOT connected to one of our Escrow, ACH, or Credit Card payment providers. If you are connected to one of our providers, the ability to securely store banking info with the provider will be enabled by default, and this specific option should be left disabled.",1,"help"],["class","input-wrapper approval-msg",4,"ngIf"],["name","inviteApproval",3,"ngModelChange","ngModel"],["matTooltip","When enabled, investor accounts created / invited by admins must also be approved before viewing offers",1,"help"],[1,"input-wrapper","approval-msg"],["autocomplete","off","type","text","matInput","","name","accountApprovalMsg",3,"ngModelChange","ngModel"],["matTooltip","If left blank, defaults to: 'Your account must be approved before proceeding. We are currently reviewing your information and will get back to you within 5 business days.'",1,"tooltip"],["name","requireKycOnSignUp",3,"ngModelChange","ngModel"],["matTooltip","During sign up, investors will be required to submit any information required to complete identity verification (per your KYC/AML and SSN settings under Features). You will still be responsible for deciding whether or not to initiate the check.",1,"help"],["name","noSignupInvesting",3,"ngModelChange","ngModel"],["name","requireTwoFactorAuth",3,"change","ngModel"],["matTooltip","When enabled, all users will be required to setup multi-factor authorization to login",1,"help"],["name","requireAdminTwoFactorAuth",3,"change","ngModel"],["matTooltip","When enabled, all users located under My Account will be required to setup multi-factor authorization on login",1,"help"],["name","enableKycAccountLock",3,"ngModelChange","ngModel"],["matTooltip","When enabled, an account will become read-only while KYC is in progress or completed. As an admin you will still have access to modify the account.",1,"help"],[1,"input-wrapper","mgn","b2"],["emailList","","autocomplete","off","type","text","matInput","","name","accountChangeRequestEmails",3,"ngModelChange","ngModel"],["matTooltip","By default, account change messages are sent to admins. If you'd like to email someone else add their emails here, comma seperated.",1,"tooltip"],["label","Pages",3,"aria-label"],[3,"config","canUpdate"],["label","Integrations",3,"aria-label"],["class","col s12 l6",4,"ngIf"],["autocomplete","off","type","text","matInput","","name","homeUrl",3,"ngModelChange","ngModel"],["autocomplete","off","type","text","matInput","","name","logoutUrl",3,"ngModelChange","ngModel"],["autocomplete","off","type","text","matInput","","name","notFoundUrl",3,"ngModelChange","ngModel"],["autocomplete","off","type","text","matInput","","name","stripePublicKey",3,"ngModelChange","ngModel"],["autocomplete","off","type","text","matInput","","name","stripeSecretKey",3,"ngModelChange","ngModel"],["autocomplete","off","type","text","matInput","","name","facebookAppId",3,"ngModelChange","ngModel"],["matTooltip","Only enter the tracking id (e.g. G-XXXXXX, or GTM-XXXXXX if using tag manager), not the full javascript snippet",1,"help"],["autocomplete","off","type","text","matInput","","name","googleAnalyticsId",3,"ngModelChange","ngModel"],["autocomplete","new-password","type","text","matInput","","name","mailchimpApiKey",3,"ngModelChange","ngModel"],[1,"col","s12","l3"],["appearance","outline","matTooltip","The usXX at the beginning of your admin URL. e.g. if your admin URL is https://us17.admin.mailchimp.com, then us17 is your datacenter ID","matTooltipPosition","above"],["autocomplete","off","type","text","matInput","","name","mailchimpDCId",3,"ngModelChange","ngModel"],["autocomplete","off","type","text","matInput","","name","mailchimpListId",3,"ngModelChange","ngModel"],["class","row connect-container",4,"ngIf"],["href","https://resources.wealthblock.ai/assets/docs/WealthBlock-Webhooks.pdf","target","_blank"],["label","Policies",3,"aria-label",4,"ngIf"],["autocomplete","off","type","text","matInput","","name","url","required","",3,"ngModelChange","ngModel"],["autocomplete","new-password","type","text","matInput","","name","twilioAccountSid",3,"ngModelChange","ngModel"],["autocomplete","new-password","type","text","matInput","","name","twilioAuthToken",3,"ngModelChange","ngModel"],["matTooltip","The phone # provided to you by Twilio, that your text messages will come from"],["autocomplete","off","type","text","matInput","","name","twilioFrom",3,"ngModelChange","ngModel"],[1,"row","connect-container"],["name","showNorthCapital",3,"ngModelChange","ngModel"],["class","connect-options",4,"ngIf","ngIfElse"],[1,"connect-options"],[1,"semibold"],["name","showAdvancedNorthCapital",3,"ngModelChange","ngModel"],[1,"col","s12","l12"],["type","remove","size","small",3,"click"],["name","useAltInstance",3,"ngModelChange","ngModel"],["matTooltip","When enabled, North Capital will be connected to the secondary instance.",1,"help"],["name","refundNotesEnabled",3,"ngModelChange","ngModel"],["matTooltip","When enabled, North Capital will send a refund note as part of the cancel investment process.",1,"help"],["autocomplete","off","type","text","matInput","","name","refundPartialNote",3,"ngModelChange","ngModel"],["matSuffix","","matTooltip","Set to default",1,"hover",3,"click"],["autocomplete","off","type","text","matInput","","name","refundFullNote",3,"ngModelChange","ngModel"],["class","connect-options",4,"ngIf"],["type","submit","size","small",3,"click"],["name","showCliq",3,"ngModelChange","change","ngModel"],["class","semibold",4,"ngIf"],["class","row",4,"ngIf"],["type","remove","size","small",3,"click",4,"ngIf"],[1,"mgn","b1"],["name","cliqEscrow",3,"ngModelChange","change","ngModel"],["name","ccDisabled",3,"ngModelChange","change","ngModel","disabled"],["matInput","","name","achAuthToken",3,"ngModelChange","ngModel"],["type","action","size","small",3,"click",4,"ngIf"],["type","action","size","small",3,"click"],["target","_blank","href","https://portal.cliq.com/"],["matInput","","type","number","name","merchantNumber","minLength","9",3,"ngModelChange","ngModel"],["size","small",1,"mgn","l1",3,"click"],["ngNativeValidate","",3,"ngSubmit"],["autocomplete","off","type","number","matInput","","name","merchantId",3,"ngModelChange","ngModel"],["autocomplete","off","type","text","matInput","","name","clientKey",3,"ngModelChange","ngModel"],["autocomplete","off","type","number","matInput","","name","merchantType",3,"ngModelChange","ngModel"],["autocomplete","off","type","text","matInput","","name","securityKey",3,"ngModelChange","ngModel"],["autocomplete","off","type","number","matInput","","name","distributionMerchantId",3,"ngModelChange","ngModel"],["autocomplete","off","type","text","matInput","","name","distributionClientKey",3,"ngModelChange","ngModel"],["type","submit","size","small",3,"disabled"],["type","cancel","size","small",1,"mgn","l1",3,"click"],[1,"center"],["width","1200","height","1500","frameBorder","0","class","gfiframe",3,"src",4,"ngIf"],["width","1200","height","1500","frameBorder","0",1,"gfiframe",3,"src"],["name","showDocuSign",3,"ngModelChange","ngModel"],["article","61000293389",3,"top","left"],["class","mgn b1",4,"ngIf"],["type","submit","size","small",3,"click",4,"ngIf"],["href","https://www.docusign.com/products-and-pricing/api-plans","target","_blank"],["autocomplete","off","type","text","matInput","","name","integrationKey","required","",3,"ngModelChange","ngModel"],["autocomplete","off","type","text","matInput","","name","secretKey","required","",3,"ngModelChange","ngModel"],["autocomplete","off","type","text","matInput","","name","accountId","required","",3,"ngModelChange","ngModel"],["autocomplete","off","type","text","matInput","","name","username","required","",3,"ngModelChange","ngModel"],["matInput","","name","docusignPublicKey","required","",3,"ngModelChange","ngModel"],["matInput","","name","docusignPrivateKey","required","",3,"ngModelChange","ngModel"],["type","submit",3,"disabled"],["name","showACHQ",3,"ngModelChange","ngModel"],["article","61000297331",3,"top","left"],["size","small",1,"mgn","l1",3,"click","disabled"],["autocomplete","off","type","text","matInput","","name","merchantId",3,"ngModelChange","ngModel"],["autocomplete","off","type","text","matInput","","name","merchantGateId",3,"ngModelChange","ngModel"],["autocomplete","off","type","text","matInput","","name","merchantGateKey",3,"ngModelChange","ngModel"],["prefill-inherit","","prefill","pid=1086§or=Financial%20Services","data-
1paperform-id","activate"],["name","showVertalo",3,"ngModelChange","ngModel"],["article","61000299840",3,"top","left"],["ngNativeValidate","",3,"ngSubmit",4,"ngIf"],["autocomplete","off","type","text","matInput","","name","clientId",3,"ngModelChange","ngModel"],["autocomplete","off","type","text","matInput","","name","clientSecret",3,"ngModelChange","ngModel"],["name","showZumRail",3,"ngModelChange","ngModel"],["class","center",4,"ngIf"],["type","remove","size","small",1,"mgn","l1",3,"click"],["width","800","height","800","frameborder","0",3,"src"],["autocomplete","off","type","text","matInput","","name","clientId","required","",3,"ngModelChange","ngModel"],["matTooltip","find your API Password",1,"hover","tooltip","large",3,"click"],["autocomplete","off","type","text","matInput","","name","fundingSourceId","required","",3,"ngModelChange","ngModel"],["matTooltip","add a Funding Source",1,"hover","tooltip","large",3,"click"],["name","showVoPay",3,"ngModelChange","ngModel","disabled"],["class","col s12 l3",4,"ngIf"],["autocomplete","off","type","text","matInput","","name","voPayWebsiteHookId",3,"ngModelChange","ngModel"],["autocomplete","off","type","text","matInput","","name","secret","required","",3,"ngModelChange","ngModel"],["autocomplete","off","type","text","matInput","","name","key","required","",3,"ngModelChange","ngModel"],["name","showCybrid",3,"ngModelChange","ngModel"],["type","action","size","small",1,"mgn","l1",3,"click"],["type","action","size","small","class","mgn l1",3,"click",4,"ngIf"],["type","remove","class","mgn l1",3,"click",4,"ngIf"],["autocomplete","off","type","text","minlength","32","maxLength","32","matInput","","name","organizationId","required","",3,"ngModelChange","ngModel"],["autocomplete","off","type","text","matInput","","name","clientSecret","required","",3,"ngModelChange","ngModel"],["autocomplete","off","type","text","minlength","32","maxLength","32","matInput","","name","bankGuid","required","",3,"ngModelChange","ngModel"],["autocomplete","off","type","text","matInput","","name","bankClientId","required","",3,"ngModelChange","ngModel"],["autocomplete","off","type","text","matInput","","name","bankClientSecret","required","",3,"ngModelChange","ngModel"],[2,"position","relative","top","-15px"],["name","showCybridBankForm","matTooltip","connect external bank account for all offers to transfer funds through",3,"ngModelChange","ngModel"],["class","col s12 l4",4,"ngIf","ngIfElse"],["autocomplete","off","type","text","minlength","32","maxLength","32","matInput","","name","bankExternalAccountId",3,"ngModel","ngModelChange",4,"ngIf"],["autocomplete","off","type","text","minlength","32","maxLength","32","matInput","","name","bankExternalAccountId","required","",3,"ngModel","ngModelChange",4,"ngIf"],["autocomplete","off","type","text","minlength","32","maxLength","32","matInput","","name","bankExternalAccountId",3,"ngModelChange","ngModel"],["autocomplete","off","type","text","minlength","32","maxLength","32","matInput","","name","bankExternalAccountId","required","",3,"ngModelChange","ngModel"],["autocomplete","off","type","text","matInput","","name","companyName","required","",3,"ngModelChange","ngModel"],["autocomplete","off","type","text","matInput","","name","email","required","",3,"ngModelChange","ngModel"],[3,"profile","showCountry","required"],["autocomplete","off","type","text","matInput","","name","bankName","required","",3,"ngModelChange","ngModel"],["autocomplete","off","type","number","matInput","","name","accountNumber","required","",3,"ngModelChange","ngModel"],["autocomplete","off","type","number","matInput","","name","routingNumber","required","",3,"ngModelChange","ngModel"],["name","routingNumberType","required","",3,"ngModelChange","ngModel"],["value","ABA"],["value","CPA"],["type","remove",1,"mgn","l1",3,"click"],["name","showWallet",3,"ngModelChange","ngModel"],["autocomplete","off","type","text","matInput","","name","walletConnectProjectId","required","",3,"ngModelChange","ngModel"],["name","showBrassica",3,"ngModelChange","ngModel"],["autocomplete","off","type","text","matInput","","name","apiKey",3,"ngModelChange","ngModel"],["autocomplete","off","type","text","matInput","","name","platform",3,"ngModelChange","ngModel"],["name","showBitGo",3,"ngModelChange","ngModel"],["autocomplete","off","type","text","matInput","","name","bitgo-organization-id","required","",3,"ngModelChange","ngModel"],["autocomplete","off","type","text","matInput","","name","bitgo-enterprise-id","required","",3,"ngModelChange","ngModel"],["autocomplete","off","type","text","matInput","","name","bitgo-access-token","required","",3,"ngModelChange","ngModel"],["autocomplete","off","type","text","matInput","","name","bitgo-service-user-id","required","",3,"ngModelChange","ngModel"],["autocomplete","off","type","text","matInput","","placeholder","https://{host:port}/api/","name","bitgo-express-proxy-url",3,"ngModelChange","ngModel"],["name","showMailConnect",3,"ngModelChange","ngModel"],["type","remove","size","small","class","mgn l1",3,"click",4,"ngIf"],["class","row connect-options",4,"ngIf"],[1,"row","connect-options"],["class","input-wrapper col s6",4,"ngIf"],["class","col s6 mgn t2",4,"ngIf"],[1,"input-wrapper","col","s6"],["autocomplete","off","type","text","matInput","","name","mailConnectOutlookId","required","",3,"ngModelChange","ngModel"],["matTooltip","",1,"tooltip"],["autocomplete","off","type","text","matInput","","name","mailConnectOutlookSecret","required","",3,"ngModelChange","ngModel"],[1,"col","s6","mgn","t2"],["type","submit"],["type","action",1,"mgn","l1",3,"click"],[1,"col","s12","l4","hook"],[1,"hook-slider"],[3,"change","ngModel","name","matTooltip"],["matTooltip","Send Test",1,"hover","hook-test",3,"click"],["autocomplete","off","type","input","matInput","",3,"ngModelChange","blur","ngModel","name"],["autocomplete","off","type","text","matInput","","readonly","",3,"value"],["appearance","outline","matTooltip","Click to show API Key","matTooltipPosition","above",1,"clickable",3,"click"],["autocomplete","off","matInput","","readonly","",3,"type","value"],["mode","indeterminate",4,"ngIf"],["href","https://docs.wealthblock.ai","target","_blank"],["size","small",1,"right",3,"click","disabled"],["mode","indeterminate"],["label","Policies",3,"aria-label"],["article","61000275458",3,"top","left"],[1,"policies"],["name","selectedPolicyType",3,"ngModelChange","selectionChange","ngModel"],[3,"ngSwitch"],[4,"ngSwitchCase"],["name","privacyPolicy",3,"valueChange","value","allowHtml"],["size","small",3,"click",4,"ngIf"],["size","small",3,"click"],["name","termsOfUse",3,"valueChange","value","allowHtml"],["name","riskDisclosure",3,"valueChange","value","allowHtml"],["label","Super Admin",3,"aria-label"],[1,"col","s12","l6","float-btn"],["autocomplete","off","type","text","matInput","","name","slug",3,"ngModelChange","ngModel"],["type","action","size","small",3,"click","disabled"],["type","submit",3,"disabled","iconRight"],[3,"message","videos"]],template:function(a,t){1&a&&(e.j41(0,"wb-page",26),e.DNE(1,Ao,72,38,"
1ng-template"),e.k0s()),2&a&&e.Y8G("initialized",!!t.config)("header",e.eq3(2,Ne,t.isInitialSetup?"":"Platform Settings"))},dependencies:[G.NZ,F.Ky,F.aw,F.xZ,E.aL,S.cu,A.d1,C.An,y.PD,h._m,v.oM,P.V5,P.M6,X.P2,g.Sq,g.bT,g.ux,g.e1,u.me,u.Q0,u.BC,u.cb,u.YS,u.xh,u.vS,u.cV,m.cF,m.TX,m.lu,m.bk,m.A$,m.rc,m.TV,f.Q,x.H,L.d,O.P,Y.Y,B.q,Q.A,Z.x,J.n,Ee],styles:["[_ngcontent-%COMP%]:root{--brand-primary: #100001;--brand-secondary: #100006;--brand-alert: #100011;--brand-success: #100016;--brand-warn: #100021;--brand-shout: #100026;--border-default: #edeef0}html[_ngcontent-%COMP%]{font-size:62.5%}body[_ngcontent-%COMP%]{font-size:1.4rem}h1[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h2[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h3[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h4[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h5[_ngcontent-%COMP%] a[_ngcontent-%COMP%], h6[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-weight:inherit}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{line-height:1.1}h1[_ngcontent-%COMP%]{font-size:2.9rem;font-weight:500}h2[_ngcontent-%COMP%]{font-size:2.5rem;font-weight:500}h3[_ngcontent-%COMP%]{font-size:2.1rem;font-weight:500}h4[_ngcontent-%COMP%]{font-size:1.7rem;font-weight:400}h5[_ngcontent-%COMP%]{font-size:1.3rem;font-weight:400}h6[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:500;text-transform:uppercase}mat-tab-group[_ngcontent-%COMP%]{margin-top:-20px}.mat-stepper-horizontal[_ngcontent-%COMP%]{background:none}.setup-wrapper[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{text-align:center;padding:0 20px 40px}.setup-wrapper[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:242px}.setup-wrapper[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{text-align:center;margin-bottom:20px}form[_ngcontent-%COMP%]{padding:10px}mat-card[_ngcontent-%COMP%]{padding:16px 40px 40px;margin-bottom:20px}@media (max-width: 992px){mat-card[_ngcontent-%COMP%]{padding:10px}}mat-form-field[_ngcontent-%COMP%]{width:100%}.setup-form[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-weight:300;color:#344551;margin-top:1.46rem;margin-bottom:20px;text-transform:uppercase}.setup-form[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:1.3rem}.buttons[_ngcontent-%COMP%]{margin-top:20px;text-align:center}.new-asset-option[_ngcontent-%COMP%]{color:#100001;font-weight:500}wb-file-upload[_ngcontent-%COMP%]{display:block;margin-bottom:30px}mat-slide-toggle[_ngcontent-%COMP%]{margin-left:10px}.colors[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{margin-bottom:2rem}label[_ngcontent-%COMP%]{margin-bottom:15px;font-size:1.3rem;display:block;font-weight:300}mat-icon.tooltip[_ngcontent-%COMP%]{position:absolute;right:12px;top:17px;font-size:2.5rem;color:gray}mat-icon.tooltip.large[_ngcontent-%COMP%]{top:5px;right:5px}.input-wrapper[_ngcontent-%COMP%], .dropdown-wrapper[_ngcontent-%COMP%]{position:relative;margin-right:7rem}.input-wrapper[_ngcontent-%COMP%] mat-icon.tooltip[_ngcontent-%COMP%], .dropdown-wrapper[_ngcontent-%COMP%] mat-icon.tooltip[_ngcontent-%COMP%]{right:10px;top:6px}.input-wrapper.tight[_ngcontent-%COMP%], .dropdown-wrapper.tight[_ngcontent-%COMP%]{position:relative;top:-1.5rem}.input-wrapper.col[_ngcontent-%COMP%], .dropdown-wrapper.col[_ngcontent-%COMP%]{margin-right:0}.dropdown-wrapper[_ngcontent-%COMP%] mat-icon.tooltip[_ngcontent-%COMP%]{right:3.5rem}.approval-msg[_ngcontent-%COMP%]{margin:5px 50px 18px 0}mat-checkbox[_ngcontent-%COMP%], .radio-row[_ngcontent-%COMP%]{display:block;margin-bottom:25px}mat-checkbox.no-margin[_ngcontent-%COMP%], .radio-row.no-margin[_ngcontent-%COMP%]{margin-bottom:0}.landing-page-settings[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]{margin-bottom:5px}.landing-page-settings[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:78px}.radio-lbl[_ngcontent-%COMP%], .mat-radio-button[_ngcontent-%COMP%]{margin-right:20px}mat-icon.help[_ngcontent-%COMP%]{position:relative;font-size:1.7rem;top:3px;left:4px}.policies[_ngcontent-%COMP%] wb-button[_ngcontent-%COMP%]{margin-right:10px}.custom-pages[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{position:relative;margin:7px 0 15px}.custom-pages[_ngcontent-%COMP%] wb-button[_ngcontent-%COMP%]{margin-right:10px}.custom-pages[_ngcontent-%COMP%] wb-button.add-new[_ngcontent-%COMP%]{margin:6px 0 0 25px}.landing-page-nav[_ngcontent-%COMP%]{position:relative;padding-right:10px}.landing-page-nav[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#bbc0cd;position:absolute;top:16px;right:-15px}.float-btn[_ngcontent-%COMP%]{position:relative}.float-btn[_ngcontent-%COMP%] wb-button[_ngcontent-%COMP%]{position:absolute;top:10px;right:20px}wb-radio-card[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-weight:500;font-size:1.5rem}wb-radio-card.selected[_ngcontent-%COMP%]{color:#100001}wb-admin-platform-coach[_ngcontent-%COMP%]{position:absolute;display:block;margin:-120px 0 20px 20px;right:20px}wb-admin-platform-coach.coach_step_1[_ngcontent-%COMP%]{top:310px}wb-admin-platform-coach.coach_step_2[_ngcontent-%COMP%]{top:370px}@media (max-width: 992px){wb-admin-platform-coach[_ngcontent-%COMP%]{position:static;margin:2rem 0 4rem -1rem}}.hook-test[_ngcontent-%COMP%]{color:#bbc0cd;font-size:2rem;margin-left:1rem;position:relative;top:.5rem}.hook[_ngcontent-%COMP%]{margin-top:-3rem}.hook-slider[_ngcontent-%COMP%]{position:relative;top:3rem;text-align:right}.no-pad-left[_ngcontent-%COMP%]{padding-left:0}.connect-container[_ngcontent-%COMP%] .connect-options[_ngcontent-%COMP%]{margin-left:2rem}.marketplace-descr[_ngcontent-%COMP%]{display:block;margin-bottom:1rem}"]})}}return i})()},20834:(U,T,r)=>{r.d(T,{k:()=>X});var j=r(10467),e=r(25599),k=r(58811),I=r(17782),s=r(94092),c=r(54438),l=r(5430
1),b=r(93738),M=r(20962),R=r(60177),w=r(91018),d=r(28594),N=r(49750),D=r(59856);function V(g,u){1&g&&c.eu8(0)}function G(g,u){if(1&g&&(c.qex(0),c.DNE(1,V,1,0,"ng-container",5),c.bVm()),2&g){c.XpG(2);const m=c.sdS(3);c.R7$(),c.Y8G("ngTemplateOutlet",m)}}function F(g,u){1&g&&c.eu8(0)}function E(g,u){if(1&g&&c.DNE(0,F,1,0,"ng-container",5),2&g){c.XpG(3);const m=c.sdS(3);c.Y8G("ngTemplateOutlet",m)}}function S(g,u){if(1&g&&(c.j41(0,"wb-content-access-check",6),c.DNE(1,E,1,1,"ng-template"),c.k0s()),2&g){const m=c.XpG(2);c.Y8G("accessType",m.customPage.accessType||0)("accessReference",m.customPage.accessRef)("embed",!0)}}function A(g,u){if(1&g&&c.DNE(0,G,2,1,"ng-container",4)(1,S,2,3,"ng-template",null,1,c.C5r),2&g){const m=c.sdS(2),f=c.XpG();c.Y8G("ngIf",f.showPreview)("ngIfElse",m)}}function C(g,u){if(1&g&&c.nrm(0,"wb-content-renderer",8),2&g){const m=u.$implicit,f=u.index,x=c.XpG(3);c.Y8G("index",f)("content",m)("pageContents",x.pageContents)}}function y(g,u){if(1&g&&(c.qex(0),c.DNE(1,C,1,3,"wb-content-renderer",7),c.bVm()),2&g){const m=c.XpG(2);c.R7$(),c.Y8G("ngForOf",m.pageContents)}}function h(g,u){if(1&g&&(c.nrm(0,"div",10),c.nI1(1,"safeHTML")),2&g){const m=c.XpG(3);c.Y8G("innerHTML",c.bMT(1,1,m.html),c.npT)}}function v(g,u){if(1&g&&c.DNE(0,h,2,3,"div",9),2&g){const m=c.XpG(2);c.Y8G("ngIf",m.html)}}function P(g,u){if(1&g&&(c.j41(0,"mat-card"),c.DNE(1,y,2,1,"ng-container",4)(2,v,1,1,"ng-template",null,2,c.C5r),c.k0s()),2&g){const m=c.sdS(3),f=c.XpG();c.AVh("no-container",null==f.customPage.settings?null:f.customPage.settings.hideContainer),c.R7$(),c.Y8G("ngIf",f.pageContents)("ngIfElse",m)}}let X=(()=>{class g extends s.$G{constructor(m,f,x,L,O,Y,B){super(m),this.platformService=f,this.routerService=x,this.contentService=L,this.accountModelService=O,this.platformUI=Y,this.apiTokenService=B}ngOnInit(){var m=this;return(0,j.A)(function*(){m.account=m.accountModelService.selectedAccount||new I.gDM,m.loadPage()})()}loadPage(){var m=this;this.platformService.getCustomPage(this.slug||this.routerService.params("slug")).then(function(){var f=(0,j.A)(function*(x){x.success?yield m.setPage(x.data):m.appService.navigate(k.qh.Acce
1ssDenied)});return function(x){return f.apply(this,arguments)}}())}setPage(m){var f=this;return(0,j.A)(function*(){if(e.T.EnableFullWidth=!0,f.customPage=m,f.html=m.html,m.content&&(f.pageContents=yield f.contentService.getByIds(m.content)),m.script){if(m.script.includes("{{wealthblock_auth_headers}}")){const x={Authorization:`Bearer ${f.apiTokenService.getToken(null)}`,"Client-ID":f.platformService.getId()};m.script=m.script.replace("{{wealthblock_auth_headers}}",JSON.stringify(x))}f.platformUI.addScript(m.script,`custom-page-${m.slug}`)}})()}ngOnDestroy(){super.ngOnDestroy(),setTimeout(()=>{e.T.EnableFullWidth=!1})}static{this.\u0275fac=function(f){return new(f||g)(c.rXU(l.d3),c.rXU(l.fP),c.rXU(l.HM),c.rXU(l.fH),c.rXU(l.UF),c.rXU(b.W),c.rXU(l.v0))}}static{this.\u0275cmp=c.VBU({type:g,selectors:[["wb-custom-page"]],inputs:{showPreview:"showPreview",slug:"slug"},features:[c.Vt3],decls:4,vars:1,consts:[["renderTemplate",""],["accessCheck",""],["legacyTemplate",""],[3,"initialized"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet"],[3,"accessType","accessReference","embed"],[3,"index","content","pageContents",4,"ngFor","ngForOf"],[3,"index","content","pageContents"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"]],template:function(f,x){1&f&&(c.j41(0,"wb-page",3),c.DNE(1,A,3,2,"ng-template"),c.k0s(),c.DNE(2,P,4,4,"ng-template",null,0,c.C5r)),2&f&&c.Y8G("initialized",!!x.customPage)},dependencies:[M._m,R.Sq,R.bT,R.T3,w.H,d.R,N.Y,D.lm],styles:["mat-card.no-container[_ngcontent-%COMP%]{background:none;box-shadow:none;padding:0}"]})}}return g})()}}]);
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.