PageSourceSearch

https://www.starbucks.rs/_next/static/chunks/4253.9442f7c08acddf21.js

js starbucks.rs collected 2026-10-08 05:56:16 UTC 15,818 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4253],{931:(e,t,r)=>{"use strict";r.d(t,{O44StoreFinderCard:()=>I});var n=r(95155),a=r(39928),s=r(69730),o=r.n(s),i=r(73321),l=r(50910),c=r(12115),d=r(34466),u=r(50609),m=r.n(u),f=r(64734),h=r(75064),g=r(70565),p=r(99109),b=r(6765),_=r(41193),y=r(91218),v=r(82412),x=r(22799),C=r(31071),S=r(29671),k=r(19993),j=r(93485),L=r(99658),M=r(66149),O=r(82170),N=r(67988),A=r(75421);function I({ref:e,body:t,bodyHasLocation:r,ctaLabelHasLocation:s,ctaLabelNoLocation:u,ctaLabelNoStore:T,eyebrow:B,title:w,titleNoStore:F}){let{trackEvent:D}=(0,S.y)(),P=(0,j.A)(),E=(0,i.useRouter)(),{prefixUrl:H}=(0,L.A)(),{clearBasketEnabled:q,localOrderAndPayEnabled:W}=(0,M.x)(),z=(0,a.u5)({self:(0,a.UH)(e)}),U=(0,l.c)(),{mapInstance:V,setMarkers:R}=(0,O.R5)((0,d.k)(e=>({mapInstance:e.mapInstance,setMarkers:e.setMarkers}))),{preferredStoreId:K,basket:Q,clearBasket:Y}=(0,O.xG)((0,d.k)(e=>({setPreferredStoreId:e.setPreferredStoreId,preferredStoreId:e.preferredStoreId,basket:e.basket,clearBasket:e.clearBasket}))),$=(0,C.h)(),[G,J]=(0,c.useState)(!1),{allowUserLocation:X,userGeolocation:Z,isLoadingUserGeolocation:ee,getUserGeolocation:et,setPanToGeolocationEnabled:er}=(0,k.m)();(0,a.JO)(()=>{er(!0)});let{data:en=[],isFetching:ea}=(0,f.D9)({coordinates:(0,c.useMemo)(()=>{if($)return{latitude:$.center.latitude,longitude:$.center.longitude}},[$]),radius:$?.radius}),[es,eo]=(0,c.useState)({nearbyStores:0,closestStore:null,closestStoreDistance:0});(0,c.useEffect)(()=>{if(0===en.length)return;let e=!1;return(async()=>{if(!Z||!V)return;let{spherical:t}=await (0,N.EV)();if(e)return;let r=V.getBounds(),n=new google.maps.LatLng(Z.latitude,Z.longitude),a=0,s=null,o=null,i=1/0,l=en.map(e=>{let l=new google.maps.LatLng(e.coordinates.latitude,e.coordinates.longitude),c=1/0;try{c=t.computeDistanceBetween(n,l)}catch{}return r?.contains(l)&&a++,c<i&&(i=c,s=e,o=l),{store:e,distance:c}});if(!e){if(o&&r&&!r.contains(o)){let e=new google.maps.LatLngBounds(r.getSouthWest
1(),r.getNorthEast());e.extend(o),e.extend(n),V.fitBounds(e)}R(l.map(({store:e})=>({location:e.coordinates,address:e.address,isActive:e===s}))),eo({nearbyStores:a,closestStore:s,closestStoreDistance:s?Number(i.toString().split(".")[0]??0):0})}})(),()=>{e=!0}},[en,R,Z,V]);let ei=(0,c.useCallback)(()=>{et(),D(x.T.TapShareLocation)},[et,D]),el=(0,c.useCallback)(()=>{D(x.T.TapSelectStoreLink)},[D]),ec=(0,c.useCallback)(e=>{D(x.T.TapSelectStoreLink),q&&Q.length>0&&K&&es.closestStore&&es.closestStore.storeNumber!==K&&(e.preventDefault(),J(!0))},[Q.length,q,K,es.closestStore,D]),ed=(0,c.useCallback)(()=>{q&&Y(),es.closestStore&&E.push(H((0,A.yP)(v.q.MenuGenericSlug,{slug:es.closestStore.storeNumber})))},[q,Y,E,H,es.closestStore]),eu=(0,c.useCallback)(()=>{J(!1)},[]);return P?(0,n.jsxs)("div",{className:m().O44StoreFinderCard,ref:z.self,children:[(0,n.jsxs)("div",{className:m().mapContainer,children:[(0,n.jsx)(y.K,{className:m().map}),(0,n.jsx)("a",{className:m().mapLink,href:H(v.q.FindStore),children:(0,n.jsx)("span",{className:"visuallyHidden",children:"Store finder"})})]}),(0,n.jsxs)("div",{className:o()(m().contentContainer,{[m().hasSharedLocation]:X,[m().isLoading]:ea&&!es.closestStore}),children:[!Z&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h.A01Text,{className:m().heading,size:"heading-large",variant:"semi-bold",tag:"h2",children:w}),(0,n.jsx)(h.A01Text,{className:m().body,size:"body-medium",variant:"regular",tag:"p",children:t}),(!X||ee)&&(0,n.jsx)(g.V,{onClick:ei,loading:ee,className:m().cta,visualStyle:"positive",color:"white",children:u})]}),Z&&(0,n.jsx)(n.Fragment,{children:ea&&!es.closestStore?(0,n.jsx)(b.M22Loader,{}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(h.A01Text,{className:m().heading,size:"heading-large",variant:"semi-bold",tag:"h2",children:[(0,n.jsx)(h.A01Text,{className:m().eyebrow,size:"body-small",variant:"bold",children:B}),es.closestStore?es.closestStore.name:F]}),es.closestStoreDistance>0&&(0,n.jsx)(h.A01Text,{className:m().body,size:"body-medium",variant:"regular",tag:"p",children:r?.replace("{distance}",es.closestStoreDistance.toString())}),es.closestStore&&W?(0,n.jsx)(p.M02Link,{className:m().cta,href:(0,A.yP)(v.q.MenuGenericSlug,{slug:es.closestStore.storeNumber}),visualStyle:"positive",onClick:ec,"aria-label":U("StoreFinder_ViewStoreCTA_AriaLabel",{cta:s,name:es.closestStore.name}),children:s}):(0,n.jsx)(p.M02Link,{className:m().cta,href:v.q.FindStore,visualStyle:"positive",onClick:el,children:T})]})})]}),(0,n.jsx)(a.BF,{children:G?(0,n.jsx)(_.V,{isOpen:!0,onConfirm:eu,onCancel:ed,confirmButton:{confirmText:U("ChangeStoreModal_CancelCTA"),confirmButtonProps:{size:"small"}},cancelButton:{cancelText:U("ChangeStoreModal_ConfirmCTA"),cancelButtonProps:{size:"small"}},children:(0,n.jsx)(h.A01Text,{size:"heading-medium",variant:"semi-bold",tag:"h3",children:U("ChangeStoreModal_Body")})}):null})]}):null}},6765:(e,t,r)=>{"use strict";r.d(t,{M22Loader:()=>u});var n=r(95155),a=r(39928),s=r(69730),o=r.n(s),i=r(68983),l=r.n(i),c=r(44184);let d=(0,r(70737).q)("M22Loader");function u({ref:e,className:t}){let r=(0,a.u5)({self:(0,a.UH)(e)});return(0,n.jsx)("div",{className:o()(l().M22Loader,t),ref:r.self,...d(),children:(0,n.jsx)(c.A03Icon,{name:"loader",className:l().loadingIcon})})}},13123:(e,t,r)=>{"use strict";r.d(t,{y:()=>u});var n=r(65688),a=r(73321),s=r(12115),o=r(34466),i=r(85462),l=r(82170);function c(e){document.body.style.position="fixed",document.body.style.top=`-${e}px`,document.body.style.width="100%",document.body.style.left="0",document.body.style.right="0",document.body.style.overflow="visible"}let d={inertTargets:["app-root"]};
1function u(e,t,r){let u=(0,l.Dg)((0,o.k)(e=>e.setIsLocked)),m=(0,s.useMemo)(()=>({...d,...r}),[r]),f=(0,s.useRef)(0),h=(0,i.f)(),g=(0,s.useRef)(null);g.current=(0,a.usePathname)(),(0,s.useEffect)(()=>{let r=t.current;if(!r||!e)return;let a=g.current;return f.current=window.scrollY,(0,n.mh)(r,m),h?requestAnimationFrame(()=>{requestAnimationFrame(()=>{c(f.current)})}):c(f.current),u(!0,m.inertTargets),()=>{var e;let t=g.current!==a;(0,n.fY)(r),e=t?0:f.current,document.body.style.position="",document.body.style.top="",document.body.style.width="",document.body.style.left="",document.body.style.right="",document.body.style.overflow="",window.scrollTo(0,e),u(!1,m.inertTargets)}},[t,h,e,m,r,u])}},31071:(e,t,r)=>{"use strict";r.d(t,{h:()=>d});var n=r(29293),a=r(36958),s=r(12115),o=r(34466),i=r(82170),l=r(94332);function c(e){return{latitude:e.lat(),longitude:e.lng()}}function d(){let{mapInstance:e,setLocked:t}=(0,i.R5)((0,o.k)(e=>({mapInstance:e.mapInstance,setLocked:e.setLocked}))),[r,d]=(0,s.useState)(null);return(0,s.useEffect)(()=>{let r=e?.addListener("drag",()=>{t(!1)});return()=>{r?.remove()}},[e,t]),(0,s.useEffect)(()=>{let t=()=>{if(e){let t=e.getBounds();if(t){let r=c(t.getCenter()),a=c(t.getNorthEast());d({center:r,northEast:a,radius:(0,n.A)((0,l.q)(r,a),1),bounds:t,zoom:e.getZoom()})}else d(null)}},r=e?.addListener("idle",(0,a.A)(()=>{t()},500,{leading:!0}));return t(),()=>{r?.remove()}},[e]),r}},41193:(e,t,r)=>{"use strict";r.d(t,{V:()=>o});var n=r(95155),a=r(39928),s=r(97667);function o({ref:e,children:t,isOpen:r=!1,...i}){let l=(0,a.u5)({self:(0,a.UH)(e)});return(0,n.jsx)(a.BF,{children:r?(0,n.jsx)(s.S,{ref:l.self,...i,children:t},"dialog"):null})}},41863:e=>{e.exports={O01DialogContent:"O01Dialog_O01DialogContent__EmDTr",large:"O01Dialog_large__Y20hy",mask:"O01Dialog_mask__d5UmI",buttonContainer:"O01Dialog_buttonContainer__kNmoq",closeButtonWrapper:"O01Dialog_closeButtonWrapper___QHoC",header:"O01Dialog_header__SKBLC",cancelLink:"O01Dialog_cancelLink__CfNJD",button:"O01Dialog_button__EdQ1E",reverseButtonOrder:"O01Dialog_reverseButtonOrder__5Y6TQ"}},43165:(e,t,r)=>{"use strict";r.d(t,{w:()=>a});var n=r(33603);function a(e){return!!(0,n.aw)(e)&&!!e.actual.errors.some(e=>Number(e.status)>=500)}},50609:e=>{e.exports={O44StoreFinderCard:"O44StoreFinderCard_O44StoreFinderCard__V8pz_",mapContainer:"O44StoreFinderCard_mapContainer__NOiCi",map:"O44StoreFinderCard_map__uTQz6",mapLink:"O44StoreFinderCard_mapLink__aNvFW",contentContainer:"O44StoreFinderCard_contentContainer__ItfNe",isLoading:"O44StoreFinderCard_isLoading__HEad1",eyebrow:"O44StoreFinderCard_eyebrow__q2hEI",heading:"O44StoreFinderCard_heading__M1Yjm",body:"O44StoreFinderCard_body__On7KC",cta:"O44StoreFinderCard_cta__BKUew",hasSharedLocation:"O44StoreFinderCard_hasSharedLocation__6aV8W"}},59359:e=>{e.exports={visuallyHidden:"M02Link_visuallyHidden__mBh3M"}},64734:(e,t,r)=>{"use strict";r.d(t,{Sq:()=>u,kg:()=>m,D9:()=>f});var n=r(26708),a=r(5858),s=r(12115),o=r(43165),i=r(77731),l=r(33603),c=r(10334),d=r(82170);let u=50,m=5;function f(e){let t=(0,c.g)(),r=function({coordinates:e,isOpen247:t,featureCodes:r,radius:n}){let a={filter:{coordinates:e}};return t&&(a.filter.open24x7="true"),r&&r.length>0&&(a.filter.features={code:r.join(",")}),n&&(a.filter.radius=Math.max(n,m)),a}(e),f=(0,d.R5)(e=>e.locked),{error:h,...g}=(0,n.I)({queryKey:(0,i.I)({type:"stores",filter:r}),queryFn:async()=>{let{filter:{coordinates:e,radius:n}}=r;if(!t)throw Error("API not available");if(!e)throw Error("Coordinates not available");return(n??1e3)>u?[]:t.stores.getMany(void 0,r)},enabled:!!(t&&!f),throwOnError:e=>(0,o.w)(e),placeholderData:a.rX});return{errors:(0,s.useMemo)(()=>(0,l.AD)(h),[h]),...g}}},65698:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=function(){}},68983:e=>{e.exports={M22Loader:"M22Loader_M22Loader__AI4so",loadingIcon:"M22Loader_loadingIcon__hHQ_T",loadingIconAnimation:"M22Loader_loadingIconAnimation__OArnm"}},75421:(e,t,r)=>{"use strict";function n(e,t={}){let r=e;for(let e of Object.keys(t)){let n=t[e];void 0!==n&&(r=r.replace(`{${e}}`,n))}return r.replaceAll(/\/{2,}/gu,"/")}function a(e){return/\/order\/\d+-\d+\/?/iu.test(e)}function s(e){let[t=e]=e.split("?");return t.length>1?t.replace(/\/$/u,""):t}function o(e,t){if(!e||!t)return!1;let r=s(e),n=s(t);return r===n||r.startsWith(`${n}/`)}r.d(t,{EU:()=>a,aE:()=>o,yP:()=>n})},75808:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>o});var n=r(95155),a=r(931);function s(e){return(0,n.jsx)(a.O44StoreFinderCard,{...e})}let o=function(e){return(0,n.jsx)(s,{...e})}},76379:()=>{},85462:(e,t,r)=>{"use strict";r.d(t,{f:()=>a});var n=r(39928);function a(){return(0,n.NE)(()=>/iPad|iPhone|iPod/u.test(navigator.userAgent||"")||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)}},94332:(e,t,r)=>{"use strict";function n(e){return e*Math.PI/180}function a(e,t,r=6371){let s=n(t.latitude-e.latitude),o=n(t.longitude-e.longitude),i=Math.sin(s/2)*Math.sin(s/2)+Math.cos(n(e.latitude))*Math.cos(n(t.latitude))*Math.sin(o/2)*Math.sin(o/2);return 2*r*Math.atan2(Math.sqrt(i),Math.sqrt(1-i))}r.d(t,{q:()=>a})},97667:(e,t,r)=>{"use strict";r.d(t,{S:()=>y});
1var n=r(95155),a=r(39928),s=r(69730),o=r.n(s),i=r(12115),l=r(47650);r(76379);var c=r(8672),d=r(70565);function u({buttonContainerClassName:e,cancelButtonProps:t,cancelText:r,children:a,closeButtonAriaLabel:s,confirmButtonOnly:l=!1,confirmButtonProps:m,confirmText:f,contentContainerProps:h,dialogContainerProps:g,imageAltText:p,imageUrl:b,onCancel:_,onConfirm:y,renderButtons:v=!0,renderCloseButton:x=!1,rootContainerProps:C}){let S=(0,i.useCallback)(()=>_?.(),[_]),k=(0,i.useCallback)(()=>y?.(),[y]);return(0,n.jsx)("div",{className:"sb-dialog--container",...C,children:(0,n.jsxs)("div",{className:"sb-dialog--content",...g,children:[x&&(0,n.jsx)(c.I,{alignment:"right",ariaLabel:s,highContrast:!0,onClick:S}),b&&(0,n.jsx)("img",{alt:p,className:"sb-dialog--dialogImage",src:b}),(0,n.jsxs)("div",{className:"sb-dialog--contentBody",...h,children:[a,v&&f&&(0,n.jsxs)("div",{className:o()("sb-dialog--buttonContainer",e),children:[!l&&r&&(0,n.jsx)(d.V,{type:"button",visualStyle:"textOnly",onClick:S,...t,children:r}),(0,n.jsx)(d.V,{type:"button",visualStyle:"positive",onClick:k,...m,children:f})]})]})]})})}var m=r(36122),f=r(45911),h=r(99251),g=r(41863),p=r.n(g),b=r(99109),_=r(13123);function y({ref:e,children:t,heading:r,allowBackgroundScroll:s=!1,inline:g,hideBackground:v,isLoading:x,cancelButton:C,confirmButton:S,cancelLink:k,confirmLink:j,reverseButtonOrder:L,onMask:M,onConfirm:O,onCancel:N,onAction:A,dir:I,size:T,renderCloseButton:B,role:w,autoFocusCloseButton:F=!0,headingId:D,descriptionId:P,...E}){let H=(0,a.u5)({self:(0,a.UH)(e),dialog:(0,a.UH)(null),closeButtonWrapper:(0,a.UH)(null),closeButton:(0,a.UH)(null)});(0,m.sM)(()=>(function(e){let[t,r]=(0,a.nb)(e);if(!t)return;let{self:n,dialog:s}=r,o=s.firstElementChild;return f.os.timeline().fromTo(n,{autoAlpha:0},{autoAlpha:1}).fromTo(o,{y:50},{y:0,clearProps:"y, autoAlpha",ease:h.A.vinnieInOut},"<")})(H),[H]),(0,a.p0)(async()=>(function(e){let[t,r]=(0,a.nb)(e);if(!t)return;let{self:n}=r;return f.os.to(n,{opacity:0,duration:.2})})(H)),(0,i.useEffect)(()=>{B&&F&&H.closeButton.current?.focus()},[]);let{onConfirmClick:q,onMaskClick:W,onCancelClick:z}=function({onConfirm:e,onMask:t,onCancel:r,onAction:n}){let a=(0,i.useCallback)(()=>{e?.(),n?.()},[n,e]);return{onConfirmClick:a,onMaskClick:(0,i.useCallback)(()=>{t?.(),n?.()},[n,t]),onCancelClick:(0,i.useCallback)(()=>{r?.(),n?.()},[n,r])}}({onMask:M,onConfirm:O,onCancel:N,onAction:A});(0,_.y)(!s&&!g,H.self);let U=(0,n.jsxs)("div",{className:o()(p().O01DialogContent,{[p().large]:"large"===T}),ref:H.self,dir:I,children:[!v&&(0,n.jsx)("div",{className:p().mask,onClick:W,"data-testid":"mask"}),(0,n.jsx)("div",{role:w??"dialog",ref:H.dialog,"aria-modal":"true","aria-labelledby":D,"aria-describedby":P,children:(0,n.jsxs)(u,{renderButtons:!1,...E,children:[(r||B)&&(0,n.jsxs)("div",{className:p().header,children:[r,B&&(0,n.jsx)("div",{className:p().closeButtonWrapper,ref:H.closeButtonWrapper,children:(0,n.jsx)(c.I,{onClick:z,ref:H.closeButton})})]}),t,(C||S||k||j)&&(0,n.jsxs)("div",{className:o()(p().buttonContainer,{[p().reverseButtonOrder]:L}),children:[C?.cancelText&&(0,n.jsx)(d.V,{onClick:z,type:"button",visualStyle:"textOnly",className:p().button,disabled:x,...C.cancelButtonProps,children:C.cancelText}),S?.confirmText&&(0,n.jsx)(d.V,{onClick:q,type:"button",visualStyle:"positive",className:p().button,loading:x,disabled:x,...S.confirmButtonProps,children:S.confirmText}),k?.cancelLinkHref&&(0,n.jsx)(b.M02Link,{href:k.cancelLinkHref,...k.cancelLinkProps,onClick:z,visualStyle:"textOnly",className:p().cancelLink,children:k.cancelLinkText}),j?.confirmLinkHref&&(0,n.jsx)(b.M02Link,{href:j.confirmLinkHref,...j.confirmLinkProps,onClick:z,visualStyle:"positive",children:j.confirmLinkText})]})]})})]});return g?U:(0,l.createPortal)(U,document.body)}},99109:(e,t,r)=>{"use strict";r.r(t),r.d(t,{M02Link:()=>d});var n=r(95155),a=r(50910),s=r(12115),o=r(59359),i=r.n(o),l=r(4497),c=r(99658);function d({ref:e,children:t,href:r,color:o,visualStyle:u,disabled:m,...f}){let h=(0,a.c)(),g=(0,s.useMemo)(()=>(r||"").startsWith("http"),[r]),p=(0,s.useMemo)(()=>(r||"").startsWith("tel:"),[r]),b=(0,s.useMemo)(()=>(r||"").startsWith("mailto:"),[r]),_=(0,c.A)().prefixUrl(r),y=(0,s.useMemo)(()=>
1{if(!m)return g||p||b?r:_},[m,r,g,_,p,b]),v=(0,s.useMemo)(()=>({variant:"textLink"===u?"regular":"semi-bold",...f.labelProps}),[f.labelProps,u]),x=(0,s.useMemo)(()=>"_blank"===f.target,[f.target]);return(0,n.jsxs)(l.f,{href:y,color:o,ref:e,visualStyle:u,tag:"a",disabled:m,labelProps:v,...f,rel:x?"noopener noreferrer":f.rel,children:[t,x&&(0,n.jsxs)("span",{className:i().visuallyHidden,children:[", ",h("link_opensInNewTab")]})]})}},99251:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(45911),a=r(14451);let s={jorisOut:void 0,jorisInOut:void 0,vinnieInOut:void 0};n.Ay.registerPlugin(a.A),s.vinnieInOut=a.A.create("vinnieInOut","M0,0 C0.2,0 0,1 1,1"),s.jorisInOut=a.A.create("jorisInOut","M0,0 C0.3,0 0.25,1 1,1"),s.jorisOut=a.A.create("jorisOut","M0,0 C0.1,0.495 0.105,0.715 0.25,0.845 0.405,0.978 0.505,1 1,1");let o=s}}]);

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.