fungiorganic commited on
Commit
54c2531
·
verified ·
1 Parent(s): ae94a84

Cover Charge apps v0.1.5: links built from the current address, no account name in any shipped file

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +26 -0
  2. 404.html +21 -0
  3. CHECKSUMS.txt +23 -0
  4. HOW-TO-INSTALL.txt +42 -0
  5. README.md +12 -5
  6. assets/Poppins-OFL.txt +93 -0
  7. assets/Poppins_400Regular.ttf +3 -0
  8. assets/Poppins_600SemiBold.ttf +3 -0
  9. assets/Poppins_700Bold.ttf +3 -0
  10. assets/apple-touch-icon.png +0 -0
  11. assets/icon-192.png +0 -0
  12. assets/icon-512.png +0 -0
  13. assets/logo-256.png +0 -0
  14. chef-app/_expo/static/js/web/+not-found-da8ea3ec55bebb0779db542f35c6adf9.js +1 -0
  15. chef-app/_expo/static/js/web/[did]-91eaf603d23bc2b2b79e4e95467ef972.js +1 -0
  16. chef-app/_expo/static/js/web/[n]-e07421962f3951aaf0f9cdf16bfbce72.js +1 -0
  17. chef-app/_expo/static/js/web/[oid]-a911bc47304589ae845932228484acd1.js +1 -0
  18. chef-app/_expo/static/js/web/[section]-11e4dec81ff7b7cd85a190186e1ec965.js +1 -0
  19. chef-app/_expo/static/js/web/__common-f05de040c69ff0916eb219342bde7a88.js +0 -0
  20. chef-app/_expo/static/js/web/__expo-metro-runtime-8c088df87a31e4e6accd81c554ec290d.js +5 -0
  21. chef-app/_expo/static/js/web/_layout-c49229c7b2fe2bfb0b86e6394f3f492e.js +34 -0
  22. chef-app/_expo/static/js/web/basket-4eb21aa32dca70bb07c6366854d109ba.js +1 -0
  23. chef-app/_expo/static/js/web/book-73d16fd431095875bb01cc0a0c784d3b.js +1 -0
  24. chef-app/_expo/static/js/web/demo-2aeda33db335ba3a45d18733444a4df6.js +1 -0
  25. chef-app/_expo/static/js/web/entry-c9ae8e46f7e1711ba53ff78cab96e43f.js +0 -0
  26. chef-app/_expo/static/js/web/feedback-c3022e0683297c445b34cc46bbd3da7c.js +1 -0
  27. chef-app/_expo/static/js/web/gift-0647b216e00344da5b09e74268994259.js +1 -0
  28. chef-app/_expo/static/js/web/index-13ccdfa5bffd18a6b4df0a7306778fa2.js +2 -0
  29. chef-app/_expo/static/js/web/index-3ce55512f207e0f4e938fcea314e34d2.js +1 -0
  30. chef-app/_expo/static/js/web/index-42c772ae8e6fc8ffb457607b71499331.js +1 -0
  31. chef-app/_expo/static/js/web/index-74ed5e3887809c4259d725a2965aa3f3.js +1 -0
  32. chef-app/_expo/static/js/web/index-99af37ed24577194995c700759e20e13.js +1 -0
  33. chef-app/_expo/static/js/web/index-af3e5ccc851b8a4e8e2a3b86ef9e9d20.js +1 -0
  34. chef-app/_expo/static/js/web/index-c8262c18c48ee7187765dc1008b473be.js +2 -0
  35. chef-app/_expo/static/js/web/index-e57a61ccf8b16e38bf91548a01cebbf1.js +1 -0
  36. chef-app/_expo/static/js/web/index-fe2ef7ba9ca2d3dda85e1d7850679a70.js +0 -0
  37. chef-app/_expo/static/js/web/lost-7b007fea2d20e11c896c10e43db314be.js +1 -0
  38. chef-app/_expo/static/js/web/loyalty-d61b997ba39f99d118b493617d57703f.js +36 -0
  39. chef-app/_expo/static/js/web/merch-14abbe5512f1b6eed03bc33e186d67f4.js +1 -0
  40. chef-app/_expo/static/js/web/offers-5900fcc1d50a10eb3a8ff2fd4b42777f.js +1 -0
  41. chef-app/_expo/static/js/web/profile-6f51fd327a235cc35956151e575e911e.js +1 -0
  42. chef-app/_expo/static/js/web/refer-0e20085c049a276476e1c515770e9648.js +1 -0
  43. chef-app/_expo/static/js/web/waitlist-a5a0b1c64dc88c053754737447f661af.js +1 -0
  44. chef-app/_expo/static/js/web/whatson-7bba1c8989b9be2fc455c8ddd8bbc99d.js +1 -0
  45. chef-app/apple-touch-icon.png +0 -0
  46. chef-app/assets/assets/brand/anchorage-hero.0450b828e4f9c1f4456240096598f6f5.png +3 -0
  47. chef-app/assets/assets/brand/anchorage.fea5ce2f6fd18bf2950aa21c0980ed8e.png +3 -0
  48. chef-app/assets/assets/brand/brae.8de9e89ac30966c6669de990370d8e40.png +0 -0
  49. chef-app/assets/assets/brand/saltmarsh.84acbc30d810d7a1cd3bbeb7b62651e8.png +0 -0
  50. chef-app/assets/node_modules/@expo-google-fonts/poppins/400Regular/Poppins_400Regular.093ee89be9ede30383f39a899c485a82.ttf +3 -0
.gitattributes CHANGED
@@ -33,3 +33,29 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ assets/Poppins_400Regular.ttf filter=lfs diff=lfs merge=lfs -text
37
+ assets/Poppins_600SemiBold.ttf filter=lfs diff=lfs merge=lfs -text
38
+ assets/Poppins_700Bold.ttf filter=lfs diff=lfs merge=lfs -text
39
+ chef-app/assets/assets/brand/anchorage-hero.0450b828e4f9c1f4456240096598f6f5.png filter=lfs diff=lfs merge=lfs -text
40
+ chef-app/assets/assets/brand/anchorage.fea5ce2f6fd18bf2950aa21c0980ed8e.png filter=lfs diff=lfs merge=lfs -text
41
+ chef-app/assets/node_modules/@expo-google-fonts/poppins/400Regular/Poppins_400Regular.093ee89be9ede30383f39a899c485a82.ttf filter=lfs diff=lfs merge=lfs -text
42
+ chef-app/assets/node_modules/@expo-google-fonts/poppins/500Medium/Poppins_500Medium.bf59c687bc6d3a70204d3944082c5cc0.ttf filter=lfs diff=lfs merge=lfs -text
43
+ chef-app/assets/node_modules/@expo-google-fonts/poppins/600SemiBold/Poppins_600SemiBold.6f1520d107205975713ba09df778f93f.ttf filter=lfs diff=lfs merge=lfs -text
44
+ chef-app/assets/node_modules/@expo-google-fonts/poppins/700Bold/Poppins_700Bold.08c20a487911694291bd8c5de41315ad.ttf filter=lfs diff=lfs merge=lfs -text
45
+ chef-app/brand-logo.png filter=lfs diff=lfs merge=lfs -text
46
+ customer-app/assets/assets/brand/anchorage-hero.0450b828e4f9c1f4456240096598f6f5.png filter=lfs diff=lfs merge=lfs -text
47
+ customer-app/assets/assets/brand/anchorage.fea5ce2f6fd18bf2950aa21c0980ed8e.png filter=lfs diff=lfs merge=lfs -text
48
+ customer-app/assets/node_modules/@expo-google-fonts/poppins/400Regular/Poppins_400Regular.093ee89be9ede30383f39a899c485a82.ttf filter=lfs diff=lfs merge=lfs -text
49
+ customer-app/assets/node_modules/@expo-google-fonts/poppins/500Medium/Poppins_500Medium.bf59c687bc6d3a70204d3944082c5cc0.ttf filter=lfs diff=lfs merge=lfs -text
50
+ customer-app/assets/node_modules/@expo-google-fonts/poppins/600SemiBold/Poppins_600SemiBold.6f1520d107205975713ba09df778f93f.ttf filter=lfs diff=lfs merge=lfs -text
51
+ customer-app/assets/node_modules/@expo-google-fonts/poppins/700Bold/Poppins_700Bold.08c20a487911694291bd8c5de41315ad.ttf filter=lfs diff=lfs merge=lfs -text
52
+ customer-app/brand-logo.png filter=lfs diff=lfs merge=lfs -text
53
+ display-app/assets/assets/brand/anchorage-hero.0450b828e4f9c1f4456240096598f6f5.png filter=lfs diff=lfs merge=lfs -text
54
+ display-app/assets/assets/brand/anchorage.fea5ce2f6fd18bf2950aa21c0980ed8e.png filter=lfs diff=lfs merge=lfs -text
55
+ display-app/assets/node_modules/@expo-google-fonts/poppins/400Regular/Poppins_400Regular.093ee89be9ede30383f39a899c485a82.ttf filter=lfs diff=lfs merge=lfs -text
56
+ display-app/assets/node_modules/@expo-google-fonts/poppins/500Medium/Poppins_500Medium.bf59c687bc6d3a70204d3944082c5cc0.ttf filter=lfs diff=lfs merge=lfs -text
57
+ display-app/assets/node_modules/@expo-google-fonts/poppins/600SemiBold/Poppins_600SemiBold.6f1520d107205975713ba09df778f93f.ttf filter=lfs diff=lfs merge=lfs -text
58
+ display-app/assets/node_modules/@expo-google-fonts/poppins/700Bold/Poppins_700Bold.08c20a487911694291bd8c5de41315ad.ttf filter=lfs diff=lfs merge=lfs -text
59
+ display-app/brand-logo.png filter=lfs diff=lfs merge=lfs -text
60
+ owner-app/assets/assets/brand/anchorage-hero.0450b828e4f9c1f4456240096598f6f5.png filter=lfs diff=lfs merge=lfs -text
61
+ owner-app/assets/assets/brand/anchorage.fea5ce2f6fd18bf2950aa21c0980ed8e.png filter=lfs diff=lfs merge=lfs -text
404.html ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html>
2
+ <html lang="en-GB"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/>
3
+ <title>Cover Charge</title><meta name="robots" content="noindex"/>
4
+ <script>
5
+ // Static hosting with no rewrites (GitHub Pages, Hugging Face static Space): send deep links back into the right app (it restores the path before it starts).
6
+ (function () {
7
+ var B = "/", APPS = ["owner", "staff", "customer", "display", "chef"], p = location.pathname, rest = location.search + location.hash;
8
+ for (var i = 0; i < APPS.length; i++) {
9
+ var v = APPS[i], root = B + v + '-app/', short = B + v;
10
+ if (p.indexOf(root) === 0) { try { sessionStorage.setItem('cc-redirect', location.href); } catch (e) {} location.replace(root); return; }
11
+ if (p === short || p.indexOf(short + '/') === 0) {
12
+ var deep = p.slice(short.length + 1);
13
+ if (deep) { try { sessionStorage.setItem('cc-redirect', root + deep + rest); } catch (e) {} }
14
+ location.replace(root); return;
15
+ }
16
+ }
17
+ document.addEventListener('DOMContentLoaded', function () { document.getElementById('nf').style.display = 'block'; });
18
+ })();
19
+ </script>
20
+ <style>body{margin:0;background:#0B0B0B;color:#F5F1E8;font-family:system-ui,sans-serif;display:flex;min-height:100vh;align-items:center;justify-content:center;text-align:center}a{color:#CFA45F}#nf{display:none;padding:24px}</style>
21
+ </head><body><div id="nf"><h1>Page not found</h1><p><a href="/">Go to the Cover Charge apps</a></p></div></body></html>
CHECKSUMS.txt ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Cover Charge prototype v0.1.5: web apps only. No APKs were built for v0.1.2, v0.1.3, v0.1.4 or v0.1.5.
2
+ SHA-256 of each web app's start page, service worker, manifest and logo:
3
+
4
+ bf8e4606058aa5baab587e2237e744abbe4d257cb309efc6ecdc2f41d91c4874 owner-app/index.html
5
+ a1e9e50f94328def90fd4968c6f41d91c23a89b1f82175a46f6d2eceeb463815 owner-app/sw.js
6
+ f55e319dbc2c60a4fdc484584098bc3c80b780d7ee8b8df280c30a673f94e69d owner-app/manifest.webmanifest
7
+ cc3dd9b8a359ba6c3f28d625c27cc6a01a46233311c2a5f5c8aaf09e91be8239 owner-app/brand-logo.png
8
+ 894fdfceecbecbcc4c20b086a8695b38dd17c7388fae84ea97f480b0981aef61 staff-app/index.html
9
+ b52321b56e4acfe2ffaf0d54b82b5638d656e18d5a48cd0971fa0878e8d1d5bf staff-app/sw.js
10
+ 18923b63d620744c81e8ae77204858313f0e3c54683b0c68a4ef6417975b92e3 staff-app/manifest.webmanifest
11
+ cc3dd9b8a359ba6c3f28d625c27cc6a01a46233311c2a5f5c8aaf09e91be8239 staff-app/brand-logo.png
12
+ 30e807a345a3cdc33df495488715f3f2085dd401c75476966bcb1c0ff3f390c6 customer-app/index.html
13
+ fdd89c576e124511accea5895ca567c1fdaba5d57d12089625fb2fe1a42eeeab customer-app/sw.js
14
+ 559816eba2698515c255da3cb9240a338f5bf8f5a4826a64e332cf51d5522e09 customer-app/manifest.webmanifest
15
+ cc3dd9b8a359ba6c3f28d625c27cc6a01a46233311c2a5f5c8aaf09e91be8239 customer-app/brand-logo.png
16
+ 1eb73aab3e53691a6fbfda81c1aa2fbf3a238dd051c24a3f391bd0f2e5d87ff9 display-app/index.html
17
+ 0a825fd815da365b61c83a29935b32d93178155456282566919bf90b0f5e8e2c display-app/sw.js
18
+ 8212811f397e23840df0b7ecb6a753ce5532c9383d6fdcad71b2deea30665077 display-app/manifest.webmanifest
19
+ cc3dd9b8a359ba6c3f28d625c27cc6a01a46233311c2a5f5c8aaf09e91be8239 display-app/brand-logo.png
20
+ 23131f966b85ccbf541080bde186c146e4c8a4b0d54c78fcb86928ba6e931181 chef-app/index.html
21
+ 0a2adf18f6c162485b6cd23c43c312d3df414c04db5ee2922a5ec572bb7ccc09 chef-app/sw.js
22
+ 7aa962371046330167f56dd74180ed58cba417770e3e4bae9ec8289b1837c461 chef-app/manifest.webmanifest
23
+ cc3dd9b8a359ba6c3f28d625c27cc6a01a46233311c2a5f5c8aaf09e91be8239 chef-app/brand-logo.png
HOW-TO-INSTALL.txt ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Cover Charge prototype apps, v0.1.5 (web apps)
2
+ Pilot restaurant: The Anchorage, Harbour View, Dunure
3
+
4
+ These are test versions with made-up demo data. No real payments, messages, social posts or location tracking happen.
5
+ They are web apps: open them in the browser, then add them to the Home screen so they open like a normal app.
6
+ They work on Android (Chrome, or Huawei Browser on phones without Google Play), iPhone and iPad.
7
+
8
+ WHERE TO FIND THEM
9
+ Download page: https://covercharge-apps.static.hf.space/
10
+ - The Anchorage (customer app): https://covercharge-apps.static.hf.space/customer-app/index.html
11
+ - Staff: https://covercharge-apps.static.hf.space/staff-app/index.html
12
+ - Display: https://covercharge-apps.static.hf.space/display-app/index.html
13
+ - Head Chef: https://covercharge-apps.static.hf.space/chef-app/index.html
14
+ - Managers: https://covercharge-apps.static.hf.space/owner-app/index.html
15
+ Apps already added to a Home screen from the old address keep working there; for new phones use the links above.
16
+
17
+ THE FIVE APPS (links on the download page)
18
+ Cover Charge for Managers: for the owner, GM and managers. Dashboard, forecasts, orders, bookings, menu and app content, rotas, timesheets, tips, payroll, suppliers, loyalty, marketing, social posting (demo), branding and quick links.
19
+ Cover Charge for Staff: for staff phones. Clock in and out (with break question), rota, swaps and leave, staff chat, my hours and pay, my tips.
20
+ Cover Charge: the customer app, what guests see. Takeaway, order at table, bookings, waitlist, stamp card, gift cards, allergens, offers, what's on, feedback.
21
+ Cover Charge for Display: for a tablet in the restaurant, held sideways. Live bookings, orders, kitchen tickets, allergy and takeaway alerts, who's on, forecast.
22
+ Cover Charge for Head Chef: stock and deliveries, recipe costing and GP, menu engineering, waste, ordering, prep lists, allergens, kitchen compliance, kitchen rota and chat.
23
+
24
+ ADD TO HOME SCREEN
25
+ Android, Chrome: tap "Open app", open the menu (the three dots), tap "Add to home screen" or "Install app", then "Install".
26
+ Android, Huawei Browser: tap "Open app", open the menu, tap "Add to" > "Home screen" (on some versions "Add page to" > "Home screen" or "Desktop"), then "Add".
27
+ No icon appears? On Huawei phones open Settings > Apps > Huawei Browser (or Chrome) > Permissions and allow "Create shortcuts" / "Create desktop shortcuts", then try again.
28
+ On phones without Google Play, Chrome shows "Add to home screen" rather than "Install"; both work. Built-in browsers inside other apps don't offer it: open the link in Chrome or Huawei Browser first.
29
+ iPhone or iPad, Safari: tap "Open app", tap Share (the square with an arrow), then "Add to Home Screen", then "Add".
30
+
31
+ The icons show The Anchorage logo. Open each app from its new icon. After the first visit it also opens without a signal.
32
+ All five can be added to the same phone side by side. On one phone they share the same demo data.
33
+
34
+ TIPS
35
+ - Cover Charge for Managers: More > Branding sets your logo and accent colour for all five apps.
36
+ - Cover Charge for Managers: More > Your apps has an Open button and a Copy link button for each of the five apps (each opens in a new tab).
37
+ - Home screen icons are labelled The Anchorage (customers), Managers · Anchorage, Staff · Anchorage, Display · Anchorage and Head Chef · Anchorage.
38
+ - Cover Charge for Managers: tap the role pill at the top to preview what staff see. More > All features gives a guided tour.
39
+ - Cover Charge for Display: best on a tablet held sideways.
40
+ - To remove one: long-press its icon > Remove (Android) or Remove App (iPhone).
41
+
42
+ These are prototypes. Please report anything that looks wrong, with a screenshot if you can.
README.md CHANGED
@@ -1,10 +1,17 @@
1
  ---
2
- title: Apps
3
- emoji: 🦀
4
- colorFrom: blue
5
- colorTo: indigo
6
  sdk: static
 
7
  pinned: false
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
1
  ---
2
+ title: CoverCharge apps
3
+ emoji: 🍽️
4
+ colorFrom: yellow
5
+ colorTo: gray
6
  sdk: static
7
+ app_file: index.html
8
  pinned: false
9
+ short_description: Cover Charge prototype, five web apps, demo data
10
  ---
11
 
12
+ # Cover Charge apps (prototype v0.1.5)
13
+
14
+ Web apps (PWAs) for The Anchorage, Harbour View, Dunure: Managers, Staff, the customer app, Display and Head Chef.
15
+ Each one opens in the browser and can be added to the Home screen (Chrome, Huawei Browser, Safari).
16
+
17
+ Prototype only: demo data, no real payments, messages or social posts.
assets/Poppins-OFL.txt ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
assets/Poppins_400Regular.ttf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:707fdc5c8bab57a90061c6a8ed7b70d5ffb82fc810e994e79f90bace890c255a
3
+ size 158240
assets/Poppins_600SemiBold.ttf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:248c0244b350ec68880996aa6be6d7796274b49992d5fcbbefe251906aa4ea36
3
+ size 155232
assets/Poppins_700Bold.ttf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7219547ee25334cbac0fe4b3acf0bf631e48ebb622c71af038edaaa652c60875
3
+ size 153944
assets/apple-touch-icon.png ADDED
assets/icon-192.png ADDED
assets/icon-512.png ADDED
assets/logo-256.png ADDED
chef-app/_expo/static/js/web/+not-found-da8ea3ec55bebb0779db542f35c6adf9.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 c}});var t=r(d[0]);r(d[1]);var n=r(d[2]),u=r(d[3]);function c(){return(0,u.jsx)(t.Redirect,{href:n.ENTRY[n.APP_VARIANT]})}},782,[785,12,787,6]);
chef-app/_expo/static/js/web/[did]-91eaf603d23bc2b2b79e4e95467ef972.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 p}});var e,n=_r(_d[0]),t=_r(_d[1]),l=_r(_d[2]),s=(e=l)&&e.__esModule?e:{default:e},a=_r(_d[3]),r=_r(_d[4]),o=_r(_d[5]),d=_r(_d[6]),c=_r(_d[7]),u=_r(_d[8]),g=_r(_d[9]),h=_r(_d[10]);function p(){const{rid:e,did:l}=(0,n.useLocalSearchParams)(),p=(0,u.useRestaurant)(e),f=(0,u.useMenu)(e).find(e=>e.id===l),b=(0,u.useCustomer)(),j=(0,u.useStore)(e=>e.addLine),[x,m]=(0,t.useState)(()=>(f?.optionGroups??[]).filter(e=>e.required).map(e=>e.choices[0].id)),[y,k]=(0,t.useState)(1),[v,w]=(0,t.useState)(''),[S,B]=(0,t.useState)(!1),[C,$]=(0,t.useState)(!1),[P,I]=(0,t.useState)(!1),[T,L]=(0,t.useState)(!1),D=(0,t.useMemo)(()=>f?(0,d.effectiveAllergens)(f,x):{},[f,x]);if(!p||!f)return(0,h.jsx)(o.Screen,{title:"Not found",children:(0,h.jsx)(o.T,{children:"Dish not found."})});const O=(0,d.conflictsFor)(D,b.allergies),A=(f.price??0)+(f.optionGroups??[]).flatMap(e=>e.choices).filter(e=>x.includes(e.id)).reduce((e,n)=>e+n.priceDelta,0),q=f.soldOut||!f.signOff||null===f.price,M=(e,n)=>{const t=f.optionGroups.find(n=>n.id===e);m(e=>{const l=t.choices.map(e=>e.id);return t.multi?e.includes(n)?e.filter(e=>e!==n):[...e,n]:e.includes(n)&&!t.required?e.filter(e=>e!==n):[...e.filter(e=>!l.includes(e)),n]})},_=e=>{u.useStore.getState().basket.restaurantId!==p.id&&u.useStore.getState().startBasket(p.id,'takeaway'),j({itemId:f.id,qty:y,choiceIds:x,notes:v,override:e?{allergens:O.contains,at:(new Date).toISOString()}:void 0}),B(!1),L(!0)};return(0,h.jsxs)(o.Screen,{title:f.name,subtitle:p.name,right:(0,h.jsx)(r.BasketButton,{}),children:[(0,h.jsxs)(o.Row,{wrap:!0,gap:6,children:[(0,h.jsx)(o.T,{weight:"bold",size:20,colour:g.colours.gold,children:null===f.price?f.priceNote:(0,c.gbp)(A)}),f.dietary.map(e=>(0,h.jsx)(o.Badge,{kind:"green",label:e},e))]}),(0,h.jsx)(o.T,{children:f.description}),O.contains.length?(0,h.jsx)(o.Banner,{kind:"danger",title:`Blocked: contains ${O.contains.map(d.allergenLabel).join(', ')}`,children:`You\u2019ve told us: ${b.allergies.filter(e=>O.contains.includes(e.allergen)).map(e=>`${(0,d.allergenLabel)(e.allergen)} \u2014 ${(0,d.severityLabel)(e.severity)}`).join('; ')}. This dish can\u2019t be added unless you deliberately override (for example, ordering for someone else).`}):null,O.may.length?(0,h.jsx)(o.Banner,{kind:"warn",title:`Warning: may contain ${O.may.map(d.allergenLabel).join(', ')}`,children:"Cross-contact is possible (e.g. shared fryer). Please speak to staff before ordering."}):null,(f.optionGroups??[]).map(e=>(0,h.jsxs)(o.Card,{children:[(0,h.jsxs)(o.T,{weight:"semibold",children:[e.name,e.required?' (required)':' (optional)']}),(0,h.jsx)(o.Row,{wrap:!0,gap:6,children:e.choices.map(n=>(0,h.jsx)(o.Chip,{label:n.label,sub:n.priceDelta?`+${(0,c.gbp)(n.priceDelta)}`:void 0,selected:x.includes(n.id),onPress:()=>M(e.id,n.id)},n.id))})]},e.id)),(0,h.jsx)(o.Card,{children:(0,h.jsx)(a.AllergenPanel,{item:f,map:D,declared:b.allergies})}),p.fictional?null:(0,h.jsx)(o.ExampleAllergenNotice,{}),(0,h.jsx)(o.Field,{label:"Notes for the kitchen (optional)",placeholder:"e.g. no gherkins",value:v,onChangeText:w}),(0,h.jsxs)(o.Row,{style:{justifyContent:'space-between'},children:[(0,h.jsx)(o.T,{weight:"semibold",children:"Quantity"}),(0,h.jsx)(o.Stepper,{value:y,onChange:k,label:"quantity"})]}),T?(0,h.jsx)(o.Banner,{kind:"success",title:"Added to basket",children:O.contains.length?'Allergy override recorded \u2014 the kitchen will see a large allergy alert.':'Carry on browsing or go to your basket.'}):null,q?(0,h.jsx)(o.Banner,{kind:"warn",children:f.soldOut?'Sold out today.':f.signOff?'Price on the specials board \u2014 ask staff.':'Not available to order online until the head chef signs off its allergens.'}):O.contains.length?(0,h.jsxs)(s.default,{style:{gap:8},children:[(0,h.jsx)(o.Button,{kind:"secondary",label:"Choose something else",onPress:()=>n.router.back()}),(0,h.jsx)(o.Button,{kind:"danger",label:"Override and add anyway\u2026",onPress:()=>{$(!1),I(!1),B(!0)},testID:"override-open"})]}):(0,h.jsxs)(o.Row,{gap:8,children:[(0,h.jsx)(o.Button,{style:{flex:1},label:`Add ${y} to basket \xb7 ${(0,c.gbp)(A*y)}`,onPress:()=>_(!1),testID:"add-to-basket"}),T?(0,h.jsx)(o.Button,{kind:"secondary",label:"Basket",onPress:()=>n.router.push('/customer/basket')}):null]}),(0,h.jsxs)(o.Sheet,{visible:S,onClose:()=>B(!1),title:"Allergy override",children:[(0,h.jsx)(o.Banner,{kind:"danger",title:`${f.name} contains ${O.contains.map(d.allergenLabel).join(', ')}`,children:`Your profile says: ${b.allergies.filter(e=>O.contains.includes(e.allergen)).map(e=>`${(0,d.allergenLabel)(e.allergen)} \u2014 ${(0,d.severityLabel)(e.severity)}`).join('; ')}.`}),(0,h.jsx)(o.Toggle,{label:"I understand this dish contains an allergen I have declared",value:C,onChange:$}),(0,h.jsx)(o.Toggle,{label:"It is for someone without this allergy, or I have spoken to staff",value:P,onChange:I}),(0,h.jsx)(o.Muted,{children:"The override is logged and shown to the kitchen as an allergy alert that must be acknowledged."}),(0,h.jsx)(o.Button,{kind:"danger",disabled:!C||!P,label:"Confirm override and add",onPress:()=>_(!0),testID:"override-confirm"})]})]})}},760,[785,12,109,798,799,790,791,793,796,797,6]);
chef-app/_expo/static/js/web/[n]-e07421962f3951aaf0f9cdf16bfbce72.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 c}});var t=_r(d[0]),r=_r(d[1]),n=_r(d[2]),u=_r(d[3]);function c(){const{n:c,r:s}=(0,t.useLocalSearchParams)(),o=(0,n.useStore)(t=>t.startBasket),[f,l]=(0,r.useState)(!1),b=s??'anchorage';return(0,r.useEffect)(()=>{o(b,'table',String(c)),l(!0)},[b,c]),f?(0,u.jsx)(t.Redirect,{href:`/customer/${b}`}):null}},776,[785,12,796,6]);
chef-app/_expo/static/js/web/[oid]-a911bc47304589ae845932228484acd1.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 w}});var e,t=_r(d[0]),l=_r(d[1]),s=_r(d[2]),r=(e=s)&&e.__esModule?e:{default:e},n=_r(d[3]),o=_r(d[4]),i=_r(d[5]),c=_r(d[6]),u=_r(d[7]),h=_r(d[8]),p=_r(d[9]),b=_r(d[10]),y=_r(d[11]);const j=[['new','Placed'],['acknowledged','Accepted'],['preparing','Cooking'],['ready','Ready to collect'],['collected','Collected']],x=[['new','Sent'],['acknowledged','Accepted'],['preparing','Cooking'],['served','Food out'],['closed','Paid']];function w(){const{oid:e}=(0,t.useLocalSearchParams)(),s=(0,p.useOrder)(e),w=(0,p.useRestaurant)(s?.restaurantId),[f,T]=(0,l.useState)(0),[C,k]=(0,l.useState)(''),[S,v]=(0,l.useState)(!1),[P,M]=(0,l.useState)(!1),[$,A]=(0,l.useState)(1),[R,I]=(0,l.useState)(0),[O,B]=(0,l.useState)(s?.split?.ways??1);if(!s||!w)return(0,y.jsx)(i.Screen,{title:"Order",children:(0,y.jsx)(i.T,{children:"Order not found."})});const N='takeaway'===s.type?j:x,H=Math.max(0,N.findIndex(([e])=>e===s.status)),_=Math.round(s.subtotal*R/100),D='table'===s.type?s.subtotal+(s.split?s.tip:_):s.total,F=D-s.paid,q=s.split?.ways??O,L=s.split?.paidShares??0,W=Math.ceil(D/q),Y='collected'===s.status||'closed'===s.status;return(0,y.jsxs)(i.Screen,{title:`Order ${s.ref}`,subtitle:`${w.name} \xb7 ${'table'===s.type?`Table ${s.tableNo}`:`Collection at ${s.slotTime?(0,h.hm)(new Date(s.slotTime)):'\u2014'}`}`,children:['takeaway'===s.type?(0,y.jsx)(i.Banner,{kind:"success",title:'ready'===s.status?'Your order is ready!':'Order placed and paid (demo)',children:'ready'===s.status?'Head to the bar and give your order number. Staff will check allergies with you at handover.':`Show order number ${s.ref} at the bar when you arrive.`}):null,(0,y.jsxs)(i.Card,{children:[(0,y.jsx)(i.H2,{children:"Status"}),N.map(([e,t],l)=>(0,y.jsxs)(i.Row,{gap:10,children:[(0,y.jsx)(r.default,{style:{width:22,height:22,borderRadius:11,backgroundColor:l<=H?b.colours.gold:b.colours.surface2,borderWidth:1,borderColor:b.colours.gold}}),(0,y.jsx)(i.T,{weight:l===H?'semibold':'regular',colour:l<=H?b.colours.text:b.colours.muted,children:t})]},e)),s.allergyAck?(0,y.jsxs)(i.Muted,{children:["Allergy alert acknowledged by kitchen (",s.allergyAck.by,", ",(0,h.hm)(new Date(s.allergyAck.at)),")"]}):s.allergies.length?(0,y.jsx)(i.Muted,{children:"Waiting for the kitchen to acknowledge your allergies\u2026"}):null,'takeaway'!==s.type||Y?null:(0,y.jsxs)(i.Row,{gap:8,children:[(0,y.jsx)(i.Button,{small:!0,kind:'on-my-way'===s.customerSignal?'primary':'secondary',label:"On my way",onPress:()=>p.repo.orders.customerSignal(s.id,'on-my-way')}),(0,y.jsx)(i.Button,{small:!0,kind:'here'===s.customerSignal?'primary':'secondary',label:"I\u2019m here",onPress:()=>p.repo.orders.customerSignal(s.id,'here')})]})]}),(0,y.jsxs)(i.Card,{children:[(0,y.jsx)(i.H2,{children:"Items"}),s.lines.map((e,t)=>(0,y.jsxs)(r.default,{children:[(0,y.jsxs)(i.Row,{style:{justifyContent:'space-between'},children:[(0,y.jsxs)(i.T,{style:{flex:1},children:[e.qty,"\xd7 ",e.name]}),(0,y.jsx)(i.T,{children:(0,u.gbp)(e.unitPrice*e.qty)})]}),e.choices.length?(0,y.jsx)(i.Muted,{children:e.choices.join(' \xb7 ')}):null,e.overridden?(0,y.jsx)(i.Badge,{kind:"red",label:`Allergy override: ${e.contains.map(c.allergenLabel).join(', ')}`}):null]},t)),(0,y.jsxs)(i.Row,{style:{justifyContent:'space-between'},children:[(0,y.jsx)(i.Muted,{children:"Subtotal"}),(0,y.jsx)(i.T,{children:(0,u.gbp)(s.subtotal)})]}),s.giftCardApplied?(0,y.jsxs)(i.Row,{style:{justifyContent:'space-between'},children:[(0,y.jsx)(i.Muted,{children:"Of which gift card"}),(0,y.jsxs)(i.T,{colour:b.colours.green,children:["\u2212",(0,u.gbp)(s.giftCardApplied)]})]}):null,s.tip?(0,y.jsxs)(i.Row,{style:{justifyContent:'space-between'},children:[(0,y.jsx)(i.Muted,{children:"Tip"}),(0,y.jsx)(i.T,{children:(0,u.gbp)(s.tip)})]}):null,(0,y.jsxs)(i.Row,{style:{justifyContent:'space-between'},children:[(0,y.jsx)(i.T,{weight:"semibold",children:"Paid (demo)"}),(0,y.jsx)(i.T,{weight:"semibold",colour:b.colours.gold,children:(0,u.gbp)(s.paid)})]})]}),'table'===s.type&&'closed'!==s.status&&'cancelled'!==s.status?(0,y.jsxs)(i.Card,{highlight:b.colours.gold,children:[(0,y.jsxs)(i.H2,{children:["Your bill \u2014 Table ",s.tableNo]}),s.split?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(i.T,{children:["Total ",(0,u.gbp)(D)," \xb7 split ",q," way",q>1?'s':''," \xb7 ",(0,u.gbp)(W)," each"]}),(0,y.jsxs)(i.T,{children:["Shares paid: ",L," of ",q," \xb7 remaining ",(0,u.gbp)(F)]}),q>1?(0,y.jsxs)(i.Row,{style:{justifyContent:'space-between'},children:[(0,y.jsx)(i.T,{children:"Shares to pay now"}),(0,y.jsx)(i.Stepper,{value:$,onChange:A,min:1,max:q-L,label:"shares"})]}):null,(0,y.jsx)(i.Button,{label:`Pay ${q>1?`${$} share${$>1?'s':''}`:'bill'} \xb7 ${(0,u.gbp)(Math.min(F,W*$))}`,onPress:()=>M(!0),testID:"pay-bill"})]}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(i.T,{weight:"semibold",children:"Add a tip?"}),(0,y.jsx)(i.Row,{wrap:!0,children:[0,10,12.5,15].map(e=>(0,y.jsx)(i.Chip,{label:e?`${e}%`:'No tip',selected:R===e,onPress:()=>I(e)},e))}),(0,y.jsx)(i.Muted,{children:"Tips go to staff under the restaurant\u2019s tipping policy (Employment (Allocation of Tips) Act 2023)."}),(0,y.jsxs)(i.Row,{style:{justifyContent:'space-between'},children:[(0,y.jsx)(i.T,{weight:"semibold",children:"Split evenly between"}),(0,y.jsx)(i.Stepper,{value:O,onChange:B,min:1,max:8,label:"people"})]}),(0,y.jsxs)(i.T,{children:["Total ",(0,u.gbp)(s.subtotal+_),O>1?` \xb7 ${(0,u.gbp)(Math.ceil((s.subtotal+_)/O))} each`:'']}),(0,y.jsx)(i.Button,{label:"Get the bill",onPress:()=>p.repo.orders.setSplit(s.id,O,_),testID:"get-bill"})]})]}):null,!Y||s.rated||S?null:(0,y.jsxs)(i.Card,{highlight:b.colours.gold,children:[(0,y.jsx)(i.H2,{children:"How was everything?"}),(0,y.jsxs)(i.Muted,{children:["One tap \u2014 this goes privately to ",w.name," only, never published."]}),(0,y.jsx)(o.Stars,{value:f,onChange:T}),f?(0,y.jsx)(i.Field,{label:"Anything to add? (optional)",value:C,onChangeText:k}):null,(0,y.jsx)(i.Button,{label:"Send feedback",disabled:!f,onPress:()=>{p.repo.feedback.add({restaurantId:w.id,orderId:s.id,customerId:s.customerId,customerName:s.customerName,stars:f,comment:C,context:'table'===s.type?`Table ${s.tableNo}`:`Takeaway ${s.ref}`}),v(!0)},testID:"send-rating"})]}),S||s.rated?(0,y.jsx)(i.Banner,{kind:"success",children:"Thanks \u2014 your feedback went privately to the restaurant."}):null,Y?(0,y.jsx)(i.Button,{kind:"secondary",label:"View stamp card",onPress:()=>t.router.push(`/customer/${w.id}/loyalty`)}):null,(0,y.jsx)(n.MockPay,{visible:P,onClose:()=>M(!1),amount:Math.min(F,W*$),restaurantId:w.id,title:`Pay \u2014 Table ${s.tableNo}`,onPaid:e=>{p.repo.orders.payTable(s.id,{shares:$,giftCardCode:e.giftCardCode}),M(!1),A(1)}})]})}},773,[785,12,109,789,800,790,791,793,795,796,797,6]);
chef-app/_expo/static/js/web/[section]-11e4dec81ff7b7cd85a190186e1ec965.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 s}});var t=r(d[0]);r(d[1]);var n=r(d[2]),c=r(d[3]),o=r(d[4]),f=r(d[5]);function s(){const{section:s}=(0,t.useLocalSearchParams)();return(0,c.canShow)('chef')?s&&(0,o.chefSectionAllowed)(String(s))?(0,f.jsx)(n.ChefApp,{section:String(s)},String(s)):(0,f.jsx)(t.Redirect,{href:"/kitchen"}):(0,f.jsx)(t.Redirect,{href:c.ENTRY[c.APP_VARIANT]})}},757,[785,12,786,787,788,6]);
chef-app/_expo/static/js/web/__common-f05de040c69ff0916eb219342bde7a88.js ADDED
The diff for this file is too large to render. See raw diff
 
