callix-dialer-widget 1.3.17 → 1.3.18
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.
|
@@ -7,7 +7,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
7
7
|
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
8
8
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
9
9
|
import React, { useEffect, useState, useRef, useMemo, useCallback, StrictMode } from "react";
|
|
10
|
-
import require$$0$2 from "react-dom";
|
|
10
|
+
import require$$0$2, { createPortal } from "react-dom";
|
|
11
11
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
12
12
|
function getAugmentedNamespace(n) {
|
|
13
13
|
if (Object.prototype.hasOwnProperty.call(n, "__esModule")) return n;
|
|
@@ -55725,7 +55725,7 @@ function DraggableClientInfoModal({
|
|
|
55725
55725
|
);
|
|
55726
55726
|
return valueKey ? contactData[valueKey] : "-";
|
|
55727
55727
|
};
|
|
55728
|
-
|
|
55728
|
+
const modalContent = /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
55729
55729
|
"div",
|
|
55730
55730
|
{
|
|
55731
55731
|
ref: containerRef,
|
|
@@ -55822,6 +55822,10 @@ function DraggableClientInfoModal({
|
|
|
55822
55822
|
]
|
|
55823
55823
|
}
|
|
55824
55824
|
);
|
|
55825
|
+
if (typeof document !== "undefined") {
|
|
55826
|
+
return createPortal(modalContent, document.body);
|
|
55827
|
+
}
|
|
55828
|
+
return null;
|
|
55825
55829
|
}
|
|
55826
55830
|
function Field({ label, value }) {
|
|
55827
55831
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: tw`rounded-lg border border-slate-200 bg-white p-2`, children: [
|
|
@@ -55953,7 +55957,7 @@ function DraggableQualificationModal({
|
|
|
55953
55957
|
if (!isOpen) {
|
|
55954
55958
|
return null;
|
|
55955
55959
|
}
|
|
55956
|
-
|
|
55960
|
+
const modalContent = /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
55957
55961
|
"div",
|
|
55958
55962
|
{
|
|
55959
55963
|
ref: containerRef,
|
|
@@ -56075,6 +56079,10 @@ function DraggableQualificationModal({
|
|
|
56075
56079
|
]
|
|
56076
56080
|
}
|
|
56077
56081
|
);
|
|
56082
|
+
if (typeof document !== "undefined") {
|
|
56083
|
+
return createPortal(modalContent, document.body);
|
|
56084
|
+
}
|
|
56085
|
+
return null;
|
|
56078
56086
|
}
|
|
56079
56087
|
function InlineDialer({ variant = "default", isAuthenticated, ...props }) {
|
|
56080
56088
|
const isMiniMode = variant === "min";
|