1import{c as ae}from"./chunk-6IND7JD2.js";import{b as T,c as E,d as ne}from"./chunk-IGELCBVR.js";import{d as W,e as se}from"./chunk-YG6RUGGH.js";import{c as te}from"./chunk-2SKFTKQH.js";import"./chunk-ULL2VEHV.js";import"./chunk-7OCZJ3DM.js";import"./chunk-CJPLD6EO.js";import{a as ie}from"./chunk-IGYGJN56.js";import"./chunk-MCZQ5WI5.js";import"./chunk-Q7ZJKBCZ.js";import{a as Q,b as re,c as oe}from"./chunk-T5PEFPIS.js";import"./chunk-DF2AWK24.js";import"./chunk-GYBEINYY.js";import{a as K,b as Y,c as X,d as $,e as b,f as S,g as w,h as P,i as y,j as J}from"./chunk-SKVSRVHN.js";import"./chunk-FHBEL3QO.js";import"./chunk-XG2GLIY3.js";import"./chunk-PH2WQI3D.js";import{a as Z,x as ee}from"./chunk-ZFLLXZ6J.js";import"./chunk-AUNWOKYC.js";import{g as j}from"./chunk-PHEHCZC7.js";import{b as x,f as q,g as A,i as H}from"./chunk-OQH6SJNQ.js";import"./chunk-LJLOZT3P.js";import{C as u,D as U,k as z,m as V,y as B}from"./chunk-GCKWZ4XN.js";import{Bc as I,Cb as f,Ga as M,Gc as C,Jc as g,Kb as R,Sb as _,Wd as G,Yc as F,pb as m,pc as a,qc as l,ra as v,rc as c,sa as L,sc as p,wa as N}from"./chunk-VEKDBRPX.js";import"./chunk-MSLIVQHW.js";function D(n){let e=n.split("?")[0].split("#")[0];return!!(e==="/"||e===""||e==="/blog"||e.startsWith("/blog/")||e==="/trailer-detail"||e.startsWith("/trailer-detail/")||e==="/trailer-rental"||e.startsWith("/trailer-rental/")||e==="/search-trailer"||e.startsWith("/search-trailer/")||e.startsWith("/search-trailer;")||ne(e))}var le="img[data-nt-geo-src]",k=class{doc;IntersectionObserverType;MutationObserverType;intersectionObserver;mutationObserver;started=!1;constructor(e,t=e.defaultView?.IntersectionObserver??null,r=e.defaultView?.MutationObserver??null){this.doc=e,this.IntersectionObserverType=t,this.MutationObserverType=r}start(e=this.doc){if(this.started){this.observeWithin(e);return}if(this.started=!0,!this.IntersectionObserverType){this.loadWithin(e),this.observeFutureImages(!1);return}this.intersectionObserver=new this.IntersectionObserverType(t=>{t.forEach(r=>{if(!r.isIntersecting)return;let i=r.target;this.loadImage(i),this.intersectionObserver?.unobserve(i)})},{root:null,rootMargin:"0px",threshold:.01}),this.observeWithin(e),this.observeFutureImages(!0)}stop(){this.intersectionObserver?.disconnect(),this.mutationObserver?.disconnect(),this.intersectionObserver=void 0,this.mutationObserver=void 0,this.started=!1}observeFutureImages(e){!this.MutationObserverType||!this.doc.body||(this.mutationObserver=new this.MutationObserverType(t=>{t.forEach(r=>{r.addedNodes.forEach(i=>{e?this.observeWithin(i):this.loadWithin(i)})})}),this.mutationObserver.observe(this.doc.body,{childList:!0,subtree:!0}))}observeWithin(e){this.imagesWithin(e).forEach(t=>{t.dataset.ntGeoLoaded!=="true"&&this.intersectionObserver?.observe(t)})}loadWithin(e){this.imagesWithin(e).forEach(t=>this.loadImage(t))}imagesWithin(e){let t=[];return e instanceof Element&&e.matches(le)&&t.push(e),"querySelectorAll"in e&&t.push(...Array.from(e.querySelectorAll(le))),t}loadImage(e){if(e.dataset.ntGeoLoaded==="true")return;let t=e.dataset.ntGeoSrc;if(!t)return;let r=e.dataset.ntGeoSrcset,i=e.dataset.ntGeoSizes,d=e.dataset.ntGeoFallback;d&&e.addEventListener("error",()=>{e.removeAttribute("srcset"),e.src=d},{once:!0}),r&&(e.srcset=r),i&&(e.sizes=i),e.src=t,e.dataset.ntGeoLoaded="true"}};function de(n,e){if(n&1){let t=I();l(0,"app-lazy-layout",17),C("onComponentLoaded",function(){v(t);let i=g();return L(i.onLazyComponentLoaded())}),c()}n&2&&a("componentName","StatesComponent")}function ce(n,e){if(n&1){let t=I();l(0,"app-lazy-layout",17),C("onComponentLoaded",function(){v(t);let i=g();return L(i.onLazyComponentLoaded())}),c()}n&2&&a("componentName","FooterComponent")}function ue(n,e){if(n&1&&p(0,"app-sub-helpmodal",18),n&2){let t=g();a("url",t.menuGuidelink)}}function pe(n,e){if(n&1){let t=I();l(0,"app-lazy-layout",17),C("onComponentLoaded",function(){v(t);let i=g();return L(i.onLazyComponentLoaded())}),c()}n&2&&a("componentName","LiveChatComponent")}var Ue=(()=>{class n{router;loaderService;scriptService;cdr;platformId;doc;faProLink=null;isDestroyed=!1;headerBootstrapped=!1;geoViewportImageLoader=null;faCaretUp=ee;IsLoadOtherComponents=!1;Year=new Date().getFullYear().toString();loadhelpguide=!1;isHeadLoaded=!1;componentSequenceNumber=1;trailerDetailPage=!1;blogPage=!1;isServer;loadDeferredWidgets=!1;faProLoadScheduled=!1;menuGuidelink;currentUrl="";constructor(t,r,i,d,o,h){this.router=t,this.loaderService=r,this.scriptService=i,this.cdr=d,this.platformId=o,this.doc=h,this.isServer=U(this.platformId),u(this.platformId)&&(this.doc.documentElement.classList.remove("portal-doc-scroll"),this.doc.body.classList.remove("portal-doc-scroll"),this.doc.body.removeAttribute("data-layout-scrollable"),ae(this.doc,()=>this.isDestroyed)),t.events.subscribe(s=>{if(s instanceof x){this.currentUrl=s.url,this.menuGuidelink=this.currentUrl,this.menuGuidelink!=null&&(s.url=="/"?this.menuGuidelink=s.url:s.url.includes(";")?this.menuGuidelink=s.url.replace("/","").split(";")[0]:this.menuGuidelink=s.url.replace("/portal","").split("/")[1]),u(this.platformId)&&(this.resetMainScrollOnPathChange(s.urlAfterRedirects??s.url),D(s.url)||setTimeout(()=>{this.isDestroyed||(this.loadhelpguide=!0,this.cdr.detectChanges())},5e3));let O=s.urlAfterRedirects??s.url;this.syncRouteFlags(O),this.applyWidgetDeferral(O),this.syncGeoViewportImages(O)}}),this.syncRouteFlags(this.router.url),this.ensurePublicMarketingCss()}ngOnInit(){this.syncRouteFlags(this.router.url),u(this.platformId)&&(this.scheduleFaProStylesheet(),this.applyWidgetDeferral(this.router.url))}ngAfterViewInit(){!u(this.platformId)||this.headerBootstrapped||(this.headerBootstrapped=!0,this.onComponentHeaderLoaded(!0),this.syncGeoViewportImages(this.router.url))}
1scheduleFaProStylesheet(){if(this.faProLoadScheduled||this.doc.getElementById("fa-pro-all-css"))return;this.faProLoadScheduled=!0;let t=["scroll","pointerdown","keydown"],r=()=>{if(this.isDestroyed||this.doc.getElementById("fa-pro-all-css"))return;t.forEach(h=>window.removeEventListener(h,r,h==="scroll"?{capture:!1}:void 0));let o=this.doc.createElement("link");o.id="fa-pro-all-css",o.rel="stylesheet",o.href="/assets/public/css/all.css",this.doc.head.appendChild(o),this.faProLink=o},i=()=>{let o=window;o.requestIdleCallback?o.requestIdleCallback(r,{timeout:1e4}):setTimeout(r,8e3)};t.forEach(o=>window.addEventListener(o,r,{once:!0,passive:!0}));let d=this.router.url||window.location.pathname;if(T(d))W().then(i);else{if(E(d))return;document.readyState==="complete"?i():window.addEventListener("load",i,{once:!0})}}syncRouteFlags(t){this.trailerDetailPage=t.includes("trailer-detail"),this.blogPage=t.includes("/blog")}syncGeoViewportImages(t){if(u(this.platformId)){if(!E(t)){this.geoViewportImageLoader?.stop();return}this.geoViewportImageLoader??=new k(this.doc),this.geoViewportImageLoader.start()}}lastNavigatedPath=null;resetMainScrollOnPathChange(t){let r=t.split(/[?;#]/)[0];if(this.lastNavigatedPath!==null&&this.lastNavigatedPath!==r){let i=this.doc.getElementById("main");i&&(i.scrollTop=0)}this.lastNavigatedPath=r}ensurePublicMarketingCss(){y(this.doc,b,Y),y(this.doc,P,K),y(this.doc,w,$),this.scheduleDeferredPluginsCss()}scheduleDeferredPluginsCss(){y(this.doc,S,X,{nonBlocking:!0})}ensureStylesheetLink(t,r){y(this.doc,t,r)}applyWidgetDeferral(t){if(!D(t)){this.loadDeferredWidgets=!0,u(this.platformId)&&this.cdr.detectChanges();return}if(!u(this.platformId)){this.loadDeferredWidgets=!1;return}if(this.loadDeferredWidgets)return;let r=()=>{this.loadDeferredWidgets||(this.loadDeferredWidgets=!0,this.loadhelpguide=!0,this.cdr.detectChanges())};window.addEventListener("scroll",r,{once:!0,passive:!0}),window.addEventListener("pointerdown",r,{once:!0,passive:!0}),window.addEventListener("keydown",r,{once:!0})}ngOnDestroy(){this.isDestroyed=!0,this.geoViewportImageLoader?.stop(),this.geoViewportImageLoader=null,this.faProLink?.remove(),this.faProLink=null,this.removeStylesheetLink("fa-light-nav-css","fa-light-nav.css"),this.removeStylesheetLink(b,"plugins-critical.css"),this.removeStylesheetLink(S,"plugins-deferred.css"),this.removeStylesheetLink("nt-public-plugins-css","plugins.css"),this.removeStylesheetLink(P,"style.min.css"),this.removeStylesheetLink(w,"public-mobile-viewport-fix.css")}removeStylesheetLink(t,r){this.doc.getElementById(t)?.remove(),this.doc.querySelectorAll(`link[rel="stylesheet"][href*="${r}"]`).forEach(i=>i.remove())}onComponentHeaderLoaded(t){j.hideLoader(),setTimeout(()=>this.updateComponentSequence(),0),setTimeout(()=>{this.isHeadLoaded=!0,this.cdr.detectChanges()},0),setTimeout(()=>this.loaderService.setLoaderState(!0),0)}updateComponentSequence(){this.componentSequenceNumber++,this.cdr.detectChanges()}onLazyComponentLoaded(){setTimeout(()=>this.updateComponentSequence(),0)}ngAfterContentInit(){if(!u(this.platformId))return;let t=!!this.doc.querySelector('link[href*="style.min.css"][rel="stylesheet"]'),r=D(this.router.url),i=()=>{if(!this.isDestroyed){if(t){this.IsLoadOtherComponents=!0,this.scriptService.load("jquery").then(()=>this.scriptService.load("appcomponent","plugins")).then(()=>{setTimeout(()=>this.updateComponentSequence(),0)}).catch(o=>console.log(o));return}this.scriptService.load("jquery").then(()=>this.scriptService.load("appcomponent","plugins")).then(()=>{this.scriptService.loadCss(!1,"plugins","plugins-deferred","style.min").then(()=>{if(this.isDestroyed){this.removeStylesheetLink(b,"plugins-critical.css"),this.removeStylesheetLink(S,"plugins-deferred.css"),this.removeStylesheetLink("nt-public-plugins-css","plugins.css"),this.removeStylesheetLink(P,"style.min.css"),this.removeStylesheetLink(w,"public-mobile-viewport-fix.css");return}setTimeout(()=>this.updateComponentSequence(),0),this.IsLoadOtherComponents=!0}).catch(o=>console.log(o))}).catch(o=>console.log(o))}},d=this.router.url||window.location.pathname;if(T(d)){W().then(i);return}if(E(d)){let o=["scroll","pointerdown","keydown"],h=()=>{o.forEach(s=>{window.removeEventListener(s,h)}),i()};o.forEach(s=>{window.addEventListener(s,h,{once:!0,passive:!0})});return}if(r){se().then(i);return}i()}static \u0275fac=function(r){return new(r||n)(f(A),f(Q),f(J),f(G),f(M),f(N))};static \u0275cmp=R({type:n,selectors:[["app-public-layout"]],decls:23,vars:6,consts:[["id","main"],["
1id","wrapper",1,"",3,"ngClass"],[1,"content"],[3,"componentName","onComponentLoaded",4,"ngIf"],[3,"url",4,"ngIf"],["href","#main","aria-label","Back to top",1,"to-top","color-bg"],["aria-hidden","true",3,"icon"],[1,"map-modal-wrap"],[1,"map-modal-wrap-overlay"],[1,"map-modal-item"],[1,"map-modal-container","fl-wrap"],[1,"map-modal-title"],["role","button","tabindex","0","aria-label","Close map dialog",1,"map-modal-close"],["aria-hidden","true",1,"far","fa-times"],[1,"map-modal","fl-wrap"],["id","singleMap","data-latitude","40.7","data-longitude","-73.1"],[1,"scrollContorl"],[3,"onComponentLoaded","componentName"],[3,"url"]],template:function(r,i){r&1&&(l(0,"div",0),p(1,"app-header"),l(2,"div",1)(3,"div",2),p(4,"router-outlet"),c(),_(5,de,1,1,"app-lazy-layout",3)(6,ce,1,1,"app-lazy-layout",3),c(),_(7,ue,1,1,"app-sub-helpmodal",4),l(8,"a",5),p(9,"fa-icon",6),c(),l(10,"div",7),p(11,"div",8),l(12,"div",9)(13,"div",10)(14,"p",11)(15,"span"),F(16,"Listing Title "),c()(),l(17,"div",12),p(18,"i",13),c(),l(19,"div",14),p(20,"div",15)(21,"div",16),c()()()()(),_(22,pe,1,1,"app-lazy-layout",3)),r&2&&(m(2),a("ngClass",i.trailerDetailPage?"wrapper-pb-70":""),m(3),a("ngIf",i.componentSequenceNumber>=3&&i.loadDeferredWidgets),m(),a("ngIf",i.componentSequenceNumber>=2&&i.loadDeferredWidgets),m(),a("ngIf",i.loadhelpguide),m(2),a("icon",i.faCaretUp),m(13),a("ngIf",i.componentSequenceNumber>=3&&i.loadDeferredWidgets))},dependencies:[oe,re,V,H,q,B,z,te,ie,Z],styles:[".gallery-item[_ngcontent-%COMP%] .gal-link[_ngcontent-%COMP%]{top:30px!important;right:30px!important}#wrapper[_ngcontent-%COMP%]{padding-top:70px}"],changeDetection:1})}return n})();export{Ue as PublicLayoutComponent};
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.