Spaces:
Running
Running
Cover Charge prototype v0.3.12.72 (part 3)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- kirkmichael/customer-app/customer/kirkmichael.html +1 -1
- kirkmichael/customer-app/index.html +1 -1
- kirkmichael/customer-app/sw.js +1 -1
- kirkmichael/display-app/_expo/static/js/web/[token]-7af999b0f03c6c78c62cdacac00832e3.js +3 -0
- kirkmichael/display-app/_expo/static/js/web/__common-493f71fa11e6e63f96217b3704f5d6ca.js +0 -0
- kirkmichael/display-app/_expo/static/js/web/_layout-0376f9cfbed2f0b40f8b5093393c89b9.js +0 -0
- kirkmichael/display-app/_expo/static/js/web/basket-8bd28659b5f58d60b4ad7279e8454177.js +1 -0
- kirkmichael/display-app/_expo/static/js/web/historicalBookingApi-dad74e1416e6ba859166069217ea3178.js +1 -0
- kirkmichael/display-app/_expo/static/js/web/index-0d972d9036eb93ad853b910c8823d845.js +2 -0
- kirkmichael/display-app/_expo/static/js/web/index-8c84b8eacfeb9b165a92c00972327943.js +0 -0
- kirkmichael/display-app/_expo/static/js/web/index-9c4064ade8a16f7d7e4a3b7ecf13d9cd.js +10 -0
- kirkmichael/display-app/_expo/static/js/web/index-bbf930cfe4dbcfc49feac3379bb23940.js +0 -0
- kirkmichael/display-app/_expo/static/js/web/index-f801fa9a60b61bec74a5fd5405137fe3.js +1 -0
- kirkmichael/display-app/_expo/static/js/web/index-fa13c6f01ca07c4daadcaf5ce2afc748.js +0 -0
- kirkmichael/display-app/_expo/static/js/web/lost-586161353b51f949bd2eada7f19849f4.js +1 -0
- kirkmichael/display-app/_expo/static/js/web/loyalty-a6fbeb637c0abe1bd94cfd66e6073dcf.js +1 -0
- kirkmichael/display-app/_expo/static/js/web/merch-961d2dff2d3212c0a6b74b20249b4679.js +1 -0
- kirkmichael/display-app/_expo/static/js/web/offers-5f5dc2f5cb9232e47fc4dcc5f7c1eea3.js +1 -0
- kirkmichael/display-app/_expo/static/js/web/profile-d193c0c1fc297da298e302d128a98226.js +1 -0
- kirkmichael/display-app/_expo/static/js/web/refer-9203974d28766a9f821fa5e3b7706fc5.js +1 -0
- kirkmichael/display-app/_expo/static/js/web/waitlist-c6ee0b340f7b1536f03ab4f746968f45.js +1 -0
- kirkmichael/display-app/display.html +1 -1
- kirkmichael/display-app/index.html +1 -1
- kirkmichael/display-app/sw.js +1 -1
- kirkmichael/downloads/android/SHA256.txt +0 -2
- kirkmichael/get/chef.html +1 -1
- kirkmichael/get/customer.html +1 -1
- kirkmichael/get/display.html +1 -1
- kirkmichael/get/managers.html +1 -1
- kirkmichael/get/staff.html +1 -1
- kirkmichael/index.html +1 -1
- kirkmichael/logo-revision.json +1 -1
- kirkmichael/owner-app/_expo/static/js/web/[token]-42b9f0a3803ab4d743e3aaf5916b6cc5.js +2 -0
- kirkmichael/owner-app/_expo/static/js/web/__common-1207a9f363a6d62bfefe4bcf64751dfc.js +0 -0
- kirkmichael/owner-app/_expo/static/js/web/_layout-5397f52f94dc418804ad3fef312b9fce.js +40 -0
- kirkmichael/owner-app/_expo/static/js/web/basket-eb61cadaa34b0117ab74dd92bfa00a40.js +1 -0
- kirkmichael/owner-app/_expo/static/js/web/index-0036cc80afb7318d411fd65912ad863e.js +1 -0
- kirkmichael/owner-app/_expo/static/js/web/index-7b3933324028ec2b16b40f6cf91c99b7.js +2 -0
- kirkmichael/owner-app/_expo/static/js/web/index-8a4faf1d83f0f0368091d7f976e035b9.js +0 -0
- kirkmichael/owner-app/_expo/static/js/web/index-9cfe1a17b8e047a9f3422dd00bc4cb77.js +0 -0
- kirkmichael/owner-app/_expo/static/js/web/index-b9588866561fe25860269388a08ddc37.js +8 -0
- kirkmichael/owner-app/_expo/static/js/web/index-bc43949b658d72edcc89da771baa0019.js +3 -0
- kirkmichael/owner-app/_expo/static/js/web/lost-f5530d2ff085e20959eb05b0f0e9facb.js +1 -0
- kirkmichael/owner-app/_expo/static/js/web/loyalty-428a4adbea68085927948a8b2dcd7398.js +1 -0
- kirkmichael/owner-app/_expo/static/js/web/merch-8f96553687847cc042d911d2354f4b6c.js +1 -0
- kirkmichael/owner-app/_expo/static/js/web/offers-2137236892f7f3e113b170592631f167.js +1 -0
- kirkmichael/owner-app/_expo/static/js/web/profile-af225387caec4495e9f01d49dd28df05.js +1 -0
- kirkmichael/owner-app/_expo/static/js/web/refer-4b4554083a8d04e2b6f7ec11bd04ea68.js +1 -0
- kirkmichael/owner-app/_expo/static/js/web/waitlist-56fd1a0d1100ea117c4fcc50cf029b52.js +1 -0
- kirkmichael/owner-app/index.html +1 -1
kirkmichael/customer-app/customer/kirkmichael.html
CHANGED
|
@@ -35,6 +35,6 @@
|
|
| 35 |
<noscript> You need to enable JavaScript to run this app. </noscript>
|
| 36 |
<!-- The root element for your Expo app. -->
|
| 37 |
<div id="root"><div style="position:fixed;inset:0;background:#0B0B0B;display:grid;place-items:center"><img src="/kirkmichael/customer-app/brand-hero-49dc0730ea9f262a.png" alt="The Kirkmichael Arms" width="180" height="180"></div></div>
|
| 38 |
-
<script src="/kirkmichael/customer-app/_expo/static/js/web/__expo-metro-runtime-8c088df87a31e4e6accd81c554ec290d.js" defer></script><script src="/kirkmichael/customer-app/_expo/static/js/web/__common-
|
| 39 |
</body>
|
| 40 |
</html>
|
|
|
|
| 35 |
<noscript> You need to enable JavaScript to run this app. </noscript>
|
| 36 |
<!-- The root element for your Expo app. -->
|
| 37 |
<div id="root"><div style="position:fixed;inset:0;background:#0B0B0B;display:grid;place-items:center"><img src="/kirkmichael/customer-app/brand-hero-49dc0730ea9f262a.png" alt="The Kirkmichael Arms" width="180" height="180"></div></div>
|
| 38 |
+
<script src="/kirkmichael/customer-app/_expo/static/js/web/__expo-metro-runtime-8c088df87a31e4e6accd81c554ec290d.js" defer></script><script src="/kirkmichael/customer-app/_expo/static/js/web/__common-4b83e6adb67eb613c26f661a1b0598aa.js" defer></script><script src="/kirkmichael/customer-app/_expo/static/js/web/index-8104c0c762a0ce6c0095eae1c874c9ed.js" defer></script>
|
| 39 |
</body>
|
| 40 |
</html>
|
kirkmichael/customer-app/index.html
CHANGED
|
@@ -35,6 +35,6 @@
|
|
| 35 |
<noscript> You need to enable JavaScript to run this app. </noscript>
|
| 36 |
<!-- The root element for your Expo app. -->
|
| 37 |
<div id="root"><div style="position:fixed;inset:0;background:#0B0B0B;display:grid;place-items:center"><img src="/kirkmichael/customer-app/brand-hero-49dc0730ea9f262a.png" alt="The Kirkmichael Arms" width="180" height="180"></div></div>
|
| 38 |
-
<script src="/kirkmichael/customer-app/_expo/static/js/web/__expo-metro-runtime-8c088df87a31e4e6accd81c554ec290d.js" defer></script><script src="/kirkmichael/customer-app/_expo/static/js/web/__common-
|
| 39 |
</body>
|
| 40 |
</html>
|
|
|
|
| 35 |
<noscript> You need to enable JavaScript to run this app. </noscript>
|
| 36 |
<!-- The root element for your Expo app. -->
|
| 37 |
<div id="root"><div style="position:fixed;inset:0;background:#0B0B0B;display:grid;place-items:center"><img src="/kirkmichael/customer-app/brand-hero-49dc0730ea9f262a.png" alt="The Kirkmichael Arms" width="180" height="180"></div></div>
|
| 38 |
+
<script src="/kirkmichael/customer-app/_expo/static/js/web/__expo-metro-runtime-8c088df87a31e4e6accd81c554ec290d.js" defer></script><script src="/kirkmichael/customer-app/_expo/static/js/web/__common-4b83e6adb67eb613c26f661a1b0598aa.js" defer></script><script src="/kirkmichael/customer-app/_expo/static/js/web/index-8104c0c762a0ce6c0095eae1c874c9ed.js" defer></script>
|
| 39 |
</body>
|
| 40 |
</html>
|
kirkmichael/customer-app/sw.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
const V="cc-kirkmichael-customer-
|
| 2 |
self.addEventListener('install',e=>e.waitUntil(caches.open(V).then(c=>Promise.all(P.map(u=>fetch(u,{cache:'reload'}).then(r=>r.blob().then(b=>c.put(u,new Response(b,{status:200,headers:{'Content-Type':r.headers.get('Content-Type')||b.type}}))))))).then(()=>self.skipWaiting())));
|
| 3 |
self.addEventListener('activate',e=>e.waitUntil(caches.keys().then(ks=>Promise.all(ks.filter(k=>k.startsWith('cc-kirkmichael-customer-')&&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,{ignoreSearch:true}).then(r=>r||fetch(e.request)));});
|
|
|
|
| 1 |
+
const V="cc-kirkmichael-customer-dfd5b6cccec7",B="/kirkmichael/customer-app/",P=["/kirkmichael/customer-app/apple-touch-icon.png", "/kirkmichael/customer-app/favicon.ico", "/kirkmichael/customer-app/icon-192.png", "/kirkmichael/customer-app/icon-512.png", "/kirkmichael/customer-app/brand-logo.png", "/kirkmichael/customer-app/brand-logo-49dc0730ea9f262a.png", "/kirkmichael/customer-app/brand-promo-0c6f924a45db0ac9.png", "/kirkmichael/customer-app/apple-touch-icon-49dc0730ea9f262a.png", "/kirkmichael/customer-app/icon-192-49dc0730ea9f262a.png", "/kirkmichael/customer-app/index.html", "/kirkmichael/customer-app/brand-promo.png", "/kirkmichael/customer-app/manifest.webmanifest", "/kirkmichael/customer-app/manifest-49dc0730ea9f262a.webmanifest", "/kirkmichael/customer-app/brand-hero.png", "/kirkmichael/customer-app/icon-512-49dc0730ea9f262a.png", "/kirkmichael/customer-app/brand-hero-49dc0730ea9f262a.png", "/kirkmichael/customer-app/customer/kirkmichael.html", "/kirkmichael/customer-app/_expo/static/js/web/index-55968b864270f8c0b2fd56d95d738105.js", "/kirkmichael/customer-app/_expo/static/js/web/merch-961d2dff2d3212c0a6b74b20249b4679.js", "/kirkmichael/customer-app/_expo/static/js/web/index-59419e055ce62dc8b913ecfacdd77293.js", "/kirkmichael/customer-app/_expo/static/js/web/[token]-7af999b0f03c6c78c62cdacac00832e3.js", "/kirkmichael/customer-app/_expo/static/js/web/index-278722b702aea5ed8c0be2fbfa13d349.js", "/kirkmichael/customer-app/_expo/static/js/web/refer-9203974d28766a9f821fa5e3b7706fc5.js", "/kirkmichael/customer-app/_expo/static/js/web/lost-586161353b51f949bd2eada7f19849f4.js", "/kirkmichael/customer-app/_expo/static/js/web/__common-4b83e6adb67eb613c26f661a1b0598aa.js", "/kirkmichael/customer-app/_expo/static/js/web/gift-6295ae1f920911c0650429abf76f6927.js", "/kirkmichael/customer-app/_expo/static/js/web/index-8104c0c762a0ce6c0095eae1c874c9ed.js", "/kirkmichael/customer-app/_expo/static/js/web/[did]-aa1f9793ba61b7027dc7b3794608c02b.js", "/kirkmichael/customer-app/_expo/static/js/web/index-0d972d9036eb93ad853b910c8823d845.js", "/kirkmichael/customer-app/_expo/static/js/web/book-7ccaf582608453fa41bd70c1422647e4.js", "/kirkmichael/customer-app/_expo/static/js/web/basket-8bd28659b5f58d60b4ad7279e8454177.js", "/kirkmichael/customer-app/_expo/static/js/web/profile-d193c0c1fc297da298e302d128a98226.js", "/kirkmichael/customer-app/_expo/static/js/web/[n]-2ad27b31427ee0b2228d775d0103110c.js", "/kirkmichael/customer-app/_expo/static/js/web/_layout-6f4cebed196f75852bb7993976c1c851.js", "/kirkmichael/customer-app/_expo/static/js/web/offers-5f5dc2f5cb9232e47fc4dcc5f7c1eea3.js", "/kirkmichael/customer-app/_expo/static/js/web/__expo-metro-runtime-8c088df87a31e4e6accd81c554ec290d.js", "/kirkmichael/customer-app/_expo/static/js/web/waitlist-c6ee0b340f7b1536f03ab4f746968f45.js", "/kirkmichael/customer-app/_expo/static/js/web/index-bbf930cfe4dbcfc49feac3379bb23940.js", "/kirkmichael/customer-app/_expo/static/js/web/index-e2fb2da868c40e525297858392efa815.js", "/kirkmichael/customer-app/_expo/static/js/web/feedback-68afe9c95f4a0b4be7d7e264f0e4f114.js", "/kirkmichael/customer-app/_expo/static/js/web/whatson-1558c0cfcbad93b781c72c279888a738.js", "/kirkmichael/customer-app/_expo/static/js/web/index-f801fa9a60b61bec74a5fd5405137fe3.js", "/kirkmichael/customer-app/_expo/static/js/web/[oid]-67b1e8b4cc5576cba86cc6c5442d5fd6.js", "/kirkmichael/customer-app/_expo/static/js/web/demo-5e158e96def3710de1590e6d53c4eb0d.js", "/kirkmichael/customer-app/_expo/static/js/web/index-8c84b8eacfeb9b165a92c00972327943.js", "/kirkmichael/customer-app/_expo/static/js/web/index-0c443ec800fe594dba2afac8fee70a6b.js", "/kirkmichael/customer-app/_expo/static/js/web/loyalty-a6fbeb637c0abe1bd94cfd66e6073dcf.js", "/kirkmichael/customer-app/_expo/static/js/web/[section]-7e6b51e93a90c3125cf8ae4b0be4cad4.js", "/kirkmichael/customer-app/_expo/static/js/web/+not-found-4d4303e173fe1eacdeea21b55b14713e.js", "/kirkmichael/customer-app/assets/node_modules/expo-router/assets/pkg.ab19f4cbc543357183a20571f68380a3.png", "/kirkmichael/customer-app/assets/node_modules/expo-router/assets/sitemap.412dd9275b6b48ad28f5e3d81bb1f626.png", "/kirkmichael/customer-app/assets/node_modules/expo-router/assets/file.19eeb73b9593a38f8e9f418337fc7d10.png", "/kirkmichael/customer-app/assets/node_modules/expo-router/assets/unmatched.20e71bdf79e3a97bf55fd9e164041578.png", "/kirkmichael/customer-app/assets/node_modules/expo-router/assets/forward.d8b800c443b8972542883e0b9de2bdc6.png", "/kirkmichael/customer-app/assets/node_modules/expo-router/assets/error.d1ea1496f9057eb392d5bbf3732a61b7.png", "/kirkmichael/customer-app/assets/node_modules/expo-router/assets/arrow_down.017bc6ba3fc25503e5eb5e53826d48a8.png", "/kirkmichael/customer-app/assets/node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@3x.png", "/kirkmichael/customer-app/assets/node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7.png", "/kirkmichael/customer-app/assets/node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@3x.png", "/kirkmichael/customer-app/assets/node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@4x.png", "/kirkmichael/customer-app/assets/node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@2x.png", "/kirkmichael/customer-app/assets/node_modules/expo-router/assets/react-navigation/elements/search-icon.286d67d3f74808a60a78d3ebf1a5fb57.png", "/kirkmichael/customer-app/assets/node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55.png", "/kirkmichael/customer-app/assets/node_modules/expo-router/assets/react-navigation/elements/back-icon-mask.0a328cd9c1afd0afe8e3b1ec5165b1b4.png", "/kirkmichael/customer-app/assets/node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@2x.png", "/kirkmichael/customer-app/assets/node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@4x.png", "/kirkmichael/customer-app/assets/node_modules/expo-router/assets/react-navigation/elements/back-icon.35ba0eaec5a4f5ed12ca16fabeae451d.png", "/kirkmichael/customer-app/assets/node_modules/@expo-google-fonts/poppins/500Medium/Poppins_500Medium.bf59c687bc6d3a70204d3944082c5cc0.ttf", "/kirkmichael/customer-app/assets/node_modules/@expo-google-fonts/poppins/600SemiBold/Poppins_600SemiBold.6f1520d107205975713ba09df778f93f.ttf", "/kirkmichael/customer-app/assets/node_modules/@expo-google-fonts/poppins/700Bold/Poppins_700Bold.08c20a487911694291bd8c5de41315ad.ttf", "/kirkmichael/customer-app/assets/node_modules/@expo-google-fonts/poppins/400Regular/Poppins_400Regular.093ee89be9ede30383f39a899c485a82.ttf", "/kirkmichael/customer-app/assets/assets/specials/sample-chalkboard.e7b4e4450a8483d4219bc6a214158d8f.jpg", "/kirkmichael/customer-app/assets/assets/recipes/moules.a4f342fc7e7fb62c8a0b5c1678bbea3f.jpg", "/kirkmichael/customer-app/assets/assets/recipes/stp.1061ced765efdcafff2554adc3fc7113.jpg", "/kirkmichael/customer-app/assets/assets/recipes/skink.4ce7b7c676f9cdcd0a060eda46f5a00e.jpg", "/kirkmichael/customer-app/assets/assets/recipes/fishsupper.1609c58319e1e8721f5c639049fb054e.jpg", "/kirkmichael/customer-app/assets/assets/recipes/lobster.2fb3485c8e372972099259017358c1b8.jpg", "/kirkmichael/customer-app/assets/assets/brand/wildings.076f4fcd06d19a0af0205c410f461b14.png", "/kirkmichael/customer-app/assets/assets/brand/anchorage-hero.0450b828e4f9c1f4456240096598f6f5.png", "/kirkmichael/customer-app/assets/assets/brand/kirkmichael.63b13cde7fd82eb622622b39ac80c394.png", "/kirkmichael/customer-app/assets/assets/brand/brae.8de9e89ac30966c6669de990370d8e40.png", "/kirkmichael/customer-app/assets/assets/brand/kirkmichael-hero.63b13cde7fd82eb622622b39ac80c394.png", "/kirkmichael/customer-app/assets/assets/brand/anchorage.fea5ce2f6fd18bf2950aa21c0980ed8e.png", "/kirkmichael/customer-app/assets/assets/brand/wildings-hero-logo-text.4661e4b935726f2511f9c17a1567c89a.png", "/kirkmichael/customer-app/assets/assets/brand/saltmarsh.85a6a65732635e5148478d743d9ca884.png", "/kirkmichael/customer-app/assets/assets/brand/souters.f4c58d9349b6e1700fe5abcc9e9b665c.png"];
|
| 2 |
self.addEventListener('install',e=>e.waitUntil(caches.open(V).then(c=>Promise.all(P.map(u=>fetch(u,{cache:'reload'}).then(r=>r.blob().then(b=>c.put(u,new Response(b,{status:200,headers:{'Content-Type':r.headers.get('Content-Type')||b.type}}))))))).then(()=>self.skipWaiting())));
|
| 3 |
self.addEventListener('activate',e=>e.waitUntil(caches.keys().then(ks=>Promise.all(ks.filter(k=>k.startsWith('cc-kirkmichael-customer-')&&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,{ignoreSearch:true}).then(r=>r||fetch(e.request)));});
|
kirkmichael/display-app/_expo/static/js/web/[token]-7af999b0f03c6c78c62cdacac00832e3.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 u}});var t=r(d[0]);r(d[1]);var n=r(d[2]),o=r(d[3]),c=r(d[4]),s=r(d[5]),l=r(d[6]);function u(){const{token:u}=(0,t.useLocalSearchParams)(),h=(0,c.cleanToken)(u);return h?(0,s.guestServer)()?(0,l.jsx)(o.TableOrderLive,{token:h}):(0,l.jsx)(n.Screen,{title:"Order at the table",children:(0,l.jsx)(n.Banner,{kind:"demo",title:"Not connected",children:"This preview isn't connected to a venue, so table orders can't be sent from here."})}):(0,l.jsx)(n.Screen,{title:"Order at the table",children:(0,l.jsx)(n.Banner,{kind:"warn",title:"This code isn't working",children:"Please scan the QR code on your table again, or ask a member of staff."})})}},790,[799,25,808,860,862,831,19]);
|
| 2 |
+
__d(function(g,_r,_i,_a,_m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.TableOrderLive=function({token:e}){const[s,b]=(0,n.useState)(null),[m,f]=(0,n.useState)(null),[j,y]=(0,n.useState)([]),[k,w]=(0,n.useState)(null),T=(0,h.useCustomer)(),[C,S]=(0,n.useState)(()=>(T?.allergies??[]).map(e=>e.allergen)),[v,P]=(0,n.useState)(''),[O,N]=(0,n.useState)(''),[B,I]=(0,n.useState)(!1),[L,M]=(0,n.useState)(null),[R,$]=(0,n.useState)([]),A=(0,n.useCallback)(async()=>{try{b(await(0,c.tablePublic)(e)),f(null)}catch(e){f(e?.message??'Could not load the menu.')}},[e]),D=(0,n.useCallback)(async()=>{try{$(await(0,c.myTableOrders)(e))}catch{}},[e]);(0,n.useEffect)(()=>{A(),D();const e=setInterval(()=>{D(),A()},8e3);return()=>clearInterval(e)},[A,D]);const _=s?.menu??[];(0,n.useEffect)(()=>{y(e=>e.filter(e=>_.some(t=>t.id===e.id&&!t.soldOut)))},[s]);const q=(0,n.useMemo)(()=>{const e=new Map;for(const t of _)e.set(t.section,[...e.get(t.section)??[],t]);return[...e.entries()]},[s]),Y=(0,d.cartTotal)(j,_),W='yes'===k?C.map(e=>({allergen:e,severity:T?.allergies?.find(t=>t.allergen===e)?.severity??'allergy'})):[],E=(0,d.allergyClashes)(j,_,W.map(e=>e.allergen)),z=e=>j.find(t=>t.id===e)?.qty??0,G=(e,t)=>y(l=>t<=0?l.filter(t=>t.id!==e):l.some(t=>t.id===e)?l.map(l=>l.id===e?{...l,qty:t}:l):[...l,{id:e,qty:t,note:''}]),H=(e,t)=>y(l=>l.map(l=>l.id===e?{...l,note:t}:l)),V=async()=>{I(!0),M(null);try{const t=await(0,c.sendTableOrder)(e,j,{note:O,name:v,allergies:W});y([]),N(''),M({kind:'success',text:t.held?`Order ${t.ref} sent. A member of staff will check it, then it goes to the kitchen.`:`Order ${t.ref} sent to the kitchen.`}),D()}catch(e){M({kind:'warn',text:e?.message??'The order was not sent. Please try again or ask a member of staff.'}),A()}finally{I(!1)}};if(m)return(0,x.jsxs)(r.Screen,{title:"Order at the table",children:[(0,x.jsx)(r.Banner,{kind:"warn",title:"Couldn't open the menu",children:m}),(0,x.jsx)(r.Button,{label:"Try again",onPress:()=>{A()}})]});if(!s)return(0,x.jsx)(r.Screen,{title:"Order at the table",children:(0,x.jsx)(r.Muted,{children:"Opening the menu\u2026"})});if(!s.ok)return(0,x.jsx)(r.Screen,{title:"Order at the table",children:(0,x.jsx)(r.Banner,{kind:"warn",title:"This code isn't working",children:s.reason??'Please ask a member of staff.'})});const F=s.open&&j.length>0&&null!==k&&('none'===k||C.length>0)&&!B;return(0,x.jsxs)(r.Screen,{title:`${(0,l.tableNumbers)(s.table)}`,subtitle:s.venueName,footer:s.open?(0,x.jsx)(r.Button,{label:B?'Sending\u2026':j.length?`Send order to the kitchen (${(0,o.gbp)(Y)})`:'Add a dish to order',disabled:!F,onPress:()=>{V()},testID:"send-table-order-live"}):void 0,children:[(0,x.jsxs)(r.Muted,{children:["Tip: add dishes, answer the allergy question, then send. Staff bring it to ",(0,l.tableNumbers)(s.table),". ",d.PAY_WORDS]}),s.tip?(0,x.jsx)(r.Banner,{kind:"demo",children:s.tip}):null,s.open?null:(0,x.jsx)(r.Banner,{kind:"warn",title:"Not taking table orders right now",children:s.reason}),s.open&&s.staffAccept&&!R.some(e=>e.accepted)?(0,x.jsx)(r.Muted,{children:"The first order from your phone is checked by a member of staff before it goes to the kitchen."}):null,L?(0,x.jsx)(r.Banner,{kind:L.kind,children:L.text}):null,R.length?(0,x.jsx)(a.default,{testID:"my-table-orders",children:(0,x.jsxs)(r.Card,{children:[(0,x.jsx)(r.T,{weight:"semibold",children:"Your orders at this table"}),R.map(e=>(0,x.jsxs)(a.default,{style:{gap:2,paddingVertical:4},children:[(0,x.jsxs)(r.Row,{style:{justifyContent:'space-between'},children:[(0,x.jsx)(r.T,{children:e.ref}),(0,x.jsx)(r.T,{size:13,colour:'cancelled'===e.status?u.colours.amber:u.colours.gold,children:(0,d.guestStatusWords)(e)})]}),(0,x.jsxs)(r.Muted,{children:[e.lines.map(e=>`${e.qty}\xd7 ${e.name}`).join(', ')," \xb7 ",(0,o.gbp)(e.totalPence)," to pay at the bar or till"]})]},e.id))]})}):null,s.open?q.map(([e,t])=>(0,x.jsxs)(a.default,{style:{gap:8},children:[(0,x.jsx)(r.H2,{children:e}),t.map(e=>(0,x.jsxs)(r.Card,{children:[(0,x.jsxs)(r.Row,{style:{justifyContent:'space-between',alignItems:'flex-start'},children:[(0,x.jsxs)(a.default,{style:{flex:1,gap:2},children:[(0,x.jsx)(r.T,{weight:"semibold",children:e.name}),e.description?(0,x.jsx)(r.Muted,{children:e.description}):null,(0,x.jsxs)(r.T,{size:13,colour:u.colours.muted,children:[e.allergens.length?`Contains: ${e.allergens.map(i.allergenLabel).join(', ')}`:'No allergens listed: ask staff if unsure',e.mayContain.length?` \xb7 May contain: ${e.mayContain.map(i.allergenLabel).join(', ')}`:'']})]}),(0,x.jsx)(r.T,{weight:"semibold",colour:u.colours.gold,children:(0,o.gbp)(e.pricePence)})]}),e.soldOut?(0,x.jsx)(r.Badge,{kind:"amber",label:"Sold out today"}):z(e.id)?(0,x.jsxs)(r.Row,{style:{justifyContent:'space-between'},children:[(0,x.jsx)(r.Stepper,{value:z(e.id),min:0,max:20,onChange:t=>G(e.id,t),label:e.name}),(0,x.jsx)(r.Button,{small:!0,kind:"ghost",label:"Remove",onPress:()=>G(e.id,0)})]}):(0,x.jsx)(r.Button,{small:!0,kind:"secondary",label:"Add",accessibilityLabel:`Add ${e.name}`,onPress:()=>G(e.id,1)})]},e.id))]},e)):null,s.open&&!_.length?(0,x.jsx)(r.Banner,{kind:"demo",title:"No dishes to order yet",children:"The venue hasn't put any priced dishes on the table menu yet. Please order at the bar."}):null,s.open&&j.length?(0,x.jsx)(a.default,{testID:"table-cart",children:(0,x.jsxs)(r.Card,{children:[(0,x.jsx)(r.T,{weight:"semibold",children:"Your order"}),j.map(e=>{const l=_.find(t=>t.id===e.id);return(0,x.jsxs)(a.default,{style:{gap:4},children:[(0,x.jsxs)(r.Row,{style:{justifyContent:'space-between'},children:[(0,x.jsxs)(r.T,{children:[e.qty,"\xd7 ",l?.name]}),(0,x.jsx)(r.T,{children:(0,o.gbp)(e.qty*(l?.pricePence??0))})]}),(0,x.jsx)(t.TextInput,{style:p,value:e.note,onChangeText:t=>H(e.id,t),placeholder:"Note for the kitchen (optional), e.g. no onions",placeholderTextColor:u.colours.muted,maxLength:140,accessibilityLabel:`Note for ${l?.name}`,testID:`table-note-${e.id}`})]},e.id)}),(0,x.jsxs)(r.Row,{style:{justifyContent:'space-between'},children:[(0,x.jsx)(r.T,{weight:"semibold",children:"Total"}),(0,x.jsx)(r.T,{weight:"semibold",children:(0,o.gbp)(Y)})]})]})}):null,s.open?(0,x.jsx)(a.default,{testID:"table-allergy",children:(0,x.jsxs)(r.Card,{children:[(0,x.jsx)(r.T,{weight:"semibold",children:"Does anyone at the table have a food allergy?"}),(0,x.jsx)(r.Muted,{children:"We ask everyone, so the kitchen can keep you safe."}),(0,x.jsxs)(r.Row,{gap:8,children:[(0,x.jsx)(r.Chip,{label:"No allergies",selected:'none'===k,onPress:()=>w('none')}),(0,x.jsx)(r.Chip,{label:"Yes, allergies",selected:'yes'===k,onPress:()=>w('yes')})]}),'yes'===k?(0,x.jsx)(r.Row,{wrap:!0,gap:6,children:i.ALLERGENS.map(e=>(0,x.jsx)(r.Chip,{label:e.short,selected:C.includes(e.id),onPress:()=>S(t=>t.includes(e.id)?t.filter(t=>t!==e.id):[...t,e.id])},e.id))}):null,E.length?(0,x.jsxs)(r.Banner,{kind:"warn",title:"Check with staff",children:[E.map(e=>e.name).join(', ')," ",E.length>1?'contain':'contains'," or may contain an allergy you picked. The kitchen will see your allergies on the ticket."]}):null]})}):null,s.open?(0,x.jsxs)(r.Card,{children:[(0,x.jsx)(r.T,{weight:"semibold",children:"Anything else?"}),(0,x.jsx)(t.TextInput,{style:p,value:v,onChangeText:P,placeholder:"Your first name (optional)",placeholderTextColor:u.colours.muted,maxLength:40,accessibilityLabel:"Your first name (optional)"}),(0,x.jsx)(t.TextInput,{style:p,value:O,onChangeText:N,placeholder:"Note for the staff (optional)",placeholderTextColor:u.colours.muted,maxLength:300,accessibilityLabel:"Note for the staff (optional)"})]}):null,(0,x.jsx)(a.default,{testID:"pay-placeholder",children:(0,x.jsxs)(r.Card,{children:[(0,x.jsx)(r.T,{weight:"semibold",children:"Paying"}),(0,x.jsx)(r.T,{children:d.PAY_WORDS}),(0,x.jsx)(r.Muted,{children:"No card details are asked for or kept in this app."})]})})]})};var e,t=_r(_d[0]),l=_r(_d[1]),n=_r(_d[2]),s=_r(_d[3]),a=(e=s)&&e.__esModule?e:{default:e},r=_r(_d[4]),i=_r(_d[5]),o=_r(_d[6]),d=_r(_d[7]),c=_r(_d[8]),h=_r(_d[9]),u=_r(_d[10]),x=_r(_d[11]);const p={borderWidth:1,borderColor:u.colours.border,borderRadius:10,padding:10,color:u.colours.text,backgroundColor:u.colours.surface2}},860,[863,803,25,122,808,809,811,862,861,814,816,19]);
|
| 3 |
+
__d(function(g,_r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"tablePublic",{enumerable:!0,get:function(){return s}}),e.sendTableOrder=async function(t,r,a){if(!await(0,n.guestSession)())throw new Error('No connection. Try again when you are back online.');return(0,n.rpc)('guest_table_order',{p_token:t,p_lines:r.map(t=>({id:t.id,qty:t.qty,note:t.note.trim().slice(0,140)})),p_note:a.note.trim().slice(0,300)||null,p_allergies:a.allergies.map(t=>({allergen:t.allergen,severity:t.severity})),p_name:a.name.trim().slice(0,40)||null})},e.myTableOrders=async function(t){return await(0,n.guestSession)()?await(0,n.rpc)('guest_table_my_orders',{p_token:t})??[]:[]},e.loadTableSettings=async function(){const{data:t,error:n}=await a().from('table_order_settings').select('*').eq('venue_id',o()).maybeSingle();if(n)throw n;return(0,r.fromRow)(t)},e.saveTableSettings=async function(t,n){const{error:s}=await a().from('table_order_settings').upsert({venue_id:o(),...(0,r.toRow)(t),updated_at:(new Date).toISOString(),updated_by:n.slice(0,80)});if(s)throw s},e.listTableCodes=async function(){const{data:t,error:n}=await a().from('table_qr_codes').select('table_no, token, created_at').eq('venue_id',o()).eq('is_on',!0);if(n)throw n;return(t??[]).map(t=>({table:String(t.table_no),token:String(t.token),createdAt:String(t.created_at)})).sort((t,n)=>Number(t.table)-Number(n.table))},Object.defineProperty(e,"makeTableCodes",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"renewTableCode",{enumerable:!0,get:function(){return c}}),e.watchTableSettings=function(t){const r=n.useSync.getState().venueId;if(!r)return()=>{};const o=a().channel(`tos-${r}-${Math.random().toString(36).slice(2,8)}`).on('postgres_changes',{event:'*',schema:'public',table:'table_order_settings',filter:`venue_id=eq.${r}`},()=>t()).subscribe();return()=>{a().removeChannel(o)}};var t=_r(d[0]),n=_r(d[1]),r=_r(d[2]);const a=()=>(0,t.getSupabase)(),o=()=>{const t=n.useSync.getState().venueId;if(!t)throw new Error('Not connected to the venue yet.');return t},s=t=>(0,n.rpc)('table_public',{p_token:t});const l=t=>(0,n.rpc)('table_qr_make',{p_venue:o(),p_tables:t}),c=t=>(0,n.rpc)('table_qr_renew',{p_venue:o(),p_table:t})},861,[864,815,862]);
|
kirkmichael/display-app/_expo/static/js/web/__common-493f71fa11e6e63f96217b3704f5d6ca.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
kirkmichael/display-app/_expo/static/js/web/_layout-0376f9cfbed2f0b40f8b5093393c89b9.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
kirkmichael/display-app/_expo/static/js/web/basket-8bd28659b5f58d60b4ad7279e8454177.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),o=_r(d[3]),a=_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),v=(0,y.useAllMenu)(e.restaurantId??void 0),w=(0,y.useCustomer)(),C=(0,y.useOrders)(f?.id),S=(0,y.useStore)(e=>e.setLineQty),B=(0,y.useStore)(e=>e.overrideLine),T=(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,a.startForm)()),[R,z]=(0,n.useState)(''),[A,D]=(0,n.useState)(w.phone??''),[E,_]=(0,n.useState)(w.email??''),[Y,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,W]=(0,n.useState)(!1),J=(0,n.useMemo)(()=>(0,j.linesFromBasket)(e,v,w.allergies),[e,v,w.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 U=H&&'table'===e.mode,V=(0,m.takeawaySlots)(f,C,P),X=J.reduce((e,l)=>e+l.unitPrice*l.qty,0),Z=J.some(e=>e.contains.length&&!e.overridden),ee=e.lines.filter(e=>{const l=v.find(l=>l.id===e.itemId);return!l||l.soldOut||!l.signOff}),le=!U&&!$,te=!U&&f.settings.takeawayPaused,ne=(0,p.ukPhone)(A),se=!Z&&!ee.length&&I&&!le&&!te&&(U||ne.ok&&(0,p.emailOk)(E)),oe=async e=>{const l=await y.repo.orders.placeFromBasket({slotTime:U?void 0:$,tip:0,giftCardCode:e?.giftCardCode,notes:N,paidNow:!U,phone:U?void 0:ne.pretty,email:U?void 0:E.trim()||void 0});(0,a.rememberGuard)(l.id,(0,a.guardFor)({...L,hp:R})),q(!1),t.router.replace(`/customer/order/${l.id}`)},ae=e.lines.find(e=>e.key===G),re=ae?J[e.lines.indexOf(ae)]:void 0;return(0,k.jsxs)(u.Screen,{title:"Your basket",subtitle:`${f.name} \xb7 ${U?`${(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."}),U?(0,k.jsx)(u.Button,{label:"Send order to the kitchen",disabled:!se,onPress:()=>oe(),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:[(U||e.tableNo,null),U?(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,{}),J.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 ${w.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:()=>{W(!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}`)}),U?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===V.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:V.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:w.allergies.length?w.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:w.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')})]}),U?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:_,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:"We\u2019ll text your order confirmation and collection time. Preview mode: nothing is sent in this pilot."})]}),(0,k.jsx)(u.Field,{label:"Order notes (optional)",value:N,onChangeText:F,placeholder:"e.g. cutlery please"}),U?(0,k.jsx)(u.Button,{small:!0,kind:"ghost",label:"Switch to takeaway instead",onPress:()=>T(f.id,'takeaway')}):null,(0,k.jsx)(i.MockPay,{visible:Y,onClose:()=>q(!1),amount:X,restaurantId:f.id,onPaid:e=>oe({giftCardCode:e.giftCardCode}),title:"Pay for your takeaway"}),(0,k.jsxs)(u.Sheet,{visible:!!ae,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:W}),(0,k.jsx)(u.Button,{kind:"danger",disabled:!Q,label:"Confirm override",onPress:()=>{ae&&re&&B(ae.key,re.contains),K(null)}})]}),(0,k.jsx)(o.Honeypot,{value:R,onChange:z})]})}},784,[803,799,25,805,806,122,829,808,809,811,812,813,814,858,816,818,19]);
|
kirkmichael/display-app/_expo/static/js/web/historicalBookingApi-dad74e1416e6ba859166069217ea3178.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}},1086,[25,801,1085,813,815,864]);
|
kirkmichael/display-app/_expo/static/js/web/index-0d972d9036eb93ad853b910c8823d845.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,{})}},794,[799,25,946,801,19]);
|
| 2 |
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.OwnerApp=function(){return null}},946,[]);
|
kirkmichael/display-app/_expo/static/js/web/index-8c84b8eacfeb9b165a92c00972327943.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
kirkmichael/display-app/_expo/static/js/web/index-9c4064ade8a16f7d7e4a3b7ecf13d9cd.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 L}});var l=_r(_d[0]),t=e(_r(_d[1])),s=e(_r(_d[2])),n=_r(_d[3]),r=_r(_d[4]),o=_r(_d[5]),i=_r(_d[6]),d=_r(_d[7]),u=e(d);_r(_d[8]);var c=e(_r(_d[9])),b=e(_r(_d[10])),h=_r(_d[11]),p=_r(_d[12]),f=_r(_d[13]),m=_r(_d[14]),y=_r(_d[15]),x=_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]),A=_r(_d[23]),R=_r(_d[24]),P=_r(_d[25]),I=_r(_d[26]),C=_r(_d[27]),B=_r(_d[28]);const $=['book','takeaway'].includes(P.START_GO??'')?P.START_GO:null;let v=!1,_=!1,M=!1;const N=[{id:'main',label:'Main menu'},{id:'specials',label:'Specials'},{id:'takeaway',label:'Takeaway'}];function L(){const{rid:e}=(0,i.useLocalSearchParams)(),o=(0,j.useRestaurant)(e),d=n.IS_WILDINGS?(0,B.jsx)(s.default,{}):n.IS_KIRKMICHAEL?(0,B.jsx)(t.default,{}):n.IS_SOUTERS?(0,B.jsx)(r.SoutersCustomerHome,{}):(0,B.jsx)(E,{});return!n.IS_WILDINGS&&o?.settings.hotel?.enabled?(0,B.jsx)(l.HotelRequestGate,{rid:e,hotel:o.settings.hotel,children:d}):d}function E(){const{rid:e}=(0,i.useLocalSearchParams)(),l=(0,j.useRestaurant)(e),t=(0,j.useMenu)(e),s=(0,j.useCustomer)(),n=(0,j.useBasket)(),r=(0,j.useStore)(e=>e.startBasket),L=(0,j.useNow)(3e4),[E,H]=(0,d.useState)('All'),[D,W]=(0,d.useState)(null),[G,K]=(0,d.useState)(!1),[F,Y]=(0,d.useState)(!1),[q,z]=(0,d.useState)('takeaway'===$?'takeaway':'main');u.default.useEffect(()=>{$&&!v&&(v=!0,'book'===$?setTimeout(()=>i.router.push(`/customer/${e}/book`),0):setTimeout(()=>{try{document.querySelector('[data-testid="menu-tabs"]')?.scrollIntoView({block:'start'})}catch{}},400))},[e]);const Q=(0,A.useSpecials)(l=>l.current[e]??null),V=!!Q&&(0,R.isToday)(Q.postedAt,L),U=(0,T.useOwner)(e=>e.offers.filter(e=>e.live).length),J=(0,j.useStore)(l=>l.stampCards.find(t=>t.restaurantId===e&&t.customerId===l.customer.id)),X=(0,I.useLiveTile)(e),Z=(0,C.guestServer)();u.default.useEffect(()=>{P.START_TABLE_TOKEN&&!M&&(M=!0,setTimeout(()=>i.router.push(`/table/live/${P.START_TABLE_TOKEN}`),0))},[e]),u.default.useEffect(()=>{P.START_LOYALTY_CODE&&!_&&(_=!0,setTimeout(()=>i.router.push(`/customer/${e}/loyalty`),0))},[e]);const ee=(0,j.useOrderAtTable)(e);if(u.default.useEffect(()=>{ee||n.restaurantId!==e||'table'!==n.mode||j.useStore.setState(e=>({basket:{...e.basket,mode:'takeaway',tableNo:void 0}}))},[ee,n.mode,n.restaurantId,e]),!l)return(0,B.jsx)(f.Screen,{title:"Not found",children:(0,B.jsx)(f.T,{children:"Restaurant not found."})});const le=ee&&n.restaurantId===l.id&&'table'===n.mode,te=l.sections.length?l.sections:Array.from(new Set(t.map(e=>e.section))),se=e=>!(e.soldOut||!e.signOff||null===e.price),ae=t.filter(e=>('All'===E||e.section===E)&&('takeaway'!==q||se(e))),ne=(0,x.hoursFor)(l,L),re=e=>()=>i.router.push(`/customer/${l.id}${e}`),oe=[{icon:'box',label:'Takeaway',sub:'Order to collect',on:()=>{H('All'),z('takeaway'),le&&r(l.id,'takeaway')}},...ee?[{icon:'phone',label:'Order at table',sub:'Scan the QR',on:()=>Y(!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 ${l.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:()=>i.router.push('/customer/profile')},{icon:'tag',label:'Offers',sub:Z?void 0:s.marketingOptIn[l.id]?'Opted in':'Opt in',on:re('/offers'),badge:(Z?X.offers:U)?String(Z?X.offers:U):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,B.jsxs)(f.Screen,{title:l.name,subtitle:`${l.location}${l.phone?` \xb7 ${l.phone}`:''}`,back:'customer'!==S.APP_VARIANT,right:(0,B.jsxs)(f.Row,{children:[(0,B.jsx)(p.BasketButton,{}),(0,B.jsx)(f.Button,{small:!0,kind:"ghost",label:"Account",onPress:()=>i.router.push('/customer/profile')})]}),children:[l.fictional?(0,B.jsx)(f.Banner,{kind:"warn",title:"Fictional demo restaurant",children:"Shown only to demonstrate multi-restaurant support."}):null,le?(0,B.jsx)(f.Banner,{kind:"success",title:`Ordering at ${(0,o.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,B.jsx)(f.Card,{children:(0,B.jsxs)(f.Row,{style:{justifyContent:'space-between'},children:[(0,B.jsxs)(b.default,{style:{flex:1},children:[(0,B.jsx)(f.T,{weight:"semibold",children:"Takeaway \u2014 collection"}),(0,B.jsxs)(f.Muted,{children:[ne?`Kitchen today ${(0,x.kitchenHoursOn)(l,L)[0]}\u2013${(0,x.kitchenHoursOn)(l,L)[1]}`:'Kitchen closed today',l.settings.takeawayPaused?' \xb7 slots paused by the restaurant':'']})]}),(0,B.jsx)(f.Badge,{kind:l.settings.takeawayPaused||!ne?'amber':'ok',label:l.settings.takeawayPaused?'Paused':ne?'Taking orders':'Closed'})]})}),l.fictional?(0,B.jsx)(f.Row,{wrap:!0,gap:8,children:oe.slice(2,7).map(e=>(0,B.jsx)(f.Button,{small:!0,kind:"secondary",label:e.label,onPress:e.on},e.label))}):(0,B.jsx)(b.default,{style:{flexDirection:'row',flexWrap:'wrap',gap:8},children:oe.map(e=>(0,B.jsx)(w.HubTile,{icon:e.icon,label:e.label,sub:e.sub,badge:e.badge,onPress:e.on},e.label))}),le?(0,B.jsx)(f.Button,{small:!0,kind:"danger",label:"Call staff",onPress:()=>K(!0)}):null,G?(0,B.jsx)(f.Banner,{kind:"success",children:"We've told the staff on this device. Calling staff: not set up yet."}):null,l.hoursNote?(0,B.jsx)(f.Muted,{children:l.hoursNote}):null,l.fictional?null:(0,B.jsx)(f.ExampleAllergenNotice,{}),(0,B.jsxs)(f.Muted,{children:["Menu dishes and prices from ",l.name,"\u2019s menu. Items marked \u26a0 conflict with your declared allergies."]}),(0,B.jsx)(b.default,{accessibilityRole:"tablist",testID:"menu-tabs",style:{flexDirection:'row',gap:6,backgroundColor:k.colours.surface,borderRadius:14,borderWidth:1,borderColor:k.colours.border,padding:4},children:N.map(e=>{const l=q===e.id;return(0,B.jsxs)(c.default,{testID:`menu-tab-${e.id}`,accessibilityRole:"tab",accessibilityState:{selected:l},"aria-selected":l,accessibilityLabel:'specials'===e.id&&V?'Specials, updated today':e.label,onPress:()=>z(e.id),style:{flex:1,minHeight:44,borderRadius:10,alignItems:'center',justifyContent:'center',paddingHorizontal:4,backgroundColor:l?k.colours.gold:'transparent'},children:[(0,B.jsx)(f.T,{size:14,weight:"semibold",colour:l?k.colours.onGold:k.colours.text,center:!0,children:e.label}),'specials'===e.id&&V&&!l?(0,B.jsx)(b.default,{style:{position:'absolute',top:6,right:8,width:7,height:7,borderRadius:4,backgroundColor:k.colours.gold}}):null]},e.id)})}),'specials'===q?(0,B.jsx)(O.SpecialsTab,{rid:l.id,declared:s.allergies,now:L}):null,'takeaway'===q?(0,B.jsx)(f.Muted,{children:"Order to collect. Only dishes available to order online are shown; pick a collection slot at checkout."}):null,'specials'!==q?(0,B.jsxs)(f.Row,{wrap:!0,gap:6,children:[(0,B.jsx)(f.Chip,{label:"All",selected:'All'===E,onPress:()=>H('All')}),te.map(e=>(0,B.jsx)(f.Chip,{label:e,selected:E===e,onPress:()=>H(e)},e))]}):null,'specials'!==q?te.filter(e=>('All'===E||e===E)&&ae.some(l=>l.section===e)).map(e=>(0,B.jsxs)(b.default,{style:{gap:10},children:[(0,B.jsx)(f.H2,{style:{color:k.colours.gold,marginTop:6},children:e}),ae.filter(l=>l.section===e).map(e=>{const t=(0,m.conflictsFor)(e.allergens,s.allergies),o=e.soldOut||!e.signOff||null===e.price;return(0,B.jsxs)(f.Card,{highlight:t.contains.length?k.colours.red:t.may.length?k.colours.amber:void 0,children:[(0,B.jsxs)(c.default,{accessibilityRole:"button",onPress:()=>{n.restaurantId&&n.restaurantId===l.id||r(l.id,'takeaway'),i.router.push(`/customer/${l.id}/dish/${e.id}`)},children:[(0,B.jsxs)(f.Row,{style:{justifyContent:'space-between',alignItems:'flex-start'},children:[(0,B.jsx)(f.T,{weight:"semibold",style:{flex:1,paddingRight:8},children:e.name}),(0,B.jsx)(f.T,{weight:"semibold",colour:k.colours.gold,children:null===e.price?e.priceNote??'\u2014':(0,y.gbp)(e.price)})]}),(0,B.jsx)(f.Muted,{numberOfLines:2,children:e.description})]}),(0,B.jsxs)(f.Row,{wrap:!0,gap:6,children:[e.dietary.map(e=>(0,B.jsx)(f.Badge,{kind:"ok",label:e},e)),e.special?(0,B.jsx)(f.Badge,{kind:"gold",label:"Special"}):null,e.soldOut?(0,B.jsx)(f.Badge,{kind:"neutral",label:"Sold out"}):null,e.signOff?null:(0,B.jsx)(f.Badge,{kind:"amber",label:"Awaiting allergen sign-off"}),t.contains.length?(0,B.jsx)(f.Badge,{kind:"red",label:"\u26a0 Contains your allergen"}):t.may.length?(0,B.jsx)(f.Badge,{kind:"amber",label:"\u26a0 May contain your allergen"}):null]}),(0,B.jsx)(h.AllergenChips,{map:e.allergens,declared:s.allergies}),D===e.id?(0,B.jsx)(h.AllergenPanel,{item:e,map:e.allergens,declared:s.allergies}):null,(0,B.jsxs)(f.Row,{gap:8,children:[(0,B.jsx)(f.Button,{small:!0,kind:"ghost",label:D===e.id?'Hide allergen panel':'Allergen panel',onPress:()=>W(D===e.id?null:e.id)}),(0,B.jsx)(b.default,{style:{flex:1}}),(0,B.jsx)(f.Button,{small:!0,label:o?e.soldOut?'Sold out':'Not available online':'Choose',disabled:o,onPress:()=>{n.restaurantId&&n.restaurantId===l.id||r(l.id,'takeaway'),i.router.push(`/customer/${l.id}/dish/${e.id}`)}})]})]},e.id)})]},e)):null,(0,B.jsx)(f.Muted,{children:"Drinks list coming soon. Ask your server for today\u2019s drinks."}),(0,B.jsx)(f.Muted,{children:"Card payments: not set up yet. Pay at the till as usual."}),(0,B.jsx)(w.LauncherLine,{}),ee?(0,B.jsxs)(f.Sheet,{visible:F,onClose:()=>Y(!1),title:"Order at your table",children:[(0,B.jsx)(f.Muted,{children:"Scan the QR code on your table with your phone camera, or pick your table number."}),(0,B.jsx)(f.Row,{wrap:!0,gap:6,children:Array.from({length:12},(e,l)=>String(l+1)).map(e=>(0,B.jsx)(f.Button,{small:!0,kind:"secondary",label:`${(0,o.tableNumbers)(e)}`,onPress:()=>{Y(!1),r(l.id,'table',e)}},e))}),(0,B.jsx)(f.Muted,{children:"Orders go straight to the kitchen. Card payments: not set up yet. Pay at the till as usual."})]}):null]})}},776,[832,833,836,6,841,803,799,25,117,258,122,824,825,808,809,811,810,814,816,842,801,843,839,844,845,846,847,831,19]);
|
| 2 |
+
__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])},832,[25,122,808,848,19]);
|
| 3 |
+
__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 j}});var n=r(d[0]);r(d[1]);var t=e(r(d[2])),s=e(r(d[3])),l=r(d[4]),o=r(d[5]),u=r(d[6]),c=r(d[7]),h=r(d[8]),m=r(d[9]);function j(){const e=c.KIRKMICHAEL_SAMPLE_MENU.menus.find(e=>'main-menu'===e.id);return(0,m.jsxs)(l.Screen,{title:u.KIRKMICHAEL_RESTAURANT.name,back:!1,children:[(0,m.jsx)(o.RestaurantHero,{rid:"kirkmichael",size:180}),(0,m.jsx)(l.T,{center:!0,children:u.KIRKMICHAEL_RESTAURANT.tagline}),(0,m.jsxs)(l.Row,{wrap:!0,children:[(0,m.jsx)(l.Button,{testID:"kirkmichael-book",label:"Book through our website",onPress:()=>{t.default.openURL(u.KIRKMICHAEL_BOOKING_URL)}}),(0,m.jsx)(l.Button,{kind:"secondary",label:"Call 01655 750 200",onPress:()=>{t.default.openURL('tel:01655750200')}})]}),(0,m.jsx)(n.FindPub,{rid:"kirkmichael"}),(0,m.jsxs)(l.Card,{children:[(0,m.jsx)(l.H2,{children:"Opening hours"}),(0,m.jsx)(l.T,{children:"Monday to Wednesday: closed"}),(0,m.jsx)(l.T,{children:"Thursday to Sunday: 13:00\u201322:30"}),(0,m.jsx)(l.Muted,{children:u.KIRKMICHAEL_RESTAURANT.hoursNote}),(0,m.jsx)(l.T,{children:u.KIRKMICHAEL_RESTAURANT.address})]}),(0,m.jsx)(l.Banner,{kind:"warn",title:"Deposit policy \u2014 needs confirmation",children:"No deposit amount or party threshold has been provided. Please confirm directly with the venue when booking."}),(0,m.jsx)(l.Banner,{kind:"warn",title:"Current Sample Menu \u2014 unconfirmed",children:"Reference only, from the venue\u2019s Sample menus collected 5 November 2026. Specials change regularly. Dishes, prices and availability are unconfirmed; ask the venue about every allergy. No allergen information has been signed off."}),(0,m.jsx)(l.Muted,{children:"Bookings are managed by the venue through its own website. Online ordering, takeaway and loyalty are not enabled here."}),e?.categories.map(e=>(0,m.jsxs)(s.default,{style:{gap:10},children:[(0,m.jsx)(l.H2,{children:e.name}),e.items.filter(e=>null!==e.price).map(e=>(0,m.jsxs)(l.Card,{children:[(0,m.jsxs)(l.Row,{style:{justifyContent:'space-between',alignItems:'flex-start'},children:[(0,m.jsx)(l.T,{weight:"semibold",style:{flex:1},children:e.name}),(0,m.jsx)(l.T,{children:null===e.price?'Ask the venue':(0,h.gbp)(Math.round(100*e.price))})]}),e.description?(0,m.jsx)(l.Muted,{children:e.description}):null,(0,m.jsx)(l.Muted,{children:"Sample only \xb7 unconfirmed \xb7 allergens: ask the venue"})]},e.name))]},e.name)),(0,m.jsx)(l.Button,{kind:"secondary",label:"View all current menus on our website",onPress:()=>{t.default.openURL('https://www.kirkmichaelarms.co.uk/menus')}})]})}},833,[849,25,234,122,808,850,7,834,811,19]);
|
| 4 |
+
__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},834,[851,852,835]);
|
| 5 |
+
__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}},835,[]);
|
| 6 |
+
__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])),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,s.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:()=>{t.default.openURL(u.WILDINGS_BOOKING_PHONE)}}),(0,b.jsx)(l.Button,{testID:"wildings-book-email",kind:"secondary",label:"Email to book",onPress:()=>{t.default.openURL(u.WILDINGS_BOOKING_EMAIL)}})]}),(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,{children:"Lunch Monday to Saturday: 12:00\u201314:00"}),(0,b.jsx)(l.T,{children:"Sunday lunch: 12:00\u201314:30"}),(0,b.jsx)(l.T,{children:"Dinner every day: 18:00\u201321:00"}),(0,b.jsx)(l.Muted,{children:"Closed between lunch and dinner. Bar hours to confirm."}),(0,b.jsx)(l.T,{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:()=>{t.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,{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:()=>{t.default.openURL('https://www.wildingshotel.com/team')}})]})}},836,[848,25,234,122,808,850,4,837,811,19]);
|
| 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,"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},837,[851,853,838]);
|
| 8 |
+
__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}},838,[]);
|
| 9 |
+
__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]})})}},839,[854,25,191,251,258,146,122,824,808,844,809,845,813,816,19,840]);
|
| 10 |
+
__d(function(g,r,i,a,m,e,d){"use strict";m.exports={uri:"/kirkmichael/display-app/assets/assets/specials/sample-chalkboard.e7b4e4450a8483d4219bc6a214158d8f.jpg",width:900,height:1200,toString(){return this.uri}}},840,[]);
|
kirkmichael/display-app/_expo/static/js/web/index-bbf930cfe4dbcfc49feac3379bb23940.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
kirkmichael/display-app/_expo/static/js/web/index-f801fa9a60b61bec74a5fd5405137fe3.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:"PILOT"})]}),(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}})]})}},785,[799,25,122,825,808,809,810,814,816,842,6,19]);
|
kirkmichael/display-app/_expo/static/js/web/index-fa13c6f01ca07c4daadcaf5ce2afc748.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
kirkmichael/display-app/_expo/static/js/web/lost-586161353b51f949bd2eada7f19849f4.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 u}});var t=_r(d[0]),n=_r(d[1]),s=_r(d[2]),r=_r(d[3]),l=_r(d[4]),o=_r(d[5]);function u(){const{rid:u}=(0,t.useLocalSearchParams)(),h=(0,r.useRestaurant)(u),c=(0,r.useCustomer)(),x=(0,r.useNow)(6e4),j=(0,l.useOwner)(t=>t.lost),p=(0,l.useOwner)(t=>t.lostReports),[f,y]=(0,n.useState)(''),[w,b]=(0,n.useState)(''),[S,C]=(0,n.useState)(''),[R,v]=(0,n.useState)(!1);if(!h)return(0,o.jsx)(s.Screen,{title:"Not found",children:(0,o.jsx)(s.T,{children:"Restaurant not found."})});const O=p.filter(t=>t.contact.includes(c.email));return(0,o.jsxs)(s.Screen,{title:"Lost property",subtitle:h.name,children:[(0,o.jsxs)(s.Card,{children:[(0,o.jsx)(s.H2,{children:"Recently handed in"}),j.filter(t=>'held'===t.status).map(t=>(0,o.jsxs)(s.Row,{style:{justifyContent:'space-between'},children:[(0,o.jsx)(s.T,{style:{flex:1},children:t.item}),(0,o.jsx)(s.Muted,{children:t.foundAt.slice(0,10)})]},t.id)),j.some(t=>'held'===t.status)?null:(0,o.jsx)(s.Muted,{children:"Nothing handed in right now."}),(0,o.jsx)(s.Muted,{children:"To collect, bring ID or describe the item to staff. Items are kept for 3 months."})]}),R?(0,o.jsxs)(s.Banner,{kind:"success",children:["Report sent to ",h.name,". They'll be in touch if it turns up (sent to the venue on this device only: messaging is not set up yet)."]}):null,(0,o.jsxs)(s.Card,{children:[(0,o.jsx)(s.H2,{children:"Lost something?"}),(0,o.jsx)(s.Field,{label:"What did you lose?",value:f,onChangeText:y,placeholder:"e.g. Grey scarf"}),(0,o.jsx)(s.Field,{label:"When were you in?",value:w,onChangeText:b,placeholder:"e.g. Saturday evening"}),(0,o.jsx)(s.Field,{label:"Where were you sitting? (optional)",value:S,onChangeText:C,placeholder:"e.g. By the window"}),(0,o.jsxs)(s.Muted,{children:["We'll share your name and email (",c.email,") with ",h.name," for this report only."]}),(0,o.jsx)(s.Button,{label:"Send report",disabled:f.trim().length<2||w.trim().length<2,onPress:()=>{l.useOwner.getState().setOwner({lostReports:[{id:`lr-${Date.now()}`,item:f.trim(),when:w.trim(),where:S.trim()||'Not sure',contact:`${c.name} \xb7 ${c.email}`,at:x.toISOString(),status:'open'},...l.useOwner.getState().lostReports]}),y(''),b(''),C(''),v(!0)}})]}),O.length?(0,o.jsxs)(s.Card,{children:[(0,o.jsx)(s.H2,{children:"Your reports"}),O.map(t=>(0,o.jsxs)(s.Row,{style:{justifyContent:'space-between'},children:[(0,o.jsxs)(s.T,{style:{flex:1},children:[t.item," \xb7 ",t.when]}),(0,o.jsx)(s.Badge,{kind:'matched'===t.status?'ok':'open'===t.status?'amber':'neutral',label:'matched'===t.status?'Found!':'open'===t.status?'Looking':'Closed'})]},t.id))]}):null]})}},777,[799,25,808,814,843,19]);
|
kirkmichael/display-app/_expo/static/js/web/loyalty-a6fbeb637c0abe1bd94cfd66e6073dcf.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 j}});var e=_r(d[0]),r=_r(d[1]);_r(d[2]);var s,t=_r(d[3]),n=(s=t)&&s.__esModule?s:{default:s},i=_r(d[4]),o=_r(d[5]),l=_r(d[6]),c=_r(d[7]),u=_r(d[8]),h=_r(d[9]),p=_r(d[10]),f=_r(d[11]);function j(){const{rid:s}=(0,r.useLocalSearchParams)(),t=(0,c.useRestaurant)(s);return e.LIVE_VENUE_BUILD||(0,p.guestServer)()?t?(0,f.jsx)(h.LoyaltyLive,{slug:s,venue:t.name}):(0,f.jsx)(o.Screen,{title:"Not found",children:(0,f.jsx)(o.T,{children:"Restaurant not found."})}):(0,f.jsx)(x,{})}function x(){const{rid:e}=(0,r.useLocalSearchParams)(),s=(0,c.useRestaurant)(e),t=(0,c.useCustomer)(),h=(0,c.useStampCard)(e);if(!s)return(0,f.jsx)(o.Screen,{title:"Not found",children:(0,f.jsx)(o.T,{children:"Restaurant not found."})});const p=s.settings.stampTarget,j=h?.stamps??0;return(0,f.jsxs)(o.Screen,{title:"Stamp card",subtitle:`${s.name} \u2014 this card is just for ${s.name}`,children:[(0,f.jsx)(o.Banner,{kind:"example",title:"Example card (demo)",children:"On a real venue your card is saved by the venue and is the same on any phone."}),(0,f.jsxs)(o.Card,{highlight:u.colours.gold,children:[(0,f.jsxs)(o.Row,{style:{justifyContent:'space-between'},children:[(0,f.jsxs)(o.H2,{children:[j," of ",p," stamps"]}),(0,f.jsxs)(o.T,{colour:u.colours.gold,weight:"semibold",children:["Reward: ",s.settings.stampReward]})]}),(0,f.jsx)(n.default,{style:{flexDirection:'row',flexWrap:'wrap',gap:10,justifyContent:'center',paddingVertical:8},children:Array.from({length:p}).map((e,r)=>(0,f.jsx)(n.default,{accessibilityLabel:r<j?'Stamp collected':'Empty stamp',style:{width:52,height:52,borderRadius:26,borderWidth:2,borderColor:u.colours.gold,backgroundColor:r<j?u.colours.gold:'transparent',alignItems:'center',justifyContent:'center'},children:(0,f.jsx)(o.T,{size:22,colour:r<j?u.colours.onGold:u.colours.border,children:"\u2605"})},r))}),(0,f.jsxs)(o.Muted,{children:["One stamp per paid visit or order over ",(0,l.gbp)(s.settings.stampMinSpend)," \u2014 dine-in, table QR or takeaway. Rewards are funded by ",s.name,"."]}),h?.rewardsAvailable?(0,f.jsx)(o.Banner,{kind:"success",title:`${h.rewardsAvailable} reward${h.rewardsAvailable>1?'s':''} ready: ${s.settings.stampReward}`,children:(0,f.jsx)(o.Button,{small:!0,label:"Use reward (show staff)",onPress:()=>c.repo.loyalty.redeemReward(s.id,t.id)})}):null]}),(0,f.jsxs)(o.Card,{children:[(0,f.jsx)(o.H2,{children:"Show this to staff"}),(0,f.jsx)(o.Muted,{children:"Staff scan this on the tablet to add a stamp for dine-in visits not paid by table QR."}),(0,f.jsx)(i.QR,{value:`covercharge:stamp:${s.id}:${t.id}`,size:190}),(0,f.jsx)(o.T,{center:!0,weight:"semibold",children:t.name})]}),(0,f.jsxs)(o.Card,{children:[(0,f.jsx)(o.H2,{children:"Bring a friend"}),(0,f.jsx)(o.T,{children:"Your referral code"}),(0,f.jsx)(o.T,{size:28,weight:"bold",colour:u.colours.gold,center:!0,children:t.referralCode}),(0,f.jsx)(o.Muted,{children:"When a friend completes their first qualifying paid visit or order, you both get a stamp. One referral reward per new account, phone and card; monthly cap applies."})]}),(0,f.jsxs)(o.Card,{children:[(0,f.jsx)(o.H2,{children:"History"}),(h?.history??[]).length?h.history.slice(0,10).map((e,r)=>(0,f.jsxs)(o.Muted,{children:[e.at.slice(0,10)," \xb7 ",e.source]},r)):(0,f.jsx)(o.Muted,{children:"No stamps yet."})]}),(0,f.jsx)(o.Muted,{children:"Rewards are kept on food (Scottish licensing rules restrict drinks promotions). Stamps are never given for reviews."})]})}},778,[828,799,25,122,855,808,811,814,816,847,831,19]);
|
kirkmichael/display-app/_expo/static/js/web/merch-961d2dff2d3212c0a6b74b20249b4679.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 y}});var e,t=_r(d[0]),n=_r(d[1]),s=_r(d[2]),l=_r(d[3]),r=(e=l)&&e.__esModule?e:{default:e},u=_r(d[4]),o=_r(d[5]),c=_r(d[6]),m=_r(d[7]),h=_r(d[8]),j=_r(d[9]),x=_r(d[10]),f=_r(d[11]),b=_r(d[12]),p=_r(d[13]);function y(){const{rid:e}=(0,n.useLocalSearchParams)(),s=(0,c.useRestaurant)(e),l=(0,c.useCustomer)();return t.LIVE_VENUE_BUILD||(0,b.guestServer)()?s?(0,p.jsx)(f.ShopLive,{slug:e,venue:s.name,guestName:l.name}):(0,p.jsx)(o.Screen,{title:"Not found",children:(0,p.jsx)(o.T,{children:"Restaurant not found."})}):(0,p.jsx)(S,{})}function S(){const{rid:e}=(0,n.useLocalSearchParams)(),t=(0,c.useRestaurant)(e),l=(0,c.useCustomer)(),f=(0,c.useNow)(6e4),b=(0,m.useOwner)(e=>e.merch),[y,S]=(0,s.useState)({}),[k,w]=(0,s.useState)(null),[v,C]=(0,s.useState)(null);if(!t)return(0,p.jsx)(o.Screen,{title:"Not found",children:(0,p.jsx)(o.T,{children:"Restaurant not found."})});const $=b.find(e=>e.id===k),O=e=>y[e]??1;return(0,p.jsxs)(o.Screen,{title:"Shop",subtitle:`${t.name} merch \xb7 collect in the restaurant`,children:[v?(0,p.jsxs)(o.Banner,{kind:"success",title:"Order noted (no payment taken)",children:[v," Collect it at the bar on your next visit."]}):null,b.filter(e=>e.live||0===e.stock).map(e=>(0,p.jsxs)(o.Card,{children:[(0,p.jsxs)(o.Row,{style:{justifyContent:'space-between'},children:[(0,p.jsxs)(r.default,{style:{flex:1},children:[(0,p.jsx)(o.T,{weight:"semibold",children:e.name}),(0,p.jsx)(o.T,{colour:x.colours.gold,weight:"semibold",children:(0,h.gbp)(e.price)})]}),0!==e.stock&&e.live?e.stock<8?(0,p.jsx)(o.Badge,{kind:"amber",label:`${e.stock} left`}):null:(0,p.jsx)(o.Badge,{kind:"neutral",label:"Sold out"})]}),e.live&&e.stock>0?(0,p.jsxs)(o.Row,{style:{justifyContent:'space-between'},children:[(0,p.jsx)(o.Stepper,{value:O(e.id),min:1,max:Math.min(5,e.stock),onChange:t=>S({...y,[e.id]:t}),label:`${e.name} quantity`}),(0,p.jsx)(o.Button,{small:!0,label:`Buy \xb7 ${(0,h.gbp)(e.price*O(e.id))}`,onPress:()=>w(e.id)})]}):null]},e.id)),(0,p.jsxs)(o.Muted,{children:["Collection only. Prices set by ",t.name,"."]}),$?(0,p.jsx)(u.MockPay,{visible:!0,onClose:()=>w(null),amount:$.price*O($.id),restaurantId:t.id,allowGiftCard:!1,title:`Buy ${$.name}`,onPaid:()=>{const e=m.useOwner.getState();e.setOwner({merch:e.merch.map(e=>e.id===$.id?{...e,stock:Math.max(0,e.stock-O($.id))}:e),merchOrders:[{id:`mo-${Date.now()}`,productId:$.id,qty:O($.id),customer:l.name,at:(0,j.ymd)(f),status:'new'},...e.merchOrders]}),C(`${O($.id)} \xd7 ${$.name}, ${(0,h.gbp)($.price*O($.id))}.`),w(null)}}):null]})}},779,[828,799,25,122,829,808,814,843,811,813,816,830,831,19]);
|
kirkmichael/display-app/_expo/static/js/web/offers-5f5dc2f5cb9232e47fc4dcc5f7c1eea3.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 j}});var n=_r(d[0]),t=_r(d[1]);_r(d[2]);var s=_r(d[3]),r=_r(d[4]),o=_r(d[5]),l=_r(d[6]),c=_r(d[7]),u=_r(d[8]),f=_r(d[9]),h=_r(d[10]);function j(){const{rid:o}=(0,t.useLocalSearchParams)(),l=(0,r.useRestaurant)(o);return n.LIVE_VENUE_BUILD||(0,f.guestServer)()?l?(0,h.jsx)(u.OffersLive,{slug:o,venue:l.name}):(0,h.jsx)(s.Screen,{title:"Not found",children:(0,h.jsx)(s.T,{children:"Restaurant not found."})}):(0,h.jsx)(x,{})}function x(){const{rid:n}=(0,t.useLocalSearchParams)(),u=(0,r.useRestaurant)(n),f=(0,r.useCustomer)(),j=(0,o.useOwner)(n=>n.offers);if(!u)return(0,h.jsx)(s.Screen,{title:"Not found",children:(0,h.jsx)(s.T,{children:"Restaurant not found."})});const x=!!f.marketingOptIn[u.id],b=j.filter(n=>n.live),p=b.filter(n=>'special'===n.kind),y=b.filter(n=>'offer'===n.kind);return(0,h.jsxs)(s.Screen,{title:"Specials & offers",subtitle:u.name,children:[(0,h.jsxs)(s.Card,{highlight:x?c.colours.ok:c.colours.gold,children:[(0,h.jsx)(s.Toggle,{label:`Send me offers from ${u.name}`,value:x,onChange:n=>r.repo.customers.update({marketingOptIn:{...f.marketingOptIn,[u.id]:n}})}),(0,h.jsx)(s.Muted,{children:x?'You can switch this off any time. We only use it for this restaurant.':'Off by default. Turn on to see member offers and get the occasional notification (max one a week). You can switch it off any time.'})]}),(0,h.jsx)(s.H2,{children:"Today's specials"}),p.length?p.map(n=>(0,h.jsxs)(s.Card,{children:[(0,h.jsxs)(s.Row,{style:{justifyContent:'space-between'},children:[(0,h.jsx)(s.T,{weight:"semibold",style:{flex:1},children:n.title}),(0,h.jsx)(s.Badge,{kind:"gold",label:"Special"})]}),(0,h.jsx)(s.Muted,{children:n.body})]},n.id)):(0,h.jsx)(s.Muted,{children:"No specials on the board right now."}),(0,h.jsx)(s.H2,{children:"Member offers"}),x?y.length?y.map(n=>(0,h.jsxs)(s.Card,{children:[(0,h.jsxs)(s.Row,{style:{justifyContent:'space-between'},children:[(0,h.jsx)(s.T,{weight:"semibold",style:{flex:1},children:n.title}),(0,h.jsx)(s.Badge,{kind:"ok",label:"Offer"})]}),(0,h.jsx)(s.Muted,{children:n.body}),n.until?(0,h.jsxs)(s.Muted,{children:["Until ",(0,l.niceDate)((0,l.parseYmd)(n.until))]}):null]},n.id)):(0,h.jsx)(s.Muted,{children:"No offers right now."}):(0,h.jsxs)(s.Banner,{kind:"info",children:["Turn on offers above to see ",y.length," member offer",1===y.length?'':'s',"."]}),(0,h.jsxs)(s.Muted,{children:["Offers are set by ",u.name,". Drinks promotions follow Scottish licensing rules. Demo: no notifications are sent."]})]})}},780,[828,799,25,808,814,843,813,816,847,831,19]);
|
kirkmichael/display-app/_expo/static/js/web/profile-d193c0c1fc297da298e302d128a98226.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 y}});var e=_r(d[0]),r=_r(d[1]),s=_r(d[2]);_r(d[3]);var t,l=_r(d[4]),n=(t=l)&&t.__esModule?t:{default:t},a=_r(d[5]),o=_r(d[6]),u=_r(d[7]),c=_r(d[8]),h=_r(d[9]),p=_r(d[10]),b=_r(d[11]);function y(){const t=(0,h.useCustomer)(),l=(0,h.useStore)((0,p.useShallow)(e=>e.orders.filter(r=>r.customerId===e.customer.id))),y=(0,h.useStore)((0,p.useShallow)(e=>e.bookings.filter(r=>r.customerId===e.customer.id))),x=(0,h.useStore)(e=>e.restaurants),j=e=>x.find(r=>r.id===e)?.name??e;return(0,b.jsxs)(a.Screen,{title:"Your account",subtitle:"One CoverCharge account for every restaurant",children:[(0,b.jsxs)(a.Card,{children:[(0,b.jsx)(a.Field,{label:"Name",value:t.name,onChangeText:e=>h.repo.customers.update({name:e})}),(0,b.jsx)(a.Field,{label:"Email",value:t.email,keyboardType:"email-address",onChangeText:e=>h.repo.customers.update({email:e})}),(0,b.jsx)(a.Field,{label:"Mobile",value:t.phone,keyboardType:"phone-pad",onChangeText:e=>h.repo.customers.update({phone:e})}),(0,b.jsx)(a.Muted,{children:(0,r.guestServer)()?'Your bring-a-friend code is on each restaurant\u2019s stamp card.':`Referral code: ${t.referralCode}`})]}),(0,b.jsxs)(a.Card,{children:[(0,b.jsx)(a.H2,{children:"Allergies & severity"}),(0,b.jsx)(a.Muted,{children:"Stored once and shared with a restaurant only when you order or book there. You confirm them on every order, table session and booking."}),(0,b.jsx)(a.Toggle,{label:"I consent to CoverCharge storing my allergy information (health data, UK GDPR)",value:t.allergyConsent,onChange:e=>h.repo.customers.update({allergyConsent:e})}),t.allergyConsent?null:(0,b.jsx)(a.Banner,{kind:"warn",children:"Without consent your allergies won\u2019t be stored \u2014 tell staff directly."}),o.ALLERGENS.map(e=>{const r=t.allergies.find(r=>r.allergen===e.id);return(0,b.jsxs)(n.default,{style:{gap:6,paddingVertical:6},children:[(0,b.jsxs)(a.Row,{style:{justifyContent:'space-between'},children:[(0,b.jsx)(a.T,{weight:r?'semibold':'regular',children:e.label}),r?(0,b.jsx)(a.Badge,{kind:"red",label:"Declared"}):null]}),(0,b.jsxs)(a.Row,{wrap:!0,gap:6,children:[(0,b.jsx)(a.Chip,{label:"None",selected:!r,onPress:()=>h.repo.customers.setAllergy(e.id,null),disabled:!t.allergyConsent&&!r}),o.SEVERITIES.map(s=>(0,b.jsx)(a.Chip,{label:s.label,selected:r?.severity===s.id,disabled:!t.allergyConsent,onPress:()=>h.repo.customers.setAllergy(e.id,s.id)},s.id))]})]},e.id)})]}),(0,b.jsxs)(a.Card,{children:[(0,b.jsx)(a.H2,{children:"Your orders"}),l.length?l.map(r=>(0,b.jsxs)(a.Row,{style:{justifyContent:'space-between'},children:[(0,b.jsxs)(a.T,{style:{flex:1},children:[r.ref," \xb7 ",j(r.restaurantId)," \xb7 ",'table'===r.type?`${(0,e.tableNumbers)(r.tableNo)}`:'Takeaway']}),(0,b.jsx)(a.Button,{small:!0,kind:"secondary",label:`${r.status} \xb7 ${(0,u.gbp)(r.subtotal+r.tip)}`,onPress:()=>s.router.push(`/customer/order/${r.id}`)})]},r.id)):(0,b.jsx)(a.Muted,{children:"No orders yet."})]}),(0,b.jsxs)(a.Card,{children:[(0,b.jsx)(a.H2,{children:"Your bookings"}),y.length?y.map(e=>(0,b.jsxs)(a.T,{children:[e.ref," \xb7 ",j(e.restaurantId)," \xb7 ",(0,c.niceDate)((0,c.parseYmd)(e.date))," ",e.time," \xb7 ",e.partySize," people \xb7 ",e.status]},e.id)):(0,b.jsx)(a.Muted,{children:"No bookings yet."})]}),(0,b.jsx)(a.Muted,{children:"Account deletion and data export would live here (Apple 5.1.1(v); Google web deletion link)."})]})}},787,[803,831,799,25,122,808,809,811,813,814,859,19]);
|
kirkmichael/display-app/_expo/static/js/web/refer-9203974d28766a9f821fa5e3b7706fc5.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 j}});var r=_r(d[0]),n=_r(d[1]),s=_r(d[2]),t=_r(d[3]),l=_r(d[4]),o=_r(d[5]),u=_r(d[6]),c=_r(d[7]),h=_r(d[8]),f=_r(d[9]);function j(){const{rid:s}=(0,n.useLocalSearchParams)(),o=(0,l.useRestaurant)(s);return r.LIVE_VENUE_BUILD||(0,h.guestServer)()?o?(0,f.jsx)(c.ReferLive,{slug:s,venue:o.name}):(0,f.jsx)(t.Screen,{title:"Not found",children:(0,f.jsx)(t.T,{children:"Restaurant not found."})}):(0,f.jsx)(x,{})}function x(){const{rid:r}=(0,n.useLocalSearchParams)(),c=(0,l.useRestaurant)(r),h=(0,l.useCustomer)(),j=(0,o.useOwner)(r=>r.referral),x=(0,o.useOwner)(r=>r.referrals),[p,w]=(0,s.useState)(!1);if(!c)return(0,f.jsx)(t.Screen,{title:"Not found",children:(0,f.jsx)(t.T,{children:"Restaurant not found."})});const b=x.filter(r=>r.referrer===h.name);return(0,f.jsxs)(t.Screen,{title:"Bring a friend",subtitle:c.name,children:[j.active?null:(0,f.jsxs)(t.Banner,{kind:"info",children:[c.name," isn't running referrals right now."]}),(0,f.jsxs)(t.Card,{highlight:u.colours.gold,children:[(0,f.jsxs)(t.H2,{children:["You get: ",j.giverReward]}),(0,f.jsxs)(t.T,{children:["Your friend gets: ",j.friendReward]}),(0,f.jsx)(t.Muted,{children:"When your friend makes their first paid visit or order."}),(0,f.jsx)(t.T,{size:30,weight:"bold",colour:u.colours.gold,center:!0,children:h.referralCode}),(0,f.jsx)(t.Button,{label:"Share my code",disabled:!j.active,onPress:()=>w(!0)}),p?(0,f.jsx)(t.Muted,{center:!0,children:"Demo: in the real app this opens your phone's share sheet. Nothing is sent from here."}):null]}),(0,f.jsxs)(t.Card,{children:[(0,f.jsx)(t.H2,{children:"Your referrals"}),b.length?b.map(r=>(0,f.jsxs)(t.Row,{style:{justifyContent:'space-between'},children:[(0,f.jsx)(t.T,{style:{flex:1},children:r.friend}),(0,f.jsx)(t.Badge,{kind:'rewarded'===r.status?'ok':'amber',label:r.status})]},r.id)):(0,f.jsx)(t.Muted,{children:"No referrals yet."})]}),(0,f.jsx)(t.Muted,{children:"One reward per new account, phone and card. Monthly cap applies. Rewards are on food, not drinks."})]})}},781,[828,799,25,808,814,843,816,847,831,19]);
|
kirkmichael/display-app/_expo/static/js/web/waitlist-c6ee0b340f7b1536f03ab4f746968f45.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)(),j=(0,u.useRestaurant)(h),x=(0,u.useCustomer)(),b=(0,u.useWaitlist)(h),y=(0,u.useBookings)(h),f=(0,u.useOrders)(h),w=(0,u.useEvents)(h),p=(0,u.useNow)(15e3),[M,S]=(0,s.useState)(2),[v,P]=(0,s.useState)(x.name);if(!j)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===x.id),B=(0,r.forecastToday)(j,y,f,w,p),C=B.nextHour?Math.min(1.6,Math.max(.8,B.nextHour.covers/(.75*j.settings.capacityPerHour))):1;if(k){const t=T.indexOf(k)+1;return(0,c.jsxs)(n.Screen,{title:"You\u2019re on the waitlist",subtitle:j.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,j.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:"We\u2019ll notify you when your table is ready (push/SMS simulated in this prototype)."}),(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:j.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,j.settings.turnMins,C)," minutes (estimate)."]})]}),(0,c.jsx)(n.Field,{label:"Name",value:v,onChangeText:P}),(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:M,onChange:S,min:1,max:12,label:"party size"})]}),(0,c.jsx)(n.Button,{label:"Join the queue",disabled:v.trim().length<2,onPress:()=>u.repo.waitlist.join(j.id,v,M,x.id),testID:"join-waitlist"}),(0,c.jsx)(n.Muted,{children:"Waitlist messages are service messages only \u2014 no marketing."})]})}},782,[799,25,808,813,856,857,814,816,19]);
|
kirkmichael/display-app/display.html
CHANGED
|
@@ -35,6 +35,6 @@
|
|
| 35 |
<noscript> You need to enable JavaScript to run this app. </noscript>
|
| 36 |
<!-- The root element for your Expo app. -->
|
| 37 |
<div id="root"><div style="position:fixed;inset:0;background:#0B0B0B;display:grid;place-items:center"><img src="/kirkmichael/display-app/brand-hero-49dc0730ea9f262a.png" alt="The Kirkmichael Arms" width="180" height="180"></div></div>
|
| 38 |
-
<script src="/kirkmichael/display-app/_expo/static/js/web/__expo-metro-runtime-8c088df87a31e4e6accd81c554ec290d.js" defer></script><script src="/kirkmichael/display-app/_expo/static/js/web/__common-
|
| 39 |
</body>
|
| 40 |
</html>
|
|
|
|
| 35 |
<noscript> You need to enable JavaScript to run this app. </noscript>
|
| 36 |
<!-- The root element for your Expo app. -->
|
| 37 |
<div id="root"><div style="position:fixed;inset:0;background:#0B0B0B;display:grid;place-items:center"><img src="/kirkmichael/display-app/brand-hero-49dc0730ea9f262a.png" alt="The Kirkmichael Arms" width="180" height="180"></div></div>
|
| 38 |
+
<script src="/kirkmichael/display-app/_expo/static/js/web/__expo-metro-runtime-8c088df87a31e4e6accd81c554ec290d.js" defer></script><script src="/kirkmichael/display-app/_expo/static/js/web/__common-493f71fa11e6e63f96217b3704f5d6ca.js" defer></script><script src="/kirkmichael/display-app/_expo/static/js/web/index-fa13c6f01ca07c4daadcaf5ce2afc748.js" defer></script>
|
| 39 |
</body>
|
| 40 |
</html>
|
kirkmichael/display-app/index.html
CHANGED
|
@@ -35,6 +35,6 @@
|
|
| 35 |
<noscript> You need to enable JavaScript to run this app. </noscript>
|
| 36 |
<!-- The root element for your Expo app. -->
|
| 37 |
<div id="root"><div style="position:fixed;inset:0;background:#0B0B0B;display:grid;place-items:center"><img src="/kirkmichael/display-app/brand-hero-49dc0730ea9f262a.png" alt="The Kirkmichael Arms" width="180" height="180"></div></div>
|
| 38 |
-
<script src="/kirkmichael/display-app/_expo/static/js/web/__expo-metro-runtime-8c088df87a31e4e6accd81c554ec290d.js" defer></script><script src="/kirkmichael/display-app/_expo/static/js/web/__common-
|
| 39 |
</body>
|
| 40 |
</html>
|
|
|
|
| 35 |
<noscript> You need to enable JavaScript to run this app. </noscript>
|
| 36 |
<!-- The root element for your Expo app. -->
|
| 37 |
<div id="root"><div style="position:fixed;inset:0;background:#0B0B0B;display:grid;place-items:center"><img src="/kirkmichael/display-app/brand-hero-49dc0730ea9f262a.png" alt="The Kirkmichael Arms" width="180" height="180"></div></div>
|
| 38 |
+
<script src="/kirkmichael/display-app/_expo/static/js/web/__expo-metro-runtime-8c088df87a31e4e6accd81c554ec290d.js" defer></script><script src="/kirkmichael/display-app/_expo/static/js/web/__common-493f71fa11e6e63f96217b3704f5d6ca.js" defer></script><script src="/kirkmichael/display-app/_expo/static/js/web/index-fa13c6f01ca07c4daadcaf5ce2afc748.js" defer></script>
|
| 39 |
</body>
|
| 40 |
</html>
|
kirkmichael/display-app/sw.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
const V="cc-kirkmichael-display-
|
| 2 |
self.addEventListener('install',e=>e.waitUntil(caches.open(V).then(c=>Promise.all(P.map(u=>fetch(u,{cache:'reload'}).then(r=>r.blob().then(b=>c.put(u,new Response(b,{status:200,headers:{'Content-Type':r.headers.get('Content-Type')||b.type}}))))))).then(()=>self.skipWaiting())));
|
| 3 |
self.addEventListener('activate',e=>e.waitUntil(caches.keys().then(ks=>Promise.all(ks.filter(k=>k.startsWith('cc-kirkmichael-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,{ignoreSearch:true}).then(r=>r||fetch(e.request)));});
|
|
|
|
| 1 |
+
const V="cc-kirkmichael-display-3efd297b4f19",B="/kirkmichael/display-app/",P=["/kirkmichael/display-app/apple-touch-icon.png", "/kirkmichael/display-app/favicon.ico", "/kirkmichael/display-app/icon-192.png", "/kirkmichael/display-app/icon-512.png", "/kirkmichael/display-app/brand-logo.png", "/kirkmichael/display-app/brand-logo-49dc0730ea9f262a.png", "/kirkmichael/display-app/brand-promo-0c6f924a45db0ac9.png", "/kirkmichael/display-app/apple-touch-icon-49dc0730ea9f262a.png", "/kirkmichael/display-app/icon-192-49dc0730ea9f262a.png", "/kirkmichael/display-app/index.html", "/kirkmichael/display-app/display.html", "/kirkmichael/display-app/brand-promo.png", "/kirkmichael/display-app/manifest.webmanifest", "/kirkmichael/display-app/manifest-49dc0730ea9f262a.webmanifest", "/kirkmichael/display-app/brand-hero.png", "/kirkmichael/display-app/icon-512-49dc0730ea9f262a.png", "/kirkmichael/display-app/brand-hero-49dc0730ea9f262a.png", "/kirkmichael/display-app/_expo/static/js/web/index-55968b864270f8c0b2fd56d95d738105.js", "/kirkmichael/display-app/_expo/static/js/web/merch-961d2dff2d3212c0a6b74b20249b4679.js", "/kirkmichael/display-app/_expo/static/js/web/[token]-7af999b0f03c6c78c62cdacac00832e3.js", "/kirkmichael/display-app/_expo/static/js/web/index-278722b702aea5ed8c0be2fbfa13d349.js", "/kirkmichael/display-app/_expo/static/js/web/refer-9203974d28766a9f821fa5e3b7706fc5.js", "/kirkmichael/display-app/_expo/static/js/web/lost-586161353b51f949bd2eada7f19849f4.js", "/kirkmichael/display-app/_expo/static/js/web/gift-6295ae1f920911c0650429abf76f6927.js", "/kirkmichael/display-app/_expo/static/js/web/[did]-aa1f9793ba61b7027dc7b3794608c02b.js", "/kirkmichael/display-app/_expo/static/js/web/_layout-0376f9cfbed2f0b40f8b5093393c89b9.js", "/kirkmichael/display-app/_expo/static/js/web/index-0d972d9036eb93ad853b910c8823d845.js", "/kirkmichael/display-app/_expo/static/js/web/book-7ccaf582608453fa41bd70c1422647e4.js", "/kirkmichael/display-app/_expo/static/js/web/basket-8bd28659b5f58d60b4ad7279e8454177.js", "/kirkmichael/display-app/_expo/static/js/web/profile-d193c0c1fc297da298e302d128a98226.js", "/kirkmichael/display-app/_expo/static/js/web/[n]-2ad27b31427ee0b2228d775d0103110c.js", "/kirkmichael/display-app/_expo/static/js/web/offers-5f5dc2f5cb9232e47fc4dcc5f7c1eea3.js", "/kirkmichael/display-app/_expo/static/js/web/__expo-metro-runtime-8c088df87a31e4e6accd81c554ec290d.js", "/kirkmichael/display-app/_expo/static/js/web/waitlist-c6ee0b340f7b1536f03ab4f746968f45.js", "/kirkmichael/display-app/_expo/static/js/web/index-bbf930cfe4dbcfc49feac3379bb23940.js", "/kirkmichael/display-app/_expo/static/js/web/index-e2fb2da868c40e525297858392efa815.js", "/kirkmichael/display-app/_expo/static/js/web/index-9c4064ade8a16f7d7e4a3b7ecf13d9cd.js", "/kirkmichael/display-app/_expo/static/js/web/feedback-68afe9c95f4a0b4be7d7e264f0e4f114.js", "/kirkmichael/display-app/_expo/static/js/web/__common-493f71fa11e6e63f96217b3704f5d6ca.js", "/kirkmichael/display-app/_expo/static/js/web/whatson-1558c0cfcbad93b781c72c279888a738.js", "/kirkmichael/display-app/_expo/static/js/web/historicalBookingApi-dad74e1416e6ba859166069217ea3178.js", "/kirkmichael/display-app/_expo/static/js/web/index-f801fa9a60b61bec74a5fd5405137fe3.js", "/kirkmichael/display-app/_expo/static/js/web/[oid]-67b1e8b4cc5576cba86cc6c5442d5fd6.js", "/kirkmichael/display-app/_expo/static/js/web/demo-5e158e96def3710de1590e6d53c4eb0d.js", "/kirkmichael/display-app/_expo/static/js/web/index-fa13c6f01ca07c4daadcaf5ce2afc748.js", "/kirkmichael/display-app/_expo/static/js/web/index-8c84b8eacfeb9b165a92c00972327943.js", "/kirkmichael/display-app/_expo/static/js/web/index-0c443ec800fe594dba2afac8fee70a6b.js", "/kirkmichael/display-app/_expo/static/js/web/loyalty-a6fbeb637c0abe1bd94cfd66e6073dcf.js", "/kirkmichael/display-app/_expo/static/js/web/[section]-7e6b51e93a90c3125cf8ae4b0be4cad4.js", "/kirkmichael/display-app/_expo/static/js/web/+not-found-4d4303e173fe1eacdeea21b55b14713e.js", "/kirkmichael/display-app/assets/node_modules/expo-router/assets/pkg.ab19f4cbc543357183a20571f68380a3.png", "/kirkmichael/display-app/assets/node_modules/expo-router/assets/sitemap.412dd9275b6b48ad28f5e3d81bb1f626.png", "/kirkmichael/display-app/assets/node_modules/expo-router/assets/file.19eeb73b9593a38f8e9f418337fc7d10.png", "/kirkmichael/display-app/assets/node_modules/expo-router/assets/unmatched.20e71bdf79e3a97bf55fd9e164041578.png", "/kirkmichael/display-app/assets/node_modules/expo-router/assets/forward.d8b800c443b8972542883e0b9de2bdc6.png", "/kirkmichael/display-app/assets/node_modules/expo-router/assets/error.d1ea1496f9057eb392d5bbf3732a61b7.png", "/kirkmichael/display-app/assets/node_modules/expo-router/assets/arrow_down.017bc6ba3fc25503e5eb5e53826d48a8.png", "/kirkmichael/display-app/assets/node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@3x.png", "/kirkmichael/display-app/assets/node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7.png", "/kirkmichael/display-app/assets/node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@3x.png", "/kirkmichael/display-app/assets/node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@4x.png", "/kirkmichael/display-app/assets/node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@2x.png", "/kirkmichael/display-app/assets/node_modules/expo-router/assets/react-navigation/elements/search-icon.286d67d3f74808a60a78d3ebf1a5fb57.png", "/kirkmichael/display-app/assets/node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55.png", "/kirkmichael/display-app/assets/node_modules/expo-router/assets/react-navigation/elements/back-icon-mask.0a328cd9c1afd0afe8e3b1ec5165b1b4.png", "/kirkmichael/display-app/assets/node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@2x.png", "/kirkmichael/display-app/assets/node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@4x.png", "/kirkmichael/display-app/assets/node_modules/expo-router/assets/react-navigation/elements/back-icon.35ba0eaec5a4f5ed12ca16fabeae451d.png", "/kirkmichael/display-app/assets/node_modules/@expo-google-fonts/poppins/500Medium/Poppins_500Medium.bf59c687bc6d3a70204d3944082c5cc0.ttf", "/kirkmichael/display-app/assets/node_modules/@expo-google-fonts/poppins/600SemiBold/Poppins_600SemiBold.6f1520d107205975713ba09df778f93f.ttf", "/kirkmichael/display-app/assets/node_modules/@expo-google-fonts/poppins/700Bold/Poppins_700Bold.08c20a487911694291bd8c5de41315ad.ttf", "/kirkmichael/display-app/assets/node_modules/@expo-google-fonts/poppins/400Regular/Poppins_400Regular.093ee89be9ede30383f39a899c485a82.ttf", "/kirkmichael/display-app/assets/assets/specials/sample-chalkboard.e7b4e4450a8483d4219bc6a214158d8f.jpg", "/kirkmichael/display-app/assets/assets/recipes/moules.a4f342fc7e7fb62c8a0b5c1678bbea3f.jpg", "/kirkmichael/display-app/assets/assets/recipes/stp.1061ced765efdcafff2554adc3fc7113.jpg", "/kirkmichael/display-app/assets/assets/recipes/skink.4ce7b7c676f9cdcd0a060eda46f5a00e.jpg", "/kirkmichael/display-app/assets/assets/recipes/fishsupper.1609c58319e1e8721f5c639049fb054e.jpg", "/kirkmichael/display-app/assets/assets/recipes/lobster.2fb3485c8e372972099259017358c1b8.jpg", "/kirkmichael/display-app/assets/assets/brand/wildings.076f4fcd06d19a0af0205c410f461b14.png", "/kirkmichael/display-app/assets/assets/brand/anchorage-hero.0450b828e4f9c1f4456240096598f6f5.png", "/kirkmichael/display-app/assets/assets/brand/kirkmichael.63b13cde7fd82eb622622b39ac80c394.png", "/kirkmichael/display-app/assets/assets/brand/brae.8de9e89ac30966c6669de990370d8e40.png", "/kirkmichael/display-app/assets/assets/brand/kirkmichael-hero.63b13cde7fd82eb622622b39ac80c394.png", "/kirkmichael/display-app/assets/assets/brand/anchorage.fea5ce2f6fd18bf2950aa21c0980ed8e.png", "/kirkmichael/display-app/assets/assets/brand/wildings-hero-logo-text.4661e4b935726f2511f9c17a1567c89a.png", "/kirkmichael/display-app/assets/assets/brand/saltmarsh.85a6a65732635e5148478d743d9ca884.png", "/kirkmichael/display-app/assets/assets/brand/souters.f4c58d9349b6e1700fe5abcc9e9b665c.png"];
|
| 2 |
self.addEventListener('install',e=>e.waitUntil(caches.open(V).then(c=>Promise.all(P.map(u=>fetch(u,{cache:'reload'}).then(r=>r.blob().then(b=>c.put(u,new Response(b,{status:200,headers:{'Content-Type':r.headers.get('Content-Type')||b.type}}))))))).then(()=>self.skipWaiting())));
|
| 3 |
self.addEventListener('activate',e=>e.waitUntil(caches.keys().then(ks=>Promise.all(ks.filter(k=>k.startsWith('cc-kirkmichael-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,{ignoreSearch:true}).then(r=>r||fetch(e.request)));});
|
kirkmichael/downloads/android/SHA256.txt
CHANGED
|
@@ -1,4 +1,2 @@
|
|
| 1 |
779c733db9863f862dffdef3f80c239d7915decef36129bdd579f891ab2a207a Kirkmichael-Managers-v0.3.12.69-phone.apk
|
| 2 |
8f28b29c2c6010d3a194012ca9e25f31fe9b345747b2b02066516d6f93259fe5 Kirkmichael-Staff-v0.3.12.69-phone.apk
|
| 3 |
-
d7d2cb3a6a94eb4dd9bbbe7310442b02d6657b470c0548c455907becc187724a Kirkmichael-Managers-v0.3.12.63-phone.apk
|
| 4 |
-
ddfe4be9707858b7b02114d6600aa8b293e7b11f66fa1a8bea31dafadbbf2fc4 Kirkmichael-Staff-v0.3.12.63-phone.apk
|
|
|
|
| 1 |
779c733db9863f862dffdef3f80c239d7915decef36129bdd579f891ab2a207a Kirkmichael-Managers-v0.3.12.69-phone.apk
|
| 2 |
8f28b29c2c6010d3a194012ca9e25f31fe9b345747b2b02066516d6f93259fe5 Kirkmichael-Staff-v0.3.12.69-phone.apk
|
|
|
|
|
|
kirkmichael/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"><title>The Kirkmichael Arms · Head Chef</title><link rel='icon' type='image/png' href='/kirkmichael/customer-app/icon-192-49dc0730ea9f262a.png'><link rel='apple-touch-icon' href='/kirkmichael/customer-app/apple-touch-icon-49dc0730ea9f262a.png'><meta property='og:image' content='https://covercharge-apps.static.hf.space/kirkmichael/customer-app/brand-promo-0c6f924a45db0ac9.png'></head><body style="margin:0;background:#0B0B0B;color:#F5F1E8;font:18px system-ui;padding:32px"><img src="../chef-app/brand-promo-0c6f924a45db0ac9.png" alt="The Kirkmichael Arms" style="display:block;width:100%;max-width:360px;height:auto"><h1>The Kirkmichael Arms · Head Chef</h1><p>Open in Safari or Chrome. Use the browser menu to add to your Home Screen.</p><p><a style="color:#B87754" href="/kirkmichael/chef-app/index.html">Open Head Chef</a></p><p>Open your complete private Android or iPhone link to sign in automatically.</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"><title>The Kirkmichael Arms · Head Chef</title><link rel='icon' type='image/png' href='/kirkmichael/customer-app/icon-192-49dc0730ea9f262a.png'><link rel='apple-touch-icon' href='/kirkmichael/customer-app/apple-touch-icon-49dc0730ea9f262a.png'><meta property='og:image' content='https://covercharge-apps.static.hf.space/kirkmichael/customer-app/brand-promo-0c6f924a45db0ac9.png'></head><body style="margin:0;background:#0B0B0B;color:#F5F1E8;font:18px system-ui;padding:32px"><img src="../chef-app/brand-promo-0c6f924a45db0ac9.png" alt="The Kirkmichael Arms" style="display:block;width:100%;max-width:360px;height:auto"><h1>The Kirkmichael Arms · Head Chef</h1><p>Open in Safari or Chrome. Use the browser menu to add to your Home Screen.</p><p><a style="color:#B87754" href="/kirkmichael/chef-app/index.html">Open Head Chef</a></p><p>Open your complete private Android or iPhone link to sign in automatically.</p><small>v0.3.12.72</small></body></html>
|
kirkmichael/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"><title>The Kirkmichael Arms · Customer</title><link rel='icon' type='image/png' href='/kirkmichael/customer-app/icon-192-49dc0730ea9f262a.png'><link rel='apple-touch-icon' href='/kirkmichael/customer-app/apple-touch-icon-49dc0730ea9f262a.png'><meta property='og:image' content='https://covercharge-apps.static.hf.space/kirkmichael/customer-app/brand-promo-0c6f924a45db0ac9.png'></head><body style="margin:0;background:#0B0B0B;color:#F5F1E8;font:18px system-ui;padding:32px"><img src="../customer-app/brand-promo-0c6f924a45db0ac9.png" alt="The Kirkmichael Arms" style="display:block;width:100%;max-width:360px;height:auto"><h1>The Kirkmichael Arms · Customer</h1><p>Open in Safari or Chrome. Use the browser menu to add to your Home Screen.</p><p><a style="color:#B87754" href="/kirkmichael/customer-app/index.html">Open Customer</a></p><p>No personal link or pairing code is included.</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"><title>The Kirkmichael Arms · Customer</title><link rel='icon' type='image/png' href='/kirkmichael/customer-app/icon-192-49dc0730ea9f262a.png'><link rel='apple-touch-icon' href='/kirkmichael/customer-app/apple-touch-icon-49dc0730ea9f262a.png'><meta property='og:image' content='https://covercharge-apps.static.hf.space/kirkmichael/customer-app/brand-promo-0c6f924a45db0ac9.png'></head><body style="margin:0;background:#0B0B0B;color:#F5F1E8;font:18px system-ui;padding:32px"><img src="../customer-app/brand-promo-0c6f924a45db0ac9.png" alt="The Kirkmichael Arms" style="display:block;width:100%;max-width:360px;height:auto"><h1>The Kirkmichael Arms · Customer</h1><p>Open in Safari or Chrome. Use the browser menu to add to your Home Screen.</p><p><a style="color:#B87754" href="/kirkmichael/customer-app/index.html">Open Customer</a></p><p>No personal link or pairing code is included.</p><small>v0.3.12.72</small></body></html>
|
kirkmichael/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"><title>The Kirkmichael Arms · Display</title><link rel='icon' type='image/png' href='/kirkmichael/customer-app/icon-192-49dc0730ea9f262a.png'><link rel='apple-touch-icon' href='/kirkmichael/customer-app/apple-touch-icon-49dc0730ea9f262a.png'><meta property='og:image' content='https://covercharge-apps.static.hf.space/kirkmichael/customer-app/brand-promo-0c6f924a45db0ac9.png'></head><body style="margin:0;background:#0B0B0B;color:#F5F1E8;font:18px system-ui;padding:32px"><img src="../display-app/brand-promo-0c6f924a45db0ac9.png" alt="The Kirkmichael Arms" style="display:block;width:100%;max-width:360px;height:auto"><h1>The Kirkmichael Arms · Display</h1><p>Open in Safari or Chrome. Use the browser menu to add to your Home Screen.</p><p><a style="color:#B87754" href="/kirkmichael/display-app/index.html">Open Display</a></p><p>No personal link or pairing code is included.</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"><title>The Kirkmichael Arms · Display</title><link rel='icon' type='image/png' href='/kirkmichael/customer-app/icon-192-49dc0730ea9f262a.png'><link rel='apple-touch-icon' href='/kirkmichael/customer-app/apple-touch-icon-49dc0730ea9f262a.png'><meta property='og:image' content='https://covercharge-apps.static.hf.space/kirkmichael/customer-app/brand-promo-0c6f924a45db0ac9.png'></head><body style="margin:0;background:#0B0B0B;color:#F5F1E8;font:18px system-ui;padding:32px"><img src="../display-app/brand-promo-0c6f924a45db0ac9.png" alt="The Kirkmichael Arms" style="display:block;width:100%;max-width:360px;height:auto"><h1>The Kirkmichael Arms · Display</h1><p>Open in Safari or Chrome. Use the browser menu to add to your Home Screen.</p><p><a style="color:#B87754" href="/kirkmichael/display-app/index.html">Open Display</a></p><p>No personal link or pairing code is included.</p><small>v0.3.12.72</small></body></html>
|
kirkmichael/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"><title>The Kirkmichael Arms · Managers</title><link rel='icon' type='image/png' href='/kirkmichael/customer-app/icon-192-49dc0730ea9f262a.png'><link rel='apple-touch-icon' href='/kirkmichael/customer-app/apple-touch-icon-49dc0730ea9f262a.png'><meta property='og:image' content='https://covercharge-apps.static.hf.space/kirkmichael/customer-app/brand-promo-0c6f924a45db0ac9.png'></head><body style="margin:0;background:#0B0B0B;color:#F5F1E8;font:18px system-ui;padding:32px"><img src="../owner-app/brand-promo-0c6f924a45db0ac9.png" alt="The Kirkmichael Arms" style="display:block;width:100%;max-width:360px;height:auto"><h1>The Kirkmichael Arms · Managers</h1><p>Open in Safari or Chrome. Use the browser menu to add to your Home Screen.</p><p><a style="color:#B87754" href="/kirkmichael/owner-app/index.html">Open Managers</a></p><p>Open your complete private Android or iPhone link to sign in automatically.</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"><title>The Kirkmichael Arms · Managers</title><link rel='icon' type='image/png' href='/kirkmichael/customer-app/icon-192-49dc0730ea9f262a.png'><link rel='apple-touch-icon' href='/kirkmichael/customer-app/apple-touch-icon-49dc0730ea9f262a.png'><meta property='og:image' content='https://covercharge-apps.static.hf.space/kirkmichael/customer-app/brand-promo-0c6f924a45db0ac9.png'></head><body style="margin:0;background:#0B0B0B;color:#F5F1E8;font:18px system-ui;padding:32px"><img src="../owner-app/brand-promo-0c6f924a45db0ac9.png" alt="The Kirkmichael Arms" style="display:block;width:100%;max-width:360px;height:auto"><h1>The Kirkmichael Arms · Managers</h1><p>Open in Safari or Chrome. Use the browser menu to add to your Home Screen.</p><p><a style="color:#B87754" href="/kirkmichael/owner-app/index.html">Open Managers</a></p><p>Open your complete private Android or iPhone link to sign in automatically.</p><small>v0.3.12.72</small></body></html>
|
kirkmichael/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"><title>The Kirkmichael Arms · Staff</title><link rel='icon' type='image/png' href='/kirkmichael/customer-app/icon-192-49dc0730ea9f262a.png'><link rel='apple-touch-icon' href='/kirkmichael/customer-app/apple-touch-icon-49dc0730ea9f262a.png'><meta property='og:image' content='https://covercharge-apps.static.hf.space/kirkmichael/customer-app/brand-promo-0c6f924a45db0ac9.png'></head><body style="margin:0;background:#0B0B0B;color:#F5F1E8;font:18px system-ui;padding:32px"><img src="../staff-app/brand-promo-0c6f924a45db0ac9.png" alt="The Kirkmichael Arms" style="display:block;width:100%;max-width:360px;height:auto"><h1>The Kirkmichael Arms · Staff</h1><p>Open in Safari or Chrome. Use the browser menu to add to your Home Screen.</p><p><a style="color:#B87754" href="/kirkmichael/staff-app/index.html">Open Staff</a></p><p>Open your complete private Android or iPhone link to sign in automatically.</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"><title>The Kirkmichael Arms · Staff</title><link rel='icon' type='image/png' href='/kirkmichael/customer-app/icon-192-49dc0730ea9f262a.png'><link rel='apple-touch-icon' href='/kirkmichael/customer-app/apple-touch-icon-49dc0730ea9f262a.png'><meta property='og:image' content='https://covercharge-apps.static.hf.space/kirkmichael/customer-app/brand-promo-0c6f924a45db0ac9.png'></head><body style="margin:0;background:#0B0B0B;color:#F5F1E8;font:18px system-ui;padding:32px"><img src="../staff-app/brand-promo-0c6f924a45db0ac9.png" alt="The Kirkmichael Arms" style="display:block;width:100%;max-width:360px;height:auto"><h1>The Kirkmichael Arms · Staff</h1><p>Open in Safari or Chrome. Use the browser menu to add to your Home Screen.</p><p><a style="color:#B87754" href="/kirkmichael/staff-app/index.html">Open Staff</a></p><p>Open your complete private Android or iPhone link to sign in automatically.</p><small>v0.3.12.72</small></body></html>
|
kirkmichael/index.html
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
<!doctype html><html><head><meta charset="utf-8"><title>The Kirkmichael Arms · CoverCharge</title><link rel='icon' type='image/png' href='/kirkmichael/customer-app/icon-192-49dc0730ea9f262a.png'><link rel='apple-touch-icon' href='/kirkmichael/customer-app/apple-touch-icon-49dc0730ea9f262a.png'><meta property='og:image' content='https://covercharge-apps.static.hf.space/kirkmichael/customer-app/brand-promo-0c6f924a45db0ac9.png'><meta name="viewport" content="width=device-width,initial-scale=1"></head><body style="background:#0B0B0B;color:#F5F1E8;font:18px system-ui;padding:32px"><img src="customer-app/brand-promo-0c6f924a45db0ac9.png" alt="The Kirkmichael Arms logo" style="width:100%;max-width:420px;height:auto"><h1>The Kirkmichael Arms</h1><p>CoverCharge venue apps</p><p><a style="color:#B87754" href="get/managers.html">Managers</a></p><p><a style="color:#B87754" href="get/staff.html">Staff</a></p><p><a style="color:#B87754" href="get/chef.html">Head Chef</a></p><p><a style="color:#B87754" href="get/display.html">Display</a></p><p><a style="color:#B87754" href="get/customer.html">Customer</a></p><small>v0.3.12.
|
|
|
|
| 1 |
+
<!doctype html><html><head><meta charset="utf-8"><title>The Kirkmichael Arms · CoverCharge</title><link rel='icon' type='image/png' href='/kirkmichael/customer-app/icon-192-49dc0730ea9f262a.png'><link rel='apple-touch-icon' href='/kirkmichael/customer-app/apple-touch-icon-49dc0730ea9f262a.png'><meta property='og:image' content='https://covercharge-apps.static.hf.space/kirkmichael/customer-app/brand-promo-0c6f924a45db0ac9.png'><meta name="viewport" content="width=device-width,initial-scale=1"></head><body style="background:#0B0B0B;color:#F5F1E8;font:18px system-ui;padding:32px"><img src="customer-app/brand-promo-0c6f924a45db0ac9.png" alt="The Kirkmichael Arms logo" style="width:100%;max-width:420px;height:auto"><h1>The Kirkmichael Arms</h1><p>CoverCharge venue apps</p><p><a style="color:#B87754" href="get/managers.html">Managers</a></p><p><a style="color:#B87754" href="get/staff.html">Staff</a></p><p><a style="color:#B87754" href="get/chef.html">Head Chef</a></p><p><a style="color:#B87754" href="get/display.html">Display</a></p><p><a style="color:#B87754" href="get/customer.html">Customer</a></p><small>v0.3.12.72</small></body></html>
|
kirkmichael/logo-revision.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"version": "v0.3.12.
|
| 3 |
"assets": {
|
| 4 |
"logo": {
|
| 5 |
"sha256": "49dc0730ea9f262a80daceece5bcb106e30152ad3c5d8e67815479c3694d6f8a",
|
|
|
|
| 1 |
{
|
| 2 |
+
"version": "v0.3.12.72",
|
| 3 |
"assets": {
|
| 4 |
"logo": {
|
| 5 |
"sha256": "49dc0730ea9f262a80daceece5bcb106e30152ad3c5d8e67815479c3694d6f8a",
|
kirkmichael/owner-app/_expo/static/js/web/[token]-42b9f0a3803ab4d743e3aaf5916b6cc5.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 u}});var t=r(d[0]);r(d[1]);var n=r(d[2]),o=r(d[3]),c=r(d[4]),s=r(d[5]),l=r(d[6]);function u(){const{token:u}=(0,t.useLocalSearchParams)(),h=(0,c.cleanToken)(u);return h?(0,s.guestServer)()?(0,l.jsx)(o.TableOrderLive,{token:h}):(0,l.jsx)(n.Screen,{title:"Order at the table",children:(0,l.jsx)(n.Banner,{kind:"demo",title:"Not connected",children:"This preview isn't connected to a venue, so table orders can't be sent from here."})}):(0,l.jsx)(n.Screen,{title:"Order at the table",children:(0,l.jsx)(n.Banner,{kind:"warn",title:"This code isn't working",children:"Please scan the QR code on your table again, or ask a member of staff."})})}},790,[799,25,808,858,859,831,19]);
|
| 2 |
+
__d(function(g,_r,_i,_a,_m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.TableOrderLive=function({token:e}){const[s,b]=(0,n.useState)(null),[m,f]=(0,n.useState)(null),[j,y]=(0,n.useState)([]),[k,w]=(0,n.useState)(null),T=(0,h.useCustomer)(),[C,S]=(0,n.useState)(()=>(T?.allergies??[]).map(e=>e.allergen)),[v,P]=(0,n.useState)(''),[O,N]=(0,n.useState)(''),[B,I]=(0,n.useState)(!1),[L,M]=(0,n.useState)(null),[R,$]=(0,n.useState)([]),A=(0,n.useCallback)(async()=>{try{b(await(0,c.tablePublic)(e)),f(null)}catch(e){f(e?.message??'Could not load the menu.')}},[e]),D=(0,n.useCallback)(async()=>{try{$(await(0,c.myTableOrders)(e))}catch{}},[e]);(0,n.useEffect)(()=>{A(),D();const e=setInterval(()=>{D(),A()},8e3);return()=>clearInterval(e)},[A,D]);const _=s?.menu??[];(0,n.useEffect)(()=>{y(e=>e.filter(e=>_.some(t=>t.id===e.id&&!t.soldOut)))},[s]);const q=(0,n.useMemo)(()=>{const e=new Map;for(const t of _)e.set(t.section,[...e.get(t.section)??[],t]);return[...e.entries()]},[s]),Y=(0,d.cartTotal)(j,_),W='yes'===k?C.map(e=>({allergen:e,severity:T?.allergies?.find(t=>t.allergen===e)?.severity??'allergy'})):[],E=(0,d.allergyClashes)(j,_,W.map(e=>e.allergen)),z=e=>j.find(t=>t.id===e)?.qty??0,G=(e,t)=>y(l=>t<=0?l.filter(t=>t.id!==e):l.some(t=>t.id===e)?l.map(l=>l.id===e?{...l,qty:t}:l):[...l,{id:e,qty:t,note:''}]),H=(e,t)=>y(l=>l.map(l=>l.id===e?{...l,note:t}:l)),V=async()=>{I(!0),M(null);try{const t=await(0,c.sendTableOrder)(e,j,{note:O,name:v,allergies:W});y([]),N(''),M({kind:'success',text:t.held?`Order ${t.ref} sent. A member of staff will check it, then it goes to the kitchen.`:`Order ${t.ref} sent to the kitchen.`}),D()}catch(e){M({kind:'warn',text:e?.message??'The order was not sent. Please try again or ask a member of staff.'}),A()}finally{I(!1)}};if(m)return(0,x.jsxs)(r.Screen,{title:"Order at the table",children:[(0,x.jsx)(r.Banner,{kind:"warn",title:"Couldn't open the menu",children:m}),(0,x.jsx)(r.Button,{label:"Try again",onPress:()=>{A()}})]});if(!s)return(0,x.jsx)(r.Screen,{title:"Order at the table",children:(0,x.jsx)(r.Muted,{children:"Opening the menu\u2026"})});if(!s.ok)return(0,x.jsx)(r.Screen,{title:"Order at the table",children:(0,x.jsx)(r.Banner,{kind:"warn",title:"This code isn't working",children:s.reason??'Please ask a member of staff.'})});const F=s.open&&j.length>0&&null!==k&&('none'===k||C.length>0)&&!B;return(0,x.jsxs)(r.Screen,{title:`${(0,l.tableNumbers)(s.table)}`,subtitle:s.venueName,footer:s.open?(0,x.jsx)(r.Button,{label:B?'Sending\u2026':j.length?`Send order to the kitchen (${(0,o.gbp)(Y)})`:'Add a dish to order',disabled:!F,onPress:()=>{V()},testID:"send-table-order-live"}):void 0,children:[(0,x.jsxs)(r.Muted,{children:["Tip: add dishes, answer the allergy question, then send. Staff bring it to ",(0,l.tableNumbers)(s.table),". ",d.PAY_WORDS]}),s.tip?(0,x.jsx)(r.Banner,{kind:"demo",children:s.tip}):null,s.open?null:(0,x.jsx)(r.Banner,{kind:"warn",title:"Not taking table orders right now",children:s.reason}),s.open&&s.staffAccept&&!R.some(e=>e.accepted)?(0,x.jsx)(r.Muted,{children:"The first order from your phone is checked by a member of staff before it goes to the kitchen."}):null,L?(0,x.jsx)(r.Banner,{kind:L.kind,children:L.text}):null,R.length?(0,x.jsx)(a.default,{testID:"my-table-orders",children:(0,x.jsxs)(r.Card,{children:[(0,x.jsx)(r.T,{weight:"semibold",children:"Your orders at this table"}),R.map(e=>(0,x.jsxs)(a.default,{style:{gap:2,paddingVertical:4},children:[(0,x.jsxs)(r.Row,{style:{justifyContent:'space-between'},children:[(0,x.jsx)(r.T,{children:e.ref}),(0,x.jsx)(r.T,{size:13,colour:'cancelled'===e.status?u.colours.amber:u.colours.gold,children:(0,d.guestStatusWords)(e)})]}),(0,x.jsxs)(r.Muted,{children:[e.lines.map(e=>`${e.qty}\xd7 ${e.name}`).join(', ')," \xb7 ",(0,o.gbp)(e.totalPence)," to pay at the bar or till"]})]},e.id))]})}):null,s.open?q.map(([e,t])=>(0,x.jsxs)(a.default,{style:{gap:8},children:[(0,x.jsx)(r.H2,{children:e}),t.map(e=>(0,x.jsxs)(r.Card,{children:[(0,x.jsxs)(r.Row,{style:{justifyContent:'space-between',alignItems:'flex-start'},children:[(0,x.jsxs)(a.default,{style:{flex:1,gap:2},children:[(0,x.jsx)(r.T,{weight:"semibold",children:e.name}),e.description?(0,x.jsx)(r.Muted,{children:e.description}):null,(0,x.jsxs)(r.T,{size:13,colour:u.colours.muted,children:[e.allergens.length?`Contains: ${e.allergens.map(i.allergenLabel).join(', ')}`:'No allergens listed: ask staff if unsure',e.mayContain.length?` \xb7 May contain: ${e.mayContain.map(i.allergenLabel).join(', ')}`:'']})]}),(0,x.jsx)(r.T,{weight:"semibold",colour:u.colours.gold,children:(0,o.gbp)(e.pricePence)})]}),e.soldOut?(0,x.jsx)(r.Badge,{kind:"amber",label:"Sold out today"}):z(e.id)?(0,x.jsxs)(r.Row,{style:{justifyContent:'space-between'},children:[(0,x.jsx)(r.Stepper,{value:z(e.id),min:0,max:20,onChange:t=>G(e.id,t),label:e.name}),(0,x.jsx)(r.Button,{small:!0,kind:"ghost",label:"Remove",onPress:()=>G(e.id,0)})]}):(0,x.jsx)(r.Button,{small:!0,kind:"secondary",label:"Add",accessibilityLabel:`Add ${e.name}`,onPress:()=>G(e.id,1)})]},e.id))]},e)):null,s.open&&!_.length?(0,x.jsx)(r.Banner,{kind:"demo",title:"No dishes to order yet",children:"The venue hasn't put any priced dishes on the table menu yet. Please order at the bar."}):null,s.open&&j.length?(0,x.jsx)(a.default,{testID:"table-cart",children:(0,x.jsxs)(r.Card,{children:[(0,x.jsx)(r.T,{weight:"semibold",children:"Your order"}),j.map(e=>{const l=_.find(t=>t.id===e.id);return(0,x.jsxs)(a.default,{style:{gap:4},children:[(0,x.jsxs)(r.Row,{style:{justifyContent:'space-between'},children:[(0,x.jsxs)(r.T,{children:[e.qty,"\xd7 ",l?.name]}),(0,x.jsx)(r.T,{children:(0,o.gbp)(e.qty*(l?.pricePence??0))})]}),(0,x.jsx)(t.TextInput,{style:p,value:e.note,onChangeText:t=>H(e.id,t),placeholder:"Note for the kitchen (optional), e.g. no onions",placeholderTextColor:u.colours.muted,maxLength:140,accessibilityLabel:`Note for ${l?.name}`,testID:`table-note-${e.id}`})]},e.id)}),(0,x.jsxs)(r.Row,{style:{justifyContent:'space-between'},children:[(0,x.jsx)(r.T,{weight:"semibold",children:"Total"}),(0,x.jsx)(r.T,{weight:"semibold",children:(0,o.gbp)(Y)})]})]})}):null,s.open?(0,x.jsx)(a.default,{testID:"table-allergy",children:(0,x.jsxs)(r.Card,{children:[(0,x.jsx)(r.T,{weight:"semibold",children:"Does anyone at the table have a food allergy?"}),(0,x.jsx)(r.Muted,{children:"We ask everyone, so the kitchen can keep you safe."}),(0,x.jsxs)(r.Row,{gap:8,children:[(0,x.jsx)(r.Chip,{label:"No allergies",selected:'none'===k,onPress:()=>w('none')}),(0,x.jsx)(r.Chip,{label:"Yes, allergies",selected:'yes'===k,onPress:()=>w('yes')})]}),'yes'===k?(0,x.jsx)(r.Row,{wrap:!0,gap:6,children:i.ALLERGENS.map(e=>(0,x.jsx)(r.Chip,{label:e.short,selected:C.includes(e.id),onPress:()=>S(t=>t.includes(e.id)?t.filter(t=>t!==e.id):[...t,e.id])},e.id))}):null,E.length?(0,x.jsxs)(r.Banner,{kind:"warn",title:"Check with staff",children:[E.map(e=>e.name).join(', ')," ",E.length>1?'contain':'contains'," or may contain an allergy you picked. The kitchen will see your allergies on the ticket."]}):null]})}):null,s.open?(0,x.jsxs)(r.Card,{children:[(0,x.jsx)(r.T,{weight:"semibold",children:"Anything else?"}),(0,x.jsx)(t.TextInput,{style:p,value:v,onChangeText:P,placeholder:"Your first name (optional)",placeholderTextColor:u.colours.muted,maxLength:40,accessibilityLabel:"Your first name (optional)"}),(0,x.jsx)(t.TextInput,{style:p,value:O,onChangeText:N,placeholder:"Note for the staff (optional)",placeholderTextColor:u.colours.muted,maxLength:300,accessibilityLabel:"Note for the staff (optional)"})]}):null,(0,x.jsx)(a.default,{testID:"pay-placeholder",children:(0,x.jsxs)(r.Card,{children:[(0,x.jsx)(r.T,{weight:"semibold",children:"Paying"}),(0,x.jsx)(r.T,{children:d.PAY_WORDS}),(0,x.jsx)(r.Muted,{children:"No card details are asked for or kept in this app."})]})})]})};var e,t=_r(_d[0]),l=_r(_d[1]),n=_r(_d[2]),s=_r(_d[3]),a=(e=s)&&e.__esModule?e:{default:e},r=_r(_d[4]),i=_r(_d[5]),o=_r(_d[6]),d=_r(_d[7]),c=_r(_d[8]),h=_r(_d[9]),u=_r(_d[10]),x=_r(_d[11]);const p={borderWidth:1,borderColor:u.colours.border,borderRadius:10,padding:10,color:u.colours.text,backgroundColor:u.colours.surface2}},858,[860,803,25,122,808,809,811,859,861,814,816,19]);
|
kirkmichael/owner-app/_expo/static/js/web/__common-1207a9f363a6d62bfefe4bcf64751dfc.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
kirkmichael/owner-app/_expo/static/js/web/_layout-5397f52f94dc418804ad3fef312b9fce.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 N}}),r(_d[0]);var t=r(_d[1]),s=r(_d[2]),o=r(_d[3]),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[4])),u=r(_d[5]),l=r(_d[6]),c=e(r(_d[7])),d=e(r(_d[8]));r(_d[9]);var f=e(r(_d[10])),p=e(r(_d[11])),y=r(_d[12]),h=r(_d[13]),S=r(_d[14]),O=r(_d[15]),j=r(_d[16]),_=r(_d[17]),b=r(_d[18]),P=r(_d[19]),w=r(_d[20]),x=r(_d[21]),E=r(_d[22]),v=r(_d[23]);r(_d[24]);var k=r(_d[25]),H=r(_d[26]),A=r(_d[27]),T=r(_d[28]),R=r(_d[29]),B=r(_d[30]),C=r(_d[31]),F=r(_d[32]);const I=r(_d[33]),V=r(_d[34]),L=r(_d[35]),M=r(_d[36]);function N(){const[e]=(0,t.useFonts)({Poppins_400Regular:I,Poppins_500Medium:V,Poppins_600SemiBold:L,Poppins_700Bold:M}),[x,R]=(0,l.useState)(j.useStore.persist.hasHydrated()),[B,C]=(0,l.useState)(b.useOwner.persist.hasHydrated()),N=x&&B;(0,l.useEffect)(()=>{const e=j.useStore.persist.onFinishHydration(()=>R(!0)),t=b.useOwner.persist.onFinishHydration(()=>C(!0));return j.useStore.persist.hasHydrated()&&R(!0),b.useOwner.persist.hasHydrated()&&C(!0),()=>{e(),t()}},[]),(0,l.useEffect)(()=>{if('undefined'==typeof window)return;const e=e=>{e.key===(0,y.venueKey)(j.useStore.persist.getOptions().name??'')&&(0,v.quietly)(()=>j.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)(()=>{N&&b.useOwner.getState().syncRoster()},[N]),(0,l.useEffect)(()=>{N&&(0,E.startAppSync)()},[N]);const G=e&&N,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,F.jsxs)(O.SafeAreaProvider,{children:[(0,F.jsx)(u.StatusBar,{style:"light"}),U?(0,F.jsx)(p.default,{style:{flex:1,backgroundColor:P.colours.bg}}):(0,F.jsx)(p.default,{style:{flex:1},children:(0,F.jsx)(o.Stack,{screenOptions:{headerShown:!1,contentStyle:{backgroundColor:P.colours.bg}}})}),D&&!U?(0,F.jsx)(p.default,{style:[f.default.absoluteFill,{backgroundColor:P.colours.bg}]}):null,D||U?null:(0,F.jsx)(A.VoiceHost,{}),U?null:(0,F.jsx)(k.SyncBadge,{}),D||U?null:(0,F.jsx)(H.PushPrompt,{}),(0,F.jsx)(w.InviteGate,{}),D||U?null:(0,F.jsx)(T.SliderHost,{})]}):(0,F.jsxs)(p.default,{style:{flex:1,backgroundColor:P.colours.bg,alignItems:'center',justifyContent:'center',gap:18},children:[h.HERO_LOGOS[y.VENUE_RID]?(0,F.jsx)(d.default,{source:h.HERO_LOGOS[y.VENUE_RID],accessibilityLabel:"Venue logo",style:{width:180,height:180},resizeMode:"contain"}):null,(0,F.jsx)(c.default,{color:P.colours.gold})]})}R.PITCH&&(globalThis.__pitch={useStore:j.useStore,useOwner:b.useOwner,useFloor:_.useFloor,useBlocks:s.useBlocks,useSession:x.useSession,useCashUp:B.useCashUp,seedPitch:C.seedPitch},setTimeout(()=>{try{(0,C.seedPitch)()}catch(e){console.warn('pitch seed',e)}},1500)),x.START_INVITE,n.preventAutoHideAsync().catch(()=>{})},797,[866,1063,819,799,1090,562,25,241,191,117,41,122,6,849,801,284,814,820,841,816,942,845,815,1102,1092,1093,1094,1095,1103,2,969,1097,19,1098,1099,1100,1101]);
|
| 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])},1063,[1064,1087,1089]);
|
| 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)}}},1064,[296,1065,1068,1082,1083,1084,1085,1086]);
|
| 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}},1065,[296,1066]);
|
| 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}},1066,[1067]);
|
| 6 |
+
__d(function(g,r,i,a,m,e,d){},1067,[]);
|
| 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)}},1068,[1069,296,1065,1082,1083]);
|
| 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]}})})},1069,[1070,1071,1081]);
|
| 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()}})}},1070,[1071,1075,1080]);
|
| 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}}},1071,[296,227,1072,1076,1077,1078,1079,1075,1080]);
|
| 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}},1072,[296,1073,194,107,1074,1075]);
|
| 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])},1073,[570]);
|
| 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}}},1074,[296,194]);
|
| 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},1075,[]);
|
| 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}},1076,[]);
|
| 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}},1077,[]);
|
| 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])},1078,[1076]);
|
| 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}},1079,[]);
|
| 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},1080,[227,1074]);
|
| 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])},1081,[25,1071]);
|
| 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}},1082,[1069,296]);
|
| 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])},1083,[1069,1082]);
|
| 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}},1084,[1065]);
|
| 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])},1085,[296,1065,1068,1066]);
|
| 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})({})},1086,[]);
|
| 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]))},1087,[296,48,1088]);
|
| 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')},1088,[296]);
|
| 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]}},1089,[25,1064]);
|
| 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]}})})},1090,[1091]);
|
| 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(){}},1091,[]);
|
| 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()})},1092,[1104,826,815]);
|
| 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},1093,[864,860,25,1002,1001,258,122,801,815,1105,820,6,816,808,865,1106,2,19]);
|
| 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)},1094,[860,25,117,258,122,816,815,1107,2,19]);
|
| 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,p.useVoiceTarget)(),t=(0,p.useVoiceSlot)(e=>e.rect);return e?.on&&t?(0,z.jsx)(N,{app:e.actions,ui:e.app},e.actions):null};var t=_r(d[0]),n=_r(d[1]),o=e(_r(d[2])),r=e(_r(d[3])),s=e(_r(d[4])),i=e(_r(d[5]));_r(d[6]);var a=e(_r(d[7])),l=e(_r(d[8])),c=e(_r(d[9])),u=e(_r(d[10])),h=_r(d[11]),p=_r(d[12]),f=_r(d[13]),g=e(f),y=_r(d[14]),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]);const D='How many people?',A=['covers','partySize'],P=200,$=16e3,W=31e3,_='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||I.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 V({colour:e,size:t=34}){return(0,z.jsxs)(g.default,{width:t,height:t,viewBox:"0 0 24 24",children:[(0,z.jsx)(f.Rect,{x:"9",y:"3",width:"6",height:"11",rx:"3",fill:e}),(0,z.jsx)(f.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 L={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 N({app:e,ui:f}){const g=(0,y.useCtx)(6e4),N=(0,w.useOwner)(e=>e.staff),G=(0,S.useVoiceNav)(e=>e.go),{height:X}=(0,c.default)(),q=(0,p.useVoiceSlot)(e=>e.rect),U=q.size,K=m.ROSTER.find(e=>'chef'===e.app),Y='display'===e?'Main Display':'chef'===e?N.find(e=>e.id===K?.id)?.name??'Head Chef':g.me,J='display'===e?'display':'chef'===e?K?.id??'chef':g.meId,Q={rid:g.rid,today:g.today,go:(e,t)=>G?.(e,t),app:e,who:Y.replace(' (example)',''),whoId:J,role:'owner'===f?g.role:e};(0,n.useEffect)(()=>{try{(0,k.setVenueWords)((0,j.venueKeyterms)(g.rid))}catch{}},[g.rid,N]);const[Z,ee]=(0,n.useState)('idle'),[te,ne]=(0,n.useState)(''),[oe,re]=(0,n.useState)(0),[se,ie]=(0,n.useState)(null),[ae,le]=(0,n.useState)(!1),[de,ce]=(0,n.useState)(''),[ue,he]=(0,n.useState)(!1),pe=(0,n.useRef)(null),fe=(0,n.useRef)(0),ge=(0,n.useRef)(null),ye=(0,n.useRef)(Q);ye.current=Q;const me=(0,n.useRef)(se);me.current=se;const we=(0,n.useRef)(g.now);we.current=g.now;const xe=e=>{ie(e),ee('answer')},be=xe,ve=async e=>{const t=++fe.current;let n;ee('working');try{n=await(0,v.runAction)(e.id,e.params,ye.current,!0)}catch{n={status:'error',message:B}}t===fe.current&&((0,M.buzz)([20,40,20]),be({text:'needs_confirmation'===n.status?n.preview:n.message,tone:'error'===n.status?'warn':'ok'}))},ke=()=>be({text:'Cancelled. Nothing was changed.',tone:'info'}),je=async(e,t,n)=>{const o=++fe.current,r={...e.params,[e.field]:t};let s;ee('working');try{s=await(0,v.runAction)(e.id,r,ye.current,!1)}catch{s={status:'error',message:B}}o===fe.current&&('needs_confirmation'===s.status?be({heard:n,text:s.preview,pending:{id:e.id,params:r,preview:s.preview}}):be({heard:n,text:s.message,tone:'error'===s.status?'warn':'ok'}))},Te=async(e,t)=>{const n=fe.current,o=e=>{n===fe.current&&xe(e)};try{await Re(e,o,t)}catch{o({heard:e.trim()||void 0,text:B,tone:'warn'})}},Re=async(t,n,o)=>{const r=t.trim(),s=ye.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=me.current?.pending;if(i){const e=(0,M.yesNo)(r);if('yes'===e)return void await ve(i);if('no'===e)return void ke()}const a=me.current?.ask;if(a){const e=(0,H.coversAnswer)(r);if(e&&e<=30)return void await je(a,e,r)}ee('working');const l=(0,v.matchIntent)(r,s.today,{app:e,rid:s.rid,whoId:s.whoId}),c=we.current;if(!I.voiceUsage.allowed(s.rid,'action'===l.kind?l.action.id:null,c))return void n({heard:r,text:I.REACHED_TEXT,tone:'info'});I.voiceUsage.record(s.rid,c);const u=I.voiceUsage.get(s.rid,c),h=u.reached?I.REACHED_TEXT:u.warn?(0,I.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&&A.includes(t[0].name))return void p({heard:r,text:D,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,v.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,v.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,v.toolSpecs)().filter(t=>{const n=(0,v.actionById)(t.function.name);return!!n&&(!n.apps||n.apps.includes(e))&&('staff'!==e||(0,v.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,v.actionById)(t.name);if(n&&(!n.apps||n.apps.includes(e))&&('staff'!==e||(0,v.staffMay)(n))){const e=n.params.filter(e=>e.required&&(void 0===t.args[e.name]||''===t.args[e.name]));if(1===e.length&&A.includes(e[0].name))return p({heard:r,text:D,ask:{id:n.id,params:t.args,field:e[0].name},tone:'info'}),!0;const o=await(0,v.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,v.moneySafe)(e,s.role)?(0,v.noMoney)(t.text):t.text,tone:'info'}),!0)};if('help'===l.kind){const t=l.ids.map(T.helpById).filter(Boolean)[0];if(!(((0,R.searchHelp)(T.HELP,r,1)[0]?.score??0)>=2.5)){const n=await(0,k.askServer)(e,r,y(),o);if(await m(n))return;return(0,v.moneySafe)(e,s.role)&&(0,v.hasMoney)(`${t.title}. ${t.body}`)?void p({heard:r,text:`${k.SOON_TEXT} ${L[e].slice(0,2).join(' or ')}.`,tone:'info'}):void p({heard:r,text:`${k.SOON_TEXT} ${L[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,v.moneySafe)(e,s.role)&&(0,v.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,k.askServer)(e,r,y(),o))||p({heard:r,text:k.SOON_TEXT+' '+L[e].slice(0,2).join(' or ')+'.',tone:'info'})},Se=()=>{pe.current?.abort(),pe.current=null,ge.current?.(),ge.current=null,re(0)};(0,n.useEffect)(()=>()=>{pe.current?.abort(),ge.current?.()},[]);const Ce=async()=>{if(!(0,M.canListen)())return le(!0),void be({text:(0,M.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,M.desktopStt)()){if(!(0,C.micExplainedFor)(f))return void he(!0)}else{const e=await(0,M.micPermission)();if('granted'===e)(0,C.setMicExplainedFor)(f);else{if('denied'===e)return le(!0),void be({text:F,tone:'warn'});if(!(0,C.micExplainedFor)(f))return void he(!0)}}if(!Ee.current.holding&&!Me.current)return;const t=++fe.current;(0,M.buzz)(35),ne(''),ie(null),le(!1),ee('listening');if(pe.current=(0,M.listen)(ne,(e,n,o)=>{if(ge.current?.(),ge.current=null,re(0),pe.current=null,t===fe.current){if('not-allowed'!==n&&'service-not-allowed'!==n)return'stt-failed'===n?(be({text:'Speech to text didn\u2019t start on this Mac. Type instead below; restarting the app usually fixes it.',tone:'warn'}),void le(!0)):void(n?be({text:O(n,o),tone:'cap'===n?'info':'warn'}):Te(e,o?.receipt));be({text:(0,M.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,re),!pe.current)return ee('idle'),void le(!0);if((0,M.desktopStt)()){const e=await(0,M.levelMeter)(re);pe.current?ge.current=e:e()}},Ie=()=>{pe.current&&(ee('working'),pe.current.stop(),ge.current?.(),ge.current=null,re(0))},Me=(0,n.useRef)(!1),Ee=(0,n.useRef)({timer:0,holding:!1}),He=(0,n.useRef)(Ce);He.current=Ce;const ze=(0,n.useRef)(Ie);ze.current=Ie;const De=(0,n.useMemo)(()=>i.default.create({onStartShouldSetPanResponder:()=>!0,onMoveShouldSetPanResponder:()=>!0,onPanResponderTerminationRequest:()=>!1,onPanResponderGrant:()=>{const e=Ee.current;e.holding=!1,(0,C.micExplainedFor)(f)&&(0,M.warmMic)(),e.timer=setTimeout(()=>{e.holding=!0,He.current()},P)},onPanResponderRelease:()=>{const e=Ee.current;if(clearTimeout(e.timer),e.holding)return e.holding=!1,void ze.current();(0,M.disarmMic)(),le(!0),ee(e=>'idle'===e?'answer':e)},onPanResponderTerminate:()=>{const e=Ee.current;clearTimeout(e.timer),e.holding&&(e.holding=!1,ze.current())}}),[e]);(0,n.useRef)(Z).current=Z,(0,n.useEffect)(()=>E.useVoiceKeys.subscribe((e,t)=>{const n=e.last;if(!n||n.n===t.last?.n)return;const o=!!pe.current;'start'!==n.cmd||o?'stop'===n.cmd?(Me.current=!1,o&&ze.current()):'toggle'===n.cmd?o?(Me.current=!1,ze.current()):(Me.current=!0,He.current()):'type'===n.cmd&&(le(!0),ee(e=>'idle'===e?'answer':e)):(Me.current=!0,He.current())}),[]);const Ae=U>=64,Pe=(0,n.useRef)(new r.default.Value(0)).current;(0,n.useEffect)(()=>{if('listening'!==Z)return Pe.stopAnimation(),void Pe.setValue(0);const e=r.default.loop(r.default.timing(Pe,{toValue:1,duration:1100,easing:s.default.out(s.default.quad),useNativeDriver:!1}));return e.start(),()=>e.stop()},[Z]);const $e='listening'===Z,We='answer'===Z&&(se||ae)||'working'===Z||$e,Be=()=>{fe.current++,Se(),ie(null),le(!1),ce(''),ee('idle')};(0,n.useEffect)(()=>{if('working'!==Z&&'listening'!==Z)return;const e=fe.current,t=setTimeout(()=>{e===fe.current&&('listening'!==Z?(fe.current++,Se(),le(!0),xe({heard:te&&!/\u2026$/.test(te)?te:void 0,text:_,tone:'warn'})):ze.current())},'working'===Z?$:W);return()=>clearTimeout(t)},[Z]);const Fe=()=>{const e=de.trim();e&&(ce(''),ne(e),fe.current++,Te(e))},Oe='fixed',Ve={top:q.y+U+8},Le=Pe.interpolate({inputRange:[0,1],outputRange:[1,1.7]}),Ne=Pe.interpolate({inputRange:[0,1],outputRange:[.6,0]}),Ge='warn'===se?.tone?b.colours.amber:se?.pending?b.colours.gold:b.colours.border;return(0,z.jsxs)(z.Fragment,{children:[We?(0,z.jsx)(u.default,{testID:"voice-panel",style:[{position:Oe,left:12,right:12,alignItems:'flex-end',zIndex:60},Ve],pointerEvents:"box-none",children:(0,z.jsxs)(u.default,{style:{width:'100%',maxWidth:Ae?720:520,backgroundColor:b.colours.surface,borderRadius:16,borderWidth:2,borderColor:Ge,padding:Ae?20:14,gap:10,maxHeight:X*(Ae?.78:.6)},children:[(0,z.jsxs)(x.Row,{style:{justifyContent:'space-between'},children:[(0,z.jsx)(x.T,{size:16,weight:"semibold",colour:b.colours.gold,accessibilityRole:"header",children:$e?Ae?'Listening\u2026 let go (or press \u2318\u21e7G) to send':'Listening\u2026 let go to send':'working'===Z?'Working on it\u2026':se?.pending?'Please confirm':'Voice assistant'}),(0,z.jsx)(a.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,z.jsx)(x.T,{size:20,colour:b.colours.muted,children:"\u2715"})})]}),(0,z.jsx)(x.T,{testID:"voice-reply-mode",size:14,colour:b.colours.muted,children:"Text replies only"}),$e?(0,z.jsxs)(u.default,{style:{gap:8},children:[(0,z.jsx)(u.default,{style:{height:10,borderRadius:5,backgroundColor:b.colours.surface2,overflow:'hidden'},children:(0,z.jsx)(u.default,{testID:"voice-level",style:{width:`${Math.round(8+92*oe)}%`,height:10,backgroundColor:b.colours.ok}})}),(0,z.jsx)(x.T,{size:16,children:te||'Say it now\u2026'})]}):null,'working'===Z?(0,z.jsxs)(x.Row,{gap:10,children:[(0,z.jsx)(o.default,{color:b.colours.gold}),(0,z.jsx)(x.T,{size:15,colour:b.colours.muted,children:te?/\u2026$/.test(te)?te:`\u201c${te}\u201d`:''})]}):null,'working'===Z||$e?(0,z.jsx)(x.Button,{testID:"voice-stop",kind:"secondary",label:"Cancel",onPress:()=>{fe.current++,Se(),le(!1),xe({text:'Stopped. Nothing was changed.',tone:'info'})},style:{minHeight:48}}):null,'answer'===Z&&se?(0,z.jsxs)(l.default,{style:{maxHeight:X*(Ae?.55:.36)},contentContainerStyle:{gap:8},children:[se.heard?(0,z.jsx)(u.default,{testID:"voice-heard",accessible:!0,accessibilityLabel:`I heard: ${se.heard}`,children:(0,z.jsxs)(x.T,{size:Ae?16:14,colour:b.colours.muted,children:["I heard: \u201c",se.heard,"\u201d"]})}):null,se.note?(0,z.jsx)(u.default,{testID:"voice-usage-note",children:(0,z.jsx)(x.T,{size:13,colour:b.colours.amber,children:se.note})}):null,(0,z.jsx)(u.default,{testID:"voice-answer",children:(0,z.jsx)(x.T,{size:Ae?24:18,weight:se.pending?'semibold':'regular',children:se.text})}),se.help&&'owner'===e&&G?se.help.slice(0,3).map(e=>{const t=(0,T.helpById)(e);return t?(0,z.jsx)(x.Button,{small:!0,kind:"secondary",label:`Open help: ${t.title}`,onPress:()=>{G('more','help'),Be()}},e):null}):null]}):null,'answer'===Z&&se?.ask?(0,z.jsx)(u.default,{testID:"voice-how-many",style:{flexDirection:'row',flexWrap:'wrap',gap:10},children:[1,2,3,4,5,6,7,8].map(e=>(0,z.jsx)(a.default,{testID:`voice-covers-${e}`,accessibilityRole:"button",accessibilityLabel:1===e?'1 person':`${e} people`,onPress:()=>{je(se.ask,e)},style:{width:Ae?96:72,height:Ae?96:72,borderRadius:14,backgroundColor:b.colours.gold,alignItems:'center',justifyContent:'center'},children:(0,z.jsx)(x.T,{size:Ae?40:32,weight:"semibold",colour:b.colours.onGold,children:e})},e))}):null,'answer'===Z&&se?.pending?(0,z.jsxs)(x.Row,{gap:10,children:[(0,z.jsx)(x.Button,{testID:"voice-confirm",kind:"success",label:"Confirm",onPress:()=>{ve(se.pending)},style:{flex:1,minHeight:56}}),(0,z.jsx)(x.Button,{testID:"voice-cancel",kind:"secondary",label:"Cancel",onPress:ke,style:{flex:1,minHeight:56}})]}):null,'answer'!==Z||se?.pending?null:(0,z.jsxs)(u.default,{style:{gap:6},children:[ae||!(0,M.canListen)()?(0,z.jsxs)(x.Row,{gap:8,children:[(0,z.jsx)(t.TextInput,{testID:"voice-type",value:de,onChangeText:ce,onSubmitEditing:Fe,placeholder:"Type instead\u2026",placeholderTextColor:b.colours.muted,autoFocus:!0,returnKeyType:"send",style:{flex:1,minWidth:0,width:0,minHeight:48,borderRadius:10,borderWidth:1,borderColor:b.colours.border,backgroundColor:b.colours.surface2,color:b.colours.text,paddingHorizontal:12,fontFamily:b.fonts.regular,fontSize:16}}),(0,z.jsx)(x.Button,{testID:"voice-send",kind:"success",label:"Ask",onPress:Fe,disabled:!de.trim()})]}):(0,z.jsx)(a.default,{accessibilityRole:"button",onPress:()=>le(!0),children:(0,z.jsx)(x.T,{size:14,colour:b.colours.gold,children:"Type instead"})}),se?null:(0,z.jsxs)(x.T,{size:Ae?15:13,colour:b.colours.muted,children:[Ae?'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 ',Ae?`For example ${L[e].join(', ')}.`:`${L[e].join(', ')}.`]}),'owner'===f&&'owner'===e?(0,z.jsx)(a.default,{testID:"voice-open-assistant",accessibilityRole:"button",onPress:()=>{Be(),h.useAssistantUi.getState().setOpen(!0)},style:{minHeight:44,justifyContent:'center'},children:(0,z.jsx)(x.T,{size:14,colour:b.colours.gold,children:"\u2726 Open the Assistant (ideas, history and longer requests) \u203a"})}):null]})]})}):null,(0,z.jsxs)(u.default,{style:{position:Oe,left:q.x,top:q.y,width:U,height:U,zIndex:61},pointerEvents:"box-none",children:[$e?(0,z.jsx)(r.default.View,{pointerEvents:"none",style:{position:'absolute',left:0,top:0,width:U,height:U,borderRadius:U/2,borderWidth:4,borderColor:b.colours.ok,opacity:Ne,transform:[{scale:Le}]}}):null,$e?(0,z.jsx)(u.default,{pointerEvents:"none",style:{position:'absolute',left:-6,top:-6,width:U+12,height:U+12,borderRadius:(U+12)/2,borderWidth:3+Math.round(7*oe),borderColor:b.colours.ok}}):null,(0,z.jsx)(u.default,{testID:"voice-button",accessible:!0,accessibilityRole:"button",accessibilityLabel:'owner'===f&&'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.',...De.panHandlers,style:[{width:U,height:U,borderRadius:U/2,alignItems:'center',justifyContent:'center',backgroundColor:$e?b.colours.ok:b.colours.gold,borderWidth:2,borderColor:b.colours.bg},{userSelect:'none',WebkitUserSelect:'none',WebkitTouchCallout:'none',touchAction:'none',cursor:'pointer'}],children:'working'===Z?(0,z.jsx)(o.default,{color:b.colours.onGold,size:"large"}):(0,z.jsx)(V,{colour:b.colours.onGold,size:Math.round(.5*U)})})]}),(0,z.jsx)(x.Sheet,{visible:ue,onClose:()=>{(0,C.setMicExplainedFor)(f),he(!1)},title:"Talk to CoverCharge",testID:"voice-explain",children:(0,z.jsxs)(u.default,{style:{gap:10},children:[(0,z.jsxs)(x.T,{children:["Hold the gold button, say what you need, then let go. For example ",L[e].slice(0,3).join(', '),"."]}),(0,z.jsx)(x.T,{children:(0,M.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,z.jsx)(x.T,{size:14,colour:b.colours.muted,children:(0,M.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,z.jsx)(x.T,{size:14,colour:b.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,z.jsx)(x.Button,{testID:"voice-allow",kind:"success",label:"Allow microphone",onPress:async()=>{(0,C.setMicExplainedFor)(f),he(!1);const e=!!(0,M.desktopStt)()||await(0,M.askMic)();if((0,M.desktopStt)()){(await(0,M.levelMeter)(()=>{}))()}be(e?{text:'Ready. Now hold the button and speak.',tone:'ok'}:{text:F,tone:'warn'})}}),(0,z.jsx)(x.Button,{kind:"secondary",label:"Type instead",onPress:()=>{(0,C.setMicExplainedFor)(f),he(!1),le(!0),ee('answer')}})]})})]})}},1095,[860,25,241,115,219,236,117,258,146,282,122,947,948,990,940,9,841,808,816,1048,1108,1096,1046,1047,952,1051,1031,1052,1053,1109,19]);
|
| 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()},1096,[841,856,820]);
|
| 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]]}},1097,[814,856,841,969,9,845,801]);
|
| 37 |
+
__d(function(e,o,s,p,t,a,n){"use strict";t.exports="/kirkmichael/owner-app/assets/node_modules/@expo-google-fonts/poppins/400Regular/Poppins_400Regular.093ee89be9ede30383f39a899c485a82.ttf"},1098,[]);
|
| 38 |
+
__d(function(e,o,s,p,c,i,t){"use strict";c.exports="/kirkmichael/owner-app/assets/node_modules/@expo-google-fonts/poppins/500Medium/Poppins_500Medium.bf59c687bc6d3a70204d3944082c5cc0.ttf"},1099,[]);
|
| 39 |
+
__d(function(o,e,s,p,i,t,d){"use strict";i.exports="/kirkmichael/owner-app/assets/node_modules/@expo-google-fonts/poppins/600SemiBold/Poppins_600SemiBold.6f1520d107205975713ba09df778f93f.ttf"},1100,[]);
|
| 40 |
+
__d(function(o,e,s,p,d,t,n){"use strict";d.exports="/kirkmichael/owner-app/assets/node_modules/@expo-google-fonts/poppins/700Bold/Poppins_700Bold.08c20a487911694291bd8c5de41315ad.ttf"},1101,[]);
|
kirkmichael/owner-app/_expo/static/js/web/basket-eb61cadaa34b0117ab74dd92bfa00a40.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),o=_r(d[3]),a=_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),v=(0,y.useAllMenu)(e.restaurantId??void 0),w=(0,y.useCustomer)(),C=(0,y.useOrders)(f?.id),S=(0,y.useStore)(e=>e.setLineQty),B=(0,y.useStore)(e=>e.overrideLine),T=(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,a.startForm)()),[R,z]=(0,n.useState)(''),[A,D]=(0,n.useState)(w.phone??''),[E,_]=(0,n.useState)(w.email??''),[Y,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,W]=(0,n.useState)(!1),J=(0,n.useMemo)(()=>(0,j.linesFromBasket)(e,v,w.allergies),[e,v,w.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 U=H&&'table'===e.mode,V=(0,m.takeawaySlots)(f,C,P),X=J.reduce((e,l)=>e+l.unitPrice*l.qty,0),Z=J.some(e=>e.contains.length&&!e.overridden),ee=e.lines.filter(e=>{const l=v.find(l=>l.id===e.itemId);return!l||l.soldOut||!l.signOff}),le=!U&&!$,te=!U&&f.settings.takeawayPaused,ne=(0,p.ukPhone)(A),se=!Z&&!ee.length&&I&&!le&&!te&&(U||ne.ok&&(0,p.emailOk)(E)),oe=async e=>{const l=await y.repo.orders.placeFromBasket({slotTime:U?void 0:$,tip:0,giftCardCode:e?.giftCardCode,notes:N,paidNow:!U,phone:U?void 0:ne.pretty,email:U?void 0:E.trim()||void 0});(0,a.rememberGuard)(l.id,(0,a.guardFor)({...L,hp:R})),q(!1),t.router.replace(`/customer/order/${l.id}`)},ae=e.lines.find(e=>e.key===G),re=ae?J[e.lines.indexOf(ae)]:void 0;return(0,k.jsxs)(u.Screen,{title:"Your basket",subtitle:`${f.name} \xb7 ${U?`${(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."}),U?(0,k.jsx)(u.Button,{label:"Send order to the kitchen",disabled:!se,onPress:()=>oe(),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:[(U||e.tableNo,null),U?(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,{}),J.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 ${w.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:()=>{W(!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}`)}),U?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===V.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:V.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:w.allergies.length?w.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:w.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')})]}),U?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:_,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:"We\u2019ll text your order confirmation and collection time. Preview mode: nothing is sent in this pilot."})]}),(0,k.jsx)(u.Field,{label:"Order notes (optional)",value:N,onChangeText:F,placeholder:"e.g. cutlery please"}),U?(0,k.jsx)(u.Button,{small:!0,kind:"ghost",label:"Switch to takeaway instead",onPress:()=>T(f.id,'takeaway')}):null,(0,k.jsx)(i.MockPay,{visible:Y,onClose:()=>q(!1),amount:X,restaurantId:f.id,onPaid:e=>oe({giftCardCode:e.giftCardCode}),title:"Pay for your takeaway"}),(0,k.jsxs)(u.Sheet,{visible:!!ae,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:W}),(0,k.jsx)(u.Button,{kind:"danger",disabled:!Q,label:"Confirm override",onPress:()=>{ae&&re&&B(ae.key,re.contains),K(null)}})]}),(0,k.jsx)(o.Honeypot,{value:R,onChange:z})]})}},784,[803,799,25,805,806,122,829,808,809,811,812,813,814,856,816,818,19]);
|
kirkmichael/owner-app/_expo/static/js/web/index-0036cc80afb7318d411fd65912ad863e.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:"PILOT"})]}),(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}})]})}},785,[799,25,122,825,808,809,810,814,816,840,6,19]);
|
kirkmichael/owner-app/_expo/static/js/web/index-7b3933324028ec2b16b40f6cf91c99b7.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 l}});var n=r(d[0]);r(d[1]);var t=r(d[2]),s=r(d[3]),u=r(d[4]),c=r(d[5]);function l(){return(0,t.canShow)('display')?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.DisplayBoard,{}),(0,c.jsx)(u.DisplayPairing,{})]}):(0,c.jsx)(n.Redirect,{href:t.ENTRY[t.APP_VARIANT]})}},791,[799,25,801,863,862,19]);
|
| 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}),Object.defineProperty(_e,"codeFromText",{enumerable:!0,get:function(){return x}}),_e.DisplayPairing=function(){const{height:e}=(0,u.default)(),T=(0,c.useSync)(e=>e.mode),y=(0,c.useSync)(e=>e.message),[f,j]=(0,s.useState)(!1),[m,_]=(0,s.useState)(!1),[D,R]=(0,s.useState)(''),[A,P]=(0,s.useState)(!1),[C,E]=(0,s.useState)(''),[k,z]=(0,s.useState)(''),v=async e=>{const t=x(e);if(t.length<6)return void E('Type the code exactly as shown in Managers \u2192 Displays.');P(!0),E('');const r=await(0,c.pairWithCode)(t);P(!1),r.ok?(z(`Paired with ${r.venueName}`),j(!1),R(''),setTimeout(()=>z(''),4e3)):E(r.error)};(0,s.useEffect)(()=>{S.START_PAIR&&(j(!0),R(S.START_PAIR),v(S.START_PAIR))},[]);const N=(0,b.useScreensaverAsleep)(e=>e.asleep),M=(0,b.useDisplayToolsH)(e=>e.h),w='unpaired'===T,O=f||w&&!m&&!S.START_PAIR;return(0,I.jsxs)(I.Fragment,{children:[k?(0,I.jsx)(l.default,{testID:"pair-ok",style:{position:'absolute',top:12,alignSelf:'center',zIndex:960,padding:10,borderRadius:10,backgroundColor:p.colours.okBg,borderWidth:1,borderColor:p.colours.ok},children:(0,I.jsx)(h.T,{size:14,children:k})}):null,!w||O||N?null:(0,I.jsx)(n.default,{testID:"pair-banner",accessibilityRole:r.IS_SOUTERS?'button':void 0,accessibilityLabel:r.IS_SOUTERS?'Not paired. Tap to pair this display.':void 0,onPress:()=>j(!0),style:{position:'absolute',bottom:Math.max(72,M+7),right:8,zIndex:900,paddingHorizontal:12,paddingVertical:6,borderRadius:999,backgroundColor:(0,t.soutersSurface)('#2A2114'),borderWidth:1,borderColor:p.colours.gold,...r.IS_SOUTERS?{minHeight:44,minWidth:44,justifyContent:'center'}:{}},children:(0,I.jsx)(h.T,{size:13,colour:p.colours.gold,children:"Not paired \xb7 tap to pair this display"})}),O?(0,I.jsx)(l.default,{testID:"pair-screen",style:{position:'absolute',top:0,left:0,right:0,bottom:0,zIndex:980,backgroundColor:r.IS_WILDINGS?'#272A2F':(0,t.soutersSurface)('rgba(8,7,5,0.97)'),alignItems:'center',justifyContent:'center',padding:24},children:(0,I.jsxs)(l.default,{style:{width:'100%',maxWidth:460,gap:12},children:[r.IS_WILDINGS?(0,I.jsx)(o.RestaurantHero,{rid:"wildings",size:Math.min(220,Math.max(120,.25*e))}):r.IS_ISOLATED_VENUE?(0,I.jsx)(o.RestaurantBrand,{rid:r.VENUE_RID,sub:"Display"}):null,(0,I.jsx)(h.T,{size:26,weight:"bold",children:"Pair this display"}),r.IS_ISOLATED_VENUE?(0,I.jsx)(h.Muted,{children:"No table plan or bookings have been added. The venue\u2019s authorised manager must create a pairing code after setup."}):null,(0,I.jsx)(h.Muted,{children:"In the Managers app, open Settings \u2192 Displays and make a pairing code. Type it here, or open the pairing link on this tablet. No login needed."}),y?(0,I.jsx)(h.T,{size:14,colour:p.colours.gold,children:y}):null,(0,I.jsx)(h.Field,{testID:"pair-code",label:"Pairing code (or link)",value:D,onChangeText:R,autoCapitalize:"characters",autoCorrect:!1,placeholder:"e.g. ABCDE 23456"}),C?(0,I.jsx)(l.default,{testID:"pair-error",children:(0,I.jsx)(h.T,{size:14,colour:p.colours.red,children:C})}):null,(0,I.jsx)(h.Button,{testID:"pair-go",label:A?'Pairing\u2026':'Pair',disabled:A||!D.trim(),onPress:()=>v(D)}),(0,I.jsx)(h.Button,{kind:"secondary",label:"Not now (use this tablet\u2019s own data)",onPress:()=>{j(!1),_(!0)}})]})}):null]})};var t=_r(d[0]),r=_r(d[1]),o=_r(d[2]),s=_r(d[3]);_r(d[4]);var n=e(_r(d[5])),l=e(_r(d[6])),u=e(_r(d[7])),c=_r(d[8]),p=_r(d[9]),h=_r(d[10]),b=_r(d[11]),S=_r(d[12]),I=_r(d[13]);const x=e=>{const t=e.match(/[?&#]pair=([A-Za-z0-9 -]{6,})/);return(t?t[1]:e).toUpperCase().replace(/[^A-Z0-9]/g,'')}},862,[864,6,849,25,117,258,122,282,815,816,808,865,866,19]);
|
kirkmichael/owner-app/_expo/static/js/web/index-8a4faf1d83f0f0368091d7f976e035b9.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
kirkmichael/owner-app/_expo/static/js/web/index-9cfe1a17b8e047a9f3422dd00bc4cb77.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
kirkmichael/owner-app/_expo/static/js/web/index-b9588866561fe25860269388a08ddc37.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 L}});var l=_r(_d[0]),t=e(_r(_d[1])),s=e(_r(_d[2])),n=_r(_d[3]),r=_r(_d[4]),o=_r(_d[5]),i=_r(_d[6]),d=_r(_d[7]),u=e(d);_r(_d[8]);var c=e(_r(_d[9])),b=e(_r(_d[10])),h=_r(_d[11]),p=_r(_d[12]),f=_r(_d[13]),m=_r(_d[14]),y=_r(_d[15]),x=_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]),A=_r(_d[23]),R=_r(_d[24]),P=_r(_d[25]),I=_r(_d[26]),C=_r(_d[27]),B=_r(_d[28]);const $=['book','takeaway'].includes(P.START_GO??'')?P.START_GO:null;let v=!1,_=!1,M=!1;const N=[{id:'main',label:'Main menu'},{id:'specials',label:'Specials'},{id:'takeaway',label:'Takeaway'}];function L(){const{rid:e}=(0,i.useLocalSearchParams)(),o=(0,j.useRestaurant)(e),d=n.IS_WILDINGS?(0,B.jsx)(s.default,{}):n.IS_KIRKMICHAEL?(0,B.jsx)(t.default,{}):n.IS_SOUTERS?(0,B.jsx)(r.SoutersCustomerHome,{}):(0,B.jsx)(E,{});return!n.IS_WILDINGS&&o?.settings.hotel?.enabled?(0,B.jsx)(l.HotelRequestGate,{rid:e,hotel:o.settings.hotel,children:d}):d}function E(){const{rid:e}=(0,i.useLocalSearchParams)(),l=(0,j.useRestaurant)(e),t=(0,j.useMenu)(e),s=(0,j.useCustomer)(),n=(0,j.useBasket)(),r=(0,j.useStore)(e=>e.startBasket),L=(0,j.useNow)(3e4),[E,H]=(0,d.useState)('All'),[D,W]=(0,d.useState)(null),[G,K]=(0,d.useState)(!1),[F,Y]=(0,d.useState)(!1),[q,z]=(0,d.useState)('takeaway'===$?'takeaway':'main');u.default.useEffect(()=>{$&&!v&&(v=!0,'book'===$?setTimeout(()=>i.router.push(`/customer/${e}/book`),0):setTimeout(()=>{try{document.querySelector('[data-testid="menu-tabs"]')?.scrollIntoView({block:'start'})}catch{}},400))},[e]);const Q=(0,A.useSpecials)(l=>l.current[e]??null),V=!!Q&&(0,R.isToday)(Q.postedAt,L),U=(0,T.useOwner)(e=>e.offers.filter(e=>e.live).length),J=(0,j.useStore)(l=>l.stampCards.find(t=>t.restaurantId===e&&t.customerId===l.customer.id)),X=(0,I.useLiveTile)(e),Z=(0,C.guestServer)();u.default.useEffect(()=>{P.START_TABLE_TOKEN&&!M&&(M=!0,setTimeout(()=>i.router.push(`/table/live/${P.START_TABLE_TOKEN}`),0))},[e]),u.default.useEffect(()=>{P.START_LOYALTY_CODE&&!_&&(_=!0,setTimeout(()=>i.router.push(`/customer/${e}/loyalty`),0))},[e]);const ee=(0,j.useOrderAtTable)(e);if(u.default.useEffect(()=>{ee||n.restaurantId!==e||'table'!==n.mode||j.useStore.setState(e=>({basket:{...e.basket,mode:'takeaway',tableNo:void 0}}))},[ee,n.mode,n.restaurantId,e]),!l)return(0,B.jsx)(f.Screen,{title:"Not found",children:(0,B.jsx)(f.T,{children:"Restaurant not found."})});const le=ee&&n.restaurantId===l.id&&'table'===n.mode,te=l.sections.length?l.sections:Array.from(new Set(t.map(e=>e.section))),se=e=>!(e.soldOut||!e.signOff||null===e.price),ae=t.filter(e=>('All'===E||e.section===E)&&('takeaway'!==q||se(e))),ne=(0,x.hoursFor)(l,L),re=e=>()=>i.router.push(`/customer/${l.id}${e}`),oe=[{icon:'box',label:'Takeaway',sub:'Order to collect',on:()=>{H('All'),z('takeaway'),le&&r(l.id,'takeaway')}},...ee?[{icon:'phone',label:'Order at table',sub:'Scan the QR',on:()=>Y(!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 ${l.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:()=>i.router.push('/customer/profile')},{icon:'tag',label:'Offers',sub:Z?void 0:s.marketingOptIn[l.id]?'Opted in':'Opt in',on:re('/offers'),badge:(Z?X.offers:U)?String(Z?X.offers:U):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,B.jsxs)(f.Screen,{title:l.name,subtitle:`${l.location}${l.phone?` \xb7 ${l.phone}`:''}`,back:'customer'!==S.APP_VARIANT,right:(0,B.jsxs)(f.Row,{children:[(0,B.jsx)(p.BasketButton,{}),(0,B.jsx)(f.Button,{small:!0,kind:"ghost",label:"Account",onPress:()=>i.router.push('/customer/profile')})]}),children:[l.fictional?(0,B.jsx)(f.Banner,{kind:"warn",title:"Fictional demo restaurant",children:"Shown only to demonstrate multi-restaurant support."}):null,le?(0,B.jsx)(f.Banner,{kind:"success",title:`Ordering at ${(0,o.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,B.jsx)(f.Card,{children:(0,B.jsxs)(f.Row,{style:{justifyContent:'space-between'},children:[(0,B.jsxs)(b.default,{style:{flex:1},children:[(0,B.jsx)(f.T,{weight:"semibold",children:"Takeaway \u2014 collection"}),(0,B.jsxs)(f.Muted,{children:[ne?`Kitchen today ${(0,x.kitchenHoursOn)(l,L)[0]}\u2013${(0,x.kitchenHoursOn)(l,L)[1]}`:'Kitchen closed today',l.settings.takeawayPaused?' \xb7 slots paused by the restaurant':'']})]}),(0,B.jsx)(f.Badge,{kind:l.settings.takeawayPaused||!ne?'amber':'ok',label:l.settings.takeawayPaused?'Paused':ne?'Taking orders':'Closed'})]})}),l.fictional?(0,B.jsx)(f.Row,{wrap:!0,gap:8,children:oe.slice(2,7).map(e=>(0,B.jsx)(f.Button,{small:!0,kind:"secondary",label:e.label,onPress:e.on},e.label))}):(0,B.jsx)(b.default,{style:{flexDirection:'row',flexWrap:'wrap',gap:8},children:oe.map(e=>(0,B.jsx)(w.HubTile,{icon:e.icon,label:e.label,sub:e.sub,badge:e.badge,onPress:e.on},e.label))}),le?(0,B.jsx)(f.Button,{small:!0,kind:"danger",label:"Call staff",onPress:()=>K(!0)}):null,G?(0,B.jsx)(f.Banner,{kind:"success",children:"We've told the staff on this device. Calling staff: not set up yet."}):null,l.hoursNote?(0,B.jsx)(f.Muted,{children:l.hoursNote}):null,l.fictional?null:(0,B.jsx)(f.ExampleAllergenNotice,{}),(0,B.jsxs)(f.Muted,{children:["Menu dishes and prices from ",l.name,"\u2019s menu. Items marked \u26a0 conflict with your declared allergies."]}),(0,B.jsx)(b.default,{accessibilityRole:"tablist",testID:"menu-tabs",style:{flexDirection:'row',gap:6,backgroundColor:k.colours.surface,borderRadius:14,borderWidth:1,borderColor:k.colours.border,padding:4},children:N.map(e=>{const l=q===e.id;return(0,B.jsxs)(c.default,{testID:`menu-tab-${e.id}`,accessibilityRole:"tab",accessibilityState:{selected:l},"aria-selected":l,accessibilityLabel:'specials'===e.id&&V?'Specials, updated today':e.label,onPress:()=>z(e.id),style:{flex:1,minHeight:44,borderRadius:10,alignItems:'center',justifyContent:'center',paddingHorizontal:4,backgroundColor:l?k.colours.gold:'transparent'},children:[(0,B.jsx)(f.T,{size:14,weight:"semibold",colour:l?k.colours.onGold:k.colours.text,center:!0,children:e.label}),'specials'===e.id&&V&&!l?(0,B.jsx)(b.default,{style:{position:'absolute',top:6,right:8,width:7,height:7,borderRadius:4,backgroundColor:k.colours.gold}}):null]},e.id)})}),'specials'===q?(0,B.jsx)(O.SpecialsTab,{rid:l.id,declared:s.allergies,now:L}):null,'takeaway'===q?(0,B.jsx)(f.Muted,{children:"Order to collect. Only dishes available to order online are shown; pick a collection slot at checkout."}):null,'specials'!==q?(0,B.jsxs)(f.Row,{wrap:!0,gap:6,children:[(0,B.jsx)(f.Chip,{label:"All",selected:'All'===E,onPress:()=>H('All')}),te.map(e=>(0,B.jsx)(f.Chip,{label:e,selected:E===e,onPress:()=>H(e)},e))]}):null,'specials'!==q?te.filter(e=>('All'===E||e===E)&&ae.some(l=>l.section===e)).map(e=>(0,B.jsxs)(b.default,{style:{gap:10},children:[(0,B.jsx)(f.H2,{style:{color:k.colours.gold,marginTop:6},children:e}),ae.filter(l=>l.section===e).map(e=>{const t=(0,m.conflictsFor)(e.allergens,s.allergies),o=e.soldOut||!e.signOff||null===e.price;return(0,B.jsxs)(f.Card,{highlight:t.contains.length?k.colours.red:t.may.length?k.colours.amber:void 0,children:[(0,B.jsxs)(c.default,{accessibilityRole:"button",onPress:()=>{n.restaurantId&&n.restaurantId===l.id||r(l.id,'takeaway'),i.router.push(`/customer/${l.id}/dish/${e.id}`)},children:[(0,B.jsxs)(f.Row,{style:{justifyContent:'space-between',alignItems:'flex-start'},children:[(0,B.jsx)(f.T,{weight:"semibold",style:{flex:1,paddingRight:8},children:e.name}),(0,B.jsx)(f.T,{weight:"semibold",colour:k.colours.gold,children:null===e.price?e.priceNote??'\u2014':(0,y.gbp)(e.price)})]}),(0,B.jsx)(f.Muted,{numberOfLines:2,children:e.description})]}),(0,B.jsxs)(f.Row,{wrap:!0,gap:6,children:[e.dietary.map(e=>(0,B.jsx)(f.Badge,{kind:"ok",label:e},e)),e.special?(0,B.jsx)(f.Badge,{kind:"gold",label:"Special"}):null,e.soldOut?(0,B.jsx)(f.Badge,{kind:"neutral",label:"Sold out"}):null,e.signOff?null:(0,B.jsx)(f.Badge,{kind:"amber",label:"Awaiting allergen sign-off"}),t.contains.length?(0,B.jsx)(f.Badge,{kind:"red",label:"\u26a0 Contains your allergen"}):t.may.length?(0,B.jsx)(f.Badge,{kind:"amber",label:"\u26a0 May contain your allergen"}):null]}),(0,B.jsx)(h.AllergenChips,{map:e.allergens,declared:s.allergies}),D===e.id?(0,B.jsx)(h.AllergenPanel,{item:e,map:e.allergens,declared:s.allergies}):null,(0,B.jsxs)(f.Row,{gap:8,children:[(0,B.jsx)(f.Button,{small:!0,kind:"ghost",label:D===e.id?'Hide allergen panel':'Allergen panel',onPress:()=>W(D===e.id?null:e.id)}),(0,B.jsx)(b.default,{style:{flex:1}}),(0,B.jsx)(f.Button,{small:!0,label:o?e.soldOut?'Sold out':'Not available online':'Choose',disabled:o,onPress:()=>{n.restaurantId&&n.restaurantId===l.id||r(l.id,'takeaway'),i.router.push(`/customer/${l.id}/dish/${e.id}`)}})]})]},e.id)})]},e)):null,(0,B.jsx)(f.Muted,{children:"Drinks list coming soon. Ask your server for today\u2019s drinks."}),(0,B.jsx)(f.Muted,{children:"Card payments: not set up yet. Pay at the till as usual."}),(0,B.jsx)(w.LauncherLine,{}),ee?(0,B.jsxs)(f.Sheet,{visible:F,onClose:()=>Y(!1),title:"Order at your table",children:[(0,B.jsx)(f.Muted,{children:"Scan the QR code on your table with your phone camera, or pick your table number."}),(0,B.jsx)(f.Row,{wrap:!0,gap:6,children:Array.from({length:12},(e,l)=>String(l+1)).map(e=>(0,B.jsx)(f.Button,{small:!0,kind:"secondary",label:`${(0,o.tableNumbers)(e)}`,onPress:()=>{Y(!1),r(l.id,'table',e)}},e))}),(0,B.jsx)(f.Muted,{children:"Orders go straight to the kitchen. Card payments: not set up yet. Pay at the till as usual."})]}):null]})}},776,[832,833,836,6,839,803,799,25,117,258,122,824,825,808,809,811,810,814,816,840,801,841,842,843,844,845,846,831,19]);
|
| 2 |
+
__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])},832,[25,122,808,847,19]);
|
| 3 |
+
__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 j}});var n=r(d[0]);r(d[1]);var t=e(r(d[2])),s=e(r(d[3])),l=r(d[4]),o=r(d[5]),u=r(d[6]),c=r(d[7]),h=r(d[8]),m=r(d[9]);function j(){const e=c.KIRKMICHAEL_SAMPLE_MENU.menus.find(e=>'main-menu'===e.id);return(0,m.jsxs)(l.Screen,{title:u.KIRKMICHAEL_RESTAURANT.name,back:!1,children:[(0,m.jsx)(o.RestaurantHero,{rid:"kirkmichael",size:180}),(0,m.jsx)(l.T,{center:!0,children:u.KIRKMICHAEL_RESTAURANT.tagline}),(0,m.jsxs)(l.Row,{wrap:!0,children:[(0,m.jsx)(l.Button,{testID:"kirkmichael-book",label:"Book through our website",onPress:()=>{t.default.openURL(u.KIRKMICHAEL_BOOKING_URL)}}),(0,m.jsx)(l.Button,{kind:"secondary",label:"Call 01655 750 200",onPress:()=>{t.default.openURL('tel:01655750200')}})]}),(0,m.jsx)(n.FindPub,{rid:"kirkmichael"}),(0,m.jsxs)(l.Card,{children:[(0,m.jsx)(l.H2,{children:"Opening hours"}),(0,m.jsx)(l.T,{children:"Monday to Wednesday: closed"}),(0,m.jsx)(l.T,{children:"Thursday to Sunday: 13:00\u201322:30"}),(0,m.jsx)(l.Muted,{children:u.KIRKMICHAEL_RESTAURANT.hoursNote}),(0,m.jsx)(l.T,{children:u.KIRKMICHAEL_RESTAURANT.address})]}),(0,m.jsx)(l.Banner,{kind:"warn",title:"Deposit policy \u2014 needs confirmation",children:"No deposit amount or party threshold has been provided. Please confirm directly with the venue when booking."}),(0,m.jsx)(l.Banner,{kind:"warn",title:"Current Sample Menu \u2014 unconfirmed",children:"Reference only, from the venue\u2019s Sample menus collected 5 November 2026. Specials change regularly. Dishes, prices and availability are unconfirmed; ask the venue about every allergy. No allergen information has been signed off."}),(0,m.jsx)(l.Muted,{children:"Bookings are managed by the venue through its own website. Online ordering, takeaway and loyalty are not enabled here."}),e?.categories.map(e=>(0,m.jsxs)(s.default,{style:{gap:10},children:[(0,m.jsx)(l.H2,{children:e.name}),e.items.filter(e=>null!==e.price).map(e=>(0,m.jsxs)(l.Card,{children:[(0,m.jsxs)(l.Row,{style:{justifyContent:'space-between',alignItems:'flex-start'},children:[(0,m.jsx)(l.T,{weight:"semibold",style:{flex:1},children:e.name}),(0,m.jsx)(l.T,{children:null===e.price?'Ask the venue':(0,h.gbp)(Math.round(100*e.price))})]}),e.description?(0,m.jsx)(l.Muted,{children:e.description}):null,(0,m.jsx)(l.Muted,{children:"Sample only \xb7 unconfirmed \xb7 allergens: ask the venue"})]},e.name))]},e.name)),(0,m.jsx)(l.Button,{kind:"secondary",label:"View all current menus on our website",onPress:()=>{t.default.openURL('https://www.kirkmichaelarms.co.uk/menus')}})]})}},833,[848,25,234,122,808,849,7,834,811,19]);
|
| 4 |
+
__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},834,[850,851,835]);
|
| 5 |
+
__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}},835,[]);
|
| 6 |
+
__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])),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,s.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:()=>{t.default.openURL(u.WILDINGS_BOOKING_PHONE)}}),(0,b.jsx)(l.Button,{testID:"wildings-book-email",kind:"secondary",label:"Email to book",onPress:()=>{t.default.openURL(u.WILDINGS_BOOKING_EMAIL)}})]}),(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,{children:"Lunch Monday to Saturday: 12:00\u201314:00"}),(0,b.jsx)(l.T,{children:"Sunday lunch: 12:00\u201314:30"}),(0,b.jsx)(l.T,{children:"Dinner every day: 18:00\u201321:00"}),(0,b.jsx)(l.Muted,{children:"Closed between lunch and dinner. Bar hours to confirm."}),(0,b.jsx)(l.T,{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:()=>{t.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,{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:()=>{t.default.openURL('https://www.wildingshotel.com/team')}})]})}},836,[847,25,234,122,808,849,4,837,811,19]);
|
| 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,"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},837,[850,852,838]);
|
| 8 |
+
__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}},838,[]);
|
kirkmichael/owner-app/_expo/static/js/web/index-bc43949b658d72edcc89da771baa0019.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]})}},795,[799,25,801,1057,19]);
|
| 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,he.jsx)(Y.StaffAppCtx.Provider,{value:!0,children:(0,he.jsx)(ye,{})})};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]),S=_r(d[19]),C=_r(d[20]),T=e(_r(d[21])),M=e(_r(d[22])),R=e(_r(d[23])),P=e(_r(d[24])),B=_r(d[25]),A=_r(d[26]),O=_r(d[27]),I=_r(d[28]),L=_r(d[29]),z=_r(d[30]),W=_r(d[31]),H=_r(d[32]),E=_r(d[33]),_=_r(d[34]),V=_r(d[35]),F=_r(d[36]),N=_r(d[37]),D=_r(d[38]),U=_r(d[39]),Y=_r(d[40]),G=_r(d[41]),Q=_r(d[42]),$=_r(d[43]),J=_r(d[44]),q=_r(d[45]),K=_r(d[46]);_r(d[47]);var X=_r(d[48]),Z=_r(d[49]),ee=_r(d[50]),se=_r(d[51]),te=_r(d[52]),oe=_r(d[53]),re=_r(d[54]),ae=_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]);const fe=ie.ROSTER.find(e=>'chef'===e.app)?.id,pe=[{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'}],ge={home:'Today',clock:'Clock in / out',rota:'Rota, swaps & leave',chat:'Staff chat',me:'Me'},me=[{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'}],be=[{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 ye(){const{r:e,rid:o,me:i,meId:j,today:k,now:w}=(0,Y.useCtx)(3e4),re=(0,Y.useSignedIn)(),ae=(0,Y.useShiftManager)();(0,p.useSoldOutLink)(!0,i);(0,L.useOwner)(e=>e.staff);const ie=(0,L.useOwner)(e=>e.staffCanViewSuppliers),[ye,ke]=(0,v.useState)('home'),[we,ve]=(0,v.useState)(null),[Se,Ce]=(0,v.useState)(!1),Te=(0,v.useRef)(null);(0,v.useEffect)(()=>{(0,Y.ensureAttendance)(k,w),(0,W.ensureChat)(w)},[k]),globalThis.__ccNow=w.getTime();const Me=(0,W.useChatUnread)().total,Re=(0,v.useRef)({t:'home',s:null});Re.current={t:ye,s:we};const Pe=(0,v.useRef)([]),Be=(0,v.useCallback)((e,s=null)=>{const t=Re.current;t.t===e&&t.s===s||(Pe.current=[...Pe.current,{...t,y:Ie.leave()}].slice(-30),Ie.restore(0)),ke(e),ve(s)},[]),Ae=(0,v.useCallback)(()=>{if((0,n.runBackLayer)())return!0;const e=Re.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 Ie.leave(),ke(t.t),ve(t.s),Ie.restore(t.y??0),!0},[]);(0,n.useWebBack)(Ae);const Oe=(0,n.useInnerBackShown)();(0,v.useEffect)(()=>{y.PITCH&&(globalThis.__pitchGo=Be)},[Be]),(0,E.useShiftReminders)({rid:o,staffId:j,name:i,onStartBreak:()=>Be('clock')}),(0,_.useScheduledNotices)({rid:o,staffId:re?.id??'',name:i,onOpen:()=>Be('me','orderlists')}),(0,V.useOffRotaPrompt)({rid:o,staffId:re?.id??''});const Ie=(0,l.useScrollMemory)(Te),Le=(0,v.useCallback)((e,s=null)=>'chat'===e?Be('chat'):'clock'===s?Be('clock'):'rota'===s?Be('rota'):s&&me.some(e=>e.id===s)?Be('me',s):'blocks'===s&&ae?Be('me','mgr-blocks'):void Be('home'===e?'home':'me'),[Be,ae]);(0,v.useEffect)(()=>{const e=T.default.addEventListener('hardwareBackPress',Ae);return()=>e.remove()},[Ae]);const ze='me'===ye&&we?me.find(e=>e.id===we)??(ae?be.find(e=>e.id===we):void 0):void 0,We=(0,D.useOrderLists)(e=>e.settings[o]?.allowStaff??!0),He=me.filter(e=>('suppliers'!==e.id||ie)&&('orderlists'!==e.id||We||re&&'staff'!==re.role));return(0,v.useEffect)(()=>{L.useOwner.getState().staffAs&&L.useOwner.setState({staffAs:void 0})},[]),(0,he.jsxs)(B.SafeAreaView,{style:{flex:1,backgroundColor:z.colours.bg},edges:['top','left','right','bottom'],children:[(0,he.jsxs)(P.default,{style:{paddingHorizontal:14,paddingTop:6,paddingBottom:8,borderBottomWidth:1,borderColor:z.colours.border,gap:6},children:[(0,he.jsx)(P.default,{style:{alignItems:'center'},children:(0,he.jsx)(M.default,{testID:"header-me",accessibilityRole:"button",accessibilityLabel:(0,t.privateClockVenue)(o)?`Signed in as ${i}`:'Signed in as',onPress:()=>Ce(!0),hitSlop:6,style:{borderWidth:1,borderColor:z.colours.gold,borderRadius:22,paddingHorizontal:10,paddingVertical:4,maxWidth:'86%',minHeight:44,justifyContent:'center'},children:(0,he.jsxs)(A.Row,{gap:6,children:[(0,he.jsx)(de.StaffAvatar,{id:j,size:24,ring:!1}),(0,he.jsxs)(A.T,{size:13,weight:"semibold",colour:z.colours.gold,numberOfLines:1,style:{flexShrink:1},children:[i.replace(' (example)',''),re?'':' (preview)'," \u25be"]})]})})}),(0,he.jsxs)(A.Row,{gap:10,children:[(0,he.jsx)(O.RestaurantLogo,{rid:e.id,size:36}),(0,he.jsxs)(P.default,{style:{flex:1,minWidth:0},children:[(0,he.jsxs)(A.Row,{gap:6,children:[(0,he.jsx)(A.T,{weight:"semibold",size:15,numberOfLines:1,style:{flexShrink:1},children:e.name}),(0,he.jsx)(U.AppBadge,{label:"STAFF"})]}),(0,he.jsxs)(A.Muted,{size:12,numberOfLines:1,children:["Front of House",e.location?` \xb7 ${e.location.split(',').slice(0,2).join(',')}`:'']}),(0,he.jsx)(O.PoweredBy,{})]}),(0,he.jsx)(I.VoiceSlot,{})]})]}),(0,he.jsxs)(R.default,{ref:Te,...Ie.props,contentContainerStyle:{padding:14,paddingBottom:60,gap:12,width:'100%',maxWidth:760,alignSelf:'center'},keyboardShouldPersistTaps:"handled",children:[(0,he.jsxs)(A.Row,{style:{justifyContent:'space-between'},children:['home'===ye&&!we||Oe?null:(0,he.jsx)(n.BackButton,{onPress:Ae}),(0,he.jsx)(A.T,{size:22,weight:"bold",style:{flex:1,textAlign:'home'===ye&&!we||Oe?'left':'right'},children:ze?ze.title:ge[ye]})]}),'home'===ye&&ae?(0,he.jsx)(J.ManagerFeaturesNote,{}):null,'home'===ye&&re&&'staff'!==re.role&&!ae&&'undefined'!=typeof window?(0,he.jsxs)(P.default,{testID:"manager-access-banner",style:{borderWidth:1,borderColor:z.colours.gold,borderRadius:12,padding:10,gap:6},children:[(0,he.jsx)(A.T,{weight:"semibold",colour:z.colours.gold,children:"You have manager access"}),(0,he.jsx)(A.Muted,{children:"The Manager app has everything here plus bookings, the rota, staff and settings."}),(0,he.jsx)(M.default,{accessibilityRole:"button",onPress:()=>{const e=(0,K.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,he.jsx)(A.T,{size:14,colour:z.colours.gold,children:"Open the Managers app \u203a"})})]}):null,'home'===ye&&re?(0,he.jsx)(x.MyTasksToday,{rid:o,staffId:re.id,name:re.name,onShift:(0,E.shiftNow)(re.id,w.getTime()).on}):null,'home'===ye?(0,he.jsx)(xe,{go:Le}):null,'clock'===ye?(0,he.jsx)(te.ClockInOut,{}):null,'rota'===ye?(0,he.jsx)(te.Rota,{}):null,'chat'===ye?(0,he.jsx)(W.Chat,{go:Le}):null,'me'!==ye||ze?null:(0,he.jsxs)(P.default,{style:{gap:10},children:[(0,he.jsx)(P.default,{style:{borderRadius:14,borderWidth:1,borderColor:z.colours.border,backgroundColor:z.colours.surface,overflow:'hidden'},children:He.map((e,s)=>(0,he.jsx)(M.default,{accessibilityRole:"button",accessibilityLabel:e.title,onPress:()=>Be('me',e.id),style:({pressed:e})=>({padding:12,borderTopWidth:s?1:0,borderColor:z.colours.border,backgroundColor:e?'#1d1a14':'transparent'}),children:(0,he.jsxs)(A.Row,{style:{justifyContent:'space-between'},children:[(0,he.jsxs)(P.default,{style:{flex:1},children:[(0,he.jsx)(A.T,{weight:"medium",children:e.title}),(0,he.jsx)(A.Muted,{children:e.sub})]}),(0,he.jsx)(A.T,{colour:z.colours.muted,children:"\u203a"})]})},e.id))}),ae?(0,he.jsxs)(P.default,{testID:"manager-features",style:{gap:6},children:[(0,he.jsx)(A.T,{weight:"semibold",colour:z.colours.gold,children:"Manager features"}),(0,he.jsx)(P.default,{style:{borderRadius:14,borderWidth:1,borderColor:z.colours.gold,backgroundColor:z.colours.surface,overflow:'hidden'},children:be.map((e,s)=>(0,he.jsx)(M.default,{accessibilityRole:"button",accessibilityLabel:e.title,onPress:()=>Be('me',e.id),style:({pressed:e})=>({padding:12,borderTopWidth:s?1:0,borderColor:z.colours.border,backgroundColor:e?'#1d1a14':'transparent'}),children:(0,he.jsxs)(A.Row,{style:{justifyContent:'space-between'},children:[(0,he.jsxs)(P.default,{style:{flex:1},children:[(0,he.jsx)(A.T,{weight:"medium",children:e.title}),(0,he.jsx)(A.Muted,{children:e.sub})]}),(0,he.jsx)(A.T,{colour:z.colours.muted,children:"\u203a"})]})},e.id))}),(0,he.jsx)(J.ManagerFeaturesAbout,{})]}):null,ie?null:(0,he.jsx)(A.Muted,{children:"Suppliers are hidden: your manager hasn\u2019t shared them with staff."}),(0,he.jsxs)(A.Muted,{center:!0,children:["Staff app \xb7 ",b.APP_VERSION," \xb7 ",'live'===ue.useSync.getState().mode?'shared with your team':'saved on this device until it connects']})]}),ae&&ze?.id.startsWith('mgr-')?(0,he.jsxs)(Y.ShiftMgrScope.Provider,{value:!0,children:['mgr-bookings'===ze.id?(0,he.jsx)(H.Bookings,{}):null,'mgr-clear'===ze.id?(0,he.jsx)(J.TablesToClear,{rid:o}):null,'mgr-blocks'===ze.id?(0,he.jsx)(G.BlocksPage,{}):null,'mgr-allergy'===ze.id?(0,he.jsx)(Q.AllergenSignOffLog,{}):null,'mgr-stock'===ze.id?(0,he.jsxs)(P.default,{style:{gap:10},children:[(0,he.jsx)($.TrackedStockPage,{}),(0,he.jsx)(f.SoldOutList,{rid:o,by:i.replace(' (example)','')})]}):null,'mgr-clock'===ze.id?(0,he.jsx)(J.ClockOverview,{today:k,now:w}):null,'mgr-swaps'===ze.id?(0,he.jsx)(J.SwapApprovals,{today:k,me:i}):null]}):null,'loyalty'===ze?.id?(0,he.jsx)(c.StaffLoyalty,{venue:e.name}):null,'guests'===ze?.id?(0,he.jsx)(u.GuestProfiles,{me:i.replace(' (example)',''),manager:!1}):null,'bookings'===ze?.id?(0,he.jsx)(H.Bookings,{}):null,'giftcards'===ze?.id?(0,he.jsx)(h.GiftCardsPage,{me:i.replace(' (example)','')}):null,'tableorders'===ze?.id?(0,he.jsx)(r.StaffTableOrders,{rid:o,me:i.replace(' (example)','')}):null,'soldout'===ze?.id?(0,he.jsx)(f.SoldOutList,{rid:o,by:i.replace(' (example)','')}):null,'board'===ze?.id?(0,he.jsx)(C.QuestionBoard,{rid:o,today:k,manager:!1,by:""}):null,'recipecards'===ze?.id?(0,he.jsx)(S.RecipeCards,{rid:e.id,actor:{name:i,role:'staff'},mode:"read"}):null,'avatar'===ze?.id?(0,he.jsx)(ce.AvatarMaker,{meId:j,me:i}):null,'cashup'===ze?.id?(0,he.jsx)(je,{rid:o,today:k,meId:j,me:i}):null,'haccp'===ze?.id?(0,he.jsx)(ne.HaccpLog,{mode:"staff",me:i,meId:j,now:w}):null,'accidents'===ze?.id?(0,he.jsx)(le.AccidentBook,{app:"staff",me:i,meId:j,now:w,seeAll:!1}):null,'mypay'===ze?.id?(0,he.jsxs)(P.default,{style:{gap:10},children:[(0,he.jsx)(ee.MyPeriods,{staffId:j}),(0,he.jsx)(Z.MyHoursPay,{staffId:j})]}):null,'mytips'===ze?.id?(0,he.jsx)(oe.MyTips,{}):null,'timesheets'===ze?.id?(0,he.jsxs)(P.default,{style:{gap:10},children:[(0,he.jsx)(ee.MyPeriods,{staffId:j}),(0,he.jsx)(te.Timesheets,{})]}):null,'orderlists'===ze?.id?(0,he.jsx)(F.OrderListsScreen,{rid:o,today:k,editor:!!re&&'staff'!==re.role&&!ae,who:{id:j,name:i.replace(' (example)','')}}):null,'phone'===ze?.id?(0,he.jsxs)(P.default,{style:{gap:8},children:[(0,he.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,he.jsx)(N.PushButton,{})]}):null,'suppliers'===ze?.id?ie?(0,he.jsx)(se.Suppliers,{}):(0,he.jsx)(A.Muted,{children:"Your manager hasn\u2019t shared suppliers with staff."}):null,'privacy'===ze?.id?(0,he.jsxs)(P.default,{style:{gap:8},children:[(0,t.privateClockVenue)(o)?(0,he.jsxs)(he.Fragment,{children:[(0,he.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,he.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,he.jsxs)(he.Fragment,{children:[" ",(0,he.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,he.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,he.jsx)(A.T,{size:14,children:"\u2022 You see only your own hours, pay estimates and tips. Managers see the team\u2019s."}),(0,he.jsxs)(A.T,{size:14,children:["\u2022 Chat messages stay within ",e.name,"\u2019s team."]}),(0,he.jsx)(A.T,{size:14,children:"\u2022 Pay figures are estimates before tax and deductions; your payslip is the official record."})]}):null]}),(0,he.jsx)(P.default,{style:{flexDirection:'row',borderTopWidth:1,borderColor:z.colours.border,backgroundColor:(0,s.soutersSurface)('#0d0d0d')},children:pe.map(e=>{const s=ye===e.id;return(0,he.jsxs)(M.default,{accessibilityRole:"tab",accessibilityState:{selected:s},accessibilityLabel:e.label,onPress:()=>Be(e.id),style:{flex:1,alignItems:'center',paddingVertical:8,gap:2},children:[(0,he.jsxs)(P.default,{children:[(0,he.jsx)(X.Icon,{name:e.icon,colour:s?z.colours.gold:z.colours.muted}),'chat'===e.id&&Me?(0,he.jsx)(P.default,{style:{position:'absolute',right:-8,top:-4,backgroundColor:z.colours.red,borderRadius:8,minWidth:16,height:16,alignItems:'center',justifyContent:'center'},children:(0,he.jsx)(A.T,{size:10,weight:"bold",children:Me})}):null]}),(0,he.jsx)(A.T,{size:11,colour:s?z.colours.gold:z.colours.muted,children:e.label})]},e.id)})}),(0,he.jsx)(A.Sheet,{visible:Se,onClose:()=>Ce(!1),title:"Signed in as",children:re?(0,he.jsxs)(P.default,{style:{gap:8},children:[(0,he.jsxs)(A.Row,{gap:10,children:[(0,he.jsx)(de.StaffAvatar,{id:re.id,size:48}),(0,he.jsxs)(P.default,{style:{flex:1},children:[(0,he.jsx)(A.T,{weight:"semibold",children:re.name}),(0,he.jsx)(A.Muted,{children:(0,K.levelJob)(re.level??'Staff',re.job)})]})]}),(0,he.jsx)(A.Muted,{children:"Signed in with your personal link. This phone remembers you."}),ae?(0,he.jsx)(A.Muted,{children:"Manager features are on for you in this app."}):null,'staff'===re.role||ae?null:(0,he.jsx)(A.Button,{kind:"secondary",label:"Back to CoverCharge for Managers",onPress:()=>{const e=(0,K.appUrl)('owner');e&&window.location.assign(e)}}),re.id===fe?(0,he.jsx)(A.Button,{kind:"secondary",label:"Back to CoverCharge for Head Chef",onPress:()=>{const e=(0,K.appUrl)('chef');e&&window.location.assign(e)}}):null]}):(0,he.jsxs)(P.default,{style:{gap:8},children:[(0,he.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,he.jsx)(q.SignInWithLink,{})]})})]})}function xe({go:e}){const{rid:s,today:t}=(0,Y.useCtx)(3e4),r=(0,ae.useTravelDay)('staff',t);return(0,he.jsxs)(P.default,{style:{gap:10},children:[(0,he.jsx)(i.WhoBar,{}),(0,he.jsx)(ae.DayBar,{app:"staff",today:t}),r?null:(0,he.jsx)(o.CoversToday,{rid:s}),r?(0,he.jsx)(ae.DayView,{rid:s,day:r,today:t,app:"staff"}):(0,he.jsx)(re.StaffHome,{go:e})]})}function je({rid:e,today:s,meId:t,me:o}){return!0!==(0,w.useCashAccess)(e=>e.mine)?(0,he.jsx)(k.NoCashUpAccess,{}):(0,he.jsx)(j.CashUpScreen,{rid:e,today:s,canEdit:!0,who:{id:t??'me',name:o.replace(' (example)','')}})}},1057,[864,1059,957,1035,930,931,933,1036,1021,1037,1020,932,996,2,934,935,1027,1060,25,1033,977,228,258,146,122,284,808,849,948,841,816,946,938,936,953,954,1019,981,1061,956,940,1014,1013,1018,1058,942,845,117,945,1017,974,994,1015,1016,944,958,9,1039,1041,941,1034,815,19]);
|
| 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)','')},1058,[803,25,122,808,841,820,813,1056,1062,815,1026,816,19]);
|
kirkmichael/owner-app/_expo/static/js/web/lost-f5530d2ff085e20959eb05b0f0e9facb.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 u}});var t=_r(d[0]),n=_r(d[1]),s=_r(d[2]),r=_r(d[3]),l=_r(d[4]),o=_r(d[5]);function u(){const{rid:u}=(0,t.useLocalSearchParams)(),h=(0,r.useRestaurant)(u),c=(0,r.useCustomer)(),x=(0,r.useNow)(6e4),j=(0,l.useOwner)(t=>t.lost),p=(0,l.useOwner)(t=>t.lostReports),[f,y]=(0,n.useState)(''),[w,b]=(0,n.useState)(''),[S,C]=(0,n.useState)(''),[R,v]=(0,n.useState)(!1);if(!h)return(0,o.jsx)(s.Screen,{title:"Not found",children:(0,o.jsx)(s.T,{children:"Restaurant not found."})});const O=p.filter(t=>t.contact.includes(c.email));return(0,o.jsxs)(s.Screen,{title:"Lost property",subtitle:h.name,children:[(0,o.jsxs)(s.Card,{children:[(0,o.jsx)(s.H2,{children:"Recently handed in"}),j.filter(t=>'held'===t.status).map(t=>(0,o.jsxs)(s.Row,{style:{justifyContent:'space-between'},children:[(0,o.jsx)(s.T,{style:{flex:1},children:t.item}),(0,o.jsx)(s.Muted,{children:t.foundAt.slice(0,10)})]},t.id)),j.some(t=>'held'===t.status)?null:(0,o.jsx)(s.Muted,{children:"Nothing handed in right now."}),(0,o.jsx)(s.Muted,{children:"To collect, bring ID or describe the item to staff. Items are kept for 3 months."})]}),R?(0,o.jsxs)(s.Banner,{kind:"success",children:["Report sent to ",h.name,". They'll be in touch if it turns up (sent to the venue on this device only: messaging is not set up yet)."]}):null,(0,o.jsxs)(s.Card,{children:[(0,o.jsx)(s.H2,{children:"Lost something?"}),(0,o.jsx)(s.Field,{label:"What did you lose?",value:f,onChangeText:y,placeholder:"e.g. Grey scarf"}),(0,o.jsx)(s.Field,{label:"When were you in?",value:w,onChangeText:b,placeholder:"e.g. Saturday evening"}),(0,o.jsx)(s.Field,{label:"Where were you sitting? (optional)",value:S,onChangeText:C,placeholder:"e.g. By the window"}),(0,o.jsxs)(s.Muted,{children:["We'll share your name and email (",c.email,") with ",h.name," for this report only."]}),(0,o.jsx)(s.Button,{label:"Send report",disabled:f.trim().length<2||w.trim().length<2,onPress:()=>{l.useOwner.getState().setOwner({lostReports:[{id:`lr-${Date.now()}`,item:f.trim(),when:w.trim(),where:S.trim()||'Not sure',contact:`${c.name} \xb7 ${c.email}`,at:x.toISOString(),status:'open'},...l.useOwner.getState().lostReports]}),y(''),b(''),C(''),v(!0)}})]}),O.length?(0,o.jsxs)(s.Card,{children:[(0,o.jsx)(s.H2,{children:"Your reports"}),O.map(t=>(0,o.jsxs)(s.Row,{style:{justifyContent:'space-between'},children:[(0,o.jsxs)(s.T,{style:{flex:1},children:[t.item," \xb7 ",t.when]}),(0,o.jsx)(s.Badge,{kind:'matched'===t.status?'ok':'open'===t.status?'amber':'neutral',label:'matched'===t.status?'Found!':'open'===t.status?'Looking':'Closed'})]},t.id))]}):null]})}},777,[799,25,808,814,841,19]);
|
kirkmichael/owner-app/_expo/static/js/web/loyalty-428a4adbea68085927948a8b2dcd7398.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 j}});var e=_r(d[0]),r=_r(d[1]);_r(d[2]);var s,t=_r(d[3]),n=(s=t)&&s.__esModule?s:{default:s},i=_r(d[4]),o=_r(d[5]),l=_r(d[6]),c=_r(d[7]),u=_r(d[8]),h=_r(d[9]),p=_r(d[10]),f=_r(d[11]);function j(){const{rid:s}=(0,r.useLocalSearchParams)(),t=(0,c.useRestaurant)(s);return e.LIVE_VENUE_BUILD||(0,p.guestServer)()?t?(0,f.jsx)(h.LoyaltyLive,{slug:s,venue:t.name}):(0,f.jsx)(o.Screen,{title:"Not found",children:(0,f.jsx)(o.T,{children:"Restaurant not found."})}):(0,f.jsx)(x,{})}function x(){const{rid:e}=(0,r.useLocalSearchParams)(),s=(0,c.useRestaurant)(e),t=(0,c.useCustomer)(),h=(0,c.useStampCard)(e);if(!s)return(0,f.jsx)(o.Screen,{title:"Not found",children:(0,f.jsx)(o.T,{children:"Restaurant not found."})});const p=s.settings.stampTarget,j=h?.stamps??0;return(0,f.jsxs)(o.Screen,{title:"Stamp card",subtitle:`${s.name} \u2014 this card is just for ${s.name}`,children:[(0,f.jsx)(o.Banner,{kind:"example",title:"Example card (demo)",children:"On a real venue your card is saved by the venue and is the same on any phone."}),(0,f.jsxs)(o.Card,{highlight:u.colours.gold,children:[(0,f.jsxs)(o.Row,{style:{justifyContent:'space-between'},children:[(0,f.jsxs)(o.H2,{children:[j," of ",p," stamps"]}),(0,f.jsxs)(o.T,{colour:u.colours.gold,weight:"semibold",children:["Reward: ",s.settings.stampReward]})]}),(0,f.jsx)(n.default,{style:{flexDirection:'row',flexWrap:'wrap',gap:10,justifyContent:'center',paddingVertical:8},children:Array.from({length:p}).map((e,r)=>(0,f.jsx)(n.default,{accessibilityLabel:r<j?'Stamp collected':'Empty stamp',style:{width:52,height:52,borderRadius:26,borderWidth:2,borderColor:u.colours.gold,backgroundColor:r<j?u.colours.gold:'transparent',alignItems:'center',justifyContent:'center'},children:(0,f.jsx)(o.T,{size:22,colour:r<j?u.colours.onGold:u.colours.border,children:"\u2605"})},r))}),(0,f.jsxs)(o.Muted,{children:["One stamp per paid visit or order over ",(0,l.gbp)(s.settings.stampMinSpend)," \u2014 dine-in, table QR or takeaway. Rewards are funded by ",s.name,"."]}),h?.rewardsAvailable?(0,f.jsx)(o.Banner,{kind:"success",title:`${h.rewardsAvailable} reward${h.rewardsAvailable>1?'s':''} ready: ${s.settings.stampReward}`,children:(0,f.jsx)(o.Button,{small:!0,label:"Use reward (show staff)",onPress:()=>c.repo.loyalty.redeemReward(s.id,t.id)})}):null]}),(0,f.jsxs)(o.Card,{children:[(0,f.jsx)(o.H2,{children:"Show this to staff"}),(0,f.jsx)(o.Muted,{children:"Staff scan this on the tablet to add a stamp for dine-in visits not paid by table QR."}),(0,f.jsx)(i.QR,{value:`covercharge:stamp:${s.id}:${t.id}`,size:190}),(0,f.jsx)(o.T,{center:!0,weight:"semibold",children:t.name})]}),(0,f.jsxs)(o.Card,{children:[(0,f.jsx)(o.H2,{children:"Bring a friend"}),(0,f.jsx)(o.T,{children:"Your referral code"}),(0,f.jsx)(o.T,{size:28,weight:"bold",colour:u.colours.gold,center:!0,children:t.referralCode}),(0,f.jsx)(o.Muted,{children:"When a friend completes their first qualifying paid visit or order, you both get a stamp. One referral reward per new account, phone and card; monthly cap applies."})]}),(0,f.jsxs)(o.Card,{children:[(0,f.jsx)(o.H2,{children:"History"}),(h?.history??[]).length?h.history.slice(0,10).map((e,r)=>(0,f.jsxs)(o.Muted,{children:[e.at.slice(0,10)," \xb7 ",e.source]},r)):(0,f.jsx)(o.Muted,{children:"No stamps yet."})]}),(0,f.jsx)(o.Muted,{children:"Rewards are kept on food (Scottish licensing rules restrict drinks promotions). Stamps are never given for reviews."})]})}},778,[828,799,25,122,853,808,811,814,816,846,831,19]);
|
kirkmichael/owner-app/_expo/static/js/web/merch-8f96553687847cc042d911d2354f4b6c.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 y}});var e,t=_r(d[0]),n=_r(d[1]),s=_r(d[2]),l=_r(d[3]),r=(e=l)&&e.__esModule?e:{default:e},u=_r(d[4]),o=_r(d[5]),c=_r(d[6]),m=_r(d[7]),h=_r(d[8]),j=_r(d[9]),x=_r(d[10]),f=_r(d[11]),b=_r(d[12]),p=_r(d[13]);function y(){const{rid:e}=(0,n.useLocalSearchParams)(),s=(0,c.useRestaurant)(e),l=(0,c.useCustomer)();return t.LIVE_VENUE_BUILD||(0,b.guestServer)()?s?(0,p.jsx)(f.ShopLive,{slug:e,venue:s.name,guestName:l.name}):(0,p.jsx)(o.Screen,{title:"Not found",children:(0,p.jsx)(o.T,{children:"Restaurant not found."})}):(0,p.jsx)(S,{})}function S(){const{rid:e}=(0,n.useLocalSearchParams)(),t=(0,c.useRestaurant)(e),l=(0,c.useCustomer)(),f=(0,c.useNow)(6e4),b=(0,m.useOwner)(e=>e.merch),[y,S]=(0,s.useState)({}),[k,w]=(0,s.useState)(null),[v,C]=(0,s.useState)(null);if(!t)return(0,p.jsx)(o.Screen,{title:"Not found",children:(0,p.jsx)(o.T,{children:"Restaurant not found."})});const $=b.find(e=>e.id===k),O=e=>y[e]??1;return(0,p.jsxs)(o.Screen,{title:"Shop",subtitle:`${t.name} merch \xb7 collect in the restaurant`,children:[v?(0,p.jsxs)(o.Banner,{kind:"success",title:"Order noted (no payment taken)",children:[v," Collect it at the bar on your next visit."]}):null,b.filter(e=>e.live||0===e.stock).map(e=>(0,p.jsxs)(o.Card,{children:[(0,p.jsxs)(o.Row,{style:{justifyContent:'space-between'},children:[(0,p.jsxs)(r.default,{style:{flex:1},children:[(0,p.jsx)(o.T,{weight:"semibold",children:e.name}),(0,p.jsx)(o.T,{colour:x.colours.gold,weight:"semibold",children:(0,h.gbp)(e.price)})]}),0!==e.stock&&e.live?e.stock<8?(0,p.jsx)(o.Badge,{kind:"amber",label:`${e.stock} left`}):null:(0,p.jsx)(o.Badge,{kind:"neutral",label:"Sold out"})]}),e.live&&e.stock>0?(0,p.jsxs)(o.Row,{style:{justifyContent:'space-between'},children:[(0,p.jsx)(o.Stepper,{value:O(e.id),min:1,max:Math.min(5,e.stock),onChange:t=>S({...y,[e.id]:t}),label:`${e.name} quantity`}),(0,p.jsx)(o.Button,{small:!0,label:`Buy \xb7 ${(0,h.gbp)(e.price*O(e.id))}`,onPress:()=>w(e.id)})]}):null]},e.id)),(0,p.jsxs)(o.Muted,{children:["Collection only. Prices set by ",t.name,"."]}),$?(0,p.jsx)(u.MockPay,{visible:!0,onClose:()=>w(null),amount:$.price*O($.id),restaurantId:t.id,allowGiftCard:!1,title:`Buy ${$.name}`,onPaid:()=>{const e=m.useOwner.getState();e.setOwner({merch:e.merch.map(e=>e.id===$.id?{...e,stock:Math.max(0,e.stock-O($.id))}:e),merchOrders:[{id:`mo-${Date.now()}`,productId:$.id,qty:O($.id),customer:l.name,at:(0,j.ymd)(f),status:'new'},...e.merchOrders]}),C(`${O($.id)} \xd7 ${$.name}, ${(0,h.gbp)($.price*O($.id))}.`),w(null)}}):null]})}},779,[828,799,25,122,829,808,814,841,811,813,816,830,831,19]);
|
kirkmichael/owner-app/_expo/static/js/web/offers-2137236892f7f3e113b170592631f167.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 j}});var n=_r(d[0]),t=_r(d[1]);_r(d[2]);var s=_r(d[3]),r=_r(d[4]),o=_r(d[5]),l=_r(d[6]),c=_r(d[7]),u=_r(d[8]),f=_r(d[9]),h=_r(d[10]);function j(){const{rid:o}=(0,t.useLocalSearchParams)(),l=(0,r.useRestaurant)(o);return n.LIVE_VENUE_BUILD||(0,f.guestServer)()?l?(0,h.jsx)(u.OffersLive,{slug:o,venue:l.name}):(0,h.jsx)(s.Screen,{title:"Not found",children:(0,h.jsx)(s.T,{children:"Restaurant not found."})}):(0,h.jsx)(x,{})}function x(){const{rid:n}=(0,t.useLocalSearchParams)(),u=(0,r.useRestaurant)(n),f=(0,r.useCustomer)(),j=(0,o.useOwner)(n=>n.offers);if(!u)return(0,h.jsx)(s.Screen,{title:"Not found",children:(0,h.jsx)(s.T,{children:"Restaurant not found."})});const x=!!f.marketingOptIn[u.id],b=j.filter(n=>n.live),p=b.filter(n=>'special'===n.kind),y=b.filter(n=>'offer'===n.kind);return(0,h.jsxs)(s.Screen,{title:"Specials & offers",subtitle:u.name,children:[(0,h.jsxs)(s.Card,{highlight:x?c.colours.ok:c.colours.gold,children:[(0,h.jsx)(s.Toggle,{label:`Send me offers from ${u.name}`,value:x,onChange:n=>r.repo.customers.update({marketingOptIn:{...f.marketingOptIn,[u.id]:n}})}),(0,h.jsx)(s.Muted,{children:x?'You can switch this off any time. We only use it for this restaurant.':'Off by default. Turn on to see member offers and get the occasional notification (max one a week). You can switch it off any time.'})]}),(0,h.jsx)(s.H2,{children:"Today's specials"}),p.length?p.map(n=>(0,h.jsxs)(s.Card,{children:[(0,h.jsxs)(s.Row,{style:{justifyContent:'space-between'},children:[(0,h.jsx)(s.T,{weight:"semibold",style:{flex:1},children:n.title}),(0,h.jsx)(s.Badge,{kind:"gold",label:"Special"})]}),(0,h.jsx)(s.Muted,{children:n.body})]},n.id)):(0,h.jsx)(s.Muted,{children:"No specials on the board right now."}),(0,h.jsx)(s.H2,{children:"Member offers"}),x?y.length?y.map(n=>(0,h.jsxs)(s.Card,{children:[(0,h.jsxs)(s.Row,{style:{justifyContent:'space-between'},children:[(0,h.jsx)(s.T,{weight:"semibold",style:{flex:1},children:n.title}),(0,h.jsx)(s.Badge,{kind:"ok",label:"Offer"})]}),(0,h.jsx)(s.Muted,{children:n.body}),n.until?(0,h.jsxs)(s.Muted,{children:["Until ",(0,l.niceDate)((0,l.parseYmd)(n.until))]}):null]},n.id)):(0,h.jsx)(s.Muted,{children:"No offers right now."}):(0,h.jsxs)(s.Banner,{kind:"info",children:["Turn on offers above to see ",y.length," member offer",1===y.length?'':'s',"."]}),(0,h.jsxs)(s.Muted,{children:["Offers are set by ",u.name,". Drinks promotions follow Scottish licensing rules. Demo: no notifications are sent."]})]})}},780,[828,799,25,808,814,841,813,816,846,831,19]);
|
kirkmichael/owner-app/_expo/static/js/web/profile-af225387caec4495e9f01d49dd28df05.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 y}});var e=_r(d[0]),r=_r(d[1]),s=_r(d[2]);_r(d[3]);var t,l=_r(d[4]),n=(t=l)&&t.__esModule?t:{default:t},a=_r(d[5]),o=_r(d[6]),u=_r(d[7]),c=_r(d[8]),h=_r(d[9]),p=_r(d[10]),b=_r(d[11]);function y(){const t=(0,h.useCustomer)(),l=(0,h.useStore)((0,p.useShallow)(e=>e.orders.filter(r=>r.customerId===e.customer.id))),y=(0,h.useStore)((0,p.useShallow)(e=>e.bookings.filter(r=>r.customerId===e.customer.id))),x=(0,h.useStore)(e=>e.restaurants),j=e=>x.find(r=>r.id===e)?.name??e;return(0,b.jsxs)(a.Screen,{title:"Your account",subtitle:"One CoverCharge account for every restaurant",children:[(0,b.jsxs)(a.Card,{children:[(0,b.jsx)(a.Field,{label:"Name",value:t.name,onChangeText:e=>h.repo.customers.update({name:e})}),(0,b.jsx)(a.Field,{label:"Email",value:t.email,keyboardType:"email-address",onChangeText:e=>h.repo.customers.update({email:e})}),(0,b.jsx)(a.Field,{label:"Mobile",value:t.phone,keyboardType:"phone-pad",onChangeText:e=>h.repo.customers.update({phone:e})}),(0,b.jsx)(a.Muted,{children:(0,r.guestServer)()?'Your bring-a-friend code is on each restaurant\u2019s stamp card.':`Referral code: ${t.referralCode}`})]}),(0,b.jsxs)(a.Card,{children:[(0,b.jsx)(a.H2,{children:"Allergies & severity"}),(0,b.jsx)(a.Muted,{children:"Stored once and shared with a restaurant only when you order or book there. You confirm them on every order, table session and booking."}),(0,b.jsx)(a.Toggle,{label:"I consent to CoverCharge storing my allergy information (health data, UK GDPR)",value:t.allergyConsent,onChange:e=>h.repo.customers.update({allergyConsent:e})}),t.allergyConsent?null:(0,b.jsx)(a.Banner,{kind:"warn",children:"Without consent your allergies won\u2019t be stored \u2014 tell staff directly."}),o.ALLERGENS.map(e=>{const r=t.allergies.find(r=>r.allergen===e.id);return(0,b.jsxs)(n.default,{style:{gap:6,paddingVertical:6},children:[(0,b.jsxs)(a.Row,{style:{justifyContent:'space-between'},children:[(0,b.jsx)(a.T,{weight:r?'semibold':'regular',children:e.label}),r?(0,b.jsx)(a.Badge,{kind:"red",label:"Declared"}):null]}),(0,b.jsxs)(a.Row,{wrap:!0,gap:6,children:[(0,b.jsx)(a.Chip,{label:"None",selected:!r,onPress:()=>h.repo.customers.setAllergy(e.id,null),disabled:!t.allergyConsent&&!r}),o.SEVERITIES.map(s=>(0,b.jsx)(a.Chip,{label:s.label,selected:r?.severity===s.id,disabled:!t.allergyConsent,onPress:()=>h.repo.customers.setAllergy(e.id,s.id)},s.id))]})]},e.id)})]}),(0,b.jsxs)(a.Card,{children:[(0,b.jsx)(a.H2,{children:"Your orders"}),l.length?l.map(r=>(0,b.jsxs)(a.Row,{style:{justifyContent:'space-between'},children:[(0,b.jsxs)(a.T,{style:{flex:1},children:[r.ref," \xb7 ",j(r.restaurantId)," \xb7 ",'table'===r.type?`${(0,e.tableNumbers)(r.tableNo)}`:'Takeaway']}),(0,b.jsx)(a.Button,{small:!0,kind:"secondary",label:`${r.status} \xb7 ${(0,u.gbp)(r.subtotal+r.tip)}`,onPress:()=>s.router.push(`/customer/order/${r.id}`)})]},r.id)):(0,b.jsx)(a.Muted,{children:"No orders yet."})]}),(0,b.jsxs)(a.Card,{children:[(0,b.jsx)(a.H2,{children:"Your bookings"}),y.length?y.map(e=>(0,b.jsxs)(a.T,{children:[e.ref," \xb7 ",j(e.restaurantId)," \xb7 ",(0,c.niceDate)((0,c.parseYmd)(e.date))," ",e.time," \xb7 ",e.partySize," people \xb7 ",e.status]},e.id)):(0,b.jsx)(a.Muted,{children:"No bookings yet."})]}),(0,b.jsx)(a.Muted,{children:"Account deletion and data export would live here (Apple 5.1.1(v); Google web deletion link)."})]})}},787,[803,831,799,25,122,808,809,811,813,814,857,19]);
|
kirkmichael/owner-app/_expo/static/js/web/refer-4b4554083a8d04e2b6f7ec11bd04ea68.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 j}});var r=_r(d[0]),n=_r(d[1]),s=_r(d[2]),t=_r(d[3]),l=_r(d[4]),o=_r(d[5]),u=_r(d[6]),c=_r(d[7]),h=_r(d[8]),f=_r(d[9]);function j(){const{rid:s}=(0,n.useLocalSearchParams)(),o=(0,l.useRestaurant)(s);return r.LIVE_VENUE_BUILD||(0,h.guestServer)()?o?(0,f.jsx)(c.ReferLive,{slug:s,venue:o.name}):(0,f.jsx)(t.Screen,{title:"Not found",children:(0,f.jsx)(t.T,{children:"Restaurant not found."})}):(0,f.jsx)(x,{})}function x(){const{rid:r}=(0,n.useLocalSearchParams)(),c=(0,l.useRestaurant)(r),h=(0,l.useCustomer)(),j=(0,o.useOwner)(r=>r.referral),x=(0,o.useOwner)(r=>r.referrals),[p,w]=(0,s.useState)(!1);if(!c)return(0,f.jsx)(t.Screen,{title:"Not found",children:(0,f.jsx)(t.T,{children:"Restaurant not found."})});const b=x.filter(r=>r.referrer===h.name);return(0,f.jsxs)(t.Screen,{title:"Bring a friend",subtitle:c.name,children:[j.active?null:(0,f.jsxs)(t.Banner,{kind:"info",children:[c.name," isn't running referrals right now."]}),(0,f.jsxs)(t.Card,{highlight:u.colours.gold,children:[(0,f.jsxs)(t.H2,{children:["You get: ",j.giverReward]}),(0,f.jsxs)(t.T,{children:["Your friend gets: ",j.friendReward]}),(0,f.jsx)(t.Muted,{children:"When your friend makes their first paid visit or order."}),(0,f.jsx)(t.T,{size:30,weight:"bold",colour:u.colours.gold,center:!0,children:h.referralCode}),(0,f.jsx)(t.Button,{label:"Share my code",disabled:!j.active,onPress:()=>w(!0)}),p?(0,f.jsx)(t.Muted,{center:!0,children:"Demo: in the real app this opens your phone's share sheet. Nothing is sent from here."}):null]}),(0,f.jsxs)(t.Card,{children:[(0,f.jsx)(t.H2,{children:"Your referrals"}),b.length?b.map(r=>(0,f.jsxs)(t.Row,{style:{justifyContent:'space-between'},children:[(0,f.jsx)(t.T,{style:{flex:1},children:r.friend}),(0,f.jsx)(t.Badge,{kind:'rewarded'===r.status?'ok':'amber',label:r.status})]},r.id)):(0,f.jsx)(t.Muted,{children:"No referrals yet."})]}),(0,f.jsx)(t.Muted,{children:"One reward per new account, phone and card. Monthly cap applies. Rewards are on food, not drinks."})]})}},781,[828,799,25,808,814,841,816,846,831,19]);
|
kirkmichael/owner-app/_expo/static/js/web/waitlist-56fd1a0d1100ea117c4fcc50cf029b52.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)(),j=(0,u.useRestaurant)(h),x=(0,u.useCustomer)(),b=(0,u.useWaitlist)(h),y=(0,u.useBookings)(h),f=(0,u.useOrders)(h),w=(0,u.useEvents)(h),p=(0,u.useNow)(15e3),[M,S]=(0,s.useState)(2),[v,P]=(0,s.useState)(x.name);if(!j)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===x.id),B=(0,r.forecastToday)(j,y,f,w,p),C=B.nextHour?Math.min(1.6,Math.max(.8,B.nextHour.covers/(.75*j.settings.capacityPerHour))):1;if(k){const t=T.indexOf(k)+1;return(0,c.jsxs)(n.Screen,{title:"You\u2019re on the waitlist",subtitle:j.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,j.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:"We\u2019ll notify you when your table is ready (push/SMS simulated in this prototype)."}),(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:j.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,j.settings.turnMins,C)," minutes (estimate)."]})]}),(0,c.jsx)(n.Field,{label:"Name",value:v,onChangeText:P}),(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:M,onChange:S,min:1,max:12,label:"party size"})]}),(0,c.jsx)(n.Button,{label:"Join the queue",disabled:v.trim().length<2,onPress:()=>u.repo.waitlist.join(j.id,v,M,x.id),testID:"join-waitlist"}),(0,c.jsx)(n.Muted,{children:"Waitlist messages are service messages only \u2014 no marketing."})]})}},782,[799,25,808,813,854,855,814,816,19]);
|
kirkmichael/owner-app/index.html
CHANGED
|
@@ -35,6 +35,6 @@
|
|
| 35 |
<noscript> You need to enable JavaScript to run this app. </noscript>
|
| 36 |
<!-- The root element for your Expo app. -->
|
| 37 |
<div id="root"><div style="position:fixed;inset:0;background:#0B0B0B;display:grid;place-items:center"><img src="/kirkmichael/owner-app/brand-hero-49dc0730ea9f262a.png" alt="The Kirkmichael Arms" width="180" height="180"></div></div>
|
| 38 |
-
<script src="/kirkmichael/owner-app/_expo/static/js/web/__expo-metro-runtime-8c088df87a31e4e6accd81c554ec290d.js" defer></script><script src="/kirkmichael/owner-app/_expo/static/js/web/__common-
|
| 39 |
</body>
|
| 40 |
</html>
|
|
|
|
| 35 |
<noscript> You need to enable JavaScript to run this app. </noscript>
|
| 36 |
<!-- The root element for your Expo app. -->
|
| 37 |
<div id="root"><div style="position:fixed;inset:0;background:#0B0B0B;display:grid;place-items:center"><img src="/kirkmichael/owner-app/brand-hero-49dc0730ea9f262a.png" alt="The Kirkmichael Arms" width="180" height="180"></div></div>
|
| 38 |
+
<script src="/kirkmichael/owner-app/_expo/static/js/web/__expo-metro-runtime-8c088df87a31e4e6accd81c554ec290d.js" defer></script><script src="/kirkmichael/owner-app/_expo/static/js/web/__common-1207a9f363a6d62bfefe4bcf64751dfc.js" defer></script><script src="/kirkmichael/owner-app/_expo/static/js/web/index-9cfe1a17b8e047a9f3422dd00bc4cb77.js" defer></script>
|
| 39 |
</body>
|
| 40 |
</html>
|