ublo-lib 1.33.3 → 1.33.5
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/es/common/components/editable-map/editable-map.module.css +2 -2
- package/es/esf/components/period-picker/services/sections.d.ts.map +1 -1
- package/es/esf/components/period-picker/services/sections.js +12 -1
- package/es/future/components/msem/index.d.ts +5 -1
- package/es/future/components/msem/index.d.ts.map +1 -1
- package/es/future/components/msem/index.js +5 -1
- package/es/future/components/msem/lift-jb.d.ts +23 -0
- package/es/future/components/msem/lift-jb.d.ts.map +1 -0
- package/es/future/components/msem/lift-jb.js +19 -0
- package/es/future/components/msem/lodging.d.ts +25 -0
- package/es/future/components/msem/lodging.d.ts.map +1 -0
- package/es/future/components/msem/lodging.js +19 -0
- package/es/future/components/msem/ski-pass.d.ts +25 -0
- package/es/future/components/msem/ski-pass.d.ts.map +1 -0
- package/es/future/components/msem/ski-pass.js +19 -0
- package/es/future/components/msem/ski-rental.d.ts +26 -0
- package/es/future/components/msem/ski-rental.d.ts.map +1 -0
- package/es/future/components/msem/ski-rental.js +19 -0
- package/es/future/components/msem/tunnel.d.ts +2 -13
- package/es/future/components/msem/tunnel.d.ts.map +1 -1
- package/es/future/components/msem/types.d.ts +12 -0
- package/es/future/components/msem/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
display: flex;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
.resetCenter {
|
|
14
|
+
button.resetCenter {
|
|
15
15
|
position: absolute;
|
|
16
16
|
top: 86px;
|
|
17
17
|
left: 10px;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
user-select: none;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.resetCenter:hover {
|
|
23
|
+
button.resetCenter:hover {
|
|
24
24
|
background-color: var(--ds-grey-100, #f8f8f8);
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sections.d.ts","sourceRoot":"","sources":["../../../../../src/esf/components/period-picker/services/sections.js"],"names":[],"mappings":"AAIA,qCAaC;AAED,
|
|
1
|
+
{"version":3,"file":"sections.d.ts","sourceRoot":"","sources":["../../../../../src/esf/components/period-picker/services/sections.js"],"names":[],"mappings":"AAIA,qCAaC;AAED,wCAuCC"}
|
|
@@ -39,6 +39,17 @@ export function filter(week) {
|
|
|
39
39
|
section.removeAttribute("data-full");
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
if (visible) {
|
|
43
|
+
if (section.originalDisplayStyle !== undefined &&
|
|
44
|
+
section.originalDisplayStyle !== "none") {
|
|
45
|
+
section.style.display = section.originalDisplayStyle;
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
section.style.removeProperty("display");
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
section.style.display = "none";
|
|
53
|
+
}
|
|
43
54
|
});
|
|
44
55
|
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { Script } from "./script";
|
|
2
|
+
import Lodging from "./lodging";
|
|
3
|
+
import SkiRental from "./ski-rental";
|
|
4
|
+
import SkiPass from "./ski-pass";
|
|
5
|
+
import LiftJb from "./lift-jb";
|
|
2
6
|
import Tunnel from "./tunnel";
|
|
3
7
|
import Account from "./account";
|
|
4
|
-
export { Script, Tunnel, Account };
|
|
8
|
+
export { Script, Lodging, SkiRental, SkiPass, LiftJb, Tunnel, Account };
|
|
5
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/future/components/msem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,OAAO,MAAM,WAAW,CAAC;AAEhC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/future/components/msem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,OAAO,MAAM,YAAY,CAAC;AACjC,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,OAAO,MAAM,WAAW,CAAC;AAEhC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { Script } from "./script";
|
|
2
|
+
import Lodging from "./lodging";
|
|
3
|
+
import SkiRental from "./ski-rental";
|
|
4
|
+
import SkiPass from "./ski-pass";
|
|
5
|
+
import LiftJb from "./lift-jb";
|
|
2
6
|
import Tunnel from "./tunnel";
|
|
3
7
|
import Account from "./account";
|
|
4
|
-
export { Script, Tunnel, Account };
|
|
8
|
+
export { Script, Lodging, SkiRental, SkiPass, LiftJb, Tunnel, Account };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { GlobalOptions, GlobalPresets } from "./types";
|
|
3
|
+
type Show = "stay" | "lodging" | "filters" | "catalog";
|
|
4
|
+
type Options = GlobalOptions & {
|
|
5
|
+
merchant?: string;
|
|
6
|
+
cartUrl?: string;
|
|
7
|
+
cartChanged?: (cart: any) => void;
|
|
8
|
+
show?: Show;
|
|
9
|
+
catalog?: string;
|
|
10
|
+
};
|
|
11
|
+
type Presets = GlobalPresets & {
|
|
12
|
+
firstSkiDate?: string;
|
|
13
|
+
nbParticipants?: string;
|
|
14
|
+
};
|
|
15
|
+
type Props = {
|
|
16
|
+
options?: Options;
|
|
17
|
+
presets?: Presets;
|
|
18
|
+
children?: React.ReactNode;
|
|
19
|
+
};
|
|
20
|
+
declare const _default: React.MemoExoticComponent<typeof LiftJb>;
|
|
21
|
+
export default _default;
|
|
22
|
+
declare function LiftJb({ options, presets, children }: Props): React.ReactNode;
|
|
23
|
+
//# sourceMappingURL=lift-jb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lift-jb.d.ts","sourceRoot":"","sources":["../../../../src/future/components/msem/lift-jb.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE5D,KAAK,IAAI,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;AAEvD,KAAK,OAAO,GAAG,aAAa,GAAG;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IAClC,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,OAAO,GAAG,aAAa,GAAG;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;;AAEF,wBAAkC;AAElC,iBAAS,MAAM,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,KAAK,mBAiBpD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as Utils from "./utils";
|
|
3
|
+
import * as Plausible from "../plausible";
|
|
4
|
+
export default React.memo(LiftJb);
|
|
5
|
+
function LiftJb({ options, presets, children }) {
|
|
6
|
+
React.useEffect(() => {
|
|
7
|
+
const lang = options?.lang === "fr" ? "fr" : "en";
|
|
8
|
+
const patchedOptions = {
|
|
9
|
+
...options,
|
|
10
|
+
lang,
|
|
11
|
+
analytics: (...args) => {
|
|
12
|
+
options?.analytics?.apply(null, args);
|
|
13
|
+
Plausible.callback.apply(null, args);
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
Utils.loadWidget("liftJb", patchedOptions, presets);
|
|
17
|
+
}, [options, presets]);
|
|
18
|
+
return children;
|
|
19
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { GlobalOptions, GlobalPresets } from "./types";
|
|
3
|
+
type Show = "stay" | "filters" | "lodgingListOffers" | "lodgingListMap" | "lodgingCarousel" | "lodgingDescription" | "lodgingMap" | "lodgingOffers" | "lodgingLanguages" | "lodgingOptions" | "lodgingCapacity" | "lodgingInfos";
|
|
4
|
+
type Options = GlobalOptions & {
|
|
5
|
+
cartUrl?: string;
|
|
6
|
+
cartChanged?: (cart: any) => void;
|
|
7
|
+
show?: Show;
|
|
8
|
+
};
|
|
9
|
+
type Presets = GlobalPresets & {
|
|
10
|
+
nbStars?: number;
|
|
11
|
+
nbRooms?: number[];
|
|
12
|
+
accomodation?: string;
|
|
13
|
+
options?: number[];
|
|
14
|
+
type?: "MEUBLE" | "RESIDENCE" | "RESIDENCE-CLUB" | "HOTEL" | "CAMPING" | "CHAMBRE_HOTE" | "VILLAGE_VACANCES";
|
|
15
|
+
meubleType?: string;
|
|
16
|
+
};
|
|
17
|
+
type Props = {
|
|
18
|
+
options?: Options;
|
|
19
|
+
presets?: Presets;
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
};
|
|
22
|
+
declare const _default: React.MemoExoticComponent<typeof Lodging>;
|
|
23
|
+
export default _default;
|
|
24
|
+
declare function Lodging({ options, presets, children }: Props): React.ReactNode;
|
|
25
|
+
//# sourceMappingURL=lodging.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lodging.d.ts","sourceRoot":"","sources":["../../../../src/future/components/msem/lodging.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE5D,KAAK,IAAI,GACL,MAAM,GACN,SAAS,GACT,mBAAmB,GACnB,gBAAgB,GAChB,iBAAiB,GACjB,oBAAoB,GACpB,YAAY,GACZ,eAAe,GACf,kBAAkB,GAClB,gBAAgB,GAChB,iBAAiB,GACjB,cAAc,CAAC;AAEnB,KAAK,OAAO,GAAG,aAAa,GAAG;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IAClC,IAAI,CAAC,EAAE,IAAI,CAAC;CACb,CAAC;AAEF,KAAK,OAAO,GAAG,aAAa,GAAG;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,IAAI,CAAC,EACD,QAAQ,GACR,WAAW,GACX,gBAAgB,GAChB,OAAO,GACP,SAAS,GACT,cAAc,GACd,kBAAkB,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;;AAEF,wBAAmC;AAEnC,iBAAS,OAAO,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,KAAK,mBAiBrD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as Utils from "./utils";
|
|
3
|
+
import * as Plausible from "../plausible";
|
|
4
|
+
export default React.memo(Lodging);
|
|
5
|
+
function Lodging({ options, presets, children }) {
|
|
6
|
+
React.useEffect(() => {
|
|
7
|
+
const lang = options?.lang === "fr" ? "fr" : "en";
|
|
8
|
+
const patchedOptions = {
|
|
9
|
+
...options,
|
|
10
|
+
lang,
|
|
11
|
+
analytics: (...args) => {
|
|
12
|
+
options?.analytics?.apply(null, args);
|
|
13
|
+
Plausible.callback.apply(null, args);
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
Utils.loadWidget("lodging", patchedOptions, presets);
|
|
17
|
+
}, [options, presets]);
|
|
18
|
+
return children;
|
|
19
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { GlobalOptions, GlobalPresets } from "./types";
|
|
3
|
+
type Show = "stay" | "lodging" | "filters" | "catalog";
|
|
4
|
+
type Options = GlobalOptions & {
|
|
5
|
+
merchant?: string;
|
|
6
|
+
cartUrl?: string;
|
|
7
|
+
cartChanged?: (cart: any) => void;
|
|
8
|
+
show?: Show;
|
|
9
|
+
catalog?: string;
|
|
10
|
+
};
|
|
11
|
+
type Presets = GlobalPresets & {
|
|
12
|
+
domains?: string[];
|
|
13
|
+
durations?: string[];
|
|
14
|
+
firstSkiDate?: string;
|
|
15
|
+
skiers?: string[];
|
|
16
|
+
};
|
|
17
|
+
type Props = {
|
|
18
|
+
options?: Options;
|
|
19
|
+
presets?: Presets;
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
};
|
|
22
|
+
declare const _default: React.MemoExoticComponent<typeof SkiPass>;
|
|
23
|
+
export default _default;
|
|
24
|
+
declare function SkiPass({ options, presets, children }: Props): React.ReactNode;
|
|
25
|
+
//# sourceMappingURL=ski-pass.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ski-pass.d.ts","sourceRoot":"","sources":["../../../../src/future/components/msem/ski-pass.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE5D,KAAK,IAAI,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;AAEvD,KAAK,OAAO,GAAG,aAAa,GAAG;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IAClC,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,OAAO,GAAG,aAAa,GAAG;IAC7B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;;AAEF,wBAAmC;AAEnC,iBAAS,OAAO,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,KAAK,mBAiBrD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as Utils from "./utils";
|
|
3
|
+
import * as Plausible from "../plausible";
|
|
4
|
+
export default React.memo(SkiPass);
|
|
5
|
+
function SkiPass({ options, presets, children }) {
|
|
6
|
+
React.useEffect(() => {
|
|
7
|
+
const lang = options?.lang === "fr" ? "fr" : "en";
|
|
8
|
+
const patchedOptions = {
|
|
9
|
+
...options,
|
|
10
|
+
lang,
|
|
11
|
+
analytics: (...args) => {
|
|
12
|
+
options?.analytics?.apply(null, args);
|
|
13
|
+
Plausible.callback.apply(null, args);
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
Utils.loadWidget("skiPass", patchedOptions, presets);
|
|
17
|
+
}, [options, presets]);
|
|
18
|
+
return children;
|
|
19
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { GlobalOptions, GlobalPresets } from "./types";
|
|
3
|
+
type Show = "stay" | "marketing" | "lodging";
|
|
4
|
+
type Options = GlobalOptions & {
|
|
5
|
+
cartUrl?: string;
|
|
6
|
+
cartChanged?: (cart: any) => void;
|
|
7
|
+
show?: Show;
|
|
8
|
+
prefixUrl?: string;
|
|
9
|
+
};
|
|
10
|
+
type Presets = GlobalPresets & {
|
|
11
|
+
merchantSlug?: string;
|
|
12
|
+
duration?: number;
|
|
13
|
+
rentForm?: string;
|
|
14
|
+
activity?: string;
|
|
15
|
+
level?: string;
|
|
16
|
+
productId?: number;
|
|
17
|
+
};
|
|
18
|
+
type Props = {
|
|
19
|
+
options?: Options;
|
|
20
|
+
presets?: Presets;
|
|
21
|
+
children?: React.ReactNode;
|
|
22
|
+
};
|
|
23
|
+
declare const _default: React.MemoExoticComponent<typeof SkiRental>;
|
|
24
|
+
export default _default;
|
|
25
|
+
declare function SkiRental({ options, presets, children }: Props): React.ReactNode;
|
|
26
|
+
//# sourceMappingURL=ski-rental.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ski-rental.d.ts","sourceRoot":"","sources":["../../../../src/future/components/msem/ski-rental.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE5D,KAAK,IAAI,GAAG,MAAM,GAAG,WAAW,GAAG,SAAS,CAAC;AAE7C,KAAK,OAAO,GAAG,aAAa,GAAG;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IAClC,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,KAAK,OAAO,GAAG,aAAa,GAAG;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;;AAEF,wBAAqC;AAErC,iBAAS,SAAS,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,KAAK,mBAiBvD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as Utils from "./utils";
|
|
3
|
+
import * as Plausible from "../plausible";
|
|
4
|
+
export default React.memo(SkiRental);
|
|
5
|
+
function SkiRental({ options, presets, children }) {
|
|
6
|
+
React.useEffect(() => {
|
|
7
|
+
const lang = options?.lang === "fr" ? "fr" : "en";
|
|
8
|
+
const patchedOptions = {
|
|
9
|
+
...options,
|
|
10
|
+
lang,
|
|
11
|
+
analytics: (...args) => {
|
|
12
|
+
options?.analytics?.apply(null, args);
|
|
13
|
+
Plausible.callback.apply(null, args);
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
Utils.loadWidget("skiRental", patchedOptions, presets);
|
|
17
|
+
}, [options, presets]);
|
|
18
|
+
return children;
|
|
19
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import type { GlobalOptions } from "./types";
|
|
2
|
+
import type { GlobalOptions, GlobalPresets } from "./types";
|
|
3
3
|
type Show = "cart" | "offers" | "stay";
|
|
4
4
|
type Options = GlobalOptions & {
|
|
5
5
|
esfUrl?: string;
|
|
@@ -20,18 +20,7 @@ type Options = GlobalOptions & {
|
|
|
20
20
|
cartChanged?: (cart: any) => void;
|
|
21
21
|
show?: Show[];
|
|
22
22
|
};
|
|
23
|
-
type Presets = {
|
|
24
|
-
lodging?: {
|
|
25
|
-
name: string;
|
|
26
|
-
position: [number, number];
|
|
27
|
-
address: string;
|
|
28
|
-
};
|
|
29
|
-
stay?: {
|
|
30
|
-
from: string;
|
|
31
|
-
to: string;
|
|
32
|
-
};
|
|
33
|
-
filter?: string;
|
|
34
|
-
};
|
|
23
|
+
type Presets = GlobalPresets & {};
|
|
35
24
|
type Props = {
|
|
36
25
|
options?: Options;
|
|
37
26
|
presets?: Presets;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tunnel.d.ts","sourceRoot":"","sources":["../../../../src/future/components/msem/tunnel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"tunnel.d.ts","sourceRoot":"","sources":["../../../../src/future/components/msem/tunnel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAA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ay?: {
|
|
19
|
+
from: string;
|
|
20
|
+
to: string;
|
|
21
|
+
};
|
|
22
|
+
lodging?: {
|
|
23
|
+
name: string;
|
|
24
|
+
position: [number, number];
|
|
25
|
+
address: string;
|
|
26
|
+
};
|
|
27
|
+
filter?: string;
|
|
28
|
+
};
|
|
17
29
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/future/components/msem/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/future/components/msem/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB,WAAW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