@alfadocs/ui-kit-debug 0.10.0 → 0.12.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/dist/_chunks/_commonjsHelpers-C6fGbg64.js +7 -0
- package/dist/_chunks/_commonjsHelpers-C6fGbg64.js.map +1 -0
- package/dist/_chunks/{ai-prompt-input-bAJwYu84.js → ai-prompt-input-noh-N3cf.js} +2 -2
- package/dist/_chunks/{ai-prompt-input-bAJwYu84.js.map → ai-prompt-input-noh-N3cf.js.map} +1 -1
- package/dist/_chunks/{contact-card-VJIUqKB2.js → contact-card-DTQUMetD.js} +22 -38
- package/dist/_chunks/contact-card-DTQUMetD.js.map +1 -0
- package/dist/_chunks/external-link-C6F25E6k.js +16 -0
- package/dist/_chunks/external-link-C6F25E6k.js.map +1 -0
- package/dist/_chunks/{file-upload-DIecAfC-.js → file-upload-nMh-1jDD.js} +2 -2
- package/dist/_chunks/{file-upload-DIecAfC-.js.map → file-upload-nMh-1jDD.js.map} +1 -1
- package/dist/_chunks/{index-CeY1nNvd.js → index-CFoBa86t.js} +61 -63
- package/dist/_chunks/{index-CeY1nNvd.js.map → index-CFoBa86t.js.map} +1 -1
- package/dist/_chunks/{link-BGpwaFik.js → link-DmM5IevO.js} +16 -26
- package/dist/_chunks/link-DmM5IevO.js.map +1 -0
- package/dist/_chunks/map-pin-B8STOPMJ.js +21 -0
- package/dist/_chunks/map-pin-B8STOPMJ.js.map +1 -0
- package/dist/_chunks/map-view-Dd48BxVB.js +1941 -0
- package/dist/_chunks/map-view-Dd48BxVB.js.map +1 -0
- package/dist/_chunks/{pdf-viewer-CNETPubN.js → pdf-viewer-CnEJvmXC.js} +407 -382
- package/dist/_chunks/pdf-viewer-CnEJvmXC.js.map +1 -0
- package/dist/_chunks/whatsapp-button-Bj5FIhpC.js +175 -0
- package/dist/_chunks/whatsapp-button-Bj5FIhpC.js.map +1 -0
- package/dist/agent-catalog.json +53 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/contact-card/index.js +1 -1
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/map-view/index.d.ts +3 -0
- package/dist/components/map-view/index.d.ts.map +1 -0
- package/dist/components/map-view/index.js +5 -0
- package/dist/components/map-view/index.js.map +1 -0
- package/dist/components/map-view/map-view.agent.d.ts +4 -0
- package/dist/components/map-view/map-view.agent.d.ts.map +1 -0
- package/dist/components/map-view/map-view.d.ts +78 -0
- package/dist/components/map-view/map-view.d.ts.map +1 -0
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/pdf-viewer/pdf-viewer.d.ts +62 -0
- package/dist/components/pdf-viewer/pdf-viewer.d.ts.map +1 -1
- package/dist/components/whatsapp-button/index.d.ts +3 -0
- package/dist/components/whatsapp-button/index.d.ts.map +1 -0
- package/dist/components/whatsapp-button/index.js +5 -0
- package/dist/components/whatsapp-button/index.js.map +1 -0
- package/dist/components/whatsapp-button/whatsapp-button.d.ts +32 -0
- package/dist/components/whatsapp-button/whatsapp-button.d.ts.map +1 -0
- package/dist/i18n/config.js +47 -5
- package/dist/i18n/config.js.map +1 -1
- package/dist/i18n/resources.d.ts +42 -0
- package/dist/i18n/resources.d.ts.map +1 -1
- package/dist/index.js +348 -344
- package/dist/index.js.map +1 -1
- package/dist/locales/de.json +15 -1
- package/dist/locales/en.json +15 -1
- package/dist/locales/it.json +15 -1
- package/dist/tokens/google-maps-theme.d.ts +15 -0
- package/dist/tokens/google-maps-theme.d.ts.map +1 -0
- package/dist/tokens.css +1 -1
- package/package.json +15 -1
- package/dist/_chunks/contact-card-VJIUqKB2.js.map +0 -1
- package/dist/_chunks/link-BGpwaFik.js.map +0 -1
- package/dist/_chunks/pdf-viewer-CNETPubN.js.map +0 -1
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
export interface MapLatLng {
|
|
4
|
+
lat: number;
|
|
5
|
+
lng: number;
|
|
6
|
+
}
|
|
7
|
+
export interface MapMarker {
|
|
8
|
+
/** Stable id — used for keyed re-rendering and `onMarkerClick`. */
|
|
9
|
+
id: string;
|
|
10
|
+
/** Position in lat/lng. */
|
|
11
|
+
position: MapLatLng;
|
|
12
|
+
/** Optional accessible label — falls back to the id. */
|
|
13
|
+
label?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface MapViewHandle {
|
|
16
|
+
/** Pan the map to a new centre without changing zoom. */
|
|
17
|
+
panTo: (position: MapLatLng) => void;
|
|
18
|
+
/** Set zoom (typical range 1–20). */
|
|
19
|
+
setZoom: (zoom: number) => void;
|
|
20
|
+
/** Programmatically select a marker (fires `onMarkerClick`). */
|
|
21
|
+
selectMarker: (id: string | null) => void;
|
|
22
|
+
}
|
|
23
|
+
export interface MapViewProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onClick'>, VariantProps<typeof mapViewVariants> {
|
|
24
|
+
/** Opaque instance id — emitted as `data-component-id`. */
|
|
25
|
+
id?: string;
|
|
26
|
+
/** Google Maps JS API key. Consumer-owned; never cached by the kit. */
|
|
27
|
+
apiKey: string;
|
|
28
|
+
/** Map centre (lat/lng). Required so the consent placeholder can also use it. */
|
|
29
|
+
center: MapLatLng;
|
|
30
|
+
/** Initial zoom. Default 15 (city-block detail, matches booking site). */
|
|
31
|
+
zoom?: number;
|
|
32
|
+
/**
|
|
33
|
+
* Markers to render. The first marker auto-selects when no
|
|
34
|
+
* `selectedMarkerId` is given.
|
|
35
|
+
*/
|
|
36
|
+
markers?: MapMarker[];
|
|
37
|
+
/** Controlled selection — fires `onMarkerClick` with the new id (or null on map click). */
|
|
38
|
+
selectedMarkerId?: string | null;
|
|
39
|
+
/** Fires when a marker is clicked, or `null` when the map background is clicked. */
|
|
40
|
+
onMarkerClick?: (id: string | null) => void;
|
|
41
|
+
/**
|
|
42
|
+
* GDPR consent gate. When `false` (default) the component renders a
|
|
43
|
+
* placeholder with a translated CTA — the Maps JS API is **not**
|
|
44
|
+
* loaded. Flip to `true` once the consumer has captured opt-in.
|
|
45
|
+
*/
|
|
46
|
+
consentGranted?: boolean;
|
|
47
|
+
/** Fires when the consumer clicks the "Load map" CTA in the placeholder. */
|
|
48
|
+
onConsentRequest?: () => void;
|
|
49
|
+
/**
|
|
50
|
+
* Optional address string shown in the consent placeholder so the
|
|
51
|
+
* surface is useful before the map loads. Also used to build the
|
|
52
|
+
* fallback "Open in Google Maps" link target.
|
|
53
|
+
*/
|
|
54
|
+
address?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Cloud-styled-map id. When set, takes precedence over the JSON
|
|
57
|
+
* `styles` array and disables the theme-bridge re-fire. Use when
|
|
58
|
+
* you've provisioned a styled map in Google Cloud Console.
|
|
59
|
+
*/
|
|
60
|
+
mapId?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Override the consent-placeholder description text. The default
|
|
63
|
+
* (`t('mapView.consentDescription')`) is a generic IP-disclosure
|
|
64
|
+
* line. Consumers operating under specific GDPR / ePrivacy
|
|
65
|
+
* disclosures (jurisdiction, named controller, policy link) should
|
|
66
|
+
* supply their own text via this prop. Pass any `ReactNode` — a
|
|
67
|
+
* paragraph, a localised `<Trans>` instance, etc.
|
|
68
|
+
*/
|
|
69
|
+
consentDescription?: ReactNode;
|
|
70
|
+
/** Accessible label for the map region. Falls back to `t('mapView.label')`. */
|
|
71
|
+
ariaLabel?: string;
|
|
72
|
+
}
|
|
73
|
+
declare const mapViewVariants: (props?: ({
|
|
74
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
75
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
76
|
+
export declare const MapView: import("react").ForwardRefExoticComponent<MapViewProps & import("react").RefAttributes<MapViewHandle>>;
|
|
77
|
+
export {};
|
|
78
|
+
//# sourceMappingURL=map-view.d.ts.map
|
|
@@ -0,0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E,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC5C;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,4EAA4E;IAC5E,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;;OAOG;IACH,kBAAkB,CAAC,EAAE,SAAS,CAAC;IAC/B,+EAA+E;IAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAMD,QAAA,MAAM,eAAe;;8EAiBpB,CAAC;AAuHF,eAAO,MAAM,OAAO,wGA2NnB,CAAC"}
|
|
@@ -1,4 +1,30 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
1
2
|
export type PDFZoomPreset = 'fit-width' | 'fit-page' | 'actual-size' | number;
|
|
3
|
+
export type PDFPageRotation = 0 | 90 | 180 | 270;
|
|
4
|
+
/**
|
|
5
|
+
* Arguments passed to `renderPageOverlay` for each rendered page.
|
|
6
|
+
*
|
|
7
|
+
* `pageWidthCss` and `pageHeightCss` are post-zoom, post-rotation CSS
|
|
8
|
+
* pixel dimensions — exactly the rendered box the consumer is
|
|
9
|
+
* positioning content over. They update on resize, zoom, and rotation
|
|
10
|
+
* changes; the render-prop re-runs on every change so positioned
|
|
11
|
+
* children stay in sync with the page geometry without the consumer
|
|
12
|
+
* touching a `ResizeObserver`.
|
|
13
|
+
*/
|
|
14
|
+
export interface PDFPageOverlayArgs {
|
|
15
|
+
/** 1-based page number. */
|
|
16
|
+
pageNumber: number;
|
|
17
|
+
/** CSS-pixel width of the rendered page (post-zoom, post-rotation). */
|
|
18
|
+
pageWidthCss: number;
|
|
19
|
+
/** CSS-pixel height of the rendered page. */
|
|
20
|
+
pageHeightCss: number;
|
|
21
|
+
/**
|
|
22
|
+
* Effective rotation of the rendered viewport in degrees. Reflects
|
|
23
|
+
* `pageRotation` (if set) overriding the page's intrinsic `/Rotate`,
|
|
24
|
+
* otherwise the intrinsic rotation.
|
|
25
|
+
*/
|
|
26
|
+
rotation: PDFPageRotation;
|
|
27
|
+
}
|
|
2
28
|
export interface PDFViewerProps {
|
|
3
29
|
/** Opaque instance id — emitted as `data-component-id` for the agent registry. */
|
|
4
30
|
id?: string;
|
|
@@ -8,6 +34,42 @@ export interface PDFViewerProps {
|
|
|
8
34
|
initialPage?: number;
|
|
9
35
|
/** Initial zoom preset. Default 'fit-width'. */
|
|
10
36
|
initialZoom?: PDFZoomPreset;
|
|
37
|
+
/**
|
|
38
|
+
* Force every page to render at this rotation, overriding the page's
|
|
39
|
+
* intrinsic `/Rotate` metadata. Useful for scanned PDFs that opened
|
|
40
|
+
* sideways, and for the signing-flow consumer that lets users
|
|
41
|
+
* straighten misrotated pages before placing signature fields.
|
|
42
|
+
* `undefined` (default) honours each page's intrinsic rotation.
|
|
43
|
+
*/
|
|
44
|
+
pageRotation?: PDFPageRotation;
|
|
45
|
+
/**
|
|
46
|
+
* Render a layer of arbitrary React content positioned over each
|
|
47
|
+
* rendered PDF page — signature fields, redaction boxes, annotation
|
|
48
|
+
* pins, anything that needs to live in PDF coordinate space.
|
|
49
|
+
*
|
|
50
|
+
* The render-prop is invoked **only for pages currently inside the
|
|
51
|
+
* IntersectionObserver buffer** (visible ±1), and the returned tree
|
|
52
|
+
* unmounts when the page leaves the buffer. Consumer-held timers /
|
|
53
|
+
* fetches / subscriptions in overlay children therefore tear down
|
|
54
|
+
* automatically with the page. The overlay container is absolutely
|
|
55
|
+
* positioned, sized to the rendered page, and has
|
|
56
|
+
* `pointer-events: auto` so consumer children can be interactive.
|
|
57
|
+
* Consumers position children themselves (typically
|
|
58
|
+
* `position: absolute; inset-inline-start: %; inset-block-start: %`).
|
|
59
|
+
*
|
|
60
|
+
* The render-prop re-runs on resize, zoom, and rotation changes so
|
|
61
|
+
* positioned children stay aligned without the consumer wiring a
|
|
62
|
+
* `ResizeObserver`. Pages already declare `data-page-number` on the
|
|
63
|
+
* `<article>` ancestor; consumer-rendered children should be
|
|
64
|
+
* keyboard-reachable per the kit's a11y contract.
|
|
65
|
+
*
|
|
66
|
+
* Composition note: PDF.js's `AnnotationLayer` (for native form
|
|
67
|
+
* fields and link annotations) is not yet wired in — see the file
|
|
68
|
+
* header TODO. When it lands, `renderPageOverlay` will compose
|
|
69
|
+
* **above** the AnnotationLayer in z-order, since interactive
|
|
70
|
+
* consumer content should sit on top of intrinsic page widgets.
|
|
71
|
+
*/
|
|
72
|
+
renderPageOverlay?: (args: PDFPageOverlayArgs) => ReactNode;
|
|
11
73
|
/** Emits when the currently-most-visible page changes. */
|
|
12
74
|
onPageChange?: (page: number) => void;
|
|
13
75
|
/** Emits once the PDF document has loaded. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf-viewer.d.ts","sourceRoot":"","sources":["../../../src/components/pdf-viewer/pdf-viewer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf-viewer.d.ts","sourceRoot":"","sources":["../../../src/components/pdf-viewer/pdf-viewer.tsx"],"names":[],"mappings":"AAyBA,OAAO,EAWL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAuCf,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG,UAAU,GAAG,aAAa,GAAG,MAAM,CAAC;AAE9E,MAAM,MAAM,eAAe,GAAG,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,GAAG,CAAC;AAEjD;;;;;;;;;GASG;AACH,MAAM,WAAW,kBAAkB;IACjC,2BAA2B;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,YAAY,EAAE,MAAM,CAAC;IACrB,6CAA6C;IAC7C,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,QAAQ,EAAE,eAAe,CAAC;CAC3B;AAED,MAAM,WAAW,cAAc;IAC7B,kFAAkF;IAClF,EAAE,CAAC,EAAE,MAAM,CAAC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,EAAE,qBAAqB,EAAE,eAAe,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/whatsapp-button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type AnchorHTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const rootVariants: (props?: ({
|
|
4
|
+
variant?: "pill" | "fab" | null | undefined;
|
|
5
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
declare const positionVariants: (props?: ({
|
|
8
|
+
position?: "bottom-end" | "bottom-start" | "static" | null | undefined;
|
|
9
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
10
|
+
export interface WhatsAppButtonProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'href' | 'children'>, VariantProps<typeof rootVariants>, VariantProps<typeof positionVariants> {
|
|
11
|
+
/**
|
|
12
|
+
* Phone number to chat to. E.164 format is recommended
|
|
13
|
+
* (e.g. `+393331234567`). Any non-digit characters are stripped
|
|
14
|
+
* before the URL is built — `wa.me` requires digits only.
|
|
15
|
+
*/
|
|
16
|
+
phoneNumber: string;
|
|
17
|
+
/**
|
|
18
|
+
* Optional prefilled message. The receiver sees this in their
|
|
19
|
+
* compose box. Keep it short and human — long pasted text is the
|
|
20
|
+
* single most common reason consumers drop the affordance.
|
|
21
|
+
*/
|
|
22
|
+
message?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Override the visible / accessible label. Defaults to
|
|
25
|
+
* `t('whatsApp.label')` for the pill variant and
|
|
26
|
+
* `t('whatsApp.fabLabel')` for the FAB.
|
|
27
|
+
*/
|
|
28
|
+
label?: ReactNode;
|
|
29
|
+
}
|
|
30
|
+
export declare const WhatsAppButton: import("react").ForwardRefExoticComponent<WhatsAppButtonProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=whatsapp-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"whatsapp-button.d.ts","sourceRoot":"","sources":["../../../src/components/whatsapp-button/whatsapp-button.tsx"],"names":[],"mappings":"AAqBA,OAAO,EAGL,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AA8BlE,QAAA,MAAM,YAAY;;;8EAsFjB,CAAC;AAEF,QAAA,MAAM,gBAAgB;;8EAWpB,CAAC;AAyCH,MAAM,WAAW,mBACf,SACE,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,EAClE,YAAY,CAAC,OAAO,YAAY,CAAC,EACjC,YAAY,CAAC,OAAO,gBAAgB,CAAC;IACvC;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAMD,eAAO,MAAM,cAAc,mHAqG1B,CAAC"}
|
package/dist/i18n/config.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import t from "i18next";
|
|
2
|
-
import { default as
|
|
2
|
+
import { default as f } from "i18next";
|
|
3
3
|
import { initReactI18next as l } from "react-i18next";
|
|
4
4
|
const a = {
|
|
5
5
|
common: {
|
|
@@ -827,7 +827,21 @@ const a = {
|
|
|
827
827
|
print: "Print",
|
|
828
828
|
download: "Download",
|
|
829
829
|
loading: "Loading PDF…",
|
|
830
|
-
error: "Failed to load PDF"
|
|
830
|
+
error: "Failed to load PDF",
|
|
831
|
+
pageOverlay: "Page {{page}} overlay"
|
|
832
|
+
},
|
|
833
|
+
mapView: {
|
|
834
|
+
label: "Map",
|
|
835
|
+
markerLabel: "Marker for {{label}}",
|
|
836
|
+
consentTitle: "Show interactive map",
|
|
837
|
+
consentDescription: "Loading the map shares your IP address with Google so it can serve map tiles. Continue?",
|
|
838
|
+
consentCta: "Load map",
|
|
839
|
+
openInGoogleMaps: "Open in Google Maps"
|
|
840
|
+
},
|
|
841
|
+
whatsApp: {
|
|
842
|
+
label: "Chat on WhatsApp",
|
|
843
|
+
fabLabel: "Open WhatsApp chat",
|
|
844
|
+
questionPrompt: "Have questions? Chat on WhatsApp"
|
|
831
845
|
},
|
|
832
846
|
paywall: {
|
|
833
847
|
title: "Upgrade to keep going",
|
|
@@ -1777,7 +1791,21 @@ const a = {
|
|
|
1777
1791
|
print: "Stampa",
|
|
1778
1792
|
download: "Scarica",
|
|
1779
1793
|
loading: "Caricamento PDF…",
|
|
1780
|
-
error: "Impossibile caricare il PDF"
|
|
1794
|
+
error: "Impossibile caricare il PDF",
|
|
1795
|
+
pageOverlay: "Overlay pagina {{page}}"
|
|
1796
|
+
},
|
|
1797
|
+
mapView: {
|
|
1798
|
+
label: "Mappa",
|
|
1799
|
+
markerLabel: "Indicatore per {{label}}",
|
|
1800
|
+
consentTitle: "Mostra mappa interattiva",
|
|
1801
|
+
consentDescription: "Caricando la mappa il tuo indirizzo IP verrà condiviso con Google per ricevere le tile della mappa. Vuoi continuare?",
|
|
1802
|
+
consentCta: "Carica mappa",
|
|
1803
|
+
openInGoogleMaps: "Apri in Google Maps"
|
|
1804
|
+
},
|
|
1805
|
+
whatsApp: {
|
|
1806
|
+
label: "Scrivici su WhatsApp",
|
|
1807
|
+
fabLabel: "Apri chat WhatsApp",
|
|
1808
|
+
questionPrompt: "Hai domande? Scrivici su WhatsApp"
|
|
1781
1809
|
},
|
|
1782
1810
|
paywall: {
|
|
1783
1811
|
title: "Esegui l'upgrade per continuare",
|
|
@@ -2727,7 +2755,21 @@ const a = {
|
|
|
2727
2755
|
print: "Drucken",
|
|
2728
2756
|
download: "Herunterladen",
|
|
2729
2757
|
loading: "PDF wird geladen …",
|
|
2730
|
-
error: "PDF konnte nicht geladen werden"
|
|
2758
|
+
error: "PDF konnte nicht geladen werden",
|
|
2759
|
+
pageOverlay: "Seitenoverlay {{page}}"
|
|
2760
|
+
},
|
|
2761
|
+
mapView: {
|
|
2762
|
+
label: "Karte",
|
|
2763
|
+
markerLabel: "Markierung für {{label}}",
|
|
2764
|
+
consentTitle: "Interaktive Karte anzeigen",
|
|
2765
|
+
consentDescription: "Beim Laden der Karte wird Ihre IP-Adresse an Google übermittelt, um die Kartenkacheln zu laden. Fortfahren?",
|
|
2766
|
+
consentCta: "Karte laden",
|
|
2767
|
+
openInGoogleMaps: "In Google Maps öffnen"
|
|
2768
|
+
},
|
|
2769
|
+
whatsApp: {
|
|
2770
|
+
label: "Auf WhatsApp schreiben",
|
|
2771
|
+
fabLabel: "WhatsApp-Chat öffnen",
|
|
2772
|
+
questionPrompt: "Fragen? Auf WhatsApp schreiben"
|
|
2731
2773
|
},
|
|
2732
2774
|
paywall: {
|
|
2733
2775
|
title: "Upgraden, um fortzufahren",
|
|
@@ -2938,7 +2980,7 @@ export {
|
|
|
2938
2980
|
p as LOCALES_WITH_BUNDLES,
|
|
2939
2981
|
o as arUi,
|
|
2940
2982
|
i as deUi,
|
|
2941
|
-
|
|
2983
|
+
f as default,
|
|
2942
2984
|
a as enUi,
|
|
2943
2985
|
n as itUi,
|
|
2944
2986
|
g as registerUiBundle,
|