create-heresay 0.2.11 → 0.2.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-heresay",
3
- "version": "0.2.11",
3
+ "version": "0.2.13",
4
4
  "description": "Set up your own Heresay: in-app feedback that every report gets a hearing. Creates a Firebase project in your Google account and deploys the dashboard, API and SDK to it.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/release/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.11
1
+ 0.2.13
@@ -1,3 +1,3 @@
1
1
  /** The Heresay release. Bumped by the release script; the CLI and /v1/health report it. */
2
- export const VERSION = '0.2.11';
2
+ export const VERSION = '0.2.13';
3
3
  //# sourceMappingURL=version.js.map
@@ -12,6 +12,9 @@
12
12
  </head>
13
13
  <body>
14
14
 
15
+ <!-- Until sign-in state is known -->
16
+ <div id="boot" class="loading boot" role="status" aria-label="Loading"><img src="/loader.svg" alt=""></div>
17
+
15
18
  <!-- Signed out -->
16
19
  <div id="gate" class="gate" hidden>
17
20
  <img src="/mark.svg" alt="" width="64" height="64">
@@ -132,6 +132,12 @@ a.platform:hover { border-color:var(--acc); box-shadow:0 0 0 3px var(--mist); }
132
132
  .wait.ok .btn { margin-left:auto; }
133
133
  @keyframes pulse { 0%, 100% { opacity:.25; transform:scale(.8); } 50% { opacity:1; transform:scale(1); } }
134
134
  @media (prefers-reduced-motion: reduce) { .wait::before { animation:none; } }
135
+ /* loading: the Glance mark, faded in late so quick loads never flash it */
136
+ .loading { display:grid; place-items:center; padding:12vh 0; animation:loading-in .2s .3s both; }
137
+ .loading img { width:56px; height:56px; }
138
+ .loading.boot { padding-top:30vh; }
139
+ .loading:not(.boot):not(:only-child) { display:none; }
140
+ @keyframes loading-in { from { opacity:0; } }
135
141
 
136
142
  /* reports */
137
143
  .filters { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:14px; }
