1import{a as re}from"./chunk-YT4NEXHO.js";import"./chunk-JAIGOAQK.js";import{a as te}from"./chunk-3EGOPDQC.js";import{z as ne}from"./chunk-Y5NF2GMB.js";import{f as ie}from"./chunk-A5C6PUFU.js";import{b as $,e as J,f as K}from"./chunk-NAZTDUI6.js";import{a as oe}from"./chunk-QJXPO6DR.js";import{a as me}from"./chunk-C6QZLXTM.js";import{oa as Z,pa as ee}from"./chunk-EMWCNDK4.js";import"./chunk-RYBAN6WK.js";import{a as q}from"./chunk-GMVB5TW3.js";import{$ as N,$b as A,Ab as v,Cb as h,Eb as p,Hc as k,Ib as P,Ja as b,Jb as S,Jc as E,Kb as M,Kc as G,Ma as w,Mb as _,Na as c,Nc as O,Qb as C,Vb as U,Wa as f,Wb as H,Xb as Y,Y as l,Z as d,_ as j,_b as Q,ab as I,ac as z,d as W,ea as F,fb as y,la as B,lb as L,qb as a,rb as r,sb as s,tb as g,z as R}from"./chunk-RTNXA4FN.js";import{e as de}from"./chunk-OSQMNGTH.js";var X=de(me());var _e=["cropRect"],Ce=["image"],fe=(m,i)=>({"--background-image":m,"--width":i}),ve=m=>({"grid-visible":m});function xe(m,i){if(m&1){let e=v();r(0,"div",4),j(),r(1,"svg",5)(2,"defs")(3,"clipPath",6),g(4,"rect",null,0),s()()(),N(),g(6,"img",7,1),r(8,"div",8),h("mousedown",function(o){l(e);let n=p();return d(n.onResizeStart(o,"top-left"))})("touchstart",function(o){l(e);let n=p();return d(n.onTouchResizeStart(o,"top-left"))}),s(),r(9,"div",9),h("mousedown",function(o){l(e);let n=p();return d(n.onResizeStart(o,"top-middle"))})("touchstart",function(o){l(e);let n=p();return d(n.onTouchResizeStart(o,"top-middle"))}),s(),r(10,"div",10),h("mousedown",function(o){l(e);let n=p();return d(n.onResizeStart(o,"top-right"))})("touchstart",function(o){l(e);let n=p();return d(n.onTouchResizeStart(o,"top-right"))}),s(),r(11,"div",11),h("mousedown",function(o){l(e);let n=p();return d(n.onResizeStart(o,"middle-left"))})("touchstart",function(o){l(e);let n=p();return d(n.onTouchResizeStart(o,"middle-left"))}),s(),r(12,"div",12),h("mousedown",function(o){l(e);let n=p();return d(n.onResizeStart(o,"middle-right"))})("touchstart",function(o){l(e);let n=p();return d(n.onTouchResizeStart(o,"middle-right"))}),s(),r(13,"div",13),h("mousedown",function(o){l(e);let n=p();return d(n.onResizeStart(o,"bottom-left"))})("touchstart",function(o){l(e);let n=p();return d(n.onTouchResizeStart(o,"bottom-left"))}),s(),r(14,"div",14),h("mousedown",function(o){l(e);let n=p();return d(n.onResizeStart(o,"bottom-middle"))})("touchstart",function(o){l(e);let n=p();return d(n.onTouchResizeStart(o,"bottom-middle"))}),s(),r(15,"div",15),h("mousedown",function(o){l(e);let n=p();return d(n.onResizeStart(o,"bottom-right"))})("touchstart",function(o){l(e);let n=p();return d(n.onTouchResizeStart(o,"bottom-right"))}),s(),r(16,"div",16),h("mousedown",function(o){l(e);let n=p();return d(n.onDragStart(o))})("touchstart",function(o){l(e);let n=p();return d(n.onTouchDragStart(o))}),r(17,"div",17)(18,"div",18),g(19,"div",19)(20,"div",19)(21,"div",19),s(),r(22,"div",18),g(23,"div",19)(24,"div",19)(25,"div",19),s(),r(26,"div",18),g(27,"div",19)(28,"div",19)(29,"div",19),s()()()()}if(m&2){let e=p();a("ngStyle",z(65,fe,"url("+e.imageSource+")",e.imagePreviewWidth+"px")),c(4),L("x",e.cropX)("y",e.cropY)("width",e.cropWidth)("height",e.cropHeight),c(2),a("src",e.imageSource,b),c(2),_("left",e.cropX-8,"px")("top",e.cropY-8,"px"),a("ngClass",e.theme),c(),_("left",e.cropX+e.cropWidth/2-16,"px")("top",e.cropY-8,"px"),a("ngClass",e.theme),c(),_("left",e.cropX+e.cropWidth-8,"px")("top",e.cropY-8,"px"),a("ngClass",e.theme),c(),_("left",e.cropX-8,"px")("top",e.cropY+e.cropHeight/2-16,"px"),a("ngClass",e.theme),c(),_("left",e.cropX+e.cropWidth-8,"px")("top",e.cropY+e.cropHeight/2-16,"px"),a("ngClass",e.theme),c(),_("left",e.cropX-8,"px")("top",e.cropY+e.cropHeight-8,"px"),a("ngClass",e.theme),c(),_("left",e.cropX+e.cropWidth/2-16,"px")("top",e.cropY+e.cropHeight-8,"px"),a("ngClass",e.theme),c(),_("left",e.cropX+e.cropWidth-8,"px")("top",e.cropY+e.cropHeight-8,"px"),a("ngClass",e.theme),c(),_("left",e.cropX,"px")("top",e.cropY,"px")("width",e.cropWidth,"px")("height",e.cropHeight,"px"),a("ngClass",e.theme),c(),a("ngClass",A(68,ve,e.showGrid)),c(2),a("ngClass",e.theme),c(),a("ngClass",e.theme),c(),a("ngClass",e.theme),c(2),a("ngClass",e.theme),c(),a("ngClass",e.theme),c(),a("ngClass",e.theme),c(2),a("ngClass",e.theme),c(),a("ngClass",e.theme),c(),a("ngClass",e.theme)}}var V=class m{startX=0;startY=0;showGrid=!1;isDragging=!1;isResizing=!1;croppedImageSrc=null;currentHandle=null;$attemptCrop=new W;attemptCropSubscription;debounceMilliseconds=500;cropX=0;cropY=0;cropWidth=200;cropHeight=200;minCropSize=50;imagePreviewWidth=400;whitePixelThreshold=20;imageSource=null;imageChangedEvent=null;theme="mixed";imageType="jpeg";imageCroppedEvent=new F;cropRect;imageElement;cropperState={x:this.cropX,y:this.cropY,width:this.cropWidth,height:this.cropHeight};
1ngOnChanges(i){i.imageSource&&this.imageSource&&this.theme==="auto"&&this.detectWhitePixelsAndSetTheme(this.imageSource)}ngOnInit(){this.attemptCropSubscription=this.$attemptCrop.pipe(R(this.debounceMilliseconds)).subscribe(i=>{i&&this.cropImage()})}ngOnDestroy(){this.attemptCropSubscription.unsubscribe()}onDragStart(i){i.preventDefault(),this.isDragging=!0,this.startX=i.clientX-this.cropX,this.startY=i.clientY-this.cropY,this.$attemptCrop.next(!1)}onResizeStart(i,e){i.preventDefault(),this.isResizing=!0,this.currentHandle=e,this.startX=i.clientX,this.startY=i.clientY,this.$attemptCrop.next(!1)}onTouchDragStart(i){i.preventDefault(),this.isDragging=!0,this.startX=i.touches[0].clientX-this.cropX,this.startY=i.touches[0].clientY-this.cropY,this.$attemptCrop.next(!1)}onTouchResizeStart(i,e){i.preventDefault(),this.isResizing=!0,this.currentHandle=e,this.startX=i.touches[0].clientX,this.startY=i.touches[0].clientY,this.$attemptCrop.next(!1)}onMouseMove(i){let e=i.touches?i.touches[0].clientX:i.clientX,t=i.touches?i.touches[0].clientY:i.clientY;if(this.isDragging)this.showGrid=!0,this.cropX=e-this.startX,this.cropY=t-this.startY,this.enforceBounds();else if(this.isResizing){this.showGrid=!0;let o=e-this.startX,n=t-this.startY;switch(this.currentHandle){case"top-left":this.cropX+=o,this.cropY+=n,this.cropWidth-=o,this.cropHeight-=n;break;case"top-middle":this.cropY+=n,this.cropHeight-=n;break;case"top-right":this.cropWidth+=o,this.cropY+=n,this.cropHeight-=n;break;case"middle-left":this.cropX+=o,this.cropWidth-=o;break;case"middle-right":this.cropWidth+=o;break;case"bottom-left":this.cropX+=o,this.cropWidth-=o,this.cropHeight+=n;break;case"bottom-middle":this.cropHeight+=n;break;case"bottom-right":this.cropWidth+=o,this.cropHeight+=n;break}this.startX=e,this.startY=t,this.enforceBounds()}}onMouseUp(){this.isDragging=!1,this.isResizing=!1,this.currentHandle=null,this.showGrid=!1,this.$attemptCrop.next(!0)}enforceBounds(){if(this.imageElement.nativeElement){let i=this.imageElement.nativeElement.getBoundingClientRect();this.cropWidth=Math.max(this.minCropSize,this.cropWidth),this.cropHeight=Math.max(this.minCropSize,this.cropHeight),this.cropX=Math.min(Math.max(0,this.cropX),i.width-this.cropWidth),this.cropY=Math.min(Math.max(0,this.cropY),i.height-this.cropHeight),this.cropHeight>=i.height&&(this.cropHeight=i.height),this.cropWidth>=i.width&&(this.cropWidth=i.width)}}setDefaultCropArea(){this.cropX=this.cropperState.x,this.cropY=this.cropperState.y,this.cropWidth=this.cropperState.width,this.cropHeight=this.cropperState.height,this.enforceBounds()}cropImage(){if(this.imageSource){let i=document.createElement("canvas"),e=new Image;e.src=this.imageSource;let t=e.width/this.imageElement.nativeElement.clientWidth;i.width=this.cropWidth*t,i.height=this.cropHeight*t,i.getContext("2d").drawImage(e,this.cropX*t,this.cropY*t,this.cropWidth*t,this.cropHeight*t,0,0,i.width,i.height),this.croppedImageSrc=i.toDataURL("image/"+this.imageType),this.imageCroppedEvent.emit(this.croppedImageSrc)}}clearImage(){this.imageSource="",this.croppedImageSrc="",this.setDefaultCropArea(),this.imageCroppedEvent.emit(this.croppedImageSrc)}detectWhitePixelsAndSetTheme(i){let e=new Image;e.src=i,e.onload=()=>{let t=document.createElement("canvas"),o=t.getContext("2d");t.width=e.width,t.height=e.height,o.drawImage(e,0,0,t.width,t.height);let n=o.getImageData(0,0,t.width,t.height).data,u=0,D=n.length/4,T=200;for(let x=0;x<n.length;x+=4){let ce=n[x],pe=n[x+1],le=n[x+2];ce>T&&pe>T&&le>T&&u++}let ae=u/D*100;this.theme=ae>this.whitePixelThreshold?"dark":"light"}}static \u0275fac=function(e){return new(e||m)};static \u0275cmp=I({type:m,selectors:[["ngx-smart-cropper"]],viewQuery:function(e,t){if(e&1&&P(_e,5)(Ce,5),e&2){let o;S(o=M())&&(t.cropRect=o.first),S(o=M())&&(t.imageElement=o.first)}},hostBindings:function(e,t){e&1&&h("mousemove",function(n){return t.onMouseMove(n)},w)("touchmove",function(n){return t.onMouseMove(n)},w)("mouseup",function(){return t.onMouseUp()},w)("touchend",function(){return t.onMouseUp()},w)},inputs:{cropX:"cropX",cropY:"cropY",cropWidth:"cropWidth",cropHeight:"cropHeight",minCropSize:"minCropSize",imagePreviewWidth:"imagePreviewWidth",whitePixelThreshold:"whitePixelThreshold",imageSource:"imageSource",imageChangedEvent:"imageChangedEvent",theme:"theme",imageType:"imageType"},outputs:{imageCroppedEvent:"imageCroppedEvent"},features:[B],decls:2,vars:1,consts:[["cropRect",""],["image",""],[1,"cropper-container"],["class","background",3,"ngStyle",4,"ngIf"],[1,"background",3,"ngStyle"],[1,"svg-defs"],["id","clipper"],[3,"src"],[1,"handle","top-left",3,"mousedown","touchstart","ngClass"],[1,"handle","top-middle",3,"mousedown","touchstart","ngClass"],[1,"handle","top-right",3,"mousedown","touchstart","ngClass"],[1,"handle","middle-left",3,"mousedown","touchstart","ngClass"],[1,"handle","middle-right",3,"mousedown","touchstart","ngClass"],[1,"handle","bottom-left",3,"mousedown","touchstart","ngClass"],[1,"handle","bottom-middle",3,"mousedown","touchstart","ngClass"],[1,"handle","bottom-right",3,"mousedown","touchstart","ngClass"],[1,"crop-mask",3,"mousedown","touchstart","ngClass"],[1,"grid-overlay",3,"ngClass"],[1,"grid-row"],[1,"grid-cell",3,"ngClass"]],template:function(e,t){e&1&&(r(0,"div",2),y(1,xe,30,70,"div",3),s()),e&2&&(c(),a("ngIf",t.imageSource))},dependencies:[O,k,E,G],styles:['.svg-defs[_ngcontent-%COMP%]{position:absolute;width:0;height:0}.cropper-container[_ngcontent-%COMP%]{position:relative;height:auto;display:flex;flex-direction:column;align-items:center}.background[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%;width:400px;height:auto;clip-path:url(#clipper);border-radius:15px}.background[_ngcontent-%COMP%]{position:relative;max-width:100%;width:400px;height:auto;background-size:600px auto}.background[_ngcontent-%COMP%]:before{content:"";position:absolute;inset:0;opacity:.5;background-image:var(--background-image);background-repeat:no-repeat;max-width:100%;width:auto;width:400px;height:auto;background-size:400px auto;border-radius:15px}.crop-mask[_ngcontent-%COMP%]{position:absolute;box-sizing:border-box;
1cursor:move}.crop-mask.light[_ngcontent-%COMP%]{border:2px dashed #fff}.crop-mask.dark[_ngcontent-%COMP%], .crop-mask.mixed[_ngcontent-%COMP%]{border:2px dashed #000}.handle[_ngcontent-%COMP%]{position:absolute;width:16px;height:16px;border-radius:50%;z-index:10}.handle.light[_ngcontent-%COMP%]{background:#fff}.handle.dark[_ngcontent-%COMP%], .handle.mixed[_ngcontent-%COMP%]{background:#000}.handle.top-left[_ngcontent-%COMP%]{cursor:nwse-resize}.handle.top-middle[_ngcontent-%COMP%]{cursor:ns-resize;width:32px;border-radius:25px}.handle.top-right[_ngcontent-%COMP%]{cursor:nesw-resize}.handle.middle-left[_ngcontent-%COMP%], .handle.middle-right[_ngcontent-%COMP%]{cursor:ew-resize;height:32px;border-radius:25px}.handle.bottom-left[_ngcontent-%COMP%]{cursor:nesw-resize}.handle.bottom-middle[_ngcontent-%COMP%]{cursor:ns-resize;width:32px;border-radius:25px}.handle.bottom-right[_ngcontent-%COMP%]{cursor:nwse-resize}.grid-overlay[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;pointer-events:none;opacity:.005;transition:opacity .3s ease}.grid-overlay.grid-visible[_ngcontent-%COMP%]{opacity:1}.grid-row[_ngcontent-%COMP%]{flex:1;display:flex}.grid-cell[_ngcontent-%COMP%]{flex:1}.grid-cell.dark[_ngcontent-%COMP%]{border-right:1px solid rgba(0,0,0,.9);border-bottom:1px solid rgba(0,0,0,.9)}.grid-cell.light[_ngcontent-%COMP%], .grid-cell.mixed[_ngcontent-%COMP%]{border-right:1px solid rgba(255,255,255,.9);border-bottom:1px solid rgba(255,255,255,.9)}.grid-row[_ngcontent-%COMP%]:last-child .grid-cell[_ngcontent-%COMP%]{border-bottom:none}.grid-cell[_ngcontent-%COMP%]:last-child{border-right:none}.uploader[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;align-items:center;width:320px;height:76px;padding:.5rem 1rem;background-color:#edf0f4;border-radius:15px;cursor:pointer;border:2px dashed #aaa}.uploader[_ngcontent-%COMP%] input[type=file][_ngcontent-%COMP%]{display:none}.uploader[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin-left:10px;color:#2f2f2f}.uploader[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-left:5px;position:relative;top:-5px}.buttons[_ngcontent-%COMP%]{position:relative;top:-80px;display:flex;flex-direction:row;justify-content:center;padding:5px;border-radius:50px;width:175px;margin:1rem auto 0;z-index:9999}.btn[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;position:relative;padding:0;margin:0 7.2px;outline:none;width:40px;height:40px;border:none;color:#fff;background-color:#000000b3;background-repeat:no-repeat;background-size:50% 50%;background-position:50%;border-radius:50%;border:1px solid #444242}.btn[_ngcontent-%COMP%]:hover{box-shadow:#fff 0 0 0 3px;transform:scale(.95);opacity:1;transition:all .25s}@media(max-width:600px){.background[_ngcontent-%COMP%]:before{width:100%;background-size:cover}}']})};var be=["fileUpload"],we=(m,i)=>({"d-flex justify-content-center":!0,modalMobileSize:m,modalSize:i}),ye=()=>({overflow:"hidden"});function Se(m,i){if(m&1){let e=v();r(0,"app-success-modal",29),h("returnFromSuccess",function(){l(e);let o=p();return d(o.closeSuccess())}),s()}if(m&2){let e=p();a("headerText",e.successHeaderText)}}function Me(m,i){if(m&1){let e=v();r(0,"img",30),h("click",function(){l(e);let o=p();return d(o.openFileInput())}),s()}if(m&2){let e=p();a("src",e.photoCache.cacheMap.get(e.authorizedUserModel.id),b)}}function Te(m,i){if(m&1){let e=v();r(0,"img",30),h("click",function(){l(e);let o=p();return d(o.openFileInput())}),s()}if(m&2){let e=p();a("src",e.defaultImage,b)}}var se=class m{constructor(i,e,t,o,n,u,D,T){this.imageCompress=i;this.themeChangeService=e;this.sharedNavigation=t;this.userManager=o;this.authorizedUserModel=n;this.tokenManager=u;this.configModel=D;this.photoCache=T}imageCompress;themeChangeService;sharedNavigation;userManager;authorizedUserModel;tokenManager;configModel;photoCache;defaultTheme;successLabel;openProfilePhoto;croppedImage;isProfilePhoto;didImageChange;uploadedImage;showSuccess;defaultImage;fileUpload;successHeaderText="Theme Saved!";ngOnInit(){this.defaultTheme="light",this.openProfilePhoto=!1,this.showSuccess=!1,this.defaultImage=this.photoCache.cac
1heMap.get(this.authorizedUserModel.id)}closeCropperModal(){this.openProfilePhoto=!1}setLightTheme(){this.authorizedUserModel.uiTheme="light",X.default.set("_theme","light"),this.themeChangeService.ChangeTheme("light"),this.userManager.PutUserSettings(this.authorizedUserModel.settingsId,this.authorizedUserModel.timezone,this.authorizedUserModel.country,this.authorizedUserModel.uiTheme,this.authorizedUserModel.imageMime,this.authorizedUserModel.image,this.authorizedUserModel.hashtags,this.authorizedUserModel.defaultGospel,this.authorizedUserModel.interests,this.authorizedUserModel.notificationOptedIn,this.authorizedUserModel.notificationFrequency),this.successLabel="Color Theme Saved",this.openSuccess()}setDarkTheme(){this.authorizedUserModel.uiTheme="dark",X.default.set("_theme","dark"),this.themeChangeService.ChangeTheme("dark"),this.userManager.PutUserSettings(this.authorizedUserModel.settingsId,this.authorizedUserModel.timezone,this.authorizedUserModel.country,this.authorizedUserModel.uiTheme,this.authorizedUserModel.imageMime,this.authorizedUserModel.image,this.authorizedUserModel.hashtags,this.authorizedUserModel.defaultGospel,this.authorizedUserModel.interests,this.authorizedUserModel.notificationOptedIn,this.authorizedUserModel.notificationFrequency),this.successLabel="Color Theme Saved",this.openSuccess()}openFileInput(){document.getElementById("wizard_picture").click()}loadImage(i){i.target.files&&(this.didImageChange=!0,this.isProfilePhoto=!0,setTimeout(()=>{if(i.target.files[0]){var e=new FileReader;e.readAsDataURL(i.target.files[0]),e.onload=t=>{this.uploadedImage=t.target.result,this.croppedImage=this.uploadedImage}}this.fileUpload.nativeElement.value=""},50))}imageCropped(i){this.croppedImage=i}saveCroppedImage(){this.imageCompress.compressFile(this.croppedImage,1,100,100,200,200).then(i=>{this.defaultImage=i,this.saveImage(this.defaultImage),this.successLabel="Profile Image Saved",this.openProfilePhoto=!1,this.openSuccess()})}saveImage(i){this.defaultImage=i;var e=i.split(",");this.authorizedUserModel.imageMime=e[0].substring(5,e[0].indexOf(";")),this.authorizedUserModel.image=e[1]}openSuccess(){this.showSuccess=!0}closeSuccess(){this.showSuccess=!1}previous(){this.sharedNavigation.NavToOnBoardingDiscussion()}cancel(){var i=null;this.sharedNavigation.NavToDiscuss("discussions",i)}static \u0275fac=function(e){return new(e||m)(f(te),f(oe),f(K),f(ne),f(J),f($),f(q),f(ie))};static \u0275cmp=I({type:m,selectors:[["app-choose-theme"]],viewQuery:function(e,t){if(e&1&&P(be,5),e&2){let o;S(o=M())&&(t.fileUpload=o.first)}},decls:52,vars:24,consts:[["fileUpload",""],["header","Crop Your Profile Image",3,"visibleChange","ngClass","modal","blockScroll","visible"],[2,"text-align","center"],[2,"max-width","100%","max-height","100%",3,"imageCroppedEvent","imageType","cropX","cropY","cropWidth","cropHeight","theme","imageSource"],[1,"d-flex","justify-content-end","modalFooter"],["type","button",1,"primaryButton",3,"click"],["header","Success!",1,"d-flex","justify-content-center",3,"visibleChange","modal","blockScroll","contentStyle","visible"],[3,"headerText","returnFromSuccess",4,"ngIf"],[1,"container","px-3","px-sm-0"],[1,"wd485px","pad_top_35","pad-bottom-40","d-flex","justify-content-center"],[1,"margin-bottom-40"],[1,"row","m-0"],[1,"blue_grey_400_text","mb-3","mt-4","d-flex","justify-content-center"],[1,"d-flex","justify-content-center"],["class","pointerCursor","id","finishedResult","pTooltip","Change Image","tooltipPosition","bottom","style","height:125px; width: 125px; object-fit: cover;",3,"src","click",4,"ngIf"],["type","file","id","wizard_picture","accept",".jpg, .jpeg, .png, .gif",3,"change"],[1,"blue_grey_400_text","themeMargin","d-flex","justify-content-center"],[1,"row","mb-5","g-4"],[1,"col-4","p-0"],[1,"col","p-0"],[1,"row","mb-3","d-flex","justify-content-center"],["src","../../../../assets/img/theme/light-theme.svg","alt","",1,"img-fluid",2,"width","100px"],[1,"row","m-0","d-flex","justify-content-center"],["type","radio","name","rdTheme","id","light","value","",1,"form_check_input","m-0",3,"click","checked"],["src","../../../../assets/img/theme/dark-theme.svg","alt","",1,"img-fluid",2,"width","100px"],["type","radio","name","rdTheme","id","dark","value","dark",1,"form_check_input","m-0",3,"click","checked"],[1,"row","m-0","pad_top_35","pad-bottom-70"],[1,"col","p-0","d-flex","justify-content-center"],[1,"primaryButton",3,"click"],[3,"returnFromSuccess","headerText"],["id","finishedResult","pTooltip","Change Image","tooltipPosition","bottom",1,"pointerCursor",2,"height","125px","width","125px","object-fit","cover",3,"click","
1src"]],template:function(e,t){if(e&1){let o=v();r(0,"p-dialog",1),Y("visibleChange",function(u){return l(o),H(t.openProfilePhoto,u)||(t.openProfilePhoto=u),d(u)}),r(1,"div",2)(2,"ngx-smart-cropper",3),h("imageCroppedEvent",function(u){return t.imageCropped(u)}),s()(),r(3,"div",4)(4,"button",5),h("click",function(){return t.saveCroppedImage()}),C(5,"Save"),s(),r(6,"button",5),h("click",function(){return t.closeCropperModal()}),C(7,"Close"),s()()(),r(8,"p-dialog",6),Y("visibleChange",function(u){return l(o),H(t.showSuccess,u)||(t.showSuccess=u),d(u)}),y(9,Se,1,1,"app-success-modal",7),s(),r(10,"div",8)(11,"h2",9),C(12,"Customize Your Experience"),s(),r(13,"div",10)(14,"div",11)(15,"h4",12),C(16,"Change Profile Image"),s()(),r(17,"div",11)(18,"div",13),y(19,Me,1,1,"img",14)(20,Te,1,1,"img",14),r(21,"input",15,0),h("change",function(u){return t.loadImage(u)}),s()()()(),r(23,"h4",16),C(24,"Select Your Color Theme"),s(),r(25,"div",17),g(26,"div",18),r(27,"div",19)(28,"div",20),g(29,"img",21),s(),r(30,"div",22),C(31," Light "),s(),r(32,"div",22)(33,"input",23),h("click",function(){return t.setLightTheme()}),s()()(),r(34,"div",19)(35,"div",20),g(36,"img",24),s(),r(37,"div",22),C(38," Dark "),s(),r(39,"div",22)(40,"input",25),h("click",function(){return t.setDarkTheme()}),s()()(),g(41,"div",18),s(),r(42,"div",26)(43,"div",11),g(44,"div",18),r(45,"div",27)(46,"button",28),h("click",function(){return t.previous()}),C(47,"Previous"),s()(),r(48,"div",27)(49,"button",28),h("click",function(){return t.cancel()}),C(50,"Finish"),s()(),g(51,"div",18),s()()()}e&2&&(a("ngClass",z(20,we,t.configModel.smallModal==!0,t.configModel.smallModal==!1))("modal",!0)("blockScroll",!0),U("visible",t.openProfilePhoto),c(2),a("imageType","jpeg")("cropX",0)("cropY",0)("cropWidth",200)("cropHeight",200)("theme","mixed")("imageSource",t.uploadedImage),c(6),a("modal",!0)("blockScroll",!0)("contentStyle",Q(23,ye)),U("visible",t.showSuccess),c(),a("ngIf",t.showSuccess),c(10),a("ngIf",!t.defaultImage),c(),a("ngIf",t.defaultImage),c(13),a("checked",t.authorizedUserModel.uiTheme=="light"),c(7),a("checked",t.authorizedUserModel.uiTheme=="dark"))},dependencies:[O,k,E,ee,Z,V,re],styles:[".pad-bottom-70[_ngcontent-%COMP%]{padding-bottom:70px}.margin-bottom-40[_ngcontent-%COMP%]{margin-bottom:40px}.pad-bottom-40[_ngcontent-%COMP%]{padding-bottom:40px}input[type=file][_ngcontent-%COMP%]{display:none}.themeMargin[_ngcontent-%COMP%]{margin:60px 0 20px}"]})};export{se as ChooseThemeComponent};
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.