PageSourceSearch

https://italiatren.com/_next/static/chunks/74055-998a8e85892d4798.js

js italiatren.com collected 2026-10-02 19:22:06 UTC 30,540 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[74055],{47443:function(e,r,n){var t=n(42118);e.exports=function(e,r){return!!(null==e?0:e.length)&&t(e,r,0)>-1}},1196:function(e){e.exports=function(e,r,n){for(var t=-1,o=null==e?0:e.length;++t<o;)if(n(r,e[t]))return!0;return!1}},20731:function(e,r,n){var t=n(88668),o=n(47443),a=n(1196),i=n(29932),l=n(7518),s=n(74757);e.exports=function(e,r,n,c){var u=-1,d=o,m=!0,f=e.length,p=[],h=r.length;if(!f)return p;n&&(r=i(r,l(n))),c?(d=a,m=!1):r.length>=200&&(d=s,m=!1,r=new t(r));e:for(;++u<f;){var b=e[u],v=null==n?b:n(b);if(b=c||0!==b?b:0,m&&v==v){for(var g=h;g--;)if(r[g]===v)continue e;p.push(b)}else d(r,v,c)||p.push(b)}return p}},41848:function(e){e.exports=function(e,r,n,t){for(var o=e.length,a=n+(t?1:-1);t?a--:++a<o;)if(r(e[a],a,e))return a;return -1}},42118:function(e,r,n){var t=n(41848),o=n(62722),a=n(42351);e.exports=function(e,r,n){return r==r?a(e,r,n):t(e,o,n)}},62722:function(e){e.exports=function(e){return e!=e}},42351:function(e){e.exports=function(e,r,n){for(var t=n-1,o=e.length;++t<o;)if(e[t]===r)return t;return -1}},82569:function(e,r,n){var t=n(20731),o=n(5976),a=n(29246),i=o(function(e,r){return a(e)?t(e,r):[]});e.exports=i},13995:function(e,r,n){"use strict";var t=n(85893),o=n(90512),a=n(67294),i=n(19528),l=(0,a.forwardRef)(function(e,r){var n=e.placeholder,l=e.id,s=e.name,c=e.type,u=void 0===c?"text":c,d=e.value,m=e.min,f=e.max,p=e.maxLength,h=e.onChange,b=e.onPressEnter,v=e.onFocus,g=e.onBlur,x=e.iconLeft,_=e.iconRight,I=e.disabled,y=e.readOnly,E=void 0!==y&&y,N=e.error,T=e.iconLeftClass,A=e.iconRightClass,j=e.testId,k=e.onIconRightClick,w=(0,a.useCallback)(function(e){null==h||h(e.currentTarget.value)},[h]),Z=(0,a.useCallback)(function(e){"Enter"===e.key&&(null==b||b())},[b]);return(0,t.jsxs)("div",{className:"relative input-text-root-ref",children:[x&&(0,t.jsx)("span",{className:"absolute top-1/2 left-4 z-10 flex -translate-y-1/2 text-[1.3rem] text-secondary max-w-8",children:(0,t.jsx)(i.Z,{image:x,className:T})}),(0,t.jsx)("input",{className:(0,o.Z)("relative block py-3 w-full rounded outline-transparent transition-all placeholder:text-secondary hover:shadow-lg focus:shadow-lg disabled:text-secondary disabled:bg-light disabled:pointer-events-none",x?"pl-12":"pl-4",_?"pr-12":"pr-4",(void 0===N?"":N)?"border-danger hover:border-danger-heavy focus:border-danger-heavy":"border-secondary-o50 hover:border-secondary-o25 focus:border-secondary-o25",E?"bg-light pointer-events-none":"bg-white pointer-events-auto","number"===u&&"[&::-webkit-outer-spin-button]:appearance-none [&::-webkit-outer-spin-button]:m-0 [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-inner-spin-button]:m-0 [-moz-appearance:textfield]"),ref:r,type:u,placeholder:n,id:l,name:s,disabled:void 0!==I&&I,value:d,min:m,max:f,maxLength:p,onChange:w,onKeyPress:Z,onFocus:v,onBlur:g,readOnly:E,"data-testid":j}),_&&(0,t.jsx)("span",{className:(0,o.Z)("absolute flex right-4 top-1/2 text-[1.3rem] text-secondary -translate-y-1/2 max-w-8 z-10",!!k&&"cursor-pointer"),children:(0,t.jsx)(i.Z,{image:_,className:A,onClick:k})})]})});r.Z=l},99008:function(e,r,n){"use strict";n.d(r,{Z:function(){return s}});var t=n(85893),o=n(90512),a=n(67294),i=n(93965),l=a.memo(function(e){var r=(0,a.useCallback)(function(){e.onChange(e.value)},[e.value,e.onChange]);return(0,t.jsx)("div",{className:"radio-button-root-ref",children:(0,t.jsxs)("label",{className:"flex cursor-pointer items-center",children:[(0,t.jsx)("input",{type:"radio",name:e.name,id:e.id,value:e.value,checked:e.checked,disabled:e.disabled,className:"absolute size-0 cursor-pointer opacity-0 peer",onChange:r}),(0,t.jsx)("div",{className:"flex flex-wrap items-center text-sm",children:e.children}),(0,t.jsx)("span",{className:"-order-1 inline-block size-6 shrink-0 rounded-full bg-white transition-all mr-2.5 border border-primary shadow-[inset_0_0_0_0.75rem_white] peer-checked:bg-primary peer-checked:shadow-[inset_0_0_0_0.1875rem_white] peer-disabled:border-secondary-o50 peer-disabled:bg-light"})]})})}),s=function(e){var r=(0,i.$G)().t;return(0,t.jsx)("div",{className:(0,o.Z)("flex",e.inlineOptions?"py-3 gap-5":"flex-col gap-2 block w-full py-2"),onBlur:e.onBlur,children:e.options.filter(function(e){return!e.hidden}).map(function(n){var o=e.withTranslation?r(n.label):n.label;return(0,t.jsx)(l,{name:e.name,value:n.value,checked:e.value===n.value,disabled:n.disabled,onChange:e.onChange,children:o},n.value)})})}},24589:function(e,r,n){"use strict";n.d(r,{Z:function(){return f}});var t,o,a=n(85893),i=n(67294),l=n(93965),s=n(90512),c=function(e){return(0,a.jsx)("div",{className:"relative h-11 grow md:h-12",children:(0,a.jsx)("div",{className:(0,s.Z)("absolute left-0 top-5 w-full h-[0.1875rem] md:top-3.5",e.primary?"bg-primary":"bg-secondary")})})},u=n(19528),d=n(79375);(t=o||(o={}))[t.none=0]="none",t[t.primary=1]="primary",t[t.secondary=2]="secondary";var m=i.memo(function(e){return(0,a.jsxs)("div",{className:"relative flex h-11 flex-col items-center justify-center md:h-12 md:w-56 md:gap-1",children:[e.leftLine!==o.none&&(0,a.jsx)("div",{className:(0,s.Z)("absolute left-0 top-5 z-[1] h-[0.1875rem] w-1/2 md:top-3.5",e.leftLine===o.primary?"bg-primary":"bg-secondary")}),e.rightLine!==o.none&&(0,a.jsx)("div",{className:(0,s.Z)("absolute left-1/2 top-5 z-[1] h-[0.1875rem] w-1/2 md:top-3.5",e.rightLine===o.primary?"bg-primary":"bg-secondary")}),(0,a.jsx)("div",{className:(0,s.Z)("z-[2] flex size-7 items-center justify-center rounded-full border-2 text-xs font-black",e.checked?"bg-primary text-white":"bg-white text-dark",e.primary?"border-primary":"border-secondary"),children:e.checked?(0,a.jsx)(u.Z,{image:d.Z.check}):e.step}),(0,a.jsx)("div",{className:(0,s.Z)("hidden w-full text-center text-xs font-bold md:block",e.primary?"text-dark":"text-secondary"),children:e.label})]})}),f=function(e){var r=(0,l.$G)().t;return(0,a.jsxs)("aside",{className:"flex flex-col-reverse w-full px-2 py-1.5 bg-white rounded shadow-md md:flex-col","data-testid":e.testId,children:[e.title&&(0,a.jsx)("div",{className:"mb-1 text-center text-xs font-black text-primary",children:e.title}),(0,a.jsxs)("div",{className:"w-full flex justify-between items-center",children:[(0,a.jsx)("div",{className:"w-[1.875rem] grow-0 md:grow-5"}),(0,a.jsx)(m,{step:1,label:r(e.stepLabels[0]),checked:e.step>1,leftLine:o.none,rightLine:e.step>1?o.primary:o.secondary,primary:!0}),(0,a.jsx)(c,{primary:e.step>1}),(0,a.jsx)(m,{step:2,label:r(e.stepLabels[1]),checked:e.step>2,primary:e.step>=2,leftLine:e.step>1?o.primary:o.secondary,rightLine:e.step>2?o.primary:o.secondary}),(0,a.jsx)(c,{primary:e.step>2}),(0,a.jsx)(m,{step:3,label:r(e.stepLabels[2]),checked:!1,primary:e.step>=3,leftLine:e.step>2?o.primary:o.secondary,rightLine:o.none}),(0,a.jsx)("div",{className:"w-[1.875rem] grow-0 md:grow-5"})]})]})}},34811:function(e,r,n){"use strict";var t=n(24043),o=n(85893),a=n(42138);n(67294);var i=n(93965),l=n(20464),s=n(36621),c=n(10028);r.Z=function(e){var r=(0,i.$G)().t,n=(0,t._)((0,a.U$)(e.name),3),u=n[0],d=n[1],m=n[2],f=(0,t._)((0,a.U$)("".concat(e.name,".from")),3),p=f[0],h=f[1],b=f[2],v=(0,t._)((0,a.U$)("".concat(e.name,".to")),3),g=v[0],x=v[1],_=v[2],I=(0,c.u)(d),y=e.selectRange;return(0,o.jsx)(s.Z,{id:e.id||e.name,labelTitle:e.labelTitle&&r(e.labelTitle),optional:e.optional,hint:e.hint&&r(e.hint),inline:e.inline,error:I,errorInPlace:e.errorInPlace,children:(0,o.jsx)(l.Z,{selectRange:y,minDate:e.minDate,maxDate:e.maxDate,placeholderFrom:e.placeholderFrom&&r(e.placeholderFrom),placeholderTo:e.placeholderTo&&r(e.placeholderTo),mobilePickerStartTitle:e.mobilePickerStartTitle,mobilePickerEndTitle:e.mobilePickerEndTitle,monthsToShow:e.monthsToShow,startDate:y?h.value:d.value,endD
1ate:x.value,allowMonthPicking:e.allowMonthPicking,onStartChange:y?b.setValue:m.setValue,onEndChange:_.setValue,onStartBlur:y?p.onBlur:u.onBlur,onEndBlur:g.onBlur})})}},52018:function(e,r,n){"use strict";n.d(r,{Z:function(){return f}});var t=n(24043),o=n(85893),a=n(42138),i=n(67294),l=n(93965),s=n(90512),c=function(e){var r;return{acceptedTypes:null===(r=e.accept)||void 0===r?void 0:r.join(", "),changeHandler:(0,i.useCallback)(function(r){var n=r.currentTarget.files[0];n&&e.onChange&&e.onChange(n)},[e.onChange])}},u=function(e){var r=(0,l.$G)().t,n=c(e);return(0,o.jsxs)("div",{className:"relative input-file-root-ref",children:[(0,o.jsx)("input",{type:"file",className:(0,s.Z)("block relative w-full py-3 pr-32 pl-4 bg-white border rounded transition-all file:hidden hover:shadow-lg focus:shadow-lg disabled:text-secondary disabled:bg-light disabled:pointer-events-none",e.error?"border-danger-heavy":"border-secondary-o50 hover:border-secondary-o25 focus:border-secondary-o25"),placeholder:e.placeholder,id:e.id,name:e.name,accept:n.acceptedTypes,disabled:e.disabled,onChange:n.changeHandler,onBlur:e.onBlur}),(0,o.jsx)("div",{className:(0,s.Z)("pointer-events-none absolute top-0 right-0 rounded-r px-7 py-3 font-bold text-white bg-primary border",e.error?"border-danger-heavy":"border-secondary-o50"),children:r("form.reportIssue.field.uploadFile.button")})]})},d=n(36621),m=n(10028),f=function(e){var r=(0,l.$G)().t,n=(0,t._)((0,a.U$)(e),3),i=n[0],s=n[1],c=n[2],f=(0,m.u)(s);return(0,o.jsx)(d.Z,{id:e.id||e.name,labelTitle:e.labelTitle&&r(e.labelTitle),optional:e.optional,hint:e.hint&&r(e.hint),inline:e.inline,error:f,errorInPlace:e.errorInPlace,children:(0,o.jsx)(u,{name:e.name,placeholder:e.placeholder&&r(e.placeholder),accept:e.accept,disabled:e.disabled,onChange:c.setValue,onBlur:i.onBlur})})}},6855:function(e,r,n){"use strict";var t=n(24043),o=n(85893),a=n(42138);n(67294);var i=n(93965),l=n(36621),s=n(13995),c=n(10028);r.Z=function(e){var r=(0,i.$G)().t,n=(0,t._)((0,a.U$)(e),3),u=n[0],d=n[1],m=n[2],f=(0,c.u)(d);return(0,o.jsx)(l.Z,{id:e.id||e.name,labelTitle:e.labelTitle&&r(e.labelTitle),optional:e.optional,hint:e.hint&&r(e.hint),inline:e.inline,error:f,errorInPlace:e.errorInPlace,className:e.className,children:(0,o.jsx)(s.Z,{name:e.name,value:d.value,type:e.type,placeholder:e.placeholder&&r(e.placeholder),disabled:e.disabled,readOnly:e.readOnly,min:e.min,max:e.max,iconLeft:e.iconLeft,iconRight:e.iconRight,iconLeftClass:e.iconLeftClass,iconRightClass:e.iconRightClass,testId:e.testId,onChange:m.setValue,onFocus:e.onFocus,onBlur:u.onBlur,onIconRightClick:e.onIconRightClick})})}},3630:function(e,r,n){"use strict";n.d(r,{Z:function(){return m}});var t=n(24043),o=n(85893),a=n(67294),i=n(93965),l=n(42138),s=n(36621),c=n(90512),u=function(e){var r=e.value,n=e.placeholder,t=e.id,i=e.disabled,l=e.readOnly,s=e.error,u=e.name,d=e.rows,m=e.onChange,f=e.onBlur,p=(0,a.useCallback)(function(e){m(e.currentTarget.value)},[m]);return(0,o.jsx)("textarea",{className:(0,c.Z)("relative block py-3 px-4 rounded w-full transition-all placeholder:text-secondary hover:shadow-lg focus:shadow-lg disabled:text-secondary disabled:bg-light disabled:pointer-events-none",l?"bg-light":"bg-white",s?"border-danger-heavy":"border-secondary-o50 hover:border-secondary-o25 focus:border-secondary-o25"),id:t,name:u,value:r,placeholder:n,rows:d,disabled:i,readOnly:l,onChange:p,onBlur:f})},d=n(10028),m=function(e){var r=(0,i.$G)().t,n=(0,t._)((0,l.U$)(e),3),a=n[0],c=n[1],m=n[2],f=(0,d.u)(c);return(0,o.jsx)(s.Z,{id:e.id||e.name,labelTitle:e.labelTitle&&r(e.labelTitle),optional:e.optional,hint:e.hint&&r(e.hint),inline:e.inline,error:f,errorInPlace:e.errorInPlace,children:(0,o.jsx)(u,{name:e.name,placeholder:e.placeholder&&r(e.placeholder),rows:e.rows,readOnly:e.readOnly,onChange:m.setValue,onBlur:a.onBlur,value:c.value})})}},25378:function(e,r,n){"use strict";var t=n(85893),o=n(90512);n(67294);var a=n(93965),i=n(44068),l=n(96184),s="w-full lg:w-auto";r.Z=function(e){var r,n=(0,a.$G)().t,c=e.backButtonMessage||e.actionButtonMessage||e.midButtonMessage,u=(0,l.r$)(n,e.actionButtonMessage),d=null!==(r=e.actionsPlacement)&&void 0!==r?r:"footer",m=c?(0,t.jsxs)("div",{className:"mt-2 flex flex-none flex-col justify-center gap-x-4 gap-y-2.5 lg:flex-row",children:[e.backButtonMessage&&(0,t.jsx)(i.Z,{testId:"modal-back-button",className:(0,o.Z)(s,e.backButtonClassName),variant:"secondary",onClick:e.onClose,children:n(e.backButtonMessage)}),e.midButtonMessage&&(0,t.jsx)(i.Z,{className:(0,o.Z)(s,e.midButtonClassName),variant:e.midButtonVariant,disabled:e.midButtonDisabled,pending:e.midButtonPending,onClick:e.onMidClick,testId:"modal-mid-button",children:n(e.midButtonMessage)}),e.actionButtonMessage&&(0,t.jsx)(i.Z,{className:(0,o.Z)(s,e.actionButtonClassName),variant:e.actionButtonVariant,disabled:e.actionButtonDisabled,pending:e.actionButtonPending,onClick:e.onActionClick,testId:"modal-action-button",children:u})]}):null;return(0,t.jsxs)("div",{className:"flex w-full flex-col justify-between",children:[(0,t.jsxs)("div",{className:(0,o.Z)("max-h-[78vh] flex-auto px-4",e.noScroll?"overflow-visible":"overflow-auto",e.mobileFullWidth?"-mx-6 md:-mx-4":"-mx-4","content"===d&&"flex flex-col justify-between",e.contentClassName),children:[e.title&&(0,t.jsx)("p",{className:"mb-4 font-black sm:mb-7 sm:text-xl",children:n(e.title)}),(0,t.jsx)("div",{className:(0,o.Z)(c||m?"mb-4 sm:mb-5":"mb-0","text-sm sm:text-base"),children:e.children}),"content"===d&&m,"sticky"===d&&c&&(0,t.jsx)("div",{className:"sticky bottom-0 -mx-4 bg-white px-4 pt-3 z-40",children:m})]}),"footer"===d&&m]})}},74055:function(e,r,n){"use strict";n.d(r,{Z:function(){return ex}});var t,o,a,i,l,s=n(85893),c=n(67294),u=n(25378),d=n(24589),m=["form.reportIssue.progress.category","form.reportIssue.progress.request","form.reportIssue.progress.user"],f=function(e){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.Z,{stepLabels:m,step:e.step}),(0,s.jsx)("div",{className:"mb-6"})]})},p=n(93965),h=n(9473),b=n(19528),v=n(79375),g=n(95114),x=n(66819),_=function(){var e=(0,p.$G)().t,r=(0,h.v9)(x.Z.forms.reportIssue.selectedTopic),n=(0,h.v9)(x.Z.forms.reportIssue.selectedSubTopic);return(0,s.jsxs)("h4",{className:"mb-7 text-sm font-bold",children:[r&&e("".concat(g._.messenger.translationPrefix.topic).c
1oncat(r.name)),r&&n&&(0,s.jsx)(b.Z,{image:v.Z.arrowLongRight,className:"my-0 align-text-bottom mx-1.5 text-primary"}),n&&e("".concat(g._.messenger.translationPrefix.topic).concat(n.name))]})},I=n(49122),y=n(42138),E=n(24043),N=n(53708),T=n(75927),A=n(75766),j=n(7258),k=n(26576),w=(t={},(0,A._)(t,I.EA.none,null),(0,A._)(t,I.EA.bookingEmail,""),(0,A._)(t,I.EA.buyerFirstName,""),(0,A._)(t,I.EA.buyerLastName,""),(0,A._)(t,I.EA.cityToFind,""),(0,A._)(t,I.EA.departureDateTime,""),(0,A._)(t,I.EA.destination,""),(0,A._)(t,I.EA.haveTicketRadioGroup,null),(0,A._)(t,I.EA.origin,""),(0,A._)(t,I.EA.pnr,""),(0,A._)(t,I.EA.query,""),(0,A._)(t,I.EA.screenshot,null),t),Z=j.Z_().max(64,k.Uf.TOO_LONG),L=(o={},(0,A._)(o,I.EA.none,null),(0,A._)(o,I.EA.bookingEmail,Z.email(k.Uf.EMAIL_INVALID)),(0,A._)(o,I.EA.buyerFirstName,Z),(0,A._)(o,I.EA.buyerLastName,Z),(0,A._)(o,I.EA.cityToFind,Z),(0,A._)(o,I.EA.departureDateTime,Z),(0,A._)(o,I.EA.destination,Z),(0,A._)(o,I.EA.haveTicketRadioGroup,Z.nullable()),(0,A._)(o,I.EA.origin,Z),(0,A._)(o,I.EA.pnr,Z),(0,A._)(o,I.EA.query,j.Z_().max(16e3,k.Uf.TEXT_AREA_TOO_LONG)),(0,A._)(o,I.EA.screenshot,null),o),S=function(e){var r=e.reduce(function(e,r){var n=L[r.name];return n&&(e[r.name]=r.showOn&&!r.optional?n.when(r.showOn.field,{is:r.showOn.value,then:j.Z_().required(k.Uf.REQUIRED)}):r.optional?n:n.required(k.Uf.REQUIRED)),e},{});return j.Ry(r)},C=function(){var e=(0,h.I0)(),r=(0,h.v9)(x.Z.forms.reportIssue.selectedForm),n=(0,h.v9)(x.Z.forms.reportIssue.requestForm),t=(0,h.v9)(x.Z.forms.reportIssue.formStepChanger),o=(0,E._)((0,c.useState)(!1),2),a=o[0],i=o[1],l=(0,N.Z)(t),s=(0,c.useMemo)(function(){return Object.fromEntries(r.filter(function(e){return e.name!==I.EA.none}).map(function(e){var r;return[e.name,null!==(r=n[e.name])&&void 0!==r?r:w[e.name]]}))},[n,r]),u=(0,c.useMemo)(function(){return S(r)},[r]),d=(0,c.useRef)(null),m=(0,c.useCallback)(function(r){e(T.Z.forms.reportIssue.setRequestForm(r)),e(T.Z.forms.reportIssue.nextStep())},[]);return(0,c.useEffect)(function(){if(a){if(l){var e;null==d||null===(e=d.current)||void 0===e||e.handleSubmit()}}else i(!0)},[t,l,a]),{initialValues:s,formRef:d,submitHandler:m,validationSchema:u}},M=function(e){var r=e.children;return(0,s.jsx)("div",{children:r})},O=n(74587),R=function(){var e=(0,y.u6)().values,r=(0,h.v9)(x.Z.forms.reportIssue.selectedForm);return{selectedFormGroupedByRows:(0,c.useMemo)(function(){var n=[],t=[];return r.filter(function(r){return!r.showOn||e[r.showOn.field]===r.showOn.value}).forEach(function(e){t.push(e),(2===t.length||t[0].wide)&&(n.push(t),t=[])}),t.length&&n.push(t),n},[r,e]),values:e}};(a||(a={})).image="image/*";var B=n(34811),P=n(52018),G=n(36621),D=n(99008),F=n(10028),H=function(e){var r=(0,p.$G)().t,n=(0,E._)((0,y.U$)(e),3),t=n[0],o=n[1],a=n[2],i=(0,F.u)(o);return(0,s.jsx)(G.Z,{id:e.id||e.name,labelTitle:e.labelTitle&&r(e.labelTitle),optional:e.optional,hint:e.hint&&r(e.hint),inline:e.inline,error:i,errorInPlace:e.errorInPlace,children:(0,s.jsx)(D.Z,{name:e.name,value:o.value,options:e.options,withTranslation:e.withTranslation,inlineOptions:e.inlineOptions,onChange:a.setValue,onBlur:t.onBlur})})},U=n(3630),$=n(6855),V=[{value:I.l.yes,label:"message.notification.modal.button.yes"},{value:I.l.no,label:"message.notification.modal.button.no"}],q=[a.image],z=(i={},(0,A._)(i,I.EA.none,function(){return(0,s.jsx)("div",{})}),(0,A._)(i,I.EA.bookingEmail,function(){return(0,s.jsx)($.Z,{name:I.EA.bookingEmail,type:"email",labelTitle:"form.reportIssue.field.bookingEmail.label",placeholder:"form.reportIssue.field.email.placeholder",errorInPlace:!0})}),(0,A._)(i,I.EA.buyerFirstName,function(){return(0,s.jsx)($.Z,{name:I.EA.buyerFirstName,labelTitle:"form.reportIssue.field.buyerFirstName.label",placeholder:"form.reportIssue.field.firstName.placeholder",errorInPlace:!0})}),(0,A._)(i,I.EA.buyerLastName,function(){return(0,s.jsx)($.Z,{name:I.EA.buyerLastName,labelTitle:"form.reportIssue.field.buyerLastName.label",placeholder:"form.reportIssue.field.lastName.placeholder",errorInPlace:!0})}),(0,A._)(i,I.EA.cityToFind,function(){return(0,s.jsx)($.Z,{name:I.EA.cityToFind,labelTitle:"form.reportIssue.field.lookForCity.label",placeholder:"form.reportIssue.field.lookForCity.placeholder",errorInPlace:!0})}),(0,A._)(i,I.EA.departureDateTime,function(){return(0,s.jsx)(B.Z,{name:I.EA.departureDateTime,labelTitle:"form.reportIssue.field.departureDate.label",placeholderFrom:"form.reportIssue.field.departureDate.placeholder",allowMonthPicking:!0,errorInPlace:!0})}),(0,A._)(i,I.EA.destination,function(){return(0,s.jsx)($.Z,{name:I.EA.destination,labelTitle:"form.reportIssue.field.destination.label",placeholder:"form.reportIssue.field.destination.placeholder",errorInPlace:!0})}),(0,A._)(i,I.EA.haveTicketRadioGroup,function(){return(0,s.jsx)(H,{name:I.EA.haveTicketRadioGroup,labelTitle:"form.reportIssue.field.ifHaveTicket.label",options:V,withTranslation:!0,inlineOptions:!0,errorInPlace:!0})}),(0,A._)(i,I.EA.origin,function(){return(0,s.jsx)($.Z,{name:I.EA.origin,labelTitle:"form.reportIssue.field.origin.label",placeholder:"form.reportIssue.field.origin.placeholder",errorInPlace:!0})}),(0,A._)(i,I.EA.pnr,function(){return(0,s.jsx)($.Z,{name:I.EA.pnr,labelTitle:"form.reportIssue.field.pnr.label",placeholder:"form.reportIssue.field.pnr.placeholder",errorInPlace:!0})}),(0,A._)(i,I.EA.query,function(e){var r;return(0,s.jsx)(U.Z,{name:I.EA.query,labelTitle:null!==(r=e.label)&&void 0!==r?r:"form.reportIssue.field.query.label",placeholder:"form.reportIssue.field.query.placeholder",rows:3,optional:e.optional,errorInPlace:!0})}),(0,A._)(i,I.EA.screenshot,function(e){return(0,s.jsx)(P.Z,{name:I.EA.screenshot,labelTitle:"form.reportIssue.field.uploadFile.label",placeholder:"form.reportIssue.field.uploadFile.placeholder",accept:q,optional:e.optional,errorInPlace:!0})}),i),K=function(){var e=R();return(0,s.jsx)(y.l0,{children:(0,s.jsx)("div",{className:"form-vertical-util",children:e.selectedFormGroupedByRows.map(function(e,r){var n=e[0].wide?M:O.Z;return(0,s.jsx)(n,{children:e.map(function(e){var r=z[e.name];return(0,s.jsx)(r,{label:e.label,optional:e.optional},e.name)})},r)})})})},X=function(){var e=C();return(0,s.jsx)(y.J9,{initialValues:e.initialValues,validationSchema:e.validationSchema,onSubmit:e.submitHandler,innerRef:e.formRef,enableReinitialize:!0,children:(0,s.jsx)(K,{})})},Q=n(90512),W=function(e){var r=(0,p.$G)().t,n={clickHandler:(0,c.useCallback)(function(){var r;null===(r=e.onClick)||void 0===r||r.call(e,e.option.key)},[e.option,e.onClick])},t=e.withTranslation?r(e.option.value):e.option.value;return(0,s.jsxs)("div",{className:(0,Q.Z)("flex items-center h-[3.75rem] py-2 px-5 gap-2.5 font-bold rounded transition-all",e.selected?"bg-success-bg shadow-lg":"bg-white shadow-md cursor-pointer hover:bg-primary-o05 hover:shadow-lg"),onClick:n.clickHandler,children:[e.withIcon&&(0,s.jsx)("div",{className:"ml-1 w-8",children:(0,s.jsx)("img",{src:e.option.optionalValue,alt:"icon"})}),t]})},J=function(e){return(0,s.jsx)("div",{className:"grid grid-cols-1 gap-x-5 gap-y-2.5 md:grid-cols-2",children:e.options.map(function(r){return(0,s.jsx)(W,{option:r,withIcon:e.withIcons,withTranslation:e.withTranslation,selected:r.key===e.selectedKey,onClick:r.key!==e.selectedKey?e.onSelect:void 0},r.key)})})},Y=function(){var e=(0,h.I0)(),r=(0,h.v9)(x.Z.forms.reportIssue.subTopicId),n=(0,h.v9)(x.Z.forms.reportIssue.selectedTopic);return{subTopicId:r,subTopicOptions:(0,c.useMemo)(function(){var e;return(null!==(e=(null!=n?n:{}).subOptions)&&void 0!==e?e:[]).map(function(e){return{key:String(e.id),value:"".concat(g._.messenger.translationPrefix.topic).c
1oncat(e.name)}})},[n]),subTopicSelectHandler:(0,c.useCallback)(function(r){e(T.Z.forms.reportIssue.setSubTopic(r?Number.parseInt(r,10):null))},[])}},ee=function(){var e=(0,p.$G)().t,r=Y();return(0,s.jsx)(G.Z,{labelTitle:e("form.reportIssue.field.subTopic.label"),children:(0,s.jsx)(J,{options:r.subTopicOptions,selectedKey:r.subTopicId?String(r.subTopicId):null,onSelect:r.subTopicSelectHandler,withTranslation:!0})})},er=n(25587).x.map(function(e){return{key:String(e.id),value:"".concat(g._.messenger.translationPrefix.topic).concat(e.name),optionalValue:"/assets/icons/contactUs/".concat(e.icon,".svg")}}),en=function(){var e=(0,h.I0)();return{topicId:(0,h.v9)(x.Z.forms.reportIssue.topicId),topicOptions:er,topicSelectHandler:(0,c.useCallback)(function(r){e(T.Z.forms.reportIssue.setTopic(r?Number.parseInt(r,10):null))},[])}},et=function(){var e=(0,p.$G)().t,r=en();return(0,s.jsx)(G.Z,{labelTitle:e("form.reportIssue.field.topic.label"),children:(0,s.jsx)(J,{options:r.topicOptions,selectedKey:r.topicId?String(r.topicId):null,onSelect:r.topicSelectHandler,withTranslation:!0,withIcons:!0})})},eo="email",ea="name",ei=j.Ry((l={},(0,A._)(l,eo,j.Z_().required(k.Uf.REQUIRED).max(64,k.Uf.TOO_LONG).email(k.Uf.EMAIL_INVALID)),(0,A._)(l,ea,j.Z_().required(k.Uf.REQUIRED).max(64,k.Uf.TOO_LONG)),l)),el=function(e,r){var n;return n={},(0,A._)(n,eo,null!=r?r:""),(0,A._)(n,ea,null!=e?e:""),n},es=function(){var e=(0,h.I0)(),r=(0,h.v9)(x.Z.appSettings.user.profile),n=(0,h.v9)(x.Z.forms.reportIssue.userForm),t=(0,h.v9)(x.Z.forms.reportIssue.formStepChanger),o=(0,E._)((0,c.useState)(!1),2),a=o[0],i=o[1],l=(0,N.Z)(t),s=(0,c.useMemo)(function(){return el(n.name||(r?[r.firstName,r.lastName].join(" "):void 0),n.email||(null==r?void 0:r.email))},[r,n.email,n.name]),u=(0,c.useRef)(null),d=(0,c.useCallback)(function(r){e(T.Z.forms.reportIssue.setUserForm(r)),e(T.Z.forms.reportIssueSaga.submit())},[]);return(0,c.useEffect)(function(){if(a){if(l){var e;null==u||null===(e=u.current)||void 0===e||e.handleSubmit()}}else i(!0)},[t,l,a]),{initialValues:s,formRef:u,submitHandler:d}},ec=function(){return(0,s.jsx)(y.l0,{children:(0,s.jsxs)(O.Z,{children:[(0,s.jsx)($.Z,{name:eo,type:"email",labelTitle:"layout.backoffice.filter.filters.email.label",placeholder:"layout.backoffice.filter.filters.buyer_email.placeholder",errorInPlace:!0}),(0,s.jsx)($.Z,{name:ea,labelTitle:"form.reportIssue.field.name.label",placeholder:"form.reportIssue.field.name.placeholder",errorInPlace:!0})]})})},eu=function(){var e=es();return(0,s.jsx)(y.J9,{initialValues:e.initialValues,validationSchema:ei,onSubmit:e.submitHandler,innerRef:e.formRef,children:(0,s.jsx)(ec,{})})},ed=function(){var e=(0,h.I0)(),r=(0,h.v9)(x.Z.forms.reportIssue.formStep),n=(0,h.v9)(x.Z.forms.reportIssue.topicId),t=(0,h.v9)(x.Z.forms.reportIssue.formStepChanger),o=(0,E._)((0,c.useState)(!1),2),a=o[0],i=o[1],l=(0,N.Z)(t);return(0,c.useEffect)(function(){e(T.Z.forms.reportIssue.setSubTopic(null))},[n]),(0,c.useEffect)(function(){if(a){if(l)switch(r){case I.i2.topic:n&&n>0&&e(T.Z.forms.reportIssue.nextStep()),e(T.Z.forms.reportIssue.nextStep());break;case I.i2.subTopic:e(T.Z.forms.reportIssue.nextStep())}}else i(!0)},[e,r,l,a,n]),{formStep:r}},em=function(){var e=ed();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(f,{step:e.formStep}),e.formStep!==I.i2.topic&&(0,s.jsx)(_,{}),e.formStep===I.i2.topic&&(0,s.jsx)(et,{}),e.formStep===I.i2.subTopic&&(0,s.jsx)(ee,{}),e.formStep===I.i2.request&&(0,s.jsx)(X,{}),e.formStep===I.i2.user&&(0,s.jsx)(eu,{})]})},ef=n(4298),ep=n.n(ef),eh=n(99404),eb=function(){var e=(0,h.I0)(),r=(0,c.useCallback)(function(){e(T.Z.forms.reportIssue.loadMessengerSdk())},[]),n=(0,c.useCallback)(function(e){eh.Z.error("Inbenta Messenger SDK: ".concat(e.message),e.stack)},[]);return{knowledgeErrorHandler:(0,c.useCallback)(function(e){eh.Z.error("Inbenta Knowledge SDK: ".concat(e.message),e.stack)},[]),messengerErrorHandler:n,messengerLoadHandler:r}},ev=function(){var e=eb();return(0,s.jsx)(ep(),{src:g._.messenger.sdk.src,integrity:g._.messenger.sdk.integrity,crossOrigin:"anonymous",strategy:"afterInteractive",onLoad:e.messengerLoa
1dHandler,onError:e.messengerErrorHandler})},eg=function(){var e=(0,h.I0)(),r=x.Z.forms.reportIssue,n=(0,h.v9)(r.requestPending),t=(0,h.v9)(r.formStep),o=(0,h.v9)(r.topicId),a=(0,h.v9)(r.subTopicId),i=t===g._.messenger.steps.min,l=t===g._.messenger.steps.max,s=(0,c.useMemo)(function(){switch(t){case I.i2.topic:return!o;case I.i2.subTopic:return!a;case I.i2.user:default:return!1}},[t,a,o]);return{actionButtonHandler:(0,c.useCallback)(function(){e(T.Z.forms.reportIssue.requestToChangeFormStep())},[e]),actionButtonLabel:l?"page.landing.contactUs.buttonSubmit":"message.notification.modal.button.next",isActionDisabled:s,midButtonHandler:(0,c.useCallback)(function(){t!==I.i2.request||a||e(T.Z.forms.reportIssue.previousStep()),e(T.Z.forms.reportIssue.previousStep())},[e,t,a]),midButtonLabel:i?void 0:"message.notification.modal.button.back",requestPending:n}},ex=function(){var e=eg();return(0,s.jsxs)(u.Z,{actionButtonMessage:e.actionButtonLabel,actionButtonPending:e.requestPending,actionButtonDisabled:e.isActionDisabled,onActionClick:e.actionButtonHandler,midButtonMessage:e.midButtonLabel,midButtonVariant:"secondary",onMidClick:e.midButtonHandler,noScroll:!0,children:[(0,s.jsx)(ev,{}),(0,s.jsx)(em,{})]})}},74587:function(e,r,n){"use strict";var t=n(85893);n(67294),r.Z=function(e){var r=e.children;return(0,t.jsx)("div",{className:"grid grid-cols-1 [&>*]:w-full gap-x-10 gap-y-6 md:grid-cols-2",children:r})}},10028:function(e,r,n){"use strict";n.d(r,{u:function(){return a}});var t=n(42138),o=n(93965),a=function(e){var r=(0,o.$G)().t,n=(0,t.u6)().submitCount;return(e.touched||n>0)&&e.error?r(e.error):""}},53708:function(e,r,n){"use strict";n.d(r,{Z:function(){return a}});var t=n(67294),o=function(e){var r=(0,t.useRef)();return(0,t.useEffect)(function(){r.current=e}),r.current},a=function(e){return o(e)!==e}},26576:function(e,r,n){"use strict";n.d(r,{Hh:function(){return p},QI:function(){return f},Uf:function(){return g},ev:function(){return v},mj:function(){return h},wN:function(){return b}});var t=n(75766),o=n(72253),a=n(14932),i=n(248),l=n(7258),s=n(82569),c=n.n(s),u=!1,d=/^ *[A-Za-z][ A-Za-z]*[A-Za-z] *$/,m=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!#$%&()*=@^-])(?=.{8,})/,f=/^(([^\s"(),.:;<>@[\\\]]+(\.[^\s"(),.:;<>@[\\\]]+)*)|(".+"))@((\[(?:\d{1,3}\.){3}\d{1,3}])|(([\dA-Za-z-]+\.)+[A-Za-z]{2,}))$/,p=/^[^-]/,h=/^(\+?\d{0,4})?\s?-?\s?(\(?\d{3}\)?)\s?-?\s?(\(?\d{3}\)?)\s?-?\s?(\(?\d{4}\)?)?$/,b=/^[\w.-]*$/,v=/^-?\d+$/,g={EMAIL_INVALID:"form.validation.error.email.invalid",EMAIL_IN_USE:"form.validation.error.email.inUse",FILE_EMPTY:"form.validation.error.file.empty",FILE_TOO_LARGE:"form.validation.error.file.tooLarge",FILE_UNSUPPORTED:"form.validation.error.file.unsupported",NAME_INVALID:"form.validation.error.name.invalid",NAME_MIN_LENGTH:"form.validation.error.name.minLength",NAME_MAX_LENGTH_15:"form.validation.error.name.maxLength_15",NAME_MAX_LENGTH_30:"form.validation.error.name.maxLength_30",LAST_NAME_INVALID:"form.validation.error.lastName.invalid",LAST_NAME_MIN_LENGTH:"form.validation.error.lastName.minLength",LAST_NAME_MAX_LENGTH_15:"form.validation.error.lastName.maxLength_15",LAST_NAME_MAX_LENGTH_30:"form.validation.error.lastName.maxLength_30",REQUIRED:"form.validation.error.requiredField",TEXT_AREA_TOO_LONG:"form.validation.error.textArea.tooLong",TOO_LONG:"form.validation.error.string.tooLong",TOO_LONG_2:"form.validation.error.string.tooLong2",TRANSLATION_KEY_INVALID:"form.validation.error.translations.keyInvalid",TRANSLATION_SCHEMA_MISMATCH:"form.validation.error.translations.schemaMismatch",PASSWORD_WEAK:"form.validation.error.password.weak",PASSWORDS_MISMATCH:"form.validation.error.password.match",STATION_NAME_REQUIRED:"form.validation.error.stationName.required",INTEGER_INVALID:"form.validation.error.number.integer"};(0,l.kM)(l.Z_,"name",function(e){return this.min(2,g.NAME_MIN_LENGTH).max(e?30:15,e?g.NAME_MAX_LENGTH_30:g.NAME_MAX_LENGTH_15).matches(d,g.NAME_INVALID)}),(0,l.kM)(l.Z_,"lastName",function(e){return this.min(2,g.LAST_NAME_MIN_LENGTH).max(e?30:15,e?g.LAST_NAME_MAX_LENGTH_30:g.LAST_NAME_MAX_LENGTH_15).matches(d,g.LAST_NAME_INVALID)}),(0,l.kM)(l.Z_,"strongPassword",function(){return this.min(8,"form.validation.error.password.tooShort").max(64,"form.validation.error.password.tooLong").matches(m,g.PASSWORD_WEAK)}),(0,l.kM)(l.Ry,"atLeastOneRequired",function(e,r){var n=this;return this.shape(e.reduce(function(i,l){return(0,a._)((0,o._)({},i),(0,t._)({},l,n.fields[l].when(c()(e,l),{is:function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return!r.some(Boolean)},then:n.fields[l].required(r)})))},{}),e.reduce(function(e,r,n,t){return(0,i._)(e).concat((0,i._)(t.slice(n+1).map(function(e){return[r,e]})))},[]))})},4298:function(e,r,n){e.exports=n(95026)}}]);

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.