1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[10152],{93836:function(e,t,a){a.r(t),a.d(t,{PassesByDweb:function(){return d}});var i=a(14994),s=a(18349),n=a(39167),l=a(91018);let r=(0,a(31465).F)({slots:["root","passesContainer"],base:{root:{display:"flex",flexDirection:"column",gap:"space.6"},passesContainer:{display:"flex",flexDirection:"column",gap:"space.12"}}}),d=(0,s.eW)(e=>{let{title:t="Passes by",passBys:a=[],substopType:s,itineraryType:d}=e,o=r();return(0,i.jsxs)("div",{className:o.root,"data-qa-marker":"qaid-itinerary-passes-by-section",children:[(0,i.jsx)(n.x,{textStyle:"subheading.regular",color:"semantic.text.grey.2",children:t}),(0,i.jsx)("div",{className:o.passesContainer,children:a.map((e,t)=>(0,i.jsx)(l.J,{id:e.id,title:e.title,image:e.image,expandedContent:e.expandedContent,onExpandToggle:e.onExpandToggle,substopType:s,itineraryType:null!=d?d:e.itineraryType},e.id||"".concat(e.title,"-").concat(t)))})]})},"PassesByDweb")},91018:function(e,t,a){a.d(t,{J:function(){return C}});var i=a(14994),s=a(18349),n=a(93435),l=a(5886),r=a(58864),d=a(22453),o=a(39167),p=a(70715),c=a(45442),x=a(11330),h=a(19371),u=a(63132),m=a(58689),g=a(31465),y=a(63934);let f=(0,g.F)({slots:["item","itemContent","imageContainer","image","textContent","titleRow","itemTitle","inlineIcon","expandedContent","expandedText","expandedParagraph"],base:{item:{display:"flex",flexDirection:"column",gap:"space.12",cursor:"pointer",width:"[100%]",background:"none",textAlign:"left"},itemContent:{display:"flex",alignItems:"center",gap:"space.12",width:"[100%]"},imageContainer:{flexShrink:0,borderRadius:"radius.8",overflow:"hidden",width:"[46px]",height:"[42px]"},image:{display:"block",width:"[100%]",minHeight:"[42px]",height:"[100%]",objectFit:"cover",borderRadius:"radius.8"},textContent:{display:"flex",flexDirection:"column",gap:"space.2",flex:1,minWidth:0},titleRow:{display:"flex",alignItems:"center",gap:"space.5",width:"[100%]"},itemTitle:{minWidth:0,whiteSpace:"pre-wrap",display:"[-webkit-box]",lineClamp:2,overflow:"hidden",textOverflow:"ellipsis"},inlineIcon:{flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",color:"semantic.icon.grey.1",width:"[12px]",height:"[12px]","& span":{display:"flex",height:"[12px]",width:"[12px]"}},expandedContent:{width:"[100%]",color:"semantic.text.grey.2",whiteSpace:"pre-wrap"},expandedText:{display:"flex",flexDirection:"column",gap:"space.12"},expandedParagraph:{textStyle:"para.regular",display:"[-webkit-box]",lineClamp:15,overflow:"hidden",textOverflow:"ellipsis","& *":{textStyle:"para.regular"}}},variants:{clickable:{true:{item:{cursor:"pointer"}},false:{item:{cursor:"default"}}},expanded:{false:{expandedContent:{display:"none"}},true:{expandedContent:{display:"block"}}}},defaultVariants:{clickable:!0,expanded:!1}}),b=(0,y.jS)({base:{display:"flex",flexWrap:"wrap",gap:"space.6",alignItems:"center",width:"[100%]",marginTop:"space.2",color:"semantic.text.grey.2",textStyle:"ui.label.small"},variants:{showDescriptors:{false:{display:"none"}}}});var w=a(87368);let C=(0,s.eW)(e=>{let{id:t,title:a,image:g,descriptors:y=[],expandedContent:C,onExpandToggle:v,showDescriptors:j=!0,defaultExpanded:k,"data-testid":N,stopNumber:D,itineraryId:S,itineraryName:I,parentStopName:T,parentStopId:E,substopType:W,itineraryType:q,forceShowImage:P=!1}
1=e,[R,_]=(0,n.useState)(!!k),{trackSubStopClicked:B}=(0,w.k)({itineraryId:S,itineraryName:I,isMobile:!1}),F=j&&y.length>0,J=!P&&(0,m.sG)(q),G=q===u.s3.Generic,H=f({clickable:!!C,expanded:R}),K=b.raw({showDescriptors:F}),M=(0,s.eW)(()=>{if(!C)return;let e=!R;B({stopName:T||"",stopNumber:D||0,stopId:E||"",action:e?"Expanded":"Collapsed",substopType:W||"highlights",substopName:a||"",substopId:t||""}),_(e),null==v||v(e)},"handleClick"),O=(0,s.eW)(e=>{if(C&&("Enter"===e.key||" "===e.key)){e.preventDefault();let i=!R;B({stopName:T||"",stopNumber:D||0,stopId:E||"",action:i?"Expanded":"Collapsed",substopType:W||"highlights",substopName:a||"",substopId:t||""}),_(i),null==v||v(i)}},"handleKeyDown"),A=(0,s.eW)(()=>{if(!C)return null;let e=C.split("\n\n");return(0,i.jsx)("div",{className:H.expandedContent,children:(0,i.jsx)("div",{className:H.expandedText,children:e.map((e,t)=>(0,i.jsx)("div",{className:H.expandedParagraph,dangerouslySetInnerHTML:{__html:e}},t))})})},"renderExpandedContent");return(0,i.jsxs)("div",{...C&&{role:"button",tabIndex:0,"aria-expanded":R,onClick:M,onKeyDown:O},className:H.item,"aria-label":a,"data-testid":N||"qaid-itinerary-sub-stop-item","data-qa-marker":"qaid-itinerary-sub-stop-item",id:t,children:[(0,i.jsxs)("div",{className:H.itemContent,children:[(0,i.jsx)(l.h,{if:!J&&!!(null==g?void 0:g.url),children:(0,i.jsx)("div",{className:H.imageContainer,children:(0,i.jsx)(r.Image,{url:(null==g?void 0:g.url)||"",alt:(null==g?void 0:g.alt)||a,width:46,height:42,className:H.image,placeholder:d.iS.Blur,aspectRatio:"1:1",autoCrop:!1})})}),(0,i.jsxs)("div",{className:H.textContent,children:[(0,i.jsxs)("div",{className:H.titleRow,children:[(0,i.jsx)(o.x,{as:"h6",className:H.itemTitle,textStyle:"subheading.regular",color:"semantic.text.grey.2",children:a}),(0,i.jsx)(l.h,{if:!!C,children:(0,i.jsx)("div",{className:H.inlineIcon,"aria-hidden":"true","data-qa-marker":"qaid-itinerary-sub-stop-toggle-icon",children:(0,i.jsx)(p.J,{svg:R?x.v:c.I,height:12,width:12})})})]}),(0,i.jsx)(l.h,{if:F,children:(0,i.jsx)(h.m,{descriptors:y,overrideStyles:K,showDirectionsDescriptor:!G,"data-testid":"".concat(N?"".concat(N,"-"):"","descriptors")})})]})]}),(0,i.jsx)(l.h,{if:R,children:A()})]})},"SubStopDweb")}}]);
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.