@@ -298,9 +304,19 @@ a.platform:hover { border-color:var(--acc); box-shadow:0 0 0 3px var(--mist); }
298
304
  .am-foot strong, .am-sent strong { color:#fff; padding:6px 14px; border-radius:8px; font-size:12.5px; opacity:.55; }
299
305
  .am-sent { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; text-align:center; }
300
306
  .am-sent b { font-size:17px; } .am-sent p { margin:0; max-width:240px; } .am-sent div { display:flex; gap:8px; margin-top:6px; } .am-sent strong { opacity:1; }
301
- .am-alert { position:absolute; z-index:4; left:50%; top:50%; transform:translate(-50%, -50%); width:250px; padding:18px 16px 12px; border-radius:22px; background:var(--card); color:var(--fg); box-shadow:0 20px 40px rgb(0 0 0 / .25); }
302
- .am-alert b { display:block; font-size:15px; margin-bottom:6px; } .am-alert p { margin:0 0 8px; color:var(--mute); font-size:12.5px; }
303
- .am-alert div { display:flex; gap:8px; margin-top:12px; } .am-alert div span { flex:1; text-align:center; padding:8px; border-radius:999px; background:var(--fill); font-weight:600; }
307
+ .am-intro { position:absolute; z-index:4; left:8px; right:8px; bottom:8px; min-height:44%; max-height:calc(100% - 60px); display:flex; flex-direction:column; align-items:stretch; gap:8px; padding:20px 20px 4px; border-radius:30px; background:var(--bg); color:var(--fg); box-shadow:0 -4px 30px rgb(0 0 0 / .12); }
308
+ .am-intro-text { flex:1; padding:10px 0 12px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; text-align:center; }
309
+ .am-intro-text b { font-size:17px; font-weight:700; } .am-intro-text p { margin:0; color:var(--mute); font-size:12.5px; }
310
+ .am-badge { width:44px; height:44px; border-radius:50%; display:grid; place-items:center; margin-bottom:4px; }
311
+ .am-intro > strong { color:#fff; text-align:center; padding:11px; border-radius:999px; font-size:14px; }
312
+ .am-intro > u { text-decoration:none; text-align:center; font-weight:600; font-size:13px; padding:2px; }
313
+ .am-intro.mac { left:50%; right:auto; top:50%; bottom:auto; min-height:0; max-height:none; transform:translate(-50%, -50%); width:330px; gap:0; padding:0; border-radius:14px; background:var(--card); border:1px solid var(--line); box-shadow:0 20px 50px rgb(0 0 0 / .3); }
314
+ .am-intro-bar { padding:9px 10px 0; } .am-intro-bar i { display:block; width:11px; height:11px; border-radius:50%; background:#ff5f57; }
315
+ .am-intro.mac .am-intro-text { padding:10px 26px 18px; }
316
+ .am-intro-foot { display:flex; align-items:center; gap:8px; padding:0 14px 12px; }
317
+ .am-intro-foot .am-powered { flex:1; justify-content:flex-start; padding:0; }
318
+ .am-intro-foot u { text-decoration:none; padding:5px 12px; border-radius:7px; background:var(--fill); border:1px solid var(--line); font-size:12px; }
319
+ .am-intro-foot strong { color:#fff; padding:5px 12px; border-radius:7px; font-size:12px; }
304
320
  .am-mac { width:100%; height:100%; display:flex; flex-direction:column; align-items:center; padding:0 0 24px; }
305
321
  .am-menubar { align-self:stretch; display:flex; gap:16px; align-items:center; padding:4px 14px; background:rgb(246 246 246 / .95); border-bottom:1px solid #ddd; font-size:13px; color:#111; }
306
322
  .am-menubar b:first-child { width:12px; height:14px; background:#111; border-radius:3px; } .am-menubar span.on { background:#2d6cdf; color:#fff; border-radius:4px; padding:0 6px; }
@@ -42,7 +42,12 @@
42
42
  }
43
43
 
44
44
  function show(which) {
45
- ['gate', 'blocked', 'app'].forEach(function (id) { $(id).hidden = id !== which; });
45
+ ['boot', 'gate', 'blocked', 'app'].forEach(function (id) { $(id).hidden = id !== which; });
46
+ }
47
+
48
+ /** The Glance loader. It shows only while it is alone in its box, so a view's first content hides it. */
49
+ function loading() {
50
+ return el('div', { class: 'loading', role: 'status', 'aria-label': 'Loading' }, [el('img', { src: '/loader.svg', alt: '' })]);
46
51
  }
47
52
 
48
53
  function copyButton(getText, label) {
@@ -199,6 +204,7 @@
199
204
  });
200
205
  var view = $('view');
201
206
  view.textContent = '';
207
+ view.appendChild(loading());
202
208
  view.classList.remove('wide');
203
209
  if (parts[0] === 'team') return teamView(view);
204
210
  if (parts[0] === 'connect') return connectView(view, query);
@@ -760,32 +766,32 @@
760
766
  en: { report: 'Report', send: 'Send', sendFeedback: 'Send feedback', straight: 'Straight to the {app} team', tabs: ['Report', 'Your reports', 'Preferences'],
761
767
  what: 'What is it?', happened: 'What happened?', ph: 'What happened, or what would you change?', attached: 'Sent with this screen and the app version.',
762
768
  types: [['Broken', 'Something doesn’t work'], ['Confusing', 'I couldn’t tell how'], ['Could be better', 'It works, and could be better'], ['Idea', 'Something that isn’t there yet']],
763
- powered: 'Powered by Heresay', introTitle: 'Something not right? Tell the team.',
764
- introBody: '{reach} to tell the team what’s broken, confusing or could be better. A person reads every report, and you’ll see what happens to yours.',
769
+ powered: 'Powered by Heresay', introTitle: 'Help make this app better',
770
+ introBody: '{reach} to share an idea or tell the team what you’d change. A real person reads every report, and you’ll see what happens to yours.',
765
771
  reachTap: 'Tap {label} in the corner any time', reachClick: 'Click {label} any time', reachMenu: 'Choose Help › Report a Problem… (⌥⌘R) any time', reachUse: 'Use {label} any time',
766
772
  tryIt: 'Try it', gotIt: 'Got it', cancel: 'Cancel', sentTitle: 'Sent. Thank you.', sentBody: 'A person on the team reads every report. You’ll see what happens to it under Your reports.',
767
773
  another: 'Send another', see: 'See your reports', menu: 'Report a Problem…' },
768
774
  fr: { report: 'Signaler', send: 'Envoyer', sendFeedback: 'Envoyer un retour', straight: 'Directement à l’équipe {app}', tabs: ['Signaler', 'Vos signalements', 'Préférences'],
769
775
  what: 'De quoi s’agit-il ?', happened: 'Que s’est-il passé ?', ph: 'Que s’est-il passé, ou que changeriez-vous ?', attached: 'Envoyé avec cet écran et la version de l’app.',
770
776
  types: [['Cassé', 'Quelque chose ne marche pas'], ['Déroutant', 'Je ne voyais pas comment faire'], ['Pourrait être mieux', 'Ça marche, mais ça pourrait être mieux'], ['Idée', 'Quelque chose qui n’existe pas encore']],
771
- powered: 'Propulsé par Heresay', introTitle: 'Un souci ? Dites-le à l’équipe.',
772
- introBody: '{reach} pour dire à l’équipe ce qui ne marche pas, ce qui est déroutant ou ce qui pourrait être mieux. Une personne lit chaque signalement, et vous verrez ce qu’il devient.',
777
+ powered: 'Propulsé par Heresay', introTitle: 'Aidez à améliorer cette app',
778
+ introBody: '{reach} pour partager une idée ou dire à l’équipe ce que vous changeriez. Une vraie personne lit chaque signalement, et vous verrez ce qu’il devient.',
773
779
  reachTap: 'Touchez {label} dans le coin à tout moment', reachClick: 'Cliquez sur {label} à tout moment', reachMenu: 'Choisissez Aide › Signaler un problème… (⌥⌘R) à tout moment', reachUse: 'Utilisez {label} à tout moment',
774
780
  tryIt: 'Essayer', gotIt: 'Compris', cancel: 'Annuler', sentTitle: 'Envoyé. Merci.', sentBody: 'Une personne de l’équipe lit chaque signalement. Vous verrez ce qu’il devient dans Vos signalements.',
775
781
  another: 'En envoyer un autre', see: 'Voir vos signalements', menu: 'Signaler un problème…' },
776
782
  ta: { report: 'தெரிவி', send: 'அனுப்பு', sendFeedback: 'கருத்து அனுப்பு', straight: 'நேராக {app} குழுவுக்கு', tabs: ['தெரிவி', 'உங்கள் புகார்கள்', 'விருப்பங்கள்'],
777
783
  what: 'இது என்ன வகை?', happened: 'என்ன நடந்தது?', ph: 'என்ன நடந்தது, அல்லது எதை மாற்ற விரும்புகிறீர்கள்?', attached: 'இந்தத் திரை மற்றும் ஆப் பதிப்புடன் அனுப்பப்படும்.',
778
784
  types: [['வேலை செய்யவில்லை', 'ஏதோ ஒன்று சரியாக இயங்கவில்லை'], ['குழப்பமாக உள்ளது', 'எப்படிச் செய்வது என்று புரியவில்லை'], ['இன்னும் சிறப்பாக்கலாம்', 'வேலை செய்கிறது, ஆனால் மேம்படுத்தலாம்'], ['யோசனை', 'இன்னும் இல்லாத ஒன்று']],
779
- powered: 'Heresay மூலம் இயங்குகிறது', introTitle: 'ஏதாவது சரியில்லையா? குழுவிடம் சொல்லுங்கள்.',
780
- introBody: 'எது வேலை செய்யவில்லை, எது குழப்பமாக உள்ளது, எதை மேம்படுத்தலாம் என்று குழுவிடம் சொல்ல, {reach}. ஒவ்வொரு புகாரையும் ஒருவர் படிக்கிறார்; உங்களுடையதற்கு என்ன ஆனது என்பதைப் பார்க்கலாம்.',
785
+ powered: 'Heresay மூலம் இயங்குகிறது', introTitle: 'இந்த ஆப்பை இன்னும் சிறப்பாக்க உதவுங்கள்',
786
+ introBody: 'ஒரு யோசனையைப் பகிர அல்லது நீங்கள் எதை மாற்ற விரும்புகிறீர்கள் என்று குழுவிடம் சொல்ல, {reach}. ஒவ்வொரு கருத்தையும் ஒருவர் படிக்கிறார்; உங்களுடையதற்கு என்ன ஆனது என்பதைப் பார்க்கலாம்.',
781
787
  reachTap: 'எப்போது வேண்டுமானாலும் மூலையில் உள்ள {label} ஐத் தட்டுங்கள்', reachClick: 'எப்போது வேண்டுமானாலும் {label} ஐக் கிளிக் செய்யுங்கள்', reachMenu: 'எப்போது வேண்டுமானாலும் Help › சிக்கலைத் தெரிவி… (⌥⌘R) என்பதைத் தேர்ந்தெடுங்கள்', reachUse: 'எப்போது வேண்டுமானாலும் {label} ஐப் பயன்படுத்துங்கள்',
782
788
  tryIt: 'முயன்று பாருங்கள்', gotIt: 'சரி', cancel: 'ரத்துசெய்', sentTitle: 'அனுப்பப்பட்டது. நன்றி.', sentBody: 'குழுவில் ஒருவர் ஒவ்வொரு புகாரையும் படிக்கிறார். அதற்கு என்ன ஆனது என்பதை “உங்கள் புகார்கள்” பகுதியில் பார்க்கலாம்.',
783
789
  another: 'இன்னொன்று அனுப்பு', see: 'உங்கள் புகார்களைப் பார்', menu: 'சிக்கலைத் தெரிவி…' },
784
790
  hi: { report: 'रिपोर्ट करें', send: 'भेजें', sendFeedback: 'फ़ीडबैक भेजें', straight: 'सीधे {app} टीम को', tabs: ['रिपोर्ट', 'आपकी रिपोर्ट', 'प्राथमिकताएँ'],
785
791
  what: 'यह क्या है?', happened: 'क्या हुआ?', ph: 'क्या हुआ, या आप क्या बदलना चाहेंगे?', attached: 'इस स्क्रीन और ऐप के वर्शन के साथ भेजा जाता है।',
786
792
  types: [['टूटा हुआ', 'कुछ काम नहीं कर रहा'], ['उलझन भरा', 'समझ नहीं आया कि कैसे करें'], ['बेहतर हो सकता है', 'काम करता है, पर बेहतर हो सकता है'], ['सुझाव', 'कुछ ऐसा जो अभी नहीं है']],
787
- powered: 'Heresay द्वारा संचालित', introTitle: 'कुछ ठीक नहीं लग रहा? टीम को बताइए।',
788
- introBody: 'टीम को यह बताने के लिए कि क्या टूटा है, क्या उलझन भरा है या क्या बेहतर हो सकता है, {reach}। हर रिपोर्ट कोई इंसान पढ़ता है, और आपकी रिपोर्ट का क्या हुआ, यह आप देखेंगे।',
793
+ powered: 'Heresay द्वारा संचालित', introTitle: 'इस ऐप को और बेहतर बनाने में मदद करें',
794
+ introBody: 'कोई आइडिया बताने या टीम को यह बताने के लिए कि आप क्या बदलना चाहेंगे, {reach}। हर रिपोर्ट कोई इंसान पढ़ता है, और आपकी रिपोर्ट का क्या हुआ, यह आप देखेंगे।',
789
795
  reachTap: 'कभी भी कोने में {label} पर टैप करें', reachClick: 'कभी भी {label} पर क्लिक करें', reachMenu: 'कभी भी Help › समस्या की रिपोर्ट करें… (⌥⌘R) चुनें', reachUse: 'कभी भी {label} का इस्तेमाल करें',
790
796
  tryIt: 'आज़माएँ', gotIt: 'ठीक है', cancel: 'रद्द करें', sentTitle: 'भेज दिया गया। धन्यवाद।', sentBody: 'टीम का कोई व्यक्ति हर रिपोर्ट पढ़ता है। इसका क्या हुआ, यह आप “आपकी रिपोर्ट” में देखेंगे।',
791
797
  another: 'एक और भेजें', see: 'अपनी रिपोर्ट देखें', menu: 'समस्या की रिपोर्ट करें…' },
@@ -838,9 +844,14 @@
838
844
  ? '<div class="am-dim"></div><div class="am-sheet ' + (mac ? 'mac ' : '') + (sheetSize || 'regular') + '">' + head + (show === 'sent' ? sent : form) + '</div>' : '';
839
845
  var reach = mac ? (cfg.entry !== 'none' ? w.reachMenu : fmt(hasButton ? w.reachClick : w.reachUse, { label: cfg.label ? '“' + cfg.label + '”' : w.report }))
840
846
  : fmt(hasButton ? w.reachTap : w.reachUse, { label: cfg.label ? '“' + cfg.label + '”' : w.report });
841
- var alert = show === 'intro'
842
- ? '<div class="am-dim"></div><div class="am-alert"><b>' + esc(w.introTitle) + '</b><p>' + esc(fmt(w.introBody, { reach: reach })) + '</p><p>' + esc(w.powered) + '</p>' +
843
- '<div><span>' + esc(w.gotIt) + '</span><span>' + esc(w.tryIt) + '</span></div></div>' : '';
847
+ // The introduction: a welcome sheet on iPhone, its own small window on the Mac.
848
+ var badge = '<span class="am-badge" style="background:' + markC + '24">' + mark(markC, 32) + '</span>';
849
+ var introText = badge + '<b>' + esc(w.introTitle) + '</b><p>' + esc(fmt(w.introBody, { reach: reach })) + '</p>';
850
+ var alert = show !== 'intro' ? '' : mac
851
+ ? '<div class="am-intro mac"><div class="am-intro-bar"><i></i></div><div class="am-intro-text">' + introText + '</div>' +
852
+ '<div class="am-intro-foot">' + powered + '<u>' + esc(w.gotIt) + '</u><strong style="background:' + acc + '">' + esc(w.tryIt) + '</strong></div></div>'
853
+ : '<div class="am-dim"></div><div class="am-intro"><div class="am-intro-text">' + introText + '</div>' +
854
+ '<strong style="background:' + acc + '">' + esc(w.tryIt) + '</strong><u style="color:' + acc + '">' + esc(w.gotIt) + '</u>' + powered + '</div>';
844
855
  var menu = mac && cfg.entry !== 'none' && show === 'button'
845
856
  ? '<div class="am-menu"><span>' + esc(w.menu) + '</span><kbd>⌥⌘R</kbd></div>' : '';
846
857
  var rows = ['Groceries', 'Trip to Ooty', 'Quarterly plan', 'Book list'].map(function (r) { return '<li>' + r + '</li>'; }).join('');
@@ -1170,7 +1181,7 @@
1170
1181
  var where = 'all';
1171
1182
  var filters = el('nav', { class: 'filters', 'aria-label': 'Filter' });
1172
1183
  var platformBar = el('nav', { class: 'filters platforms-filter', 'aria-label': 'Platform' });
1173
- var list = el('div', { class: 'reports' });
1184
+ var list = el('div', { class: 'reports' }, [loading()]);
1174
1185
  var empty = el('p', { class: 'empty' });
1175
1186
  var ctxs = {};
1176
1187
  var head = el('div', { class: 'head' });
@@ -183,7 +183,7 @@ connect-src ORIGIN;</code></pre>
183
183
  WindowGroup { ContentView().heresayReportButton() } <span class="k">// iOS: a Report button in the corner</span>
184
184
  }
185
185
  }</code></pre>
186
- <p>On macOS, use <code>ContentView().heresay()</code> and add <code>.commands { HeresayCommands() }</code> for <b>Help › Report a Problem…</b> (⌥⌘R). The same calls as the web SDK exist: <code>Heresay.identify(id:label:email:)</code>, <code>Heresay.presentPreferences()</code>, <code>Heresay.introduce()</code> (once per install, an alert saying where to find it; call it when the main screen appears), <code>Heresay.setScreen(_:)</code>, <code>Heresay.present(type:text:)</code>, <code>Heresay.onSent</code>, and <code>Heresay.send(_:text:)</code> for your own UI. How it looks is one <code>HeresayStyle</code> passed to <code>configure(…, style:)</code>, with the same choices as the web (corner, offset, text, pill or icon, size, fill, shadow, screens to hide it on, theme, typeface, English, French, Tamil or Hindi, report types, a thank-you line, sheet size, the Preferences tab). The defaults are recommended; the dashboard's <b>Design</b> page shows each choice and gives the Swift. The app version comes from the bundle. Native apps have no web origin to lock the key to; the rate limits still apply.</p>
186
+ <p>On macOS, use <code>ContentView().heresay()</code> and add <code>.commands { HeresayCommands() }</code> for <b>Help › Report a Problem…</b> (⌥⌘R). The same calls as the web SDK exist: <code>Heresay.identify(id:label:email:)</code>, <code>Heresay.presentPreferences()</code>, <code>Heresay.introduce()</code> (once per install, a welcome sheet on iOS or a small window on macOS saying where to find it; call it when the main screen appears), <code>Heresay.setScreen(_:)</code>, <code>Heresay.present(type:text:)</code>, <code>Heresay.onSent</code>, and <code>Heresay.send(_:text:)</code> for your own UI. How it looks is one <code>HeresayStyle</code> passed to <code>configure(…, style:)</code>, with the same choices as the web (corner, offset, text, pill or icon, size, fill, shadow, screens to hide it on, theme, typeface, English, French, Tamil or Hindi, report types, a thank-you line, sheet size, the Preferences tab). The defaults are recommended; the dashboard's <b>Design</b> page shows each choice and gives the Swift. The app version comes from the bundle. Native apps have no web origin to lock the key to; the rate limits still apply.</p>
187
187
 
188
188
  <h2 id="rest">Other platforms</h2>
189
189
  <p>Android, React Native and Flutter SDKs are on the way. Until then, any app can talk to the same API. Both calls take a JSON body.</p>
@@ -55,8 +55,8 @@ Then nobody is asked their name to send a report, and the team can reply to them
55
55
 
56
56
  On macOS the report window lives under Help, and on iOS it's a small button; people who have never
57
57
  seen it won't go looking. Call `Heresay.introduce()` once the person reaches the app's main
58
- screen: after sign-in and after any onboarding, never over a login or first-run screen. It shows a
59
- native alert, once per install, that says where to find it (Help › Report a Problem… (⌥⌘R) on
58
+ screen: after sign-in and after any onboarding, never over a login or first-run screen. Once per
59
+ install it shows a welcome sheet on iOS, or a small window of its own on macOS, that says where to find it (Help › Report a Problem… (⌥⌘R) on
60
60
  macOS, the Report button on iOS) and offers to open it. Later calls do nothing, so this is fine:
61
61
 
62
62
  ```swift
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200" role="img" aria-label="Loading"><style>svg *{transform-box:view-box}.body,.eyes,.all{transform-origin:100px 100px}@media (prefers-reduced-motion:reduce){*{animation:none!important}}.eyes{animation:look 3.2s ease-in-out infinite}@keyframes look{0%,12%{transform:translate(0,0)}22%,40%{transform:translate(-9px,1px)}50%,68%{transform:translate(9px,-1px)}78%,100%{transform:translate(0,0)}}.eye{animation:blink 3.2s infinite}@keyframes blink{0%,84%,92%,100%{transform:scaleY(1)}88%{transform:scaleY(.1)}}</style><path d="M174.00 100.00 L174.47 100.65 L174.93 101.31 L175.38 101.97 L175.82 102.65 L176.26 103.33 L176.68 104.02 L177.08 104.71 L177.47 105.42 L177.85 106.13 L178.20 106.84 L178.54 107.56 L178.86 108.29 L179.15 109.02 L179.43 109.75 L179.68 110.49 L179.90 111.23 L180.10 111.97 L180.28 112.72 L180.43 113.46 L180.55 114.20 L180.65 114.95 L180.71 115.69 L180.75 116.43 L180.76 117.17 L180.73 117.90 L180.68 118.63 L180.60 119.35 L180.49 120.07 L180.34 120.78 L180.17 121.48 L179.97 122.18 L179.74 122.86 L179.48 123.54 L179.19 124.21 L178.87 124.87 L178.52 125.51 L178.14 126.15 L177.74 126.77 L177.31 127.38 L176.86 127.98 L176.38 128.56 L175.88 129.13 L175.36 129.68 L174.81 130.23 L174.25 130.75 L173.66 131.27 L173.06 131.77 L172.44 132.25 L171.80 132.72 L171.15 133.18 L170.48 133.62 L169.80 134.04 L169.11 134.46 L168.41 134.86 L167.70 135.24 L166.99 135.62 L166.27 135.98 L165.54 136.33 L164.82 136.67 L164.09 137.00 L163.35 137.32 L162.62 137.63 L161.89 137.93 L161.17 138.22 L160.45 138.51 L159.73 138.79 L159.02 139.06 L158.31 139.33 L157.62 139.60 L156.93 139.86 L156.25 140.13 L155.59 140.39 L154.93 140.65 L154.29 140.91 L153.66 141.17 L153.04 141.44 L152.44 141.71 L151.85 141.99 L151.28 142.27 L150.72 142.56 L150.17 142.85 L149.64 143.15 L149.13 143.47 L148.63 143.79 L148.15 144.12 L147.68 144.46 L147.23 144.82 L146.79 145.19 L146.37 145.57 L145.96 145.96 L145.57 146.37 L145.19 146.79 L144.82 147.23 L144.46 147.68 L144.12 148.15 L143.79 148.63 L143.47 149.13 L143.15 149.64 L142.85 150.17 L142.56 150.72 L142.27 151.28 L141.99 151.85 L141.71 152.44 L141.44 153.04 L141.17 153.66 L140.91 154.29 L140.65 154.93 L140.39 155.59 L140.13 156.25 L139.86 156.93 L139.60 157.62 L139.33 158.31 L139.06 159.02 L138.79 159.73 L138.51 160.45 L138.22 161.17 L137.93 161.89 L137.63 162.62 L137.32 163.35 L137.00 164.09 L136.67 164.82 L136.33 165.54 L135.98 166.27 L135.62 166.99 L135.24 167.70 L134.86 168.41 L134.46 169.11 L134.04 169.80 L133.62 170.48 L133.18 171.15 L132.72 171.80 L132.25 172.44 L131.77 173.06 L131.27 173.66 L130.75 174.25 L130.23 174.81 L129.68 175.36 L129.13 175.88 L128.56 176.38 L127.98 176.86 L127.38 177.31 L126.77 177.74 L126.15 178.14 L125.51 178.52 L124.87 178.87 L124.21 179.19 L123.54 179.48 L122.86 179.74 L122.18 179.97 L121.48 180.17 L120.78 180.34 L120.07 180.49 L119.35 180.60 L118.63 180.68 L117.90 180.73 L117.17 180.76 L116.43 180.75 L115.69 180.71 L114.95 180.65 L114.20 180.55 L113.46 180.43 L112.72 180.28 L111.97 180.10 L111.23 179.90 L110.49 179.68 L109.75 179.43 L109.02 179.15 L108.29 178.86 L107.56 178.54 L106.84 178.20 L106.13 177.85 L105.42 177.47 L104.71 177.08 L104.02 176.68 L103.33 176.26 L102.65 175.82 L101.97 175.38 L101.31 174.93 L100.65 174.47 L100.00 174.00 L99.36 173.53 L98.72 173.05 L98.10 172.57 L97.48 172.08 L96.87 171.60 L96.27 171.12 L95.68 170.64 L95.09 170.17 L94.51 169.70 L93.94 169.24 L93.38 168.78 L92.82 168.33 L92.26 167.90 L91.72 167.47 L91.17 167.06 L90.63 166.66 L90.10 166.27 L89.56 165.90 L89.03 165.54 L88.50 165.20 L87.98 164.88 L87.45 164.57 L86.92 164.28 L86.39 164.01 L85.87 163.76 L85.33 163.53 L84.80 163.31 L84.26 163.12 L83.72 162.94 L83.18 162.79 L82.63 162.65 L82.07 162.53 L81.51 162.43 L80.94 162.35 L80.36 162.28 L79.78 162.24 L79.19 162.21 L78.58 162.19 L77.98 162.20 L77.36 162.21 L76.73 162.24 L76.09 162.29 L75.44 162.34 L74.78 162.41 L74.12 162.49 L73.44 162.57 L72.75 162.67 L72.05 162.77 L71.35 162.88 L70.63 162.99 L69.90 163.10 L69.17 163.22 L68.42 163.34 L67.67 163.46 L66.91 163.57 L66.14 163.69 L65.36 163.80 L64.58 163.90 L63.79 164.00 L63.00 164.09 L62.20 164.17 L61.40 164.24 L60.60 164.30 L59.79 164.34 L58.99 164.38 L58.18 164.39 L57.38 164.40 L56.57 164.38 L55.77 164.35 L54.97 164.30 L54.18 164.24 L53.39 164.15 L52.61 164.04 L51.84 163.91 L51.08 163.76 L50.32 163.58 L49.58 163.39 L48.85 163.17 L48.13 162.92 L47.42 162.66 L46.73 162.37 L46.06 162.05 L45.40 161.72 L44.76 161.35 L44.13 160.97 L43.53 160.56 L42.94 160.13 L42.38 159.67 L41.83 159.19 L41.31 158.69 L40.81 158.17 L40.33 157.62 L39.87 157.06 L39.44 156.47 L39.03 155.87 L38.65 155.24 L38.28 154.60 L37.95 153.94 L37.63 153.27 L37.34 152.58 L37.08 151.87 L36.83 151.15 L36.61 150.42 L36.42 149.68 L36.24 148.92 L36.09 148.16 L35.96 147.39 L35.85 146.61 L35.76 145.82 L35.70 145.03 L35.65 144.23 L35.62 143.43 L35.60 142.62 L35.61 141.82 L35.62 141.01 L35.66 140.21 L35.70 139.40 L35.76 138.60 L35.83 137.80 L35.91 137.00 L36.00 136.21 L36.10 135.42 L36.20 134.64 L36.31 133.86 L36.43 133.09 L36.54 132.33 L36.66 131.58 L36.78 130.83 L36.90 130.10 L37.01 129.37 L37.12 128.65 L37.23 127.95 L37.33 127.25 L37.43 126.56 L37.51 125.88 L37.59 125.22 L37.66 124.56 L37.71 123.91 L37.76 123.27 L37.79 122.64 L37.80 122.02 L37.81 121.42 L37.79 120.81 L37.76 120.22 L37.72 119.64 L37.65 119.06 L37.57 118.49 L37.47 117.93 L37.35 117.37 L37.21 116.82 L37.06 116.28 L36.88 115.74 L36.69 115.20 L36.47 114.67 L36.24 114.13 L35.99 113.61 L35.72 113.08 L35.43 112.55 L35.12 112.02 L34.80 111.50 L34.46 110.97 L34.10 110.44 L33.73 109.90 L33.34 109.37 L32.94 108.83 L32.53 108.28 L32.10 107.74 L31.67 107.18 L31.22 106.62 L30.76 106.06 L30.30 105.49 L29.83 104.91 L29.36 104.32 L28.88 103.73 L28.40 103.13 L27.92 102.52 L27.43 101.90 L26.95 101.28 L26.47 100.64 L26.00 100.00 L25.53 99.35 L25.07 98.69 L24.62 98.03 L24.18 97.35 L23.74 96.67 L23.32 95.98 L22.92 95.29 L22.53 94.58 L22.15 93.87 L21.80 93.16 L21.46 92.44 L21.14 91.71 L20.85 90.98 L20.57 90.25 L20.32 89.51 L20.10 88.77 L19.90 88.03 L19.72 87.28 L19.57 86.54 L19.45 85.80 L19.35 85.05 L19.29 84.31 L19.25 83.57 L19.24 82.83 L19.27 82.10 L19.32 81.37 L19.40 80.65 L19.51 79.93 L19.66 79.22 L19.83 78.52 L20.03 77.82 L20.26 77.14 L20.52 76.46 L20.81 75.79 L21.13 75.13 L21.48 74.49 L21.86 73.85 L22.26 73.23 L22.69 72.62 L23.14 72.02 L23.62 71.44 L24.12 70.87 L24.64 70.32 L25.19 69.77 L25.75 69.25 L26.34 68.73 L26.94 68.23 L27.56 67.75 L28.20 67.28 L28.85 66.82 L29.52 66.38 L30.20 65.96 L30.89 65.54 L31.59 65.14 L32.30 64.76 L33.01 64.38 L33.73 64.02 L34.46 63.67 L35.18 63.33 L35.91 63.00 L36.65 62.68 L37.38 62.37 L38.11 62.07 L38.83 61.78 L39.55 61.49 L40.27 61.21 L40.98 60.94 L41.69 60.67 L42.38 60.40 L43.07 60.14 L43.75 59.87 L44.41 59.61 L45.07 59.35 L45.71 59.09 L46.34 58.83 L46.96 58.56 L47.56 58.29 L48.15 58.01 L48.72 57.73 L49.28 57.44 L49.83 57.15 L50.36 56.85 L50.87 56.53 L51.37 56.21 L51.85 55.88 L52.32 55.54 L52.77 55.18 L53.21 54.81 L53.63 54.43 L54.04 54.04 L54.43 53.63 L54.81 53.21 L55.18 52.77 L55.54 52.32 L55.88 51.85 L56.21 51.37 L56.53 50.87 L56.85 50.36 L57.15 49.83 L57.44 49.28 L57.73 48.72 L58.01 48.15 L58.29 47.56 L58.56 46.96 L58.83 46.34 L59.09 45.71 L59.35 45.07 L59.61 44.41 L59.87 43.75 L60.14 43.07 L60.40 42.38 L60.67 41.69 L60.94 40.98 L61.21 40.27 L61.49 39.55 L61.78 38.83 L62.07 38.11 L62.37 37.38 L62.68 36.65 L63.00 35.91 L63.33 35.18 L63.67 34.46 L64.02 33.73 L64.38 33.01 L64.76 32.30 L65.14 31.59 L65.54 30.89 L65.96 30.20 L66.38 29.52 L66.82 28.85 L67.28 28.20 L67.75 27.56 L68.23 26.94 L68.73 26.34 L69.25 25.75 L69.77 25.19 L70.32 24.64 L70.87 24.12 L71.44 23.62 L72.02 23.14 L72.62 22.69 L73.23 22.26 L73.85 21.86 L74.49 21.48 L75.13 21.13 L75.79 20.81 L76.46 20.52 L77.14 20.26 L77.82 20.03 L78.52 19.83 L79.22 19.66 L79.93 19.51 L80.65 19.40 L81.37 19.32 L82.10 19.27 L82.83 19.24 L83.57 19.25 L84.31 19.29 L85.05 19.35 L85.80 19.45 L86.54 19.57 L87.28 19.72 L88.03 19.90 L88.77 20.10 L89.51 20.32 L90.25 20.57 L90.98 20.85 L91.71 21.14 L92.44 21.46 L93.16 21.80 L93.87 22.15 L94.58 22.53 L95.29 22.92 L95.98 23.32 L96.67 23.74 L97.35 24.18 L98.03 24.62 L98.69 25.07 L99.35 25.53 L100.00 26.00 L100.64 26.47 L101.28 26.95 L101.90 27.43 L102.52 27.92 L103.13 28.40 L103.73 28.88 L104.32 29.36 L104.91 29.83 L105.49 30.30 L106.06 30.76 L106.62 31.22 L107.18 31.67 L107.74 32.10 L108.28 32.53 L108.83 32.94 L109.37 33.34 L109.90 33.73 L110.44 34.10 L110.97 34.46 L111.50 34.80 L112.02 35.12 L112.55 35.43 L113.08 35.72 L113.61 35.99 L114.13 36.24 L114.67 36.47 L115.20 36.69 L115.74 36.88 L116.28 37.06 L116.82 37.21 L117.37 37.35 L117.93 37.47 L118.49 37.57 L119.06 37.65 L119.64 37.72 L120.22 37.76 L120.81 37.79 L121.42 37.81 L122.02 37.80 L122.64 37.79 L123.27 37.76 L123.91 37.71 L124.56 37.66 L125.22 37.59 L125.88 37.51 L126.56 37.43 L127.25 37.33 L127.95 37.23 L128.65 37.12 L129.37 37.01 L130.10 36.90 L130.83 36.78 L131.58 36.66 L132.33 36.54 L133.09 36.43 L133.86 36.31 L134.64 36.20 L135.42 36.10 L136.21 36.00 L137.00 35.91 L137.80 35.83 L138.60 35.76 L139.40 35.70 L140.21 35.66 L141.01 35.62 L141.82 35.61 L142.62 35.60 L143.43 35.62 L144.23 35.65 L145.03 35.70 L145.82 35.76 L146.61 35.85 L147.39 35.96 L148.16 36.09 L148.92 36.24 L149.68 36.42 L150.42 36.61 L151.15 36.83 L151.87 37.08 L152.58 37.34 L153.27 37.63 L153.94 37.95 L154.60 38.28 L155.24 38.65 L155.87 39.03 L156.47 39.44 L157.06 39.87 L157.62 40.33 L158.17 40.81 L158.69 41.31 L159.19 41.83 L159.67 42.38 L160.13 42.94 L160.56 43.53 L160.97 44.13 L161.35 44.76 L161.72 45.40 L162.05 46.06 L162.37 46.73 L162.66 47.42 L162.92 48.13 L163.17 48.85 L163.39 49.58 L163.58 50.32 L163.76 51.08 L163.91 51.84 L164.04 52.61 L164.15 53.39 L164.24 54.18 L164.30 54.97 L164.35 55.77 L164.38 56.57 L164.40 57.38 L164.39 58.18 L164.38 58.99 L164.34 59.79 L164.30 60.60 L164.24 61.40 L164.17 62.20 L164.09 63.00 L164.00 63.79 L163.90 64.58 L163.80 65.36 L163.69 66.14 L163.57 66.91 L163.46 67.67 L163.34 68.42 L163.22 69.17 L163.10 69.90 L162.99 70.63 L162.88 71.35 L162.77 72.05 L162.67 72.75 L162.57 73.44 L162.49 74.12 L162.41 74.78 L162.34 75.44 L162.29 76.09 L162.24 76.73 L162.21 77.36 L162.20 77.98 L162.19 78.58 L162.21 79.19 L162.24 79.78 L162.28 80.36 L162.35 80.94 L162.43 81.51 L162.53 82.07 L162.65 82.63 L162.79 83.18 L162.94 83.72 L163.12 84.26 L163.31 84.80 L163.53 85.33 L163.76 85.87 L164.01 86.39 L164.28 86.92 L164.57 87.45 L164.88 87.98 L165.20 88.50 L165.54 89.03 L165.90 89.56 L166.27 90.10 L166.66 90.63 L167.06 91.17 L167.47 91.72 L167.90 92.26 L168.33 92.82 L168.78 93.38 L169.24 93.94 L169.70 94.51 L170.17 95.09 L170.64 95.68 L171.12 96.27 L171.60 96.87 L172.08 97.48 L172.57 98.10 L173.05 98.72 L173.53 99.36Z" fill="#0b5e57"/><g class="eyes"><g class="eye e1" style="transform-origin:80px 106px"><path d="M-13 12 C-13 -8 -2 -24 17 -32 L20 -25 C8 -18 2 -9 3 -1 A13 13 0 1 1 -13 12 Z" fill="#ffffff" transform="translate(80 106) rotate(-24) scale(1.25)"/></g><g class="eye e2" style="transform-origin:124px 101px"><path d="M-13 12 C-13 -8 -2 -24 17 -32 L20 -25 C8 -18 2 -9 3 -1 A13 13 0 1 1 -13 12 Z" fill="#ffffff" transform="translate(124 101) rotate(-24) scale(1.25)"/></g></g></svg>
@@ -100,8 +100,8 @@
100
100
  clear: 'Clear all', save: 'Save',
101
101
  kept: 'Kept in this browser and sent only with reports you choose to send.',
102
102
  none: 'Nothing sent from this device yet.', why: 'Why: ',
103
- introAria: 'About the Report button', introTitle: 'Something not right? Tell the team.',
104
- introBody: 'Use {label} to say what is broken, confusing or could be better. A person reads every report, and you will see what happens to yours right here.',
103
+ introAria: 'About the Report button', introTitle: 'Help make this app better',
104
+ introBody: 'Use {label} any time to share an idea or tell the team what you would change. A real person reads every report, and you will see what happens to yours right here.',
105
105
  got: 'Got it', tryIt: 'Try it',
106
106
  sentTo: 'Sent to this app’s team', powered: 'Powered by Heresay',
107
107
  },
@@ -133,8 +133,8 @@
133
133
  clear: 'Tout effacer', save: 'Enregistrer',
134
134
  kept: 'Conservé dans ce navigateur, et envoyé seulement avec les signalements que vous envoyez.',
135
135
  none: 'Aucun signalement envoyé depuis cet appareil.', why: 'Pourquoi : ',
136
- introAria: 'À propos du bouton Signaler', introTitle: 'Un souci ? Dites-le à l’équipe.',
137
- introBody: 'Utilisez {label} pour dire ce qui ne marche pas, ce qui est déroutant ou ce qui pourrait être mieux. Une personne lit chaque signalement, et vous verrez ici ce qu’il devient.',
136
+ introAria: 'À propos du bouton Signaler', introTitle: 'Aidez à améliorer cette app',
137
+ introBody: 'Utilisez {label} à tout moment pour partager une idée ou dire à l’équipe ce que vous changeriez. Une vraie personne lit chaque signalement, et vous verrez ici ce qu’il devient.',
138
138
  got: 'Compris', tryIt: 'Essayer',
139
139
  sentTo: 'Envoyé à l’équipe de cette app', powered: 'Propulsé par Heresay',
140
140
  },
@@ -166,8 +166,8 @@
166
166
  clear: 'அனைத்தையும் அழி', save: 'சேமி',
167
167
  kept: 'இந்த உலாவியில் வைக்கப்படும்; நீங்கள் அனுப்பும் புகார்களுடன் மட்டுமே அனுப்பப்படும்.',
168
168
  none: 'இந்தச் சாதனத்திலிருந்து இன்னும் எதுவும் அனுப்பப்படவில்லை.', why: 'காரணம்: ',
169
- introAria: 'தெரிவி பொத்தான் பற்றி', introTitle: 'ஏதாவது சரியில்லையா? குழுவிடம் சொல்லுங்கள்.',
170
- introBody: 'எது வேலை செய்யவில்லை, எது குழப்பமாக உள்ளது, எதை மேம்படுத்தலாம் என்று சொல்ல {label} ஐப் பயன்படுத்துங்கள். ஒவ்வொரு புகாரையும் ஒருவர் படிக்கிறார்; உங்களுடையதற்கு என்ன ஆனது என்பதை இங்கேயே பார்க்கலாம்.',
169
+ introAria: 'தெரிவி பொத்தான் பற்றி', introTitle: 'இந்த ஆப்பை இன்னும் சிறப்பாக்க உதவுங்கள்',
170
+ introBody: 'ஒரு யோசனையைப் பகிர அல்லது நீங்கள் எதை மாற்ற விரும்புகிறீர்கள் என்று குழுவிடம் சொல்ல, எப்போது வேண்டுமானாலும் {label} ஐப் பயன்படுத்துங்கள். ஒவ்வொரு கருத்தையும் ஒருவர் படிக்கிறார்; உங்களுடையதற்கு என்ன ஆனது என்பதை இங்கேயே பார்க்கலாம்.',
171
171
  got: 'சரி', tryIt: 'முயன்று பாருங்கள்',
172
172
  sentTo: 'இந்த ஆப்பின் குழுவுக்கு அனுப்பப்படும்', powered: 'Heresay மூலம் இயங்குகிறது',
173
173
  },
@@ -199,8 +199,8 @@
199
199
  clear: 'सब हटाएँ', save: 'सेव करें',
200
200
  kept: 'इसी ब्राउज़र में रखा जाता है, और सिर्फ़ आपकी भेजी रिपोर्ट के साथ जाता है।',
201
201
  none: 'इस डिवाइस से अभी तक कुछ नहीं भेजा गया।', why: 'वजह: ',
202
- introAria: 'रिपोर्ट बटन के बारे में', introTitle: 'कुछ ठीक नहीं लग रहा? टीम को बताइए।',
203
- introBody: 'क्या टूटा है, क्या उलझन भरा है या क्या बेहतर हो सकता है, यह बताने के लिए {label} का इस्तेमाल करें। हर रिपोर्ट कोई इंसान पढ़ता है, और आपकी रिपोर्ट का क्या हुआ, यह आप यहीं देखेंगे।',
202
+ introAria: 'रिपोर्ट बटन के बारे में', introTitle: 'इस ऐप को और बेहतर बनाने में मदद करें',
203
+ introBody: 'कोई आइडिया बताने या टीम को यह बताने के लिए कि आप क्या बदलना चाहेंगे, कभी भी {label} का इस्तेमाल करें। हर रिपोर्ट कोई इंसान पढ़ता है, और आपकी रिपोर्ट का क्या हुआ, यह आप यहीं देखेंगे।',
204
204
  got: 'ठीक है', tryIt: 'आज़माएँ',
205
205
  sentTo: 'इस ऐप की टीम को भेजा जाता है', powered: 'Heresay द्वारा संचालित',
206
206
  },
@@ -522,6 +522,12 @@
522
522
  '.small{font-size:12px;color:var(--fb-mute)}',
523
523
  '.send{padding:9px 16px;border:0;border-radius:10px;background:var(--fb-acc);color:var(--fb-acc-fg);font-weight:600;cursor:pointer}',
524
524
  '.send[disabled]{opacity:.5;cursor:default}',
525
+ '.send.busy{opacity:1;display:inline-flex;align-items:center;gap:7px}.send .mark{color:var(--fb-acc-fg)}.send .eye{fill:var(--fb-acc)}',
526
+ // The loader: the mark's eyes look left, look right, blink (brand/svg/loaders/heresay-loader-glance.svg, faster).
527
+ '.glance svg *{transform-box:view-box}.glance .eyes{animation:fb-look 1.6s ease-in-out infinite}.glance .e{animation:fb-blink 1.6s infinite}',
528
+ '@keyframes fb-look{0%,10%{transform:none}25%,40%{transform:translate(-9px,1px)}55%,70%{transform:translate(9px,-1px)}85%,100%{transform:none}}',
529
+ '@keyframes fb-blink{0%,88%,96%,100%{transform:none}92%{transform:scaleY(.1)}}',
530
+ '@media (prefers-reduced-motion:reduce){.glance .eyes,.glance .e{animation:none}}',
525
531
  '.err{color:var(--fb-bad);font-size:13px;margin-top:8px}',
526
532
  '.thanks{padding:10px 12px;margin:0 0 8px;border-radius:10px;background:var(--fb-line)}',
527
533
  '.item{border-top:1px solid var(--fb-line);padding:10px 0}',
@@ -583,11 +589,12 @@
583
589
  return n;
584
590
  }
585
591
 
586
- /** The Heresay mark, compact: a soft wave with quote-mark eyes. Drawn from a constant string. */
587
- function markEl() {
592
+ /** The Heresay mark, compact: a soft wave with quote-mark eyes. Drawn from a constant string.
593
+ * `glance` makes it the loader: the eyes look left, look right, blink. */
594
+ function markEl(glance) {
588
595
  var s = document.createElement('span');
589
- s.className = 'mark';
590
- s.innerHTML = '<svg viewBox="0 0 200 200" width="18" height="18" aria-hidden="true"><path d="M174 100L177 105L180 110L181 116L180 121L178 126L174 131L169 134L164 137L159 139L154 141L149 143L146 146L143 149L141 154L139 159L137 164L134 169L131 174L126 178L121 180L116 181L110 180L105 177L100 174L95 170L91 167L87 164L83 163L79 162L74 162L69 163L63 164L57 164L51 164L46 162L41 159L38 154L36 149L36 143L36 137L37 131L38 126L38 121L37 117L36 113L33 109L30 105L26 100L23 95L20 90L19 84L20 79L22 74L26 69L31 66L36 63L41 61L46 59L51 57L54 54L57 51L59 46L61 41L63 36L66 31L69 26L74 22L79 20L84 19L90 20L95 23L100 26L105 30L109 33L113 36L117 37L121 38L126 38L131 37L137 36L143 36L149 36L154 38L159 41L162 46L164 51L164 57L164 63L163 69L162 74L162 79L163 83L164 87L167 91L170 95Z" fill="currentColor"/><path class="eye" d="M-13 12 C-13 -8 -2 -24 17 -32 L20 -25 C8 -18 2 -9 3 -1 A13 13 0 1 1 -13 12 Z" transform="translate(80 106) rotate(-24) scale(1.25)"/><path class="eye" d="M-13 12 C-13 -8 -2 -24 17 -32 L20 -25 C8 -18 2 -9 3 -1 A13 13 0 1 1 -13 12 Z" transform="translate(124 101) rotate(-24) scale(1.25)"/></svg>';
596
+ s.className = glance ? 'mark glance' : 'mark';
597
+ s.innerHTML = '<svg viewBox="0 0 200 200" width="18" height="18" aria-hidden="true"><path d="M174 100L177 105L180 110L181 116L180 121L178 126L174 131L169 134L164 137L159 139L154 141L149 143L146 146L143 149L141 154L139 159L137 164L134 169L131 174L126 178L121 180L116 181L110 180L105 177L100 174L95 170L91 167L87 164L83 163L79 162L74 162L69 163L63 164L57 164L51 164L46 162L41 159L38 154L36 149L36 143L36 137L37 131L38 126L38 121L37 117L36 113L33 109L30 105L26 100L23 95L20 90L19 84L20 79L22 74L26 69L31 66L36 63L41 61L46 59L51 57L54 54L57 51L59 46L61 41L63 36L66 31L69 26L74 22L79 20L84 19L90 20L95 23L100 26L105 30L109 33L113 36L117 37L121 38L126 38L131 37L137 36L143 36L149 36L154 38L159 41L162 46L164 51L164 57L164 63L163 69L162 74L162 79L163 83L164 87L167 91L170 95Z" fill="currentColor"/><g class="eyes"><g class="e" style="transform-origin:80px 106px"><path class="eye" d="M-13 12 C-13 -8 -2 -24 17 -32 L20 -25 C8 -18 2 -9 3 -1 A13 13 0 1 1 -13 12 Z" transform="translate(80 106) rotate(-24) scale(1.25)"/></g><g class="e" style="transform-origin:124px 101px"><path class="eye" d="M-13 12 C-13 -8 -2 -24 17 -32 L20 -25 C8 -18 2 -9 3 -1 A13 13 0 1 1 -13 12 Z" transform="translate(124 101) rotate(-24) scale(1.25)"/></g></g></svg>';
591
598
  return s;
592
599
  }
593
600
 
@@ -717,7 +724,8 @@
717
724
  if (!state.type) { err.textContent = S.pickType; return; }
718
725
  if (!text.value.trim()) { err.textContent = S.sayWhat; text.focus(); return; }
719
726
  sendBtn.disabled = true;
720
- sendBtn.textContent = S.sending;
727
+ sendBtn.className = 'send busy';
728
+ sendBtn.replaceChildren(markEl(true), document.createTextNode(S.sending));
721
729
  var type = state.type;
722
730
  send(type, text.value.trim()).then(function (b) {
723
731
  state.type = null;
@@ -731,6 +739,7 @@
731
739
  }).catch(function (x) {
732
740
  err.textContent = x.message || S.cantSend;
733
741
  sendBtn.disabled = false;
742
+ sendBtn.className = 'send';
734
743
  sendBtn.textContent = S.send;
735
744
  });
736
745
  },