PageSourceSearch

https://cdn.logitravel.de/babylon/logitravel/logitravel/client/chunks/index.sndTUfkz.js

js logitravel.de collected 2026-09-26 11:51:13 UTC 5,846 bytes, 2 lines download raw bytes

1import{j as t,s as p,a as d,M as _,m as $,P as j,f as D,c as g,p as T,r as y,cj as L,W as A,h as f,ck as M,bw as H}from"./constants.DVfzoI-P.js";import{ag as B,a as G,F as E,I as q,d as z,b as K,aR as b,aS as W}from"../entries/index.QO9ocoRj.js";import{u as J,a as Q,b as U,c as X,d as Y,e as Z,f as ee,g as te,C as ne,h as oe,i as se,j as re,k as ae,l as S,m as le,n as ie,o as ce,S as ue,p as pe}from"./useVehiclesCounterInput.DgRVUuFi.js";import{F as de}from"./index.Bq-Mgmb7.js";import"./index.DoMMbEOI.js";import"./styled.CFl_i6xI.js";const he=()=>t.jsx(B,{...J()}),me=()=>t.jsx(G,{...Q()}),be=()=>t.jsx(de,{...U()}),ge=()=>t.jsx(E,{...X()}),Ce={PanelContentContent:()=>p(["color:",";b{","}"],({theme:e})=>e.colors.grays.darker,d({weight:"bold"}))},xe={PanelHeaderTitle:()=>p(["",";"],d({weight:"bold"})),PanelContentContent:()=>p([""," color:",";b{","}"],j({x:"0px"}),({theme:e})=>e.colors.grays.darker,d({weight:"bold"})),CounterGroupContainer:()=>p([""," ",""],_({x:"16px"}),({theme:e})=>$({top:`1px solid ${e.colors.grays.light}`}))},fe={PanelContentContent:()=>p(["color:",";b{","}"],({theme:e})=>e.colors.grays.darker,d({weight:"semiBold"}))},k=D({partnershipsLiverpool:xe,tourMundial:fe,clubDeVacaciones:Ce}),ke=g.p.withConfig({displayName:"PanelHeaderTitle",componentId:"babylon-namespace__sc-be0d8372-0"})(["",""],k("PanelHeaderTitle")),Ie=g.p.withConfig({displayName:"PanelHeaderSubTitle",componentId:"babylon-namespace__sc-be0d8372-1"})([""," color:",";"],d({size:"medium",height:"base"}),({theme:e})=>e.colors.grays.dark),Pe=g.div.withConfig({displayName:"PanelContentContent",componentId:"babylon-namespace__sc-be0d8372-2"})([""," b{","}",""],j({x:"16px"}),d({weight:"medium"}),k("PanelContentContent")),je=g.div.withConfig({displayName:"CounterGroupContainer",componentId:"babylon-namespace__sc-be0d8372-3"})(["",""],k("CounterGroupContainer")),De=g.div.withConfig({displayName:"PanelFooterContent",componentId:"babylon-namespace__sc-be0d8372-4"})(["text-align:right;"," b{","}",""],d({size:"medium",height:"medium"}),d({weight:"medium"}),k("PanelContentContent")),v=e=>{const{className:o,inputRef:i}=e,a=Y(e),s=Z(e),{literals:r,value:c,getCounterLabel:h=te,getFooterLabel:n=ee}=e,{title:C="",subTitle:m=""}=r??{},x={header:t.jsxs(t.Fragment,{children:[t.jsx(ke,{children:C}),m&&t.jsx(Ie,{children:m})]}),content:t.jsx(Pe,{children:c?.map((u,l)=>t.jsx(je,{children:t.jsx(ne,{label:h(c,u,l),onChange:s(l),valueObject:u})},T(u)))}),footer:u=>{let l=n(c);if(typeof l=="function"&&(l=l(u)),!!l)return t.jsx(De,{children:l})}};return t.jsx(q,{ref:i,className:o,inputProps:a,tooltipProps:{placement:"bottom-start"},panel:x})},F=y.forwardRef((e,o)=>{const{className:i,disabled:a,error:s,hasError:r,icon:c="angle-down",label:h="",literals:n,onBlur:C,tooltipOptions:m,value:x}=e,{onChange:u,getCounterLabel:l,getInputValue:w}=se(e),N=(R=[])=>{const I=R.at(-1),O=(I?.day??0)+(I?.value??0);return t.jsx("p",{dangerouslySetInnerHTML:{__html:n?.totalDuration?.replaceAll("#days#",`<b>${n?.days?.replaceAll("#number#",O.toString())}</b>`)??""}})};return t.jsx(v,{inputRef:o,className:i,disabled:a,error:s,hasError:r,icon:c,label:h,onBlur:C,onChange:u,tooltipOptions:m,value:x,literals:{title:n?.nightsLabel,subTitle:n?.nightsPanelSubtitle},getInputValue:w,getCounterLabel:l,getFooterLabel:N})});F.displayName="NightsCounterDesktop";const ye=e=>{const o=oe(e);return t.jsx(F,{...o})},Se=()=>t.jsx(ye,{...re()}),ve=()=>{const e=ae();return S()?t.jsx(L,{...e}):null},Fe=()=>{const e=le();return S()?null:t.jsx(z,{...e})},Ve="default",we={[f.logitravel]:"default",[f.smy]:"onDark",[f.partnershipsLiverpool]:"onDark",[f.veciAgents]:"onDark"},Ne=()=>{const{id:e}=A();return we[e]??Ve},Re={FormCheckbox:()=>p(["& > label{color:",";}"],({theme:e})=>e.colors.grays.darker)},Oe={FormCheckbox:()=>p(["& > label{color:",";}"],({theme:e})=>e.colors.grays.darker)},P={FormCheckbox:()=>p(["& > label{color:",";span{color:",";}}"],({theme:e})=>e.colors.white.base,({theme:e})=>e.colors.white.base)},_e=D({tourMundial:Oe,clubDeVacaciones:Re,veci:P,veciAgents:P}),$e=g(M).withConfig({displayName:"FormCheckbox",componentId:"babylon-namespace__sc-7ca417bb-0"})(["",""],_e("FormCheckbox")),Te=()=>{const e=Ne();return t.jsx($e,{...ie(),variant:e})},Le=e=>{const{isHiddenRequired:o,...i}=e,{field:a,label:s,error:r,hasError:c}=H(e);return{...i,...a,label:s,hasError:c,error:r}},Ae=e=>{const{literals:o}=e;
1return{getInputValue:a=>a?.reduce((s,r)=>(r.value===1?s.push(`${r.value} ${o?.vehicle}`):s.push(`${r.value} ${o?.vehicles}`),s),[]).join(", ")}},V=y.forwardRef((e,o)=>{const{className:i,disabled:a,error:s,hasError:r,icon:c="angle-down",label:h="",onBlur:n,tooltipOptions:C,value:m,onChange:x,literals:u}=e,{getInputValue:l}=Ae(e);return t.jsx(v,{inputRef:o,className:i,disabled:a,error:s,hasError:r,icon:c,label:h,onBlur:n,onChange:x,tooltipOptions:C,value:m,literals:{title:u?.vehiclesTitle},getInputValue:l})});V.displayName="VehicleCounterDesktop";const Me=e=>{const o=Le(e);return t.jsx(V,{...o})},He=()=>t.jsx(Me,{...ce()}),Be=()=>{const{origin:e,originAlternative:o,vehicles:i,businessClass:a,nights:s,config:r}=pe(),{showResident:c=!1,onModal:h=!1}=r??{};let n=2;return(e||o)&&n++,i?.length&&n++,a?.length&&n++,s?.length&&n++,t.jsxs(K,{"data-testid":"SearcherPro",middleProps:{$isModal:h},children:[(!!e||!!o)&&t.jsxs(b,{$numberOfInputs:n,children:[t.jsx(Fe,{}),t.jsx(ve,{})]}),s?.length&&t.jsx(b,{$numberOfInputs:n,children:t.jsx(Se,{})}),t.jsx(b,{$numberOfInputs:n,children:t.jsx(ge,{})}),t.jsx(b,{$numberOfInputs:n,children:t.jsx(he,{})}),i?.length&&t.jsx(b,{$numberOfInputs:n,children:t.jsx(He,{})}),a?.length&&t.jsx(b,{$numberOfInputs:n,children:t.jsx(be,{})}),c&&t.jsx(W,{$variant:"adaptive",children:t.jsx(Te,{})}),t.jsx(me,{})]})},Je=e=>t.jsx(ue,{...e,children:t.jsx(Be,{})});export{Je as default};
2//# sourceMappingURL=index.sndTUfkz.js.map

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.