@eka-care/medassist-widget 0.1.100-0 → 0.1.100
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/medassist-widget.js +7 -8
- package/package.json +1 -1
package/dist/medassist-widget.js
CHANGED
|
@@ -10043,7 +10043,7 @@ function xh({ isOpen: e, onClose: t, botName: n }) {
|
|
|
10043
10043
|
le,
|
|
10044
10044
|
{
|
|
10045
10045
|
onClick: t,
|
|
10046
|
-
className: "w-full bg-primary hover:bg-primary/90 text-
|
|
10046
|
+
className: "w-full bg-primary hover:bg-primary/90 text-primary-foreground",
|
|
10047
10047
|
children: "Got it"
|
|
10048
10048
|
}
|
|
10049
10049
|
)
|
|
@@ -10240,14 +10240,13 @@ function cl({
|
|
|
10240
10240
|
let ne = null;
|
|
10241
10241
|
const ye = () => {
|
|
10242
10242
|
const he = window.visualViewport;
|
|
10243
|
-
|
|
10244
|
-
|
|
10245
|
-
|
|
10246
|
-
|
|
10247
|
-
|
|
10248
|
-
ne && cancelAnimationFrame(ne), ne = requestAnimationFrame(() => {
|
|
10243
|
+
!Z || !he || (ne && cancelAnimationFrame(ne), ne = requestAnimationFrame(() => {
|
|
10244
|
+
const ve = Math.max(
|
|
10245
|
+
0,
|
|
10246
|
+
Math.round(Z.offsetHeight - he.height - he.offsetTop)
|
|
10247
|
+
);
|
|
10249
10248
|
Z.style.setProperty("--keyboard-inset", `${ve}px`);
|
|
10250
|
-
});
|
|
10249
|
+
}));
|
|
10251
10250
|
};
|
|
10252
10251
|
return window.visualViewport ? (window.visualViewport.addEventListener("resize", ye), window.visualViewport.addEventListener("scroll", ye), ye(), () => {
|
|
10253
10252
|
ne && cancelAnimationFrame(ne), window.visualViewport?.removeEventListener("resize", ye), window.visualViewport?.removeEventListener("scroll", ye), Z.style.removeProperty("--keyboard-inset");
|