1import{a as Y}from"./chunk-OSOKMENO.js";import{c as X}from"./chunk-BDKRKRWP.js";import{a as E}from"./chunk-MSDJKRST.js";import"./chunk-YIQEMVJ5.js";import"./chunk-Y6CLZ2KC.js";import"./chunk-KOTTU6NQ.js";import"./chunk-ZOPYJH7M.js";import"./chunk-FWPKSWCA.js";import{a as W}from"./chunk-IG3CIIUJ.js";import{g as Z,h as z,j as q,k as K,l as Q}from"./chunk-MJO5DOZI.js";import"./chunk-IVPT2EE5.js";import"./chunk-Q7QUVXGT.js";import"./chunk-V42YWAY2.js";import"./chunk-ZYSFNTZY.js";import"./chunk-3UAUSEVU.js";import{r as M,t as G}from"./chunk-J45G73SR.js";import{$a as V,Ba as C,I,Ka as O,Lb as A,Mb as p,Nb as d,Qb as J,Qc as b,Rb as L,Sb as k,Tb as m,Tc as y,Ub as l,Vb as u,Wb as f,Xb as v,Yb as D,ac as $,cc as B,db as n,ec as r,ia as c,na as T,oa as P,pa as w,qa as U,qc as g,rb as j,ta as F,tc as h,uc as S,vc as H,wa as R,za as _}from"./chunk-XBYGHBCF.js";import"./chunk-TSRGIXR5.js";var ne=(t,o)=>o.number;function oe(t,o){t&1&&(w(),f(0,"svg",3),D(1,"path",6),v())}function se(t,o){if(t&1&&h(0),t&2){let e=r().$implicit;H(" ",e.number," ")}}function ae(t,o){if(t&1&&D(0,"div",7),t&2){let e=r().$implicit,i=r();g("new-join-us__step-line--completed",i.isStepCompleted(e.number))}}function re(t,o){if(t&1&&(f(0,"div",1)(1,"div",2),p(2,oe,2,0,":svg:svg",3)(3,se,1,1),v(),f(4,"span",4),h(5),v()(),p(6,ae,1,2,"div",5)),t&2){let e=o.$implicit,i=o.$index,s=o.$count,a=r();A("aria-current",a.currentStep()===e.number?"step":null),n(),g("new-join-us__step-dot--completed",a.isStepCompleted(e.number))("new-join-us__step-dot--completed-airbnb",a.isStepCompleted(e.number)&&e.number===3)("new-join-us__step-dot--active",a.currentStep()===e.number&&!a.isStepCompleted(e.number))("new-join-us__step-dot--upcoming",a.currentStep()<e.number&&!a.isStepCompleted(e.number)),n(),d(a.isStepCompleted(e.number)&&e.number===3?2:3),n(2),g("new-join-us__step-label--active",a.currentStep()===e.number),n(),S(e.label),n(),d(i!==s-1?6:-1)}}var me=[{number:1,label:"Details"},{number:2,label:"Project"},{number:3,label:"Eligibility"}],ee=(()=>{class t{constructor(){this.currentStep=y.required(),this.airbnbPrefilled=y(!1),this.steps=me}isStepCompleted(e){return e===3&&this.airbnbPrefilled()?!0:this.currentStep()>e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=j({type:t,selectors:[["app-progress-stepper"]],inputs:{currentStep:[1,"currentStep"],airbnbPrefilled:[1,"airbnbPrefilled"]},decls:3,vars:0,consts:[["aria-label","Form progress",1,"new-join-us__stepper"],[1,"new-join-us__step"],[1,"new-join-us__step-dot"],["width","16","height","16","viewBox","0 0 16 16","fill","none","xmlns","http://www.w3.org/2000/svg",1,"new-join-us__step-check"],[1,"new-join-us__step-label"],[1,"new-join-us__step-line",3,"new-join-us__step-line--completed"],["d","M13.3346 4L6.0013 11.3333L2.66797 8","stroke","white","stroke-width","1.4","stroke-linecap","round","stroke-linejoin","round"],[1,"new-join-us__step-line"]],template:function(i,s){i&1&&(f(0,"nav",0),J(1,re,7,14,null,null,ne),v()),i&2&&(n(),L(s.steps))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();function le(t,o){if(t&1){let e=$();m(0,"img",12),B("error",function(){T(e);let s=r();return P(s.marketingImageFailed.set(!0))}),l()}if(t&2){let e=o,i=r();g("new-join-us__image--hidden",!i.imageVisible()),k("ngSrc",e)("alt","join-us-step-"+e)("loading","eager")}}function pe(t,o){t&1&&u(0,"img",4)}function de(t,o){t&1&&u(0,"img",5)}function ce(t,o){if(t&1&&(m(0,"div",6)(1,"p",13),h(2),l(),m(3,"a",14),w(),m(4,"svg",15),u(5,"path",16),l(),U(),m(6,"span"),h(7),l()()()),t&2){let e=o,i=r();n(2),S(e.title),n(),k("href",i.outcomeMarketingPdfUrl(),V),n(4),S(e.ctaName)}}function ue(t,o){if(t&1&&u(0,"app-progress-stepper",17)(1,"hr",18),t&2){let e=r();k("currentStep",e.currentStep())("airbnbPrefilled",e.joinUsService.isAirbnbPrefillApplied())}}var N=new Set(["processing","approved","manual-review","rejected","location-rejection","airbnb-callback"]),te=new Set(["approved","manual-review"]),ge=new Map([["step1",1],["step2",2],["step3",3]]),Ee=(()=>{class t{constructor(){this.router=c(K),this.destroyRef=c(F),this.platformId=c(O),this.structuredDataService=c(W),this.ngZone=c(R),this.joinUsService=c(X),this.activeSegment=_("step1"),this.currentStep=_(1),this.showStepper=b(()=>!N.has(this.activeSegment())&&!this.joinUsService._isShortFlow()&&!this.joinUsService.isConferenceFlow()),this.outcomeMarketingData=b(()=>te.has(this.activeSegment())?this.joinUsService.marketingData():null),this.outcomeMarketingPdfUrl=b(()=>{let e=this.outcomeMarketingData();return e?this.activeSegment()==="approved"?e.pdfForMembers:e.pdfForNonMembers:null}),this.marketingImageFailed=_(!1),this.stepImage=b(()=>{let e=this.activeSegment(),i=this.outcomeMarketingData();return i&&!this.marketingImageFailed()?i.image:te.has(e)&&!M(this.platformId)?null:e==="airbnb-callback"?"assets/images/v5/ne
1w-joinus/step1.avif":N.has(e)?"assets/images/thankyou_bg.jpg":`assets/images/v5/new-joinus/step${this.currentStep()}.avif`}),this.displayedImage=_("assets/images/v5/new-joinus/step1.avif"),this.imageVisible=_(!0),this._isFirstImageRun=!0,this._fadeTimeout=null,this._isNavigatingAway=!1,this._preloadedImages=new Set,this._preloadNextStepEffect=C(()=>{let e=this.currentStep();e===1?this.preloadStepImage("assets/images/v5/new-joinus/step2.avif"):e===2?(this.preloadStepImage("assets/images/v5/new-joinus/step3.avif"),this.preloadStepImage("assets/images/thankyou_bg.jpg")):e===3&&this.preloadStepImage("assets/images/thankyou_bg.jpg")}),this._resetMarketingImageFailedEffect=C(()=>{this.outcomeMarketingData(),this.marketingImageFailed.set(!1)}),this._imageFadeEffect=C(()=>{let e=this.stepImage(),i=this.activeSegment();if(this._isFirstImageRun){this._isFirstImageRun=!1,this.displayedImage.set(e);return}if(!M(this.platformId)){this.displayedImage.set(e);return}if(this._fadeTimeout&&clearTimeout(this._fadeTimeout),N.has(i)){this._fadeTimeout=null,this.displayedImage.set(e),this.imageVisible.set(!0);return}this.imageVisible.set(!1),this._fadeTimeout=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{this.displayedImage.set(e),this.imageVisible.set(!0),this._fadeTimeout=null},300))})}preloadStepImage(e){!M(this.platformId)||this._preloadedImages.has(e)||(this._preloadedImages.add(e),Y(e))}ngOnInit(){this.structuredDataService.injectBreadcrumb([{name:"Home",item:"https://minoan.com"},{name:"Join Us",item:"https://minoan.com/join-us"}]),this.destroyRef.onDestroy(()=>{this.structuredDataService.removeJsonLd("breadcrumb"),this._fadeTimeout&&clearTimeout(this._fadeTimeout),this._isNavigatingAway&&this.joinUsService.clearSession()}),this.updateFromUrl(this.router.url),this.router.events.pipe(I(e=>e instanceof Z),E(this.destroyRef)).subscribe(e=>{this._isNavigatingAway=!e.url.split("?")[0].includes("join-us")}),this.router.events.pipe(I(e=>e instanceof z),E(this.destroyRef)).subscribe(e=>{this.updateFromUrl(e.urlAfterRedirects)})}updateFromUrl(e){let s=e.split("?")[0].split("/").filter(Boolean),a=s[s.length-1];this.activeSegment.set(a),s.includes("step3")?this.currentStep.set(3):this.currentStep.set(ge.get(a)??1)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=j({type:t,selectors:[["app-new-join-us"]],hostAttrs:["ngSkipHydration","true"],decls:14,vars:6,consts:[[1,"new-join-us__layout"],[1,"new-join-us__image-panel"],["width","800","height","1200",3,"ngSrc","alt","loading","new-join-us__image--hidden"],["routerLink","/",1,"new-join-us__logo-panel"],["src","./assets/images/dark_logo.svg","alt","",1,"dark_logo"],["src","./assets/images/minoan_logo_white.svg","alt","",1,"white_logo"],[1,"new-join-us__image-panel-marketing"],[1,"new-join-us__form-panel"],[1,"new-join-us__form-inner"],[1,"new-join-us__logo"],["routerLink","/"],["src","assets/images/dark_logo.svg","alt","Minoan","width","120","height","28"],["width","800","height","1200",3,"error","ngSrc","alt","loading"],[1,"new-join-us__image-panel-marketing-title"],["target","_blank","rel","noopener",1,"new-join-us__image-panel-marketing-cta",3,"href"],["width","20","height","21","viewBox","0 0 20 21","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M17.5 18H2.5M15 9.66667L10 14.6667M10 14.6667L5 9.66667M10 14.6667V3","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],[3,"currentStep","airbnbPrefilled"],["aria-hidden","true",1,"new-join-us__mobile-divider"]],template:function(i,s){if(i&1&&(m(0,"div",0)(1,"div",1),p(2,le,1,5,"img",2),m(3,"a",3),p(4,pe,1,0,"img",4)(5,de,1,0,"img",5),l(),p(6,ce,8,3,"div",6),l(),m(7,"div",7)(8,"div",8)(9,"div",9)(10,"a",10),u(11,"img",11),l()(),p(12,ue,2,2),u(13,"router-outlet"),l()()()),i&2){let a,x;n(),g("new-join-us__image-panel--marketing",!!s.outcomeMarketingData()),n(),d((a=s.displayedImage())?2:-1,a),n(2),d(s.outcomeMarketingData()?4:5),n(2),d((x=s.outcomeMarketingData())?6:-1,x),n(6),d(s.showStepper()?12:-1)}},dependencies:[q,ee,G,Q],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();export{Ee as NewJoinUsComponent};
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.