PageSourceSearch

https://tickets.jjkavanagh.ie/default-src_pages_Subscription_hooks…onents_Blocks_index_tsx.98f9278cc2b1516d.js

js jjkavanagh.ie collected 2026-10-01 15:08:38 UTC 30,394 bytes, 5 lines download raw bytes

1"use strict";
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="de8db325-5656-5ae9-bed1-585c16b67181")}catch(e){}}();
3(globalThis.rspackChunkowl_frontend||=[]).push([["default-src_pages_Subscription_hooks_useInitialFormValues_ts-src_components_Blocks_index_tsx"],{19675(e,s,l){var a=l(96540),r=l(90193),t=l(56705);let c=e=>{if("string"==typeof e||(0,a.isValidElement)(e))return e};l.d(s,{},{PY:(e,s)=>{if(e)return s!==r.kx.App?e:e.filter(e=>"navigate"!==e.type)},_K:(e,s,l)=>{let{t:a}=(0,t.Bd)(),r=a(l?.subKey?`customBlocks.${e}.${l.subKey}`:`customBlocks.${e}`,{returnObjects:!0,defaultValue:s,postProcess:l?.postProcess,parseHtmlOptions:l?.parseHtmlOptions});if(!r||"object"!=typeof r)return s;let i={};for(let e of Object.keys(s))i[e]=c(r[e]);return i},jl:(e,s,l,a)=>{let{t:r}=(0,t.Bd)(),i=r(`customBlocks.${e}`,{returnObjects:!0,defaultValue:s,postProcess:a?.postProcess,parseHtmlOptions:a?.parseHtmlOptions}),n=Array.isArray(i)?i[l]:i;if(!n||"object"!=typeof n)return s;let o={};for(let e of Object.keys(s))o[e]=c(n[e]);return o}})},98439(e,s,l){l.d(s,{},{w:(e,s)=>{let l=new URL(e,window.location.origin);return l.searchParams.set("notification",s),`${l.pathname}${l.search}${l.hash}`}})},72003(e,s,l){var a=l(76121),r=l(57253),t=l(45451);l.d(s,{},{k:(e,s)=>{let{departureLocation:l,arrivalLocation:c,accommodation:i,...n}=e,{params:o,currency:m,passengerTypesListEnabled:d,encodePassengers:u,utmParams:p={}}=s,h=r.A.preservePersonalData(n.passengers,o.passengers)??n.passengers;return{...n,...i&&{accommodation:i},passengers:u(h),...p,...l&&a.A.flatLocation(l,"departure"),...c&&a.A.flatLocation(c,"arrival"),currency:m,pax:d?r.A.getPaxCount(n.passengers):n.pax,marketingCarrierCode:t.A.getCarrierCode(o.retailerPartnerNumber,o.marketingCarrierCode,n.weekly)}}})},77747(e,s,l){var a=l(96540);let r={personal:"me",other:"other-person"};l.d(s,{},{k:()=>{let e={gender:"F",firstName:"",lastName:"",dateOfBirth:"",address:"",houseNumber:"",additionalAddress:"",postalCode:"",city:"",countryCode:"",accountOwner:!1};return(0,a.useMemo)(()=>({startMonth:null,ticketUser:r.personal,account:{email:"",password:"",confirmPassword:""},paymentMethod:null,price:{fractional:500,currency:"EUR"},ancillaries:{},fees:[],installments:[],paymentProvider:null,paymentMethodData:{},cardData:{},saveTraveler:!1,terms:!1,marketingConsent:!1,traveler:e,subscriptionHolder:e,isPersonalPrefilled:!1,isBillingPrefilled:!1,sepaData:{iban:"",bic:"",holderName:""},iban:""}),[])},m:r})},39050(e,s,l){l.d(s,{A:()=>ef});var a=l(74848),r=l(96540),t=l(93735),c=l(46942),i=l.n(c),n=l(47982),o=l(86522);let m=e=>{let{children:s,onBackground:l,contentClassName:r,appearance:t="elevated",...c}=e;return(0,a.jsx)(n.A,{...c,appearance:t,contentClassName:i()(r,(0,o.A)("custom-blocks","item",{onBackground:l})),children:s})};var d=l(56705),u=l(17540),p=l(59124),h=l(45523),x=l(60127),j=l(75422),v=l(19675),b=l(90051),g=l(65918);let N=e=>{let{image:s,translations:l,buttonUrl:r}=e,{title:t,description:c,button:n}=(0,v._K)(l,{title:void 0,description:void 0,button:void 0}),o=i()("mb-5","block-card__image");return(0,a.jsxs)("div",{className:"block-card column",children:[s&&(Array.isArray(s.url)?(0,a.jsx)(h.A,{media:s.url,className:o}):(0,a.jsx)("img",{alt:"",src:s.url,className:o})),t&&(0,a.jsx)("h3",{className:"cell mb-1",children:t}),c&&(0,a.jsx)("div",{className:"body-16 mb-2",children:(0,a.jsx)(g.A,{i18nKey:`customBlocks.${l}.description`})}),n&&r&&(0,a.jsx)("div",{className:"cell no-grow items-center",children:(0,a.jsx)(b.A,{to:r,children:(0,a.jsx)(x.A,{fullWidth:!1,variant:"text",color:"secondary",children:(0,a.jsxs)("div",{className:"row items-center",children:[(0,a.jsx)("div",{children:n}),(0,a.jsx)(j.A,{name:"chevron-right",size:"medium"})]})})})})]})};var f=l(18143),k=l(22553),A=l(73004),y=l(58286),w=l(13789);let C=e=>{let{blockType:s,opened:l,onClose:r,type:t}=e,{t:c}=(0,d.Bd)(),{title:i,description:n,buttonText:o}=c(`customBlocksCommon.${s}.modal.${t}`,{returnObjects:!0});return(0,a.jsx)(A.A,{maxWidth:"md",opened:l,onClose:r,children:(0,a.jsxs)("div",{className:"submit-modal column items-center",children:[(0,a.jsxs)("div",{className:"submit-modal__icon mb-5",children:["success"===t&&(0,a.jsx)("img",{src:w,alt:c("accessibility.images.successIcon")}),"error"===t&&(0,a.jsx)("img",{src:y,alt:c("accessibility.images.errorIcon")})]}),(0,a.jsx)("h3",{className:"mb-3",children:i}),(0,a.jsx)("div",{className:"mb-5",children:n}),(0,a.jsx)(x.A,{onClick:r,children:o})]})})};var _=l(82761),B=l(2609);let D=({file:e,onRemove:s})=>(0,a.jsxs)("div",{className:"row gap-2",children:[(0,a.jsx)("div",{className:"cell no-grow",children:(0,a.jsx)(j.A,{name:"attachment",size:"large"})}),(0,a.jsx)("div",{className:"cell ui-file-upload__file-name",children:e.name}),(0,a.jsx)(j.A,{className:"ui-file-upload__remove",name:"cross",size:"large",onClick:s})]}),P=e=>{let{name:s,maxFiles:l,maxFileSize:t,fileTypes:i,value:n,onChange:o}=e,{t:m}=(0,_.Bd)(),[d,u]=(0,r.useState)([]),p=i.join(", ").toUpperCase(),h=`ui-file-upload-${s}-${Math.random()}`,x=1024*t*1024,v=n.length>=l;return(0,a.jsxs)("div",{className:c("column",(0,B.T)("ui-file-upload",{disabled:v})),children:[(0,a.jsx)("h4",{className:"cell mb-1",children:m("components.fileUpload.title")}),(0,a.jsx)("div",{className:"cell mb-3 body-14",children:m("components.fileUpload.description",{maxFiles:l,maxFileSize:t,formats:p})}),(0,a.jsx)("div",{className:"cell mb-3",children:(0,a.jsxs)("div",{className:"column gap-2",children:[n.map((e,s)=>(0,a.jsx)("div",{className:"cell",children:(0,a.jsx)(D,{file:e,onRemove:()=>o(n.filter((e,l)=>l!==s))})},e.name)),d.map((e,s)=>(0,a.jsxs)(r.Fragment,{children:[(0,a.jsx)("div",{className:"cell",children:(0,a.jsx)(D,{file:e,onRemove:()=>u(e=>e.filter((e,l)=>l!==s))})}),(0,a.jsx)("div",{className:c("cell",(0,B.T)("ui-file-upload","invali
3d")),children:(0,a.jsxs)("div",{className:"row items-center gap-1",children:[(0,a.jsx)(j.A,{name:"alert",size:"small"}),(0,a.jsx)("div",{className:"body-12",children:m("components.fileUpload.invalidFile",{maxFileSize:t,formats:p})})]})})]},e.name))]})}),(0,a.jsxs)("label",{className:(0,B.T)("ui-file-upload","button"),htmlFor:h,children:[(0,a.jsx)(j.A,{name:"upload",size:"large"}),(0,a.jsx)("div",{className:"bolder",children:m("components.fileUpload.upload")}),(0,a.jsx)("input",{accept:i.join(","),id:h,onChange:e=>{let s=e.target.files;if(s){let[e,l]=Array.from(s).reduce(([e,s],l)=>{let a;return l.size>x||!i.includes((a=l.name.split("."),`.${a[a.length-1]}`))?s.push(l):e.push(l),[e,s]},[[],[]]);o([...n,...e]),u(e=>[...e,...l])}},className:(0,B.T)("ui-file-upload","input"),type:"file",value:"",disabled:v})]})]})};var $=l(17070),T=l(63282),S=l(62241),M=l(31193);let O=e=>{let{terms:s}=e,{t:l}=(0,d.Bd)(),[t,c]=(0,r.useState)(!1),{values:i,setFieldValue:n}=(0,k.j7)();return(0,a.jsxs)("div",{className:"column stretch form-block-additional",children:[(0,a.jsx)("div",{className:"cell-12 mb-4",children:(0,a.jsx)(k.D0,{component:M.A,label:l("customBlocksCommon.form.message"),name:"message",multiline:!0,maxLength:500,validate:T.mw,required:!0})}),(0,a.jsx)("div",{className:"cell-12 mb-5",children:(0,a.jsx)(P,{fileTypes:[".png",".jpg",".jpeg",".pdf",".docx"],name:"attachments",maxFiles:5,maxFileSize:2,value:i.attachments,onChange:e=>{n("attachments",e)}})}),(0,a.jsx)(k.D0,{component:S.A,label:(0,a.jsx)(d.x6,{i18nKey:"customBlocksCommon.form.terms",components:{termsLink:(0,a.jsx)("span",{className:"form-block-additional__terms",id:"termsAndConditionsLink",onClick:e=>{c(!0),e.preventDefault()}})}}),name:"termAccepted",validate:T.mw}),(0,a.jsx)($.A,{opened:t,onClose:()=>c(!1),text:s})]})};var q=l(89482);let H=()=>{let{t:e}=(0,d.Bd)();return(0,a.jsxs)("div",{className:"row gap-3 wrap",children:[(0,a.jsx)("div",{className:"cell-6 cell-sm-12",children:(0,a.jsx)(k.D0,{component:M.A,label:e("customBlocksCommon.form.firstName"),name:"firstName",validate:T.mw,required:!0})}),(0,a.jsx)("div",{className:"cell-6 cell-sm-12",children:(0,a.jsx)(k.D0,{component:M.A,label:e("customBlocksCommon.form.lastName"),name:"lastName",validate:T.mw,required:!0})}),(0,a.jsx)("div",{className:"cell-6 cell-sm-12",children:(0,a.jsx)(k.D0,{component:M.A,label:e("customBlocksCommon.form.email"),name:"email",validate:(0,T.cy)([T.mw,T.Rp]),required:!0})}),(0,a.jsx)("div",{className:"cell-6 cell-sm-12",children:(0,a.jsx)(k.D0,{component:q.A,label:e("customBlocksCommon.form.phone"),name:"phone",validate:(0,T.cy)([T.mw,T.Sv]),required:!0})})]})};var L=l(6463),z=l(12268),K=l(59007),I=l(43329),U=l(60125),E=l(59297),F=l(97484),R=l(82528),V=l(87889);let W=(function(e){let{start:s,end:l}=(0,K.P)(void 0,e),a=+s>+l,r=a?+s:+l,t=a?l:s;t.setMinutes(0,0,0);let c=(void 0)??1;if(!c)return[];c<0&&(c=-c,a=!a);let i=[];for(;+t<=r;)i.push((0,I.w)(s,t)),t.setHours(t.getHours()+c);return a?i.reverse():i})({start:(0,L.o)(new Date),end:(0,z.D)(new Date)}).map(e=>({value:F.Ay.formatTime(e),label:F.Ay.formatTimeLocalized(e),selectedLabel:F.Ay.formatTimeLocalized(e)})),G=(0,z.D)(new Date),Z=(0,L.o)((0,U.a)(G,3)),Q=T.cy([T.mw,T.Py(Z),T.ZI(G)]),Y=()=>{let{t:e}=(0,d.Bd)(),s=(0,u.A)();return(0,a.jsxs)("div",{className:"row gap-3 wrap",children:[(0,a.jsx)("div",{className:"cell-6 cell-sm-12",children:(0,a.jsx)(k.D0,{component:M.A,label:e("customBlocksCommon.form.ticketNumber"),name:"ticketNumber",validate:T.mw,required:!0})}),(0,a.jsx)("div",{className:"cell-6 cell-sm-12",children:(0,a.jsx)(k.D0,{component:R.A,name:"tripDate",label:e("customBlocksCommon.form.tripDate"),validate:Q,minDate:Z,maxDate:G,isTileDisabled:e=>(0,E.G)(e),required:!0})}),!s&&(0,a.jsx)("div",{className:"cell-6"}),(0,a.jsx)("div",{className:"cell-6 cell-sm-12",children:(0,a.jsx)(k.D0,{component:V.A,label:e("customBlocksCommon.form.tripTime"),name:"tripTime",items:W,validate:T.mw,required:!0})})]})};var J=l(93409),X=l(52946);let ee=async e=>{await X.Ay.post("/feedback")({body:e,params:{}})},es=(0,l(55855).k)({key:"feedback",loader:async e=>await ee(e)});var el=l(74743);let ea={lost:[Y,()=>{let{t:e}=(0,d.Bd)();return(0,a.jsxs)("div",{className:"row gap-3 wrap",children:[(0,a.jsx)("div",{className:"cell-6 cell-sm-12",children:(0,a.jsx)(k.D0,{component:M.A,label:e("customBlocksCommon.form.lostObject"),name:"lostObject",validate:T.mw,required:!0})}),(0,a.jsx)("div",{className:"cell-6 cell-sm-12",children:(0,a.jsx)(k.D0,{component:M.A,label:e("customBlocksCommon.form.lostBrand"),name:"lostBrand",validate:T.mw,required:!0})}),(0,a.jsx)("div",{className:"cell-6 cell-sm-12",children:(0,a.jsx)(k.D0,{component:M.A,label:e("customBlocksCommon.form.lostModel"),name:"lostModel"})}),(0,a.jsx)("div",{className:"cell-6 cell-sm-12",children:(0,a.jsx)(k.D0,{component:M.A,label:e("customBlocksCommon.form.lostColor"),name:"lostColor",validate:T.mw,required:!0})})]})}],general:[],claims:[Y]};var er=l(81587);let et=e=>{let{privacyPolicy:s}=e,{t:l}=(0,d.Bd)(),[t,c]=(0,r.useState)(!1),i=()=>c(!1),n=(0,a.jsx)("div",{className:"row p-3 end",children:(0,a.jsx)(x.A,{onClick:i,color:"secondary",children:l("privacyPolicy.close")})});return(0,a.jsxs)("div",{className:"body-12 subscribe-block__privacy-policy",children:[(0,a.jsx)(d.x6,{i18nKey:"customBlocksCommon.subscribe.privacyPolicy",components:{termsLink:(0,a.jsx)("span",{className:"subscribe-block__link",onClick:e=>{c(!0),e.preventDefault()}})}}),(0,a.jsx)(A.A,{opened:t,onClose:i,title:l("customBlocksCommon.subscribe.privacyPolicyModal"),footer:n,children:(0,a.jsx)("div",{className:"p-6",children:s?(0,a.jsx)("pre",{className:"terms-content",children:er.Ay.format(s)}):(0,a.jsx)(g.A,{i18nKey:"privacyPolicy.html"})})})]})};var ec=l(69533),ei=l(18075),en=l(47767),eo=l(37838),em=l(99916),ed=l(5085),eu=l(50452),ep=l(9484),eh=l(14318);l(16217);var ex=l(96244),ej=l(71808);let ev=e=>{let{title:s}=e;return(0,a.jsx)("div",{className:(0,o.A)("subscription-card","header"),children:(0,a.jsx)("h3",{children:s})})};var eb=l(65115),eg=l(30833);let eN={navigate:e=>{let[s,l]=(0,r.useState)(0),{translationKey:t,image:c,alignText:m,buttonUrl:d,appearance:p="elevated",onBackgroun
3d:j,background:g}=e,N=(0,u.A)(),f=c?.position==="top"||c?.position==="bottom",{title:k,description:A,button:y}=(0,v.jl)(t??"",{title:void 0,description:void 0,button:void 0},s,{postProcess:["parseHtml"],parseHtmlOptions:{keyPattern:/\.description/}}),w=j&&"flat"===p;return(0,a.jsx)(n.A,{appearance:p,background:w?{fill:"transparent"}:g,contentClassName:i()("navigate-block",(0,o.A)("custom-blocks__item",{"omit-offset":w})),children:(0,a.jsxs)("div",{className:i()("column gap-5 items-center",{"row-lg gap-lg-7":!f},{"text-center":"center"===m}),children:[t&&(0,a.jsx)("div",{className:i()("navigate-block__text",{"cell-lg-6":c,"cell-lg-10":!c||f}),children:(0,a.jsxs)("div",{className:"column",children:[k&&!w&&(0,a.jsx)("h2",{className:"cell mb-4",children:k}),k&&w&&(0,a.jsx)("h1",{className:"cell mb-4",children:k}),A&&(0,a.jsx)("div",{className:i()("body-16 navigate-block__description",{"mb-6":!!y}),children:A}),y&&(0,a.jsx)("div",{className:"cell no-grow navigate-block__button",children:(0,a.jsx)(b.A,{to:d,children:(0,a.jsx)(x.A,{fullWidth:N,children:y})})})]})}),c?.url&&(0,a.jsx)("div",{className:i()("cell-lg-6 navigate-block__image grow",c.position,{"cell-lg-12":!t||f}),children:Array.isArray(c.url)?(0,a.jsx)(h.A,{media:c.url,onMediaChange:l}):(0,a.jsx)("img",{alt:"",src:c.url})})]})})},cards:e=>{let{translationKey:s,cards:l,alignText:r="center",imageSize:t="fullWidth",columns:c,...n}=e,{title:o,description:d}=(0,v._K)(s,{title:void 0,description:void 0});return(0,a.jsx)(m,{...n,children:(0,a.jsxs)("div",{className:i()("cards-block","column",r,`image-size-${t}`),children:[o&&(0,a.jsx)("h2",{className:"cell mb-3",children:o}),d&&(0,a.jsx)("div",{className:"body-16 mb-5 cards-block__description",children:(0,a.jsx)(g.A,{i18nKey:`customBlocks.${s}.description`})}),(0,a.jsx)("div",{className:"cell",children:(0,a.jsx)("div",{className:i()("cards-block__cells-wrapper",{center:!!c}),style:{"--cell-columns":c},children:l.map(e=>(0,a.jsx)("div",{className:"cards-block__cell",children:(0,a.jsx)(N,{...e,translations:`${s}.cards.${e.translations}`})},e.translations))})})]})})},tripSearch:e=>{let[s]=(0,p.t)(),{layout:l=s.searchBar.layout,titleKey:r,subTitleKey:t,color:c,onBackground:i,departure:m,arrival:u}=e,{t:h}=(0,d.Bd)(void 0,{keyPrefix:"customBlocks"}),x=i&&("column"===l||!!t||!!r),j=i?s.colors.headerText:s.colors.backgroundText,v=eb.A.object.compact({departureLocation:m,arrivalLocation:u});return(0,a.jsx)(n.A,{appearance:"flat",background:{fill:"transparent"},className:"trip-search-block__wrapper",contentClassName:(0,o.A)("trip-search-block",{omitOffset:x}),children:(0,a.jsx)(eg.A,{layout:l,subTitle:t&&h(t),title:r&&h(r),textColor:c??j,params:v})})},background:e=>{let[{backgroundImage:s}]=(0,p.t)(),l=(0,u.A)()&&s.mobileUrl?s.mobileUrl:s.url,{url:r=l,headerOffset:t=s.headerOffset}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"background-offset"}),(0,a.jsx)("div",{style:{backgroundImage:`url(${r})`},className:i()("background-block",(0,o.A)("background"),{"header-offset":t})})]})},faq:e=>{let{translationKey:s,...l}=e,{t}=(0,d.Bd)(),c=(0,r.useMemo)(()=>t(`customBlocks.${s}`,{returnObjects:!0,postProcess:["parseHtml"],parseHtmlOptions:{keyPattern:/\.\d\.content/}}),[t,s]);return(0,a.jsx)(m,{...l,children:(0,a.jsx)("div",{className:"row items-center center",children:(0,a.jsx)(f.A,{...c})})})},accordion:e=>{let{t:s}=(0,d.Bd)(),{translationKey:l,accordionVariant:c,...i}=e,n=(0,r.useMemo)(()=>s(`customBlocks.${l}`,{returnObjects:!0,postProcess:["parseHtml"],parseHtmlOptions:{keyPattern:/\.content/}}),[s,l]);return(0,a.jsx)(m,{...i,children:(0,a.jsx)("div",{className:"column gap-5",children:n.items.map((e,s)=>(0,a.jsx)("div",{className:"cell",children:(0,a.jsx)(t.A,{titleComponent:"header",title:(e=>{let{title:s,description:l}=e;return(0,a.jsxs)("div",{className:"column",children:[(0,a.jsx)("h3",{className:"h4",children:s}),(0,a.jsx)("div",{className:"body-14",children:l})]})})(e),variant:c,children:e.content})},s))})})},subscribe:e=>{let{translationKey:s,layout:l="column",...t}=e,{t:c}=(0,d.Bd)(),[n,o]=(0,r.useState)(null),{title:u,description:p}=(0,v._K)(s,{title:void 0,description:void 0},{postProcess:["parseHtml"],parseHtmlOptions:{keyPattern:/\.description/}}),[{marketingCarrierCode:h,currency:b,locale:g}]=(0,el.g)(),N=(0,J.x)({marketingCarrierCode:h,params:{currency:b,locale:g}}),f=es(),A=async e=>{try{if(!N.data?.customerServiceEmail)return o("error");await f.mutateAsync({...e,targetEmail:N.data.customerServiceEmail,theme:c("customBlocksCommon.emailTheme.subscribe")}),o("success")}catch(e){o("error")}},y=(0,k.Wx)({initialValues:{email:""},onSubmit:A});return(0,a.jsxs)(m,{...t,background:{fill:"transparent"},contentClassName:"row center",children:[null!=n&&(0,a.jsx)(C,{blockType:"subscribe",opened:!0,onClose:()=>o(null),type:n}),(0,a.jsxs)("div",{className:i()("subscribe-block gap-lg-5 gap-4 column",l+"-lg"),children:[(0,a.jsx)("div",{className:i()("cell","row"===l?"cell-lg-6":""),children:(0,a.jsxs)("div",{className:i()("column"),children:[u&&(0,a.jsx)("h2",{className:"cell mb-3",children:u}),p&&(0,a.jsx)("div",{className:"body-16",children:p})]})}),(0,a.jsx)("div",{className:i()("cell","row"===l?"cell-lg-6":""),children:(0,a.jsxs)("div",{className:"column gap-2",children:[(0,a.jsx)(k.QI,{value:y,children:(0,a.jsxs)(k.lV,{className:"row gap-3 center column-sm gap-sm-4",children:[(0,a.jsx)("div",{className:i()("cell-sm-12 cell-md-6","column"===l?"cell-5":"cell-8"),children:(0,a.jsx)(k.D0,{component:M.A,iconBefore:(0,a.jsx)(j.A,{name:"mail",size:"large"}),label:c("customBlocksCommon.subscribe.inputPlaceholder"),name:"email",validate:(0,T.cy)([T.mw,T.Rp]),required:!0})}),(0,a.jsx)("div",{className:i()("cell-sm-12 cell-md-4","column"===l?"cell-3":"cell-4"),children:(0,a.jsx)(x.A,{loading:y.isSubmitting,buttonType:"submit",children:c("customBlocksCommon.subscribe.confirmButton")})})]})}),(0,a.jsx)(et,{privacyPolicy:N.data?.privacyPolicy})]})})]})]})},form:e=>{let{themes:s,translationKey:l,showCarrierInformation:t,backgroundStyle:c}=e,{t:n}=(0,d.Bd)(),[u,p]=(0,r.useState)(null),[{marketingCarrierCode:h,currency:b,locale:g}]=(0,el.g)(),{title:N,description:f}=(0,v._K)(l,{title:void 0,description:void 0},{subKey:"header",postProcess:["parseHtml"],parseHtmlOptions:{keyPattern:/\.description/}}),A=es(),y=(0,J.x)({marketingCarrierCode:h,params:{currency:b,locale:g}}),w=async e=>{try{if(!y.data?.customerServiceEmail)return p("error");await A.mutateAsync({...e,tripDate:e.tripDate&&F.Ay.formatDate(e.tripDate),targetEmail:y.data?.customerServiceEmail,theme:n(`customBlocksCommon.emailTheme.${e.theme}`)}),p("success")}catch(e){p("error")}},_=(0,r.useMemo)(()=>({theme:s[0],attachments:[],lostObject:null,lostBrand:null,lostModel:null,lostColor:null,ticketNumber:null,tripDate:null,tripTime:null,firstName:null,lastName:null,email:null,phone:null,termAccepted:!1,message:null}),[s]),B=(0,k.Wx)({initialValues:_,onSubmit:w}),{values:D}=B,P=(0,r.useMemo)(()=>ea[D.theme],[D.theme]),$=(0,r.useMemo)(()=>s.map(e=>({value:e,label:n(`customBlocksCommon.form.theme.${e}`)})),[n,s]),T=(0,a.jsxs)(a.Fragment,{children:[N&&(0,a.jsx)("h2",{className:"cell mb-3 form-block__title",children:N}),f&&(0,a.jsx)("div",{className:"body-16 mb-5 form-block__description",children:f})]});return(0,a.jsxs)(m,{background:{fill:"white"},appearance:"flat",children:[null!=u&&(0,a.jsx)(C,{blockType:"form",opened:!0,onClose:()=>p(null),type:u}),(0,a.jsx)(k.QI,{value:B,children:(0,a.jsx)(k.lV,{className:i()("row center gap-8 column-sm",(0,o.A)("form-block",{"with-carrier":t,"two-tone":"twoTone"===c&&t})),children:(0,a.jsxs)(a.Fragment,{children:[t&&(0,a.jsx)("div",{className:"cell-6 cell-sm-12 form-block__carrier-info",children:(0,a.jsxs)("div",{className:"column gap-3",children:[T,y.data?.phone&&(0,a.jsxs)("div",{className:"row gap-2 items-center",children:[(0,a.jsx)("div",{className:"cell no-grow form-block__carrier-info-icon",children:(0,a.jsx)(j.A,{name:"phone",size:"large"})}),(0,a.jsx)("div",{className:"cell",children:y.data.phone})]}),y.data?.email&&(0,a.jsxs)("div",{className:"row gap-2 items-center form-block__carrier-email",children:[(0,a.jsx)("div",{className:"cell no-grow form-block__carrier-info-icon",children:(0,a.jsx)(j.A,{name:"mail",size:"large"})}),(0,a.jsx)("div",{className:"cell",children:y.data.email})]}),y.data?.address&&(0,a.jsxs)("div",{className:"row gap-2 items-center",children:[(0,a.jsx)("div",{className:"cell no-grow form-block__carrier-info-icon",children:(0,a.jsx)(j.A,{name:"map-pin",size:"large"})}),(0,a.jsx)("div",{className:"cell",children:y.data.address})]})]})}),(0,a.jsx)("div",{className:"cell-6 cell-sm-12",children:(0,a.jsxs)("div",{className:"column gap-4 items-center",children:[!t&&T,(0,a.jsx)("div",{className:"cell-12 stretch",children:(0,a.jsx)(k.D0,{component:V.A,label:n("customBlocksCommon.form.themeLabel"),name:"theme",items:$,required:!0})}),(0,a.jsx)("div",{className:"cell-12 stretch",children:(0,a.jsx)(H,{})}),P.map((e,s)=>(0,a.jsx)("div",{className:"cell-12 stretch",children:(0,a.jsx)(e,{})},s)),(0,a.jsx)("div",{className:"cell-12 stretch",children:(0,a.jsx)(O,{terms:y.data?.terms??""})}),(0,a.jsx)("div",{className:"cell no-grow form-block__submit",children:(0,a.jsx)(x.A,{loading:A.isLoading,buttonType:"submit",children:n("customBlocksCommon.form.submit")})})]})})]})})})]})},subscription:e=>{let{translationKey:s,...l}=e,[t,c]=(0,r.useState)(null),[i]=(0,em.A)(),[n]=(0,el.g)(),d=(0,u.A)(),p=(0,en.Zp)(),{track:h}=(0,eu.st)(),{price:j,error:b,isLoading:g,activationLeadTimeMonths:N}=(0,ed.D)({marketingCarrierCode:n.marketingCarrierCode,locale:n.locale,currency:n.currency,travelerAge:30,startMonth:t}),{title:f,description:k,button:A,introTitle:y,introSubtitle:w}=(0,v._K)(s,{title:void 0,description:void 0,button:void 0,introTitle:void 0,introSubtitle:void 0});return(0,a.jsx)(m,{...l,children:(0,a.jsxs)("div",{className:"row column-sm",children:[(0,a.jsxs)("div",{className:"subscription-card order-sm-2",children:[(0,a.jsx)(ec.A,{header:(0,a.jsx)(ev,{title:f||""}),body:(0,a.jsx)("div",{className:"px-6",children:(0,a.jsx)(ej.BR,{selectedMonth:t,onMonthSelect:e=>{c(e),h((0,eh.Ml)({...(0,ep.v)(),subscriptionStart:e}))},label:k||"",activationLeadTimeMonths:N})})}),(0,a.jsx)(ei.A,{}),(0,a.jsx)("div",{className:(0,o.A)("subscription-card","footer"),children:(0,a.jsx)(x.A,{variant:"filled",color:"primary",onClick:()=>{h((0,eh.Nq)({...(0,ep.v)(),subscriptionStart:t}));let e={...i,subscriptionStart:t};p(ex.A.build(["/","subscription"],e))},children:(0,a.jsxs)("div",{className:"button-content",children:[(0,a.jsx)("span",{children:A}),(0,a.jsx)("span",{children:j&&!g&&!b&&(0,a.jsx)(eo.A,{fractional:j.fractional,currency:j.currency})})]})})})]}),(0,a.jsxs)("div",{className:"subscription-intro column order-sm-1 mb-sm-5",children:[(0,a.jsx)("h1",{className:(0,o.A)("subscription-intro","title"),children:y}),!d&&(0,a.jsx)("span",{className:(0,o.A)("subscription-intro","subtitle"),children:w})]})]})})}},ef=e=>{let{blocks:s}=e,l=s.some(e=>{let{type:s}=e;return"background"===s});return(0,a.jsx)("div",{className:"column gap-md-5 gap-lg-5 custom-blocks mb-7",children:s.map((e,r)=>{let{data:t,type:c}=e,i=eN[c];if(!i)return null;let n=l&&0===r||"background"===s[0].type&&1===r;return(0,a.jsx)("div",{className:"cell",children:(0,a.jsx)(i,{...t??{}
3,onBackground:n})},`${c}${r}${t?.translationKey}`)})})}},18143(e,s,l){var a=l(74848),r=l(25487),t=l(93735),c=l(46942),i=l.n(c),n=l(96540),o=l(86522);l.d(s,{},{A:e=>{let{tabs:s,title:l,description:c}=e,[m,d]=(0,n.useState)(0),[u,p]=(0,n.useState)({}),h=u[m]||[],x=s.map((e,s)=>({value:s,label:e.title})),j=s[m];return j&&j.items&&j.items.length?(0,a.jsxs)("div",{className:"column gap-3 faq-tabs",children:[(0,a.jsx)("h3",{className:"mb-2",children:l}),(0,a.jsx)("div",{className:i()("body-14  mb-1",(0,o.A)("faq-tabs","description")),children:c}),(0,a.jsx)("div",{className:i()("cell",(0,o.A)("faq-tabs","content")),children:(0,a.jsxs)("div",{className:"column",children:[(0,a.jsx)("div",{className:(0,o.A)("faq-tabs","navigation"),children:(0,a.jsx)(r.A,{options:x,value:m,onClick:e=>{d(e)}})}),j.items.map((e,s)=>(0,a.jsx)(t.A,{titleClassName:"body-14 bolder",title:e.title,opened:h.includes(s),onChange:e=>{p(l=>{let a,r=l[m]||[];return a=e?r.includes(s)?r:[...r,s]:r.filter(e=>e!==s),{...l,[m]:a}})},children:(0,a.jsx)("div",{className:"body-14 pb-2",children:e.content})},`${m}-${s}`))]})})]}):null}})},47982(e,s,l){var a=l(74848),r=l(46942),t=l.n(r);l(96540);var c=l(17540),i=l(86522);l.d(s,{},{A:e=>{let{background:s,children:l,alignVertical:r="left",appearance:n="flat",mobileAp
3pearance:o="flat",contentClassName:m,className:d}=e,u=(0,c.A)(),{fill:p}=s??{},h=u?o:n,x=p?.startsWith("http"),j=x?{}:{[p??("elevated"===n?"white":"default")]:!0},v=x?{backgroundImage:`url(${p})`,backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"}:void 0;return(0,a.jsx)("div",{style:"flat"===h?v:void 0,className:t()(d,(0,i.A)("page-section",{...j,"image-background":x,[`vertical-${r}`]:!0,[h]:!0})),children:(0,a.jsx)("div",{style:"elevated"===h?v:void 0,className:t()(m,{paper:"elevated"===h},(0,i.A)("page-section","content")),children:l})})}})},17070(e,s,l){var a=l(74848),r=l(60127),t=l(73004);l(96540);var c=l(56705),i=l(81587);l.d(s,{},{A:e=>{let{onClose:s,text:l,opened:n}=e,{t:o}=(0,c.Bd)(),m=(0,a.jsx)("div",{className:"row p-3 end",children:(0,a.jsx)(r.A,{onClick:s,color:"secondary",children:o("privacyPolicy.close")})});return(0,a.jsx)(t.A,{opened:n,onClose:s,title:o("checkout.bookingDetails.terms.title"),footer:m,children:(0,a.jsx)("div",{className:"p-6",children:(0,a.jsx)("pre",{className:"terms-content",children:i.Ay.format(l)})})})}})},30833(e,s,l){l.d(s,{A:()=>B});var a=l(74848),r=l(46942),t=l.n(r),c=l(96540),i=l(47767),n=l(54588),o=l(4331),m=l(90193),d=l(80201),u=l(17540),p=l(86522),h=l(76121),x=l(80627),j=l(16172),v=l(41394),b=l(83245),g=l(57253),N=l(96244),f=l(74743);let k={756974:8129296,446174:8129296,394690:8129980,130331:{BUBS:8129682,GVWT:8129981},171533:8129967},A=new Intl.DisplayNames(["en"],{type:"region"}),y={expedia:(e,s)=>{let{arrivalLocation:l,departureDate:a,returnDate:r}=s;return N.A.build([e,"Hotel-Search"],{destination:l?.name,adults:1,startDate:a,endDate:r??a})}};var w=l(98439),C=l(72003),_=l(59124);let B=e=>{let{layout:s,title:l,subTitle:r,hasMobileBackgroundImage:B,onValuesChange:D}=e,P=(0,u.A)(),$=(0,i.Zp)(),{settings:T,initialValues:S}=(0,n.A)(e.params),[M]=(0,f.g)(),{currency:O,mode:q}=M,[{accommodation:H,passengerTypesList:L}]=(0,_.t)(),z=(0,d.A)(),K="row"===s?["column","gap-10"]:["row","gap-11",...P?[]:["pt-5"]],I=h.A.getUtmParams(window.location.search);return(0,a.jsxs)("div",{className:t()(...K,"column-sm","gap-sm-4","search-section"),children:[(0,a.jsx)("div",{className:"cell no-grow",children:(0,a.jsx)("div",{className:(0,p.A)("search-section","form",{[s]:!0}),children:(0,a.jsx)(o.A,{direction:P?"column":s,initialValues:{...S,accommodation:H.enabledByDefault??!0},onSubmit:e=>{(e=>{let{departureLocation:s,arrivalLocation:l,accommodation:a,...r}=e,t=N.A.buildInternal("/result",M,(0,C.k)(e,{params:M,currency:O,passengerTypesListEnabled:L.enabled,encodePassengers:z,utmParams:I})),i=a&&H.enabled,n=i&&P&&q!==m.kx.App?(0,w.w)(t,"accommodation"):t,o=((e,s,l,a)=>{let{partner:r}=e;if("booking.com"===r)return((e,s,l)=>{let{arrivalLocation:a,departureDate:r,returnDate:t,passengers:c,pax:i}=s,{currency:n,passengers:o,pax:m,retailerPartnerNumber:d,marketingCarrierCode:u}=f.Ay.get(),p=c??o,h=g.A.calculateAdults(p,i,m),b=g.A.collectChildrenAges(p),y=((e,s,l)=>{if(e.partnerId)return e.partnerId;let a=Number(s);return k[a]&&"number"==typeof k[a]?k[a]:k[a]&&"object"==typeof k[a]&&k[a][l]?k[a][l]:a})(e,d,u),w=`pagesbsearch-see-${y}-click`,C=`mobsbsearch-see-${y}-click`,_={aid:y,label:l?C:w,...(e=>{let s=e?.alternativeCodes?.find(e=>"IATA"===e.type.toUpperCase())?.value;if(s)return{iata:s};let l=e?.countryCode?A.of(e.countryCode):void 0;return{ss:[(e=>{if(e?.name)return e.name.replace(/\s*\([^)]*\)\s*$/,"").trim()})(e),l??e?.countryCode].filter(Boolean).join(", ")||void 0}})(a),checkin:r,checkout:t??(0,x.GP)((0,j.f)((0,v.H)(r),1),"yyyy-MM-dd"),group_adults:h,group_children:b?.length,age:b,selected_currency:n};return N.A.build([l?"https://sp.booking.com/searchresults.html":"https://www.booking.com/searchresults.html"],_,"repeat")})(e,l,a);let t=b.A.accommodation[r][s]??b.A.accommodation[r].default;return y[r](t,l)})(H,M.locale,{departureLocation:s,arrivalLocation:l,...r},P);i?(open(n,"_blank"),open(o,"_self")):(0,c.startTransition)(()=>{$(t)})})(e)},onValuesChange:D,settings:{...T,accommodation:H.enabled,accommodationEnabledByDefault:(H.enabled&&H.enabledByDefault)??!0}})})}),(l??r)&&(0,a.jsx)("div",{className:t()("cell","-order-1-sm",{"-order-1":"row"===s}),children:(0,a.jsxs)("div",{className:`${(0,p.A)("search-section","title-wrapper")} column gap-2`,style:{color:e.textColor},children:[(0,a.jsx)("h1",{className:(0,p.A)("search-section","title",{"with-bg":B}),children:l}),(0,a.jsx)("div",{className:(0,p.A)("search-section","subtitle"),children:r})]})})]})}},62241(e,s,l){var a=l(74848),r=l(16522),t=l(6286);l(96540),l.d(s,{},{A:e=>{let s,l,c,i,n,o,m,d=(0,r.c)(18);d[0]!==e?({field:l,errorMessage:s,form:i,...c}=e,d[0]=e,d[1]=s,d[2]=l,d[3]=c,d[4]=i):(s=d[1],l=d[2],c=d[3],i=d[4]);let{setFieldValue:u,getFieldMeta:p}=i;d[5]!==l.name||d[6]!==p?(n=p(l.name),d[5]=l.name,d[6]=p,d[7]=n):n=d[7];let{touched:h,error:x}=n,j=h&&!!x;return d[8]!==l.name||d[9]!==l.value||d[10]!==u?(o=()=>{u(l.name,!l.value)},d[8]=l.name,d[9]=l.value,d[10]=u,d[11]=o):o=d[11],d[12]!==s||d[13]!==l.value||d[14]!==j||d[15]!==c||d[16]!==o?(m=(0,a.jsx)(t.A,{...c,checked:l.value,error:j,errorMessage:s,onChange:o,ariaLabel:c.ariaLabel,dataTag:c.dataTag,children:c.label}),d[12]=s,d[13]=l.value,d[14]=j,d[15]=c,d[16]=o,d[17]=m):m=d[17],m}})},18075(e,s,l){var a=l(74848);l.d(s,{},{A:()=>(0,a.jsx)("div",{className:"tear",children:(0,a.jsx)("div",{className:"tear-divider"})})})}}]);
4//# sourceMappingURL=default-src_pages_Subscription_hooks_useInitialFormValues_ts-src_components_Blocks_index_tsx.98f9278cc2b1516d.js.map
5//# debugId=de8db325-5656-5ae9-bed1-585c16b67181

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.