PageSourceSearch

https://www.clickbus.com.br/_next/static/chunks/9893-925830f45edccc86.js

js clickbus.com.br collected 2026-10-01 12:09:21 UTC 10,173 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9893],{12548:(t,e,o)=>{o.d(e,{Z:()=>a,A:()=>s});var i=o(7765);o(15977);var r=o(26244);let n=(0,r.I4)("section",{width:"auto",height:"auto",display:"block",borderRadius:"$sm",backgroundColor:"$neutralWhite100",variants:{shadow:{sm:{boxShadow:"0 0 6px 0 rgba(42, 43, 45, 0.08)"},md:{boxShadow:"0 0 16px 0 rgba(42, 43, 45, 0.08)"}},hasBorder:{true:{border:"1px solid $disabledBackground"}}},"@sm":{maxWidth:"100vw"}}),l=(0,r.I4)("header",{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"$3 $4",borderBottom:"1px solid $disabledBackground",fontSize:"$xs",fontWeight:"$medium"}),a=t=>{let{children:e,shadow:o,hasBorder:r,header:a,...s}=t;return(0,i.jsxs)(n,{shadow:o,hasBorder:r,"data-testid":"card",...s,children:[a&&(0,i.jsx)(l,{"data-testid":"card-header",children:a}),e]})},s=a},25852:(t,e,o)=>{o.d(e,{v:()=>h});var i=o(7765),r=o(15977),n=o(8892),l=o(65618),a=o(68959),s=o(42674),d=o(88263);let h=t=>{var e,o;let{status:h="success",icon:c,color:p,cssCustom:x}=t,{isMobile:u}=(0,d.S)(),g={height:u?null==x||null==(e=x.mobile)?void 0:e.height:null==x?void 0:x.height,width:u?null==x||null==(o=x.mobile)?void 0:o.width:null==x?void 0:x.width},f={height:u?"70px":"100px",width:u?"70px":"100px",color:p};return(0,i.jsx)(i.Fragment,{children:c?(0,r.cloneElement)(c,x&&g||f):(()=>{switch(h){case"info":return(0,i.jsx)(l.G,{width:f.width,height:f.height,"data-testid":"icon-info"});case"warning":return(0,i.jsx)(s.i,{width:f.width,height:f.height,"data-testid":"icon-warning"});case"error":return(0,i.jsx)(n.c,{width:f.width,height:f.height,"data-testid":"icon-error"});default:return(0,i.jsx)(a.l,{width:f.width,height:f.height,"data-testid":"icon-success"})}})()})}},73569:(t,e,o)=>{o.d(e,{A:()=>h});var i=o(7765),r=o(74807),n=o.n(r),l=o(4105),a=o(88263),s=o(51509),d=o(64278);let h=t=>{let{children:e,contextProperties:o}=t,{publicRuntimeConfig:r}=n()()||{},{urlFrontend:h,token:c,env:p,refreshInterval:x,appName:u,localStorage:g}=(null==r?void 0:r.featureFlag)||{},f=null==r?void 0:r.appEnv,b=null==r?void 0:r.isCI,{whitelabel:{clientId:v}}=(0,a.S)();return h&&c&&p&&x&&u?(0,i.jsx)(l.UU,{config:{url:h,clientKey:c,environment:p,refreshInterval:x,experimental:{togglesStorageTTL:60},appName:u,context:{sessionId:null==o?void 0:o.sessionId,properties:{clientId:v||"",platform:s.i9y,env:b?"ci":f,...o}},storageProvider:(0,d.L)(g)},children:e}):e}},80170:(t,e,o)=>{o.d(e,{A:()=>T});var i=o(7765),r=o(88263),n=o(15977),l=o(88138),a=o(59036);let s={position:"relative"},d={width:"fit-content",textAlign:"center",cursor:"pointer"},h={borderColor:"transparent transparent rgba(0, 0, 0, 0.8) rgba(0, 0, 0, 0.8)"},c=t=>{let{children:e,description:o="",title:r=""}=t,[c,p]=(0,n.useState)(!1);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.A,{as:"div",css:s,children:(0,i.jsx)(a.A,{as:"div",css:d,onClick:t=>{t.stopPropagation(),p(!0)},_before:h,children:e})}),(0,i.jsx)(l.A,{title:r,acceptButton:{title:"Fechar",variant:"primary",onClickHandler:()=>p,customStyles:{height:"$48px"}},show:c,setShow:p,dataTestId:"tooltip-bottom-sheet",children:(0,i.jsx)(a.A,{dangerouslySetInnerHTML:{__html:o}})})]})};var p=o(11097),x=o(77737);let u={position:"relative"},g="278px",f={width:"fit-content",textAlign:"center",cursor:"pointer"},b={borderColor:"transparent transparent rgba(0, 0, 0, 0.8) rgba(0, 0, 0, 0.8)"},v={position:"absolute",top:"calc(100% + 10px)",left:"-6px",display:"none",color:"transparent",backgroundColor:"transparent",width:g,padding:"5px 5px",borderRadius:"8px",zIndex:"2",textAlign:"center",boxShadow:"0px 4px 16px 0px #2A2B2D14",a:{textDecoration:"underline"}},m={left:"calc(100% - 150px)"},w={left:"auto",right:"-12px"},j={left:"calc(100% - 4px)",top:"calc(100% - 42px)"},y="rgba(0,0,0,.5)",C={...v,display:"initial",color:y,backgroundColor:"#fff",width:g,padding:"8px 8px"},k={content:'""',width:"0",height:"0",left:"8px",top:"-15px",right:"15px",position:"absolute",color:y,backgroundColor:"transparent",borderWidth:"6px",borderStyle:"solid",borderColor:"transparent transparent transparent transparent",zIndex:"1",transform:"rotate(-90deg)"},S={left:"calc(100% - 142px)"},I={left:"auto",right:"16px"},A={top:"50%",left:"-4px",transform:"translateY(-50%) rotate(132deg)"},$={top:"calc(100% - 6px)"},B={content:'""',width:"0",height:"0",left:"8px",top:"-3.5px",right:"15px",position:"absolute",color:y,backgroundColor:"#fff",borderWidth:"6px",borderStyle:"solid",borderColor:"transparent transparent transparent #fff",zIndex:"1",transform:"rotate(-225deg)",boxShadow:"4px 0 16px 0 #2A2B2D14"},E={...C,left:0,width:g,color:"#FFFFFF",padding:"8px 16px",borderRadius:"8px",LineHeight:"20px",backgroundColor:"#5E5E5E",border:"1px solid #5E5E5E",boxShadow:"0 4px 16px 0 #2A2B2D14",opacity:"0.9"},_={...k,backgroundColor:"transparent"},z={...B,borderColor:"#5E5E5E",backgroundColor:"#5E5E5E"},H=t=>{let{children:e,description:o="",kind:r="white",biggerSize:l,tooltipPosition:s="bottom",isMobile:d,showOnlyOnClick:h=!1,...c}
1=t,g=(0,n.useRef)(null),[y,H]=(0,n.useState)(!1),D=d||h;(0,x.j)({ref:g,handler:()=>!!D&&H(!1)});let T=()=>H(t=>!t),F="white"===r,L=F?C:E,M=F?k:_,R=c.style?{...M,left:"42px",top:l?"194px":"147px",transform:"rotate(90deg)",...c.before}:M,W=F?B:z,N=c.style?{...W,left:"42px",top:l?"184px":"136px",...null==c?void 0:c.after}:W,O={top:{box:{...v,...m},before:{...R,...S,...$},after:{...S,...$,...N},hover:{...L,...m}},bottom:{box:{...v},before:{...R,...S},after:{...S,...N},hover:{...L,...m}},bottomRight:{box:{...v},before:{...R,...I},after:{...I,...N},hover:{...L,...w}},right:{box:{...v},before:{...R,...A},after:{...A,...N},hover:{...L,...j}}}[s],Y=D?()=>!1:T;return(0,i.jsxs)(p.A,{as:"div",css:u,ref:g,children:[(0,i.jsx)(a.A,{as:"div",css:f,onClick:D?T:void 0,onMouseEnter:Y,onMouseLeave:Y,_before:b,"data-testid":"tooltip-fire",children:e}),(0,i.jsx)(a.A,{as:"div",css:y?O.hover:O.box,_before:O.before,_after:O.after,style:null==c?void 0:c.style,"data-testid":"tooltip-title",children:(0,i.jsx)(a.A,{as:"span",lineHeight:"20px",fontSize:"14px",dangerouslySetInnerHTML:{__html:o},"data-testid":"tooltip-text"})})]})},D=t=>{let{children:e,title:o,description:n="",kind:l="white",biggerSize:a,renderBottomSheetInfo:s=!0,showOnlyOnClick:d,...h}=t,{isMobile:p}=(0,r.S)(),x=n.length>100;return p&&x&&s?(0,i.jsx)(c,{title:o,description:n,...h,children:e}):(0,i.jsx)(H,{title:o,description:n,kind:l,biggerSize:a,isMobile:p,showOnlyOnClick:d,...h,children:e})};D.displayName="Tooltip";let T=D},88138:(t,e,o)=>{o.d(e,{X:()=>w,A:()=>j});var i=o(7765),r=o(22199),n=o(12548),l=o(91729),a=o(15660),s=o(26287),d=o(63738),h=o(88263),c=o(25852),p=o(26244);let x=(0,p.I4)("div",{left:"0",bottom:"0",width:"100%",height:"100%",position:"fixed",transition:"all 400ms ease-in-out",transform:"translateY(2000%)",color:"$neutralBlack500",zIndex:999,variants:{show:{true:{zIndex:185,transform:"translateY(0)"}},showOverlay:{false:{pointerEvents:"none"}}}}),u=(0,p.I4)("div",{display:"flex",justifyContent:"center",flexDirection:"column",fontSize:"$xs",marginBottom:"$16px",padding:"0 $16px"}),g=(0,p.I4)("div",{textAlign:"center",padding:"$16px",overflowY:"scroll",fontSize:"$xxs",lineHeight:"$tight",marginBottom:"$24px"}),f=(0,p.I4)("div",{textOverflow:"ellipsis",textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",fontWeight:"$medium","& svg":{width:"64px",height:"64px",marginTop:"$16px",marginBottom:"$16px"},variants:{titleBlack:{true:{fontWeight:900}}}}),b=(0,p.I4)("div",{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",paddingY:"$8px","& button":{width:"100%",marginBottom:"$8px"}}),v={zIndex:185,bottom:0,width:"100%",height:"auto",maxHeight:"60%",padding:"$16px",position:"absolute",borderRadius:"8px 8px 0 0"},m={pointerEvents:"auto"},w=t=>{var e,o;let{title:p,children:w,show:j=!1,setShow:y,dataTestId:C,setValue:k,overrideWrapperCss:S,stylesTitle:I,csschildren:A,hasIconHeader:$,iconHeader:B=(0,i.jsx)(c.v,{status:"info"}),headerChildren:E,showOverlay:_=!0,acceptButton:z={variant:"primary"},rejectButton:H={variant:"tertiary"},titleBlack:D,hideIconClose:T=!1,onCloseCallback:F,closeIconCss:L}=t;if(!j||"undefined"==typeof document)return null;let{cms:{content:{bottomsheet:M}}}=(0,h.S)(),{handleContentClick:R,onClickHandler:W}=((t,e,o)=>({handleContentClick:t=>{t.target instanceof HTMLAnchorElement&&(t.preventDefault(),window.open(t.target.href,"_blank"))},onClickHandler:i=>{let r=null==t?void 0:t.title;t.onClickHandler&&(null==t||t.onClickHandler(i)),o&&(null==r?void 0:r.includes("seguro"))&&o("mobileInsurance",!0,{shouldValidate:!0}),e(!1)}}))(z,y,k),N=(0,i.jsxs)(x,{show:j,showOverlay:_,"data-testid":null!=C?C:"bottonSheet-container",children:[_&&(0,i.jsx)(s.h,{visible:j,onClose:y,css:{width:"100%"},"data-testid":"bottomsheet-overlay"}),(0,i.jsxs)(n.Z,{css:{...v,...a.I,...!_&&m,...S},children:[(0,i.jsxs)(u,{css:{...I},"data-testid":"bottomsheet-header",children:[!T&&(0,i.jsx)(d.g,{width:"24px",height:"24px",color:"#ADADAD",cursor:"pointer",onClick:()=>(null==F||F(),y(!1)),"data-testid":"bottonSheet-close-button",css:{position:"absolute",right:"0",top:"0",margin:"2",...L}}),(p||$)&&(0,i.jsxs)(f,{titleBlack:D,"data-testid":"bottomsheet-title",children:[$&&B,p]}),E]}),(0,i.jsx)(g,{css:{...A},onClick:R,"data-testid":"bottonSheet-content",children:w}),(z.title||H.title)&&(0,i.jsxs)(b,{className:"bottomsheet-footer",children:[z.title&&(0,i.jsx)(l.$,{onClick:W,variant:null==z?void 0:z.variant,dangerouslySetInnerHTML:{__html:null!=(e=z.title)?e:null==M?void 0:M.defaultAcceptButtonTitle},size:null==z?void 0:z.size,css:{...z.customStyles},"data-testid":"bottonSheet-accept-button"}),H.title&&(0,i.jsx)(l.$,{css:{color:"#4B6DB6",...H.customStyles},variant:H.variant,size:null==H?void 0:H.size,onClick:t=>{t.stopPropagation(),t.preventDefault(),H.onClickHandler&&H.onClickHandler(t),y((null==H?void 0:H.setShow)||!1)},dangerouslySetInnerHTML:{__html:null!=(o=H.title)?o:null==M?void 0:M.defaultRejectButtonTitle},"data-testid":"bottonSheet-reject-button"})]})]})]});return(0,r.createPortal)(N,document.body)};w.displayName="BottomSheet";let j=w}}]);

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.