import{v as w,s as h,x as o,y as s,_ as b,r as a,o as g,f as y,w as l,a as t,n as f,g as n,h as c}from"./1.10.0_index.js";const v={components:{select_scenery:w,s_button:h},methods:{async change_palette({value:e}){await o.moves["change palette"]({palette_name:e})},async allow_browser_storage(){await s.moves.allow()},async disallow_browser_storage(){await s.moves.disallow()}},data(){const e=o.warehouse();return{browser_storage:s.warehouse(),palette_name:e.palette_name,options:Object.keys(e.palettes)}},beforeMount(){},created(){this.browser_storage_store_monitor=s.monitor(({inaugural:e,field:i})=>{this.browser_storage=s.warehouse()}),this.theme_warehouse_monitor=o.monitor(({inaugural:e,field:i})=>{const r=o.warehouse();this.palette_name=r.palette_name,this.options=Object.keys(r.palettes)})},beforeUnmount(){this.theme_warehouse_monitor.stop(),this.browser_storage_store_monitor.stop()},mounted(){}},x=v,k={style:{display:"flex",justifyContent:"space-between"}},j=t("p",null,"allow browser storage",-1),C={style:{display:"flex",justifyContent:"space-between"}},$=t("div",{style:{margin:"0 10px"}},null,-1);function B(e,i,r,N,V,O){const _=a("s_button"),p=a("s_line"),d=a("select_scenery"),u=a("lounge");return g(),y(u,null,{default:l(({palette:m,terrain:z})=>[t("div",{style:f({padding:".5in",color:m[2]})},[t("div",k,[j,t("div",C,[n(_,{ref:"button",pressable:e.browser_storage.allowed!=="yes",clicked:e.allow_browser_storage,boundaries:"3px 12px 3px",styles:{inside:{}}},{default:l(()=>[c("yes")]),_:1},8,["pressable","clicked"]),$,n(_,{ref:"button",pressable:e.browser_storage.allowed==="yes",clicked:e.disallow_browser_storage,boundaries:"3px 12px 3px",styles:{inside:{}}},{default:l(()=>[c("no, clear and dissallow")]),_:1},8,["pressable","clicked"])])]),n(p,{style:{margin:"20px 0"}}),n(d,{name:"palette",preselected_value:e.palette_name,options:e.options,change:e.change_palette},null,8,["preselected_value","options","change"])],4)]),_:1})}const S=b(x,[["render",B]]);export{S as default};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 7828 characters]
