PageSourceSearch

https://resoflow-prod.web.app/assets/bistroDemoContent-CxogUD1u.js

js resoflow-prod.web.app collected 2026-10-03 12:34:46 UTC 2,163 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"1.0.0"};var i=(new e.Error).stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="98c1f37b-c8c9-41bd-9d73-67827247bd39",e._sentryDebugIdIdentifier="sentry-dbid-98c1f37b-c8c9-41bd-9d73-67827247bd39")}catch(n){}}();import{B as e}from"./bistroDemoSelection-o4Yb_kvB.js";import{aT as i,aU as n,aV as t}from"./index-CJ0eVksD.js";const s=e=>{const i=t.find(i=>i.key===e);if(!i)throw Error(`Missing approved Bistro demo dish: ${e}`);return i},r=i=>{const n=Object.keys(e).find(n=>e[n]===i);if(!n)throw Error(`Bistro demo deal references an omitted dish: ${i}`);return n},d=Object.entries(e).map(([e,i])=>{var n;const t=s(i);return{id:e,name:t.name,description:t.description??"",pricePence:Math.round(100*t.pricePounds),allergens:t.allergens?[...t.allergens]:void 0,dietary:t.dietary?[...t.dietary]:void 0,optionGroups:null==(n=t.optionGroups)?void 0:n.map(i=>({id:`${e}_${i.key}`,prompt:i.prompt,required:!0===i.required||(i.minSelect??0)>0,maxSelect:i.maxSelect??1,options:i.options.map(n=>({id:`${e}_${i.key}_${n.key}`,name:n.name,priceDeltaPence:n.priceDeltaPence??0}))}))}}),a=n.map(i=>({id:`cat_${i.key}`,name:i.name,dishIds:Object.entries(e).filter(([,e])=>s(e).category===i.key).map(([e])=>e)})).filter(e=>e.dishIds.length>0),o=i.find(e=>"sunday-set-2"===e.key);if(!o)throw Error("Missing approved Bistro Sunday set menu");const c={name:o.name,blurb:`Sample Sunday service. ${o.description}`,pricePence:o.bundlePricePence,slots:o.slots.map(e=>({id:`slot_${e.key}`,name:e.name,dishIds:e.dishes.map(e=>r(e.dishKey)),supplements:Object.fromEntries(e.dishes.filter(e=>(e.supplementPence??0)>0).map(e=>[r(e.dishKey),e.supplementPence]))}))},p=[{id:"main_haddock",quantity:2},{id:"main_pie",quantity:1},{id:"side_chips",quantity:3}].map(e=>{const i=d.find(i=>i.id===e.id);return{...e,name:i.name,totalPence:i.pricePence*e.quantity}}),m=p.reduce((e,i)=>e+i.totalPence,0);export{p as B,d as a,m as b,c,a as d};
2//# sourceMappingURL=bistroDemoContent-CxogUD1u.js.map

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.