1"use strict";(self.webpackChunkgw_core_sites_app=self.webpackChunkgw_core_sites_app||[]).push([["default-src_app_ft-components_marketing_marketo-form_marketo-form_module_ts"],{60782:(v,_,o)=>{o.d(_,{G:()=>w});var m=o(54364),b=o(31023),h=o(82224),p=o(68411),c=o(79441),f=o(92941),d=o(22663),s=o(9170),u=o(18293),e=o(2316),i=o(3138),g=o(16320),F=o(17298),T=o(53882);let M=(()=>{class n{constructor(t){this.http=t}getEmailPreferences$(t){const k=`/api/marketolead?fields=${["subInternalAdvisorConsultantUpdates","subSeniorAdvisorConsultantUpdates","subEvents","subWeeklyMarketUpdates","subMonthlyInvestmentSummary","subAdministrativeNotices","subAllocationViews","subEquities","subCapitalMarketsDesk","subFixedIncome","subGIOandCIOViews","subGlobalMacroViews","subHedgeFundStrategyOutlook","subYieldUpdates","subModelPortfolioAllocationChanges","subAnatomyofaRecession","subFranklinIncomeInvestors","subClearBridge","subClarionPartners","subBrandywine","subFTInvestmentInstitute","subRoyce","subRetirement","subWesternAsset","subAlternatives","subBenefitStreetPartners","subLexingtonPartners","subDigitalAssets","subPutnam","subRIAAction","subCanvas","subCryptoMonitor","subBreakingViews"].join(",")}&filterValues=${t}`;return this.http.get(k)}}return n.\u0275fac=function(t){return new(t||n)(e.LFG(T.eN))},n.\u0275prov=e.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var S=o(35602),P=o(19206);function A(n,a){if(1&n&&(e.TgZ(0,"div"),e._UZ(1,"p",9),e.ALo(2,"safeHtml"),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("innerHtml",e.lcZ(2,1,t.summary),e.oJD)}}function B(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"eds-marketo-form",10),e.NdJ("formSubmit",function(){return e.CHM(t),e.oxw(3).formAnalytics()})("formClick",function(){return e.CHM(t),e.oxw(3).formClickAnalytics()}),e.qZA()}if(2&n){const t=e.oxw(3);e.Q6J("marketoFormConfig",t.formConfig)("edsSpacing",t.disclaimer&&""!==t.disclaimer?"lg":"")("marketoPreferencesResult",t.userSubscriptionData)("retainFormAfterSubmission",t.retainFormAfterSubmission)("mktoFormId",t.id)("successTitle",t.successTitle)("successMsg",t.successMsg)("hasUnsubscribeButton",t.hasUnsubscribeButton)("unsubscribeButtonText",t.unsubscribeButtonText)("mktoPrefillData",t.prefillData)("componentId",t.componentId)("brDisclaimer",t.disclaimer)("showButtonUnderneath",t.showButtonUnderneath)}}function I(n,a){if(1&n&&(e.ynx(0),e.TgZ(1,"div",4),e.TgZ(2,"div",5),e.TgZ(3,"eds-cta",6),e._UZ(4,"eds-title",7),e.YNc(5,A,3,3,"div",3),e.YNc(6,B,1,13,"eds-marketo-form",8),e.qZA(),e.qZA(),e.qZA(),e.BQk()),2&n){const t=e.oxw(2);e.xp6(3),e.Q6J("theme",t.backgroundTheme)("edsSpacing",t.marginBottom&&"none"!==t.marginBottom?t.marginBottom:"xl")("isAlignContentCenter",!0)("removeFlexBox",!0)("isMarketoForm",!0),e.xp6(1),e.Q6J("title",t.title)("theme",t.titleColor),e.xp6(1),e.Q6J("ngIf",t.summary),e.xp6(1),e.Q6J("ngIf",t.preferencesLoaded)}}function D(n,a){if(1&n&&(e.ynx(0),e._UZ(1,"div",9),e.ALo(2,"safeHtml"),e.BQk()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("innerHtml",e.lcZ(2,1,t.marketoFormPrivacy),e.oJD)}}function y(n,a){if(1&n&&(e.ynx(0),e.TgZ(1,"div",2),e.TgZ(2,"div"),e.YNc(3,I,7,9,"ng-container",3),e.YNc(4,D,3,3,"ng-container",3),e.qZA(),e.qZA(),e.BQk()),2&n){const t=e.oxw();e.xp6(2),e.Tol(t.containerClass),e.xp6(1),e.Q6J("ngIf",t.canShowForm),e.xp6(1),e.Q6J("ngIf",!t.canShowForm)}}function U(n,a){if(1&n&&(e.TgZ(0,"div"),e._UZ(1,"p",9),e.ALo(2,"safeHtml"),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("innerHtml",e.lcZ(2,1,t.summary),e.oJD)}}function O(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"eds-marketo-form",14),e.NdJ("formSubmit",function(){return e.CHM(t),e.oxw(3).formAnalytics()}),e.qZA()}if(2&n){const t=e.oxw(3);e.Q6J("marketoFormConfig",t.formConfig)("edsSpacing",t.disclaimer&&""!==t.disclaimer?"lg":"")("marketoPreferencesResult",t.userSubscriptionData)("retainFormAfterSubmission",t.retainFormAfterSubmission)("mktoFormId",t.id)("successTitle",t.successTitle)("successMsg",t.successMsg)("hasUnsubscribeButton",t.hasUnsubscribeButton)("unsubscribeButtonText",t.unsubscribeButtonText)("mktoPrefillData",t.prefillData)("brDisclaimer",t.disclaimer)("componentId",t.componentId)("showButtonUnderneath",t.showButtonUnderneath)}}function E(n,a){if(1&n&&(e.ynx(0),e.TgZ(1,"eds-cta",12),e._UZ(2,"eds-title",7),e.YNc(3,U,3,3,"div",3),e.YNc(4,O,1,13,"eds-marketo-form",13),e.qZA(),e.BQk()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("isAlignContentCenter",!0)("isMarketoForm",!0)("edsSpacing",t.marginBottom&&"none"!==t.marginBottom?t.marginBottom:"xl"),e.xp6(1),e.Q6J("title",t.title)("theme",t.titleColor),e.xp6(1),e.Q6J("ngIf",t.summary),e.xp6(1),e.Q6J("ngIf",t.preferencesLoaded)}}function R(n,a){if(1&n&&(e.ynx(0),e._UZ(1,"div",9),e.ALo(2,"safeHtml"),e.BQk()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("innerHtml",e.lcZ(2,1,t.marketoFormPrivacy),e.oJD)}}function L(n,a){if(1&n&&(e.YNc(0,E,5,7,"ng-container",3),e.TgZ(1,"div",11),e.YNc(2,R,3,3,"ng-container",3),e.qZA()),2&n){const t=e.oxw();e.Q6J("ngIf",t.canShowForm),e.xp6(2),e.Q6J("ngIf",!t.canShowForm)}}const C=p.Y.getLogger("MarketoFormComponent");let w=(()=>{class n{constructor(t,r,l,k,x,Z,J,Q,Y){this.analytics=t,this.router=r,this.profileService=l,this.userPreferencesService=k,this.oneTrustService=x,this.changeDetectorRef=Z,this.cookieService=J,this.locationRef=Q,this.documentRef=Y,this.formConfig={marketoJSSrc:"/assets/js/marketo/forms2.min.js",marketoUrl:"//pages.to.franklintempleton.com",munchkinId:"848-IAP-939"},this.showButtonUnderneath=!1,this.unsubscribe$=new c.xQ,this.canShowForm=!0,this.marketoFormPrivacy="",this.firstClick=!0}ngOnInit(){C.debug("Marketo Form ngOnInit"),this.component&&this.loadValues(),this.oneTrustService.getOneTrustGroups$().pipe((0,d.R)(this.unsubscribe$)).subscribe(t=>{C.debug(t),this.setMarketoCookie(t)}),this.profileService.getUserProfile$()?.pipe((0,d.R)(this.unsubscribe$),(0,s.h)(t=>t.isLoggedIn?(this.prefillData=t?.profileInfo,!!t?.profileInfo?.email):(this.preferencesLoaded=!0,!1))).subscribe(t=>{this.userPreferencesService.getEmailPreferences$(t?.profileInfo?.email).pipe((0,d.R)(this.unsubscribe$),(0,u.K)(r=>(this.preferencesLoaded=!0,this.changeDetectorRef.detectChanges(),[]))).subscribe(r=>{if(r?.result?.length>0){const l=r.result.sort((k,x)=>x.id-k.id);this.userSubscriptionData=r,this.userSubscriptionData.result[0]=l[0]}},f.Z,()=>{this.preferencesLoaded=!0,this.changeDetectorRef.detectChanges()})})}setMarketoCookie(t){if(t.includes(h.w.Functional)||(this.documentRef.cookie="mkto_opt_out=id:true; path=/"),t.includes(h.w.Functional)){let r=this.documentRef.domain;for(this.documentRef.cookie="mkto_opt_out=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";this.documentRef.cookie.includes("mkto_opt_out")&&r.replace(/^\./,"").split(".").length>=2;)this.documentRef.cookie="mkto_opt_out=; expires=Thu, 01 Jan 1970 00:00:00 UTC; domain = "+r+"; path=/;",r=this.shiftDomainSegment(r)}}shiftDomainSegment(t){return"."+t.replace(/^\./,"").split(".").slice(1).join(".")}ngAfterViewInit(){this.trackFormViewAnalytics()}ngOnChanges(){}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}
1setBackgroundThemeOfForm(){this.backgroundTheme="gradient"===this.background?"gradient":this.background&&"primary"!==this.background?"primary":"secondary-a"}loadValues(){this.containerClass=this.component?.getParameters()?.containerClass,this.disclaimer=this.component?.getParameters()?.disclaimer,this.componentId=this.component?.getParameters()?.componentId,this.showButtonUnderneath=this.component?.getParameters()?.unsubscribeAllAfterDisclaimer,"default"===this.background&&(this.titleColor=this.component?.getParameters()?.titleColor),this.setBackgroundThemeOfForm()}trackFormViewAnalytics(){this.analytics.trackEvent({event:"form_view",detailed_event:"Form Viewed",event_data:{form_id:this.id,form_name:`mktoForm_${this.id}`,form_type:"Lead"}})}get id(){return this.externalId?this.externalId:this.component?.getParameters()?.id}get successTitle(){if(!this.externalSuccessTitle)return this.component?.getParameters()?.successTitle}get successMsg(){return this.externalSuccessMessage?this.externalSuccessMessage:this.component?.getParameters()?.successMsg}get marginBottom(){return this.externalMarginBottom?this.externalMarginBottom:this.component?.getParameters()?.marginBottom}get hasUnsubscribeButton(){return this.component?.getParameters()?.hasUnsubscribeButton}get unsubscribeButtonText(){return this.component?.getParameters()?.unsubscribeButtonText}get successUrl(){return this.component?.getParameters()?.successUrl}get title(){return this.component?.getParameters()?.title}get summary(){return this.component?.getParameters()?.summary}get background(){return this.component?.getParameters()?.background}get retainFormAfterSubmission(){return!!this.component?.getParameters()?.retainFormAfterSubmission&&this.component?.getParameters()?.retainFormAfterSubmission}formAnalytics(){this.analytics.trackEvent({event:"leadformSubmit",LeadFormAction:`mktoForm_${this.id}`,LeadFormCategory:"Lead",LeadFormCheckbox:"",LeadFormLabel:"Submit",LeadFormURL:this.router.url,LeadFormID:this.id}),this.analytics.trackEvent({event:"form_complete",detailed_event:"Form Complete",event_data:{form_id:this.id,form_name:`mktoForm_${this.id}`,form_type:"Lead"}})}formClickAnalytics(){this.firstClick&&(this.firstClick=!1,this.analytics.trackEvent({event:"form_start",detailed_event:"Form Started",event_data:{form_id:this.id,form_name:`mktoForm_${this.id}`,form_type:"Lead"}}))}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(i.yDm),e.Y36(g.F0),e.Y36(F.H),e.Y36(M),e.Y36(h.U),e.Y36(e.sBO),e.Y36(S.N),e.Y36(b.Ct),e.Y36(m.K0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["ft-marketo-form"]],inputs:{component:"component",page:"page",externalId:"externalId",externalSuccessTitle:"externalSuccessTitle",externalSuccessMessage:"externalSuccessMessage",externalMarginBottom:"externalMarginBottom"},features:[e.TTD],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["fullWidthBlock",""],["edsGrid",""],[4,"ngIf"],["edsRow",""],["edsCol",""],[3,"theme","edsSpacing","isAlignContentCenter","removeFlexBox","isMarketoForm"],[3,"title","theme"],[3,"marketoFormConfig","edsSpacing","marketoPreferencesResult","retainFormAfterSubmission","mktoFormId","successTitle","successMsg","hasUnsubscribeButton","unsubscribeButtonText","mktoPrefillData","componentId","brDisclaimer","showButtonUnderneath","formSubmit","formClick",4,"ngIf"],[3,"innerHtml"],[3,"marketoFormConfig","edsSpacing","marketoPreferencesResult","retainFormAfterSubmission","mktoFormId","successTitle","successMsg","hasUnsubscribeButton","unsubscribeButtonText","mktoPrefillData","componentId","brDisclaimer","showButtonUnderneath","formSubmit","formClick"],[1,"container"],[3,"isAlignContentCenter","isMarketoForm","edsSpacing"],[3,"marketoFormConfig","edsSpacing","marketoPreferencesResult","retainFormAfterSubmission","mktoFormId","successTitle","successMsg","hasUnsubscribeButton","unsubscribeButtonText","mktoPrefillData","brDisclaimer","componentId","showButtonUnderneath","formSubmit",4,"ngIf"],[3,"marketoFormConfig","edsSpacing","marketoPreferencesResult","retainFormAfterSubmission","mktoFormId","successTitle","successMsg","hasUnsubscribeButton","unsubscribeButtonText","mktoPrefillData","brDisclaimer","componentId","showButtonUnderneath","formSubmit"]],template:function(t,r){if(1&t&&(e.YNc(0,y,5,4,"ng-container",0),e.YNc(1,L,3,2,"ng-template",null,1,e.W1O)),2&t){const l=e.MAs(2);e.Q6J("ngIf","container"===r.containerClass||"container--wide"===r.containerClass)("ngIfElse",l)}},directives:[m.O5,i.ljP,i.vZ,i.iKq,i.C94,i.OPD,i.r3N,i.GOG],pipes:[P.z],styles:[""]}),n})()},13309:(v,_,o)=>{o.r(_),o.d(_,{MarketoFormModule:()=>s});var m=o(3138),b=o(71556),h=o(54364),p=o(60782),c=o(3830),f=o(36239),d=o(2316);let s=(()=>{class u{getComponentMapping(){return{"Marketo Form":p.G}}}return u.\u0275fac=function(i){return new(i||u)},u.\u0275mod=d.oAB({type:u}),u.\u0275inj=d.cJS({imports:[[b.q8,h.ez,m.ePw,m.zE6,m.idt,m.hJ1,m.cv2,c.a,f.D,m.g8O,m.QGW]]}),u})()},82224:(v,_,o)=>{o.d(_,{w:()=>f,U:()=>d});var m=o(68411),b=o(79441),h=o(31023),p=o(2316);const c=m.Y.getLogger("OneTrustService");var f=(()=>{return(s=f||(f={})).StrictlyNecessary="C0001",s.Performance="C0002",s.Functional="C0003",s.TargetingGroup="BG296",s.Targeting="C0004",s.Social="C0005",f;var s})();let d=(()=>{class s{constructor(e){this.windowRef=e,this.oneTrustGroups$=new b.xQ,this.getOneTrustGroups().then(i=>{i.length>-1&&(c.debug("Setting cookies from global OnetrustActiveGroups:"),c.debug(i),this.oneTrustGroups$.next(i)),this.windowRef.OneTrust&&(c.debug("If OnetrustActiveGroups exist - so will OneTrust"),this.windowRef.OneTrust?.OnConsentChanged(g=>{c.debug("OnConsentChanged has been called"),g.detail?.length>0&&(c.debug("Setting cookies from change event:"),c.debug(g.detail),this.oneTrustGroups$.next(g.detail))}))})}getOneTrustGroups(){return new Promise(e=>{if("undefined"!=typeof OnetrustActiveGroups)e(OnetrustActiveGroups.split(","));else{const i=(g=0)=>{"undefined"!=typeof OnetrustActiveGroups?e(OnetrustActiveGroups.split(",")):g>10?e([]):setTimeout(()=>i(g+1),100)};i()}})}getOneTrustGroups$(){return this.oneTrustGroups$.asObservable()}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(h.m9))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})()}}]); 2//# sourceMappingURL=default-src_app_ft-components_marketing_marketo-form_marketo-form_module_ts.44fea16df9f81aead810.js.map
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.