chef-app/_expo/static/js/web/__expo-metro-runtime-8c088df87a31e4e6accd81c554ec290d.js ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ var __BUNDLE_START_TIME__=globalThis.nativePerformanceNow?nativePerformanceNow():Date.now(),__DEV__=false,process=globalThis.process||{},__METRO_GLOBAL_PREFIX__='';process.env=process.env||{};process.env.NODE_ENV=process.env.NODE_ENV||"production";
2
+ !(function(e){'use strict';e[`${__METRO_GLOBAL_PREFIX__}__d`]||(e.__r=i,e[`${__METRO_GLOBAL_PREFIX__}__d`]=function(e,o,n){if(t.has(o))return;const i={dependencyMap:n,factory:e,hasError:!1,importedAll:r,importedDefault:r,isInitialized:!1,publicModule:{exports:{}}};t.set(o,i)},e.__c=n,e.__registerSegment=function(e,r,o){c[e]=r,o&&o.forEach(r=>{t.has(r)||s.has(r)||s.set(r,e)})});var t=n();const r={},{hasOwnProperty:o}={};function n(){return t=new Map}function i(e,r){if(null===e)throw new Error('Cannot find module');const o=t.get(e);return o&&o.isInitialized?o.publicModule.exports:a(e,o,r)}function l(e,o){if(t.has(e)&&t.get(e)?.importedDefault!==r)return t.get(e).importedDefault;const n=i(e,o),l=n&&n.__esModule?n.default:n;return t.get(e).importedDefault=l}function u(e,n){if(t.has(e)&&t.get(e)?.importedAll!==r)return t.get(e).importedAll;const l=i(e,n);let u;if(l&&l.__esModule)u=l;else{if(u={},l)for(const e in l)o.call(l,e)&&(u[e]=l[e]);u.default=l}return t.get(e).importedAll=u}i.importDefault=l,i[Symbol.for('expo.require')]=!0,i.importAll=u,i.context=function(){throw new Error('The experimental Metro feature `require.context` is not enabled in your project.')},i.resolveWeak=function(){throw new Error('require.resolveWeak cannot be called dynamically.')},i.unguarded=function(e,r){const o=t.get(e);return o&&o.isInitialized?o.publicModule.exports:f(e,o,r)};let d=!1;function a(t,r,o){if(!d&&e.ErrorUtils){let n;d=!0;try{n=f(t,r,o)}catch(t){e.ErrorUtils.reportFatalError(t)}return d=!1,n}return f(t,r,o)}i.unpackModuleId=function(e){if('number'!=typeof e)throw new Error('Module ID must be a number in unpackModuleId.');return{segmentId:e>>>16,localId:65535&e}},i.packModuleId=function(e){return(e.segmentId<<16)+e.localId};const c=[],s=new Map;function f(r,o,n){if(!o&&c.length>0){const e=s.get(r)??0,n=c[e];null!=n&&(n(r),o=t.get(r),s.delete(r))}if(!o)throw p(r,n);if(o.hasError)throw o.error;o.isInitialized=!0;const{factory:d,dependencyMap:a}=o;try{const t=o.publicModule;return t.id=r,d?.(e,i,l,u,t,t.exports,a),o.factory=void 0,o.dependencyMap=void 0,t.exports}catch(e){throw o.hasError=!0,o.error=e,o.isInitialized=!1,o.publicModule.exports=void 0,e}}function p(e,t){return Error('Requiring unknown module "'+(e??t??"[unknown optional import]")+'".')}})('undefined'!=typeof globalThis?globalThis:'undefined'!=typeof global?global:'undefined'!=typeof window?window:this);
3
+ !(function(e){e.$$require_external="undefined"!=typeof require?e=>require(e):()=>null})('undefined'!=typeof globalThis?globalThis:'undefined'!=typeof global?global:'undefined'!=typeof window?window:this);
4
+ 'undefined'!=typeof globalThis?globalThis:'undefined'!=typeof global?global:'undefined'!=typeof window&&window;
5
+ !(function(r){let l=0,n=!0===r.RN$useAlwaysAvailableJSErrorHandling?r.RN$handleException:(r,l)=>{throw r};const t={setGlobalHandler(r){n=r},getGlobalHandler:()=>n,reportError(r){n&&n(r,!1)},reportFatalError(r){n&&n(r,!0)},applyWithGuard(r,n,e,a,o){try{return l++,r.apply(n,e)}catch(r){t.reportError(r)}finally{l--}return null},applyWithGuardIfNeeded:(r,l,n)=>t.inGuard()?r.apply(l,n):(t.applyWithGuard(r,l,n),null),inGuard:()=>!!l,guard(r,l,n){if('function'!=typeof r)return console.warn('A function must be passed to ErrorUtils.guard, got ',r),null;const e=l??r.name??'<generated guard>';return function(...l){return t.applyWithGuard(r,n??this,l,null,e)}}};r.ErrorUtils=t})('undefined'!=typeof globalThis?globalThis:'undefined'!=typeof global?global:'undefined'!=typeof window?window:this);
chef-app/_expo/static/js/web/_layout-c49229c7b2fe2bfb0b86e6394f3f492e.js ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 A}});var t=r(_d[0]),s=r(_d[1]),n=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(s){if('default'!==s){var n=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,n.get?n:{enumerable:!0,get:function(){return e[s]}})}}),t.default=e,t})(r(_d[2])),o=r(_d[3]),u=r(_d[4]),c=e(r(_d[5])),d=e(r(_d[6]));r(_d[7]);var l=e(r(_d[8])),f=e(r(_d[9])),p=r(_d[10]),h=r(_d[11]),y=r(_d[12]),b=r(_d[13]),O=r(_d[14]),S=r(_d[15]),_=r(_d[16]);const j=r(_d[17]),w=r(_d[18]),P=r(_d[19]),v=r(_d[20]);function A(){const[e]=(0,t.useFonts)({Poppins_400Regular:j,Poppins_500Medium:w,Poppins_600SemiBold:P,Poppins_700Bold:v}),[A,E]=(0,u.useState)(b.useStore.persist.hasHydrated()),[x,H]=(0,u.useState)(O.useOwner.persist.hasHydrated()),k=A&&x;(0,u.useEffect)(()=>{const e=b.useStore.persist.onFinishHydration(()=>E(!0)),t=O.useOwner.persist.onFinishHydration(()=>H(!0));return b.useStore.persist.hasHydrated()&&E(!0),O.useOwner.persist.hasHydrated()&&H(!0),()=>{e(),t()}},[]),(0,u.useEffect)(()=>{if('undefined'==typeof window)return;const e=e=>{e.key===b.useStore.persist.getOptions().name&&b.useStore.persist.rehydrate()};return window.addEventListener('storage',e),()=>window.removeEventListener('storage',e)},[]);const M=e&&k,T=(0,s.usePathname)(),C=M&&!(0,h.isAllowedPath)(T||'/');return(0,u.useEffect)(()=>{if(!C)return;const e=setTimeout(()=>s.router.replace(h.ENTRY[h.APP_VARIANT]),0);return()=>clearTimeout(e)},[C,T]),(0,u.useEffect)(()=>{M&&n.hideAsync().catch(()=>{})},[M]),M?(0,_.jsxs)(y.SafeAreaProvider,{children:[(0,_.jsx)(o.StatusBar,{style:"light"}),(0,_.jsx)(s.Stack,{screenOptions:{headerShown:!1,contentStyle:{backgroundColor:S.colours.bg}}}),C?(0,_.jsx)(f.default,{style:[l.default.absoluteFill,{backgroundColor:S.colours.bg}]}):null]}):(0,_.jsxs)(f.default,{style:{flex:1,backgroundColor:S.colours.bg,alignItems:'center',justifyContent:'center',gap:18},children:[(0,_.jsx)(d.default,{source:p.HERO_LOGOS.anchorage,accessibilityLabel:"The Anchorage logo",style:{width:180,height:180},resizeMode:"contain"}),(0,_.jsx)(c.default,{color:S.colours.gold})]})}n.preventAutoHideAsync().catch(()=>{})},783,[866,785,893,549,12,228,178,104,28,109,844,787,271,796,802,797,6,895,896,897,898]);
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])},866,[867,890,892]);
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)}}},867,[283,868,871,885,886,887,888,889]);
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}},868,[283,869]);
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}},869,[870]);
6
+ __d(function(g,r,i,a,m,e,d){},870,[]);
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)}},871,[872,283,868,885,886]);
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]}})})},872,[873,874,884]);
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()}})}},873,[874,878,883]);
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}}},874,[283,214,875,879,880,881,882,878,883]);
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}},875,[283,876,181,94,877,878]);
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])},876,[557]);
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}}},877,[283,181]);
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},878,[]);
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}},879,[]);
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}},880,[]);
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])},881,[879]);
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}},882,[]);
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},883,[214,877]);
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])},884,[12,874]);
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}},885,[872,283]);
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])},886,[872,885]);
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}},887,[868]);
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])},888,[283,868,871,869]);
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})({})},889,[]);
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]))},890,[283,35,891]);
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')},891,[283]);
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]}},892,[12,867]);
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]}})})},893,[894]);
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(){}},894,[]);
31
+ __d(function(e,o,s,p,t,a,n){"use strict";t.exports="/chef-app/assets/node_modules/@expo-google-fonts/poppins/400Regular/Poppins_400Regular.093ee89be9ede30383f39a899c485a82.ttf"},895,[]);
32
+ __d(function(e,o,s,p,c,t,d){"use strict";c.exports="/chef-app/assets/node_modules/@expo-google-fonts/poppins/500Medium/Poppins_500Medium.bf59c687bc6d3a70204d3944082c5cc0.ttf"},896,[]);
33
+ __d(function(o,e,s,p,f,t,d){"use strict";f.exports="/chef-app/assets/node_modules/@expo-google-fonts/poppins/600SemiBold/Poppins_600SemiBold.6f1520d107205975713ba09df778f93f.ttf"},897,[]);
34
+ __d(function(o,s,e,p,d,t,n){"use strict";d.exports="/chef-app/assets/node_modules/@expo-google-fonts/poppins/700Bold/Poppins_700Bold.08c20a487911694291bd8c5de41315ad.ttf"},898,[]);
chef-app/_expo/static/js/web/basket-4eb21aa32dca70bb07c6366854d109ba.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,l=_r(d[0]),t=_r(d[1]),n=_r(d[2]),s=(e=n)&&e.__esModule?e:{default:e},a=_r(d[3]),r=_r(d[4]),o=_r(d[5]),i=_r(d[6]),c=_r(d[7]),u=_r(d[8]),h=_r(d[9]),b=_r(d[10]),m=_r(d[11]),y=_r(d[12]);function j(){const e=(0,h.useBasket)(),n=(0,h.useRestaurant)(e.restaurantId??void 0),j=(0,h.useStore)(e=>e.menu),x=(0,h.useCustomer)(),f=(0,h.useOrders)(n?.id),k=(0,h.useStore)(e=>e.setLineQty),p=(0,h.useStore)(e=>e.overrideLine),w=(0,h.useStore)(e=>e.startBasket),v=(0,h.useNow)(15e3),[C,B]=(0,t.useState)(null),[S,P]=(0,t.useState)(!1),[T,$]=(0,t.useState)(''),[O,L]=(0,t.useState)(!1),[R,I]=(0,t.useState)(null),[M,N]=(0,t.useState)(!1),F=(0,t.useMemo)(()=>(0,b.linesFromBasket)(e,j,x.allergies),[e,j,x.allergies]);if(!n||!e.lines.length)return(0,y.jsxs)(r.Screen,{title:"Your basket",children:[(0,y.jsx)(r.Muted,{children:"Your basket is empty."}),(0,y.jsx)(r.Button,{label:"Browse restaurants",onPress:()=>l.router.replace('/customer')})]});const _='table'===e.mode,z=(0,c.takeawaySlots)(n,f,v),D=F.reduce((e,l)=>e+l.unitPrice*l.qty,0),A=F.some(e=>e.contains.length&&!e.overridden),E=e.lines.filter(e=>{const l=j.find(l=>l.id===e.itemId);return!l||l.soldOut||!l.signOff}),Y=!_&&!C,q=!_&&n.settings.takeawayPaused,H=!A&&!E.length&&S&&!Y&&!q,K=async e=>{const t=await h.repo.orders.placeFromBasket({slotTime:_?void 0:C,tip:0,giftCardCode:e?.giftCardCode,notes:T,paidNow:!_});L(!1),l.router.replace(`/customer/order/${t.id}`)},Q=e.lines.find(e=>e.key===R),G=Q?F[e.lines.indexOf(Q)]:void 0;return(0,y.jsxs)(r.Screen,{title:"Your basket",subtitle:`${n.name} \xb7 ${_?`Table ${e.tableNo} (order at table)`:'Takeaway \u2014 collection'}`,footer:(0,y.jsxs)(s.default,{style:{gap:8},children:[(0,y.jsxs)(r.Row,{style:{justifyContent:'space-between'},children:[(0,y.jsx)(r.T,{weight:"semibold",children:"Subtotal"}),(0,y.jsx)(r.T,{weight:"bold",size:20,colour:m.colours.gold,children:(0,i.gbp)(D)})]}),A?(0,y.jsx)(r.T,{size:14,colour:m.colours.red,children:"Resolve the blocked allergy item(s) before continuing."}):S?Y&&!q?(0,y.jsx)(r.T,{size:14,colour:m.colours.amber,children:"Choose a collection time."}):null:(0,y.jsx)(r.T,{size:14,colour:m.colours.amber,children:"Confirm your allergies to continue."}),_?(0,y.jsx)(r.Button,{label:"Send order to the kitchen",disabled:!H,onPress:()=>K(),testID:"send-table-order"}):(0,y.jsx)(r.Button,{label:`Continue to payment \xb7 ${(0,i.gbp)(D)}`,disabled:!H,onPress:()=>L(!0),testID:"checkout"})]}),children:[(_||e.tableNo,null),_?(0,y.jsx)(r.Banner,{kind:"success",title:`Table ${e.tableNo}`,children:"Ordered food goes to the kitchen straight away; you pay at the end (split the bill if you like)."}):null,n.fictional?null:(0,y.jsx)(r.ExampleAllergenNotice,{}),F.map((l,t)=>{const n=e.lines[t],a=l.contains.length&&!l.overridden;return(0,y.jsxs)(r.Card,{highlight:l.contains.length?m.colours.red:l.may.length?m.colours.amber:void 0,children:[(0,y.jsxs)(r.Row,{style:{justifyContent:'space-between',alignItems:'flex-start'},children:[(0,y.jsxs)(s.default,{style:{flex:1,paddingRight:8},children:[(0,y.jsx)(r.T,{weight:"semibold",children:l.name}),l.choices.length?(0,y.jsx)(r.Muted,{children:l.choices.join(' \xb7 ')}):null,l.notes?(0,y.jsxs)(r.Muted,{children:["Note: ",l.notes]}):null]}),(0,y.jsx)(r.T,{weight:"semibold",children:(0,i.gbp)(l.unitPrice*l.qty)})]}),a?(0,y.jsxs)(r.Banner,{kind:"danger",title:`BLOCKED \u2014 contains ${l.contains.map(o.allergenLabel).join(', ')}`,children:[(0,y.jsx)(r.T,{size:14,colour:"#FFE3DF",children:`Conflicts with your declared ${x.allergies.filter(e=>l.contains.includes(e.allergen)).map(e=>`${(0,o.allergenLabel)(e.allergen)} (${(0,o.severityLabel)(e.severity)})`).join(', ')}.`}),(0,y.jsxs)(r.Row,{gap:8,style:{marginTop:6},children:[(0,y.jsx)(r.Button,{small:!0,kind:"secondary",label:"Remove",onPress:()=>k(n.key,0)}),(0,y.jsx)(r.Button,{small:!0,kind:"danger",label:"Override\u2026",onPress:()=>{N(!1),I(n.key)}})]})]}):l.contains.length?(0,y.jsx)(r.Banner,{kind:"danger",title:`Allergy override recorded \u2014 contains ${l.contains.map(o.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,y.jsx)(r.Banner,{kind:"warn",title:`May contain ${l.may.map(o.allergenLabel).join(', ')}`,children:"Cross-contact risk (e.g. shared fryer). Please check with staff."}):null,E.includes(n)?(0,y.jsx)(r.Badge,{kind:"amber",label:"No longer available online \u2014 please remove"}):null,(0,y.jsxs)(r.Row,{style:{justifyContent:'space-between'},children:[(0,y.jsx)(r.Button,{small:!0,kind:"ghost",label:"Remove",onPress:()=>k(n.key,0)}),(0,y.jsx)(r.Stepper,{value:n.qty,onChange:e=>k(n.key,e),min:1,label:l.name})]})]},n.key)}),(0,y.jsx)(r.Button,{kind:"ghost",label:"+ Add more items",onPress:()=>l.router.push(`/customer/${n.id}`)}),_?null:(0,y.jsxs)(r.Card,{children:[(0,y.jsxs)(r.H2,{children:["Collection time \u2014 ",(0,u.niceDate)(v)]}),q?(0,y.jsx)(r.Banner,{kind:"warn",title:"Takeaway paused",children:"The restaurant has paused takeaway slots for now. Please try again later or book a table."}):0===z.length?(0,y.jsx)(r.Banner,{kind:"warn",children:"No collection slots left today."}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(r.Muted,{children:["15-minute slots, max ",n.settings.slotCap," orders each so the kitchen isn\u2019t overloaded."]}),(0,y.jsx)(r.Row,{wrap:!0,gap:6,children:z.slice(0,16).map(e=>(0,y.jsx)(r.Chip,{label:e.label,sub:e.full?'Full':e.cap-e.taken+" left",disabled:e.full,selected:C===e.time.toISOString(),onPress:()=>B(e.time.toISOString())},e.label))})]})]}),(0,y.jsxs)(r.Card,{highlight:S?void 0:m.colours.amber,children:[(0,y.jsx)(r.H2,{children:"Confirm allergies for this order"}),(0,y.jsx)(r.Row,{wrap:!0,gap:6,children:x.allergies.length?x.allergies.map(e=>(0,y.jsx)(r.Badge,{kind:"red",label:`${(0,o.allergenLabel)(e.allergen)} \u2014 ${(0,o.severityLabel)(e.severity)}`},e.allergen)):(0,y.jsx)(r.Muted,{children:"No allergies declared on your profile."})}),(0,y.jsx)(r.Toggle,{label:x.allergies.length?'Yes, these are correct for everyone this order is for':'I confirm no one in this order has a food allergy',value:S,onChange:P}),(0,y.jsx)(r.Button,{small:!0,kind:"ghost",label:"Edit allergies in profile",onPress:()=>l.router.push('/customer/profile')})]}),(0,y.jsx)(r.Field,{label:"Order notes (optional)",value:T,onChangeText:$,placeholder:"e.g. cutlery please"}),_?(0,y.jsx)(r.Button,{small:!0,kind:"ghost",label:"Switch to takeaway instead",onPress:()=>w(n.id,'takeaway')}):null,(0,y.jsx)(a.MockPay,{visible:O,onClose:()=>L(!1),amount:D,restaurantId:n.id,onPaid:e=>K({giftCardCode:e.giftCardCode}),title:"Pay for your takeaway"}),(0,y.jsxs)(r.Sheet,{visible:!!Q,onClose:()=>I(null),title:"Allergy override",children:[G?(0,y.jsx)(r.Banner,{kind:"danger",title:`${G.name} contains ${G.contains.map(o.allergenLabel).join(', ')}`,children:"Only continue if this item is for someone without this allergy, or you have spoken to staff."}):null,(0,y.jsx)(r.Toggle,{label:"I understand and want to add it anyway",value:M,onChange:N}),(0,y.jsx)(r.Button,{kind:"danger",disabled:!M,label:"Confirm override",onPress:()=>{Q&&G&&p(Q.key,G.contains),I(null)}})]})]})}},771,[785,12,109,789,790,791,793,794,795,796,841,797,6]);
chef-app/_expo/static/js/web/book-73d16fd431095875bb01cc0a0c784d3b.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 p}});var e=_r(_d[0]),t=_r(_d[1]),s=_r(_d[2]),a=_r(_d[3]),r=_r(_d[4]),n=_r(_d[5]),o=_r(_d[6]),i=_r(_d[7]),l=_r(_d[8]),d=_r(_d[9]),c=_r(_d[10]),u=_r(_d[11]);function p(){const{rid:p,date:h}=(0,e.useLocalSearchParams)(),b=(0,d.useRestaurant)(p),j=(0,d.useCustomer)(),x=(0,d.useBookings)(p),f=(0,d.useEvents)(p),y=(0,d.useNow)(6e4),[v,C]=(0,t.useState)(2),[P,S]=(0,t.useState)(h??(0,l.ymd)(y)),[w,k]=(0,t.useState)(null),[$,F]=(0,t.useState)(j.name),[B,D]=(0,t.useState)(''),[T,H]=(0,t.useState)(!1),[M,N]=(0,t.useState)(!1),[R,z]=(0,t.useState)(null),I=(0,t.useMemo)(()=>{const e=[],t=new Date(y);t.setHours(12,0,0,0);for(let s=0;s<21;s++){const a=new Date(t);a.setDate(t.getDate()+s),e.push(a)}return h&&!e.some(e=>(0,l.ymd)(e)===h)&&e.push((0,l.parseYmd)(h)),e},[y.toDateString(),h]);if(!b)return(0,u.jsx)(a.Screen,{title:"Not found",children:(0,u.jsx)(a.T,{children:"Restaurant not found."})});const L=b.settings,Y=(0,l.parseYmd)(P),O=(0,i.bookingSlots)(b,Y,e=>x.filter(t=>t.date===P&&t.time===e&&!['cancelled','noshow'].includes(t.status)).reduce((e,t)=>e+t.partySize,0),v,y),_=v>=L.depositFromParty?'deposit':v>=L.savedCardFromParty?'saved-card':'none',A='deposit'===_?v*L.depositPerHead:0,E=f.filter(e=>e.date===P),G=!!w&&T&&$.trim().length>1,q=async()=>{const e=await d.repo.bookings.create({restaurantId:b.id,customerId:j.id,name:$,partySize:v,date:P,time:w,allergies:j.allergies,notes:B,security:_,depositPaid:A});N(!1),z(e)};return R?(0,u.jsxs)(a.Screen,{title:"Booking confirmed",subtitle:b.name,children:[(0,u.jsx)(a.Banner,{kind:"success",title:`Reference ${R.ref}`,children:`${R.partySize} people \xb7 ${(0,l.niceDateYear)((0,l.parseYmd)(R.date))} at ${R.time}`}),(0,u.jsxs)(a.Card,{children:[(0,u.jsxs)(a.T,{children:["Name: ",R.name]}),(0,u.jsxs)(a.T,{children:["Allergies shared with the restaurant: ",R.allergies.length?R.allergies.map(e=>`${(0,r.allergenLabel)(e.allergen)} (${(0,r.severityLabel)(e.severity)})`).join(', '):'none']}),R.notes?(0,u.jsxs)(a.T,{children:["Notes: ",R.notes]}):null,(0,u.jsx)(a.T,{children:'deposit'===R.security?`Deposit paid (demo): ${(0,o.gbp)(R.depositPaid)} \u2014 taken off your bill`:'saved-card'===R.security?`Card saved (demo). No-show fee ${(0,o.gbp)(L.noShowFeePerHead)} per person applies.`:'No card needed.'}),(0,u.jsx)(a.Muted,{children:"You\u2019d get an instant confirmation and a reminder 24 hours before, with one-tap confirm or cancel (push/SMS not sent in this prototype)."})]}),(0,u.jsx)(a.Button,{label:"Back to restaurant",onPress:()=>e.router.replace(`/customer/${b.id}`)})]}):(0,u.jsxs)(a.Screen,{title:"Book a table",subtitle:b.name,footer:(0,u.jsx)(a.Button,{label:'deposit'===_?`Continue \u2014 deposit ${(0,o.gbp)(A)}`:'saved-card'===_?'Continue \u2014 save a card':'Confirm booking',disabled:!G,onPress:()=>'none'===_?q():N(!0),testID:"confirm-booking"}),children:[(0,u.jsxs)(a.Card,{children:[(0,u.jsxs)(a.Row,{style:{justifyContent:'space-between'},children:[(0,u.jsx)(a.H2,{children:"Party size"}),(0,u.jsx)(a.Stepper,{value:v,onChange:e=>{C(e),k(null)},min:1,max:16,label:"party size"})]}),'none'!==_?(0,u.jsx)(a.Banner,{kind:"info",title:'deposit'===_?`Parties of ${L.depositFromParty}+ pay a deposit`:`Parties of ${L.savedCardFromParty}+ save a card`,children:'deposit'===_?`${(0,o.gbp)(L.depositPerHead)} per person, taken off the final bill (demo).`:`Only charged on a no-show: ${(0,o.gbp)(L.noShowFeePerHead)} per person (demo policy).`}):(0,u.jsxs)(a.Muted,{children:["No card needed for tables under ",L.savedCardFromParty,"."]})]}),(0,u.jsxs)(a.Card,{children:[(0,u.jsx)(a.H2,{children:"Date"}),(0,u.jsx)(a.Row,{wrap:!0,gap:6,children:I.map(e=>{const t=!!(0,n.hoursFor)(b,e),s=f.some(t=>t.date===(0,l.ymd)(e));return(0,u.jsx)(a.Chip,{label:(0,l.niceDate)(e),sub:t?s?'\u2605 event':void 0:'Closed',disabled:!t,selected:P===(0,l.ymd)(e),onPress:()=>{S((0,l.ymd)(e)),k(null)}},(0,l.ymd)(e))})}),E.map(e=>(0,u.jsx)(a.Banner,{kind:"demo",title:e.title,children:e.description},e.id))]}),(0,u.jsxs)(a.Card,{children:[(0,u.jsx)(a.H2,{children:"Time"}),0===O.length?(0,u.jsx)(a.Muted,{children:"Closed on this day (per listed kitchen hours)."}):(0,u.jsx)(a.Row,{wrap:!0,gap:6,children:O.map(e=>(0,u.jsx)(a.Chip,{label:e.time,sub:e.available?void 0:e.left<v?'Full':'\u2014',disabled:!e.available,selected:w===e.time,onPress:()=>k(e.time)},e.time))}),(0,u.jsxs)(a.Muted,{children:["Times come from covers per slot (",L.bookingCoversPerSlot," per half hour, example) and table rules."]})]}),(0,u.jsxs)(a.Card,{highlight:T?void 0:c.colours.amber,children:[(0,u.jsx)(a.H2,{children:"Allergies for this booking"}),(0,u.jsx)(a.Row,{wrap:!0,gap:6,children:j.allergies.length?j.allergies.map(e=>(0,u.jsx)(a.Badge,{kind:"red",label:`${(0,r.allergenLabel)(e.allergen)} \u2014 ${(0,r.severityLabel)(e.severity)}`},e.allergen)):(0,u.jsx)(a.Muted,{children:"None on your profile."})}),(0,u.jsx)(a.Field,{label:"Anyone else in the party with allergies or dietary needs?",value:B,onChangeText:D,placeholder:"e.g. guest with coeliac disease; high chair; dog"}),(0,u.jsx)(a.Toggle,{label:"I confirm the allergy information for this booking",value:T,onChange:H})]}),(0,u.jsx)(a.Field,{label:"Name for the booking",value:$,onChangeText:F}),(0,u.jsx)(s.MockPay,{visible:M,onClose:()=>N(!1),amount:'deposit'===_?A:0,restaurantId:b.id,allowGiftCard:!1,allowSaveCardOnly:'saved-card'===_,title:'deposit'===_?'Pay deposit':'Save a card',onPaid:()=>q()})]})}},759,[785,12,789,790,791,792,793,794,795,796,797,6]);
chef-app/_expo/static/js/web/demo-2aeda33db335ba3a45d18733444a4df6.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 c}});var t=r(d[0]);r(d[1]);var n=r(d[2]),u=r(d[3]);function c(){return(0,u.jsx)(t.Redirect,{href:n.ENTRY[n.APP_VARIANT]})}},775,[785,12,787,6]);
chef-app/_expo/static/js/web/entry-c9ae8e46f7e1711ba53ff78cab96e43f.js ADDED
The diff for this file is too large to render. See raw diff
 
chef-app/_expo/static/js/web/feedback-c3022e0683297c445b34cc46bbd3da7c.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 c}});var t=_r(d[0]),a=_r(d[1]),s=_r(d[2]),n=_r(d[3]),r=_r(d[4]),o=_r(d[5]);const l=['Food','Service','Takeaway','Booking','Allergens','Something else'];function c(){const{rid:c}=(0,t.useLocalSearchParams)(),u=(0,r.useRestaurant)(c),h=(0,r.useCustomer)(),[p,b]=(0,a.useState)(0),[y,j]=(0,a.useState)('Food'),[x,v]=(0,a.useState)(''),[f,S]=(0,a.useState)(!1),[w,k]=(0,a.useState)(!1);return u?(0,o.jsxs)(s.Screen,{title:"Private feedback",subtitle:`Straight to the team at ${u.name}`,children:[w?(0,o.jsxs)(s.Banner,{kind:"success",title:"Thank you",children:["Your feedback went privately to ",u.name,". It is never published.",f?' They may reply by email (demo: nothing is sent).':'']}):null,w?(0,o.jsx)(s.Button,{kind:"secondary",label:"Send more feedback",onPress:()=>{k(!1),b(0),v('')}}):(0,o.jsxs)(s.Card,{children:[(0,o.jsx)(s.H2,{children:"How did we do?"}),(0,o.jsx)(n.Stars,{value:p,onChange:b}),(0,o.jsx)(s.T,{size:14,children:"What's it about?"}),(0,o.jsx)(s.Row,{wrap:!0,gap:6,children:l.map(t=>(0,o.jsx)(s.Chip,{label:t,selected:y===t,onPress:()=>j(t)},t))}),(0,o.jsx)(s.Field,{label:"Tell us more (optional)",value:x,onChangeText:v,multiline:!0,placeholder:"What went well, what could be better?"}),(0,o.jsx)(s.Chip,{label:f?'\u2713 Happy to be contacted':'Happy to be contacted?',selected:f,onPress:()=>S(!f)}),(0,o.jsx)(s.Button,{label:"Send privately",disabled:!p,onPress:()=>{r.repo.feedback.add({restaurantId:u.id,customerId:h.id,customerName:h.name,stars:p,comment:`${y}: ${x.trim()}${f?` (happy to be contacted: ${h.email})`:''}`,context:`App feedback \xb7 ${y}`}),k(!0)}})]}),(0,o.jsx)(s.Muted,{children:"Every rating, from 1 to 5 stars, goes the same way: privately to the restaurant. We never ask only happy guests to post a public review, and stamps or rewards are never given for reviews."})]}):(0,o.jsx)(s.Screen,{title:"Not found",children:(0,o.jsx)(s.T,{children:"Restaurant not found."})})}},761,[785,12,790,800,796,6]);
chef-app/_expo/static/js/web/gift-0647b216e00344da5b09e74268994259.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]),a=_r(d[1]),n=_r(d[2]),s=_r(d[3]),r=_r(d[4]),l=_r(d[5]),o=_r(d[6]),c=_r(d[7]);function u(){const{rid:u}=(0,t.useLocalSearchParams)(),h=(0,l.useRestaurant)(u),b=(0,l.useGiftCards)(u),[p,x]=(0,a.useState)(5e3),[f,j]=(0,a.useState)(''),[g,y]=(0,a.useState)(''),[C,w]=(0,a.useState)(''),[S,P]=(0,a.useState)(!1),[v,M]=(0,a.useState)(null);if(!h)return(0,c.jsx)(s.Screen,{title:"Not found",children:(0,c.jsx)(s.T,{children:"Restaurant not found."})});const T=f?Math.round(100*Number(f))||0:p;return(0,c.jsxs)(s.Screen,{title:"Gift cards",subtitle:`${h.name} \u2014 redeemable only at ${h.name}`,children:[v?(0,c.jsx)(s.Banner,{kind:"success",title:`Gift card created \u2014 ${(0,r.gbp)(v.initial)}`,children:`Code ${v.code}. In production it would be emailed or sent in-app to ${v.recipientName||'the recipient'} (nothing sent in this demo).`}):null,(0,c.jsxs)(s.Card,{children:[(0,c.jsx)(s.H2,{children:"Your gift cards"}),b.length?b.map(t=>(0,c.jsxs)(s.Row,{style:{justifyContent:'space-between'},children:[(0,c.jsx)(s.T,{style:{flex:1},children:t.code}),(0,c.jsxs)(s.T,{weight:"semibold",colour:o.colours.gold,children:[(0,r.gbp)(t.balance)," of ",(0,r.gbp)(t.initial)]})]},t.id)):(0,c.jsx)(s.Muted,{children:"None yet."}),(0,c.jsx)(s.Muted,{children:"Balances can be used at checkout on takeaway orders and table bills. Part-use leaves a balance."})]}),(0,c.jsxs)(s.Card,{children:[(0,c.jsx)(s.H2,{children:"Buy a gift card"}),(0,c.jsx)(s.Row,{wrap:!0,children:[1e3,2500,5e3,15e3].map(t=>(0,c.jsx)(s.Chip,{label:(0,r.gbp)(t),selected:!f&&p===t,onPress:()=>{j(''),x(t)}},t))}),(0,c.jsx)(s.Field,{label:"Or another amount (\xa3)",keyboardType:"decimal-pad",value:f,onChangeText:j,placeholder:"e.g. 40"}),(0,c.jsx)(s.Field,{label:"Recipient\u2019s name",value:g,onChangeText:y}),(0,c.jsx)(s.Field,{label:"Message",value:C,onChangeText:w,multiline:!0,placeholder:"Happy birthday!"}),(0,c.jsx)(s.Muted,{children:"Valid for 24 months from purchase (suggested terms \u2014 to be confirmed by the restaurant)."}),(0,c.jsx)(s.Button,{label:`Buy ${(0,r.gbp)(T)} gift card`,disabled:T<500||T>5e4,onPress:()=>P(!0)})]}),(0,c.jsx)(n.MockPay,{visible:S,onClose:()=>P(!1),amount:T,restaurantId:h.id,allowGiftCard:!1,title:"Buy gift card",onPaid:async()=>{const t=await l.repo.giftCards.purchase(h.id,T,g,C);P(!1),M(t)}})]})}},762,[785,12,789,790,793,796,797,6]);
chef-app/_expo/static/js/web/index-13ccdfa5bffd18a6b4df0a7306778fa2.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,{})}},780,[785,12,849,787,6]);
2
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.OwnerApp=function(){return null}},849,[]);
chef-app/_expo/static/js/web/index-3ce55512f207e0f4e938fcea314e34d2.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 c}});var t=r(d[0]);r(d[1]);var n=r(d[2]),u=r(d[3]);function c(){return(0,u.jsx)(t.Redirect,{href:n.ENTRY[n.APP_VARIANT]})}},784,[785,12,787,6]);
chef-app/_expo/static/js/web/index-42c772ae8e6fc8ffb457607b71499331.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 c}});var t=r(d[0]);r(d[1]);var n=r(d[2]),u=r(d[3]);function c(){return(0,u.jsx)(t.Redirect,{href:n.ENTRY[n.APP_VARIANT]})}},779,[785,12,787,6]);
chef-app/_expo/static/js/web/index-74ed5e3887809c4259d725a2965aa3f3.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 t=r(d[0]);r(d[1]);var n=r(d[2]),u=r(d[3]),c=r(d[4]);function f(){return(0,u.canShow)('chef')?(0,c.jsx)(n.ChefApp,{}):(0,c.jsx)(t.Redirect,{href:u.ENTRY[u.APP_VARIANT]})}},758,[785,12,786,787,6]);
chef-app/_expo/static/js/web/index-99af37ed24577194995c700759e20e13.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 x}});var e=_r(d[0]);_r(d[1]);var r,s=_r(d[2]),t=(r=s)&&r.__esModule?r:{default:r},n=_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]);function x(){const r=(0,u.useStore)(e=>e.restaurants),s=(0,u.useCustomer)(),x=(0,u.useNow)(3e4);return(0,j.jsxs)(l.Screen,{title:"Restaurants",subtitle:"Book, order and pay at local restaurants",right:(0,j.jsxs)(l.Row,{children:[(0,j.jsx)(n.BasketButton,{}),(0,j.jsx)(l.Button,{small:!0,kind:"ghost",label:"Profile",onPress:()=>e.router.push('/customer/profile')})]}),children:[(0,j.jsxs)(l.Card,{onPress:()=>e.router.push('/customer/profile'),children:[(0,j.jsxs)(l.Row,{style:{justifyContent:'space-between'},children:[(0,j.jsxs)(l.T,{weight:"semibold",children:["Hello, ",s.name.split(' ')[0]]}),(0,j.jsx)(l.Muted,{children:"Edit profile \u203a"})]}),(0,j.jsx)(l.Muted,{children:"Your allergies (stored once, confirmed on every order and booking):"}),(0,j.jsx)(l.Row,{wrap:!0,gap:6,children:s.allergies.length?s.allergies.map(e=>(0,j.jsx)(l.Badge,{kind:"red",label:`${(0,o.allergenLabel)(e.allergen)} \u2014 ${(0,o.severityLabel)(e.severity)}`},e.allergen)):(0,j.jsx)(l.Muted,{children:"None declared"})})]}),r.map(r=>{const s=(0,a.hoursFor)(r,x);return(0,j.jsxs)(l.Card,{onPress:()=>e.router.push(`/customer/${r.id}`),highlight:'anchorage'===r.id?c.colours.gold:void 0,children:[(0,j.jsxs)(l.Row,{style:{justifyContent:'space-between'},children:[(0,j.jsx)(l.H2,{style:{flex:1},children:r.name}),r.fictional?(0,j.jsx)(l.Badge,{kind:"amber",label:"FICTIONAL DEMO"}):(0,j.jsx)(l.Badge,{kind:"gold",label:"PILOT"})]}),(0,j.jsx)(l.Muted,{children:r.tagline}),(0,j.jsx)(l.Muted,{children:r.location}),(0,j.jsx)(l.T,{size:14,colour:s?c.colours.green:c.colours.amber,children:s?`Kitchen today ${r.kitchenHours[x.getDay()][0]}\u2013${r.kitchenHours[x.getDay()][1]}`:'Kitchen closed today (hours not listed)'})]},r.id)}),(0,j.jsx)(l.Banner,{kind:"info",children:"Each restaurant has its own menu, stamp card and gift cards. Saltmarsh Kitchen and Brae Bakehouse are fictional."}),(0,j.jsx)(h.LauncherLine,{}),(0,j.jsx)(t.default,{style:{height:8}})]})}},772,[785,12,109,799,790,791,792,796,797,801,6]);
chef-app/_expo/static/js/web/index-af3e5ccc851b8a4e8e2a3b86ef9e9d20.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 y}});var l=_r(_d[0]),s=_r(_d[1]),t=e(_r(_d[2])),n=e(_r(_d[3])),r=_r(_d[4]),o=_r(_d[5]),i=_r(_d[6]),d=_r(_d[7]),u=_r(_d[8]),c=_r(_d[9]),h=_r(_d[10]),b=_r(_d[11]),p=_r(_d[12]),m=_r(_d[13]),f=_r(_d[14]),x=_r(_d[15]);function y(){const{rid:e}=(0,l.useLocalSearchParams)(),y=(0,h.useRestaurant)(e),j=(0,h.useMenu)(e),k=(0,h.useCustomer)(),w=(0,h.useBasket)(),A=(0,h.useStore)(e=>e.startBasket),P=(0,h.useNow)(3e4),[B,S]=(0,s.useState)('All'),[O,$]=(0,s.useState)(null),[C,M]=(0,s.useState)(!1),[R,T]=(0,s.useState)(!1),I=(0,f.useOwner)(e=>e.offers.filter(e=>e.live).length),v=(0,h.useStore)(l=>l.stampCards.find(s=>s.restaurantId===e&&s.customerId===l.customer.id));if(!y)return(0,x.jsx)(i.Screen,{title:"Not found",children:(0,x.jsx)(i.T,{children:"Restaurant not found."})});const N=w.restaurantId===y.id&&'table'===w.mode,D=y.sections.length?y.sections:Array.from(new Set(j.map(e=>e.section))),_=j.filter(e=>'All'===B||e.section===B),F=(0,c.hoursFor)(y,P),H=e=>()=>l.router.push(`/customer/${y.id}${e}`),L=[{icon:'\ud83e\udd61',label:'Takeaway',sub:'Order to collect',on:()=>{S('All'),N&&A(y.id,'takeaway')}},{icon:'\ud83d\udcf1',label:'Order at table',sub:'Scan the QR',on:()=>T(!0)},{icon:'\ud83d\udcc5',label:'Book a table',on:H('/book')},{icon:'\u23f3',label:'Waitlist',sub:'Walk in',on:H('/waitlist')},{icon:'\u2b50',label:'Stamp card',sub:`${v?.stamps??0} of ${y.settings.stampTarget}`,on:H('/loyalty')},{icon:'\ud83e\udd1d',label:'Bring a friend',on:H('/refer')},{icon:'\ud83c\udf81',label:'Gift cards',on:H('/gift')},{icon:'\u26a0\ufe0f',label:'My allergens',sub:k.allergies.length?`${k.allergies.length} declared`:'None declared',on:()=>l.router.push('/customer/profile')},{icon:'\ud83c\udff7\ufe0f',label:'Offers',sub:k.marketingOptIn[y.id]?'Opted in':'Opt in',on:H('/offers'),badge:I?String(I):void 0},{icon:'\ud83c\udf89',label:"What's on",on:H('/whatson')},{icon:'\ud83d\udcac',label:'Feedback',sub:'Private',on:H('/feedback')},{icon:'\ud83e\udde3',label:'Lost property',on:H('/lost')},{icon:'\ud83d\udecd\ufe0f',label:'Shop',sub:'Merch',on:H('/merch')}];return(0,x.jsxs)(i.Screen,{title:y.name,subtitle:`${y.location}${y.phone?` \xb7 ${y.phone}`:''}`,back:'customer'!==m.APP_VARIANT,right:(0,x.jsxs)(i.Row,{children:[(0,x.jsx)(o.BasketButton,{}),(0,x.jsx)(i.Button,{small:!0,kind:"ghost",label:"Account",onPress:()=>l.router.push('/customer/profile')})]}),children:[y.fictional?(0,x.jsx)(i.Banner,{kind:"warn",title:"Fictional demo restaurant",children:"Shown only to demonstrate multi-restaurant support."}):null,N?(0,x.jsx)(i.Banner,{kind:"success",title:`Ordering at Table ${w.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,x.jsx)(i.Card,{children:(0,x.jsxs)(i.Row,{style:{justifyContent:'space-between'},children:[(0,x.jsxs)(n.default,{style:{flex:1},children:[(0,x.jsx)(i.T,{weight:"semibold",children:"Takeaway \u2014 collection"}),(0,x.jsxs)(i.Muted,{children:[F?`Kitchen today ${y.kitchenHours[P.getDay()][0]}\u2013${y.kitchenHours[P.getDay()][1]}`:'Kitchen closed today',y.settings.takeawayPaused?' \xb7 slots paused by the restaurant':'']})]}),(0,x.jsx)(i.Badge,{kind:y.settings.takeawayPaused||!F?'amber':'green',label:y.settings.takeawayPaused?'Paused':F?'Taking orders':'Closed'})]})}),y.fictional?(0,x.jsx)(i.Row,{wrap:!0,gap:8,children:L.slice(2,7).map(e=>(0,x.jsx)(i.Button,{small:!0,kind:"secondary",label:e.label,onPress:e.on},e.label))}):(0,x.jsx)(n.default,{style:{flexDirection:'row',flexWrap:'wrap',gap:8},children:L.map(e=>(0,x.jsx)(p.HubTile,{icon:e.icon,label:e.label,sub:e.sub,badge:e.badge,onPress:e.on},e.label))}),N?(0,x.jsx)(i.Button,{small:!0,kind:"danger",label:"Call staff",onPress:()=>M(!0)}):null,C?(0,x.jsx)(i.Banner,{kind:"success",children:"A member of staff is on their way to your table (demo)."}):null,y.hoursNote?(0,x.jsx)(i.Muted,{children:y.hoursNote}):null,y.fictional?null:(0,x.jsx)(i.ExampleAllergenNotice,{}),(0,x.jsx)(i.Muted,{children:"Menu dishes and prices from The Anchorage\u2019s public menu (PDF). Items marked \u26a0 conflict with your declared allergies."}),(0,x.jsxs)(i.Row,{wrap:!0,gap:6,children:[(0,x.jsx)(i.Chip,{label:"All",selected:'All'===B,onPress:()=>S('All')}),D.map(e=>(0,x.jsx)(i.Chip,{label:e,selected:B===e,onPress:()=>S(e)},e))]}),D.filter(e=>'All'===B||e===B).map(e=>(0,x.jsxs)(n.default,{style:{gap:10},children:[(0,x.jsx)(i.H2,{style:{color:b.colours.gold,marginTop:6},children:e}),_.filter(l=>l.section===e).map(e=>{const s=(0,d.conflictsFor)(e.allergens,k.allergies),o=e.soldOut||!e.signOff||null===e.price;return(0,x.jsxs)(i.Card,{highlight:s.contains.length?b.colours.red:s.may.length?b.colours.amber:void 0,children:[(0,x.jsxs)(t.default,{accessibilityRole:"button",onPress:()=>{w.restaurantId&&w.restaurantId===y.id||A(y.id,'takeaway'),l.router.push(`/customer/${y.id}/dish/${e.id}`)},children:[(0,x.jsxs)(i.Row,{style:{justifyContent:'space-between',alignItems:'flex-start'},children:[(0,x.jsx)(i.T,{weight:"semibold",style:{flex:1,paddingRight:8},children:e.name}),(0,x.jsx)(i.T,{weight:"semibold",colour:b.colours.gold,children:null===e.price?e.priceNote??'\u2014':(0,u.gbp)(e.price)})]}),(0,x.jsx)(i.Muted,{numberOfLines:2,children:e.description})]}),(0,x.jsxs)(i.Row,{wrap:!0,gap:6,children:[e.dietary.map(e=>(0,x.jsx)(i.Badge,{kind:"green",label:e},e)),e.special?(0,x.jsx)(i.Badge,{kind:"gold",label:"Special"}):null,e.soldOut?(0,x.jsx)(i.Badge,{kind:"neutral",label:"Sold out"}):null,e.signOff?null:(0,x.jsx)(i.Badge,{kind:"amber",label:"Awaiting allergen sign-off"}),s.contains.length?(0,x.jsx)(i.Badge,{kind:"red",label:"\u26a0 Contains your allergen"}):s.may.length?(0,x.jsx)(i.Badge,{kind:"amber",label:"\u26a0 May contain your allergen"}):null]}),(0,x.jsx)(r.AllergenChips,{map:e.allergens,declared:k.allergies}),O===e.id?(0,x.jsx)(r.AllergenPanel,{item:e,map:e.allergens,declared:k.allergies}):null,(0,x.jsxs)(i.Row,{gap:8,children:[(0,x.jsx)(i.Button,{small:!0,kind:"ghost",label:O===e.id?'Hide allergen panel':'Allergen panel',onPress:()=>$(O===e.id?null:e.id)}),(0,x.jsx)(n.default,{style:{flex:1}}),(0,x.jsx)(i.Button,{small:!0,label:o?e.soldOut?'Sold out':'Not available online':'Choose',disabled:o,onPress:()=>{w.restaurantId&&w.restaurantId===y.id||A(y.id,'takeaway'),l.router.push(`/customer/${y.id}/dish/${e.id}`)}})]})]},e.id)})]},e)),(0,x.jsx)(i.Muted,{children:"Drinks list coming soon. Ask your server for today\u2019s drinks."}),(0,x.jsx)(i.Muted,{children:"All payments in this app are demo only: Demo, no real payment."}),(0,x.jsx)(p.LauncherLine,{}),(0,x.jsxs)(i.Sheet,{visible:R,onClose:()=>T(!1),title:"Order at your table",children:[(0,x.jsx)(i.Muted,{children:"Scan the QR code on your table with your phone camera, or pick your table number (demo)."}),(0,x.jsx)(i.Row,{wrap:!0,gap:6,children:Array.from({length:12},(e,l)=>String(l+1)).map(e=>(0,x.jsx)(i.Button,{small:!0,kind:"secondary",label:`Table ${e}`,onPress:()=>{T(!1),A(y.id,'table',e)}},e))}),(0,x.jsx)(i.Muted,{children:"Orders go straight to the kitchen. You pay from your order page (Demo, no real payment)."})]})]})}},763,[785,12,245,109,798,799,790,791,793,792,796,797,801,787,802,6]);
chef-app/_expo/static/js/web/index-c8262c18c48ee7187765dc1008b473be.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 o}});var t=r(d[0]);r(d[1]);var n=r(d[2]),u=r(d[3]),c=r(d[4]);function o(){return(0,n.canShow)('display')?(0,c.jsx)(u.DisplayBoard,{}):(0,c.jsx)(t.Redirect,{href:n.ENTRY[n.APP_VARIANT]})}},777,[785,12,787,843,6]);
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.DisplayBoard=function(){const{width:e}=(0,n.default)(),P=e>=1e3,M=(0,T.useOwner)(e=>e.site),D=(0,f.useRestaurant)(M),z=(0,f.useOrders)(M),E=(0,f.useBookings)(M),L=(0,f.useWaitlist)(M),H=(0,f.useEvents)(M),I=(0,f.useRatings)(M),N=(0,f.useAudit)(M),W=(0,f.useStore)(e=>e.menu),O=(0,f.useStore)(e=>e.walkIns[M]??0),F=(0,f.useStore)(e=>e.alertAcks),U=((0,f.useStore)(e=>e.customer),(0,f.useStore)(e=>e.skipMinutes)),V=(0,f.useNow)(5e3),G=(0,T.useOwner)(e=>e.staff),_=(0,T.useOwner)(e=>e.attendance),Y=(0,T.useOwner)(e=>e.shifts),K=(0,T.useOwner)(e=>e.chat),[q,X]=(0,s.useState)(!0);t.default.useEffect(()=>{(0,$.ensureAttendance)((0,y.ymd)(V),V),(0,C.ensureChat)(V)},[(0,y.ymd)(V)]);const J=_.filter(e=>e.in&&!e.out&&V.getTime()-new Date(e.in).getTime()<72e6&&V.getTime()>=new Date(e.in).getTime()),Q=J.length?J.map(e=>B(G.find(s=>s.id===e.staffId)?.name)).filter(Boolean):['Duty Manager'],[Z,ee]=(0,s.useState)(null),se=Z&&Q.includes(Z)?Z:Q[0],[te,le]=(0,s.useState)(''),[re,ae]=(0,s.useState)('2'),oe=(0,y.ymd)(V),ne=(0,s.useMemo)(()=>(0,p.forecastToday)(D,E,z,H,V),[D,E,z,H,V.getTime()/6e4|0]),de=E.filter(e=>e.date===oe).sort((e,s)=>e.time.localeCompare(s.time)),ie=L.filter(e=>'waiting'===e.status||'notified'===e.status).sort((e,s)=>e.number-s.number),ue=z.filter(e=>!['collected','closed','cancelled'].includes(e.status)).sort((e,s)=>Number('new'===s.status)-Number('new'===e.status)||(e.slotTime??e.createdAt).localeCompare(s.slotTime??s.createdAt)),ce=z.filter(e=>['collected','closed'].includes(e.status)).length,ge=(0,x.takeawaySlots)(D,z,V),he=ne.nextHour?Math.min(1.6,Math.max(.8,ne.nextHour.covers/(.75*D.settings.capacityPerHour))):1,pe=ue.filter(e=>e.allergies.length&&!e.allergyAck),me=de.filter(e=>e.allergies.length&&!e.allergyAck&&['confirmed','seated'].includes(e.status)),be=ue.flatMap(e=>(0,b.readinessFor)(e,D,V).map(s=>({...s,order:e}))),xe=be.filter(e=>'due'===e.state||'overdue'===e.state),ye=be.filter(e=>'upcoming'===e.state).sort((e,s)=>e.due.getTime()-s.due.getTime()),je=I.filter(e=>e.stars<=2&&!F[`rating:${e.id}`]),fe=ue.filter(e=>'new'===e.status&&!e.allergies.length&&(0,y.minsBetween)(new Date(e.createdAt),V)>=0),we=W.filter(e=>e.restaurantId===M&&e.soldOut),ke=(N.filter(e=>'stamp'===e.kind||'giftcard'===e.kind).slice(0,4),pe.length+me.length+xe.length+je.length+fe.length),Te=ne.hours,Ce=Math.max(D.settings.capacityPerHour,...Te.map(e=>e.coversHigh)),$e=(0,v.jsxs)(R,{title:`Bookings & waitlist \xb7 ${(0,y.niceDate)(V)}`,right:(0,v.jsx)(u.Badge,{kind:"gold",label:`${de.reduce((e,s)=>e+s.partySize,0)} covers booked`}),children:[0===de.length?(0,v.jsx)(u.Muted,{children:"No bookings today."}):null,de.map(e=>{const s='confirmed'===e.status&&(0,y.minsBetween)(new Date(`${e.date}T${e.time}:00`),V)>15;return(0,v.jsxs)(o.default,{style:[u.styles.card,{padding:10,opacity:['finished','noshow','cancelled'].includes(e.status)?.5:1,borderColor:e.allergies.length?k.colours.red:s?k.colours.amber:k.colours.border}],children:[(0,v.jsxs)(u.Row,{style:{justifyContent:'space-between'},children:[(0,v.jsxs)(u.T,{weight:"semibold",children:[e.time," \xb7 ",e.name," \xb7 ",e.partySize]}),(0,v.jsx)(u.Badge,{kind:'seated'===e.status?'green':'noshow'===e.status?'red':'neutral',label:'noshow'===e.status?'No-show':e.status})]}),(0,v.jsxs)(u.Muted,{children:[e.table?`Table ${e.table}`:'Table TBC','none'!==e.security?" \xb7 "+('deposit'===e.security?'Deposit':'Card saved'):'',e.notes?` \xb7 ${e.notes}`:'']}),e.allergies.length?(0,v.jsx)(u.Row,{wrap:!0,gap:4,children:e.allergies.map(e=>(0,v.jsx)(u.Badge,{kind:"red",label:`${(0,h.allergenLabel)(e.allergen)} \u2014 ${(0,h.severityLabel)(e.severity)}`},e.allergen))}):null,s?(0,v.jsx)(u.T,{size:13,colour:k.colours.amber,children:"Running late \u2014 15+ min past booking time"}):null,'confirmed'===e.status?(0,v.jsxs)(u.Row,{gap:6,children:[(0,v.jsx)(u.Button,{small:!0,label:"Seat",onPress:()=>f.repo.bookings.setStatus(e.id,'seated')}),(0,v.jsx)(u.Button,{small:!0,kind:"secondary",label:"No-show",onPress:()=>f.repo.bookings.setStatus(e.id,'noshow')})]}):'seated'===e.status?(0,v.jsx)(u.Button,{small:!0,kind:"secondary",label:"Finished",onPress:()=>f.repo.bookings.setStatus(e.id,'finished')}):null]},e.id)}),(0,v.jsxs)(u.Row,{style:{justifyContent:'space-between',marginTop:6},children:[(0,v.jsxs)(u.T,{weight:"semibold",colour:k.colours.gold,children:["Waitlist (",ie.length,")"]}),(0,v.jsxs)(u.Muted,{children:["~",(0,j.estimateWait)(ie.length+1,D.settings.turnMins,he)," min for a new party (est.)"]})]}),ie.map((e,s)=>(0,v.jsxs)(o.default,{style:[u.styles.card,{padding:10}],children:[(0,v.jsxs)(u.Row,{style:{justifyContent:'space-between'},children:[(0,v.jsxs)(u.T,{weight:"semibold",children:["#",e.number," ",e.name," \xb7 ",e.partySize]}),(0,v.jsxs)(u.Muted,{children:["waiting ",(0,y.minsBetween)(new Date(e.joinedAt),V)," min \xb7 est. ",(0,j.estimateWait)(s+1,D.settings.turnMins,he)," min"]})]}),'notified'===e.status?(0,v.jsx)(u.Badge,{kind:"green",label:"Notified \u2014 table ready"}):null,(0,v.jsxs)(u.Row,{gap:6,children:['waiting'===e.status?(0,v.jsx)(u.Button,{small:!0,kind:"secondary",label:"Notify",onPress:()=>f.repo.waitlist.setStatus(e.id,'notified')}):null,(0,v.jsx)(u.Button,{small:!0,label:"Seat",onPress:()=>f.repo.waitlist.setStatus(e.id,'seated')}),(0,v.jsx)(u.Button,{small:!0,kind:"ghost",label:"Remove",onPress:()=>f.repo.waitlist.setStatus(e.id,'removed')})]})]},e.id)),(0,v.jsxs)(u.Row,{gap:6,children:[(0,v.jsx)(a.default,{accessibilityLabel:"Walk-in name",placeholder:"Walk-in name",placeholderTextColor:"#7D776C",value:te,onChangeText:le,style:[u.styles.input,{flex:1,paddingVertical:6}]}),(0,v.jsx)(a.default,{accessibilityLabel:"Party size",value:re,onChangeText:ae,keyboardType:"number-pad",style:[u.styles.input,{width:50,paddingVertical:6}]}),(0,v.jsx)(u.Button,{small:!0,label:"Add",disabled:te.trim().length<2,onPress:()=>{f.repo.waitlist.join(M,te.trim(),Math.max(1,Number(re)||2)),le('')}})]})]}),ve=(0,v.jsxs)(R,{title:"Live orders & kitchen tickets",right:(0,v.jsxs)(u.Row,{gap:6,children:[(0,v.jsx)(u.Chip,{label:"Tickets",selected:q,onPress:()=>X(!0)}),(0,v.jsx)(u.Chip,{label:"Full orders",selected:!q,onPress:()=>X(!1)})]}),children:[(0,v.jsxs)(u.Muted,{children:[ue.length," live \xb7 ",ce," done today"]}),0===ue.length?(0,v.jsx)(u.Muted,{children:"No live orders."}):null,q?(0,v.jsxs)(o.default,{style:{flexDirection:'row',flexWrap:'wrap',gap:8},children:[ue.filter(e=>['new','acknowledged','preparing'].includes(e.status)).map(e=>{const s=Math.max(0,(0,y.minsBetween)(new Date(e.createdAt),V)),t=s>=20?k.colours.red:s>=12?k.colours.amber:k.colours.green;return(0,v.jsxs)(o.default,{testID:`ticket-${e.ref}`,style:{width:210,backgroundColor:'#F4EFE3',borderRadius:6,padding:8,gap:3,borderTopWidth:6,borderTopColor:e.allergies.length?k.colours.red:t},children:[(0,v.jsxs)(u.Row,{style:{justifyContent:'space-between'},children:[(0,v.jsx)(u.T,{weight:"bold",colour:"#111",children:'table'===e.type?`TABLE ${e.tableNo}`:`TAKEAWAY ${e.slotTime?(0,y.hm)(new Date(e.slotTime)):''}`}),(0,v.jsxs)(u.T,{size:13,weight:"bold",colour:s>=20?'#B3261E':'#333',children:[s,"m"]})]}),(0,v.jsxs)(u.T,{size:12,colour:"#444",children:[e.ref," \xb7 ",e.status.toUpperCase()]}),e.allergies.length?(0,v.jsx)(o.default,{style:{backgroundColor:'#B3261E',borderRadius:4,padding:4},children:(0,v.jsxs)(u.T,{size:13,weight:"bold",colour:"#fff",children:["\u26a0 ",e.allergies.map(e=>(0,h.allergenLabel)(e.allergen)).join(', ').toUpperCase()]})}):null,e.lines.map((e,s)=>(0,v.jsxs)(u.T,{size:15,weight:"semibold",colour:"#111",children:[e.qty,"\xd7 ",e.name,e.choices.length?` (${e.choices.join(', ')})`:'']},s)),e.lines.some(e=>e.notes)?(0,v.jsxs)(u.T,{size:12,colour:"#444",children:["Notes: ",e.lines.filter(e=>e.notes).map(e=>e.notes).join(' \xb7 ')]}):null,'new'===e.status?(0,v.jsx)(u.Button,{small:!0,label:e.allergies.length&&!e.allergyAck?'Ack allergy first':'Acknowledge',disabled:e.allergies.length>0&&!e.allergyAck,onPress:()=>f.repo.orders.setStatus(e.id,'acknowledged',se)}):null,'acknowledged'===e.status?(0,v.jsx)(u.Button,{small:!0,label:"Start",onPress:()=>'takeaway'===e.type?f.repo.orders.acknowledgeReadiness(e.id,'cook',se):f.repo.orders.setStatus(e.id,'preparing',se)}):null,'preparing'===e.status?(0,v.jsx)(u.Button,{small:!0,kind:"success",label:'takeaway'===e.type?'Ready':'Food out',onPress:()=>f.repo.orders.setStatus(e.id,'takeaway'===e.type?'ready':'served',se)}):null]},e.id)}),ue.filter(e=>['ready','served'].includes(e.status)).map(e=>(0,v.jsxs)(o.default,{style:{width:210,backgroundColor:k.colours.surface2,borderRadius:6,padding:8,gap:3,borderTopWidth:6,borderTopColor:k.colours.green},children:[(0,v.jsxs)(u.Row,{style:{justifyContent:'space-between'},children:[(0,v.jsx)(u.T,{weight:"bold",children:'table'===e.type?`Table ${e.tableNo}`:`Takeaway ${e.ref}`}),(0,v.jsx)(u.Badge,{kind:A(e.status),label:e.status.toUpperCase()})]}),(0,v.jsxs)(u.Muted,{children:[e.customerName,'here'===e.customerSignal?' \xb7 CUSTOMER IS HERE':'']}),'ready'===e.status&&e.allergies.length&&!e.handoverCheck?(0,v.jsx)(u.Button,{small:!0,kind:"danger",label:"Allergy check at handover",onPress:()=>f.repo.orders.recordHandoverCheck(e.id,se)}):null,'ready'===e.status?(0,v.jsx)(u.Button,{small:!0,label:"Collected",disabled:e.allergies.length>0&&!e.handoverCheck,onPress:()=>f.repo.orders.setStatus(e.id,'collected',se)}):null,'served'===e.status?(0,v.jsx)(u.Button,{small:!0,kind:"secondary",label:"Paid at till",onPress:()=>f.repo.orders.payTable(e.id,{shares:99})}):null]},e.id))]}):null,q?null:ue.map(e=>{const s=e.allergies.length>0&&!e.allergyAck,t=e.lines.filter(e=>e.overridden),l=e.lines.filter(e=>e.contains.length||e.may.length);return(0,v.jsxs)(o.default,{testID:`order-${e.ref}`,style:[u.styles.card,{padding:10,borderColor:s?k.colours.red:'ready'===e.status?k.colours.green:k.colours.border,borderWidth:s?2:1}],children:[(0,v.jsxs)(u.Row,{style:{justifyContent:'space-between'},children:[(0,v.jsxs)(u.Row,{gap:6,children:[(0,v.jsx)(u.T,{weight:"bold",children:e.ref}),(0,v.jsx)(u.Badge,{kind:'takeaway'===e.type?'gold':'blue',label:'takeaway'===e.type?`Takeaway \xb7 ${e.slotTime?(0,y.hm)(new Date(e.slotTime)):''}`:`Table ${e.tableNo}`})]}),(0,v.jsx)(u.Badge,{kind:A(e.status),label:e.status.toUpperCase()})]}),(0,v.jsxs)(u.Muted,{children:[e.customerName," \xb7 ",(0,m.gbp)(e.subtotal)," \xb7 ",e.paid>=e.total?'Paid (demo)':e.paid>0?`Part paid ${(0,m.gbp)(e.paid)}`:'Unpaid \u2014 bill at end',e.customerSignal?" \xb7 "+('here'===e.customerSignal?'CUSTOMER IS HERE':'Customer on the way'):'']}),e.allergies.length?(0,v.jsxs)(o.default,{style:{backgroundColor:k.colours.redBg,borderRadius:8,padding:8,borderLeftWidth:5,borderLeftColor:k.colours.red},children:[(0,v.jsxs)(u.T,{weight:"bold",colour:"#FFE3DF",children:["ALLERGY: ",e.allergies.map(e=>`${(0,h.allergenLabel)(e.allergen)} (${(0,h.severityLabel)(e.severity)})`).join(', ')]}),t.length?(0,v.jsxs)(u.T,{size:14,weight:"semibold",colour:"#FFE3DF",children:["Customer OVERRODE block on: ",t.map(e=>`${e.name} [contains ${e.contains.map(h.allergenLabel).join(', ')}]`).join('; ')]}):null,l.filter(e=>!e.overridden&&e.may.length).map((e,s)=>(0,v.jsxs)(u.T,{size:14,colour:"#FFE2A8",children:["May contain: ",e.name," [",e.may.map(h.allergenLabel).join(', '),"]"]},s)),(0,v.jsx)(u.T,{size:13,colour:"#FFE3DF",children:e.allergyAck?`Acknowledged by ${e.allergyAck.by} at ${(0,y.hm)(new Date(e.allergyAck.at))}`:'Must be acknowledged before the order moves on'})]}):null,e.lines.map((e,s)=>(0,v.jsxs)(u.T,{size:15,children:[e.qty,"\xd7 ",e.name,e.choices.length?` \u2014 ${e.choices.join(', ')}`:'',e.notes?` \xb7 \u201c${e.notes}\u201d`:'']},s)),(0,v.jsxs)(u.Row,{wrap:!0,gap:6,children:['new'===e.status?(0,v.jsx)(u.Button,{small:!0,label:s?'Acknowledge allergy first \u2192':'Acknowledge',disabled:s,onPress:()=>f.repo.orders.setStatus(e.id,'acknowledged',se)}):null,'acknowledged'===e.status?(0,v.jsx)(u.Button,{small:!0,label:"Start preparing",onPress:()=>'takeaway'===e.type?f.repo.orders.acknowledgeReadiness(e.id,'cook',se):f.repo.orders.setStatus(e.id,'preparing',se)}):null,'preparing'===e.status&&'takeaway'===e.type?(0,v.jsx)(u.Button,{small:!0,kind:"success",label:"Mark ready (notify customer)",onPress:()=>f.repo.orders.setStatus(e.id,'ready',se)}):null,'preparing'===e.status&&'table'===e.type?(0,v.jsx)(u.Button,{small:!0,kind:"success",label:"Food out",onPress:()=>f.repo.orders.setStatus(e.id,'served',se)}):null,'ready'===e.status&&e.allergies.length&&!e.handoverCheck?(0,v.jsx)(u.Button,{small:!0,kind:"danger",label:"Allergy check at handover",onPress:()=>f.repo.orders.recordHandoverCheck(e.id,se)}):null,'ready'===e.status?(0,v.jsx)(u.Button,{small:!0,label:"Collected",disabled:e.allergies.length>0&&!e.handoverCheck,onPress:()=>f.repo.orders.setStatus(e.id,'collected',se)}):null,'served'===e.status?(0,v.jsx)(u.Button,{small:!0,kind:"secondary",label:"Paid at till",onPress:()=>f.repo.orders.payTable(e.id,{shares:99})}):null]})]},e.id)})]}),Be=({colour:e,title:s,children:t})=>(0,v.jsxs)(o.default,{style:{backgroundColor:k.colours.surface2,borderRadius:10,padding:10,borderLeftWidth:6,borderLeftColor:e,gap:4},children:[(0,v.jsx)(u.T,{weight:"bold",colour:e,children:s}),t]}),Re={cook:'START COOKING',bag:'BAG IT',ready:'READY'},Se=(0,v.jsxs)(R,{title:"Allergy & takeaway alerts",right:(0,v.jsx)(u.Badge,{kind:ke?'red':'green',label:`${ke} need action`}),children:[pe.map(e=>(0,v.jsxs)(Be,{colour:k.colours.red,title:`ALLERGY \u2014 ${e.ref} ${'table'===e.type?`(Table ${e.tableNo})`:'(takeaway)'}`,children:[(0,v.jsx)(u.T,{size:15,children:e.allergies.map(e=>`${(0,h.allergenLabel)(e.allergen)} \u2014 ${(0,h.severityLabel)(e.severity)}`).join('; ')}),e.lines.filter(e=>e.overridden).map((e,s)=>(0,v.jsxs)(u.T,{size:14,colour:k.colours.red,weight:"semibold",children:["OVERRIDE: ",e.name," contains ",e.contains.map(h.allergenLabel).join(', ')]},s)),(0,v.jsx)(u.Button,{small:!0,kind:"danger",label:`Acknowledge as ${se}`,onPress:()=>f.repo.orders.acknowledgeAllergy(e.id,se),testID:`ack-allergy-${e.ref}`})]},e.id)),me.map(e=>(0,v.jsxs)(Be,{colour:k.colours.red,title:`ALLERGY \u2014 booking ${e.time} ${e.name} (${e.partySize})`,children:[(0,v.jsx)(u.T,{size:15,children:e.allergies.map(e=>`${(0,h.allergenLabel)(e.allergen)} \u2014 ${(0,h.severityLabel)(e.severity)}`).join('; ')}),(0,v.jsx)(u.Button,{small:!0,kind:"danger",label:`Acknowledge as ${se}`,onPress:()=>f.repo.bookings.acknowledgeAllergy(e.id,se)})]},e.id)),xe.map(e=>(0,v.jsxs)(Be,{colour:'overdue'===e.state?k.colours.red:k.colours.amber,title:`${Re[e.stage]} \u2014 ${e.order.ref} \xb7 pickup ${(0,y.hm)(new Date(e.order.slotTime))}${'overdue'===e.state?' \xb7 OVERDUE':''}`,children:[(0,v.jsx)(u.T,{size:14,children:e.detail}),(0,v.jsxs)(u.Muted,{children:["Due ",(0,y.hm)(e.due)," (slot \u2212 prep \u2212 ",D.settings.bufferMins," min buffer)",e.order.allergies.length?' \xb7 \u26a0 allergy order':'']}),'ready'===e.stage?(0,v.jsx)(u.Button,{small:!0,kind:"success",label:"Mark ready (notify customer)",onPress:()=>f.repo.orders.setStatus(e.orderId,'ready',se)}):(0,v.jsx)(u.Button,{small:!0,label:'cook'===e.stage?'Started cooking':'Bagged & checked',disabled:e.order.allergies.length>0&&!e.order.allergyAck,onPress:()=>f.repo.orders.acknowledgeReadiness(e.orderId,e.stage,se)})]},e.id)),fe.map(e=>(0,v.jsx)(Be,{colour:k.colours.amber,title:`New order ${e.ref} \u2014 not yet acknowledged`,children:(0,v.jsx)(u.Button,{small:!0,label:"Acknowledge",onPress:()=>f.repo.orders.setStatus(e.id,'acknowledged',se)})},e.id)),je.map(e=>(0,v.jsxs)(Be,{colour:k.colours.red,title:`LOW RATING ${e.stars}/5 \u2014 ${e.context}`,children:[(0,v.jsxs)(u.T,{size:15,children:[e.customerName,e.comment?`: \u201c${e.comment}\u201d`:'']}),(0,v.jsx)(u.Muted,{children:"Manager: speak to the guest while they\u2019re still here."}),(0,v.jsx)(u.Button,{small:!0,kind:"secondary",label:`Handled \u2014 ${se}`,onPress:()=>f.repo.alerts.acknowledge(`rating:${e.id}`,se)})]},e.id)),0===ke?(0,v.jsx)(u.Muted,{children:"No alerts need action."}):null,ye.length?(0,v.jsxs)(o.default,{style:{gap:4},children:[(0,v.jsx)(u.T,{weight:"semibold",colour:k.colours.gold,children:"Upcoming takeaway timings"}),ye.slice(0,6).map(e=>(0,v.jsxs)(u.T,{size:14,children:[(0,y.hm)(e.due)," \xb7 ",Re[e.stage]," \xb7 ",e.order.ref," (pickup ",(0,y.hm)(new Date(e.order.slotTime)),")"]},e.id))]}):null,we.length?(0,v.jsx)(Be,{colour:k.colours.muted,title:"Sold out",children:(0,v.jsx)(u.T,{size:14,children:we.map(e=>e.name).join(', ')})}):null,(0,v.jsxs)(o.default,{style:{gap:2,marginTop:6},children:[(0,v.jsx)(u.T,{weight:"semibold",colour:k.colours.gold,children:"Allergy log"}),N.filter(e=>'allergy'===e.kind).slice(0,5).map(e=>(0,v.jsxs)(u.T,{size:13,colour:"#FFD9D4",children:[(0,y.hm)(new Date(e.at))," \xb7 ",e.text]},e.id))]})]}),Ae=Y.filter(e=>e.day===(0,$.weekday)(V)&&!J.some(s=>s.staffId===e.staffId)&&60*e.start>60*V.getHours()+V.getMinutes()).sort((e,s)=>e.start-s.start),Pe=K.filter(e=>'all'===e.ch&&!e.removed).sort((e,s)=>Number(!!s.pinned)-Number(!!e.pinned)||s.at.localeCompare(e.at)).slice(0,6),Me=(0,v.jsxs)(o.default,{style:{flex:.8,gap:10},children:[(0,v.jsxs)(R,{title:"Who's on",right:(0,v.jsx)(u.Badge,{kind:"green",label:`${J.length} clocked in`}),children:[0===J.length?(0,v.jsx)(u.Muted,{children:"Nobody clocked in yet."}):null,J.map(e=>{const s=G.find(s=>s.id===e.staffId),t=Y.find(s=>s.staffId===e.staffId&&s.day===(0,$.weekday)(V));return(0,v.jsxs)(u.Row,{style:{justifyContent:'space-between'},children:[(0,v.jsxs)(o.default,{style:{flex:1},children:[(0,v.jsx)(u.T,{weight:"semibold",children:B(s?.name)}),(0,v.jsxs)(u.Muted,{children:[s?.job,t?` \xb7 rota ${(0,$.fmtH)(t.start)}\u2013${(0,$.fmtH)(t.end)}`:'']})]}),(0,v.jsx)(u.Badge,{kind:"green",label:`in ${(0,y.hm)(new Date(e.in))}`})]},e.id)}),Ae.map(e=>(0,v.jsxs)(u.Muted,{children:["Due in ",(0,$.fmtH)(e.start),": ",B(G.find(s=>s.id===e.staffId)?.name)]},e.id))]}),(0,v.jsxs)(R,{title:"Staff announcements",right:(0,v.jsx)(u.Muted,{children:"All staff chat"}),children:[0===Pe.length?(0,v.jsx)(u.Muted,{children:"No announcements."}):null,Pe.map(e=>(0,v.jsxs)(o.default,{style:{gap:2,borderLeftWidth:3,borderLeftColor:e.pinned?k.colours.gold:k.colours.border,paddingLeft:8},children:[(0,v.jsxs)(u.T,{size:12,colour:e.pinned?k.colours.gold:k.colours.muted,children:[e.pinned?'\ud83d\udccc ':'','system'===e.from?'Cover Charge':B(G.find(s=>s.id===e.from)?.name)," \xb7 ",(0,y.hm)(new Date(e.at))]}),(0,v.jsx)(u.T,{size:14,children:e.text??(e.photo?`Photo: ${e.photo.caption}`:'')})]},e.id)),(0,v.jsx)(u.Muted,{children:"Read-only on the display. Post from Cover Charge for Staff or Cover Charge for Managers."})]})]});return(0,v.jsxs)(i.SafeAreaView,{style:{flex:1,backgroundColor:k.colours.bg},children:[(0,v.jsxs)(u.Row,{wrap:!0,style:{paddingHorizontal:14,paddingVertical:8,gap:10,borderBottomWidth:1,borderBottomColor:k.colours.border},children:[(0,v.jsx)(c.RestaurantBrand,{rid:D.id,size:56,sub:"Display \xb7 Harbour View, Dunure"}),(0,v.jsx)(o.default,{style:{flex:1}}),ke?(0,v.jsx)(u.Badge,{kind:"red",label:`${ke} alert${ke>1?'s':''}`}):(0,v.jsx)(u.Badge,{kind:"green",label:"All clear"}),(0,v.jsx)(u.T,{size:20,weight:"bold",colour:k.colours.gold,children:(0,y.hm)(V)}),(0,v.jsx)(u.Muted,{children:(0,y.niceDate)(V)}),(0,v.jsx)(u.Button,{small:!0,kind:"ghost",label:"Demo +15 min",onPress:()=>U(15)})]}),(0,v.jsxs)(u.Row,{wrap:!0,style:{paddingHorizontal:14,paddingVertical:6,gap:6},children:[(0,v.jsx)(u.Muted,{children:"Acknowledging as (who's on):"}),Q.map(e=>(0,v.jsx)(u.Chip,{label:e,selected:se===e,onPress:()=>ee(e)},e))]}),(0,v.jsxs)(l.default,{style:{flex:1},contentContainerStyle:{padding:12,gap:10,flexGrow:1},scrollEnabled:!P,children:[(0,v.jsxs)(o.default,{testID:"forecast-strip",style:{gap:8},children:[(0,v.jsxs)(u.Row,{wrap:!0,gap:8,style:{alignItems:'stretch'},children:[(0,v.jsx)(S,{label:"Next hour"+(ne.nextHour?` \xb7 ${String(ne.nextHour.hour).padStart(2,'0')}:00\u2013${String(ne.nextHour.hour+1).padStart(2,'0')}:00`:''),badge:"Estimate",value:ne.nextHour?`${ne.nextHour.coversLow}\u2013${ne.nextHour.coversHigh} covers`:ne.open?'Kitchen closing':'Closed',sub:ne.nextHour?`${ne.nextHour.booked} booked + ~${ne.nextHour.walkIns} walk-ins \xb7 ~${ne.nextHour.takeaway} takeaway (${ne.nextHour.takeawayPlaced} placed)`:void 0}),(0,v.jsx)(S,{label:"Rest of today",badge:"Estimate",value:ne.open?`${ne.restOfDay.low}\u2013${ne.restOfDay.high} covers`:'\u2014',sub:ne.open?`${ne.restOfDay.booked} booked \xb7 ~${ne.restOfDay.takeaway} takeaway orders \xb7 ${O} walk-in covers seated so far`:void 0}),(0,v.jsx)(S,{label:"Waitlist",value:`${ie.length} part${1===ie.length?'y':'ies'}`,sub:`${ie.reduce((e,s)=>e+s.partySize,0)} covers \xb7 next wait ~${(0,j.estimateWait)(ie.length+1,D.settings.turnMins,he)} min (est.)`}),(0,v.jsx)(S,{label:"Takeaway slots",value:D.settings.takeawayPaused?'PAUSED':`${ge.filter(e=>!e.full).length} open`,sub:`Cap ${D.settings.slotCap} per ${D.settings.slotMinutes} min`,children:(0,v.jsxs)(u.Row,{gap:8,children:[(0,v.jsx)(r.default,{accessibilityLabel:"Pause takeaway slots",value:D.settings.takeawayPaused,onValueChange:e=>f.repo.restaurants.updateSettings(M,{takeawayPaused:e}),trackColor:{true:k.colours.redSolid,false:'#444'}}),(0,v.jsx)(u.T,{size:14,children:D.settings.takeawayPaused?'Resume':'Pause'})]})}),(0,v.jsx)(S,{label:"Walk-ins seated (today)",value:`${O} covers`,sub:"One-tap counter feeds the forecast",children:(0,v.jsx)(u.Row,{gap:6,children:[1,2,4].map(e=>(0,v.jsx)(u.Button,{small:!0,kind:"secondary",label:`+${e}`,onPress:()=>f.repo.waitlist.addWalkIn(M,e)},e))})})]}),(0,v.jsxs)(u.Row,{wrap:!0,gap:12,style:{backgroundColor:k.colours.surface,borderRadius:12,padding:10,borderWidth:1,borderColor:k.colours.border,alignItems:'flex-end'},children:[(0,v.jsxs)(o.default,{style:{gap:2,flexBasis:340,flexGrow:1},children:[(0,v.jsxs)(u.Row,{gap:6,children:[(0,v.jsx)(u.T,{weight:"semibold",colour:k.colours.gold,children:"Forecast \u2014 suggested actions"}),(0,v.jsx)(u.Badge,{kind:"amber",label:"ESTIMATE"})]}),ne.suggestions.map((e,s)=>(0,v.jsxs)(u.T,{size:14,children:["\u2022 ",e]},s)),(0,v.jsxs)(u.Muted,{children:[ne.flags.length?`Calendar flags today: ${ne.flags.join(', ')} \xb7 `:'',"Baseline v1: confirmed bookings + example weekday/hour averages + expected walk-ins (",Math.round(100*D.settings.walkInShare),"% share). ",w.EXAMPLE_ACCURACY,"."]})]}),(0,v.jsx)(u.Row,{gap:4,style:{alignItems:"flex-end"},children:Te.map(e=>{const s=ne.nextHour?.hour===e.hour;return(0,v.jsxs)(o.default,{style:{alignItems:'center',width:30},children:[(0,v.jsx)(u.T,{size:11,colour:k.colours.muted,children:e.covers}),(0,v.jsxs)(o.default,{style:{height:70,width:18,justifyContent:'flex-end',borderBottomWidth:1,borderColor:k.colours.border},children:[(0,v.jsx)(o.default,{style:{height:e.walkIns/Ce*70,backgroundColor:s?k.colours.goldLight:'#6B5A3A'}}),(0,v.jsx)(o.default,{style:{height:e.booked/Ce*70,backgroundColor:s?k.colours.gold:'#9C7C45'}})]}),(0,v.jsx)(u.T,{size:11,colour:s?k.colours.gold:k.colours.muted,children:e.hour})]},e.hour)})})]})]}),(0,v.jsxs)(o.default,{style:{flexDirection:P?'row':'column',gap:10,flex:P?1:void 0,minHeight:P?380:void 0},children:[$e,(0,v.jsx)(o.default,{style:{flex:1.5,gap:10},children:ve}),Se,Me]})]})]})};var s=_r(d[0]),t=e(s),l=e(_r(d[1])),r=e(_r(d[2])),a=e(_r(d[3])),o=e(_r(d[4])),n=e(_r(d[5])),i=_r(d[6]),u=_r(d[7]),c=_r(d[8]),h=_r(d[9]),p=_r(d[10]),m=_r(d[11]),b=_r(d[12]),x=_r(d[13]),y=_r(d[14]),j=_r(d[15]),f=_r(d[16]),w=_r(d[17]),k=_r(d[18]),T=_r(d[19]),C=_r(d[20]),$=_r(d[21]),v=_r(d[22]);const B=e=>(e??'').replace(' (example)','');function R({title:e,right:s,children:t,flex:r=1}){return(0,v.jsxs)(o.default,{style:{flex:r,backgroundColor:k.colours.surface,borderRadius:14,borderWidth:1,borderColor:k.colours.border,overflow:'hidden',minHeight:200},children:[(0,v.jsxs)(u.Row,{style:{justifyContent:'space-between',paddingHorizontal:12,paddingVertical:10,borderBottomWidth:1,borderBottomColor:k.colours.border,backgroundColor:k.colours.surface2},children:[(0,v.jsx)(u.T,{weight:"semibold",colour:k.colours.gold,children:e}),s]}),(0,v.jsx)(l.default,{contentContainerStyle:{padding:10,gap:10},children:t})]})}function S({label:e,value:s,sub:t,badge:l,children:r}){return(0,v.jsxs)(o.default,{style:{flex:1,minWidth:170,backgroundColor:k.colours.surface,borderRadius:12,padding:10,borderWidth:1,borderColor:k.colours.border,gap:2},children:[(0,v.jsxs)(u.Row,{style:{justifyContent:'space-between'},children:[(0,v.jsx)(u.T,{size:13,colour:k.colours.muted,weight:"medium",children:e}),l?(0,v.jsx)(u.Badge,{kind:"amber",label:l}):null]}),(0,v.jsx)(u.T,{size:24,weight:"bold",colour:k.colours.text,children:s}),t?(0,v.jsx)(u.T,{size:13,colour:k.colours.muted,children:t}):null,r]})}const A=e=>'new'===e?'red':'ready'===e?'green':'preparing'===e?'amber':'served'===e?'blue':'neutral'},843,[12,133,253,255,109,269,271,790,844,791,839,793,845,794,795,840,796,846,797,802,847,848,6]);
chef-app/_expo/static/js/web/index-e57a61ccf8b16e38bf91548a01cebbf1.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 c}});var t=r(d[0]);r(d[1]);var n=r(d[2]),u=r(d[3]);function c(){return(0,u.jsx)(t.Redirect,{href:n.ENTRY[n.APP_VARIANT]})}},778,[785,12,787,6]);
chef-app/_expo/static/js/web/index-fe2ef7ba9ca2d3dda85e1d7850679a70.js ADDED
The diff for this file is too large to render. See raw diff
 
