PageSourceSearch

https://www.nyx-hotels.co.uk/chunk-HWA6O7ZZ.js

js nyx-hotels.co.uk collected 2026-10-04 12:36:17 UTC 31,030 bytes, 1 lines download raw bytes

1import{a as Xe}from"./chunk-HYRWQBQX.js";import{a as Je}from"./chunk-G7HWDXYG.js";import{a as Le}from"./chunk-CVU6BAKP.js";import{a as Ze}from"./chunk-4ZMAQLDZ.js";import{b as qe,c as He}from"./chunk-5C7IIVIF.js";import{a as Ue}from"./chunk-4REVGBAF.js";import{a as Re}from"./chunk-S43KFOIR.js";import"./chunk-FC67HT63.js";import{a as ze}from"./chunk-UL57KXWH.js";import"./chunk-PLOTU5IF.js";import{b as je}from"./chunk-6I4ERTCM.js";import"./chunk-BUGMNIAA.js";import{$a as De,A as G,Aa as Pe,B as z,Bb as Ae,Ea as Ne,F as xe,G as _e,H as Me,Ib as Be,Ja as ne,K as j,L,La as H,Na as Ie,P as Se,Qa as Ee,R as Oe,S as R,T as U,U as q,_a as Z,bb as ke,d as A,db as Ve,eb as Te,tc as Ge,wa as we,x as B,xb as Fe,y as v}from"./chunk-2XDTJQ3F.js";import{Fb as ee,Fc as be,Ga as _,Ja as x,Jb as s,Ka as F,Kb as h,Lb as y,O as le,Oa as se,Sb as Ce,Tb as f,V,Xa as M,Za as S,_a as de,aa as w,ab as me,ba as P,bb as ue,c as ce,cb as p,cc as l,db as c,dc as d,eb as a,fb as m,fc as ye,gb as fe,hb as ge,ja as u,mc as te,nc as N,od as ie,pb as I,qb as he,t as K,ta as T,vb as O,wb as ve,xb as C,ya as n}from"./chunk-BGW55QON.js";import{a as k,b as Q,e as Nt,g as It}from"./chunk-IM5V7DCU.js";var _t=Nt((tn,xt)=>{var Et=1/0,Dt="[object Symbol]",kt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Vt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
17f]/g,W="\\ud800-\\udfff",rt="\\u0300-\\u036f\\ufe20-\\ufe23",at="\\u20d0-\\u20f0",pt="\\u2700-\\u27bf",ct="a-z\\xdf-\\xf6\\xf8-\\xff",Tt="\\xac\\xb1\\xd7\\xf7",Ft="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",At="\\u2000-\\u206f",Bt=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",lt="A-Z\\xc0-\\xd6\\xd8-\\xde",st="\\ufe0e\\ufe0f",dt=Tt+Ft+At+Bt,re="['\u2019]",Gt="["+W+"]",Qe="["+dt+"]",Y="["+rt+at+"]",mt="\\d+",zt="["+pt+"]",ut="["+ct+"]",ft="[^"+W+dt+mt+pt+ct+lt+"]",oe="\\ud83c[\\udffb-\\udfff]",jt="(?:"+Y+"|"+oe+")",gt="[^"+W+"]",ae="(?:\\ud83c[\\udde6-\\uddff]){2}",pe="[\\ud800-\\udbff][\\udc00-\\udfff]",D="["+lt+"]",ht="\\u200d",Ke="(?:"+ut+"|"+ft+")",Lt="(?:"+D+"|"+ft+")",et="(?:"+re+"(?:d|ll|m|re|s|t|ve))?",tt="(?:"+re+"(?:D|LL|M|RE|S|T|VE))?",vt=jt+"?",Ct="["+st+"]?",Rt="(?:"+ht+"(?:"+[gt,ae,pe].join("|")+")"+Ct+vt+")*",yt=Ct+vt+Rt,Ut="(?:"+[zt,ae,pe].join("|")+")"+yt,qt="(?:"+[gt+Y+"?",Y,ae,pe,Gt].join("|")+")",Ht=RegExp(re,"g"),Zt=RegExp(Y,"g"),Jt=RegExp(oe+"(?="+oe+")|"+qt+yt,"g"),Xt=RegExp([D+"?"+ut+"+"+et+"(?="+[Qe,D,"$"].join("|")+")",Lt+"+"+tt+"(?="+[Qe,D+Ke,"$"].join("|")+")",D+"?"+Ke+"+"+et,D+"+"+tt,mt,Ut].join("|"),"g"),Yt=RegExp("["+ht+W+rt+at+st+"]"),Wt=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$t={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"ss"},Qt=typeof global=="object"&&global&&global.Object===Object&&global,Kt=typeof self=="object"&&self&&self.Object===Object&&self,ei=Qt||Kt||Function("return this")();function ti(e,r,i,o){var t=-1,g=e?e.length:0;for(o&&g&&(i=e[++t]);++t<g;)i=r(i,e[t],t,e);return i}function ii(e){return e.split("")}function ni(e){return e.match(kt)||[]}function oi(e){return function(r){return e?.[r]}}var ri=oi($t);function bt(e){return Yt.test(e)}function ai(e){return Wt.test(e)}function pi(e){return bt(e)?ci(e):ii(e)}function ci(e){return e.match(Jt)||[]}function li(e){return e.match(Xt)||[]}var si=Object.prototype,di=si.toString,it=ei.Symbol,nt=it?it.prototype:void 0,ot=nt?nt.toString:void 0;function mi(e,r,i){var o=-1,t=e.length;r<0&&(r=-r>t?0:t+r),i=i>t?t:i,i<0&&(i+=t),t=r>i?0:i-r>>>0,r>>>=0;for(var g=Array(t);++o<t;)g[o]=e[o+r];return g}function ui(e){if(typeof e=="string")return e;if(Ci(e))return ot?ot.call(e):"";var r=e+"";return r=="0"&&1/e==-Et?"-0":r}
1function fi(e,r,i){var o=e.length;return i=i===void 0?o:i,!r&&i>=o?e:mi(e,r,i)}function gi(e){return function(r){r=$(r);var i=bt(r)?pi(r):void 0,o=i?i[0]:r.charAt(0),t=i?fi(i,1).join(""):r.slice(1);return o[e]()+t}}function hi(e){return function(r){return ti(Mi(xi(r).replace(Ht,"")),e,"")}}function vi(e){return!!e&&typeof e=="object"}function Ci(e){return typeof e=="symbol"||vi(e)&&di.call(e)==Dt}function $(e){return e==null?"":ui(e)}var yi=hi(function(e,r,i){return r=r.toLowerCase(),e+(i?bi(r):r)});function bi(e){return _i($(e).toLowerCase())}function xi(e){return e=$(e),e&&e.replace(Vt,ri).replace(Zt,"")}var _i=gi("toUpperCase");function Mi(e,r,i){return e=$(e),r=i?void 0:r,r===void 0?ai(e)?li(e):ni(e):e.match(r)||[]}xt.exports=yi});var J=class{topTitle;topSubtitle;giftVoucherDescription;topImage;backgroundImage;constructor(r){let{topTitle:i,topSubtitle:o,giftVoucherDescription:t}=r.sections,{topImage:g,backgroundImage:b}=r.pictures;this.topTitle=new H(i),this.topSubtitle=new H(o),this.giftVoucherDescription=new H(t),this.topImage=new ne(g),this.backgroundImage=new ne(b)}};var X=class extends Ne{giftVoucher;guestSubscription;constructor(r){super(r);let{giftVoucherDefault:i,guestSubscription:o}=r.modules;this.giftVoucher=new J(i),this.guestSubscription=new Ae(o)}};var Ye=(()=>{class e{topImage=N();static \u0275fac=function(o){return new(o||e)};static \u0275cmp=x({type:e,selectors:[["app-gift-voucher-title-image"]],inputs:{topImage:[1,"topImage"]},decls:6,vars:7,consts:[["app-background-image","",1,"title-image",3,"medium","mask","background","fetchPriority","loading"],[1,"container"],[1,"title-image__title"],[1,"title-image__subtitle"]],template:function(o,t){o&1&&(c(0,"div",0)(1,"div",1)(2,"div",2),s(3),a(),c(4,"div",3),s(5),a()()()),o&2&&(p("medium",t.topImage().image)("mask",!0)("background",!0)("fetchPriority","high")("loading","eager"),n(3),y(" ",t.topImage().caption," "),n(2),y(" ",t.topImage().text," "))},dependencies:[je],styles:['@font-face{font-family:Material Symbols Outlined;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/materialsymbolsoutlined/v374/kJF1BvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oDMzByHX9rA6RzaxHMPdY43zj-jCxv3fzvRNU22ZXGJpEpjC_1v-p_4MrImHCIJIZrDCvHOej.woff2) format("woff2")}.material-symbols-outlined[_ngcontent-%COMP%]{font-family:Material Symbols Outlined;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}.title-image[_ngcontent-%COMP%]{color:#fff}.title-image__title[_ngcontent-%COMP%]{font-weight:600;text-transform:uppercase;font-size:2rem;padding-top:100px;padding-bottom:10px}@media(min-width:992px){.title-image__title[_ngcontent-%COMP%]{padding-top:260px;font-size:5rem}}.title-image__subtitle[_ngcontent-%COMP%]{width:100%;padding-top:15px;padding-bottom:50px;position:relative}@media(min-width:992px){.title-image__subtitle[_ngcontent-%COMP%]{padding-bottom:160px;width:390px;font-size:1.5rem}}.title-image__subtitle[_ngcontent-%COMP%]:before{position:absolute;content:"";top:0;left:0;background-color:#fff;height:1px;width:60px}@media(min-width:992px){.title-image__subtitle[_ngcontent-%COMP%]:before{height:2px;background-color:#9b9b9be6;width:100%}}'],changeDetection:0})}return e})();function We(e){let i=e.target.closest("a");if(i?.hash){e.preventDefault();let o=i.hash.substring(1),t=document.getElementById(o);t&&t.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}}var $e=(()=>{class e{description=N.required();Layout=Pe;textTruncate=u(!1);handleEvents(i){We(i)}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=x({type:e,selectors:[["app-gift-voucher-description"]],inputs:{description:[1,"description"]},decls:6,vars:11,consts:[[1,"description"],[1,"description__text","pt-4","w-lg-75",3,"click","innerHTML"]],template:function(o,t){o&1&&(fe(0,"div",0)(1,"div",1),l(2,"layout"),l(3,"async"),l(4,"truncate"),l(5,"safeStyle"),ve("click",function(b){return t.handleEvents(b)}),ge()()),o&2&&(n(),he("innerHTML",d(5,9,ye(4,5,t.description().text,d(3,3,d(2,1,t.Layout.mobile))&&t.textTruncate(),200)),T))},dependencies:[be,Ge,ke,Le],styles:['@font-face{font-family:Material Symbols Outlined;font-style:normal;font-weight:400;
1src:url(https://fonts.gstatic.com/s/materialsymbolsoutlined/v374/kJF1BvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oDMzByHX9rA6RzaxHMPdY43zj-jCxv3fzvRNU22ZXGJpEpjC_1v-p_4MrImHCIJIZrDCvHOej.woff2) format("woff2")}.material-symbols-outlined[_ngcontent-%COMP%]{font-family:Material Symbols Outlined;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}.description__text[_ngcontent-%COMP%]     strong{font-weight:500}.description__top-title[_ngcontent-%COMP%]{text-transform:uppercase;font-weight:600;position:relative}.description__top-title[_ngcontent-%COMP%]:before{content:"";position:absolute;top:12px;left:0;height:1px;width:100%;z-index:-1;background-color:#a8abb5}@media(min-width:992px){.description__top-title[_ngcontent-%COMP%]:before{background-color:transparent}}@media(min-width:992px){.description__top-title[_ngcontent-%COMP%]{text-transform:initial;font-size:2rem;font-weight:400;position:relative;z-index:0}.description__top-title[_ngcontent-%COMP%]:after, .description__top-title[_ngcontent-%COMP%]:before{content:"";position:absolute;z-index:-1;display:block;width:63px;height:63px}.description__top-title[_ngcontent-%COMP%]:after{background:#fff;top:0;inset-inline-start:0px}.description__top-title[_ngcontent-%COMP%]:before{border:1.5px solid #000;top:-20px;inset-inline-start:-30px}}.description__top-title[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{background-color:#fff;padding-right:10px}'],changeDetection:0})}return e})();var St=It(_t());function Oi(e,r){if(e&1){let i=I();c(0,"div",4)(1,"div",23)(2,"span"),s(3),l(4,"translate"),a(),c(5,"div",24)(6,"input",25),O("change",function(t){w(i);let g=C();return P(g.onChangeSameAsBillingAddress(t.target.value))}),a(),c(7,"label",26),s(8),l(9,"translate"),a()()()()}e&2&&(n(3),y("* ",d(4,2,"digital-copy")),n(5),h(d(9,4,"digital-copy")))}var Mt=(()=>{class e{formBuilder;sectionName=N.required();parentForm=N.required();notifyParent=te();isChildComponentLoadFinish=te();sectionTitle=u(void 0);form;constructor(i){this.formBuilder=i}ngOnInit(){this.buildForm(),this.parentForm().addControl(this.sectionName(),this.form),this.sectionTitle.set(this.sectionName()+"-address"),this.isChildComponentLoadFinish.emit(!0)}buildForm(){this.form=this.formBuilder.group({salutation:[void 0,v.required],firstName:[void 0,v.required],lastName:[void 0,v.required],email:[void 0,[v.required,v.email]],phone:[void 0,[Fe]],address:[void 0,v.required],zipCode:[void 0],country:[void 0,v.required],city:[void 0,v.required],company:[void 0]})}onChangeSameAsBillingAddress(i){this.notifyParent.emit(i)}static \u0275fac=function(o){return new(o||e)(_(R))};static \u0275cmp=x({type:e,selectors:[["app-gift-voucher-section"]],inputs:{sectionName:[1,"sectionName"],parentForm:[1,"parentForm"]},outputs:{notifyParent:"notifyParent",isChildComponentLoadFinish:"isChildComponentLoadFinish"},decls:73,vars:79,consts:[[1,"mt-5",3,"formGroup"],[1,"row"],[1,"col","col-lg-6","bg-light"],[1,"mb-4"],[1,"form-group","mb-4","row"],[1,"form-group","mb-4","required","col-12","col-lg-6","mb-3","mb-lg-0"],[1,"mb-2",3,"for"],["formControlName","salutation","dictionaryName","user-salutations",3,"id"],[3,"control"],["type","text","formControlName","firstName",1,"form-control",3,"id"],[1,"form-group","mb-4","required","col-12","col-lg-6"],["type","text","formControlName","lastName",1,"form-control",3,"id"],["type","email","formControlName","email",1,"form-control",3,"id"],[1,"col-12","col-lg-6"],["type","text","formControlName","phone",1,"form-control",3,"id"],["for","country",1,"mb-2"],["formControlName","country","id","country"],["for","city",1,"mb-2"],["type","text","formControlName","city",1,"form-control",3,"id"],["type","text","formControlName","address",1,"form-control",3,"id"],[1,"form-group","mb-4","col-12","col-lg-6"],["type","text","formControlName","zipCode",1,"form-control",3,"id"],["type","text","formControlName","company",1,"form-control",3,"id"],[1,"col-12","col-lg-6","mb-3","mb-lg-0"],[1,"app-checkbox","custom-control","custom-checkbox","checkbox-control","d-none"],["type","radio","name","delivery","id","digitalCopy","checked","","disabled","","value","digital",1,"custom-control-input",3,"change"],["for","digitalCopy",1,"custom-control-label","cursor-pointer","checkbox"]],template:function(o,t){o&1&&(c(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5",3),s(4),l(5,"translate"),a()()(),c(6,"div",4)(7,"div",5)(8,"label",6),s(9),l(10,"translate"),a(),m(11,"app-select",7)(12,"app-vali
1dation-message",8),a()(),c(13,"div",4)(14,"div",5)(15,"label",6),s(16),l(17,"translate"),a(),m(18,"input",9)(19,"app-validation-message",8),a(),c(20,"div",10)(21,"label",6),s(22),l(23,"translate"),a(),m(24,"input",11)(25,"app-validation-message",8),a()(),c(26,"div",4)(27,"div",5)(28,"label",6),s(29),l(30,"translate"),a(),m(31,"input",12)(32,"app-validation-message",8),a(),c(33,"div",13)(34,"label",6),s(35),l(36,"translate"),a(),m(37,"input",14)(38,"app-validation-message",8),a()(),c(39,"div",4)(40,"div",5)(41,"label",15),s(42),l(43,"translate"),a(),m(44,"app-country-input",16)(45,"app-validation-message",8),a(),c(46,"div",5)(47,"label",17),s(48),l(49,"translate"),a(),m(50,"input",18)(51,"app-validation-message",8),a()(),c(52,"div",4)(53,"div",5)(54,"label",6),s(55),l(56,"translate"),a(),m(57,"input",19)(58,"app-validation-message",8),a(),c(59,"div",20)(60,"label",6),s(61),l(62,"translate"),a(),m(63,"input",21)(64,"app-validation-message",8),a()(),c(65,"div",4)(66,"div",13)(67,"label",6),s(68),l(69,"translate"),a(),m(70,"input",22)(71,"app-validation-message",8),a()(),M(72,Oi,10,6,"div",4),a()),o&2&&(p("formGroup",t.form),n(4),y(" ",d(5,57,t.sectionTitle())," "),n(4),p("for",f("",t.sectionName(),"[salutation]")),n(),h(d(10,59,"salutation")),n(2),p("id",f("",t.sectionName(),"[salutation]")),n(),p("control",t.form.get("salutation")),n(3),p("for",f("",t.sectionName(),"[firstName]")),n(),h(d(17,61,"first-name")),n(2),p("id",f("",t.sectionName(),"[firstName]")),n(),p("control",t.form.get("firstName")),n(2),p("for",f("",t.sectionName(),"[lastName]")),n(),h(d(23,63,"last-name")),n(2),p("id",f("",t.sectionName(),"[lastName]")),n(),p("control",t.form.get("lastName")),n(3),p("for",f("",t.sectionName(),"[email]")),n(),h(d(30,65,"email-address")),n(2),p("id",f("",t.sectionName(),"[email]")),n(),p("control",t.form.get("email")),n(2),p("for",f("",t.sectionName(),"[phone]")),n(),h(d(36,67,"phone")),n(2),p("id",f("",t.sectionName(),"[phone]")),n(),p("control",t.form.get("phone")),n(4),h(d(43,69,"country")),n(3),p("control",t.form.get("country")),n(3),h(d(49,71,"city")),n(2),p("id",f("",t.sectionName(),"[city]")),n(),p("control",t.form.get("city")),n(3),p("for",f("",t.sectionName(),"[address]")),n(),h(d(56,73,"street")),n(2),p("id",f("",t.sectionName(),"[address]")),n(),p("control",t.form.get("address")),n(2),p("for",f("",t.sectionName(),"[zipCode]")),n(),h(d(62,75,"city-zip-code")),n(2),p("id",f("",t.sectionName(),"[zipCode]")),n(),p("control",t.form.get("zipCode")),n(3),p("for",f("",t.sectionName(),"[company]")),n(),h(d(69,77,"company")),n(2),p("id",f("",t.sectionName(),"[company]")),n(),p("control",t.form.get("company")),n(),S(t.sectionName()=="billing"?72:-1))},dependencies:[U,B,G,z,q,L,j,Ve,Z,Te,A],encapsulation:2,changeDetection:0})}return e})();function wi(e,r){if(e&1){let i=I();c(0,"div",8)(1,"div",9)(2,"input",30),O("change",function(t){w(i);let g=C();return P(g.priceChange(t))}),a(),c(3,"label",31),m(4,"app-price",21),a()()()}if(e&2){let i=r.$implicit,o=r.$index,t=C();n(2),p("id",f("price",o))("value",i),n(),p("for",f("price",o)),n(),p("currencyCode",t.currencyCode())("price",i)}}function Pi(e,r){if(e&1){let i=I();c(0,"app-gift-voucher-section",32),O("notifyParent",function(t){w(i);let g=C();return P(g.onChangeSameAsBillingAddress(t))})("isChildComponentLoadFinish",function(){w(i);let t=C();return P(t.onChildComponentLoadFinish())}),a()}if(e&2){let i=C();p("sectionName","billing")("parentForm",i.form)}}function Ni(e,r){if(e&1){let i=I();c(0,"app-gift-voucher-section",33),O("isChildComponentLoadFinish",function(){w(i);let t=C();return P(t.onChildComponentLoadFinish())}),a()}if(e&2){let i=C();p("sectionName","delivery")("parentForm",i.form)}}function Ii(e,r){e&1&&m(0,"app-loader-small",29)}var Ot=(()=>{class e{formBuilder;contactService;dictionaryService;loggerService;recaptchaV3Service;form;loading=u(!1);infoCurrencyCode=u("EUR");currencyCode=u("EUR");priceList=u([]);totalPrice=u(void 0);price=u(void 0);priceOther=u(void 0);message=u(void 0);quantity=u(1);minOther=u(1);displayBilling=u(!0);displayDelivery=u(!1);isCheckedSameAsBillingAddress=u("digital");isCheckedDigitalCopy=u(!0);displayOther=u(!1);dictionaryName=u("voucher-amounts");billingFormGroup;deliveryFormGroup;
1ngOnDestroySubject=new ce;constructor(i,o,t,g,b){this.formBuilder=i,this.contactService=o,this.dictionaryService=t,this.loggerService=g,this.recaptchaV3Service=b}ngOnInit(){this.form=this.formBuilder.group({price:[void 0,v.required],priceOther:[200,[v.min(this.minOther())]],quantity:[1,[v.required,v.min(1)]],message:this.formBuilder.control("",{validators:[v.maxLength(300)]}),captchaToken:[void 0,[v.required]]}),K(this.form.get("price").valueChanges,this.form.get("quantity").valueChanges,this.form.get("message").valueChanges).subscribe(()=>{this.price.set(this.form.get("price").value),this.priceOther.set(this.form.get("priceOther").value),this.quantity.set(this.form.get("quantity").value),this.message.set(this.form.get("message").value),this.totalPrice.set(this.price()*this.quantity())}),K(this.form.get("priceOther").valueChanges).subscribe(()=>{this.price.set(this.form.get("priceOther").value),this.priceOther.set(this.form.get("priceOther").value),this.totalPrice.set(this.price()*this.quantity())}),this.loadCurrency()}priceChange(i){i.target.id=="price-other"?this.displayOther.set(!0):this.displayOther.set(!1)}onChildComponentLoadFinish(){this.billingFormGroup=this.form.get("billing"),this.deliveryFormGroup=this.form.get("delivery"),this.billingFormGroup.valueChanges.pipe(le(this.ngOnDestroySubject))}loadCurrency(){this.loading.set(!0),this.dictionaryService.dictionary(this.dictionaryName()).then(i=>{this.loading.set(!1),this.priceList.set(i.map(o=>Number(o.name))),this.price.set(this.priceList()[0]),this.totalPrice.set(this.price()),this.form.get("price").setValue(this.price())}).catch(i=>{this.loggerService.error(i),this.loading.set(!1)})}onChangeSameAsBillingAddress(i){this.displayDelivery.set(i==="alternative"),this.isCheckedSameAsBillingAddress.set(i),this.isCheckedDigitalCopy.set(i==="digital")}prepareAddress(i,o){let t=this.form.value[i];return Object.keys(t).reduce((g,b)=>Q(k({},g),{[(0,St.default)(`${o}-${b}`)]:t[b]}),{})}prepareData(){return Q(k(k({quantity:this.quantity(),totalPrice:this.totalPrice(),currency:this.currencyCode(),message:this.message()},this.prepareAddress("billing","billing")),this.isCheckedSameAsBillingAddress()==="alternative"?this.prepareAddress("delivery","delivery"):this.prepareAddress("billing","delivery")),{digitalCopy:this.isCheckedDigitalCopy(),captchaToken:this.form.value.captchaToken})}onSubmit(){this.recaptchaV3Service.execute("submit").subscribe(i=>{this.form.patchValue({captchaToken:i}),this.form.valid?(this.loading.set(!0),this.displayOther()&&this.form.get("price").setValue(this.form.get("priceOther").value),this.contactService.contactGiftVoucher(this.prepareData()).then(()=>{this.loading.set(!1),this.form.reset()}).catch(()=>{this.loading.set(!1)})):Ee(this.form)})}ngOnDestroy(){this.ngOnDestroySubject.next(),this.ngOnDestroySubject.complete()}static \u0275fac=function(o){return new(o||e)(_(R),_(Je),_(De),_(we),_(Be))};static \u0275cmp=x({type:e,selectors:[["app-gift-voucher-form"]],decls:49,vars:39,consts:[[1,"gift-voucher","position-relative"],[3,"ngSubmit","formGroup"],[1,"form-group","mb-4","row"],[1,"col-12","col-lg-6"],["for","quantity",1,"mb-2"],["id","quantity","formControlName","quantity"],[3,"control"],[1,"col-12","mb-3","mt-4"],[1,"col-12","col-lg-6","mb-4","form-check"],[1,"gift-voucher__box"],["type","radio","name","price","id","price-other","formControlName","price",1,"form-check-input",3,"change","value"],["for","price-other",1,"form-check-label","price-other-container"],[1,"price-other-container"],[1,"app-price"],[1,"app-price",3,"innerHTML"],["type","number","name","price-other","formControlName","priceOther",1,"app-price",3,"min"],[1,"p-2",3,"control"],[1,"row"],[1,"col","d-flex","justify-content-end"],[1,"gift-voucher__total"],[1,"gift-voucher__price"],[3,"currencyCode","price"],[1,"form-group","mb-4"],[1,"mb-2"],["textareaClass","form-control contact-form__textarea","textareaId","message","formControlName","message","name","message",3,"rows","maxlength","placeholder"],[3,"sectionName","parentForm"],[1,"form-group","row"],[1,"col","col-lg-6","mt-5"],["type","submit",1,"btn","btn-primary","w-100",3,"disabled"],[1,"bg-light"],["type","radio","name","price","formControlName","price",1,"form-check-input",3,"change","id","value"],[1,"form-check-label",3,"for"],[3,"notifyParent","isChildComponentLoadFinish","sectionName","parentForm"],[3,"isChildComponentLoadFinish","sectionName","parentForm"]],template:function(o,t){o&1&&(c(0,"section",0)(1,"form",1),O("ngSubmit",function(){return t.onSubmit()}),c(2,"div",2)(3,"div",3)(4,"label",4),s(5),l(6,"translate"),a(),m(7,"app-number-input",5)(8,"app-vali
1dation-message",6),a()(),c(9,"div",2)(10,"div",7),s(11),l(12,"translate"),a(),me(13,wi,5,7,"div",8,de),c(15,"div",8)(16,"div",9)(17,"input",10),O("change",function(b){return t.priceChange(b)}),a(),c(18,"label",11)(19,"div",12)(20,"span",13),s(21,"Other"),a(),c(22,"span"),m(23,"span",14),l(24,"currencySymbol"),m(25,"input",15),a()()(),m(26,"app-validation-message",16),a()()(),c(27,"div",17)(28,"div",18)(29,"div",19),s(30),l(31,"translate"),a(),c(32,"div",20),m(33,"app-price",21),a()()(),c(34,"div",22)(35,"label",23),s(36),l(37,"translate"),a(),m(38,"app-textarea-counter",24),l(39,"translate"),a(),M(40,Pi,1,2,"app-gift-voucher-section",25),M(41,Ni,1,2,"app-gift-voucher-section",25),c(42,"div",26)(43,"div",27)(44,"button",28)(45,"span"),s(46),l(47,"translate"),a()()(),M(48,Ii,1,0,"app-loader-small",29),a()()()),o&2&&(n(),p("formGroup",t.form),n(4),h(d(6,25,"quantity")),n(3),p("control",t.form.get("quantity")),n(3),y(" ",d(12,27,"select-amount")," "),n(2),ue(t.priceList()),n(4),p("value",t.form.get("priceOther").value),n(3),ee("display",t.displayOther()?"none":"block"),n(2),ee("display",t.displayOther()?"block":"none"),n(),p("innerHTML",d(24,29,t.infoCurrencyCode()),T),n(2),p("min",Ce(t.minOther())),n(),p("control",t.form.get("priceOther")),n(4),y(" ",d(31,31,"total"),": "),n(3),p("currencyCode",t.currencyCode())("price",t.totalPrice()),n(3),h(d(37,33,"message-voucher")),n(2),p("rows",6)("maxlength",300)("placeholder",d(39,35,"message-voucher-placeholder")),n(2),S(t.displayBilling()?40:-1),n(),S(t.displayDelivery()?41:-1),n(3),p("disabled",t.loading()),n(2),h(d(47,37,"submit")),n(2),S(t.loading()?48:-1))},dependencies:[Ie,U,xe,B,_e,Me,G,z,Oe,Se,q,L,j,Xe,Z,He,Mt,Ze,qe,A],styles:['@font-face{font-family:Material Symbols Outlined;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/materialsymbolsoutlined/v374/kJF1BvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oDMzByHX9rA6RzaxHMPdY43zj-jCxv3fzvRNU22ZXGJpEpjC_1v-p_4MrImHCIJIZrDCvHOej.woff2) format("woff2")}.material-symbols-outlined[_ngcontent-%COMP%]{font-family:Material Symbols Outlined;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}.gift-voucher[_ngcontent-%COMP%]{width:100%}.gift-voucher__total[_ngcontent-%COMP%]{font-size:1rem;text-transform:uppercase;font-weight:500;padding-right:.7rem;align-self:flex-end}.gift-voucher__price[_ngcontent-%COMP%]{font-weight:600;font-size:1.75rem;border-bottom:2px dashed #000;line-height:0}.gift-voucher__box[_ngcontent-%COMP%]{box-shadow:0 0 15px #a8abb5;padding:2rem;background:#fff;display:flex;justify-content:center;align-items:center}.gift-voucher[_ngcontent-%COMP%]   .form-check[_ngcontent-%COMP%]{padding-inline:15px}.gift-voucher[_ngcontent-%COMP%]   .form-check-label[_ngcontent-%COMP%]{color:#000}.gift-voucher[_ngcontent-%COMP%]   .form-check-input[_ngcontent-%COMP%]{position:static}.gift-voucher[_ngcontent-%COMP%]   app-price[_ngcontent-%COMP%], .gift-voucher[_ngcontent-%COMP%]   .app-price[_ngcontent-%COMP%]{font-weight:600;font-size:1.25rem}.gift-voucher[_ngcontent-%COMP%]   .price-other-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.gift-voucher[_ngcontent-%COMP%]   .price-other-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{color:#000;border-color:#0003;border-width:1px;width:80px}.gift-voucher[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]{accent-color:gray;margin:0 4px}'],changeDetection:0})}return e})();function Ei(e,r){if(e&1&&(c(0,"div",0),m(1,"app-gift-voucher-title-image",1),c(2,"div",2),m(3,"app-breadcrumbs",3),c(4,"h1",4),s(5),a(),m(6,"app-gift-voucher-description",5)(7,"app-gift-voucher-form"),a(),m(8,"app-newsletter-section",6),a()),e&2){let i=C();n(),p("topImage",i.page.giftVoucher.topImage),n(4),y(" ",i.page.giftVoucher.topTitle.text," "),n(),p("description",i.page.giftVoucher.giftVoucherDescription),n(2),p("module",i.page.guestSubscription)}}var wt=(()=>{class e extends ze{STATE_PAGE="STATE_PAGE_GIFT-VOUCHER";STATE_META_DATA="STATE_CLEAR_META_GIFT_VOUCHER";constructor(){super("gift-voucher")}createPageModel(i){return new X(i)}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=x({type:e,selectors:[["app-gift-voucher"]],features:[se],decls:1,vars:1,consts:[[1,"gift-voucher"],[3,"topImage"],[1,"container"],[1,"d-none","d-lg-block","pt-4"],[1,"pt-5"],[3,"de
1scription"],[1,"d-block",3,"module"]],template:function(o,t){o&1&&M(0,Ei,9,4,"div",0),o&2&&S(t.page?0:-1)},dependencies:[Ye,Ue,$e,Ot,Re],styles:['@font-face{font-family:Material Symbols Outlined;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/materialsymbolsoutlined/v374/kJF1BvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oDMzByHX9rA6RzaxHMPdY43zj-jCxv3fzvRNU22ZXGJpEpjC_1v-p_4MrImHCIJIZrDCvHOej.woff2) format("woff2")}.material-symbols-outlined[_ngcontent-%COMP%]{font-family:Material Symbols Outlined;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}.gift-voucher[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-weight:500;font-size:1.375rem}@media(min-width:992px){.gift-voucher[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-weight:400;font-size:calc(1.40625rem + 1.875vw)}}@media(min-width:992px)and (min-width:1200px){.gift-voucher[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:2.8125rem}}.gift-voucher__top-title[_ngcontent-%COMP%]{text-transform:uppercase;font-weight:600;position:relative}.gift-voucher__top-title[_ngcontent-%COMP%]:before{content:"";position:absolute;top:12px;left:0;height:1px;width:100%;z-index:-1;background-color:#a8abb5}@media(min-width:992px){.gift-voucher__top-title[_ngcontent-%COMP%]:before{background-color:transparent}}@media(min-width:992px){.gift-voucher__top-title[_ngcontent-%COMP%]{text-transform:initial;font-size:2rem;font-weight:400;position:relative;z-index:0}.gift-voucher__top-title[_ngcontent-%COMP%]:after, .gift-voucher__top-title[_ngcontent-%COMP%]:before{content:"";position:absolute;z-index:-1;display:block;width:63px;height:63px}.gift-voucher__top-title[_ngcontent-%COMP%]:after{background:#fff;top:0;inset-inline-start:0px}.gift-voucher__top-title[_ngcontent-%COMP%]:before{border:1.5px solid #000;top:-20px;inset-inline-start:-30px}}.gift-voucher__top-title[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{background-color:#fff;padding-right:10px}@media(min-width:992px){.gift-voucher[_ngcontent-%COMP%]   app-gift-voucher-form[_ngcontent-%COMP%]{padding-top:4rem}}.gift-voucher[_ngcontent-%COMP%]   app-newsletter-section[_ngcontent-%COMP%]{margin-top:4rem}@media(min-width:992px){.gift-voucher[_ngcontent-%COMP%]   app-newsletter-section[_ngcontent-%COMP%]{margin-top:8rem}}'],changeDetection:0})}return e})();var Di=[{path:"",component:wt,data:{breadcrumb:"gift-voucher",isNavbarCompact:!0}}],Pt=(()=>{class e{static \u0275fac=function(o){return new(o||e)};static \u0275mod=F({type:e});static \u0275inj=V({imports:[ie.forChild(Di),ie]})}return e})();var Zn=(()=>{class e{static \u0275fac=function(o){return new(o||e)};static \u0275mod=F({type:e});static \u0275inj=V({imports:[Pt]})}return e})();export{Zn as GiftVoucherModule};

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.