1"use strict";(self.webpackChunkyumapos_web_client_mobile=self.webpackChunkyumapos_web_client_mobile||[]).push([[5255],{35255(Xn,P,r){r.r(P),r.d(P,{DialogPromoDetailsComponent:()=>bn});var c=r(85802),D=r(34006),F=r(93049),g=r(68018),M=r(85988),T=r(30995),m=r(17705),C=r(32271),d=r(73262),R=r(23070),y=r(63639),I=r(49655),x=r(74541),E=r(7843),k=r(72627),S=r(60177),n=r(35547),O=r(89079),w=r(7673),W=r(40605),j=r(99172),$=r(96354),V=r(23294),b=r(44668),X=r(30477),u=r(96461),p=r(41316),N=r(82494);function G(e,o){if(1&e&&n.EFF(0),2&e){const t=n.XpG().$implicit;n.Lme(" ",t.timePeriod.startDateLocalizedTime," - ",t.timePeriod.endDateLocalizedTime," ")}}function L(e,o){if(1&e&&n.EFF(0),2&e){const t=n.XpG(2);n.SpI(" ",t.noTimePeriodsText()," ")}}function A(e,o){if(1&e&&(n.rj2(0,"tr")(1,"td",3),n.EFF(2),n.nI1(3,"translate"),n.eux(),n.rj2(4,"td",4),n.nVh(5,G,1,2)(6,L,1,1),n.eux(),n.Hgh(7,"td",5),n.eux()),2&e){const t=o.$implicit,i=n.XpG();n.AVh("current-week-day",i.currentWeekDay()===t.weekDay),n.R7$(2),n.SpI(" ",n.bMT(3,4,"WEEK_DAYS.WEEK_DAY_"+t.weekDay)," "),n.R7$(3),n.vxM(t.timePeriod?5:6)}}function z(e,o){1&e&&n.Hgh(0,"meta",2),2&e&&n.BMQ("content",o.$implicit)}let B=(()=>{class e{constructor(){this.timePeriods=m.hFB.required(),this.noTimePeriodsText=(0,m.hFB)("-"),this.renderOpeningHoursMetaTag=(0,m.hFB)(!1),this.showNotWorkingDays=(0,m.hFB)(!0),this.timePeriodsViewInfo=(0,C.EW)(()=>{const i=new Map;for(const s of this.timePeriods()){const l=p.r.weekSecondsToWeekday(s.secondsInWeekFrom);let _=i.get(l);void 0===_&&(_=[],i.set(l,_)),_.push(s)}let a=[];for(const[s,l]of i){const f=i.get(s===u.J.sunday?u.J.monday:s+1)??[];let h,v;2===l.length?(h=l[1].secondsInWeekFrom,v=2===f.length?f[0].secondsInWeekTo:l[1].secondsInWeekTo):(h=l[0].secondsInWeekFrom,v=2===f.length?f[0].secondsInWeekTo:l[0].secondsInWeekTo),a.push({weekDay:s,timePeriod:{startDateLocalizedTime:p.r.weekSecondsToTimeLocalized(h,this.localeWithExtensions),endDateLocalizedTime:p.r.weekSecondsToTimeLocalized(v,this.localeWithExtensions)}})}return a=this.showNotWorkingDays()?Object.values(u.J).map(s=>({weekDay:s,timePeriod:a.find(l=>l.weekDay===s)?.timePeriod})):a.sort((s,l)=>s.weekDay-l.weekDay),a}),this.microdataInfo=(0,C.EW)(()=>{if(this.renderOpeningHoursMetaTag())return this.timePeriods().map(i=>{const a=p.r.weekSecondsToWeekday(i.secondsInWeekFrom);return`${N.f.getWeekDayTwoLetters(a)} ${p.r.weekSecondsToTime24Hours(i.secondsInWeekFrom)}-${p.r.weekSecondsToTime24Hours(i.secondsInWeekTo)}`})}),this.localeWithExtensions=(0,c.WQX)(X.t);const t=(0,c.WQX)(n.Agw);if(void 0===e.currentWeekDay){let i;i=(0,S.Vy)(t)?(0,w.of)(void 0):(0,W.Y)(1e3).pipe((0,j.Z)(void 0),(0,$.T)(()=>{}));const a=i.pipe((0,$.T)(()=>{const s=(new Date).getDay();return 0===s?u.J.sunday:s}),(0,V.F)(),(0,b.t)({refCount:!0,bufferSize:1}));e.currentWeekDay=(0,O.ot)(a,{requireSync:!0})}this.currentWeekDay=e.currentWeekDay}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=n.VBU({type:e,selectors:[["yp-time-periods"]],inputs:{timePeriods:[1,"timePeriods"],noTimePeriodsText:[1,"noTimePeriodsText"],renderOpeningHoursMetaTag:[1,"renderOpeningHoursMetaTag"],showNotWorkingDays:[1,"showNotWorkingDays"]},decls:5,vars:0,consts:[[1,"table","mb-0","working-hours"],[3,"current-week-day"],["itemprop","openingHours"],[1,"pe-3","fw-bold","text-uppercase","day-of-week"],[1,"text-nowrap","text-center"],[1,"last-column"]],template:function(i,a){1&i&&(n.rj2(0,"table",0),n.Z7z(1,A,8,6,"tr",1,n.fX1),n.eux(),n.Z7z(3,z,1,1,"meta",2,n.fX1)),2&i&&(n.R7$(),n.Dyx(a.timePeriodsViewInfo()),n.R7$(2),n.Dyx(a.microdataInfo()))},dependencies:[g.D9],styles:[".working-hours[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-block:.25rem;padding-inline:0}.working-hours[_ngcontent-%COMP%] .last-column[_ngcontent-%COMP%]{width:100%}.working-hours[_ngcontent-%COMP%] .day-of-week[_ngcontent-%COMP%]{color:var(--yp-body-color-shift7)}"],changeDetection:0})}}return e})();const U=e=>({quantity:e});function J(e,o){if(1&e&&(n.j41(0,"div",2)(1,"div",6),n.nrm(2,"yp-image",7),n.k0s()()),2&e){const t=n.XpG(),i=n.r8f(0);n.R7$(2),n.Y8G("image",i.imageDto)("imageSize",t.ImageSize.lg)("imageFileFormat",t.ImageFileFormat.jpe)("placeholderImageUrl","/assets/images/promo_placeholder_16x9.png")("imageAltText",t.promo.name)}}function H(e,o){if(1&e&&(n.j41(0,"div",3)(1,"h1"),n.EFF(2),n.k0s()()),2&e){n.XpG();const t=n.r8f(0);n.R7$(2),n.JRh(t.name)}}function Q(e,o){if(1&e&&(n.EFF(0),n.nI1(1,"ypCurrency")),2&e){n.XpG(3);const t=n.r8f(1);n.SpI(" ",n.bMT(1,1,t.awardCurrencyDataInCents)," ")}}function Z(e,o){if(1&e&&n.EFF(0),2&e){n.XpG(3);const t=n.r8f(1);n.SpI(" ",t.awardPercentData,"% ")}}function Y(e,o){if(1&e&&n.EFF(0),2&e){const t=n.XpG().$implicit;n.SpI(" x",t.qty," ")}}function K(e,o){if(1&e&&(n.j41(0,"span"),n.EFF(1),n.nVh(2,Y,1,1),n.EFF(3),n.k0s()),2&e){const t=o.$implicit,i=o.$index,a=o.$count;
1n.R7$(),n.SpI(" ",t.name," "),n.R7$(),n.vxM(t.qty?2:-1),n.R7$(),n.SpI(" ",i===a-1?"":", "," ")}}function q(e,o){if(1&e&&n.Z7z(0,K,4,3,"span",null,n.fX1),2&e){n.XpG(3);const t=n.r8f(1);n.Dyx(t.awardRelevantFreeMenuItems)}}function nn(e,o){if(1&e&&(n.j41(0,"div")(1,"span",9),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.j41(4,"span"),n.EFF(5),n.nI1(6,"translate"),n.nVh(7,Q,2,3),n.nVh(8,Z,1,1),n.nVh(9,q,2,0),n.k0s()()),2&e){n.XpG(2);const t=n.r8f(1);n.R7$(2),n.SpI(" ",n.bMT(3,5,"PROMO.PROMO_TYPE"),": "),n.R7$(3),n.SpI(" ",n.bMT(6,7,t.awardTitle)," "),n.R7$(2),n.vxM(t.awardCurrencyDataInCents?7:-1),n.R7$(),n.vxM(t.awardPercentData?8:-1),n.R7$(),n.vxM(t.awardRelevantFreeMenuItems?9:-1)}}function en(e,o){1&e&&(n.j41(0,"div")(1,"span",9),n.EFF(2),n.nI1(3,"translate"),n.k0s()()),2&e&&(n.R7$(2),n.JRh(n.bMT(3,1,"PROMO.APPLIES_TO_ALL_ITEMS")))}function tn(e,o){if(1&e&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&e){const t=o.$implicit,i=o.$index,a=o.$count;n.R7$(),n.Lme(" ",t.name,"",i===a-1?"":", "," ")}}function on(e,o){if(1&e&&(n.j41(0,"div")(1,"span",9),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.Z7z(4,tn,2,2,"span",null,n.fX1),n.k0s()),2&e){n.XpG(2);const t=n.r8f(0);n.R7$(2),n.JRh(n.bMT(3,1,"PROMO.APPLIES_TO_CATEGORIES")),n.R7$(2),n.Dyx(t.relevantMenuCategories)}}function an(e,o){if(1&e&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&e){const t=o.$implicit,i=o.$index,a=o.$count;n.R7$(),n.Lme(" ",t.name,"",i===a-1?"":", "," ")}}function rn(e,o){if(1&e&&(n.j41(0,"div")(1,"span",9),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.Z7z(4,an,2,2,"span",null,n.fX1),n.k0s()),2&e){n.XpG(2);const t=n.r8f(0);n.R7$(2),n.JRh(n.bMT(3,1,"PROMO.EXCLUDED_ITEMS")),n.R7$(2),n.Dyx(t.relevantExcludedMenuItems)}}function sn(e,o){if(1&e&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&e){const t=o.$implicit,i=o.$index,a=o.$count;n.R7$(),n.Lme(" ",t.name,"",i===a-1?"":", "," ")}}function ln(e,o){if(1&e&&(n.j41(0,"div")(1,"span",9),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.Z7z(4,sn,2,2,"span",null,n.fX1),n.k0s()),2&e){n.XpG(2);const t=n.r8f(0);n.R7$(2),n.JRh(n.bMT(3,1,"PROMO.APPLIES_TO_MENU_ITEMS")),n.R7$(2),n.Dyx(t.relevantMenuItems)}}function mn(e,o){if(1&e&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&e){const t=n.XpG().$implicit;n.R7$(),n.SpI(" x ",t.qty)}}function dn(e,o){1&e&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&e&&(n.R7$(),n.JRh(", "))}function pn(e,o){if(1&e&&(n.j41(0,"span"),n.EFF(1),n.k0s(),n.nVh(2,mn,2,1,"span"),n.nVh(3,dn,2,1,"span")),2&e){const t=o.$implicit,i=o.$index,a=o.$count;n.R7$(),n.JRh(t.name),n.R7$(),n.vxM(t.qty?2:-1),n.R7$(),n.vxM(i!==a-1?3:-1)}}function _n(e,o){if(1&e&&(n.j41(0,"div")(1,"span"),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.Z7z(4,pn,4,3,null,null,n.fX1),n.k0s()),2&e){n.XpG(3);const t=n.r8f(0);n.R7$(2),n.SpI("- ",n.bMT(3,1,"PROMO.APPLIES_TO.CATEGORIES"),": "),n.R7$(2),n.Dyx(t.relevantSetCategories)}}function cn(e,o){if(1&e&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&e){const t=n.XpG().$implicit;n.R7$(),n.SpI(" x ",t.qty)}}function Cn(e,o){1&e&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&e&&(n.R7$(),n.JRh(", "))}function un(e,o){if(1&e&&(n.j41(0,"span"),n.EFF(1),n.k0s(),n.nVh(2,cn,2,1,"span"),n.nVh(3,Cn,2,1,"span")),2&e){const t=o.$implicit,i=o.$index,a=o.$count;n.R7$(),n.JRh(t.name),n.R7$(),n.vxM(t.qty?2:-1),n.R7$(),n.vxM(i!==a-1?3:-1)}}function fn(e,o){if(1&e&&(n.j41(0,"div")(1,"span"),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.Z7z(4,un,4,3,null,null,n.fX1),n.k0s()),2&e){n.XpG(3);const t=n.r8f(0);n.R7$(2),n.SpI("- ",n.bMT(3,1,"PROMO.APPLIES_TO.MENU_ITEMS"),": "),n.R7$(2),n.Dyx(t.relevantSetItems)}}function gn(e,o){if(1&e&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&e){const t=n.XpG().$implicit;n.R7$(),n.SpI(" x ",t.qty)}}function Tn(e,o){1&e&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&e&&(n.R7$(),n.JRh(", "))}function hn(e,o){if(1&e&&(n.j41(0,"span"),n.EFF(1),n.k0s(),n.nVh(2,gn,2,1,"span"),n.nVh(3,Tn,2,1,"span")),2&e){const t=o.$implicit,i=o.$index,a=o.$count;n.R7$(),n.JRh(t.name),n.R7$(),n.vxM(t.qty?2:-1),n.R7$(),n.vxM(i!==a-1?3:-1)}}function vn(e,o){if(1&e&&(n.j41(0,"div")(1,"span"),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.Z7z(4,hn,4,3,null,null,n.fX1),n.k0s()),2&e){n.XpG(3);const t=n.r8f(0);n.R7$(2),n.SpI("- ",n.bMT(3,1,"PROMO.APPLIES_TO.MENU_ITEMS_WITH_TAG"),": "),n.R7$(2),n.Dyx(t.relevantSetTags)}}function Pn(e,o){if(1&e&&(n.j41(0,"div")(1,"div",9),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.nVh(4,_n,6,3,"div"),n.nVh(5,fn,6,3,"div"),n.nVh(6,vn,6,3,"div"),n.k0s()),2&e){n.XpG(2);const t=n.r8f(0);n.R7$(2),n.JRh(n.bMT(3,4,"PROMO.APPLIES_TO_SET")),n.R7$(2),n.vxM(t.relevantSetCategories.length>0?4:-1),n.R7$(),n.vxM(t.relevantSetItems.length>0?5:-1),n.R7$(),n.vxM(t.relevantSetTags.length>0?6:-1)}}function In(e,o){if(1&e&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&e){const t=o.$implicit,i=o.$index,a=o.$count;n.R7$(),n.Lme("",t.name,"",i===a-1?"":", ")}}function $n(e,o){if(1&e&&(n.j41(0,"div")(1,"span"),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.Z7z(4,In,2,2,"span",null,n.fX1),n.k0s()),2&e){n.XpG(3);const t=n.r8f(0);n.R7$(2),n.SpI("- ",n.bMT(3,1,"PROMO.APPLIES_TO.CATEGORIES"),": "),n.R7$(2),n.Dyx(t.relevantSetItemsWithCommonQuantity.relevantMenuCategories)}}function Dn(e,o){if(1&e&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&e){const t=o.$implicit,i=o.$index,a=o.$count;n.R7$(),n.Lme("",t.name,"",i===a-1?"":", ")}}function Fn(e,o){if(1&e&&(n.j41(0,"div")(1,"span"),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.Z7z(4,Dn,2,2,"span",null,n.fX1),n.k0s()),2&e){n.XpG(3);const t=n.r8f(0);n.R7$(2),n.SpI("- ",n.bMT(3,1,"PROMO.APPLIES_TO.MENU_ITEMS"),": "),n.R7$(2),n.Dyx(t.relevantSetItemsWithCommonQuantity.relevantMenuItems)}}function Mn(e,o){if(1&e&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&e){const t=o.$implicit,i=o.$index,a=o.$count;n.R7$(),n.Lme("",t.name,"",i===a-1?"":", ")}}function Rn(e,o){if(1&e&&(n.j41(0,"div")(1,"span"),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.Z7z(4,Mn,2,2,"span",null,n.fX1),n.k0s()),2&e){n.XpG(3);const t=n.r8f(0);n.R7$(2),n.SpI("- ",n.bMT(3,1,"PROMO.APPLIES_TO.MENU_ITEMS_WITH_TAG"),": "),n.R7$(2),n.Dyx(t.relevantSetItemsWithCommonQuantity.relevantMenuTags)}}function yn(e,o){if(1&e&&(n.j41(0,"div")(1,"div",9),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.nVh(4,$n,6,3,"div"),n.nVh(5,Fn,6,3,"div"),n.nVh(6,Rn,6,3,"div"),n.k0s()),2&e){n.XpG(2);const t=n.r8f(0);n.R7$(2),n.JRh(n.i5U(3,4,"PROMO.APPLIES_TO_SET_QTY",n.eq3(7,U,t.relevantSetItemsWithCommonQuantity.qty))),n.R7$(2),n.vxM(t.relevantSetItemsWithCommonQuantity.relevantMenuCategories.length>0?4:-1),n.R7$(),n.vxM(t.relevantSetItemsWithCommonQuantity.relevantMenuItems.length>0?5:-1),n.R7$(),n.vxM(t.relevantSetItemsWithCommonQuantity.relevantMenuTags.length>0?6:-1)}}function xn(e,o){if(1&e&&(n.j41(0,"div"),n.EFF(1),n.nI1(2,"translate"),n.nI1(3,"ypCents"),n.nI1(4,"ypCurrency"),n.k0s()),2&e){n.XpG(2);const t=n.r8f(0);n.R7$(),n.Lme(" ",n.bMT(2,2,"PROMO.FROM_SUM")," ",n.bMT(4,6,n.bMT(3,4,t.receiptTermTotalCost))," ")}}function En(e,o){if(1&e&&(n.j41(0,"div",1)(1,"div",8),n.nVh(2,nn,10,9,"div"),n.nVh(3,en,4,3,"div"),n.nVh(4,on,6,3,"div"),n.nVh(5,rn,6,3,"div"),n.nVh(6,ln,6,3,"div"),n.nVh(7,Pn,7,6,"div"),n.nVh(8,yn,7,9,"div"),n.nVh(9,xn,5,8,"div"),n.k0s()()),2&e){const t=n.XpG(),i=n.r8f(0),a=n.r8f(1);n.R7$(2),n.vxM(a.awardTitle?2:-1),n.R7$(),n.vxM(t.appliesToAllItems()?3:-1),n.R7$(),n.vxM(i.relevantMenuCategories.length?4:-1),n.R7$(),n.vxM(i.relevantExcludedMenuItems.length?5:-1),n.R7$(),n.vxM(i.relevantMenuItems.length?6:-1),n.R7$(),n.vxM(i.relevantSetCategories.length>0||i.relevantSetItems.length>0||i.relevantSetTags.length>0?7:-1),n.R7$(),n.vxM(i.relevantSetItemsWithCommonQuantity?8:-1),n.R7$(),n.vxM(i.receiptTermTotalCost?9:-1)}}function kn(e,o){if(1&e){const t=n.RV6();n.j41(0,"div",5)(1,"button",10),n.bIt("click",function(){c.eBV(t);const a=n.XpG();return c.Njj(a.orderBtnClick.emit())}),n.EFF(2),n.nI1(3,"translate"),n.k0s()()}2&e&&(n.R7$(2),n.SpI(" ",n.bMT(3,1,"MAIN.MENU")," "))}function Sn(e,o){if(1&e&&(n.j41(0,"div",1)(1,"div",2)(2,"h4",11),n.EFF(3),n.nI1(4,"translate"),n.k0s(),n.nrm(5,"yp-time-periods",12),n.nI1(6,"translate"),n.k0s()()),2&e){n.XpG();const t=n.r8f(0);n.R7$(3),n.JRh(n.bMT(4,3,"PROMO.TIME_PERIOD.TITLE")),n.R7$(2),n.Y8G("timePeriods",t.timePeriods)("noTimePeriodsText",n.bMT(6,5,"PROMO.TIME_PERIOD.INACTIVE"))}}let On=(()=>{class e{constructor(){this.promo=m.hFB.required(),this.renderPromoName=m.hFB.required(),this.showOrderButton=(0,m.hFB)(!1),this.orderBtnClick=(0,m.CGW)(),this.ImageSize=y.h,this.ImageFileFormat=R.F,this.appliesToAllItems=(0,C.EW)(()=>{const t=this.promo();return 0===t.relevantExcludedMenuItems.length&&0===t.relevantMenuCategories.length&&0===t.relevantMenuItems.length&&0===t.relevantSetItems.length&&0===t.relevantSetCategories.length&&0===t.relevantSetTags.length&&void 0===t.relevantSetItemsWithCommonQuantity}
1),this.awardDetails=(0,C.EW)(()=>{let t,i,a,s;const l=this.promo();switch(l.awardType){case d.h.priceReduction:t="PROMO.DISCOUNT",i=void 0!==l.awardValue?(0,I._P)(l.awardValue):void 0;break;case d.h.percentReduction:t="PROMO.DISCOUNT",a=l.awardValue;break;case d.h.specifiedPrice:break;case d.h.points:t="PROMO.EARN_POINTS",i=void 0!==l.awardValue?(0,I._P)(l.awardValue):void 0;break;case d.h.freeItems:t="PROMO.FREE_ITEMS",s=l.relevantFreeMenuItems}return{awardTitle:t,awardCurrencyDataInCents:i,awardPercentData:a,awardRelevantFreeMenuItems:s}})}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=n.VBU({type:e,selectors:[["yp-promo-campaign-details"]],inputs:{promo:[1,"promo"],renderPromoName:[1,"renderPromoName"],showOrderButton:[1,"showOrderButton"]},outputs:{orderBtnClick:"orderBtnClick"},decls:11,vars:8,consts:[[1,"cards-container"],[1,"yp-card"],[1,"yp-card-content"],[1,"yp-card-title"],[1,"yp-card-content","text-pre-line"],[1,"text-center","my-3"],[1,"yp-card-image"],[3,"image","imageSize","imageFileFormat","placeholderImageUrl","imageAltText"],[1,"yp-card-content","d-flex","flex-column","gap-2"],[1,"promo-details-section-title"],["type","button",1,"yp-btn","yp-btn-lg","yp-btn-primary","yp-btn-mw-lg",3,"click"],[1,"mb-3","fs-5"],[3,"timePeriods","noTimePeriodsText"]],template:function(i,a){if(1&i&&(n.SS7(0)(1),n.j41(2,"div",0)(3,"div",1),n.nVh(4,J,3,5,"div",2),n.nVh(5,H,3,1,"div",3),n.j41(6,"div",4),n.EFF(7),n.k0s()(),n.nVh(8,En,10,8,"div",1),n.nVh(9,kn,4,3,"div",5),n.nVh(10,Sn,7,7,"div",1),n.k0s()),2&i){const s=n.bH3(a.promo());n.R7$(),n.bH3(a.awardDetails()),n.R7$(3),n.vxM(s.imageDto?4:-1),n.R7$(),n.vxM(a.renderPromoName()?5:-1),n.R7$(2),n.SpI(" ",s.description," "),n.R7$(),n.vxM(s.timePeriods.length?8:-1),n.R7$(),n.vxM(a.showOrderButton()?9:-1),n.R7$(),n.vxM(s.timePeriods.length?10:-1)}},dependencies:[B,k.h,g.D9,E.o,x.E],styles:[".promo-details-section-title[_ngcontent-%COMP%]{font-weight:var(--yp-fw-medium)}"],changeDetection:0})}}return e})();const wn=()=>["/"];function Wn(e,o){1&e&&(n.j41(0,"yp-dialog-header"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&e&&(n.R7$(),n.SpI(" ",n.bMT(2,1,"PROMO.DETAILS.TITLE")," "))}function jn(e,o){1&e&&(n.j41(0,"div",3)(1,"a",5),n.EFF(2),n.nI1(3,"translate"),n.k0s()()),2&e&&(n.R7$(),n.Y8G("routerLink",n.lJ4(4,wn)),n.R7$(),n.SpI(" ",n.bMT(3,2,"MAIN.MENU")," "))}function Vn(e,o){1&e&&n.DNE(0,jn,4,5,"div",4)}let bn=(()=>{class e{constructor(){this.promoDialogData=(0,c.WQX)(D.Vh)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=n.VBU({type:e,selectors:[["yp-dialog-promo-details"]],decls:4,vars:4,consts:[[3,"footerUnderflowEnabled"],[4,"ypProjectedHeader"],[3,"promo","renderPromoName"],[1,"yp-bottom-buttons-wrapper"],["class","yp-bottom-buttons-wrapper",4,"ypProjectedFooter"],[1,"yp-btn","yp-btn-lg","yp-btn-primary",3,"routerLink"]],template:function(i,a){1&i&&(n.j41(0,"yp-fixed-header-footer",0),n.DNE(1,Wn,3,3,"yp-dialog-header",1),n.nrm(2,"yp-promo-campaign-details",2),n.nVh(3,Vn,1,0,"div",3),n.k0s()),2&i&&(n.Y8G("footerUnderflowEnabled",!0),n.R7$(2),n.Y8G("promo",a.promoDialogData.promotionalCampaignDetails)("renderPromoName",!0),n.R7$(),n.vxM(a.promoDialogData.showOrderButton?3:-1))},dependencies:[F.Wk,On,T.cU,M.B,T.xp,T.J0,g.D9],encapsulation:2,changeDetection:0})}}return e})()}}]);
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.