PageSourceSearch

https://static.lightxeditor.com/web/5446.d5e34857785bfd34.js

js lightxeditor.com collected 2026-10-01 11:34:13 UTC 15,371 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunklightx=self.webpackChunklightx||[]).push([[5446],{96545:(P,v,i)=>{i.d(v,{_:()=>_});var n=i(45312),p=i(21413),l=i(54438),m=i(95301);let _=(()=>{var d;class u{constructor(s){this.dataService=s,this._onExportApiResponse=new p.B,this.onExportApiResponse=this._onExportApiResponse.asObservable(),this.baseUrl=n.c.baseUrl,this.urlPath="andorsocial-1.0/job/"}setExportApiResponse(s){this._onExportApiResponse.next(s)}invokeCreateVideo(s,a,e,t,o,r){this.dataService.postApi(this.baseUrl+"andorsocial-1.0/job/invokeCreateVideoAPI",{assetId:s,resolution:a,designName:e,systemRefKey:t}).subscribe(E=>{o(E)},E=>{r()})}createJobId(s,a,e,t,o,r){this.dataService.postApi(this.baseUrl+"andorsocial-1.0/job/createJobId",{assetId:s,resolution:a,designName:e,systemRefKey:t}).subscribe(E=>{o(E)},E=>{r()})}generatePresignedUrlForExport(s,a,e){this.dataService.post(this.baseUrl+this.urlPath+"generatePresignedUrl",s).subscribe(o=>{o&&"SUCCESS"===o.status?a(o):e(o)},o=>{e()})}getUploadedVideoStatusExport(s,a,e){this.dataService.post(this.baseUrl+"andorsocial-1.0/job/getUploadedVideoStatus",{jobId:s}).subscribe(h=>{h&&"SUCCESS"===h.status?a(h):e(h)},h=>{e()})}upload(s,a){return new Promise((e,t)=>{const o=new XMLHttpRequest;o.open("PUT",a,!0),o.send(s),o.onload=function(){200===this.status?e(!0):t(this.responseText)}})}}return(d=u).\u0275fac=function(s){return new(s||d)(l.KVO(m.u))},d.\u0275prov=l.jDH({token:d,factory:d.\u0275fac}),u})()},14845:(P,v,i)=>{i.d(v,{t:()=>u});var n=i(54438),p=i(41584),l=i(77048),m=i(88141),_=i(84341);const d=["textarea"];let u=(()=>{var c;class s{getClientY(e){return e.touches&&e.touches.length?e.touches[0].clientY:e.changedTouches&&e.changedTouches.length?e.changedTouches[0].clientY:e.clientY||0}constructor(e){this.host=e,this.maxLength=450,this.isTyping=!1,this.animationSubscription=null,this.changePrompt=new n.bkB,this.prompts=[],this.textPrompt="",this.focusOut=new n.bkB,this.placeholder="Imagine anything, type it",this.promptResetHeight=!1,this.animatePlaceholder=!0,this.textareaHeight=78,this.minHeight=78,this.maxHeight=280,this.startY=0,this.startHeight=78,this.activePointerId=null,this.resizeHandle=null,this.resizeListenerOptions={capture:!0,passive:!1},this.onResizeMove=t=>{if(null!=this.activePointerId&&"pointerId"in t&&t.pointerId!==this.activePointerId)return;t.cancelable&&t.preventDefault();const o=this.getClientY(t);this.textareaHeight=Math.min(this.maxHeight,Math.max(this.minHeight,this.startHeight+(o-this.startY)));const r=this.host.nativeElement.closest(".textarea-col");r&&(r.style.height=`${this.textareaHeight+(r.classList.contains("info-up")?36:32)}px`)},this.onResizeEnd=t=>{if(!t||null==this.activePointerId||!("pointerId"in t)||t.pointerId===this.activePointerId){if(this.resizeHandle&&null!=this.activePointerId)try{this.resizeHandle.releasePointerCapture(this.activePointerId)}catch{}this.activePointerId=null,this.resizeHandle=null,document.removeEventListener("pointermove",this.onResizeMove,this.resizeListenerOptions),document.removeEventListener("pointerup",this.onResizeEnd,this.resizeListenerOptions),document.removeEventListener("pointercancel",this.onResizeEnd,this.resizeListenerOptions),document.removeEventListener("mousemove",this.onResizeMove,this.resizeListenerOptions),document.removeEventListener("touchmove",this.onResizeMove,this.resizeListenerOptions),document.removeEventListener("mouseup",this.onResizeEnd,this.resizeListenerOptions),document.removeEventListener("touchend",this.onResizeEnd,this.resizeListenerOptions)}}}ngOnInit(){}ngAfterViewInit(){setTimeout(()=>{this.prompts.length<=0&&this.animatePlaceholder&&(this.prompts=[{prompt:"Imagine anything, type it"}]),this.textPrompt&&this.textPrompt.trim()||this.onFocusOut()}),this.watchPromptInfoPointerEvents()}watchPromptInfoPointerEvents(){const e=this.host.nativeElement.closest(".textarea-col");if(!e)return;const t=()=>{if(e.querySelectorAll(":scope > .prompt-info").forEach(o=>{const r=o;r.style.pointerEvents="none",r.querySelectorAll("button, a, .magic-btn").forEach(h=>{h.style.pointerEvents="auto"})}),!e.querySelector(":scope > style[data-prompt-resize-hit]")){const o=document.createElement("style");o.setAttribute("data-prompt-resize-hit",""),o.textContent=".textarea-col.prompt-resize-hit::after{pointer-events:none !important;}",e.appendChild(o),e.classList.add("prompt-resize-hit")}};t(),this.promptInfoObserver=new MutationObserver(t),this.promptInfoObserver.observe(e,{childList:!0,subtree:!0})}ngOnChanges(e){e.textPrompt&&this.textPrompt&&this.onFocus(),e.promptResetHeight&&!e.promptResetHeight.firstChange&&this.promptResetHeight&&this.resetHeight()}resetHeight(){this.textareaHeight=this.minHeight,this.startHeight=this.minHeight;const e=this.host.nativeElement.closest(".textarea-col");e&&(e.style.height="")}onFocus(){this.animationSubscription&&this.animationSubscription.unsubscribe(),this.isTyping=!1,this.textarea&&(this.textarea.nativeElement.placeholder="",this.focusOut.emit(!0))}onFocusOut(){if(this.focusOut.emit(!1),this.isTyping||!this.textarea||(this.isTyping=!0,this.animationSubscription&&this.animationSubscription.unsubscribe(),this.textPrompt&&this.textPrompt.trim()))return;if(!this.prompts?.length&&!this.animatePlaceholder)return void(this.textarea.nativeElement.placeholder=this.placeholder);this.textarea.nativeElement.placeholder="";let e=0;const t=()=>{if(!this.isTyping||!this.prompts?.length)return void(this.isTyping=!1);if(e==this.prompts.length)return this.isTyping=!1,void this.onFocusOut();const o=this.prompts[e].prompt;let r=0;this.animationSubscription=(0,p.O)(0,75).pipe((0,l.v)(()=>r<o.length&&this.isTyping,!0),(0,m.M)(()=>{r<o.length?(this.textarea.nativeElement.placeholder+=o[r],r++):(this.animationSubscription.unsubscribe(),this.animationSubscription=(0,p.O)(1e3).subscribe(()=>{this.textarea.nativeElement.placeholder="",e++,(0,p.O)(500).subscribe(t)}))}
1)).subscribe()};t()}changeTextPrompt(){this.changePrompt.emit(this.textPrompt)}startResize(e){if(!("button"in e&&0!==e.button||(e.preventDefault(),e.stopPropagation(),this.resizeHandle))){if(document.dispatchEvent(new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window,button:0})),document.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window,button:0})),this.startY=this.getClientY(e),this.startHeight=this.textareaHeight,this.resizeHandle=e.currentTarget||null,this.activePointerId="pointerId"in e?e.pointerId:null,this.resizeHandle&&null!=this.activePointerId)try{this.resizeHandle.setPointerCapture(this.activePointerId)}catch{}document.addEventListener("pointermove",this.onResizeMove,this.resizeListenerOptions),document.addEventListener("pointerup",this.onResizeEnd,this.resizeListenerOptions),document.addEventListener("pointercancel",this.onResizeEnd,this.resizeListenerOptions),document.addEventListener("mousemove",this.onResizeMove,this.resizeListenerOptions),document.addEventListener("touchmove",this.onResizeMove,this.resizeListenerOptions),document.addEventListener("mouseup",this.onResizeEnd,this.resizeListenerOptions),document.addEventListener("touchend",this.onResizeEnd,this.resizeListenerOptions)}}ngOnDestroy(){this.onResizeEnd(),this.promptInfoObserver?.disconnect(),this.animationSubscription&&this.animationSubscription.unsubscribe()}}return(c=s).\u0275fac=function(e){return new(e||c)(n.rXU(n.aKT))},c.\u0275cmp=n.VBU({type:c,selectors:[["text-prompt-animation"]],viewQuery:function(e,t){if(1&e&&n.GBs(d,5),2&e){let o;n.mGM(o=n.lsd())&&(t.textarea=o.first)}},inputs:{maxLength:"maxLength",prompts:"prompts",textPrompt:"textPrompt",placeholder:"placeholder",promptResetHeight:"promptResetHeight",animatePlaceholder:"animatePlaceholder"},outputs:{changePrompt:"changePrompt",focusOut:"focusOut"},features:[n.OA$],decls:5,vars:4,consts:[["textarea",""],[1,"prompt-animation-wrap"],["rows","4","cols","50",1,"prompt-text",3,"ngModelChange","focus","focusout","maxlength","ngModel"],["title","Drag to resize",1,"prompt-resize-handle",3,"pointerdown","mousedown","touchstart"],["aria-hidden","true",1,"prompt-resize-grip"]],template:function(e,t){if(1&e){const o=n.RV6();n.j41(0,"div",1)(1,"textarea",2,0),n.mxI("ngModelChange",function(h){return n.eBV(o),n.DH7(t.textPrompt,h)||(t.textPrompt=h),n.Njj(h)}),n.bIt("focus",function(){return n.eBV(o),n.Njj(t.onFocus())})("focusout",function(){return n.eBV(o),n.Njj(t.onFocusOut())})("ngModelChange",function(){return n.eBV(o),n.Njj(t.changeTextPrompt())}),n.k0s()(),n.j41(3,"div",3),n.bIt("pointerdown",function(h){return n.eBV(o),n.Njj(t.startResize(h))})("mousedown",function(h){return n.eBV(o),n.Njj(t.startResize(h))})("touchstart",function(h){return n.eBV(o),n.Njj(t.startResize(h))}),n.nrm(4,"span",4),n.k0s()}2&e&&(n.R7$(),n.xc7("height",t.textareaHeight,"px"),n.Y8G("maxlength",t.maxLength),n.R50("ngModel",t.textPrompt))},dependencies:[_.me,_.BC,_.tU,_.vS],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%;position:relative;z-index:10;pointer-events:none}.prompt-animation-wrap[_ngcontent-%COMP%]{position:relative;width:100%;height:calc(100% - 18px);pointer-events:auto}textarea[_ngcontent-%COMP%]{resize:none;outline:none;width:100%;min-height:78px;max-height:320px;padding:8px;font-size:12px;color:#b0b3bf;border:0px;background:transparent;line-height:18px;position:relative;z-index:2;box-sizing:border-box}textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px;border-radius:12px}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-track{border-radius:12px;margin-top:8px}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#d5d7dd;border-radius:12px}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#afb4c2}.prompt-info[_ngcontent-%COMP%]{font-size:11px;color:#959aa7;margin-top:0;padding-left:8px;height:24px;line-height:normal;width:calc(100% - 8px);bottom:4px;z-index:9}.lampicon[_ngcontent-%COMP%]{border-radius:8px}.lampicon[_ngcontent-%COMP%]:hover{background:#626adf0d}.prompt-text[_ngcontent-%COMP%]{color:#272b34}.prompt-resize-handle[_ngcontent-%COMP%]{position:absolute;
1left:50%;bottom:-2px;top:auto;transform:translate(-50%);width:48px;height:16px;display:flex;align-items:center;justify-content:center;cursor:ns-resize;z-index:12;user-select:none;-webkit-user-select:none;touch-action:none;pointer-events:auto;opacity:1}.prompt-resize-grip[_ngcontent-%COMP%]{position:relative;width:24px;height:2px;border-radius:1px;background:#b0b3bf;opacity:1;pointer-events:none}.prompt-resize-handle[_ngcontent-%COMP%]:hover   .prompt-resize-grip[_ngcontent-%COMP%], .prompt-resize-handle[_ngcontent-%COMP%]:active   .prompt-resize-grip[_ngcontent-%COMP%]{background:#4a4f5e}"]}),s})()},94329:(P,v,i)=>{i.d(v,{M:()=>u,p:()=>c});var n=i(21413),p=i(43836),l=i(16478),m=i(16471),_=i(54438),d=i(33391);let u=(()=>{var s;class a{constructor(t){this.modalService=t}canDeactivate(t){if(t?.canDeactivate())return!0;{let o=this.openCanActivateConfirmDialog();return o.subscribe(r=>{r||t.saveProject()}),o}}openCanActivateConfirmDialog(){const t=new n.B,o=this.modalService.open(p.wR,{centered:!0,windowClass:"confirm-modal"});return o.componentInstance.title=l.b.message.unsavedTitle,o.componentInstance.message=l.b.message.unsavedMessages,o.componentInstance.subject=t,t.asObservable()}}return(s=a).\u0275fac=function(t){return new(t||s)(_.KVO(d.Bq))},s.\u0275prov=_.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),a})(),c=(()=>{var s;class a{constructor(t){this.modalService=t}canDeactivate(t){if(t?.canDeactivate())return!0;{let o=this.openCanActivatePhotoEditor(t?.getEditorType());return o.subscribe(r=>{}),o}}openCanActivatePhotoEditor(t=null){const o=new n.B,r=this.modalService.open(p.nb,{centered:!0,windowClass:"confirm-modal"});let h="";return h=t&&t==m._Y.AIPhoto?l.b.message.warningAiLostMessage:l.b.message.warningMessage,r.componentInstance.title=h,r.componentInstance.subject=o,o.asObservable()}}return(s=a).\u0275fac=function(t){return new(t||s)(_.KVO(d.Bq))},s.\u0275prov=_.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),a})()},32594:(P,v,i)=>{i.d(v,{d:()=>m});var n=i(16471),p=i(54438),l=i(32764);let m=(()=>{var _;class d{constructor(c){this.templateService=c,this.templateType=1}getResizeContent(c=null){this.templateService.getCreateFromScratchData(this.templateType,!0,s=>{const e=(s.body.socialPlatformsList||[]).concat(this.getCustomLayouts());e&&e.forEach(t=>{t.title=t.socialLabelType.replace(" ","").toLowerCase();let o=[];t.title===n.zu.SocialMedia&&(t.socialPlatformFormats.forEach((r,h)=>{const g=r.socialPlatform.split(" ")[0];-1===o.findIndex(E=>E.title===g.toLowerCase())&&o.push({id:++h,title:g.toLowerCase(),socialPlatform:r.socialPlatform,iconName:r.iconName})}),t.socialMediaLayout=o)}),this.setBoxWidthHeight(e),c&&c(e)},s=>{console.log(s)})}getCustomLayouts(){return[{socialLabelType:"Custom",parentMediaType:"1",socialPlatformFormats:[{title:"custom",shortName:"Custom",format:0,wRatio:0,hRatio:0,width:0,height:0,socialPlatformId:26,thumbUrl:"https://d2v5dzhdg4zhx3.cloudfront.net/provideo-web-banner/travel.png"}]}]}setBoxWidthHeight(c){let s=1;c&&c.forEach(a=>{a.socialPlatformFormats.forEach(e=>{e.id=s++,e.width>e.height?(e.boxHeight=Math.round(70*e.height/e.width),e.boxWidth=70):(e.boxWidth=Math.round(70*e.width/e.height),e.boxHeight=70)})})}}return(_=d).\u0275fac=function(c){return new(c||_)(p.KVO(l.I))},_.\u0275prov=p.jDH({token:_,factory:_.\u0275fac}),d})()},74343:(P,v,i)=>{i.d(v,{_:()=>d});var n=i(16478),p=i(54438),l=i(74710),m=i(74983),_=i(55349);let d=(()=>{var u;class c{constructor(a,e,t,o){this._router=a,this.route=e,this.toastService=t,this.editoruiservice=o}saveProject(a,e,t,o=null){t.isSaving||this.toastService.showProcess("Saving...",{});let r=!t.design.assetId;t.isUserQuotaFull=!1,t.save(a.systemRefKey,h=>{this.toastService.removeAll(),this.toastService.showSuccess(n.b.message.saveSuccess),r&&t.design.assetId&&this._router.navigate([],{replaceUrl:!0,relativeTo:this.route,queryParams:{action:"",project_id:t.design.assetId},queryParamsHandling:""}),e&&e()},h=>{this.toastService.removeAll(),t.isUserQuotaFull&&this.editoruiservice.showStorageLimitError(),o&&o()})}isSaved(a){return a.isSaved()}}return(u=c).\u0275fac=function(a){return new(a||u)(p.KVO(l.Ix),p.KVO(l.nX),p.KVO(m.f),p.KVO(_.f))},u.\u0275prov=p.jDH({token:u,factory:u.\u0275fac}),c})()},90866:(P,v,i)=>{i.d(v,{R:()=>T});var n=i(60177),p=i(84341),l=i(83339),m=i(48928),_=i(21626),d=i(33391),u=i(72913),c=i(89818),s=i(19338),a=i(85188),e=i(21652),t=i(43387),o=i(
155349),r=i(74710),h=i(74343),g=i(79421),M=i(24269),E=i(90521),D=i(8708),C=i(23486),I=i(23679),b=i(7060),R=i(32594),L=i(86820),f=i(54438);let T=(()=>{var O;class x{}return(O=x).\u0275fac=function(U){return new(U||O)},O.\u0275mod=f.$C({type:O}),O.\u0275inj=f.G2t({providers:[o.f,h._,E.K,R.d,(0,_.$R)((0,_.Sx)())],imports:[n.MD,l.G,d.UN,d._f,p.YN,r.iI,p.X1,u.s,m.RI,c.MQ,s.di,a.mB.forRoot(),e.YG,t.y,D.vo,g.r,M.S,C.v9,I.Y,b.U,L.e]}),x})()},13227:(P,v,i)=>{i.d(v,{K:()=>u});var n=i(60177),p=i(84341),l=i(94449),m=i(83339),_=i(33391),d=i(54438);let u=(()=>{var c;class s{}return(c=s).\u0275fac=function(e){return new(e||c)},c.\u0275mod=d.$C({type:c}),c.\u0275inj=d.G2t({providers:[l.r],imports:[n.MD,p.YN,m.G,_.UN]}),s})()},43387:(P,v,i)=>{i.d(v,{y:()=>p});var n=i(54438);let p=(()=>{var l;class m{}return(l=m).\u0275fac=function(d){return new(d||l)},l.\u0275mod=n.$C({type:l}),l.\u0275inj=n.G2t({}),m})()}}]);

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.