1"use strict";(self.webpackChunkmarketplace=self.webpackChunkmarketplace||[]).push([[315],{97315:(W,d,n)=>{n.r(d),n.d(d,{MarketplaceListingPreviewComponent:()=>c});var h=n(84080),l=n(36895),t=n(94650),g=n(97392),m=n(51572),b=n(94778),C=n(37887),y=n(72268),_=n(6065),v=n(47713),P=n(9944),p=n(32925),O=n(77579),u=n(35684),f=n(39300),M=n(82722),E=n(63900),z=n(39841),x=n(54004),T=n(12610),w=n(17396),L=n(55e3);function D(s,i){if(1&s){const e=t.EpF();t.TgZ(0,"div",7),t.NdJ("click",function(){t.CHM(e);const o=t.oxw();return t.KtG(o.handleClose())}),t.TgZ(1,"mat-icon",8),t._uU(2,"clear"),t.qZA()()}}function A(s,i){if(1&s){const e=t.EpF();t.TgZ(0,"div",9),t.NdJ("click",function(){t.CHM(e);const o=t.oxw();return t.KtG(o.handleClose())}),t.TgZ(1,"span"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-icon"),t._uU(5,"clear"),t.qZA()()}2&s&&(t.xp6(2),t.Oqu(t.lcZ(3,1,"actions.close")))}function I(s,i){1&s&&(t.TgZ(0,"div",10),t._UZ(1,"mat-spinner",11),t.qZA())}const B=function(s,i,e){return{"overlay-height":s,"overlay-height-full":i,height:e}};function U(s,i){if(1&s){const e=t.EpF();t.TgZ(0,"div",12),t.ynx(1,13),t.NdJ("attached",function(o){t.CHM(e);const r=t.oxw();return t.KtG(r.componentAttached(o))}),t.BQk(),t.qZA()}if(2&s){const e=t.oxw();t.Q6J("ngClass",t.kEZ(2,B,!e.isUSDomain,e.isUSDomain,e.height?e.height:null)),t.xp6(1),t.Q6J("cdkPortalOutlet",e.listingCmp)}}function k(s,i){}
1function S(s,i){if(1&s&&(t.TgZ(0,"div",14),t.YNc(1,k,0,0,"ng-template",15),t.qZA()),2&s){const e=i.ngIf;t.xp6(1),t.Q6J("cdkPortalOutlet",e)}}const j=function(s,i){return{"bztt-rounded-t-lg bztt-bg-[#f9f9f9] bztt-pt-11":s," bztt-bg-white":i}};class c{constructor(){this.close=new t.vpe,this.inquirySent=new t.vpe,this.showGallery=!1,this.showTitle=!1,this.recommendationType=!1,this.inquiryDisabled=!1,this.vcr=(0,t.f3M)(t.s_b),this.injector=(0,t.f3M)(t.zs3),this.listingId=(0,t.f3M)("LISTING_ID"),this.cd=(0,t.f3M)(t.sBO),this.servicesService=(0,t.f3M)(v.rm),this.authService=(0,t.f3M)(C.Pr),this.layoutService=(0,t.f3M)(T.v),this.reviewService=(0,t.f3M)(_.Y0),this.document=(0,t.f3M)(l.K0),this.domainCountry=(0,t.f3M)(v.gn),this.mobileMenuBottomPortal=this.layoutService.mobileMenuComponentPortal,this.messageOverlayExtended=!1,this.messageOverlayFullHeight=!1,this.expandedBackdrop=!1,this.isUSDomain="us"===this.domainCountry,this.destroy$=new O.x}set assistantChat(i){this._assistantChatComponent=i}ngOnInit(){this.initListing()}expandAnimationEnd(){this.messageOverlayExtended&&(document.getElementsByClassName("message-container")[0].style.setProperty("top","0"),this.expandedBackdrop=!0),this.setHeightTransitionAnimation("remove")}shirnkAnimationStart(){this.messageOverlayExtended||(this.expandedBackdrop=!1,document.getElementsByClassName("message-container")[0].style.removeProperty("top"))}handleClose(){this.close.emit()}componentAttached(i){const e=null==i?void 0:i.instance;!e||(e.inquirySentData$&&i.instance.inquirySentData$.subscribe(a=>{this.inquirySent.emit(a)}),e.showBookATourModal$&&i.instance.showBookATourModal$.pipe((0,u.T)(1),(0,f.h)(a=>!1===a),(0,M.R)(this.destroy$)).subscribe(()=>this.close.emit()),e.getAQuoteFlowOpen$&&i.instance.getAQuoteFlowOpen$.pipe((0,u.T)(1),(0,f.h)(a=>!1===a),(0,M.R)(this.destroy$)).subscribe(()=>this.close.emit()),Object.prototype.hasOwnProperty.call(e,"recommendationType")&&(e.recommendationType=this.recommendationType))}extendMessageOverlay(){this.setHeightTransitionAnimation("add"),this.messageOverlayExtended=!0}collapseMessageOverlay(){this.setHeightTransitionAnimation("add"),this.messageOverlayExtended=!1}setHeightTransitionAnimation(i){const e=["bztt-duration-300","bztt-transition-[height]"],o=document.getElementsByClassName("message-container")[0];"add"===i?o.classList.add(...e):o.classList.remove(...e)}
1messageCountHandler(i){this.messageOverlayFullHeight=i>1}initListing(){this.combinedListingObs().subscribe({next:({listingData:i,userData:e,breezitReviews:a,thirdPartyReviews:o})=>{const r=_.XZ.averageRating(o,a.reviewsBase),K=t.zs3.create({providers:[{provide:b.gz,useValue:{snapshot:{params:{type:i.customPricing?"wedding":"general"},data:{listing:{serviceEvent:{...i,avgRating:"-"!==(null==r?void 0:r.rating)?r:null},service:i.serviceBase,previewMode:!0,showGallery:this.showGallery,showTitle:this.showTitle,inquiryDisabled:this.inquiryDisabled},checker:!0}}}}],parent:this.injector}),R=new h.C5(w.Y,this.vcr,K);this.currentUserId=(null==e?void 0:e._id)||this.authService.unauthId,this.listingCmp=R,this.mobileMenuBottomPortal=this.layoutService.mobileMenuComponentPortal,this.listingName=this.servicesService.extractServiceEventName(i.serviceBase,i._id),this.listingData=i,this.cd.detectChanges()}})}combinedListingObs(){return this.servicesService.getMarketplaceListing(this.listingId).pipe((0,E.w)(i=>(0,z.a)([this.reviewService.getServiceReviews(i.serviceBase._id),this.reviewService.getThirdPartyReviews(i.serviceBase._id),this.authService.getCurrentUser()]).pipe((0,x.U)(([e,a,o])=>({listingData:i,breezitReviews:e,thirdPartyReviews:a,userData:o})))))}}c.\u0275fac=function(i){return new(i||c)},c.\u0275cmp=t.Xpm({type:c,selectors:[["marketplace-listing-preview"]],viewQuery:function(i,e){if(1&i&&t.Gf(y.VM,5),2&i){let a;t.iGM(a=t.CRH())&&(e.assistantChat=a.first)}},inputs:{showGallery:"showGallery",showTitle:"showTitle",recommendationType:"recommendationType",inquiryDisabled:"inquiryDisabled",height:"height"},outputs:{close:"close",inquirySent:"inquirySent"},standalone:!0,features:[t.jDz],decls:8,vars:13,consts:[["type","global","backdropClass","orange-backdrop",3,"bottom","height","closed"],["class","bztt-absolute bztt-cursor-pointer bztt-top-2 bztt-z-30 bztt-right-3 bztt-justify-self-end bztt-rounded-full bztt-w-9 bztt-h-9 bztt-bg-white bztt-flex bztt-justify-center bztt-items-center",3,"click",4,"ngIf"],["id","main-container",1,"bztt-relative","bztt-w-full","md:bztt-max-w-[90rem]","md:bztt-mx-auto",3,"ngClass"],["class","close-wrapper bztt-absolute bztt-right-2 bztt-top-2 bztt-z-10",3,"click",4,"ngIf"],["class","loader-container bztt-flex bztt-justify-center bztt-items-center overlay-height-full",4,"ngIf"],["class","bztt-w-full bztt-overflow-y-auto",3,"ngClass",4,"ngIf"],["class","mobile-bottom-sticky-menu md:bztt-hidden",4,"ngIf"],[1,"bztt-absolute","bztt-cursor-pointer","bztt-top-2","bztt-z-30","bztt-right-3","bztt-justify-self-end","bztt-rounded-full","bztt-w-9","bztt-h-9","bztt-bg-white","bztt-flex","bztt-justify-center","bztt-items-center",3,"click"],[1,"bztt-text-[#ACACAC]","bztt-text-lg","bztt-flex","bztt-items-center","bztt-justify-center"],[1,"close-wrapper","bztt-absolute","bztt-right-2","bztt-top-2","bztt-z-10",3,"click"],[1,"loader-container","bztt-flex","bztt-justify-center","bztt-items-center","overlay-height-full"],["diameter","50"],[1,"bztt-w-full","bztt-overflow-y-auto",3,"ngClass"],[3,"cdkPortalOutlet","attached"],[1,"mobile-bottom-sticky-menu","md:bztt-hidden"],[3,"cdkPortalOutlet"]],template:function(i,e){1&i&&(t.TgZ(0,"jarvis-overlay",0),t.NdJ("closed",function(){return e.handleClose()}),t.YNc(1,D,3,0,"div",1),t.TgZ(2,"div",2),t.YNc(3,A,6,3,"div",3),t.YNc(4,I,2,0,"div",4),t.YNc(5,U,2,6,"div",5),t.YNc(6,S,2,1,"div",6),t.ALo(7,"async"),t.qZA()()),2&i&&(t.Q6J("bottom",0)("height",e.height?e.height:e.isUSDomain?"calc(100% - 50px)":null),t.xp6(1),t.Q6J("ngIf",e.isUSDomain),t.xp6(1),t.Q6J("ngClass",t.WLB(10,j,!e.isUSDomain,e.isUSDomain)),t.xp6(1),t.Q6J("ngIf",!e.isUSDomain),t.xp6(1),t.Q6J("ngIf",!e.listingCmp),t.xp6(1),t.Q6J("ngIf",e.listingCmp),t.xp6(1),t.Q6J("ngIf",t.lcZ(7,8,e.mobileMenuBottomPortal)))},dependencies:[l.ez,l.mk,l.O5,l.Ov,P.JarvisOverlayComponent,L.ListingModule,h.eL,h.Pl,p.aw,p.X$,g.Ps,g.Hw,m.Cq,m.Ou],styles:[".mobile-bottom-sticky-menu[_ngcontent-%COMP%]{display:flex;flex-shrink:0;position:-webkit-sticky;position:sticky;bottom:0;min-height:80px;align-items:center;background-color:#fff;border-top:solid 1px #ddd;z-index:9999}.mobile-bottom-sticky-menu.hidden[_ngcontent-%COMP%]{z-index:initial}.overlay-height[_ngcontent-%COMP%]{height:calc(100vh - 250px);height:calc(100dvh - 250px)}.overlay-height-full[_ngcontent-%COMP%]{height:calc(100vh - 200px);height:calc(100dvh - 200px)}@media (min-width: 768px){.overlay-height-full[_ngcontent-%COMP%]{height:calc(100vh - 80px);height:calc(100dvh - 50px)}}.loader-container[_ngcontent-%COMP%] mat-spinner[_ngcontent-%COMP%]{--mdc-circular-progress-active-indicator-color: #ef5518}.close-wrapper[_ngcontent-%COMP%]{height:30px;cursor:pointer;color:#222;display:flex;align-items:center;justify-content:flex-end}.close-wrapper[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-family:Montserrat;font-size:14px;text-decoration:underline;font-weight:600;margin-right:4px}.close-wrapper[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{transition:transform .15s linear}.message-shadow[_ngcontent-%COMP%]{box-shadow:0 -3px 13px 2px #dadada80,0 -17px 50px #0006}.message-container[_ngcontent-%COMP%]{--dynamic-fixed-height: 100%}.message-container.expanded[_ngcontent-%COMP%]{min-height:100px;height:var(--dynamic-fixed-height)}"]})}}]);
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.