1"use strict";(self.webpackChunklightx=self.webpackChunklightx||[]).push([[7263],{27263:(P,x,a)=>{a.d(x,{O:()=>_});var e=a(60177),p=a(33391),h=a(74710),b=a(79421),m=a(84341),u=a(13435),f=a(54438);let _=(()=>{var g;class v{}return(g=v).\u0275fac=function(C){return new(C||g)},g.\u0275mod=f.$C({type:g}),g.\u0275inj=f.G2t({providers:[u.K],imports:[m.YN,m.X1,e.MD,b.r,h.iI,p._f,p.zr]}),v})()},13435:(P,x,a)=>{a.d(x,{K:()=>B});var e=a(54438),p=a(49449),h=a(33391),b=a(74710),m=a(94223),u=a(60177);const f=["myBar"],_=(s,d)=>({"d-none":s,"h-full":d});function g(s,d){if(1&s&&(e.j41(0,"div",6)(1,"div",7),e.nrm(2,"div",8,0),e.k0s(),e.j41(4,"div",9)(5,"span",10),e.EFF(6),e.k0s(),e.j41(7,"span",11),e.EFF(8,"This might take few seconds."),e.k0s()()()),2&s){const i=e.XpG();e.AVh("add-margin",i.isVideo),e.R7$(6),e.SpI("Your ",i.isVideo?"video":"image"," is generating...")}}function v(s,d){if(1&s){const i=e.RV6();e.j41(0,"div",12)(1,"div",13),e.nrm(2,"img",14),e.k0s(),e.j41(3,"div",15)(4,"span",10),e.EFF(5,"Your AI Generation is ready!"),e.k0s()(),e.j41(6,"div",16)(7,"button",17),e.bIt("click",function(){e.eBV(i);const n=e.XpG();return e.Njj(n.closeM())}),e.EFF(8," View Generation "),e.k0s()()()}}function w(s,d){if(1&s){const i=e.RV6();e.j41(0,"div",12)(1,"div",13),e.nrm(2,"img",18),e.k0s(),e.j41(3,"div",15)(4,"span",10),e.EFF(5,"It took longer than expected."),e.k0s()(),e.j41(6,"div",19)(7,"button",20),e.bIt("click",function(){e.eBV(i);const n=e.XpG();return e.Njj(n.closeM())}),e.EFF(8,"Cancel"),e.k0s(),e.j41(9,"button",21),e.bIt("click",function(){e.eBV(i);const n=e.XpG();return e.Njj(n.closeM("retry"))}),e.EFF(10,"Retry"),e.k0s()()()}}function C(s,d){1&s&&e.nrm(0,"img",26)}function y(s,d){1&s&&e.nrm(0,"img",27)}function k(s,d){1&s&&e.nrm(0,"img",28)}function A(s,d){if(1&s){const i=e.RV6();e.j41(0,"div",12)(1,"div",13),e.DNE(2,C,1,0,"img",22)(3,y,1,0,"img",23)(4,k,1,0,"img",24),e.k0s(),e.j41(5,"div",15)(6,"span",10),e.EFF(7),e.k0s()(),e.j41(8,"div",16)(9,"button",25),e.bIt("click",function(){e.eBV(i);const n=e.XpG();return e.Njj(n.closeM())}),e.EFF(10,"Okay"),e.k0s()()()}if(2&s){const i=e.XpG();e.R7$(2),e.Y8G("ngIf",!("5041"==i.statusCode||"5047"==i.statusCode)),e.R7$(),e.Y8G("ngIf","5041"==i.statusCode),e.R7$(),e.Y8G("ngIf","5047"==i.statusCode),e.R7$(3),e.JRh(i.msg)}}function E(s,d){if(1&s){const i=e.RV6();e.j41(0,"div",29)(1,"span",30),e.EFF(2,' Once completed, find your generated video under "AI Generations". '),e.k0s(),e.j41(3,"button",31),e.bIt("click",function(){e.eBV(i);const n=e.XpG();return e.Njj(n.goTo(1))}),e.EFF(4,"Go to AI Generations"),e.k0s(),e.j41(5,"button",32),e.bIt("click",function(){e.eBV(i);const n=e.XpG();return e.Njj(n.goTo(2))}),e.EFF(6,"Notify When Done"),e.k0s()()}}let S=(()=>{var s;class d{constructor(t,n,r,o){this.subsService=t,this.modalService=n,this.router=r,this.aiPhotoService=o,this.close=new e.bkB,this.step=1,this.msg="",this.adsRemove=!1,this.statusCode="",this.isVideo=!1}ngOnInit(){setTimeout(()=>{this.move()})}move(){const t=document.getElementById("myBar");let n=1;const o=this.isVideo?.35:1;this.interValId=setInterval(()=>{n>=100?clearInterval(this.interValId):(n+=o,n<98&&(t.style.width=n+"%"))},this.isVideo?250:100)}closeM(t=null){this.interValId&&clearInterval(this.interValId),setTimeout(()=>{t?this.close.emit({retry:!0}):this.close.emit()})}upgrade(){this.interValId&&clearInterval(this.interValId),this.subsService.upgradeAiPlanCheckout("","","Progress Bar Add Credits",()=>{this.close.emit()})}ngOnDestroy(){this.interValId&&clearInterval(this.interValId)}goTo(t){this.aiPhotoService.inProgress=!1,1===t?(this.modalService.dismissAll(),this.router.navigate(["/my/ai-generations"])):(this.interValId&&clearInterval(this.interValId),this.close.emit({notify:!0}))}}return(s=d).\u0275fac=function(t){return new(t||s)(e.rXU(p.n),e.rXU(h.Bq),e.rXU(b.Ix),e.rXU(m.s))},s.\u0275cmp=e.VBU({type:s,selectors:[["gen-progress-bar-ads"]],viewQuery:function(t,n){if(1&t&&e.GBs(f,5),2&t){let r;e.mGM(r=e.lsd())&&(n.cpText=r.first)}},inputs:{step:"step",msg:"msg",statusCode:"statusCode",showAds:"showAds",isVideo:"isVideo"},outputs:{close:"close"},decls:7,vars:9,consts:[["myBar",""],[1,"circle-progress","d-flex","flex-column","align-items-center","justify-content-center","w-100"],[1,"w-100","d-flex","align-items-center","justify-content-center","flex-column",2,"height","calc(100vh - 60px) !important",3,"ngClass"],["class","progress-container","style","max-width: 230px;",3,"add-margin",4,"ngIf"],["class","d-flex align-items-center justify-content-center flex-column w-100",4,"ngIf"],["class","d-flex align-items-center justify-content-center position-fixed w-100 flex-column ps-3 pe-3 pb-9 bottom-btn-col text-center d-xl-none",4,"ngIf"],[1,"progress-container",2,"max-width","230px"],[1,"progress-bar-container","w-100","border-radius-8","overflow-hidden"],["id","myBar",1,"progress-bar","border-radius-8"],[1,"d-flex","align-items-center","justify-content-center","mt-10","flex-column","text-center",2,"line-height","25.
16px"],[1,"text-lg","text-semi","grey-800","pt-1","w-100"],[1,"text-lg","text-semi","grey-800","w-100"],[1,"d-flex","align-items-center","justify-content-center","flex-column","w-100"],[1,"d-flex","align-items-center","justify-content-center"],["src","https://static.lightxeditor.com/assets/images/genration-success-thumb.png","width","128px","height","128px","border","0"],[1,"d-flex","align-items-center","justify-content-center","mt-10","mb-10","flex-column","text-center",2,"line-height","25.6px"],[1,"d-flex","align-items-center","justify-content-center","w-100","pt-1"],[1,"btn","btn-primary","btn-h48","pe-3","ps-3","text-center",2,"min-width","240px",3,"click"],["src","https://static.lightxeditor.com/assets/images/creation-in-queue.png","width","126px","height","114px"],[1,"d-flex","align-items-center","justify-content-between","w-100","pt-1"],[1,"btn","btn-outline-primary","btn-h48","pe-3","ps-3","text-center","me-2",2,"width","50%",3,"click"],[1,"btn","btn-primary","btn-h48","pe-3","ps-3","text-center",2,"width","50%",3,"click"],["src","https://static.lightxeditor.com/assets/images/genration-no-data-thumb.png","width","128px","height","128px",4,"ngIf"],["src","https://static.lightxeditor.com/assets/images/genration-error-thumb.png","width","126px","height","114px",4,"ngIf"],["src","https://static.lightxeditor.com/assets/images/no-face-detected.png","width","126px","height","114px",4,"ngIf"],[1,"btn","btn-primary","btn-h48","pe-3","ps-3","text-center",2,"min-width","200px",3,"click"],["src","https://static.lightxeditor.com/assets/images/genration-no-data-thumb.png","width","128px","height","128px"],["src","https://static.lightxeditor.com/assets/images/genration-error-thumb.png","width","126px","height","114px"],["src","https://static.lightxeditor.com/assets/images/no-face-detected.png","width","126px","height","114px"],[1,"d-flex","align-items-center","justify-content-center","position-fixed","w-100","flex-column","ps-3","pe-3","pb-9","bottom-btn-col","text-center","d-xl-none"],[1,"text-13","grey-500","text-medium","lh-160","text-regular","mb-3"],[1,"btn","btn-primary","btn-h48","text-lg","w-100",3,"click"],[1,"btn","btn-outline-primary","btn-h48","text-lg","w-100","mt-2",3,"click"]],template:function(t,n){1&t&&(e.j41(0,"div",1)(1,"div",2),e.DNE(2,g,9,3,"div",3)(3,v,9,0,"div",4)(4,w,11,0,"div",4)(5,A,11,4,"div",4)(6,E,7,0,"div",5),e.k0s()()),2&t&&(e.R7$(),e.Y8G("ngClass",e.l_i(6,_,n.adsRemove,!n.showAds)),e.R7$(),e.Y8G("ngIf",1==n.step),e.R7$(),e.Y8G("ngIf",2==n.step),e.R7$(),e.Y8G("ngIf",3==n.step),e.R7$(),e.Y8G("ngIf",4==n.step),e.R7$(),e.Y8G("ngIf",n.isVideo&&2!=n.step))},dependencies:[u.YU,u.bT],styles:['.spinner-text[_ngcontent-%COMP%]{font-style:normal;font-size:32px;line-height:44px;text-align:center;color:#000}.spinner-text-secondary[_ngcontent-%COMP%]{font-size:20px;color:#272b34;line-height:36px}.bottom-strip[_ngcontent-%COMP%]{background:linear-gradient(0deg,#fffc,#fffc),linear-gradient(90deg,#fc5cff66 -4%,#2520f666);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);left:0;z-index:999}.loader-cancel[_ngcontent-%COMP%]{background-color:#ffffff80!important;border-radius:12px;font-style:normal;font-size:16px;line-height:22px;text-align:center;color:#626adf!important;text-decoration:none;border:none!important}.loader-cancel[_ngcontent-%COMP%]:hover{background-color:#fffffffc!important;color:#626adf!important;border:none!important}@media (max-width: 576px){.bottom-strip[_ngcontent-%COMP%]{display:block!important;padding:0 20px;text-align:center}.bottom-strip[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{margin-right:0!important;margin-bottom:16px}}.progress-container[_ngcontent-%COMP%]{width:100%;overflow:hidden}.progress-bar-container[_ngcontent-%COMP%]{position:relative;height:18px}.progress-bar-container[_ngcontent-%COMP%]:before{position:absolute;border-radius:8px;content:"";padding:1.6px;border:0px;background:linear-gradient(to right,#ffc866,#c850c0,#613df5 66%,#b09df9);-webkit-mask:linear-gradient(to right,#ffc866 0%,#c850c0 33%,#613df5 66%,#b09df9 100%) content-box,linear-gradient(to right,#ffc866 0%,#c850c0 33%,#613df5 66%,#b09df9 100%);-webkit-mask-composite:xor;mask-composite:exclude;width:inherit;height:18px;overflow:hidden}
1.progress-bar[_ngcontent-%COMP%]{height:18px;width:0;background:linear-gradient(to right,#fff1bf,#ec458d 49%,#474ed7);text-align:center;transition:width .1s ease;border-radius:8px;overflow:hidden}.bottom-ads-250[_ngcontent-%COMP%]{bottom:0;left:0}.bottom-ads-250[_ngcontent-%COMP%] .remove-ads-col[_ngcontent-%COMP%] .btn-remove[_ngcontent-%COMP%]{padding:10px 16px;height:36px;border-radius:24px;border:1px solid #FFF;background:#4a4f5e66;outline:none}.bottom-ads-250[_ngcontent-%COMP%] .bottom-ads-slot[_ngcontent-%COMP%]{height:250px;min-height:250px;max-height:250px}.showpreview-overlay[_ngcontent-%COMP%]{display:none;background:#0003;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);width:100%;height:100%;top:0;bottom:0;z-index:999}.icon-box[_ngcontent-%COMP%]{background:#626adf0d;height:44px;width:44px}.h-full[_ngcontent-%COMP%]{height:100vh!important}.bottom-btn-col[_ngcontent-%COMP%]{bottom:0;left:0}.add-margin[_ngcontent-%COMP%]{margin-top:-120px}']}),d})();var G=a(45312),c=a(16471),I=a(96427),M=a(68010),O=a(91367),F=a(95301);let B=(()=>{var s;class d{constructor(t,n,r,o,l){this.authService=t,this.subService=n,this.loginService=r,this.modalService=o,this.dataService=l,this.rewardLoaded=!1,this.rewardedAdSlot=null}aiCreditPlanCheckout(t,n=null){this.authService.currentUser()?this.subService.aiCreditPlanCheckout(t,n):this.loginService.openLoginDialog(o=>{setTimeout(()=>{const l=this.authService.currentUser();l&&t?.checkPro&&l.creditPurchased?n&&n({generate:!0}):(l&&t?.checkPro&&!l.creditPurchased&&"cancel"!=o||l&&"cancel"!=o)&&this.subService.aiCreditPlanCheckout(t,n)},500)},!1)}displayAds(t,n=!1){const r=this.modalService.open(S,{backdrop:"static",windowClass:"editorProgressScreen w-100 m-progress-screen new-progress-screen",size:"sm",centered:!0,backdropClass:"loader-bdrop-new"});return r.componentInstance.msg="",r.componentInstance.showAds=t,r.componentInstance.isVideo=n,r.result.then(o=>{}),r}displayRewardAds(){this.rewardLoaded=!1,googletag.cmd.push(()=>{if(this.rewardedAdSlot=googletag.defineOutOfPageSlot("/22639388115/rewarded_web_example",googletag.enums.OutOfPageFormat.REWARDED),this.rewardedAdSlot){this.rewardedAdSlot.addService(googletag.pubads()),googletag.pubads().addEventListener("rewardedSlotReady",o=>{o&&(this.rewardedSlotEvent=o)});const t=()=>{this.getFreeCredits(()=>{this.authService.updateUserAiConis("getFreeCredits")})},n=o=>{this.rewardLoaded=!0,o.slot===this.rewardedAdSlot&&o.isEmpty&&(this.rewardLoaded=!1)},r=()=>{this.rewardedAdSlot&&(googletag.destroySlots([this.rewardedAdSlot]),this.rewardedAdSlot=null,this.rewardLoaded=!1,googletag.pubads().removeEventListener("rewardedSlotClosed",r),googletag.pubads().removeEventListener("rewardedSlotGranted",t),googletag.pubads().removeEventListener("slotRenderEnded",n))};googletag.pubads().addEventListener("rewardedSlotClosed",r),googletag.pubads().addEventListener("rewardedSlotGranted",t),googletag.pubads().addEventListener("slotRenderEnded",n),googletag.enableServices(),googletag.display(this.rewardedAdSlot)}})}makeRewardedVisible(){this.rewardedSlotEvent&&this.rewardedSlotEvent.makeRewardedVisible()}laodGoogletag(t=null){if(window.googletag||(window.googletag={cmd:[]}),!document.querySelector('script[src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"]')){const n=document.createElement("script");n.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js",n.async=!0,n.crossOrigin="anonymous",document.head.appendChild(n)}t&&t()}getFreeCredits(t=null,n=null){this.dataService.post(G.c.baseUrl+"andor-login-1.0/user/addUserCredit",{creditType:5}).subscribe(o=>{o&&2e3===o.statusCode?t(o.body):n(o)},o=>{n&&n()})}getCreditConfig(t,n,r=null){switch(n){case c.Fs.Avatar:return t?.avatarify;case c.Fs.Selfie:return t.selfie;case c.Fs.Filter:return t.aifilter;case c.Fs.AiDesign:return t.aidesign;case c.Fs.FaceAnimate:return t.aifaceanimate;case c.Fs.Portrait:return t.selfie;case c.Fs.SketchToImage:case c.Fs.ImageToImage:return t.image2image_gpt;case c.Fs.PhotoShoot:return r==c.do.Person_Photoshoot?t?.modelphotoshoot:r==c.do.Product_Photoshoot?t?.photoshoot:r==c.do.ai_headshot?t?.headshot:r==c.do.Duo_Photoshoot?t?.aiduoshoot:t.photoshoot;default:return 1}}fetchImageAsBlob(t){return new Promise((n,r)=>{const o=new XMLHttpRequest;o.open("GET",t),o.responseType="blob",o.onload=function(){if(200===o.status){const l=o.response,j=o.getResponseHeader("Content-Type");
1n({blob:l,contentType:j})}else r(new Error(`HTTP error! Status: ${o.status}`))},o.onerror=function(){r(new Error("Network error while fetching image."))},o.send()})}customFileClick(t,n){if("true"!=localStorage.getItem("doNotShow")){const o=this.modalService.open(I.I,{centered:!0,size:"md",backdrop:"static",windowClass:"tryon-custom-popup"});o.componentInstance.PopUpType=n,o.result.then(l=>{l&&t.click()})}else t.click()}}return(s=d).\u0275fac=function(t){return new(t||s)(e.KVO(M.u),e.KVO(p.n),e.KVO(O.H),e.KVO(h.Bq),e.KVO(F.u))},s.\u0275prov=e.jDH({token:s,factory:s.\u0275fac}),d})()}}]);
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.