@wix/system-core-components 1.3.1
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 +38 -0
- package/dist/bundles/debug/es/system-core-components.mjs +3679 -0
- package/dist/bundles/debug/es/system-core-components.mjs.map +1 -0
- package/dist/bundles/debug/style.css +1 -0
- package/dist/bundles/debug/umd/system-core-components.js +3680 -0
- package/dist/bundles/debug/umd/system-core-components.js.map +1 -0
- package/dist/bundles/es/system-core-components.mjs +3579 -0
- package/dist/bundles/es/system-core-components.mjs.map +1 -0
- package/dist/bundles/style.css +1 -0
- package/dist/bundles/umd/system-core-components.js +2 -0
- package/dist/bundles/umd/system-core-components.js.map +1 -0
- package/dist/esm/Anchor.d.ts +2 -0
- package/dist/esm/Anchor.js +5 -0
- package/dist/esm/Anchor.js.map +1 -0
- package/dist/esm/FooterContainer_TransparentScreen.d.ts +4 -0
- package/dist/esm/FooterContainer_TransparentScreen.js +6 -0
- package/dist/esm/FooterContainer_TransparentScreen.js.map +1 -0
- package/dist/esm/FooterSection.d.ts +4 -0
- package/dist/esm/FooterSection.js +6 -0
- package/dist/esm/FooterSection.js.map +1 -0
- package/dist/esm/HeaderContainer_TransparentScreen.d.ts +6 -0
- package/dist/esm/HeaderContainer_TransparentScreen.js +7 -0
- package/dist/esm/HeaderContainer_TransparentScreen.js.map +1 -0
- package/dist/esm/HeaderSection.d.ts +6 -0
- package/dist/esm/HeaderSection.js +7 -0
- package/dist/esm/HeaderSection.js.map +1 -0
- package/dist/esm/PageGroup.d.ts +4 -0
- package/dist/esm/PageGroup.js +6 -0
- package/dist/esm/PageGroup.js.map +1 -0
- package/dist/esm/PageSections.d.ts +4 -0
- package/dist/esm/PageSections.js +6 -0
- package/dist/esm/PageSections.js.map +1 -0
- package/dist/esm/Page_BasicPageSkin.d.ts +4 -0
- package/dist/esm/Page_BasicPageSkin.js +6 -0
- package/dist/esm/Page_BasicPageSkin.js.map +1 -0
- package/dist/esm/Page_ResponsivePageWithColorBG.d.ts +4 -0
- package/dist/esm/Page_ResponsivePageWithColorBG.js +6 -0
- package/dist/esm/Page_ResponsivePageWithColorBG.js.map +1 -0
- package/dist/esm/PagesContainer.d.ts +3 -0
- package/dist/esm/PagesContainer.js +5 -0
- package/dist/esm/PagesContainer.js.map +1 -0
- package/dist/esm/ResponsiveContainer.d.ts +4 -0
- package/dist/esm/ResponsiveContainer.js +6 -0
- package/dist/esm/ResponsiveContainer.js.map +1 -0
- package/dist/esm/ResponsivePopupPage_WithoutOverlay.d.ts +6 -0
- package/dist/esm/ResponsivePopupPage_WithoutOverlay.js +7 -0
- package/dist/esm/ResponsivePopupPage_WithoutOverlay.js.map +1 -0
- package/dist/esm/Section.d.ts +6 -0
- package/dist/esm/Section.js +7 -0
- package/dist/esm/Section.js.map +1 -0
- package/dist/esm/hocs.d.ts +28 -0
- package/dist/esm/hocs.js +23 -0
- package/dist/esm/hocs.js.map +1 -0
- package/dist/esm/index.d.ts +13 -0
- package/dist/esm/index.js +14 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/types/Anchor.d.ts +3 -0
- package/dist/types/Anchor.d.ts.map +1 -0
- package/dist/types/FooterContainer_TransparentScreen.d.ts +5 -0
- package/dist/types/FooterContainer_TransparentScreen.d.ts.map +1 -0
- package/dist/types/FooterSection.d.ts +5 -0
- package/dist/types/FooterSection.d.ts.map +1 -0
- package/dist/types/HeaderContainer_TransparentScreen.d.ts +7 -0
- package/dist/types/HeaderContainer_TransparentScreen.d.ts.map +1 -0
- package/dist/types/HeaderSection.d.ts +7 -0
- package/dist/types/HeaderSection.d.ts.map +1 -0
- package/dist/types/PageGroup.d.ts +5 -0
- package/dist/types/PageGroup.d.ts.map +1 -0
- package/dist/types/PageSections.d.ts +5 -0
- package/dist/types/PageSections.d.ts.map +1 -0
- package/dist/types/Page_BasicPageSkin.d.ts +5 -0
- package/dist/types/Page_BasicPageSkin.d.ts.map +1 -0
- package/dist/types/Page_ResponsivePageWithColorBG.d.ts +5 -0
- package/dist/types/Page_ResponsivePageWithColorBG.d.ts.map +1 -0
- package/dist/types/PagesContainer.d.ts +4 -0
- package/dist/types/PagesContainer.d.ts.map +1 -0
- package/dist/types/ResponsiveContainer.d.ts +5 -0
- package/dist/types/ResponsiveContainer.d.ts.map +1 -0
- package/dist/types/ResponsivePopupPage_WithoutOverlay.d.ts +7 -0
- package/dist/types/ResponsivePopupPage_WithoutOverlay.d.ts.map +1 -0
- package/dist/types/Section.d.ts +7 -0
- package/dist/types/Section.d.ts.map +1 -0
- package/dist/types/hocs.d.ts +29 -0
- package/dist/types/hocs.d.ts.map +1 -0
- package/dist/types/index.d.ts +14 -0
- package/dist/types/index.d.ts.map +1 -0
- package/package.json +73 -0
- package/src/Anchor.tsx +5 -0
- package/src/FooterContainer_TransparentScreen.tsx +6 -0
- package/src/FooterSection.tsx +6 -0
- package/src/HeaderContainer_TransparentScreen.tsx +7 -0
- package/src/HeaderSection.tsx +7 -0
- package/src/PageGroup.tsx +6 -0
- package/src/PageSections.tsx +6 -0
- package/src/Page_BasicPageSkin.tsx +6 -0
- package/src/Page_ResponsivePageWithColorBG.tsx +6 -0
- package/src/PagesContainer.tsx +5 -0
- package/src/ResponsiveContainer.tsx +6 -0
- package/src/ResponsivePopupPage_WithoutOverlay.tsx +7 -0
- package/src/Section.tsx +7 -0
- package/src/hocs.tsx +34 -0
- package/src/index.ts +13 -0
|
@@ -0,0 +1,3680 @@
|
|
|
1
|
+
(function(global2, factory) {
|
|
2
|
+
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react"), require("@wix/builder-state-react"), require("react-dom")) : typeof define === "function" && define.amd ? define(["exports", "react", "@wix/builder-state-react", "react-dom"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.SystemCoreComponents = {}, global2.React, global2.builderStateReact, global2.ReactDOM));
|
|
3
|
+
})(this, function(exports2, require$$0, builderStateReact, require$$1) {
|
|
4
|
+
"use strict";
|
|
5
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
6
|
+
function getDefaultExportFromCjs(x) {
|
|
7
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
8
|
+
}
|
|
9
|
+
var Anchor_bundle_min = { exports: {} };
|
|
10
|
+
(function(module2, exports$1) {
|
|
11
|
+
!function(e, t) {
|
|
12
|
+
module2.exports = t(require$$0);
|
|
13
|
+
}("undefined" != typeof self ? self : commonjsGlobal, function(e) {
|
|
14
|
+
return function() {
|
|
15
|
+
var t = { "Xdf/": function(t2) {
|
|
16
|
+
t2.exports = e;
|
|
17
|
+
}, Fe5V: function(e2) {
|
|
18
|
+
function t2() {
|
|
19
|
+
return e2.exports = t2 = Object.assign ? Object.assign.bind() : function(e3) {
|
|
20
|
+
for (var t3 = 1; t3 < arguments.length; t3++) {
|
|
21
|
+
var r2 = arguments[t3];
|
|
22
|
+
for (var n2 in r2) ({}).hasOwnProperty.call(r2, n2) && (e3[n2] = r2[n2]);
|
|
23
|
+
}
|
|
24
|
+
return e3;
|
|
25
|
+
}, e2.exports.__esModule = true, e2.exports.default = e2.exports, t2.apply(null, arguments);
|
|
26
|
+
}
|
|
27
|
+
e2.exports = t2, e2.exports.__esModule = true, e2.exports.default = e2.exports;
|
|
28
|
+
} }, r = {};
|
|
29
|
+
function n(e2) {
|
|
30
|
+
var o2 = r[e2];
|
|
31
|
+
if (void 0 !== o2) return o2.exports;
|
|
32
|
+
var u = r[e2] = { exports: {} };
|
|
33
|
+
return t[e2](u, u.exports, n), u.exports;
|
|
34
|
+
}
|
|
35
|
+
n.n = function(e2) {
|
|
36
|
+
var t2 = e2 && e2.__esModule ? function() {
|
|
37
|
+
return e2.default;
|
|
38
|
+
} : function() {
|
|
39
|
+
return e2;
|
|
40
|
+
};
|
|
41
|
+
return n.d(t2, { a: t2 }), t2;
|
|
42
|
+
}, n.d = function(e2, t2) {
|
|
43
|
+
for (var r2 in t2) n.o(t2, r2) && !n.o(e2, r2) && Object.defineProperty(e2, r2, { enumerable: true, get: t2[r2] });
|
|
44
|
+
}, n.o = function(e2, t2) {
|
|
45
|
+
return Object.prototype.hasOwnProperty.call(e2, t2);
|
|
46
|
+
}, n.r = function(e2) {
|
|
47
|
+
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e2, "__esModule", { value: true });
|
|
48
|
+
};
|
|
49
|
+
var o = {};
|
|
50
|
+
return function() {
|
|
51
|
+
n.r(o), n.d(o, { default: function() {
|
|
52
|
+
return c;
|
|
53
|
+
} });
|
|
54
|
+
var e2 = n("Fe5V"), t2 = n.n(e2), r2 = n("Xdf/");
|
|
55
|
+
var u = "Vd6aQZ", a = "mHZSwn";
|
|
56
|
+
var c = (e3) => {
|
|
57
|
+
const { id: n2, name: o2, urlFragment: c2, className: i, isAriaHidden: d } = e3;
|
|
58
|
+
return r2.createElement("div", t2()({ id: n2 }, ((e4) => Object.entries(e4).reduce((e5, [t3, r3]) => (t3.includes("data-") && (e5[t3] = r3), e5), {}))(e3), { className: u + " ignore-focus " + i, "aria-hidden": d }, !d && { role: "region", tabIndex: -1, "aria-label": o2 }), c2 && r2.createElement("div", { id: c2 }), r2.createElement("span", { className: a }, o2));
|
|
59
|
+
};
|
|
60
|
+
}(), o;
|
|
61
|
+
}();
|
|
62
|
+
});
|
|
63
|
+
})(Anchor_bundle_min);
|
|
64
|
+
var Anchor_bundle_minExports = Anchor_bundle_min.exports;
|
|
65
|
+
const Component$7 = /* @__PURE__ */ getDefaultExportFromCjs(Anchor_bundle_minExports);
|
|
66
|
+
const Anchor = Component$7;
|
|
67
|
+
var FooterContainer_bundle_min = { exports: {} };
|
|
68
|
+
(function(module2, exports$1) {
|
|
69
|
+
!function(e, t) {
|
|
70
|
+
module2.exports = t(require$$0);
|
|
71
|
+
}("undefined" != typeof self ? self : commonjsGlobal, function(e) {
|
|
72
|
+
return function() {
|
|
73
|
+
var t = { XCHU: function(e2, t2, n2) {
|
|
74
|
+
n2.d(t2, { default: function() {
|
|
75
|
+
return C;
|
|
76
|
+
} });
|
|
77
|
+
var r2 = n2("Fe5V"), o2 = n2.n(r2), a = n2("Xdf/"), s = n2.n(a), i = n2("MRkx");
|
|
78
|
+
const d = "wixui-", c = (e3, ...t3) => {
|
|
79
|
+
const n3 = [];
|
|
80
|
+
return n3.push(`${d}${e3}`), t3.forEach((e4) => {
|
|
81
|
+
e4 && (n3.push(`${d}${e4}`), n3.push(e4));
|
|
82
|
+
}), n3.join(" ");
|
|
83
|
+
};
|
|
84
|
+
var l = n2("guqK");
|
|
85
|
+
const u = "mesh-container-content", f = "inline-content", p = (e3) => s().createElement("div", { key: e3.props.id + "-rotated-wrapper", "data-mesh-id": e3.props.id + "-rotated-wrapper" }, e3), m = (e3, t3) => {
|
|
86
|
+
const { id: n3, className: r3, wedges: a2 = [], rotatedComponents: d2 = [], children: c2, fixedComponents: m2 = [], extraClassName: v2 = "", renderRotatedComponents: h2 = p } = e3, C2 = s().Children.toArray(c2()), y = [], x = [];
|
|
87
|
+
C2.forEach((e4) => m2.includes(e4.props.id) ? y.push(e4) : x.push(e4));
|
|
88
|
+
const g = ((e4) => {
|
|
89
|
+
const { wedges: t4, rotatedComponents: n4, childrenArray: r4, renderRotatedComponents: o3 } = e4, a3 = n4.reduce((e5, t5) => ({ ...e5, [t5]: true }), {});
|
|
90
|
+
return [...r4.map((e5) => {
|
|
91
|
+
return a3[t5 = e5, t5.props.id.split("__")[0]] ? o3(e5) : e5;
|
|
92
|
+
var t5;
|
|
93
|
+
}), ...t4.map((e5) => s().createElement("div", { key: e5, "data-mesh-id": e5 }))];
|
|
94
|
+
})({ childrenArray: x, rotatedComponents: d2, wedges: a2, renderRotatedComponents: h2 });
|
|
95
|
+
return s().createElement("div", o2()({}, (0, l.P5)(e3), { "data-mesh-id": n3 + "inlineContent", "data-testid": f, className: (0, i.Z)(r3, v2), ref: t3 }), s().createElement("div", { "data-mesh-id": n3 + "inlineContent-gridContainer", "data-testid": u }, g), y);
|
|
96
|
+
};
|
|
97
|
+
var v = s().forwardRef(m);
|
|
98
|
+
var h = { root: "footer" };
|
|
99
|
+
var C = (e3) => {
|
|
100
|
+
const { id: t3, className: n3, customClassNames: r3 = [], skin: s2, children: d2, meshProps: u2, fillLayers: f2, lang: p2 } = e3, m2 = { onMouseEnter: e3.onMouseEnter, onMouseLeave: e3.onMouseLeave, onClick: e3.onClick, onDoubleClick: e3.onDblClick }, C2 = (0, i.Z)(n3, c(h.root, ...r3));
|
|
101
|
+
return a.createElement(s2, { wrapperProps: { ...(0, l.P5)(e3), lang: p2, id: t3, tagName: "footer", eventHandlers: m2, tabIndex: "-1", className: C2 }, fillLayers: f2, "data-block-level-container": "FooterContainer" }, a.createElement(v, o2()({ id: t3 }, u2), d2));
|
|
102
|
+
};
|
|
103
|
+
}, guqK: function(e2, t2, n2) {
|
|
104
|
+
n2.d(t2, { P5: function() {
|
|
105
|
+
return r2;
|
|
106
|
+
} });
|
|
107
|
+
const r2 = (e3) => Object.entries(e3).reduce((e4, [t3, n3]) => (t3.includes("data-") && (e4[t3] = n3), e4), {});
|
|
108
|
+
}, "Xdf/": function(t2) {
|
|
109
|
+
t2.exports = e;
|
|
110
|
+
}, Fe5V: function(e2) {
|
|
111
|
+
function t2() {
|
|
112
|
+
return e2.exports = t2 = Object.assign ? Object.assign.bind() : function(e3) {
|
|
113
|
+
for (var t3 = 1; t3 < arguments.length; t3++) {
|
|
114
|
+
var n2 = arguments[t3];
|
|
115
|
+
for (var r2 in n2) ({}).hasOwnProperty.call(n2, r2) && (e3[r2] = n2[r2]);
|
|
116
|
+
}
|
|
117
|
+
return e3;
|
|
118
|
+
}, e2.exports.__esModule = true, e2.exports.default = e2.exports, t2.apply(null, arguments);
|
|
119
|
+
}
|
|
120
|
+
e2.exports = t2, e2.exports.__esModule = true, e2.exports.default = e2.exports;
|
|
121
|
+
}, MRkx: function(e2, t2, n2) {
|
|
122
|
+
function r2(e3) {
|
|
123
|
+
var t3, n3, o2 = "";
|
|
124
|
+
if ("string" == typeof e3 || "number" == typeof e3) o2 += e3;
|
|
125
|
+
else if ("object" == typeof e3) if (Array.isArray(e3)) for (t3 = 0; t3 < e3.length; t3++) e3[t3] && (n3 = r2(e3[t3])) && (o2 && (o2 += " "), o2 += n3);
|
|
126
|
+
else for (t3 in e3) e3[t3] && (o2 && (o2 += " "), o2 += t3);
|
|
127
|
+
return o2;
|
|
128
|
+
}
|
|
129
|
+
t2.Z = function() {
|
|
130
|
+
for (var e3, t3, n3 = 0, o2 = ""; n3 < arguments.length; ) (e3 = arguments[n3++]) && (t3 = r2(e3)) && (o2 && (o2 += " "), o2 += t3);
|
|
131
|
+
return o2;
|
|
132
|
+
};
|
|
133
|
+
} }, n = {};
|
|
134
|
+
function r(e2) {
|
|
135
|
+
var o2 = n[e2];
|
|
136
|
+
if (void 0 !== o2) return o2.exports;
|
|
137
|
+
var a = n[e2] = { exports: {} };
|
|
138
|
+
return t[e2](a, a.exports, r), a.exports;
|
|
139
|
+
}
|
|
140
|
+
r.n = function(e2) {
|
|
141
|
+
var t2 = e2 && e2.__esModule ? function() {
|
|
142
|
+
return e2.default;
|
|
143
|
+
} : function() {
|
|
144
|
+
return e2;
|
|
145
|
+
};
|
|
146
|
+
return r.d(t2, { a: t2 }), t2;
|
|
147
|
+
}, r.d = function(e2, t2) {
|
|
148
|
+
for (var n2 in t2) r.o(t2, n2) && !r.o(e2, n2) && Object.defineProperty(e2, n2, { enumerable: true, get: t2[n2] });
|
|
149
|
+
}, r.o = function(e2, t2) {
|
|
150
|
+
return Object.prototype.hasOwnProperty.call(e2, t2);
|
|
151
|
+
}, r.r = function(e2) {
|
|
152
|
+
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e2, "__esModule", { value: true });
|
|
153
|
+
};
|
|
154
|
+
var o = {};
|
|
155
|
+
return function() {
|
|
156
|
+
r.r(o), r.d(o, { default: function() {
|
|
157
|
+
return f;
|
|
158
|
+
} });
|
|
159
|
+
var e2 = r("Fe5V"), t2 = r.n(e2), n2 = r("Xdf/"), a = r.n(n2), s = { screenWidthBackground: "lvxhkV", HeaderHideToTop: "QJjwEo", headerHideToTop: "QJjwEo", HeaderHideToTopReverse: "kdBXfh", headerHideToTopReverse: "kdBXfh", HeaderFadeOut: "MP52zt", headerFadeOut: "MP52zt", transitionEnded: "Bhu9m5", HeaderFadeOutReverse: "LVP8Wf", headerFadeOutReverse: "LVP8Wf", inlineContent: "VrZrC0", centeredContent: "cKxVkc", centeredContentBg: "vlM3HR", root: "AT7o0U" }, i = r("MRkx");
|
|
160
|
+
var d = (e3) => {
|
|
161
|
+
let { id: n3, className: r2, skinClassName: o2, tagName: s2 = "div", transition: d2, transitionEnded: c2, eventHandlers: l2, skinStyles: u2, children: f2, tabIndex: p, lang: m } = e3;
|
|
162
|
+
const v = s2;
|
|
163
|
+
return a().createElement(v, t2()({ id: n3, className: (0, i.Z)(o2, d2 && u2[d2], c2 && u2.transitionEnded, r2), tabIndex: p, lang: m }, l2), f2);
|
|
164
|
+
};
|
|
165
|
+
var c = (e3) => {
|
|
166
|
+
let { wrapperProps: r2, children: o2, skinStyles: a2 } = e3;
|
|
167
|
+
return n2.createElement(d, t2()({}, r2, { skinClassName: a2.root, skinStyles: a2 }), n2.createElement("div", { className: a2.screenWidthBackground }), n2.createElement("div", { className: a2.centeredContent }, n2.createElement("div", { className: a2.centeredContentBg }), n2.createElement("div", { className: a2.inlineContent }, o2)));
|
|
168
|
+
};
|
|
169
|
+
var l = (e3) => a().createElement(c, t2()({}, e3, { skinStyles: s })), u = r("XCHU");
|
|
170
|
+
var f = (e3) => a().createElement(u.default, t2()({}, e3, { skin: l }));
|
|
171
|
+
}(), o;
|
|
172
|
+
}();
|
|
173
|
+
});
|
|
174
|
+
})(FooterContainer_bundle_min);
|
|
175
|
+
var FooterContainer_bundle_minExports = FooterContainer_bundle_min.exports;
|
|
176
|
+
const TransparentScreen$1 = /* @__PURE__ */ getDefaultExportFromCjs(FooterContainer_bundle_minExports);
|
|
177
|
+
const withNormalChildren = (Component2) => ({ children, ...props }) => require$$0.createElement(Component2, { ...props }, () => children || []);
|
|
178
|
+
const withController = (Component2, controller2) => (props) => {
|
|
179
|
+
const [propsOverrides = {}, , setters] = builderStateReact.useStateOverrides(props.nickname);
|
|
180
|
+
const controllerProps = controller2.useComponentProps({ ...props, ...propsOverrides }, {}, setters);
|
|
181
|
+
return require$$0.createElement(Component2, { ...props, ...controllerProps });
|
|
182
|
+
};
|
|
183
|
+
const FooterContainer_TransparentScreen = withNormalChildren(TransparentScreen$1);
|
|
184
|
+
var FooterSection_bundle_min = { exports: {} };
|
|
185
|
+
(function(module2, exports$1) {
|
|
186
|
+
!function(e, t) {
|
|
187
|
+
module2.exports = t(require$$0);
|
|
188
|
+
}("undefined" != typeof self ? self : commonjsGlobal, function(e) {
|
|
189
|
+
return function() {
|
|
190
|
+
var t = { iCIt: function(e2, t2, i2) {
|
|
191
|
+
i2.d(t2, { default: function() {
|
|
192
|
+
return ai;
|
|
193
|
+
} });
|
|
194
|
+
var a2 = {};
|
|
195
|
+
i2.r(a2), i2.d(a2, { STATIC_MEDIA_URL: function() {
|
|
196
|
+
return it;
|
|
197
|
+
}, ph: function() {
|
|
198
|
+
return Qe;
|
|
199
|
+
} });
|
|
200
|
+
var n2 = i2("Fe5V"), r = i2.n(n2), o = i2("Xdf/"), c = i2.n(o), s = i2("MRkx");
|
|
201
|
+
const l = "wixui-", d = (e3, ...t3) => {
|
|
202
|
+
const i3 = [];
|
|
203
|
+
return e3 && i3.push(`${l}${e3}`), t3.forEach((e4) => {
|
|
204
|
+
e4 && (i3.push(`${l}${e4}`), i3.push(e4));
|
|
205
|
+
}), i3.join(" ");
|
|
206
|
+
};
|
|
207
|
+
var u = i2("guqK");
|
|
208
|
+
const f = "section-container";
|
|
209
|
+
var p = "jhxvbR";
|
|
210
|
+
const _ = "v1", T = 2, I = 1920, E = 1920, L = 1e3, b = 1e3, A = { SCALE_TO_FILL: "fill", SCALE_TO_FIT: "fit", STRETCH: "stretch", ORIGINAL_SIZE: "original_size", TILE: "tile", TILE_HORIZONTAL: "tile_horizontal", TILE_VERTICAL: "tile_vertical", FIT_AND_TILE: "fit_and_tile", LEGACY_STRIP_TILE: "legacy_strip_tile", LEGACY_STRIP_TILE_HORIZONTAL: "legacy_strip_tile_horizontal", LEGACY_STRIP_TILE_VERTICAL: "legacy_strip_tile_vertical", LEGACY_STRIP_SCALE_TO_FILL: "legacy_strip_fill", LEGACY_STRIP_SCALE_TO_FIT: "legacy_strip_fit", LEGACY_STRIP_FIT_AND_TILE: "legacy_strip_fit_and_tile", LEGACY_STRIP_ORIGINAL_SIZE: "legacy_strip_original_size", LEGACY_ORIGINAL_SIZE: "actual_size", LEGACY_FIT_WIDTH: "fitWidth", LEGACY_FIT_HEIGHT: "fitHeight", LEGACY_FULL: "full", LEGACY_BG_FIT_AND_TILE: "legacy_tile", LEGACY_BG_FIT_AND_TILE_HORIZONTAL: "legacy_tile_horizontal", LEGACY_BG_FIT_AND_TILE_VERTICAL: "legacy_tile_vertical", LEGACY_BG_NORMAL: "legacy_normal" }, y = { FIT: "fit", FILL: "fill", FILL_FOCAL: "fill_focal", CROP: "crop", LEGACY_CROP: "legacy_crop", LEGACY_FILL: "legacy_fill" }, M = { CENTER: "center", TOP: "top", TOP_LEFT: "top_left", TOP_RIGHT: "top_right", BOTTOM: "bottom", BOTTOM_LEFT: "bottom_left", BOTTOM_RIGHT: "bottom_right", LEFT: "left", RIGHT: "right" }, w = { [M.CENTER]: { x: 0.5, y: 0.5 }, [M.TOP_LEFT]: { x: 0, y: 0 }, [M.TOP_RIGHT]: { x: 1, y: 0 }, [M.TOP]: { x: 0.5, y: 0 }, [M.BOTTOM_LEFT]: { x: 0, y: 1 }, [M.BOTTOM_RIGHT]: { x: 1, y: 1 }, [M.BOTTOM]: { x: 0.5, y: 1 }, [M.RIGHT]: { x: 1, y: 0.5 }, [M.LEFT]: { x: 0, y: 0.5 } }, v = { center: "c", top: "t", top_left: "tl", top_right: "tr", bottom: "b", bottom_left: "bl", bottom_right: "br", left: "l", right: "r" }, O = { BG: "bg", SVG: "svg" }, S = { AUTO: "auto", CLASSIC: "classic", SUPER: "super" }, C = { classic: 1, super: 2 }, G = { radius: "0.66", amount: "1.00", threshold: "0.01" }, R = { uri: "", css: { img: {}, container: {} }, attr: { img: {}, container: {} }, transformed: false }, F = 25e6, N = [1.5, 2, 4], P = { HIGH: { size: 196e4, quality: 90, maxUpscale: 1 }, MEDIUM: { size: 36e4, quality: 85, maxUpscale: 1 }, LOW: { size: 16e4, quality: 80, maxUpscale: 1.2 }, TINY: { size: 0, quality: 80, maxUpscale: 1.4 } }, x = { HIGH: "HIGH", MEDIUM: "MEDIUM", LOW: "LOW", TINY: "TINY" }, k = { CONTRAST: "contrast", BRIGHTNESS: "brightness", SATURATION: "saturation", HUE: "hue", BLUR: "blur" }, B = { JPG: "jpg", JPEG: "jpeg", JPE: "jpe", PNG: "png", WEBP: "webp", WIX_ICO_MP: "wix_ico_mp", WIX_MP: "wix_mp", GIF: "gif", AVIF: "avif", UNRECOGNIZED: "unrecognized" }, H = { AVIF: "AVIF", PAVIF: "PAVIF" };
|
|
211
|
+
function Y(e3, ...t3) {
|
|
212
|
+
return function(...i3) {
|
|
213
|
+
const a3 = i3[i3.length - 1] || {}, n3 = [e3[0]];
|
|
214
|
+
return t3.forEach(function(t4, r2) {
|
|
215
|
+
const o2 = Number.isInteger(t4) ? i3[t4] : a3[t4];
|
|
216
|
+
n3.push(o2, e3[r2 + 1]);
|
|
217
|
+
}), n3.join("");
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
function U(e3) {
|
|
221
|
+
return e3[e3.length - 1];
|
|
222
|
+
}
|
|
223
|
+
const $ = [B.PNG, B.JPEG, B.JPG, B.JPE, B.WIX_ICO_MP, B.WIX_MP, B.WEBP, B.AVIF], z = [B.JPEG, B.JPG, B.JPE];
|
|
224
|
+
function Z(e3, t3, i3) {
|
|
225
|
+
return i3 && t3 && !(!(a3 = t3.id) || !a3.trim() || "none" === a3.toLowerCase()) && Object.values(A).includes(e3);
|
|
226
|
+
var a3;
|
|
227
|
+
}
|
|
228
|
+
function j(e3, t3, i3, a3) {
|
|
229
|
+
if (/(^https?)|(^data)|(^\/\/)/.test(e3)) return false;
|
|
230
|
+
if (!function(e4, t4, i4) {
|
|
231
|
+
return !(V(e4) || q(e4)) || !t4 || i4;
|
|
232
|
+
}(e3, t3, i3)) return false;
|
|
233
|
+
const n3 = function(e4) {
|
|
234
|
+
return $.includes(ee(e4));
|
|
235
|
+
}(e3), r2 = function(e4, t4, i4) {
|
|
236
|
+
return !(!W(e4) || !t4 && !i4);
|
|
237
|
+
}(e3, i3, a3);
|
|
238
|
+
return n3 || r2;
|
|
239
|
+
}
|
|
240
|
+
function D(e3) {
|
|
241
|
+
return ee(e3) === B.PNG;
|
|
242
|
+
}
|
|
243
|
+
function V(e3) {
|
|
244
|
+
return ee(e3) === B.WEBP;
|
|
245
|
+
}
|
|
246
|
+
function W(e3) {
|
|
247
|
+
return ee(e3) === B.GIF;
|
|
248
|
+
}
|
|
249
|
+
function q(e3) {
|
|
250
|
+
return ee(e3) === B.AVIF;
|
|
251
|
+
}
|
|
252
|
+
const J = ["/", "\\", "?", "<", ">", "|", "“", ":", '"'].map(encodeURIComponent), K = ["\\.", "\\*"], X = "_";
|
|
253
|
+
function Q(e3) {
|
|
254
|
+
return function(e4) {
|
|
255
|
+
return z.includes(ee(e4));
|
|
256
|
+
}(e3) ? B.JPG : D(e3) ? B.PNG : V(e3) ? B.WEBP : W(e3) ? B.GIF : q(e3) ? B.AVIF : B.UNRECOGNIZED;
|
|
257
|
+
}
|
|
258
|
+
function ee(e3) {
|
|
259
|
+
return (/[.]([^.]+)$/.exec(e3) && /[.]([^.]+)$/.exec(e3)[1] || "").toLowerCase();
|
|
260
|
+
}
|
|
261
|
+
function te(e3, t3, i3, a3, n3) {
|
|
262
|
+
let r2;
|
|
263
|
+
return r2 = n3 === y.FILL ? function(e4, t4, i4, a4) {
|
|
264
|
+
return Math.max(i4 / e4, a4 / t4);
|
|
265
|
+
}(e3, t3, i3, a3) : n3 === y.FIT ? function(e4, t4, i4, a4) {
|
|
266
|
+
return Math.min(i4 / e4, a4 / t4);
|
|
267
|
+
}(e3, t3, i3, a3) : 1, r2;
|
|
268
|
+
}
|
|
269
|
+
function ie(e3, t3, i3, a3, n3, r2) {
|
|
270
|
+
e3 = e3 || a3.width, t3 = t3 || a3.height;
|
|
271
|
+
const { scaleFactor: o2, width: c2, height: s2 } = function(e4, t4, i4, a4, n4) {
|
|
272
|
+
let r3, o3 = i4, c3 = a4;
|
|
273
|
+
if (r3 = te(e4, t4, i4, a4, n4), n4 === y.FIT && (o3 = e4 * r3, c3 = t4 * r3), o3 && c3 && o3 * c3 > F) {
|
|
274
|
+
const i5 = Math.sqrt(F / (o3 * c3));
|
|
275
|
+
o3 *= i5, c3 *= i5, r3 = te(e4, t4, o3, c3, n4);
|
|
276
|
+
}
|
|
277
|
+
return { scaleFactor: r3, width: o3, height: c3 };
|
|
278
|
+
}(e3, t3, a3.width * n3, a3.height * n3, i3);
|
|
279
|
+
return function(e4, t4, i4, a4, n4, r3, o3) {
|
|
280
|
+
const { optimizedScaleFactor: c3, upscaleMethodValue: s3, forceUSM: l2 } = function(e5, t5, i5, a5) {
|
|
281
|
+
if ("auto" === a5) return function(e6, t6) {
|
|
282
|
+
const i6 = oe(e6, t6);
|
|
283
|
+
return { optimizedScaleFactor: P[i6].maxUpscale, upscaleMethodValue: C.classic, forceUSM: false };
|
|
284
|
+
}(e5, t5);
|
|
285
|
+
if ("super" === a5) return function(e6) {
|
|
286
|
+
return { optimizedScaleFactor: U(N), upscaleMethodValue: C.super, forceUSM: !(N.includes(e6) || e6 > U(N)) };
|
|
287
|
+
}(i5);
|
|
288
|
+
return function(e6, t6) {
|
|
289
|
+
const i6 = oe(e6, t6);
|
|
290
|
+
return { optimizedScaleFactor: P[i6].maxUpscale, upscaleMethodValue: C.classic, forceUSM: false };
|
|
291
|
+
}(e5, t5);
|
|
292
|
+
}(e4, t4, r3, n4);
|
|
293
|
+
let d2 = i4, u2 = a4;
|
|
294
|
+
if (r3 <= c3) return { width: d2, height: u2, scaleFactor: r3, upscaleMethodValue: s3, forceUSM: l2, cssUpscaleNeeded: false };
|
|
295
|
+
switch (o3) {
|
|
296
|
+
case y.FILL:
|
|
297
|
+
d2 = i4 * (c3 / r3), u2 = a4 * (c3 / r3);
|
|
298
|
+
break;
|
|
299
|
+
case y.FIT:
|
|
300
|
+
d2 = e4 * c3, u2 = t4 * c3;
|
|
301
|
+
}
|
|
302
|
+
return { width: d2, height: u2, scaleFactor: c3, upscaleMethodValue: s3, forceUSM: l2, cssUpscaleNeeded: true };
|
|
303
|
+
}(e3, t3, c2, s2, r2, o2, i3);
|
|
304
|
+
}
|
|
305
|
+
function ae(e3, t3, i3, a3) {
|
|
306
|
+
const n3 = re(i3) || function(e4 = M.CENTER) {
|
|
307
|
+
return w[e4];
|
|
308
|
+
}(a3);
|
|
309
|
+
return { x: Math.max(0, Math.min(e3.width - t3.width, n3.x * e3.width - t3.width / 2)), y: Math.max(0, Math.min(e3.height - t3.height, n3.y * e3.height - t3.height / 2)), width: Math.min(e3.width, t3.width), height: Math.min(e3.height, t3.height) };
|
|
310
|
+
}
|
|
311
|
+
function ne(e3) {
|
|
312
|
+
return e3.alignment && v[e3.alignment] || v[M.CENTER];
|
|
313
|
+
}
|
|
314
|
+
function re(e3) {
|
|
315
|
+
let t3;
|
|
316
|
+
return !e3 || "number" != typeof e3.x || isNaN(e3.x) || "number" != typeof e3.y || isNaN(e3.y) || (t3 = { x: ce(Math.max(0, Math.min(100, e3.x)) / 100, 2), y: ce(Math.max(0, Math.min(100, e3.y)) / 100, 2) }), t3;
|
|
317
|
+
}
|
|
318
|
+
function oe(e3, t3) {
|
|
319
|
+
const i3 = e3 * t3;
|
|
320
|
+
return i3 > P[x.HIGH].size ? x.HIGH : i3 > P[x.MEDIUM].size ? x.MEDIUM : i3 > P[x.LOW].size ? x.LOW : x.TINY;
|
|
321
|
+
}
|
|
322
|
+
function ce(e3, t3) {
|
|
323
|
+
const i3 = Math.pow(10, t3);
|
|
324
|
+
return (e3 * i3 / i3).toFixed(t3);
|
|
325
|
+
}
|
|
326
|
+
function se(e3) {
|
|
327
|
+
return e3 && e3.upscaleMethod && S[e3.upscaleMethod.toUpperCase()] || S.AUTO;
|
|
328
|
+
}
|
|
329
|
+
function le(e3, t3) {
|
|
330
|
+
const i3 = V(e3) || q(e3);
|
|
331
|
+
return ee(e3) === B.GIF || i3 && t3;
|
|
332
|
+
}
|
|
333
|
+
const de = { isMobile: false }, ue = function(e3) {
|
|
334
|
+
return de[e3];
|
|
335
|
+
};
|
|
336
|
+
function he() {
|
|
337
|
+
if ("undefined" != typeof window && "undefined" != typeof navigator) {
|
|
338
|
+
const t3 = window.matchMedia && window.matchMedia("(max-width: 767px)").matches, i3 = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
339
|
+
e3 = t3 && i3, de["isMobile"] = e3;
|
|
340
|
+
}
|
|
341
|
+
var e3;
|
|
342
|
+
}
|
|
343
|
+
function ge(e3, t3) {
|
|
344
|
+
const i3 = { css: { container: {} } }, { css: a3 } = i3, { fittingType: n3 } = e3;
|
|
345
|
+
switch (n3) {
|
|
346
|
+
case A.ORIGINAL_SIZE:
|
|
347
|
+
case A.LEGACY_ORIGINAL_SIZE:
|
|
348
|
+
case A.LEGACY_STRIP_ORIGINAL_SIZE:
|
|
349
|
+
a3.container.backgroundSize = "auto", a3.container.backgroundRepeat = "no-repeat";
|
|
350
|
+
break;
|
|
351
|
+
case A.SCALE_TO_FIT:
|
|
352
|
+
case A.LEGACY_STRIP_SCALE_TO_FIT:
|
|
353
|
+
a3.container.backgroundSize = "contain", a3.container.backgroundRepeat = "no-repeat";
|
|
354
|
+
break;
|
|
355
|
+
case A.STRETCH:
|
|
356
|
+
a3.container.backgroundSize = "100% 100%", a3.container.backgroundRepeat = "no-repeat";
|
|
357
|
+
break;
|
|
358
|
+
case A.SCALE_TO_FILL:
|
|
359
|
+
case A.LEGACY_STRIP_SCALE_TO_FILL:
|
|
360
|
+
a3.container.backgroundSize = "cover", a3.container.backgroundRepeat = "no-repeat";
|
|
361
|
+
break;
|
|
362
|
+
case A.TILE_HORIZONTAL:
|
|
363
|
+
case A.LEGACY_STRIP_TILE_HORIZONTAL:
|
|
364
|
+
a3.container.backgroundSize = "auto", a3.container.backgroundRepeat = "repeat-x";
|
|
365
|
+
break;
|
|
366
|
+
case A.TILE_VERTICAL:
|
|
367
|
+
case A.LEGACY_STRIP_TILE_VERTICAL:
|
|
368
|
+
a3.container.backgroundSize = "auto", a3.container.backgroundRepeat = "repeat-y";
|
|
369
|
+
break;
|
|
370
|
+
case A.TILE:
|
|
371
|
+
case A.LEGACY_STRIP_TILE:
|
|
372
|
+
a3.container.backgroundSize = "auto", a3.container.backgroundRepeat = "repeat";
|
|
373
|
+
break;
|
|
374
|
+
case A.LEGACY_STRIP_FIT_AND_TILE:
|
|
375
|
+
a3.container.backgroundSize = "contain", a3.container.backgroundRepeat = "repeat";
|
|
376
|
+
break;
|
|
377
|
+
case A.FIT_AND_TILE:
|
|
378
|
+
case A.LEGACY_BG_FIT_AND_TILE:
|
|
379
|
+
a3.container.backgroundSize = "auto", a3.container.backgroundRepeat = "repeat";
|
|
380
|
+
break;
|
|
381
|
+
case A.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:
|
|
382
|
+
a3.container.backgroundSize = "auto", a3.container.backgroundRepeat = "repeat-x";
|
|
383
|
+
break;
|
|
384
|
+
case A.LEGACY_BG_FIT_AND_TILE_VERTICAL:
|
|
385
|
+
a3.container.backgroundSize = "auto", a3.container.backgroundRepeat = "repeat-y";
|
|
386
|
+
break;
|
|
387
|
+
case A.LEGACY_BG_NORMAL:
|
|
388
|
+
a3.container.backgroundSize = "auto", a3.container.backgroundRepeat = "no-repeat";
|
|
389
|
+
}
|
|
390
|
+
switch (t3.alignment) {
|
|
391
|
+
case M.CENTER:
|
|
392
|
+
a3.container.backgroundPosition = "center center";
|
|
393
|
+
break;
|
|
394
|
+
case M.LEFT:
|
|
395
|
+
a3.container.backgroundPosition = "left center";
|
|
396
|
+
break;
|
|
397
|
+
case M.RIGHT:
|
|
398
|
+
a3.container.backgroundPosition = "right center";
|
|
399
|
+
break;
|
|
400
|
+
case M.TOP:
|
|
401
|
+
a3.container.backgroundPosition = "center top";
|
|
402
|
+
break;
|
|
403
|
+
case M.BOTTOM:
|
|
404
|
+
a3.container.backgroundPosition = "center bottom";
|
|
405
|
+
break;
|
|
406
|
+
case M.TOP_RIGHT:
|
|
407
|
+
a3.container.backgroundPosition = "right top";
|
|
408
|
+
break;
|
|
409
|
+
case M.TOP_LEFT:
|
|
410
|
+
a3.container.backgroundPosition = "left top";
|
|
411
|
+
break;
|
|
412
|
+
case M.BOTTOM_RIGHT:
|
|
413
|
+
a3.container.backgroundPosition = "right bottom";
|
|
414
|
+
break;
|
|
415
|
+
case M.BOTTOM_LEFT:
|
|
416
|
+
a3.container.backgroundPosition = "left bottom";
|
|
417
|
+
}
|
|
418
|
+
return i3;
|
|
419
|
+
}
|
|
420
|
+
const me = { [M.CENTER]: "center", [M.TOP]: "top", [M.TOP_LEFT]: "top left", [M.TOP_RIGHT]: "top right", [M.BOTTOM]: "bottom", [M.BOTTOM_LEFT]: "bottom left", [M.BOTTOM_RIGHT]: "bottom right", [M.LEFT]: "left", [M.RIGHT]: "right" }, fe = { position: "absolute", top: "auto", right: "auto", bottom: "auto", left: "auto" };
|
|
421
|
+
function pe(e3, t3) {
|
|
422
|
+
const i3 = { css: { container: {}, img: {} } }, { css: a3 } = i3, { fittingType: n3 } = e3, r2 = t3.alignment;
|
|
423
|
+
switch (a3.container.position = "relative", n3) {
|
|
424
|
+
case A.ORIGINAL_SIZE:
|
|
425
|
+
case A.LEGACY_ORIGINAL_SIZE:
|
|
426
|
+
e3.parts && e3.parts.length ? (a3.img.width = e3.parts[0].width, a3.img.height = e3.parts[0].height) : (a3.img.width = e3.src.width, a3.img.height = e3.src.height);
|
|
427
|
+
break;
|
|
428
|
+
case A.SCALE_TO_FIT:
|
|
429
|
+
case A.LEGACY_FIT_WIDTH:
|
|
430
|
+
case A.LEGACY_FIT_HEIGHT:
|
|
431
|
+
case A.LEGACY_FULL:
|
|
432
|
+
a3.img.width = t3.width, a3.img.height = t3.height, a3.img.objectFit = "contain", a3.img.objectPosition = me[r2] || "unset";
|
|
433
|
+
break;
|
|
434
|
+
case A.LEGACY_BG_NORMAL:
|
|
435
|
+
a3.img.width = "100%", a3.img.height = "100%", a3.img.objectFit = "none", a3.img.objectPosition = me[r2] || "unset";
|
|
436
|
+
break;
|
|
437
|
+
case A.STRETCH:
|
|
438
|
+
a3.img.width = t3.width, a3.img.height = t3.height, a3.img.objectFit = "fill";
|
|
439
|
+
break;
|
|
440
|
+
case A.SCALE_TO_FILL:
|
|
441
|
+
a3.img.width = t3.width, a3.img.height = t3.height, a3.img.objectFit = "cover";
|
|
442
|
+
}
|
|
443
|
+
if ("number" == typeof a3.img.width && "number" == typeof a3.img.height && (a3.img.width !== t3.width || a3.img.height !== t3.height)) {
|
|
444
|
+
const e4 = Math.round((t3.height - a3.img.height) / 2), i4 = Math.round((t3.width - a3.img.width) / 2);
|
|
445
|
+
Object.assign(a3.img, fe, function(e5, t4, i5) {
|
|
446
|
+
return { [M.TOP_LEFT]: { top: 0, left: 0 }, [M.TOP_RIGHT]: { top: 0, right: 0 }, [M.TOP]: { top: 0, left: t4 }, [M.BOTTOM_LEFT]: { bottom: 0, left: 0 }, [M.BOTTOM_RIGHT]: { bottom: 0, right: 0 }, [M.BOTTOM]: { bottom: 0, left: t4 }, [M.RIGHT]: { top: e5, right: 0 }, [M.LEFT]: { top: e5, left: 0 }, [M.CENTER]: { width: i5.width, height: i5.height, objectFit: "none" } };
|
|
447
|
+
}(e4, i4, t3)[r2]);
|
|
448
|
+
}
|
|
449
|
+
return i3;
|
|
450
|
+
}
|
|
451
|
+
function _e(e3, t3) {
|
|
452
|
+
const i3 = { css: { container: {} }, attr: { container: {}, img: {} } }, { css: a3, attr: n3 } = i3, { fittingType: r2 } = e3, o2 = t3.alignment, { width: c2, height: s2 } = e3.src;
|
|
453
|
+
let l2;
|
|
454
|
+
switch (a3.container.position = "relative", r2) {
|
|
455
|
+
case A.ORIGINAL_SIZE:
|
|
456
|
+
case A.LEGACY_ORIGINAL_SIZE:
|
|
457
|
+
case A.TILE:
|
|
458
|
+
e3.parts && e3.parts.length ? (n3.img.width = e3.parts[0].width, n3.img.height = e3.parts[0].height) : (n3.img.width = c2, n3.img.height = s2), n3.img.preserveAspectRatio = "xMidYMid slice";
|
|
459
|
+
break;
|
|
460
|
+
case A.SCALE_TO_FIT:
|
|
461
|
+
case A.LEGACY_FIT_WIDTH:
|
|
462
|
+
case A.LEGACY_FIT_HEIGHT:
|
|
463
|
+
case A.LEGACY_FULL:
|
|
464
|
+
n3.img.width = "100%", n3.img.height = "100%", n3.img.transform = "", n3.img.preserveAspectRatio = "";
|
|
465
|
+
break;
|
|
466
|
+
case A.STRETCH:
|
|
467
|
+
n3.img.width = t3.width, n3.img.height = t3.height, n3.img.x = 0, n3.img.y = 0, n3.img.transform = "", n3.img.preserveAspectRatio = "none";
|
|
468
|
+
break;
|
|
469
|
+
case A.SCALE_TO_FILL:
|
|
470
|
+
j(e3.src.id) ? (n3.img.width = t3.width, n3.img.height = t3.height) : (l2 = function(e4, t4, i4, a4, n4) {
|
|
471
|
+
const r3 = te(e4, t4, i4, a4, n4);
|
|
472
|
+
return { width: Math.round(e4 * r3), height: Math.round(t4 * r3) };
|
|
473
|
+
}(c2, s2, t3.width, t3.height, y.FILL), n3.img.width = l2.width, n3.img.height = l2.height), n3.img.x = 0, n3.img.y = 0, n3.img.transform = "", n3.img.preserveAspectRatio = "xMidYMid slice";
|
|
474
|
+
}
|
|
475
|
+
if ("number" == typeof n3.img.width && "number" == typeof n3.img.height && (n3.img.width !== t3.width || n3.img.height !== t3.height)) {
|
|
476
|
+
let e4, i4, a4 = 0, c3 = 0;
|
|
477
|
+
r2 === A.TILE ? (e4 = t3.width % n3.img.width, i4 = t3.height % n3.img.height) : (e4 = t3.width - n3.img.width, i4 = t3.height - n3.img.height);
|
|
478
|
+
const s3 = Math.round(e4 / 2), l3 = Math.round(i4 / 2);
|
|
479
|
+
switch (o2) {
|
|
480
|
+
case M.TOP_LEFT:
|
|
481
|
+
a4 = 0, c3 = 0;
|
|
482
|
+
break;
|
|
483
|
+
case M.TOP:
|
|
484
|
+
a4 = s3, c3 = 0;
|
|
485
|
+
break;
|
|
486
|
+
case M.TOP_RIGHT:
|
|
487
|
+
a4 = e4, c3 = 0;
|
|
488
|
+
break;
|
|
489
|
+
case M.LEFT:
|
|
490
|
+
a4 = 0, c3 = l3;
|
|
491
|
+
break;
|
|
492
|
+
case M.CENTER:
|
|
493
|
+
a4 = s3, c3 = l3;
|
|
494
|
+
break;
|
|
495
|
+
case M.RIGHT:
|
|
496
|
+
a4 = e4, c3 = l3;
|
|
497
|
+
break;
|
|
498
|
+
case M.BOTTOM_LEFT:
|
|
499
|
+
a4 = 0, c3 = i4;
|
|
500
|
+
break;
|
|
501
|
+
case M.BOTTOM:
|
|
502
|
+
a4 = s3, c3 = i4;
|
|
503
|
+
break;
|
|
504
|
+
case M.BOTTOM_RIGHT:
|
|
505
|
+
a4 = e4, c3 = i4;
|
|
506
|
+
}
|
|
507
|
+
n3.img.x = a4, n3.img.y = c3;
|
|
508
|
+
}
|
|
509
|
+
return n3.container.width = t3.width, n3.container.height = t3.height, n3.container.viewBox = [0, 0, t3.width, t3.height].join(" "), i3;
|
|
510
|
+
}
|
|
511
|
+
function Te(e3, t3, i3) {
|
|
512
|
+
let a3;
|
|
513
|
+
switch (t3.crop && (a3 = function(e4, t4) {
|
|
514
|
+
const i4 = Math.max(0, Math.min(e4.width, t4.x + t4.width) - Math.max(0, t4.x)), a4 = Math.max(0, Math.min(e4.height, t4.y + t4.height) - Math.max(0, t4.y));
|
|
515
|
+
return i4 && a4 && (e4.width !== i4 || e4.height !== a4) ? { x: Math.max(0, t4.x), y: Math.max(0, t4.y), width: i4, height: a4 } : null;
|
|
516
|
+
}(t3, t3.crop), a3 && (e3.src.width = a3.width, e3.src.height = a3.height, e3.src.isCropped = true, e3.parts.push(Ee(a3)))), e3.fittingType) {
|
|
517
|
+
case A.SCALE_TO_FIT:
|
|
518
|
+
case A.LEGACY_FIT_WIDTH:
|
|
519
|
+
case A.LEGACY_FIT_HEIGHT:
|
|
520
|
+
case A.LEGACY_FULL:
|
|
521
|
+
case A.FIT_AND_TILE:
|
|
522
|
+
case A.LEGACY_BG_FIT_AND_TILE:
|
|
523
|
+
case A.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:
|
|
524
|
+
case A.LEGACY_BG_FIT_AND_TILE_VERTICAL:
|
|
525
|
+
case A.LEGACY_BG_NORMAL:
|
|
526
|
+
e3.parts.push(Ie(e3, i3));
|
|
527
|
+
break;
|
|
528
|
+
case A.SCALE_TO_FILL:
|
|
529
|
+
e3.parts.push(function(e4, t4) {
|
|
530
|
+
const i4 = ie(e4.src.width, e4.src.height, y.FILL, t4, e4.devicePixelRatio, e4.upscaleMethod), a4 = re(e4.focalPoint);
|
|
531
|
+
return { transformType: a4 ? y.FILL_FOCAL : y.FILL, width: Math.round(i4.width), height: Math.round(i4.height), alignment: ne(t4), focalPointX: a4 && a4.x, focalPointY: a4 && a4.y, upscale: i4.scaleFactor > 1, forceUSM: i4.forceUSM, scaleFactor: i4.scaleFactor, cssUpscaleNeeded: i4.cssUpscaleNeeded, upscaleMethodValue: i4.upscaleMethodValue };
|
|
532
|
+
}(e3, i3));
|
|
533
|
+
break;
|
|
534
|
+
case A.STRETCH:
|
|
535
|
+
e3.parts.push(function(e4, t4) {
|
|
536
|
+
const i4 = te(e4.src.width, e4.src.height, t4.width, t4.height, y.FILL), a4 = { ...t4 };
|
|
537
|
+
return a4.width = e4.src.width * i4, a4.height = e4.src.height * i4, Ie(e4, a4);
|
|
538
|
+
}(e3, i3));
|
|
539
|
+
break;
|
|
540
|
+
case A.TILE_HORIZONTAL:
|
|
541
|
+
case A.TILE_VERTICAL:
|
|
542
|
+
case A.TILE:
|
|
543
|
+
case A.LEGACY_ORIGINAL_SIZE:
|
|
544
|
+
case A.ORIGINAL_SIZE:
|
|
545
|
+
a3 = ae(e3.src, i3, e3.focalPoint, i3.alignment), e3.src.isCropped ? (Object.assign(e3.parts[0], a3), e3.src.width = a3.width, e3.src.height = a3.height) : e3.parts.push(Ee(a3));
|
|
546
|
+
break;
|
|
547
|
+
case A.LEGACY_STRIP_TILE_HORIZONTAL:
|
|
548
|
+
case A.LEGACY_STRIP_TILE_VERTICAL:
|
|
549
|
+
case A.LEGACY_STRIP_TILE:
|
|
550
|
+
case A.LEGACY_STRIP_ORIGINAL_SIZE:
|
|
551
|
+
e3.parts.push(function(e4) {
|
|
552
|
+
return { transformType: y.LEGACY_CROP, width: Math.round(e4.width), height: Math.round(e4.height), alignment: ne(e4), upscale: false, forceUSM: false, scaleFactor: 1, cssUpscaleNeeded: false };
|
|
553
|
+
}(i3));
|
|
554
|
+
break;
|
|
555
|
+
case A.LEGACY_STRIP_SCALE_TO_FIT:
|
|
556
|
+
case A.LEGACY_STRIP_FIT_AND_TILE:
|
|
557
|
+
e3.parts.push(function(e4) {
|
|
558
|
+
return { transformType: y.FIT, width: Math.round(e4.width), height: Math.round(e4.height), upscale: false, forceUSM: true, scaleFactor: 1, cssUpscaleNeeded: false };
|
|
559
|
+
}(i3));
|
|
560
|
+
break;
|
|
561
|
+
case A.LEGACY_STRIP_SCALE_TO_FILL:
|
|
562
|
+
e3.parts.push(function(e4) {
|
|
563
|
+
return { transformType: y.LEGACY_FILL, width: Math.round(e4.width), height: Math.round(e4.height), alignment: ne(e4), upscale: false, forceUSM: true, scaleFactor: 1, cssUpscaleNeeded: false };
|
|
564
|
+
}(i3));
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
function Ie(e3, t3) {
|
|
568
|
+
const i3 = ie(e3.src.width, e3.src.height, y.FIT, t3, e3.devicePixelRatio, e3.upscaleMethod);
|
|
569
|
+
return { transformType: !e3.src.width || !e3.src.height ? y.FIT : y.FILL, width: Math.round(i3.width), height: Math.round(i3.height), alignment: v.center, upscale: i3.scaleFactor > 1, forceUSM: i3.forceUSM, scaleFactor: i3.scaleFactor, cssUpscaleNeeded: i3.cssUpscaleNeeded, upscaleMethodValue: i3.upscaleMethodValue };
|
|
570
|
+
}
|
|
571
|
+
function Ee(e3) {
|
|
572
|
+
return { transformType: y.CROP, x: Math.round(e3.x), y: Math.round(e3.y), width: Math.round(e3.width), height: Math.round(e3.height), upscale: false, forceUSM: false, scaleFactor: 1, cssUpscaleNeeded: false };
|
|
573
|
+
}
|
|
574
|
+
function Le(e3, t3) {
|
|
575
|
+
t3 = t3 || {}, e3.quality = function(e4, t4) {
|
|
576
|
+
const i3 = e4.fileType === B.PNG, a3 = e4.fileType === B.JPG, n3 = e4.fileType === B.WEBP, r2 = e4.fileType === B.AVIF, o2 = a3 || i3 || n3 || r2;
|
|
577
|
+
if (o2) {
|
|
578
|
+
const a4 = U(e4.parts), n4 = (c2 = a4.width, s2 = a4.height, P[oe(c2, s2)].quality);
|
|
579
|
+
let r3 = t4.quality && t4.quality >= 5 && t4.quality <= 90 ? t4.quality : n4;
|
|
580
|
+
return r3 = i3 ? r3 + 5 : r3, r3;
|
|
581
|
+
}
|
|
582
|
+
var c2, s2;
|
|
583
|
+
return 0;
|
|
584
|
+
}(e3, t3), e3.progressive = function(e4) {
|
|
585
|
+
return false !== e4.progressive;
|
|
586
|
+
}(t3), e3.watermark = function(e4) {
|
|
587
|
+
return e4.watermark;
|
|
588
|
+
}(t3), e3.autoEncode = t3.autoEncode ?? true, e3.encoding = t3?.encoding, e3.unsharpMask = function(e4, t4) {
|
|
589
|
+
if (function(e5) {
|
|
590
|
+
const t5 = "number" == typeof (e5 = e5 || {}).radius && !isNaN(e5.radius) && e5.radius >= 0.1 && e5.radius <= 500, i4 = "number" == typeof e5.amount && !isNaN(e5.amount) && e5.amount >= 0 && e5.amount <= 10, a3 = "number" == typeof e5.threshold && !isNaN(e5.threshold) && e5.threshold >= 0 && e5.threshold <= 255;
|
|
591
|
+
return t5 && i4 && a3;
|
|
592
|
+
}(t4.unsharpMask)) return { radius: ce(t4.unsharpMask?.radius, 2), amount: ce(t4.unsharpMask?.amount, 2), threshold: ce(t4.unsharpMask?.threshold, 2) };
|
|
593
|
+
if (("number" != typeof (i3 = (i3 = t4.unsharpMask) || {}).radius || isNaN(i3.radius) || 0 !== i3.radius || "number" != typeof i3.amount || isNaN(i3.amount) || 0 !== i3.amount || "number" != typeof i3.threshold || isNaN(i3.threshold) || 0 !== i3.threshold) && function(e5) {
|
|
594
|
+
const t5 = U(e5.parts);
|
|
595
|
+
return !(t5.scaleFactor >= 1) || t5.forceUSM || t5.transformType === y.FIT;
|
|
596
|
+
}(e4)) return G;
|
|
597
|
+
var i3;
|
|
598
|
+
return;
|
|
599
|
+
}(e3, t3), e3.filters = function(e4) {
|
|
600
|
+
const t4 = e4.filters || {}, i3 = {};
|
|
601
|
+
be(t4[k.CONTRAST], -100, 100) && (i3[k.CONTRAST] = t4[k.CONTRAST]);
|
|
602
|
+
be(t4[k.BRIGHTNESS], -100, 100) && (i3[k.BRIGHTNESS] = t4[k.BRIGHTNESS]);
|
|
603
|
+
be(t4[k.SATURATION], -100, 100) && (i3[k.SATURATION] = t4[k.SATURATION]);
|
|
604
|
+
be(t4[k.HUE], -180, 180) && (i3[k.HUE] = t4[k.HUE]);
|
|
605
|
+
be(t4[k.BLUR], 0, 100) && (i3[k.BLUR] = t4[k.BLUR]);
|
|
606
|
+
return i3;
|
|
607
|
+
}(t3);
|
|
608
|
+
}
|
|
609
|
+
function be(e3, t3, i3) {
|
|
610
|
+
return "number" == typeof e3 && !isNaN(e3) && 0 !== e3 && e3 >= t3 && e3 <= i3;
|
|
611
|
+
}
|
|
612
|
+
function Ae(e3, t3, i3, a3) {
|
|
613
|
+
const n3 = function(e4) {
|
|
614
|
+
return e4?.isSEOBot ?? false;
|
|
615
|
+
}(a3), r2 = Q(t3.id), o2 = function(e4, t4) {
|
|
616
|
+
const i4 = /\.([^.]*)$/, a4 = new RegExp(`(${J.concat(K).join("|")})`, "g");
|
|
617
|
+
if (t4 && t4.length) {
|
|
618
|
+
let e5 = t4;
|
|
619
|
+
const n5 = t4.match(i4);
|
|
620
|
+
return n5 && $.includes(n5[1]) && (e5 = t4.replace(i4, "")), encodeURIComponent(e5).replace(a4, X);
|
|
621
|
+
}
|
|
622
|
+
const n4 = e4.match(/\/(.*?)$/);
|
|
623
|
+
return (n4 ? n4[1] : e4).replace(i4, "");
|
|
624
|
+
}(t3.id, t3.name), c2 = n3 ? 1 : function(e4) {
|
|
625
|
+
return Math.min(e4.pixelAspectRatio || 1, T);
|
|
626
|
+
}(i3), s2 = ee(t3.id), l2 = s2, d2 = j(t3.id, a3?.hasAnimation, a3?.allowAnimatedTransform, a3?.allowFullGIFTransformation), u2 = { fileName: o2, fileExtension: s2, fileType: r2, fittingType: e3, preferredExtension: l2, src: { id: t3.id, width: t3.width, height: t3.height, isCropped: false, isAnimated: le(t3.id, a3?.hasAnimation) }, focalPoint: { x: t3.focalPoint && t3.focalPoint.x, y: t3.focalPoint && t3.focalPoint.y }, parts: [], devicePixelRatio: c2, quality: 0, upscaleMethod: se(a3), progressive: true, watermark: "", unsharpMask: {}, filters: {}, transformed: d2, allowFullGIFTransformation: a3?.allowFullGIFTransformation, isPlaceholderFlow: a3?.isPlaceholderFlow };
|
|
627
|
+
return d2 && (Te(u2, t3, i3), Le(u2, a3)), u2;
|
|
628
|
+
}
|
|
629
|
+
function ye(e3, t3, i3) {
|
|
630
|
+
const a3 = { ...i3 }, n3 = ue("isMobile");
|
|
631
|
+
switch (e3) {
|
|
632
|
+
case A.LEGACY_BG_FIT_AND_TILE:
|
|
633
|
+
case A.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:
|
|
634
|
+
case A.LEGACY_BG_FIT_AND_TILE_VERTICAL:
|
|
635
|
+
case A.LEGACY_BG_NORMAL:
|
|
636
|
+
const e4 = n3 ? L : I, i4 = n3 ? b : E;
|
|
637
|
+
a3.width = Math.min(e4, t3.width), a3.height = Math.min(i4, Math.round(a3.width / (t3.width / t3.height))), a3.pixelAspectRatio = 1;
|
|
638
|
+
}
|
|
639
|
+
return a3;
|
|
640
|
+
}
|
|
641
|
+
const Me = Y`fit/w_${"width"},h_${"height"}`, we = Y`fill/w_${"width"},h_${"height"},al_${"alignment"}`, ve = Y`fill/w_${"width"},h_${"height"},fp_${"focalPointX"}_${"focalPointY"}`, Oe = Y`crop/x_${"x"},y_${"y"},w_${"width"},h_${"height"}`, Se = Y`crop/w_${"width"},h_${"height"},al_${"alignment"}`, Ce = Y`fill/w_${"width"},h_${"height"},al_${"alignment"}`, Ge = Y`,lg_${"upscaleMethodValue"}`, Re = Y`,q_${"quality"}`, Fe = Y`,quality_auto`, Ne = Y`,usm_${"radius"}_${"amount"}_${"threshold"}`, Pe = Y`,bl`, xe = Y`,wm_${"watermark"}`, ke = { [k.CONTRAST]: Y`,con_${"contrast"}`, [k.BRIGHTNESS]: Y`,br_${"brightness"}`, [k.SATURATION]: Y`,sat_${"saturation"}`, [k.HUE]: Y`,hue_${"hue"}`, [k.BLUR]: Y`,blur_${"blur"}` }, Be = Y`,enc_auto`, He = Y`,enc_avif`, Ye = Y`,enc_pavif`, Ue = Y`,pstr`, $e = Y`,anm_all`;
|
|
642
|
+
function ze(e3, t3, i3, a3 = {}, n3) {
|
|
643
|
+
if (j(t3.id, a3?.hasAnimation, a3?.allowAnimatedTransform, a3?.allowFullGIFTransformation)) {
|
|
644
|
+
if (V(t3.id) || q(t3.id)) {
|
|
645
|
+
const { alignment: r2, ...o2 } = i3;
|
|
646
|
+
t3.focalPoint = { x: void 0, y: void 0 }, delete t3?.crop, n3 = Ae(e3, t3, o2, a3);
|
|
647
|
+
} else n3 = n3 || Ae(e3, t3, i3, a3);
|
|
648
|
+
return function(e4) {
|
|
649
|
+
const t4 = [];
|
|
650
|
+
e4.parts.forEach((e5) => {
|
|
651
|
+
switch (e5.transformType) {
|
|
652
|
+
case y.CROP:
|
|
653
|
+
t4.push(Oe(e5));
|
|
654
|
+
break;
|
|
655
|
+
case y.LEGACY_CROP:
|
|
656
|
+
t4.push(Se(e5));
|
|
657
|
+
break;
|
|
658
|
+
case y.LEGACY_FILL:
|
|
659
|
+
let i5 = Ce(e5);
|
|
660
|
+
e5.upscale && (i5 += Ge(e5)), t4.push(i5);
|
|
661
|
+
break;
|
|
662
|
+
case y.FIT:
|
|
663
|
+
let a4 = Me(e5);
|
|
664
|
+
e5.upscale && (a4 += Ge(e5)), t4.push(a4);
|
|
665
|
+
break;
|
|
666
|
+
case y.FILL:
|
|
667
|
+
let n4 = we(e5);
|
|
668
|
+
e5.upscale && (n4 += Ge(e5)), t4.push(n4);
|
|
669
|
+
break;
|
|
670
|
+
case y.FILL_FOCAL:
|
|
671
|
+
let r2 = ve(e5);
|
|
672
|
+
e5.upscale && (r2 += Ge(e5)), t4.push(r2);
|
|
673
|
+
}
|
|
674
|
+
});
|
|
675
|
+
let i4 = t4.join("/");
|
|
676
|
+
if (e4.quality && (i4 += Re(e4)), e4.unsharpMask && (i4 += Ne(e4.unsharpMask)), e4.progressive || (i4 += Pe(e4)), e4.watermark && (i4 += xe(e4)), e4.filters && (i4 += Object.keys(e4.filters).map((t5) => ke[t5](e4.filters)).join("")), e4.fileType !== B.GIF && (e4.encoding === H.AVIF ? (i4 += He(e4), i4 += Fe(e4)) : e4.encoding === H.PAVIF ? (i4 += Ye(e4), i4 += Fe(e4)) : e4.autoEncode && (i4 += Be(e4))), e4.src?.isAnimated && e4.transformed) {
|
|
677
|
+
const t5 = W(e4.src.id), a4 = true === e4.isPlaceholderFlow, n4 = true === e4.allowFullGIFTransformation;
|
|
678
|
+
a4 ? i4 += Ue(e4) : t5 && n4 && (i4 += $e(e4));
|
|
679
|
+
}
|
|
680
|
+
return `${e4.src.id}/${_}/${i4}/${e4.fileName}.${e4.preferredExtension}`;
|
|
681
|
+
}(n3);
|
|
682
|
+
}
|
|
683
|
+
return t3.id;
|
|
684
|
+
}
|
|
685
|
+
const Ze = { [M.CENTER]: "50% 50%", [M.TOP_LEFT]: "0% 0%", [M.TOP_RIGHT]: "100% 0%", [M.TOP]: "50% 0%", [M.BOTTOM_LEFT]: "0% 100%", [M.BOTTOM_RIGHT]: "100% 100%", [M.BOTTOM]: "50% 100%", [M.RIGHT]: "100% 50%", [M.LEFT]: "0% 50%" }, je = Object.entries(Ze).reduce((e3, [t3, i3]) => (e3[i3] = t3, e3), {}), De = [A.TILE, A.TILE_HORIZONTAL, A.TILE_VERTICAL, A.LEGACY_BG_FIT_AND_TILE, A.LEGACY_BG_FIT_AND_TILE_HORIZONTAL, A.LEGACY_BG_FIT_AND_TILE_VERTICAL], Ve = [A.LEGACY_ORIGINAL_SIZE, A.ORIGINAL_SIZE, A.LEGACY_BG_NORMAL];
|
|
686
|
+
function We(e3, t3, { width: i3, height: a3 }) {
|
|
687
|
+
return e3 === A.TILE && t3.width > i3 && t3.height > a3;
|
|
688
|
+
}
|
|
689
|
+
function qe(e3, { width: t3, height: i3 }) {
|
|
690
|
+
if (!t3 || !i3) {
|
|
691
|
+
const a3 = t3 || Math.min(980, e3.width), n3 = a3 / e3.width;
|
|
692
|
+
return { width: a3, height: i3 || e3.height * n3 };
|
|
693
|
+
}
|
|
694
|
+
return { width: t3, height: i3 };
|
|
695
|
+
}
|
|
696
|
+
function Je(e3, t3, i3, a3 = "center") {
|
|
697
|
+
const n3 = { img: {}, container: {} };
|
|
698
|
+
if (e3 === A.SCALE_TO_FILL) {
|
|
699
|
+
const e4 = t3.focalPoint && function(e5) {
|
|
700
|
+
const t4 = `${e5.x}% ${e5.y}%`;
|
|
701
|
+
return je[t4] || "";
|
|
702
|
+
}(t3.focalPoint), r2 = e4 || a3;
|
|
703
|
+
t3.focalPoint && !e4 ? n3.img = { objectPosition: Ke(t3, i3, t3.focalPoint) } : n3.img = { objectPosition: Ze[r2] };
|
|
704
|
+
} else [A.LEGACY_ORIGINAL_SIZE, A.ORIGINAL_SIZE].includes(e3) ? n3.img = { objectFit: "none", top: "auto", left: "auto", right: "auto", bottom: "auto" } : De.includes(e3) && (n3.container = { backgroundSize: `${t3.width}px ${t3.height}px` });
|
|
705
|
+
return n3;
|
|
706
|
+
}
|
|
707
|
+
function Ke(e3, t3, i3) {
|
|
708
|
+
const { width: a3, height: n3 } = e3, { width: r2, height: o2 } = t3, { x: c2, y: s2 } = i3;
|
|
709
|
+
if (!r2 || !o2) return `${c2}% ${s2}%`;
|
|
710
|
+
const l2 = Math.max(r2 / a3, o2 / n3), d2 = a3 * l2, u2 = n3 * l2, h = Math.max(0, Math.min(d2 - r2, d2 * (c2 / 100) - r2 / 2)), g = Math.max(0, Math.min(u2 - o2, u2 * (s2 / 100) - o2 / 2));
|
|
711
|
+
return `${h && Math.floor(h / (d2 - r2) * 100)}% ${g && Math.floor(g / (u2 - o2) * 100)}%`;
|
|
712
|
+
}
|
|
713
|
+
const Xe = { width: "100%", height: "100%" };
|
|
714
|
+
function Qe(e3, t3, i3, a3 = {}) {
|
|
715
|
+
const { autoEncode: n3 = true, isSEOBot: r2, shouldLoadHQImage: o2, hasAnimation: c2, allowAnimatedTransform: s2, encoding: l2 } = a3;
|
|
716
|
+
if (!Z(e3, t3, i3)) return R;
|
|
717
|
+
const d2 = true, u2 = s2 ?? d2, h = j(t3.id, c2, u2);
|
|
718
|
+
if (!h || o2) return et(e3, t3, i3, { ...a3, autoEncode: n3, useSrcset: h });
|
|
719
|
+
const g = { ...i3, ...qe(t3, i3) }, { alignment: m, htmlTag: f2 } = g, p2 = We(e3, t3, g), _2 = function(e4, t4, { width: i4, height: a4 }, n4 = false) {
|
|
720
|
+
if (n4) return { width: i4, height: a4 };
|
|
721
|
+
const r3 = !Ve.includes(e4), o3 = We(e4, t4, { width: i4, height: a4 }), c3 = !o3 && De.includes(e4), s3 = c3 ? t4.width : i4, l3 = c3 ? t4.height : a4, d3 = r3 ? function(e5, t5) {
|
|
722
|
+
return e5 > 900 ? t5 ? 0.05 : 0.15 : e5 > 500 ? t5 ? 0.1 : 0.18 : e5 > 200 ? 0.25 : 1;
|
|
723
|
+
}(s3, D(t4.id)) : 1;
|
|
724
|
+
return { width: o3 ? 1920 : s3 * d3, height: l3 * d3 };
|
|
725
|
+
}(e3, t3, g, r2), T2 = function(e4, t4, i4) {
|
|
726
|
+
return i4 ? 0 : De.includes(t4) ? 1 : e4 > 200 ? 2 : 3;
|
|
727
|
+
}(g.width, e3, r2), I2 = function(e4, t4) {
|
|
728
|
+
const i4 = De.includes(e4) && !t4;
|
|
729
|
+
return e4 === A.SCALE_TO_FILL || i4 ? A.SCALE_TO_FIT : e4;
|
|
730
|
+
}(e3, p2), E2 = Je(e3, t3, i3, m), { uri: L2 } = et(I2, t3, { ..._2, alignment: m, htmlTag: f2 }, { autoEncode: n3, filters: T2 ? { blur: T2 } : {}, hasAnimation: c2, allowAnimatedTransform: u2, encoding: l2, isPlaceholderFlow: d2 }), { attr: b2 = {}, css: y2 } = et(e3, t3, { ...g, alignment: m, htmlTag: f2 }, {});
|
|
731
|
+
return y2.img = y2.img || {}, y2.container = y2.container || {}, Object.assign(y2.img, E2.img, Xe), Object.assign(y2.container, E2.container), { uri: L2, css: y2, attr: b2, transformed: true };
|
|
732
|
+
}
|
|
733
|
+
function et(e3, t3, i3, a3) {
|
|
734
|
+
let n3 = {};
|
|
735
|
+
if (Z(e3, t3, i3)) {
|
|
736
|
+
const r2 = ye(e3, t3, i3), o2 = Ae(e3, t3, r2, a3);
|
|
737
|
+
n3.uri = ze(e3, t3, r2, a3, o2), a3?.useSrcset && (n3.srcset = function(e4, t4, i4, a4, n4) {
|
|
738
|
+
const r3 = i4.pixelAspectRatio || 1;
|
|
739
|
+
return { dpr: [`${1 === r3 ? n4.uri : ze(e4, t4, { ...i4, pixelAspectRatio: 1 }, a4)} 1x`, `${2 === r3 ? n4.uri : ze(e4, t4, { ...i4, pixelAspectRatio: 2 }, a4)} 2x`] };
|
|
740
|
+
}(e3, t3, r2, a3, n3)), Object.assign(n3, function(e4, t4) {
|
|
741
|
+
let i4;
|
|
742
|
+
return i4 = t4.htmlTag === O.BG ? ge : t4.htmlTag === O.SVG ? _e : pe, i4(e4, t4);
|
|
743
|
+
}(o2, r2), { transformed: o2.transformed });
|
|
744
|
+
} else n3 = R;
|
|
745
|
+
return n3;
|
|
746
|
+
}
|
|
747
|
+
const tt = "https://static.wixstatic.com/media/";
|
|
748
|
+
he();
|
|
749
|
+
he();
|
|
750
|
+
const it = tt, { STATIC_MEDIA_URL: at } = a2, nt = ({ fittingType: e3, src: t3, target: i3, options: a3 }) => {
|
|
751
|
+
const n3 = Qe(e3, t3, i3, { ...a3, autoEncode: true });
|
|
752
|
+
return n3?.uri && !/^[a-z]+:/.test(n3.uri) && (n3.uri = `${at}${n3.uri}`), n3;
|
|
753
|
+
}, rt = /^[a-z]+:/, ot = (e3) => {
|
|
754
|
+
const { id: t3, containerId: i3, uri: a3, alt: n3, name: r2 = "", role: c2, width: s2, height: l2, displayMode: d2, devicePixelRatio: u2, quality: h, alignType: g, bgEffectName: m = "", focalPoint: f2, upscaleMethod: _2, className: T2 = "", crop: I2, imageStyles: E2 = {}, targetWidth: L2, targetHeight: b2, targetScale: A2, onLoad: y2 = () => {
|
|
755
|
+
}, onError: M2 = () => {
|
|
756
|
+
}, shouldUseLQIP: w2, containerWidth: v2, containerHeight: O2, getPlaceholder: S2, isInFirstFold: C2, placeholderTransition: G2, socialAttrs: R2, isSEOBot: F2, skipMeasure: N2, hasAnimation: P2, encoding: x2, isFluidLayout: k2 } = e3, B2 = o.useRef(null);
|
|
757
|
+
let H2 = "";
|
|
758
|
+
const Y2 = "blur" === G2, U2 = o.useRef(null);
|
|
759
|
+
if (!U2.current) if (S2 || w2 || C2 || F2) {
|
|
760
|
+
const e4 = { upscaleMethod: _2, ...h || {}, shouldLoadHQImage: C2, isSEOBot: F2, hasAnimation: P2, encoding: x2 };
|
|
761
|
+
U2.current = (S2 || nt)({ fittingType: d2, src: { id: a3, width: s2, height: l2, crop: I2, name: r2, focalPoint: f2 }, target: { width: v2, height: O2, alignment: g, htmlTag: "img" }, options: e4 }), H2 = !U2.current.transformed || C2 || F2 ? "" : "true";
|
|
762
|
+
} else U2.current = { uri: void 0, css: { img: {} }, attr: { img: {}, container: {} }, transformed: false };
|
|
763
|
+
const $2 = !F2 && (S2 || w2) && !C2 && U2.current.transformed, z2 = o.useMemo(() => JSON.stringify({ containerId: i3, ...i3 && { containerId: i3 }, ...g && { alignType: g }, ...N2 && { skipMeasure: true }, displayMode: d2, ...v2 && { targetWidth: v2 }, ...O2 && { targetHeight: O2 }, ...L2 && { targetWidth: L2 }, ...b2 && { targetHeight: b2 }, ...A2 && { targetScale: A2 }, isLQIP: $2, isSEOBot: F2, lqipTransition: G2, encoding: x2, imageData: { width: s2, height: l2, uri: a3, name: r2, displayMode: d2, hasAnimation: P2, ...h && { quality: h }, ...u2 && { devicePixelRatio: u2 }, ...f2 && { focalPoint: f2 }, ...I2 && { crop: I2 }, ..._2 && { upscaleMethod: _2 } } }), [i3, g, N2, d2, v2, O2, L2, b2, A2, $2, F2, G2, x2, s2, l2, a3, r2, P2, h, u2, f2, I2, _2]), Z2 = U2.current, j2 = Z2?.uri, D2 = Z2?.srcset, V2 = Z2.css?.img, W2 = `${p} ${T2}`;
|
|
764
|
+
o.useEffect(() => {
|
|
765
|
+
const e4 = B2.current;
|
|
766
|
+
y2 && e4?.currentSrc && e4?.complete && y2({ target: e4 });
|
|
767
|
+
}, []);
|
|
768
|
+
const q2 = Z2 && !Z2?.transformed ? `max(${s2}px, 100%)` : L2 ? `${L2}px` : null;
|
|
769
|
+
return o.createElement("wow-image", { id: t3, class: W2, "data-image-info": z2, "data-motion-part": `BG_IMG ${i3}`, "data-bg-effect-name": m, "data-has-ssr-src": H2, "data-animate-blur": !F2 && $2 && Y2 ? "" : void 0, "data-is-responsive": k2 ? "true" : void 0, style: q2 ? { "--wix-img-max-width": q2 } : {} }, o.createElement("img", { src: j2, ref: B2, alt: n3 || "", role: c2, style: { ...V2, ...E2 }, onLoad: y2, onError: M2, width: v2 || void 0, height: O2 || void 0, ...R2, srcSet: C2 ? D2?.dpr?.map((e4) => rt.test(e4) ? e4 : `${at}${e4}`).join(", ") : void 0, fetchpriority: C2 ? "high" : void 0, loading: false === C2 ? "lazy" : void 0, suppressHydrationWarning: true }));
|
|
770
|
+
};
|
|
771
|
+
var ct = "Tj01hh";
|
|
772
|
+
var st = (e3) => {
|
|
773
|
+
var t3, i3;
|
|
774
|
+
const { id: a3, alt: n3, role: c2, className: l2, imageStyles: d2 = {}, targetWidth: u2, targetHeight: h, onLoad: g, onError: m, containerWidth: f2, containerHeight: p2, isInFirstFold: _2, socialAttrs: T2, skipMeasure: I2, responsiveImageProps: E2, zoomedImageResponsiveOverride: L2, displayMode: b2 } = e3, A2 = u2 || f2, y2 = h || p2, { fallbackSrc: M2, srcset: w2, sources: v2, css: O2 } = E2 || {}, { width: S2, height: C2, ...G2 } = (null == E2 || null == (t3 = E2.css) ? void 0 : t3.img) || {}, R2 = "original_size" === b2 ? null == E2 || null == (i3 = E2.css) ? void 0 : i3.img : G2;
|
|
775
|
+
var F2;
|
|
776
|
+
return M2 && w2 && O2 ? o.createElement("img", r()({ fetchpriority: _2 ? "high" : void 0, loading: false === _2 ? "lazy" : void 0, sizes: A2 + "px", srcSet: I2 ? null == L2 ? void 0 : L2.srcset : null == E2 ? void 0 : E2.srcset, id: a3, src: M2, alt: n3 || "", role: c2, style: { ...d2, ...I2 ? { ...null == L2 || null == (F2 = L2.css) ? void 0 : F2.img } : { ...R2 } }, onLoad: g, onError: m, className: (0, s.Z)(l2, ct), width: A2, height: y2 }, T2)) : M2 && v2 && O2 ? o.createElement("picture", null, v2.map((e4) => {
|
|
777
|
+
let { srcset: t4, media: i4, sizes: a4 } = e4;
|
|
778
|
+
return o.createElement("source", { key: i4, srcSet: t4, media: i4, sizes: a4 });
|
|
779
|
+
}), o.createElement("img", r()({ fetchpriority: _2 ? "high" : void 0, loading: false === _2 ? "lazy" : void 0, id: a3, src: v2[0].fallbackSrc, alt: n3 || "", role: c2, style: { ...d2, objectFit: v2[0].imgStyle.objectFit, objectPosition: v2[0].imgStyle.objectPosition }, onLoad: g, onError: m, className: (0, s.Z)(l2, ct), width: A2, height: y2 }, T2))) : o.createElement(ot, e3);
|
|
780
|
+
};
|
|
781
|
+
var lt = (e3) => {
|
|
782
|
+
var t3, i3, a3;
|
|
783
|
+
const { className: n3, customIdPrefix: r2, getPlaceholder: c2, hasAnimation: s2, ...l2 } = e3, d2 = o.useMemo(() => JSON.stringify({ containerId: l2.containerId, alignType: l2.alignType, fittingType: l2.displayMode, hasAnimation: s2, imageData: { width: l2.width, height: l2.height, uri: l2.uri, name: l2.name, ...l2.quality && { quality: l2.quality }, displayMode: l2.displayMode } }), [l2, s2]), u2 = o.useRef(null);
|
|
784
|
+
u2.current || (u2.current = c2 ? c2({ fittingType: l2.displayMode, src: { id: l2.uri, width: l2.width, height: l2.height, name: l2.name }, target: { width: l2.containerWidth, height: l2.containerHeight, alignment: l2.alignType, htmlTag: "bg" }, options: { hasAnimation: s2, allowAnimatedTransform: false } }) : { uri: void 0, css: { img: {} }, attr: { img: {}, container: {} } });
|
|
785
|
+
const h = u2.current, g = null != (t3 = null == h ? void 0 : h.uri) ? t3 : "", m = null != (i3 = null == (a3 = h.css) ? void 0 : a3.container) ? i3 : {}, f2 = Object.assign(g ? { backgroundImage: "url(" + g + ")" } : {}, m);
|
|
786
|
+
return o.createElement("wix-bg-image", { id: "" + (r2 || "bgImg_") + l2.containerId, class: n3, style: f2, "data-tiled-image-info": d2, "data-has-bg-scroll-effect": l2.hasBgScrollEffect || "", "data-bg-effect-name": l2.bgEffectName || "", "data-motion-part": "BG_IMG " + l2.containerId });
|
|
787
|
+
};
|
|
788
|
+
const dt = new RegExp("<%= compId %>", "g"), ut = (e3, t3) => e3.replace(dt, t3);
|
|
789
|
+
var ht = (e3) => null == e3 ? void 0 : e3.replace(":hover", ""), gt = "bX9O_S", mt = "Z_wCwr", ft = "Jxk_UL", pt = "K8MSra", _t = "YTb3b4";
|
|
790
|
+
const Tt = { quality: { unsharpMask: { radius: 0.33, amount: 1, threshold: 0 } }, devicePixelRatio: 1 };
|
|
791
|
+
var It = (e3) => {
|
|
792
|
+
const { id: t3, videoRef: i3, videoInfo: a3, posterImageInfo: n3, muted: c2, preload: l2, loop: d2, alt: u2, isVideoEnabled: h, getPlaceholder: g, extraClassName: m = "" } = e3;
|
|
793
|
+
a3.containerId = ht(a3.containerId);
|
|
794
|
+
const f2 = o.useMemo(() => JSON.stringify(a3), [a3]), p2 = o.createElement(o.Fragment, null, n3.filterEffectSvgString && o.createElement("svg", { id: "svg_" + a3.containerId, className: _t }, o.createElement("defs", { dangerouslySetInnerHTML: { __html: ut(n3.filterEffectSvgString, a3.containerId) } })), o.createElement(st, r()({ key: a3.videoId + "_img", id: n3.containerId + "_img", className: (0, s.Z)(mt, ft, "bgVideoposter", m), imageStyles: { width: "100%", height: "100%" } }, n3, Tt, { getPlaceholder: g })));
|
|
795
|
+
return h ? o.createElement("wix-video", { id: t3, "data-video-info": f2, "data-motion-part": "BG_IMG " + a3.containerId, class: (0, s.Z)(gt, "bgVideo", m) }, o.createElement("video", { key: a3.videoId + "_video", ref: i3, id: a3.containerId + "_video", className: pt, crossOrigin: "anonymous", "aria-label": u2, playsInline: true, preload: l2, muted: c2, loop: d2 }), p2) : p2;
|
|
796
|
+
}, Et = "SUz0WK";
|
|
797
|
+
var Lt = (e3) => {
|
|
798
|
+
const { id: t3, containerId: i3, pageId: a3, children: n3, bgEffectName: r2 = "", containerSize: c2 } = e3;
|
|
799
|
+
return o.createElement("wix-bg-media", { id: t3, class: Et, "data-container-id": i3, "data-container-size": ((null == c2 ? void 0 : c2.width) || 0) + ", " + ((null == c2 ? void 0 : c2.height) || 0), "data-page-id": a3, "data-bg-effect-name": r2, "data-motion-part": "BG_MEDIA " + i3 }, n3);
|
|
800
|
+
};
|
|
801
|
+
const bt = "bgOverlay";
|
|
802
|
+
var At = "m4khSP", yt = "FNxOn5";
|
|
803
|
+
var Mt = (e3) => {
|
|
804
|
+
const { imageOverlay: t3 } = e3;
|
|
805
|
+
return o.createElement("div", { "data-testid": bt, className: At }, t3 && o.createElement(lt, r()({ customIdPrefix: "bgImgOverlay_", className: yt }, t3)));
|
|
806
|
+
};
|
|
807
|
+
const wt = "bgLayers", vt = "colorUnderlay", Ot = "mediaPadding", St = "canvas";
|
|
808
|
+
var Ct = "MW5IWV", Gt = "N3eg0s", Rt = "Kv1aVt", Ft = "dLPlxY", Nt = "VgO9Yg", Pt = "LWbAav", xt = "yK6aSC", kt = "K_YxMd", Bt = "NGjcJN", Ht = "mNGsUM", Yt = "I8xA4L";
|
|
809
|
+
const Ut = "bgImage";
|
|
810
|
+
var $t = (e3) => {
|
|
811
|
+
const { videoRef: t3, canvasRef: i3, hasBgFullscreenScrollEffect: a3, image: n3, backgroundImage: c2, backgroundMedia: l2, video: d2, backgroundOverlay: u2, shouldPadMedia: h, extraClass: g = "", shouldRenderUnderlay: m = !d2, reducedMotion: f2 = false, getPlaceholder: p2, hasCanvasAnimation: _2, useWixMediaCanvas: T2, onClick: I2 } = e3, { onImageLoad: E2 } = ((e4) => {
|
|
812
|
+
let { onReady: t4, image: i4 } = e4;
|
|
813
|
+
return (0, o.useEffect)(() => {
|
|
814
|
+
t4 && !i4 && t4();
|
|
815
|
+
}, [t4, i4]), { onImageLoad: (e5) => {
|
|
816
|
+
null != i4 && i4.onLoad && i4.onLoad(e5), t4 && t4();
|
|
817
|
+
} };
|
|
818
|
+
})(e3), L2 = ht(e3.containerId), b2 = "img_" + ht(L2), A2 = n3 && o.createElement(st, r()({ id: b2, className: (0, s.Z)(Rt, Ft, Ht, Ut), imageStyles: { width: "100%", height: "100%" }, getPlaceholder: p2 }, n3, { onLoad: E2 })), y2 = c2 && o.createElement(lt, r()({}, c2, { containerId: L2, className: (0, s.Z)(Rt, Ft, Ht, Ut), getPlaceholder: p2 })), M2 = d2 && o.createElement(It, r()({ id: "videoContainer_" + L2 }, d2, { extraClassName: xt, reducedMotion: f2, videoRef: t3, getPlaceholder: p2 })), w2 = T2 && i3 || _2 ? o.createElement("wix-media-canvas", { "data-container-id": L2, class: _2 ? Yt : "" }, A2, y2, M2, o.createElement("canvas", { id: L2 + "webglcanvas", className: (0, s.Z)(kt, "webglcanvas"), "aria-label": (null == d2 ? void 0 : d2.alt) || "", role: "presentation", "data-testid": St })) : o.createElement(o.Fragment, null, A2, y2, M2, i3 && o.createElement("canvas", { id: L2 + "webglcanvas", ref: i3, className: (0, s.Z)(kt, "webglcanvas"), "aria-label": (null == d2 ? void 0 : d2.alt) || "", role: "presentation", "data-testid": St })), v2 = l2 ? o.createElement(Lt, r()({ id: "bgMedia_" + L2 }, l2), w2) : o.createElement("div", { id: "bgMedia_" + L2, "data-motion-part": "BG_MEDIA " + L2, className: Nt }, w2), O2 = u2 && o.createElement(Mt, u2);
|
|
819
|
+
return o.createElement("div", { id: wt + "_" + L2, "data-hook": wt, "data-motion-part": "BG_LAYER " + L2, className: (0, s.Z)(Ct, g, { [Gt]: a3 }), onClick: I2 }, m && o.createElement("div", { "data-testid": vt, className: (0, s.Z)(Pt, Rt) }), h ? o.createElement("div", { "data-testid": Ot, className: Bt }, v2, O2) : o.createElement(o.Fragment, null, v2, O2));
|
|
820
|
+
};
|
|
821
|
+
var zt = (e3) => o.createElement($t, e3), Zt = "dkukWC", jt = "FRCqDF", Dt = "xnZvZH", Vt = "MBOSCN";
|
|
822
|
+
const Wt = (e3, t3, i3) => {
|
|
823
|
+
const a3 = ((e4, t4) => e4 ? [...Array(1 + (t4 || 0)).keys()].reverse().map((e5) => o.createElement("div", { key: "divider-layer-" + e5, style: { "--divider-layer-i": e5 }, className: jt, "data-testid": "divider-layer-" + e5, "data-divider-layer": e5 })) : null)(!!t3, i3);
|
|
824
|
+
return t3 ? o.createElement("div", { className: (0, s.Z)(Zt, { [Dt]: "top" === e3, [Vt]: "bottom" === e3 }), "data-testid": e3 + "-divider" }, a3) : null;
|
|
825
|
+
};
|
|
826
|
+
var qt = (e3) => {
|
|
827
|
+
var t3, i3;
|
|
828
|
+
const a3 = o.useMemo(() => {
|
|
829
|
+
var t4;
|
|
830
|
+
return Wt("top", null == e3 ? void 0 : e3.hasTopDivider, null == e3 || null == (t4 = e3.topLayers) ? void 0 : t4.size);
|
|
831
|
+
}, [null == e3 ? void 0 : e3.hasTopDivider, null == e3 || null == (t3 = e3.topLayers) ? void 0 : t3.size]), n3 = o.useMemo(() => {
|
|
832
|
+
var t4;
|
|
833
|
+
return Wt("bottom", null == e3 ? void 0 : e3.hasBottomDivider, null == e3 || null == (t4 = e3.bottomLayers) ? void 0 : t4.size);
|
|
834
|
+
}, [null == e3 ? void 0 : e3.hasBottomDivider, null == e3 || null == (i3 = e3.bottomLayers) ? void 0 : i3.size]);
|
|
835
|
+
return o.createElement(o.Fragment, null, a3, n3);
|
|
836
|
+
};
|
|
837
|
+
var Jt = { root: "section" }, Kt = i2("p1x1");
|
|
838
|
+
const Xt = ({ size: e3, ...t3 }) => o.createElement("svg", { viewBox: "0 0 18 18", fill: "currentColor", width: e3 || "18", height: e3 || "18", ...t3 }, o.createElement("path", { d: "M7.5,5 C8.32842712,5 9,5.67157288 9,6.5 L9,11.5 C9,12.3284271 8.32842712,13 7.5,13 C6.67157288,13 6,12.3284271 6,11.5 L6,6.5 C6,5.67157288 6.67157288,5 7.5,5 Z M11.5,5 C12.3284271,5 13,5.67157288 13,6.5 L13,11.5 C13,12.3284271 12.3284271,13 11.5,13 C10.6715729,13 10,12.3284271 10,11.5 L10,6.5 C10,5.67157288 10.6715729,5 11.5,5 Z M7.5,6 C7.22385763,6 7,6.22385763 7,6.5 L7,11.5 C7,11.7761424 7.22385763,12 7.5,12 C7.77614237,12 8,11.7761424 8,11.5 L8,6.5 C8,6.22385763 7.77614237,6 7.5,6 Z M11.5,6 C11.2238576,6 11,6.22385763 11,6.5 L11,11.5 C11,11.7761424 11.2238576,12 11.5,12 C11.7761424,12 12,11.7761424 12,11.5 L12,6.5 C12,6.22385763 11.7761424,6 11.5,6 Z" }));
|
|
839
|
+
Xt.displayName = "PauseSmall";
|
|
840
|
+
var Qt = Xt;
|
|
841
|
+
const ei = ({ size: e3, ...t3 }) => o.createElement("svg", { viewBox: "0 0 18 18", fill: "currentColor", width: e3 || "18", height: e3 || "18", ...t3 }, o.createElement("path", { d: "M6.87468837,5.45041947 L12.7318793,8.46657119 C13.20163,8.68731241 13.20163,9.26940918 12.7318793,9.53342881 L6.87468837,12.5495805 C6.58008377,12.7012867 6.00070071,12.5801226 6,12.0161517 L6,5.98384828 C6,5.65247743 6.35266876,5.20682168 6.87468837,5.45041947 Z M7,11.3602529 L11.5834735,9 L7,6.63974714 L7,11.3602529 Z" }));
|
|
842
|
+
ei.displayName = "PlaySmall";
|
|
843
|
+
var ti = ei;
|
|
844
|
+
const ii = (e3, t3) => {
|
|
845
|
+
var i3;
|
|
846
|
+
const { id: a3, skin: n3 = "RectangleArea", className: l2, containerRootClassName: h = "", customClassNames: g = [], containerProps: m, children: p2, fillLayers: _2 = e3.fillLayers || e3.background, tagName: T2, getPlaceholder: I2, dividers: E2, semanticClassNames: L2, onStop: b2, onClick: A2, onDblClick: y2, onMouseEnter: M2, onMouseLeave: w2, lang: v2, translations: O2, isPlayPauseSectionExperimentOn: S2, isBuilder: C2 } = e3, G2 = T2 || "section", { shouldOmitWrapperLayers: R2 } = m, F2 = (0, s.Z)(Kt.Z[n3], h, l2, L2 ? d(L2.root, ...g) : d(Jt.root, ...g), { [Kt.Z.shouldOmitWrapperLayers]: R2 }), N2 = !(null == _2 || !_2.video), P2 = function(e4, t4, i4) {
|
|
847
|
+
const a4 = c().useRef(null), n4 = c().useRef(null);
|
|
848
|
+
return t4 ? n4.current || (n4.current = { play: () => a4.current?.play(), load: () => a4.current?.load(), pause: () => a4.current?.pause(), stop: () => {
|
|
849
|
+
a4.current && (a4.current.pause(), a4.current.currentTime = 0, i4 && i4(a4.current));
|
|
850
|
+
} }) : n4.current = null, c().useImperativeHandle(e4, () => n4.current || { load() {
|
|
851
|
+
}, stop() {
|
|
852
|
+
} }), a4;
|
|
853
|
+
}(t3, N2, b2), [x2, k2] = o.useState(!(null != P2 && null != (i3 = P2.current) && i3.paused));
|
|
854
|
+
return o.createElement(G2, r()({ id: a3 }, (0, u.P5)(e3), ((e4 = {}) => {
|
|
855
|
+
const t4 = e4.tabIndex ?? e4.tabindex ?? void 0;
|
|
856
|
+
return void 0 !== t4 ? { tabIndex: Number(t4) } : {};
|
|
857
|
+
})(e3.a11y || { tabIndex: -1 }), (B2 = e3.a11y, B2?.label ? { "aria-label": B2.label } : {}), { "data-block-level-container": "Section", className: F2 + " " + Kt.Z.section, "data-testid": f, onClick: A2, onDoubleClick: y2, onMouseEnter: M2, onMouseLeave: w2, lang: v2 }), _2 && !C2 && o.createElement(zt, r()({}, _2, { videoRef: P2, getPlaceholder: I2 })), N2 && S2 && !C2 && o.createElement("button", { className: "" + Kt.Z.videoPlayPauseButton, onClick: () => {
|
|
858
|
+
const e4 = null == P2 ? void 0 : P2.current;
|
|
859
|
+
e4 && (e4.paused ? e4.play() : e4.pause(), k2((t4) => {
|
|
860
|
+
const i4 = !t4, n4 = document.getElementById(a3);
|
|
861
|
+
if (n4) {
|
|
862
|
+
n4.querySelectorAll("video").forEach((t5) => {
|
|
863
|
+
t5 !== e4 && (i4 ? t5.play() : t5.pause());
|
|
864
|
+
});
|
|
865
|
+
}
|
|
866
|
+
return i4;
|
|
867
|
+
}));
|
|
868
|
+
}, "aria-pressed": x2, "aria-label": null == O2 ? void 0 : O2.ariaLabel }, x2 ? o.createElement(Qt, null) : o.createElement(ti, null)), E2 && !C2 && o.createElement(qt, E2), p2());
|
|
869
|
+
var B2;
|
|
870
|
+
};
|
|
871
|
+
var ai = o.forwardRef(ii);
|
|
872
|
+
}, p1x1: function(e2, t2) {
|
|
873
|
+
t2.Z = { "bg-underlay": "LWbAav", bgUnderlay: "LWbAav", "layers-container": "MW5IWV", layersContainer: "MW5IWV", animate: "V7OeEw", headerSectionAddVisibilityTransition: "MDGLoD", move: "BHIo43", fade: "UvF1nu", scrollUp: "YzrQFb", RectangleArea: "xuzjBY", rectangleArea: "xuzjBY", DefaultAreaSkin: "O7Ybkb", defaultAreaSkin: "O7Ybkb", "full-screen-scroll-effect": "GeNLDt", fullScreenScrollEffect: "GeNLDt", "fill-layer": "K8pHFh", fillLayer: "K8pHFh", "image-fill-layer": "TaweqS", imageFillLayer: "TaweqS", "bg-media": "yzHyNT", bgMedia: "yzHyNT", videoFillLayer: "zBFCpO", "alpha-canvas": "xjgrS3", alphaCanvas: "xjgrS3", "media-padding-layer": "b3zSS0", mediaPaddingLayer: "b3zSS0", transforms: "Wsv3ak", "media-canvas": "IiJMfn", mediaCanvas: "IiJMfn", RectangleAreaAfterScroll: "KJgt14", rectangleAreaAfterScroll: "KJgt14", scrolled: "VTwcX7", section: "Gzsk0j", "video-play-pause-button": "MdLl0h", videoPlayPauseButton: "MdLl0h", childrenContainer: "Gmmci1" };
|
|
874
|
+
}, guqK: function(e2, t2, i2) {
|
|
875
|
+
i2.d(t2, { P5: function() {
|
|
876
|
+
return a2;
|
|
877
|
+
} });
|
|
878
|
+
const a2 = (e3) => Object.entries(e3).reduce((e4, [t3, i3]) => (t3.includes("data-") && (e4[t3] = i3), e4), {});
|
|
879
|
+
}, "Xdf/": function(t2) {
|
|
880
|
+
t2.exports = e;
|
|
881
|
+
}, Fe5V: function(e2) {
|
|
882
|
+
function t2() {
|
|
883
|
+
return e2.exports = t2 = Object.assign ? Object.assign.bind() : function(e3) {
|
|
884
|
+
for (var t3 = 1; t3 < arguments.length; t3++) {
|
|
885
|
+
var i2 = arguments[t3];
|
|
886
|
+
for (var a2 in i2) ({}).hasOwnProperty.call(i2, a2) && (e3[a2] = i2[a2]);
|
|
887
|
+
}
|
|
888
|
+
return e3;
|
|
889
|
+
}, e2.exports.__esModule = true, e2.exports.default = e2.exports, t2.apply(null, arguments);
|
|
890
|
+
}
|
|
891
|
+
e2.exports = t2, e2.exports.__esModule = true, e2.exports.default = e2.exports;
|
|
892
|
+
}, MRkx: function(e2, t2, i2) {
|
|
893
|
+
function a2(e3) {
|
|
894
|
+
var t3, i3, n2 = "";
|
|
895
|
+
if ("string" == typeof e3 || "number" == typeof e3) n2 += e3;
|
|
896
|
+
else if ("object" == typeof e3) if (Array.isArray(e3)) for (t3 = 0; t3 < e3.length; t3++) e3[t3] && (i3 = a2(e3[t3])) && (n2 && (n2 += " "), n2 += i3);
|
|
897
|
+
else for (t3 in e3) e3[t3] && (n2 && (n2 += " "), n2 += t3);
|
|
898
|
+
return n2;
|
|
899
|
+
}
|
|
900
|
+
t2.Z = function() {
|
|
901
|
+
for (var e3, t3, i3 = 0, n2 = ""; i3 < arguments.length; ) (e3 = arguments[i3++]) && (t3 = a2(e3)) && (n2 && (n2 += " "), n2 += t3);
|
|
902
|
+
return n2;
|
|
903
|
+
};
|
|
904
|
+
} }, i = {};
|
|
905
|
+
function a(e2) {
|
|
906
|
+
var n2 = i[e2];
|
|
907
|
+
if (void 0 !== n2) return n2.exports;
|
|
908
|
+
var r = i[e2] = { exports: {} };
|
|
909
|
+
return t[e2](r, r.exports, a), r.exports;
|
|
910
|
+
}
|
|
911
|
+
a.n = function(e2) {
|
|
912
|
+
var t2 = e2 && e2.__esModule ? function() {
|
|
913
|
+
return e2.default;
|
|
914
|
+
} : function() {
|
|
915
|
+
return e2;
|
|
916
|
+
};
|
|
917
|
+
return a.d(t2, { a: t2 }), t2;
|
|
918
|
+
}, a.d = function(e2, t2) {
|
|
919
|
+
for (var i2 in t2) a.o(t2, i2) && !a.o(e2, i2) && Object.defineProperty(e2, i2, { enumerable: true, get: t2[i2] });
|
|
920
|
+
}, a.o = function(e2, t2) {
|
|
921
|
+
return Object.prototype.hasOwnProperty.call(e2, t2);
|
|
922
|
+
}, a.r = function(e2) {
|
|
923
|
+
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e2, "__esModule", { value: true });
|
|
924
|
+
};
|
|
925
|
+
var n = {};
|
|
926
|
+
return function() {
|
|
927
|
+
a.r(n), a.d(n, { default: function() {
|
|
928
|
+
return c;
|
|
929
|
+
} });
|
|
930
|
+
var e2 = a("Fe5V"), t2 = a.n(e2), i2 = a("Xdf/"), r = a("iCIt");
|
|
931
|
+
var o = { root: "footer" };
|
|
932
|
+
var c = (e3) => i2.createElement(r.default, t2()({}, e3, { semanticClassNames: o }));
|
|
933
|
+
}(), n;
|
|
934
|
+
}();
|
|
935
|
+
});
|
|
936
|
+
})(FooterSection_bundle_min);
|
|
937
|
+
var FooterSection_bundle_minExports = FooterSection_bundle_min.exports;
|
|
938
|
+
const Component$6 = /* @__PURE__ */ getDefaultExportFromCjs(FooterSection_bundle_minExports);
|
|
939
|
+
const FooterSection = withNormalChildren(Component$6);
|
|
940
|
+
var HeaderContainer_bundle_min$1 = { exports: {} };
|
|
941
|
+
(function(module2, exports$1) {
|
|
942
|
+
!function(e, t) {
|
|
943
|
+
module2.exports = t(require$$0);
|
|
944
|
+
}("undefined" != typeof self ? self : commonjsGlobal, function(e) {
|
|
945
|
+
return function() {
|
|
946
|
+
var t = { eV9E: function(e2, t2, n2) {
|
|
947
|
+
n2.d(t2, { default: function() {
|
|
948
|
+
return x;
|
|
949
|
+
} });
|
|
950
|
+
var r2 = n2("Fe5V"), o2 = n2.n(r2), i = n2("Xdf/"), a = n2.n(i), s = n2("MRkx");
|
|
951
|
+
const d = "wixui-", u = (e3, ...t3) => {
|
|
952
|
+
const n3 = [];
|
|
953
|
+
return n3.push(`${d}${e3}`), t3.forEach((e4) => {
|
|
954
|
+
e4 && (n3.push(`${d}${e4}`), n3.push(e4));
|
|
955
|
+
}), n3.join(" ");
|
|
956
|
+
};
|
|
957
|
+
var c = n2("guqK");
|
|
958
|
+
const l = "mesh-container-content", f = "inline-content", p = (e3) => a().createElement("div", { key: e3.props.id + "-rotated-wrapper", "data-mesh-id": e3.props.id + "-rotated-wrapper" }, e3), m = (e3, t3) => {
|
|
959
|
+
const { id: n3, className: r3, wedges: i2 = [], rotatedComponents: d2 = [], children: u2, fixedComponents: m2 = [], extraClassName: h2 = "", renderRotatedComponents: v2 = p } = e3, w2 = a().Children.toArray(u2()), y2 = [], g2 = [];
|
|
960
|
+
w2.forEach((e4) => m2.includes(e4.props.id) ? y2.push(e4) : g2.push(e4));
|
|
961
|
+
const b2 = ((e4) => {
|
|
962
|
+
const { wedges: t4, rotatedComponents: n4, childrenArray: r4, renderRotatedComponents: o3 } = e4, i3 = n4.reduce((e5, t5) => ({ ...e5, [t5]: true }), {});
|
|
963
|
+
return [...r4.map((e5) => {
|
|
964
|
+
return i3[t5 = e5, t5.props.id.split("__")[0]] ? o3(e5) : e5;
|
|
965
|
+
var t5;
|
|
966
|
+
}), ...t4.map((e5) => a().createElement("div", { key: e5, "data-mesh-id": e5 }))];
|
|
967
|
+
})({ childrenArray: g2, rotatedComponents: d2, wedges: i2, renderRotatedComponents: v2 });
|
|
968
|
+
return a().createElement("div", o2()({}, (0, c.P5)(e3), { "data-mesh-id": n3 + "inlineContent", "data-testid": f, className: (0, s.Z)(r3, h2), ref: t3 }), a().createElement("div", { "data-mesh-id": n3 + "inlineContent-gridContainer", "data-testid": l }, b2), y2);
|
|
969
|
+
};
|
|
970
|
+
var h = a().forwardRef(m), v = n2("5zKW");
|
|
971
|
+
var w = { root: "header" };
|
|
972
|
+
const y = "Reverse", g = "up", b = "down";
|
|
973
|
+
var x = (e3) => {
|
|
974
|
+
const { id: t3, skin: n3, children: r3, animations: d2, meshProps: c2, className: l2, customClassNames: f2 = [], fillLayers: p2, lang: m2 } = e3, [x2, C] = (0, i.useState)(""), [E, k] = (0, i.useState)(false), T = (e4) => {
|
|
975
|
+
C(e4), k(false);
|
|
976
|
+
};
|
|
977
|
+
(0, i.useEffect)(() => {
|
|
978
|
+
window.TransitionEvent || setTimeout(() => k(true), 200);
|
|
979
|
+
}, [x2]);
|
|
980
|
+
const H = x2 && !((e4) => e4.endsWith(y))(x2), j = () => {
|
|
981
|
+
const e4 = ((e5) => "" + e5 + y)(x2);
|
|
982
|
+
T(e4);
|
|
983
|
+
}, P = { onMouseEnter: e3.onMouseEnter, onMouseLeave: e3.onMouseLeave, onClick: e3.onClick, onDoubleClick: e3.onDblClick, onFocus: H ? j : void 0, onTransitionEnd: () => k(true) };
|
|
984
|
+
let R = b, O = 0;
|
|
985
|
+
(0, v.R)((e4) => {
|
|
986
|
+
var t4, n4;
|
|
987
|
+
let { currPos: r4, prevPos: o3 } = e4;
|
|
988
|
+
const i2 = r4.y && -1 * r4.y, a2 = o3.y && -1 * o3.y, s2 = d2[d2.length - 1], u2 = null == (t4 = s2.params) || null == (t4 = t4.animations) ? void 0 : t4[s2.params.animations.length - 1];
|
|
989
|
+
if (!u2) return;
|
|
990
|
+
const c3 = "mobile" === (null == (n4 = s2.viewMode) ? void 0 : n4.toLowerCase()) ? 1 : ((e5) => {
|
|
991
|
+
switch (e5) {
|
|
992
|
+
case "HeaderFadeOut":
|
|
993
|
+
return 200;
|
|
994
|
+
case "HeaderHideToTop":
|
|
995
|
+
return 400;
|
|
996
|
+
default:
|
|
997
|
+
return null;
|
|
998
|
+
}
|
|
999
|
+
})(u2.name);
|
|
1000
|
+
c3 && (((e5, t5) => {
|
|
1001
|
+
R === b && e5 < t5 ? (O = t5, R = g) : R === g && e5 > t5 && e5 >= 0 && t5 >= 0 && (O = t5, R = b);
|
|
1002
|
+
})(i2, a2), H ? (R === g && i2 + c3 < O || 0 === r4.y) && j() : R === b && i2 - O >= c3 && T(u2.name));
|
|
1003
|
+
}, [x2, d2], { disabled: !d2 || !d2.length });
|
|
1004
|
+
const M = (0, s.Z)(l2, u(w.root, ...f2));
|
|
1005
|
+
return a().createElement(n3, { wrapperProps: { id: t3, tagName: "header", eventHandlers: P, className: M, transition: x2, transitionEnded: E, tabIndex: "-1", lang: m2 }, "data-block-level-container": "HeaderContainer", fillLayers: p2 }, a().createElement(h, o2()({ id: t3 }, c2, { children: r3 })));
|
|
1006
|
+
};
|
|
1007
|
+
}, "5zKW": function(e2, t2, n2) {
|
|
1008
|
+
n2.d(t2, { R: function() {
|
|
1009
|
+
return d;
|
|
1010
|
+
} });
|
|
1011
|
+
var r2 = n2("Xdf/"), o2 = n2("cy2i"), i = n2.n(o2), a = n2("guqK");
|
|
1012
|
+
function s() {
|
|
1013
|
+
if (!(0, a.jU)()) return { x: 0, y: 0, isAtPageBottom: false };
|
|
1014
|
+
const { left: e3, top: t3 } = document.body.getBoundingClientRect();
|
|
1015
|
+
return { x: e3, y: t3, isAtPageBottom: window.innerHeight + window.scrollY === document.body.scrollHeight };
|
|
1016
|
+
}
|
|
1017
|
+
function d(e3, t3, n3) {
|
|
1018
|
+
void 0 === n3 && (n3 = {}), n3 = { waitFor: 100, disabled: false, ...n3 };
|
|
1019
|
+
const o3 = (0, r2.useRef)(s());
|
|
1020
|
+
let d2 = null;
|
|
1021
|
+
const u = () => {
|
|
1022
|
+
i().measure(() => {
|
|
1023
|
+
const t4 = s(), n4 = o3.current;
|
|
1024
|
+
o3.current = t4, d2 = null, i().mutate(() => e3({ prevPos: n4, currPos: t4 }));
|
|
1025
|
+
});
|
|
1026
|
+
};
|
|
1027
|
+
((0, a.jU)() ? r2.useLayoutEffect : r2.useEffect)(() => {
|
|
1028
|
+
if (!(0, a.jU)()) return;
|
|
1029
|
+
const e4 = () => {
|
|
1030
|
+
null === d2 && (d2 = window.setTimeout(u, n3.waitFor));
|
|
1031
|
+
};
|
|
1032
|
+
return n3.disabled ? () => {
|
|
1033
|
+
} : (window.addEventListener("scroll", e4), () => {
|
|
1034
|
+
window.removeEventListener("scroll", e4), d2 && window.clearTimeout(d2);
|
|
1035
|
+
});
|
|
1036
|
+
}, t3);
|
|
1037
|
+
}
|
|
1038
|
+
}, cy2i: function(e2, t2, n2) {
|
|
1039
|
+
var r2;
|
|
1040
|
+
!function(t3) {
|
|
1041
|
+
var o2 = function() {
|
|
1042
|
+
}, i = t3.requestAnimationFrame || t3.webkitRequestAnimationFrame || t3.mozRequestAnimationFrame || t3.msRequestAnimationFrame || function(e3) {
|
|
1043
|
+
return setTimeout(e3, 16);
|
|
1044
|
+
};
|
|
1045
|
+
function a() {
|
|
1046
|
+
var e3 = this;
|
|
1047
|
+
e3.reads = [], e3.writes = [], e3.raf = i.bind(t3);
|
|
1048
|
+
}
|
|
1049
|
+
function s(e3) {
|
|
1050
|
+
e3.scheduled || (e3.scheduled = true, e3.raf(d.bind(null, e3)), o2());
|
|
1051
|
+
}
|
|
1052
|
+
function d(e3) {
|
|
1053
|
+
var t4, n3 = e3.writes, r3 = e3.reads;
|
|
1054
|
+
try {
|
|
1055
|
+
o2("flushing reads", r3.length), e3.runTasks(r3), o2("flushing writes", n3.length), e3.runTasks(n3);
|
|
1056
|
+
} catch (e4) {
|
|
1057
|
+
t4 = e4;
|
|
1058
|
+
}
|
|
1059
|
+
if (e3.scheduled = false, (r3.length || n3.length) && s(e3), t4) {
|
|
1060
|
+
if (o2("task errored", t4.message), !e3.catch) throw t4;
|
|
1061
|
+
e3.catch(t4);
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
function u(e3, t4) {
|
|
1065
|
+
var n3 = e3.indexOf(t4);
|
|
1066
|
+
return !!~n3 && !!e3.splice(n3, 1);
|
|
1067
|
+
}
|
|
1068
|
+
a.prototype = { constructor: a, runTasks: function(e3) {
|
|
1069
|
+
var t4;
|
|
1070
|
+
for (o2(); t4 = e3.shift(); ) t4();
|
|
1071
|
+
}, measure: function(e3, t4) {
|
|
1072
|
+
var n3 = t4 ? e3.bind(t4) : e3;
|
|
1073
|
+
return this.reads.push(n3), s(this), n3;
|
|
1074
|
+
}, mutate: function(e3, t4) {
|
|
1075
|
+
var n3 = t4 ? e3.bind(t4) : e3;
|
|
1076
|
+
return this.writes.push(n3), s(this), n3;
|
|
1077
|
+
}, clear: function(e3) {
|
|
1078
|
+
return u(this.reads, e3) || u(this.writes, e3);
|
|
1079
|
+
}, extend: function(e3) {
|
|
1080
|
+
if ("object" != typeof e3) throw new Error("expected object");
|
|
1081
|
+
var t4 = Object.create(this);
|
|
1082
|
+
return function(e4, t5) {
|
|
1083
|
+
for (var n3 in t5) t5.hasOwnProperty(n3) && (e4[n3] = t5[n3]);
|
|
1084
|
+
}(t4, e3), t4.fastdom = this, t4.initialize && t4.initialize(), t4;
|
|
1085
|
+
}, catch: null };
|
|
1086
|
+
var c = t3.fastdom = t3.fastdom || new a();
|
|
1087
|
+
void 0 === (r2 = function() {
|
|
1088
|
+
return c;
|
|
1089
|
+
}.call(c, n2, c, e2)) || (e2.exports = r2);
|
|
1090
|
+
}("undefined" != typeof window ? window : void 0 !== this ? this : globalThis);
|
|
1091
|
+
}, guqK: function(e2, t2, n2) {
|
|
1092
|
+
n2.d(t2, { P5: function() {
|
|
1093
|
+
return o2;
|
|
1094
|
+
}, jU: function() {
|
|
1095
|
+
return r2;
|
|
1096
|
+
} });
|
|
1097
|
+
const r2 = () => "undefined" != typeof window, o2 = (e3) => Object.entries(e3).reduce((e4, [t3, n3]) => (t3.includes("data-") && (e4[t3] = n3), e4), {});
|
|
1098
|
+
}, "Xdf/": function(t2) {
|
|
1099
|
+
t2.exports = e;
|
|
1100
|
+
}, Fe5V: function(e2) {
|
|
1101
|
+
function t2() {
|
|
1102
|
+
return e2.exports = t2 = Object.assign ? Object.assign.bind() : function(e3) {
|
|
1103
|
+
for (var t3 = 1; t3 < arguments.length; t3++) {
|
|
1104
|
+
var n2 = arguments[t3];
|
|
1105
|
+
for (var r2 in n2) ({}).hasOwnProperty.call(n2, r2) && (e3[r2] = n2[r2]);
|
|
1106
|
+
}
|
|
1107
|
+
return e3;
|
|
1108
|
+
}, e2.exports.__esModule = true, e2.exports.default = e2.exports, t2.apply(null, arguments);
|
|
1109
|
+
}
|
|
1110
|
+
e2.exports = t2, e2.exports.__esModule = true, e2.exports.default = e2.exports;
|
|
1111
|
+
}, MRkx: function(e2, t2, n2) {
|
|
1112
|
+
function r2(e3) {
|
|
1113
|
+
var t3, n3, o2 = "";
|
|
1114
|
+
if ("string" == typeof e3 || "number" == typeof e3) o2 += e3;
|
|
1115
|
+
else if ("object" == typeof e3) if (Array.isArray(e3)) for (t3 = 0; t3 < e3.length; t3++) e3[t3] && (n3 = r2(e3[t3])) && (o2 && (o2 += " "), o2 += n3);
|
|
1116
|
+
else for (t3 in e3) e3[t3] && (o2 && (o2 += " "), o2 += t3);
|
|
1117
|
+
return o2;
|
|
1118
|
+
}
|
|
1119
|
+
t2.Z = function() {
|
|
1120
|
+
for (var e3, t3, n3 = 0, o2 = ""; n3 < arguments.length; ) (e3 = arguments[n3++]) && (t3 = r2(e3)) && (o2 && (o2 += " "), o2 += t3);
|
|
1121
|
+
return o2;
|
|
1122
|
+
};
|
|
1123
|
+
} }, n = {};
|
|
1124
|
+
function r(e2) {
|
|
1125
|
+
var o2 = n[e2];
|
|
1126
|
+
if (void 0 !== o2) return o2.exports;
|
|
1127
|
+
var i = n[e2] = { exports: {} };
|
|
1128
|
+
return t[e2].call(i.exports, i, i.exports, r), i.exports;
|
|
1129
|
+
}
|
|
1130
|
+
r.n = function(e2) {
|
|
1131
|
+
var t2 = e2 && e2.__esModule ? function() {
|
|
1132
|
+
return e2.default;
|
|
1133
|
+
} : function() {
|
|
1134
|
+
return e2;
|
|
1135
|
+
};
|
|
1136
|
+
return r.d(t2, { a: t2 }), t2;
|
|
1137
|
+
}, r.d = function(e2, t2) {
|
|
1138
|
+
for (var n2 in t2) r.o(t2, n2) && !r.o(e2, n2) && Object.defineProperty(e2, n2, { enumerable: true, get: t2[n2] });
|
|
1139
|
+
}, r.o = function(e2, t2) {
|
|
1140
|
+
return Object.prototype.hasOwnProperty.call(e2, t2);
|
|
1141
|
+
}, r.r = function(e2) {
|
|
1142
|
+
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e2, "__esModule", { value: true });
|
|
1143
|
+
};
|
|
1144
|
+
var o = {};
|
|
1145
|
+
return function() {
|
|
1146
|
+
r.r(o), r.d(o, { default: function() {
|
|
1147
|
+
return f;
|
|
1148
|
+
} });
|
|
1149
|
+
var e2 = r("Fe5V"), t2 = r.n(e2), n2 = r("Xdf/"), i = r.n(n2), a = { screenWidthBackground: "lvxhkV", HeaderHideToTop: "QJjwEo", headerHideToTop: "QJjwEo", HeaderHideToTopReverse: "kdBXfh", headerHideToTopReverse: "kdBXfh", HeaderFadeOut: "MP52zt", headerFadeOut: "MP52zt", transitionEnded: "Bhu9m5", HeaderFadeOutReverse: "LVP8Wf", headerFadeOutReverse: "LVP8Wf", inlineContent: "VrZrC0", centeredContent: "cKxVkc", centeredContentBg: "vlM3HR", root: "AT7o0U" }, s = r("MRkx");
|
|
1150
|
+
var d = (e3) => {
|
|
1151
|
+
let { id: n3, className: r2, skinClassName: o2, tagName: a2 = "div", transition: d2, transitionEnded: u2, eventHandlers: c2, skinStyles: l2, children: f2, tabIndex: p, lang: m } = e3;
|
|
1152
|
+
const h = a2;
|
|
1153
|
+
return i().createElement(h, t2()({ id: n3, className: (0, s.Z)(o2, d2 && l2[d2], u2 && l2.transitionEnded, r2), tabIndex: p, lang: m }, c2), f2);
|
|
1154
|
+
};
|
|
1155
|
+
var u = (e3) => {
|
|
1156
|
+
let { wrapperProps: r2, children: o2, skinStyles: i2 } = e3;
|
|
1157
|
+
return n2.createElement(d, t2()({}, r2, { skinClassName: i2.root, skinStyles: i2 }), n2.createElement("div", { className: i2.screenWidthBackground }), n2.createElement("div", { className: i2.centeredContent }, n2.createElement("div", { className: i2.centeredContentBg }), n2.createElement("div", { className: i2.inlineContent }, o2)));
|
|
1158
|
+
};
|
|
1159
|
+
var c = (e3) => i().createElement(u, t2()({}, e3, { skinStyles: a })), l = r("eV9E");
|
|
1160
|
+
var f = (e3) => i().createElement(l.default, t2()({}, e3, { skin: c }));
|
|
1161
|
+
}(), o;
|
|
1162
|
+
}();
|
|
1163
|
+
});
|
|
1164
|
+
})(HeaderContainer_bundle_min$1);
|
|
1165
|
+
var HeaderContainer_bundle_minExports$1 = HeaderContainer_bundle_min$1.exports;
|
|
1166
|
+
const TransparentScreen = /* @__PURE__ */ getDefaultExportFromCjs(HeaderContainer_bundle_minExports$1);
|
|
1167
|
+
var HeaderContainer_bundle_min = { exports: {} };
|
|
1168
|
+
(function(module2, exports$1) {
|
|
1169
|
+
!function(e, t) {
|
|
1170
|
+
module2.exports = t(require$$0);
|
|
1171
|
+
}("undefined" != typeof self ? self : commonjsGlobal, function(e) {
|
|
1172
|
+
return function() {
|
|
1173
|
+
var t = { "Xdf/": function(t2) {
|
|
1174
|
+
t2.exports = e;
|
|
1175
|
+
} }, r = {};
|
|
1176
|
+
function o(e2) {
|
|
1177
|
+
var n2 = r[e2];
|
|
1178
|
+
if (void 0 !== n2) return n2.exports;
|
|
1179
|
+
var i = r[e2] = { exports: {} };
|
|
1180
|
+
return t[e2](i, i.exports, o), i.exports;
|
|
1181
|
+
}
|
|
1182
|
+
o.d = function(e2, t2) {
|
|
1183
|
+
for (var r2 in t2) o.o(t2, r2) && !o.o(e2, r2) && Object.defineProperty(e2, r2, { enumerable: true, get: t2[r2] });
|
|
1184
|
+
}, o.o = function(e2, t2) {
|
|
1185
|
+
return Object.prototype.hasOwnProperty.call(e2, t2);
|
|
1186
|
+
}, o.r = function(e2) {
|
|
1187
|
+
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e2, "__esModule", { value: true });
|
|
1188
|
+
};
|
|
1189
|
+
var n = {};
|
|
1190
|
+
return function() {
|
|
1191
|
+
o.r(n), o.d(n, { default: function() {
|
|
1192
|
+
return i;
|
|
1193
|
+
} });
|
|
1194
|
+
const e2 = (e3) => e3.replace(/([A-Z])/g, (e4) => `-${e4.toLowerCase()}`);
|
|
1195
|
+
var t2 = o("Xdf/");
|
|
1196
|
+
var r2, i = (r2 = (e3) => {
|
|
1197
|
+
let { mapperProps: r3, controllerUtils: o2 } = e3;
|
|
1198
|
+
const { updateStyles: n2 } = o2, { compId: i2, marginTop: a, isMobileView: u, isFixed: l, ...d } = r3;
|
|
1199
|
+
var c;
|
|
1200
|
+
return c = () => {
|
|
1201
|
+
var e4;
|
|
1202
|
+
const t3 = ((null == (e4 = window.document.getElementById(i2)) ? void 0 : e4.clientHeight) || 0) >= window.document.body.clientHeight / 2;
|
|
1203
|
+
u && l && t3 && n2({ position: "relative !important", marginTop: a, top: 0 });
|
|
1204
|
+
}, (0, t2.useEffect)(c, []), d;
|
|
1205
|
+
}, { useComponentProps: (t3, o2, n2) => {
|
|
1206
|
+
const i2 = ((t4) => ({ ...t4, updateStyles: (r3) => {
|
|
1207
|
+
const o3 = Object.entries(r3).reduce((t5, [r4, o4]) => {
|
|
1208
|
+
return { ...t5, [(n3 = r4, n3.startsWith("--") ? r4 : e2(r4))]: void 0 === o4 ? null : o4 };
|
|
1209
|
+
var n3;
|
|
1210
|
+
}, {});
|
|
1211
|
+
t4.updateStyles(o3);
|
|
1212
|
+
} }))(n2);
|
|
1213
|
+
return r2({ mapperProps: t3, stateValues: o2, controllerUtils: i2 });
|
|
1214
|
+
} });
|
|
1215
|
+
}(), n;
|
|
1216
|
+
}();
|
|
1217
|
+
});
|
|
1218
|
+
})(HeaderContainer_bundle_min);
|
|
1219
|
+
var HeaderContainer_bundle_minExports = HeaderContainer_bundle_min.exports;
|
|
1220
|
+
const controller$3 = /* @__PURE__ */ getDefaultExportFromCjs(HeaderContainer_bundle_minExports);
|
|
1221
|
+
const HeaderContainer_TransparentScreen = withNormalChildren(withController(TransparentScreen, controller$3));
|
|
1222
|
+
var HeaderSection_bundle_min$1 = { exports: {} };
|
|
1223
|
+
(function(module2, exports$1) {
|
|
1224
|
+
!function(e, t) {
|
|
1225
|
+
module2.exports = t(require$$0);
|
|
1226
|
+
}("undefined" != typeof self ? self : commonjsGlobal, function(e) {
|
|
1227
|
+
return function() {
|
|
1228
|
+
var t = { iCIt: function(e2, t2, i2) {
|
|
1229
|
+
i2.d(t2, { default: function() {
|
|
1230
|
+
return ai;
|
|
1231
|
+
} });
|
|
1232
|
+
var a2 = {};
|
|
1233
|
+
i2.r(a2), i2.d(a2, { STATIC_MEDIA_URL: function() {
|
|
1234
|
+
return it;
|
|
1235
|
+
}, ph: function() {
|
|
1236
|
+
return Qe;
|
|
1237
|
+
} });
|
|
1238
|
+
var n2 = i2("Fe5V"), r = i2.n(n2), o = i2("Xdf/"), s = i2.n(o), c = i2("MRkx");
|
|
1239
|
+
const l = "wixui-", d = (e3, ...t3) => {
|
|
1240
|
+
const i3 = [];
|
|
1241
|
+
return e3 && i3.push(`${l}${e3}`), t3.forEach((e4) => {
|
|
1242
|
+
e4 && (i3.push(`${l}${e4}`), i3.push(e4));
|
|
1243
|
+
}), i3.join(" ");
|
|
1244
|
+
};
|
|
1245
|
+
var u = i2("guqK");
|
|
1246
|
+
const f = "section-container";
|
|
1247
|
+
var p = "jhxvbR";
|
|
1248
|
+
const T = "v1", _ = 2, I = 1920, E = 1920, L = 1e3, b = 1e3, A = { SCALE_TO_FILL: "fill", SCALE_TO_FIT: "fit", STRETCH: "stretch", ORIGINAL_SIZE: "original_size", TILE: "tile", TILE_HORIZONTAL: "tile_horizontal", TILE_VERTICAL: "tile_vertical", FIT_AND_TILE: "fit_and_tile", LEGACY_STRIP_TILE: "legacy_strip_tile", LEGACY_STRIP_TILE_HORIZONTAL: "legacy_strip_tile_horizontal", LEGACY_STRIP_TILE_VERTICAL: "legacy_strip_tile_vertical", LEGACY_STRIP_SCALE_TO_FILL: "legacy_strip_fill", LEGACY_STRIP_SCALE_TO_FIT: "legacy_strip_fit", LEGACY_STRIP_FIT_AND_TILE: "legacy_strip_fit_and_tile", LEGACY_STRIP_ORIGINAL_SIZE: "legacy_strip_original_size", LEGACY_ORIGINAL_SIZE: "actual_size", LEGACY_FIT_WIDTH: "fitWidth", LEGACY_FIT_HEIGHT: "fitHeight", LEGACY_FULL: "full", LEGACY_BG_FIT_AND_TILE: "legacy_tile", LEGACY_BG_FIT_AND_TILE_HORIZONTAL: "legacy_tile_horizontal", LEGACY_BG_FIT_AND_TILE_VERTICAL: "legacy_tile_vertical", LEGACY_BG_NORMAL: "legacy_normal" }, w = { FIT: "fit", FILL: "fill", FILL_FOCAL: "fill_focal", CROP: "crop", LEGACY_CROP: "legacy_crop", LEGACY_FILL: "legacy_fill" }, y = { CENTER: "center", TOP: "top", TOP_LEFT: "top_left", TOP_RIGHT: "top_right", BOTTOM: "bottom", BOTTOM_LEFT: "bottom_left", BOTTOM_RIGHT: "bottom_right", LEFT: "left", RIGHT: "right" }, v = { [y.CENTER]: { x: 0.5, y: 0.5 }, [y.TOP_LEFT]: { x: 0, y: 0 }, [y.TOP_RIGHT]: { x: 1, y: 0 }, [y.TOP]: { x: 0.5, y: 0 }, [y.BOTTOM_LEFT]: { x: 0, y: 1 }, [y.BOTTOM_RIGHT]: { x: 1, y: 1 }, [y.BOTTOM]: { x: 0.5, y: 1 }, [y.RIGHT]: { x: 1, y: 0.5 }, [y.LEFT]: { x: 0, y: 0.5 } }, M = { center: "c", top: "t", top_left: "tl", top_right: "tr", bottom: "b", bottom_left: "bl", bottom_right: "br", left: "l", right: "r" }, O = { BG: "bg", SVG: "svg" }, S = { AUTO: "auto", CLASSIC: "classic", SUPER: "super" }, R = { classic: 1, super: 2 }, C = { radius: "0.66", amount: "1.00", threshold: "0.01" }, G = { uri: "", css: { img: {}, container: {} }, attr: { img: {}, container: {} }, transformed: false }, F = 25e6, N = [1.5, 2, 4], P = { HIGH: { size: 196e4, quality: 90, maxUpscale: 1 }, MEDIUM: { size: 36e4, quality: 85, maxUpscale: 1 }, LOW: { size: 16e4, quality: 80, maxUpscale: 1.2 }, TINY: { size: 0, quality: 80, maxUpscale: 1.4 } }, x = { HIGH: "HIGH", MEDIUM: "MEDIUM", LOW: "LOW", TINY: "TINY" }, k = { CONTRAST: "contrast", BRIGHTNESS: "brightness", SATURATION: "saturation", HUE: "hue", BLUR: "blur" }, H = { JPG: "jpg", JPEG: "jpeg", JPE: "jpe", PNG: "png", WEBP: "webp", WIX_ICO_MP: "wix_ico_mp", WIX_MP: "wix_mp", GIF: "gif", AVIF: "avif", UNRECOGNIZED: "unrecognized" }, B = { AVIF: "AVIF", PAVIF: "PAVIF" };
|
|
1249
|
+
function Y(e3, ...t3) {
|
|
1250
|
+
return function(...i3) {
|
|
1251
|
+
const a3 = i3[i3.length - 1] || {}, n3 = [e3[0]];
|
|
1252
|
+
return t3.forEach(function(t4, r2) {
|
|
1253
|
+
const o2 = Number.isInteger(t4) ? i3[t4] : a3[t4];
|
|
1254
|
+
n3.push(o2, e3[r2 + 1]);
|
|
1255
|
+
}), n3.join("");
|
|
1256
|
+
};
|
|
1257
|
+
}
|
|
1258
|
+
function U(e3) {
|
|
1259
|
+
return e3[e3.length - 1];
|
|
1260
|
+
}
|
|
1261
|
+
const Z = [H.PNG, H.JPEG, H.JPG, H.JPE, H.WIX_ICO_MP, H.WIX_MP, H.WEBP, H.AVIF], z = [H.JPEG, H.JPG, H.JPE];
|
|
1262
|
+
function $(e3, t3, i3) {
|
|
1263
|
+
return i3 && t3 && !(!(a3 = t3.id) || !a3.trim() || "none" === a3.toLowerCase()) && Object.values(A).includes(e3);
|
|
1264
|
+
var a3;
|
|
1265
|
+
}
|
|
1266
|
+
function j(e3, t3, i3, a3) {
|
|
1267
|
+
if (/(^https?)|(^data)|(^\/\/)/.test(e3)) return false;
|
|
1268
|
+
if (!function(e4, t4, i4) {
|
|
1269
|
+
return !(D(e4) || q(e4)) || !t4 || i4;
|
|
1270
|
+
}(e3, t3, i3)) return false;
|
|
1271
|
+
const n3 = function(e4) {
|
|
1272
|
+
return Z.includes(ee(e4));
|
|
1273
|
+
}(e3), r2 = function(e4, t4, i4) {
|
|
1274
|
+
return !(!W(e4) || !t4 && !i4);
|
|
1275
|
+
}(e3, i3, a3);
|
|
1276
|
+
return n3 || r2;
|
|
1277
|
+
}
|
|
1278
|
+
function V(e3) {
|
|
1279
|
+
return ee(e3) === H.PNG;
|
|
1280
|
+
}
|
|
1281
|
+
function D(e3) {
|
|
1282
|
+
return ee(e3) === H.WEBP;
|
|
1283
|
+
}
|
|
1284
|
+
function W(e3) {
|
|
1285
|
+
return ee(e3) === H.GIF;
|
|
1286
|
+
}
|
|
1287
|
+
function q(e3) {
|
|
1288
|
+
return ee(e3) === H.AVIF;
|
|
1289
|
+
}
|
|
1290
|
+
const J = ["/", "\\", "?", "<", ">", "|", "“", ":", '"'].map(encodeURIComponent), K = ["\\.", "\\*"], X = "_";
|
|
1291
|
+
function Q(e3) {
|
|
1292
|
+
return function(e4) {
|
|
1293
|
+
return z.includes(ee(e4));
|
|
1294
|
+
}(e3) ? H.JPG : V(e3) ? H.PNG : D(e3) ? H.WEBP : W(e3) ? H.GIF : q(e3) ? H.AVIF : H.UNRECOGNIZED;
|
|
1295
|
+
}
|
|
1296
|
+
function ee(e3) {
|
|
1297
|
+
return (/[.]([^.]+)$/.exec(e3) && /[.]([^.]+)$/.exec(e3)[1] || "").toLowerCase();
|
|
1298
|
+
}
|
|
1299
|
+
function te(e3, t3, i3, a3, n3) {
|
|
1300
|
+
let r2;
|
|
1301
|
+
return r2 = n3 === w.FILL ? function(e4, t4, i4, a4) {
|
|
1302
|
+
return Math.max(i4 / e4, a4 / t4);
|
|
1303
|
+
}(e3, t3, i3, a3) : n3 === w.FIT ? function(e4, t4, i4, a4) {
|
|
1304
|
+
return Math.min(i4 / e4, a4 / t4);
|
|
1305
|
+
}(e3, t3, i3, a3) : 1, r2;
|
|
1306
|
+
}
|
|
1307
|
+
function ie(e3, t3, i3, a3, n3, r2) {
|
|
1308
|
+
e3 = e3 || a3.width, t3 = t3 || a3.height;
|
|
1309
|
+
const { scaleFactor: o2, width: s2, height: c2 } = function(e4, t4, i4, a4, n4) {
|
|
1310
|
+
let r3, o3 = i4, s3 = a4;
|
|
1311
|
+
if (r3 = te(e4, t4, i4, a4, n4), n4 === w.FIT && (o3 = e4 * r3, s3 = t4 * r3), o3 && s3 && o3 * s3 > F) {
|
|
1312
|
+
const i5 = Math.sqrt(F / (o3 * s3));
|
|
1313
|
+
o3 *= i5, s3 *= i5, r3 = te(e4, t4, o3, s3, n4);
|
|
1314
|
+
}
|
|
1315
|
+
return { scaleFactor: r3, width: o3, height: s3 };
|
|
1316
|
+
}(e3, t3, a3.width * n3, a3.height * n3, i3);
|
|
1317
|
+
return function(e4, t4, i4, a4, n4, r3, o3) {
|
|
1318
|
+
const { optimizedScaleFactor: s3, upscaleMethodValue: c3, forceUSM: l2 } = function(e5, t5, i5, a5) {
|
|
1319
|
+
if ("auto" === a5) return function(e6, t6) {
|
|
1320
|
+
const i6 = oe(e6, t6);
|
|
1321
|
+
return { optimizedScaleFactor: P[i6].maxUpscale, upscaleMethodValue: R.classic, forceUSM: false };
|
|
1322
|
+
}(e5, t5);
|
|
1323
|
+
if ("super" === a5) return function(e6) {
|
|
1324
|
+
return { optimizedScaleFactor: U(N), upscaleMethodValue: R.super, forceUSM: !(N.includes(e6) || e6 > U(N)) };
|
|
1325
|
+
}(i5);
|
|
1326
|
+
return function(e6, t6) {
|
|
1327
|
+
const i6 = oe(e6, t6);
|
|
1328
|
+
return { optimizedScaleFactor: P[i6].maxUpscale, upscaleMethodValue: R.classic, forceUSM: false };
|
|
1329
|
+
}(e5, t5);
|
|
1330
|
+
}(e4, t4, r3, n4);
|
|
1331
|
+
let d2 = i4, u2 = a4;
|
|
1332
|
+
if (r3 <= s3) return { width: d2, height: u2, scaleFactor: r3, upscaleMethodValue: c3, forceUSM: l2, cssUpscaleNeeded: false };
|
|
1333
|
+
switch (o3) {
|
|
1334
|
+
case w.FILL:
|
|
1335
|
+
d2 = i4 * (s3 / r3), u2 = a4 * (s3 / r3);
|
|
1336
|
+
break;
|
|
1337
|
+
case w.FIT:
|
|
1338
|
+
d2 = e4 * s3, u2 = t4 * s3;
|
|
1339
|
+
}
|
|
1340
|
+
return { width: d2, height: u2, scaleFactor: s3, upscaleMethodValue: c3, forceUSM: l2, cssUpscaleNeeded: true };
|
|
1341
|
+
}(e3, t3, s2, c2, r2, o2, i3);
|
|
1342
|
+
}
|
|
1343
|
+
function ae(e3, t3, i3, a3) {
|
|
1344
|
+
const n3 = re(i3) || function(e4 = y.CENTER) {
|
|
1345
|
+
return v[e4];
|
|
1346
|
+
}(a3);
|
|
1347
|
+
return { x: Math.max(0, Math.min(e3.width - t3.width, n3.x * e3.width - t3.width / 2)), y: Math.max(0, Math.min(e3.height - t3.height, n3.y * e3.height - t3.height / 2)), width: Math.min(e3.width, t3.width), height: Math.min(e3.height, t3.height) };
|
|
1348
|
+
}
|
|
1349
|
+
function ne(e3) {
|
|
1350
|
+
return e3.alignment && M[e3.alignment] || M[y.CENTER];
|
|
1351
|
+
}
|
|
1352
|
+
function re(e3) {
|
|
1353
|
+
let t3;
|
|
1354
|
+
return !e3 || "number" != typeof e3.x || isNaN(e3.x) || "number" != typeof e3.y || isNaN(e3.y) || (t3 = { x: se(Math.max(0, Math.min(100, e3.x)) / 100, 2), y: se(Math.max(0, Math.min(100, e3.y)) / 100, 2) }), t3;
|
|
1355
|
+
}
|
|
1356
|
+
function oe(e3, t3) {
|
|
1357
|
+
const i3 = e3 * t3;
|
|
1358
|
+
return i3 > P[x.HIGH].size ? x.HIGH : i3 > P[x.MEDIUM].size ? x.MEDIUM : i3 > P[x.LOW].size ? x.LOW : x.TINY;
|
|
1359
|
+
}
|
|
1360
|
+
function se(e3, t3) {
|
|
1361
|
+
const i3 = Math.pow(10, t3);
|
|
1362
|
+
return (e3 * i3 / i3).toFixed(t3);
|
|
1363
|
+
}
|
|
1364
|
+
function ce(e3) {
|
|
1365
|
+
return e3 && e3.upscaleMethod && S[e3.upscaleMethod.toUpperCase()] || S.AUTO;
|
|
1366
|
+
}
|
|
1367
|
+
function le(e3, t3) {
|
|
1368
|
+
const i3 = D(e3) || q(e3);
|
|
1369
|
+
return ee(e3) === H.GIF || i3 && t3;
|
|
1370
|
+
}
|
|
1371
|
+
const de = { isMobile: false }, ue = function(e3) {
|
|
1372
|
+
return de[e3];
|
|
1373
|
+
};
|
|
1374
|
+
function he() {
|
|
1375
|
+
if ("undefined" != typeof window && "undefined" != typeof navigator) {
|
|
1376
|
+
const t3 = window.matchMedia && window.matchMedia("(max-width: 767px)").matches, i3 = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
1377
|
+
e3 = t3 && i3, de["isMobile"] = e3;
|
|
1378
|
+
}
|
|
1379
|
+
var e3;
|
|
1380
|
+
}
|
|
1381
|
+
function ge(e3, t3) {
|
|
1382
|
+
const i3 = { css: { container: {} } }, { css: a3 } = i3, { fittingType: n3 } = e3;
|
|
1383
|
+
switch (n3) {
|
|
1384
|
+
case A.ORIGINAL_SIZE:
|
|
1385
|
+
case A.LEGACY_ORIGINAL_SIZE:
|
|
1386
|
+
case A.LEGACY_STRIP_ORIGINAL_SIZE:
|
|
1387
|
+
a3.container.backgroundSize = "auto", a3.container.backgroundRepeat = "no-repeat";
|
|
1388
|
+
break;
|
|
1389
|
+
case A.SCALE_TO_FIT:
|
|
1390
|
+
case A.LEGACY_STRIP_SCALE_TO_FIT:
|
|
1391
|
+
a3.container.backgroundSize = "contain", a3.container.backgroundRepeat = "no-repeat";
|
|
1392
|
+
break;
|
|
1393
|
+
case A.STRETCH:
|
|
1394
|
+
a3.container.backgroundSize = "100% 100%", a3.container.backgroundRepeat = "no-repeat";
|
|
1395
|
+
break;
|
|
1396
|
+
case A.SCALE_TO_FILL:
|
|
1397
|
+
case A.LEGACY_STRIP_SCALE_TO_FILL:
|
|
1398
|
+
a3.container.backgroundSize = "cover", a3.container.backgroundRepeat = "no-repeat";
|
|
1399
|
+
break;
|
|
1400
|
+
case A.TILE_HORIZONTAL:
|
|
1401
|
+
case A.LEGACY_STRIP_TILE_HORIZONTAL:
|
|
1402
|
+
a3.container.backgroundSize = "auto", a3.container.backgroundRepeat = "repeat-x";
|
|
1403
|
+
break;
|
|
1404
|
+
case A.TILE_VERTICAL:
|
|
1405
|
+
case A.LEGACY_STRIP_TILE_VERTICAL:
|
|
1406
|
+
a3.container.backgroundSize = "auto", a3.container.backgroundRepeat = "repeat-y";
|
|
1407
|
+
break;
|
|
1408
|
+
case A.TILE:
|
|
1409
|
+
case A.LEGACY_STRIP_TILE:
|
|
1410
|
+
a3.container.backgroundSize = "auto", a3.container.backgroundRepeat = "repeat";
|
|
1411
|
+
break;
|
|
1412
|
+
case A.LEGACY_STRIP_FIT_AND_TILE:
|
|
1413
|
+
a3.container.backgroundSize = "contain", a3.container.backgroundRepeat = "repeat";
|
|
1414
|
+
break;
|
|
1415
|
+
case A.FIT_AND_TILE:
|
|
1416
|
+
case A.LEGACY_BG_FIT_AND_TILE:
|
|
1417
|
+
a3.container.backgroundSize = "auto", a3.container.backgroundRepeat = "repeat";
|
|
1418
|
+
break;
|
|
1419
|
+
case A.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:
|
|
1420
|
+
a3.container.backgroundSize = "auto", a3.container.backgroundRepeat = "repeat-x";
|
|
1421
|
+
break;
|
|
1422
|
+
case A.LEGACY_BG_FIT_AND_TILE_VERTICAL:
|
|
1423
|
+
a3.container.backgroundSize = "auto", a3.container.backgroundRepeat = "repeat-y";
|
|
1424
|
+
break;
|
|
1425
|
+
case A.LEGACY_BG_NORMAL:
|
|
1426
|
+
a3.container.backgroundSize = "auto", a3.container.backgroundRepeat = "no-repeat";
|
|
1427
|
+
}
|
|
1428
|
+
switch (t3.alignment) {
|
|
1429
|
+
case y.CENTER:
|
|
1430
|
+
a3.container.backgroundPosition = "center center";
|
|
1431
|
+
break;
|
|
1432
|
+
case y.LEFT:
|
|
1433
|
+
a3.container.backgroundPosition = "left center";
|
|
1434
|
+
break;
|
|
1435
|
+
case y.RIGHT:
|
|
1436
|
+
a3.container.backgroundPosition = "right center";
|
|
1437
|
+
break;
|
|
1438
|
+
case y.TOP:
|
|
1439
|
+
a3.container.backgroundPosition = "center top";
|
|
1440
|
+
break;
|
|
1441
|
+
case y.BOTTOM:
|
|
1442
|
+
a3.container.backgroundPosition = "center bottom";
|
|
1443
|
+
break;
|
|
1444
|
+
case y.TOP_RIGHT:
|
|
1445
|
+
a3.container.backgroundPosition = "right top";
|
|
1446
|
+
break;
|
|
1447
|
+
case y.TOP_LEFT:
|
|
1448
|
+
a3.container.backgroundPosition = "left top";
|
|
1449
|
+
break;
|
|
1450
|
+
case y.BOTTOM_RIGHT:
|
|
1451
|
+
a3.container.backgroundPosition = "right bottom";
|
|
1452
|
+
break;
|
|
1453
|
+
case y.BOTTOM_LEFT:
|
|
1454
|
+
a3.container.backgroundPosition = "left bottom";
|
|
1455
|
+
}
|
|
1456
|
+
return i3;
|
|
1457
|
+
}
|
|
1458
|
+
const me = { [y.CENTER]: "center", [y.TOP]: "top", [y.TOP_LEFT]: "top left", [y.TOP_RIGHT]: "top right", [y.BOTTOM]: "bottom", [y.BOTTOM_LEFT]: "bottom left", [y.BOTTOM_RIGHT]: "bottom right", [y.LEFT]: "left", [y.RIGHT]: "right" }, fe = { position: "absolute", top: "auto", right: "auto", bottom: "auto", left: "auto" };
|
|
1459
|
+
function pe(e3, t3) {
|
|
1460
|
+
const i3 = { css: { container: {}, img: {} } }, { css: a3 } = i3, { fittingType: n3 } = e3, r2 = t3.alignment;
|
|
1461
|
+
switch (a3.container.position = "relative", n3) {
|
|
1462
|
+
case A.ORIGINAL_SIZE:
|
|
1463
|
+
case A.LEGACY_ORIGINAL_SIZE:
|
|
1464
|
+
e3.parts && e3.parts.length ? (a3.img.width = e3.parts[0].width, a3.img.height = e3.parts[0].height) : (a3.img.width = e3.src.width, a3.img.height = e3.src.height);
|
|
1465
|
+
break;
|
|
1466
|
+
case A.SCALE_TO_FIT:
|
|
1467
|
+
case A.LEGACY_FIT_WIDTH:
|
|
1468
|
+
case A.LEGACY_FIT_HEIGHT:
|
|
1469
|
+
case A.LEGACY_FULL:
|
|
1470
|
+
a3.img.width = t3.width, a3.img.height = t3.height, a3.img.objectFit = "contain", a3.img.objectPosition = me[r2] || "unset";
|
|
1471
|
+
break;
|
|
1472
|
+
case A.LEGACY_BG_NORMAL:
|
|
1473
|
+
a3.img.width = "100%", a3.img.height = "100%", a3.img.objectFit = "none", a3.img.objectPosition = me[r2] || "unset";
|
|
1474
|
+
break;
|
|
1475
|
+
case A.STRETCH:
|
|
1476
|
+
a3.img.width = t3.width, a3.img.height = t3.height, a3.img.objectFit = "fill";
|
|
1477
|
+
break;
|
|
1478
|
+
case A.SCALE_TO_FILL:
|
|
1479
|
+
a3.img.width = t3.width, a3.img.height = t3.height, a3.img.objectFit = "cover";
|
|
1480
|
+
}
|
|
1481
|
+
if ("number" == typeof a3.img.width && "number" == typeof a3.img.height && (a3.img.width !== t3.width || a3.img.height !== t3.height)) {
|
|
1482
|
+
const e4 = Math.round((t3.height - a3.img.height) / 2), i4 = Math.round((t3.width - a3.img.width) / 2);
|
|
1483
|
+
Object.assign(a3.img, fe, function(e5, t4, i5) {
|
|
1484
|
+
return { [y.TOP_LEFT]: { top: 0, left: 0 }, [y.TOP_RIGHT]: { top: 0, right: 0 }, [y.TOP]: { top: 0, left: t4 }, [y.BOTTOM_LEFT]: { bottom: 0, left: 0 }, [y.BOTTOM_RIGHT]: { bottom: 0, right: 0 }, [y.BOTTOM]: { bottom: 0, left: t4 }, [y.RIGHT]: { top: e5, right: 0 }, [y.LEFT]: { top: e5, left: 0 }, [y.CENTER]: { width: i5.width, height: i5.height, objectFit: "none" } };
|
|
1485
|
+
}(e4, i4, t3)[r2]);
|
|
1486
|
+
}
|
|
1487
|
+
return i3;
|
|
1488
|
+
}
|
|
1489
|
+
function Te(e3, t3) {
|
|
1490
|
+
const i3 = { css: { container: {} }, attr: { container: {}, img: {} } }, { css: a3, attr: n3 } = i3, { fittingType: r2 } = e3, o2 = t3.alignment, { width: s2, height: c2 } = e3.src;
|
|
1491
|
+
let l2;
|
|
1492
|
+
switch (a3.container.position = "relative", r2) {
|
|
1493
|
+
case A.ORIGINAL_SIZE:
|
|
1494
|
+
case A.LEGACY_ORIGINAL_SIZE:
|
|
1495
|
+
case A.TILE:
|
|
1496
|
+
e3.parts && e3.parts.length ? (n3.img.width = e3.parts[0].width, n3.img.height = e3.parts[0].height) : (n3.img.width = s2, n3.img.height = c2), n3.img.preserveAspectRatio = "xMidYMid slice";
|
|
1497
|
+
break;
|
|
1498
|
+
case A.SCALE_TO_FIT:
|
|
1499
|
+
case A.LEGACY_FIT_WIDTH:
|
|
1500
|
+
case A.LEGACY_FIT_HEIGHT:
|
|
1501
|
+
case A.LEGACY_FULL:
|
|
1502
|
+
n3.img.width = "100%", n3.img.height = "100%", n3.img.transform = "", n3.img.preserveAspectRatio = "";
|
|
1503
|
+
break;
|
|
1504
|
+
case A.STRETCH:
|
|
1505
|
+
n3.img.width = t3.width, n3.img.height = t3.height, n3.img.x = 0, n3.img.y = 0, n3.img.transform = "", n3.img.preserveAspectRatio = "none";
|
|
1506
|
+
break;
|
|
1507
|
+
case A.SCALE_TO_FILL:
|
|
1508
|
+
j(e3.src.id) ? (n3.img.width = t3.width, n3.img.height = t3.height) : (l2 = function(e4, t4, i4, a4, n4) {
|
|
1509
|
+
const r3 = te(e4, t4, i4, a4, n4);
|
|
1510
|
+
return { width: Math.round(e4 * r3), height: Math.round(t4 * r3) };
|
|
1511
|
+
}(s2, c2, t3.width, t3.height, w.FILL), n3.img.width = l2.width, n3.img.height = l2.height), n3.img.x = 0, n3.img.y = 0, n3.img.transform = "", n3.img.preserveAspectRatio = "xMidYMid slice";
|
|
1512
|
+
}
|
|
1513
|
+
if ("number" == typeof n3.img.width && "number" == typeof n3.img.height && (n3.img.width !== t3.width || n3.img.height !== t3.height)) {
|
|
1514
|
+
let e4, i4, a4 = 0, s3 = 0;
|
|
1515
|
+
r2 === A.TILE ? (e4 = t3.width % n3.img.width, i4 = t3.height % n3.img.height) : (e4 = t3.width - n3.img.width, i4 = t3.height - n3.img.height);
|
|
1516
|
+
const c3 = Math.round(e4 / 2), l3 = Math.round(i4 / 2);
|
|
1517
|
+
switch (o2) {
|
|
1518
|
+
case y.TOP_LEFT:
|
|
1519
|
+
a4 = 0, s3 = 0;
|
|
1520
|
+
break;
|
|
1521
|
+
case y.TOP:
|
|
1522
|
+
a4 = c3, s3 = 0;
|
|
1523
|
+
break;
|
|
1524
|
+
case y.TOP_RIGHT:
|
|
1525
|
+
a4 = e4, s3 = 0;
|
|
1526
|
+
break;
|
|
1527
|
+
case y.LEFT:
|
|
1528
|
+
a4 = 0, s3 = l3;
|
|
1529
|
+
break;
|
|
1530
|
+
case y.CENTER:
|
|
1531
|
+
a4 = c3, s3 = l3;
|
|
1532
|
+
break;
|
|
1533
|
+
case y.RIGHT:
|
|
1534
|
+
a4 = e4, s3 = l3;
|
|
1535
|
+
break;
|
|
1536
|
+
case y.BOTTOM_LEFT:
|
|
1537
|
+
a4 = 0, s3 = i4;
|
|
1538
|
+
break;
|
|
1539
|
+
case y.BOTTOM:
|
|
1540
|
+
a4 = c3, s3 = i4;
|
|
1541
|
+
break;
|
|
1542
|
+
case y.BOTTOM_RIGHT:
|
|
1543
|
+
a4 = e4, s3 = i4;
|
|
1544
|
+
}
|
|
1545
|
+
n3.img.x = a4, n3.img.y = s3;
|
|
1546
|
+
}
|
|
1547
|
+
return n3.container.width = t3.width, n3.container.height = t3.height, n3.container.viewBox = [0, 0, t3.width, t3.height].join(" "), i3;
|
|
1548
|
+
}
|
|
1549
|
+
function _e(e3, t3, i3) {
|
|
1550
|
+
let a3;
|
|
1551
|
+
switch (t3.crop && (a3 = function(e4, t4) {
|
|
1552
|
+
const i4 = Math.max(0, Math.min(e4.width, t4.x + t4.width) - Math.max(0, t4.x)), a4 = Math.max(0, Math.min(e4.height, t4.y + t4.height) - Math.max(0, t4.y));
|
|
1553
|
+
return i4 && a4 && (e4.width !== i4 || e4.height !== a4) ? { x: Math.max(0, t4.x), y: Math.max(0, t4.y), width: i4, height: a4 } : null;
|
|
1554
|
+
}(t3, t3.crop), a3 && (e3.src.width = a3.width, e3.src.height = a3.height, e3.src.isCropped = true, e3.parts.push(Ee(a3)))), e3.fittingType) {
|
|
1555
|
+
case A.SCALE_TO_FIT:
|
|
1556
|
+
case A.LEGACY_FIT_WIDTH:
|
|
1557
|
+
case A.LEGACY_FIT_HEIGHT:
|
|
1558
|
+
case A.LEGACY_FULL:
|
|
1559
|
+
case A.FIT_AND_TILE:
|
|
1560
|
+
case A.LEGACY_BG_FIT_AND_TILE:
|
|
1561
|
+
case A.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:
|
|
1562
|
+
case A.LEGACY_BG_FIT_AND_TILE_VERTICAL:
|
|
1563
|
+
case A.LEGACY_BG_NORMAL:
|
|
1564
|
+
e3.parts.push(Ie(e3, i3));
|
|
1565
|
+
break;
|
|
1566
|
+
case A.SCALE_TO_FILL:
|
|
1567
|
+
e3.parts.push(function(e4, t4) {
|
|
1568
|
+
const i4 = ie(e4.src.width, e4.src.height, w.FILL, t4, e4.devicePixelRatio, e4.upscaleMethod), a4 = re(e4.focalPoint);
|
|
1569
|
+
return { transformType: a4 ? w.FILL_FOCAL : w.FILL, width: Math.round(i4.width), height: Math.round(i4.height), alignment: ne(t4), focalPointX: a4 && a4.x, focalPointY: a4 && a4.y, upscale: i4.scaleFactor > 1, forceUSM: i4.forceUSM, scaleFactor: i4.scaleFactor, cssUpscaleNeeded: i4.cssUpscaleNeeded, upscaleMethodValue: i4.upscaleMethodValue };
|
|
1570
|
+
}(e3, i3));
|
|
1571
|
+
break;
|
|
1572
|
+
case A.STRETCH:
|
|
1573
|
+
e3.parts.push(function(e4, t4) {
|
|
1574
|
+
const i4 = te(e4.src.width, e4.src.height, t4.width, t4.height, w.FILL), a4 = { ...t4 };
|
|
1575
|
+
return a4.width = e4.src.width * i4, a4.height = e4.src.height * i4, Ie(e4, a4);
|
|
1576
|
+
}(e3, i3));
|
|
1577
|
+
break;
|
|
1578
|
+
case A.TILE_HORIZONTAL:
|
|
1579
|
+
case A.TILE_VERTICAL:
|
|
1580
|
+
case A.TILE:
|
|
1581
|
+
case A.LEGACY_ORIGINAL_SIZE:
|
|
1582
|
+
case A.ORIGINAL_SIZE:
|
|
1583
|
+
a3 = ae(e3.src, i3, e3.focalPoint, i3.alignment), e3.src.isCropped ? (Object.assign(e3.parts[0], a3), e3.src.width = a3.width, e3.src.height = a3.height) : e3.parts.push(Ee(a3));
|
|
1584
|
+
break;
|
|
1585
|
+
case A.LEGACY_STRIP_TILE_HORIZONTAL:
|
|
1586
|
+
case A.LEGACY_STRIP_TILE_VERTICAL:
|
|
1587
|
+
case A.LEGACY_STRIP_TILE:
|
|
1588
|
+
case A.LEGACY_STRIP_ORIGINAL_SIZE:
|
|
1589
|
+
e3.parts.push(function(e4) {
|
|
1590
|
+
return { transformType: w.LEGACY_CROP, width: Math.round(e4.width), height: Math.round(e4.height), alignment: ne(e4), upscale: false, forceUSM: false, scaleFactor: 1, cssUpscaleNeeded: false };
|
|
1591
|
+
}(i3));
|
|
1592
|
+
break;
|
|
1593
|
+
case A.LEGACY_STRIP_SCALE_TO_FIT:
|
|
1594
|
+
case A.LEGACY_STRIP_FIT_AND_TILE:
|
|
1595
|
+
e3.parts.push(function(e4) {
|
|
1596
|
+
return { transformType: w.FIT, width: Math.round(e4.width), height: Math.round(e4.height), upscale: false, forceUSM: true, scaleFactor: 1, cssUpscaleNeeded: false };
|
|
1597
|
+
}(i3));
|
|
1598
|
+
break;
|
|
1599
|
+
case A.LEGACY_STRIP_SCALE_TO_FILL:
|
|
1600
|
+
e3.parts.push(function(e4) {
|
|
1601
|
+
return { transformType: w.LEGACY_FILL, width: Math.round(e4.width), height: Math.round(e4.height), alignment: ne(e4), upscale: false, forceUSM: true, scaleFactor: 1, cssUpscaleNeeded: false };
|
|
1602
|
+
}(i3));
|
|
1603
|
+
}
|
|
1604
|
+
}
|
|
1605
|
+
function Ie(e3, t3) {
|
|
1606
|
+
const i3 = ie(e3.src.width, e3.src.height, w.FIT, t3, e3.devicePixelRatio, e3.upscaleMethod);
|
|
1607
|
+
return { transformType: !e3.src.width || !e3.src.height ? w.FIT : w.FILL, width: Math.round(i3.width), height: Math.round(i3.height), alignment: M.center, upscale: i3.scaleFactor > 1, forceUSM: i3.forceUSM, scaleFactor: i3.scaleFactor, cssUpscaleNeeded: i3.cssUpscaleNeeded, upscaleMethodValue: i3.upscaleMethodValue };
|
|
1608
|
+
}
|
|
1609
|
+
function Ee(e3) {
|
|
1610
|
+
return { transformType: w.CROP, x: Math.round(e3.x), y: Math.round(e3.y), width: Math.round(e3.width), height: Math.round(e3.height), upscale: false, forceUSM: false, scaleFactor: 1, cssUpscaleNeeded: false };
|
|
1611
|
+
}
|
|
1612
|
+
function Le(e3, t3) {
|
|
1613
|
+
t3 = t3 || {}, e3.quality = function(e4, t4) {
|
|
1614
|
+
const i3 = e4.fileType === H.PNG, a3 = e4.fileType === H.JPG, n3 = e4.fileType === H.WEBP, r2 = e4.fileType === H.AVIF, o2 = a3 || i3 || n3 || r2;
|
|
1615
|
+
if (o2) {
|
|
1616
|
+
const a4 = U(e4.parts), n4 = (s2 = a4.width, c2 = a4.height, P[oe(s2, c2)].quality);
|
|
1617
|
+
let r3 = t4.quality && t4.quality >= 5 && t4.quality <= 90 ? t4.quality : n4;
|
|
1618
|
+
return r3 = i3 ? r3 + 5 : r3, r3;
|
|
1619
|
+
}
|
|
1620
|
+
var s2, c2;
|
|
1621
|
+
return 0;
|
|
1622
|
+
}(e3, t3), e3.progressive = function(e4) {
|
|
1623
|
+
return false !== e4.progressive;
|
|
1624
|
+
}(t3), e3.watermark = function(e4) {
|
|
1625
|
+
return e4.watermark;
|
|
1626
|
+
}(t3), e3.autoEncode = t3.autoEncode ?? true, e3.encoding = t3?.encoding, e3.unsharpMask = function(e4, t4) {
|
|
1627
|
+
if (function(e5) {
|
|
1628
|
+
const t5 = "number" == typeof (e5 = e5 || {}).radius && !isNaN(e5.radius) && e5.radius >= 0.1 && e5.radius <= 500, i4 = "number" == typeof e5.amount && !isNaN(e5.amount) && e5.amount >= 0 && e5.amount <= 10, a3 = "number" == typeof e5.threshold && !isNaN(e5.threshold) && e5.threshold >= 0 && e5.threshold <= 255;
|
|
1629
|
+
return t5 && i4 && a3;
|
|
1630
|
+
}(t4.unsharpMask)) return { radius: se(t4.unsharpMask?.radius, 2), amount: se(t4.unsharpMask?.amount, 2), threshold: se(t4.unsharpMask?.threshold, 2) };
|
|
1631
|
+
if (("number" != typeof (i3 = (i3 = t4.unsharpMask) || {}).radius || isNaN(i3.radius) || 0 !== i3.radius || "number" != typeof i3.amount || isNaN(i3.amount) || 0 !== i3.amount || "number" != typeof i3.threshold || isNaN(i3.threshold) || 0 !== i3.threshold) && function(e5) {
|
|
1632
|
+
const t5 = U(e5.parts);
|
|
1633
|
+
return !(t5.scaleFactor >= 1) || t5.forceUSM || t5.transformType === w.FIT;
|
|
1634
|
+
}(e4)) return C;
|
|
1635
|
+
var i3;
|
|
1636
|
+
return;
|
|
1637
|
+
}(e3, t3), e3.filters = function(e4) {
|
|
1638
|
+
const t4 = e4.filters || {}, i3 = {};
|
|
1639
|
+
be(t4[k.CONTRAST], -100, 100) && (i3[k.CONTRAST] = t4[k.CONTRAST]);
|
|
1640
|
+
be(t4[k.BRIGHTNESS], -100, 100) && (i3[k.BRIGHTNESS] = t4[k.BRIGHTNESS]);
|
|
1641
|
+
be(t4[k.SATURATION], -100, 100) && (i3[k.SATURATION] = t4[k.SATURATION]);
|
|
1642
|
+
be(t4[k.HUE], -180, 180) && (i3[k.HUE] = t4[k.HUE]);
|
|
1643
|
+
be(t4[k.BLUR], 0, 100) && (i3[k.BLUR] = t4[k.BLUR]);
|
|
1644
|
+
return i3;
|
|
1645
|
+
}(t3);
|
|
1646
|
+
}
|
|
1647
|
+
function be(e3, t3, i3) {
|
|
1648
|
+
return "number" == typeof e3 && !isNaN(e3) && 0 !== e3 && e3 >= t3 && e3 <= i3;
|
|
1649
|
+
}
|
|
1650
|
+
function Ae(e3, t3, i3, a3) {
|
|
1651
|
+
const n3 = function(e4) {
|
|
1652
|
+
return e4?.isSEOBot ?? false;
|
|
1653
|
+
}(a3), r2 = Q(t3.id), o2 = function(e4, t4) {
|
|
1654
|
+
const i4 = /\.([^.]*)$/, a4 = new RegExp(`(${J.concat(K).join("|")})`, "g");
|
|
1655
|
+
if (t4 && t4.length) {
|
|
1656
|
+
let e5 = t4;
|
|
1657
|
+
const n5 = t4.match(i4);
|
|
1658
|
+
return n5 && Z.includes(n5[1]) && (e5 = t4.replace(i4, "")), encodeURIComponent(e5).replace(a4, X);
|
|
1659
|
+
}
|
|
1660
|
+
const n4 = e4.match(/\/(.*?)$/);
|
|
1661
|
+
return (n4 ? n4[1] : e4).replace(i4, "");
|
|
1662
|
+
}(t3.id, t3.name), s2 = n3 ? 1 : function(e4) {
|
|
1663
|
+
return Math.min(e4.pixelAspectRatio || 1, _);
|
|
1664
|
+
}(i3), c2 = ee(t3.id), l2 = c2, d2 = j(t3.id, a3?.hasAnimation, a3?.allowAnimatedTransform, a3?.allowFullGIFTransformation), u2 = { fileName: o2, fileExtension: c2, fileType: r2, fittingType: e3, preferredExtension: l2, src: { id: t3.id, width: t3.width, height: t3.height, isCropped: false, isAnimated: le(t3.id, a3?.hasAnimation) }, focalPoint: { x: t3.focalPoint && t3.focalPoint.x, y: t3.focalPoint && t3.focalPoint.y }, parts: [], devicePixelRatio: s2, quality: 0, upscaleMethod: ce(a3), progressive: true, watermark: "", unsharpMask: {}, filters: {}, transformed: d2, allowFullGIFTransformation: a3?.allowFullGIFTransformation, isPlaceholderFlow: a3?.isPlaceholderFlow };
|
|
1665
|
+
return d2 && (_e(u2, t3, i3), Le(u2, a3)), u2;
|
|
1666
|
+
}
|
|
1667
|
+
function we(e3, t3, i3) {
|
|
1668
|
+
const a3 = { ...i3 }, n3 = ue("isMobile");
|
|
1669
|
+
switch (e3) {
|
|
1670
|
+
case A.LEGACY_BG_FIT_AND_TILE:
|
|
1671
|
+
case A.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:
|
|
1672
|
+
case A.LEGACY_BG_FIT_AND_TILE_VERTICAL:
|
|
1673
|
+
case A.LEGACY_BG_NORMAL:
|
|
1674
|
+
const e4 = n3 ? L : I, i4 = n3 ? b : E;
|
|
1675
|
+
a3.width = Math.min(e4, t3.width), a3.height = Math.min(i4, Math.round(a3.width / (t3.width / t3.height))), a3.pixelAspectRatio = 1;
|
|
1676
|
+
}
|
|
1677
|
+
return a3;
|
|
1678
|
+
}
|
|
1679
|
+
const ye = Y`fit/w_${"width"},h_${"height"}`, ve = Y`fill/w_${"width"},h_${"height"},al_${"alignment"}`, Me = Y`fill/w_${"width"},h_${"height"},fp_${"focalPointX"}_${"focalPointY"}`, Oe = Y`crop/x_${"x"},y_${"y"},w_${"width"},h_${"height"}`, Se = Y`crop/w_${"width"},h_${"height"},al_${"alignment"}`, Re = Y`fill/w_${"width"},h_${"height"},al_${"alignment"}`, Ce = Y`,lg_${"upscaleMethodValue"}`, Ge = Y`,q_${"quality"}`, Fe = Y`,quality_auto`, Ne = Y`,usm_${"radius"}_${"amount"}_${"threshold"}`, Pe = Y`,bl`, xe = Y`,wm_${"watermark"}`, ke = { [k.CONTRAST]: Y`,con_${"contrast"}`, [k.BRIGHTNESS]: Y`,br_${"brightness"}`, [k.SATURATION]: Y`,sat_${"saturation"}`, [k.HUE]: Y`,hue_${"hue"}`, [k.BLUR]: Y`,blur_${"blur"}` }, He = Y`,enc_auto`, Be = Y`,enc_avif`, Ye = Y`,enc_pavif`, Ue = Y`,pstr`, Ze = Y`,anm_all`;
|
|
1680
|
+
function ze(e3, t3, i3, a3 = {}, n3) {
|
|
1681
|
+
if (j(t3.id, a3?.hasAnimation, a3?.allowAnimatedTransform, a3?.allowFullGIFTransformation)) {
|
|
1682
|
+
if (D(t3.id) || q(t3.id)) {
|
|
1683
|
+
const { alignment: r2, ...o2 } = i3;
|
|
1684
|
+
t3.focalPoint = { x: void 0, y: void 0 }, delete t3?.crop, n3 = Ae(e3, t3, o2, a3);
|
|
1685
|
+
} else n3 = n3 || Ae(e3, t3, i3, a3);
|
|
1686
|
+
return function(e4) {
|
|
1687
|
+
const t4 = [];
|
|
1688
|
+
e4.parts.forEach((e5) => {
|
|
1689
|
+
switch (e5.transformType) {
|
|
1690
|
+
case w.CROP:
|
|
1691
|
+
t4.push(Oe(e5));
|
|
1692
|
+
break;
|
|
1693
|
+
case w.LEGACY_CROP:
|
|
1694
|
+
t4.push(Se(e5));
|
|
1695
|
+
break;
|
|
1696
|
+
case w.LEGACY_FILL:
|
|
1697
|
+
let i5 = Re(e5);
|
|
1698
|
+
e5.upscale && (i5 += Ce(e5)), t4.push(i5);
|
|
1699
|
+
break;
|
|
1700
|
+
case w.FIT:
|
|
1701
|
+
let a4 = ye(e5);
|
|
1702
|
+
e5.upscale && (a4 += Ce(e5)), t4.push(a4);
|
|
1703
|
+
break;
|
|
1704
|
+
case w.FILL:
|
|
1705
|
+
let n4 = ve(e5);
|
|
1706
|
+
e5.upscale && (n4 += Ce(e5)), t4.push(n4);
|
|
1707
|
+
break;
|
|
1708
|
+
case w.FILL_FOCAL:
|
|
1709
|
+
let r2 = Me(e5);
|
|
1710
|
+
e5.upscale && (r2 += Ce(e5)), t4.push(r2);
|
|
1711
|
+
}
|
|
1712
|
+
});
|
|
1713
|
+
let i4 = t4.join("/");
|
|
1714
|
+
if (e4.quality && (i4 += Ge(e4)), e4.unsharpMask && (i4 += Ne(e4.unsharpMask)), e4.progressive || (i4 += Pe(e4)), e4.watermark && (i4 += xe(e4)), e4.filters && (i4 += Object.keys(e4.filters).map((t5) => ke[t5](e4.filters)).join("")), e4.fileType !== H.GIF && (e4.encoding === B.AVIF ? (i4 += Be(e4), i4 += Fe(e4)) : e4.encoding === B.PAVIF ? (i4 += Ye(e4), i4 += Fe(e4)) : e4.autoEncode && (i4 += He(e4))), e4.src?.isAnimated && e4.transformed) {
|
|
1715
|
+
const t5 = W(e4.src.id), a4 = true === e4.isPlaceholderFlow, n4 = true === e4.allowFullGIFTransformation;
|
|
1716
|
+
a4 ? i4 += Ue(e4) : t5 && n4 && (i4 += Ze(e4));
|
|
1717
|
+
}
|
|
1718
|
+
return `${e4.src.id}/${T}/${i4}/${e4.fileName}.${e4.preferredExtension}`;
|
|
1719
|
+
}(n3);
|
|
1720
|
+
}
|
|
1721
|
+
return t3.id;
|
|
1722
|
+
}
|
|
1723
|
+
const $e = { [y.CENTER]: "50% 50%", [y.TOP_LEFT]: "0% 0%", [y.TOP_RIGHT]: "100% 0%", [y.TOP]: "50% 0%", [y.BOTTOM_LEFT]: "0% 100%", [y.BOTTOM_RIGHT]: "100% 100%", [y.BOTTOM]: "50% 100%", [y.RIGHT]: "100% 50%", [y.LEFT]: "0% 50%" }, je = Object.entries($e).reduce((e3, [t3, i3]) => (e3[i3] = t3, e3), {}), Ve = [A.TILE, A.TILE_HORIZONTAL, A.TILE_VERTICAL, A.LEGACY_BG_FIT_AND_TILE, A.LEGACY_BG_FIT_AND_TILE_HORIZONTAL, A.LEGACY_BG_FIT_AND_TILE_VERTICAL], De = [A.LEGACY_ORIGINAL_SIZE, A.ORIGINAL_SIZE, A.LEGACY_BG_NORMAL];
|
|
1724
|
+
function We(e3, t3, { width: i3, height: a3 }) {
|
|
1725
|
+
return e3 === A.TILE && t3.width > i3 && t3.height > a3;
|
|
1726
|
+
}
|
|
1727
|
+
function qe(e3, { width: t3, height: i3 }) {
|
|
1728
|
+
if (!t3 || !i3) {
|
|
1729
|
+
const a3 = t3 || Math.min(980, e3.width), n3 = a3 / e3.width;
|
|
1730
|
+
return { width: a3, height: i3 || e3.height * n3 };
|
|
1731
|
+
}
|
|
1732
|
+
return { width: t3, height: i3 };
|
|
1733
|
+
}
|
|
1734
|
+
function Je(e3, t3, i3, a3 = "center") {
|
|
1735
|
+
const n3 = { img: {}, container: {} };
|
|
1736
|
+
if (e3 === A.SCALE_TO_FILL) {
|
|
1737
|
+
const e4 = t3.focalPoint && function(e5) {
|
|
1738
|
+
const t4 = `${e5.x}% ${e5.y}%`;
|
|
1739
|
+
return je[t4] || "";
|
|
1740
|
+
}(t3.focalPoint), r2 = e4 || a3;
|
|
1741
|
+
t3.focalPoint && !e4 ? n3.img = { objectPosition: Ke(t3, i3, t3.focalPoint) } : n3.img = { objectPosition: $e[r2] };
|
|
1742
|
+
} else [A.LEGACY_ORIGINAL_SIZE, A.ORIGINAL_SIZE].includes(e3) ? n3.img = { objectFit: "none", top: "auto", left: "auto", right: "auto", bottom: "auto" } : Ve.includes(e3) && (n3.container = { backgroundSize: `${t3.width}px ${t3.height}px` });
|
|
1743
|
+
return n3;
|
|
1744
|
+
}
|
|
1745
|
+
function Ke(e3, t3, i3) {
|
|
1746
|
+
const { width: a3, height: n3 } = e3, { width: r2, height: o2 } = t3, { x: s2, y: c2 } = i3;
|
|
1747
|
+
if (!r2 || !o2) return `${s2}% ${c2}%`;
|
|
1748
|
+
const l2 = Math.max(r2 / a3, o2 / n3), d2 = a3 * l2, u2 = n3 * l2, h = Math.max(0, Math.min(d2 - r2, d2 * (s2 / 100) - r2 / 2)), g = Math.max(0, Math.min(u2 - o2, u2 * (c2 / 100) - o2 / 2));
|
|
1749
|
+
return `${h && Math.floor(h / (d2 - r2) * 100)}% ${g && Math.floor(g / (u2 - o2) * 100)}%`;
|
|
1750
|
+
}
|
|
1751
|
+
const Xe = { width: "100%", height: "100%" };
|
|
1752
|
+
function Qe(e3, t3, i3, a3 = {}) {
|
|
1753
|
+
const { autoEncode: n3 = true, isSEOBot: r2, shouldLoadHQImage: o2, hasAnimation: s2, allowAnimatedTransform: c2, encoding: l2 } = a3;
|
|
1754
|
+
if (!$(e3, t3, i3)) return G;
|
|
1755
|
+
const d2 = true, u2 = c2 ?? d2, h = j(t3.id, s2, u2);
|
|
1756
|
+
if (!h || o2) return et(e3, t3, i3, { ...a3, autoEncode: n3, useSrcset: h });
|
|
1757
|
+
const g = { ...i3, ...qe(t3, i3) }, { alignment: m, htmlTag: f2 } = g, p2 = We(e3, t3, g), T2 = function(e4, t4, { width: i4, height: a4 }, n4 = false) {
|
|
1758
|
+
if (n4) return { width: i4, height: a4 };
|
|
1759
|
+
const r3 = !De.includes(e4), o3 = We(e4, t4, { width: i4, height: a4 }), s3 = !o3 && Ve.includes(e4), c3 = s3 ? t4.width : i4, l3 = s3 ? t4.height : a4, d3 = r3 ? function(e5, t5) {
|
|
1760
|
+
return e5 > 900 ? t5 ? 0.05 : 0.15 : e5 > 500 ? t5 ? 0.1 : 0.18 : e5 > 200 ? 0.25 : 1;
|
|
1761
|
+
}(c3, V(t4.id)) : 1;
|
|
1762
|
+
return { width: o3 ? 1920 : c3 * d3, height: l3 * d3 };
|
|
1763
|
+
}(e3, t3, g, r2), _2 = function(e4, t4, i4) {
|
|
1764
|
+
return i4 ? 0 : Ve.includes(t4) ? 1 : e4 > 200 ? 2 : 3;
|
|
1765
|
+
}(g.width, e3, r2), I2 = function(e4, t4) {
|
|
1766
|
+
const i4 = Ve.includes(e4) && !t4;
|
|
1767
|
+
return e4 === A.SCALE_TO_FILL || i4 ? A.SCALE_TO_FIT : e4;
|
|
1768
|
+
}(e3, p2), E2 = Je(e3, t3, i3, m), { uri: L2 } = et(I2, t3, { ...T2, alignment: m, htmlTag: f2 }, { autoEncode: n3, filters: _2 ? { blur: _2 } : {}, hasAnimation: s2, allowAnimatedTransform: u2, encoding: l2, isPlaceholderFlow: d2 }), { attr: b2 = {}, css: w2 } = et(e3, t3, { ...g, alignment: m, htmlTag: f2 }, {});
|
|
1769
|
+
return w2.img = w2.img || {}, w2.container = w2.container || {}, Object.assign(w2.img, E2.img, Xe), Object.assign(w2.container, E2.container), { uri: L2, css: w2, attr: b2, transformed: true };
|
|
1770
|
+
}
|
|
1771
|
+
function et(e3, t3, i3, a3) {
|
|
1772
|
+
let n3 = {};
|
|
1773
|
+
if ($(e3, t3, i3)) {
|
|
1774
|
+
const r2 = we(e3, t3, i3), o2 = Ae(e3, t3, r2, a3);
|
|
1775
|
+
n3.uri = ze(e3, t3, r2, a3, o2), a3?.useSrcset && (n3.srcset = function(e4, t4, i4, a4, n4) {
|
|
1776
|
+
const r3 = i4.pixelAspectRatio || 1;
|
|
1777
|
+
return { dpr: [`${1 === r3 ? n4.uri : ze(e4, t4, { ...i4, pixelAspectRatio: 1 }, a4)} 1x`, `${2 === r3 ? n4.uri : ze(e4, t4, { ...i4, pixelAspectRatio: 2 }, a4)} 2x`] };
|
|
1778
|
+
}(e3, t3, r2, a3, n3)), Object.assign(n3, function(e4, t4) {
|
|
1779
|
+
let i4;
|
|
1780
|
+
return i4 = t4.htmlTag === O.BG ? ge : t4.htmlTag === O.SVG ? Te : pe, i4(e4, t4);
|
|
1781
|
+
}(o2, r2), { transformed: o2.transformed });
|
|
1782
|
+
} else n3 = G;
|
|
1783
|
+
return n3;
|
|
1784
|
+
}
|
|
1785
|
+
const tt = "https://static.wixstatic.com/media/";
|
|
1786
|
+
he();
|
|
1787
|
+
he();
|
|
1788
|
+
const it = tt, { STATIC_MEDIA_URL: at } = a2, nt = ({ fittingType: e3, src: t3, target: i3, options: a3 }) => {
|
|
1789
|
+
const n3 = Qe(e3, t3, i3, { ...a3, autoEncode: true });
|
|
1790
|
+
return n3?.uri && !/^[a-z]+:/.test(n3.uri) && (n3.uri = `${at}${n3.uri}`), n3;
|
|
1791
|
+
}, rt = /^[a-z]+:/, ot = (e3) => {
|
|
1792
|
+
const { id: t3, containerId: i3, uri: a3, alt: n3, name: r2 = "", role: s2, width: c2, height: l2, displayMode: d2, devicePixelRatio: u2, quality: h, alignType: g, bgEffectName: m = "", focalPoint: f2, upscaleMethod: T2, className: _2 = "", crop: I2, imageStyles: E2 = {}, targetWidth: L2, targetHeight: b2, targetScale: A2, onLoad: w2 = () => {
|
|
1793
|
+
}, onError: y2 = () => {
|
|
1794
|
+
}, shouldUseLQIP: v2, containerWidth: M2, containerHeight: O2, getPlaceholder: S2, isInFirstFold: R2, placeholderTransition: C2, socialAttrs: G2, isSEOBot: F2, skipMeasure: N2, hasAnimation: P2, encoding: x2, isFluidLayout: k2 } = e3, H2 = o.useRef(null);
|
|
1795
|
+
let B2 = "";
|
|
1796
|
+
const Y2 = "blur" === C2, U2 = o.useRef(null);
|
|
1797
|
+
if (!U2.current) if (S2 || v2 || R2 || F2) {
|
|
1798
|
+
const e4 = { upscaleMethod: T2, ...h || {}, shouldLoadHQImage: R2, isSEOBot: F2, hasAnimation: P2, encoding: x2 };
|
|
1799
|
+
U2.current = (S2 || nt)({ fittingType: d2, src: { id: a3, width: c2, height: l2, crop: I2, name: r2, focalPoint: f2 }, target: { width: M2, height: O2, alignment: g, htmlTag: "img" }, options: e4 }), B2 = !U2.current.transformed || R2 || F2 ? "" : "true";
|
|
1800
|
+
} else U2.current = { uri: void 0, css: { img: {} }, attr: { img: {}, container: {} }, transformed: false };
|
|
1801
|
+
const Z2 = !F2 && (S2 || v2) && !R2 && U2.current.transformed, z2 = o.useMemo(() => JSON.stringify({ containerId: i3, ...i3 && { containerId: i3 }, ...g && { alignType: g }, ...N2 && { skipMeasure: true }, displayMode: d2, ...M2 && { targetWidth: M2 }, ...O2 && { targetHeight: O2 }, ...L2 && { targetWidth: L2 }, ...b2 && { targetHeight: b2 }, ...A2 && { targetScale: A2 }, isLQIP: Z2, isSEOBot: F2, lqipTransition: C2, encoding: x2, imageData: { width: c2, height: l2, uri: a3, name: r2, displayMode: d2, hasAnimation: P2, ...h && { quality: h }, ...u2 && { devicePixelRatio: u2 }, ...f2 && { focalPoint: f2 }, ...I2 && { crop: I2 }, ...T2 && { upscaleMethod: T2 } } }), [i3, g, N2, d2, M2, O2, L2, b2, A2, Z2, F2, C2, x2, c2, l2, a3, r2, P2, h, u2, f2, I2, T2]), $2 = U2.current, j2 = $2?.uri, V2 = $2?.srcset, D2 = $2.css?.img, W2 = `${p} ${_2}`;
|
|
1802
|
+
o.useEffect(() => {
|
|
1803
|
+
const e4 = H2.current;
|
|
1804
|
+
w2 && e4?.currentSrc && e4?.complete && w2({ target: e4 });
|
|
1805
|
+
}, []);
|
|
1806
|
+
const q2 = $2 && !$2?.transformed ? `max(${c2}px, 100%)` : L2 ? `${L2}px` : null;
|
|
1807
|
+
return o.createElement("wow-image", { id: t3, class: W2, "data-image-info": z2, "data-motion-part": `BG_IMG ${i3}`, "data-bg-effect-name": m, "data-has-ssr-src": B2, "data-animate-blur": !F2 && Z2 && Y2 ? "" : void 0, "data-is-responsive": k2 ? "true" : void 0, style: q2 ? { "--wix-img-max-width": q2 } : {} }, o.createElement("img", { src: j2, ref: H2, alt: n3 || "", role: s2, style: { ...D2, ...E2 }, onLoad: w2, onError: y2, width: M2 || void 0, height: O2 || void 0, ...G2, srcSet: R2 ? V2?.dpr?.map((e4) => rt.test(e4) ? e4 : `${at}${e4}`).join(", ") : void 0, fetchpriority: R2 ? "high" : void 0, loading: false === R2 ? "lazy" : void 0, suppressHydrationWarning: true }));
|
|
1808
|
+
};
|
|
1809
|
+
var st = "Tj01hh";
|
|
1810
|
+
var ct = (e3) => {
|
|
1811
|
+
var t3, i3;
|
|
1812
|
+
const { id: a3, alt: n3, role: s2, className: l2, imageStyles: d2 = {}, targetWidth: u2, targetHeight: h, onLoad: g, onError: m, containerWidth: f2, containerHeight: p2, isInFirstFold: T2, socialAttrs: _2, skipMeasure: I2, responsiveImageProps: E2, zoomedImageResponsiveOverride: L2, displayMode: b2 } = e3, A2 = u2 || f2, w2 = h || p2, { fallbackSrc: y2, srcset: v2, sources: M2, css: O2 } = E2 || {}, { width: S2, height: R2, ...C2 } = (null == E2 || null == (t3 = E2.css) ? void 0 : t3.img) || {}, G2 = "original_size" === b2 ? null == E2 || null == (i3 = E2.css) ? void 0 : i3.img : C2;
|
|
1813
|
+
var F2;
|
|
1814
|
+
return y2 && v2 && O2 ? o.createElement("img", r()({ fetchpriority: T2 ? "high" : void 0, loading: false === T2 ? "lazy" : void 0, sizes: A2 + "px", srcSet: I2 ? null == L2 ? void 0 : L2.srcset : null == E2 ? void 0 : E2.srcset, id: a3, src: y2, alt: n3 || "", role: s2, style: { ...d2, ...I2 ? { ...null == L2 || null == (F2 = L2.css) ? void 0 : F2.img } : { ...G2 } }, onLoad: g, onError: m, className: (0, c.Z)(l2, st), width: A2, height: w2 }, _2)) : y2 && M2 && O2 ? o.createElement("picture", null, M2.map((e4) => {
|
|
1815
|
+
let { srcset: t4, media: i4, sizes: a4 } = e4;
|
|
1816
|
+
return o.createElement("source", { key: i4, srcSet: t4, media: i4, sizes: a4 });
|
|
1817
|
+
}), o.createElement("img", r()({ fetchpriority: T2 ? "high" : void 0, loading: false === T2 ? "lazy" : void 0, id: a3, src: M2[0].fallbackSrc, alt: n3 || "", role: s2, style: { ...d2, objectFit: M2[0].imgStyle.objectFit, objectPosition: M2[0].imgStyle.objectPosition }, onLoad: g, onError: m, className: (0, c.Z)(l2, st), width: A2, height: w2 }, _2))) : o.createElement(ot, e3);
|
|
1818
|
+
};
|
|
1819
|
+
var lt = (e3) => {
|
|
1820
|
+
var t3, i3, a3;
|
|
1821
|
+
const { className: n3, customIdPrefix: r2, getPlaceholder: s2, hasAnimation: c2, ...l2 } = e3, d2 = o.useMemo(() => JSON.stringify({ containerId: l2.containerId, alignType: l2.alignType, fittingType: l2.displayMode, hasAnimation: c2, imageData: { width: l2.width, height: l2.height, uri: l2.uri, name: l2.name, ...l2.quality && { quality: l2.quality }, displayMode: l2.displayMode } }), [l2, c2]), u2 = o.useRef(null);
|
|
1822
|
+
u2.current || (u2.current = s2 ? s2({ fittingType: l2.displayMode, src: { id: l2.uri, width: l2.width, height: l2.height, name: l2.name }, target: { width: l2.containerWidth, height: l2.containerHeight, alignment: l2.alignType, htmlTag: "bg" }, options: { hasAnimation: c2, allowAnimatedTransform: false } }) : { uri: void 0, css: { img: {} }, attr: { img: {}, container: {} } });
|
|
1823
|
+
const h = u2.current, g = null != (t3 = null == h ? void 0 : h.uri) ? t3 : "", m = null != (i3 = null == (a3 = h.css) ? void 0 : a3.container) ? i3 : {}, f2 = Object.assign(g ? { backgroundImage: "url(" + g + ")" } : {}, m);
|
|
1824
|
+
return o.createElement("wix-bg-image", { id: "" + (r2 || "bgImg_") + l2.containerId, class: n3, style: f2, "data-tiled-image-info": d2, "data-has-bg-scroll-effect": l2.hasBgScrollEffect || "", "data-bg-effect-name": l2.bgEffectName || "", "data-motion-part": "BG_IMG " + l2.containerId });
|
|
1825
|
+
};
|
|
1826
|
+
const dt = new RegExp("<%= compId %>", "g"), ut = (e3, t3) => e3.replace(dt, t3);
|
|
1827
|
+
var ht = (e3) => null == e3 ? void 0 : e3.replace(":hover", ""), gt = "bX9O_S", mt = "Z_wCwr", ft = "Jxk_UL", pt = "K8MSra", Tt = "YTb3b4";
|
|
1828
|
+
const _t = { quality: { unsharpMask: { radius: 0.33, amount: 1, threshold: 0 } }, devicePixelRatio: 1 };
|
|
1829
|
+
var It = (e3) => {
|
|
1830
|
+
const { id: t3, videoRef: i3, videoInfo: a3, posterImageInfo: n3, muted: s2, preload: l2, loop: d2, alt: u2, isVideoEnabled: h, getPlaceholder: g, extraClassName: m = "" } = e3;
|
|
1831
|
+
a3.containerId = ht(a3.containerId);
|
|
1832
|
+
const f2 = o.useMemo(() => JSON.stringify(a3), [a3]), p2 = o.createElement(o.Fragment, null, n3.filterEffectSvgString && o.createElement("svg", { id: "svg_" + a3.containerId, className: Tt }, o.createElement("defs", { dangerouslySetInnerHTML: { __html: ut(n3.filterEffectSvgString, a3.containerId) } })), o.createElement(ct, r()({ key: a3.videoId + "_img", id: n3.containerId + "_img", className: (0, c.Z)(mt, ft, "bgVideoposter", m), imageStyles: { width: "100%", height: "100%" } }, n3, _t, { getPlaceholder: g })));
|
|
1833
|
+
return h ? o.createElement("wix-video", { id: t3, "data-video-info": f2, "data-motion-part": "BG_IMG " + a3.containerId, class: (0, c.Z)(gt, "bgVideo", m) }, o.createElement("video", { key: a3.videoId + "_video", ref: i3, id: a3.containerId + "_video", className: pt, crossOrigin: "anonymous", "aria-label": u2, playsInline: true, preload: l2, muted: s2, loop: d2 }), p2) : p2;
|
|
1834
|
+
}, Et = "SUz0WK";
|
|
1835
|
+
var Lt = (e3) => {
|
|
1836
|
+
const { id: t3, containerId: i3, pageId: a3, children: n3, bgEffectName: r2 = "", containerSize: s2 } = e3;
|
|
1837
|
+
return o.createElement("wix-bg-media", { id: t3, class: Et, "data-container-id": i3, "data-container-size": ((null == s2 ? void 0 : s2.width) || 0) + ", " + ((null == s2 ? void 0 : s2.height) || 0), "data-page-id": a3, "data-bg-effect-name": r2, "data-motion-part": "BG_MEDIA " + i3 }, n3);
|
|
1838
|
+
};
|
|
1839
|
+
const bt = "bgOverlay";
|
|
1840
|
+
var At = "m4khSP", wt = "FNxOn5";
|
|
1841
|
+
var yt = (e3) => {
|
|
1842
|
+
const { imageOverlay: t3 } = e3;
|
|
1843
|
+
return o.createElement("div", { "data-testid": bt, className: At }, t3 && o.createElement(lt, r()({ customIdPrefix: "bgImgOverlay_", className: wt }, t3)));
|
|
1844
|
+
};
|
|
1845
|
+
const vt = "bgLayers", Mt = "colorUnderlay", Ot = "mediaPadding", St = "canvas";
|
|
1846
|
+
var Rt = "MW5IWV", Ct = "N3eg0s", Gt = "Kv1aVt", Ft = "dLPlxY", Nt = "VgO9Yg", Pt = "LWbAav", xt = "yK6aSC", kt = "K_YxMd", Ht = "NGjcJN", Bt = "mNGsUM", Yt = "I8xA4L";
|
|
1847
|
+
const Ut = "bgImage";
|
|
1848
|
+
var Zt = (e3) => {
|
|
1849
|
+
const { videoRef: t3, canvasRef: i3, hasBgFullscreenScrollEffect: a3, image: n3, backgroundImage: s2, backgroundMedia: l2, video: d2, backgroundOverlay: u2, shouldPadMedia: h, extraClass: g = "", shouldRenderUnderlay: m = !d2, reducedMotion: f2 = false, getPlaceholder: p2, hasCanvasAnimation: T2, useWixMediaCanvas: _2, onClick: I2 } = e3, { onImageLoad: E2 } = ((e4) => {
|
|
1850
|
+
let { onReady: t4, image: i4 } = e4;
|
|
1851
|
+
return (0, o.useEffect)(() => {
|
|
1852
|
+
t4 && !i4 && t4();
|
|
1853
|
+
}, [t4, i4]), { onImageLoad: (e5) => {
|
|
1854
|
+
null != i4 && i4.onLoad && i4.onLoad(e5), t4 && t4();
|
|
1855
|
+
} };
|
|
1856
|
+
})(e3), L2 = ht(e3.containerId), b2 = "img_" + ht(L2), A2 = n3 && o.createElement(ct, r()({ id: b2, className: (0, c.Z)(Gt, Ft, Bt, Ut), imageStyles: { width: "100%", height: "100%" }, getPlaceholder: p2 }, n3, { onLoad: E2 })), w2 = s2 && o.createElement(lt, r()({}, s2, { containerId: L2, className: (0, c.Z)(Gt, Ft, Bt, Ut), getPlaceholder: p2 })), y2 = d2 && o.createElement(It, r()({ id: "videoContainer_" + L2 }, d2, { extraClassName: xt, reducedMotion: f2, videoRef: t3, getPlaceholder: p2 })), v2 = _2 && i3 || T2 ? o.createElement("wix-media-canvas", { "data-container-id": L2, class: T2 ? Yt : "" }, A2, w2, y2, o.createElement("canvas", { id: L2 + "webglcanvas", className: (0, c.Z)(kt, "webglcanvas"), "aria-label": (null == d2 ? void 0 : d2.alt) || "", role: "presentation", "data-testid": St })) : o.createElement(o.Fragment, null, A2, w2, y2, i3 && o.createElement("canvas", { id: L2 + "webglcanvas", ref: i3, className: (0, c.Z)(kt, "webglcanvas"), "aria-label": (null == d2 ? void 0 : d2.alt) || "", role: "presentation", "data-testid": St })), M2 = l2 ? o.createElement(Lt, r()({ id: "bgMedia_" + L2 }, l2), v2) : o.createElement("div", { id: "bgMedia_" + L2, "data-motion-part": "BG_MEDIA " + L2, className: Nt }, v2), O2 = u2 && o.createElement(yt, u2);
|
|
1857
|
+
return o.createElement("div", { id: vt + "_" + L2, "data-hook": vt, "data-motion-part": "BG_LAYER " + L2, className: (0, c.Z)(Rt, g, { [Ct]: a3 }), onClick: I2 }, m && o.createElement("div", { "data-testid": Mt, className: (0, c.Z)(Pt, Gt) }), h ? o.createElement("div", { "data-testid": Ot, className: Ht }, M2, O2) : o.createElement(o.Fragment, null, M2, O2));
|
|
1858
|
+
};
|
|
1859
|
+
var zt = (e3) => o.createElement(Zt, e3), $t = "dkukWC", jt = "FRCqDF", Vt = "xnZvZH", Dt = "MBOSCN";
|
|
1860
|
+
const Wt = (e3, t3, i3) => {
|
|
1861
|
+
const a3 = ((e4, t4) => e4 ? [...Array(1 + (t4 || 0)).keys()].reverse().map((e5) => o.createElement("div", { key: "divider-layer-" + e5, style: { "--divider-layer-i": e5 }, className: jt, "data-testid": "divider-layer-" + e5, "data-divider-layer": e5 })) : null)(!!t3, i3);
|
|
1862
|
+
return t3 ? o.createElement("div", { className: (0, c.Z)($t, { [Vt]: "top" === e3, [Dt]: "bottom" === e3 }), "data-testid": e3 + "-divider" }, a3) : null;
|
|
1863
|
+
};
|
|
1864
|
+
var qt = (e3) => {
|
|
1865
|
+
var t3, i3;
|
|
1866
|
+
const a3 = o.useMemo(() => {
|
|
1867
|
+
var t4;
|
|
1868
|
+
return Wt("top", null == e3 ? void 0 : e3.hasTopDivider, null == e3 || null == (t4 = e3.topLayers) ? void 0 : t4.size);
|
|
1869
|
+
}, [null == e3 ? void 0 : e3.hasTopDivider, null == e3 || null == (t3 = e3.topLayers) ? void 0 : t3.size]), n3 = o.useMemo(() => {
|
|
1870
|
+
var t4;
|
|
1871
|
+
return Wt("bottom", null == e3 ? void 0 : e3.hasBottomDivider, null == e3 || null == (t4 = e3.bottomLayers) ? void 0 : t4.size);
|
|
1872
|
+
}, [null == e3 ? void 0 : e3.hasBottomDivider, null == e3 || null == (i3 = e3.bottomLayers) ? void 0 : i3.size]);
|
|
1873
|
+
return o.createElement(o.Fragment, null, a3, n3);
|
|
1874
|
+
};
|
|
1875
|
+
var Jt = { root: "section" }, Kt = i2("p1x1");
|
|
1876
|
+
const Xt = ({ size: e3, ...t3 }) => o.createElement("svg", { viewBox: "0 0 18 18", fill: "currentColor", width: e3 || "18", height: e3 || "18", ...t3 }, o.createElement("path", { d: "M7.5,5 C8.32842712,5 9,5.67157288 9,6.5 L9,11.5 C9,12.3284271 8.32842712,13 7.5,13 C6.67157288,13 6,12.3284271 6,11.5 L6,6.5 C6,5.67157288 6.67157288,5 7.5,5 Z M11.5,5 C12.3284271,5 13,5.67157288 13,6.5 L13,11.5 C13,12.3284271 12.3284271,13 11.5,13 C10.6715729,13 10,12.3284271 10,11.5 L10,6.5 C10,5.67157288 10.6715729,5 11.5,5 Z M7.5,6 C7.22385763,6 7,6.22385763 7,6.5 L7,11.5 C7,11.7761424 7.22385763,12 7.5,12 C7.77614237,12 8,11.7761424 8,11.5 L8,6.5 C8,6.22385763 7.77614237,6 7.5,6 Z M11.5,6 C11.2238576,6 11,6.22385763 11,6.5 L11,11.5 C11,11.7761424 11.2238576,12 11.5,12 C11.7761424,12 12,11.7761424 12,11.5 L12,6.5 C12,6.22385763 11.7761424,6 11.5,6 Z" }));
|
|
1877
|
+
Xt.displayName = "PauseSmall";
|
|
1878
|
+
var Qt = Xt;
|
|
1879
|
+
const ei = ({ size: e3, ...t3 }) => o.createElement("svg", { viewBox: "0 0 18 18", fill: "currentColor", width: e3 || "18", height: e3 || "18", ...t3 }, o.createElement("path", { d: "M6.87468837,5.45041947 L12.7318793,8.46657119 C13.20163,8.68731241 13.20163,9.26940918 12.7318793,9.53342881 L6.87468837,12.5495805 C6.58008377,12.7012867 6.00070071,12.5801226 6,12.0161517 L6,5.98384828 C6,5.65247743 6.35266876,5.20682168 6.87468837,5.45041947 Z M7,11.3602529 L11.5834735,9 L7,6.63974714 L7,11.3602529 Z" }));
|
|
1880
|
+
ei.displayName = "PlaySmall";
|
|
1881
|
+
var ti = ei;
|
|
1882
|
+
const ii = (e3, t3) => {
|
|
1883
|
+
var i3;
|
|
1884
|
+
const { id: a3, skin: n3 = "RectangleArea", className: l2, containerRootClassName: h = "", customClassNames: g = [], containerProps: m, children: p2, fillLayers: T2 = e3.fillLayers || e3.background, tagName: _2, getPlaceholder: I2, dividers: E2, semanticClassNames: L2, onStop: b2, onClick: A2, onDblClick: w2, onMouseEnter: y2, onMouseLeave: v2, lang: M2, translations: O2, isPlayPauseSectionExperimentOn: S2, isBuilder: R2 } = e3, C2 = _2 || "section", { shouldOmitWrapperLayers: G2 } = m, F2 = (0, c.Z)(Kt.Z[n3], h, l2, L2 ? d(L2.root, ...g) : d(Jt.root, ...g), { [Kt.Z.shouldOmitWrapperLayers]: G2 }), N2 = !(null == T2 || !T2.video), P2 = function(e4, t4, i4) {
|
|
1885
|
+
const a4 = s().useRef(null), n4 = s().useRef(null);
|
|
1886
|
+
return t4 ? n4.current || (n4.current = { play: () => a4.current?.play(), load: () => a4.current?.load(), pause: () => a4.current?.pause(), stop: () => {
|
|
1887
|
+
a4.current && (a4.current.pause(), a4.current.currentTime = 0, i4 && i4(a4.current));
|
|
1888
|
+
} }) : n4.current = null, s().useImperativeHandle(e4, () => n4.current || { load() {
|
|
1889
|
+
}, stop() {
|
|
1890
|
+
} }), a4;
|
|
1891
|
+
}(t3, N2, b2), [x2, k2] = o.useState(!(null != P2 && null != (i3 = P2.current) && i3.paused));
|
|
1892
|
+
return o.createElement(C2, r()({ id: a3 }, (0, u.P5)(e3), ((e4 = {}) => {
|
|
1893
|
+
const t4 = e4.tabIndex ?? e4.tabindex ?? void 0;
|
|
1894
|
+
return void 0 !== t4 ? { tabIndex: Number(t4) } : {};
|
|
1895
|
+
})(e3.a11y || { tabIndex: -1 }), (H2 = e3.a11y, H2?.label ? { "aria-label": H2.label } : {}), { "data-block-level-container": "Section", className: F2 + " " + Kt.Z.section, "data-testid": f, onClick: A2, onDoubleClick: w2, onMouseEnter: y2, onMouseLeave: v2, lang: M2 }), T2 && !R2 && o.createElement(zt, r()({}, T2, { videoRef: P2, getPlaceholder: I2 })), N2 && S2 && !R2 && o.createElement("button", { className: "" + Kt.Z.videoPlayPauseButton, onClick: () => {
|
|
1896
|
+
const e4 = null == P2 ? void 0 : P2.current;
|
|
1897
|
+
e4 && (e4.paused ? e4.play() : e4.pause(), k2((t4) => {
|
|
1898
|
+
const i4 = !t4, n4 = document.getElementById(a3);
|
|
1899
|
+
if (n4) {
|
|
1900
|
+
n4.querySelectorAll("video").forEach((t5) => {
|
|
1901
|
+
t5 !== e4 && (i4 ? t5.play() : t5.pause());
|
|
1902
|
+
});
|
|
1903
|
+
}
|
|
1904
|
+
return i4;
|
|
1905
|
+
}));
|
|
1906
|
+
}, "aria-pressed": x2, "aria-label": null == O2 ? void 0 : O2.ariaLabel }, x2 ? o.createElement(Qt, null) : o.createElement(ti, null)), E2 && !R2 && o.createElement(qt, E2), p2());
|
|
1907
|
+
var H2;
|
|
1908
|
+
};
|
|
1909
|
+
var ai = o.forwardRef(ii);
|
|
1910
|
+
}, cy2i: function(e2, t2, i2) {
|
|
1911
|
+
var a2;
|
|
1912
|
+
!function(t3) {
|
|
1913
|
+
var n2 = function() {
|
|
1914
|
+
}, r = t3.requestAnimationFrame || t3.webkitRequestAnimationFrame || t3.mozRequestAnimationFrame || t3.msRequestAnimationFrame || function(e3) {
|
|
1915
|
+
return setTimeout(e3, 16);
|
|
1916
|
+
};
|
|
1917
|
+
function o() {
|
|
1918
|
+
var e3 = this;
|
|
1919
|
+
e3.reads = [], e3.writes = [], e3.raf = r.bind(t3);
|
|
1920
|
+
}
|
|
1921
|
+
function s(e3) {
|
|
1922
|
+
e3.scheduled || (e3.scheduled = true, e3.raf(c.bind(null, e3)), n2());
|
|
1923
|
+
}
|
|
1924
|
+
function c(e3) {
|
|
1925
|
+
var t4, i3 = e3.writes, a3 = e3.reads;
|
|
1926
|
+
try {
|
|
1927
|
+
n2("flushing reads", a3.length), e3.runTasks(a3), n2("flushing writes", i3.length), e3.runTasks(i3);
|
|
1928
|
+
} catch (e4) {
|
|
1929
|
+
t4 = e4;
|
|
1930
|
+
}
|
|
1931
|
+
if (e3.scheduled = false, (a3.length || i3.length) && s(e3), t4) {
|
|
1932
|
+
if (n2("task errored", t4.message), !e3.catch) throw t4;
|
|
1933
|
+
e3.catch(t4);
|
|
1934
|
+
}
|
|
1935
|
+
}
|
|
1936
|
+
function l(e3, t4) {
|
|
1937
|
+
var i3 = e3.indexOf(t4);
|
|
1938
|
+
return !!~i3 && !!e3.splice(i3, 1);
|
|
1939
|
+
}
|
|
1940
|
+
o.prototype = { constructor: o, runTasks: function(e3) {
|
|
1941
|
+
var t4;
|
|
1942
|
+
for (n2(); t4 = e3.shift(); ) t4();
|
|
1943
|
+
}, measure: function(e3, t4) {
|
|
1944
|
+
var i3 = t4 ? e3.bind(t4) : e3;
|
|
1945
|
+
return this.reads.push(i3), s(this), i3;
|
|
1946
|
+
}, mutate: function(e3, t4) {
|
|
1947
|
+
var i3 = t4 ? e3.bind(t4) : e3;
|
|
1948
|
+
return this.writes.push(i3), s(this), i3;
|
|
1949
|
+
}, clear: function(e3) {
|
|
1950
|
+
return l(this.reads, e3) || l(this.writes, e3);
|
|
1951
|
+
}, extend: function(e3) {
|
|
1952
|
+
if ("object" != typeof e3) throw new Error("expected object");
|
|
1953
|
+
var t4 = Object.create(this);
|
|
1954
|
+
return function(e4, t5) {
|
|
1955
|
+
for (var i3 in t5) t5.hasOwnProperty(i3) && (e4[i3] = t5[i3]);
|
|
1956
|
+
}(t4, e3), t4.fastdom = this, t4.initialize && t4.initialize(), t4;
|
|
1957
|
+
}, catch: null };
|
|
1958
|
+
var d = t3.fastdom = t3.fastdom || new o();
|
|
1959
|
+
void 0 === (a2 = function() {
|
|
1960
|
+
return d;
|
|
1961
|
+
}.call(d, i2, d, e2)) || (e2.exports = a2);
|
|
1962
|
+
}("undefined" != typeof window ? window : void 0 !== this ? this : globalThis);
|
|
1963
|
+
}, p1x1: function(e2, t2) {
|
|
1964
|
+
t2.Z = { "bg-underlay": "LWbAav", bgUnderlay: "LWbAav", "layers-container": "MW5IWV", layersContainer: "MW5IWV", animate: "V7OeEw", headerSectionAddVisibilityTransition: "MDGLoD", move: "BHIo43", fade: "UvF1nu", scrollUp: "YzrQFb", RectangleArea: "xuzjBY", rectangleArea: "xuzjBY", DefaultAreaSkin: "O7Ybkb", defaultAreaSkin: "O7Ybkb", "full-screen-scroll-effect": "GeNLDt", fullScreenScrollEffect: "GeNLDt", "fill-layer": "K8pHFh", fillLayer: "K8pHFh", "image-fill-layer": "TaweqS", imageFillLayer: "TaweqS", "bg-media": "yzHyNT", bgMedia: "yzHyNT", videoFillLayer: "zBFCpO", "alpha-canvas": "xjgrS3", alphaCanvas: "xjgrS3", "media-padding-layer": "b3zSS0", mediaPaddingLayer: "b3zSS0", transforms: "Wsv3ak", "media-canvas": "IiJMfn", mediaCanvas: "IiJMfn", RectangleAreaAfterScroll: "KJgt14", rectangleAreaAfterScroll: "KJgt14", scrolled: "VTwcX7", section: "Gzsk0j", "video-play-pause-button": "MdLl0h", videoPlayPauseButton: "MdLl0h", childrenContainer: "Gmmci1" };
|
|
1965
|
+
}, guqK: function(e2, t2, i2) {
|
|
1966
|
+
i2.d(t2, { P5: function() {
|
|
1967
|
+
return n2;
|
|
1968
|
+
}, jU: function() {
|
|
1969
|
+
return a2;
|
|
1970
|
+
} });
|
|
1971
|
+
const a2 = () => "undefined" != typeof window, n2 = (e3) => Object.entries(e3).reduce((e4, [t3, i3]) => (t3.includes("data-") && (e4[t3] = i3), e4), {});
|
|
1972
|
+
}, "Xdf/": function(t2) {
|
|
1973
|
+
t2.exports = e;
|
|
1974
|
+
}, Fe5V: function(e2) {
|
|
1975
|
+
function t2() {
|
|
1976
|
+
return e2.exports = t2 = Object.assign ? Object.assign.bind() : function(e3) {
|
|
1977
|
+
for (var t3 = 1; t3 < arguments.length; t3++) {
|
|
1978
|
+
var i2 = arguments[t3];
|
|
1979
|
+
for (var a2 in i2) ({}).hasOwnProperty.call(i2, a2) && (e3[a2] = i2[a2]);
|
|
1980
|
+
}
|
|
1981
|
+
return e3;
|
|
1982
|
+
}, e2.exports.__esModule = true, e2.exports.default = e2.exports, t2.apply(null, arguments);
|
|
1983
|
+
}
|
|
1984
|
+
e2.exports = t2, e2.exports.__esModule = true, e2.exports.default = e2.exports;
|
|
1985
|
+
}, MRkx: function(e2, t2, i2) {
|
|
1986
|
+
function a2(e3) {
|
|
1987
|
+
var t3, i3, n2 = "";
|
|
1988
|
+
if ("string" == typeof e3 || "number" == typeof e3) n2 += e3;
|
|
1989
|
+
else if ("object" == typeof e3) if (Array.isArray(e3)) for (t3 = 0; t3 < e3.length; t3++) e3[t3] && (i3 = a2(e3[t3])) && (n2 && (n2 += " "), n2 += i3);
|
|
1990
|
+
else for (t3 in e3) e3[t3] && (n2 && (n2 += " "), n2 += t3);
|
|
1991
|
+
return n2;
|
|
1992
|
+
}
|
|
1993
|
+
t2.Z = function() {
|
|
1994
|
+
for (var e3, t3, i3 = 0, n2 = ""; i3 < arguments.length; ) (e3 = arguments[i3++]) && (t3 = a2(e3)) && (n2 && (n2 += " "), n2 += t3);
|
|
1995
|
+
return n2;
|
|
1996
|
+
};
|
|
1997
|
+
} }, i = {};
|
|
1998
|
+
function a(e2) {
|
|
1999
|
+
var n2 = i[e2];
|
|
2000
|
+
if (void 0 !== n2) return n2.exports;
|
|
2001
|
+
var r = i[e2] = { exports: {} };
|
|
2002
|
+
return t[e2].call(r.exports, r, r.exports, a), r.exports;
|
|
2003
|
+
}
|
|
2004
|
+
a.n = function(e2) {
|
|
2005
|
+
var t2 = e2 && e2.__esModule ? function() {
|
|
2006
|
+
return e2.default;
|
|
2007
|
+
} : function() {
|
|
2008
|
+
return e2;
|
|
2009
|
+
};
|
|
2010
|
+
return a.d(t2, { a: t2 }), t2;
|
|
2011
|
+
}, a.d = function(e2, t2) {
|
|
2012
|
+
for (var i2 in t2) a.o(t2, i2) && !a.o(e2, i2) && Object.defineProperty(e2, i2, { enumerable: true, get: t2[i2] });
|
|
2013
|
+
}, a.o = function(e2, t2) {
|
|
2014
|
+
return Object.prototype.hasOwnProperty.call(e2, t2);
|
|
2015
|
+
}, a.r = function(e2) {
|
|
2016
|
+
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e2, "__esModule", { value: true });
|
|
2017
|
+
};
|
|
2018
|
+
var n = {};
|
|
2019
|
+
return function() {
|
|
2020
|
+
a.r(n), a.d(n, { default: function() {
|
|
2021
|
+
return _;
|
|
2022
|
+
} });
|
|
2023
|
+
var e2 = a("Fe5V"), t2 = a.n(e2), i2 = a("Xdf/"), r = a.n(i2), o = a("MRkx"), s = a("iCIt"), c = a("cy2i"), l = a.n(c), d = a("guqK");
|
|
2024
|
+
function u() {
|
|
2025
|
+
if (!(0, d.jU)()) return { x: 0, y: 0, isAtPageBottom: false };
|
|
2026
|
+
const { left: e3, top: t3 } = document.body.getBoundingClientRect();
|
|
2027
|
+
return { x: e3, y: t3, isAtPageBottom: window.innerHeight + window.scrollY === document.body.scrollHeight };
|
|
2028
|
+
}
|
|
2029
|
+
function h(e3, t3, a2) {
|
|
2030
|
+
void 0 === a2 && (a2 = {}), a2 = { waitFor: 100, disabled: false, ...a2 };
|
|
2031
|
+
const n2 = (0, i2.useRef)(u());
|
|
2032
|
+
let r2 = null;
|
|
2033
|
+
const o2 = () => {
|
|
2034
|
+
l().measure(() => {
|
|
2035
|
+
const t4 = u(), i3 = n2.current;
|
|
2036
|
+
n2.current = t4, r2 = null, l().mutate(() => e3({ prevPos: i3, currPos: t4 }));
|
|
2037
|
+
});
|
|
2038
|
+
};
|
|
2039
|
+
((0, d.jU)() ? i2.useLayoutEffect : i2.useEffect)(() => {
|
|
2040
|
+
if (!(0, d.jU)()) return;
|
|
2041
|
+
const e4 = () => {
|
|
2042
|
+
null === r2 && (r2 = window.setTimeout(o2, a2.waitFor));
|
|
2043
|
+
};
|
|
2044
|
+
return a2.disabled ? () => {
|
|
2045
|
+
} : (window.addEventListener("scroll", e4), () => {
|
|
2046
|
+
window.removeEventListener("scroll", e4), r2 && window.clearTimeout(r2);
|
|
2047
|
+
});
|
|
2048
|
+
}, t3);
|
|
2049
|
+
}
|
|
2050
|
+
var g = a("p1x1");
|
|
2051
|
+
var m = { root: "header" }, f = "PgbBOL", p = "mBJHfd";
|
|
2052
|
+
var T = (e3) => {
|
|
2053
|
+
const i3 = "scrolled-down" === e3.animationState && "fade" === e3.animate;
|
|
2054
|
+
return r().createElement("div", { id: "header-section-wrapper_" + e3.id, className: (0, o.Z)(p, e3.className, { [g.Z.animate]: "none" !== e3.animate, [g.Z.move]: "scrolled-down" === e3.animationState && "move" === e3.animate, [g.Z.fade]: i3, [g.Z.headerSectionAddVisibilityTransition]: i3 && e3.isHeaderSectionAddVisibilityTransitionEnabled, [g.Z.scrollUp]: "scrolled-up" === e3.animationState, [g.Z.scrolled]: e3.scrolled }) }, r().createElement(s.default, t2()({}, e3, { semanticClassNames: m, className: (0, o.Z)(e3.className, { [g.Z[e3.skin]]: true }) })));
|
|
2055
|
+
};
|
|
2056
|
+
var _ = (e3) => {
|
|
2057
|
+
const [a2, n2] = r().useState(false);
|
|
2058
|
+
h((e4) => {
|
|
2059
|
+
let { currPos: t3 } = e4;
|
|
2060
|
+
-1 * t3.y >= 2 ? a2 || n2(true) : a2 && n2(false);
|
|
2061
|
+
}, [a2], { disabled: "RectangleAreaAfterScroll" !== e3.skin });
|
|
2062
|
+
const [c2, l2] = (0, i2.useState)("");
|
|
2063
|
+
if (h(/* @__PURE__ */ ((e4, t3) => {
|
|
2064
|
+
let i3 = 0, a3 = "DOWN";
|
|
2065
|
+
return (n3) => {
|
|
2066
|
+
let { prevPos: r2, currPos: o2 } = n3;
|
|
2067
|
+
const s2 = -1 * o2.y, c3 = -1 * r2.y;
|
|
2068
|
+
s2 >= c3 ? ("UP" === a3 && (i3 = c3, a3 = "DOWN"), s2 - i3 > /* @__PURE__ */ ((e5) => "move" === e5 ? 400 : 200)(e4) && t3("scrolled-down")) : ("DOWN" === a3 && (i3 = c3, a3 = "UP"), (i3 - s2 > 100 || s2 <= 10) && t3("scrolled-up"));
|
|
2069
|
+
};
|
|
2070
|
+
})(e3.animate, l2), [], { waitFor: 45, disabled: "none" === e3.animate }), e3.isBuilder && !e3.isHeaderUseMarginsEnabled) return r().createElement(T, t2()({}, e3, { animationState: c2, scrolled: a2 }));
|
|
2071
|
+
const d2 = "scrolled-down" === c2 && "fade" === e3.animate;
|
|
2072
|
+
return r().createElement(s.default, t2()({}, e3, { semanticClassNames: m, className: (0, o.Z)(e3.className, { [g.Z[e3.skin]]: true, [g.Z.scrolled]: a2, [g.Z.animate]: "none" !== e3.animate, [g.Z.move]: "scrolled-down" === c2 && "move" === e3.animate, [g.Z.fade]: d2, [g.Z.headerSectionAddVisibilityTransition]: d2 && e3.isHeaderSectionAddVisibilityTransitionEnabled, [g.Z.scrollUp]: "scrolled-up" === c2, [f]: e3.isHeaderUseMarginsEnabled && e3.isBuilder }) }));
|
|
2073
|
+
};
|
|
2074
|
+
}(), n;
|
|
2075
|
+
}();
|
|
2076
|
+
});
|
|
2077
|
+
})(HeaderSection_bundle_min$1);
|
|
2078
|
+
var HeaderSection_bundle_minExports$1 = HeaderSection_bundle_min$1.exports;
|
|
2079
|
+
const Component$5 = /* @__PURE__ */ getDefaultExportFromCjs(HeaderSection_bundle_minExports$1);
|
|
2080
|
+
var HeaderSection_bundle_min = { exports: {} };
|
|
2081
|
+
(function(module2, exports$1) {
|
|
2082
|
+
!function(e, t) {
|
|
2083
|
+
module2.exports = t();
|
|
2084
|
+
}("undefined" != typeof self ? self : commonjsGlobal, function() {
|
|
2085
|
+
return function() {
|
|
2086
|
+
var e = { d: function(t2, r2) {
|
|
2087
|
+
for (var o2 in r2) e.o(r2, o2) && !e.o(t2, o2) && Object.defineProperty(t2, o2, { enumerable: true, get: r2[o2] });
|
|
2088
|
+
}, o: function(e2, t2) {
|
|
2089
|
+
return Object.prototype.hasOwnProperty.call(e2, t2);
|
|
2090
|
+
}, r: function(e2) {
|
|
2091
|
+
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e2, "__esModule", { value: true });
|
|
2092
|
+
} }, t = {};
|
|
2093
|
+
e.r(t), e.d(t, { default: function() {
|
|
2094
|
+
return d;
|
|
2095
|
+
} });
|
|
2096
|
+
const r = (e2) => e2.replace(/([A-Z])/g, (e3) => `-${e3.toLowerCase()}`), o = (e2 = {}, t2) => true === e2[t2] || "true" === e2[t2] || "new" === e2[t2], n = "specs.thunderbolt.HeaderSectionAddVisibilityTransition", i = "specs.thunderbolt.headerUseMargins";
|
|
2097
|
+
var s, d = (s = (e2) => {
|
|
2098
|
+
let { mapperProps: t2, stateValues: r2 } = e2;
|
|
2099
|
+
const { experiments: s2 = {} } = r2;
|
|
2100
|
+
return { ...t2, isHeaderUseMarginsEnabled: o(s2, i), isHeaderSectionAddVisibilityTransitionEnabled: o(s2, n) };
|
|
2101
|
+
}, { useComponentProps: (e2, t2, o2) => {
|
|
2102
|
+
const n2 = ((e3) => ({ ...e3, updateStyles: (t3) => {
|
|
2103
|
+
const o3 = Object.entries(t3).reduce((e4, [t4, o4]) => {
|
|
2104
|
+
return { ...e4, [(n3 = t4, n3.startsWith("--") ? t4 : r(t4))]: void 0 === o4 ? null : o4 };
|
|
2105
|
+
var n3;
|
|
2106
|
+
}, {});
|
|
2107
|
+
e3.updateStyles(o3);
|
|
2108
|
+
} }))(o2);
|
|
2109
|
+
return s({ mapperProps: e2, stateValues: t2, controllerUtils: n2 });
|
|
2110
|
+
} });
|
|
2111
|
+
return t;
|
|
2112
|
+
}();
|
|
2113
|
+
});
|
|
2114
|
+
})(HeaderSection_bundle_min);
|
|
2115
|
+
var HeaderSection_bundle_minExports = HeaderSection_bundle_min.exports;
|
|
2116
|
+
const controller$2 = /* @__PURE__ */ getDefaultExportFromCjs(HeaderSection_bundle_minExports);
|
|
2117
|
+
const HeaderSection = withNormalChildren(withController(Component$5, controller$2));
|
|
2118
|
+
var Page_bundle_min$1 = { exports: {} };
|
|
2119
|
+
(function(module2, exports$1) {
|
|
2120
|
+
!function(e, t) {
|
|
2121
|
+
module2.exports = t(require$$0);
|
|
2122
|
+
}("undefined" != typeof self ? self : commonjsGlobal, function(e) {
|
|
2123
|
+
return function() {
|
|
2124
|
+
var t = { QRCH: function(e2, t2, n2) {
|
|
2125
|
+
n2.d(t2, { default: function() {
|
|
2126
|
+
return s;
|
|
2127
|
+
} });
|
|
2128
|
+
var r2 = n2("Fe5V"), o2 = n2.n(r2), a = n2("Xdf/");
|
|
2129
|
+
var s = (e3) => {
|
|
2130
|
+
const { id: t3, className: n3, customClassNames: r3 = [], skin: s2, pageDidMount: i, onClick: u = () => {
|
|
2131
|
+
}, onDblClick: c = () => {
|
|
2132
|
+
}, onMouseEnter: l, onMouseLeave: f, children: d } = e3;
|
|
2133
|
+
return a.createElement(s2, o2()({ id: t3, className: n3, customClassNames: r3 }, ((e4) => Object.entries(e4).reduce((e5, [t4, n4]) => (t4.includes("data-") && (e5[t4] = n4), e5), {}))(e3), { pageDidMount: i, onClick: u, onDblClick: c, onMouseEnter: l, onMouseLeave: f }), d);
|
|
2134
|
+
};
|
|
2135
|
+
}, "Xdf/": function(t2) {
|
|
2136
|
+
t2.exports = e;
|
|
2137
|
+
}, Fe5V: function(e2) {
|
|
2138
|
+
function t2() {
|
|
2139
|
+
return e2.exports = t2 = Object.assign ? Object.assign.bind() : function(e3) {
|
|
2140
|
+
for (var t3 = 1; t3 < arguments.length; t3++) {
|
|
2141
|
+
var n2 = arguments[t3];
|
|
2142
|
+
for (var r2 in n2) ({}).hasOwnProperty.call(n2, r2) && (e3[r2] = n2[r2]);
|
|
2143
|
+
}
|
|
2144
|
+
return e3;
|
|
2145
|
+
}, e2.exports.__esModule = true, e2.exports.default = e2.exports, t2.apply(null, arguments);
|
|
2146
|
+
}
|
|
2147
|
+
e2.exports = t2, e2.exports.__esModule = true, e2.exports.default = e2.exports;
|
|
2148
|
+
} }, n = {};
|
|
2149
|
+
function r(e2) {
|
|
2150
|
+
var o2 = n[e2];
|
|
2151
|
+
if (void 0 !== o2) return o2.exports;
|
|
2152
|
+
var a = n[e2] = { exports: {} };
|
|
2153
|
+
return t[e2](a, a.exports, r), a.exports;
|
|
2154
|
+
}
|
|
2155
|
+
r.n = function(e2) {
|
|
2156
|
+
var t2 = e2 && e2.__esModule ? function() {
|
|
2157
|
+
return e2.default;
|
|
2158
|
+
} : function() {
|
|
2159
|
+
return e2;
|
|
2160
|
+
};
|
|
2161
|
+
return r.d(t2, { a: t2 }), t2;
|
|
2162
|
+
}, r.d = function(e2, t2) {
|
|
2163
|
+
for (var n2 in t2) r.o(t2, n2) && !r.o(e2, n2) && Object.defineProperty(e2, n2, { enumerable: true, get: t2[n2] });
|
|
2164
|
+
}, r.o = function(e2, t2) {
|
|
2165
|
+
return Object.prototype.hasOwnProperty.call(e2, t2);
|
|
2166
|
+
}, r.r = function(e2) {
|
|
2167
|
+
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e2, "__esModule", { value: true });
|
|
2168
|
+
};
|
|
2169
|
+
var o = {};
|
|
2170
|
+
return function() {
|
|
2171
|
+
r.r(o), r.d(o, { default: function() {
|
|
2172
|
+
return b;
|
|
2173
|
+
} });
|
|
2174
|
+
var e2 = r("Fe5V"), t2 = r.n(e2), n2 = r("Xdf/"), a = r.n(n2), s = r("QRCH"), i = { bg: "c7cMWz", inlineContent: "FVGvCX", pageWrapper: "zK7MhX", root: "fEm0Bo" };
|
|
2175
|
+
function u(e3) {
|
|
2176
|
+
var t3, n3, r2 = "";
|
|
2177
|
+
if ("string" == typeof e3 || "number" == typeof e3) r2 += e3;
|
|
2178
|
+
else if ("object" == typeof e3) if (Array.isArray(e3)) for (t3 = 0; t3 < e3.length; t3++) e3[t3] && (n3 = u(e3[t3])) && (r2 && (r2 += " "), r2 += n3);
|
|
2179
|
+
else for (t3 in e3) e3[t3] && (r2 && (r2 += " "), r2 += t3);
|
|
2180
|
+
return r2;
|
|
2181
|
+
}
|
|
2182
|
+
var c = function() {
|
|
2183
|
+
for (var e3, t3, n3 = 0, r2 = ""; n3 < arguments.length; ) (e3 = arguments[n3++]) && (t3 = u(e3)) && (r2 && (r2 += " "), r2 += t3);
|
|
2184
|
+
return r2;
|
|
2185
|
+
};
|
|
2186
|
+
const l = "wixui-", f = (e3, ...t3) => {
|
|
2187
|
+
const n3 = [];
|
|
2188
|
+
return n3.push(`${l}${e3}`), t3.forEach((e4) => {
|
|
2189
|
+
e4 && (n3.push(`${l}${e4}`), n3.push(e4));
|
|
2190
|
+
}), n3.join(" ");
|
|
2191
|
+
}, d = "page-bg";
|
|
2192
|
+
var p = { root: "page" };
|
|
2193
|
+
var g = (e3) => {
|
|
2194
|
+
let { id: t3, className: n3, customClassNames: r2 = [], pageDidMount: o2, onClick: s2, onDblClick: i2, children: u2, skinsStyle: l2, onMouseEnter: g2, onMouseLeave: v2 } = e3;
|
|
2195
|
+
const b2 = c(l2.root, l2.pageWrapper, n3);
|
|
2196
|
+
return a().createElement("div", { id: t3, className: b2, ref: o2, onClick: s2, onDoubleClick: i2, onMouseEnter: g2, onMouseLeave: v2 }, a().createElement("div", { className: c(l2.bg, f(p.root, ...r2)), "data-testid": d }), a().createElement("div", { className: l2.inlineContent }, u2()));
|
|
2197
|
+
};
|
|
2198
|
+
const v = (e3) => a().createElement(g, t2()({}, e3, { skinsStyle: i }));
|
|
2199
|
+
var b = (e3) => a().createElement(s.default, t2()({}, e3, { skin: v }));
|
|
2200
|
+
}(), o;
|
|
2201
|
+
}();
|
|
2202
|
+
});
|
|
2203
|
+
})(Page_bundle_min$1);
|
|
2204
|
+
var Page_bundle_minExports$1 = Page_bundle_min$1.exports;
|
|
2205
|
+
const BasicPageSkin = /* @__PURE__ */ getDefaultExportFromCjs(Page_bundle_minExports$1);
|
|
2206
|
+
const Page_BasicPageSkin = withNormalChildren(BasicPageSkin);
|
|
2207
|
+
var Page_bundle_min = { exports: {} };
|
|
2208
|
+
(function(module2, exports$1) {
|
|
2209
|
+
!function(e, t) {
|
|
2210
|
+
module2.exports = t(require$$0);
|
|
2211
|
+
}("undefined" != typeof self ? self : commonjsGlobal, function(e) {
|
|
2212
|
+
return function() {
|
|
2213
|
+
var t = { "Xdf/": function(t2) {
|
|
2214
|
+
t2.exports = e;
|
|
2215
|
+
} }, o = {};
|
|
2216
|
+
function n(e2) {
|
|
2217
|
+
var r2 = o[e2];
|
|
2218
|
+
if (void 0 !== r2) return r2.exports;
|
|
2219
|
+
var i = o[e2] = { exports: {} };
|
|
2220
|
+
return t[e2](i, i.exports, n), i.exports;
|
|
2221
|
+
}
|
|
2222
|
+
n.n = function(e2) {
|
|
2223
|
+
var t2 = e2 && e2.__esModule ? function() {
|
|
2224
|
+
return e2.default;
|
|
2225
|
+
} : function() {
|
|
2226
|
+
return e2;
|
|
2227
|
+
};
|
|
2228
|
+
return n.d(t2, { a: t2 }), t2;
|
|
2229
|
+
}, n.d = function(e2, t2) {
|
|
2230
|
+
for (var o2 in t2) n.o(t2, o2) && !n.o(e2, o2) && Object.defineProperty(e2, o2, { enumerable: true, get: t2[o2] });
|
|
2231
|
+
}, n.o = function(e2, t2) {
|
|
2232
|
+
return Object.prototype.hasOwnProperty.call(e2, t2);
|
|
2233
|
+
}, n.r = function(e2) {
|
|
2234
|
+
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e2, "__esModule", { value: true });
|
|
2235
|
+
};
|
|
2236
|
+
var r = {};
|
|
2237
|
+
return function() {
|
|
2238
|
+
function e2(t3) {
|
|
2239
|
+
var o3, n2, r2 = "";
|
|
2240
|
+
if ("string" == typeof t3 || "number" == typeof t3) r2 += t3;
|
|
2241
|
+
else if ("object" == typeof t3) if (Array.isArray(t3)) for (o3 = 0; o3 < t3.length; o3++) t3[o3] && (n2 = e2(t3[o3])) && (r2 && (r2 += " "), r2 += n2);
|
|
2242
|
+
else for (o3 in t3) t3[o3] && (r2 && (r2 += " "), r2 += o3);
|
|
2243
|
+
return r2;
|
|
2244
|
+
}
|
|
2245
|
+
n.r(r), n.d(r, { default: function() {
|
|
2246
|
+
return d;
|
|
2247
|
+
} });
|
|
2248
|
+
var t2 = function() {
|
|
2249
|
+
for (var t3, o3, n2 = 0, r2 = ""; n2 < arguments.length; ) (t3 = arguments[n2++]) && (o3 = e2(t3)) && (r2 && (r2 += " "), r2 += o3);
|
|
2250
|
+
return r2;
|
|
2251
|
+
}, o2 = n("Xdf/"), i = n.n(o2);
|
|
2252
|
+
const u = "wixui-", a = (e3, ...t3) => {
|
|
2253
|
+
const o3 = [];
|
|
2254
|
+
return o3.push(`${u}${e3}`), t3.forEach((e4) => {
|
|
2255
|
+
e4 && (o3.push(`${u}${e4}`), o3.push(e4));
|
|
2256
|
+
}), o3.join(" ");
|
|
2257
|
+
}, s = "page-bg";
|
|
2258
|
+
var f = { root: "page" }, c = "P0dCOY", l = "PJ4KCX";
|
|
2259
|
+
var d = (e3) => {
|
|
2260
|
+
let { id: o3, className: n2, customClassNames: r2 = [], pageDidMount: u2, onClick: d2, onDblClick: p, children: v, onMouseEnter: g, onMouseLeave: b } = e3;
|
|
2261
|
+
return i().createElement("div", { id: o3, className: t2(c, n2), ref: u2, onClick: d2, onDoubleClick: p, onMouseEnter: g, onMouseLeave: b }, i().createElement("div", { className: t2(l, a(f.root, ...r2)), "data-testid": s }), i().createElement("div", null, v()));
|
|
2262
|
+
};
|
|
2263
|
+
}(), r;
|
|
2264
|
+
}();
|
|
2265
|
+
});
|
|
2266
|
+
})(Page_bundle_min);
|
|
2267
|
+
var Page_bundle_minExports = Page_bundle_min.exports;
|
|
2268
|
+
const ResponsivePageWithColorBG = /* @__PURE__ */ getDefaultExportFromCjs(Page_bundle_minExports);
|
|
2269
|
+
const Page_ResponsivePageWithColorBG = withNormalChildren(ResponsivePageWithColorBG);
|
|
2270
|
+
var PageGroup_bundle_min = { exports: {} };
|
|
2271
|
+
(function(module2, exports$1) {
|
|
2272
|
+
!function(e, t) {
|
|
2273
|
+
module2.exports = t(require$$0, require$$1);
|
|
2274
|
+
}("undefined" != typeof self ? self : commonjsGlobal, function(e, t) {
|
|
2275
|
+
return function() {
|
|
2276
|
+
var n = { "Xdf/": function(t2) {
|
|
2277
|
+
t2.exports = e;
|
|
2278
|
+
}, NUjG: function(e2) {
|
|
2279
|
+
e2.exports = t;
|
|
2280
|
+
}, Fe5V: function(e2) {
|
|
2281
|
+
function t2() {
|
|
2282
|
+
return e2.exports = t2 = Object.assign ? Object.assign.bind() : function(e3) {
|
|
2283
|
+
for (var t3 = 1; t3 < arguments.length; t3++) {
|
|
2284
|
+
var n2 = arguments[t3];
|
|
2285
|
+
for (var r2 in n2) ({}).hasOwnProperty.call(n2, r2) && (e3[r2] = n2[r2]);
|
|
2286
|
+
}
|
|
2287
|
+
return e3;
|
|
2288
|
+
}, e2.exports.__esModule = true, e2.exports.default = e2.exports, t2.apply(null, arguments);
|
|
2289
|
+
}
|
|
2290
|
+
e2.exports = t2, e2.exports.__esModule = true, e2.exports.default = e2.exports;
|
|
2291
|
+
} }, r = {};
|
|
2292
|
+
function i(e2) {
|
|
2293
|
+
var t2 = r[e2];
|
|
2294
|
+
if (void 0 !== t2) return t2.exports;
|
|
2295
|
+
var o2 = r[e2] = { exports: {} };
|
|
2296
|
+
return n[e2](o2, o2.exports, i), o2.exports;
|
|
2297
|
+
}
|
|
2298
|
+
i.n = function(e2) {
|
|
2299
|
+
var t2 = e2 && e2.__esModule ? function() {
|
|
2300
|
+
return e2.default;
|
|
2301
|
+
} : function() {
|
|
2302
|
+
return e2;
|
|
2303
|
+
};
|
|
2304
|
+
return i.d(t2, { a: t2 }), t2;
|
|
2305
|
+
}, i.d = function(e2, t2) {
|
|
2306
|
+
for (var n2 in t2) i.o(t2, n2) && !i.o(e2, n2) && Object.defineProperty(e2, n2, { enumerable: true, get: t2[n2] });
|
|
2307
|
+
}, i.o = function(e2, t2) {
|
|
2308
|
+
return Object.prototype.hasOwnProperty.call(e2, t2);
|
|
2309
|
+
}, i.r = function(e2) {
|
|
2310
|
+
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e2, "__esModule", { value: true });
|
|
2311
|
+
};
|
|
2312
|
+
var o = {};
|
|
2313
|
+
return function() {
|
|
2314
|
+
i.r(o), i.d(o, { default: function() {
|
|
2315
|
+
return fe;
|
|
2316
|
+
} });
|
|
2317
|
+
var e2 = i("Fe5V"), t2 = i.n(e2), n2 = i("Xdf/"), r2 = i.n(n2);
|
|
2318
|
+
function s(e3) {
|
|
2319
|
+
var t3, n3, r3 = "";
|
|
2320
|
+
if ("string" == typeof e3 || "number" == typeof e3) r3 += e3;
|
|
2321
|
+
else if ("object" == typeof e3) if (Array.isArray(e3)) for (t3 = 0; t3 < e3.length; t3++) e3[t3] && (n3 = s(e3[t3])) && (r3 && (r3 += " "), r3 += n3);
|
|
2322
|
+
else for (t3 in e3) e3[t3] && (r3 && (r3 += " "), r3 += t3);
|
|
2323
|
+
return r3;
|
|
2324
|
+
}
|
|
2325
|
+
var a = function() {
|
|
2326
|
+
for (var e3, t3, n3 = 0, r3 = ""; n3 < arguments.length; ) (e3 = arguments[n3++]) && (t3 = s(e3)) && (r3 && (r3 += " "), r3 += t3);
|
|
2327
|
+
return r3;
|
|
2328
|
+
};
|
|
2329
|
+
const l = (e3) => Object.entries(e3).reduce((e4, [t3, n3]) => (t3.includes("data-") && (e4[t3] = n3), e4), {});
|
|
2330
|
+
function c(e3, t3) {
|
|
2331
|
+
if (null == e3) return {};
|
|
2332
|
+
var n3 = {};
|
|
2333
|
+
for (var r3 in e3) if ({}.hasOwnProperty.call(e3, r3)) {
|
|
2334
|
+
if (-1 !== t3.indexOf(r3)) continue;
|
|
2335
|
+
n3[r3] = e3[r3];
|
|
2336
|
+
}
|
|
2337
|
+
return n3;
|
|
2338
|
+
}
|
|
2339
|
+
function u() {
|
|
2340
|
+
return u = Object.assign ? Object.assign.bind() : function(e3) {
|
|
2341
|
+
for (var t3 = 1; t3 < arguments.length; t3++) {
|
|
2342
|
+
var n3 = arguments[t3];
|
|
2343
|
+
for (var r3 in n3) ({}).hasOwnProperty.call(n3, r3) && (e3[r3] = n3[r3]);
|
|
2344
|
+
}
|
|
2345
|
+
return e3;
|
|
2346
|
+
}, u.apply(null, arguments);
|
|
2347
|
+
}
|
|
2348
|
+
function p(e3, t3) {
|
|
2349
|
+
return p = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e4, t4) {
|
|
2350
|
+
return e4.__proto__ = t4, e4;
|
|
2351
|
+
}, p(e3, t3);
|
|
2352
|
+
}
|
|
2353
|
+
function d(e3, t3) {
|
|
2354
|
+
e3.prototype = Object.create(t3.prototype), e3.prototype.constructor = e3, p(e3, t3);
|
|
2355
|
+
}
|
|
2356
|
+
var f = r2().createContext(null);
|
|
2357
|
+
function h(e3, t3) {
|
|
2358
|
+
var r3 = /* @__PURE__ */ Object.create(null);
|
|
2359
|
+
return e3 && n2.Children.map(e3, function(e4) {
|
|
2360
|
+
return e4;
|
|
2361
|
+
}).forEach(function(e4) {
|
|
2362
|
+
r3[e4.key] = function(e5) {
|
|
2363
|
+
return t3 && (0, n2.isValidElement)(e5) ? t3(e5) : e5;
|
|
2364
|
+
}(e4);
|
|
2365
|
+
}), r3;
|
|
2366
|
+
}
|
|
2367
|
+
function m(e3, t3, n3) {
|
|
2368
|
+
return null != n3[t3] ? n3[t3] : e3.props[t3];
|
|
2369
|
+
}
|
|
2370
|
+
function E(e3, t3, r3) {
|
|
2371
|
+
var i2 = h(e3.children), o2 = function(e4, t4) {
|
|
2372
|
+
function n3(n4) {
|
|
2373
|
+
return n4 in t4 ? t4[n4] : e4[n4];
|
|
2374
|
+
}
|
|
2375
|
+
e4 = e4 || {}, t4 = t4 || {};
|
|
2376
|
+
var r4, i3 = /* @__PURE__ */ Object.create(null), o3 = [];
|
|
2377
|
+
for (var s2 in e4) s2 in t4 ? o3.length && (i3[s2] = o3, o3 = []) : o3.push(s2);
|
|
2378
|
+
var a2 = {};
|
|
2379
|
+
for (var l2 in t4) {
|
|
2380
|
+
if (i3[l2]) for (r4 = 0; r4 < i3[l2].length; r4++) {
|
|
2381
|
+
var c2 = i3[l2][r4];
|
|
2382
|
+
a2[i3[l2][r4]] = n3(c2);
|
|
2383
|
+
}
|
|
2384
|
+
a2[l2] = n3(l2);
|
|
2385
|
+
}
|
|
2386
|
+
for (r4 = 0; r4 < o3.length; r4++) a2[o3[r4]] = n3(o3[r4]);
|
|
2387
|
+
return a2;
|
|
2388
|
+
}(t3, i2);
|
|
2389
|
+
return Object.keys(o2).forEach(function(s2) {
|
|
2390
|
+
var a2 = o2[s2];
|
|
2391
|
+
if ((0, n2.isValidElement)(a2)) {
|
|
2392
|
+
var l2 = s2 in t3, c2 = s2 in i2, u2 = t3[s2], p2 = (0, n2.isValidElement)(u2) && !u2.props.in;
|
|
2393
|
+
!c2 || l2 && !p2 ? c2 || !l2 || p2 ? c2 && l2 && (0, n2.isValidElement)(u2) && (o2[s2] = (0, n2.cloneElement)(a2, { onExited: r3.bind(null, a2), in: u2.props.in, exit: m(a2, "exit", e3), enter: m(a2, "enter", e3) })) : o2[s2] = (0, n2.cloneElement)(a2, { in: false }) : o2[s2] = (0, n2.cloneElement)(a2, { onExited: r3.bind(null, a2), in: true, exit: m(a2, "exit", e3), enter: m(a2, "enter", e3) });
|
|
2394
|
+
}
|
|
2395
|
+
}), o2;
|
|
2396
|
+
}
|
|
2397
|
+
var v = Object.values || function(e3) {
|
|
2398
|
+
return Object.keys(e3).map(function(t3) {
|
|
2399
|
+
return e3[t3];
|
|
2400
|
+
});
|
|
2401
|
+
}, x = function(e3) {
|
|
2402
|
+
function t3(t4, n3) {
|
|
2403
|
+
var r3, i3 = (r3 = e3.call(this, t4, n3) || this).handleExited.bind(function(e4) {
|
|
2404
|
+
if (void 0 === e4) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2405
|
+
return e4;
|
|
2406
|
+
}(r3));
|
|
2407
|
+
return r3.state = { contextValue: { isMounting: true }, handleExited: i3, firstRender: true }, r3;
|
|
2408
|
+
}
|
|
2409
|
+
d(t3, e3);
|
|
2410
|
+
var i2 = t3.prototype;
|
|
2411
|
+
return i2.componentDidMount = function() {
|
|
2412
|
+
this.mounted = true, this.setState({ contextValue: { isMounting: false } });
|
|
2413
|
+
}, i2.componentWillUnmount = function() {
|
|
2414
|
+
this.mounted = false;
|
|
2415
|
+
}, t3.getDerivedStateFromProps = function(e4, t4) {
|
|
2416
|
+
var r3, i3, o2 = t4.children, s2 = t4.handleExited;
|
|
2417
|
+
return { children: t4.firstRender ? (r3 = e4, i3 = s2, h(r3.children, function(e5) {
|
|
2418
|
+
return (0, n2.cloneElement)(e5, { onExited: i3.bind(null, e5), in: true, appear: m(e5, "appear", r3), enter: m(e5, "enter", r3), exit: m(e5, "exit", r3) });
|
|
2419
|
+
})) : E(e4, o2, s2), firstRender: false };
|
|
2420
|
+
}, i2.handleExited = function(e4, t4) {
|
|
2421
|
+
var n3 = h(this.props.children);
|
|
2422
|
+
e4.key in n3 || (e4.props.onExited && e4.props.onExited(t4), this.mounted && this.setState(function(t5) {
|
|
2423
|
+
var n4 = u({}, t5.children);
|
|
2424
|
+
return delete n4[e4.key], { children: n4 };
|
|
2425
|
+
}));
|
|
2426
|
+
}, i2.render = function() {
|
|
2427
|
+
var e4 = this.props, t4 = e4.component, n3 = e4.childFactory, i3 = c(e4, ["component", "childFactory"]), o2 = this.state.contextValue, s2 = v(this.state.children).map(n3);
|
|
2428
|
+
return delete i3.appear, delete i3.enter, delete i3.exit, null === t4 ? r2().createElement(f.Provider, { value: o2 }, s2) : r2().createElement(f.Provider, { value: o2 }, r2().createElement(t4, i3, s2));
|
|
2429
|
+
}, t3;
|
|
2430
|
+
}(r2().Component);
|
|
2431
|
+
x.propTypes = {}, x.defaultProps = { component: "div", childFactory: function(e3) {
|
|
2432
|
+
return e3;
|
|
2433
|
+
} };
|
|
2434
|
+
var g = x;
|
|
2435
|
+
function b(e3, t3) {
|
|
2436
|
+
return e3.replace(new RegExp("(^|\\s)" + t3 + "(?:\\s|$)", "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
|
|
2437
|
+
}
|
|
2438
|
+
var y = i("NUjG"), N = i.n(y), C = false, O = function(e3) {
|
|
2439
|
+
return e3.scrollTop;
|
|
2440
|
+
}, S = "unmounted", A = "exited", T = "entering", j = "entered", P = "exiting", k = function(e3) {
|
|
2441
|
+
function t3(t4, n4) {
|
|
2442
|
+
var r3;
|
|
2443
|
+
r3 = e3.call(this, t4, n4) || this;
|
|
2444
|
+
var i2, o2 = n4 && !n4.isMounting ? t4.enter : t4.appear;
|
|
2445
|
+
return r3.appearStatus = null, t4.in ? o2 ? (i2 = A, r3.appearStatus = T) : i2 = j : i2 = t4.unmountOnExit || t4.mountOnEnter ? S : A, r3.state = { status: i2 }, r3.nextCallback = null, r3;
|
|
2446
|
+
}
|
|
2447
|
+
d(t3, e3), t3.getDerivedStateFromProps = function(e4, t4) {
|
|
2448
|
+
return e4.in && t4.status === S ? { status: A } : null;
|
|
2449
|
+
};
|
|
2450
|
+
var n3 = t3.prototype;
|
|
2451
|
+
return n3.componentDidMount = function() {
|
|
2452
|
+
this.updateStatus(true, this.appearStatus);
|
|
2453
|
+
}, n3.componentDidUpdate = function(e4) {
|
|
2454
|
+
var t4 = null;
|
|
2455
|
+
if (e4 !== this.props) {
|
|
2456
|
+
var n4 = this.state.status;
|
|
2457
|
+
this.props.in ? n4 !== T && n4 !== j && (t4 = T) : n4 !== T && n4 !== j || (t4 = P);
|
|
2458
|
+
}
|
|
2459
|
+
this.updateStatus(false, t4);
|
|
2460
|
+
}, n3.componentWillUnmount = function() {
|
|
2461
|
+
this.cancelNextCallback();
|
|
2462
|
+
}, n3.getTimeouts = function() {
|
|
2463
|
+
var e4, t4, n4, r3 = this.props.timeout;
|
|
2464
|
+
return e4 = t4 = n4 = r3, null != r3 && "number" != typeof r3 && (e4 = r3.exit, t4 = r3.enter, n4 = void 0 !== r3.appear ? r3.appear : t4), { exit: e4, enter: t4, appear: n4 };
|
|
2465
|
+
}, n3.updateStatus = function(e4, t4) {
|
|
2466
|
+
if (void 0 === e4 && (e4 = false), null !== t4) if (this.cancelNextCallback(), t4 === T) {
|
|
2467
|
+
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
2468
|
+
var n4 = this.props.nodeRef ? this.props.nodeRef.current : N().findDOMNode(this);
|
|
2469
|
+
n4 && O(n4);
|
|
2470
|
+
}
|
|
2471
|
+
this.performEnter(e4);
|
|
2472
|
+
} else this.performExit();
|
|
2473
|
+
else this.props.unmountOnExit && this.state.status === A && this.setState({ status: S });
|
|
2474
|
+
}, n3.performEnter = function(e4) {
|
|
2475
|
+
var t4 = this, n4 = this.props.enter, r3 = this.context ? this.context.isMounting : e4, i2 = this.props.nodeRef ? [r3] : [N().findDOMNode(this), r3], o2 = i2[0], s2 = i2[1], a2 = this.getTimeouts(), l2 = r3 ? a2.appear : a2.enter;
|
|
2476
|
+
!e4 && !n4 || C ? this.safeSetState({ status: j }, function() {
|
|
2477
|
+
t4.props.onEntered(o2);
|
|
2478
|
+
}) : (this.props.onEnter(o2, s2), this.safeSetState({ status: T }, function() {
|
|
2479
|
+
t4.props.onEntering(o2, s2), t4.onTransitionEnd(l2, function() {
|
|
2480
|
+
t4.safeSetState({ status: j }, function() {
|
|
2481
|
+
t4.props.onEntered(o2, s2);
|
|
2482
|
+
});
|
|
2483
|
+
});
|
|
2484
|
+
}));
|
|
2485
|
+
}, n3.performExit = function() {
|
|
2486
|
+
var e4 = this, t4 = this.props.exit, n4 = this.getTimeouts(), r3 = this.props.nodeRef ? void 0 : N().findDOMNode(this);
|
|
2487
|
+
t4 && !C ? (this.props.onExit(r3), this.safeSetState({ status: P }, function() {
|
|
2488
|
+
e4.props.onExiting(r3), e4.onTransitionEnd(n4.exit, function() {
|
|
2489
|
+
e4.safeSetState({ status: A }, function() {
|
|
2490
|
+
e4.props.onExited(r3);
|
|
2491
|
+
});
|
|
2492
|
+
});
|
|
2493
|
+
})) : this.safeSetState({ status: A }, function() {
|
|
2494
|
+
e4.props.onExited(r3);
|
|
2495
|
+
});
|
|
2496
|
+
}, n3.cancelNextCallback = function() {
|
|
2497
|
+
null !== this.nextCallback && (this.nextCallback.cancel(), this.nextCallback = null);
|
|
2498
|
+
}, n3.safeSetState = function(e4, t4) {
|
|
2499
|
+
t4 = this.setNextCallback(t4), this.setState(e4, t4);
|
|
2500
|
+
}, n3.setNextCallback = function(e4) {
|
|
2501
|
+
var t4 = this, n4 = true;
|
|
2502
|
+
return this.nextCallback = function(r3) {
|
|
2503
|
+
n4 && (n4 = false, t4.nextCallback = null, e4(r3));
|
|
2504
|
+
}, this.nextCallback.cancel = function() {
|
|
2505
|
+
n4 = false;
|
|
2506
|
+
}, this.nextCallback;
|
|
2507
|
+
}, n3.onTransitionEnd = function(e4, t4) {
|
|
2508
|
+
this.setNextCallback(t4);
|
|
2509
|
+
var n4 = this.props.nodeRef ? this.props.nodeRef.current : N().findDOMNode(this), r3 = null == e4 && !this.props.addEndListener;
|
|
2510
|
+
if (n4 && !r3) {
|
|
2511
|
+
if (this.props.addEndListener) {
|
|
2512
|
+
var i2 = this.props.nodeRef ? [this.nextCallback] : [n4, this.nextCallback], o2 = i2[0], s2 = i2[1];
|
|
2513
|
+
this.props.addEndListener(o2, s2);
|
|
2514
|
+
}
|
|
2515
|
+
null != e4 && setTimeout(this.nextCallback, e4);
|
|
2516
|
+
} else setTimeout(this.nextCallback, 0);
|
|
2517
|
+
}, n3.render = function() {
|
|
2518
|
+
var e4 = this.state.status;
|
|
2519
|
+
if (e4 === S) return null;
|
|
2520
|
+
var t4 = this.props, n4 = t4.children, i2 = (t4.in, t4.mountOnEnter, t4.unmountOnExit, t4.appear, t4.enter, t4.exit, t4.timeout, t4.addEndListener, t4.onEnter, t4.onEntering, t4.onEntered, t4.onExit, t4.onExiting, t4.onExited, t4.nodeRef, c(t4, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]));
|
|
2521
|
+
return r2().createElement(f.Provider, { value: null }, "function" == typeof n4 ? n4(e4, i2) : r2().cloneElement(r2().Children.only(n4), i2));
|
|
2522
|
+
}, t3;
|
|
2523
|
+
}(r2().Component);
|
|
2524
|
+
function R() {
|
|
2525
|
+
}
|
|
2526
|
+
k.contextType = f, k.propTypes = {}, k.defaultProps = { in: false, mountOnEnter: false, unmountOnExit: false, appear: false, enter: true, exit: true, onEnter: R, onEntering: R, onEntered: R, onExit: R, onExiting: R, onExited: R }, k.UNMOUNTED = S, k.EXITED = A, k.ENTERING = T, k.ENTERED = j, k.EXITING = P;
|
|
2527
|
+
var D = k, M = function(e3, t3) {
|
|
2528
|
+
return e3 && t3 && t3.split(" ").forEach(function(t4) {
|
|
2529
|
+
return r3 = t4, void ((n3 = e3).classList ? n3.classList.remove(r3) : "string" == typeof n3.className ? n3.className = b(n3.className, r3) : n3.setAttribute("class", b(n3.className && n3.className.baseVal || "", r3)));
|
|
2530
|
+
var n3, r3;
|
|
2531
|
+
});
|
|
2532
|
+
}, V = function(e3) {
|
|
2533
|
+
function t3() {
|
|
2534
|
+
for (var t4, n4 = arguments.length, r3 = new Array(n4), i2 = 0; i2 < n4; i2++) r3[i2] = arguments[i2];
|
|
2535
|
+
return (t4 = e3.call.apply(e3, [this].concat(r3)) || this).appliedClasses = { appear: {}, enter: {}, exit: {} }, t4.onEnter = function(e4, n5) {
|
|
2536
|
+
var r4 = t4.resolveArguments(e4, n5), i3 = r4[0], o2 = r4[1];
|
|
2537
|
+
t4.removeClasses(i3, "exit"), t4.addClass(i3, o2 ? "appear" : "enter", "base"), t4.props.onEnter && t4.props.onEnter(e4, n5);
|
|
2538
|
+
}, t4.onEntering = function(e4, n5) {
|
|
2539
|
+
var r4 = t4.resolveArguments(e4, n5), i3 = r4[0], o2 = r4[1] ? "appear" : "enter";
|
|
2540
|
+
t4.addClass(i3, o2, "active"), t4.props.onEntering && t4.props.onEntering(e4, n5);
|
|
2541
|
+
}, t4.onEntered = function(e4, n5) {
|
|
2542
|
+
var r4 = t4.resolveArguments(e4, n5), i3 = r4[0], o2 = r4[1] ? "appear" : "enter";
|
|
2543
|
+
t4.removeClasses(i3, o2), t4.addClass(i3, o2, "done"), t4.props.onEntered && t4.props.onEntered(e4, n5);
|
|
2544
|
+
}, t4.onExit = function(e4) {
|
|
2545
|
+
var n5 = t4.resolveArguments(e4)[0];
|
|
2546
|
+
t4.removeClasses(n5, "appear"), t4.removeClasses(n5, "enter"), t4.addClass(n5, "exit", "base"), t4.props.onExit && t4.props.onExit(e4);
|
|
2547
|
+
}, t4.onExiting = function(e4) {
|
|
2548
|
+
var n5 = t4.resolveArguments(e4)[0];
|
|
2549
|
+
t4.addClass(n5, "exit", "active"), t4.props.onExiting && t4.props.onExiting(e4);
|
|
2550
|
+
}, t4.onExited = function(e4) {
|
|
2551
|
+
var n5 = t4.resolveArguments(e4)[0];
|
|
2552
|
+
t4.removeClasses(n5, "exit"), t4.addClass(n5, "exit", "done"), t4.props.onExited && t4.props.onExited(e4);
|
|
2553
|
+
}, t4.resolveArguments = function(e4, n5) {
|
|
2554
|
+
return t4.props.nodeRef ? [t4.props.nodeRef.current, e4] : [e4, n5];
|
|
2555
|
+
}, t4.getClassNames = function(e4) {
|
|
2556
|
+
var n5 = t4.props.classNames, r4 = "string" == typeof n5, i3 = r4 ? (r4 && n5 ? n5 + "-" : "") + e4 : n5[e4];
|
|
2557
|
+
return { baseClassName: i3, activeClassName: r4 ? i3 + "-active" : n5[e4 + "Active"], doneClassName: r4 ? i3 + "-done" : n5[e4 + "Done"] };
|
|
2558
|
+
}, t4;
|
|
2559
|
+
}
|
|
2560
|
+
d(t3, e3);
|
|
2561
|
+
var n3 = t3.prototype;
|
|
2562
|
+
return n3.addClass = function(e4, t4, n4) {
|
|
2563
|
+
var r3 = this.getClassNames(t4)[n4 + "ClassName"], i2 = this.getClassNames("enter").doneClassName;
|
|
2564
|
+
"appear" === t4 && "done" === n4 && i2 && (r3 += " " + i2), "active" === n4 && e4 && O(e4), r3 && (this.appliedClasses[t4][n4] = r3, function(e5, t5) {
|
|
2565
|
+
e5 && t5 && t5.split(" ").forEach(function(t6) {
|
|
2566
|
+
return r4 = t6, void ((n5 = e5).classList ? n5.classList.add(r4) : function(e6, t7) {
|
|
2567
|
+
return e6.classList ? !!t7 && e6.classList.contains(t7) : -1 !== (" " + (e6.className.baseVal || e6.className) + " ").indexOf(" " + t7 + " ");
|
|
2568
|
+
}(n5, r4) || ("string" == typeof n5.className ? n5.className = n5.className + " " + r4 : n5.setAttribute("class", (n5.className && n5.className.baseVal || "") + " " + r4)));
|
|
2569
|
+
var n5, r4;
|
|
2570
|
+
});
|
|
2571
|
+
}(e4, r3));
|
|
2572
|
+
}, n3.removeClasses = function(e4, t4) {
|
|
2573
|
+
var n4 = this.appliedClasses[t4], r3 = n4.base, i2 = n4.active, o2 = n4.done;
|
|
2574
|
+
this.appliedClasses[t4] = {}, r3 && M(e4, r3), i2 && M(e4, i2), o2 && M(e4, o2);
|
|
2575
|
+
}, n3.render = function() {
|
|
2576
|
+
var e4 = this.props, t4 = (e4.classNames, c(e4, ["classNames"]));
|
|
2577
|
+
return r2().createElement(D, u({}, t4, { onEnter: this.onEnter, onEntered: this.onEntered, onEntering: this.onEntering, onExit: this.onExit, onExiting: this.onExiting, onExited: this.onExited }));
|
|
2578
|
+
}, t3;
|
|
2579
|
+
}(r2().Component);
|
|
2580
|
+
V.defaultProps = { classNames: "" }, V.propTypes = {};
|
|
2581
|
+
var _ = V, G = "sNF2R0", w = "hLoBV3", F = "Rdf41z", L = "ftlZWo";
|
|
2582
|
+
var U = "ATGlOr", I = "KQSXD0", X = "pagQKE", q = "_6zG5H";
|
|
2583
|
+
var J = "BB49uC", W = "j9xE1V", z = "ICs7Rs", B = "DxijZJ", H = "B5kjYq", K = "cJijIV", Q = "hOxaWM", Y = "T9p3fN";
|
|
2584
|
+
var $ = "qDxYJm", Z = "aA9V0P", ee = "YPXPAS", te = "Xf2zsA", ne = "y7Kt7s", re = "EeUgMu", ie = "fdHrtm", oe = "WIFaG4";
|
|
2585
|
+
const se = { CrossFade: (e3) => {
|
|
2586
|
+
const { reverse: r3, ...i2 } = e3;
|
|
2587
|
+
return n2.createElement(_, t2()({}, i2, { classNames: { enter: G, enterActive: w, exit: F, exitActive: L } }), e3.children);
|
|
2588
|
+
}, OutIn: (e3) => {
|
|
2589
|
+
const { reverse: r3, ...i2 } = e3;
|
|
2590
|
+
return n2.createElement(_, t2()({}, i2, { classNames: { enter: U, enterActive: I, exit: X, exitActive: q } }), e3.children);
|
|
2591
|
+
}, SlideHorizontal: (e3) => {
|
|
2592
|
+
const { reverse: r3, ...i2 } = e3;
|
|
2593
|
+
return n2.createElement(_, t2()({}, i2, { classNames: r3 ? { enter: H, enterActive: K, exit: Q, exitActive: Y } : { enter: J, enterActive: W, exit: z, exitActive: B } }), e3.children);
|
|
2594
|
+
}, SlideVertical: (e3) => {
|
|
2595
|
+
const { reverse: r3, ...i2 } = e3;
|
|
2596
|
+
return n2.createElement(_, t2()({}, i2, { classNames: r3 ? { enter: ne, enterActive: re, exit: ie, exitActive: oe } : { enter: $, enterActive: Z, exit: ee, exitActive: te } }), e3.children);
|
|
2597
|
+
} };
|
|
2598
|
+
var ae = (e3) => {
|
|
2599
|
+
const t3 = se[e3.type], { type: r3, ...i2 } = e3;
|
|
2600
|
+
return n2.createElement(t3, i2);
|
|
2601
|
+
};
|
|
2602
|
+
const le = "TRANSITION_GROUP";
|
|
2603
|
+
var ce = (e3) => {
|
|
2604
|
+
const { id: r3 = le, transition: i2 = "none", transitionDuration: o2 = 0, transitionEnabled: s2 = true, onTransitionComplete: a2 = () => {
|
|
2605
|
+
}, onTransitionStarting: c2 = () => {
|
|
2606
|
+
}, className: u2, children: p2, shouldUseViewTransition: d2 } = e3, f2 = n2.Children.toArray(p2())[0], h2 = null == f2 ? void 0 : f2.props.id, m2 = "none" === i2, E2 = "SlideVertical" === i2, v2 = "undefined" != typeof window && "startViewTransition" in document && d2;
|
|
2607
|
+
return n2.createElement(n2.Fragment, null, m2 ? p2() : v2 ? n2.createElement("div", t2()({ id: r3 }, l(e3), { className: u2 }), p2()) : n2.createElement(g, t2()({ id: r3 }, l(e3), { className: u2, childFactory: (e4) => n2.cloneElement(e4, { reverse: E2 }) }), n2.createElement(ae, { type: i2, key: h2, timeout: o2, onEntered: a2, onExiting: c2, enter: s2, exit: s2, unmountOnExit: true }, () => f2)));
|
|
2608
|
+
}, ue = "JsJXaX", pe = "AnQkDU";
|
|
2609
|
+
const de = n2.memo(ce, (e3, t3) => !t3.children().length);
|
|
2610
|
+
var fe = (e3) => {
|
|
2611
|
+
const { id: r3, children: i2, className: o2, ...s2 } = e3;
|
|
2612
|
+
return n2.createElement("div", t2()({ id: r3 }, l(e3), { className: a(ue, o2) }), n2.createElement(de, t2()({ id: r3 + "_" + le, className: pe }, s2), i2));
|
|
2613
|
+
};
|
|
2614
|
+
}(), o;
|
|
2615
|
+
}();
|
|
2616
|
+
});
|
|
2617
|
+
})(PageGroup_bundle_min);
|
|
2618
|
+
var PageGroup_bundle_minExports = PageGroup_bundle_min.exports;
|
|
2619
|
+
const Component$4 = /* @__PURE__ */ getDefaultExportFromCjs(PageGroup_bundle_minExports);
|
|
2620
|
+
const PageGroup = withNormalChildren(Component$4);
|
|
2621
|
+
var PagesContainer_bundle_min = { exports: {} };
|
|
2622
|
+
(function(module2, exports$1) {
|
|
2623
|
+
!function(e, t) {
|
|
2624
|
+
module2.exports = t(require$$0);
|
|
2625
|
+
}("undefined" != typeof self ? self : commonjsGlobal, function(e) {
|
|
2626
|
+
return function() {
|
|
2627
|
+
var t = { "Xdf/": function(t2) {
|
|
2628
|
+
t2.exports = e;
|
|
2629
|
+
}, Fe5V: function(e2) {
|
|
2630
|
+
function t2() {
|
|
2631
|
+
return e2.exports = t2 = Object.assign ? Object.assign.bind() : function(e3) {
|
|
2632
|
+
for (var t3 = 1; t3 < arguments.length; t3++) {
|
|
2633
|
+
var n2 = arguments[t3];
|
|
2634
|
+
for (var r2 in n2) ({}).hasOwnProperty.call(n2, r2) && (e3[r2] = n2[r2]);
|
|
2635
|
+
}
|
|
2636
|
+
return e3;
|
|
2637
|
+
}, e2.exports.__esModule = true, e2.exports.default = e2.exports, t2.apply(null, arguments);
|
|
2638
|
+
}
|
|
2639
|
+
e2.exports = t2, e2.exports.__esModule = true, e2.exports.default = e2.exports;
|
|
2640
|
+
} }, n = {};
|
|
2641
|
+
function r(e2) {
|
|
2642
|
+
var o2 = n[e2];
|
|
2643
|
+
if (void 0 !== o2) return o2.exports;
|
|
2644
|
+
var a = n[e2] = { exports: {} };
|
|
2645
|
+
return t[e2](a, a.exports, r), a.exports;
|
|
2646
|
+
}
|
|
2647
|
+
r.n = function(e2) {
|
|
2648
|
+
var t2 = e2 && e2.__esModule ? function() {
|
|
2649
|
+
return e2.default;
|
|
2650
|
+
} : function() {
|
|
2651
|
+
return e2;
|
|
2652
|
+
};
|
|
2653
|
+
return r.d(t2, { a: t2 }), t2;
|
|
2654
|
+
}, r.d = function(e2, t2) {
|
|
2655
|
+
for (var n2 in t2) r.o(t2, n2) && !r.o(e2, n2) && Object.defineProperty(e2, n2, { enumerable: true, get: t2[n2] });
|
|
2656
|
+
}, r.o = function(e2, t2) {
|
|
2657
|
+
return Object.prototype.hasOwnProperty.call(e2, t2);
|
|
2658
|
+
}, r.r = function(e2) {
|
|
2659
|
+
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e2, "__esModule", { value: true });
|
|
2660
|
+
};
|
|
2661
|
+
var o = {};
|
|
2662
|
+
return function() {
|
|
2663
|
+
r.r(o), r.d(o, { default: function() {
|
|
2664
|
+
return a;
|
|
2665
|
+
} });
|
|
2666
|
+
var e2 = r("Fe5V"), t2 = r.n(e2), n2 = r("Xdf/");
|
|
2667
|
+
var a = (e3) => {
|
|
2668
|
+
const { children: r2, className: o2 } = e3;
|
|
2669
|
+
return n2.createElement("main", t2()({ id: "PAGES_CONTAINER" }, ((e4) => Object.entries(e4).reduce((e5, [t3, n3]) => (t3.includes("data-") && (e5[t3] = n3), e5), {}))(e3), { className: o2, tabIndex: -1, "data-main-content": true }), r2());
|
|
2670
|
+
};
|
|
2671
|
+
}(), o;
|
|
2672
|
+
}();
|
|
2673
|
+
});
|
|
2674
|
+
})(PagesContainer_bundle_min);
|
|
2675
|
+
var PagesContainer_bundle_minExports = PagesContainer_bundle_min.exports;
|
|
2676
|
+
const Component$3 = /* @__PURE__ */ getDefaultExportFromCjs(PagesContainer_bundle_minExports);
|
|
2677
|
+
const PagesContainer = withNormalChildren(Component$3);
|
|
2678
|
+
var ResponsiveContainer_bundle_min = { exports: {} };
|
|
2679
|
+
(function(module2, exports$1) {
|
|
2680
|
+
!function(e, t) {
|
|
2681
|
+
module2.exports = t(require$$0);
|
|
2682
|
+
}("undefined" != typeof self ? self : commonjsGlobal, function(e) {
|
|
2683
|
+
return function() {
|
|
2684
|
+
var t = { jBV1: function(e2, t2, r2) {
|
|
2685
|
+
r2.d(t2, { V5: function() {
|
|
2686
|
+
return c;
|
|
2687
|
+
} });
|
|
2688
|
+
const i = ["aria-id", "aria-metadata", "aria-type"], s = (e3, t3) => Object.entries(e3).reduce((e4, [r3, n2]) => (t3.includes(r3) || (e4[r3] = n2), e4), {}), c = ({ role: e3, tabIndex: t3, tabindex: r3, ...n2 } = {}) => {
|
|
2689
|
+
const o2 = Object.entries(n2).reduce((e4, [t4, r4]) => ({ ...e4, [`aria-${t4}`.toLowerCase()]: r4 }), { role: e3, tabIndex: t3 ?? r3 });
|
|
2690
|
+
return Object.keys(o2).forEach((e4) => {
|
|
2691
|
+
void 0 !== o2[e4] && null !== o2[e4] || delete o2[e4];
|
|
2692
|
+
}), s(o2, i);
|
|
2693
|
+
};
|
|
2694
|
+
}, "Xdf/": function(t2) {
|
|
2695
|
+
t2.exports = e;
|
|
2696
|
+
}, MRkx: function(e2, t2, r2) {
|
|
2697
|
+
function n2(e3) {
|
|
2698
|
+
var t3, r3, o2 = "";
|
|
2699
|
+
if ("string" == typeof e3 || "number" == typeof e3) o2 += e3;
|
|
2700
|
+
else if ("object" == typeof e3) if (Array.isArray(e3)) for (t3 = 0; t3 < e3.length; t3++) e3[t3] && (r3 = n2(e3[t3])) && (o2 && (o2 += " "), o2 += r3);
|
|
2701
|
+
else for (t3 in e3) e3[t3] && (o2 && (o2 += " "), o2 += t3);
|
|
2702
|
+
return o2;
|
|
2703
|
+
}
|
|
2704
|
+
t2.Z = function() {
|
|
2705
|
+
for (var e3, t3, r3 = 0, o2 = ""; r3 < arguments.length; ) (e3 = arguments[r3++]) && (t3 = n2(e3)) && (o2 && (o2 += " "), o2 += t3);
|
|
2706
|
+
return o2;
|
|
2707
|
+
};
|
|
2708
|
+
} }, r = {};
|
|
2709
|
+
function n(e2) {
|
|
2710
|
+
var o2 = r[e2];
|
|
2711
|
+
if (void 0 !== o2) return o2.exports;
|
|
2712
|
+
var a = r[e2] = { exports: {} };
|
|
2713
|
+
return t[e2](a, a.exports, n), a.exports;
|
|
2714
|
+
}
|
|
2715
|
+
n.n = function(e2) {
|
|
2716
|
+
var t2 = e2 && e2.__esModule ? function() {
|
|
2717
|
+
return e2.default;
|
|
2718
|
+
} : function() {
|
|
2719
|
+
return e2;
|
|
2720
|
+
};
|
|
2721
|
+
return n.d(t2, { a: t2 }), t2;
|
|
2722
|
+
}, n.d = function(e2, t2) {
|
|
2723
|
+
for (var r2 in t2) n.o(t2, r2) && !n.o(e2, r2) && Object.defineProperty(e2, r2, { enumerable: true, get: t2[r2] });
|
|
2724
|
+
}, n.o = function(e2, t2) {
|
|
2725
|
+
return Object.prototype.hasOwnProperty.call(e2, t2);
|
|
2726
|
+
}, n.r = function(e2) {
|
|
2727
|
+
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e2, "__esModule", { value: true });
|
|
2728
|
+
};
|
|
2729
|
+
var o = {};
|
|
2730
|
+
return function() {
|
|
2731
|
+
n.r(o), n.d(o, { default: function() {
|
|
2732
|
+
return f;
|
|
2733
|
+
} });
|
|
2734
|
+
var e2 = n("Xdf/"), t2 = n.n(e2), r2 = n("jBV1"), a = n("MRkx");
|
|
2735
|
+
const i = "responsive-container-overflow", s = "responsive-container-content";
|
|
2736
|
+
var c = "xpmKd_";
|
|
2737
|
+
const l = t2().forwardRef((e3, r3) => {
|
|
2738
|
+
let { children: n2, className: o2 } = e3;
|
|
2739
|
+
return t2().createElement("div", { className: (0, a.Z)(o2, c), "data-testid": i, ref: r3 }, n2);
|
|
2740
|
+
}), u = (n2, o2) => {
|
|
2741
|
+
let { containerLayoutClassName: i2, overlowWrapperClassName: c2, hasOverflow: u2, hasScrollOverflow: f2, shouldOmitWrapperLayers: d, children: p, role: v, label: b, extraRootClass: m = "", ariaLive: y, ariaAttributes: x, tabIndex: h, tagName: j = "div" } = n2;
|
|
2742
|
+
const g = !d && u2;
|
|
2743
|
+
let C = -1;
|
|
2744
|
+
f2 && void 0 !== h && (C = h);
|
|
2745
|
+
const R = g ? C : void 0, O = (0, e2.useCallback)((e3) => g ? t2().createElement(l, { className: (0, a.Z)(c2, m) }, e3) : e3, [g, c2, m]), w = u2 ? i2 : (0, a.Z)(i2, m), N = { ref: o2, "data-testid": s, tabIndex: R, ...v ? { role: v } : {}, ...b ? { "aria-label": b } : {}, ...y ? { "aria-live": y } : {}, ...(0, r2.V5)(x) };
|
|
2746
|
+
return "multi-column-layouter" === j ? (N.class = w, N.style = { visibility: "hidden" }) : N.className = w, O(d ? t2().createElement(t2().Fragment, null, p()) : t2().createElement(j || "div", N, p()));
|
|
2747
|
+
};
|
|
2748
|
+
var f = t2().forwardRef(u);
|
|
2749
|
+
}(), o;
|
|
2750
|
+
}();
|
|
2751
|
+
});
|
|
2752
|
+
})(ResponsiveContainer_bundle_min);
|
|
2753
|
+
var ResponsiveContainer_bundle_minExports = ResponsiveContainer_bundle_min.exports;
|
|
2754
|
+
const Component$2 = /* @__PURE__ */ getDefaultExportFromCjs(ResponsiveContainer_bundle_minExports);
|
|
2755
|
+
const PageSections = withNormalChildren(Component$2);
|
|
2756
|
+
const ResponsiveContainer = withNormalChildren(Component$2);
|
|
2757
|
+
var ResponsivePopupPage_bundle_min$1 = { exports: {} };
|
|
2758
|
+
(function(module2, exports$1) {
|
|
2759
|
+
!function(e, t) {
|
|
2760
|
+
module2.exports = t(require$$0);
|
|
2761
|
+
}("undefined" != typeof self ? self : commonjsGlobal, function(e) {
|
|
2762
|
+
return function() {
|
|
2763
|
+
var t = { "Xdf/": function(t2) {
|
|
2764
|
+
t2.exports = e;
|
|
2765
|
+
}, Fe5V: function(e2) {
|
|
2766
|
+
function t2() {
|
|
2767
|
+
return e2.exports = t2 = Object.assign ? Object.assign.bind() : function(e3) {
|
|
2768
|
+
for (var t3 = 1; t3 < arguments.length; t3++) {
|
|
2769
|
+
var r2 = arguments[t3];
|
|
2770
|
+
for (var n2 in r2) ({}).hasOwnProperty.call(r2, n2) && (e3[n2] = r2[n2]);
|
|
2771
|
+
}
|
|
2772
|
+
return e3;
|
|
2773
|
+
}, e2.exports.__esModule = true, e2.exports.default = e2.exports, t2.apply(null, arguments);
|
|
2774
|
+
}
|
|
2775
|
+
e2.exports = t2, e2.exports.__esModule = true, e2.exports.default = e2.exports;
|
|
2776
|
+
} }, r = {};
|
|
2777
|
+
function n(e2) {
|
|
2778
|
+
var o2 = r[e2];
|
|
2779
|
+
if (void 0 !== o2) return o2.exports;
|
|
2780
|
+
var a = r[e2] = { exports: {} };
|
|
2781
|
+
return t[e2](a, a.exports, n), a.exports;
|
|
2782
|
+
}
|
|
2783
|
+
n.n = function(e2) {
|
|
2784
|
+
var t2 = e2 && e2.__esModule ? function() {
|
|
2785
|
+
return e2.default;
|
|
2786
|
+
} : function() {
|
|
2787
|
+
return e2;
|
|
2788
|
+
};
|
|
2789
|
+
return n.d(t2, { a: t2 }), t2;
|
|
2790
|
+
}, n.d = function(e2, t2) {
|
|
2791
|
+
for (var r2 in t2) n.o(t2, r2) && !n.o(e2, r2) && Object.defineProperty(e2, r2, { enumerable: true, get: t2[r2] });
|
|
2792
|
+
}, n.o = function(e2, t2) {
|
|
2793
|
+
return Object.prototype.hasOwnProperty.call(e2, t2);
|
|
2794
|
+
}, n.r = function(e2) {
|
|
2795
|
+
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e2, "__esModule", { value: true });
|
|
2796
|
+
};
|
|
2797
|
+
var o = {};
|
|
2798
|
+
return function() {
|
|
2799
|
+
n.r(o), n.d(o, { default: function() {
|
|
2800
|
+
return w;
|
|
2801
|
+
} });
|
|
2802
|
+
var e2 = n("Fe5V"), t2 = n.n(e2), r2 = n("Xdf/"), a = n.n(r2);
|
|
2803
|
+
function i(e3) {
|
|
2804
|
+
var t3, r3, n2 = "";
|
|
2805
|
+
if ("string" == typeof e3 || "number" == typeof e3) n2 += e3;
|
|
2806
|
+
else if ("object" == typeof e3) if (Array.isArray(e3)) for (t3 = 0; t3 < e3.length; t3++) e3[t3] && (r3 = i(e3[t3])) && (n2 && (n2 += " "), n2 += r3);
|
|
2807
|
+
else for (t3 in e3) e3[t3] && (n2 && (n2 += " "), n2 += t3);
|
|
2808
|
+
return n2;
|
|
2809
|
+
}
|
|
2810
|
+
var s = function() {
|
|
2811
|
+
for (var e3, t3, r3 = 0, n2 = ""; r3 < arguments.length; ) (e3 = arguments[r3++]) && (t3 = i(e3)) && (n2 && (n2 += " "), n2 += t3);
|
|
2812
|
+
return n2;
|
|
2813
|
+
};
|
|
2814
|
+
const d = ["aria-id", "aria-metadata", "aria-type"], p = (e3, t3) => Object.entries(e3).reduce((e4, [r3, n2]) => (t3.includes(r3) || (e4[r3] = n2), e4), {}), f = ({ role: e3, tabIndex: t3, tabindex: r3, ...n2 } = {}) => {
|
|
2815
|
+
const o2 = Object.entries(n2).reduce((e4, [t4, r4]) => ({ ...e4, [`aria-${t4}`.toLowerCase()]: r4 }), { role: e3, tabIndex: t3 ?? r3 });
|
|
2816
|
+
return Object.keys(o2).forEach((e4) => {
|
|
2817
|
+
void 0 !== o2[e4] && null !== o2[e4] || delete o2[e4];
|
|
2818
|
+
}), p(o2, d);
|
|
2819
|
+
}, v = "responsive-container-overflow", b = "responsive-container-content";
|
|
2820
|
+
var m = "gNqkn3";
|
|
2821
|
+
const y = a().forwardRef(({ children: e3, className: t3 }, r3) => a().createElement("div", { className: s(t3, m), "data-testid": v, ref: r3 }, e3));
|
|
2822
|
+
var g = a().forwardRef(({ containerLayoutClassName: e3, overlowWrapperClassName: t3, hasOverflow: n2, hasScrollOverflow: o2, shouldOmitWrapperLayers: i2, children: l, role: c, label: u, extraRootClass: d2 = "", ariaLive: p2, ariaAttributes: v2, tabIndex: m2, tagName: g2 = "div" }, x2) => {
|
|
2823
|
+
const P2 = !i2 && n2;
|
|
2824
|
+
let h2 = -1;
|
|
2825
|
+
o2 && void 0 !== m2 && (h2 = m2);
|
|
2826
|
+
const O2 = P2 ? h2 : void 0, j2 = (0, r2.useCallback)((e4) => P2 ? a().createElement(y, { className: s(t3, d2) }, e4) : e4, [P2, t3, d2]), N2 = n2 ? e3 : s(e3, d2), R2 = { ref: x2, "data-testid": b, tabIndex: O2, ...c ? { role: c } : {}, ...u ? { "aria-label": u } : {}, ...p2 ? { "aria-live": p2 } : {}, ...f(v2) };
|
|
2827
|
+
return "multi-column-layouter" === g2 ? (R2.class = N2, R2.style = { visibility: "hidden" }) : R2.className = N2, j2(i2 ? a().createElement(a().Fragment, null, l()) : a().createElement(g2 || "div", R2, l()));
|
|
2828
|
+
});
|
|
2829
|
+
const x = "ResponsivePopupPageOverlay";
|
|
2830
|
+
var P = "_6rK0h", h = "v_sFOS", O = "wEzP_D", j = "QN18GJ", N = "bfgH5E", R = "SHhFKf";
|
|
2831
|
+
var w = (e3) => {
|
|
2832
|
+
const { id: n2, className: o2, pageDidMount: a2, onClick: i2, children: l, containerProps: c, withOverlay: u = true, fixOverlayTouchAction: d2 } = e3;
|
|
2833
|
+
return r2.createElement("div", t2()({ id: n2 }, ((e4) => Object.entries(e4).reduce((e5, [t3, r3]) => (t3.includes("data-") && (e5[t3] = r3), e5), {}))(e3), { className: s(o2, P, { [O]: i2 }), ref: a2, "data-block-level-container": "PopupPage" }), u && r2.createElement("div", { className: s(j, { [N]: d2 }), onClick: i2, "data-testid": x }), r2.createElement(g, t2()({}, c, { extraRootClass: h }), () => r2.createElement("div", { className: R }, l())));
|
|
2834
|
+
};
|
|
2835
|
+
}(), o;
|
|
2836
|
+
}();
|
|
2837
|
+
});
|
|
2838
|
+
})(ResponsivePopupPage_bundle_min$1);
|
|
2839
|
+
var ResponsivePopupPage_bundle_minExports$1 = ResponsivePopupPage_bundle_min$1.exports;
|
|
2840
|
+
const Component$1 = /* @__PURE__ */ getDefaultExportFromCjs(ResponsivePopupPage_bundle_minExports$1);
|
|
2841
|
+
var ResponsivePopupPage_bundle_min = { exports: {} };
|
|
2842
|
+
(function(module2, exports$1) {
|
|
2843
|
+
!function(e, t) {
|
|
2844
|
+
module2.exports = t();
|
|
2845
|
+
}("undefined" != typeof self ? self : commonjsGlobal, function() {
|
|
2846
|
+
return function() {
|
|
2847
|
+
var e = { d: function(t2, o2) {
|
|
2848
|
+
for (var n2 in o2) e.o(o2, n2) && !e.o(t2, n2) && Object.defineProperty(t2, n2, { enumerable: true, get: o2[n2] });
|
|
2849
|
+
}, o: function(e2, t2) {
|
|
2850
|
+
return Object.prototype.hasOwnProperty.call(e2, t2);
|
|
2851
|
+
}, r: function(e2) {
|
|
2852
|
+
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e2, "__esModule", { value: true });
|
|
2853
|
+
} }, t = {};
|
|
2854
|
+
e.r(t), e.d(t, { default: function() {
|
|
2855
|
+
return p;
|
|
2856
|
+
} });
|
|
2857
|
+
const o = (e2) => e2.replace(/([A-Z])/g, (e3) => `-${e3.toLowerCase()}`), n = (e2 = {}, t2) => true === e2[t2] || "true" === e2[t2] || "new" === e2[t2];
|
|
2858
|
+
var r, p = (r = (e2) => {
|
|
2859
|
+
let { mapperProps: t2, stateValues: o2 } = e2;
|
|
2860
|
+
const { experiments: r2 = {} } = o2;
|
|
2861
|
+
return { ...t2, fixOverlayTouchAction: n(r2, "specs.thunderbolt.fixLightboxOverlayIosTouchAction") };
|
|
2862
|
+
}, { useComponentProps: (e2, t2, n2) => {
|
|
2863
|
+
const p2 = ((e3) => ({ ...e3, updateStyles: (t3) => {
|
|
2864
|
+
const n3 = Object.entries(t3).reduce((e4, [t4, n4]) => {
|
|
2865
|
+
return { ...e4, [(r2 = t4, r2.startsWith("--") ? t4 : o(t4))]: void 0 === n4 ? null : n4 };
|
|
2866
|
+
var r2;
|
|
2867
|
+
}, {});
|
|
2868
|
+
e3.updateStyles(n3);
|
|
2869
|
+
} }))(n2);
|
|
2870
|
+
return r({ mapperProps: e2, stateValues: t2, controllerUtils: p2 });
|
|
2871
|
+
} });
|
|
2872
|
+
return t;
|
|
2873
|
+
}();
|
|
2874
|
+
});
|
|
2875
|
+
})(ResponsivePopupPage_bundle_min);
|
|
2876
|
+
var ResponsivePopupPage_bundle_minExports = ResponsivePopupPage_bundle_min.exports;
|
|
2877
|
+
const controller$1 = /* @__PURE__ */ getDefaultExportFromCjs(ResponsivePopupPage_bundle_minExports);
|
|
2878
|
+
const ResponsivePopupPage_WithoutOverlay = withNormalChildren(withController(Component$1, controller$1));
|
|
2879
|
+
var Section_bundle_min$1 = { exports: {} };
|
|
2880
|
+
(function(module2, exports$1) {
|
|
2881
|
+
!function(e, t) {
|
|
2882
|
+
module2.exports = t(require$$0);
|
|
2883
|
+
}("undefined" != typeof self ? self : commonjsGlobal, function(e) {
|
|
2884
|
+
return function() {
|
|
2885
|
+
var t = { p1x1: function(e2, t2) {
|
|
2886
|
+
t2.Z = { "bg-underlay": "LWbAav", bgUnderlay: "LWbAav", "layers-container": "MW5IWV", layersContainer: "MW5IWV", animate: "V7OeEw", headerSectionAddVisibilityTransition: "MDGLoD", move: "BHIo43", fade: "UvF1nu", scrollUp: "YzrQFb", RectangleArea: "xuzjBY", rectangleArea: "xuzjBY", DefaultAreaSkin: "O7Ybkb", defaultAreaSkin: "O7Ybkb", "full-screen-scroll-effect": "GeNLDt", fullScreenScrollEffect: "GeNLDt", "fill-layer": "K8pHFh", fillLayer: "K8pHFh", "image-fill-layer": "TaweqS", imageFillLayer: "TaweqS", "bg-media": "yzHyNT", bgMedia: "yzHyNT", videoFillLayer: "zBFCpO", "alpha-canvas": "xjgrS3", alphaCanvas: "xjgrS3", "media-padding-layer": "b3zSS0", mediaPaddingLayer: "b3zSS0", transforms: "Wsv3ak", "media-canvas": "IiJMfn", mediaCanvas: "IiJMfn", RectangleAreaAfterScroll: "KJgt14", rectangleAreaAfterScroll: "KJgt14", scrolled: "VTwcX7", section: "Gzsk0j", "video-play-pause-button": "MdLl0h", videoPlayPauseButton: "MdLl0h", childrenContainer: "Gmmci1" };
|
|
2887
|
+
}, guqK: function(e2, t2, i2) {
|
|
2888
|
+
i2.d(t2, { P5: function() {
|
|
2889
|
+
return a2;
|
|
2890
|
+
} });
|
|
2891
|
+
const a2 = (e3) => Object.entries(e3).reduce((e4, [t3, i3]) => (t3.includes("data-") && (e4[t3] = i3), e4), {});
|
|
2892
|
+
}, "Xdf/": function(t2) {
|
|
2893
|
+
t2.exports = e;
|
|
2894
|
+
}, Fe5V: function(e2) {
|
|
2895
|
+
function t2() {
|
|
2896
|
+
return e2.exports = t2 = Object.assign ? Object.assign.bind() : function(e3) {
|
|
2897
|
+
for (var t3 = 1; t3 < arguments.length; t3++) {
|
|
2898
|
+
var i2 = arguments[t3];
|
|
2899
|
+
for (var a2 in i2) ({}).hasOwnProperty.call(i2, a2) && (e3[a2] = i2[a2]);
|
|
2900
|
+
}
|
|
2901
|
+
return e3;
|
|
2902
|
+
}, e2.exports.__esModule = true, e2.exports.default = e2.exports, t2.apply(null, arguments);
|
|
2903
|
+
}
|
|
2904
|
+
e2.exports = t2, e2.exports.__esModule = true, e2.exports.default = e2.exports;
|
|
2905
|
+
}, MRkx: function(e2, t2, i2) {
|
|
2906
|
+
function a2(e3) {
|
|
2907
|
+
var t3, i3, n2 = "";
|
|
2908
|
+
if ("string" == typeof e3 || "number" == typeof e3) n2 += e3;
|
|
2909
|
+
else if ("object" == typeof e3) if (Array.isArray(e3)) for (t3 = 0; t3 < e3.length; t3++) e3[t3] && (i3 = a2(e3[t3])) && (n2 && (n2 += " "), n2 += i3);
|
|
2910
|
+
else for (t3 in e3) e3[t3] && (n2 && (n2 += " "), n2 += t3);
|
|
2911
|
+
return n2;
|
|
2912
|
+
}
|
|
2913
|
+
t2.Z = function() {
|
|
2914
|
+
for (var e3, t3, i3 = 0, n2 = ""; i3 < arguments.length; ) (e3 = arguments[i3++]) && (t3 = a2(e3)) && (n2 && (n2 += " "), n2 += t3);
|
|
2915
|
+
return n2;
|
|
2916
|
+
};
|
|
2917
|
+
} }, i = {};
|
|
2918
|
+
function a(e2) {
|
|
2919
|
+
var n2 = i[e2];
|
|
2920
|
+
if (void 0 !== n2) return n2.exports;
|
|
2921
|
+
var r = i[e2] = { exports: {} };
|
|
2922
|
+
return t[e2](r, r.exports, a), r.exports;
|
|
2923
|
+
}
|
|
2924
|
+
a.n = function(e2) {
|
|
2925
|
+
var t2 = e2 && e2.__esModule ? function() {
|
|
2926
|
+
return e2.default;
|
|
2927
|
+
} : function() {
|
|
2928
|
+
return e2;
|
|
2929
|
+
};
|
|
2930
|
+
return a.d(t2, { a: t2 }), t2;
|
|
2931
|
+
}, a.d = function(e2, t2) {
|
|
2932
|
+
for (var i2 in t2) a.o(t2, i2) && !a.o(e2, i2) && Object.defineProperty(e2, i2, { enumerable: true, get: t2[i2] });
|
|
2933
|
+
}, a.o = function(e2, t2) {
|
|
2934
|
+
return Object.prototype.hasOwnProperty.call(e2, t2);
|
|
2935
|
+
}, a.r = function(e2) {
|
|
2936
|
+
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e2, "__esModule", { value: true });
|
|
2937
|
+
};
|
|
2938
|
+
var n = {};
|
|
2939
|
+
return function() {
|
|
2940
|
+
a.r(n), a.d(n, { default: function() {
|
|
2941
|
+
return ii;
|
|
2942
|
+
} });
|
|
2943
|
+
var e2 = {};
|
|
2944
|
+
a.r(e2), a.d(e2, { STATIC_MEDIA_URL: function() {
|
|
2945
|
+
return tt;
|
|
2946
|
+
}, ph: function() {
|
|
2947
|
+
return Xe;
|
|
2948
|
+
} });
|
|
2949
|
+
var t2 = a("Fe5V"), i2 = a.n(t2), r = a("Xdf/"), o = a.n(r), c = a("MRkx");
|
|
2950
|
+
const s = "wixui-", l = (e3, ...t3) => {
|
|
2951
|
+
const i3 = [];
|
|
2952
|
+
return e3 && i3.push(`${s}${e3}`), t3.forEach((e4) => {
|
|
2953
|
+
e4 && (i3.push(`${s}${e4}`), i3.push(e4));
|
|
2954
|
+
}), i3.join(" ");
|
|
2955
|
+
};
|
|
2956
|
+
var d = a("guqK");
|
|
2957
|
+
const m = "section-container";
|
|
2958
|
+
var f = "jhxvbR";
|
|
2959
|
+
const p = "v1", _ = 2, T = 1920, I = 1920, E = 1e3, L = 1e3, b = { SCALE_TO_FILL: "fill", SCALE_TO_FIT: "fit", STRETCH: "stretch", ORIGINAL_SIZE: "original_size", TILE: "tile", TILE_HORIZONTAL: "tile_horizontal", TILE_VERTICAL: "tile_vertical", FIT_AND_TILE: "fit_and_tile", LEGACY_STRIP_TILE: "legacy_strip_tile", LEGACY_STRIP_TILE_HORIZONTAL: "legacy_strip_tile_horizontal", LEGACY_STRIP_TILE_VERTICAL: "legacy_strip_tile_vertical", LEGACY_STRIP_SCALE_TO_FILL: "legacy_strip_fill", LEGACY_STRIP_SCALE_TO_FIT: "legacy_strip_fit", LEGACY_STRIP_FIT_AND_TILE: "legacy_strip_fit_and_tile", LEGACY_STRIP_ORIGINAL_SIZE: "legacy_strip_original_size", LEGACY_ORIGINAL_SIZE: "actual_size", LEGACY_FIT_WIDTH: "fitWidth", LEGACY_FIT_HEIGHT: "fitHeight", LEGACY_FULL: "full", LEGACY_BG_FIT_AND_TILE: "legacy_tile", LEGACY_BG_FIT_AND_TILE_HORIZONTAL: "legacy_tile_horizontal", LEGACY_BG_FIT_AND_TILE_VERTICAL: "legacy_tile_vertical", LEGACY_BG_NORMAL: "legacy_normal" }, A = { FIT: "fit", FILL: "fill", FILL_FOCAL: "fill_focal", CROP: "crop", LEGACY_CROP: "legacy_crop", LEGACY_FILL: "legacy_fill" }, y = { CENTER: "center", TOP: "top", TOP_LEFT: "top_left", TOP_RIGHT: "top_right", BOTTOM: "bottom", BOTTOM_LEFT: "bottom_left", BOTTOM_RIGHT: "bottom_right", LEFT: "left", RIGHT: "right" }, M = { [y.CENTER]: { x: 0.5, y: 0.5 }, [y.TOP_LEFT]: { x: 0, y: 0 }, [y.TOP_RIGHT]: { x: 1, y: 0 }, [y.TOP]: { x: 0.5, y: 0 }, [y.BOTTOM_LEFT]: { x: 0, y: 1 }, [y.BOTTOM_RIGHT]: { x: 1, y: 1 }, [y.BOTTOM]: { x: 0.5, y: 1 }, [y.RIGHT]: { x: 1, y: 0.5 }, [y.LEFT]: { x: 0, y: 0.5 } }, w = { center: "c", top: "t", top_left: "tl", top_right: "tr", bottom: "b", bottom_left: "bl", bottom_right: "br", left: "l", right: "r" }, O = { BG: "bg", SVG: "svg" }, v = { AUTO: "auto", CLASSIC: "classic", SUPER: "super" }, S = { classic: 1, super: 2 }, G = { radius: "0.66", amount: "1.00", threshold: "0.01" }, C = { uri: "", css: { img: {}, container: {} }, attr: { img: {}, container: {} }, transformed: false }, R = 25e6, F = [1.5, 2, 4], N = { HIGH: { size: 196e4, quality: 90, maxUpscale: 1 }, MEDIUM: { size: 36e4, quality: 85, maxUpscale: 1 }, LOW: { size: 16e4, quality: 80, maxUpscale: 1.2 }, TINY: { size: 0, quality: 80, maxUpscale: 1.4 } }, P = { HIGH: "HIGH", MEDIUM: "MEDIUM", LOW: "LOW", TINY: "TINY" }, x = { CONTRAST: "contrast", BRIGHTNESS: "brightness", SATURATION: "saturation", HUE: "hue", BLUR: "blur" }, k = { JPG: "jpg", JPEG: "jpeg", JPE: "jpe", PNG: "png", WEBP: "webp", WIX_ICO_MP: "wix_ico_mp", WIX_MP: "wix_mp", GIF: "gif", AVIF: "avif", UNRECOGNIZED: "unrecognized" }, B = { AVIF: "AVIF", PAVIF: "PAVIF" };
|
|
2960
|
+
function H(e3, ...t3) {
|
|
2961
|
+
return function(...i3) {
|
|
2962
|
+
const a2 = i3[i3.length - 1] || {}, n2 = [e3[0]];
|
|
2963
|
+
return t3.forEach(function(t4, r2) {
|
|
2964
|
+
const o2 = Number.isInteger(t4) ? i3[t4] : a2[t4];
|
|
2965
|
+
n2.push(o2, e3[r2 + 1]);
|
|
2966
|
+
}), n2.join("");
|
|
2967
|
+
};
|
|
2968
|
+
}
|
|
2969
|
+
function Y(e3) {
|
|
2970
|
+
return e3[e3.length - 1];
|
|
2971
|
+
}
|
|
2972
|
+
const U = [k.PNG, k.JPEG, k.JPG, k.JPE, k.WIX_ICO_MP, k.WIX_MP, k.WEBP, k.AVIF], $ = [k.JPEG, k.JPG, k.JPE];
|
|
2973
|
+
function z(e3, t3, i3) {
|
|
2974
|
+
return i3 && t3 && !(!(a2 = t3.id) || !a2.trim() || "none" === a2.toLowerCase()) && Object.values(b).includes(e3);
|
|
2975
|
+
var a2;
|
|
2976
|
+
}
|
|
2977
|
+
function Z(e3, t3, i3, a2) {
|
|
2978
|
+
if (/(^https?)|(^data)|(^\/\/)/.test(e3)) return false;
|
|
2979
|
+
if (!function(e4, t4, i4) {
|
|
2980
|
+
return !(D(e4) || W(e4)) || !t4 || i4;
|
|
2981
|
+
}(e3, t3, i3)) return false;
|
|
2982
|
+
const n2 = function(e4) {
|
|
2983
|
+
return U.includes(Q(e4));
|
|
2984
|
+
}(e3), r2 = function(e4, t4, i4) {
|
|
2985
|
+
return !(!V(e4) || !t4 && !i4);
|
|
2986
|
+
}(e3, i3, a2);
|
|
2987
|
+
return n2 || r2;
|
|
2988
|
+
}
|
|
2989
|
+
function j(e3) {
|
|
2990
|
+
return Q(e3) === k.PNG;
|
|
2991
|
+
}
|
|
2992
|
+
function D(e3) {
|
|
2993
|
+
return Q(e3) === k.WEBP;
|
|
2994
|
+
}
|
|
2995
|
+
function V(e3) {
|
|
2996
|
+
return Q(e3) === k.GIF;
|
|
2997
|
+
}
|
|
2998
|
+
function W(e3) {
|
|
2999
|
+
return Q(e3) === k.AVIF;
|
|
3000
|
+
}
|
|
3001
|
+
const q = ["/", "\\", "?", "<", ">", "|", "“", ":", '"'].map(encodeURIComponent), J = ["\\.", "\\*"], K = "_";
|
|
3002
|
+
function X(e3) {
|
|
3003
|
+
return function(e4) {
|
|
3004
|
+
return $.includes(Q(e4));
|
|
3005
|
+
}(e3) ? k.JPG : j(e3) ? k.PNG : D(e3) ? k.WEBP : V(e3) ? k.GIF : W(e3) ? k.AVIF : k.UNRECOGNIZED;
|
|
3006
|
+
}
|
|
3007
|
+
function Q(e3) {
|
|
3008
|
+
return (/[.]([^.]+)$/.exec(e3) && /[.]([^.]+)$/.exec(e3)[1] || "").toLowerCase();
|
|
3009
|
+
}
|
|
3010
|
+
function ee(e3, t3, i3, a2, n2) {
|
|
3011
|
+
let r2;
|
|
3012
|
+
return r2 = n2 === A.FILL ? function(e4, t4, i4, a3) {
|
|
3013
|
+
return Math.max(i4 / e4, a3 / t4);
|
|
3014
|
+
}(e3, t3, i3, a2) : n2 === A.FIT ? function(e4, t4, i4, a3) {
|
|
3015
|
+
return Math.min(i4 / e4, a3 / t4);
|
|
3016
|
+
}(e3, t3, i3, a2) : 1, r2;
|
|
3017
|
+
}
|
|
3018
|
+
function te(e3, t3, i3, a2, n2, r2) {
|
|
3019
|
+
e3 = e3 || a2.width, t3 = t3 || a2.height;
|
|
3020
|
+
const { scaleFactor: o2, width: c2, height: s2 } = function(e4, t4, i4, a3, n3) {
|
|
3021
|
+
let r3, o3 = i4, c3 = a3;
|
|
3022
|
+
if (r3 = ee(e4, t4, i4, a3, n3), n3 === A.FIT && (o3 = e4 * r3, c3 = t4 * r3), o3 && c3 && o3 * c3 > R) {
|
|
3023
|
+
const i5 = Math.sqrt(R / (o3 * c3));
|
|
3024
|
+
o3 *= i5, c3 *= i5, r3 = ee(e4, t4, o3, c3, n3);
|
|
3025
|
+
}
|
|
3026
|
+
return { scaleFactor: r3, width: o3, height: c3 };
|
|
3027
|
+
}(e3, t3, a2.width * n2, a2.height * n2, i3);
|
|
3028
|
+
return function(e4, t4, i4, a3, n3, r3, o3) {
|
|
3029
|
+
const { optimizedScaleFactor: c3, upscaleMethodValue: s3, forceUSM: l2 } = function(e5, t5, i5, a4) {
|
|
3030
|
+
if ("auto" === a4) return function(e6, t6) {
|
|
3031
|
+
const i6 = re(e6, t6);
|
|
3032
|
+
return { optimizedScaleFactor: N[i6].maxUpscale, upscaleMethodValue: S.classic, forceUSM: false };
|
|
3033
|
+
}(e5, t5);
|
|
3034
|
+
if ("super" === a4) return function(e6) {
|
|
3035
|
+
return { optimizedScaleFactor: Y(F), upscaleMethodValue: S.super, forceUSM: !(F.includes(e6) || e6 > Y(F)) };
|
|
3036
|
+
}(i5);
|
|
3037
|
+
return function(e6, t6) {
|
|
3038
|
+
const i6 = re(e6, t6);
|
|
3039
|
+
return { optimizedScaleFactor: N[i6].maxUpscale, upscaleMethodValue: S.classic, forceUSM: false };
|
|
3040
|
+
}(e5, t5);
|
|
3041
|
+
}(e4, t4, r3, n3);
|
|
3042
|
+
let d2 = i4, u = a3;
|
|
3043
|
+
if (r3 <= c3) return { width: d2, height: u, scaleFactor: r3, upscaleMethodValue: s3, forceUSM: l2, cssUpscaleNeeded: false };
|
|
3044
|
+
switch (o3) {
|
|
3045
|
+
case A.FILL:
|
|
3046
|
+
d2 = i4 * (c3 / r3), u = a3 * (c3 / r3);
|
|
3047
|
+
break;
|
|
3048
|
+
case A.FIT:
|
|
3049
|
+
d2 = e4 * c3, u = t4 * c3;
|
|
3050
|
+
}
|
|
3051
|
+
return { width: d2, height: u, scaleFactor: c3, upscaleMethodValue: s3, forceUSM: l2, cssUpscaleNeeded: true };
|
|
3052
|
+
}(e3, t3, c2, s2, r2, o2, i3);
|
|
3053
|
+
}
|
|
3054
|
+
function ie(e3, t3, i3, a2) {
|
|
3055
|
+
const n2 = ne(i3) || function(e4 = y.CENTER) {
|
|
3056
|
+
return M[e4];
|
|
3057
|
+
}(a2);
|
|
3058
|
+
return { x: Math.max(0, Math.min(e3.width - t3.width, n2.x * e3.width - t3.width / 2)), y: Math.max(0, Math.min(e3.height - t3.height, n2.y * e3.height - t3.height / 2)), width: Math.min(e3.width, t3.width), height: Math.min(e3.height, t3.height) };
|
|
3059
|
+
}
|
|
3060
|
+
function ae(e3) {
|
|
3061
|
+
return e3.alignment && w[e3.alignment] || w[y.CENTER];
|
|
3062
|
+
}
|
|
3063
|
+
function ne(e3) {
|
|
3064
|
+
let t3;
|
|
3065
|
+
return !e3 || "number" != typeof e3.x || isNaN(e3.x) || "number" != typeof e3.y || isNaN(e3.y) || (t3 = { x: oe(Math.max(0, Math.min(100, e3.x)) / 100, 2), y: oe(Math.max(0, Math.min(100, e3.y)) / 100, 2) }), t3;
|
|
3066
|
+
}
|
|
3067
|
+
function re(e3, t3) {
|
|
3068
|
+
const i3 = e3 * t3;
|
|
3069
|
+
return i3 > N[P.HIGH].size ? P.HIGH : i3 > N[P.MEDIUM].size ? P.MEDIUM : i3 > N[P.LOW].size ? P.LOW : P.TINY;
|
|
3070
|
+
}
|
|
3071
|
+
function oe(e3, t3) {
|
|
3072
|
+
const i3 = Math.pow(10, t3);
|
|
3073
|
+
return (e3 * i3 / i3).toFixed(t3);
|
|
3074
|
+
}
|
|
3075
|
+
function ce(e3) {
|
|
3076
|
+
return e3 && e3.upscaleMethod && v[e3.upscaleMethod.toUpperCase()] || v.AUTO;
|
|
3077
|
+
}
|
|
3078
|
+
function se(e3, t3) {
|
|
3079
|
+
const i3 = D(e3) || W(e3);
|
|
3080
|
+
return Q(e3) === k.GIF || i3 && t3;
|
|
3081
|
+
}
|
|
3082
|
+
const le = { isMobile: false }, de = function(e3) {
|
|
3083
|
+
return le[e3];
|
|
3084
|
+
};
|
|
3085
|
+
function ue() {
|
|
3086
|
+
if ("undefined" != typeof window && "undefined" != typeof navigator) {
|
|
3087
|
+
const t3 = window.matchMedia && window.matchMedia("(max-width: 767px)").matches, i3 = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
3088
|
+
e3 = t3 && i3, le["isMobile"] = e3;
|
|
3089
|
+
}
|
|
3090
|
+
var e3;
|
|
3091
|
+
}
|
|
3092
|
+
function he(e3, t3) {
|
|
3093
|
+
const i3 = { css: { container: {} } }, { css: a2 } = i3, { fittingType: n2 } = e3;
|
|
3094
|
+
switch (n2) {
|
|
3095
|
+
case b.ORIGINAL_SIZE:
|
|
3096
|
+
case b.LEGACY_ORIGINAL_SIZE:
|
|
3097
|
+
case b.LEGACY_STRIP_ORIGINAL_SIZE:
|
|
3098
|
+
a2.container.backgroundSize = "auto", a2.container.backgroundRepeat = "no-repeat";
|
|
3099
|
+
break;
|
|
3100
|
+
case b.SCALE_TO_FIT:
|
|
3101
|
+
case b.LEGACY_STRIP_SCALE_TO_FIT:
|
|
3102
|
+
a2.container.backgroundSize = "contain", a2.container.backgroundRepeat = "no-repeat";
|
|
3103
|
+
break;
|
|
3104
|
+
case b.STRETCH:
|
|
3105
|
+
a2.container.backgroundSize = "100% 100%", a2.container.backgroundRepeat = "no-repeat";
|
|
3106
|
+
break;
|
|
3107
|
+
case b.SCALE_TO_FILL:
|
|
3108
|
+
case b.LEGACY_STRIP_SCALE_TO_FILL:
|
|
3109
|
+
a2.container.backgroundSize = "cover", a2.container.backgroundRepeat = "no-repeat";
|
|
3110
|
+
break;
|
|
3111
|
+
case b.TILE_HORIZONTAL:
|
|
3112
|
+
case b.LEGACY_STRIP_TILE_HORIZONTAL:
|
|
3113
|
+
a2.container.backgroundSize = "auto", a2.container.backgroundRepeat = "repeat-x";
|
|
3114
|
+
break;
|
|
3115
|
+
case b.TILE_VERTICAL:
|
|
3116
|
+
case b.LEGACY_STRIP_TILE_VERTICAL:
|
|
3117
|
+
a2.container.backgroundSize = "auto", a2.container.backgroundRepeat = "repeat-y";
|
|
3118
|
+
break;
|
|
3119
|
+
case b.TILE:
|
|
3120
|
+
case b.LEGACY_STRIP_TILE:
|
|
3121
|
+
a2.container.backgroundSize = "auto", a2.container.backgroundRepeat = "repeat";
|
|
3122
|
+
break;
|
|
3123
|
+
case b.LEGACY_STRIP_FIT_AND_TILE:
|
|
3124
|
+
a2.container.backgroundSize = "contain", a2.container.backgroundRepeat = "repeat";
|
|
3125
|
+
break;
|
|
3126
|
+
case b.FIT_AND_TILE:
|
|
3127
|
+
case b.LEGACY_BG_FIT_AND_TILE:
|
|
3128
|
+
a2.container.backgroundSize = "auto", a2.container.backgroundRepeat = "repeat";
|
|
3129
|
+
break;
|
|
3130
|
+
case b.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:
|
|
3131
|
+
a2.container.backgroundSize = "auto", a2.container.backgroundRepeat = "repeat-x";
|
|
3132
|
+
break;
|
|
3133
|
+
case b.LEGACY_BG_FIT_AND_TILE_VERTICAL:
|
|
3134
|
+
a2.container.backgroundSize = "auto", a2.container.backgroundRepeat = "repeat-y";
|
|
3135
|
+
break;
|
|
3136
|
+
case b.LEGACY_BG_NORMAL:
|
|
3137
|
+
a2.container.backgroundSize = "auto", a2.container.backgroundRepeat = "no-repeat";
|
|
3138
|
+
}
|
|
3139
|
+
switch (t3.alignment) {
|
|
3140
|
+
case y.CENTER:
|
|
3141
|
+
a2.container.backgroundPosition = "center center";
|
|
3142
|
+
break;
|
|
3143
|
+
case y.LEFT:
|
|
3144
|
+
a2.container.backgroundPosition = "left center";
|
|
3145
|
+
break;
|
|
3146
|
+
case y.RIGHT:
|
|
3147
|
+
a2.container.backgroundPosition = "right center";
|
|
3148
|
+
break;
|
|
3149
|
+
case y.TOP:
|
|
3150
|
+
a2.container.backgroundPosition = "center top";
|
|
3151
|
+
break;
|
|
3152
|
+
case y.BOTTOM:
|
|
3153
|
+
a2.container.backgroundPosition = "center bottom";
|
|
3154
|
+
break;
|
|
3155
|
+
case y.TOP_RIGHT:
|
|
3156
|
+
a2.container.backgroundPosition = "right top";
|
|
3157
|
+
break;
|
|
3158
|
+
case y.TOP_LEFT:
|
|
3159
|
+
a2.container.backgroundPosition = "left top";
|
|
3160
|
+
break;
|
|
3161
|
+
case y.BOTTOM_RIGHT:
|
|
3162
|
+
a2.container.backgroundPosition = "right bottom";
|
|
3163
|
+
break;
|
|
3164
|
+
case y.BOTTOM_LEFT:
|
|
3165
|
+
a2.container.backgroundPosition = "left bottom";
|
|
3166
|
+
}
|
|
3167
|
+
return i3;
|
|
3168
|
+
}
|
|
3169
|
+
const ge = { [y.CENTER]: "center", [y.TOP]: "top", [y.TOP_LEFT]: "top left", [y.TOP_RIGHT]: "top right", [y.BOTTOM]: "bottom", [y.BOTTOM_LEFT]: "bottom left", [y.BOTTOM_RIGHT]: "bottom right", [y.LEFT]: "left", [y.RIGHT]: "right" }, me = { position: "absolute", top: "auto", right: "auto", bottom: "auto", left: "auto" };
|
|
3170
|
+
function fe(e3, t3) {
|
|
3171
|
+
const i3 = { css: { container: {}, img: {} } }, { css: a2 } = i3, { fittingType: n2 } = e3, r2 = t3.alignment;
|
|
3172
|
+
switch (a2.container.position = "relative", n2) {
|
|
3173
|
+
case b.ORIGINAL_SIZE:
|
|
3174
|
+
case b.LEGACY_ORIGINAL_SIZE:
|
|
3175
|
+
e3.parts && e3.parts.length ? (a2.img.width = e3.parts[0].width, a2.img.height = e3.parts[0].height) : (a2.img.width = e3.src.width, a2.img.height = e3.src.height);
|
|
3176
|
+
break;
|
|
3177
|
+
case b.SCALE_TO_FIT:
|
|
3178
|
+
case b.LEGACY_FIT_WIDTH:
|
|
3179
|
+
case b.LEGACY_FIT_HEIGHT:
|
|
3180
|
+
case b.LEGACY_FULL:
|
|
3181
|
+
a2.img.width = t3.width, a2.img.height = t3.height, a2.img.objectFit = "contain", a2.img.objectPosition = ge[r2] || "unset";
|
|
3182
|
+
break;
|
|
3183
|
+
case b.LEGACY_BG_NORMAL:
|
|
3184
|
+
a2.img.width = "100%", a2.img.height = "100%", a2.img.objectFit = "none", a2.img.objectPosition = ge[r2] || "unset";
|
|
3185
|
+
break;
|
|
3186
|
+
case b.STRETCH:
|
|
3187
|
+
a2.img.width = t3.width, a2.img.height = t3.height, a2.img.objectFit = "fill";
|
|
3188
|
+
break;
|
|
3189
|
+
case b.SCALE_TO_FILL:
|
|
3190
|
+
a2.img.width = t3.width, a2.img.height = t3.height, a2.img.objectFit = "cover";
|
|
3191
|
+
}
|
|
3192
|
+
if ("number" == typeof a2.img.width && "number" == typeof a2.img.height && (a2.img.width !== t3.width || a2.img.height !== t3.height)) {
|
|
3193
|
+
const e4 = Math.round((t3.height - a2.img.height) / 2), i4 = Math.round((t3.width - a2.img.width) / 2);
|
|
3194
|
+
Object.assign(a2.img, me, function(e5, t4, i5) {
|
|
3195
|
+
return { [y.TOP_LEFT]: { top: 0, left: 0 }, [y.TOP_RIGHT]: { top: 0, right: 0 }, [y.TOP]: { top: 0, left: t4 }, [y.BOTTOM_LEFT]: { bottom: 0, left: 0 }, [y.BOTTOM_RIGHT]: { bottom: 0, right: 0 }, [y.BOTTOM]: { bottom: 0, left: t4 }, [y.RIGHT]: { top: e5, right: 0 }, [y.LEFT]: { top: e5, left: 0 }, [y.CENTER]: { width: i5.width, height: i5.height, objectFit: "none" } };
|
|
3196
|
+
}(e4, i4, t3)[r2]);
|
|
3197
|
+
}
|
|
3198
|
+
return i3;
|
|
3199
|
+
}
|
|
3200
|
+
function pe(e3, t3) {
|
|
3201
|
+
const i3 = { css: { container: {} }, attr: { container: {}, img: {} } }, { css: a2, attr: n2 } = i3, { fittingType: r2 } = e3, o2 = t3.alignment, { width: c2, height: s2 } = e3.src;
|
|
3202
|
+
let l2;
|
|
3203
|
+
switch (a2.container.position = "relative", r2) {
|
|
3204
|
+
case b.ORIGINAL_SIZE:
|
|
3205
|
+
case b.LEGACY_ORIGINAL_SIZE:
|
|
3206
|
+
case b.TILE:
|
|
3207
|
+
e3.parts && e3.parts.length ? (n2.img.width = e3.parts[0].width, n2.img.height = e3.parts[0].height) : (n2.img.width = c2, n2.img.height = s2), n2.img.preserveAspectRatio = "xMidYMid slice";
|
|
3208
|
+
break;
|
|
3209
|
+
case b.SCALE_TO_FIT:
|
|
3210
|
+
case b.LEGACY_FIT_WIDTH:
|
|
3211
|
+
case b.LEGACY_FIT_HEIGHT:
|
|
3212
|
+
case b.LEGACY_FULL:
|
|
3213
|
+
n2.img.width = "100%", n2.img.height = "100%", n2.img.transform = "", n2.img.preserveAspectRatio = "";
|
|
3214
|
+
break;
|
|
3215
|
+
case b.STRETCH:
|
|
3216
|
+
n2.img.width = t3.width, n2.img.height = t3.height, n2.img.x = 0, n2.img.y = 0, n2.img.transform = "", n2.img.preserveAspectRatio = "none";
|
|
3217
|
+
break;
|
|
3218
|
+
case b.SCALE_TO_FILL:
|
|
3219
|
+
Z(e3.src.id) ? (n2.img.width = t3.width, n2.img.height = t3.height) : (l2 = function(e4, t4, i4, a3, n3) {
|
|
3220
|
+
const r3 = ee(e4, t4, i4, a3, n3);
|
|
3221
|
+
return { width: Math.round(e4 * r3), height: Math.round(t4 * r3) };
|
|
3222
|
+
}(c2, s2, t3.width, t3.height, A.FILL), n2.img.width = l2.width, n2.img.height = l2.height), n2.img.x = 0, n2.img.y = 0, n2.img.transform = "", n2.img.preserveAspectRatio = "xMidYMid slice";
|
|
3223
|
+
}
|
|
3224
|
+
if ("number" == typeof n2.img.width && "number" == typeof n2.img.height && (n2.img.width !== t3.width || n2.img.height !== t3.height)) {
|
|
3225
|
+
let e4, i4, a3 = 0, c3 = 0;
|
|
3226
|
+
r2 === b.TILE ? (e4 = t3.width % n2.img.width, i4 = t3.height % n2.img.height) : (e4 = t3.width - n2.img.width, i4 = t3.height - n2.img.height);
|
|
3227
|
+
const s3 = Math.round(e4 / 2), l3 = Math.round(i4 / 2);
|
|
3228
|
+
switch (o2) {
|
|
3229
|
+
case y.TOP_LEFT:
|
|
3230
|
+
a3 = 0, c3 = 0;
|
|
3231
|
+
break;
|
|
3232
|
+
case y.TOP:
|
|
3233
|
+
a3 = s3, c3 = 0;
|
|
3234
|
+
break;
|
|
3235
|
+
case y.TOP_RIGHT:
|
|
3236
|
+
a3 = e4, c3 = 0;
|
|
3237
|
+
break;
|
|
3238
|
+
case y.LEFT:
|
|
3239
|
+
a3 = 0, c3 = l3;
|
|
3240
|
+
break;
|
|
3241
|
+
case y.CENTER:
|
|
3242
|
+
a3 = s3, c3 = l3;
|
|
3243
|
+
break;
|
|
3244
|
+
case y.RIGHT:
|
|
3245
|
+
a3 = e4, c3 = l3;
|
|
3246
|
+
break;
|
|
3247
|
+
case y.BOTTOM_LEFT:
|
|
3248
|
+
a3 = 0, c3 = i4;
|
|
3249
|
+
break;
|
|
3250
|
+
case y.BOTTOM:
|
|
3251
|
+
a3 = s3, c3 = i4;
|
|
3252
|
+
break;
|
|
3253
|
+
case y.BOTTOM_RIGHT:
|
|
3254
|
+
a3 = e4, c3 = i4;
|
|
3255
|
+
}
|
|
3256
|
+
n2.img.x = a3, n2.img.y = c3;
|
|
3257
|
+
}
|
|
3258
|
+
return n2.container.width = t3.width, n2.container.height = t3.height, n2.container.viewBox = [0, 0, t3.width, t3.height].join(" "), i3;
|
|
3259
|
+
}
|
|
3260
|
+
function _e(e3, t3, i3) {
|
|
3261
|
+
let a2;
|
|
3262
|
+
switch (t3.crop && (a2 = function(e4, t4) {
|
|
3263
|
+
const i4 = Math.max(0, Math.min(e4.width, t4.x + t4.width) - Math.max(0, t4.x)), a3 = Math.max(0, Math.min(e4.height, t4.y + t4.height) - Math.max(0, t4.y));
|
|
3264
|
+
return i4 && a3 && (e4.width !== i4 || e4.height !== a3) ? { x: Math.max(0, t4.x), y: Math.max(0, t4.y), width: i4, height: a3 } : null;
|
|
3265
|
+
}(t3, t3.crop), a2 && (e3.src.width = a2.width, e3.src.height = a2.height, e3.src.isCropped = true, e3.parts.push(Ie(a2)))), e3.fittingType) {
|
|
3266
|
+
case b.SCALE_TO_FIT:
|
|
3267
|
+
case b.LEGACY_FIT_WIDTH:
|
|
3268
|
+
case b.LEGACY_FIT_HEIGHT:
|
|
3269
|
+
case b.LEGACY_FULL:
|
|
3270
|
+
case b.FIT_AND_TILE:
|
|
3271
|
+
case b.LEGACY_BG_FIT_AND_TILE:
|
|
3272
|
+
case b.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:
|
|
3273
|
+
case b.LEGACY_BG_FIT_AND_TILE_VERTICAL:
|
|
3274
|
+
case b.LEGACY_BG_NORMAL:
|
|
3275
|
+
e3.parts.push(Te(e3, i3));
|
|
3276
|
+
break;
|
|
3277
|
+
case b.SCALE_TO_FILL:
|
|
3278
|
+
e3.parts.push(function(e4, t4) {
|
|
3279
|
+
const i4 = te(e4.src.width, e4.src.height, A.FILL, t4, e4.devicePixelRatio, e4.upscaleMethod), a3 = ne(e4.focalPoint);
|
|
3280
|
+
return { transformType: a3 ? A.FILL_FOCAL : A.FILL, width: Math.round(i4.width), height: Math.round(i4.height), alignment: ae(t4), focalPointX: a3 && a3.x, focalPointY: a3 && a3.y, upscale: i4.scaleFactor > 1, forceUSM: i4.forceUSM, scaleFactor: i4.scaleFactor, cssUpscaleNeeded: i4.cssUpscaleNeeded, upscaleMethodValue: i4.upscaleMethodValue };
|
|
3281
|
+
}(e3, i3));
|
|
3282
|
+
break;
|
|
3283
|
+
case b.STRETCH:
|
|
3284
|
+
e3.parts.push(function(e4, t4) {
|
|
3285
|
+
const i4 = ee(e4.src.width, e4.src.height, t4.width, t4.height, A.FILL), a3 = { ...t4 };
|
|
3286
|
+
return a3.width = e4.src.width * i4, a3.height = e4.src.height * i4, Te(e4, a3);
|
|
3287
|
+
}(e3, i3));
|
|
3288
|
+
break;
|
|
3289
|
+
case b.TILE_HORIZONTAL:
|
|
3290
|
+
case b.TILE_VERTICAL:
|
|
3291
|
+
case b.TILE:
|
|
3292
|
+
case b.LEGACY_ORIGINAL_SIZE:
|
|
3293
|
+
case b.ORIGINAL_SIZE:
|
|
3294
|
+
a2 = ie(e3.src, i3, e3.focalPoint, i3.alignment), e3.src.isCropped ? (Object.assign(e3.parts[0], a2), e3.src.width = a2.width, e3.src.height = a2.height) : e3.parts.push(Ie(a2));
|
|
3295
|
+
break;
|
|
3296
|
+
case b.LEGACY_STRIP_TILE_HORIZONTAL:
|
|
3297
|
+
case b.LEGACY_STRIP_TILE_VERTICAL:
|
|
3298
|
+
case b.LEGACY_STRIP_TILE:
|
|
3299
|
+
case b.LEGACY_STRIP_ORIGINAL_SIZE:
|
|
3300
|
+
e3.parts.push(function(e4) {
|
|
3301
|
+
return { transformType: A.LEGACY_CROP, width: Math.round(e4.width), height: Math.round(e4.height), alignment: ae(e4), upscale: false, forceUSM: false, scaleFactor: 1, cssUpscaleNeeded: false };
|
|
3302
|
+
}(i3));
|
|
3303
|
+
break;
|
|
3304
|
+
case b.LEGACY_STRIP_SCALE_TO_FIT:
|
|
3305
|
+
case b.LEGACY_STRIP_FIT_AND_TILE:
|
|
3306
|
+
e3.parts.push(function(e4) {
|
|
3307
|
+
return { transformType: A.FIT, width: Math.round(e4.width), height: Math.round(e4.height), upscale: false, forceUSM: true, scaleFactor: 1, cssUpscaleNeeded: false };
|
|
3308
|
+
}(i3));
|
|
3309
|
+
break;
|
|
3310
|
+
case b.LEGACY_STRIP_SCALE_TO_FILL:
|
|
3311
|
+
e3.parts.push(function(e4) {
|
|
3312
|
+
return { transformType: A.LEGACY_FILL, width: Math.round(e4.width), height: Math.round(e4.height), alignment: ae(e4), upscale: false, forceUSM: true, scaleFactor: 1, cssUpscaleNeeded: false };
|
|
3313
|
+
}(i3));
|
|
3314
|
+
}
|
|
3315
|
+
}
|
|
3316
|
+
function Te(e3, t3) {
|
|
3317
|
+
const i3 = te(e3.src.width, e3.src.height, A.FIT, t3, e3.devicePixelRatio, e3.upscaleMethod);
|
|
3318
|
+
return { transformType: !e3.src.width || !e3.src.height ? A.FIT : A.FILL, width: Math.round(i3.width), height: Math.round(i3.height), alignment: w.center, upscale: i3.scaleFactor > 1, forceUSM: i3.forceUSM, scaleFactor: i3.scaleFactor, cssUpscaleNeeded: i3.cssUpscaleNeeded, upscaleMethodValue: i3.upscaleMethodValue };
|
|
3319
|
+
}
|
|
3320
|
+
function Ie(e3) {
|
|
3321
|
+
return { transformType: A.CROP, x: Math.round(e3.x), y: Math.round(e3.y), width: Math.round(e3.width), height: Math.round(e3.height), upscale: false, forceUSM: false, scaleFactor: 1, cssUpscaleNeeded: false };
|
|
3322
|
+
}
|
|
3323
|
+
function Ee(e3, t3) {
|
|
3324
|
+
t3 = t3 || {}, e3.quality = function(e4, t4) {
|
|
3325
|
+
const i3 = e4.fileType === k.PNG, a2 = e4.fileType === k.JPG, n2 = e4.fileType === k.WEBP, r2 = e4.fileType === k.AVIF, o2 = a2 || i3 || n2 || r2;
|
|
3326
|
+
if (o2) {
|
|
3327
|
+
const a3 = Y(e4.parts), n3 = (c2 = a3.width, s2 = a3.height, N[re(c2, s2)].quality);
|
|
3328
|
+
let r3 = t4.quality && t4.quality >= 5 && t4.quality <= 90 ? t4.quality : n3;
|
|
3329
|
+
return r3 = i3 ? r3 + 5 : r3, r3;
|
|
3330
|
+
}
|
|
3331
|
+
var c2, s2;
|
|
3332
|
+
return 0;
|
|
3333
|
+
}(e3, t3), e3.progressive = function(e4) {
|
|
3334
|
+
return false !== e4.progressive;
|
|
3335
|
+
}(t3), e3.watermark = function(e4) {
|
|
3336
|
+
return e4.watermark;
|
|
3337
|
+
}(t3), e3.autoEncode = t3.autoEncode ?? true, e3.encoding = t3?.encoding, e3.unsharpMask = function(e4, t4) {
|
|
3338
|
+
if (function(e5) {
|
|
3339
|
+
const t5 = "number" == typeof (e5 = e5 || {}).radius && !isNaN(e5.radius) && e5.radius >= 0.1 && e5.radius <= 500, i4 = "number" == typeof e5.amount && !isNaN(e5.amount) && e5.amount >= 0 && e5.amount <= 10, a2 = "number" == typeof e5.threshold && !isNaN(e5.threshold) && e5.threshold >= 0 && e5.threshold <= 255;
|
|
3340
|
+
return t5 && i4 && a2;
|
|
3341
|
+
}(t4.unsharpMask)) return { radius: oe(t4.unsharpMask?.radius, 2), amount: oe(t4.unsharpMask?.amount, 2), threshold: oe(t4.unsharpMask?.threshold, 2) };
|
|
3342
|
+
if (("number" != typeof (i3 = (i3 = t4.unsharpMask) || {}).radius || isNaN(i3.radius) || 0 !== i3.radius || "number" != typeof i3.amount || isNaN(i3.amount) || 0 !== i3.amount || "number" != typeof i3.threshold || isNaN(i3.threshold) || 0 !== i3.threshold) && function(e5) {
|
|
3343
|
+
const t5 = Y(e5.parts);
|
|
3344
|
+
return !(t5.scaleFactor >= 1) || t5.forceUSM || t5.transformType === A.FIT;
|
|
3345
|
+
}(e4)) return G;
|
|
3346
|
+
var i3;
|
|
3347
|
+
return;
|
|
3348
|
+
}(e3, t3), e3.filters = function(e4) {
|
|
3349
|
+
const t4 = e4.filters || {}, i3 = {};
|
|
3350
|
+
Le(t4[x.CONTRAST], -100, 100) && (i3[x.CONTRAST] = t4[x.CONTRAST]);
|
|
3351
|
+
Le(t4[x.BRIGHTNESS], -100, 100) && (i3[x.BRIGHTNESS] = t4[x.BRIGHTNESS]);
|
|
3352
|
+
Le(t4[x.SATURATION], -100, 100) && (i3[x.SATURATION] = t4[x.SATURATION]);
|
|
3353
|
+
Le(t4[x.HUE], -180, 180) && (i3[x.HUE] = t4[x.HUE]);
|
|
3354
|
+
Le(t4[x.BLUR], 0, 100) && (i3[x.BLUR] = t4[x.BLUR]);
|
|
3355
|
+
return i3;
|
|
3356
|
+
}(t3);
|
|
3357
|
+
}
|
|
3358
|
+
function Le(e3, t3, i3) {
|
|
3359
|
+
return "number" == typeof e3 && !isNaN(e3) && 0 !== e3 && e3 >= t3 && e3 <= i3;
|
|
3360
|
+
}
|
|
3361
|
+
function be(e3, t3, i3, a2) {
|
|
3362
|
+
const n2 = function(e4) {
|
|
3363
|
+
return e4?.isSEOBot ?? false;
|
|
3364
|
+
}(a2), r2 = X(t3.id), o2 = function(e4, t4) {
|
|
3365
|
+
const i4 = /\.([^.]*)$/, a3 = new RegExp(`(${q.concat(J).join("|")})`, "g");
|
|
3366
|
+
if (t4 && t4.length) {
|
|
3367
|
+
let e5 = t4;
|
|
3368
|
+
const n4 = t4.match(i4);
|
|
3369
|
+
return n4 && U.includes(n4[1]) && (e5 = t4.replace(i4, "")), encodeURIComponent(e5).replace(a3, K);
|
|
3370
|
+
}
|
|
3371
|
+
const n3 = e4.match(/\/(.*?)$/);
|
|
3372
|
+
return (n3 ? n3[1] : e4).replace(i4, "");
|
|
3373
|
+
}(t3.id, t3.name), c2 = n2 ? 1 : function(e4) {
|
|
3374
|
+
return Math.min(e4.pixelAspectRatio || 1, _);
|
|
3375
|
+
}(i3), s2 = Q(t3.id), l2 = s2, d2 = Z(t3.id, a2?.hasAnimation, a2?.allowAnimatedTransform, a2?.allowFullGIFTransformation), u = { fileName: o2, fileExtension: s2, fileType: r2, fittingType: e3, preferredExtension: l2, src: { id: t3.id, width: t3.width, height: t3.height, isCropped: false, isAnimated: se(t3.id, a2?.hasAnimation) }, focalPoint: { x: t3.focalPoint && t3.focalPoint.x, y: t3.focalPoint && t3.focalPoint.y }, parts: [], devicePixelRatio: c2, quality: 0, upscaleMethod: ce(a2), progressive: true, watermark: "", unsharpMask: {}, filters: {}, transformed: d2, allowFullGIFTransformation: a2?.allowFullGIFTransformation, isPlaceholderFlow: a2?.isPlaceholderFlow };
|
|
3376
|
+
return d2 && (_e(u, t3, i3), Ee(u, a2)), u;
|
|
3377
|
+
}
|
|
3378
|
+
function Ae(e3, t3, i3) {
|
|
3379
|
+
const a2 = { ...i3 }, n2 = de("isMobile");
|
|
3380
|
+
switch (e3) {
|
|
3381
|
+
case b.LEGACY_BG_FIT_AND_TILE:
|
|
3382
|
+
case b.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:
|
|
3383
|
+
case b.LEGACY_BG_FIT_AND_TILE_VERTICAL:
|
|
3384
|
+
case b.LEGACY_BG_NORMAL:
|
|
3385
|
+
const e4 = n2 ? E : T, i4 = n2 ? L : I;
|
|
3386
|
+
a2.width = Math.min(e4, t3.width), a2.height = Math.min(i4, Math.round(a2.width / (t3.width / t3.height))), a2.pixelAspectRatio = 1;
|
|
3387
|
+
}
|
|
3388
|
+
return a2;
|
|
3389
|
+
}
|
|
3390
|
+
const ye = H`fit/w_${"width"},h_${"height"}`, Me = H`fill/w_${"width"},h_${"height"},al_${"alignment"}`, we = H`fill/w_${"width"},h_${"height"},fp_${"focalPointX"}_${"focalPointY"}`, Oe = H`crop/x_${"x"},y_${"y"},w_${"width"},h_${"height"}`, ve = H`crop/w_${"width"},h_${"height"},al_${"alignment"}`, Se = H`fill/w_${"width"},h_${"height"},al_${"alignment"}`, Ge = H`,lg_${"upscaleMethodValue"}`, Ce = H`,q_${"quality"}`, Re = H`,quality_auto`, Fe = H`,usm_${"radius"}_${"amount"}_${"threshold"}`, Ne = H`,bl`, Pe = H`,wm_${"watermark"}`, xe = { [x.CONTRAST]: H`,con_${"contrast"}`, [x.BRIGHTNESS]: H`,br_${"brightness"}`, [x.SATURATION]: H`,sat_${"saturation"}`, [x.HUE]: H`,hue_${"hue"}`, [x.BLUR]: H`,blur_${"blur"}` }, ke = H`,enc_auto`, Be = H`,enc_avif`, He = H`,enc_pavif`, Ye = H`,pstr`, Ue = H`,anm_all`;
|
|
3391
|
+
function $e(e3, t3, i3, a2 = {}, n2) {
|
|
3392
|
+
if (Z(t3.id, a2?.hasAnimation, a2?.allowAnimatedTransform, a2?.allowFullGIFTransformation)) {
|
|
3393
|
+
if (D(t3.id) || W(t3.id)) {
|
|
3394
|
+
const { alignment: r2, ...o2 } = i3;
|
|
3395
|
+
t3.focalPoint = { x: void 0, y: void 0 }, delete t3?.crop, n2 = be(e3, t3, o2, a2);
|
|
3396
|
+
} else n2 = n2 || be(e3, t3, i3, a2);
|
|
3397
|
+
return function(e4) {
|
|
3398
|
+
const t4 = [];
|
|
3399
|
+
e4.parts.forEach((e5) => {
|
|
3400
|
+
switch (e5.transformType) {
|
|
3401
|
+
case A.CROP:
|
|
3402
|
+
t4.push(Oe(e5));
|
|
3403
|
+
break;
|
|
3404
|
+
case A.LEGACY_CROP:
|
|
3405
|
+
t4.push(ve(e5));
|
|
3406
|
+
break;
|
|
3407
|
+
case A.LEGACY_FILL:
|
|
3408
|
+
let i5 = Se(e5);
|
|
3409
|
+
e5.upscale && (i5 += Ge(e5)), t4.push(i5);
|
|
3410
|
+
break;
|
|
3411
|
+
case A.FIT:
|
|
3412
|
+
let a3 = ye(e5);
|
|
3413
|
+
e5.upscale && (a3 += Ge(e5)), t4.push(a3);
|
|
3414
|
+
break;
|
|
3415
|
+
case A.FILL:
|
|
3416
|
+
let n3 = Me(e5);
|
|
3417
|
+
e5.upscale && (n3 += Ge(e5)), t4.push(n3);
|
|
3418
|
+
break;
|
|
3419
|
+
case A.FILL_FOCAL:
|
|
3420
|
+
let r2 = we(e5);
|
|
3421
|
+
e5.upscale && (r2 += Ge(e5)), t4.push(r2);
|
|
3422
|
+
}
|
|
3423
|
+
});
|
|
3424
|
+
let i4 = t4.join("/");
|
|
3425
|
+
if (e4.quality && (i4 += Ce(e4)), e4.unsharpMask && (i4 += Fe(e4.unsharpMask)), e4.progressive || (i4 += Ne(e4)), e4.watermark && (i4 += Pe(e4)), e4.filters && (i4 += Object.keys(e4.filters).map((t5) => xe[t5](e4.filters)).join("")), e4.fileType !== k.GIF && (e4.encoding === B.AVIF ? (i4 += Be(e4), i4 += Re(e4)) : e4.encoding === B.PAVIF ? (i4 += He(e4), i4 += Re(e4)) : e4.autoEncode && (i4 += ke(e4))), e4.src?.isAnimated && e4.transformed) {
|
|
3426
|
+
const t5 = V(e4.src.id), a3 = true === e4.isPlaceholderFlow, n3 = true === e4.allowFullGIFTransformation;
|
|
3427
|
+
a3 ? i4 += Ye(e4) : t5 && n3 && (i4 += Ue(e4));
|
|
3428
|
+
}
|
|
3429
|
+
return `${e4.src.id}/${p}/${i4}/${e4.fileName}.${e4.preferredExtension}`;
|
|
3430
|
+
}(n2);
|
|
3431
|
+
}
|
|
3432
|
+
return t3.id;
|
|
3433
|
+
}
|
|
3434
|
+
const ze = { [y.CENTER]: "50% 50%", [y.TOP_LEFT]: "0% 0%", [y.TOP_RIGHT]: "100% 0%", [y.TOP]: "50% 0%", [y.BOTTOM_LEFT]: "0% 100%", [y.BOTTOM_RIGHT]: "100% 100%", [y.BOTTOM]: "50% 100%", [y.RIGHT]: "100% 50%", [y.LEFT]: "0% 50%" }, Ze = Object.entries(ze).reduce((e3, [t3, i3]) => (e3[i3] = t3, e3), {}), je = [b.TILE, b.TILE_HORIZONTAL, b.TILE_VERTICAL, b.LEGACY_BG_FIT_AND_TILE, b.LEGACY_BG_FIT_AND_TILE_HORIZONTAL, b.LEGACY_BG_FIT_AND_TILE_VERTICAL], De = [b.LEGACY_ORIGINAL_SIZE, b.ORIGINAL_SIZE, b.LEGACY_BG_NORMAL];
|
|
3435
|
+
function Ve(e3, t3, { width: i3, height: a2 }) {
|
|
3436
|
+
return e3 === b.TILE && t3.width > i3 && t3.height > a2;
|
|
3437
|
+
}
|
|
3438
|
+
function We(e3, { width: t3, height: i3 }) {
|
|
3439
|
+
if (!t3 || !i3) {
|
|
3440
|
+
const a2 = t3 || Math.min(980, e3.width), n2 = a2 / e3.width;
|
|
3441
|
+
return { width: a2, height: i3 || e3.height * n2 };
|
|
3442
|
+
}
|
|
3443
|
+
return { width: t3, height: i3 };
|
|
3444
|
+
}
|
|
3445
|
+
function qe(e3, t3, i3, a2 = "center") {
|
|
3446
|
+
const n2 = { img: {}, container: {} };
|
|
3447
|
+
if (e3 === b.SCALE_TO_FILL) {
|
|
3448
|
+
const e4 = t3.focalPoint && function(e5) {
|
|
3449
|
+
const t4 = `${e5.x}% ${e5.y}%`;
|
|
3450
|
+
return Ze[t4] || "";
|
|
3451
|
+
}(t3.focalPoint), r2 = e4 || a2;
|
|
3452
|
+
t3.focalPoint && !e4 ? n2.img = { objectPosition: Je(t3, i3, t3.focalPoint) } : n2.img = { objectPosition: ze[r2] };
|
|
3453
|
+
} else [b.LEGACY_ORIGINAL_SIZE, b.ORIGINAL_SIZE].includes(e3) ? n2.img = { objectFit: "none", top: "auto", left: "auto", right: "auto", bottom: "auto" } : je.includes(e3) && (n2.container = { backgroundSize: `${t3.width}px ${t3.height}px` });
|
|
3454
|
+
return n2;
|
|
3455
|
+
}
|
|
3456
|
+
function Je(e3, t3, i3) {
|
|
3457
|
+
const { width: a2, height: n2 } = e3, { width: r2, height: o2 } = t3, { x: c2, y: s2 } = i3;
|
|
3458
|
+
if (!r2 || !o2) return `${c2}% ${s2}%`;
|
|
3459
|
+
const l2 = Math.max(r2 / a2, o2 / n2), d2 = a2 * l2, u = n2 * l2, h = Math.max(0, Math.min(d2 - r2, d2 * (c2 / 100) - r2 / 2)), g = Math.max(0, Math.min(u - o2, u * (s2 / 100) - o2 / 2));
|
|
3460
|
+
return `${h && Math.floor(h / (d2 - r2) * 100)}% ${g && Math.floor(g / (u - o2) * 100)}%`;
|
|
3461
|
+
}
|
|
3462
|
+
const Ke = { width: "100%", height: "100%" };
|
|
3463
|
+
function Xe(e3, t3, i3, a2 = {}) {
|
|
3464
|
+
const { autoEncode: n2 = true, isSEOBot: r2, shouldLoadHQImage: o2, hasAnimation: c2, allowAnimatedTransform: s2, encoding: l2 } = a2;
|
|
3465
|
+
if (!z(e3, t3, i3)) return C;
|
|
3466
|
+
const d2 = true, u = s2 ?? d2, h = Z(t3.id, c2, u);
|
|
3467
|
+
if (!h || o2) return Qe(e3, t3, i3, { ...a2, autoEncode: n2, useSrcset: h });
|
|
3468
|
+
const g = { ...i3, ...We(t3, i3) }, { alignment: m2, htmlTag: f2 } = g, p2 = Ve(e3, t3, g), _2 = function(e4, t4, { width: i4, height: a3 }, n3 = false) {
|
|
3469
|
+
if (n3) return { width: i4, height: a3 };
|
|
3470
|
+
const r3 = !De.includes(e4), o3 = Ve(e4, t4, { width: i4, height: a3 }), c3 = !o3 && je.includes(e4), s3 = c3 ? t4.width : i4, l3 = c3 ? t4.height : a3, d3 = r3 ? function(e5, t5) {
|
|
3471
|
+
return e5 > 900 ? t5 ? 0.05 : 0.15 : e5 > 500 ? t5 ? 0.1 : 0.18 : e5 > 200 ? 0.25 : 1;
|
|
3472
|
+
}(s3, j(t4.id)) : 1;
|
|
3473
|
+
return { width: o3 ? 1920 : s3 * d3, height: l3 * d3 };
|
|
3474
|
+
}(e3, t3, g, r2), T2 = function(e4, t4, i4) {
|
|
3475
|
+
return i4 ? 0 : je.includes(t4) ? 1 : e4 > 200 ? 2 : 3;
|
|
3476
|
+
}(g.width, e3, r2), I2 = function(e4, t4) {
|
|
3477
|
+
const i4 = je.includes(e4) && !t4;
|
|
3478
|
+
return e4 === b.SCALE_TO_FILL || i4 ? b.SCALE_TO_FIT : e4;
|
|
3479
|
+
}(e3, p2), E2 = qe(e3, t3, i3, m2), { uri: L2 } = Qe(I2, t3, { ..._2, alignment: m2, htmlTag: f2 }, { autoEncode: n2, filters: T2 ? { blur: T2 } : {}, hasAnimation: c2, allowAnimatedTransform: u, encoding: l2, isPlaceholderFlow: d2 }), { attr: A2 = {}, css: y2 } = Qe(e3, t3, { ...g, alignment: m2, htmlTag: f2 }, {});
|
|
3480
|
+
return y2.img = y2.img || {}, y2.container = y2.container || {}, Object.assign(y2.img, E2.img, Ke), Object.assign(y2.container, E2.container), { uri: L2, css: y2, attr: A2, transformed: true };
|
|
3481
|
+
}
|
|
3482
|
+
function Qe(e3, t3, i3, a2) {
|
|
3483
|
+
let n2 = {};
|
|
3484
|
+
if (z(e3, t3, i3)) {
|
|
3485
|
+
const r2 = Ae(e3, t3, i3), o2 = be(e3, t3, r2, a2);
|
|
3486
|
+
n2.uri = $e(e3, t3, r2, a2, o2), a2?.useSrcset && (n2.srcset = function(e4, t4, i4, a3, n3) {
|
|
3487
|
+
const r3 = i4.pixelAspectRatio || 1;
|
|
3488
|
+
return { dpr: [`${1 === r3 ? n3.uri : $e(e4, t4, { ...i4, pixelAspectRatio: 1 }, a3)} 1x`, `${2 === r3 ? n3.uri : $e(e4, t4, { ...i4, pixelAspectRatio: 2 }, a3)} 2x`] };
|
|
3489
|
+
}(e3, t3, r2, a2, n2)), Object.assign(n2, function(e4, t4) {
|
|
3490
|
+
let i4;
|
|
3491
|
+
return i4 = t4.htmlTag === O.BG ? he : t4.htmlTag === O.SVG ? pe : fe, i4(e4, t4);
|
|
3492
|
+
}(o2, r2), { transformed: o2.transformed });
|
|
3493
|
+
} else n2 = C;
|
|
3494
|
+
return n2;
|
|
3495
|
+
}
|
|
3496
|
+
const et = "https://static.wixstatic.com/media/";
|
|
3497
|
+
ue();
|
|
3498
|
+
ue();
|
|
3499
|
+
const tt = et, { STATIC_MEDIA_URL: it } = e2, at = ({ fittingType: e3, src: t3, target: i3, options: a2 }) => {
|
|
3500
|
+
const n2 = Xe(e3, t3, i3, { ...a2, autoEncode: true });
|
|
3501
|
+
return n2?.uri && !/^[a-z]+:/.test(n2.uri) && (n2.uri = `${it}${n2.uri}`), n2;
|
|
3502
|
+
}, nt = /^[a-z]+:/, rt = (e3) => {
|
|
3503
|
+
const { id: t3, containerId: i3, uri: a2, alt: n2, name: o2 = "", role: c2, width: s2, height: l2, displayMode: d2, devicePixelRatio: u, quality: h, alignType: g, bgEffectName: m2 = "", focalPoint: p2, upscaleMethod: _2, className: T2 = "", crop: I2, imageStyles: E2 = {}, targetWidth: L2, targetHeight: b2, targetScale: A2, onLoad: y2 = () => {
|
|
3504
|
+
}, onError: M2 = () => {
|
|
3505
|
+
}, shouldUseLQIP: w2, containerWidth: O2, containerHeight: v2, getPlaceholder: S2, isInFirstFold: G2, placeholderTransition: C2, socialAttrs: R2, isSEOBot: F2, skipMeasure: N2, hasAnimation: P2, encoding: x2, isFluidLayout: k2 } = e3, B2 = r.useRef(null);
|
|
3506
|
+
let H2 = "";
|
|
3507
|
+
const Y2 = "blur" === C2, U2 = r.useRef(null);
|
|
3508
|
+
if (!U2.current) if (S2 || w2 || G2 || F2) {
|
|
3509
|
+
const e4 = { upscaleMethod: _2, ...h || {}, shouldLoadHQImage: G2, isSEOBot: F2, hasAnimation: P2, encoding: x2 };
|
|
3510
|
+
U2.current = (S2 || at)({ fittingType: d2, src: { id: a2, width: s2, height: l2, crop: I2, name: o2, focalPoint: p2 }, target: { width: O2, height: v2, alignment: g, htmlTag: "img" }, options: e4 }), H2 = !U2.current.transformed || G2 || F2 ? "" : "true";
|
|
3511
|
+
} else U2.current = { uri: void 0, css: { img: {} }, attr: { img: {}, container: {} }, transformed: false };
|
|
3512
|
+
const $2 = !F2 && (S2 || w2) && !G2 && U2.current.transformed, z2 = r.useMemo(() => JSON.stringify({ containerId: i3, ...i3 && { containerId: i3 }, ...g && { alignType: g }, ...N2 && { skipMeasure: true }, displayMode: d2, ...O2 && { targetWidth: O2 }, ...v2 && { targetHeight: v2 }, ...L2 && { targetWidth: L2 }, ...b2 && { targetHeight: b2 }, ...A2 && { targetScale: A2 }, isLQIP: $2, isSEOBot: F2, lqipTransition: C2, encoding: x2, imageData: { width: s2, height: l2, uri: a2, name: o2, displayMode: d2, hasAnimation: P2, ...h && { quality: h }, ...u && { devicePixelRatio: u }, ...p2 && { focalPoint: p2 }, ...I2 && { crop: I2 }, ..._2 && { upscaleMethod: _2 } } }), [i3, g, N2, d2, O2, v2, L2, b2, A2, $2, F2, C2, x2, s2, l2, a2, o2, P2, h, u, p2, I2, _2]), Z2 = U2.current, j2 = Z2?.uri, D2 = Z2?.srcset, V2 = Z2.css?.img, W2 = `${f} ${T2}`;
|
|
3513
|
+
r.useEffect(() => {
|
|
3514
|
+
const e4 = B2.current;
|
|
3515
|
+
y2 && e4?.currentSrc && e4?.complete && y2({ target: e4 });
|
|
3516
|
+
}, []);
|
|
3517
|
+
const q2 = Z2 && !Z2?.transformed ? `max(${s2}px, 100%)` : L2 ? `${L2}px` : null;
|
|
3518
|
+
return r.createElement("wow-image", { id: t3, class: W2, "data-image-info": z2, "data-motion-part": `BG_IMG ${i3}`, "data-bg-effect-name": m2, "data-has-ssr-src": H2, "data-animate-blur": !F2 && $2 && Y2 ? "" : void 0, "data-is-responsive": k2 ? "true" : void 0, style: q2 ? { "--wix-img-max-width": q2 } : {} }, r.createElement("img", { src: j2, ref: B2, alt: n2 || "", role: c2, style: { ...V2, ...E2 }, onLoad: y2, onError: M2, width: O2 || void 0, height: v2 || void 0, ...R2, srcSet: G2 ? D2?.dpr?.map((e4) => nt.test(e4) ? e4 : `${it}${e4}`).join(", ") : void 0, fetchpriority: G2 ? "high" : void 0, loading: false === G2 ? "lazy" : void 0, suppressHydrationWarning: true }));
|
|
3519
|
+
};
|
|
3520
|
+
var ot = "Tj01hh";
|
|
3521
|
+
var ct = (e3) => {
|
|
3522
|
+
var t3, a2;
|
|
3523
|
+
const { id: n2, alt: o2, role: s2, className: l2, imageStyles: d2 = {}, targetWidth: u, targetHeight: h, onLoad: g, onError: m2, containerWidth: f2, containerHeight: p2, isInFirstFold: _2, socialAttrs: T2, skipMeasure: I2, responsiveImageProps: E2, zoomedImageResponsiveOverride: L2, displayMode: b2 } = e3, A2 = u || f2, y2 = h || p2, { fallbackSrc: M2, srcset: w2, sources: O2, css: v2 } = E2 || {}, { width: S2, height: G2, ...C2 } = (null == E2 || null == (t3 = E2.css) ? void 0 : t3.img) || {}, R2 = "original_size" === b2 ? null == E2 || null == (a2 = E2.css) ? void 0 : a2.img : C2;
|
|
3524
|
+
var F2;
|
|
3525
|
+
return M2 && w2 && v2 ? r.createElement("img", i2()({ fetchpriority: _2 ? "high" : void 0, loading: false === _2 ? "lazy" : void 0, sizes: A2 + "px", srcSet: I2 ? null == L2 ? void 0 : L2.srcset : null == E2 ? void 0 : E2.srcset, id: n2, src: M2, alt: o2 || "", role: s2, style: { ...d2, ...I2 ? { ...null == L2 || null == (F2 = L2.css) ? void 0 : F2.img } : { ...R2 } }, onLoad: g, onError: m2, className: (0, c.Z)(l2, ot), width: A2, height: y2 }, T2)) : M2 && O2 && v2 ? r.createElement("picture", null, O2.map((e4) => {
|
|
3526
|
+
let { srcset: t4, media: i3, sizes: a3 } = e4;
|
|
3527
|
+
return r.createElement("source", { key: i3, srcSet: t4, media: i3, sizes: a3 });
|
|
3528
|
+
}), r.createElement("img", i2()({ fetchpriority: _2 ? "high" : void 0, loading: false === _2 ? "lazy" : void 0, id: n2, src: O2[0].fallbackSrc, alt: o2 || "", role: s2, style: { ...d2, objectFit: O2[0].imgStyle.objectFit, objectPosition: O2[0].imgStyle.objectPosition }, onLoad: g, onError: m2, className: (0, c.Z)(l2, ot), width: A2, height: y2 }, T2))) : r.createElement(rt, e3);
|
|
3529
|
+
};
|
|
3530
|
+
var st = (e3) => {
|
|
3531
|
+
var t3, i3, a2;
|
|
3532
|
+
const { className: n2, customIdPrefix: o2, getPlaceholder: c2, hasAnimation: s2, ...l2 } = e3, d2 = r.useMemo(() => JSON.stringify({ containerId: l2.containerId, alignType: l2.alignType, fittingType: l2.displayMode, hasAnimation: s2, imageData: { width: l2.width, height: l2.height, uri: l2.uri, name: l2.name, ...l2.quality && { quality: l2.quality }, displayMode: l2.displayMode } }), [l2, s2]), u = r.useRef(null);
|
|
3533
|
+
u.current || (u.current = c2 ? c2({ fittingType: l2.displayMode, src: { id: l2.uri, width: l2.width, height: l2.height, name: l2.name }, target: { width: l2.containerWidth, height: l2.containerHeight, alignment: l2.alignType, htmlTag: "bg" }, options: { hasAnimation: s2, allowAnimatedTransform: false } }) : { uri: void 0, css: { img: {} }, attr: { img: {}, container: {} } });
|
|
3534
|
+
const h = u.current, g = null != (t3 = null == h ? void 0 : h.uri) ? t3 : "", m2 = null != (i3 = null == (a2 = h.css) ? void 0 : a2.container) ? i3 : {}, f2 = Object.assign(g ? { backgroundImage: "url(" + g + ")" } : {}, m2);
|
|
3535
|
+
return r.createElement("wix-bg-image", { id: "" + (o2 || "bgImg_") + l2.containerId, class: n2, style: f2, "data-tiled-image-info": d2, "data-has-bg-scroll-effect": l2.hasBgScrollEffect || "", "data-bg-effect-name": l2.bgEffectName || "", "data-motion-part": "BG_IMG " + l2.containerId });
|
|
3536
|
+
};
|
|
3537
|
+
const lt = new RegExp("<%= compId %>", "g"), dt = (e3, t3) => e3.replace(lt, t3);
|
|
3538
|
+
var ut = (e3) => null == e3 ? void 0 : e3.replace(":hover", ""), ht = "bX9O_S", gt = "Z_wCwr", mt = "Jxk_UL", ft = "K8MSra", pt = "YTb3b4";
|
|
3539
|
+
const _t = { quality: { unsharpMask: { radius: 0.33, amount: 1, threshold: 0 } }, devicePixelRatio: 1 };
|
|
3540
|
+
var Tt = (e3) => {
|
|
3541
|
+
const { id: t3, videoRef: a2, videoInfo: n2, posterImageInfo: o2, muted: s2, preload: l2, loop: d2, alt: u, isVideoEnabled: h, getPlaceholder: g, extraClassName: m2 = "" } = e3;
|
|
3542
|
+
n2.containerId = ut(n2.containerId);
|
|
3543
|
+
const f2 = r.useMemo(() => JSON.stringify(n2), [n2]), p2 = r.createElement(r.Fragment, null, o2.filterEffectSvgString && r.createElement("svg", { id: "svg_" + n2.containerId, className: pt }, r.createElement("defs", { dangerouslySetInnerHTML: { __html: dt(o2.filterEffectSvgString, n2.containerId) } })), r.createElement(ct, i2()({ key: n2.videoId + "_img", id: o2.containerId + "_img", className: (0, c.Z)(gt, mt, "bgVideoposter", m2), imageStyles: { width: "100%", height: "100%" } }, o2, _t, { getPlaceholder: g })));
|
|
3544
|
+
return h ? r.createElement("wix-video", { id: t3, "data-video-info": f2, "data-motion-part": "BG_IMG " + n2.containerId, class: (0, c.Z)(ht, "bgVideo", m2) }, r.createElement("video", { key: n2.videoId + "_video", ref: a2, id: n2.containerId + "_video", className: ft, crossOrigin: "anonymous", "aria-label": u, playsInline: true, preload: l2, muted: s2, loop: d2 }), p2) : p2;
|
|
3545
|
+
}, It = "SUz0WK";
|
|
3546
|
+
var Et = (e3) => {
|
|
3547
|
+
const { id: t3, containerId: i3, pageId: a2, children: n2, bgEffectName: o2 = "", containerSize: c2 } = e3;
|
|
3548
|
+
return r.createElement("wix-bg-media", { id: t3, class: It, "data-container-id": i3, "data-container-size": ((null == c2 ? void 0 : c2.width) || 0) + ", " + ((null == c2 ? void 0 : c2.height) || 0), "data-page-id": a2, "data-bg-effect-name": o2, "data-motion-part": "BG_MEDIA " + i3 }, n2);
|
|
3549
|
+
};
|
|
3550
|
+
const Lt = "bgOverlay";
|
|
3551
|
+
var bt = "m4khSP", At = "FNxOn5";
|
|
3552
|
+
var yt = (e3) => {
|
|
3553
|
+
const { imageOverlay: t3 } = e3;
|
|
3554
|
+
return r.createElement("div", { "data-testid": Lt, className: bt }, t3 && r.createElement(st, i2()({ customIdPrefix: "bgImgOverlay_", className: At }, t3)));
|
|
3555
|
+
};
|
|
3556
|
+
const Mt = "bgLayers", wt = "colorUnderlay", Ot = "mediaPadding", vt = "canvas";
|
|
3557
|
+
var St = "MW5IWV", Gt = "N3eg0s", Ct = "Kv1aVt", Rt = "dLPlxY", Ft = "VgO9Yg", Nt = "LWbAav", Pt = "yK6aSC", xt = "K_YxMd", kt = "NGjcJN", Bt = "mNGsUM", Ht = "I8xA4L";
|
|
3558
|
+
const Yt = "bgImage";
|
|
3559
|
+
var Ut = (e3) => {
|
|
3560
|
+
const { videoRef: t3, canvasRef: a2, hasBgFullscreenScrollEffect: n2, image: o2, backgroundImage: s2, backgroundMedia: l2, video: d2, backgroundOverlay: u, shouldPadMedia: h, extraClass: g = "", shouldRenderUnderlay: m2 = !d2, reducedMotion: f2 = false, getPlaceholder: p2, hasCanvasAnimation: _2, useWixMediaCanvas: T2, onClick: I2 } = e3, { onImageLoad: E2 } = ((e4) => {
|
|
3561
|
+
let { onReady: t4, image: i3 } = e4;
|
|
3562
|
+
return (0, r.useEffect)(() => {
|
|
3563
|
+
t4 && !i3 && t4();
|
|
3564
|
+
}, [t4, i3]), { onImageLoad: (e5) => {
|
|
3565
|
+
null != i3 && i3.onLoad && i3.onLoad(e5), t4 && t4();
|
|
3566
|
+
} };
|
|
3567
|
+
})(e3), L2 = ut(e3.containerId), b2 = "img_" + ut(L2), A2 = o2 && r.createElement(ct, i2()({ id: b2, className: (0, c.Z)(Ct, Rt, Bt, Yt), imageStyles: { width: "100%", height: "100%" }, getPlaceholder: p2 }, o2, { onLoad: E2 })), y2 = s2 && r.createElement(st, i2()({}, s2, { containerId: L2, className: (0, c.Z)(Ct, Rt, Bt, Yt), getPlaceholder: p2 })), M2 = d2 && r.createElement(Tt, i2()({ id: "videoContainer_" + L2 }, d2, { extraClassName: Pt, reducedMotion: f2, videoRef: t3, getPlaceholder: p2 })), w2 = T2 && a2 || _2 ? r.createElement("wix-media-canvas", { "data-container-id": L2, class: _2 ? Ht : "" }, A2, y2, M2, r.createElement("canvas", { id: L2 + "webglcanvas", className: (0, c.Z)(xt, "webglcanvas"), "aria-label": (null == d2 ? void 0 : d2.alt) || "", role: "presentation", "data-testid": vt })) : r.createElement(r.Fragment, null, A2, y2, M2, a2 && r.createElement("canvas", { id: L2 + "webglcanvas", ref: a2, className: (0, c.Z)(xt, "webglcanvas"), "aria-label": (null == d2 ? void 0 : d2.alt) || "", role: "presentation", "data-testid": vt })), O2 = l2 ? r.createElement(Et, i2()({ id: "bgMedia_" + L2 }, l2), w2) : r.createElement("div", { id: "bgMedia_" + L2, "data-motion-part": "BG_MEDIA " + L2, className: Ft }, w2), v2 = u && r.createElement(yt, u);
|
|
3568
|
+
return r.createElement("div", { id: Mt + "_" + L2, "data-hook": Mt, "data-motion-part": "BG_LAYER " + L2, className: (0, c.Z)(St, g, { [Gt]: n2 }), onClick: I2 }, m2 && r.createElement("div", { "data-testid": wt, className: (0, c.Z)(Nt, Ct) }), h ? r.createElement("div", { "data-testid": Ot, className: kt }, O2, v2) : r.createElement(r.Fragment, null, O2, v2));
|
|
3569
|
+
};
|
|
3570
|
+
var $t = (e3) => r.createElement(Ut, e3), zt = "dkukWC", Zt = "FRCqDF", jt = "xnZvZH", Dt = "MBOSCN";
|
|
3571
|
+
const Vt = (e3, t3, i3) => {
|
|
3572
|
+
const a2 = ((e4, t4) => e4 ? [...Array(1 + (t4 || 0)).keys()].reverse().map((e5) => r.createElement("div", { key: "divider-layer-" + e5, style: { "--divider-layer-i": e5 }, className: Zt, "data-testid": "divider-layer-" + e5, "data-divider-layer": e5 })) : null)(!!t3, i3);
|
|
3573
|
+
return t3 ? r.createElement("div", { className: (0, c.Z)(zt, { [jt]: "top" === e3, [Dt]: "bottom" === e3 }), "data-testid": e3 + "-divider" }, a2) : null;
|
|
3574
|
+
};
|
|
3575
|
+
var Wt = (e3) => {
|
|
3576
|
+
var t3, i3;
|
|
3577
|
+
const a2 = r.useMemo(() => {
|
|
3578
|
+
var t4;
|
|
3579
|
+
return Vt("top", null == e3 ? void 0 : e3.hasTopDivider, null == e3 || null == (t4 = e3.topLayers) ? void 0 : t4.size);
|
|
3580
|
+
}, [null == e3 ? void 0 : e3.hasTopDivider, null == e3 || null == (t3 = e3.topLayers) ? void 0 : t3.size]), n2 = r.useMemo(() => {
|
|
3581
|
+
var t4;
|
|
3582
|
+
return Vt("bottom", null == e3 ? void 0 : e3.hasBottomDivider, null == e3 || null == (t4 = e3.bottomLayers) ? void 0 : t4.size);
|
|
3583
|
+
}, [null == e3 ? void 0 : e3.hasBottomDivider, null == e3 || null == (i3 = e3.bottomLayers) ? void 0 : i3.size]);
|
|
3584
|
+
return r.createElement(r.Fragment, null, a2, n2);
|
|
3585
|
+
};
|
|
3586
|
+
var qt = { root: "section" }, Jt = a("p1x1");
|
|
3587
|
+
const Kt = ({ size: e3, ...t3 }) => r.createElement("svg", { viewBox: "0 0 18 18", fill: "currentColor", width: e3 || "18", height: e3 || "18", ...t3 }, r.createElement("path", { d: "M7.5,5 C8.32842712,5 9,5.67157288 9,6.5 L9,11.5 C9,12.3284271 8.32842712,13 7.5,13 C6.67157288,13 6,12.3284271 6,11.5 L6,6.5 C6,5.67157288 6.67157288,5 7.5,5 Z M11.5,5 C12.3284271,5 13,5.67157288 13,6.5 L13,11.5 C13,12.3284271 12.3284271,13 11.5,13 C10.6715729,13 10,12.3284271 10,11.5 L10,6.5 C10,5.67157288 10.6715729,5 11.5,5 Z M7.5,6 C7.22385763,6 7,6.22385763 7,6.5 L7,11.5 C7,11.7761424 7.22385763,12 7.5,12 C7.77614237,12 8,11.7761424 8,11.5 L8,6.5 C8,6.22385763 7.77614237,6 7.5,6 Z M11.5,6 C11.2238576,6 11,6.22385763 11,6.5 L11,11.5 C11,11.7761424 11.2238576,12 11.5,12 C11.7761424,12 12,11.7761424 12,11.5 L12,6.5 C12,6.22385763 11.7761424,6 11.5,6 Z" }));
|
|
3588
|
+
Kt.displayName = "PauseSmall";
|
|
3589
|
+
var Xt = Kt;
|
|
3590
|
+
const Qt = ({ size: e3, ...t3 }) => r.createElement("svg", { viewBox: "0 0 18 18", fill: "currentColor", width: e3 || "18", height: e3 || "18", ...t3 }, r.createElement("path", { d: "M6.87468837,5.45041947 L12.7318793,8.46657119 C13.20163,8.68731241 13.20163,9.26940918 12.7318793,9.53342881 L6.87468837,12.5495805 C6.58008377,12.7012867 6.00070071,12.5801226 6,12.0161517 L6,5.98384828 C6,5.65247743 6.35266876,5.20682168 6.87468837,5.45041947 Z M7,11.3602529 L11.5834735,9 L7,6.63974714 L7,11.3602529 Z" }));
|
|
3591
|
+
Qt.displayName = "PlaySmall";
|
|
3592
|
+
var ei = Qt;
|
|
3593
|
+
const ti = (e3, t3) => {
|
|
3594
|
+
var a2;
|
|
3595
|
+
const { id: n2, skin: s2 = "RectangleArea", className: u, containerRootClassName: h = "", customClassNames: g = [], containerProps: f2, children: p2, fillLayers: _2 = e3.fillLayers || e3.background, tagName: T2, getPlaceholder: I2, dividers: E2, semanticClassNames: L2, onStop: b2, onClick: A2, onDblClick: y2, onMouseEnter: M2, onMouseLeave: w2, lang: O2, translations: v2, isPlayPauseSectionExperimentOn: S2, isBuilder: G2 } = e3, C2 = T2 || "section", { shouldOmitWrapperLayers: R2 } = f2, F2 = (0, c.Z)(Jt.Z[s2], h, u, L2 ? l(L2.root, ...g) : l(qt.root, ...g), { [Jt.Z.shouldOmitWrapperLayers]: R2 }), N2 = !(null == _2 || !_2.video), P2 = function(e4, t4, i3) {
|
|
3596
|
+
const a3 = o().useRef(null), n3 = o().useRef(null);
|
|
3597
|
+
return t4 ? n3.current || (n3.current = { play: () => a3.current?.play(), load: () => a3.current?.load(), pause: () => a3.current?.pause(), stop: () => {
|
|
3598
|
+
a3.current && (a3.current.pause(), a3.current.currentTime = 0, i3 && i3(a3.current));
|
|
3599
|
+
} }) : n3.current = null, o().useImperativeHandle(e4, () => n3.current || { load() {
|
|
3600
|
+
}, stop() {
|
|
3601
|
+
} }), a3;
|
|
3602
|
+
}(t3, N2, b2), [x2, k2] = r.useState(!(null != P2 && null != (a2 = P2.current) && a2.paused));
|
|
3603
|
+
return r.createElement(C2, i2()({ id: n2 }, (0, d.P5)(e3), ((e4 = {}) => {
|
|
3604
|
+
const t4 = e4.tabIndex ?? e4.tabindex ?? void 0;
|
|
3605
|
+
return void 0 !== t4 ? { tabIndex: Number(t4) } : {};
|
|
3606
|
+
})(e3.a11y || { tabIndex: -1 }), (B2 = e3.a11y, B2?.label ? { "aria-label": B2.label } : {}), { "data-block-level-container": "Section", className: F2 + " " + Jt.Z.section, "data-testid": m, onClick: A2, onDoubleClick: y2, onMouseEnter: M2, onMouseLeave: w2, lang: O2 }), _2 && !G2 && r.createElement($t, i2()({}, _2, { videoRef: P2, getPlaceholder: I2 })), N2 && S2 && !G2 && r.createElement("button", { className: "" + Jt.Z.videoPlayPauseButton, onClick: () => {
|
|
3607
|
+
const e4 = null == P2 ? void 0 : P2.current;
|
|
3608
|
+
e4 && (e4.paused ? e4.play() : e4.pause(), k2((t4) => {
|
|
3609
|
+
const i3 = !t4, a3 = document.getElementById(n2);
|
|
3610
|
+
if (a3) {
|
|
3611
|
+
a3.querySelectorAll("video").forEach((t5) => {
|
|
3612
|
+
t5 !== e4 && (i3 ? t5.play() : t5.pause());
|
|
3613
|
+
});
|
|
3614
|
+
}
|
|
3615
|
+
return i3;
|
|
3616
|
+
}));
|
|
3617
|
+
}, "aria-pressed": x2, "aria-label": null == v2 ? void 0 : v2.ariaLabel }, x2 ? r.createElement(Xt, null) : r.createElement(ei, null)), E2 && !G2 && r.createElement(Wt, E2), p2());
|
|
3618
|
+
var B2;
|
|
3619
|
+
};
|
|
3620
|
+
var ii = r.forwardRef(ti);
|
|
3621
|
+
}(), n;
|
|
3622
|
+
}();
|
|
3623
|
+
});
|
|
3624
|
+
})(Section_bundle_min$1);
|
|
3625
|
+
var Section_bundle_minExports$1 = Section_bundle_min$1.exports;
|
|
3626
|
+
const Component = /* @__PURE__ */ getDefaultExportFromCjs(Section_bundle_minExports$1);
|
|
3627
|
+
var Section_bundle_min = { exports: {} };
|
|
3628
|
+
(function(module2, exports$1) {
|
|
3629
|
+
!function(e, t) {
|
|
3630
|
+
module2.exports = t();
|
|
3631
|
+
}("undefined" != typeof self ? self : commonjsGlobal, function() {
|
|
3632
|
+
return function() {
|
|
3633
|
+
var e = { d: function(t2, o2) {
|
|
3634
|
+
for (var n2 in o2) e.o(o2, n2) && !e.o(t2, n2) && Object.defineProperty(t2, n2, { enumerable: true, get: o2[n2] });
|
|
3635
|
+
}, o: function(e2, t2) {
|
|
3636
|
+
return Object.prototype.hasOwnProperty.call(e2, t2);
|
|
3637
|
+
}, r: function(e2) {
|
|
3638
|
+
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e2, "__esModule", { value: true });
|
|
3639
|
+
} }, t = {};
|
|
3640
|
+
e.r(t), e.d(t, { default: function() {
|
|
3641
|
+
return r;
|
|
3642
|
+
} });
|
|
3643
|
+
const o = (e2) => e2.replace(/([A-Z])/g, (e3) => `-${e3.toLowerCase()}`);
|
|
3644
|
+
var n, r = (n = (e2) => {
|
|
3645
|
+
let { mapperProps: t2, stateValues: o2 } = e2;
|
|
3646
|
+
const { experiments: n2 = {} } = o2, r2 = ((e3 = {}, t3) => true === e3[t3] || "true" === e3[t3] || "new" === e3[t3])(n2, "specs.thunderbolt.playPauseSection");
|
|
3647
|
+
return { ...t2, isPlayPauseSectionExperimentOn: r2 };
|
|
3648
|
+
}, { useComponentProps: (e2, t2, r2) => {
|
|
3649
|
+
const u = ((e3) => ({ ...e3, updateStyles: (t3) => {
|
|
3650
|
+
const n2 = Object.entries(t3).reduce((e4, [t4, n3]) => {
|
|
3651
|
+
return { ...e4, [(r3 = t4, r3.startsWith("--") ? t4 : o(t4))]: void 0 === n3 ? null : n3 };
|
|
3652
|
+
var r3;
|
|
3653
|
+
}, {});
|
|
3654
|
+
e3.updateStyles(n2);
|
|
3655
|
+
} }))(r2);
|
|
3656
|
+
return n({ mapperProps: e2, stateValues: t2, controllerUtils: u });
|
|
3657
|
+
} });
|
|
3658
|
+
return t;
|
|
3659
|
+
}();
|
|
3660
|
+
});
|
|
3661
|
+
})(Section_bundle_min);
|
|
3662
|
+
var Section_bundle_minExports = Section_bundle_min.exports;
|
|
3663
|
+
const controller = /* @__PURE__ */ getDefaultExportFromCjs(Section_bundle_minExports);
|
|
3664
|
+
const Section = withNormalChildren(withController(Component, controller));
|
|
3665
|
+
exports2.Anchor = Anchor;
|
|
3666
|
+
exports2.FooterContainer_TransparentScreen = FooterContainer_TransparentScreen;
|
|
3667
|
+
exports2.FooterSection = FooterSection;
|
|
3668
|
+
exports2.HeaderContainer_TransparentScreen = HeaderContainer_TransparentScreen;
|
|
3669
|
+
exports2.HeaderSection = HeaderSection;
|
|
3670
|
+
exports2.PageGroup = PageGroup;
|
|
3671
|
+
exports2.PageSections = PageSections;
|
|
3672
|
+
exports2.Page_BasicPageSkin = Page_BasicPageSkin;
|
|
3673
|
+
exports2.Page_ResponsivePageWithColorBG = Page_ResponsivePageWithColorBG;
|
|
3674
|
+
exports2.PagesContainer = PagesContainer;
|
|
3675
|
+
exports2.ResponsiveContainer = ResponsiveContainer;
|
|
3676
|
+
exports2.ResponsivePopupPage_WithoutOverlay = ResponsivePopupPage_WithoutOverlay;
|
|
3677
|
+
exports2.Section = Section;
|
|
3678
|
+
Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
|
|
3679
|
+
});
|
|
3680
|
+
//# sourceMappingURL=system-core-components.js.map
|