1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,903122,260604,251157,735448,390060,538348,349395,e=>{"use strict";var t=e.i(843476),i=e.i(91407),o=e.i(567016);let r={Default:{textColor:"Colour/Neutral/0",iconColor:"Colour/Neutral/0",borderColor:"Border/Primary"}};var a=e.i(271645);e.i(257620);var n=e.i(322831),s=e.i(426377),l=e.i(200766),d=e.i(457410),c=e.i(473272);let u={target:"_blank",rel:"noopener noreferrer"},h={restaurantSoftware:"layouts.auth.restaurantSoftware",restaurantLogin:"layouts.auth.restaurantLogin"},p=({action:e,isActive:i=!0,stateColorOverrides:o})=>{let{t:r}=(0,n.useTranslation)(),[p,g]=(0,a.useState)(!1),b=(0,a.useRef)(null),m=(0,a.useCallback)(()=>{g(e=>!e)},[]),f=(0,a.useCallback)(()=>{g(!1)},[]);(0,a.useEffect)(()=>{i||f()},[f,i]);let x=e.items.map(e=>({label:r(h[e.id]),href:e.href,hrefAttrs:u,onPress:f}));return(0,t.jsxs)(s.Box,{position:"relative",children:[(0,t.jsx)(s.Box,{ref:b,children:(0,t.jsx)(l.Button,{label:r("layouts.auth.forBusiness"),variant:"Ghost",rightIcon:p?d.icons["arrow-up-01"]:d.icons["arrow-down-01"],onPress:m,stateColorOverrides:o,accessibilityLabel:r("layouts.auth.forBusiness"),accessibilityHint:r("layouts.header.forBusinessHint"),accessibilityState:{expanded:p},"aria-expanded":p,"aria-haspopup":"menu"})}),p?(0,t.jsx)(c.ListDropdown,{maxWidth:180,position:"absolute",top:48,right:0,zIndex:20,onOutsidePress:f,outsideTreatAsInside:[b],list:x,accessibilityLabel:r("layouts.auth.forBusiness")}):null]})};p.displayName="DesktopSiteHeaderBusinessMenu";let g={vouchers:"layouts.auth.vouchers",bookings:"bottomTabs.bookings",saved:"bottomTabs.saved"},b={vouchers:"layouts.header.vouchersHint",bookings:"layouts.header.bookingsHint",saved:"layouts.header.savedHint"},m=({action:e,stateColorOverrides:i})=>{let{t:o}=(0,n.useTranslation)(),r=o(g[e.id]),a="current"===e.currentPageTreatment;return(0,t.jsx)(l.Button,{label:r,variant:"Ghost",href:a?void 0:e.href,isDisabled:a,focusableWhenDisabled:a,stateColorOverrides:i,accessibilityLabel:r,accessibilityHint:a?void 0:o(b[e.id]),...a?{"aria-current":"page"}:{}})};m.displayName="DesktopSiteHeaderLinkAction";var f=e.i(39297);let x=({action:e,userId:i,onAccountSettings:o,onNavigate:r,onBuyVoucher:a,onFaqs:n,onContact:s,onLogout:l})=>{let d=e.policy.businessCallout.find(e=>"businessLogin"===e.id),c=e.policy.businessCallout.find(e=>"businessLearnMore"===e.id);return(0,t.jsx)(f.ProfileDropdown,{enabled:!0,userId:i,isCurrentPage:"current"===e.currentPageTreatment,businessLoginHref:d?.href,businessLearnMoreHref:c?.href,onAccountSettings:o,onMyVouchers:()=>r(e.policy.myVouchers.href),onBuyVoucher:a,onFaqs:n,onContact:s,onLogout:l})};x.displayName="DesktopSiteHeaderProfile";let y=({labelKey:e,onPress:i,stateColorOverrides:o})=>{let{t:r}=(0,n.useTranslation)(),a=r(e);return(0,t.jsx)(l.Button,{label:a,variant:"Outline",onPress:i,stateColorOverrides:o,accessibilityLabel:a})};y.displayName="DesktopSiteHeaderCommandButton";let v={vouchers:{group:"primary",homePlacement:"crossfade"},forBusiness:{group:"primary",homePlacement:"crossfade"},login:{group:"commands",homePlacement:"crossfade"},signUp:{group:"commands",homePlacement:"crossfade"},bookings:{group:"primary",homePlacement:"crossfade"},saved:{group:"primary",homePlacement:"crossfade"},profile:{group:"primary",homePlacement:"persistent"}},S=e=>v[e].group,k=e=>v[e];e.s(["getDesktopSiteHeaderActionConfig",0,k,"getDesktopSiteHeaderActionGroup",0,S,"isHomePersistentSiteHeaderAction",0,e=>"persistent"===v[e].homePlacement],260604);let C={vouchers:{...k("vouchers"),render:(e,i)=>(0,t.jsx)(m,{action:e,stateColorOverrides:i.stateColorOverrides},e.id)},forBusiness:{...k("forBusiness"),render:(e,i)=>(0,t.jsx)(p,{action:e,isActive:i.isActive,stateColorOverrides:i.stateColorOverrides},e.id)},login:{...k("login"),render:(e,i)=>(0,t.jsx)(y,{labelKey:"layouts.auth.login",onPress:i.onLogin,stateColorOverrides:i.stateColorOverrides},e.id)},signUp:{...k("signUp"),render:(e,i)=>(0,t.jsx)(y,{labelKey:"layouts.auth.signup",onPress:i.onSignUp,stateColorOverrides:i.stateColorOverrides},e.id)},bookings:{...k("bookings"),render:(e,i)=>(0,t.jsx)(m,{action:e,stateColorOverrides:i.stateColorOverrides},e.id)},saved:{...k("saved"),render:(e,i)=>(0,t.jsx)(m,{action:e,stateColorOverrides:i.stateColorOverrides},e.id)},profile:{...k("profile"),render:(e,i)=>(0,t.jsx)(x,{action:e,userId:i.userId??null,onAccountSettings:i.onAccountSettings,onNavigate:i.onNavigate,onBuyVoucher:i.onBuyVoucher,onFaqs:i.onFaqs,onContact:i.onContact,onLogout:i.onLogout},e.id)}},w={desktopSm:{gap:"Space/2xs"},desktop:{gap:"Space/3xl"}},T={desktopSm:{gap:"Space/none"},desktop:{gap:"Space/xl"}},I={desktopSm:{gap:"Space/2xs"},desktop:{gap:"Space/sm"}},P=({model:e,appearance:i="standard",isActive:a=!0,stateColorOverrides:n})=>{let{actions:s,...l}=e;if(0===s.length)return null;let d={...l,isActive:a,stateColorOverrides:n??("inverse"===i?r:void 0)},c=s.reduce((e,t)=>
1{let i=S(t.id),o=e.at(-1);return o?.kind===i?o.actions.push(t):e.push({kind:i,actions:[t]}),e},[]);return(0,t.jsx)(o.ResponsiveBox,{responsiveStyle:w,flexDirection:"row",alignItems:"center",flexShrink:0,children:c.map((e,i)=>(0,t.jsx)(o.ResponsiveBox,{responsiveStyle:"commands"===e.kind?I:T,flexDirection:"row",alignItems:"center",flexShrink:0,children:e.actions.map(e=>{let t,i;return t=e,i=d,C[t.id].render(t,i)})},`${e.kind}-${i}`))})};P.displayName="DesktopSiteHeaderActions",e.s(["DesktopSiteHeaderActions",0,P],251157);var A=e.i(256036),B=e.i(756102);let O=({href:e="/",appearance:i="standard"})=>{let{t:o}=(0,n.useTranslation)();return(0,t.jsx)(A.BlockLink,{href:e,accessibilityLabel:o("layouts.header.homeLabel"),accessibilityHint:o("layouts.header.homeHint"),children:(0,t.jsx)(B.Logo,{variant:"wordmark",width:144,height:40,color:"inverse"===i?"Colour/Neutral/0":"Colour/Brand Primary/500"})})};O.displayName="DesktopSiteHeaderBrandLink",e.s(["DesktopSiteHeaderBrandLink",0,O],735448);var j=e.i(595847),L=e.i(267777);e.i(924856);var N=e.i(446153),D=e.i(648235),H=e.i(618566);e.i(262824);var V=e.i(310308);let E={none:[],authenticatedPromotion:["vouchers","forBusiness","profile"],publicPromotion:["vouchers","forBusiness","login","signUp"],authenticated:["bookings","saved","profile"]},R={home:{authenticated:"authenticated",unauthenticated:"publicPromotion"},firstTimeHome:{authenticated:"authenticatedPromotion",unauthenticated:"publicPromotion"},account:{authenticated:"authenticated",unauthenticated:"none",currentAction:"profile"},marketingApp:{authenticated:"authenticated",unauthenticated:"publicPromotion"},marketingVouchers:{authenticated:"authenticated",unauthenticated:"publicPromotion",currentAction:"vouchers"},marketingContactUs:{authenticated:"authenticated",unauthenticated:"publicPromotion"},utility:{authenticated:"authenticated",unauthenticated:"publicPromotion"},search:{authenticated:"authenticated",unauthenticated:"publicPromotion"},bookings:{authenticated:"authenticated",unauthenticated:"none",currentAction:"bookings"},bookingDetails:{authenticated:"authenticated",unauthenticated:"none"},savedRestaurants:{authenticated:"authenticated",unauthenticated:"none",currentAction:"saved"},awards:{authenticated:"authenticated",unauthenticated:"publicPromotion"},specialOffers:{authenticated:"authenticated",unauthenticated:"publicPromotion"}},_={vouchers:{id:"vouchers",kind:"link",href:V.WEB_NAVIGATION_DESTINATIONS.publicVouchers,external:!1},bookings:{id:"bookings",kind:"link",href:V.WEB_NAVIGATION_DESTINATIONS.bookings,external:!1},saved:{id:"saved",kind:"link",href:V.WEB_NAVIGATION_DESTINATIONS.savedRestaurants,external:!1}},W=[{id:"restaurantSoftware",href:V.WEB_NAVIGATION_DESTINATIONS.restaurantSoftware,external:!0},{id:"restaurantLogin",href:V.WEB_NAVIGATION_DESTINATIONS.restaurantLogin,external:!0}],G={myVouchers:{id:"myVouchers",kind:"link",href:V.WEB_NAVIGATION_DESTINATIONS.myVouchers,external:!1},businessCallout:[{id:"businessLogin",kind:"link",href:V.WEB_NAVIGATION_DESTINATIONS.restaurantLogin,external:!0},{id:"businessLearnMore",kind:"link",href:V.WEB_NAVIGATION_DESTINATIONS.restaurantSoftware,external:!0}]},M=(e,t)=>({...e,currentPageTreatment:t===e.id?"current":"navigate"}),z={vouchers:e=>M(_.vouchers,e),bookings:e=>M(_.bookings,e),saved:e=>M(_.saved,e),forBusiness:()=>({id:"forBusiness",kind:"menu",items:W,currentPageTreatment:"notApplicable"}),login:()=>({id:"login",kind:"command",currentPageTreatment:"notApplicable"}),signUp:()=>({id:"signUp",kind:"command",currentPageTreatment:"notApplicable"}),profile:e=>({id:"profile",kind:"slot",policy:G,currentPageTreatment:"profile"===e?"current":"notApplicable"})};e.i(500123);var U=e.i(464287),F=e.i(919125),q=e.i(864248),K=e.i(741069);let $={voucherBaseUrl:"https://www.voucherplan.co.za",voucherEventId:"a56700bebd40499c5cb2ad1b53fd3011"},X=(e,t)=>{let i=(0,a.useCallback)(e=>{(0,q.openBuyVoucherUrlInNewTab)(e)},[]);return(0,K.useVoucherActions)({userId:e,enabled:t,config:$,onOpenBuyVoucher:i})};e.s(["useVoucherScreenActions",0,X],390060);let Q={account:"/"},J=({context:e,authState:t,userId:i})=>{let o=(0,H.useRouter)(),r=(0,U.useAuthReady)(),n=(0,D.useAuthStore)(e=>e.isAuthenticated),s=(0,D.useAuthStore)(e=>e.userId),l=(0,D.useAuthStore)(e=>e.reset),d=t??(r?n&&s?"authenticated":"unauthenticated":"loading"),c="authenticated"===d,u=c?i??s:null,h=X(u,c),p=Q[e],g=(0,a.useMemo)(()=>(({context:e,authState:t})=>{if("loading"===t)return[];let i=R[e];return E[i[t]].map(e=>{let t;return t=i.currentAction,z[e](t)})})({context:e,authState:d}),[d,e]),b=(0,a.useCallback)(()=>{(0,L.getAuthService)().signIn({onError:e=>N.log.error("[DesktopSiteHeader] Login failed",e)})},[]),m=(0,a.useCallback)(()=>{(0,L.getAuthService)().signUp({onError:e=>N.log.error("[DesktopSiteHeader] Sign up failed",e)})},[]),f=(0,a.useCallback)(async()=>{(await (0,F.clearAuthSession)(),l(),p)?o.replace(p):o.refresh()},[p,l,o]),x=(0,a.useCallback)(e=>{o.push((0,j.buildProfilePath)(e))},[o]),y=(0,a.useCallback)(e=>{x(e)},[x]),v=(0,a.useCallback)(e=>{o.push(e)},[o]),S=(0,a.useCallback)(()=>{y("editProfile")},[y]),k=(0,a.useCallback)(()=>{o.push(V.WEB_NAVIGATION_DESTINATIONS.faq)},[o]),C=(0,a.useCallback)(()=>{o.push(V.WEB_NAVIGATION_DESTINATIONS.contact)},[o]);return{actions:g,userId:u,onLogin:b,onSignUp:m,onLogout:f,onBuyVoucher:h.onBuyVoucherPress,onAccountSettings:S,onNavigate:v,onFaqs:k,onContact:C}};e.s(["useDesktopSiteHeader",0,J],538348);let Y=({context:e,authState:o,userId:r,appearance:a="standard",homeHref:n="/",withBorder:s=!0,barType:l="default",layout:d})=>{let c=J({context:e,authState:o,userId:r}),u=d?.horizontalPaddingPx,h="number"==typeof d?.contentMaxWidth,p=null!=u||h?"Space/none":"Space/6xl",g=null!=u?{paddingLeft:u,paddingRight:u}:void 0;return(0,t.jsxs)(i.GlobalTopBar,{type:l,withBorder:s,contentMaxWidth:d?.contentMaxWidth??("account"===e?"full":void 0),style:{overflow:"visible",zIndex:10},children:[(0,t.jsx)(i.GlobalTopBar.Left,{paddingLeft:p,style:g?{paddingLeft:u}:void 0,children:(0,t.jsx)(O,{href:n,appearance:a})}),(0,t.jsx)(i.GlobalTopBar.Right,{gap:"Space/3xl",flex:d?.rightFlex,paddingRight:p,position:"relative",style:{overflow:"visible",...g?{paddingRight:u}:{}},children:(0,t.jsx)(P,{model:c,appearance:a})})]})};Y.displayName="DesktopSiteHeader",e.s(["DesktopSiteHeader",0,Y],349395),e.s([],903122)},382290,e=>{"use strict";e.s(["buildVoucherPartnersSearchQueryString",0,()=>"partners=1","isVoucherPartnersSearchQueryParam",0,e=>e?.trim()==="1"])},748459,e=>{e.q("/_next/static/media/plate.1i6-_27pugjoy.webp")},422004,e=>{"use strict";var t=e.i(843476),i=e.i(271645),o=e.i(402321),r=e.i(350736),a=e.i(649450),n=e.i(546002),s=e.i(393784);let l=e=>e?i.default.isValidElement(e)?e:(0,t.jsx)(e,{}):null,d=i.default.forwardRef(function(e,d){let{animatedScrollOffset:c,contentContainerStyle:u,data:h,drawDistance:p,estimatedItemSize:g,extraData:b,getItemType:m,horizontal:f=!1,ItemSeparatorComponent:x,keyExtractor:y,ListEmptyComponent:v,ListFooterComponent:S,ListHeaderComponent:k,numColumns:C=1,onEndReached:w,onEndReachedThreshold:T,onLayout:I,onScroll:P,onViewableItemsChanged:A,overrideItemLayout:B,recycleItems:O=!1,refreshControl:j,refreshing:L,renderItem:N,scrollEnabled:D,scrollEventThrottle:H,showsHorizontalScrollIndicator:V,showsVerticalScrollIndicator:E,stickyHeaderIndices:R,style:_,viewabilityConfig:W,webScrollMode:G="window",...M}=e,z="web"===a.Platform.OS,U=z&&!f&&"window"===G,F=(0,i.useMemo)(()=>h??[],[h]),q=(0,i.useRef)(null),K=(0,i.useRef)(null),$=(0,i.useMemo)(()=>{var e;let t,i=s.StyleSheet.flatten(_);return z?f?{width:"100%",...i}:(e=f?"container":G,t=s.StyleSheet.flatten(_),"window"===e?{width:"100%",alignSelf:"stretch",backgroundColor:t?.backgroundColor}:t?{flex:t.flex??1,flexGrow:t.flexGrow,flexShrink:t.flexShrink,minHeight:t.minHeight??0,height:t.height??"100%",minWidth:t.minWidth,alignSelf:t.alignSelf,backgroundColor:t.backgroundColor,width:"100%"}:{flex:1,minHeight:0,width:"100%"}):f?{width:"100%",...i}:i??{flex:1}},[f,z,_,G]),X=(0,i.useMemo)(()=>{let e=s.StyleSheet.flatten(_);if(!z)return f?{width:"100%",...e}:e??{flex:1};let t=U||!1!==D?void 0:{overflow:"hidden"};return f||U?{width:"100%",...t,...f&&!1===V?{scrollbarWidth:"none"}:{}}:{flex:1,minHeight:0,height:"100%",width:"100%",...t}},[f,z,D,V,_,U]),Q=(0,i.useCallback)(e=>N?N({item:e.item,index:e.index,target:"Cell",extraData:e.extraData??b}):null,[b,N]),J=(0,i.useMemo)(()=>
1{if(x)return({leadingItem:e})=>(0,t.jsx)(x,{leadingItem:e})},[x]),Y=(0,i.useMemo)(()=>{if(B)return(e,t,i,o)=>{B(e,t,i,o,b)}},[b,B]);(0,i.useImperativeHandle)(d,()=>({scrollToOffset:({offset:e,animated:t=!0})=>{q.current?.scrollToOffset({offset:e,animated:t})},scrollToIndex:({index:e,animated:t=!0,viewOffset:i,viewPosition:o})=>{q.current?.scrollToIndex({index:e,animated:t,viewOffset:i,viewPosition:o})},getScrollableNode:()=>q.current?.getScrollableNode()}),[]);let Z=c?r.AnimatedLegendList:o.LegendList,ee=(0,t.jsx)(Z,{...M,ref:q,horizontal:f,data:F,renderItem:Q,keyExtractor:y?(e,t)=>String(y(e,t)):void 0,numColumns:C,estimatedItemSize:g,drawDistance:p,extraData:b,getItemType:m?(e,t)=>String(m(e,t)):void 0,overrideItemLayout:Y,ListHeaderComponent:k?l(k):void 0,ListFooterComponent:S?l(S):void 0,ListEmptyComponent:v??void 0,ItemSeparatorComponent:J,contentContainerStyle:u,style:X,useWindowScroll:U||void 0,onLayout:z?void 0:I,onScroll:P,scrollEventThrottle:z?void 0:H,...!z&&void 0!==D?{scrollEnabled:D}:{},showsHorizontalScrollIndicator:V,showsVerticalScrollIndicator:E,stickyHeaderIndices:R,onEndReached:w,onEndReachedThreshold:T,onViewableItemsChanged:A,viewabilityConfig:W??void 0,refreshing:L??void 0,refreshControl:j,recycleItems:O,...c?{sharedValues:{scrollOffset:c}}:void 0});return z?(0,t.jsx)(n.View,{ref:K,style:$,onLayout:I?e=>{I(e)}:void 0,children:ee}):ee});d.displayName="List",e.s(["List",0,d],422004)},824830,e=>{"use strict";var t=e.i(843476),i=e.i(649450),o=e.i(426377),r=e.i(959297),a=e.i(794704),n=e.i(614920);e.i(525501);var s=e.i(621903);let l={whiteSpace:"nowrap",overflow:"visible"},d=({label:e,leadingIcon:d,trailingIcon:c,variant:u="neutral",size:h,isSelected:p=!1,showSelectionIndicator:g,isDisabled:b,onPress:m,href:f,hrefAttrs:x,accessibilityLabel:y,accessibilityHint:v,...S})=>{let k=(0,s.useTheme)(),C=!e&&(d||c),w=!!m||!!f,T=b?void 0:f,I=y||e||(C&&(d||c)?`${d||c} button`:"Pill button"),P=k.pillVariants[u],A=h?k.pillSizeVariants[h]:k.pillSizeVariants.sm,B={...S,...w?{accessible:!0,accessibilityRole:f?"link":"button",accessibilityLabel:I,accessibilityHint:v??(f?"Opens this filter":p?"Currently selected option":"Tap to select this option"),accessibilityState:{disabled:b,busy:!1,selected:p}}:{},...w?{onPress:m,disabled:b}:{},...T?{href:T,hrefAttrs:x}:{}},O=T?n.Global.BlockLink:w?n.Global.Pressable:n.Global.Box,j=n=>(0,t.jsxs)(o.Box,{flexDirection:"row",alignItems:"center",justifyContent:"center",borderRadius:C?"Radius/radius-full":A?.borderRadius||"Radius/radius-full",gap:"Space/2xs",backgroundColor:n.backgroundColor,width:A?.width,height:A?.height,paddingVertical:"Space/none",style:{paddingHorizontal:C?k.spacing["Space/xs"]:k.spacing["padding-xl"]},position:"relative",children:[d&&(0,t.jsx)(r.Icon,{icon:d,size:k.spacing["Space/lg"],color:n.iconColor}),e&&(0,t.jsx)(a.Typography,{variant:"Label/label-md/medium",color:n.textColor,textAlign:"center",numberOfLines:"web"===i.Platform.OS?void 0:1,ellipsizeMode:"tail",lineHeight:18,style:"web"===i.Platform.OS?l:void 0,children:e}),c&&(0,t.jsx)(r.Icon,{icon:c,size:k.spacing["Space/lg"],color:n.iconColor}),(g??p)&&(0,t.jsx)(o.Box,{width:k.spacing["Space/xs"],height:k.spacing["Space/xs"],borderRadius:"Radius/radius-full",backgroundColor:n.selectionIndicatorColor,borderWidth:k.borderWidths["Width/lg"],borderColor:"Background/Primary",position:"absolute",top:k.spacing["Space/none"],right:k.spacing["Space/none"]})]});return w?(0,t.jsx)(O,{...B,children:({pressed:e,hovered:t})=>{let i=e?"pressed":t?"hover":"",o=i?`${u}_${i}`:u;return j(o in k.pillVariants?k.pillVariants[o]:P)}}):(0,t.jsx)(O,{...B,children:j(P)})};d.displayName="Pill",e.s(["Pill",0,d])},113994,e=>{"use strict";var t=e.i(843476),i=e.i(649450),o=e.i(546002),r=e.i(113133);e.i(525501);var a=e.i(621903);e.s(["Screen",0,({children:e,edges:n=[],style:s,...l})=>{let{colors:d}=(0,a.useTheme)(),{top:c,bottom:u,left:h,right:p}=(0,r.useSafeAreaInsets)();return"web"===i.Platform.OS?e:(0,t.jsx)(o.View,{style:[{flex:1,backgroundColor:d["Background/Primary"]},s,{paddingTop:n.includes("top")?c:0,paddingBottom:n.includes("bottom")?u:0,paddingLeft:n.includes("left")?h:0,paddingRight:n.includes("right")?p:0}],...l,children:e})}])},698709,e=>{"use strict";var t=e.i(843476),i=e.i(271645),o=e.i(935685),r=e.i(426377),a=e.i(959297),n=e.i(457410);let s=(0,i.memo)(({isChecked:e=!1,size:i="Medium",onValueChange:s,...l})=>{let d=e?"Checked toggle":"Unchecked toggle",c=e?"Currently selected option":"Tap to select this option",u=e?"Backgroun
1d/Brand":"Background/Neutral alt",h="Medium"==i?24:32,p="Medium"==i?2:3;return(0,t.jsx)(o.Pressable,{onPress:()=>s?.(!e),accessible:!0,accessibilityRole:"switch",accessibilityState:{checked:e},accessibilityLabel:d,accessibilityHint:c,"aria-checked":e,"aria-label":d,hitSlop:8,...l,children:(0,t.jsx)(r.Box,{width:8+1.5*h,height:h,borderRadius:"Radius/radius-full",alignItems:e?"flex-end":"flex-start",justifyContent:"center",borderColor:u,borderWidth:p,backgroundColor:u,children:(0,t.jsx)(a.Icon,{icon:n.icons.dot,size:h-2*p,color:"Colour/Neutral/0"})})})});e.s(["Toggle",0,s])},257703,e=>{"use strict";var t=e.i(843476),i=e.i(271645),o=e.i(469049),r=e.i(649450),a=e.i(935685),n=e.i(546002),s=e.i(348364),s=s,l=e.i(163358),d=e.i(113133),c=e.i(426377);e.i(525501);var u=e.i(621903),h=e.i(529781);let p=e=>e?e.props.children??null:null,g=({arrowOffsetX:e,accessibilityLabel:i,title:o,description:r,close:a,titleContent:n,descriptionContent:s})=>{let l=(0,u.useTheme)().colors["Background/Primary"];return(0,t.jsxs)(c.Box,{width:"100%",accessible:!0,accessibilityRole:"text",accessibilityLabel:i,children:[(0,t.jsx)(c.Box,{width:"100%",alignItems:null==e?"center":"flex-start",style:null==e?void 0:{marginLeft:e},children:(0,t.jsx)(h.TooltipPopperArrow,{direction:"bottom",arrowColor:l})}),(0,t.jsxs)(c.Box,{backgroundColor:"Background/Primary",borderRadius:"Radius/lg",padding:"Space/md",width:"100%",flexDirection:"row",alignItems:"flex-start",elevationKey:"Custom/Tooltip",children:[(0,t.jsxs)(c.Box,{flex:1,gap:"Space/2xs",paddingRight:"Space/2xs",children:[o?n(p(o)):null,r?s(p(r)):null]}),a]})]})};var b=e.i(409200),m=e.i(794704),f=e.i(91909),x=e.i(457410);let y=["callout","title","description","close"],v=Object.assign(({children:e})=>(0,t.jsx)(t.Fragment,{children:e}),{[b.SLOT]:"callout"});v.displayName="TooltipOverlay.Callout";let S=(0,b.createSlotComponent)("TooltipOverlay.Title","title"),k=(0,b.createSlotComponent)("TooltipOverlay.Description","description"),C=Object.assign(({accessibilityLabel:e,accessibilityHint:i="Closes the tip",onDismiss:o})=>o?(0,t.jsx)(f.IconButton,{icon:x.icons["cancel-01"],size:"ExtraSmall",variant:"Ghost",onPress:o,accessibilityLabel:e,accessibilityHint:i}):null,{[b.SLOT]:"close"});C.displayName="TooltipOverlay.Close";let w=({children:e})=>(0,t.jsx)(m.Typography,{variant:"Text/text-md/semibold",color:"Text/Primary",children:e}),T=({children:e})=>(0,t.jsx)(m.Typography,{variant:"Text/text-sm/regular",color:"Text/Primary",children:e});var I=e.i(393784);let P=I.StyleSheet.create({backdrop:{...I.StyleSheet.absoluteFill,zIndex:1},backdropPressable:{...I.StyleSheet.absoluteFill,zIndex:1},highlightLayer:{position:"absolute",zIndex:2},calloutLayer:{position:"absolute",zIndex:3}}),A=e=>{if("string"==typeof e||"number"==typeof e)return String(e)},B=e=>e?e.props.children??null:null,O=8,j=16,L=({visible:e,onDismiss:u,children:h,overlayAccessibilityLabel:p="Dismiss highlight",calloutWidth:m="anchor",calloutHorizontalInset:f=j,highlightStyle:x="none",calloutGap:v=O})=>{let{width:S}=(0,l.useWindowDimensions)(),{top:k,bottom:C}=(0,d.useSafeAreaInsets)(),I=(0,i.useRef)(null),[L,N]=(0,i.useState)(null),[D,H]=(0,i.useState)(null),{slots:V,filteredChildren:E}=(0,b.useSlotsWithChildren)(h,y),R="android"===r.Platform.OS?k:0,_=(0,i.useMemo)(()=>((e,t,i)=>{let o=e?.props?.accessibilityLabel;if(o)return o;let r=A(B(t)),a=A(B(i));if(r||a)return[r,a].filter(Boolean).join(". ")})(V.callout,V.title,V.description),[V.callout,V.description,V.title]),W=(0,i.useCallback)(()=>{u()},[u]),G=(0,i.useMemo)(()=>V.close?(0,i.cloneElement)(V.close,{onDismiss:W}):null,[W,V.close]),M=(0,i.useCallback)(()=>{let e=I.current;e?.measureInWindow?.((e,t,i,o)=>{let r,a={x:(r={x:e,y:t,width:i,height:o}).x,y:r.y,width:r.width>0?r.width:D?.width??r.width,height:r.height>0?r.height:D?.height??r.height};a.width<=0||a.height<=0||N(e=>e&&e.x===a.x&&e.y===a.y&&e.width===a.width&&e.height===a.height?e:a)})},[D]),z=(0,i.useCallback)(t=>{let{width:i,height:o}=t.nativeEvent.layout;i>0&&o>0&&H({width:i,height:o}),e&&null==L&&M()},[M,L,e]);(0,i.useEffect)(()=>{if(!e)return void N(null);M();let t=requestAnimationFrame(M),i=s.default.runAfterInteractions(M);return()=>{cancelAnimationFrame(t),i.cancel()}},[e,M,D]);let U=(0,i.useMemo)(()=>
1{if(!L)return null;if("anchor"===m)return{left:L.x,width:L.width,arrowOffsetX:void 0};let e=Math.max(0,S-2*f);return{left:f,width:e,arrowOffsetX:L.x+L.width/2-f-6}},[f,m,L,S]),F=e&&null!=L&&null!=U,q="surface"===x?(0,t.jsx)(c.Box,{backgroundColor:"Background/Primary",borderRadius:"Radius/radius-full",paddingHorizontal:"Space/3xs",paddingVertical:"Space/4xs",elevationKey:"Global/elevation-01",alignSelf:"flex-start",children:E}):E,K="android"===r.Platform.OS?-22:0,$=null!=L?("surface"===x?L.y-4:L.y)+R+K:0,X=null!=L?"surface"===x?L.x-6:L.x:0,Q=null!=L?L.y+L.height+4*("surface"===x)+v+R+K:0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.View,{ref:I,onLayout:z,collapsable:!1,style:F?{opacity:0}:void 0,pointerEvents:F?"none":"auto",accessibilityElementsHidden:F,importantForAccessibility:F?"no-hide-descendants":"auto",children:E}),F?(0,t.jsx)(o.Modal,{visible:!0,transparent:!0,animationType:"fade",statusBarTranslucent:"android"===r.Platform.OS,onRequestClose:W,onDismiss:W,children:(0,t.jsxs)(n.View,{style:{flex:1},pointerEvents:"box-none",children:[(0,t.jsx)(c.Box,{style:P.backdrop,backgroundColor:"Overlay/Overlay Inverse 30",pointerEvents:"none"}),(0,t.jsx)(a.Pressable,{style:P.backdropPressable,onPress:W,accessible:!0,accessibilityRole:"button",accessibilityLabel:p}),(0,t.jsx)(n.View,{pointerEvents:"box-none",style:[P.highlightLayer,{top:$,left:X,width:"none"===x?L.width:void 0,height:"none"===x?L.height:void 0}],children:(0,t.jsx)(n.View,{pointerEvents:"auto",collapsable:!1,style:{width:"100%",height:"100%"},children:q})}),(0,t.jsx)(n.View,{pointerEvents:"box-none",style:[P.calloutLayer,{top:Q,left:U.left,width:U.width}],children:(0,t.jsx)(a.Pressable,{onPress:W,accessibilityRole:"button",accessibilityLabel:p,style:{width:"100%"},children:(0,t.jsx)(g,{arrowOffsetX:U.arrowOffsetX,accessibilityLabel:_,title:V.title,description:V.description,close:G,titleContent:e=>(0,t.jsx)(w,{children:e}),descriptionContent:e=>(0,t.jsx)(T,{children:e})})})})]})}):null]})};L.displayName="TooltipOverlay";let N=Object.assign(L,{Title:S,Description:k,Close:C,Callout:v});e.s(["TooltipOverlay",0,N],257703)},345728,e=>{"use strict";var t=e.i(446626);let i=e.i(118318).BOTTOM_TAB_RAIL_HEIGHT;e.s(["useBottomNavigationLayoutOffsetPx",0,function(){return i+(0,t.useSafePadding)("Space/4xs","bottom")}])}]);
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.