1"use strict";(self.webpackChunksanchiconnect_frontend_angular=self.webpackChunksanchiconnect_frontend_angular||[]).push([["src_app_modules_challenges_challenges_module_ts"],{58697:(re,R,s)=>{s.r(R),s.d(R,{ChallengesModule:()=>It});var p=s(36362),x=s(14045),A=s(50253),_=s(98977),V=s(59319),M=s(10745),F=s(60116),H=s(19337),ee=s(32673),te=s(53158),w=s(68951),D=s(9997),J=s(88879),ne=s(53434),W=s(67324),oe=s(60598),K=s.n(oe),i=s(90587),ie=s(84819),e=s(3184),f=s(56900),P=s(52998),se=s(95410),me=s(39777),j=s(80966),ue=s(7205),ce=s(50318),le=s(43085);function he(n,a){if(1&n&&(e.TgZ(0,"div",14)(1,"span",15),e._UZ(2,"span",16),e.qZA()()),2&n){const t=e.oxw();e.xp6(1),e.ekj("d-inline-block",t.loader)}}function be(n,a){if(1&n&&(e.ynx(0),e.TgZ(1,"div",40)(2,"div"),e._uU(3,"Total: "),e.TgZ(4,"span",41),e._uU(5),e.qZA()(),e.TgZ(6,"div"),e._uU(7,"Submitted: "),e.TgZ(8,"span",41),e._uU(9),e.qZA()(),e.TgZ(10,"div"),e._uU(11,"Draft: "),e.TgZ(12,"span",41),e._uU(13),e.qZA()()(),e.BQk()),2&n){const t=e.oxw().$implicit;e.xp6(5),e.Oqu(t.applicationStats.total),e.xp6(4),e.Oqu(t.applicationStats.submitted),e.xp6(4),e.Oqu(t.applicationStats.draft)}}function xe(n,a){1&n&&(e.TgZ(0,"span",42),e._uU(1,"Not generated yet"),e.qZA())}function _e(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"div",43),e.NdJ("click",function(){e.CHM(t);const l=e.oxw().$implicit;return e.oxw(2).onElevation(l.cfaId)}),e.TgZ(1,"span",44),e._uU(2," Evaluate Applications "),e.qZA()()}}const fe=function(n,a,t){return{"badge text-success":n,"badge text-yellow":a,"badge text-danger":t}};function ve(n,a){if(1&n&&(e.TgZ(0,"tr",26)(1,"td",27)(2,"div",28)(3,"p",29),e._uU(4),e.qZA()()(),e.TgZ(5,"td",30)(6,"span",31),e._uU(7),e.ALo(8,"titlecase"),e.qZA()(),e.TgZ(9,"td",30),e.YNc(10,be,14,3,"ng-container",32),e.YNc(11,xe,2,0,"ng-template",null,33,e.W1O),e.qZA(),e.TgZ(13,"td",34)(14,"div",35),e.YNc(15,_e,3,0,"div",36),e.TgZ(16,"div",37)(17,"span",38),e._UZ(18,"i",39),e._uU(19," Details "),e.qZA()()()()()),2&n){const t=a.$implicit,o=e.MAs(12),l=e.oxw(2);e.xp6(3),e.Q6J("routerLink","/challenges/"+t.uuid+"/details"),e.xp6(1),e.hij(" ",t.challengeTitle," "),e.xp6(2),e.Q6J("ngClass",e.kEZ(10,fe,"approved"===t.approvalStatus,"pending"===t.approvalStatus,"rejected"===t.approvalStatus)),e.xp6(1),e.hij(" ",e.lcZ(8,8,t.approvalStatus)," "),e.xp6(3),e.Q6J("ngIf",t.cfa&&(null==t.cfa?null:t.cfa.status))("ngIfElse",o),e.xp6(5),e.Q6J("ngIf",l.corporateBackdoorAccessEnabled&&(null==l.brandDetails.features?null:l.brandDetails.features.corporate_backdoor_login_enabled)&&t.cfa&&(null==t.cfa?null:t.cfa.status)),e.xp6(1),e.Q6J("routerLink","/challenges/"+t.uuid+"/details")}}function Ce(n,a){if(1&n&&(e.TgZ(0,"div",17)(1,"div",18)(2,"table",19)(3,"thead")(4,"tr",20)(5,"th",21),e._uU(6," Challenge Title "),e.qZA(),e.TgZ(7,"th",22),e._uU(8," Status "),e.qZA(),e.TgZ(9,"th",22),e._uU(10," Challenge Stats "),e.qZA(),e.TgZ(11,"th",23),e._uU(12," Actions "),e.qZA()()(),e.TgZ(13,"tbody",24),e.YNc(14,ve,20,14,"tr",25),e.qZA()()()()),2&n){const t=e.oxw();e.xp6(14),e.Q6J("ngForOf",t.challenges)}}function ye(n,a){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",45),e._UZ(2,"i",46),e.TgZ(3,"span",47),e._uU(4," No challenges posted "),e.qZA(),e.TgZ(5,"button",48),e.NdJ("click",function(){return e.CHM(t),e.oxw().handleAdd()}),e._uU(6," + Post Challenge "),e.qZA()(),e.BQk()}}let de=(()=>{class n{constructor(t,o,l,r,u,m,g,c){this.modalService=t,this.store=o,this.challengeService=l,this.publicApiService=r,this.toastAlertService=u,this.router=m,this.globalService=g,this.titleService=c,this.destroyed$=new A.x,this.challenges=[],this.originalChallenges=[],this.JobTypeLabels=ie.lt,this.statusOptions=[{label:"Active",value:"active"},{label:"Closed",value:"inactive"}],this.deactivatedOptions=[{label:"Closed",value:"inactive"},{label:"Re Activate",value:"active"}],this.openHiringModal=!1,this.industriesOptions=[],this.skillsOptions=[],this.challengeFiltersForm=new i.cw({industryId:new i.NI(""),skillIds:new i.NI(""),jobType:new i.NI("")}),this.loader=!1,this.skillsLoading=!1,this.skillsInput$=new A.x,this.corporateBackdoorAccessEnabled=!1}ngOnInit(){this.titleService.setTitle("Business Challenges @SanchiConnect"),this.loadSkills(),this.store.dispatch(new J.Bm({pageSize:50})),this.globalSettings$=this.store.pipe((0,x.Ys)(D.Tv)),this.getChallengesList$=this.store.pipe((0,x.Ys)(J.gL)),this.handleSubscriptions(),this.store.pipe((0,x.Ys)(D.a$)).pipe((0,_.x)()).subscribe(t=>{t&&(this.brandDetails=t,this.brandDetails.features.business_challenges||this.router.navigate(["/errors/404"]))})}loadSkills(){this.skills$=(0,V.z)((0,M.of)([]),this.skillsInput$.pipe((0,_.x)(),(0,F.h)(t=>null!==t),(0,H.b)(()=>this.skillsLoading=!0),(0,ee.w)(t=>this.globalService.searchSkills(t).pipe((0,te.K)(()=>(0,M.of)([])),(0,H.b)(()=>this.skillsLoading=!1)))))}trackByFn(t){return t.id}handleAdd(){this.router.navigate(["/challenges/create"])}handleSubscriptions(){this.store.pipe((0,x.Ys)(ne.ZU)).pipe((0,_.x)(),(0,w.R)(this.destroyed$)).subscribe(t=>{this.loader=t,console.log("jobsLoader",this.loader)}),this.getChallengesList$.pipe((0,_.x)(),(0,w.R)(this.destroyed$)).subscribe(t=>{t&&(console.log("chhhhh==>",t),this.challenges=JSON.parse(JSON.stringify([...t])),this.originalChallenges=JSON.parse(JSON.stringify([...this.challenges])))}),this.store.pipe((0,x.Ys)(W.VT)).pipe((0,_.x)(),(0,w.R)(this.destroyed$)).subscribe(t=>{t&&(this.startupInfo=t)}),this.globalSettings$.pipe((0,_.x)(),(0,w.R)(this.destroyed$)).subscribe(t=>{t&&(this.globalSettings=t)})}handleStatusChange(t,o){console.log({$event:t,job:o},this.challenges);const l=this.challenges.findIndex(r=>r.uuid===o.uuid);K().fire({title:"Change Status",text:"Are you sure you want to change status of this challenge?",icon:"question",showCancelButton:!0,confirmButtonColor:"var(--color-theme)",cancelButtonColor:"#7D8185",confirmButtonText:"Sure"}).then(r=>{r.isConfirmed?this.challengeService.updateChallenge(o.uuid,{challengeStatus:t}).subscribe():this.challenges[l].challengeStatus=this.originalChallenges[l].challengeStatus})}handleSearch(){const t={};Object.keys(this.challengeFiltersForm.value).forEach(o=>{this.challengeFiltersForm.value[o]&&(t[o]=this.challengeFiltersForm.value[o])}),this.store.dispatch(new J.Bm(Object.assign(Object.assign({},t),{pageSize:50})))}clearFilters(){this.challengeFiltersForm.reset(),this.handleSearch()}onElevation(t){this.challengeService.corporateBackdoorAccess(t).subscribe({next:o=>{(null==o?void 0:o.backdoorUrl)&&window.open(o.backdoorUrl,"_blank")},error:()=>{}})}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(f.FF),e.Y36(x.yh),e.Y36(P.P),e.Y36(se.I),e.Y36(me.j),e.Y36(j.F0),e.Y36(ue.U),e.Y36(ce.Dx))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-challenges"]],decls:17,vars:4,consts:[[1,"connections-page"],["id","kt_toolbar",1,"toolbar","toolbar","pt-10","shadow-sm","sticky-top"],["id","kt_toolbar_container",1,"container-xxl","d-flex","flex-stack","flex-column","flex-lg-row","flex-wrap","gap-2","align-items-center","align-items-lg-center"],[1,"page-title","d-flex","flex-column","align-items-start","me-3","gap-2"],[1,"d-flex","text-dark","fw-bolder","fs-1hx","text-dark","m-0"],["routerLink","/challenges/create",1,"btn","btn-theme","text-white","ls-2","text-uppercase","fw-boldest","btn-md","me-2"],[1,"d-flex","flex-column-fluid","align-items-start","container-xxl"],[1,"flex-row-fluid","bg-white","my-8","rounded","overflow-hidden"],[1,"row","flex-column","flex-md-row"],[1,"col-12","d-flex","flex-nowrap","flex-md-wrap","overflow-auto","no-scrollbar","ps-0","pe-0",2,"height","fit-content"],[1,"card-body","py-4","px-10"],["class","d-flex justify-content-center mt-10 mb-10",4,"ngIf"],["id","kt_t able_users_wrapper","class","dataTables_wrapper dt-bootstrap4 no-footer",4,"ngIf"],[4,"ngIf"],[1,"d-flex","justify-content-center","mt-10","mb-10"],[1,"indicator-progress"],[1,"spinner-border","spinner-border-lg","align-middle","ms-2"],["id","kt_t able_users_wrapper",1,"dataTables_wrapper","dt-bootstrap4","no-footer"],[1,"table-responsive"],["id","kt_table_users",1,"table","align-middle","table-row-dashed","gy-5","dataTable","no-footer"],[1,"fw-bolder","fs-3","gs-0"],["tabindex","0","aria-controls","kt_table_users","rowspan","1","colspan","1",1,"min-w-125px","sorting","ps-2"],["tabindex","0","aria-controls","kt_table_users","rowspan","1","colspan","1",1,"min-w-125px","sorting","text-center",2,"width","250px"],["rowspan","1","colspan","1","aria-label","Actions",1,"min-w-100px","sorting_disabled","text-center",2,"width","170px"],[1,"fw-bold"],["class","even",4,"ngFor","ngForOf"],[1,"even"],[1,"align-items-center"],[1,"d-flex","flex-column"],[1,"mb-1","fw-bolder","fs-4","cursor-pointer",3,"routerLink"],[1,"text-center"],[3,"ngClass"],[4,"ngIf","ngIfElse"],["noData",""],[1,"text-end",2,"width","170px"],[1,"d-flex","justify-content-end","gap-2"],[3,"click",4,"ngIf"],[3,"routerLink"],[1,"btn","btn-secondary","btn-sm",2,"min-width","100px"],[1,"bi","bi-eye-fill"],[1,"status-box","text-start","d-inline-block"],[1,"fw-boldest"],[1,"text-muted","fst-italic"],[3,"click"],[1,"btn","btn-secondary","btn-sm",2,"min-width","166px"],[1,"row","flex-column","justify-content-center","align-items-center","w-100","my-10p"],[1,"bi","bi-exclamation-circle",2,"font-size","120px","width","fit-content"],[1,"fs-4","text-center","my-4","fw-bold"],["routerLink","/challenges/create",1,"btn","btn-theme","text-white","ls-2","text-uppercase","fw-boldest","btn-md","mt-4","w-auto",3,"click"]],template:function(t,o){1&t&&(e._UZ(0,"ngx-ui-loader"),e.TgZ(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"h1",4),e._uU(6),e.qZA()(),e.TgZ(7,"button",5),e._uU(8," + Post Challenge "),e.qZA()()(),e.TgZ(9,"div",6)(10,"div",7)(11,"div",8)(12,"div",9)(13,"div",10),e.YNc(14,he,3,2,"div",11),e.YNc(15,Ce,15,1,"div",12),e.qZA(),e.YNc(16,ye,7,0,"ng-container",13),e.qZA()()()()()),2&t&&(e.xp6(6),e.hij(" ",(null==o.brandDetails||null==o.brandDetails.features?null:o.brandDetails.features.business_challenges_title)||"Open Innovation"," "),e.xp6(8),e.Q6J("ngIf",o.loader),e.xp6(1),e.Q6J("ngIf",(null==o.challenges?null:o.challenges.length)>0&&!o.loader),e.xp6(1),e.Q6J("ngIf",!o.challenges.length))},directives:[le.Eo,j.rH,p.O5,p.sg,p.mk],pipes:[p.rS],styles:[""]}),n})();var Te=s(84361),ae=s(66713),Ze=s(38375),Fe=s(44466),we=s(32313),Ie=s(62037),Ae=s(48851),je=s(61102),Ne=s(63786),ge=s.n(Ne),Ue=s(80807),Se=s(68279),qe=s(23132);function Le(n,a){if(1&n&&(e.TgZ(0,"div",2),e._UZ(1,"img",12),e.ALo(2,"imagekitUrlAppender"),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("src",e.lcZ(2,1,t.isColleChallenges.headerImage),e.LSH)}}function ke(n,a){if(1&n&&(e._UZ(0,"img",13),e.ALo(1,"imagekitUrlAppender")),2&n){const t=e.oxw(2);e.Q6J("src",e.lcZ(1,1,t.isColleChallenges.logo)+"?tr=w-120,h-120,cm-pad_resize",e.LSH)}}function Ee(n,a){1&n&&e._UZ(0,"img",14)}function Je(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"a",15),e.NdJ("click",function(){e.CHM(t);const l=e.oxw(2);return l.onWebsiteRedirect(l.isColleChallenges.websiteURL)}),e._uU(1," Visit website \u2192 "),e.qZA()}}function Re(n,a){if(1&n&&(e.TgZ(0,"div"),e.YNc(1,Le,3,3,"div",1),e.TgZ(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),e.YNc(6,ke,2,3,"img",6),e.YNc(7,Ee,1,0,"ng-template",null,7,e.W1O),e.TgZ(9,"div")(10,"h2",8),e._uU(11),e.qZA(),e.YNc(12,Je,2,0,"a",9),e.qZA()()(),e.TgZ(13,"div",10),e._UZ(14,"div",11),e.qZA()()()()),2&n){const t=e.MAs(8),o=e.oxw();e.xp6(1),e.Q6J("ngIf",o.isColleChallenges&&o.isColleChallenges.headerImage),e.xp6(5),e.Q6J("ngIf",null==o.isColleChallenges?null:o.isColleChallenges.logo)("ngIfElse",t),e.xp6(5),e.hij(" ",null==o.isColleChallenges?null:o.isColleChallenges.name," "),e.xp6(1),e.Q6J("ngIf",null==o.isColleChallenges?null:o.isColleChallenges.websiteURL),e.xp6(2),e.Q6J("innerHTML",null==o.isColleChallenges?null:o.isColleChallenges.description,e.oJD)}}let Me=(()=>{class n{constructor(t,o,l){this.route=t,this.challengeService=o,this.router=l}ngOnInit(){this.route.queryParams.subscribe(t=>
1{t.collection&&this.getCollectionDetails(t.collection)})}getCollectionDetails(t){this.challengeService.getPublicColleChallenges(t).subscribe(o=>{this.isColleChallenges=o,this.isColleChallenges&&0==this.isColleChallenges.status&&this.router.navigate(["/errors/404"])})}onWebsiteRedirect(t){t&&window.open(t,"_blank")}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(j.gz),e.Y36(P.P),e.Y36(j.F0))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-collection-by-id"]],decls:1,vars:1,consts:[[4,"ngIf"],["class","container-xxl mt-5 px-5",4,"ngIf"],[1,"container-xxl","mt-5","px-5"],[1,"card","position-relative","shadow-sm","pt-8","px-5"],[1,"d-flex","flex-column","flex-md-row","justify-content-between","align-items-start","gap-6","pb-5"],[1,"d-flex","align-items-start"],["class","img-thumbnail shadow-sm me-4","style","max-width:100px",3,"src",4,"ngIf","ngIfElse"],["noImage",""],[1,"fs-2hx","text-primary","mb-1"],["class","fs-6 fw-semibold text-primary text-hover-underline",3,"click",4,"ngIf"],[1,"mb-8"],[1,"fs-5","text-gray-600","px-5",3,"innerHTML"],[1,"rounded","w-100",3,"src"],[1,"img-thumbnail","shadow-sm","me-4",2,"max-width","100px",3,"src"],["src","assets/images/no-image.svg",1,"h-80px","w-80px","rounded","me-4"],[1,"fs-6","fw-semibold","text-primary","text-hover-underline",3,"click"]],template:function(t,o){1&t&&e.YNc(0,Re,15,6,"div",0),2&t&&e.Q6J("ngIf",o.isColleChallenges&&(null==o.isColleChallenges?null:o.isColleChallenges.status))},directives:[p.O5],pipes:[qe.X],styles:[""]}),n})();var De=s(6506),pe=s(96888);function Pe(n,a){1&n&&(e.TgZ(0,"div",4)(1,"div",5)(2,"a",6),e._UZ(3,"app-logo-renderer",7),e.qZA()()())}function Qe(n,a){if(1&n&&(e.TgZ(0,"div",11)(1,"div",12)(2,"div",13)(3,"h1",14),e._uU(4),e.qZA()()()()),2&n){const t=e.oxw(2);e.xp6(4),e.hij(" ",t.editedJobId?"Edit Challenge":"Create New Challenge"," ")}}function Ye(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"div",15)(1,"div",16)(2,"div",17)(3,"div",18)(4,"div",19),e.NdJ("click",function(){return e.CHM(t),e.oxw(2).goBack()}),e.O4$(),e.TgZ(5,"svg",20),e._UZ(6,"path",21)(7,"path",22),e.qZA(),e.kcU(),e.TgZ(8,"h1",23),e._uU(9," Create Challenge "),e.qZA()()()()()()}2&n&&(e.xp6(4),e.Q6J("ngbTooltip","Go back to Challenges"))}function Be(n,a){1&n&&e._UZ(0,"app-collection-by-id")}function Oe(n,a){1&n&&(e.TgZ(0,"div")(1,"h4",77),e._uU(2,"Fill in the details below to create challenge."),e.qZA(),e.TgZ(3,"div")(4,"ul",78)(5,"li",79)(6,"span"),e._uU(7," Clearly define the challenge and its impact on business operations."),e.qZA()(),e.TgZ(8,"li",79)(9,"span"),e._uU(10,"Identify specific goals and desired outcomes for addressing the challenge."),e.qZA()(),e.TgZ(11,"li",80)(12,"span"),e._uU(13,"Consider potential constraints, resources, and timelines for solution implementation."),e.qZA()()()()())}function ze(n,a){1&n&&(e.TgZ(0,"span",81),e._uU(1," Challenge title is required "),e.qZA())}function Ge(n,a){if(1&n&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&n){const t=a.item;e.xp6(1),e.hij(" ",t.label," ")}}function $e(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"div",30)(1,"label",82),e._uU(2," Industries Domain "),e._UZ(3,"span",40),e.qZA(),e.TgZ(4,"div",32)(5,"ng-select",83),e.NdJ("change",function(l){return e.CHM(t),e.oxw(3).onIndustrySelect(l)}),e.YNc(6,Ge,2,1,"ng-template",84),e.qZA()()()}if(2&n){const t=e.oxw(3);e.xp6(3),e.Q6J("ngbTooltip","Select the industries relevant to this challenge (maximum 3 allowed)"),e.xp6(2),e.Q6J("items",t.industries)("multiple",!0)("searchable",!0)("clearable",!0)}}function Ve(n,a){1&n&&(e.TgZ(0,"span",81),e._uU(1," This field is required "),e.qZA())}function He(n,a){1&n&&(e.TgZ(0,"span",81),e._uU(1," This field is required "),e.qZA())}function We(n,a){1&n&&(e.TgZ(0,"span",81),e._uU(1," This field is required "),e.qZA())}function Ke(n,a){1&n&&(e.TgZ(0,"span",81),e._uU(1," This field is required "),e.qZA())}function Xe(n,a){1&n&&(e.TgZ(0,"span",81),e._uU(1," This field is required "),e.qZA())}function et(n,a){1&n&&(e.TgZ(0,"span",81),e._uU(1," This field is required "),e.qZA())}function tt(n,a){1&n&&(e.TgZ(0,"span",81),e._uU(1," This field is required "),e.qZA())}function nt(n,a){1&n&&(e.TgZ(0,"span",81),e._uU(1," This field is required "),e.qZA())}function ot(n,a){if(1&n&&e._UZ(0,"img",107),2&n){const t=e.oxw(4);e.Q6J("src",t.logoPreview,e.LSH)}}function it(n,a){1&n&&(e.TgZ(0,"div",108),e._uU(1," Click to upload logo "),e.qZA())}function lt(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"button",109),e.NdJ("click",function(l){e.CHM(t),e.oxw();const r=e.MAs(15);return e.oxw(3).removeLogo(r),l.stopPropagation()}),e._UZ(1,"i",110),e.qZA()}}function at(n,a){1&n&&(e.TgZ(0,"div",111)(1,"small"),e._uU(2,"Logo is required. Only PNG, JPG, JPEG allowed. Maximum size 512KB."),e.qZA()())}function rt(n,a){1&n&&(e.TgZ(0,"span",81),e._uU(1," Corporate name is required "),e.qZA())}function st(n,a){1&n&&(e.TgZ(0,"span",81),e._uU(1," Country is required "),e.qZA())}function mt(n,a){1&n&&(e.TgZ(0,"span",81),e._uU(1," This field is required "),e.qZA())}const ut=function(n){return{"is-invalid":n}},h=function(n,a){return{"is-invalid":n,"is-valid":a}},I=function(){return{height:"200px","min-height":"200px",padding:"7px"}};function ct(n,a){if(1&n){const t=e.EpF();
1e.TgZ(0,"div",58)(1,"div",42),e._UZ(2,"span",43),e.TgZ(3,"h1",44),e._uU(4,"Corporate Information"),e.qZA()(),e.TgZ(5,"div",31)(6,"div",85)(7,"label",86),e._uU(8," Company Logo "),e.TgZ(9,"span",34),e._uU(10,"*"),e.qZA()(),e.TgZ(11,"div",87),e.NdJ("click",function(){return e.CHM(t),e.MAs(15).click()}),e.YNc(12,ot,1,1,"img",88),e.YNc(13,it,2,0,"div",89),e.TgZ(14,"input",90,91),e.NdJ("change",function(l){return e.CHM(t),e.oxw(3).handleAvatarSelect(l)}),e.qZA(),e.YNc(16,lt,2,0,"button",92),e.qZA(),e.YNc(17,at,3,0,"div",93),e.TgZ(18,"div",94)(19,"small",95),e._uU(20," Allowed file types: png, jpg, jpeg. Max size: 512kb. "),e.qZA()()(),e.TgZ(21,"div",96)(22,"div",31)(23,"div",97)(24,"label",98),e._uU(25,"Corporate Name "),e.TgZ(26,"span",34),e._uU(27,"*"),e.qZA()(),e._UZ(28,"input",99),e.YNc(29,rt,2,0,"span",36),e.qZA(),e.TgZ(30,"div",97)(31,"label",98),e._uU(32,"Company Size "),e.TgZ(33,"span",34),e._uU(34,"*"),e.qZA()(),e._UZ(35,"input",100),e.qZA()()()(),e.TgZ(36,"div",31)(37,"div",101)(38,"label",98),e._uU(39," Registered Country "),e.TgZ(40,"span",34),e._uU(41,"*"),e.qZA()(),e._UZ(42,"ng-select",102),e.YNc(43,st,2,0,"span",36),e.qZA(),e.TgZ(44,"div",101)(45,"label",98),e._uU(46," Registered State "),e.qZA(),e._UZ(47,"ng-select",103),e.qZA(),e.TgZ(48,"div",101)(49,"label",98),e._uU(50," Registered City "),e.qZA(),e._UZ(51,"ng-select",104),e.qZA()(),e.TgZ(52,"div",38)(53,"label",105),e._uU(54," Company Brief "),e.TgZ(55,"span",34),e._uU(56,"*"),e.qZA(),e._UZ(57,"span",40),e.qZA(),e.TgZ(58,"div",32),e._UZ(59,"quill-editor",106),e.YNc(60,mt,2,0,"span",36),e.qZA()()()}if(2&n){const t=e.oxw(3);let o,l,r,u,m,g;e.xp6(11),e.Q6J("ngClass",e.VKq(23,ut,(null==t.logoControl?null:t.logoControl.invalid)&&((null==t.logoControl?null:t.logoControl.touched)||(null==t.logoControl?null:t.logoControl.dirty)))),e.xp6(1),e.Q6J("ngIf",t.logoPreview),e.xp6(1),e.Q6J("ngIf",!t.logoPreview),e.xp6(3),e.Q6J("ngIf",t.logoPreview),e.xp6(1),e.Q6J("ngIf",(null==t.logoControl?null:t.logoControl.invalid)&&((null==t.logoControl?null:t.logoControl.touched)||(null==t.logoControl?null:t.logoControl.dirty))),e.xp6(11),e.Q6J("ngClass",e.WLB(25,h,!(null!=(o=t.jobForm.get("corporateName"))&&o.valid)&&((null==(o=t.jobForm.get("corporateName"))?null:o.touched)||(null==(o=t.jobForm.get("corporateName"))?null:o.dirty)),(null==(o=t.jobForm.get("corporateName"))?null:o.value)&&(null==(o=t.jobForm.get("corporateName"))?null:o.valid))),e.xp6(1),e.Q6J("ngIf",(null==(l=t.jobForm.get("corporateName"))?null:l.hasError("required"))&&((null==(l=t.jobForm.get("corporateName"))?null:l.touched)||(null==(l=t.jobForm.get("corporateName"))?null:l.dirty))),e.xp6(13),e.Q6J("items",t.countries)("searchable",!0)("clearable",!1)("ngClass",e.WLB(28,h,!t.jobForm.get("corporateRegisteredCountry").valid&&((null==(r=t.jobForm.get("corporateRegisteredCountry"))?null:r.touched)||(null==(r=t.jobForm.get("corporateRegisteredCountry"))?null:r.dirty)),t.jobForm.get("corporateRegisteredCountry").value&&t.jobForm.get("corporateRegisteredCountry").valid&&((null==(r=t.jobForm.get("corporateRegisteredCountry"))?null:r.touched)||(null==(r=t.jobForm.get("corporateRegisteredCountry"))?null:r.dirty)))),e.xp6(1),e.Q6J("ngIf",(null==(u=t.jobForm.get("corporateRegisteredCountry"))?null:u.hasError("required"))&&((null==(u=t.jobForm.get("corporateRegisteredCountry"))?null:u.touched)||(null==(u=t.jobForm.get("corporateRegisteredCountry"))?null:u.dirty))),e.xp6(4),e.Q6J("items",t.states)("searchable",!0)("clearable",!1),e.xp6(4),e.Q6J("items",t.cities)("searchable",!0)("clearable",!1),e.xp6(6),e.Q6J("ngbTooltip","Write a short description to introduce the company."),e.xp6(2),e.Q6J("modules",t.quillModules)("styles",e.DdM(31,I))("ngClass",e.WLB(32,h,!t.jobForm.get("companyIntroduction").valid&&((null==(m=t.jobForm.get("companyIntroduction"))?null:m.touched)||(null==(m=t.jobForm.get("companyIntroduction"))?null:m.dirty)),t.jobForm.get("companyIntroduction").value&&t.jobForm.get("companyIntroduction").valid&&((null==(m=t.jobForm.get("companyIntroduction"))?null:m.touched)||(null==(m=t.jobForm.get("companyIntroduction"))?null:m.dirty)))),e.xp6(1),e.Q6J("ngIf",(null==(g=t.jobForm.get("companyIntroduction"))?null:g.hasError("required"))&&((null==(g=t.jobForm.get("companyIntroduction"))?null:g.touched)||(null==(g=t.jobForm.get("companyIntroduction"))?null:g.dirty)))}}function dt(n,a){1&n&&(e.TgZ(0,"span",81),e._uU(1," This field is required "),e.qZA())}function gt(n,a){1&n&&(e.TgZ(0,"span",81),e._uU(1," This field is required "),e.qZA())}function pt(n,a){1&n&&(e.TgZ(0,"span",81),e._uU(1," This field is required "),e.qZA())}function ht(n,a){1&n&&(e.TgZ(0,"span",81),e._uU(1," Please enter a valid email "),e.qZA())}function bt(n,a){if(1&n&&(e.TgZ(0,"option",112),e._uU(1),e.qZA()),2&n){const t=a.$implicit;e.Q6J("value",t.value),e.xp6(1),e.AsE("",t.name," +",t.value,"")}}function xt(n,a){1&n&&(e.TgZ(0,"span",81),e._uU(1," This field is required "),e.qZA())}function _t(n,a){1&n&&(e.TgZ(0,"span",81),e._uU(1," Please enter a valid number "),e.qZA())}function ft(n,a){1&n&&(e.TgZ(0,"div",113),e._UZ(1,"input",114),e.TgZ(2,"label",115),e._uU(3," I hereby confirm my intent to create a corporate profile. "),e.TgZ(4,"span",34),e._uU(5,"*"),e.qZA()()()),2&n&&(e.xp6(2),e.Q6J("ngbTooltip","You must select this option to proceed and create a corporate profile."))}function vt(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"div",116)(1,"div",117)(2,"button",118),e.NdJ("click",function(){return e.CHM(t),e.oxw(3).submitChallenge(
1)}),e.TgZ(3,"span",119),e._uU(4,"Save"),e.qZA(),e.TgZ(5,"span",120),e._uU(6,"Please wait..."),e._UZ(7,"span",121),e.qZA()()()()}if(2&n){const t=e.oxw(3);e.xp6(2),e.Q6J("disabled",t.jobForm.invalid)}}function Ct(n,a){if(1&n&&(e.TgZ(0,"div",24)(1,"div",25)(2,"div",26)(3,"div",27),e.YNc(4,Oe,14,0,"div",2),e._UZ(5,"div",28),e.TgZ(6,"form",29)(7,"div",30)(8,"div",31)(9,"div")(10,"div",32)(11,"label",33),e._uU(12," Challenge Title "),e.TgZ(13,"span",34),e._uU(14,"*"),e.qZA()(),e._UZ(15,"input",35),e.YNc(16,ze,2,0,"span",36),e.qZA()()()(),e.YNc(17,$e,7,5,"div",37),e.TgZ(18,"div",38)(19,"label",39),e._uU(20," Challenge Description "),e.TgZ(21,"span",34),e._uU(22,"*"),e.qZA(),e._UZ(23,"span",40),e.qZA(),e.TgZ(24,"div",32),e._UZ(25,"quill-editor",41),e.YNc(26,Ve,2,0,"span",36),e.qZA()(),e.TgZ(27,"div",31)(28,"div",42),e._UZ(29,"span",43),e.TgZ(30,"h1",44),e._uU(31," Brief Challenge Detail "),e.qZA()(),e.TgZ(32,"div",38)(33,"label",39),e._uU(34," Business Unit Alignment "),e.TgZ(35,"span",34),e._uU(36,"*"),e.qZA(),e._UZ(37,"span",40),e.qZA(),e.TgZ(38,"div",32),e._UZ(39,"quill-editor",45),e.YNc(40,He,2,0,"span",36),e.qZA()(),e.TgZ(41,"div",38)(42,"label",39),e._uU(43," Existing Scenerio/ Use Case "),e.TgZ(44,"span",34),e._uU(45,"*"),e.qZA(),e._UZ(46,"span",40),e.qZA(),e.TgZ(47,"div",32),e._UZ(48,"quill-editor",46),e.YNc(49,We,2,0,"span",36),e.qZA()(),e.TgZ(50,"div",38)(51,"label",47),e._uU(52," Business Goal "),e.TgZ(53,"span",34),e._uU(54,"*"),e.qZA(),e._UZ(55,"span",40),e.qZA(),e.TgZ(56,"div",32),e._UZ(57,"quill-editor",48),e.YNc(58,Ke,2,0,"span",36),e.qZA()(),e.TgZ(59,"div",38)(60,"label",49),e._uU(61," Success Metrics "),e.TgZ(62,"span",34),e._uU(63,"*"),e.qZA(),e._UZ(64,"span",40),e.qZA(),e.TgZ(65,"div",32),e._UZ(66,"quill-editor",50),e.YNc(67,Xe,2,0,"span",36),e.qZA()(),e.TgZ(68,"div",38)(69,"label",51),e._uU(70," Ethical Issues "),e.TgZ(71,"span",34),e._uU(72,"*"),e.qZA(),e._UZ(73,"span",40),e.qZA(),e.TgZ(74,"div",32),e._UZ(75,"quill-editor",52),e.YNc(76,et,2,0,"span",36),e.qZA()(),e.TgZ(77,"div",38)(78,"label",53),e._uU(79," Resource Limitations "),e.TgZ(80,"span",34),e._uU(81,"*"),e.qZA(),e._UZ(82,"span",40),e.qZA(),e.TgZ(83,"div",32),e._UZ(84,"quill-editor",54),e.YNc(85,tt,2,0,"span",36),e.qZA()(),e.TgZ(86,"div",38)(87,"label",55),e._uU(88," Valid assumptions while designing possible solution "),e.TgZ(89,"span",34),e._uU(90,"*"),e.qZA(),e._UZ(91,"span",40),e.qZA(),e.TgZ(92,"div",32),e._UZ(93,"quill-editor",56),e.YNc(94,nt,2,0,"span",36),e.qZA()()(),e.TgZ(95,"div",31),e.YNc(96,ct,61,35,"div",57),e.qZA(),e.TgZ(97,"div",31)(98,"div",58)(99,"div",42),e._UZ(100,"span",43),e.TgZ(101,"h1",44),e._uU(102," Point of contact "),e.qZA()(),e.TgZ(103,"div",31)(104,"div",59)(105,"label",60),e._uU(106," Name "),e.TgZ(107,"span",34),e._uU(108,"*"),e.qZA()(),e._UZ(109,"input",61),e.YNc(110,dt,2,0,"span",36),e.qZA(),e.TgZ(111,"div",59)(112,"label",62),e._uU(113," Designation "),e.TgZ(114,"span",34),e._uU(115,"*"),e.qZA()(),e._UZ(116,"input",63),e.YNc(117,gt,2,0,"span",36),e.qZA()(),e.TgZ(118,"div",31)(119,"div",64)(120,"label",65),e._uU(121," Email "),e.TgZ(122,"span",34),e._uU(123,"*"),e.qZA()(),e._UZ(124,"input",66),e.YNc(125,pt,2,0,"span",36),e.YNc(126,ht,2,0,"span",36),e.qZA(),e.TgZ(127,"div",64)(128,"label",67),e._uU(129," Mobile Number "),e.TgZ(130,"span",34),e._uU(131,"*"),e.qZA()(),e.TgZ(132,"div",68)(133,"div",69)(134,"select",70),e.YNc(135,bt,2,3,"option",71),e.qZA()(),e.TgZ(136,"div",72),e._UZ(137,"input",73),e.YNc(138,xt,2,0,"span",36),e.YNc(139,_t,2,0,"span",36),e.qZA()()(),e.TgZ(140,"div",74),e.YNc(141,ft,6,1,"div",75),e.qZA()()()(),e.YNc(142,vt,8,1,"div",76),e.qZA()()()()()),2&n){const t=e.oxw(2);let o,l,r,u,m,g,c,v,d,b,C,N,y,U,T,S,Z,Q,q,Y,L,B,k,O,z,E,G,$;e.xp6(4),e.Q6J("ngIf",t.isPublicRoute()),e.xp6(2),e.Q6J("formGroup",t.jobForm),e.xp6(9),e.Q6J("ngClass",e.WLB(59,h,!t.jobForm.get("challengeTitle").valid&&((null==(o=t.jobForm.get("challengeTitle"))?null:o.touched)||(null==(o=t.jobForm.get("challengeTitle"))?null:o.dirty)),t.jobForm.get("challengeTitle").value&&t.jobForm.get("challengeTitle").valid&&((null==(o=t.jobForm.get("challengeTitle"))?null:o.touched)||(null==(o=t.jobForm.get("challengeTitle"))?null:o.dirty)))),e.xp6(1),e.Q6J("ngIf",(null==(l=t.jobForm.get("challengeTitle"))?null:l.hasError("required"))&&((null==(l=t.jobForm.get("challengeTitle"))?null:l.touched)||(null==(l=t.jobForm.get("challengeTitle"))?null:l.dirty))),e.xp6(1),e.Q6J("ngIf",t.isPublicRoute()),e.xp6(6),e.Q6J("ngbTooltip","Enter a short summary of the challenge to provide an overview for potential solution providers."),e.xp6(2),e.Q6J("modules",t.quillModules)("styles",e.DdM(62,I))("ngClass",e.WLB(63,h,!t.jobForm.get("challengeDescription").valid&&((null==(r=t.jobForm.get("challengeDescription"))?null:r.touched)||(null==(r=t.jobForm.get("challengeDescription"))?null:r.dirty)),t.jobForm.get("challengeDescription").value&&t.jobForm.get("challengeDescription").valid&&((null==(r=t.jobForm.get("challengeDescription"))?null:r.touched)||(null==(r=t.jobForm.get("challengeDescription"))?null:r.dirty)))),e.xp6(1),e.Q6J("ngIf",(null==(u=t.jobForm.get("challengeDescription"))?null:u.hasError("required"))&&((null==(u=t.jobForm.get("challengeDescription"))?null:u.touched)||(null==(u=t.jobForm.get("challengeDescription"))?null:u.dirty))),e.xp6(11),e.Q6J("ngbTooltip","Mention the business unit involved in sharing this use case"),e.xp6(2),e.Q6J("modules",t.quillModules)("styles",e.DdM(66,I))("ngClass",e.WLB(67,h,!t.jobForm.get("businessUnit").valid&&((null==(m=t.jobForm.get("businessUnit"))?null:m.touched)||(null==(m=t.jobForm.get("businessUnit"))?null:m.dirty)),t.jobForm.get("businessUnit").value&&t.jobForm.get("businessUnit").valid&&((null==(m=t.jobForm.get("businessUnit"))?null:m.touched)||(null==(m=t.jobForm.get("businessUnit"))?null:m.dirty)))),e.xp6(1),e.Q6J("ngIf",(null==(g=t.jobForm.get("businessUnit"))?null:g.hasError("required"))&&((null==(g=t.jobForm.get("businessUnit"))?null:g.touched)||(null==(g=t.jobForm.get("businessUnit"))?null:g.dirty))),e.xp6(6),e.Q6J("ngbTooltip","Talk about the existing process/flow/scenerio which exist and where you find gap or you see an possibility to improve"),e.xp6(2),e.Q6J("modules",t.quillModules)("styles",e.DdM(70,I))("ngClass",e.WLB(71,h,!t.jobForm.get("useCase").valid&&((null==(c=t.jobForm.get("useCase"))?null:c.touched)||(null==(c=t.jobForm.get("useCase"))?null:c.dirty)),t.jobForm.get("useCase").value&&t.jobForm.get("useCase").valid&&((null==(c=t.jobForm.get("useCase"))?null:c.touched)||(null==(c=t.jobForm.get("useCase"))?null:c.dirty)))),e.xp6(1),e.Q6J("ngIf",(null==(v=t.jobForm.get("useCase"))?null:v.hasError("required"))&&((null==(v=t.jobForm.get("useCase"))?null:v.touched)||(null==(v=t.jobForm.get("useCase"))?null:v.dirty))),e.xp6(6),e.Q6J("ngbTooltip","What is the ideal case or position you want to get to by getting this resolved"),e.xp6(2),e.Q6J("modules",t.quillModules)("styles",e.DdM(74,I))("ngClass",e.WLB(75,h,!t.jobForm.get("businessGoal").valid&&((null==(d=t.jobForm.get("businessGoal"))?null:d.touched)||(null==(d=t.jobForm.get("businessGoal"))?null:d.dirty)),t.jobForm.get("businessGoal").value&&t.jobForm.get("businessGoal").valid&&((null==(d=t.jobForm.get("businessGoal"))?null:d.touched)||(null==(d=t.jobForm.get("businessGoal"))?null:d.dirty)))),e.xp6(1),e.Q6J("ngIf",(null==(b=t.
1jobForm.get("businessGoal"))?null:b.hasError("required"))&&((null==(b=t.jobForm.get("businessGoal"))?null:b.touched)||(null==(b=t.jobForm.get("businessGoal"))?null:b.dirty))),e.xp6(6),e.Q6J("ngbTooltip","Any solution/impact will be measured on what parameters and in what duration?"),e.xp6(2),e.Q6J("modules",t.quillModules)("styles",e.DdM(78,I))("ngClass",e.WLB(79,h,!t.jobForm.get("successMeasurePlan").valid&&((null==(C=t.jobForm.get("successMeasurePlan"))?null:C.touched)||(null==(C=t.jobForm.get("successMeasurePlan"))?null:C.dirty)),t.jobForm.get("successMeasurePlan").value&&t.jobForm.get("successMeasurePlan").valid&&((null==(C=t.jobForm.get("successMeasurePlan"))?null:C.touched)||(null==(C=t.jobForm.get("successMeasurePlan"))?null:C.dirty)))),e.xp6(1),e.Q6J("ngIf",(null==(N=t.jobForm.get("successMeasurePlan"))?null:N.hasError("required"))&&((null==(N=t.jobForm.get("successMeasurePlan"))?null:N.touched)||(null==(N=t.jobForm.get("successMeasurePlan"))?null:N.dirty))),e.xp6(6),e.Q6J("ngbTooltip","Internal to your organization, any privacy or ethical norm that you think the startup or solution provider should be aware of to achieve the intended results."),e.xp6(2),e.Q6J("modules",t.quillModules)("styles",e.DdM(82,I))("ngClass",e.WLB(83,h,!t.jobForm.get("ethicalIssues").valid&&((null==(y=t.jobForm.get("ethicalIssues"))?null:y.touched)||(null==(y=t.jobForm.get("ethicalIssues"))?null:y.dirty)),t.jobForm.get("ethicalIssues").value&&t.jobForm.get("ethicalIssues").valid&&((null==(y=t.jobForm.get("ethicalIssues"))?null:y.touched)||(null==(y=t.jobForm.get("ethicalIssues"))?null:y.dirty)))),e.xp6(1),e.Q6J("ngIf",(null==(U=t.jobForm.get("ethicalIssues"))?null:U.hasError("required"))&&((null==(U=t.jobForm.get("ethicalIssues"))?null:U.touched)||(null==(U=t.jobForm.get("ethicalIssues"))?null:U.dirty))),e.xp6(6),e.Q6J("ngbTooltip","Internal to the organization, do you see some limitations or constraints solution provider should be aware of related to tech, resource, access, infra or anything else."),e.xp6(2),e.Q6J("modules",t.quillModules)("styles",e.DdM(86,I))("ngClass",e.WLB(87,h,!t.jobForm.get("resourceLimitation").valid&&((null==(T=t.jobForm.get("resourceLimitation"))?null:T.touched)||(null==(T=t.jobForm.get("resourceLimitation"))?null:T.dirty)),t.jobForm.get("resourceLimitation").value&&t.jobForm.get("resourceLimitation").valid&&((null==(T=t.jobForm.get("resourceLimitation"))?null:T.touched)||(null==(T=t.jobForm.get("resourceLimitation"))?null:T.dirty)))),e.xp6(1),e.Q6J("ngIf",(null==(S=t.jobForm.get("resourceLimitation"))?null:S.hasError("required"))&&((null==(S=t.jobForm.get("resourceLimitation"))?null:S.touched)||(null==(S=t.jobForm.get("resourceLimitation"))?null:S.dirty))),e.xp6(6),e.Q6J("ngbTooltip","To work on what are the base assumptions that can be taken in your opinion."),e.xp6(2),e.Q6J("modules",t.quillModules)("styles",e.DdM(90,I))("ngClass",e.WLB(91,h,!t.jobForm.get("validAssumptions").valid&&((null==(Z=t.jobForm.get("validAssumptions"))?null:Z.touched)||(null==(Z=t.jobForm.get("validAssumptions"))?null:Z.dirty)),t.jobForm.get("validAssumptions").value&&t.jobForm.get("validAssumptions").valid&&((null==(Z=t.jobForm.get("validAssumptions"))?null:Z.touched)||(null==(Z=t.jobForm.get("validAssumptions"))?null:Z.dirty)))),e.xp6(1),e.Q6J("ngIf",(null==(Q=t.jobForm.get("validAssumptions"))?null:Q.hasError("required"))&&((null==(Q=t.jobForm.get("validAssumptions"))?null:Q.touched)||(null==(Q=t.jobForm.get("validAssumptions"))?null:Q.dirty))),e.xp6(2),e.Q6J("ngIf",t.isPublicRoute()),e.xp6(13),e.Q6J("ngClass",e.WLB(94,h,!t.jobForm.get("ownerName").valid&&((null==(q=t.jobForm.get("ownerName"))?null:q.touched)||(null==(q=t.jobForm.get("ownerName"))?null:q.dirty)),t.jobForm.get("ownerName").value&&t.jobForm.get("ownerName").valid&&((null==(q=t.jobForm.get("ownerName"))?null:q.touched)||(null==(q=t.jobForm.get("ownerName"))?null:q.dirty)))),e.xp6(1),e.Q6J("ngIf",(null==(Y=t.jobForm.get("ownerName"))?null:Y.hasError("required"))&&((null==(Y=t.jobForm.get("ownerName"))?null:Y.touched)||(null==(Y=t.jobForm.get("ownerName"))?null:Y.dirty))),e.xp6(6),e.Q6J("ngClass",e.WLB(97,h,!t.jobForm.get("ownerDesignation").valid&&((null==(L=t.jobForm.get("ownerDesignation"))?null:L.touched)||(null==(L=t.jobForm.get("ownerDesignation"))?null:L.dirty)),t.jobForm.get("ownerDesignation").value&&t.jobForm.get("ownerDesignation").valid&&((null==(L=t.jobForm.get("ownerDesignation"))?null:L.touched)||(null==(L=t.jobForm.get("ownerDesignation"))?null:L.dirty)))),e.xp6(1),e.Q6J("ngIf",(null==(B=t.jobForm.get("ownerDesignation"))?null:B.hasError("required"))&&((null==(B=t.jobForm.get("ownerDesignation"))?null:B.touched)||(null==(B=t.jobForm.get("ownerDesignation"))?null:B.dirty))),e.xp6(7),e.Q6J("ngClass",e.WLB(100,h,!t.jobForm.get("ownerEmail").valid&&((null==(k=t.jobForm.get("ownerEmail"))?null:k.touched)||(null==(k=t.jobForm.get("ownerEmail"))?null:k.dirty)),t.jobForm.get("ownerEmail").value&&t.jobForm.get("ownerEmail").valid&&((null==(k=t.jobForm.get("ownerEmail"))?null:k.touched)||(null==(k=t.jobForm.get("ownerEmail"))?null:k.dirty)))),e.xp6(1),e.Q6J("ngIf",(null==(O=t.jobForm.get("ownerEmail"))?null:O.hasError("required"))&&((null==(O=t.jobForm.get("ownerEmail"))?null:O.touched)||(null==(O=t.jobForm.get("ownerEmail"))?null:O.dirty))),e.xp6(1),e.Q6J("ngIf",(null==(z=t.
1jobForm.get("ownerEmail"))?null:z.hasError("email"))&&((null==(z=t.jobForm.get("ownerEmail"))?null:z.touched)||(null==(z=t.jobForm.get("ownerEmail"))?null:z.dirty))),e.xp6(9),e.Q6J("ngForOf",t.COUNTRY_CODES_ARR),e.xp6(2),e.Q6J("ngClass",e.WLB(103,h,!t.jobForm.get("ownerNumber").valid&&((null==(E=t.jobForm.get("ownerNumber"))?null:E.touched)||(null==(E=t.jobForm.get("ownerNumber"))?null:E.dirty)),t.jobForm.get("ownerNumber").value&&t.jobForm.get("ownerNumber").valid&&((null==(E=t.jobForm.get("ownerNumber"))?null:E.touched)||(null==(E=t.jobForm.get("ownerNumber"))?null:E.dirty)))),e.xp6(1),e.Q6J("ngIf",(null==(G=t.jobForm.get("ownerNumber"))?null:G.hasError("required"))&&((null==(G=t.jobForm.get("ownerNumber"))?null:G.touched)||(null==(G=t.jobForm.get("ownerNumber"))?null:G.dirty))),e.xp6(1),e.Q6J("ngIf",(null==($=t.jobForm.get("ownerNumber"))?null:$.hasError("pattern"))&&((null==($=t.jobForm.get("ownerNumber"))?null:$.touched)||(null==($=t.jobForm.get("ownerNumber"))?null:$.dirty))),e.xp6(2),e.Q6J("ngIf",t.isPublicRoute()&&t.corporateProfileConfirmation),e.xp6(1),e.Q6J("ngIf",t.jobForm)}}function yt(n,a){if(1&n&&(e.TgZ(0,"div"),e.YNc(1,Qe,5,1,"div",8),e.YNc(2,Ye,10,1,"div",9),e.YNc(3,Be,1,0,"app-collection-by-id",2),e.YNc(4,Ct,143,106,"div",10),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!t.isPublicRoute()),e.xp6(1),e.Q6J("ngIf",t.isPublicRoute()),e.xp6(1),e.Q6J("ngIf",t.isPublicRoute()&&t.globalSettings),e.xp6(1),e.Q6J("ngIf",t.jobForm)}}function Tt(n,a){if(1&n&&e._UZ(0,"app-challenges-success",122),2&n){const t=e.oxw();e.Q6J("corporateProfileConfirmation",t.corporateProfileConfirmation)}}const Zt=ge().import("attributors/style/align");ge().register(Zt,!0);const Ft={toolbar:[["bold","italic","underline"],[{list:"ordered"},{list:"bullet"}],[{align:[]}]]};let X=(()=>{class n{constructor(t,o,l,r,u,m,g,c,v,d,b){this.store=t,this.publicApiService=o,this.toastAlertService=l,this.modalService=r,this.challengeService=u,this.router=m,this.route=g,this.jobDetailsService=c,this.ngxLoaderService=v,this.globalService=d,this.titleService=b,this.COUNTRY_CODES_ARR=je.UG,this.brandDetails={},this.quillModules=Ft,this.fundingStages=[{name:"Bootstraped",id:1}],this.destroyed$=new A.x,this.industries=[],this.isSubmitted=!1,this.editedJobId="",this.minDate=(new Date).toISOString().split("T")[0],this.countryList=["India","USA","Germany","Canada"],this.cityList=["Mumbai","Delhi","Bangalore","Chennai"],this.challengeVisibility=[{label:"Public",value:"public",tooltip:"Your listing will be made public, and anyone can participate for this challenge"},{label:"Private",value:"private",tooltip:"Only approved startups can apply on this challenge"}],this.goodToHaveSkillsLoading=!1,this.goodToHaveSkillsInput$=new A.x,this.logoPreview=null,this.maxFileSize=524288,this.allowedTypes=["image/png","image/jpg","image/jpeg"],this.collectionId=null,this.countries=[],this.states=[],this.cities=[],this.selectedLogoFile=null}trackByFn(t){return t.id}getEditedJobDetails(){this.ngxLoaderService.start(),this.challengeService.fetchChellengeDetails(this.editedJobId).pipe((0,H.b)(t=>{this.jobDetails=t;const{businessGoal:o,businessUnit:l,challengeTitle:u,ownerDesignation:m,ownerEmail:g,hideCorporateInfo:c,visibility:v,ownerNumber:d,ownerName:b,useCase:C,challengeDescription:N,successMeasurePlan:y,ethicalIssues:U,resourceLimitation:T,validAssumptions:S,deadLine:Z}=t;console.log("jobDetails",t),this.jobForm.patchValue({uuid:this.editedJobId,challengeTitle:u,businessUnit:l,useCase:C,challengeDescription:N,businessGoal:o,successMeasurePlan:y,ethicalIssues:U,resourceLimitation:T,validAssumptions:S,ownerDesignation:m,ownerEmail:g,ownerNumber:d,ownerName:b,hideCorporateInfo:c,visibility:v,deadLine:Z})},()=>{this.ngxLoaderService.stop()}),(0,we.x)(()=>this.ngxLoaderService.stop())).subscribe()}ngOnInit(){this.titleService.setTitle("Business Challenges @SanchiConnect"),this.route.queryParams.subscribe(o=>{o.collection&&(this.collectionId=o.collection)}),this.store.pipe((0,x.Ys)(D.a$)).pipe((0,_.x)()).subscribe(o=>{o&&(this.brandDetails=o)}),this.globalSettings$=this.store.pipe((0,x.Ys)(D.Tv)),this.getFilterOptions(),this.handleSubscriptions(),this.jobForm=new i.cw({uuid:new i.NI(""),challengeTitle:new i.NI("",[i.kI.required]),businessUnit:new i.NI("",[i.kI.required]),useCase:new i.NI("",[i.kI.required]),challengeDescription:new i.NI("",[i.kI.required]),businessGoal:new i.NI("",[i.kI.required]),successMeasurePlan:new i.NI("",[i.kI.required]),ethicalIssues:new i.NI("",[i.kI.required]),resourceLimitation:new i.NI("",[i.kI.required]),val
1idAssumptions:new i.NI("",[i.kI.required]),ownerName:new i.NI("",[i.kI.required]),ownerDesignation:new i.NI("",[i.kI.required]),ownerEmail:new i.NI("",[i.kI.required,i.kI.email]),countryCode:new i.NI(91,[i.kI.required]),ownerNumber:new i.NI("",[i.kI.required,Ie.ty]),hideCorporateInfo:new i.NI(!1,[i.kI.required]),visibility:new i.NI("public",[i.kI.required]),deadLine:new i.NI(null),corporateName:new i.NI("",[i.kI.required]),companySize:new i.NI("",[i.kI.required]),companyIntroduction:new i.NI("",[i.kI.required]),corporateRegisteredCountry:new i.NI(null,[i.kI.required]),corporateRegisteredState:new i.NI(null),corporateRegisteredCity:new i.NI(null),sectoralInterestIds:new i.NI([]),corporateAccountConfirmation:new i.NI(!1),companyLogo:new i.NI(null)}),["corporateName","companyLogo","corporateRegisteredCountry","companySize","companyIntroduction","corporateAccountConfirmation"].forEach(o=>{const l=this.jobForm.get(o);!l||(this.isPublicRoute()?(this.getCountries(),l.setValidators([i.kI.required])):l.clearValidators(),l.updateValueAndValidity())}),this.jobForm.get("corporateRegisteredCountry").valueChanges.pipe((0,w.R)(this.destroyed$)).subscribe(o=>{this.getStates(o)}),this.jobForm.get("corporateRegisteredState").valueChanges.pipe((0,w.R)(this.destroyed$)).subscribe(o=>{this.getCities(o)}),this.route.params.subscribe(o=>{this.editedJobId=o.id,this.editedJobId&&this.getEditedJobDetails()}),this.store.pipe((0,x.Ys)(Ae.$y)).subscribe(o=>{o&&this.jobForm.patchValue({ownerName:o.name,ownerEmail:o.email,ownerNumber:o.mobileNumber})})}submitChallenge(){this.isPublicRoute()?this.handlePublicSubmit():this.handleSubmit()}isPublicRoute(){return this.router.url.includes("/public")}get corporateProfileConfirmation(){var t;return null===(t=this.brandDetails.features)||void 0===t?void 0:t.corporate_profile_registration_confirmation_enabled}getFilterOptions(){this.publicApiService.fetchCustomPublicData("industries").subscribe({next:t=>{(null==t?void 0:t.industries)&&(this.industries=t.industries.map(o=>({label:o.name||o,value:o.id||o})))},error:t=>console.error("Error fetching industries",t)})}onIndustrySelect(t){this.jobForm.get("sectoralInterestIds")}isInvalid(t,o){const l=this.jobForm.get(t);return(null==l?void 0:l.hasError(o))&&((null==l?void 0:l.touched)||(null==l?void 0:l.dirty))}handleSubscriptions(){this.store.pipe((0,x.Ys)(W.VT)).subscribe(t=>{t&&console.log("startupInfo",t)}),this.globalSettings$.pipe((0,_.x)(),(0,w.R)(this.destroyed$)).subscribe(t=>{t&&(this.globalSettings=t)})}handleSubmit(){const t=Object.assign(Object.assign({},this.jobForm.value),{ownerNumber:+(this.jobForm.value.countryCode+this.jobForm.value.ownerNumber),collectionUUID:this.collectionId});this.ngxLoaderService.start(),t.uuid?this.challengeService.updateChallenge(t.uuid,t).subscribe(o=>{o&&(this.store.dispatch(new J.Bm),this.afterSuccessfulSubmit("private"),this.ngxLoaderService.stop())},o=>{this.ngxLoaderService.stop()}):(console.log("fprm submit",this.jobForm.value),this.challengeService.createChallenge(t).subscribe(o=>{console.log("create job",o),o&&(this.store.dispatch(new J.Bm),this.afterSuccessfulSubmit("private"),this.ngxLoaderService.stop())},o=>{this.ngxLoaderService.stop()}))}getCountries(){this.globalService.getCountries().subscribe(t=>{this.countries=t})}getStates(t){this.globalService.getStates(t).subscribe(o=>{this.states=o})}getCities(t){this.globalService.getCities(t).subscribe(o=>{this.cities=o})}afterSuccessfulSubmit(t){K().fire({text:"Please wait for the approval process to complete.",title:"Business challenge under review",icon:"warning",showCancelButton:!1,confirmButtonColor:"var(--color-theme)",cancelButtonColor:"#7D8185",confirmButtonText:"OK"}).then(o=>{o.isConfirmed&&("public"===t?this.router.navigate(["/search_challenges"]):(this.router.navigate(["/challenges"]),this.router.navigate(this.editedJobId?["/challenges",this.editedJobId,"details"]:["/challenges"])))})}handlePublicSubmit(){var t;if(this.jobForm.invalid)return void this.jobForm.markAllAsTouched();this.ngxLoaderService.start();const o=this.jobForm.value.corporateRegisteredCountry,l=this.jobForm.value.corporateRegisteredState,r=this.jobForm.value.corporateRegisteredCity,u=this.countries.find(d=>d.id===o),m=this.states.find(d=>d.id===l),g=this.cities.find(d=>d.id===r),c=new FormData;if(Object.keys(this.jobForm.value).forEach(d=>{if("companyLogo"===d)return;const b=this.jobForm.value[d];Array.isArray(b)?b.forEach(C=>c.append(d,C)):null!=b&&c.append(d,b)}),c.set("corporateRegisteredCountry",(null==u?void 0:u.name)||""),c.set("corporateRegisteredState",(null==m?void 0:m.name)||""),c.set("corporateRegisteredCity",(null==g?void 0:g.name)||""),c.set("corporateRegisteredCountryId",o),c.set("corporateRegisteredStateId",l),c.set("corporateRegisteredCityId",r),c.set("collectionUUID",this.collectionId),c.set("ownerNumber",this.jobForm.value.ownerNumber.toString()),!this.selectedLogoFile)return null===(t=this.jobForm.get("companyLogo"))||void 0===t||t.setErrors({required:!0}),void this.ngxLoaderService.stop();c.append("companyLogo",this.selectedLogoFile),this.challengeService.createPublicChallenge(c).subscribe({next:d=>{this.ngxLoaderService.stop(),d&&(this.isSubmitted=!0,this.jobForm.reset(),this.selectedLogoFile=null,this.logoPreview=null,window.scrollTo({top:0,behavior:"smooth"}))},error:()=>{this.ngxLoaderService.stop()}})}onToggleChange(t){}goBack(){this.router.navigate(["search_challenges"])}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}clearFileUploader(t){t.target.value=""}handleAvatarSelect(t){const o=t.target;if(!o.files||!o.files.length)return;const l=o.files[0],r=this.jobForm.get("companyLogo"),u=this.validateLogo(l);if(u)return null==r||r.setErrors({[u]:!0}),null==r||r.markAsTouched(),null==r||r.markAsDirty(),null==r||r.updateValueAndValidity(),this.logoPreview=null,this.selectedLogoFile=null,void(o.value="");null==r||r.setErrors(null),null==r||r.markAsTouched(),null==r||r.markAsDirty(),this.selectedLogoFile=l;const m=new FileReader;m.onload=()=>{this.logoPreview=m.result}
1,m.readAsDataURL(l),this.jobForm.patchValue({companyLogo:l})}validateLogo(t){return t?this.allowedTypes.includes(t.type)?t.size>this.maxFileSize?"maxSize":null:"invalidType":"required"}get logoControl(){return this.jobForm.get("companyLogo")}removeLogo(t){var o;this.logoPreview=null,null===(o=this.logoControl)||void 0===o||o.reset(),t&&(t.value="")}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(x.yh),e.Y36(se.I),e.Y36(me.j),e.Y36(f.FF),e.Y36(P.P),e.Y36(j.F0),e.Y36(j.gz),e.Y36(Ue.B),e.Y36(le.LA),e.Y36(ue.U),e.Y36(ce.Dx))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-challenge-form"]],decls:5,vars:3,consts:[[1,"connections-page"],["class","toolbar pt-10 shadow-sm sticky-top","id","kt_toolbar",4,"ngIf"],[4,"ngIf"],[3,"corporateProfileConfirmation",4,"ngIf"],["id","kt_toolbar",1,"toolbar","pt-10","shadow-sm","sticky-top"],["id","kt_toolbar_container",1,"container-xxl","d-flex","justify-content-center","justify-content-lg-start","align-items-center","gap-4"],["routerLink","/",1,"d-flex","align-items-center","me-2"],[1,"h-25px","h-lg-50px"],["class","toolbar toolbar pt-10 shadow-sm sticky-top","id","kt_toolbar",4,"ngIf"],["class","toolbar","id","kt_toolbar",4,"ngIf"],["class","d-flex flex-column-fluid align-items-start container-xxl",4,"ngIf"],["id","kt_toolbar",1,"toolbar","toolbar","pt-10","shadow-sm","sticky-top"],["id","kt_toolbar_container",1,"container-xxl","d-flex","flex-stack","flex-column","flex-lg-row","flex-wrap","gap-2","align-items-center","align-items-lg-center"],[1,"page-title","d-flex","flex-column","align-items-start","me-3","gap-2"],[1,"d-flex","text-dark","fw-bolder","fs-1hx","text-dark","m-0"],["id","kt_toolbar",1,"toolbar"],["id","kt_toolbar_container",1,"container-xxl","d-flex","flex-wrap","flex-column","flex-md-row","align-items-start","align-items-md-center","gap-2"],[1,"px-5","mx-auto","d-flex","flex-column","align-items-start","w-100"],[1,"d-flex","justify-content-between","align-items-center","w-100","m-5"],["aria-label","Go back",1,"back-header","d-flex","align-items-center","mb-3",3,"ngbTooltip","click"],["xmlns","http://www.w3.org/2000/svg","width","25","height","25","viewBox","0 0 16 16","aria-hidden","true",1,"back-icon","bi","bi-arrow-left","me-2","cursor-pointer"],["fill-rule","evenodd","d","M5.854 4.646a.5.5 0 0 1 0 .708L3.207 8l2.647 2.646a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 .0-.708l3-3a.5.5 0 0 1 .708 0z"],["fill-rule","evenodd","d","M13 8a.5.5 0 0 1-.5.5H3.5a.5.5 0 0 1 0-1H12.5A.5.5 0 0 1 13 8z"],[1,"text-primary","fw-bolder","fs-1hx","m-0"],[1,"d-flex","flex-column-fluid","align-items-start","container-xxl"],["id","kt_content",1,"content","flex-row-fluid","pb-8"],[1,"card","col-lg-12","mx-auto"],[1,"card-body","p-lg-10"],[1,"separator","separator-dashed","mt-4","mb-6"],[1,"row","gy-5","g-xl-10",3,"formGroup"],[1,"col-xl-6"],[1,"row"],[1,"mb-7"],["for","challengeTitle",1,"text-gray-800","fs-6","mb-3"],[1,"text-danger"],["type","text","formControlName","challengeTitle","id","challengeTitle","placeholder","Enter a challenge title e.g. (Angular Developer)",1,"form-control",3,"ngClass"],["class","invalid-feedback d-block ms-1",4,"ngIf"],["class","col-xl-6",4,"ngIf"],[1,"col-12","col-lg-12"],["for","title",1,"text-gray-800","fs-6","mb-3"],["placement","bottom",1,"bi","bi-exclamation-circle","fs-3","me-3","text-primary","ms-2",3,"ngbTooltip"],["id","floatingTextarea-community-feed","formControlName","challengeDescription","id","challengeDescription",1,"feed-form-dashboard",3,"modules","styles","ngClass"],[1,"d-flex","flex-wrap","mb-4"],[1,"circle"],[1,"fs-4qx","text-dark","fw-bolder","ms-4"],["id","floatingTextarea-community-feed","formControlName","businessUnit","id","businessUnit",1,"feed-form-dashboard",3,"modules","styles","ngClass"],["id","floatingTextarea-community-feed","formControlName","useCase","id","useCase",1,"feed-form-dashboard",3,"modules","styles","ngClass"],["for","businessGoal",1,"text-gray-800","fs-6","mb-3"],["id","floatingTextarea-community-feed","formControlName","businessGoal","id","businessGoal",1,"feed-form-dashboard",3,"modules","styles","ngClass"],["for","successMeasurePlan",1,"text-gray-800","fs-6","mb-3"],["id","floatingTextarea-community-feed","formControlName","successMeasurePlan","i
1d","successMeasurePlan",1,"feed-form-dashboard",3,"modules","styles","ngClass"],["for","ethicalIssues",1,"text-gray-800","fs-6","mb-3"],["id","floatingTextarea-community-feed","formControlName","ethicalIssues","id","ethicalIssues",1,"feed-form-dashboard",3,"modules","styles","ngClass"],["for","resourceLimitation",1,"text-gray-800","fs-6","mb-3"],["id","floatingTextarea-community-feed","formControlName","resourceLimitation","id","resourceLimitation",1,"feed-form-dashboard",3,"modules","styles","ngClass"],["for","validAssumptions",1,"text-gray-800","fs-6","mb-3"],["id","floatingTextarea-community-feed","formControlName","validAssumptions","id","validAssumptions",1,"feed-form-dashboard",3,"modules","styles","ngClass"],["class","col-xl-12 ",4,"ngIf"],[1,"col-xl-12"],[1,"col-xl-6","col-lg-6","mb-6"],["for","ownerName",1,"text-gray-800","fs-6","mb-3"],["type","text","formControlName","ownerName","id","ownerName","placeholder","John Doe",1,"form-control",3,"ngClass"],["for","ownerDesignation",1,"text-gray-800","fs-6","mb-3"],["type","text","formControlName","ownerDesignation","id","ownerDesignation","placeholder","Designation",1,"form-control",3,"ngClass"],[1,"col-xl-6","col-lg-6"],["for","ownerEmail",1,"text-gray-800","fs-6","mb-3"],["type","text","formControlName","ownerEmail","id","ownerEmail","placeholder","[email protected]",1,"form-control",3,"ngClass"],["for","ownerNumber",1,"text-gray-800","fs-6","mb-3"],[1,"row","g-0"],[1,"col-3","pe-0"],["formControlName","countryCode",1,"form-select"],[3,"value",4,"ngFor","ngForOf"],[1,"col-9","ps-3"],["type","text","formControlName","ownerNumber","id","ownerNumber","placeholder","848384***44",1,"form-control",3,"ngClass"],[1,"col-xl-6","col-lg-6","mt-4"],["class","col-xl-12 form-check mt-5",4,"ngIf"],["class","d-flex",4,"ngIf"],[1,"fs-1"],[1,"list-unstyled"],[1,"mb-2"],[1,""],[1,"invalid-feedback","d-block","ms-1"],["for","industries",1,"text-gray-800","fs-6","mb-3"],["bindLabel","label","bindValue","value","formControlName","sectoralInterestIds","placeholder","Select industries",3,"items","multiple","searchable","clearable","change"],["ng-option-tmp",""],[1,"col-xl-3","col-lg-4","col-md-6","mb-6"],[1,"text-gray-800","fs-6","mb-3","d-block"],[1,"logo-card","position-relative","d-flex","justify-content-center","align-items-center","cursor-pointer",3,"ngClass","click"],["class","logo-img",3,"src",4,"ngIf"],["class","logo-placeholder",4,"ngIf"],["type","file","accept",".png,.jpg,.jpeg","hidden","",3,"change"],["logoInput",""],["type","button","class","remove-icon","aria-label","Remove logo",3,"click",4,"ngIf"],["class","text-danger mt-1",4,"ngIf"],[1,"form-text","mt-2"],[1,"text-muted"],[1,"col-xl-9","col-lg-9","col-md-12"],[1,"col-12","mb-6"],[1,"text-gray-800","fs-6","mb-3"],["formControlName","corporateName","type","text","id","corporateName","placeholder","Corporate Name",1,"form-control",3,"ngClass"],["formControlName","companySize","type","number","placeholder","Company Size",1,"form-control"],[1,"col-xl-4","col-lg-4","col-md-6","mb-6"],["formControlName","corporateRegisteredCountry","bindLabel","name","bindValue","id","placeholder","Choose a country","id","corporateRegisteredCountry",1,"form-control","form-ng-select",3,"items","searchable","clearable","ngClass"],["formControlName","corporateRegisteredState","bindLabel","name","bindValue","id","placeholder","Choose a state","id","corporateRegisteredState",1,"form-control","form-ng-select",3,"items","searchable","clearable"],["formControlName","corporateRegisteredCity","bindLabel","name","bindValue","id","placeholder","Choose a city","id","corporateRegisteredCity",1,"form-control","form-ng-select",3,"items","searchable","clearable"],["for","title",1,"text-gray-800","fs-6"],["id","floatingTextarea-community-feed","formControlName","companyIntroduction","id","companyIntroduction",1,"feed-form-dashboard",3,"modules","styles","ngClass"],[1,"logo-img",3,"src"],[1,"logo-placeholder"],["type","button","aria-label","Remove logo",1,"remove-icon",3,"click"],[1,"bi","bi-x-lg"],[1,"text-danger","mt-1"],[3,"value"],[1,"col-xl-12","form-check","mt-5"],["type","checkbox","id","corporateAccountConfirmation","formControlName","corporateAccountConfirmation","required","",1,"form-check-input"],["for","corporateAccountConfirmation",1,"form-check-label","text-gray-800",3,"ngbTooltip"],[1,"d-flex"],[1,"d-flex","flex-wrap","justify-content-center","pb-lg-0"],["type","submit","id","kt_password_reset_submit",1,"btn","btn-lg","btn-theme","text-white","ls-2","text-uppercase","fw-boldest","fw-bolder",3,"disabled","click"],[1,"indicator-label"],[1,"indicator-progress"],[1,"spinner-border","spinner-border-sm","align-middle","ms-2"],[3,"corporateProfileConfirmation"]],template:function(t,o){1&t&&(e.TgZ(0,"div",0),e._UZ(1,"ngx-ui-loader"),e.YNc(2,Pe,4,0,"div",1),e.YNc(3,yt,5,4,"div",2),e.qZA(),e.YNc(4,Tt,1,1,"app-ch
1allenges-success",3)),2&t&&(e.xp6(2),e.Q6J("ngIf",o.isPublicRoute()),e.xp6(1),e.Q6J("ngIf",o.isPublicRoute()&&o.jobForm&&!o.isSubmitted||!o.isPublicRoute()),e.xp6(1),e.Q6J("ngIf",o.isSubmitted&&o.isPublicRoute()))},directives:[le.Eo,p.O5,j.yS,Se.S,f._L,Me,i._Y,i.JL,i.sg,i.Fj,i.JJ,i.u,p.mk,ae.w9,ae.ir,De.g6,i.wV,i.EJ,p.sg,i.YN,i.Kr,i.Wl,i.Zs,pe.l],styles:[".circle[_ngcontent-%COMP%]{background:var(--color-theme);width:5px;height:25px;border-radius:35px;position:relative;top:0}.disabled-option[_ngcontent-%COMP%]{pointer-events:none;opacity:.5}.logo-card[_ngcontent-%COMP%]{width:200px;height:140px;background:#fff;border-radius:16px;box-shadow:0 4px 15px #0000001a;display:flex;align-items:center;justify-content:center;position:relative}.logo-img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;border-radius:16px}.logo-placeholder[_ngcontent-%COMP%]{font-size:13px;color:#999}.edit-icon[_ngcontent-%COMP%]{position:absolute;top:-5px;right:-5px;width:25px;height:25px;background:#fff;border-radius:50%;box-shadow:0 2px 8px #0003;display:flex;align-items:center;justify-content:center;cursor:pointer}.edit-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:12px;color:#666}.remove-icon[_ngcontent-%COMP%]{position:absolute;top:8px;right:8px;border:none;color:#f10a0a;border-radius:50%;width:28px;height:28px;display:flex;align-items:center;justify-content:center;cursor:pointer}"]}),n})();const wt=[{path:"public",children:[{path:"",component:de,data:{title:"Public Challenges"}},{path:"create",component:X,data:{title:"Create Public Challenge"}},{path:":id",component:X,data:{title:"View Public Challenge"}},{path:"success",component:pe.l}]},{path:"",component:Te.l,children:[{path:"",component:de,data:{title:"Challenges"}},{path:"create",component:X,data:{title:"Create Challenge"}},{path:":id/edit",component:X,data:{title:"Edit Challenge"}}]}];let It=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[[p.ez,j.Bz.forChild(wt),Fe.m,ae.A0,i.UX,i.u5,Ze.N,f.HK]]}),n})()},61102:(re,R,s)=>{s.d(R,{Hh:()=>V,T1:()=>A,UG:()=>_,hx:()=>M});const p=[{USA:"1"},{India:"91"},{Canada:"1"},{"United Arab Emirates":"971"},{Singapore:"65"}],x=[...p,{UK:"44"},{Algeria:"213"},{Andorra:"376"},{Angola:"244"},{Anguilla:"1264"},{"Antigua & Barbuda":"1268"},{Argentina:"54"},{Armenia:"374"},{Aruba:"297"},{Australia:"61"},{Austria:"43"},{Azerbaijan:"994"},{Bahamas:"1242"},{Bahrain:"973"},{Bangladesh:"880"},{Barbados:"1246"},{Belarus:"375"},{Belgium:"32"},{Belize:"501"},{Benin:"229"},{Bermuda:"1441"},{Bhutan:"975"},{Bolivia:"591"},{"Bosnia Herzegovina":"387"},{Botswana:"267"},{Brazil:"55"},{Brunei:"673"},{Bulgaria:"359"},{"Burkina Faso":"226"},{Burundi:"257"},{Cambodia:"855"},{Cameroon:"237"},{"Cape Verde Islands":"238"},{"Cayman Islands":"1345"},{"Central African Republic":"236"},{Chile:"56"},{China:"86"},{Colombia:"57"},{Comoros:"269"},{Congo:"242"},{"Cook Islands":"682"},{"Costa Rica":"506"},{Croatia:"385"},{Cuba:"53"},{"Cyprus North":"90392"},{"Cyprus South":"357"},{"Czech Republic":"42"},{Denmark:"45"},{Djibouti:"253"},{Dominica:"1809"},{"Dominican Republic":"1809"},{Ecuador:"593"},{Egypt:"20"},{"El Salvador":"503"},{"Equatorial Guinea":"240"},{Eritrea:"291"},{Estonia:"372"},{Ethiopia:"251"},{"Falkland Islands":"500"},{"Faroe Islands":"298"},{Fiji:"679"},{Finland:"358"},{France:"33"},{"French Guiana":"594"},{"French Polynesia":"689"},{Gabon:"241"},{Gambia:"220"},{Georgia:"7880"},{Germany:"49"},{Ghana:"233"},{Gibraltar:"350"},{Greece:"30"},{Greenland:"299"},{Grenada:"1473"},{Guadeloupe:"590"},{Guam:"671"},{Guatemala:"502"},{Guinea:"224"},{"Guinea - Bissau":"245"},{Guyana:"592"},{Haiti:"509"},{Honduras:"504"},{"Hong Kong":"852"},{Hungary:"36"},{Iceland:"354"},{Indonesia:"62"},{Iran:"98"},{Iraq:"964"},{Ireland:"353"},{Israel:"972"},{Italy:"39"},{Jamaica:"1876"},{Japan:"81"},{Jordan:"962"},{Kazakhstan:"7"},{Kenya:"254"},{Kiribati:"686"},{"Korea North":"850"},{"Korea South":"82"},{Kuwait:"965"},{Kyrgyzstan:"996"},{Laos:"856"},{Latvia:"371"},{Lebanon:"961"},{Lesotho:"266"},{Liberia:"231"},{Libya:"218"},{Liechtenstein:"417"},{Lithuania:"370"},{Luxembourg:"352"},{Macao:"853"},{Macedonia:"389"},{Madagascar:"261"},{Malawi:"265"},{Malaysia:"60"},{Maldives:"960"},{Mali:"223"},{Malta:"356"},{"Marshall Islands":"692"},{Martinique:"596"},{Mauritania:"222"},{Mayotte:"269"},{Mexico:"52"},{Micronesia:"691"},{Moldova:"373"},{Monaco:"377"},{Mongolia:"976"},{Montserrat:"1664"},{Morocco:"212"},{Mozambique:"258"},{Myanmar:"95"},{Namibia:"264"},{Nauru:"674"},{Nepal:"977"},{Netherlands:"31"},{"New Caledonia":"687"},{"New Zealand":"64"},{Nicaragua:"505"},{Niger:"227"},{Nigeria:"234"},{Niue:"683"},{"Norfolk Islands":"672"},{"Northern Marianas":"670"},{Norway:"47"},{Oman:"968"},{Palau:"680"},{Panama:"507"},{"Papua New Guinea":"675"},{Paraguay:"595"},{Peru:"51"},{Philippines:"63"},{Poland:"48"},{Portugal:"351"},{"Puerto Rico":"1787"},{Qatar:"974"},{Reunion:"262"},{Romania:"40"},{Russia:"7"},{Rwanda:"250"},{"San Marino":"378"},{"Sao Tome & Principe":"239"},{"Saudi Arabia":"966"},{Senegal:"221"},{Serbia:"381"},{Seychelles:"248"},{"Sierra Leone":"232"},{"Slovak Republic":"421"},{Slovenia:"386"},{"Solomon Islands":"677"},{Somalia:"252"},{"South Africa":"27"},{Spain:"34"},{"Sri Lanka":"94"},{"St. Helena":"290"},{"St. Kitts":"1869"},{"St. Lucia":"1758"},{Sudan:"249"},{Suriname:"597"},{Swaziland:"268"},{Sweden:"46"},{Switzerland:"41"},{Syria:"963"},{Taiwan:"886"},{Tajikstan:"7"},{Thailand:"66"},{Togo:"228"},{Tonga:"676"},{"Trinidad & Tobago":"1868"},{Tunisia:"216"},{Turkey:"90"},{Turkmenistan:"7"},{Turkmenistan:"993"},{"Turks & Caicos Islands":"1649"},{Tuvalu:"688"},{Uganda:"256"},{Ukraine:"380"},{Uruguay:"598"},{Uzbekistan:"7"},{Vanuatu:"678"},{"Vatican City":"379"},{Venezuela:"58"},{Vietnam:"84"},{"Virgin Islands - British":"1284"},{"Virgin Islands - US":"1340"},{"Wallis & Futuna":"681"},{"Yemen North":"969"},{"Yemen South":"967"},{Zambia:"260"},{Zimbabwe:"263"}],A=p.map(F=>({name:Object.keys(F)[0],value:Object.values(F)[0]})),_=x.map(F=>({name:Object.keys(F)[0],value:Object.values(F)[0]})),V={1:{min:10,max:10},91:{min:10,max:10},971:{min:9,max:9},65:{min:8,max:8},44:{min:10,max:10},213:{min:9,max:9},376:{min:6,max:9},244:{min:9,max:9},1264:{min:7,max:7},1268:{min:7,max:7},54:{min:10,max:11},374:{min:8,max:8},297:{min:7,max:7},61:{min:9,max:9},43:{min:10,max:13},994:{min:9,max:9},1242:{min:7,max:7},973:{min:8,max:8},880:{min:10,max:10},1246:{min:7,max:7},375:{min:9,max:9},32:{min:8,max:9},501:{min:7,max:7},229:{min:8,max:8},1441:{min:7,max:7},975:{min:8,max:8},591:{min:8,max:8},387:{min:8,max:8},267:{min:7,max:8},55:{min:10,max:11},673:{min:7,max:7},359:{min:8,max:9},226:{min:8,max:8},257:{min:8,max:8},855:{min:8,max:9},237:{min:9,max:9},238:{min:7,max:7},1345:{min:7,max:7},236:{min:8,max:8},56:{min:9,max:9},86:{min:11,max:11},57:{min:10,max:10},269:{min:7,max:9},242:{min:9,max:9},682:{min:5,max:5},506:{min:8,max:8},385:{min:8,max:9},53:{min:8,max:8},90392:{min:7,max:7},357:{min:8,max:8},42:{min:9,max:9},45:{min:8,max:8},253:{min:8,max:8},1809:{min:7,max:7},593:{min:8,max:9},20:{min:10,max:10},503:{min:8,max:8},240:{min:9,max:9},291:{min:7,max:7},372:{min:7,max:8},251:{min:9,max:9},500:{min:5,max:5},298:{min:6,max:6},679:{min:7,max:7},358:{min:9,max:10},33:{min:9,max:9},594:{min:9,max:9},689:{min:6,max:6},241:{min:7,max:8},220:{min:7,max:7},7880:{min:9,max:9},49:{min:10,max:11},233:{min:9,max:9},350:{min:8,max:8},30:{min:10,max:10},299:{min:6,max:6},1473:{min:7,max:7},590:{min:9,max:9},671:{min:7,max:7},502:{min:8,max:8},224:{min:9,max:9},245:{min:9,max:9},592:{min:7,max:7},509:{min:8,max:8},504:{min:8,max:8},852:{min:8,max:8},36:{min:9,max:9},354:{min:7,max:9},62:{min:9,max:12},98:{min:10,max:10},964:{min:10,max:10},353:{min:9,max:9},972:{min:9,max:9},39:{min:9,max:11},1876:{min:7,max:7},81:{min:10,max:10},962:{min:9,max:9},7:{min:10,max:10},254:{min:9,max:10},686:{min:5,max:5},850:{min:8,max:10},82:{min:9,max:10},965:{min:8,max:8},996:{min:9,max:9},856:{min:8,max:10},371:{min:8,max:8},961:{min:7,max:8},266:{min:8,max:8},231:{min:7,max:8},218:{min:9,max:9},417:{min:7,max:7},370:{min:8,max:8},352:{min:8,max:9},853:{min:8,max:8},389:{min:8,max:8},261:{min:9,max:9},265:{min:9,max:9},60:{min:9,max:10},960:{min:7,max:7},223:{min:8,max:8},356:{min:8,max:8},692:{min:7,max:7},596:{min:9,max:9},222:{min:8,max:8},52:{min:10,max:10},691:{min:7,max:7},373:{min:8,max:8},377:{min:8,max:9},976:{min:8,max:8},1664:{min:7,max:7},212:{min:9,max:9},258:{min:9,max:9},95:{min:7,max:10},264:{min:7,max:10},674:{min:7,max:7},977:{min:10,max:10},31:{min:9,max:9},687:{min:6,max:6},64:{min:8,max:10},505:{min:8,max:8},227:{min:8,max:8},234:{min:10,max:10},683:{min:4,max:4},672:{min:6,max:6},670:{min:7,max:7},47:{min:8,max:8},968:{min:8,max:8},680:{min:7,max:7},507:{min:8,max:8},675:{min:8,max:8},595:{min:9,max:9},51:{min:9,max:9},63:{min:10,max:10},48:{min:9,max:9},351:{min:9,max:9},1787:{min:7,max:7},974:{min:8,max:8},262:{min:9,max:9},40:{min:9,max:9},250:{min:9,max:9},378:{min:6,max:10},239:{min:7,max:7},966:{min:9,max:9},221:{min:9,max:9},381:{min:8,max:9},248:{min:7,max:7},232:{min:8,max:8},421:{min:9,max:9},386:{min:8,max:8},677:{min:5,max:5},252:{min:7,max:8},27:{min:9,max:9},34:{min:9,max:9},94:{min:9,max:9},290:{min:4,max:4},1869:{min:7,max:7},1758:{min:7,max:7},249:{min:9,max:9},597:{min:6,max:7},268:{min:8,max:8},46:{min:7,max:10},41:{min:9,max:9},963:{min:9,max:9},886:{min:9,max:9},66:{min:9,max:9},228:{min:8,max:8},676:{min:5,max:5},1868:{min:7,max:7},216:{min:8,max:8},90:{min:10,max:10},993:{min:8,max:8},1649:{min:7,max:7},688:{min:5,max:5},256:{min:9,max:9},380:{min:9,max:9},598:{min:8,max:8},678:{min:5,max:7},379:{min:6,max:10},58:{min:10,max:10},84:{min:9,max:10},1284:{min:7,max:7},1340:{min:7,max:7},681:{min:6,max:6},969:{min:9,max:9},967:{min:9,max:9},260:{min:9,max:9},263:{min:9,max:10}},M={min:6,max:15}},62037:(re,R,s)=>{s.d(R,{At:()=>D,FS:()=>A,Hx:()=>te,IQ:()=>ie,Jq:()=>_,Ol:()=>w,QI:()=>W,Qg:()=>M,Wh:()=>x,Y$:()=>F,cH:()=>J,in:()=>oe,kA:()=>K,m1:()=>ne,nW:()=>H,ty:()=>ee,u5:()=>V,vQ:()=>i});var p=s(90587);const x="(https?://)?([\\da-z.-]+)\\.([a-z.]{2,6})[/\\w .-]*/?",A="^(\\+?d{1,4}[s-])?(?!0+s+,?$)\\d{4,17}s*,?$",_="^((https|http)://)*[a-z.]*linkedin.com/.+$",V=/http(?:s)?:\/\/(?:www\.)?(twitter|x)\.com\/([a-zA-Z0-9_]+)/,M="^(https?://)?(www.)?(facebook.com/(profile.php?id=d+|[a-zA-Z0-9./]+))$",F="^(https?://)?(www.)?(youtube.com/(channel/[a-zA-Z0-9_-]+|user/[a-zA-Z0-9_-]+|c/[a-zA-Z0-9_-]+|@?[a-zA-Z0-9_-]+))/?$",H="^(https?://)?(www.)?(instagram.com/[a-zA-Z0-9._]+/?$)",ee=p.kI.pattern(/^-?(0|[1-9]\d*)?$/),te=p.kI.pattern(/^-?(0|[1-9]\d*)(\.\d+)?$/),w=p.kI.pattern(/^(0|[1-9]\d*)?$/),D=p.kI.pattern(/^(0|[1-9]\d*)(,\d{3})*(\.\d+)?$/),J=2147483647;function ne(e){return f=>{if(null==f.value||""===f.value)return null;const P=Number("string"==typeof f.value?f.value.replaceAll(",",""):f.value);return!isNaN(P)&&P>e?{maxValue:{max:e,actual:f.value}}:null}}const W=p.kI.pattern(/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,20}$/),oe=p.kI.pattern(/^[a-z0-9._%-]+@[a-z0-9.-]+\.[a-z]{2,20}$/),K=p.kI.pattern(/^[A-Za-z]{4}0[A-Za-z0-9]{6}$/),i=p.kI.pattern(/^[A-Za-z]{5}[0-9]{4}[A-Za-z]$/),ie=p.kI.pattern(/^[a-zA-Z0-9]*$/)}}]); 2//# sourceMappingURL=src_app_modules_challenges_challenges_module_ts.71ea4f326e3afe38.js.map
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.