PageSourceSearch

https://menu.hansimglueck-burgergrill.de/assets/layout-BcnV7Hvd.js

js hansimglueck-burgergrill.de collected 2026-09-26 02:09:17 UTC 15,614 bytes, 1 lines download raw bytes

1import{$ as e,J as t,_ as n,a as r,c as i,p as a,s as o,u as s}from"./components-D1wefH5i.js";import{t as c}from"./dist-DaeuWZpe.js";import{t as l}from"./jsx-runtime-B4SruKU8.js";import{g as u,n as d,t as f,y as p}from"./icon-DeHfuyNK.js";import{a as m,c as h,d as g,i as _,l as v,p as y,r as b,t as x}from"./elements-mE4ZUX9S.js";import{n as S}from"./Button-CjksKwxs.js";import{t as C}from"./AnimatePresence-CLvnPE_C.js";import{t as w}from"./ToggleButton-fdJuczvp.js";import{t as T}from"./href-gLZ7X4dW.js";import{t as E}from"./compiler-runtime-CAe4Upw9.js";import{n as D,r as O,t as k}from"./navigation-D5dgIHSJ.js";import{t as A}from"./MotionConfig-CInhu7NF.js";import{a as j,i as ee,n as te,r as ne,t as M}from"./logo-BonOdoie.js";import{i as N,t as P}from"./xstate-store-react-CeqS-4W3.js";import{n as re,t as F}from"./use-menu-data--NBsQNm2.js";import{n as I}from"./preferences-DZgzxGK-.js";import{n as ie}from"./use-filters-ChThAvri.js";import{r as L,s as R}from"./item-variants-BlFRSDcC.js";import{n as z,r as B,t as V}from"./fitness-menu-BV6jEGoh.js";import{t as H}from"./number-flow-67cDrL4h.js";import{t as U}from"./nutritional-summary-Dpy-kDVL.js";import{t as W}from"./button-c2zzGN98.js";import{t as G}from"./animated-outlet-BVcmrSB1.js";import{t as K}from"./purry-D8iLUuHK.js";import{t as q}from"./helpers-BrZ3rtPZ.js";import{t as J}from"./back-link-gi8S7rrt.js";var Y=E(),X=N({context:{toasts:[]},on:{addToast:(e,t)=>{let n={id:crypto.randomUUID(),message:t.message,createdAt:Date.now()},r=[...e.toasts,n];return r.length>3&&r.shift(),{toasts:r}},removeToast:(e,t)=>({toasts:e.toasts.filter(e=>e.id!==t.id)})}}),ae=e=>{X.trigger.addToast({message:e})},Z=l(),oe=()=>{let e=(0,Y.c)(12),t=a(),n=F(),r=R(n),{nutritionalData:i}=B(),o=n?r:i,s;e[0]===o?s=e[1]:(s=(0,Z.jsx)(U,{nutritionalValues:o,flow:!0}),e[0]=o,e[1]=s);let c;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(c={preventScrollReset:!0},e[2]=c):c=e[2];let l;e[3]!==n||e[4]!==t?(l=T(n?`/:localeOrLocation?/:location?/details/:item/info`:`/:localeOrLocation?/:location?/fitness`,t),e[3]=n,e[4]=t,e[5]=l):l=e[5];let u;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,Z.jsx)(f,{name:`chevron`,className:`rotate-180 !size-8`}),e[6]=u):u=e[6];let d;e[7]===l?d=e[8]:(d=(0,Z.jsx)(g,{className:`size-11 flex items-center justify-center outline-none focus-visible:ring-2 hover:bg-pale rounded`,routerOptions:c,href:l,children:u}),e[7]=l,e[8]=d);let p;return e[9]!==s||e[10]!==d?(p=(0,Z.jsxs)(`div`,{className:`flex items-center h-12.5`,children:[s,d]}),e[9]=s,e[10]=d,e[11]=p):p=e[11],p},se=()=>{let e=(0,Y.c)(12),t=P(I(),ce),{pathname:n}=i(),r=s(),a=re(),o;e[0]===n?o=e[1]:(o=n.endsWith(`/fitness`)||n.endsWith(`/fitness/items`)||n.endsWith(`/filter`)||n.endsWith(`/filter/allergens`)||n.endsWith(`/info`)||n.endsWith(`/info/options`),e[0]=n,e[1]=o);let l=o,u=F(),{items:d}=z(),p;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(p={type:`spring`,bounce:.1,visualDuration:.35},e[2]=p):p=e[2];let m;e[3]!==u||e[4]!==t||e[5]!==l||e[6]!==d||e[7]!==a||e[8]!==r?(m=t&&(0,Z.jsx)(x,{initial:{y:`9rem`},animate:{y:l?`-1.5rem`:u?u?.nutritionalValues?0:`3.5rem`:`1.5rem`},exit:{y:`9rem`},className:`bg-white lg:min-w-sm text-primary p-3 rounded-2xl -mb-4 h-[9rem] overflow-hidden`,children:(0,Z.jsxs)(x,{className:`flex flex-col gap-2.5`,animate:{y:u?-32:0},children:[(0,Z.jsxs)(x,{animate:{opacity:+!u,y:u?-10:0,filter:u?`blur(1px)`:`blur(0px)`},className:`flex justify-between font-medium -mt-1`,children:[(0,Z.jsxs)(`span`,{className:`uppercase flex items-center gap-1`,children:[(0,Z.jsx)(f,{name:`fitness`}),c._({id:`p7_fS2`})]}),(0,Z.jsx)(H,{number:d.length,suffix:` ${c._({id:`qPeFud`,values:{0:d.length}})}`,startFromZero:!0,className:`opacity-60`})]}),(0,Z.jsx)(oe,{}),(0,Z.jsx)(x,{animate:{opacity:+!!u?.nutritionalValues,y:u?.nutritionalValues?0:10,filter:u?.nutritionalValues?`blur(0px)`:`blur(1px)`},children:(0,Z.jsx)(W,{icon:`fitness`,variant:`theme`,className:`shrink-0 w-full`,excludeFromTabOrder:!u?.nutritionalValues,onPress:()=>{if(!u?.nutritionalValues)return;let e=L.getSnapshot().context.selections;V.trigger.addItem({item:u,locationId:a.id,selections:e}),ae(c._({id:`zpFLzz`,values:{0:u.name}})),r(-1)},children:c._({id:`dgAb2R`})})})]})}),e[3]=u,e[4]=t,e[5]=l,e[6]=d,e[7]=a,e[8]=r,e[9]=m):m=e[9];let h;return e[10]===m?h=e[11]:(h=(0,Z.jsx)(A,{transition:p,children:(0,Z.jsx)(`div`,{className:`fixed bottom-0 z-20 inset-x-0 lg:left-auto lg:right-2`,children:(0,Z.jsx)(C,{initial:!1,children:m})})}),e[10]=m,e[11]=h),h};function ce(e){return e.context.fitnessMode}function le(...e){return K(ue,e)}function ue(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}var Q=e(t(),1),de=v(S),fe=v(d),pe={initial:{opacity:0,x:-10,filter:`blur(2px)`}
1,animate:{opacity:1,x:0,filter:`blur(0)`},exit:{opacity:0,x:-10,y:-5,filter:`blur(2px)`}},me=(0,Q.memo)(e=>{let t=(0,Y.c)(21),{subcategory:n,parentIndex:r,index:i}=e,a;t[0]===n.id?a=t[1]:(a=e=>e===n.id,t[0]=n.id,t[1]=a);let o=P(D,a),s;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(s={willChange:`filter`},t[2]=s):s=t[2];let c;t[3]!==i||t[4]!==r?(c=()=>{O.set([r,i])},t[3]=i,t[4]=r,t[5]=c):c=t[5];let l=o?`demi`:`medium`,f=o?`-0.015em`:void 0,p;t[6]===f?p=t[7]:(p={letterSpacing:f},t[6]=f,t[7]=p);let m=o&&`text-accent`,h;t[8]===m?h=t[9]:(h=u(m),t[8]=m,t[9]=h);let g;t[10]!==n.name||t[11]!==l||t[12]!==p||t[13]!==h?(g=(0,Z.jsx)(d,{weight:l,style:p,truncate:!0,uppercase:!0,className:h,children:n.name}),t[10]=n.name,t[11]=l,t[12]=p,t[13]=h,t[14]=g):g=t[14];let _;t[15]===n.items.length?_=t[16]:(_=(0,Z.jsx)(H,{number:n.items.length,className:`opacity-80`}),t[15]=n.items.length,t[16]=_);let v;return t[17]!==_||t[18]!==c||t[19]!==g?(v=(0,Z.jsx)(b,{layout:!0,variants:pe,className:`relative max-w-max`,style:s,children:(0,Z.jsxs)(S,{className:`flex transition cursor-pointer hover:bg-white/5 -ml-5 pl-5 -my-0.5 py-0.5 pr-3 -mr-3 rounded-lg items-baseline gap-2 outline-none focus-visible:ring-2`,onPress:c,children:[g,_]})}),t[17]=_,t[18]=c,t[19]=g,t[20]=v):v=t[20],v}),he={animate:{transition:{staggerChildren:.05,delayChildren:.2}}},ge={delay:.25},_e=(0,Q.memo)(e=>{let t=(0,Y.c)(36),{category:n,index:r}=e,i;t[0]===n.subcategories?i=t[1]:(i=n.subcategories.filter(Ce),t[0]=n.subcategories,t[1]=i);let a=i,o;t[2]===n.id?o=t[3]:(o=e=>e===n.id,t[2]=n.id,t[3]=o);let s=P(k,o),c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c={within:!0},t[4]=c):c=t[4];let{isFocusVisible:l,focusProps:f}=y(c),p;t[5]===f?p=t[6]:(p=le(f,[`onBlur`,`onFocus`]),t[5]=f,t[6]=p);let m;t[7]===r?m=t[8]:(m=()=>{O.set([r,null])},t[7]=r,t[8]=m);let g=s?`demi`:`medium`,_=s?`-0.015em`:void 0,v;t[9]===_?v=t[10]:(v={letterSpacing:_},t[9]=_,t[10]=v);let x=s&&`!text-accent`,S;t[11]===x?S=t[12]:(S=u(x),t[11]=x,t[12]=S);let w;t[13]!==n.name||t[14]!==S||t[15]!==g||t[16]!==v?(w=(0,Z.jsx)(d,{weight:g,style:v,size:`medium`,truncate:!0,uppercase:!0,className:S,children:n.name}),t[13]=n.name,t[14]=S,t[15]=g,t[16]=v,t[17]=w):w=t[17];let T;t[18]!==n.count||t[19]!==n.isPlaceholder?(T=!n.isPlaceholder&&(0,Z.jsx)(H,{number:n.count,className:`opacity-80`}),t[18]=n.count,t[19]=n.isPlaceholder,t[20]=T):T=t[20];let E;t[21]!==w||t[22]!==T||t[23]!==m?(E=(0,Z.jsxs)(de,{layout:`position`,className:`flex items-baseline cursor-pointer hover:bg-white/5 pl-2 max-w-full rounded-lg -my-0.25 pr-3 -mr-3 py-0.25 -ml-2 gap-2 relative outline-none focus-visible:ring-2`,onPress:m,children:[w,T]}),t[21]=w,t[22]=T,t[23]=m,t[24]=E):E=t[24];let D;t[25]!==r||t[26]!==s||t[27]!==l||t[28]!==a?(D=(l||s)&&a.length>0?(0,Z.jsx)(h,{layout:!0,className:`flex flex-col gap-1 pl-3 pt-1`,animate:`animate`,exit:`exit`,initial:`initial`,variants:he,transition:ge,children:a.map((e,t)=>(0,Z.jsx)(me,{subcategory:e,parentIndex:r,index:t},e.id))}):null,t[25]=r,t[26]=s,t[27]=l,t[28]=a,t[29]=D):D=t[29];let A;t[30]===D?A=t[31]:(A=(0,Z.jsx)(C,{mode:`popLayout`,children:D}),t[30]=D,t[31]=A);let j;return t[32]!==E||t[33]!==A||t[34]!==p?(j=(0,Z.jsxs)(b,{...p,layout:!0,className:`relative z-10`,children:[E,A]}),t[32]=E,t[33]=A,t[34]=p,t[35]=j):j=t[35],j}),ve={hidden:{opacity:0,x:-64},visible:{opacity:1,x:0}},ye={visible:{opacity:1,x:0,filter:`blur(0px)`},hidden:{opacity:0,x:12,filter:`blur(2px)`}},be={visible:{opacity:1,filter:`blur(0px)`},hidden:{opacity:0,filter:`blur(2px)`}},xe=e=>{let t=(0,Y.c)(20),{showNav:r,ref:i}=e,s=a(),l;t[0]===s?l=t[1]:(l=T(`/:localeOrLocation?/:location?`,s),t[0]=s,t[1]=l);let u=o(l),[d,p]=(0,Q.useState)(!1),{scrollY:m}=ne(),h=n(`root`),g=h?.mainUrl??`https://hansimglueck-burgergrill.de`,_=h?.location?.country?te.countries[h.location.country]?.locale:`de`,v=c.locale===_?g:`${g}/${c.locale}`,y;t[2]===r?y=t[3]:(y=e=>{r||p(e>.01)},t[2]=r,t[3]=y),ee(m,`change`,y);let b=r?`a`:J,S;t[4]!==v||t[5]!==u||t[6]!==r?(S=r?{href:v}:{backUrl:u},t[4]=v,t[5]=u,t[6]=r,t[7]=S):S=t[7];let w;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(w=c._({id:`7vBzLg`}),t[8]=w):w=t[8];let E=!r,D;t[9]===E?D=t[10]:(D=(0,Z.jsx)(M,{className:`h-8  pointer-events-auto`,hideTitle:E}),t[9]=E,t[10]=D);let O;t[11]!==d||t[12]!==r?(O=r?null:(0,Z.jsxs)(x,{variants:ye,initial:`hidden`,animate:`visible`,exit:`hidden`,className:`absolute left-18 pt-0.5 flex gap-2  pointer-events-auto`,children:[(0,Z.jsx)(f,{name:`arrow-left`}),(0,Z.jsx)(C,{initial:!1,children:d?null:(0,Z.jsx)(fe,{weight:`medium`,className:`block uppercase`,variants:be,initial:`hidden`,animate:`visible`,exit:`hidden`,children:c._({id:`NYWhxX`})})})]}),t[11]=d,t[12]=r,t[13]=O):O=t[13];let k;return t[14]!==b||t[15]!==i||t[16]!==S||t[17]!==D||t[18]!==O?(k=(0,Z.jsxs)(b,{ref:i,...S,"aria-label":w,className:`relative flex p-5 outline-none z-30 transition-colors`,children:[D,O]}),t[14]=b,t[15]=i,t[16]=S,t[17]=D,t[18]=O,t[19]=k):k=t[19],k},Se=(0,Q.memo)(()=>{let e=(0,Y.c)(18),{categories:t}=ie(),n=p(),r=a(),i=q(),o;e[0]===i?o=e[1]:(o=i.reverse().find(we),e[0]=i,e[1]=o);let s=o?.handle?.showNav,l=I(),u=P(l,Te),d=P(l,Ee),m=P(l,De),[h,v]=(0,Q.useState)(!1),y,b;if(e[2]===Symbol.for(`react.memo_cache_sentinel`)?(y=()=>
1{if(typeof window>`u`)return;let e=()=>{let e=Number.parseFloat(getComputedStyle(document.documentElement).fontSize)||16;v(window.innerWidth<64*e)};return e(),window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},b=[],e[2]=y,e[3]=b):(y=e[2],b=e[3]),(0,Q.useLayoutEffect)(y,b),h)return null;let S;e[4]===s?S=e[5]:(S=(0,Z.jsx)(xe,{showNav:s},`link`),e[4]=s,e[5]=S);let E;e[6]!==m||e[7]!==t||e[8]!==d||e[9]!==u||e[10]!==n||e[11]!==r||e[12]!==s||e[13]!==l?(E=s?(0,Z.jsxs)(_,{className:`absolute inset-0 bg-black/20 pl-20 -ml-15 pr-5 py-5 pointer-events-auto`,variants:ve,initial:`hidden`,animate:`visible`,exit:`hidden`,children:[(0,Z.jsx)(`a`,{href:`#${n}`,className:`sr-only z-30 focus-visible:not-sr-only bg-accent text-black font-bold text-heading focus-visible:px-3 outline-none underline ring-2 ring-white ring-offset-3 ring-offset-theme-deep focus-visible:py-2 rounded-lg focus-visible:fixed top-3 left-3`,children:c._({id:`wELyS0`})}),(0,Z.jsxs)(x,{layout:!0,className:`h-full pt-12 flex justify-between flex-col`,children:[(0,Z.jsx)(`div`,{}),(0,Z.jsx)(`ul`,{className:`gap-2 flex flex-col uppercase`,children:(0,Z.jsx)(j,{children:t.map($)})}),(0,Z.jsxs)(`div`,{className:`-mx-2 -mb-2 flex flex-col`,children:[(0,Z.jsxs)(g,{href:T(`/:localeOrLocation?/:location?/filter`,r),routerOptions:{preventScrollReset:!0},className:`p-2 w-full flex hover:bg-white/5 outline-none focus-visible:ring-2 rounded-lg justify-between uppercase`,children:[(0,Z.jsxs)(`span`,{className:`flex gap-2 items-center uppercase font-semibold`,children:[(0,Z.jsx)(f,{name:`filter`}),c._({id:`_24uer`})]}),(0,Z.jsxs)(`div`,{className:`flex items-center gap-1 font-medium`,children:[d!==`all`&&(0,Z.jsx)(`div`,{className:`normal-case text-accent`,children:d===`vegan`?c._({id:`7_66Ys`}):c._({id:`KLAvxi`})}),m>0&&(0,Z.jsx)(H,{prefix:d===`all`?``:`+`,number:m,className:`font-semibold ml-1 text-body-small bg-accent text-primary px-1.5 rounded-full`}),(0,Z.jsx)(f,{name:`chevron-right`,className:`opacity-60`})]})]}),(0,Z.jsx)(w,{"aria-label":c._({id:`I8O6uo`}),isSelected:u,onChange:()=>l.trigger.toggleFitnessMode(),className:`p-2 w-full flex hover:bg-white/5 outline-none focus-visible:ring-2 rounded-lg justify-between uppercase`,children:Oe})]})]}),(0,Z.jsx)(`div`,{id:n})]},`nav`):null,e[6]=m,e[7]=t,e[8]=d,e[9]=u,e[10]=n,e[11]=r,e[12]=s,e[13]=l,e[14]=E):E=e[14];let D;return e[15]!==S||e[16]!==E?(D=(0,Z.jsx)(`div`,{className:`fixed inset-y-0 left-0 pointer-events-none w-80 xl:w-88 z-50 hidden lg:block`,children:(0,Z.jsxs)(C,{initial:!1,mode:`sync`,children:[S,E]})}),e[15]=S,e[16]=E,e[17]=D):D=e[17],D});function Ce(e){return!!e.name}function we(e){return e?.handle?.showNav!==void 0}function Te(e){return e.context.fitnessMode}function Ee(e){return e.context.dietType}function De(e){return e.context.allergens.length}function $(e,t){return(0,Z.jsx)(_e,{category:e,index:t},e.id)}function Oe(e){let{isSelected:t}=e;return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(`span`,{className:`flex gap-2 font-semibold items-center`,children:[(0,Z.jsx)(f,{name:`fitness`}),c._({id:`UN1IOL`})]}),(0,Z.jsxs)(`div`,{className:`normal-case font-medium flex items-center gap-2`,children:[t?(0,Z.jsx)(`span`,{children:c._({id:`oh8-os`})}):(0,Z.jsx)(`span`,{className:` opacity-60`,children:c._({id:`D-zLDD`})}),(0,Z.jsx)(`div`,{className:u(`h-5 w-8 transition p-0.75 rounded-full`,t?`bg-purple`:`bg-white/5`),children:(0,Z.jsx)(`div`,{className:u(`size-3.5 transition rounded-full`,t?`bg-white`:`bg-black/50`),style:{transform:t?`translateX(0.75rem)`:`translateX(0)`}})})]})]})}var ke=()=>{let e=(0,Y.c)(11),t=I(),n=P(t,je),r=P(t,Me),i=P(X,Ne),a=n&&!r&&`max-lg:bottom-36`,o=n&&r&&`max-lg:bottom-42`,s=!n&&r&&`max-lg:bottom-17`,c;e[0]!==a||e[1]!==o||e[2]!==s?(c=u(`fixed pointer-events-none flex items-center justify-center z-30`,`inset-x-0 lg:left-auto lg:right-2`,`bottom-6 lg:bottom-36`,a,o,s),e[0]=a,e[1]=o,e[2]=s,e[3]=c):c=e[3];let l;e[4]===i?l=e[5]:(l=i.map(Pe),e[4]=i,e[5]=l);let d;e[6]===l?d=e[7]:(d=(0,Z.jsx)(`div`,{className:`flex flex-col items-center gap-2 max-lg:container lg:min-w-sm`,children:(0,Z.jsx)(C,{mode:`popLayout`,children:l})}),e[6]=l,e[7]=d);let f;return e[8]!==c||e[9]!==d?(f=(0,Z.jsx)(`section`,{className:c,"aria-label":`Notifications`,"aria-live":`polite`,"aria-atomic":`false`,children:d}),e[8]=c,e[9]=d,e[10]=f):f=e[10],f},Ae=e=>{let t=(0,Y.c)(10),{id:n,message:r}=e,i,a;t[0]===n?(i=t[1],a=t[2]):(i=()=>{let e=setTimeout(()=>{X.trigger.removeToast({id:n})},3e3);return()=>clearTimeout(e)},a=[n],t[0]=n,t[1]=i,t[2]=a),(0,Q.useEffect)(i,a);let o,s,c,l;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o={opacity:0,y:20,scale:.9},s={opacity:1,y:0,scale:1},c={opacity:0,scale:.9},l={duration:.2},t[3]=o,t[4]=s,t[5]=c,t[6]=l):(o=t[3],s=t[4],c=t[5],l=t[6]);let u;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,Z.jsx)(f,{name:`checkmark`,className:`-ml-1.5 text-accent`}),t[7]=u):u=t[7];let p;return t[8]===r?p=t[9]:(p=(0,Z.jsxs)(m,{initial:o,animate:s,exit:c,transition:l,className:`bg-white py-1.5 px-3 pointer-events-auto flex gap-1.5 text-primary rounded-full`,children:[u,(0,Z.jsx)(d,{weight:`demi`,truncate:!0,className:`max-w-xs`,uppercase:!0,children:r})]}),t[8]=r,t[9]=p),p};function je(e){return e.context.fitnessMode}function Me(e){return e.context.dietType!==`all`||e.context.allergens.length>0}function Ne(e){return e.context.toasts}function Pe(e){return(0,Z.jsx)(Ae,{...e},e.id)}var Fe=r(()=>{let e=(0,Y.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Se,{}),(0,Z.jsx)(G,{mode:`popLayout`}),(0,Z.jsx)(se,{}),(0,Z.jsx)(ke,{})]}),e[0]=t):t=e[0],t});export{Fe as default};

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.