PageSourceSearch

https://passagens.guerinoseiscento.com.br/public_images_common_goo…ents_Footer_Bran-b703c8.dbbd9c0be362f18b.js

js guerinoseiscento.com.br collected 2026-10-06 21:34:56 UTC 9,745 bytes, 5 lines download raw bytes

1"use strict";
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="7b7b62a5-409f-5260-bec9-1fc502f54810")}catch(e){}}();
3(globalThis.rspackChunkowl_frontend||=[]).push([["public_images_common_googleMaps_svg-src_pages_Destinations_App_tsx-src_components_Footer_Bran-b703c8"],{51085(e,s,l){let t={load:l(52946).Ay.get("/locations")};l.d(s,{},{A:t})},10475(e,s,l){l.r(s),l.d(s,{default:()=>q});var t=l(74848),a=l(60127),i=l(46942),n=l.n(i),c=l(96540),r=l(45636),d=l(86522),o=l(56705),m=l(75422),h=l(83245);let u=e=>{let{currentPage:s,setCursor:l,citiesMap:i}=e,{t:n}=(0,o.Bd)(),r=(0,c.useCallback)((e,s,l)=>{for(let t of e){if(null==t)return!1;if(t.length>0)return s.includes(t.at(l))}return!0},[]),d=(0,c.useMemo)(()=>null==s||r(Object.values(i).reverse(),s,-1),[i,s,r]),u=(0,c.useMemo)(()=>null==s||r(Object.values(i),s,0),[i,s,r]);return(0,t.jsxs)("div",{className:"row center gap-4 destinations-list__navigation",children:[(0,t.jsx)("div",{className:"cell-6",children:(0,t.jsx)(a.A,{variant:"outline",disabled:u,onClick:()=>{l(e=>({...e,offset:e.offset-h.A.destinationsPageSize}))},"data-tag":"previous",children:(0,t.jsxs)("div",{className:"row space-between items-center",children:[(0,t.jsx)("div",{className:"cell no-grow",children:(0,t.jsx)(m.A,{name:"chevron-left",size:"medium"})}),(0,t.jsx)("div",{className:"cell",children:n("destinations.previous")})]})})}),(0,t.jsx)("div",{className:"cell-6",children:(0,t.jsx)(a.A,{variant:"outline",disabled:d,onClick:()=>{l(e=>({...e,offset:e.offset+h.A.destinationsPageSize}))},"data-tag":"next",children:(0,t.jsxs)("div",{className:"row space-between items-center",children:[(0,t.jsx)("div",{className:"cell",children:n("destinations.next")}),(0,t.jsx)("div",{className:"cell no-grow",children:(0,t.jsx)(m.A,{name:"chevron-right",size:"medium"})})]})})})]})};var x=l(93735),j=l(21106),g=l(73004),v=l(6300),p=l(17540),N=l(54550),f=l(70585),A=l(14996),b=l(74743);let w=e=>{let{code:s}=e,[{locale:l}]=(0,b.g)(),a=(0,f.Z)({code:s,locale:l}),i=a.data,n=(0,N.n1)(),r=(0,c.useMemo)(()=>{let e=a.data?.city?.code;try{return e&&new Intl.DisplayNames([l],{type:"region"}).of(e.slice(0,2))}catch(e){return null}},[l,a]);return(0,t.jsx)("div",{className:"station-information",children:(0,t.jsx)(j.A.List,{Skeleton:()=>(0,t.jsx)(j.A.Item,{width:"100%",height:40}),loading:a.isLoading,amount:2,direction:"column",children:(0,t.jsx)(t.Fragment,{children:null!=i&&(0,t.jsxs)("div",{className:"column gap-5 body-14",children:[n&&(0,t.jsx)("div",{className:"cell",children:(0,t.jsx)("div",{className:(0,d.A)("station-information","map"),children:(0,t.jsx)(N.T5,{center:{lat:i.latitude,lng:i.longitude},zoom:11,disableDefaultUI:!0,children:(0,t.jsx)(N.pH,{position:{lat:i.latitude,lng:i.longitude}})})})}),(0,t.jsxs)("div",{className:"column row-lg cell gap-2",children:[(0,t.jsxs)("div",{className:"row cell gap-3",children:[(0,t.jsx)(m.A,{className:(0,d.A)("station-information","icon"),name:"map-pin",size:"large"}),(0,t.jsx)("div",{className:"cell",children:(0,t.jsxs)("div",{className:"column",children:[(0,t.jsx)("div",{className:"cell",children:(0,t.jsx)("b",{children:i.streetAndNumber})}),(0,t.jsx)("div",{className:"cell",children:[i.zipCode,i.city?.name].filter(Boolean).join(", ")}),(0,t.jsx)("div",{className:"cell",children:r})]})})]}),!n&&(0,t.jsx)(A.A,{station:i})]}),i.description.length>0&&(0,t.jsx)("div",{className:"cell",children:i.description})]})})})})},_=()=>(0,t.jsxs)("div",{className:"row gap-9",children:[(0,t.jsx)("div",{className:"cell no-grow",children:(0,t.jsx)(j.A.Item,{width:48,height:48})}),(0,t.jsx)("div",{className:"cell",children:(0,t.jsxs)("div",{className:"row gap-6 wrap",children:[(0,t.jsxs)("div",{className:"row gap-6",children:[(0,t.jsx)("div",{className:"cell-6",children:(0,t.jsx)(j.A.Item,{width:"100%",height:64})}),(0,t.jsx)("div",{className:"cell-6",children:(0,t.jsx)(j.A.Item,{width:"100%",height:64})})]}),(0,t.jsxs)("div",{className:"row gap-6",children:[(0,t.jsx)("div",{className:"cell-6",children:(0,t.jsx)(j.A.Item,{width:"100%",height:64})}),(0,t.jsx)("div",{className:"cell-6",children:(0,t.jsx)(j.A.Item,{width:"100%",height:64})})]})]})})]}),y=e=>{let{loading:s,cities:l}=e,a=(0,p.A)(),[i,n]=(0,c.useState)(null),[r,o]=(0,c.useState)(!1),m=(0,c.useMemo)(()=>l.reduce((e,s)=>(e[s.name[0]]=e[s.name[0]]??[],e[s.name[0]].push(s),e),{}),[l]),h=e=>(0,t.jsx)("div",{className:"column",children:e.map(e=>(0,t.jsx)("div",{className:"cell",children:(0,t.jsx)(x.A,{title:e.name,children:e.childrenLocations.map(e=>(0,t.jsx)("div",{onClick:()=>{n(e),o(!0)},className:(0,d.A)("destinations-list","station"),children:e.name},e.code))})},e.code))});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(j.A.List,{loading:s,amount:1,Skeleton:_,children:(0,t.jsx)("div",{className:"destinations-list","data-tag":"destinations-list-block",children:Object.entries(m).map(e=>{let[s,l]=e;return(0,t.jsxs)("div",{className:"row",children:[(0,t.jsx)("div",{className:"cell no-grow mr-9",children:(0,t.jsx)("h3",{className:(0,d.A)("destinations-list","letter"),children:s})}
3),(0,t.jsxs)("div",{className:"cell",children:[a&&h(l),!a&&(0,t.jsxs)("div",{className:"row",children:[(0,t.jsx)("div",{className:"cell-6 pr-4",children:h(l.slice(0,l.length/2))}),(0,t.jsx)("div",{className:"cell-6 pl-4",children:h(l.slice(l.length/2))})]})]})]},s)})})}),(0,t.jsx)(g.A,{opened:r,onClose:()=>{o(!1)},title:i?.name,maxWidth:"md",className:"destinations-list__modal",children:(0,t.jsx)(v.C,{children:(0,t.jsx)(w,{code:i?.code})})})]})};var C=l(65115),k=l(51085),S=l(85215);let M=e=>{let{childrenLocations:s}=e;return s?.reduce((e,s)=>null==s.childrenLocations||0===s.childrenLocations.length?[...e,{name:s.names[0].name,code:s.code}]:[...e,...M(s)],[])??[]},L=(0,S.Q)({key:"stations_pageable",cacheTime:36e5,staleTime:1/0,keepPreviousData:!1,loader:async e=>{let{retailerPartnerNumber:s,carriers:l,q:t}=e,a={rpn:s,locale:"en",carriers:l,limitTopLevel:1e3,q:t};return(await k.A.load(a)).locations.reduce((e,s)=>{if("city"!==s.type||s.names[0].name[0]!==a.q[0])return e;let l={name:s.names[0].name,code:s.code,childrenLocations:M(s)};return 0===l.childrenLocations.length?e:[...e,l]},[]).sort((e,s)=>e.name.localeCompare(s.name))}});class z extends Error{letter;constructor(e){super(),this.letter=e}}let I=(()=>{let e={};for(let s=65;s<=90;s++)e[String.fromCharCode(s)]=null;return e})(),T=Object.keys(I),q=()=>{let[e,s]=(0,c.useState)([T[0]]),{t:l}=(0,o.Bd)(),{changeCursor:i,pageData:m,citiesMap:x}=(()=>{let[{retailerPartnerNumber:e,marketingCarrierCode:s}]=(0,b.g)(),[l,t]=(0,c.useState)("A"),[a,i]=(0,c.useState)(I),[n,r]=(0,c.useState)({letter:"A",offset:0}),[d,o]=(0,c.useState)(null);L({retailerPartnerNumber:e,carriers:s?[s]:[],q:l},{meta:{onFetchSuccess:(e,s)=>{let{q:l}=s.queryKey[s.queryKey.length-1];i(s=>({...s,[l]:e}))},onFetchError:e=>{let{q:s}=e.queryKey[e.queryKey.length-1];i(e=>({...e,[s]:[]}))}}});let m=(0,c.useCallback)(e=>{let s=a[e];if(null==s)throw new z(e);return s},[a]),u=(0,c.useCallback)(e=>{let{letter:s,offset:l}=e,t=m(s);if(l>t.length)return u({letter:C.A.string.nextChar(s),offset:l-t.length});if(l<0){let e="A"===s?s:C.A.string.previousChar(s),t=l+m(e).length;if("A"===e&&t<0){let e={letter:"A",offset:0};return r(e),e}return u({letter:e,offset:t})}return e},[m]),x=(0,c.useCallback)(e=>{let s=[],l=e.offset,t=e.letter;for(;s.length<h.A.destinationsPageSize&&90>=t.charCodeAt(0);){let e=h.A.destinationsPageSize-s.length,a=m(t),i=Math.min(e,a.length-l),n=a.slice(l,l+i);s.push(...n),t=C.A.string.nextChar(t),l=0}return s},[m]);return(0,c.useEffect)(()=>{try{let e=u(n),s=x(e);o(s)}catch(e){e instanceof z&&(o(null),t(e.letter))}},[u,a,n,x]),{changeCursor:r,pageData:d,citiesMap:a}})(),j=(0,c.useMemo)(()=>null==m?null:[...new Set(m?.map(e=>e.name[0]))],[m]),g=j??e;return(0,c.useEffect)(()=>{null!=j&&s(j)},[j]),(0,t.jsx)(r.A,{children:(0,t.jsxs)("div",{className:"destinations-page",children:[(0,t.jsx)("div",{id:"bg-line"}),(0,t.jsxs)("div",{className:"column gap-2",children:[(0,t.jsx)("h2",{children:l("destinations.title")}),(0,t.jsxs)("div",{className:"cell",children:[(0,t.jsx)("h3",{className:"mb-2",children:l("destinations.alphabet.label")}),(0,t.jsx)("div",{className:"destinations-page__alphabet",children:(0,t.jsx)("div",{className:"row space-between",children:T.map(e=>{let l=(0,d.A)("destinations-page__alphabet-char",{active:g.includes(e)});return(0,t.jsx)("div",{className:n()(l,"mb-0"),children:(0,t.jsx)(a.A,{onClick:()=>{s([e]),i({letter:e,offset:0})},variant:"text","data-tag":"letter-navigation",children:(0,t.jsx)("h4",{className:"mb-0",children:e})})})})})})]}),(0,t.jsx)("div",{className:"cell mb-4",children:(0,t.jsx)(u,{currentPage:m,citiesMap:x,setCursor:i})}),(0,t.jsx)("div",{className:"cell",children:(0,t.jsx)(y,{loading:null==m,cities:m??[]})})]})]})})}},14996(e,s,l){l.d(s,{A:()=>d});var t=l(74848),a=l(77891);l(96540);var i=l(82761),n=l(17540);let c=l.p+"88d978257870bfc9.svg";var r=l(2274);let d=e=>{let{station:s}=e,{t:l}=(0,i.Bd)(),d=(0,n.A)();return(0,t.jsx)(a.A,{dataTag:"googleMaps-redirection-link-button",to:r.Ay.buildStationMapURL(s),openInNewTab:!0,fullWidth:d,variant:"outline",children:(0,t.jsxs)("div",{className:"row items center",children:[(0,t.jsx)("span",{className:"map-redirection__action mr-2",children:l("destinations.open")}),(0,t.jsx)("img",{src:c,alt:l("accessibility.images.googleMaps")})]})})}}}]);
4//# sourceMappingURL=public_images_common_googleMaps_svg-src_pages_Destinations_App_tsx-src_components_Footer_Bran-b703c8.dbbd9c0be362f18b.js.map
5//# debugId=7b7b62a5-409f-5260-bec9-1fc502f54810

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.