@sharadox/sharadox-web-library 0.19.0 → 0.21.0
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/README.md +5 -4
- package/distribution/action/send-contact/index.d.ts +3 -1
- package/distribution/action/send-contact/index.d.ts.map +1 -1
- package/distribution/action/send-contact/index.js +7 -1
- package/distribution/action/send-contact/index.js.map +1 -1
- package/distribution/component/capability/index.d.ts +1 -1
- package/distribution/component/capability/index.d.ts.map +1 -1
- package/distribution/component/capability/index.js +1 -1
- package/distribution/component/capability/index.js.map +1 -1
- package/distribution/component/capability/index.module.css +1 -1
- package/distribution/component/capability/index.module.scss +1 -1
- package/distribution/component/contact/form/chip/index.d.ts +4 -0
- package/distribution/component/contact/form/chip/index.d.ts.map +1 -0
- package/distribution/component/contact/form/chip/index.js +7 -0
- package/distribution/component/contact/form/chip/index.js.map +1 -0
- package/distribution/component/contact/form/chip/index.module.css +1 -0
- package/distribution/component/contact/form/chip/index.module.scss +59 -0
- package/distribution/component/contact/form/chip/type.d.ts +7 -0
- package/distribution/component/contact/form/chip/type.d.ts.map +1 -0
- package/distribution/component/contact/form/chip/type.js.map +1 -0
- package/distribution/component/contact/form/index.d.ts +5 -1
- package/distribution/component/contact/form/index.d.ts.map +1 -1
- package/distribution/component/contact/form/index.js +40 -5
- package/distribution/component/contact/form/index.js.map +1 -1
- package/distribution/component/contact/form/index.module.css +1 -1
- package/distribution/component/contact/form/index.module.scss +35 -60
- package/distribution/component/footer/index.d.ts +2 -3
- package/distribution/component/footer/index.d.ts.map +1 -1
- package/distribution/component/footer/index.js +4 -4
- package/distribution/component/footer/index.js.map +1 -1
- package/distribution/component/footer/index.module.css +1 -1
- package/distribution/component/footer/index.module.scss +75 -89
- package/distribution/component/process/index.d.ts.map +1 -1
- package/distribution/component/process/index.js +3 -2
- package/distribution/component/process/index.js.map +1 -1
- package/distribution/component/process/index.module.css +1 -1
- package/distribution/component/process/index.module.scss +4 -2
- package/distribution/component/service-card/index.d.ts +11 -0
- package/distribution/component/service-card/index.d.ts.map +1 -0
- package/distribution/component/service-card/index.js +24 -0
- package/distribution/component/service-card/index.js.map +1 -0
- package/distribution/component/service-card/index.module.css +1 -0
- package/distribution/component/service-card/index.module.scss +113 -0
- package/distribution/component/service-card/type.d.ts +10 -0
- package/distribution/component/service-card/type.d.ts.map +1 -0
- package/distribution/component/service-card/type.js.map +1 -0
- package/distribution/component/service-index/index.d.ts +1 -1
- package/distribution/component/service-index/index.d.ts.map +1 -1
- package/distribution/component/service-index/index.js +3 -2
- package/distribution/component/service-index/index.js.map +1 -1
- package/distribution/component/service-index/index.module.css +1 -1
- package/distribution/component/service-index/index.module.scss +4 -5
- package/distribution/component/service-object/application-programming-interface/index.d.ts +6 -0
- package/distribution/component/service-object/application-programming-interface/index.d.ts.map +1 -0
- package/distribution/component/service-object/application-programming-interface/index.js +11 -0
- package/distribution/component/service-object/application-programming-interface/index.js.map +1 -0
- package/distribution/component/service-object/application-programming-interface/index.module.css +1 -0
- package/distribution/component/service-object/application-programming-interface/index.module.scss +154 -0
- package/distribution/component/service-object/brand-awareness/index.d.ts +3 -0
- package/distribution/component/service-object/brand-awareness/index.d.ts.map +1 -0
- package/distribution/component/service-object/brand-awareness/index.js +8 -0
- package/distribution/component/service-object/brand-awareness/index.js.map +1 -0
- package/distribution/component/service-object/brand-awareness/index.module.css +1 -0
- package/distribution/component/service-object/brand-awareness/index.module.scss +89 -0
- package/distribution/component/service-object/branding/index.d.ts +3 -0
- package/distribution/component/service-object/branding/index.d.ts.map +1 -0
- package/distribution/component/service-object/branding/index.js +7 -0
- package/distribution/component/service-object/branding/index.js.map +1 -0
- package/distribution/component/service-object/branding/index.module.css +1 -0
- package/distribution/component/service-object/branding/index.module.scss +63 -0
- package/distribution/component/service-object/branding-design/index.d.ts +3 -0
- package/distribution/component/service-object/branding-design/index.d.ts.map +1 -0
- package/distribution/component/service-object/branding-design/index.js +7 -0
- package/distribution/component/service-object/branding-design/index.js.map +1 -0
- package/distribution/component/service-object/branding-design/index.module.css +1 -0
- package/distribution/component/service-object/branding-design/index.module.scss +61 -0
- package/distribution/component/service-object/content-management-system/index.d.ts +6 -0
- package/distribution/component/service-object/content-management-system/index.d.ts.map +1 -0
- package/distribution/component/service-object/content-management-system/index.js +10 -0
- package/distribution/component/service-object/content-management-system/index.js.map +1 -0
- package/distribution/component/service-object/content-management-system/index.module.css +1 -0
- package/distribution/component/service-object/content-management-system/index.module.scss +181 -0
- package/distribution/component/service-object/cuboid/index.d.ts +11 -0
- package/distribution/component/service-object/cuboid/index.d.ts.map +1 -0
- package/distribution/component/service-object/cuboid/index.js +15 -0
- package/distribution/component/service-object/cuboid/index.js.map +1 -0
- package/distribution/component/service-object/cuboid/index.module.css +1 -0
- package/distribution/component/service-object/cuboid/index.module.scss +61 -0
- package/distribution/component/service-object/cuboid/type.d.ts +10 -0
- package/distribution/component/service-object/cuboid/type.d.ts.map +1 -0
- package/distribution/component/service-object/cuboid/type.js.map +1 -0
- package/distribution/component/service-object/e-commerce/index.d.ts +3 -0
- package/distribution/component/service-object/e-commerce/index.d.ts.map +1 -0
- package/distribution/component/service-object/e-commerce/index.js +8 -0
- package/distribution/component/service-object/e-commerce/index.js.map +1 -0
- package/distribution/component/service-object/e-commerce/index.module.css +1 -0
- package/distribution/component/service-object/e-commerce/index.module.scss +78 -0
- package/distribution/component/service-object/index.d.ts +10 -0
- package/distribution/component/service-object/index.d.ts.map +1 -0
- package/distribution/component/service-object/index.js +45 -0
- package/distribution/component/service-object/index.js.map +1 -0
- package/distribution/component/service-object/index.module.css +1 -0
- package/distribution/component/service-object/index.module.scss +16 -0
- package/distribution/component/service-object/lead-generation/index.d.ts +3 -0
- package/distribution/component/service-object/lead-generation/index.d.ts.map +1 -0
- package/distribution/component/service-object/lead-generation/index.js +7 -0
- package/distribution/component/service-object/lead-generation/index.js.map +1 -0
- package/distribution/component/service-object/lead-generation/index.module.css +1 -0
- package/distribution/component/service-object/lead-generation/index.module.scss +82 -0
- package/distribution/component/service-object/platform/index.d.ts +3 -0
- package/distribution/component/service-object/platform/index.d.ts.map +1 -0
- package/distribution/component/service-object/platform/index.js +8 -0
- package/distribution/component/service-object/platform/index.js.map +1 -0
- package/distribution/component/service-object/platform/index.module.css +1 -0
- package/distribution/component/service-object/platform/index.module.scss +54 -0
- package/distribution/component/service-object/product-launch/index.d.ts +3 -0
- package/distribution/component/service-object/product-launch/index.d.ts.map +1 -0
- package/distribution/component/service-object/product-launch/index.js +8 -0
- package/distribution/component/service-object/product-launch/index.js.map +1 -0
- package/distribution/component/service-object/product-launch/index.module.css +1 -0
- package/distribution/component/service-object/product-launch/index.module.scss +110 -0
- package/distribution/component/service-object/progressive-web-application/index.d.ts +6 -0
- package/distribution/component/service-object/progressive-web-application/index.d.ts.map +1 -0
- package/distribution/component/service-object/progressive-web-application/index.js +25 -0
- package/distribution/component/service-object/progressive-web-application/index.js.map +1 -0
- package/distribution/component/service-object/progressive-web-application/index.module.css +1 -0
- package/distribution/component/service-object/progressive-web-application/index.module.scss +179 -0
- package/distribution/component/service-object/rebranding/index.d.ts +3 -0
- package/distribution/component/service-object/rebranding/index.d.ts.map +1 -0
- package/distribution/component/service-object/rebranding/index.js +8 -0
- package/distribution/component/service-object/rebranding/index.js.map +1 -0
- package/distribution/component/service-object/rebranding/index.module.css +1 -0
- package/distribution/component/service-object/rebranding/index.module.scss +76 -0
- package/distribution/component/service-object/sales-generation/index.d.ts +3 -0
- package/distribution/component/service-object/sales-generation/index.d.ts.map +1 -0
- package/distribution/component/service-object/sales-generation/index.js +8 -0
- package/distribution/component/service-object/sales-generation/index.js.map +1 -0
- package/distribution/component/service-object/sales-generation/index.module.css +1 -0
- package/distribution/component/service-object/sales-generation/index.module.scss +65 -0
- package/distribution/component/service-object/social-media-strategy/index.d.ts +6 -0
- package/distribution/component/service-object/social-media-strategy/index.d.ts.map +1 -0
- package/distribution/component/service-object/social-media-strategy/index.js +14 -0
- package/distribution/component/service-object/social-media-strategy/index.js.map +1 -0
- package/distribution/component/service-object/social-media-strategy/index.module.css +1 -0
- package/distribution/component/service-object/social-media-strategy/index.module.scss +201 -0
- package/distribution/component/service-object/type.d.ts +6 -0
- package/distribution/component/service-object/type.d.ts.map +1 -0
- package/distribution/component/service-object/type.js.map +1 -0
- package/distribution/component/service-object/website/index.d.ts +3 -0
- package/distribution/component/service-object/website/index.d.ts.map +1 -0
- package/distribution/component/service-object/website/index.js +7 -0
- package/distribution/component/service-object/website/index.js.map +1 -0
- package/distribution/component/service-object/website/index.module.css +1 -0
- package/distribution/component/service-object/website/index.module.scss +73 -0
- package/distribution/component/service-unlisted/index.d.ts +10 -0
- package/distribution/component/service-unlisted/index.d.ts.map +1 -0
- package/distribution/component/service-unlisted/index.js +20 -0
- package/distribution/component/service-unlisted/index.js.map +1 -0
- package/distribution/component/service-unlisted/index.module.css +1 -0
- package/distribution/component/service-unlisted/index.module.scss +28 -0
- package/distribution/component/{services/social-visual → service-unlisted}/type.d.ts +1 -1
- package/distribution/component/service-unlisted/type.d.ts.map +1 -0
- package/distribution/component/service-unlisted/type.js.map +1 -0
- package/distribution/component/services/index.d.ts +5 -1
- package/distribution/component/services/index.d.ts.map +1 -1
- package/distribution/component/services/index.js +8 -17
- package/distribution/component/services/index.js.map +1 -1
- package/distribution/component/services/index.module.css +1 -1
- package/distribution/component/services/index.module.scss +53 -43
- package/distribution/component/structured-data/index.d.ts +1 -1
- package/distribution/component/structured-data/index.d.ts.map +1 -1
- package/distribution/component/structured-data/index.js +17 -12
- package/distribution/component/structured-data/index.js.map +1 -1
- package/distribution/content/contact/index.d.ts +140 -34
- package/distribution/content/contact/index.d.ts.map +1 -1
- package/distribution/content/contact/index.js +42 -10
- package/distribution/content/contact/index.js.map +1 -1
- package/distribution/content/hero/index.d.ts +1 -1
- package/distribution/content/hero/index.js +1 -1
- package/distribution/content/hero/index.js.map +1 -1
- package/distribution/content/services/index.d.ts +330 -133
- package/distribution/content/services/index.d.ts.map +1 -1
- package/distribution/content/services/index.js +219 -117
- package/distribution/content/services/index.js.map +1 -1
- package/distribution/content/site/index.d.ts.map +1 -1
- package/distribution/content/site/index.js +18 -10
- package/distribution/content/site/index.js.map +1 -1
- package/distribution/style/object/index.scss +28 -0
- package/distribution/style/token/index.scss +3 -1
- package/distribution/utility/contact-problem/index.d.ts +13 -0
- package/distribution/utility/contact-problem/index.d.ts.map +1 -0
- package/distribution/utility/contact-problem/index.js +23 -0
- package/distribution/utility/contact-problem/index.js.map +1 -0
- package/distribution/utility/llms-text/index.js +1 -1
- package/distribution/utility/llms-text/index.js.map +1 -1
- package/llms.txt +6 -3
- package/package.json +2 -2
- package/distribution/component/service-action/index.d.ts +0 -10
- package/distribution/component/service-action/index.d.ts.map +0 -1
- package/distribution/component/service-action/index.js +0 -18
- package/distribution/component/service-action/index.js.map +0 -1
- package/distribution/component/service-action/index.module.css +0 -1
- package/distribution/component/service-action/index.module.scss +0 -6
- package/distribution/component/service-action/type.d.ts +0 -7
- package/distribution/component/service-action/type.d.ts.map +0 -1
- package/distribution/component/service-action/type.js.map +0 -1
- package/distribution/component/services/campaign-visual/index.d.ts +0 -4
- package/distribution/component/services/campaign-visual/index.d.ts.map +0 -1
- package/distribution/component/services/campaign-visual/index.js +0 -19
- package/distribution/component/services/campaign-visual/index.js.map +0 -1
- package/distribution/component/services/campaign-visual/index.module.css +0 -1
- package/distribution/component/services/campaign-visual/index.module.scss +0 -125
- package/distribution/component/services/campaign-visual/stage/index.d.ts +0 -4
- package/distribution/component/services/campaign-visual/stage/index.d.ts.map +0 -1
- package/distribution/component/services/campaign-visual/stage/index.js +0 -11
- package/distribution/component/services/campaign-visual/stage/index.js.map +0 -1
- package/distribution/component/services/campaign-visual/stage/type.d.ts +0 -10
- package/distribution/component/services/campaign-visual/stage/type.d.ts.map +0 -1
- package/distribution/component/services/campaign-visual/stage/type.js.map +0 -1
- package/distribution/component/services/campaign-visual/type.d.ts +0 -5
- package/distribution/component/services/campaign-visual/type.d.ts.map +0 -1
- package/distribution/component/services/campaign-visual/type.js.map +0 -1
- package/distribution/component/services/cell/index.d.ts +0 -7
- package/distribution/component/services/cell/index.d.ts.map +0 -1
- package/distribution/component/services/cell/index.js +0 -16
- package/distribution/component/services/cell/index.js.map +0 -1
- package/distribution/component/services/cell/index.module.css +0 -1
- package/distribution/component/services/cell/index.module.scss +0 -81
- package/distribution/component/services/cell/type.d.ts +0 -16
- package/distribution/component/services/cell/type.d.ts.map +0 -1
- package/distribution/component/services/cell/type.js.map +0 -1
- package/distribution/component/services/design-visual/index.d.ts +0 -5
- package/distribution/component/services/design-visual/index.d.ts.map +0 -1
- package/distribution/component/services/design-visual/index.js +0 -21
- package/distribution/component/services/design-visual/index.js.map +0 -1
- package/distribution/component/services/design-visual/index.module.css +0 -1
- package/distribution/component/services/design-visual/index.module.scss +0 -119
- package/distribution/component/services/mobile-visual/index.d.ts +0 -4
- package/distribution/component/services/mobile-visual/index.d.ts.map +0 -1
- package/distribution/component/services/mobile-visual/index.js +0 -18
- package/distribution/component/services/mobile-visual/index.js.map +0 -1
- package/distribution/component/services/mobile-visual/index.module.css +0 -1
- package/distribution/component/services/mobile-visual/index.module.scss +0 -93
- package/distribution/component/services/mobile-visual/type.d.ts +0 -5
- package/distribution/component/services/mobile-visual/type.d.ts.map +0 -1
- package/distribution/component/services/mobile-visual/type.js.map +0 -1
- package/distribution/component/services/platform-visual/index.d.ts +0 -3
- package/distribution/component/services/platform-visual/index.d.ts.map +0 -1
- package/distribution/component/services/platform-visual/index.js +0 -16
- package/distribution/component/services/platform-visual/index.js.map +0 -1
- package/distribution/component/services/platform-visual/index.module.css +0 -1
- package/distribution/component/services/platform-visual/index.module.scss +0 -39
- package/distribution/component/services/social-visual/index.d.ts +0 -4
- package/distribution/component/services/social-visual/index.d.ts.map +0 -1
- package/distribution/component/services/social-visual/index.js +0 -18
- package/distribution/component/services/social-visual/index.js.map +0 -1
- package/distribution/component/services/social-visual/index.module.css +0 -1
- package/distribution/component/services/social-visual/index.module.scss +0 -123
- package/distribution/component/services/social-visual/type.d.ts.map +0 -1
- package/distribution/component/services/social-visual/type.js +0 -2
- package/distribution/component/services/social-visual/type.js.map +0 -1
- package/distribution/component/services/web-visual/index.d.ts +0 -3
- package/distribution/component/services/web-visual/index.d.ts.map +0 -1
- package/distribution/component/services/web-visual/index.js +0 -26
- package/distribution/component/services/web-visual/index.js.map +0 -1
- package/distribution/component/services/web-visual/index.module.css +0 -1
- package/distribution/component/services/web-visual/index.module.scss +0 -133
- package/distribution/content/services/type.d.ts +0 -8
- package/distribution/content/services/type.d.ts.map +0 -1
- package/distribution/content/services/type.js +0 -2
- package/distribution/content/services/type.js.map +0 -1
- /package/distribution/component/{service-action → contact/form/chip}/type.js +0 -0
- /package/distribution/component/{services/campaign-visual/stage → service-card}/type.js +0 -0
- /package/distribution/component/{services/campaign-visual → service-object/cuboid}/type.js +0 -0
- /package/distribution/component/{services/cell → service-object}/type.js +0 -0
- /package/distribution/component/{services/mobile-visual → service-unlisted}/type.js +0 -0
package/README.md
CHANGED
|
@@ -34,16 +34,17 @@ Everything generic comes from the open-source Sharadox libraries, configured her
|
|
|
34
34
|
- **One source for shared copy:** text used in more than one place lives in its own content module and is imported, never retyped.
|
|
35
35
|
- **`component/`:** the page's branded parts:
|
|
36
36
|
- grid frame, `Cross` marks, navigation (below 1100px its links open in a menu under the bar, in the bar's frosted background, scrolling when it doesn't fit, as on a phone held sideways) and footer
|
|
37
|
-
- hero and its guides, service index, statement,
|
|
37
|
+
- hero and its guides, service index, statement, and Services: four groups of cards (Web Applications, Desktop and Mobile Applications, Creative Services, Marketing Campaigns), each card with its own animated 3D object (`service-object`, in CSS 3D, turning towards the pointer), a description and a button that starts that project; a card alone in its group lies wide, with its numbered `points`; then `ServiceUnlisted`, the invitation for ideas none of them name
|
|
38
38
|
- the 3D touchpoint stack, capabilities sheet, process, contact, section indicator, style switch
|
|
39
39
|
- `Consent`, the Sharadox cookie panel (reopened by the footer's Cookie Preferences), and the footer's legal parts: Portugal's complaints book and the Algarve's consumer dispute notice (CIMAAL)
|
|
40
40
|
- the Sharadox wrapper around the shared globe, structured data, share image, `llmsText()` for `/llms.txt`
|
|
41
41
|
- `PrivacyPage`: the privacy policy's body (`content/privacy`, written by `@sharadox/privacy-web-library`), at `/<locale>/privacy`, linked from the footer
|
|
42
42
|
- `License`: the license page's body, rendered from the license's Markdown
|
|
43
43
|
- `NotFound`: the 404 screen, a giant 404 whose zero is the live globe, with the failed request and the way back (put `ServiceIndex base="/<locale>"` under it)
|
|
44
|
-
- **Service card buttons:** each card's
|
|
45
|
-
-
|
|
46
|
-
- **`
|
|
44
|
+
- **Service card buttons:** each card's button scrolls to the contact form and ticks that card's choice (`requestContactNeeds`, the card's `key` in `content/services`), which glows for a moment. The form's choices come from the same cards, grouped like the services, then Something Else ("I don't know what I need", "What I need is not listed", which the invitation after the services ticks).
|
|
45
|
+
- **Contact form checks:** it needs a name, an email or a phone (or both, each valid), at least one choice and a message of at least 20 characters (`utility/contact-problem`, the same rules the server applies). It says what's missing under each field before anything is sent.
|
|
46
|
+
- **`action/send-contact`:** `sendContact(form, ip)`, the shared contact action set up for Sharadox ("Contact · Name (Company)" subjects, sent to contact@sharadox.com as "Sharadox Web Application"), with the form's rules, 5 messages an hour per address and 50 emails a day from everyone together, so a flood can't run up the email bill.
|
|
47
|
+
- **`utility/`:** `separate()` (the Sharadox separator), `contactProblems()` (what the contact form still lacks), `requestContactNeeds()` and the share card's horizon dots.
|
|
47
48
|
- **`style/token`:** Sass helpers (`tint()`, `shade()`, `dashed()`, `on-scroll()`, `below()`, `skip-entrance()`) used by every component's styles. `skip-entrance` marks a time-based entrance animation so it shows its final state at once after a language switch.
|
|
48
49
|
- **Language switch:** the page is rebuilt in place without replaying entrances (hero, 404, guides, service row and visuals), the globe keeps turning from where it was, and changed text animates (the application adds `LocaleTransitionStyle` in `<head>`).
|
|
49
50
|
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
* The contact form's work, called by the application's server action (which adds the visitor's IP address). It
|
|
3
3
|
* emails contact@sharadox.com from the sending subdomain (`EMAIL_SENDER_ADDRESS`, through Amazon SES over SMTP:
|
|
4
4
|
* `EMAIL_SERVER_*`) as "Sharadox Web Application", with the visitor as reply-to and the subject
|
|
5
|
-
* "Contact · Name (Company)".
|
|
5
|
+
* "Contact · Name (Company)". It needs a name, an email or a phone, at least one choice and a message of at least
|
|
6
|
+
* `CONTACT.minimumMessageLength` characters. Each address may send 5 messages an hour and everyone together 50
|
|
7
|
+
* emails a day, which caps what a flood can cost.
|
|
6
8
|
*/
|
|
7
9
|
export declare const sendContact: (form: FormData, ip: string) => Promise<import("@sharadox/form-web-library/contact-action/type").ContactState>;
|
|
8
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/action/send-contact/index.ts"],"names":[],"mappings":"AAKA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/action/send-contact/index.ts"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,gHAWtB,CAAC"}
|
|
@@ -6,7 +6,9 @@ import { separate } from "@sharadox/sharadox-web-library/utility/separate";
|
|
|
6
6
|
* The contact form's work, called by the application's server action (which adds the visitor's IP address). It
|
|
7
7
|
* emails contact@sharadox.com from the sending subdomain (`EMAIL_SENDER_ADDRESS`, through Amazon SES over SMTP:
|
|
8
8
|
* `EMAIL_SERVER_*`) as "Sharadox Web Application", with the visitor as reply-to and the subject
|
|
9
|
-
* "Contact · Name (Company)".
|
|
9
|
+
* "Contact · Name (Company)". It needs a name, an email or a phone, at least one choice and a message of at least
|
|
10
|
+
* `CONTACT.minimumMessageLength` characters. Each address may send 5 messages an hour and everyone together 50
|
|
11
|
+
* emails a day, which caps what a flood can cost.
|
|
10
12
|
*/
|
|
11
13
|
export const sendContact = createContactAction({
|
|
12
14
|
to: SITE.email,
|
|
@@ -14,5 +16,9 @@ export const sendContact = createContactAction({
|
|
|
14
16
|
site: "sharadox.com",
|
|
15
17
|
subject: (message) => separate(CONTACT.subject, message.company ? `${message.name} (${message.company})` : message.name),
|
|
16
18
|
choices: Object.fromEntries(CONTACT.needs.options.map((need) => [need.key, need.en])),
|
|
19
|
+
// The same rules the form checks before sending.
|
|
20
|
+
reach: "email-or-phone",
|
|
21
|
+
requireChoice: true,
|
|
22
|
+
minimumMessageLength: CONTACT.minimumMessageLength,
|
|
17
23
|
});
|
|
18
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/action/send-contact/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,IAAI,EAAE,MAAM,6CAA6C,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAE3E
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/action/send-contact/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,IAAI,EAAE,MAAM,6CAA6C,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAE3E;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,mBAAmB,CAAC;IAC7C,EAAE,EAAE,IAAI,CAAC,KAAK;IACd,UAAU,EAAE,OAAO,CAAC,UAAU;IAC9B,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,CACnB,QAAQ,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,KAAK,OAAO,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IACpG,OAAO,EAAE,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;IACrF,iDAAiD;IACjD,KAAK,EAAE,gBAAgB;IACvB,aAAa,EAAE,IAAI;IACnB,oBAAoB,EAAE,OAAO,CAAC,oBAAoB;CACnD,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { CapabilityProperties } from "@sharadox/sharadox-web-library/component/capability/type";
|
|
2
|
-
/** "Capabilities":
|
|
2
|
+
/** "Capabilities": everything each service group delivers, as columns of a ruled sheet. */
|
|
3
3
|
export declare function Capability({ locale }: CapabilityProperties): import("react").JSX.Element;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/capability/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAErG,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/capability/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAErG,2FAA2F;AAC3F,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE,oBAAoB,+BA4B1D"}
|
|
@@ -7,7 +7,7 @@ import { CAPABILITY } from "@sharadox/sharadox-web-library/content/capability";
|
|
|
7
7
|
import { SERVICES } from "@sharadox/sharadox-web-library/content/services";
|
|
8
8
|
import { SECTION } from "@sharadox/sharadox-web-library/content/section";
|
|
9
9
|
import styles from "./index.module.css";
|
|
10
|
-
/** "Capabilities":
|
|
10
|
+
/** "Capabilities": everything each service group delivers, as columns of a ruled sheet. */
|
|
11
11
|
export function Capability({ locale }) {
|
|
12
12
|
const rows = 1 + Math.max(...SERVICES.items.map((service) => service.capabilities[locale].length));
|
|
13
13
|
return (_jsxs(Section, { id: SECTION.capabilities.id, padded: false, children: [_jsx("div", { className: styles.heading, children: _jsx(SectionHeading, { eyebrow: translate(SECTION.capabilities, locale), title: translate(CAPABILITY.title, locale) }) }), _jsx("div", { className: styles.sheet, style: { "--rows": rows }, children: SERVICES.items.map((service, column) => (_jsxs("div", { className: styles.column, children: [_jsxs("a", { href: `#${service.key}`, className: styles.title, children: [_jsx("span", { className: "monospace", children: service.number }), translate(service.title, locale)] }), _jsx("ul", { role: "list", children: service.capabilities[locale].map((capability, row) => (_jsx("li", { children: _jsx(Reveal, { delay: column * 0.05 + row * 0.04, y: 8, blur: 0, margin: "-5% 0px", children: capability }) }, capability))) })] }, service.key))) })] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/capability/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,wCAAwC,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;AAC1F,OAAO,EAAE,UAAU,EAAE,MAAM,mDAAmD,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/capability/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,wCAA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AAC,KAAK,aACjD,eAAM,SAAS,EAAC,WAAW,YAAE,OAAO,CAAC,MAAM,GAAQ,EAClD,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,IAC/B,EACJ,aAAI,IAAI,EAAC,MAAM,YACZ,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,GAAG,EAAE,EAAE,CAAC,CACrD,uBACE,KAAC,MAAM,IAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,GAAG,GAAG,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAC,SAAS,YACvE,UAAU,GACJ,IAHF,UAAU,CAId,CACN,CAAC,GACC,KAbG,OAAO,CAAC,GAAG,CAcf,CACP,CAAC,GACE,IACE,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.heading{padding:clamp(72px,10vw,128px) var(--padding) 0}.sheet{display:grid;grid-template-columns:repeat(
|
|
1
|
+
.heading{padding:clamp(72px,10vw,128px) var(--padding) 0}.sheet{display:grid;grid-template-columns:repeat(4, 1fr);grid-auto-rows:auto;border-top:1px solid var(--line)}@media(max-width: 960px){.sheet{grid-template-columns:repeat(2, 1fr)}}@media(max-width: 600px){.sheet{grid-template-columns:1fr}}.column{position:relative;display:grid;grid-row:span var(--rows);grid-template-rows:subgrid}@media(max-width: 600px){.column{grid-row:auto;grid-template-rows:none}}.column:not(:last-child)::after{content:"";position:absolute;top:0;bottom:0;right:0;width:1px;background:linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 8px repeat-y}.column ul{display:contents}.column li{position:relative;display:flex;align-items:center;padding:13px 20px;font-size:14.5px;color:var(--foreground-2);transition:color .25s}.column li::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:linear-gradient(90deg, var(--line) 50%, transparent 0) 0 0/8px 1px repeat-x}.column li:hover{color:var(--foreground)}@media(max-width: 960px){.column{border-bottom:1px solid var(--line)}.column:nth-child(2n)::after{display:none}}@media(max-width: 600px){.column::after{display:none}}.title{display:grid;gap:6px;padding:22px 20px 18px;font-weight:600;letter-spacing:-0.02em;border-bottom:1px solid var(--line)}.title span{font-size:11.5px;font-weight:400;color:var(--foreground-3)}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
}
|
|
6
6
|
.sheet {
|
|
7
7
|
display: grid;
|
|
8
|
-
grid-template-columns: repeat(
|
|
8
|
+
grid-template-columns: repeat(4, 1fr);
|
|
9
9
|
/* Each column spans the title row plus one row per capability, shared by all columns, so lines line up. */
|
|
10
10
|
grid-auto-rows: auto;
|
|
11
11
|
border-top: 1px solid var(--line);
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ChipProperties } from "@sharadox/sharadox-web-library/component/contact/form/chip/type";
|
|
2
|
+
/** One "What do you need?" choice: a pill checkbox that fills when ticked and glows when a button elsewhere ticks it. */
|
|
3
|
+
export declare function Chip({ need, label }: ChipProperties): import("react").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../source/component/contact/form/chip/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iEAAiE,CAAC;AAEtG,yHAAyH;AACzH,wBAAgB,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,cAAc,+BAOnD"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import styles from "./index.module.css";
|
|
3
|
+
/** One "What do you need?" choice: a pill checkbox that fills when ticked and glows when a button elsewhere ticks it. */
|
|
4
|
+
export function Chip({ need, label }) {
|
|
5
|
+
return (_jsxs("label", { className: styles.chip, children: [_jsx("input", { type: "checkbox", name: "need", value: need }), _jsx("span", { children: label })] }));
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../source/component/contact/form/chip/index.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,yHAAyH;AACzH,MAAM,UAAU,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,EAAkB;IAClD,OAAO,CACL,iBAAO,SAAS,EAAE,MAAM,CAAC,IAAI,aAC3B,gBAAO,IAAI,EAAC,UAAU,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAE,IAAI,GAAI,EAClD,yBAAO,KAAK,GAAQ,IACd,CACT,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.chip{position:relative}.chip input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}.chip span{display:inline-flex;align-items:center;gap:7px;padding:8px 13px;border-radius:99px;border:1px solid var(--line-2);font-size:13.5px;color:var(--foreground-2);transition:color .2s,background .2s,border-color .2s}.chip span::before{content:"+";font-family:var(--monospace);transition:transform .3s cubic-bezier(0.22, 1, 0.36, 1)}.chip:hover span{color:var(--foreground);border-color:color-mix(in srgb, var(--foreground) 30%, transparent)}.chip input:checked+span{background:var(--foreground);border-color:var(--foreground);color:var(--background)}.chip input:checked+span::before{transform:rotate(45deg)}.chip input:focus-visible+span{outline:2px solid var(--foreground);outline-offset:2px}.chip[data-requested] span{animation:requested 1.4s .5s cubic-bezier(0.22, 1, 0.36, 1) both}@keyframes requested{0%{box-shadow:0 0 0 0 color-mix(in srgb, var(--foreground) 55%, transparent)}100%{box-shadow:0 0 0 14px color-mix(in srgb, var(--foreground) 0%, transparent)}}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
@use "style/token" as *;
|
|
2
|
+
|
|
3
|
+
.chip {
|
|
4
|
+
position: relative;
|
|
5
|
+
input {
|
|
6
|
+
position: absolute;
|
|
7
|
+
opacity: 0;
|
|
8
|
+
inset: 0;
|
|
9
|
+
margin: 0;
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
}
|
|
12
|
+
span {
|
|
13
|
+
display: inline-flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
gap: 7px;
|
|
16
|
+
padding: 8px 13px;
|
|
17
|
+
border-radius: 99px;
|
|
18
|
+
border: 1px solid var(--line-2);
|
|
19
|
+
font-size: 13.5px;
|
|
20
|
+
color: var(--foreground-2);
|
|
21
|
+
transition:
|
|
22
|
+
color 0.2s,
|
|
23
|
+
background 0.2s,
|
|
24
|
+
border-color 0.2s;
|
|
25
|
+
&::before {
|
|
26
|
+
content: "+";
|
|
27
|
+
font-family: var(--monospace);
|
|
28
|
+
transition: transform 0.3s $ease;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
&:hover span {
|
|
32
|
+
color: var(--foreground);
|
|
33
|
+
border-color: tint(30%);
|
|
34
|
+
}
|
|
35
|
+
input:checked + span {
|
|
36
|
+
background: var(--foreground);
|
|
37
|
+
border-color: var(--foreground);
|
|
38
|
+
color: var(--background);
|
|
39
|
+
&::before {
|
|
40
|
+
transform: rotate(45deg);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
input:focus-visible + span {
|
|
44
|
+
outline: 2px solid var(--foreground);
|
|
45
|
+
outline-offset: 2px;
|
|
46
|
+
}
|
|
47
|
+
/* Ticked by a button elsewhere on the page: a ring that grows and fades, so the visitor sees what was chosen. */
|
|
48
|
+
&[data-requested] span {
|
|
49
|
+
animation: requested 1.4s 0.5s $ease both;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
@keyframes requested {
|
|
53
|
+
0% {
|
|
54
|
+
box-shadow: 0 0 0 0 tint(55%);
|
|
55
|
+
}
|
|
56
|
+
100% {
|
|
57
|
+
box-shadow: 0 0 0 14px tint(0%);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../../source/component/contact/form/chip/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AAE9E,MAAM,WAAW,cAAc;IAC7B,2BAA2B;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../../source/component/contact/form/chip/type.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type { ContactFormProperties } from "@sharadox/sharadox-web-library/component/contact/form/type";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* The enquiry form: name, company, email and phone (one of them is enough), the choices grouped like the services, and
|
|
4
|
+
* a message. It checks itself before sending (`contactProblems`, the same rules as the server) and shows what's
|
|
5
|
+
* missing under each field; honeypot and fill-time spam checks, server errors, and an animated thank-you.
|
|
6
|
+
*/
|
|
3
7
|
export declare function ContactForm({ locale, action: sendAction }: ContactFormProperties): import("react").JSX.Element;
|
|
4
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/contact/form/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/contact/form/index.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAExG;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,qBAAqB,+BA4KhF"}
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
3
|
import { AnimatePresence, motion } from "motion/react";
|
|
4
|
-
import { useActionState, useEffect, useRef } from "react";
|
|
4
|
+
import { useActionState, useEffect, useRef, useState } from "react";
|
|
5
5
|
import { Button } from "@sharadox/sharadox-web-library/component/button";
|
|
6
6
|
import { CONTACT } from "@sharadox/sharadox-web-library/content/contact";
|
|
7
7
|
import { SITE } from "@sharadox/sharadox-web-library/content/site";
|
|
8
8
|
import { useSpotlight } from "@sharadox/pointer-web-library/spotlight";
|
|
9
9
|
import { translate } from "@sharadox/internationalization-web-library/translate";
|
|
10
10
|
import { CONTACT_NEED_EVENT } from "@sharadox/sharadox-web-library/utility/contact-need";
|
|
11
|
+
import { Chip } from "@sharadox/sharadox-web-library/component/contact/form/chip";
|
|
12
|
+
import { contactProblems } from "@sharadox/sharadox-web-library/utility/contact-problem";
|
|
11
13
|
import styles from "./index.module.css";
|
|
12
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* The enquiry form: name, company, email and phone (one of them is enough), the choices grouped like the services, and
|
|
16
|
+
* a message. It checks itself before sending (`contactProblems`, the same rules as the server) and shows what's
|
|
17
|
+
* missing under each field; honeypot and fill-time spam checks, server errors, and an animated thank-you.
|
|
18
|
+
*/
|
|
13
19
|
export function ContactForm({ locale, action: sendAction }) {
|
|
14
20
|
const [state, action, pending] = useActionState(sendAction, { status: "idle" });
|
|
15
21
|
// When the visitor started filling the form; bots submit faster than humans can.
|
|
@@ -38,8 +44,37 @@ export function ContactForm({ locale, action: sendAction }) {
|
|
|
38
44
|
startedAt.current = Date.now();
|
|
39
45
|
}, []);
|
|
40
46
|
const spotlight = useSpotlight();
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
47
|
+
// What the visitor still has to fill in; shown once they try to send, then updated as they type.
|
|
48
|
+
const [problems, setProblems] = useState(null);
|
|
49
|
+
// After a refused send, the first field that needs attention takes the focus once it's marked.
|
|
50
|
+
const formElement = useRef(null);
|
|
51
|
+
const [refusals, setRefusals] = useState(0);
|
|
52
|
+
useEffect(() => {
|
|
53
|
+
if (refusals)
|
|
54
|
+
formElement.current?.querySelector("[aria-invalid], [data-invalid] input")?.focus();
|
|
55
|
+
}, [refusals]);
|
|
56
|
+
const has = (problem) => problems?.includes(problem) ?? false;
|
|
57
|
+
const problem = (key) => has(key) && (_jsx("span", { id: `contact-${key}-problem`, className: styles.problem, children: translate(CONTACT.problems[key], locale) }));
|
|
58
|
+
const described = (...keys) => {
|
|
59
|
+
const shown = keys.filter(has);
|
|
60
|
+
return shown.length
|
|
61
|
+
? { "aria-invalid": true, "aria-describedby": shown.map((key) => `contact-${key}-problem`).join(" ") }
|
|
62
|
+
: {};
|
|
63
|
+
};
|
|
64
|
+
return (_jsx(AnimatePresence, { mode: "wait", children: state.status === "sent" ? (_jsxs(motion.div, { className: `${styles.form} ${styles.done}`, initial: { opacity: 0, scale: 0.98 }, animate: { opacity: 1, scale: 1 }, role: "status", children: [_jsxs("svg", { viewBox: "0 0 48 48", className: styles.check, "aria-hidden": true, children: [_jsx("circle", { cx: "24", cy: "24", r: "22" }), _jsx("path", { d: "M14 24.5l7 7 13-14" })] }), _jsx("p", { children: translate(CONTACT.sent, locale) })] }, "sent")) : (_jsxs(motion.form, { ref: spotlight, action: action, noValidate: true, onSubmit: (event) => {
|
|
65
|
+
const form = event.currentTarget;
|
|
66
|
+
const found = contactProblems(new FormData(form));
|
|
67
|
+
setProblems(found);
|
|
68
|
+
if (found.length) {
|
|
69
|
+
event.preventDefault();
|
|
70
|
+
formElement.current = form;
|
|
71
|
+
setRefusals((count) => count + 1);
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
form.elements.namedItem("started-at").value = String(startedAt.current);
|
|
75
|
+
}, onChange: (event) => {
|
|
76
|
+
if (problems)
|
|
77
|
+
setProblems(contactProblems(new FormData(event.currentTarget)));
|
|
78
|
+
}, className: styles.form, exit: { opacity: 0, scale: 0.98 }, children: [_jsx("input", { type: "hidden", name: "started-at", defaultValue: "0" }), _jsx("input", { type: "hidden", name: "locale", value: locale }), _jsx("div", { className: styles.honeypot, "aria-hidden": true, children: _jsxs("label", { children: ["Website", _jsx("input", { name: "website", tabIndex: -1, autoComplete: "off" })] }) }), _jsxs("div", { className: styles.row, children: [_jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.name, locale) }), _jsx("input", { name: "name", required: true, autoComplete: "name", maxLength: 120, ...described("name") }), problem("name")] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.company, locale) }), _jsx("input", { name: "company", autoComplete: "organization", maxLength: 160 })] })] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.email, locale) }), _jsx("input", { name: "email", type: "email", autoComplete: "email", maxLength: 200, ...described("reach", "email") }), problem("email")] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.phone, locale) }), _jsx("input", { name: "phone", type: "tel", autoComplete: "tel", maxLength: 40, ...described("reach", "phone") }), problem("phone")] }), has("reach") ? problem("reach") : _jsx("span", { className: styles.hint, children: translate(CONTACT.reach, locale) }), _jsxs("fieldset", { ref: needs, className: styles.services, "data-invalid": has("needs") || undefined, "aria-describedby": has("needs") ? "contact-needs-problem" : undefined, children: [_jsx("legend", { children: translate(CONTACT.needs.label, locale) }), CONTACT.needs.groups.map((group) => (_jsxs("div", { className: styles.group, role: "group", "aria-label": translate(group.title, locale), children: [_jsx("span", { className: "monospace", children: translate(group.title, locale) }), group.options.map((need) => (_jsx(Chip, { need: need.key, label: need[locale] }, need.key)))] }, group.key))), _jsxs("div", { className: styles.group, role: "group", "aria-label": translate(CONTACT.needs.unsure.title, locale), children: [_jsx("span", { className: "monospace", children: translate(CONTACT.needs.unsure.title, locale) }), CONTACT.needs.unsure.options.map((need) => (_jsx(Chip, { need: need.key, label: need[locale] }, need.key)))] }), problem("needs")] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.message, locale) }), _jsx("textarea", { name: "message", required: true, rows: 5, minLength: CONTACT.minimumMessageLength, maxLength: 5000, ...described("message") }), problem("message")] }), state.status !== "idle" && (_jsx("p", { className: styles.error, role: "alert", children: state.status === "failed" ? (_jsxs(_Fragment, { children: [translate(CONTACT.errors.failed, locale), " ", _jsx("a", { href: `mailto:${SITE.email}`, children: SITE.email }), "."] })) : (translate(CONTACT.errors[state.status], locale)) })), _jsx(Button, { size: "block", disabled: pending, arrow: !pending, children: pending ? translate(CONTACT.sending, locale) : translate(CONTACT.send, locale) })] }, "form")) }));
|
|
44
79
|
}
|
|
45
80
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/contact/form/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/contact/form/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEpE,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,IAAI,EAAE,MAAM,6CAA6C,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAE,MAAM,qDAAqD,CAAC;AACzF,OAAO,EAAE,IAAI,EAAE,MAAM,4DAA4D,CAAC;AAClF,OAAO,EAAE,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EACvC,SAAS,EAAE,IAAI,KACX,SAAS,CAAC,SAAS,CAAC,GACxB,EACD,OAAO,CAAC,SAAS,CAAC,IACb,EACP,KAAK,CAAC,MAAM,KAAK,MAAM,IAAI,CAC1B,YAAG,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,IAAI,EAAC,OAAO,YACrC,KAAK,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,CAC3B,8BACG,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,OAAE,YAAG,IAAI,EAAE,UAAU,IAAI,CAAC,KAAK,EAAE,YAAG,IAAI,CAAC,KAAK,GAAK,SAC3F,CACJ,CAAC,CAAC,CAAC,CACF,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAChD,GACC,CACL,EACD,KAAC,MAAM,IAAC,IAAI,EAAC,OAAO,EAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,OAAO,YACpD,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,GACxE,KArGL,MAAM,CAsGE,CACf,GACe,CACnB,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.form{--pointer-x: -500px;--pointer-y: -500px;position:relative;display:grid;gap:14px;padding:clamp(22px,3vw,34px);border-radius:18px;background:var(--card);border:1px solid var(--line);isolation:isolate}.form::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:radial-gradient(500px circle at var(--pointer-x) var(--pointer-y), color-mix(in srgb, var(--foreground) 5%, transparent), transparent 60%)}.row{display:grid;grid-template-columns:1fr 1fr;gap:14px}@media(max-width: 860px){.row{grid-template-columns:1fr}}.field{display:grid;gap:7px}.field span{font-size:13px;color:var(--foreground-2)}.field input,.field textarea{width:100%;font:inherit;font-size:15px;color:var(--foreground);background:var(--background);border:1px solid var(--line-2);border-radius:12px;padding:13px 14px;transition:border-color .25s,box-shadow .25s;resize:vertical}.field input:focus,.field textarea:focus{outline:none;border-color:color-mix(in srgb, var(--foreground) 50%, transparent);box-shadow:0 0 0 4px color-mix(in srgb, var(--foreground) 6%, transparent)}.services{display:
|
|
1
|
+
.form{--pointer-x: -500px;--pointer-y: -500px;position:relative;display:grid;gap:14px;padding:clamp(22px,3vw,34px);border-radius:18px;background:var(--card);border:1px solid var(--line);isolation:isolate}.form::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:radial-gradient(500px circle at var(--pointer-x) var(--pointer-y), color-mix(in srgb, var(--foreground) 5%, transparent), transparent 60%)}.row{display:grid;grid-template-columns:1fr 1fr;gap:14px}@media(max-width: 860px){.row{grid-template-columns:1fr}}.field{display:grid;align-content:start;gap:7px}.field span{font-size:13px;color:var(--foreground-2)}.field input,.field textarea{width:100%;font:inherit;font-size:15px;color:var(--foreground);background:var(--background);border:1px solid var(--line-2);border-radius:12px;padding:13px 14px;transition:border-color .25s,box-shadow .25s;resize:vertical}.field input:focus,.field textarea:focus{outline:none;border-color:color-mix(in srgb, var(--foreground) 50%, transparent);box-shadow:0 0 0 4px color-mix(in srgb, var(--foreground) 6%, transparent)}.services{display:grid;gap:12px;margin:4px 0 2px;padding:0;border:0}.services legend{float:left;padding:0;width:100%;margin-bottom:9px;font-size:13px;color:var(--foreground-2)}.honeypot{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.error{font-size:14px;color:var(--error)}.error a{text-decoration:underline}.done{min-height:380px;place-items:center;text-align:center;align-content:center;gap:18px}.done p{max-width:30ch;color:var(--foreground-2)}.check{width:56px;height:56px;fill:none;stroke:var(--foreground);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.check path{stroke-dasharray:40;stroke-dashoffset:40;animation:draw .8s .2s var(--ease) forwards}@keyframes draw{to{stroke-dashoffset:0}}.group{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.group>span{flex-basis:100%;font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:var(--foreground-3)}.problem{font-size:13px;color:var(--error) !important}.hint{margin-top:-6px;font-size:13px;color:var(--foreground-3)}.field input[aria-invalid],.field textarea[aria-invalid]{border-color:var(--error)}.services[data-invalid] .group label>span{border-color:color-mix(in srgb, var(--error) 55%, transparent)}
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
}
|
|
31
31
|
.field {
|
|
32
32
|
display: grid;
|
|
33
|
+
align-content: start;
|
|
33
34
|
gap: 7px;
|
|
34
35
|
span {
|
|
35
36
|
font-size: 13px;
|
|
@@ -57,9 +58,8 @@
|
|
|
57
58
|
}
|
|
58
59
|
}
|
|
59
60
|
.services {
|
|
60
|
-
display:
|
|
61
|
-
|
|
62
|
-
gap: 8px;
|
|
61
|
+
display: grid;
|
|
62
|
+
gap: 12px;
|
|
63
63
|
margin: 4px 0 2px;
|
|
64
64
|
padding: 0;
|
|
65
65
|
border: 0;
|
|
@@ -72,63 +72,7 @@
|
|
|
72
72
|
color: var(--foreground-2);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
|
|
76
|
-
position: relative;
|
|
77
|
-
input {
|
|
78
|
-
position: absolute;
|
|
79
|
-
opacity: 0;
|
|
80
|
-
inset: 0;
|
|
81
|
-
margin: 0;
|
|
82
|
-
cursor: pointer;
|
|
83
|
-
}
|
|
84
|
-
span {
|
|
85
|
-
display: inline-flex;
|
|
86
|
-
align-items: center;
|
|
87
|
-
gap: 7px;
|
|
88
|
-
padding: 8px 13px;
|
|
89
|
-
border-radius: 99px;
|
|
90
|
-
border: 1px solid var(--line-2);
|
|
91
|
-
font-size: 13.5px;
|
|
92
|
-
color: var(--foreground-2);
|
|
93
|
-
transition:
|
|
94
|
-
color 0.2s,
|
|
95
|
-
background 0.2s,
|
|
96
|
-
border-color 0.2s;
|
|
97
|
-
&::before {
|
|
98
|
-
content: "+";
|
|
99
|
-
font-family: var(--monospace);
|
|
100
|
-
transition: transform 0.3s $ease;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
&:hover span {
|
|
104
|
-
color: var(--foreground);
|
|
105
|
-
border-color: tint(30%);
|
|
106
|
-
}
|
|
107
|
-
input:checked + span {
|
|
108
|
-
background: var(--foreground);
|
|
109
|
-
border-color: var(--foreground);
|
|
110
|
-
color: var(--background);
|
|
111
|
-
&::before {
|
|
112
|
-
transform: rotate(45deg);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
input:focus-visible + span {
|
|
116
|
-
outline: 2px solid var(--foreground);
|
|
117
|
-
outline-offset: 2px;
|
|
118
|
-
}
|
|
119
|
-
/* Ticked by a button elsewhere on the page: a ring that grows and fades, so the visitor sees what was chosen. */
|
|
120
|
-
&[data-requested] span {
|
|
121
|
-
animation: requested 1.4s 0.5s $ease both;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
@keyframes requested {
|
|
125
|
-
0% {
|
|
126
|
-
box-shadow: 0 0 0 0 tint(55%);
|
|
127
|
-
}
|
|
128
|
-
100% {
|
|
129
|
-
box-shadow: 0 0 0 14px tint(0%);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
75
|
+
|
|
132
76
|
.honeypot {
|
|
133
77
|
position: absolute;
|
|
134
78
|
left: -9999px;
|
|
@@ -173,3 +117,34 @@
|
|
|
173
117
|
stroke-dashoffset: 0;
|
|
174
118
|
}
|
|
175
119
|
}
|
|
120
|
+
/* A row of choices for one service group, its name in front. */
|
|
121
|
+
.group {
|
|
122
|
+
display: flex;
|
|
123
|
+
flex-wrap: wrap;
|
|
124
|
+
align-items: center;
|
|
125
|
+
gap: 8px;
|
|
126
|
+
> span {
|
|
127
|
+
flex-basis: 100%;
|
|
128
|
+
font-size: 11px;
|
|
129
|
+
letter-spacing: 0.05em;
|
|
130
|
+
text-transform: uppercase;
|
|
131
|
+
color: var(--foreground-3);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
/* What a field still needs, under it. */
|
|
135
|
+
.problem {
|
|
136
|
+
font-size: 13px;
|
|
137
|
+
color: var(--error) !important;
|
|
138
|
+
}
|
|
139
|
+
.hint {
|
|
140
|
+
margin-top: -6px;
|
|
141
|
+
font-size: 13px;
|
|
142
|
+
color: var(--foreground-3);
|
|
143
|
+
}
|
|
144
|
+
.field input[aria-invalid],
|
|
145
|
+
.field textarea[aria-invalid] {
|
|
146
|
+
border-color: var(--error);
|
|
147
|
+
}
|
|
148
|
+
.services[data-invalid] .group label > span {
|
|
149
|
+
border-color: color-mix(in srgb, var(--error) 55%, transparent);
|
|
150
|
+
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import type { FooterProperties } from "@sharadox/sharadox-web-library/component/footer/type";
|
|
2
2
|
/**
|
|
3
3
|
* The footer, in the grid frame: the brand (slogan, email), the services, the studio's sections with Start a Project,
|
|
4
|
-
* and the language and style;
|
|
5
|
-
* preferences, Portugal's complaints book)
|
|
6
|
-
* dispute notice.
|
|
4
|
+
* and the language and style; then everything legal in one row on the same columns: the copyright, the links (license,
|
|
5
|
+
* privacy, cookie preferences, Portugal's complaints book) with the consumer dispute notice, and the way back up.
|
|
7
6
|
*/
|
|
8
7
|
export declare function Footer({ locale, path }: FooterProperties): import("react").JSX.Element;
|
|
9
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/footer/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/footer/index.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AAE7F;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,EAAE,MAAM,EAAE,IAAS,EAAE,EAAE,gBAAgB,+BA+E7D"}
|
|
@@ -6,6 +6,7 @@ import { Cross } from "@sharadox/sharadox-web-library/component/cross";
|
|
|
6
6
|
import { LocaleLink } from "@sharadox/internationalization-web-library/locale-link";
|
|
7
7
|
import { StyleSwitch } from "@sharadox/sharadox-web-library/component/style-switch";
|
|
8
8
|
import { Wordmark } from "@sharadox/sharadox-web-library/component/wordmark";
|
|
9
|
+
import { Button } from "@sharadox/sharadox-web-library/component/button";
|
|
9
10
|
import { PreferencesLink } from "@sharadox/sharadox-web-library/component/consent/preferences-link";
|
|
10
11
|
import { CONSENT } from "@sharadox/sharadox-web-library/content/consent";
|
|
11
12
|
import { ComplaintsBookLink } from "@sharadox/legal-web-library/complaints-book-link";
|
|
@@ -26,13 +27,12 @@ import { LOCALES } from "@sharadox/sharadox-web-library/content/locale";
|
|
|
26
27
|
import styles from "./index.module.css";
|
|
27
28
|
/**
|
|
28
29
|
* The footer, in the grid frame: the brand (slogan, email), the services, the studio's sections with Start a Project,
|
|
29
|
-
* and the language and style;
|
|
30
|
-
* preferences, Portugal's complaints book)
|
|
31
|
-
* dispute notice.
|
|
30
|
+
* and the language and style; then everything legal in one row on the same columns: the copyright, the links (license,
|
|
31
|
+
* privacy, cookie preferences, Portugal's complaints book) with the consumer dispute notice, and the way back up.
|
|
32
32
|
*/
|
|
33
33
|
export function Footer({ locale, path = "" }) {
|
|
34
34
|
const home = path ? `/${locale}` : "";
|
|
35
35
|
const studio = [SECTION.touchpoints, SECTION.capabilities, SECTION.process, SECTION.contact];
|
|
36
|
-
return (_jsxs("footer", { className: styles.footer, children: [_jsx(Cross, { corner: "top-left" }), _jsx(Cross, { corner: "top-right" }), _jsxs("div", { className: styles.columns, children: [_jsxs("div", { className: styles.brand, children: [_jsx(Wordmark, { href: `/${locale}` }), _jsx("p", { className: styles.slogan, children: translate(SLOGAN, locale) }), _jsx("a", { href: `mailto:${SITE.email}`, className: styles.email, children: SITE.email })] }), _jsxs("nav", { "aria-label": translate(SECTION.services, locale), children: [_jsx("h2", { className: "monospace", children: translate(SECTION.services, locale) }), SERVICES.items.map((service) => (_jsx("a", { href: `${home}#${service.key}`, children: translate(service.title, locale) }, service.key)))] }), _jsxs("nav", { "aria-label": translate(FOOTER.studio, locale), children: [_jsx("h2", { className: "monospace", children: translate(FOOTER.studio, locale) }), studio.map((section) => (_jsx("a", { href: `${home}#${section.id}`, children: translate(section, locale) }, section.id))),
|
|
36
|
+
return (_jsxs("footer", { className: styles.footer, children: [_jsx(Cross, { corner: "top-left" }), _jsx(Cross, { corner: "top-right" }), _jsxs("div", { className: styles.columns, children: [_jsxs("div", { className: styles.brand, children: [_jsx(Wordmark, { href: `/${locale}` }), _jsx("p", { className: styles.slogan, children: translate(SLOGAN, locale) }), _jsx("a", { href: `mailto:${SITE.email}`, className: styles.email, children: SITE.email })] }), _jsxs("nav", { "aria-label": translate(SECTION.services, locale), children: [_jsx("h2", { className: "monospace", children: translate(SECTION.services, locale) }), SERVICES.items.map((service) => (_jsx("a", { href: `${home}#${service.key}`, children: translate(service.title, locale) }, service.key)))] }), _jsxs("nav", { "aria-label": translate(FOOTER.studio, locale), children: [_jsx("h2", { className: "monospace", children: translate(FOOTER.studio, locale) }), studio.map((section) => (_jsx("a", { href: `${home}#${section.id}`, children: translate(section, locale) }, section.id))), _jsx(Button, { href: `${home}#${SECTION.contact.id}`, size: "small", arrow: true, className: styles.start, children: translate(ACTION.startProject, locale) })] }), _jsxs("div", { className: styles.settings, children: [_jsx("h2", { className: "monospace", children: translate(LANGUAGE.label, locale) }), _jsx("span", { className: styles.languages, children: LOCALES.locales.map((other) => (_jsx(LocaleLink, { locale: other, href: `/${other}${path}`, current: other === locale, children: LANGUAGE.names[other] }, other))) }), _jsx("h2", { className: "monospace", children: translate(STYLE.label, locale) }), _jsx(StyleSwitch, { locale: locale, className: styles.style })] })] }), _jsxs("div", { className: styles.legal, children: [_jsxs("p", { className: `monospace ${styles.copyright}`, children: ["\u00A9 ", _jsx(CopyrightYears, { since: FOUNDED }), " ", separate("Sharadox", translate(FOOTER.rights, locale))] }), _jsxs("div", { className: styles.legalLinks, children: [_jsxs("nav", { "aria-label": translate(FOOTER.legal, locale), className: styles.links, children: [_jsx("a", { href: `/${locale}${LICENSE.path}`, "aria-current": path === LICENSE.path ? "page" : undefined, children: translate(LICENSE.title, locale) }), _jsx("a", { href: `/${locale}${PRIVACY_PAGE.path}`, "aria-current": path === PRIVACY_PAGE.path ? "page" : undefined, children: translate(PRIVACY_PAGE.title, locale) }), _jsx(PreferencesLink, { label: translate(CONSENT.preferences, locale) }), _jsx(ComplaintsBookLink, { locale: locale })] }), _jsx("p", { className: styles.disputes, children: _jsx(DisputeNotice, { center: DISPUTE_RESOLUTION_CENTERS.algarve, locale: locale }) })] }), _jsx("div", { className: styles.back, children: _jsxs("a", { href: "#top", className: styles.top, children: [translate(FOOTER.top, locale), _jsx("span", { className: styles.circle, "aria-hidden": true, children: _jsx(Icon, { name: "chevron-up", strokeWidth: 1.8 }) })] }) })] })] }));
|
|
37
37
|
}
|
|
38
38
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/footer/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,KAAK,EAAE,MAAM,gDAAgD,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,wDAAwD,CAAC;AACpF,OAAO,EAAE,WAAW,EAAE,MAAM,uDAAuD,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,mDAAmD,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,mEAAmE,CAAC;AACpG,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AACtF,OAAO,E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