1"use strict";(self.webpackChunkFusion=self.webpackChunkFusion||[]).push([[5489],{8028:(e,i,l)=>{l.d(i,{A:()=>o});var t=l(51483);const o={fields:[{category:t.i.DESIGN,itemSchema:{fields:[{defaultValue:!1,field:"removePaddingSides",fieldLabel:"Remove side padding",required:!1,type:t.b.CHECKBOX},{defaultValue:!1,field:"removePaddingTop",fieldLabel:"Remove top padding",required:!1,type:t.b.CHECKBOX},{defaultValue:!1,field:"removePaddingBottom",fieldLabel:"Remove bottom padding",required:!1,type:t.b.CHECKBOX},{defaultValue:!1,field:"containerFullWidth",label:"Full width container",required:!1,type:t.b.TOGGLE_SWITCH},{field:"containerBackgroundColor",label:"Content background color",required:!1,type:t.b.BACKGROUND_COLOR},{defaultValue:!0,field:"containerBackgroundTransparent",fieldLabel:"Check here to make grid container transparent",label:"Transparent background",required:!1,type:t.b.CHECKBOX}]},label:"Content Container Settings",type:t.b.COLLAPSIBLE},{category:t.i.DESIGN,itemSchema:{fields:[{field:"marginTop",label:"Add padding top",options:[{label:"0",value:"none"},{label:"0.5x",value:"half"},{label:"1x",value:"full"}],type:t.b.BUTTON_GROUP},{field:"marginBottom",label:"Add padding bottom",options:[{label:"0",value:"none"},{label:"0.5x",value:"half"},{label:"1x",value:"full"}],required:!1,type:t.b.BUTTON_GROUP},{field:"textColor",label:"Text color",required:!1,type:t.b.TEXT_COLOR},{field:"backgroundColor",label:"Background color",required:!1,type:t.b.BACKGROUND_COLOR},{dynamicPhotoType:"CARD",field:"backgroundImageLarge",label:"Background image large",required:!1,type:t.b.DYNAMIC_PHOTO},{dynamicPhotoType:"CARD",field:"backgroundImageMedium",label:"Background image medium",required:!1,type:t.b.DYNAMIC_PHOTO},{dynamicPhotoType:"CARD",field:"backgroundImageSmall",label:"Background image small",required:!1,type:t.b.DYNAMIC_PHOTO},{field:"backgroundOverlay",label:"Background overlay hex color",required:!1,type:t.b.HEX_SLIDER},{field:"backgroundPosition",label:"Background image position",options:[{label:"Center",value:"center center"},{label:"Top",value:"center top"},{label:"Bottom",value:"center bottom"}],required:!1,type:t.b.ENUM_CUSTOM},{field:"autoplayVideo",itemSchema:{fields:[{field:"videoUrl1080Mp4",label:"Video desktop URL - 1080p - MP4",required:!1,type:t.b.TEXT_LINE},{field:"videoUrl720Mp4",label:"Video tablet URL - 720p - MP4",required:!1,type:t.b.TEXT_LINE},{field:"videoUrl480Mp4",label:"Video mobile URL - 480p - MP4",required:!1,type:t.b.TEXT_LINE},{field:"videoUrl360Mp4",label:"Video URL - 360p - MP4",required:!1,type:t.b.TEXT_LINE},{field:"videoUrl1080Webm",label:"Video desktop URL - 1080p - WEBM",required:!1,type:t.b.TEXT_LINE},{field:"videoUrl720Webm",label:"Video tablet URL - 720p - WEBM",required:!1,type:t.b.TEXT_LINE},{field:"videoUrl480Webm",label:"Video mobile URL - 480p - WEBM",required:!1,type:t.b.TEXT_LINE},{field:"videoUrl360Webm",label:"Video URL - 360p - WEBM",required:!1,type:t.b.TEXT_LINE}]},label:"Background video",required:!1,type:t.b.OBJECT},{field:"height",itemSchema:{fields:[{disableCount:!0,field:"desktop",label:"Desktop",placeholder:"i.e. 200px, 2em, 2rem",required:!1,type:t.b.TEXT_LINE},{disableCount:!0,field:"tablet",label:"Tablet",placeholder:"i.e. 200px, 2em, 2rem",required:!1,type:t.b.TEXT_LINE},{disableCount:!0,field:"mobile",label:"Mobile",placeholder:"i.e. 200px, 2em, 2rem",required:!1,type:t.b.TEXT_LINE}]},label:"Block height",required:!1,type:t.b.TABBED_FIELDS},{field:"alignContainer",label:"Align container (height must be set)",options:[{label:"Top",value:"flex-start"},{label:"Center",value:"center"},{label:"Bottom",value:"flex-end"}],required:!1,type:t.b.ENUM_CUSTOM},{field:"anchorName",label:"Block anchor name",required:!1,type:t.b.SLUG}]},label:"Block Container Settings",type:t.b.COLLAPSIBLE},{category:t.i.ADVANCED,defaultValue:!1,field:"isAboveTheFold",label:"Is Above The Fold ?",required:!1,type:t.b.CHECKBOX}]}},13300:(e,i,l)=>{l.d(i,{ySn:()=>t});const t={BLOCK_EDIT:"block-edit",PAGE_EDIT:"page-edit",PAGE_PREVIEW:"page-preview"}},51483:(e,i,l)=>{l.d(i,{b:()=>t,i:()=>o});
1const t={ANIMATION_BUILDER:"ANIMATION_BUILDER",ARRAY:"ARRAY",ARTICLE_AUTHOR:"ARTICLE_AUTHOR",BACKGROUND_COLOR:"BACKGROUND_COLOR",BUTTON_GROUP:"BUTTON_GROUP",CHECKBOX:"CHECKBOX",COLLAPSIBLE:"COLLAPSIBLE",COW_EVENT_FORM:"COW_EVENT_FORM",DYNAMIC_PHOTO:"DYNAMIC_PHOTO",ENUM_COLUMNS:"ENUM_COLUMNS",ENUM_CUSTOM:"ENUM_CUSTOM",ENUM_SIDE:"ENUM_SIDE",EVENTS_TAB:"EVENTS_TAB",HEX_SLIDER:"HEX_SLIDER",HIDDEN:"HIDDEN",MAP_LAT:"MAP_LAT",MAP_LNG:"MAP_LNG",MARKDOWN:"MARKDOWN",MAX_ITEMS_SLIDER:"MAX_ITEMS_SLIDER",OBJECT:"OBJECT",RICH_TEXT_EDITOR:"RICH_TEXT_EDITOR",SLUG:"SLUG",TABBED_FIELDS:"TABBED_FIELDS",TEXT_COLOR:"TEXT_COLOR",TEXT_LINE:"TEXT_LINE",TEXT_LINE_CONSTANT:"TEXT_LINE_CONSTANT",TEXT_LINK:"TEXT_LINK",TEXT_LINK_MODAL:"TEXT_LINK_MODAL",TEXT_MULTILINE:"TEXT_MULTILINE",TOGGLE_SWITCH:"TOGGLE_SWITCH",URL:"URL",YOUTUBE_EMBED_URL:"YOUTUBE_EMBED_URL"},o={ADVANCED:"ADVANCED",CONTENT:"CONTENT",DESIGN:"DESIGN"}},__fusion__f52d80b916:(e,i,l)=>{l.r(i),l.d(i,{IntercityC2RDock:()=>B,IntercityC2RDockSchema:()=>M,IntercityIllustration:()=>k,default:()=>D});var t=l(17070),o=l(56216),r=l(47633),a=l(15878),d=l(33712),n=l(90819),p=l(73744),c=l(91587),s=l(98819),u=l(90417),b=l(40014);const T=u.forwardRef((function(e,i){let{title:l,titleId:t,size:o="1em",...r}=e;return(0,b.FD)("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",ref:i,"aria-labelledby":t,...r,children:[l?(0,b.Y)("title",{id:t,children:l}):null,(0,b.Y)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.31 5.39C16.8 3.5 14.62 2.5 12.03 2.5c-2.08 0-4.16.81-5.7 2.22A8.1 8.1 0 0 0 4.611 7 5.002 5.002 0 0 1 9.51 12a5.002 5.002 0 0 1-4.917 4.999c.14.277.288.535.447.77C6.6 20.07 9.27 21.5 12.03 21.5c1.108 0 2.1-.169 2.98-.476v2.095c-.547.149-1.124.256-1.73.319-.404.04-.82.062-1.25.062-3.43 0-6.71-1.75-8.64-4.61C.81 15.06.46 7.42 4.99 3.25A10.49 10.49 0 0 1 12.036.5c8.944.004 12.227 9.7 9.562 16.5H19.43a5.003 5.003 0 0 1-4.919-5 5.002 5.002 0 0 1 4.824-4.997A9.124 9.124 0 0 0 18.31 5.39ZM3.868 15h.642c1.65 0 3-1.35 3-3s-1.35-3-3-3c-.23 0-.454.026-.67.076-.5 1.993-.424 4.124.028 5.924ZM20.5 12.11c0 .976-.114 1.954-.348 2.89h-.642c-1.65 0-3-1.35-3-3a3.009 3.009 0 0 1 3.595-2.94c.259.973.395 2.005.395 3.05Z",fill:"currentColor"})]})})),E=u.forwardRef((function(e,i){let{title:l,titleId:t,size:o="1em",...r}=e;return(0,b.FD)("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",ref:i,"aria-labelledby":t,...r,children:[l?(0,b.Y)("title",{id:t,children:l}):null,(0,b.Y)("path",{d:"m16.75 12.25-4.86 4.86c-.91-.59-1.77-1.26-2.56-2.02a17.08 17.08 0 0 1-2.04-2.39l4.46-5.45-3-6-7.5 3c.3 4.93 2.44 9.57 6 13a19.76 19.76 0 0 0 12.5 5.5l3-7.5-6-3Z",fill:"currentColor"})]})}));var m=l(13300),y=l("__fusion__95b4ba69e5"),g=l(43065);const h="intercity-c2r-dock-shown",f={Block:{style:e=>{let{$theme:i}=e;return{backgroundColor:i.colors.backgroundPrimary,bottom:"0",boxShadow:"rgba(0, 0, 0, 0.08) 0px -8px 20px 0px",boxSizing:"border-box",left:"0",paddingBottom:i.sizing.scale500,paddingLeft:i.sizing.scale600,paddingRight:i.sizing.scale600,paddingTop:i.sizing.scale500,position:"fixed",right:"0",width:"100%",zIndex:1}}}},C={Block:{style:e=>{let{$theme:i}=e;return{backgroundColor:i.colors.mono200,borderRadius:i.borders.radius300,marginBottom:i.sizing.scale400,padding:i.sizing.scale400}}}},N={Block:{style:{listStyle:"none",margin:0,padding:0}}},_={BaseButton:{style:{width:"100%"}}},L={Close:{style:{display:"none"}},DrawerBody:{style:e=>{let{$theme:i}=e;return{marginBottom:i.sizing.scale500,marginLeft:i.sizing.scale600,marginRight:i.sizing.scale600,marginTop:i.sizing.scale500}}},DrawerContainer:{style:e=>{let{$theme:i}=e;return{borderTopLeftRadius:i.borders.radius400,borderTopRightRadius:i.borders.radius400}}},Root:{style:{zIndex:10}}},I={Dialog:{style:{maxWidth:"550px",width:"90vw"}}},O=()=>(0,b.Y)(E,{size:18}),v=e=>{let{size:i=16}=e;return(0,b.FD)("svg",{fill:"none",height:i,viewBox:"0 0 24 24",width:i,xmlns:"http://www.w3.org/2000/svg",children:[(0,b.Y)("circle",{cx:"12",cy:"12",fill:"currentColor",r:"10"}),(0,b.Y)("path",{d:"M7.5 12.5l3 3 6-6",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})]})},A=e=>{let{body:i,heading:l,variant:o}=e;const r="desktop"===o;return(0,b.FD)(b.FK,{children:[(0,b.FD)(t.A,{alignItems:"center",display:"flex",gridGap:"scale300",marginBottom:r?"scale400":"scale200",paddingRight:r?"scale700":void 0,children:[(0,b.Y)(t.A,{as:"span",color:"contentPrimary",display:"inline-flex",children:(0,b.Y)(T,{size:r?25:24})}),(0,b.Y)(s.MD,{as:"h2",margin:"0",children:l})]}),(0,b.Y)(s._I,{color:"contentSecondary",margin:"0",marginBottom:"scale500",children:i})]})};function B(e){var i,l,T,B,D,k,P,R,M,S,U;const x=e.appContext===m.ySn.PAGE_EDIT,[X,q]=u.useState(!1),w=function(e){const[,i]=(0,g.c6)(),l="undefined"!=typeof window&&"undefined"!=typeof window.matchMedia,[t,o]=y.useState(!1);return y.useEffect((()=>
1{if(!l)return;const t=i.breakpoints.medium,r=i.breakpoints.large,a={desktop:"(min-width: ".concat(r,"px)"),mobile:"(max-width: ".concat(t-1,"px)"),tablet:"(min-width: ".concat(t,"px) and (max-width: ").concat(r-1,"px)")}[e];let d=!0;const n=window.matchMedia(a),p=()=>{d&&o(n.matches)};return p(),n.addEventListener("change",p),()=>{d=!1,n.removeEventListener("change",p)}}),[e,i.breakpoints.medium,i.breakpoints.large,l]),t}("desktop"),Y=null===(i=e.primaryButton)||void 0===i||null===(i=i.text)||void 0===i?void 0:i.trim(),G=null===(l=e.secondaryButton)||void 0===l||null===(l=l.text)||void 0===l?void 0:l.trim(),H=null===(T=e.mobilePopupHeading)||void 0===T?void 0:T.trim(),V=null===(B=e.mobilePopupBody)||void 0===B?void 0:B.trim(),F=null===(D=e.desktopPopupHeading)||void 0===D?void 0:D.trim(),K=null===(k=e.desktopPopupSubheading)||void 0===k?void 0:k.trim(),z=null===(P=e.desktopPopupAvailability)||void 0===P?void 0:P.trim(),W=null===(R=e.mobilePopupCallCta)||void 0===R||null===(R=R.text)||void 0===R?void 0:R.trim(),$=null===(M=e.mobilePopupCloseCta)||void 0===M||null===(M=M.text)||void 0===M?void 0:M.trim(),Z=null!==(S=null===(U=e.primaryButton)||void 0===U?void 0:U.href)&&void 0!==S?S:"",J=Z||"#",j=Z.replace(/^tel:/,"");if(u.useEffect((()=>{if(x)return;try{if(sessionStorage.getItem(h))return}catch(e){}const i=w?e.desktopPopupDelayMs:e.mobilePopupDelayMs,l=Number(i);if(!Number.isFinite(l)||0===l||!1===e.enablePopup)return;const t=setTimeout((()=>{q(!0);try{sessionStorage.setItem(h,"true")}catch(e){}}),l);return()=>clearTimeout(t)}),[w,x,e.desktopPopupDelayMs,e.mobilePopupDelayMs,e.enablePopup]),!Y||!G)return null;const Q=Boolean(H)&&Boolean(V)&&Boolean(F)&&Boolean(K)&&Boolean(z)&&Boolean(Z),ee=()=>q(!1);return(0,b.FD)(b.FK,{children:[(0,b.Y)(t.A,{"data-testid":"intercity-c2r-dock",overrides:f,children:(0,b.FD)(t.A,{display:"flex",gridGap:"scale500",children:[(0,b.Y)(o.A,{$as:"a","aria-label":e.primaryButton.ariaLabel||Y,"data-testid":"intercity-c2r-dock-primary",href:J,kind:r.Nd.primary,overrides:_,startEnhancer:O,onClick:e=>{Q&&(e.preventDefault(),q(!0))},children:Y}),(0,b.Y)(o.A,{$as:"a","aria-label":e.secondaryButton.ariaLabel||G,"data-testid":"intercity-c2r-dock-secondary",href:e.secondaryButton.href||"#",kind:r.Nd.secondary,overrides:_,rel:e.secondaryButton.openInNewTab?"noopener noreferrer":void 0,target:e.secondaryButton.openInNewTab?"_blank":void 0,children:G})]})}),(0,b.Y)(a.A,{anchor:d.Ip.bottom,isOpen:X&&Q&&!w,overrides:L,size:"auto",onClose:ee,children:(0,b.FD)(t.A,{"data-testid":"intercity-c2r-dock-mobile-popup",children:[(0,b.Y)(A,{body:V,heading:H,variant:"mobile"}),(0,b.FD)(t.A,{display:"flex",gridGap:"scale500",children:[(0,b.Y)(o.A,{$as:"a",href:J,kind:r.Nd.primary,overrides:_,startEnhancer:O,children:W}),(0,b.Y)(o.A,{"data-testid":"intercity-c2r-dock-mobile-close",kind:r.Nd.secondary,overrides:_,onClick:ee,children:$})]})]})}),(0,b.Y)(n.A,{animate:!0,autoFocus:!1,isOpen:X&&Q&&w,overrides:I,role:p.z7.dialog,size:p.SK.default,onClose:ee,children:(0,b.Y)(c.cw,{children:(0,b.FD)(t.A,{"data-testid":"intercity-c2r-dock-desktop-popup",children:[(0,b.Y)(A,{body:K,heading:F,variant:"desktop"}),(0,b.Y)(t.A,{overrides:C,children:(0,b.FD)(t.A,{alignItems:"center",display:"flex",gridGap:"scale300",children:[(0,b.Y)(E,{size:20}),(0,b.FD)(t.A,{children:[(0,b.Y)(s.w_,{color:"contentPrimary",children:j}),(0,b.Y)(s.iD,{color:"contentSecondary",margin:"0",children:z})]})]})}),e.desktopPopupValueProps&&e.desktopPopupValueProps.length>0&&(0,b.Y)(t.A,{as:"ul",marginTop:"scale700",overrides:N,children:e.desktopPopupValueProps.map(((e,i)=>{let{text:l}=e;return(0,b.FD)(t.A,{alignItems:"center",as:"li",display:"flex",gridGap:"scale200",marginBottom:"scale200",children:[(0,b.Y)(v,{size:14}),(0,b.Y)(s._I,{color:"contentPrimary",margin:"0",children:l})]},"".concat(l,"-").concat(i))}))})]})})})]})}const D=B,k=e=>{let{width:i="auto",height:l="200px"}=e;return(0,b.Y)("img",{alt:"",height:l,src:"https://terrablob.uberinternal.com/_gateway/prod/uber-static/chameleon-fusion/intercity-c2r-dock.png",width:i})};var P=l(51483),R=l(8028);const M={fields:[...[{category:P.i.CONTENT,field:"primaryButton",label:"Primary Button",required:!0,type:P.b.TEXT_LINK},{category:P.i.CONTENT,field:"secondaryButton",label:"Secondary Button",required:!0,type:P.b.TEXT_LINK},{category:P.i.CONTENT,field:"mobilePopupHeading",label:"Mobile Popup Heading",required:!0,type:P.b.TEXT_LINE},{category:P.i.CONTENT,field:"mobilePopupBody",label:"Mobile Popup Body Text",required:!0,type:P.b.TEXT_LINE},{category:P.i.CONTENT,field:"mobilePopupDelayMs",label:"Mobile Popup Auto-open Delay (milliseconds)",required:!0,type:P.b.TEXT_LINE},{category:P.i.CONTENT,field:"mobilePopupCallCta",label:"Mobile Popup Call CTA",required:!0,type:P.b.TEXT_LINK},{category:P.i.CONTENT,field:"mobilePopupCloseCta",label:"Mobile Popup Close CTA",required:!0,type:P.b.TEXT_LINK},{category:P.i.CONTENT,field:"desktopPopupHeading",label:"Desktop Popup Heading",required:!0,type:P.b.TEXT_LINE},{category:P.i.CONTENT,field:"desktopPopupSubheading",label:"Desktop Popup Subheading",required:!0,type:P.b.TEXT_LINE},{category:P.i.CONTENT,field:"desktopPopupAvailability",label:"Desktop Popup Availability Text",required:!0,type:P.b.TEXT_LINE},{category:P.i.CONTENT,field:"desktopPopupDelayMs",label:"Desktop Popup Auto-open Delay (milliseconds)",required:!0,type:P.b.TEXT_LINE},{category:P.i.CONTENT,field:"desktopPopupValueProps",itemSchema:{fields:[{field:"text",label:"Value Proposition",required:!0,type:P.b.TEXT_LINE}]},label:"Desktop Popup Value Propositions",required:!1,type:P.b.ARRAY},{category:P.i.ADVANCED,defaultValue:!1,field:"enablePopup",label:"Enable popup",type:P.b.TOGGLE_SWITCH}],...R.A.fields],title:"Intercity C2R Dock"}}}]); 2//# sourceMappingURL=https://sourcemaps.uberinternal.com/raw/uber-sites/client-5489-4fe4d2b49b0296e1.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.