PageSourceSearch

https://www.2rich.cn/_next/static/chunks/pages/quotes-6b6e454daf3216f5.js

js 2rich.cn collected 2026-10-09 22:30:10 UTC 106,175 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4249],{50888:function(_,e,t){"use strict";t.d(e,{Z:function(){return c}});var a=t(1413),r=t(67294),n={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},o=t(47833),s=function(_,e){return r.createElement(o.Z,(0,a.Z)((0,a.Z)({},_),{},{ref:e,icon:n}))};s.displayName="LoadingOutlined";var c=r.forwardRef(s)},52745:function(_,e,t){"use strict";t.d(e,{Z:function(){return c}});var a=t(1413),r=t(67294),n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"},o=t(47833),s=function(_,e){return r.createElement(o.Z,(0,a.Z)((0,a.Z)({},_),{},{ref:e,icon:n}))};s.displayName="MinusOutlined";var c=r.forwardRef(s)},32198:function(_,e,t){"use strict";t.d(e,{Z:function(){return c}});var a=t(1413),r=t(67294),n={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},o=t(47833),s=function(_,e){return r.createElement(o.Z,(0,a.Z)((0,a.Z)({},_),{},{ref:e,icon:n}))};s.displayName="SwapRightOutlined";var c=r.forwardRef(s)},1808:function(_,e,t){"use strict";var a=t(95318),r=t(50008);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(t(67154)),o=a(t(59713)),s=a(t(319)),c=function(_,e){if(!e&&_&&_.__esModule)return _;if(null===_||"object"!==r(_)&&"function"!==typeof _)return{default:_};var t=D(e);if(t&&t.has(_))return t.get(_);var a={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in _)if("default"!==o&&Object.prototype.hasOwnProperty.call(_,o)){var s=n?Object.getOwnPropertyDescriptor(_,o):null;s&&(s.get||s.set)?Object.defineProperty(a,o,s):a[o]=_[o]}a.default=_,t&&t.set(_,a);return a}(t(67294)),u=a(t(94184)),i=a(t(98959)),l=a(t(73757)),d=a(t(32117)),E=a(t(12386)),m=t(31929),p=a(t(72454)),O=t(47419);function D(_){if("function"!==typeof WeakMap)return null;var e=new WeakMap,t=new WeakMap;return(D=function(_){return _?t:e})(_)}var P=function(_,e){var t={};for(var a in _)Object.prototype.hasOwnProperty.call(_,a)&&e.indexOf(a)<0&&(t[a]=_[a]);if(null!=_&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(_);r<a.length;r++)e.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(_,a[r])&&(t[a[r]]=_[a[r]])}return t};function M(_,e,t,a){var r=t.indexOf(_)===t.length-1,n=function(_,e){if(!_.breadcrumbName)return null;var t=Object.keys(e).join("|");return _.breadcrumbName.replace(new RegExp(":(".concat(t,")"),"g"),(function(_,t){return e[t]||_}))}(_,e);return r?c.createElement("span",null,n):c.createElement("a",{href:"#/".concat(a.join("/"))},n)}var C=function(_,e){return _=(_||"").replace(/^\//,""),Object.keys(e).forEach((function(t){_=_.replace(":".concat(t),e[t])})),_},f=function(_){var e,t=_.prefixCls,a=_.separator,r=void 0===a?"/":a,d=_.style,D=_.className,f=_.routes,b=_.children,g=_.itemRender,h=void 0===g?M:g,T=_.params,R=void 0===T?{}:T,L=P(_,["prefixCls","separator","style","className","routes","children","itemRender","params"]),I=c.useContext(m.ConfigContext),A=I.getPrefixCls,B=I.direction,W=A("breadcrumb",t);if(f&&f.length>0){var k=[];e=f.map((function(_){var e,t=C(_.path,R);return t&&k.push(t),_.children&&_.children.length&&(e=c.createElement(E.default,null,_.children.map((function(_){return c.createElement(E.default.Item,{key:_.path||_.breadcrumbName},h(_,R,f,function(_,e,t){var a=(0,s.default)(_),r=C(e||"",t);return r&&a.push(r),a}(k,_.path,R)))})))),c.createElement(l.default,{overlay:e,separator:r,key:t||_.breadcrumbName}
1,h(_,R,f,k))}))}else b&&(e=(0,i.default)(b).map((function(_,e){return _?((0,p.default)(_.type&&(!0===_.type.__ANT_BREADCRUMB_ITEM||!0===_.type.__ANT_BREADCRUMB_SEPARATOR),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),(0,O.cloneElement)(_,{separator:r,key:e})):_})));var K=(0,u.default)(W,(0,o.default)({},"".concat(W,"-rtl"),"rtl"===B),D);return c.createElement("div",(0,n.default)({className:K,style:d},L),e)};f.Item=l.default,f.Separator=d.default;var b=f;e.default=b},73757:function(_,e,t){"use strict";var a=t(95318),r=t(50008);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(t(67154)),o=function(_,e){if(!e&&_&&_.__esModule)return _;if(null===_||"object"!==r(_)&&"function"!==typeof _)return{default:_};var t=i(e);if(t&&t.has(_))return t.get(_);var a={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in _)if("default"!==o&&Object.prototype.hasOwnProperty.call(_,o)){var s=n?Object.getOwnPropertyDescriptor(_,o):null;s&&(s.get||s.set)?Object.defineProperty(a,o,s):a[o]=_[o]}a.default=_,t&&t.set(_,a);return a}(t(67294)),s=a(t(43529)),c=a(t(48301)),u=t(31929);function i(_){if("function"!==typeof WeakMap)return null;var e=new WeakMap,t=new WeakMap;return(i=function(_){return _?t:e})(_)}var l=function(_,e){var t={};for(var a in _)Object.prototype.hasOwnProperty.call(_,a)&&e.indexOf(a)<0&&(t[a]=_[a]);if(null!=_&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(_);r<a.length;r++)e.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(_,a[r])&&(t[a[r]]=_[a[r]])}return t},d=function(_){var e,t,a=_.prefixCls,r=_.separator,i=void 0===r?"/":r,d=_.children,E=_.overlay,m=_.dropdownProps,p=l(_,["prefixCls","separator","children","overlay","dropdownProps"]),O=(0,o.useContext(u.ConfigContext).getPrefixCls)("breadcrumb",a);return e="href"in p?o.createElement("a",(0,n.default)({className:"".concat(O,"-link")},p),d):o.createElement("span",(0,n.default)({className:"".concat(O,"-link")},p),d),t=e,e=E?o.createElement(c.default,(0,n.default)({overlay:E,placement:"bottom"},m),o.createElement("span",{className:"".concat(O,"-overlay-link")},t,o.createElement(s.default,null))):t,d?o.createElement("span",null,e,i&&o.createElement("span",{className:"".concat(O,"-separator")},i)):null};d.__ANT_BREADCRUMB_ITEM=!0;var E=d;e.default=E},32117:function(_,e,t){"use strict";var a=t(50008);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(_,e){if(!e&&_&&_.__esModule)return _;if(null===_||"object"!==a(_)&&"function"!==typeof _)return{default:_};var t=o(e);if(t&&t.has(_))return t.get(_);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in _)if("default"!==s&&Object.prototype.hasOwnProperty.call(_,s)){var c=n?Object.getOwnPropertyDescriptor(_,s):null;c&&(c.get||c.set)?Object.defineProperty(r,s,c):r[s]=_[s]}r.default=_,t&&t.set(_,r);return r}(t(67294)),n=t(31929);function o(_){if("function"!==typeof WeakMap)return null;var e=new WeakMap,t=new WeakMap;return(o=function(_){return _?t:e})(_)}var s=function(_){var e=_.children,t=(0,r.useContext(n.ConfigContext).getPrefixCls)("breadcrumb");return r.createElement("span",{className:"".concat(t,"-separator")},e||"/")};s.__ANT_BREADCRUMB_SEPARATOR=!0;var c=s;e.default=c},68672:function(_,e,t){"use strict";var a=t(95318);e.Z=void 0;var r=a(t(1808)).default;e.Z=r},60101:function(_,e,t){"use strict";t(41113),t(7186),t(54214),t(6373)},54214:function(_,e,t){"use strict";t(41113),t(74248),t(15086)},29524:function(_,e,t){"use strict";var a=t(67294),r=(t(5152),t(31955),t(46127)),n=t.n(r),o=t(36389),s=t(47186),c=t(67162),u=t(85893);e.Z=function(_){try{var e=_.data,t=(0,a.useState)(e.navListData?e.navListData:[]),r=t[0];t[1];return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:n().navList,children:(0,u.jsxs)(s.mQ,{defaultActiveKey:"4",style:{"--active-line-height":"0"},children:[(0,u.jsx)(s.mQ.Tab,{title:(0,u.jsx)("a",{href:o.LX+"/quotes/selected",children:"\u81ea\u9009"})},"1"),(0,u.jsx)(s.mQ.Tab,{title:(0,u.jsx)("a",{href:o.LX+"/quotes/exchange",children:"\u5916\u6c47"})},"3"),(0,u.jsx)(s.mQ.Tab,{title:(0,u.jsx)("a",{href:o.LX+"/quotes/commodity",children:"\u5546\u54c1"})},"4"),(0,u.jsx)(s.mQ.Tab,{title:(0,u.jsx)("a",{href:o.LX+"/quotes/futures/shanghai",children:"\u56fd\u5185\u671f\u8d27"})},"7"),(0,u.jsx)(s.mQ.Tab,{title:(0,u.jsx)("a",{href:o.LX+"/quotes/futures/nymex",children:"\u56fd\u9645\u671f\u8d27"})},"8"),(0,u.jsx)(s.mQ.Tab,{title:(0,u.jsx)("a",{href:o.LX+"/quotes/sh
1angjin",children:"\u73b0\u8d27"})},"9"),(0,u.jsx)(s.mQ.Tab,{title:(0,u.jsx)("a",{href:o.LX+"/quotes/stock",children:"\u80a1\u6307"})},"5")]})}),(0,u.jsx)("div",{children:(0,u.jsx)(c.Z,{params:{data:e.dataListData,importantData:e.importantListData,defaultNavList:r,code:function(_){var e=r.filter((function(e){return e.categoryName==_}));return e&&e.length?e[0].categoryCode:""}("\u5168\u7403"),currentChannel:e.currentChannel[0],secondChannelId:e.secondChannelId}})})]})}catch(i){return null}}},24868:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var antd_lib_config_provider_style__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(82932),antd_lib_config_provider_style__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(antd_lib_config_provider_style__WEBPACK_IMPORTED_MODULE_0__),antd_lib_config_provider__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(31929),antd_lib_table_style__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(15144),antd_lib_table_style__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(antd_lib_table_style__WEBPACK_IMPORTED_MODULE_1__),antd_lib_table__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(2307),_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(30266),_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(809),_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__),react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(67294),next_dynamic__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(5152),next_router__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(11163),_js_common__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(17108),js_cookie__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(31955),_css_mobile_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(72089),_css_mobile_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(_css_mobile_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_14__),_ant_design_icons__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(50888),antd_lib_locale_zh_CN__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(82925),_config_config__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(36389),_service_quotesService__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(81050),moment__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(30381),moment__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_10__),antd_mobile_icons__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(76350),_component_mobile_global_empty__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(43822),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(85893),CommonItem_Mobile=function CommonItem_Mobile(props){try{var parameters=props.params,_useState=(0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(parameters.defaultList),exchangeData=_useState[0],setExchangeData=_useState[1],_useState2=(0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(!1),exchangeLoading=_useState2[0],setExchangeLoading=_useState2[1],exchangeDataRef=(0,react__WEBPACK_IMPORTED_MODULE_3__.useRef)(exchangeData);(0,react__WEBPACK_IMPORTED_MODULE_3__.useImperativeHandle)(props.onRef,(function(){return{updateSocketData:updateSocketData}})),(0,react__WEBPACK_IMPORTED_MODULE_3__.useEffect)((function(){var _=[];parameters.defaultList.map((function(e){e.quoteCode&&_.push(e.quoteCode)})),parameters.setSocketCodeArr(_)}),[]),(0,react__WEBPACK_IMPORTED_MODULE_3__.useEffect)((function(){exchangeDataRef.current=exchangeData}),[exchangeData]);var rebuildObj=function(_){var e=_.match(/(\S*)\[/)[1],t=_.match(/\[.*?\]/g)[0],a=_.match(/\](\S*)/)[1];e=e.replace(/^(\s|\{)+|(\s|\:)+$/g,""),t=(t=t.replace(/^(\s|\[)+|(\s|\])+$/g,"")).split(",");for(var r=0;r<t.length;r++)t[r]=t[r]?'"'+t[r]+'"':"null";return'{"'+e+'":['+(t=t.join(","))+"]"+a},updateSocketData=function(_){updateChild(_,exchangeDataRef.current,setExchangeData)},updateChild=function(_,e,t){var a=JSON.parse(_),r=getKeys(a)[0],n=deepCopy(e),o=!1;n.map((function(_){a[r][8]&&"v"==a[r][8]?r==_.quoteCode&&(o=!0,_.tradePrice="--",_.openPrice="--",_.highPrice="--",_.lowPrice="--",_.range="--",_.rangePercent="--",_.date="--"):r==_.quoteCode&&a[r]&&a[r][1]&&moment__WEBPACK_IMPORTED_MODULE_10___default()(a[r][1]).valueOf()>=moment__WEBPACK_IMPORTED_MODULE_10___default()(_.date).valueOf()&&(o=!0,_.tradePrice=a[r]&&a[r][2]?a[r][2]:_.tradePrice,_.openPrice=a[r]&&a[r][3]?a[r][3]:_.openPrice,_.highPrice=a[r]&&a[r][4]?a[r][4]:_.highPrice,_.lowPrice=a[r]&&a[r][5]?a[r][5]:_.lowPrice,_.range=a[r]&&a[r][7]?a[r][7]-0:_.range,_.rangePercent=a[r]&&a[r][8]?-1!=a[r][8].indexOf("+")?a[r][8].slice(1):a[r][8]:_.rangePercent,_.date=a[r]&&a[r][1]?a[r][1]:_.date)})),o&&t(n)},getKeys=function(_){var e=[];for(var t in _)_.hasOwnProperty(t)&&e.push(t);return e},deepCopy=function deepCopy(){var sourceObj=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},targetObj=Array.isArray(sourceObj)?[]:{};for(var prop in sourceObj)"object"===typeof sourceObj[prop]?sourceObj[prop]instanceof Object?targetObj[prop]=deepCopy(sourceObj[prop]):targetObj[prop]=sourceObj[prop]:"function"===typeof sourceObj[prop]?targetObj[prop]=eval(sourceObj[prop].toString()):targetObj[prop]=sourceObj[prop];return targetObj},getCommonData=function(){var _=(0,_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_13__.Z)(_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default().mark((function _(e,t,a){var r,n,o;return _var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default().wrap((function(_){for(;;)switch(_.prev=_.next){case 0:return r=js_cookie__WEBPACK_IMPORTED_MODULE_7__.Z.get("t")?js_cookie__WEBPACK_IMPORTED_MODULE_7__.Z.get("t"):"",a(!0),_.next=4,(0,_service_quotesService__WEBPACK_IMPORTED_MODULE_9__.gZ)({categoryCode:calculateCode(e),pageNo:1,pageSize:5,showArea:1},r);case 4:0==(n=_.sent).code?(t(n.data.list),o=[],n.data.list.map((function(_){_.quoteCode&&o.push(_.quoteCode)})),parameters.setSocketCodeArr(o)):Toast.show({icon:"fail",content:n.data||"\u83b7\u53d6"+e+"\u4fe1\u606f\u593
11\u8d25\uff01"}),a(!1);case 7:case"end":return _.stop()}}),_)})));return function(e,t,a){return _.apply(this,arguments)}}(),calculateCode=function(_){var e=parameters.defaultNavList.filter((function(e){return e.categoryName==_}));return e&&e.length?e[0].categoryCode:""},columns=[{title:"\u540d\u79f0",dataIndex:"name",key:"name",width:"40%",render:function(_,e){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("span",{className:_css_mobile_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_14___default().name,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("a",{href:_config_config__WEBPACK_IMPORTED_MODULE_8__.LX+"/quote/"+e.quoteCode,target:"_blank",children:_})})}},{title:"\u5f53\u524d\u503c",dataIndex:"tradePrice",key:"tradePrice",width:"40%"},{title:"\u6da8\u8dcc\u5e45\u5ea6",dataIndex:"rangePercent",key:"rangePercent",width:"20%",render:function(_,e){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("span",{className:e.range<0?_css_mobile_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_14___default().tableGreen:_css_mobile_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_14___default().tableRed,children:e.range>0?"+"+_:_})}}];return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)("div",{className:_css_mobile_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_14___default().commonItem,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)("div",{className:_css_mobile_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_14___default().hd,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("span",{children:parameters.name}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("a",{href:_config_config__WEBPACK_IMPORTED_MODULE_8__.LX+"/quotes/"+parameters.moreCode,className:_css_mobile_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_14___default().more,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(antd_mobile_icons__WEBPACK_IMPORTED_MODULE_15__.Z,{})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("div",{className:_css_mobile_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_14___default().bd,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("div",{className:_css_mobile_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_14___default().listTable,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(antd_lib_config_provider__WEBPACK_IMPORTED_MODULE_16__.default,{locale:antd_lib_locale_zh_CN__WEBPACK_IMPORTED_MODULE_17__.Z,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(antd_lib_table__WEBPACK_IMPORTED_MODULE_18__.Z,{rowKey:"quoteCode",loading:{indicator:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_19__.Z,{spin:!0}),spinning:exchangeLoading},pagination:!1,showHeader:!1,columns:columns,dataSource:exchangeData,locale:{emptyText:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(_component_mobile_global_empty__WEBPACK_IMPORTED_MODULE_11__.Z,{widthPercent:"65%",paddingTop:"10vw",paddingBottom:"10vw"})}})})})})]})}catch(e){return null}};__webpack_exports__.Z=CommonItem_Mobile},67162:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(40037),antd_lib_spin_style__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(9405),antd_lib_spin_style__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(antd_lib_spin_style__WEBPACK_IMPORTED_MODULE_0__),antd_lib_spin__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(89552),_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(30266),_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(809),_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1__),react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(67294),next_dynamic__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5152),next_router__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(11163),_js_common__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(17108),js_cookie__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(31955),_css_mobile_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(72089),_css_mobile_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(_css_mobile_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_15__),_ant_design_icons__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(50888),_config_config__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(36389),_service_quotesService__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(81050),_component_mobile_quotes_commonItem__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(24868),moment__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(30381),moment__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_10__),antd_mobile__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(47186),_component_mobile_global_empty__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(43822),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(85893),SocketItem_PC=(0,next_dynamic__WEBPACK_IMPORTED_MODULE_3__.default)((function(){return Promise.all([__webpack_require__.e(6502),__webpack_require__.e(4402)]).then(__webpack_require__.bind(__webpack_require__,54402)).then((function(_){return _}))}),{ssr:!1,loadableGenerated:{webpack:function(){return[54402]},modules:["../component/mobile/quotes/goodsAllListContent.js -> @/component/pc/quotes/socketItem"]}}),GoodsAllListContent_Mobile=function GoodsAllListContent_Mobile(props){try{var parameters=props.params,_useState=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(!1),importantLoading=_useState[0],setImportantLoading=_useState[1],_useState2=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(parameters.importantData.list),importantData=_useState2[0],setImportantData=_useState2[1],importantDataRef=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(importantData),_useState3=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)([]),socketCodeArr=_useState3[0],setSocketCodeArr=_useState3[1],_useState4=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)([]),socketCodeArr1=_useState4[0],setSocketCodeArr1=_useState4[1],_useState5=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)([]),socketCodeArr2=_useState5[0],setSocketCodeArr2=_useState5[1],_useState6=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)([]),socketCodeArr3=_useState6[0],setSocketCodeArr3=_useState6[1],ChildRef1=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(),ChildRef2=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(),ChildRef3=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)();(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)((function(){havingImportant()&&getImportantData(havingImportant())}),[]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)((function(){importantDataRef.current=importantData}),[importantData]);var rebuildObj=function(_){var e=_.match(/(\S*)\[/)[1],t=_.match(/\[.*?\]/g)[0],a=_.match(/\](\S*)/)[1];e=e.replace(/^(\s|\{)+|(\s|\:)+$/g,""),t=(t=t.replace(/^(\s|\[)+|(\s|\])+$/g,"")).split(",");for(var r=0;r<t.length;r++)t[r]=t[r]?'"'+t[r]+'"':"null";return'{"'+e+'":['+(t=t.join(","))+"]"+a},updateSocketData=function(_){updateChild(_,importantDataRef.current,setImportantData),ChildRef1.current.updateSocketData(_),ChildRef2.current.updateSocketData(_),ChildRef3.current.updateSocketData(_)},updateChild=function(_,e,t){var a=JSON.parse(_),r=getKeys(a)[0],n=deepCopy(e),o=!1;n.map((function(_){r==_.quoteCode&&a[r]&&a[r][1]&&moment__WEBPACK_IMPORTED_MODULE_10___default()(a[r][1]).valueOf()>=moment__WEBPACK_IMPORTED_MODULE_10___default()(_.date).valueOf()&&(o=!0,_.tradePrice=a[r]&&a[r][2]?a[r][2]:_.tradePrice,_.openPrice=a[r]&&a[r][3]?a[r][3]:_.openPrice,_.highPrice=a[r]&&a[r][4]?a[r][4]:_.highPrice,_.lowPrice=a[r]&&a[r][5]?a[r][5]:_.lowPrice,_.range=a[r]&&a[r][7]?a[r][7]-0:_.range,_.rangePercent=a[r]&&a[r][8]?-1!=a[r][8].indexOf("+")?a[r][8].slice(1):a[r][8]:_.rangePercent,_.date=a[r]&&a[r][1]?a[r][1]:_.date)})),o&&t(n)},getKeys=function(_){var e=[];for(var t in _)_.hasOwnProperty(t)&&e.push(t);return e},deepCopy=function deepCopy(){var sourceObj=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},targetObj=Array.isArray(sourceObj)?[]:{};for(var prop in sourceObj)"object"===typeof sourceObj[prop]?sourceObj[prop]instanceof Object?targetObj[prop]=deepCopy(sourceObj[prop]):targetObj[prop]=sourceObj[prop]:"function"===typeof sourceObj[prop]?targetObj[prop]=eval(sourceObj[prop].toString()):targetObj[prop]=sourceObj[prop];return targetObj},getImportantData=function(){var _=(0,_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_14__.Z)(_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().mark((function _(e){var t,a,r;return _var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default().wrap((function(_){for(;;)switch(_.prev=_.next){case 0:return t=js_cookie__WEBPACK_IMPORTED_MODULE_6__.Z.get("t")?js_cookie__WEBPACK_IMPORTED_MODULE_6__.Z.get("t"):"",setImportantLoading(!0),_.next=4,(0,_service_quotesService__WEBPACK_IMPORTED_MODULE_8__.gZ)({categoryCode:e,isImportantQuote:1,showArea:1},t);case 4:0==(a=_.sent).code?(setImportantData(a.data.list),r=[],a.data.list.map((function(_){_.quoteCode&&r.push(_.quoteCode)})),setSocketCodeArr(r)):antd_mobile__WEBPACK_IMPORTED_MODULE_11__.FN.show({icon:"fail",content:a.data||"\u83b7\u53d6\u5168\u7403\u4fe1\u606f\u593
11\u8d25\uff01"}),setImportantLoading(!1);case 7:case"end":return _.stop()}}),_)})));return function(e){return _.apply(this,arguments)}}(),havingImportant=function(){if(parameters.currentChannel&&parameters.currentChannel.quoteCategoryListVo&&parameters.currentChannel.quoteCategoryListVo.length){var _=parameters.currentChannel.quoteCategoryListVo.filter((function(_){return"\u91cd\u8981"==_.categoryName}));return _.length?_[0].categoryCode:null}return null},renderGlobal=function(_){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)("div",{className:(0,_js_common__WEBPACK_IMPORTED_MODULE_5__.cx)(_css_mobile_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_15___default().marketItem,_.range<0?_css_mobile_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_15___default().marketItemGreen:_css_mobile_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_15___default().marketItemRed),children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)("div",{className:_css_mobile_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_15___default().marketName,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)("a",{href:_config_config__WEBPACK_IMPORTED_MODULE_7__.LX+"/quote/"+_.quoteCode,target:"_blank",children:_.name?_.name:"--"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)("div",{className:_css_mobile_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_15___default().marketPrice,children:_.tradePrice?_.tradePrice:"--"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)("div",{className:_css_mobile_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_15___default().marketRange,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)("span",{children:_.range>0?"+"+_.range:_.range}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)("span",{children:_.range>0?"+"+_.rangePercent:_.rangePercent})]})]},_.quoteCode)},calculateCode=function(_){var e=parameters.currentChannel.quoteCategoryListVo.filter((function(e){return e.categoryName==_}));return e&&e.length?e[0].categoryCode:""};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)("div",{className:_css_mobile_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_15___default().globalContent,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)("div",{className:_css_mobile_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_15___default().secondNavList,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)(antd_mobile__WEBPACK_IMPORTED_MODULE_11__.GC,{defaultActiveKey:parameters.currentChannel.categoryCode,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(antd_mobile__WEBPACK_IMPORTED_MODULE_11__.GC.Tab,{title:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)("a",{href:_config_config__WEBPACK_IMPORTED_MODULE_7__.LX+"/quotes/commodity",children:"\u5168\u90e8"})},"003"),parameters.currentChannel&&parameters.currentChannel.quoteCategoryListVo&&parameters.currentChannel.quoteCategoryListVo.length&&parameters.currentChannel.quoteCategoryListVo.map((function(_){if("important"!=_.categoryUrl)return"\u4e0a\u671f\u6240"==_.categoryName||"\u4e0a\u671f\u80fd\u6e90"==_.categoryName||"\u5927\u5546\u6240"==_.categoryName||"\u90d1\u5546\u6240"==_.categoryName||"\u5e7f\u5dde\u671f\u8d27"==_.categoryName||"\u7ebd\u7ea6NYMEX"==_.categoryName||"\u7ebd\u7ea6COMEX"==_.categoryName||"\u829d\u52a0\u54e5CBOT"==_.categoryName||"\u829d\u52a0\u54e5CME"==_.categoryName||"\u829d\u52a0\u54e5CBOE"==_.categoryName||"\u4f26\u6566LME"==_.categoryName||"\u6d32\u9645ICE"==_.categoryName||"\u4e1c\u4eacTOCM"==_.categoryName||"\u9999\u6e2fHKEX"==_.categoryName?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(antd_mobile__WEBPACK_IMPORTED_MODULE_11__.GC.Tab,{title:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)("a",{href:_config_config__WEBPACK_IMPORTED_MODULE_7__.LX+"/quotes/futures/"+_.categoryUrl,children:_.categoryName})},_.categoryCode):"\u56fd\u9645\u671f\u8d27"==_.categoryName?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(antd_mobile__WEBPACK_IMPORTED_MODULE_11__.GC.Tab,{title:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)("a",{href:_config_config__WEBPACK_IMPORTED_MODULE_7__.LX+"/quotes/commodity/nymex",children:_.categoryName})},_.categoryCode):"\u9ec4\u91d1"==_.categoryName?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(antd_mobile__WEBPACK_IMPORTED_MODULE_11__.GC.Tab,{title:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)("a",{href:_config_config__WEBPACK_IMPORTED_MODULE_7__.LX+"/quotes/commodity/shangjin",children:_.categoryName})},_.categoryCode):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(antd_mobile__WEBPACK_IMPORTED_MODULE_11__.GC.Tab,{title:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)("a",{href:_config_config__WEBPACK_IMPORTED_MODULE_7__.LX+"/quotes/commodity/"+_.categoryUrl,children:_.categoryName})},_.categoryCode)}))]})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)("div",{className:_css_mobile_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_15___default().globalMarket,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(antd_lib_spin__WEBPACK_IMPORTED_MODULE_16__.default,{spinning:importantLoading,indicator:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_17__.Z,{spin:!0}),children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)("div",{className:_css_mobile_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_15___default().bd,children:[importantData&&importantData.length?"":(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_component_mobile_global_empty__WEBPACK_IMPORTED_MODULE_12__.Z,{widthPercent:"65%",paddingTop:"10vw",paddingBottom:"10vw"}),importantData.map((function(_,e){return renderGlobal(_)}))]})})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsxs)("div",{className:_css_mobile_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_15___default().commonList,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_component_mobile_quotes_commonItem__WEBPACK_IMPORTED_MODULE_9__.Z,{onRef:ChildRef1,params:{defaultList:parameters.data&&parameters.data[calculateCode("\u91d1\u5c
15e\u94a2\u6750")]?parameters.data[calculateCode("\u91d1\u5c5e\u94a2\u6750")]:[],defaultNavList:parameters.currentChannel.quoteCategoryListVo,setSocketCodeArr:setSocketCodeArr1,name:"\u91d1\u5c5e\u94a2\u6750",tag:"exchange",moreCode:"commodity/metal"}}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_component_mobile_quotes_commonItem__WEBPACK_IMPORTED_MODULE_9__.Z,{onRef:ChildRef2,params:{defaultList:parameters.data&&parameters.data[calculateCode("\u80fd\u6e90\u5316\u5de5")]?parameters.data[calculateCode("\u80fd\u6e90\u5316\u5de5")]:[],defaultNavList:parameters.currentChannel.quoteCategoryListVo,setSocketCodeArr:setSocketCodeArr2,name:"\u80fd\u6e90\u5316\u5de5",tag:"goods",moreCode:"commodity/chemical"}}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(_component_mobile_quotes_commonItem__WEBPACK_IMPORTED_MODULE_9__.Z,{onRef:ChildRef3,params:{defaultList:parameters.data&&parameters.data[calculateCode("\u519c\u4ea7\u54c1")]?parameters.data[calculateCode("\u519c\u4ea7\u54c1")]:[],defaultNavList:parameters.currentChannel.quoteCategoryListVo,setSocketCodeArr:setSocketCodeArr3,name:"\u519c\u4ea7\u54c1",tag:"marketIndex",moreCode:"commodity/agriculture"}})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_13__.jsx)(SocketItem_PC,{params:{data:[].concat((0,_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_18__.Z)(socketCodeArr),(0,_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_18__.Z)(socketCodeArr1),(0,_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_18__.Z)(socketCodeArr2),(0,_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_18__.Z)(socketCodeArr3)),updateSocketData:updateSocketData}})]})}catch(e){return null}};__webpack_exports__.Z=GoodsAllListContent_Mobile},65487:function(_,e,t){"use strict";t(67294),t(17108);var a=t(7725),r=t(85893);e.Z=function(_){var e=_.errorCode,t=void 0===e?404:e;try{return 429==t?(0,r.jsx)(a.default,{is404:!1}):(0,r.jsx)(a.default,{is404:!0})}catch(n){return null}}},11600:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var antd_lib_spin_style__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(9405),antd_lib_spin_style__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(antd_lib_spin_style__WEBPACK_IMPORTED_MODULE_0__),antd_lib_spin__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(89552),_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(40037),react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(67294),next_dynamic__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5152),_js_common__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(17108),js_cookie__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(31955),_ant_design_icons__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(50888),_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(45316),_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_13__),_config_config__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(36389),moment__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(30381),moment__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_6__),echarts__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(7927),_component_pc_global_empty__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(27918),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(85893),ChartContent_PC=function ChartContent_PC(props){try{var parameters=props.params,_useState=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(),myChart=_useState[0],setMyChart=_useState[1],_useState2=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)([parameters.code?parameters.code:""]),socketCodeArr=_useState2[0],setSocketCodeArr=_useState2[1],dataRef=(0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(parameters.data),socketCodeArrRef=(0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(socketCodeArr),_use
1State3=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(),highValue=_useState3[0],setHighValue=_useState3[1],_useState4=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(),lowValue=_useState4[0],setLowValue=_useState4[1],_useState5=(0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(),averageValue=_useState5[0],setAverageValue=_useState5[1];(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)((function(){parameters.data&&parameters.data.quoteTSDList&&parameters.data.quoteTSDList.length&&build(),dataRef.current=parameters.data}),[parameters.data]),(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)((function(){parameters.code?(setSocketCodeArr([parameters.code]),socketCodeArrRef.current=[parameters.code]):(setSocketCodeArr([]),socketCodeArrRef.current=[]),setMyChart(null)}),[parameters.code]),(0,react__WEBPACK_IMPORTED_MODULE_1__.useImperativeHandle)(props.onRef,(function(){return{updateSocketData:updateSocketData}}));var rebuildObj=function(_){var e=_.match(/(\S*)\[/)[1],t=_.match(/\[.*?\]/g)[0],a=_.match(/\](\S*)/)[1];e=e.replace(/^(\s|\{)+|(\s|\:)+$/g,""),t=(t=t.replace(/^(\s|\[)+|(\s|\])+$/g,"")).split(",");for(var r=0;r<t.length;r++)t[r]=t[r]?'"'+t[r]+'"':"null";return'{"'+e+'":['+(t=t.join(","))+"]"+a},updateSocketData=function(_){if(!parameters.data||parameters.data.quoteTSDList){var e=JSON.parse(_),t=getKeys(e)[0];if(t==socketCodeArrRef.current[0]){e[t][0]&&"v"==e[t][0]&&setTimeout((function(){parameters.getChartData(parameters.code,parameters.setData,parameters.setLoading)}),2e3);var a=dataRef.current&&dataRef.current.timeRange?generateXLine(dataRef.current.timeRange):[],r=e[t]&&e[t][1]?moment__WEBPACK_IMPORTED_MODULE_6___default()(e[t][1]).format("YYYY-MM-DD HH:mm"):"";if(a.indexOf(r)>-1){var n=deepCopy(dataRef.current);n.quoteTSDList=n.quoteTSDList?n.quoteTSDList:[],n.quoteTSDList.filter((function(_){return moment__WEBPACK_IMPORTED_MODULE_6___default()(_.tm).format("YYYY-MM-DD HH:mm")==(e[t]&&e[t][1]?moment__WEBPACK_IMPORTED_MODULE_6___default()(e[t][1]).format("YYYY-MM-DD HH:mm"):"")})).length?n.quoteTSDList.map((function(_){(e[t]&&e[t][1]?moment__WEBPACK_IMPORTED_MODULE_6___default()(e[t][1]).format("YYYY-MM-DD HH:mm"):"")==moment__WEBPACK_IMPORTED_MODULE_6___default()(_.tm).format("YYYY-MM-DD HH:mm")&&(_.close=e[t]&&e[t][2]?e[t][2]-0:_.close)})):e[t]&&e[t][2]&&n.quoteTSDList.push({close:e[t]&&e[t][2]?e[t][2]-0:"",time:moment__WEBPACK_IMPORTED_MODULE_6___default()(e[t]&&e[t][1]?e[t][1]:"").valueOf(),tm:e[t]&&e[t][1]?e[t][1]:""}),n.quoteTSDList&&n.quoteTSDList.sort((function(_,e){return _.time-e.time})),parameters.setData(n)}}}},floatAdd=function(_,e){var t,a,r;try{t=_.toString().split(".")[1].length}catch(n){t=0}try{a=e.toString().split(".")[1].length}catch(n){a=0}return(_*(r=Math.pow(10,Math.max(t,a)))+e*r)/r},floatMinus=function(_,e){var t,a,r;try{t=_.toString().split(".")[1].length}catch(n){t=0}try{a=e.toString().split(".")[1].length}catch(n){a=0}return((_*(r=Math.pow(10,Math.max(t,a)))-e*r)/r).toFixed(t>=a?t:a)},getKeys=function(_){var e=[];for(var t in _)_.hasOwnProperty(t)&&e.push(t);return e},deepCopy=function deepCopy(){var sourceObj=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},targetObj=Array.isArray(sourceObj)?[]:{};for(var prop in sourceObj)"object"===typeof sourceObj[prop]?sourceObj[prop]instanceof Object?targetObj[prop]=deepCopy(sourceObj[prop]):targetObj[prop]=sourceObj[prop]:"function"===typeof sourceObj[prop]?targetObj[prop]=eval(sourceObj[prop].toString()):targetObj[prop]=sourceObj[prop];return targetObj},generateTimeArr=function(_,e){for(var t=[],a=0;a<=(e-_)/6e4;a++)t.push(moment__WEBPACK_IMPORTED_MODULE_6___default()(_+6e4*a).format("YYYY-MM-DD HH:mm"));return t},generateXLine=function(_){for(var e=generateShowTime(_),t=[],a=[],r=0;r<e.length;r+=2)t.push(e.slice(r,r+2));for(var n=0;n<t.length;n++)a=[].concat((0,_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_10__.Z)(a),(0,_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_10__.Z)(generateTimeArr(moment__WEBPACK_IMPORTED_MODULE_6___default()(t[n][0]).valueOf(),moment__WEBPACK_IMPORTED_MODULE_6___default()(t[n][1]).valueOf())));return a},generateShowTime=function(_){for(var e=_.split(/[|~]/),t=0;t<e.length;t++)e[t]=moment__WEBPACK_IMPORTED_MODULE_6___default()((0,_js_common__WEBPACK_IMPORTED_MODULE_3__.Tx)(new Date(e[t]))).format("YYYY-MM-DD HH:mm");return e},caculateYMax=function(){var _=Number(parameters.data.averAge),e=parameters.data.quoteTSDList.sort((function(_,e){return _.close-e.close}))[0].close,t=parameters.data.quoteTSDList.sort((function(_,e){return e.close-_.close}))[0].close;return Math.abs(t-_)>Math.abs(e-_)?Number(Number(_)+Math.abs(t-_)).toFixed(parameters.data.decimalDigits):Number(Number(_)+Math.abs(e-_)).toFixed(parameters.data.decimalDigits)},caculateYMin=function(){var _=parameters.data.averAge,e=parameters.data.quoteTSDList.sort((function(_,e){return _.close-e.close}))[0].close,t=parameters.data.quoteTSDList.sort((function(_,e){return e.close-_.close}))[0].close;return Math.abs(t-_)>Math.abs(e-_)?Number(Number(_)-Number(Math.abs(t-_))).toFixed(parameters.data.decimalDigits):Number(Number(_)-Number(Math.abs(e-_))).toFixed(parameters.data.decimalDigits)},option={tooltip:{trigger:"axis",position:"inside"},grid:[{id:"gd1",left:"6%",right:"6%",height:"85%",top:"5%"}],xAxis:[{type:"category",gridIndex:0,data:parameters.data&&parameters.data.timeRange?generateXLine(parameters.data.timeRange):[],axisLabel:{formatter:function(_,e){var t=generateShowTime(parameters.data.timeRange);return-1!=t.indexOf(_)?0!=t.indexOf(_)&&t.indexOf(_)%2===0?null:(0!=t.indexOf(_)&&t.indexOf(_)%1===0&&(t.indexOf(_),t.length),moment__WEBPACK_IMPORTED_MODULE_6___default()(_).format("HH:mm")):null},interval:function(_,e){return-1!=generateShowTime(parameters.data.timeRange).indexOf(e)&&1}},splitLine:{show:!1}}
1],yAxis:[{type:"value",axisLine:{show:!1},gridIndex:0,min:function(_){return caculateYMin()-0},max:function(_){return caculateYMax()-0},showMinLabel:!0,showMaxLabel:!0,axisLabel:{hideOverlap:!1,inside:!0,show:!0,formatter:function(_,e){return null}},z:4,splitLine:{show:!1,lineStyle:{color:"#181a23"}}}],series:[{name:"\u6536\u76d8\u4ef7",type:"line",smooth:!0,symbol:"none",data:parameters.data&&parameters.data.quoteTSDList?parameters.data.quoteTSDList.map((function(_){return[moment__WEBPACK_IMPORTED_MODULE_6___default()(_.time).format("YYYY-MM-DD HH:mm"),_.close]})):[],areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"#CADAFC"},{offset:1,color:"#fff"}],global:!1}},lineStyle:{width:.1},emphasis:{lineStyle:{width:.3}},color:["#608AE3"],large:!0}]},build=function(){if(myChart)myChart.setOption(option),setHighValue(caculateYMax()-0),setLowValue(caculateYMin()-0),setAverageValue(parameters.data&&parameters.data.averAge?parameters.data.averAge:"");else{var _=document.getElementById("chartArea"+parameters.name),e=echarts__WEBPACK_IMPORTED_MODULE_7__.S1(_);setMyChart(e),e.setOption(option),setHighValue(caculateYMax()-0),setLowValue(caculateYMin()-0),setAverageValue(parameters.data&&parameters.data.averAge?parameters.data.averAge:"")}};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(antd_lib_spin__WEBPACK_IMPORTED_MODULE_11__.default,{spinning:parameters.loading,wrapperClassName:"chartLoading",indicator:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_12__.Z,{spin:!0}),children:parameters.data&&parameters.data.quoteTSDList&&parameters.data.quoteTSDList.length?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div",{className:_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_13___default().chartWrap,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("span",{className:_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_13___default().highValue,children:highValue}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("span",{className:_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_13___default().lowValue,children:lowValue}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("span",{className:_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_13___default().averageValue,children:averageValue}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div",{className:_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_13___default().chartInner,id:"chartArea"+parameters.name,style:{height:"280px"}})]}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_component_pc_global_empty__WEBPACK_IMPORTED_MODULE_8__.Z,{widthPercent:"35%",paddingTop:"30px",paddingBottom:"30px"})})}catch(e){return null}};__webpack_exports__.Z=ChartContent_PC},40967:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var antd_lib_config_provider_style__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(82932),antd_lib_config_provider_style__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(antd_lib_config_provider_style__WEBPACK_IMPORTED_MODULE_0__),antd_lib_config_provider__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(31929),antd_lib_table_style__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(15144),antd_lib_table_style__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(antd_lib_table_style__WEBPACK_IMPORTED_MODULE_1__),antd_lib_table__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(2307),antd_lib_message_style__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(75314),antd_lib_message_style__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(antd_lib_message_style__WEBPACK_IMPORTED_MODULE_2__),antd_lib_message__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(11187),_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(30266),_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(809),_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3__),react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(67294),next_dynamic__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(5152),next_router__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(11163),_js_common__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(17108),js_cookie__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(31955),_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(45316),_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_17___default=__webpack_require__.n(_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_17__),_ant_design_icons__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(50888),antd_lib_locale_zh_CN__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(82925),_config_config__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(36389),_service_quotesService__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(81050),_component_pc_quotes_chartContent__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(11600),moment__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(30381),moment__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_12__),_component_pc_global_empty__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(27918),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(85893),CommonItem_PC=function CommonItem_PC(_ref){var onRef=_ref.onRef,params=_ref.params,colorType=_ref.colorType;try{var parameters=params,_useState=(0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(parameters.defaultList),exchangeData=_useState[0],setExchangeData=_useState[1],_useState2=(0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(!1),exchangeLoading=_useState2[0],setExchangeLoading=_useState2[1],_useState3=(0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(parameters.defaultList.length?parameters.defaultList[0].quoteCode:""),exchangeChartCode=_useState3[0],setExchangeChartCode=_useState3[1],_useState4=(0,react__WEBPACK_IMPORTED_MODULE_4__.useState)([]),exchangeChartData=_useState4[0],setExchangeChartData=_useState4[1],_useState5=(0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(!1),exchangeChartLoading=_useState5[0],setExchangeChartLoading=_useState5[1],exchangeDataRef=(0,react__WEBPACK_IMPORTED_MODULE_4__.useRef)(exchangeData),ChildRef=(0,react__WEBPACK_IMPORTED_MODULE_4__.useRef)();(0,react__WEBPACK_IMPORTED_MODULE_4__.useImperativeHandle)(onRef,(function(){return{updateSocketData:updateSocketData}})),(0,react__WEBPACK_IMPORTED_MODULE_4__.useEffect)((function(){var _=[];parameters.defaultList.map((function(e){e.quoteCode&&_.push(e.quoteCode)})),parameters.setSocketCodeArr(_)}),[]),(0,react__WEBPACK_IMPORTED_MODULE_4__.useEffect)((function(){exchangeChartCode&&(setExchangeChartData([]),getChartData(exchangeChartCode,setExchangeChartData,setExchangeChartLoading))}),[exchangeChartCode]),(0,react__WEBPACK_IMPORTED_MODULE_4__.useEffect)((function(){exchangeDataRef.current=exchangeData}),[exchangeData]);var rebuildObj=function(_){var e=_.match(/(\S*)\[/)[1],t=_.match(/\[.*?\]/g)[0],a=_.match(/\](\S*)/)[1];e=e.replace(/^(\s|\{)+|(\s|\:)+$/g,""),t=(t=t.replace(/^(\s|\[)+|(\s|\])+$/g,"")).split(",");for(var r=0;r<t.length;r++)t[r]=t[r]?'"'+t[r]+'"':"null";return'{"'+e+'":['+(t=t.join(","))+"]"+a},updateSocketData=function(_){updateChild(_,exchangeDataRef.current,setExchangeData),ChildRef.current.updateSocketData(_)},updateChild=function(_,e,t){var a=JSON.parse(_),r=getKeys(a)[0],n=deepCopy(e),o=!1;n.map((function(_){a[r][8]&&"v"==a[r][8]?r==_.quoteCode&&(o=!0,_.tradePrice="--",_.openPrice="--",_.highPrice="--",_.lowPrice="--",_.range="--",_.rangePercent="--",_.date="--"):r==_.quoteCode&&a[r]&&a[r][1]&&moment__WEBPACK_IMPORTED_MODULE_12___default()(a[r][1]).valueOf()>=moment__WEBPACK_IMPORTED_MODULE_12___default()(_.date).valueOf()&&(o=!0,_.tradePrice=a[r]&&a[r][2]?a[r][2]:_.tradePrice,_.openPrice=a[r]&&a[r][3]?a[r][3]:_.openPrice,_.highPrice=a[r]&&a[r][4]?a[r][4]:_.highPrice,_.lowPrice=a[r]&&a[r][5]?a[r][5]:_.lowPrice,_.range=a[r]&&a[r][7]?a[r][7]-0:_.range,_.rangePercent=a[r]&&a[r][8]?-1!=a[r][8].indexOf("+")?a[r][8].slice(1):a[r][8]:_.rangePercent,_.date=a[r]&&a[r][1]?a[r][1]:_.date)})),o&&t(n)},getKeys=function(_){var e=[];for(var t in _)_.hasOwnProperty(t)&&e.push(t);return e},deepCopy=function deepCopy(){var sourceObj=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},targetObj=Array.isArray(sourceObj)?[]:{};for(var prop in sourceObj)"object"===typeof sourceObj[prop]?sourceObj[prop]instanceof Object?targetObj[prop]=deepCopy(sourceObj[prop]):targetObj[prop]=sourceObj[prop]:"function"===typeof sourceObj[prop]?targetObj[prop]=eval(sourceObj[prop].toString()):targetObj[prop]=sourceObj[prop];return targetObj},getCommonData=function(){var _=(0,_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_15__.Z)(_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default().mark((function _(e,t,a,r){var n,o,s;return _var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default().wrap((function(_){for(;;)switch(_.prev=_.next){case 0:return n=js_cookie__WEBPACK_IMPORTED_MODULE_8__.Z.get("t")?js_cookie__WEBPACK_IMPORTED_MODULE_8__.Z.get("t"):"",a(!0),_.next=4,(0,_service_quotesService__WEBPACK_IMPORTED_MODULE_10__.gZ)({categoryCode:calculateCode(e),pageNo:1,pageSize:5,showArea:1},n);case 4:0==(o=_.sent).code?(t(o.data.list),o.data.list&&o.data.list.length?r(o.data.list[0].quoteCode):r(""),s=[],o.data.list.map((function(_){_.quoteCode&&s.push(_.quoteCode)})),parameters.setSocketCodeArr(s)):antd_lib_message__WEBPACK_IMPORTED_MODULE_16__.default.error(o.data||"\u83b7\u53d6"+e+"\u4fe1\u606f\u593
11\u8d25\uff01"),a(!1);case 7:case"end":return _.stop()}}),_)})));return function(e,t,a,r){return _.apply(this,arguments)}}(),getChartData=function(){var _=(0,_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_15__.Z)(_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default().mark((function _(e,t,a){var r,n;return _var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default().wrap((function(_){for(;;)switch(_.prev=_.next){case 0:return r=js_cookie__WEBPACK_IMPORTED_MODULE_8__.Z.get("t")?js_cookie__WEBPACK_IMPORTED_MODULE_8__.Z.get("t"):"",a(!0),_.next=4,(0,_service_quotesService__WEBPACK_IMPORTED_MODULE_10__.HN)({symbol:e,resolution:1},r);case 4:0==(n=_.sent).code?(n.data.averAge=Number(n.data.averAge).toFixed(n.data.decimalDigits)-0,n.data.quoteTSDList&&n.data.quoteTSDList.sort((function(_,e){return _.time-e.time})),n.data.quoteTSDList&&n.data.quoteTSDList.map((function(_){_.close=Number(_.close).toFixed(n.data.decimalDigits)-0})),t(n.data)):antd_lib_message__WEBPACK_IMPORTED_MODULE_16__.default.error(n.data||"\u83b7\u53d6"+name+"\u4fe1\u606f\u5931\u8d25\uff01"),setTimeout((function(){a(!1)}),1e3);case 7:case"end":return _.stop()}}),_)})));return function(e,t,a){return _.apply(this,arguments)}}(),calculateCode=function(_){var e=parameters.defaultNavList.filter((function(e){return e.categoryName==_}));return e&&e.length?e[0].categoryCode:""},columns=[{title:"\u540d\u79f0",dataIndex:"name",key:"name",align:"center",render:function(_,e){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)("span",{className:_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_17___default().name,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)("a",{href:_config_config__WEBPACK_IMPORTED_MODULE_9__.LX+"/quote/"+e.quoteCode,target:"_blank",children:_})})}},{title:"\u5f53\u524d\u503c",dataIndex:"tradePrice",key:"tradePrice",align:"center"},{title:"\u6da8\u8dcc\u989d",dataIndex:"range",key:"range",align:"center",render:function(_,e){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)("span",{className:e.range<0?"rugd"==colorType?_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_17___default().tableGreen:_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_17___default().tableRed:"rugd"==colorType?_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_17___default().tableRed:_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_17___default().tableGreen,children:e.range>0?"+"+_:_})}},{title:"\u6da8\u8dcc\u5e45\u5ea6",dataIndex:"rangePercent",key:"rangePercent",align:"center",render:function(_,e){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)("span",{className:e.range<0?"rugd"==colorType?_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_17___default().tableGreen:_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_17___default().tableRed:"rugd"==colorType?_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_17___default().tableRed:_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_17___default().tableGreen,children:e.range>0?"+"+_:_})}}];return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsxs)("div",{className:_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_17___default().commonItem,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsxs)("div",{className:_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_17___default().hd,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)("span",{children:parameters.name}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsxs)("a",{href:_config_config__WEBPACK_IMPORTED_MODULE_9__.LX+"/quotes/"+parameters.moreCode,target:"_blank",className:_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_17___default().more,children:["\u66f4\u591a",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)("img",{src:_config_config__WEBPACK_IMPORTED_MODULE_9__.LX+"/img/more.svg",width:14,height:14})]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsxs)("div",{className:_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_17___default().bd,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)("div",{className:_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_17___default().graphic,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(_component_pc_quotes_chartContent__WEBPACK_IMPORTED_MODULE_11__.Z,{onRef:ChildRef,params:{data:exchangeChartData,getChartData:getChartData,setData:setExchangeChartData,code:exchangeChartCode,setLoading:setExchangeChartLoading,name:parameters.tag,loading:exchangeChartLoading}})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)("div",{className:_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_17___default().listTable,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(antd_lib_config_provider__WEBPACK_IMPORTED_MODULE_18__.default,{locale:antd_lib_locale_zh_CN__WEBPACK_IMPORTED_MODULE_19__.Z,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(antd_lib_table__WEBPACK_IMPORTED_MODULE_20__.Z,{rowKey:"quoteCode",loading:{indicator:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_21__.Z,{spin:!0}),spinning:exchangeLoading},pagination:!1,showHeader:!1,columns:columns,dataSource:exchangeData,locale:{emptyText:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(_component_pc_global_empty__WEBPACK_IMPORTED_MODULE_13__.Z,{widthPercent:"35%",paddingTop:"30px",paddingBottom:"30px"})},rowClassName:function(_){return _.quoteCode===exchangeChartCode?"clickRowStyl":""},onRow:function(_){var e=null;return{onMouseEnter:function(t){_.quoteCode!==exchangeChartCode&&(e=setTimeout((function(){setExchangeChartCode(_.quoteCode)}),300))},onMouseLeave:function(_){clearTimeout(e)}}}})})})]})]})}catch(e){return null}};__webpack_exports__.Z=CommonItem_PC}
1,35378:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(40037),antd_lib_spin_style__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(9405),antd_lib_spin_style__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(antd_lib_spin_style__WEBPACK_IMPORTED_MODULE_0__),antd_lib_spin__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(89552),antd_lib_message_style__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(75314),antd_lib_message_style__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(antd_lib_message_style__WEBPACK_IMPORTED_MODULE_1__),antd_lib_message__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(11187),_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(30266),_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(809),_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2__),react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(67294),next_dynamic__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(5152),next_router__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(11163),_js_common__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(17108),js_cookie__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(31955),_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(45316),_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_17___default=__webpack_require__.n(_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_17__),_ant_design_icons__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(50888),_config_config__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(36389),_service_quotesService__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(81050),_component_pc_quotes_chartContent__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(11600),_component_pc_quotes_commonItem__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(40967),moment__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(30381),moment__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_12__),_component_pc_global_empty__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(27918),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(85893),SocketItem_PC=(0,next_dynamic__WEBPACK_IMPORTED_MODULE_4__.default)((function(){return Promise.all([__webpack_require__.e(6502),__webpack_require__.e(4402)]).then(__webpack_require__.bind(__webpack_require__,54402)).then((function(_){return _}))}),{ssr:!1,loadableGenerated:{webpack:function(){return[54402]},modules:["../component/pc/quotes/goodsAllListContent.js -> ./socketItem"]}}),GoodsAllListContent_PC=function GoodsAllListContent_PC(_ref){var params=_ref.params,colorType=_ref.colorType;try{var parameters=params,_useState=(0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(!1),importantLoading=_useState[0],setImportantLoading=_useState[1],_useState2=(0,react__WEBPACK_IMPORTED_MODULE_3__.useState)(parameters.importantData.list),importantData=_useState2[0],setImportantData=_useState2[1],importantDataRef=(0,react__WEBPACK_IMPORTED_MODULE_3__.useRef)(importantData),_useState3=(0,react__WEBPACK_IMPORTED_MODULE_3__.useState)([]),socketCodeArr=_useState3[0],setSocketCodeArr=_useState3[1],_useState4=(0,react__WEBPACK_IMPORTED_MODULE_3__.useState)([]),socketCodeArr1=_useState4[0],setSocketCodeArr1=_useState4[1],_useState5=(0,react__WEBPACK_IMPORTED_MODULE_3__.useState)([]),socketCodeArr2=_useState5[0],setSocketCodeArr2=_useState5[1],_useState6=(0,react__WEBPACK_IMPORTED_MODULE_3__.useState)([]),socketCodeArr3=_useState6[0],setSocketCodeArr3=_useState6[1],ChildRef1=(0,react__WEBPACK_IMPORTED_MODULE_3__.useRef)(),ChildRef2=(0,react__WEBPACK_IMPORTED_MODULE_3__.useRef)(),ChildRef3=(0,react__WEBPACK_IMPORTED_MODULE_3__.useRef)();(0,react__WEBPACK_IMPORTED_MODULE_3__.useEffect)((function(){havingImportant()&&getImportantData(havingImportant())}),[]),(0,react__WEBPACK_IMPORTED_MODULE_3__.useEffect)((function(){importantDataRef.current=importantData}),[importantData]);var rebuildObj=function(_){var e=_.match(/(\S*)\[/)[1],t=_.match(/\[.*?\]/g)[0],a=_.match(/\](\S*)/)[1];e=e.replace(/^(\s|\{)+|(\s|\:)+$/g,""),t=(t=t.replace(/^(\s|\[)+|(\s|\])+$/g,"")).split(",");for(var r=0;r<t.length;r++)t[r]=t[r]?'"'+t[r]+'"':"null";return'{"'+e+'":['+(t=t.join(","))+"]"+a},updateSocketData=function(_){updateChild(_,importantDataRef.current,setImportantData),ChildRef1.current.updateSocketData(_),ChildRef2.current.updateSocketData(_),ChildRef3.current.updateSocketData(_)},updateChild=function(_,e,t){var a=JSON.parse(_),r=getKeys(a)[0],n=deepCopy(e),o=!1;n.map((function(_){r==_.quoteCode&&a[r]&&a[r][1]&&moment__WEBPACK_IMPORTED_MODULE_12___default()(a[r][1]).valueOf()>=moment__WEBPACK_IMPORTED_MODULE_12___default()(_.date).valueOf()&&(o=!0,_.tradePrice=a[r]&&a[r][2]?a[r][2]:_.tradePrice,_.openPrice=a[r]&&a[r][3]?a[r][3]:_.openPrice,_.highPrice=a[r]&&a[r][4]?a[r][4]:_.highPrice,_.lowPrice=a[r]&&a[r][5]?a[r][5]:_.lowPrice,_.range=a[r]&&a[r][7]?a[r][7]-0:_.range,_.rangePercent=a[r]&&a[r][8]?-1!=a[r][8].indexOf("+")?a[r][8].slice(1):a[r][8]:_.rangePercent,_.date=a[r]&&a[r][1]?a[r][1]:_.date)})),o&&t(n)},getKeys=function(_){var e=[];for(var t in _)_.hasOwnProperty(t)&&e.push(t);return e},deepCopy=function deepCopy(){var sourceObj=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},targetObj=Array.isArray(sourceObj)?[]:{};for(var prop in sourceObj)"object"===typeof sourceObj[prop]?sourceObj[prop]instanceof Object?targetObj[prop]=deepCopy(sourceObj[prop]):targetObj[prop]=sourceObj[prop]:"function"===typeof sourceObj[prop]?targetObj[prop]=eval(sourceObj[prop].toString()):targetObj[prop]=sourceObj[prop];return targetObj},getImportantData=function(){var _=(0,_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_15__.Z)(_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default().mark((function _(e){var t,a,r;return _var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_2___default().wrap((function(_){for(;;)switch(_.prev=_.next){case 0:return t=js_cookie__WEBPACK_IMPORTED_MODULE_7__.Z.get("t")?js_cookie__WEBPACK_IMPORTED_MODULE_7__.Z.get("t"):"",setImportantLoading(!0),_.next=4,(0,_service_quotesService__WEBPACK_IMPORTED_MODULE_9__.gZ)({categoryCode:e,isImportantQuote:1,showArea:1},t);case 4:0==(a=_.sent).code?(setImportantData(a.data.list),r=[],a.data.list.map((function(_){_.quoteCode&&r.push(_.quoteCode)})),setSocketCodeArr(r)):antd_lib_message__WEBPACK_IMPORTED_MODULE_16__.default.error(a.data||"\u83b7\u53d6\u4fe1\u606f\u593
11\u8d25\uff01"),setImportantLoading(!1);case 7:case"end":return _.stop()}}),_)})));return function(e){return _.apply(this,arguments)}}(),havingImportant=function(){if(parameters.currentChannel&&parameters.currentChannel.quoteCategoryListVo&&parameters.currentChannel.quoteCategoryListVo.length){var _=parameters.currentChannel.quoteCategoryListVo.filter((function(_){return"\u91cd\u8981"==_.categoryName}));return _.length?_[0].categoryCode:null}return null},renderGlobal=function(_){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsxs)("div",{className:(0,_js_common__WEBPACK_IMPORTED_MODULE_6__.cx)(_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_17___default().marketItem,_.range<0?"rugd"==colorType?_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_17___default().marketItemGreen:_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_17___default().marketItemRed:"rugd"==colorType?_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_17___default().marketItemRed:_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_17___default().marketItemGreen),children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)("div",{className:_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_17___default().marketName,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)("a",{href:_config_config__WEBPACK_IMPORTED_MODULE_8__.LX+"/quote/"+_.quoteCode,target:"_blank",children:_.name?_.name:"--"})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)("div",{className:_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_17___default().marketPrice,children:_.tradePrice?_.tradePrice:"--"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsxs)("div",{className:_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_17___default().marketRange,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)("span",{children:_.range>0?"+"+_.range:_.range}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)("span",{children:_.range>0?"+"+_.rangePercent:_.rangePercent})]})]},_.quoteCode)},calculateCode=function(_){var e=parameters.currentChannel.quoteCategoryListVo.filter((function(e){return e.categoryName==_}));return e&&e.length?e[0].categoryCode:""};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsxs)("div",{className:_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_17___default().globalContent,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsxs)("div",{className:_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_17___default().globalMarket,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)("div",{className:_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_17___default().hd,children:"\u91cd\u8981"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(antd_lib_spin__WEBPACK_IMPORTED_MODULE_18__.default,{spinning:importantLoading,indicator:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_19__.Z,{spin:!0}),children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsxs)("div",{className:_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_17___default().bd,children:[importantData.length?"":(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(_component_pc_global_empty__WEBPACK_IMPORTED_MODULE_13__.Z,{widthPercent:"35%",paddingTop:"30px",paddingBottom:"30px"}),importantData.map((function(_,e){return renderGlobal(_)}))]})})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsxs)("div",{className:_css_pc_quotes_globalContent_module_scss__WEBPACK_IMPORTED_MODULE_17___default().commonList,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(_component_pc_quotes_commonItem__WEBPACK_IMPORTED_MODULE_11__.Z,{onRef:ChildRef1,colorType:colorType,params:{defaultList:parameters.data&&parameters.data[calculateCode("\u91d1\u5c5e\u94a2\u6750")]?parameters.data[calculateCode("\u91d1\u5c5e\u94a2\u6750")]:[],defaultNavList:parameters.currentChannel.quoteCategoryListVo,setSocketCodeArr:setSocketCodeArr1,name:"\u91d1\u5c
15e\u94a2\u6750",tag:"exchange",moreCode:"commodity/metal"}}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(_component_pc_quotes_commonItem__WEBPACK_IMPORTED_MODULE_11__.Z,{onRef:ChildRef2,colorType:colorType,params:{defaultList:parameters.data&&parameters.data[calculateCode("\u80fd\u6e90\u5316\u5de5")]?parameters.data[calculateCode("\u80fd\u6e90\u5316\u5de5")]:[],defaultNavList:parameters.currentChannel.quoteCategoryListVo,setSocketCodeArr:setSocketCodeArr2,name:"\u80fd\u6e90\u5316\u5de5",tag:"goods",moreCode:"commodity/chemical"}}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(_component_pc_quotes_commonItem__WEBPACK_IMPORTED_MODULE_11__.Z,{onRef:ChildRef3,colorType:colorType,params:{defaultList:parameters.data&&parameters.data[calculateCode("\u519c\u4ea7\u54c1")]?parameters.data[calculateCode("\u519c\u4ea7\u54c1")]:[],defaultNavList:parameters.currentChannel.quoteCategoryListVo,setSocketCodeArr:setSocketCodeArr3,name:"\u519c\u4ea7\u54c1",tag:"marketIndex",moreCode:"commodity/agriculture"}})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(SocketItem_PC,{params:{data:[].concat((0,_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_20__.Z)(socketCodeArr),(0,_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_20__.Z)(socketCodeArr1),(0,_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_20__.Z)(socketCodeArr2),(0,_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_20__.Z)(socketCodeArr3)),updateSocketData:updateSocketData}})]})}catch(e){return null}};__webpack_exports__.Z=GoodsAllListContent_PC},41754:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var antd_lib_config_provider_style__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(82932),antd_lib_config_provider_style__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(antd_lib_config_provider_style__WEBPACK_IMPORTED_MODULE_0__),antd_lib_config_provider__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(31929),antd_lib_table_style__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(15144),antd_lib_table_style__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(antd_lib_table_style__WEBPACK_IMPORTED_MODULE_1__),antd_lib_table__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__(2307),antd_lib_button_style__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1025),antd_lib_button_style__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(antd_lib_button_style__WEBPACK_IMPORTED_MODULE_2__),antd_lib_button__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(65400),antd_lib_message_style__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(75314),antd_lib_message_style__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(antd_lib_message_style__WEBPACK_IMPORTED_MODULE_3__),antd_lib_message__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(11187),_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(30266),_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(809),_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4__),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(67294),next_dynamic__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(5152),next_router__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(11163),_js_common__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(17108),js_cookie__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(31955),_css_pc_quotes_bondMarketContent_module_scss__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(85622),_css_pc_quotes_bondMarketContent_module_scss__WEBPACK_IMPORTED_MODULE_18___default=__webpack_require__.n(_css_pc_quotes_bondMarketContent_module_scss__WEBPACK_IMPORTED_MODULE_18__),_ant_design_icons__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(52745),_ant_design_icons__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(47399),_ant_design_icons__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__(50888),antd_lib_locale_zh_CN__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__(82925),_config_config__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(36389),_service_quotesService__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(81050),_js_goldVip__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(45439),moment__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(30381),moment__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_13__),_component_pc_global_empty__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(27918),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(85893),SocketItem_PC=(0,next_dynamic__WEBPACK_IMPORTED_MODULE_6__.default)((function(){return Promise.all([__webpack_require__.e(6502),__webpack_require__.e(4402)]).then(__webpack_require__.bind(__webpack_require__,54402)).then((function(_){return _}))}),{ssr:!1,loadableGenerated:{webpack:function(){return[54402]},modules:["../component/pc/quotes/goodsCommonListContent.js -> ./socketItem"]}}),GoodsCommonListContent_PC=function GoodsCommonListContent_PC(_ref){var params=_ref.params,colorType=_ref.colorType;try{var parameters=params,userInfo=parameters.personalInfo,_useState=(0,react__WEBPACK_IMPORTED_MODULE_5__.useState)(parameters.data.list),bondMarketData=_useState[0],setBondMarketData=_useState[1],_useState2=(0,react__WEBPACK_IMPORTED_MODULE_5__.useState)(!1),bondMarketLoading=_useState2[0],setBondMarketLoading=_useState2[1],_useState3=(0,react__WEBPACK_IMPORTED_MODULE_5__.useState)(parameters.pageNo),pageNo=_useState3[0],setPageNo=_useState3[1],_useState4=(0,react__WEBPACK_IMPORTED_MODULE_5__.useState)(10),pageSize=_useState4[0],setPageSize=_useState4[1],_useState5=(0,react__WEBPACK_IMPORTED_MODULE_5__.useState)(parameters.data.total),total=_useState5[0],setTotal=_useState5[1],_useState6=(0,react__WEBPACK_IMPORTED_MODULE_5__.useState)([]),socketCodeArr=_useState6[0],setSocketCodeArr=_useState6[1],bondMarketDataRef=(0,react__WEBPACK_IMPORTED_MODULE_5__.useRef)(bondMarketData);(0,react__WEBPACK_IMPORTED_MODULE_5__.useEffect)((function(){getCommonData(setBondMarketData,setBondMarketLoading)}),[pageNo,pageSize]),(0,react__WEBPACK_IMPORTED_MODULE_5__.useEffect)((function(){bondMarketDataRef.current=bondMarketData}),[bondMarketData]);var rebuildObj=function(_){var e=_.match(/(\S*)\[/)[1],t=_.match(/\[.*?\]/g)[0],a=_.match(/\](\S*)/)[1];e=e.replace(/^(\s|\{)+|(\s|\:)+$/g,""),t=(t=t.replace(/^(\s|\[)+|(\s|\])+$/g,"")).split(",");for(var r=0;r<t.length;r++)t[r]=t[r]?'"'+t[r]+'"':"null";return'{"'+e+'":['+(t=t.join(","))+"]"+a},updateSocketData=function(_){var e=JSON.parse(_),t=getKeys(e)[0],a=deepCopy(bondMarketDataRef.current);a.map((function(_){t==_.quoteCode&&e[t]&&e[t][1]&&moment__WEBPACK_IMPORTED_MODULE_13___default()(e[t][1]).valueOf()>=moment__WEBPACK_IMPORTED_MODULE_13___default()(_.date).valueOf()&&(_.tradePrice=e[t]&&e[t][2]?e[t][2]:_.tradePrice,_.openPrice=e[t]&&e[t][3]?e[t][3]:_.openPrice,_.highPrice=e[t]&&e[t][4]?e[t][4]:_.highPrice,_.lowPrice=e[t]&&e[t][5]?e[t][5]:_.lowPrice,_.range=e[t]&&e[t][7]?e[t][7]-0:_.range,_.rangePercent=e[t]&&e[t][8]?-1!=e[t][8].indexOf("+")?e[t][8].slice(1):e[t][8]:_.rangePercent,_.date=e[t]&&e[t][1]?e[t][1]:_.date)})),setBondMarketData(a)},getKeys=function(_){var e=[];for(var t in _)_.hasOwnProperty(t)&&e.push(t);return e},deepCopy=function deepCopy(){var sourceObj=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},targetObj=Array.isArray(sourceObj)?[]:{};for(var prop in sourceObj)"object"===typeof sourceObj[prop]?sourceObj[prop]instanceof Object?targetObj[prop]=deepCopy(sourceObj[prop]):targetObj[prop]=sourceObj[prop]:"function"===typeof sourceObj[prop]?targetObj[prop]=eval(sourceObj[prop].toString()):targetObj[prop]=sourceObj[prop];return targetObj},getCommonData=function(){var _=(0,_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_16__.Z)(_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark((function _(e,t){var a,r,n;return _var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap((function(_){for(;;)switch(_.prev=_.next){case 0:return a=js_cookie__WEBPACK_IMPORTED_MODULE_9__.Z.get("t")?js_cookie__WEBPACK_IMPORTED_MODULE_9__.Z.get("t"):"",t(!0),_.next=4,(0,_service_quotesService__WEBPACK_IMPORTED_MODULE_11__.gZ)({categoryCode:parameters.secondChannelId,pageNo:pageNo,pageSize:pageSize,showArea:1},a);case 4:0==(r=_.sent).code?(e(r.data.list),setTotal(r.data.total),n=[],r.data.list.map((function(_){n.push(_.quoteCode)})),setSocketCodeArr(n)):antd_lib_message__WEBPACK_IMPORTED_MODULE_17__.default.error(r.data||"\u83b7\u53d6\u4fe1\u606f\u593
11\u8d25\uff01"),t(!1);case 7:case"end":return _.stop()}}),_)})));return function(e,t){return _.apply(this,arguments)}}(),addPocket=function(){var _=(0,_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_16__.Z)(_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark((function _(e){var t,a;return _var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap((function(_){for(;;)switch(_.prev=_.next){case 0:return t=js_cookie__WEBPACK_IMPORTED_MODULE_9__.Z.get("t")?js_cookie__WEBPACK_IMPORTED_MODULE_9__.Z.get("t"):"",_.next=3,(0,_service_quotesService__WEBPACK_IMPORTED_MODULE_11__.oq)({quoteCode:e},t);case 3:0==(a=_.sent).code?(setBondMarketLoading(!0),setTimeout((function(){getCommonData(setBondMarketData,setBondMarketLoading)}),2e3),antd_lib_message__WEBPACK_IMPORTED_MODULE_17__.default.success("\u6dfb\u52a0\u81ea\u9009\u6210\u529f\uff01")):antd_lib_message__WEBPACK_IMPORTED_MODULE_17__.default.error(a.data||"\u6dfb\u52a0\u81ea\u9009\u5931\u8d25\uff01");case 5:case"end":return _.stop()}}),_)})));return function(e){return _.apply(this,arguments)}}(),removePocket=function(){var _=(0,_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_16__.Z)(_var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark((function _(e){var t,a;return _var_jenkins_home_workspace_Run_ZT_2richcn_node_modules_next_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap((function(_){for(;;)switch(_.prev=_.next){case 0:return t=js_cookie__WEBPACK_IMPORTED_MODULE_9__.Z.get("t")?js_cookie__WEBPACK_IMPORTED_MODULE_9__.Z.get("t"):"",_.next=3,(0,_service_quotesService__WEBPACK_IMPORTED_MODULE_11__.Ui)({quoteCode:e},t);case 3:0==(a=_.sent).code?(setBondMarketLoading(!0),setTimeout((function(){getCommonData(setBondMarketData,setBondMarketLoading)}),2e3),antd_lib_message__WEBPACK_IMPORTED_MODULE_17__.default.success("\u5220\u9664\u81ea\u9009\u6210\u529f\uff01")):antd_lib_message__WEBPACK_IMPORTED_MODULE_17__.default.error(a.data||"\u5220\u9664\u81ea\u9009\u5931\u8d25\uff01");case 5:case"end":return _.stop()}}),_)})));return function(e){return _.apply(this,arguments)}}(),calculateName=function(_){var e=parameters.currentChannel.quoteCategoryListVo.filter((function(e){return e.categoryCode==_}));return e.length||parameters.currentChannel.quoteCategoryListVo.map((function(t,a){var r=t.quoteCategoryListVo&&t.quoteCategoryListVo.length&&t.quoteCategoryListVo.filter((function(e){return e.categoryCode==_}));r&&r.length&&(e=r)})),e&&e.length?e[0].categoryName:""},changePageNo=function(_,e){parameters.secondUrl?location.href=_config_config__WEBPACK_IMPORTED_MODULE_10__.LX+"/quotes/"+parameters.url+"/"+parameters.secondUrl+"/"+_:location.href=_config_config__WEBPACK_IMPORTED_MODULE_10__.LX+"/quotes/"+parameters.url+"/"+_},calculateHref=function(_){return parameters.secondUrl?_config_config__WEBPACK_IMPORTED_MODULE_10__.LX+"/quotes/"+parameters.url+"/"+parameters.secondUrl+"/"+_:_config_config__WEBPACK_IMPORTED_MODULE_10__.LX+"/quotes/"+parameters.url+"/"+_},itemRender=function(_,e,t){return"prev"===e?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)("a",{children:"\u4e0a\u4e00\u9875"}):"next"===e?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)("a",{children:"\u4e0b\u4e00\u9875"}):"jump-prev"==e||"jump-next"==e?t:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)("a",{href:calculateHref(_),onClick:function(_){_.preventDefault()},children:_})},isPersonalInfoResolved=null===userInfo||userInfo&&"{}"!==JSON.stringify(userInfo),showGoldVipNotice=parameters.showGoldVipNotice&&isPersonalInfoResolved&&!(0,_js_goldVip__WEBPACK_IMPORTED_MODULE_12__.jH)(userInfo),columns=[{title:"\u540d\u79f0",dataIndex:"name",key:"name",align:"left",render:function(_,e){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)("div",{className:_css_pc_quotes_bondMarketContent_module_scss__WEBPACK_IMPORTED_MODULE_18___default().name,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)("a",{href:_config_config__WEBPACK_IMPORTED_MODULE_10__.LX+"/quote/"+e.quoteCode,target:"_blank",children:e.name})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)("div",{style:{color:"#9898a6"},children:e.quotationShowName})]})}},{title:"\u6700\u65b0\u4ef7",dataIndex:"tradePrice",key:"tradePrice",align:"center"},{title:"\u5f00\u76d8\u4ef7",dataIndex:"openPrice",key:"openPrice",align:"center"},{title:"\u6700\u9ad8\u4ef7",dataIndex:"highPrice",key:"highPrice",align:"center"},{title:"\u6700\u4f4e\u4ef7",dataIndex:"lowPrice",key:"lowPrice",align:"center"},{title:"\u6da8\u8dcc\u989d",dataIndex:"range",key:"range",align:"center",render:function(_,e){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)("span",{className:e.range<0?"rugd"==colorType?_css_pc_quotes_bondMarketContent_module_scss__WEBPACK_IMPORTED_MODULE_18___default().tableGreen:_css_pc_quotes_bondMarketContent_module_scss__WEBPACK_IMPORTED_MODULE_18___default().tableRed:"rugd"==colorType?_css_pc_quotes_bondMarketContent_module_scss__WEBPACK_IMPORTED_MODULE_18___default().tableRed:_css_pc_quotes_bondMarketContent_module_scss__WEBPACK_IMPORTED_MODULE_18___default().tableGreen,children:e.range>0?"+"+_:_})}},{title:"\u6da8\u8dcc\u5e45\u5ea6",dataIndex:"rangePercent",key:"rangePercent",align:"center",render:function(_,e){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)("span",{className:e.range<0?"rugd"==colorType?_css_pc_quotes_bondMarketContent_module_scss__WEBPACK_IMPORTED_MODULE_18___default().tableGreen:_css_pc_quotes_bondMarketContent_module_scss__WEBPACK_IMPORTED_MODULE_18___default().tableRed:"rugd"==colorType?_css_pc_quotes_bondMarketContent_module_scss__WEBPACK_IMPORTED_MODULE_18___default().tableRed:_css_pc_quotes_bondMarketContent_module_scss__WEBPACK_IMPORTED_MODULE_18___default().tableGreen,children:e.range>0?"+"+_:_})}},{title:"\u65f6\u95f4",dataIndex:"date",key:"date",align:"center",render:function(_,e){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)("span",{style:{color:"#9898a6"},children:_})}},{title:"",valueType:"option",key:"option",align:"right",render:function(_,e,t,a){return e.isQuoteOrder?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(antd_lib_button__WEBPACK_IMPORTED_MODULE_19__.default,{icon:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_20__.Z,{}),size:"small",className:_css_pc_quotes_bondMarketContent_module_scss__WEBPACK_IMPORTED_MODULE_18___default().minusBtn,onClick:function(){removePocket(e.quoteCode)},children:"\u5220\u81ea\u9009"}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(antd_lib_button__WEBPACK_IMPORTED_MODULE_19__.default,{icon:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_21__.Z,{}),size:"small",className:_css_pc_quotes_bondMarketContent_module_scss__WEBPACK_IMPORTED_MODULE_18___default().addBtn,onClick:function(){addPocket(e.quoteCode)},children:"\u52a0\u81ea\u9009"})}}];return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsxs)("div",{className:_css_pc_quotes_bondMarketContent_module_scss__WEBPACK_IMPORTED_MODULE_18___default().bondMarketContent,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsxs)("div",{className:_css_pc_quotes_bondMarketContent_module_scss__WEBPACK_IMPORTED_MODULE_18___default().bondMarketItem,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)("div",{className:_css_pc_quotes_bondMarketContent_module_scss__WEBPACK_IMPORTED_MODULE_18___default().hd,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)("span",{children:calculateName(parameters.secondChannelId)})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsxs)("div",{className:_css_pc_quotes_bondMarketContent_module_scss__WEBPACK_IMPORTED_MODULE_18___default().bd,children:[showGoldVipNotice?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsxs)("div",{className:_css_pc_quotes_bondMarketContent_module_scss__WEBPACK_IMPORTED_MODULE_18___default().goldVipNotice,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)("span",{className:_css_pc_quotes_bondMarketContent_module_scss__WEBPACK_IMPORTED_MODULE_18___default().goldVipNoticeText,children:_js_goldVip__WEBPACK_IMPORTED_MODULE_12__.Fk}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)("a",{href:_config_config__WEBPACK_IMPORTED_MODULE_10__.LX+"/goldVip",className:_css_pc_quotes_bondMarketContent_module_scss__WEBPACK_IMPORTED_MODULE_18___default().goldVipButton,children:"\u5f00\u901a\u9ec4\u91d1\u4f1a\u5458"})]}):null,(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(antd_lib_config_provider__WEBPACK_IMPORTED_MODULE_22__.default,{locale:antd_lib_locale_zh_CN__WEBPACK_IMPORTED_MODULE_23__.Z,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(antd_lib_table__WEBPACK_IMPORTED_MODULE_24__.Z,{rowKey:"quoteCode",loading:{indicator:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_25__.Z,{spin:!0}),spinning:bondMarketLoading},pagination:{defaultCurrent:pageNo,size:"small",itemRender:itemRender,total:total,pageSize:pageSize,hideOnSinglePage:!0,onChange:changePageNo,showSizeChanger:!1},columns:columns,dataSource:bondMarketData,locale:{emptyText:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(_component_pc_global_empty__WEBPACK_IMPORTED_MODULE_14__.Z,{widthPercent:"35%",paddingTop:"30px",paddingBottom:"30px"})}})})]})]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(SocketItem_PC,{params:{data:socketCodeArr,updateSocketData:updateSocketData}})]})}catch(e){return null}};__webpack_exports__.Z=GoodsCommonListContent_PC},99401:function(_,e,t){"use strict";t.d(e,{Z:function(){return p}});t(54214);var a=t(12386),r=t(67294),n=(t(5152),t(11163),t(17108),t(31955),t(47607)),o=t.n(n),s=t(36389),c=t(41754),u=t(35378),i=t(85893),l=function(_){var e=_.params,t=_.colorType;try{var a=e,r=a.currentChannel&&a.currentChannel.categoryName?a.currentChannel.categoryName:"",n=a.secondChannelId;return(0,i.jsx)(i.Fragment,{children:"\u5546\u54c1"!=r||n?(0,i.jsx)(c.Z,{colorType:t,params:{data:a.data,importantData:a.importantData,defaultNavList:a.defaultNavList,code:a.code,currentChannel:a.currentChannel,secondChannelId:a.secondChannelId,pageNo:a.pageNo,url:a.url,secondUrl:a.secondUrl,personalInfo:a.personalInfo,showGoldVipNotice:a.showGoldVipNotice}}):(0,i.jsx)(u.Z,{colorType:t,params:{data:a.data,importantData:a.importantData,defaultNavList:a.defaultNavList,code:a.code,currentChannel:a.currentChannel,secondChannelId:a.secondChannelId,personalInfo:a.personalInfo,showGoldVipNotice:a.showGoldVipNotice}})})}catch(o){return null}},d=t(55348),E=t(89899),m=t(43952),p=function(_){try{var e=_.data,t=_.params||{},n=(0,r.useState)(e.navListData?e.navListData:[]),c=n[0],u=(n[1],(0,r.useState)(!1)),p=u[0],O=u[1],D=(0,r.useState)("rugd"),P=D[0],M=D[1];return(0,i.jsxs)("div",{className:o().allPage,children:[(0,i.jsxs)("div",{className:o().breadCrumb,children:[(0,d.aV)(e),(0,i.jsx)(m.Z,{colorType:P,setColorType:M})]}),(0,i.jsx)("div",{style:{width:1180,margin:"0 auto",lineHeight:0},children:(0,i.jsx)("div",{className:o().adThree,children:(0,i.jsx)("div",{className:o().adThreeInner,children:(0,i.jsx)(E.Z,{codeId:1015,adReady:p,setAdReady:O,
1wrapHeight:110,borderRadius:6})})})}),(0,i.jsxs)("div",{className:o().page,children:[(0,i.jsx)("div",{children:(0,i.jsx)("div",{className:o().side,children:(0,i.jsxs)(a.default,{style:{width:160},triggerSubMenuAction:"hover",mode:"vertical",selectedKeys:[e.currentChannel.length?e.currentChannel[0].categoryCode+e.currentChannel[0].categoryName:"selected"],children:[(0,i.jsx)(a.default.Item,{icon:(0,i.jsx)(d.pq,{}),children:(0,i.jsx)("a",{href:s.LX+"/quotes/selected",children:"\u81ea\u9009"})},"selected"),c.length&&c.map((function(_,e){return(0,d.Jn)(_)}))]})})}),(0,i.jsx)("div",{className:o().main,children:(0,i.jsx)(l,{colorType:P,params:{data:e.dataListData,importantData:e.importantListData,defaultNavList:c,code:e.channelId,url:(0,d.oT)(e.channelId,e),currentChannel:e.currentChannel[0],secondChannelId:e.secondChannelId,secondUrl:(0,d.oT)(e.secondChannelId,e),pageNo:e.page,personalInfo:t.personalInfo,showGoldVipNotice:t.showGoldVipNotice}})})]})]})}catch(C){return null}}},45439:function(_,e,t){"use strict";t.d(e,{Fk:function(){return n},$E:function(){return o},p1:function(){return c},CU:function(){return u},vJ:function(){return i},T0:function(){return E},jH:function(){return O},W6:function(){return D},J4:function(){return P},lB:function(){return M},I7:function(){return C}});
1var a=t(30381),r=t.n(a),n="\u4e0a\u91d1\u6240\u8be6\u60c5\u9875\u4e0e\u5341\u6863\u6df1\u5ea6\u884c\u60c5\u9700\u5f00\u901a\u9ec4\u91d1\u4f1a\u5458\u540e\u67e5\u770b\u3002",o=[{label:"10\u6863",description:"\u4e70\u5356\u76d8\u6df1\u5ea6"},{label:"3\u4e2a",description:"\u4e0a\u91d1\u6240\u6838\u5fc3\u54c1\u79cd"},{label:"PC",description:"\u7f51\u9875\u7aef\u67e5\u770b"}],s=[{key:"1\u4e2a\u6708",title:"1\u4e2a\u6708",features:["\u4e0a\u91d1\u6240\u8be6\u60c5\u9875\u6743\u9650","\u5341\u6863\u6df1\u5ea6\u884c\u60c5","\u7f51\u9875\u7aef\u8bbf\u95ee\u89e3\u9501"]},{key:"3\u4e2a\u6708",title:"3\u4e2a\u6708",badge:"\u63a8\u8350",highlight:"\u8f83\u6708\u4ed8\u66f4\u4f18\u60e0",features:["\u8f83\u6708\u4ed8\u66f4\u4f18\u60e0","\u4e0a\u91d1\u6240\u5168\u90e8\u54c1\u79cd\u8986\u76d6","\u6388\u6743\u884c\u60c5\u8eab\u4efd\u6807\u8bc6"]},{key:"6\u4e2a\u6708",title:"6\u4e2a\u6708",features:["\u4e2d\u957f\u671f\u7a33\u5b9a\u8bbf\u95ee","\u4e0a\u91d1\u6240\u5168\u90e8\u54c1\u79cd\u8986\u76d6","\u5341\u6863\u6df1\u5ea6\u884c\u60c5"]},{key:"12\u4e2a\u6708",title:"12\u4e2a\u6708",features:["\u5168\u5e74\u6301\u7eed\u8bbf\u95ee","\u5341\u6863\u6df1\u5ea6\u884c\u60c5","\u4e13\u5c5e\u5ba2\u670d\u652f\u6301"]}],c=[{tag:"\u6743",title:"\u5b98\u65b9\u6388\u6743",description:"\u7a81\u51fa\u4e0a\u6d77\u9ec4\u91d1\u4ea4\u6613\u6240\u5b98\u65b9\u6388\u6743\u6765\u6e90\uff0c\u8be6\u60c5\u9875\u548c\u884c\u60c5\u9875\u5747\u663e\u793a\u6388\u6743\u6807\u8bc6\u3002"},{tag:"\u6df1",title:"\u5341\u6863\u6df1\u5ea6",description:"\u5c55\u793a\u5356\u5341\u81f3\u4e70\u5341\u7684\u4ef7\u683c\uff0c\u907f\u514d\u53ea\u770b\u5355\u4e00\u6210\u4ea4\u4ef7\u3002"},{tag:"\u9501",title:"\u4e13\u4eab\u62e6\u622a",description:"\u672a\u5f00\u901a\u7528\u6237\u8fdb\u5165 AUTD \u7b49\u4e0a\u91
1d1\u6240\u884c\u60c5\u9875\u65f6\uff0c\u5c55\u793a\u6e05\u6670\u62e6\u622a\u4e0e\u5f00\u901a\u5165\u53e3\u3002"},{tag:"\u901a",title:"\u8d2d\u4e70\u5373\u5f00\u901a",description:"\u652f\u4ed8\u6210\u529f\u540e\u5217\u8868\u3001\u8be6\u60c5\u3001\u5341\u6863\u6df1\u5ea6\u4e09\u5904\u6743\u9650\u540c\u6b65\u89e3\u9501\u3002"}],u=[{step:"1",title:"\u767b\u5f55\u8d26\u53f7",description:"\u786e\u4fdd\u8d2d\u4e70\u6743\u76ca\u7ed1\u5b9a\u5230\u5f53\u524d\u7528\u6237\u3002"},{step:"2",title:"\u9009\u62e9\u5957\u9910",description:"\u5728\u9ec4\u91d1\u4f1a\u5458\u8be6\u60c5\u9875\u9009\u62e9\u5468\u671f\uff0c\u8fdb\u5165\u652f\u4ed8\u786e\u8ba4\u3002"},{step:"3",title:"\u5b8c\u6210\u652f\u4ed8",description:"\u652f\u4ed8\u6210\u529f\u540e\u7cfb\u7edf\u5199\u5165\u9ec4\u91d1\u4f1a\u5458\u6743\u9650\u3002"},{step:"4",title:"\u67e5\u770b\u884c\u60c5",description:"\u8fd4\u56de\u4e0a\u91d1\u6240\u884c\u60c5\u6216 AUTD \u8be6\u60c5\u9875\uff0c\u5341\u6863\u6df1\u5ea6\u5373\u65f6\u5c55\u793a\u3002"}],i=function(){var _=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e={};return _.forEach((function(_){_&&_.goodsSpecsValues&&(e[String(_.goodsSpecsValues)]=_)})),e},l=function(){var _=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=String(_).match(/(\d+)\s*\u4e2a\u6708/);return e?Number(e[1]):Number.MAX_SAFE_INTEGER},d=function(_){return s.find((function(e){return e.key===_}))},E=function(){var _=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(_).filter((function(e){return _[e]})).sort((function(_,e){var t=l(_),a=l(e);return t!==a?t-a:_.localeCompare(e)})).map((function(_){var e=d(_)||{};return{key:_,title:e.title||_,badge:e.badge,highlight:e.highlight,features:e.features||["\u4e0a\u91d1\u6240\u8be6\u60c5\u9875\u6743\u9650","\u5341\u6863\u6df1\u5ea6\u884c\u60c5","".concat(_,"\u8bbf\u95ee\u6743\u76ca")]}}))},m=function(_){if(!_)return null;var e="string"===typeof _?_.replace(/\-/g,"/"):_,t=new Date(e);return Number.isNaN(t.getTime())?null:t},p=function(_){var e=m(_);return!!e&&function(){var _=new Date,e=_.getTimezoneOffset();return new Date(_.getTime()+60*(480+e)*1e3)}()>e},O=function(_){return!(!_||1!==Number(_.memberType))&&(!_.memberDeadline||!p(_.memberDeadline))},D=function(_){return _?1===Number(_.memberType)?p(_.memberDeadline)?"\u9ec4\u91d1\u4f1a\u5458\u5df2\u8fc7\u671f":"\u9ec4\u91d1\u4f1a\u5458\u5df2\u5f00\u901a":_.memberDeadline?"\u9ec4\u91d1\u4f1a\u5458\u5df2\u8fc7\u671f":"\u9ec4\u91d1\u4f1a\u5458\u672a\u5f00\u901a":"\u672a\u767b\u5f55"},P=function(_){if(!_)return"--";if(1===Number(_.memberType)&&!_.memberDeadline)return"\u6c38\u4e45\u4f1a\u5458";var e=m(_.memberDeadline);return e?r()(e).format("YYYY-MM-DD HH:mm:ss"):"--"},M=function(_){return _&&(1===Number(_.memberType)||_.memberDeadline)?"\u7ee7\u7eed\u7eed\u8d39":"\u7acb\u5373\u5f00\u901a"},C=function(_){if(!_||void 0===_.price||null===_.price||""===_.price)return"--";var e=Number(_.price);return Number.isNaN(e)?_.price:Number.isInteger(e)?"".concat(e):"".concat(e.toFixed(2))}},7725:function(_,e,t){"use strict";t.r(e);t(67294),t(41664);var a=t(9008),r=t(65581),n=t.n(r),o=t(36389),s=t(85893);e.default=function(_){var e=_.is404,t=void 0===e||e;return(0,s.jsxs)("div",{className:n().wrap,children:[(0,s.jsxs)(a.default,{children:[(0,s.jsx)("title",{children:t?"404":"Busy"}),(0,s.jsx)("link",{rel:"shortcut icon",href:o.LX+"/img/favicon.ico",type:"image/x-icon"})]}),(0,s.jsx)("div",{className:n().img,children:(0,s.jsx)("img",{src:o.LX+(t?"/img/404.jpg":"/img/busy.jpg")})}),t?(0,s.jsx)("p",{className:n().text,children:"\u60a8\u8981\u627e\u7684\u9875\u9762\u8ff7\u8def\u4e86"}):(0,s.jsx)("p",{className:n().text,children:"\u5f53\u524d\u9875\u9762\u8bbf\u95ee\u91cf\u8fc7\u5927\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5"}),t?(0,s.jsx)("a",{className:n().backHome,href:o.LX+"/",children:"\u8fd4\u56de\u9996\u9875"}):(0,s.jsx)("a",{className:n().backHome,onClick:function(){location.reload()},children:"\u5237\u65b0\u91cd\u8bd5"})]})}},54604:function(_,e,t){"use strict";t.r(e),t.d(e,{__N_SSP:function(){return f}});var a=t(67294),r=t(9008),n=(t(5152),t(36389)),o=t(75623),s=t(35797),c=t(87143),u=t(99401),i=t(48250),l=t.n(i),d=t(29524),E=t(34740),m=t(60721),p=t(28454),O=t.n(p),D=t(65487),P=t(85893);function M(_,e){var t="undefined"!==typeof Symbol&&_[Symbol.iterator]||_["@@iterator"];if(!t){if(Array.isArray(_)||(t=function(_,e){if(!_)return;if("string"===typeof _)return C(_,e);var t=Object.prototype.toString.call(_).slice(8,-1);"Object"===t&&_.constructor&&(t=_.constructor.name);if("Map"===t||"Set"===t)return Array.from(_);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return C(_,e)}(_))||e&&_&&"number"===typeof _.length){t&&(_=t);var a=0,r=function(){};return{s:r,n:function(){return a>=_.length?{done:!0}:{done:!1,value:_[a++]}},e:function(_){throw _},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,o=!0,s=!1;return{s:function(){t=t.call(_)},n:function(){var _=t.next();return o=_.done,_},e:function(_){s=!0,n=_},f:function(){try{o||null==t.return||t.return()}finally{if(s)throw n}}}}function C(_,e){(null==e||e>_.length)&&(e=_.length);for(var t=0,a=new Array(e);t<e;t++)a[t]=_[t];return a}var f=!0;e.default=function(_){var e=_.flag,t=_.data,i=_.errorCode,p=(0,a.useState)({}),C=p[0],f=p[1],b=(0,a.useState)(""),g=b[0],h=b[1],T=(0,a.useState)(""),R=T[0],L=T[1],I=((0,a.useContext)(o.sk),(0,a.useRef)(null));(0,a.useEffect)((function(){new MutationObserver((function(_){var e,t=M(_);try{for(t.s();!(e=t.n()).done;
1){"childList"===e.value.type&&I.current&&I.current.zh_init()}}catch(a){t.e(a)}finally{t.f()}})).observe(document,{childList:!0,subtree:!0})}),[]);var A=function _(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t.find((function(t){t.categoryCode===e?a=t.categoryName:t.quoteCategoryListVo&&t.quoteCategoryListVo.length&&(a=_(e,t.quoteCategoryListVo,a))})),a},B=function(){var _="";return t.secondChannelId?(_=A(t.secondChannelId,t.navListData))+"\u884c\u60c5_"+_+"\u5b9e\u65f6\u884c\u60c5\u8d70\u52bf-99\u671f\u8d27":t.channelId?"selected"==t.channelId?(_="\u6211\u7684\u81ea\u9009")+"\u884c\u60c5_"+_+"\u5b9e\u65f6\u884c\u60c5\u8d70\u52bf-99\u671f\u8d27":(_=A(t.channelId,t.navListData))+"\u884c\u60c5_"+_+"\u5b9e\u65f6\u884c\u60c5\u8d70\u52bf-99\u671f\u8d27":void 0},W=function(){var _="";return t.secondChannelId?(_=A(t.secondChannelId,t.navListData))+"\u884c\u60c5,"+_+"\u5b9e\u65f6\u884c\u60c5\u8d70\u52bf,99\u671f\u8d27":t.channelId?"selected"==t.channelId?(_="\u6211\u7684\u81ea\u9009")+"\u884c\u60c5,"+_+"\u5b9e\u65f6\u884c\u60c5\u8d70\u52bf,99\u671f\u8d27":(_=A(t.channelId,t.navListData))+"\u884c\u60c5,"+_+"\u5b9e\u65f6\u884c\u60c5\u8d70\u52bf,99\u671f\u8d27":void 0};return i?(0,P.jsx)(D.Z,{errorCode:i}
1):e?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(r.default,{children:[(0,P.jsx)("title",{children:B()}),(0,P.jsx)("meta",{name:"keywords",content:W()}),(0,P.jsx)("meta",{name:"description",content:""}),(0,P.jsx)("link",{rel:"shortcut icon",href:n.LX+"/img/favicon.ico",type:"image/x-icon"}),(0,P.jsx)("script",{src:n.LX+"/noSupport.js"}),(0,P.jsx)("link",{rel:"canonical",href:n.DD+"/quotes/commodity"})]}),(0,P.jsxs)("div",{className:O().mobileMainWrap,children:[(0,P.jsxs)("div",{className:O().contentWrap,children:[(0,P.jsx)(E.Z,{params:{pv:I,setPersonalInfo:f,personalInfo:C,refreshTag:g,setRefreshTag:h,liveStatusRefresh:R,current:"quotes"}}),(0,P.jsx)(d.Z,{data:t})]}),(0,P.jsx)("div",{className:O().footerWrap,children:(0,P.jsx)(m.Z,{params:{current:"4"}})})]})]}):(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(r.default,{children:[(0,P.jsx)("title",{children:B()}),(0,P.jsx)("meta",{name:"keywords",content:W()}),(0,P.jsx)("meta",{name:"description",content:""}),(0,P.jsx)("link",{rel:"shortcut icon",href:n.LX+"/img/favicon.ico",type:"image/x-icon"}),(0,P.jsx)("script",{src:n.LX+"/noSupport.js"}),(0,P.jsx)("link",{rel:"canonical",href:n.DD+"/quotes/commodity"})]}),(0,P.jsxs)("div",{className:l().mainWrap,children:[(0,P.jsx)(s.Z,{params:{pv:I,setPersonalInfo:f,personalInfo:C,refreshTag:g,setRefreshTag:h,liveStatusRefresh:R,current:"quotes"}}),(0,P.jsx)(u.Z,{data:t,params:{personalInfo:C,setLiveStatusRefresh:L}})]}),(0,P.jsx)("div",{className:l().footerWrap,children:(0,P.jsx)(c.Z,{})})]})}},15568:function(_,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/quotes",function(){return t(54604)}])},7186:function(){},74248:function(){},65581:function(_){_.exports={wrap:"__404_wrap__TJbjs",img:"__404_img__3pmpw",text:"__404_text__2Lcwg",backHome:"__404_backHome__22OOD"}},72089:function(_){_.exports={globalContent:"globalContent_globalContent__2sNPo",secondNavList:"globalContent_secondNavList__3Stoe",globalMarket:"globalContent_globalMarket__vcK2m",bd:"globalContent_bd__3Mtej",marketItem:"globalContent_marketItem__1Hk1M",marketName:"globalContent_marketName__3Fdzu",marketPrice:"globalContent_marketPrice__eEb9G",marketRange:"globalContent_marketRange__3NQI2",marketItemGreen:"globalContent_marketItemGreen__gET-t",marketItemRed:"globalContent_marketItemRed__3DKCe",commonList:"globalContent_commonList__2kCbr",commonItem:"globalContent_commonItem__S9Aza",hd:"globalContent_hd__NO58I",more:"globalContent_more__22KzI",graphic:"globalContent_graphic__ruTlA",tableBold:"globalContent_tableBold__2j7G0",tableGreen:"globalContent_tableGreen__27Pgn",tableRed:"globalContent_tableRed__12Qux",name:"globalContent_name__29CG_",chartWrap:"globalContent_chartWrap__kgxzq",highValue:"globalContent_highValue__2WcD_",lowValue:"globalContent_lowValue__1tH-x",averageValue:"globalContent_averageValue__1au-w"}},85622:function(_){_.exports={bondMarketContent:"bondMarketContent_bondMarketContent__2IiWv",bondMarketItem:"bondMarketContent_bondMarketItem__3TUl1",hd:"bondMarketContent_hd__1NZCW",more:"bondMarketContent_more__2sKzh",bd:"bondMarketContent_bd__3qFw4",goldVipNotice:"bondMarketContent_goldVipNotice__PWWnk",goldVipNoticeText:"bondMarketContent_goldVipNoticeText__3Qnx0",goldVipButton:"bondMarketContent_goldVipButton__3yaSY",tableBold:"bondMarketContent_tableBold__13rzY",tableGreen:"bondMarketContent_tableGreen__116qT",tableRed:"bondMarketContent_tableRed__17ir-",addBtn:"bondMarketContent_addBtn__2yEZl",minusBtn:"bondMarketContent_minusBtn__1j-2C",name:"bondMarketContent_name__1kRSh"}},45316:function(_){_.exports={globalContent:"globalContent_globalContent__6nv_I",globalMarket:"globalContent_globalMarket__3j4Sh",hd:"globalContent_hd__1YYnC",bd:"globalContent_bd__2LDW2",marketItem:"globalContent_marketItem__CJsmk",marketName:"globalContent_marketName__2JCZ3",marketPrice:"globalContent_marketPrice__1vW8L",marketRange:"globalContent_marketRange__eOhWV",marketItemGreen:"globalContent_marketItemGreen__39uoR",marketItemRed:"globalContent_marketItemRed__2Tsjh",commonList:"globalContent_commonList__2FOYP",commonItem:"globalContent_commonItem__3qzvo",more:"globalContent_more__2xd4_",graphic:"globalContent_graphic__2ub45",tableBold:"globalContent_tableBold__3p9cJ",tableGreen:"globalContent_tableGreen__3PCO4",tableRed:"globalContent_tableRed__2TkXF",name:"globalContent_name__2ayx6",chartWrap:"globalContent_chartWrap__2NfgB",highValue:"globalContent_highValue__2MVAt",lowValue:"globalContent_lowValue__pBqEz",averageValue:"globalContent_averageValue__27yxf"}},4298:function(_,e,t){_.exports=t(72189)}},function(_){_.O(0,[9774,4885,3662,5357,3996,129,2039,3798,5511,1214,1066,2519,7186,6103,2133,5353,2543,519,358,4005,8764,7927,5734,568,2888,179],(function(){return e=15568,_(_.s=e);var e}));var e=_.O();_N_E=e}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.