import{D as C,K as u,z as m,l as E,s as S,G as T,e as A,b as V,d as $,_ as z,o as i,f,w as p,r as s,a as t,g as o,h as B,n as c,c as d,j as h,T as j,i as F,F as L,p as P,k as R}from"./1.10.0_index.js";import{c as Y,e as G}from"./1.10.0_shack.js";import{c as H}from"./1.10.0_scenery2.js";import{s as K}from"./1.10.0_decor13.js";import"./1.10.0_string.js";import"./1.10.0_veranda.js";import"./1.10.0_decor16.js";import"./1.10.0_decor15.js";import"./1.10.0_decor14.js";async function O(){const e=C(u.warehouse().IDs);var n={};return m.warehouse().goal_picked&&(n=m.warehouse().goal.emblem),await E({path:"guests",envelope:{label:"retrieve recipe",freight:{goods:e,goal:n}}})}const U={components:{cautionary_ingredients:Y,change_indicator:H,s_button:S,router_link_scenery:T,essential_nutrients:G,s_food_or_supp_summary:K},data(){return{recipe:{},showing:"stats",show_recipe:!1}},methods:{_get:A,async open_list(){console.log("open_list"),this.showing="list"},open_stats(){this.showing="stats"},async open_empty(){await V({label:"cart",field:$(()=>import("./1.10.0_field6.js"),["assets/1.10.0_field6.js","assets/1.10.0_index.js","assets/1.10.0_index.css"])})},async retrieve_recipe(){const{status:e,parsed:n,proceeds:a}=await O();if(e!==200){console.error("The food was not found."),this.found=!1,this.show_recipe=!0;return}this.recipe=a.freight,this.found=!0,this.show_recipe=!0}},async mounted(){this.cart_monitor=u.monitor(({inaugural:e,field:n})=>{const a=u.warehouse();console.log("monitor function",{inaugural:e,field:n,warehouse:a}),this.show_recipe=!1,e||this.retrieve_recipe()}),this.show_recipe=!1,this.retrieve_recipe()},beforeUnmount(){this.cart_monitor.stop()}};const q=U,r=e=>(P("data-v-02e72e10"),e=e(),R(),e),J={style:{display:"flex",flexDirection:"column",height:"100%"}},M={"cart-options":"",style:{display:"flex",justifyContent:"space-between",padding:"10px 0 20px 0"}},Q={style:{display:"flex",justifyContent:"space-between",padding:"10px 50px 20px",width:"100%"}},W=r(()=>t("div",null,null,-1)),X=r(()=>t("div",{style:{textAlign:"center"}},[t("p",null,"Currently none of these goods are for sale."),t("div",{style:{height:"10px"}}),t("p",null,"However, some of them might have links to stores that have inventory.")],-1)),Z=r(()=>t("div",{style:{height:"10px",width:"10px"}},null,-1)),ee=r(()=>t("div",{style:{height:"5px"}},null,-1)),te=r(()=>t("div",{style:{height:"5px"}},null,-1)),se={key:0,style:{padding:".5in",textAlign:"center"}},oe=r(()=>t("p",null,"The grocery list is empty.",-1)),ne=[oe];function ie(e,n,a,re,ae,le){const g=s("s_button"),y=s("change_indicator"),w=s("cautionary_ingredients"),v=s("essential_nutrients"),x=s("s_food_or_supp_summary"),b=s("s_line"),k=s("s_panel"),D=s("lounge");return i(),f(D,null,{default:p(({palette:_e,terrain:l,cart:_})=>[t("div",J,[t("div",M,[t("div",Q,[W,X,o(g,{ref:"button",pressable:!0,clicked:e.open_empty,boundaries:"8px 20px 8px"},{default:p(()=>[B("empty")]),_:1},8,["clicked"])])]),t("div",{style:c({display:"flex",flexDirection:l.width<900?"column":"row",height:"100%",position:"relative"})},[t("div",{"cart-content":"",style:c({position:"relative",top:0,left:0,height:"100%",boxSizing:"border-box",width:l.width<900?"100%":"60%",overflowY:"scroll"})},[o(y,{show:e.show_recipe===!1,style:{position:"absolute",height:"100vh",top:0,left:0,width:"100vw"}},null,8,["show"]),o(j,{name:"fade"},{default:p(()=>[e.show_recipe?(i(),d("div",{key:0,style:c({position:"absolute",top:0,left:0,height:"100%",boxSizing:"border-box",width:"100%",paddingRight:l.width<900?"0%":"1%"})},[o(w,{land:e._get(e.recipe,["cautionary ingredients"],{})},null,8,["land"]),Z,o(v,{EN:e._get(e.recipe,["essential nutrients"],{})},null,8,["EN"])],4)):h("",!0)]),_:2},1024)],4),o(k,{style:c({height:"100%",width:l.width<900?"100%":"40%",overflowY:"scroll"})},{default:p(()=>[(i(!0),d(L,null,F(_.treasures,(I,N)=>(i(),d("div",null,[o(x,{treasure:I},null,8,["treasure"]),ee,N!==_.treasures.length-1?(i(),f(b,{key:0})):h("",!0),te]))),256)),!Array.isArray(_.IDs)||_.IDs.length===0?(i(),d("div",se,ne)):h("",!0)]),_:2},1032,["style"])],4)])]),_:1})}const we=z(q,[["render",ie],["__scopeId","data-v-02e72e10"]]);export{we as default};


//# sourceMappingURL=data:application/json;base64,[encoded data, 14936 characters]