call-live-sdk1 0.0.1 → 0.0.2
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/assets/style.CUBOqitV.css +1 -0
- package/dist/assets/style.css +1 -1
- package/dist/call-live-sdk.es.js +334 -268
- package/dist/call-live-sdk.umd.js +1 -1
- package/dist/stats-prod.html +1 -1
- package/dist/stores/liveInfo.d.ts +1 -1
- package/package.json +1 -1
- package/dist/assets/style.Ld_602eh.css +0 -1
package/dist/call-live-sdk.es.js
CHANGED
|
@@ -25589,6 +25589,18 @@ const createImpl = (createState) => {
|
|
|
25589
25589
|
return useBoundStore;
|
|
25590
25590
|
};
|
|
25591
25591
|
const create$c = (createState) => createState ? createImpl(createState) : createImpl;
|
|
25592
|
+
var define_import_meta_env_default = {};
|
|
25593
|
+
const envConfig$1 = {
|
|
25594
|
+
// 环境名称
|
|
25595
|
+
env: define_import_meta_env_default.VITE_ENV || "development",
|
|
25596
|
+
// 地图相关配置
|
|
25597
|
+
amapKey: "d3e9b4bd66a3ed8533f2e5d01c24e273",
|
|
25598
|
+
amapCode: "ff1c6caa84b5fe4e179dc6a84580995c",
|
|
25599
|
+
// SDK 授权配置
|
|
25600
|
+
queenSdkKey: "hP7in57avgV12eJB7dff0052b8ac0481da28769b23b37bc77",
|
|
25601
|
+
// API 相关配置
|
|
25602
|
+
liveProxyUrl: "https://api.lfeiyao.com"
|
|
25603
|
+
};
|
|
25592
25604
|
var ErrorSeverity = /* @__PURE__ */ ((ErrorSeverity2) => {
|
|
25593
25605
|
ErrorSeverity2["SEVERE"] = "severe";
|
|
25594
25606
|
ErrorSeverity2["WARNING"] = "warning";
|
|
@@ -25601,27 +25613,30 @@ var GlobalErrorType = /* @__PURE__ */ ((GlobalErrorType2) => {
|
|
|
25601
25613
|
GlobalErrorType2["OTHER_ERROR"] = "other_error";
|
|
25602
25614
|
return GlobalErrorType2;
|
|
25603
25615
|
})(GlobalErrorType || {});
|
|
25604
|
-
const
|
|
25616
|
+
const envConfig = {
|
|
25605
25617
|
callConfig: {
|
|
25606
|
-
el: "root",
|
|
25607
|
-
sign: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlZGl0aW9uX2lkIjo0NywiZXhwIjoxNzY2OTg2NDY2LCJpYXQiOjE3NjYzODE2NjYsIm5iZiI6MTc2NjM4MTY2Niwic3ViX3VzZXJpZCI6MCwidXNlcmlkIjoiMzg3MzU5ODkifQ.PoX2zUuJycp_Qt8obbKNO1m6GcAWBYklaeIi2IgxnEI",
|
|
25608
|
-
liveId: 53065,
|
|
25609
|
-
title: "test",
|
|
25618
|
+
el: envConfig$1.env === "production" ? "" : "root",
|
|
25619
|
+
sign: envConfig$1.env === "production" ? "" : "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlZGl0aW9uX2lkIjo0NywiZXhwIjoxNzY2OTg2NDY2LCJpYXQiOjE3NjYzODE2NjYsIm5iZiI6MTc2NjM4MTY2Niwic3ViX3VzZXJpZCI6MCwidXNlcmlkIjoiMzg3MzU5ODkifQ.PoX2zUuJycp_Qt8obbKNO1m6GcAWBYklaeIi2IgxnEI",
|
|
25620
|
+
liveId: envConfig$1.env === "production" ? null : 53065,
|
|
25621
|
+
title: envConfig$1.env === "production" ? "" : "test",
|
|
25610
25622
|
components: {
|
|
25611
25623
|
chat: { enabled: true },
|
|
25612
25624
|
team: { enabled: true },
|
|
25613
25625
|
call: { enabled: true, inviteLink: "" }
|
|
25614
25626
|
},
|
|
25615
|
-
agentId: 38735989,
|
|
25616
|
-
apiDomain:
|
|
25627
|
+
agentId: envConfig$1.env === "production" ? null : 38735989,
|
|
25628
|
+
apiDomain: envConfig$1.liveProxyUrl
|
|
25617
25629
|
},
|
|
25618
25630
|
guestConfig: {
|
|
25619
25631
|
el: "",
|
|
25620
|
-
sign: "",
|
|
25621
|
-
liveId: 53065,
|
|
25622
|
-
agentId: 38735989,
|
|
25623
|
-
apiDomain:
|
|
25624
|
-
}
|
|
25632
|
+
sign: envConfig$1.env === "production" ? "" : "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlZGl0aW9uX2lkIjo0NywiZXhwIjoxNzY2OTg2NDY2LCJpYXQiOjE3NjYzODE2NjYsIm5iZiI6MTc2NjM4MTY2Niwic3ViX3VzZXJpZCI6MCwidXNlcmlkIjoiMzg3MzU5ODkifQ.PoX2zUuJycp_Qt8obbKNO1m6GcAWBYklaeIi2IgxnEI",
|
|
25633
|
+
liveId: envConfig$1.env === "production" ? null : 53065,
|
|
25634
|
+
agentId: envConfig$1.env === "production" ? null : 38735989,
|
|
25635
|
+
apiDomain: envConfig$1.liveProxyUrl
|
|
25636
|
+
}
|
|
25637
|
+
};
|
|
25638
|
+
const useSdkStore = create$c((set3, get4) => ({
|
|
25639
|
+
...envConfig,
|
|
25625
25640
|
// 初始错误状态
|
|
25626
25641
|
globalError: null,
|
|
25627
25642
|
setGuestConfig: (config2) => set3({ guestConfig: config2 }),
|
|
@@ -25676,6 +25691,178 @@ const useSdkStore = create$c((set3, get4) => ({
|
|
|
25676
25691
|
clearGlobalError: () => set3({ globalError: null })
|
|
25677
25692
|
}));
|
|
25678
25693
|
const useLiveId = () => useSdkStore((state) => state.getLiveId());
|
|
25694
|
+
function withPureRenderTheme(Component) {
|
|
25695
|
+
return (props) => /* @__PURE__ */ reactExports.createElement(ConfigProvider$1, {
|
|
25696
|
+
theme: {
|
|
25697
|
+
token: {
|
|
25698
|
+
motion: false,
|
|
25699
|
+
zIndexPopupBase: 0
|
|
25700
|
+
}
|
|
25701
|
+
}
|
|
25702
|
+
}, /* @__PURE__ */ reactExports.createElement(Component, Object.assign({}, props)));
|
|
25703
|
+
}
|
|
25704
|
+
const genPurePanel = (Component, alignPropName, postProps, defaultPrefixCls2, getDropdownCls) => {
|
|
25705
|
+
const PurePanel2 = (props) => {
|
|
25706
|
+
const {
|
|
25707
|
+
prefixCls: customizePrefixCls,
|
|
25708
|
+
style: style2
|
|
25709
|
+
} = props;
|
|
25710
|
+
const holderRef = reactExports.useRef(null);
|
|
25711
|
+
const [popupHeight, setPopupHeight] = reactExports.useState(0);
|
|
25712
|
+
const [popupWidth, setPopupWidth] = reactExports.useState(0);
|
|
25713
|
+
const [open2, setOpen] = useMergedState(false, {
|
|
25714
|
+
value: props.open
|
|
25715
|
+
});
|
|
25716
|
+
const {
|
|
25717
|
+
getPrefixCls
|
|
25718
|
+
} = reactExports.useContext(ConfigContext);
|
|
25719
|
+
const prefixCls = getPrefixCls(defaultPrefixCls2 || "select", customizePrefixCls);
|
|
25720
|
+
reactExports.useEffect(() => {
|
|
25721
|
+
setOpen(true);
|
|
25722
|
+
if (typeof ResizeObserver !== "undefined") {
|
|
25723
|
+
const resizeObserver2 = new ResizeObserver((entries) => {
|
|
25724
|
+
const element = entries[0].target;
|
|
25725
|
+
setPopupHeight(element.offsetHeight + 8);
|
|
25726
|
+
setPopupWidth(element.offsetWidth);
|
|
25727
|
+
});
|
|
25728
|
+
const interval = setInterval(() => {
|
|
25729
|
+
var _a2;
|
|
25730
|
+
const dropdownCls = getDropdownCls ? `.${getDropdownCls(prefixCls)}` : `.${prefixCls}-dropdown`;
|
|
25731
|
+
const popup = (_a2 = holderRef.current) === null || _a2 === void 0 ? void 0 : _a2.querySelector(dropdownCls);
|
|
25732
|
+
if (popup) {
|
|
25733
|
+
clearInterval(interval);
|
|
25734
|
+
resizeObserver2.observe(popup);
|
|
25735
|
+
}
|
|
25736
|
+
}, 10);
|
|
25737
|
+
return () => {
|
|
25738
|
+
clearInterval(interval);
|
|
25739
|
+
resizeObserver2.disconnect();
|
|
25740
|
+
};
|
|
25741
|
+
}
|
|
25742
|
+
}, [prefixCls]);
|
|
25743
|
+
let mergedProps = Object.assign(Object.assign({}, props), {
|
|
25744
|
+
style: Object.assign(Object.assign({}, style2), {
|
|
25745
|
+
margin: 0
|
|
25746
|
+
}),
|
|
25747
|
+
open: open2,
|
|
25748
|
+
visible: open2,
|
|
25749
|
+
getPopupContainer: () => holderRef.current
|
|
25750
|
+
});
|
|
25751
|
+
if (postProps) {
|
|
25752
|
+
mergedProps = postProps(mergedProps);
|
|
25753
|
+
}
|
|
25754
|
+
if (alignPropName) {
|
|
25755
|
+
Object.assign(mergedProps, {
|
|
25756
|
+
[alignPropName]: {
|
|
25757
|
+
overflow: {
|
|
25758
|
+
adjustX: false,
|
|
25759
|
+
adjustY: false
|
|
25760
|
+
}
|
|
25761
|
+
}
|
|
25762
|
+
});
|
|
25763
|
+
}
|
|
25764
|
+
const mergedStyle = {
|
|
25765
|
+
paddingBottom: popupHeight,
|
|
25766
|
+
position: "relative",
|
|
25767
|
+
minWidth: popupWidth
|
|
25768
|
+
};
|
|
25769
|
+
return /* @__PURE__ */ reactExports.createElement("div", {
|
|
25770
|
+
ref: holderRef,
|
|
25771
|
+
style: mergedStyle
|
|
25772
|
+
}, /* @__PURE__ */ reactExports.createElement(Component, Object.assign({}, mergedProps)));
|
|
25773
|
+
};
|
|
25774
|
+
return withPureRenderTheme(PurePanel2);
|
|
25775
|
+
};
|
|
25776
|
+
var __rest$1d = function(s3, e3) {
|
|
25777
|
+
var t2 = {};
|
|
25778
|
+
for (var p2 in s3)
|
|
25779
|
+
if (Object.prototype.hasOwnProperty.call(s3, p2) && e3.indexOf(p2) < 0)
|
|
25780
|
+
t2[p2] = s3[p2];
|
|
25781
|
+
if (s3 != null && typeof Object.getOwnPropertySymbols === "function")
|
|
25782
|
+
for (var i = 0, p2 = Object.getOwnPropertySymbols(s3); i < p2.length; i++) {
|
|
25783
|
+
if (e3.indexOf(p2[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s3, p2[i]))
|
|
25784
|
+
t2[p2[i]] = s3[p2[i]];
|
|
25785
|
+
}
|
|
25786
|
+
return t2;
|
|
25787
|
+
};
|
|
25788
|
+
const PurePanel$b = (props) => {
|
|
25789
|
+
const {
|
|
25790
|
+
prefixCls: customizePrefixCls,
|
|
25791
|
+
className,
|
|
25792
|
+
closeIcon,
|
|
25793
|
+
closable,
|
|
25794
|
+
type: type4,
|
|
25795
|
+
title,
|
|
25796
|
+
children,
|
|
25797
|
+
footer
|
|
25798
|
+
} = props, restProps = __rest$1d(props, ["prefixCls", "className", "closeIcon", "closable", "type", "title", "children", "footer"]);
|
|
25799
|
+
const {
|
|
25800
|
+
getPrefixCls
|
|
25801
|
+
} = reactExports.useContext(ConfigContext);
|
|
25802
|
+
const rootPrefixCls = getPrefixCls();
|
|
25803
|
+
const prefixCls = customizePrefixCls || getPrefixCls("modal");
|
|
25804
|
+
const rootCls = useCSSVarCls(rootPrefixCls);
|
|
25805
|
+
const [wrapCSSVar, hashId, cssVarCls] = useStyle$$(prefixCls, rootCls);
|
|
25806
|
+
const confirmPrefixCls = `${prefixCls}-confirm`;
|
|
25807
|
+
let additionalProps = {};
|
|
25808
|
+
if (type4) {
|
|
25809
|
+
additionalProps = {
|
|
25810
|
+
closable: closable !== null && closable !== void 0 ? closable : false,
|
|
25811
|
+
title: "",
|
|
25812
|
+
footer: "",
|
|
25813
|
+
children: /* @__PURE__ */ reactExports.createElement(ConfirmContent, Object.assign({}, props, {
|
|
25814
|
+
prefixCls,
|
|
25815
|
+
confirmPrefixCls,
|
|
25816
|
+
rootPrefixCls,
|
|
25817
|
+
content: children
|
|
25818
|
+
}))
|
|
25819
|
+
};
|
|
25820
|
+
} else {
|
|
25821
|
+
additionalProps = {
|
|
25822
|
+
closable: closable !== null && closable !== void 0 ? closable : true,
|
|
25823
|
+
title,
|
|
25824
|
+
footer: footer !== null && /* @__PURE__ */ reactExports.createElement(Footer$3, Object.assign({}, props)),
|
|
25825
|
+
children
|
|
25826
|
+
};
|
|
25827
|
+
}
|
|
25828
|
+
return wrapCSSVar(/* @__PURE__ */ reactExports.createElement(Panel$2, Object.assign({
|
|
25829
|
+
prefixCls,
|
|
25830
|
+
className: classNames$1(hashId, `${prefixCls}-pure-panel`, type4 && confirmPrefixCls, type4 && `${confirmPrefixCls}-${type4}`, className, cssVarCls, rootCls)
|
|
25831
|
+
}, restProps, {
|
|
25832
|
+
closeIcon: renderCloseIcon(prefixCls, closeIcon),
|
|
25833
|
+
closable
|
|
25834
|
+
}, additionalProps)));
|
|
25835
|
+
};
|
|
25836
|
+
const PurePanel$c = withPureRenderTheme(PurePanel$b);
|
|
25837
|
+
function modalWarn(props) {
|
|
25838
|
+
return confirm$1(withWarn(props));
|
|
25839
|
+
}
|
|
25840
|
+
const Modal = Modal$1;
|
|
25841
|
+
Modal.useModal = useModal;
|
|
25842
|
+
Modal.info = function infoFn(props) {
|
|
25843
|
+
return confirm$1(withInfo(props));
|
|
25844
|
+
};
|
|
25845
|
+
Modal.success = function successFn(props) {
|
|
25846
|
+
return confirm$1(withSuccess(props));
|
|
25847
|
+
};
|
|
25848
|
+
Modal.error = function errorFn(props) {
|
|
25849
|
+
return confirm$1(withError(props));
|
|
25850
|
+
};
|
|
25851
|
+
Modal.warning = modalWarn;
|
|
25852
|
+
Modal.warn = modalWarn;
|
|
25853
|
+
Modal.confirm = function confirmFn(props) {
|
|
25854
|
+
return confirm$1(withConfirm(props));
|
|
25855
|
+
};
|
|
25856
|
+
Modal.destroyAll = function destroyAllFn() {
|
|
25857
|
+
while (destroyFns.length) {
|
|
25858
|
+
const close = destroyFns.pop();
|
|
25859
|
+
if (close) {
|
|
25860
|
+
close();
|
|
25861
|
+
}
|
|
25862
|
+
}
|
|
25863
|
+
};
|
|
25864
|
+
Modal.config = modalGlobalConfig;
|
|
25865
|
+
Modal._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$c;
|
|
25679
25866
|
const genCardHeadStyle = (token2) => {
|
|
25680
25867
|
const {
|
|
25681
25868
|
antCls,
|
|
@@ -31067,7 +31254,7 @@ function useAnimateConfig(prefixCls, animated2 = {
|
|
|
31067
31254
|
}
|
|
31068
31255
|
return mergedAnimated;
|
|
31069
31256
|
}
|
|
31070
|
-
var __rest$
|
|
31257
|
+
var __rest$1c = function(s3, e3) {
|
|
31071
31258
|
var t2 = {};
|
|
31072
31259
|
for (var p2 in s3)
|
|
31073
31260
|
if (Object.prototype.hasOwnProperty.call(s3, p2) && e3.indexOf(p2) < 0)
|
|
@@ -31101,7 +31288,7 @@ function useLegacyItems$2(items, children) {
|
|
|
31101
31288
|
} = node2;
|
|
31102
31289
|
const _a2 = props || {}, {
|
|
31103
31290
|
tab: tab2
|
|
31104
|
-
} = _a2, restProps = __rest$
|
|
31291
|
+
} = _a2, restProps = __rest$1c(_a2, ["tab"]);
|
|
31105
31292
|
const item = Object.assign(Object.assign({
|
|
31106
31293
|
key: String(key)
|
|
31107
31294
|
}, restProps), {
|
|
@@ -32010,7 +32197,7 @@ const useStyle$X = genStyleHooks("Tabs", (token2) => {
|
|
|
32010
32197
|
return [genSizeStyle$4(tabsToken), genRtlStyle$2(tabsToken), genPositionStyle(tabsToken), genDropdownStyle(tabsToken), genCardStyle(tabsToken), genTabsStyle(tabsToken), genMotionStyle$2(tabsToken)];
|
|
32011
32198
|
}, prepareComponentToken$u);
|
|
32012
32199
|
const TabPane$2 = () => null;
|
|
32013
|
-
var __rest$
|
|
32200
|
+
var __rest$1b = function(s3, e3) {
|
|
32014
32201
|
var t2 = {};
|
|
32015
32202
|
for (var p2 in s3)
|
|
32016
32203
|
if (Object.prototype.hasOwnProperty.call(s3, p2) && e3.indexOf(p2) < 0)
|
|
@@ -32045,7 +32232,7 @@ const InternalTabs = /* @__PURE__ */ reactExports.forwardRef((props, ref) => {
|
|
|
32045
32232
|
indicator,
|
|
32046
32233
|
destroyInactiveTabPane,
|
|
32047
32234
|
destroyOnHidden
|
|
32048
|
-
} = props, otherProps = __rest$
|
|
32235
|
+
} = props, otherProps = __rest$1b(props, ["type", "className", "rootClassName", "size", "onEdit", "hideAdd", "centered", "addIcon", "removeIcon", "moreIcon", "more", "popupClassName", "children", "items", "animated", "style", "indicatorSize", "indicator", "destroyInactiveTabPane", "destroyOnHidden"]);
|
|
32049
32236
|
const {
|
|
32050
32237
|
prefixCls: customizePrefixCls
|
|
32051
32238
|
} = otherProps;
|
|
@@ -32113,7 +32300,7 @@ const InternalTabs = /* @__PURE__ */ reactExports.forwardRef((props, ref) => {
|
|
|
32113
32300
|
});
|
|
32114
32301
|
const Tabs$2 = InternalTabs;
|
|
32115
32302
|
Tabs$2.TabPane = TabPane$2;
|
|
32116
|
-
var __rest$
|
|
32303
|
+
var __rest$1a = function(s3, e3) {
|
|
32117
32304
|
var t2 = {};
|
|
32118
32305
|
for (var p2 in s3)
|
|
32119
32306
|
if (Object.prototype.hasOwnProperty.call(s3, p2) && e3.indexOf(p2) < 0)
|
|
@@ -32130,7 +32317,7 @@ const Grid$1 = (_a2) => {
|
|
|
32130
32317
|
prefixCls,
|
|
32131
32318
|
className,
|
|
32132
32319
|
hoverable = true
|
|
32133
|
-
} = _a2, props = __rest$
|
|
32320
|
+
} = _a2, props = __rest$1a(_a2, ["prefixCls", "className", "hoverable"]);
|
|
32134
32321
|
const {
|
|
32135
32322
|
getPrefixCls
|
|
32136
32323
|
} = reactExports.useContext(ConfigContext);
|
|
@@ -32161,7 +32348,7 @@ const useVariant = (component, variant, legacyBordered) => {
|
|
|
32161
32348
|
const enableVariantCls = Variants.includes(mergedVariant);
|
|
32162
32349
|
return [mergedVariant, enableVariantCls];
|
|
32163
32350
|
};
|
|
32164
|
-
var __rest$
|
|
32351
|
+
var __rest$19 = function(s3, e3) {
|
|
32165
32352
|
var t2 = {};
|
|
32166
32353
|
for (var p2 in s3)
|
|
32167
32354
|
if (Object.prototype.hasOwnProperty.call(s3, p2) && e3.indexOf(p2) < 0)
|
|
@@ -32218,7 +32405,7 @@ const Card$2 = /* @__PURE__ */ reactExports.forwardRef((props, ref) => {
|
|
|
32218
32405
|
tabProps = {},
|
|
32219
32406
|
classNames: customClassNames,
|
|
32220
32407
|
styles: customStyles
|
|
32221
|
-
} = props, others = __rest$
|
|
32408
|
+
} = props, others = __rest$19(props, ["prefixCls", "className", "rootClassName", "style", "extra", "headStyle", "bodyStyle", "title", "loading", "bordered", "variant", "size", "type", "cover", "actions", "tabList", "children", "activeTabKey", "defaultActiveTabKey", "tabBarExtraContent", "hoverable", "tabProps", "classNames", "styles"]);
|
|
32222
32409
|
const {
|
|
32223
32410
|
getPrefixCls,
|
|
32224
32411
|
direction,
|
|
@@ -32272,7 +32459,7 @@ const Card$2 = /* @__PURE__ */ reactExports.forwardRef((props, ref) => {
|
|
|
32272
32459
|
items: tabList.map((_a2) => {
|
|
32273
32460
|
var {
|
|
32274
32461
|
tab: tab2
|
|
32275
|
-
} = _a2, item = __rest$
|
|
32462
|
+
} = _a2, item = __rest$19(_a2, ["tab"]);
|
|
32276
32463
|
return Object.assign({
|
|
32277
32464
|
label: tab2
|
|
32278
32465
|
}, item);
|
|
@@ -32332,7 +32519,7 @@ const Card$2 = /* @__PURE__ */ reactExports.forwardRef((props, ref) => {
|
|
|
32332
32519
|
style: mergedStyle
|
|
32333
32520
|
}), head, coverDom, body, actionDom));
|
|
32334
32521
|
});
|
|
32335
|
-
var __rest$
|
|
32522
|
+
var __rest$18 = function(s3, e3) {
|
|
32336
32523
|
var t2 = {};
|
|
32337
32524
|
for (var p2 in s3)
|
|
32338
32525
|
if (Object.prototype.hasOwnProperty.call(s3, p2) && e3.indexOf(p2) < 0)
|
|
@@ -32351,7 +32538,7 @@ const Meta = (props) => {
|
|
|
32351
32538
|
avatar,
|
|
32352
32539
|
title,
|
|
32353
32540
|
description: description2
|
|
32354
|
-
} = props, others = __rest$
|
|
32541
|
+
} = props, others = __rest$18(props, ["prefixCls", "className", "avatar", "title", "description"]);
|
|
32355
32542
|
const {
|
|
32356
32543
|
getPrefixCls
|
|
32357
32544
|
} = reactExports.useContext(ConfigContext);
|
|
@@ -33193,184 +33380,16 @@ const ErrorPage = ({
|
|
|
33193
33380
|
})
|
|
33194
33381
|
});
|
|
33195
33382
|
};
|
|
33196
|
-
function withPureRenderTheme(Component) {
|
|
33197
|
-
return (props) => /* @__PURE__ */ reactExports.createElement(ConfigProvider$1, {
|
|
33198
|
-
theme: {
|
|
33199
|
-
token: {
|
|
33200
|
-
motion: false,
|
|
33201
|
-
zIndexPopupBase: 0
|
|
33202
|
-
}
|
|
33203
|
-
}
|
|
33204
|
-
}, /* @__PURE__ */ reactExports.createElement(Component, Object.assign({}, props)));
|
|
33205
|
-
}
|
|
33206
|
-
const genPurePanel = (Component, alignPropName, postProps, defaultPrefixCls2, getDropdownCls) => {
|
|
33207
|
-
const PurePanel2 = (props) => {
|
|
33208
|
-
const {
|
|
33209
|
-
prefixCls: customizePrefixCls,
|
|
33210
|
-
style: style2
|
|
33211
|
-
} = props;
|
|
33212
|
-
const holderRef = reactExports.useRef(null);
|
|
33213
|
-
const [popupHeight, setPopupHeight] = reactExports.useState(0);
|
|
33214
|
-
const [popupWidth, setPopupWidth] = reactExports.useState(0);
|
|
33215
|
-
const [open2, setOpen] = useMergedState(false, {
|
|
33216
|
-
value: props.open
|
|
33217
|
-
});
|
|
33218
|
-
const {
|
|
33219
|
-
getPrefixCls
|
|
33220
|
-
} = reactExports.useContext(ConfigContext);
|
|
33221
|
-
const prefixCls = getPrefixCls(defaultPrefixCls2 || "select", customizePrefixCls);
|
|
33222
|
-
reactExports.useEffect(() => {
|
|
33223
|
-
setOpen(true);
|
|
33224
|
-
if (typeof ResizeObserver !== "undefined") {
|
|
33225
|
-
const resizeObserver2 = new ResizeObserver((entries) => {
|
|
33226
|
-
const element = entries[0].target;
|
|
33227
|
-
setPopupHeight(element.offsetHeight + 8);
|
|
33228
|
-
setPopupWidth(element.offsetWidth);
|
|
33229
|
-
});
|
|
33230
|
-
const interval = setInterval(() => {
|
|
33231
|
-
var _a2;
|
|
33232
|
-
const dropdownCls = getDropdownCls ? `.${getDropdownCls(prefixCls)}` : `.${prefixCls}-dropdown`;
|
|
33233
|
-
const popup = (_a2 = holderRef.current) === null || _a2 === void 0 ? void 0 : _a2.querySelector(dropdownCls);
|
|
33234
|
-
if (popup) {
|
|
33235
|
-
clearInterval(interval);
|
|
33236
|
-
resizeObserver2.observe(popup);
|
|
33237
|
-
}
|
|
33238
|
-
}, 10);
|
|
33239
|
-
return () => {
|
|
33240
|
-
clearInterval(interval);
|
|
33241
|
-
resizeObserver2.disconnect();
|
|
33242
|
-
};
|
|
33243
|
-
}
|
|
33244
|
-
}, [prefixCls]);
|
|
33245
|
-
let mergedProps = Object.assign(Object.assign({}, props), {
|
|
33246
|
-
style: Object.assign(Object.assign({}, style2), {
|
|
33247
|
-
margin: 0
|
|
33248
|
-
}),
|
|
33249
|
-
open: open2,
|
|
33250
|
-
visible: open2,
|
|
33251
|
-
getPopupContainer: () => holderRef.current
|
|
33252
|
-
});
|
|
33253
|
-
if (postProps) {
|
|
33254
|
-
mergedProps = postProps(mergedProps);
|
|
33255
|
-
}
|
|
33256
|
-
if (alignPropName) {
|
|
33257
|
-
Object.assign(mergedProps, {
|
|
33258
|
-
[alignPropName]: {
|
|
33259
|
-
overflow: {
|
|
33260
|
-
adjustX: false,
|
|
33261
|
-
adjustY: false
|
|
33262
|
-
}
|
|
33263
|
-
}
|
|
33264
|
-
});
|
|
33265
|
-
}
|
|
33266
|
-
const mergedStyle = {
|
|
33267
|
-
paddingBottom: popupHeight,
|
|
33268
|
-
position: "relative",
|
|
33269
|
-
minWidth: popupWidth
|
|
33270
|
-
};
|
|
33271
|
-
return /* @__PURE__ */ reactExports.createElement("div", {
|
|
33272
|
-
ref: holderRef,
|
|
33273
|
-
style: mergedStyle
|
|
33274
|
-
}, /* @__PURE__ */ reactExports.createElement(Component, Object.assign({}, mergedProps)));
|
|
33275
|
-
};
|
|
33276
|
-
return withPureRenderTheme(PurePanel2);
|
|
33277
|
-
};
|
|
33278
|
-
var __rest$18 = function(s3, e3) {
|
|
33279
|
-
var t2 = {};
|
|
33280
|
-
for (var p2 in s3)
|
|
33281
|
-
if (Object.prototype.hasOwnProperty.call(s3, p2) && e3.indexOf(p2) < 0)
|
|
33282
|
-
t2[p2] = s3[p2];
|
|
33283
|
-
if (s3 != null && typeof Object.getOwnPropertySymbols === "function")
|
|
33284
|
-
for (var i = 0, p2 = Object.getOwnPropertySymbols(s3); i < p2.length; i++) {
|
|
33285
|
-
if (e3.indexOf(p2[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s3, p2[i]))
|
|
33286
|
-
t2[p2[i]] = s3[p2[i]];
|
|
33287
|
-
}
|
|
33288
|
-
return t2;
|
|
33289
|
-
};
|
|
33290
|
-
const PurePanel$b = (props) => {
|
|
33291
|
-
const {
|
|
33292
|
-
prefixCls: customizePrefixCls,
|
|
33293
|
-
className,
|
|
33294
|
-
closeIcon,
|
|
33295
|
-
closable,
|
|
33296
|
-
type: type4,
|
|
33297
|
-
title,
|
|
33298
|
-
children,
|
|
33299
|
-
footer
|
|
33300
|
-
} = props, restProps = __rest$18(props, ["prefixCls", "className", "closeIcon", "closable", "type", "title", "children", "footer"]);
|
|
33301
|
-
const {
|
|
33302
|
-
getPrefixCls
|
|
33303
|
-
} = reactExports.useContext(ConfigContext);
|
|
33304
|
-
const rootPrefixCls = getPrefixCls();
|
|
33305
|
-
const prefixCls = customizePrefixCls || getPrefixCls("modal");
|
|
33306
|
-
const rootCls = useCSSVarCls(rootPrefixCls);
|
|
33307
|
-
const [wrapCSSVar, hashId, cssVarCls] = useStyle$$(prefixCls, rootCls);
|
|
33308
|
-
const confirmPrefixCls = `${prefixCls}-confirm`;
|
|
33309
|
-
let additionalProps = {};
|
|
33310
|
-
if (type4) {
|
|
33311
|
-
additionalProps = {
|
|
33312
|
-
closable: closable !== null && closable !== void 0 ? closable : false,
|
|
33313
|
-
title: "",
|
|
33314
|
-
footer: "",
|
|
33315
|
-
children: /* @__PURE__ */ reactExports.createElement(ConfirmContent, Object.assign({}, props, {
|
|
33316
|
-
prefixCls,
|
|
33317
|
-
confirmPrefixCls,
|
|
33318
|
-
rootPrefixCls,
|
|
33319
|
-
content: children
|
|
33320
|
-
}))
|
|
33321
|
-
};
|
|
33322
|
-
} else {
|
|
33323
|
-
additionalProps = {
|
|
33324
|
-
closable: closable !== null && closable !== void 0 ? closable : true,
|
|
33325
|
-
title,
|
|
33326
|
-
footer: footer !== null && /* @__PURE__ */ reactExports.createElement(Footer$3, Object.assign({}, props)),
|
|
33327
|
-
children
|
|
33328
|
-
};
|
|
33329
|
-
}
|
|
33330
|
-
return wrapCSSVar(/* @__PURE__ */ reactExports.createElement(Panel$2, Object.assign({
|
|
33331
|
-
prefixCls,
|
|
33332
|
-
className: classNames$1(hashId, `${prefixCls}-pure-panel`, type4 && confirmPrefixCls, type4 && `${confirmPrefixCls}-${type4}`, className, cssVarCls, rootCls)
|
|
33333
|
-
}, restProps, {
|
|
33334
|
-
closeIcon: renderCloseIcon(prefixCls, closeIcon),
|
|
33335
|
-
closable
|
|
33336
|
-
}, additionalProps)));
|
|
33337
|
-
};
|
|
33338
|
-
const PurePanel$c = withPureRenderTheme(PurePanel$b);
|
|
33339
|
-
function modalWarn(props) {
|
|
33340
|
-
return confirm$1(withWarn(props));
|
|
33341
|
-
}
|
|
33342
|
-
const Modal = Modal$1;
|
|
33343
|
-
Modal.useModal = useModal;
|
|
33344
|
-
Modal.info = function infoFn(props) {
|
|
33345
|
-
return confirm$1(withInfo(props));
|
|
33346
|
-
};
|
|
33347
|
-
Modal.success = function successFn(props) {
|
|
33348
|
-
return confirm$1(withSuccess(props));
|
|
33349
|
-
};
|
|
33350
|
-
Modal.error = function errorFn(props) {
|
|
33351
|
-
return confirm$1(withError(props));
|
|
33352
|
-
};
|
|
33353
|
-
Modal.warning = modalWarn;
|
|
33354
|
-
Modal.warn = modalWarn;
|
|
33355
|
-
Modal.confirm = function confirmFn(props) {
|
|
33356
|
-
return confirm$1(withConfirm(props));
|
|
33357
|
-
};
|
|
33358
|
-
Modal.destroyAll = function destroyAllFn() {
|
|
33359
|
-
while (destroyFns.length) {
|
|
33360
|
-
const close = destroyFns.pop();
|
|
33361
|
-
if (close) {
|
|
33362
|
-
close();
|
|
33363
|
-
}
|
|
33364
|
-
}
|
|
33365
|
-
};
|
|
33366
|
-
Modal.config = modalGlobalConfig;
|
|
33367
|
-
Modal._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$c;
|
|
33368
33383
|
class GlobalErrorBoundary extends reactExports.Component {
|
|
33369
33384
|
constructor(props) {
|
|
33370
33385
|
super(props);
|
|
33371
33386
|
this.unsubscribe = null;
|
|
33372
33387
|
this.handleApiError = (event) => {
|
|
33373
|
-
const {
|
|
33388
|
+
const {
|
|
33389
|
+
code,
|
|
33390
|
+
message: message2,
|
|
33391
|
+
details
|
|
33392
|
+
} = event.detail;
|
|
33374
33393
|
const severity = code && code >= 500 ? ErrorSeverity.SEVERE : ErrorSeverity.WARNING;
|
|
33375
33394
|
const globalError = {
|
|
33376
33395
|
type: GlobalErrorType.API_ERROR,
|
|
@@ -33379,10 +33398,15 @@ class GlobalErrorBoundary extends reactExports.Component {
|
|
|
33379
33398
|
details,
|
|
33380
33399
|
severity
|
|
33381
33400
|
};
|
|
33382
|
-
useSdkStore.setState({
|
|
33401
|
+
useSdkStore.setState({
|
|
33402
|
+
globalError
|
|
33403
|
+
});
|
|
33383
33404
|
};
|
|
33384
33405
|
this.handleParamValidationError = (event) => {
|
|
33385
|
-
const {
|
|
33406
|
+
const {
|
|
33407
|
+
message: message2,
|
|
33408
|
+
details
|
|
33409
|
+
} = event.detail;
|
|
33386
33410
|
const globalError = {
|
|
33387
33411
|
type: GlobalErrorType.PARAM_VALIDATION_ERROR,
|
|
33388
33412
|
code: 400,
|
|
@@ -33390,7 +33414,9 @@ class GlobalErrorBoundary extends reactExports.Component {
|
|
|
33390
33414
|
details,
|
|
33391
33415
|
severity: ErrorSeverity.WARNING
|
|
33392
33416
|
};
|
|
33393
|
-
useSdkStore.setState({
|
|
33417
|
+
useSdkStore.setState({
|
|
33418
|
+
globalError
|
|
33419
|
+
});
|
|
33394
33420
|
};
|
|
33395
33421
|
this.handleTokenExpired = (event) => {
|
|
33396
33422
|
const globalError = {
|
|
@@ -33400,10 +33426,16 @@ class GlobalErrorBoundary extends reactExports.Component {
|
|
|
33400
33426
|
details: event.detail,
|
|
33401
33427
|
severity: ErrorSeverity.SEVERE
|
|
33402
33428
|
};
|
|
33403
|
-
useSdkStore.setState({
|
|
33429
|
+
useSdkStore.setState({
|
|
33430
|
+
globalError
|
|
33431
|
+
});
|
|
33404
33432
|
};
|
|
33405
33433
|
this.handleNotFoundError = (event) => {
|
|
33406
|
-
const {
|
|
33434
|
+
const {
|
|
33435
|
+
code,
|
|
33436
|
+
message: message2,
|
|
33437
|
+
details
|
|
33438
|
+
} = event.detail;
|
|
33407
33439
|
const globalError = {
|
|
33408
33440
|
type: GlobalErrorType.API_ERROR,
|
|
33409
33441
|
code: code || 404,
|
|
@@ -33411,10 +33443,16 @@ class GlobalErrorBoundary extends reactExports.Component {
|
|
|
33411
33443
|
details,
|
|
33412
33444
|
severity: ErrorSeverity.SEVERE
|
|
33413
33445
|
};
|
|
33414
|
-
useSdkStore.setState({
|
|
33446
|
+
useSdkStore.setState({
|
|
33447
|
+
globalError
|
|
33448
|
+
});
|
|
33415
33449
|
};
|
|
33416
33450
|
this.handleTimeoutError = (event) => {
|
|
33417
|
-
const {
|
|
33451
|
+
const {
|
|
33452
|
+
code,
|
|
33453
|
+
message: message2,
|
|
33454
|
+
details
|
|
33455
|
+
} = event.detail;
|
|
33418
33456
|
const globalError = {
|
|
33419
33457
|
type: GlobalErrorType.API_ERROR,
|
|
33420
33458
|
code: code || 408,
|
|
@@ -33422,10 +33460,16 @@ class GlobalErrorBoundary extends reactExports.Component {
|
|
|
33422
33460
|
details,
|
|
33423
33461
|
severity: ErrorSeverity.WARNING
|
|
33424
33462
|
};
|
|
33425
|
-
useSdkStore.setState({
|
|
33463
|
+
useSdkStore.setState({
|
|
33464
|
+
globalError
|
|
33465
|
+
});
|
|
33426
33466
|
};
|
|
33427
33467
|
this.handleServerError = (event) => {
|
|
33428
|
-
const {
|
|
33468
|
+
const {
|
|
33469
|
+
code,
|
|
33470
|
+
message: message2,
|
|
33471
|
+
details
|
|
33472
|
+
} = event.detail;
|
|
33429
33473
|
const globalError = {
|
|
33430
33474
|
type: GlobalErrorType.API_ERROR,
|
|
33431
33475
|
code: code || 500,
|
|
@@ -33433,10 +33477,16 @@ class GlobalErrorBoundary extends reactExports.Component {
|
|
|
33433
33477
|
details,
|
|
33434
33478
|
severity: ErrorSeverity.SEVERE
|
|
33435
33479
|
};
|
|
33436
|
-
useSdkStore.setState({
|
|
33480
|
+
useSdkStore.setState({
|
|
33481
|
+
globalError
|
|
33482
|
+
});
|
|
33437
33483
|
};
|
|
33438
33484
|
this.handleClientError = (event) => {
|
|
33439
|
-
const {
|
|
33485
|
+
const {
|
|
33486
|
+
code,
|
|
33487
|
+
message: message2,
|
|
33488
|
+
details
|
|
33489
|
+
} = event.detail;
|
|
33440
33490
|
const globalError = {
|
|
33441
33491
|
type: GlobalErrorType.API_ERROR,
|
|
33442
33492
|
code: code || 400,
|
|
@@ -33444,10 +33494,16 @@ class GlobalErrorBoundary extends reactExports.Component {
|
|
|
33444
33494
|
details,
|
|
33445
33495
|
severity: ErrorSeverity.WARNING
|
|
33446
33496
|
};
|
|
33447
|
-
useSdkStore.setState({
|
|
33497
|
+
useSdkStore.setState({
|
|
33498
|
+
globalError
|
|
33499
|
+
});
|
|
33448
33500
|
};
|
|
33449
33501
|
this.handleUnknownError = (event) => {
|
|
33450
|
-
const {
|
|
33502
|
+
const {
|
|
33503
|
+
code,
|
|
33504
|
+
message: message2,
|
|
33505
|
+
details
|
|
33506
|
+
} = event.detail;
|
|
33451
33507
|
const globalError = {
|
|
33452
33508
|
type: GlobalErrorType.OTHER_ERROR,
|
|
33453
33509
|
code: code || 500,
|
|
@@ -33455,11 +33511,17 @@ class GlobalErrorBoundary extends reactExports.Component {
|
|
|
33455
33511
|
details,
|
|
33456
33512
|
severity: ErrorSeverity.SEVERE
|
|
33457
33513
|
};
|
|
33458
|
-
useSdkStore.setState({
|
|
33514
|
+
useSdkStore.setState({
|
|
33515
|
+
globalError
|
|
33516
|
+
});
|
|
33459
33517
|
};
|
|
33460
33518
|
this.handleClearError = () => {
|
|
33461
|
-
useSdkStore.setState({
|
|
33462
|
-
|
|
33519
|
+
useSdkStore.setState({
|
|
33520
|
+
globalError: null
|
|
33521
|
+
});
|
|
33522
|
+
this.setState({
|
|
33523
|
+
hasError: false
|
|
33524
|
+
});
|
|
33463
33525
|
};
|
|
33464
33526
|
this.handleRetry = () => {
|
|
33465
33527
|
this.handleClearError();
|
|
@@ -33496,7 +33558,9 @@ class GlobalErrorBoundary extends reactExports.Component {
|
|
|
33496
33558
|
window.addEventListener("unknownError", this.handleUnknownError);
|
|
33497
33559
|
this.unsubscribe = useSdkStore.subscribe((state, prevState) => {
|
|
33498
33560
|
if (state.globalError !== prevState.globalError) {
|
|
33499
|
-
this.setState({
|
|
33561
|
+
this.setState({
|
|
33562
|
+
globalError: state.globalError
|
|
33563
|
+
});
|
|
33500
33564
|
}
|
|
33501
33565
|
});
|
|
33502
33566
|
}
|
|
@@ -33535,49 +33599,56 @@ class GlobalErrorBoundary extends reactExports.Component {
|
|
|
33535
33599
|
},
|
|
33536
33600
|
severity: ErrorSeverity.SEVERE
|
|
33537
33601
|
};
|
|
33538
|
-
useSdkStore.setState({
|
|
33539
|
-
|
|
33602
|
+
useSdkStore.setState({
|
|
33603
|
+
globalError
|
|
33604
|
+
});
|
|
33605
|
+
this.setState({
|
|
33606
|
+
globalError
|
|
33607
|
+
});
|
|
33540
33608
|
}
|
|
33541
33609
|
/**
|
|
33542
33610
|
* 渲染组件
|
|
33543
33611
|
* @returns React节点
|
|
33544
33612
|
*/
|
|
33545
33613
|
render() {
|
|
33546
|
-
const {
|
|
33547
|
-
|
|
33614
|
+
const {
|
|
33615
|
+
globalError
|
|
33616
|
+
} = this.state;
|
|
33617
|
+
const {
|
|
33618
|
+
errorNotification = false
|
|
33619
|
+
} = this.props;
|
|
33548
33620
|
if (!errorNotification) {
|
|
33549
33621
|
return this.props.children;
|
|
33550
33622
|
}
|
|
33551
33623
|
if (globalError) {
|
|
33552
33624
|
if (globalError.severity === ErrorSeverity.SEVERE) {
|
|
33553
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
33554
|
-
|
|
33555
|
-
|
|
33556
|
-
|
|
33557
|
-
|
|
33558
|
-
onRetry: this.handleRetry
|
|
33559
|
-
}
|
|
33560
|
-
);
|
|
33625
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorPage, {
|
|
33626
|
+
error: globalError,
|
|
33627
|
+
onClose: this.handleClearError,
|
|
33628
|
+
onRetry: this.handleRetry
|
|
33629
|
+
});
|
|
33561
33630
|
} else {
|
|
33562
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
|
|
33563
|
-
this.props.children,
|
|
33564
|
-
|
|
33565
|
-
|
|
33566
|
-
|
|
33567
|
-
|
|
33568
|
-
|
|
33569
|
-
|
|
33570
|
-
|
|
33571
|
-
|
|
33572
|
-
|
|
33573
|
-
|
|
33574
|
-
|
|
33575
|
-
|
|
33576
|
-
|
|
33577
|
-
|
|
33578
|
-
|
|
33579
|
-
|
|
33580
|
-
|
|
33631
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
|
|
33632
|
+
children: [this.props.children, /* @__PURE__ */ jsxRuntimeExports.jsxs(Modal, {
|
|
33633
|
+
title: "错误提示",
|
|
33634
|
+
open: !!globalError && globalError.severity === ErrorSeverity.WARNING,
|
|
33635
|
+
onOk: this.handleClearError,
|
|
33636
|
+
onCancel: this.handleClearError,
|
|
33637
|
+
okText: "关闭",
|
|
33638
|
+
cancelText: "取消",
|
|
33639
|
+
centered: true,
|
|
33640
|
+
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
33641
|
+
className: "text-red-500",
|
|
33642
|
+
children: globalError.message
|
|
33643
|
+
}), globalError.details && /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
33644
|
+
className: "mt-2 text-sm text-gray-600",
|
|
33645
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", {
|
|
33646
|
+
className: "whitespace-pre-wrap",
|
|
33647
|
+
children: JSON.stringify(globalError.details, null, 2)
|
|
33648
|
+
})
|
|
33649
|
+
})]
|
|
33650
|
+
})]
|
|
33651
|
+
});
|
|
33581
33652
|
}
|
|
33582
33653
|
}
|
|
33583
33654
|
return this.props.children;
|
|
@@ -46027,18 +46098,6 @@ axios.formToJSON = (thing) => formDataToJSON(utils$9.isHTMLForm(thing) ? new For
|
|
|
46027
46098
|
axios.getAdapter = adapters.getAdapter;
|
|
46028
46099
|
axios.HttpStatusCode = HttpStatusCode;
|
|
46029
46100
|
axios.default = axios;
|
|
46030
|
-
var define_import_meta_env_default = {};
|
|
46031
|
-
const envConfig = {
|
|
46032
|
-
// 环境名称
|
|
46033
|
-
env: define_import_meta_env_default.VITE_ENV || "development",
|
|
46034
|
-
// 地图相关配置
|
|
46035
|
-
amapKey: "d3e9b4bd66a3ed8533f2e5d01c24e273",
|
|
46036
|
-
amapCode: "ff1c6caa84b5fe4e179dc6a84580995c",
|
|
46037
|
-
// SDK 授权配置
|
|
46038
|
-
queenSdkKey: "hP7in57avgV12eJB7dff0052b8ac0481da28769b23b37bc77",
|
|
46039
|
-
// API 相关配置
|
|
46040
|
-
liveProxyUrl: "https://api.lfeiyao.com"
|
|
46041
|
-
};
|
|
46042
46101
|
function withResolvers() {
|
|
46043
46102
|
let output = {};
|
|
46044
46103
|
output.promise = new Promise((res, rej) => {
|
|
@@ -46520,10 +46579,10 @@ const errorConfig = {
|
|
|
46520
46579
|
console.warn("Login expired, please re-login");
|
|
46521
46580
|
}
|
|
46522
46581
|
};
|
|
46523
|
-
console.log("<<envConfig.env>>", envConfig);
|
|
46524
|
-
console.log("=====>", envConfig.env === "production" ? useSdkStore.getState().getApiDomain() : envConfig);
|
|
46582
|
+
console.log("<<envConfig.env>>", envConfig$1);
|
|
46583
|
+
console.log("=====>", envConfig$1.env === "production" ? useSdkStore.getState().getApiDomain() : envConfig$1);
|
|
46525
46584
|
const axiosInstance = axios.create({
|
|
46526
|
-
baseURL: envConfig.env === "production" ? useSdkStore.getState().getApiDomain() : envConfig.liveProxyUrl,
|
|
46585
|
+
baseURL: envConfig$1.env === "production" ? useSdkStore.getState().getApiDomain() : envConfig$1.liveProxyUrl,
|
|
46527
46586
|
// 只在生产环境设置基础 URL,开发环境使用代理
|
|
46528
46587
|
timeout: 3e4,
|
|
46529
46588
|
// 30秒超时
|
|
@@ -85318,12 +85377,17 @@ function useLiveInfo() {
|
|
|
85318
85377
|
live_id
|
|
85319
85378
|
}
|
|
85320
85379
|
}).then((res) => {
|
|
85380
|
+
console.log("直播信息请求成功:", res);
|
|
85321
85381
|
if (res.success === false) {
|
|
85322
85382
|
staticMethods.error(res.errorMessage);
|
|
85323
85383
|
requestResult.cancel();
|
|
85324
85384
|
return res;
|
|
85325
85385
|
}
|
|
85326
85386
|
return res;
|
|
85387
|
+
}).catch((error22) => {
|
|
85388
|
+
console.error("直播信息请求失败,取消轮训:", error22);
|
|
85389
|
+
requestResult.cancel();
|
|
85390
|
+
return error22;
|
|
85327
85391
|
});
|
|
85328
85392
|
}, {
|
|
85329
85393
|
pollingInterval: 2e3,
|
|
@@ -85499,6 +85563,7 @@ const Head = ({
|
|
|
85499
85563
|
run: state.run,
|
|
85500
85564
|
cancel: state.cancel
|
|
85501
85565
|
}));
|
|
85566
|
+
console.log("data,title", data2);
|
|
85502
85567
|
const {
|
|
85503
85568
|
fetchActivityType
|
|
85504
85569
|
} = useActivityTypeStore();
|
|
@@ -268756,7 +268821,7 @@ const LivePlayer = ({
|
|
|
268756
268821
|
let queenEngine;
|
|
268757
268822
|
if (cameraType === 1) {
|
|
268758
268823
|
queenEngine = new d$3();
|
|
268759
|
-
queenEngine.init(envConfig.queenSdkKey, function() {
|
|
268824
|
+
queenEngine.init(envConfig$1.queenSdkKey, function() {
|
|
268760
268825
|
console.log("初始化完成");
|
|
268761
268826
|
const {
|
|
268762
268827
|
isSkinBuffing,
|
|
@@ -269363,9 +269428,8 @@ const InviteGuestModal = ({
|
|
|
269363
269428
|
const [open2, setOpen] = reactExports.useState(false);
|
|
269364
269429
|
const isModalOpen = externalIsOpen !== void 0 ? externalIsOpen : open2;
|
|
269365
269430
|
const handleClose = externalOnClose || (() => setOpen(false));
|
|
269366
|
-
const inviteLink = (call2 == null ? void 0 : call2.enabled) ? (call2 == null ? void 0 : call2.inviteLink) || "" : "";
|
|
269367
269431
|
const copyText = `直播名称: ${data2 == null ? void 0 : data2.title}
|
|
269368
|
-
加入链接: ${inviteLink}
|
|
269432
|
+
加入链接: ${call2 == null ? void 0 : call2.inviteLink}
|
|
269369
269433
|
加入密码: ${callConfig.password}`;
|
|
269370
269434
|
const copyInviteLink = () => {
|
|
269371
269435
|
navigator.clipboard.writeText(copyText).then(() => {
|
|
@@ -269417,7 +269481,7 @@ const InviteGuestModal = ({
|
|
|
269417
269481
|
centered: true,
|
|
269418
269482
|
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
269419
269483
|
className: styles.inviteContainer,
|
|
269420
|
-
children: [/* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
269484
|
+
children: [(call2 == null ? void 0 : call2.inviteLink) && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
269421
269485
|
className: styles.inviteSection,
|
|
269422
269486
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
269423
269487
|
className: styles.sectionLabel,
|
|
@@ -269425,7 +269489,7 @@ const InviteGuestModal = ({
|
|
|
269425
269489
|
}), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
269426
269490
|
className: styles.inputGroup,
|
|
269427
269491
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Input, {
|
|
269428
|
-
value: inviteLink,
|
|
269492
|
+
value: call2 == null ? void 0 : call2.inviteLink,
|
|
269429
269493
|
readOnly: true,
|
|
269430
269494
|
className: styles.inviteInput
|
|
269431
269495
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, {
|
|
@@ -292538,12 +292602,14 @@ const MediaSettings = () => {
|
|
|
292538
292602
|
setIsModalVisible(false);
|
|
292539
292603
|
}, []);
|
|
292540
292604
|
const openMediaSettings = () => {
|
|
292605
|
+
console.log("openMediaSettings");
|
|
292541
292606
|
setIsModalVisible(true);
|
|
292542
292607
|
};
|
|
292543
292608
|
const handleClose = reactExports.useCallback(() => {
|
|
292544
292609
|
closeMediaSettings();
|
|
292545
292610
|
}, [closeMediaSettings]);
|
|
292546
292611
|
reactExports.useEffect(() => {
|
|
292612
|
+
console.log("useEffect openMediaSettings");
|
|
292547
292613
|
eventBus.on("openMediaSettings", openMediaSettings);
|
|
292548
292614
|
eventBus.on("closeMediaSettings", closeMediaSettings);
|
|
292549
292615
|
return () => {
|
|
@@ -292811,7 +292877,7 @@ const CallHome$1 = () => {
|
|
|
292811
292877
|
rule: "sub"
|
|
292812
292878
|
}), /* @__PURE__ */ jsxRuntimeExports.jsx(RightSidebar, {
|
|
292813
292879
|
canvasSetting
|
|
292814
|
-
}), /* @__PURE__ */ jsxRuntimeExports.jsx(MediaSettings, {})]
|
|
292880
|
+
}), (callConfig == null ? void 0 : callConfig.isCall) && /* @__PURE__ */ jsxRuntimeExports.jsx(MediaSettings, {})]
|
|
292815
292881
|
})]
|
|
292816
292882
|
}), (callCurrentUser == null ? void 0 : callCurrentUser.waiting_mode_state) === WaitingModeState.WAITING && /* @__PURE__ */ jsxRuntimeExports.jsx(LiveWaitingRoom, {
|
|
292817
292883
|
hostName: callConfig.title
|
|
@@ -295619,7 +295685,7 @@ const CanvasCameraForm = reactExports.forwardRef(({
|
|
|
295619
295685
|
const queenEngineCanvas = document.getElementById("queenEngineCanvas");
|
|
295620
295686
|
const queenEngine = new d$3();
|
|
295621
295687
|
queenEngineRef.current = queenEngine;
|
|
295622
|
-
queenEngine.init(envConfig.queenSdkKey, function() {
|
|
295688
|
+
queenEngine.init(envConfig$1.queenSdkKey, function() {
|
|
295623
295689
|
console.log("初始化完成");
|
|
295624
295690
|
timer.current = setInterval(() => {
|
|
295625
295691
|
queenRender();
|
|
@@ -305803,7 +305869,7 @@ const CallHome = () => {
|
|
|
305803
305869
|
}
|
|
305804
305870
|
},
|
|
305805
305871
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(RtcJoomRoom, {}), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
305806
|
-
className: "h-full bg-#0e131c min-w-[1500px] min-h-[770px] overflow-auto
|
|
305872
|
+
className: "h-full bg-#0e131c min-w-[1500px] min-h-[770px] overflow-auto",
|
|
305807
305873
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Head$1, {
|
|
305808
305874
|
canvasSetting,
|
|
305809
305875
|
setCanvasSetting,
|
|
@@ -305814,7 +305880,7 @@ const CallHome = () => {
|
|
|
305814
305880
|
audioDestinationRef
|
|
305815
305881
|
}), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
305816
305882
|
ref: wapRef,
|
|
305817
|
-
className: "
|
|
305883
|
+
className: "h-[calc(100vh-60px)] relative flex mt-1 gap-1 ",
|
|
305818
305884
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(LeftSidebar, {
|
|
305819
305885
|
onSceneClick: handleSceneClick,
|
|
305820
305886
|
currentScene,
|