PageSourceSearch

https://www.weheroines.com/663.87e24f4864270e0e.js

js weheroines.com collected 2026-10-09 22:16:02 UTC 36,780 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkangular17project=self.webpackChunkangular17project||[]).push([[663],{3663:(Q,k,d)=>{d.r(k),d.d(k,{IntegrationModule:()=>K});var c=d(177),h=d(9729),e=d(4438),b=d(3154),C=d(1653),v=d(4409),m=d(8784),p=d(1626);let P=(()=>{var r;class o{constructor(t){this.httpClient=t,this.MAILCHIMP_Access_API=m.R.SERVER_URL+"/public"}saveAndAccessToken(t,n,i){let s=(new p.Lr).set("domain",t);this.httpClient.post(this.MAILCHIMP_Access_API+"/mailchimp/"+n,{},{headers:s}).subscribe({next:a=>{i(a)},error:a=>{i(a)}})}updateAudienceId(t,n,i){let s=(new p.Lr).set("domain",t);this.httpClient.patch(this.MAILCHIMP_Access_API+"/mailchimp/audience/"+n,{},{headers:s}).subscribe({next:a=>{i(a)},error:a=>{i(a)}})}static#e=r=()=>(this.\u0275fac=function(n){return new(n||o)(e.KVO(p.Qq))},this.\u0275prov=e.jDH({token:o,factory:o.\u0275fac,providedIn:"root"}))}return r(),o})();var _=d(2490),u=d(9417);const O=()=>({standalone:!0});function M(r,o){1&r&&(e.j41(0,"div",18),e.nrm(1,"div",19),e.j41(2,"p"),e.EFF(3,"Please wait for a moment...Configuring MailChimp"),e.k0s()())}function F(r,o){1&r&&(e.j41(0,"div",20)(1,"div",21)(2,"h4",22),e.EFF(3,"Well done!"),e.k0s(),e.j41(4,"p"),e.EFF(5,"Aww yeah, you successfully integrated MailChimp in your "),e.j41(6,"strong"),e.EFF(7,"FreshLearn"),e.k0s(),e.EFF(8," account."),e.k0s(),e.nrm(9,"hr"),e.j41(10,"p",23),e.EFF(11,"Now you can Send your leads directly from FreshLearn to MailChimp."),e.k0s()()())}function x(r,o){1&r&&(e.j41(0,"div",20)(1,"div",24)(2,"h4",22),e.EFF(3,"Oops!"),e.k0s(),e.j41(4,"p"),e.EFF(5,"Something is wrong with integration from MailChimp in your "),e.j41(6,"strong"),e.EFF(7,"FreshLearn"),e.k0s(),e.EFF(8," account."),e.k0s(),e.nrm(9,"hr"),e.j41(10,"p",25),e.EFF(11,"You can Try again from "),e.j41(12,"strong",26),e.EFF(13,"FreshLearn"),e.k0s(),e.EFF(14," account."),e.k0s()()())}function y(r,o){if(1&r&&(e.j41(0,"option",27)(1,"span"),e.EFF(2),e.k0s()()),2&r){const g=o.$implicit;e.Y8G("value",g.id),e.R7$(2),e.JRh(g.name)}}let w=(()=>{var r;class o{constructor(t,n,i,s,a,l,f){this.activatedRoute=t,this.router=n,this.swalService=i,this.mailchimpAccessService=s,this.cookieService=a,this.request=l,this.platformId=f,this.isPlatformServer=!1,this.isPlatformBrowser=!1,this.loading=!0,this.success=!1,this.error=!1,this.saving=!1,this.saveLoading=!1,this.audienceObj=[{id:1,name:"Option 1"},{id:2,name:"Option 2"},{id:3,name:"Option 3"},{id:4,name:"Option 4"},{id:5,name:"Option 5"},{id:6,name:"Option 6"},{id:7,name:"Option 7"},{id:8,name:"Option 8"},{id:9,name:"Option 9"},{id:10,name:"Option 10"}],this.isPlatformServer=(0,c.Vy)(this.platformId),this.isPlatformBrowser=(0,c.UE)(this.platformId)}ngOnInit(){var t=this;this.isPlatformBrowser&&this.activatedRoute.queryParams.subscribe(n=>{null!=n.code?(t.mailChimpCode=n.code,t.domainName=t.cookieService.get("_redirect"),t.domainName?t.saveCodeAndGetAccessToken():(t.loading=!1,t.error=!0)):(t.loading=!1,t.error=!0)})}saveCodeAndGetAccessToken(){var t=this;t.mailchimpAccessService.saveAndAccessToken(t.domainName,t.mailChimpCode,function(n){null==n||0==n.status||n.status>=400?(t.loading=!1,t.error=!0):n&&n.length>0?(t.audienceObj=n,C("#openModalButton").click(),t.loading=!1):(t.loading=!1,t.error=!0)})}getSelectedValue(t){this.audienceId=t}saveAudienceId(){var t=this;t.saveLoading=!0,t.mailchimpAccessService.updateAudienceId(t.domainName,t.audienceId,function(n){null==n||0==n.status||n.status>=400?(t.loading=!1,t.error=!0,t.saveLoading=!1,C("#planUpdateModal").find(".close").click()):n&&(C("#planUpdateModal").find(".close").click(),t.loading=!1,t.success=!0,t.error=!1,t.saveLoading=!1,t.cookieService.delete("_redirect"))})}static#e=r=()=>(this.\u0275fac=function(n){return new(n||o)(e.rXU(h.nX),e.rXU(h.Ix),e.rXU(v.X),e.rXU(P),e.rXU(_.O),e.rXU(b.S,8),e.rXU(e.Agw))},this.\u0275cmp=e.VBU({type:o,selectors:[["app-mailchimp-settings"]],decls:24,vars:10,consts:[["class","spinner-wrapper",4,"ngIf"],["class","col-md-6 m-auto pt-5",4,"ngIf"],["id","openModalButton","data-bs-toggle","modal","data-bs-target","#planUpdateModal",2,"display","none",3,"hidden"],["id","planUpdateModal","data-bs-backdrop","static","data-bs-keyboard","false","tabindex","-1","aria-labelledby","planUpdateLabel","aria-hidden","true",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","planUpdateLabel",1,"modal-title"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"btn-close","close"],[1,"modal-body"],[1,"freshlms__height__85","mb-0"],["for","audienceId",1,"freshlms__label"],["o
1ptionHeight","35","placeholder","Choose your country","name","country",1,"col-md-12","form-select","form-select-lg","freshlms__fs__14","form-control",3,"ngModelChange","ngModelOptions","ngModel"],["value","","disabled","","selected",""],["id","sel","size","10",3,"value",4,"ngFor","ngForOf"],[1,"border__top__0","d-flex","justify-content-end","p-2","freshlms__bg__rbga__F7F7F7","freshlms__border__bottom_4","mt-4"],["role","button",1,"fresh_lms_primary_btn",3,"click","disabled"],[1,"m-auto","fas",3,"ngClass"],[1,"spinner-wrapper"],[1,"donut"],[1,"col-md-6","m-auto","pt-5"],["role","alert",1,"alert","alert-success"],[1,"alert-heading"],[1,"mb-0"],["role","alert",1,"alert","alert-danger"],["id","select-val",1,"mb-0"],["data-bs-toggle","modal","data-bs-target","#planUpdateModal"],["id","sel","size","10",3,"value"]],template:function(n,i){1&n&&(e.DNE(0,M,4,0,"div",0)(1,F,12,0,"div",1)(2,x,15,0,"div",1),e.j41(3,"button",2),e.EFF(4,"Restriction Modal"),e.k0s(),e.j41(5,"div",3)(6,"div",4)(7,"div",5)(8,"div",6)(9,"h5",7),e.EFF(10,"Audience"),e.k0s(),e.nrm(11,"button",8),e.k0s(),e.j41(12,"div",9)(13,"div",10)(14,"label",11),e.EFF(15,"Select Audience"),e.k0s(),e.j41(16,"select",12),e.bIt("ngModelChange",function(a){return i.getSelectedValue(a)}),e.mxI("ngModelChange",function(a){return e.DH7(i.audienceId,a)||(i.audienceId=a),a}),e.j41(17,"option",13),e.EFF(18,"Please select"),e.k0s(),e.DNE(19,y,3,2,"option",14),e.k0s()(),e.j41(20,"div",15)(21,"button",16),e.bIt("click",function(){return i.saveAudienceId()}),e.EFF(22,"Save "),e.nrm(23,"span",17),e.k0s()()()()()()),2&n&&(e.Y8G("ngIf",i.loading),e.R7$(),e.Y8G("ngIf",!i.loading&&i.success),e.R7$(),e.Y8G("ngIf",!i.loading&&i.error),e.R7$(),e.Y8G("hidden",!0),e.R7$(13),e.Y8G("ngModelOptions",e.lJ4(9,O)),e.R50("ngModel",i.audienceId),e.R7$(3),e.Y8G("ngForOf",i.audienceObj),e.R7$(2),e.Y8G("disabled",i.saveLoading),e.R7$(2),e.Y8G("ngClass",i.saveLoading?"fa-spinner fa-spin":""))},dependencies:[c.YU,c.Sq,c.bT,u.xH,u.y7,u.wz,u.BC,u.vS],styles:[".spinner-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;height:calc(100vh - 7.5rem);position:fixed;width:calc(100% - 4rem)}@media (max-width: 991px){.spinner-wrapper[_ngcontent-%COMP%]{width:100%}}.spinner-wrapper[_ngcontent-%COMP%]   .donut[_ngcontent-%COMP%]{width:4rem;height:4rem;border-radius:50%;border:.3rem solid rgba(151,159,208,.3);border-top-color:#979fd0;animation:1.5s _ngcontent-%COMP%_spin infinite linear}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}"]}))}return r(),o})(),I=(()=>{var r;class o{constructor(t){this.httpClient=t,this.SLACK_API=m.R.SERVER_URL+"/public"}saveAndGetAccessToken(t,n){const i=`${this.SLACK_API}/slack-integration?code=${t.code}&state=${t.state}`;let s=(new p.Lr).set("domain",t.domainName);this.httpClient.post(i,{userId:t.userId},{headers:s}).subscribe({next:a=>{n(a)},error:a=>{n(a)}})}getSlackChannels(t,n){let i=(new p.Lr).set("domain",t.domainName);this.httpClient.get(this.SLACK_API+"/slack-integration/channels?userId="+t.userId,{headers:i}).subscribe({next:s=>{n(s)},error:s=>{n(s)}})}saveChannelConfiguration(t,n){let i=(new p.Lr).set("domain",t.domainName);this.httpClient.post(this.SLACK_API+"/slack-integration/channels",{userId:t.userId,selectedChannels:t.selectedChannels},{headers:i}).subscribe({next:s=>{n(s)},error:s=>{n(s)}})}static#e=r=()=>(this.\u0275fac=function(n){return new(n||o)(e.KVO(p.Qq))},this.\u0275prov=e.jDH({token:o,factory:o.\u0275fac,providedIn:"root"}))}return r(),o})();function j(r,o){1&r&&(e.j41(0,"div",2),e.nrm(1,"div",3),e.j41(2,"p"),e.EFF(3,"Please wait for a moment...Configuring Slack"),e.k0s()())}function E(r,o){1&r&&(e.j41(0,"div",4)(1,"div",5)(2,"h4",6),e.EFF(3,"Oops!"),e.k0s(),e.j41(4,"p"),e.EFF(5,"There seems to be an issue with the Slack integration in your "),e.j41(6,"strong"),e.EFF(7,"FreshLearn"),e.k0s(),e.EFF(8," account. Please reach out to "),e.j41(9,"a",7),e.EFF(10,"[email protected]"),e.k0s(),e.EFF(11," for further assistance."),e.k0s(),e.nrm(12,"hr"),e.j41(13,"div",8)(14,"button",9),e.EFF(15," Go to FreshLearn Admin Account "),e.k0s()()()())}let A=(()=>{var r;class o{constructor(t,n,i,s,a){this.platformId=t,this.activatedRoute=n,this.router=i,this.cookieService=s,this.slackIntegrationService=a,this.slackOauthCode="",this.domainName="",this.userId=0,this.loading=!0,this.error=!1,this.isPlatformServer=(0,c.Vy)(this.platformId),this.isPlatformBrowser=(0,c.UE)(this.platformId)}ngOnInit(){this.isPlatformBrowser&&this.activatedRoute.queryParams.subscribe(t=>
1{if(null!=t.code){this.slackOauthCode=t.code;const n=this.cookieService.get("_redirect_slack");if(n)try{const i=JSON.parse(n);this.domainName=i.domian,this.userId=i.userId,this.domainName&&this.userId?this.saveCodeAndGetAccessToken():this.router.navigate(["/integration/error"])}catch{this.router.navigate(["/integration/error"])}else this.router.navigate(["/integration/error"])}else this.router.navigate(["/integration/error"])})}saveCodeAndGetAccessToken(){this.loading=!0,this.slackIntegrationService.saveAndGetAccessToken({code:this.slackOauthCode,state:"slack-integration",domainName:this.domainName,userId:this.userId},n=>{this.loading=!1,null==n||n.status>=400?(this.loading=!1,this.error=!0):(this.cookieService.delete("_redirect_slack"),sessionStorage.setItem("slack_integration_data",JSON.stringify({domainName:this.domainName,userId:this.userId,integrationSuccess:!0})),this.router.navigate(["/integration/success"]))})}openAdminPortal(){window.location.href=`https://app.${m.R.DOMAIN_URL}/#/dashboard/settings`}static#e=r=()=>(this.\u0275fac=function(n){return new(n||o)(e.rXU(e.Agw),e.rXU(h.nX),e.rXU(h.Ix),e.rXU(_.O),e.rXU(I))},this.\u0275cmp=e.VBU({type:o,selectors:[["app-slack-integration"]],decls:2,vars:2,consts:[["class","spinner-wrapper",4,"ngIf"],["class","col-md-6 m-auto pt-5",4,"ngIf"],[1,"spinner-wrapper"],[1,"donut"],[1,"col-md-6","m-auto","pt-5"],["role","alert",1,"alert","alert-danger"],[1,"alert-heading"],["href","mailto:[email protected]"],[1,"d-flex","justify-content-end"],["onclick","openAdminPortal()",1,"btn","btn-primary"]],template:function(n,i){1&n&&e.DNE(0,j,4,0,"div",0)(1,E,16,0,"div",1),2&n&&(e.Y8G("ngIf",i.loading),e.R7$(),e.Y8G("ngIf",i.error))},dependencies:[c.bT],styles:[".spinner-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:50vh}.spinner-wrapper[_ngcontent-%COMP%]   .donut[_ngcontent-%COMP%]{width:40px;height:40px;border:4px solid #f3f3f3;border-top:4px solid #4A154B;border-radius:50%;animation:_ngcontent-%COMP%_spin 1s linear infinite}.spinner-wrapper[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-top:1rem;color:#4a154b;font-weight:500}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.card[_ngcontent-%COMP%]{border:none;box-shadow:0 4px 12px #0000001a;border-radius:12px}.card[_ngcontent-%COMP%]   .card-title[_ngcontent-%COMP%]{color:#4a154b;font-weight:600}.channels-list[_ngcontent-%COMP%]{max-height:400px;overflow-y:auto}.channels-list[_ngcontent-%COMP%]   .channel-item[_ngcontent-%COMP%]{padding:12px 16px;border:1px solid #e9ecef;border-radius:8px;background-color:#f8f9fa;transition:all .2s ease}.channels-list[_ngcontent-%COMP%]   .channel-item[_ngcontent-%COMP%]:hover{background-color:#e9ecef;border-color:#36c5f0}.channels-list[_ngcontent-%COMP%]   .channel-item[_ngcontent-%COMP%]   .form-check[_ngcontent-%COMP%]{margin:0}.channels-list[_ngcontent-%COMP%]   .channel-item[_ngcontent-%COMP%]   .form-check[_ngcontent-%COMP%]   .form-check-input[_ngcontent-%COMP%]:checked{background-color:#2eb67d;border-color:#2eb67d}.channels-list[_ngcontent-%COMP%]   .channel-item[_ngcontent-%COMP%]   .form-check[_ngcontent-%COMP%]   .form-check-input[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 .2rem #2eb67d40}.channels-list[_ngcontent-%COMP%]   .channel-item[_ngcontent-%COMP%]   .form-check[_ngcontent-%COMP%]   .form-check-label[_ngcontent-%COMP%]{font-weight:500;color:#495057;cursor:pointer}.channels-list[_ngcontent-%COMP%]   .channel-item[_ngcontent-%COMP%]   .form-check[_ngcontent-%COMP%]   .form-check-label[_ngcontent-%COMP%]   .fas[_ngcontent-%COMP%]{color:#6c757d}.btn-primary[_ngcontent-%COMP%]{background-color:#2eb67d;border-color:#2eb67d}.btn-primary[_ngcontent-%COMP%]:hover{background-color:#248d61;border-color:#248d61}.btn-primary[_ngcontent-%COMP%]:disabled{background-color:#6c757d;border-color:#6c757d}.fresh_lms_primary_btn[_ngcontent-%COMP%]{background-color:#4a154b;border-color:#4a154b;color:#fff;padding:8px 20px;border-radius:6px;font-weight:500}.fresh_lms_primary_btn[_ngcontent-%COMP%]:hover{background-color:#230a23;border-color:#230a23}"]}))}return r(),o})(),S=(()=>{var r;class o{constructor(t){this.httpClient=t,this.MESSAGEING_APP_Access_API=m.R.SERVER_URL+"/public"}saveAndAccessToken(t,n,i,s){let a=(new p.Lr).set("domain",t);this.httpClient.post(this.MESSAGEING_APP_Access_API+"/slack/"+n,i,{headers:a}).subscribe({next:l=>{s(l)},error:l=>{s(l)}})}saveZoomAccessToken(t,n,i,s){let a=(new p.Lr).set("domain",t);this.httpClient.post(this.MESSAGEING_APP_Access_API+"/zoom/"+n,i,{headers:a}).subscribe({next:l=>{s(l)},error:l=>{s(l)}})}static#e=r=()=>(this.\u0275fac=function(n){return new(n||o)(e.KVO(p.Qq))},this.\u0275prov=e.jDH({token:o,factory:o.\u0275fac,providedIn:"root"}))}return r(),o})();const U=["divClick"];function L(r,o){1&r&&(e.j41(0,"div",1),e.nrm(1,"div",2),e.j41(2,"p"),e.EFF(3,"Please wait for a moment...Configuring integration"),e.k0s()())}let T=(()=>{var r;class o{constructor(t,n,i,s,a,l,f){this.activatedRoute=t,this.router=n,this.swalService=i,this.messagingIntegrationService=s,this.cookieService=a,this.request=l,this.platformId=f,this.isPlatformServer=!1,this.isPlatformBrowser=!1,this.loading=!0,this.success=!1,this.error=!1,this.saving=!1,this.saveLoading=!1,this.audienceObj=[],this.isPlatformServer=(0,c.Vy)(this.platformId),this.isPlatformBrowser=(0,c.UE)(this.platformId)}ngOnInit(){var t=this;this.isPlatformBrowser&&this.activatedRoute.queryParams.subscribe(n=>{if(null!=n.code){t.slackOauthCode=n.code;var i=JSON.parse(t.cookieService.get("_redirect_zoom"));t.domainName=i.domian,t.userId=i.userId,t.messageObj={createdBy:t.userId},t.domainName?t.saveCodeAndGetAccessToken():t.router.navigate(["/integration/error"])}else t.loading=!1,t.router.navigate(["/integration/error"])})}saveCodeAndGetAccessToken(){var t=this;t.messagingIntegrationService.saveZoomAccessToken(t.domainName,t.slackOauthCode,t.messageObj,function(n){null==n||0==n.status||n.status>=400?(t.loading=!1,t.router.navigate(["/integration/error"])):(t.loading=!1,t.cookieService.delete("_redirect_zoom"),t.router.navigate(["/integration/success"]))})}static#e=r=()=>(this.\u0275fac=function(n){return new(n||o)(e.rXU(h.nX),e.rXU(h.Ix),e.rXU(v.X),e.rXU(S),e.rXU(_.O),e.rXU(b.S,8),e.rXU(e.Agw))},this.\u0275cmp=e.VBU({type:o,selectors:[["app-zoom-integration"]],viewQuery:function(n,i){if
1(1&n&&e.GBs(U,5),2&n){let s;e.mGM(s=e.lsd())&&(i.divClick=s.first)}},decls:1,vars:1,consts:[["class","spinner-wrapper",4,"ngIf"],[1,"spinner-wrapper"],[1,"donut"]],template:function(n,i){1&n&&e.DNE(0,L,4,0,"div",0),2&n&&e.Y8G("ngIf",i.loading)},dependencies:[c.bT],styles:[".spinner-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;height:calc(100vh - 7.5rem);position:fixed;width:calc(100% - 4rem)}@media (max-width: 991px){.spinner-wrapper[_ngcontent-%COMP%]{width:100%}}.spinner-wrapper[_ngcontent-%COMP%]   .donut[_ngcontent-%COMP%]{width:4rem;height:4rem;border-radius:50%;border:.3rem solid rgba(151,159,208,.3);border-top-color:#979fd0;animation:1.5s _ngcontent-%COMP%_spin infinite linear}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}"]}))}return r(),o})();function R(r,o){if(1&r){const g=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"h4",3),e.EFF(3,"Well done!"),e.k0s(),e.j41(4,"p"),e.EFF(5,"Aww yeah, you successfully integrated in your "),e.j41(6,"strong"),e.EFF(7,"FreshLearn"),e.k0s(),e.EFF(8," account."),e.k0s(),e.nrm(9,"hr"),e.j41(10,"div",4)(11,"button",5),e.bIt("click",function(){e.eBV(g);const n=e.XpG();return e.Njj(n.openAdminPortal())}),e.EFF(12,"Go to FreshLearn Admin Account "),e.k0s()()()()}}function G(r,o){if(1&r){const g=e.RV6();e.j41(0,"div",1)(1,"div",6),e.nrm(2,"img",7),e.k0s(),e.j41(3,"div",8)(4,"h4",9),e.EFF(5,"Well done, Connection Successful!"),e.k0s(),e.j41(6,"p",10),e.EFF(7,"You have successfully connected Slack to your "),e.j41(8,"strong",11),e.EFF(9,"FreshLearn"),e.k0s(),e.EFF(10," account."),e.k0s(),e.j41(11,"p",10),e.EFF(12,"From now on, FreshLearn will send notifications and updates to your selected Slack channels, keeping your team informed in real-time."),e.k0s()(),e.j41(13,"div",12)(14,"div",13)(15,"div",14)(16,"span",15),e.EFF(17,"\u24d8"),e.k0s(),e.j41(18,"span",16),e.EFF(19,"Important: Setting up Private Channels"),e.k0s()(),e.j41(20,"p",17),e.EFF(21," FreshLearn can only send messages to "),e.j41(22,"strong",18),e.EFF(23,"public channels"),e.k0s(),e.EFF(24," by default. If you want to receive notifications in a "),e.j41(25,"strong",18),e.EFF(26,"private channel"),e.k0s(),e.EFF(27,", you'll need to manually add the FreshLearn app to that channel. "),e.k0s()(),e.j41(28,"div",19)(29,"p",20),e.EFF(30,"Here's how to do it:"),e.k0s(),e.j41(31,"ol",21)(32,"li",22)(33,"span",23),e.EFF(34,"Open Slack and go to the "),e.j41(35,"strong",24),e.EFF(36,"private channel"),e.k0s(),e.EFF(37," where you want to receive FreshLearn notifications"),e.k0s()(),e.j41(38,"li",22)(39,"span",23),e.EFF(40,"Click on the "),e.j41(41,"strong",24),e.EFF(42,"channel name"),e.k0s(),e.EFF(43," at the top to open channel details"),e.k0s()(),e.j41(44,"li",22)(45,"span",23),e.EFF(46,"Select the "),e.j41(47,"strong",24),e.EFF(48,"Integrations"),e.k0s(),e.EFF(49," tab"),e.k0s(),e.j41(50,"p",25),e.EFF(51,"You'll see options to manage apps and integrations for this channel"),e.k0s()(),e.j41(52,"li",22)(53,"span",23),e.EFF(54,"Click "),e.j41(55,"strong",24),e.EFF(56,"Add apps"),e.k0s(),e.EFF(57," or "),e.j41(58,"strong",24),e.EFF(59,"Add an integration"),e.k0s()()(),e.j41(60,"li",22)(61,"span",23),e.EFF(62,"Search for and select "),e.j41(63,"strong",24),e.EFF(64,"FreshLearn"),e.k0s()()(),e.j41(65,"li",22)(66,"span",23),e.EFF(67,"Click "),e.j41(68,"strong",24),e.EFF(69,"Add"),e.k0s(),e.EFF(70," to integrate FreshLearn with your private channel"),e.k0s(),e.j41(71,"p",25),e.EFF(72,"Once added, FreshLearn will be able to send notifications to that private channel"),e.k0s()()()()(),e.j41(73,"div",26)(74,"button",27),e.bIt("click",function(){e.eBV(g);const n=e.XpG();return e.Njj(n.openAdminPortal())}),e.EFF(75," Go to FreshLearn Admin Account "),e.qSk(),e.j41(76,"svg",28),e.nrm(77,"path",29),e.k0s()()()()}}let B=(()=>{var r;class o{constructor(){this.showGenericSuccess=!0,this.isSlackIntegration=!1}ngOnInit(){sessionStorage.getItem("slack_integration_data")&&(this.isSlackIntegration=!0,this.showGenericSuccess=!1,sessionStorage.removeItem("slack_integration_data"))}openAdminPortal(){window.location.href=`https://app.${m.R.DOMAIN_URL}/#/dashboard/settings`}static#e=r=()=>(this.\u0275fac=function(n){return new(n||o)},this.\u0275cmp=e.VBU({type:o,selectors:[["app-success-integration"]],decls:2,vars:2,consts:[["class","col-md-6 m-auto pt-5",4,"ngIf"],[1,"col-md-6","m-auto","pt-5"],["role","alert",1,"alert","alert-success"],[1,"alert-heading"],[1,"d-flex","justify-content-end","freshlms__border__bottom_4"],["type","button",1,"fresh_lms_primary_btn",3,"click"],[1,"d-flex","justify-content-center","py-3"],["src","https://web-cdn.freshlearn.com/admin/slack-fl.svg",1,"",2,"height","28px !important"],[1,"slack-success-container"],[1,"slack-success-heading"],[1,"slack-success-text"],[1,"freshlearn-bold"],[1,"private-channels-outer-container"],[1,"private-channels-inner-container"],[1,"private-channels-heading-wrapper"],[1,"private-channels-icon"],[1,"private-channels-heading-text"],[1,"private-channels-description"],[1,"private-channels-bold-text"],[1,"instructions-container"],[1,"instructions-heading"],[1,"instructions-list"],[1,"instructions-list-item"],[1,"instructions-text"],[1,"instructions-bold"],[1,"instructions-subtext"],[1,"button-container"],["type","button",1,"go-to-admin-button",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","6","height","11","viewBox","0 0 6 11","fill","none",1,"button-arrow-icon"],["d","M0.666626 0.666748L5.33329 5.33341L0.666626 10.0001","stroke","white","stroke-width","1.33333","stroke-linecap","round","stroke-linejoin","round"]],template:function(n,i){1&n&&e.DNE(0,R,13,0,"div",0)(1,G,78,0,"div",0),2&n&&(e.Y8G("ngIf",i.showGenericSuccess),e.R7$(),e.Y8G("ngIf",!i.showGenericSuccess&&i.isSlackIntegration))},dependencies:[c.bT],styles:['@charset "UTF-8";.spinner-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:30vh}.spinner-wrapper[_ngcontent-%COMP%]   .donut[_ngcontent-%COMP%]{width:40px;height:40px;border:4px solid #f3f3f3;border-top:4px solid #4A154B;border-radius:50%;animation:_ngcontent-%COMP%_spin 1s linear infinite}.spinner-wrapper[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-top:1rem;color:#4a154b;font-weight:500}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.card[_ngcontent-%COMP%]{border:none;box-shadow:0 4px 12px #0000001a;border-radius:12px}.card[_ngcontent-%COMP%]   .card-title[_ngcontent-%COMP%]{color:#4a154b;font-weight:600}.channels-list[_ngcontent-%COMP%]{max-height:400px;overflow-y:auto}.channels-list[_ngcontent-%COMP%]   .channel-item[_ngcontent-%COMP%]{padding:12px 16px;border:1px solid #e9ecef;border-radius:8px;background-color:#f8f9fa;transition:all .2s ease}.channels-list[_ngcontent-%COMP%]   .channel-item[_ngcontent-%COMP%]:hover{background-color:#e9ecef;border-color:#36c5f0}.channels-list[_ngcontent-%COMP%]   .channel-item[_ngcontent-%COMP%]   .form-check[_ngcontent-%COMP%]{margin:0}.channels-list[_ngcontent-%COMP%]   .channel-item[_ngcontent-%COMP%]   .form-check[_ngcontent-%COMP%]   .form-check-input[_ngcontent-%COMP%]:checked{background-color:#2eb67d;border-color:#2eb67d}.channels-list[_ngcontent-%COMP%]   .channel-item[_ngcontent-%COMP%]   .form-check[_ngcontent-%COMP%]   .form-check-input[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 .2rem #2eb67d40}.channels-list[_ngcontent-%COMP%]   .channel-item[_ngcontent-%COMP%]   .form-check[_ngcontent-%COMP%]   .form-check-label[_ngcontent-%COMP%]{font-weight:500;color:#495057;cursor:pointer}.channels-list[_ngcontent-%COMP%]   .channel-item[_ngcontent-%COMP%]   .form-check[_ngcontent-%COMP%]   .form-check-label[_ngcontent-%COMP%]   .fas[_ngcontent-%COMP%]{color:#6c757d}.btn-primary[_ngcontent-%COMP%]{background-color:#2eb67d;border-color:#2eb67d}.btn-primary[_ngcontent-%COMP%]:hover{background-color:#248d61;border-color:#248d61}.btn-primary[_ngcontent-%COMP%]:disabled{background-color:#6c757d;border-color:#6c757d}.fresh_lms_primary_btn[_ngcontent-%COMP%]{background-color:#4a154b;border-color:#4a154b;color:#fff;padding:8px 20px;border-radius:6px;font-weight:500;border:none}.fresh_lms_primary_btn[_ngcontent-%COMP%]:hover{background-color:#230a23;border-color:#230a23}.alert-success[_ngcontent-%COMP%]{background-color:#2eb67d1a;border-color:#2eb67d;color:#196545}.alert-success[_ngcontent-%COMP%]   .fas[_ngcontent-%COMP%]{color:#2eb67d}.btn-lg[_ngcontent-%COMP%]{padding:12px 30px;font-size:1.1rem;font-weight:600}.btn-lg[_ngcontent-%COMP%]   .fas[_ngcontent-%COMP%]{font-size:1rem}.spinner-border-sm[_ngcontent-%COMP%]{width:1rem;height:1rem}.btn-outline-primary[_ngcontent-%COMP%]{border-color:#4a154b;color:#4a154b;font-weight:500}.btn-outline-primary[_ngcontent-%COMP%]:hover{background-color:#4a154b;border-color:#4a154b;color:#fff}.btn-outline-primary[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 .2rem #4a154b40}.btn-outline-primary[_ngcontent-%COMP%]   .fas[_ngcontent-%COMP%]{font-size:.8rem}.btn-sm[_ngcontent-%COMP%]{padding:6px 12px;font-size:.875rem}.slack-success-container[_ngcontent-%COMP%]{border-radius:12px;border:.8px solid #B9F8CF;background:#f0fdf480;display:flex;padding:24px;flex-direction:column;align-items:flex-start;gap:10px;align-self:stretch}.slack-success-container[_ngcontent-%COMP%]   .slack-success-heading[_ngcontent-%COMP%]{color:#0d542b;font-family:Inter,sans-serif;font-size:20px;font-style:normal;font-weight:700;line-height:16px;margin:0;display:flex;align-items:center;gap:8px}.slack-success-container[_ngcontent-%COMP%]   .slack-success-heading[_ngcontent-%COMP%]:before{content:"\\2713";display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;background-color:#2eb67d;color:#fff;border-radius:50%;font-size:14px;font-weight:700}.slack-success-container[_ngcontent-%COMP%]   .slack-success-text[_ngcontent-%COMP%]{color:#016630;font-family:Inter,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:24px;margin:0}.slack-success-container[_ngcontent-%COMP%]   .slack-success-text[_ngcontent-%COMP%]   .freshlearn-bold[_ngcontent-%COMP%]{color:#016630;font-family:Inter,sans-serif;font-size:16px;font-style:normal;font-weight:700;line-height:24px}.slack-success-container[_ngcontent-%COMP%]   .slack-note-section[_ngcontent-%COMP%]{margin:0;width:100%}.slack-success-container[_ngcontent-%COMP%]   .slack-button-container[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:flex-end;margin-top:0}.private-channels-outer-container[_ngcontent-%COMP%]{display:flex;padding:24px;flex-direction:column;align-items:flex-start;gap:16px;align-self:stretch;border-radius:12px;border:.8px solid rgba(0,0,0,.1);background:#fff}.private-channels-outer-container[_ngcontent-%COMP%]   .private-channels-inner-container[_ngcontent-%COMP%]{display:flex;padding:16px;flex-direction:column;align-items:flex-start;gap:8px;align-self:stretch;border-radius:8px;background:#fff8e6}.private-channels-outer-container[_ngcontent-%COMP%]   .private-channels-inner-container[_ngcontent-%COMP%]   .private-channels-heading-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.private-channels-outer-container[_ngcontent-%COMP%]   .private-channels-inner-container[_ngcontent-%COMP%]   .private-channels-heading-wrapper[_ngcontent-%COMP%]   .private-channels-icon[_ngcontent-%COMP%]{color:#856404;font-size:16px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border:1px solid #856404;border-radius:50%;font-style:normal}.private-channels-outer-container[_ngcontent-%COMP%]   .private-channels-inner-container[_ngcontent-%COMP%]   .private-channels-heading-wrapper[_ngcontent-%COMP%]   .private-channels-heading-text[_ngcontent-%COMP%]{color:#d09500;font-family:Inter,sans-serif;font-size:20px;font-style:normal;font-weight:700;line-height:16px}.private-channels-outer-container[_ngcontent-%COMP%]   .private-channels-inner-container[_ngcontent-%COMP%]   .private-channels-description[_ngcontent-%COMP%]{color:#856404;font-family:Inter,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:24px;margin:0}.private-channels-outer-container[_ngcontent-%COMP%]   .private-channels-inner-container[_ngcontent-%COMP%]   .private-channels-description[_ngcontent-%COMP%]   .private-channels-bold-text[_ngcontent-%COMP%]{color:#856404;font-family:Inter,sans-serif;font-size:14px;font-style:normal;font-weight:600;line-height:24px}.instructions-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:24px;align-self:stretch}.instructions-container[_ngcontent-%COMP%]   .instructions-heading[_ngcontent-%COMP%]{color:#45556c;font-family:Inter,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:normal;margin:0}.instructions-container[_ngcontent-%COMP%]   .instructions-list[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0;counter-reset:step-counter;display:flex;flex-direction:column;gap:24px;width:100%}.instructions-container[_ngcontent-%COMP%]   .instructions-list[_ngcontent-%COMP%]   .instructions-list-item[_ngcontent-%COMP%]{counter-increment:step-counter;display:flex;flex-direction:column;align-items:flex-start;position:relative;padding-left:36px}.instructions-container[_ngcontent-%COMP%]   .instructions-list[_ngcontent-%COMP%]   .instructions-list-item[_ngcontent-%COMP%]:before{content:counter(step-counter);display:flex;width:24px;height:24px;justify-content:center;align-items:center;border-radius:26843500px;background:#dbeafe;color:#1447e6;font-family:Inter,sans-serif;font-size:14px;font-style:normal;font-weight:500;line-height:20px;flex-shrink:0;position:absolute;
1left:0;top:0}.instructions-container[_ngcontent-%COMP%]   .instructions-list[_ngcontent-%COMP%]   .instructions-list-item[_ngcontent-%COMP%]   .instructions-text[_ngcontent-%COMP%]{color:#314158;font-family:Inter,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:normal}.instructions-container[_ngcontent-%COMP%]   .instructions-list[_ngcontent-%COMP%]   .instructions-list-item[_ngcontent-%COMP%]   .instructions-text[_ngcontent-%COMP%]   .instructions-bold[_ngcontent-%COMP%]{color:#314158;font-family:Inter,sans-serif;font-size:14px;font-style:normal;font-weight:700;line-height:normal}.instructions-container[_ngcontent-%COMP%]   .instructions-list[_ngcontent-%COMP%]   .instructions-list-item[_ngcontent-%COMP%]   .instructions-subtext[_ngcontent-%COMP%]{display:flex;padding:4px 8px;align-items:center;gap:10px;border-radius:8px;background:#f1f7ff;color:#314158;font-family:Inter,sans-serif;font-size:12px;font-style:normal;font-weight:500;line-height:24px;margin:8px 0 0}.button-container[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%;margin-top:24px}.go-to-admin-button[_ngcontent-%COMP%]{display:flex;padding:10px 20px;justify-content:center;align-items:center;gap:8px;border-radius:8px;background:#0d6efd;color:#fff;font-family:Inter,sans-serif;font-size:14px;font-style:normal;font-weight:600;line-height:normal;border:none;cursor:pointer}.go-to-admin-button[_ngcontent-%COMP%]:hover{background:#0b5ed7}.go-to-admin-button[_ngcontent-%COMP%]   .button-arrow-icon[_ngcontent-%COMP%]{width:6px;height:11px;flex-shrink:0;display:inline-block}']}))}return r(),o})(),N=(()=>{var r;class o{constructor(){}ngOnInit(){}openAdminPortal(){window.location.href=`https://app.${m.R.DOMAIN_URL}/#/dashboard/settings`}static#e=r=()=>(this.\u0275fac=function(n){return new(n||o)},this.\u0275cmp=e.VBU({type:o,selectors:[["app-error-integration"]],decls:13,vars:0,consts:[[1,"col-md-6","m-auto","pt-5"],["role","alert",1,"alert","alert-danger"],[1,"alert-heading"],[1,"d-flex","justify-content-end","freshlms__border__bottom_4"],["type","button",1,"fresh_lms_primary_btn",3,"click"]],template:function(n,i){1&n&&(e.j41(0,"div",0)(1,"div",1)(2,"h4",2),e.EFF(3,"Oops!"),e.k0s(),e.j41(4,"p"),e.EFF(5,"Something is wrong with integration in your "),e.j41(6,"strong"),e.EFF(7,"FreshLearn"),e.k0s(),e.EFF(8," account."),e.k0s(),e.nrm(9,"hr"),e.j41(10,"div",3)(11,"button",4),e.bIt("click",function(){return i.openAdminPortal()}),e.EFF(12,"Go to FreshLearn Admin Account "),e.k0s()()()())}}))}return r(),o})(),X=(()=>{var r;class o{constructor(t){this.httpClient=t,this.HUBSPOT_ACCESS_API=m.R.SERVER_URL+"/public"}saveAndAccessToken(t,n,i){let s=(new p.Lr).set("domain",t);this.httpClient.post(this.HUBSPOT_ACCESS_API+"/hubspot/"+n,{},{headers:s}).subscribe({next:a=>{i(a)},error:a=>{i(a)}})}static#e=r=()=>(this.\u0275fac=function(n){return new(n||o)(e.KVO(p.Qq))},this.\u0275prov=e.jDH({token:o,factory:o.\u0275fac,providedIn:"root"}))}return r(),o})();function V(r,o){1&r&&(e.j41(0,"div",2),e.nrm(1,"div",3),e.j41(2,"p"),e.EFF(3,"Please wait for a moment...Configuring Hubspot"),e.k0s()())}function z(r,o){if(1&r){const g=e.RV6();e.j41(0,"div",4)(1,"div",5),e.nrm(2,"img",6),e.k0s(),e.j41(3,"div",7)(4,"h4",8),e.EFF(5,"Well done!"),e.k0s(),e.j41(6,"p"),e.EFF(7,"You have successfully connected HubSpot to your "),e.j41(8,"strong"),e.EFF(9,"FreshLearn"),e.k0s(),e.EFF(10," account."),e.k0s(),e.j41(11,"p"),e.EFF(12,"From now on, your members, course registrations, and their completion percentages will automatically sync with your HubSpot account.."),e.k0s(),e.nrm(13,"hr"),e.j41(14,"div",9)(15,"button",10),e.bIt("click",function(){e.eBV(g);const n=e.XpG();return e.Njj(n.openAdminPortal())}),e.EFF(16,"Go to FreshLearn Admin Account "),e.k0s()()()()}}function H(r,o){if(1&r){const g=e.RV6();e.j41(0,"div",4)(1,"div",5),e.nrm(2,"img",11),e.k0s(),e.j41(3,"div",12)(4,"h4",8),e.EFF(5,"Oops!"),e.k0s(),e.j41(6,"p"),e.EFF(7,"There seems to be an issue with the HubSpot integration in your "),e.j41(8,"strong"),e.EFF(9,"FreshLearn"),e.k0s(),e.EFF(10," account. Please reach out to "),e.j41(11,"a",13),e.EFF(12,"[email protected]"),e.k0s(),e.EFF(13," for further assistance."),e.k0s(),e.nrm(14,"hr"),e.j41(15,"div",9)(16,"button",10),e.bIt("click",function(){e.eBV(g);const n=e.XpG();return e.Njj(n.openAdminPortal())}),e.EFF(17,"Go to FreshLearn Admin Account "),e.k0s()()()()}}const $=[{path:"mailchimp",component:w},{path:"slack",component:A},{path:"zoom",component:T},{path:"success",component:B},{path:"error",component:N},{path:"hubspot",component:(()=>{var r;class o{constructor(t,n,i,s,a,l,f){this.activatedRoute=t,this.router=n,this.swalService=i,this.cookieService=s,this.hubpostAccessService=a,this.request=l,this.platformId=f,this.isPlatformServer=!1,this.isPlatformBrowser=!1,this.loading=!0,this.success=!1,this.error=!1,this.saving=!1,this.saveLoading=!1,this.isPlatformServer=(0,c.Vy)(this.platformId),this.isPlatformBrowser=(0,c.UE)(this.platformId)}ngOnInit(){var t=this;this.isPlatformBrowser&&this.activatedRoute.queryParams.subscribe(n=>{null!=n.code?(t.hubspotCode=n.code,t.domainName=t.cookieService.get("_redirect_hubspot"),t.domainName?t.saveCodeAndGetAccessToken():(t.loading=!1,t.error=!0)):(t.loading=!1,t.error=!0)})}saveCodeAndGetAccessToken(){var t=this;t.hubpostAccessService.saveAndAccessToken(t.domainName,t.hubspotCode,function(n){null==n||0==n.status||n.status>=400?(t.loading=!1,t.error=!0,t.success=!1):(t.success=!0,t.error=!1,t.loading=!1)})}openAdminPortal(){window.location.href=`https://app.${m.R.DOMAIN_URL}/#/dashboard/settings`}static#e=r=()=>(this.\u0275fac=function(n){return new(n||o)(e.rXU(h.nX),e.rXU(h.Ix),e.rXU(v.X),e.rXU(_.O),e.rXU(X),e.rXU(b.S,8),e.rXU(e.Agw))},this.\u0275cmp=e.VBU({type:o,selectors:[["app-hubspot"]],decls:3,vars:3,consts:[["class","spinner-wrapper",4,"ngIf"],["class","col-md-6 m-auto pt-5",4,"ngIf"],[1,"spinner-wrapper"],[1,"donut"],[1,"col-md-6","m-auto","pt-5"],[1,"d-flex","justify-content-center","py-3"],["src","https://web-cdn.freshlearn.com/admin/hbs_succes_image.svg",1,"",2,"height","28px !important"],["role","alert",1,"alert","alert-success"],[1,"alert-heading"],[1,"d-flex","justify-content-end","freshlms__border__bottom_4"],["type","button",1,"fresh_lms_primary_btn",3,"click"],["src","https://web-cdn.freshlearn.com/admin/hbs_error_image.svg",1,"",2,"height","28px !important"],["role","alert",1,"alert","alert-danger"],["href","mailto:[email protected]"]],template:function(n,i){1&n&&e.DNE(0,V,4,0,"div",0)(1,z,17,0,"div",1)(2,H,18,0,"div",1),2&n&&(e.Y8G("ngIf",i.loading),e.R7$(),e.Y8G("ngIf",!i.loading&&i.success),e.R7$(),e.Y8G("ngIf",!i.loading&&i.error))},dependencies:[c.bT],styles:[".spinner-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;height:calc(100vh - 7.5rem);position:fixed;width:calc(100% - 4rem)}@media (max-width: 991px){.spinner-wrapper[_ngcontent-%COMP%]{width:100%}}.spinner-wrapper[_ngcontent-%COMP%]   .donut[_ngcontent-%COMP%]{width:4rem;height:4rem;border-radius:50%;border:.3rem solid rgba(151,159,208,.3);border-top-color:#979fd0;animation:1.5s spin infinite linear}"]}))}return r(),o})()}];let Y=(()=>{var r;class o{static#e=r=()=>(this.\u0275fac=function(n){return new(n||o)},this.\u0275mod=e.$C({type:o}),this.\u0275inj=e.G2t({imports:[h.iI.forChild($),h.iI]}))}return r(),o})(),K=(()=>{var r;class o{static#e=r=()=>(this.\u0275fac=function(n){return new(n||o)},this.\u0275mod=e.$C({type:o}),this.\u0275inj=e.G2t({imports:[c.MD,u.YN,Y]}))}return r(),o})()}}]);

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.