PageSourceSearch

https://www.marsol.com.co/src_abTests_searchResults_mobileStickyCo…nts_DirectOnlyFi-d733c0.c4971c6bc83c7463.js

js marsol.com.co collected 2026-10-01 00:40:01 UTC 8,265 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]="53a312c7-e506-5708-8864-4db5e317b287")}catch(e){}}();
3(globalThis.rspackChunkowl_frontend||=[]).push([["src_abTests_searchResults_mobileStickyConnectionCalendar_index_ts-src_components_DirectOnlyFi-d733c0"],{36201(e,t,r){var n=r(29150);function a(e,t,r){return{...n.$5,...r,code:e+"--"+t}}r.d(t,{r:()=>a})},13852(e,t,r){r.d(t,{default:()=>E});var n=r(36201),a=r(74848),s=r(60127),l=r(65513),i=r(46942),c=r.n(i),o=r(96540),d=r(77981),u=r(12447),m=r(4834),p=r(55830),h=r(24885),x=r(78907),f=r(58942),j=r(17540),b=r(86522),y=r(2274),A=r(56705),v=r(4349),g=r(29150),N=r(71594),C=r(5159),D=r(59124),_=r(74743);let w=(0,o.forwardRef)(function(e,t){let r=e.PluginComponent||e.OriginalComponent,{twoWayConnections:n,outbound:i,onFiltersOpened:w,isLoading:E}=e,{t:M}=(0,A.Bd)(),k=(0,j.A)(),[{sorting:R,searchCalendar:S,filter:I}]=(0,D.t)(),[{bookingId:P,retailerPartnerNumber:L}]=(0,_.g)(),B=(0,h.h)({searchCalendar:S,retailerPartnerNumber:L}),[,T]=(0,f.A)(),O=I.directOnlyInlineHeaderView,F=(0,a.jsx)(s.A,{variant:"text",color:"secondary",onClick:w,"data-tag":"journey-list-filters-button",children:(0,a.jsx)(l.A,{label:(0,y.Mf)(M,T),iconName:"settings"})}),{showStepper:V}=(0,C.p)(),z=M("journeyList.banner.text",{defaultValue:""}),G=R.enabled,H=I.enabled,K=B&&!P,U=G||H,W=!V||H&&!k;return k?(0,a.jsxs)("div",{className:"display-contents gap-2 pt-2",children:[V&&(0,a.jsx)("div",{className:"pt-2",children:(0,a.jsx)(N.A,{showReturnStep:n,activeStep:(0,v.$)(!!i,n)})}),z&&(0,a.jsx)("div",{className:c()({"pt-2":!V,"pb-4":V}),children:(0,a.jsx)(d.A,{i18nKey:"journeyList.banner.text"})}),(0,a.jsx)("div",{className:"display-contents",children:(0,a.jsxs)("div",{className:c()((0,b.A)("journey-list","header",{expanded:!U}),"display-contents"),children:[W&&(0,a.jsx)("h3",{ref:t,className:(0,b.A)("journey-list","header-title",{minimized:!K&&U}),children:(0,a.jsx)(p.A,{twoWayConnections:n,outbound:i})}),K&&(0,o.createElement)((0,g.a9)(u.A,"ConnectionCalendar"),{outbound:i,isLoading:E}),U&&(0,a.jsx)("div",{className:"journey-list__header-control-panel column row-lg items-center",children:(0,a.jsxs)("div",{className:c()("row items-center w-100",{"journey-list__header-filter-enabled":O,"space-between":!O}),children:[O&&(0,a.jsx)(m.A,{}),G&&(0,a.jsx)(x.A,{showTogetherWithDirectOnlyFilter:O}),H&&F]})})]})})]}):(0,a.jsx)(r,{...e})}),E=(0,n.r)("searchResults","mobileStickyConnectionCalendar",{components:{JourneyListHeader:w}})},58942(e,t,r){var n=r(2274),a=r(27914);r.d(t,{},{A:()=>{let[e]=(0,a.BR)(),t=(0,n.VX)(e);return[t>0,t]}})},5159(e,t,r){var n=r(83245),a=r(17540),s=r(59124),l=r(74743);r.d(t,{},{p:()=>{let[{retailerPartnerNumber:e}]=(0,l.g)(),[{multistepCheckout:t}]=(0,s.t)(),r=(0,a.A)(),i=!!n.A.customGEBUI?.byRPN?.includes(e);return{isCustom:i,isCustomMobile:i&&r,showStepper:t.showStepper&&!r}}})},12447(e,t,r){var n=r(74848),a=r(7001),s=r(16275),l=r(59297),i=r(69821),c=r(16172),o=r(48497),d=r(88652),u=r(35047),m=r(96540),p=r(21791),h=r(5923),x=r(8828),f=r(37838),j=r(17540),b=r(19564),y=r(99916),A=r(50452),v=r(6077),g=r(3081),N=r(97484),C=r(2274),D=r(40466),_=r(25972),w=r(59124),E=r(41535),M=r(27914),k=r(74743);let R={"pt-BR":"EEEEEE, d MMM",default:"E, d MMM"},S=e=>e&&e.fractional?(0,n.jsx)(p.A,{fallback:(0,n.jsx)(n.Fragment,{children:"NO_PRICE_VALUE"}),children:(0,n.jsx)(f.A,{...e})}):"-";r.d(t,{},{A:e=>{let{outbound:t,isLoading:r,onBeforeDateChange:p}=e,f=t?"inbound":"outbound",[I]=(0,k.g)(),[P,L]=(0,y.A)(),{currency:B}=P,[{searchCalendar:T}]=(0,w.t)(),{displayPrice:O}=T,[{selectedDate:F,outboundDate:V,inboundDate:z,calendar:G,cheapestPrices:H},K]=(0,E.e)(),[{transportMode:U}]=(0,M.BR)(),{scrollRef:W}=(0,_.C)(),$=(0,j.A)(),{track:J}
3=(0,A.st)(),{getPrice:X}=(0,b.A)(),{allConnections:Y}=(0,h.P)(),q=Y?.[0],Q=(0,m.useMemo)(()=>"outbound"===f,[f]),Z=(0,m.useMemo)(()=>N.Ay.parse(I.departureDate),[I.departureDate]),ee=(0,m.useMemo)(()=>!Q&&I.returnDate?N.Ay.parse(I.returnDate):Z,[Q,I.departureDate,I.returnDate]),et=(0,m.useMemo)(()=>R[I.locale]??R.default,[I.locale]),er=(0,m.useMemo)(()=>Q?(0,l.G)(ee)?[(0,i.e)(ee,1),ee,(0,c.f)(ee,1)]:[ee,(0,c.f)(ee,1),(0,c.f)(ee,2)]:(0,o.Y)(Z,ee)?[(0,i.e)(ee,1),ee,(0,c.f)(ee,1)]:[ee,(0,c.f)(ee,1),(0,c.f)(ee,2)],[ee,Q,Z]);(0,m.useEffect)(()=>{F||K({selectedDate:ee})},[ee,F,K,G]),(0,m.useEffect)(()=>{K({selectedDate:ee})},[ee,K]);let en=(0,x.A)(),ea=(0,m.useMemo)(()=>{let{departureLocation:e,arrivalLocation:r,departureDate:n}=en,a=Q?{}:{departureLocation:e,arrivalLocation:r},s="today"===O?[n]:er.map(N.Ay.formatDate),l=!Q&&t?t.id:void 0;return{...I,...a,currency:B??I.currency,departureDates:s,passengers:en.passengers,_cacheKey:l}},[en,Q,O,er,t,I,B]),{isLoading:es,data:el}=(0,D.D)(ea),ei=(0,m.useRef)(el),ec=!!t,eo=(0,m.useMemo)(()=>er.map(e=>{let t=N.Ay.formatDate(e),n=(0,g.B)(H[t]?.[f]??null,U[0]),a=null!=n&&P.currency&&n.currency!==P.currency;return{id:e,isSelected:(0,d.r)(e,F),isLoading:r||es,title:e=>N.Ay.format(e,et),description:()=>a?S(null):q?S(X(n,ec)):S(n)}}).sort((e,t)=>(0,u._)(e.id)-(0,u._)(t.id)),[er,f,F,r,es,H,U,et,P.currency,q,X,ec]),ed=(0,m.useMemo)(()=>Math.max(eo.findIndex(e=>(0,d.r)(e.id,F),0)),[F,eo]),eu=(0,m.useCallback)(e=>{for(let[t,r]of Object.entries(e))K(e=>{let n=e.cheapestPrices[t]??{};return{...e,cheapestPrices:{...e.cheapestPrices,[t]:{...n,[f]:r}}}})},[K,f]);el!==ei.current&&null!==el&&(eu(el),ei.current=el);let em=e.position===C.D6.INLINE&&!$;return(0,n.jsx)("div",{className:"connection-calendar","data-tag":"connection-calendar",children:(0,n.jsx)(s.A,{renderItem:(e,t,r)=>(0,n.jsx)(a.A,{itemConfig:e,isSelected:t,onChange:r},e.id.toString()),itemsConfig:eo,selectedItemIndex:ed,viewportLength:3,onChange:e=>{let{id:t}=e,r=N.Ay.formatDate(t);if((0,d.r)(t,F))return;J((0,v.h)({currentDate:t,selectedDate:F,retailerPartnerNumber:I.retailerPartnerNumber,marketingCarrierCode:I.marketingCarrierCode,locale:I.locale,currency:I.currency,inExp:!!I.inExp})),K({selectedDate:t,outboundDate:Q?t:V,inboundDate:Q?z:t}),p?.();let n=Q?{departureDate:r}:{returnDate:r};L({...P,...n}),W?.current?.scrollTo({top:0,behavior:"instant"})},showArrows:em})})}})},21791(e,t,r){var n=r(74848);r(96540);var a=r(22283);let s=(0,n.jsx)(n.Fragment,{});r.d(t,{},{A:e=>{let{children:t,fallback:r}=e;return(0,n.jsx)(a.A.ErrorBoundary,{fallback:r||s,children:t})}})},71594(e,t,r){var n=r(74848);r(96540);var a=r(96342),s=r(17540);r.d(t,{},{A:e=>{let{showReturnStep:t,activeStep:r}=e;return(0,n.jsx)("div",{className:"mb-4 mb-lg-0",children:(0,n.jsx)(a.A,{activeStep:r,isRoundTrip:t,showCurrentStep:(0,s.A)()})})}})},6286(e,t,r){var n=r(74848),a=r(96540),s=r(2609),l=r(75422);r.d(t,{},{A:({children:e,onChange:t,checked:r,disabled:i,error:c,errorMessage:o,onBlur:d,dataTag:u,ariaLabel:m,indeterminate:p=!1})=>{let h=(0,a.useRef)(null);return(0,a.useEffect)(()=>{h.current&&(h.current.indeterminate=p)},[p]),(0,n.jsxs)("div",{children:[(0,n.jsxs)("label",{className:(0,s.T)("ui-checkbox",{disabled:i,error:c,checked:r,indeterminate:p}),"data-tag":u,children:[(0,n.jsx)("input",{ref:h,className:"ui-checkbox__input",type:"checkbox",onChange:t,disabled:i,checked:r,onBlur:d,"aria-label":m,"data-tag":u}),(0,n.jsx)("span",{className:"ui-checkbox__label",children:e})]}),c&&o&&(0,n.jsxs)("div",{className:"row start ui-input-error-message",children:[(0,n.jsx)(l.A,{name:"alert",size:"small"}),(0,n.jsx)("span",{children:o})]})]})}})},35047(e,t,r){var n=r(29407);function a(e){return Math.trunc((0,n.a)(e)/1e3)}r.d(t,{_:()=>a})},73604(e,t,r){var n=r(29407);function a(e,t,r){let a=+(0,n.a)(e,r?.in),[s,l]=[+(0,n.a)(t.start,r?.in),+(0,n.a)(t.end,r?.in)].sort((e,t)=>e-t);return a>=s&&a<=l}r.d(t,{v:()=>a})},82442(e,t,r){var n=r(43329),a=r(29407);function s(e,t){let r,s=t?.in;return e.forEach(e=>{s||"object"!=typeof e||(s=n.w.bind(null,e));let t=(0,a.a)(e,s);(!r||r<t||isNaN(+t))&&(r=t)}),(0,n.w)(s,r||NaN)}r.d(t,{T:()=>s})}}]);
4//# sourceMappingURL=src_abTests_searchResults_mobileStickyConnectionCalendar_index_ts-src_components_DirectOnlyFi-d733c0.c4971c6bc83c7463.js.map
5//# debugId=53a312c7-e506-5708-8864-4db5e317b287

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.