1"use strict";(self.webpackChunkmetronic=self.webpackChunkmetronic||[]).push([[8570],{58570(Q,V,n){n.d(V,{MediaKitModule:()=>H});var f=n(32881),C=n(79733),i=n(41360),N=n(84412),p=n(96354),m=n(23294),g=n(96697),y=n(67376),b=n(98110),L=n(96003),x=n(75551),c=n(31515);let r={kitLocked:!1,loadingKit:!1,mediaKit:null,loadingSendContact:!1,newMediaKit:null,testTestimonials:{mpId:12,relatedSmtId:0,displayName:"Partnerships Page",enabled:!0,pageItems:[{mpiId:50,pageMpId:13,itemTypeName:"Image",itemTypeId:7,name:"Image 2",value:"https://media-kit.s3.us-east-2.amazonaws.com/35037/35037_1712945708.7127078.png",displayValue:null,enabled:!0,titleValue:null,groupMpgId:0},{mpiId:51,pageMpId:13,itemTypeName:"Image",itemTypeId:7,name:"Image 3",value:"https://media-kit.s3.us-east-2.amazonaws.com/35037/35037_1712945708.7127078.png",displayValue:null,enabled:!0,titleValue:null,groupMpgId:0},{mpiId:52,pageMpId:13,itemTypeName:"Image",itemTypeId:7,name:"Image 4",value:"https://media-kit.s3.us-east-2.amazonaws.com/35037/35037_1712945718.3087.png",displayValue:null,enabled:!0,titleValue:null,groupMpgId:0},{mpiId:62,pageMpId:13,itemTypeName:"Image",itemTypeId:7,name:"Image 5",value:"https://media-kit.s3.us-east-2.amazonaws.com/35037/35037_1712945718.3087.png",displayValue:null,enabled:!0,titleValue:null,groupMpgId:0},{mpiId:49,pageMpId:13,itemTypeName:"Image",itemTypeId:7,name:"Image 1",value:"https://media-kit.s3.us-east-2.amazonaws.com/35037/35037_1712945718.3087.png",displayValue:null,enabled:!0,titleValue:null,groupMpgId:0},{mpiId:64,pageMpId:13,itemTypeName:"Image",itemTypeId:7,name:"Image 7",value:"https://media-kit.s3.us-east-2.amazonaws.com/35037/35037_1712945708.7127078.png",displayValue:null,enabled:!0,titleValue:null,groupMpgId:0},{mpiId:63,pageMpId:13,itemTypeName:"Image",itemTypeId:7,name:"Image 6",value:"https://media-kit.s3.us-east-2.amazonaws.com/35037/35037_1712945708.7127078.png",displayValue:null,enabled:!0,titleValue:null,groupMpgId:0},{mpiId:65,pageMpId:13,itemTypeName:"Image",itemTypeId:7,name:"Image 8",value:"https://media-kit.s3.us-east-2.amazonaws.com/35037/35037_1712945718.3087.png",displayValue:null,enabled:!0,titleValue:null,groupMpgId:0}],pageGroups:[{mpgId:11,pageMpId:13,enabled:!1,smtId:0,pageGroupItems:[{mpiId:53,pageMpId:13,itemTypeName:"Long Text",itemTypeId:2,name:"Testimonial Text",value:"It\u2019s time to share any testimonials you may have! We recommend sharing quotes or any other notes that may be relevant.2",displayValue:null,enabled:!1,titleValue:null,groupMpgId:11},{mpiId:54,pageMpId:13,itemTypeName:"Title",itemTypeId:1,name:"Testimonial Author",value:"SALLY WARNER VP of COMUNICATION AT NORDSTROM",displayValue:null,enabled:!1,titleValue:null,groupMpgId:11}]},{mpgId:12,pageMpId:13,enabled:!1,smtId:0,pageGroupItems:[{mpiId:55,pageMpId:13,itemTypeName:"Long Text",itemTypeId:2,name:"Testimonial Text",value:null,displayValue:null,enabled:!1,titleValue:null,groupMpgId:12},{mpiId:56,pageMpId:13,itemTypeName:"Title",itemTypeId:1,name:"Testimonial Author",value:null,displayValue:null,enabled:!1,titleValue:null,groupMpgId:12}]}]}},w=(()=>{class a{constructor(e,t,s){this.apiService=e,this.layoutUtilsService=t,this.router=s,this.store=new N.t(r),this.state$=this.store.asObservable(),this.vm$=this.state$.pipe((0,p.T)(o=>({...o}))),this.mediaKit$=this.state$.pipe((0,p.T)(u.getMediaKit),(0,m.F)()),this.kitLocked$=this.state$.pipe((0,p.T)(u.getKitLocked),(0,m.F)()),this.loadingKit$=this.state$.pipe((0,p.T)(u.getLoadingKit),(0,m.F)()),this.loadingSendContact$=this.state$.pipe((0,p.T)(u.getLoadingSendContact),(0,m.F)()),this.testTestimonials$=this.state$.pipe((0,p.T)(u.getTestTestimoonials),(0,m.F)())}getStateSnapshot(){return{...(0,y.cloneDeep)(r)}}showSnackbar(e,t){this.layoutUtilsService.showActionNotification(e,t)}loadNewKit(e){this.updateLoadingKit(!0),this.updateKit(null),this.apiService.baseRequest(`/InfluencerMediakit/ReadExternalInfluencerMediakit?displayName=${e}&api-version=2.0`,"get",null,"").pipe((0,g.s)(1)).pipe((0,p.T)((t,s)=>{if(!t.result)return t;const o={Blog:"fa-solid fa-blog",Facebook:"fa-brands fa-square-facebook",Twitter:"fa-brands fa-twitter",Instagram:"fa-brands fa-instagram",YouTube:"fa-brands fa-youtube",TikTok:"fa-brands fa-tiktok",Pinterest:"fa-brands fa-pinterest"},I={},S=["reach","caption","handle"];for(let l=0;l<S.length;l++)I[S[l]]=l;const k=t.data.mediakitPages.findIndex(l=>l.displayName.includes("Statistics"));t.data.mediakitPages[k].pageGroups=t.data.mediakitPages[k].pageGroups.map(l=>(l.pageGroupItems.sort((J,Z)=>I[J.name.split(" ")[1].toLowerCase()]-I[Z.name.split(" ")[1].toLowerCase()]),l));for(let l=0;l<t.data.mediakitSocials.length;l++)t.data.mediakitSocials[l].smtId<10&&(t.data.mediakitSocials[l].icon=o[t.data.mediakitSocials[l].name]);const W={age:{...t.data.audience.age},gender:{...t.data.audience.gender},genderByAge:(0,y.cloneDeep)(t.data.audience.genderByAge),topUSLocs:[...t.data.audience.topUSLocs],topUSStates:this.getMapData([...t.data.audience.topUSStates])};return t.data.audience=W,t})).subscribe(t=>{t.result?(this.updateNewKit(t.data),this.updateLoadingKit(!1)):this.router.navigateByUrl("/not-found")},t=>{this.updateLoadingKit(!1)})}loadKit(e){this.updateLoadingKit(!0),this.updateKit(null),this.apiService.baseRequest
1(`/ExternalMediaKit/read?displayName=${e}&api-version=1.0`,"get",null,"").pipe((0,g.s)(1)).subscribe(t=>{t.id?(this.updateKit(t),this.updateLoadingKit(!1)):this.router.navigateByUrl("/not-found")},t=>{this.updateLoadingKit(!1)})}sendKitContact(e){const{mediaKit:t}=this.getStateSnapshot(),s={kitId:t.id,name:e.name,company:e.company,email:e.email,phone:e.phone,message:e.message};this.updateLoadingSendContact(!0),this.apiService.baseRequest("/ExternalMediaKit/sendEmail","post",s,"1.0").pipe((0,g.s)(1)).subscribe(o=>{this.updateLoadingSendContact(!1),this.showSnackbar("success","Message Sent!")},o=>{this.updateLoadingSendContact(!1)})}getMapData(e){let t=e.sort((s,o)=>o.value-s.value).slice(0,5);return{bubles:[],data:e?t.map(s=>s.state):[],dataByState:e?t.reduce((s,o)=>({...s,[o.state]:{loc:o.state,value:`${o.value.toFixed(2)}%`}}),{}):{},mapScope:"usa",title:"US Cities"}}updateState(e){this.store.next(r=(0,b.jM)(r,e))}updateLoadingKit(e){this.updateState(t=>{t.loadingKit=e})}updateKit(e){this.updateState(t=>{t.mediaKit=e})}updateLoadingSendContact(e){this.updateState(t=>{t.loadingSendContact=e})}updateNewKit(e){this.updateState(t=>{t.newMediaKit=e})}static{this.\u0275fac=function(t){return new(t||a)(i.KVO(L.Y),i.KVO(x.Zv),i.KVO(c.Ix))}}static{this.\u0275prov=i.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var u=function(a){return a.getKitLocked=d=>d.kitLocked,a.getMediaKit=d=>d.mediaKit,a.getLoadingKit=d=>d.loadingKit,a.getLoadingSendContact=d=>d.loadingSendContact,a.getTestTestimoonials=d=>d.testTestimonials,a}(u||{}),$=n(345);const U=()=>({fullscreen:!0});function F(a,d){if(1&a&&i.nrm(0,"kt-kit-wrapper-V2",2),2&a){const e=i.XpG(2).ngIf;i.Y8G("kit",e.newMediaKit)("locked",!1)("externalFacing",!0)("ngClass",i.lJ4(4,U))}}function G(a,d){if(1&a&&(i.qex(0),i.DNE(1,F,1,5,"kt-kit-wrapper-V2",1),i.bVm()),2&a){const e=i.XpG().ngIf;i.R7$(),i.Y8G("ngIf",e.newMediaKit)}}function D(a,d){if(1&a&&(i.qex(0),i.DNE(1,G,2,1,"ng-container",0),i.bVm()),2&a){const e=d.ngIf;i.R7$(),i.Y8G("ngIf",!e.loadingKit)}}let v=(()=>{class a{constructor(e,t,s,o){this.facade=e,this.route=t,this.router=s,this.titleService=o}ngOnInit(){const e=this.route.snapshot.paramMap.get("displayname");e?(this.titleService.setTitle(`${e} | Media Kit`),this.facade.loadNewKit(e)):C.O.Setting().production?location.href="https://findyourinfluence.com":this.router.navigateByUrl("/not-found")}static{this.\u0275fac=function(t){return new(t||a)(i.rXU(w),i.rXU(c.nX),i.rXU(c.Ix),i.rXU($.hE))}}static{this.\u0275cmp=i.VBU({type:a,selectors:[["kt-media-kit"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"kit","locked","externalFacing","ngClass",4,"ngIf"],[3,"kit","locked","externalFacing","ngClass"]],template:function(t,s){1&t&&(i.DNE(0,D,2,1,"ng-container",0),i.nI1(1,"async")),2&t&&i.Y8G("ngIf",i.bMT(1,1,s.facade.vm$))},styles:["[_nghost-%COMP%] kt-kit-wrapper nav.navigation{position:fixed;width:100%}"]})}}return a})();var O=n(49870),T=n(89417),h=n(1109),z=n(81391),A=n(48423),B=n(35338),E=n(80896),P=n(71454);let R=(()=>{class a{static{this.\u0275fac=function(t){return new(t||a)}}static{this.\u0275mod=i.$C({type:a})}static{this.\u0275inj=i.G2t({imports:[f.MD,A.U,h.zH,h.zr,h.n8,z.ad,B.w,T.YN,T.X1,P.H,E.w]})}}return a})();var M=n(66532),X=n(18423);let K=(()=>{class a{constructor(){}ngOnInit(){}static{this.\u0275fac=function(t){return new(t||a)}}static{this.\u0275cmp=i.VBU({type:a,selectors:[["kt-kit-not-found"]],decls:3,vars:0,consts:[["title","This link is no longer valid","imgName","share404"],["noContentSubHeader",""]],template:function(t,s){1&t&&(i.j41(0,"kt-no-content-illy",0)(1,"p",1),i.EFF(2,"This link is no longer valid. Please contact the media kit owner for a new url."),i.k0s()())},dependencies:[M.t,X.U],encapsulation:2})}}return a})();var Y=n(25655);const j=[{path:"not-found",component:K,pathMatch:"full"},{path:":displayname",component:v},{path:"",component:v}];let H=(()=>{class a{static{this.\u0275fac=function(t){return new(t||a)}}static{this.\u0275mod=i.$C({type:a})}static{this.\u0275inj=i.G2t({imports:[K,f.MD,O.iI.forChild(j),R,M.t,Y.D]})}}return a})()}}]);
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.