@arkyn/components 3.0.1-beta.155 → 3.0.1-beta.156
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/components/calendar/_viewService.d.ts +1 -1
- package/dist/components/fullCalendar/_viewService.d.ts +2 -2
- package/dist/hooks/useScopedParams.d.ts +1 -1
- package/dist/index.js +4683 -4347
- package/dist/modules/components/alert/alertContainer/index.js +20 -25
- package/dist/modules/components/alert/alertContent/index.js +8 -11
- package/dist/modules/components/alert/alertDescription/index.js +8 -11
- package/dist/modules/components/alert/alertIcon/index.js +19 -27
- package/dist/modules/components/alert/alertTitle/index.js +8 -11
- package/dist/modules/components/audioPlayer/index.js +75 -74
- package/dist/modules/components/audioUpload/hasFileContent/index.js +62 -54
- package/dist/modules/components/audioUpload/index.js +79 -71
- package/dist/modules/components/audioUpload/noFileContent/index.js +45 -35
- package/dist/modules/components/badge/index.js +22 -26
- package/dist/modules/components/button/index.js +32 -39
- package/dist/modules/components/calendar/_calendarProvider.js +63 -38
- package/dist/modules/components/calendar/_viewService.js +140 -132
- package/dist/modules/components/calendar/calendarContainer/index.js +7 -10
- package/dist/modules/components/calendar/calendarHeader/index.js +72 -51
- package/dist/modules/components/calendar/calendarTableBody/index.js +10 -12
- package/dist/modules/components/calendar/calendarTableContainer/index.js +7 -10
- package/dist/modules/components/calendar/calendarTableHeader/index.js +10 -13
- package/dist/modules/components/calendar/calendarTableTd/index.js +23 -20
- package/dist/modules/components/calendar/index.js +49 -31
- package/dist/modules/components/cardTab/cardTabButton/index.js +29 -19
- package/dist/modules/components/cardTab/cardTabContainer/index.js +28 -22
- package/dist/modules/components/cardTab/cardTabContext.js +11 -13
- package/dist/modules/components/checkbox/index.js +64 -37
- package/dist/modules/components/clientOnly.js +8 -8
- package/dist/modules/components/currencyInput/index.js +138 -110
- package/dist/modules/components/divider/index.js +11 -10
- package/dist/modules/components/drawer/drawerContainer/index.js +43 -40
- package/dist/modules/components/drawer/drawerContext.js +11 -13
- package/dist/modules/components/drawer/drawerHeader/index.js +27 -20
- package/dist/modules/components/facebookPixel/facebookPixel.client.js +18 -8
- package/dist/modules/components/facebookPixel/index.js +8 -8
- package/dist/modules/components/facebookPixel/pixel.js +52 -47
- package/dist/modules/components/fieldError/index.js +8 -12
- package/dist/modules/components/fieldLabel/index.js +12 -11
- package/dist/modules/components/fieldWrapper/index.js +13 -12
- package/dist/modules/components/fileUpload/hasFileContent/index.js +67 -59
- package/dist/modules/components/fileUpload/index.js +72 -65
- package/dist/modules/components/fileUpload/noFileContent/index.js +45 -35
- package/dist/modules/components/fullCalendar/_fullCalendarProvider.js +46 -33
- package/dist/modules/components/fullCalendar/_viewService.js +105 -100
- package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarContainer/index.js +7 -10
- package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarEvent/index.js +78 -70
- package/dist/modules/components/fullCalendar/dayCalendar/dayCalendarRow/index.js +33 -28
- package/dist/modules/components/fullCalendar/dayCalendar/index.js +9 -12
- package/dist/modules/components/fullCalendar/fullCalendarContainer/index.js +7 -10
- package/dist/modules/components/fullCalendar/fullCalendarHeader/index.js +70 -67
- package/dist/modules/components/fullCalendar/index.js +30 -30
- package/dist/modules/components/fullCalendar/monthlyCalendar/index.js +12 -9
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarEvent/index.js +36 -28
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableBody/index.js +9 -11
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableContainer/index.js +9 -10
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableHeader/index.js +10 -13
- package/dist/modules/components/fullCalendar/monthlyCalendar/monthlyCalendarTableTd/index.js +36 -35
- package/dist/modules/components/fullCalendar/weekCalendar/index.js +11 -8
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarEvent/index.js +78 -70
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableBody/index.js +20 -17
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableContainer/index.js +8 -9
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableHeader/index.js +19 -16
- package/dist/modules/components/fullCalendar/weekCalendar/weekCalendarTableTd/index.js +39 -34
- package/dist/modules/components/googleAnalytics/googleAnalytics.client.js +7 -7
- package/dist/modules/components/googleAnalytics/googleAnalytics.js +17 -17
- package/dist/modules/components/googleAnalytics/index.js +9 -9
- package/dist/modules/components/googleAnalytics/snippets/generateGAElements.js +12 -10
- package/dist/modules/components/googleTagManager/googleTagManager.client.js +6 -6
- package/dist/modules/components/googleTagManager/googleTagManager.js +48 -44
- package/dist/modules/components/googleTagManager/index.js +27 -16
- package/dist/modules/components/googleTagManager/snippets/appendToDataLayer.js +8 -8
- package/dist/modules/components/googleTagManager/snippets/generateGTMElements.js +20 -19
- package/dist/modules/components/iconButton/index.js +29 -31
- package/dist/modules/components/imageUpload/hasFileContent/index.js +63 -46
- package/dist/modules/components/imageUpload/index.js +82 -65
- package/dist/modules/components/imageUpload/noFileContent/index.js +45 -35
- package/dist/modules/components/input/index.js +120 -92
- package/dist/modules/components/mapView/index.js +31 -27
- package/dist/modules/components/mapView/mapView.client.js +51 -49
- package/dist/modules/components/maskedInput/index.js +112 -101
- package/dist/modules/components/modal/modalContainer/index.js +42 -49
- package/dist/modules/components/modal/modalContext.js +11 -13
- package/dist/modules/components/modal/modalFooter/index.js +7 -10
- package/dist/modules/components/modal/modalHeader/index.js +27 -20
- package/dist/modules/components/multiSelect/index.js +154 -115
- package/dist/modules/components/multiSelect/multiSelectChevron/index.js +21 -18
- package/dist/modules/components/multiSelect/multiSelectContainer/index.js +29 -13
- package/dist/modules/components/multiSelect/multiSelectContent/index.js +8 -11
- package/dist/modules/components/multiSelect/multiSelectMark/index.js +22 -19
- package/dist/modules/components/multiSelect/multiSelectOption/index.js +13 -17
- package/dist/modules/components/multiSelect/multiSelectOptionsContainer/index.js +45 -35
- package/dist/modules/components/multiSelect/multiSelectOverlay/index.js +8 -11
- package/dist/modules/components/multiSelect/multiSelectSpinner/index.js +16 -13
- package/dist/modules/components/pagination/chevronButton/index.js +17 -17
- package/dist/modules/components/pagination/currentButton/index.js +7 -11
- package/dist/modules/components/pagination/index.js +83 -51
- package/dist/modules/components/pagination/pageButton/index.js +8 -12
- package/dist/modules/components/pagination/paginationService.js +48 -33
- package/dist/modules/components/pagination/spread/index.js +7 -10
- package/dist/modules/components/phoneInput/index.js +151 -103
- package/dist/modules/components/phoneInput/phoneInputContainer/index.js +19 -12
- package/dist/modules/components/phoneInput/phoneInputCountriesOverlay/index.js +8 -11
- package/dist/modules/components/phoneInput/phoneInputCountryOption/index.js +15 -23
- package/dist/modules/components/phoneInput/phoneInputCountryOptionsContainer/index.js +43 -33
- package/dist/modules/components/phoneInput/phoneInputCountrySelector/index.js +21 -25
- package/dist/modules/components/phoneInput/phoneInputMask/index.js +62 -46
- package/dist/modules/components/popover/index.js +36 -37
- package/dist/modules/components/radio/radioBox/index.js +42 -24
- package/dist/modules/components/radio/radioContext.js +18 -20
- package/dist/modules/components/radio/radioGroup/index.js +64 -41
- package/dist/modules/components/richText/blockButton/index.js +23 -20
- package/dist/modules/components/richText/element/index.js +58 -72
- package/dist/modules/components/richText/index.js +135 -143
- package/dist/modules/components/richText/insertImage/index.js +105 -94
- package/dist/modules/components/richText/insertVideo/index.js +97 -85
- package/dist/modules/components/richText/leaf/index.js +6 -9
- package/dist/modules/components/richText/markButton/index.js +22 -19
- package/dist/modules/components/richText/toolbar/index.js +7 -10
- package/dist/modules/components/searchPlaces.js +66 -57
- package/dist/modules/components/select/index.js +144 -112
- package/dist/modules/components/select/selectChevron/index.js +21 -18
- package/dist/modules/components/select/selectContainer/index.js +29 -13
- package/dist/modules/components/select/selectContent/index.js +8 -11
- package/dist/modules/components/select/selectOption/index.js +13 -17
- package/dist/modules/components/select/selectOptionsContainer/index.js +45 -35
- package/dist/modules/components/select/selectOverlay/index.js +8 -11
- package/dist/modules/components/select/selectSpinner/index.js +9 -13
- package/dist/modules/components/slider/index.js +41 -34
- package/dist/modules/components/switch/index.js +62 -35
- package/dist/modules/components/tab/tabButton/index.js +29 -19
- package/dist/modules/components/tab/tabContainer/index.js +28 -22
- package/dist/modules/components/tab/tabContext.js +10 -12
- package/dist/modules/components/table/tableBody/index.js +14 -19
- package/dist/modules/components/table/tableCaption/index.js +8 -15
- package/dist/modules/components/table/tableContainer/index.js +8 -12
- package/dist/modules/components/table/tableFooter/index.js +11 -18
- package/dist/modules/components/table/tableHeader/index.js +11 -12
- package/dist/modules/components/textarea/index.js +69 -51
- package/dist/modules/components/tooltip/index.js +45 -34
- package/dist/modules/hooks/useAutomation.js +27 -35
- package/dist/modules/hooks/useDrawer.js +19 -17
- package/dist/modules/hooks/useForm.js +6 -6
- package/dist/modules/hooks/useHydrated.js +12 -7
- package/dist/modules/hooks/useModal.js +19 -17
- package/dist/modules/hooks/useScopedParams.js +17 -17
- package/dist/modules/hooks/useScrollLock.js +19 -19
- package/dist/modules/hooks/useSearchAutomation.js +14 -31
- package/dist/modules/hooks/useSlider.js +13 -13
- package/dist/modules/hooks/useToast.js +9 -8
- package/dist/modules/index.js +144 -72
- package/dist/modules/providers/drawerProvider.js +30 -35
- package/dist/modules/providers/formProvider.js +16 -11
- package/dist/modules/providers/modalProvider.js +33 -39
- package/dist/modules/providers/placesProvider.js +16 -16
- package/dist/modules/providers/toastProvider.js +51 -45
- package/dist/modules/services/extractTextFromNode.js +6 -6
- package/dist/modules/services/fieldTemplate.js +23 -22
- package/dist/modules/services/iconRenderer.js +7 -14
- package/dist/modules/services/isBlockActive.js +14 -12
- package/dist/modules/services/isMarkActive.js +6 -6
- package/dist/modules/services/maskCurrencyValues.js +12 -11
- package/dist/modules/services/toHtml.js +6 -6
- package/dist/modules/services/toRichTextValue.js +7 -7
- package/dist/modules/services/toggleBlock.js +19 -20
- package/dist/modules/services/toggleMark.js +7 -7
- package/dist/modules/style.css +1 -0
- package/dist/modules/templates/badResponses.js +13 -13
- package/dist/modules/templates/richTextTemplates.js +14 -17
- package/dist/modules/templates/successResponses.js +4 -9
- package/dist/modules/utils/phoneInputUtilities.js +28 -18
- package/dist/modules/utils/richTextUtilities.js +75 -88
- package/dist/services/fieldTemplate.d.ts +1 -1
- package/dist/services/fieldTemplate.d.ts.map +1 -1
- package/dist/style.css +1 -0
- package/package.json +65 -65
- package/dist/components.css +0 -2
- package/dist/modules/components.css +0 -2
|
@@ -1,35 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { useFullCalendar as u } from "../../_fullCalendarProvider.js";
|
|
3
|
+
import { WeekCalendarEvent as C } from "../weekCalendarEvent/index.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
function D(c) {
|
|
6
|
+
const { day: a, month: t, year: r, dayOwner: s, timeInMinutes: o } = c, { blockedTimestamps: m, onClickDate: i } = u();
|
|
7
|
+
function l() {
|
|
8
|
+
const n = new Date(r, t, a);
|
|
9
|
+
return m.some(
|
|
10
|
+
(e) => n >= e.initialDate && n <= e.endDate
|
|
11
|
+
);
|
|
12
|
+
}
|
|
13
|
+
function k(n) {
|
|
14
|
+
if (n.stopPropagation(), !l() && i) {
|
|
15
|
+
const e = new Date(r, t, a);
|
|
16
|
+
e.setHours(0, o, 0, 0), i(e);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return /* @__PURE__ */ d(
|
|
20
|
+
"td",
|
|
21
|
+
{
|
|
22
|
+
className: `arkynWeekCalendarTableTd ${s} ${l() ? "blocked" : ""}`,
|
|
23
|
+
"data-day": a,
|
|
24
|
+
"data-time": o,
|
|
25
|
+
onClick: k,
|
|
26
|
+
children: /* @__PURE__ */ d("div", { className: "arkynWeekCalendarTableTdContent", children: /* @__PURE__ */ d(
|
|
27
|
+
C,
|
|
28
|
+
{
|
|
29
|
+
day: a,
|
|
30
|
+
month: t,
|
|
31
|
+
year: r,
|
|
32
|
+
timeInMinutes: o
|
|
33
|
+
}
|
|
34
|
+
) })
|
|
35
|
+
}
|
|
36
|
+
);
|
|
33
37
|
}
|
|
34
|
-
|
|
35
|
-
|
|
38
|
+
export {
|
|
39
|
+
D as WeekCalendarTableTd
|
|
40
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
return new e().initialize(r), /* @__PURE__ */ n(t, {});
|
|
1
|
+
import { jsx as t, Fragment as i } from "react/jsx-runtime";
|
|
2
|
+
import { GoogleAnalytics as n } from "./googleAnalytics.js";
|
|
3
|
+
function g(o) {
|
|
4
|
+
return new n().initialize(o), /* @__PURE__ */ t(i, {});
|
|
6
5
|
}
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
export {
|
|
7
|
+
g as GoogleAnalyticsClient
|
|
8
|
+
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { generateGAElements as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { generateGAElements as s } from "./snippets/generateGAElements.js";
|
|
2
|
+
let a = class {
|
|
3
|
+
initializeAsyncScript(e) {
|
|
4
|
+
const t = document.createElement("script");
|
|
5
|
+
return t.async = !0, t.src = e, t;
|
|
6
|
+
}
|
|
7
|
+
initializeInlineScript(e) {
|
|
8
|
+
const t = document.createElement("script");
|
|
9
|
+
return t.innerHTML = e, t;
|
|
10
|
+
}
|
|
11
|
+
initialize(e) {
|
|
12
|
+
const { measurementId: t } = e, i = s({ measurementId: t }), n = this.initializeAsyncScript(i.src), c = this.initializeInlineScript(i.script);
|
|
13
|
+
document.head.appendChild(n), document.head.appendChild(c);
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
a as GoogleAnalytics
|
|
16
18
|
};
|
|
17
|
-
//#endregion
|
|
18
|
-
export { t as GoogleAnalytics };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return process.env.NODE_ENV !== "production" && !o ? /* @__PURE__ */ r(n, {}) : /* @__PURE__ */ r(e, { children: () => /* @__PURE__ */ r(t, { measurementId: a }) });
|
|
1
|
+
import { jsx as o, Fragment as t } from "react/jsx-runtime";
|
|
2
|
+
import { ClientOnly as i } from "../clientOnly.js";
|
|
3
|
+
import { GoogleAnalyticsClient as l } from "./googleAnalytics.client.js";
|
|
4
|
+
function f(e) {
|
|
5
|
+
const { measurementId: n, showInDevMode: r = !1 } = e;
|
|
6
|
+
return process.env.NODE_ENV !== "production" && !r ? /* @__PURE__ */ o(t, {}) : /* @__PURE__ */ o(i, { children: () => /* @__PURE__ */ o(l, { measurementId: n }) });
|
|
8
7
|
}
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
export {
|
|
9
|
+
f as GoogleAnalytics
|
|
10
|
+
};
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
src: `https://www.googletagmanager.com/gtag/js?id=${t}`,
|
|
6
|
-
script: `
|
|
1
|
+
function g(t) {
|
|
2
|
+
const { measurementId: e } = t;
|
|
3
|
+
e || console.warn("Google Analytics Measurement ID is required");
|
|
4
|
+
const a = `https://www.googletagmanager.com/gtag/js?id=${e}`, n = `
|
|
7
5
|
window.dataLayer = window.dataLayer || [];
|
|
8
6
|
function gtag(){dataLayer.push(arguments);}
|
|
9
7
|
gtag('js', new Date());
|
|
10
|
-
gtag('config', '${
|
|
11
|
-
|
|
8
|
+
gtag('config', '${e}');`;
|
|
9
|
+
return {
|
|
10
|
+
src: a,
|
|
11
|
+
script: n
|
|
12
|
+
};
|
|
12
13
|
}
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
export {
|
|
15
|
+
g as generateGAElements
|
|
16
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { jsx as o, Fragment as a } from "react/jsx-runtime";
|
|
1
2
|
import { GoogleTagManager as e } from "./googleTagManager.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
function r(r) {
|
|
5
|
-
return new e().initialize(r), /* @__PURE__ */ n(t, {});
|
|
3
|
+
function i(g) {
|
|
4
|
+
return new e().initialize(g), /* @__PURE__ */ o(a, {});
|
|
6
5
|
}
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
export {
|
|
7
|
+
i as GoogleTagManagerClient
|
|
8
|
+
};
|
|
@@ -1,45 +1,49 @@
|
|
|
1
|
-
import { appendToDataLayer as
|
|
2
|
-
import { generateGTMElements as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
1
|
+
import { appendToDataLayer as s } from "./snippets/appendToDataLayer.js";
|
|
2
|
+
import { generateGTMElements as d } from "./snippets/generateGTMElements.js";
|
|
3
|
+
let u = class {
|
|
4
|
+
initializeDataScript(e) {
|
|
5
|
+
const t = document.createElement("script");
|
|
6
|
+
return t.innerHTML = e, t;
|
|
7
|
+
}
|
|
8
|
+
initializeGTMElements(e) {
|
|
9
|
+
const t = d(e), a = () => {
|
|
10
|
+
const i = document.createElement("noscript");
|
|
11
|
+
return i.innerHTML = t.iframe, i;
|
|
12
|
+
}, n = () => {
|
|
13
|
+
const i = document.createElement("script");
|
|
14
|
+
return i.innerHTML = t.script, i;
|
|
15
|
+
}, r = this.initializeDataScript(t.dataLayerVar);
|
|
16
|
+
return {
|
|
17
|
+
noScript: a,
|
|
18
|
+
script: n,
|
|
19
|
+
dataScript: r
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
initializeDataLayer(e) {
|
|
23
|
+
const { dataLayer: t, dataLayerName: a } = e;
|
|
24
|
+
if (window[a]) return window[a].push(t);
|
|
25
|
+
const n = s({ dataLayer: t, dataLayerName: a }), r = this.initializeDataScript(n);
|
|
26
|
+
document.head.insertBefore(r, document.head.childNodes[0]);
|
|
27
|
+
}
|
|
28
|
+
initialize(e) {
|
|
29
|
+
const {
|
|
30
|
+
events: t,
|
|
31
|
+
gtmId: a,
|
|
32
|
+
dataLayer: n,
|
|
33
|
+
auth: r = "",
|
|
34
|
+
preview: i = "",
|
|
35
|
+
dataLayerName: c = "dataLayer"
|
|
36
|
+
} = e, o = this.initializeGTMElements({
|
|
37
|
+
id: a,
|
|
38
|
+
events: t,
|
|
39
|
+
dataLayer: n || void 0,
|
|
40
|
+
dataLayerName: c,
|
|
41
|
+
auth: r,
|
|
42
|
+
preview: i
|
|
43
|
+
});
|
|
44
|
+
n && document.head.appendChild(o.dataScript), document.head.insertBefore(o.script(), document.head.childNodes[0]), document.body.insertBefore(o.noScript(), document.body.childNodes[0]);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
export {
|
|
48
|
+
u as GoogleTagManager
|
|
43
49
|
};
|
|
44
|
-
//#endregion
|
|
45
|
-
export { n as GoogleTagManager };
|
|
@@ -1,17 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { jsx as e, Fragment as d } from "react/jsx-runtime";
|
|
2
|
+
import { ClientOnly as l } from "../clientOnly.js";
|
|
3
|
+
import { GoogleTagManagerClient as p } from "./googleTagManager.client.js";
|
|
4
|
+
function u(r) {
|
|
5
|
+
const {
|
|
6
|
+
gtmId: a,
|
|
7
|
+
auth: o = "",
|
|
8
|
+
preview: t = "",
|
|
9
|
+
dataLayerName: n = "dataLayer",
|
|
10
|
+
events: i = {},
|
|
11
|
+
dataLayer: m = {},
|
|
12
|
+
showInDevMode: g = !1
|
|
13
|
+
} = r;
|
|
14
|
+
return process.env.NODE_ENV !== "production" && !g ? /* @__PURE__ */ e(d, {}) : /* @__PURE__ */ e(l, { children: () => /* @__PURE__ */ e(
|
|
15
|
+
p,
|
|
16
|
+
{
|
|
17
|
+
auth: o,
|
|
18
|
+
dataLayer: m,
|
|
19
|
+
dataLayerName: n,
|
|
20
|
+
events: i,
|
|
21
|
+
gtmId: a,
|
|
22
|
+
preview: t
|
|
23
|
+
}
|
|
24
|
+
) });
|
|
15
25
|
}
|
|
16
|
-
|
|
17
|
-
|
|
26
|
+
export {
|
|
27
|
+
u as GoogleTagManager
|
|
28
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
window.${
|
|
6
|
-
window.${n}.push(${JSON.stringify(t)})`;
|
|
1
|
+
function e(n) {
|
|
2
|
+
const { dataLayer: t, dataLayerName: a } = n;
|
|
3
|
+
return `
|
|
4
|
+
window.${a} = window.${a} || [];
|
|
5
|
+
window.${a}.push(${JSON.stringify(t)})`;
|
|
7
6
|
}
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
export {
|
|
8
|
+
e as appendToDataLayer
|
|
9
|
+
};
|
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import { appendToDataLayer as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
height="0" width="0" style="display:none;visibility:hidden" id="tag-manager"></iframe>`,
|
|
9
|
-
script: `
|
|
1
|
+
import { appendToDataLayer as l } from "./appendToDataLayer.js";
|
|
2
|
+
function p(n) {
|
|
3
|
+
const { id: e, events: r, dataLayer: s, dataLayerName: t, preview: o, auth: m } = n, a = `>m_auth=${m}`, i = `>m_preview=${o}`;
|
|
4
|
+
e || console.warn("GTM Id is required");
|
|
5
|
+
const g = `
|
|
6
|
+
<iframe src="https://www.googletagmanager.com/ns.html?id=${e}${a}${i}>m_cookies_win=x"
|
|
7
|
+
height="0" width="0" style="display:none;visibility:hidden" id="tag-manager"></iframe>`, d = `
|
|
10
8
|
(function(w,d,s,l,i){w[l]=w[l]||[];
|
|
11
|
-
w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js', ${JSON.stringify(
|
|
9
|
+
w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js', ${JSON.stringify(
|
|
10
|
+
r
|
|
11
|
+
).slice(1, -1)}});
|
|
12
12
|
var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';
|
|
13
|
-
j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl+'${
|
|
13
|
+
j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl+'${a}${i}>m_cookies_win=x';
|
|
14
14
|
f.parentNode.insertBefore(j,f);
|
|
15
|
-
})(window,document,'script','${
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
})(window,document,'script','${t}','${e}');`, c = l({ dataLayer: s, dataLayerName: t });
|
|
16
|
+
return {
|
|
17
|
+
iframe: g,
|
|
18
|
+
script: d,
|
|
19
|
+
dataLayerVar: c
|
|
20
|
+
};
|
|
21
21
|
}
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
export {
|
|
23
|
+
p as generateGTMElements
|
|
24
|
+
};
|
|
@@ -1,32 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
})
|
|
28
|
-
})]
|
|
29
|
-
});
|
|
1
|
+
import { jsxs as u, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { Loader2 as g } from "lucide-react";
|
|
3
|
+
/* empty css */
|
|
4
|
+
function I(a) {
|
|
5
|
+
const {
|
|
6
|
+
isLoading: o = !1,
|
|
7
|
+
scheme: e = "primary",
|
|
8
|
+
variant: t = "solid",
|
|
9
|
+
size: s = "md",
|
|
10
|
+
icon: r,
|
|
11
|
+
disabled: c,
|
|
12
|
+
className: d = "",
|
|
13
|
+
...l
|
|
14
|
+
} = a, i = { xs: 12, sm: 16, md: 20, lg: 24 }, m = `arkynIconButton ${t} ${e} ${s} ${o ? "loadingTrue" : "loadingFalse"} ${d}`;
|
|
15
|
+
return /* @__PURE__ */ u(
|
|
16
|
+
"button",
|
|
17
|
+
{
|
|
18
|
+
disabled: c || o,
|
|
19
|
+
className: m.trim(),
|
|
20
|
+
...l,
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ n("div", { className: "arkynIconButtonSpinner", children: /* @__PURE__ */ n(g, { size: i[s], strokeWidth: 2.5 }) }),
|
|
23
|
+
/* @__PURE__ */ n("div", { className: "arkynIconButtonContent", children: /* @__PURE__ */ n(r, { size: i[s], strokeWidth: 2.5 }) })
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
);
|
|
30
27
|
}
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
export {
|
|
29
|
+
I as IconButton
|
|
30
|
+
};
|
|
@@ -1,47 +1,64 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
1
|
+
import { jsxs as f, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { RefreshCw as g } from "lucide-react";
|
|
3
|
+
import { Button as h } from "../../button/index.js";
|
|
4
|
+
import { IconButton as b } from "../../iconButton/index.js";
|
|
5
|
+
import { Tooltip as k } from "../../tooltip/index.js";
|
|
6
|
+
/* empty css */
|
|
7
|
+
function F(l) {
|
|
8
|
+
const {
|
|
9
|
+
disabled: t,
|
|
10
|
+
filePath: c,
|
|
11
|
+
isLoading: i,
|
|
12
|
+
acceptImage: m,
|
|
13
|
+
changeImageButtonText: s,
|
|
14
|
+
handleSelectFile: p,
|
|
15
|
+
reSendImage: o
|
|
16
|
+
} = l;
|
|
17
|
+
function u() {
|
|
18
|
+
if (t) return;
|
|
19
|
+
const e = document.createElement("input");
|
|
20
|
+
e.type = "file", e.accept = m, e.onchange = (d) => {
|
|
21
|
+
var r;
|
|
22
|
+
const a = (r = d.target.files) == null ? void 0 : r[0];
|
|
23
|
+
a && p(a);
|
|
24
|
+
}, e.click();
|
|
25
|
+
}
|
|
26
|
+
return /* @__PURE__ */ f(
|
|
27
|
+
"div",
|
|
28
|
+
{
|
|
29
|
+
className: "arkynImageUploadHasFileContent",
|
|
30
|
+
style: { backgroundImage: `url("${c}")` },
|
|
31
|
+
children: [
|
|
32
|
+
o && /* @__PURE__ */ n(k, { orientation: "bottom", text: "Reenviar imagem", children: /* @__PURE__ */ n(
|
|
33
|
+
b,
|
|
34
|
+
{
|
|
35
|
+
type: "button",
|
|
36
|
+
"aria-label": "resend image",
|
|
37
|
+
variant: "outline",
|
|
38
|
+
scheme: "danger",
|
|
39
|
+
size: "sm",
|
|
40
|
+
isLoading: i,
|
|
41
|
+
onClick: o,
|
|
42
|
+
icon: g,
|
|
43
|
+
disabled: t
|
|
44
|
+
}
|
|
45
|
+
) }),
|
|
46
|
+
/* @__PURE__ */ n(
|
|
47
|
+
h,
|
|
48
|
+
{
|
|
49
|
+
isLoading: i,
|
|
50
|
+
onClick: u,
|
|
51
|
+
variant: "outline",
|
|
52
|
+
size: "sm",
|
|
53
|
+
type: "button",
|
|
54
|
+
disabled: t,
|
|
55
|
+
children: s
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
);
|
|
45
61
|
}
|
|
46
|
-
|
|
47
|
-
|
|
62
|
+
export {
|
|
63
|
+
F as HasFileContent
|
|
64
|
+
};
|