PageSourceSearch

https://www.tui.pl/assets/web-prd/ff70e9a8203e6a07ab8e8319aae50d4c…/directions/[...path]-7c52e4d14a583594.js

js tui.pl collected 2026-09-24 17:52:34 UTC 7,860 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 t=1;t<arguments.length;t++){var n=arguments[t];if(null!=n)for(var i in n)n.hasOwnProperty(i)&&(e[i]=n[i])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:sentry-pl":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="36544f2b-4d32-4372-82ef-80817802731c",e._sentryDebugIdIdentifier="sentry-dbid-36544f2b-4d32-4372-82ef-80817802731c")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[40367,57249,54239],{79085:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[abTestsToken]/directions/[...path]",function(){return n(1269)}])},67530:function(e,t,n){"use strict";n.d(t,{FV:function(){return a},Ht:function(){return r},Rw:function(){return l}});var i=n(34022),o=n(78261);let a="departure-airport-names";function l(e){return(0,o.ZP)(e?(0,i.kG)("services/tui-search/api/direction/departures?direction=".concat(e)).toString():null)}function r(){let{data:e}=(0,o.ZP)(a,null);return null!=e?e:{}}},51498:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var i=n(31549),o=n(34971),a=n(64182),l=n.n(a),r=n(44194),c=n(54737),s=n(26046),u=n(75952),d=n(63873),p=n(14895),m=n(2861);let f={default:0,listing:50,backToTop:112,resumeCheckout:85,listingResumeCheckout:130,resumeCheckoutWithBackToTop:192,mobileNavigation:48,bubbleInset:16},h={default:12,listing:12,backToTop:74,resumeCheckout:90,listingResumeCheckout:90,resumeCheckoutWithBackToTop:152,bubbleInset:8},g="#thulium-widget-button-frame__wrapper",b="#thulium-widget-invitation-menu-frame__wrapper",y="bottom 250ms ease, opacity 150ms ease-in-out, transform 150ms ease-in-out";function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"\n    ".concat(t).concat(g," { bottom: ").concat(e,"px !important; }\n    ").concat(t).concat(b," { bottom: ").concat(e+72,"px !important; }\n  ")}function w(e){let{forceOpen:t,queryToInit:n}=e,a=(0,p.z$)("thuliumWidgetComponent"),w=(0,o.useSearchParams)(),[k,x]=(0,r.useState)(!0),[_,T]=(0,r.useState)(!0),[j]=(0,u.L)(),{data:S,error:C,isValidating:N,isExpired:M,isDismissedInSession:I}=(0,d.O)(),O=(0,c.mo)(),E=(0,m.L)(),Z=(null==a?void 0:a.showBubble)==="true";if((0,r.useEffect)(()=>{void 0!==n&&T((null==w?void 0:w.get(n.key))===n.value)},[n,w]),(0,r.useEffect)(()=>(0,s.ZD)(e=>{Z||"closed"!==e||x(!0)}),[Z]),(0,r.useEffect)(()=>(0,s.gG)(()=>{x(!1)}),[]),!_)return null;let D=null==a?void 0:a.url,z=null==a?void 0:a.showOnlyOn,B=k&&!Z?"none":"block",P="listing"===E,W=P?f.listing:f.default,R=P?h.listing:h.default;!O||C||N||!S||M||I?j&&(W=f.backToTop,R=h.backToTop):(W=j?f.resumeCheckoutWithBackToTop:P?f.listingResumeCheckout:f.resumeCheckout,R=j?h.resumeCheckoutWithBackToTop:P?h.listingResumeCheckout:h.resumeCheckout);let L=f.bubbleInset+W,G=f.bubbleInset+Math.max(0,W-f.mobileNavigation),V=h.bubbleInset+R,F="\n    ".concat(g," { right: ").concat(16,"px !important; transition: ").concat(y," !important; }\n    ").concat(b," { right: ").concat(24,"px !important; transition: ").concat(y," !important; }\n    ").concat(v(L),"\n    @media (max-width: 767px) { ").concat(v(G,"body:has(.mobile-navigation--hidden
1) ")," }\n    @media (min-width: 768px) { ").concat(v(V)," }\n  ");return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("style",{suppressHydrationWarning:!0,children:"\n        #thulium-widget-application {\n          z-index: 20 !important;\n        }\n        ".concat("desktop"===z?"\n        #thulium-widget-application { display: none !important; }\n        @media (min-width: 768px) { #thulium-widget-application { display: ".concat(B," !important; } }\n      "):"mobile"===z?"\n        #thulium-widget-application { display: ".concat(B," !important; }\n        @media (min-width: 768px) { #thulium-widget-application { display: none !important; } }\n      "):"#thulium-widget-application { display: ".concat(B," !important; }"),"\n        ").concat(F,"\n      ")}),(0,i.jsx)(l(),{async:!0,strategy:"lazyOnload",src:D,onLoad:function(){let e=null;return(e=new MutationObserver(()=>{let t=document.querySelector("#thulium-widget-application");t&&k&&!t.getAttribute("aria-hidden")&&(t.setAttribute("aria-hidden","true"),e&&(e.disconnect(),e=null))})).observe(document.body,{childList:!0,subtree:!0}),t&&(0,s.JG)(),()=>{e&&e.disconnect()}}})]})}},1269:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return _},default:function(){return T}});var i=n(31549),o=n(88874),a=n(34022),l=n(2052),r=n(34435),c=n(5715),s=n(67530),u=n(20687),d=n(24542),p=n(76167),m=n(51498),f=n(28615),h=n(88527);function g(e){var t;let{searchState:n,contentData:o}=e,a=[o.code].concat(null===(t=o.regions)||void 0===t?void 0:t.map(e=>e.code)).filter(Boolean).join(" | "),l=(0,f.Nj)(null==n?void 0:n.tripType);return(0,i.jsx)(h.Z,{destinations:a,offerType:l})}var b=n(11896);function y(e){let{children:t}=e;return(0,i.jsx)("div",{className:"hidden lg:mt-[64px] lg:flex lg:h-full lg:flex-col lg:pb-[60px] lg:gap-8","data-component":"RightSlotWrapper",children:t})}var v=n(52315),w=n(88211),k=n(42148),x=n(68119),_=!0;function T(e){var t;let{initialPageData:n,initialContentData:f,initialTopOffersData:h,initialOffersLinksData:_,path:T,dictionary:j,featureFlags:S,departuresResponse:C,departureAirportNames:N,header:M}=e,I=(0,l.I0)(),O=(0,l.v9)(k.Z),E=(0,l.v9)(x.K),Z=null==E?void 0:E.globalSearch,D=null==E?void 0:E.mainDirectionRight,z=null==E?void 0:E.mainDirectionCenter,B=null==E?void 0:E.thuliumWidgetSlot,P=(0,r.BH)(),W=O.type===c.config.fullScreenViewTypes.globalSearch||O.type===c.config.fullScreenViewTypes.facets,R=O.type===c.config.fullScreenViewTypes.mapOverlay,L=function(e){let t=[];return e.subDirections&&e.subDirections.forEach(e=>{t.push(e)}),0===t.length&&void 0!==e.code&&t.push(e.code),t}(f),G={latitude:f.latitude,longitude:f.longitude},V=(0,a.jh)("/api/directions/find?url=".concat(T,"&locale=").concat(P)).toString(),F=(0,a.kG)("services/tui-search/api/direction/departures?direction=".concat(f.code)).toString();return(0,i.jsxs)(p.Z,{initialPageData:n,fallback:{[V]:f,"cms-dictionary":j,"feature-flags":S,[F]:C,[s.FV]:N,[o.O8.topOffers]:h,[o.O8.offersLinks]:_,header:M},children:[(0,i.jsxs)(v.Z,{isStaticPage:!0,children:[(0,i.jsxs)("main",{"data-testid":"directions",children:[(0,i.jsx)("div",{className:"container--full-width-mobile container",children:(0,i.jsx)("div",{className:"row row--full-width-mobile",children:(0,i.jsx)("div",{className:"col-12 col--full-width-mobile",children:Z})})}),(0,i.jsx)("div",{className:"container",children:(0,i.jsxs)("div",{className:"row",children:[(0,i.jsx)("div",{className:"col-12 col-lg-3 order-lg-2",children:(0,i.jsx)(y,{children:D})}),(0,i.jsxs)("div",{className:"col-12 col-lg-9 order-lg-1",children:[z,void 0!==f.name&&"pl"===P&&(0,i.jsx)("a",{href:"https://tui.pl/ubezpieczenia-turystyczne?pm_source=SW&pm_name=INS",rel:"noreferrer",target:"_blank",className:"text-blue-dark underline",dangerouslySetInnerHTML:{__html:"Ubezpieczenia turystyczne ".concat(f.name," - dowiedz się więcej&nbsp;\xbb")}})]})]})}),(0,i.jsx)(d.Z,{initialRegionCodes:L,initialMapType:"offers",initialMapCenter:G}),R&&(0,i.jsx)(u.Z,{displaySelectedFilters:!0,isMapOpen:R,onButtonClick:function(e){I((0,w.Mn)({type:e}))}}),W&&(0,i.jsx)(b.Z,{})]}),(0,i.jsx)(g,{searchState:null===(t=n.content)||void 0===t?void 0:t.searchState,contentData:f})]}),B&&(0,i.jsx)(m.Z,{})]})}}},function(e){e.O(0,[74357,50895,85772,30035,71143,94090,34971,53907,4978,97019,68237,11783,98654,86242,7230,17710,7262,65148,27422,62311,93423,24795,72442,92888,49774,40179],function(){return e(e.s=79085)}),_N_E=e.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.