PageSourceSearch

https://static.lightxeditor.com/web/5930.46977deda00d0fa6.js

js lightxeditor.com collected 2026-09-24 09:24:11 UTC 53,559 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunklightx=self.webpackChunklightx||[]).push([[5930],{1441:(R,x,m)=>{m.d(x,{h:()=>fe});var e=m(54438),t=m(68465),v=m(43695),d=m(60177),I=m(16471),C=m(3781),j=m(62261),S=m(90521),G=m(68010),y=m(10634),O=m(630),F=m(80006),N=m(93391),k=m(33391),M=m(84341),B=m(68064),A=m(23486),E=m(58377),L=m(33645),$=m(86820);const P=o=>({"d-none":o});function D(o,u){if(1&o&&(e.j41(0,"div",7),e.nrm(1,"img",8),e.j41(2,"span",9),e.EFF(3,"Your Generated images will be displayed here"),e.k0s()()),2&o){const i=e.XpG(2);e.Y8G("ngClass",e.eq3(1,P,i.aiImagesA.length+i.aiImagesB.length>1))}}function V(o,u){if(1&o&&(e.j41(0,"div",16),e.nrm(1,"img",17),e.k0s()),2&o){const i=e.XpG().$implicit;e.R7$(),e.FS9("src",null==i?null:i.urls[0],e.B4B)}}function Y(o,u){if(1&o){const i=e.RV6();e.j41(0,"div",14),e.bIt("click",function(){const r=e.eBV(i).$implicit,c=e.XpG(3);return e.Njj(c.addImage(r))}),e.DNE(1,V,2,1,"div",15),e.k0s()}if(2&o){const i=u.$implicit;e.R7$(),e.Y8G("ngIf",null==i?null:i.urls)}}function X(o,u){if(1&o){const i=e.RV6();e.j41(0,"div",14),e.bIt("click",function(){const r=e.eBV(i).$implicit,c=e.XpG(3);return e.Njj(c.addImage(r))}),e.j41(1,"div",18),e.nrm(2,"img",17),e.k0s()()}if(2&o){const i=u.$implicit;e.R7$(2),e.FS9("src",i.urls[0],e.B4B)}}function U(o,u){if(1&o&&(e.j41(0,"div",10)(1,"div",11),e.DNE(2,Y,2,1,"div",12),e.k0s(),e.j41(3,"div",13),e.DNE(4,X,3,1,"div",12),e.k0s()()),2&o){const i=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",i.aiImagesA),e.R7$(2),e.Y8G("ngForOf",i.aiImagesB)}}function Z(o,u){if(1&o){const i=e.RV6();e.j41(0,"div",3)(1,"div",4,0),e.bIt("scrolled",function(){e.eBV(i);const r=e.XpG();return e.Njj(r.scrollImageEnd())}),e.DNE(3,D,4,3,"div",5)(4,U,5,2,"div",6),e.k0s()()}if(2&o){const i=e.XpG();e.R7$(),e.Y8G("scrollWindow",!1)("infiniteScrollDistance",.5)("infiniteScrollUpDistance",2)("infiniteScrollThrottle",50),e.R7$(2),e.Y8G("ngIf",!i.user||i.user&&i.isLoaded&&!i.aiImagesA.length),e.R7$(),e.Y8G("ngIf",i.aiImagesA.length+i.aiImagesB.length)}}function K(o,u){if(1&o){const i=e.RV6();e.j41(0,"span",33),e.bIt("click",function(){e.eBV(i);const r=e.XpG(2);return r.isSeeLess=!0,e.Njj(r.setScroll.emit(!0))}),e.EFF(1,"See all"),e.k0s()}}function W(o,u){if(1&o){const i=e.RV6();e.j41(0,"span",34),e.bIt("click",function(){e.eBV(i);const r=e.XpG(2);return r.isSeeLess=!1,e.Njj(r.setScroll.emit(!1))}),e.EFF(1,"See less"),e.k0s()}}function H(o,u){if(1&o&&(e.j41(0,"div",16),e.nrm(1,"img",17),e.k0s()),2&o){const i=e.XpG().$implicit;e.R7$(),e.FS9("src",null==i?null:i.urls[0],e.B4B)}}function p(o,u){if(1&o){const i=e.RV6();e.j41(0,"div",14),e.bIt("click",function(){const r=e.eBV(i).$implicit,c=e.XpG(2);return e.Njj(c.addImage(r))}),e.DNE(1,H,2,1,"div",15),e.k0s()}if(2&o){const i=u.$implicit;e.R7$(),e.Y8G("ngIf",null==i?null:i.urls)}}function f(o,u){if(1&o&&(e.j41(0,"div",16),e.nrm(1,"img",17),e.k0s()),2&o){const i=e.XpG().$implicit;e.R7$(),e.FS9("src",null==i?null:i.urls[0],e.B4B)}}function g(o,u){if(1&o){const i=e.RV6();e.j41(0,"div",14),e.bIt("click",function(){const r=e.eBV(i).$implicit,c=e.XpG(2);return e.Njj(c.addImage(r))}),e.DNE(1,f,2,1,"div",15),e.k0s()}if(2&o){const i=u.$implicit;e.R7$(),e.Y8G("ngIf",null==i?null:i.urls)}}function a(o,u){if(1&o){const i=e.RV6();e.j41(0,"div",14),e.bIt("click",function(){const r=e.eBV(i).$implicit,c=e.XpG(2);return e.Njj(c.addImage(r))}),e.j41(1,"div",18),e.nrm(2,"img",17),e.k0s()()}if(2&o){const i=u.$implicit;e.R7$(2),e.FS9("src",i.urls[0],e.B4B)}}function n(o,u){if(1&o&&(e.j41(0,"div",19)(1,"div",20),e.nrm(2,"input",21),e.j41(3,"div",22)(4,"button",23)(5,"h5",24),e.EFF(6,"Generated Results"),e.k0s()(),e.j41(7,"button",25),e.DNE(8,K,2,0,"span",26)(9,W,2,0,"span",27),e.k0s()(),e.j41(10,"div",28)(11,"div",29)(12,"div",30),e.DNE(13,p,2,1,"div",12),e.k0s()()(),e.j41(14,"div",31)(15,"div",32)(16,"div",29)(17,"div",11),e.DNE(18,g,2,1,"div",12),e.k0s(),e.j41(19,"div",13),e.DNE(20,a,3,1,"div",12),e.k0s()()()()()()),2&o){const i=e.XpG();e.Y8G("ngClass",e.eq3(10,P,i.aiImagesA.length+i.aiImagesB.length<1)),e.R7$(2),e.FS9("value",i.isSeeLess),e.R7$(5),e.Y8G("ngClass",e.eq3(12,P,i.aiImagesA.length+i.aiImagesB.length<3)),e.R7$(),e.Y8G("ngIf",!i.isSeeLess),e.R7$(),e.Y8G("ngIf",i.isSeeLess),e.R7$(),e.Y8G("ngClass",e.eq3(14,P,i.isSeeLess)),e.R7$(3),e.Y8G("ngForOf",i.aiImages.slice(0,2)),e.R7$(),e.Y8G("ngClass",e.eq3(16,P,!i.isSeeLess)),e.R7$(4),e.Y8G("ngForOf",i.aiImagesA),e.R7$(2),e.Y8G("ngForOf",i.aiImagesB)}}let l=(()=>{var o;class u{constructor(s,r){this.aiGenService=s,this.authService=r,this.aiImages=[],this.aiImagesA=[],this.aiImagesB=[],this.isLoaded=!1,this.inProgress=!1,this.isProductsEnd=!1,this.featureType="text2image",this.pageSize=10,this.genImageEvent=ne
1w e.bkB,this.setScroll=new e.bkB,this.aiImage=[],this.isSeeLess=!1,this.aiGenService.aiGenImagesBehavior.subscribe(c=>{this.aiImages.unshift(c),this.aiImagesB=[],this.aiImagesA=[],this.setAiImagesToColumn(this.aiImages)}),this.loggedInObserver=this.authService.loggedIn.subscribe(c=>{this.user=this.authService.currentUser()})}ngOnInit(){this.user=this.authService.currentUser()}ngAfterViewInit(){this.aiImagesA=[],this.aiImagesB=[],this.aiImages=[],setTimeout(()=>{"gen-results"==this.type?(this.aiImages=this.aiGenService.getAiImages(),this.isLoaded=!0,this.setAiImagesToColumn(this.aiImages)):this.getAllAiGenerations()})}addImage(s){s.imgUrl=s.urls[0],s.outputImgUrl=s.urls[0],this.genImageEvent.emit(s)}getAllAiGenerations(){this.inProgress=!0;const s=this.aiImages&&this.aiImages.length>0?this.aiImages[this.aiImages.length-1].createdDate:(new Date).getTime();this.aiGenService.getAiGeneratedImages([this.featureType],s,r=>{this.isLoaded=!0;let c=r.body?r.body.projectAssets:[];c&&c.length>0&&(this.aiImages=this.aiImages.concat(c),this.setAiImagesToColumn(c)),(c.length<this.pageSize||!c.length)&&(this.isProductsEnd=!0),setTimeout(()=>{this.inProgress=!1},600)},r=>{this.isLoaded=!0,this.inProgress=!1})}scrollImageEnd(){this.inProgress||!this.isProductsEnd&&this.isLoaded&&this.getAllAiGenerations()}setAiImagesToColumn(s){this.isLoaded&&s&&s.length&&s.forEach((r,c)=>{const b=JSON.parse(JSON.stringify(r));c%2==0?-1==this.aiImagesA.findIndex(T=>T.assetId==b.assetId)&&this.aiImagesA.push(b):-1==this.aiImagesB.findIndex(T=>T.assetId==b.assetId)&&this.aiImagesB.push(b)})}ngOnDestroy(){this.loggedInObserver&&this.loggedInObserver.unsubscribe()}}return(o=u).\u0275fac=function(s){return new(s||o)(e.rXU(S.K),e.rXU(G.u))},o.\u0275cmp=e.VBU({type:o,selectors:[["generations-media-list"]],inputs:{type:"type",featureType:"featureType",aiImage:"aiImage"},outputs:{genImageEvent:"genImageEvent",setScroll:"setScroll"},decls:2,vars:2,consts:[["aiImageSb",""],["class","pane-section ps-content-top-0 generations-media-list","style","height: calc(100% - 60px);",4,"ngIf"],["class","common-container m-0 p-0",3,"ngClass",4,"ngIf"],[1,"pane-section","ps-content-top-0","generations-media-list",2,"height","calc(100% - 60px)"],["customScrollDir","","infiniteScroll","",1,"scroll-container","darkscroll","pb-3",3,"scrolled","scrollWindow","infiniteScrollDistance","infiniteScrollUpDistance","infiniteScrollThrottle"],["class","d-flex w-100 align-items-center justify-content-center no-generation pt-14 flex-column",3,"ngClass",4,"ngIf"],["class","pt-1 pb-14","style","display: flex;",4,"ngIf"],[1,"d-flex","w-100","align-items-center","justify-content-center","no-generation","pt-14","flex-column",3,"ngClass"],["src","https://static.lightxeditor.com/assets/images/generated-images.png","width","126px","height","114px"],[1,"d-flex","text-center","f-14","grey-300","text-semi","mt-9"],[1,"pt-1","pb-14",2,"display","flex"],["id","column",1,"colA","allgeneration"],["class","image-thumb-template",3,"click",4,"ngFor","ngForOf"],["id","column",1,"colB","allgeneration"],[1,"image-thumb-template",3,"click"],["class","col-a",4,"ngIf"],[1,"col-a"],["loading","lazy","alt","","title","",1,"image","template__img",2,"opacity","1",3,"src"],[1,"col-b"],[1,"common-container","m-0","p-0",3,"ngClass"],["id","sticker-panel-00"],["type","hidden","id","gen-isLess",3,"value"],[1,"d-flex","align-items-center","justify-content-between","ps-3","pr-9",2,"min-height","40px"],[1,"btn-acc-title","w-auto"],[1,"m-0","btn","btn-link","text-normal","text-semi","grey-100","ps-0"],[1,"btn-collapse","p-0","ps-1","pe-1","lh-p1","justify-content-end",2,"width","auto !important","margin-right","0px",3,"ngClass"],["class","collapse-text text-11 grey-300 text-semi",3,"click",4,"ngIf"],["class","text-11 grey-300 text-semi",3,"click",4,"ngIf"],[1,"colors-bg","ps-3","pr-9",3,"ngClass"],[1,"d-flex"],["id","column",1,"colA"],[1,"content",3,"ngClass"],[1,"colors-bg","ps-3","pr-9"],[1,"collapse-text","text-11","grey-300","text-semi",3,"click"],[1,"text-11","grey-300","text-semi",3,"click"]],template:function(s,r){1&s&&e.DNE(0,Z,5,6,"div",1)(1,n,21,18,"div",2),2&s&&(e.Y8G("ngIf",!r.type),e.R7$(),e.Y8G("ngIf","gen-results"==r.type))},dependencies:[d.YU,d.Sq,d.bT,L.q,$.D],styles:[".drag-media[_ngcontent-%COMP%]{height:120px;border:2px dotted #bbb;text-align:center}.input-group-text[_ngcontent-%COMP%]{background-color:#fff!important}.input-group-append[_ngcontent-%COMP%]{margin-left:0!important}.image-thumb[_ngcontent-%COMP%]{width:47%!important;float:left;margin:4px;position:relative}.image-thumb[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{padding:0}.powered-by[_ngcontent-%COMP%]{position:absolute;z-index:99;bottom:8px;width:149px;height:32px;border-radius:12px}#column[_ngcontent-%COMP%]{width:100%;column-count:2;-moz-column-gap:12px;-webkit-column-gap:12px}#column[_ngcontent-%COMP%]   .image-thumb-template[_ngcontent-%COMP%]{width:100%;position:relative;padding-right:0}#column[_ngcontent-%COMP%]   .image-thumb-template[_ngcontent-%COMP%]   .col-a[_ngcontent-%COMP%], #column[_ngcontent-%COMP%]   .image-thumb-template[_ngcontent-%COMP%]   .col-b[_ngcontent-%COMP%]{transition:all .3s ease;top:0;right:0;bottom:0;left:0}#column[_ngcontent-%COMP%]   .image-thumb-template[_ngcontent-%COMP%]   .col-a[_ngcontent-%COMP%]:hover, #column[_ngcontent-%COMP%]   .image-thumb-template[_ngcontent-%COMP%]   .col-b[_ngcontent-%COMP%]:hover{transform:scale(1.03)}#column[_ngcontent-%COMP%]   .image-thumb-template[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{transition:none!important}#column[_ngcontent-%COMP%]   .image-thumb-template[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]:hover{transform:none!important}.duration-display[_ngcontent-%COMP%]{position:absolute;bottom:4px;right:4px;color:#fff;background:#0006;width:26px;height:16px;border-radius:4px;text-align:center;font-size:11px}.notfoundImage[_ngcontent-%COMP%]{text-align:center;color:#fff;padding:10px 10px 0}.tab-child-item[_ngcontent-%COMP%]{overflow:hidden;width:100%;height:0px;opacity:0;transition-duration:.35s;transition-property:opacity,transform;transition-timing-function:ease-in-out}.tab-child-active[_ngcontent-%COMP%]{height:100%;opacity:1;transform:translate(0)}.show-display[_ngcontent-%COMP%]{display:flex!important}.colA.allgeneration[_ngcontent-%COMP%]{width:100%;column-count:inherit!important;-moz-column-gap:normal!important;-webkit-column-gap:normal!important}.colA.allgeneration[_ngcontent-%COMP%]   .image-thumb-template[_ngcontent-%COMP%]{width:100%!important;display:inline-flex;padding-right:6px!important}.colB.allgeneration[_ngcontent-%COMP%]{width:100%;column-count:inherit!important;-moz-column-gap:normal!important;-webkit-column-gap:normal!important}.colB.allgeneration[_ngcontent-%COMP%]   .image-thumb-template[_ngcontent-%COMP%]{width:100%!important;display:inline-flex;padding-left:6px!important}"]}),u})();var h=m(69711),_=m(14845);
1const w=["popOver"],z=["scrollContainer"],ee=["commonContainer"],Q=o=>({active:o}),te=o=>({"no-padding overflow-hidden":o}),ie=o=>({"padding-bottom":o}),ne=o=>({"tab-child-active":o}),oe=o=>({"tab-child-active h-100 position-absolute":o}),se=o=>({hello:o}),q=(o,u,i)=>({"info-up":o,"info-blue":u,"info-red":i}),re=o=>({"d-none":o});function ae(o,u){if(1&o&&(e.j41(0,"span",55),e.EFF(1),e.k0s()),2&o){const i=e.XpG(3);e.R7$(),e.SpI("",i.aiGenService.textPrompt.length,"/450")}}function ce(o,u){if(1&o&&(e.j41(0,"span",60),e.EFF(1),e.k0s()),2&o){const i=e.XpG(4);e.R7$(),e.SpI("",i.negativePrompt.length,"/450")}}function le(o,u){if(1&o){const i=e.RV6();e.j41(0,"div",56)(1,"div",57)(2,"textarea",58),e.mxI("ngModelChange",function(r){e.eBV(i);const c=e.XpG(3);return e.DH7(c.negativePrompt,r)||(c.negativePrompt=r),e.Njj(r)}),e.bIt("blur",function(){e.eBV(i);const r=e.XpG(3);return e.Njj(r.focusOut())})("focus",function(){e.eBV(i);const r=e.XpG(3);return e.Njj(r.focusIn())}),e.k0s(),e.DNE(3,ce,2,1,"span",59),e.k0s()()}if(2&o){const i=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.sMw(5,q,i.negativePrompt.length,i.isNgPromptFocus,450==i.negativePrompt.length)),e.R7$(),e.AVh("blue-active",i.isNgPromptFocus),e.R50("ngModel",i.negativePrompt),e.R7$(),e.Y8G("ngIf",i.negativePrompt.length)}}function de(o,u){if(1&o&&e.nrm(0,"img",61),2&o){const i=e.XpG(3);e.Y8G("src",i.selectedStyle.thumbUrl,e.B4B)}}function me(o,u){if(1&o){const i=e.RV6();e.qex(0),e.j41(1,"div",25)(2,"div",26)(3,"div",27)(4,"span",28),e.EFF(5,"Enter Prompt"),e.nrm(6,"pi",29),e.k0s(),e.j41(7,"div",30)(8,"pi",31,3),e.bIt("shown",function(){e.eBV(i);const r=e.XpG(2);return e.Njj(r.isPopoverOpen=!0)})("hidden",function(){e.eBV(i);const r=e.XpG(2);return e.Njj(r.isPopoverOpen=!1)}),e.k0s()()(),e.j41(10,"div",32)(11,"text-prompt-animation",33),e.bIt("changePrompt",function(r){e.eBV(i);const c=e.XpG(2);return e.Njj(c.changePrompt(r))})("focusOut",function(r){e.eBV(i);const c=e.XpG(2);return e.Njj(c.onFocusOut(r))}),e.k0s(),e.DNE(12,ae,2,1,"span",34),e.k0s()(),e.j41(13,"div",35)(14,"div",36)(15,"div",28),e.EFF(16,"Negative Prompt"),e.nrm(17,"pi",37),e.k0s()(),e.j41(18,"div",38)(19,"toggle-switch",39),e.bIt("changeT",function(r){e.eBV(i);const c=e.XpG(2);return e.Njj(c.toggleButton(r))}),e.k0s()()(),e.DNE(20,le,4,9,"div",40),e.j41(21,"div",41)(22,"span",28),e.EFF(23,"Style"),e.nrm(24,"pi",42),e.k0s()(),e.j41(25,"div",43)(26,"div",44,3)(28,"div",45),e.nrm(29,"ei",46),e.DNE(30,de,1,1,"img",47),e.k0s(),e.j41(31,"div",48),e.EFF(32),e.k0s(),e.j41(33,"div",49),e.nrm(34,"pi",50),e.k0s()()(),e.nrm(35,"div",51),e.j41(36,"div",52,4)(38,"div",53)(39,"generations-media-list",54),e.bIt("setScroll",function(r){e.eBV(i);const c=e.XpG(2);return e.Njj(c.onScroll(r))})("genImageEvent",function(r){e.eBV(i);const c=e.XpG(2);return e.Njj(c.generateGen(r))}),e.k0s()()()(),e.bVm()}if(2&o){const i=e.XpG(2),s=e.sdS(14),r=e.sdS(16);e.R7$(7),e.Y8G("ngbTooltip",i.isPopoverOpen?null:"Suggested Prompt"),e.R7$(),e.Y8G("autoClose",!0)("ngbPopover",s),e.R7$(2),e.Y8G("ngClass",e.sMw(19,q,i.aiGenService.textPrompt.length,i.isFocused,450==i.aiGenService.textPrompt.length)),e.R7$(),e.Y8G("maxLength",450)("prompts",i.prompts)("textPrompt",i.aiGenService.textPrompt),e.R7$(),e.Y8G("ngIf",i.aiGenService.textPrompt.length),e.R7$(7),e.Y8G("selected",i.isNgPrompt),e.R7$(),e.Y8G("ngIf",i.isNgPrompt),e.R7$(6),e.Y8G("autoClose","outside")("ngbPopover",r),e.R7$(3),e.Y8G("ngClass",0==i.productImageId?"d-block":"d-none"),e.R7$(),e.Y8G("ngIf",i.productImageId&&i.productImageId>0),e.R7$(2),e.SpI(" ",null==i.selectedStyle?null:i.selectedStyle.displayName," "),e.R7$(3),e.Y8G("ngClass",i.isNgPrompt&&i.imgcount<=0?"show-blank":"d-none")("ngClass",e.eq3(23,re,i.imgcount>0||!i.isNgPrompt)),e.R7$(4),e.Y8G("aiImage",i.aiImage)("type","gen-results")}}function pe(o,u){1&o&&(e.j41(0,"div",62)(1,"span",63),e.EFF(2,"Loading..."),e.k0s()())}function ge(o,u){if(1&o){const i=e.RV6();e.j41(0,"div",13)(1,"div",14),e.DNE(2,me,40,25,"ng-container",15),e.j41(3,"div",16)(4,"div",17)(5,"button",18),e.bIt("click",function(){e.eBV(i);const r=e.XpG();return e.Njj(r.generate())}),e.DNE(6,pe,3,0,"div",19),e.j41(7,"span",20),e.EFF(8),e.k0s()()(),e.j41(9,"div",21)(10,"span",22),e.EFF(11,"1 generation ="),e.k0s(),e.j41(12,"span",23),e.nrm(13,"img",24),e.k0s(),e.j41(14,"span",22),e.EFF(15),e.k0s()()()()()}if(2&o){const i=e.XpG();e.R7$(2),e.Y8G("ngIf",i.isLoaded),e.R7$(3),e.Y8G("disabled",i.disabled)("ngClass",e.eq3(6,se,i.aiGenService.inProgress)),e.R7$(),e.Y8G("ngIf",i.aiGenService.inProgress),e.R7$(2),e.JRh(i.btnText),e.R7$(7),e.SpI("",i.quality," credits")}}function he(o,u){if(1&o){const i=e.RV6();e.j41(0,"div",13)(1,"div",64)(2,"generations-media-list",65),e.bIt("genImageEvent",function(r){e.eBV(i);const c=e.XpG();return e.Njj(c.generateGen(r))}),e.k0s()()()}}function ue(o,u){if(1&o){const i=e.RV6();e.j41(0,"ai-prompts-popover",66),e.bIt("selectPrompt",function(r){e.eBV(i);const c=e.XpG();return e.Njj(c.selectPrompt(r))}),e.k0s()}if(2&o){const i=e.XpG();e.Y8G("items",i.prompts)}}function _e(o,u){if(1&o){const i=e.RV6();e.j41(0,"ai-choose-styles",67),e.bIt("selectImage",function(r){e.eBV(i);const c=e.XpG();return e.Njj(c.selectImage(r))}),e.k0s()}if(2&o){const i=e.XpG();e.Y8G("productImageId",i.productImageId)("products",i.products)}}let fe=(()=>{var o;class u{constructor(s,r,c,b,J,T,ve,be){this.canvasStateService=s,this.mediaContentService=r,this.aiGenService=c,this.authService=b,this.paymentService=J,this.createPopupService=T,this.aiUploadImageService=ve,this.document=be,this.inGenerationAdjustMode=!1,this.textPrompt="",this.isPopoverOpen=!1,this.activePane="generator",this.productImageId=0,this.genImageEvent=ne
1w e.bkB,this.addImageTocanvas=new e.bkB,this.btnText="Generate",this.disabled=!1,this.isFocused=!1,this.pageNumber=0,this.quality=1,this.qtText="Normal",this.isNgPrompt=!1,this.isNgPromptFocus=!1,this.negativePrompt="",this.prompts=[],this.inProgress=!1,this.markedProjects=[],this.isFoldersLoaded=!1,this.isProjectListLoaded=!1,this.tempFolderName="",this.mainSelectedFormat=0,this.rowsCount=15,this.isProductsEnd=!1,this.templateType=5,this.aiImages=[],this.activeAccPanelId="panel-1",this.activeStylePanelId="style-1",this.imgcount=0,this.padding=0,this.user=this.authService.currentUser(),this.loggedInObserver=this.authService.loggedIn.subscribe(Ce=>{this.user=this.authService.currentUser()}),this.usrPropChangedObserver=this.authService.usrPropChanged.subscribe(Ce=>{this.user=this.authService.currentUser()})}ngOnInit(){this.aiGenService.selectedTool="text2image";const s=this.aiGenService.getAiImagescount();s&&(this.imgcount=s),this.getCategoryDetails(),this.changePrompt(this.aiGenService.textPrompt)}onScroll(s){s?setTimeout(()=>{this.padding=this.commonContainer.nativeElement.clientHeight<700?300:0,this.scrollContainer.nativeElement.scrollTo({top:this.isNgPrompt?425:322,behavior:"smooth"})},500):this.scrollContainer.nativeElement.scrollTo({top:0,behavior:"smooth"})}setScroll(){const s=this.document.getElementById("gen-isLess")?.value;(this.imgcount<=2||0==this.scrollContainer.nativeElement.scrollTop)&&(this.padding="false"==s?260:50),setTimeout(()=>{(this.imgcount<=2||0==this.scrollContainer.nativeElement.scrollTop)&&this.scrollContainer.nativeElement.scrollTo({top:this.isNgPrompt?425:322,behavior:"smooth"})},2e3)}selectImage(s){s?(this.productImageId=s.productImageId,this.selectedStyle=s):(this.productImageId=0,this.selectedStyle=this.noneProduct,this.selectedStyle.displayName="None"),this.btnText=this.aiGenService.changeBtnText(this.selectedStyle)}getCategoryDetails(){this.mediaContentService.getCategoryProductDetails(t.KK.TEXTTOIMAGE,this.pageNumber,s=>{if(this.quality=this.paymentService.config?.aiSDXLLightningCredits||this.quality,s&&s.body){if(!this.products&&s.body.storeProducts&&(this.products=s.body.storeProducts[0],this.getPrompts(()=>{this.isLoaded=!0}),this.selectedStyle=this.noneProduct={productImageId:0,imageJson:"",isGenerated:!1,id:1,displayName:"None"},this.aiGenService.queryParams?._sId)){const r=this.products.storeProductImages.filter(c=>c.displayName==this.aiGenService.queryParams?._sId)[0];r&&(this.selectedStyle=r,this.productImageId=this.selectedStyle?.productImageId)}}else this.isLoaded=!0},s=>{this.isLoaded=!0})}addImagetocanvas(s){this.addImageTocanvas.emit({aiImageResult:s})}generateGen(s){this.genImageEvent.emit({aiImageResult:s})}generate(){if(this.aiGenService.inProgress)return;const s=v.k.getNearestNeighbor(this.canvasStateService.mainCanvas.width,this.canvasStateService.mainCanvas.height);if(this.aiGenService.textPrompt)if(this.user&&this.user.remainingCoins>=this.quality){const r={featureType:this.aiGenService.selectedTool,textPrompt:this.aiGenService.textPrompt,isCustomPrompt:1,quality:s,...this.isNgPrompt&&this.negativePrompt&&{negativePrompt:this.negativePrompt},substyle:this.productImageId?this.selectedStyle?.imageJson:"",subFeatureType:I.Fs.Design};this.aiGenService.inProgress=!0,this.btnText=this.aiGenService.changeBtnText(this.selectedStyle),this.aiGenService.genrateAiImage(r,c=>{if(c&&c.urls&&c.urls.length>0){this.user.remainingCoins=c.remainingCalls,this.selectedStyle.isGenerated=!0;const b={assetId:c.assetId,urls:c.urls,featureType:this.aiGenService.selectedTool,textPrompt:this.aiGenService.textPrompt||""};setTimeout(()=>{this.aiImage=b,this.aiGenService.inProgress=!1,this.btnText=this.aiGenService.changeBtnText(this.selectedStyle),this.addImageTocanvas.emit({aiImageResult:{assetId:c.assetId,imgUrl:c.urls[0],outputImgUrl:c.urls[0]}}),this.imgcount=this.aiGenService.getAiImagescount()}),this.setScroll()}else this.btnText=this.aiGenService.changeBtnText(this.selectedStyle)},c=>{this.displayErrorMsg(c)})}else this.aiGenService.openAICreditPopup(()=>{this.user=this.authService.currentUser(),this.generate()}
1,this.quality)}displayErrorMsg(s=null){this.aiGenService.inProgress=!1;let r=s?.description;this.createPopupService.openWarningDialog("Error",r),this.btnText=this.aiGenService.changeBtnText(this.selectedStyle)}ngOnDestroy(){this.loggedInObserver&&this.loggedInObserver.unsubscribe(),this.usrPropChangedObserver&&this.usrPropChangedObserver.unsubscribe()}changePrompt(s=""){this.aiGenService.textPrompt=s,this.disabled=!(this.aiGenService.textPrompt&&this.aiGenService.textPrompt.trim().length>1)}focusOut(){this.isNgPromptFocus=!1}focusIn(){this.isNgPromptFocus=!0}onFocusOut(s){this.isFocused=s}toggleButton(s){this.isNgPrompt=s}getPrompts(s=null){this.mediaContentService.getPrompts(t.Jl.TextToImage,r=>{r&&(this.prompts=r.prompts),s&&s()},r=>{s&&s()})}selectPrompt(s){this.aiGenService.textPrompt=s.prompt,this.disabled=!this.aiGenService.textPrompt,this.btnText=this.aiGenService.changeBtnText(this.selectedStyle),setTimeout(()=>{this.isFocused=!1})}activatePane(s){this.activePane=s}}return(o=u).\u0275fac=function(s){return new(s||o)(e.rXU(C.X),e.rXU(j.Z),e.rXU(S.K),e.rXU(G.u),e.rXU(y.W),e.rXU(O.A),e.rXU(F.M),e.rXU(d.qQ))},o.\u0275cmp=e.VBU({type:o,selectors:[["ai-text-to-image"]],viewQuery:function(s,r){if(1&s&&(e.GBs(w,5),e.GBs(z,5),e.GBs(ee,5)),2&s){let c;e.mGM(c=e.lsd())&&(r.popover=c.first),e.mGM(c=e.lsd())&&(r.scrollContainer=c.first),e.mGM(c=e.lsd())&&(r.commonContainer=c.first)}},inputs:{inGenerationAdjustMode:"inGenerationAdjustMode",textPrompt:"textPrompt",activePane:"activePane",aiPhotoheader:"aiPhotoheader",aiImages:"aiImages"},outputs:{genImageEvent:"genImageEvent",addImageTocanvas:"addImageTocanvas"},decls:17,vars:20,consts:[["scrollContainer",""],["popContent",""],["popContentChooseStyles",""],["popOver","ngbPopover"],["commonContainer",""],[1,"wp-100","d-flex","aiImageGen"],[1,"position-fixed","w-100","ps-3","pe-3","pt-9","pb-2"],[1,"wp-100","btn-tabs","d-flex"],[1,"btn-all","btn-auto","me-1","btn-tab",3,"click","ngClass"],[1,"btn-all","btn-auto","btn-tab",3,"click","ngClass"],[1,"wp-100","d-flex","position-absolute","flex-column","drawer-elements","ai-drawer-elements",2,"top","60px","height","100%","overflow","auto",3,"ngClass","ngStyle"],[1,"tab-child-item","w-100",3,"ngClass"],["class","pane-section",4,"ngIf"],[1,"pane-section"],[1,"d-flex","text-white","flex-column"],[4,"ngIf"],[1,"position-absolute","fixed-bottom","pb-1","pt-8","ps-3","pe-3","bg-black-new"],[1,"d-flex","align-items-center","justify-content-center","w-100","mb-1"],["id","gtm-generate",1,"btn","btn-primary-gradient","text-13","btn-h40","w-100","d-flex","align-items-center","justify-content-center",3,"click","disabled","ngClass"],["class","spinner-border spinner-border-lg me-2 hw-24","role","status",4,"ngIf"],[1,"text-13"],[1,"credit-description","d-flex","align-items-center","justify-content-center","w-100","text-white"],[1,"text-white"],[1,"ms-2","me-2"],["src","https://static.lightxeditor.com/assets/images/coin-lottie-s-anim.gif","width","24px","height","24px","alt","Coin Lottie"],[1,"common-container","m-0","p-0","pe-1"],[1,"d-flex","w-100","flex-column","prompt-view","ps-3","pr-9","w-296"],[1,"d-flex","align-items-center","justify-content-between","w-100","mb-1",2,"min-height","40px"],[1,"text-normal","text-semi","lh-125","grey-100"],["name","helpicon","placement","right","popoverClass","pop-for-tooltip","ngbPopover","Provide a text description about the subject, style, setting and any other specific element guiding the AI to understand the exact image you want generated.","triggers","mouseenter:mouseleave","popoverTitle","Enter Prompt","container","body",1,"ms-1","hw-24","help-icon","grey-400"],["placement","right","tooltipClass","tooltip-custom-all","container","body",1,"hw-40","overflow-hidden","border-radius-8",3,"ngbTooltip"],["name","lampicon","placement","right","container","body","popoverClass","background-prompt",1,"pointer","f-40","lampicon",3,"shown","hidden","autoClose","ngbPopover"],[1,"textarea-col","aiDesignBg",3,"ngClass"],[1,"text-animation",3,"changePrompt","focusOut","maxLength","prompts","textPrompt"],["class","prompt-info text-regular position-relative d-flex",4,"ngIf"],[1,"d-flex","align-items-center","mt-9","mb-9","ps-3","pr-9","w-296",2,"min-height","40px"],[1,"wp-100"],["name","helpicon","placement","right","popoverClass","pop-for-tooltip","ngbPopover","Specify what to exclude in your results. This refines the output by preventing certain elements. Try- out of frame, deformed, bad proportions, extra limbs etc from appearing in the final image.","triggers","mouseenter:mouseleave","popoverTitle","Negative Prompt","container","body",1,"ms-1","hw-24","help-icon","grey-400"],[1,"editor-toggle",2,"height","26px"],[1,"d-flex","align-items-center","mb-0",3,"changeT","selected"],["class","d-flex w-100 flex-column prompt-view mb-9 ps-3 pr-9 w-296",4,"ngIf"],[1,"d-flex","align-items-center","w-100","mb-1","ps-3","pr-9","w-296",2,"min-height","40px"],["name","helpicon","placement","right","popoverClass","pop-for-tooltip","ngbPopover","Choose from a collection of predefined artistic effects and aesthetics that can be applied to your generated image.","triggers","mouseenter:mouseleave","popoverTitle","Style","container","body",1,"ms-1","hw-24","help-icon","grey-400"],[1,"ps-3","pr-9","w-296"],["placement","right","container","body","popoverClass","background-prompt background-style pt-2 w-33
16",1,"d-flex","w-100","selected-style","justify-content-between","align-items-center","mb-9",3,"autoClose","ngbPopover"],[1,"thumb-box","d-inline-flex","align-items-center","justify-content-center"],["name","noneicon2",1,"f-24",3,"ngClass"],["width","52px","height","52px","style","border-radius: 8px;",3,"src",4,"ngIf"],[1,"content","pl-9","pr-9","d-inline-flex","align-items-center"],[1,"arrow-img","d-inline-flex","align-items-center","justify-content-center"],["name","chevronaarrow",1,"hw-24"],[2,"height","140px",3,"ngClass"],[1,"common-container","m-0","p-0","w-296"],[1,"d-flex","text-white","w-100","flex-column"],[3,"setScroll","genImageEvent","aiImage","type"],[1,"prompt-info","text-regular","position-relative","d-flex"],[1,"d-flex","w-100","flex-column","prompt-view","mb-9","ps-3","pr-9","w-296"],[1,"textarea-col","h-73",3,"ngClass"],["id","cprompt1","name","cprompt1","rows","2","cols","50","maxlength","450","placeholder","Type what you want to exclude",1,"prompt-text",2,"height","79%",3,"ngModelChange","blur","focus","ngModel"],["class","prompt-info text-regular position-relative d-flex","style","line-height: 4px;",4,"ngIf"],[1,"prompt-info","text-regular","position-relative","d-flex",2,"line-height","4px"],["width","52px","height","52px",2,"border-radius","8px",3,"src"],["role","status",1,"spinner-border","spinner-border-lg","me-2","hw-24"],[1,"sr-only","text-nowrap","border-0","position-absolute","overflow-hidden"],[1,"h-100","position-absolute","w-100"],[3,"genImageEvent"],[3,"selectPrompt","items"],[3,"selectImage","productImageId","products"]],template:function(s,r){if(1&s){const c=e.RV6();e.j41(0,"div",5)(1,"div",6)(2,"div",7)(3,"button",8),e.bIt("click",function(){return e.eBV(c),e.Njj(r.activatePane("generator"))}),e.EFF(4,"Generator"),e.k0s(),e.j41(5,"button",9),e.bIt("click",function(){return e.eBV(c),e.Njj(r.activatePane("mygenerations"))}),e.EFF(6,"My Generations"),e.k0s()()(),e.j41(7,"div",10,0)(9,"div",11),e.DNE(10,ge,16,8,"div",12),e.k0s(),e.j41(11,"div",11),e.DNE(12,he,3,0,"div",12),e.k0s()(),e.DNE(13,ue,1,1,"ng-template",null,1,e.C5r)(15,_e,1,2,"ng-template",null,2,e.C5r),e.k0s()}2&s&&(e.R7$(3),e.Y8G("ngClass",e.eq3(8,Q,"generator"==r.activePane)),e.R7$(2),e.Y8G("ngClass",e.eq3(10,Q,"mygenerations"==r.activePane)),e.R7$(2),e.Y8G("ngClass",e.eq3(12,te,"mygenerations"==r.activePane))("ngStyle",e.eq3(14,ie,r.padding+"px")),e.R7$(2),e.Y8G("ngClass",e.eq3(16,ne,"generator"==r.activePane)),e.R7$(),e.Y8G("ngIf","generator"===r.activePane),e.R7$(),e.Y8G("ngClass",e.eq3(18,oe,"mygenerations"==r.activePane)),e.R7$(),e.Y8G("ngIf","mygenerations"===r.activePane))},dependencies:[d.YU,d.bT,d.B3,N.C,k.ZM,k.md,M.me,M.BC,M.tU,M.vS,B.b,A.KK,E.V,l,h.k,_.t],styles:[".btn-tabs[_ngcontent-%COMP%]{border-radius:12px;background:#4a4f5e33;padding:4px}.btn-tabs[_ngcontent-%COMP%]   .btn-tab[_ngcontent-%COMP%]{justify-content:center;align-items:center;border-radius:8px;background:#626adf00;font-size:13px;color:#b0b3bf;border:0px!important;height:32px;width:128px}.btn-tabs[_ngcontent-%COMP%]   .btn-tab[_ngcontent-%COMP%]:hover{background:#ffffff0d}.btn-tabs[_ngcontent-%COMP%]   .active[_ngcontent-%COMP%]{color:#fff;background:#4a4f5e}.btn-tabs[_ngcontent-%COMP%]   .active[_ngcontent-%COMP%]:hover{background:#4a4f5e}.prompt-view[_ngcontent-%COMP%]   .textarea-col[_ngcontent-%COMP%]{width:100%;height:110px;border-radius:12px;border:1px solid #4A4F5E;background:#ffffff0d;padding:4px}.prompt-view[_ngcontent-%COMP%]   .textarea-col[_ngcontent-%COMP%]:hover{border:1px solid #606576;background:#ffffff1a}.prompt-view[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{resize:none;outline:none;width:100%;height:84px;padding:8px;font-size:12px;color:#b0b3bf;border:0px;background:transparent;border-radius:12px;line-height:18px}.prompt-view[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px;border-radius:12px}.prompt-view[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#b0b3bf40;border-radius:12px}.prompt-view[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#b0b3bfbf;border-radius:12px}.prompt-view[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#b0b3bff2}.prompt-view[_ngcontent-%COMP%]   .prompt-info[_ngcontent-%COMP%]{font-size:11px;color:#b0b3bf;margin-top:0;padding-left:8px;line-height:10px}.prompt-view[_ngcontent-%COMP%]   .lampicon[_ngcontent-%COMP%]{border-radius:8px}.prompt-view[_ngcontent-%COMP%]   .lampicon[_ngcontent-%COMP%]:hover{background:#ffffff0d}.info-up[_ngcontent-%COMP%]{border:1px solid #4A4F5E!important;background:#ffffff0d!important}.info-up[_ngcontent-%COMP%]:hover{border:1px solid #606576!important;background:#ffffff1a!important}.info-up[_ngcontent-%COMP%]   .prompt-text[_ngcontent-%COMP%]{color:#fff!important}.info-blue[_ngcontent-%COMP%], .info-blue[_ngcontent-%COMP%]:hover{border:1px solid #626ADF!important;background:#ffffff1a!important}.info-blue[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#b0b3bf!important}.info-blue[_ngcontent-%COMP%]   .prompt-text[_ngcontent-%COMP%]{color:#fff!important}.info-red[_ngcontent-%COMP%], .info-red[_ngcontent-%COMP%]:hover{border:1px solid #F25555!important;background:#ffffff1a!important}.info-red[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#f25555!important}.info-red[_ngcontent-%COMP%]   .prompt-text[_ngcontent-%COMP%]{color:#fff!important}.prompt-text[_ngcontent-%COMP%]{color:#b0b3bf!important}.fixed-bottom[_ngcontent-%COMP%]{position:fixed!important;width:300px!important;right:auto!important;z-index:99}.bg-black-new[_ngcontent-%COMP%]{background:#272b34}.bg-black-new[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:focus:not(:focus-visible){background-color:#626adf;border:1px solid #626ADF}.bg-black-new[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:focus:not(:focus-visible):hover{background-color:#4d55d2;border:1px solid #4D55D2}.ai-drawer-elements[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}.ai-drawer-elements[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#e8e8e8;border-radius:12px;opacity:.6;-webkit-transition:width .2s linear,opacity .2s linear,background-color .2s linear;transition:width .2s linear,opacity .2s linear,background-color .2s linear}.ai-drawer-elements[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#aaa;border-radius:6px}.ai-drawer-elements[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#999}.ai-drawer-elements.no-padding[_ngcontent-%COMP%]{padding:0!important}.ai-drawer-elements.no-padding.overflow-h[_ngcontent-%COMP%]{overflow:hidden!important}.selected-style[_ngcontent-%COMP%]{padding:4px 12px 4px 4px;border-radius:12px;border:1px solid #4A4F5E;background:#ffffff0d;cursor:pointer;height:60px}.selected-style[_ngcontent-%COMP%]   .thumb-box[_ngcontent-%COMP%]{width:52px;height:52px;border-radius:8px;background:#4a4f5e}.selected-style[_ngcontent-%COMP%]   .thumb-box[_ngcontent-%COMP%]   pi[_ngcontent-%COMP%]{color:#c9cad4}.selected-style[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{font-size:12px;color:#c9cad4;width:174px}.selected-style[_ngcontent-%COMP%]   .arrow-img[_ngcontent-%COMP%]{width:24px;height:24px}.selected-style[_ngcontent-%COMP%]   .arrow-img[_ngcontent-%COMP%]   pi[_ngcontent-%COMP%]{color:#c9cad4}.selected-style[_ngcontent-%COMP%]:hover{border:1px solid #4A4F5E;background:#ffffff1a}.selected-style[_ngcontent-%COMP%]:hover   .thumb-box[_ngcontent-%COMP%]   pi[_ngcontent-%COMP%]{color:#c9cad4}.selected-style[_ngcontent-%COMP%]:hover   .arrow-img[_ngcontent-%COMP%]   pi[_ngcontent-%COMP%]{color:#e2e3e9}.selected-style[aria-describedby=ngb-popover-1][_ngcontent-%COMP%]   .arrow-img[_ngcontent-%COMP%]   pi[_ngcontent-%COMP%]{transform:rotate(180deg);color:#b0b3bf}.show-blank[_ngcontent-%COMP%]{display:flex!important}.show-blank.d-none[_ngcontent-%COMP%]{display:none!important}.w-296[_ngcontent-%COMP%]{width:296px!important}.help-icon.grey-400[_ngcontent-%COMP%]{color:#959aa7!important}.help-icon.grey-400[_ngcontent-%COMP%]:hover{color:#e2e3e9!important}"]}),u})()},61275:(R,x,m)=>{m.d(x,{n:()=>H});var e=m(10467),t=m(54438),v=m(49969),d=m(2850),C=(m(24886),m(33391)),j=m(68010),S=m(22154),G=m(32764),y=m(60177),O=m(84341),F=m(89818),N=m(68064),k=m(23486);const M=["container"],B=["resize-project",""],A=p=>({"video-type":p}),E=p=>({formControlError:p}),L=(p,f,g)=>({"for-design":p,"for-video":f,"for-designWithError":g});function $(p,f){if(1&p&&(t.j41(0,"div",28),t.EFF(1),t.k0s()),2&p){const g=t.XpG
1();t.R7$(),t.SpI(" ",g.errorsmsg," ")}}function P(p,f){if(1&p&&t.nrm(0,"pi",39),2&p){const g=t.XpG(2);t.Y8G("name",g.originalSizeObjects.iconName)}}function D(p,f){if(1&p&&(t.j41(0,"div",40),t.EFF(1),t.k0s()),2&p){const g=t.XpG(2);t.R7$(),t.Lme(" ",g.originalSizeObjects.width," X ",g.originalSizeObjects.height," ")}}function V(p,f){if(1&p&&(t.j41(0,"div",40),t.EFF(1),t.k0s()),2&p){const g=t.XpG(2);t.R7$(),t.Lme(" ",g.originalSizeObjects.wratio," : ",g.originalSizeObjects.hratio," ")}}function Y(p,f){if(1&p){const g=t.RV6();t.j41(0,"div",29)(1,"div")(2,"a",30)(3,"div",31),t.EFF(4," Original Size"),t.k0s()(),t.j41(5,"div")(6,"ul",32)(7,"li")(8,"a",33),t.bIt("click",function(){t.eBV(g);const n=t.XpG();return t.Njj(n.onCategorySelect(n.originalSizeObjects))}),t.j41(9,"div",34)(10,"div",35),t.DNE(11,P,1,1,"pi",36),t.k0s(),t.j41(12,"div",37)(13,"div",11),t.EFF(14),t.k0s(),t.DNE(15,D,2,2,"div",38)(16,V,2,2,"div",38),t.k0s()()()()()()()()}if(2&p){const g=t.XpG();t.R7$(11),t.Y8G("ngIf",g.originalSizeObjects.iconName),t.R7$(3),t.SpI(" ",g.originalSizeObjects.title,""),t.R7$(),t.Y8G("ngIf",1===g.templateType),t.R7$(),t.Y8G("ngIf",2===g.templateType)}}function X(p,f){if(1&p&&(t.j41(0,"div",40),t.EFF(1),t.k0s()),2&p){const g=t.XpG().$implicit;t.R7$(),t.Lme("",g.width," X ",g.height," ")}}function U(p,f){if(1&p&&(t.j41(0,"div",40),t.EFF(1),t.k0s()),2&p){const g=t.XpG().$implicit;t.R7$(),t.Lme("",g.wratio," : ",g.hratio," ")}}function Z(p,f){if(1&p){const g=t.RV6();t.j41(0,"li")(1,"a",44),t.bIt("click",function(){const n=t.eBV(g).$implicit,l=t.XpG(3);return t.Njj(l.onCategorySelect(n))}),t.j41(2,"div",34)(3,"div",35),t.nrm(4,"pi",45),t.k0s(),t.j41(5,"div",37)(6,"div",11),t.EFF(7),t.k0s(),t.DNE(8,X,2,2,"div",38)(9,U,2,2,"div",38),t.k0s()()()()}if(2&p){const g=f.$implicit,a=t.XpG(3);t.R7$(4),t.Y8G("name",g.iconName),t.R7$(3),t.SpI(" ",g.socialPlatform,""),t.R7$(),t.Y8G("ngIf",1===a.templateType),t.R7$(),t.Y8G("ngIf",2===a.templateType)}}function K(p,f){if(1&p&&(t.j41(0,"div")(1,"a",42)(2,"div",31),t.EFF(3),t.k0s()(),t.j41(4,"div")(5,"ul",32),t.DNE(6,Z,10,4,"li",43),t.k0s()()()),2&p){const g=t.XpG().$implicit;t.R7$(3),t.SpI(" ",g.socialLabelType,""),t.R7$(3),t.Y8G("ngForOf",null==g?null:g.socialPlatformFormats)}}function W(p,f){if(1&p&&(t.j41(0,"div",29),t.DNE(1,K,7,2,"div",41),t.k0s()),2&p){const g=f.$implicit;t.R7$(),t.Y8G("ngIf",""!==g.socialLabelType)}}let H=(()=>{var p;class f{constructor(a,n,l,h){this.activeModal=a,this.authService=n,this.configService=l,this.templateService=h,this.changeSize=new t.bkB,this.selectSizeVal=1,this.custom='{"socialLabelType":"Custom","parentMediaType":"1","socialPlatformFormats":[{"socialPlatformId":26,"socialPlatform":"Custom","width":0,"height":0,"format":0,"thumbUrl":"https://static.lightxeditor.com/assets/images/thumbs/webthumbs/designtemplate/standard/square.png","mobileThumbUrl":"https://d2v5dzhdg4zhx3.cloudfront.net/start_from_scratch_unique_icons/standard/square.png","shortName":"Custom","iconName":"","wratio":"0","hratio":"0"}]}',this.customsize={width:null,height:null},this.ddlItems=[{val:1,name:"Pixels (px)"},{val:2,name:"Centimeter (cm)"},{val:3,name:"Millimeter (mm)"},{val:4,name:"Inches (in)"}],this.submit=!1,this.catagry=[],this.isdisabled=!0,this.errorsmsg="",this.widthError=!1,this.heightError=!1,this.user=this.authService.currentUser(),this.isSubscribed=!!this.user&&this.user.subscribed}ngOnInit(){this.customsize.width=this.canvasStateService.original.width,this.customsize.height=this.canvasStateService.original.height,this.templateType=this.sceneController.design.templateType,this.templateService.getCreateFromScratchData(this.templateType,!0,a=>{if(a.body?.socialPlatformsList&&a.body?.socialPlatformsList.length>0){if(this.catagry=a.body.socialPlatformsList,this.catagry.length>0){let n=!1;for(const l of this.catagry){for(const h of l?.socialPlatformFormats)if(this.sceneController.design.properties.originalSocialPlatformId===h.socialPlatformId){h.title=h.socialPlatform,this.originalSizeObjects=h,n=!0;break}if(n)break}}if(26===this.sceneController.design.properties.originalSocialPlatformId){const n=JSON.parse(this.custom).socialPlatformFormats[0];n.format=this.sceneController.design.properties.originalFormat,n.width=this.sceneController.design.properties.originalWidth,n.height=this.sceneController.design.properties.originalHeight,n.wratio=this.sceneController.design.properties.originalWidth,n.hratio=this.sceneController.design.properties.originalHeight,n.title=n.socialPlatform,this.originalSizeObjects=n}}},a=>{console.log(a)})}onSizeChange(a){const n=a.val;1===this.selectSizeVal?1===n||(2===n?(this.customsize.width=d.Z.PixeltoCM(this.customsize.width),this.customsize.height=d.Z.PixeltoCM(this.customsize.height)):3===n?(this.customsize.width=d.Z.PixeltoMM(this.customsize.width),this.customsize.height=d.Z.PixeltoMM(this.customsize.height)):4===n&&(this.customsize.width=d.Z.PixeltoInch(this.customsize.width),this.customsize.height=d.Z.PixeltoInch(this.customsize.height))):2===this.selectSizeVal?1===n?(this.customsize.width=d.Z.CMtoPixel(this.customsize.width),this.customsize.height=d.Z.CMtoPixel(this.customsize.height)):2===n||(3===n?(this.customsize.width=d.Z.CMtoMM(this.customsize.width),this.customsize.height=d.Z.CMtoMM(this.customsize.height)):4===n&&(this.customsize.width=d.Z.CMtoInch(this.customsize.width),this.customsize.height=d.Z.CMtoInch(this.customsize.height))):3===this.selectSizeVal?1===n?(this.customsize.width=d.Z.MMtoPixel(this.customsize.width),this.customsize.height=d.Z.MMtoPixel(this.customsize.height)):2===n?(this.customsize.width=d.Z.MMtoCM(this.customsize.width),this.customsize.height=d.Z.MMtoCM(this.customsize.height)):3===n||4===n&&(this.customsize.width=d.Z.MMtoInch(this.customsize.width),this.customsize.height=d.Z.MMtoInch(this.customsize.height)):4===this.selectSizeVal&&(1===n?(this.customsize.width=d.Z.InchtoPixel(this.customsize.width),this.customsize.height=d.Z.InchtoPixel(this.customsize.height)):2===n?(this.customsize.width=d.Z.InchtoCM(this.customsize.width),this.customsize.height=d.Z.InchtoCM(this.customsize.height)):3===n&&(this.customsize.width=d.Z.InchtoMM(this.customsize.width),this.customsize.height=d.Z.InchtoMM(this.customsize.height))),this.selectSizeVal=n}onCategorySelect(a){var n=this;return(0,e.A)(function*(){n.isdisabled=!0,!a.title&&a.socialPlatform&&(a.title=a.socialPlatform),n.setCustomSize(a),n.isValidate()&&(n.selectedLayout=a,yield n.updateFormat())})()}onChangeWidth(a){}startCustomEditing(){var a=this;return(0,e.A)(function*(){const n=JSON.parse(a.custom).socialPlatformFormats[0];let h,_,l=a.customsize,w=a.selectSizeVal;2===w?(h=d.Z.CMtoPixel(l.width),_=d.Z.CMtoPixel(l.height)):3===w?(h=d.Z.MMtoPixel(l.width),_=d.Z.MMtoPixel(l.height)):4===w?(h=d.Z.InchtoPixel(l.width),_=d.Z.InchtoPixel(l.height)):(h=Math.round(l.width),_=Math.round(l.height)),n.width=h,n.height=_;const z=d.Z.getHCF(h,_);n.wratio=h/z,n.hratio=_/z,n.socialPlatformId=26,a.selectedLayout=n,yield a.updateFormat()})()}setCustomSize(a){let n,l;2===this.selectSizeVal?(n=d.Z.PixeltoCM(a.width),l=d.Z.PixeltoCM(a.height)):3===this.selectSizeVal?(n=d.Z.PixeltoMM(a.width),l=d.Z.PixeltoMM(a.height)):4===this.selectSizeVal?(n=d.Z.PixeltoInch(a.width),l=d.Z.PixeltoInch(a.height)):(n=a.width,l=a.height),this.customsize.width=n,this.customsize.height=l}isValidate(){let n=this.customsize.width,l=this.customsize.height,h=!1,_="";switch(this.errorsmsg="",this.widthError=!1,this.heightError=!1,this.selectSizeVal){case 1:null!=n&&(n<40||n>4e3)&&(h=!0,this.widthError=!0),null!=l&&(l<40||l>4e3)&&(h=!0,this.heightError=!0),_="Should not be less then 40 px & not be more than 4000px.";break;case 2:null!=n&&(n<1.059||n>105.827)&&(h=!0,this.widthError=!0),null!=l&&(l<1.059||l>105.827)&&(h=!0,this.heightError=!0),_="Canvas size should range from 1.059cm to 105.827cm.";break;case 3:null!=n&&(n<10.59||n>1058.27)&&(h=!0,this.widthError=!0),null!=l&&(l<10.59||l>1058.27)&&(h=!0,this.heightError=!0),_="Canvas size should range from 10.59mm to 1058.27mm.";break;case 4:null!=n&&(n<.417||n>4e3)&&(h=!0,this.widthError=!0),null!=l&&(l<.417||l>41.664)&&(h=!0,this.heightError=!0),_="Canvas size should range from .417 inch to 41.664inch."}return h?(this.isdisabled=!0,this.errorsmsg=_):null!=n&&null!=l&&(this.isdisabled=!1),!h}onKey(a){this.isValidate()}
1onKeyPress(a){let l=String.fromCharCode(a.charCode);8==a.keyCode||/^\d*\.?\d{0,2}$/g.test(l)?this.isValidate():a.preventDefault()}updateFormat(){var a=this;return(0,e.A)(function*(){a.updateDesign(),a.sceneController.getCanvas().clear(),a.canvasZoomService.defaultZoom=!0,a.canvasZoomService.fitToScreen(),yield a.canvasZoomService.setLayout(a.selectedLayout.socialPlatformId,a.selectedLayout.width,a.selectedLayout.height),a.sceneController.formatScene(a.selectedLayout.width,a.selectedLayout.height),a.isdisabled=!0})()}updateDesign(){this.sceneController.design.properties.format=this.selectedLayout.format,this.sceneController.design.properties.width=this.selectedLayout.width,this.sceneController.design.properties.height=this.selectedLayout.height,this.sceneController.design.properties.socialPlatformId=this.selectedLayout.socialPlatformId}swap(){let a=this.customsize.width;this.customsize.width=this.customsize.height,this.customsize.height=a,this.isValidate()&&(this.isdisabled=!1)}}return(p=f).\u0275fac=function(a){return new(a||p)(t.rXU(C.Lw),t.rXU(j.u),t.rXU(S.w),t.rXU(G.I))},p.\u0275cmp=t.VBU({type:p,selectors:[["","resize-project",""]],viewQuery:function(a,n){if(1&a&&t.GBs(M,7),2&a){let l;t.mGM(l=t.lsd())&&(n.container=l.first)}},inputs:{canvasZoomService:"canvasZoomService",canvasStateService:"canvasStateService",sceneController:"sceneController",layout:"layout"},outputs:{changeSize:"changeSize"},attrs:B,decls:32,vars:24,consts:[["container",""],[1,"modal-header","border-0","p-0","mt-3","d-flex","align-items-center"],[1,"text-lg","text-dark","text-semi","ms-3"],["type","button","aria-hidden","close",1,"close",2,"right","18px !important",3,"click"],["name","closelogin",1,"f-30"],[1,"modal-body","h-100","pt-0","p-0"],[1,"pt-0"],[1,"create-project"],[1,"project-parent","overflow-hidden",3,"ngClass"],[1,"templates-thumbs-custom","hometemplate","custom-items","p-0","ps-2","pe-2","position-absolute"],[1,"wp-100","text-type","ps-2","pe-2"],[1,"text-normal","text-dark","text-semi"],[1,"gray-100","p-3","border-radius-lg","resizePopup","mt-1"],["bindLabel","name","bindValue","val",1,"select-menu","resize-popup",3,"change","items","ngModel","searchable","clearable"],[1,"d-inline-flex","mt-8",2,"margin-bottom","2px"],[1,"text-sm","text-dark","text-semi"],[1,"text-sm","text-dark","text-semi",2,"margin-left","97px"],[1,"scratch-slider"],["type","text","id","width","autocomplete","off","placeholder","Width",1,"form-control",3,"ngModelChange","keyup","keypress","focusout","ngModel","ngClass"],["placement","top","ngbTooltip","Swap","tooltipClass","tooltip-custom-all",1,"btn-swap",2,"margin","0 2px"],["name","leftrightarrownew",1,"f-24","align-self-center","grey-600",3,"click"],["type","text","id","height","autocomplete","off","placeholder","Height",1,"form-control",3,"ngModelChange","keyup","keypress","focusout","ngModel","ngClass"],[1,"btn","btn-primary","hw-40","p-0","border-0","ms-2","border-radius-12",3,"click","disabled"],["name","oksign",1,"f-24"],["class","scratch-slider mt-2","style","color: #E20E33;",4,"ngIf"],[1,"mt-8","wp-100","list-unstyled","project-parent-list","ps-3","pe-3","h-100","position-absolute","overflow-auto","bottom-0","mb-2",3,"ngClass"],["class","nav-item btn-tab",4,"ngIf"],["class","nav-item btn-tab",4,"ngFor","ngForOf"],[1,"scratch-slider","mt-2",2,"color","#E20E33"],[1,"nav-item","btn-tab"],["data-toggle","tab",1,""],[1,"text-normal","text-dark","text-semi","mb-8"],[1,"list-unstyled"],["data-toggle","tab",1,"",3,"click"],[1,"row","g-0","align-items-center","h-48"],[1,"col-1","me-3","text-center"],[3,"name",4,"ngIf"],[1,"col-10"],["class","text-sm grey-300 text-semi",4,"ngIf"],[3,"name"],[1,"text-sm","grey-300","text-semi"],[4,"ngIf"],["data-toggle","tab",1,"nav-link"],[4,"ngFor","ngForOf"],["data-toggle","tab",1,"nav-link",3,"click"],[1,"f-28",3,"name"]],template:function(a,n){if(1&a){const l=t.RV6();t.j41(0,"div",1)(1,"span",2),t.EFF(2,"Resize"),t.k0s(),t.j41(3,"button",3),t.bIt("click",function(){return t.eBV(l),t.Njj(n.activeModal.dismiss("Cross click"))}),t.nrm(4,"pi",4),t.k0s()(),t.j41(5,"div",5)(6,"div",6)(7,"div",7,0)(9,"div",8)(10,"div",9)(11,"div",10)(12,"div",11),t.EFF(13,"Custom"),t.k0s()(),t.j41(14,"div",12)(15,"ng-select",13),t.bIt("change",function(_){return t.eBV(l),t.Njj(n.onSizeChange(_))}),t.k0s(),t.j41(16,"div",14)(17,"div",15),t.EFF(18,"Width"),t.k0s(),t.j41(19,"div",16),t.EFF(20,"Height"),t.k0s()(),t.j41(21,"div",17)(22,"input",18),t.mxI("ngModelChange",function(_){return t.eBV(l),t.DH7(n.customsize.width,_)||(n.customsize.width=_),t.Njj(_)}),t.bIt("keyup",function(_){return t.eBV(l),t.Njj(n.onKey(_))})("keypress",function(_){return t.eBV(l),t.Njj(n.onKeyPress(_))})("focusout",function(){return t.eBV(l),t.Njj(n.isValidate())}),t.k0s(),t.j41(23,"button",19)(24,"pi",20),t.bIt("click",function(){return t.eBV(l),t.Njj(n.swap())}),t.k0s()(),t.j41(25,"input",21),t.mxI("ngModelChange",function(_){return t.eBV(l),t.DH7(n.customsize.height,_)||(n.customsize.height=_),t.Njj(_)}),t.bIt("keyup",function(_){return t.eBV(l),t.Njj(n.onKey(_))})("keypress",function(_){return t.eBV(l),t.Njj(n.onKeyPress(_))})("focusout",function(){return t.eBV(l),t.Njj(n.isValidate())}),t.k0s(),t.j41(26,"button",22),t.bIt("click",function(){return t.eBV(l),t.Njj(n.startCustomEditing())}),t.nrm(27,"ei",23),t.k0s()(),t.DNE(28,$,2,1,"div",24),t.k0s()(),t.j41(29,"div",25),t.DNE(30,Y,17,4,"div",26)(31,W,2,1,"div",27),t.k0s()()()()()}
12&a&&(t.R7$(9),t.Y8G("ngClass",t.eq3(14,A,2===n.templateType)),t.R7$(6),t.Y8G("items",n.ddlItems)("ngModel",n.selectSizeVal)("searchable",!1)("clearable",!1),t.R7$(7),t.R50("ngModel",n.customsize.width),t.Y8G("ngClass",t.eq3(16,E,n.widthError)),t.R7$(3),t.R50("ngModel",n.customsize.height),t.Y8G("ngClass",t.eq3(18,E,n.heightError)),t.R7$(),t.Y8G("disabled",n.isdisabled),t.R7$(2),t.Y8G("ngIf",""!=n.errorsmsg),t.R7$(),t.Y8G("ngClass",t.sMw(20,L,1==n.templateType,2==n.templateType,""!=n.errorsmsg)),t.R7$(),t.Y8G("ngIf",n.originalSizeObjects),t.R7$(),t.Y8G("ngForOf",n.catagry))},dependencies:[y.YU,y.Sq,y.bT,C.md,O.me,O.BC,O.vS,F.vr,N.b,k.KK],styles:[".form-control[_ngcontent-%COMP%]{display:inline;width:80px;height:40px;padding:0rem;font-size:.875rem;line-height:1.5;color:#000;background-color:#e2e3e966;border:none;border-radius:12px;text-align:center}.form-control[_ngcontent-%COMP%]:hover{border:none;background:#e2e3e94d}.form-control[_ngcontent-%COMP%]:focus{border:1px solid #4A4F5E;background:#e2e3e94d}.formControlError[_ngcontent-%COMP%]{border:1px solid #F25555!important;background:#fff2f2!important}.form-group[_ngcontent-%COMP%]   pi[_ngcontent-%COMP%], .form-group[_ngcontent-%COMP%]   .ng-arrow-wrapper[_ngcontent-%COMP%]{margin-right:9px!important;margin-left:12px}.scratch-slider[_ngcontent-%COMP%]{display:flex;font-size:12px;color:#e20e33}.templates-thumbs-custom[_ngcontent-%COMP%]{width:100%;height:100%}ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{height:48px;cursor:pointer;padding:0 0 0 16px}ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:hover{background:#626adf0d;border-radius:12px}.h-48[_ngcontent-%COMP%]{height:48px!important}[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px}[_ngcontent-%COMP%]::-webkit-scrollbar-track{box-shadow:inset 0 0 5px #b0b3bf0d;border-radius:12px;margin-top:5px;margin-bottom:5px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#b0b3bfbf;border-radius:12px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#b0b3bfbf}.close[_ngcontent-%COMP%]{background:none!important;top:unset!important}.btn-swap[_ngcontent-%COMP%]{width:40px;height:40px;padding:8px;background-color:transparent;border-radius:12px;border:0px;outline:0px;position:relative}.btn-swap[_ngcontent-%COMP%]:hover{background:#626adf0d}.btn-swap[_ngcontent-%COMP%]:disabled{background:transparent}.swap-active[_ngcontent-%COMP%]{background:#626adf0d}.video-type[_ngcontent-%COMP%]   .text-type[_ngcontent-%COMP%], .video-type[_ngcontent-%COMP%]   .select-menu.resize-popup[_ngcontent-%COMP%]{display:none}.video-type[_ngcontent-%COMP%]   .resizePopup[_ngcontent-%COMP%]{border-radius:0!important;background-color:transparent!important;padding-top:0!important}.video-type[_ngcontent-%COMP%]   .hometemplate.custom-items[_ngcontent-%COMP%]{padding:0!important}.video-type[_ngcontent-%COMP%]   .project-parent-list[_ngcontent-%COMP%]{margin-top:0!important}.video-type[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]{width:87px!important}"],data:{animation:[(0,v.hZ)("controlsAnimation",[(0,v.kY)(":enter",[(0,v.iF)({opacity:0}),(0,v.i0)("225ms cubic-bezier(.4,0,.2,1)",(0,v.iF)({opacity:1}))]),(0,v.kY)(":leave",[(0,v.i0)("0ms cubic-bezier(.4,0,.2,1)",(0,v.iF)({opacity:0}))])])]}}),f})()},92452:(R,x,m)=>{m.d(x,{i:()=>e});var e=function(t){return t[t.NUll=0]="NUll",t[t.Main=1]="Main",t[t.EditorChoice=2]="EditorChoice",t[t.More=3]="More",t[t.Footer=4]="Footer",t[t.All=5]="All",t[t.LighxHome=6]="LighxHome",t[t.NewFooter=11]="NewFooter",t[t.Megamenu=8]="Megamenu",t[t.Tools=10]="Tools",t[t.profileWithCutout=101]="profileWithCutout",t[t.StoreProduct=9]="StoreProduct",t}(e||{})},82635:(R,x,m)=>{m.d(x,{e:()=>t});var e=m(54438);let t=(()=>{var v;class d{constructor(){}ngOnInit(){}}return(v=d).\u0275fac=function(C){return new(C||v)},v.\u0275cmp=e.VBU({type:v,selectors:[["app-loading"]],inputs:{breadcrumbItems:"breadcrumbItems",title:"title"},decls:4,vars:0,consts:[[1,"loading"],[1,"ani"],[1,"ani",2,"--delay","0.1s"],[1,"ani",2,"--delay","0.3s"]],template:function(C,j){1&C&&(e.j41(0,"div",0),e.nrm(1,"div",1)(2,"div",2)(3,"div",3),e.k0s())},styles:[".loading[_ngcontent-%COMP%]{display:flex;height:100px;align-items:center;justify-content:center}
1@keyframes _ngcontent-%COMP%_circle{0%,to{color:#475ae7;width:12px;height:12px;margin:0 8px;border-radius:50%;background-color:#475ae7;transform:translateY(0)}50%{color:#77767a;transform:translateY(18px)}}.ani[_ngcontent-%COMP%]{--delay: 0s;animation:_ngcontent-%COMP%_circle 1s var(--delay) infinite ease-in}"]}),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.