PageSourceSearch

https://app.orgonize.com/chunk-ACG7N4GM.js

js orgonize.com collected 2026-10-05 01:23:42 UTC 120,153 bytes, 773 lines download raw bytes

1import{a as _i}from"./chunk-5IYQBC7R.js";import{a as Ce}from"./chunk-CQWK4VJ3.js";import{a as gi}from"./chunk-26CTNZX3.js";import{a as hi}from"./chunk-WF6VW3TU.js";import{a as fi}from"./chunk-SJU75ZTG.js";import{a as pi,b as di}from"./chunk-4YJSCZHJ.js";import{a as ye}from"./chunk-KOPY5PFY.js";import{a as ui,b as ve,c as ce}from"./chunk-XH5SH5R4.js";import{a as ni}from"./chunk-H5ZSDDON.js";import{a as ae}from"./chunk-TA3UIPM7.js";import{a as xe}from"./chunk-LLY7IWYX.js";import"./chunk-RAS4UR3V.js";import{a as He,b as Ke}from"./chunk-QALRHT3Z.js";import{a as Ni}from"./chunk-4SN7TRGH.js";import"./chunk-ESS4X7VU.js";import"./chunk-QYLOBOTF.js";import"./chunk-E46M4ZTF.js";import{j as Ye}from"./chunk-TZQU33R2.js";import"./chunk-FBK62FVD.js";import{a as ai}from"./chunk-MYW5TSFL.js";import{a as ti,b as ci,c as me}from"./chunk-WXBUTP4M.js";import{a as mi}from"./chunk-7JOJN3RM.js";import{a as li}from"./chunk-6ID4F7HT.js";import{a as si}from"./chunk-3ZM65R5R.js";import{a as be}from"./chunk-UWL6IRDS.js";import{e as Je}from"./chunk-F3BFGYN6.js";import{a as le}from"./chunk-OXX5OXPS.js";import"./chunk-KVIIJSEX.js";import{a as se}from"./chunk-I45IYOMA.js";import{a as _e}from"./chunk-REYQ6RU5.js";import{g as ri,h as oi,i as y}from"./chunk-46CI6TOY.js";import"./chunk-CSLPDERK.js";import{a as re}from"./chunk-MRNBATYH.js";import{d as ei,e as he,f as ii,h as W}from"./chunk-REQ3ZIKO.js";import{a as k}from"./chunk-LLWOZXGS.js";import{a as j}from"./chunk-Z67RF3DW.js";import{W as ne,ba as Xe,da as z,ha as Ze,ia as oe,ka as U}from"./chunk-OOF7GBBY.js";import{A as Qe,c as Ue,e as O,h as De,i as Re,j as ze,l as je,n as We,q as qe,r as Ge,z as $e}from"./chunk-ZKXAIFLN.js";import"./chunk-DRDLSANX.js";import{a as L}from"./chunk-BD7FZ46M.js";import"./chunk-NFCVD4UL.js";import{$a as P,$c as Oe,A as ue,Ab as c,Bb as $,Cb as Z,Cd as Le,Dc as Me,Fb as fe,Gc as w,Hc as N,I as G,Ic as X,Jb as Ie,Lc as A,Ob as r,Pb as o,Qb as g,Rb as x,Sb as v,Ub as B,Xb as b,Zb as d,eb as a,ec as Q,fb as C,fc as Y,gc as H,jc as I,kc as p,lc as ke,mc as S,pa as D,rc as Be,sc as Te,tc as Ve,td as ee,ud as ie,vc as R,vd as te,xc as ge,ya as h,yb as f,yc as T,yd as Ae,za as _,zb as Fe,zc as K}from"./chunk-GHDWNG75.js";import"./chunk-WFMAM73Y.js";import{g as Ei,i as de}from"./chunk-GP7VB7TC.js";var Pe=Ei(Ni(),1);var q=class{constructor(s){s=s||{},this.businessTypeId=s.businessTypeId,this.typeTitle=s.typeTitle,this.typeDescription=s.typeDescription}};var J=class{constructor(s){s=s||{},this.phoneNumber=s.phoneNumber||"",this.regionId=s.regionId,this.aboutUs=s.aboutUs||"",this.companyRegNo=s.companyRegNo||"",this.displayName=s.displayName||"",this.charityNumber=s.charityNumber||"",this.contactName=s.contactName||"",this.fullBusinessName=s.fullBusinessName||"",this.email=s.email||"",this.confirmEmail=s.email||"",this.password=s.password||"",this.bio=s.bio||"",this.userAvatar=s.userAvatar||"",this.isCharity=s.isCharity||!1,this.id=s.id||0,this.vatNumber=s.vatNumber||"",this.isParent=s.isParent||!0,this.branchName=s.branchName||"",this.friendsCount=s.friendsCount||0,this.followingCount=s.followingCount||0,this.location=new se(s.location),this.socialMedia=new ti(s.socialMedia),this.superAdminName=s.superAdminName,this.countryId=s.countryId||null,this.contactNumber=s.contactNumber,this.orgCountryId=s.orgCountryId||null,this.orgContactNumber=s.orgContactNumber,this.orgEmail=s.orgEmail,this.orgConfirmEmail=s.orgEmail,this.isEmailVerified=s.isEmailVerified,this.isOrgEmailVerified=s.isOrgEmailVerified,this.orgWebsite=s.orgWebsite,this.website=s.website,this.country=new _e(s.country),this.orgCountry=new _e(s.orgCountry),this.businessType=new we(s.businessType),this.businessTypeId=s.businessTypeId||null,this.sponsors=s.sponsors||[],this.isTermAndConditionAccepted=s.isTermAndConditionAccepted||!1,this.appUserPhoneNumber=s.appUserPhoneNumber||"",this.verifiedEmails=s.verifiedEmails||[]}},we=class{constructor(s){s=s||{},this.id=s.id||null,this.typeTitle=s.typeTitle||"",this.typeDescription=s.typeDescription||""}};var Vi=["ticketBg"],Mi=["downloadWrapper"],Oi=(i,s)=>({"border-b border-[rgba(255,255,255,0.10)] bg-[rgba(11,11,26,0.25)] backdrop-blur-[50px]":i,"border-transparent bg-transparent":s}),pe=i=>({" pr-91":i}),Ai=(i,s)=>({" w-[340px]  h-[209px]":i,"event-image-container w-[362px] h-[209px]":s}),Li=i=>({" opacity-50":i}),Ci=i=>({"rotate-180":i}),Ui=i=>({"border-red-500":i}),Di=()=>[1,2,3,4,5,6],Ri=()=>[1,2,3,4];function zi(i,s){if(i&1){let e=B();x(0),r(1,"div",20)(2,"img",21),w(3,"imgURL"),b("click",function(){h(e);let n=d();return _(!n.isUploading&&n.back())}),o(),r(4,"div")(5,"h2",22),p(6),o(),r(7,"p",23),p(8),o()()(),v()}if(i&2){let e=d();a(2),c("src",N(3,3,"Icons/backArrowCircle.svg"),P),a(4),S(" ",e.businessProfile.id==0?"Business Profile Creation":"Edit Profile"," "),a(2),S(" ",e.businessProfile.id==0?"Create your business profile":"Manage and update your profile information anytime"," ")}}function ji(i,s){i&1&&(r(0,"div",24),g(1,"p-skeleton",25),r(2,"div",26),g(3,"p-skeleton",27)(4,"p-skeleton",28),o()())}function Wi(i,s){i&1&&(r(0,"div",107)(1,"div",108),g(2,"div",109),o()())}function qi(i,s){i&1&&(r(0,"div",110),g(1,"img",111),w(2,"imgURL"),o()),i&2&&(a(),c("src",N(2,1,"Icons/warning.svg"),P))}function Gi(i,s){if(i&1&&(x(0),g(1,"img",104),f(2,Wi,3,0,"div",105)(3,qi,3,3,"div",106),v()),i&2){let e=d(3);a(),Z("blur-[2px]",e.isImageFlagged),c("src",e.displayAvatar,P),a(),c("ngIf",e.isUploading),a(),c("ngIf",e.isImageFlagged)}}function $i(i,s){i&1&&(r(0,"div",112)(1,"div",113),g(2,"img",114),w(3,"imgURL"),r(4,"
1span",115),p(5,"Drop Here"),o()(),r(6,"div",116),p(7," Browse Images "),o()()),i&2&&(a(2),c("src",N(3,1,"Icons/web-selling/arrow-upload.svg"),P))}function Qi(i,s){if(i&1){let e=B();r(0,"div",117),b("click",function(){h(e),d();let n=I(12);return _(n.click())}),g(1,"img",118),w(2,"imgURL"),o()}i&2&&(a(),c("src",N(2,1,"Icons/camImg.svg"),P))}function Yi(i,s){i&1&&(r(0,"div",119),g(1,"img",120),w(2,"imgURL"),r(3,"span"),p(4,"*Image is Required "),o()()),i&2&&(a(),c("src",N(2,1,"Icons/imageError.svg"),P))}function Hi(i,s){i&1&&(r(0,"div",119),g(1,"img",120),w(2,"imgURL"),r(3,"span"),p(4,"Upload image under 5 MB"),o()()),i&2&&(a(),c("src",N(2,1,"Icons/imageError.svg"),P))}function Ki(i,s){if(i&1&&(r(0,"div",119),g(1,"img",120),w(2,"imgURL"),r(3,"span"),p(4),o()()),i&2){let e=d(3);a(),c("src",N(2,2,"Icons/imageError.svg"),P),a(3),S('File type "',e.invalidFileExtension,'" not supported')}}function Xi(i,s){i&1&&(r(0,"div",119),g(1,"img",120),w(2,"imgURL"),r(3,"span"),p(4,"Inappropriate media detected. Please upload another."),o()()),i&2&&(a(),c("src",N(2,1,"Icons/moderationWarning.svg"),P))}function Ji(i,s){i&1&&(x(0),r(1,"span",121),p(2,"Business name is required."),o(),v())}function Zi(i,s){i&1&&(x(0),r(1,"span",121),p(2,"Business name must be at least 2 characters."),o(),v())}function et(i,s){if(i&1&&f(0,Zi,3,0,"ng-container",14),i&2){d();let e=I(5),t=d(3);c("ngIf",t.myForm.get("displayName").getError("minlength"))("ngIfElse",e)}}function it(i,s){i&1&&(x(0),r(1,"span",121),p(2,"*Character Limit Reached"),o(),v())}function tt(i,s){if(i&1&&f(0,it,3,0,"ng-container",14),i&2){d();let e=I(7),t=d(3);c("ngIf",t.myForm.get("displayName").getError("maxlength"))("ngIfElse",e)}}function nt(i,s){i&1&&(x(0),r(1,"span",121),p(2,"Please use letters, numbers, and standard punctuation only."),o(),v())}function rt(i,s){if(i&1&&f(0,nt,3,0,"ng-container",39),i&2){let e=d(4);c("ngIf",e.myForm.get("displayName").getError("pattern"))}}function ot(i,s){if(i&1&&(x(0),f(1,Ji,3,0,"ng-container",14)(2,et,1,2,"ng-template",null,7,A)(4,tt,1,2,"ng-template",null,8,A)(6,rt,1,1,"ng-template",null,9,A),v()),i&2){let e=I(3),t=d(3);a(),c("ngIf",t.myForm.get("displayName").getError("required"))("ngIfElse",e)}}function st(i,s){i&1&&(r(0,"span",122),p(1," Inappropriate content detected. "),o())}function at(i,s){i&1&&(r(0,"span",121),p(1,"*Alphanumeric & Speacial Character Allowed"),o())}function lt(i,s){i&1&&(r(0,"span",121),p(1," *Character Limit Reached "),o())}function mt(i,s){if(i&1&&(x(0),f(1,at,2,0,"span",123)(2,lt,2,0,"span",123),v()),i&2){let e=d(3);a(),c("ngIf",e.myForm.get("fullBusinessName").getError("pattern")),a(),c("ngIf",e.myForm.get("fullBusinessName").getError("maxlength"))}}function ct(i,s){i&1&&(r(0,"span",122),p(1," Inappropriate content detected. "),o())}function pt(i,s){if(i&1){let e=B();r(0,"img",124),w(1,"imgURL"),b("click",function(){h(e),d();let n=I(51),l=d(2);return _(l.openDropdown(n))}),o()}if(i&2){d();let e=I(51);c("ngClass",T(4,Ci,e.overlayVisible))("src",N(1,2,"Icons/arrowdrop.svg"),P)}}function dt(i,s){i&1&&(x(0),r(1,"span",121),p(2,"*Required"),o(),v())}function ut(i,s){if(i&1&&(r(0,"div",126),g(1,"img",127),r(2,"span",128),p(3),o()()),i&2){let e=d(4);a(),c("src",e.selectedRegion.flagURL,P),a(2),ke(e.selectedRegion.countryName)}}function ft(i,s){if(i&1&&f(0,ut,4,2,"div",125),i&2){let e=d(3);c("ngIf",e.selectedRegion)}}function gt(i,s){if(i&1&&(g(0,"img",129),w(1,"imgURL")),i&2){d();let e=I(59);c("ngClass",T(4,Ci,e.overlayVisible))("src",N(1,2,"Icons/arrowdrop.svg"),P)}}function ht(i,s){i&1&&(x(0),r(1,"p",130),p(2,"*Required"),o(),v())}function _t(i,s){i&1&&(r(0,"div",121),p(1," *Minimum 4 characters required "),o())}function bt(i,s){i&1&&(r(0,"div",121),p(1," *Maximum 15 characters allowed "),o())}function xt(i,s){if(i&1&&(x(0),f(1,_t,2,0,"div",123)(2,bt,2,0,"div",123),v()),i&2){let e=d(3);a(),c("ngIf",e.myForm.controls.companyRegNo.errors.minlength),a(),c("ngIf",e.myForm.controls.companyRegNo.errors.maxlength)}}function vt(i,s){i&1&&(r(0,"div",121),p(1," *Minimum 4 characters required. "),o())}function yt(i,s){i&1&&(r(0,"div",121),p(1," *Maximum 25 characters allowed. "),o())}
1function Ct(i,s){if(i&1&&(x(0),f(1,vt,2,0,"div",123)(2,yt,2,0,"div",123),v()),i&2){let e=d(3);a(),c("ngIf",e.myForm.controls.vatNumber.errors.minlength),a(),c("ngIf",e.myForm.controls.vatNumber.errors.maxlength)}}function wt(i,s){i&1&&(x(0),r(1,"span",121),p(2,"Invalid"),o(),v())}function Pt(i,s){i&1&&(x(0),r(1,"span",121),p(2," *Character Limit Reached "),o(),v())}function St(i,s){i&1&&(x(0),r(1,"p",130),p(2,"*Required"),o(),v())}function Et(i,s){i&1&&(r(0,"span",122),p(1," Inappropriate content detected. "),o())}function Nt(i,s){i&1&&(r(0,"span",121),p(1," *Character Limit Reached "),o())}function Ft(i,s){if(i&1&&(x(0),r(1,"span",121),p(2,"*Required"),o(),f(3,Nt,2,0,"span",123),v()),i&2){let e=d(3);a(3),c("ngIf",e.myForm.get("superAdminName").getError("maxlength"))}}function It(i,s){i&1&&(r(0,"span",122),p(1," Inappropriate content detected. "),o())}function kt(i,s){i&1&&(x(0),r(1,"span",121),p(2,"Invalid Phone Number"),o(),v())}function Bt(i,s){i&1&&(x(0),r(1,"span",121),p(2,"Invalid"),o(),v())}function Tt(i,s){if(i&1){let e=B();r(0,"a",133),w(1,"isTruncated"),b("click",function(){let n=h(e).$implicit,l=d(4);return l.selectOrgVerifiedEmail(n.email),_(l.checkOrgEmails())}),r(2,"span",134,10),p(4),o(),r(5,"div",135),g(6,"img",136),r(7,"span",137),p(8,"Verified"),o()()()}if(i&2){let e=s.$implicit,t=I(3);c("matTooltip",X(1,3,t,e.email))("matTooltipShowDelay",1e3),a(4),S(" ",e.email," ")}}function Vt(i,s){if(i&1&&(r(0,"div",131),f(1,Tt,9,6,"a",132),w(2,"search"),o()),i&2){let e=d(3);a(),c("ngForOf",X(2,1,e.privateVerifiedEmails,e.myForm.controls.orgEmail.value))}}function Mt(i,s){i&1&&(r(0,"div",138),g(1,"img",139),r(2,"span",140),p(3,"Verified"),o()())}function Ot(i,s){if(i&1&&(x(0),r(1,"span",121),p(2),o(),v()),i&2){let e=d(3);a(2),S(" ",e.myForm.controls.orgEmail.errors.required?"*Required":"*Invalid email","")}}function At(i,s){i&1&&(x(0),r(1,"span",121),p(2," Please Verify Your Email "),o(),v())}function Lt(i,s){if(i&1&&(x(0),r(1,"span",121),p(2),o(),v()),i&2){let e=d(3);a(2),S(" ",e.IsOrgEmailNotMatched?"*Email must match":"*Required"," ")}}function Ut(i,s){i&1&&(r(0,"div",141),g(1,"img",136),r(2,"span",142),p(3,"Verified"),o()())}function Dt(i,s){i&1&&(x(0),r(1,"span",121),p(2,"Invalid Phone Number"),o(),v())}function Rt(i,s){i&1&&(x(0),r(1,"span",121),p(2,"Invalid"),o(),v())}function zt(i,s){if(i&1){let e=B();r(0,"a",133),w(1,"isTruncated"),b("click",function(){let n=h(e).$implicit,l=d(4);return l.selectVerifiedEmail(n.email),_(l.checkEmails())}),r(2,"span",134,10),p(4),o(),r(5,"div",135),g(6,"img",136),r(7,"span",137),p(8,"Verified"),o()()()}if(i&2){let e=s.$implicit,t=I(3);c("matTooltip",X(1,3,t,e.email))("matTooltipShowDelay",1e3),a(4),S(" ",e.email," ")}}function jt(i,s){if(i&1&&(r(0,"div",143),f(1,zt,9,6,"a",132),w(2,"search"),o()),i&2){let e=d(3);a(),c("ngForOf",X(2,1,e.verifiedEmails,e.myForm.controls.email.value))}}function Wt(i,s){i&1&&(r(0,"div",138),g(1,"img",139),r(2,"span",140),p(3,"Verified"),o()())}function qt(i,s){if(i&1&&(x(0),r(1,"span",121),p(2),o(),v()),i&2){let e=d(3);a(2),S(" ",e.myForm.controls.email.errors.required?"*Required":"*Invalid email","")}}function Gt(i,s){i&1&&(x(0),r(1,"span",121),p(2," Please Verify Email Address "),o(),v())}function $t(i,s){if(i&1&&(x(0),r(1,"span",121),p(2),o(),v()),i&2){let e=d(3);a(2),S(" ",e.IsEmailNotMatched?"*Email must match":"*Required"," ")}}function Qt(i,s){i&1&&(r(0,"div",141),g(1,"img",136),r(2,"span",142),p(3,"Verified"),o()())}function Yt(i,s){i&1&&(x(0),r(1,"small")(2,"span",121),p(3,"weblink must be valid"),o()(),v())}function Ht(i,s){if(i&1){let e=B();r(0,"div",100)(1,"div",144)(2,"p",145),p(3),o()(),r(4,"div",146)(5,"div",147)(6,"app-reuseable-event-sponsors",148),b("sponsorsList",function(n){h(e);let l=d(3);return _(l.sponsorsListChanged(n))}),o()()()()}if(i&2){let e=d(3);a(3),S(" Sponsors (",e.businessProfile.sponsors.length,") "),a(3),c("emitOnAdd",!0)("showTitles",!1)("showBottom",!1)("sponsors",e.businessProfile.sponsors)("subTitleText","")("showSubTitleText",!1)("showRemoveBtn",!0)}}function Kt(i,s){i&1&&(r(0,"p",156),p(1," Please enter a valid profile URL "),o())}
1function Xt(i,s){if(i&1){let e=B();x(0),r(1,"div",149)(2,"div",150)(3,"div",151),g(4,"img",152),w(5,"imgURL"),o(),r(6,"span",153),p(7),o(),r(8,"input",154),b("focusin",function(){let n=h(e).$implicit,l=d(3);return _(l.unTouchSocialFormControl(n.control))}),o()(),f(9,Kt,2,0,"p",155),o(),v()}if(i&2){let e,t,n,l=s.$implicit,u=d(3);a(2),c("ngClass",T(14,Ui,((e=u.socialLinksForm.get(l.control))==null?null:e.invalid)&&((e=u.socialLinksForm.get(l.control))==null?null:e.dirty))),a(2),c("src",N(5,12,l.icon),P)("alt",l.name)("ngClass",l.id==="twitter"?"w-[18px] h-[18px]":"w-[22px] h-[22px]"),a(2),$("color",(t=u.socialLinksForm.get(l.control))!=null&&t.value?"#FFFFFF":"#353A5A"),a(),S(" ",l.prefix," "),a(),c("id",l.id)("formControlName",l.control)("placeholder",l.placeholder)("readonly",u.isLoading),a(),c("ngIf",((n=u.socialLinksForm.get(l.control))==null||n.errors==null?null:n.errors.pattern)&&((n=u.socialLinksForm.get(l.control))==null?null:n.touched))}}function Jt(i,s){if(i&1){let e=B();r(0,"form",31)(1,"div",32)(2,"div",33)(3,"h1",34),p(4,"Basic Information"),o()(),r(5,"div",35)(6,"div",36)(7,"div",37)(8,"div",38),b("click",function(){h(e);let n=I(12);return _(n.click())})("dragover",function(n){h(e);let l=d(2);return _(l.onDragOver(n))})("drop",function(n){h(e);let l=d(2);return _(l.onDrop(n))}),f(9,Gi,4,5,"ng-container",39)(10,$i,8,3,"div",40),o(),r(11,"input",41,4),b("change",function(n){h(e);let l=d(2);return _(l.fileChangeEvent(n))})("click",function(n){h(e);let l=d(2);return _(l.ClearFile(n))}),o(),f(13,Qi,3,3,"div",42),o(),r(14,"div",43)(15,"div",44)(16,"h3",45),p(17,"Company Profile Logo"),o(),r(18,"p",46),p(19," Upload your company logo so people can "),g(20,"br"),p(21," recognize you "),o()(),r(22,"div",47),f(23,Yi,5,3,"div",48)(24,Hi,5,3,"div",48)(25,Ki,5,4,"div",48)(26,Xi,5,3,"div",48),o()()(),r(27,"div",49)(28,"div",50)(29,"label"),p(30,"Display Name"),o(),r(31,"div",51)(32,"input",52),b("focusin",function(){h(e);let n=d(2);return _(n.unTouchFormControl("displayName"))}),o(),r(33,"span",53),p(34),o()(),f(35,ot,8,2,"ng-container",39)(36,st,2,0,"span",54),o(),r(37,"div",50)(38,"label"),p(39,"Company Legal Name (optional)"),o(),r(40,"div",51)(41,"input",55),b("focusin",function(){h(e);let n=d(2);return _(n.unTouchFormControl("fullBusinessName"))}),o(),r(42,"span",53),p(43),o()(),f(44,mt,3,2,"ng-container",39)(45,ct,2,0,"span",54),o(),r(46,"div",56)(47,"label"),p(48,"Profile Type"),o(),r(49,"div",37),g(50,"p-dropdown",57,5),f(52,pt,2,6,"img",58),o(),f(53,dt,3,0,"ng-container",39),o(),r(54,"div",56)(55,"label"),p(56,"Select Country "),o(),r(57,"div",37)(58,"p-dropdown",59,6),Ve("ngModelChange",function(n){h(e);let l=d(2);return Te(l.selectedRegion,n)||(l.selectedRegion=n),_(n)}),f(60,ft,1,1,"ng-template",60),o(),f(61,gt,2,6,"img",61),o(),f(62,ht,3,0,"ng-container",39),r(63,"span",62),p(64," Select your country to set your default region and currency for payments. You can update the currency for events in other countries later. "),o()(),r(65,"div",56)(66,"app-location-dropdown",63),b("values",function(n){h(e);let l=d(2);return _(l.locationChanged(n))})("isValid",function(n){h(e);let l=d(2);return _(l.isLocationValidChanged(n))})("focusin",function(){h(e);let n=d(2);return _(n.unTouchFormControl("address"))})("focusout",function(){h(e);let n=d(2);return _(n.touchFormControl("address"))}),o()(),r(67,"div",50)(68,"label"),p(69,"Company Registration Number (optional)"),o(),r(70,"input",64),b("focusin",function(){h(e);let n=d(2);return _(n.unTouchFormControl("companyRegNo"))}),o(),f(71,xt,3,2,"ng-container",39),o(),r(72,"div",50)(73,"label"),p(74,"VAT Number (optional)"),o(),r(75,"input",65),b("focusin",function(){h(e);let n=d(2);return _(n.unTouchFormControl("vatNumber"))}),o(),f(76,Ct,3,2,"ng-container",39),o(),r(77,"div",56)(78,"label"),p(79,"Profile Bio"),o(),r(80,"div",37)(81,"textarea",66),b("focusin",function(){h(e);let n=d(2);return _(n.unTouchFormControl("bio"))}),o(),r(82,"span",67),p(83),o()(),f(84,wt,3,0,"ng-container",39)(85,Pt,3,0,"ng-container",39)(86,St,3,0,"ng-container",39)(87,Et,2,0,"span",54),o()()()(),r(88,"div",32)(89,"div",68)(90,"h1",34),p(91,"Contact Information for Orgonize"),o()(),r(92,"div",69)(93,"div",56)(94,"label"),p(95,"Your Name"),o(),r(96,"div",37)(97,"input",70),b("focusin",function(){h(e);let n=d(2);return _(n.unTouchFormControl("superAdminName"))}),o(),r(98,"span",67),p(99),o()(),f(100,Ft,4,1,"ng-container",39)(101,It,2,0,"span",54),o(),r(102,"div",71)(103,"label"),p(104,"Contact Number"),o(),r(105,"app-reusable-contact-country-picker",72),b("numberEmitter",function(n){h(e);let l=d(2);return _(l.PhoneNumberChangedOrg(n))}),o(),f(106,kt,3,0,"ng-container",39),o(),r(107,"div",50)(108,"label"),p(109,"Website (
1optional)"),o(),r(110,"input",73),b("focusin",function(){h(e);let n=d(2);return _(n.unTouchFormControl("orgWebsite"))}),o(),f(111,Bt,3,0,"ng-container",39),o(),r(112,"div",50)(113,"label"),p(114,"Your Email"),o(),r(115,"div",74),b("focusin",function(){h(e);let n=d(2);return _(n.showOrgDropdown=!0)})("focusout",function(){h(e);let n=d(2);return _(n.closeOrgDropdown())}),r(116,"input",75),b("focusin",function(){h(e);let n=d(2);return _(n.unTouchFormControl("orgEmail"))})("focusout",function(){h(e);let n=d(2);return _(n.touchFormControl("orgEmail"))}),o(),f(117,Vt,3,4,"div",76)(118,Mt,4,0,"div",77),o(),f(119,Ot,3,1,"ng-container",39)(120,At,3,0,"ng-container",39),o(),r(121,"div",50)(122,"label"),p(123,"Confirm Email"),o(),r(124,"input",78),b("focusin",function(){h(e);let n=d(2);return _(n.unTouchFormControl("orgConfirmEmail"))}),o(),f(125,Lt,3,1,"ng-container",39)(126,Ut,4,0,"div",79),o(),r(127,"div",80)(128,"button",81),b("click",function(){h(e);let n=d(2);return _(n.sendCode(!0))}),p(129," Verify Email "),o()()()(),r(130,"div",32)(131,"div",33)(132,"h1",34),p(133,"Contact Information for Followers"),o()(),r(134,"div",69)(135,"div",71)(136,"label"),p(137,"Contact Number (optional)"),o(),r(138,"app-reusable-contact-country-picker",82),b("numberEmitter",function(n){h(e);let l=d(2);return _(l.PhoneNumberChanged(n))}),o(),f(139,Dt,3,0,"ng-container",39),o(),r(140,"div",50)(141,"label"),p(142,"Website (optional)"),o(),r(143,"input",83),b("focusin",function(){h(e);let n=d(2);return _(n.unTouchFormControl("website"))}),o(),f(144,Rt,3,0,"ng-container",39),o(),r(145,"div",50)(146,"label"),p(147,"Your Email"),o(),r(148,"div",74),b("focusin",function(){h(e);let n=d(2);return _(n.showDropdown=!0)})("focusout",function(){h(e);let n=d(2);return _(n.closeDropdown())}),r(149,"input",84),b("focusin",function(){h(e);let n=d(2);return _(n.unTouchFormControl("email"))})("focusout",function(){h(e);let n=d(2);return _(n.touchFormControl("email"))}),o(),f(150,jt,3,4,"div",85)(151,Wt,4,0,"div",77),o(),f(152,qt,3,1,"ng-container",39)(153,Gt,3,0,"ng-container",39),o(),r(154,"div",50)(155,"label"),p(156,"Confirm Email"),o(),r(157,"input",86),b("focusin",function(){h(e);let n=d(2);return _(n.unTouchFormControl("confirmEmail"))}),o(),f(158,$t,3,1,"ng-container",39)(159,Qt,4,0,"div",79),o(),r(160,"div",80)(161,"button",81),b("click",function(){h(e);let n=d(2);return _(n.sendCode(!1))}),p(162," Verify Email "),o()()()(),r(163,"div",32)(164,"div",87)(165,"h1",34),p(166,"Profile Sponsors"),o(),r(167,"span",88),p(168,"(optional)"),o()(),r(169,"div",35)(170,"form",89)(171,"div",90)(172,"h1",91),p(173,"Sponsor\u2019s Logo"),o(),r(174,"div",92)(175,"div",93)(176,"div",94)(177,"app-reusable-media-picker",95),b("dataImageEmitter",function(n){h(e);let l=d(2);return _(l.handleImageData(n))}),o()()(),r(178,"div",96)(179,"label",97),p(180,"Sponsor's Website Link (optional)"),o(),g(181,"input",98),f(182,Yt,4,0,"ng-container",39),r(183,"button",99),b("click",function(){h(e);let n=d(2);return _(n.addSponsors())}),p(184," Add Sponsor "),o()()()()(),f(185,Ht,7,8,"div",100),o()(),r(186,"div",101)(187,"div",87)(188,"h1",34),p(189,"Social Media Links"),o(),r(190,"span",88),p(191,"(optional)"),o()(),r(192,"form",89)(193,"div",102),f(194,Xt,10,16,"ng-container",103),o()()()()}if(i&2){let e,t,n,l,u,E,F,V,m=d(2);c("formGroup",m.myForm),a(8),c("ngClass",m.displayAvatar?"p-0":"spaced-dashed-border p-[28px_22.36px_22px_22.36px]"),a(),c("ngIf",m.displayAvatar),a(),c("ngIf",!m.displayAvatar),a(3),c("ngIf",m.displayAvatar),a(10),c("ngIf",m.isInValid("userAvatar")&&!m.sizeWarning&&!m.isInvalidFormat),a(),c("ngIf",m.sizeWarning&&!m.isInValid("userAvatar")),a(),c("ngIf",m.isInvalidFormat),a(),c("ngIf",m.isImageFlagged),a(6),Fe("maxlength",m.maxDisplayNameLength),a(),c("ngClass",m.isInValid("displayName")?"error-text":"text-[#353A5A]"),a(),S(" ",m.displayNameLength||0,"/34 "),a(),c("ngIf",m.isInValid("displayName")),a(),c("ngIf",(e=m.myForm.get("displayName"))==null?null:e.hasError("inappropriate")),a(6),c("ngClass",m.isInValid("fullBusinessName")?"error-text":"text-[#353A5A]"),a(),S(" ",((t=m.myForm.get("fullBusinessName").value)==null?null:t.length)||0,"/75"),a(),c("ngIf",m.isInValid("fullBusinessName")),a(),c("ngIf",(n=m.myForm.get("fullBusinessName"))==null?null:n.hasError("inappropriate")),a(5),c("options",m.businessType),a(2),c("ngIf",m.businessProfile.id===0),a(),c("ngIf",m.isInValid("businessTypeId")),a(5),c("options",m.countryList),Be("ngModel",m.selectedRegion),c("styleClass",m.isInValid("regionId")?"border-sunsetOrange":""),a(3),c("ngIf",m.countryList&&m.countryList.length>0&&m.businessProfile.id===0),a(),c("ngIf",m.isInValid("regionId")),a(4),c("errorMessage","Required")("placeholder","Address")("label","Address")("labelStyle","text-16 whitespace-nowrap text-text-lavenderBlue")("location",m.businessProfile.location)("widthClass","custom-input")("dropdownWidthClass","buisnessDropdown")("dropdownTextClass","textwidth")("disableqw",m.formDisable)("setCurrent",!1)("errorMessageClass","font-gilroyRegular"),a(5),c("ngIf",m.myForm.controls.companyRegNo.errors&&m.myForm.controls.companyRegNo.touched),a(5),c("ngIf",m.myForm.controls.vatNumber.errors&&m.myForm.controls.vatNumber.touched),a(6),c("ngClass",m.isInValid("bio")?"error-text":"text-[#353A5A]"),a(),S(" ",(m.myForm.controls.bio.value==null?null:m.myForm.controls.bio.value.length)||0,"/150"),a(),c("ngIf",m.myForm.controls.bio.hasError("invalid")&&m.myForm.controls.bio.touched),a(),c("ngIf",m.myForm.get("bio").getError("maxlength")),a(),c("ngIf",m.isInValid("bio")&&!((l=m.myForm.get("bio"))!=null&&l.hasError("inappropriate"))),a(),c("ngIf",(u=m.myForm.get("bio"))==null?null:u.hasError("inappropriate")),a(11),c("ngClass",m.isInValid("superAdminName")?"error-text":"text-[#353A5A]"),a(),S(" ",((E=m.myForm.get("superAdminName").value)==null?null:E.length)||0,"/50"),a(),c("ngIf",m.isInValid("superAdminName")&&!((F=m.myForm.get("superAdminName"))!=null&&F.hasError("inappropriate"))),a(),c("ngIf",(V=m.myForm.get("superAdminName"))==null?null:V.hasError("inappropriate")),a(4),c("minLength",m.contactNumberMinLength)("phoneNumber",m.businessProfile.orgContactNumber)("selectedCountry",m.businessProfile==null?null:m.businessProfile.orgCountry)("isOptional",!1),a(),c("ngIf",m.isOrgNumberInvalid&&!(m.myForm.controls.orgContactNumber.value===null||m.myForm.controls.orgContactNumber.value==="")),a(5),c("ngIf",m.isInValid("orgWebsite")),a(5),c("ngClass",T(104,pe,m.isOrgVerified)),a(),c("ngIf",m.privateVerifiedEmails.length>0&&m.showOrgDropdown),a(),c("ngIf",m.isOrgVerified),a(),c("ngIf",m.isInValid("orgEmail")),a(),c("ngIf",!m.isOrgVerified&&m.myForm.controls.orgEmail.value&&m.myForm.controls.orgConfirmEmail.value&&m.myForm.controls.orgEmail.valid&&m.myForm.controls.orgConfirmEmail.valid),a(4),fe("custom-input ",m.isInValid("orgConfirmEmail")||m.IsOrgEmailNotMatched?"invali
1d":"",""),c("ngClass",T(106,pe,m.isOrgVerified)),a(),c("ngIf",m.isInValid("orgConfirmEmail")||m.IsOrgEmailNotMatched),a(),c("ngIf",m.isOrgVerified),a(2),c("disabled",m.isOrgVerified||!m.checkOrgEmails()||m.isInValid("orgEmail")),a(10),c("phoneNumber",m.businessProfile.contactNumber)("minLength",m.contactNumberMinLength)("selectedCountry",m.businessProfile.country)("isOptional",!0),a(),c("ngIf",m.isNumberValid&&!(m.myForm.controls.contactNumber.value===null||m.myForm.controls.contactNumber.value==="")),a(5),c("ngIf",m.isInValid("website")),a(5),c("ngClass",T(108,pe,m.isVerified)),a(),c("ngIf",m.verifiedEmails.length>0&&m.showDropdown),a(),c("ngIf",m.isVerified),a(),c("ngIf",m.isInValid("email")),a(),c("ngIf",!m.isVerified&&m.myForm.controls.email.value&&m.myForm.controls.confirmEmail.value&&m.myForm.controls.email.valid&&m.myForm.controls.confirmEmail.valid),a(4),fe("custom-input ",m.isInValid("confirmEmail")||m.IsEmailNotMatched?"is-invalid":"",""),c("ngClass",T(110,pe,m.isVerified)),a(),c("ngIf",m.isInValid("confirmEmail")||m.IsEmailNotMatched),a(),c("ngIf",m.isVerified),a(2),c("disabled",m.isVerified||!m.checkEmails()||m.isInValid("confirmEmail")),a(9),c("formGroup",m.sponsorDetail),a(5),c("ngClass",K(112,Ai,!m.toggleClass,m.toggleClass)),a(2),c("image",m.sponsor.previewUrl)("isBusinessImage",!0)("dialogTitle","Set Business Profile Image")("sponsorsWidth","sponsorsWidth")("sponsorsImage","sponsorsImage")("dialogTitle","Upload Sponsors")("canUpdated",!0)("isSponserMedia",!0)("mediaPickerWS",!0)("containerWidth",340),a(),c("formGroup",m.sponsorDetail),a(4),c("ngIf",m.sponsorDetail.get("weblink").invalid&&m.sponsorDetail.get("weblink").touched),a(),c("ngClass",T(115,Li,!m.sponsor.sponsorImage))("disabled",!m.sponsor.sponsorImage),a(2),Ie(185,m.businessProfile.sponsors.length>0?185:-1),a(7),c("formGroup",m.socialLinksForm),a(2),c("ngForOf",m.profileService.socialFields)}}function Zt(i,s){if(i&1&&(r(0,"div",157)(1,"div",158),g(2,"div",159),r(3,"div",160)(4,"span",161),p(5," Uploading Media "),o(),r(6,"span",162),p(7),o()()()()),i&2){let e=d(2);a(2),$("width",e.uploadProgress,"%"),a(5),S(" ",e.uploadProgress,"% ")}}function en(i,s){if(i&1&&(x(0),f(1,Jt,195,117,"form",29)(2,Zt,8,3,"div",30),v()),i&2){let e=d();a(),c("ngIf",!e.isLoading),a(),c("ngIf",e.isUploading)}}function tn(i,s){if(i&1&&(x(0),r(1,"div",175),g(2,"p-skeleton",176)(3,"p-skeleton",177),o(),v()),i&2){let e=s.$implicit;a(),Z("col-span-2",e>2&&e<5)}}function nn(i,s){if(i&1&&(x(0),r(1,"div",175),g(2,"p-skeleton",178)(3,"p-skeleton",177),o(),v()),i&2){let e=s.$implicit;a(),Z("col-span-2",e===1)}}function rn(i,s){i&1&&(r(0,"div",163)(1,"div",33),g(2,"p-skeleton",164),o(),r(3,"div",165),g(4,"p-skeleton",166),r(5,"div",44),g(6,"p-skeleton",167)(7,"p-skeleton",168),o()(),r(8,"div",169),f(9,tn,4,2,"ng-container",103),r(10,"div",170),g(11,"p-skeleton",171)(12,"p-skeleton",172),o()(),r(13,"div",32)(14,"div",33),g(15,"p-skeleton",173),o(),r(16,"div",174),f(17,nn,4,2,"ng-container",103),o()()()),i&2&&(a(9),c("ngForOf",ge(2,Di)),a(8),c("ngForOf",ge(3,Ri)))}function on(i,s){if(i&1){let e=B();x(0),r(1,"button",179),b("click",function(){h(e);let n=d();return _(n.Next())}),p(2),o(),v()}if(i&2){let e=d();a(),c("disabled",e.isLoading||e.isAnalyzingSentiment||e.isImageFlagged||e.isUploading||!e.myForm.dirty&&!e.imageChanged&&!e.socialLinksForm.dirty),a(),S(" ",e.businessProfile.id!==0?"Update Profile":"Create My Profile"," ")}}function sn(i,s){i&1&&g(0,"p-skeleton",180)}var Se=(()=>{class i{constructor(e,t,n,l,u,E,F,V,m,M,wi,Pi){this.router=e,this.route=t,this.businessService=n,this._formBuilder=l,this.dialog=u,this.profileService=E,this.sharedService=F,this.localStorageService=V,this.userService=m,this._snackBar=M,this.titleCase=wi,this.imageUploadService=Pi,this.displayAvatar="",this.isLocationValid=!1,this.formDisable=!1,this.optionBox=!1,this.optionBtnClick=!1,this.sizeWarning=!1,this.show=!1,this.editmode=!0,this.createmode=!1,this.showBtn=!1,this.showSubText=!0,this.titleText="Create Business",this.progress=0,this.isLoading=!1,this.isAnalyzingSentiment=!1,this.isInvalidFormat=!1,this.invalidFileExtension=null,this.cross=L.imagesUrl+"Icons/CrossnoFill.svg",this.imagesIcon=L.imagesUrl+"SpecialOfferImages/imagesIcon.svg",this.warningImage=L.imagesUrl+"Icons/imageError.svg",this.image=L.imagesUrl+"Icons/dummy.jpg",this.cameraIcon=L.imagesUrl+"Icons/cameraIcon.svg",this.verifiedEmails=[],this.privateVerifiedEmails=[],this.isVerified=!1,this.isOrgVerified=!1,this.isContactNumberInvalid=!1,this.showDropdown=!1,this.showOrgDropdown=!1,this.onEdit=!1,this.imageChanged=!1,this.contactNumberMinLength=7,this.toggleClass=!1,this.sponsorDetail=new ze({weblink:new je("",[y({isWebsite:!0,nonWhiteSpaces:!0,isRequired:!1})])}),this.IsEmailNotMatched=!1,this.IsOrgEmailNotMatched=!1,this.businessType=[],this.isOrgNumberInvalid=!1,this.isNumberValid=!1,this.NewlyAddedVerifiedEmails=[],this.resourceType="Business",this.qrcode="",this.isImageFlagged=!1,this.isUploading=!1,this.isSponsorUploading=!1,this.uploadProgress=0,this.terms
1Data=[],this.RESOURCE_COUNTRY_TYPE=mi,this.isScrolled=!1,this.backEvent$=ue(window,"popstate").subscribe(()=>{this.registerEventOnPopState()}),this.reloadEvent$=ue(window,"beforeunload").subscribe(Si=>{this.registerEventOnBeforeUnload(Si)}),this.sponsor=new ae,this.businessProfile=new J}onElementScroll(e){this.isScrolled=e.target.scrollTop>10}ngOnInit(){this.getBusinessTypes(),this.myForm=this.createForm(),this.socialLinksForm=this.createSocialForm(),this.setupSocialSubscribers(),this.route.queryParams.subscribe(e=>{this.router.url.includes("business/create")&&(this.businessProfile.businessTypeId=e.businessTypeId,this.myForm.controls.businessTypeId.setValue(this.businessProfile.businessTypeId),this.createmode=!0)}),this.getCountriesData(),this.router.url.includes("business/edit")?(this.titleText="Business Profile",this.showSubText=!1,this.show=!1,this.editmode=!0,this.showBtn=!0,this.onEdit=!0,this.getVerifiedEmails(),this.getUserSummery()):this.setupSocialSubscribers(),this.businessProfile.userAvatar&&(this.businessProfile.userAvatar.startsWith("http")?(this.displayAvatar=this.businessProfile.userAvatar,this.imageChanged=!1):this.displayAvatar=null),this.businessProfile.isEmailVerified&&(this.isVerified=this.businessProfile.isEmailVerified),this.businessProfile.isOrgEmailVerified&&(this.isOrgVerified=this.businessProfile.isOrgEmailVerified),this.myForm.get("businessTypeId")?.valueChanges.subscribe(e=>{this.businessProfile.businessTypeId=e}),this.myForm.get("regionId")?.valueChanges.subscribe(e=>{e&&(this.businessProfile.regionId=e)}),this.checkEmails(),this.checkOrgEmails()}ngAfterViewInit(){this.router.url.includes("business/edit")&&setTimeout(()=>{this.myForm.markAllAsTouched()},1e3),this.userService.getTermsOfServicesData().subscribe(e=>this.termsData=e)}generateLink(){let e=new fi({resourceId:this.businessProfile.id,resourceType:"Business",resourceName:this.titleCase.transform(this.businessProfile.displayName),resourceImage:this.businessProfile.userAvatar});this.sharedService.getBranchLink(e).then(t=>{this.linkText=t.url,this.generateQRCode()})}generateQRCode(){this.qrcode=this.linkText}getCountriesData(e=!1){this.userService.getResourceCountries(this.RESOURCE_COUNTRY_TYPE.BUSINESS_REGION,!0).then(t=>{this.countryList=t,e&&(this.selectedRegion=this.countryList.find(u=>u.id===this.businessProfile.regionId),this.myForm.patchValue({regionId:this.selectedRegion},{emitEvent:!1}));let n=this.localStorageService.getPhoneNumber(),l=t.find(u=>n.startsWith(u.phoneCode));l&&Promise.resolve().then(()=>{this.PhoneNumberChangedOrg({selectedCountry:l,isValid:!0,phoneNumber:this.businessProfile.orgContactNumber}),this.myForm.markAsUntouched(),this.myForm.markAsPristine(),this.businessService.isBusinessProfileChanged=!1,this.myForm.controls.orgContactNumber.markAsUntouched()})})}downloadTicketImage(){if(this.isDownloading)return;this.isDownloading=!0;let e={buinsessUserId:this.businessProfile.id},t=l=>{let u=atob(l.fileBase64),E=new Uint8Array(u.length);for(let M=0;M<u.length;M++)E[M]=u.charCodeAt(M);let F=new Blob([E],{type:l.contentType}),V=window.URL.createObjectURL(F),m=document.createElement("a");m.href=V,m.download=l.fileName,document.body.appendChild(m),m.click(),m.remove(),window.URL.revokeObjectURL(V),this.isDownloading=!1},n=()=>{this.isDownloading=!1};this.businessService.DownloadBusinessProfileCard(e).subscribe({next:t,error:n})}sponsorsListChanged(e){this.businessProfile.sponsors=(0,Pe.default)(e),this.scroll("emu_sponsor"),this.myForm.markAsDirty()}PhoneNumberChangedOrg(e){let t=this.myForm.controls.orgContactNumber;e.phoneNumber==="00000"&&(e.phoneNumber=""),t.setValue(e.phoneNumber,{emitEvent:!1}),e.phoneNumber?(this.isPhoneNumberIsValid=e.isValid,t.setValidators([O.required,O.minLength(this.contactNumberMinLength)]),this.isOrgNumberInvalid=e.phoneNumber.length>=this.contactNumberMinLength&&t.invalid,this.myForm.controls.orgContactNumber.markAsTouched(),this.businessProfile.orgContactNumber=e.phoneNumber,this.businessProfile.orgCountryId=e.selectedCountry.id,this.businessProfile.orgCountry=e.selectedCountry,this.myForm.controls.orgCountryId.setValue(e.selectedCountry.id),this.myForm.markAsDirty()):(t.clearValidators(),this.isOrgNumberInvalid=!1),t.markAsTouched(),t.updateValueAndValidity({emitEvent:!1})}PhoneNumberChanged(e){this.isPhoneNumberIsValid=e.isValid;let t=this.myForm.controls.contactNumber;t.setValidators([O.required,O.minLength(this.contactNumberMinLength)]),t.setValue(e.phoneNumber),t.value!==null&&t.value!==""?(this.isNumberValid=t.invali
1d,this.businessProfile.countryId=e.selectedCountry.id,this.myForm.controls.countryId.setValue(e.selectedCountry.id),this.businessProfile.country=e.selectedCountry,this.businessProfile.contactNumber=t.value,this.myForm.markAsDirty(),t.markAsTouched()):(t.clearValidators(),this.isNumberValid=!1,this.businessProfile.countryId=null,this.businessProfile.contactNumber=null),t.updateValueAndValidity()}getChangedFields(){let e=[];return Object.keys(this.myForm.controls).forEach(t=>{this.myForm.get(t)?.dirty&&e.push(t)}),e}back(){let e=this.getChangedFields(),t=this.myForm.dirty||this.imageChanged;this.router.url.includes("business/edit")&&this.onEdit?t?this.openDialog():(this.formDisable=!0,this.onEdit=!1,this.getUserSummery(),this.myForm.disable({emitEvent:!1}),this.router.navigate(["/business-detail"])):this.router.url.includes("business/create")?t?this.openConfirmDialog():this.router.navigate(["/business/select"]):this.router.navigate(["/business-detail"])}openDialog(){if(this.dialog.openDialogs&&this.dialog.openDialogs.length!==0)return;this.dialog.open(ye,{data:{onCreation:!1,darkBackground:!0},disableClose:!0}).afterClosed().subscribe(t=>{if(t===!0){if(this.isLoading)return;if(this.myForm.markAllAsTouched(),this.locationComponent.locationForm.markAllAsTouched(),this.myForm.controls.regionId.invalid||this.myForm.controls.regionId.value===null){this.scrollOnErrorFeild("regionId");return}if(this.myForm.controls.userAvatar.invalid||this.myForm.controls.userAvatar.value===null){this.scrollOnErrorFeild("userAvatar");return}if(this.myForm.controls.businessTypeId.invalid||this.myForm.controls.businessTypeId.value===null){this.scrollOnErrorFeild("businessTypeId");return}if(this.myForm.controls.fullBusinessName.invalid||this.myForm.controls.fullBusinessName.value===null){this.scrollOnErrorFeild("fullBusinessName");return}if(this.myForm.controls.displayName.invalid||this.myForm.controls.displayName.value===null){this.scrollOnErrorFeild("displayName");return}if(this.myForm.controls.vatNumber.invalid||this.myForm.controls.vatNumber.value===null){this.scrollOnErrorFeild("vatNumber");return}if(this.myForm.controls.companyRegNo.invalid){this.scrollOnErrorFeild("companyRegNo");return}if(this.myForm.controls.aboutUs.invalid){this.scrollOnErrorFeild("aboutUs");return}if(this.myForm.controls.bio.invalid||this.myForm.controls.bio.value===null){this.scrollOnErrorFeild("bio");return}if(this.myForm.controls.superAdminName.invalid||this.myForm.controls.superAdminName.value===null){this.scrollOnErrorFeild("superAdminName");return}if(this.myForm.controls.orgContactNumber.invalid||this.myForm.controls.orgContactNumber.value===null){this.scrollOnErrorFeild("orgContactNumber"),this.contactPickerComponent.onFocusOut("PhoneNumber"),this.myForm.controls.orgContactNumber.markAsTouched(),this.isOrgNumberInvalid=!0,this.isContactNumberInvalid=!0;return}if((!this.isOrgVerified||this.isInValid("orgEmail"))&&this.myForm.controls.orgEmail.value===null&&this.myForm.controls.orgEmail.value==""){this.scrollOnErrorFeild("orgEmail");return}if((!this.isVerified||this.isInValid("email"))&&this.myForm.controls.email.value===null&&this.myForm.controls.email.value==""){this.scrollOnErrorFeild("email");return}if(this.myForm.controls.contactNumber.invalid){this.scrollOnErrorFeild("contactNumber"),this.isNumberValid=!0;return}if(!this.isLocationValid){this.scrollOnErrorFeild("address");return}if(this.IsEmailNotMatched){this.scrollOnErrorFeild("confirmEmail");return}if(this.IsOrgEmailNotMatched){this.scrollOnErrorFeild("orgConfirmEmail");return}if(!this.isVerified){this.scrollOnErrorFeild("email");return}if(this.isImageFlagged){this.scrollOnErrorFeild("userAvatar");return}if(this.myForm.invalid||!this.isLocationValid||this.IsEmailNotMatched||this.IsOrgEmailNotMatched){for(let n in this.myForm.controls)if(this.myForm.controls[n].invalid){this.scrollOnErrorFeild(n);return}return}this.saveUpdateProfile()}else t===!1&&this.router.navigate(["/business-detail"])})}openConfirmDialog(){if(this.dialog.openDialogs&&this.dialog.openDialogs.length!==0)return;
1this.dialog.open(ye,{data:{onCreation:!0,darkBackground:!0},disableClose:!0}).afterClosed().subscribe(t=>{t===!0&&(this.myForm.reset(),this.router.navigate(["/business/select"]))})}scroll(e){try{be(document.getElementById(e),{scrollMode:"always",block:"center",behavior:"smooth"})}catch{}}addSponsors(){if(!this.sponsorDetail.controls.weblink.invalid)if(this.sponsor.sponsorLink=this.sponsorDetail.controls.weblink.value,this.sponsor.sourceId=this.businessProfile.id,this.sponsor.sponsorImage&&typeof this.sponsor.sponsorImage!="string"){let e=(0,Pe.default)(this.sponsor);e.previewUrl=URL.createObjectURL(this.sponsor.sponsorImage),this.businessProfile.sponsors.push(e),this.toggleClass=!1,this.myForm.markAsDirty();let t=this.businessProfile.sponsors.length-1;this.businessProfile.sponsors[t].isUploading=!0,this.businessProfile.sponsors[t].uploadProgress=0,this.businessProfile.sponsors[t].uploadingFilename="Uploading Media...",this.businessProfile.sponsors[t].previewUrl=e.previewUrl,this.businessProfile.sponsors[t].previewUrl=e.previewUrl,this.businessProfile.sponsors[t].sponsorLink=this.sponsor.sponsorLink,this.sponsorDetail.reset(),this.sponsor=new ae,this.isSponsorUploading=this.businessProfile.sponsors.some(n=>n.isUploading),this.imageUploadService.uploadModeratedImage(new he({blob:e.sponsorImage,resourceType:"BusinessUser",folder:"BusinessSponsors",resourceId:this.businessProfile.id,originalMimeType:e.sponsorImage.type,onProgress:n=>{this.businessProfile.sponsors[t].uploadProgress=Math.round(n)}})).then(n=>{if(n?.isFlagged){this.businessProfile.sponsors.splice(t,1),this.isSponsorUploading=this.businessProfile.sponsors.some(l=>l.isUploading),this.openSnackBarWarning("Image flagged: "+(n.message||"Contains inappropriate content"));return}if(!n?.accessUrl){this.businessProfile.sponsors.splice(t,1),this.isSponsorUploading=this.businessProfile.sponsors.some(l=>l.isUploading),this.openSnackBarWarning(n?.message||"Failed to upload image");return}this.businessProfile.sponsors[t].sponsorImage=n.accessUrl,this.businessProfile.sponsors[t].isUploading=!1,this.businessProfile.sponsors[t].uploadProgress=0,this.businessProfile.sponsors[t].uploadingFilename="",this.businessProfile.sponsors[t].file=void 0,this.isSponsorUploading=this.businessProfile.sponsors.some(l=>l.isUploading),this.sponsorsListChanged(this.businessProfile.sponsors)}).catch(()=>{this.businessProfile.sponsors.splice(t,1),this.isSponsorUploading=this.businessProfile.sponsors.some(n=>n.isUploading),this.openSnackBarWarning("An error occurred during sponsor upload. Please try again.")})}else this.businessProfile.sponsors.push(this.sponsor),this.sponsorDetail.reset(),this.sponsor=new ae,this.myForm.markAsDirty(),this.sponsorsListChanged(this.businessProfile.sponsors)}handleImageData(e){this.sponsor.sponsorImage=e.file,this.sponsor.previewUrl=e.previewUrl,this.toggleClass=!0,this.imageChanged=!0}ClearFile(e){e.target&&e.target.value&&(e.target.value="",this.sizeWarning=!1,this.isInvalidFormat=!1)}startProgress(){this.progress=0,this.interval=setInterval(()=>{this.isLoading===!1&&(this.progress=100),this.progress<100?this.progress+=this.isLoading&&this.progress>90?1:50:clearInterval(this.interval)},150)}charityNumberValidators(e){e===!0?this.myForm.controls.charityNumber.setValidators(y()):this.myForm.controls.charityNumber.clearValidators(),this.myForm.controls.charityNumber.updateValueAndValidity({emitEvent:!1})}registerEventOnBeforeUnload(e){this.businessService.isBusinessProfileChanged&&(e.preventDefault(),e.returnValue="confirm")}createForm(){return this.show=!0,this.showBtn=!1,this._formBuilder.group({id:[this.businessProfile.id,[y({isRequired:!0})]],userAvatar:[this.businessProfile.userAvatar,[y()]],regionId:[this.businessProfile.regionId,[y({isRequired:!0})]],isParent:[this.businessProfile.isParent,[y()]],isCharity:[this.businessProfile.isCharity,[oi()]],fullBusinessName:[this.businessProfile.fullBusinessName,[y({maxLength:75,isAlphaNumbericSpecial:!0,isRequired:!1})]],displayName:[this.businessProfile.displayName,[y({maxLength:34,isCustomRegex:!0,customRegex:ri,isRequired:!0,minLength:2})]],vatNumber:[this.businessProfile.vatNumber,[y({minLength:4,maxLength:25,isRequired:!1})]],companyRegNo:[this.businessProfile.companyRegNo,[y({minLength:4,maxLength:15,isRequired:!1})]],charityNumber:[this.businessProfile.charityNumber,[y({isRequired:!1})]],bio:[this.businessProfile.bio,[y({maxLength:150,isRequired:!0})]],aboutUs:[this.businessProfile.aboutUs,[y({maxLength:2e3,isRequired:!1})]],superAdminName:[this.businessProfile.superAdminName,[y()]],contactNumber:[this.businessProfile.contactNumber,[y({isRequired:!1})]],country:[this.businessProfile.country,[y()]],businessTypeId:[this.businessProfile.businessTypeId,[y()]],countryId:[this.businessProfile.countryId,[y({isRequired:!1})]],orgContactNumber:[this.businessProfile.orgContactNumber,[O.required,O.minLength(this.contactNumberMinLength)]],orgEmail:[this.businessProfile.orgEmail,[y({isEmail
1:!0,maxLength:500})]],orgConfirmEmail:[this.businessProfile.orgConfirmEmail,[y({isEmail:!0,maxLength:500})]],orgCountry:[this.businessProfile.orgCountry,[y({isRequired:!1})]],orgCountryId:[this.businessProfile.orgCountryId,[y()]],email:[this.businessProfile.email,[y({isEmail:!0,maxLength:500})]],confirmEmail:[this.businessProfile.confirmEmail,[y({isEmail:!0,maxLength:500})]],address:[this.businessProfile.location.fullAddress,[y({isRequired:!0})]],orgWebsite:[this.businessProfile.orgWebsite,[y({isRequired:!1,isWebsite:!0,nonWhiteSpaces:!0})]],website:[this.businessProfile.website,[y({isRequired:!1,isWebsite:!0,nonWhiteSpaces:!0})]],facebook:[this.businessProfile.socialMedia.facebook,[y({nonWhiteSpaces:!0,isRequired:!1,maxLength:50})]],instagram:[this.businessProfile.socialMedia.instagram,[y({nonWhiteSpaces:!0,isRequired:!1,maxLength:50})]],spotify:[this.businessProfile.socialMedia.spotify,[y({nonWhiteSpaces:!0,isRequired:!1,maxLength:50})]],linkedin:[this.businessProfile.socialMedia.linkedin,[y({nonWhiteSpaces:!0,isRequired:!1,maxLength:50})]],twitter:[this.businessProfile.socialMedia.twitter,[y({nonWhiteSpaces:!0,isRequired:!1,maxLength:50})]],sponsors:[this.businessProfile.sponsors,[y({isRequired:!1})]],youtube:[this.businessProfile.socialMedia.youtube,[y({nonWhiteSpaces:!0,isRequired:!1,maxLength:50})]],tiktok:[this.businessProfile.socialMedia.tiktok,[y({nonWhiteSpaces:!0,isRequired:!1,maxLength:50})]]})}Edit(){this.isImageFlagged=!1,this.imageChanged=!1,this.formDisable=!1,this.onEdit=!0,this.myForm.enable({emitEvent:!1}),this.myForm.controls.businessTypeId.disable({emitEvent:!1}),this.getUserSummery()}unTouchFormControl(e){this.myForm.get(e).invalid&&(this.myForm.get(e).markAsUntouched(),this.myForm.get(e).updateValueAndValidity())}unTouchSocialFormControl(e){let t=this.socialLinksForm.get(e);t&&t.markAsUntouched()}locationChanged(e){this.businessProfile.location=new se(e),this.myForm.controls.address.setValue(this.businessProfile.location.fullAddress),this.myForm.controls.address.markAsDirty(),this.myForm.controls.address.updateValueAndValidity()}isLocationValidChanged(e){this.isLocationValid=e,e?this.myForm.controls.address.setErrors(null):this.myForm.controls.address.setErrors({required:!0})}isInValid(e){return!!(this.myForm.get(e).invalid&&this.myForm.get(e).touched)}showOptions(){this.optionBox=!this.optionBox}preventCloseOnClick(){this.optionBtnClick=!0}imageLoadError(e){this.displayAvatar=L.imagesUrl+"Icons/avatarDefault.svg"}openDropdown(e){e.show()}registerEventOnPopState(){this.router.url.includes("business/edit")&&this.myForm.dirty&&this.businessService.isBusinessProfileChanged&&this.onEdit?(this.openDialog(),this.onEdit=!1):this.router.url.includes("business/create")&&this.myForm.dirty&&this.businessService.isBusinessProfileChanged&&!this.onEdit?this.openConfirmDialog():this.router.url.includes("business/create")?this.router.navigate(["/business/select"]):this.router.navigate(["/Dashboard"]),history.pushState(null,null,location.href)}fileChangeEvent(e){let t=e.target.files;if(!t||t.length===0)return;let n=t[0];this.displayAvatar="",this.isImageFlagged=!1,this.sizeWarning=!1,this.isInvalidFormat=!1,this.invalidFileExtension="";let l=["jpg","jpeg","png"],u=n.name.split(".").pop()?.toLowerCase();if(!n.type.startsWith("image/")||!l.includes(u)){this.invalidFileExtension=u,this.isInvalidFormat=!0;return}if(n.size>5242880){this.sizeWarning=!0,this.myForm.controls.userAvatar.markAsUntouched();return}else this.sizeWarning=!1;this.dialog.open(ui,{data:{image:n,dialogTitle:"Set Business Profile Image",buttonText:"Save Image",roundCropper:!0,aspectRatio:1,format:n.type==="image/png"?"png":"jpeg"},disableClose:!0,width:"auto"}).afterClosed().subscribe(F=>de(this,null,function*(){if(F?.blob){let V=URL.createObjectURL(F.blob);this.displayAvatar=V,this.isImageFlagged=!1,this.imageChanged=!0;try{this.isUploading=!0,this.uploadProgress=0;let m=yield this.imageUploadService.uploadModeratedImage(new he({blob:F.blob,resourceType:"BusinessUser",folder:"ProfileImages",resourceId:this.businessProfile.id,originalMimeType:n.type,onProgress:M=>{this.uploadProgress=Math.round(M)}}));if(m?.isFlagged){this.isImageFlagged=!0,this.isUploading=!1,this.openSnackBarWarning("Image flagged: "+(m.message||"Contains inappropriate content"));return}if(!m?.accessUrl){this.isUploading=!1,this.openSnackBarWarning(m?.message||"Failed to upload image");return}this.isImageFlagged=!1,this.businessProfile.userAvatar=m.accessUrl,this.displayAvatar=m.accessUrl,this.myForm.patchValue({userAvatar:m.accessUrl},{emitEvent:!1}),this.isUploading=!1}catch{this.isUploading=!1,this.openSnackBarWarning("An error occurred during upload. Please try again.")}this.imageChanged=!0}e.target.value=""}))}onDragOver(e){e.preventDefault(),e.stopPropagation()}onDragLeave(e){e.preventDefault(),e.stopPropagation()}onDrop(e){e.preventDefault(),e.stopPropagation();let t=e.dataTransfer?.files;t&&t.length>0&&this.fileChangeEvent({target:{files:t}})}Next(){return de(this,null,function*(){if(this.isLoading)return;if(this.isSponsorUploading||this.isUploading){this.openSnackBarWarning("Please wait for all uploads to complete before proceeding.");let u=this.isSponsorUploading?"sponsorUploadSection":"userAvatar";this.scrollOnErrorFeild(u);return}if(this.isImageFlagged){this.openSnackBarWarning("Image is flagged as inappropriate. Please replace it."),this.scrollOnErrorFeild("userAvatar");return}if(this.myForm.markAllAsTouched(),this.socialLinksForm.markAllAsTouched(),this.locationComponent.locationForm.markAllAsTouched(),this.isUploading)return!1;if(this.isImageFlagged){this.scrollOnErrorFeild("userAvatar");return}
1if(this.myForm.controls.userAvatar.invalid||this.myForm.controls.userAvatar.value===null){this.scrollOnErrorFeild("userAvatar");return}if(this.myForm.controls.regionId.invalid||this.myForm.controls.regionId.value===null){this.scrollOnErrorFeild("regionId");return}if(this.myForm.controls.businessTypeId.invalid||this.myForm.controls.businessTypeId.value===null){this.scrollOnErrorFeild("businessTypeId");return}if(this.myForm.controls.fullBusinessName.invalid||this.myForm.controls.fullBusinessName.value===null){this.scrollOnErrorFeild("fullBusinessName");return}if(this.myForm.controls.displayName.invalid||this.myForm.controls.displayName.value===null){this.scrollOnErrorFeild("displayName");return}if(this.myForm.controls.companyRegNo.invalid){this.scrollOnErrorFeild("companyRegNo");return}if(this.myForm.controls.vatNumber.invalid){this.scrollOnErrorFeild("vatNumber");return}if(this.myForm.controls.aboutUs.invalid){this.scrollOnErrorFeild("aboutUs");return}if(this.myForm.controls.bio.invalid||this.myForm.controls.bio.value===null){this.scrollOnErrorFeild("bio");return}if(this.myForm.controls.superAdminName.invalid||this.myForm.controls.superAdminName.value===null){this.scrollOnErrorFeild("superAdminName");return}if(this.myForm.controls.orgContactNumber.invalid||this.myForm.controls.orgContactNumber.value===null||this.myForm.controls.orgContactNumber.value===""){this.scrollOnErrorFeild("orgContactNumber"),this.contactPickerComponent.onFocusOut("PhoneNumber"),this.myForm.controls.orgContactNumber.markAsTouched(),this.isOrgNumberInvalid=!0,this.isContactNumberInvalid=!0;return}if(!this.isOrgVerified||this.isInValid("orgEmail")){this.scrollOnErrorFeild("orgEmail");return}if(!this.isVerified||this.isInValid("email")){this.scrollOnErrorFeild("email");return}if(this.myForm.controls.contactNumber.invalid){this.scrollOnErrorFeild("contactNumber"),this.isNumberValid=!0;return}if(!this.isLocationValid){this.scrollOnErrorFeild("address");return}if(this.IsEmailNotMatched){this.scrollOnErrorFeild("confirmEmail");return}if(this.IsOrgEmailNotMatched){this.scrollOnErrorFeild("orgConfirmEmail");return}if(!this.isVerified){this.scrollOnErrorFeild("email");return}if(this.myForm.invalid||!this.isLocationValid||this.IsEmailNotMatched||this.IsOrgEmailNotMatched){for(let u in this.myForm.controls)if(this.myForm.controls[u].invalid){this.scrollOnErrorFeild(u);return}return}if(this.socialLinksForm.invalid){for(let u in this.socialLinksForm.controls)if(this.socialLinksForm.controls[u].invalid){this.scrollOnErrorFeild(u);return}}let e=["fullBusinessName","displayName","bio","superAdminName"];for(let u of e){this.isAnalyzingSentiment=!0;let E=this.businessProfile[u];if(E){let F=yield this.sharedService.detectSentiment(E,"Profile Name"),V=F.sentimentType;if(F.sentimentScore.negative>this.sharedService.sentimentNegativeThreshold&&(V==="NEGATIVE"||V==="MIXED")){this.isLoading=!1,this.isAnalyzingSentiment=!1,this.myForm.controls[u]?.setErrors({inappropriate:!0}),this.scrollOnErrorFeild(u);return}}}this.startProgress();let t=this.myForm.getRawValue(),n=this.socialLinksForm.getRawValue();this.businessProfile.userAvatar=t.userAvatar,this.businessProfile.businessTypeId=t.businessTypeId,this.businessProfile.regionId=this.selectedRegion.id,this.businessProfile.companyRegNo=t.companyRegNo,this.businessProfile.aboutUs=t.aboutUs,this.businessProfile.businessType=t.typeTitle,this.businessProfile.phoneNumber=this.localStorageService.getPhoneNumber(),this.businessProfile.contactNumber=t.contactNumber,this.businessProfile.orgContactNumber=t.orgContactNumber,this.businessProfile.isCharity=t.isCharity,this.businessProfile.fullBusinessName=t.fullBusinessName,this.businessProfile.displayName=t.displayName,this.businessProfile.vatNumber=t.vatNumber,this.businessProfile.isParent=t.isParent,this.businessProfile.website=t.website,this.businessProfile.orgWebsite=t.orgWebsite,this.businessProfile.bio=t.bio,this.businessProfile.superAdminName=t.superAdminName,this.businessProfile.email=t.email,this.businessProfile.orgEmail=t.orgEmail,this.businessProfile.socialMedia.facebook=n.facebook,this.businessProfile.socialMedia.instagram=n.instagram,this.businessProfile.socialMedia.spotify=n.spotify,this.businessProfile.socialMedia.linkedin=n.linkedin,this.businessProfile.socialMedia.twitter=n.twitter,this.businessProfile.socialMedia.website=n.website,this.businessProfile.socialMedia.youtube=n.youtube,this.businessProfile.socialMedia.tiktok=n.tiktok,this.businessProfile.countryId=t.countryId,this.businessProfile.orgCountryId=t.orgCountryId,this.businessProfile.sponsors?.forEach(u=>{}),this.businessProfile.isTermAndConditionAccepted=!0,!1?this.fileUploaded$=this.sharedService.fileUploaded$.subscribe(u=>{u&&(this.sharedService.fileUploaded$.next(!1),this.saveUpdateProfile())}):this.saveUpdateProfile()})}openSnackBar(e){this._snackBar.openFromComponent(si,{duration:3e3,horizontalPosition:"right",verticalPosition:"top",data:e})}openSnackBarWarning(e){this._snackBar.openFromComponent(ai,{duration:6e3,horizontalPosition:"right",verticalPosition:"top",data:e})}touchFormControl(e){this.myForm.get(e).markAsTouched(),this.myForm.get(e).updateV
1alueAndValidity()}selectOrgVerifiedEmail(e){this.myForm.get("orgEmail").setValue(e),this.myForm.get("orgConfirmEmail").setValue(e),this.myForm.markAsDirty(),this.isOrgVerified=!0,this.showOrgDropdown=!1}selectVerifiedEmail(e){this.myForm.get("email").setValue(e),this.myForm.get("confirmEmail").setValue(e),this.isVerified=!0,this.showDropdown=!1}getVerifiedEmails(){this.sharedService.GetVerifiedEmails(!1).then(e=>{let t=e.filter(n=>n.email&&n.email.trim()!=="").map(n=>({email:n.email,isPublicPool:n.isPublicPool}));this.verifiedEmails=t.filter(n=>n.isPublicPool),this.privateVerifiedEmails=t.filter(n=>!n.isPublicPool)}).catch(()=>{})}closeDropdown(){setTimeout(()=>{this.showDropdown=!1},300)}closeOrgDropdown(){setTimeout(()=>{this.showOrgDropdown=!1},300)}sendCode(e){if(e){let t=this.dialog.open(Ce,{data:{email:this.myForm.controls.orgEmail.value,shouldSave:!0,isNewBusiness:!(this.businessProfile.id!==null&&this.businessProfile.id!==void 0&&this.businessProfile.id!==0),isPrivate:!0},disableClose:!0}),n={email:this.myForm.controls.orgEmail.value};this.sharedService.sendVerificationCode(n).then(()=>{}).catch(()=>{}),t.afterClosed().subscribe(l=>{l&&(this.privateVerifiedEmails.push({email:l,isPublicPool:!1}),this.NewlyAddedVerifiedEmails.push({email:l,isPublicPool:!1}),e?this.isOrgVerified=!0:this.isVerified=!0)})}else{let t=this.dialog.open(Ce,{data:{email:this.myForm.controls.email.value,shouldSave:this.businessProfile.id>0,isNewBusiness:!(this.businessProfile.id!==null&&this.businessProfile.id!==void 0&&this.businessProfile.id!==0),isPrivate:!1},disableClose:!0}),n={email:this.myForm.controls.email.value};this.sharedService.sendVerificationCode(n).then(l=>{}).catch(()=>{}),t.afterClosed().subscribe(l=>{l&&(this.verifiedEmails.push({email:l,isPublicPool:!0}),this.NewlyAddedVerifiedEmails.push({email:l,isPublicPool:!0}),this.isVerified=!0)})}}saveUpdateProfile(){if(this.isUploading){this.openSnackBarWarning("Please wait for the image upload to complete.");return}this.businessProfile.regionId=this.selectedRegion.id,this.businessProfile.displayName=this.businessProfile.displayName.trim();let e=this.myForm.controls.userAvatar.value;e&&typeof e=="string"&&!e.startsWith("blob:")&&(this.businessProfile.userAvatar=e),this.businessProfile.id!==null&&this.businessProfile.id!==void 0&&this.businessProfile.id!==0?this.businessService.UpdateBusinessUser(this.businessProfile).subscribe({next:()=>{this.formDisable=!0,this.myForm.disable({emitEvent:!1}),this.isLoading=!1,this.isAnalyzingSentiment=!1,this.businessService.isBusinessProfileChanged=!1,this.editmode=!1,this.getSetUserDetail(),this.openSnackBar("Business updated successfully"),this.router.navigate(["/business-detail"]),this.myForm.markAsPristine()},error:()=>{this.isLoading=!1}}):(this.isLoading=!1,this.dialog.closeAll(),this.dialog.open(ei,{data:{isCreation:!0,isFetchRecord:!1,termsData:this.termsData??null},disableClose:!0}).afterClosed().subscribe(n=>{n?(this.businessProfile.regionId=this.selectedRegion.id,this.businessService.saveUserSignupProfile({businessUser:this.businessProfile,appUserPhoneNumber:this.localStorageService.getPhoneNumber(),verifiedEmails:this.NewlyAddedVerifiedEmails}).then(l=>{l&&l!==0?(this.businessProfile.id=l,this.sharedService.login({phoneNumber:this.businessProfile.phoneNumber,userId:l,userType:k.Business,appUserId:this.sharedService.userDetailModel.appUserId}).subscribe({next:u=>{this.localStorageService.setAuthToken(u.accessToken),this.localStorageService.setRefreshToken(u.refreshToken),this.businessService.clearUserService(),this.localStorageService.removeCollegeId(),this.sharedService.setUserAuthorizationFrom(u.authorization),this.get
1SetUserDetail(),this.loginBusinessUser(this.businessProfile.id),this.businessService.isBusinessProfileChanged=!1,this.isLoading=!1,this.isAnalyzingSentiment=!1,this.sharedService.getSetLoggedInUserDetailFromDB(this.sharedService.userDetailModel.userID,this.sharedService.userDetailModel.role,this.localStorageService.getPhoneNumber()),this.openSnackBar("Business created successfully"),this.router.navigate(["/Dashboard"])},error:()=>{this.isLoading=!1,this.isAnalyzingSentiment=!1,this.openSnackBarWarning("Business created successfully, but automatic login failed. Please sign in."),this.router.navigate(["/"])}})):(this.isLoading=!1,this.isAnalyzingSentiment=!1)}).catch(()=>{this.isLoading=!1,this.isAnalyzingSentiment=!1})):(this.isLoading=!1,this.isAnalyzingSentiment=!1)}))}loginBusinessUser(e){this.businessService.getAndSetUserExitDates(e,!1)}updateFormValues(){if(this.countryList){let e=this.countryList.find(t=>t.id===this.businessProfile.regionId);this.selectedRegion=e}else this.getCountriesData(!0);this.myForm.patchValue({id:this.businessProfile.id,businessTypeId:this.businessProfile.businessTypeId,regionId:this.selectedRegion,companyRegNo:this.businessProfile.companyRegNo,aboutUs:this.businessProfile.aboutUs,businessType:this.businessProfile.businessType,userAvatar:this.businessProfile.userAvatar,isCharity:this.businessProfile.isCharity,fullBusinessName:this.businessProfile.fullBusinessName,displayName:this.businessProfile.displayName,isParent:this.businessProfile.isParent,vatNumber:this.businessProfile.vatNumber,charityNumber:this.businessProfile.charityNumber,bio:this.businessProfile.bio,superAdminName:this.businessProfile.superAdminName,phoneNumber:this.businessProfile.phoneNumber,contactNumber:this.businessProfile.contactNumber,country:this.businessProfile.country,countryId:this.businessProfile.countryId,orgContactNumber:this.businessProfile.orgContactNumber,orgWebsite:this.businessProfile.orgWebsite,orgCountry:this.businessProfile.orgCountry,orgCountryId:this.businessProfile.orgCountryId,email:this.businessProfile.email,confirmEmail:this.businessProfile.confirmEmail,orgEmail:this.businessProfile.orgEmail,orgConfirmEmail:this.businessProfile.orgConfirmEmail,address:this.businessProfile.location.fullAddress,facebook:this.businessProfile.socialMedia.facebook,instagram:this.businessProfile.socialMedia.instagram,spotify:this.businessProfile.socialMedia.spotify,linkedin:this.businessProfile.socialMedia.linkedin,twitter:this.businessProfile.socialMedia.twitter,website:this.businessProfile.website,youtube:this.businessProfile.socialMedia.youtube,tiktok:this.businessProfile.socialMedia.tiktok,sponsors:this.businessProfile.sponsors},{emitEvent:!1}),this.myForm.controls.regionId?.disable(),this.myForm.controls.businessTypeId?.disable(),this.checkEmails(),this.checkOrgEmails(),this.socialLinksForm&&this.businessProfile.socialMedia&&this.socialLinksForm.patchValue({facebook:this.businessProfile.socialMedia.facebook||"",instagram:this.businessProfile.socialMedia.instagram||"",spotify:this.businessProfile.socialMedia.spotify||"",linkedin:this.businessProfile.socialMedia.linkedin||"",twitter:this.businessProfile.socialMedia.twitter||"",website:this.businessProfile.socialMedia.website||"",youtube:this.businessProfile.socialMedia.youtube||"",tiktok:this.businessProfile.socialMedia.tiktok||""},{emitEvent:!1}),this.setupSocialSubscribers()}getUserSummery(){this.isLoading=!0,this.businessService.GetUserSummery(this.sharedService.userDetailModel.userID).subscribe({next:e=>{this.businessProfile=new J(e.user);let t=e.user.displayName;this.businessProfile.displayName=t,this.displayNameLength=t.length,this.businessProfile.followingCount=e.followersCount,this.businessProfile.userAvatar!==null&&this.businessProfile.userAvatar!==void 0&&this.businessProfile.userAvatar!==""&&(this.displayAvatar=this.businessProfile.userAvatar),this.updateFormValues(),this.myForm.controls.businessTypeId.setValue(this.businessProfile.businessTypeId),this.isLoading=!1,this.generateLink()},error:()=>{this.isLoading=!1}})}checkOrgEmails(){let e=this.myForm.controls.orgEmail.value,t=this.myForm.controls.orgConfirmEmail.value;return e===t&&e&&t?(this.isOrgVerified=this.privateVerifiedEmails.some(n=>n.email===e),!0):(this.isOrgVerified=!1,!1)}checkEmails(){let e=this.myForm.controls.email.value,t=this.myForm.controls.confirmEmail.value;return e&&e===t&&e&&t?(this.isVerified=this.verifiedEmails.some(n=>n.email===e),!0):(this.isVerified=!1,!1)}createSocialForm(){let e={},t=this.businessProfile?.socialMedia||{};return this.profileService.socialFields.forEach(n=>{let l=t[n.control]||"";e[n.control]=[l,n.pattern?[O.pattern(n.pattern)]:[]]}),this._formBuilder.group(e)}setupSocialSubscribers(){this.socialLinksForm&&(this.profileService.socialFields.forEach(e
1=>{let t=this.socialLinksForm.get(e.control);t?.valueChanges.subscribe(n=>{if(n&&(n.includes("http")||n.includes(".com")||n.includes("x.com"))){let l=n.match(this.profileService.urlExtractionPatterns[e.id]);l&&l[1]&&(t.setValue(l[1],{emitEvent:!1}),t.updateValueAndValidity({emitEvent:!1}),this.businessProfile.socialMedia[e.control]=l[1])}else{let l=n.split("?")[0].split("#")[0].trim();l=l.replace(/^\/?(?:in\/|user\/|channel\/|c\/|@)/,"").replace(/^@/,"").split("/")[0],l!==n&&(t.setValue(l,{emitEvent:!1}),t.updateValueAndValidity({emitEvent:!1})),this.businessProfile.socialMedia[e.control]=l}this.businessService.profileChanged()})}),this.myForm.controls.displayName.valueChanges.subscribe(e=>{let t=0;e?(t=(e.match(/\s/g)||[]).length,this.displayNameLength=e.length):this.displayNameLength=0,this.maxDisplayNameLength=34,this.businessProfile.displayName=e}),this.myForm.controls.fullBusinessName.valueChanges.subscribe(e=>{this.businessProfile.fullBusinessName=e}),this.myForm.controls.superAdminName.valueChanges.subscribe(e=>{this.businessProfile.superAdminName=e}),this.myForm.controls.bio.valueChanges.subscribe(e=>{this.businessProfile.bio=e}),this.myForm.controls.address.valueChanges.subscribe(e=>{this.businessProfile.location.fullAddress=e}),this.myForm.controls.contactNumber.valueChanges.subscribe(e=>{this.businessProfile.contactNumber=e}),this.myForm.controls.orgContactNumber.valueChanges.subscribe(e=>{this.businessProfile.orgContactNumber=e}),this.myForm.controls.country.valueChanges.subscribe(e=>{this.businessProfile.country=e}),this.myForm.controls.orgCountry.valueChanges.subscribe(e=>{this.businessProfile.orgCountry=e}),this.myForm.controls.countryId.valueChanges.subscribe(e=>{this.businessProfile.countryId=e}),this.myForm.controls.orgCountryId.valueChanges.subscribe(e=>{this.businessProfile.orgCountryId=e}),this.myForm.controls.isCharity.valueChanges.subscribe(e=>{this.charityNumberValidators(e)}),this.myForm.controls.email.valueChanges.pipe(G(300)).subscribe(()=>{this.checkEmailMatch(),this.checkEmails()}),this.myForm.controls.confirmEmail.valueChanges.pipe(G(300)).subscribe(()=>{this.checkEmailMatch(),this.checkEmails()}),this.myForm.controls.orgEmail.valueChanges.pipe(G(300)).subscribe(()=>{this.checkEmailMatch(),this.myForm.controls.orgConfirmEmail.valid&&this.checkOrgEmails()}),this.myForm.controls.orgConfirmEmail.valueChanges.pipe(G(300)).subscribe(()=>{this.checkEmailMatch(),this.myForm.controls.orgConfirmEmail.valid&&this.checkOrgEmails()}),this.myForm.controls.orgWebsite.valueChanges.subscribe(e=>{this.businessProfile.orgWebsite=e}),this.myForm.controls.sponsors.valueChanges.subscribe(e=>{this.businessProfile.sponsors=e}),this.charityNumberValidators(this.businessProfile.isCharity),this.myForm.valueChanges.subscribe(e=>{this.businessService.profileChanged()}))}displayNameVaildators(e){this.myForm.controls.displayName.addValidators([y({maxLength:e})]),this.myForm.controls.displayName.updateValueAndValidity({emitEvent:!1})}checkEmailMatch(){let e=this.myForm.controls.email.value,t=this.myForm.controls.confirmEmail.value,n=this.myForm.controls.orgEmail.value,l=this.myForm.controls.orgConfirmEmail.value;e&&t&&e!==t?this.IsEmailNotMatched=!0:this.IsEmailNotMatched=!1,n&&l&&n!==l?this.IsOrgEmailNotMatched=!0:this.IsOrgEmailNotMatched=!1}bitchange(e){if(e){if(this.businessProfile.isParent===null||this.businessProfile.isParent===void 0){this.businessProfile.isParent=!0,this.myForm.patchValue({isParent:this.businessProfile.isParent});return}this.businessProfile.isParent===!0?this.businessProfile.isParent=null:this.businessProfile.isParent=!0}else{if(this.businessProfile.isParent===null||this.businessProfile.isParent===void 0){this.businessProfile.isParent=!1,this.myForm.patchValue({isParent:this.businessProfile.isParent});return}this.businessProfile.isParent===!1?this.businessProfile.isParent=null:this.businessProfile.isParent=!1}this.myForm.patchValue({isParent:this.businessProfile.isParent})}getSetUserDetail(){let e=new Ze(this.sharedService.userDetailModel);e.role=k.Business,e.userID=this.businessProfile.id,e.phoneNumber=this.businessProfile.phoneNumber,e.email=this.businessProfile.email,e.profileName=this.businessProfile.displayName,e.userAvatar=this.businessProfile.userAvatar,e.lastName="",this.localStorageService.setLoggedInUserDetail(e),this.sharedService.getUserDetailModel()}
1scrollOnErrorFeild(e){try{be(document.getElementById(e),{scrollMode:"always",block:"center",behavior:"smooth"})}catch{}}ngOnDestroy(){this.fileUploaded$&&this.fileUploaded$.unsubscribe(),this.backEvent$&&this.backEvent$.unsubscribe(),this.reloadEvent$&&this.reloadEvent$.unsubscribe(),this.userService.clearUserService()}getBusinessTypes(){this.userService.getBusinessTypes().then(e=>{this.businessType=e.map(t=>new q(t))}).catch(()=>{})}getTypeTitleById(e){let t=this.businessType.find(n=>n.businessTypeId===e);return t?t.typeTitle:""}static{this.\u0275fac=function(t){return new(t||i)(C(z),C(Xe),C(U),C(Qe),C(ne),C(me),C(W),C(oe),C(U),C(Je),C(Le),C(ii))}}static{this.\u0275cmp=D({type:i,selectors:[["app-new-bussiness-profile-setup"]],viewQuery:function(t,n){if(t&1&&(Q(ve,5),Q(xe,5),Q(Vi,5),Q(Mi,5)),t&2){let l;Y(l=H())&&(n.locationComponent=l.first),Y(l=H())&&(n.contactPickerComponent=l.first),Y(l=H())&&(n.ticketBg=l.first),Y(l=H())&&(n.downloadWrapper=l.first)}},standalone:!0,features:[R],decls:18,vars:18,consts:[["headerskeleton",""],["scrollContainer",""],["skeleton",""],["footerskeleton",""],["fileInput",""],["businessDropdown",""],["countryDropdown",""],["checkMinlength",""],["checkMaxlength",""],["checkPattern",""],["emailSpan",""],[1,"h-screen","w-full","flex","overflow-hidden"],[1,"flex-1","flex","flex-col","border-r","border-[rgba(255,255,255,0.10)]","overflow-hidden"],[1,"flex-none","w-full","z-[1000]","px-30","py-18","transition-all","duration-100",3,"ngClass"],[4,"ngIf","ngIfElse"],[1,"flex-1","overflow-y-auto","custom-scrollbar","flex","flex-col","items-center",3,"scroll"],[1,"w-full","max-w-[800px]","2xl:max-w-[900px]","px-32","py-40"],[1,"flex-none","h-[78px]","bg-[#0B0B1A]","border-t","border-[rgba(255,255,255,0.10)]","px-24","flex","items-center","justify-end"],[1,"hidden","xl:flex","w-[480px]","2xl:w-[550px]","flex-none","items-start","justify-center","h-full","overflow-hidden","pt-40","lg:pt-40","xl:pt-60","2xl:pt-100","3xl:pt-100"],[1,"fixed",3,"isBusines","Name","friendsCount","followersCount","profile","userImage","showSocial","isLoading"],[1,"flex","flex-row","items-center","gap-24"],["alt","Back",1,"w-10","h-10","cursor-pointer","transition-transform","hover:scale-110",3,"click","src"],[1,"text-white","font-gilroySemiBold","text-20","leading-tight"],[1,"text-[#9CA3AF]","font-gilroyMedium","text-14"],[1,"flex","items-center","gap-16","mb-40"],["width","36px","height","36px","borderRadius","50%"],[1,"flex","flex-col","gap-8"],["width","260px","height","20px"],["width","200px","height","14px"],["autocomplete","off",3,"formGroup",4,"ngIf"],["class","absolute top-10 left-1/2 transform -translate-x-1/2 z-[1100] bg-transparent pointer-events-none",4,"ngIf"],["autocomplete","off",3,"formGroup"],[1,"mb-80"],[1,"mb-24"],[1,"text-tiffany","font-gilroyBold","text-24"],[1,"p-0"],["id","userAvatar",1,"flex","flex-row","items-center","gap-24","mb-32"],[1,"relative"],[1,"w-[187px]","h-[187px]","rounded-full","flex","flex-col","cursor-pointer","aspect-square","bg-[rgba(255,255,255,0.02)]",3,"click","dragover","drop","ngClass"],[4,"ngIf"],["class","flex flex-col items-center text-center justify-center px-4 gap-16",4,"ngIf"],["type","file","accept","image/*",1,"hidden",3,"change","click"],["class","w-[42px] h-[42px] absolute bottom-[13px] right-0 cursor-pointer z-30",3,"click",4,"ngIf"],[1,"flex-1","relative"],[1,"flex","flex-col","gap-16"],[1,"text-white","font-gilroySemiBold","text-24"],[1,"text-lavenderBlue","font-gilroyMedium","text-16","opacity-60"],[1,"mt-4","flex","flex-col","gap-2"],["class","flex items-center gap-2 text-red-500 text-xs",4,"ngIf"],[1,"grid","grid-cols-1","md:grid-cols-2","gap-x-24","gap-y-28"],[1,"flex","flex-col","gap-10","relative"],[1,"relative","flex","justify-center","items-center"],["id","displayName","type","text","placeholder","Display Name","formControlName","displayName",1,"custom-input","placeholder-opacity-20",2,"padding-right","54px !important","background-color","#FFFFFF08","border","2px solid #FFFFFF33",3,"focusin"],[1,"absolute","right-3","text-sm","font-gilroyMedium",3,"ngClass"],["class","errorMsg",4,"ngIf"],["id","fullBusinessName","type","text","maxlength","75","placeholder","Company Legal Name","formControlName","fullBusinessName",1,"custom-input","placeholder-opacity-20",2,"padding-right","54px !important","background-color","#FFFFFF08","border","2px solid #FFFFFF33",3,"focusin"],[1,"col-span-2","flex","flex-col","gap-10","relative"],["id","businessTypeId","optionLabel","typeTitle","placeholder","Profile Type","optionValue","businessTypeId","formControlName","businessTypeId","placeholder","","dataKey","businessTypeId","appendTo","body","panelStyleClass","business-setup-dropdown-panel",3,"options"],["class","text-white cursor-pointer absolute right-3 w-4 h-4 top-4 transition-transform duration-200","alt","arrow",3,"ngClass","src","click",4,"ngIf"],["formControlName","regi
1onId","optionLabel","countryName","placeholder","Select Country","panelStyleClass","business-setup-dropdown-panel",3,"ngModelChange","options","ngModel","styleClass"],["pTemplate","selectedItem"],["class","text-white cursor-pointer absolute right-3 w-4 h-4 top-4 transition-transform duration-200","alt","arrow",3,"ngClass","src",4,"ngIf"],[1,"text-lavenderBlue","text-sm","font-gilroyRegular","opacity-60"],[3,"values","isValid","focusin","focusout","errorMessage","placeholder","label","labelStyle","location","widthClass","dropdownWidthClass","dropdownTextClass","disableqw","setCurrent","errorMessageClass"],["id","companyRegNo","type","text","autocomplete","off","placeholder","Company Registration Number","formControlName","companyRegNo",1,"custom-input",3,"focusin"],["id","vatNumber","type","text","autocomplete","off","placeholder","VAT number","formControlName","vatNumber",1,"custom-input",3,"focusin"],["id","bio","type","text py-12 resize-none","rows","3","placeholder","Tell us about business","formControlName","bio","maxlength","150",1,"custom-input","h-[178px]","focus:border-white","focus:outline-none","block",2,"padding-right","56px !important",3,"focusin"],[1,"absolute","right-3","top-3.5","text-sm","font-gilroyMedium",3,"ngClass"],[1,"mb-24","flex","justify-between","items-center"],[1,"p-0","grid","grid-cols-1","md:grid-cols-2","gap-x-24","gap-y-28"],["id","superAdminName","type","text","maxlength","50","placeholder","Name","formControlName","superAdminName",1,"custom-input",2,"padding-right","54px !important",3,"focusin"],[1,"flex","flex-col","gap-8","relative"],["id","orgContactNumber",3,"numberEmitter","minLength","phoneNumber","selectedCountry","isOptional"],["id","orgWebsite","type","text","autocomplete","off","placeholder","www.website.com","formControlName","orgWebsite",1,"custom-input",3,"focusin"],[1,"relative",3,"focusin","focusout"],["formControlName","orgEmail","type","text","name","contact email","placeholder","[email protected]","id","orgEmail","autocomplete","off",1,"custom-input",3,"focusin","focusout","ngClass"],["class","absolute bg-bgTertiary w-full z-[999] max-h-[130px] border-none rounded-14  overflow-y-auto mt-10",4,"ngIf"],["class","absolute right-4 top-2.5 flex items-center",4,"ngIf"],["id","orgConfirmEmail","type","text","placeholder","[email protected]","formControlName","orgConfirmEmail",3,"focusin","ngClass"],["class","absolute right-4 top-11 flex items-center",4,"ngIf"],[1,"col-span-2","flex","justify-start","mt-4"],["type","button",1,"w-[123px]","h-8","flex","justify-center","items-center","bg-[#F0F8FF]","border","text-[#0B0B1A]","p-16","rounded-100","text-sm","font-gilroyBold","transition-colors","disabled:opacity-30",3,"click","disabled"],["id","contactNumber",3,"numberEmitter","phoneNumber","minLength","selectedCountry","isOptional"],["id","website","type","text","autocomplete","off","placeholder","www.website.com","formControlName","website",1,"custom-input",3,"focusin"],["formControlName","email","type","text","name","contact email","placeholder","[email protected]","id","email","autocomplete","off",1,"custom-input",3,"focusin","focusout","ngClass"],["class","absolute  bg-bgTertiary w-full z-[1] border-none rounded-14 max-h-[130px] overflow-y-auto mt-10",4,"ngIf"],["id","confirmEmail","type","text","placeholder","[email protected]","formControlName","confirmEmail",3,"focusin","ngClass"],[1,"mb-24","flex","items-baseline","gap-2"],[1,"text-[#5C5D7A]","text-[16px]","font-gilroyMedium","ml-5"],[3,"formGroup"],[1,"relative","bg-[rgba(49,50,69,0.10)]","py-16","px-20","rounded-12","border","border-[#1C1F31]","flex","flex-col","gap-16"],[1,"text-whiteSmoke","font-gilroySemiBold","text-20","leading-7"],[1,"flex","flex-row","gap-24"],[1,"flex",3,"ngClass"],[1,"w-[340px]","h-[209px]"],[3,"dataImageEmitter","image","isBusinessImage","dialogTitle","sponsorsWidth","sponsorsImage","canUpdated","isSponserMedia","mediaPickerWS","containerWidth"],[1,"w-full","h-full","flex","flex-col","gap-10",3,"formGroup"],[1,"font-gilroyMedium","text-16"],["type","text","formControlName","weblink","id","weblink","name","weblink","placeholder","www.website.com",1,"custom-input","autofill:border-none","autofill:outline-none"],[1,"bg-white","absolute","bottom-5","text-black","w-[150px]","h-11","rounded-full","text-14","font-gilroyBold",3,"click","ngClass","disabled"],[1,"mt-30"],[1,"mb-64"],[1,"p-0","grid","grid-cols-1","md:grid-cols-2","gap-x-24","gap-y-16"],[4,"ngFor","ngForOf"],["alt","Company Logo",1,"w-full","h-full","rounded-full","object-cover",3,"src"],["class","absolute inset-0 flex items-center justify-center z-20 rounded-full bg-[#0B0B1A]/80",4,"ngIf"],["class","absolute inset-0 flex items-center justify-center pointer-events-none bg-black/60",4,"ngIf"],[1,"absolute","
1inset-0","flex","items-center","justify-center","z-20","rounded-full","bg-[#0B0B1A]/80"],[1,"flex","flex-col","items-center","p-1.5","bg-white/10","rounded-[38px]"],[1,"w-6","h-6","border-2","border-white","border-t-transparent","rounded-full","animate-spin"],[1,"absolute","inset-0","flex","items-center","justify-center","pointer-events-none","bg-black/60"],["alt","Warning",1,"w-[72px]","h-[72px]",3,"src"],[1,"flex","flex-col","items-center","text-center","justify-center","px-4","gap-16"],[1,"flex","flex-col","items-center","text-center","justify-center","gap-8"],["alt","Upload",1,"w-10","h-10","opacity-80",3,"src"],[1,"text-white","text-14","font-gilroySemiBold"],[1,"bg-[#F0F7FF]","text-[#0B0E14]","px-10","py-8","rounded-100","font-gilroySemiBold","text-14"],[1,"w-[42px]","h-[42px]","absolute","bottom-[13px]","right-0","cursor-pointer","z-30",3,"click"],["alt","Change",1,"w-full","h-full",3,"src"],[1,"flex","items-center","gap-2","text-red-500","text-xs"],["alt","Img",1,"w-3","h-3",3,"src"],[1,"error-text"],[1,"errorMsg"],["class","error-text",4,"ngIf"],["alt","arrow",1,"text-white","cursor-pointer","absolute","right-3","w-4","h-4","top-4","transition-transform","duration-200",3,"click","ngClass","src"],["class","flex items-center gap-10",4,"ngIf"],[1,"flex","items-center","gap-10"],["alt","Img",1,"w-6","h-4","rounded-sm",3,"src"],[1,"text-white","text-14"],["alt","arrow",1,"text-white","cursor-pointer","absolute","right-3","w-4","h-4","top-4","transition-transform","duration-200",3,"ngClass","src"],[1,"error-text","mb-5"],[1,"absolute","bg-bgTertiary","w-full","z-[999]","max-h-[130px]","border-none","rounded-14","overflow-y-auto","mt-10"],["class","text-white py-12 px-16 flex flex-row cursor-pointer text-14 font-gilroySemiBold justify-between","matTooltipPosition","above",3,"matTooltip","matTooltipShowDelay","click",4,"ngFor","ngForOf"],["matTooltipPosition","above",1,"text-white","py-12","px-16","flex","flex-row","cursor-pointer","text-14","font-gilroySemiBold","justify-between",3,"click","matTooltip","matTooltipShowDelay"],[1,"truncate","block"],[1,"flex","flex-row","items-center","justify-center"],["alt","Img","src","../../../../../assets/images/newEventImages/bitcoin-icons-verify-filled.svg",1,"w-[16px]","h-[16px]","mt-2","text-tiffany"],[1,"text-tiffany","ml-4","font-gilroySemiBold","text-14"],[1,"absolute","right-4","top-2.5","flex","items-center"],["alt","Img","src","../../../../../assets/images/newEventImages/bitcoin-icons-verify-filled.svg",1,"w-[16px]","h-[16px]","text-tiffany"],[1,"text-tiffany","ml-4"],[1,"absolute","right-4","top-11","flex","items-center"],[1,"text-tiffany","text-16","ml-4"],[1,"absolute","bg-bgTertiary","w-full","z-[1]","border-none","rounded-14","max-h-[130px]","overflow-y-auto","mt-10"],[1,"flex","items-baseline","gap-5"],[1,"text-white","font-gilroySemiBold","text-base"],[1,"w-full","pb-4"],[1,"flex","flex-wrap","gap-28"],[3,"sponsorsList","emitOnAdd","showTitles","showBottom","sponsors","subTitleText","showSubTitleText","showRemoveBtn"],[1,"flex","flex-col","space-y-1.5"],[1,"h-11","flex","items-center","w-full","border","border-borderTertiary","rounded-8","focus-within:border-white","px-12","overflow-hidden",2,"border","1px solid #1C1F31","background","#151728",3,"ngClass"],[1,"flex","items-center","justify-center","mr-8","shrink-0"],[3,"src","alt","ngClass"],[1,"text-sm","font-gilroyMedium","whitespace-nowrap"],["autocomplete","off",1,"flex-1","h-full","bg-transparent","font-gilroyMedium","text-white","text-sm","placeholder:text-[#353A5A]","focus:border-none","focus:shadow-none","outline-none","min-w-0",3,"focusin","id","formControlName","placeholder","readonly"],["class","text-sunsetOrange text-xs font-gilroyRegular",4,"ngIf"],[1,"text-sunsetOrange","text-xs","font-gilroyRegular"],[1,"absolute","top-10","left-1/2","transform","-translate-x-1/2","z-[1100]","bg-transparent","pointer-events-none"],[1,"relative","rounded-full","text-white","px-12","py-8","flex","items-center","space-x-3","min-w-max","overflow-hidden",2,"border-top","1px solid rgba(35, 38, 56, 0.20)","background","rgba(35, 38, 56, 0.10)","backdrop-filter","blur(50px)"],[1,"absolute","
1inset-0","rounded-full","transition-all","duration-300","ease-out",2,"background","linear-gradient(270deg, #0047CA 40.03%, #0A84FF 100%)"],[1,"relative","z-10","flex","items-center","space-x-3"],[1,"text-sm","font-medium","truncate","max-w-48"],[1,"text-sm","font-semibold"],[1,"w-full","max-w-[800px]","2xl:max-w-[900px]","px-32","py-40","mx-auto","overflow-y-auto","custom-scrollbar"],["width","220px","height","30px"],[1,"flex","items-center","gap-24","mb-40"],["width","187px","height","187px","borderRadius","50%"],["width","200px","height","24px"],["width","300px","height","16px"],[1,"grid","grid-cols-1","md:grid-cols-2","gap-x-24","gap-y-30","mb-80"],[1,"col-span-2","flex","flex-col","gap-10"],["width","120px","height","16px"],["height","178px","borderRadius","10px"],["width","280px","height","26px"],[1,"grid","grid-cols-1","md:grid-cols-2","gap-x-24","gap-y-30"],[1,"flex","flex-col","gap-10"],["width","140px","height","16px"],["height","48px","borderRadius","10px"],["width","100px","height","14px"],[1,"bg-white","text-black","px-40","h-12","rounded-full","font-gilroyBold","text-16","disabled:opacity-50",3,"click","disabled"],["width","180px","height","48px","borderRadius","24px"]],template:function(t,n){if(t&1){let l=B();r(0,"div",11)(1,"div",12)(2,"header",13),f(3,zi,9,5,"ng-container",14)(4,ji,5,0,"ng-template",null,0,A),o(),r(6,"div",15,1),b("scroll",function(E){return h(l),_(n.onElementScroll(E))}),r(8,"div",16),f(9,en,3,2,"ng-container",14)(10,rn,18,4,"ng-template",null,2,A),o()(),r(12,"footer",17),f(13,on,3,2,"ng-container",14)(14,sn,1,0,"ng-template",null,3,A),o()(),r(16,"aside",18),g(17,"app-user-emulator",19),o()()}if(t&2){let l=I(5),u=I(11),E=I(15);a(2),c("ngClass",K(15,Oi,n.isScrolled,!n.isScrolled)),a(),c("ngIf",!n.isLoading)("ngIfElse",l),a(6),c("ngIf",!n.isLoading)("ngIfElse",u),a(4),c("ngIf",!n.isLoading)("ngIfElse",E),a(4),c("isBusines",!0)("Name",n.businessProfile.displayName)("friendsCount",n.businessProfile.friendsCount)("followersCount",n.businessProfile.followingCount)("profile",n.businessProfile)("userImage",n.displayAvatar)("showSocial",!0)("isLoading",n.isLoading)}},dependencies:[le,ee,ie,te,We,Ue,De,Re,$e,qe,Ge,re,Ke,He,li,hi,j,ce,_i,gi,di,pi,Ye,ve,xe],styles:[`/* src/app/user/Components/user-creation/new-bussiness-profile-setup/new-bussiness-profile-setup.component.scss */
2body {
3  background:
4    radial-gradient(
5      87.74% 65.27% at 50% -35.85%,
6      rgba(111, 255, 237, 0.25) 0%,
7      rgba(111, 255, 237, 0.04) 74.65%,
8      rgba(111, 255, 237, 0) 100%),
9    #0B0B1A;
10}
11.error-text {
12  margin-top: 0px !important;
13}
14input:focus {
15  border: 1px solid #fff !important;
16  outline: none !important;
17}
18input:-webkit-autofill:focus {
19  -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.031372549) inset !important;
20  -webkit-text-fill-color: #ffffff !important;
21  border: 2px solid rgba(255, 255, 255, 0.2) !important;
22  transition: background-color 5000s ease-in-out 0s;
23  caret-color: #ffffff !important;
24}
25app-new-bussiness-profile-setup input[type=text]::placeholder {
26  color: #353A5A;
27  font-size: 14px !important;
28  font-family: "GilroyMedium" !important;
29}
30input:-webkit-autofill:focus {
31  border: 1px solid #fff !important;
32  outline: none !important;
33  -webkit-box-shadow: none !important;
34}
35.custom-input.ng-invalid.ng-touched,
36.custom-textarea.ng-invalid.ng-touched {
37  border: 1px solid #ff4d4d !important;
38  box-shadow: none !important;
39  outline: none !important;
40}
41.sponsorsWidth {
42  width: 340px;
43  height: 205px;
44}
45.alignMentForDownload .displayName {
46  margin-top: -8px !important;
47}
48.alignMentForDownload .downloadText {
49  margin-top: -8px !important;
50}
51.alignMentForDownload .print-gap {
52  gap: 0 !important;
53}
54label {
55  color: #c2c7f2 !important;
56  font-family: "GilroyMedium" !important;
57  font-size: 1rem !important;
58}
59.custom-input,
60.custom-textarea {
61  background: #151728 !important;
62  border: 1px solid #1C1F31 !important;
63  border-radius: 8px !important;
64  padding: 12px 16px !important;
65  color: white !important;
66  width: 100% !important;
67  font-family: "GilroyMedium" !important;
68  font-size: 0.875rem !important;
69  resize: none !important;
70}
71.custom-input :focus,
72.custom-textarea :focus {
73  border: 1px solid #fff !important;
74  outline: none !important;
75}
76.center-align .inputContainer1.number {
77  background: #151728 !important;
78  border: 1px solid #1C1F31 !important;
79  border-radius: 8px !important;
80  padding: 12px 0px 15px 112px !important;
81  color: white !important;
82  width: 100% !important;
83  height: 47px !important;
84  top: 0px !important;
85  font-family: "GilroyMedium" !important;
86  font-size: 0.875rem !important;
87}
88.center-align .inputContainer1.number::placeholder {
89  color: #353A5A !important;
90}
91.inputContainer1:focus {
92  border: 1px solid #fff !important;
93}
94.inputContainer1.ng-invalid.ng-touched {
95  border: 1px solid #ff4d4d !important;
96  box-shadow: none !important;
97  outline: none !important;
98}
99.social-input-wrapper {
100  display: flex;
101  align-items: center;
102  background: rgba(22, 22, 40, 0.5);
103  border: 1px solid #1C1F31;
104  border-radius: 8px;
105  height: 44px;
106}
107.social-input-wrapper :focus {
108  border: 1px solid #fff !important;
109  outline: none !important;
110}
111.p-dropdown {
112  background: #151728 !important;
113  border: 1px solid #1C1F31 !important;
114  border-radius: 8px !important;
115  width: 100% !important;
116}
117.ng-trigger {
118  width: 100% !important;
119}
120.rotate-180 {
121  transform: rotate(180deg) !important;
122}
123.p-dropdown-panel.business-setup-dropdown-panel {
124  background: #151728 !important;
125  border: 1px solid #1C1F31 !important;
126  border-radius: 8px !important;
127  box-shadow: none !important;
128  margin-top: 10px;
129}
130.p-dropdown-panel.business-setup-dropdown-panel .p-dropdown-items-wrapper {
131  background: #151728 !important;
132  border-radius: 8px !important;
133}
134.p-dropdown-panel.business-setup-dropdown-panel .p-dropdown-items-wrapper ul.p-dropdown-items {
135  background: #151728 !important;
136  border-radius: 8px !important;
137  border: #1C1F31 !important;
138  width: 100% !important;
139  height: max-content;
140}
141.p-dropdown-panel.business-setup-dropdown-panel .p-dropdown-items-wrapper ul.p-dropdown-items .p-ripple {
142  border-bottom: 1px solid #1C1F31;
143  margin-top: 5px;
144}
145.p-dropdown-panel.business-setup-dropdown-panel .p-dropdown-items-wrapper .p-dropdown-item {
146  color: white !important;
147}
148.p-dropdown-panel.business-setup-dropdown-panel .p-dropdown-items-wrapper .p-dropdown-item:hover {
149  background: #1C1F31 !important;
150  border-radius: 8px !important;
151}
152.spaced-dashed-border {
153  position: relative;
154  border-radius: 50%;
155  background-clip: padding-box;
156  padding: 1px;
157}
158.spaced-dashed-border::after {
159  content: "";
160  position: absolute;
161  top: 0;
162  left: 0;
163  right: 0;
164  bottom: 0;
165  border-radius: 50%;
166  padding: 2px;
167  background: repeating-conic-gradient(rgba(255, 255, 255, 0.2) 0% 2%, transparent 0% 4%);
168  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
169  -webkit-mask-composite: destination-out;
170  mask-composite: exclude;
171  pointer-events: none;
172}
173input:-webkit-autofill,
174input:-webkit-autofill:hover,
175input:-webkit-autofill:focus,
176input:-webkit-autofill:active {
177  -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.031372549) inset !important;
178  -webkit-text-fill-color: #ffffff !important;
179  border: 2px solid rgba(255, 255, 255, 0.2) !important;
180  transition: background-color 5000s ease-in-out 0s;
181  caret-color: #ffffff !important;
182}
183input[type=number].ng-touched.ng-invalid,
184input[type=text].ng-touched.ng-invalid,
185input[type=textarea].ng-touched.ng-invalid {
186  border: 1px solid #ff4d4d !important;
187  box-shadow: none !important;
188  outline: none !important;
189}
190.sponsors {
191  margin-top: 16px !important;
192}
193.sponsors .sponsorsCards {
194  margin-top: 0 !important;
195}
196app-new-bussiness-profile-setup .p-dropdown.p-focus {
197  border: 1px solid white !important;
198  outline: none !important;
199  box-shadow: none !important;
200}
201app-new-bussiness-profile-setup .center-align app-country-picker:focus,
202app-new-bussiness-profile-setup .center-align app-country-picker *:focus {
203  outline: none !important;
204}
205app-new-bussiness-profile-setup .center-align:focus-within {
206  border: 1px solid white !important;
207}
208`],encapsulation:2})}}return i})();var an=(i,s)=>({" text-black opacity-100 cursor-pointer":i,"text-black opacity-20 cursor-not-allowed":s}),ln=i=>({background:i}),mn=i=>({selected:i}),cn=(i,s,e,t,n,l)=>({background:i,border:s,transform:e,"box-shadow":t,cursor:n,"z-index":l,transition:"all 0.3s ease"}),pn=i=>({"text-white":i});function dn(i,s){if(i&1&&(r(0,"li",18),g(1,"img",19),r(2,"span",20),p(3),o()()),i&2){let e=s.$implicit,t=d().$implicit,n=d();a(2),c("ngClass",T(2,pn,n.selectedCard===t)),a(),S(" ",e.trim()," ")}}function un(i,s){if(i&1){let e=B();r(0,"div",13),b("mouseenter",function(){let n=h(e).$implicit,l=d();return _(l.hoveredCard=n)})("mouseleave",function(){h(e);let n=d();return _(n.hoveredCard=null)})("click",function(){let n=h(e).$implicit,l=d();return _(l.selectCard(n))}),r(1,"h3",14),p(2),o(),g(3,"div",15),r(4,"ul",16),f(5,dn,4,4,"li",17),o()()}if(i&2){let e=s.$implicit,t=d();c("ngStyle",T(7,ln,e.bgGradient))("ngClass",T(9,mn,t.selectedCard===e))("ngStyle",Me(11,cn,t.hoveredCard===e||t.selectedCard===e?e.bgGradientHover:e.bgGradient,t.selectedCard===e?"1px solid "+e.selectedBorderColor:"1px solid #2F3450",t.hoveredCard===e?"scale(1.05)":"scale(1)",t.hoveredCard===e?"0 4px 8px rgba(0,0,0,0.2)":"none",t.hoveredCard===e?"pointer":"default",t.hoveredCard===e?"5":"1")),a(),$("background-image",e.headingGradient),a(),S(" ",e.typeTitle," "),a(3),c("ngForOf",e.typeDescription==null?null:e.typeDescription.split("\r"))}}function fn(i,s){i&1&&(r(0,"div",23),g(1,"p-skeleton",24),o())}function gn(i,s){if(i&1&&(x(0),r(1,"div",21),f(2,fn,2,0,"div",22),o(),v()),i&2){let e=d();a(2),c("ngForOf",e.gradientList)}}function hn(i,s){i&1&&(x(0),p(1," Next "),v())}function _n(i,s){i&1&&(x(0),g(1,"div",25),p(2," Verifying... "),v())}var Ee=(()=>{class i{constructor(e,t,n){this.router=e,this.userService=t,this.sharedService=n,this.businessTypes=[],this.gradientList=[{normal:"linear-gradient(178deg, rgba(111, 255, 237, 0.10) 1.79%, rgba(35, 38, 56, 0.10) 99.36%)",hover:"linear-gradient(178deg, rgba(111, 255, 237, 0.25) 1.79%, rgba(35, 38, 56, 0) 99.36%)"},{normal:"linear-gradient(164deg, rgba(10, 132, 255, 0.08) 3.9%, rgba(102, 100, 100, 0.08) 88.88%)",hover:"linear-gradient(164deg, rgba(10, 132, 255, 0.20) 3.9%, rgba(102, 100, 100, 0) 88.88%)"}],this.headingGradients=["linear-gradient(91deg, #6FFFED 0.94%, #FFF 90.76%)","linear-gradient(92deg, #0A84FF 1.43%, #FFF 90.55%)"],this.selectedCard=null,this.isLoading=!1,this.isMessageSent=!1,this.isVerifing=!1,this.progress=0}ngOnInit(){this.getBusinessTypes()}selectCard(e){this.selectedCard=e}close(){this.sharedService.userDetailModel.role==="Business"?this.router.navigate(["/Dashboard"]):this.sharedService.userDetailModel.businessAccountExists?this.router.navigate(["/Profile/Selection"]):this.sharedService.backNavigation()}isButtonDisabled(){return this.selectedCard===null}proceed(){this.queryParamsImplementation({businessTypeId:this.selectedCard.businessTypeId})}startProgress(){this.progress=0,this.interval=setInterval(()=>{this.isLoading===!1&&(this.progress=100),this.progress<100?this.progress+=this.isLoading&&this.progress>90?1:50:clearInterval(this.interval)},150)}queryParamsImplementation(e){this.router.navigate(["/business/create"],{queryParams:e,queryParamsHandling:"merge"})}getBusinessTypes(){this.isLoading=!0,this.userService.getBusinessTypes().then(e=>{this.isLoading=!1,this.businessTypes=e.map((t,n)=>{let l=new q(t),u=this.gradientList[n%this.gradientList.length];return l.bgGradient=u.normal,l.bgGradientHover=u.hover,l.headingGradient=this.headingGradients[n%this.headingGradients.length],l.selectedBorderColor=n===1?"#0A84FF":"#6FFFED",l})}).catch(()=>{this.isLoading=!1})}ngOnDestroy(){this.unsubscribePubnub$&&this.unsubscribePubnub$.unsubscribe(),clearTimeout(this.timeoutHandle)}static{this.\u0275fac=function(t){return new(t||i)(C(z),C(U),C(W))}}static{this.\u0275cmp=D({type:i,selectors:[["app-profile-selection"]],standalone:!0,features:[R],decls:19,vars:12,consts:[[1,"profile-view","bg-profile-gradient","bg-bgPrimary","relative"],["type","button",1,"absolute","top-[50px]","left-[60px]","h-[38px]","w-[38px]","cursor-pointer","rounded-full","border","transition-transform","hover:scale-110","border-[rgba(255,255,255,0.50)]","flex","items-center","justify-center","ipad-mini:left-[40px]",2,"background","rgba(0, 0, 0, 0.05)","backdrop-filter","blur(20.5px)",3,"click"],["alt","close",1,"w-[22px]","h-[22px]","object-contain",3,"src"],[1,"profile-container","flex","flex-col","justify-center","mt-92","ipad-air:mt-74","ipad-mini:mt-74"],[1,"profile-selection","gap-34","w-full","ipad-air:px-0","ipad-mini:px-0"],[1,"flex","items-center","justify-center"],[1,"text-white","text-center","text-32","font-gilroyMedium","leading-[1.1]","ipad-air:text-24","ipad-mini:text-24",2,"background","linear-gradient(93deg, #FFF 28.47%, #C6C6C6 92.42%)","-webkit-background-clip","text","-webkit-text-fill-color","transparent"],[1,"flex","flex-col","w-fit","gap-40","mx-auto"],[1,"card-container","p-20","ipad-air:gap-32","ipad-mini:gap-32"],["class","card ",3,"ngStyle","ngClass","mouseenter","mouseleave","click",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"flex","w-full","items-center","justify-end","pr-20"],[1,"w-[162px]","h-[48px]","flex","items-center","bg-white","justify-center","rounded-full","font-gilroySemiBold","text-base","transition-opacity","duration-300",3,"click","disabled","ngClass"],[1,"card",3,"mouseenter","mouseleave","click","ngStyle","ngClass"],[1,"inline-block","text-[32px]","font-gilroyMedium","text-center","leading-normal","bg-clip-text","text-transparent"],[1,"mx-auto","my-20","w-full","h-px","bg-[rgba(255,255,255,0.10)]"],[1,"pl-5","space-y-1","text-sm","text-gray-300"],["class","flex items-start gap-12",4,"ngFor","ngForOf"],[1,"flex","items-start","gap-12"],["src","assets/images/Icons/web-selling/type-arrow.svg","alt","arrow",1,"w-3","h-[21px]","mt-1","flex-shrink-0"],[1,"text-lavenderBlue","font-gilroyRegular","text-sm","max-w-[296px]","ipad-air:max-w-[252px]","ipad-mini:max-w-[252px]",3,"ngClass"],[1,"flex","w-full","gap-24","overflow-y-scroll","justify-center","items-center","ipad-air:gap-32","ipad-mini:gap-32"],["class","shrink-0",4,"ngFor","ngForOf"],[1,"shrink-0"],["styleClass","w-[388px] h-[384px] rounded-[20px] ipad-air:w-[324px] ipad-mini:w-[324px]","borderRadius","20px"],[1,"selected","litButton","button_progress"]],template:function(t,n){t&1&&(r(0,"div",0)(1,"button",1),b("click",function(){return n.close()}),g(2,"img",2),w(3,"imgURL"),o(),r(4,"div",3)(5,"div",4)(6,"div",5)(7,"h2",6),p(8," Choose a profile that suits your "),g(9,"br"),p(10,"Business the best "),o()(),r(11,"div",7)(12,"div",8),f(13,un,6,18,"div",9)(14,gn,3,1,"ng-container",10),o(),r(15,"div",11)(16,"button",12),b("click",function(){return n.proceed()}),f(17,hn,2,0,"ng-container",10)(18,_n,3,0,"ng-container",10),o()()()()()()),t&2&&(a(2),c("src",N(3,7,"Icons/web-selling/back-arrow.svg"),P),a(11),c("ngForOf",n.businessTypes),a(),c("ngIf",n.isLoading),a(2),c("disabled",n.isButtonDisabled()||n.isVerifing)("ngClass",K(9,an,!n.isButtonDisabled()&&!n.isVerifing,n.isButtonDisabled()||n.isVerifing)),a(),c("ngIf",!n.isVerifing),a(),c("ngIf",n.isVerifing))},dependencies:[le,ee,ie,te,Ae,re,j],styles:[`
209
210.profile-view[_ngcontent-%COMP%] {
211  display: flex;
212  flex-direction: column;
213}
214.profile-view[_ngcontent-%COMP%]   .crossIcon[_ngcontent-%COMP%] {
215  position: absolute;
216  right: 0;
217  padding: 18px 16px 0px 0px;
218  cursor: pointer;
219}
220.profile-view[_ngcontent-%COMP%]   .profile-container[_ngcontent-%COMP%] {
221  width: 100%;
222  height: 100%;
223  display: flex;
224  flex-direction: row;
225}
226.profile-view[_ngcontent-%COMP%]   .profile-container[_ngcontent-%COMP%]   .features-card[_ngcontent-%COMP%] {
227  width: 30%;
228  border-right: 1px solid #232638;
229  padding: 40px 68px 65px 40px;
230  display: flex;
231  align-items: center;
232}
233.profile-view[_ngcontent-%COMP%]   .profile-container[_ngcontent-%COMP%]   .features-card[_ngcontent-%COMP%]   .features-list[_ngcontent-%COMP%] {
234  display: flex;
235  flex-direction: column;
236  border-radius: 14px;
237  height: 100%;
238}
239.profile-view[_ngcontent-%COMP%]   .profile-container[_ngcontent-%COMP%]   .features-card[_ngcontent-%COMP%]   .features-list[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%] {
240  color: #FFF;
241  font-family: "GilroyBold";
242  font-size: 24px;
243  height: 50px;
244  display: flex;
245  align-items: center;
246  justify-content: center;
247  text-transform: capitalize;
248  background: #504EDB;
249  border-top-left-radius: 14px;
250  border-top-right-radius: 14px;
251}
252.profile-view[_ngcontent-%COMP%]   .profile-container[_ngcontent-%COMP%]   .features-card[_ngcontent-%COMP%]   .features-list[_ngcontent-%COMP%]   .features-lists[_ngcontent-%COMP%] {
253  background:
254    linear-gradient(
255      180deg,
256      rgba(80, 78, 219, 0.2) 0%,
257      #1E1E2C 105.23%);
258  display: flex;
259  flex-direction: column;
260  gap: 18px;
261  padding: 19px 16px 25px 16px;
262  border: 1px solid #504EDB;
263  border-bottom-left-radius: 14px;
264  border-bottom-right-radius: 14px;
265}
266.profile-view[_ngcontent-%COMP%]   .profile-container[_ngcontent-%COMP%]   .features-card[_ngcontent-%COMP%]   .features-list[_ngcontent-%COMP%]   .features-lists[_ngcontent-%COMP%]   .data[_ngcontent-%COMP%] {
267  display: flex;
268  flex-direction: row;
269  gap: 12px;
270  align-items: center;
271}
272.profile-view[_ngcontent-%COMP%]   .profile-container[_ngcontent-%COMP%]   .features-card[_ngcontent-%COMP%]   .features-list[_ngcontent-%COMP%]   .features-lists[_ngcontent-%COMP%]   .data.center[_ngcontent-%COMP%] {
273  align-items: baseline !important;
274}
275.profile-view[_ngcontent-%COMP%]   .profile-container[_ngcontent-%COMP%]   .features-card[_ngcontent-%COMP%]   .features-list[_ngcontent-%COMP%]   .features-lists[_ngcontent-%COMP%]   .data[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%] {
276  width: 18px;
277  height: 14px;
278}
279.profile-view[_ngcontent-%COMP%]   .profile-container[_ngcontent-%COMP%]   .features-card[_ngcontent-%COMP%]   .features-list[_ngcontent-%COMP%]   .features-lists[_ngcontent-%COMP%]   .data[_ngcontent-%COMP%]   span[_ngcontent-%COMP%] {
280  color: #FFF;
281  font-family: "GilroySemiBold";
282  font-size: 16px;
283  font-style: normal;
284  font-weight: 600;
285  line-height: normal;
286  text-transform: capitalize;
287}
288.profile-view[_ngcontent-%COMP%]   .profile-container[_ngcontent-%COMP%]   .profile-selection[_ngcontent-%COMP%] {
289  width: 71%;
290  padding: 0px 69px 0px 59px;
291  display: flex;
292  flex-direction: column;
293  gap: 20px;
294}
295.profile-view[_ngcontent-%COMP%]   .profile-container[_ngcontent-%COMP%]   .profile-selection[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%] {
296  display: flex;
297  flex-wrap: wrap;
298  width: 100%;
299  gap: 24px;
300  overflow: scroll;
301  align-items: center;
302  justify-content: center;
303}
304.profile-view[_ngcontent-%COMP%]   .profile-container[_ngcontent-%COMP%]   .profile-selection[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%] {
305  display: flex;
306  flex-direction: column;
307  align-items: start;
308  justify-content: start;
309  border: 1px solid #2F3450;
310  padding: 30px;
311  transition: transform 0.3s ease;
312  height: 384px;
313  border-radius: 20px;
314}
315.profile-view[_ngcontent-%COMP%]   .profile-container[_ngcontent-%COMP%]   .profile-selection[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card.hovered[_ngcontent-%COMP%] {
316  transform: scale(1.05);
317  border: 1px solid #6FFFED;
318  cursor: pointer;
319}
320.profile-view[_ngcontent-%COMP%]   .profile-container[_ngcontent-%COMP%]   .profile-selection[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card.selected[_ngcontent-%COMP%] {
321  border: 1px solid #6FFFED;
322  background-image: url("./media/backgroundCard-I3MIWUSE.svg");
323  background-size: cover;
324  background-repeat: no-repeat;
325  background-position: center;
326  color: white;
327}
328.profile-view[_ngcontent-%COMP%]   .profile-container[_ngcontent-%COMP%]   .profile-selection[_ngcontent-%COMP%]   .card-container[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   p[_ngcontent-%COMP%] {
329  color: #C2C7F2;
330  font-family: "GilroyRegular";
331  font-size: 14px;
332  font-style: normal;
333  line-height: 20px;
334}
335.profile-view[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%] {
336  bottom: 0px;
337  width: 100%;
338  display: flex;
339  flex-direction: row;
340  justify-content: flex-end;
341  align-items: center;
342}
343.profile-view[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]   p[_ngcontent-%COMP%] {
344  color: #C2C7F2;
345  font-family: "GilroyMedium";
346  font-size: 16px;
347  font-style: normal;
348  font-weight: 500;
349  line-height: normal;
350  padding: 30px 0px 30px 40px;
351}
352.profile-view[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]   .padding[_ngcontent-%COMP%] {
353  padding: 0px 280px 18px 0px;
354}
355.profile-view[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]   .padding[_ngcontent-%COMP%]   .green[_ngcontent-%COMP%] {
356  display: flex;
357  min-width: 150px;
358  max-width: 242px;
359  height: 44px;
360  padding: 16px;
361  justify-content: center;
362  align-items: center;
363  gap: 14px;
364  flex-shrink: 0;
365  border-radius: 10px;
366  background: #6FFFED;
367  color: #1E1E2C;
368  font-family: "GilroyBold";
369  font-size: 16px;
370  font-style: normal;
371  font-weight: 700;
372  line-height: normal;
373  border: none;
374}
375.profile-view[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]   .padding[_ngcontent-%COMP%]   .green.disable[_ngcontent-%COMP%] {
376  opacity: 0.4;
377  cursor: not-allowed;
378}
379.profile-view[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%] {
380  margin: 0px;
381}
382.profile-view[_ngcontent-%COMP%]   p[_ngcontent-%COMP%] {
383  margin: 0 !important;
384}
385.skeleton-container[_ngcontent-%COMP%] {
386  display: flex;
387  flex-wrap: wrap;
388  gap: 18px;
389}
390@media only screen and (min-device-width: 768px) and (max-device-width: 1280px) {
391  .profile-container[_ngcontent-%COMP%] {
392    height: 100vh !important;
393  }
394  .profile-container[_ngcontent-%COMP%]   .features-card[_ngcontent-%COMP%] {
395    width: 322px !important;
396    padding: 24px !important;
397    display: flex !important;
398    align-items: start !important;
399  }
400  .profile-container[_ngcontent-%COMP%]   .features-card[_ngcontent-%COMP%]   .features-list[_ngcontent-%COMP%] {
401    height: 678px !important;
402    width: 278px !important;
403  }
404  .profile-container[_ngcontent-%COMP%]   .features-card[_ngcontent-%COMP%]   .features-list[_ngcontent-%COMP%]   .data[_ngcontent-%COMP%] {
405    align-items: center !important;
406  }
407  .profile-container[_ngcontent-%COMP%]   .features-card[_ngcontent-%COMP%]   .features-list[_ngcontent-%COMP%]   .data.center[_ngcontent-%COMP%] {
408    align-items: baseline !important;
409  }
410  .profile-container[_ngcontent-%COMP%]   .features-card[_ngcontent-%COMP%]   .features-list[_ngcontent-%COMP%]   .data[_ngcontent-%COMP%]   span[_ngcontent-%COMP%] {
411    font-size: 0.875rem !important;
412  }
413  .profile-container[_ngcontent-%COMP%]   .features-card[_ngcontent-%COMP%]   .features-list[_ngcontent-%COMP%]   .data[_ngcontent-%COMP%]   span.lineHeight[_ngcontent-%COMP%] {
414    line-height: 24px !important;
415  }
416  .profile-container[_ngcontent-%COMP%]   .features-card[_ngcontent-%COMP%]   .features-list[_ngcontent-%COMP%]   .features-lists[_ngcontent-%COMP%] {
417    gap: 25px !important;
418    padding: 25px 16px 25px 16px !important;
419  }
420  .profile-container[_ngcontent-%COMP%]   .profile-selection[_ngcontent-%COMP%] {
421    overflow-y: scroll !important;
422    overflow-x: hidden !important;
423  }
424}
425@media only screen and (min-device-width: 2560px) and (max-device-width: 3300px) {
426  .profile-container[_ngcontent-%COMP%]   .features-card[_ngcontent-%COMP%] {
427    width: 20% !important;
428  }
429  .profile-container[_ngcontent-%COMP%]   .features-list[_ngcontent-%COMP%] {
430    margin-left: 8px !important;
431    width: 500px !important;
432  }
433  .profile-container[_ngcontent-%COMP%]   .features-list[_ngcontent-%COMP%]   .data[_ngcontent-%COMP%] {
434    align-items: center !important;
435  }
436  .profile-container[_ngcontent-%COMP%]   .features-list[_ngcontent-%COMP%]   .data[_ngcontent-%COMP%]   span[_ngcontent-%COMP%] {
437    font-size: 1.375rem !important;
438    line-height: 38px !important;
439  }
440  .footer[_ngcontent-%COMP%]   p[_ngcontent-%COMP%] {
441    font-size: 1.125rem !important;
442    font-family: "GilroySemiBold" !important;
443  }
444}`]})}}return i})();function bn(i,s){if(i&1&&g(0,"app-user-emulator",25),i&2){let e=d();c("isBusines",!1)("Name",e.profileService.personalProfile.firstName+" "+e.profileService.personalProfile.lastName)("friendsCount",e.profileService.personalProfile.friendsCount)("followingCount",e.profileService.personalProfile.followingCount)("profile",e.profileService.personalProfile)("userImage",e.profileService.personalProfile.userAvatar)("showSocial",!0)("showSnapchat",!0)("isLoading",e.isLoading)}}var Ne=(()=>{class i{constructor(e,t,n,l,u,E,F){this.router=e,this.dialog=t,this.sharedService=n,this.userService=l,this.localStorageService=u,this.profileService=E,this.cd=F,this.showOnlyAccounts=!1,this.accountsList=[],this.allAccountsList=[],this.totalLength=0,this.appUserAvatar="",this.isCollegeCreated=!1,this.selectedUser=null,this.isLoading=!1,this.isAtBottom=!1,this.selectedIndex=-1,this.status="",this.boxes=[],this.dummyList=[],this.qrWidth=155}ngOnInit(){this.getUserAccounts(),this.assignValuesToBoxes()}setup(){this.checkIntroScreenDisplayed()}checkIntroScreenDisplayed(){this.sharedService.checkIntroScreenDisplayed("BUSSINESS").subscribe({next:e=>{e===!1?this.openDialog():this.router.navigate(["/business/select"])}})}openDialog(){this.router.navigate(["/business/select"])}getUserAccounts(){this.isLoading=!0,this.profileService.GetUserAccounts({phoneNumber:this.localStorageService.getPhoneNumber()}).then(e=>{if(setTimeout(()=>{this.isLoading=!1},400),e&&e!==null&&e!==void 0){let t=e.findIndex(l=>l.role===k.App);this.isCollegeCreated=e.some(l=>l.role===k.College),t!==-1&&(localStorage.setItem("firstName",e[t].firstName),localStorage.setItem("lastName",e[t].lastName),this.appUserAvatar=e[t].userAvatar,this.getAndSetProfile(e[t].userID)),this.allAccountsList=e.filter((l,u)=>u===0||u>0).sort((l,u)=>u.userID-l.userID);let n=this.allAccountsList.findIndex(l=>l.userID===this.sharedService.userDetailModel.userID&&l.role===this.sharedService.userDetailModel.role);n!==-1&&this.allAccountsList.splice(n,1),this.accountsList=this.allAccountsList.sort((l,u)=>{let E=/^\d/.test(l.profileName),F=/^\d/.test(u.profileName);return E&&!F?1:!E&&F?-1:l.profileName.localeCompare(u.profileName)}),this.totalLength=this.accountsList.filter(l=>l.status!=="Deleted").length,this.assignValuesToBoxes()}}).catch(()=>{this.isLoading=!1})}getAndSetProfile(e){this.profileService.appUserSigninWeb(e).subscribe({next:t=>{t&&(t.user.dob=this.sharedService.utcToLocalDate(t.user.dob).toDate(),this.profileService.personalProfile=new ci(t.user),this.profileService.personalProfile.followingCount=t.followingCount,this.profileService.personalProfile.friendsCount=t.friendsCount,this.cd.markForCheck())}})}assignValuesToBoxes(){this.boxes=[{image:"Icons/BusinessIcon.svg",selectedImage:"Icons/selectedBusinessIcon.svg",class:"business",title:"Business Account",isDisable:!1,role:k.Business},{image:"Icons/CollegeIcon.svg",selectedImage:"Icons/selectedCollegeIcon.svg",class:"college",title:"College Account",isDisable:this.isCollegeCreated,role:k.College},{image:"Icons/StudentIcon.svg",selectedImage:"Icons/selectedStudentIcon.svg",class:"student",title:"Student Union",isDisable:!1,role:k.Union},{image:"Icons/CollegeclubIcon.svg",selectedImage:"Icons/selectedCollegeclubIcon.svg",class:"club",title:"College Club",isDisable:!1,role:k.Club},{image:"Icons/CollegeSocietyIcon.svg",selectedImage:"Icons/selectedCollegeSocietyIcon.svg",class:"society",t
444itle:"College Society",isDisable:!1,role:k.Society}]}static{this.\u0275fac=function(t){return new(t||i)(C(z),C(ne),C(W),C(U),C(oe),C(me),C(Oe))}}static{this.\u0275cmp=D({type:i,selectors:[["app-new-bussiness-landing-page"]],inputs:{showOnlyAccounts:"showOnlyAccounts"},standalone:!0,features:[R],decls:46,vars:16,consts:[[1,"mainContainer"],[1,"container1"],[1,"heading"],[1,"subtext"],[1,"wrapRow"],[3,"isBusines","Name","friendsCount","followingCount","profile","userImage","showSocial","showSnapchat","isLoading",4,"ngIf"],[1,"QrColumn"],[1,"download"],[1,"scanText"],[1,"qrContainer"],["alt","qr",1,"qrimgNew",3,"src"],[1,"container2"],["alt","",1,"bg-img",3,"src"],[1,"header"],[1,"description"],[1,"rowCards"],[1,"eventCard"],["alt","Event Icon",1,"eventIcon",3,"src"],[1,"eventHeading"],[1,"eventText"],[1,"competitionCard"],["alt","Competition",1,"competionIcon",3,"src"],[1,"competionText"],[1,"createButton",3,"click"],["alt","Arrow",1,"arrow",3,"src"],[3,"isBusines","Name","friendsCount","followingCount","profile","userImage","showSocial","showSnapchat","isLoading"]],template:function(t,n){t&1&&(r(0,"div",0)(1,"div",1)(2,"h1",2),p(3," Your personal account is set up and ready! "),o(),r(4,"p",3),p(5," Download the Orgonize app to discover thrilling events, create personal events and meet ups, enter exciting competitions, share with friends, and craft unforgettable experiences. Never miss out again! "),o(),r(6,"div",4),f(7,bn,1,9,"app-user-emulator",5),r(8,"div",6)(9,"h2",7),p(10," Download Now "),o(),r(11,"p",8),p(12," Scan the QR code to download the Orgonize app now! "),o(),r(13,"div",9),g(14,"img",10),w(15,"imgURL"),o()()()(),r(16,"div",11),g(17,"img",12),w(18,"imgURL"),r(19,"h1",13),p(20," Set Up your Organiser Account "),o(),r(21,"p",14),p(22," Engage and excite your guests with interactive events. Create your organiser account today. "),o(),r(23,"div",15)(24,"div",16),g(25,"img",17),w(26,"imgURL"),r(27,"h1",18),p(28," Create Events "),o(),r(29,"p",19),p(30," Organise tickets and keep 100% revenue or link external "),g(31,"br"),p(32," tickets, with detailed analytics, multiple ticket types, "),g(33,"br"),p(34," chat, staff check-in, and more. "),o()(),r(35,"div",20),g(36,"img",21),w(37,"imgURL"),r(38,"h1",18),p(39," Create Competitions "),o(),r(40,"p",22),p(41," Host general and event-linked competitions with powerful analytics to track performance and maximise engagement on your organiser profile. "),o()()(),r(42,"button",23),b("click",function(){return n.openDialog()}),p(43," Create Account Now "),g(44,"img",24),w(45,"imgURL"),o()()()),t&2&&(a(7),c("ngIf",!n.showOnlyAccounts),a(7),c("src",N(15,6,"PrintQR/qrImgNew.png"),P),a(3),c("src",N(18,8,"DashboardImages/bgprofileNew.webp"),P),a(8),c("src",N(26,10,"DashboardImages/eventcon.svg"),P),a(11),c("src",N(37,12,"DashboardImages/competionIcon.svg"),P),a(8),c("src",N(45,14,"DashboardImages/arrowSignin.svg"),P))},dependencies:[ce,j],styles:[`@charset "UTF-8";
445
446/* src/app/user/Components/new-bussiness/new-bussiness-landing-page/new-bussiness-landing-page.component.scss */
447* body {
448  background-color: #0B0D1D !important;
449}
450app-common-header .topHeader .logo {
451  width: 116px !important;
452  height: 29px !important;
453}
454.mainContainer {
455  display: flex;
456  align-items: center;
457  width: 100dvw;
458  height: 100%;
459  gap: 24px;
460  padding: 78px 45px 47px 21px;
461}
462.mainContainer .container1 {
463  width: 47.2dvw;
464  height: 82vh;
465  padding: 71px 0px 8px 0px;
466  flex-shrink: 0;
467  border-radius: 20px;
468  border: 2px solid #2F3450;
469  background:
470    radial-gradient(
471      355.69% 132.99% at 0% 6.53%,
472      rgba(255, 255, 255, 0.07) 0%,
473      rgba(217, 217, 217, 0) 100%);
474  display: flex;
475  align-items: center;
476  flex-direction: column;
477  overflow: hidden;
478}
479.mainContainer .container1 .heading {
480  color: #ffffff;
481  text-align: center;
482  font-family: "GilroyBold";
483  font-size: 1.5rem;
484  line-height: 116.667%;
485  text-transform: capitalize;
486  margin: 0;
487  width: 342px;
488}
489.mainContainer .container1 .subtext {
490  color: #c2c7f2;
491  text-align: center;
492  font-family: "GilroyRegular";
493  font-size: 0.875rem;
494  line-height: 125%;
495  margin: 0;
496  width: 502px;
497  margin-top: 16px;
498}
499.mainContainer .container1 .wrapRow {
500  display: flex;
501  gap: 36px;
502  margin-top: 36px;
503}
504.mainContainer .container1 .wrapRow .QrColumn {
505  display: flex;
506  flex-direction: column;
507  gap: 8px;
508}
509.mainContainer .container1 .wrapRow .QrColumn .download {
510  color: #ffffff;
511  font-family: "GilroyBold";
512  font-size: 1.125rem;
513  text-transform: capitalize;
514  margin: 0;
515}
516.mainContainer .container1 .wrapRow .QrColumn .scanText {
517  color: #c2c7f2;
518  font-family: "GilroyRegular";
519  font-size: 1rem;
520  margin: 0;
521  line-height: 125%;
522  width: 180px;
523}
524.mainContainer .container1 .wrapRow .QrColumn .qrContainer {
525  height: 170px;
526  width: 170px;
527  border: 1px solid #ffffff;
528  display: flex;
529  align-items: center;
530  justify-content: center;
531  margin-top: 9px;
532}
533.mainContainer .container1 .wrapRow .QrColumn .qrContainer .qrimgNew {
534  width: 155px;
535  height: 155px;
536}
537.mainContainer .container2 {
538  position: relative;
539  display: flex;
540  flex-direction: column;
541  align-items: center;
542  justify-content: center;
543  width: 47.2dvw;
544  height: 82vh;
545  flex-shrink: 0;
546  border-radius: 24px;
547  background-repeat: no-repeat;
548  box-shadow: inset 0 -0.3px 0 0 #0a84ff;
549  background-size: cover;
550  padding: 3dvh 0px 3dvh 0px;
551  overflow: hidden;
552  box-sizing: border-box;
553  background-position: center;
554}
555.mainContainer .container2 .bg-img {
556  position: absolute;
557  inset: 0;
558  height: 82vh;
559  width: 47.2dvw;
560  z-index: -1;
561}
562.mainContainer .container2 .header {
563  color: #ffffff;
564  text-align: center;
565  font-family: "GilroySemiBold";
566  font-size: 1.5rem;
567  line-height: 116.667%;
568  text-transform: capitalize;
569  margin: 0;
570  width: 419px;
571}
572.mainContainer .container2 .description {
573  color: #c2c7f2;
574  text-align: center;
575  font-family: "GilroyMedium";
576  font-size: 1rem;
577  line-height: 125%;
578  margin: 0;
579  width: 393px;
580  margin-top: 2.1dvh;
581}
582.mainContainer .container2 .rowCards {
583  display: flex;
584  gap: 14px;
585  margin-top: 3.6dvh;
586}
587.mainContainer .container2 .rowCards .eventCard {
588  display: flex;
589  width: 263px;
590  height: 306px;
591  flex-direction: column;
592  align-items: center;
593  justify-content: center;
594  -webkit-align-items: center;
595  -webkit-justify-content: center;
596  flex-shrink: 0;
597  border-radius: 12px;
598  background: rgba(245, 245, 245, 0.05);
599  -webkit-backdrop-filter: blur(7.5px);
600  backdrop-filter: blur(7.5px);
601}
602.mainContainer .container2 .rowCards .eventCard .eventIcon {
603  width: 44.999px;
604  height: 47.005px;
605}
606.mainContainer .container2 .rowCards .eventCard .eventHeading {
607  color: #ffffff;
608  text-align: center;
609  font-family: "GilroySemiBold";
610  font-size: 1.25rem;
611  margin: 0;
612  margin-top: 16px;
613}
614.mainContainer .container2 .rowCards .eventCard .eventText {
615  color: #c2c7f2;
616  text-align: center;
617  font-family: "GilroyMedium";
618  font-size: 0.875rem;
619  line-height: 142.857%;
620  margin: 0;
621  width: 205px;
622  margin-top: 8px;
623}
624.mainContainer .container2 .rowCards .competitionCard {
625  display: flex;
626  width: 263px;
627  height: 306px;
628  flex-direction: column;
629  align-items: center;
630  justify-content: center;
631  -webkit-align-items: center;
632  -webkit-justify-content: center;
633  flex-shrink: 0;
634  border-radius: 12px;
635  background: rgba(245, 245, 245, 0.05);
636  -webkit-backdrop-filter: blur(7.5px);
637  backdrop-filter: blur(7.5px);
638}
639.mainContainer .container2 .rowCards .competitionCard .competionIcon {
640  width: 56px;
641  height: 56px;
642}
643.mainContainer .container2 .rowCards .competitionCard .eventHeading {
644  color: #ffffff;
645  text-align: center;
646  font-family: "GilroySemiBold";
647  font-size: 1.25rem;
648  margin: 0;
649  margin-top: 16px;
650}
651.mainContainer .container2 .rowCards .competitionCard .competionText {
652  color: #c2c7f2;
653  text-align: center;
654  font-family: "GilroyMedium";
655  font-size: 0.875rem;
656  line-height: 157.143%;
657  margin: 0;
658  width: 208px;
659  margin-top: 8px;
660}
661.mainContainer .container2 .createButton {
662  display: flex;
663  width: 371px;
664  height: 50px;
665  padding: 16px;
666  justify-content: center;
667  align-items: center;
668  -webkit-align-items: center;
669  -webkit-justify-content: center;
670  gap: 8px;
671  flex-shrink: 0;
672  border-radius: 10px;
673  background: #0a84ff;
674  color: #ffffff;
675  font-size: 1.125rem;
676  font-style: normal;
677  font-family: "GilroyBold";
678  line-height: normal;
679  margin: 0;
680  border: none;
681  outline: none;
682  margin-top: 3.2dvh;
683}
684.mainContainer .container2 .createButton .arrow {
685  width: 14px;
686  height: 19px;
687  aspect-ratio: 14/19;
688  margin-top: 2.5px;
689}
690@media only screen and (min-width: 1600px) and (max-width: 2550px) {
691  .mainContainer {
692    justify-content: center !important;
693  }
694  .mainContainer .container1 {
695    padding: 95px 0px 8px 0px !important;
696  }
697  .mainContainer .container2 .bg-img {
698    width: 47.2dvw !important;
699  }
700  .mainContainer .container2 .header {
701    width: 232px !important;
702  }
703}
704@media only screen and (min-width: 2560px) and (max-width: 3400px) {
705  .mainContainer {
706    justify-content: center !important;
707  }
708  .mainContainer .container1 {
709    height: 77vh !important;
710    padding: 161px 0px 8px 0px !important;
711  }
712  .mainContainer .container2 {
713    height: 77vh !important;
714  }
715  .mainContainer .container2 .bg-img {
716    height: 77vh !important;
717  }
718  .mainContainer .container2 .header {
719    width: 232px !important;
720  }
721}
722@media only screen and (min-height: 1094px) and (max-height: 1200px) {
723  .container1 {
724    height: 77vh !important;
725  }
726  .container2 {
727    height: 77vh !important;
728  }
729  .container2 .bg-img {
730    height: 77vh !important;
731  }
732}
733@media only screen and (min-height: 1171px) and (max-height: 1180px) {
734  .container1 {
735    height: 77vh !important;
736  }
737  .container2 {
738    height: 77vh !important;
739  }
740  .container2 .bg-img {
741    height: 77vh !important;
742  }
743}
744@media only screen and (min-width: 768px) and (max-width: 1024px) {
745  .container1 {
746    display: none !important;
747  }
748  .container2 {
749    width: 93.2dvw !important;
750    margin-top: 89px !important;
751    height: 58vh !important;
752  }
753  .container2 .bg-img {
754    width: 93.2dvw !important;
755    height: 58vh !important;
756  }
757  app-user-preview-mobile .mobileViewBox {
758    margin: 52px 0px 40px 24px !important;
759  }
760}
761@media only screen and (min-width: 1280px) and (max-width: 1300px) {
762  .mainContainer {
763    padding: 226px 45px 47px 21px !important;
764  }
765  .mainContainer .container1 {
766    padding: 26px 0px 8px 0px !important;
767  }
768  .mainContainer .container2 .createButton {
769    margin-top: 2.2dvh !important;
770    height: 36px !important;
771  }
772}
773`],encapsulation:2})}}return i})();var wr=[{path:"create",component:Se},{path:"select",component:Ee},{path:"page",component:Ne},{path:"select",component:Ee},{path:"page",component:Ne},{path:"edit",canActivate:[ni],component:Se,data:{roles:[k.Business,k.Admin]}}];export{wr as USER_ROUTES};

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.