PageSourceSearch

https://www.tui.ro/assets/web-prd-ro/7b86fd164c50219a89c5238d56108…/static/chunks/65148-a3c76526ec49951a.js

js tui.ro collected 2026-10-08 07:24:55 UTC 9,002 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];if(null!=t)for(var l in t)t.hasOwnProperty(l)&&(e[l]=t[l])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:sentry-ro":!0});var n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c1f18908-cd80-4516-9390-9c0dadb6374e",e._sentryDebugIdIdentifier="sentry-dbid-c1f18908-cd80-4516-9390-9c0dadb6374e")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[65148],{28166:function(e,n,t){t.d(n,{Z:function(){return l.Z}});var l=t(48544)},65148:function(e,n,t){t.d(n,{Z:function(){return g}});var l=t(31549),r=t(60830),i=t(71923),o=t(4581),a=t(61624),s=t(45498),d=t(28166),c=t(31731),u=t(14895),p=t(60810),h=t(82324),m=t(44194),v=t(57011),f=t(65832),b=t(7862),x=t.n(b);let _={...f.RH,participantsDropdown:x().shape(v.vY),adults:x().shape(v.vY),children:x().shape(v.vY),showResetButton:x().bool,isGlobalSearch:x().bool,isMobile:x().bool,onValueSelect:x().func,updateOffers:x().func},y={adults:v.uv,children:v.uv,showResetButton:!0,isGlobalSearch:!1,isMobile:!1,onValueSelect:()=>{},updateOffers:()=>{}};function w(e){var n,t;let{setActionHandlers:v,onValueSelect:f,updateOffers:b,participantsDropdown:x,isGlobalSearch:_,onFilterClose:y}=e,[w,g]=(0,m.useState)(!1),[j,N]=(0,m.useState)(x.value),[k,M]=(0,m.useState)(0),C=(0,s.T)(),D=(0,u.z$)("CONFIGURATOR"),P=k===o.aF,S=x.data.adultsOptions,E=x.data.childrenOptions;(0,m.useEffect)(()=>{let e=0;j.forEach(n=>{n.hidden||(e+=n.adults.length+n.children.length)}),e<o.aF&&g(!1),M(e)},[j]);let R=e=>{N(j.filter(n=>{let{id:t}=n;return t!==e}).map((e,n)=>({...e,id:n})))},Z=e=>{let{value:n,roomNumber:t,personType:l}=e,r=j[t][l].length,i=n[t][l].length;if(P&&r<i){g(!0);return}g(!1),N(n)},B=(e,n)=>{let[t,l]=e.split("-"),r=[...j];r[t].children[l].birthDate=(0,p.p6)((0,p.sG)(n,p.fK.yearMonthDayWithDashes),p.fK.dayMonthYearWithDots),r[t].children[l].hasError=!1,N(r)},A=(null==j?void 0:j.length)<o.CK;(0,m.useEffect)(()=>{v({submit:function(e){return(0,h.Vn)(!0,j)?(f({value:j}),_?y():b(),!0):(null==e||e.preventDefault(),N(j.map(e=>({...e,children:(0,h.qD)(e.children)}))),!1)},reset:function(){var e,n,t,l;let r=S.baseCount,i=E.baseCount,o=[{id:0,adults:(0,h.Ne)(r,c.Pl.adults),children:(0,h.Ne)(i,c.Pl.children)}],a=(0,h.mo)({adultsCount:r,childrenCount:i,adultsLabel:1===r?null!==(e=null==C?void 0:C.participantsSingleAdultPlaceholder)&&void 0!==e?e:null==D?void 0:D["dropdown.participants.adult.name"]:null!==(n=null==C?void 0:C.participantsAdultsPlaceholder)&&void 0!==n?n:null==D?void 0:D["dropdown.participants.adults.name"],childrenLabel:1===i?null!==(t=null==C?void 0:C.participantsSingleChildPlaceholder)&&void 0!==t?t:null==D?void 0:D["dropdown.participants.child.name"]:null!==(l=null==C?void 0:C.participantsChildrenPlaceholder)&&void 0!==l?l:null==D?void 0:D["dropdown.participants.children.name"]});N(o),f({value:o,fieldValue:a}),_||b()}})},[S.baseCount,E.baseCount,D,null==C?void 0:C.participantsAdultsPlaceholder,null==C?void 0:C.participantsChildrenPlaceholder,null==C?void 0:C.participantsSingleAdultPlaceholder,null==C?void 0:C.participantsSingleChildPlaceholder,_,j,y,f,v,b]);let T=e=>j[e].children.map(n=>{var t;let{id:i,hasError:o,birthDate:a}=n,s="".concat(e,"-").concat(i);return(0,l.jsx)("div",{className:"person-count__wrapper",children:(0,l.jsx)(r.Z,{id:s,hasError:o,date:a,className:"person-count__birth-date-widget",onDateSelect:B,isGlobalSearch:!0,isMobile:!0,isMultiroom:!0,withoutHeading:!0,errorMessage:null!==(t=null==C?void 0:C.participantsMissingChildrenBirthDate)&&void 0!==t?t:null==D?void 0:D["dropdown.participants.children.dates.error"]},s)},s)});return(0,l.jsxs)(l.Fragment,{children:[w&&(0,l.jsx)(d.Z,{message:(0,h.V7)(C,D),options:{type:"participants-count-warning"},close:()=>g(!1)}),(0,l.jsx)("div",{className:"participants-multiroom participants-multiroom--mobile",children:(0,l.jsxs)("ul",{className:"participants-multiroom__content",children:[j.map((n,t)=>{var r,o,s,d,u,p,h,m;return(0,l.jsx)("li",{className:"participants-multiroom__item",children:(0,l.jsxs)("div",{className:"room-box",children:[(0,l.jsxs)("div",{className:"room-box__title",children:[(null!==(o=null!==(r=null==C?void 0:C.participantsRoomCounter)&&void 0!==r?r:null==D?void 0:D["dropdown.participants.room"])&&void 0!==o?o:"Pok\xf3j nr {}").replace("{}
1",t+1),0!==t&&(0,l.jsx)(i.ZP,{variant:i.qh.clean,onClick:()=>R(t),className:"room-box__reset-button",iconName:"clear",iconPosition:"left",children:null!==(d=null!==(s=null==C?void 0:C.participantsRemoveRoom)&&void 0!==s?s:null==D?void 0:D["dropdown.participants.remove.room"])&&void 0!==d?d:"Usuń pok\xf3j"})]}),(0,l.jsxs)("div",{className:"room-box__body",children:[(0,l.jsxs)("div",{className:"room-box__counter-item",children:[(0,l.jsx)("span",{className:"room-box__counter-label",children:null!==(p=null!==(u=null==C?void 0:C.participantsAdultsCounter)&&void 0!==u?u:null==D?void 0:D["dropdown.participants.adults"])&&void 0!==p?p:"Dorośli"}),(0,l.jsx)(a.Z,{...e,value:j,data:S,type:c.Pl.adults,hideButtons:!0,isGlobalSearch:_,isMobile:!0,people:n.adults,onSelect:Z,isMultiroom:!0,isError:w,roomNumber:t})]}),(0,l.jsxs)("div",{className:"room-box__counter-item",children:[(0,l.jsx)("span",{className:"room-box__counter-label",children:null!==(m=null!==(h=null==C?void 0:C.participantsChildrenCounter)&&void 0!==h?h:null==D?void 0:D["dropdown.participants.children"])&&void 0!==m?m:"Dzieci"}),(0,l.jsx)(a.Z,{...e,value:j,data:E,type:c.Pl.children,hideButtons:!0,isGlobalSearch:_,isMobile:!0,people:n.children,onSelect:Z,isMultiroom:!0,isError:w,roomNumber:t})]})]}),n.children.length>0&&(0,l.jsx)("div",{className:"room-box__birth-date-content",children:T(t)})]})},t)}),A&&(0,l.jsx)("li",{className:"participants-multiroom__item",children:(0,l.jsx)(i.ZP,{variant:w||P?i.qh.disabled:i.qh.primary,onClick:()=>{if(w||P){g(!0);return}N([...j,{id:j.length,adults:[{id:0,type:c.Pl.adults,birthDate:null,hasError:!1}],children:[]}])},className:"participants-multiroom__button",iconName:"plus",iconClassName:"participants-multiroom__button-icon",children:null!==(t=null!==(n=null==C?void 0:C.participantsAddRoom)&&void 0!==n?n:null==D?void 0:D["dropdown.participants.add.room"])&&void 0!==t?t:"Dodaj pok\xf3j"})})]})})]})}w.propTypes=_,w.defaultProps=y;var g=w},44281:function(e,n,t){t.d(n,{Z:function(){return i}});var l=t(31549),r=t(44194);function i(e){let{severity:n,duration:t,onClick:i,onTimeElapsed:o}=e,a=(0,r.useRef)(null),s=(0,r.useRef)(null),d=(0,r.useRef)(),c=(0,r.useRef)();(0,r.useEffect)(()=>{c.current||(c.current=window.setTimeout(()=>{if(!d.current){var e;d.current=null===(e=s.current)||void 0===e?void 0:e.animate([{strokeDasharray:"1, 120"},{strokeDasharray:"120, 120"}],{duration:null!=t?t:5e3,fill:"forwards"}),void 0!==d.current&&"function"==typeof o&&(d.current.onfinish=()=>o())}},1e3))},[t,o]);let u="success"===n?"stroke-blue stroke-3":"stroke-white stroke-3";return(0,l.jsx)("button",{ref:a,onClick:i,onMouseEnter:function(){var e;null===(e=d.current)||void 0===e||e.pause()},onMouseLeave:function(){var e;null===(e=d.current)||void 0===e||e.play()},className:"flex h-5 w-5 cursor-pointer appearance-none border-none bg-transparent p-0 outline-none","data-component":"TimedCloseButton",children:(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 40",enableBackground:"new 0 0 40 40",children:[(0,l.jsx)("line",{className:u,x1:"15",y1:"15",x2:"25",y2:"25",strokeLinecap:"round",strokeMiterlimit:"10"}),(0,l.jsx)("line",{className:u,x1:"25",y1:"15",x2:"15",y2:"25",strokeLinecap:"round",strokeMiterlimit:"10"}),(0,l.jsx)("circle",{className:"stroke-3 stroke-black opacity-10",cx:"20",cy:"20",r:"19",strokeLinecap:"round",strokeMiterlimit:"10",fill:"none"}),(0,l.jsx)("path",{ref:s,className:u,d:"M20 1c10.45 0 19 8.55 19 19s-8.55 19-19 19-19-8.55-19-19 8.55-19 19-19z",strokeLinecap:"round",strokeMiterlimit:"10",strokeDasharray:"1, 120",fill:"none"})]})})}},48544:function(e,n,t){t.d(n,{Z:function(){return o},g:function(){return i}});var l=t(31549),r=t(44281);let i={timeout:0,offset:"5px",containerStyle:{top:"-5px",left:0,right:0,width:"100%",transform:"none",zIndex:9999,pointerEvents:"all"}};function o(e){let{style:n,options:t,message:i,close:o}=e;return(0,l.jsx)("div",{className:"message-bar message-bar--".concat(t.type),style:n,"data-component":"MessageBar",children:(0,l.jsx)("div",{className:"container",children:(0,l.jsx)("div",{className:"row",children:(0,l.jsxs)("div",{className:"col-12 d-flex",children:[(0,l.jsx)("p",{className:"message-bar__body",children:i}),(0,l.jsx)("div",{className:"message-bar__close-wrapper",children:(0,l.jsx)(r.Z,{severity:t.type,onClick:o,onTimeElapsed:o})})]})})})})}}}]);

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.