@sawport/react-sdk 0.1.0-alpha.43 → 0.1.0-alpha.45
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/index.js +92 -99
- package/dist/index.umd.js +8 -8
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -41651,7 +41651,6 @@ const useRequest = ({ asyncRequest, params, ...props }, dep) => {
|
|
|
41651
41651
|
);
|
|
41652
41652
|
return { setState, next, ...rest };
|
|
41653
41653
|
};
|
|
41654
|
-
const maximizeIcon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACAEAQAAAA5p3UDAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAJcEhZcwAAAGAAAABgAPBrQs8AAAAHdElNRQflCh0XODE9tr5GAAACo0lEQVR42u3dTU7jQBBA4TaaHacJKJgkErDlSFnB7TgNGCPWLhYlIcEMY/ePqXTX+9btVpl+RAgpdggAAAAAAMCLbm6BiMivDtR1szOhnDPrAWCLAJwjAOcIwDkCcI4AnCMA51YKYByD9H2XwPoHgm8k2eurTH1vPT8ypQdABE3IC4AIqpcfABFUbf5wh2FZBMMg03ZrfT+INH+wm43I8zOfBI2aO1JdQwTNWhKAriOCJi0NQNcSQXNiAtD1RNCU2AD0mouLqAjk+tr6PvGDlAD0OiJoQmoAei0RVC8nAL2eCKqWG4DuERPBOBLBCSkRgO5DBFUqFYDuRQTVKRmA7kcEVSkdgO5JBO5pBC8vROCYyOXl4gim93eZbm6sZ0ZhRAAiQEIEcntrPTMKIwIQAYgAgQgQQhDZ7fSfQETgFhEgIYK7O+uZURgRrKOaJ4R03dNTCPf3Iby9zS8+Pw9ht7OeGStY9knw8GA9J1b0/wg4fBf+HQGH78rXCDh8l0QOB5Hj0XoOAAAAAAAAAAAAAAAAAEC1RI5HkcPBeg4YEHl85LuITn0ePl9I9eevwycCP348fCJon/7Bt8Q4iuz31vOiMJH9nodUOEcEiH9IBU80bQ8RgAhABAhEgBAZAW8+aRMRIO7ZxkTQJiIAEYAIEGIjSH9r+tzO1j8H134jAgI4cdERTH0ftz8BnLw1IyCASqwVAQFURCNY+tb0ZREQQGX0renlIiCACpWMgAAqVSoCAqhYiQgIoHK5ERBAA3IiIIBGxEdwdaXXEUAzUiIggMbItN2KDMOyCObXWd8PEsR9EhBAk0Q2mxIRWN8HMpSIwPoekCk3Auv5UUBOBHN7/7G+OW9O7bfyzHoA2CIA5wjAOQJwjgCcIwDnCAAAAAAAAMCJD8ZQvP1zR7rXAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTEwLTI5VDIzOjU2OjQ5KzAwOjAwRquYIgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0xMC0yOVQyMzo1Njo0OSswMDowMDf2IJ4AAAAASUVORK5CYII=";
|
|
41655
41654
|
var RECURRENCE = {
|
|
41656
41655
|
FREQUENCY: {
|
|
41657
41656
|
DAILY: "DAILY",
|
|
@@ -42303,7 +42302,9 @@ const Offline = react.exports.memo(({
|
|
|
42303
42302
|
country_code,
|
|
42304
42303
|
mobile,
|
|
42305
42304
|
isLoading,
|
|
42306
|
-
scheduled
|
|
42305
|
+
scheduled,
|
|
42306
|
+
continent,
|
|
42307
|
+
timezone: timezone2
|
|
42307
42308
|
}, setState] = useState({
|
|
42308
42309
|
ipAddress: "",
|
|
42309
42310
|
country: "",
|
|
@@ -42313,7 +42314,9 @@ const Offline = react.exports.memo(({
|
|
|
42313
42314
|
country_code: "",
|
|
42314
42315
|
mobile: "",
|
|
42315
42316
|
isLoading: false,
|
|
42316
|
-
scheduled: false
|
|
42317
|
+
scheduled: false,
|
|
42318
|
+
continent: void 0,
|
|
42319
|
+
timezone: void 0
|
|
42317
42320
|
});
|
|
42318
42321
|
const saved = react.exports.useRef();
|
|
42319
42322
|
const offlineSchema = create$1().shape({
|
|
@@ -42341,15 +42344,19 @@ const Offline = react.exports.memo(({
|
|
|
42341
42344
|
country_name,
|
|
42342
42345
|
longitude: longitude2,
|
|
42343
42346
|
latitude: latitude2,
|
|
42344
|
-
country_code: country_code2
|
|
42347
|
+
country_code: country_code2,
|
|
42348
|
+
timezone: timezone22
|
|
42345
42349
|
} = data2.data;
|
|
42350
|
+
const continent2 = timezone22.split("/")[0];
|
|
42346
42351
|
setState({
|
|
42347
42352
|
country: country_name,
|
|
42348
42353
|
longitude: longitude2,
|
|
42349
42354
|
latitude: latitude2,
|
|
42350
42355
|
location: region,
|
|
42351
42356
|
ipAddress: ip,
|
|
42352
|
-
country_code: country_code2
|
|
42357
|
+
country_code: country_code2,
|
|
42358
|
+
continent: continent2,
|
|
42359
|
+
timezone: timezone22
|
|
42353
42360
|
});
|
|
42354
42361
|
}).catch((error) => toast.error("Error occured, try again", {
|
|
42355
42362
|
autoClose: 2e3
|
|
@@ -42409,7 +42416,10 @@ const Offline = react.exports.memo(({
|
|
|
42409
42416
|
latitude,
|
|
42410
42417
|
longitude,
|
|
42411
42418
|
location: location2,
|
|
42412
|
-
ip_address: ipAddress
|
|
42419
|
+
ip_address: ipAddress,
|
|
42420
|
+
timezone: timezone2,
|
|
42421
|
+
continent,
|
|
42422
|
+
access_platform: "online"
|
|
42413
42423
|
});
|
|
42414
42424
|
}
|
|
42415
42425
|
resetForm({});
|
|
@@ -42422,7 +42432,7 @@ const Offline = react.exports.memo(({
|
|
|
42422
42432
|
autoClose: 2e3
|
|
42423
42433
|
});
|
|
42424
42434
|
}
|
|
42425
|
-
}, [country, latitude, longitude, location2, ipAddress, calendar2, mobile]);
|
|
42435
|
+
}, [country, latitude, longitude, location2, ipAddress, calendar2, mobile, timezone2, continent]);
|
|
42426
42436
|
const {
|
|
42427
42437
|
handleSubmit,
|
|
42428
42438
|
handleChange,
|
|
@@ -42919,19 +42929,16 @@ Step 4: Click the blue "Join" button to join meeting.`,
|
|
|
42919
42929
|
}), /* @__PURE__ */ jsx("h1", {
|
|
42920
42930
|
className: "text-alt my-0 py-2 font-weight-bold",
|
|
42921
42931
|
children: "Thank You"
|
|
42922
|
-
}), /* @__PURE__ */ jsx("
|
|
42932
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
42923
42933
|
className: "text-center my-0 py-2 text-lg text-alt",
|
|
42924
42934
|
children: "Callback request was scheduled successfully."
|
|
42925
|
-
}), /* @__PURE__ */ jsx("
|
|
42926
|
-
className: "text-center my-0 py-2 text-lg text-alt",
|
|
42927
|
-
children: "Join the Video Banking"
|
|
42928
|
-
}), /* @__PURE__ */ jsx("h1", {
|
|
42935
|
+
}), /* @__PURE__ */ jsx("h3", {
|
|
42929
42936
|
className: "mt-4 text-alt my-0 py-2 font-weight-bold",
|
|
42930
42937
|
children: "Date & Time"
|
|
42931
|
-
}), /* @__PURE__ */ jsx("
|
|
42938
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
42932
42939
|
className: "text-center my-0 py-2 text-lg text-alt",
|
|
42933
42940
|
children: hooks(date2).format("dddd, MMMM Do YYYY").toString()
|
|
42934
|
-
}), /* @__PURE__ */ jsx("
|
|
42941
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
42935
42942
|
className: "text-center my-0 py-2 text-lg text-alt",
|
|
42936
42943
|
children: hooks(`${date2}:${time2}`).format("hh:mm A").toString()
|
|
42937
42944
|
}), /* @__PURE__ */ jsx(c$2, {
|
|
@@ -43014,9 +43021,7 @@ const SubTitle = ({
|
|
|
43014
43021
|
})]
|
|
43015
43022
|
});
|
|
43016
43023
|
function WidgetOfflineHeader({
|
|
43017
|
-
company
|
|
43018
|
-
setIsWidgetLaunched,
|
|
43019
|
-
setShowTip
|
|
43024
|
+
company
|
|
43020
43025
|
}) {
|
|
43021
43026
|
return /* @__PURE__ */ jsx(Fragment, {
|
|
43022
43027
|
children: /* @__PURE__ */ jsxs("div", {
|
|
@@ -43025,36 +43030,16 @@ function WidgetOfflineHeader({
|
|
|
43025
43030
|
fontSize: 16,
|
|
43026
43031
|
color: "#fff"
|
|
43027
43032
|
},
|
|
43028
|
-
children: [/* @__PURE__ */
|
|
43033
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
43029
43034
|
className: "d-flex",
|
|
43030
|
-
children:
|
|
43035
|
+
children: /* @__PURE__ */ jsx("p", {
|
|
43031
43036
|
className: "my-0 pb-0",
|
|
43032
43037
|
style: {
|
|
43033
43038
|
fontSize: 24,
|
|
43034
43039
|
fontWeight: "bold"
|
|
43035
43040
|
},
|
|
43036
43041
|
children: "Video Banking Offline"
|
|
43037
|
-
})
|
|
43038
|
-
className: "widget-option-btn ml-3 d-flex justify-content-between align-items-center",
|
|
43039
|
-
children: /* @__PURE__ */ jsx("span", {
|
|
43040
|
-
onClick: () => {
|
|
43041
|
-
setShowTip(true);
|
|
43042
|
-
setIsWidgetLaunched(false);
|
|
43043
|
-
},
|
|
43044
|
-
className: "border-left border-right",
|
|
43045
|
-
style: {
|
|
43046
|
-
width: 25,
|
|
43047
|
-
paddingLeft: 2,
|
|
43048
|
-
paddingRight: 2
|
|
43049
|
-
},
|
|
43050
|
-
children: /* @__PURE__ */ jsx("img", {
|
|
43051
|
-
src: maximizeIcon,
|
|
43052
|
-
alt: "maximize",
|
|
43053
|
-
width: "20px",
|
|
43054
|
-
className: ""
|
|
43055
|
-
})
|
|
43056
|
-
})
|
|
43057
|
-
})]
|
|
43042
|
+
})
|
|
43058
43043
|
}), /* @__PURE__ */ jsx(SubTitle, {
|
|
43059
43044
|
from_day: company == null ? void 0 : company.from_day,
|
|
43060
43045
|
to_day: company == null ? void 0 : company.to_day,
|
|
@@ -43082,7 +43067,8 @@ function WidgetInitForm({
|
|
|
43082
43067
|
latitude,
|
|
43083
43068
|
location: location2,
|
|
43084
43069
|
country_code,
|
|
43085
|
-
continent
|
|
43070
|
+
continent,
|
|
43071
|
+
timezone: timezone2
|
|
43086
43072
|
}, setState] = useState({
|
|
43087
43073
|
ipAddress: void 0,
|
|
43088
43074
|
country: void 0,
|
|
@@ -43090,7 +43076,8 @@ function WidgetInitForm({
|
|
|
43090
43076
|
latitude: void 0,
|
|
43091
43077
|
location: void 0,
|
|
43092
43078
|
country_code: void 0,
|
|
43093
|
-
continent: void 0
|
|
43079
|
+
continent: void 0,
|
|
43080
|
+
timezone: void 0
|
|
43094
43081
|
});
|
|
43095
43082
|
const [mobile, setMobile] = useState("");
|
|
43096
43083
|
const validSchema = react.exports.useMemo(() => {
|
|
@@ -43121,9 +43108,9 @@ function WidgetInitForm({
|
|
|
43121
43108
|
longitude: longitude2,
|
|
43122
43109
|
latitude: latitude2,
|
|
43123
43110
|
country_code: country_code2,
|
|
43124
|
-
timezone:
|
|
43111
|
+
timezone: timezone22
|
|
43125
43112
|
} = data2.data;
|
|
43126
|
-
const continent2 =
|
|
43113
|
+
const continent2 = timezone22.split("/")[0];
|
|
43127
43114
|
setState({
|
|
43128
43115
|
ipAddress: ip,
|
|
43129
43116
|
country: country_name,
|
|
@@ -43131,7 +43118,8 @@ function WidgetInitForm({
|
|
|
43131
43118
|
latitude: latitude2,
|
|
43132
43119
|
location: region,
|
|
43133
43120
|
country_code: country_code2,
|
|
43134
|
-
continent: continent2
|
|
43121
|
+
continent: continent2,
|
|
43122
|
+
timezone: timezone22
|
|
43135
43123
|
});
|
|
43136
43124
|
createVisitor({
|
|
43137
43125
|
ip_address: ip,
|
|
@@ -43173,7 +43161,9 @@ function WidgetInitForm({
|
|
|
43173
43161
|
longitude,
|
|
43174
43162
|
location: location2,
|
|
43175
43163
|
source_url,
|
|
43176
|
-
continent
|
|
43164
|
+
continent,
|
|
43165
|
+
timezone: timezone2,
|
|
43166
|
+
access_platform: "online"
|
|
43177
43167
|
}, "post"), {
|
|
43178
43168
|
onError: (err) => {
|
|
43179
43169
|
toast.error("Error occured, try again", {
|
|
@@ -47015,6 +47005,7 @@ const Interval = react.exports.memo(({
|
|
|
47015
47005
|
}, [interval]);
|
|
47016
47006
|
return /* @__PURE__ */ jsx(Render, {});
|
|
47017
47007
|
});
|
|
47008
|
+
const maximizeIcon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACAEAQAAAA5p3UDAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAJcEhZcwAAAGAAAABgAPBrQs8AAAAHdElNRQflCh0XODE9tr5GAAACo0lEQVR42u3dTU7jQBBA4TaaHacJKJgkErDlSFnB7TgNGCPWLhYlIcEMY/ePqXTX+9btVpl+RAgpdggAAAAAAMCLbm6BiMivDtR1szOhnDPrAWCLAJwjAOcIwDkCcI4AnCMA51YKYByD9H2XwPoHgm8k2eurTH1vPT8ypQdABE3IC4AIqpcfABFUbf5wh2FZBMMg03ZrfT+INH+wm43I8zOfBI2aO1JdQwTNWhKAriOCJi0NQNcSQXNiAtD1RNCU2AD0mouLqAjk+tr6PvGDlAD0OiJoQmoAei0RVC8nAL2eCKqWG4DuERPBOBLBCSkRgO5DBFUqFYDuRQTVKRmA7kcEVSkdgO5JBO5pBC8vROCYyOXl4gim93eZbm6sZ0ZhRAAiQEIEcntrPTMKIwIQAYgAgQgQQhDZ7fSfQETgFhEgIYK7O+uZURgRrKOaJ4R03dNTCPf3Iby9zS8+Pw9ht7OeGStY9knw8GA9J1b0/wg4fBf+HQGH78rXCDh8l0QOB5Hj0XoOAAAAAAAAAAAAAAAAAEC1RI5HkcPBeg4YEHl85LuITn0ePl9I9eevwycCP348fCJon/7Bt8Q4iuz31vOiMJH9nodUOEcEiH9IBU80bQ8RgAhABAhEgBAZAW8+aRMRIO7ZxkTQJiIAEYAIEGIjSH9r+tzO1j8H134jAgI4cdERTH0ftz8BnLw1IyCASqwVAQFURCNY+tb0ZREQQGX0renlIiCACpWMgAAqVSoCAqhYiQgIoHK5ERBAA3IiIIBGxEdwdaXXEUAzUiIggMbItN2KDMOyCObXWd8PEsR9EhBAk0Q2mxIRWN8HMpSIwPoekCk3Auv5UUBOBHN7/7G+OW9O7bfyzHoA2CIA5wjAOQJwjgCcIwDnCAAAAAAAAMCJD8ZQvP1zR7rXAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTEwLTI5VDIzOjU2OjQ5KzAwOjAwRquYIgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0xMC0yOVQyMzo1Njo0OSswMDowMDf2IJ4AAAAASUVORK5CYII=";
|
|
47018
47009
|
const iceServers = [
|
|
47019
47010
|
{
|
|
47020
47011
|
url: "stun:global.stun.twilio.com:3478?transport=udp",
|
|
@@ -47968,7 +47959,7 @@ function useVideoCalling({ userId, conversation_id }) {
|
|
|
47968
47959
|
useSocketListeners({
|
|
47969
47960
|
listeners: {
|
|
47970
47961
|
"Recording.start": () => {
|
|
47971
|
-
|
|
47962
|
+
toast.info("This call is being recorded");
|
|
47972
47963
|
setState({ recording: true });
|
|
47973
47964
|
},
|
|
47974
47965
|
"Recording.end": () => setState({ recording: false })
|
|
@@ -48096,7 +48087,9 @@ function VideoChat({
|
|
|
48096
48087
|
display: isVisible ? "block" : "none",
|
|
48097
48088
|
overflow: "hidden",
|
|
48098
48089
|
...recording ? {
|
|
48099
|
-
border: "4px solid #db3814"
|
|
48090
|
+
border: "4px solid #db3814",
|
|
48091
|
+
width: "98%",
|
|
48092
|
+
height: "248px"
|
|
48100
48093
|
} : {},
|
|
48101
48094
|
...style2
|
|
48102
48095
|
},
|
|
@@ -49768,6 +49761,7 @@ const he = ({ id: e2, className: t2, classNameArrow: n2, variant: o2 = "dark", a
|
|
|
49768
49761
|
const G2 = { id: e2, anchorId: t2, className: i2, classNameArrow: l2, content: T2, isHtmlContent: Y2, place: O2, variant: A2, offset: L2, wrapper: H2, events: U2, positionStrategy: V2, delayShow: C2, delayHide: D2, float: W2, noArrow: b2, clickable: x2, style: S2, position: _2, isOpen: R2, setIsOpen: k2 };
|
|
49769
49762
|
return d2 ? c.exports.jsx(he, { ...G2, children: d2 }) : c.exports.jsx(he, { ...G2 });
|
|
49770
49763
|
};
|
|
49764
|
+
const ReactToastify = "";
|
|
49771
49765
|
const reactTooltip = "";
|
|
49772
49766
|
const days = {
|
|
49773
49767
|
Monday: 1,
|
|
@@ -49837,50 +49831,51 @@ function UnwrapWidget({
|
|
|
49837
49831
|
if (isLoadingCompany || isLoadingCompany === void 0) {
|
|
49838
49832
|
return null;
|
|
49839
49833
|
}
|
|
49840
|
-
return /* @__PURE__ */ jsxs(
|
|
49841
|
-
|
|
49842
|
-
|
|
49843
|
-
|
|
49844
|
-
|
|
49845
|
-
|
|
49846
|
-
|
|
49847
|
-
|
|
49848
|
-
|
|
49849
|
-
|
|
49850
|
-
|
|
49851
|
-
style: {
|
|
49852
|
-
position: "relative"
|
|
49853
|
-
},
|
|
49854
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
49855
|
-
id: "welcomeMessage",
|
|
49856
|
-
className: `widget-launcher-container m-5 ${isWidgetLaunched ? "" : "animate"}`,
|
|
49857
|
-
onClick: () => {
|
|
49858
|
-
setShowTip(false);
|
|
49859
|
-
setIsWidgetLaunched(!isWidgetLaunched);
|
|
49860
|
-
},
|
|
49861
|
-
style: {
|
|
49862
|
-
backgroundColor: `${hex_code}`
|
|
49863
|
-
},
|
|
49864
|
-
children: isWidgetLaunched ? /* @__PURE__ */ jsx("img", {
|
|
49865
|
-
alt: "closeIcon",
|
|
49866
|
-
src: closeIcon,
|
|
49867
|
-
width: 30
|
|
49868
|
-
}) : /* @__PURE__ */ jsx("img", {
|
|
49869
|
-
alt: "videoIcon",
|
|
49870
|
-
src: videoIcon,
|
|
49871
|
-
width: 30
|
|
49872
|
-
})
|
|
49873
|
-
}), /* @__PURE__ */ jsx(ve, {
|
|
49874
|
-
place: "left",
|
|
49875
|
-
isOpen: showTip,
|
|
49876
|
-
anchorId: "welcomeMessage",
|
|
49877
|
-
className: "p-3",
|
|
49834
|
+
return /* @__PURE__ */ jsxs(Fragment, {
|
|
49835
|
+
children: [/* @__PURE__ */ jsx(ToastContainer, {}), /* @__PURE__ */ jsxs("div", {
|
|
49836
|
+
className: `widget-cover mb-2 ${isWidgetLaunched ? "widget-cover-container" : ""}`,
|
|
49837
|
+
children: [/* @__PURE__ */ jsx(WidgetFormDisplay, {
|
|
49838
|
+
companyIsClosed,
|
|
49839
|
+
company_id,
|
|
49840
|
+
company,
|
|
49841
|
+
companyUser,
|
|
49842
|
+
setIsWidgetLaunched,
|
|
49843
|
+
isWidgetLaunched
|
|
49844
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
49878
49845
|
style: {
|
|
49879
|
-
|
|
49880
|
-
width: 240,
|
|
49881
|
-
fontWeight: 600
|
|
49846
|
+
position: "relative"
|
|
49882
49847
|
},
|
|
49883
|
-
children:
|
|
49848
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
49849
|
+
id: "welcomeMessage",
|
|
49850
|
+
className: `widget-launcher-container m-5 ${isWidgetLaunched ? "" : "animate"}`,
|
|
49851
|
+
onClick: () => {
|
|
49852
|
+
setShowTip(false);
|
|
49853
|
+
setIsWidgetLaunched(!isWidgetLaunched);
|
|
49854
|
+
},
|
|
49855
|
+
style: {
|
|
49856
|
+
backgroundColor: `${hex_code}`
|
|
49857
|
+
},
|
|
49858
|
+
children: isWidgetLaunched ? /* @__PURE__ */ jsx("img", {
|
|
49859
|
+
alt: "closeIcon",
|
|
49860
|
+
src: closeIcon,
|
|
49861
|
+
width: 30
|
|
49862
|
+
}) : /* @__PURE__ */ jsx("img", {
|
|
49863
|
+
alt: "videoIcon",
|
|
49864
|
+
src: videoIcon,
|
|
49865
|
+
width: 30
|
|
49866
|
+
})
|
|
49867
|
+
}), /* @__PURE__ */ jsx(ve, {
|
|
49868
|
+
place: "left",
|
|
49869
|
+
isOpen: showTip,
|
|
49870
|
+
anchorId: "welcomeMessage",
|
|
49871
|
+
className: "p-3",
|
|
49872
|
+
style: {
|
|
49873
|
+
backgroundColor: `${hex_code}`,
|
|
49874
|
+
width: 240,
|
|
49875
|
+
fontWeight: 600
|
|
49876
|
+
},
|
|
49877
|
+
children: "For Diaspora Banking, click here to start Video Banking."
|
|
49878
|
+
})]
|
|
49884
49879
|
})]
|
|
49885
49880
|
})]
|
|
49886
49881
|
});
|
|
@@ -49894,8 +49889,7 @@ const Header = react.exports.memo(function({
|
|
|
49894
49889
|
agent,
|
|
49895
49890
|
quickStopChat,
|
|
49896
49891
|
company,
|
|
49897
|
-
videoRef
|
|
49898
|
-
setShowTip
|
|
49892
|
+
videoRef
|
|
49899
49893
|
}) {
|
|
49900
49894
|
return /* @__PURE__ */ jsx("div", {
|
|
49901
49895
|
id: "widget-header-container",
|
|
@@ -49911,9 +49905,7 @@ const Header = react.exports.memo(function({
|
|
|
49911
49905
|
quickStopChat,
|
|
49912
49906
|
videoRef
|
|
49913
49907
|
}) : /* @__PURE__ */ jsx(WidgetOnlineHeader, {}) : /* @__PURE__ */ jsx(WidgetOfflineHeader, {
|
|
49914
|
-
company
|
|
49915
|
-
setIsWidgetLaunched,
|
|
49916
|
-
setShowTip
|
|
49908
|
+
company
|
|
49917
49909
|
})
|
|
49918
49910
|
});
|
|
49919
49911
|
});
|
|
@@ -49923,8 +49915,7 @@ const WidgetFormDisplay = react.exports.memo(({
|
|
|
49923
49915
|
company,
|
|
49924
49916
|
companyUser,
|
|
49925
49917
|
setIsWidgetLaunched,
|
|
49926
|
-
isWidgetLaunched
|
|
49927
|
-
setShowTip
|
|
49918
|
+
isWidgetLaunched
|
|
49928
49919
|
}) => {
|
|
49929
49920
|
var _a, _b, _c, _d;
|
|
49930
49921
|
const {
|
|
@@ -50040,8 +50031,7 @@ const WidgetFormDisplay = react.exports.memo(({
|
|
|
50040
50031
|
agent,
|
|
50041
50032
|
quickStopChat,
|
|
50042
50033
|
company,
|
|
50043
|
-
videoRef
|
|
50044
|
-
setShowTip
|
|
50034
|
+
videoRef
|
|
50045
50035
|
}), !!((_c = (_b = dataRef == null ? void 0 : dataRef.current) == null ? void 0 : _b.wait) == null ? void 0 : _c.createdAt) && !stateRef.current.agent && /* @__PURE__ */ jsx(LongestWaitime, {}), /* @__PURE__ */ jsx("div", {
|
|
50046
50036
|
className: `widget-body-container py-1 px-3 ${companyClosed && "widget-body-container-offline"} `,
|
|
50047
50037
|
children: isLoadingCustomer || isLoadingCustomer === void 0 ? /* @__PURE__ */ jsx(Spinner$2, {
|
|
@@ -50088,6 +50078,9 @@ const WidgetFormDisplay = react.exports.memo(({
|
|
|
50088
50078
|
const Footer = () => /* @__PURE__ */ jsx("div", {
|
|
50089
50079
|
className: "widget-footer-container",
|
|
50090
50080
|
children: /* @__PURE__ */ jsxs("div", {
|
|
50081
|
+
style: {
|
|
50082
|
+
fontSize: 12
|
|
50083
|
+
},
|
|
50091
50084
|
className: "d-flex justify-content-center align-items-center",
|
|
50092
50085
|
children: [/* @__PURE__ */ jsx("span", {
|
|
50093
50086
|
className: "mr-2",
|