PageSourceSearch

https://www.egged.co.il/_next/static/chunks/6174-9be0a88fdf5f0cc1.js

js egged.co.il collected 2026-09-24 17:40:02 UTC 11,620 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6174],{46174:(e,t,i)=>{i.r(t),i.d(t,{default:()=>$});var r=i(1710),a=i(23909),n=i(28400),o=i(14009),l=i(54976),d=i(33017),s=i(90065),c=i(37390),p=i(55585),u=i(32185),h=i(15037),g=i(90828),m=i(13416),b=i(44536),f=i(9723);let x={background:"white",originInput:"white",originInputText:"#999",destinationInput:"white",destinationInputText:"#999",departureTimeInput:"white",searchTripButtonBg:"#008761",searchTripButtonText:"white",searchTripButtonBorder:"#008761",searchByLineTitle:"gray.600",searchByLineSubtext:"gray.600",searchByLineButtonBg:"white",searchByLineButtonText:"#008761",searchByLineButtonBorder:"#008761"},y=(0,a.A)("div",{target:"eb3dwlc0",label:"HopOnWidget-StyledWidgetWrapper"})("height:",532,"px;overflow:hidden;border-radius:8px;",e=>{let{theme:t}=e;return t.breakpoints.up("md")},"{height:",532,"px;}"),v=(0,a.A)("div",{target:"eb3dwlc1",label:"HopOnWidget-StyledWidgetContainer"})("width:100%;height:100%;min-height:320px;"),w={he:{title:"חיפוש נסיעה בתחבורה ציבורית"},en:{title:"Search public transportation routes"},ar:{title:"البحث عن طرق النقل العام"},ru:{title:"Поиск маршрутов общественного транспорта"}},k=()=>{var e;let t=(0,h.Ym)(),[i,a]=f.useState(!1),[o,l]=f.useState(null),[d,s]=f.useState(!1),c=f.useRef(null),p=f.useRef(!1),u=f.useRef(t),g=(null===(e=w[t])||void 0===e?void 0:e.title)||w.he.title,k=f.useMemo(()=>"hopon-widget-container-".concat(t),[t]);f.useEffect(()=>{u.current!==t&&(a(!1),l(null),p.current=!1,u.current=t)},[t]),f.useEffect(()=>{s(!0)},[]);let Y=f.useCallback(e=>{try{let i=new URL(e),r=new URLSearchParams,a=i.pathname;i.searchParams.forEach((e,t)=>{r.append(t,e)}),a&&"/"!==a&&r.append("path",a);let n="/".concat(t,"/journey-planner?").concat(r.toString());window.location.href=n}catch(t){console.error("Failed to parse HopOn URL:",t),window.open(e,"_blank")}},[t]),F=f.useCallback(()=>({language:t,fontFamily:"he"===t?"Noto Sans Hebrew":"Open Sans",colors:x,onSearch:Y}),[t,Y]),A=f.useCallback(()=>{if(i&&c.current&&!p.current)try{c.current.innerHTML="";let e=F();window.renderBnbWidget(k,e),p.current=!0,l(null)}catch(e){console.error("Failed to render HopOn widget:",e),l(e instanceof Error?e.message:"Failed to load widget")}},[i,k,F]);f.useEffect(()=>{i&&d&&A()},[i,A,d]),f.useEffect(()=>{d&&window.renderBnbWidget&&!i&&a(!0)},[d,i]);let B=f.useCallback(()=>{a(!0)},[]),I=f.useCallback(e=>{console.error("Failed to load HopOn script:",e),l("Failed to load widget script")},[]);if(!d)return(0,r.FD)(y,{children:[(0,r.Y)(m.A,{variant:"rectangular",height:55,width:"100%",sx:{bgcolor:n.c.brandMain,opacity:.5,marginBottom:"8px"}}),(0,r.Y)(m.A,{variant:"rectangular",height:55,width:"100%",sx:{bgcolor:n.c.brandMain,opacity:.5,marginBottom:"8px"}}),(0,r.Y)(m.A,{variant:"rectangular",height:55,width:"100%",sx:{bgcolor:n.c.brandMain,opacity:.5,marginBottom:"8px"}})]});let L=!i||!!o;return(0,r.FD)(y,{children:[(0,r.Y)(b.default,{src:"https://bnb-widget.hopon.co/bnb-widget.iife.js",strategy:"afterInteractive",onLoad:B,onError:I}),(0,r.Y)(v,{ref:c,id:k,role:"search","aria-label":g,suppressHydrationWarning:!0,children:L&&(0,r.FD)("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:[(0,r.Y)("div",{style:{height:"55px",backgroundColor:n.c.brandMain,opacity:.5,borderRadius:"4px"}}),(0,r.Y)("div",{style:{height:"55px",backgroundColor:n.c.brandMain,opacity:.5,borderRadius:"4px"}}),(0,r.Y)("div",{style:{height:"55px",backgroundColor:n.c.brandMain,opacity:.5,borderRadius:"4px"}})]})})]})},Y=(0,a.A)("div",{target:"e1h58gm70",label:"Form-Layout"})("z-index:3;display:flex;flex-direction:column;justify-content:center;align-items:",e=>"ru"===e.locale?"flex-end":"center",";gap:16px;padding-top:",e=>{let{media:t}=e;return t?"140px":"0"},";width:100%;margin:auto;",e=>{let{theme:t}=e;return t.breakpoints.up("sm")},"{margin:unset;width:fit-content;margin-inline-start:auto;padding:0;gap:40px;}"),F=(0,a.A)("div",{target:"e1h58gm71",label:"Form-TitleWrapper"})("opacity:0;animation:",e=>{let{$isRtl:t}=e;return t?"slideInRtlTitle ".concat(d.xR,"s ").concat(g.UF," forwards"):"slideInLtrTitle ".concat(d.xR,"s ").concat(g.UF," forwards")},";animation-delay:",g.l8,"s;@keyframes slideInLtrTitle{from{transform:translateX(-100vw);opacity:0;}to{transform:translateX(0);opacity:1;}}@keyframes slideInRtlTitle{from{transform:translateX(-100vw);opacity:0;}to{transform:translateX(0);opacity:1;}}",e=>{let{theme:t}=e;return t.breakpoints.up("md")},"{animation:slideUpTitle ",d.xR,"s ",g.UF," forwards;animation-delay:",g.l8,"s;@keyframes slideUpTitle{from{transform:translateY(100vh);opacity:0;}to{transform:translateY(0);opacity:1;}}}"),A=(0,a.A)("div",{target:"e1h58gm72",label:"Form-FormLayout"})("width:100%;padding:16px;display:flex;flex-direction:column;gap:24px;border-radius:12px;box-shadow:0px 12px 25px 0px #26303d52;background-color:white;",e=>{let{theme:t}=e;return t.breakpoints.up("md")},"{width:400px;}label{font-size:16px;}opacity:0;animation:slideUp ",d.xR,"s ",g.UF," forwards;animation-delay:",g.l8,"s;@keyframes slideUp{from{transform:translateY(100vh);opacity:0;}to{transform:translateY(0);opacity:1;}}");function B(e){let{formObject:t,platform:i}=e;(0,u.c3)("Homepage");let a=(0,d.GM)(),n=(0,h.Ym)(),o=["he","ar"].includes(n);return"mobile"===i&&a||"desktop"===i&&!a?null:(0,r.FD)(Y,{locale:n,children:[(0,r.Y)(F,{$isRtl:o,children:(0,r.Y)(p.A,{variant:"h1",color:"white",dangerouslySetInnerHTML:{__html:t.title||""},sx:{margin:0,"& p":{margin:0},fontSize:{xs:"32px",md:"48px",fontWeight:400},lineHeight:{xs:"34px",md:"48px",fontWeight:400}}})}),(0,r.Y)(A,{children:(0,r.Y)(k,{formObject:t})})]})}
1(0,a.A)(c.A,{target:"e1h58gm75",label:"Form-StyledDivider"})("width:296px;height:1.5px;background-color:",n.c.mediumGrayLight,";align-self:center;");let I=(0,a.A)("div",{target:"e10rns2w0",label:"AnimationHero-GeneralLayout"})("display:flex;flex-direction:column;width:100%;height:100%;overflow-anchor:none;"),L=(0,a.A)("div",{target:"e10rns2w1",label:"AnimationHero-StyledLayout"})("width:100%;background-color:",n.c.brandDark,";padding:24px 0;position:relative;height:255px;",e=>e.theme.breakpoints.up("md"),"{height:784px;min-height:600px;padding:64px 0;display:flex;justify-content:flex-end;align-items:center;}",e=>e.theme.breakpoints.up("xl"),"{min-height:624px;height:831px;padding:88px 0;}"),H=(0,a.A)("div",{target:"e10rns2w2",label:"AnimationHero-MobileFormContainer"})("display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:",n.c.brandDark,";padding:20px 16px 40px;width:100%;",e=>{let{theme:t}=e;return t.breakpoints.up("md")},"{display:none;}"),S=(0,a.A)("div",{target:"e10rns2w3",label:"AnimationHero-ImageContainer"})("width:100%;position:relative;overflow:hidden;height:207px;z-index:0;",e=>e.theme.breakpoints.up("md"),"{position:absolute;height:600px;}",e=>e.theme.breakpoints.up("xl"),"{height:624px;}"),D=(0,a.A)(l.default,{shouldForwardProp:e=>"$isInverted"!==e,target:"e10rns2w4",label:"AnimationHero-BusImage"})("z-index:1;bottom:0;left:-35%;right:auto;position:absolute;transform:translateX(-100%);animation:slideBusInFromLeft 2.2s cubic-bezier(0.77,0,0.175,1) forwards;animation-delay:0.3s;",e=>e.theme.breakpoints.up("md"),"{bottom:7%;left:-44%;right:auto;}@media (min-width:1440px){bottom:7%;left:-35%;right:auto;}",e=>e.theme.breakpoints.up("xl"),"{left:-20%;right:auto;bottom:12%;}@keyframes slideBusInFromLeft{from{transform:",e=>(e.$isInverted,"translateX(-100%)"),";}to{transform:",e=>(e.$isInverted,"translateX(0)"),";}}@keyframes slideBusInFromRight{from{transform:",e=>e.$isInverted?"translateX(100%) scaleX(-1)":"translateX(100%)",";}to{transform:",e=>e.$isInverted?"translateX(0) scaleX(-1)":"translateX(0)",";}}");function T(e){let{formObject:t,locale:i}=e,a="en"===i||"ru"===i;return(0,r.FD)(I,{children:[(0,r.FD)(L,{children:[(0,r.Y)(d.X8,{children:(0,r.Y)(s.A,{children:(0,r.Y)(B,{formObject:t,platform:"desktop"})})}),(0,r.FD)(S,{children:[(0,r.FD)(d.fq,{children:[(0,r.Y)(D,{src:(0,o.AQ)(a?"/images/busEn.svg":"/images/mini-bus.png"),width:346,height:133,alt:"hero",priority:!0,$isInverted:a}),(0,r.Y)(l.default,{src:"/images/illustrationSmall.svg",fill:!0,alt:"hero",style:{objectFit:"cover",objectPosition:"bottom",transform:a?"scaleX(-1)":"scaleX(1)"},priority:!0})]}),(0,r.FD)(d.jD,{children:[(0,r.Y)(D,{src:(0,o.AQ)(a?"/images/busEn.svg":"/images/busMedium.svg"),width:896,height:346,alt:"hero",priority:!0,$isInverted:a}),(0,r.Y)(l.default,{src:"/images/illustrationMedium.svg",fill:!0,alt:"hero",style:{objectFit:"cover",objectPosition:"bottom",transform:a?"scaleX(-1)":"scaleX(1)"},priority:!0})]}),(0,r.FD)(d.k7,{children:[(0,r.Y)(D,{src:(0,o.AQ)(a?"/images/busEn.svg":"/images/busMedium.svg"),width:1065,height:411,alt:"hero",priority:!0,$isInverted:a}),(0,r.Y)(l.default,{src:"/images/illustrationBig.svg",fill:!0,alt:"hero",style:{objectFit:"cover",objectPosition:"bottom",transform:a?"scaleX(-1)":"scaleX(1)"},priority:!0})]})]})]}),(0,r.Y)(H,{children:(0,r.Y)(B,{formObject:t,platform:"mobile"})})]})}var X=i(42156),j=i(75509);let M=(0,a.A)("div",{target:"e5er9i10",label:"MediaHero-GradientOverlay"})("z-index:2;position:absolute;top:0;left:0;right:0;bottom:0;",e=>{let{theme:t}=e;return t.breakpoints.down("md")},"{height:340px;}background:linear-gradient(\n    270deg,rgba(0,46,33,0) -17.63%,rgba(0,46,33,0.72) 111.33%\n  );pointer-events:none;"),R=(0,a.A)("div",{target:"e5er9i11",label:"MediaHero-GeneralLayout"})("display:flex;flex-direction:column;width:100%;height:100%;"),O=(0,a.A)("div",{target:"e5er9i12",label:"MediaHero-StyledLayout"})("width:100%;background-color:",n.c.mediumGrayLight,";padding:24px 0;padding-bottom:48px;position:relative;height:100%;",e=>e.theme.breakpoints.up("md"),"{height:fit-content;min-height:600px;padding:64px 0;display:flex;justify-content:flex-end;align-items:center;}",e=>e.theme.breakpoints.up("xl"),"{min-height:624px;padding:88px 0;}"),C=(0,a.A)("div",{target:"e5er9i13",label:"MediaHero-StyledDiv"})("width:100%;display:flex;flex-direction:column;padding-left:16px;padding-right:16px;",e=>{let{theme:t}=e;return t.breakpoints.up("md")},"{padding:0;flex-direction:row;}"),E=(0,a.A)("div",{target:"e5er9i14",label:"MediaHero-StyledFormDiv"})(e=>{let{theme:t}=e;return t.breakpoints.down("md")},"{margin-top:140px;z-index:3;}");function U(e){let{source:t,formObject:i}=e,[a,n]=(0,f.useState)(!0),[o,l]=(0,f.useState)(!1);return(0,r.Y)(r.FK,{children:(0,r.Y)(R,{children:(0,r.FD)(O,{children:[(0,r.Y)(s.A,{children:(0,r.FD)(C,{children:[(0,r.Y)(j.Ay,{playing:a,setPlaying:n,volume:o,setVolume:l}),(0,r.Y)(E,{children:(0,r.Y)(B,{formObject:i})})]})}),(0,r.Y)(M,{}),(0,r.Y)(X.A,{source:t,playing:a,setPlaying:n,volume:o,setVolume:l})]})})})}let W=(0,a.A)("div",{target:"e1ge12hr0",label:"Hero-OuterContainer"})("width:100%;background-color:",e=>{let{$isGray:t}=e;return t?n.c.mediumGrayLight:"transparent"},";");function $(e){var t,i,a,n;let{data:l,locale:d,blockIndex:s,isHomepage:c}
1=e,p=(0,o.V7)(l,"imageOrVideo"),u=(0,o.V7)(l,"title"),h=(0,o.V7)(l,"searchTitle"),g=(0,o.V7)(l,"searchDescription"),m={title:u,searchTitle:h,searchDescription:g,button:null===(i=(0,o.V7)(l,"button"))||void 0===i?void 0:null===(t=i[0])||void 0===t?void 0:t.url,buttonText:null===(n=(0,o.V7)(l,"button"))||void 0===n?void 0:null===(a=n[0])||void 0===a?void 0:a.name};return(0,r.Y)(W,{$isGray:c&&"number"==typeof s&&s%2==1,children:p?(0,r.Y)(U,{source:p,formObject:m}):(0,r.Y)(T,{formObject:m,locale:d})})}}}]);
2//# sourceMappingURL=6174-9be0a88fdf5f0cc1.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.