PageSourceSearch

https://www.whatdidyouhavefordinner.com/assets/DashboardPage.c4bd3089.js

js whatdidyouhavefordinner.com collected 2026-10-07 22:52:15 UTC 14,149 bytes, 1 lines download raw bytes

1import{m as Ee,q as ne,r as m,d as v,a as _e,o as Ve,au as ye,F as Fe,W as We,j as g,D as he,a6 as je,av as ze,X as J,h as Ne,g as Te,aw as Ke,c as we,a4 as Oe,a5 as He,w as z,p as Ue,ad as Xe,ak as Ge,H as Je,J as pe,O as Ye,N as B,K as $,V as me,M as A,L as V,R as F}from"./index.bf554e03.js";import{u as Ze}from"./uid.42677368.js";import{Q as et,a as tt}from"./QResizeObserver.4713e78d.js";import{u as oe}from"./use-tick.bb601f36.js";import{u as ge}from"./use-timeout.f7edc436.js";import{Q as at}from"./QCard.23110fef.js";import{Q as nt}from"./QPage.8c7a8d03.js";import"./use-dark.130db749.js";let ot=0;const lt=["click","keydown"],rt={icon:String,label:[Number,String],alert:[Boolean,String],alertIcon:String,name:{type:[Number,String],default:()=>`t_${ot++}`},noCaps:Boolean,tabindex:[String,Number],disable:Boolean,contentClass:String,ripple:{type:[Boolean,Object],default:!0}};function st(e,d,T,i){const l=Ee(ye,ne);if(l===ne)return console.error("QTab/QRouteTab component needs to be child of QTabs"),ne;const{proxy:P}=Te(),W=m(null),N=m(null),K=m(null),p=v(()=>e.disable===!0||e.ripple===!1?!1:Object.assign({keyCodes:[13,32],early:!0},e.ripple===!0?{}:e.ripple)),M=v(()=>l.currentModel.value===e.name),Y=v(()=>"q-tab relative-position self-stretch flex flex-center text-center"+(M.value===!0?" q-tab--active"+(l.tabProps.value.activeClass?" "+l.tabProps.value.activeClass:"")+(l.tabProps.value.activeColor?` text-${l.tabProps.value.activeColor}`:"")+(l.tabProps.value.activeBgColor?` bg-${l.tabProps.value.activeBgColor}`:""):" q-tab--inactive")+(e.icon&&e.label&&l.tabProps.value.inlineLabel===!1?" q-tab--full":"")+(e.noCaps===!0||l.tabProps.value.noCaps===!0?" q-tab--no-caps":"")+(e.disable===!0?" disabled":" q-focusable q-hoverable cursor-pointer")+(i!==void 0?i.linkClass.value:"")),S=v(()=>"q-tab__content self-stretch flex-center relative-position q-anchor--skip non-selectable "+(l.tabProps.value.inlineLabel===!0?"row no-wrap q-tab__content--inline":"column")+(e.contentClass!==void 0?` ${e.contentClass}`:"")),_=v(()=>e.disable===!0||l.hasFocus.value===!0||M.value===!1&&l.hasActiveTab.value===!0?-1:e.tabindex||0);function C(o,h){if(h!==!0&&W.value!==null&&W.value.focus(),e.disable===!0){i!==void 0&&i.hasRouterLink.value===!0&&he(o);return}if(i===void 0){l.updateModel({name:e.name}),T("click",o);return}if(i.hasRouterLink.value===!0){const y=(f={})=>{let w;const q=f.to===void 0||Ke(f.to,e.to)===!0?l.avoidRouteWatcher=Ze():null;return i.navigateToRouterLink(o,{...f,returnRouterError:!0}).catch(I=>{w=I}).then(I=>{if(q===l.avoidRouteWatcher&&(l.avoidRouteWatcher=!1,w===void 0&&(I===void 0||I.message.startsWith("Avoided redundant navigation")===!0)&&l.updateModel({name:e.name})),f.returnRouterError===!0)return w!==void 0?Promise.reject(w):I})};T("click",o,y),o.defaultPrevented!==!0&&y();return}T("click",o)}function R(o){je(o,[13,32])?C(o,!0):ze(o)!==!0&&o.keyCode>=35&&o.keyCode<=40&&o.altKey!==!0&&o.metaKey!==!0&&l.onKbdNavigate(o.keyCode,P.$el)===!0&&he(o),T("keydown",o)}function j(){const o=l.tabProps.value.narrowIndicator,h=[],y=g("div",{ref:K,class:["q-tab__indicator",l.tabProps.value.indicatorClass]});e.icon!==void 0&&h.push(g(J,{class:"q-tab__icon",name:e.icon})),e.label!==void 0&&h.push(g("div",{class:"q-tab__label"},e.label)),e.alert!==!1&&h.push(e.alertIcon!==void 0?g(J,{class:"q-tab__alert-icon",color:e.alert!==!0?e.alert:void 0,name:e.alertIcon}):g("div",{class:"q-tab__alert"+(e.alert!==!0?` text-${e.alert}`:"")})),o===!0&&h.push(y);const f=[g("div",{class:"q-focus-helper",tabindex:-1,ref:W}),g("div",{class:S.value},Ne(d.default,h))];return o===!1&&f.push(y),f}const D={name:v(()=>e.name),rootRef:N,tabIndicatorRef:K,routeData:i};_e(()=>{l.unregisterTab(D)}),Ve(()=>{l.registerTab(D)});function O(o,h){const y={ref:N,class:Y.value,tabindex:_.value,role:"tab","aria-selected":M.value===!0?"true":"false","aria-disabled":e.disable===!0?"true":void 0,onClick:C,onKeydown:R,...h};return Fe(g(o,y,j()),[[We,p.value]])}return{renderTab:O,$tabs:l}}var le=we({name:"QRouteTab",props:{...Oe,...rt},emits:lt,setup(e,{slots:d,emit:T}){const i=He({useDisableForRouterLinkProps:!1}),{renderTab:l,$tabs:P}=st(e,d,T,{exact:v(()=>e.exact),...i});return z(()=>`${e.name} | ${e.exact} | ${(i.resolvedLink.value||{}).href}`,()=>{P.verifyRouteModel()}),()=>l(i.linkTag.value,i.linkAttrs.value)}});function it(e,d,T){const i=T===!0?["left","right"]:["top","bottom"];return`absolute-${d===!0?i[0]:i[1]}${e?` text-${e}`:""}`}const ut=["left","center","right","justify"];var ct=we({name:"QTabs",props:{modelValue:[Number,String],align:{type:String,default:"center",validator:e=>ut.includes(e)},breakpoint:{type:[String,Number],default:600},vertical:Boolean,shrink:Boolean,stretch:Boolean,activeClass:String,activeColor:String,activeBgColor:String,indicatorColor:String,leftIcon:String,rightIcon:String,outsideArrows:Boolean,mobileArrows:Boolean,switchIndicator:Boolean,narrowIndicator:Boolean,inlineLabel:Boolean,noCaps:Boolean,dense:Boolean,contentClass:String,"onUpdate:modelValue":[Function,Array]},setup(e,{slots:d,emit:T}){const{proxy:i}=Te(),{$q:l}=i,{registerTick:P}=oe(),{registerTick:W}=oe(),{registerTick:N}=oe(),{registerTimeout:K,removeTimeout:p}=ge(),{registerTimeout:M,removeTimeout:Y}=ge(),S=m(null),_=m(null),C=m(e.modelValue),R=m(!1),j=m(!0),D=m(!1),O=m(!1),o=[],h=m(0),y=m(!1);let f=null,w=null,q;const I=v(()=>({activeClass:e.activeClass,activeColor:e.activeColor,activeBgColor:e.activeBgColor,indicatorClass:it(e.indicatorColor,e.switchIndicator,e.vertical),narrowIndicator:e.narrowIndicator,inlineLabel:e.inlineLabel,noCaps:e.n
1oCaps})),Ce=v(()=>{const t=h.value,a=C.value;for(let n=0;n<t;n++)if(o[n].name.value===a)return!0;return!1}),qe=v(()=>`q-tabs__content--align-${R.value===!0?"left":O.value===!0?"justify":e.align}`),ke=v(()=>`q-tabs row no-wrap items-center q-tabs--${R.value===!0?"":"not-"}scrollable q-tabs--${e.vertical===!0?"vertical":"horizontal"} q-tabs__arrows--${e.outsideArrows===!0?"outside":"inside"} q-tabs--mobile-with${e.mobileArrows===!0?"":"out"}-arrows`+(e.dense===!0?" q-tabs--dense":"")+(e.shrink===!0?" col-shrink":"")+(e.stretch===!0?" self-stretch":"")),Re=v(()=>"q-tabs__content scroll--mobile row no-wrap items-center self-stretch hide-scrollbar relative-position "+qe.value+(e.contentClass!==void 0?` ${e.contentClass}`:"")),H=v(()=>e.vertical===!0?{container:"height",content:"offsetHeight",scroll:"scrollHeight"}:{container:"width",content:"offsetWidth",scroll:"scrollWidth"}),U=v(()=>e.vertical!==!0&&l.lang.rtl===!0),Z=v(()=>U.value===!0);z(U,E),z(()=>e.modelValue,t=>{ee({name:t,setCurrent:!0,skipEmit:!0})}),z(()=>e.outsideArrows,X);function ee({name:t,setCurrent:a,skipEmit:n}){C.value!==t&&(n!==!0&&e["onUpdate:modelValue"]!==void 0&&T("update:modelValue",t),(a===!0||e["onUpdate:modelValue"]===void 0)&&(xe(C.value,t),C.value=t))}function X(){P(()=>{re({width:S.value.offsetWidth,height:S.value.offsetHeight})})}function re(t){if(H.value===void 0||_.value===null)return;const a=t[H.value.container],n=Math.min(_.value[H.value.scroll],Array.prototype.reduce.call(_.value.children,(c,s)=>c+(s[H.value.content]||0),0)),u=a>0&&n>a;R.value=u,u===!0&&W(E),O.value=a<parseInt(e.breakpoint,10)}function xe(t,a){const n=t!=null&&t!==""?o.find(c=>c.name.value===t):null,u=a!=null&&a!==""?o.find(c=>c.name.value===a):null;if(n&&u){const c=n.tabIndicatorRef.value,s=u.tabIndicatorRef.value;f!==null&&(clearTimeout(f),f=null),c.style.transition="none",c.style.transform="none",s.style.transition="none",s.style.transform="none";const r=c.getBoundingClientRect(),b=s.getBoundingClientRect();s.style.transform=e.vertical===!0?`translate3d(0,${r.top-b.top}px,0) scale3d(1,${b.height?r.height/b.height:1},1)`:`translate3d(${r.left-b.left}px,0,0) scale3d(${b.width?r.width/b.width:1},1,1)`,N(()=>{f=setTimeout(()=>{f=null,s.style.transition="transform .25s cubic-bezier(.4, 0, .2, 1)",s.style.transform="none"},70)})}u&&R.value===!0&&Q(u.rootRef.value)}function Q(t){const{left:a,width:n,top:u,height:c}=_.value.getBoundingClientRect(),s=t.getBoundingClientRect();let r=e.vertical===!0?s.top-u:s.left-a;if(r<0){_.value[e.vertical===!0?"scrollTop":"scrollLeft"]+=Math.floor(r),E();return}r+=e.vertical===!0?s.height-c:s.width-n,r>0&&(_.value[e.vertical===!0?"scrollTop":"scrollLeft"]+=Math.ceil(r),E())}function E(){const t=_.value;if(t===null)return;const a=t.getBoundingClientRect(),n=e.vertical===!0?t.scrollTop:Math.abs(t.scrollLeft);U.value===!0?(j.value=Math.ceil(n+a.width)<t.scrollWidth-1,D.value=n>0):(j.value=n>0,D.value=e.vertical===!0?Math.ceil(n+a.height)<t.scrollHeight:Math.ceil(n+a.width)<t.scrollWidth)}function se(t){w!==null&&clearInterval(w),w=setInterval(()=>{Se(t)===!0&&x()},5)}function ie(){se(Z.value===!0?Number.MAX_SAFE_INTEGER:0)}function ue(){se(Z.value===!0?0:Number.MAX_SAFE_INTEGER)}function x(){w!==null&&(clearInterval(w),w=null)}function Le(t,a){const n=Array.prototype.filter.call(_.value.children,b=>b===a||b.matches&&b.matches(".q-tab.q-focusable")===!0),u=n.length;if(u===0)return;if(t===36)return Q(n[0]),n[0].focus(),!0;if(t===35)return Q(n[u-1]),n[u-1].focus(),!0;const c=t===(e.vertical===!0?38:37),s=t===(e.vertical===!0?40:39),r=c===!0?-1:s===!0?1:void 0;if(r!==void 0){const b=U.value===!0?-1:1,k=n.indexOf(a)+r*b;return k>=0&&k<u&&(Q(n[k]),n[k].focus({preventScroll:!0})),!0}}const Pe=v(()=>Z.value===!0?{get:t=>Math.abs(t.scrollLeft),set:(t,a)=>{t.scrollLeft=-a}}:e.vertical===!0?{get:t=>t.scrollTop,set:(t,a)=>{t.scrollTop=a}}:{get:t=>t.scrollLeft,set:(t,a)=>{t.scrollLeft=a}});function Se(t){const a=_.value,{get:n,set:u}=Pe.value;
1let c=!1,s=n(a);const r=t<s?-1:1;return s+=r*5,s<0?(c=!0,s=0):(r===-1&&s<=t||r===1&&s>=t)&&(c=!0,s=t),u(a,s),E(),c}function ce(t,a){for(const n in t)if(t[n]!==a[n])return!1;return!0}function Ie(){let t=null,a={matchedLen:0,queryDiff:9999,hrefLen:0};const n=o.filter(r=>r.routeData!==void 0&&r.routeData.hasRouterLink.value===!0),{hash:u,query:c}=i.$route,s=Object.keys(c).length;for(const r of n){const b=r.routeData.exact.value===!0;if(r.routeData[b===!0?"linkIsExactActive":"linkIsActive"].value!==!0)continue;const{hash:k,query:te,matched:De,href:Qe}=r.routeData.resolvedLink.value,ae=Object.keys(te).length;if(b===!0){if(k!==u||ae!==s||ce(c,te)===!1)continue;t=r.name.value;break}if(k!==""&&k!==u||ae!==0&&ce(te,c)===!1)continue;const L={matchedLen:De.length,queryDiff:s-ae,hrefLen:Qe.length-k.length};if(L.matchedLen>a.matchedLen){t=r.name.value,a=L;continue}else if(L.matchedLen!==a.matchedLen)continue;if(L.queryDiff<a.queryDiff)t=r.name.value,a=L;else if(L.queryDiff!==a.queryDiff)continue;L.hrefLen>a.hrefLen&&(t=r.name.value,a=L)}t===null&&o.some(r=>r.routeData===void 0&&r.name.value===C.value)===!0||ee({name:t,setCurrent:!0})}function Be(t){if(p(),y.value!==!0&&S.value!==null&&t.target&&typeof t.target.closest=="function"){const a=t.target.closest(".q-tab");a&&S.value.contains(a)===!0&&(y.value=!0,R.value===!0&&Q(a))}}function $e(){K(()=>{y.value=!1},30)}function G(){ve.avoidRouteWatcher===!1?M(Ie):Y()}function de(){if(q===void 0){const t=z(()=>i.$route.fullPath,G);q=()=>{t(),q=void 0}}}function Ae(t){o.push(t),h.value++,X(),t.routeData===void 0||i.$route===void 0?M(()=>
1{if(R.value===!0){const a=C.value,n=a!=null&&a!==""?o.find(u=>u.name.value===a):null;n&&Q(n.rootRef.value)}}):(de(),t.routeData.hasRouterLink.value===!0&&G())}function Me(t){o.splice(o.indexOf(t),1),h.value--,X(),q!==void 0&&t.routeData!==void 0&&(o.every(a=>a.routeData===void 0)===!0&&q(),G())}const ve={currentModel:C,tabProps:I,hasFocus:y,hasActiveTab:Ce,registerTab:Ae,unregisterTab:Me,verifyRouteModel:G,updateModel:ee,onKbdNavigate:Le,avoidRouteWatcher:!1};Ue(ye,ve);function fe(){f!==null&&clearTimeout(f),x(),q!==void 0&&q()}let be;return _e(fe),Xe(()=>{be=q!==void 0,fe()}),Ge(()=>{be===!0&&de(),X()}),()=>g("div",{ref:S,class:ke.value,role:"tablist",onFocusin:Be,onFocusout:$e},[g(et,{onResize:re}),g("div",{ref:_,class:Re.value,onScroll:E},Je(d.default)),g(J,{class:"q-tabs__arrow q-tabs__arrow--left absolute q-tab__icon"+(j.value===!0?"":" q-tabs__arrow--faded"),name:e.leftIcon||l.iconSet.tabs[e.vertical===!0?"up":"left"],onMousedownPassive:ie,onTouchstartPassive:ie,onMouseupPassive:x,onMouseleavePassive:x,onTouchendPassive:x}),g(J,{class:"q-tabs__arrow q-tabs__arrow--right absolute q-tab__icon"+(D.value===!0?"":" q-tabs__arrow--faded"),name:e.rightIcon||l.iconSet.tabs[e.vertical===!0?"down":"right"],onMousedownPassive:ue,onTouchstartPassive:ue,onMouseupPassive:x,onMouseleavePassive:x,onTouchendPassive:x})])}});const dt={class:"row justify-center q-py-xl"},vt={class:"col-12 col-sm-10"},ft={key:0,class:"fontsize-13 text-bold",style:{color:"rgba(0, 0, 0, 0.8)"}},bt={key:1,class:"fontsize-13 text-bold",style:{color:"rgba(0, 0, 0, 0.8)"}},ht={key:0,class:"fontsize-13 text-bold",style:{color:"rgba(0, 0, 0, 0.8)"}},mt={key:1,class:"fontsize-13 text-bold",style:{color:"rgba(0, 0, 0, 0.8)"}},gt={key:0,class:"fontsize-13 text-bold",style:{color:"rgba(0, 0, 0, 0.8)"}},_t={key:1,class:"fontsize-13 text-bold",style:{color:"rgba(0, 0, 0, 0.8)"}},Lt={__name:"DashboardPage",setup(e){const d=m("");return(T,i)=>{const l=pe("router-view");return $(),Ye(nt,null,{default:B(()=>[me("div",dt,[me("div",vt,[A(at,{class:"bg-background br-xl"},{default:B(()=>[A(tt,{class:"no-padding"},{default:B(()=>[A(ct,{align:"justify",class:"q-pt-lg","active-color":"primary",modelValue:d.value,"onUpdate:modelValue":i[0]||(i[0]=P=>d.value=P)},{default:B(()=>[A(le,{to:"/meals",style:{width:"33.3%"},class:"q-px-none",name:"meals"},{default:B(()=>[d.value==="meals"?($(),V("h1",ft,"Meals")):F("",!0),d.value!=="meals"?($(),V("span",bt,"Meals")):F("",!0)]),_:1}),A(le,{to:"/recipes",style:{width:"33.3%"},class:"q-px-none",name:"recipes"},{default:B(()=>[d.value==="recipes"?($(),V("h1",ht,"Recipes")):F("",!0),d.value!=="recipes"?($(),V("span",mt,"Recipes")):F("",!0)]),_:1}),A(le,{to:"/restaurants",style:{width:"33.3%"},class:"q-px-none",name:"restaurants"},{default:B(()=>[d.value==="restaurants"?($(),V("h1",gt,"Restaurants")):F("",!0),d.value!=="restaurants"?($(),V("span",_t,"Restaurants")):F("",!0)]),_:1})]),_:1},8,["modelValue"]),A(l)]),_:1})]),_:1})])])]),_:1})}}};export{Lt 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.