PageSourceSearch

https://www.leonardo-hotels.nl/chunk-6OXFPEYQ.js

js leonardo-hotels.nl collected 2026-09-30 22:09:11 UTC 29,249 bytes, 1 lines download raw bytes

1import{a as We}from"./chunk-MROMQICH.js";import{a as $e}from"./chunk-NRDTMYXW.js";import{a as Ze}from"./chunk-BIX4G3KT.js";import{a as qe}from"./chunk-UDKGNWKX.js";import{b as Ue}from"./chunk-FE6PUOCS.js";import{b as Le}from"./chunk-6C6B2GKY.js";import{a as Re}from"./chunk-G3O53UX7.js";import"./chunk-MVK7OOED.js";import"./chunk-XE3J42XB.js";import{a as He}from"./chunk-6UIB26WF.js";import{a as je}from"./chunk-6WOS62FS.js";import"./chunk-2EACQWFL.js";import{a as ze}from"./chunk-OIPCR3UO.js";import"./chunk-FQQ6YOP2.js";import{F as Ae,w as Te}from"./chunk-ZSP2P6Y7.js";import"./chunk-YJ2GKCA2.js";import"./chunk-7XCFIZC2.js";import"./chunk-Q3WPUYT6.js";import"./chunk-GWRRF45W.js";import{n as Fe,o as ke}from"./chunk-F2T5MSNT.js";import{a as Ve}from"./chunk-O5LUJZPI.js";import"./chunk-4IHID5D6.js";import{a as De}from"./chunk-ERAHZDYO.js";import"./chunk-UPFCW5FI.js";import{a as Pe,f as Ie,g as Ge}from"./chunk-MEGV6RZJ.js";import{a as H}from"./chunk-7LPJBDVK.js";import{a as Be}from"./chunk-DL4MVPKO.js";import"./chunk-BY5CVS2S.js";import{f as Ee,h as ne}from"./chunk-2J5KWTT3.js";import{b as Z}from"./chunk-4PR4QYWX.js";import{B as Oe,D as z,E as R,F as q,c as A,e as v,h as G,i as B,o as xe,p as _e,q as Se,u as L,v as j,z as Me}from"./chunk-T4GUTHLR.js";import"./chunk-GFO3QNEP.js";import{r as Ne,t as we}from"./chunk-OMKW2JB5.js";import{b as U}from"./chunk-M36GUI2X.js";import{Ga as _,Ib as ee,Ja as x,Ka as k,Mb as d,Nb as h,Oa as de,Ob as b,P as le,Pc as ye,V as T,Xa as S,Yb as Ce,Za as M,Zb as f,_a as se,aa as N,ab as me,ba as P,bb as ue,c as ce,cb as p,db as c,eb as a,fb as m,gb as fe,hb as ge,ic as l,ja as u,jc as s,lc as be,pb as E,qb as he,sc as te,t as X,ta as F,tc as w,vb as O,wb as ve,xb as C,ya as n,yd as ie}from"./chunk-CXBPM7YT.js";import{a as I,b as Q,e as wt,g as Et}from"./chunk-IM5V7DCU.js";var bt=wt((Li,Ct)=>{var Vt=1/0,Dt="[object Symbol]",It=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Tt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
17f]/g,Y="\\ud800-\\udfff",it="\\u0300-\\u036f\\ufe20-\\ufe23",nt="\\u20d0-\\u20f0",ot="\\u2700-\\u27bf",rt="a-z\\xdf-\\xf6\\xf8-\\xff",Ft="\\xac\\xb1\\xd7\\xf7",kt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",At="\\u2000-\\u206f",Gt=" \\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",at="A-Z\\xc0-\\xd6\\xd8-\\xde",pt="\\ufe0e\\ufe0f",ct=Ft+kt+At+Gt,re="['\u2019]",Bt="["+Y+"]",Je="["+ct+"]",J="["+it+nt+"]",lt="\\d+",Lt="["+ot+"]",dt="["+rt+"]",st="[^"+Y+ct+lt+ot+rt+at+"]",oe="\\ud83c[\\udffb-\\udfff]",jt="(?:"+J+"|"+oe+")",mt="[^"+Y+"]",ae="(?:\\ud83c[\\udde6-\\uddff]){2}",pe="[\\ud800-\\udbff][\\udc00-\\udfff]",V="["+at+"]",ut="\\u200d",Ye="(?:"+dt+"|"+st+")",zt="(?:"+V+"|"+st+")",Ke="(?:"+re+"(?:d|ll|m|re|s|t|ve))?",Qe="(?:"+re+"(?:D|LL|M|RE|S|T|VE))?",ft=jt+"?",gt="["+pt+"]?",Rt="(?:"+ut+"(?:"+[mt,ae,pe].join("|")+")"+gt+ft+")*",ht=gt+ft+Rt,qt="(?:"+[Lt,ae,pe].join("|")+")"+ht,Ut="(?:"+[mt+J+"?",J,ae,pe,Bt].join("|")+")",Ht=RegExp(re,"g"),Zt=RegExp(J,"g"),Wt=RegExp(oe+"(?="+oe+")|"+Ut+ht,"g"),$t=RegExp([V+"?"+dt+"+"+Ke+"(?="+[Je,V,"$"].join("|")+")",zt+"+"+Qe+"(?="+[Je,V+Ye,"$"].join("|")+")",V+"?"+Ye+"+"+Ke,V+"+"+Qe,lt,qt].join("|"),"g"),Jt=RegExp("["+ut+Y+it+nt+pt+"]"),Yt=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Kt={\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,Xt=typeof self=="object"&&self&&self.Object===Object&&self,ei=Qt||Xt||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(It)||[]}function oi(e){return function(r){return e?.[r]}}var ri=oi(Kt);function vt(e){return Jt.test(e)}function ai(e){return Yt.test(e)}function pi(e){return vt(e)?ci(e):ii(e)}function ci(e){return e.match(Wt)||[]}function li(e){return e.match($t)||[]}var di=Object.prototype,si=di.toString,Xe=ei.Symbol,et=Xe?Xe.prototype:void 0,tt=et?et.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 tt?tt.call(e):"";var r=e+"";return r=="0"&&1/e==-Vt?"-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=K(r);var i=vt(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(Si(xi(r).replace(Ht,"")),e,"")}}function vi(e){return!!e&&typeof e=="object"}function Ci(e){return typeof e=="symbol"||vi(e)&&si.call(e)==Dt}function K(e){return e==null?"":ui(e)}var bi=hi(function(e,r,i){return r=r.toLowerCase(),e+(i?yi(r):r)});function yi(e){return _i(K(e).toLowerCase())}function xi(e){return e=K(e),e&&e.replace(Tt,ri).replace(Zt,"")}var _i=gi("toUpperCase");function Si(e,r,i){return e=K(e),r=i?void 0:r,r===void 0?ai(e)?li(e):ni(e):e.match(r)||[]}Ct.exports=bi});var W=class{topTitle;topSubtitle;giftVoucherDescription;topImage;backgroundImage;constructor(r){let{topTitle:i,topSubtitle:o,giftVoucherDescription:t}=r.sections,{topImage:g,backgroundImage:y}=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(y)}};var $=class extends Ee{giftVoucher;guestSubscription;constructor(r){super(r);let{giftVoucherDefault:i,guestSubscription:o}=r.modules;this.giftVoucher=new W(i),this.guestSubscription=new Te(o)}};var xt=Et(bt());function Oi(e,r){if(e&1){let i=E();c(0,"div",4)(1,"div",23)(2,"span"),d(3),l(4,"translate"),a(),c(5,"div",24)(6,"input",25),O("change",function(t){N(i);let g=C();return P(g.onChangeSameAsBillingAddress(t.target.value))}),a(),c(7,"label",26),d(8),l(9,"translate"),a()()()()}e&2&&(n(3),b("* ",s(4,2,"digital-copy")),n(5),h(s(9,4,"digital-copy")))}var yt=(()=>{class e{formBuilder;sectionName=w.required();parentForm=w.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,[Ge]],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)(_(z))};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),d(4),l(5,"translate"),a()()(),c(6,"div",4)(7,"div",5)(8,"label",6),d(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),d(16),l(17,"translate"),a(),m(18,"input",9)(19,"app-validation-message",8),a(),c(20,"div",10)(21,"label",6),d(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),d(29),l(30,"translate"),a(),m(31,"input",12)(32,"app-validation-message",8),a(),c(33,"div",13)(34,"label",6),d(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),d(42),l(43,"translate"),a(),m(44,"app-country-input",16)(45,"app-validation-message",8),a(),c(46,"div",5)(47,"label",17),d(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),d(55),l(56,"translate"),a(),m(57,"input",19)(58,"app-validation-message",8),a(),c(59,"div",20)(60,"label",6),d(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),d(68),l(69,"translate"),a(),m(70,"input",22)(71,"app-validation-message",8),a()(),S(72,Oi,10,6,"div",4),a()),o&2&&(p("formGroup",t.form),n(4),b(" ",s(5,57,t.sectionTitle())," "),n(4),p("for",f("",t.sectionName(),"[salutation]")),n(),h(s(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(s(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(s(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(s(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(s(36,67,"phone")),n(2),p("id",f("",t.sectionName(),"[phone]")),n(),p("control",t.form.get("phone")),n(4),h(s(43,69,"country")),n(3),p("control",t.form.get("country")),n(3),h(s(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(s(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(s(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(s(69,77,"company")),n(2),p("id",f("",t.sectionName(),"[company]")),n(),p("control",t.form.get("company")),n(),M(t.sectionName()=="billing"?72:-1))},dependencies:[R,A,G,B,q,j,L,ke,Z,Ae,U],encapsulation:2,changeDetection:0})}return e})();function Ni(e,r){if(e&1){let i=E();c(0,"div",8)(1,"div",9)(2,"input",30),O("change",function(t){N(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=E();c(0,"app-gift-voucher-section",32),O("notifyParent",function(t){N(i);let g=C();return P(g.onChangeSameAsBillingAddress(t))})("isChildComponentLoadFinish",function(){N(i);let t=C();return P(t.onChildComponentLoadFinish())}),a()}if(e&2){let i=C();p("sectionName","billing")("parentForm",i.form)}}function wi(e,r){if(e&1){let i=E();c(0,"app-gift-voucher-section",33),O("isChildComponentLoadFinish",function(){N(i);let t=C();return P(t.onChildComponentLoadFinish())}),a()}if(e&2){let i=C();p("sectionName","delivery")("parentForm",i.form)}}function Ei(e,r){e&1&&m(0,"app-loader-small",29)}var _t=(()=>{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,y){this.formBuilder=i,this.contactService=o,this.dictionaryService=t,this.loggerService=g,this.recaptchaV3Service=y}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]]}),X(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())}),X(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,y)=>Q(I({},g),{[(0,xt.default)(`${o}-${y}`)]:t[y]}),{})}prepareData(){return Q(I(I({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)})):Ve(this.form)})}ngOnDestroy(){this.ngOnDestroySubject.next(),this.ngOnDestroySubject.complete()}static \u0275fac=function(o){return new(o||e)(_(z),_($e),_(Fe),_(Ne),_(Ie))};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),d(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),d(11),l(12,"translate"),a(),me(13,Ni,5,7,"div",8,se),c(15,"div",8)(16,"div",9)(17,"input",10),O("change",function(y){return t.priceChange(y)}),a(),c(18,"label",11)(19,"div",12)(20,"span",13),d(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),d(30),l(31,"translate"),a(),c(32,"div",20),m(33,"app-price",21),a()()(),c(34,"div",22)(35,"label",23),d(36),l(37,"translate"),a(),m(38,"app-textarea-counter",24),l(39,"translate"),a(),S(40,Pi,1,2,"app-gift-voucher-section",25),S(41,wi,1,2,"app-gift-voucher-section",25),c(42,"div",26)(43,"div",27)(44,"button",28)(45,"span"),d(46),l(47,"translate"),a()()(),S(48,Ei,1,0,"app-loader-small",29),a()()()),o&2&&(n(),p("formGroup",t.form),n(4),h(s(6,25,"quantity")),n(3),p("control",t.form.get("quantity")),n(3),b(" ",s(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",s(24,29,t.infoCurrencyCode()),F),n(2),p("min",Ce(t.minOther())),n(),p("control",t.form.get("priceOther")),n(4),b(" ",s(31,31,"total"),": "),n(3),p("currencyCode",t.currencyCode())("price",t.totalPrice()),n(3),h(s(37,33,"message-voucher")),n(2),p("rows",6)("maxlength",300)("placeholder",s(39,35,"message-voucher-placeholder")),n(2),M(t.displayBilling()?40:-1),n(),M(t.displayDelivery()?41:-1),n(3),p("disabled",t.loading()),n(2),h(s(47,37,"submit")),n(2),M(t.loading()?48:-1))},dependencies:[De,R,xe,A,_e,Se,G,B,Oe,Me,q,j,L,We,Z,Ue,yt,Ze,Le,U],styles:[".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 #B5003B;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:#b5003b}.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:#b5003b;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 St(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 Mt=(()=>{class e{description=w.required();Layout=we;textTruncate=u(!1);handleEvents(i){St(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(y){return t.handleEvents(y)}),ge()()),o&2&&(n(),he("innerHTML",s(5,9,be(4,5,t.description().text,s(3,3,s(2,1,t.Layout.mobile))&&t.textTruncate(),200)),F))},dependencies:[ye,Be,Pe,qe],styles:['.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-radius:0;border:1.5px solid #B5003B;top:-20px;inset-inline-start:-30px}}.description__top-title[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{background-color:#fff;padding-right:10px}']})}return e})();var Ot=(()=>{class e{topImage=w();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),d(3),a(),c(4,"div",3),d(5),a()()()),o&2&&(p("medium",t.topImage().image)("mask",!0)("background",!0)("fetchPriority","high")("loading","eager"),n(3),b(" ",t.topImage().caption," "),n(2),b(" ",t.topImage().text," "))},dependencies:[ze],styles:['.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 Vi(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),d(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),b(" ",i.page.giftVoucher.topTitle.text," "),n(),p("description",i.page.giftVoucher.giftVoucherDescription),n(2),p("module",i.page.guestSubscription)}}var Nt=(()=>{class e extends je{STATE_PAGE="STATE_PAGE_GIFT-VOUCHER";STATE_META_DATA="STATE_CLEAR_META_GIFT_VOUCHER";constructor(){super("gift-voucher")}createPageModel(i){return new $(i)}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=x({type:e,selectors:[["app-gift-voucher"]],features:[de],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,"container","d-block",3,"module"]],template:function(o,t){o&1&&S(0,Vi,9,4,"div",0),o&2&&M(t.page?0:-1)},dependencies:[Ot,He,Mt,_t,Re],styles:['.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-radius:0;border:1.5px solid #B5003B;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:Nt,data:{breadcrumb:"gift-voucher",isNavbarCompact:!0}}],Pt=(()=>{class e{static \u0275fac=function(o){return new(o||e)};static \u0275mod=k({type:e});static \u0275inj=T({imports:[ie.forChild(Di),ie]})}return e})();var Hn=(()=>{class e{static \u0275fac=function(o){return new(o||e)};static \u0275mod=k({type:e});static \u0275inj=T({imports:[Pt]})}return e})();export{Hn 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.