1"use strict";(self.webpackChunklightx=self.webpackChunklightx||[]).push([[5066],{88650:(F,y,r)=>{r.d(y,{P:()=>_});var s=r(54438),x=r(60177),h=r(33391),g=r(345),v=r(68064);const m=["videoPlayer"];function p(u,b){if(1&u){const C=s.RV6();s.j41(0,"button",4),s.bIt("click",function(){s.eBV(C);const d=s.XpG();return s.Njj(d.activeModal.close())}),s.nrm(1,"pi",5),s.k0s()}}let _=(()=>{var u;class b{constructor(f,d,e){this.activeModal=f,this.document=d,this.sanitizer=e,this.videoId="",this.closevedio=new s.bkB,this.isLoaded=!1,this.videoEmbedUrl=""}ngOnInit(){this.updateVideoUrl(),this.isLoaded=!0}ngOnChanges(f){f.videoId&&this.updateVideoUrl()}updateVideoUrl(){const d=`https://www.youtube.com/embed/${this.extractVideoId(this.videoId)}`;this.videoEmbedUrl=this.sanitizer.bypassSecurityTrustResourceUrl(d)}extractVideoId(f){const d=(f||"").trim();if(!d)return"Wcw4jF2XoD4";if(!d.includes("youtube.com")&&!d.includes("youtu.be"))return d.split(/[?&]/)[0];try{const e=new URL(d);if(e.hostname.toLowerCase().includes("youtu.be"))return e.pathname.replace("/","").split(/[?&]/)[0];const P=e.searchParams.get("v");if(P)return P;const E=e.pathname.split("/embed/");if(E.length>1)return E[1].split("/")[0].split(/[?&]/)[0]}catch{return d.split(/[?&]/)[0]}return d.split(/[?&]/)[0]}}return(u=b).\u0275fac=function(f){return new(f||u)(s.rXU(h.Lw),s.rXU(x.qQ),s.rXU(g.up))},u.\u0275cmp=s.VBU({type:u,selectors:[["video-preview"]],viewQuery:function(f,d){if(1&f&&s.GBs(m,5),2&f){let e;s.mGM(e=s.lsd())&&(d.videoplayer=e.first)}},inputs:{videoId:"videoId"},outputs:{closevedio:"closevedio"},features:[s.OA$],decls:6,vars:2,consts:[[1,"modal-header","border-0"],["type","button","aria-hidden","close","class","close","style","margin-top: 16px;",3,"click",4,"ngIf"],[1,"text-center","youtubePlayer"],["width","100%","height","100%","frameborder","0","allowfullscreen","",3,"src"],["type","button","aria-hidden","close",1,"close",2,"margin-top","16px",3,"click"],["name","close",1,"f-30"]],template:function(f,d){1&f&&(s.j41(0,"div")(1,"div",0),s.DNE(2,p,2,0,"button",1),s.k0s(),s.j41(3,"div")(4,"div",2),s.nrm(5,"iframe",3),s.k0s()()()),2&f&&(s.R7$(2),s.Y8G("ngIf",d.isLoaded),s.R7$(3),s.Y8G("src",d.videoEmbedUrl,s.f$h))},dependencies:[x.bT,v.b],styles:[".video[_ngcontent-%COMP%]{margin:100px}.modal-content[_ngcontent-%COMP%]{background:transparent!important}.youtubePlayer[_ngcontent-%COMP%]{width:min(624px,100%);aspect-ratio:16/9}"]}),b})()},2820:(F,y,r)=>{r.d(y,{Z:()=>x});var s=r(54438);let x=(()=>{var g;class v{constructor(p){this.el=p,this.regex=new RegExp(/^[0-9]+(\.[0-9][0-9]*){0,1}$/g),this.specialKeys=["Backspace","Tab","End","Home","ArrowLeft","ArrowRight","Delete"]}onKeyDown(p){if((p.metaKey||p.ctrlKey)&&("v"===p.key||"a"===p.key||"c"===p.key))return;if(-1!==this.specialKeys.indexOf(p.key))return;let u=this.el.nativeElement.value.concat(p.key);u&&!String(u).match(this.regex)&&p.preventDefault()}}return(g=v).\u0275fac=function(p){return new(p||g)(s.rXU(s.aKT))},g.\u0275dir=s.FsC({type:g,selectors:[["","numbersOnly",""]],hostBindings:function(p,_){1&p&&s.bIt("keydown",function(b){return _.onKeyDown(b)})}}),v})()},64163:(F,y,r)=>{r.d(y,{P:()=>p});var s=r(60177),x=r(84341),h=r(74710),g=r(89818),v=r(33391),m=r(54438);let p=(()=>{var _;class u{}return(_=u).\u0275fac=function(C){return new(C||_)},_.\u0275mod=m.$C({type:_}),_.\u0275inj=m.G2t({providers:[v.Lw],imports:[s.MD,h.iI,x.YN,v.zH,v._f,g.MQ]}),u})()},84387:(F,y,r)=>{r.d(y,{W:()=>p});var s=r(60177),x=r(57724),h=r(23679),g=r(64163),v=r(79421),m=r(54438);let p=(()=>{var _;class u{}return(_=u).\u0275fac=function(C){return new(C||_)},_.\u0275mod=m.$C({type:_}),_.\u0275inj=m.G2t({providers:[x.v],imports:[s.MD,h.Y,g.P,v.r]}),u})()},57724:(F,y,r)=>{r.d(y,{v:()=>x});var s=r(54438);let x=(()=>{var h;class g{constructor(){}isBase64(m){return/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/.test(m)}base64FileExtension(m){return m.substring(11,m.indexOf(";base64"))}}return(h=g).\u0275fac=function(m){return new(m||h)},h.\u0275prov=s.jDH({token:h,factory:h.\u0275fac}),g})()},18545:(F,y,r)=>{r.d(y,{m:()=>h});var s=r(54438),x=r(345);let h=(()=>{var g;class v{constructor(p){this.sanitizer=p}transform(p,_){switch(_){case"html":return this.sanitizer.bypassSecurityTrustHtml(p);case"url":return this.sanitizer.bypassSecurityTrustUrl(p);default:throw new Error(`Invalid safe type specified: ${_}`)}}}return(g=v).\u0275fac=function(p){return new(p||g)(s.rXU(x.up,16))},g.\u0275pipe=s.EJ8({name:"safe",type:g,pure:!0}),v})()},93391:(F,y,r)=>{r.d(y,{C:()=>v});var s=r(54438),x=r(60177),h=r(84341);const g=m=>({transition:m});let v=(()=>{var m;class p{constructor(){this.selected=!1,this.disabled=!1,this.loaded=!1,this.changeT=new s.bkB}ngAfterViewInit(){setTimeout(()=>{this.loaded=!0},100)}ngOnInit(){}changeToggle(){setTimeout(()=>{this.changeT.emit(this.selected)},200)}}return(m=p).\u0275fac=function(u){return new(u||m)},m.\u0275cmp=s.VBU({type:m,selectors:[["toggle-switch"]],inputs:{selected:"selected",disabled:"disabled"},outputs:{changeT:"changeT"},decls:3,vars:5,consts:[[1,"toggle-switch"],["type","checkbox",3,"ngModelChange","click","disabled","ngModel"],[1,"slider",3,"ngClass"]],template:function(u,b){1&u&&(s.j41(0,"label",0)(1,"input",1),s.mxI("ngModelChange",function(f){return s.DH7(b.selected,f)||(b.selected=f),f}),s.bIt("click",function(){return b.changeToggle()}),s.k0s(),s.nrm(2,"div",2),s.k0s()),2&u&&(s.R7$(),s.Y8G("disabled",b.disabled),s.R50("ngModel",b.selected),s.R7$(),s.Y8G("ngClass",s.eq3(3,g,b.loaded)))},dependencies:[x.YU,h.Zm,h.BC,h.vS],styles:['.toggle-switch[_ngcontent-%COMP%]{height:30px;width:56px;display:inline-block;position:relative;margin-bottom:.5rem}.toggle-switch[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:none}.toggle-switch[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]{background-color:#fff}.toggle-switch[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]:after{transform:translate(26px)}.toggle-switch[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]{border-radius:20px;position:absolute;
1left:0;top:0;right:0;bottom:0;background-color:#fff}.toggle-switch[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:after{position:absolute;content:"";height:24px;width:24px;background-color:#626adf;left:4px;bottom:3px;border-radius:20px}.toggle-switch[_ngcontent-%COMP%] .transition[_ngcontent-%COMP%]{transition:2s}.toggle-switch[_ngcontent-%COMP%] .transition[_ngcontent-%COMP%]:after{transition:.4s}']}),p})()},10383:(F,y,r)=>{r.r(y),r.d(y,{ApiToolsModule:()=>Kn});var s=r(60177),x=r(83339),h=r(84341),g=r(33391),v=r(48928),m=r(84387),p=r(2578),_=r(86820),u=r(79421),b=r(23679),C=r(89818),f=r(14121),d=r(16478),e=r(54438),j=r(24045),P=r(74710);let E=(()=>{var t;class a{constructor(n){this.seoService=n,this.seoService.updatePageTitle(d.b.seo.ApiPage.title),this.seoService.updatePageMeta("description",d.b.seo.ApiPage.description)}ngOnInit(){}}return(t=a).\u0275fac=function(n){return new(n||t)(e.rXU(j.F))},t.\u0275cmp=e.VBU({type:t,selectors:[["app-api-tools"]],decls:1,vars:0,template:function(n,o){1&n&&e.nrm(0,"router-outlet")},dependencies:[P.n3]}),a})();var w=r(16471),U=r(45312),ee=r(72416),V=r(34183),L=r(6755),te=r(41300),H=r(74983),$=r(68287),A=r(68010),K=r(48039),ne=r(83100),ie=r(32068),oe=r(44242),ae=r(82126),re=r(18928),se=r(74532),le=r(54300),ce=r(47114),pe=r(69052),de=r(30060),ge=r(93844),me=r(8986),_e=r(74804),ue=r(86744),he=r(17744),ve=r(85452),fe=r(20396),be=r(64758),ye=r(73730),xe=r(6977),Ce=r(13868),Pe=r(93108),we=r(23600),Se=r(3228),Me=r(16156);function Te(t,a){if(1&t&&(e.j41(0,"a",10),e.EFF(1),e.k0s()),2&t){const i=a.$implicit;e.R7$(),e.SpI(" ",i.text," ")}}function Ge(t,a){if(1&t&&(e.j41(0,"div",8),e.DNE(1,Te,2,1,"a",9),e.k0s()),2&t){const i=e.XpG();e.R7$(),e.Y8G("ngForOf",i.area.links)}}let ke=(()=>{var t;class a{constructor(){}ngOnInit(){}}return(t=a).\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.VBU({type:t,selectors:[["contactus-banner"]],inputs:{area:"area",type:"type",slug:"slug"},decls:10,vars:5,consts:[[1,"padding-top-bottom100"],[1,"mx-auto","w-100","d-flex","align-items-center"],[1,"container-fluid"],[1,"row","g-0","align-items-center"],[1,"col-12","text-center"],[1,"text-32","text-dark","lh-h11"],[1,"text-lg","text-dark","lh-160","mt-8"],["class","col-12 text-center mt-13",4,"ngIf"],[1,"col-12","text-center","mt-13"],["class","btn btn-primary btn-h48 ms-4 me-4 text-semi","href","mailto:[email protected]",4,"ngFor","ngForOf"],["href","mailto:[email protected]",1,"btn","btn-primary","btn-h48","ms-4","me-4","text-semi"]],template:function(n,o){1&n&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h2",5),e.EFF(6),e.k0s(),e.j41(7,"p",6),e.EFF(8),e.k0s()(),e.DNE(9,Ge,2,1,"div",7),e.k0s()()()()),2&n&&(e.xc7("background",o.area.bgColors),e.R7$(6),e.JRh(o.area.title),e.R7$(2),e.JRh(o.area.desc1),e.R7$(),e.Y8G("ngIf",o.area.links))},dependencies:[s.Sq,s.bT]}),a})();var Y=r(68064),z=r(80838),X=r(27707),Fe=r(345),Re=r(18545);const Oe=t=>({"ps-0 pe-0":t}),Ie=t=>({tabDivShowMobileMargin:t}),$e=t=>({"btn-tab-active":t}),Ee=t=>({"show active":t});function Ae(t,a){if(1&t){const i=e.RV6();e.j41(0,"li")(1,"a",16),e.bIt("click",function(){const o=e.eBV(i).index,l=e.XpG();return e.Njj(l.onCategorySelect(o))}),e.j41(2,"li",17),e.EFF(3),e.k0s()()()}if(2&t){const i=a.$implicit,n=a.index,o=e.XpG();e.R7$(2),e.Y8G("ngClass",e.eq3(2,$e,n===o.selectedId)),e.R7$(),e.SpI(" ",null==i?null:i.text,"")}}function Ye(t,a){if(1&t&&(e.j41(0,"div",18)(1,"div",19)(2,"div",20),e.nrm(3,"div",21),e.nI1(4,"safe"),e.k0s()()()),2&t){const i=a.$implicit,n=a.index,o=e.XpG();e.Y8G("ngClass",e.eq3(5,Ee,n===o.selectedId)),e.R7$(3),e.Y8G("innerHTML",e.i5U(4,2,null==i?null:i.textBelow,"html"),e.npT)}}let je=(()=>{var t;class a{constructor(n,o){this.env=n,this.sanitizer=o,this.title="Easy Integration with Popular Frameworks",this.subTitle="Easily integrate our API with Python, JavaScript, Swift, Kotlin and cURL for versatile and powerful applications.",this.selectedId=0}ngOnInit(){this.tools=this.area.links&&this.area.links.length?this.area.links:X.PV.ApiHometoolbar.nav.items}onCategorySelect(n){this.selectedId=n}}return(t=a).\u0275fac=function(n){return new(n||t)(e.rXU($.L),e.rXU(Fe.up))},t.\u0275cmp=e.VBU({type:t,selectors:[["api-code-section"]],inputs:{area:"area",slug:"slug"},decls:20,vars:13,consts:[[1,"area-inner","mx-auto","padding-top-bottom60",3,"ngClass"],[1,"mx-auto","ps-3","pe-3","ps-lg-0","pe-lg-0",2,"max-width","840px"],[1,"text-36","text-bold","text-dark","text-center","lh-125"],[1,"text-lg","text-dark","text-center","mt-3"],[1,"area","w-100",3,"ngClass"],[1,"container-fluid","p-ltrt","pad-md"],[1,"integrateBgBox","d-flex","p-2","mx-auto",2,"max-height","413px","height","413px","max-width","880px"],[1,"col-sm-12","col-md-12","col-lg-12","col-xl-12","w-100","integrateBgBoxLight",2,"padding","14px 10px"],[1,"codeBox"],["Class","tab-div-show position-sticky overflow-auto",3,"ngClass"],[1,"nav","nav-pills"],[4,"ngFor","ngForOf"],["id","myTabContent2",1,"tab-content",2,"height","calc(100% - 36px) !important"],["class","tab-pane fade overflow-auto h-100","id","events-tab",3,"ngClass",4,"ngFor","ngForOf"],[1,"button","text-center",3,"ngClass"],["href","https://docs.lightxeditor.com/","target","_blank",1,"btn","btn-primary","btn-h48",3,"ngClass"],["data-toggle","tab",1,"",3,"click"],[1,"nav-item","btn-tab","h-48","border-radius-12","text-lg","d-flex","align-items-center","justify-content-center","pointer","text-semi",3,"ngClass"],["
1id","events-tab",1,"tab-pane","fade","overflow-auto","h-100",3,"ngClass"],[1,"container-fluid","p-0"],[1,"row","g-0","integrateBoxContent"],[1,"mt-4","ms-4","text-lg",3,"innerHTML"]],template:function(n,o){1&n&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2),e.EFF(3),e.k0s(),e.j41(4,"div",3),e.EFF(5),e.k0s()(),e.j41(6,"div")(7,"div",4)(8,"div",5)(9,"div",6)(10,"div",7)(11,"div",8)(12,"div",9)(13,"ul",10),e.DNE(14,Ae,4,4,"li",11),e.k0s()()(),e.j41(15,"div",12),e.DNE(16,Ye,5,7,"div",13),e.k0s()()()(),e.j41(17,"div",14)(18,"a",15),e.EFF(19,"Read API Documentation"),e.k0s()()()()()),2&n&&(e.Y8G("ngClass",e.eq3(9,Oe,o.env.isMobileView)),e.R7$(3),e.JRh((null==o.area?null:o.area.title)||o.title),e.R7$(2),e.JRh((null==o.area?null:o.area.subTitle)||o.subTitle),e.R7$(2),e.Y8G("ngClass",o.env.isMobileView?"mt-4":"mt-60"),e.R7$(5),e.Y8G("ngClass",e.eq3(11,Ie,o.env.isMobileView)),e.R7$(2),e.Y8G("ngForOf",o.tools),e.R7$(2),e.Y8G("ngForOf",o.tools),e.R7$(),e.Y8G("ngClass",o.env.isMobileView?"mt-36":"mt-40"),e.R7$(),e.Y8G("ngClass",o.env.isMobileView?"mt-2":""))},dependencies:[s.YU,s.Sq,Re.m],styles:[".integrateBgBox[_ngcontent-%COMP%]{border-radius:20px;background:linear-gradient(118deg,#141923 32.82%,#595b71 97.45%)}.integrateBgBoxLight[_ngcontent-%COMP%]{border-radius:16px;border:2px solid rgba(255,255,255,.1);background:#35374b80;box-shadow:0 70.796px 141.592px #ffffff26 inset,0 7.08px 14.159px #0000000d,0 21.239px 42.478px #0000000d,0 42.478px 84.955px #0000001a;-webkit-backdrop-filter:blur(14.1592350006px);backdrop-filter:blur(14.1592350006px)}.btn-tab[_ngcontent-%COMP%]{width:156px;background:#ffffff0d;color:#c3c2cf;margin:0 6px}.btn-tab[_ngcontent-%COMP%]:hover{background:#ffffff1a}.btn-tab-active[_ngcontent-%COMP%]{background:#fff!important;color:#28282a!important}.btn-tab-home-active[_ngcontent-%COMP%]{background:#626adf!important;color:#fff!important}[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}[_ngcontent-%COMP%]::-webkit-scrollbar-track{box-shadow:inset 0 0 5px #58596b;border-radius:12px;margin-top:5px;margin-bottom:5px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#a09faf;border-radius:12px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#a09faf}.tabDivShowMobileMargin[_ngcontent-%COMP%]{margin-left:-10px;margin-right:-10px}"]}),a})();var Ue=r(10467),Ve=r(79876),Xe=r(90369),Ne=r(91367),De=r(80006),Be=r(79301),N=r(3067),Le=r(88704),W=r(30586);const He=t=>({background:t}),Ke=t=>({"pb-5":t}),ze=()=>["/"],We=t=>({"justify-content-center":t}),Qe=t=>({"d-none":t}),Je=t=>({"btn-outline-primary":t});function Ze(t,a){if(1&t){const i=e.RV6();e.j41(0,"button",24),e.bIt("click",function(){e.eBV(i);const o=e.XpG().$implicit,l=e.XpG();return e.Njj(l.getApiKey(o))}),e.EFF(1),e.k0s()}if(2&t){const i=e.XpG(),n=i.$implicit;e.Y8G("ngClass",e.eq3(2,Je,i.index>="1")),e.R7$(),e.JRh(null==n?null:n.text)}}
1function qe(t,a){if(1&t){const i=e.RV6();e.j41(0,"button",25),e.bIt("click",function(){e.eBV(i);const o=e.XpG().$implicit,l=e.XpG();return e.Njj(l.getApiKey(o))}),e.EFF(1),e.k0s()}if(2&t){const i=e.XpG().$implicit;e.R7$(),e.JRh(null==i?null:i.text)}}function et(t,a){if(1&t&&(e.j41(0,"div",21),e.DNE(1,Ze,2,4,"button",22)(2,qe,2,1,"button",23),e.k0s()),2&t){const i=a.index,n=e.XpG();e.Y8G("ngClass",e.eq3(3,Qe,0==i&&n.env.isMobileView)),e.R7$(),e.Y8G("ngIf",!n.env.isMobileView),e.R7$(),e.Y8G("ngIf",n.env.isMobileView)}}function tt(t,a){if(1&t){const i=e.RV6();e.qex(0),e.j41(1,"div",26)(2,"div",27)(3,"div",28)(4,"div",29)(5,"div",30)(6,"h2",31),e.EFF(7,"Experience the Tool"),e.k0s(),e.j41(8,"p",32),e.EFF(9,"Start editing images with the tool to see how it works."),e.k0s()(),e.j41(10,"div",33)(11,"button",34),e.bIt("click",function(){e.eBV(i);const o=e.XpG();return e.Njj(o.tryitnow())}),e.EFF(12,"Try It Now"),e.k0s()()()()()(),e.bVm()}}function nt(t,a){if(1&t){const i=e.RV6();e.j41(0,"button",39),e.bIt("click",function(){e.eBV(i);const o=e.XpG(2);return e.Njj(o.getApiKey(o.area.links[1]))}),e.EFF(1),e.k0s()}if(2&t){const i=e.XpG(2);e.R7$(),e.JRh(i.area.links[1].text)}}function it(t,a){if(1&t){const i=e.RV6();e.qex(0),e.j41(1,"div",35)(2,"div",36),e.DNE(3,nt,2,1,"button",37),e.k0s()(),e.j41(4,"div",38,0),e.bIt("obsChange",function(o){e.eBV(i);const l=e.XpG();return e.Njj(l.onChangeVisibility(o))}),e.k0s(),e.bVm()}if(2&t){const i=e.sdS(5),n=e.XpG();e.R7$(3),e.Y8G("ngIf",n.area.links&&n.area.links.length>1),e.R7$(),e.Y8G("obsIntersectTarget",i)}}let ot=(()=>{var t;class a{constructor(n,o,l,c,T,G,k,S,M){var R=this;this.uploadImageService=n,this.modalService=o,this.loginService=l,this.authService=c,this.env=T,this.aiUploadImageService=G,this.commonService=k,this.apiKeyService=S,this.storyImageProgress=M,this.imgQueryParams={imageUrl:"",tabName:"",from:"",editorType:"",openNewTab:!0},this.displayName="",this.type="",this.loggedInObserver=this.authService.loggedIn.subscribe(O=>{this.user=this.authService.currentUser()}),this.uploadImageService.uploadFileFn=function(){var O=(0,Ue.A)(function*(I){I&&R.loadInputImageFromAPI(I)});return function(I){return O.apply(this,arguments)}}()}ngOnInit(){if(this.area.metadata&&this.area.metadata?.queryString){const n=this.area.metadata?.queryString;this.params=this.commonService.getQueryParams(n)}}ngOnDestroy(){this.loggedInObserver&&this.loggedInObserver.unsubscribe()}getAltText(n){return n&&n.images&&n.images[0]?n.images[0].altText:""}getImgUrl(n){return n&&n.images&&n.images[0]?n.images[0].url:n.img1}onChangeVisibility(n){let o=document.querySelector(".bottom-upload");setTimeout(()=>{o&&(n.visible&&scrollY>=360?o.classList.contains("fixed-upload-btn")||o.classList.add("fixed-upload-btn"):o.classList.contains("fixed-upload-btn")&&o.classList.remove("fixed-upload-btn"))},200)}getApiKey(n=null){n&&n.type==w.VQ.contactForm?this.apiKeyService.openContactSales().result.then(o=>{}):n&&n.type==w.VQ.calender?this.apiKeyService.openGoogleCalendar():this.apiKeyService.generateApiKeyWithQuestion()}tryitnow(){if(this.params={},this.area.metadata&&this.area.metadata?.queryString){const n=this.area.metadata?.queryString;this.params=this.commonService.getQueryParams(n)}else this.area.links.length&&this.area.links[0].metadata&&(this.params=this.area.links[0].metadata);this.params&&(this.params.isApiKey=!0,this.params.openNewTab=!0,this.params.storyProgressController=this.storyImageProgress),this.env.isMobileView||(this.params.tab||(this.params.tab=this.params.editorType==w._Y.AIPhoto?w.Fs.Filter:"aitools"),this.params.toolName=this.params.tab,this.user=this.authService.currentUser(),this.user?this.openModalPopup():this.loginService.openLoginDialogNew(n=>{this.user=this.authService.currentUser(),this.user&&this.openModalPopup()},!1,null,"login","main-login",1))}onFileUploadedOnLoad(n,o=null){if(!n)return;const l={tab:"upscale"};this.storyImageProgress.uploading("upscale");const c=URL.createObjectURL(n);this.aiUploadImageService.loadImage(c).then(T=>{Xe.HtmlCanvasUtil.checkAndResizeImage(T,(G,k,S)=>{const M=S||n;this.aiUploadImageService.uploadImage(M,l,R=>{this.imgQueryParams.imageUrl=R?.contentUrl||URL.createObjectURL(M),this.uploadImageService.loadInputImage(this.imgQueryParams,()=>{o&&o()})})},4096,4096)})}loadInputImageFromAPI(n){let o=null,l=null;n&&(n&&n.file?l=n.file:o=n),this.params.editorType==w._Y.Photo?(this.imgQueryParams.imageUrl=o,this.imgQueryParams.from=this.params.slug,this.imgQueryParams.tabName=this.params.tab||this.params.toolName,this.imgQueryParams.editorType=w._Y.Photo,this.imgQueryParams.subTool=this.params.subTool,this.imgQueryParams.openNewTab=!0,this.imgQueryParams.storyProgressController=this.storyImageProgress,l?this.onFileUploadedOnLoad(l,()=>{}):this.uploadImageService.loadInputImage(this.imgQueryParams,()=>{})):(this.params.editorType=w._Y.AIPhoto,this.aiUploadImageService.aiUploadImage(l||null,this.params,o).then(c=>{}))}openModalPopup(){if(this.params.toolName==w.Fs.TextToImage&&this.params.suTool==w.do.Text)this.aiUploadImageService.loadInputTextToAiEditor(this.params);else{const n=this.modalService.open(Ve.C,{centered:!0,size:"xl",windowClass:"confirm-modal"});n.componentInstance.isFileUpload=!0,n.result.then(o=>{"cancel"!==o&&o&&this.loadInputImageFromAPI({file:o})}).catch(o=>{})}}}return(t=a).\u0275fac=function(n){return new(n||t)(e.rXU(L.A),e.rXU(g.Bq),e.rXU(Ne.H),e.rXU(A.u),e.rXU($.L),e.rXU(De.M),e.rXU(Be.h),e.rXU(N.H),e.rXU(Le.l))},t.\u0275cmp=e.VBU({type:t,selectors:[["api-key-banner-header"]],inputs:{displayName:"displayName",type:"type",area:"area",slug:"slug"},decls:28,vars:21,consts:[["nameuplod",""],[1,"topBanner","d-flex","align-items-center","position-relative",3,"ngStyle","ngClass"],[1,"darkThemeBreadcrumb","text-14","ms-3","ms-lg-5","position-absolute",2,"top","24px"],[3,"routerLink"],["name","breadcrumbarrow",1,"ms-1","me-1"],[1,"text-primary"],[1,"row","g-0","pt-0","overflow-hidden","w-100","area-inner","mx-auto","pe-lg-0","pb-0"],[1,"col-lg-6","col-xl-6","p-0","align-self-center","order-1"],[1,"text-center","text-lg-start"],[1,"mb-13","herobanner-text"],[1,"herobanner-margin"],[1,"pt-4","pt-lg-0","text-48","lh-125",3,"ngClass"],[1,"mt-9"],[1,"text-xxl","grey-900","lh-p1","text-semi"],[1,"d-flex",3,"ngClass"],[1,"upload-btn","d-flex"],["class","text-left",3,"ngClass",4,"ngFor","ngForOf"],[1,"col-lg-6","col-xl-6","p-0","order-2"],[1,"pt-4","pt-lg-0","text-center"],["loading","eager","fetchpriority","high","height","600px","width","600px",1,"responsive",2,"max-width","600px","max-height","600px",3,"alt","src"],[4,"ngIf"],[1,"text-left",3,"ngClass"],["class","btn-top-banner pointer mb-8 mr-8 text-semi text-lg d-inline-flex align-items-center justify-content-center border-radius-12 h-48","style","margin: 5px auto;",3,"ngClass","click",4,"ngIf"],["class","btn-top-banner pointer mb-8 mr-8 text-semi text-lg d-inline-flex align-items-center justify-content-center border-radius-12 h-48",3,"click",4,"ngIf"],[1,"btn-top-banner","pointer","mb-8","mr-8","text-semi","text-lg","d-inline-flex","align-items-center","justify-content-center","border-radius-12","h-48",2,"margin","5px auto",3,"click","ngClass"],[1,"btn-top-banner","pointer","mb-8","mr-8","text-semi","text-lg","d-inline-flex","align-items-center","justify-content-center","border-radius-12","h-48",3,"click"],[1,"tryNowBg","d-flex"],[1,"mx-auto","w-100","d-flex","align-items-center"],[1,"container-fluid"],[1,"row","g-0","align-items-center"],[1,"col-12","text-center"],[1,"text-32","text-dark","lh-h11","mt-40"],[1,"text-lg","text-dark","lh-160","mt-3"],[1,"d-flex","justify-content-center","mt-4","mb-40"],[1,"btn","btn-primary","btn-h48","me-2",3,"click"],[1,"upload-btn","bottom-upload","d-flex","position-fixed"],[1,"text-left"],["class","btn btn-white text-primary btn-h48 me-2",3,"click",4,"ngIf"],["observeVisibility","",3,"obsChange","obsIntersectTarget"],[1,"btn","btn-white","text-primary","btn-h48","me-2",3,"click"]],template:function(n,o){1&n&&(e.j41(0,"div",1)(1,"div",2)(2,"a",3),e.
1EFF(3,"Home"),e.k0s(),e.nrm(4,"pi",4),e.j41(5,"a",3),e.EFF(6,"API"),e.k0s(),e.nrm(7,"pi",4),e.j41(8,"span",5),e.EFF(9),e.k0s()(),e.j41(10,"div",6)(11,"div",7)(12,"div",8)(13,"div",9)(14,"div",10)(15,"h1",11),e.EFF(16),e.k0s()(),e.j41(17,"div",12)(18,"p",13),e.EFF(19),e.k0s()()(),e.j41(20,"div",14)(21,"div",15),e.DNE(22,et,3,5,"div",16),e.k0s()()()(),e.j41(23,"div",17)(24,"div",18),e.nrm(25,"img",19),e.k0s()()()(),e.DNE(26,tt,13,0,"ng-container",20)(27,it,6,2,"ng-container",20)),2&n&&(e.Y8G("ngStyle",e.eq3(14,He,o.area.bgColors))("ngClass",e.eq3(16,Ke,o.env.isMobileView)),e.R7$(2),e.Y8G("routerLink",e.lJ4(18,ze)),e.R7$(3),e.Y8G("routerLink","/"+o.type),e.R7$(4),e.JRh(o.displayName),e.R7$(6),e.Y8G("ngClass",o.env.isMobileView?"grey-900":"text-grey-900"),e.R7$(),e.SpI(" ",o.area.title," "),e.R7$(3),e.SpI("",o.area.desc1," "),e.R7$(),e.Y8G("ngClass",e.eq3(19,We,o.env.isMobileView)),e.R7$(2),e.Y8G("ngForOf",null==o.area?null:o.area.links),e.R7$(3),e.Y8G("alt",o.getAltText(o.area))("src",o.getImgUrl(o.area),e.B4B),e.R7$(),e.Y8G("ngIf",!o.env.isMobileView),e.R7$(),e.Y8G("ngIf",null==o.params?null:o.params.stripText))},dependencies:[s.YU,s.Sq,s.bT,s.B3,P.Wk,Y.b,W.w],styles:[".fixed-upload-btn[_ngcontent-%COMP%]{justify-content:center}.fixed-upload-btn[_ngcontent-%COMP%] .btn-none[_ngcontent-%COMP%]{display:none}@media (max-width: 980px){.upload-btn[_ngcontent-%COMP%]{justify-content:center}.herobanner-margin[_ngcontent-%COMP%]{margin-top:40px!important}}@media (max-width: 576px){.upload-btn[_ngcontent-%COMP%]{justify-content:center}.upload-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:0!important}}.tryNowBg[_ngcontent-%COMP%]{background:url(https://static.lightxeditor.com/assets/images/tryitnow-bg.png);background-repeat:no-repeat;background-size:cover;background-position-y:bottom}.btn-top-banner[_ngcontent-%COMP%]{min-width:232px}"]}),a})();function at(t,a){if(1&t&&e.nrm(0,"profile-picture-banner-header",19),2&t){const i=e.XpG(2),n=i.$implicit,o=i.index,l=i.even,c=e.XpG(3);e.HbH(c.slug),e.Y8G("area",n)("even",l&&0==o)("displayName",c.displayName)("type",c.type)("editorType",c.editorType)("uploadType",c.uploadType)("targetPage",c.targetPage)}}function rt(t,a){if(1&t&&e.nrm(0,"story-upload-area",19),2&t){const i=e.XpG(2),n=i.$implicit,o=i.index,l=i.even,c=e.XpG(3);e.HbH(c.slug),e.Y8G("area",n)("even",l&&0==o)("displayName",c.displayName)("type",c.type)("editorType",c.editorType)("uploadType",c.uploadType)("targetPage",c.targetPage)}}function st(t,a){1&t&&(e.qex(0),e.DNE(1,at,1,10,"profile-picture-banner-header",18)(2,rt,1,10,"story-upload-area",18),e.bVm()),2&t&&(e.R7$(),e.Y8G("ngSwitchCase","profile-upload"),e.R7$(),e.Y8G("ngSwitchCase","upload"))}function lt(t,a){if(1&t&&e.nrm(0,"upload-area-variant2",21),2&t){const i=e.XpG(2),n=i.$implicit,o=i.index,l=e.XpG(3);e.ZvI("",l.slug," convert-video"),e.Y8G("area",n)("index",o)("displayName",l.displayName)("type",l.type)("editorType",l.editorType)("user",l.user)("slug",l.slug)("targetPage",l.targetPage)}}function ct(t,a){1&t&&(e.qex(0),e.DNE(1,lt,1,11,"upload-area-variant2",20),e.bVm()),2&t&&(e.R7$(),e.Y8G("ngSwitchCase","upload"))}function pt(t,a){if(1&t&&e.nrm(0,"story-tutorial-area",22),2&t){const i=e.XpG().$implicit;e.Y8G("area",i)}}function dt(t,a){if(1&t&&e.nrm(0,"story-video-tutorial-area",22),2&t){const i=e.XpG().$implicit;e.Y8G("area",i)}}function gt(t,a){if(1&t&&e.nrm(0,"story-section-area",23),2&t){const i=e.XpG(),n=i.$implicit,o=i.index,l=i.even,c=e.XpG(3);e.Y8G("area",n)("even",l)("toolName",c.toolName)("editorType",c.editorType)("index",o)("uploadType",c.uploadType)("targetPage",c.targetPage)("subTool",c.subTool)}}function mt(t,a){if(1&t&&e.nrm(0,"mixed-section-area",24),2&t){const i=e.XpG(),o=i.index,l=i.even;e.Y8G("area",i.$implicit)("even",l)("index",o)}}function _t(t,a){if(1&t&&e.nrm(0,"image-preview-area",22),2&t){const i=e.XpG().$implicit;e.Y8G("area",i)}}function ut(t,a){if(1&t&&e.nrm(0,"remove-bg-preview-area",22),2&t){const i=e.XpG().$implicit;e.Y8G("area",i)}}function ht(t,a){if(1&t&&e.nrm(0,"story-animated-banner-area",22),2&t){const i=e.XpG().$implicit;e.Y8G("area",i)}}function vt(t,a){if(1&t&&e.nrm(0,"story-faq-area",22),2&t){const i=e.XpG().$implicit;e.Y8G("area",i)}}function ft(t,a){if(1&t&&e.nrm(0,"story-photo-footer-area",25),2&t){const i=e.XpG().$implicit,n=e.XpG(3);e.Y8G("area",i)("type",n.type)}}function bt(t,a){if(1&t&&e.nrm(0,"story-heading-area",22),2&t){const i=e.XpG().$implicit;e.Y8G("area",i)}}function yt(t,a){if(1&t&&e.nrm(0,"ai-banner-header",26),2&t){const i=e.XpG().$implicit,n=e.XpG(3);e.Y8G("displayName",n.displayName)("type",n.type)("area",i)("slug",n.slug)}}
1function xt(t,a){if(1&t&&e.nrm(0,"mixed-banner-header",26),2&t){const i=e.XpG().$implicit,n=e.XpG(3);e.Y8G("displayName",n.displayName)("type",n.type)("area",i)("slug",n.slug)}}function Ct(t,a){if(1&t&&e.nrm(0,"ai-banner-header",27),2&t){const i=e.XpG().$implicit,n=e.XpG(3);e.Y8G("area",i)("displayName",n.displayName)("type",n.type)("slug",n.slug)}}function Pt(t,a){if(1&t&&e.nrm(0,"ai-banner-header-v1",28),2&t){const i=e.XpG().$implicit,n=e.XpG(3);e.Y8G("displayName",n.displayName)("type",n.type)("area",i)("slug",n.slug)("editorType",n.editorType)}}function wt(t,a){if(1&t&&e.nrm(0,"ai-banner-header-v1",28),2&t){const i=e.XpG().$implicit,n=e.XpG(3);e.Y8G("displayName",n.displayName)("type",n.type)("area",i)("slug",n.slug)("editorType",n.editorType)}}function St(t,a){if(1&t&&e.nrm(0,"ai-tutorial-area",22),2&t){const i=e.XpG().$implicit;e.Y8G("area",i)}}function Mt(t,a){if(1&t&&e.nrm(0,"ai-preview-area",22),2&t){const i=e.XpG().$implicit;e.Y8G("area",i)}}function Tt(t,a){if(1&t&&e.nrm(0,"ai-prompt-preview-area",29),2&t){const i=e.XpG().$implicit,n=e.XpG(3);e.Y8G("area",i)("slug",n.slug)("tab",n.toolName)("subTool",n.subTool)}}function Gt(t,a){if(1&t&&e.nrm(0,"ai-bottom-banner",22),2&t){const i=e.XpG().$implicit;e.Y8G("area",i)}}function kt(t,a){if(1&t&&e.nrm(0,"tutorial-area-v1",22),2&t){const i=e.XpG().$implicit;e.Y8G("area",i)}}
1function Ft(t,a){if(1&t&&e.nrm(0,"ai-animated-banner-area",30),2&t){const i=e.XpG().$implicit,n=e.XpG(3);e.Y8G("area",i)("toolName",n.toolName)("_sId",n._sId)}}function Rt(t,a){if(1&t&&e.nrm(0,"ai-animated-banner-area",30),2&t){const i=e.XpG().$implicit,n=e.XpG(3);e.Y8G("area",i)("toolName",n.toolName)("_sId",n._sId)}}function Ot(t,a){if(1&t&&e.nrm(0,"ai-preview-area-variant2",29),2&t){const i=e.XpG().$implicit,n=e.XpG(3);e.Y8G("area",i)("slug",n.slug)("tab",n.toolName)("subTool",n.subTool)}}function It(t,a){if(1&t&&e.nrm(0,"in-page-pricing",22),2&t){const i=e.XpG().$implicit;e.Y8G("area",i)}}function $t(t,a){if(1&t&&e.nrm(0,"ai-all-tools",22),2&t){const i=e.XpG().$implicit;e.Y8G("area",i)}}function Et(t,a){if(1&t&&e.nrm(0,"ai-banner-slider",22),2&t){const i=e.XpG().$implicit;e.Y8G("area",i)}}function At(t,a){if(1&t&&e.nrm(0,"ai-slide-preview-area",31),2&t){const i=e.XpG(),n=i.$implicit;e.Y8G("even",i.even)("area",n)}}function Yt(t,a){if(1&t&&e.nrm(0,"ai-story-page-info",22),2&t){const i=e.XpG().$implicit;e.Y8G("area",i)}}function jt(t,a){if(1&t&&e.nrm(0,"api-code-section",22),2&t){const i=e.XpG().$implicit;e.Y8G("area",i)}}function Ut(t,a){if(1&t&&e.nrm(0,"general-banner",22),2&t){const i=e.XpG().$implicit;e.Y8G("area",i)}}function Vt(t,a){if(1&t&&e.nrm(0,"api-key-banner-header",26),2&t){const i=e.XpG().$implicit,n=e.XpG(3);e.Y8G("displayName",n.displayName)("type",n.type)("area",i)("slug",n.slug)}}function Xt(t,a){if(1&t&&e.nrm(0,"contactus-banner",22),2&t){const i=e.XpG().$implicit;e.Y8G("area",i)}}function Nt(t,a){if(1&t&&(e.qex(0),e.j41(1,"div",7),e.DNE(2,st,3,2,"ng-container",4)(3,ct,2,1,"ng-container",4)(4,pt,1,1,"story-tutorial-area",8)(5,dt,1,1,"story-video-tutorial-area",8)(6,gt,1,8,"story-section-area",9)(7,mt,1,3,"mixed-section-area",10)(8,_t,1,1,"image-preview-area",8)(9,ut,1,1,"remove-bg-preview-area",8)(10,ht,1,1,"story-animated-banner-area",8)(11,vt,1,1,"story-faq-area",8)(12,ft,1,2,"story-photo-footer-area",11)(13,bt,1,1,"story-heading-area",8)(14,yt,1,4,"ai-banner-header",12)(15,xt,1,4,"mixed-banner-header",12)(16,Ct,1,4,"ai-banner-header",13)(17,Pt,1,5,"ai-banner-header-v1",14)(18,wt,1,5,"ai-banner-header-v1",14)(19,St,1,1,"ai-tutorial-area",8)(20,Mt,1,1,"ai-preview-area",8)(21,Tt,1,4,"ai-prompt-preview-area",15)(22,Gt,1,1,"ai-bottom-banner",8)(23,kt,1,1,"tutorial-area-v1",8)(24,Ft,1,3,"ai-animated-banner-area",16)(25,Rt,1,3,"ai-animated-banner-area",16)(26,Ot,1,4,"ai-preview-area-variant2",15)(27,It,1,1,"in-page-pricing",8)(28,$t,1,1,"ai-all-tools",8)(29,Et,1,1,"ai-banner-slider",8)(30,At,1,2,"ai-slide-preview-area",17)(31,Yt,1,1,"ai-story-page-info",8)(32,jt,1,1,"api-code-section",8)(33,Ut,1,1,"general-banner",8)(34,Vt,1,4,"api-key-banner-header",12)(35,Xt,1,1,"contactus-banner",8),e.k0s(),e.bVm()),2&t){const i=a.$implicit,n=e.XpG(3);e.R7$(),e.Y8G("ngSwitch",i.type),e.R7$(),e.Y8G("ngIf",1==n.variant),e.R7$(),e.Y8G("ngIf",2==n.variant),e.R7$(),e.Y8G("ngSwitchCase","steps"),e.R7$(),e.Y8G("ngSwitchCase","video"),e.R7$(),e.Y8G("ngSwitchCase","section"),e.R7$(),e.Y8G("ngSwitchCase","mixed-section"),e.R7$(),e.Y8G("ngSwitchCase","image-preview"),e.R7$(),e.Y8G("ngSwitchCase","tab-image-preview-area"),e.R7$(),e.Y8G("ngSwitchCase","slider-tab-image-preview"),e.R7$(),e.Y8G("ngSwitchCase","questions"),e.R7$(),e.Y8G("ngSwitchCase","discover-tools"),e.R7$(),e.Y8G("ngSwitchCase","heading"),e.R7$(),e.Y8G("ngSwitchCase","ai-banner-header"),e.R7$(),e.Y8G("ngSwitchCase","mixed-banner-header"),e.R7$(),e.Y8G("ngSwitchCase","ai-banner"),e.R7$(),e.Y8G("ngSwitchCase","ai-banner-header-v1"),e.R7$(),e.Y8G("ngSwitchCase","ai-banner-header-v2"),e.R7$(),e.Y8G("ngSwitchCase","aisteps"),e.R7$(),e.Y8G("ngSwitchCase","ai-image-preview"),e.R7$(),e.Y8G("ngSwitchCase","ai-prompt-area"),e.R7$(),e.Y8G("ngSwitchCase","ai-footer-area"),e.R7$(),e.Y8G("ngSwitchCase","stepsV1"),e.R7$(),e.Y8G("ngSwitchCase","tab-image-with-prompt"),e.R7$(),e.Y8G("ngSwitchCase","ai-animated-banner"),e.R7$(),e.Y8G("ngSwitchCase","ai-image-preview-v2"),e.R7$(),e.Y8G("ngSwitchCase","in-page-pricing"),e.R7$(),e.Y8G("ngSwitchCase","ai-all-tools"),e.R7$(),e.Y8G("ngSwitchCase","ai-banner-slider"),e.R7$(),e.Y8G("ngSwitchCase","ai-slide-image-preview"),e.R7$(),e.Y8G("ngSwitchCase","api-key-uses"),e.R7$(),e.Y8G("ngSwitchCase","code-snippet"),e.R7$(),e.Y8G("ngSwitchCase","choose-your-plan"),e.R7$(),e.Y8G("ngSwitchCase","api-key-banner-header"),e.R7$(),e.Y8G("ngSwitchCase","contact-us")}}
1function Dt(t,a){if(1&t&&(e.j41(0,"div",5),e.DNE(1,Nt,36,35,"ng-container",6),e.k0s()),2&t){const i=e.XpG(2);e.R7$(),e.Y8G("ngForOf",i.storyPage.sections)}}function Bt(t,a){if(1&t&&(e.qex(0),e.nrm(1,"element-placeholder",32),e.bVm()),2&t){const i=e.XpG(2);e.R7$(),e.Y8G("view",i.storyview)}}function Lt(t,a){if(1&t&&(e.qex(0),e.nrm(1,"element-placeholder",32),e.bVm()),2&t){const i=e.XpG(2);e.R7$(),e.Y8G("view",i.storymobileview)}}function Ht(t,a){if(1&t&&e.DNE(0,Dt,2,1,"div",3)(1,Bt,2,1,"ng-container",4)(2,Lt,2,1,"ng-container",4),2&t){const i=e.XpG();e.Y8G("ngIf",i.isLoaded&&i.storyPage),e.R7$(),e.Y8G("ngIf",!i.isLoaded&&!i.env.isMobileView),e.R7$(),e.Y8G("ngIf",!i.isLoaded&&i.env.isMobileView)}}function Kt(t,a){if(1&t){const i=e.RV6();e.j41(0,"div",33)(1,"div",34)(2,"pi",35),e.bIt("click",function(){e.eBV(i);const o=e.XpG();return e.Njj(o.isShown=!1)}),e.k0s()(),e.j41(3,"div",36),e.EFF(4),e.j41(5,"div",37),e.EFF(6),e.k0s()()()}if(2&t){const i=e.XpG();e.Y8G("ngClass",i.isShown?"show":"d-none"),e.R7$(4),e.SpI(" Drop an ",i.uploadType," anywhere to upload "),e.R7$(2),e.SpI(" Upload one ",i.uploadType," at a time ")}}const D=["image/bmp","image/x-windows-bmp","image/jpeg","image/pjpeg","image/png","image/webp"];let zt=(()=>{var t;class a{constructor(n,o,l,c,T,G,k,S,M,R,O){this.storyPageService=n,this.route=o,this.seoService=l,this.uploadImageService=c,this.router=T,this.dialogService=G,this.tostr=k,this.env=S,this.modalService=M,this.authService=R,this.toastService=O,this.isAiIosUrl=!1,this.homeURL="/",this.displayName="",this.photoeditorTool="Photo Editor Tool",this.videoeditortool="Video Editor Tool",this.editorToolName="",this.videoslug="video-editing",this.photoslug="photo-editing",this.allowedImagetoolsMimeTypes=d.b.allowedImagetoolsMimeTypes,this.isLoaded=!1,this.slug="",this.storyview="storyThumb",this.storymobileview="storymobileThumb",this.isShown=!1,this.tabName="splash",this.uploadType="image",this.variant=1,this.files=[],this.errorMmsg=d.b.message.validImageMessageForEdit,this.targetPage="",this.subTool="",this._sId="",this.groupPage="",this.dir="ltr",this.imgQueryParams={imageUrl:"",tabName:"",from:"",editorType:""},this.user=this.authService.currentUser(),this.fileUploadAccept=D.join(","),this.route.params.subscribe(I=>{this.variant=1,this.uploadType="image",this.fileUploadAccept=D.join(","),this.langcode=this.route.snapshot.paramMap.get("langcode"),this.onLoad()}),this.queryParams=this.route.snapshot.queryParams,this.user=this.authService.currentUser(),this.setHomeUrl(),this.loggedInObserver=this.authService.loggedIn.subscribe(I=>{this.user=this.authService.currentUser(),this.setHomeUrl()}),this.usrPropChangedObserver=this.authService.usrPropChanged.subscribe(I=>{this.user=this.authService.currentUser(),this.setHomeUrl()})}setHomeUrl(){this.homeURL=this.user?d.b.AFTER_LOGIN_REDIRATION_URI:"/"}resetValue(){this.toolName="",this.editorType=d.b.defaultEditorType,this.uploadType="",this.variant=this.storyPage.metadata.variant?this.storyPage.metadata.variant:this.variant}onLoad(){if(this.isLoaded=!1,this.slug=this.route.snapshot.paramMap.get("slug"),this.langcode){let n=ee.r[this.langcode];n&&(this.dir=n.dir)}this.slug&&(this.uploadImageService.slug=this.slug,this.getStoryPage())}setLangUrls(){this.storyPageService.storyPageLanguageListing(d.b.api.type,d.b.pageType,this.slug,this.groupPage,n=>{this.seoService.setLangUrls(n.body.storyPage,d.b.api.type,this.slug)},n=>{})}ngOnInit(){}getStoryPage(){this.type=d.b.api.type,this.storyPageService.getStoryPageContent(d.b.api.type,d.b.pageType,this.slug,n=>{if(this.storyPage=n.body.storyPage,this.storyPage){if(this.displayName=this.storyPage.displayName?this.storyPage.displayName:this.displayName,this.type=this.storyPage.type?this.storyPage.type:this.type,this._sId=this.storyPage.sections[0].metadata?._sId?this.storyPage.sections[0].metadata?._sId:this._sId,this.toolName=this.storyPage.sections[0].metadata?this.storyPage.sections[0].metadata.toolName:d.b.defaultPhotoEditTool,this.subTool=this.storyPage.sections[0].metadata?this.storyPage.sections[0].metadata.subTool:this.subTool,this.targetPage=this.storyPage.metadata.targetPage?this.storyPage.metadata.targetPage:"",this.editorType=this.storyPage.metadata.editorType?this.storyPage.metadata.editorType:d.b.defaultEditorType,this.uploadType=this.storyPage.metadata.uploadType?this.storyPage.metadata.uploadType:this.uploadType,this.variant=this.storyPage.metadata.variant?this.storyPage.metadata.variant:this.variant,this.isAiIosUrl=!(!this.storyPage.metadata.editorType||"7"!=this.storyPage.metadata.editorType),this.seoService.updatePageTitle(this.storyPage.pageTitle),this.seoService.updatePageMeta("description",this.storyPage.pageDescription),this.seoService.updateLang(this.langcode),this.groupPage=this.storyPage.targetTool,this.editorType&&this.editorType==w._Y.ImageTool&&(this.fileUploadAccept=this.allowedImagetoolsMimeTypes.join(","),this.errorMmsg=d.b.message.uploadImageToolValidMsg),this.uploadImageService.storyMetaData=this.storyPage?.metadata,this.setLangUrls(),"mixed-banner-header"==this.storyPage.sections[0].type){const l=this.storyPage?.sections[0]?.links[0]?.metadata;this.toolName=l.toolName,this.subTool=l.subTool,this.uploadImageService.storyMetaData.productId=l.id,this.uploadImageService.storyMetaData.storeAddtlTagId=l.subId}this.isLoaded=!0,"photo-editing"==this.type?(this.editorToolName=this.photoeditorTool,this.editorToolName=this.type):"video-editing"==this.type&&(this.editorToolName=this.type,this.editorToolName=this.videoeditortool);let o=this.seoService.generateBreadcrumbSchema([{name:"Home",url:U.c.siteUrl+"/"}
1,{name:this.photoeditorTool,url:U.c.siteUrl+"/"+this.type+"/"},{name:this.displayName,url:U.c.siteUrl+this.router.url}]);this.seoService.addBreadcrumbSchemaToDOM(o)}else this.notFound()},n=>{n&&1e3===n.statusCode&&this.notFound()},this.langcode)}notFound(){this.router.navigate(["/404"],{skipLocationChange:!0})}dropped(n){this.files=n;for(const o of n)o.fileEntry.isFile&&o.fileEntry.file(c=>{this.droppedFile(c)})}fileOver(n){this.isShown=!0,document.documentElement.style.overflow="hidden"}fileLeave(n){this.isShown=!1,document.documentElement.style.overflow="scroll"}droppedFile(n){document.documentElement.style.overflow="auto",this.onFileUploadedDrop(n),this.isShown=!1}onFileUploadedDrop(n){var o=n.type;if(!o)switch(o=n.name.split(".").pop(),o.toLocaleLowerCase()){case"heic":o="image/heic";break;case"heif":o="image/heif"}if(this.editorType==w._Y.ImageTool){if(this.allowedImagetoolsMimeTypes.indexOf(o)<0)return void this.toastService.showErrorOptions({msg:this.errorMmsg,cssClass:"full"});{let l=window.URL.createObjectURL(n),c=this.dialogService.showProgressEditor(d.b.label.uploadingImage);this.uploadImageService.loadPhotoEditingImage(l,n.name,n.size,this.toolName,()=>{setTimeout(()=>{c.close()},100)})}}else{if(D.indexOf(n.type)<0)return void this.tostr.showErrorSingle(this.errorMmsg);{const l=URL.createObjectURL(n);this.loadInputImage(l)}}}loadInputImage(n){this.imgQueryParams.imageUrl=n,this.imgQueryParams.from=this.slug,this.imgQueryParams.tabName=this.toolName,this.imgQueryParams.editorType=this.editorType,this.imgQueryParams.targetPage=this.targetPage,this.imgQueryParams.subTool=this.subTool,this.imgQueryParams.pid=this.uploadImageService.storyMetaData?.productId?this.uploadImageService.storyMetaData?.productId:"0",this.imgQueryParams.stagid=this.uploadImageService.storyMetaData?.storeAddtlTagId?this.uploadImageService.storyMetaData?.storeAddtlTagId:"0";let o=this.dialogService.showProgress();this.uploadImageService.loadInputImage(this.imgQueryParams,()=>{setTimeout(()=>{o.close()},500)})}ngOnDestroy(){this.seoService.setDefaultLang(),this.modalService.hasOpenModals()&&this.modalService.dismissAll("")}}return(t=a).\u0275fac=function(n){return new(n||t)(e.rXU(V.K),e.rXU(P.nX),e.rXU(j.F),e.rXU(L.A),e.rXU(P.Ix),e.rXU(te.g),e.rXU(H.f),e.rXU($.L),e.rXU(g.Bq),e.rXU(A.u),e.rXU(H.f))},t.\u0275cmp=e.VBU({type:t,selectors:[["api-story-page"]],decls:4,vars:2,consts:[["dropZoneLabel","Drop files here","multiple","false","dropZoneClassName","","contentClassName","",3,"onFileOver","accept"],["ngx-file-drop-content-tmp","",1,""],["dropZoneLabel","Drop files here","multiple","false","dropZoneClassName","","contentClassName","",3,"onFileDrop","onFileLeave","accept"],["style","margin-top:72px",4,"ngIf"],[4,"ngIf"],[2,"margin-top","72px"],[4,"ngFor","ngForOf"],[3,"ngSwitch"],[3,"area",4,"ngSwitchCase"],[3,"area","even","toolName","editorType","index","uploadType","targetPage","subTool",4,"ngSwitchCase"],[3,"area","even","index",4,"ngSwitchCase"],[3,"area","type",4,"ngSwitchCase"],[3,"displayName","type","area","slug",4,"ngSwitchCase"],[3,"area","displayName","type","slug",4,"ngSwitchCase"],[3,"displayName","type","area","slug","editorType",4,"ngSwitchCase"],[3,"area","slug","tab","subTool",4,"ngSwitchCase"],[3,"area","toolName","_sId",4,"ngSwitchCase"],[3,"even","area",4,"ngSwitchCase"],[3,"class","area","even","displayName","type","editorType","uploadType","targetPage",4,"ngSwitchCase"],[3,"area","even","displayName","type","editorType","uploadType","targetPage"],[3,"class","area","index","displayName","type","editorType","user","slug","targetPage",4,"ngSwitchCase"],[3,"area","index","displayName","type","editorType","user","slug","targetPage"],[3,"area"],[3,"area","even","toolName","editorType","index","uploadType","targetPage","subTool"],[3,"area","even","index"],[3,"area","type"],[3,"displayName","type","area","slug"],[3,"area","displayName","type","slug"],[3,"displayName","type","area","slug","editorType"],[3,"area","slug","tab","subTool"],[3,"area","toolName","_sId"],[3,"even","area"],[3,"view"],["id","divshow",1,"row","g-0","centered","position-fixed","w-100",3,"ngClass"],[1,"d-flex","align-items-center","justify-content-center","close"],["name","close",1,"f-30",3,"click"],[1,"d-flex","flex-column","align-items-center","justify-content-center","w-100","drag-drop-text","text-center",2,"height","100vh"],[1,"secondary-text","text-semi","mt-3",2,"z-index","-99"]],template:function(n,o){1&n&&(e.j41(0,"ngx-file-drop",0),e.bIt("onFileOver",function(c){return o.fileOver(c)}),e.DNE(1,Ht,3,3,"ng-template",1),e.k0s(),e.j41(2,"ngx-file-drop",2),e.bIt("onFileDrop",function(c){return o.dropped(c)})("onFileLeave",function(c){return o.fileLeave(c)}),e.DNE(3,Kt,7,3,"ng-template",1),e.k0s()),2&n&&(e.FS9("accept",o.fileUploadAccept),e.R7$(2),e.FS9("accept",o.fileUploadAccept))},dependencies:[s.YU,s.Sq,s.bT,s.ux,s.e1,K.n,v.M$,v.vL,ne.k,ie.T,oe.h,ae.C,re.g,se.m,le.c,ce._,pe.T,de.B,ge.N,me.h,_e.V,ue.b,he.$,ve.Q,fe.w,be.s,ye.S,xe.I,Ce.S,Pe.B,we.I,Se._,Me.U,ke,Y.b,z.P,je,ot],styles:["ul[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:flex;font-size:18px;line-height:23px;padding:1.3rem 1rem}ul.premium[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(odd){background:#5063ea}ul.premium[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(2n){background:#475ae7}@media (max-width: 576px){.ltrt-80[_ngcontent-%COMP%]{padding-left:20px!important;padding-right:20px!important}}@media (min-width: 577px){.ltrt-80[_ngcontent-%COMP%]{padding-left:80px!important;padding-right:80px!important}}.active[_ngcontent-%COMP%]{color:#626adf}.show[_ngcontent-%COMP%]{display:block}.centered[_ngcontent-%COMP%]{background:#f8f9f9cc;-webkit-backdrop-filter:blur(40px);backdrop-filter:blur(40px);top:0;z-index:1002}.centered[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-weight:700;font-size:32px;color:#272b34;line-height:43.58px;margin-bottom:0}.centered[_ngcontent-%COMP%] .secondary-text[_ngcontent-%COMP%]{font-size:20px;font-weight:600;color:#272b34;line-height:36px}.drag-drop-text[_ngcontent-%COMP%]{font-weight:700;font-size:32px;color:#272b34;line-height:43.58px;margin-bottom:0}.close[_ngcontent-%COMP%]{cursor:pointer;position:absolute;top:20px;right:20px;background:#272b3466;border-radius:50%;width:40px;height:40px;background-size:contain;padding:0;opacity:1!important;z-index:1003;font-size:0}.close[_ngcontent-%COMP%]:hover{background:#272b34}"]}),a})();var Q=r(630),J=r(22154),Wt=r(1435),Qt=r(69153);const Jt=(t,a)=>({background:t,"background-position-y":a}),Z=t=>({"ps-0 pe-0":t}),B=t=>
1({"mt-32":t}),Zt=t=>({tabDivShowMobileMargin:t}),qt=t=>({"mt-0":t}),en=t=>({"ps-3 pe-3":t}),tn=t=>({"pt-60":t}),nn=t=>({"pt-40":t}),q=t=>[t],on=t=>({"btn-outline-primary":t}),an=t=>({"btn-primary d-inline-flex":t}),rn=t=>({new_item:t}),sn=t=>({"btn-tab-active":t}),ln=t=>({"show active":t});function cn(t,a){if(1&t){const i=e.RV6();e.qex(0),e.j41(1,"button",79),e.bIt("click",function(){const o=e.eBV(i).$implicit,l=e.XpG(3);return e.Njj(l.getApiKey(o))}),e.EFF(2),e.k0s(),e.bVm()}if(2&t){const i=a.$implicit,n=a.index;e.R7$(),e.Y8G("ngClass",e.eq3(2,on,n>="1")),e.R7$(),e.JRh(null==i?null:i.text)}}function pn(t,a){if(1&t&&(e.j41(0,"div",78),e.DNE(1,cn,3,4,"ng-container",38),e.k0s()),2&t){const i=e.XpG(2);e.R7$(),e.Y8G("ngForOf",null==i.bannerHeader?null:i.bannerHeader.links)}}function dn(t,a){if(1&t){const i=e.RV6();e.qex(0),e.j41(1,"button",81),e.bIt("click",function(){const o=e.eBV(i).$implicit,l=e.XpG(3);return e.Njj(l.getApiKey(o))}),e.EFF(2),e.k0s(),e.bVm()}if(2&t){const i=a.$implicit,n=a.index;e.R7$(),e.Y8G("ngClass",e.eq3(2,an,n>="1")),e.R7$(),e.JRh(null==i?null:i.text)}}function gn(t,a){if(1&t&&(e.j41(0,"div",80),e.DNE(1,dn,3,4,"ng-container",38),e.k0s()),2&t){const i=e.XpG(2);e.Y8G("ngClass",i.env.isMobileView?"mt-36":"mt-40"),e.R7$(),e.Y8G("ngForOf",null==i.bannerHeader?null:i.bannerHeader.links)}}function mn(t,a){if(1&t&&(e.j41(0,"div",65)(1,"div",66)(2,"div",67)(3,"a",68),e.EFF(4,"Home"),e.k0s(),e.nrm(5,"pi",69),e.j41(6,"span",70),e.EFF(7,"API"),e.k0s()()(),e.j41(8,"div",71)(9,"div",72)(10,"h1",73),e.EFF(11),e.k0s()(),e.j41(12,"div",74)(13,"p",75),e.EFF(14),e.k0s()(),e.DNE(15,pn,2,1,"div",76)(16,gn,2,2,"div",77),e.k0s()()),2&t){const i=e.XpG();e.R7$(3),e.Y8G("routerLink",e.eq3(5,q,i.homeURL)),e.R7$(8),e.JRh(null==i.bannerHeader?null:i.bannerHeader.title),e.R7$(3),e.JRh(null==i.bannerHeader?null:i.bannerHeader.desc1),e.R7$(),e.Y8G("ngIf",!i.env.isMobileView),e.R7$(),e.Y8G("ngIf",i.env.isMobileView)}}function _n(t,a){1&t&&(e.j41(0,"div",82),e.nrm(1,"div",83),e.j41(2,"div",84),e.nrm(3,"div",85)(4,"div",85)(5,"div",85)(6,"div",85)(7,"div",85)(8,"div",85),e.k0s()())}function un(t,a){if(1&t&&(e.j41(0,"div",86)(1,"a",68)(2,"div",87)(3,"video",88),e.nrm(4,"source",89),e.k0s(),e.j41(5,"div",90)(6,"h3",91),e.EFF(7),e.k0s(),e.j41(8,"p",92),e.EFF(9),e.k0s(),e.nrm(10,"div",93),e.k0s()()()()),2&t){const i=a.$implicit;e.R7$(),e.Y8G("routerLink",e.eq3(6,q,i.subType)),e.R7$(2),e.Y8G("muted","muted"),e.R7$(),e.FS9("src",i.url,e.B4B),e.R7$(2),e.Y8G("ngClass",e.eq3(8,rn,1==(null==i||null==i.metadata?null:i.metadata.isNew))),e.R7$(),e.JRh(null==i?null:i.text),e.R7$(2),e.JRh(null==i?null:i.textBelow)}}function hn(t,a){if(1&t){const i=e.RV6();e.j41(0,"div",94)(1,"button",95),e.bIt("click",function(){e.eBV(i);const o=e.XpG();return e.Njj(o.viewMoreApi())}),e.EFF(2,"View More APIs"),e.k0s()()}}function vn(t,a){if(1&t){const i=e.RV6();e.j41(0,"li")(1,"a",96),e.bIt("click",function(){const o=e.eBV(i).$implicit,l=e.XpG();return e.Njj(l.onCategorySelect(o.id))}),e.j41(2,"li",97),e.EFF(3),e.k0s()()()}if(2&t){const i=a.$implicit,n=e.XpG();e.R7$(2),e.Y8G("ngClass",e.eq3(2,sn,i.id===n.selectedId)),e.R7$(),e.SpI(" ",i.text,"")}}function fn(t,a){if(1&t&&(e.j41(0,"div",98)(1,"div",99)(2,"div",100),e.nrm(3,"div",101),e.k0s()()()),2&t){const i=a.$implicit,n=e.XpG();e.Y8G("ngClass",e.eq3(2,ln,i.id===n.selectedId)),e.R7$(3),e.Y8G("innerHTML",null==i?null:i.textBelow,e.npT)}}function yn(t,a){if(1&t){const i=e.RV6();e.j41(0,"button",18),e.bIt("click",function(){e.eBV(i);const o=e.XpG(5);return e.Njj(o.getApiKey())}),e.EFF(1),e.k0s()}if(2&t){const i=e.XpG(4).$implicit;e.R7$(),e.SpI(" ",i.links[0].text," ")}}function xn(t,a){if(1&t&&(e.j41(0,"p",19),e.EFF(1),e.k0s()),2&t){const i=e.XpG(4).$implicit;e.R7$(),e.JRh(i.links[0].textBelow)}}function Cn(t,a){if(1&t&&(e.j41(0,"div",9)(1,"div",10)(2,"div",11)(3,"div",12),e.nrm(4,"img",13),e.k0s(),e.j41(5,"h1",14),e.EFF(6),e.k0s(),e.j41(7,"h2",15),e.EFF(8),e.k0s(),e.DNE(9,yn,2,1,"button",16)(10,xn,2,1,"p",17),e.k0s()()()),2&t){const i=e.XpG(3).$implicit,n=e.XpG();e.R7$(6),e.JRh(i.desc1),e.R7$(2),e.JRh(i.desc2),e.R7$(),e.Y8G("ngIf",!n.env.isMobileView),e.R7$(),e.Y8G("ngIf",n.env.isMobileView)}}function Pn(t,a){1&t&&(e.qex(0),e.DNE(1,Cn,11,4,"div",8),e.bVm()),2&t&&(e.R7$(),e.Y8G("ngSwitchCase","api-key-congrates-banner"))}function wn(t,a){if(1&t){const i=e.RV6();e.j41(0,"button",18),e.bIt("click",function(){e.eBV(i);const o=e.XpG(5);return e.Njj(o.getApiKey())}),e.EFF(1),e.k0s()}if(2&t){const i=e.XpG(4).$implicit;e.R7$(),e.SpI(" ",i.links[0].text," ")}}function Sn(t,a){if(1&t&&(e.j41(0,"div",9)(1,"div",10)(2,"div",20)(3,"div",12),e.nrm(4,"img",21),e.k0s(),e.j41(5,"h1",22),e.EFF(6),e.k0s(),e.j41(7,"p",23),e.EFF(8),e.k0s(),e.DNE(9,wn,2,1,"button",16),e.j41(10,"p",19),e.EFF(11),e.k0s()()()()),2&t){const i=e.XpG(3).$implicit,n=e.XpG();e.R7$(6),e.JRh(i.title),e.R7$(2),e.JRh(i.desc1),e.R7$(),e.Y8G("ngIf",!n.env.isMobileView),e.R7$(2),e.JRh(i.desc2)}}function Mn(t,a){1&t&&(e.qex(0),e.DNE(1,Sn,12,4,"div",8),e.bVm()),2&t&&(e.R7$(),e.Y8G("ngSwitchCase","api-key-thanks-banner"))}function Tn(t,a){if(1&t&&(e.qex(0),e.DNE(1,Pn,2,1,"ng-container",3)(2,Mn,2,1,"ng-container",3),e.bVm()),2&t){const i=e.XpG(2);e.R7$(),e.Y8G("ngIf","genkey"==i.param),e.R7$(),e.Y8G("ngIf","contact"==i.param)}}function Gn(t,a){if(1&t&&(e.j41(0,"div",48)(1,"p",49),e.EFF(2),e.k0s(),e.j41(3,"p",50),e.EFF(4),e.k0s()()),2&t){const i=e.XpG().$implicit;e.R7$(2),e.JRh(i.text),e.R7$(2),e.SpI("- ",i.textBelow,"")}}function kn(t,a){1&t&&e.DNE(0,Gn,5,2,"ng-template",47)}function Fn(t,a){if(1&t){const i=e.RV6();e.j41(0,"div",24)(1,"div",25)(2,"div",10),e.nrm(3,"pi",26)(4,"pi",27)(5,"pi",28)(6,"pi",29)(7,"pi",30),e.j41(8,"div",31)(9,"div",32)(10,"div",33)(11,"div",34),e.qSk(),e.j41(12,"svg",35)(13,"g",36),e.nrm(14,"path",37),e.k0s(),e.j41(15,"defs")(16,"clipPath",38),e.nrm(17,"rect",39),e.k0s()()()(),e.joV(),e.j41(18,"ngb-carousel",40,0),e.bIt("slide",function(o){e.eBV(i);const l=e.XpG(2);return e.Njj(l.onSlide(o))}),e.DNE(20,kn,1,0,null,2),e.k0s(),e.j41(21,"div",41),e.qSk(),e.j41(22,"svg",42)(23,"g",43),e.nrm(24,"path",44),e.k0s(),e.j41(25,"defs")(26,"clipPath",45),e.nrm(27,"rect",46),e.k0s()()()()()()()()()()}if(2&t){const i=e.XpG().$implicit,n=e.XpG();e.R7$(18),e.Y8G("interval",3e3)("pauseOnHover",n.pauseOnHover)("pauseOnFocus",n.pauseOnFocus),e.R7$(2),e.Y8G("ngForOf",i.links)}}function Rn(t,a){if(1&t&&(e.j41(0,"div",57),e.nrm(1,"img",58),e.k0s()),2&t){const i=a.$implicit;e.R7$(),e.FS9("src",i.url,e.B4B),e.FS9("alt",i.altText)}}function On(t,a){if(1&t&&(e.j41(0,"div",51)(1,"div",52)(2,"h1",53),e.EFF(3,"Trusted by teams around the world"),e.k0s(),e.j41(4,"div",54)(5,"div",55),e.DNE(6,Rn,2,2,"div",56),e.k0s()()()()),2&t){const i=e.XpG().$implicit,n=e.XpG();e.R7$(2),e.Y8G("ngClass",n.env.isMobileView?"text-28 lh-35":"text-32 lh-125"),e.R7$(4),e.Y8G("ngForOf",i.images)}}function In(t,a){if(1&t&&(e.j41(0,"th",63),e.EFF(1),e.k0s()),2&t){const i=a.$implicit;e.R7$(),e.SpI(" ",i.title," ")}}function $n(t,a){1&t&&e.nrm(0,"pi",70)}function En(t,a){1&t&&e.nrm(0,"pi",71)}function An(t,a){if(1&t&&(e.qex(0),e.DNE(1,$n,1,0,"pi",68)(2,En,1,0,"pi",69),e.bVm()),2&t){const i=e.XpG(2).$implicit,n=e.XpG().$implicit,o=e.XpG(3);e.R7$(),e.Y8G("ngIf",0==o.getCompetitorValue(n,i)),e.R7$(),e.Y8G("ngIf",1==o.getCompetitorValue(n,i))}}function Yn(t,a){if(1&t&&e.EFF(0),2&t){const i=e.XpG(2).$implicit,n=e.XpG().$implicit,o=e.XpG(3);e.SpI(" ",o.getCompetitorValue(n,i)," ")}}function jn(t,a){if(1&t&&(e.qex(0),e.DNE(1,An,3,2,"ng-container",67)(2,Yn,1,1,"ng-template",null,1,e.C5r),e.bVm()),2&t){const i=e.sdS(3),n=e.XpG().$implicit,o=e.XpG().$implicit,l=e.XpG(3);e.R7$(),e.Y8G("ngIf",1==l.getCompetitorValue(o,n)||0==l.getCompetitorValue(o,n))("ngIfElse",i)}}function Un(t,a){if(1&t&&(e.j41(0,"td",66),e.DNE(1,jn,4,2,"ng-container",3),e.k0s()),2&t){const i=a.$implicit,n=e.XpG().$implicit,o=e.XpG(3);e.R7$(),e.Y8G("ngIf",""!==o.getCompetitorValue(n,i))}}function Vn(t,a){if(1&t&&(e.j41(0,"tr")(1,"td",64),e.EFF(2),e.k0s(),e.DNE(3,
1Un,2,1,"td",65),e.k0s()),2&t){const i=a.$implicit,n=e.XpG(2).$implicit;e.R7$(2),e.JRh(i.text),e.R7$(),e.Y8G("ngForOf",n.steps)}}function Xn(t,a){if(1&t&&(e.j41(0,"div",59)(1,"div",10)(2,"h1",60),e.EFF(3,"Feature comparison"),e.k0s(),e.j41(4,"div",61)(5,"table")(6,"thead")(7,"tr"),e.nrm(8,"th"),e.DNE(9,In,2,1,"th",62),e.k0s()(),e.j41(10,"tbody"),e.DNE(11,Vn,4,2,"tr",2),e.k0s()()()()()),2&t){const i=e.XpG().$implicit,n=e.XpG();e.R7$(2),e.Y8G("ngClass",n.env.isMobileView?"text-28 lh-125":"text-32 lh-125"),e.R7$(7),e.Y8G("ngForOf",i.steps),e.R7$(2),e.Y8G("ngForOf",null==i?null:i.links)}}function Nn(t,a){if(1&t&&(e.qex(0),e.j41(1,"div",4),e.DNE(2,Tn,3,2,"ng-container",3)(3,Fn,28,4,"div",5)(4,On,7,2,"div",6)(5,Xn,12,3,"div",7),e.k0s(),e.bVm()),2&t){const i=a.$implicit,n=e.XpG();e.R7$(),e.Y8G("ngSwitch",i.type),e.R7$(),e.Y8G("ngIf",n.param),e.R7$(),e.Y8G("ngSwitchCase","api-key-user-feedback"),e.R7$(),e.Y8G("ngSwitchCase","api-key-trusted-partners"),e.R7$(),e.Y8G("ngSwitchCase","api-key-feature-comparison")}}function Dn(t,a){1&t&&(e.qex(0),e.nrm(1,"element-placeholder",72),e.bVm()),2&t&&(e.R7$(),e.Y8G("view","HomePageSlider"))}const Bn=[{path:"",component:(()=>{var t;class a{constructor(n,o,l,c,T,G,k){this.storyPageService=n,this.env=o,this.apiKeyService=l,this.router=c,this.authService=T,this.createPopupService=G,this.ConfigService=k,this.isLoaded=!1,this.showViewMoreButton=!1,this.homeURL="/",this.slug="",this.type=d.b.photoEditor.type,this.emailUs=d.b.emailUs,this.apiDashboard=["/api-dashboard"],this.selectedId=1,this.selectedBannerId=1,this.tools=X.PV.ApiHometoolbar.nav.items,this.homevideo=X.PV.ApiHomeTopBanner.nav.items,this.heading={title:"API Pricing Framework",desc:"Each API call consumes a credit, which is deducted from your Credit Count balance based on the type of call you make."},this.user=this.authService.currentUser(),this.faq=this.apiKeyService.faqApiHome(),this.settingsUpdateObserver=this.ConfigService.update.subscribe(S=>{S&&(this.settings=this.ConfigService.pricingSettings)})}ngOnInit(){setTimeout(()=>{this.user=this.authService.currentUser(),this.user&&this.user.apiKey&&!this.env.isMobileView&&this.router.navigate(this.apiDashboard)}),this.getStoryPage()}onHomeCategorySelect(n){this.selectedBannerId=n}onCategorySelect(n){this.selectedId=n}getApiKey(n=null){n&&n.type==w.VQ.contactForm?this.apiKeyService.openContactSales().result.then(o=>{}):n&&n.type==w.VQ.calender?this.apiKeyService.openGoogleCalendar():this.env.isMobileView?this.createPopupService.openBlockerScreen(!0):this.apiKeyService.generateApiKeyWithQuestion()}redirectToStoryPage(n){this.router.navigate([n])}getStoryPage(){this.storyPageService.getStoryPageContent("apikey-home-page","apikey-home-page","apikey-home-page",n=>{this.storyPage=n.body.storyPage,this.storyPage&&(this.isLoaded=!0,this.bannerHeader=this.storyPage.sections.filter(o=>"api-key-banner-header-v1"==o.type)[0],this.storyPages=this.storyPage.sections.filter(o=>"discover-story-pages"==o.type)[0],this.discoverMore=this.storyPages.links.splice(0,6),this.showViewMoreButton=this.storyPages.links.length>0,this.storyPages.length<=6&&(this.showViewMoreButton=!1))},n=>{},"en")}viewMoreApi(){this.discoverMore=[...this.discoverMore,...this.storyPages.links],this.storyPages.links=[],this.showViewMoreButton=!1}}return(t=a).\u0275fac=function(n){return new(n||t)(e.rXU(V.K),e.rXU($.L),e.rXU(N.H),e.rXU(P.Ix),e.rXU(A.u),e.rXU(Q.A),e.rXU(J.w))},t.\u0275cmp=e.VBU({type:t,selectors:[["app-home"]],decls:175,vars:75,consts:[[1,""],[3,"ngStyle"],["class","d-flex flex-column pt-13 mt-3 apiHomePage",4,"ngIf"],["class","d-flex flex-column",4,"ngIf"],[1,"d-flex","mt-60"],[1,"col-sm-12","col-md-12","col-lg-12","col-xl-12","w-100","mx-auto"],[1,"text-36","text-bold","text-dark","p-3","text-center"],[1,"container"],[1,"row","row-cols-1","row-cols-sm-2","row-cols-md-3"],["class","col mt-40 apiSectionBox","id","events-tab",4,"ngFor","ngForOf"],["class","mt-40 mb-40 text-center",4,"ngIf"],[1,"area-inner","mx-auto","padding-top-bottom60","mt-40",3,"ngClass"],[1,"text-dark","text-bold","text-center","p-3",3,"ngClass"],[1,"row","g-0",3,"ngClass"],[1,"col-xl-6","col-lg-6","col-md-6","d-flex","p-ltrt-36",3,"ngClass"],["name","staricon"],[1,"ms-2"],[1,"text-xxl","text-dark","text-semi","lh-160"],[1,"text-lg","text-dark","lh-160"],[1,"text-xxl","text-dark","text-semi"],[1,"area-inner","mx-auto",3,"ngClass"],[1,"text-bold","text-dark","text-center","lh-125","ps-3","pe-3","ps-lg-0","pe-lg-0",3,"ngClass"],[1,"col-xl-3","col-lg-3","col-md-3","p-3","pt-0","pb-0"],[1,"capacityBox","d-flex","align-items-center","justify-content-center"],[1,"gradientTextColor","text-64","text-bold"],[1,"text-xxl","text-semi","text-dark","text-center","mt-3"],[1,"col-xl-3","col-lg-3","col-md-3","p-3","pt-0","pb-0",3,"ngClass"],[1,"area-inner","mx-auto","padding-top-bottom60",3,"ngClass"],[1,"mx-auto","ps-3","pe-3","ps-lg-0","pe-lg-0",2,"max-width","840px"],[1,"text-bold","text-dark","text-center","lh-125",3,"ngClass"],[1,"text-lg","text-dark","text-center","mt-3"],[1,"area","w-100",3,"ngClass"],[1,"container-fluid","p-ltrt","pad-md"],[1,"integrateBgBox","d-flex","p-2","mx-auto",2,"max-height","413px","height","413px","max-width","880px"],[1,"col-sm-12","col-md-12","col-lg-12","col-xl-12","w-100","integrateBgBoxLight",2,"padding","14px 10px"],[1,"codeBox"],["Class","tab-div-show position-sticky overflow-auto",3,"ngClass"],[1,"nav","nav-pills"],[4,"ngFor","ngForOf"],["id","myTabContent2",1,"tab-content",2,"height","calc(100% - 36px) !important"],["class","tab-pane fade overflow-auto h-100","id","events-tab",3,"ngClass",4,"ngFor","ngForOf"],[1,"button","text-center",3,"ngClass"],["href","https://docs.lightxeditor.com/","target","_blank",1,"btn","btn-primary","btn-h48",3,"ngClass"],[1,"mx-auto","padding-top-bottom100","mt-40",2,"padding-bottom","0 !important",3,"ngClass"],[1,"pt-5",3,"ngClass"],[1,"text-bold","text-dark","text-center","p-2","lh-125","mb-lg-5",3,"ngClass"],[1,"",3,"ngClass"],[1,"mx-auto",2,"max-width","1170px"],[1,"d-flex","align-items-center","justify-content-center","middle-contact-banner",3,"ngClass"],[1,"text-lg"],[3,"href"],[1,"area-inner","mx-auto","pricing-tab-page","mt-40"],[3,"heading"],[1,"w-100","bgFooter","p-top-bottom",3,"ngClass"],[1,"container-fluid","area-inner","pt-0","pb-0"],[1,"row","g-0","align-items-center"],[1,"col-12","text-center"],[1,"text-dark","text-bold","lh-h11",3,"ngClass"],[1,"text-lg","text-dark","mt-8"],[1,"button","text-center","mt-4"],[1,"btn","btn-primary","btn-h48","mt-3",3,"click"],["id","faqs",3,"area"],[1,"w-100","bgFooterBanner","p-top-bottom"],[1,"col-xl-8","col-lg-8","col-md-8","mx-auto"],[1,"btn","btn-primary","btn-h48","mt-3",3,"href"],[1,"d-flex","flex-column","pt-13","mt-3","apiHomePage"],[1,"d-flex","align-items-center",2,"padding","12px 0","margin-top","17px"],[1,"darkThemeBreadcrumb","text-14","ms-3","ms-lg-5","pe-3","h-48","d-flex","align-items-center"],[3,"routerLink"],["name","breadcrumbarrow",1,"ms-2","me-2"],[1,"text-primary"],[1,"main-heading","w-100","text-center","mx-auto","herobanner-text",2,"max-width","1000px"],[1,"mt-10","text-center","ps-3","pe-3","ps-lg-0","pe-lg-0"],[1,"lh-125","text-48"],[1,"mx-auto","mt-3","text-center","ps-3","pe-3","ps-lg-0","pe-lg-0"],[1,"text-xxl","lh-160","text-semi"],["class","button text-center mt-40 mb-40",4,"ngIf"],["class","button text-center mt-36 d-flex justify-content-center",3,"ngClass",4,"ngIf"],[1,"button","text-center","mt-40","mb
1-40"],[1,"btn-top-banner","pointer","mr-8","text-semi","text-lg","d-inline-flex","align-items-center","justify-content-center","border-radius-12","h-48",3,"click","ngClass"],[1,"button","text-center","mt-36","d-flex","justify-content-center",3,"ngClass"],[1,"btn-top-banner","pointer","mb-8","mr-8","text-semi","text-lg","align-items-center","justify-content-center","border-radius-12","h-48",3,"click","ngClass"],[1,"d-flex","flex-column"],[2,"height","400px","background","#DCDBE6","opacity",".3"],[1,"row","g-0","mt-40","justify-content-center",2,"column-gap","24px","row-gap","24px"],[1,"col-3","border-radius-20",2,"height","330px","background","#DCDBE6","opacity",".3"],["id","events-tab",1,"col","mt-40","apiSectionBox"],[1,"bg-white","border-radius-20"],["autoplay","","loop","","playsinline","",1,"responsive","border-radius-20",3,"muted"],["type","video/mp4",3,"src"],[1,"card-body","p-3"],[1,"text-xxl","text-semi","text-black","pb-2","mb-0",3,"ngClass"],[1,"text-lg","text-black"],[1,"d-flex","justify-content-between","align-items-center"],[1,"mt-40","mb-40","text-center"],[1,"btn","btn-primary","btn-h48",3,"click"],["data-toggle","tab",1,"",3,"click"],[1,"nav-item","btn-tab",3,"ngClass"],["id","events-tab",1,"tab-pane","fade","overflow-auto","h-100",3,"ngClass"],[1,"container-fluid","p-0"],[1,"row","g-0","integrateBoxContent"],[1,"mt-4",3,"innerHTML"]],template:function(n,o){1&n&&(e.j41(0,"div",0)(1,"div",1)(2,"div"),e.DNE(3,mn,17,7,"div",2)(4,_n,9,0,"div",3),e.k0s(),e.j41(5,"div",4)(6,"div",5)(7,"div")(8,"div",6),e.EFF(9),e.k0s(),e.j41(10,"div",7)(11,"div",8),e.DNE(12,un,11,10,"div",9),e.k0s(),e.DNE(13,hn,3,0,"div",10),e.k0s()()()()(),e.j41(14,"div",11)(15,"div",12),e.EFF(16,"Why LightX API?"),e.k0s(),e.j41(17,"div")(18,"div",13)(19,"div",14),e.nrm(20,"pi",15),e.j41(21,"div",16)(22,"div",17),e.EFF(23,"Ultra-Fast Performance"),e.k0s(),e.j41(24,"div",18),e.EFF(25,"Optimised algorithms that are designed for fast execution and reduced processing time."),e.k0s()()(),e.j41(26,"div",14),e.nrm(27,"pi",15),e.j41(28,"div",16)(29,"div",17),e.EFF(30,"Instant Setup"),e.k0s(),e.j41(31,"div",18),e.EFF(32,"Integrates smoothly with minimal code and quick setup. "),e.k0s()()()(),e.j41(33,"div",13)(34,"div",14),e.nrm(35,"pi",15),e.j41(36,"div",16)(37,"div",17),e.EFF(38,"Regular Updates"),e.k0s(),e.j41(39,"div",18),e.EFF(40,"Stay ahead of the competition with timely updates and the latest features."),e.k0s()()(),e.j41(41,"div",14),e.nrm(42,"pi",15),e.j41(43,"div",16)(44,"div",17),e.EFF(45,"Ultimate Data Protection"),e.k0s(),e.j41(46,"div",18),e.EFF(47,"Top-tier encryption, secure access controls, and continuous monitoring to safeguard your data."),e.k0s()()()(),e.j41(48,"div",13)(49,"div",14),e.nrm(50,"pi",15),e.j41(51,"div",16)(52,"div",17),e.EFF(53,"Market-Leading Pricing"),e.k0s(),e.j41(54,"div",18),e.EFF(55,"Benefit from the lowest prices in the market without compromising on quality."),e.k0s()()(),e.j41(56,"div",14),e.nrm(57,"pi",15),e.j41(58,"div",16)(59,"div",17),e.EFF(60,"Save Development Time"),e.k0s(),e.j41(61,"div",18),e.EFF(62,"Utilize ready-made AI photo editing tools to avoid building from scratch."),e.k0s()()()(),e.j41(63,"div",13)(64,"div",14),e.nrm(65,"pi",15),e.j41(66,"div",16)(67,"div",19),e.EFF(68,"Powerful Infrastructure"),e.k0s(),e.j41(69,"div",18),e.EFF(70,"Servers designed to run your application smoothly even during peak times."),e.k0s()()(),e.j41(71,"div",14),e.nrm(72,"pi",15),e.j41(73,"div",16)(74,"div",19),e.EFF(75,"Dedicated Support Team"),e.k0s(),e.j41(76,"div",18),e.EFF(77,"Receive personalised assistance tailored to your needs with our API support."),e.k0s()()()()()(),e.j41(78,"div",20)(79,"div",21),e.EFF(80,"Our Impact: Transforming Millions of Images Monthly"),e.k0s(),e.j41(81,"div",13)(82,"div",22)(83,"div",23)(84,"span",24),e.EFF(85,"50M+"),e.k0s()(),e.j41(86,"div",25),e.EFF(87,"Edits performed on our platform each month. "),e.k0s()(),e.j41(88,"div",26)(89,"div",23)(90,"span",24),e.EFF(91,"5M+"),e.k0s()(),e.j41(92,"div",25),e.EFF(93,"Backgrounds removed from images."),e.k0s()(),e.j41(94,"div",26)(95,"div",23)(96,"span",24),e.EFF(97,"1M+"),e.k0s()(),e.j41(98,"div",25),e.EFF(99,"AI images generated monthly."),e.k0s()(),e.j41(100,"div",26)(101,"div",23)(102,"span",24),e.EFF(103,"10+"),e.k0s()(),e.j41(104,"div",25),e.EFF(105,"AI tools with powerful editing features. "),e.k0s()()()(),e.j41(106,"div",27)(107,"div",28)(108,"div",29),e.EFF(109,"Easy Integration with Popular Frameworks"),e.k0s(),e.j41(110,"div",30),e.EFF(111,"Integrate our API with CSS, React, Tailwind, JS, and Python smoothly for versatile and powerful applications."),e.k0s()(),e.j41(112,"div")(113,"div",31)(114,"div",32)(115,"div",33)(116,"div",34)(117,"div",35)(118,"div",36)(119,"ul",37),e.DNE(120,vn,4,4,"li",38),e.k0s()()(),e.j41(121,"div",39),e.DNE(122,fn,4,4,"div",40),e.k0s(),e.j41(123,"div",41)(124,"a",42),e.EFF(125,"Read API Documentation"),e.k0s()()()()()()()(),e.j41(126,"div",43)(127,"div",44)(128,"div",45),e.EFF(129,"Our Pricing"),e.k0s(),e.j41(130,"div",46)(131,"div",46),e.nrm(132,"lightX-api-key-pricing-plan"),e.k0s()(),e.j41(133,"div",47)(134,"div",48)(135,"p",49),e.EFF(136,"L
1ooking for something more? We will create a customized AI for your brand, starting from $3,000 USD per month. "),e.j41(137,"a",50),e.EFF(138,"Contact Us"),e.k0s(),e.EFF(139," for more details!"),e.k0s()()()()(),e.j41(140,"div",51)(141,"div",46)(142,"div",29),e.EFF(143,"API Pricing Framework"),e.k0s(),e.j41(144,"p",30),e.EFF(145,"Each API call consumes a credit, which is deducted from your Credit Count balance based on the type of call you make."),e.k0s()(),e.nrm(146,"lightX-tool-uses-credit-details",52),e.k0s(),e.j41(147,"div",53)(148,"div",54)(149,"div",55)(150,"div",56)(151,"h2",57),e.EFF(152," Start with Free Credits"),e.k0s(),e.j41(153,"p",58),e.EFF(154,"Get started with LightX APIs today! "),e.nrm(155,"br"),e.EFF(156),e.k0s()(),e.j41(157,"div",59)(158,"button",60),e.bIt("click",function(){return o.getApiKey()}),e.EFF(159,"Get Your API Key For Free"),e.k0s()()()()(),e.j41(160,"div"),e.nrm(161,"story-faq-area",61),e.k0s(),e.j41(162,"div")(163,"div",62)(164,"div",54)(165,"div",55)(166,"div",56)(167,"h2",57),e.EFF(168,"Need Assistance? We're Here to Help!"),e.k0s(),e.j41(169,"div",63)(170,"p",58),e.EFF(171,"Contact us, and our team will be happy to assist you with any questions or customised requirements you have."),e.k0s()()(),e.j41(172,"div",59)(173,"a",64),e.EFF(174,"Contact Us"),e.k0s()()()()()()()),2&n&&(e.R7$(),e.Y8G("ngStyle",e.l_i(52,Jt,o.env.isMobileView?"":"radial-gradient(82.03% 73.92% at 41.75% 26.1%, rgba(229, 204, 255, 0.30) 0%, rgba(204, 204, 255, 0.30) 30.59%, rgba(255, 246, 204, 0.30) 60.11%, rgba(250, 250, 252, 0.00) 100%) no-repeat",o.env.isMobileView?"":"-355px")),e.R7$(2),e.Y8G("ngIf",o.isLoaded),e.R7$(),e.Y8G("ngIf",!o.isLoaded),e.R7$(5),e.JRh(null==o.storyPages?null:o.storyPages.title),e.R7$(3),e.Y8G("ngForOf",o.discoverMore),e.R7$(),e.Y8G("ngIf",o.showViewMoreButton),e.R7$(),e.Y8G("ngClass",e.eq3(55,Z,o.env.isMobileView)),e.R7$(),e.Y8G("ngClass",o.env.isMobileView?"text-28 lh-35":"text-36"),e.R7$(3),e.Y8G("ngClass",o.env.isMobileView?"mt-0":"mt-5"),e.R7$(),e.Y8G("ngClass",o.env.isMobileView?"mt-4":"mt-8"),e.R7$(7),e.Y8G("ngClass",o.env.isMobileView?"mt-32":"mt-8"),e.R7$(7),e.Y8G("ngClass",o.env.isMobileView?"mt-0":"mt-5"),e.R7$(),e.Y8G("ngClass",o.env.isMobileView?"mt-32":"mt-4"),e.R7$(7),e.Y8G("ngClass",o.env.isMobileView?"mt-32":"mt-4"),e.R7$(7),e.Y8G("ngClass",o.env.isMobileView?"mt-0":"mt-5"),e.R7$(),e.Y8G("ngClass",o.env.isMobileView?"mt-32":"mt-4"),e.R7$(7),e.Y8G("ngClass",o.env.isMobileView?"mt-32":"mt-4"),e.R7$(7),e.Y8G("ngClass",o.env.isMobileView?"mt-0":"mt-5"),e.R7$(),e.Y8G("ngClass",o.env.isMobileView?"mt-32":"mt-4"),e.R7$(7),e.Y8G("ngClass",o.env.isMobileView?"mt-32":"mt-4"),e.R7$(7),e.Y8G("ngClass",o.env.isMobileView?"ps-0 pe-0 pt-0 mt-40":"padding-top-bottom100"),e.R7$(),e.Y8G("ngClass",o.env.isMobileView?"text-28 lh-35":"text-36"),e.R7$(2),e.Y8G("ngClass",o.env.isMobileView?"mt-4":"mt-60"),e.R7$(7),e.Y8G("ngClass",e.eq3(57,B,o.env.isMobileView)),e.R7$(6),e.Y8G("ngClass",e.eq3(59,B,o.env.isMobileView)),e.R7$(6),e.Y8G("ngClass",e.eq3(61,B,o.env.isMobileView)),e.R7$(6),e.Y8G("ngClass",e.eq3(63,Z,o.env.isMobileView)),e.R7$(2),e.Y8G("ngClass",o.env.isMobileView?"text-28 lh-35":"text-36"),e.R7$(5),e.Y8G("ngClass",o.env.isMobileView?"mt-4":"mt-60"),e.R7$(5),e.Y8G("ngClass",e.eq3(65,Zt,o.env.isMobileView)),e.R7$(2),e.Y8G("ngForOf",o.tools),e.R7$(2),e.Y8G("ngForOf",o.tools),e.R7$(),e.Y8G("ngClass",o.env.isMobileView?"mt-36":"mt-40"),e.R7$(),e.Y8G("ngClass",o.env.isMobileView?"mt-2":"mt-8"),e.R7$(2),e.Y8G("ngClass",e.eq3(67,qt,o.env.isMobileView)),e.R7$(),e.Y8G("ngClass",e.eq3(69,en,o.env.isMobileView)),e.R7$(),e.Y8G("ngClass",o.env.isMobileView?"text-28 lh-35":"text-36"),e.R7$(2),e.Y8G("ngClass",e.eq3(71,tn,!o.env.isMobileView&&(null==o.settings||null==o.settings.credit?null:o.settings.credit.showOffer))),e.R7$(),e.Y8G("ngClass",e.eq3(73,nn,!o.env.isMobileView)),e.R7$(3),e.Y8G("ngClass",o.env.isMobileView?"mt-36":"mt-40"),e.R7$(3),e.Mz_("href","mailto:",o.emailUs,"",e.B4B),e.R7$(4),e.Y8G("ngClass",o.env.isMobileView?"mt-0":"mt-60"),e.R7$(),e.Y8G("ngClass",o.env.isMobileView?"text-28 lh-35":"text-36"),e.R7$(4),e.Y8G("heading",o.heading),e.R7$(),e.Y8G("ngClass",o.env.isMobileView?"mt-0":"mt-60"),e.R7$(4),e.Y8G("ngClass",o.env.isMobileView?"text-28 lh-35":"text-40"),e.R7$(5),e.SpI("Receive ",null==o.apiKeyService||null==o.apiKeyService.apiConfig?null:o.apiKeyService.apiConfig.aiApiKeyFreeCredits," free credits instantly on API signup \u2013 no credit card required."),e.R7$(5),e.Y8G("area",o.faq),e.R7$(6),e.Y8G("ngClass",o.env.isMobileView?"text-28 lh-35":"text-40"),e.R7$(6),e.Mz_("href","mailto:",o.emailUs,"",e.B4B))},dependencies:[s.YU,s.Sq,s.bT,s.B3,P.Wk,Y.b,z.P,Wt.U,Qt.x],styles:[".p-ltrt-36[_ngcontent-%COMP%]{padding-left:36px;padding-right:36px}@media (max-width: 576px){.p-ltrt-36[_ngcontent-%COMP%]{padding-left:16px;padding-right:16px}}.capacityBox[_ngcontent-%COMP%]{height:180px;border-radius:16px;border:1px solid #F3DEFF;background:#626adf0d}.gradientTextColor[_ngcontent-%COMP%]{background:linear-gradient(91deg,#865cff .43%,#ac93ff 99.63%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}.bgFooter[_ngcontent-%COMP%]{background:#626adf0d}.bgFooterBanner[_ngcontent-%COMP%]{background:linear-gradient(90deg,#f3deff -4%,#e0e2ff)}.integrateBgBox[_ngcontent-%COMP%]{border-radius:20px;background:linear-gradient(118deg,#181a20 32.82%,#595b71 97.45%)}.integrateBgBoxLight[_ngcontent-%COMP%]{border-radius:16px;border:2px solid rgba(255,255,255,.1);background:#35374b80;box-shadow:0 70.796px 141.592px #ffffff26 inset,0 7.08px 14.159px #0000000d,0 21.239px 42.478px #0000000d,0 42.478px 84.955px #0000001a;-webkit-backdrop-filter:blur(14.1592350006px);backdrop-filter:blur(14.1592350006px)}.btn-tab[_ngcontent-%COMP%]{font-weight:600;width:156px;background:#ffffff0d;height:48px;border-radius:12px;color:#c9cad4;font-size:16px;align-items:center;display:flex;justify-content:center;margin:0 6px;cursor:pointer}.btn-tab[_ngcontent-%COMP%]:hover{background:#ffffff1a}.btn-tab-active[_ngcontent-%COMP%]{background:#fff!important;color:#28282a!important}.btn-tab-home-active[_ngcontent-%COMP%]{background:#626adf!important;color:#fff!important}[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}[_ngcontent-%COMP%]::-webkit-scrollbar-track{box-shadow:inset 0 0 5px #58596b;border-radius:12px;margin-top:5px;margin-bottom:5px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#b0b3bf;border-radius:12px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#b0b3bf}.mt-60[_ngcontent-%COMP%]{margin-top:60px}.mb-40[_ngcontent-%COMP%]{margin-bottom:40px}.pt-40[_ngcontent-%COMP%]{padding-top:40px}.middle-contact-banner[_ngcontent-%COMP%]{border-radius:36px;border:1px solid #E2E3E9;background:#fff;padding:40px 28px}.middle-contact-banner[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#181a20}.middle-contact-banner[_ngcontent-%COMP%] p[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#8600c5;text-decoration:underline}.tabDivShowMobileMargin[_ngcontent-%COMP%]{margin-left:-10px;margin-right:-10px}.codeBox[_ngcontent-%COMP%] [_ngcontent-%COMP%]::-webkit-scrollbar{display:none}@media (max-width: 576px){.btn-top-banner[_ngcontent-%COMP%]{display:none}}.btn-top-banner[_ngcontent-%COMP%]{min-width:232px}"]}),a})()},{path:"contact-success",component:(()=>{var t;class a{constructor(n,o,l,c,T,G,k,S){this.storyPageService=n,this.env=o,this.apiKeyService=l,this.createPopupService=c,this.route=T,this.authService=G,this.ConfigService=k,this.router=S,this.isLoaded=!1,this.apiDashboard=["/api-dashboard"],this.paused=!1,this.unpauseOnArrow=!0,this.pauseOnIndicator=!1,this.pauseOnHover=!0,this.pauseOnFocus=!0,this.user=this.authService.currentUser();
1const M=this.route.snapshot.queryParamMap;if(M&&M.get("m")){let R=M.get("m");this.param=R,this.settingsUpdateObserver=this.ConfigService.update.subscribe(O=>{O&&(this.settings=this.ConfigService.pricingSettings)})}}ngOnInit(){this.user=this.authService.currentUser(),this.getStoryPage()}getApiKey(n=null){this.env.isMobileView?this.createPopupService.openBlockerScreen(!0):this.apiKeyService.generateApiKeyWithQuestion()}getStoryPage(){this.storyPageService.getStoryPageContent("apikey-success-page","apikey-success-page","apikey-success-page",n=>{n.body.storyPage&&(this.storyPage=n.body.storyPage,this.isLoaded=!0)},n=>{},"en")}getCompetitorValue(n,o){const l=o.type.toLowerCase();return n?.metadata.values.filter(c=>c?.type==l)[0].text}onSlide(n){this.unpauseOnArrow&&n.paused&&(n.source===g.iP.ARROW_LEFT||n.source===g.iP.ARROW_RIGHT)&&this.togglePaused(),this.pauseOnIndicator&&!n.paused&&n.source===g.iP.INDICATOR&&this.togglePaused()}togglePaused(){}}return(t=a).\u0275fac=function(n){return new(n||t)(e.rXU(V.K),e.rXU($.L),e.rXU(N.H),e.rXU(Q.A),e.rXU(P.nX),e.rXU(A.u),e.rXU(J.w),e.rXU(P.Ix))},t.\u0275cmp=e.VBU({type:t,selectors:[["apikey-success"]],decls:2,vars:2,consts:[["carousel",""],["textValue",""],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"ngSwitch"],["class","container-fluid bg-white",4,"ngSwitchCase"],["class","container-fluid bg-white pt-13 pb-13",4,"ngSwitchCase"],["class","container-fluid bg-white pt-100 pb-100",4,"ngSwitchCase"],["class","container-fluid","style","margin-top: 73px;",4,"ngSwitchCase"],[1,"container-fluid",2,"margin-top","73px"],[1,"area-inner","mx-auto","position-relative","p-0"],[1,"success-container","d-flex","align-items-center","justify-content-center","w-100","flex-column","pt-100","pb-100"],[1,"success-icon"],["src","https://static.lightxeditor.com/assets/images/coin-lottie-l-anim.gif","width","120px","height","120px"],[1,"mt-3","mb-2","text-xxl","text-semi","grey-600","lh-125"],[1,"mb-24","grey-800","text-center","text-bold","lh-125",2,"font-size","48px"],["class","mb-2 btn btn-primary btn-h48","style","padding: 0px 48px;",3,"click",4,"ngIf"],["class","text-14 grey-800 text-semi",4,"ngIf"],[1,"mb-2","btn","btn-primary","btn-h48",2,"padding","0px 48px",3,"click"],[1,"text-14","grey-800","text-semi"],[1,"success-container","d-flex","align-items-center","justify-content-center","w-100","flex-column","pt-14","pb-14"],["src","https://static.lightxeditor.com/assets/images/payment-success-new.png","width","180px","height","160px"],[1,"mt-48","mb-10","text-24","text-bold","grey-800","lh-125"],[1,"mb-24","text-lg","grey-800","text-center"],[1,"container-fluid","bg-white"],[1,"testimonialHomePage"],["name","circle",1,"ci-7","d-block","position-absolute","f-12"],["name","circle",1,"ci-8","d-block","position-absolute","f-12"],["name","circle",1,"ci-9","d-none","d-lg-block","position-absolute","f-12"],["name","circle",1,"ci-10","d-none","d-lg-block","position-absolute","f-12"],["name","circle",1,"ci-11","d-none","d-lg-block","position-absolute","f-12"],[1,"container-fluid","d-flex","align-items-center","justify-content-center","m-0",2,"min-height","560px","padding","0 10% 0 10%"],[1,"row","g-0","w-100"],[1,"testimonial-text","w-100"],[1,"",2,"width","9.4%"],["width","101","height","77","viewBox","0 0 101 77","fill","none","xmlns","http://www.w3.org/2000/svg",1,"responsive"],["clip-path","url(#clip0_2215_53758)"],["d","M45.021 77H0.310539V38.577C0.113617 33.066 1.29648 27.5931 3.75171 22.6553C5.94675 18.5505 8.99174 14.961 12.6836 12.126C16.4084 9.29572 20.5275 7.02602 24.9099 5.3891C29.3994 3.69166 33.84 2.17898 38.2317 0.851082L44.8205 12.8245C41.8915 13.9075 39.0407 15.1913 36.2883 16.6666C34.1618 17.7903 32.2116 19.2199 30.5002 20.9098C29.0322 22.3956 27.9073 24.1847 27.2044 26.1515C26.4628 28.387 26.1082 30.7327 26.1561 33.0876H45.0262L45.021 77ZM100.311 77H55.6997V38.577C55.4355 33.4964 56.421 28.4285 58.5698 23.8171C60.7187 19.2057 63.9654 15.1915 68.0255 12.126C71.7279 9.28984 75.8311 7.01942 80.2007 5.3891C84.6894 3.69166 89.13 2.17898 93.5225 0.851082L100.206 12.8245C97.2767 13.9075 94.4259 15.1913 91.6735 16.6666C89.547 17.7909 87.5965 19.2205 85.8841 20.9098C84.4178 22.3964 83.2939 24.1853 82.5909 26.1515C81.8493 28.387 81.4947 30.7327 81.5426 33.0876H100.311V77Z","fill","#E2E3E9","fill-opacity","0.5"],["id","clip0_2215_53758"],["width","100","height","76.1489","fill","white","transform","translate(100.311 77) rotate(-180)"],[3,"slide","interval","pauseOnHover","pauseOnFocus"],[1,"",2,"width","9.4%","float","right"],["width","100","height","77","viewBox","0 0 100 77","fill","none","xmlns","http://www.w3.org/2000/svg",1,"responsive"],["clip-path","url(#clip0_2215_53761)"],["d","M55.2895 0H100V38.423C100.197 43.934 99.0141 49.4069 96.5588 54.3447C94.3638 58.4495 91.3188 62.039 87.627 64.874C83.9021 67.7043 79.783 69.974 75.4007 71.6109C70.9111 73.3083 66.4705 74.821 62.0789 76.1489L55.49 64.1755C58.419 63.0925 61.2699 61.8087 64.0222 60.3334C66.1488 59.2097 68.0989 57.7801 69.8104 56.0902C71.2783 54.6044 72.4032 52.8153 73.1061 50.8485C73.8478 48.613 74.2023 46.2673 74.1545 43.9124H55.2843L55.2895 0ZM0 0H44.6109V38.423C44.875 43.5036 43.8896 48.5715 41.7407 53.1829C39.5919 57.7943 36.3452 61.8085 32.285 64.874C28.5826 67.7102 24.4794 69.9806 20.1098 71.6109C15.6212 73.3083 11.1806 74.821 6.78802 76.1489L0.104837 64.1755C3.03384 63.0925 5.88467 61.8087 8.63703 60.3334C10.7636 59.2091 12.7141 57.7795 14.4265 56.0902C15.8928 54.6036 17.0167 52.8147 17.7196 50.8485C18.4613 48.613 18.8158 46.2673 18.7679 43.9124H0V0Z","fill","#E2E3E9","fill-opacity","0.5"],["id","clip0_2215_53761"],["width","100","height","76.1489","fill","white"],["ngbSlide",""],[1,"col-xl-9","col-lg-9","col-md-10","col-sm-11","col-12","mx-auto","mt-3","mb-3","text-center"],[1,"text-24","text-semi","mb-0","lh-p"],[1,"text-primary","text-semi","mt-3"],[1,"container-fluid","bg-white","pt-13","pb-13"],[1,"area-inner","mx-auto","position-relative","p-0",2,"max-width","1100px"],[1,"text-bold","grey-800","mb-14","d-flex","align-items-center","justify-content-center","w-100","text-center",3,"ngClass"],[1,"position-relative","partner-col","logo-container"],[1,"logo-track"],["width","221","height","48","class","d-inline-flex align-items-center justify-content-center pr-100",4,"ngFor","ngForOf"],["width","221","height","48",1,"d-inline-flex","align-items-center","justify-content-center","pr-100"],[3,"src","alt"],[1,"container-fluid","bg-white","pt-100","pb-100"],[1,"text-bold","grey-800","mt-3","mb-11","d-flex","align-items-center","justify-content-center","w-100","text-center",3,"ngClass"],[1,"comparison-table","table-container","new-scroll-behave"],["class","text-semi lh-125",4,"ngFor","ngForOf"],[1,"text-semi","lh-125"],[1,"text-14","text-semi","text-left"],["class","text-14 text-semi",4,"ngFor","ngForOf"],[1,"text-14","text-semi"],[4,"ngIf","ngIfElse"],["name","blankdash",4,"ngIf"],["name","ticktick",4,"ngIf"],["name","blankdash"],["name","ticktick"],[3,"view"]],template:function(n,o){1&n&&e.DNE(0,Nn,6,5,"ng-container",2)(1,Dn,2,1,"ng-container",3),2&n&&(e.Y8G("ngForOf",null==o.storyPage?null:o.storyPage.sections),e.R7$(),e.Y8G("ngIf",!o.isLoaded))},dependencies:[s.YU,s.Sq,s.bT,s.ux,s.e1,K.n,g.Oj,g.bD,Y.b],styles:['.mt-48[_ngcontent-%COMP%]{margin-top:48px!important}.mb-24[_ngcontent-%COMP%]{margin-bottom:24px}.pt-100[_ngcontent-%COMP%]{padding-top:100px}.pb-100[_ngcontent-%COMP%]{padding-bottom:100px}.pl-100[_ngcontent-%COMP%]{padding-left:100px}.pr-100[_ngcontent-%COMP%]{padding-right:100px}.comparison-table[_ngcontent-%COMP%]{border-radius:20px;border:1px solid var(--colors-COMMON-Placeholder, #EFEEF2);background:var(--colors-NEW-GREY-Opaque-00, #FFF);box-shadow:2px 4px 8px #0000000d;overflow-x:auto}.comparison-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.comparison-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%]{background:linear-gradient(90deg,#fc5cff0d -4%,#2520f60d)}.comparison-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-align:center;color:#000;font-size:20px;padding:28px 48px;white-space:nowrap}.comparison-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom:.5px solid var(--colors-NEW-GREY-Opaque-100, #E2E3E9);color:#606576;padding:15.5px 48px;text-align:center;white-space:nowrap}.comparison-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{text-align:left!important}.comparison-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(3) td[_ngcontent-%COMP%]{padding:40px 48px 16px;border:1.5px solid var(--colors-NEW-GREY-Opaque-100, #E2E3E9);border-left:0px;border-right:0px;font-size:16px!important;color:#000!important}.comparison-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child td[_ngcontent-%COMP%]{border-bottom:0px!important}.testimonialHomePage[_ngcontent-%COMP%] .ci-7[_ngcontent-%COMP%]{width:23px;height:23px;color:#cbed74;right:10%;top:11.2%}.testimonialHomePage[_ngcontent-%COMP%] .ci-8[_ngcontent-%COMP%]{width:23px;height:23px;color:#ff8fe680;left:17%;margin-top:29px}.testimonialHomePage[_ngcontent-%COMP%] .ci-9[_ngcontent-%COMP%]{width:36px;height:36px;color:#fe9ca580;left:22%;bottom:11.7%}.testimonialHomePage[_ngcontent-%COMP%] .ci-10[_ngcontent-%COMP%]{width:12px;height:12px;color:#f07f7f80;right:7%;bottom:5.5%}.testimonialHomePage[_ngcontent-%COMP%] .ci-11[_ngcontent-%COMP%]{width:12px;height:12px;color:#fbc99780;left:7%;bottom:35.5%}.new-scroll-behave[_ngcontent-%COMP%]{-ms-overflow-style:none;scrollbar-width:none}.new-scroll-behave[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.partner-col[_ngcontent-%COMP%]:before, .partner-col[_ngcontent-%COMP%]:after{position:absolute;content:"";top:0;left:0;height:48px;width:48px;background:linear-gradient(90deg,#fff,#ffffff80 75.33%,#fff0 94.17%);z-index:99}.partner-col[_ngcontent-%COMP%]:after{right:0!important;left:auto!important;transform:rotate(180deg)}.partner-col[_ngcontent-%COMP%] .new-scroll-behave[_ngcontent-%COMP%]{overflow-x:auto}@media (max-width: 600px){.pl-100[_ngcontent-%COMP%]{padding-left:56px!important}.pr-100[_ngcontent-%COMP%]{padding-right:56px!important}.pt-100[_ngcontent-%COMP%]{padding-top:60px!important}.pb-100[_ngcontent-%COMP%]{padding-bottom:60px!important}}.logo-container[_ngcontent-%COMP%]{overflow:hidden;width:100%;position:relative}.logo-container[_ngcontent-%COMP%] .logo-track[_ngcontent-%COMP%]{display:flex;animation:_ngcontent-%COMP%_scroll 30s linear infinite;width:max-content}.logo-container[_ngcontent-%COMP%]:hover .logo-track[_ngcontent-%COMP%]{animation-play-state:paused}@keyframes _ngcontent-%COMP%_scroll{0%{transform:translate(0)}to{transform:translate(-50%)}}']}),a})()},{path:":slug",component:zt}];let Ln=(()=>{var t;class a{}return(t=a).\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.$C({type:t}),t.\u0275inj=e.G2t({imports:[P.iI.forChild(Bn),P.iI]}),a})();var Hn=r(37054);let Kn=(()=>{var t;class a{}return(t=a).\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.$C({type:t,bootstrap:[E]}),t.\u0275inj=e.G2t({providers:[g.Lw],imports:[s.MD,h.YN,x.G,h.X1,Ln,g.Gk,v.RI,g.c9,g.h_,g.UN,m.W,p.T,_.e,u.r,b.Y,C.MQ,f.K,W.B,Hn.d]}),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.