@eclass/ui-kit 1.46.2 → 1.46.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/eclass-ui-kit.es.js
CHANGED
|
@@ -29923,8 +29923,6 @@ function Accessibility(props) {
|
|
|
29923
29923
|
height: "16",
|
|
29924
29924
|
viewBox: "0 0 16 16",
|
|
29925
29925
|
fill: "none",
|
|
29926
|
-
stroke: "#60798E",
|
|
29927
|
-
strokeWidth: 0.3,
|
|
29928
29926
|
children: /* @__PURE__ */ jsx("path", {
|
|
29929
29927
|
fillRule: "evenodd",
|
|
29930
29928
|
clipRule: "evenodd",
|
|
@@ -29934,50 +29932,11 @@ function Accessibility(props) {
|
|
|
29934
29932
|
})
|
|
29935
29933
|
});
|
|
29936
29934
|
}
|
|
29937
|
-
|
|
29938
|
-
|
|
29939
|
-
const
|
|
29940
|
-
|
|
29941
|
-
|
|
29942
|
-
} else {
|
|
29943
|
-
requestAnimationFrame(checkUserWay);
|
|
29944
|
-
}
|
|
29945
|
-
};
|
|
29946
|
-
try {
|
|
29947
|
-
checkUserWay();
|
|
29948
|
-
} catch (error) {
|
|
29949
|
-
reject(new Error("UserWay script failed to load"));
|
|
29950
|
-
}
|
|
29951
|
-
});
|
|
29952
|
-
};
|
|
29953
|
-
function UserWay({
|
|
29954
|
-
color: color2 = "#0189FF"
|
|
29955
|
-
}) {
|
|
29956
|
-
const [isUserWayReady, setIsUserWayReady] = useState(false);
|
|
29957
|
-
useEffect(() => {
|
|
29958
|
-
if (!document.getElementById("userway-script")) {
|
|
29959
|
-
const script = document.createElement("script");
|
|
29960
|
-
script.id = "userway-script";
|
|
29961
|
-
script.src = "https://cdn.userway.org/widget.js";
|
|
29962
|
-
script.async = true;
|
|
29963
|
-
script.setAttribute("data-account", "06mvMZzmO4");
|
|
29964
|
-
script.setAttribute("data-color", color2);
|
|
29965
|
-
script.setAttribute("data-trigger", "customTrigger");
|
|
29966
|
-
document.body.appendChild(script);
|
|
29967
|
-
}
|
|
29968
|
-
waitForUserWay().then(() => {
|
|
29969
|
-
setIsUserWayReady(true);
|
|
29970
|
-
return void 0;
|
|
29971
|
-
}).catch((error) => {
|
|
29972
|
-
console.error("Failed to load UserWay:", error);
|
|
29973
|
-
});
|
|
29974
|
-
}, [color2]);
|
|
29975
|
-
const handleButtonClick = () => {
|
|
29976
|
-
var _a;
|
|
29977
|
-
if (isUserWayReady && ((_a = window == null ? void 0 : window.UserWay) == null ? void 0 : _a.widgetOpen)) {
|
|
29978
|
-
window.UserWay.widgetOpen();
|
|
29979
|
-
} else {
|
|
29980
|
-
console.error("UserWay script not loaded yet.");
|
|
29935
|
+
function UserWay() {
|
|
29936
|
+
const triggerWidget = () => {
|
|
29937
|
+
const buttonB = document.getElementById("userWayTrigger");
|
|
29938
|
+
if (buttonB == null ? void 0 : buttonB.click) {
|
|
29939
|
+
buttonB.click();
|
|
29981
29940
|
}
|
|
29982
29941
|
};
|
|
29983
29942
|
return /* @__PURE__ */ jsx(Box, {
|
|
@@ -29988,13 +29947,14 @@ function UserWay({
|
|
|
29988
29947
|
border: "1px solid transparent",
|
|
29989
29948
|
display: "flex",
|
|
29990
29949
|
height: "30px",
|
|
29991
|
-
id: "
|
|
29950
|
+
id: "UserWayButton",
|
|
29992
29951
|
justifyContent: "center",
|
|
29993
|
-
|
|
29952
|
+
padding: "0 8px",
|
|
29994
29953
|
width: "30px",
|
|
29995
29954
|
_hover: {
|
|
29996
29955
|
background: "rgba(96, 121, 142, 0.8)"
|
|
29997
29956
|
},
|
|
29957
|
+
onClick: triggerWidget,
|
|
29998
29958
|
children: /* @__PURE__ */ jsx(Accessibility, {})
|
|
29999
29959
|
});
|
|
30000
29960
|
}
|
|
@@ -32149,7 +32109,7 @@ const LargeBox = ({
|
|
|
32149
32109
|
children: [/* @__PURE__ */ jsx(Box, {
|
|
32150
32110
|
width: "285px",
|
|
32151
32111
|
height: isMobile ? "140px" : "168px",
|
|
32152
|
-
bgImage: `
|
|
32112
|
+
bgImage: `url(${eventImage})`,
|
|
32153
32113
|
backgroundSize: "cover",
|
|
32154
32114
|
borderRadius: isMobile ? "8px 8px 0px 0px" : "8px 0 0 8px"
|
|
32155
32115
|
}), /* @__PURE__ */ jsxs(Box, {
|