chef-app/_expo/static/js/web/lost-7b007fea2d20e11c896c10e43db314be.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,w]=(0,n.useState)(''),[y,b]=(0,n.useState)(''),[S,C]=(0,n.useState)(''),[R,O]=(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 T=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 (demo: nothing is sent)."]}):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:w,placeholder:"e.g. Grey scarf"}),(0,o.jsx)(s.Field,{label:"When were you in?",value:y,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||y.trim().length<2,onPress:()=>{l.useOwner.getState().setOwner({lostReports:[{id:`lr-${Date.now()}`,item:f.trim(),when:y.trim(),where:S.trim()||'Not sure',contact:`${c.name} \xb7 ${c.email}`,at:x.toISOString(),status:'open'},...l.useOwner.getState().lostReports]}),w(''),b(''),C(''),O(!0)}})]}),T.length?(0,o.jsxs)(s.Card,{children:[(0,o.jsx)(s.H2,{children:"Your reports"}),T.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?'green':'open'===t.status?'amber':'neutral',label:'matched'===t.status?'Found!':'open'===t.status?'Looking':'Closed'})]},t.id))]}):null]})}},764,[785,12,790,796,802,6]);
chef-app/_expo/static/js/web/loyalty-d61b997ba39f99d118b493617d57703f.js ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 e=_r(d[0]);_r(d[1]);var r,s=_r(d[2]),t=(r=s)&&r.__esModule?r:{default:r},i=_r(d[3]),n=_r(d[4]),o=_r(d[5]),l=_r(d[6]),c=_r(d[7]),u=_r(d[8]);function h(){const{rid:r}=(0,e.useLocalSearchParams)(),s=(0,l.useRestaurant)(r),h=(0,l.useCustomer)(),p=(0,l.useStampCard)(r);if(!s)return(0,u.jsx)(n.Screen,{title:"Not found",children:(0,u.jsx)(n.T,{children:"Restaurant not found."})});const f=s.settings.stampTarget,j=p?.stamps??0;return(0,u.jsxs)(n.Screen,{title:"Stamp card",subtitle:`${s.name} \u2014 this card is just for ${s.name}`,children:[(0,u.jsxs)(n.Card,{highlight:c.colours.gold,children:[(0,u.jsxs)(n.Row,{style:{justifyContent:'space-between'},children:[(0,u.jsxs)(n.H2,{children:[j," of ",f," stamps"]}),(0,u.jsxs)(n.T,{colour:c.colours.gold,weight:"semibold",children:["Reward: ",s.settings.stampReward]})]}),(0,u.jsx)(t.default,{style:{flexDirection:'row',flexWrap:'wrap',gap:10,justifyContent:'center',paddingVertical:8},children:Array.from({length:f}).map((e,r)=>(0,u.jsx)(t.default,{accessibilityLabel:r<j?'Stamp collected':'Empty stamp',style:{width:52,height:52,borderRadius:26,borderWidth:2,borderColor:c.colours.gold,backgroundColor:r<j?c.colours.gold:'transparent',alignItems:'center',justifyContent:'center'},children:(0,u.jsx)(n.T,{size:22,colour:r<j?c.colours.onGold:c.colours.border,children:"\u2605"})},r))}),(0,u.jsxs)(n.Muted,{children:["One stamp per paid visit or order over ",(0,o.gbp)(s.settings.stampMinSpend)," \u2014 dine-in, table QR or takeaway. Rewards are funded by ",s.name,"."]}),p?.rewardsAvailable?(0,u.jsx)(n.Banner,{kind:"success",title:`${p.rewardsAvailable} reward${p.rewardsAvailable>1?'s':''} ready: ${s.settings.stampReward}`,children:(0,u.jsx)(n.Button,{small:!0,label:"Use reward (show staff)",onPress:()=>l.repo.loyalty.redeemReward(s.id,h.id)})}):null]}),(0,u.jsxs)(n.Card,{children:[(0,u.jsx)(n.H2,{children:"Show this to staff"}),(0,u.jsx)(n.Muted,{children:"Staff scan this on the tablet to add a stamp for dine-in visits not paid by table QR."}),(0,u.jsx)(i.QR,{value:`covercharge:stamp:${s.id}:${h.id}`,size:190}),(0,u.jsx)(n.T,{center:!0,weight:"semibold",children:h.name})]}),(0,u.jsxs)(n.Card,{children:[(0,u.jsx)(n.H2,{children:"Bring a friend"}),(0,u.jsx)(n.T,{children:"Your referral code"}),(0,u.jsx)(n.T,{size:28,weight:"bold",colour:c.colours.gold,center:!0,children:h.referralCode}),(0,u.jsx)(n.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,u.jsxs)(n.Card,{children:[(0,u.jsx)(n.H2,{children:"History"}),(p?.history??[]).length?p.history.slice(0,10).map((e,r)=>(0,u.jsxs)(n.Muted,{children:[e.at.slice(0,10)," \xb7 ",e.source]},r)):(0,u.jsx)(n.Muted,{children:"No stamps yet."})]}),(0,u.jsx)(n.Muted,{children:"Rewards are kept on food (Scottish licensing rules restrict drinks promotions). Stamps are never given for reviews."})]})}},765,[785,12,109,803,790,793,796,797,6]);
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.QR=function({value:e,size:t=180}){return(0,n.jsx)(o.default,{style:{padding:12,backgroundColor:'#FFFFFF',borderRadius:12,alignSelf:'center',borderWidth:3,borderColor:u.colours.gold},children:(0,n.jsx)(l.default,{value:e,size:t,color:"#0B0B0B",backgroundColor:"#FFFFFF"})})},r(d[0]);var o=e(r(d[1])),l=e(r(d[2])),u=r(d[3]),n=r(d[4])},803,[12,109,804,797,6]);
3
+ __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.default}});var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e}},804,[805]);
4
+ __d(function(g,r,i,a,m,_e,d){"use strict";function o(o){return o&&o.__esModule?o:{default:o}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return x}});var e=r(d[0]),t=r(d[1]),l=o(t),s=o(r(d[2])),n=o(r(d[3])),c=o(r(d[4])),h=r(d[5]);const u=({size:o,backgroundColor:e,logo:l,logoSVG:s,logoSize:n,logoBackgroundColor:u,logoColor:x,logoMargin:f,logoBorderRadius:p,clipPathId:j})=>{const C=(o-n-2*f)/2,y=n+2*f,b=p+f/n*p,k=`clip-logo-background-${j}`,G=`clip-logo-${j}`;return(0,h.jsxs)(t.G,{x:C,y:C,children:[(0,h.jsxs)(t.Defs,{children:[(0,h.jsx)(t.ClipPath,{id:k,children:(0,h.jsx)(t.Rect,{width:y,height:y,rx:b,ry:b})}),(0,h.jsx)(t.ClipPath,{id:G,children:(0,h.jsx)(t.Rect,{width:n,height:n,rx:p,ry:p})})]}),(0,h.jsx)(t.G,{children:(0,h.jsx)(t.Rect,{width:y,height:y,fill:e,clipPath:`url(#${k})`})}),(0,h.jsxs)(t.G,{x:f,y:f,clipPath:`url(#${G})`,children:[(0,h.jsx)(t.Rect,{width:y-f,height:y-f,fill:u}),s?(0,h.jsx)(c.default,{svg:s,logoSize:n,logoColor:x}):(0,h.jsx)(t.Image,{width:n,height:n,preserveAspectRatio:"xMidYMid slice",href:l,clipPath:`url(#${G})`})]})]})};var x=({value:o="this is a QR code",size:c=100,color:x="black",backgroundColor:f="white",logo:p,logoSVG:j,logoSize:C=.2*c,logoBackgroundColor:y="transparent",logoColor:b,logoMargin:k=2,logoBorderRadius:G=0,quietZone:R=0,enableLinearGradient:w=!1,gradientDirection:P=['0%','0%','100%','100%'],linearGradient:S=['rgb(255,0,0)','rgb(0,255,255)'],ecl:M="M",getRef:z,onError:v,testID:B})=>{const I=(0,e.useId)(),_=(0,e.useMemo)(()=>{try{return(0,n.default)((0,s.default)(o,M),c)}catch(o){if(!v||'function'!=typeof v)throw o;v(o)}},[o,c,M]);if(!_)return null;const{path:D,cellSize:$}=_,O=p||j;return(0,h.jsxs)(l.default,{testID:B,ref:z,viewBox:[-R,-R,c+2*R,c+2*R].join(' '),width:c,height:c,children:[(0,h.jsx)(t.Defs,{children:(0,h.jsxs)(t.LinearGradient,{id:"grad",x1:P[0],y1:P[1],x2:P[2],y2:P[3],children:[(0,h.jsx)(t.Stop,{offset:"0",stopColor:S[0],stopOpacity:"1"}),(0,h.jsx)(t.Stop,{offset:"1",stopColor:S[1],stopOpacity:"1"})]})}),(0,h.jsx)(t.G,{children:(0,h.jsx)(t.Rect,{x:-R,y:-R,width:c+2*R,height:c+2*R,fill:f})}),(0,h.jsx)(t.G,{children:(0,h.jsx)(t.Path,{d:D,strokeLinecap:"butt",stroke:w?'url(#grad)':x,strokeWidth:$})}),O&&u({size:c,backgroundColor:f,logo:p,logoSVG:j,logoSize:C,logoBackgroundColor:y,logoColor:b,logoMargin:k,logoBorderRadius:G,clipPathId:I})]})}},805,[12,838,806,835,836,6]);
5
+ __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 e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e},l=(e,t)=>{const l=Array.prototype.slice.call(u.default.create(e,{errorCorrectionLevel:t}).modules.data,0),n=Math.sqrt(l.length);return l.reduce((e,t,u)=>(u%n===0?e.push([t]):e[e.length-1].push(t))&&e,[])}},806,[807]);
6
+ __d(function(g,r,i,a,m,_e,d){const t=r(d[0]),n=r(d[1]),e=r(d[2]),o=r(d[3]);function c(e,o,c,l,u){const f=[].slice.call(arguments,1),s=f.length,v='function'==typeof f[s-1];if(!v&&!t())throw new Error('Callback required as last argument');if(!v){if(s<1)throw new Error('Too few arguments provided');return 1===s?(c=o,o=l=void 0):2!==s||o.getContext||(l=c,c=o,o=void 0),new Promise(function(t,u){try{const u=n.create(c,l);t(e(u,o,l))}catch(t){u(t)}})}if(s<2)throw new Error('Too few arguments provided');2===s?(u=c,c=o,o=l=void 0):3===s&&(o.getContext&&void 0===u?(u=l,l=void 0):(u=l,l=c,c=o,o=void 0));try{const t=n.create(c,l);u(null,e(t,o,l))}catch(t){u(t)}}_e.create=n.create,_e.toCanvas=c.bind(null,e.render),_e.toDataURL=c.bind(null,e.renderToDataURL),_e.toString=c.bind(null,function(t,n,e){return o.render(t,e)})},807,[808,809,832,834]);
7
+ __d(function(g,r,i,a,m,e,d){m.exports=function(){return'function'==typeof Promise&&Promise.prototype&&Promise.prototype.then}},808,[]);
8
+ __d(function(g,_r,_i,a,m,e,d){const t=_r(d[0]),o=_r(d[1]),n=_r(d[2]),r=_r(d[3]),s=_r(d[4]),i=_r(d[5]),f=_r(d[6]),c=_r(d[7]),l=_r(d[8]),u=_r(d[9]),h=_r(d[10]),w=_r(d[11]),C=_r(d[12]);function y(t,o){const n=t.size,r=i.getPositions(o);for(let o=0;o<r.length;o++){const s=r[o][0],i=r[o][1];for(let o=-1;o<=7;o++)if(!(s+o<=-1||n<=s+o))for(let r=-1;r<=7;r++)i+r<=-1||n<=i+r||(o>=0&&o<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===o||6===o)||o>=2&&o<=4&&r>=2&&r<=4?t.set(s+o,i+r,!0,!0):t.set(s+o,i+r,!1,!0))}}function S(t){const o=t.size;for(let n=8;n<o-8;n++){const o=n%2==0;t.set(n,6,o,!0),t.set(6,n,o,!0)}}function p(t,o){const n=s.getPositions(o);for(let o=0;o<n.length;o++){const r=n[o][0],s=n[o][1];for(let o=-2;o<=2;o++)for(let n=-2;n<=2;n++)-2===o||2===o||-2===n||2===n||0===o&&0===n?t.set(r+o,s+n,!0,!0):t.set(r+o,s+n,!1,!0)}}function v(t,o){const n=t.size,r=u.getEncodedBits(o);let s,i,f;for(let o=0;o<18;o++)s=Math.floor(o/3),i=o%3+n-8-3,f=1==(r>>o&1),t.set(s,i,f,!0),t.set(i,s,f,!0)}function B(t,o,n){const r=t.size,s=h.getEncodedBits(o,n);let i,f;for(i=0;i<15;i++)f=1==(s>>i&1),i<6?t.set(i,8,f,!0):i<8?t.set(i+1,8,f,!0):t.set(r-15+i,8,f,!0),i<8?t.set(8,r-i-1,f,!0):i<9?t.set(8,15-i-1+1,f,!0):t.set(8,15-i-1,f,!0);t.set(r-8,8,1,!0)}function b(t,o){const n=t.size;let r=-1,s=n-1,i=7,f=0;for(let c=n-1;c>0;c-=2)for(6===c&&c--;;){for(let n=0;n<2;n++)if(!t.isReserved(s,c-n)){let r=!1;f<o.length&&(r=1==(o[f]>>>i&1)),t.set(s,c-n,r),i--,-1===i&&(f++,i=7)}if(s+=r,s<0||n<=s){s-=r,r=-r;break}}}function M(o,r,s){const i=new n;s.forEach(function(t){i.put(t.mode.bit,4),i.put(t.getLength(),w.getCharCountIndicator(t.mode,o)),t.write(i)});const f=8*(t.getSymbolTotalCodewords(o)-c.getTotalCodewordsCount(o,r));for(i.getLengthInBits()+4<=f&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);const l=(f-i.getLengthInBits())/8;for(let t=0;t<l;t++)i.put(t%2?17:236,8);return I(i,o,r)}function I(o,n,r){const s=t.getSymbolTotalCodewords(n),i=s-c.getTotalCodewordsCount(n,r),f=c.getBlocksCount(n,r),u=f-s%f,h=Math.floor(s/f),w=Math.floor(i/f),C=w+1,y=h-w,S=new l(y);let p=0;const v=new Array(f),B=new Array(f);let b=0;const M=new Uint8Array(o.buffer);for(let t=0;t<f;t++){const o=t<u?w:C;v[t]=M.slice(p,p+o),B[t]=S.encode(v[t]),p+=o,b=Math.max(b,o)}const I=new Uint8Array(s);let A,E,T=0;for(A=0;A<b;A++)for(E=0;E<f;E++)A<v[E].length&&(I[T++]=v[E][A]);for(A=0;A<y;A++)for(E=0;E<f;E++)I[T++]=B[E][A];return I}function A(o,n,s,i){let c;if(Array.isArray(o))c=C.fromArray(o);else{if('string'!=typeof o)throw new Error('Invalid data');{let t=n;if(!t){const n=C.rawSplit(o);t=u.getBestVersionForData(n,s)}c=C.fromString(o,t||40)}}const l=u.getBestVersionForData(c,s);if(!l)throw new Error('The amount of data is too big to be stored in a QR Code');if(n){if(n<l)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+l+'.\n')}else n=l;const h=M(n,s,c),w=t.getSymbolSize(n),I=new r(w);return y(I,n),S(I),p(I,n),B(I,s,0),n>=7&&v(I,n),b(I,h),isNaN(i)&&(i=f.getBestMask(I,B.bind(null,I,s))),f.applyMask(i,I),B(I,s,i),{modules:I,version:n,errorCorrectionLevel:s,maskPattern:i,segments:c}}e.create=function(n,r){if(void 0===n||''===n)throw new Error('No input text');let s,i,c=o.M;return void 0!==r&&(c=o.from(r.errorCorrectionLevel,o.M),s=u.from(r.version),i=f.from(r.maskPattern),r.toSJISFunc&&t.setToSJISFunction(r.toSJISFunc)),A(n,s,c,i)}},809,[810,811,812,813,814,815,816,817,818,821,825,822,826]);
9
+ __d(function(g,r,i,a,m,e,d){let n;const o=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(n){if(!n)throw new Error('"version" cannot be null or undefined');if(n<1||n>40)throw new Error('"version" should be in range from 1 to 40');return 4*n+17},e.getSymbolTotalCodewords=function(n){return o[n]},e.getBCHDigit=function(n){let o=0;for(;0!==n;)o++,n>>>=1;return o},e.setToSJISFunction=function(o){if('function'!=typeof o)throw new Error('"toSJISFunc" is not a valid function.');n=o},e.isKanjiModeEnabled=function(){return void 0!==n},e.toSJIS=function(o){return n(o)}},810,[]);
10
+ __d(function(g,r,i,a,m,_e,d){function t(t){if('string'!=typeof t)throw new Error('Param is not a string');switch(t.toLowerCase()){case'l':case'low':return _e.L;case'm':case'medium':return _e.M;case'q':case'quartile':return _e.Q;case'h':case'high':return _e.H;default:throw new Error('Unknown EC Level: '+t)}}_e.L={bit:1},_e.M={bit:0},_e.Q={bit:3},_e.H={bit:2},_e.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},_e.from=function(e,n){if(_e.isValid(e))return e;try{return t(e)}catch(t){return n}}},811,[]);
11
+ __d(function(g,r,_i,a,m,e,d){function t(){this.buffer=[],this.length=0}t.prototype={get:function(t){const n=Math.floor(t/8);return 1==(this.buffer[n]>>>7-t%8&1)},put:function(t,n){for(let h=0;h<n;h++)this.putBit(1==(t>>>n-h-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),t&&(this.buffer[n]|=128>>>this.length%8),this.length++}},m.exports=t},812,[]);
12
+ __d(function(g,r,i,a,m,e,d){function t(t){if(!t||t<1)throw new Error('BitMatrix size must be defined and greater than 0');this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}t.prototype.set=function(t,s,n,o){const h=t*this.size+s;this.data[h]=n,o&&(this.reservedBit[h]=!0)},t.prototype.get=function(t,s){return this.data[t*this.size+s]},t.prototype.xor=function(t,s,n){this.data[t*this.size+s]^=n},t.prototype.isReserved=function(t,s){return this.reservedBit[t*this.size+s]},m.exports=t},813,[]);
13
+ __d(function(g,r,_i,a,m,e,d){const o=r(d[0]).getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];const n=Math.floor(t/7)+2,s=o(t),l=145===s?26:2*Math.ceil((s-13)/(2*n-2)),f=[s-7];for(let o=1;o<n-1;o++)f[o]=f[o-1]-l;return f.push(6),f.reverse()},e.getPositions=function(o){const t=[],n=e.getRowColCoords(o),s=n.length;for(let o=0;o<s;o++)for(let l=0;l<s;l++)0===o&&0===l||0===o&&l===s-1||o===s-1&&0===l||t.push([n[o],n[l]]);return t}},814,[810]);
14
+ __d(function(g,r,i,a,m,e,d){const n=r(d[0]).getSymbolSize;e.getPositions=function(t){const o=n(t);return[[0,0],[o-7,0],[0,o-7]]}},815,[810]);
15
+ __d(function(g,r,_i,a,m,e,d){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t=3,n=3,s=40,l=10;function o(t,n,s){switch(t){case e.Patterns.PATTERN000:return(n+s)%2==0;case e.Patterns.PATTERN001:return n%2==0;case e.Patterns.PATTERN010:return s%3==0;case e.Patterns.PATTERN011:return(n+s)%3==0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(s/3))%2==0;case e.Patterns.PATTERN101:return n*s%2+n*s%3==0;case e.Patterns.PATTERN110:return(n*s%2+n*s%3)%2==0;case e.Patterns.PATTERN111:return(n*s%3+(n+s)%2)%2==0;default:throw new Error('bad maskPattern:'+t)}}e.isValid=function(t){return null!=t&&''!==t&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(n){const s=n.size;let l=0,o=0,P=0,T=null,c=null;for(let u=0;u<s;u++){o=P=0,T=c=null;for(let N=0;N<s;N++){let s=n.get(u,N);s===T?o++:(o>=5&&(l+=t+(o-5)),T=s,o=1),s=n.get(N,u),s===c?P++:(P>=5&&(l+=t+(P-5)),c=s,P=1)}o>=5&&(l+=t+(o-5)),P>=5&&(l+=t+(P-5))}return l},e.getPenaltyN2=function(t){const s=t.size;let l=0;for(let n=0;n<s-1;n++)for(let o=0;o<s-1;o++){const s=t.get(n,o)+t.get(n,o+1)+t.get(n+1,o)+t.get(n+1,o+1);4!==s&&0!==s||l++}return l*n},e.getPenaltyN3=function(t){const n=t.size;let l=0,o=0,P=0;for(let s=0;s<n;s++){o=P=0;for(let T=0;T<n;T++)o=o<<1&2047|t.get(s,T),T>=10&&(1488===o||93===o)&&l++,P=P<<1&2047|t.get(T,s),T>=10&&(1488===P||93===P)&&l++}return l*s},e.getPenaltyN4=function(t){let n=0;const s=t.data.length;for(let l=0;l<s;l++)n+=t.data[l];return Math.abs(Math.ceil(100*n/s/5)-10)*l},e.applyMask=function(t,n){const s=n.size;for(let l=0;l<s;l++)for(let P=0;P<s;P++)n.isReserved(P,l)||n.xor(P,l,o(t,P,l))},e.getBestMask=function(t,n){const s=Object.keys(e.Patterns).length;let l=0,o=1/0;for(let P=0;P<s;P++){n(P),e.applyMask(P,t);const s=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(P,t),s<o&&(o=s,l=P)}return l}},816,[]);
16
+ __d(function(g,r,i,a,m,e,d){const t=r(d[0]),n=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],u=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(u,c){switch(c){case t.L:return n[4*(u-1)+0];case t.M:return n[4*(u-1)+1];case t.Q:return n[4*(u-1)+2];case t.H:return n[4*(u-1)+3];default:return}},e.getTotalCodewordsCount=function(n,c){switch(c){case t.L:return u[4*(n-1)+0];case t.M:return u[4*(n-1)+1];case t.Q:return u[4*(n-1)+2];case t.H:return u[4*(n-1)+3];default:return}}},817,[811]);
17
+ __d(function(g,r,i,a,m,e,d){const t=r(d[0]);function n(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}n.prototype.initialize=function(n){this.degree=n,this.genPoly=t.generateECPolynomial(this.degree)},n.prototype.encode=function(n){if(!this.genPoly)throw new Error('Encoder not initialized');const o=new Uint8Array(n.length+this.degree);o.set(n);const s=t.mod(o,this.genPoly),h=this.degree-s.length;if(h>0){const t=new Uint8Array(this.degree);return t.set(s,h),t}return s},m.exports=n},818,[819]);
18
+ __d(function(g,r,_i,a,m,e,d){const n=r(d[0]);e.mul=function(t,l){const o=new Uint8Array(t.length+l.length-1);for(let u=0;u<t.length;u++)for(let f=0;f<l.length;f++)o[u+f]^=n.mul(t[u],l[f]);return o},e.mod=function(t,l){let o=new Uint8Array(t);for(;o.length-l.length>=0;){const t=o[0];for(let u=0;u<l.length;u++)o[u]^=n.mul(l[u],t);let u=0;for(;u<o.length&&0===o[u];)u++;o=o.slice(u)}return o},e.generateECPolynomial=function(t){let l=new Uint8Array([1]);for(let o=0;o<t;o++)l=e.mul(l,new Uint8Array([1,n.exp(o)]));return l}},819,[820]);
19
+ __d(function(g,r,_i,a,m,e,d){const n=new Uint8Array(512),t=new Uint8Array(256);!(function(){let o=1;for(let u=0;u<255;u++)n[u]=o,t[o]=u,o<<=1,256&o&&(o^=285);for(let t=255;t<512;t++)n[t]=n[t-255]})(),e.log=function(n){if(n<1)throw new Error('log('+n+')');return t[n]},e.exp=function(t){return n[t]},e.mul=function(o,u){return 0===o||0===u?0:n[t[o]+t[u]]}},820,[]);
20
+ __d(function(g,r,i,a,m,e,_d){const t=r(_d[0]),n=r(_d[1]),o=r(_d[2]),f=r(_d[3]),u=r(_d[4]),c=t.getBCHDigit(7973);function s(t,n,o){for(let f=1;f<=40;f++)if(n<=e.getCapacity(f,o,t))return f}function l(t,n){return f.getCharCountIndicator(t,n)+4}function d(t,n){let o=0;return t.forEach(function(t){const f=l(t.mode,n);o+=f+t.getBitsLength()}),o}function C(t,n){for(let o=1;o<=40;o++){if(d(t,o)<=e.getCapacity(o,n,f.MIXED))return o}}e.from=function(t,n){return u.isValid(t)?parseInt(t,10):n},e.getCapacity=function(o,c,s){if(!u.isValid(o))throw new Error('Invalid QR Code version');void 0===s&&(s=f.BYTE);const d=8*(t.getSymbolTotalCodewords(o)-n.getTotalCodewordsCount(o,c));if(s===f.MIXED)return d;const C=d-l(s,o);switch(s){case f.NUMERIC:return Math.floor(C/10*3);case f.ALPHANUMERIC:return Math.floor(C/11*2);case f.KANJI:return Math.floor(C/13);case f.BYTE:default:return Math.floor(C/8)}},e.getBestVersionForData=function(t,n){let f;const u=o.from(n,o.M);if(Array.isArray(t)){if(t.length>1)return C(t,u);if(0===t.length)return 1;f=t[0]}else f=t;return s(f.mode,f.getLength(),u)},e.getEncodedBits=function(n){if(!u.isValid(n)||n<7)throw new Error('Invalid QR Code version');let o=n<<12;for(;t.getBCHDigit(o)-c>=0;)o^=7973<<t.getBCHDigit(o)-c;return n<<12|o}},821,[810,817,811,822,823]);
21
+ __d(function(g,r,i,a,m,_e,d){const t=r(d[0]),n=r(d[1]);function e(t){if('string'!=typeof t)throw new Error('Param is not a string');switch(t.toLowerCase()){case'numeric':return _e.NUMERIC;case'alphanumeric':return _e.ALPHANUMERIC;case'kanji':return _e.KANJI;case'byte':return _e.BYTE;default:throw new Error('Unknown mode: '+t)}}_e.NUMERIC={id:'Numeric',bit:1,ccBits:[10,12,14]},_e.ALPHANUMERIC={id:'Alphanumeric',bit:2,ccBits:[9,11,13]},_e.BYTE={id:'Byte',bit:4,ccBits:[8,16,16]},_e.KANJI={id:'Kanji',bit:8,ccBits:[8,10,12]},_e.MIXED={bit:-1},_e.getCharCountIndicator=function(n,e){if(!n.ccBits)throw new Error('Invalid mode: '+n);if(!t.isValid(e))throw new Error('Invalid version: '+e);return e>=1&&e<10?n.ccBits[0]:e<27?n.ccBits[1]:n.ccBits[2]},_e.getBestModeForData=function(t){return n.testNumeric(t)?_e.NUMERIC:n.testAlphanumeric(t)?_e.ALPHANUMERIC:n.testKanji(t)?_e.KANJI:_e.BYTE},_e.toString=function(t){if(t&&t.id)return t.id;throw new Error('Invalid mode')},_e.isValid=function(t){return t&&t.bit&&t.ccBits},_e.from=function(t,n){if(_e.isValid(t))return t;try{return e(t)}catch(t){return n}}},822,[823,824]);
22
+ __d(function(g,r,i,a,m,e,d){e.isValid=function(n){return!isNaN(n)&&n>=1&&n<=40}},823,[]);
23
+ __d(function(g,r,i,a,m,e,d){let u="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";u=u.replace(/u/g,'\\u');const n='(?:(?![A-Z0-9 $%*+\\-./:]|'+u+')(?:.|[\r\n]))+';e.KANJI=new RegExp(u,'g'),e.BYTE_KANJI=new RegExp('[^A-Z0-9 $%*+\\-./:]+','g'),e.BYTE=new RegExp(n,'g'),e.NUMERIC=new RegExp('[0-9]+','g'),e.ALPHANUMERIC=new RegExp('[A-Z $%*+\\-./:]+','g');const t=new RegExp('^'+u+'$'),E=new RegExp("^[0-9]+$"),A=new RegExp('^[A-Z0-9 $%*+\\-./:]+$');e.testKanji=function(u){return t.test(u)},e.testNumeric=function(u){return E.test(u)},e.testAlphanumeric=function(u){return A.test(u)}},824,[]);
24
+ __d(function(g,r,i,a,m,e,_d){const t=r(_d[0]),n=t.getBCHDigit(1335);e.getEncodedBits=function(o,c){const B=o.bit<<3|c;let d=B<<10;for(;t.getBCHDigit(d)-n>=0;)d^=1335<<t.getBCHDigit(d)-n;return 21522^(B<<10|d)}},825,[810]);
25
+ __d(function(g,r,_i,a,m,e,d){const t=r(d[0]),n=r(d[1]),o=r(d[2]),u=r(d[3]),s=r(d[4]),l=r(d[5]),c=r(d[6]),h=r(d[7]);function i(t){return unescape(encodeURIComponent(t)).length}function f(t,n,o){const u=[];let s;for(;null!==(s=t.exec(o));)u.push({data:s[0],index:s.index,mode:n,length:s[0].length});return u}function E(n){const o=f(l.NUMERIC,t.NUMERIC,n),u=f(l.ALPHANUMERIC,t.ALPHANUMERIC,n);let s,h;c.isKanjiModeEnabled()?(s=f(l.BYTE,t.BYTE,n),h=f(l.KANJI,t.KANJI,n)):(s=f(l.BYTE_KANJI,t.BYTE,n),h=[]);return o.concat(u,s,h).sort(function(t,n){return t.index-n.index}).map(function(t){return{data:t.data,mode:t.mode,length:t.length}})}function A(l,c){switch(c){case t.NUMERIC:return n.getBitsLength(l);case t.ALPHANUMERIC:return o.getBitsLength(l);case t.KANJI:return s.getBitsLength(l);case t.BYTE:return u.getBitsLength(l)}}function I(t){return t.reduce(function(t,n){const o=t.length-1>=0?t[t.length-1]:null;return o&&o.mode===n.mode?(t[t.length-1].data+=n.data,t):(t.push(n),t)},[])}function C(n){const o=[];for(let u=0;u<n.length;u++){const s=n[u];switch(s.mode){case t.NUMERIC:o.push([s,{data:s.data,mode:t.ALPHANUMERIC,length:s.length},{data:s.data,mode:t.BYTE,length:s.length}]);break;case t.ALPHANUMERIC:o.push([s,{data:s.data,mode:t.BYTE,length:s.length}]);break;case t.KANJI:o.push([s,{data:s.data,mode:t.BYTE,length:i(s.data)}]);break;case t.BYTE:o.push([{data:s.data,mode:t.BYTE,length:i(s.data)}])}}return o}function p(n,o){const u={},s={start:{}};let l=['start'];for(let c=0;c<n.length;c++){const h=n[c],i=[];for(let n=0;n<h.length;n++){const f=h[n],E=''+c+n;i.push(E),u[E]={node:f,lastCount:0},s[E]={};for(let n=0;n<l.length;n++){const c=l[n];u[c]&&u[c].node.mode===f.mode?(s[c][E]=A(u[c].lastCount+f.length,f.mode)-A(u[c].lastCount,f.mode),u[c].lastCount+=f.length):(u[c]&&(u[c].lastCount=f.length),s[c][E]=A(f.length,f.mode)+4+t.getCharCountIndicator(f.mode,o))}}l=i}for(let t=0;t<l.length;t++)s[l[t]].end=0;return{map:s,table:u}}function B(l,h){let i;const f=t.getBestModeForData(l);if(i=t.from(h,f),i!==t.BYTE&&i.bit<f.bit)throw new Error('"'+l+"\" cannot be encoded with mode "+t.toString(i)+'.\n Suggested mode is: '+t.toString(f));switch(i!==t.KANJI||c.isKanjiModeEnabled()||(i=t.BYTE),i){case t.NUMERIC:return new n(l);case t.ALPHANUMERIC:return new o(l);case t.KANJI:return new s(l);case t.BYTE:return new u(l)}}e.fromArray=function(t){return t.reduce(function(t,n){return'string'==typeof n?t.push(B(n,null)):n.data&&t.push(B(n.data,n.mode)),t},[])},e.fromString=function(t,n){const o=p(C(E(t,c.isKanjiModeEnabled())),n),u=h.find_path(o.map,'start','end'),s=[];for(let t=1;t<u.length-1;t++)s.push(o.table[u[t]].node);return e.fromArray(I(s))},e.rawSplit=function(t){return e.fromArray(E(t,c.isKanjiModeEnabled()))}},826,[822,827,828,829,830,824,810,831]);
26
+ __d(function(g,r,_i,a,m,e,d){const t=r(d[0]);function n(n){this.mode=t.NUMERIC,this.data=n.toString()}n.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(t){let n,o,s;for(n=0;n+3<=this.data.length;n+=3)o=this.data.substr(n,3),s=parseInt(o,10),t.put(s,10);const i=this.data.length-n;i>0&&(o=this.data.substr(n),s=parseInt(o,10),t.put(s,3*i+1))},m.exports=n},827,[822]);
27
+ __d(function(g,r,_i,a,m,e,d){const t=r(d[0]),n=['0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z',' ','$','%','*','+','-','.','/',':'];function i(n){this.mode=t.ALPHANUMERIC,this.data=n}i.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){let i;for(i=0;i+2<=this.data.length;i+=2){let h=45*n.indexOf(this.data[i]);h+=n.indexOf(this.data[i+1]),t.put(h,11)}this.data.length%2&&t.put(n.indexOf(this.data[i]),6)},m.exports=i},828,[822]);
28
+ __d(function(g,r,_i,a,m,e,d){const t=r(d[0]);function n(n){this.mode=t.BYTE,this.data='string'==typeof n?(new TextEncoder).encode(n):new Uint8Array(n)}n.getBitsLength=function(t){return 8*t},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(t){for(let n=0,o=this.data.length;n<o;n++)t.put(this.data[n],8)},m.exports=n},829,[822]);
29
+ __d(function(g,r,_i,a,m,e,d){const t=r(d[0]),n=r(d[1]);function i(n){this.mode=t.KANJI,this.data=n}i.getBitsLength=function(t){return 13*t},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){let i;for(i=0;i<this.data.length;i++){let o=n.toSJIS(this.data[i]);if(o>=33088&&o<=40956)o-=33088;else{if(!(o>=57408&&o<=60351))throw new Error('Invalid SJIS character: '+this.data[i]+"\nMake sure your charset is UTF-8");o-=49472}o=192*(o>>>8&255)+(255&o),t.put(o,13)}},m.exports=i},830,[822,810]);
30
+ __d(function(g,r,i,_a,m,e,_d){'use strict';var t={single_source_shortest_paths:function(o,s,u){var n={},a={};a[s]=0;var h,f,p,_,c,v,d,l=t.PriorityQueue.make();for(l.push(s,0);!l.empty();)for(p in f=(h=l.pop()).value,_=h.cost,c=o[f]||{})c.hasOwnProperty(p)&&(v=_+c[p],d=a[p],(void 0===a[p]||d>v)&&(a[p]=v,l.push(p,v),n[p]=f));if(void 0!==u&&void 0===a[u]){var y=['Could not find a path from ',s,' to ',u,'.'].join('');throw new Error(y)}return n},extract_shortest_path_from_predecessor_list:function(t,o){for(var s=[],u=o;u;)s.push(u),t[u],u=t[u];return s.reverse(),s},find_path:function(o,s,u){var n=t.single_source_shortest_paths(o,s,u);return t.extract_shortest_path_from_predecessor_list(n,u)},PriorityQueue:{make:function(o){var s,u=t.PriorityQueue,n={};for(s in o=o||{},u)u.hasOwnProperty(s)&&(n[s]=u[s]);return n.queue=[],n.sorter=o.sorter||u.default_sorter,n},default_sorter:function(t,o){return t.cost-o.cost},push:function(t,o){var s={value:t,cost:o};this.queue.push(s),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};void 0!==m&&(m.exports=t)},831,[]);
31
+ __d(function(g,r,i,a,m,_e,d){const t=r(d[0]);function e(t,e,n){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=n,e.width=n,e.style.height=n+'px',e.style.width=n+'px'}function n(){try{return document.createElement('canvas')}catch(t){throw new Error('You need to specify a canvas element')}}_e.render=function(o,c,s){let u=s,h=c;void 0!==u||c&&c.getContext||(u=c,c=void 0),c||(h=n()),u=t.getOptions(u);const l=t.getImageWidth(o.modules.size,u),p=h.getContext('2d'),y=p.createImageData(l,l);return t.qrToImageData(y.data,o,u),e(p,h,l),p.putImageData(y,0,0),h},_e.renderToDataURL=function(t,e,n){let o=n;void 0!==o||e&&e.getContext||(o=e,e=void 0),o||(o={});const c=_e.render(t,e,o),s=o.type||'image/png',u=o.rendererOpts||{};return c.toDataURL(s,u.quality)}},832,[833]);
32
+ __d(function(g,r,_i,a,m,e,d){function t(t){if('number'==typeof t&&(t=t.toString()),'string'!=typeof t)throw new Error('Color should be defined as hex string');let o=t.slice().replace('#','').split('');if(o.length<3||5===o.length||o.length>8)throw new Error('Invalid hex color: '+t);3!==o.length&&4!==o.length||(o=Array.prototype.concat.apply([],o.map(function(t){return[t,t]}))),6===o.length&&o.push('F','F');const n=parseInt(o.join(''),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:'#'+o.slice(0,6).join('')}}e.getOptions=function(o){o||(o={}),o.color||(o.color={});const n=void 0===o.margin||null===o.margin||o.margin<0?4:o.margin,i=o.width&&o.width>=21?o.width:void 0,l=o.scale||4;return{width:i,scale:i?4:l,margin:n,color:{dark:t(o.color.dark||'#000000ff'),light:t(o.color.light||'#ffffffff')},type:o.type,rendererOpts:o.rendererOpts||{}}},e.getScale=function(t,o){return o.width&&o.width>=t+2*o.margin?o.width/(t+2*o.margin):o.scale},e.getImageWidth=function(t,o){const n=e.getScale(t,o);return Math.floor((t+2*o.margin)*n)},e.qrToImageData=function(t,o,n){const i=o.modules.size,l=o.modules.data,c=e.getScale(i,n),f=Math.floor((i+2*n.margin)*c),h=n.margin*c,s=[n.color.light,n.color.dark];for(let o=0;o<f;o++)for(let u=0;u<f;u++){let p=4*(o*f+u),w=n.color.light;if(o>=h&&u>=h&&o<f-h&&u<f-h){w=s[l[Math.floor((o-h)/c)*i+Math.floor((u-h)/c)]?1:0]}t[p++]=w.r,t[p++]=w.g,t[p++]=w.b,t[p]=w.a}}},833,[]);
33
+ __d(function(g,r,_i,a,m,e,d){const t=r(d[0]);function o(t,o){const n=t.a/255,i=o+'="'+t.hex+'"';return n<1?i+' '+o+'-opacity="'+n.toFixed(2).slice(1)+'"':i}function n(t,o,n){let i=t+o;return void 0!==n&&(i+=' '+n),i}function i(t,o,i){let l='',h=0,s=!1,c=0;for(let u=0;u<t.length;u++){const f=Math.floor(u%o),w=Math.floor(u/o);f||s||(s=!0),t[u]?(c++,u>0&&f>0&&t[u-1]||(l+=s?n('M',f+i,.5+w+i):n('m',h,0),h=0,s=!1),f+1<o&&t[u+1]||(l+=n('h',c),c=0)):h++}return l}e.render=function(n,l,h){const s=t.getOptions(l),c=n.modules.size,u=n.modules.data,f=c+2*s.margin,w=s.color.light.a?'<path '+o(s.color.light,'fill')+' d="M0 0h'+f+'v'+f+'H0z"/>':'',p='<path '+o(s.color.dark,'stroke')+' d="'+i(u,c,s.margin)+'"/>',v="viewBox=\"0 0 "+f+' '+f+'"',x='<svg xmlns="http://www.w3.org/2000/svg" '+(s.width?'width="'+s.width+'" height="'+s.width+'" ':'')+v+' shape-rendering="crispEdges">'+w+p+'</svg>\n';return'function'==typeof h&&h(null,x),x}},834,[833]);
34
+ __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 t}});var t=(t,n)=>{const l=n/t.length;let c='';return t.forEach((n,u)=>{let o=!1;n.forEach((n,f)=>{n?(o||(c+=`M${l*f} ${l/2+l*u} `,o=!0),o&&f===t.length-1&&(c+=`L${l*(f+1)} ${l/2+l*u} `)):o&&(c+=`L${l*f} ${l/2+l*u} `,o=!1)})}),{cellSize:l,path:c}}},835,[]);
35
+ __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 s}}),r(d[0]);var t=r(d[1]),n=r(d[2]),o=r(d[3]);var s=({svg:s,logoSize:l,logoColor:u})=>{if((0,n.isString)(s)){const u=(0,n.isUrlString)(s)?s:`data:image/svg+xml;base64,${window.btoa(s)}`;return(0,o.jsx)(t.Image,{href:encodeURI(u),width:l,height:l})}const c=s;return(0,o.jsx)(c,{fill:u,width:l,height:l})}},836,[12,838,837,6]);
36
+ __d(function(g,r,i,a,m,e,d){"use strict";function t(t){return'string'==typeof t}Object.defineProperty(e,'__esModule',{value:!0}),e.isString=t,e.isUrlString=function(n){return t(n)&&n.startsWith('http')}},837,[]);
chef-app/_expo/static/js/web/merch-14abbe5512f1b6eed03bc33e186d67f4.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 x}});var e,t=_r(d[0]),n=_r(d[1]),s=_r(d[2]),l=(e=s)&&e.__esModule?e:{default:e},r=_r(d[3]),o=_r(d[4]),c=_r(d[5]),u=_r(d[6]),m=_r(d[7]),h=_r(d[8]),j=_r(d[9]),p=_r(d[10]);function x(){const{rid:e}=(0,t.useLocalSearchParams)(),s=(0,c.useRestaurant)(e),x=(0,c.useCustomer)(),b=(0,c.useNow)(6e4),f=(0,u.useOwner)(e=>e.merch),[y,w]=(0,n.useState)({}),[k,S]=(0,n.useState)(null),[C,$]=(0,n.useState)(null);if(!s)return(0,p.jsx)(o.Screen,{title:"Not found",children:(0,p.jsx)(o.T,{children:"Restaurant not found."})});const v=f.find(e=>e.id===k),O=e=>y[e]??1;return(0,p.jsxs)(o.Screen,{title:"Shop",subtitle:`${s.name} merch \xb7 collect in the restaurant`,children:[C?(0,p.jsxs)(o.Banner,{kind:"success",title:"Order placed (demo)",children:[C," Collect it at the bar on your next visit."]}):null,f.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)(l.default,{style:{flex:1},children:[(0,p.jsx)(o.T,{weight:"semibold",children:e.name}),(0,p.jsx)(o.T,{colour:j.colours.gold,weight:"semibold",children:(0,m.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=>w({...y,[e.id]:t}),label:`${e.name} quantity`}),(0,p.jsx)(o.Button,{small:!0,label:`Buy \xb7 ${(0,m.gbp)(e.price*O(e.id))}`,onPress:()=>S(e.id)})]}):null]},e.id)),(0,p.jsxs)(o.Muted,{children:["Collection only in this prototype. Prices set by ",s.name,"."]}),v?(0,p.jsx)(r.MockPay,{visible:!0,onClose:()=>S(null),amount:v.price*O(v.id),restaurantId:s.id,allowGiftCard:!1,title:`Buy ${v.name}`,onPaid:()=>{const e=u.useOwner.getState();e.setOwner({merch:e.merch.map(e=>e.id===v.id?{...e,stock:Math.max(0,e.stock-O(v.id))}:e),merchOrders:[{id:`mo-${Date.now()}`,productId:v.id,qty:O(v.id),customer:x.name,at:(0,h.ymd)(b),status:'new'},...e.merchOrders]}),$(`${O(v.id)} \xd7 ${v.name}, ${(0,m.gbp)(v.price*O(v.id))}.`),S(null)}}):null]})}},766,[785,12,109,789,790,796,802,793,795,797,6]);
chef-app/_expo/static/js/web/offers-5900fcc1d50a10eb3a8ff2fd4b42777f.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 n=_r(d[0]);_r(d[1]);var t=_r(d[2]),s=_r(d[3]),r=_r(d[4]),l=_r(d[5]),o=_r(d[6]),c=_r(d[7]);function f(){const{rid:f}=(0,n.useLocalSearchParams)(),u=(0,s.useRestaurant)(f),h=(0,s.useCustomer)(),j=(0,r.useOwner)(n=>n.offers);if(!u)return(0,c.jsx)(t.Screen,{title:"Not found",children:(0,c.jsx)(t.T,{children:"Restaurant not found."})});const x=!!h.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,c.jsxs)(t.Screen,{title:"Specials & offers",subtitle:u.name,children:[(0,c.jsxs)(t.Card,{highlight:x?o.colours.green:o.colours.gold,children:[(0,c.jsx)(t.Toggle,{label:`Send me offers from ${u.name}`,value:x,onChange:n=>s.repo.customers.update({marketingOptIn:{...h.marketingOptIn,[u.id]:n}})}),(0,c.jsx)(t.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,c.jsx)(t.H2,{children:"Today's specials"}),p.length?p.map(n=>(0,c.jsxs)(t.Card,{children:[(0,c.jsxs)(t.Row,{style:{justifyContent:'space-between'},children:[(0,c.jsx)(t.T,{weight:"semibold",style:{flex:1},children:n.title}),(0,c.jsx)(t.Badge,{kind:"gold",label:"Special"})]}),(0,c.jsx)(t.Muted,{children:n.body})]},n.id)):(0,c.jsx)(t.Muted,{children:"No specials on the board right now."}),(0,c.jsx)(t.H2,{children:"Member offers"}),x?y.length?y.map(n=>(0,c.jsxs)(t.Card,{children:[(0,c.jsxs)(t.Row,{style:{justifyContent:'space-between'},children:[(0,c.jsx)(t.T,{weight:"semibold",style:{flex:1},children:n.title}),(0,c.jsx)(t.Badge,{kind:"green",label:"Offer"})]}),(0,c.jsx)(t.Muted,{children:n.body}),n.until?(0,c.jsxs)(t.Muted,{children:["Until ",(0,l.niceDate)((0,l.parseYmd)(n.until))]}):null]},n.id)):(0,c.jsx)(t.Muted,{children:"No offers right now."}):(0,c.jsxs)(t.Banner,{kind:"info",children:["Turn on offers above to see ",y.length," member offer",1===y.length?'':'s',"."]}),(0,c.jsxs)(t.Muted,{children:["Offers are set by ",u.name,". Drinks promotions follow Scottish licensing rules. Demo: no notifications are sent."]})]})}},767,[785,12,790,796,802,795,797,6]);
chef-app/_expo/static/js/web/profile-6f51fd327a235cc35956151e575e911e.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 p}});var e=_r(d[0]);_r(d[1]);var r,l=_r(d[2]),s=(r=l)&&r.__esModule?r:{default:r},t=_r(d[3]),n=_r(d[4]),a=_r(d[5]),o=_r(d[6]),u=_r(d[7]),c=_r(d[8]),h=_r(d[9]);function p(){const r=(0,u.useCustomer)(),l=(0,u.useStore)((0,c.useShallow)(e=>e.orders.filter(r=>r.customerId===e.customer.id))),p=(0,u.useStore)((0,c.useShallow)(e=>e.bookings.filter(r=>r.customerId===e.customer.id))),b=(0,u.useStore)(e=>e.restaurants),y=e=>b.find(r=>r.id===e)?.name??e;return(0,h.jsxs)(t.Screen,{title:"Your account",subtitle:"One Cover Charge account for every restaurant",children:[(0,h.jsxs)(t.Card,{children:[(0,h.jsx)(t.Field,{label:"Name",value:r.name,onChangeText:e=>u.repo.customers.update({name:e})}),(0,h.jsx)(t.Field,{label:"Email",value:r.email,keyboardType:"email-address",onChangeText:e=>u.repo.customers.update({email:e})}),(0,h.jsx)(t.Field,{label:"Mobile",value:r.phone,keyboardType:"phone-pad",onChangeText:e=>u.repo.customers.update({phone:e})}),(0,h.jsxs)(t.Muted,{children:["Referral code: ",r.referralCode]})]}),(0,h.jsxs)(t.Card,{children:[(0,h.jsx)(t.H2,{children:"Allergies & severity"}),(0,h.jsx)(t.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,h.jsx)(t.Toggle,{label:"I consent to Cover Charge storing my allergy information (health data, UK GDPR)",value:r.allergyConsent,onChange:e=>u.repo.customers.update({allergyConsent:e})}),r.allergyConsent?null:(0,h.jsx)(t.Banner,{kind:"warn",children:"Without consent your allergies won\u2019t be stored \u2014 tell staff directly."}),n.ALLERGENS.map(e=>{const l=r.allergies.find(r=>r.allergen===e.id);return(0,h.jsxs)(s.default,{style:{gap:6,paddingVertical:6},children:[(0,h.jsxs)(t.Row,{style:{justifyContent:'space-between'},children:[(0,h.jsx)(t.T,{weight:l?'semibold':'regular',children:e.label}),l?(0,h.jsx)(t.Badge,{kind:"red",label:"Declared"}):null]}),(0,h.jsxs)(t.Row,{wrap:!0,gap:6,children:[(0,h.jsx)(t.Chip,{label:"None",selected:!l,onPress:()=>u.repo.customers.setAllergy(e.id,null),disabled:!r.allergyConsent&&!l}),n.SEVERITIES.map(s=>(0,h.jsx)(t.Chip,{label:s.label,selected:l?.severity===s.id,disabled:!r.allergyConsent,onPress:()=>u.repo.customers.setAllergy(e.id,s.id)},s.id))]})]},e.id)})]}),(0,h.jsxs)(t.Card,{children:[(0,h.jsx)(t.H2,{children:"Your orders"}),l.length?l.map(r=>(0,h.jsxs)(t.Row,{style:{justifyContent:'space-between'},children:[(0,h.jsxs)(t.T,{style:{flex:1},children:[r.ref," \xb7 ",y(r.restaurantId)," \xb7 ",'table'===r.type?`Table ${r.tableNo}`:'Takeaway']}),(0,h.jsx)(t.Button,{small:!0,kind:"secondary",label:`${r.status} \xb7 ${(0,a.gbp)(r.subtotal+r.tip)}`,onPress:()=>e.router.push(`/customer/order/${r.id}`)})]},r.id)):(0,h.jsx)(t.Muted,{children:"No orders yet."})]}),(0,h.jsxs)(t.Card,{children:[(0,h.jsx)(t.H2,{children:"Your bookings"}),p.length?p.map(e=>(0,h.jsxs)(t.T,{children:[e.ref," \xb7 ",y(e.restaurantId)," \xb7 ",(0,o.niceDate)((0,o.parseYmd)(e.date))," ",e.time," \xb7 ",e.partySize," people \xb7 ",e.status]},e.id)):(0,h.jsx)(t.Muted,{children:"No bookings yet."})]}),(0,h.jsx)(t.Muted,{children:"Account deletion and data export would live here (Apple 5.1.1(v); Google web deletion link)."})]})}},774,[785,12,109,790,791,793,795,796,842,6]);
chef-app/_expo/static/js/web/refer-0e20085c049a276476e1c515770e9648.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 c}});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]);function c(){const{rid:c}=(0,r.useLocalSearchParams)(),h=(0,t.useRestaurant)(c),f=(0,t.useCustomer)(),j=(0,l.useOwner)(r=>r.referral),x=(0,l.useOwner)(r=>r.referrals),[p,w]=(0,n.useState)(!1);if(!h)return(0,u.jsx)(s.Screen,{title:"Not found",children:(0,u.jsx)(s.T,{children:"Restaurant not found."})});const b=x.filter(r=>r.referrer===f.name);return(0,u.jsxs)(s.Screen,{title:"Bring a friend",subtitle:h.name,children:[j.active?null:(0,u.jsxs)(s.Banner,{kind:"info",children:[h.name," isn't running referrals right now."]}),(0,u.jsxs)(s.Card,{highlight:o.colours.gold,children:[(0,u.jsxs)(s.H2,{children:["You get: ",j.giverReward]}),(0,u.jsxs)(s.T,{children:["Your friend gets: ",j.friendReward]}),(0,u.jsx)(s.Muted,{children:"When your friend makes their first paid visit or order."}),(0,u.jsx)(s.T,{size:30,weight:"bold",colour:o.colours.gold,center:!0,children:f.referralCode}),(0,u.jsx)(s.Button,{label:"Share my code",disabled:!j.active,onPress:()=>w(!0)}),p?(0,u.jsx)(s.Muted,{center:!0,children:"Demo: in the real app this opens your phone's share sheet. Nothing is sent from here."}):null]}),(0,u.jsxs)(s.Card,{children:[(0,u.jsx)(s.H2,{children:"Your referrals"}),b.length?b.map(r=>(0,u.jsxs)(s.Row,{style:{justifyContent:'space-between'},children:[(0,u.jsx)(s.T,{style:{flex:1},children:r.friend}),(0,u.jsx)(s.Badge,{kind:'rewarded'===r.status?'green':'amber',label:r.status})]},r.id)):(0,u.jsx)(s.Muted,{children:"No referrals yet."})]}),(0,u.jsx)(s.Muted,{children:"One reward per new account, phone and card. Monthly cap applies. Rewards are on food, not drinks."})]})}},768,[785,12,790,796,802,797,6]);
chef-app/_expo/static/js/web/waitlist-a5a0b1c64dc88c053754737447f661af.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."})]})}},769,[785,12,790,795,839,840,796,797,6]);
chef-app/_expo/static/js/web/whatson-7bba1c8989b9be2fc455c8ddd8bbc99d.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 c}});var t=_r(_d[0]),l=_r(_d[1]),n=e(_r(_d[2])),s=e(_r(_d[3])),o=_r(_d[4]),r=_r(_d[5]),a=_r(_d[6]),d=_r(_d[7]),i=_r(_d[8]);const u=e=>'bank-holiday'===e.kind?(0,i.jsx)(o.Badge,{kind:"blue",label:"Scottish bank holiday"}):'school-holiday'===e.kind?(0,i.jsx)(o.Badge,{kind:"neutral",label:"School holiday"}):'occasion'===e.kind?(0,i.jsx)(o.Badge,{kind:"gold",label:"Key dining date"}):(0,i.jsx)(o.Badge,{kind:"green",label:"Restaurant event"});function c(){const{rid:e}=(0,t.useLocalSearchParams)(),c=(0,a.useRestaurant)(e),h=(0,a.useEvents)(e),x=(0,a.useNow)(6e4),[y,j]=(0,l.useState)(()=>new Date(x.getFullYear(),x.getMonth(),1)),[f,b]=(0,l.useState)(null);if(!c)return(0,i.jsx)(o.Screen,{title:"Not found",children:(0,i.jsx)(o.T,{children:"Restaurant not found."})});const k=(new Date(y).getDay()+6)%7,p=new Date(y.getFullYear(),y.getMonth()+1,0).getDate(),w=[...Array(k).fill(null),...Array.from({length:p},(e,t)=>new Date(y.getFullYear(),y.getMonth(),t+1))];for(;w.length%7;)w.push(null);const M=e=>h.filter(t=>t.date===e),D=h.filter(e=>e.date>=(0,r.ymd)(x)).sort((e,t)=>e.date.localeCompare(t.date)),v=f?M(f):D.slice(0,20);return(0,i.jsxs)(o.Screen,{title:"What\u2019s on",subtitle:`${c.name} \xb7 holidays, key dates and events`,children:[(0,i.jsxs)(o.Card,{children:[(0,i.jsxs)(o.Row,{style:{justifyContent:'space-between'},children:[(0,i.jsx)(o.Button,{small:!0,kind:"ghost",label:"\u2039 Prev",onPress:()=>j(new Date(y.getFullYear(),y.getMonth()-1,1))}),(0,i.jsxs)(o.H2,{children:[(0,r.monthLong)(y.getMonth())," ",y.getFullYear()]}),(0,i.jsx)(o.Button,{small:!0,kind:"ghost",label:"Next \u203a",onPress:()=>j(new Date(y.getFullYear(),y.getMonth()+1,1))})]}),(0,i.jsx)(s.default,{style:{flexDirection:'row'},children:['Mon','Tue','Wed','Thu','Fri','Sat','Sun'].map(e=>(0,i.jsx)(o.T,{size:13,colour:d.colours.muted,style:{flex:1,textAlign:'center'},children:e},e))}),Array.from({length:w.length/7}).map((e,t)=>(0,i.jsx)(s.default,{style:{flexDirection:'row'},children:w.slice(7*t,7*t+7).map((e,t)=>{if(!e)return(0,i.jsx)(s.default,{style:{flex:1,height:44}},t);const l=(0,r.ymd)(e),a=M(l),u=l===(0,r.ymd)(x);return(0,i.jsxs)(n.default,{accessibilityLabel:`${l}${a.length?`, ${a.length} events`:''}`,onPress:()=>b(f===l?null:l),style:{flex:1,height:44,alignItems:'center',justifyContent:'center',borderRadius:8,backgroundColor:f===l?d.colours.goldTint:'transparent',borderWidth:u?1:0,borderColor:d.colours.gold},children:[(0,i.jsx)(o.T,{size:15,colour:a.length?d.colours.text:d.colours.muted,weight:a.length?'semibold':'regular',children:e.getDate()}),(0,i.jsx)(o.Row,{gap:2,children:a.slice(0,3).map(e=>(0,i.jsx)(s.default,{style:{width:6,height:6,borderRadius:3,backgroundColor:'bank-holiday'===e.kind?d.colours.blue:'event'===e.kind?d.colours.green:d.colours.gold}},e.id))})]},t)})},t))]}),(0,i.jsx)(o.H2,{children:f?(0,r.niceDateYear)((0,r.parseYmd)(f)):'Coming up'}),0===v.length?(0,i.jsx)(o.Muted,{children:"Nothing on this day."}):v.map(e=>(0,i.jsxs)(o.Card,{children:[(0,i.jsxs)(o.Row,{style:{justifyContent:'space-between'},children:[(0,i.jsx)(o.T,{weight:"semibold",style:{flex:1},children:e.title}),u(e)]}),(0,i.jsxs)(o.Muted,{children:[(0,r.niceDateYear)((0,r.parseYmd)(e.date)),e.source?` \xb7 source: ${e.source}`:'']}),(0,i.jsx)(o.T,{size:15,children:e.description}),e.example?(0,i.jsx)(o.Badge,{kind:"amber",label:"EXAMPLE EVENT"}):null,e.date>=(0,r.ymd)(x)?(0,i.jsx)(o.Button,{small:!0,kind:"secondary",label:"Book for this date",onPress:()=>t.router.push({pathname:'/customer/[rid]/book',params:{rid:c.id,date:e.date}})}):null]},e.id)),(0,i.jsx)(o.Muted,{children:"Bank holidays from gov.uk (Scotland division). Easter Monday is not a Scottish bank holiday; local council holidays vary."})]})}},770,[785,12,245,109,790,795,796,797,6]);
chef-app/apple-touch-icon.png ADDED
chef-app/assets/assets/brand/anchorage-hero.0450b828e4f9c1f4456240096598f6f5.png ADDED

Git LFS Details

  • SHA256: cc3dd9b8a359ba6c3f28d625c27cc6a01a46233311c2a5f5c8aaf09e91be8239
  • Pointer size: 131 Bytes
  • Size of remote file: 358 kB
chef-app/assets/assets/brand/anchorage.fea5ce2f6fd18bf2950aa21c0980ed8e.png ADDED

Git LFS Details

  • SHA256: f029f7a7153fc60b56a630c266c0b5eccb93e0b99bbf651cff6d5fc9f9844627
  • Pointer size: 131 Bytes
  • Size of remote file: 120 kB
chef-app/assets/assets/brand/brae.8de9e89ac30966c6669de990370d8e40.png ADDED
chef-app/assets/assets/brand/saltmarsh.84acbc30d810d7a1cd3bbeb7b62651e8.png ADDED
chef-app/assets/node_modules/@expo-google-fonts/poppins/400Regular/Poppins_400Regular.093ee89be9ede30383f39a899c485a82.ttf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:707fdc5c8bab57a90061c6a8ed7b70d5ffb82fc810e994e79f90bace890c255a
3
+ size 158240