Spaces:
Running
Running
Cover Charge prototype v0.3.12.84 (part 19)
Browse files- mrbasrais/display-app/display.html +1 -1
- mrbasrais/display-app/index.html +1 -1
- mrbasrais/display-app/sw.js +1 -1
- mrbasrais/get/chef.html +1 -1
- mrbasrais/get/customer.html +1 -1
- mrbasrais/get/display.html +1 -1
- mrbasrais/get/managers.html +1 -1
- mrbasrais/get/staff.html +1 -1
- mrbasrais/index.html +1 -1
- mrbasrais/owner-app/_expo/static/js/web/__common-60039f4adacaba8b157505e543943fb6.js +0 -0
- mrbasrais/owner-app/_expo/static/js/web/_layout-d020cc07482ec9ecaacbefb0f8a9e88f.js +40 -0
- mrbasrais/owner-app/_expo/static/js/web/basket-39cdf98ed8418bbc1a1ff3b2f269cbcb.js +1 -0
- mrbasrais/owner-app/_expo/static/js/web/book-7c4c90140093809a35e48a974143bb55.js +1 -0
- mrbasrais/owner-app/_expo/static/js/web/index-572239673a2eda40ce1d7171531ee6dc.js +1 -0
- mrbasrais/owner-app/_expo/static/js/web/index-74667fbd35e0bace18ae40e63063348b.js +3 -0
- mrbasrais/owner-app/_expo/static/js/web/index-7fc09fb9e425fe86489cd7f975b72892.js +16 -0
- mrbasrais/owner-app/_expo/static/js/web/index-e29fcadd43c41415c1d2fc99355d7ac6.js +0 -0
- mrbasrais/owner-app/_expo/static/js/web/index-ea062f48524b23e23943dd0396f5fab4.js +0 -0
- mrbasrais/owner-app/_expo/static/js/web/waitlist-5949dfe032d315503649cf449ffe870a.js +1 -0
- mrbasrais/owner-app/_expo/static/js/web/whatson-dd3d796ea1e77876d5803d9ecd8c1109.js +1 -0
- mrbasrais/owner-app/index.html +1 -1
- mrbasrais/owner-app/owner.html +1 -1
- mrbasrais/owner-app/sw.js +1 -1
- mrbasrais/staff-app/_expo/static/js/web/__common-1d4622fd543a0f6b754f1c2252ecb529.js +0 -0
- mrbasrais/staff-app/_expo/static/js/web/_layout-dd519d6b85ac85450aa52b92740cb147.js +0 -0
- mrbasrais/staff-app/_expo/static/js/web/basket-7c4fed68ce9e0c09c65383c7cef79793.js +1 -0
- mrbasrais/staff-app/_expo/static/js/web/book-7c4c90140093809a35e48a974143bb55.js +1 -0
- mrbasrais/staff-app/_expo/static/js/web/historicalBookingApi-0882cd30208cbd3c9dac9321ada9420d.js +1 -0
- mrbasrais/staff-app/_expo/static/js/web/index-1f746396c4deb547feaa8f79a0063a59.js +0 -0
- mrbasrais/staff-app/_expo/static/js/web/index-5f3b7c7f7f5b5cb1fa7b83dccfa2629d.js +18 -0
- mrbasrais/staff-app/_expo/static/js/web/index-997bc0470ef63b01fb21fb195351458b.js +2 -0
- mrbasrais/staff-app/_expo/static/js/web/index-a8d325e71cfb545e78d104b9bbbd17ea.js +0 -0
- mrbasrais/staff-app/_expo/static/js/web/index-c21267a9b534b341ed4458adcc7f4444.js +1 -0
- mrbasrais/staff-app/_expo/static/js/web/index-e7d08ddd8307cc90502f5624c0ccc0bd.js +0 -0
- mrbasrais/staff-app/_expo/static/js/web/waitlist-7da65cbcea167a5ec8823003e69ae268.js +1 -0
- mrbasrais/staff-app/_expo/static/js/web/whatson-dd3d796ea1e77876d5803d9ecd8c1109.js +1 -0
mrbasrais/display-app/display.html
CHANGED
|
@@ -30,6 +30,6 @@
|
|
| 30 |
<noscript> You need to enable JavaScript to run this app. </noscript>
|
| 31 |
<!-- The root element for your Expo app. -->
|
| 32 |
<div id="root"><div style="position:fixed;inset:0;background:#1A0A0A;display:grid;place-items:center"><img src="/mrbasrais/display-app/brand-hero.png" alt="Mr Basrai's World Cuisine" width="260" height="260" style="display:block;max-width:80vw;height:auto;margin:0 auto;object-fit:contain"><p style="text-align:center;color:#EB6370;font-size:16px">3–7 Beresford Terrace, Ayr, South Ayrshire, KA7 2ER</p></div></div>
|
| 33 |
-
<script src="/mrbasrais/display-app/_expo/static/js/web/__expo-metro-runtime-8c088df87a31e4e6accd81c554ec290d.js" defer></script><script src="/mrbasrais/display-app/_expo/static/js/web/__common-
|
| 34 |
</body>
|
| 35 |
</html>
|
|
|
|
| 30 |
<noscript> You need to enable JavaScript to run this app. </noscript>
|
| 31 |
<!-- The root element for your Expo app. -->
|
| 32 |
<div id="root"><div style="position:fixed;inset:0;background:#1A0A0A;display:grid;place-items:center"><img src="/mrbasrais/display-app/brand-hero.png" alt="Mr Basrai's World Cuisine" width="260" height="260" style="display:block;max-width:80vw;height:auto;margin:0 auto;object-fit:contain"><p style="text-align:center;color:#EB6370;font-size:16px">3–7 Beresford Terrace, Ayr, South Ayrshire, KA7 2ER</p></div></div>
|
| 33 |
+
<script src="/mrbasrais/display-app/_expo/static/js/web/__expo-metro-runtime-8c088df87a31e4e6accd81c554ec290d.js" defer></script><script src="/mrbasrais/display-app/_expo/static/js/web/__common-db2efe2fcf4ae54cfa24e91ac3bd9567.js" defer></script><script src="/mrbasrais/display-app/_expo/static/js/web/index-75fbd9e0c049ff1e971ae8ee46f89dae.js" defer></script>
|
| 34 |
</body>
|
| 35 |
</html>
|
mrbasrais/display-app/index.html
CHANGED
|
@@ -30,6 +30,6 @@
|
|
| 30 |
<noscript> You need to enable JavaScript to run this app. </noscript>
|
| 31 |
<!-- The root element for your Expo app. -->
|
| 32 |
<div id="root"><div style="position:fixed;inset:0;background:#1A0A0A;display:grid;place-items:center"><img src="/mrbasrais/display-app/brand-hero.png" alt="Mr Basrai's World Cuisine" width="260" height="260" style="display:block;max-width:80vw;height:auto;margin:0 auto;object-fit:contain"><p style="text-align:center;color:#EB6370;font-size:16px">3–7 Beresford Terrace, Ayr, South Ayrshire, KA7 2ER</p></div></div>
|
| 33 |
-
<script src="/mrbasrais/display-app/_expo/static/js/web/__expo-metro-runtime-8c088df87a31e4e6accd81c554ec290d.js" defer></script><script src="/mrbasrais/display-app/_expo/static/js/web/__common-
|
| 34 |
</body>
|
| 35 |
</html>
|
|
|
|
| 30 |
<noscript> You need to enable JavaScript to run this app. </noscript>
|
| 31 |
<!-- The root element for your Expo app. -->
|
| 32 |
<div id="root"><div style="position:fixed;inset:0;background:#1A0A0A;display:grid;place-items:center"><img src="/mrbasrais/display-app/brand-hero.png" alt="Mr Basrai's World Cuisine" width="260" height="260" style="display:block;max-width:80vw;height:auto;margin:0 auto;object-fit:contain"><p style="text-align:center;color:#EB6370;font-size:16px">3–7 Beresford Terrace, Ayr, South Ayrshire, KA7 2ER</p></div></div>
|
| 33 |
+
<script src="/mrbasrais/display-app/_expo/static/js/web/__expo-metro-runtime-8c088df87a31e4e6accd81c554ec290d.js" defer></script><script src="/mrbasrais/display-app/_expo/static/js/web/__common-db2efe2fcf4ae54cfa24e91ac3bd9567.js" defer></script><script src="/mrbasrais/display-app/_expo/static/js/web/index-75fbd9e0c049ff1e971ae8ee46f89dae.js" defer></script>
|
| 34 |
</body>
|
| 35 |
</html>
|
mrbasrais/display-app/sw.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
const V="cc-mrbasrais-display-
|
| 2 |
self.addEventListener('install',e=>e.waitUntil(caches.open(V).then(c=>Promise.all(P.map(u=>fetch(u).then(r=>{if(!r.ok)throw Error('cache');return c.put(u,r)})))).then(()=>self.skipWaiting())));
|
| 3 |
self.addEventListener('activate',e=>e.waitUntil(caches.keys().then(ks=>Promise.all(ks.filter(k=>k.startsWith('cc-mrbasrais-display-')&&k!==V).map(k=>caches.delete(k)))).then(()=>self.clients.claim())));
|
| 4 |
self.addEventListener('fetch',e=>{const u=new URL(e.request.url);if(e.request.method!=='GET'||u.origin!==location.origin||!u.pathname.startsWith(B))return;if(e.request.mode==='navigate'){e.respondWith(fetch(e.request).then(r=>r.ok?r:caches.match(B+'index.html')).catch(()=>caches.match(B+'index.html')));return;}e.respondWith(caches.match(e.request).then(r=>r||fetch(e.request)));});
|
|
|
|
| 1 |
+
const V="cc-mrbasrais-display-717e71b83ea8af1a",B="/mrbasrais/display-app/",P=["/mrbasrais/display-app/apple-touch-icon.png", "/mrbasrais/display-app/favicon.ico", "/mrbasrais/display-app/icon-192.png", "/mrbasrais/display-app/icon-512.png", "/mrbasrais/display-app/brand-logo.png", "/mrbasrais/display-app/index.html", "/mrbasrais/display-app/display.html", "/mrbasrais/display-app/manifest.webmanifest", "/mrbasrais/display-app/brand-hero.png", "/mrbasrais/display-app/_expo/static/js/web/basket-7c4fed68ce9e0c09c65383c7cef79793.js", "/mrbasrais/display-app/_expo/static/js/web/index-236395ab2342a73fdeef44a593d009f0.js", "/mrbasrais/display-app/_expo/static/js/web/index-e7d08ddd8307cc90502f5624c0ccc0bd.js", "/mrbasrais/display-app/_expo/static/js/web/feedback-3a26c70c9f758c4e362493c3b124ff43.js", "/mrbasrais/display-app/_expo/static/js/web/[n]-ced785c534ba69ad6c9c35369d7ecc36.js", "/mrbasrais/display-app/_expo/static/js/web/index-f9b07e7c25cec3623c10876ff1e01e58.js", "/mrbasrais/display-app/_expo/static/js/web/[section]-93e8e4ffe952e5b3c505e21ca771e570.js", "/mrbasrais/display-app/_expo/static/js/web/index-a39af53b0c36f30a0cc27647d3da5a52.js", "/mrbasrais/display-app/_expo/static/js/web/loyalty-679d7aa42c3cddfce82c3e1207d2d4cf.js", "/mrbasrais/display-app/_expo/static/js/web/[oid]-7fa4f78cb447d1c659e81fff8893269f.js", "/mrbasrais/display-app/_expo/static/js/web/refer-01535dadf727412eb1a34a61dcc6d53d.js", "/mrbasrais/display-app/_expo/static/js/web/historicalBookingApi-0882cd30208cbd3c9dac9321ada9420d.js", "/mrbasrais/display-app/_expo/static/js/web/[did]-2a2aaaa129307f15140971a22b834cd3.js", "/mrbasrais/display-app/_expo/static/js/web/book-7c4c90140093809a35e48a974143bb55.js", "/mrbasrais/display-app/_expo/static/js/web/demo-6323990816bb686dcab3b33d7e6ec148.js", "/mrbasrais/display-app/_expo/static/js/web/_layout-4277019feaae3b8336032e827ff5ec96.js", "/mrbasrais/display-app/_expo/static/js/web/profile-b82887516ccba728915e95d502c0081a.js", "/mrbasrais/display-app/_expo/static/js/web/offers-eba5409c285b6031064e79e9f1ea19e0.js", "/mrbasrais/display-app/_expo/static/js/web/merch-63634eac687774d71f27698748247bd2.js", "/mrbasrais/display-app/_expo/static/js/web/__expo-metro-runtime-8c088df87a31e4e6accd81c554ec290d.js", "/mrbasrais/display-app/_expo/static/js/web/[token]-6c815095a584dc0399e5918b52874b98.js", "/mrbasrais/display-app/_expo/static/js/web/waitlist-7da65cbcea167a5ec8823003e69ae268.js", "/mrbasrais/display-app/_expo/static/js/web/whatson-dd3d796ea1e77876d5803d9ecd8c1109.js", "/mrbasrais/display-app/_expo/static/js/web/index-c1c9ac942fc6d77c5bdc658c26dfe16e.js", "/mrbasrais/display-app/_expo/static/js/web/gift-eb5daa22c1465e33034a87271e1b8b3b.js", "/mrbasrais/display-app/_expo/static/js/web/index-3c5f820b3b21978c61372b3163c55b0a.js", "/mrbasrais/display-app/_expo/static/js/web/+not-found-585f3164ae74e5ff35af71a4ba7360a3.js", "/mrbasrais/display-app/_expo/static/js/web/index-75fbd9e0c049ff1e971ae8ee46f89dae.js", "/mrbasrais/display-app/_expo/static/js/web/__common-db2efe2fcf4ae54cfa24e91ac3bd9567.js", "/mrbasrais/display-app/_expo/static/js/web/lost-817d2886f8973bfa630e2a69674dc584.js", "/mrbasrais/display-app/_expo/static/js/web/index-c21267a9b534b341ed4458adcc7f4444.js", "/mrbasrais/display-app/_expo/static/js/web/index-837efe1be9c39737e9750ae18a91c7cb.js", "/mrbasrais/display-app/_expo/static/js/web/index-997bc0470ef63b01fb21fb195351458b.js", "/mrbasrais/display-app/assets/node_modules/expo-router/assets/pkg.ab19f4cbc543357183a20571f68380a3.png", "/mrbasrais/display-app/assets/node_modules/expo-router/assets/sitemap.412dd9275b6b48ad28f5e3d81bb1f626.png", "/mrbasrais/display-app/assets/node_modules/expo-router/assets/file.19eeb73b9593a38f8e9f418337fc7d10.png", "/mrbasrais/display-app/assets/node_modules/expo-router/assets/unmatched.20e71bdf79e3a97bf55fd9e164041578.png", "/mrbasrais/display-app/assets/node_modules/expo-router/assets/forward.d8b800c443b8972542883e0b9de2bdc6.png", "/mrbasrais/display-app/assets/node_modules/expo-router/assets/error.d1ea1496f9057eb392d5bbf3732a61b7.png", "/mrbasrais/display-app/assets/node_modules/expo-router/assets/arrow_down.017bc6ba3fc25503e5eb5e53826d48a8.png", "/mrbasrais/display-app/assets/node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@3x.png", "/mrbasrais/display-app/assets/node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7.png", "/mrbasrais/display-app/assets/node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@3x.png", "/mrbasrais/display-app/assets/node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@4x.png", "/mrbasrais/display-app/assets/node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@2x.png", "/mrbasrais/display-app/assets/node_modules/expo-router/assets/react-navigation/elements/search-icon.286d67d3f74808a60a78d3ebf1a5fb57.png", "/mrbasrais/display-app/assets/node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55.png", "/mrbasrais/display-app/assets/node_modules/expo-router/assets/react-navigation/elements/back-icon-mask.0a328cd9c1afd0afe8e3b1ec5165b1b4.png", "/mrbasrais/display-app/assets/node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@2x.png", "/mrbasrais/display-app/assets/node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@4x.png", "/mrbasrais/display-app/assets/node_modules/expo-router/assets/react-navigation/elements/back-icon.35ba0eaec5a4f5ed12ca16fabeae451d.png", "/mrbasrais/display-app/assets/node_modules/@expo-google-fonts/poppins/500Medium/Poppins_500Medium.bf59c687bc6d3a70204d3944082c5cc0.ttf", "/mrbasrais/display-app/assets/node_modules/@expo-google-fonts/poppins/600SemiBold/Poppins_600SemiBold.6f1520d107205975713ba09df778f93f.ttf", "/mrbasrais/display-app/assets/node_modules/@expo-google-fonts/poppins/700Bold/Poppins_700Bold.08c20a487911694291bd8c5de41315ad.ttf", "/mrbasrais/display-app/assets/node_modules/@expo-google-fonts/poppins/400Regular/Poppins_400Regular.093ee89be9ede30383f39a899c485a82.ttf", "/mrbasrais/display-app/assets/assets/specials/sample-chalkboard.e7b4e4450a8483d4219bc6a214158d8f.jpg", "/mrbasrais/display-app/assets/assets/recipes/moules.a4f342fc7e7fb62c8a0b5c1678bbea3f.jpg", "/mrbasrais/display-app/assets/assets/recipes/stp.1061ced765efdcafff2554adc3fc7113.jpg", "/mrbasrais/display-app/assets/assets/recipes/skink.4ce7b7c676f9cdcd0a060eda46f5a00e.jpg", "/mrbasrais/display-app/assets/assets/recipes/fishsupper.1609c58319e1e8721f5c639049fb054e.jpg", "/mrbasrais/display-app/assets/assets/recipes/lobster.2fb3485c8e372972099259017358c1b8.jpg", "/mrbasrais/display-app/assets/assets/brand/wildings.076f4fcd06d19a0af0205c410f461b14.png", "/mrbasrais/display-app/assets/assets/brand/anchorage-hero.0450b828e4f9c1f4456240096598f6f5.png", "/mrbasrais/display-app/assets/assets/brand/3idiots-hero.e5dfd53739f05086b1956e72d585a66a.png", "/mrbasrais/display-app/assets/assets/brand/mrbasrais.7cc4086dd12ace82529795f1c9f8c900.png", "/mrbasrais/display-app/assets/assets/brand/cecchinis.ebf752fef363247848ae7c0d91938765.png", "/mrbasrais/display-app/assets/assets/brand/kirkmichael.63b13cde7fd82eb622622b39ac80c394.png", "/mrbasrais/display-app/assets/assets/brand/3idiots.df4a76d2130f0e5b0042f06a8c88693a.png", "/mrbasrais/display-app/assets/assets/brand/brae.8de9e89ac30966c6669de990370d8e40.png", "/mrbasrais/display-app/assets/assets/brand/rupeeroom-hero.969fa372add526aaacf3a6c009b8ac92.png", "/mrbasrais/display-app/assets/assets/brand/kirkmichael-hero.63b13cde7fd82eb622622b39ac80c394.png", "/mrbasrais/display-app/assets/assets/brand/williewastles.055a77893ced99bf3a6c5402ba5baac6.png", "/mrbasrais/display-app/assets/assets/brand/drunkencoo-hero.65c21c4da9e466cf4bffc969639a1427.png", "/mrbasrais/display-app/assets/assets/brand/pizzaioli-hero.1896657c08264cefb49b401891d5448d.png", "/mrbasrais/display-app/assets/assets/brand/drunkencoo.f6d92af3b14e4205a3deaf4434754c51.png", "/mrbasrais/display-app/assets/assets/brand/smokinggoat.20a3a1970596ab43c5d6468d4ed549a7.png", "/mrbasrais/display-app/assets/assets/brand/greenside.9d1556db97dcb903a3c57e2063ee2255.png", "/mrbasrais/display-app/assets/assets/brand/abbotsford-hero.78fcb8ee06ee22c4ca659c9254db7512.png", "/mrbasrais/display-app/assets/assets/brand/rupeeroom.689e6fb536dc0845eeb174a1ec7bd346.png", "/mrbasrais/display-app/assets/assets/brand/kirkton.bcf8d846df4861474d224a7a77f498fb.png", "/mrbasrais/display-app/assets/assets/brand/anchorage.fea5ce2f6fd18bf2950aa21c0980ed8e.png", "/mrbasrais/display-app/assets/assets/brand/williewastles-hero.b9d53d27b66f903b5618a7177b2ffad4.png", "/mrbasrais/display-app/assets/assets/brand/pizzaioli.db8c000b62ee407121aa8b90ce45e170.png", "/mrbasrais/display-app/assets/assets/brand/yasmins-hero.a5aef62e37dfcecbe0afc056186f4ad9.png", "/mrbasrais/display-app/assets/assets/brand/wildings-hero-logo-text.4661e4b935726f2511f9c17a1567c89a.png", "/mrbasrais/display-app/assets/assets/brand/yasmins.8482602e9f0a965655924835625cb02b.png", "/mrbasrais/display-app/assets/assets/brand/kirkton-hero.9d0837b292c2f4f30f4521d806bb28c3.png", "/mrbasrais/display-app/assets/assets/brand/saltmarsh.85a6a65732635e5148478d743d9ca884.png", "/mrbasrais/display-app/assets/assets/brand/souters.f4c58d9349b6e1700fe5abcc9e9b665c.png", "/mrbasrais/display-app/assets/assets/brand/greenside-hero.1caec5a6cb939434cccb5f3a613b50f8.png", "/mrbasrais/display-app/assets/assets/brand/abbotsford.b26602bba5ce4969733c5422a45ad053.png", "/mrbasrais/display-app/assets/assets/brand/smokinggoat-hero.0588f17ef0eed7f757f22916cd4d37db.png", "/mrbasrais/display-app/assets/assets/brand/cecchinis-hero.f77780fcc94fd668cf35d66d6dc52d81.png", "/mrbasrais/display-app/assets/assets/brand/mrbasrais-hero.4ce74641cfcf52d099157c84005b9d2a.png"];
|
| 2 |
self.addEventListener('install',e=>e.waitUntil(caches.open(V).then(c=>Promise.all(P.map(u=>fetch(u).then(r=>{if(!r.ok)throw Error('cache');return c.put(u,r)})))).then(()=>self.skipWaiting())));
|
| 3 |
self.addEventListener('activate',e=>e.waitUntil(caches.keys().then(ks=>Promise.all(ks.filter(k=>k.startsWith('cc-mrbasrais-display-')&&k!==V).map(k=>caches.delete(k)))).then(()=>self.clients.claim())));
|
| 4 |
self.addEventListener('fetch',e=>{const u=new URL(e.request.url);if(e.request.method!=='GET'||u.origin!==location.origin||!u.pathname.startsWith(B))return;if(e.request.mode==='navigate'){e.respondWith(fetch(e.request).then(r=>r.ok?r:caches.match(B+'index.html')).catch(()=>caches.match(B+'index.html')));return;}e.respondWith(caches.match(e.request).then(r=>r||fetch(e.request)));});
|
mrbasrais/get/chef.html
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
<!doctype html><html lang="en-GB"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="robots" content="noindex,nofollow"><meta name="theme-color" content="#1A0A0A"><title>Mr Basrai's World Cuisine · Head Chef</title><style>body{margin:0;background:#1A0A0A;color:#F5F1E8;font:18px system-ui;padding:24px}a{display:inline-flex;align-items:center;min-height:48px;color:#EB6370;padding:8px 12px}button{min-height:48px}</style></head><body><img src="/mrbasrais/chef-app/brand-hero.png" alt="Mr Basrai's World Cuisine" width="260" height="260" style="display:block;max-width:80vw;height:auto;margin:0 auto;object-fit:contain"><p style="text-align:center;color:#EB6370;font-size:16px">3–7 Beresford Terrace, Ayr, South Ayrshire, KA7 2ER</p><h1>Head Chef</h1><p><a href="/mrbasrais/chef-app/index.html">Open Head Chef</a></p><p>Open in Chrome or Safari. Use the browser menu to add to your Home Screen.</p><p>No personal link or pairing code is included. Manager setup is required for team access.</p><small>v0.3.12.
|
|
|
|
| 1 |
+
<!doctype html><html lang="en-GB"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="robots" content="noindex,nofollow"><meta name="theme-color" content="#1A0A0A"><title>Mr Basrai's World Cuisine · Head Chef</title><style>body{margin:0;background:#1A0A0A;color:#F5F1E8;font:18px system-ui;padding:24px}a{display:inline-flex;align-items:center;min-height:48px;color:#EB6370;padding:8px 12px}button{min-height:48px}</style></head><body><img src="/mrbasrais/chef-app/brand-hero.png" alt="Mr Basrai's World Cuisine" width="260" height="260" style="display:block;max-width:80vw;height:auto;margin:0 auto;object-fit:contain"><p style="text-align:center;color:#EB6370;font-size:16px">3–7 Beresford Terrace, Ayr, South Ayrshire, KA7 2ER</p><h1>Head Chef</h1><p><a href="/mrbasrais/chef-app/index.html">Open Head Chef</a></p><p>Open in Chrome or Safari. Use the browser menu to add to your Home Screen.</p><p>No personal link or pairing code is included. Manager setup is required for team access.</p><small>v0.3.12.84</small></body></html>
|
mrbasrais/get/customer.html
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
<!doctype html><html lang="en-GB"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="robots" content="noindex,nofollow"><meta name="theme-color" content="#1A0A0A"><title>Mr Basrai's World Cuisine · Customer</title><style>body{margin:0;background:#1A0A0A;color:#F5F1E8;font:18px system-ui;padding:24px}a{display:inline-flex;align-items:center;min-height:48px;color:#EB6370;padding:8px 12px}button{min-height:48px}</style></head><body><img src="/mrbasrais/customer-app/brand-hero.png" alt="Mr Basrai's World Cuisine" width="260" height="260" style="display:block;max-width:80vw;height:auto;margin:0 auto;object-fit:contain"><p style="text-align:center;color:#EB6370;font-size:16px">3–7 Beresford Terrace, Ayr, South Ayrshire, KA7 2ER</p><h1>Customer</h1><p><a href="/mrbasrais/customer-app/index.html">Open Customer</a></p><p>Open in Chrome or Safari. Use the browser menu to add to your Home Screen.</p><p>No personal link or pairing code is included. Manager setup is required for team access.</p><small>v0.3.12.
|
|
|
|
| 1 |
+
<!doctype html><html lang="en-GB"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="robots" content="noindex,nofollow"><meta name="theme-color" content="#1A0A0A"><title>Mr Basrai's World Cuisine · Customer</title><style>body{margin:0;background:#1A0A0A;color:#F5F1E8;font:18px system-ui;padding:24px}a{display:inline-flex;align-items:center;min-height:48px;color:#EB6370;padding:8px 12px}button{min-height:48px}</style></head><body><img src="/mrbasrais/customer-app/brand-hero.png" alt="Mr Basrai's World Cuisine" width="260" height="260" style="display:block;max-width:80vw;height:auto;margin:0 auto;object-fit:contain"><p style="text-align:center;color:#EB6370;font-size:16px">3–7 Beresford Terrace, Ayr, South Ayrshire, KA7 2ER</p><h1>Customer</h1><p><a href="/mrbasrais/customer-app/index.html">Open Customer</a></p><p>Open in Chrome or Safari. Use the browser menu to add to your Home Screen.</p><p>No personal link or pairing code is included. Manager setup is required for team access.</p><small>v0.3.12.84</small></body></html>
|
mrbasrais/get/display.html
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
<!doctype html><html lang="en-GB"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="robots" content="noindex,nofollow"><meta name="theme-color" content="#1A0A0A"><title>Mr Basrai's World Cuisine · Display</title><style>body{margin:0;background:#1A0A0A;color:#F5F1E8;font:18px system-ui;padding:24px}a{display:inline-flex;align-items:center;min-height:48px;color:#EB6370;padding:8px 12px}button{min-height:48px}</style></head><body><img src="/mrbasrais/display-app/brand-hero.png" alt="Mr Basrai's World Cuisine" width="260" height="260" style="display:block;max-width:80vw;height:auto;margin:0 auto;object-fit:contain"><p style="text-align:center;color:#EB6370;font-size:16px">3–7 Beresford Terrace, Ayr, South Ayrshire, KA7 2ER</p><h1>Display</h1><p><a href="/mrbasrais/display-app/index.html">Open Display</a></p><p>Open in Chrome or Safari. Use the browser menu to add to your Home Screen.</p><p>No personal link or pairing code is included. Manager setup is required for team access.</p><small>v0.3.12.
|
|
|
|
| 1 |
+
<!doctype html><html lang="en-GB"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="robots" content="noindex,nofollow"><meta name="theme-color" content="#1A0A0A"><title>Mr Basrai's World Cuisine · Display</title><style>body{margin:0;background:#1A0A0A;color:#F5F1E8;font:18px system-ui;padding:24px}a{display:inline-flex;align-items:center;min-height:48px;color:#EB6370;padding:8px 12px}button{min-height:48px}</style></head><body><img src="/mrbasrais/display-app/brand-hero.png" alt="Mr Basrai's World Cuisine" width="260" height="260" style="display:block;max-width:80vw;height:auto;margin:0 auto;object-fit:contain"><p style="text-align:center;color:#EB6370;font-size:16px">3–7 Beresford Terrace, Ayr, South Ayrshire, KA7 2ER</p><h1>Display</h1><p><a href="/mrbasrais/display-app/index.html">Open Display</a></p><p>Open in Chrome or Safari. Use the browser menu to add to your Home Screen.</p><p>No personal link or pairing code is included. Manager setup is required for team access.</p><small>v0.3.12.84</small></body></html>
|
mrbasrais/get/managers.html
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
<!doctype html><html lang="en-GB"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="robots" content="noindex,nofollow"><meta name="theme-color" content="#1A0A0A"><title>Mr Basrai's World Cuisine · Managers</title><style>body{margin:0;background:#1A0A0A;color:#F5F1E8;font:18px system-ui;padding:24px}a{display:inline-flex;align-items:center;min-height:48px;color:#EB6370;padding:8px 12px}button{min-height:48px}</style></head><body><img src="/mrbasrais/owner-app/brand-hero.png" alt="Mr Basrai's World Cuisine" width="260" height="260" style="display:block;max-width:80vw;height:auto;margin:0 auto;object-fit:contain"><p style="text-align:center;color:#EB6370;font-size:16px">3–7 Beresford Terrace, Ayr, South Ayrshire, KA7 2ER</p><h1>Managers</h1><p><a href="/mrbasrais/owner-app/index.html">Open Managers</a></p><p>Open in Chrome or Safari. Use the browser menu to add to your Home Screen.</p><p>No personal link or pairing code is included. Manager setup is required for team access.</p><small>v0.3.12.
|
|
|
|
| 1 |
+
<!doctype html><html lang="en-GB"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="robots" content="noindex,nofollow"><meta name="theme-color" content="#1A0A0A"><title>Mr Basrai's World Cuisine · Managers</title><style>body{margin:0;background:#1A0A0A;color:#F5F1E8;font:18px system-ui;padding:24px}a{display:inline-flex;align-items:center;min-height:48px;color:#EB6370;padding:8px 12px}button{min-height:48px}</style></head><body><img src="/mrbasrais/owner-app/brand-hero.png" alt="Mr Basrai's World Cuisine" width="260" height="260" style="display:block;max-width:80vw;height:auto;margin:0 auto;object-fit:contain"><p style="text-align:center;color:#EB6370;font-size:16px">3–7 Beresford Terrace, Ayr, South Ayrshire, KA7 2ER</p><h1>Managers</h1><p><a href="/mrbasrais/owner-app/index.html">Open Managers</a></p><p>Open in Chrome or Safari. Use the browser menu to add to your Home Screen.</p><p>No personal link or pairing code is included. Manager setup is required for team access.</p><small>v0.3.12.84</small></body></html>
|
mrbasrais/get/staff.html
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
<!doctype html><html lang="en-GB"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="robots" content="noindex,nofollow"><meta name="theme-color" content="#1A0A0A"><title>Mr Basrai's World Cuisine · Staff</title><style>body{margin:0;background:#1A0A0A;color:#F5F1E8;font:18px system-ui;padding:24px}a{display:inline-flex;align-items:center;min-height:48px;color:#EB6370;padding:8px 12px}button{min-height:48px}</style></head><body><img src="/mrbasrais/staff-app/brand-hero.png" alt="Mr Basrai's World Cuisine" width="260" height="260" style="display:block;max-width:80vw;height:auto;margin:0 auto;object-fit:contain"><p style="text-align:center;color:#EB6370;font-size:16px">3–7 Beresford Terrace, Ayr, South Ayrshire, KA7 2ER</p><h1>Staff</h1><p><a href="/mrbasrais/staff-app/index.html">Open Staff</a></p><p>Open in Chrome or Safari. Use the browser menu to add to your Home Screen.</p><p>No personal link or pairing code is included. Manager setup is required for team access.</p><small>v0.3.12.
|
|
|
|
| 1 |
+
<!doctype html><html lang="en-GB"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="robots" content="noindex,nofollow"><meta name="theme-color" content="#1A0A0A"><title>Mr Basrai's World Cuisine · Staff</title><style>body{margin:0;background:#1A0A0A;color:#F5F1E8;font:18px system-ui;padding:24px}a{display:inline-flex;align-items:center;min-height:48px;color:#EB6370;padding:8px 12px}button{min-height:48px}</style></head><body><img src="/mrbasrais/staff-app/brand-hero.png" alt="Mr Basrai's World Cuisine" width="260" height="260" style="display:block;max-width:80vw;height:auto;margin:0 auto;object-fit:contain"><p style="text-align:center;color:#EB6370;font-size:16px">3–7 Beresford Terrace, Ayr, South Ayrshire, KA7 2ER</p><h1>Staff</h1><p><a href="/mrbasrais/staff-app/index.html">Open Staff</a></p><p>Open in Chrome or Safari. Use the browser menu to add to your Home Screen.</p><p>No personal link or pairing code is included. Manager setup is required for team access.</p><small>v0.3.12.84</small></body></html>
|
mrbasrais/index.html
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
<!doctype html><html lang="en-GB"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="robots" content="noindex,nofollow"><meta name="theme-color" content="#1A0A0A"><title>Mr Basrai's World Cuisine · CoverCharge</title><style>body{margin:0;background:#1A0A0A;color:#F5F1E8;font:18px system-ui;padding:24px}a{display:inline-flex;align-items:center;min-height:48px;color:#EB6370;padding:8px 12px}button{min-height:48px}</style></head><body><img src="customer-app/brand-hero.png" alt="Mr Basrai's World Cuisine" width="260" height="260" style="display:block;max-width:80vw;height:auto;margin:0 auto;object-fit:contain"><p style="text-align:center;color:#EB6370;font-size:16px">3–7 Beresford Terrace, Ayr, South Ayrshire, KA7 2ER</p><h1>CoverCharge apps</h1><p><a href="get/managers.html">Managers</a></p><p><a href="get/staff.html">Staff</a></p><p><a href="get/chef.html">Head Chef</a></p><p><a href="get/display.html">Display</a></p><p><a href="get/customer.html">Customer</a></p><small>v0.3.12.
|
|
|
|
| 1 |
+
<!doctype html><html lang="en-GB"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="robots" content="noindex,nofollow"><meta name="theme-color" content="#1A0A0A"><title>Mr Basrai's World Cuisine · CoverCharge</title><style>body{margin:0;background:#1A0A0A;color:#F5F1E8;font:18px system-ui;padding:24px}a{display:inline-flex;align-items:center;min-height:48px;color:#EB6370;padding:8px 12px}button{min-height:48px}</style></head><body><img src="customer-app/brand-hero.png" alt="Mr Basrai's World Cuisine" width="260" height="260" style="display:block;max-width:80vw;height:auto;margin:0 auto;object-fit:contain"><p style="text-align:center;color:#EB6370;font-size:16px">3–7 Beresford Terrace, Ayr, South Ayrshire, KA7 2ER</p><h1>CoverCharge apps</h1><p><a href="get/managers.html">Managers</a></p><p><a href="get/staff.html">Staff</a></p><p><a href="get/chef.html">Head Chef</a></p><p><a href="get/display.html">Display</a></p><p><a href="get/customer.html">Customer</a></p><small>v0.3.12.84</small></body></html>
|
mrbasrais/owner-app/_expo/static/js/web/__common-60039f4adacaba8b157505e543943fb6.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
mrbasrais/owner-app/_expo/static/js/web/_layout-d020cc07482ec9ecaacbefb0f8a9e88f.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return M}}),r(_d[0]),r(_d[1]);var t=r(_d[2]),s=r(_d[3]),o=r(_d[4]),n=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(s){if('default'!==s){var o=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,o.get?o:{enumerable:!0,get:function(){return e[s]}})}}),t.default=e,t})(r(_d[5])),u=r(_d[6]),l=r(_d[7]),c=e(r(_d[8])),d=e(r(_d[9]));r(_d[10]);var f=e(r(_d[11])),p=e(r(_d[12])),y=r(_d[13]),h=r(_d[14]),S=r(_d[15]),O=r(_d[16]),P=r(_d[17]),_=r(_d[18]),j=r(_d[19]),b=r(_d[20]),w=r(_d[21]),x=r(_d[22]),E=r(_d[23]),v=r(_d[24]);r(_d[25]);var k=r(_d[26]),A=r(_d[27]),H=r(_d[28]),T=r(_d[29]),R=r(_d[30]),I=r(_d[31]),B=r(_d[32]),C=r(_d[33]);const F=r(_d[34]),V=r(_d[35]),N=r(_d[36]),L=r(_d[37]);function M(){const[e]=(0,t.useFonts)({Poppins_400Regular:F,Poppins_500Medium:V,Poppins_600SemiBold:N,Poppins_700Bold:L}),[x,R]=(0,l.useState)(P.useStore.persist.hasHydrated()),[I,B]=(0,l.useState)(j.useOwner.persist.hasHydrated()),M=x&&I;(0,l.useEffect)(()=>{const e=P.useStore.persist.onFinishHydration(()=>R(!0)),t=j.useOwner.persist.onFinishHydration(()=>B(!0));return P.useStore.persist.hasHydrated()&&R(!0),j.useOwner.persist.hasHydrated()&&B(!0),()=>{e(),t()}},[]),(0,l.useEffect)(()=>{if('undefined'==typeof window)return;const e=e=>{e.key===(0,y.venueKey)(P.useStore.persist.getOptions().name??'')&&(0,v.quietly)(()=>P.useStore.persist.rehydrate()),e.key===(0,y.venueKey)(_.useFloor.persist.getOptions().name??'')&&(0,v.quietly)(()=>_.useFloor.persist.rehydrate()),e.key===(0,y.venueKey)(s.useBlocks.persist.getOptions().name??'')&&(0,v.quietly)(()=>s.useBlocks.persist.rehydrate())};return window.addEventListener('storage',e),()=>window.removeEventListener('storage',e)},[]),(0,l.useEffect)(()=>{M&&j.useOwner.getState().syncRoster()},[M]),(0,l.useEffect)(()=>{M&&(0,E.startAppSync)()},[M]);const G=e&&M,U=(0,w.useSignedOutGate)(),q=(0,o.usePathname)(),D=G&&!(0,S.isAllowedPath)(q||'/');return(0,l.useEffect)(()=>{if(!D)return;const e=setTimeout(()=>o.router.replace(S.ENTRY[S.APP_VARIANT]),0);return()=>clearTimeout(e)},[D,q]),(0,l.useEffect)(()=>{G&&n.hideAsync().catch(()=>{})},[G]),G?(0,C.jsxs)(O.SafeAreaProvider,{children:[(0,C.jsx)(u.StatusBar,{style:"light"}),U?(0,C.jsx)(p.default,{style:{flex:1,backgroundColor:b.colours.bg}}):(0,C.jsx)(p.default,{style:{flex:1},children:(0,C.jsx)(o.Stack,{screenOptions:{headerShown:!1,contentStyle:{backgroundColor:b.colours.bg}}})}),D&&!U?(0,C.jsx)(p.default,{style:[f.default.absoluteFill,{backgroundColor:b.colours.bg}]}):null,D||U?null:(0,C.jsx)(H.VoiceHost,{}),U?null:(0,C.jsx)(k.SyncBadge,{}),D||U?null:(0,C.jsx)(A.PushPrompt,{}),(0,C.jsx)(w.InviteGate,{}),D||U?null:(0,C.jsx)(T.SliderHost,{})]}):(0,C.jsxs)(p.default,{style:{flex:1,backgroundColor:b.colours.bg,alignItems:'center',justifyContent:'center',gap:18},children:[h.HERO_LOGOS[y.VENUE_RID]?(0,C.jsx)(d.default,{source:h.HERO_LOGOS[y.VENUE_RID],accessibilityLabel:"Venue logo",style:{width:180,height:180},resizeMode:"contain"}):null,(0,C.jsx)(c.default,{color:b.colours.gold})]})}R.PITCH&&(globalThis.__pitch={appVariant:S.APP_VARIANT,useStore:P.useStore,useOwner:j.useOwner,useFloor:_.useFloor,useBlocks:s.useBlocks,useSession:x.useSession,useCashUp:I.useCashUp,seedPitch:B.seedPitch},setTimeout(()=>{try{(0,B.seedPitch)()}catch(e){console.warn('pitch seed',e)}},1500)),x.START_INVITE,n.preventAutoHideAsync().catch(()=>{})},802,[1121,880,1082,824,804,1109,567,30,246,196,122,46,127,5,860,806,289,819,825,854,821,956,858,820,1122,1111,1112,1113,1114,1123,2,983,1116,24,1117,1118,1119,1120]);
|
| 2 |
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"useFonts",{enumerable:!0,get:function(){return o.useFonts}});var t=r(d[0]);Object.keys(t).forEach(function(n){'default'===n||Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})});var n=r(d[1]);Object.keys(n).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})});var o=r(d[2])},1082,[1083,1106,1108]);
|
| 3 |
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"FontDisplay",{enumerable:!0,get:function(){return y.FontDisplay}}),_e.isLoaded=F,_e.getLoadedFonts=function(){return t.default.getLoadedFonts()},_e.isLoading=function(e){return e in c.loadPromises},_e.loadAsync=function(e,n){const t='undefined'==typeof window;if(Array.isArray(e)){if(n)return Promise.reject(new o.CodedError("ERR_FONT_API",`No fontFamily can be used for the provided source: ${n}. The second argument of \`loadAsync()\` can only be used with a \`string\` value as the first argument.`));const s=e;if(t){(0,l.assertValidFontFamilyDefinitions)(s);for(const{fontFamily:e,fontDefinitions:o}of s){(0,l.assertValidFontFaces)(e,o);for(const n of o)(0,u.registerStaticFont)(e,(0,f.fontSourceFromFace)(n))}return Promise.resolve()}try{(0,l.assertValidFontFamilyDefinitions)(s)}catch(e){return Promise.reject(e)}return Promise.all(s.map(w)).then(()=>{})}if('object'==typeof e){if(n)return Promise.reject(new o.CodedError("ERR_FONT_API",`No fontFamily can be used for the provided source: ${n}. The second argument of \`loadAsync()\` can only be used with a \`string\` value as the first argument.`));const s=e,l=Object.keys(s);return t?(l.map(e=>(0,u.registerStaticFont)(e,s[e])),Promise.resolve()):Promise.all(l.map(e=>h(e,s[e]))).then(()=>{})}if(t)return(0,u.registerStaticFont)(e,n),Promise.resolve();return h(e,n)},_e.unloadAllAsync=async function(){if(!t.default.unloadAllAsync)throw new o.UnavailabilityError('expo-font','unloadAllAsync');if(Object.keys(c.loadPromises).length)throw new o.CodedError("ERR_UNLOAD",`Cannot unload fonts while they're still loading: ${Object.keys(c.loadPromises).join(', ')}`);(0,c.purgeCache)(),await t.default.unloadAllAsync()},_e.unloadAsync=async function(e,n){if(!t.default.unloadAsync)throw new o.UnavailabilityError('expo-font','unloadAsync');if('object'==typeof e){if(n)throw new o.CodedError("ERR_FONT_API",`No fontFamily can be used for the provided options: ${n}. The second argument of \`unloadAsync()\` can only be used with a \`string\` value as the first argument.`);const t=e,s=Object.keys(t);return void await Promise.all(s.map(e=>p(e,t[e])))}return await p(e,n)};var e,o=r(d[0]),n=r(d[1]),t=(e=n)&&e.__esModule?e:{default:e},s=r(d[2]),l=r(d[3]),f=r(d[4]),c=r(d[5]),u=r(d[6]),y=r(d[7]);function F(e){if('function'!=typeof t.default.isLoaded)throw new Error("expected ExpoFontLoader.isLoaded to be a function, was "+typeof t.default.isLoaded);return(0,c.isLoadedInCache)(e)||t.default.isLoaded(e)}async function w(e){const{fontFamily:o,fontDefinitions:n}=e;if((0,l.assertValidFontFaces)(o,n),c.loadPromises.hasOwnProperty(o))return c.loadPromises[o];F(o)||(c.loadPromises[o]=(async()=>{try{await(0,s.loadFontFamilyAsync)(o,n),(0,c.markLoaded)(o)}finally{delete c.loadPromises[o]}})(),await c.loadPromises[o])}async function h(e,n){if(!n)throw new o.CodedError("ERR_FONT_SOURCE",`Cannot load null or undefined font source: { "${e}": ${n} }. Expected asset of type \`FontSource\` for fontFamily of name: "${e}"`);if(c.loadPromises.hasOwnProperty(e))return c.loadPromises[e];if(F(e))return;const t=(0,s.getAssetForSource)(n);c.loadPromises[e]=(async()=>{try{await(0,s.loadSingleFontAsync)(e,t),(0,c.markLoaded)(e)}finally{delete c.loadPromises[e]}})(),await c.loadPromises[e]}async function p(e,n){if(F(e)){if((0,c.purgeFontFamilyFromCache)(e),!e)throw new o.CodedError("ERR_FONT_FAMILY","Cannot unload an empty name");if(!t.default.unloadAsync)throw new o.UnavailabilityError('expo-font','unloadAsync');await t.default.unloadAsync(e,n)}}},1083,[301,1084,1087,1101,1102,1103,1104,1105]);
|
| 4 |
+
__d(function(g,r,_i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return p}}),e._matchesFontFaceOptions=l,e._fontFaceRuleSrcMatches=f,e._createWebFontTemplate=R;var t=r(d[0]),n=r(d[1]);function s(){if('undefined'==typeof window)return null;const t=S();return t.sheet?t.sheet:null}function o(){const t=s();if(t){const n=[...t.cssRules],s=[];for(let t=0;t<n.length;t++){const o=n[t];o instanceof CSSFontFaceRule&&s.push({rule:o,index:t})}return s}return[]}function i(t){const n=t?.trim();if(!n)return'';const s=n[0];return n.length>=2&&('"'===s||"'"===s)&&n.endsWith(s)?n.slice(1,-1).replace(/\\(.)/g,'$1'):n}function u(t){if(null==t||''===t)return;if('number'==typeof t)return Number.isFinite(t)?t:void 0;const n=t.trim().toLowerCase();if('normal'===n)return 400;if('bold'===n)return 700;const s=Number(n);return Number.isFinite(s)?s:n}function l(t,n,s){return i(t.style.fontFamily)===n&&((!s?.display||s.display===t.style.fontDisplay)&&((null==s?.weight||u(s.weight)===u(t.style.fontWeight))&&(null==s?.style||s.style===t.style.fontStyle)))}function c(t,n){return o().filter(({rule:s})=>l(s,t,n))}function f(t,n){const s=t.style.getPropertyValue('src').match(/url\((['"]?)([^'")]*)\1\)/);if(!s)return!0;let o=s[2]??'';try{o=decodeURIComponent(o)}catch{}return o===String(n)}const a={async unloadAllAsync(){if('undefined'==typeof window)return;const t=document.getElementById(w);t&&t instanceof HTMLStyleElement&&document.removeChild(t)},async unloadAsync(t,n){const o=s();if(!o)return;const i=[...c(t,n)].sort((t,n)=>n.index-t.index);for(const t of i)o.deleteRule(t.index)},getServerResources:()=>(0,n.getServerResourceDescriptors)().map(t=>{switch(t.type){case'style':return`<style id="${t.id}">${t.css}</style>`;case'link':return`<link rel="${t.rel}" href="${t.href}" as="${t.as}" crossorigin="${t.crossOrigin}" />`;default:return''}}).filter(Boolean),getServerResourceDescriptors:()=>(0,n.getServerResourceDescriptors)(),getLoadedFonts(){if('undefined'==typeof window)return(0,n.getLoadedServerFonts)();const t=new Set,s=[];for(const{rule:n}of o()){const o=i(n.style.fontFamily);t.has(o)||(t.add(o),s.push(o))}return s},isLoaded:(t,s={})=>'undefined'==typeof window?(0,n.isServerFontLoaded)(t):c(t,s)?.length>0,loadAsync(s,o){if('undefined'==typeof window)return(0,n.addServerFont)({name:s,css:R(s,o),resourceId:o.uri}),Promise.resolve();if(!(document.head&&'function'==typeof document.head.appendChild))throw new t.CodedError('ERR_WEB_ENVIRONMENT',"The browser's `document.head` element doesn't support injecting fonts.");const i=S();i.isConnected||document.head.appendChild(i);if(c(s,o).some(({rule:t})=>f(t,o.uri))||b(s,o),'function'!=typeof document.fonts?.load)return Promise.resolve();let u='';return'string'==typeof o.style&&$.test(o.style)&&(u+=`${o.style} `),('number'==typeof o.weight&&Number.isFinite(o.weight)||'string'==typeof o.weight&&($.test(o.weight)||F.test(o.weight)&&!o.weight.includes(' ')))&&(u+=`${o.weight} `),h(document.fonts.load(`${u}1em ${JSON.stringify(s)}`),s)}},y=12e3;function h(n,s){let o;const i=new Promise((n,i)=>{o=setTimeout(()=>{i(new t.CodedError('ERR_DOWNLOAD',`Fetching the font family "${s}" timed out after ${y}ms. Check that the font URL is reachable and served with CORS headers.`))},y)});return Promise.race([n,i]).finally(()=>clearTimeout(o)).then(()=>{})}var p='undefined'==typeof window?a:(0,t.registerWebModule)(function(){return a},'ExpoFontLoader');const w='expo-generated-fonts';function S(){const t=document.getElementById(w);if(t&&t instanceof HTMLStyleElement)return t;const n=document.createElement('style');return n.id=w,n}const $=/^[a-zA-Z_-][\w-]*$/,F=/^(1000|[1-9]\d{0,2})( (1000|[1-9]\d{0,2}))?$/;function R(t,n){const s=[`font-family:${JSON.stringify(t)}`,`src:url(${JSON.stringify(n.uri)})`];return'string'==typeof n.display&&$.test(n.display)&&s.push(`font-display:${n.display}`),('number'==typeof n.weight&&Number.isFinite(n.weight)||'string'==typeof n.weight&&($.test(n.weight)||F.test(n.weight)))&&s.push(`font-weight:${n.weight}`),'string'==typeof n.style&&$.test(n.style)&&s.push(`font-style:${n.style}`),`@font-face{${s.join(';')}}`}function b(t,n){const s=R(t,n),o=S();if(o.styleSheet){const t=o;t.styleSheet.cssText=t.styleSheet.cssText?t.styleSheet.cssText+s:s}else if(o.sheet)o.sheet.insertRule(s,o.sheet.cssRules.length);else{const t=document.createTextNode(s);o.appendChild(t)}return o}},1084,[301,1085]);
|
| 5 |
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.withServerContext=function(n){if('undefined'!=typeof window)return n();return s().run(new Map,n)},e.addServerFont=function(n){const t=u();t.has(n.css)||t.set(n.css,n)},e.getServerResourceDescriptors=function(){const n=[...u().values()];if(!n.length)return[];const o=n.map(({css:n})=>n).join('\n'),s=[...new Set(n.map(({resourceId:n})=>n))];return[{css:o,id:t,type:'style'},...s.map(n=>({as:'font',crossOrigin:'',href:n,rel:'preload',type:'link'}))]},e.getLoadedServerFonts=function(){const n=s().getStore();if(!n)return[];return[...new Set([...n.values()].map(({name:n})=>n))]},e.isServerFontLoaded=function(n){const t=s().getStore();if(!t)return!1;for(const o of t.values())if(o.name===n)return!0;return!1};var n=r(d[0]);const t='expo-generated-fonts';let o=null;function s(){if('undefined'!=typeof window)throw new Error('expo-font server context is server-only and cannot be used in the browser.');return o||(o=new n.AsyncLocalStorage),o}function u(){const n=s().getStore();if(!n)throw new Error("expo-font server context accessed outside of withServerContext(). Wrap your server-side font usage in withServerContext(() => /* server code */).");return n}},1085,[1086]);
|
| 6 |
+
__d(function(g,r,i,a,m,e,d){},1086,[]);
|
| 7 |
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.getAssetForSource=p,_e.loadFontFamilyAsync=async function(t,e){await Promise.all(e.map(e=>{const o=p((0,f.fontSourceFromFace)(e));return j(t,o)}))},_e.loadSingleFontAsync=j;var t,e=r(d[0]),o=r(d[1]),n=r(d[2]),u=(t=n)&&t.__esModule?t:{default:t};r(d[3]);var f=r(d[4]);function s(t){return'string'==typeof t?t||null:'number'==typeof t?s(e.Asset.fromModule(t)):'object'==typeof t&&'number'==typeof t.uri?s(t.uri):'object'==typeof t&&(t.uri||t.localUri||t.default)||null}function c(t){if('object'==typeof t&&'display'in t)return t.display??void 0}function l(t){if('object'==typeof t&&'weight'in t)return t.weight??void 0}function y(t){if('object'==typeof t&&'style'in t)return t.style??void 0}function p(t){const e=s(t),o=c(t),n=l(t),u=y(t);return e&&'string'==typeof e||b(e),{uri:e,display:o,weight:n,style:u}}function b(t){let e=typeof t;throw'object'===e&&(e=JSON.stringify(t,null,2)),new o.CodedError("ERR_FONT_SOURCE",`Expected font asset of type \`string | FontResource | Asset\` instead got: ${e}`)}function j(t,e){return('object'!=typeof e||'string'!=typeof e.uri||e.downloadAsync)&&b(e),u.default.loadAsync(t,e)}},1087,[1088,301,1084,1101,1102]);
|
| 8 |
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),r(d[0]);var t=r(d[1]);Object.keys(t).forEach(function(n){'default'===n||Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})});var n=r(d[2]);Object.keys(n).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})})},1088,[1089,1090,1100]);
|
| 9 |
+
__d(function(g,r,i,a,m,_e,d){"use strict";var e,t=r(d[0]),s=r(d[1]),u=r(d[2]),o=(e=u)&&e.__esModule?e:{default:e};if(s.IS_ENV_WITH_LOCAL_ASSETS){(o.default.setCustomSourceTransformer||u.setCustomSourceTransformer)(function(e){try{if('fileHashes'in e.asset&&e.asset.fileHashes){const s=t.Asset.fromMetadata(e.asset);return s.uri.startsWith(t.ANDROID_EMBEDDED_URL_BASE_RESOURCE)?e.resourceIdentifierWithoutScale():e.fromSource(s.downloaded?s.localUri:s.uri)}return e.defaultAsset()}catch{return e.defaultAsset()}})}},1089,[1090,1094,1099]);
|
| 10 |
+
__d(function(g,r,i,a,m,_e,_d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}function e(t){if(t&&t.__esModule)return t;var e={};return t&&Object.keys(t).forEach(function(s){if('default'!==s){var n=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,n.get?n:{enumerable:!0,get:function(){return t[s]}})}}),e.default=t,e}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"ANDROID_EMBEDDED_URL_BASE_RESOURCE",{enumerable:!0,get:function(){return y}}),Object.defineProperty(_e,"Asset",{enumerable:!0,get:function(){return w}}),r(_d[0]);var s=t(r(_d[1])),n=r(_d[2]),h=e(r(_d[3])),o=r(_d[4]),l=e(r(_d[5])),u=r(_d[6]),d=r(_d[7]),c=t(r(_d[8]));function f(t){return!!t&&'object'==typeof t&&'uri'in t&&'string'==typeof t.uri}const y='file:///android_res/';class w{static byHash={};static byUri={};hash=null;localUri=null;width=null;height=null;downloading=!1;downloaded=!1;_downloadCallbacks=[];constructor({name:t,type:e,hash:s=null,uri:n,width:o,height:l}){this.name=t,this.type=e,this.hash=s,this.uri=n,'number'==typeof o&&(this.width=o),'number'==typeof l&&(this.height=l),s&&(this.localUri=(0,u.getLocalAssetUri)(s,e),this.localUri?.startsWith(y)?(this.uri=this.localUri,this.localUri=null):this.localUri&&(this.downloaded=!0)),t||(this.name=h.getFilename(n)),e||(this.type=h.getFileExtension(n))}static loadAsync(t){const e=Array.isArray(t)?t:[t];return Promise.all(e.map(t=>w.fromModule(t).downloadAsync()))}static fromModule(t){if('string'==typeof t)return w.fromURI(t);if(f(t)){const e=h.getFileExtension(t.uri);return new w({name:'',type:e.startsWith('.')?e.substring(1):e,hash:null,uri:t.uri,width:t.width,height:t.height})}const e=s.default.getAssetByID(t);if(!e)throw new Error(`Module "${t}" is missing from the asset registry`);if(!d.IS_ENV_WITH_LOCAL_ASSETS){const{uri:s}=(0,c.default)(t),n=new w({name:e.name,type:e.type,hash:e.hash,uri:s,width:e.width,height:e.height});return w.byHash[e.hash]=n,n}return w.fromMetadata(e)}static fromMetadata(t){const e=t.hash,s=w.byHash[e];if(s)return s;const{uri:h,hash:o}=(0,n.selectAssetSource)(t),l=new w({name:t.name,type:t.type,hash:o,uri:h,width:t.width,height:t.height});return w.byHash[e]=l,l}static fromURI(t){if(w.byUri[t])return w.byUri[t];let e='';if(t.indexOf(';base64')>-1)e=t.split(';')[0]?.split('/')[1]??'';else{const s=h.getFileExtension(t);e=s.startsWith('.')?s.substring(1):s}const s=new w({name:'',type:e,hash:null,uri:t});return w.byUri[t]=s,s}async downloadAsync(){if(this.downloaded)return this;if(this.downloading)return await new Promise((t,e)=>{this._downloadCallbacks.push({resolve:t,reject:e})}),this;this.downloading=!0;try{if(l.isImageType(this.type)){const{width:t,height:e,name:s}=await l.getImageInfoAsync(this.uri);this.width=t,this.height=e,this.name=s}else this.name=h.getFilename(this.uri);this.localUri=await(0,o.downloadAsync)(this.uri,this.hash,this.type),this.downloaded=!0,this._downloadCallbacks.forEach(({resolve:t})=>t())}catch(t){throw this._downloadCallbacks.forEach(({reject:e})=>e(t)),t}finally{this.downloading=!1,this._downloadCallbacks=[]}return this}}},1090,[301,232,1091,1095,1096,1097,1098,1094,1099]);
|
| 11 |
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.selectAssetSource=function(e){const t=o.default.pickScale(e.scales,s.default.get()),f=e.scales.findIndex(e=>e===t),l=e.fileHashes?.[f]??e.fileHashes?.[0]??e.hash,p=e.fileUris?e.fileUris[f]??e.fileUris[0]:e.uri;if(p)return{uri:c(p),hash:l};const U=1===t?'':`@${t}x`,v=e.type?`.${encodeURIComponent(e.type)}`:'',x=`/${encodeURIComponent(e.name)}${U}${v}`,L=new URLSearchParams({platform:"web",hash:e.hash});if(/^https?:\/\//.test(e.httpServerLocation)){return{uri:e.httpServerLocation+x+'?'+L,hash:l}}const R=(0,h.getManifest2)(),S=R?.extra?.expoGo?.developer?u(R):null;if(S){const t=new URL(e.httpServerLocation+x,S);return t.searchParams.set('platform',"web"),t.searchParams.set('hash',e.hash),{uri:t.href,hash:l}}if(n.default.ExponentKernel)return{uri:`https://classic-assets.eascdn.net/~assets/${encodeURIComponent(l)}`,hash:l};return{uri:'',hash:l}},_e.resolveUri=c,r(d[0]);var t=r(d[1]),s=e(r(d[2])),n=e(r(d[3])),o=e(r(d[4])),h=r(d[5]);function u(e){const s=(0,t.getBundleOrigin)();if(s)return s;const n=e.extra?.expoGo?.debuggerHost;if(!n)return null;return(h.manifestBaseUrl?.startsWith('https://')?'https://':'http://')+n}function c(e){return h.manifestBaseUrl?new URL(e,h.manifestBaseUrl).href:e}},1091,[301,1092,199,112,1093,1094]);
|
| 12 |
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getBundleUrl",{enumerable:!0,get:function(){return t.getBundleUrl}}),e.getBundleOrigin=function(n=(0,t.getBundleUrl)()){if(!n)return null;try{const{protocol:t,origin:u}=new URL(n);return'http:'===t||'https:'===t?u:null}catch{return null}};var t=r(d[0])},1092,[575]);
|
| 13 |
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return n}}),r(d[0]);var e,t=r(d[1]),s=(e=t)&&e.__esModule?e:{default:e};function c(e){const t=n.pickScale(e.scales,s.default.get()),c=1===t?'':'@'+t+'x',o=e.type?`.${e.type}`:'';return e.httpServerLocation.replace(/\.\.\//g,'_')+'/'+e.name+c+o}class n{constructor(e,t,s){this.serverUrl=e||'https://expo.dev',this.jsbundleUrl=null,this.asset=s}isLoadedFromServer(){return!0}isLoadedFromFileSystem(){return!1}defaultAsset(){return this.assetServerURL()}assetServerURL(){const e=new URL(c(this.asset),this.serverUrl);return e.searchParams.set('platform',"web"),e.searchParams.set('hash',this.asset.hash),this.fromSource(e.toString().replace(e.origin,''))}fromSource(e){return{__packager_asset:!0,width:this.asset.width??void 0,height:this.asset.height??void 0,uri:e,scale:n.pickScale(this.asset.scales,s.default.get())}}static pickScale(e,t){for(const s of e)if(s>=t)return s;return e[e.length-1]||1}}},1093,[301,199]);
|
| 14 |
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"IS_ENV_WITH_LOCAL_ASSETS",{enumerable:!0,get:function(){return t}}),e.getLocalAssets=function(){return{}},e.getManifest2=function(){return{}},Object.defineProperty(e,"manifestBaseUrl",{enumerable:!0,get:function(){return n}});const t=!1;const n=null},1094,[]);
|
| 15 |
+
__d(function(g,r,i,a,m,e,d){"use strict";function t(t){const{pathname:s,searchParams:o}=new URL(t,'https://e');return n(s)}function n(t){return t.substring(t.lastIndexOf('/')+1)}Object.defineProperty(e,'__esModule',{value:!0}),e.getFilename=t,e.getFileExtension=function(n){const s=t(n),o=s.lastIndexOf('.');return o>0?s.substring(o):''},e.getManifestBaseUrl=function(t){const n=new URL(t);let s=n.protocol;'exp:'===s?s='http:':'exps:'===s&&(s='https:');n.protocol=s;const o=n.pathname.substring(0,n.pathname.lastIndexOf('/')+1);return n.pathname=o,n.search='',n.hash='',n.protocol!==s?n.href.replace(n.protocol,s):n.href}},1095,[]);
|
| 16 |
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.downloadAsync=async function(n,t,c){return n}},1096,[]);
|
| 17 |
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.isImageType=function(n){return/^(jpeg|jpg|gif|png|bmp|webp|heic)$/i.test(n)},e.getImageInfoAsync=function(t){if('undefined'==typeof window)return Promise.resolve({name:(0,n.getFilename)(t),width:0,height:0});return new Promise((o,u)=>{const s=new Image;s.onerror=u,s.onload=()=>{o({name:(0,n.getFilename)(t),width:s.naturalWidth,height:s.naturalHeight})},s.src=t})};var n=r(d[0])},1097,[1095]);
|
| 18 |
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.getLocalAssetUri=function(t,n){return null}},1098,[]);
|
| 19 |
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}}),_e.setCustomSourceTransformer=o,Object.defineProperty(_e,"pickScale",{enumerable:!0,get:function(){return l}});var t=e(r(d[0])),n=e(r(d[1]));let u;function o(e){u=e}function c(e){if('object'==typeof e)return e;const o=t.default.getAssetByID(e);if(!o)return null;const c=new n.default('https://expo.dev',null,o);return u?u(c):c.defaultAsset()}Object.defineProperty(c,'setCustomSourceTransformer',{get:()=>o});var f=c;const{pickScale:l}=n.default},1099,[232,1093]);
|
| 20 |
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useAssets=function(u){const[c,n]=(0,t.useState)(),[o,f]=(0,t.useState)();return(0,t.useEffect)(()=>{s.Asset.loadAsync(u).then(n).catch(f)},[]),[c,o]};var t=r(d[0]),s=r(d[1])},1100,[30,1090]);
|
| 21 |
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.normalizeWeight=o,e.normalizeStyle=f,e.resolveFaceWeight=l,e.resolveFaceStyle=c,e.assertValidFontFaces=function(t,s){if('string'!=typeof t||0===t.length)throw new n.CodedError("ERR_FONT_API",`Expected a non-empty string for \`fontFamily\`, instead got ${JSON.stringify(t)}. Set \`fontFamily\` to the name to use as the \`fontFamily\` style prop.`);if(!Array.isArray(s)||0===s.length)throw new n.CodedError("ERR_FONT_API",`No font faces were provided for font family "${t}". Set \`fontDefinitions\` to a non-empty array of \`FontFaceDefinition\`s.`);const y=new Set;for(const u of s){if('object'!=typeof u||null===u||null==u.path)throw new n.CodedError("ERR_FONT_API",`A face of font family "${t}" has no \`path\`. Set the face's \`path\` to a \`FontSource\`.`);const s=o(l(u)),h=f(c(u));if(void 0===s||void 0===h)continue;const F=`${s}/${h}`;if(y.has(F))throw new n.CodedError("ERR_FONT_API",`Font family "${t}" declares two faces with weight ${s} and style "${h}". Give each face a distinct weight or style so the correct face is selected at render time.`);y.add(F)}},e.assertValidFontFamilyDefinitions=function(t){const o=new Set;for(const f of t){if('object'!=typeof f||null===f||Array.isArray(f)||!('fontFamily'in f)||!('fontDefinitions'in f))throw new n.CodedError("ERR_FONT_API",`Expected an object with \`fontFamily\` and \`fontDefinitions\`, instead got ${JSON.stringify(f)}. Set each array element to \`{ fontFamily, fontDefinitions }\`.`);const{fontFamily:t}=f;if(o.has(t))throw new n.CodedError("ERR_FONT_API",`Font family "${t}" is declared more than once in this \`loadAsync\` call. Declare each \`fontFamily\` once, with all of its faces in one \`fontDefinitions\` array.`);o.add(t)}};var t=r(d[0]),n=r(d[1]);function o(t){if(null==t)return;if('number'==typeof t)return Number.isFinite(t)?t:void 0;const n=t.trim().toLowerCase();if('normal'===n)return 400;if('bold'===n)return 700;const o=Number(n);return Number.isFinite(o)?o:void 0}function f(t){if(null==t)return;const n=t.trim().toLowerCase();return'italic'===n||'oblique'===n?'italic':'normal'}function s(n){if(!(n instanceof t.Asset||'string'==typeof n||'number'==typeof n))return n}function l(t){return t.weight??s(t.path)?.weight}function c(t){return t.style??s(t.path)?.style}},1101,[1088,301]);
|
| 22 |
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.fontSourceFromFace=function(n){const{path:o,display:s}=n,u=(0,l.resolveFaceWeight)(n),c=(0,l.resolveFaceStyle)(n);if(o instanceof t.Asset)return{uri:o.uri,...void 0!==u?{weight:u}:null,...void 0!==c?{style:c}:null,...void 0!==s?{display:s}:null};const y='string'==typeof o||'number'==typeof o?{uri:o}:o;return{...y,weight:u,style:c,display:s??y.display}};var t=r(d[0]),l=r(d[1])},1102,[1088,1101]);
|
| 23 |
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"loadPromises",{enumerable:!0,get:function(){return o}}),_e.markLoaded=function(e){u[e]=!0},_e.isLoadedInCache=c,_e.isLoadedNative=function(e){if(c(e))return!0;{const n=t.default.getLoadedFonts();return!!n?.length&&(n.forEach(e=>{u[e]=!0}),e in u)}},_e.purgeFontFamilyFromCache=function(e){delete u[e]},_e.purgeCache=function(){u={}};var e,n=r(d[0]),t=(e=n)&&e.__esModule?e:{default:e};const o={};let u={};function c(e){return e in u}},1103,[1084]);
|
| 24 |
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"withServerContext",{enumerable:!0,get:function(){return u.withServerContext}}),_e.getServerResources=function(){if(!n.default.getServerResources)throw new t.UnavailabilityError('expo-font','getServerResources');return n.default.getServerResources()},_e.getServerResourceDescriptors=function(){if(!n.default.getServerResourceDescriptors)throw new t.UnavailabilityError('expo-font','getServerResourceDescriptors');return n.default.getServerResourceDescriptors()},_e.registerStaticFont=function(e,o){if(!o)throw new t.CodedError("ERR_FONT_SOURCE",`Cannot load null or undefined font source: { "${e}": ${o} }. Expected asset of type \`FontSource\` for fontFamily of name: "${e}"`);const n=(0,s.getAssetForSource)(o);(0,s.loadSingleFontAsync)(e,n)};var e,t=r(d[0]),o=r(d[1]),n=(e=o)&&e.__esModule?e:{default:e},s=r(d[2]),u=r(d[3])},1104,[301,1084,1087,1085]);
|
| 25 |
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"FontDisplay",{enumerable:!0,get:function(){return t}});var t=(function(t){return t.AUTO="auto",t.SWAP="swap",t.BLOCK="block",t.FALLBACK="fallback",t.OPTIONAL="optional",t})({})},1105,[]);
|
| 26 |
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.renderToImageAsync=async function(e,l){if(!t.default)throw new o.UnavailabilityError('expo-font','ExpoFontUtils.renderToImageAsync');return await t.default.renderToImageAsync(e,{...l,color:l?.color?(0,n.default)(l.color):void 0})};var o=r(d[0]),n=e(r(d[1])),t=e(r(d[2]))},1106,[301,53,1107]);
|
| 27 |
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o}});var t=r(d[0]);class n extends t.NativeModule{async renderToImageAsync(n,o){throw new t.UnavailabilityError('expo-font','renderToImageAsync')}}var o=(0,t.registerWebModule)(n,'ExpoFontUtils')},1107,[301]);
|
| 28 |
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"useFonts",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]);function o(t){return'string'==typeof t?(0,n.isLoaded)(t):Array.isArray(t)?t.every(t=>{const o=t?.fontFamily;return'string'==typeof o&&(0,n.isLoaded)(o)}):Object.keys(t).every(t=>(0,n.isLoaded)(t))}const u='undefined'==typeof window?function(t){return(0,n.loadAsync)(t),[!0,null]}:function(u){const[s,c]=(0,t.useState)(o(u)),[f,y]=(0,t.useState)(null);return(0,t.useEffect)(()=>{let t=!0;return(0,n.loadAsync)(u).then(()=>{t&&c(!0)}).catch(n=>{t&&y(n)}),()=>{t=!1}},[]),[s,f]}},1108,[30,1083]);
|
| 29 |
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0});var t=r(d[0]);Object.keys(t).forEach(function(n){'default'===n||Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})})},1109,[1110]);
|
| 30 |
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.preventAutoHideAsync=async function(){return!1},e.setOptions=function(n){},e.hide=function(){},e.hideAsync=async function(){}},1110,[]);
|
| 31 |
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"sharedRecipeCards",{enumerable:!0,get:function(){return l}});var c=r(d[0]),s=r(d[1]),n=r(d[2]);const o=()=>{const c=n.useSync.getState();return'live'===c.mode&&'guest'!==c.kind&&!!c.venueId};function t(c){if(o()&&!(0,n.can)(c))throw new Error('recipes.signoff'===c?'Only the head chef can sign off a recipe card.':'Only the head chef, managers and owners can change recipe cards.')}const l={mode:'shared',list:s=>c.localRecipeCards.list(s),get:s=>c.localRecipeCards.get(s),byMenuItem:s=>c.localRecipeCards.byMenuItem(s),subscribe:s=>c.localRecipeCards.subscribe(s),create:async(s,n,o)=>(t('recipes.edit'),c.localRecipeCards.create(s,n,o)),update:async(s,n,o)=>(t('recipes.edit'),c.localRecipeCards.update(s,n,o)),signOff:async(s,n)=>(t('recipes.signoff'),c.localRecipeCards.signOff(s,n)),remove:async(s,n)=>(t('recipes.edit'),c.localRecipeCards.remove(s,n)),savePhoto:async(s,n,o)=>(t('recipes.edit'),c.localRecipeCards.savePhoto(s,n,o)),photoSource:s=>c.localRecipeCards.photoSource(s)};function p(){const n=o()?l:c.localRecipeCards;(0,s.recipeCards)()!==n&&(0,s.setRecipeCardRepository)(n)}p(),n.useSync.subscribe((c,s)=>{c.mode===s.mode&&c.kind===s.kind&&c.venueId===s.venueId||p()})},1111,[1124,831,820]);
|
| 32 |
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"STRIP",{enumerable:!0,get:function(){return C}}),_e.SyncBadge=function(){const e=(0,y.useSync)(),[R,P]=(0,n.useState)(!1),[z,S]=(0,n.useState)(e.refused?.at??''),k=e.refused&&e.refused.at!==z?e.refused:void 0,[W,A]=(0,n.useState)(!1),[H,L]=(0,n.useState)(''),N=(0,p.useDisplaySettings)(f.VENUE_RID),$=(0,T.useScreensaverAsleep)(e=>e.asleep),O='off'===e.mode&&(I.PITCH||!(0,j.isSupabaseConfigured)());if('customer'===h.APP_VARIANT||'off'===e.mode&&!O)return null;if($)return(0,w.jsx)(u.default,{testID:"sync-strip-asleep",accessibilityElementsHidden:!0,importantForAccessibility:"no-hide-descendants",style:{height:C,backgroundColor:x.colours.bg}});const _='live'===e.mode,E='display'===h.APP_VARIANT,V=e.waiting??0,M=`${V} change${1===V?'':'s'} waiting to save`,K=O?I.PITCH?'Demo \xb7 this device only':'This device only':_?V?M:e.pending?`Live \xb7 sending ${e.pending}`:'Live':'offline'===e.mode?"Offline"+(e.pending?` \xb7 ${e.pending} waiting`:''):'connecting'===e.mode?'Connecting\u2026':'unpaired'===e.mode?'Not paired':'On this device',U=O||_&&V?x.colours.gold:_?x.colours.ok:'offline'===e.mode||'connecting'===e.mode?x.colours.gold:x.colours.muted,Y=O?I.PITCH?'Demo mode. Nothing is shared or sent: everything you do stays in this browser.':'This copy isn\u2019t connected to a shared system. Everything stays on this device.':_?`Shared live with ${e.venueName??'your venue'}${e.lastSyncAt?`. Last update ${new Date(e.lastSyncAt).toLocaleTimeString('en-GB',{hour:'2-digit',minute:'2-digit'})}`:''}.`:'offline'===e.mode?'No connection. Changes are saved on this device and sent when you\u2019re back online.':'signin'===e.mode?'Not connected to the shared system. Open your personal invite link once on this device to connect.':'unpaired'===e.mode?'This display isn\u2019t paired. Use a pairing code from Managers \u2192 Displays.':'connecting'===e.mode?'Connecting to the shared system\u2026':'The shared system can\u2019t be reached, so this device is using its own data.';return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(u.default,{testID:"sync-strip",style:{height:C,paddingHorizontal:10,justifyContent:'center',alignItems:'flex-start',backgroundColor:x.colours.bg,borderTopWidth:1,borderTopColor:'rgba(255,255,255,0.06)'},children:(0,w.jsxs)(c.default,{testID:"sync-badge",accessibilityRole:"button",accessibilityLabel:V&&_?`${M}. Kept on this device and tried again by itself. Tap for details.`:`Sync: ${K}`,accessibilityLiveRegion:"polite",onPress:()=>P(e=>!e),style:{flexDirection:'row',alignItems:'center',gap:6,paddingHorizontal:14,minHeight:44,borderRadius:999,backgroundColor:(0,s.soutersSurface)('rgba(16,14,11,0.92)'),borderWidth:1,borderColor:'rgba(255,255,255,0.14)',maxWidth:320},children:[(0,w.jsx)(u.default,{style:{width:8,height:8,borderRadius:4,backgroundColor:U}}),(0,w.jsx)(v.T,{size:12,weight:"semibold",children:K})]})}),R?(0,w.jsxs)(u.default,{testID:"sync-detail",style:{position:'absolute',left:10,bottom:52,zIndex:900,maxWidth:320,padding:12,borderRadius:12,backgroundColor:(0,s.soutersSurface)('#15120E'),borderWidth:1,borderColor:'rgba(255,255,255,0.14)',gap:4},children:[(0,w.jsx)(v.T,{size:13,children:Y}),V?(0,w.jsxs)(u.default,{testID:"sync-waiting",style:{gap:4},children:[(0,w.jsxs)(v.T,{size:12,colour:x.colours.gold,children:[M,". ",1===V?'It is':'They are'," kept on this device and tried again by ",1===V?'itself':'themselves'," until the shared system takes ",1===V?'it':'them',".",e.waitingWhat?` Waiting: ${e.waitingWhat}.`:'']}),(0,w.jsx)(c.default,{testID:"sync-retry",accessibilityRole:"button",accessibilityLabel:"Try saving again now",onPress:()=>{b.mutationQueue.retryNow()},style:{minHeight:44,justifyContent:'center',alignSelf:'flex-start',paddingHorizontal:12,borderRadius:8,borderWidth:1,borderColor:x.colours.gold},children:(0,w.jsx)(v.T,{size:12,colour:x.colours.gold,children:"Try again now"})})]}):null,e.refused?(0,w.jsxs)(v.T,{size:12,colour:x.colours.red,children:["Last change not saved: ",e.refused.what,". ",e.refused.why,"."]}):null,e.message?(0,w.jsx)(v.T,{size:12,colour:x.colours.muted,children:e.message}):null,e.venueId&&(_||'offline'===e.mode)?W?(0,w.jsxs)(u.default,{style:{gap:6,marginTop:6},children:[(0,w.jsx)(v.T,{size:12,children:E?'Unpair this display? It goes back to the pairing screen and needs a new code from Managers \u2192 Displays.':'Disconnect this device? Your changes stay on it; open your personal invite link to connect again.'}),E&&N.pinOn?(0,w.jsx)(t.TextInput,{testID:"unpair-pin",value:H,onChangeText:L,placeholder:"Display PIN",placeholderTextColor:x.colours.muted,secureTextEntry:!0,keyboardType:"number-pad",accessibilityLabel:"Display PIN",style:{borderWidth:1,borderColor:'rgba(255,255,255,0.2)',borderRadius:8,paddingHorizontal:10,paddingVertical:6,color:x.colours.text}}):null,(0,w.jsxs)(u.default,{style:{flexDirection:'row',gap:8},children:[(0,w.jsx)(c.default,{testID:"unpair-confirm",accessibilityRole:"button",accessibilityLabel:E?'Yes, unpair':'Yes, disconnect',disabled:E&&N.pinOn&&!(0,l.wakePinMatches)(N,H),onPress:()=>{A(!1),P(!1),L(''),E?(0,y.unpairDisplay)():(0,y.disconnectStaff)()},style:{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:E&&N.pinOn&&!(0,l.wakePinMatches)(N,H)?'rgba(255,255,255,0.08)':x.colours.red},children:(0,w.jsx)(v.T,{size:12,weight:"semibold",children:E?'Yes, unpair':'Yes, disconnect'})}),(0,w.jsx)(c.default,{accessibilityRole:"button",accessibilityLabel:"Keep connected",onPress:()=>{A(!1),L('')},style:{paddingHorizontal:12,paddingVertical:6,borderRadius:8,borderWidth:1,borderColor:'rgba(255,255,255,0.2)'},children:(0,w.jsx)(v.T,{size:12,children:"Keep"})})]})]}):(0,w.jsx)(c.default,{testID:"unpair",accessibilityRole:"button",accessibilityLabel:E?'Unpair this display':'Disconnect this device',onPress:()=>A(!0),style:{marginTop:6,alignSelf:'flex-start'},children:(0,w.jsx)(v.T,{size:12,colour:x.colours.gold,children:E?'Unpair this display\u2026':'Disconnect this device\u2026'})}):null,(0,w.jsx)(o.WipeDevice,{compact:!0})]}):null,k?(0,w.jsx)(u.default,{testID:"sync-toast",style:{position:'absolute',left:16,right:16,bottom:C+D+8,zIndex:950,alignItems:'center'},pointerEvents:"box-none",children:(0,w.jsxs)(u.default,{accessibilityRole:"alert",accessibilityLiveRegion:"assertive",style:{padding:12,borderRadius:12,backgroundColor:'#3A1712',borderWidth:1,borderColor:x.colours.red,maxWidth:460,gap:8},children:[(0,w.jsx)(v.T,{size:13,children:`Not saved: ${k.what}. Why: ${k.why}. This device now shows what the shared system has, so please make the change again if it is still needed.`}),(0,w.jsx)(c.default,{testID:"sync-toast-ok",accessibilityRole:"button",accessibilityLabel:"OK, dismiss this message",onPress:()=>S(k.at),style:{minHeight:44,minWidth:64,justifyContent:'center',alignItems:'center',alignSelf:'flex-end',paddingHorizontal:14,borderRadius:8,backgroundColor:x.colours.red},children:(0,w.jsx)(v.T,{size:13,weight:"semibold",children:"OK"})})]})}):null]})};var s=r(d[0]),t=r(d[1]),n=r(d[2]),o=r(d[3]),l=r(d[4]),c=e(r(d[5])),u=e(r(d[6])),h=r(d[7]),y=r(d[8]),b=r(d[9]),p=r(d[10]),f=r(d[11]),x=r(d[12]),v=r(d[13]),T=r(d[14]),j=r(d[15]),I=r(d[16]),w=r(d[17]);const C=48,D='display'===h.APP_VARIANT?0:60},1112,[878,874,30,1020,1019,263,127,806,820,1125,825,5,821,813,879,1126,2,24]);
|
| 33 |
+
__d(function(g,_r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.PushPrompt=function(){const e=(0,l.useSync)(e=>e.kind),b=(0,l.useSync)(e=>e.staffRef),x=(0,l.useSync)(e=>e.venueId),[p,S]=(0,o.useState)(!1),[j,v]=(0,o.useState)(null);if((0,o.useEffect)(()=>{if(u.PITCH||y()||'staff'!==e||!b||!x)return;let t=!0;return(async()=>{const e=await(0,c.pushState)();if(!t)return;if('undefined'!=typeof Notification&&'granted'===Notification.permission&&('on'===e||'off'===e))return void(0,c.turnOnPush)();if('off'!==e)return;const o=Number(localStorage.getItem(h)||0);Date.now()-o>2592e5&&S(!0)})(),()=>{t=!1}},[e,b,x]),!p)return null;const w={minHeight:48,borderRadius:12,justifyContent:'center',paddingHorizontal:18};return(0,f.jsxs)(r.default,{accessibilityRole:"alert",style:{position:'absolute',left:12,right:12,bottom:72,backgroundColor:s.colours.surface2,borderColor:s.colours.gold,borderWidth:1,borderRadius:14,padding:16,zIndex:50},children:[(0,f.jsx)(t.Text,{style:{color:s.colours.goldLight,fontSize:18,fontWeight:'700',marginBottom:6},children:"Get notifications on this phone"}),(0,f.jsx)(t.Text,{style:{color:'#F2E6C9',fontSize:16,marginBottom:12},children:j??'So you hear about rota changes, swaps and reminders even when the app is closed.'}),(0,f.jsxs)(r.default,{style:{flexDirection:'row',gap:12},children:[(0,f.jsx)(n.default,{accessibilityRole:"button",accessibilityLabel:"Turn on notifications",style:[w,{backgroundColor:s.colours.gold,flex:1}],onPress:async()=>{const e=await(0,c.turnOnPush)();e.ok?S(!1):v(e.message)},children:(0,f.jsx)(t.Text,{style:{color:'#0B0B0B',fontSize:17,fontWeight:'700',textAlign:'center'},children:"Turn on"})}),(0,f.jsx)(n.default,{accessibilityRole:"button",accessibilityLabel:"Not now",style:[w,{borderColor:s.colours.gold,borderWidth:1}],onPress:()=>{try{localStorage.setItem(h,String(Date.now()))}catch{}S(!1)},children:(0,f.jsx)(t.Text,{style:{color:s.colours.goldLight,fontSize:17,textAlign:'center'},children:"Not now"})})]})]})};var t=_r(d[0]),o=_r(d[1]);_r(d[2]);var n=e(_r(d[3])),r=e(_r(d[4])),s=_r(d[5]),l=_r(d[6]),c=_r(d[7]),u=_r(d[8]),f=_r(d[9]);const h='cc-push-later-v1',y=()=>'undefined'!=typeof navigator&&/CoverChargePhone\//.test(navigator.userAgent)},1113,[874,30,122,263,127,821,820,1062,2,24]);
|
| 34 |
+
__d(function(_g,_r,_i,_a,_m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.VoiceHost=function(){const e=(0,f.useVoiceTarget)(),t=(0,f.useVoiceSlot)(e=>e.rect);return e?.on&&t?(0,D.jsx)(G,{app:e.actions,ui:e.app},e.actions):null};var t=_r(d[0]),n=_r(d[1]),o=_r(d[2]),r=e(_r(d[3])),s=e(_r(d[4])),i=e(_r(d[5])),a=e(_r(d[6]));_r(d[7]);var l=e(_r(d[8])),c=e(_r(d[9])),u=e(_r(d[10])),h=e(_r(d[11])),p=_r(d[12]),f=_r(d[13]),g=_r(d[14]),y=e(g),m=_r(d[15]),w=_r(d[16]),x=_r(d[17]),b=_r(d[18]),v=_r(d[19]),k=_r(d[20]),j=_r(d[21]),T=_r(d[22]),R=_r(d[23]),S=_r(d[24]),C=_r(d[25]),I=_r(d[26]),M=_r(d[27]),E=_r(d[28]),H=_r(d[29]),z=_r(d[30]),D=_r(d[31]);const A='How many people?',P=['covers','partySize'],W=200,$=16e3,_=31e3,V='That took too long, so I stopped waiting. Hold the button and try again, or tap Type instead.',B='Something went wrong there. Hold the button and try again, or tap Type instead.',F='The microphone is blocked. Allow it in the browser\u2019s site settings, or tap the button to type instead.';function O(e,t){return'cap'===e?t?.message||M.REACHED_TEXT:'identity'===e||'app'===e?'Voice needs this device to be signed in or paired first. For now, tap the button to type instead.':'not-allowed'===e?F:'audio-capture'===e?'I couldn\u2019t use the microphone on this device. Check nothing else is using it, then hold the button again, or tap Type instead.':'busy'===e?'Speech to text is busy just now. Hold the button and try again in a moment, or tap Type instead.':'soon'===e?'Speech to text is switching on soon. For now, tap the button to type instead.':'long'===e?'That was longer than 30 seconds. Hold the button and say it more briefly, or tap Type instead.':'I couldn\u2019t turn that into text just now. Hold the button and try again, or tap Type instead.'}function L({colour:e,size:t=34}){return(0,D.jsxs)(y.default,{width:t,height:t,viewBox:"0 0 24 24",children:[(0,D.jsx)(g.Rect,{x:"9",y:"3",width:"6",height:"11",rx:"3",fill:e}),(0,D.jsx)(g.Path,{d:"M5.5 11a6.5 6.5 0 0 0 13 0M12 17.5V21M8.5 21h7",stroke:e,strokeWidth:2,strokeLinecap:"round",fill:"none"})]})}const N={owner:['\u201cWalk-in fridge 3 degrees\u201d','\u201cMark the lobster sold out\u201d','\u201cHow many covers tonight?\u201d','\u201cAdd blue roll to the Booker list\u201d'],staff:['\u201cMessage the team: running 10 minutes late\u201d','\u201cRead my messages\u201d','\u201cWhen\u2019s my next shift?\u201d','\u201cWhat are today\u2019s specials?\u201d','\u201cDoes the fish supper contain gluten?\u201d'],chef:['\u201cFreezer minus 19\u201d','\u201cMark the soup sold out\u201d','\u201cRead the orders\u201d','\u201cAdd onions to the Bidfood list\u201d'],display:['\u201cWalk-in fridge 3 degrees\u201d','\u201cRead the orders\u201d','\u201cAny room for 6 at 8?\u201d','\u201cRead the shift notes\u201d']};function G({app:e,ui:g}){const y=(0,m.useCtx)(6e4),G=(0,x.useOwner)(e=>e.staff),X=(0,C.useVoiceNav)(e=>e.go),{height:U}=(0,u.default)(),q=(0,f.useVoiceSlot)(e=>e.rect),K=q.size,Y=w.ROSTER.find(e=>'chef'===e.app),J='display'===e?'Main Display':'chef'===e?G.find(e=>e.id===Y?.id)?.name??'Head Chef':y.me,Q='display'===e?'display':'chef'===e?Y?.id??'chef':y.meId,Z={rid:y.rid,today:y.today,go:(e,t)=>X?.(e,t),app:e,who:J.replace(' (example)',''),whoId:Q,role:'owner'===g?y.role:e};(0,o.useEffect)(()=>{try{(0,j.setVenueWords)((0,T.venueKeyterms)(y.rid))}catch{}},[y.rid,G]);const[ee,te]=(0,o.useState)('idle'),[ne,oe]=(0,o.useState)(''),[re,se]=(0,o.useState)(0),[ie,ae]=(0,o.useState)(null),[le,de]=(0,o.useState)(!1),[ce,ue]=(0,o.useState)(''),[he,pe]=(0,o.useState)(!1),fe=(0,o.useRef)(null),ge=(0,o.useRef)(0),ye=(0,o.useRef)(null),me=(0,o.useRef)(Z);me.current=Z;const we=(0,o.useRef)(ie);we.current=ie;const xe=(0,o.useRef)(y.now);xe.current=y.now;const be=e=>{ae(e),te('answer')},ve=be,ke=async e=>{const t=++ge.current;let n;te('working');try{n=await(0,k.runAction)(e.id,e.params,me.current,!0)}catch{n={status:'error',message:B}}t===ge.current&&((0,E.buzz)([20,40,20]),ve({text:'needs_confirmation'===n.status?n.preview:n.message,tone:'error'===n.status?'warn':'ok'}))},je=()=>ve({text:'Cancelled. Nothing was changed.',tone:'info'}),Te=async(e,t,n)=>{const o=++ge.current,r={...e.params,[e.field]:t};let s;te('working');try{s=await(0,k.runAction)(e.id,r,me.current,!1)}catch{s={status:'error',message:B}}o===ge.current&&('needs_confirmation'===s.status?ve({heard:n,text:s.preview,pending:{id:e.id,params:r,preview:s.preview}}):ve({heard:n,text:s.message,tone:'error'===s.status?'warn':'ok'}))},Re=async(e,t)=>{const n=ge.current,o=e=>{n===ge.current&&be(e)};try{await Se(e,o,t)}catch{o({heard:e.trim()||void 0,text:B,tone:'warn'})}},Se=async(t,n,o)=>{const r=t.trim(),s=me.current;if(!r)return void n({text:'I didn\u2019t catch that. Hold the button while you speak, then let go.',tone:'info'});const i=we.current?.pending;if(i){const e=(0,E.yesNo)(r);if('yes'===e)return void await ke(i);if('no'===e)return void je()}const a=we.current?.ask;if(a){const e=(0,z.coversAnswer)(r);if(e&&e<=30)return void await Te(a,e,r)}te('working');const l=(0,k.matchIntent)(r,s.today,{app:e,rid:s.rid,whoId:s.whoId}),c=xe.current;if(!M.voiceUsage.allowed(s.rid,'action'===l.kind?l.action.id:null,c))return void n({heard:r,text:M.REACHED_TEXT,tone:'info'});M.voiceUsage.record(s.rid,c);const u=M.voiceUsage.get(s.rid,c),h=u.reached?M.REACHED_TEXT:u.warn?(0,M.WARN_TEXT)(u):void 0,p=e=>n({...e,note:h});if('action'===l.kind){const e=l.action,t=e.params.filter(e=>e.required&&(void 0===l.params[e.name]||''===l.params[e.name]||'[]'===l.params[e.name]));if(1===t.length&&P.includes(t[0].name))return void p({heard:r,text:A,ask:{id:e.id,params:l.params,field:t[0].name},tone:'info'});if(t.length)return void p({heard:r,text:e.preview(l.params,s)+(/\?$/.test(e.preview(l.params,s))||/couldn|didn/.test(e.preview(l.params,s))?'':` I still need: ${t.map(e=>e.description.toLowerCase()).join('; ')}.`)+' Hold the button and try again.',tone:'warn'});const n=await(0,k.runAction)(e.id,l.params,s,!1);return void('needs_confirmation'===n.status?p({heard:r,text:n.preview,pending:{id:e.id,params:l.params,preview:n.preview}}):p({heard:r,text:n.message,tone:'error'===n.status?'warn':'ok'}))}const f=` ${r.toLowerCase()} `,g=e=>{const t=(0,k.actionById)(e);if(!t)return 0;try{return t.match?t.match(f):t.keywords.filter(e=>f.includes(e)).length}catch{return 0}},y=()=>(0,k.toolSpecs)().filter(t=>{const n=(0,k.actionById)(t.function.name);return!!n&&(!n.apps||n.apps.includes(e))&&('staff'!==e||(0,k.staffMay)(n))}).map((e,t)=>({t:e,i:t,s:g(e.function.name)})).sort((e,t)=>t.s-e.s||e.i-t.i).slice(0,60).map(e=>e.t),m=async t=>{if('call'===t.kind){const n=(0,k.actionById)(t.name);if(n&&(!n.apps||n.apps.includes(e))&&('staff'!==e||(0,k.staffMay)(n))){const e=n.params.filter(e=>e.required&&(void 0===t.args[e.name]||''===t.args[e.name]));if(1===e.length&&P.includes(e[0].name))return p({heard:r,text:A,ask:{id:n.id,params:t.args,field:e[0].name},tone:'info'}),!0;const o=await(0,k.runAction)(n.id,t.args,s,!1);return'needs_confirmation'===o.status?p({heard:r,text:o.preview,pending:{id:n.id,params:t.args,preview:o.preview}}):p({heard:r,text:o.message,tone:'error'===o.status?'warn':'ok'}),!0}}return'text'===t.kind&&(p({heard:r,text:(0,k.moneySafe)(e,s.role)?(0,k.noMoney)(t.text):t.text,tone:'info'}),!0)};if('help'===l.kind){const t=l.ids.map(R.helpById).filter(Boolean)[0];if(!(((0,S.searchHelp)(R.HELP,r,1)[0]?.score??0)>=2.5)){const n=await(0,j.askServer)(e,r,y(),o);if(await m(n))return;return(0,k.moneySafe)(e,s.role)&&(0,k.hasMoney)(`${t.title}. ${t.body}`)?void p({heard:r,text:`${j.SOON_TEXT} ${N[e].slice(0,2).join(' or ')}.`,tone:'info'}):void p({heard:r,text:`${j.SOON_TEXT} ${N[e].slice(0,2).join(' or ')}. This guide might help: ${t.title}.`,help:l.ids,tone:'info'})}const n=`${t.title}. ${t.body}`;return(0,k.moneySafe)(e,s.role)&&(0,k.hasMoney)(n)?void p({heard:r,text:'That isn\u2019t shown here. Ask a manager in the Managers app.',tone:'info'}):void p({heard:r,text:n,help:l.ids,tone:'info'})}await m(await(0,j.askServer)(e,r,y(),o))||p({heard:r,text:j.SOON_TEXT+' '+N[e].slice(0,2).join(' or ')+'.',tone:'info'})},Ce=()=>{fe.current?.abort(),fe.current=null,ye.current?.(),ye.current=null,se(0)};(0,o.useEffect)(()=>()=>{fe.current?.abort(),ye.current?.()},[]);const Ie=async()=>{if(!(0,E.canListen)())return de(!0),void ve({text:(0,E.tabletWithoutMic)()?'This Display tablet app needs an update before it can use the microphone. For now, type below.':'This browser can\u2019t record speech. Type instead below.',tone:'info'});if((0,E.desktopStt)()){if(!(0,I.micExplainedFor)(g))return void pe(!0)}else{const e=await(0,E.micPermission)();if('granted'===e)(0,I.setMicExplainedFor)(g);else{if('denied'===e)return de(!0),void ve({text:F,tone:'warn'});if(!(0,I.micExplainedFor)(g))return void pe(!0)}}if(!He.current.holding&&!Ee.current)return;const t=++ge.current;(0,E.buzz)(35),oe(''),ae(null),de(!1),te('listening');if(fe.current=(0,E.listen)(oe,(e,n,o)=>{if(ye.current?.(),ye.current=null,se(0),fe.current=null,t===ge.current){if('not-allowed'!==n&&'service-not-allowed'!==n)return'stt-failed'===n?(ve({text:'Speech to text didn\u2019t start on this Mac. Type instead below; restarting the app usually fixes it.',tone:'warn'}),void de(!0)):void(n?ve({text:O(n,o),tone:'cap'===n?'info':'warn'}):Re(e,o?.receipt));ve({text:(0,E.desktopStt)()?'The microphone is blocked for CoverCharge. Open System Settings \u203a Privacy & Security \u203a Microphone, switch on CoverCharge for Mac, then try again. Or type instead.':F,tone:'warn'})}},e,se),!fe.current)return te('idle'),void de(!0);if((0,E.desktopStt)()){const e=await(0,E.levelMeter)(se);fe.current?ye.current=e:e()}},Me=()=>{fe.current&&(te('working'),fe.current.stop(),ye.current?.(),ye.current=null,se(0))},Ee=(0,o.useRef)(!1),He=(0,o.useRef)({timer:0,holding:!1}),ze=(0,o.useRef)(Ie);ze.current=Ie;const De=(0,o.useRef)(Me);De.current=Me;const Ae=(0,o.useMemo)(()=>a.default.create({onStartShouldSetPanResponder:()=>!0,onMoveShouldSetPanResponder:()=>!0,onPanResponderTerminationRequest:()=>!1,onPanResponderGrant:()=>{const e=He.current;e.holding=!1,(0,I.micExplainedFor)(g)&&(0,E.warmMic)(),e.timer=setTimeout(()=>{e.holding=!0,ze.current()},W)},onPanResponderRelease:()=>{const e=He.current;if(clearTimeout(e.timer),e.holding)return e.holding=!1,void De.current();(0,E.disarmMic)(),de(!0),te(e=>'idle'===e?'answer':e)},onPanResponderTerminate:()=>{const e=He.current;clearTimeout(e.timer),e.holding&&(e.holding=!1,De.current())}}),[e]);(0,o.useRef)(ee).current=ee,(0,o.useEffect)(()=>H.useVoiceKeys.subscribe((e,t)=>{const n=e.last;if(!n||n.n===t.last?.n)return;const o=!!fe.current;'start'!==n.cmd||o?'stop'===n.cmd?(Ee.current=!1,o&&De.current()):'toggle'===n.cmd?o?(Ee.current=!1,De.current()):(Ee.current=!0,ze.current()):'type'===n.cmd&&(de(!0),te(e=>'idle'===e?'answer':e)):(Ee.current=!0,ze.current())}),[]);const Pe=K>=64,We=(0,o.useRef)(new s.default.Value(0)).current;(0,o.useEffect)(()=>{if('listening'!==ee)return We.stopAnimation(),void We.setValue(0);const e=s.default.loop(s.default.timing(We,{toValue:1,duration:1100,easing:i.default.out(i.default.quad),useNativeDriver:!1}));return e.start(),()=>e.stop()},[ee]);const $e='listening'===ee,Ve='answer'===ee&&(ie||le)||'working'===ee||$e,Be=()=>{ge.current++,Ce(),ae(null),de(!1),ue(''),te('idle')};(0,o.useEffect)(()=>{if('working'!==ee&&'listening'!==ee)return;const e=ge.current,t=setTimeout(()=>{e===ge.current&&('listening'!==ee?(ge.current++,Ce(),de(!0),be({heard:ne&&!/\u2026$/.test(ne)?ne:void 0,text:V,tone:'warn'})):De.current())},'working'===ee?$:_);return()=>clearTimeout(t)},[ee]);const Fe=()=>{const e=ce.trim();e&&(ue(''),oe(e),ge.current++,Re(e))},Oe='fixed',Le={top:q.y+K+8},Ne=We.interpolate({inputRange:[0,1],outputRange:[1,1.7]}),Ge=We.interpolate({inputRange:[0,1],outputRange:[.6,0]}),Xe='warn'===ie?.tone?v.colours.amber:ie?.pending?v.colours.gold:v.colours.border;return(0,D.jsxs)(D.Fragment,{children:[Ve?(0,D.jsx)(h.default,{testID:"voice-panel",style:[{position:Oe,left:12,right:12,alignItems:'flex-end',zIndex:60},Le],pointerEvents:"box-none",children:(0,D.jsxs)(h.default,{style:{width:'100%',maxWidth:Pe?720:520,backgroundColor:v.colours.surface,borderRadius:16,borderWidth:2,borderColor:Xe,padding:Pe?20:14,gap:10,maxHeight:U*(Pe?.78:.6)},children:[(0,D.jsxs)(b.Row,{style:{justifyContent:'space-between'},children:[(0,D.jsx)(b.T,{size:16,weight:"semibold",colour:v.colours.gold,accessibilityRole:"header",children:$e?Pe?'Listening\u2026 let go (or press \u2318\u21e7G) to send':'Listening\u2026 let go to send':'working'===ee?'Working on it\u2026':ie?.pending?'Please confirm':'Voice assistant'}),(0,D.jsx)(l.default,{testID:"voice-close",accessibilityRole:"button",accessibilityLabel:"Close voice assistant",hitSlop:12,onPress:Be,style:{minWidth:48,minHeight:48,alignItems:'center',justifyContent:'center'},children:(0,D.jsx)(b.T,{size:20,colour:v.colours.muted,children:"\u2715"})})]}),(0,D.jsx)(b.T,{testID:"voice-reply-mode",size:14,colour:v.colours.muted,children:"Text replies only"}),$e?(0,D.jsxs)(h.default,{style:{gap:8},children:[(0,D.jsx)(h.default,{style:{height:10,borderRadius:5,backgroundColor:v.colours.surface2,overflow:'hidden'},children:(0,D.jsx)(h.default,{testID:"voice-level",style:{width:`${Math.round(8+92*re)}%`,height:10,backgroundColor:v.colours.ok}})}),(0,D.jsx)(b.T,{size:16,children:ne||'Say it now\u2026'})]}):null,'working'===ee?(0,D.jsxs)(b.Row,{gap:10,children:[(0,D.jsx)(r.default,{color:v.colours.gold}),(0,D.jsx)(b.T,{size:15,colour:v.colours.muted,children:ne?/\u2026$/.test(ne)?ne:`\u201c${ne}\u201d`:''})]}):null,'working'===ee||$e?(0,D.jsx)(b.Button,{testID:"voice-stop",kind:"secondary",label:"Cancel",onPress:()=>{ge.current++,Ce(),de(!1),be({text:'Stopped. Nothing was changed.',tone:'info'})},style:{minHeight:48}}):null,'answer'===ee&&ie?(0,D.jsxs)(c.default,{style:{maxHeight:U*(Pe?.55:.36)},contentContainerStyle:{gap:8},children:[ie.heard?(0,D.jsx)(h.default,{testID:"voice-heard",accessible:!0,accessibilityLabel:`I heard: ${ie.heard}`,children:(0,D.jsxs)(b.T,{size:Pe?16:14,colour:v.colours.muted,children:["I heard: \u201c",ie.heard,"\u201d"]})}):null,ie.note?(0,D.jsx)(h.default,{testID:"voice-usage-note",children:(0,D.jsx)(b.T,{size:13,colour:v.colours.amber,children:ie.note})}):null,(0,D.jsx)(h.default,{testID:"voice-answer",children:(0,D.jsx)(b.T,{size:Pe?24:18,weight:ie.pending?'semibold':'regular',children:ie.text})}),ie.help&&'owner'===e&&X?ie.help.slice(0,3).map(e=>{const t=(0,R.helpById)(e);return t?(0,D.jsx)(b.Button,{small:!0,kind:"secondary",label:`Open help: ${t.title}`,onPress:()=>{X('more','help'),Be()}},e):null}):null]}):null,'answer'===ee&&ie?.ask?(0,D.jsx)(h.default,{testID:"voice-how-many",style:{flexDirection:'row',flexWrap:'wrap',gap:10},children:[1,2,3,4,5,6,7,8].map(e=>(0,D.jsx)(l.default,{testID:`voice-covers-${e}`,accessibilityRole:"button",accessibilityLabel:1===e?'1 person':`${e} people`,onPress:()=>{Te(ie.ask,e)},style:{width:Pe?96:72,height:Pe?96:72,borderRadius:14,backgroundColor:v.colours.gold,alignItems:'center',justifyContent:'center'},children:(0,D.jsx)(b.T,{size:Pe?40:32,weight:"semibold",colour:v.colours.onGold,children:e})},e))}):null,'answer'===ee&&ie?.pending?(0,D.jsxs)(b.Row,{gap:10,children:[(0,D.jsx)(b.Button,{testID:"voice-confirm",kind:"success",label:"Confirm",onPress:()=>{ke(ie.pending)},style:{flex:1,minHeight:56}}),(0,D.jsx)(b.Button,{testID:"voice-cancel",kind:"secondary",label:"Cancel",onPress:je,style:{flex:1,minHeight:56}})]}):null,'answer'!==ee||ie?.pending?null:(0,D.jsxs)(h.default,{style:{gap:6},children:[le||!(0,E.canListen)()?(0,D.jsxs)(b.Row,{gap:8,children:[(0,D.jsx)(n.TextInput,{testID:"voice-type",value:ce,onChangeText:ue,onSubmitEditing:Fe,placeholder:"Type instead\u2026",placeholderTextColor:v.colours.muted,autoFocus:!0,returnKeyType:"send",style:{flex:1,minWidth:0,width:0,minHeight:48,borderRadius:10,borderWidth:1,borderColor:v.colours.border,backgroundColor:v.colours.surface2,color:v.colours.text,paddingHorizontal:12,fontFamily:v.fonts.regular,fontSize:16}}),(0,D.jsx)(b.Button,{testID:"voice-send",kind:"success",label:"Ask",onPress:Fe,disabled:!ce.trim()})]}):(0,D.jsx)(l.default,{accessibilityRole:"button",onPress:()=>de(!0),children:(0,D.jsx)(b.T,{size:14,colour:v.colours.gold,children:"Type instead"})}),ie?null:(0,D.jsxs)(b.T,{size:Pe?15:13,colour:v.colours.muted,children:[Pe?'Hold Space (or the gold button) and speak, or press \u2318\u21e7G to start and again to send. ':'Hold the gold button and speak, for example ',Pe?`For example ${N[e].join(', ')}.`:`${N[e].join(', ')}.`]}),'owner'===g&&'owner'===e?(0,D.jsx)(l.default,{testID:"voice-open-assistant",accessibilityRole:"button",onPress:()=>{Be(),p.useAssistantUi.getState().setOpen(!0)},style:{minHeight:44,justifyContent:'center'},children:(0,D.jsx)(b.T,{size:14,colour:v.colours.gold,children:"\u2726 Open the Assistant (ideas, history and longer requests) \u203a"})}):null]})]})}):null,(0,D.jsxs)(h.default,{style:{position:Oe,left:q.x,top:q.y,width:K,height:K,zIndex:61},pointerEvents:"box-none",children:[$e?(0,D.jsx)(s.default.View,{pointerEvents:"none",style:{position:'absolute',left:0,top:0,width:K,height:K,borderRadius:K/2,borderWidth:4,borderColor:v.colours.ok,opacity:Ge,transform:[{scale:Ne}]}}):null,$e?(0,D.jsx)(h.default,{pointerEvents:"none",style:{position:'absolute',left:-6,top:-6,width:K+12,height:K+12,borderRadius:(K+12)/2,borderWidth:3+Math.round(7*re),borderColor:v.colours.ok}}):null,(0,D.jsx)(h.default,{testID:"voice-button",accessible:!0,accessibilityRole:"button",accessibilityLabel:'owner'===g&&'owner'===e?'Voice assistant and Assistant. Hold to talk, let go to send. Tap to type or open the Assistant.':'Voice assistant. Hold to talk, let go to send. Tap to type instead.',...Ae.panHandlers,style:[{width:K,height:K,borderRadius:K/2,alignItems:'center',justifyContent:'center',backgroundColor:$e?v.colours.ok:v.colours.gold,borderWidth:2,borderColor:v.colours.bg},{userSelect:'none',WebkitUserSelect:'none',WebkitTouchCallout:'none',touchAction:'none',cursor:'pointer'}],children:['kirkton','abbotsford'].includes(t.VENUE_RID)?(0,D.jsx)(b.T,{size:16,weight:"semibold",colour:v.colours.onGold,children:'working'===ee?'Wait':'Talk'}):'working'===ee?(0,D.jsx)(r.default,{color:v.colours.onGold,size:"large"}):(0,D.jsx)(L,{colour:v.colours.onGold,size:Math.round(.5*K)})})]}),(0,D.jsx)(b.Sheet,{visible:he,onClose:()=>{(0,I.setMicExplainedFor)(g),pe(!1)},title:"Talk to CoverCharge",testID:"voice-explain",children:(0,D.jsxs)(h.default,{style:{gap:10},children:[(0,D.jsxs)(b.T,{children:["Hold the gold button, say what you need, then let go. For example ",N[e].slice(0,3).join(', '),"."]}),(0,D.jsx)(b.T,{children:(0,E.desktopStt)()?'Your Mac will now ask once to let CoverCharge use the microphone. It only listens while you hold the button.':'Your device will now ask once to use the microphone. It only listens while you hold the button, for up to 30 seconds.'}),(0,D.jsx)(b.T,{size:14,colour:v.colours.muted,children:(0,E.desktopStt)()?'On this Mac, speech is turned into text on the Mac itself, so what you say isn\u2019t sent anywhere. CoverCharge doesn\u2019t keep the audio.':'What you say while holding is sent to Grok (xAI) to be turned into text. CoverCharge doesn\u2019t keep the audio.'}),(0,D.jsx)(b.T,{size:14,colour:v.colours.muted,children:"The helper replies in text only, never aloud. Any change is shown in text first, with Confirm and Cancel buttons; you can also say \u201cyes\u201d. Orders to suppliers, messages and payments are only ever saved as drafts for the owner."}),(0,D.jsx)(b.Button,{testID:"voice-allow",kind:"success",label:"Allow microphone",onPress:async()=>{(0,I.setMicExplainedFor)(g),pe(!1);const e=!!(0,E.desktopStt)()||await(0,E.askMic)();if((0,E.desktopStt)()){(await(0,E.levelMeter)(()=>{}))()}ve(e?{text:'Ready. Now hold the button and speak.',tone:'ok'}:{text:F,tone:'warn'})}}),(0,D.jsx)(b.Button,{kind:"secondary",label:"Type instead",onPress:()=>{(0,I.setMicExplainedFor)(g),pe(!1),de(!0),te('answer')}})]})})]})}},1114,[5,874,30,246,120,224,241,122,263,151,287,127,961,962,1006,954,14,854,813,821,1067,1127,1115,1065,1066,966,1070,1049,1071,1072,1128,24]);
|
| 35 |
+
__d(function(g,r,i,_a,_m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"MAX_KEYTERMS",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"MAX_APP_KEYTERMS",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"VENUE_WORDS",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"cleanTerm",{enumerable:!0,get:function(){return u}}),e.venueKeyterms=function(l){const b=[],f=new Set,h=t=>{const a=u(t??''),n=a.toLowerCase();a.length>=2&&!f.has(n)&&b.length<c&&(f.add(n),b.push(a))};try{o.forEach(h)}catch{}try{t.useOwner.getState().staff.filter(t=>t.active).forEach(t=>h(String(t.name).split(/\s+/)[0]))}catch{}try{(n.useFloor.getState().plans[l]??(0,n.seedPlan)(l)).areas.forEach(t=>h(t.name))}catch{}try{s.forEach(h)}catch{}try{a.useStore.getState().menu.filter(t=>!t.restaurantId||t.restaurantId===l).forEach(t=>h(t.name))}catch{}return b};var t=r(d[0]),a=r(d[1]),n=r(d[2]);const l=100,c=80,o=['walk-in','covers','table','seat','seated','clear','cleared','needs clearing','block','unblock','waitlist','lobster','crab','langoustines','scallops','sold out','no-show','Sitooterie','Beer Garden','Main Restaurant','party of','people'],s=['table one','table two','table three','table four','table five','table six','table seven','table eight','table nine','table ten','table eleven','table twelve'],u=t=>t.replace(/\([^)]*\)/g,' ').replace(/[^\p{L}\p{N} '&.-]/gu,' ').replace(/\s+/g,' ').trim().slice(0,50).trim()},1115,[854,870,825]);
|
| 36 |
+
__d(function(g,r,_i,a,_m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.seedPitch=function(){const h='owner'===d.APP_VARIANT?'st-tracy':'chef'===d.APP_VARIANT?'st-bisto':'staff'===d.APP_VARIANT?'st-lenny':null;!h||i.useSession.getState().meId||/[?&]invite=/.test('undefined'!=typeof window?window.location.search:'')||i.useSession.getState().signIn(h);t.useStore.setState(t=>({bookings:t.bookings.map((t,e)=>t.phone||t.walkIn?t:{...t,phone:`07700 900${String(100+e).slice(-3)}`})}));const S=s.useOwner.getState();if(S.shifts.some(t=>t.id.startsWith('pitch-')))return;const p=(0,e.nowFrom)(t.useStore.getState().clock),y=f(p),m=p.getHours()+p.getMinutes()/60,w=(0,s.addDays)(y,-(0,s.weekdayOf)(y)),A=[],k=[];for(const[t,[e,n,i]]of Object.entries(l))if(o.ROSTER.some(e=>e.id===t))for(let o=-7;o<14;o++){const d=(0,s.addDays)(w,o),c=(0,s.weekdayOf)(d);i.includes(c)||(A.push({id:`pitch-${t}-${d}`,staffId:t,date:d,day:c,start:e,end:n,published:o<7,breakAt:n-e>=6?e+3.5:void 0}),d<y?k.push({id:`pitch-a-${t}-${d}`,staffId:t,date:d,in:u(d,e-.1),out:u(d,n+.15),inSite:!0,outSite:!0,breakMins:n-e>=6?30:0,signOff:d<(0,s.addDays)(y,-1)?{by:'Alex',byId:'st-gordon',at:u(d,23.5)}:void 0}):d===y&&e<=m&&k.push({id:`pitch-a-${t}-${d}`,staffId:t,date:d,in:u(d,e-.05),inSite:!0}))}s.useOwner.setState({shifts:[...S.shifts.filter(t=>!A.some(e=>e.staffId===t.staffId&&e.date===t.date)),...A],attendance:[...S.attendance,...k]});const I=n.useCashUp.getState();for(let t=1;t<=10;t++){const e=(0,s.addDays)(y,-t);if([0,1].includes((0,s.weekdayOf)(e)))continue;if(I.cashUps.some(t=>t.rid===c&&t.date===e))continue;const n=1450+373*t%900,o=210+97*t%240;I.saveCashUp({rid:c,date:e,vals:{card:n,cash:o,float:200,cashTips:38+13*t%40,cardTips:92+29*t%70,overUnder:3===t?-2.5:0,notes:3===t?'Till 2 short \xa32.50, counted twice.':''},photos:[],confirmedBy:t%2?'Alex':'Priya',confirmedAt:u(e,23.25),readBy:null})}for(let t=1;t<=3;t++){const e=(0,s.addDays)(w,-7*t);if(I.sales.some(t=>t.rid===c&&t.weekStart===e))continue;const n=11800+640*t;I.saveSales({rid:c,weekStart:e,vals:{gross:n,net:Math.round(n/1.2),vat:Math.round(n-n/1.2),covers:610+22*t,discounts:140,refunds:35},categories:[{name:'Food',amount:Math.round(.62*n)},{name:'Drinks',amount:Math.round(.31*n)},{name:'Takeaway',amount:Math.round(.07*n)}],photos:[],confirmedBy:'Alex',confirmedAt:u((0,s.addDays)(e,7),11),readBy:null})}};var t=r(_d[0]),e=r(_d[1]),s=r(_d[2]),n=r(_d[3]),o=r(_d[4]),i=r(_d[5]),d=r(_d[6]);const c='anchorage',f=t=>`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,'0')}-${String(t.getDate()).padStart(2,'0')}`,u=(t,e)=>{const[s,n,o]=t.split('-').map(Number);return new Date(s,n-1,o,Math.floor(e),Math.round(e%1*60)).toISOString()},l={'st-gordon':[11,21,[0,1]],'st-bisto':[10,20.5,[0,1]],'st-agate':[16,22.5,[0,1,2]],'st-lenny':[11,19,[0,1,3]],'st-finn':[17,23,[0,1,4]],'st-eilidh':[12,18,[0,1,2]],'st-emily':[17,22,[0,1,3]],'st-lillie':[12,20,[0,1,5]],'st-jack':[16,22,[0,1,6]]}},1116,[819,870,854,983,14,858,806]);
|
| 37 |
+
__d(function(e,s,o,p,a,t,n){"use strict";a.exports="/mrbasrais/owner-app/assets/node_modules/@expo-google-fonts/poppins/400Regular/Poppins_400Regular.093ee89be9ede30383f39a899c485a82.ttf"},1117,[]);
|
| 38 |
+
__d(function(s,o,e,p,t,c,d){"use strict";t.exports="/mrbasrais/owner-app/assets/node_modules/@expo-google-fonts/poppins/500Medium/Poppins_500Medium.bf59c687bc6d3a70204d3944082c5cc0.ttf"},1118,[]);
|
| 39 |
+
__d(function(o,s,e,p,t,d,f){"use strict";t.exports="/mrbasrais/owner-app/assets/node_modules/@expo-google-fonts/poppins/600SemiBold/Poppins_600SemiBold.6f1520d107205975713ba09df778f93f.ttf"},1119,[]);
|
| 40 |
+
__d(function(o,s,e,p,d,t,n){"use strict";d.exports="/mrbasrais/owner-app/assets/node_modules/@expo-google-fonts/poppins/700Bold/Poppins_700Bold.08c20a487911694291bd8c5de41315ad.ttf"},1120,[]);
|
mrbasrais/owner-app/_expo/static/js/web/basket-39cdf98ed8418bbc1a1ff3b2f269cbcb.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
__d(function(g,_r,_i,_a,_m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}});var l=_r(d[0]),t=_r(d[1]),n=_r(d[2]),s=e(n),a=_r(d[3]),o=_r(d[4]),r=e(_r(d[5])),i=_r(d[6]),u=_r(d[7]),c=_r(d[8]),h=_r(d[9]),m=_r(d[10]),b=_r(d[11]),y=_r(d[12]),j=_r(d[13]),x=_r(d[14]),p=_r(d[15]),k=_r(d[16]);function f(){const e=(0,y.useBasket)(),f=(0,y.useRestaurant)(e.restaurantId??void 0),w=(0,y.useAllMenu)(e.restaurantId??void 0),v=(0,y.useCustomer)(),C=(0,y.useOrders)(f?.id),S=(0,y.useStore)(e=>e.setLineQty),T=(0,y.useStore)(e=>e.overrideLine),B=(0,y.useStore)(e=>e.startBasket),P=(0,y.useNow)(15e3),[$,O]=(0,n.useState)(null),[I,M]=(0,n.useState)(!1),[N,F]=(0,n.useState)(''),[L]=(0,n.useState)(()=>(0,o.startForm)()),[R,z]=(0,n.useState)(''),[A,D]=(0,n.useState)(v.phone??''),[E,Y]=(0,n.useState)(v.email??''),[_,q]=(0,n.useState)(!1),H=(0,y.useOrderAtTable)(e.restaurantId??void 0);s.default.useEffect(()=>{H||'table'!==e.mode||y.useStore.setState(e=>({basket:{...e.basket,mode:'takeaway',tableNo:void 0}}))},[H,e.mode]);const[G,K]=(0,n.useState)(null),[Q,J]=(0,n.useState)(!1),U=(0,n.useMemo)(()=>(0,j.linesFromBasket)(e,w,v.allergies),[e,w,v.allergies]);if(!f||!e.lines.length)return(0,k.jsxs)(u.Screen,{title:"Your basket",children:[(0,k.jsx)(u.Muted,{children:"Your basket is empty."}),(0,k.jsx)(u.Button,{label:"Browse restaurants",onPress:()=>t.router.replace('/customer')})]});const V=H&&'table'===e.mode,W=(0,m.takeawaySlots)(f,C,P),X=U.reduce((e,l)=>e+l.unitPrice*l.qty,0),Z=U.some(e=>e.contains.length&&!e.overridden),ee=e.lines.filter(e=>{const l=w.find(l=>l.id===e.itemId);return!l||l.soldOut||!l.signOff}),le=!V&&!$,te=!V&&f.settings.takeawayPaused,ne=(0,p.ukPhone)(A),se=!Z&&!ee.length&&I&&!le&&!te&&(V||ne.ok&&(0,p.emailOk)(E)),ae=async e=>{const l=await y.repo.orders.placeFromBasket({slotTime:V?void 0:$,tip:0,giftCardCode:e?.giftCardCode,notes:N,paidNow:!V,phone:V?void 0:ne.pretty,email:V?void 0:E.trim()||void 0});(0,o.rememberGuard)(l.id,(0,o.guardFor)({...L,hp:R})),q(!1),t.router.replace(`/customer/order/${l.id}`)},oe=e.lines.find(e=>e.key===G),re=oe?U[e.lines.indexOf(oe)]:void 0;return(0,k.jsxs)(u.Screen,{title:"Your basket",subtitle:`${f.name} \xb7 ${V?`${(0,l.tableNumbers)(e.tableNo)} (order at table)`:'Takeaway \u2014 collection'}`,footer:(0,k.jsxs)(r.default,{style:{gap:8},children:[(0,k.jsxs)(u.Row,{style:{justifyContent:'space-between'},children:[(0,k.jsx)(u.T,{weight:"semibold",children:"Subtotal"}),(0,k.jsx)(u.T,{weight:"bold",size:20,colour:x.colours.gold,children:(0,h.gbp)(X)})]}),Z?(0,k.jsx)(u.T,{size:14,colour:x.colours.red,children:"Resolve the blocked allergy item(s) before continuing."}):I?le&&!te?(0,k.jsx)(u.T,{size:14,colour:x.colours.amber,children:"Choose a collection time."}):null:(0,k.jsx)(u.T,{size:14,colour:x.colours.amber,children:"Confirm your allergies to continue."}),V?(0,k.jsx)(u.Button,{label:"Send order to the kitchen",disabled:!se,onPress:()=>ae(),testID:"send-table-order"}):(0,k.jsx)(u.Button,{label:`Continue to payment \xb7 ${(0,h.gbp)(X)}`,disabled:!se,onPress:()=>q(!0),testID:"checkout"})]}),children:[(V||e.tableNo,null),V?(0,k.jsx)(u.Banner,{kind:"success",title:`${(0,l.tableNumbers)(e.tableNo)}`,children:"Ordered food goes to the kitchen straight away; you pay at the end (split the bill if you like)."}):null,f.fictional?null:(0,k.jsx)(u.ExampleAllergenNotice,{}),U.map((l,t)=>{const n=e.lines[t],s=l.contains.length&&!l.overridden;return(0,k.jsxs)(u.Card,{highlight:l.contains.length?x.colours.red:l.may.length?x.colours.amber:void 0,children:[(0,k.jsxs)(u.Row,{style:{justifyContent:'space-between',alignItems:'flex-start'},children:[(0,k.jsxs)(r.default,{style:{flex:1,paddingRight:8},children:[(0,k.jsx)(u.T,{weight:"semibold",children:l.name}),l.choices.length?(0,k.jsx)(u.Muted,{children:l.choices.join(' \xb7 ')}):null,l.notes?(0,k.jsxs)(u.Muted,{children:["Note: ",l.notes]}):null]}),(0,k.jsx)(u.T,{weight:"semibold",children:(0,h.gbp)(l.unitPrice*l.qty)})]}),s?(0,k.jsxs)(u.Banner,{kind:"danger",title:`BLOCKED \u2014 contains ${l.contains.map(c.allergenLabel).join(', ')}`,children:[(0,k.jsx)(u.T,{size:14,colour:"#FFE3DF",children:`Conflicts with your declared ${v.allergies.filter(e=>l.contains.includes(e.allergen)).map(e=>`${(0,c.allergenLabel)(e.allergen)} (${(0,c.severityLabel)(e.severity)})`).join(', ')}.`}),(0,k.jsxs)(u.Row,{gap:8,style:{marginTop:6},children:[(0,k.jsx)(u.Button,{small:!0,kind:"secondary",label:"Remove",onPress:()=>S(n.key,0)}),(0,k.jsx)(u.Button,{small:!0,kind:"danger",label:"Override\u2026",onPress:()=>{J(!1),K(n.key)}})]})]}):l.contains.length?(0,k.jsx)(u.Banner,{kind:"danger",title:`Allergy override recorded \u2014 contains ${l.contains.map(c.allergenLabel).join(', ')}`,children:"The kitchen will get an allergy alert that must be acknowledged, and staff will check with you at handover."}):null,l.may.length?(0,k.jsx)(u.Banner,{kind:"warn",title:`May contain ${l.may.map(c.allergenLabel).join(', ')}`,children:"Cross-contact risk (e.g. shared fryer). Please check with staff."}):null,ee.includes(n)?(0,k.jsx)(u.Badge,{kind:"amber",label:"No longer available online \u2014 please remove"}):null,(0,k.jsxs)(u.Row,{style:{justifyContent:'space-between'},children:[(0,k.jsx)(u.Button,{small:!0,kind:"ghost",label:"Remove",onPress:()=>S(n.key,0)}),(0,k.jsx)(u.Stepper,{value:n.qty,onChange:e=>S(n.key,e),min:1,label:l.name})]})]},n.key)}),(0,k.jsx)(u.Button,{kind:"ghost",label:"Add more items",onPress:()=>t.router.push(`/customer/${f.id}`)}),V?null:(0,k.jsxs)(u.Card,{children:[(0,k.jsxs)(u.H2,{children:["Collection time \u2014 ",(0,b.niceDate)(P)]}),te?(0,k.jsx)(u.Banner,{kind:"warn",title:"Takeaway paused",children:"The restaurant has paused takeaway slots for now. Please try again later or book a table."}):0===W.length?(0,k.jsx)(u.Banner,{kind:"warn",children:"No collection slots left today."}):(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(u.Muted,{children:["15-minute slots, max ",f.settings.slotCap," orders each so the kitchen isn\u2019t overloaded."]}),(0,k.jsx)(u.Row,{wrap:!0,gap:6,children:W.slice(0,16).map(e=>(0,k.jsx)(u.Chip,{label:e.label,sub:e.full?'Full':e.cap-e.taken+" left",disabled:e.full,selected:$===e.time.toISOString(),onPress:()=>O(e.time.toISOString())},e.label))})]})]}),(0,k.jsxs)(u.Card,{highlight:I?void 0:x.colours.amber,children:[(0,k.jsx)(u.H2,{children:"Confirm allergies for this order"}),(0,k.jsx)(u.Row,{wrap:!0,gap:6,children:v.allergies.length?v.allergies.map(e=>(0,k.jsx)(u.Badge,{kind:"red",label:`${(0,c.allergenLabel)(e.allergen)} \u2014 ${(0,c.severityLabel)(e.severity)}`},e.allergen)):(0,k.jsx)(u.Muted,{children:"No allergies declared on your profile."})}),(0,k.jsx)(u.Toggle,{label:v.allergies.length?'Yes, these are correct for everyone this order is for':'I confirm no one in this order has a food allergy',value:I,onChange:M}),(0,k.jsx)(u.Button,{small:!0,kind:"ghost",label:"Edit allergies in profile",onPress:()=>t.router.push('/customer/profile')})]}),V?null:(0,k.jsxs)(u.Card,{children:[(0,k.jsx)(u.H2,{children:"Your details"}),(0,k.jsx)(u.Field,{testID:"order-phone",label:"Mobile number (needed for collection)",value:A,onChangeText:D,keyboardType:"phone-pad",autoComplete:"tel",placeholder:"e.g. 07700 900123"}),!ne.ok&&A?(0,k.jsx)(u.T,{size:13,colour:x.colours.amber,children:ne.error}):null,(0,k.jsx)(u.Field,{label:"Email (optional)",value:E,onChangeText:Y,keyboardType:"email-address",autoCapitalize:"none",placeholder:"you@example.com"}),(0,p.emailOk)(E)?null:(0,k.jsx)(u.T,{size:13,colour:x.colours.amber,children:"That email doesn\u2019t look quite right. Check it, or leave it blank."}),(0,k.jsx)(u.Muted,{children:"Your order confirmation and collection time are shown here. Text messages are not connected."})]}),(0,k.jsx)(u.Field,{label:"Order notes (optional)",value:N,onChangeText:F,placeholder:"e.g. cutlery please"}),V?(0,k.jsx)(u.Button,{small:!0,kind:"ghost",label:"Switch to takeaway instead",onPress:()=>B(f.id,'takeaway')}):null,(0,k.jsx)(i.MockPay,{visible:_,onClose:()=>q(!1),amount:X,restaurantId:f.id,onPaid:e=>ae({giftCardCode:e.giftCardCode}),title:"Pay for your takeaway"}),(0,k.jsxs)(u.Sheet,{visible:!!oe,onClose:()=>K(null),title:"Allergy override",children:[re?(0,k.jsx)(u.Banner,{kind:"danger",title:`${re.name} contains ${re.contains.map(c.allergenLabel).join(', ')}`,children:"Only continue if this item is for someone without this allergy, or you have spoken to staff."}):null,(0,k.jsx)(u.Toggle,{label:"I understand and want to add it anyway",value:Q,onChange:J}),(0,k.jsx)(u.Button,{kind:"danger",disabled:!Q,label:"Confirm override",onPress:()=>{oe&&re&&T(oe.key,re.contains),K(null)}})]}),(0,k.jsx)(a.Honeypot,{value:R,onChange:z})]})}},789,[808,804,30,810,811,127,834,813,814,816,817,818,819,870,821,823,24]);
|
mrbasrais/owner-app/_expo/static/js/web/book-7c4c90140093809a35e48a974143bb55.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
__d(function(g,_r,_i,_a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return M}});var e,t=_r(_d[0]),o=_r(_d[1]),s=_r(_d[2]),n=_r(_d[3]),l=_r(_d[4]),i=_r(_d[5]),a=_r(_d[6]),r=(e=a)&&e.__esModule?e:{default:e},d=_r(_d[7]),u=_r(_d[8]),c=_r(_d[9]),h=_r(_d[10]),p=_r(_d[11]),b=_r(_d[12]),f=_r(_d[13]),y=_r(_d[14]),x=_r(_d[15]),j=_r(_d[16]),k=_r(_d[17]),v=_r(_d[18]),w=_r(_d[19]),S=_r(_d[20]),T=_r(_d[21]),D=_r(_d[22]),C=_r(_d[23]),$=_r(_d[24]),P=_r(_d[25]);function M(){const{rid:e,date:a}=(0,s.useLocalSearchParams)(),M=(0,x.useRestaurant)(e),B=(0,x.useCustomer)(),A=(0,x.useBookings)(e),O=(0,x.useEvents)(e),N=(0,x.useNow)(6e4),[R]=(0,n.useState)(()=>(0,i.startForm)()),[z,F]=(0,n.useState)(''),[q,E]=(0,n.useState)(2),[H,W]=(0,n.useState)(a??(0,y.ymd)(N)),[I,L]=(0,n.useState)(null),[_,Y]=(0,n.useState)(B.name),[U,G]=(0,n.useState)(B.phone??''),[Q,V]=(0,n.useState)(B.email??''),[J,K]=(0,n.useState)(!1),[X,Z]=(0,n.useState)(''),[ee,te]=(0,n.useState)(!1),[oe,se]=(0,n.useState)([]),[ne,le]=(0,n.useState)(!1),ie=[...B.allergies,...oe.filter(e=>!B.allergies.some(t=>t.allergen===e)).map(e=>({allergen:e,severity:'allergy'}))],[ae,re]=(0,n.useState)(null),de=(0,S.useBlocks)(e=>e.blocks);(0,j.usePublicDayStore)(e=>e.n);const ue=e?(0,j.publicDay)(e,H):null,ce=ue?[...ue.bookings,...A.filter(e=>e.date!==H)]:A,he=ue?[...de.filter(t=>t.rid!==e||t.date!==H),...ue.blocks]:de,me=(0,T.usePlan)(e),[ge,pe]=(0,n.useState)((0,C.emptyNeeds)()),be=!0===ge.dog,fe=be?ge.dogs:0,ye=(0,n.useMemo)(()=>{const e=[],t=new Date(N);t.setHours(12,0,0,0);for(let o=0;o<21;o++){const s=new Date(t);s.setDate(t.getDate()+o),e.push(s)}return a&&!e.some(e=>(0,y.ymd)(e)===a)&&e.push((0,y.parseYmd)(a)),e},[N.toDateString(),a]);if(!M)return(0,P.jsx)(c.Screen,{title:"Not found",children:(0,P.jsx)(c.T,{children:"Restaurant not found."})});const xe=M.settings,je=(0,y.parseYmd)(H),ke=(0,S.blocksOn)(he,M.id,H),ve=ce.filter(e=>e.date===H),we=me.areas.filter(e=>e.dogs),Se=(0,$.dogSetUp)(me),Te=e=>(0,D.freeTablesAt)(me,ve,q,new Date(`${H}${(0,t.tableNumbers)(e)}:00`),(0,D.turnFor)(q,xe.turnMins),xe.turnMins,{dog:!0,closed:(0,S.closedAreasAt)(he,M.id,H,e)}),De=(0,f.bookingSlots)(M,je,e=>ce.filter(t=>t.date===H&&t.time===e&&!['cancelled','noshow'].includes(t.status)).reduce((e,t)=>e+t.partySize,0),q,N).map(e=>{const t=(0,S.blockAt)(he,M.id,H,e.time),o=be&&Se&&e.available&&!t&&(!Te(e.time).length||!(0,C.dogTimeOk)(M,ce,H,e.time,fe));return{...e,blocked:!!t,noDog:o,available:e.available&&!t&&!o}}),Ce=De.some(e=>e.available),$e=(0,d.depositOf)(xe),Pe=(0,d.depositDue)($e,q),Me=Pe>0?'deposit':'none',Be=(0,d.depositWords)($e,q,M.name),Ae=O.filter(e=>e.date===H),Oe=(0,w.ukPhone)(U),Ne=(0,w.emailOk)(Q),Re=(0,C.needsMissing)(ge,B.allergies),ze=!!I&&ee&&!Re.length&&_.trim().length>1&&Oe.ok&&Ne,Fe=async()=>{const e=(0,C.needsPatch)(ge,B.allergies),t=be&&Se?Te(I).map(e=>e.table):[],o=be?ge.tableReq.find(e=>t.includes(e))??t[0]:void 0,s=await x.repo.bookings.create({restaurantId:M.id,customerId:B.id,name:_,partySize:q,date:H,time:I,notes:X.trim(),security:Me,depositPaid:0,...Pe?{depositDue:Pe,depositPolicy:Be.join(' '),depositRefundable:$e.refundable,depositCutoffHours:$e.cutoffHours}:{},phone:Oe.pretty,email:Q.trim()||void 0,source:'online',...e,...De.find(e=>e.time===I)?.drinksOnly?{drinksOnly:!0}:{},allergies:e.allergies??ie,...o?{table:o}:{}});(0,i.rememberGuard)(s.id,(0,i.guardFor)({...R,hp:z})),re(s)},qe=(0,x.useStore)(e=>ae?e.bookings.find(e=>e.id===ae.id)?.ref:void 0),Ee=e=>(0,v.waMeLink)(M.settings.whatsapp,(0,v.guestWhatsAppText)({name:e.name,ref:qe??e.ref,date:e.date,time:e.time,partySize:e.partySize},M.name));if(ae){const e='pending'===ae.status;return(0,P.jsxs)(c.Screen,{title:e?'Booking request received':'Booking confirmed',subtitle:M.name,children:[(0,P.jsx)(c.Banner,{kind:e?'info':'success',title:`Reference ${qe??ae.ref}`,children:`${ae.partySize} people \xb7 ${(0,y.niceDateYear)((0,y.parseYmd)(ae.date))} at ${ae.time}`}),e?(0,P.jsx)(c.Banner,{kind:"warn",title:"The team will confirm shortly",children:"For larger parties and special requests, a member of the team checks your booking first. Contact the venue if you need an update."}):null,(0,P.jsxs)(c.Card,{children:[(0,P.jsxs)(c.T,{children:["Name: ",ae.name]}),(0,P.jsxs)(c.T,{children:["Mobile: ",ae.phone]}),ae.email?(0,P.jsxs)(c.T,{children:["Email: ",ae.email]}):null,(0,P.jsxs)(c.T,{children:["Allergies shared with the restaurant: ",ae.allergies.length?ae.allergies.map(e=>`${(0,h.allergenLabel)(e.allergen)} (${(0,h.severityLabel)(e.severity)})`).join(', '):'none']}),ae.notes?(0,P.jsxs)(c.T,{children:["Notes: ",ae.notes]}):null,ae.dog?(0,P.jsxs)(c.T,{children:["\ud83d\udc15 Dog coming too",ae.table?` \xb7 dog-friendly table ${ae.table}`:'']}):null,ae.holds?.length?(0,P.jsxs)(c.T,{children:["Reserved: ",ae.holds.map(e=>`${e.qty} \xd7 ${'item'===e.kind?(M.settings.reservables??$.ANCHORAGE_RESERVABLES).find(t=>t.id===e.id)?.name??'item':e.id}`).join(', ')," (the kitchen confirms it)"]}):null,ae.tableReq?.length?(0,P.jsxs)(c.T,{children:["Table requested: ",ae.tableReq.map(e=>`${(0,t.tableNumbers)(e)}`).join(' or ')," (not guaranteed, but we\u2019ll do our best)"]}):null,'deposit'===ae.security&&ae.depositDue?(0,P.jsxs)(c.T,{weight:"semibold",children:["Deposit due: ",(0,b.gbp)(ae.depositDue),". ",M.name," will tell you how to pay it."]}):null,'deposit'===ae.security&&ae.depositPolicy?(0,P.jsx)(c.Muted,{children:ae.depositPolicy}):null,(0,P.jsx)(c.Muted,{children:"Your booking details are shown above. If you need confirmation, contact the venue and quote your reference."}),(0,P.jsxs)(c.Muted,{children:["Need to change or cancel? Call ",M.phone," and quote ",qe??ae.ref,"."]})]}),Ee(ae)?(0,P.jsxs)(r.default,{style:{gap:4},children:[(0,P.jsx)(c.Button,{kind:"secondary",label:"\ud83d\udcac Message us on WhatsApp",testID:"guest-whatsapp",onPress:()=>{const e=Ee(ae);e&&(0,v.openWhatsApp)(e)}}),(0,P.jsx)(c.Muted,{size:13,children:"Opens WhatsApp with your booking details typed in. You can change the message before you send it."})]}):null,(0,P.jsx)(c.Button,{label:"Back to restaurant",onPress:()=>s.router.replace(`/customer/${M.id}`)})]})}return(0,P.jsxs)(c.Screen,{title:"Book a table",subtitle:M.name,footer:(0,P.jsx)(c.Button,{label:Re.length?Re[0]:q>(xe.autoAcceptUpTo??7)?'Send booking request':'Confirm booking',disabled:!ze,onPress:()=>Fe(),testID:"confirm-booking"}),children:[(0,P.jsx)(C.FirstQuestions,{rid:M.id,value:ge,onChange:e=>{e.dog===ge.dog&&e.dogs===ge.dogs||L(null),pe(e)},party:q,audience:"guest",profile:B.allergies}),(0,P.jsxs)(c.Card,{children:[(0,P.jsxs)(c.Row,{style:{justifyContent:'space-between'},children:[(0,P.jsx)(c.H2,{children:"Party size"}),(0,P.jsx)(c.Stepper,{value:q,onChange:e=>{E(e),L(null)},min:1,max:16,label:"party size"})]}),Pe?(0,P.jsx)(c.Banner,{kind:"info",title:`Deposit: ${(0,b.gbp)(Pe)} for ${q} guests`,children:(0,P.jsx)(r.default,{style:{gap:4},children:Be.map(e=>(0,P.jsx)(c.T,{size:13,children:e},e))})}):$e.on&&$e.perPersonPence>0?(0,P.jsxs)(c.Muted,{children:["No deposit for fewer than ",$e.fromParty," guests."]}):null,q>(xe.autoAcceptUpTo??7)?(0,P.jsxs)(c.Muted,{children:["For ",q," people the team checks the booking first, then texts you to confirm."]}):null,be&&Se?(0,P.jsxs)(c.Muted,{children:["Dogs are welcome in the ",we.map(e=>`${e.name}${e.outdoor?' (outdoors, weather permitting)':''}`).join(' and ')||'dog-friendly tables',". We\u2019ll only show times with a dog-friendly table",M.settings.maxDogsPerSlot?' and room for your dog':'',"."]}):null]}),(0,P.jsxs)(c.Card,{children:[(0,P.jsx)(c.H2,{children:"Date"}),(0,P.jsx)(c.Row,{wrap:!0,gap:6,children:ye.map(e=>{const t=!!(0,p.hoursFor)(M,e),o=O.some(t=>t.date===(0,y.ymd)(e));return(0,P.jsx)(c.Chip,{label:(0,y.niceDate)(e),sub:t?o?'\u2605 event':void 0:'Closed',disabled:!t,selected:H===(0,y.ymd)(e),onPress:()=>{W((0,y.ymd)(e)),L(null)}},(0,y.ymd)(e))})}),Ae.map(e=>(0,P.jsx)(c.Banner,{kind:"demo",title:e.title,children:e.description},e.id))]}),(0,P.jsxs)(c.Card,{children:[(0,P.jsx)(c.H2,{children:"Time"}),0===De.length?(0,P.jsx)(c.Muted,{children:"Closed on this day (per listed kitchen hours)."}):(0,P.jsx)(c.Row,{wrap:!0,gap:6,children:De.map(e=>(0,P.jsx)(c.Chip,{label:e.time,sub:e.available?e.drinksOnly?'Drinks only':void 0:e.blocked?'Unavailable':e.noDog?'No dog table':e.left<q?'Full':'\u2014',disabled:!e.available,selected:I===e.time,onPress:()=>L(e.time)},e.time))}),ke.length>0&&De.some(e=>e.blocked)?(0,P.jsx)(c.Banner,{kind:"info",title:Ce?'Some times aren\u2019t available online':'Online booking isn\u2019t available for this time',children:`We\u2019re not taking online bookings ${ke.map(e=>`${e.from}\u2013${e.to}`).join(', ')} on ${(0,y.niceDate)(je)}. Please give us a ring on ${M.phone??"the restaurant"} and we\u2019ll do our best to fit you in.`}):null,(()=>{const e=(0,o.lastFoodOn)(M,H);return e&&De.some(e=>e.drinksOnly)?(0,P.jsx)(c.Banner,{kind:"info",title:`Last food orders ${(0,o.fmt12)(e.time)}${'kitchen closes'!==e.reason?` (${e.reason})`:''}`,children:"Times marked \u201cDrinks only\u201d are after the kitchen\u2019s last food orders that day: you\u2019re welcome for drinks, but we can\u2019t serve food."}):null})(),be&&De.some(e=>e.noDog)?(0,P.jsx)(c.Banner,{kind:"info",title:"Some times are full for dogs",children:`Times marked "No dog table" are full in the ${we.map(e=>e.name).join(' and ')}${M.settings.maxDogsPerSlot?' or already have the most dogs we can look after':''}${(0,S.closedAreasAt)(he,M.id,H,I??'12:00').size?', or the garden is closed for weather':''}. We\u2019d love to see you both, so please try one of the other times shown.`}):null,(0,P.jsxs)(c.Muted,{children:["Times come from covers per slot (",xe.bookingCoversPerSlot," per half hour) and table rules."]})]}),(0,P.jsx)(C.MoreQuestions,{rid:M.id,r:M,value:ge,onChange:pe,party:q,date:H,time:I,today:(0,y.ymd)(N),bookings:ce,audience:"guest",showTables:!0}),(0,P.jsxs)(c.Card,{highlight:ee?void 0:k.colours.amber,children:[(0,P.jsx)(c.Field,{label:"Notes (optional)",value:X,onChangeText:Z,placeholder:u.NOTES_PLACEHOLDER,multiline:!0,numberOfLines:3,testID:"book-notes"}),(0,P.jsx)(c.Toggle,{label:"I confirm the allergy information for this booking",value:ee,onChange:te}),(0,P.jsx)(c.Muted,{children:"Table requests aren\u2019t guaranteed, but we\u2019ll do our best. Nothing here is charged now; reserved dishes are paid on the night."})]}),(0,P.jsxs)(c.Card,{children:[(0,P.jsx)(c.H2,{children:"Your details"}),(0,P.jsx)(c.Field,{label:"Name for the booking",value:_,onChangeText:Y}),(0,P.jsx)(c.Field,{testID:"book-phone",label:"Mobile number (needed to book)",value:U,onChangeText:G,onBlur:()=>K(!0),keyboardType:"phone-pad",autoComplete:"tel",placeholder:"e.g. 07700 900123"}),Oe.ok||!J&&!U?null:(0,P.jsx)(c.T,{size:13,colour:k.colours.amber,children:Oe.error}),(0,P.jsx)(c.Field,{testID:"book-email",label:"Email (optional)",value:Q,onChangeText:V,keyboardType:"email-address",autoCapitalize:"none",autoComplete:"email",placeholder:"you@example.com"}),Ne?null:(0,P.jsx)(c.T,{size:13,colour:k.colours.amber,children:"That email doesn\u2019t look quite right. Check it, or leave it blank."}),(0,P.jsxs)(c.Muted,{children:["We\u2019ll text you a confirmation",Q.trim()?' and email it too':'',", with how to change or cancel. We only use your number for this booking."]})]}),(0,P.jsx)(l.Honeypot,{value:z,onChange:F})]})}},777,[808,809,804,30,810,811,127,13,812,813,814,815,816,817,818,819,820,821,822,823,824,825,826,827,828,24]);
|
mrbasrais/owner-app/_expo/static/js/web/index-572239673a2eda40ce1d7171531ee6dc.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
__d(function(g,_r,i,_a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}});var e=_r(d[0]);_r(d[1]);var s,r=_r(d[2]),n=(s=r)&&s.__esModule?s:{default:s},t=_r(d[3]),l=_r(d[4]),o=_r(d[5]),a=_r(d[6]),u=_r(d[7]),c=_r(d[8]),h=_r(d[9]),j=_r(d[10]),x=_r(d[11]);function f(){const s=(0,u.useStore)(e=>e.restaurants),r=(0,u.useCustomer)(),f=(0,u.useNow)(3e4);return(0,x.jsxs)(l.Screen,{title:"Restaurants",subtitle:"Book, order and pay at local restaurants",right:(0,x.jsxs)(l.Row,{children:[(0,x.jsx)(t.BasketButton,{}),(0,x.jsx)(l.Button,{small:!0,kind:"ghost",label:"Profile",onPress:()=>e.router.push('/customer/profile')})]}),children:[(0,x.jsxs)(l.Card,{onPress:()=>e.router.push('/customer/profile'),children:[(0,x.jsxs)(l.Row,{style:{justifyContent:'space-between'},children:[(0,x.jsx)(l.T,{weight:"semibold",children:r.name?`Hello, ${r.name.split(' ')[0]}`:'Add your profile'}),(0,x.jsx)(l.Muted,{children:"Edit profile \u203a"})]}),(0,x.jsx)(l.Muted,{children:"Your allergies (stored once, confirmed on every order and booking):"}),(0,x.jsx)(l.Row,{wrap:!0,gap:6,children:r.allergies.length?r.allergies.map(e=>(0,x.jsx)(l.Badge,{kind:"red",label:`${(0,o.allergenLabel)(e.allergen)} \u2014 ${(0,o.severityLabel)(e.severity)}`},e.allergen)):(0,x.jsx)(l.Muted,{children:"None declared"})})]}),s.map(s=>{const r=(0,a.hoursFor)(s,f);return(0,x.jsxs)(l.Card,{onPress:()=>e.router.push(`/customer/${s.id}`),highlight:s.id===j.VENUE_RID?c.colours.gold:void 0,children:[(0,x.jsxs)(l.Row,{style:{justifyContent:'space-between'},children:[(0,x.jsx)(l.H2,{style:{flex:1},children:s.name}),s.fictional?(0,x.jsx)(l.Badge,{kind:"amber",label:"FICTIONAL DEMO"}):(0,x.jsx)(l.Badge,{kind:"gold",label:"VENUE"})]}),(0,x.jsx)(l.Muted,{children:s.tagline}),(0,x.jsx)(l.Muted,{children:s.location}),(0,x.jsx)(l.T,{size:14,colour:r?c.colours.ok:c.colours.amber,children:r?`Kitchen today ${(0,a.kitchenHoursOn)(s,f)[0]}\u2013${(0,a.kitchenHoursOn)(s,f)[1]}`:'Kitchen closed today (hours not listed)'})]},s.id)}),(0,x.jsx)(l.Banner,{kind:"info",children:"Each venue uses only its own saved menu, cards and booking details."}),(0,x.jsx)(h.LauncherLine,{}),(0,x.jsx)(n.default,{style:{height:8}})]})}},790,[804,30,127,830,813,814,815,819,821,853,5,24]);
|
mrbasrais/owner-app/_expo/static/js/web/index-74667fbd35e0bace18ae40e63063348b.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return c}});var t=r(d[0]);r(d[1]);var n=r(d[2]),f=r(d[3]),u=r(d[4]);function c(){return(0,n.canShow)('staff')?(0,u.jsx)(f.StaffApp,{}):(0,u.jsx)(t.Redirect,{href:n.ENTRY[n.APP_VARIANT]})}},800,[804,30,806,1076,24]);
|
| 2 |
+
__d(function(g,_r,_i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.StaffApp=function(){return(0,fe.jsx)(Y.StaffAppCtx.Provider,{value:!0,children:(0,fe.jsx)(xe,{})})};var s=_r(d[0]),t=_r(d[1]),o=_r(d[2]),r=_r(d[3]),i=_r(d[4]),l=_r(d[5]),n=_r(d[6]),c=_r(d[7]),u=_r(d[8]),h=_r(d[9]),f=_r(d[10]),p=_r(d[11]),b=_r(d[12]),y=_r(d[13]),x=_r(d[14]),j=_r(d[15]),k=_r(d[16]),w=_r(d[17]),v=_r(d[18]),C=_r(d[19]),S=_r(d[20]),T=e(_r(d[21])),M=e(_r(d[22])),R=e(_r(d[23])),B=e(_r(d[24])),P=e(_r(d[25])),I=_r(d[26]),A=_r(d[27]),O=_r(d[28]),W=_r(d[29]),L=_r(d[30]),z=_r(d[31]),H=_r(d[32]),E=_r(d[33]),D=_r(d[34]),V=_r(d[35]),_=_r(d[36]),N=_r(d[37]),F=_r(d[38]),U=_r(d[39]),G=_r(d[40]),Y=_r(d[41]),$=_r(d[42]),Q=_r(d[43]),J=_r(d[44]),q=_r(d[45]),K=_r(d[46]),X=_r(d[47]);_r(d[48]);var Z=_r(d[49]),ee=_r(d[50]),se=_r(d[51]),te=_r(d[52]),oe=_r(d[53]),ae=_r(d[54]),re=_r(d[55]),ie=_r(d[56]),le=_r(d[57]),ne=_r(d[58]),de=_r(d[59]),ce=_r(d[60]),ue=_r(d[61]),he=_r(d[62]),fe=_r(d[63]);const pe=le.ROSTER.find(e=>'chef'===e.app)?.id,ge=[{id:'home',label:'Home',icon:'home'},{id:'clock',label:'Clock',icon:'clock'},{id:'rota',label:'Rota',icon:'bookings'},{id:'chat',label:'Chat',icon:'chat'},{id:'me',label:'Me',icon:'user'}],me={home:'Today',clock:'Clock in / out',rota:'Rota, swaps & leave',chat:'Staff chat',me:'Me'},be=[{id:'bookings',title:'Bookings',sub:'Any day, back or forward: tables, Covers, Unseat and Undo'},{id:'loyalty',title:'Stamp card',sub:'Find a guest, add a stamp or use a reward'},{id:'guests',title:'Guest profiles',sub:'Look a guest up: visits, Covers, allergies they told us, preferences'},{id:'giftcards',title:'Gift cards',sub:'Check a balance, take it off the bill, mark paid at the till'},{id:'tableorders',title:'Table orders',sub:'Orders from guests\u2019 phones at the table: accept, mark served or cancel'},{id:'soldout',title:'Sold out',sub:'What\u2019s run out today. Mark sold out or Back on; shows on the Display'},{id:'board',title:'Question board',sub:'Ask the team anything anonymously, and vote'},{id:'recipecards',title:'Recipe cards',sub:'Signed-off dishes: photo, ingredients, method and allergens (read-only)'},{id:'avatar',title:'My avatar',sub:'Your space-age avatar, or create one from a photo'},{id:'cashup',title:'Cash up',sub:'End-of-night takings: take a picture of the taking sheet or upload a spreadsheet (if a manager has switched it on for you)'},{id:'haccp',title:'Food safety checks',sub:'Record fridge, freezer, cooking and other checks (say or type)'},{id:'accidents',title:'Accident book',sub:'Report an accident or near miss; see your own entries'},{id:'mypay',title:'My hours & pay',sub:'Shifts, paid hours and estimated pay'},{id:'mytips',title:'My tips & tip goal',sub:'Your share of the tips, and a goal to save towards'},{id:'timesheets',title:'My timesheets',sub:'Your clock-ins, breaks and any changes'},{id:'orderlists',title:'Order lists',sub:'Add what\u2019s running low (Alsons drinks, Cash and carry)'},{id:'phone',title:'Phone notifications',sub:'Turn on reminders on this phone'},{id:'suppliers',title:'Suppliers',sub:'Contacts and order days (if your manager allows)'},{id:'privacy',title:'Privacy & location',sub:'What CoverCharge for Staff stores about you'}],ye=[{id:'mgr-bookings',title:'Bookings (manager)',sub:'New, edit and cancel bookings, walk-ins, seat, move and finish tables, deposit status'},{id:'mgr-clear',title:'Tables to clear',sub:'Tables waiting to be cleared; mark them cleared'},{id:'mgr-blocks',title:'Block bookings',sub:'Block now, add a block, close the garden'},{id:'mgr-allergy',title:'Allergy checks',sub:'Every allergy order\u2019s sign-offs and the allergen log'},{id:'mgr-stock',title:'Tracked stock',sub:'What\u2019s counted live through service; add or change items'},{id:'mgr-clock',title:'Who\u2019s clocked in',sub:'Today\u2019s clock-ins for the team (read only)'},{id:'mgr-swaps',title:'Shift swaps',sub:'Approve swaps and cover, or give a shift to someone else'}];function xe(){const{r:e,rid:o,me:i,meId:j,today:k,now:w}=(0,Y.useCtx)(3e4),re=(0,Y.useSignedIn)(),ie=(0,Y.useShiftManager)();(0,p.useSoldOutLink)(!0,i);(0,L.useOwner)(e=>e.staff);const le=(0,L.useOwner)(e=>e.staffCanViewSuppliers),[xe,we]=(0,v.useState)('home'),[ve,Ce]=(0,v.useState)(null),[Se,Te]=(0,v.useState)(!1),Me=(0,v.useRef)(null);(0,v.useEffect)(()=>{(0,Y.ensureAttendance)(k,w),(0,H.ensureChat)(w)},[k]),globalThis.__ccNow=w.getTime();const Re=(0,H.useChatUnread)().total,Be=(0,v.useRef)({t:'home',s:null});Be.current={t:xe,s:ve};const Pe=(0,v.useRef)([]),Ie=(0,v.useCallback)((e,s=null)=>{const t=Be.current;t.t===e&&t.s===s||(Pe.current=[...Pe.current,{...t,y:We.leave()}].slice(-30),We.restore(0)),we(e),Ce(s)},[]),Ae=(0,v.useCallback)(()=>{if((0,n.runBackLayer)())return!0;const e=Be.current;let s=Pe.current.pop();for(;s&&s.t===e.t&&s.s===e.s;)s=Pe.current.pop();if(!s&&'home'===e.t&&!e.s)return!1;const t=s??{t:'home',s:null};return We.leave(),we(t.t),Ce(t.s),We.restore(t.y??0),!0},[]);(0,n.useWebBack)(Ae);const Oe=(0,n.useInnerBackShown)();(0,v.useEffect)(()=>{y.PITCH&&(globalThis.__pitchGo=Ie)},[Ie]),(0,D.useShiftReminders)({rid:o,staffId:j,name:i,onStartBreak:()=>Ie('clock')}),(0,V.useScheduledNotices)({rid:o,staffId:re?.id??'',name:i,onOpen:()=>Ie('me','orderlists')}),(0,_.useOffRotaPrompt)({rid:o,staffId:re?.id??''});const We=(0,l.useScrollMemory)(Me),Le=(0,v.useCallback)((e,s=null)=>'chat'===e?Ie('chat'):'clock'===s?Ie('clock'):'rota'===s?Ie('rota'):s&&be.some(e=>e.id===s)?Ie('me',s):'blocks'===s&&ie?Ie('me','mgr-blocks'):void Ie('home'===e?'home':'me'),[Ie,ie]);(0,v.useEffect)(()=>{const e=T.default.addEventListener('hardwareBackPress',Ae);return()=>e.remove()},[Ae]);const ze='me'===xe&&ve?be.find(e=>e.id===ve)??(ie?ye.find(e=>e.id===ve):void 0):void 0,He=(0,U.useOrderLists)(e=>e.settings[o]?.allowStaff??!0),Ee=be.filter(e=>('suppliers'!==e.id||le)&&('orderlists'!==e.id||He||re&&'staff'!==re.role));(0,v.useEffect)(()=>{L.useOwner.getState().staffAs&&L.useOwner.setState({staffAs:void 0})},[]);const De=(0,P.default)().width<600;return(0,fe.jsxs)(I.SafeAreaView,{style:{flex:1,backgroundColor:z.colours.bg},edges:['top','left','right','bottom'],children:[(0,fe.jsxs)(B.default,{style:{paddingHorizontal:14,paddingTop:6,paddingBottom:8,borderBottomWidth:1,borderColor:z.colours.border,gap:6},children:[(0,fe.jsx)(B.default,{style:{alignItems:'center'},children:(0,fe.jsx)(M.default,{testID:"header-me",accessibilityRole:"button",accessibilityLabel:(0,t.privateClockVenue)(o)?`Signed in as ${i}`:'Signed in as',onPress:()=>Te(!0),hitSlop:6,style:{borderWidth:1,borderColor:z.colours.gold,borderRadius:22,paddingHorizontal:10,paddingVertical:4,maxWidth:'86%',minHeight:44,justifyContent:'center'},children:(0,fe.jsxs)(A.Row,{gap:6,children:[(0,fe.jsx)(ce.StaffAvatar,{id:j,size:24,ring:!1}),(0,fe.jsxs)(A.T,{size:13,weight:"semibold",colour:z.colours.gold,numberOfLines:1,style:{flexShrink:1},children:[i.replace(' (example)',''),re?'':' (preview)'," \u25be"]})]})})}),(0,fe.jsxs)(A.Row,{gap:10,wrap:De,style:{justifyContent:'center'},children:[(0,fe.jsxs)(A.Row,{gap:10,style:{flexGrow:1,flexBasis:De?'100%':0,minWidth:0},children:[(0,fe.jsx)(O.RestaurantLogo,{rid:e.id,size:44}),(0,fe.jsxs)(B.default,{style:{flex:1,minWidth:0},children:[(0,fe.jsx)(O.VenueName,{name:e.name}),(0,fe.jsx)(A.Row,{style:{justifyContent:'center'},children:(0,fe.jsx)(G.AppBadge,{label:"STAFF"})}),(0,fe.jsxs)(A.Muted,{size:12,numberOfLines:1,children:["Front of House",e.location?` \xb7 ${e.location.split(',').slice(0,2).join(',')}`:'']}),(0,fe.jsx)(O.PoweredBy,{})]})]}),(0,fe.jsx)(W.VoiceSlot,{})]})]}),(0,fe.jsxs)(R.default,{ref:Me,...We.props,contentContainerStyle:{padding:14,paddingBottom:60,gap:12,width:'100%',maxWidth:760,alignSelf:'center'},keyboardShouldPersistTaps:"handled",children:[(0,fe.jsxs)(A.Row,{style:{justifyContent:'space-between'},children:['home'===xe&&!ve||Oe?null:(0,fe.jsx)(n.BackButton,{onPress:Ae}),(0,fe.jsx)(A.T,{size:22,weight:"bold",style:{width:'100%',textAlign:'center'},children:ze?ze.title:me[xe]})]}),'home'===xe&&ie?(0,fe.jsx)(q.ManagerFeaturesNote,{}):null,'home'===xe&&re&&'staff'!==re.role&&!ie&&'undefined'!=typeof window?(0,fe.jsxs)(B.default,{testID:"manager-access-banner",style:{borderWidth:1,borderColor:z.colours.gold,borderRadius:12,padding:10,gap:6},children:[(0,fe.jsx)(A.T,{weight:"semibold",colour:z.colours.gold,children:"You have manager access"}),(0,fe.jsx)(A.Muted,{children:"The Manager app has everything here plus bookings, the rota, staff and settings."}),(0,fe.jsx)(M.default,{accessibilityRole:"button",onPress:()=>{const e=(0,X.appUrl)('owner');e&&window.location.assign(e)},style:{alignSelf:'flex-start',borderWidth:1,borderColor:z.colours.gold,borderRadius:14,paddingHorizontal:12,paddingVertical:5,minHeight:44,justifyContent:'center'},children:(0,fe.jsx)(A.T,{size:14,colour:z.colours.gold,children:"Open the Managers app \u203a"})})]}):null,'home'===xe&&re?(0,fe.jsx)(x.MyTasksToday,{rid:o,staffId:re.id,name:re.name,onShift:(0,D.shiftNow)(re.id,w.getTime()).on}):null,'home'===xe?(0,fe.jsx)(je,{go:Le}):null,'clock'===xe?(0,fe.jsx)(oe.ClockInOut,{}):null,'rota'===xe?(0,fe.jsx)(oe.Rota,{}):null,'chat'===xe?(0,fe.jsx)(H.Chat,{go:Le}):null,'me'!==xe||ze?null:(0,fe.jsxs)(B.default,{style:{gap:10},children:[(0,fe.jsx)(B.default,{style:{borderRadius:14,borderWidth:1,borderColor:z.colours.border,backgroundColor:z.colours.surface,overflow:'hidden'},children:Ee.map((e,s)=>(0,fe.jsx)(M.default,{testID:`audit-page-${e.id}`,accessibilityRole:"button",accessibilityLabel:e.title,onPress:()=>Ie('me',e.id),style:({pressed:e})=>({padding:12,borderTopWidth:s?1:0,borderColor:z.colours.border,backgroundColor:e?'#1d1a14':'transparent'}),children:(0,fe.jsxs)(A.Row,{style:{justifyContent:'space-between'},children:[(0,fe.jsxs)(B.default,{style:{flex:1},children:[(0,fe.jsx)(A.T,{weight:"medium",children:e.title}),(0,fe.jsx)(A.Muted,{children:e.sub})]}),(0,fe.jsx)(A.T,{colour:z.colours.muted,children:"\u203a"})]})},e.id))}),ie?(0,fe.jsxs)(B.default,{testID:"manager-features",style:{gap:6},children:[(0,fe.jsx)(A.T,{weight:"semibold",colour:z.colours.gold,children:"Manager features"}),(0,fe.jsx)(B.default,{style:{borderRadius:14,borderWidth:1,borderColor:z.colours.gold,backgroundColor:z.colours.surface,overflow:'hidden'},children:ye.map((e,s)=>(0,fe.jsx)(M.default,{testID:`audit-page-${e.id}`,accessibilityRole:"button",accessibilityLabel:e.title,onPress:()=>Ie('me',e.id),style:({pressed:e})=>({padding:12,borderTopWidth:s?1:0,borderColor:z.colours.border,backgroundColor:e?'#1d1a14':'transparent'}),children:(0,fe.jsxs)(A.Row,{style:{justifyContent:'space-between'},children:[(0,fe.jsxs)(B.default,{style:{flex:1},children:[(0,fe.jsx)(A.T,{weight:"medium",children:e.title}),(0,fe.jsx)(A.Muted,{children:e.sub})]}),(0,fe.jsx)(A.T,{colour:z.colours.muted,children:"\u203a"})]})},e.id))}),(0,fe.jsx)(q.ManagerFeaturesAbout,{})]}):null,le?null:(0,fe.jsx)(A.Muted,{children:"Suppliers are hidden: your manager hasn\u2019t shared them with staff."}),(0,fe.jsxs)(A.Muted,{center:!0,children:["Staff app \xb7 ",b.APP_VERSION," \xb7 ",'live'===he.useSync.getState().mode?'shared with your team':'saved on this device until it connects']})]}),ie&&ze?.id.startsWith('mgr-')?(0,fe.jsxs)(Y.ShiftMgrScope.Provider,{value:!0,children:['mgr-bookings'===ze.id?(0,fe.jsx)(E.Bookings,{}):null,'mgr-clear'===ze.id?(0,fe.jsx)(q.TablesToClear,{rid:o}):null,'mgr-blocks'===ze.id?(0,fe.jsx)($.BlocksPage,{}):null,'mgr-allergy'===ze.id?(0,fe.jsx)(Q.AllergenSignOffLog,{}):null,'mgr-stock'===ze.id?(0,fe.jsxs)(B.default,{style:{gap:10},children:[(0,fe.jsx)(J.TrackedStockPage,{}),(0,fe.jsx)(f.SoldOutList,{rid:o,by:i.replace(' (example)','')})]}):null,'mgr-clock'===ze.id?(0,fe.jsx)(q.ClockOverview,{today:k,now:w}):null,'mgr-swaps'===ze.id?(0,fe.jsx)(q.SwapApprovals,{today:k,me:i}):null]}):null,'loyalty'===ze?.id?(0,fe.jsx)(c.StaffLoyalty,{venue:e.name}):null,'guests'===ze?.id?(0,fe.jsx)(u.GuestProfiles,{me:i.replace(' (example)',''),manager:!1}):null,'bookings'===ze?.id?(0,fe.jsx)(E.Bookings,{}):null,'giftcards'===ze?.id?(0,fe.jsx)(h.GiftCardsPage,{me:i.replace(' (example)','')}):null,'tableorders'===ze?.id?(0,fe.jsx)(r.StaffTableOrders,{rid:o,me:i.replace(' (example)','')}):null,'soldout'===ze?.id?(0,fe.jsx)(f.SoldOutList,{rid:o,by:i.replace(' (example)','')}):null,'board'===ze?.id?(0,fe.jsx)(S.QuestionBoard,{rid:o,today:k,manager:!1,by:""}):null,'recipecards'===ze?.id?(0,fe.jsx)(C.RecipeCards,{rid:e.id,actor:{name:i,role:'staff'},mode:"read"}):null,'avatar'===ze?.id?(0,fe.jsx)(ue.AvatarMaker,{meId:j,me:i}):null,'cashup'===ze?.id?(0,fe.jsx)(ke,{rid:o,today:k,meId:j,me:i}):null,'haccp'===ze?.id?(0,fe.jsx)(de.HaccpLog,{mode:"staff",me:i,meId:j,now:w}):null,'accidents'===ze?.id?(0,fe.jsx)(ne.AccidentBook,{app:"staff",me:i,meId:j,now:w,seeAll:!1}):null,'mypay'===ze?.id?(0,fe.jsxs)(B.default,{style:{gap:10},children:[(0,fe.jsx)(se.MyPeriods,{staffId:j}),(0,fe.jsx)(ee.MyHoursPay,{staffId:j})]}):null,'mytips'===ze?.id?(0,fe.jsx)(ae.MyTips,{}):null,'timesheets'===ze?.id?(0,fe.jsxs)(B.default,{style:{gap:10},children:[(0,fe.jsx)(se.MyPeriods,{staffId:j}),(0,fe.jsx)(oe.Timesheets,{})]}):null,'orderlists'===ze?.id?(0,fe.jsx)(N.OrderListsScreen,{rid:o,today:k,editor:!!re&&'staff'!==re.role&&!ie,who:{id:j,name:i.replace(' (example)','')}}):null,'phone'===ze?.id?(0,fe.jsxs)(B.default,{style:{gap:8},children:[(0,fe.jsx)(A.Muted,{children:"Get reminders like \u201cMills milk order\u201d on this phone, even with the app closed (once your manager switches phone notifications on). iPhone: add the app to your Home Screen first (iOS 16.4 or later)."}),(0,fe.jsx)(F.PushButton,{})]}):null,'suppliers'===ze?.id?le?(0,fe.jsx)(te.Suppliers,{}):(0,fe.jsx)(A.Muted,{children:"Your manager hasn\u2019t shared suppliers with staff."}):null,'privacy'===ze?.id?(0,fe.jsxs)(B.default,{style:{gap:8},children:[(0,t.privateClockVenue)(o)?(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(A.T,{size:14,children:"Location is checked only when you choose Clock in at the pub. Only a pass or fail is saved with the clock-in time, or an audited manager override."}),(0,fe.jsx)(A.T,{size:14,children:"Your position, accuracy and distance are never saved. There are no location trails, background/arrival checks, clock-out checks or break checks."})]}):(0,fe.jsxs)(fe.Fragment,{children:[" ",(0,fe.jsx)(A.T,{size:14,children:"\u2022 Location is checked when you tap Clock in, Clock out, Start break or End break, and (if you allowed location) while the app is open to ask if you want to clock in when you\u2019re at the venue but not on the rota. Never in the background."}),(0,fe.jsx)(A.T,{size:14,children:"\u2022 Each clock record keeps the location reading, how accurate it was, whether it was inside the venue area, and the time. Managers can see these."})]}),(0,fe.jsx)(A.T,{size:14,children:"\u2022 You see only your own hours, pay estimates and tips. Managers see the team\u2019s."}),(0,fe.jsxs)(A.T,{size:14,children:["\u2022 Chat messages stay within ",e.name,"\u2019s team."]}),(0,fe.jsx)(A.T,{size:14,children:"\u2022 Pay figures are estimates before tax and deductions; your payslip is the official record."})]}):null]}),(0,fe.jsx)(B.default,{testID:"app-bottom-tabs",style:{flexDirection:'row',flexWrap:'wrap',justifyContent:'center',borderTopWidth:1,borderColor:z.colours.border,backgroundColor:(0,s.soutersSurface)('#0d0d0d')},children:ge.map(e=>{const s=xe===e.id;return(0,fe.jsxs)(M.default,{accessibilityRole:"tab",accessibilityState:{selected:s},accessibilityLabel:e.label,onPress:()=>Ie(e.id),style:{flex:1,flexBasis:De?'30%':0,minWidth:De?92:0,alignItems:'center',paddingVertical:8,gap:2},children:[(0,fe.jsxs)(B.default,{children:[(0,fe.jsx)(Z.Icon,{name:e.icon,colour:s?z.colours.gold:z.colours.muted}),'chat'===e.id&&Re?(0,fe.jsx)(B.default,{style:{position:'absolute',right:-8,top:-4,backgroundColor:z.colours.red,borderRadius:8,minWidth:16,height:16,alignItems:'center',justifyContent:'center'},children:(0,fe.jsx)(A.T,{size:10,weight:"bold",children:Re})}):null]}),(0,fe.jsx)(A.T,{size:11,colour:s?z.colours.gold:z.colours.muted,children:e.label})]},e.id)})}),(0,fe.jsx)(A.Sheet,{visible:Se,onClose:()=>Te(!1),title:"Signed in as",children:re?(0,fe.jsxs)(B.default,{style:{gap:8},children:[(0,fe.jsxs)(A.Row,{gap:10,children:[(0,fe.jsx)(ce.StaffAvatar,{id:re.id,size:48}),(0,fe.jsxs)(B.default,{style:{flex:1},children:[(0,fe.jsx)(A.T,{weight:"semibold",children:re.name}),(0,fe.jsx)(A.Muted,{children:(0,X.levelJob)(re.level??'Staff',re.job)})]})]}),(0,fe.jsx)(A.Muted,{children:"Signed in with your personal link. This phone remembers you."}),ie?(0,fe.jsx)(A.Muted,{children:"Manager features are on for you in this app."}):null,'staff'===re.role||ie?null:(0,fe.jsx)(A.Button,{kind:"secondary",label:"Back to CoverCharge for Managers",onPress:()=>{const e=(0,X.appUrl)('owner');e&&window.location.assign(e)}}),re.id===pe?(0,fe.jsx)(A.Button,{kind:"secondary",label:"Back to CoverCharge for Head Chef",onPress:()=>{const e=(0,X.appUrl)('chef');e&&window.location.assign(e)}}):null]}):(0,fe.jsxs)(B.default,{style:{gap:8},children:[(0,fe.jsx)(A.Muted,{children:"Not signed in: this is a preview. Open your personal link, or paste it here, to sign in as yourself."}),(0,fe.jsx)(K.SignInWithLink,{})]})})]})}function je({go:e}){const{rid:s,today:t}=(0,Y.useCtx)(3e4),r=(0,ie.useTravelDay)('staff',t);return(0,fe.jsxs)(B.default,{style:{gap:10},children:[(0,fe.jsx)(i.WhoBar,{}),(0,fe.jsx)(ie.DayBar,{app:"staff",today:t}),r?null:(0,fe.jsx)(o.CoversToday,{rid:s}),r?(0,fe.jsx)(ie.DayView,{rid:s,day:r,today:t,app:"staff"}):(0,fe.jsx)(re.StaffHome,{go:e})]})}function ke({rid:e,today:s,meId:t,me:o}){return!0!==(0,w.useCashAccess)(e=>e.mine)?(0,fe.jsx)(k.NoCashUpAccess,{}):(0,fe.jsx)(j.CashUpScreen,{rid:e,today:s,canEdit:!0,who:{id:t??'me',name:o.replace(' (example)','')}})}},1076,[878,1078,971,1053,944,945,947,1054,1039,1055,1038,946,1014,2,948,949,1045,1079,30,1051,993,233,263,151,127,287,289,813,860,962,854,821,960,952,950,967,968,1037,997,1080,970,954,1032,1031,1036,1077,956,858,122,959,1035,988,1012,1033,1034,958,972,14,1057,1059,955,1052,820,24]);
|
| 3 |
+
__d(function(g,_r,i,_a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.ManagerFeaturesNote=function(){return(0,w.jsxs)(a.default,{testID:"manager-features-banner",style:{borderWidth:1,borderColor:f.colours.gold,borderRadius:12,padding:10,gap:4},children:[(0,w.jsx)(r.T,{weight:"semibold",colour:f.colours.gold,children:"Manager features are on"}),(0,w.jsx)(r.Muted,{children:"Open Me \u203a Manager features for bookings, tables, blocks, allergy checks, stock, who\u2019s clocked in and shift swaps."})]})},_e.ManagerFeaturesAbout=function(){return(0,w.jsxs)(r.Card,{children:[(0,w.jsx)(r.T,{weight:"semibold",children:"What manager features include"}),h.SHIFT_MANAGER_FEATURES.map(e=>(0,w.jsxs)(r.T,{size:14,children:["\u2022 ",e]},e)),(0,w.jsxs)(r.Muted,{children:["Not included: ",h.SHIFT_MANAGER_EXCLUDED_WORDS,". Those stay in the Managers app."]})]})},_e.ClockOverview=function({today:e,now:s}){const t=(0,d.useOwner)(e=>e.staff),n=(0,d.useOwner)(e=>e.attendance).filter(s=>s.date===e&&s.in),o=e=>b(t.find(s=>s.id===e)?.name)||'Team member',c=n.filter(e=>!e.out).sort((e,s)=>(e.in??'').localeCompare(s.in??'')),h=n.filter(e=>e.out).sort((e,s)=>(e.out??'').localeCompare(s.out??'')),u=e=>(e.breaks??[]).some(e=>!e.end);return(0,w.jsxs)(a.default,{style:{gap:10},testID:"clock-overview",children:[(0,w.jsxs)(r.T,{weight:"semibold",children:["Clocked in now (",c.length,")"]}),c.length?c.map(e=>(0,w.jsxs)(r.Card,{children:[(0,w.jsx)(r.T,{weight:"medium",children:o(e.staffId)}),(0,w.jsxs)(r.Muted,{children:["In at ",(0,l.hm)(new Date(e.in)),u(e)?' \xb7 on a break':'',!1===e.inSite?' \xb7 clocked in away from the venue':'']})]},e.id)):(0,w.jsx)(r.Muted,{children:"Nobody is clocked in right now."}),(0,w.jsxs)(r.T,{weight:"semibold",children:["Finished today (",h.length,")"]}),h.length?h.map(e=>(0,w.jsxs)(r.Card,{children:[(0,w.jsx)(r.T,{weight:"medium",children:o(e.staffId)}),(0,w.jsxs)(r.Muted,{children:[(0,l.hm)(new Date(e.in))," to ",(0,l.hm)(new Date(e.out))]})]},e.id)):(0,w.jsx)(r.Muted,{children:"Nobody has clocked out yet today."}),(0,w.jsxs)(r.Muted,{children:["Read only. To change someone\u2019s clock record, ask a manager in the Managers app. Checked at ",(0,l.hm)(s),"."]})]})},_e.TablesToClear=function({rid:e}){const t=(0,o.useFloor)(s=>s.live[e])??{},n=Object.entries(t).filter(([,e])=>e?.dirty).map(([e])=>e).sort((e,s)=>e.localeCompare(s,'en',{numeric:!0}));return(0,w.jsx)(a.default,{style:{gap:8},testID:"tables-to-clear",children:n.length?n.map(t=>(0,w.jsx)(r.Card,{children:(0,w.jsxs)(r.Row,{style:{justifyContent:'space-between'},children:[(0,w.jsx)(r.T,{weight:"semibold",children:(0,s.tableNumbers)(t)}),(0,w.jsx)(r.Button,{small:!0,kind:"success",label:"Mark cleared",accessibilityLabel:`Mark table ${t} cleared, table free`,testID:`clear-${t}`,onPress:()=>{o.useFloor.getState().setLive(e,t,{dirty:!1,stage:void 0}),(0,p.notify)({id:`clear-${t}`,title:`${(0,s.tableNumbers)(t)} is free`,timeoutMs:4e3})}})]})},t)):(0,w.jsx)(r.Muted,{children:"No tables need clearing."})})},_e.SwapApprovals=function({today:e,me:s}){const n=(0,d.useOwner)(e=>e.staff),o=(0,d.useOwner)(e=>e.shifts),j=(0,d.useOwner)(e=>e.swaps),[x,y]=(0,t.useState)(null),[M,k]=(0,t.useState)(null),[v,I]=(0,t.useState)(!1),T=e=>b(n.find(s=>s.id===e)?.name)||'Team member',C=(()=>{const s=(0,l.parseYmd)(e);return s.setDate(s.getDate()+13),s})(),S=o.filter(s=>{return!1!==s.published&&s.date>=e&&(0,l.parseYmd)(s.date)<=C&&(t=s.staffId,!('owner'===n.find(e=>e.id===t)?.role));var t}).sort((e,s)=>e.date.localeCompare(s.date)||e.start-s.start),D=e=>`${(0,l.niceDate)((0,l.parseYmd)(e.date))}, ${(0,c.fmtH)(e.start)} to ${(0,c.fmtH)(e.end)}`,O=async(e,t,n,a)=>{I(!0);const r=await(0,u.approveShiftSwap)(e.id,t,n);I(!1),r.ok?(d.useOwner.setState(s=>({shifts:s.shifts.map(s=>s.id===e.id?{...s,staffId:t}:s)})),a&&d.useOwner.getState().setSwap(a,'approved'),(0,p.notify)({id:'swap-ok',title:'Shift changed',body:`${T(e.staffId)}\u2019s shift on ${D(e)} is now ${T(t)}\u2019s. Approved by ${b(s)}.`,timeoutMs:6e3}),y(null),k(null)):(0,p.notify)({id:'swap-fail',title:'Not changed',body:r.message,timeoutMs:6e3})},$=j.filter(e=>'open'===e.status);return(0,w.jsxs)(a.default,{style:{gap:10},testID:"swap-approvals",children:[(0,w.jsxs)(r.T,{weight:"semibold",children:["Requests (",$.length,")"]}),$.length?$.map(e=>{const s=o.find(s=>s.id===e.shiftId);return(0,w.jsxs)(r.Card,{children:[(0,w.jsxs)(r.T,{weight:"medium",children:[T(e.fromId)," \xb7 ",'cover'===e.kind?'needs cover':'swap']}),(0,w.jsxs)(r.Muted,{children:[s?D(s):'Shift not found',e.toId?` \xb7 to ${T(e.toId)}`:'',e.note?` \xb7 ${e.note}`:'']}),(0,w.jsxs)(r.Row,{gap:6,children:[(0,w.jsx)(r.Button,{small:!0,label:"Approve",disabled:!s||!e.toId||v,onPress:()=>s&&e.toId&&O(s,e.toId,e.kind,e.id)}),(0,w.jsx)(r.Button,{small:!0,kind:"ghost",label:"Decline",onPress:()=>d.useOwner.getState().setSwap(e.id,'declined')})]})]},e.id)}):(0,w.jsx)(r.Muted,{children:"No open requests on this phone. Swap requests made on other phones aren\u2019t shared yet, so if someone asks you in person, use Give a shift to someone else below."}),(0,w.jsx)(r.T,{weight:"semibold",children:"Give a shift to someone else"}),x?(0,w.jsxs)(r.Card,{highlight:f.colours.gold,children:[(0,w.jsxs)(r.T,{weight:"semibold",children:[T(x.staffId)," \xb7 ",D(x)]}),(0,w.jsx)(r.Muted,{children:"Who takes it?"}),(0,w.jsx)(r.Row,{wrap:!0,gap:6,children:(0,h.swapTargets)(n,x.staffId).map(e=>(0,w.jsx)(r.Chip,{label:b(e.name),selected:M===e.id,onPress:()=>k(e.id)},e.id))}),(0,w.jsxs)(r.Row,{gap:6,children:[(0,w.jsx)(r.Button,{label:"Approve",disabled:!M||v,onPress:()=>M&&O(x,M,'swap'),testID:"swap-give"}),(0,w.jsx)(r.Button,{kind:"secondary",label:"Cancel",onPress:()=>{y(null),k(null)}})]})]}):S.length?S.map(e=>(0,w.jsxs)(r.Card,{onPress:()=>{y(e),k(null)},children:[(0,w.jsx)(r.T,{weight:"medium",children:T(e.staffId)}),(0,w.jsx)(r.Muted,{children:D(e)})]},e.id)):(0,w.jsx)(r.Muted,{children:"No published shifts in the next two weeks."}),(0,w.jsx)(r.Banner,{kind:"info",children:"Approving moves the shift on the rota for everyone and records who approved it. Writing or publishing the rota stays in the Managers app."})]})};var e,s=_r(_d[0]),t=_r(_d[1]),n=_r(_d[2]),a=(e=n)&&e.__esModule?e:{default:e},r=_r(_d[3]),d=_r(_d[4]),o=_r(_d[5]),l=_r(_d[6]),c=_r(_d[7]),h=_r(_d[8]),u=_r(_d[9]),p=_r(_d[10]),f=_r(_d[11]),w=_r(_d[12]);const b=e=>(e??'').replace(' (example)','')},1077,[808,30,127,813,854,825,818,1075,1081,820,1044,821,24]);
|
mrbasrais/owner-app/_expo/static/js/web/index-7fc09fb9e425fe86489cd7f975b72892.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
__d(function(g,_r,_i,a,_m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return K}});var t=e(_r(_d[0])),l=_r(_d[1]),s=_r(_d[2]),n=e(_r(_d[3])),r=e(_r(_d[4])),o=e(_r(_d[5])),i=e(_r(_d[6])),d=e(_r(_d[7])),u=_r(_d[8]),c=_r(_d[9]),b=_r(_d[10]),h=_r(_d[11]),f=e(h);_r(_d[12]);var p=e(_r(_d[13])),m=e(_r(_d[14])),x=_r(_d[15]),y=_r(_d[16]),j=_r(_d[17]),k=_r(_d[18]),w=_r(_d[19]),S=_r(_d[20]),T=_r(_d[21]),O=_r(_d[22]),I=_r(_d[23]),R=_r(_d[24]),A=_r(_d[25]),B=_r(_d[26]),P=_r(_d[27]),C=_r(_d[28]),_=_r(_d[29]),N=_r(_d[30]),$=_r(_d[31]),v=_r(_d[32]);const E=['book','takeaway'].includes(_.START_GO??'')?_.START_GO:null;let M=!1,L=!1,D=!1;const H=[{id:'main',label:'Main menu'},{id:'specials',label:'Specials'},{id:'takeaway',label:'Takeaway'}];function K(){const{rid:e}=(0,b.useLocalSearchParams)(),c=(0,T.useRestaurant)(e),h=l.IS_QUEUED_VENUE?(0,v.jsx)(t.default,{}):l.IS_ABBOTSFORD?(0,v.jsx)(o.default,{}):l.IS_KIRKTON?(0,v.jsx)(i.default,{}):l.IS_GREENSIDE?(0,v.jsx)(n.default,{}):l.IS_WILDINGS?(0,v.jsx)(d.default,{}):l.IS_KIRKMICHAEL?(0,v.jsx)(r.default,{}):l.IS_SOUTERS?(0,v.jsx)(u.SoutersCustomerHome,{}):(0,v.jsx)(W,{});return l.IS_ABBOTSFORD||l.IS_KIRKTON||l.IS_WILDINGS||!c?.settings.hotel?.enabled?h:(0,v.jsx)(s.HotelRequestGate,{rid:e,hotel:c.settings.hotel,children:h})}function W(){const{rid:e}=(0,b.useLocalSearchParams)(),t=(0,T.useRestaurant)(e),l=(0,T.useMenu)(e),s=(0,T.useCustomer)(),n=(0,T.useBasket)(),r=(0,T.useStore)(e=>e.startBasket),o=(0,T.useNow)(3e4),[i,d]=(0,h.useState)('All'),[u,K]=(0,h.useState)(null),[W,G]=(0,h.useState)(!1),[F,U]=(0,h.useState)(!1),[Q,V]=(0,h.useState)('takeaway'===E?'takeaway':'main');f.default.useEffect(()=>{E&&!M&&(M=!0,'book'===E?setTimeout(()=>b.router.push(`/customer/${e}/book`),0):setTimeout(()=>{try{document.querySelector('[data-testid="menu-tabs"]')?.scrollIntoView({block:'start'})}catch{}},400))},[e]);const Y=(0,P.useSpecials)(t=>t.current[e]??null),q=!!Y&&(0,C.isToday)(Y.postedAt,o),z=(0,A.useOwner)(e=>e.offers.filter(e=>e.live).length),J=(0,T.useStore)(t=>t.stampCards.find(l=>l.restaurantId===e&&l.customerId===t.customer.id)),X=(0,N.useLiveTile)(e),Z=(0,$.guestServer)();f.default.useEffect(()=>{_.START_TABLE_TOKEN&&!D&&(D=!0,setTimeout(()=>b.router.push(`/table/live/${_.START_TABLE_TOKEN}`),0))},[e]),f.default.useEffect(()=>{_.START_LOYALTY_CODE&&!L&&(L=!0,setTimeout(()=>b.router.push(`/customer/${e}/loyalty`),0))},[e]);const ee=(0,T.useOrderAtTable)(e);if(f.default.useEffect(()=>{ee||n.restaurantId!==e||'table'!==n.mode||T.useStore.setState(e=>({basket:{...e.basket,mode:'takeaway',tableNo:void 0}}))},[ee,n.mode,n.restaurantId,e]),!t)return(0,v.jsx)(j.Screen,{title:"Not found",children:(0,v.jsx)(j.T,{children:"Restaurant not found."})});const te=ee&&n.restaurantId===t.id&&'table'===n.mode,le=t.sections.length?t.sections:Array.from(new Set(l.map(e=>e.section))),se=e=>!(e.soldOut||!e.signOff||null===e.price),ae=l.filter(e=>('All'===i||e.section===i)&&('takeaway'!==Q||se(e))),ne=(0,S.hoursFor)(t,o),re=e=>()=>b.router.push(`/customer/${t.id}${e}`),oe=[{icon:'box',label:'Takeaway',sub:'Order to collect',on:()=>{d('All'),V('takeaway'),te&&r(t.id,'takeaway')}},...ee?[{icon:'phone',label:'Order at table',sub:'Scan the QR',on:()=>U(!0)}]:[],{icon:'calendarPlus',label:'Book a table',on:re('/book')},{icon:'clock',label:'Waitlist',sub:'Walk in',on:re('/waitlist')},{icon:'star',label:'Stamp card',sub:Z?X.stamps:`${J?.stamps??0} of ${t.settings.stampTarget}`,on:re('/loyalty')},{icon:'userPlus',label:'Bring a friend',on:re('/refer')},{icon:'gift',label:'Gift cards',on:re('/gift')},{icon:'alert',label:'My allergens',sub:s.allergies.length?`${s.allergies.length} declared`:'None declared',on:()=>b.router.push('/customer/profile')},{icon:'tag',label:'Offers',sub:Z?void 0:s.marketingOptIn[t.id]?'Opted in':'Opt in',on:re('/offers'),badge:(Z?X.offers:z)?String(Z?X.offers:z):void 0},{icon:'sparkle',label:"What's on",on:re('/whatson')},{icon:'chat',label:'Feedback',sub:'Private',on:re('/feedback')},{icon:'hanger',label:'Lost property',on:re('/lost')},{icon:'bag',label:'Shop',sub:'Merch',on:re('/merch')}];return(0,v.jsxs)(j.Screen,{title:t.name,subtitle:`${t.location}${t.phone?` \xb7 ${t.phone}`:''}`,back:'customer'!==R.APP_VARIANT,right:(0,v.jsxs)(j.Row,{children:[(0,v.jsx)(y.BasketButton,{}),(0,v.jsx)(j.Button,{small:!0,kind:"ghost",label:"Account",onPress:()=>b.router.push('/customer/profile')})]}),children:[t.fictional?(0,v.jsx)(j.Banner,{kind:"warn",title:"Fictional demo restaurant",children:"Shown only to demonstrate multi-restaurant support."}):null,te?(0,v.jsx)(j.Banner,{kind:"success",title:`Ordering at ${(0,c.tableNumbers)(n.tableNo)}`,children:"Your order goes straight to the kitchen. Pay and split the bill from your order page. A member of staff is always available \u2014 tap \u201cCall staff\u201d any time."}):(0,v.jsx)(j.Card,{children:(0,v.jsxs)(j.Row,{style:{justifyContent:'space-between'},children:[(0,v.jsxs)(m.default,{style:{flex:1},children:[(0,v.jsx)(j.T,{weight:"semibold",children:"Takeaway \u2014 collection"}),(0,v.jsxs)(j.Muted,{children:[ne?`Kitchen today ${(0,S.kitchenHoursOn)(t,o)[0]}\u2013${(0,S.kitchenHoursOn)(t,o)[1]}`:'Kitchen closed today',t.settings.takeawayPaused?' \xb7 slots paused by the restaurant':'']})]}),(0,v.jsx)(j.Badge,{kind:t.settings.takeawayPaused||!ne?'amber':'ok',label:t.settings.takeawayPaused?'Paused':ne?'Taking orders':'Closed'})]})}),t.fictional?(0,v.jsx)(j.Row,{wrap:!0,gap:8,children:oe.slice(2,7).map(e=>(0,v.jsx)(j.Button,{small:!0,kind:"secondary",label:e.label,onPress:e.on},e.label))}):(0,v.jsx)(m.default,{style:{flexDirection:'row',flexWrap:'wrap',gap:8},children:oe.map(e=>(0,v.jsx)(I.HubTile,{icon:e.icon,label:e.label,sub:e.sub,badge:e.badge,onPress:e.on},e.label))}),te?(0,v.jsx)(j.Button,{small:!0,kind:"danger",label:"Call staff",onPress:()=>G(!0)}):null,W?(0,v.jsx)(j.Banner,{kind:"success",children:"We've told the staff on this device. Calling staff: not set up yet."}):null,t.hoursNote?(0,v.jsx)(j.Muted,{children:t.hoursNote}):null,t.fictional?null:(0,v.jsx)(j.ExampleAllergenNotice,{}),(0,v.jsxs)(j.Muted,{children:["Menu dishes and prices from ",t.name,"\u2019s menu. Items marked \u26a0 conflict with your declared allergies."]}),(0,v.jsx)(m.default,{accessibilityRole:"tablist",testID:"menu-tabs",style:{flexDirection:'row',flexWrap:'wrap',justifyContent:'center',gap:6,backgroundColor:O.colours.surface,borderRadius:14,borderWidth:1,borderColor:O.colours.border,padding:4},children:H.map(e=>{const t=Q===e.id;return(0,v.jsxs)(p.default,{testID:`menu-tab-${e.id}`,accessibilityRole:"tab",accessibilityState:{selected:t},"aria-selected":t,accessibilityLabel:'specials'===e.id&&q?'Specials, updated today':e.label,onPress:()=>V(e.id),style:{flex:1,minWidth:120,flexBasis:120,minHeight:44,borderRadius:10,alignItems:'center',justifyContent:'center',paddingHorizontal:4,backgroundColor:t?O.colours.gold:'transparent'},children:[(0,v.jsx)(j.T,{size:14,weight:"semibold",colour:t?O.colours.onGold:O.colours.text,center:!0,children:e.label}),'specials'===e.id&&q&&!t?(0,v.jsx)(m.default,{style:{position:'absolute',top:6,right:8,width:7,height:7,borderRadius:4,backgroundColor:O.colours.gold}}):null]},e.id)})}),'specials'===Q?(0,v.jsx)(B.SpecialsTab,{rid:t.id,declared:s.allergies,now:o}):null,'takeaway'===Q?(0,v.jsx)(j.Muted,{children:"Order to collect. Only dishes available to order online are shown; pick a collection slot at checkout."}):null,'specials'!==Q?(0,v.jsxs)(j.Row,{wrap:!0,gap:6,children:[(0,v.jsx)(j.Chip,{label:"All",selected:'All'===i,onPress:()=>d('All')}),le.map(e=>(0,v.jsx)(j.Chip,{label:e,selected:i===e,onPress:()=>d(e)},e))]}):null,'specials'!==Q?le.filter(e=>('All'===i||e===i)&&ae.some(t=>t.section===e)).map(e=>(0,v.jsxs)(m.default,{style:{gap:10},children:[(0,v.jsx)(j.H2,{style:{color:O.colours.gold,marginTop:6},children:e}),ae.filter(t=>t.section===e).map(e=>{const l=(0,k.conflictsFor)(e.allergens,s.allergies),o=e.soldOut||!e.signOff||null===e.price;return(0,v.jsxs)(j.Card,{highlight:l.contains.length?O.colours.red:l.may.length?O.colours.amber:void 0,children:[(0,v.jsxs)(p.default,{accessibilityRole:"button",onPress:()=>{n.restaurantId&&n.restaurantId===t.id||r(t.id,'takeaway'),b.router.push(`/customer/${t.id}/dish/${e.id}`)},children:[(0,v.jsxs)(j.Row,{style:{justifyContent:'space-between',alignItems:'flex-start'},children:[(0,v.jsx)(j.T,{center:!0,weight:"semibold",style:{width:'100%',flexBasis:'100%',paddingRight:8},children:e.name}),(0,v.jsx)(j.T,{weight:"semibold",colour:O.colours.gold,children:null===e.price?e.priceNote??'\u2014':(0,w.gbp)(e.price)})]}),(0,v.jsx)(j.Muted,{numberOfLines:2,children:e.description})]}),(0,v.jsxs)(j.Row,{wrap:!0,gap:6,children:[e.dietary.map(e=>(0,v.jsx)(j.Badge,{kind:"ok",label:e},e)),e.special?(0,v.jsx)(j.Badge,{kind:"gold",label:"Special"}):null,e.soldOut?(0,v.jsx)(j.Badge,{kind:"neutral",label:"Sold out"}):null,e.signOff?null:(0,v.jsx)(j.Badge,{kind:"amber",label:"Awaiting allergen sign-off"}),l.contains.length?(0,v.jsx)(j.Badge,{kind:"red",label:"\u26a0 Contains your allergen"}):l.may.length?(0,v.jsx)(j.Badge,{kind:"amber",label:"\u26a0 May contain your allergen"}):null]}),(0,v.jsx)(x.AllergenChips,{map:e.allergens,declared:s.allergies}),u===e.id?(0,v.jsx)(x.AllergenPanel,{item:e,map:e.allergens,declared:s.allergies}):null,(0,v.jsxs)(j.Row,{gap:8,children:[(0,v.jsx)(j.Button,{small:!0,kind:"ghost",label:u===e.id?'Hide allergen panel':'Allergen panel',onPress:()=>K(u===e.id?null:e.id)}),(0,v.jsx)(m.default,{style:{flex:1}}),(0,v.jsx)(j.Button,{small:!0,label:o?e.soldOut?'Sold out':'Not available online':'Choose',disabled:o,onPress:()=>{n.restaurantId&&n.restaurantId===t.id||r(t.id,'takeaway'),b.router.push(`/customer/${t.id}/dish/${e.id}`)}})]})]},e.id)})]},e)):null,(0,v.jsx)(j.Muted,{children:"Drinks list coming soon. Ask your server for today\u2019s drinks."}),(0,v.jsx)(j.Muted,{children:"Card payments: not set up yet. Pay at the till as usual."}),(0,v.jsx)(I.LauncherLine,{}),ee?(0,v.jsxs)(j.Sheet,{visible:F,onClose:()=>U(!1),title:"Order at your table",children:[(0,v.jsx)(j.Muted,{children:"Scan the QR code on your table with your phone camera, or pick your table number."}),(0,v.jsx)(j.Row,{wrap:!0,gap:6,children:Array.from({length:12},(e,t)=>String(t+1)).map(e=>(0,v.jsx)(j.Button,{small:!0,kind:"secondary",label:`${(0,c.tableNumbers)(e)}`,onPress:()=>{U(!1),r(t.id,'table',e)}},e))}),(0,v.jsx)(j.Muted,{children:"Orders go straight to the kitchen. Card payments: not set up yet. Pay at the till as usual."})]}):null]})}},781,[837,5,840,841,842,845,848,849,852,808,804,30,122,263,127,829,830,813,814,816,815,819,821,853,806,854,855,856,857,858,859,836,24]);
|
| 2 |
+
__d(function(g,_r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}});var e,n=_r(d[0]),t=_r(d[1]),s=(e=t)&&e.__esModule?e:{default:e},r=_r(d[2]),o=_r(d[3]),u=_r(d[4]),l=_r(d[5]),c=_r(d[6]),h=_r(d[7]),j=_r(d[8]),x=_r(d[9]),b=_r(d[10]);function f(){const e=j.VENUE_RID,t=x.queuedVenues[e],f=(0,h.useRestaurant)(e)??(0,x.queuedRestaurant)(e),[p,k]=(0,n.useState)(!1),y=f.kitchenSessionsByDay;return(0,b.jsxs)(r.Screen,{title:t.name,back:!1,children:[(0,b.jsx)(o.RestaurantHero,{rid:e,size:240}),p?(0,b.jsx)(l.NativeRequestSetup,{rid:e,kind:"table",sessionHours:y,onClose:()=>k(!1)}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(r.Button,{testID:`${e}-book-table`,label:"Book a table",onPress:()=>k(!0)}),t.phone?(0,b.jsx)(r.Button,{kind:"secondary",label:`Call ${t.phone}`,onPress:()=>{s.default.openURL('tel:'+t.phone.replace(/[^0-9+]/g,''))}}):null,(0,b.jsx)(r.Muted,{children:"Send a table request for this venue\u2019s managers to confirm. This is not an instant booking. No deposit or payment is taken. No emails or texts are sent by this app."}),(0,b.jsxs)(r.Card,{children:[(0,b.jsx)(r.H2,{children:"Kitchen and venue hours"}),(0,b.jsx)(r.T,{children:t.hours.note})]}),t.clockArea.on?(0,b.jsx)(u.FindPub,{rid:e}):(0,b.jsxs)(r.Muted,{children:["Find us: ",t.address,". Precise map location to confirm."]}),(0,b.jsx)(c.QueuedMenus,{menu:t.menu,context:t.menuServiceContext,allergens:t.allergenCaveat}),(0,b.jsxs)(r.Banner,{kind:"warn",title:"To confirm",children:[t.gatesToConfirm.join(', '),"."]}),(0,b.jsx)(r.Muted,{children:"Ordering, takeaway, delivery and loyalty: to set up. Deposits are blank and off."})]})]})}},837,[30,239,813,860,861,838,839,819,5,6,24]);
|
| 3 |
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.NativeRequestSetup=function(l){const[h,p]=(0,u.useState)(null);return(0,u.useEffect)(()=>{let u=!0;p(null);const s=(0,t.isQueuedVenue)(l.rid),o=s?'queued_venue_request_setup_ready':'kirkton'===l.rid?'kirkton_request_setup_ready':'abbotsford_request_setup_ready';return(0,n.getSupabase)().rpc(o,s?{p_slug:(0,t.queuedDatabaseSlug)(l.rid)}:void 0).then(({data:t,error:n})=>{u&&p(!n&&!0===t)},()=>{u&&p(!1)}),()=>{u=!1}},[l.rid,l.kind]),!0===h?(0,c.jsx)(o.VenueRequestForm,{...l}):(0,c.jsxs)(s.Card,{children:[(0,c.jsx)(s.H2,{children:null===h?'Checking booking setup\u2026':'Manager setup needed'}),(0,c.jsx)(s.Muted,{children:null===h?'Checking whether requests are ready.':(0,t.isQueuedVenue)(l.rid)?'An authorised manager must complete setup and confirm current kitchen hours before requests can be sent.':'kirkton'===l.rid?'An authorised manager must complete setup and confirm current kitchen hours before table requests can be sent. Contact details are to confirm.':'An authorised hotel manager must complete setup before requests can be sent.'}),(0,c.jsx)(s.Button,{kind:"secondary",label:"Back to Customer home",onPress:l.onClose})]})};var t=r(d[0]),u=r(d[1]),n=r(d[2]),s=r(d[3]),o=r(d[4]),c=r(d[5])},838,[6,30,862,813,863,24]);
|
| 4 |
+
__d(function(g,r,_i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.QueuedMenus=function({menu:c,context:o,allergens:a}){const u=c,f=(0,n.useMemo)(()=>t(c),[c]),[p,b]=(0,n.useState)(null);return(0,s.jsxs)(i.Card,{children:[(0,s.jsx)(i.H2,{children:"Published menus"}),(0,s.jsx)(i.Banner,{kind:"warn",title:"Menu \u2014 to confirm",children:"Published reference only. Current prices, availability and allergens need confirmation. Items cannot be ordered here."}),o?(0,s.jsx)(i.Muted,{children:o}):null,a?(0,s.jsx)(i.Muted,{children:a}):(0,s.jsx)(i.Muted,{children:"Ask the restaurant about every allergy. Published dietary labels are not an allergen guarantee."}),u.offers?.map((n,t)=>(0,s.jsxs)(i.Muted,{children:["Published offer \u2014 ",n.name,'number'==typeof n.priceGbp?` \xb7 \xa3${n.priceGbp.toFixed(2)}`:'',": ",n.when||'Terms to confirm',". To confirm."]},'offer'+t)),u.buffetSessionPrices?.sessions?.map((n,t)=>(0,s.jsxs)(i.Muted,{children:[n.label,": \xa3",n.price.toFixed(2)," \xb7 to confirm"]},'session'+t)),u.buffetSessionPrices?.kids?(0,s.jsxs)(i.Muted,{children:["Published children\u2019s prices \u2014 ",u.buffetSessionPrices.kids,". To confirm."]}):null,f.map((n,t)=>(0,s.jsx)(i.Button,{kind:"secondary",label:n.name+(p===t?' \xb7 selected':''),onPress:()=>b(p===t?null:t)},t)),null!==p?f[p]?.items.map((n,t)=>(0,s.jsxs)(i.Card,{children:[(0,s.jsx)(i.T,{weight:"bold",children:n.name||n.label||'Published item'}),(0,s.jsx)(i.T,{children:l(n)}),n.description||n.desc?(0,s.jsx)(i.Muted,{children:n.description||n.desc}):null,n.options?.map((n,t)=>(0,s.jsxs)(i.Muted,{children:[n.name||n.label,": ",l(n)]},t))]},t)):null]})};var n=r(d[0]),i=r(d[1]),s=r(d[2]);function t(n,i=""){if(Array.isArray(n))return n.flatMap(n=>t(n,i));if(!n||'object'!=typeof n)return[];const s=n,l='string'==typeof s.name?s.name:'string'==typeof s.label?s.label:i;return(Array.isArray(s.items)?[{name:[i,l].filter((n,i,s)=>n&&s.indexOf(n)===i).join(' \xb7 ')||'Published menu',items:s.items}]:[]).concat(Object.entries(s).filter(([n])=>'items'!==n&&'options'!==n).flatMap(([,n])=>t(n,l||i)))}const l=n=>'included_in_buffet'===n.priceType?'Included in buffet \xb7 session price to confirm':n.priceLabel||('number'==typeof(n.priceGbp??n.price)?`\xa3${(n.priceGbp??n.price).toFixed(2)}`:'Price to confirm')},839,[30,813,24]);
|
| 5 |
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.HotelRequestGate=function({rid:e,hotel:l,children:c}){const[h,f]=(0,t.useState)(!1);return l?.enabled?(0,u.jsxs)(o.default,{style:{flex:1},children:[c,(0,u.jsx)(o.default,{style:{padding:12},children:(0,u.jsx)(s.Button,{label:"Book a room",onPress:()=>f(!0)})}),(0,u.jsx)(s.Sheet,{visible:h,onClose:()=>f(!1),title:"Room request",children:(0,u.jsx)(n.VenueRequestForm,{rid:e,kind:"room",hotel:l,onClose:()=>f(!1)})})]}):(0,u.jsx)(u.Fragment,{children:c})};var e,t=r(d[0]),l=r(d[1]),o=(e=l)&&e.__esModule?e:{default:e},s=r(d[2]),n=r(d[3]),u=r(d[4])},840,[30,127,813,863,24]);
|
| 6 |
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return x}});var e,n=r(d[0]),s=r(d[1]),t=(e=s)&&e.__esModule?e:{default:e},o=r(d[2]),l=r(d[3]),u=r(d[4]),c=r(d[5]),h=r(d[6]),b=r(d[7]),j=r(d[8]);function x(){const[e,s]=(0,n.useState)(!1),[x,p]=(0,n.useState)(null);return(0,n.useEffect)(()=>{if(!e)return;let n=!0;return p(null),(0,o.getSupabase)().rpc('greenside_request_setup_ready').then(({data:e,error:s})=>{n&&p(!s&&!0===e)},()=>{n&&p(!1)}),()=>{n=!1}},[e]),(0,j.jsxs)(l.Screen,{title:b.GREENSIDE_RESTAURANT.name,back:!1,children:[(0,j.jsx)(u.RestaurantHero,{rid:"greenside",size:240}),e?!0===x?(0,j.jsx)(h.VenueRequestForm,{rid:"greenside",kind:"table",onClose:()=>s(!1)}):(0,j.jsxs)(l.Card,{children:[(0,j.jsx)(l.H2,{children:null===x?'Checking booking setup\u2026':'Manager setup needed'}),(0,j.jsx)(l.Muted,{children:null===x?'Checking whether table requests are ready.':'An authorised manager must complete setup before table requests can be sent. Please call 01655 889685.'}),(0,j.jsx)(l.Button,{label:"Call 01655 889685",kind:"secondary",onPress:()=>{t.default.openURL(b.GREENSIDE_BOOKING_PHONE)}}),(0,j.jsx)(l.Button,{label:"Back to Customer home",kind:"secondary",onPress:()=>s(!1)})]}):(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(l.T,{center:!0,children:"Bar, restaurant and wood-fired pizza"}),(0,j.jsxs)(l.Row,{wrap:!0,children:[(0,j.jsx)(l.Button,{testID:"greenside-book-table",label:"Book a table",onPress:()=>s(!0)}),(0,j.jsx)(l.Button,{testID:"greenside-book-phone",kind:"secondary",label:"Call 01655 889685",onPress:()=>{t.default.openURL(b.GREENSIDE_BOOKING_PHONE)}})]}),(0,j.jsx)(l.Muted,{children:"Send a table request for a Greenside manager to confirm. This is not an instant booking. No deposit, payment, email or text is taken or sent by this app."}),(0,j.jsxs)(l.Card,{children:[(0,j.jsx)(l.H2,{children:"Kitchen hours"}),(0,j.jsx)(l.T,{children:"Wednesday, Thursday and Sunday: 10:00\u201320:00"}),(0,j.jsx)(l.T,{children:"Friday and Saturday: 10:00\u201321:00"}),(0,j.jsx)(l.T,{children:"Closed Monday and Tuesday"}),(0,j.jsx)(l.H2,{children:"Venue hours"}),(0,j.jsx)(l.T,{children:"Wednesday and Thursday: 10:00\u201323:00"}),(0,j.jsx)(l.T,{children:"Friday to Sunday: 10:00\u201300:00"}),(0,j.jsx)(l.T,{children:"Cash only"})]}),(0,j.jsx)(c.FindPub,{rid:"greenside"}),(0,j.jsx)(l.Banner,{kind:"warn",title:"Menus \u2014 unconfirmed",children:"The published menus, prices, availability and allergens need confirmation. Ask the restaurant about every allergy. No menu items are available to order here."}),(0,j.jsx)(l.Muted,{children:"Deposit policy needs confirmation. Deposits are off. The public email address needs confirmation."}),(0,j.jsx)(l.Button,{kind:"secondary",label:"View published menus on our website",onPress:()=>{t.default.openURL('https://thegreensiderestaurant.co.uk/menus/')}})]})]})}},841,[30,239,862,813,860,861,863,4,24]);
|
| 7 |
+
__d(function(g,r,i,a,_m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}});var n=r(d[0]),s=r(d[1]),t=e(r(d[2])),l=e(r(d[3])),o=r(d[4]),c=r(d[5]),u=r(d[6]),h=r(d[7]),m=r(d[8]),j=r(d[9]),x=r(d[10]);function f(){const[e,f]=(0,s.useState)(!1),p=h.KIRKMICHAEL_SAMPLE_MENU.menus.find(e=>'main-menu'===e.id);return e?(0,x.jsx)(o.Screen,{title:u.KIRKMICHAEL_RESTAURANT.name,back:!1,children:(0,x.jsx)(m.VenueRequestForm,{rid:"kirkmichael",kind:"table",onClose:()=>f(!1)})}):(0,x.jsxs)(o.Screen,{title:u.KIRKMICHAEL_RESTAURANT.name,back:!1,children:[(0,x.jsx)(c.RestaurantHero,{rid:"kirkmichael",size:180}),(0,x.jsx)(o.T,{center:!0,children:u.KIRKMICHAEL_RESTAURANT.tagline}),(0,x.jsxs)(o.Row,{wrap:!0,children:[(0,x.jsx)(o.Button,{testID:"kirkmichael-book",label:"Book a table",onPress:()=>f(!0)}),(0,x.jsx)(o.Button,{kind:"secondary",label:"Call 01655 750 200",onPress:()=>{t.default.openURL('tel:01655750200')}})]}),(0,x.jsx)(n.FindPub,{rid:"kirkmichael"}),(0,x.jsxs)(o.Card,{children:[(0,x.jsx)(o.H2,{children:"Opening hours"}),(0,x.jsx)(o.T,{children:"Monday to Wednesday: closed"}),(0,x.jsx)(o.T,{children:"Thursday to Sunday: 13:00\u201322:30"}),(0,x.jsx)(o.Muted,{children:u.KIRKMICHAEL_RESTAURANT.hoursNote}),(0,x.jsx)(o.T,{children:u.KIRKMICHAEL_RESTAURANT.address})]}),(0,x.jsxs)(o.Card,{children:[(0,x.jsx)(o.H2,{children:"Contacts"}),u.KIRKMICHAEL_CONTACTS.map(e=>(0,x.jsxs)(l.default,{style:{gap:2,marginBottom:8},children:[(0,x.jsxs)(o.T,{weight:"semibold",children:[e.name," \xb7 ",e.job]}),(0,x.jsxs)(o.Muted,{children:[e.email||'Email via enquiries@ only',e.phone?` \xb7 ${e.phone}`:'']})]},e.name)),(0,x.jsx)(o.Muted,{children:"Profile contacts only \u2014 no staff accounts or invite links have been created."})]}),(0,x.jsx)(o.Banner,{kind:"warn",title:"Deposits are off",children:"No deposit is taken in the app. Confirm directly with the venue if needed."}),(0,x.jsx)(o.Banner,{kind:"warn",title:"Current Sample Menu \u2014 unconfirmed",children:"Reference only, from the venue\u2019s Sample menus. Specials change regularly. Dishes, prices and availability are unconfirmed; ask the venue about every allergy. No allergen information has been signed off. Online ordering, takeaway and loyalty are not enabled."}),(0,x.jsx)(o.Muted,{children:"Bookings are taken in CoverCharge. Capacity about 56 covers; areas Restaurant, Bar and Private dining. Table plan to confirm \u2014 no sample tables."}),p?.categories.map(e=>(0,x.jsxs)(l.default,{style:{gap:10},children:[(0,x.jsx)(o.H2,{children:e.name}),e.items.filter(e=>null!==e.price).map(e=>(0,x.jsxs)(o.Card,{children:[(0,x.jsxs)(o.Row,{style:{justifyContent:'space-between',alignItems:'flex-start'},children:[(0,x.jsx)(o.T,{weight:"semibold",style:{flex:1},children:e.name}),(0,x.jsx)(o.T,{children:null===e.price?'Ask the venue':(0,j.gbp)(Math.round(100*e.price))})]}),e.description?(0,x.jsx)(o.Muted,{children:e.description}):null,(0,x.jsx)(o.Muted,{children:"Sample only \xb7 unconfirmed \xb7 allergens: ask the venue"})]},e.name))]},e.name)),(0,x.jsx)(o.Button,{kind:"secondary",label:"View all current menus on our website",onPress:()=>{t.default.openURL('https://www.kirkmichaelarms.co.uk/menus')}})]})}},842,[861,30,239,127,813,860,12,843,863,816,24]);
|
| 8 |
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"KIRKMICHAEL_ANSWERS",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"KIRKMICHAEL_SAMPLE_MENU",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=e(r(d[1])),u=e(r(d[2]));const c=(0,t.cleanQuestionnaire)(n.default,'kirkmichael'),o=u.default},843,[864,865,844]);
|
| 9 |
+
__d(function(e,l,n,i,r,a,p){r.exports={currency:"GBP",source:"Live site https://www.kirkmichaelarms.co.uk/menus (RSC payload), scraped 2026-11-05",note:"Sample menus change with the specials board. Prices shown are as published on the live Sample menus. Older main-menu.php pub classics appear on third-party aggregators but the live /menus page currently shows these Sample menus \u2014 prefer live data; confirm with Justin/Gordon before seeding stock.",conflicts:["Aggregator/search listings still show an older pub main menu (Soup \xa35.25, Beef Lasagne \xa314.95, etc. from main-menu.php which currently 403s). Live /menus Sample menus differ (sharing plates + specials board). Marked as conflict \u2014 do not merge silently."],menus:[{id:"main-menu",name:"Sample Menu",setPrice:null,setPriceNote:null,categories:[{name:"Starters and sharing",items:[{name:"Khun Mai's Canteen Grilled Aubergine",description:null,price:8.95,priceType:"single",allergens:null},{name:"Langoustine \"Prawn Toast\"",description:null,price:11.5,priceType:"single",allergens:null},{name:"Loch Ryan Venison Empinadas",description:null,price:10.95,priceType:"single",allergens:null},{name:"BBQ Scotch Pork Neck-Moo Ping",description:null,price:14.95,priceType:"single",allergens:null},{name:"Scallop-Slow Roasted Pork Belly",description:null,price:16,priceType:"single",allergens:null},{name:"Gnocchi-Confit Sweetbread Ragu-Truffle-Mushrooms",description:null,price:14.95,priceType:"single",allergens:null}]},{name:"Main Courses on the specials board",items:[{name:"Slow Roasted Apple Orchard Tamworth Pork Belly",description:"Truffle Mash-Roasted Carrot-Spring Cabbage-Apple Puree",price:28,priceType:"single",allergens:null},{name:"Char Roasted Lamb Neck Fillet",description:"Autumn Cabbage, Boiled Potatoes, Roast Carrot, Red Wine Jus",price:38,priceType:"single",allergens:null},{name:"Fire Roasted Lochryan Venison Loin",description:"Celeriac Parsley Puree-Wild Leeks-Potato Terrine-Juniper Jus",price:39,priceType:"single",allergens:null},{name:"Butter Poached Lemon Sole Fillet",description:"Langoustines Tails-Pernod Chive Nage-Paris Mash-Truffle",price:38,priceType:"single",allergens:null},{name:"Grilled Tranche of Turbot",description:"Lemon Scented Monk's Beard-Pink Fir Apple Potatoes-Bearnaise",price:44,priceType:"single",allergens:null}]},{name:"Sample Specials Board",items:[{name:"Sample Specials Board",description:null,price:null,priceType:"single",allergens:null}]}]},{id:"menu-lunch",name:"Sample Lunch Menu",setPrice:null,setPriceNote:null,categories:[{name:"Starters and sharing",items:[{name:"Khun Mai's Canteen Grilled Aubergine",description:null,price:8.95,priceType:"single",allergens:null},{name:"Langoustine \"Prawn Toast\"",description:null,price:11.5,priceType:"single",allergens:null},{name:"Loch Ryan Venison Empinadas",description:null,price:10.95,priceType:"single",allergens:null},{name:"BBQ Scotch Pork Neck-Moo Ping",description:null,price:14.95,priceType:"single",allergens:null},{name:"Scallop-Slow Roasted Pork Belly",description:null,price:16,priceType:"single",allergens:null},{name:"Gnocchi-Confit Sweetbread Ragu-Truffle-Mushrooms",description:null,price:14.95,priceType:"single",allergens:null}]},{name:"Mains",items:[{name:"Choose a Main Course From Our Specials Board",description:"Specials change daily/weekly",price:null,priceType:"single",allergens:null},{name:"Sample Specials Board",description:"Changes Daily/Weekly",price:null,priceType:"single",allergens:null}]},{name:"Girvan Mains Dry Aged Steaks",items:[{name:"A large selection of cuts and sizes daily",description:null,price:null,priceType:"single",allergens:null},{name:"Sample Specials",description:null,price:null,priceType:"single",allergens:null}]},{name:"Sides",items:[{name:"Triple Cooked Hand Cut Chips",description:null,price:6,priceType:"single",allergens:null}]}]},{id:"menu-bar-food",name:"Sample Sunday Lunch Menu",setPrice:null,setPriceNote:null,categories:[{name:"Starters and sharing",items:[{name:"Khun Mai's Canteen Grilled Aubergine",description:null,price:8.95,priceType:"single",allergens:null},{name:"Langoustine \"Prawn Toast\"",description:null,price:11.5,priceType:"single",allergens:null},{name:"Loch Ryan Venison Empinadas",description:null,price:10.95,priceType:"single",allergens:null},{name:"BBQ Scotch Pork Neck-Moo Ping",description:null,price:14.95,priceType:"single",allergens:null},{name:"Scallop-Slow Roasted Pork Belly",description:null,price:16,priceType:"single",allergens:null},{name:"Gnocchi-Confit Sweetbread Ragu-Truffle-Mushrooms",description:null,price:14.95,priceType:"single",allergens:null}]},{name:"Main Courses from the specials board",items:[{name:"Maple Glazed Bacon Loin",description:null,price:25,priceType:"single",allergens:null},{name:"Roasted Sirloin of Scotch Beef",description:"Beef Fat Roast Potatoes-Yorkshire Pudding-Spring Cabbage-Carrot-Peppercorn Sauce",price:25,priceType:"single",allergens:null},{name:"Lemon and Thyme Corn Fed Chicken",description:null,price:25,priceType:"single",allergens:null},{name:"Carvery Plate",description:"Beef, Bacon Loin, Corn Fed Chicken",price:31,priceType:"single",allergens:null},{name:"Fire Roasted Lochryan Venison Loin",description:"Celeriac Parsley Puree-Wild Leeks-Potato Terrine-Juniper Jus",price:39,priceType:"single",allergens:null},{name:"Butter Poached Lemon Sole Fillet",description:"Langoustines Tails-Pernod Chive Nage-Paris Mash-Truffle",price:38,priceType:"single",allergens:null},{name:"Grilled Tranche of Turbot",description:"Lemon Scented Monk's Beard-Pink Fir Apple Potatoes-Bearnaise",price:44,priceType:"single",allergens:null},{name:"Sample Specials",description:null,price:null,priceType:"single",allergens:null}]}]},{id:"menu-kids",name:"Sample Kids' Menu",setPrice:14.95,setPriceNote:"3 courses \u2014 \xa314.95",categories:[{name:"Starters",items:[{name:"Garlic Bread",description:null,price:null,priceType:"single",allergens:null},{name:"Cheesy Garlic Bread",description:null,price:null,priceType:null,allergens:null},{name:"Soup",description:null,price:null,priceType:null,allergens:null}]},{name:"Mains",items:[{name:"Hamburger",description:"Scotch beef burger with brioche bun, lettuce, tomato & french fries or steamed vegetables",price:null,priceType:null,allergens:null},{name:"Cheese Burger",description:"Scotch beef burger with cheddar cheese, brioche bun, lettuce, tomato & french fries or steamed vegetables",price:null,priceType:null,allergens:null},{name:"Chicken Goujons",description:"Crisp fried chicken strips with tortilla wraps, grated cheddar & french fries or steamed vegetables",price:null,priceType:null,allergens:null},{name:"Fish 'n Chips",description:"Battered haddock, lemon, tartare sauce & french fries or steamed vegetables",price:null,priceType:null,allergens:null},{name:"Mac 'n Cheese",description:"Creamy Macaroni with cheddar cheese sauce",price:null,priceType:null,allergens:null}]},{name:"Desserts",items:[{name:"Strawberry Ice Cream",description:null,price:null,priceType:null,allergens:null},{name:"Chocolate Ice Cream",description:null,price:null,priceType:null,allergens:null},{name:"Vanilla Ice Cream",description:null,price:null,priceType:null,allergens:null},{name:"Sticky Toffee Pudding",description:null,price:null,priceType:null,allergens:null}]}]},{id:"menu-whisky",name:"Sample Whisky Menu",setPrice:null,setPriceNote:null,categories:[{name:"Blended Whisky",items:[{name:"Whyte & Macay",description:null,price:null,priceType:"multiple",allergens:null},{name:"Johnnie Walker Black Label",description:null,price:null,priceType:"multiple",allergens:null},{name:"Canadian Club",description:null,price:null,priceType:"multiple",allergens:null}]},{name:"Bourbon & Whiskey Liqueurs",items:[{name:"Jack Daniel's Tennessee",description:null,price:null,priceType:"multiple",allergens:null},{name:"Southern Comfort",description:null,price:null,priceType:"multiple",allergens:null},{name:"Maker's Mark Classic",description:null,price:null,priceType:"multiple",allergens:null},{name:"Bulleit",description:null,price:null,priceType:"multiple",allergens:null},{name:"Bulleit Rye",description:null,price:null,priceType:"multiple",allergens:null},{name:"Jim Beam White Label",description:null,price:null,priceType:"multiple",allergens:null},{name:"Woodford Reserve",description:null,price:null,priceType:"multiple",allergens:null}]},{name:"Irish Whiskey",items:[{name:"Jameson",description:null,price:null,priceType:"multiple",allergens:null}]},{name:"Japanese Whisky",items:[{name:"Hibiki Harmony Masters Masters Select",description:null,price:null,priceType:"multiple",allergens:null}]},{name:"Single Malt - Speyside",items:[{name:"Glenfiddich 12 Year Old",description:null,price:null,priceType:"multiple",allergens:null},{name:"Glenrothes 12 Year Old",description:null,price:null,priceType:"multiple",allergens:null},{name:"Macallan 12 Year Old Double Cask",description:null,price:null,priceType:"multiple",allergens:null},{name:"Benrinnes Flora & Fauna 15",description:null,price:null,priceType:"multiple",allergens:null},{name:"Benrinnes 1997 Maltman 18 Year Old",description:null,price:null,priceType:"multiple",allergens:null},{name:"Balvenie 18 Year Old Pedro Ximenez",description:null,price:null,priceType:"multiple",allergens:null},{name:"Macallan 18 Year Old",description:null,price:null,priceType:"multiple",allergens:null},{name:"Aberlour Abunadh Cask Strength",description:null,price:null,priceType:"multiple",allergens:null},{name:"Mortlach 16yo",description:null,price:null,priceType:"multiple",allergens:null}]},{name:"Single Malt - Highland",items:[{name:"Dalmore 12 Year Old",description:null,price:null,priceType:"multiple",allergens:null},{name:"Oban 14 Year Old",description:null,price:null,priceType:"multiple",allergens:null},{name:"Glencadam 10",description:null,price:7,priceType:"single",allergens:null},{name:"Tomatin Legacy",description:null,price:6.75,priceType:"single",allergens:null},{name:"Tomatin 14",description:null,price:8,priceType:"single",allergens:null},{name:"Glendronach 15",description:null,price:9,priceType:"single",allergens:null},{name:"Glenfarclas 21",description:null,price:18.5,priceType:"single",allergens:null},{name:"Glendronach Sherry Cask 18",description:null,price:22.5,priceType:"single",allergens:null}]},{name:"Single Malt - Islay",items:[{name:"Bowmore 15 Year Old",description:null,price:null,priceType:"multiple",allergens:null},{name:"Lagavulin 16 Year Old",description:null,price:null,priceType:"multiple",allergens:null},{name:"Caol Ila 12 Year Old",description:null,price:null,priceType:"multiple",allergens:null},{name:"Caol Ila Moch",description:null,price:null,priceType:"multiple",allergens:null},{name:"Ardbeg 10",description:null,price:5.75,priceType:"single",allergens:null}]},{name:"Single Malt - Islands",items:[{name:"Highland Park 12 Year Old",description:null,price:null,priceType:"multiple",allergens:null},{name:"Talisker 10 Year Old",description:null,price:null,priceType:"multiple",allergens:null},{name:"Arran 10 Year Old",description:null,price:null,priceType:"multiple",allergens:null},{name:"Arran Port Cask Finish",description:null,price:null,priceType:"multiple",allergens:null},{name:"Machrie Moor Cask Strength",description:null,price:null,priceType:"multiple",allergens:null},{name:"Arran Amarone Cask",description:null,price:7.25,priceType:"single",allergens:null},{name:"Hearach Oloroso, Harris",description:null,price:9,priceType:"single",allergens:null},{name:"Ledaig 1974, Mull",description:null,price:22.5,priceType:"single",allergens:null}]},{name:"Single Malt - Lowlands",items:[{name:"Auchentoshan Three Wood",description:null,price:null,priceType:"multiple",allergens:null},{name:"Ailsa Bay",description:null,price:null,priceType:"multiple",allergens:null},{name:"Glenkinchie 12 Year Old",description:null,price:null,priceType:"multiple",allergens:null},{name:"Lochlea \"Our Barley\"",description:null,price:null,priceType:"multiple",allergens:null},{name:"Lochlea \"Fallow Edition\"",description:null,price:null,priceType:"multiple",allergens:null},{name:"Lochlea \"Ploughing Edition\"",description:null,price:null,priceType:"multiple",allergens:null},{name:"Lochlea \"5\"",description:null,price:null,priceType:"multiple",allergens:null},{name:"Lochlea \"Cask Strength 2nd Edition\"",description:null,price:null,priceType:"multiple",allergens:null},{name:"Bladnoch Spirit Drink",description:null,price:null,priceType:"multiple",allergens:null},{name:"Bladnoch Vinaya",description:null,price:null,priceType:"multiple",allergens:null},{name:"Bladnoch 22 Year Old Vintage Release",description:null,price:null,priceType:"multiple",allergens:null}]},{name:"Single Malt - Campbeltown",items:[{name:"Springbank 15 Year Old",description:null,price:null,priceType:"multiple",allergens:null},{name:"Springbank 18 Year Old",description:null,price:null,priceType:"multiple",allergens:null}]}]},{id:"menu-wine",name:"Sample Wine Menu",setPrice:null,setPriceNote:null,categories:[{name:"Champagne/Sparkling",items:[{name:"Greyfriars Cuvee Brut",description:"England",price:null,priceType:"multiple",allergens:null},{name:"Greyfriars Rose Reserve",description:"England",price:null,priceType:"multiple",allergens:null},{name:"Ruinart Blank De Blank",description:null,price:190,priceType:"single",allergens:null}]},{name:"Rose",items:[{name:"Sanziana, Pinot Noir, Rose",description:"Romania",price:null,priceType:"multiple",allergens:null},{name:"Art de Vivre Rose Organic",description:"Clay 'Amphora', France",price:null,priceType:"multiple",allergens:null}]},{name:"Orange",items:[{name:"Orange Gold White Organic",description:"Gerard Bertrand Organic, France",price:68,priceType:"single",allergens:null}]},{name:"White",items:[{name:"Les Lys De Leon - Sauvignon Blanc",description:"Loir, France",price:null,priceType:"multiple",allergens:null},{name:"Fetele Feteasca Regala Recas Cramele",description:"Bannat, Romania",price:null,priceType:"multiple",allergens:null},{name:"Adam Who, Riesling",description:"Eden Valley, Australia",price:null,priceType:"multiple",allergens:null},{name:"Rare Vineyards Marsanne-Viognier",description:"Languedoc France",price:null,priceType:"multiple",allergens:null},{name:"La Bergerie Chardonnay, Francois Carillon",description:"France",price:null,priceType:"multiple",allergens:null},{name:"Art de Vivre Blanc Organic",description:"Clay 'Amphora', France",price:null,priceType:"multiple",allergens:null},{name:"Acrobat Pinot Gris",description:"Oregon, U.S.A",price:null,priceType:"multiple",allergens:null},{name:"Dashwood Sauvignon Blanc",description:"Marlborough New Zealand",price:null,priceType:"multiple",allergens:null},{name:"Sancerre La Graveli\xe8re",description:"Joseph Mellot, France",price:null,priceType:"multiple",allergens:null},{name:"Petaluma Hanlin Hill Riesling",description:"Australia",price:null,priceType:"multiple",allergens:null},{name:"Louis Jadot Puligny Montrachet",description:"France",price:null,priceType:"multiple",allergens:null}]},{name:"Red",items:[{name:"Vinvua Organic Nero d'Avola DOC",description:"Sicilia Italy",price:null,priceType:"multiple",allergens:null},{name:"Les Lys De Leon, Pinot Grigio",description:"France",price:null,priceType:"multiple",allergens:null},{name:"Tres Priors Trepat Merlot",description:"Catalonia, Spain",price:null,priceType:"multiple",allergens:null},{name:"Alma Mora Malbec",description:"San Juan, Argentina",price:null,priceType:"multiple",allergens:null},{name:"Drifting Old Vine Zinfandel Lodi",description:"California, U.S.A",price:null,priceType:"multiple",allergens:null},{name:"Ch\xe2teau Caz\xe9au Maret Organic",description:"Bordeaux, France",price:null,priceType:"multiple",allergens:null},{name:"Inzuzo Red Blend",description:"Western Cape South Africa",price:null,priceType:"multiple",allergens:null},{name:"Art de Vivre LangueDOC Organic",description:"Clay 'Amphora', France",price:null,priceType:"multiple",allergens:null},{name:"Journeys End V4 Cabernet Sauvignon",description:"South Africa",price:null,priceType:"multiple",allergens:null},{name:"Mucchietto Primitivo",description:"Puglia, Italy",price:null,priceType:"multiple",allergens:null},{name:"Yalumba The Cigar Cabernet Sauvignon",description:null,price:null,priceType:"multiple",allergens:null},{name:"Black Angus Cabernet Sauvignon",description:"Australia",price:null,priceType:"multiple",allergens:null},{name:"Ch\xe2teauneuf du Pape 'Le Mioc\xe8ne'",description:"France",price:null,priceType:"multiple",allergens:null},{name:"Catena Zapata Malbec Argentino",description:null,price:null,priceType:"multiple",allergens:null},{name:"Amarone della Valpolicella Classico Reserva",description:"Italy",price:null,priceType:"multiple",allergens:null},{name:"Psi Bodegas Ribera Del Duero",description:"Spain",price:106,priceType:"single",allergens:null},{name:"Brunelo Di Mortlachino Ridolfi",description:"Italy",price:160,priceType:"single",allergens:null},{name:"Flor De Pingus, Domain De Pingus",description:"Spain",price:295,priceType:"single",allergens:null}]}]}],confirmed:!1,needsConfirmation:!0}},844,[]);
|
| 10 |
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return j}});var e,o=r(d[0]),t=r(d[1]),n=(e=t)&&e.__esModule?e:{default:e},l=r(d[2]),s=r(d[3]),c=r(d[4]),u=r(d[5]),h=r(d[6]),b=r(d[7]),f=r(d[8]);function j(){const[e,t]=(0,o.useState)(null);return(0,f.jsxs)(l.Screen,{title:"The Abbotsford Hotel",back:!1,children:[(0,f.jsx)(c.RestaurantHero,{rid:"abbotsford",size:240}),(0,f.jsx)(l.T,{center:!0,children:"Epicurious restaurant \xb7 The Copper Bar"}),(0,f.jsx)(l.T,{children:"14 Corsehill Road, Ayr KA7 2ST"}),(0,f.jsx)(l.T,{children:"Daily 10:00\u201320:30 \u2014 to confirm. Copper Bar hours to confirm."}),(0,f.jsxs)(l.Card,{children:[(0,f.jsx)(l.H2,{children:"Book with the hotel"}),(0,f.jsx)(l.T,{children:"Table and room requests go to the hotel managers to confirm. They are not instant bookings or a guarantee of availability. No payment or deposit."}),(0,f.jsx)(l.Button,{label:"Book a table",onPress:()=>t('table')}),(0,f.jsx)(l.Button,{label:"Book a room",onPress:()=>t('room')}),(0,f.jsx)(l.Muted,{children:"Rooms: Prices to confirm with the hotel. Room details and inclusions need confirmation."})]}),(0,f.jsx)(b.AbbotsfordMenus,{}),(0,f.jsx)(s.FindPub,{rid:"abbotsford"}),(0,f.jsxs)(l.Card,{children:[(0,f.jsx)(l.H2,{children:"Contact the hotel"}),(0,f.jsx)(l.Button,{kind:"secondary",label:"Call 01292 261506",onPress:()=>{n.default.openURL('tel:01292261506')}}),(0,f.jsx)(l.T,{children:"info@abbotsfordhotel.co.uk"})]}),(0,f.jsx)(l.Banner,{kind:"info",title:"Details to confirm",children:"Covers and table plan, deposit, Copper Bar hours, dog policy and allergens are still to confirm."}),(0,f.jsx)(l.Sheet,{visible:!!e,onClose:()=>t(null),title:'room'===e?'Book a room':'Book a table',children:e?(0,f.jsx)(u.NativeRequestSetup,{rid:"abbotsford",kind:e,hotel:h.ABBOTSFORD_HOTEL,allDayHours:h.ABBOTSFORD_HOURS,onClose:()=>t(null)}):null})]})}},845,[30,239,813,861,860,838,8,846,24]);
|
| 11 |
+
__d(function(g,r,i,a,_m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.AbbotsfordMenus=function(){const[e,t]=(0,n.useState)(null),h=o.find(n=>n.id===e);return(0,c.jsxs)(s.default,{testID:"abbotsford-menus",style:{gap:12},children:[(0,c.jsxs)(l.Card,{children:[(0,c.jsx)(l.H2,{children:"Menus"}),(0,c.jsx)(l.T,{children:"Published menus for reference. Confirm availability, current prices and allergens with the team. No ordering is available here."}),(0,c.jsx)(l.T,{children:"Allergens: please speak to staff. Published dietary marks are not a complete allergen check."}),o.map(n=>(0,c.jsx)(l.Button,{kind:n.id===e?'primary':'secondary',label:`${n.name}${n.id===e?' \xb7 selected':''}`,onPress:()=>t(n.id)},n.id))]}),h?(0,c.jsxs)(s.default,{style:{gap:12},children:[(0,c.jsx)(l.H2,{children:h.name}),h.when?(0,c.jsx)(l.Muted,{children:h.when}):null,h.note?(0,c.jsx)(l.T,{children:h.note}):null,h.categories.map((e,n)=>(0,c.jsxs)(s.default,{style:{gap:10},children:[(0,c.jsx)(l.H2,{children:e.name}),e.note?(0,c.jsx)(l.T,{children:e.note}):null,e.items.map((e,n)=>(0,c.jsx)(l.Card,{children:(0,c.jsxs)(s.default,{style:{gap:8},children:[(0,c.jsxs)(l.Row,{wrap:!0,children:[(0,c.jsx)(l.T,{size:18,weight:"semibold",style:{flex:1},children:e.name}),(0,c.jsx)(l.T,{children:'number'==typeof e.price?u(e.price):'Price to confirm'})]}),e.description?(0,c.jsx)(l.T,{children:e.description}):null,e.note?(0,c.jsx)(l.T,{children:e.note}):null,e.priceOptions?.length?(0,c.jsxs)(l.T,{children:["Published price options: ",e.priceOptions.map(u).join(' / ')]}):null,'number'==typeof e.sharedPrice?(0,c.jsxs)(l.T,{children:["Published group price: ",u(e.sharedPrice)," \u2014 confirm with staff"]}):null,e.dietary?.length?(0,c.jsxs)(l.Muted,{children:["Published marks: ",e.dietary.join(', '),". Ask staff about allergens."]}):null]})},n))]},n))]}):null]})};var n=r(d[0]),s=e(r(d[1])),l=r(d[2]),t=e(r(d[3])),c=r(d[4]);const o=t.default.menus,u=e=>new Intl.NumberFormat('en-GB',{style:'currency',currency:'GBP'}).format(e)},846,[30,127,813,847,24]);
|
| 12 |
+
__d(function(e,i,a,r,n,t,o){n.exports={currency:"GBP",note:"Parsed with pdftotext. Do not invent dishes. Menus subject to change. Dietary codes from a la carte: GF, GFA, V, VV.",menus:[{id:"breakfast",name:"Breakfast \u2014 Morning Edition",when:"Breakfast service; Morning Deals Monday\u2013Friday",sourcePdf:"raw/menu-breakfast.pdf",sourceUrl:"https://www.abbotsfordhotel.co.uk/wp-content/uploads/2026/10/Abbotsford-Breakfast-Menu-1.pdf",categories:[{name:"Morning Deals (Monday\u2013Friday)",items:[{name:"Rolling Report",description:"Morning roll with choice of 2 fillings: Ayrshire Bacon, Pork Link Sausage, Potato Scone or Egg, plus filter tea or coffee",price:6.5,dietary:[]},{name:"The Full Feature",description:"The Abbotsford Breakfast plus fruit juice and filter tea or coffee",price:15,dietary:[]}]},{name:"The Epicurious Express",items:[{name:"The Abbotsford Breakfast",description:"Ayrshire bacon, link sausage, black pudding, haggis, potato scone, beans, tomato, mushrooms and two eggs (poached, scrambled or fried) with white or wholemeal toasted bloomer",price:11.95,dietary:[]},{name:"Light Breakfast",description:"Ayrshire bacon, link sausage, beans, tomato and two eggs with white or wholemeal toasted bloomer",price:9.5,dietary:[]},{name:"Vegetarian Breakfast",description:"Potato scone, tomato, mushrooms, beans and two eggs with white or wholemeal toasted bloomer",price:9.5,dietary:["V"]},{name:"Breakfast Roll",description:"Choice of Ayrshire bacon, pork link sausage, potato scone or egg; 2 items 4.50 | 3 items 5.50",price:3.95,dietary:[]},{name:"Eggs Benedict",description:"Two poached eggs with Ayrshire bacon on toasted muffin, hollandaise",price:10.95,dietary:[]},{name:"Eggs Royale",description:"Two poached eggs with flaked smoked salmon on toasted muffin, hollandaise",price:11.45,dietary:[]},{name:"Smashed Avocado Benedict",description:"Smashed avocado guacamole, two poached eggs on toasted muffin, hollandaise",price:10.95,dietary:["V"]},{name:"Pancake Stack",description:"American-style pancakes with Biscoff, Nutella, chocolate sauce and fresh strawberries",price:9.95,dietary:["V"]},{name:"French Toast",description:"Two slices of bloomer eggy bread with Ayrshire bacon and maple syrup",price:10.95,dietary:[]},{name:"The Morning Stack",description:"American-style pancakes with Ayrshire bacon and maple syrup; add two eggs 2.00",price:9.95,dietary:[]},{name:"Granola Bowl",description:"Almond and raisin granola topped with berries, natural yoghurt and honey",price:8.95,dietary:["V"]},{name:"Brunch \xc0 La Tina",description:"Wholemeal toasted bloomer, smashed avocado, grilled Bonnet goats cheese, smoked salmon, fried free-range egg and balsamic glaze",price:12.5,dietary:[]}]},{name:"Little Legends Ledger (Kids)",items:[{name:"Kids Breakfast",description:"Pork link sausage, beans, potato scone, slice of toast",price:5.95,dietary:[]},{name:"Kids Pancakes",description:"American-style pancakes with syrup, Nutella or butter and jam; add banana or strawberries 1.50",price:5.95,dietary:[]}]},{name:"Extras Desk",items:[{name:"Black Pudding",description:null,price:1.5,dietary:[]},{name:"Pork Link Sausage",description:null,price:1.5,dietary:[]},{name:"Ayrshire Bacon (2)",description:null,price:1.5,dietary:[]},{name:"Smashed Avocado",description:null,price:2,dietary:[]},{name:"Haggis",description:null,price:1.5,dietary:[]},{name:"Mushrooms",description:null,price:1.5,dietary:[]},{name:"Beans",description:null,price:1,dietary:[]},{name:"Tomato",description:null,price:1,dietary:[]},{name:"Egg",description:null,price:1,dietary:[]},{name:"Potato Scone",description:null,price:1,dietary:[]},{name:"Bucket of Chips",description:null,price:4.25,dietary:[]},{name:"Toasted White or Wholemeal Bread",description:"Served with butter and preserve",price:4.5,dietary:[]}]},{name:"Treat Tales",items:[{name:"Scone with butter, jam and hot drink",description:"9am\u201312noon offer",price:4.5,dietary:[]},{name:"Scones, Traybakes and Cakes",description:"From 2.50, available all day",price:2.5,dietary:[],note:"Price 'from' as printed"}]},{name:"Coffee",items:[{name:"Latte",description:null,price:3.75,dietary:[]},{name:"Espresso",description:null,price:3.25,dietary:[]},{name:"Cappuccino",description:null,price:3.75,dietary:[]},{name:"Americano",description:null,price:3.5,dietary:[]},{name:"Double Espresso",description:null,price:3.75,dietary:[]},{name:"Macchiato",description:null,price:3.75,dietary:[]},{name:"Espresso Con Panna",description:null,price:3.75,dietary:[]},{name:"Flavour Shot",description:null,price:.75,dietary:[]},{name:"Extra Shot of Coffee",description:null,price:.75,dietary:[]}]},{name:"Tea and Hot Chocolate",items:[{name:"Breakfast Tea",description:null,price:3.5,dietary:[]},{name:"Camomile Tea",description:null,price:3.5,dietary:[]},{name:"Earl Grey Tea",description:null,price:3.5,dietary:[]},{name:"Green Tea",description:null,price:3.5,dietary:[]},{name:"Peppermint Tea",description:null,price:3.5,dietary:[]},{name:"Red Berry Tea",description:null,price:3.5,dietary:[]},{name:"Lemon and Ginger Tea",description:null,price:3.5,dietary:[]},{name:"Hot Chocolate",description:null,price:3.95,dietary:[]},{name:"Luxury Hot Chocolate",description:"With cream and marshmallows",price:4.95,dietary:[]}]}]},{id:"alacarte",name:"\xc0 La Carte \u2014 Epicurious",when:"Sept 2026 menu; sandwiches 12noon\u20134pm",sourcePdf:"raw/menu-alacarte.pdf",sourceUrl:"https://www.abbotsfordhotel.co.uk/wp-content/uploads/2026/09/Sept-2026-NEW-Menu-Abbotsford-A-La-Carte.pdf",categories:[{name:"The Birch Wine Board",items:[{name:"The Birch Wine Board",description:"Charred halloumi, roasted cauliflower, cured meats, chicken liver parfait, chutney, Scottish cheese, pickled onions, gherkins and fresh seasonal vegetables",price:19.95,dietary:[]}]},{name:"Starters",items:[{name:"Haggis Scotch Egg",description:"Smoked turnip veloute, Arran mustard and crispy leeks",price:10.95,dietary:[]},{name:"Traditional Cullen Skink",description:"With crusty ciabatta bread",price:10.95,dietary:["GFA"]},{name:"Chef's Soup of the Day",description:"With freshly baked bread",price:6.5,dietary:["GFA","VV"]},{name:"Moules Marini\xe8re",description:"Shetland mussels, white wine and garlic cream with garlic ciabatta",price:12.95,dietary:["GFA"]},{name:"Chicken Liver and Brandy Parfait",description:"Red onion chutney and bannocks",price:9.5,dietary:["GFA"]},{name:"Sweet Chilli and Soy Glazed Pork Belly Bites",description:"Chilli mint yogurt and pickled cucumber ribbons",price:10.5,dietary:["GFA"]},{name:"Fruit Platter",description:"Duo of melon, seasonal berries, passionfruit sorbet and raspberry coulis",price:9.95,dietary:["GF","VV"]}]},{name:"Sandwiches",note:"Served 12noon\u20134pm. White or malted bloomer with tortilla chips, house salad and coleslaw. GF on request. Add soup 3.95 | chips 4.50",items:[{name:"Tuna Mayonnaise",description:null,price:10.95,dietary:[]},{name:"Ploughman's",description:null,price:11.95,dietary:[]},{name:"Coronation Chicken",description:null,price:10.95,dietary:[]},{name:"Chicken and Bacon Club",description:null,price:12.95,dietary:[]}]},{name:"Burgers",note:"Toasted brioche, house slaw and hand-cut chips",items:[{name:"6oz Homemade Abbotsford Burger",description:"Burger sauce, pickles, tomato and baby gem; add cheese/blue cheese/bacon 1.50",price:16.95,dietary:[]},{name:"Abbotsford Spiced Buttermilk Chicken Burger",description:"BBQ pulled beef, garlic mayonnaise, pickles, tomato and baby gem",price:18.95,dietary:[]},{name:"The Burns Burger",description:"6oz Scotch beef, haggis, tattie scone, smoked Arran cheddar and peppercorn sauce",price:18.95,dietary:[]},{name:"Moving Mountains Burger",description:"Plant-based patty, lettuce, tomato, red onion and vegan garlic mayonnaise",price:16.95,dietary:["VV"]}]},{name:"From the Grill",note:"Flat-cap mushrooms, grilled plum tomato, fries and onion rings (GFA). Sauce 2.50: peppercorn | garlic butter | red wine jus",items:[{name:"8 oz Fillet Steak",description:null,price:38.95,dietary:["GFA"]},{name:"10 oz Sirloin Steak",description:null,price:35.95,dietary:["GFA"]}]},{name:"Mains",items:[{name:"Cajun Spiced Breast of Chicken",description:"Rice pilaf, proven\xe7al vegetables, coconut curry cream and spiced onions",price:null,dietary:["GFA"],note:"Printed 14.50 // 18.50",priceOptions:[14.5,18.5]},{name:"Confit Pork Belly",description:"Chorizo creamed potatoes, black pudding bon bons, beer-braised onion and mustard jus",price:21.95,dietary:[]},{name:"Individual Steak and Ale Pie",description:"Creamed potatoes, roasted carrot, tenderstem broccoli and red wine jus",price:19.95,dietary:[]},{name:"Trio of Seafood",description:"Chef's catch of the day, potato fondant, buttered greens and white wine chive cream",price:23.95,dietary:["GF"]},{name:"Beer Battered Haddock",description:"Pickled onion, mushy peas, tartare, fries and lemon",price:null,dietary:["GFA"],note:"Printed 13.45 // 18.50",priceOptions:[13.45,18.5]},{name:"Wild Mushroom Stroganoff",description:"Pilaf rice and tempura gherkins",price:null,dietary:["V"],note:"Printed 13.95 // 17.95",priceOptions:[13.95,17.95]}]},{name:"Sides",note:"All sides vegetarian; ask for GF",items:[{name:"Onion Rings",description:null,price:4,dietary:["V"]},{name:"House Slaw",description:null,price:4,dietary:["V"]},{name:"Creamed Potatoes",description:null,price:5,dietary:["V"]},{name:"House Salad",description:null,price:4,dietary:["V"]},{name:"Hand Cut Chips",description:null,price:4.5,dietary:["V"]},{name:"Sweet Potato Wedges",description:null,price:5.25,dietary:["V"]},{name:"Chilli and Parmesan Hand Cut Chips",description:null,price:5.25,dietary:["V"]}]},{name:"Desserts",items:[{name:"Sticky Toffee Pudding",description:"Butterscotch sauce and vanilla ice cream",price:8.95,dietary:["V","GF"]},{name:"Passionfruit Martini Panna Cotta",description:"Passionfruit syrup and prosecco sorbet",price:9.95,dietary:["GF"]},{name:"Warm Orange Scented Rice Pudding",description:"Ginger biscuit crumb",price:8.95,dietary:["VV","GF"]},{name:"Cheesecake of the Day",description:"With vanilla ice cream and fresh fruit garnish",price:9.95,dietary:["V"]},{name:"Traditional Tiramisu",description:"Coffee sponge fingers, amaretto mascarpone and dark chocolate powder",price:9.95,dietary:["V"]},{name:"Trio of Scottish Cheeses",description:"Cheese, fig chutney, biscuits and grapes",price:10.95,dietary:["GFA"]}]},{name:"Notes",items:[{name:"Chef's Daily Specials",description:"Ask your server",price:null,dietary:[]},{name:"The Ultimate Sunday Roast",description:"Every Sunday until stock runs out",price:null,dietary:[]}]}]},{id:"kids",name:"Kids \u2014 Abby's Favourites",when:null,sourcePdf:"raw/menu-kids.pdf",sourceUrl:"https://www.abbotsfordhotel.co.uk/wp-content/uploads/2026/02/NEW-Menu-Abbotsford-Kids-Menu.pdf",categories:[{name:"Wee Lamb \xb7 Starters (\xa33)",items:[{name:"Garlic Bread",description:null,price:3,dietary:[]},{name:"Soup of the Day",description:null,price:3,dietary:[]}]},{name:"Rowan Pony \xb7 Mains (\xa37)",note:"Add bacon \xa31 | add cheese \xa31",items:[{name:"Chicken Goujons and Chips",description:null,price:7,dietary:[]},{name:"Cheesy Pasta and Garlic Bread",description:null,price:7,dietary:[]},{name:"Haddock and Chips",description:null,price:7,dietary:[]},{name:"3oz Beef Burger and Chips",description:null,price:7,dietary:[]}]},{name:"Scottie Dog \xb7 Treats (\xa33)",items:[{name:"Sticky Toffee Pudding",description:null,price:3,dietary:[]},{name:"Two Scoops of Ice Cream",description:null,price:3,dietary:[]}]}]},{id:"taco-tuesday",name:"Taco Tuesday",when:"Tuesdays",sourcePdf:"raw/menu-taco-tuesday.pdf",sourceUrl:"https://www.abbotsfordhotel.co.uk/wp-content/uploads/2026/08/Taco-Tuesday-Menu-The-Abbotsford.pdf",categories:[{name:"Tacos",note:"Salad, pickled red onion, pico de gallo, fresh lime. Single \xa35 / Double \xa310",items:[{name:"Crispy Fried Chicken",description:"Sriracha mayo",price:null,dietary:[],note:"Single 5.00 / Double 10.00",priceOptions:[5,10]},{name:"Beef Birria and Cheese",description:"Birria dip",price:null,dietary:[],note:"Single 5.00 / Double 10.00",priceOptions:[5,10]},{name:"Breaded Haddock",description:"Tartare sauce",price:null,dietary:[],note:"Single 5.00 / Double 10.00",priceOptions:[5,10]},{name:"Sweet Potato and Chickpea Falafel",description:"Sriracha mayo",price:null,dietary:["V"],note:"Single 5.00 / Double 10.00",priceOptions:[5,10]}]},{name:"Sides and Extras",items:[{name:"Nachos",description:"Guacamole, pico de gallo, sour cream and cheese",price:5,dietary:[]},{name:"Onion Rings",description:null,price:4,dietary:[]},{name:"Fries",description:null,price:4,dietary:[]},{name:"House Slaw",description:null,price:4,dietary:[]},{name:"Mexican Black Bean and Rice",description:null,price:4,dietary:[]},{name:"Chargrilled Cob",description:null,price:null,dietary:[],note:"Single \xa32 / Double \xa34",priceOptions:[2,4]}]},{name:"Cocktails",items:[{name:"Classic Margarita",description:"Or Spicy | Mango | Passionfruit",price:9.95,dietary:[]}]}]},{id:"bar-bites",name:"Bar Bites",when:"The Copper Bar",sourcePdf:"raw/menu-bar-bites.pdf",sourceUrl:"https://www.abbotsfordhotel.co.uk/wp-content/uploads/2026/08/The-Abbotsford-Bar-Bites.pdf",categories:[{name:"Small Plates (\xa35)",items:[{name:"Ham Hough, Confit Chicken and Apricot Croquette",description:null,price:5,dietary:[]},{name:"Sriracha and Maple Glazed Chicken Goujons",description:null,price:5,dietary:[]},{name:"Goats Cheese, Caramelised Onion and Truffle Oil Arancini",description:null,price:5,dietary:["V"]},{name:"Homemade Sausage Roll",description:"Whole grain mustard, Arran cheddar, apple and walnut ketchup",price:5,dietary:[]}]},{name:"Loaded Fries (\xa38.95)",items:[{name:"Cajun Chicken Loaded Fries",description:"Cajun fries, diced cajun chicken, peppers, onions, cheddar and sriracha mayo",price:8.95,dietary:[]},{name:"Locally Caught Haggis Loaded Fries",description:"Seasoned fries, haggis, cheese and peppercorn sauce",price:8.95,dietary:[]}]},{name:"Sharing Plates",items:[{name:"Nice to Meat You",description:"Cold meats, olives and sun-dried tomatoes",price:10,dietary:[]},{name:"Say Cheese",description:"Scottish cheeses, quince jelly, chutney and oatcakes",price:10,dietary:[]},{name:"Sharing is Caring",description:"Nice to Meat You and Say Cheese combo",price:18,dietary:[]}]}]},{id:"drinks",name:"Drinks \u2014 Social Pours",when:null,sourcePdf:"raw/menu-drinks.pdf",sourceUrl:"https://www.abbotsfordhotel.co.uk/wp-content/uploads/2026/08/The-Abbotsford-Drinks-Menu.pdf",note:"Some cocktail groups share one printed price on the PDF.",categories:[{name:"The Classics",note:"Shared price line 9.95",items:[{name:"Daiquiri",description:"White rum, lime and sugar syrup; Strawberry, Passionfruit or Mango",price:null,dietary:[],sharedPrice:9.95},{name:"Old Fashioned",description:"Bourbon, sugar syrup and orange bitters",price:null,dietary:[],sharedPrice:9.95},{name:"Whisky Sour",description:"Whisky, lemon, sugar syrup, Angostura and egg white",price:null,dietary:[],sharedPrice:9.95},{name:"Margarita",description:"Tequila, lime, sugar syrup and triple sec",price:null,dietary:[],sharedPrice:9.95},{name:"Cosmopolitan",description:"Heroes vodka, cranberry, lime, triple sec and sugar syrup",price:9.95,dietary:[]}]},{name:"Martini Style",items:[{name:"Pornstar Martini",description:"Vanilla vodka, passionfruit, Passoa and pineapple",price:null,dietary:[],sharedPrice:10.95},{name:"French Martini",description:"Heroes vodka, pineapple and Chambord",price:null,dietary:[],sharedPrice:10.95},{name:"Espresso Martini",description:"Heroes vodka, coffee liqueur, sugar syrup and espresso",price:10.95,dietary:[]}]},{name:"That's the Spritz",note:"Shared price 9.95",items:[{name:"Aperol Spritz",description:"Aperol, prosecco and soda",price:null,dietary:[],sharedPrice:9.95},{name:"Hugo Spritz",description:"Elderflower liqueur, prosecco and soda",price:null,dietary:[],sharedPrice:9.95},{name:"Limoncello Spritz",description:"Limoncello, prosecco and lemonade",price:null,dietary:[],sharedPrice:9.95},{name:"Pink Gin Spritz",description:"Pink gin, prosecco and lemonade",price:9.95,dietary:[]}]},{name:"Hangover Free (Mocktails)",note:"Shared price 6.95",items:[{name:"Abbotsford Sunset",description:"Tanqueray Flor De Sevilla 0%, orange, lemon, grenadine and lemonade",price:null,dietary:[],sharedPrice:6.95},{name:"Mixed Berry Fizz",description:"Whitley Neill Raspberry 0%, lemon and soda",price:null,dietary:[],sharedPrice:6.95},{name:"Not So Mojito",description:"Apple juice, lime, sugar syrup, mint and soda",price:6.95,dietary:[]}]},{name:"Wine by the Glass \u2014 White",items:[{name:"Berri Estates Chardonnay, South Eastern Australia",description:null,price:null,dietary:[],glass:{"175ml":6.5,"250ml":8.5}},{name:"Petal and Stem Sauvignon Blanc, Marlborough, New Zealand",description:null,price:null,dietary:[],glass:{"175ml":7.5,"250ml":10}},{name:"Grave del Friuli Pinot Grigio, Fantinel, Italy",description:null,price:null,dietary:[],glass:{"175ml":7.5,"250ml":10}},{name:"Mas Puech Picpoul de Pinet, France",description:null,price:null,dietary:[],glass:{"175ml":7.5,"250ml":10}},{name:"Leiras Albarino, Rias Baixas, Spain",description:null,price:null,dietary:[],glass:{"175ml":9.95,"250ml":11.95}}]},{name:"Wine by the Glass \u2014 Rose",items:[{name:"La Maglia Rosa Pinot Grigio Blush, Pavia, Italy",description:null,price:null,dietary:[],glass:{"175ml":7.5,"250ml":10}},{name:"Whispering Hills Zinfandel Rose, California, USA",description:null,price:null,dietary:[],glass:{"175ml":6.5,"250ml":8.5}}]},{name:"Wine by the Glass \u2014 Red",items:[{name:"Berri Estates Shiraz, South Eastern Australia",description:null,price:null,dietary:[],glass:{"175ml":6.95,"250ml":8.95}},{name:"La Campagne Merlot, Pays d'Oc, France",description:null,price:null,dietary:[],glass:{"175ml":7.95,"250ml":10.5}},{name:"Fico Grande Sangiovese, Italy",description:null,price:null,dietary:[],glass:{"175ml":7.5,"250ml":10}},{name:"Alma Mora Malbec, San Juan, Argentina",description:null,price:null,dietary:[],glass:{"175ml":8.95,"250ml":10.95}}]},{name:"Cellar Table \u2014 White (bottle)",items:[{name:"Petal and Stem Sauvignon Blanc, Marlborough, New Zealand",description:null,price:29.95,dietary:[]},{name:"Berri Estates Chardonnay, South Eastern Australia",description:null,price:24.95,dietary:[]},{name:"Grave del Friuli Pinot Grigio, Fantinel, Italy",description:null,price:29.95,dietary:[]},{name:"Mas Puech Picpoul de Pinet, France",description:null,price:29.95,dietary:[]},{name:"Monte di Sarocco Gavi, Italy",description:null,price:34.95,dietary:[]},{name:"Leiras Albarino, Rias Baixas, Spain",description:null,price:35.95,dietary:[]},{name:"Chateau Ste Michelle Chardonnay, Washington State, USA",description:null,price:47.95,dietary:[]},{name:"Louis Jadot Macon-Villages, France",description:null,price:60,dietary:[]}]},{name:"Cellar Table \u2014 Red (bottle)",items:[{name:"Berri Estates Shiraz, South Eastern Australia",description:null,price:25.95,dietary:[]},{name:"La Campagne Merlot, Pays d'Oc, France",description:null,price:30.95,dietary:[]},{name:"Fico Grande Sangiovese, Italy",description:null,price:29.95,dietary:[]},{name:"Zensa Primitivo Salento, Italy",description:null,price:30.95,dietary:[]},{name:"Chateauneuf-du-Pape, France",description:null,price:74.95,dietary:[]},{name:"Louis Jadot Pinot Noir, France",description:null,price:42,dietary:[]},{name:"Vina Pomal Reserva Centenario, Spain",description:null,price:55,dietary:[]}]},{name:"Cellar Table \u2014 Rose (bottle)",items:[{name:"Coteaux Varois en Provence Rose, Estandon, France",description:null,price:55,dietary:[]},{name:"La Maglia Rosa Pinot Grigio Blush, Italy",description:null,price:29.95,dietary:[]},{name:"Whispering Hills Zinfandel, USA",description:null,price:24.95,dietary:[]}]},{name:"Sparkling and Champagne",items:[{name:"Oliver and Greg's Prosecco Brut, Italy",description:null,price:29.95,dietary:[],note:"200ml 8.95 | Bottle 29.95",glass:{"200ml":8.95}},{name:"Bottega Gold Prosecco Brut, Italy",description:null,price:40,dietary:[]},{name:"Veuve Clicquot Yellow Label, France",description:null,price:89,dietary:[]},{name:"Veuve Clicquot Rose, France",description:null,price:99,dietary:[]}]},{name:"Abbotsford Top Picks",items:[{name:"Sancerre, Domaine des Chaintres, France",description:null,price:70,dietary:[]},{name:"Peth Wetz Riesling, Germany",description:null,price:55,dietary:[]},{name:"Fico Grande Sangiovese, Italy",description:null,price:29.95,dietary:[]},{name:"Valpolicella Classico Superiore Ripasso, Italy",description:null,price:65,dietary:[]},{name:"Chateau Ste. Michelle Cabernet Sauvignon, USA",description:null,price:60,dietary:[]},{name:"Chateau Grand Jauga Sauternes, France",description:null,price:40,dietary:[],note:"Dessert wine"}]}]}]}},847,[]);
|
| 13 |
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return k}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),s=r(d[3]),l=r(d[4]),c=r(d[5]),u=r(d[6]),h=r(d[7]);function k(){const[k,j]=(0,n.useState)(!1),p=(0,c.useRestaurant)('kirkton')??u.KIRKTON_RESTAURANT;return(0,h.jsxs)(t.Screen,{title:p.name,back:!1,children:[(0,h.jsx)(o.RestaurantHero,{rid:"kirkton",size:240}),(0,h.jsx)(t.T,{center:!0,children:"Bar and restaurant in Dalrymple"}),k?(0,h.jsx)(l.NativeRequestSetup,{rid:"kirkton",kind:"table",allDayHours:p.kitchenHours,onClose:()=>j(!1)}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(t.Card,{children:[(0,h.jsx)(t.H2,{children:"Book a table"}),(0,h.jsx)(t.Button,{testID:"kirkton-book-table",label:"Book a table",onPress:()=>j(!0)}),(0,h.jsx)(t.T,{children:"Send a table request for the venue managers to confirm once setup is complete. This is not an instant booking."}),(0,h.jsx)(t.Muted,{children:"No deposit, payment, email or text is taken or sent by this app."})]}),(0,h.jsxs)(t.Card,{children:[(0,h.jsx)(t.H2,{children:"Venue setup in progress"}),(0,h.jsx)(t.T,{children:"Contact phone: to confirm"}),(0,h.jsx)(t.T,{children:"Opening and kitchen hours: to confirm"}),(0,h.jsx)(t.T,{children:"Table plan and Covers: to confirm"}),(0,h.jsx)(t.T,{children:"Takeaway: to confirm"}),(0,h.jsx)(t.Muted,{children:"Table requests need an authorised manager and confirmed kitchen hours. Orders and payments are not enabled. Deposit policy needs confirmation; deposits are off."})]}),(0,h.jsx)(s.FindPub,{rid:"kirkton"}),(0,h.jsx)(t.Banner,{kind:"warn",title:"Menus \u2014 provisional and unconfirmed",children:"The available menu records are archived from 2019. They are not current prices, availability or allergen information. No menu items are available to order here."})]})]})}},848,[30,813,860,861,838,819,9,24]);
|
| 14 |
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}});var n=r(d[0]),t=r(d[1]),s=e(r(d[2])),o=e(r(d[3])),l=r(d[4]),c=r(d[5]),u=r(d[6]),h=r(d[7]),j=r(d[8]),b=r(d[9]);function f(){const[e,f]=(0,t.useState)(null);return e?(0,b.jsx)(l.Screen,{title:u.WILDINGS_RESTAURANT.name,back:!1,children:(0,b.jsx)(n.VenueRequestForm,{rid:"wildings",kind:e,hotel:u.WILDINGS_RESTAURANT.settings.hotel,onClose:()=>f(null)})}):(0,b.jsxs)(l.Screen,{title:u.WILDINGS_RESTAURANT.name,back:!1,children:[(0,b.jsx)(c.RestaurantHero,{rid:"wildings",size:240}),(0,b.jsx)(l.T,{center:!0,children:u.WILDINGS_RESTAURANT.tagline}),(0,b.jsxs)(o.default,{style:{gap:12},children:[(0,b.jsx)(l.Button,{testID:"wildings-book-table",label:"Book a table",onPress:()=>f('table')}),(0,b.jsx)(l.Button,{testID:"wildings-book-room",label:"Book a room",onPress:()=>f('room')})]}),(0,b.jsxs)(l.Row,{wrap:!0,children:[(0,b.jsx)(l.Button,{testID:"wildings-book-phone",kind:"secondary",label:"Call 01655 331 401",onPress:()=>{s.default.openURL(u.WILDINGS_BOOKING_PHONE)},style:{alignSelf:'auto'}}),(0,b.jsx)(l.Button,{testID:"wildings-book-email",kind:"secondary",label:"Email to book",onPress:()=>{s.default.openURL(u.WILDINGS_BOOKING_EMAIL)},style:{alignSelf:'auto'}})]}),(0,b.jsx)(o.default,{testID:"wildings-kitchen-hours",children:(0,b.jsxs)(l.Card,{children:[(0,b.jsx)(l.H2,{children:"Kitchen hours"}),(0,b.jsx)(l.T,{center:!0,children:"Lunch Monday to Saturday: 12:00\u201314:00"}),(0,b.jsx)(l.T,{center:!0,children:"Sunday lunch: 12:00\u201314:30"}),(0,b.jsx)(l.T,{center:!0,children:"Dinner every day: 18:00\u201321:00"}),(0,b.jsx)(l.Muted,{center:!0,children:"Closed between lunch and dinner. Bar hours to confirm."}),(0,b.jsx)(l.T,{center:!0,children:u.WILDINGS_RESTAURANT.address}),(0,b.jsx)(l.Button,{kind:"secondary",testID:"wildings-directions",label:"Find us \u2014 directions",accessibilityLabel:"Open directions to Wildings, Maidens, KA26 9NR",onPress:()=>{s.default.openURL('https://www.google.com/maps/dir/?api=1&destination='+encodeURIComponent(u.WILDINGS_RESTAURANT.address??u.WILDINGS_RESTAURANT.location))}})]})}),(0,b.jsx)(l.Banner,{kind:"warn",title:"Deposit policy \u2014 needs confirmation",children:"Deposits are off until the venue confirms its policy. Book directly by phone or email."}),(0,b.jsx)(l.Banner,{kind:"warn",title:"Menus \u2014 unconfirmed",children:"Reference only, from the venue\u2019s published menus collected 5 November 2026. Menus, prices and availability need confirmation. Ask the venue about every allergy: no allergen information is signed off."}),(0,b.jsx)(l.Muted,{center:!0,children:"Requests need confirmation from the hotel. Online ordering, takeaway and loyalty are not enabled here."}),h.WILDINGS_REFERENCE_MENU.menus.map(e=>(0,b.jsxs)(o.default,{style:{gap:10},children:[(0,b.jsx)(l.H2,{children:e.name}),e.setPrices?(0,b.jsxs)(l.T,{children:[Object.entries(e.setPrices).map(([e,n])=>`${e}: ${(0,j.gbp)(Math.round(100*Number(n)))}`).join(' \xb7 ')," \xb7 unconfirmed"]}):null,e.categories.map(e=>(0,b.jsxs)(l.Card,{children:[(0,b.jsx)(l.T,{weight:"semibold",children:e.name}),e.items.map(e=>(0,b.jsx)(l.Muted,{children:e.name},e.name)),(0,b.jsx)(l.Muted,{children:"Reference only \xb7 prices and allergens: ask the venue"})]},e.name))]},e.id)),(0,b.jsx)(l.Button,{kind:"secondary",label:"View published menus on our website",onPress:()=>{s.default.openURL('https://www.wildingshotel.com/team')}})]})}},849,[863,30,239,127,813,860,10,850,816,24]);
|
| 15 |
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"WILDINGS_ANSWERS",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"WILDINGS_REFERENCE_MENU",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=e(r(d[1])),u=e(r(d[2]));const o=(0,t.cleanQuestionnaire)(n.default,'wildings'),c=u.default},850,[864,866,851]);
|
| 16 |
+
__d(function(e,n,i,l,r,t,p){r.exports={currency:"GBP",source:"Official PDF menus linked from https://www.wildingshotel.com/team, downloaded 2026-11-05",note:"Lunch and dinner are set-price course menus; dish lines have no individual price, only supplements. Confirm with venue before seeding.",conflicts:["Lunch and vegetarian PDFs say 'Served From 12 Noon \u2013 2:00pm, 7 days'; website says Sunday lunch runs to 2.30pm. Not merged."],menus:[{id:"lunch",name:"Lunch Menu",when:"12 noon to 2pm",setPrices:{"2 courses":24,"3 courses":31},extraServings:3.95,categories:[{name:"Starters",items:[{name:"Smoked Haddock Gratin with Creamed Potatoes",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Pear Poached in Grenadine with Prawns Marie Rose",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Chefs Pate with Grape Chutney & Toast",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Leek & Potato Gnocchi Topped with Goats Cheese, a White Wine Cream Sauce & Tomato Concasse",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Melon Fan with Sorbet & Fruit Coulis",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Spiced Chicken Salad with Caesar Dressing & Parmesan",description:"Starter or Main",price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Mushrooms Baked in a Cream & Cheese Sauce with Toasted Ciabatta",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Smoked Haddock & Salmon Chowder",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Breaded Goats Cheese Served on a Sun-Dried Tomato & Balsamic Salad",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]}]},{name:"Mains",items:[{name:"Blackened Salmon, Warm Potato Salad & a Pepper & Mustard Seed Dressing",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Chicken Breast Coated in Panko Crumb with a Lightly Spiced Sweet & Sour Sauce",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Fillet of Pork Topped with Banana Finished with a Creamy Coconut & Mango Curry Sauce",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Haddock \u201cMornay\u201d or a Lemon Butter",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Chicken \u2018Piri-Piri\u2019 Szechuan Peppers & Spices served with a Yoghurt & Spring Onion Mayonnaise",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Lamb Fillet with a Cracked Black Pepper Cream & Brandy Sauce",description:null,price:null,priceType:"set-menu",supplement:2,dietary:[]},{name:"Pan Fried Fillet of Hake with a Lobster Glaze",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Supreme of Chicken \u2018Suedoise\u2019 White Wine, Swiss Cheese, Cream & Mushrooms",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Spicy Chilli with Rice Topped with Onions & Cheese",description:"Starter or Main",price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Haddock in Breadcrumbs or Tempura served with Tartar Sauce & Lemon",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Lambs Liver & Bacon",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]}]}]},{id:"dinner",name:"Dinner Menu",when:"6pm to 9pm, 7 days",setPrices:{"2 courses":27.5,"3 courses":34.5},extraServings:3.95,categories:[{name:"Starters",items:[{name:"Tiger Prawns Tempura with a Sweet Chilli Dip",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Smoked Haddock & Bacon Gratin with Braised Rice",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Leek & Potato Gnocchi Topped with Goats Cheese, a White Wine Cream Sauce & Tomato Concasse",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Spiced Chicken Salad with Caesar Dressing & Parmesan",description:"Starter or Main",price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Chefs Pate with Grape Chutney & Toast",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Melon Fan with Fresh Fruits, Sorbet & Mango Coulis",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Smoked Haddock & Salmon Chowder",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Breaded Goats Cheese Served on a Sun-Dried Tomato & Balsamic Salad",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Pear Poached in Grenadine with Prawns Marie Rose",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Crayfish, Avocado & Melon Cocktail",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]}]},{name:"Mains",items:[{name:"Blackened Sea Bass served with Mixed Salad & a Sweet Pepper Vinaigrette",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Roast Rack of Lamb, Minted Peas & Pan Juices",description:null,price:null,priceType:"set-menu",supplement:2.5,dietary:[]},{name:"Roast Breast of Duck with a Pink Peppercorn & Brandy Cream Sauce",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Supreme of Chicken \u2018Suedoise\u2019 White Wine, Swiss Cheese, Cream & Mushrooms",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Lambs Liver & Bacon with a Red Wine Jus",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Haddock \u201cMornay\u201d or a Lemon Butter",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Entrecote Steak with Large Onion Rings & a Choice of Sauces",description:"Diane, Pepper or Caf\xe9 de Paris",price:null,priceType:"set-menu",supplement:8,dietary:[]},{name:"Haddock in Breadcrumbs or Tempura served with Tartar Sauce & Lemon",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Fillet of Salmon & Chicken with Two Sauces - \u2018Lobster\u2019 & White Wine Cream & Mushroom",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Fillet Steak with a Cracked Black Pepper & Cream Sauce",description:null,price:null,priceType:"set-menu",supplement:12,dietary:[]},{name:"Fillet of Pork on a Haggis Cake with a Mustard Grain Cream",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Wildings Chicken Schnitzel Topped with Garlic & Herb Butter",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Spicy Chilli with Rice Topped with Onions & Cheese",description:"Starter or Main",price:null,priceType:"set-menu",supplement:null,dietary:[]}]}]},{id:"vegetarian",name:"Vegetarian Menu",when:"12 noon to 2pm (per PDF)",setPrices:null,note:"Prices not printed on PDF; GF = gluten free, V = vegan",categories:[{name:"Starters",items:[{name:"Roast Red Pepper & Tomato Soup",description:null,price:null,priceType:"set-menu",supplement:null,dietary:["GF"]},{name:"Breaded Goats Cheese Served on a Sun-Dried Tomato & Balsamic Salad",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Melon Fan with Sorbet & Fruit Coulis",description:null,price:null,priceType:"set-menu",supplement:null,dietary:["GF","V"]},{name:"Mushrooms Baked in a Cream & Cheese Sauce with Toasted Ciabatta",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]}]},{name:"Mains",items:[{name:"Leek & Potato Gnocchi Topped with Goats Cheese, a White Wine Cream Sauce & Tomato Concasse",description:"Starter or Main",price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Cajun Vegetables Crepe Glazed in a Cream Sauce",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Vegan Curried Chickpea with Cherry Tomatoes & Wilted Spinach",description:null,price:null,priceType:"set-menu",supplement:null,dietary:["GF","V"]},{name:"Vegetable Tempura",description:null,price:null,priceType:"set-menu",supplement:null,dietary:["GF","V"]},{name:"Mushroom Stroganoff with Rice",description:null,price:null,priceType:"set-menu",supplement:null,dietary:["GF"]},{name:"Sundried Tomato, Feta & Olive Tartlet, Finished with a Tomato Concasse & a Basil Dressing",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]}]}]},{id:"sweets",name:"Sweet Menu",setPrices:null,note:"Desserts form the third course of the set menus. Cheese is a \xa33.00 supplement.",categories:[{name:"Desserts",items:[{name:"Trio of Homemade Ice Creams",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Cr\xe8me Caramel with Passion Fruit Ice Cream",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Vanilla Cheesecake with Strawberry Coulis & Fresh Cream",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Sticky Toffee Pudding",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"\u2018Affogato\u2019",description:"Wildings Ice Cream with a Shot of Espresso",price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Chocolate and Orange Liqueur Pot",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Rice Pudding with an Apple Compote",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Crepes filled with Bananas and Maple Syrup",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Meringue Vacherin with a Berry Liqueur Compote",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Bread & Butter Pudding with Pouring Cream",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Selection of Cheese with Biscuits, Grapes & Chutney",description:null,price:null,priceType:"set-menu",supplement:3,dietary:[]}]},{name:"Hot drinks",items:[{name:"Tea",price:3.25,priceType:"single"},{name:"Decaf Tea",price:3.25,priceType:"single"},{name:"Espresso",price:3.25,priceType:"single"},{name:"Americano",price:3.25,priceType:"single"},{name:"Latte",price:3.65,priceType:"single"},{name:"Flat White",price:3.25,priceType:"single"},{name:"Cappuccino",price:3.65,priceType:"single"},{name:"Mocha",price:3.65,priceType:"single"},{name:"Irish Coffee",price:7.75,priceType:"single"}]}]},{id:"kids",name:"Kids Menu",when:"Children under 11",setPrices:{"1 course":9,"2 courses":10,"3 courses":11},categories:[{name:"Starters",items:[{name:"Cheesy Garlic Bread",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Melon & Sorbet",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Soup of the Day",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]}]},{name:"Mains",items:[{name:"Breaded Haddock",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Pasta with a Cheese Sauce or Tomato Sauce",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Fish Pie",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Tempura Chicken Goujons",description:"All can be served with Fries and a choice of Beans or Vegetables",price:null,priceType:"set-menu",supplement:null,dietary:[]}]},{name:"Dessert",items:[{name:"Homemade Ice Cream",description:"Please ask Staff for Our Ice Cream Selection",price:null,priceType:"set-menu",supplement:null,dietary:[]}]}]}],policies:["Please inform the person taking your order of any allergies.","Cannot guarantee items are 100% safe for coeliac disease or severe gluten allergies.","Parties of 6 or more: no separate or split bills."],venueId:"wildings",confirmed:!1,needsConfirmation:!0,operational:!1,allergensConfirmed:!1}},851,[]);
|
mrbasrais/owner-app/_expo/static/js/web/index-e29fcadd43c41415c1d2fc99355d7ac6.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
mrbasrais/owner-app/_expo/static/js/web/index-ea062f48524b23e23943dd0396f5fab4.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
mrbasrais/owner-app/_expo/static/js/web/waitlist-5949dfe032d315503649cf449ffe870a.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
__d(function(g,_r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return h}});var t=_r(d[0]),s=_r(d[1]),n=_r(d[2]),a=_r(d[3]),r=_r(d[4]),o=_r(d[5]),u=_r(d[6]),l=_r(d[7]),c=_r(d[8]);function h(){const{rid:h}=(0,t.useLocalSearchParams)(),x=(0,u.useRestaurant)(h),j=(0,u.useCustomer)(),b=(0,u.useWaitlist)(h),f=(0,u.useBookings)(h),w=(0,u.useOrders)(h),y=(0,u.useEvents)(h),p=(0,u.useNow)(15e3),[v,M]=(0,s.useState)(2),[P,S]=(0,s.useState)(j.name);if(!x)return(0,c.jsx)(n.Screen,{title:"Not found",children:(0,c.jsx)(n.T,{children:"Restaurant not found."})});const T=b.filter(t=>'waiting'===t.status||'notified'===t.status).sort((t,s)=>t.number-s.number),k=T.find(t=>t.customerId===j.id),B=(0,r.forecastToday)(x,f,w,y,p),C=B.nextHour?Math.min(1.6,Math.max(.8,B.nextHour.covers/(.75*x.settings.capacityPerHour))):1;if(k){const t=T.indexOf(k)+1;return(0,c.jsxs)(n.Screen,{title:"You\u2019re on the waitlist",subtitle:x.name,children:[(0,c.jsxs)(n.Card,{highlight:l.colours.gold,children:[(0,c.jsx)(n.Muted,{children:"Your queue number"}),(0,c.jsxs)(n.T,{size:56,weight:"bold",colour:l.colours.gold,children:["#",k.number]}),(0,c.jsx)(n.T,{children:1===t?'You\u2019re next':`${t-1} part${t-1==1?'y':'ies'} ahead of you`}),(0,c.jsxs)(n.T,{weight:"semibold",children:["Estimated wait: about ",(0,o.estimateWait)(t,x.settings.turnMins,C)," minutes"]}),(0,c.jsxs)(n.Muted,{children:["Estimate only \u2014 based on tables in use, typical turn times and today\u2019s forecast. Joined ",(0,a.minsBetween)(new Date(k.joinedAt),p)," min ago."]})]}),'notified'===k.status?(0,c.jsx)(n.Banner,{kind:"success",title:"Your table is ready!",children:"Please come to the door within 5 minutes to keep your table."}):(0,c.jsx)(n.Banner,{kind:"info",children:"Keep this page open to see when your table is ready. Text alerts are not connected."}),(0,c.jsx)(n.Button,{kind:"secondary",label:"Leave the waitlist",onPress:()=>u.repo.waitlist.setStatus(k.id,'removed')})]})}return(0,c.jsxs)(n.Screen,{title:"Join the waitlist",subtitle:x.name,children:[(0,c.jsxs)(n.Card,{children:[(0,c.jsxs)(n.H2,{children:[T.length," part",1===T.length?'y':'ies'," waiting"]}),(0,c.jsxs)(n.Muted,{children:["Estimated wait if you join now: about ",(0,o.estimateWait)(T.length+1,x.settings.turnMins,C)," minutes (estimate)."]})]}),(0,c.jsx)(n.Field,{label:"Name",value:P,onChangeText:S}),(0,c.jsxs)(n.Row,{style:{justifyContent:'space-between'},children:[(0,c.jsx)(n.T,{weight:"semibold",children:"Party size"}),(0,c.jsx)(n.Stepper,{value:v,onChange:M,min:1,max:12,label:"party size"})]}),(0,c.jsx)(n.Button,{label:"Join the queue",disabled:P.trim().length<2,onPress:()=>u.repo.waitlist.join(x.id,P,v,j.id),testID:"join-waitlist"}),(0,c.jsx)(n.Muted,{children:"Waitlist messages are service messages only \u2014 no marketing."})]})}},787,[804,30,813,818,868,869,819,821,24]);
|
mrbasrais/owner-app/_expo/static/js/web/whatson-dd3d796ea1e77876d5803d9ecd8c1109.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
__d(function(g,_r,_i,_a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return h}});var t=_r(_d[0]),l=_r(_d[1]),n=_r(_d[2]),s=e(_r(_d[3])),o=e(_r(_d[4])),a=_r(_d[5]),r=_r(_d[6]),d=_r(_d[7]),i=_r(_d[8]),u=_r(_d[9]);const c=e=>'bank-holiday'===e.kind?(0,u.jsx)(a.Badge,{kind:"blue",label:"Scottish bank holiday"}):'school-holiday'===e.kind?(0,u.jsx)(a.Badge,{kind:"neutral",label:"School holiday"}):'occasion'===e.kind?(0,u.jsx)(a.Badge,{kind:"gold",label:"Key dining date"}):(0,u.jsx)(a.Badge,{kind:"ok",label:"Restaurant event"});function h(){const{rid:e}=(0,t.useLocalSearchParams)(),h=(0,d.useRestaurant)(e),x=(0,d.useEvents)(e),y=(0,d.useNow)(6e4),[j,f]=(0,n.useState)(()=>new Date(y.getFullYear(),y.getMonth(),1)),[b,k]=(0,n.useState)(null);if(!h)return(0,u.jsx)(a.Screen,{title:"Not found",children:(0,u.jsx)(a.T,{children:"Restaurant not found."})});const p=(new Date(j).getDay()+6)%7,w=new Date(j.getFullYear(),j.getMonth()+1,0).getDate(),M=[...Array(p).fill(null),...Array.from({length:w},(e,t)=>new Date(j.getFullYear(),j.getMonth(),t+1))];for(;M.length%7;)M.push(null);const D=e=>x.filter(t=>t.date===e),v=x.filter(e=>e.date>=(0,r.ymd)(y)).sort((e,t)=>e.date.localeCompare(t.date)),B=b?D(b):v.slice(0,20);return(0,u.jsxs)(a.Screen,{title:"What\u2019s on",subtitle:`${h.name} \xb7 holidays, key dates and events`,children:[(0,u.jsxs)(a.Card,{children:[(0,u.jsxs)(a.Row,{style:{justifyContent:'space-between'},children:[(0,u.jsx)(a.Button,{small:!0,kind:"ghost",label:"\u2039 Prev",onPress:()=>f(new Date(j.getFullYear(),j.getMonth()-1,1))}),(0,u.jsxs)(a.H2,{children:[(0,r.monthLong)(j.getMonth())," ",j.getFullYear()]}),(0,u.jsx)(a.Button,{small:!0,kind:"ghost",label:"Next \u203a",onPress:()=>f(new Date(j.getFullYear(),j.getMonth()+1,1))})]}),(0,u.jsx)(o.default,{style:{flexDirection:'row'},children:['Mon','Tue','Wed','Thu','Fri','Sat','Sun'].map(e=>(0,u.jsx)(a.T,{size:13,colour:i.colours.muted,style:{flex:1,textAlign:'center'},children:e},e))}),Array.from({length:M.length/7}).map((e,t)=>(0,u.jsx)(o.default,{style:{flexDirection:'row'},children:M.slice(7*t,7*t+7).map((e,t)=>{if(!e)return(0,u.jsx)(o.default,{style:{flex:1,height:44}},t);const l=(0,r.ymd)(e),n=D(l),d=l===(0,r.ymd)(y);return(0,u.jsxs)(s.default,{accessibilityLabel:`${l}${n.length?`, ${n.length} events`:''}`,onPress:()=>k(b===l?null:l),style:{flex:1,height:44,alignItems:'center',justifyContent:'center',borderRadius:8,backgroundColor:b===l?i.colours.goldTint:'transparent',borderWidth:d?1:0,borderColor:i.colours.gold},children:[(0,u.jsx)(a.T,{size:15,colour:n.length?i.colours.text:i.colours.muted,weight:n.length?'semibold':'regular',children:e.getDate()}),(0,u.jsx)(a.Row,{gap:2,children:n.slice(0,3).map(e=>(0,u.jsx)(o.default,{style:{width:6,height:6,borderRadius:3,backgroundColor:'bank-holiday'===e.kind?i.colours.blue:'event'===e.kind?i.colours.ok:i.colours.gold}},e.id))})]},t)})},t))]}),(0,u.jsx)(a.H2,{children:b?(0,r.niceDateYear)((0,r.parseYmd)(b)):'Coming up'}),0===B.length?(0,u.jsx)(a.Muted,{children:"Nothing on this day."}):B.map(e=>(0,u.jsxs)(a.Card,{children:[(0,u.jsxs)(a.Row,{style:{justifyContent:'space-between'},children:[(0,u.jsx)(a.T,{center:!0,weight:"semibold",style:{width:'100%',flexBasis:'100%'},children:(0,l.holidayName)(e.title)}),c(e)]}),(0,u.jsxs)(a.Muted,{children:[(0,r.niceDateYear)((0,r.parseYmd)(e.date)),e.source?` \xb7 source: ${e.source}`:'']}),(0,u.jsx)(a.T,{size:15,children:e.description}),e.example?(0,u.jsx)(a.Badge,{kind:"amber",label:"EXAMPLE EVENT"}):null,e.date>=(0,r.ymd)(y)?(0,u.jsx)(a.Button,{small:!0,kind:"secondary",label:"Book for this date",onPress:()=>t.router.push({pathname:'/customer/[rid]/book',params:{rid:h.id,date:e.date}})}):null]},e.id)),(0,u.jsx)(a.Muted,{children:"Bank holidays from gov.uk (Scotland division). Easter Monday is not a Scottish bank holiday; local council holidays vary."})]})}},788,[804,828,30,263,127,813,818,819,821,24]);
|
mrbasrais/owner-app/index.html
CHANGED
|
@@ -30,6 +30,6 @@
|
|
| 30 |
<noscript> You need to enable JavaScript to run this app. </noscript>
|
| 31 |
<!-- The root element for your Expo app. -->
|
| 32 |
<div id="root"><div style="position:fixed;inset:0;background:#1A0A0A;display:grid;place-items:center"><img src="/mrbasrais/owner-app/brand-hero.png" alt="Mr Basrai's World Cuisine" width="260" height="260" style="display:block;max-width:80vw;height:auto;margin:0 auto;object-fit:contain"><p style="text-align:center;color:#EB6370;font-size:16px">3–7 Beresford Terrace, Ayr, South Ayrshire, KA7 2ER</p></div></div>
|
| 33 |
-
<script src="/mrbasrais/owner-app/_expo/static/js/web/__expo-metro-runtime-8c088df87a31e4e6accd81c554ec290d.js" defer></script><script src="/mrbasrais/owner-app/_expo/static/js/web/__common-
|
| 34 |
</body>
|
| 35 |
</html>
|
|
|
|
| 30 |
<noscript> You need to enable JavaScript to run this app. </noscript>
|
| 31 |
<!-- The root element for your Expo app. -->
|
| 32 |
<div id="root"><div style="position:fixed;inset:0;background:#1A0A0A;display:grid;place-items:center"><img src="/mrbasrais/owner-app/brand-hero.png" alt="Mr Basrai's World Cuisine" width="260" height="260" style="display:block;max-width:80vw;height:auto;margin:0 auto;object-fit:contain"><p style="text-align:center;color:#EB6370;font-size:16px">3–7 Beresford Terrace, Ayr, South Ayrshire, KA7 2ER</p></div></div>
|
| 33 |
+
<script src="/mrbasrais/owner-app/_expo/static/js/web/__expo-metro-runtime-8c088df87a31e4e6accd81c554ec290d.js" defer></script><script src="/mrbasrais/owner-app/_expo/static/js/web/__common-60039f4adacaba8b157505e543943fb6.js" defer></script><script src="/mrbasrais/owner-app/_expo/static/js/web/index-e29fcadd43c41415c1d2fc99355d7ac6.js" defer></script>
|
| 34 |
</body>
|
| 35 |
</html>
|
mrbasrais/owner-app/owner.html
CHANGED
|
@@ -30,6 +30,6 @@
|
|
| 30 |
<noscript> You need to enable JavaScript to run this app. </noscript>
|
| 31 |
<!-- The root element for your Expo app. -->
|
| 32 |
<div id="root"><div style="position:fixed;inset:0;background:#1A0A0A;display:grid;place-items:center"><img src="/mrbasrais/owner-app/brand-hero.png" alt="Mr Basrai's World Cuisine" width="260" height="260" style="display:block;max-width:80vw;height:auto;margin:0 auto;object-fit:contain"><p style="text-align:center;color:#EB6370;font-size:16px">3–7 Beresford Terrace, Ayr, South Ayrshire, KA7 2ER</p></div></div>
|
| 33 |
-
<script src="/mrbasrais/owner-app/_expo/static/js/web/__expo-metro-runtime-8c088df87a31e4e6accd81c554ec290d.js" defer></script><script src="/mrbasrais/owner-app/_expo/static/js/web/__common-
|
| 34 |
</body>
|
| 35 |
</html>
|
|
|
|
| 30 |
<noscript> You need to enable JavaScript to run this app. </noscript>
|
| 31 |
<!-- The root element for your Expo app. -->
|
| 32 |
<div id="root"><div style="position:fixed;inset:0;background:#1A0A0A;display:grid;place-items:center"><img src="/mrbasrais/owner-app/brand-hero.png" alt="Mr Basrai's World Cuisine" width="260" height="260" style="display:block;max-width:80vw;height:auto;margin:0 auto;object-fit:contain"><p style="text-align:center;color:#EB6370;font-size:16px">3–7 Beresford Terrace, Ayr, South Ayrshire, KA7 2ER</p></div></div>
|
| 33 |
+
<script src="/mrbasrais/owner-app/_expo/static/js/web/__expo-metro-runtime-8c088df87a31e4e6accd81c554ec290d.js" defer></script><script src="/mrbasrais/owner-app/_expo/static/js/web/__common-60039f4adacaba8b157505e543943fb6.js" defer></script><script src="/mrbasrais/owner-app/_expo/static/js/web/index-e29fcadd43c41415c1d2fc99355d7ac6.js" defer></script>
|
| 34 |
</body>
|
| 35 |
</html>
|
mrbasrais/owner-app/sw.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
const V="cc-mrbasrais-owner-
|
| 2 |
self.addEventListener('install',e=>e.waitUntil(caches.open(V).then(c=>Promise.all(P.map(u=>fetch(u).then(r=>{if(!r.ok)throw Error('cache');return c.put(u,r)})))).then(()=>self.skipWaiting())));
|
| 3 |
self.addEventListener('activate',e=>e.waitUntil(caches.keys().then(ks=>Promise.all(ks.filter(k=>k.startsWith('cc-mrbasrais-owner-')&&k!==V).map(k=>caches.delete(k)))).then(()=>self.clients.claim())));
|
| 4 |
self.addEventListener('fetch',e=>{const u=new URL(e.request.url);if(e.request.method!=='GET'||u.origin!==location.origin||!u.pathname.startsWith(B))return;if(e.request.mode==='navigate'){e.respondWith(fetch(e.request).then(r=>r.ok?r:caches.match(B+'index.html')).catch(()=>caches.match(B+'index.html')));return;}e.respondWith(caches.match(e.request).then(r=>r||fetch(e.request)));});
|
|
|
|
| 1 |
+
const V="cc-mrbasrais-owner-6f5d697a90dc7c53",B="/mrbasrais/owner-app/",P=["/mrbasrais/owner-app/apple-touch-icon.png", "/mrbasrais/owner-app/favicon.ico", "/mrbasrais/owner-app/icon-192.png", "/mrbasrais/owner-app/icon-512.png", "/mrbasrais/owner-app/brand-logo.png", "/mrbasrais/owner-app/index.html", "/mrbasrais/owner-app/manifest.webmanifest", "/mrbasrais/owner-app/brand-hero.png", "/mrbasrais/owner-app/owner.html", "/mrbasrais/owner-app/_expo/static/js/web/feedback-3a26c70c9f758c4e362493c3b124ff43.js", "/mrbasrais/owner-app/_expo/static/js/web/[n]-ced785c534ba69ad6c9c35369d7ecc36.js", "/mrbasrais/owner-app/_expo/static/js/web/index-f9b07e7c25cec3623c10876ff1e01e58.js", "/mrbasrais/owner-app/_expo/static/js/web/index-e196fd8b19ecc6189ee08bcd5ff2f404.js", "/mrbasrais/owner-app/_expo/static/js/web/[section]-93e8e4ffe952e5b3c505e21ca771e570.js", "/mrbasrais/owner-app/_expo/static/js/web/index-a39af53b0c36f30a0cc27647d3da5a52.js", "/mrbasrais/owner-app/_expo/static/js/web/offers-3f4e351ccaa73514bd508bf7bd2a3fa2.js", "/mrbasrais/owner-app/_expo/static/js/web/[oid]-7fa4f78cb447d1c659e81fff8893269f.js", "/mrbasrais/owner-app/_expo/static/js/web/__common-60039f4adacaba8b157505e543943fb6.js", "/mrbasrais/owner-app/_expo/static/js/web/[token]-3c722cbf6e54dbbeb30a3a3ee3ece670.js", "/mrbasrais/owner-app/_expo/static/js/web/index-7fc09fb9e425fe86489cd7f975b72892.js", "/mrbasrais/owner-app/_expo/static/js/web/[did]-2a2aaaa129307f15140971a22b834cd3.js", "/mrbasrais/owner-app/_expo/static/js/web/index-572239673a2eda40ce1d7171531ee6dc.js", "/mrbasrais/owner-app/_expo/static/js/web/book-7c4c90140093809a35e48a974143bb55.js", "/mrbasrais/owner-app/_expo/static/js/web/demo-6323990816bb686dcab3b33d7e6ec148.js", "/mrbasrais/owner-app/_expo/static/js/web/__expo-metro-runtime-8c088df87a31e4e6accd81c554ec290d.js", "/mrbasrais/owner-app/_expo/static/js/web/merch-dcc4bf2e12c5c983cc8637b3dae25ae6.js", "/mrbasrais/owner-app/_expo/static/js/web/refer-9cf3652c6de6015e443d52d85aa73db7.js", "/mrbasrais/owner-app/_expo/static/js/web/index-ea062f48524b23e23943dd0396f5fab4.js", "/mrbasrais/owner-app/_expo/static/js/web/whatson-dd3d796ea1e77876d5803d9ecd8c1109.js", "/mrbasrais/owner-app/_expo/static/js/web/basket-39cdf98ed8418bbc1a1ff3b2f269cbcb.js", "/mrbasrais/owner-app/_expo/static/js/web/index-e29fcadd43c41415c1d2fc99355d7ac6.js", "/mrbasrais/owner-app/_expo/static/js/web/profile-7858c56bba02a864da6a44be8f8ce02f.js", "/mrbasrais/owner-app/_expo/static/js/web/index-74667fbd35e0bace18ae40e63063348b.js", "/mrbasrais/owner-app/_expo/static/js/web/gift-eb5daa22c1465e33034a87271e1b8b3b.js", "/mrbasrais/owner-app/_expo/static/js/web/waitlist-5949dfe032d315503649cf449ffe870a.js", "/mrbasrais/owner-app/_expo/static/js/web/lost-53fa50fd975a0e31c68fdd69575c2342.js", "/mrbasrais/owner-app/_expo/static/js/web/index-3c5f820b3b21978c61372b3163c55b0a.js", "/mrbasrais/owner-app/_expo/static/js/web/+not-found-585f3164ae74e5ff35af71a4ba7360a3.js", "/mrbasrais/owner-app/_expo/static/js/web/_layout-d020cc07482ec9ecaacbefb0f8a9e88f.js", "/mrbasrais/owner-app/_expo/static/js/web/loyalty-f6d17fe0987432e6c679359636231949.js", "/mrbasrais/owner-app/_expo/static/js/web/index-837efe1be9c39737e9750ae18a91c7cb.js", "/mrbasrais/owner-app/assets/node_modules/expo-router/assets/pkg.ab19f4cbc543357183a20571f68380a3.png", "/mrbasrais/owner-app/assets/node_modules/expo-router/assets/sitemap.412dd9275b6b48ad28f5e3d81bb1f626.png", "/mrbasrais/owner-app/assets/node_modules/expo-router/assets/file.19eeb73b9593a38f8e9f418337fc7d10.png", "/mrbasrais/owner-app/assets/node_modules/expo-router/assets/unmatched.20e71bdf79e3a97bf55fd9e164041578.png", "/mrbasrais/owner-app/assets/node_modules/expo-router/assets/forward.d8b800c443b8972542883e0b9de2bdc6.png", "/mrbasrais/owner-app/assets/node_modules/expo-router/assets/error.d1ea1496f9057eb392d5bbf3732a61b7.png", "/mrbasrais/owner-app/assets/node_modules/expo-router/assets/arrow_down.017bc6ba3fc25503e5eb5e53826d48a8.png", "/mrbasrais/owner-app/assets/node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@3x.png", "/mrbasrais/owner-app/assets/node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7.png", "/mrbasrais/owner-app/assets/node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@3x.png", "/mrbasrais/owner-app/assets/node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@4x.png", "/mrbasrais/owner-app/assets/node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@2x.png", "/mrbasrais/owner-app/assets/node_modules/expo-router/assets/react-navigation/elements/search-icon.286d67d3f74808a60a78d3ebf1a5fb57.png", "/mrbasrais/owner-app/assets/node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55.png", "/mrbasrais/owner-app/assets/node_modules/expo-router/assets/react-navigation/elements/back-icon-mask.0a328cd9c1afd0afe8e3b1ec5165b1b4.png", "/mrbasrais/owner-app/assets/node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@2x.png", "/mrbasrais/owner-app/assets/node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@4x.png", "/mrbasrais/owner-app/assets/node_modules/expo-router/assets/react-navigation/elements/back-icon.35ba0eaec5a4f5ed12ca16fabeae451d.png", "/mrbasrais/owner-app/assets/node_modules/@expo-google-fonts/poppins/500Medium/Poppins_500Medium.bf59c687bc6d3a70204d3944082c5cc0.ttf", "/mrbasrais/owner-app/assets/node_modules/@expo-google-fonts/poppins/600SemiBold/Poppins_600SemiBold.6f1520d107205975713ba09df778f93f.ttf", "/mrbasrais/owner-app/assets/node_modules/@expo-google-fonts/poppins/700Bold/Poppins_700Bold.08c20a487911694291bd8c5de41315ad.ttf", "/mrbasrais/owner-app/assets/node_modules/@expo-google-fonts/poppins/400Regular/Poppins_400Regular.093ee89be9ede30383f39a899c485a82.ttf", "/mrbasrais/owner-app/assets/assets/specials/sample-chalkboard.e7b4e4450a8483d4219bc6a214158d8f.jpg", "/mrbasrais/owner-app/assets/assets/recipes/moules.a4f342fc7e7fb62c8a0b5c1678bbea3f.jpg", "/mrbasrais/owner-app/assets/assets/recipes/stp.1061ced765efdcafff2554adc3fc7113.jpg", "/mrbasrais/owner-app/assets/assets/recipes/skink.4ce7b7c676f9cdcd0a060eda46f5a00e.jpg", "/mrbasrais/owner-app/assets/assets/recipes/fishsupper.1609c58319e1e8721f5c639049fb054e.jpg", "/mrbasrais/owner-app/assets/assets/recipes/lobster.2fb3485c8e372972099259017358c1b8.jpg", "/mrbasrais/owner-app/assets/assets/brand/wildings.076f4fcd06d19a0af0205c410f461b14.png", "/mrbasrais/owner-app/assets/assets/brand/anchorage-hero.0450b828e4f9c1f4456240096598f6f5.png", "/mrbasrais/owner-app/assets/assets/brand/3idiots-hero.e5dfd53739f05086b1956e72d585a66a.png", "/mrbasrais/owner-app/assets/assets/brand/mrbasrais.7cc4086dd12ace82529795f1c9f8c900.png", "/mrbasrais/owner-app/assets/assets/brand/cecchinis.ebf752fef363247848ae7c0d91938765.png", "/mrbasrais/owner-app/assets/assets/brand/kirkmichael.63b13cde7fd82eb622622b39ac80c394.png", "/mrbasrais/owner-app/assets/assets/brand/3idiots.df4a76d2130f0e5b0042f06a8c88693a.png", "/mrbasrais/owner-app/assets/assets/brand/brae.8de9e89ac30966c6669de990370d8e40.png", "/mrbasrais/owner-app/assets/assets/brand/rupeeroom-hero.969fa372add526aaacf3a6c009b8ac92.png", "/mrbasrais/owner-app/assets/assets/brand/kirkmichael-hero.63b13cde7fd82eb622622b39ac80c394.png", "/mrbasrais/owner-app/assets/assets/brand/williewastles.055a77893ced99bf3a6c5402ba5baac6.png", "/mrbasrais/owner-app/assets/assets/brand/drunkencoo-hero.65c21c4da9e466cf4bffc969639a1427.png", "/mrbasrais/owner-app/assets/assets/brand/pizzaioli-hero.1896657c08264cefb49b401891d5448d.png", "/mrbasrais/owner-app/assets/assets/brand/drunkencoo.f6d92af3b14e4205a3deaf4434754c51.png", "/mrbasrais/owner-app/assets/assets/brand/smokinggoat.20a3a1970596ab43c5d6468d4ed549a7.png", "/mrbasrais/owner-app/assets/assets/brand/greenside.9d1556db97dcb903a3c57e2063ee2255.png", "/mrbasrais/owner-app/assets/assets/brand/abbotsford-hero.78fcb8ee06ee22c4ca659c9254db7512.png", "/mrbasrais/owner-app/assets/assets/brand/rupeeroom.689e6fb536dc0845eeb174a1ec7bd346.png", "/mrbasrais/owner-app/assets/assets/brand/kirkton.bcf8d846df4861474d224a7a77f498fb.png", "/mrbasrais/owner-app/assets/assets/brand/anchorage.fea5ce2f6fd18bf2950aa21c0980ed8e.png", "/mrbasrais/owner-app/assets/assets/brand/williewastles-hero.b9d53d27b66f903b5618a7177b2ffad4.png", "/mrbasrais/owner-app/assets/assets/brand/pizzaioli.db8c000b62ee407121aa8b90ce45e170.png", "/mrbasrais/owner-app/assets/assets/brand/yasmins-hero.a5aef62e37dfcecbe0afc056186f4ad9.png", "/mrbasrais/owner-app/assets/assets/brand/wildings-hero-logo-text.4661e4b935726f2511f9c17a1567c89a.png", "/mrbasrais/owner-app/assets/assets/brand/yasmins.8482602e9f0a965655924835625cb02b.png", "/mrbasrais/owner-app/assets/assets/brand/kirkton-hero.9d0837b292c2f4f30f4521d806bb28c3.png", "/mrbasrais/owner-app/assets/assets/brand/saltmarsh.85a6a65732635e5148478d743d9ca884.png", "/mrbasrais/owner-app/assets/assets/brand/souters.f4c58d9349b6e1700fe5abcc9e9b665c.png", "/mrbasrais/owner-app/assets/assets/brand/greenside-hero.1caec5a6cb939434cccb5f3a613b50f8.png", "/mrbasrais/owner-app/assets/assets/brand/abbotsford.b26602bba5ce4969733c5422a45ad053.png", "/mrbasrais/owner-app/assets/assets/brand/smokinggoat-hero.0588f17ef0eed7f757f22916cd4d37db.png", "/mrbasrais/owner-app/assets/assets/brand/cecchinis-hero.f77780fcc94fd668cf35d66d6dc52d81.png", "/mrbasrais/owner-app/assets/assets/brand/mrbasrais-hero.4ce74641cfcf52d099157c84005b9d2a.png"];
|
| 2 |
self.addEventListener('install',e=>e.waitUntil(caches.open(V).then(c=>Promise.all(P.map(u=>fetch(u).then(r=>{if(!r.ok)throw Error('cache');return c.put(u,r)})))).then(()=>self.skipWaiting())));
|
| 3 |
self.addEventListener('activate',e=>e.waitUntil(caches.keys().then(ks=>Promise.all(ks.filter(k=>k.startsWith('cc-mrbasrais-owner-')&&k!==V).map(k=>caches.delete(k)))).then(()=>self.clients.claim())));
|
| 4 |
self.addEventListener('fetch',e=>{const u=new URL(e.request.url);if(e.request.method!=='GET'||u.origin!==location.origin||!u.pathname.startsWith(B))return;if(e.request.mode==='navigate'){e.respondWith(fetch(e.request).then(r=>r.ok?r:caches.match(B+'index.html')).catch(()=>caches.match(B+'index.html')));return;}e.respondWith(caches.match(e.request).then(r=>r||fetch(e.request)));});
|
mrbasrais/staff-app/_expo/static/js/web/__common-1d4622fd543a0f6b754f1c2252ecb529.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
mrbasrais/staff-app/_expo/static/js/web/_layout-dd519d6b85ac85450aa52b92740cb147.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
mrbasrais/staff-app/_expo/static/js/web/basket-7c4fed68ce9e0c09c65383c7cef79793.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
__d(function(g,_r,_i,_a,_m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}});var l=_r(d[0]),t=_r(d[1]),n=_r(d[2]),s=e(n),a=_r(d[3]),o=_r(d[4]),r=e(_r(d[5])),i=_r(d[6]),u=_r(d[7]),c=_r(d[8]),h=_r(d[9]),m=_r(d[10]),b=_r(d[11]),y=_r(d[12]),j=_r(d[13]),x=_r(d[14]),p=_r(d[15]),k=_r(d[16]);function f(){const e=(0,y.useBasket)(),f=(0,y.useRestaurant)(e.restaurantId??void 0),w=(0,y.useAllMenu)(e.restaurantId??void 0),v=(0,y.useCustomer)(),C=(0,y.useOrders)(f?.id),S=(0,y.useStore)(e=>e.setLineQty),T=(0,y.useStore)(e=>e.overrideLine),B=(0,y.useStore)(e=>e.startBasket),P=(0,y.useNow)(15e3),[$,O]=(0,n.useState)(null),[I,M]=(0,n.useState)(!1),[N,F]=(0,n.useState)(''),[L]=(0,n.useState)(()=>(0,o.startForm)()),[R,z]=(0,n.useState)(''),[A,D]=(0,n.useState)(v.phone??''),[E,Y]=(0,n.useState)(v.email??''),[_,q]=(0,n.useState)(!1),H=(0,y.useOrderAtTable)(e.restaurantId??void 0);s.default.useEffect(()=>{H||'table'!==e.mode||y.useStore.setState(e=>({basket:{...e.basket,mode:'takeaway',tableNo:void 0}}))},[H,e.mode]);const[G,K]=(0,n.useState)(null),[Q,J]=(0,n.useState)(!1),U=(0,n.useMemo)(()=>(0,j.linesFromBasket)(e,w,v.allergies),[e,w,v.allergies]);if(!f||!e.lines.length)return(0,k.jsxs)(u.Screen,{title:"Your basket",children:[(0,k.jsx)(u.Muted,{children:"Your basket is empty."}),(0,k.jsx)(u.Button,{label:"Browse restaurants",onPress:()=>t.router.replace('/customer')})]});const V=H&&'table'===e.mode,W=(0,m.takeawaySlots)(f,C,P),X=U.reduce((e,l)=>e+l.unitPrice*l.qty,0),Z=U.some(e=>e.contains.length&&!e.overridden),ee=e.lines.filter(e=>{const l=w.find(l=>l.id===e.itemId);return!l||l.soldOut||!l.signOff}),le=!V&&!$,te=!V&&f.settings.takeawayPaused,ne=(0,p.ukPhone)(A),se=!Z&&!ee.length&&I&&!le&&!te&&(V||ne.ok&&(0,p.emailOk)(E)),ae=async e=>{const l=await y.repo.orders.placeFromBasket({slotTime:V?void 0:$,tip:0,giftCardCode:e?.giftCardCode,notes:N,paidNow:!V,phone:V?void 0:ne.pretty,email:V?void 0:E.trim()||void 0});(0,o.rememberGuard)(l.id,(0,o.guardFor)({...L,hp:R})),q(!1),t.router.replace(`/customer/order/${l.id}`)},oe=e.lines.find(e=>e.key===G),re=oe?U[e.lines.indexOf(oe)]:void 0;return(0,k.jsxs)(u.Screen,{title:"Your basket",subtitle:`${f.name} \xb7 ${V?`${(0,l.tableNumbers)(e.tableNo)} (order at table)`:'Takeaway \u2014 collection'}`,footer:(0,k.jsxs)(r.default,{style:{gap:8},children:[(0,k.jsxs)(u.Row,{style:{justifyContent:'space-between'},children:[(0,k.jsx)(u.T,{weight:"semibold",children:"Subtotal"}),(0,k.jsx)(u.T,{weight:"bold",size:20,colour:x.colours.gold,children:(0,h.gbp)(X)})]}),Z?(0,k.jsx)(u.T,{size:14,colour:x.colours.red,children:"Resolve the blocked allergy item(s) before continuing."}):I?le&&!te?(0,k.jsx)(u.T,{size:14,colour:x.colours.amber,children:"Choose a collection time."}):null:(0,k.jsx)(u.T,{size:14,colour:x.colours.amber,children:"Confirm your allergies to continue."}),V?(0,k.jsx)(u.Button,{label:"Send order to the kitchen",disabled:!se,onPress:()=>ae(),testID:"send-table-order"}):(0,k.jsx)(u.Button,{label:`Continue to payment \xb7 ${(0,h.gbp)(X)}`,disabled:!se,onPress:()=>q(!0),testID:"checkout"})]}),children:[(V||e.tableNo,null),V?(0,k.jsx)(u.Banner,{kind:"success",title:`${(0,l.tableNumbers)(e.tableNo)}`,children:"Ordered food goes to the kitchen straight away; you pay at the end (split the bill if you like)."}):null,f.fictional?null:(0,k.jsx)(u.ExampleAllergenNotice,{}),U.map((l,t)=>{const n=e.lines[t],s=l.contains.length&&!l.overridden;return(0,k.jsxs)(u.Card,{highlight:l.contains.length?x.colours.red:l.may.length?x.colours.amber:void 0,children:[(0,k.jsxs)(u.Row,{style:{justifyContent:'space-between',alignItems:'flex-start'},children:[(0,k.jsxs)(r.default,{style:{flex:1,paddingRight:8},children:[(0,k.jsx)(u.T,{weight:"semibold",children:l.name}),l.choices.length?(0,k.jsx)(u.Muted,{children:l.choices.join(' \xb7 ')}):null,l.notes?(0,k.jsxs)(u.Muted,{children:["Note: ",l.notes]}):null]}),(0,k.jsx)(u.T,{weight:"semibold",children:(0,h.gbp)(l.unitPrice*l.qty)})]}),s?(0,k.jsxs)(u.Banner,{kind:"danger",title:`BLOCKED \u2014 contains ${l.contains.map(c.allergenLabel).join(', ')}`,children:[(0,k.jsx)(u.T,{size:14,colour:"#FFE3DF",children:`Conflicts with your declared ${v.allergies.filter(e=>l.contains.includes(e.allergen)).map(e=>`${(0,c.allergenLabel)(e.allergen)} (${(0,c.severityLabel)(e.severity)})`).join(', ')}.`}),(0,k.jsxs)(u.Row,{gap:8,style:{marginTop:6},children:[(0,k.jsx)(u.Button,{small:!0,kind:"secondary",label:"Remove",onPress:()=>S(n.key,0)}),(0,k.jsx)(u.Button,{small:!0,kind:"danger",label:"Override\u2026",onPress:()=>{J(!1),K(n.key)}})]})]}):l.contains.length?(0,k.jsx)(u.Banner,{kind:"danger",title:`Allergy override recorded \u2014 contains ${l.contains.map(c.allergenLabel).join(', ')}`,children:"The kitchen will get an allergy alert that must be acknowledged, and staff will check with you at handover."}):null,l.may.length?(0,k.jsx)(u.Banner,{kind:"warn",title:`May contain ${l.may.map(c.allergenLabel).join(', ')}`,children:"Cross-contact risk (e.g. shared fryer). Please check with staff."}):null,ee.includes(n)?(0,k.jsx)(u.Badge,{kind:"amber",label:"No longer available online \u2014 please remove"}):null,(0,k.jsxs)(u.Row,{style:{justifyContent:'space-between'},children:[(0,k.jsx)(u.Button,{small:!0,kind:"ghost",label:"Remove",onPress:()=>S(n.key,0)}),(0,k.jsx)(u.Stepper,{value:n.qty,onChange:e=>S(n.key,e),min:1,label:l.name})]})]},n.key)}),(0,k.jsx)(u.Button,{kind:"ghost",label:"Add more items",onPress:()=>t.router.push(`/customer/${f.id}`)}),V?null:(0,k.jsxs)(u.Card,{children:[(0,k.jsxs)(u.H2,{children:["Collection time \u2014 ",(0,b.niceDate)(P)]}),te?(0,k.jsx)(u.Banner,{kind:"warn",title:"Takeaway paused",children:"The restaurant has paused takeaway slots for now. Please try again later or book a table."}):0===W.length?(0,k.jsx)(u.Banner,{kind:"warn",children:"No collection slots left today."}):(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(u.Muted,{children:["15-minute slots, max ",f.settings.slotCap," orders each so the kitchen isn\u2019t overloaded."]}),(0,k.jsx)(u.Row,{wrap:!0,gap:6,children:W.slice(0,16).map(e=>(0,k.jsx)(u.Chip,{label:e.label,sub:e.full?'Full':e.cap-e.taken+" left",disabled:e.full,selected:$===e.time.toISOString(),onPress:()=>O(e.time.toISOString())},e.label))})]})]}),(0,k.jsxs)(u.Card,{highlight:I?void 0:x.colours.amber,children:[(0,k.jsx)(u.H2,{children:"Confirm allergies for this order"}),(0,k.jsx)(u.Row,{wrap:!0,gap:6,children:v.allergies.length?v.allergies.map(e=>(0,k.jsx)(u.Badge,{kind:"red",label:`${(0,c.allergenLabel)(e.allergen)} \u2014 ${(0,c.severityLabel)(e.severity)}`},e.allergen)):(0,k.jsx)(u.Muted,{children:"No allergies declared on your profile."})}),(0,k.jsx)(u.Toggle,{label:v.allergies.length?'Yes, these are correct for everyone this order is for':'I confirm no one in this order has a food allergy',value:I,onChange:M}),(0,k.jsx)(u.Button,{small:!0,kind:"ghost",label:"Edit allergies in profile",onPress:()=>t.router.push('/customer/profile')})]}),V?null:(0,k.jsxs)(u.Card,{children:[(0,k.jsx)(u.H2,{children:"Your details"}),(0,k.jsx)(u.Field,{testID:"order-phone",label:"Mobile number (needed for collection)",value:A,onChangeText:D,keyboardType:"phone-pad",autoComplete:"tel",placeholder:"e.g. 07700 900123"}),!ne.ok&&A?(0,k.jsx)(u.T,{size:13,colour:x.colours.amber,children:ne.error}):null,(0,k.jsx)(u.Field,{label:"Email (optional)",value:E,onChangeText:Y,keyboardType:"email-address",autoCapitalize:"none",placeholder:"you@example.com"}),(0,p.emailOk)(E)?null:(0,k.jsx)(u.T,{size:13,colour:x.colours.amber,children:"That email doesn\u2019t look quite right. Check it, or leave it blank."}),(0,k.jsx)(u.Muted,{children:"Your order confirmation and collection time are shown here. Text messages are not connected."})]}),(0,k.jsx)(u.Field,{label:"Order notes (optional)",value:N,onChangeText:F,placeholder:"e.g. cutlery please"}),V?(0,k.jsx)(u.Button,{small:!0,kind:"ghost",label:"Switch to takeaway instead",onPress:()=>B(f.id,'takeaway')}):null,(0,k.jsx)(i.MockPay,{visible:_,onClose:()=>q(!1),amount:X,restaurantId:f.id,onPaid:e=>ae({giftCardCode:e.giftCardCode}),title:"Pay for your takeaway"}),(0,k.jsxs)(u.Sheet,{visible:!!oe,onClose:()=>K(null),title:"Allergy override",children:[re?(0,k.jsx)(u.Banner,{kind:"danger",title:`${re.name} contains ${re.contains.map(c.allergenLabel).join(', ')}`,children:"Only continue if this item is for someone without this allergy, or you have spoken to staff."}):null,(0,k.jsx)(u.Toggle,{label:"I understand and want to add it anyway",value:Q,onChange:J}),(0,k.jsx)(u.Button,{kind:"danger",disabled:!Q,label:"Confirm override",onPress:()=>{oe&&re&&T(oe.key,re.contains),K(null)}})]}),(0,k.jsx)(a.Honeypot,{value:R,onChange:z})]})}},789,[808,804,30,810,811,127,834,813,814,816,817,818,819,872,821,823,24]);
|
mrbasrais/staff-app/_expo/static/js/web/book-7c4c90140093809a35e48a974143bb55.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
__d(function(g,_r,_i,_a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return M}});var e,t=_r(_d[0]),o=_r(_d[1]),s=_r(_d[2]),n=_r(_d[3]),l=_r(_d[4]),i=_r(_d[5]),a=_r(_d[6]),r=(e=a)&&e.__esModule?e:{default:e},d=_r(_d[7]),u=_r(_d[8]),c=_r(_d[9]),h=_r(_d[10]),p=_r(_d[11]),b=_r(_d[12]),f=_r(_d[13]),y=_r(_d[14]),x=_r(_d[15]),j=_r(_d[16]),k=_r(_d[17]),v=_r(_d[18]),w=_r(_d[19]),S=_r(_d[20]),T=_r(_d[21]),D=_r(_d[22]),C=_r(_d[23]),$=_r(_d[24]),P=_r(_d[25]);function M(){const{rid:e,date:a}=(0,s.useLocalSearchParams)(),M=(0,x.useRestaurant)(e),B=(0,x.useCustomer)(),A=(0,x.useBookings)(e),O=(0,x.useEvents)(e),N=(0,x.useNow)(6e4),[R]=(0,n.useState)(()=>(0,i.startForm)()),[z,F]=(0,n.useState)(''),[q,E]=(0,n.useState)(2),[H,W]=(0,n.useState)(a??(0,y.ymd)(N)),[I,L]=(0,n.useState)(null),[_,Y]=(0,n.useState)(B.name),[U,G]=(0,n.useState)(B.phone??''),[Q,V]=(0,n.useState)(B.email??''),[J,K]=(0,n.useState)(!1),[X,Z]=(0,n.useState)(''),[ee,te]=(0,n.useState)(!1),[oe,se]=(0,n.useState)([]),[ne,le]=(0,n.useState)(!1),ie=[...B.allergies,...oe.filter(e=>!B.allergies.some(t=>t.allergen===e)).map(e=>({allergen:e,severity:'allergy'}))],[ae,re]=(0,n.useState)(null),de=(0,S.useBlocks)(e=>e.blocks);(0,j.usePublicDayStore)(e=>e.n);const ue=e?(0,j.publicDay)(e,H):null,ce=ue?[...ue.bookings,...A.filter(e=>e.date!==H)]:A,he=ue?[...de.filter(t=>t.rid!==e||t.date!==H),...ue.blocks]:de,me=(0,T.usePlan)(e),[ge,pe]=(0,n.useState)((0,C.emptyNeeds)()),be=!0===ge.dog,fe=be?ge.dogs:0,ye=(0,n.useMemo)(()=>{const e=[],t=new Date(N);t.setHours(12,0,0,0);for(let o=0;o<21;o++){const s=new Date(t);s.setDate(t.getDate()+o),e.push(s)}return a&&!e.some(e=>(0,y.ymd)(e)===a)&&e.push((0,y.parseYmd)(a)),e},[N.toDateString(),a]);if(!M)return(0,P.jsx)(c.Screen,{title:"Not found",children:(0,P.jsx)(c.T,{children:"Restaurant not found."})});const xe=M.settings,je=(0,y.parseYmd)(H),ke=(0,S.blocksOn)(he,M.id,H),ve=ce.filter(e=>e.date===H),we=me.areas.filter(e=>e.dogs),Se=(0,$.dogSetUp)(me),Te=e=>(0,D.freeTablesAt)(me,ve,q,new Date(`${H}${(0,t.tableNumbers)(e)}:00`),(0,D.turnFor)(q,xe.turnMins),xe.turnMins,{dog:!0,closed:(0,S.closedAreasAt)(he,M.id,H,e)}),De=(0,f.bookingSlots)(M,je,e=>ce.filter(t=>t.date===H&&t.time===e&&!['cancelled','noshow'].includes(t.status)).reduce((e,t)=>e+t.partySize,0),q,N).map(e=>{const t=(0,S.blockAt)(he,M.id,H,e.time),o=be&&Se&&e.available&&!t&&(!Te(e.time).length||!(0,C.dogTimeOk)(M,ce,H,e.time,fe));return{...e,blocked:!!t,noDog:o,available:e.available&&!t&&!o}}),Ce=De.some(e=>e.available),$e=(0,d.depositOf)(xe),Pe=(0,d.depositDue)($e,q),Me=Pe>0?'deposit':'none',Be=(0,d.depositWords)($e,q,M.name),Ae=O.filter(e=>e.date===H),Oe=(0,w.ukPhone)(U),Ne=(0,w.emailOk)(Q),Re=(0,C.needsMissing)(ge,B.allergies),ze=!!I&&ee&&!Re.length&&_.trim().length>1&&Oe.ok&&Ne,Fe=async()=>{const e=(0,C.needsPatch)(ge,B.allergies),t=be&&Se?Te(I).map(e=>e.table):[],o=be?ge.tableReq.find(e=>t.includes(e))??t[0]:void 0,s=await x.repo.bookings.create({restaurantId:M.id,customerId:B.id,name:_,partySize:q,date:H,time:I,notes:X.trim(),security:Me,depositPaid:0,...Pe?{depositDue:Pe,depositPolicy:Be.join(' '),depositRefundable:$e.refundable,depositCutoffHours:$e.cutoffHours}:{},phone:Oe.pretty,email:Q.trim()||void 0,source:'online',...e,...De.find(e=>e.time===I)?.drinksOnly?{drinksOnly:!0}:{},allergies:e.allergies??ie,...o?{table:o}:{}});(0,i.rememberGuard)(s.id,(0,i.guardFor)({...R,hp:z})),re(s)},qe=(0,x.useStore)(e=>ae?e.bookings.find(e=>e.id===ae.id)?.ref:void 0),Ee=e=>(0,v.waMeLink)(M.settings.whatsapp,(0,v.guestWhatsAppText)({name:e.name,ref:qe??e.ref,date:e.date,time:e.time,partySize:e.partySize},M.name));if(ae){const e='pending'===ae.status;return(0,P.jsxs)(c.Screen,{title:e?'Booking request received':'Booking confirmed',subtitle:M.name,children:[(0,P.jsx)(c.Banner,{kind:e?'info':'success',title:`Reference ${qe??ae.ref}`,children:`${ae.partySize} people \xb7 ${(0,y.niceDateYear)((0,y.parseYmd)(ae.date))} at ${ae.time}`}),e?(0,P.jsx)(c.Banner,{kind:"warn",title:"The team will confirm shortly",children:"For larger parties and special requests, a member of the team checks your booking first. Contact the venue if you need an update."}):null,(0,P.jsxs)(c.Card,{children:[(0,P.jsxs)(c.T,{children:["Name: ",ae.name]}),(0,P.jsxs)(c.T,{children:["Mobile: ",ae.phone]}),ae.email?(0,P.jsxs)(c.T,{children:["Email: ",ae.email]}):null,(0,P.jsxs)(c.T,{children:["Allergies shared with the restaurant: ",ae.allergies.length?ae.allergies.map(e=>`${(0,h.allergenLabel)(e.allergen)} (${(0,h.severityLabel)(e.severity)})`).join(', '):'none']}),ae.notes?(0,P.jsxs)(c.T,{children:["Notes: ",ae.notes]}):null,ae.dog?(0,P.jsxs)(c.T,{children:["\ud83d\udc15 Dog coming too",ae.table?` \xb7 dog-friendly table ${ae.table}`:'']}):null,ae.holds?.length?(0,P.jsxs)(c.T,{children:["Reserved: ",ae.holds.map(e=>`${e.qty} \xd7 ${'item'===e.kind?(M.settings.reservables??$.ANCHORAGE_RESERVABLES).find(t=>t.id===e.id)?.name??'item':e.id}`).join(', ')," (the kitchen confirms it)"]}):null,ae.tableReq?.length?(0,P.jsxs)(c.T,{children:["Table requested: ",ae.tableReq.map(e=>`${(0,t.tableNumbers)(e)}`).join(' or ')," (not guaranteed, but we\u2019ll do our best)"]}):null,'deposit'===ae.security&&ae.depositDue?(0,P.jsxs)(c.T,{weight:"semibold",children:["Deposit due: ",(0,b.gbp)(ae.depositDue),". ",M.name," will tell you how to pay it."]}):null,'deposit'===ae.security&&ae.depositPolicy?(0,P.jsx)(c.Muted,{children:ae.depositPolicy}):null,(0,P.jsx)(c.Muted,{children:"Your booking details are shown above. If you need confirmation, contact the venue and quote your reference."}),(0,P.jsxs)(c.Muted,{children:["Need to change or cancel? Call ",M.phone," and quote ",qe??ae.ref,"."]})]}),Ee(ae)?(0,P.jsxs)(r.default,{style:{gap:4},children:[(0,P.jsx)(c.Button,{kind:"secondary",label:"\ud83d\udcac Message us on WhatsApp",testID:"guest-whatsapp",onPress:()=>{const e=Ee(ae);e&&(0,v.openWhatsApp)(e)}}),(0,P.jsx)(c.Muted,{size:13,children:"Opens WhatsApp with your booking details typed in. You can change the message before you send it."})]}):null,(0,P.jsx)(c.Button,{label:"Back to restaurant",onPress:()=>s.router.replace(`/customer/${M.id}`)})]})}return(0,P.jsxs)(c.Screen,{title:"Book a table",subtitle:M.name,footer:(0,P.jsx)(c.Button,{label:Re.length?Re[0]:q>(xe.autoAcceptUpTo??7)?'Send booking request':'Confirm booking',disabled:!ze,onPress:()=>Fe(),testID:"confirm-booking"}),children:[(0,P.jsx)(C.FirstQuestions,{rid:M.id,value:ge,onChange:e=>{e.dog===ge.dog&&e.dogs===ge.dogs||L(null),pe(e)},party:q,audience:"guest",profile:B.allergies}),(0,P.jsxs)(c.Card,{children:[(0,P.jsxs)(c.Row,{style:{justifyContent:'space-between'},children:[(0,P.jsx)(c.H2,{children:"Party size"}),(0,P.jsx)(c.Stepper,{value:q,onChange:e=>{E(e),L(null)},min:1,max:16,label:"party size"})]}),Pe?(0,P.jsx)(c.Banner,{kind:"info",title:`Deposit: ${(0,b.gbp)(Pe)} for ${q} guests`,children:(0,P.jsx)(r.default,{style:{gap:4},children:Be.map(e=>(0,P.jsx)(c.T,{size:13,children:e},e))})}):$e.on&&$e.perPersonPence>0?(0,P.jsxs)(c.Muted,{children:["No deposit for fewer than ",$e.fromParty," guests."]}):null,q>(xe.autoAcceptUpTo??7)?(0,P.jsxs)(c.Muted,{children:["For ",q," people the team checks the booking first, then texts you to confirm."]}):null,be&&Se?(0,P.jsxs)(c.Muted,{children:["Dogs are welcome in the ",we.map(e=>`${e.name}${e.outdoor?' (outdoors, weather permitting)':''}`).join(' and ')||'dog-friendly tables',". We\u2019ll only show times with a dog-friendly table",M.settings.maxDogsPerSlot?' and room for your dog':'',"."]}):null]}),(0,P.jsxs)(c.Card,{children:[(0,P.jsx)(c.H2,{children:"Date"}),(0,P.jsx)(c.Row,{wrap:!0,gap:6,children:ye.map(e=>{const t=!!(0,p.hoursFor)(M,e),o=O.some(t=>t.date===(0,y.ymd)(e));return(0,P.jsx)(c.Chip,{label:(0,y.niceDate)(e),sub:t?o?'\u2605 event':void 0:'Closed',disabled:!t,selected:H===(0,y.ymd)(e),onPress:()=>{W((0,y.ymd)(e)),L(null)}},(0,y.ymd)(e))})}),Ae.map(e=>(0,P.jsx)(c.Banner,{kind:"demo",title:e.title,children:e.description},e.id))]}),(0,P.jsxs)(c.Card,{children:[(0,P.jsx)(c.H2,{children:"Time"}),0===De.length?(0,P.jsx)(c.Muted,{children:"Closed on this day (per listed kitchen hours)."}):(0,P.jsx)(c.Row,{wrap:!0,gap:6,children:De.map(e=>(0,P.jsx)(c.Chip,{label:e.time,sub:e.available?e.drinksOnly?'Drinks only':void 0:e.blocked?'Unavailable':e.noDog?'No dog table':e.left<q?'Full':'\u2014',disabled:!e.available,selected:I===e.time,onPress:()=>L(e.time)},e.time))}),ke.length>0&&De.some(e=>e.blocked)?(0,P.jsx)(c.Banner,{kind:"info",title:Ce?'Some times aren\u2019t available online':'Online booking isn\u2019t available for this time',children:`We\u2019re not taking online bookings ${ke.map(e=>`${e.from}\u2013${e.to}`).join(', ')} on ${(0,y.niceDate)(je)}. Please give us a ring on ${M.phone??"the restaurant"} and we\u2019ll do our best to fit you in.`}):null,(()=>{const e=(0,o.lastFoodOn)(M,H);return e&&De.some(e=>e.drinksOnly)?(0,P.jsx)(c.Banner,{kind:"info",title:`Last food orders ${(0,o.fmt12)(e.time)}${'kitchen closes'!==e.reason?` (${e.reason})`:''}`,children:"Times marked \u201cDrinks only\u201d are after the kitchen\u2019s last food orders that day: you\u2019re welcome for drinks, but we can\u2019t serve food."}):null})(),be&&De.some(e=>e.noDog)?(0,P.jsx)(c.Banner,{kind:"info",title:"Some times are full for dogs",children:`Times marked "No dog table" are full in the ${we.map(e=>e.name).join(' and ')}${M.settings.maxDogsPerSlot?' or already have the most dogs we can look after':''}${(0,S.closedAreasAt)(he,M.id,H,I??'12:00').size?', or the garden is closed for weather':''}. We\u2019d love to see you both, so please try one of the other times shown.`}):null,(0,P.jsxs)(c.Muted,{children:["Times come from covers per slot (",xe.bookingCoversPerSlot," per half hour) and table rules."]})]}),(0,P.jsx)(C.MoreQuestions,{rid:M.id,r:M,value:ge,onChange:pe,party:q,date:H,time:I,today:(0,y.ymd)(N),bookings:ce,audience:"guest",showTables:!0}),(0,P.jsxs)(c.Card,{highlight:ee?void 0:k.colours.amber,children:[(0,P.jsx)(c.Field,{label:"Notes (optional)",value:X,onChangeText:Z,placeholder:u.NOTES_PLACEHOLDER,multiline:!0,numberOfLines:3,testID:"book-notes"}),(0,P.jsx)(c.Toggle,{label:"I confirm the allergy information for this booking",value:ee,onChange:te}),(0,P.jsx)(c.Muted,{children:"Table requests aren\u2019t guaranteed, but we\u2019ll do our best. Nothing here is charged now; reserved dishes are paid on the night."})]}),(0,P.jsxs)(c.Card,{children:[(0,P.jsx)(c.H2,{children:"Your details"}),(0,P.jsx)(c.Field,{label:"Name for the booking",value:_,onChangeText:Y}),(0,P.jsx)(c.Field,{testID:"book-phone",label:"Mobile number (needed to book)",value:U,onChangeText:G,onBlur:()=>K(!0),keyboardType:"phone-pad",autoComplete:"tel",placeholder:"e.g. 07700 900123"}),Oe.ok||!J&&!U?null:(0,P.jsx)(c.T,{size:13,colour:k.colours.amber,children:Oe.error}),(0,P.jsx)(c.Field,{testID:"book-email",label:"Email (optional)",value:Q,onChangeText:V,keyboardType:"email-address",autoCapitalize:"none",autoComplete:"email",placeholder:"you@example.com"}),Ne?null:(0,P.jsx)(c.T,{size:13,colour:k.colours.amber,children:"That email doesn\u2019t look quite right. Check it, or leave it blank."}),(0,P.jsxs)(c.Muted,{children:["We\u2019ll text you a confirmation",Q.trim()?' and email it too':'',", with how to change or cancel. We only use your number for this booking."]})]}),(0,P.jsx)(l.Honeypot,{value:z,onChange:F})]})}},777,[808,809,804,30,810,811,127,13,812,813,814,815,816,817,818,819,820,821,822,823,824,825,826,827,828,24]);
|
mrbasrais/staff-app/_expo/static/js/web/historicalBookingApi-0882cd30208cbd3c9dac9321ada9420d.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.historyAccess=c,_e.lookupBookingDay=l,_e.useHistoricalBookingDay=function(t,o,u,y=0){const k=(0,s.useSync)(e=>[e.kind,e.venueId,e.venueSlug,e.perms.join(',')].join(':')),f=c(t),h=f&&(0,n.validPastDate)(o,u)?`${k}:${o}:${y}`:'',[w,p]=(0,e.useState)({key:'',data:null,error:''});return(0,e.useEffect)(()=>{if(!h)return void p({key:'',data:null,error:''});let e=!0;return l(t,o).then(t=>{e&&p({key:h,data:t,error:''})}).catch(t=>{e&&p({key:h,data:null,error:t.message})}),()=>{e=!1}},[h,t,o]),{allowed:f,data:h&&w.key===h?w.data:null,error:h&&w.key===h?w.error:''}};var e=r(d[0]),t=r(d[1]),n=r(d[2]),o=r(d[3]),s=r(d[4]),u=r(d[5]);function c(e){const n=s.useSync.getState();return'owner'===t.APP_VARIANT&&'staff'===n.kind&&n.venueSlug===e&&!!n.venueId&&(n.perms.includes('*')||n.perms.includes('staff.manage'))}async function l(e,t){if(!c(e))throw new Error('Sign in to the Managers app with manager or owner access to Look back.');if(!(0,n.validPastDate)(t,(0,o.venueYmd)(new Date)))throw new Error('Choose an exact past date, with day, month and year.');const l=(0,u.getSupabase)(),{data:y,error:k}=await l.rpc('historical_booking_day',{p_venue:s.useSync.getState().venueId,p_date:t});if(k||!y||!Array.isArray(y.bookings))throw new Error('Booking history could not be loaded. Reconnect and try again.');return y}},1108,[30,806,1107,818,820,863]);
|
mrbasrais/staff-app/_expo/static/js/web/index-1f746396c4deb547feaa8f79a0063a59.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
mrbasrais/staff-app/_expo/static/js/web/index-5f3b7c7f7f5b5cb1fa7b83dccfa2629d.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
__d(function(g,_r,_i,a,_m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return K}});var t=e(_r(_d[0])),l=_r(_d[1]),s=_r(_d[2]),n=e(_r(_d[3])),r=e(_r(_d[4])),o=e(_r(_d[5])),i=e(_r(_d[6])),d=e(_r(_d[7])),u=_r(_d[8]),c=_r(_d[9]),b=_r(_d[10]),h=_r(_d[11]),f=e(h);_r(_d[12]);var p=e(_r(_d[13])),m=e(_r(_d[14])),x=_r(_d[15]),y=_r(_d[16]),j=_r(_d[17]),k=_r(_d[18]),w=_r(_d[19]),S=_r(_d[20]),T=_r(_d[21]),O=_r(_d[22]),I=_r(_d[23]),R=_r(_d[24]),A=_r(_d[25]),B=_r(_d[26]),P=_r(_d[27]),C=_r(_d[28]),_=_r(_d[29]),N=_r(_d[30]),$=_r(_d[31]),v=_r(_d[32]);const E=['book','takeaway'].includes(_.START_GO??'')?_.START_GO:null;let M=!1,L=!1,D=!1;const H=[{id:'main',label:'Main menu'},{id:'specials',label:'Specials'},{id:'takeaway',label:'Takeaway'}];function K(){const{rid:e}=(0,b.useLocalSearchParams)(),c=(0,T.useRestaurant)(e),h=l.IS_QUEUED_VENUE?(0,v.jsx)(t.default,{}):l.IS_ABBOTSFORD?(0,v.jsx)(o.default,{}):l.IS_KIRKTON?(0,v.jsx)(i.default,{}):l.IS_GREENSIDE?(0,v.jsx)(n.default,{}):l.IS_WILDINGS?(0,v.jsx)(d.default,{}):l.IS_KIRKMICHAEL?(0,v.jsx)(r.default,{}):l.IS_SOUTERS?(0,v.jsx)(u.SoutersCustomerHome,{}):(0,v.jsx)(W,{});return l.IS_ABBOTSFORD||l.IS_KIRKTON||l.IS_WILDINGS||!c?.settings.hotel?.enabled?h:(0,v.jsx)(s.HotelRequestGate,{rid:e,hotel:c.settings.hotel,children:h})}function W(){const{rid:e}=(0,b.useLocalSearchParams)(),t=(0,T.useRestaurant)(e),l=(0,T.useMenu)(e),s=(0,T.useCustomer)(),n=(0,T.useBasket)(),r=(0,T.useStore)(e=>e.startBasket),o=(0,T.useNow)(3e4),[i,d]=(0,h.useState)('All'),[u,K]=(0,h.useState)(null),[W,G]=(0,h.useState)(!1),[F,U]=(0,h.useState)(!1),[Q,V]=(0,h.useState)('takeaway'===E?'takeaway':'main');f.default.useEffect(()=>{E&&!M&&(M=!0,'book'===E?setTimeout(()=>b.router.push(`/customer/${e}/book`),0):setTimeout(()=>{try{document.querySelector('[data-testid="menu-tabs"]')?.scrollIntoView({block:'start'})}catch{}},400))},[e]);const Y=(0,P.useSpecials)(t=>t.current[e]??null),q=!!Y&&(0,C.isToday)(Y.postedAt,o),z=(0,A.useOwner)(e=>e.offers.filter(e=>e.live).length),J=(0,T.useStore)(t=>t.stampCards.find(l=>l.restaurantId===e&&l.customerId===t.customer.id)),X=(0,N.useLiveTile)(e),Z=(0,$.guestServer)();f.default.useEffect(()=>{_.START_TABLE_TOKEN&&!D&&(D=!0,setTimeout(()=>b.router.push(`/table/live/${_.START_TABLE_TOKEN}`),0))},[e]),f.default.useEffect(()=>{_.START_LOYALTY_CODE&&!L&&(L=!0,setTimeout(()=>b.router.push(`/customer/${e}/loyalty`),0))},[e]);const ee=(0,T.useOrderAtTable)(e);if(f.default.useEffect(()=>{ee||n.restaurantId!==e||'table'!==n.mode||T.useStore.setState(e=>({basket:{...e.basket,mode:'takeaway',tableNo:void 0}}))},[ee,n.mode,n.restaurantId,e]),!t)return(0,v.jsx)(j.Screen,{title:"Not found",children:(0,v.jsx)(j.T,{children:"Restaurant not found."})});const te=ee&&n.restaurantId===t.id&&'table'===n.mode,le=t.sections.length?t.sections:Array.from(new Set(l.map(e=>e.section))),se=e=>!(e.soldOut||!e.signOff||null===e.price),ae=l.filter(e=>('All'===i||e.section===i)&&('takeaway'!==Q||se(e))),ne=(0,S.hoursFor)(t,o),re=e=>()=>b.router.push(`/customer/${t.id}${e}`),oe=[{icon:'box',label:'Takeaway',sub:'Order to collect',on:()=>{d('All'),V('takeaway'),te&&r(t.id,'takeaway')}},...ee?[{icon:'phone',label:'Order at table',sub:'Scan the QR',on:()=>U(!0)}]:[],{icon:'calendarPlus',label:'Book a table',on:re('/book')},{icon:'clock',label:'Waitlist',sub:'Walk in',on:re('/waitlist')},{icon:'star',label:'Stamp card',sub:Z?X.stamps:`${J?.stamps??0} of ${t.settings.stampTarget}`,on:re('/loyalty')},{icon:'userPlus',label:'Bring a friend',on:re('/refer')},{icon:'gift',label:'Gift cards',on:re('/gift')},{icon:'alert',label:'My allergens',sub:s.allergies.length?`${s.allergies.length} declared`:'None declared',on:()=>b.router.push('/customer/profile')},{icon:'tag',label:'Offers',sub:Z?void 0:s.marketingOptIn[t.id]?'Opted in':'Opt in',on:re('/offers'),badge:(Z?X.offers:z)?String(Z?X.offers:z):void 0},{icon:'sparkle',label:"What's on",on:re('/whatson')},{icon:'chat',label:'Feedback',sub:'Private',on:re('/feedback')},{icon:'hanger',label:'Lost property',on:re('/lost')},{icon:'bag',label:'Shop',sub:'Merch',on:re('/merch')}];return(0,v.jsxs)(j.Screen,{title:t.name,subtitle:`${t.location}${t.phone?` \xb7 ${t.phone}`:''}`,back:'customer'!==R.APP_VARIANT,right:(0,v.jsxs)(j.Row,{children:[(0,v.jsx)(y.BasketButton,{}),(0,v.jsx)(j.Button,{small:!0,kind:"ghost",label:"Account",onPress:()=>b.router.push('/customer/profile')})]}),children:[t.fictional?(0,v.jsx)(j.Banner,{kind:"warn",title:"Fictional demo restaurant",children:"Shown only to demonstrate multi-restaurant support."}):null,te?(0,v.jsx)(j.Banner,{kind:"success",title:`Ordering at ${(0,c.tableNumbers)(n.tableNo)}`,children:"Your order goes straight to the kitchen. Pay and split the bill from your order page. A member of staff is always available \u2014 tap \u201cCall staff\u201d any time."}):(0,v.jsx)(j.Card,{children:(0,v.jsxs)(j.Row,{style:{justifyContent:'space-between'},children:[(0,v.jsxs)(m.default,{style:{flex:1},children:[(0,v.jsx)(j.T,{weight:"semibold",children:"Takeaway \u2014 collection"}),(0,v.jsxs)(j.Muted,{children:[ne?`Kitchen today ${(0,S.kitchenHoursOn)(t,o)[0]}\u2013${(0,S.kitchenHoursOn)(t,o)[1]}`:'Kitchen closed today',t.settings.takeawayPaused?' \xb7 slots paused by the restaurant':'']})]}),(0,v.jsx)(j.Badge,{kind:t.settings.takeawayPaused||!ne?'amber':'ok',label:t.settings.takeawayPaused?'Paused':ne?'Taking orders':'Closed'})]})}),t.fictional?(0,v.jsx)(j.Row,{wrap:!0,gap:8,children:oe.slice(2,7).map(e=>(0,v.jsx)(j.Button,{small:!0,kind:"secondary",label:e.label,onPress:e.on},e.label))}):(0,v.jsx)(m.default,{style:{flexDirection:'row',flexWrap:'wrap',gap:8},children:oe.map(e=>(0,v.jsx)(I.HubTile,{icon:e.icon,label:e.label,sub:e.sub,badge:e.badge,onPress:e.on},e.label))}),te?(0,v.jsx)(j.Button,{small:!0,kind:"danger",label:"Call staff",onPress:()=>G(!0)}):null,W?(0,v.jsx)(j.Banner,{kind:"success",children:"We've told the staff on this device. Calling staff: not set up yet."}):null,t.hoursNote?(0,v.jsx)(j.Muted,{children:t.hoursNote}):null,t.fictional?null:(0,v.jsx)(j.ExampleAllergenNotice,{}),(0,v.jsxs)(j.Muted,{children:["Menu dishes and prices from ",t.name,"\u2019s menu. Items marked \u26a0 conflict with your declared allergies."]}),(0,v.jsx)(m.default,{accessibilityRole:"tablist",testID:"menu-tabs",style:{flexDirection:'row',flexWrap:'wrap',justifyContent:'center',gap:6,backgroundColor:O.colours.surface,borderRadius:14,borderWidth:1,borderColor:O.colours.border,padding:4},children:H.map(e=>{const t=Q===e.id;return(0,v.jsxs)(p.default,{testID:`menu-tab-${e.id}`,accessibilityRole:"tab",accessibilityState:{selected:t},"aria-selected":t,accessibilityLabel:'specials'===e.id&&q?'Specials, updated today':e.label,onPress:()=>V(e.id),style:{flex:1,minWidth:120,flexBasis:120,minHeight:44,borderRadius:10,alignItems:'center',justifyContent:'center',paddingHorizontal:4,backgroundColor:t?O.colours.gold:'transparent'},children:[(0,v.jsx)(j.T,{size:14,weight:"semibold",colour:t?O.colours.onGold:O.colours.text,center:!0,children:e.label}),'specials'===e.id&&q&&!t?(0,v.jsx)(m.default,{style:{position:'absolute',top:6,right:8,width:7,height:7,borderRadius:4,backgroundColor:O.colours.gold}}):null]},e.id)})}),'specials'===Q?(0,v.jsx)(B.SpecialsTab,{rid:t.id,declared:s.allergies,now:o}):null,'takeaway'===Q?(0,v.jsx)(j.Muted,{children:"Order to collect. Only dishes available to order online are shown; pick a collection slot at checkout."}):null,'specials'!==Q?(0,v.jsxs)(j.Row,{wrap:!0,gap:6,children:[(0,v.jsx)(j.Chip,{label:"All",selected:'All'===i,onPress:()=>d('All')}),le.map(e=>(0,v.jsx)(j.Chip,{label:e,selected:i===e,onPress:()=>d(e)},e))]}):null,'specials'!==Q?le.filter(e=>('All'===i||e===i)&&ae.some(t=>t.section===e)).map(e=>(0,v.jsxs)(m.default,{style:{gap:10},children:[(0,v.jsx)(j.H2,{style:{color:O.colours.gold,marginTop:6},children:e}),ae.filter(t=>t.section===e).map(e=>{const l=(0,k.conflictsFor)(e.allergens,s.allergies),o=e.soldOut||!e.signOff||null===e.price;return(0,v.jsxs)(j.Card,{highlight:l.contains.length?O.colours.red:l.may.length?O.colours.amber:void 0,children:[(0,v.jsxs)(p.default,{accessibilityRole:"button",onPress:()=>{n.restaurantId&&n.restaurantId===t.id||r(t.id,'takeaway'),b.router.push(`/customer/${t.id}/dish/${e.id}`)},children:[(0,v.jsxs)(j.Row,{style:{justifyContent:'space-between',alignItems:'flex-start'},children:[(0,v.jsx)(j.T,{center:!0,weight:"semibold",style:{width:'100%',flexBasis:'100%',paddingRight:8},children:e.name}),(0,v.jsx)(j.T,{weight:"semibold",colour:O.colours.gold,children:null===e.price?e.priceNote??'\u2014':(0,w.gbp)(e.price)})]}),(0,v.jsx)(j.Muted,{numberOfLines:2,children:e.description})]}),(0,v.jsxs)(j.Row,{wrap:!0,gap:6,children:[e.dietary.map(e=>(0,v.jsx)(j.Badge,{kind:"ok",label:e},e)),e.special?(0,v.jsx)(j.Badge,{kind:"gold",label:"Special"}):null,e.soldOut?(0,v.jsx)(j.Badge,{kind:"neutral",label:"Sold out"}):null,e.signOff?null:(0,v.jsx)(j.Badge,{kind:"amber",label:"Awaiting allergen sign-off"}),l.contains.length?(0,v.jsx)(j.Badge,{kind:"red",label:"\u26a0 Contains your allergen"}):l.may.length?(0,v.jsx)(j.Badge,{kind:"amber",label:"\u26a0 May contain your allergen"}):null]}),(0,v.jsx)(x.AllergenChips,{map:e.allergens,declared:s.allergies}),u===e.id?(0,v.jsx)(x.AllergenPanel,{item:e,map:e.allergens,declared:s.allergies}):null,(0,v.jsxs)(j.Row,{gap:8,children:[(0,v.jsx)(j.Button,{small:!0,kind:"ghost",label:u===e.id?'Hide allergen panel':'Allergen panel',onPress:()=>K(u===e.id?null:e.id)}),(0,v.jsx)(m.default,{style:{flex:1}}),(0,v.jsx)(j.Button,{small:!0,label:o?e.soldOut?'Sold out':'Not available online':'Choose',disabled:o,onPress:()=>{n.restaurantId&&n.restaurantId===t.id||r(t.id,'takeaway'),b.router.push(`/customer/${t.id}/dish/${e.id}`)}})]})]},e.id)})]},e)):null,(0,v.jsx)(j.Muted,{children:"Drinks list coming soon. Ask your server for today\u2019s drinks."}),(0,v.jsx)(j.Muted,{children:"Card payments: not set up yet. Pay at the till as usual."}),(0,v.jsx)(I.LauncherLine,{}),ee?(0,v.jsxs)(j.Sheet,{visible:F,onClose:()=>U(!1),title:"Order at your table",children:[(0,v.jsx)(j.Muted,{children:"Scan the QR code on your table with your phone camera, or pick your table number."}),(0,v.jsx)(j.Row,{wrap:!0,gap:6,children:Array.from({length:12},(e,t)=>String(t+1)).map(e=>(0,v.jsx)(j.Button,{small:!0,kind:"secondary",label:`${(0,c.tableNumbers)(e)}`,onPress:()=>{U(!1),r(t.id,'table',e)}},e))}),(0,v.jsx)(j.Muted,{children:"Orders go straight to the kitchen. Card payments: not set up yet. Pay at the till as usual."})]}):null]})}},781,[837,5,840,841,842,845,848,849,854,808,804,30,122,263,127,829,830,813,814,816,815,819,821,855,806,856,852,857,858,859,860,836,24]);
|
| 2 |
+
__d(function(g,_r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}});var e,n=_r(d[0]),t=_r(d[1]),s=(e=t)&&e.__esModule?e:{default:e},r=_r(d[2]),o=_r(d[3]),u=_r(d[4]),l=_r(d[5]),c=_r(d[6]),h=_r(d[7]),j=_r(d[8]),x=_r(d[9]),b=_r(d[10]);function f(){const e=j.VENUE_RID,t=x.queuedVenues[e],f=(0,h.useRestaurant)(e)??(0,x.queuedRestaurant)(e),[p,k]=(0,n.useState)(!1),y=f.kitchenSessionsByDay;return(0,b.jsxs)(r.Screen,{title:t.name,back:!1,children:[(0,b.jsx)(o.RestaurantHero,{rid:e,size:240}),p?(0,b.jsx)(l.NativeRequestSetup,{rid:e,kind:"table",sessionHours:y,onClose:()=>k(!1)}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(r.Button,{testID:`${e}-book-table`,label:"Book a table",onPress:()=>k(!0)}),t.phone?(0,b.jsx)(r.Button,{kind:"secondary",label:`Call ${t.phone}`,onPress:()=>{s.default.openURL('tel:'+t.phone.replace(/[^0-9+]/g,''))}}):null,(0,b.jsx)(r.Muted,{children:"Send a table request for this venue\u2019s managers to confirm. This is not an instant booking. No deposit or payment is taken. No emails or texts are sent by this app."}),(0,b.jsxs)(r.Card,{children:[(0,b.jsx)(r.H2,{children:"Kitchen and venue hours"}),(0,b.jsx)(r.T,{children:t.hours.note})]}),t.clockArea.on?(0,b.jsx)(u.FindPub,{rid:e}):(0,b.jsxs)(r.Muted,{children:["Find us: ",t.address,". Precise map location to confirm."]}),(0,b.jsx)(c.QueuedMenus,{menu:t.menu,context:t.menuServiceContext,allergens:t.allergenCaveat}),(0,b.jsxs)(r.Banner,{kind:"warn",title:"To confirm",children:[t.gatesToConfirm.join(', '),"."]}),(0,b.jsx)(r.Muted,{children:"Ordering, takeaway, delivery and loyalty: to set up. Deposits are blank and off."})]})]})}},837,[30,239,813,861,862,838,839,819,5,6,24]);
|
| 3 |
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.NativeRequestSetup=function(l){const[h,p]=(0,u.useState)(null);return(0,u.useEffect)(()=>{let u=!0;p(null);const s=(0,t.isQueuedVenue)(l.rid),o=s?'queued_venue_request_setup_ready':'kirkton'===l.rid?'kirkton_request_setup_ready':'abbotsford_request_setup_ready';return(0,n.getSupabase)().rpc(o,s?{p_slug:(0,t.queuedDatabaseSlug)(l.rid)}:void 0).then(({data:t,error:n})=>{u&&p(!n&&!0===t)},()=>{u&&p(!1)}),()=>{u=!1}},[l.rid,l.kind]),!0===h?(0,c.jsx)(o.VenueRequestForm,{...l}):(0,c.jsxs)(s.Card,{children:[(0,c.jsx)(s.H2,{children:null===h?'Checking booking setup\u2026':'Manager setup needed'}),(0,c.jsx)(s.Muted,{children:null===h?'Checking whether requests are ready.':(0,t.isQueuedVenue)(l.rid)?'An authorised manager must complete setup and confirm current kitchen hours before requests can be sent.':'kirkton'===l.rid?'An authorised manager must complete setup and confirm current kitchen hours before table requests can be sent. Contact details are to confirm.':'An authorised hotel manager must complete setup before requests can be sent.'}),(0,c.jsx)(s.Button,{kind:"secondary",label:"Back to Customer home",onPress:l.onClose})]})};var t=r(d[0]),u=r(d[1]),n=r(d[2]),s=r(d[3]),o=r(d[4]),c=r(d[5])},838,[6,30,863,813,864,24]);
|
| 4 |
+
__d(function(g,r,_i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.QueuedMenus=function({menu:c,context:o,allergens:a}){const u=c,f=(0,n.useMemo)(()=>t(c),[c]),[p,b]=(0,n.useState)(null);return(0,s.jsxs)(i.Card,{children:[(0,s.jsx)(i.H2,{children:"Published menus"}),(0,s.jsx)(i.Banner,{kind:"warn",title:"Menu \u2014 to confirm",children:"Published reference only. Current prices, availability and allergens need confirmation. Items cannot be ordered here."}),o?(0,s.jsx)(i.Muted,{children:o}):null,a?(0,s.jsx)(i.Muted,{children:a}):(0,s.jsx)(i.Muted,{children:"Ask the restaurant about every allergy. Published dietary labels are not an allergen guarantee."}),u.offers?.map((n,t)=>(0,s.jsxs)(i.Muted,{children:["Published offer \u2014 ",n.name,'number'==typeof n.priceGbp?` \xb7 \xa3${n.priceGbp.toFixed(2)}`:'',": ",n.when||'Terms to confirm',". To confirm."]},'offer'+t)),u.buffetSessionPrices?.sessions?.map((n,t)=>(0,s.jsxs)(i.Muted,{children:[n.label,": \xa3",n.price.toFixed(2)," \xb7 to confirm"]},'session'+t)),u.buffetSessionPrices?.kids?(0,s.jsxs)(i.Muted,{children:["Published children\u2019s prices \u2014 ",u.buffetSessionPrices.kids,". To confirm."]}):null,f.map((n,t)=>(0,s.jsx)(i.Button,{kind:"secondary",label:n.name+(p===t?' \xb7 selected':''),onPress:()=>b(p===t?null:t)},t)),null!==p?f[p]?.items.map((n,t)=>(0,s.jsxs)(i.Card,{children:[(0,s.jsx)(i.T,{weight:"bold",children:n.name||n.label||'Published item'}),(0,s.jsx)(i.T,{children:l(n)}),n.description||n.desc?(0,s.jsx)(i.Muted,{children:n.description||n.desc}):null,n.options?.map((n,t)=>(0,s.jsxs)(i.Muted,{children:[n.name||n.label,": ",l(n)]},t))]},t)):null]})};var n=r(d[0]),i=r(d[1]),s=r(d[2]);function t(n,i=""){if(Array.isArray(n))return n.flatMap(n=>t(n,i));if(!n||'object'!=typeof n)return[];const s=n,l='string'==typeof s.name?s.name:'string'==typeof s.label?s.label:i;return(Array.isArray(s.items)?[{name:[i,l].filter((n,i,s)=>n&&s.indexOf(n)===i).join(' \xb7 ')||'Published menu',items:s.items}]:[]).concat(Object.entries(s).filter(([n])=>'items'!==n&&'options'!==n).flatMap(([,n])=>t(n,l||i)))}const l=n=>'included_in_buffet'===n.priceType?'Included in buffet \xb7 session price to confirm':n.priceLabel||('number'==typeof(n.priceGbp??n.price)?`\xa3${(n.priceGbp??n.price).toFixed(2)}`:'Price to confirm')},839,[30,813,24]);
|
| 5 |
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.HotelRequestGate=function({rid:e,hotel:l,children:c}){const[h,f]=(0,t.useState)(!1);return l?.enabled?(0,u.jsxs)(o.default,{style:{flex:1},children:[c,(0,u.jsx)(o.default,{style:{padding:12},children:(0,u.jsx)(s.Button,{label:"Book a room",onPress:()=>f(!0)})}),(0,u.jsx)(s.Sheet,{visible:h,onClose:()=>f(!1),title:"Room request",children:(0,u.jsx)(n.VenueRequestForm,{rid:e,kind:"room",hotel:l,onClose:()=>f(!1)})})]}):(0,u.jsx)(u.Fragment,{children:c})};var e,t=r(d[0]),l=r(d[1]),o=(e=l)&&e.__esModule?e:{default:e},s=r(d[2]),n=r(d[3]),u=r(d[4])},840,[30,127,813,864,24]);
|
| 6 |
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return x}});var e,n=r(d[0]),s=r(d[1]),t=(e=s)&&e.__esModule?e:{default:e},o=r(d[2]),l=r(d[3]),u=r(d[4]),c=r(d[5]),h=r(d[6]),b=r(d[7]),j=r(d[8]);function x(){const[e,s]=(0,n.useState)(!1),[x,p]=(0,n.useState)(null);return(0,n.useEffect)(()=>{if(!e)return;let n=!0;return p(null),(0,o.getSupabase)().rpc('greenside_request_setup_ready').then(({data:e,error:s})=>{n&&p(!s&&!0===e)},()=>{n&&p(!1)}),()=>{n=!1}},[e]),(0,j.jsxs)(l.Screen,{title:b.GREENSIDE_RESTAURANT.name,back:!1,children:[(0,j.jsx)(u.RestaurantHero,{rid:"greenside",size:240}),e?!0===x?(0,j.jsx)(h.VenueRequestForm,{rid:"greenside",kind:"table",onClose:()=>s(!1)}):(0,j.jsxs)(l.Card,{children:[(0,j.jsx)(l.H2,{children:null===x?'Checking booking setup\u2026':'Manager setup needed'}),(0,j.jsx)(l.Muted,{children:null===x?'Checking whether table requests are ready.':'An authorised manager must complete setup before table requests can be sent. Please call 01655 889685.'}),(0,j.jsx)(l.Button,{label:"Call 01655 889685",kind:"secondary",onPress:()=>{t.default.openURL(b.GREENSIDE_BOOKING_PHONE)}}),(0,j.jsx)(l.Button,{label:"Back to Customer home",kind:"secondary",onPress:()=>s(!1)})]}):(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(l.T,{center:!0,children:"Bar, restaurant and wood-fired pizza"}),(0,j.jsxs)(l.Row,{wrap:!0,children:[(0,j.jsx)(l.Button,{testID:"greenside-book-table",label:"Book a table",onPress:()=>s(!0)}),(0,j.jsx)(l.Button,{testID:"greenside-book-phone",kind:"secondary",label:"Call 01655 889685",onPress:()=>{t.default.openURL(b.GREENSIDE_BOOKING_PHONE)}})]}),(0,j.jsx)(l.Muted,{children:"Send a table request for a Greenside manager to confirm. This is not an instant booking. No deposit, payment, email or text is taken or sent by this app."}),(0,j.jsxs)(l.Card,{children:[(0,j.jsx)(l.H2,{children:"Kitchen hours"}),(0,j.jsx)(l.T,{children:"Wednesday, Thursday and Sunday: 10:00\u201320:00"}),(0,j.jsx)(l.T,{children:"Friday and Saturday: 10:00\u201321:00"}),(0,j.jsx)(l.T,{children:"Closed Monday and Tuesday"}),(0,j.jsx)(l.H2,{children:"Venue hours"}),(0,j.jsx)(l.T,{children:"Wednesday and Thursday: 10:00\u201323:00"}),(0,j.jsx)(l.T,{children:"Friday to Sunday: 10:00\u201300:00"}),(0,j.jsx)(l.T,{children:"Cash only"})]}),(0,j.jsx)(c.FindPub,{rid:"greenside"}),(0,j.jsx)(l.Banner,{kind:"warn",title:"Menus \u2014 unconfirmed",children:"The published menus, prices, availability and allergens need confirmation. Ask the restaurant about every allergy. No menu items are available to order here."}),(0,j.jsx)(l.Muted,{children:"Deposit policy needs confirmation. Deposits are off. The public email address needs confirmation."}),(0,j.jsx)(l.Button,{kind:"secondary",label:"View published menus on our website",onPress:()=>{t.default.openURL('https://thegreensiderestaurant.co.uk/menus/')}})]})]})}},841,[30,239,863,813,861,862,864,4,24]);
|
| 7 |
+
__d(function(g,r,i,a,_m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}});var n=r(d[0]),s=r(d[1]),t=e(r(d[2])),l=e(r(d[3])),o=r(d[4]),c=r(d[5]),u=r(d[6]),h=r(d[7]),m=r(d[8]),j=r(d[9]),x=r(d[10]);function f(){const[e,f]=(0,s.useState)(!1),p=h.KIRKMICHAEL_SAMPLE_MENU.menus.find(e=>'main-menu'===e.id);return e?(0,x.jsx)(o.Screen,{title:u.KIRKMICHAEL_RESTAURANT.name,back:!1,children:(0,x.jsx)(m.VenueRequestForm,{rid:"kirkmichael",kind:"table",onClose:()=>f(!1)})}):(0,x.jsxs)(o.Screen,{title:u.KIRKMICHAEL_RESTAURANT.name,back:!1,children:[(0,x.jsx)(c.RestaurantHero,{rid:"kirkmichael",size:180}),(0,x.jsx)(o.T,{center:!0,children:u.KIRKMICHAEL_RESTAURANT.tagline}),(0,x.jsxs)(o.Row,{wrap:!0,children:[(0,x.jsx)(o.Button,{testID:"kirkmichael-book",label:"Book a table",onPress:()=>f(!0)}),(0,x.jsx)(o.Button,{kind:"secondary",label:"Call 01655 750 200",onPress:()=>{t.default.openURL('tel:01655750200')}})]}),(0,x.jsx)(n.FindPub,{rid:"kirkmichael"}),(0,x.jsxs)(o.Card,{children:[(0,x.jsx)(o.H2,{children:"Opening hours"}),(0,x.jsx)(o.T,{children:"Monday to Wednesday: closed"}),(0,x.jsx)(o.T,{children:"Thursday to Sunday: 13:00\u201322:30"}),(0,x.jsx)(o.Muted,{children:u.KIRKMICHAEL_RESTAURANT.hoursNote}),(0,x.jsx)(o.T,{children:u.KIRKMICHAEL_RESTAURANT.address})]}),(0,x.jsxs)(o.Card,{children:[(0,x.jsx)(o.H2,{children:"Contacts"}),u.KIRKMICHAEL_CONTACTS.map(e=>(0,x.jsxs)(l.default,{style:{gap:2,marginBottom:8},children:[(0,x.jsxs)(o.T,{weight:"semibold",children:[e.name," \xb7 ",e.job]}),(0,x.jsxs)(o.Muted,{children:[e.email||'Email via enquiries@ only',e.phone?` \xb7 ${e.phone}`:'']})]},e.name)),(0,x.jsx)(o.Muted,{children:"Profile contacts only \u2014 no staff accounts or invite links have been created."})]}),(0,x.jsx)(o.Banner,{kind:"warn",title:"Deposits are off",children:"No deposit is taken in the app. Confirm directly with the venue if needed."}),(0,x.jsx)(o.Banner,{kind:"warn",title:"Current Sample Menu \u2014 unconfirmed",children:"Reference only, from the venue\u2019s Sample menus. Specials change regularly. Dishes, prices and availability are unconfirmed; ask the venue about every allergy. No allergen information has been signed off. Online ordering, takeaway and loyalty are not enabled."}),(0,x.jsx)(o.Muted,{children:"Bookings are taken in CoverCharge. Capacity about 56 covers; areas Restaurant, Bar and Private dining. Table plan to confirm \u2014 no sample tables."}),p?.categories.map(e=>(0,x.jsxs)(l.default,{style:{gap:10},children:[(0,x.jsx)(o.H2,{children:e.name}),e.items.filter(e=>null!==e.price).map(e=>(0,x.jsxs)(o.Card,{children:[(0,x.jsxs)(o.Row,{style:{justifyContent:'space-between',alignItems:'flex-start'},children:[(0,x.jsx)(o.T,{weight:"semibold",style:{flex:1},children:e.name}),(0,x.jsx)(o.T,{children:null===e.price?'Ask the venue':(0,j.gbp)(Math.round(100*e.price))})]}),e.description?(0,x.jsx)(o.Muted,{children:e.description}):null,(0,x.jsx)(o.Muted,{children:"Sample only \xb7 unconfirmed \xb7 allergens: ask the venue"})]},e.name))]},e.name)),(0,x.jsx)(o.Button,{kind:"secondary",label:"View all current menus on our website",onPress:()=>{t.default.openURL('https://www.kirkmichaelarms.co.uk/menus')}})]})}},842,[862,30,239,127,813,861,12,843,864,816,24]);
|
| 8 |
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"KIRKMICHAEL_ANSWERS",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"KIRKMICHAEL_SAMPLE_MENU",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=e(r(d[1])),u=e(r(d[2]));const c=(0,t.cleanQuestionnaire)(n.default,'kirkmichael'),o=u.default},843,[865,866,844]);
|
| 9 |
+
__d(function(e,l,n,i,r,a,p){r.exports={currency:"GBP",source:"Live site https://www.kirkmichaelarms.co.uk/menus (RSC payload), scraped 2026-11-05",note:"Sample menus change with the specials board. Prices shown are as published on the live Sample menus. Older main-menu.php pub classics appear on third-party aggregators but the live /menus page currently shows these Sample menus \u2014 prefer live data; confirm with Justin/Gordon before seeding stock.",conflicts:["Aggregator/search listings still show an older pub main menu (Soup \xa35.25, Beef Lasagne \xa314.95, etc. from main-menu.php which currently 403s). Live /menus Sample menus differ (sharing plates + specials board). Marked as conflict \u2014 do not merge silently."],menus:[{id:"main-menu",name:"Sample Menu",setPrice:null,setPriceNote:null,categories:[{name:"Starters and sharing",items:[{name:"Khun Mai's Canteen Grilled Aubergine",description:null,price:8.95,priceType:"single",allergens:null},{name:"Langoustine \"Prawn Toast\"",description:null,price:11.5,priceType:"single",allergens:null},{name:"Loch Ryan Venison Empinadas",description:null,price:10.95,priceType:"single",allergens:null},{name:"BBQ Scotch Pork Neck-Moo Ping",description:null,price:14.95,priceType:"single",allergens:null},{name:"Scallop-Slow Roasted Pork Belly",description:null,price:16,priceType:"single",allergens:null},{name:"Gnocchi-Confit Sweetbread Ragu-Truffle-Mushrooms",description:null,price:14.95,priceType:"single",allergens:null}]},{name:"Main Courses on the specials board",items:[{name:"Slow Roasted Apple Orchard Tamworth Pork Belly",description:"Truffle Mash-Roasted Carrot-Spring Cabbage-Apple Puree",price:28,priceType:"single",allergens:null},{name:"Char Roasted Lamb Neck Fillet",description:"Autumn Cabbage, Boiled Potatoes, Roast Carrot, Red Wine Jus",price:38,priceType:"single",allergens:null},{name:"Fire Roasted Lochryan Venison Loin",description:"Celeriac Parsley Puree-Wild Leeks-Potato Terrine-Juniper Jus",price:39,priceType:"single",allergens:null},{name:"Butter Poached Lemon Sole Fillet",description:"Langoustines Tails-Pernod Chive Nage-Paris Mash-Truffle",price:38,priceType:"single",allergens:null},{name:"Grilled Tranche of Turbot",description:"Lemon Scented Monk's Beard-Pink Fir Apple Potatoes-Bearnaise",price:44,priceType:"single",allergens:null}]},{name:"Sample Specials Board",items:[{name:"Sample Specials Board",description:null,price:null,priceType:"single",allergens:null}]}]},{id:"menu-lunch",name:"Sample Lunch Menu",setPrice:null,setPriceNote:null,categories:[{name:"Starters and sharing",items:[{name:"Khun Mai's Canteen Grilled Aubergine",description:null,price:8.95,priceType:"single",allergens:null},{name:"Langoustine \"Prawn Toast\"",description:null,price:11.5,priceType:"single",allergens:null},{name:"Loch Ryan Venison Empinadas",description:null,price:10.95,priceType:"single",allergens:null},{name:"BBQ Scotch Pork Neck-Moo Ping",description:null,price:14.95,priceType:"single",allergens:null},{name:"Scallop-Slow Roasted Pork Belly",description:null,price:16,priceType:"single",allergens:null},{name:"Gnocchi-Confit Sweetbread Ragu-Truffle-Mushrooms",description:null,price:14.95,priceType:"single",allergens:null}]},{name:"Mains",items:[{name:"Choose a Main Course From Our Specials Board",description:"Specials change daily/weekly",price:null,priceType:"single",allergens:null},{name:"Sample Specials Board",description:"Changes Daily/Weekly",price:null,priceType:"single",allergens:null}]},{name:"Girvan Mains Dry Aged Steaks",items:[{name:"A large selection of cuts and sizes daily",description:null,price:null,priceType:"single",allergens:null},{name:"Sample Specials",description:null,price:null,priceType:"single",allergens:null}]},{name:"Sides",items:[{name:"Triple Cooked Hand Cut Chips",description:null,price:6,priceType:"single",allergens:null}]}]},{id:"menu-bar-food",name:"Sample Sunday Lunch Menu",setPrice:null,setPriceNote:null,categories:[{name:"Starters and sharing",items:[{name:"Khun Mai's Canteen Grilled Aubergine",description:null,price:8.95,priceType:"single",allergens:null},{name:"Langoustine \"Prawn Toast\"",description:null,price:11.5,priceType:"single",allergens:null},{name:"Loch Ryan Venison Empinadas",description:null,price:10.95,priceType:"single",allergens:null},{name:"BBQ Scotch Pork Neck-Moo Ping",description:null,price:14.95,priceType:"single",allergens:null},{name:"Scallop-Slow Roasted Pork Belly",description:null,price:16,priceType:"single",allergens:null},{name:"Gnocchi-Confit Sweetbread Ragu-Truffle-Mushrooms",description:null,price:14.95,priceType:"single",allergens:null}]},{name:"Main Courses from the specials board",items:[{name:"Maple Glazed Bacon Loin",description:null,price:25,priceType:"single",allergens:null},{name:"Roasted Sirloin of Scotch Beef",description:"Beef Fat Roast Potatoes-Yorkshire Pudding-Spring Cabbage-Carrot-Peppercorn Sauce",price:25,priceType:"single",allergens:null},{name:"Lemon and Thyme Corn Fed Chicken",description:null,price:25,priceType:"single",allergens:null},{name:"Carvery Plate",description:"Beef, Bacon Loin, Corn Fed Chicken",price:31,priceType:"single",allergens:null},{name:"Fire Roasted Lochryan Venison Loin",description:"Celeriac Parsley Puree-Wild Leeks-Potato Terrine-Juniper Jus",price:39,priceType:"single",allergens:null},{name:"Butter Poached Lemon Sole Fillet",description:"Langoustines Tails-Pernod Chive Nage-Paris Mash-Truffle",price:38,priceType:"single",allergens:null},{name:"Grilled Tranche of Turbot",description:"Lemon Scented Monk's Beard-Pink Fir Apple Potatoes-Bearnaise",price:44,priceType:"single",allergens:null},{name:"Sample Specials",description:null,price:null,priceType:"single",allergens:null}]}]},{id:"menu-kids",name:"Sample Kids' Menu",setPrice:14.95,setPriceNote:"3 courses \u2014 \xa314.95",categories:[{name:"Starters",items:[{name:"Garlic Bread",description:null,price:null,priceType:"single",allergens:null},{name:"Cheesy Garlic Bread",description:null,price:null,priceType:null,allergens:null},{name:"Soup",description:null,price:null,priceType:null,allergens:null}]},{name:"Mains",items:[{name:"Hamburger",description:"Scotch beef burger with brioche bun, lettuce, tomato & french fries or steamed vegetables",price:null,priceType:null,allergens:null},{name:"Cheese Burger",description:"Scotch beef burger with cheddar cheese, brioche bun, lettuce, tomato & french fries or steamed vegetables",price:null,priceType:null,allergens:null},{name:"Chicken Goujons",description:"Crisp fried chicken strips with tortilla wraps, grated cheddar & french fries or steamed vegetables",price:null,priceType:null,allergens:null},{name:"Fish 'n Chips",description:"Battered haddock, lemon, tartare sauce & french fries or steamed vegetables",price:null,priceType:null,allergens:null},{name:"Mac 'n Cheese",description:"Creamy Macaroni with cheddar cheese sauce",price:null,priceType:null,allergens:null}]},{name:"Desserts",items:[{name:"Strawberry Ice Cream",description:null,price:null,priceType:null,allergens:null},{name:"Chocolate Ice Cream",description:null,price:null,priceType:null,allergens:null},{name:"Vanilla Ice Cream",description:null,price:null,priceType:null,allergens:null},{name:"Sticky Toffee Pudding",description:null,price:null,priceType:null,allergens:null}]}]},{id:"menu-whisky",name:"Sample Whisky Menu",setPrice:null,setPriceNote:null,categories:[{name:"Blended Whisky",items:[{name:"Whyte & Macay",description:null,price:null,priceType:"multiple",allergens:null},{name:"Johnnie Walker Black Label",description:null,price:null,priceType:"multiple",allergens:null},{name:"Canadian Club",description:null,price:null,priceType:"multiple",allergens:null}]},{name:"Bourbon & Whiskey Liqueurs",items:[{name:"Jack Daniel's Tennessee",description:null,price:null,priceType:"multiple",allergens:null},{name:"Southern Comfort",description:null,price:null,priceType:"multiple",allergens:null},{name:"Maker's Mark Classic",description:null,price:null,priceType:"multiple",allergens:null},{name:"Bulleit",description:null,price:null,priceType:"multiple",allergens:null},{name:"Bulleit Rye",description:null,price:null,priceType:"multiple",allergens:null},{name:"Jim Beam White Label",description:null,price:null,priceType:"multiple",allergens:null},{name:"Woodford Reserve",description:null,price:null,priceType:"multiple",allergens:null}]},{name:"Irish Whiskey",items:[{name:"Jameson",description:null,price:null,priceType:"multiple",allergens:null}]},{name:"Japanese Whisky",items:[{name:"Hibiki Harmony Masters Masters Select",description:null,price:null,priceType:"multiple",allergens:null}]},{name:"Single Malt - Speyside",items:[{name:"Glenfiddich 12 Year Old",description:null,price:null,priceType:"multiple",allergens:null},{name:"Glenrothes 12 Year Old",description:null,price:null,priceType:"multiple",allergens:null},{name:"Macallan 12 Year Old Double Cask",description:null,price:null,priceType:"multiple",allergens:null},{name:"Benrinnes Flora & Fauna 15",description:null,price:null,priceType:"multiple",allergens:null},{name:"Benrinnes 1997 Maltman 18 Year Old",description:null,price:null,priceType:"multiple",allergens:null},{name:"Balvenie 18 Year Old Pedro Ximenez",description:null,price:null,priceType:"multiple",allergens:null},{name:"Macallan 18 Year Old",description:null,price:null,priceType:"multiple",allergens:null},{name:"Aberlour Abunadh Cask Strength",description:null,price:null,priceType:"multiple",allergens:null},{name:"Mortlach 16yo",description:null,price:null,priceType:"multiple",allergens:null}]},{name:"Single Malt - Highland",items:[{name:"Dalmore 12 Year Old",description:null,price:null,priceType:"multiple",allergens:null},{name:"Oban 14 Year Old",description:null,price:null,priceType:"multiple",allergens:null},{name:"Glencadam 10",description:null,price:7,priceType:"single",allergens:null},{name:"Tomatin Legacy",description:null,price:6.75,priceType:"single",allergens:null},{name:"Tomatin 14",description:null,price:8,priceType:"single",allergens:null},{name:"Glendronach 15",description:null,price:9,priceType:"single",allergens:null},{name:"Glenfarclas 21",description:null,price:18.5,priceType:"single",allergens:null},{name:"Glendronach Sherry Cask 18",description:null,price:22.5,priceType:"single",allergens:null}]},{name:"Single Malt - Islay",items:[{name:"Bowmore 15 Year Old",description:null,price:null,priceType:"multiple",allergens:null},{name:"Lagavulin 16 Year Old",description:null,price:null,priceType:"multiple",allergens:null},{name:"Caol Ila 12 Year Old",description:null,price:null,priceType:"multiple",allergens:null},{name:"Caol Ila Moch",description:null,price:null,priceType:"multiple",allergens:null},{name:"Ardbeg 10",description:null,price:5.75,priceType:"single",allergens:null}]},{name:"Single Malt - Islands",items:[{name:"Highland Park 12 Year Old",description:null,price:null,priceType:"multiple",allergens:null},{name:"Talisker 10 Year Old",description:null,price:null,priceType:"multiple",allergens:null},{name:"Arran 10 Year Old",description:null,price:null,priceType:"multiple",allergens:null},{name:"Arran Port Cask Finish",description:null,price:null,priceType:"multiple",allergens:null},{name:"Machrie Moor Cask Strength",description:null,price:null,priceType:"multiple",allergens:null},{name:"Arran Amarone Cask",description:null,price:7.25,priceType:"single",allergens:null},{name:"Hearach Oloroso, Harris",description:null,price:9,priceType:"single",allergens:null},{name:"Ledaig 1974, Mull",description:null,price:22.5,priceType:"single",allergens:null}]},{name:"Single Malt - Lowlands",items:[{name:"Auchentoshan Three Wood",description:null,price:null,priceType:"multiple",allergens:null},{name:"Ailsa Bay",description:null,price:null,priceType:"multiple",allergens:null},{name:"Glenkinchie 12 Year Old",description:null,price:null,priceType:"multiple",allergens:null},{name:"Lochlea \"Our Barley\"",description:null,price:null,priceType:"multiple",allergens:null},{name:"Lochlea \"Fallow Edition\"",description:null,price:null,priceType:"multiple",allergens:null},{name:"Lochlea \"Ploughing Edition\"",description:null,price:null,priceType:"multiple",allergens:null},{name:"Lochlea \"5\"",description:null,price:null,priceType:"multiple",allergens:null},{name:"Lochlea \"Cask Strength 2nd Edition\"",description:null,price:null,priceType:"multiple",allergens:null},{name:"Bladnoch Spirit Drink",description:null,price:null,priceType:"multiple",allergens:null},{name:"Bladnoch Vinaya",description:null,price:null,priceType:"multiple",allergens:null},{name:"Bladnoch 22 Year Old Vintage Release",description:null,price:null,priceType:"multiple",allergens:null}]},{name:"Single Malt - Campbeltown",items:[{name:"Springbank 15 Year Old",description:null,price:null,priceType:"multiple",allergens:null},{name:"Springbank 18 Year Old",description:null,price:null,priceType:"multiple",allergens:null}]}]},{id:"menu-wine",name:"Sample Wine Menu",setPrice:null,setPriceNote:null,categories:[{name:"Champagne/Sparkling",items:[{name:"Greyfriars Cuvee Brut",description:"England",price:null,priceType:"multiple",allergens:null},{name:"Greyfriars Rose Reserve",description:"England",price:null,priceType:"multiple",allergens:null},{name:"Ruinart Blank De Blank",description:null,price:190,priceType:"single",allergens:null}]},{name:"Rose",items:[{name:"Sanziana, Pinot Noir, Rose",description:"Romania",price:null,priceType:"multiple",allergens:null},{name:"Art de Vivre Rose Organic",description:"Clay 'Amphora', France",price:null,priceType:"multiple",allergens:null}]},{name:"Orange",items:[{name:"Orange Gold White Organic",description:"Gerard Bertrand Organic, France",price:68,priceType:"single",allergens:null}]},{name:"White",items:[{name:"Les Lys De Leon - Sauvignon Blanc",description:"Loir, France",price:null,priceType:"multiple",allergens:null},{name:"Fetele Feteasca Regala Recas Cramele",description:"Bannat, Romania",price:null,priceType:"multiple",allergens:null},{name:"Adam Who, Riesling",description:"Eden Valley, Australia",price:null,priceType:"multiple",allergens:null},{name:"Rare Vineyards Marsanne-Viognier",description:"Languedoc France",price:null,priceType:"multiple",allergens:null},{name:"La Bergerie Chardonnay, Francois Carillon",description:"France",price:null,priceType:"multiple",allergens:null},{name:"Art de Vivre Blanc Organic",description:"Clay 'Amphora', France",price:null,priceType:"multiple",allergens:null},{name:"Acrobat Pinot Gris",description:"Oregon, U.S.A",price:null,priceType:"multiple",allergens:null},{name:"Dashwood Sauvignon Blanc",description:"Marlborough New Zealand",price:null,priceType:"multiple",allergens:null},{name:"Sancerre La Graveli\xe8re",description:"Joseph Mellot, France",price:null,priceType:"multiple",allergens:null},{name:"Petaluma Hanlin Hill Riesling",description:"Australia",price:null,priceType:"multiple",allergens:null},{name:"Louis Jadot Puligny Montrachet",description:"France",price:null,priceType:"multiple",allergens:null}]},{name:"Red",items:[{name:"Vinvua Organic Nero d'Avola DOC",description:"Sicilia Italy",price:null,priceType:"multiple",allergens:null},{name:"Les Lys De Leon, Pinot Grigio",description:"France",price:null,priceType:"multiple",allergens:null},{name:"Tres Priors Trepat Merlot",description:"Catalonia, Spain",price:null,priceType:"multiple",allergens:null},{name:"Alma Mora Malbec",description:"San Juan, Argentina",price:null,priceType:"multiple",allergens:null},{name:"Drifting Old Vine Zinfandel Lodi",description:"California, U.S.A",price:null,priceType:"multiple",allergens:null},{name:"Ch\xe2teau Caz\xe9au Maret Organic",description:"Bordeaux, France",price:null,priceType:"multiple",allergens:null},{name:"Inzuzo Red Blend",description:"Western Cape South Africa",price:null,priceType:"multiple",allergens:null},{name:"Art de Vivre LangueDOC Organic",description:"Clay 'Amphora', France",price:null,priceType:"multiple",allergens:null},{name:"Journeys End V4 Cabernet Sauvignon",description:"South Africa",price:null,priceType:"multiple",allergens:null},{name:"Mucchietto Primitivo",description:"Puglia, Italy",price:null,priceType:"multiple",allergens:null},{name:"Yalumba The Cigar Cabernet Sauvignon",description:null,price:null,priceType:"multiple",allergens:null},{name:"Black Angus Cabernet Sauvignon",description:"Australia",price:null,priceType:"multiple",allergens:null},{name:"Ch\xe2teauneuf du Pape 'Le Mioc\xe8ne'",description:"France",price:null,priceType:"multiple",allergens:null},{name:"Catena Zapata Malbec Argentino",description:null,price:null,priceType:"multiple",allergens:null},{name:"Amarone della Valpolicella Classico Reserva",description:"Italy",price:null,priceType:"multiple",allergens:null},{name:"Psi Bodegas Ribera Del Duero",description:"Spain",price:106,priceType:"single",allergens:null},{name:"Brunelo Di Mortlachino Ridolfi",description:"Italy",price:160,priceType:"single",allergens:null},{name:"Flor De Pingus, Domain De Pingus",description:"Spain",price:295,priceType:"single",allergens:null}]}]}],confirmed:!1,needsConfirmation:!0}},844,[]);
|
| 10 |
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return j}});var e,o=r(d[0]),t=r(d[1]),n=(e=t)&&e.__esModule?e:{default:e},l=r(d[2]),s=r(d[3]),c=r(d[4]),u=r(d[5]),h=r(d[6]),b=r(d[7]),f=r(d[8]);function j(){const[e,t]=(0,o.useState)(null);return(0,f.jsxs)(l.Screen,{title:"The Abbotsford Hotel",back:!1,children:[(0,f.jsx)(c.RestaurantHero,{rid:"abbotsford",size:240}),(0,f.jsx)(l.T,{center:!0,children:"Epicurious restaurant \xb7 The Copper Bar"}),(0,f.jsx)(l.T,{children:"14 Corsehill Road, Ayr KA7 2ST"}),(0,f.jsx)(l.T,{children:"Daily 10:00\u201320:30 \u2014 to confirm. Copper Bar hours to confirm."}),(0,f.jsxs)(l.Card,{children:[(0,f.jsx)(l.H2,{children:"Book with the hotel"}),(0,f.jsx)(l.T,{children:"Table and room requests go to the hotel managers to confirm. They are not instant bookings or a guarantee of availability. No payment or deposit."}),(0,f.jsx)(l.Button,{label:"Book a table",onPress:()=>t('table')}),(0,f.jsx)(l.Button,{label:"Book a room",onPress:()=>t('room')}),(0,f.jsx)(l.Muted,{children:"Rooms: Prices to confirm with the hotel. Room details and inclusions need confirmation."})]}),(0,f.jsx)(b.AbbotsfordMenus,{}),(0,f.jsx)(s.FindPub,{rid:"abbotsford"}),(0,f.jsxs)(l.Card,{children:[(0,f.jsx)(l.H2,{children:"Contact the hotel"}),(0,f.jsx)(l.Button,{kind:"secondary",label:"Call 01292 261506",onPress:()=>{n.default.openURL('tel:01292261506')}}),(0,f.jsx)(l.T,{children:"info@abbotsfordhotel.co.uk"})]}),(0,f.jsx)(l.Banner,{kind:"info",title:"Details to confirm",children:"Covers and table plan, deposit, Copper Bar hours, dog policy and allergens are still to confirm."}),(0,f.jsx)(l.Sheet,{visible:!!e,onClose:()=>t(null),title:'room'===e?'Book a room':'Book a table',children:e?(0,f.jsx)(u.NativeRequestSetup,{rid:"abbotsford",kind:e,hotel:h.ABBOTSFORD_HOTEL,allDayHours:h.ABBOTSFORD_HOURS,onClose:()=>t(null)}):null})]})}},845,[30,239,813,862,861,838,8,846,24]);
|
| 11 |
+
__d(function(g,r,i,a,_m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.AbbotsfordMenus=function(){const[e,t]=(0,n.useState)(null),h=o.find(n=>n.id===e);return(0,c.jsxs)(s.default,{testID:"abbotsford-menus",style:{gap:12},children:[(0,c.jsxs)(l.Card,{children:[(0,c.jsx)(l.H2,{children:"Menus"}),(0,c.jsx)(l.T,{children:"Published menus for reference. Confirm availability, current prices and allergens with the team. No ordering is available here."}),(0,c.jsx)(l.T,{children:"Allergens: please speak to staff. Published dietary marks are not a complete allergen check."}),o.map(n=>(0,c.jsx)(l.Button,{kind:n.id===e?'primary':'secondary',label:`${n.name}${n.id===e?' \xb7 selected':''}`,onPress:()=>t(n.id)},n.id))]}),h?(0,c.jsxs)(s.default,{style:{gap:12},children:[(0,c.jsx)(l.H2,{children:h.name}),h.when?(0,c.jsx)(l.Muted,{children:h.when}):null,h.note?(0,c.jsx)(l.T,{children:h.note}):null,h.categories.map((e,n)=>(0,c.jsxs)(s.default,{style:{gap:10},children:[(0,c.jsx)(l.H2,{children:e.name}),e.note?(0,c.jsx)(l.T,{children:e.note}):null,e.items.map((e,n)=>(0,c.jsx)(l.Card,{children:(0,c.jsxs)(s.default,{style:{gap:8},children:[(0,c.jsxs)(l.Row,{wrap:!0,children:[(0,c.jsx)(l.T,{size:18,weight:"semibold",style:{flex:1},children:e.name}),(0,c.jsx)(l.T,{children:'number'==typeof e.price?u(e.price):'Price to confirm'})]}),e.description?(0,c.jsx)(l.T,{children:e.description}):null,e.note?(0,c.jsx)(l.T,{children:e.note}):null,e.priceOptions?.length?(0,c.jsxs)(l.T,{children:["Published price options: ",e.priceOptions.map(u).join(' / ')]}):null,'number'==typeof e.sharedPrice?(0,c.jsxs)(l.T,{children:["Published group price: ",u(e.sharedPrice)," \u2014 confirm with staff"]}):null,e.dietary?.length?(0,c.jsxs)(l.Muted,{children:["Published marks: ",e.dietary.join(', '),". Ask staff about allergens."]}):null]})},n))]},n))]}):null]})};var n=r(d[0]),s=e(r(d[1])),l=r(d[2]),t=e(r(d[3])),c=r(d[4]);const o=t.default.menus,u=e=>new Intl.NumberFormat('en-GB',{style:'currency',currency:'GBP'}).format(e)},846,[30,127,813,847,24]);
|
| 12 |
+
__d(function(e,i,a,r,n,t,o){n.exports={currency:"GBP",note:"Parsed with pdftotext. Do not invent dishes. Menus subject to change. Dietary codes from a la carte: GF, GFA, V, VV.",menus:[{id:"breakfast",name:"Breakfast \u2014 Morning Edition",when:"Breakfast service; Morning Deals Monday\u2013Friday",sourcePdf:"raw/menu-breakfast.pdf",sourceUrl:"https://www.abbotsfordhotel.co.uk/wp-content/uploads/2026/10/Abbotsford-Breakfast-Menu-1.pdf",categories:[{name:"Morning Deals (Monday\u2013Friday)",items:[{name:"Rolling Report",description:"Morning roll with choice of 2 fillings: Ayrshire Bacon, Pork Link Sausage, Potato Scone or Egg, plus filter tea or coffee",price:6.5,dietary:[]},{name:"The Full Feature",description:"The Abbotsford Breakfast plus fruit juice and filter tea or coffee",price:15,dietary:[]}]},{name:"The Epicurious Express",items:[{name:"The Abbotsford Breakfast",description:"Ayrshire bacon, link sausage, black pudding, haggis, potato scone, beans, tomato, mushrooms and two eggs (poached, scrambled or fried) with white or wholemeal toasted bloomer",price:11.95,dietary:[]},{name:"Light Breakfast",description:"Ayrshire bacon, link sausage, beans, tomato and two eggs with white or wholemeal toasted bloomer",price:9.5,dietary:[]},{name:"Vegetarian Breakfast",description:"Potato scone, tomato, mushrooms, beans and two eggs with white or wholemeal toasted bloomer",price:9.5,dietary:["V"]},{name:"Breakfast Roll",description:"Choice of Ayrshire bacon, pork link sausage, potato scone or egg; 2 items 4.50 | 3 items 5.50",price:3.95,dietary:[]},{name:"Eggs Benedict",description:"Two poached eggs with Ayrshire bacon on toasted muffin, hollandaise",price:10.95,dietary:[]},{name:"Eggs Royale",description:"Two poached eggs with flaked smoked salmon on toasted muffin, hollandaise",price:11.45,dietary:[]},{name:"Smashed Avocado Benedict",description:"Smashed avocado guacamole, two poached eggs on toasted muffin, hollandaise",price:10.95,dietary:["V"]},{name:"Pancake Stack",description:"American-style pancakes with Biscoff, Nutella, chocolate sauce and fresh strawberries",price:9.95,dietary:["V"]},{name:"French Toast",description:"Two slices of bloomer eggy bread with Ayrshire bacon and maple syrup",price:10.95,dietary:[]},{name:"The Morning Stack",description:"American-style pancakes with Ayrshire bacon and maple syrup; add two eggs 2.00",price:9.95,dietary:[]},{name:"Granola Bowl",description:"Almond and raisin granola topped with berries, natural yoghurt and honey",price:8.95,dietary:["V"]},{name:"Brunch \xc0 La Tina",description:"Wholemeal toasted bloomer, smashed avocado, grilled Bonnet goats cheese, smoked salmon, fried free-range egg and balsamic glaze",price:12.5,dietary:[]}]},{name:"Little Legends Ledger (Kids)",items:[{name:"Kids Breakfast",description:"Pork link sausage, beans, potato scone, slice of toast",price:5.95,dietary:[]},{name:"Kids Pancakes",description:"American-style pancakes with syrup, Nutella or butter and jam; add banana or strawberries 1.50",price:5.95,dietary:[]}]},{name:"Extras Desk",items:[{name:"Black Pudding",description:null,price:1.5,dietary:[]},{name:"Pork Link Sausage",description:null,price:1.5,dietary:[]},{name:"Ayrshire Bacon (2)",description:null,price:1.5,dietary:[]},{name:"Smashed Avocado",description:null,price:2,dietary:[]},{name:"Haggis",description:null,price:1.5,dietary:[]},{name:"Mushrooms",description:null,price:1.5,dietary:[]},{name:"Beans",description:null,price:1,dietary:[]},{name:"Tomato",description:null,price:1,dietary:[]},{name:"Egg",description:null,price:1,dietary:[]},{name:"Potato Scone",description:null,price:1,dietary:[]},{name:"Bucket of Chips",description:null,price:4.25,dietary:[]},{name:"Toasted White or Wholemeal Bread",description:"Served with butter and preserve",price:4.5,dietary:[]}]},{name:"Treat Tales",items:[{name:"Scone with butter, jam and hot drink",description:"9am\u201312noon offer",price:4.5,dietary:[]},{name:"Scones, Traybakes and Cakes",description:"From 2.50, available all day",price:2.5,dietary:[],note:"Price 'from' as printed"}]},{name:"Coffee",items:[{name:"Latte",description:null,price:3.75,dietary:[]},{name:"Espresso",description:null,price:3.25,dietary:[]},{name:"Cappuccino",description:null,price:3.75,dietary:[]},{name:"Americano",description:null,price:3.5,dietary:[]},{name:"Double Espresso",description:null,price:3.75,dietary:[]},{name:"Macchiato",description:null,price:3.75,dietary:[]},{name:"Espresso Con Panna",description:null,price:3.75,dietary:[]},{name:"Flavour Shot",description:null,price:.75,dietary:[]},{name:"Extra Shot of Coffee",description:null,price:.75,dietary:[]}]},{name:"Tea and Hot Chocolate",items:[{name:"Breakfast Tea",description:null,price:3.5,dietary:[]},{name:"Camomile Tea",description:null,price:3.5,dietary:[]},{name:"Earl Grey Tea",description:null,price:3.5,dietary:[]},{name:"Green Tea",description:null,price:3.5,dietary:[]},{name:"Peppermint Tea",description:null,price:3.5,dietary:[]},{name:"Red Berry Tea",description:null,price:3.5,dietary:[]},{name:"Lemon and Ginger Tea",description:null,price:3.5,dietary:[]},{name:"Hot Chocolate",description:null,price:3.95,dietary:[]},{name:"Luxury Hot Chocolate",description:"With cream and marshmallows",price:4.95,dietary:[]}]}]},{id:"alacarte",name:"\xc0 La Carte \u2014 Epicurious",when:"Sept 2026 menu; sandwiches 12noon\u20134pm",sourcePdf:"raw/menu-alacarte.pdf",sourceUrl:"https://www.abbotsfordhotel.co.uk/wp-content/uploads/2026/09/Sept-2026-NEW-Menu-Abbotsford-A-La-Carte.pdf",categories:[{name:"The Birch Wine Board",items:[{name:"The Birch Wine Board",description:"Charred halloumi, roasted cauliflower, cured meats, chicken liver parfait, chutney, Scottish cheese, pickled onions, gherkins and fresh seasonal vegetables",price:19.95,dietary:[]}]},{name:"Starters",items:[{name:"Haggis Scotch Egg",description:"Smoked turnip veloute, Arran mustard and crispy leeks",price:10.95,dietary:[]},{name:"Traditional Cullen Skink",description:"With crusty ciabatta bread",price:10.95,dietary:["GFA"]},{name:"Chef's Soup of the Day",description:"With freshly baked bread",price:6.5,dietary:["GFA","VV"]},{name:"Moules Marini\xe8re",description:"Shetland mussels, white wine and garlic cream with garlic ciabatta",price:12.95,dietary:["GFA"]},{name:"Chicken Liver and Brandy Parfait",description:"Red onion chutney and bannocks",price:9.5,dietary:["GFA"]},{name:"Sweet Chilli and Soy Glazed Pork Belly Bites",description:"Chilli mint yogurt and pickled cucumber ribbons",price:10.5,dietary:["GFA"]},{name:"Fruit Platter",description:"Duo of melon, seasonal berries, passionfruit sorbet and raspberry coulis",price:9.95,dietary:["GF","VV"]}]},{name:"Sandwiches",note:"Served 12noon\u20134pm. White or malted bloomer with tortilla chips, house salad and coleslaw. GF on request. Add soup 3.95 | chips 4.50",items:[{name:"Tuna Mayonnaise",description:null,price:10.95,dietary:[]},{name:"Ploughman's",description:null,price:11.95,dietary:[]},{name:"Coronation Chicken",description:null,price:10.95,dietary:[]},{name:"Chicken and Bacon Club",description:null,price:12.95,dietary:[]}]},{name:"Burgers",note:"Toasted brioche, house slaw and hand-cut chips",items:[{name:"6oz Homemade Abbotsford Burger",description:"Burger sauce, pickles, tomato and baby gem; add cheese/blue cheese/bacon 1.50",price:16.95,dietary:[]},{name:"Abbotsford Spiced Buttermilk Chicken Burger",description:"BBQ pulled beef, garlic mayonnaise, pickles, tomato and baby gem",price:18.95,dietary:[]},{name:"The Burns Burger",description:"6oz Scotch beef, haggis, tattie scone, smoked Arran cheddar and peppercorn sauce",price:18.95,dietary:[]},{name:"Moving Mountains Burger",description:"Plant-based patty, lettuce, tomato, red onion and vegan garlic mayonnaise",price:16.95,dietary:["VV"]}]},{name:"From the Grill",note:"Flat-cap mushrooms, grilled plum tomato, fries and onion rings (GFA). Sauce 2.50: peppercorn | garlic butter | red wine jus",items:[{name:"8 oz Fillet Steak",description:null,price:38.95,dietary:["GFA"]},{name:"10 oz Sirloin Steak",description:null,price:35.95,dietary:["GFA"]}]},{name:"Mains",items:[{name:"Cajun Spiced Breast of Chicken",description:"Rice pilaf, proven\xe7al vegetables, coconut curry cream and spiced onions",price:null,dietary:["GFA"],note:"Printed 14.50 // 18.50",priceOptions:[14.5,18.5]},{name:"Confit Pork Belly",description:"Chorizo creamed potatoes, black pudding bon bons, beer-braised onion and mustard jus",price:21.95,dietary:[]},{name:"Individual Steak and Ale Pie",description:"Creamed potatoes, roasted carrot, tenderstem broccoli and red wine jus",price:19.95,dietary:[]},{name:"Trio of Seafood",description:"Chef's catch of the day, potato fondant, buttered greens and white wine chive cream",price:23.95,dietary:["GF"]},{name:"Beer Battered Haddock",description:"Pickled onion, mushy peas, tartare, fries and lemon",price:null,dietary:["GFA"],note:"Printed 13.45 // 18.50",priceOptions:[13.45,18.5]},{name:"Wild Mushroom Stroganoff",description:"Pilaf rice and tempura gherkins",price:null,dietary:["V"],note:"Printed 13.95 // 17.95",priceOptions:[13.95,17.95]}]},{name:"Sides",note:"All sides vegetarian; ask for GF",items:[{name:"Onion Rings",description:null,price:4,dietary:["V"]},{name:"House Slaw",description:null,price:4,dietary:["V"]},{name:"Creamed Potatoes",description:null,price:5,dietary:["V"]},{name:"House Salad",description:null,price:4,dietary:["V"]},{name:"Hand Cut Chips",description:null,price:4.5,dietary:["V"]},{name:"Sweet Potato Wedges",description:null,price:5.25,dietary:["V"]},{name:"Chilli and Parmesan Hand Cut Chips",description:null,price:5.25,dietary:["V"]}]},{name:"Desserts",items:[{name:"Sticky Toffee Pudding",description:"Butterscotch sauce and vanilla ice cream",price:8.95,dietary:["V","GF"]},{name:"Passionfruit Martini Panna Cotta",description:"Passionfruit syrup and prosecco sorbet",price:9.95,dietary:["GF"]},{name:"Warm Orange Scented Rice Pudding",description:"Ginger biscuit crumb",price:8.95,dietary:["VV","GF"]},{name:"Cheesecake of the Day",description:"With vanilla ice cream and fresh fruit garnish",price:9.95,dietary:["V"]},{name:"Traditional Tiramisu",description:"Coffee sponge fingers, amaretto mascarpone and dark chocolate powder",price:9.95,dietary:["V"]},{name:"Trio of Scottish Cheeses",description:"Cheese, fig chutney, biscuits and grapes",price:10.95,dietary:["GFA"]}]},{name:"Notes",items:[{name:"Chef's Daily Specials",description:"Ask your server",price:null,dietary:[]},{name:"The Ultimate Sunday Roast",description:"Every Sunday until stock runs out",price:null,dietary:[]}]}]},{id:"kids",name:"Kids \u2014 Abby's Favourites",when:null,sourcePdf:"raw/menu-kids.pdf",sourceUrl:"https://www.abbotsfordhotel.co.uk/wp-content/uploads/2026/02/NEW-Menu-Abbotsford-Kids-Menu.pdf",categories:[{name:"Wee Lamb \xb7 Starters (\xa33)",items:[{name:"Garlic Bread",description:null,price:3,dietary:[]},{name:"Soup of the Day",description:null,price:3,dietary:[]}]},{name:"Rowan Pony \xb7 Mains (\xa37)",note:"Add bacon \xa31 | add cheese \xa31",items:[{name:"Chicken Goujons and Chips",description:null,price:7,dietary:[]},{name:"Cheesy Pasta and Garlic Bread",description:null,price:7,dietary:[]},{name:"Haddock and Chips",description:null,price:7,dietary:[]},{name:"3oz Beef Burger and Chips",description:null,price:7,dietary:[]}]},{name:"Scottie Dog \xb7 Treats (\xa33)",items:[{name:"Sticky Toffee Pudding",description:null,price:3,dietary:[]},{name:"Two Scoops of Ice Cream",description:null,price:3,dietary:[]}]}]},{id:"taco-tuesday",name:"Taco Tuesday",when:"Tuesdays",sourcePdf:"raw/menu-taco-tuesday.pdf",sourceUrl:"https://www.abbotsfordhotel.co.uk/wp-content/uploads/2026/08/Taco-Tuesday-Menu-The-Abbotsford.pdf",categories:[{name:"Tacos",note:"Salad, pickled red onion, pico de gallo, fresh lime. Single \xa35 / Double \xa310",items:[{name:"Crispy Fried Chicken",description:"Sriracha mayo",price:null,dietary:[],note:"Single 5.00 / Double 10.00",priceOptions:[5,10]},{name:"Beef Birria and Cheese",description:"Birria dip",price:null,dietary:[],note:"Single 5.00 / Double 10.00",priceOptions:[5,10]},{name:"Breaded Haddock",description:"Tartare sauce",price:null,dietary:[],note:"Single 5.00 / Double 10.00",priceOptions:[5,10]},{name:"Sweet Potato and Chickpea Falafel",description:"Sriracha mayo",price:null,dietary:["V"],note:"Single 5.00 / Double 10.00",priceOptions:[5,10]}]},{name:"Sides and Extras",items:[{name:"Nachos",description:"Guacamole, pico de gallo, sour cream and cheese",price:5,dietary:[]},{name:"Onion Rings",description:null,price:4,dietary:[]},{name:"Fries",description:null,price:4,dietary:[]},{name:"House Slaw",description:null,price:4,dietary:[]},{name:"Mexican Black Bean and Rice",description:null,price:4,dietary:[]},{name:"Chargrilled Cob",description:null,price:null,dietary:[],note:"Single \xa32 / Double \xa34",priceOptions:[2,4]}]},{name:"Cocktails",items:[{name:"Classic Margarita",description:"Or Spicy | Mango | Passionfruit",price:9.95,dietary:[]}]}]},{id:"bar-bites",name:"Bar Bites",when:"The Copper Bar",sourcePdf:"raw/menu-bar-bites.pdf",sourceUrl:"https://www.abbotsfordhotel.co.uk/wp-content/uploads/2026/08/The-Abbotsford-Bar-Bites.pdf",categories:[{name:"Small Plates (\xa35)",items:[{name:"Ham Hough, Confit Chicken and Apricot Croquette",description:null,price:5,dietary:[]},{name:"Sriracha and Maple Glazed Chicken Goujons",description:null,price:5,dietary:[]},{name:"Goats Cheese, Caramelised Onion and Truffle Oil Arancini",description:null,price:5,dietary:["V"]},{name:"Homemade Sausage Roll",description:"Whole grain mustard, Arran cheddar, apple and walnut ketchup",price:5,dietary:[]}]},{name:"Loaded Fries (\xa38.95)",items:[{name:"Cajun Chicken Loaded Fries",description:"Cajun fries, diced cajun chicken, peppers, onions, cheddar and sriracha mayo",price:8.95,dietary:[]},{name:"Locally Caught Haggis Loaded Fries",description:"Seasoned fries, haggis, cheese and peppercorn sauce",price:8.95,dietary:[]}]},{name:"Sharing Plates",items:[{name:"Nice to Meat You",description:"Cold meats, olives and sun-dried tomatoes",price:10,dietary:[]},{name:"Say Cheese",description:"Scottish cheeses, quince jelly, chutney and oatcakes",price:10,dietary:[]},{name:"Sharing is Caring",description:"Nice to Meat You and Say Cheese combo",price:18,dietary:[]}]}]},{id:"drinks",name:"Drinks \u2014 Social Pours",when:null,sourcePdf:"raw/menu-drinks.pdf",sourceUrl:"https://www.abbotsfordhotel.co.uk/wp-content/uploads/2026/08/The-Abbotsford-Drinks-Menu.pdf",note:"Some cocktail groups share one printed price on the PDF.",categories:[{name:"The Classics",note:"Shared price line 9.95",items:[{name:"Daiquiri",description:"White rum, lime and sugar syrup; Strawberry, Passionfruit or Mango",price:null,dietary:[],sharedPrice:9.95},{name:"Old Fashioned",description:"Bourbon, sugar syrup and orange bitters",price:null,dietary:[],sharedPrice:9.95},{name:"Whisky Sour",description:"Whisky, lemon, sugar syrup, Angostura and egg white",price:null,dietary:[],sharedPrice:9.95},{name:"Margarita",description:"Tequila, lime, sugar syrup and triple sec",price:null,dietary:[],sharedPrice:9.95},{name:"Cosmopolitan",description:"Heroes vodka, cranberry, lime, triple sec and sugar syrup",price:9.95,dietary:[]}]},{name:"Martini Style",items:[{name:"Pornstar Martini",description:"Vanilla vodka, passionfruit, Passoa and pineapple",price:null,dietary:[],sharedPrice:10.95},{name:"French Martini",description:"Heroes vodka, pineapple and Chambord",price:null,dietary:[],sharedPrice:10.95},{name:"Espresso Martini",description:"Heroes vodka, coffee liqueur, sugar syrup and espresso",price:10.95,dietary:[]}]},{name:"That's the Spritz",note:"Shared price 9.95",items:[{name:"Aperol Spritz",description:"Aperol, prosecco and soda",price:null,dietary:[],sharedPrice:9.95},{name:"Hugo Spritz",description:"Elderflower liqueur, prosecco and soda",price:null,dietary:[],sharedPrice:9.95},{name:"Limoncello Spritz",description:"Limoncello, prosecco and lemonade",price:null,dietary:[],sharedPrice:9.95},{name:"Pink Gin Spritz",description:"Pink gin, prosecco and lemonade",price:9.95,dietary:[]}]},{name:"Hangover Free (Mocktails)",note:"Shared price 6.95",items:[{name:"Abbotsford Sunset",description:"Tanqueray Flor De Sevilla 0%, orange, lemon, grenadine and lemonade",price:null,dietary:[],sharedPrice:6.95},{name:"Mixed Berry Fizz",description:"Whitley Neill Raspberry 0%, lemon and soda",price:null,dietary:[],sharedPrice:6.95},{name:"Not So Mojito",description:"Apple juice, lime, sugar syrup, mint and soda",price:6.95,dietary:[]}]},{name:"Wine by the Glass \u2014 White",items:[{name:"Berri Estates Chardonnay, South Eastern Australia",description:null,price:null,dietary:[],glass:{"175ml":6.5,"250ml":8.5}},{name:"Petal and Stem Sauvignon Blanc, Marlborough, New Zealand",description:null,price:null,dietary:[],glass:{"175ml":7.5,"250ml":10}},{name:"Grave del Friuli Pinot Grigio, Fantinel, Italy",description:null,price:null,dietary:[],glass:{"175ml":7.5,"250ml":10}},{name:"Mas Puech Picpoul de Pinet, France",description:null,price:null,dietary:[],glass:{"175ml":7.5,"250ml":10}},{name:"Leiras Albarino, Rias Baixas, Spain",description:null,price:null,dietary:[],glass:{"175ml":9.95,"250ml":11.95}}]},{name:"Wine by the Glass \u2014 Rose",items:[{name:"La Maglia Rosa Pinot Grigio Blush, Pavia, Italy",description:null,price:null,dietary:[],glass:{"175ml":7.5,"250ml":10}},{name:"Whispering Hills Zinfandel Rose, California, USA",description:null,price:null,dietary:[],glass:{"175ml":6.5,"250ml":8.5}}]},{name:"Wine by the Glass \u2014 Red",items:[{name:"Berri Estates Shiraz, South Eastern Australia",description:null,price:null,dietary:[],glass:{"175ml":6.95,"250ml":8.95}},{name:"La Campagne Merlot, Pays d'Oc, France",description:null,price:null,dietary:[],glass:{"175ml":7.95,"250ml":10.5}},{name:"Fico Grande Sangiovese, Italy",description:null,price:null,dietary:[],glass:{"175ml":7.5,"250ml":10}},{name:"Alma Mora Malbec, San Juan, Argentina",description:null,price:null,dietary:[],glass:{"175ml":8.95,"250ml":10.95}}]},{name:"Cellar Table \u2014 White (bottle)",items:[{name:"Petal and Stem Sauvignon Blanc, Marlborough, New Zealand",description:null,price:29.95,dietary:[]},{name:"Berri Estates Chardonnay, South Eastern Australia",description:null,price:24.95,dietary:[]},{name:"Grave del Friuli Pinot Grigio, Fantinel, Italy",description:null,price:29.95,dietary:[]},{name:"Mas Puech Picpoul de Pinet, France",description:null,price:29.95,dietary:[]},{name:"Monte di Sarocco Gavi, Italy",description:null,price:34.95,dietary:[]},{name:"Leiras Albarino, Rias Baixas, Spain",description:null,price:35.95,dietary:[]},{name:"Chateau Ste Michelle Chardonnay, Washington State, USA",description:null,price:47.95,dietary:[]},{name:"Louis Jadot Macon-Villages, France",description:null,price:60,dietary:[]}]},{name:"Cellar Table \u2014 Red (bottle)",items:[{name:"Berri Estates Shiraz, South Eastern Australia",description:null,price:25.95,dietary:[]},{name:"La Campagne Merlot, Pays d'Oc, France",description:null,price:30.95,dietary:[]},{name:"Fico Grande Sangiovese, Italy",description:null,price:29.95,dietary:[]},{name:"Zensa Primitivo Salento, Italy",description:null,price:30.95,dietary:[]},{name:"Chateauneuf-du-Pape, France",description:null,price:74.95,dietary:[]},{name:"Louis Jadot Pinot Noir, France",description:null,price:42,dietary:[]},{name:"Vina Pomal Reserva Centenario, Spain",description:null,price:55,dietary:[]}]},{name:"Cellar Table \u2014 Rose (bottle)",items:[{name:"Coteaux Varois en Provence Rose, Estandon, France",description:null,price:55,dietary:[]},{name:"La Maglia Rosa Pinot Grigio Blush, Italy",description:null,price:29.95,dietary:[]},{name:"Whispering Hills Zinfandel, USA",description:null,price:24.95,dietary:[]}]},{name:"Sparkling and Champagne",items:[{name:"Oliver and Greg's Prosecco Brut, Italy",description:null,price:29.95,dietary:[],note:"200ml 8.95 | Bottle 29.95",glass:{"200ml":8.95}},{name:"Bottega Gold Prosecco Brut, Italy",description:null,price:40,dietary:[]},{name:"Veuve Clicquot Yellow Label, France",description:null,price:89,dietary:[]},{name:"Veuve Clicquot Rose, France",description:null,price:99,dietary:[]}]},{name:"Abbotsford Top Picks",items:[{name:"Sancerre, Domaine des Chaintres, France",description:null,price:70,dietary:[]},{name:"Peth Wetz Riesling, Germany",description:null,price:55,dietary:[]},{name:"Fico Grande Sangiovese, Italy",description:null,price:29.95,dietary:[]},{name:"Valpolicella Classico Superiore Ripasso, Italy",description:null,price:65,dietary:[]},{name:"Chateau Ste. Michelle Cabernet Sauvignon, USA",description:null,price:60,dietary:[]},{name:"Chateau Grand Jauga Sauternes, France",description:null,price:40,dietary:[],note:"Dessert wine"}]}]}]}},847,[]);
|
| 13 |
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return k}});var n=r(d[0]),t=r(d[1]),o=r(d[2]),s=r(d[3]),l=r(d[4]),c=r(d[5]),u=r(d[6]),h=r(d[7]);function k(){const[k,j]=(0,n.useState)(!1),p=(0,c.useRestaurant)('kirkton')??u.KIRKTON_RESTAURANT;return(0,h.jsxs)(t.Screen,{title:p.name,back:!1,children:[(0,h.jsx)(o.RestaurantHero,{rid:"kirkton",size:240}),(0,h.jsx)(t.T,{center:!0,children:"Bar and restaurant in Dalrymple"}),k?(0,h.jsx)(l.NativeRequestSetup,{rid:"kirkton",kind:"table",allDayHours:p.kitchenHours,onClose:()=>j(!1)}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(t.Card,{children:[(0,h.jsx)(t.H2,{children:"Book a table"}),(0,h.jsx)(t.Button,{testID:"kirkton-book-table",label:"Book a table",onPress:()=>j(!0)}),(0,h.jsx)(t.T,{children:"Send a table request for the venue managers to confirm once setup is complete. This is not an instant booking."}),(0,h.jsx)(t.Muted,{children:"No deposit, payment, email or text is taken or sent by this app."})]}),(0,h.jsxs)(t.Card,{children:[(0,h.jsx)(t.H2,{children:"Venue setup in progress"}),(0,h.jsx)(t.T,{children:"Contact phone: to confirm"}),(0,h.jsx)(t.T,{children:"Opening and kitchen hours: to confirm"}),(0,h.jsx)(t.T,{children:"Table plan and Covers: to confirm"}),(0,h.jsx)(t.T,{children:"Takeaway: to confirm"}),(0,h.jsx)(t.Muted,{children:"Table requests need an authorised manager and confirmed kitchen hours. Orders and payments are not enabled. Deposit policy needs confirmation; deposits are off."})]}),(0,h.jsx)(s.FindPub,{rid:"kirkton"}),(0,h.jsx)(t.Banner,{kind:"warn",title:"Menus \u2014 provisional and unconfirmed",children:"The available menu records are archived from 2019. They are not current prices, availability or allergen information. No menu items are available to order here."})]})]})}},848,[30,813,861,862,838,819,9,24]);
|
| 14 |
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}});var n=r(d[0]),t=r(d[1]),s=e(r(d[2])),o=e(r(d[3])),l=r(d[4]),c=r(d[5]),u=r(d[6]),h=r(d[7]),j=r(d[8]),b=r(d[9]);function f(){const[e,f]=(0,t.useState)(null);return e?(0,b.jsx)(l.Screen,{title:u.WILDINGS_RESTAURANT.name,back:!1,children:(0,b.jsx)(n.VenueRequestForm,{rid:"wildings",kind:e,hotel:u.WILDINGS_RESTAURANT.settings.hotel,onClose:()=>f(null)})}):(0,b.jsxs)(l.Screen,{title:u.WILDINGS_RESTAURANT.name,back:!1,children:[(0,b.jsx)(c.RestaurantHero,{rid:"wildings",size:240}),(0,b.jsx)(l.T,{center:!0,children:u.WILDINGS_RESTAURANT.tagline}),(0,b.jsxs)(o.default,{style:{gap:12},children:[(0,b.jsx)(l.Button,{testID:"wildings-book-table",label:"Book a table",onPress:()=>f('table')}),(0,b.jsx)(l.Button,{testID:"wildings-book-room",label:"Book a room",onPress:()=>f('room')})]}),(0,b.jsxs)(l.Row,{wrap:!0,children:[(0,b.jsx)(l.Button,{testID:"wildings-book-phone",kind:"secondary",label:"Call 01655 331 401",onPress:()=>{s.default.openURL(u.WILDINGS_BOOKING_PHONE)},style:{alignSelf:'auto'}}),(0,b.jsx)(l.Button,{testID:"wildings-book-email",kind:"secondary",label:"Email to book",onPress:()=>{s.default.openURL(u.WILDINGS_BOOKING_EMAIL)},style:{alignSelf:'auto'}})]}),(0,b.jsx)(o.default,{testID:"wildings-kitchen-hours",children:(0,b.jsxs)(l.Card,{children:[(0,b.jsx)(l.H2,{children:"Kitchen hours"}),(0,b.jsx)(l.T,{center:!0,children:"Lunch Monday to Saturday: 12:00\u201314:00"}),(0,b.jsx)(l.T,{center:!0,children:"Sunday lunch: 12:00\u201314:30"}),(0,b.jsx)(l.T,{center:!0,children:"Dinner every day: 18:00\u201321:00"}),(0,b.jsx)(l.Muted,{center:!0,children:"Closed between lunch and dinner. Bar hours to confirm."}),(0,b.jsx)(l.T,{center:!0,children:u.WILDINGS_RESTAURANT.address}),(0,b.jsx)(l.Button,{kind:"secondary",testID:"wildings-directions",label:"Find us \u2014 directions",accessibilityLabel:"Open directions to Wildings, Maidens, KA26 9NR",onPress:()=>{s.default.openURL('https://www.google.com/maps/dir/?api=1&destination='+encodeURIComponent(u.WILDINGS_RESTAURANT.address??u.WILDINGS_RESTAURANT.location))}})]})}),(0,b.jsx)(l.Banner,{kind:"warn",title:"Deposit policy \u2014 needs confirmation",children:"Deposits are off until the venue confirms its policy. Book directly by phone or email."}),(0,b.jsx)(l.Banner,{kind:"warn",title:"Menus \u2014 unconfirmed",children:"Reference only, from the venue\u2019s published menus collected 5 November 2026. Menus, prices and availability need confirmation. Ask the venue about every allergy: no allergen information is signed off."}),(0,b.jsx)(l.Muted,{center:!0,children:"Requests need confirmation from the hotel. Online ordering, takeaway and loyalty are not enabled here."}),h.WILDINGS_REFERENCE_MENU.menus.map(e=>(0,b.jsxs)(o.default,{style:{gap:10},children:[(0,b.jsx)(l.H2,{children:e.name}),e.setPrices?(0,b.jsxs)(l.T,{children:[Object.entries(e.setPrices).map(([e,n])=>`${e}: ${(0,j.gbp)(Math.round(100*Number(n)))}`).join(' \xb7 ')," \xb7 unconfirmed"]}):null,e.categories.map(e=>(0,b.jsxs)(l.Card,{children:[(0,b.jsx)(l.T,{weight:"semibold",children:e.name}),e.items.map(e=>(0,b.jsx)(l.Muted,{children:e.name},e.name)),(0,b.jsx)(l.Muted,{children:"Reference only \xb7 prices and allergens: ask the venue"})]},e.name))]},e.id)),(0,b.jsx)(l.Button,{kind:"secondary",label:"View published menus on our website",onPress:()=>{s.default.openURL('https://www.wildingshotel.com/team')}})]})}},849,[864,30,239,127,813,861,10,850,816,24]);
|
| 15 |
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"WILDINGS_ANSWERS",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"WILDINGS_REFERENCE_MENU",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=e(r(d[1])),u=e(r(d[2]));const o=(0,t.cleanQuestionnaire)(n.default,'wildings'),c=u.default},850,[865,867,851]);
|
| 16 |
+
__d(function(e,n,i,l,r,t,p){r.exports={currency:"GBP",source:"Official PDF menus linked from https://www.wildingshotel.com/team, downloaded 2026-11-05",note:"Lunch and dinner are set-price course menus; dish lines have no individual price, only supplements. Confirm with venue before seeding.",conflicts:["Lunch and vegetarian PDFs say 'Served From 12 Noon \u2013 2:00pm, 7 days'; website says Sunday lunch runs to 2.30pm. Not merged."],menus:[{id:"lunch",name:"Lunch Menu",when:"12 noon to 2pm",setPrices:{"2 courses":24,"3 courses":31},extraServings:3.95,categories:[{name:"Starters",items:[{name:"Smoked Haddock Gratin with Creamed Potatoes",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Pear Poached in Grenadine with Prawns Marie Rose",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Chefs Pate with Grape Chutney & Toast",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Leek & Potato Gnocchi Topped with Goats Cheese, a White Wine Cream Sauce & Tomato Concasse",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Melon Fan with Sorbet & Fruit Coulis",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Spiced Chicken Salad with Caesar Dressing & Parmesan",description:"Starter or Main",price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Mushrooms Baked in a Cream & Cheese Sauce with Toasted Ciabatta",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Smoked Haddock & Salmon Chowder",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Breaded Goats Cheese Served on a Sun-Dried Tomato & Balsamic Salad",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]}]},{name:"Mains",items:[{name:"Blackened Salmon, Warm Potato Salad & a Pepper & Mustard Seed Dressing",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Chicken Breast Coated in Panko Crumb with a Lightly Spiced Sweet & Sour Sauce",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Fillet of Pork Topped with Banana Finished with a Creamy Coconut & Mango Curry Sauce",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Haddock \u201cMornay\u201d or a Lemon Butter",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Chicken \u2018Piri-Piri\u2019 Szechuan Peppers & Spices served with a Yoghurt & Spring Onion Mayonnaise",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Lamb Fillet with a Cracked Black Pepper Cream & Brandy Sauce",description:null,price:null,priceType:"set-menu",supplement:2,dietary:[]},{name:"Pan Fried Fillet of Hake with a Lobster Glaze",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Supreme of Chicken \u2018Suedoise\u2019 White Wine, Swiss Cheese, Cream & Mushrooms",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Spicy Chilli with Rice Topped with Onions & Cheese",description:"Starter or Main",price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Haddock in Breadcrumbs or Tempura served with Tartar Sauce & Lemon",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Lambs Liver & Bacon",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]}]}]},{id:"dinner",name:"Dinner Menu",when:"6pm to 9pm, 7 days",setPrices:{"2 courses":27.5,"3 courses":34.5},extraServings:3.95,categories:[{name:"Starters",items:[{name:"Tiger Prawns Tempura with a Sweet Chilli Dip",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Smoked Haddock & Bacon Gratin with Braised Rice",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Leek & Potato Gnocchi Topped with Goats Cheese, a White Wine Cream Sauce & Tomato Concasse",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Spiced Chicken Salad with Caesar Dressing & Parmesan",description:"Starter or Main",price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Chefs Pate with Grape Chutney & Toast",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Melon Fan with Fresh Fruits, Sorbet & Mango Coulis",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Smoked Haddock & Salmon Chowder",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Breaded Goats Cheese Served on a Sun-Dried Tomato & Balsamic Salad",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Pear Poached in Grenadine with Prawns Marie Rose",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Crayfish, Avocado & Melon Cocktail",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]}]},{name:"Mains",items:[{name:"Blackened Sea Bass served with Mixed Salad & a Sweet Pepper Vinaigrette",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Roast Rack of Lamb, Minted Peas & Pan Juices",description:null,price:null,priceType:"set-menu",supplement:2.5,dietary:[]},{name:"Roast Breast of Duck with a Pink Peppercorn & Brandy Cream Sauce",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Supreme of Chicken \u2018Suedoise\u2019 White Wine, Swiss Cheese, Cream & Mushrooms",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Lambs Liver & Bacon with a Red Wine Jus",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Haddock \u201cMornay\u201d or a Lemon Butter",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Entrecote Steak with Large Onion Rings & a Choice of Sauces",description:"Diane, Pepper or Caf\xe9 de Paris",price:null,priceType:"set-menu",supplement:8,dietary:[]},{name:"Haddock in Breadcrumbs or Tempura served with Tartar Sauce & Lemon",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Fillet of Salmon & Chicken with Two Sauces - \u2018Lobster\u2019 & White Wine Cream & Mushroom",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Fillet Steak with a Cracked Black Pepper & Cream Sauce",description:null,price:null,priceType:"set-menu",supplement:12,dietary:[]},{name:"Fillet of Pork on a Haggis Cake with a Mustard Grain Cream",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Wildings Chicken Schnitzel Topped with Garlic & Herb Butter",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Spicy Chilli with Rice Topped with Onions & Cheese",description:"Starter or Main",price:null,priceType:"set-menu",supplement:null,dietary:[]}]}]},{id:"vegetarian",name:"Vegetarian Menu",when:"12 noon to 2pm (per PDF)",setPrices:null,note:"Prices not printed on PDF; GF = gluten free, V = vegan",categories:[{name:"Starters",items:[{name:"Roast Red Pepper & Tomato Soup",description:null,price:null,priceType:"set-menu",supplement:null,dietary:["GF"]},{name:"Breaded Goats Cheese Served on a Sun-Dried Tomato & Balsamic Salad",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Melon Fan with Sorbet & Fruit Coulis",description:null,price:null,priceType:"set-menu",supplement:null,dietary:["GF","V"]},{name:"Mushrooms Baked in a Cream & Cheese Sauce with Toasted Ciabatta",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]}]},{name:"Mains",items:[{name:"Leek & Potato Gnocchi Topped with Goats Cheese, a White Wine Cream Sauce & Tomato Concasse",description:"Starter or Main",price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Cajun Vegetables Crepe Glazed in a Cream Sauce",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Vegan Curried Chickpea with Cherry Tomatoes & Wilted Spinach",description:null,price:null,priceType:"set-menu",supplement:null,dietary:["GF","V"]},{name:"Vegetable Tempura",description:null,price:null,priceType:"set-menu",supplement:null,dietary:["GF","V"]},{name:"Mushroom Stroganoff with Rice",description:null,price:null,priceType:"set-menu",supplement:null,dietary:["GF"]},{name:"Sundried Tomato, Feta & Olive Tartlet, Finished with a Tomato Concasse & a Basil Dressing",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]}]}]},{id:"sweets",name:"Sweet Menu",setPrices:null,note:"Desserts form the third course of the set menus. Cheese is a \xa33.00 supplement.",categories:[{name:"Desserts",items:[{name:"Trio of Homemade Ice Creams",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Cr\xe8me Caramel with Passion Fruit Ice Cream",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Vanilla Cheesecake with Strawberry Coulis & Fresh Cream",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Sticky Toffee Pudding",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"\u2018Affogato\u2019",description:"Wildings Ice Cream with a Shot of Espresso",price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Chocolate and Orange Liqueur Pot",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Rice Pudding with an Apple Compote",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Crepes filled with Bananas and Maple Syrup",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Meringue Vacherin with a Berry Liqueur Compote",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Bread & Butter Pudding with Pouring Cream",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Selection of Cheese with Biscuits, Grapes & Chutney",description:null,price:null,priceType:"set-menu",supplement:3,dietary:[]}]},{name:"Hot drinks",items:[{name:"Tea",price:3.25,priceType:"single"},{name:"Decaf Tea",price:3.25,priceType:"single"},{name:"Espresso",price:3.25,priceType:"single"},{name:"Americano",price:3.25,priceType:"single"},{name:"Latte",price:3.65,priceType:"single"},{name:"Flat White",price:3.25,priceType:"single"},{name:"Cappuccino",price:3.65,priceType:"single"},{name:"Mocha",price:3.65,priceType:"single"},{name:"Irish Coffee",price:7.75,priceType:"single"}]}]},{id:"kids",name:"Kids Menu",when:"Children under 11",setPrices:{"1 course":9,"2 courses":10,"3 courses":11},categories:[{name:"Starters",items:[{name:"Cheesy Garlic Bread",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Melon & Sorbet",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Soup of the Day",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]}]},{name:"Mains",items:[{name:"Breaded Haddock",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Pasta with a Cheese Sauce or Tomato Sauce",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Fish Pie",description:null,price:null,priceType:"set-menu",supplement:null,dietary:[]},{name:"Tempura Chicken Goujons",description:"All can be served with Fries and a choice of Beans or Vegetables",price:null,priceType:"set-menu",supplement:null,dietary:[]}]},{name:"Dessert",items:[{name:"Homemade Ice Cream",description:"Please ask Staff for Our Ice Cream Selection",price:null,priceType:"set-menu",supplement:null,dietary:[]}]}]}],policies:["Please inform the person taking your order of any allergies.","Cannot guarantee items are 100% safe for coeliac disease or severe gluten allergies.","Parties of 6 or more: no separate or split bills."],venueId:"wildings",confirmed:!1,needsConfirmation:!0,operational:!1,allergensConfirmed:!1}},851,[]);
|
| 17 |
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"photoSource",{enumerable:!0,get:function(){return C}}),_e.BoardPhoto=T,_e.PhotoZoom=M,_e.SpecialRow=P,_e.SpecialsTab=function({rid:e,declared:t,now:l}){const o=(0,f.useSpecials)(t=>t.current[e]??null),[n,c]=(0,s.useState)(null);if(!o)return(0,w.jsx)(p.Card,{children:(0,w.jsxs)(u.default,{testID:"specials-empty",style:{alignItems:'center',gap:6,paddingVertical:18},children:[(0,w.jsx)(p.T,{size:34,children:"\ud83e\uddd1\u200d\ud83c\udf73"}),(0,w.jsx)(p.T,{weight:"semibold",size:18,center:!0,children:"Today\u2019s specials are on their way"}),(0,w.jsx)(p.Muted,{center:!0,children:"The kitchen posts the specials board here as soon as it\u2019s written up. Check back soon, or ask a member of staff."})]})});const h=o.allergenCheck;return(0,w.jsxs)(u.default,{style:{gap:10},testID:"specials-tab",children:[(0,w.jsxs)(p.Row,{style:{justifyContent:'space-between'},children:[(0,w.jsx)(u.default,{testID:"specials-updated",style:{flex:1},children:(0,w.jsx)(p.T,{weight:"semibold",colour:b.colours.goldLight,children:(0,y.freshness)(o,l)})}),(0,y.isToday)(o.postedAt,l)?(0,w.jsx)(p.Badge,{kind:"ok",label:"Today"}):(0,w.jsx)(p.Badge,{kind:"amber",label:"Not updated today"})]}),(0,y.isToday)(o.postedAt,l)?null:(0,w.jsx)(p.Muted,{children:"These are the most recent specials posted. Today\u2019s may differ, so please ask."}),o.photo?(0,w.jsxs)(u.default,{style:{gap:4},children:[(0,w.jsx)(T,{photo:o.photo,testID:"specials-photo",onPress:()=>c(o.photo)}),(0,w.jsx)(p.Muted,{center:!0,children:"Tap the photo to zoom"})]}):null,o.items.map(e=>(0,w.jsx)(P,{it:e,declared:t,signedBy:h?.by},e.id)),h?(0,w.jsxs)(p.Muted,{children:["Allergens for the typed specials were checked by ",h.by.replace(' (example)','')," at ",(0,j.hm)(new Date(h.at)),"."]}):null,o.photo&&!o.items.length?(0,w.jsx)(p.Muted,{children:"For allergens in these specials, please ask a member of staff before you order."}):null,(0,w.jsx)(p.Muted,{children:"Specials are served in the restaurant while they last. Ask your server to order one."}),(0,w.jsx)(M,{photo:n,onClose:()=>c(null)})]})};var t=r(d[0]),s=r(d[1]),l=e(r(d[2])),o=e(r(d[3])),n=e(r(d[4])),c=e(r(d[5])),u=e(r(d[6])),h=r(d[7]),p=r(d[8]),f=r(d[9]),x=r(d[10]),y=r(d[11]),j=r(d[12]),b=r(d[13]),w=r(d[14]);const k=r(d[15]),C=e=>e===y.SAMPLE_PHOTO?k:{uri:e};function T({photo:e,width:o,onPress:c,testID:h,label:p="Photo of the specials board"}){const[f,x]=(0,s.useState)(.75);(0,s.useEffect)(()=>{e!==y.SAMPLE_PHOTO?l.default.getSize(e,(e,t)=>e&&t&&x(e/t),()=>{}):x(.75)},[e]);const j=(0,w.jsx)(l.default,{source:C(e),resizeMode:"contain",accessibilityLabel:p,style:{width:o??'100%',aspectRatio:f,borderRadius:12,backgroundColor:(0,t.soutersSurface)('#1b1f1d')}});return c?(0,w.jsx)(n.default,{testID:h,accessibilityRole:"button",accessibilityLabel:`${p}. Tap to zoom`,onPress:c,children:j}):(0,w.jsx)(u.default,{testID:h,children:j})}function M({photo:e,onClose:l}){const[h,f]=(0,s.useState)(!1);return(0,s.useEffect)(()=>f(!1),[e]),(0,w.jsx)(o.default,{visible:!!e,transparent:!0,animationType:"fade",onRequestClose:l,children:(0,w.jsxs)(u.default,{testID:"specials-zoom",style:{flex:1,backgroundColor:(0,t.soutersSurface)('rgba(5,5,5,0.97)')},children:[(0,w.jsxs)(p.Row,{style:{justifyContent:'space-between',padding:12},children:[(0,w.jsx)(p.Button,{small:!0,kind:"secondary",label:h?'Zoom out':'Zoom in',onPress:()=>f(!h)}),(0,w.jsx)(p.Button,{small:!0,label:"Close",accessibilityLabel:"Close photo",onPress:l})]}),(0,w.jsx)(c.default,{horizontal:h,contentContainerStyle:{padding:12,alignItems:'center',justifyContent:'center',flexGrow:1},children:(0,w.jsx)(c.default,{contentContainerStyle:{alignItems:'center'},children:e?(0,w.jsx)(n.default,{onPress:()=>f(!h),accessibilityLabel:h?'Zoom out':'Zoom in',children:(0,w.jsx)(T,{photo:e,width:h?820:360})}):null})})]})})}function P({it:e,declared:t,signedBy:s}){const l=(0,x.conflictsFor)(e.allergens,t);return(0,w.jsx)(p.Card,{highlight:l.contains.length?b.colours.red:l.may.length?b.colours.amber:void 0,children:(0,w.jsxs)(u.default,{testID:"special-item",style:{gap:6},children:[(0,w.jsxs)(p.Row,{style:{justifyContent:'space-between',alignItems:'flex-start'},children:[(0,w.jsx)(p.T,{weight:"semibold",style:{flex:1,paddingRight:8},children:e.name}),(0,w.jsx)(p.T,{weight:"semibold",colour:b.colours.gold,children:(0,y.priceText)(e.price)})]}),e.description?(0,w.jsx)(p.Muted,{children:e.description}):null,l.contains.length?(0,w.jsx)(p.Badge,{kind:"red",label:"\u26a0 Contains your allergen"}):l.may.length?(0,w.jsx)(p.Badge,{kind:"amber",label:"\u26a0 May contain your allergen"}):null,e.noAllergens&&!Object.keys(e.allergens).length?(0,w.jsx)(p.Muted,{children:"None of the 14 allergens listed"}):(0,w.jsx)(h.AllergenChips,{map:e.allergens,declared:t}),s?(0,w.jsxs)(p.Muted,{children:["Allergens checked by ",s.replace(' (example)','')]}):null]})})}},852,[868,30,196,256,263,151,127,829,813,857,814,858,818,821,24,853]);
|
| 18 |
+
__d(function(g,r,i,a,m,e,d){"use strict";m.exports={uri:"/mrbasrais/staff-app/assets/assets/specials/sample-chalkboard.e7b4e4450a8483d4219bc6a214158d8f.jpg",width:900,height:1200,toString(){return this.uri}}},853,[]);
|
mrbasrais/staff-app/_expo/static/js/web/index-997bc0470ef63b01fb21fb195351458b.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return f}});var t=r(d[0]);r(d[1]);var n=r(d[2]),u=r(d[3]),c=r(d[4]);function f(){return'owner'!==u.APP_VARIANT?(0,c.jsx)(t.Redirect,{href:u.ENTRY[u.APP_VARIANT]}):(0,c.jsx)(n.OwnerApp,{})}},799,[804,30,965,806,24]);
|
| 2 |
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.OwnerApp=function(){return null}},965,[]);
|
mrbasrais/staff-app/_expo/static/js/web/index-a8d325e71cfb545e78d104b9bbbd17ea.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
mrbasrais/staff-app/_expo/static/js/web/index-c21267a9b534b341ed4458adcc7f4444.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
__d(function(g,_r,i,_a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}});var e=_r(d[0]);_r(d[1]);var s,r=_r(d[2]),n=(s=r)&&s.__esModule?s:{default:s},t=_r(d[3]),l=_r(d[4]),o=_r(d[5]),a=_r(d[6]),u=_r(d[7]),c=_r(d[8]),h=_r(d[9]),j=_r(d[10]),x=_r(d[11]);function f(){const s=(0,u.useStore)(e=>e.restaurants),r=(0,u.useCustomer)(),f=(0,u.useNow)(3e4);return(0,x.jsxs)(l.Screen,{title:"Restaurants",subtitle:"Book, order and pay at local restaurants",right:(0,x.jsxs)(l.Row,{children:[(0,x.jsx)(t.BasketButton,{}),(0,x.jsx)(l.Button,{small:!0,kind:"ghost",label:"Profile",onPress:()=>e.router.push('/customer/profile')})]}),children:[(0,x.jsxs)(l.Card,{onPress:()=>e.router.push('/customer/profile'),children:[(0,x.jsxs)(l.Row,{style:{justifyContent:'space-between'},children:[(0,x.jsx)(l.T,{weight:"semibold",children:r.name?`Hello, ${r.name.split(' ')[0]}`:'Add your profile'}),(0,x.jsx)(l.Muted,{children:"Edit profile \u203a"})]}),(0,x.jsx)(l.Muted,{children:"Your allergies (stored once, confirmed on every order and booking):"}),(0,x.jsx)(l.Row,{wrap:!0,gap:6,children:r.allergies.length?r.allergies.map(e=>(0,x.jsx)(l.Badge,{kind:"red",label:`${(0,o.allergenLabel)(e.allergen)} \u2014 ${(0,o.severityLabel)(e.severity)}`},e.allergen)):(0,x.jsx)(l.Muted,{children:"None declared"})})]}),s.map(s=>{const r=(0,a.hoursFor)(s,f);return(0,x.jsxs)(l.Card,{onPress:()=>e.router.push(`/customer/${s.id}`),highlight:s.id===j.VENUE_RID?c.colours.gold:void 0,children:[(0,x.jsxs)(l.Row,{style:{justifyContent:'space-between'},children:[(0,x.jsx)(l.H2,{style:{flex:1},children:s.name}),s.fictional?(0,x.jsx)(l.Badge,{kind:"amber",label:"FICTIONAL DEMO"}):(0,x.jsx)(l.Badge,{kind:"gold",label:"VENUE"})]}),(0,x.jsx)(l.Muted,{children:s.tagline}),(0,x.jsx)(l.Muted,{children:s.location}),(0,x.jsx)(l.T,{size:14,colour:r?c.colours.ok:c.colours.amber,children:r?`Kitchen today ${(0,a.kitchenHoursOn)(s,f)[0]}\u2013${(0,a.kitchenHoursOn)(s,f)[1]}`:'Kitchen closed today (hours not listed)'})]},s.id)}),(0,x.jsx)(l.Banner,{kind:"info",children:"Each venue uses only its own saved menu, cards and booking details."}),(0,x.jsx)(h.LauncherLine,{}),(0,x.jsx)(n.default,{style:{height:8}})]})}},790,[804,30,127,830,813,814,815,819,821,855,5,24]);
|
mrbasrais/staff-app/_expo/static/js/web/index-e7d08ddd8307cc90502f5624c0ccc0bd.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
mrbasrais/staff-app/_expo/static/js/web/waitlist-7da65cbcea167a5ec8823003e69ae268.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
__d(function(g,_r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return h}});var t=_r(d[0]),s=_r(d[1]),n=_r(d[2]),a=_r(d[3]),r=_r(d[4]),o=_r(d[5]),u=_r(d[6]),l=_r(d[7]),c=_r(d[8]);function h(){const{rid:h}=(0,t.useLocalSearchParams)(),x=(0,u.useRestaurant)(h),j=(0,u.useCustomer)(),b=(0,u.useWaitlist)(h),f=(0,u.useBookings)(h),w=(0,u.useOrders)(h),y=(0,u.useEvents)(h),p=(0,u.useNow)(15e3),[v,M]=(0,s.useState)(2),[P,S]=(0,s.useState)(j.name);if(!x)return(0,c.jsx)(n.Screen,{title:"Not found",children:(0,c.jsx)(n.T,{children:"Restaurant not found."})});const T=b.filter(t=>'waiting'===t.status||'notified'===t.status).sort((t,s)=>t.number-s.number),k=T.find(t=>t.customerId===j.id),B=(0,r.forecastToday)(x,f,w,y,p),C=B.nextHour?Math.min(1.6,Math.max(.8,B.nextHour.covers/(.75*x.settings.capacityPerHour))):1;if(k){const t=T.indexOf(k)+1;return(0,c.jsxs)(n.Screen,{title:"You\u2019re on the waitlist",subtitle:x.name,children:[(0,c.jsxs)(n.Card,{highlight:l.colours.gold,children:[(0,c.jsx)(n.Muted,{children:"Your queue number"}),(0,c.jsxs)(n.T,{size:56,weight:"bold",colour:l.colours.gold,children:["#",k.number]}),(0,c.jsx)(n.T,{children:1===t?'You\u2019re next':`${t-1} part${t-1==1?'y':'ies'} ahead of you`}),(0,c.jsxs)(n.T,{weight:"semibold",children:["Estimated wait: about ",(0,o.estimateWait)(t,x.settings.turnMins,C)," minutes"]}),(0,c.jsxs)(n.Muted,{children:["Estimate only \u2014 based on tables in use, typical turn times and today\u2019s forecast. Joined ",(0,a.minsBetween)(new Date(k.joinedAt),p)," min ago."]})]}),'notified'===k.status?(0,c.jsx)(n.Banner,{kind:"success",title:"Your table is ready!",children:"Please come to the door within 5 minutes to keep your table."}):(0,c.jsx)(n.Banner,{kind:"info",children:"Keep this page open to see when your table is ready. Text alerts are not connected."}),(0,c.jsx)(n.Button,{kind:"secondary",label:"Leave the waitlist",onPress:()=>u.repo.waitlist.setStatus(k.id,'removed')})]})}return(0,c.jsxs)(n.Screen,{title:"Join the waitlist",subtitle:x.name,children:[(0,c.jsxs)(n.Card,{children:[(0,c.jsxs)(n.H2,{children:[T.length," part",1===T.length?'y':'ies'," waiting"]}),(0,c.jsxs)(n.Muted,{children:["Estimated wait if you join now: about ",(0,o.estimateWait)(T.length+1,x.settings.turnMins,C)," minutes (estimate)."]})]}),(0,c.jsx)(n.Field,{label:"Name",value:P,onChangeText:S}),(0,c.jsxs)(n.Row,{style:{justifyContent:'space-between'},children:[(0,c.jsx)(n.T,{weight:"semibold",children:"Party size"}),(0,c.jsx)(n.Stepper,{value:v,onChange:M,min:1,max:12,label:"party size"})]}),(0,c.jsx)(n.Button,{label:"Join the queue",disabled:P.trim().length<2,onPress:()=>u.repo.waitlist.join(x.id,P,v,j.id),testID:"join-waitlist"}),(0,c.jsx)(n.Muted,{children:"Waitlist messages are service messages only \u2014 no marketing."})]})}},787,[804,30,813,818,870,871,819,821,24]);
|
mrbasrais/staff-app/_expo/static/js/web/whatson-dd3d796ea1e77876d5803d9ecd8c1109.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
__d(function(g,_r,_i,_a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return h}});var t=_r(_d[0]),l=_r(_d[1]),n=_r(_d[2]),s=e(_r(_d[3])),o=e(_r(_d[4])),a=_r(_d[5]),r=_r(_d[6]),d=_r(_d[7]),i=_r(_d[8]),u=_r(_d[9]);const c=e=>'bank-holiday'===e.kind?(0,u.jsx)(a.Badge,{kind:"blue",label:"Scottish bank holiday"}):'school-holiday'===e.kind?(0,u.jsx)(a.Badge,{kind:"neutral",label:"School holiday"}):'occasion'===e.kind?(0,u.jsx)(a.Badge,{kind:"gold",label:"Key dining date"}):(0,u.jsx)(a.Badge,{kind:"ok",label:"Restaurant event"});function h(){const{rid:e}=(0,t.useLocalSearchParams)(),h=(0,d.useRestaurant)(e),x=(0,d.useEvents)(e),y=(0,d.useNow)(6e4),[j,f]=(0,n.useState)(()=>new Date(y.getFullYear(),y.getMonth(),1)),[b,k]=(0,n.useState)(null);if(!h)return(0,u.jsx)(a.Screen,{title:"Not found",children:(0,u.jsx)(a.T,{children:"Restaurant not found."})});const p=(new Date(j).getDay()+6)%7,w=new Date(j.getFullYear(),j.getMonth()+1,0).getDate(),M=[...Array(p).fill(null),...Array.from({length:w},(e,t)=>new Date(j.getFullYear(),j.getMonth(),t+1))];for(;M.length%7;)M.push(null);const D=e=>x.filter(t=>t.date===e),v=x.filter(e=>e.date>=(0,r.ymd)(y)).sort((e,t)=>e.date.localeCompare(t.date)),B=b?D(b):v.slice(0,20);return(0,u.jsxs)(a.Screen,{title:"What\u2019s on",subtitle:`${h.name} \xb7 holidays, key dates and events`,children:[(0,u.jsxs)(a.Card,{children:[(0,u.jsxs)(a.Row,{style:{justifyContent:'space-between'},children:[(0,u.jsx)(a.Button,{small:!0,kind:"ghost",label:"\u2039 Prev",onPress:()=>f(new Date(j.getFullYear(),j.getMonth()-1,1))}),(0,u.jsxs)(a.H2,{children:[(0,r.monthLong)(j.getMonth())," ",j.getFullYear()]}),(0,u.jsx)(a.Button,{small:!0,kind:"ghost",label:"Next \u203a",onPress:()=>f(new Date(j.getFullYear(),j.getMonth()+1,1))})]}),(0,u.jsx)(o.default,{style:{flexDirection:'row'},children:['Mon','Tue','Wed','Thu','Fri','Sat','Sun'].map(e=>(0,u.jsx)(a.T,{size:13,colour:i.colours.muted,style:{flex:1,textAlign:'center'},children:e},e))}),Array.from({length:M.length/7}).map((e,t)=>(0,u.jsx)(o.default,{style:{flexDirection:'row'},children:M.slice(7*t,7*t+7).map((e,t)=>{if(!e)return(0,u.jsx)(o.default,{style:{flex:1,height:44}},t);const l=(0,r.ymd)(e),n=D(l),d=l===(0,r.ymd)(y);return(0,u.jsxs)(s.default,{accessibilityLabel:`${l}${n.length?`, ${n.length} events`:''}`,onPress:()=>k(b===l?null:l),style:{flex:1,height:44,alignItems:'center',justifyContent:'center',borderRadius:8,backgroundColor:b===l?i.colours.goldTint:'transparent',borderWidth:d?1:0,borderColor:i.colours.gold},children:[(0,u.jsx)(a.T,{size:15,colour:n.length?i.colours.text:i.colours.muted,weight:n.length?'semibold':'regular',children:e.getDate()}),(0,u.jsx)(a.Row,{gap:2,children:n.slice(0,3).map(e=>(0,u.jsx)(o.default,{style:{width:6,height:6,borderRadius:3,backgroundColor:'bank-holiday'===e.kind?i.colours.blue:'event'===e.kind?i.colours.ok:i.colours.gold}},e.id))})]},t)})},t))]}),(0,u.jsx)(a.H2,{children:b?(0,r.niceDateYear)((0,r.parseYmd)(b)):'Coming up'}),0===B.length?(0,u.jsx)(a.Muted,{children:"Nothing on this day."}):B.map(e=>(0,u.jsxs)(a.Card,{children:[(0,u.jsxs)(a.Row,{style:{justifyContent:'space-between'},children:[(0,u.jsx)(a.T,{center:!0,weight:"semibold",style:{width:'100%',flexBasis:'100%'},children:(0,l.holidayName)(e.title)}),c(e)]}),(0,u.jsxs)(a.Muted,{children:[(0,r.niceDateYear)((0,r.parseYmd)(e.date)),e.source?` \xb7 source: ${e.source}`:'']}),(0,u.jsx)(a.T,{size:15,children:e.description}),e.example?(0,u.jsx)(a.Badge,{kind:"amber",label:"EXAMPLE EVENT"}):null,e.date>=(0,r.ymd)(y)?(0,u.jsx)(a.Button,{small:!0,kind:"secondary",label:"Book for this date",onPress:()=>t.router.push({pathname:'/customer/[rid]/book',params:{rid:h.id,date:e.date}})}):null]},e.id)),(0,u.jsx)(a.Muted,{children:"Bank holidays from gov.uk (Scotland division). Easter Monday is not a Scottish bank holiday; local council holidays vary."})]})}},788,[804,828,30,263,127,813,818,819,821,24]);
|