3d-garage-model 2.0.10 → 2.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("antd/es/message"),require("dva"),require("react"),require("dva-loading"),require("antd/dist/antd.css"),require("history"),require("antd/es/config-provider"),require("dva/router"),require("dva/dynamic"),require("antd/es/layout"),require("classnames"),require("events"),require("antd/es/modal"),require("antd/es/badge"),require("antd/es/drawer"),require("antd/es/radio"),require("antd/es/slider"),require("antd/es/button"),require("antd/es/table"),require("axios"),require("crypto-js/sha1"),require("crypto-js/sha256"),require("antd/es/select"),require("antd/es/popover"),require("antd/es/upload"),require("antd/es/empty"),require("antd/es/dropdown"),require("antd/es/menu"),require("antd/es/tooltip"),require("antd/es/collapse"),require("gsap"),require("antd/es/locale/zh_CN"),require("antd/es/input"),require("antd/es/alert"),require("antd/es/divider"),require("antd/es/form"),require("antd/es/row"),require("antd/es/col"),require("antd/es/input-number"),require("antd/es/switch"),require("antd/es/tabs"),require("antd/es/progress"),require("lodash"),require("antd/es/space"),require("antd/es/checkbox"),require("prop-types"),require("react-dom"),require("antd/es/steps"),require("lodash/debounce"),require("lodash/camelCase"),require("antd/es/tree"),require("antd/es/popconfirm"),require("antd/es/pagination"),require("antd/es/descriptions"),require("antd/es/date-picker"),require("moment"),require("antd/es/locale-provider/LocaleReceiver"),require("antd/es/avatar"),require("lodash/isUndefined"),require("lodash/isNaN"),require("lodash/isNumber"),require("lodash/isString"),require("antd/lib/locale/zh_CN"),require("antd/es/spin")):"function"==typeof define&&define.amd?define(["exports","antd/es/message","dva","react","dva-loading","antd/dist/antd.css","history","antd/es/config-provider","dva/router","dva/dynamic","antd/es/layout","classnames","events","antd/es/modal","antd/es/badge","antd/es/drawer","antd/es/radio","antd/es/slider","antd/es/button","antd/es/table","axios","crypto-js/sha1","crypto-js/sha256","antd/es/select","antd/es/popover","antd/es/upload","antd/es/empty","antd/es/dropdown","antd/es/menu","antd/es/tooltip","antd/es/collapse","gsap","antd/es/locale/zh_CN","antd/es/input","antd/es/alert","antd/es/divider","antd/es/form","antd/es/row","antd/es/col","antd/es/input-number","antd/es/switch","antd/es/tabs","antd/es/progress","lodash","antd/es/space","antd/es/checkbox","prop-types","react-dom","antd/es/steps","lodash/debounce","lodash/camelCase","antd/es/tree","antd/es/popconfirm","antd/es/pagination","antd/es/descriptions","antd/es/date-picker","moment","antd/es/locale-provider/LocaleReceiver","antd/es/avatar","lodash/isUndefined","lodash/isNaN","lodash/isNumber","lodash/isString","antd/lib/locale/zh_CN","antd/es/spin"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).index={},e.message,e.Dva,e.React,e.dvaLoading,null,e.history,e._ConfigProvider,e.dvaRouter,e.dvaDynamic,e.antdLayout,e.classnames,e._events,e._Modal,e._Badge,e._Drawer,e._Radio,e._Slider,e._Button,e._Table,e.axios,e.sha1,e.sha256,e._Select,e._Popover,e._Upload,e._Empty,e._Dropdown,e._Menu,e._Tooltip,e._Collapse,e.gsap,e._zhCN,e._Input,e._Alert,e._Divider,e._Form,e._Row,e._Col,e._InputNumber,e._Switch,e._Tabs,e._Progress,e.lodash,e._Space,e._Checkbox,e.PropTypes,e.ReactDOM,e._Steps,e.debounce,e.require$$9,e._Tree,e._Popconfirm,e._Pagination,e._Descriptions,e._DatePicker,e.moment,e.LocaleReceiver,e._Avatar,null,e.isNaN$1,e.isNumber,e.isString,e.zhCN,e._Spin)}(this,function(e,t,n,r,o,a,i,l,s,A,c,u,d,p,f,g,h,m,_,v,y,b,w,x,B,C,E,k,I,S,F,P,L,U,Q,N,M,D,T,O,H,R,V,j,z,G,K,W,Y,X,q,J,Z,$,ee,te,ne,re,oe,ae,ie,le,se,Ae,ce){"use strict";function ue(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var de=ue(t),pe=ue(n),fe=ue(r),ge=ue(o),he=ue(l),me=ue(A),_e=ue(c),ve=ue(u),ye=ue(d),be=ue(p),we=ue(f),xe=ue(g),Be=ue(h),Ce=ue(m),Ee=ue(_),ke=ue(v),Ie=ue(y),Se=ue(b),Fe=ue(w),Pe=ue(x),Le=ue(B),Ue=ue(C),Qe=ue(E),Ne=ue(k),Me=ue(I),De=ue(S),Te=ue(F),Oe=ue(L),He=ue(U),Re=ue(Q),Ve=ue(N),je=ue(M),ze=ue(D),Ge=ue(T),Ke=ue(O),We=ue(H),Ye=ue(R),Xe=ue(V),qe=ue(j),Je=ue(z),Ze=ue(G),$e=ue(K),et=ue(W),tt=ue(Y),nt=ue(X),rt=ue(q),ot=ue(J),at=ue(Z),it=ue($),lt=ue(ee),st=ue(te),At=ue(ne),ct=ue(re),ut=ue(oe),dt=ue(ie),pt=ue(le),ft=ue(se),gt=ue(Ae),ht=ue(ce);function mt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);t>n;n++)r[n]=e[n];return r}function _t(e,t,n,r,o,a,i){try{var l=e[a](i),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function vt(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){_t(a,r,o,i,l,"next",e)}function l(e){_t(a,r,o,i,l,"throw",e)}i(void 0)})}}function yt(e,t,n){return t=kt(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,St()?Reflect.construct(t,n||[],kt(e).constructor):t.apply(e,n))}function bt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wt(e,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Tt(r.key),r)}}function xt(e,t,n){return t&&wt(e.prototype,t),n&&wt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ht(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return e.length>r?{done:!1,value:e[r++]}:{done:!0}},e:function(e){throw e},f:o}}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 a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function Ct(e,t,n){return(t=Tt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Et(){return Et=Object.assign?Object.assign.bind():function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Et.apply(null,arguments)}function kt(e){return kt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kt(e)}function It(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nt(e,t)}function St(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(St=function(){return!!e})()}function Ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Pt(e){for(var t=1;arguments.length>t;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ft(Object(n),!0).forEach(function(t){Ct(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ft(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Lt(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;a.length>r;r++)-1===t.indexOf(n=a[r])&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ut(){
2
2
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
3
- var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=Object.create((r&&r.prototype instanceof l?r:l).prototype);return Qt(s,"_invoke",function(n,r,o){var a,l,s,A=0,c=o||[],u=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,s=e,d.n=n,i}};function p(n,r){for(l=n,s=r,t=0;!u&&A&&!o&&c.length>t;t++){var o,a=c[t],p=d.p,f=a[2];n>3?(o=f===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):p>=a[0]&&((o=2>n&&a[1]>p)?(l=0,d.v=r,d.n=a[1]):f>p&&(o=3>n||a[0]>r||r>f)&&(a[4]=n,a[5]=r,d.n=f,l=0))}if(o||n>1)return i;throw u=!0,r}return function(o,c,f){if(A>1)throw TypeError("Generator is already running");for(u&&1===c&&p(c,f),l=c,s=f;(t=2>l?e:s)||!u;){a||(l?3>l?(l>1&&(d.n=-1),p(l,s)):d.n=s:d.v=s);try{if(A=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,2>l&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),2>l&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(u=0>d.n)?s:n.call(r,d))!==i)break}catch(t){a=e,l=1,s=t}finally{A=1}}return{value:t,done:u}}}(n,o,a),!0),s}var i={};function l(){}function s(){}function A(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(Qt(t={},r,function(){return this}),t),u=A.prototype=l.prototype=Object.create(c);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,A):(e.__proto__=A,Qt(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e}return s.prototype=A,Qt(u,"constructor",A),Qt(A,"constructor",s),s.displayName="GeneratorFunction",Qt(A,o,"GeneratorFunction"),Qt(u),Qt(u,o,"Generator"),Qt(u,r,function(){return this}),Qt(u,"toString",function(){return"[object Generator]"}),(Ut=function(){return{w:a,m:d}})()}function Qt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Qt=function(e,t,n,r){function a(t,n){Qt(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Qt(e,t,n,r)}function Nt(e,t){return Nt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Nt(e,t)}function Mt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,A=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){A=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(A)throw o}}return l}}(e,t)||Ht(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dt(e){return function(e){if(Array.isArray(e))return mt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ht(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tt(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function Ot(e){return Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ot(e)}function Ht(e,t){if(e){if("string"==typeof e)return mt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mt(e,t):void 0}}function Rt(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}Rt('@font-face{font-family:Bebas;src:url(/fonts/Bebas-Regular.ttf) format("truetype")}@font-face{font-family:PingFangSC-Semibold;src:url(/fonts/PingFang-Bold.ttf) format("truetype")}@font-face{font-family:PingFangSC-Regular;src:url(/fonts/PingFang-Regular.ttf) format("truetype")}@font-face{font-family:PingFang SC;src:url(/fonts/PingFang-Regular.ttf) format("truetype")}#root,body,html{height:100%}*{margin:0;padding:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}p{margin-bottom:0}::-webkit-scrollbar{width:2px;height:4px}::-webkit-scrollbar-thumb{background:rgba(144,147,153,.3)}::-webkit-scrollbar-thumb,::-webkit-scrollbar-track{border-radius:10px;-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,.2)}::-webkit-scrollbar-track{background:#fafafa}.ant-btn[disabled]{opacity:.4;color:#fff!important}');var Vt=window.location.protocol+"//"+window.location.host,jt="".concat(Vt,"/").concat("3d-garage-model"),zt="".concat(jt,"/img/direction.png"),Gt="".concat(jt,"/img/walk .png"),Kt="".concat(jt,"/img/scale.png"),Wt="".concat(jt,"/img/translation.png"),Yt=[{id:1,name:"封面配置",path:"/cover",key:"coverConfigurationResult"},{id:2,name:"提示配置",path:"/setTip",key:"agreementConfigurationResult",state:!1},{id:3,name:"鸟瞰配置",path:"/viewConfig",key:"aerialConfigurationResult",state:!1},{id:4,name:"详情配置",path:"/roamConfig",key:"roamConfigurationResult",state:!1},{id:5,name:"列表配置",path:"/listConfiguration",key:"parkingListConfigurationResult",state:!1},{id:6,name:"程序预览",path:"/programStructure",key:"programPackageResult",state:!1},{id:7,name:"测试上线",path:"/testLine",key:"testConfirmationResult",state:!1}],Xt=[{id:1,name:"未发现场景资源",tip:"请前往场景制作页面,进行制作",color:"#f15c5c",background:" rgba(241, 92, 92, 0.1)"},{id:2,name:"下载中",tip:"正在为您自动加载场景资源",but:"载入场景",color:"#397bff",background:"rgba(57, 123, 255, 0.1)"},{id:3,name:"已载入",tip:"场景编号:",but:"操作设置",but1:"编辑场景",color:"#23c16b",background:"rgba(35, 193, 107, 0.1)"},{id:4,name:"下载失败",tip:"场景编号:",but:"重新加载",color:"#f15c5c",background:" rgba(241, 92, 92, 0.1)"}],qt={sensitivity:"全局灵敏度",sensitivityVal:[{key:"low",name:"低"},{key:"medium",name:"中"},{key:"hight",name:"高"},{key:"custom",name:"自定义"}],Others:[{id:1,title:"飞行模式",arr:[{id:1,icon:"".concat(jt,"/img/rotate.png"),name:"旋转速度",key:"rotationSpeed",value:0},{id:2,icon:Wt,name:"平移速度",key:"translationSpeed",value:0},{id:3,icon:Kt,name:"缩放速度",key:"zoomSpeed",value:0}],radio:"拉近视角到某区域",radioArr:[{key:"doubleClick",name:"双击"}]},{id:2,title:"漫游模式",arr:[{id:1,icon:Gt,name:"行走速度",key:"walkingSpeed",value:0},{id:2,icon:zt,name:"转向速度",key:"steeringSpeed",value:0}],radio:"行走到某位置",radioArr:[{key:"doubleClick",name:"双击"}]}]},Jt=[{code:"blue",themeColorStart:"#4579FE",themeColorEnd:"#80B2FF"},{code:"brown",themeColorStart:"#9A7054",themeColorEnd:"#F6E1CC"},{code:"orange",themeColorStart:"#FD7B29",themeColorEnd:"#FFCCAB"},{code:"yellow",themeColorStart:"#C7FB1E",themeColorEnd:"#E3FF95"},{code:"green",themeColorStart:"#3CF182",themeColorEnd:"#8DFFBB"},{code:"cyan",themeColorStart:"#34DCC8",themeColorEnd:"#C2F7F1"},{code:"purple",themeColorStart:"#355BFF",themeColorEnd:"#B477FF"},{code:"red",themeColorStart:"#FF0B31",themeColorEnd:"#F9A4B7"}],Zt=[{key:"onTest",name:"预览"},{key:"online",name:"上线"}],$t=[{id:1,value:"768×1024",name:"768 × 1024"},{id:2,value:"1536×2048",name:"1536 × 2048"},{id:3,value:"2048×2732",name:"2048 × 2732"}],en={Setting:1,Activating:2,End:3},tn=(Ct(Ct(Ct({},1,"待配置"),2,"会签中"),3,"会签结束"),"leftNav_LeftNav__3jU4d"),nn="leftNav_box__2LHvQ",rn="leftNav_serial__2MNbP",on="leftNav_okIcon__2iSzI",an="leftNav_num_active__2zaWY",ln="leftNav_num_noActive__GAQaY",sn="leftNav_num__2OO5P",An="leftNav_title__OTEl5",cn="leftNav_title_active__1oQhT",un="leftNav_title_noActive__2ohl_",dn="leftNav_borderLeft__1hddl";Rt(".leftNav_LeftNav__3jU4d{position:relative;width:132px;height:100%;padding:24px 20px 24px 16px;background-color:#fff}.leftNav_LeftNav__3jU4d .leftNav_box__2LHvQ{box-sizing:border-box;width:96px;height:58px;margin-bottom:5px}.leftNav_LeftNav__3jU4d .leftNav_box__2LHvQ .leftNav_serial__2MNbP{display:flex;cursor:pointer}.leftNav_LeftNav__3jU4d .leftNav_box__2LHvQ .leftNav_serial__2MNbP .leftNav_okIcon__2iSzI{width:24px;height:24px;margin-right:16px}.leftNav_LeftNav__3jU4d .leftNav_box__2LHvQ .leftNav_serial__2MNbP .leftNav_num_active__2zaWY{box-sizing:border-box;color:#fff;background:#397bff;border:1px solid #397bff}.leftNav_LeftNav__3jU4d .leftNav_box__2LHvQ .leftNav_serial__2MNbP .leftNav_num_noActive__GAQaY{color:rgba(0,0,0,.25);border:1px solid rgba(0,0,0,.25)}.leftNav_LeftNav__3jU4d .leftNav_box__2LHvQ .leftNav_serial__2MNbP .leftNav_num__2OO5P{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:24px;height:24px;margin-right:16px;font-weight:400;font-size:13px;font-family:PingFang SC;font-style:normal;line-height:20px;border-radius:32px}.leftNav_LeftNav__3jU4d .leftNav_box__2LHvQ .leftNav_serial__2MNbP .leftNav_title__OTEl5{display:flex;align-items:center;font-size:14px;font-family:PingFang SC;font-style:normal;line-height:22px}.leftNav_LeftNav__3jU4d .leftNav_box__2LHvQ .leftNav_serial__2MNbP .leftNav_title_active__1oQhT{color:rgba(0,0,0,.85);font-weight:600}.leftNav_LeftNav__3jU4d .leftNav_box__2LHvQ .leftNav_serial__2MNbP .leftNav_title_noActive__2ohl_{color:#737b8b;font-weight:400}.leftNav_LeftNav__3jU4d .leftNav_box__2LHvQ .leftNav_borderLeft__1hddl{width:12px;height:24px;margin:5px 0;border-right:1px solid #f0f0f0}");var pn="".concat(jt,"/img/music_c.png"),fn="".concat(jt,"/img/music_o.png"),gn="".concat(jt,"/img/add.png"),hn="".concat(jt,"/img/errAdd.png"),mn="".concat(jt,"/img/cover/click3.png"),_n="".concat(jt,"/img/ok.png"),vn="".concat(jt,"/img/warningIcon.png"),yn="".concat(jt,"/img/set.png"),bn="".concat(jt,"/img/news.png"),wn="".concat(jt,"/img/updataCar.png"),xn="".concat(jt,"/img/whiteLoading.png"),Bn="".concat(jt,"/img/modelClose.png"),Cn="".concat(jt,"/img/clone.png"),En="".concat(jt,"/img/download.png"),kn="".concat(jt,"/img/device.png"),In="".concat(jt,"/img/bot.png"),Sn="".concat(jt,"/img/redDian.png"),Fn="".concat(jt,"/img/countDown.png"),Pn="".concat(jt,"/img/updata.png"),Ln="".concat(jt,"/img/isShow.png"),Un="".concat(jt,"/img/isHide.png"),Qn="".concat(jt,"/img/back.png"),Nn="".concat(jt,"/img/dangerIcon.png"),Mn="".concat(jt,"/img/ipx_bottom.png"),Dn="".concat(jt,"/img/ipx.png"),Tn="".concat(jt,"/img/ip.png"),On="".concat(jt,"/img/upload.png"),Hn="".concat(jt,"/img/cover/close.png"),Rn="".concat(jt,"/img/cover/hover_S.png"),Vn="".concat(jt,"/img/horizontal.png"),jn="".concat(jt,"/img/vertical.png"),zn="".concat(jt,"/img/leftIcon.png"),Gn="".concat(jt,"/img/rightIcon.png"),Kn="".concat(jt,"/img/right.png"),Wn="".concat(jt,"/img/upIcon.png"),Yn="".concat(jt,"/img/downIcon.png"),Xn="".concat(jt,"/seting/file.png"),qn="".concat(jt,"/seting/share.png"),Jn="".concat(jt,"/seting/ok.png"),Zn="".concat(jt,"/seting/upLoad.png"),$n="".concat(jt,"/3dian.png"),er="".concat(jt,"/seting/icon_shot.png"),tr="".concat(jt,"/seting/icon_del.png"),nr="".concat(jt,"/seting/icon_refresh_normal.png"),rr="".concat(jt,"/seting/icon_upload.png"),or="".concat(jt,"/seting/icon_location_normal.png"),ar="".concat(jt,"/seting/icon_location_active.png"),ir="".concat(jt,"/seting/icon_edit.png"),lr="".concat(jt,"/seting/img_example.png"),sr="".concat(jt,"/seting/icon_avator.png"),Ar="".concat(jt,"/seting/icon_resolved.png"),cr="".concat(jt,"/seting/icon_unresolved.png"),ur="".concat(jt,"/seting/icon_file.png"),dr="".concat(jt,"/seting/icon_info.png"),pr="".concat(jt,"/seting/"),fr="".concat(jt,"/seting/icon_download.png"),gr="".concat(jt,"/seting/icon_delete_card.png"),hr="".concat(jt,"/seting/small.png"),mr="".concat(jt,"/seting/addImg.png"),_r="".concat(jt,"/seting/slist.png"),vr="".concat(jt,"/scene/add.png"),yr="".concat(jt,"/scene/back.png"),br="".concat(jt,"/scene/back2.png"),wr="".concat(jt,"/scene/check1.png"),xr="".concat(jt,"/scene/check2.png"),Br="".concat(jt,"/scene/check3.png"),Cr="".concat(jt,"/scene/uploadClose.png"),Er="".concat(jt,"/scene/rightArrow.png"),kr="".concat(jt,"/scene/rightArrow2.png"),Ir="".concat(jt,"/scene/leftArrow.png"),Sr="".concat(jt,"/scene/circle.png"),Fr="".concat(jt,"/scene/warnIcon.png"),Pr="".concat(jt,"/scene/warningIcon.png"),Lr="".concat(jt,"/scene/close.png"),Ur="".concat(jt,"/scene/up.png"),Qr="".concat(jt,"/scene/down.png"),Nr="".concat(jt,"/scene/sc.png"),Mr="".concat(jt,"/scene/record.png"),Dr="".concat(jt,"/scene/profile.jpeg"),Tr="".concat(jt,"/scene/edit.png"),Or="".concat(jt,"/scene/map.png"),Hr="".concat(jt,"/scene/label.png"),Rr="".concat(jt,"/scene/door.png"),Vr="".concat(jt,"/scene/material.png"),jr="".concat(jt,"/scene/selected.png"),zr="".concat(jt,"/scene/sun.png"),Gr="".concat(jt,"/scene/select.png"),Kr="".concat(jt,"/scene/unSelect.png"),Wr="".concat(jt,"/image/share.png"),Yr=new d.EventEmitter;function Xr(e,t){if(!e||"string"!=typeof e||!t||"string"!=typeof t)return null;var n=RegExp("(^|&|#|/?)"+e+"=([^&]*)(&|$)","i"),r=t.match(n);return null!=r?decodeURIComponent(r[2]):null}var qr=function(e){var t=escape(e),n=document.cookie,r=n.indexOf(t+="=");if(-1!==r){var o=r+t.length,a=n.indexOf(";",o);-1===a&&(a=n.length);var i=n.substring(o,a);return unescape(i)}return""},Jr=function(e){try{e=JSON.parse(e)}catch(t){console.log("JSON.parse Error"),e=""}return e},Zr=function(e){try{e=JSON.stringify(e)}catch(t){console.log("JSON.stringify Error"),e=""}return e};function $r(e){var t=e.split(".");return{type:t.splice(t.length-1,1).join(""),name:t.join(".")}}var eo,to,no=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=0,r=$r(e),o=r.name,a=r.type,i=o.length,l=t.filter(function(e){var t=$r(e),n=t.name;return t.type===a&&(n===o||n.slice(0,o.length)===o)});return 0===l.length?e:(l.forEach(function(e){var t=$r(e).name,r=+t.slice(i,t.length).replace(/[\(\)]/g,"");isNaN(r)||(n=r+1>n?r+1:n)}),"".concat(o,"(").concat(n,").").concat(a))},ro=function(e){return 1>(e=+e)/1024?e+"b":1>e/1048576?(e/1024).toFixed(1)+"K":1>e/1073741824?(e/1024/1024).toFixed(1)+"M":(e/1024/1024/1024).toFixed(1)+"G"},oo=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r="";if(0!==n){var o=new Date;o.setTime(o.getTime()+1e3*n),r="; expires=".concat(o.toGMTString())}document.cookie="".concat(e,"=").concat(escape(t)).concat(r)},ao=function(e){var t=new Date;t.setTime(t.getTime()-1e4);var n=document.cookie.match(/[^ =;]+(?=\=)/g);if(n)for(var r=n.length;r--;)document.cookie=n[r]+"=;domain=".concat(e,'; expire=" + date.toGMTString() + "; path=/')},io=function(e){for(var t=e.split(" "),n={},r=0;t.length>r;r++)n[t[r].split("=")[0]]=unescape(t[r].split("=")[1]);return n},lo=function(e){var t=parseFloat(e);return isNaN(t)?(console.log("传递参数错误,请检査!"),0):t=Math.round(100*e)/100},so=(eo=n.connect(function(e){return{app:e.app}}),eo(to=function(e){function t(e){var n;return bt(this,t),(n=yt(this,t,[e])).getNavState=vt(Ut().m(function e(){var t;return Ut().w(function(e){for(;;)switch(e.n){case 0:return t=n.props.app.applicationId,e.n=1,n.props.dispatch({type:"app/queryGarageCreateProcessResult",payload:{applicationId:t}}).then(function(e){if(e){var t=e.coverConfigurationResult,r=e.aerialConfigurationResult,o=e.agreementConfigurationResult,a=e.parkingListConfigurationResult,i=e.programPackageResult,l=e.roamConfigurationResult,s=e.testConfirmationResult;Yt&&Yt.forEach(function(e){switch(e.key){case"coverConfigurationResult":e.state=t;break;case"agreementConfigurationResult":e.state=o;break;case"aerialConfigurationResult":e.state=r;break;case"parkingListConfigurationResult":e.state=a;break;case"programPackageResult":e.state=i;break;case"roamConfigurationResult":e.state=l;break;case"testConfirmationResult":e.state=s;break;default:e.state=!1}}),n.setState({navList:Yt})}});case 1:return e.a(2)}},e)})),n.state={navList:[]},n}return It(t,e),xt(t,[{key:"componentDidMount",value:function(){Yr.on("equipment",this.getNavState),Yr.on("setNavState",this.getNavState),this.getNavState()}},{key:"componentWillUnmount",value:function(){Yr.off("equipment",this.getNavState),Yr.off("setNavState",this.getNavState)}},{key:"render",value:function(){var e=this.props,t=e.setNavState,n=e.app,r=n.currentPath,o=this.state.navList;return fe.default.createElement("div",{className:ve.default(tn)},fe.default.createElement("div",null,o.map(function(e){return fe.default.createElement("div",{className:nn,key:e.id},fe.default.createElement("div",{className:rn,onClick:function(){return t(e)}},e.path===r?fe.default.createElement("div",{className:ve.default(sn,an)},e.id):e.state?fe.default.createElement("img",{src:_n,alt:"",className:on}):fe.default.createElement("div",{className:ve.default(sn,ln)},e.id),fe.default.createElement("div",{className:ve.default(An,e.path===r?cn:un)},e.name)),e.id===o.length?"":fe.default.createElement("div",{className:dn}))})),fe.default.createElement(qa,null))}}])}(r.Component))||to),Ao="",co="",uo=!1;function po(e){co?console.log("websocket已连接"):(Ao=e,console.log("我已经建立websocket连接了!!!!!!!!!!"),(co=new WebSocket(Ao)).onopen=fo,co.onmessage=ho,co.onerror=go,co.onclose=vo)}function fo(){_o({role:0,method:"setRole",param:1})}function go(){clearInterval(null),co.close(),mo()}function ho(e){e.data&&"pong"!==e.data&&window.dispatchEvent(new CustomEvent("getUEMessage",{detail:e}))}function mo(){uo||(uo=!0,setTimeout(function(){po(Ao),uo=!1},3e3))}function _o(e){console.log("发送数据sendWSPush:",e),null!==co&&(3===co.readyState?(co.close(),mo()):1===co.readyState?co.send(Zr(e)):0===co.readyState&&setTimeout(function(){_o(e)},3e3))}function vo(e){clearInterval(null),co=null,mo(),console.log("websocket已断开")}window.addEventListener("beforeunload",function(){co&&co.close()});var yo={sceneModel:"sceneModel_sceneModel__3s8Lt",titleBox:"sceneModel_titleBox__2KF87",title:"sceneModel_title__2vjUJ",state:"sceneModel_state__PyOgW",iconBox:"sceneModel_iconBox__1UhU1",percent:"sceneModel_percent__2dQgN",refreshData:"sceneModel_refreshData__1YMOj",turn:"sceneModel_turn__3r-AH",tipBox:"sceneModel_tipBox__3NRer",warningIcon:"sceneModel_warningIcon__3sA3a",tipTxt:"sceneModel_tipTxt__1dmXG",loadingBut:"sceneModel_loadingBut__37HWl",reLoadBut:"sceneModel_reLoadBut__224LD",verson:"sceneModel_verson__2_krR",editBut:"sceneModel_editBut__2u3Ow",will:"sceneModel_will__26fRv",uploadIcon:"sceneModel_uploadIcon__2MF6l"};Rt('.sceneModel_sceneModel__3s8Lt{position:relative;box-sizing:border-box;width:100%;height:103px;background-color:#fff;border-bottom:6px solid #eaebed}.sceneModel_sceneModel__3s8Lt .sceneModel_titleBox__2KF87{position:relative;display:flex;align-items:center;width:100%;height:44px;line-height:44px;border-bottom:1px solid #dde1e6}.sceneModel_sceneModel__3s8Lt .sceneModel_titleBox__2KF87 .sceneModel_title__2vjUJ:before{display:inline-block;width:3px;height:16px;margin-right:13px;vertical-align:sub;background:#397bff;border-radius:4px;content:""}.sceneModel_sceneModel__3s8Lt .sceneModel_titleBox__2KF87 .sceneModel_title__2vjUJ{margin-right:12px;color:#000f2c;font-weight:600;font-size:14px;font-family:PingFang SC;font-style:normal;line-height:20px}.sceneModel_sceneModel__3s8Lt .sceneModel_titleBox__2KF87 .sceneModel_state__PyOgW{display:flex;align-items:center;height:21px;padding:2px 6px;font-size:12px;border-radius:4px}.sceneModel_sceneModel__3s8Lt .sceneModel_titleBox__2KF87 .sceneModel_iconBox__1UhU1{position:absolute;right:16px;display:flex;align-items:center}.sceneModel_sceneModel__3s8Lt .sceneModel_titleBox__2KF87 img{width:16px;height:16px;margin-left:16px;cursor:pointer}.sceneModel_sceneModel__3s8Lt .sceneModel_titleBox__2KF87 .sceneModel_percent__2dQgN{margin-left:5px;font-style:normal}.sceneModel_sceneModel__3s8Lt .sceneModel_titleBox__2KF87 .sceneModel_refreshData__1YMOj{position:absolute;right:16px}.sceneModel_sceneModel__3s8Lt .sceneModel_titleBox__2KF87 .sceneModel_refreshData__1YMOj i{display:inline-block;color:#397bff;font-size:12px;font-style:normal;cursor:pointer}.sceneModel_sceneModel__3s8Lt .sceneModel_titleBox__2KF87 .sceneModel_refreshData__1YMOj img{width:20px;height:20px;margin-right:3px;animation:sceneModel_turn__3r-AH 1s linear infinite}.sceneModel_sceneModel__3s8Lt .sceneModel_tipBox__3NRer{position:relative;display:flex;align-items:center;width:100%;height:56px;padding-left:16px}.sceneModel_sceneModel__3s8Lt .sceneModel_tipBox__3NRer .sceneModel_warningIcon__3sA3a{width:14px;height:14px;margin-right:6px}.sceneModel_sceneModel__3s8Lt .sceneModel_tipBox__3NRer .sceneModel_tipTxt__1dmXG{margin-right:4px;color:rgba(0,15,44,.6);font-weight:400;font-size:12px;font-family:PingFang SC;font-style:normal;line-height:20px}.sceneModel_sceneModel__3s8Lt .sceneModel_tipBox__3NRer .sceneModel_tipTxt__1dmXG>i{color:#3465e3;font-weight:600;font-style:normal;cursor:pointer}.sceneModel_sceneModel__3s8Lt .sceneModel_tipBox__3NRer .sceneModel_loadingBut__37HWl{display:flex;flex-direction:row;align-items:center;width:84px;height:29px;margin-left:38px;padding:6px 8px;color:#fff;font-size:12px;background:#397bff;border-radius:4px;opacity:.6}.sceneModel_sceneModel__3s8Lt .sceneModel_tipBox__3NRer .sceneModel_loadingBut__37HWl img{width:10px;height:10px;margin-left:9px;animation:sceneModel_turn__3r-AH 1s linear infinite}.sceneModel_sceneModel__3s8Lt .sceneModel_tipBox__3NRer .sceneModel_reLoadBut__224LD{position:absolute;right:16px;display:flex;align-items:center;justify-content:center;width:64px;height:29px;color:#fff;font-size:12px;background:#397bff;border-radius:4px;cursor:pointer}.sceneModel_sceneModel__3s8Lt .sceneModel_tipBox__3NRer .sceneModel_verson__2_krR{width:125px;overflow:hidden;color:#000f2c;font-weight:600;font-size:12px;font-family:PingFang SC;font-style:normal;line-height:20px;white-space:nowrap;text-overflow:ellipsis}.sceneModel_sceneModel__3s8Lt .sceneModel_tipBox__3NRer .sceneModel_editBut__2u3Ow{position:absolute;right:16px;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:80px;height:29px;color:#121c2a;font-weight:400;font-size:12px;font-style:normal;line-height:17px;border:1px solid rgba(18,28,42,.6);border-radius:4px;cursor:pointer}.sceneModel_sceneModel__3s8Lt .sceneModel_tipBox__3NRer .sceneModel_editBut__2u3Ow img{width:12px;height:12px;margin-right:4px}.sceneModel_sceneModel__3s8Lt .sceneModel_will__26fRv{flex-wrap:nowrap}.sceneModel_sceneModel__3s8Lt .sceneModel_will__26fRv .ant-input{width:130px}.sceneModel_sceneModel__3s8Lt .sceneModel_uploadIcon__2MF6l{color:#f15c5c;font-size:12px;cursor:pointer}@keyframes sceneModel_turn__3r-AH{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(1turn)}}');var bo,wo,xo="operation_operationDrawer__3dstF",Bo="operation_footerBox__6YBqx",Co="operation_cancel__201vM",Eo="operation_title__uv8zP",ko="operation_atitle__3dOg_",Io="operation_sensitivity__2Xs0G",So="operation_sensitivityValBox__3sex1",Fo="operation_active__336er",Po="operation_listItem__1P2Gb",Lo="operation_itemBox__25ake",Uo="operation_sliderBox__13IWr",Qo="operation_sliderItem__18MYy",No="operation_text__3Sfv7",Mo="operation_sliderLine__1_oB1",Do="operation_radioBox__4P_r0";Rt('.operation_operationDrawer__3dstF .ant-drawer-close{padding:4px!important;background:#f0f1f2;border-radius:30px;color:#000f2c;top:10px!important;right:16px!important;font-weight:600!important;font-size:14px!important}.operation_operationDrawer__3dstF .ant-drawer-close:hover{opacity:.75!important}.operation_operationDrawer__3dstF .ant-drawer-title{font-weight:600;font-size:14px;color:#000f2c}.operation_operationDrawer__3dstF .operation_footerBox__6YBqx{display:flex;align-items:center;justify-content:flex-end}.operation_operationDrawer__3dstF .operation_footerBox__6YBqx .ant-drawer-body{padding:25px 16px!important}.operation_operationDrawer__3dstF .operation_footerBox__6YBqx .ant-btn-primary:hover{color:#fff!important;opacity:.85}.operation_operationDrawer__3dstF .operation_footerBox__6YBqx .ant-btn-primary{background:#3465e3!important;border-color:#3465e3!important}.operation_operationDrawer__3dstF .operation_footerBox__6YBqx .ant-btn:hover{color:#096dd9;border-color:#096dd9}.operation_operationDrawer__3dstF .operation_footerBox__6YBqx .operation_cancel__201vM{margin-right:12px}.operation_operationDrawer__3dstF .operation_title__uv8zP{font-family:PingFang SC;font-style:normal;font-weight:400;font-size:14px;line-height:20px;color:#121c2b}.operation_operationDrawer__3dstF .operation_atitle__3dOg_:before{display:inline-block;content:"";width:3px;height:16px;background:#397bff;border-radius:4px;vertical-align:sub;margin-right:8px}.operation_operationDrawer__3dstF .operation_sensitivity__2Xs0G{display:flex}.operation_operationDrawer__3dstF .operation_sensitivity__2Xs0G .operation_title__uv8zP{margin-right:4px}.operation_operationDrawer__3dstF .operation_sensitivity__2Xs0G .operation_sensitivityValBox__3sex1 span{margin-left:8px;border:1px solid #d9d9d9;box-sizing:border-box;border-radius:4px;padding:5px 8px;font-size:14px;line-height:20px;color:#121c2b;cursor:pointer}.operation_operationDrawer__3dstF .operation_sensitivity__2Xs0G .operation_sensitivityValBox__3sex1 span:hover{background:rgba(57,123,255,.75);color:#fff;border-color:rgba(57,123,255,.75)}.operation_operationDrawer__3dstF .operation_sensitivity__2Xs0G .operation_sensitivityValBox__3sex1 span.operation_active__336er{background:#397bff;color:#fff;border-color:#397bff}.operation_operationDrawer__3dstF .operation_listItem__1P2Gb .operation_title__uv8zP{margin:16px 0}.operation_operationDrawer__3dstF .operation_itemBox__25ake{width:100%;background:#f4f4f4;border-radius:8px;padding:5px 8px 24px 5px;box-sizing:border-box}.operation_operationDrawer__3dstF .operation_itemBox__25ake .operation_sliderBox__13IWr .operation_sliderItem__18MYy{width:calc(100% - 16px);height:48px;box-sizing:border-box;padding:16px 12px;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;background:hsla(0,0%,100%,.55);backdrop-filter:blur(18px);border-radius:4px;margin-bottom:16px}.operation_operationDrawer__3dstF .operation_itemBox__25ake .operation_sliderBox__13IWr .operation_sliderItem__18MYy img{margin-right:4px}.operation_operationDrawer__3dstF .operation_itemBox__25ake .operation_sliderBox__13IWr .operation_sliderItem__18MYy span.operation_text__3Sfv7{font-size:14px;line-height:16px;color:#262a35;margin-right:12px}.operation_operationDrawer__3dstF .operation_itemBox__25ake .operation_sliderBox__13IWr .operation_sliderItem__18MYy .operation_sliderLine__1_oB1{flex-grow:1;margin-right:8px}.operation_operationDrawer__3dstF .operation_itemBox__25ake .operation_radioBox__4P_r0{display:flex;flex-direction:column;padding:4px 0 0 15px}.operation_operationDrawer__3dstF .operation_itemBox__25ake .operation_radioBox__4P_r0>span{margin-bottom:16px}.operation_operationDrawer__3dstF .operation_sliderLine__1_oB1 .ant-slider-track{background-color:#262a35!important}.operation_operationDrawer__3dstF .operation_sliderLine__1_oB1 .ant-slider-handle{background:#fff!important;box-shadow:0 3px 6px rgba(0,0,0,.25)!important;border:2px solid #fff!important}.operation_operationDrawer__3dstF .operation_sliderLine__1_oB1 .ant-slider-rail{background-color:rgba(66,67,97,.3)!important}');var To=be.default.confirm,Oo=(bo=n.connect(function(e){return{app:e.app,cover:e.cover}}),bo(wo=function(e){function t(e){var n;return bt(this,t),(n=yt(this,t,[e])).onCloseOperation=function(){n.props.dispatch({type:"cover/updateState",payload:{operationVisible:!1}})},n.onChangeRadio=function(e,t){n.setState(1===t?{closerViewingAngle:e.target.value}:{roamWalkType:e.target.value})},n.onChangeSlider=function(e,t,r){n.setState(Ct(Ct({},r,t),"sensitivityType","custom"),function(){qt.Others[e-1].arr.forEach(function(e){e.key===r&&(e.value=t)})})},n.setSensitivityType=function(e){n.setState({sensitivityType:e},function(){var t=2;if("low"===e)t=2;else if("medium"===e)t=5;else{if("hight"!==e)return;t=8}n.setState({rotationSpeed:t,steeringSpeed:t,translationSpeed:t,walkingSpeed:t,zoomSpeed:t}),qt.Others.forEach(function(e){1===e.id?e.arr.forEach(function(e){("rotationSpeed"===e.key||"translationSpeed"===e.key||"zoomSpeed"===e.key)&&(e.value=t)}):2===e.id&&e.arr.forEach(function(e){("walkingSpeed"===e.key||"steeringSpeed"===e.key)&&(e.value=t)})})})},n.submint=function(){var e=n,t=n.state,r={applicationId:n.props.app.applicationId,roamWalkType:t.roamWalkType,sensitivityType:t.sensitivityType,rotationSpeed:t.rotationSpeed,translationSpeed:t.translationSpeed,zoomSpeed:t.zoomSpeed,walkingSpeed:t.walkingSpeed,steeringSpeed:t.steeringSpeed,closerViewingAngle:t.closerViewingAngle};To({title:"确定保存,即同步到云游戏",content:"",okText:"确定",cancelText:"取消",onOk:function(){e.props.dispatch({type:"cover/setSaveOperationParam",payload:Pt(Pt({},r),{},{packageType:"PROD"})})},onCancel:function(){e.props.dispatch({type:"cover/setSaveOperationParam",payload:Pt(Pt({},r),{},{packageType:"TEST"})})}})},n.state={radioValue:1,sensitivityType:"low",rotationSpeed:0,translationSpeed:0,zoomSpeed:0,walkingSpeed:0,steeringSpeed:0,closerViewingAngle:"doubleClick",roamWalkType:"doubleClick"},n}return It(t,e),xt(t,[{key:"componentDidMount",value:(n=vt(Ut().m(function e(){var t,n=this;return Ut().w(function(e){for(;;)switch(e.n){case 0:return t=this.props.app.applicationId,e.n=1,this.props.dispatch({type:"cover/getSelectOperationParam",payload:{applicationId:t}}).then(function(e){if(e&&e.value){var t=e.value,r=t.closerViewingAngle,o=t.roamWalkType,a=t.rotationSpeed,i=t.sensitivityType,l=t.steeringSpeed,s=t.translationSpeed,A=t.walkingSpeed,c=t.zoomSpeed,u=null===a?2:a,d=null===l?2:l,p=null===s?2:s,f=null===A?2:A,g=null===c?2:c;n.setState({closerViewingAngle:null===r?"doubleClick":r,roamWalkType:null===o?"doubleClick":o,rotationSpeed:u,sensitivityType:null===i?"low":i,steeringSpeed:d,translationSpeed:p,walkingSpeed:f,zoomSpeed:g}),qt.Others.forEach(function(e){1===e.id?e.arr.forEach(function(e){"rotationSpeed"===e.key?e.value=u:"translationSpeed"===e.key?e.value=p:"zoomSpeed"===e.key&&(e.value=g)}):2===e.id&&e.arr.forEach(function(e){"walkingSpeed"===e.key?e.value=f:"steeringSpeed"===e.key&&(e.value=d)})})}});case 1:return e.a(2)}},e,this)})),function(){return n.apply(this,arguments)})},{key:"render",value:function(){var e=this,t=this.state,n=t.closerViewingAngle,r=t.roamWalkType,o=t.sensitivityType;return fe.default.createElement(xe.default,{className:xo,width:310,title:"操作设置",placement:"right",visible:this.props.cover.operationVisible,maskClosable:!1,onClose:this.onCloseOperation,headerStyle:{height:"44px",display:"flex",alignItems:"center",padding:"12px 16px"},footerStyle:{height:"52px"},footer:fe.default.createElement("div",{className:Bo},fe.default.createElement(Ee.default,{onClick:this.onCloseOperation,className:Co},"取消"),fe.default.createElement(Ee.default,{type:"primary",onClick:this.submint},"保存"))},fe.default.createElement("div",{className:Io},fe.default.createElement("span",{className:Eo},qt.sensitivity),fe.default.createElement("div",{className:So},qt.sensitivityVal.map(function(t){return fe.default.createElement("span",{key:t.key,className:t.key===o?Fo:"",onClick:function(){return e.setSensitivityType(t.key)}},t.name)}))),qt.Others.map(function(t){return fe.default.createElement("div",{className:Po,key:t.id},fe.default.createElement("div",{className:ve.default(Eo,ko)},t.title),fe.default.createElement("div",{className:Lo},fe.default.createElement("div",{className:Uo},t.arr.map(function(n){return fe.default.createElement("div",{className:Qo,key:n.id},fe.default.createElement("img",{src:n.icon,alt:"",style:{width:2===t.id?"22px":"16px",height:2===t.id?"22px":"16px"}}),fe.default.createElement("span",{className:No},n.name),fe.default.createElement("div",{className:Mo},fe.default.createElement(Ce.default,{value:n.value,min:1,max:10,step:1,onChange:function(r){return e.onChangeSlider(t.id,r,"".concat(n.key))}})),fe.default.createElement("span",null,n.value))})),fe.default.createElement("div",{className:Do},fe.default.createElement("span",null,t.radio),fe.default.createElement(Be.default.Group,{onChange:function(n){return e.onChangeRadio(n,t.id)},value:1===t.id?n:r},t.radioArr.map(function(e){return fe.default.createElement(Be.default,{value:e.key,key:e.key},e.name)})))))}))}}]);var n}(r.Component))||wo),Ho="newsModel_newsModel__1plaq",Ro="newsModel_header__Ha6aQ",Vo="newsModel_content__t--Nd",jo="newsModel_itemBox__1ayQX",zo="newsModel_title__3PbfL",Go="newsModel_info__1Cy6r",Ko="newsModel_but__3FVMQ";Rt(".newsModel_newsModel__1plaq{position:absolute;left:12px;top:40px;width:282px;min-height:225px;background:#fff;border:1px solid rgba(113,125,153,.3);box-sizing:border-box;box-shadow:0 8px 24px rgba(20,20,20,.16);border-radius:8px;z-index:11}.newsModel_newsModel__1plaq .newsModel_header__Ha6aQ{height:44px;display:flex;align-items:center;justify-content:space-between;padding:8px 16px;box-sizing:border-box}.newsModel_newsModel__1plaq .newsModel_header__Ha6aQ span{font-family:PingFang SC;font-style:normal;font-weight:600;font-size:14px;line-height:20px;color:#000}.newsModel_newsModel__1plaq .newsModel_header__Ha6aQ img{width:24px;height:24px;cursor:pointer}.newsModel_newsModel__1plaq .newsModel_header__Ha6aQ img:hover{opacity:.8}.newsModel_newsModel__1plaq .newsModel_content__t--Nd .newsModel_itemBox__1ayQX{padding:16px;border-top:1px solid #dde1e6}.newsModel_newsModel__1plaq .newsModel_content__t--Nd .newsModel_title__3PbfL{display:flex;align-items:center}.newsModel_newsModel__1plaq .newsModel_content__t--Nd .newsModel_title__3PbfL img{width:14px;height:14px;margin-right:8px}.newsModel_newsModel__1plaq .newsModel_content__t--Nd .newsModel_title__3PbfL span{font-family:PingFang SC;font-style:normal;font-weight:600;font-size:14px;line-height:22px;color:rgba(0,0,0,.85)}.newsModel_newsModel__1plaq .newsModel_content__t--Nd .newsModel_info__1Cy6r{padding-left:22px;margin-top:4px;font-family:PingFang SC;font-style:normal;font-weight:400;font-size:14px;line-height:22px;color:#666f80}.newsModel_newsModel__1plaq .newsModel_but__3FVMQ{height:36px;margin-top:24px;display:flex;align-items:center;justify-content:flex-end}.newsModel_newsModel__1plaq .newsModel_but__3FVMQ .ant-btn-primary{height:36px!important}.newsModel_noData__21iOO{font-family:PingFang SC;font-style:normal;font-weight:400;font-size:14px;color:#666f80;opacity:.6}");var Wo=function(e){function t(e){var n;return bt(this,t),(n=yt(this,t,[e])).state={},n}return It(t,e),xt(t,[{key:"render",value:function(){var e=this.props,t=e.handleDownUse,n=e.newsClose,r=e.data;return fe.default.createElement("div",{className:Ho},fe.default.createElement("div",{className:Ro},fe.default.createElement("span",null,"发现新推送"),fe.default.createElement("img",{src:Bn,alt:"",onClick:function(){return n([null==r?void 0:r.taskId])}})),fe.default.createElement("div",{className:Vo},fe.default.createElement("div",{className:jo},fe.default.createElement("div",{className:zo},fe.default.createElement("img",{src:vn,alt:""}),fe.default.createElement("span",null,"发现新的场景数据推送,是否载入?")),fe.default.createElement("p",{className:Go},"载入新的场景后,会覆盖现有数据 场景模型"),fe.default.createElement("div",{className:Ko},fe.default.createElement(Ee.default,{type:"primary",onClick:function(){n([null==r?void 0:r.taskId]),t(r)}},"下载场景")))))}}])}(r.Component),Yo={iconBox:"index_iconBox__2jnXm",icon:"index_icon__2TuGU",useIcon:"index_useIcon__1OScG",delIcon:"index_delIcon__1EbbD",downUseIcon:"index_downUseIcon__3nrQ1"};Rt(".index_iconBox__2jnXm{display:flex;flex-wrap:wrap}.index_icon__2TuGU{display:flex;align-items:center;justify-content:center;box-sizing:border-box;height:22px;margin-right:12px;padding:8px;font-weight:600;font-size:12px;font-family:PingFang SC;font-style:normal;line-height:22px;border:1px solid;border-radius:4px;cursor:pointer}.index_useIcon__1OScG{color:#23c16b;background:rgba(35,193,107,.15);border-color:#23c16b}.index_delIcon__1EbbD{color:#ff4b23;background:rgba(255,75,35,.15);border-color:#ff4b23}.index_downUseIcon__3nrQ1{color:#397bff;background:rgba(57,123,255,.15);border-color:#397bff}");var Xo=n.connect(function(e){return{app:e.app,cover:e.cover}})(function(e){var t=e.taskList,n=e.handleUse,o=e.handleDel,a=e.handleDownUse;return r.useEffect(function(){console.log("弹窗数据",t)},[t]),fe.default.createElement("div",{className:Yo.fileModel},fe.default.createElement(ke.default,{pagination:!1,dataSource:t,columns:[{title:"序号",dataIndex:"taskId",key:"taskId",width:60,render:function(e,t,n){return fe.default.createElement("span",null,n+1)}},{title:"项目/应用",dataIndex:"projectName",key:"projectName",width:260,render:function(e,t){return fe.default.createElement("span",null,"".concat(null==t?void 0:t.projectName,"-").concat(null==t?void 0:t.version))}},{title:"状态",dataIndex:"downloadState",key:"downloadState",width:90,render:function(e,t,n){if(1===(null==t?void 0:t.userSelected))return fe.default.createElement("span",null,"正在使用");var r="未下载";switch(null==t?void 0:t.downloadState){case 1:r="下载中";break;case 2:r="解压中";break;case 3:r="已下载";break;case 4:r="未下载"}return fe.default.createElement("span",null,r)}},{title:"更新时间",dataIndex:"time",key:"time"},{title:"状态",dataIndex:"downloadState",key:"downloadState",render:function(e,t,r){var i=(null==t?void 0:t.downloadState)||0;if(0===(null==t?void 0:t.userSelected))return fe.default.createElement("div",{className:Yo.iconBox},3===i&&fe.default.createElement(fe.default.Fragment,null,fe.default.createElement("span",{className:ve.default(Yo.icon,Yo.useIcon),onClick:function(){return n(t)}},"使用"),fe.default.createElement("span",{className:ve.default(Yo.icon,Yo.delIcon),onClick:function(){return o(t)}},"删除")),(0===i||4===i)&&fe.default.createElement("span",{className:ve.default(Yo.icon,Yo.downUseIcon),onClick:function(){return a(t)}},"下载并使用"))}}],scroll:{y:"400px"},rowKey:"taskId"}))}),qo=[{BASEURL:"https://3d-editor.onewo.com",H5URL:"https://3d-ar.onewo.com",REDIRECTURL:"https://3d-login.onewo.com",SERVERS:"prod",PAGEURL:"https://3d.onewo.com",SHAREURL:"https://project-deployment.onewo.com"},{BASEURL:"https://3d-editor.onewo.com",H5URL:"https://3d-ar.onewo.com",REDIRECTURL:"https://3d-login.onewo.com",SERVERS:"prod",PAGEURL:"https://3d.onewo.com",SHAREURL:"https://project-deployment.onewo.com"},{BASEURL:"https://3d-editor.onewo.com",H5URL:"https://3d-ar.onewo.com",REDIRECTURL:"https://3d-login.onewo.com",SERVERS:"prod",PAGEURL:"https://3d.onewo.com",SHAREURL:"https://project-deployment.onewo.com"}];function Jo(){var e=window.location.origin;if(e)return e.includes("-test")||e.includes("ddd")?qo[2]:e.includes("-fat")?qo[1]:qo[2]}var Zo=qr("accesstoken"),$o=function(e){e=e||12;for(var t="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678",n="",r=0;e>r;r++)n+=t.charAt(Math.floor(48*Math.random()));return n}(12),ea=(new Date).getTime(),ta=""+Se.default(qr("username")||""),na=""+Fe.default($o+ta+ea+Zo),ra=Ie.default.create({baseURL:Jo().BASEURL});ra.interceptors.request.use(function(e){var t=qr("accesstoken"),n=qr("file_app_id");e.headers.accessToken=t,e.headers.appId=n,e.headers["Access-Control-Allow-Origin"]="*",e.headers.Authorization=Zo,e.headers.echostr=$o,e.headers.nonce=ta,e.headers.signature=na,e.headers.timestamp=ea,e.headers.projectId=Jr(sessionStorage.getItem("projectData"))?Jr(sessionStorage.getItem("projectData")).projectId:"",e.headers.applicationId=Jr(sessionStorage.getItem("applicationData"))?Jr(sessionStorage.getItem("applicationData")).applicationId:"";var r=window.location.href,o=Jr(sessionStorage.getItem("projectData")),a=Xr("projectId",r)?Xr("projectId",r):o&&o.projectId?o.projectId:"";return a&&(e.headers.projectId=a),"get"===e.method&&(window.ActiveXObject||"ActiveXObject"in window)&&(e.params=Pt({_t:Date.parse(new Date)/1e3},e.params)),e},function(e){return Promise.reject(e)});var oa="".concat(Jo().BASEURL,"/api");function aa(){return ia.apply(this,arguments)}function ia(){return ia=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(oa,"/vbim-parking-server/ueModel/startProgram"),method:"post",data:t}))},e)})),ia.apply(this,arguments)}function la(){return sa.apply(this,arguments)}function sa(){return sa=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(oa,"/vbim-parking-server/ueModel/saveOperationParam"),method:"post",data:t}))},e)})),sa.apply(this,arguments)}function Aa(){return ca.apply(this,arguments)}function ca(){return ca=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(oa,"/vbim-parking-server/ueModel/selectOperationParam"),method:"post",data:t}))},e)})),ca.apply(this,arguments)}function ua(){return da.apply(this,arguments)}function da(){return da=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(oa,"/vbim-parking-server/ueModel/queryUeParkingFileRecord"),method:"post",data:t}))},e)})),da.apply(this,arguments)}function pa(){return fa.apply(this,arguments)}function fa(){return fa=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(oa,"/vbim-parking-server/area/queryAreaFloorInfo"),method:"post",data:t}))},e)})),fa.apply(this,arguments)}function ga(){return ha.apply(this,arguments)}function ha(){return ha=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(oa,"/vbim-parking-server/clientVersion/selectDefaultVisualAngle"),method:"post",data:t}))},e)})),ha.apply(this,arguments)}function ma(){return _a.apply(this,arguments)}function _a(){return _a=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(oa,"/vbim-parking-server/clientVersion/saveDefaultVisualAngle"),method:"post",data:t}))},e)})),_a.apply(this,arguments)}function va(){return ya.apply(this,arguments)}function ya(){return ya=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(oa,"/vbim-parking-server/ueModel/saveParkingModifyInfo"),method:"post",data:t}))},e)})),ya.apply(this,arguments)}function ba(e){return wa.apply(this,arguments)}function wa(){return(wa=vt(Ut().m(function e(t){return Ut().w(function(e){for(;;)if(0===e.n)return e.a(2,ra({url:"".concat(oa,"/vbim-parking-server/app/ueParkingInfo"),method:"post",data:t}))},e)}))).apply(this,arguments)}function xa(e){return Ba.apply(this,arguments)}function Ba(){return(Ba=vt(Ut().m(function e(t){return Ut().w(function(e){for(;;)if(0===e.n)return e.a(2,ra({url:"".concat(oa,"/vbim-parking-server/testOnline/updateUserSelectedPackage"),method:"post",data:t}))},e)}))).apply(this,arguments)}function Ca(){return(Ca=vt(Ut().m(function e(t){return Ut().w(function(e){for(;;)if(0===e.n)return e.a(2,ra({url:"".concat(oa,"/vbim-parking-server/taskUserViewed/queryShowPushTipsFlag"),method:"post",data:t}))},e)}))).apply(this,arguments)}function Ea(){return(Ea=vt(Ut().m(function e(t){return Ut().w(function(e){for(;;)if(0===e.n)return e.a(2,ra({url:"".concat(oa,"/vbim-parking-server/taskUserViewed/closePushTips"),method:"post",data:t}))},e)}))).apply(this,arguments)}function ka(){return(ka=vt(Ut().m(function e(t){return Ut().w(function(e){for(;;)if(0===e.n)return e.a(2,ra({url:"".concat(oa,"/vbim-parking-server/taskUserViewed/queryRedDotsFlag"),method:"post",data:t}))},e)}))).apply(this,arguments)}function Ia(e){return Sa.apply(this,arguments)}function Sa(){return(Sa=vt(Ut().m(function e(t){return Ut().w(function(e){for(;;)if(0===e.n)return e.a(2,ra({url:"".concat(oa,"/vbim-parking-server/programPackage/dealProcess"),method:"post",data:t}))},e)}))).apply(this,arguments)}var Fa=function(e){function t(e){var n;return bt(this,t),(n=yt(this,t,[e])).getCurrentDownloadGameState=function(){var e=vt(Ut().m(function e(t){var r,o,a;return Ut().w(function(e){for(;;)switch(e.n){case 0:return o=null==t||null===(r=t.param)||void 0===r?void 0:r.downloadId,e.n=1,n.props.dispatch({type:"app/updateState",payload:{UELoadingTaskId:o||""}});case 1:return e.n=2,n.getPackage();case 2:n.handleInterval((a=n.state).obsDownloadUrl,a.taskId);case 3:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),n.handleInterval=function(e,t){e?(n.timer&&(clearInterval(n.timer),n.timer=null),n.timer=setInterval(function(){3===n.state.downloadState||4===n.state.downloadState?(console.log("------------------定时器停止"),clearInterval(n.timer),n.timer=null):(console.log("------------------定时器执行中"),n.getUEDownLoad(e,t))},5e3)):(clearInterval(n.timer),n.timer=null)},n.getPackage=vt(Ut().m(function e(){var t;return Ut().w(function(e){for(;;)switch(e.n){case 0:return t=n.state.applicationId,e.n=1,n.props.dispatch({type:"app/getQueryPackageDeployList",payload:{applicationId:t},callback:function(e,t){try{var r=e.obsDownloadUrl,o=e.taskId;r&&o?(n.getUEDownLoad(r,o),n.setState({obsDownloadUrl:r,taskId:o})):n.setState({obsDownloadUrl:"",taskId:""}),n.setState({taskList:t||[]})}catch(e){console.log("初始化场景模型当前程序包",e)}}});case 1:n.setState({loading:!1});case 2:return e.a(2)}},e)})),n.getUEDownLoad=function(e,t){e&&t&&_o({role:0,method:"tryDownloadGame",param:{downloadUrl:e,downloadId:t,applicationId:n.state.applicationId}})},n.getUEGameState=function(e,t,n){e&&t&&_o({role:0,method:"getDownloadGameState",param:{downloadUrl:e,downloadId:t,applicationId:n}})},n.getTryDownloadGame=function(e){if(null==e?void 0:e.param){var t,r,o;if((null===(t=e.param)||void 0===t?void 0:t.applicationId)!==n.props.app.applicationId)return!1;if(4===(null===(r=e.param)||void 0===r?void 0:r.downloadState))de.default.info("已有场景模型下载中,请稍后操作"),n.props.dispatch({type:"app/updateState",payload:{sceneState:4,UElocalPath:""}});else{var a,i,l,s,A=(null===(a=e.param)||void 0===a?void 0:a.receivedBytes)/(null===(i=e.param)||void 0===i?void 0:i.totalBytes)*100||0;2===(null===(l=e.param)||void 0===l?void 0:l.downloadState)&&(A=100),n.setState({percent:Number(A).toFixed(0)});var c=1;switch(null===(s=e.param)||void 0===s?void 0:s.downloadState){case 1:case 2:c=2;break;case 3:c=3}n.props.dispatch({type:"app/updateState",payload:{sceneState:c,UElocalPath:e.param.localPath}}),n.getHandle(e.param)}n.setState({downloadState:null===(o=e.param)||void 0===o?void 0:o.downloadState})}},n.getHandle=function(e){var t=e.applicationId,r=e.downloadId,o=n;if(3===e.downloadState){_o({role:0,method:"requestRoleStateList",param:""}),n.getNewsModel(),n.handleDot();var a=n.state.taskList;((null==a?void 0:a.length)>0?a:[]).forEach(function(e){r===(null==e?void 0:e.taskId)&&0===(null==e?void 0:e.userSelected)&&o.props.dispatch({type:"app/updateUserSelectedPackage",payload:{taskId:null==e?void 0:e.taskId,applicationId:t}})})}else n.setState({visible:!1})},n.getOpenRunTime=function(e){if(e.param&&e.param[2]){n.props.dispatch({type:"app/updateState",payload:{isRunning:"yes"}}),n.setState({is2Role:e.param[2]});var t=n.props.parking.currentFloor;if(null==t?void 0:t.floorId){var r={role:2,method:"changeLandArea",param:null==t?void 0:t.floorId};setTimeout(function(){_o(r)},5e3)}}else n.props.dispatch({type:"app/updateState",payload:{isRunning:"no"}}),n.setState({is2Role:!1})},n.getOperation=function(){n.props.dispatch({type:"cover/updateState",payload:{operationVisible:!0}})},n.getNewsModel=function(){(function(e){return Ca.apply(this,arguments)})({applicationId:n.state.applicationId}).then(function(e){var t,r;if(200===(null==e||null===(t=e.data)||void 0===t?void 0:t.code)&&(null==e||null===(r=e.data)||void 0===r?void 0:r.value)){var o=e.data.value;1===(null==o?void 0:o.showPushTipsFlag)&&n.setState({newsData:null==o?void 0:o.taskInfo,dot:!0,newsVisible:!0},function(){setTimeout(function(){n.setState({newsVisible:!1})},3e3)})}})},n.newsClose=function(){(function(e){return Ea.apply(this,arguments)})({applicationId:n.state.applicationId,taskIdList:arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]}).then(function(e){var t;200===(null==e||null===(t=e.data)||void 0===t?void 0:t.code)&&(console.log(e.data.message),n.handleDot(),n.setState({newsVisible:!1}))})},n.handleDot=function(){(function(e){return ka.apply(this,arguments)})({applicationId:n.state.applicationId}).then(function(e){var t,r;if(200===(null==e||null===(t=e.data)||void 0===t?void 0:t.code)&&(null==e||null===(r=e.data)||void 0===r?void 0:r.value)){var o=e.data.value;n.setState(1===(null==o?void 0:o.redDotsFlag)?{dot:!0,taskIdList:null==o?void 0:o.taskIdList}:{dot:!1,taskIdList:[]})}})},n.handleCancel=function(){var e=vt(Ut().m(function e(t){return Ut().w(function(e){for(;;)switch(e.n){case 0:if(!t){e.n=3;break}return e.n=1,n.getPackage();case 1:return e.n=2,n.setDownloadGameState();case 2:return e.n=3,n.newsClose(n.state.taskIdList);case 3:n.setState({visible:t});case 4:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),n.setDownloadGameState=function(){var e=n.state,t=e.taskList,r=e.applicationId;((null==t?void 0:t.length)>0?t:[]).forEach(function(e){(null==e?void 0:e.obsDownloadUrl)&&(null==e?void 0:e.taskId)&&n.getUEGameState(null==e?void 0:e.obsDownloadUrl,null==e?void 0:e.taskId,r)})},n.getDownloadGameState=function(e){var t,r=n.state,o=r.taskList,a=[];if((null==e||null===(t=e.param)||void 0===t?void 0:t.applicationId)!==r.applicationId)return!1;((null==o?void 0:o.length)>0?o:[]).map(function(t,n,r){var o,i;(null==t?void 0:t.taskId)===(null==e||null===(o=e.param)||void 0===o?void 0:o.downloadId)&&(t.downloadState=null==e||null===(i=e.param)||void 0===i?void 0:i.downloadState);return a=r,!1}),n.setState({taskList:a})},n.handleUse=function(e){n.props.dispatch({type:"app/updateUserSelectedPackage",payload:{taskId:null==e?void 0:e.taskId,applicationId:null==e?void 0:e.applicationId}}).then(function(){Yr.emit("setNavState"),n.setState({visible:!1})})},n.handleDownUse=function(){var e=vt(Ut().m(function e(t){return Ut().w(function(e){for(;;)switch(e.n){case 0:n.setState({downloadState:null,obsDownloadUrl:null,visible:!1},function(){Ia({applicationId:n.state.applicationId}).then(function(e){var t;200===(null==e||null===(t=e.data)||void 0===t?void 0:t.code)&&Yr.emit("setNavState")}),n.getUEDownLoad(null==t?void 0:t.obsDownloadUrl,null==t?void 0:t.taskId),n.handleInterval(null==t?void 0:t.obsDownloadUrl,null==t?void 0:t.taskId)});case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),n.handleDel=function(e){_o({role:0,method:"deleteDownloadGame",param:{downloadUrl:null==e?void 0:e.obsDownloadUrl}})},n.handleUEDel=function(){var e=vt(Ut().m(function e(t){var r;return Ut().w(function(e){for(;;)switch(e.n){case 0:(null==t||null===(r=t.param)||void 0===r?void 0:r.isSuccess)?(de.default.success("删除成功"),n.setState({visible:!1})):de.default.success("该程序相关文件打开,无法删除");case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),n.setEditParking=function(){n.props.dispatch({type:"scene/updateState",payload:{isFirstEnter:!0}}),n.props.dispatch(s.routerRedux.push({pathname:"/editScene"}))},n.clickPage=function(){try{var e=Jr(sessionStorage.getItem("applicationData"));window.dispatchEvent(new CustomEvent("mainEvent",{detail:{key:"artAutomation",data:Pt({},e)}}))}catch(e){console.log("跳转美术编辑器 err",e)}},n.handleUpdata=vt(Ut().m(function e(){var t,r;return Ut().w(function(e){for(;;)switch(e.n){case 0:return n.setState({loading:!0}),e.n=1,n.getPackage();case 1:return n.handleInterval((t=n.state).obsDownloadUrl,r=t.taskId),e.n=2,n.newsClose([r]);case 2:return e.a(2)}},e)})),n.timer=null,n.state={applicationId:"",is2Role:!1,downloadState:1,percent:0,visible:!1,taskList:[],obsDownloadUrl:"",taskId:"",dot:!1,newsData:{},newsVisible:!1,taskIdList:[],loading:!1},n}return It(t,e),xt(t,[{key:"componentDidMount",value:function(){_o({role:0,method:"getCurrentDownloadGameState"}),this.setState({applicationId:this.props.app.applicationId},vt(Ut().m(function e(){return Ut().w(function(e){for(;;)if(0===e.n)return e.a(2)},e)}))),Yr.on("tryDownloadGame",this.getTryDownloadGame),Yr.on("getDownloadGameState",this.getDownloadGameState),Yr.on("notifyRoleStateListChanged",this.getOpenRunTime),Yr.on("RequestRoleStateList",this.getOpenRunTime),Yr.on("deleteDownloadGame",this.handleUEDel),Yr.on("getCurrentDownloadGameState",this.getCurrentDownloadGameState)}},{key:"UNSAFE_componentWillReceiveProps",value:(n=vt(Ut().m(function e(t){var n=this;return Ut().w(function(e){for(;;)switch(e.n){case 0:JSON.stringify(t.app.applicationId)!==JSON.stringify(this.props.app.applicationId)&&this.setState({applicationId:t.app.applicationId},vt(Ut().m(function e(){return Ut().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,n.getPackage();case 1:return e.a(2)}},e)})));case 1:return e.a(2)}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"componentWillUnmount",value:function(){clearInterval(this.timer),this.timer=null,Yr.off("getDownloadGameState",this.getDownloadGameState),Yr.off("tryDownloadGame",this.getTryDownloadGame),Yr.off("RequestRoleStateList",this.getOpenRunTime),Yr.off("notifyRoleStateListChanged",this.getOpenRunTime),Yr.off("deleteDownloadGame",this.handleUEDel),Yr.off("getCurrentDownloadGameState",this.getCurrentDownloadGameState)}},{key:"render",value:function(){var e=this,t=this.props.app,n=t.sceneState,r=t.sceneData,o=this.state,a=o.dot,i=o.newsData,l=o.newsVisible,s=o.percent,A=o.visible,c=o.taskList,u=o.loading;return fe.default.createElement(fe.default.Fragment,null,fe.default.createElement("div",{className:yo.sceneModel},Xt.map(function(t,o){return t.id===n?fe.default.createElement("div",{key:t.id},fe.default.createElement("div",{className:yo.titleBox},fe.default.createElement("span",{className:yo.title},"场景模型"),fe.default.createElement("span",{className:ve.default(yo.state,yo.noData),style:{color:t.color,background:t.background}},t.name),2===t.id&&fe.default.createElement("i",{className:yo.percent,style:{color:t.color}},s,"%"),1===t.id&&fe.default.createElement("div",{className:yo.refreshData,onClick:e.handleUpdata},u&&fe.default.createElement("img",{src:xn,alt:""})," ",fe.default.createElement("i",null,"刷新数据")),3===t.id&&fe.default.createElement("div",{className:yo.iconBox},fe.default.createElement("img",{src:yn,alt:"",className:yo.setIcon,onClick:e.getOperation}),fe.default.createElement(we.default,{dot:a,size:"small"},fe.default.createElement("img",{src:bn,alt:"",className:yo.newsIcon,onClick:function(){return e.handleCancel(!0)}})))),fe.default.createElement("div",{className:yo.tipBox},1===t.id?fe.default.createElement(fe.default.Fragment,null,fe.default.createElement("img",{src:vn,alt:"",className:yo.warningIcon}),fe.default.createElement("span",{className:yo.tipTxt},"请前往 ",fe.default.createElement("i",{onClick:e.clickPage},"场景制作")," 页面,进行制作")):fe.default.createElement("span",{className:yo.tipTxt},t.tip),2===t.id&&fe.default.createElement(fe.default.Fragment,null,fe.default.createElement("span",{className:yo.loadingBut},t.but," ",fe.default.createElement("img",{src:xn,alt:""}))),(3===t.id||4===t.id)&&fe.default.createElement("span",{className:yo.verson},"".concat(null==r?void 0:r.version,"-").concat(null==r?void 0:r.projectName)),4===t.id&&fe.default.createElement("span",{className:yo.reLoadBut,onClick:function(){e.getUEDownLoad(null==r?void 0:r.obsDownloadUrl,null==r?void 0:r.taskId)}},t.but),3===t.id&&fe.default.createElement("span",{className:yo.editBut,onClick:e.setEditParking},fe.default.createElement("img",{src:wn,alt:""}),t.but1))):null}),l&&fe.default.createElement(Wo,{data:i,newsClose:function(t){return e.newsClose(t)},handleDownUse:this.handleDownUse})),fe.default.createElement(Oo,null),fe.default.createElement(be.default,{visible:A,title:"场景模型",footer:null,width:840,onCancel:function(){return e.handleCancel(!1)}},fe.default.createElement(Xo,{taskList:c,handleUse:this.handleUse,handleDel:this.handleDel,handleDownUse:this.handleDownUse})))}}]);var n}(r.Component),Pa=n.connect(function(e){return{app:e.app,parking:e.parking,cover:e.cover,seting:e.seting,scene:e.scene}})(Fa),La="header_header-wrapper__2bJxo",Ua="header_header-right__1eN77",Qa="header_platform-select__3L5OJ",Na="header_appList__3W7Xo",Ma="header_appItem__2EFcO",Da="header_appModal__2KlAp";Rt(".header_header-wrapper__2bJxo{position:absolute;right:0;bottom:24px;display:flex;flex-direction:column;align-items:center;width:100%;font-size:14px;background:#fff}.header_header-wrapper__2bJxo .header_header-right__1eN77{display:flex;flex-direction:column;align-items:center;width:80px}.header_header-wrapper__2bJxo .header_header-right__1eN77 .header_platform-select__3L5OJ{margin-top:16px}.header_header-wrapper__2bJxo .header_header-right__1eN77 .header_platform-select__3L5OJ .ant-select{color:#000f2c;background:#f0f1f2;border-radius:4.8px}.header_header-wrapper__2bJxo .header_header-right__1eN77 .header_platform-select__3L5OJ .ant-select-single:not(.ant-select-customize-input) .ant-select-selector{padding:0 6px}.header_header-wrapper__2bJxo .header_header-right__1eN77 .header_platform-select__3L5OJ .ant-select-arrow{margin-top:-8px}.header_header-wrapper__2bJxo .header_header-right__1eN77 .header_avg__2j_XW{width:24px;height:24px;margin-right:17px;border-radius:28px;cursor:pointer}.header_appList__3W7Xo{display:flex;justify-content:space-around}.header_appItem__2EFcO{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:309px;height:240px;background:#f0f2f5;border:2px solid #000;border-radius:24px;cursor:pointer}.header_appItem__2EFcO:hover{border-color:#3465e3}.header_appModal__2KlAp .ant-modal-body{box-sizing:border-box;padding:57px 48px}.header_areaSelect__3MU5A{margin-right:20px;margin-bottom:50px}");var Ta="".concat(Jo().BASEURL,"/api");function Oa(){return Ha.apply(this,arguments)}function Ha(){return Ha=vt(Ut().m(function e(){var t=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return e.a(2,ra({url:Ta+"/vbim-parking-server/garageProduction/saveCoverProperty",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),Ha.apply(this,arguments)}function Ra(){return Va.apply(this,arguments)}function Va(){return Va=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(Ta,"/vbim-parking-server/garageProduction/queryCoverProperty?equipmentId=").concat(null==t?void 0:t.equipmentId,"&coverImageType=").concat(null==t?void 0:t.coverImageType,"&t=").concat((new Date).getTime()),method:"GET",data:t}))},e)})),Va.apply(this,arguments)}function ja(){return za.apply(this,arguments)}function za(){return za=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(Ta,"/vbim-parking-server/garageProduction/buttonStyleResource?t=").concat((new Date).getTime()),method:"GET",data:t}))},e)})),za.apply(this,arguments)}function Ga(e){return Ka.apply(this,arguments)}function Ka(){return(Ka=vt(Ut().m(function e(t){return Ut().w(function(e){for(;;)if(0===e.n)return e.a(2,ra({url:"".concat(Ta,"/vbim-parking-server/garageProduction/queryParkingEquipment?t=").concat((new Date).getTime(),"&applicationId=").concat(t),method:"GET"}))},e)}))).apply(this,arguments)}function Wa(e){return Ya.apply(this,arguments)}function Ya(){return(Ya=vt(Ut().m(function e(t){return Ut().w(function(e){for(;;)if(0===e.n)return e.a(2,ra({url:"".concat(Ta,"/vbim-parking-server/garageProduction/createParkingEquipment"),method:"post",data:t}))},e)}))).apply(this,arguments)}var Xa=Pe.default.Option;var qa=n.connect(function(e){return{header:e.header,app:e.app,cover:e.cover}})(function(e){var t=e.dispatch,n=e.app,o=n.applicationId,a=n.equipmentList,i=n.areaList,l=Mt(r.useState(null),2),s=l[0],A=l[1];r.useEffect(function(){c()},[o]);var c=function(){t({type:"app/getParkingEquipment",payload:{applicationId:o},callback:function(e){e&&!e.length&&Wa({applicationId:o,equipmentType:"MobileApp",appResolution:"1920x1080"}).then(function(e){var n;200===(null===(n=e.data)||void 0===n?void 0:n.code)&&t({type:"app/getParkingEquipment",payload:{applicationId:o}})})}})};r.useEffect(function(){var e,n;(null==a?void 0:a.length)>0&&a[0]&&(A(null===(e=a[0])||void 0===e?void 0:e.equipmentId),t({type:"app/updateState",payload:{equipmentId:null===(n=a[0])||void 0===n?void 0:n.equipmentId,currentEquipmentData:a[0]}}),Yr.emit("equipment"));i.length&&_(i[0].areaId)},[a,i]);var u=Mt(r.useState(!1),2),d=u[0],p=u[1],f=Mt(r.useState(null),2),g=f[0],h=f[1],m=Mt(r.useState(null),2),_=m[1],v=function(){var e=vt(Ut().m(function e(){var t,n;return Ut().w(function(e){for(;;)switch(e.n){case 0:if(g){e.n=1;break}return de.default.warn("请选择要新增的设备"),e.a(2,!1);case 1:if("DesktopApp"!==g){e.n=2;break}return de.default.warn("暂未开发桌面应用"),e.a(2,!1);case 2:return t={applicationId:o,equipmentType:g,appResolution:"1920x1080"},e.n=3,Wa(t);case 3:(n=e.v.data).success?(de.default.success("新建成功"),c()):de.default.error(n.message),p(!1);case 4:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();function y(e){return function(){"DesktopApp"===e&&de.default.warn("暂未开发桌面应用"),h(e===g?null:e)}}return fe.default.createElement("div",{className:La},fe.default.createElement("div",{className:Ua},!1,fe.default.createElement("img",{onClick:function(){p(!0)},style:{cursor:"pointer"},src:"".concat(jt,"/img/addArea.svg"),alt:""}),fe.default.createElement("div",{className:Qa},fe.default.createElement(Pe.default,{value:s,bordered:!1,suffixIcon:fe.default.createElement("img",{src:"".concat(jt,"/img/expand.svg"),alt:""}),onChange:function(e){A(e);var n={};a&&a.forEach(function(t){t.equipmentId===e&&(n=t)}),t({type:"app/updateState",payload:{equipmentId:e,currentEquipmentData:n}}),Yr.emit("equipment")}},a.map(function(e){return fe.default.createElement(Xa,{value:e.equipmentId,key:e.equipmentType},e.label)})))),fe.default.createElement(be.default,{className:Da,okText:"确定",cancelText:"取消",width:1086,title:"新建设备样式",visible:d,onOk:v,onCancel:function(){p(!1)}},fe.default.createElement("div",{className:Na},fe.default.createElement("div",{style:{borderColor:"MobileApp"===g?"#3465E3":""},onClick:y("MobileApp"),key:"phone",className:Ma},fe.default.createElement("img",{src:"".concat(jt,"/img/phoneApp.png"),alt:""})),fe.default.createElement("div",{style:{borderColor:"DesktopApp"===g?"#3465E3":""},onClick:y("DesktopApp"),key:"web",className:Ma},fe.default.createElement("img",{src:"".concat(jt,"/img/webApp.png"),alt:""})))))}),Ja=[{id:"birdEyeView",icon:"".concat(jt,"/img/nav/birdView.png"),selectIcon:"".concat(jt,"/img/nav/birdView_active.png"),name:"全局鸟瞰"},{id:"roam",icon:"".concat(jt,"/img/nav/roam.png"),selectIcon:"".concat(jt,"/img/nav/roam_active.png"),name:"沉浸漫游"},{id:"parkingList",icon:"".concat(jt,"/img/nav/list.png"),selectIcon:"".concat(jt,"/img/nav/list_active.png"),name:"快捷列表"},{id:"mine",icon:"".concat(jt,"/img/nav/mine.png"),selectIcon:"".concat(jt,"/img/nav/mine_active.png"),name:"我的"}],Za="menuList_menuList__ilCER",$a="menuList_menuItem__2ID1X",ei="menuList_active__2ImkU",ti="menuList_itemContent__27eN0",ni="menuList_itemContentSelected__3vClO",ri="menuList_menuListPop__3kkQP";Rt(".menuList_menuList__ilCER{width:100%;height:94px;position:absolute;bottom:0;left:0;display:flex;background-color:rgba(6,9,21,.9);z-index:2}.menuList_menuItem__2ID1X{width:25%;height:100%;display:flex;flex-direction:column;align-items:center;font-family:PingFangSC-Regular;font-size:14px;color:#dde2e9;box-sizing:border-box;cursor:pointer}.menuList_menuItem__2ID1X img{width:34px}.menuList_menuItem__2ID1X span{font-size:10px;color:#fff;margin-bottom:40px}.menuList_menuItem__2ID1X.menuList_active__2ImkU{color:#fff}.menuList_itemContent__27eN0,.menuList_itemContentSelected__3vClO{z-index:2;display:flex;flex-direction:column;align-items:center;height:100%;justify-content:flex-end}.menuList_itemContentSelected__3vClO span{color:#2468ff!important;font-weight:700!important}.menuList_menuListPop__3kkQP .ant-popover-inner{border-radius:27px}.menuList_menuListPop__3kkQP p{display:flex;align-items:center;gap:9px}.menuList_menuListPop__3kkQP img{width:14px;height:14px}");var oi=fe.default.createElement("p",null,fe.default.createElement("img",{src:"".concat(jt,"/img/warningIcon.png"),alt:""}),"漫游页编辑模式不支持跳转"),ai=function(e){var t=e.currentMenuId,n=e.type;return fe.default.createElement("div",{id:"menuList",className:Za},Ja.map(function(e,r){return fe.default.createElement("div",{key:e.id,className:ve.default($a,Ct({},ei,t===e.id)),onClick:function(){console.log("handleMenuClick -> menu",e)}},"roam"===n?fe.default.createElement(Le.default,{trigger:"click",placement:0===r?"topLeft":3===r?"topRight":"top",overlayClassName:ri,getPopupContainer:function(){return document.querySelector("#menuList")},content:oi},fe.default.createElement("div",{className:t===e.id?ni:ti},fe.default.createElement("img",{src:t===e.id?e.selectIcon:e.icon,alt:""}),fe.default.createElement("span",null,e.name))):fe.default.createElement("div",{className:t===e.id?ni:ti},fe.default.createElement("img",{src:t===e.id?e.selectIcon:e.icon,alt:""}),fe.default.createElement("span",null,e.name)))}))},ii=function(e,t){return ii=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},ii(e,t)};function li(e,t){function n(){this.constructor=e}ii(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var si=function(){return si=Object.assign||function(e){for(var t,n=1,r=arguments.length;r>n;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},si.apply(this,arguments)};function Ai(){for(var e=0,t=0,n=arguments.length;n>t;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;n>t;t++)for(var a=arguments[t],i=0,l=a.length;l>i;i++,o++)r[o]=a[i];return r}var ci=[{sourceKey:"scroller.scrollBehaviorX.currentPos",key:"x"},{sourceKey:"scroller.scrollBehaviorY.currentPos",key:"y"},{sourceKey:"scroller.scrollBehaviorX.hasScroll",key:"hasHorizontalScroll"},{sourceKey:"scroller.scrollBehaviorY.hasScroll",key:"hasVerticalScroll"},{sourceKey:"scroller.scrollBehaviorX.contentSize",key:"scrollerWidth"},{sourceKey:"scroller.scrollBehaviorY.contentSize",key:"scrollerHeight"},{sourceKey:"scroller.scrollBehaviorX.maxScrollPos",key:"maxScrollX"},{sourceKey:"scroller.scrollBehaviorY.maxScrollPos",key:"maxScrollY"},{sourceKey:"scroller.scrollBehaviorX.minScrollPos",key:"minScrollX"},{sourceKey:"scroller.scrollBehaviorY.minScrollPos",key:"minScrollY"},{sourceKey:"scroller.scrollBehaviorX.movingDirection",key:"movingDirectionX"},{sourceKey:"scroller.scrollBehaviorY.movingDirection",key:"movingDirectionY"},{sourceKey:"scroller.scrollBehaviorX.direction",key:"directionX"},{sourceKey:"scroller.scrollBehaviorY.direction",key:"directionY"},{sourceKey:"scroller.actions.enabled",key:"enabled"},{sourceKey:"scroller.animater.pending",key:"pending"},{sourceKey:"scroller.animater.stop",key:"stop"},{sourceKey:"scroller.scrollTo",key:"scrollTo"},{sourceKey:"scroller.scrollBy",key:"scrollBy"},{sourceKey:"scroller.scrollToElement",key:"scrollToElement"},{sourceKey:"scroller.resetPosition",key:"resetPosition"}];function ui(e){console.error("[BScroll warn]: "+e)}var di="undefined"!=typeof window,pi=di&&navigator.userAgent.toLowerCase(),fi=!(!pi||!/wechatdevtools/.test(pi)),gi=pi&&pi.indexOf("android")>0,hi=function(){if("string"==typeof pi){var e=/os (\d\d?_\d(_\d)?)/.exec(pi);if(!e)return!1;var t=e[1].split("_").map(function(e){return parseInt(e,10)});return!(13!==t[0]||4>t[1])}return!1}(),mi=!1;if(di){try{var _i={};Object.defineProperty(_i,"passive",{get:function(){mi=!0}}),window.addEventListener("test-passive",function(){},_i)}catch(ej){}}function vi(){return window.performance&&window.performance.now&&window.performance.timing?window.performance.now()+window.performance.timing.navigationStart:+new Date}var yi=function(e,t){for(var n in t)e[n]=t[n];return e};function bi(e){return null==e}function wi(e,t,n){return t>e?t:e>n?n:e}var xi=di&&document.createElement("div").style,Bi=function(){if(!di)return!1;for(var e=0,t=[{key:"standard",value:"transform"},{key:"webkit",value:"webkitTransform"},{key:"Moz",value:"MozTransform"},{key:"O",value:"OTransform"},{key:"ms",value:"msTransform"}];t.length>e;e++){var n=t[e];if(void 0!==xi[n.value])return n.key}return!1}();function Ci(e){return!1===Bi?e:"standard"===Bi?"transitionEnd"===e?"transitionend":e:Bi+e.charAt(0).toUpperCase()+e.substr(1)}function Ei(e){return"string"==typeof e?document.querySelector(e):e}function ki(e,t,n,r){e.addEventListener(t,n,mi?{passive:!1,capture:!!r}:!!r)}function Ii(e,t,n,r){e.removeEventListener(t,n,{capture:!!r})}function Si(e){e.cancelable&&e.preventDefault()}function Fi(e){for(var t=0,n=0;e;)t-=e.offsetLeft,n-=e.offsetTop,e=e.offsetParent;return{left:t,top:n}}Bi&&"standard"!==Bi&&Bi.toLowerCase();var Pi=Ci("transform"),Li=Ci("transition"),Ui=di&&Ci("perspective")in xi,Qi=di&&("ontouchstart"in window||fi),Ni=di&&Li in xi,Mi={transform:Pi,transition:Li,transitionTimingFunction:Ci("transitionTimingFunction"),transitionDuration:Ci("transitionDuration"),transitionDelay:Ci("transitionDelay"),transformOrigin:Ci("transformOrigin"),transitionEnd:Ci("transitionEnd"),transitionProperty:Ci("transitionProperty")},Di={touchstart:1,touchmove:1,touchend:1,touchcancel:1,mousedown:2,mousemove:2,mouseup:2};function Ti(e){if(e instanceof window.SVGElement){var t=e.getBoundingClientRect();return{top:t.top,left:t.left,width:t.width,height:t.height}}return{top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight}}function Oi(e,t){for(var n in t)if(t[n].test(e[n]))return!0;return!1}var Hi=Oi;function Ri(e,t){var n;void 0===t&&(t="click"),"mouseup"===e.type?n=e:"touchend"!==e.type&&"touchcancel"!==e.type||(n=e.changedTouches[0]);var r,o={};n&&(o.screenX=n.screenX||0,o.screenY=n.screenY||0,o.clientX=n.clientX||0,o.clientY=n.clientY||0);var a=!0,i=!0,l={ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey};if("undefined"!=typeof MouseEvent)try{r=new MouseEvent(t,yi(si({bubbles:a,cancelable:i},l),o))}catch(e){s()}else s();function s(){(r=document.createEvent("Event")).initEvent(t,a,i),yi(r,o)}r.forwardedTouchEvent=!0,r._constructed=!0,e.target.dispatchEvent(r)}var Vi={swipe:{style:"cubic-bezier(0.23, 1, 0.32, 1)",fn:function(e){return 1+--e*e*e*e*e}},swipeBounce:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(e){return e*(2-e)}},bounce:{style:"cubic-bezier(0.165, 0.84, 0.44, 1)",fn:function(e){return 1- --e*e*e*e}}},ji=1e3/60,zi=di&&window;function Gi(){}var Ki=di?zi.requestAnimationFrame||zi.webkitRequestAnimationFrame||zi.mozRequestAnimationFrame||zi.oRequestAnimationFrame||function(e){return window.setTimeout(e,e.interval||ji)}:Gi,Wi=di?zi.cancelAnimationFrame||zi.webkitCancelAnimationFrame||zi.mozCancelAnimationFrame||zi.oCancelAnimationFrame||function(e){window.clearTimeout(e)}:Gi,Yi=function(e){},Xi={enumerable:!0,configurable:!0,get:Yi,set:Yi};var qi=function(){function e(e){this.events={},this.eventTypes={},this.registerType(e)}return e.prototype.on=function(e,t,n){return void 0===n&&(n=this),this.hasType(e),this.events[e]||(this.events[e]=[]),this.events[e].push([t,n]),this},e.prototype.once=function(e,t,n){var r=this;void 0===n&&(n=this),this.hasType(e);var o=function(){for(var a=[],i=0;arguments.length>i;i++)a[i]=arguments[i];r.off(e,o);var l=t.apply(n,a);if(!0===l)return l};return o.fn=t,this.on(e,o),this},e.prototype.off=function(e,t){if(!e&&!t)return this.events={},this;if(e){if(this.hasType(e),!t)return this.events[e]=[],this;var n=this.events[e];if(!n)return this;for(var r=n.length;r--;)(n[r][0]===t||n[r][0]&&n[r][0].fn===t)&&n.splice(r,1);return this}},e.prototype.trigger=function(e){for(var t=[],n=1;arguments.length>n;n++)t[n-1]=arguments[n];this.hasType(e);var r=this.events[e];if(r)for(var o,a=r.length,i=Ai(r),l=0;a>l;l++){var s=i[l],A=s[0];if(A&&!0===(o=A.apply(s[1],t)))return o}},e.prototype.registerType=function(e){var t=this;e.forEach(function(e){t.eventTypes[e]=e})},e.prototype.destroy=function(){this.events={},this.eventTypes={}},e.prototype.hasType=function(e){var t=this.eventTypes;t[e]===e||ui('EventEmitter has used unknown event type: "'+e+'", should be oneof ['+Object.keys(t).map(function(e){return JSON.stringify(e)})+"]")},e}(),Ji=function(){function e(e,t){this.wrapper=e,this.events=t,this.addDOMEvents()}return e.prototype.destroy=function(){this.removeDOMEvents(),this.events=[]},e.prototype.addDOMEvents=function(){this.handleDOMEvents(ki)},e.prototype.removeDOMEvents=function(){this.handleDOMEvents(Ii)},e.prototype.handleDOMEvents=function(e){var t=this,n=this.wrapper;this.events.forEach(function(r){e(n,r.name,t,!!r.capture)})},e.prototype.handleEvent=function(e){var t=e.type;this.events.some(function(n){return n.name===t&&(n.handler(e),!0)})},e}(),Zi=function(e){function t(){var t=e.call(this)||this;return t.startX=0,t.startY=0,t.scrollX=!1,t.scrollY=!0,t.freeScroll=!1,t.directionLockThreshold=0,t.eventPassthrough="",t.click=!1,t.dblclick=!1,t.tap="",t.bounce={top:!0,bottom:!0,left:!0,right:!0},t.bounceTime=800,t.momentum=!0,t.momentumLimitTime=300,t.momentumLimitDistance=15,t.swipeTime=2500,t.swipeBounceTime=500,t.deceleration=.0015,t.flickLimitTime=200,t.flickLimitDistance=100,t.resizePolling=60,t.probeType=0,t.stopPropagation=!1,t.preventDefault=!0,t.preventDefaultException={tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT|AUDIO)$/},t.tagException={tagName:/^TEXTAREA$/},t.HWCompositing=!0,t.useTransition=!0,t.bindToWrapper=!1,t.bindToTarget=!1,t.disableMouse=Qi,t.disableTouch=!Qi,t.autoBlur=!0,t.autoEndDistance=5,t.outOfBoundaryDampingFactor=1/3,t.specifiedIndexAsContent=0,t.quadrant=1,t}return li(t,e),t.prototype.merge=function(e){if(!e)return this;for(var t in e)"bounce"!==t?this[t]=e[t]:this.bounce=this.resolveBounce(e[t]);return this},t.prototype.process=function(){return this.translateZ=this.HWCompositing&&Ui?" translateZ(1px)":"",this.useTransition=this.useTransition&&Ni,this.preventDefault=!this.eventPassthrough&&this.preventDefault,this.scrollX="horizontal"!==this.eventPassthrough&&this.scrollX,this.scrollY="vertical"!==this.eventPassthrough&&this.scrollY,this.freeScroll=this.freeScroll&&!this.eventPassthrough,this.scrollX=!!this.freeScroll||this.scrollX,this.scrollY=!!this.freeScroll||this.scrollY,this.directionLockThreshold=this.eventPassthrough?0:this.directionLockThreshold,this},t.prototype.resolveBounce=function(e){var t={top:!0,right:!0,bottom:!0,left:!0};return"object"==typeof e?yi(t,e):e?t:{top:!1,right:!1,bottom:!1,left:!1}},t}(function(){}),$i=function(){function e(e,t){this.wrapper=e,this.options=t,this.hooks=new qi(["beforeStart","start","move","end","click"]),this.handleDOMEvents()}return e.prototype.handleDOMEvents=function(){var e=this.options,t=this.wrapper,n=e.bindToWrapper?t:window,r=[],o=[],a=!e.disableTouch,i=!e.disableMouse;e.click&&r.push({name:"click",handler:this.click.bind(this),capture:!0}),a&&(r.push({name:"touchstart",handler:this.start.bind(this)}),o.push({name:"touchmove",handler:this.move.bind(this)},{name:"touchend",handler:this.end.bind(this)},{name:"touchcancel",handler:this.end.bind(this)})),i&&(r.push({name:"mousedown",handler:this.start.bind(this)}),o.push({name:"mousemove",handler:this.move.bind(this)},{name:"mouseup",handler:this.end.bind(this)})),this.wrapperEventRegister=new Ji(t,r),this.targetEventRegister=new Ji(n,o)},e.prototype.beforeHandler=function(e,t){var n=this.options,r=n.preventDefault,o=n.stopPropagation,a=n.preventDefaultException;({start:function(){return r&&!Oi(e.target,a)},end:function(){return r&&!Oi(e.target,a)},move:function(){return r}})[t]()&&e.preventDefault(),o&&e.stopPropagation()},e.prototype.setInitiated=function(e){void 0===e&&(e=0),this.initiated=e},e.prototype.start=function(e){var t=Di[e.type];if(!this.initiated||this.initiated===t)if(this.setInitiated(t),Hi(e.target,this.options.tagException))this.setInitiated();else if((2!==t||0===e.button)&&!this.hooks.trigger(this.hooks.eventTypes.beforeStart,e)){this.beforeHandler(e,"start");var n=e.touches?e.touches[0]:e;this.pointX=n.pageX,this.pointY=n.pageY,this.hooks.trigger(this.hooks.eventTypes.start,e)}},e.prototype.move=function(e){if(Di[e.type]===this.initiated){this.beforeHandler(e,"move");var t=e.touches?e.touches[0]:e,n=t.pageX-this.pointX,r=t.pageY-this.pointY;if(this.pointX=t.pageX,this.pointY=t.pageY,!this.hooks.trigger(this.hooks.eventTypes.move,{deltaX:n,deltaY:r,e:e})){var o=document.documentElement.scrollLeft||window.pageXOffset||document.body.scrollLeft,a=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,i=this.pointX-o,l=this.pointY-a,s=this.options.autoEndDistance;(i>document.documentElement.clientWidth-s||l>document.documentElement.clientHeight-s||s>i||s>l)&&this.end(e)}}},e.prototype.end=function(e){Di[e.type]===this.initiated&&(this.setInitiated(),this.beforeHandler(e,"end"),this.hooks.trigger(this.hooks.eventTypes.end,e))},e.prototype.click=function(e){this.hooks.trigger(this.hooks.eventTypes.click,e)},e.prototype.setContent=function(e){e!==this.wrapper&&(this.wrapper=e,this.rebindDOMEvents())},e.prototype.rebindDOMEvents=function(){this.wrapperEventRegister.destroy(),this.targetEventRegister.destroy(),this.handleDOMEvents()},e.prototype.destroy=function(){this.wrapperEventRegister.destroy(),this.targetEventRegister.destroy(),this.hooks.destroy()},e}(),el={x:["translateX","px"],y:["translateY","px"]},tl=function(){function e(e){this.setContent(e),this.hooks=new qi(["beforeTranslate","translate"])}return e.prototype.getComputedPosition=function(){var e=window.getComputedStyle(this.content,null)[Mi.transform].split(")")[0].split(", ");return{x:+(e[12]||e[4])||0,y:+(e[13]||e[5])||0}},e.prototype.translate=function(e){var t=[];Object.keys(e).forEach(function(n){if(el[n]){var r=el[n][0];if(r)t.push(r+"("+e[n]+el[n][1]+")")}}),this.hooks.trigger(this.hooks.eventTypes.beforeTranslate,t,e),this.style[Mi.transform]=t.join(" "),this.hooks.trigger(this.hooks.eventTypes.translate,e)},e.prototype.setContent=function(e){this.content!==e&&(this.content=e,this.style=e.style)},e.prototype.destroy=function(){this.hooks.destroy()},e}(),nl=function(){function e(e,t,n){this.translater=t,this.options=n,this.timer=0,this.hooks=new qi(["move","end","beforeForceStop","forceStop","callStop","time","timeFunction"]),this.setContent(e)}return e.prototype.translate=function(e){this.translater.translate(e)},e.prototype.setPending=function(e){this.pending=e},e.prototype.setForceStopped=function(e){this.forceStopped=e},e.prototype.setCallStop=function(e){this.callStopWhenPending=e},e.prototype.setContent=function(e){this.content!==e&&(this.content=e,this.style=e.style,this.stop())},e.prototype.clearTimer=function(){this.timer&&(Wi(this.timer),this.timer=0)},e.prototype.destroy=function(){this.hooks.destroy(),Wi(this.timer)},e}(),rl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return li(t,e),t.prototype.startProbe=function(e,t){var n=this,r=e,o=function(){var a=n.translater.getComputedPosition();(function(e,t,n,r){var o=function(e,t){var n=e-t;return n>0?-1:0>n?1:0},a=o(t.x,e.x),i=o(t.y,e.y);return 0>=a*(n.x-r.x)&&0>=i*(n.y-r.y)})(e,t,a,r)&&n.hooks.trigger(n.hooks.eventTypes.move,a),n.pending||(n.callStopWhenPending?n.callStopWhenPending=!1:n.hooks.trigger(n.hooks.eventTypes.end,a)),r=a,n.pending&&(n.timer=Ki(o))};this.callStopWhenPending&&this.setCallStop(!1),Wi(this.timer),o()},t.prototype.transitionTime=function(e){void 0===e&&(e=0),this.style[Mi.transitionDuration]=e+"ms",this.hooks.trigger(this.hooks.eventTypes.time,e)},t.prototype.transitionTimingFunction=function(e){this.style[Mi.transitionTimingFunction]=e,this.hooks.trigger(this.hooks.eventTypes.timeFunction,e)},t.prototype.transitionProperty=function(){this.style[Mi.transitionProperty]=Mi.transform},t.prototype.move=function(e,t,n,r){this.setPending(n>0),this.transitionTimingFunction(r),this.transitionProperty(),this.transitionTime(n),this.translate(t);var o=3===this.options.probeType;n&&o&&this.startProbe(e,t),n||(this._reflow=this.content.offsetHeight,o&&this.hooks.trigger(this.hooks.eventTypes.move,t),this.hooks.trigger(this.hooks.eventTypes.end,t))},t.prototype.doStop=function(){var e=this.pending;if(this.setForceStopped(!1),this.setCallStop(!1),e){this.setPending(!1),Wi(this.timer);var t=this.translater.getComputedPosition(),n=t.x,r=t.y;this.transitionTime(),this.translate({x:n,y:r}),this.setForceStopped(!0),this.setCallStop(!0),this.hooks.trigger(this.hooks.eventTypes.forceStop,{x:n,y:r})}return e},t.prototype.stop=function(){this.doStop()&&this.hooks.trigger(this.hooks.eventTypes.callStop)},t}(nl),ol=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return li(t,e),t.prototype.move=function(e,t,n,r){if(!n)return this.translate(t),3===this.options.probeType&&this.hooks.trigger(this.hooks.eventTypes.move,t),void this.hooks.trigger(this.hooks.eventTypes.end,t);this.animate(e,t,n,r)},t.prototype.animate=function(e,t,n,r){var o=this,a=vi(),i=a+n,l=3===this.options.probeType,s=function(){var A=vi();if(A>=i)return o.translate(t),l&&o.hooks.trigger(o.hooks.eventTypes.move,t),void o.hooks.trigger(o.hooks.eventTypes.end,t);var c=r(A=(A-a)/n),u={};Object.keys(t).forEach(function(n){var r=e[n];u[n]=(t[n]-r)*c+r}),o.translate(u),l&&o.hooks.trigger(o.hooks.eventTypes.move,u),o.pending&&(o.timer=Ki(s)),o.pending||(o.callStopWhenPending?o.callStopWhenPending=!1:o.hooks.trigger(o.hooks.eventTypes.end,t))};this.setPending(!0),this.callStopWhenPending&&this.setCallStop(!1),Wi(this.timer),s()},t.prototype.doStop=function(){var e=this.pending;if(this.setForceStopped(!1),this.setCallStop(!1),e){this.setPending(!1),Wi(this.timer);var t=this.translater.getComputedPosition();this.setForceStopped(!0),this.setCallStop(!0),this.hooks.trigger(this.hooks.eventTypes.forceStop,t)}return e},t.prototype.stop=function(){this.doStop()&&this.hooks.trigger(this.hooks.eventTypes.callStop)},t}(nl);var al,il,ll,sl,Al=function(){function e(e,t,n){this.wrapper=e,this.options=n,this.hooks=new qi(["beforeComputeBoundary","computeBoundary","momentum","end","ignoreHasScroll"]),this.refresh(t)}return e.prototype.start=function(){this.dist=0,this.setMovingDirection(0),this.setDirection(0)},e.prototype.move=function(e){return this.setMovingDirection(e=this.hasScroll?e:0),this.performDampingAlgorithm(e,this.options.outOfBoundaryDampingFactor)},e.prototype.setMovingDirection=function(e){this.movingDirection=e>0?-1:0>e?1:0},e.prototype.setDirection=function(e){this.direction=e>0?-1:0>e?1:0},e.prototype.performDampingAlgorithm=function(e,t){var n=this.currentPos+e;return(n>this.minScrollPos||this.maxScrollPos>n)&&(n=n>this.minScrollPos&&this.options.bounces[0]||this.maxScrollPos>n&&this.options.bounces[1]?this.currentPos+e*t:n>this.minScrollPos?this.minScrollPos:this.maxScrollPos),n},e.prototype.end=function(e){var t={duration:0};this.options.momentum&&this.options.momentumLimitTime>e&&Math.abs(this.currentPos-this.startPos)>this.options.momentumLimitDistance?t=this.hasScroll?this.momentum(this.currentPos,this.startPos,e,this.maxScrollPos,this.minScrollPos,-1===this.direction&&this.options.bounces[0]||1===this.direction&&this.options.bounces[1]?this.wrapperSize:0,this.options):{destination:this.currentPos,duration:0}:this.hooks.trigger(this.hooks.eventTypes.end,t);return t},e.prototype.momentum=function(e,t,n,r,o,a,i){void 0===i&&(i=this.options);var l=e-t,s=Math.abs(l)/n,A=i.deceleration,c=i.swipeBounceTime,u={destination:e+s*s/A*(0>l?-1:1),duration:Math.min(i.swipeTime,2*s/A),rate:15};return this.hooks.trigger(this.hooks.eventTypes.momentum,u,l),r>u.destination?(u.destination=a?Math.max(r-a/4,r-a/u.rate*s):r,u.duration=c):u.destination>o&&(u.destination=a?Math.min(o+a/4,o+a/u.rate*s):o,u.duration=c),u.destination=Math.round(u.destination),u},e.prototype.updateDirection=function(){this.setDirection(this.currentPos-this.absStartPos)},e.prototype.refresh=function(e){var t=this.options.rect,n=t.size,r=t.position,o="static"===window.getComputedStyle(this.wrapper,null).position,a=Ti(this.wrapper);this.wrapperSize=this.wrapper["width"===n?"clientWidth":"clientHeight"],this.setContent(e);var i=Ti(this.content);this.contentSize=i[n],this.relativeOffset=i[r],o&&(this.relativeOffset-=a[r]),this.computeBoundary(),this.setDirection(0)},e.prototype.setContent=function(e){e!==this.content&&(this.content=e,this.resetState())},e.prototype.resetState=function(){this.currentPos=0,this.startPos=0,this.dist=0,this.setDirection(0),this.setMovingDirection(0),this.resetStartPos()},e.prototype.computeBoundary=function(){this.hooks.trigger(this.hooks.eventTypes.beforeComputeBoundary);var e={minScrollPos:0,maxScrollPos:this.wrapperSize-this.contentSize};0>e.maxScrollPos&&(e.maxScrollPos-=this.relativeOffset,0===this.options.specifiedIndexAsContent&&(e.minScrollPos=-this.relativeOffset)),this.hooks.trigger(this.hooks.eventTypes.computeBoundary,e),this.minScrollPos=e.minScrollPos,this.maxScrollPos=e.maxScrollPos,this.hasScroll=this.options.scrollable&&this.minScrollPos>this.maxScrollPos,!this.hasScroll&&this.maxScrollPos>this.minScrollPos&&(this.maxScrollPos=this.minScrollPos,this.contentSize=this.wrapperSize)},e.prototype.updatePosition=function(e){this.currentPos=e},e.prototype.getCurrentPos=function(){return this.currentPos},e.prototype.checkInBoundary=function(){var e=this.adjustPosition(this.currentPos);return{position:e,inBoundary:e===this.getCurrentPos()}},e.prototype.adjustPosition=function(e){return this.hasScroll||this.hooks.trigger(this.hooks.eventTypes.ignoreHasScroll)?e>this.minScrollPos?e=this.minScrollPos:this.maxScrollPos>e&&(e=this.maxScrollPos):e=this.minScrollPos,e},e.prototype.updateStartPos=function(){this.startPos=this.currentPos},e.prototype.updateAbsStartPos=function(){this.absStartPos=this.currentPos},e.prototype.resetStartPos=function(){this.updateStartPos(),this.updateAbsStartPos()},e.prototype.getAbsDist=function(e){return this.dist+=e,Math.abs(this.dist)},e.prototype.destroy=function(){this.hooks.destroy()},e}(),cl=((al={}).yes=function(e){return!0},al.no=function(e){return Si(e),!1},al),ul=((il={}).horizontal=((ll={}).yes="horizontal",ll.no="vertical",ll),il.vertical=((sl={}).yes="vertical",sl.no="horizontal",sl),il),dl=function(){function e(e,t,n){this.directionLockThreshold=e,this.freeScroll=t,this.eventPassthrough=n,this.reset()}return e.prototype.reset=function(){this.directionLocked=""},e.prototype.checkMovingDirection=function(e,t,n){return this.computeDirectionLock(e,t),this.handleEventPassthrough(n)},e.prototype.adjustDelta=function(e,t){return"horizontal"===this.directionLocked?t=0:"vertical"===this.directionLocked&&(e=0),{deltaX:e,deltaY:t}},e.prototype.computeDirectionLock=function(e,t){""!==this.directionLocked||this.freeScroll||(this.directionLocked=e>t+this.directionLockThreshold?"horizontal":e+this.directionLockThreshold>t?"none":"vertical")},e.prototype.handleEventPassthrough=function(e){var t=ul[this.directionLocked];if(t){if(this.eventPassthrough===t.yes)return cl.yes(e);if(this.eventPassthrough===t.no)return cl.no(e)}return!1},e}(),pl=function(){function e(e,t,n,r,o){this.hooks=new qi(["start","beforeMove","scrollStart","scroll","beforeEnd","end","scrollEnd","contentNotMoved","detectMovingDirection","coordinateTransformation"]),this.scrollBehaviorX=e,this.scrollBehaviorY=t,this.actionsHandler=n,this.animater=r,this.options=o,this.directionLockAction=new dl(o.directionLockThreshold,o.freeScroll,o.eventPassthrough),this.enabled=!0,this.bindActionsHandler()}return e.prototype.bindActionsHandler=function(){var e=this;this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.start,function(t){return!e.enabled||e.handleStart(t)}),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.move,function(t){var n=t.e;if(!e.enabled)return!0;var r=function(e,t,n){return 2===n?[t,-e]:3===n?[-e,-t]:4===n?[-t,e]:[e,t]}(t.deltaX,t.deltaY,e.options.quadrant),o={deltaX:r[0],deltaY:r[1]};return e.hooks.trigger(e.hooks.eventTypes.coordinateTransformation,o),e.handleMove(o.deltaX,o.deltaY,n)}),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.end,function(t){return!e.enabled||e.handleEnd(t)}),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.click,function(t){e.enabled&&!t._constructed&&e.handleClick(t)})},e.prototype.handleStart=function(e){var t=vi();this.fingerMoved=!1,this.contentMoved=!1,this.startTime=t,this.directionLockAction.reset(),this.scrollBehaviorX.start(),this.scrollBehaviorY.start(),this.animater.doStop(),this.scrollBehaviorX.resetStartPos(),this.scrollBehaviorY.resetStartPos(),this.hooks.trigger(this.hooks.eventTypes.start,e)},e.prototype.handleMove=function(e,t,n){if(!this.hooks.trigger(this.hooks.eventTypes.beforeMove,n)){var r=this.scrollBehaviorX.getAbsDist(e),o=this.scrollBehaviorY.getAbsDist(t),a=vi();if(this.checkMomentum(r,o,a))return!0;if(this.directionLockAction.checkMovingDirection(r,o,n))return this.actionsHandler.setInitiated(),!0;var i=this.directionLockAction.adjustDelta(e,t),l=this.scrollBehaviorX.getCurrentPos(),s=this.scrollBehaviorX.move(i.deltaX),A=this.scrollBehaviorY.getCurrentPos(),c=this.scrollBehaviorY.move(i.deltaY);if(!this.hooks.trigger(this.hooks.eventTypes.detectMovingDirection)){this.fingerMoved||(this.fingerMoved=!0);var u=s!==l||c!==A;this.contentMoved||u||this.hooks.trigger(this.hooks.eventTypes.contentNotMoved),!this.contentMoved&&u&&(this.contentMoved=!0,this.hooks.trigger(this.hooks.eventTypes.scrollStart)),this.contentMoved&&u&&(this.animater.translate({x:s,y:c}),this.dispatchScroll(a))}}},e.prototype.dispatchScroll=function(e){e-this.startTime>this.options.momentumLimitTime&&(this.startTime=e,this.scrollBehaviorX.updateStartPos(),this.scrollBehaviorY.updateStartPos(),1===this.options.probeType&&this.hooks.trigger(this.hooks.eventTypes.scroll,this.getCurrentPos())),this.options.probeType>1&&this.hooks.trigger(this.hooks.eventTypes.scroll,this.getCurrentPos())},e.prototype.checkMomentum=function(e,t,n){return n-this.endTime>this.options.momentumLimitTime&&this.options.momentumLimitDistance>t&&this.options.momentumLimitDistance>e},e.prototype.handleEnd=function(e){if(!this.hooks.trigger(this.hooks.eventTypes.beforeEnd,e)){var t=this.getCurrentPos();if(this.scrollBehaviorX.updateDirection(),this.scrollBehaviorY.updateDirection(),this.hooks.trigger(this.hooks.eventTypes.end,e,t))return!0;t=this.ensureIntegerPos(t),this.animater.translate(t),this.endTime=vi(),this.hooks.trigger(this.hooks.eventTypes.scrollEnd,t,this.endTime-this.startTime)}},e.prototype.ensureIntegerPos=function(e){this.ensuringInteger=!0;var t=e.x,n=e.y,r=this.scrollBehaviorX,o=r.minScrollPos,a=r.maxScrollPos,i=this.scrollBehaviorY,l=i.minScrollPos,s=i.maxScrollPos;return t=t>0?Math.ceil(t):Math.floor(t),n=n>0?Math.ceil(n):Math.floor(n),{x:t=wi(t,a,o),y:n=wi(n,s,l)}},e.prototype.handleClick=function(e){Oi(e.target,this.options.preventDefaultException)||(Si(e),e.stopPropagation())},e.prototype.getCurrentPos=function(){return{x:this.scrollBehaviorX.getCurrentPos(),y:this.scrollBehaviorY.getCurrentPos()}},e.prototype.refresh=function(){this.endTime=0},e.prototype.destroy=function(){this.hooks.destroy()},e}();function fl(e,t,n,r){var o=["momentum","momentumLimitTime","momentumLimitDistance","deceleration","swipeBounceTime","swipeTime","outOfBoundaryDampingFactor","specifiedIndexAsContent"].reduce(function(t,n){return t[n]=e[n],t},{});return o.scrollable=!!e[t],o.bounces=n,o.rect=r,o}function gl(e,t,n){n.forEach(function(n){var r,o;"string"==typeof n?r=o=n:(r=n.source,o=n.target),e.on(r,function(){for(var e=[],n=0;arguments.length>n;n++)e[n]=arguments[n];return t.trigger.apply(t,Ai([o],e))})})}var hl=function(){function e(e,t,n){this.wrapper=e,this.content=t,this.resizeTimeout=0,this.hooks=new qi(["beforeStart","beforeMove","beforeScrollStart","scrollStart","scroll","beforeEnd","scrollEnd","resize","touchEnd","end","flick","scrollCancel","momentum","scrollTo","minDistanceScroll","scrollToElement","beforeRefresh"]),this.options=n;var r,o=this.options.bounce,a=o.top,i=o.bottom;this.scrollBehaviorX=new Al(e,t,fl(n,"scrollX",[o.left,o.right],{size:"width",position:"left"})),this.scrollBehaviorY=new Al(e,t,fl(n,"scrollY",[a,i],{size:"height",position:"top"})),this.translater=new tl(this.content),this.animater=function(e,t,n){var r=n.useTransition,o={};return Object.defineProperty(o,"probeType",{enumerable:!0,configurable:!1,get:function(){return n.probeType}}),r?new rl(e,t,o):new ol(e,t,o)}(this.content,this.translater,this.options),this.actionsHandler=new $i(this.options.bindToTarget?this.content:e,(r=this.options,["click","bindToWrapper","disableMouse","disableTouch","preventDefault","stopPropagation","tagException","preventDefaultException","autoEndDistance"].reduce(function(e,t){return e[t]=r[t],e},{}))),this.actions=new pl(this.scrollBehaviorX,this.scrollBehaviorY,this.actionsHandler,this.animater,this.options);var l=this.resize.bind(this);this.resizeRegister=new Ji(window,[{name:"orientationchange",handler:l},{name:"resize",handler:l}]),this.registerTransitionEnd(),this.init()}return e.prototype.init=function(){var e=this;this.bindTranslater(),this.bindAnimater(),this.bindActions(),this.hooks.on(this.hooks.eventTypes.scrollEnd,function(){e.togglePointerEvents(!0)})},e.prototype.registerTransitionEnd=function(){this.transitionEndRegister=new Ji(this.content,[{name:Mi.transitionEnd,handler:this.transitionEnd.bind(this)}])},e.prototype.bindTranslater=function(){var e=this,t=this.translater.hooks;t.on(t.eventTypes.beforeTranslate,function(t){e.options.translateZ&&t.push(e.options.translateZ)}),t.on(t.eventTypes.translate,function(t){var n=e.getCurrentPos();e.updatePositions(t),!0!==e.actions.ensuringInteger?t.x===n.x&&t.y===n.y||e.togglePointerEvents(!1):e.actions.ensuringInteger=!1})},e.prototype.bindAnimater=function(){var e=this;this.animater.hooks.on(this.animater.hooks.eventTypes.end,function(t){e.resetPosition(e.options.bounceTime)||(e.animater.setPending(!1),e.hooks.trigger(e.hooks.eventTypes.scrollEnd,t))}),gl(this.animater.hooks,this.hooks,[{source:this.animater.hooks.eventTypes.move,target:this.hooks.eventTypes.scroll},{source:this.animater.hooks.eventTypes.forceStop,target:this.hooks.eventTypes.scrollEnd}])},e.prototype.bindActions=function(){var e=this,t=this.actions;gl(t.hooks,this.hooks,[{source:t.hooks.eventTypes.start,target:this.hooks.eventTypes.beforeStart},{source:t.hooks.eventTypes.start,target:this.hooks.eventTypes.beforeScrollStart},{source:t.hooks.eventTypes.beforeMove,target:this.hooks.eventTypes.beforeMove},{source:t.hooks.eventTypes.scrollStart,target:this.hooks.eventTypes.scrollStart},{source:t.hooks.eventTypes.scroll,target:this.hooks.eventTypes.scroll},{source:t.hooks.eventTypes.beforeEnd,target:this.hooks.eventTypes.beforeEnd}]),t.hooks.on(t.hooks.eventTypes.end,function(n,r){return e.hooks.trigger(e.hooks.eventTypes.touchEnd,r),!!e.hooks.trigger(e.hooks.eventTypes.end,r)||(!(t.fingerMoved||(e.hooks.trigger(e.hooks.eventTypes.scrollCancel),!e.checkClick(n)))||(e.resetPosition(e.options.bounceTime,Vi.bounce)?(e.animater.setForceStopped(!1),!0):void 0))}),t.hooks.on(t.hooks.eventTypes.scrollEnd,function(n,r){if(e.checkFlick(r,Math.abs(n.x-e.scrollBehaviorX.startPos),Math.abs(n.y-e.scrollBehaviorY.startPos)))return e.animater.setForceStopped(!1),void e.hooks.trigger(e.hooks.eventTypes.flick);e.momentum(n,r)?e.animater.setForceStopped(!1):(t.contentMoved&&e.hooks.trigger(e.hooks.eventTypes.scrollEnd,n),e.animater.forceStopped&&e.animater.setForceStopped(!1))})},e.prototype.checkFlick=function(e,t,n){if(this.hooks.events.flick.length>1&&this.options.flickLimitTime>e&&this.options.flickLimitDistance>t&&this.options.flickLimitDistance>n&&(n>1||t>1))return!0},e.prototype.momentum=function(e,t){var n={time:0,easing:Vi.swiper,newX:e.x,newY:e.y},r=this.scrollBehaviorX.end(t),o=this.scrollBehaviorY.end(t);if(n.newX=bi(r.destination)?n.newX:r.destination,n.newY=bi(o.destination)?n.newY:o.destination,n.time=Math.max(r.duration,o.duration),this.hooks.trigger(this.hooks.eventTypes.momentum,n,this),n.newX!==e.x||n.newY!==e.y)return(n.newX>this.scrollBehaviorX.minScrollPos||this.scrollBehaviorX.maxScrollPos>n.newX||n.newY>this.scrollBehaviorY.minScrollPos||this.scrollBehaviorY.maxScrollPos>n.newY)&&(n.easing=Vi.swipeBounce),this.scrollTo(n.newX,n.newY,n.time,n.easing),!0},e.prototype.checkClick=function(e){var t=this.animater.forceStopped;if(this.hooks.trigger(this.hooks.eventTypes.checkClick))return this.animater.setForceStopped(!1),!0;if(!t){var n=this.options.dblclick,r=!1;if(n&&this.lastClickTime){var o=n.delay,a=void 0===o?300:o;vi()-this.lastClickTime<a&&(r=!0,function(e){Ri(e,"dblclick")}(e))}return this.options.tap&&function(e,t){var n=document.createEvent("Event");n.initEvent(t,!0,!0),n.pageX=e.pageX,n.pageY=e.pageY,e.target.dispatchEvent(n)}(e,this.options.tap),this.options.click&&!Oi(e.target,this.options.preventDefaultException)&&Ri(e),this.lastClickTime=r?null:vi(),!0}return!1},e.prototype.resize=function(){var e=this;this.actions.enabled&&(gi&&(this.wrapper.scrollTop=0),clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(function(){e.hooks.trigger(e.hooks.eventTypes.resize)},this.options.resizePolling))},e.prototype.transitionEnd=function(e){e.target===this.content&&this.animater.pending&&(this.animater.transitionTime(),this.resetPosition(this.options.bounceTime,Vi.bounce)||(this.animater.setPending(!1),3!==this.options.probeType&&this.hooks.trigger(this.hooks.eventTypes.scrollEnd,this.getCurrentPos())))},e.prototype.togglePointerEvents=function(e){void 0===e&&(e=!0);for(var t=this.content.children.length?this.content.children:[this.content],n=e?"auto":"none",r=0;t.length>r;r++){var o=t[r];o.isBScrollContainer||(o.style.pointerEvents=n)}},e.prototype.refresh=function(e){var t=this.setContent(e);this.hooks.trigger(this.hooks.eventTypes.beforeRefresh),this.scrollBehaviorX.refresh(e),this.scrollBehaviorY.refresh(e),t&&(this.translater.setContent(e),this.animater.setContent(e),this.transitionEndRegister.destroy(),this.registerTransitionEnd(),this.options.bindToTarget&&this.actionsHandler.setContent(e)),this.actions.refresh(),this.wrapperOffset=Fi(this.wrapper)},e.prototype.setContent=function(e){var t=e!==this.content;return t&&(this.content=e),t},e.prototype.scrollBy=function(e,t,n,r){void 0===n&&(n=0);var o=this.getCurrentPos();this.scrollTo(e+=o.x,t+=o.y,n,r=r||Vi.bounce)},e.prototype.scrollTo=function(e,t,n,r,o){void 0===n&&(n=0),void 0===r&&(r=Vi.bounce),void 0===o&&(o={start:{},end:{}});var a=this.options.useTransition?r.style:r.fn,i=this.getCurrentPos(),l=si({x:i.x,y:i.y},o.start),s=si({x:e,y:t},o.end);(this.hooks.trigger(this.hooks.eventTypes.scrollTo,s),function(e,t){for(var n=0,r=Object.keys(e);r.length>n;n++){var o=r[n];if(e[o]!==t[o])return!1}return!0}(l,s))||(1>Math.abs(s.x-l.x)&&1>Math.abs(s.y-l.y)&&(n=0,this.hooks.trigger(this.hooks.eventTypes.minDistanceScroll)),this.animater.move(l,s,n,a))},e.prototype.scrollToElement=function(e,t,n,r,o){var a=Ei(e),i=Fi(a),l=function(e,t,n){return"number"==typeof e?e:e?Math.round(t/2-n/2):0};n=l(n,a.offsetWidth,this.wrapper.offsetWidth),r=l(r,a.offsetHeight,this.wrapper.offsetHeight);var s=function(e,t,n,r){return e=r.adjustPosition((e-=t)-n)};i.left=s(i.left,this.wrapperOffset.left,n,this.scrollBehaviorX),i.top=s(i.top,this.wrapperOffset.top,r,this.scrollBehaviorY),this.hooks.trigger(this.hooks.eventTypes.scrollToElement,a,i)||this.scrollTo(i.left,i.top,t,o)},e.prototype.resetPosition=function(e,t){void 0===e&&(e=0),void 0===t&&(t=Vi.bounce);var n=this.scrollBehaviorX.checkInBoundary(),r=n.position,o=n.inBoundary,a=this.scrollBehaviorY.checkInBoundary(),i=a.position;return(!o||!a.inBoundary)&&(hi&&this.reflow(),this.scrollTo(r,i,e,t),!0)},e.prototype.reflow=function(){this._reflow=this.content.offsetHeight},e.prototype.updatePositions=function(e){this.scrollBehaviorX.updatePosition(e.x),this.scrollBehaviorY.updatePosition(e.y)},e.prototype.getCurrentPos=function(){return this.actions.getCurrentPos()},e.prototype.enable=function(){this.actions.enabled=!0},e.prototype.disable=function(){Wi(this.animater.timer),this.actions.enabled=!1},e.prototype.destroy=function(){var e=this;["resizeRegister","transitionEndRegister","actionsHandler","actions","hooks","animater","translater","scrollBehaviorX","scrollBehaviorY"].forEach(function(t){return e[t].destroy()})},e}(),ml=function(e){function t(t,n){var r=e.call(this,["refresh","contentChanged","enable","disable","beforeScrollStart","scrollStart","scroll","scrollEnd","scrollCancel","touchEnd","flick","destroy"])||this,o=Ei(t);return o?(r.plugins={},r.options=(new Zi).merge(n).process(),r.setContent(o).valid?(r.hooks=new qi(["refresh","enable","disable","destroy","beforeInitialScrollTo","contentChanged"]),r.init(o),r):r):(ui("Can not resolve the wrapper DOM."),r)}return li(t,e),t.use=function(e){var n=e.pluginName;return t.plugins.some(function(t){return e===t.ctor})?t:bi(n)?(ui("Plugin Class must specify plugin's name in static property by 'pluginName' field."),t):(t.pluginsMap[n]=!0,t.plugins.push({name:n,applyOrder:e.applyOrder,ctor:e}),t)},t.prototype.setContent=function(e){var t=!1,n=!0,r=e.children[this.options.specifiedIndexAsContent];return r?(t=this.content!==r)&&(this.content=r):(ui("The wrapper need at least one child element to be content element to scroll."),n=!1),{valid:n,contentChanged:t}},t.prototype.init=function(e){var t=this;this.wrapper=e,e.isBScrollContainer=!0,this.scroller=new hl(e,this.content,this.options),this.scroller.hooks.on(this.scroller.hooks.eventTypes.resize,function(){t.refresh()}),this.eventBubbling(),this.handleAutoBlur(),this.enable(),this.proxy(ci),this.applyPlugins(),this.refreshWithoutReset(this.content);var n=this.options,r={x:n.startX,y:n.startY};this.hooks.trigger(this.hooks.eventTypes.beforeInitialScrollTo,r)||this.scroller.scrollTo(r.x,r.y)},t.prototype.applyPlugins=function(){var e=this,n=this.options;t.plugins.sort(function(e,t){var n,r=((n={}).pre=-1,n.post=1,n);return(e.applyOrder?r[e.applyOrder]:0)-(t.applyOrder?r[t.applyOrder]:0)}).forEach(function(t){var r=t.ctor;n[t.name]&&"function"==typeof r&&(e.plugins[t.name]=new r(e))})},t.prototype.handleAutoBlur=function(){this.options.autoBlur&&this.on(this.eventTypes.beforeScrollStart,function(){var e=document.activeElement;!e||"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName||e.blur()})},t.prototype.eventBubbling=function(){gl(this.scroller.hooks,this,[this.eventTypes.beforeScrollStart,this.eventTypes.scrollStart,this.eventTypes.scroll,this.eventTypes.scrollEnd,this.eventTypes.scrollCancel,this.eventTypes.touchEnd,this.eventTypes.flick])},t.prototype.refreshWithoutReset=function(e){this.scroller.refresh(e),this.hooks.trigger(this.hooks.eventTypes.refresh,e),this.trigger(this.eventTypes.refresh,e)},t.prototype.proxy=function(e){var t=this;e.forEach(function(e){!function(e,t,n){Xi.get=function(){return function(e,t){for(var n=t.split("."),r=0;n.length-1>r;r++)if("object"!=typeof(e=e[n[r]])||!e)return;var o=n.pop();return"function"==typeof e[o]?function(){return e[o].apply(e,arguments)}:e[o]}(this,t)},Xi.set=function(e){!function(e,t,n){for(var r,o=t.split("."),a=0;o.length-1>a;a++)e[r=o[a]]||(e[r]={}),e=e[r];e[o.pop()]=n}(this,t,e)},Object.defineProperty(e,n,Xi)}(t,e.sourceKey,e.key)})},t.prototype.refresh=function(){var e=this.setContent(this.wrapper),t=e.contentChanged;if(e.valid){var n=this.content;this.refreshWithoutReset(n),t&&(this.hooks.trigger(this.hooks.eventTypes.contentChanged,n),this.trigger(this.eventTypes.contentChanged,n)),this.scroller.resetPosition()}},t.prototype.enable=function(){this.scroller.enable(),this.hooks.trigger(this.hooks.eventTypes.enable),this.trigger(this.eventTypes.enable)},t.prototype.disable=function(){this.scroller.disable(),this.hooks.trigger(this.hooks.eventTypes.disable),this.trigger(this.eventTypes.disable)},t.prototype.destroy=function(){this.hooks.trigger(this.hooks.eventTypes.destroy),this.trigger(this.eventTypes.destroy),this.scroller.destroy()},t.prototype.eventRegister=function(e){this.registerType(e)},t.plugins=[],t.pluginsMap={},t}(qi);function _l(e,t){return new ml(e,t)}_l.use=ml.use,_l.plugins=ml.plugins,_l.pluginsMap=ml.pluginsMap;var vl=_l,yl="undefined"!=typeof window,bl=yl&&navigator.userAgent.toLowerCase();
3
+ var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var s=Object.create((r&&r.prototype instanceof l?r:l).prototype);return Qt(s,"_invoke",function(n,r,o){var a,l,s,A=0,c=o||[],u=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,l=0,s=e,d.n=n,i}};function p(n,r){for(l=n,s=r,t=0;!u&&A&&!o&&c.length>t;t++){var o,a=c[t],p=d.p,f=a[2];n>3?(o=f===r)&&(s=a[(l=a[4])?5:(l=3,3)],a[4]=a[5]=e):p>=a[0]&&((o=2>n&&a[1]>p)?(l=0,d.v=r,d.n=a[1]):f>p&&(o=3>n||a[0]>r||r>f)&&(a[4]=n,a[5]=r,d.n=f,l=0))}if(o||n>1)return i;throw u=!0,r}return function(o,c,f){if(A>1)throw TypeError("Generator is already running");for(u&&1===c&&p(c,f),l=c,s=f;(t=2>l?e:s)||!u;){a||(l?3>l?(l>1&&(d.n=-1),p(l,s)):d.n=s:d.v=s);try{if(A=2,a){if(l||(o="next"),t=a[o]){if(!(t=t.call(a,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,2>l&&(l=0)}else 1===l&&(t=a.return)&&t.call(a),2>l&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);a=e}else if((t=(u=0>d.n)?s:n.call(r,d))!==i)break}catch(t){a=e,l=1,s=t}finally{A=1}}return{value:t,done:u}}}(n,o,a),!0),s}var i={};function l(){}function s(){}function A(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(Qt(t={},r,function(){return this}),t),u=A.prototype=l.prototype=Object.create(c);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,A):(e.__proto__=A,Qt(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e}return s.prototype=A,Qt(u,"constructor",A),Qt(A,"constructor",s),s.displayName="GeneratorFunction",Qt(A,o,"GeneratorFunction"),Qt(u),Qt(u,o,"Generator"),Qt(u,r,function(){return this}),Qt(u,"toString",function(){return"[object Generator]"}),(Ut=function(){return{w:a,m:d}})()}function Qt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Qt=function(e,t,n,r){function a(t,n){Qt(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},Qt(e,t,n,r)}function Nt(e,t){return Nt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Nt(e,t)}function Mt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,A=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){A=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(A)throw o}}return l}}(e,t)||Ht(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dt(e){return function(e){if(Array.isArray(e))return mt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ht(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tt(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function Ot(e){return Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ot(e)}function Ht(e,t){if(e){if("string"==typeof e)return mt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mt(e,t):void 0}}function Rt(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}Rt('@font-face{font-family:Bebas;src:url(/fonts/Bebas-Regular.ttf) format("truetype")}@font-face{font-family:PingFangSC-Semibold;src:url(/fonts/PingFang-Bold.ttf) format("truetype")}@font-face{font-family:PingFangSC-Regular;src:url(/fonts/PingFang-Regular.ttf) format("truetype")}@font-face{font-family:PingFang SC;src:url(/fonts/PingFang-Regular.ttf) format("truetype")}#root,body,html{height:100%}*{margin:0;padding:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}p{margin-bottom:0}::-webkit-scrollbar{width:2px;height:4px}::-webkit-scrollbar-thumb{background:rgba(144,147,153,.3)}::-webkit-scrollbar-thumb,::-webkit-scrollbar-track{border-radius:10px;-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,.2)}::-webkit-scrollbar-track{background:#fafafa}.ant-btn[disabled]{opacity:.4;color:#fff!important}');var Vt=window.location.protocol+"//"+window.location.host,jt="".concat(Vt,"/").concat("3d-garage-model"),zt="".concat(jt,"/img/direction.png"),Gt="".concat(jt,"/img/walk .png"),Kt="".concat(jt,"/img/scale.png"),Wt="".concat(jt,"/img/translation.png"),Yt=[{id:1,name:"封面配置",path:"/cover",key:"coverConfigurationResult"},{id:2,name:"提示配置",path:"/setTip",key:"agreementConfigurationResult",state:!1},{id:3,name:"鸟瞰配置",path:"/viewConfig",key:"aerialConfigurationResult",state:!1},{id:4,name:"详情配置",path:"/roamConfig",key:"roamConfigurationResult",state:!1},{id:5,name:"列表配置",path:"/listConfiguration",key:"parkingListConfigurationResult",state:!1},{id:6,name:"程序预览",path:"/programStructure",key:"programPackageResult",state:!1},{id:7,name:"测试上线",path:"/testLine",key:"testConfirmationResult",state:!1}],Xt=[{id:1,name:"未发现场景资源",tip:"请前往场景制作页面,进行制作",color:"#f15c5c",background:" rgba(241, 92, 92, 0.1)"},{id:2,name:"下载中",tip:"正在为您自动加载场景资源",but:"载入场景",color:"#397bff",background:"rgba(57, 123, 255, 0.1)"},{id:3,name:"已载入",tip:"场景编号:",but:"操作设置",but1:"编辑场景",color:"#23c16b",background:"rgba(35, 193, 107, 0.1)"},{id:4,name:"下载失败",tip:"场景编号:",but:"重新加载",color:"#f15c5c",background:" rgba(241, 92, 92, 0.1)"}],qt={sensitivity:"全局灵敏度",sensitivityVal:[{key:"low",name:"低"},{key:"medium",name:"中"},{key:"hight",name:"高"},{key:"custom",name:"自定义"}],Others:[{id:1,title:"飞行模式",arr:[{id:1,icon:"".concat(jt,"/img/rotate.png"),name:"旋转速度",key:"rotationSpeed",value:0},{id:2,icon:Wt,name:"平移速度",key:"translationSpeed",value:0},{id:3,icon:Kt,name:"缩放速度",key:"zoomSpeed",value:0}],radio:"拉近视角到某区域",radioArr:[{key:"doubleClick",name:"双击"}]},{id:2,title:"漫游模式",arr:[{id:1,icon:Gt,name:"行走速度",key:"walkingSpeed",value:0},{id:2,icon:zt,name:"转向速度",key:"steeringSpeed",value:0}],radio:"行走到某位置",radioArr:[{key:"doubleClick",name:"双击"}]}]},Jt=[{code:"blue",themeColorStart:"#4579FE",themeColorEnd:"#80B2FF"},{code:"brown",themeColorStart:"#9A7054",themeColorEnd:"#F6E1CC"},{code:"orange",themeColorStart:"#FD7B29",themeColorEnd:"#FFCCAB"},{code:"yellow",themeColorStart:"#C7FB1E",themeColorEnd:"#E3FF95"},{code:"green",themeColorStart:"#3CF182",themeColorEnd:"#8DFFBB"},{code:"cyan",themeColorStart:"#34DCC8",themeColorEnd:"#C2F7F1"},{code:"purple",themeColorStart:"#355BFF",themeColorEnd:"#B477FF"},{code:"red",themeColorStart:"#FF0B31",themeColorEnd:"#F9A4B7"}],Zt=[{key:"onTest",name:"预览"},{key:"online",name:"上线"}],$t=[{id:1,value:"768×1024",name:"768 × 1024"},{id:2,value:"1536×2048",name:"1536 × 2048"},{id:3,value:"2048×2732",name:"2048 × 2732"}],en={Setting:1,Activating:2,End:3},tn=(Ct(Ct(Ct({},1,"待配置"),2,"会签中"),3,"会签结束"),"leftNav_LeftNav__3jU4d"),nn="leftNav_box__2LHvQ",rn="leftNav_serial__2MNbP",on="leftNav_okIcon__2iSzI",an="leftNav_num_active__2zaWY",ln="leftNav_num_noActive__GAQaY",sn="leftNav_num__2OO5P",An="leftNav_title__OTEl5",cn="leftNav_title_active__1oQhT",un="leftNav_title_noActive__2ohl_",dn="leftNav_borderLeft__1hddl";Rt(".leftNav_LeftNav__3jU4d{position:relative;width:132px;height:100%;padding:24px 20px 24px 16px;background-color:#fff}.leftNav_LeftNav__3jU4d .leftNav_box__2LHvQ{box-sizing:border-box;width:96px;height:58px;margin-bottom:5px}.leftNav_LeftNav__3jU4d .leftNav_box__2LHvQ .leftNav_serial__2MNbP{display:flex;cursor:pointer}.leftNav_LeftNav__3jU4d .leftNav_box__2LHvQ .leftNav_serial__2MNbP .leftNav_okIcon__2iSzI{width:24px;height:24px;margin-right:16px}.leftNav_LeftNav__3jU4d .leftNav_box__2LHvQ .leftNav_serial__2MNbP .leftNav_num_active__2zaWY{box-sizing:border-box;color:#fff;background:#397bff;border:1px solid #397bff}.leftNav_LeftNav__3jU4d .leftNav_box__2LHvQ .leftNav_serial__2MNbP .leftNav_num_noActive__GAQaY{color:rgba(0,0,0,.25);border:1px solid rgba(0,0,0,.25)}.leftNav_LeftNav__3jU4d .leftNav_box__2LHvQ .leftNav_serial__2MNbP .leftNav_num__2OO5P{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:24px;height:24px;margin-right:16px;font-weight:400;font-size:13px;font-family:PingFang SC;font-style:normal;line-height:20px;border-radius:32px}.leftNav_LeftNav__3jU4d .leftNav_box__2LHvQ .leftNav_serial__2MNbP .leftNav_title__OTEl5{display:flex;align-items:center;font-size:14px;font-family:PingFang SC;font-style:normal;line-height:22px}.leftNav_LeftNav__3jU4d .leftNav_box__2LHvQ .leftNav_serial__2MNbP .leftNav_title_active__1oQhT{color:rgba(0,0,0,.85);font-weight:600}.leftNav_LeftNav__3jU4d .leftNav_box__2LHvQ .leftNav_serial__2MNbP .leftNav_title_noActive__2ohl_{color:#737b8b;font-weight:400}.leftNav_LeftNav__3jU4d .leftNav_box__2LHvQ .leftNav_borderLeft__1hddl{width:12px;height:24px;margin:5px 0;border-right:1px solid #f0f0f0}");var pn="".concat(jt,"/img/music_c.png"),fn="".concat(jt,"/img/music_o.png"),gn="".concat(jt,"/img/add.png"),hn="".concat(jt,"/img/errAdd.png"),mn="".concat(jt,"/img/cover/click3.png"),_n="".concat(jt,"/img/ok.png"),vn="".concat(jt,"/img/warningIcon.png"),yn="".concat(jt,"/img/set.png"),bn="".concat(jt,"/img/news.png"),wn="".concat(jt,"/img/updataCar.png"),xn="".concat(jt,"/img/whiteLoading.png"),Bn="".concat(jt,"/img/modelClose.png"),Cn="".concat(jt,"/img/clone.png"),En="".concat(jt,"/img/download.png"),kn="".concat(jt,"/img/device.png"),In="".concat(jt,"/img/bot.png"),Sn="".concat(jt,"/img/redDian.png"),Fn="".concat(jt,"/img/countDown.png"),Pn="".concat(jt,"/img/updata.png"),Ln="".concat(jt,"/img/isShow.png"),Un="".concat(jt,"/img/isHide.png"),Qn="".concat(jt,"/img/back.png"),Nn="".concat(jt,"/img/dangerIcon.png"),Mn="".concat(jt,"/img/ipx_bottom.png"),Dn="".concat(jt,"/img/ipx.png"),Tn="".concat(jt,"/img/ip.png"),On="".concat(jt,"/img/upload.png"),Hn="".concat(jt,"/img/cover/close.png"),Rn="".concat(jt,"/img/cover/hover_S.png"),Vn="".concat(jt,"/img/horizontal.png"),jn="".concat(jt,"/img/vertical.png"),zn="".concat(jt,"/img/leftIcon.png"),Gn="".concat(jt,"/img/rightIcon.png"),Kn="".concat(jt,"/img/right.png"),Wn="".concat(jt,"/img/upIcon.png"),Yn="".concat(jt,"/img/downIcon.png"),Xn="".concat(jt,"/seting/file.png"),qn="".concat(jt,"/seting/share.png"),Jn="".concat(jt,"/seting/ok.png"),Zn="".concat(jt,"/seting/upLoad.png"),$n="".concat(jt,"/3dian.png"),er="".concat(jt,"/seting/icon_shot.png"),tr="".concat(jt,"/seting/icon_del.png"),nr="".concat(jt,"/seting/icon_refresh_normal.png"),rr="".concat(jt,"/seting/icon_upload.png"),or="".concat(jt,"/seting/icon_location_normal.png"),ar="".concat(jt,"/seting/icon_location_active.png"),ir="".concat(jt,"/seting/icon_edit.png"),lr="".concat(jt,"/seting/img_example.png"),sr="".concat(jt,"/seting/icon_avator.png"),Ar="".concat(jt,"/seting/icon_resolved.png"),cr="".concat(jt,"/seting/icon_unresolved.png"),ur="".concat(jt,"/seting/icon_file.png"),dr="".concat(jt,"/seting/icon_info.png"),pr="".concat(jt,"/seting/"),fr="".concat(jt,"/seting/icon_download.png"),gr="".concat(jt,"/seting/icon_delete_card.png"),hr="".concat(jt,"/seting/small.png"),mr="".concat(jt,"/seting/addImg.png"),_r="".concat(jt,"/seting/slist.png"),vr="".concat(jt,"/scene/add.png"),yr="".concat(jt,"/scene/back.png"),br="".concat(jt,"/scene/back2.png"),wr="".concat(jt,"/scene/check1.png"),xr="".concat(jt,"/scene/check2.png"),Br="".concat(jt,"/scene/check3.png"),Cr="".concat(jt,"/scene/uploadClose.png"),Er="".concat(jt,"/scene/rightArrow.png"),kr="".concat(jt,"/scene/rightArrow2.png"),Ir="".concat(jt,"/scene/leftArrow.png"),Sr="".concat(jt,"/scene/circle.png"),Fr="".concat(jt,"/scene/warnIcon.png"),Pr="".concat(jt,"/scene/warningIcon.png"),Lr="".concat(jt,"/scene/close.png"),Ur="".concat(jt,"/scene/up.png"),Qr="".concat(jt,"/scene/down.png"),Nr="".concat(jt,"/scene/sc.png"),Mr="".concat(jt,"/scene/record.png"),Dr="".concat(jt,"/scene/profile.jpeg"),Tr="".concat(jt,"/scene/edit.png"),Or="".concat(jt,"/scene/map.png"),Hr="".concat(jt,"/scene/label.png"),Rr="".concat(jt,"/scene/door.png"),Vr="".concat(jt,"/scene/material.png"),jr="".concat(jt,"/scene/selected.png"),zr="".concat(jt,"/scene/sun.png"),Gr="".concat(jt,"/scene/select.png"),Kr="".concat(jt,"/scene/unSelect.png"),Wr="".concat(jt,"/image/share.png"),Yr=new d.EventEmitter;function Xr(e,t){if(!e||"string"!=typeof e||!t||"string"!=typeof t)return null;var n=RegExp("(^|&|#|/?)"+e+"=([^&]*)(&|$)","i"),r=t.match(n);return null!=r?decodeURIComponent(r[2]):null}var qr=function(e){var t=escape(e),n=document.cookie,r=n.indexOf(t+="=");if(-1!==r){var o=r+t.length,a=n.indexOf(";",o);-1===a&&(a=n.length);var i=n.substring(o,a);return unescape(i)}return""},Jr=function(e){try{e=JSON.parse(e)}catch(t){console.log("JSON.parse Error"),e=""}return e},Zr=function(e){try{e=JSON.stringify(e)}catch(t){console.log("JSON.stringify Error"),e=""}return e};function $r(e){var t=e.split(".");return{type:t.splice(t.length-1,1).join(""),name:t.join(".")}}var eo,to,no=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=0,r=$r(e),o=r.name,a=r.type,i=o.length,l=t.filter(function(e){var t=$r(e),n=t.name;return t.type===a&&(n===o||n.slice(0,o.length)===o)});return 0===l.length?e:(l.forEach(function(e){var t=$r(e).name,r=+t.slice(i,t.length).replace(/[\(\)]/g,"");isNaN(r)||(n=r+1>n?r+1:n)}),"".concat(o,"(").concat(n,").").concat(a))},ro=function(e){return 1>(e=+e)/1024?e+"b":1>e/1048576?(e/1024).toFixed(1)+"K":1>e/1073741824?(e/1024/1024).toFixed(1)+"M":(e/1024/1024/1024).toFixed(1)+"G"},oo=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r="";if(0!==n){var o=new Date;o.setTime(o.getTime()+1e3*n),r="; expires=".concat(o.toGMTString())}document.cookie="".concat(e,"=").concat(escape(t)).concat(r)},ao=function(e){var t=new Date;t.setTime(t.getTime()-1e4);var n=document.cookie.match(/[^ =;]+(?=\=)/g);if(n)for(var r=n.length;r--;)document.cookie=n[r]+"=;domain=".concat(e,'; expire=" + date.toGMTString() + "; path=/')},io=function(e){for(var t=e.split(" "),n={},r=0;t.length>r;r++)n[t[r].split("=")[0]]=unescape(t[r].split("=")[1]);return n},lo=function(e){var t=parseFloat(e);return isNaN(t)?(console.log("传递参数错误,请检査!"),0):t=Math.round(100*e)/100},so=(eo=n.connect(function(e){return{app:e.app}}),eo(to=function(e){function t(e){var n;return bt(this,t),(n=yt(this,t,[e])).getNavState=vt(Ut().m(function e(){var t;return Ut().w(function(e){for(;;)switch(e.n){case 0:return t=n.props.app.applicationId,e.n=1,n.props.dispatch({type:"app/queryGarageCreateProcessResult",payload:{applicationId:t}}).then(function(e){if(e){var t=e.coverConfigurationResult,r=e.aerialConfigurationResult,o=e.agreementConfigurationResult,a=e.parkingListConfigurationResult,i=e.programPackageResult,l=e.roamConfigurationResult,s=e.testConfirmationResult;Yt&&Yt.forEach(function(e){switch(e.key){case"coverConfigurationResult":e.state=t;break;case"agreementConfigurationResult":e.state=o;break;case"aerialConfigurationResult":e.state=r;break;case"parkingListConfigurationResult":e.state=a;break;case"programPackageResult":e.state=i;break;case"roamConfigurationResult":e.state=l;break;case"testConfirmationResult":e.state=s;break;default:e.state=!1}}),n.setState({navList:Yt})}});case 1:return e.a(2)}},e)})),n.state={navList:[]},n}return It(t,e),xt(t,[{key:"componentDidMount",value:function(){Yr.on("equipment",this.getNavState),Yr.on("setNavState",this.getNavState),this.getNavState()}},{key:"componentWillUnmount",value:function(){Yr.off("equipment",this.getNavState),Yr.off("setNavState",this.getNavState)}},{key:"render",value:function(){var e=this.props,t=e.setNavState,n=e.app,r=n.currentPath,o=this.state.navList;return fe.default.createElement("div",{className:ve.default(tn)},fe.default.createElement("div",null,o.map(function(e){return fe.default.createElement("div",{className:nn,key:e.id},fe.default.createElement("div",{className:rn,onClick:function(){return t(e)}},e.path===r?fe.default.createElement("div",{className:ve.default(sn,an)},e.id):e.state?fe.default.createElement("img",{src:_n,alt:"",className:on}):fe.default.createElement("div",{className:ve.default(sn,ln)},e.id),fe.default.createElement("div",{className:ve.default(An,e.path===r?cn:un)},e.name)),e.id===o.length?"":fe.default.createElement("div",{className:dn}))})),fe.default.createElement(qa,null))}}])}(r.Component))||to),Ao="",co="",uo=!1;function po(e){co?console.log("websocket已连接"):(Ao=e,console.log("我已经建立websocket连接了!!!!!!!!!!"),(co=new WebSocket(Ao)).onopen=fo,co.onmessage=ho,co.onerror=go,co.onclose=vo)}function fo(){_o({role:0,method:"setRole",param:1})}function go(){clearInterval(null),co.close(),mo()}function ho(e){e.data&&"pong"!==e.data&&window.dispatchEvent(new CustomEvent("getUEMessage",{detail:e}))}function mo(){uo||(uo=!0,setTimeout(function(){po(Ao),uo=!1},3e3))}function _o(e){console.log("发送数据sendWSPush:",e),null!==co&&(3===co.readyState?(co.close(),mo()):1===co.readyState?co.send(Zr(e)):0===co.readyState&&setTimeout(function(){_o(e)},3e3))}function vo(e){clearInterval(null),co=null,mo(),console.log("websocket已断开")}window.addEventListener("beforeunload",function(){co&&co.close()});var yo={sceneModel:"sceneModel_sceneModel__3s8Lt",titleBox:"sceneModel_titleBox__2KF87",title:"sceneModel_title__2vjUJ",state:"sceneModel_state__PyOgW",iconBox:"sceneModel_iconBox__1UhU1",percent:"sceneModel_percent__2dQgN",refreshData:"sceneModel_refreshData__1YMOj",turn:"sceneModel_turn__3r-AH",tipBox:"sceneModel_tipBox__3NRer",warningIcon:"sceneModel_warningIcon__3sA3a",tipTxt:"sceneModel_tipTxt__1dmXG",loadingBut:"sceneModel_loadingBut__37HWl",reLoadBut:"sceneModel_reLoadBut__224LD",verson:"sceneModel_verson__2_krR",editBut:"sceneModel_editBut__2u3Ow",will:"sceneModel_will__26fRv",uploadIcon:"sceneModel_uploadIcon__2MF6l"};Rt('.sceneModel_sceneModel__3s8Lt{position:relative;box-sizing:border-box;width:100%;height:103px;background-color:#fff;border-bottom:6px solid #eaebed}.sceneModel_sceneModel__3s8Lt .sceneModel_titleBox__2KF87{position:relative;display:flex;align-items:center;width:100%;height:44px;line-height:44px;border-bottom:1px solid #dde1e6}.sceneModel_sceneModel__3s8Lt .sceneModel_titleBox__2KF87 .sceneModel_title__2vjUJ:before{display:inline-block;width:3px;height:16px;margin-right:13px;vertical-align:sub;background:#397bff;border-radius:4px;content:""}.sceneModel_sceneModel__3s8Lt .sceneModel_titleBox__2KF87 .sceneModel_title__2vjUJ{margin-right:12px;color:#000f2c;font-weight:600;font-size:14px;font-family:PingFang SC;font-style:normal;line-height:20px}.sceneModel_sceneModel__3s8Lt .sceneModel_titleBox__2KF87 .sceneModel_state__PyOgW{display:flex;align-items:center;height:21px;padding:2px 6px;font-size:12px;border-radius:4px}.sceneModel_sceneModel__3s8Lt .sceneModel_titleBox__2KF87 .sceneModel_iconBox__1UhU1{position:absolute;right:16px;display:flex;align-items:center}.sceneModel_sceneModel__3s8Lt .sceneModel_titleBox__2KF87 img{width:16px;height:16px;margin-left:16px;cursor:pointer}.sceneModel_sceneModel__3s8Lt .sceneModel_titleBox__2KF87 .sceneModel_percent__2dQgN{margin-left:5px;font-style:normal}.sceneModel_sceneModel__3s8Lt .sceneModel_titleBox__2KF87 .sceneModel_refreshData__1YMOj{position:absolute;right:16px}.sceneModel_sceneModel__3s8Lt .sceneModel_titleBox__2KF87 .sceneModel_refreshData__1YMOj i{display:inline-block;color:#397bff;font-size:12px;font-style:normal;cursor:pointer}.sceneModel_sceneModel__3s8Lt .sceneModel_titleBox__2KF87 .sceneModel_refreshData__1YMOj img{width:20px;height:20px;margin-right:3px;animation:sceneModel_turn__3r-AH 1s linear infinite}.sceneModel_sceneModel__3s8Lt .sceneModel_tipBox__3NRer{position:relative;display:flex;align-items:center;width:100%;height:56px;padding-left:16px}.sceneModel_sceneModel__3s8Lt .sceneModel_tipBox__3NRer .sceneModel_warningIcon__3sA3a{width:14px;height:14px;margin-right:6px}.sceneModel_sceneModel__3s8Lt .sceneModel_tipBox__3NRer .sceneModel_tipTxt__1dmXG{margin-right:4px;color:rgba(0,15,44,.6);font-weight:400;font-size:12px;font-family:PingFang SC;font-style:normal;line-height:20px}.sceneModel_sceneModel__3s8Lt .sceneModel_tipBox__3NRer .sceneModel_tipTxt__1dmXG>i{color:#3465e3;font-weight:600;font-style:normal;cursor:pointer}.sceneModel_sceneModel__3s8Lt .sceneModel_tipBox__3NRer .sceneModel_loadingBut__37HWl{display:flex;flex-direction:row;align-items:center;width:84px;height:29px;margin-left:38px;padding:6px 8px;color:#fff;font-size:12px;background:#397bff;border-radius:4px;opacity:.6}.sceneModel_sceneModel__3s8Lt .sceneModel_tipBox__3NRer .sceneModel_loadingBut__37HWl img{width:10px;height:10px;margin-left:9px;animation:sceneModel_turn__3r-AH 1s linear infinite}.sceneModel_sceneModel__3s8Lt .sceneModel_tipBox__3NRer .sceneModel_reLoadBut__224LD{position:absolute;right:16px;display:flex;align-items:center;justify-content:center;width:64px;height:29px;color:#fff;font-size:12px;background:#397bff;border-radius:4px;cursor:pointer}.sceneModel_sceneModel__3s8Lt .sceneModel_tipBox__3NRer .sceneModel_verson__2_krR{width:125px;overflow:hidden;color:#000f2c;font-weight:600;font-size:12px;font-family:PingFang SC;font-style:normal;line-height:20px;white-space:nowrap;text-overflow:ellipsis}.sceneModel_sceneModel__3s8Lt .sceneModel_tipBox__3NRer .sceneModel_editBut__2u3Ow{position:absolute;right:16px;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:80px;height:29px;color:#121c2a;font-weight:400;font-size:12px;font-style:normal;line-height:17px;border:1px solid rgba(18,28,42,.6);border-radius:4px;cursor:pointer}.sceneModel_sceneModel__3s8Lt .sceneModel_tipBox__3NRer .sceneModel_editBut__2u3Ow img{width:12px;height:12px;margin-right:4px}.sceneModel_sceneModel__3s8Lt .sceneModel_will__26fRv{flex-wrap:nowrap}.sceneModel_sceneModel__3s8Lt .sceneModel_will__26fRv .ant-input{width:130px}.sceneModel_sceneModel__3s8Lt .sceneModel_uploadIcon__2MF6l{color:#f15c5c;font-size:12px;cursor:pointer}@keyframes sceneModel_turn__3r-AH{0%{-webkit-transform:rotate(0deg)}25%{-webkit-transform:rotate(90deg)}50%{-webkit-transform:rotate(180deg)}75%{-webkit-transform:rotate(270deg)}to{-webkit-transform:rotate(1turn)}}');var bo,wo,xo="operation_operationDrawer__3dstF",Bo="operation_footerBox__6YBqx",Co="operation_cancel__201vM",Eo="operation_title__uv8zP",ko="operation_atitle__3dOg_",Io="operation_sensitivity__2Xs0G",So="operation_sensitivityValBox__3sex1",Fo="operation_active__336er",Po="operation_listItem__1P2Gb",Lo="operation_itemBox__25ake",Uo="operation_sliderBox__13IWr",Qo="operation_sliderItem__18MYy",No="operation_text__3Sfv7",Mo="operation_sliderLine__1_oB1",Do="operation_radioBox__4P_r0";Rt('.operation_operationDrawer__3dstF .ant-drawer-close{padding:4px!important;background:#f0f1f2;border-radius:30px;color:#000f2c;top:10px!important;right:16px!important;font-weight:600!important;font-size:14px!important}.operation_operationDrawer__3dstF .ant-drawer-close:hover{opacity:.75!important}.operation_operationDrawer__3dstF .ant-drawer-title{font-weight:600;font-size:14px;color:#000f2c}.operation_operationDrawer__3dstF .operation_footerBox__6YBqx{display:flex;align-items:center;justify-content:flex-end}.operation_operationDrawer__3dstF .operation_footerBox__6YBqx .ant-drawer-body{padding:25px 16px!important}.operation_operationDrawer__3dstF .operation_footerBox__6YBqx .ant-btn-primary:hover{color:#fff!important;opacity:.85}.operation_operationDrawer__3dstF .operation_footerBox__6YBqx .ant-btn-primary{background:#3465e3!important;border-color:#3465e3!important}.operation_operationDrawer__3dstF .operation_footerBox__6YBqx .ant-btn:hover{color:#096dd9;border-color:#096dd9}.operation_operationDrawer__3dstF .operation_footerBox__6YBqx .operation_cancel__201vM{margin-right:12px}.operation_operationDrawer__3dstF .operation_title__uv8zP{font-family:PingFang SC;font-style:normal;font-weight:400;font-size:14px;line-height:20px;color:#121c2b}.operation_operationDrawer__3dstF .operation_atitle__3dOg_:before{display:inline-block;content:"";width:3px;height:16px;background:#397bff;border-radius:4px;vertical-align:sub;margin-right:8px}.operation_operationDrawer__3dstF .operation_sensitivity__2Xs0G{display:flex}.operation_operationDrawer__3dstF .operation_sensitivity__2Xs0G .operation_title__uv8zP{margin-right:4px}.operation_operationDrawer__3dstF .operation_sensitivity__2Xs0G .operation_sensitivityValBox__3sex1 span{margin-left:8px;border:1px solid #d9d9d9;box-sizing:border-box;border-radius:4px;padding:5px 8px;font-size:14px;line-height:20px;color:#121c2b;cursor:pointer}.operation_operationDrawer__3dstF .operation_sensitivity__2Xs0G .operation_sensitivityValBox__3sex1 span:hover{background:rgba(57,123,255,.75);color:#fff;border-color:rgba(57,123,255,.75)}.operation_operationDrawer__3dstF .operation_sensitivity__2Xs0G .operation_sensitivityValBox__3sex1 span.operation_active__336er{background:#397bff;color:#fff;border-color:#397bff}.operation_operationDrawer__3dstF .operation_listItem__1P2Gb .operation_title__uv8zP{margin:16px 0}.operation_operationDrawer__3dstF .operation_itemBox__25ake{width:100%;background:#f4f4f4;border-radius:8px;padding:5px 8px 24px 5px;box-sizing:border-box}.operation_operationDrawer__3dstF .operation_itemBox__25ake .operation_sliderBox__13IWr .operation_sliderItem__18MYy{width:calc(100% - 16px);height:48px;box-sizing:border-box;padding:16px 12px;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;background:hsla(0,0%,100%,.55);backdrop-filter:blur(18px);border-radius:4px;margin-bottom:16px}.operation_operationDrawer__3dstF .operation_itemBox__25ake .operation_sliderBox__13IWr .operation_sliderItem__18MYy img{margin-right:4px}.operation_operationDrawer__3dstF .operation_itemBox__25ake .operation_sliderBox__13IWr .operation_sliderItem__18MYy span.operation_text__3Sfv7{font-size:14px;line-height:16px;color:#262a35;margin-right:12px}.operation_operationDrawer__3dstF .operation_itemBox__25ake .operation_sliderBox__13IWr .operation_sliderItem__18MYy .operation_sliderLine__1_oB1{flex-grow:1;margin-right:8px}.operation_operationDrawer__3dstF .operation_itemBox__25ake .operation_radioBox__4P_r0{display:flex;flex-direction:column;padding:4px 0 0 15px}.operation_operationDrawer__3dstF .operation_itemBox__25ake .operation_radioBox__4P_r0>span{margin-bottom:16px}.operation_operationDrawer__3dstF .operation_sliderLine__1_oB1 .ant-slider-track{background-color:#262a35!important}.operation_operationDrawer__3dstF .operation_sliderLine__1_oB1 .ant-slider-handle{background:#fff!important;box-shadow:0 3px 6px rgba(0,0,0,.25)!important;border:2px solid #fff!important}.operation_operationDrawer__3dstF .operation_sliderLine__1_oB1 .ant-slider-rail{background-color:rgba(66,67,97,.3)!important}');var To=be.default.confirm,Oo=(bo=n.connect(function(e){return{app:e.app,cover:e.cover}}),bo(wo=function(e){function t(e){var n;return bt(this,t),(n=yt(this,t,[e])).onCloseOperation=function(){n.props.dispatch({type:"cover/updateState",payload:{operationVisible:!1}})},n.onChangeRadio=function(e,t){n.setState(1===t?{closerViewingAngle:e.target.value}:{roamWalkType:e.target.value})},n.onChangeSlider=function(e,t,r){n.setState(Ct(Ct({},r,t),"sensitivityType","custom"),function(){qt.Others[e-1].arr.forEach(function(e){e.key===r&&(e.value=t)})})},n.setSensitivityType=function(e){n.setState({sensitivityType:e},function(){var t=2;if("low"===e)t=2;else if("medium"===e)t=5;else{if("hight"!==e)return;t=8}n.setState({rotationSpeed:t,steeringSpeed:t,translationSpeed:t,walkingSpeed:t,zoomSpeed:t}),qt.Others.forEach(function(e){1===e.id?e.arr.forEach(function(e){("rotationSpeed"===e.key||"translationSpeed"===e.key||"zoomSpeed"===e.key)&&(e.value=t)}):2===e.id&&e.arr.forEach(function(e){("walkingSpeed"===e.key||"steeringSpeed"===e.key)&&(e.value=t)})})})},n.submint=function(){var e=n,t=n.state,r={applicationId:n.props.app.applicationId,roamWalkType:t.roamWalkType,sensitivityType:t.sensitivityType,rotationSpeed:t.rotationSpeed,translationSpeed:t.translationSpeed,zoomSpeed:t.zoomSpeed,walkingSpeed:t.walkingSpeed,steeringSpeed:t.steeringSpeed,closerViewingAngle:t.closerViewingAngle};To({title:"确定保存,即同步到云游戏",content:"",okText:"确定",cancelText:"取消",onOk:function(){e.props.dispatch({type:"cover/setSaveOperationParam",payload:Pt(Pt({},r),{},{packageType:"PROD"})})},onCancel:function(){e.props.dispatch({type:"cover/setSaveOperationParam",payload:Pt(Pt({},r),{},{packageType:"TEST"})})}})},n.state={radioValue:1,sensitivityType:"low",rotationSpeed:0,translationSpeed:0,zoomSpeed:0,walkingSpeed:0,steeringSpeed:0,closerViewingAngle:"doubleClick",roamWalkType:"doubleClick"},n}return It(t,e),xt(t,[{key:"componentDidMount",value:(n=vt(Ut().m(function e(){var t,n=this;return Ut().w(function(e){for(;;)switch(e.n){case 0:return t=this.props.app.applicationId,e.n=1,this.props.dispatch({type:"cover/getSelectOperationParam",payload:{applicationId:t}}).then(function(e){if(e&&e.value){var t=e.value,r=t.closerViewingAngle,o=t.roamWalkType,a=t.rotationSpeed,i=t.sensitivityType,l=t.steeringSpeed,s=t.translationSpeed,A=t.walkingSpeed,c=t.zoomSpeed,u=null===a?2:a,d=null===l?2:l,p=null===s?2:s,f=null===A?2:A,g=null===c?2:c;n.setState({closerViewingAngle:null===r?"doubleClick":r,roamWalkType:null===o?"doubleClick":o,rotationSpeed:u,sensitivityType:null===i?"low":i,steeringSpeed:d,translationSpeed:p,walkingSpeed:f,zoomSpeed:g}),qt.Others.forEach(function(e){1===e.id?e.arr.forEach(function(e){"rotationSpeed"===e.key?e.value=u:"translationSpeed"===e.key?e.value=p:"zoomSpeed"===e.key&&(e.value=g)}):2===e.id&&e.arr.forEach(function(e){"walkingSpeed"===e.key?e.value=f:"steeringSpeed"===e.key&&(e.value=d)})})}});case 1:return e.a(2)}},e,this)})),function(){return n.apply(this,arguments)})},{key:"render",value:function(){var e=this,t=this.state,n=t.closerViewingAngle,r=t.roamWalkType,o=t.sensitivityType;return fe.default.createElement(xe.default,{className:xo,width:310,title:"操作设置",placement:"right",visible:this.props.cover.operationVisible,maskClosable:!1,onClose:this.onCloseOperation,headerStyle:{height:"44px",display:"flex",alignItems:"center",padding:"12px 16px"},footerStyle:{height:"52px"},footer:fe.default.createElement("div",{className:Bo},fe.default.createElement(Ee.default,{onClick:this.onCloseOperation,className:Co},"取消"),fe.default.createElement(Ee.default,{type:"primary",onClick:this.submint},"保存"))},fe.default.createElement("div",{className:Io},fe.default.createElement("span",{className:Eo},qt.sensitivity),fe.default.createElement("div",{className:So},qt.sensitivityVal.map(function(t){return fe.default.createElement("span",{key:t.key,className:t.key===o?Fo:"",onClick:function(){return e.setSensitivityType(t.key)}},t.name)}))),qt.Others.map(function(t){return fe.default.createElement("div",{className:Po,key:t.id},fe.default.createElement("div",{className:ve.default(Eo,ko)},t.title),fe.default.createElement("div",{className:Lo},fe.default.createElement("div",{className:Uo},t.arr.map(function(n){return fe.default.createElement("div",{className:Qo,key:n.id},fe.default.createElement("img",{src:n.icon,alt:"",style:{width:2===t.id?"22px":"16px",height:2===t.id?"22px":"16px"}}),fe.default.createElement("span",{className:No},n.name),fe.default.createElement("div",{className:Mo},fe.default.createElement(Ce.default,{value:n.value,min:1,max:10,step:1,onChange:function(r){return e.onChangeSlider(t.id,r,"".concat(n.key))}})),fe.default.createElement("span",null,n.value))})),fe.default.createElement("div",{className:Do},fe.default.createElement("span",null,t.radio),fe.default.createElement(Be.default.Group,{onChange:function(n){return e.onChangeRadio(n,t.id)},value:1===t.id?n:r},t.radioArr.map(function(e){return fe.default.createElement(Be.default,{value:e.key,key:e.key},e.name)})))))}))}}]);var n}(r.Component))||wo),Ho="newsModel_newsModel__1plaq",Ro="newsModel_header__Ha6aQ",Vo="newsModel_content__t--Nd",jo="newsModel_itemBox__1ayQX",zo="newsModel_title__3PbfL",Go="newsModel_info__1Cy6r",Ko="newsModel_but__3FVMQ";Rt(".newsModel_newsModel__1plaq{position:absolute;left:12px;top:40px;width:282px;min-height:225px;background:#fff;border:1px solid rgba(113,125,153,.3);box-sizing:border-box;box-shadow:0 8px 24px rgba(20,20,20,.16);border-radius:8px;z-index:11}.newsModel_newsModel__1plaq .newsModel_header__Ha6aQ{height:44px;display:flex;align-items:center;justify-content:space-between;padding:8px 16px;box-sizing:border-box}.newsModel_newsModel__1plaq .newsModel_header__Ha6aQ span{font-family:PingFang SC;font-style:normal;font-weight:600;font-size:14px;line-height:20px;color:#000}.newsModel_newsModel__1plaq .newsModel_header__Ha6aQ img{width:24px;height:24px;cursor:pointer}.newsModel_newsModel__1plaq .newsModel_header__Ha6aQ img:hover{opacity:.8}.newsModel_newsModel__1plaq .newsModel_content__t--Nd .newsModel_itemBox__1ayQX{padding:16px;border-top:1px solid #dde1e6}.newsModel_newsModel__1plaq .newsModel_content__t--Nd .newsModel_title__3PbfL{display:flex;align-items:center}.newsModel_newsModel__1plaq .newsModel_content__t--Nd .newsModel_title__3PbfL img{width:14px;height:14px;margin-right:8px}.newsModel_newsModel__1plaq .newsModel_content__t--Nd .newsModel_title__3PbfL span{font-family:PingFang SC;font-style:normal;font-weight:600;font-size:14px;line-height:22px;color:rgba(0,0,0,.85)}.newsModel_newsModel__1plaq .newsModel_content__t--Nd .newsModel_info__1Cy6r{padding-left:22px;margin-top:4px;font-family:PingFang SC;font-style:normal;font-weight:400;font-size:14px;line-height:22px;color:#666f80}.newsModel_newsModel__1plaq .newsModel_but__3FVMQ{height:36px;margin-top:24px;display:flex;align-items:center;justify-content:flex-end}.newsModel_newsModel__1plaq .newsModel_but__3FVMQ .ant-btn-primary{height:36px!important}.newsModel_noData__21iOO{font-family:PingFang SC;font-style:normal;font-weight:400;font-size:14px;color:#666f80;opacity:.6}");var Wo=function(e){function t(e){var n;return bt(this,t),(n=yt(this,t,[e])).state={},n}return It(t,e),xt(t,[{key:"render",value:function(){var e=this.props,t=e.handleDownUse,n=e.newsClose,r=e.data;return fe.default.createElement("div",{className:Ho},fe.default.createElement("div",{className:Ro},fe.default.createElement("span",null,"发现新推送"),fe.default.createElement("img",{src:Bn,alt:"",onClick:function(){return n([null==r?void 0:r.taskId])}})),fe.default.createElement("div",{className:Vo},fe.default.createElement("div",{className:jo},fe.default.createElement("div",{className:zo},fe.default.createElement("img",{src:vn,alt:""}),fe.default.createElement("span",null,"发现新的场景数据推送,是否载入?")),fe.default.createElement("p",{className:Go},"载入新的场景后,会覆盖现有数据 场景模型"),fe.default.createElement("div",{className:Ko},fe.default.createElement(Ee.default,{type:"primary",onClick:function(){n([null==r?void 0:r.taskId]),t(r)}},"下载场景")))))}}])}(r.Component),Yo={iconBox:"index_iconBox__2jnXm",icon:"index_icon__2TuGU",useIcon:"index_useIcon__1OScG",delIcon:"index_delIcon__1EbbD",downUseIcon:"index_downUseIcon__3nrQ1"};Rt(".index_iconBox__2jnXm{display:flex;flex-wrap:wrap}.index_icon__2TuGU{display:flex;align-items:center;justify-content:center;box-sizing:border-box;height:22px;margin-right:12px;padding:8px;font-weight:600;font-size:12px;font-family:PingFang SC;font-style:normal;line-height:22px;border:1px solid;border-radius:4px;cursor:pointer}.index_useIcon__1OScG{color:#23c16b;background:rgba(35,193,107,.15);border-color:#23c16b}.index_delIcon__1EbbD{color:#ff4b23;background:rgba(255,75,35,.15);border-color:#ff4b23}.index_downUseIcon__3nrQ1{color:#397bff;background:rgba(57,123,255,.15);border-color:#397bff}");var Xo=n.connect(function(e){return{app:e.app,cover:e.cover}})(function(e){var t=e.taskList,n=e.handleUse,o=e.handleDel,a=e.handleDownUse;return r.useEffect(function(){console.log("弹窗数据",t)},[t]),fe.default.createElement("div",{className:Yo.fileModel},fe.default.createElement(ke.default,{pagination:!1,dataSource:t,columns:[{title:"序号",dataIndex:"taskId",key:"taskId",width:60,render:function(e,t,n){return fe.default.createElement("span",null,n+1)}},{title:"项目/应用",dataIndex:"projectName",key:"projectName",width:260,render:function(e,t){return fe.default.createElement("span",null,"".concat(null==t?void 0:t.projectName,"-").concat(null==t?void 0:t.version))}},{title:"状态",dataIndex:"downloadState",key:"downloadState",width:90,render:function(e,t,n){if(1===(null==t?void 0:t.userSelected))return fe.default.createElement("span",null,"正在使用");var r="未下载";switch(null==t?void 0:t.downloadState){case 1:r="下载中";break;case 2:r="解压中";break;case 3:r="已下载";break;case 4:r="未下载"}return fe.default.createElement("span",null,r)}},{title:"更新时间",dataIndex:"time",key:"time"},{title:"状态",dataIndex:"downloadState",key:"downloadState",render:function(e,t,r){var i=(null==t?void 0:t.downloadState)||0;if(0===(null==t?void 0:t.userSelected))return fe.default.createElement("div",{className:Yo.iconBox},3===i&&fe.default.createElement(fe.default.Fragment,null,fe.default.createElement("span",{className:ve.default(Yo.icon,Yo.useIcon),onClick:function(){return n(t)}},"使用"),fe.default.createElement("span",{className:ve.default(Yo.icon,Yo.delIcon),onClick:function(){return o(t)}},"删除")),(0===i||4===i)&&fe.default.createElement("span",{className:ve.default(Yo.icon,Yo.downUseIcon),onClick:function(){return a(t)}},"下载并使用"))}}],scroll:{y:"400px"},rowKey:"taskId"}))}),qo=[{BASEURL:"https://3d-editor.onewo.com",H5URL:"https://3d-ar.onewo.com",REDIRECTURL:"https://3d-login.onewo.com",SERVERS:"prod",PAGEURL:"https://3d.onewo.com",SHAREURL:"https://project-deployment.onewo.com"},{BASEURL:"https://3d-editor.onewo.com",H5URL:"https://3d-ar.onewo.com",REDIRECTURL:"https://3d-login.onewo.com",SERVERS:"prod",PAGEURL:"https://3d.onewo.com",SHAREURL:"https://project-deployment.onewo.com"},{BASEURL:"https://3d-editor.onewo.com",H5URL:"https://3d-ar.onewo.com",REDIRECTURL:"https://3d-login.onewo.com",SERVERS:"prod",PAGEURL:"https://3d.onewo.com",SHAREURL:"https://project-deployment.onewo.com"}];function Jo(){var e=window.location.origin;if(e)return e.includes("-test")||e.includes("ddd")?qo[2]:e.includes("-fat")?qo[1]:qo[2]}var Zo=qr("accesstoken"),$o=function(e){e=e||12;for(var t="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678",n="",r=0;e>r;r++)n+=t.charAt(Math.floor(48*Math.random()));return n}(12),ea=(new Date).getTime(),ta=""+Se.default(qr("username")||""),na=""+Fe.default($o+ta+ea+Zo),ra=Ie.default.create({baseURL:Jo().BASEURL});ra.interceptors.request.use(function(e){e.vbimRequestSource="3d-garage-model";var t=/^(?:https?:)?\/\//i.test(e.url||"")?e.url:"".concat(e.baseURL||"").concat(e.url||""),n=t.match(/^(?:https?:)?\/\/([^/:?#]+)/i);if(n&&/(^|\.)vanke\.com$/i.test(n[1])&&void 0!==console&&console.warn){var r=t.slice(n[0].length).split(/[?#]/)[0]||"/";console.warn("[VBIM_AXIOS_DOMAIN_TRACE]",{source:e.vbimRequestSource,method:e.method,host:n[1],path:r})}var o=qr("accesstoken"),a=qr("file_app_id");e.headers.accessToken=o,e.headers.appId=a,e.headers["Access-Control-Allow-Origin"]="*",e.headers.Authorization=Zo,e.headers.echostr=$o,e.headers.nonce=ta,e.headers.signature=na,e.headers.timestamp=ea,e.headers.projectId=Jr(sessionStorage.getItem("projectData"))?Jr(sessionStorage.getItem("projectData")).projectId:"",e.headers.applicationId=Jr(sessionStorage.getItem("applicationData"))?Jr(sessionStorage.getItem("applicationData")).applicationId:"";var i=window.location.href,l=Jr(sessionStorage.getItem("projectData")),s=Xr("projectId",i)?Xr("projectId",i):l&&l.projectId?l.projectId:"";return s&&(e.headers.projectId=s),"get"===e.method&&(window.ActiveXObject||"ActiveXObject"in window)&&(e.params=Pt({_t:Date.parse(new Date)/1e3},e.params)),e},function(e){return Promise.reject(e)});var oa="".concat(Jo().BASEURL,"/api");function aa(){return ia.apply(this,arguments)}function ia(){return ia=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(oa,"/vbim-parking-server/ueModel/startProgram"),method:"post",data:t}))},e)})),ia.apply(this,arguments)}function la(){return sa.apply(this,arguments)}function sa(){return sa=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(oa,"/vbim-parking-server/ueModel/saveOperationParam"),method:"post",data:t}))},e)})),sa.apply(this,arguments)}function Aa(){return ca.apply(this,arguments)}function ca(){return ca=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(oa,"/vbim-parking-server/ueModel/selectOperationParam"),method:"post",data:t}))},e)})),ca.apply(this,arguments)}function ua(){return da.apply(this,arguments)}function da(){return da=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(oa,"/vbim-parking-server/ueModel/queryUeParkingFileRecord"),method:"post",data:t}))},e)})),da.apply(this,arguments)}function pa(){return fa.apply(this,arguments)}function fa(){return fa=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(oa,"/vbim-parking-server/area/queryAreaFloorInfo"),method:"post",data:t}))},e)})),fa.apply(this,arguments)}function ga(){return ha.apply(this,arguments)}function ha(){return ha=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(oa,"/vbim-parking-server/clientVersion/selectDefaultVisualAngle"),method:"post",data:t}))},e)})),ha.apply(this,arguments)}function ma(){return _a.apply(this,arguments)}function _a(){return _a=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(oa,"/vbim-parking-server/clientVersion/saveDefaultVisualAngle"),method:"post",data:t}))},e)})),_a.apply(this,arguments)}function va(){return ya.apply(this,arguments)}function ya(){return ya=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(oa,"/vbim-parking-server/ueModel/saveParkingModifyInfo"),method:"post",data:t}))},e)})),ya.apply(this,arguments)}function ba(e){return wa.apply(this,arguments)}function wa(){return(wa=vt(Ut().m(function e(t){return Ut().w(function(e){for(;;)if(0===e.n)return e.a(2,ra({url:"".concat(oa,"/vbim-parking-server/app/ueParkingInfo"),method:"post",data:t}))},e)}))).apply(this,arguments)}function xa(e){return Ba.apply(this,arguments)}function Ba(){return(Ba=vt(Ut().m(function e(t){return Ut().w(function(e){for(;;)if(0===e.n)return e.a(2,ra({url:"".concat(oa,"/vbim-parking-server/testOnline/updateUserSelectedPackage"),method:"post",data:t}))},e)}))).apply(this,arguments)}function Ca(){return(Ca=vt(Ut().m(function e(t){return Ut().w(function(e){for(;;)if(0===e.n)return e.a(2,ra({url:"".concat(oa,"/vbim-parking-server/taskUserViewed/queryShowPushTipsFlag"),method:"post",data:t}))},e)}))).apply(this,arguments)}function Ea(){return(Ea=vt(Ut().m(function e(t){return Ut().w(function(e){for(;;)if(0===e.n)return e.a(2,ra({url:"".concat(oa,"/vbim-parking-server/taskUserViewed/closePushTips"),method:"post",data:t}))},e)}))).apply(this,arguments)}function ka(){return(ka=vt(Ut().m(function e(t){return Ut().w(function(e){for(;;)if(0===e.n)return e.a(2,ra({url:"".concat(oa,"/vbim-parking-server/taskUserViewed/queryRedDotsFlag"),method:"post",data:t}))},e)}))).apply(this,arguments)}function Ia(e){return Sa.apply(this,arguments)}function Sa(){return(Sa=vt(Ut().m(function e(t){return Ut().w(function(e){for(;;)if(0===e.n)return e.a(2,ra({url:"".concat(oa,"/vbim-parking-server/programPackage/dealProcess"),method:"post",data:t}))},e)}))).apply(this,arguments)}var Fa=function(e){function t(e){var n;return bt(this,t),(n=yt(this,t,[e])).getCurrentDownloadGameState=function(){var e=vt(Ut().m(function e(t){var r,o,a;return Ut().w(function(e){for(;;)switch(e.n){case 0:return o=null==t||null===(r=t.param)||void 0===r?void 0:r.downloadId,e.n=1,n.props.dispatch({type:"app/updateState",payload:{UELoadingTaskId:o||""}});case 1:return e.n=2,n.getPackage();case 2:n.handleInterval((a=n.state).obsDownloadUrl,a.taskId);case 3:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),n.handleInterval=function(e,t){e?(n.timer&&(clearInterval(n.timer),n.timer=null),n.timer=setInterval(function(){3===n.state.downloadState||4===n.state.downloadState?(console.log("------------------定时器停止"),clearInterval(n.timer),n.timer=null):(console.log("------------------定时器执行中"),n.getUEDownLoad(e,t))},5e3)):(clearInterval(n.timer),n.timer=null)},n.getPackage=vt(Ut().m(function e(){var t;return Ut().w(function(e){for(;;)switch(e.n){case 0:return t=n.state.applicationId,e.n=1,n.props.dispatch({type:"app/getQueryPackageDeployList",payload:{applicationId:t},callback:function(e,t){try{var r=e.obsDownloadUrl,o=e.taskId;r&&o?(n.getUEDownLoad(r,o),n.setState({obsDownloadUrl:r,taskId:o})):n.setState({obsDownloadUrl:"",taskId:""}),n.setState({taskList:t||[]})}catch(e){console.log("初始化场景模型当前程序包",e)}}});case 1:n.setState({loading:!1});case 2:return e.a(2)}},e)})),n.getUEDownLoad=function(e,t){e&&t&&_o({role:0,method:"tryDownloadGame",param:{downloadUrl:e,downloadId:t,applicationId:n.state.applicationId}})},n.getUEGameState=function(e,t,n){e&&t&&_o({role:0,method:"getDownloadGameState",param:{downloadUrl:e,downloadId:t,applicationId:n}})},n.getTryDownloadGame=function(e){if(null==e?void 0:e.param){var t,r,o;if((null===(t=e.param)||void 0===t?void 0:t.applicationId)!==n.props.app.applicationId)return!1;if(4===(null===(r=e.param)||void 0===r?void 0:r.downloadState))de.default.info("已有场景模型下载中,请稍后操作"),n.props.dispatch({type:"app/updateState",payload:{sceneState:4,UElocalPath:""}});else{var a,i,l,s,A=(null===(a=e.param)||void 0===a?void 0:a.receivedBytes)/(null===(i=e.param)||void 0===i?void 0:i.totalBytes)*100||0;2===(null===(l=e.param)||void 0===l?void 0:l.downloadState)&&(A=100),n.setState({percent:Number(A).toFixed(0)});var c=1;switch(null===(s=e.param)||void 0===s?void 0:s.downloadState){case 1:case 2:c=2;break;case 3:c=3}n.props.dispatch({type:"app/updateState",payload:{sceneState:c,UElocalPath:e.param.localPath}}),n.getHandle(e.param)}n.setState({downloadState:null===(o=e.param)||void 0===o?void 0:o.downloadState})}},n.getHandle=function(e){var t=e.applicationId,r=e.downloadId,o=n;if(3===e.downloadState){_o({role:0,method:"requestRoleStateList",param:""}),n.getNewsModel(),n.handleDot();var a=n.state.taskList;((null==a?void 0:a.length)>0?a:[]).forEach(function(e){r===(null==e?void 0:e.taskId)&&0===(null==e?void 0:e.userSelected)&&o.props.dispatch({type:"app/updateUserSelectedPackage",payload:{taskId:null==e?void 0:e.taskId,applicationId:t}})})}else n.setState({visible:!1})},n.getOpenRunTime=function(e){if(e.param&&e.param[2]){n.props.dispatch({type:"app/updateState",payload:{isRunning:"yes"}}),n.setState({is2Role:e.param[2]});var t=n.props.parking.currentFloor;if(null==t?void 0:t.floorId){var r={role:2,method:"changeLandArea",param:null==t?void 0:t.floorId};setTimeout(function(){_o(r)},5e3)}}else n.props.dispatch({type:"app/updateState",payload:{isRunning:"no"}}),n.setState({is2Role:!1})},n.getOperation=function(){n.props.dispatch({type:"cover/updateState",payload:{operationVisible:!0}})},n.getNewsModel=function(){(function(e){return Ca.apply(this,arguments)})({applicationId:n.state.applicationId}).then(function(e){var t,r;if(200===(null==e||null===(t=e.data)||void 0===t?void 0:t.code)&&(null==e||null===(r=e.data)||void 0===r?void 0:r.value)){var o=e.data.value;1===(null==o?void 0:o.showPushTipsFlag)&&n.setState({newsData:null==o?void 0:o.taskInfo,dot:!0,newsVisible:!0},function(){setTimeout(function(){n.setState({newsVisible:!1})},3e3)})}})},n.newsClose=function(){(function(e){return Ea.apply(this,arguments)})({applicationId:n.state.applicationId,taskIdList:arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]}).then(function(e){var t;200===(null==e||null===(t=e.data)||void 0===t?void 0:t.code)&&(console.log(e.data.message),n.handleDot(),n.setState({newsVisible:!1}))})},n.handleDot=function(){(function(e){return ka.apply(this,arguments)})({applicationId:n.state.applicationId}).then(function(e){var t,r;if(200===(null==e||null===(t=e.data)||void 0===t?void 0:t.code)&&(null==e||null===(r=e.data)||void 0===r?void 0:r.value)){var o=e.data.value;n.setState(1===(null==o?void 0:o.redDotsFlag)?{dot:!0,taskIdList:null==o?void 0:o.taskIdList}:{dot:!1,taskIdList:[]})}})},n.handleCancel=function(){var e=vt(Ut().m(function e(t){return Ut().w(function(e){for(;;)switch(e.n){case 0:if(!t){e.n=3;break}return e.n=1,n.getPackage();case 1:return e.n=2,n.setDownloadGameState();case 2:return e.n=3,n.newsClose(n.state.taskIdList);case 3:n.setState({visible:t});case 4:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),n.setDownloadGameState=function(){var e=n.state,t=e.taskList,r=e.applicationId;((null==t?void 0:t.length)>0?t:[]).forEach(function(e){(null==e?void 0:e.obsDownloadUrl)&&(null==e?void 0:e.taskId)&&n.getUEGameState(null==e?void 0:e.obsDownloadUrl,null==e?void 0:e.taskId,r)})},n.getDownloadGameState=function(e){var t,r=n.state,o=r.taskList,a=[];if((null==e||null===(t=e.param)||void 0===t?void 0:t.applicationId)!==r.applicationId)return!1;((null==o?void 0:o.length)>0?o:[]).map(function(t,n,r){var o,i;(null==t?void 0:t.taskId)===(null==e||null===(o=e.param)||void 0===o?void 0:o.downloadId)&&(t.downloadState=null==e||null===(i=e.param)||void 0===i?void 0:i.downloadState);return a=r,!1}),n.setState({taskList:a})},n.handleUse=function(e){n.props.dispatch({type:"app/updateUserSelectedPackage",payload:{taskId:null==e?void 0:e.taskId,applicationId:null==e?void 0:e.applicationId}}).then(function(){Yr.emit("setNavState"),n.setState({visible:!1})})},n.handleDownUse=function(){var e=vt(Ut().m(function e(t){return Ut().w(function(e){for(;;)switch(e.n){case 0:n.setState({downloadState:null,obsDownloadUrl:null,visible:!1},function(){Ia({applicationId:n.state.applicationId}).then(function(e){var t;200===(null==e||null===(t=e.data)||void 0===t?void 0:t.code)&&Yr.emit("setNavState")}),n.getUEDownLoad(null==t?void 0:t.obsDownloadUrl,null==t?void 0:t.taskId),n.handleInterval(null==t?void 0:t.obsDownloadUrl,null==t?void 0:t.taskId)});case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),n.handleDel=function(e){_o({role:0,method:"deleteDownloadGame",param:{downloadUrl:null==e?void 0:e.obsDownloadUrl}})},n.handleUEDel=function(){var e=vt(Ut().m(function e(t){var r;return Ut().w(function(e){for(;;)switch(e.n){case 0:(null==t||null===(r=t.param)||void 0===r?void 0:r.isSuccess)?(de.default.success("删除成功"),n.setState({visible:!1})):de.default.success("该程序相关文件打开,无法删除");case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),n.setEditParking=function(){n.props.dispatch({type:"scene/updateState",payload:{isFirstEnter:!0}}),n.props.dispatch(s.routerRedux.push({pathname:"/editScene"}))},n.clickPage=function(){try{var e=Jr(sessionStorage.getItem("applicationData"));window.dispatchEvent(new CustomEvent("mainEvent",{detail:{key:"artAutomation",data:Pt({},e)}}))}catch(e){console.log("跳转美术编辑器 err",e)}},n.handleUpdata=vt(Ut().m(function e(){var t,r;return Ut().w(function(e){for(;;)switch(e.n){case 0:return n.setState({loading:!0}),e.n=1,n.getPackage();case 1:return n.handleInterval((t=n.state).obsDownloadUrl,r=t.taskId),e.n=2,n.newsClose([r]);case 2:return e.a(2)}},e)})),n.timer=null,n.state={applicationId:"",is2Role:!1,downloadState:1,percent:0,visible:!1,taskList:[],obsDownloadUrl:"",taskId:"",dot:!1,newsData:{},newsVisible:!1,taskIdList:[],loading:!1},n}return It(t,e),xt(t,[{key:"componentDidMount",value:function(){_o({role:0,method:"getCurrentDownloadGameState"}),this.setState({applicationId:this.props.app.applicationId},vt(Ut().m(function e(){return Ut().w(function(e){for(;;)if(0===e.n)return e.a(2)},e)}))),Yr.on("tryDownloadGame",this.getTryDownloadGame),Yr.on("getDownloadGameState",this.getDownloadGameState),Yr.on("notifyRoleStateListChanged",this.getOpenRunTime),Yr.on("RequestRoleStateList",this.getOpenRunTime),Yr.on("deleteDownloadGame",this.handleUEDel),Yr.on("getCurrentDownloadGameState",this.getCurrentDownloadGameState)}},{key:"UNSAFE_componentWillReceiveProps",value:(n=vt(Ut().m(function e(t){var n=this;return Ut().w(function(e){for(;;)switch(e.n){case 0:JSON.stringify(t.app.applicationId)!==JSON.stringify(this.props.app.applicationId)&&this.setState({applicationId:t.app.applicationId},vt(Ut().m(function e(){return Ut().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,n.getPackage();case 1:return e.a(2)}},e)})));case 1:return e.a(2)}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"componentWillUnmount",value:function(){clearInterval(this.timer),this.timer=null,Yr.off("getDownloadGameState",this.getDownloadGameState),Yr.off("tryDownloadGame",this.getTryDownloadGame),Yr.off("RequestRoleStateList",this.getOpenRunTime),Yr.off("notifyRoleStateListChanged",this.getOpenRunTime),Yr.off("deleteDownloadGame",this.handleUEDel),Yr.off("getCurrentDownloadGameState",this.getCurrentDownloadGameState)}},{key:"render",value:function(){var e=this,t=this.props.app,n=t.sceneState,r=t.sceneData,o=this.state,a=o.dot,i=o.newsData,l=o.newsVisible,s=o.percent,A=o.visible,c=o.taskList,u=o.loading;return fe.default.createElement(fe.default.Fragment,null,fe.default.createElement("div",{className:yo.sceneModel},Xt.map(function(t,o){return t.id===n?fe.default.createElement("div",{key:t.id},fe.default.createElement("div",{className:yo.titleBox},fe.default.createElement("span",{className:yo.title},"场景模型"),fe.default.createElement("span",{className:ve.default(yo.state,yo.noData),style:{color:t.color,background:t.background}},t.name),2===t.id&&fe.default.createElement("i",{className:yo.percent,style:{color:t.color}},s,"%"),1===t.id&&fe.default.createElement("div",{className:yo.refreshData,onClick:e.handleUpdata},u&&fe.default.createElement("img",{src:xn,alt:""})," ",fe.default.createElement("i",null,"刷新数据")),3===t.id&&fe.default.createElement("div",{className:yo.iconBox},fe.default.createElement("img",{src:yn,alt:"",className:yo.setIcon,onClick:e.getOperation}),fe.default.createElement(we.default,{dot:a,size:"small"},fe.default.createElement("img",{src:bn,alt:"",className:yo.newsIcon,onClick:function(){return e.handleCancel(!0)}})))),fe.default.createElement("div",{className:yo.tipBox},1===t.id?fe.default.createElement(fe.default.Fragment,null,fe.default.createElement("img",{src:vn,alt:"",className:yo.warningIcon}),fe.default.createElement("span",{className:yo.tipTxt},"请前往 ",fe.default.createElement("i",{onClick:e.clickPage},"场景制作")," 页面,进行制作")):fe.default.createElement("span",{className:yo.tipTxt},t.tip),2===t.id&&fe.default.createElement(fe.default.Fragment,null,fe.default.createElement("span",{className:yo.loadingBut},t.but," ",fe.default.createElement("img",{src:xn,alt:""}))),(3===t.id||4===t.id)&&fe.default.createElement("span",{className:yo.verson},"".concat(null==r?void 0:r.version,"-").concat(null==r?void 0:r.projectName)),4===t.id&&fe.default.createElement("span",{className:yo.reLoadBut,onClick:function(){e.getUEDownLoad(null==r?void 0:r.obsDownloadUrl,null==r?void 0:r.taskId)}},t.but),3===t.id&&fe.default.createElement("span",{className:yo.editBut,onClick:e.setEditParking},fe.default.createElement("img",{src:wn,alt:""}),t.but1))):null}),l&&fe.default.createElement(Wo,{data:i,newsClose:function(t){return e.newsClose(t)},handleDownUse:this.handleDownUse})),fe.default.createElement(Oo,null),fe.default.createElement(be.default,{visible:A,title:"场景模型",footer:null,width:840,onCancel:function(){return e.handleCancel(!1)}},fe.default.createElement(Xo,{taskList:c,handleUse:this.handleUse,handleDel:this.handleDel,handleDownUse:this.handleDownUse})))}}]);var n}(r.Component),Pa=n.connect(function(e){return{app:e.app,parking:e.parking,cover:e.cover,seting:e.seting,scene:e.scene}})(Fa),La="header_header-wrapper__2bJxo",Ua="header_header-right__1eN77",Qa="header_platform-select__3L5OJ",Na="header_appList__3W7Xo",Ma="header_appItem__2EFcO",Da="header_appModal__2KlAp";Rt(".header_header-wrapper__2bJxo{position:absolute;right:0;bottom:24px;display:flex;flex-direction:column;align-items:center;width:100%;font-size:14px;background:#fff}.header_header-wrapper__2bJxo .header_header-right__1eN77{display:flex;flex-direction:column;align-items:center;width:80px}.header_header-wrapper__2bJxo .header_header-right__1eN77 .header_platform-select__3L5OJ{margin-top:16px}.header_header-wrapper__2bJxo .header_header-right__1eN77 .header_platform-select__3L5OJ .ant-select{color:#000f2c;background:#f0f1f2;border-radius:4.8px}.header_header-wrapper__2bJxo .header_header-right__1eN77 .header_platform-select__3L5OJ .ant-select-single:not(.ant-select-customize-input) .ant-select-selector{padding:0 6px}.header_header-wrapper__2bJxo .header_header-right__1eN77 .header_platform-select__3L5OJ .ant-select-arrow{margin-top:-8px}.header_header-wrapper__2bJxo .header_header-right__1eN77 .header_avg__2j_XW{width:24px;height:24px;margin-right:17px;border-radius:28px;cursor:pointer}.header_appList__3W7Xo{display:flex;justify-content:space-around}.header_appItem__2EFcO{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:309px;height:240px;background:#f0f2f5;border:2px solid #000;border-radius:24px;cursor:pointer}.header_appItem__2EFcO:hover{border-color:#3465e3}.header_appModal__2KlAp .ant-modal-body{box-sizing:border-box;padding:57px 48px}.header_areaSelect__3MU5A{margin-right:20px;margin-bottom:50px}");var Ta="".concat(Jo().BASEURL,"/api");function Oa(){return Ha.apply(this,arguments)}function Ha(){return Ha=vt(Ut().m(function e(){var t=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return e.a(2,ra({url:Ta+"/vbim-parking-server/garageProduction/saveCoverProperty",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),Ha.apply(this,arguments)}function Ra(){return Va.apply(this,arguments)}function Va(){return Va=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(Ta,"/vbim-parking-server/garageProduction/queryCoverProperty?equipmentId=").concat(null==t?void 0:t.equipmentId,"&coverImageType=").concat(null==t?void 0:t.coverImageType,"&t=").concat((new Date).getTime()),method:"GET",data:t}))},e)})),Va.apply(this,arguments)}function ja(){return za.apply(this,arguments)}function za(){return za=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(Ta,"/vbim-parking-server/garageProduction/buttonStyleResource?t=").concat((new Date).getTime()),method:"GET",data:t}))},e)})),za.apply(this,arguments)}function Ga(e){return Ka.apply(this,arguments)}function Ka(){return(Ka=vt(Ut().m(function e(t){return Ut().w(function(e){for(;;)if(0===e.n)return e.a(2,ra({url:"".concat(Ta,"/vbim-parking-server/garageProduction/queryParkingEquipment?t=").concat((new Date).getTime(),"&applicationId=").concat(t),method:"GET"}))},e)}))).apply(this,arguments)}function Wa(e){return Ya.apply(this,arguments)}function Ya(){return(Ya=vt(Ut().m(function e(t){return Ut().w(function(e){for(;;)if(0===e.n)return e.a(2,ra({url:"".concat(Ta,"/vbim-parking-server/garageProduction/createParkingEquipment"),method:"post",data:t}))},e)}))).apply(this,arguments)}var Xa=Pe.default.Option;var qa=n.connect(function(e){return{header:e.header,app:e.app,cover:e.cover}})(function(e){var t=e.dispatch,n=e.app,o=n.applicationId,a=n.equipmentList,i=n.areaList,l=Mt(r.useState(null),2),s=l[0],A=l[1];r.useEffect(function(){c()},[o]);var c=function(){t({type:"app/getParkingEquipment",payload:{applicationId:o},callback:function(e){e&&!e.length&&Wa({applicationId:o,equipmentType:"MobileApp",appResolution:"1920x1080"}).then(function(e){var n;200===(null===(n=e.data)||void 0===n?void 0:n.code)&&t({type:"app/getParkingEquipment",payload:{applicationId:o}})})}})};r.useEffect(function(){var e,n;(null==a?void 0:a.length)>0&&a[0]&&(A(null===(e=a[0])||void 0===e?void 0:e.equipmentId),t({type:"app/updateState",payload:{equipmentId:null===(n=a[0])||void 0===n?void 0:n.equipmentId,currentEquipmentData:a[0]}}),Yr.emit("equipment"));i.length&&_(i[0].areaId)},[a,i]);var u=Mt(r.useState(!1),2),d=u[0],p=u[1],f=Mt(r.useState(null),2),g=f[0],h=f[1],m=Mt(r.useState(null),2),_=m[1],v=function(){var e=vt(Ut().m(function e(){var t,n;return Ut().w(function(e){for(;;)switch(e.n){case 0:if(g){e.n=1;break}return de.default.warn("请选择要新增的设备"),e.a(2,!1);case 1:if("DesktopApp"!==g){e.n=2;break}return de.default.warn("暂未开发桌面应用"),e.a(2,!1);case 2:return t={applicationId:o,equipmentType:g,appResolution:"1920x1080"},e.n=3,Wa(t);case 3:(n=e.v.data).success?(de.default.success("新建成功"),c()):de.default.error(n.message),p(!1);case 4:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();function y(e){return function(){"DesktopApp"===e&&de.default.warn("暂未开发桌面应用"),h(e===g?null:e)}}return fe.default.createElement("div",{className:La},fe.default.createElement("div",{className:Ua},!1,fe.default.createElement("img",{onClick:function(){p(!0)},style:{cursor:"pointer"},src:"".concat(jt,"/img/addArea.svg"),alt:""}),fe.default.createElement("div",{className:Qa},fe.default.createElement(Pe.default,{value:s,bordered:!1,suffixIcon:fe.default.createElement("img",{src:"".concat(jt,"/img/expand.svg"),alt:""}),onChange:function(e){A(e);var n={};a&&a.forEach(function(t){t.equipmentId===e&&(n=t)}),t({type:"app/updateState",payload:{equipmentId:e,currentEquipmentData:n}}),Yr.emit("equipment")}},a.map(function(e){return fe.default.createElement(Xa,{value:e.equipmentId,key:e.equipmentType},e.label)})))),fe.default.createElement(be.default,{className:Da,okText:"确定",cancelText:"取消",width:1086,title:"新建设备样式",visible:d,onOk:v,onCancel:function(){p(!1)}},fe.default.createElement("div",{className:Na},fe.default.createElement("div",{style:{borderColor:"MobileApp"===g?"#3465E3":""},onClick:y("MobileApp"),key:"phone",className:Ma},fe.default.createElement("img",{src:"".concat(jt,"/img/phoneApp.png"),alt:""})),fe.default.createElement("div",{style:{borderColor:"DesktopApp"===g?"#3465E3":""},onClick:y("DesktopApp"),key:"web",className:Ma},fe.default.createElement("img",{src:"".concat(jt,"/img/webApp.png"),alt:""})))))}),Ja=[{id:"birdEyeView",icon:"".concat(jt,"/img/nav/birdView.png"),selectIcon:"".concat(jt,"/img/nav/birdView_active.png"),name:"全局鸟瞰"},{id:"roam",icon:"".concat(jt,"/img/nav/roam.png"),selectIcon:"".concat(jt,"/img/nav/roam_active.png"),name:"沉浸漫游"},{id:"parkingList",icon:"".concat(jt,"/img/nav/list.png"),selectIcon:"".concat(jt,"/img/nav/list_active.png"),name:"快捷列表"},{id:"mine",icon:"".concat(jt,"/img/nav/mine.png"),selectIcon:"".concat(jt,"/img/nav/mine_active.png"),name:"我的"}],Za="menuList_menuList__ilCER",$a="menuList_menuItem__2ID1X",ei="menuList_active__2ImkU",ti="menuList_itemContent__27eN0",ni="menuList_itemContentSelected__3vClO",ri="menuList_menuListPop__3kkQP";Rt(".menuList_menuList__ilCER{width:100%;height:94px;position:absolute;bottom:0;left:0;display:flex;background-color:rgba(6,9,21,.9);z-index:2}.menuList_menuItem__2ID1X{width:25%;height:100%;display:flex;flex-direction:column;align-items:center;font-family:PingFangSC-Regular;font-size:14px;color:#dde2e9;box-sizing:border-box;cursor:pointer}.menuList_menuItem__2ID1X img{width:34px}.menuList_menuItem__2ID1X span{font-size:10px;color:#fff;margin-bottom:40px}.menuList_menuItem__2ID1X.menuList_active__2ImkU{color:#fff}.menuList_itemContent__27eN0,.menuList_itemContentSelected__3vClO{z-index:2;display:flex;flex-direction:column;align-items:center;height:100%;justify-content:flex-end}.menuList_itemContentSelected__3vClO span{color:#2468ff!important;font-weight:700!important}.menuList_menuListPop__3kkQP .ant-popover-inner{border-radius:27px}.menuList_menuListPop__3kkQP p{display:flex;align-items:center;gap:9px}.menuList_menuListPop__3kkQP img{width:14px;height:14px}");var oi=fe.default.createElement("p",null,fe.default.createElement("img",{src:"".concat(jt,"/img/warningIcon.png"),alt:""}),"漫游页编辑模式不支持跳转"),ai=function(e){var t=e.currentMenuId,n=e.type;return fe.default.createElement("div",{id:"menuList",className:Za},Ja.map(function(e,r){return fe.default.createElement("div",{key:e.id,className:ve.default($a,Ct({},ei,t===e.id)),onClick:function(){console.log("handleMenuClick -> menu",e)}},"roam"===n?fe.default.createElement(Le.default,{trigger:"click",placement:0===r?"topLeft":3===r?"topRight":"top",overlayClassName:ri,getPopupContainer:function(){return document.querySelector("#menuList")},content:oi},fe.default.createElement("div",{className:t===e.id?ni:ti},fe.default.createElement("img",{src:t===e.id?e.selectIcon:e.icon,alt:""}),fe.default.createElement("span",null,e.name))):fe.default.createElement("div",{className:t===e.id?ni:ti},fe.default.createElement("img",{src:t===e.id?e.selectIcon:e.icon,alt:""}),fe.default.createElement("span",null,e.name)))}))},ii=function(e,t){return ii=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},ii(e,t)};function li(e,t){function n(){this.constructor=e}ii(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var si=function(){return si=Object.assign||function(e){for(var t,n=1,r=arguments.length;r>n;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},si.apply(this,arguments)};function Ai(){for(var e=0,t=0,n=arguments.length;n>t;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;n>t;t++)for(var a=arguments[t],i=0,l=a.length;l>i;i++,o++)r[o]=a[i];return r}var ci=[{sourceKey:"scroller.scrollBehaviorX.currentPos",key:"x"},{sourceKey:"scroller.scrollBehaviorY.currentPos",key:"y"},{sourceKey:"scroller.scrollBehaviorX.hasScroll",key:"hasHorizontalScroll"},{sourceKey:"scroller.scrollBehaviorY.hasScroll",key:"hasVerticalScroll"},{sourceKey:"scroller.scrollBehaviorX.contentSize",key:"scrollerWidth"},{sourceKey:"scroller.scrollBehaviorY.contentSize",key:"scrollerHeight"},{sourceKey:"scroller.scrollBehaviorX.maxScrollPos",key:"maxScrollX"},{sourceKey:"scroller.scrollBehaviorY.maxScrollPos",key:"maxScrollY"},{sourceKey:"scroller.scrollBehaviorX.minScrollPos",key:"minScrollX"},{sourceKey:"scroller.scrollBehaviorY.minScrollPos",key:"minScrollY"},{sourceKey:"scroller.scrollBehaviorX.movingDirection",key:"movingDirectionX"},{sourceKey:"scroller.scrollBehaviorY.movingDirection",key:"movingDirectionY"},{sourceKey:"scroller.scrollBehaviorX.direction",key:"directionX"},{sourceKey:"scroller.scrollBehaviorY.direction",key:"directionY"},{sourceKey:"scroller.actions.enabled",key:"enabled"},{sourceKey:"scroller.animater.pending",key:"pending"},{sourceKey:"scroller.animater.stop",key:"stop"},{sourceKey:"scroller.scrollTo",key:"scrollTo"},{sourceKey:"scroller.scrollBy",key:"scrollBy"},{sourceKey:"scroller.scrollToElement",key:"scrollToElement"},{sourceKey:"scroller.resetPosition",key:"resetPosition"}];function ui(e){console.error("[BScroll warn]: "+e)}var di="undefined"!=typeof window,pi=di&&navigator.userAgent.toLowerCase(),fi=!(!pi||!/wechatdevtools/.test(pi)),gi=pi&&pi.indexOf("android")>0,hi=function(){if("string"==typeof pi){var e=/os (\d\d?_\d(_\d)?)/.exec(pi);if(!e)return!1;var t=e[1].split("_").map(function(e){return parseInt(e,10)});return!(13!==t[0]||4>t[1])}return!1}(),mi=!1;if(di){try{var _i={};Object.defineProperty(_i,"passive",{get:function(){mi=!0}}),window.addEventListener("test-passive",function(){},_i)}catch(ej){}}function vi(){return window.performance&&window.performance.now&&window.performance.timing?window.performance.now()+window.performance.timing.navigationStart:+new Date}var yi=function(e,t){for(var n in t)e[n]=t[n];return e};function bi(e){return null==e}function wi(e,t,n){return t>e?t:e>n?n:e}var xi=di&&document.createElement("div").style,Bi=function(){if(!di)return!1;for(var e=0,t=[{key:"standard",value:"transform"},{key:"webkit",value:"webkitTransform"},{key:"Moz",value:"MozTransform"},{key:"O",value:"OTransform"},{key:"ms",value:"msTransform"}];t.length>e;e++){var n=t[e];if(void 0!==xi[n.value])return n.key}return!1}();function Ci(e){return!1===Bi?e:"standard"===Bi?"transitionEnd"===e?"transitionend":e:Bi+e.charAt(0).toUpperCase()+e.substr(1)}function Ei(e){return"string"==typeof e?document.querySelector(e):e}function ki(e,t,n,r){e.addEventListener(t,n,mi?{passive:!1,capture:!!r}:!!r)}function Ii(e,t,n,r){e.removeEventListener(t,n,{capture:!!r})}function Si(e){e.cancelable&&e.preventDefault()}function Fi(e){for(var t=0,n=0;e;)t-=e.offsetLeft,n-=e.offsetTop,e=e.offsetParent;return{left:t,top:n}}Bi&&"standard"!==Bi&&Bi.toLowerCase();var Pi=Ci("transform"),Li=Ci("transition"),Ui=di&&Ci("perspective")in xi,Qi=di&&("ontouchstart"in window||fi),Ni=di&&Li in xi,Mi={transform:Pi,transition:Li,transitionTimingFunction:Ci("transitionTimingFunction"),transitionDuration:Ci("transitionDuration"),transitionDelay:Ci("transitionDelay"),transformOrigin:Ci("transformOrigin"),transitionEnd:Ci("transitionEnd"),transitionProperty:Ci("transitionProperty")},Di={touchstart:1,touchmove:1,touchend:1,touchcancel:1,mousedown:2,mousemove:2,mouseup:2};function Ti(e){if(e instanceof window.SVGElement){var t=e.getBoundingClientRect();return{top:t.top,left:t.left,width:t.width,height:t.height}}return{top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight}}function Oi(e,t){for(var n in t)if(t[n].test(e[n]))return!0;return!1}var Hi=Oi;function Ri(e,t){var n;void 0===t&&(t="click"),"mouseup"===e.type?n=e:"touchend"!==e.type&&"touchcancel"!==e.type||(n=e.changedTouches[0]);var r,o={};n&&(o.screenX=n.screenX||0,o.screenY=n.screenY||0,o.clientX=n.clientX||0,o.clientY=n.clientY||0);var a=!0,i=!0,l={ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey};if("undefined"!=typeof MouseEvent)try{r=new MouseEvent(t,yi(si({bubbles:a,cancelable:i},l),o))}catch(e){s()}else s();function s(){(r=document.createEvent("Event")).initEvent(t,a,i),yi(r,o)}r.forwardedTouchEvent=!0,r._constructed=!0,e.target.dispatchEvent(r)}var Vi={swipe:{style:"cubic-bezier(0.23, 1, 0.32, 1)",fn:function(e){return 1+--e*e*e*e*e}},swipeBounce:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(e){return e*(2-e)}},bounce:{style:"cubic-bezier(0.165, 0.84, 0.44, 1)",fn:function(e){return 1- --e*e*e*e}}},ji=1e3/60,zi=di&&window;function Gi(){}var Ki=di?zi.requestAnimationFrame||zi.webkitRequestAnimationFrame||zi.mozRequestAnimationFrame||zi.oRequestAnimationFrame||function(e){return window.setTimeout(e,e.interval||ji)}:Gi,Wi=di?zi.cancelAnimationFrame||zi.webkitCancelAnimationFrame||zi.mozCancelAnimationFrame||zi.oCancelAnimationFrame||function(e){window.clearTimeout(e)}:Gi,Yi=function(e){},Xi={enumerable:!0,configurable:!0,get:Yi,set:Yi};var qi=function(){function e(e){this.events={},this.eventTypes={},this.registerType(e)}return e.prototype.on=function(e,t,n){return void 0===n&&(n=this),this.hasType(e),this.events[e]||(this.events[e]=[]),this.events[e].push([t,n]),this},e.prototype.once=function(e,t,n){var r=this;void 0===n&&(n=this),this.hasType(e);var o=function(){for(var a=[],i=0;arguments.length>i;i++)a[i]=arguments[i];r.off(e,o);var l=t.apply(n,a);if(!0===l)return l};return o.fn=t,this.on(e,o),this},e.prototype.off=function(e,t){if(!e&&!t)return this.events={},this;if(e){if(this.hasType(e),!t)return this.events[e]=[],this;var n=this.events[e];if(!n)return this;for(var r=n.length;r--;)(n[r][0]===t||n[r][0]&&n[r][0].fn===t)&&n.splice(r,1);return this}},e.prototype.trigger=function(e){for(var t=[],n=1;arguments.length>n;n++)t[n-1]=arguments[n];this.hasType(e);var r=this.events[e];if(r)for(var o,a=r.length,i=Ai(r),l=0;a>l;l++){var s=i[l],A=s[0];if(A&&!0===(o=A.apply(s[1],t)))return o}},e.prototype.registerType=function(e){var t=this;e.forEach(function(e){t.eventTypes[e]=e})},e.prototype.destroy=function(){this.events={},this.eventTypes={}},e.prototype.hasType=function(e){var t=this.eventTypes;t[e]===e||ui('EventEmitter has used unknown event type: "'+e+'", should be oneof ['+Object.keys(t).map(function(e){return JSON.stringify(e)})+"]")},e}(),Ji=function(){function e(e,t){this.wrapper=e,this.events=t,this.addDOMEvents()}return e.prototype.destroy=function(){this.removeDOMEvents(),this.events=[]},e.prototype.addDOMEvents=function(){this.handleDOMEvents(ki)},e.prototype.removeDOMEvents=function(){this.handleDOMEvents(Ii)},e.prototype.handleDOMEvents=function(e){var t=this,n=this.wrapper;this.events.forEach(function(r){e(n,r.name,t,!!r.capture)})},e.prototype.handleEvent=function(e){var t=e.type;this.events.some(function(n){return n.name===t&&(n.handler(e),!0)})},e}(),Zi=function(e){function t(){var t=e.call(this)||this;return t.startX=0,t.startY=0,t.scrollX=!1,t.scrollY=!0,t.freeScroll=!1,t.directionLockThreshold=0,t.eventPassthrough="",t.click=!1,t.dblclick=!1,t.tap="",t.bounce={top:!0,bottom:!0,left:!0,right:!0},t.bounceTime=800,t.momentum=!0,t.momentumLimitTime=300,t.momentumLimitDistance=15,t.swipeTime=2500,t.swipeBounceTime=500,t.deceleration=.0015,t.flickLimitTime=200,t.flickLimitDistance=100,t.resizePolling=60,t.probeType=0,t.stopPropagation=!1,t.preventDefault=!0,t.preventDefaultException={tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT|AUDIO)$/},t.tagException={tagName:/^TEXTAREA$/},t.HWCompositing=!0,t.useTransition=!0,t.bindToWrapper=!1,t.bindToTarget=!1,t.disableMouse=Qi,t.disableTouch=!Qi,t.autoBlur=!0,t.autoEndDistance=5,t.outOfBoundaryDampingFactor=1/3,t.specifiedIndexAsContent=0,t.quadrant=1,t}return li(t,e),t.prototype.merge=function(e){if(!e)return this;for(var t in e)"bounce"!==t?this[t]=e[t]:this.bounce=this.resolveBounce(e[t]);return this},t.prototype.process=function(){return this.translateZ=this.HWCompositing&&Ui?" translateZ(1px)":"",this.useTransition=this.useTransition&&Ni,this.preventDefault=!this.eventPassthrough&&this.preventDefault,this.scrollX="horizontal"!==this.eventPassthrough&&this.scrollX,this.scrollY="vertical"!==this.eventPassthrough&&this.scrollY,this.freeScroll=this.freeScroll&&!this.eventPassthrough,this.scrollX=!!this.freeScroll||this.scrollX,this.scrollY=!!this.freeScroll||this.scrollY,this.directionLockThreshold=this.eventPassthrough?0:this.directionLockThreshold,this},t.prototype.resolveBounce=function(e){var t={top:!0,right:!0,bottom:!0,left:!0};return"object"==typeof e?yi(t,e):e?t:{top:!1,right:!1,bottom:!1,left:!1}},t}(function(){}),$i=function(){function e(e,t){this.wrapper=e,this.options=t,this.hooks=new qi(["beforeStart","start","move","end","click"]),this.handleDOMEvents()}return e.prototype.handleDOMEvents=function(){var e=this.options,t=this.wrapper,n=e.bindToWrapper?t:window,r=[],o=[],a=!e.disableTouch,i=!e.disableMouse;e.click&&r.push({name:"click",handler:this.click.bind(this),capture:!0}),a&&(r.push({name:"touchstart",handler:this.start.bind(this)}),o.push({name:"touchmove",handler:this.move.bind(this)},{name:"touchend",handler:this.end.bind(this)},{name:"touchcancel",handler:this.end.bind(this)})),i&&(r.push({name:"mousedown",handler:this.start.bind(this)}),o.push({name:"mousemove",handler:this.move.bind(this)},{name:"mouseup",handler:this.end.bind(this)})),this.wrapperEventRegister=new Ji(t,r),this.targetEventRegister=new Ji(n,o)},e.prototype.beforeHandler=function(e,t){var n=this.options,r=n.preventDefault,o=n.stopPropagation,a=n.preventDefaultException;({start:function(){return r&&!Oi(e.target,a)},end:function(){return r&&!Oi(e.target,a)},move:function(){return r}})[t]()&&e.preventDefault(),o&&e.stopPropagation()},e.prototype.setInitiated=function(e){void 0===e&&(e=0),this.initiated=e},e.prototype.start=function(e){var t=Di[e.type];if(!this.initiated||this.initiated===t)if(this.setInitiated(t),Hi(e.target,this.options.tagException))this.setInitiated();else if((2!==t||0===e.button)&&!this.hooks.trigger(this.hooks.eventTypes.beforeStart,e)){this.beforeHandler(e,"start");var n=e.touches?e.touches[0]:e;this.pointX=n.pageX,this.pointY=n.pageY,this.hooks.trigger(this.hooks.eventTypes.start,e)}},e.prototype.move=function(e){if(Di[e.type]===this.initiated){this.beforeHandler(e,"move");var t=e.touches?e.touches[0]:e,n=t.pageX-this.pointX,r=t.pageY-this.pointY;if(this.pointX=t.pageX,this.pointY=t.pageY,!this.hooks.trigger(this.hooks.eventTypes.move,{deltaX:n,deltaY:r,e:e})){var o=document.documentElement.scrollLeft||window.pageXOffset||document.body.scrollLeft,a=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,i=this.pointX-o,l=this.pointY-a,s=this.options.autoEndDistance;(i>document.documentElement.clientWidth-s||l>document.documentElement.clientHeight-s||s>i||s>l)&&this.end(e)}}},e.prototype.end=function(e){Di[e.type]===this.initiated&&(this.setInitiated(),this.beforeHandler(e,"end"),this.hooks.trigger(this.hooks.eventTypes.end,e))},e.prototype.click=function(e){this.hooks.trigger(this.hooks.eventTypes.click,e)},e.prototype.setContent=function(e){e!==this.wrapper&&(this.wrapper=e,this.rebindDOMEvents())},e.prototype.rebindDOMEvents=function(){this.wrapperEventRegister.destroy(),this.targetEventRegister.destroy(),this.handleDOMEvents()},e.prototype.destroy=function(){this.wrapperEventRegister.destroy(),this.targetEventRegister.destroy(),this.hooks.destroy()},e}(),el={x:["translateX","px"],y:["translateY","px"]},tl=function(){function e(e){this.setContent(e),this.hooks=new qi(["beforeTranslate","translate"])}return e.prototype.getComputedPosition=function(){var e=window.getComputedStyle(this.content,null)[Mi.transform].split(")")[0].split(", ");return{x:+(e[12]||e[4])||0,y:+(e[13]||e[5])||0}},e.prototype.translate=function(e){var t=[];Object.keys(e).forEach(function(n){if(el[n]){var r=el[n][0];if(r)t.push(r+"("+e[n]+el[n][1]+")")}}),this.hooks.trigger(this.hooks.eventTypes.beforeTranslate,t,e),this.style[Mi.transform]=t.join(" "),this.hooks.trigger(this.hooks.eventTypes.translate,e)},e.prototype.setContent=function(e){this.content!==e&&(this.content=e,this.style=e.style)},e.prototype.destroy=function(){this.hooks.destroy()},e}(),nl=function(){function e(e,t,n){this.translater=t,this.options=n,this.timer=0,this.hooks=new qi(["move","end","beforeForceStop","forceStop","callStop","time","timeFunction"]),this.setContent(e)}return e.prototype.translate=function(e){this.translater.translate(e)},e.prototype.setPending=function(e){this.pending=e},e.prototype.setForceStopped=function(e){this.forceStopped=e},e.prototype.setCallStop=function(e){this.callStopWhenPending=e},e.prototype.setContent=function(e){this.content!==e&&(this.content=e,this.style=e.style,this.stop())},e.prototype.clearTimer=function(){this.timer&&(Wi(this.timer),this.timer=0)},e.prototype.destroy=function(){this.hooks.destroy(),Wi(this.timer)},e}(),rl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return li(t,e),t.prototype.startProbe=function(e,t){var n=this,r=e,o=function(){var a=n.translater.getComputedPosition();(function(e,t,n,r){var o=function(e,t){var n=e-t;return n>0?-1:0>n?1:0},a=o(t.x,e.x),i=o(t.y,e.y);return 0>=a*(n.x-r.x)&&0>=i*(n.y-r.y)})(e,t,a,r)&&n.hooks.trigger(n.hooks.eventTypes.move,a),n.pending||(n.callStopWhenPending?n.callStopWhenPending=!1:n.hooks.trigger(n.hooks.eventTypes.end,a)),r=a,n.pending&&(n.timer=Ki(o))};this.callStopWhenPending&&this.setCallStop(!1),Wi(this.timer),o()},t.prototype.transitionTime=function(e){void 0===e&&(e=0),this.style[Mi.transitionDuration]=e+"ms",this.hooks.trigger(this.hooks.eventTypes.time,e)},t.prototype.transitionTimingFunction=function(e){this.style[Mi.transitionTimingFunction]=e,this.hooks.trigger(this.hooks.eventTypes.timeFunction,e)},t.prototype.transitionProperty=function(){this.style[Mi.transitionProperty]=Mi.transform},t.prototype.move=function(e,t,n,r){this.setPending(n>0),this.transitionTimingFunction(r),this.transitionProperty(),this.transitionTime(n),this.translate(t);var o=3===this.options.probeType;n&&o&&this.startProbe(e,t),n||(this._reflow=this.content.offsetHeight,o&&this.hooks.trigger(this.hooks.eventTypes.move,t),this.hooks.trigger(this.hooks.eventTypes.end,t))},t.prototype.doStop=function(){var e=this.pending;if(this.setForceStopped(!1),this.setCallStop(!1),e){this.setPending(!1),Wi(this.timer);var t=this.translater.getComputedPosition(),n=t.x,r=t.y;this.transitionTime(),this.translate({x:n,y:r}),this.setForceStopped(!0),this.setCallStop(!0),this.hooks.trigger(this.hooks.eventTypes.forceStop,{x:n,y:r})}return e},t.prototype.stop=function(){this.doStop()&&this.hooks.trigger(this.hooks.eventTypes.callStop)},t}(nl),ol=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return li(t,e),t.prototype.move=function(e,t,n,r){if(!n)return this.translate(t),3===this.options.probeType&&this.hooks.trigger(this.hooks.eventTypes.move,t),void this.hooks.trigger(this.hooks.eventTypes.end,t);this.animate(e,t,n,r)},t.prototype.animate=function(e,t,n,r){var o=this,a=vi(),i=a+n,l=3===this.options.probeType,s=function(){var A=vi();if(A>=i)return o.translate(t),l&&o.hooks.trigger(o.hooks.eventTypes.move,t),void o.hooks.trigger(o.hooks.eventTypes.end,t);var c=r(A=(A-a)/n),u={};Object.keys(t).forEach(function(n){var r=e[n];u[n]=(t[n]-r)*c+r}),o.translate(u),l&&o.hooks.trigger(o.hooks.eventTypes.move,u),o.pending&&(o.timer=Ki(s)),o.pending||(o.callStopWhenPending?o.callStopWhenPending=!1:o.hooks.trigger(o.hooks.eventTypes.end,t))};this.setPending(!0),this.callStopWhenPending&&this.setCallStop(!1),Wi(this.timer),s()},t.prototype.doStop=function(){var e=this.pending;if(this.setForceStopped(!1),this.setCallStop(!1),e){this.setPending(!1),Wi(this.timer);var t=this.translater.getComputedPosition();this.setForceStopped(!0),this.setCallStop(!0),this.hooks.trigger(this.hooks.eventTypes.forceStop,t)}return e},t.prototype.stop=function(){this.doStop()&&this.hooks.trigger(this.hooks.eventTypes.callStop)},t}(nl);var al,il,ll,sl,Al=function(){function e(e,t,n){this.wrapper=e,this.options=n,this.hooks=new qi(["beforeComputeBoundary","computeBoundary","momentum","end","ignoreHasScroll"]),this.refresh(t)}return e.prototype.start=function(){this.dist=0,this.setMovingDirection(0),this.setDirection(0)},e.prototype.move=function(e){return this.setMovingDirection(e=this.hasScroll?e:0),this.performDampingAlgorithm(e,this.options.outOfBoundaryDampingFactor)},e.prototype.setMovingDirection=function(e){this.movingDirection=e>0?-1:0>e?1:0},e.prototype.setDirection=function(e){this.direction=e>0?-1:0>e?1:0},e.prototype.performDampingAlgorithm=function(e,t){var n=this.currentPos+e;return(n>this.minScrollPos||this.maxScrollPos>n)&&(n=n>this.minScrollPos&&this.options.bounces[0]||this.maxScrollPos>n&&this.options.bounces[1]?this.currentPos+e*t:n>this.minScrollPos?this.minScrollPos:this.maxScrollPos),n},e.prototype.end=function(e){var t={duration:0};this.options.momentum&&this.options.momentumLimitTime>e&&Math.abs(this.currentPos-this.startPos)>this.options.momentumLimitDistance?t=this.hasScroll?this.momentum(this.currentPos,this.startPos,e,this.maxScrollPos,this.minScrollPos,-1===this.direction&&this.options.bounces[0]||1===this.direction&&this.options.bounces[1]?this.wrapperSize:0,this.options):{destination:this.currentPos,duration:0}:this.hooks.trigger(this.hooks.eventTypes.end,t);return t},e.prototype.momentum=function(e,t,n,r,o,a,i){void 0===i&&(i=this.options);var l=e-t,s=Math.abs(l)/n,A=i.deceleration,c=i.swipeBounceTime,u={destination:e+s*s/A*(0>l?-1:1),duration:Math.min(i.swipeTime,2*s/A),rate:15};return this.hooks.trigger(this.hooks.eventTypes.momentum,u,l),r>u.destination?(u.destination=a?Math.max(r-a/4,r-a/u.rate*s):r,u.duration=c):u.destination>o&&(u.destination=a?Math.min(o+a/4,o+a/u.rate*s):o,u.duration=c),u.destination=Math.round(u.destination),u},e.prototype.updateDirection=function(){this.setDirection(this.currentPos-this.absStartPos)},e.prototype.refresh=function(e){var t=this.options.rect,n=t.size,r=t.position,o="static"===window.getComputedStyle(this.wrapper,null).position,a=Ti(this.wrapper);this.wrapperSize=this.wrapper["width"===n?"clientWidth":"clientHeight"],this.setContent(e);var i=Ti(this.content);this.contentSize=i[n],this.relativeOffset=i[r],o&&(this.relativeOffset-=a[r]),this.computeBoundary(),this.setDirection(0)},e.prototype.setContent=function(e){e!==this.content&&(this.content=e,this.resetState())},e.prototype.resetState=function(){this.currentPos=0,this.startPos=0,this.dist=0,this.setDirection(0),this.setMovingDirection(0),this.resetStartPos()},e.prototype.computeBoundary=function(){this.hooks.trigger(this.hooks.eventTypes.beforeComputeBoundary);var e={minScrollPos:0,maxScrollPos:this.wrapperSize-this.contentSize};0>e.maxScrollPos&&(e.maxScrollPos-=this.relativeOffset,0===this.options.specifiedIndexAsContent&&(e.minScrollPos=-this.relativeOffset)),this.hooks.trigger(this.hooks.eventTypes.computeBoundary,e),this.minScrollPos=e.minScrollPos,this.maxScrollPos=e.maxScrollPos,this.hasScroll=this.options.scrollable&&this.minScrollPos>this.maxScrollPos,!this.hasScroll&&this.maxScrollPos>this.minScrollPos&&(this.maxScrollPos=this.minScrollPos,this.contentSize=this.wrapperSize)},e.prototype.updatePosition=function(e){this.currentPos=e},e.prototype.getCurrentPos=function(){return this.currentPos},e.prototype.checkInBoundary=function(){var e=this.adjustPosition(this.currentPos);return{position:e,inBoundary:e===this.getCurrentPos()}},e.prototype.adjustPosition=function(e){return this.hasScroll||this.hooks.trigger(this.hooks.eventTypes.ignoreHasScroll)?e>this.minScrollPos?e=this.minScrollPos:this.maxScrollPos>e&&(e=this.maxScrollPos):e=this.minScrollPos,e},e.prototype.updateStartPos=function(){this.startPos=this.currentPos},e.prototype.updateAbsStartPos=function(){this.absStartPos=this.currentPos},e.prototype.resetStartPos=function(){this.updateStartPos(),this.updateAbsStartPos()},e.prototype.getAbsDist=function(e){return this.dist+=e,Math.abs(this.dist)},e.prototype.destroy=function(){this.hooks.destroy()},e}(),cl=((al={}).yes=function(e){return!0},al.no=function(e){return Si(e),!1},al),ul=((il={}).horizontal=((ll={}).yes="horizontal",ll.no="vertical",ll),il.vertical=((sl={}).yes="vertical",sl.no="horizontal",sl),il),dl=function(){function e(e,t,n){this.directionLockThreshold=e,this.freeScroll=t,this.eventPassthrough=n,this.reset()}return e.prototype.reset=function(){this.directionLocked=""},e.prototype.checkMovingDirection=function(e,t,n){return this.computeDirectionLock(e,t),this.handleEventPassthrough(n)},e.prototype.adjustDelta=function(e,t){return"horizontal"===this.directionLocked?t=0:"vertical"===this.directionLocked&&(e=0),{deltaX:e,deltaY:t}},e.prototype.computeDirectionLock=function(e,t){""!==this.directionLocked||this.freeScroll||(this.directionLocked=e>t+this.directionLockThreshold?"horizontal":e+this.directionLockThreshold>t?"none":"vertical")},e.prototype.handleEventPassthrough=function(e){var t=ul[this.directionLocked];if(t){if(this.eventPassthrough===t.yes)return cl.yes(e);if(this.eventPassthrough===t.no)return cl.no(e)}return!1},e}(),pl=function(){function e(e,t,n,r,o){this.hooks=new qi(["start","beforeMove","scrollStart","scroll","beforeEnd","end","scrollEnd","contentNotMoved","detectMovingDirection","coordinateTransformation"]),this.scrollBehaviorX=e,this.scrollBehaviorY=t,this.actionsHandler=n,this.animater=r,this.options=o,this.directionLockAction=new dl(o.directionLockThreshold,o.freeScroll,o.eventPassthrough),this.enabled=!0,this.bindActionsHandler()}return e.prototype.bindActionsHandler=function(){var e=this;this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.start,function(t){return!e.enabled||e.handleStart(t)}),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.move,function(t){var n=t.e;if(!e.enabled)return!0;var r=function(e,t,n){return 2===n?[t,-e]:3===n?[-e,-t]:4===n?[-t,e]:[e,t]}(t.deltaX,t.deltaY,e.options.quadrant),o={deltaX:r[0],deltaY:r[1]};return e.hooks.trigger(e.hooks.eventTypes.coordinateTransformation,o),e.handleMove(o.deltaX,o.deltaY,n)}),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.end,function(t){return!e.enabled||e.handleEnd(t)}),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.click,function(t){e.enabled&&!t._constructed&&e.handleClick(t)})},e.prototype.handleStart=function(e){var t=vi();this.fingerMoved=!1,this.contentMoved=!1,this.startTime=t,this.directionLockAction.reset(),this.scrollBehaviorX.start(),this.scrollBehaviorY.start(),this.animater.doStop(),this.scrollBehaviorX.resetStartPos(),this.scrollBehaviorY.resetStartPos(),this.hooks.trigger(this.hooks.eventTypes.start,e)},e.prototype.handleMove=function(e,t,n){if(!this.hooks.trigger(this.hooks.eventTypes.beforeMove,n)){var r=this.scrollBehaviorX.getAbsDist(e),o=this.scrollBehaviorY.getAbsDist(t),a=vi();if(this.checkMomentum(r,o,a))return!0;if(this.directionLockAction.checkMovingDirection(r,o,n))return this.actionsHandler.setInitiated(),!0;var i=this.directionLockAction.adjustDelta(e,t),l=this.scrollBehaviorX.getCurrentPos(),s=this.scrollBehaviorX.move(i.deltaX),A=this.scrollBehaviorY.getCurrentPos(),c=this.scrollBehaviorY.move(i.deltaY);if(!this.hooks.trigger(this.hooks.eventTypes.detectMovingDirection)){this.fingerMoved||(this.fingerMoved=!0);var u=s!==l||c!==A;this.contentMoved||u||this.hooks.trigger(this.hooks.eventTypes.contentNotMoved),!this.contentMoved&&u&&(this.contentMoved=!0,this.hooks.trigger(this.hooks.eventTypes.scrollStart)),this.contentMoved&&u&&(this.animater.translate({x:s,y:c}),this.dispatchScroll(a))}}},e.prototype.dispatchScroll=function(e){e-this.startTime>this.options.momentumLimitTime&&(this.startTime=e,this.scrollBehaviorX.updateStartPos(),this.scrollBehaviorY.updateStartPos(),1===this.options.probeType&&this.hooks.trigger(this.hooks.eventTypes.scroll,this.getCurrentPos())),this.options.probeType>1&&this.hooks.trigger(this.hooks.eventTypes.scroll,this.getCurrentPos())},e.prototype.checkMomentum=function(e,t,n){return n-this.endTime>this.options.momentumLimitTime&&this.options.momentumLimitDistance>t&&this.options.momentumLimitDistance>e},e.prototype.handleEnd=function(e){if(!this.hooks.trigger(this.hooks.eventTypes.beforeEnd,e)){var t=this.getCurrentPos();if(this.scrollBehaviorX.updateDirection(),this.scrollBehaviorY.updateDirection(),this.hooks.trigger(this.hooks.eventTypes.end,e,t))return!0;t=this.ensureIntegerPos(t),this.animater.translate(t),this.endTime=vi(),this.hooks.trigger(this.hooks.eventTypes.scrollEnd,t,this.endTime-this.startTime)}},e.prototype.ensureIntegerPos=function(e){this.ensuringInteger=!0;var t=e.x,n=e.y,r=this.scrollBehaviorX,o=r.minScrollPos,a=r.maxScrollPos,i=this.scrollBehaviorY,l=i.minScrollPos,s=i.maxScrollPos;return t=t>0?Math.ceil(t):Math.floor(t),n=n>0?Math.ceil(n):Math.floor(n),{x:t=wi(t,a,o),y:n=wi(n,s,l)}},e.prototype.handleClick=function(e){Oi(e.target,this.options.preventDefaultException)||(Si(e),e.stopPropagation())},e.prototype.getCurrentPos=function(){return{x:this.scrollBehaviorX.getCurrentPos(),y:this.scrollBehaviorY.getCurrentPos()}},e.prototype.refresh=function(){this.endTime=0},e.prototype.destroy=function(){this.hooks.destroy()},e}();function fl(e,t,n,r){var o=["momentum","momentumLimitTime","momentumLimitDistance","deceleration","swipeBounceTime","swipeTime","outOfBoundaryDampingFactor","specifiedIndexAsContent"].reduce(function(t,n){return t[n]=e[n],t},{});return o.scrollable=!!e[t],o.bounces=n,o.rect=r,o}function gl(e,t,n){n.forEach(function(n){var r,o;"string"==typeof n?r=o=n:(r=n.source,o=n.target),e.on(r,function(){for(var e=[],n=0;arguments.length>n;n++)e[n]=arguments[n];return t.trigger.apply(t,Ai([o],e))})})}var hl=function(){function e(e,t,n){this.wrapper=e,this.content=t,this.resizeTimeout=0,this.hooks=new qi(["beforeStart","beforeMove","beforeScrollStart","scrollStart","scroll","beforeEnd","scrollEnd","resize","touchEnd","end","flick","scrollCancel","momentum","scrollTo","minDistanceScroll","scrollToElement","beforeRefresh"]),this.options=n;var r,o=this.options.bounce,a=o.top,i=o.bottom;this.scrollBehaviorX=new Al(e,t,fl(n,"scrollX",[o.left,o.right],{size:"width",position:"left"})),this.scrollBehaviorY=new Al(e,t,fl(n,"scrollY",[a,i],{size:"height",position:"top"})),this.translater=new tl(this.content),this.animater=function(e,t,n){var r=n.useTransition,o={};return Object.defineProperty(o,"probeType",{enumerable:!0,configurable:!1,get:function(){return n.probeType}}),r?new rl(e,t,o):new ol(e,t,o)}(this.content,this.translater,this.options),this.actionsHandler=new $i(this.options.bindToTarget?this.content:e,(r=this.options,["click","bindToWrapper","disableMouse","disableTouch","preventDefault","stopPropagation","tagException","preventDefaultException","autoEndDistance"].reduce(function(e,t){return e[t]=r[t],e},{}))),this.actions=new pl(this.scrollBehaviorX,this.scrollBehaviorY,this.actionsHandler,this.animater,this.options);var l=this.resize.bind(this);this.resizeRegister=new Ji(window,[{name:"orientationchange",handler:l},{name:"resize",handler:l}]),this.registerTransitionEnd(),this.init()}return e.prototype.init=function(){var e=this;this.bindTranslater(),this.bindAnimater(),this.bindActions(),this.hooks.on(this.hooks.eventTypes.scrollEnd,function(){e.togglePointerEvents(!0)})},e.prototype.registerTransitionEnd=function(){this.transitionEndRegister=new Ji(this.content,[{name:Mi.transitionEnd,handler:this.transitionEnd.bind(this)}])},e.prototype.bindTranslater=function(){var e=this,t=this.translater.hooks;t.on(t.eventTypes.beforeTranslate,function(t){e.options.translateZ&&t.push(e.options.translateZ)}),t.on(t.eventTypes.translate,function(t){var n=e.getCurrentPos();e.updatePositions(t),!0!==e.actions.ensuringInteger?t.x===n.x&&t.y===n.y||e.togglePointerEvents(!1):e.actions.ensuringInteger=!1})},e.prototype.bindAnimater=function(){var e=this;this.animater.hooks.on(this.animater.hooks.eventTypes.end,function(t){e.resetPosition(e.options.bounceTime)||(e.animater.setPending(!1),e.hooks.trigger(e.hooks.eventTypes.scrollEnd,t))}),gl(this.animater.hooks,this.hooks,[{source:this.animater.hooks.eventTypes.move,target:this.hooks.eventTypes.scroll},{source:this.animater.hooks.eventTypes.forceStop,target:this.hooks.eventTypes.scrollEnd}])},e.prototype.bindActions=function(){var e=this,t=this.actions;gl(t.hooks,this.hooks,[{source:t.hooks.eventTypes.start,target:this.hooks.eventTypes.beforeStart},{source:t.hooks.eventTypes.start,target:this.hooks.eventTypes.beforeScrollStart},{source:t.hooks.eventTypes.beforeMove,target:this.hooks.eventTypes.beforeMove},{source:t.hooks.eventTypes.scrollStart,target:this.hooks.eventTypes.scrollStart},{source:t.hooks.eventTypes.scroll,target:this.hooks.eventTypes.scroll},{source:t.hooks.eventTypes.beforeEnd,target:this.hooks.eventTypes.beforeEnd}]),t.hooks.on(t.hooks.eventTypes.end,function(n,r){return e.hooks.trigger(e.hooks.eventTypes.touchEnd,r),!!e.hooks.trigger(e.hooks.eventTypes.end,r)||(!(t.fingerMoved||(e.hooks.trigger(e.hooks.eventTypes.scrollCancel),!e.checkClick(n)))||(e.resetPosition(e.options.bounceTime,Vi.bounce)?(e.animater.setForceStopped(!1),!0):void 0))}),t.hooks.on(t.hooks.eventTypes.scrollEnd,function(n,r){if(e.checkFlick(r,Math.abs(n.x-e.scrollBehaviorX.startPos),Math.abs(n.y-e.scrollBehaviorY.startPos)))return e.animater.setForceStopped(!1),void e.hooks.trigger(e.hooks.eventTypes.flick);e.momentum(n,r)?e.animater.setForceStopped(!1):(t.contentMoved&&e.hooks.trigger(e.hooks.eventTypes.scrollEnd,n),e.animater.forceStopped&&e.animater.setForceStopped(!1))})},e.prototype.checkFlick=function(e,t,n){if(this.hooks.events.flick.length>1&&this.options.flickLimitTime>e&&this.options.flickLimitDistance>t&&this.options.flickLimitDistance>n&&(n>1||t>1))return!0},e.prototype.momentum=function(e,t){var n={time:0,easing:Vi.swiper,newX:e.x,newY:e.y},r=this.scrollBehaviorX.end(t),o=this.scrollBehaviorY.end(t);if(n.newX=bi(r.destination)?n.newX:r.destination,n.newY=bi(o.destination)?n.newY:o.destination,n.time=Math.max(r.duration,o.duration),this.hooks.trigger(this.hooks.eventTypes.momentum,n,this),n.newX!==e.x||n.newY!==e.y)return(n.newX>this.scrollBehaviorX.minScrollPos||this.scrollBehaviorX.maxScrollPos>n.newX||n.newY>this.scrollBehaviorY.minScrollPos||this.scrollBehaviorY.maxScrollPos>n.newY)&&(n.easing=Vi.swipeBounce),this.scrollTo(n.newX,n.newY,n.time,n.easing),!0},e.prototype.checkClick=function(e){var t=this.animater.forceStopped;if(this.hooks.trigger(this.hooks.eventTypes.checkClick))return this.animater.setForceStopped(!1),!0;if(!t){var n=this.options.dblclick,r=!1;if(n&&this.lastClickTime){var o=n.delay,a=void 0===o?300:o;vi()-this.lastClickTime<a&&(r=!0,function(e){Ri(e,"dblclick")}(e))}return this.options.tap&&function(e,t){var n=document.createEvent("Event");n.initEvent(t,!0,!0),n.pageX=e.pageX,n.pageY=e.pageY,e.target.dispatchEvent(n)}(e,this.options.tap),this.options.click&&!Oi(e.target,this.options.preventDefaultException)&&Ri(e),this.lastClickTime=r?null:vi(),!0}return!1},e.prototype.resize=function(){var e=this;this.actions.enabled&&(gi&&(this.wrapper.scrollTop=0),clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(function(){e.hooks.trigger(e.hooks.eventTypes.resize)},this.options.resizePolling))},e.prototype.transitionEnd=function(e){e.target===this.content&&this.animater.pending&&(this.animater.transitionTime(),this.resetPosition(this.options.bounceTime,Vi.bounce)||(this.animater.setPending(!1),3!==this.options.probeType&&this.hooks.trigger(this.hooks.eventTypes.scrollEnd,this.getCurrentPos())))},e.prototype.togglePointerEvents=function(e){void 0===e&&(e=!0);for(var t=this.content.children.length?this.content.children:[this.content],n=e?"auto":"none",r=0;t.length>r;r++){var o=t[r];o.isBScrollContainer||(o.style.pointerEvents=n)}},e.prototype.refresh=function(e){var t=this.setContent(e);this.hooks.trigger(this.hooks.eventTypes.beforeRefresh),this.scrollBehaviorX.refresh(e),this.scrollBehaviorY.refresh(e),t&&(this.translater.setContent(e),this.animater.setContent(e),this.transitionEndRegister.destroy(),this.registerTransitionEnd(),this.options.bindToTarget&&this.actionsHandler.setContent(e)),this.actions.refresh(),this.wrapperOffset=Fi(this.wrapper)},e.prototype.setContent=function(e){var t=e!==this.content;return t&&(this.content=e),t},e.prototype.scrollBy=function(e,t,n,r){void 0===n&&(n=0);var o=this.getCurrentPos();this.scrollTo(e+=o.x,t+=o.y,n,r=r||Vi.bounce)},e.prototype.scrollTo=function(e,t,n,r,o){void 0===n&&(n=0),void 0===r&&(r=Vi.bounce),void 0===o&&(o={start:{},end:{}});var a=this.options.useTransition?r.style:r.fn,i=this.getCurrentPos(),l=si({x:i.x,y:i.y},o.start),s=si({x:e,y:t},o.end);(this.hooks.trigger(this.hooks.eventTypes.scrollTo,s),function(e,t){for(var n=0,r=Object.keys(e);r.length>n;n++){var o=r[n];if(e[o]!==t[o])return!1}return!0}(l,s))||(1>Math.abs(s.x-l.x)&&1>Math.abs(s.y-l.y)&&(n=0,this.hooks.trigger(this.hooks.eventTypes.minDistanceScroll)),this.animater.move(l,s,n,a))},e.prototype.scrollToElement=function(e,t,n,r,o){var a=Ei(e),i=Fi(a),l=function(e,t,n){return"number"==typeof e?e:e?Math.round(t/2-n/2):0};n=l(n,a.offsetWidth,this.wrapper.offsetWidth),r=l(r,a.offsetHeight,this.wrapper.offsetHeight);var s=function(e,t,n,r){return e=r.adjustPosition((e-=t)-n)};i.left=s(i.left,this.wrapperOffset.left,n,this.scrollBehaviorX),i.top=s(i.top,this.wrapperOffset.top,r,this.scrollBehaviorY),this.hooks.trigger(this.hooks.eventTypes.scrollToElement,a,i)||this.scrollTo(i.left,i.top,t,o)},e.prototype.resetPosition=function(e,t){void 0===e&&(e=0),void 0===t&&(t=Vi.bounce);var n=this.scrollBehaviorX.checkInBoundary(),r=n.position,o=n.inBoundary,a=this.scrollBehaviorY.checkInBoundary(),i=a.position;return(!o||!a.inBoundary)&&(hi&&this.reflow(),this.scrollTo(r,i,e,t),!0)},e.prototype.reflow=function(){this._reflow=this.content.offsetHeight},e.prototype.updatePositions=function(e){this.scrollBehaviorX.updatePosition(e.x),this.scrollBehaviorY.updatePosition(e.y)},e.prototype.getCurrentPos=function(){return this.actions.getCurrentPos()},e.prototype.enable=function(){this.actions.enabled=!0},e.prototype.disable=function(){Wi(this.animater.timer),this.actions.enabled=!1},e.prototype.destroy=function(){var e=this;["resizeRegister","transitionEndRegister","actionsHandler","actions","hooks","animater","translater","scrollBehaviorX","scrollBehaviorY"].forEach(function(t){return e[t].destroy()})},e}(),ml=function(e){function t(t,n){var r=e.call(this,["refresh","contentChanged","enable","disable","beforeScrollStart","scrollStart","scroll","scrollEnd","scrollCancel","touchEnd","flick","destroy"])||this,o=Ei(t);return o?(r.plugins={},r.options=(new Zi).merge(n).process(),r.setContent(o).valid?(r.hooks=new qi(["refresh","enable","disable","destroy","beforeInitialScrollTo","contentChanged"]),r.init(o),r):r):(ui("Can not resolve the wrapper DOM."),r)}return li(t,e),t.use=function(e){var n=e.pluginName;return t.plugins.some(function(t){return e===t.ctor})?t:bi(n)?(ui("Plugin Class must specify plugin's name in static property by 'pluginName' field."),t):(t.pluginsMap[n]=!0,t.plugins.push({name:n,applyOrder:e.applyOrder,ctor:e}),t)},t.prototype.setContent=function(e){var t=!1,n=!0,r=e.children[this.options.specifiedIndexAsContent];return r?(t=this.content!==r)&&(this.content=r):(ui("The wrapper need at least one child element to be content element to scroll."),n=!1),{valid:n,contentChanged:t}},t.prototype.init=function(e){var t=this;this.wrapper=e,e.isBScrollContainer=!0,this.scroller=new hl(e,this.content,this.options),this.scroller.hooks.on(this.scroller.hooks.eventTypes.resize,function(){t.refresh()}),this.eventBubbling(),this.handleAutoBlur(),this.enable(),this.proxy(ci),this.applyPlugins(),this.refreshWithoutReset(this.content);var n=this.options,r={x:n.startX,y:n.startY};this.hooks.trigger(this.hooks.eventTypes.beforeInitialScrollTo,r)||this.scroller.scrollTo(r.x,r.y)},t.prototype.applyPlugins=function(){var e=this,n=this.options;t.plugins.sort(function(e,t){var n,r=((n={}).pre=-1,n.post=1,n);return(e.applyOrder?r[e.applyOrder]:0)-(t.applyOrder?r[t.applyOrder]:0)}).forEach(function(t){var r=t.ctor;n[t.name]&&"function"==typeof r&&(e.plugins[t.name]=new r(e))})},t.prototype.handleAutoBlur=function(){this.options.autoBlur&&this.on(this.eventTypes.beforeScrollStart,function(){var e=document.activeElement;!e||"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName||e.blur()})},t.prototype.eventBubbling=function(){gl(this.scroller.hooks,this,[this.eventTypes.beforeScrollStart,this.eventTypes.scrollStart,this.eventTypes.scroll,this.eventTypes.scrollEnd,this.eventTypes.scrollCancel,this.eventTypes.touchEnd,this.eventTypes.flick])},t.prototype.refreshWithoutReset=function(e){this.scroller.refresh(e),this.hooks.trigger(this.hooks.eventTypes.refresh,e),this.trigger(this.eventTypes.refresh,e)},t.prototype.proxy=function(e){var t=this;e.forEach(function(e){!function(e,t,n){Xi.get=function(){return function(e,t){for(var n=t.split("."),r=0;n.length-1>r;r++)if("object"!=typeof(e=e[n[r]])||!e)return;var o=n.pop();return"function"==typeof e[o]?function(){return e[o].apply(e,arguments)}:e[o]}(this,t)},Xi.set=function(e){!function(e,t,n){for(var r,o=t.split("."),a=0;o.length-1>a;a++)e[r=o[a]]||(e[r]={}),e=e[r];e[o.pop()]=n}(this,t,e)},Object.defineProperty(e,n,Xi)}(t,e.sourceKey,e.key)})},t.prototype.refresh=function(){var e=this.setContent(this.wrapper),t=e.contentChanged;if(e.valid){var n=this.content;this.refreshWithoutReset(n),t&&(this.hooks.trigger(this.hooks.eventTypes.contentChanged,n),this.trigger(this.eventTypes.contentChanged,n)),this.scroller.resetPosition()}},t.prototype.enable=function(){this.scroller.enable(),this.hooks.trigger(this.hooks.eventTypes.enable),this.trigger(this.eventTypes.enable)},t.prototype.disable=function(){this.scroller.disable(),this.hooks.trigger(this.hooks.eventTypes.disable),this.trigger(this.eventTypes.disable)},t.prototype.destroy=function(){this.hooks.trigger(this.hooks.eventTypes.destroy),this.trigger(this.eventTypes.destroy),this.scroller.destroy()},t.prototype.eventRegister=function(e){this.registerType(e)},t.plugins=[],t.pluginsMap={},t}(qi);function _l(e,t){return new ml(e,t)}_l.use=ml.use,_l.plugins=ml.plugins,_l.pluginsMap=ml.pluginsMap;var vl=_l,yl="undefined"!=typeof window,bl=yl&&navigator.userAgent.toLowerCase();
4
4
  /*!
5
5
  * better-scroll / pull-up
6
6
  * (c) 2016-2023 ustbhuangyi
@@ -110,7 +110,7 @@ var n,r,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.toS
110
110
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
111
111
  * SOFTWARE.
112
112
  */
113
- var oN="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,aN=function(){for(var e=["Edge","Trident","Firefox"],t=0;e.length>t;t+=1)if(oN&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var iN=oN&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},aN))}};function lN(e){return e&&"[object Function]"==={}.toString.call(e)}function sN(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function AN(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function cN(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=sN(e);return/(auto|scroll|overlay)/.test(t.overflow+t.overflowY+t.overflowX)?e:cN(AN(e))}function uN(e){return e&&e.referenceNode?e.referenceNode:e}var dN=oN&&!(!window.MSInputMethodContext||!document.documentMode),pN=oN&&/MSIE 10/.test(navigator.userAgent);function fN(e){return 11===e?dN:10===e?pN:dN||pN}function gN(e){if(!e)return document.documentElement;for(var t=fN(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===sN(n,"position")?gN(n):n:e?e.ownerDocument.documentElement:document.documentElement}function hN(e){return null!==e.parentNode?hN(e.parentNode):e}function mN(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,a=document.createRange();a.setStart(r,0),a.setEnd(o,0);var i,l,s=a.commonAncestorContainer;if(e!==s&&t!==s||r.contains(o))return"BODY"===(l=(i=s).nodeName)||"HTML"!==l&&gN(i.firstElementChild)!==i?gN(s):s;var A=hN(e);return A.host?mN(A.host,t):mN(e,hN(t).host)}function _N(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;return"BODY"===n||"HTML"===n?(e.ownerDocument.scrollingElement||e.ownerDocument.documentElement)[t]:e[t]}function vN(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function yN(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],fN(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function bN(e){var t=e.body,n=e.documentElement,r=fN(10)&&getComputedStyle(n);return{height:yN("Height",t,n,r),width:yN("Width",t,n,r)}}var wN=function(){function e(e,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),xN=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},BN=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function CN(e){return BN({},e,{right:e.left+e.width,bottom:e.top+e.height})}function EN(e){var t={};try{if(fN(10)){t=e.getBoundingClientRect();var n=_N(e,"top"),r=_N(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a="HTML"===e.nodeName?bN(e.ownerDocument):{},i=e.offsetWidth-(a.width||e.clientWidth||o.width),l=e.offsetHeight-(a.height||e.clientHeight||o.height);if(i||l){var s=sN(e);i-=vN(s,"x"),l-=vN(s,"y"),o.width-=i,o.height-=l}return CN(o)}function kN(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=fN(10),o="HTML"===t.nodeName,a=EN(e),i=EN(t),l=cN(e),s=sN(t),A=parseFloat(s.borderTopWidth),c=parseFloat(s.borderLeftWidth);n&&o&&(i.top=Math.max(i.top,0),i.left=Math.max(i.left,0));var u=CN({top:a.top-i.top-A,left:a.left-i.left-c,width:a.width,height:a.height});if(u.marginTop=0,u.marginLeft=0,!r&&o){var d=parseFloat(s.marginTop),p=parseFloat(s.marginLeft);u.top-=A-d,u.bottom-=A-d,u.left-=c-p,u.right-=c-p,u.marginTop=d,u.marginLeft=p}return(r&&!n?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=_N(t,"top"),o=_N(t,"left"),a=n?-1:1;return e.top+=r*a,e.bottom+=r*a,e.left+=o*a,e.right+=o*a,e}(u,t)),u}function IN(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===sN(e,"position"))return!0;var n=AN(e);return!!n&&IN(n)}function SN(e){if(!e||!e.parentElement||fN())return document.documentElement;for(var t=e.parentElement;t&&"none"===sN(t,"transform");)t=t.parentElement;return t||document.documentElement}function FN(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a={top:0,left:0},i=o?SN(e):mN(e,uN(t));if("viewport"===r)a=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=kN(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),i=t?0:_N(n),l=t?0:_N(n,"left");return CN({top:i-r.top+r.marginTop,left:l-r.left+r.marginLeft,width:o,height:a})}(i,o);else{var l=void 0;"scrollParent"===r?"BODY"===(l=cN(AN(t))).nodeName&&(l=e.ownerDocument.documentElement):l="window"===r?e.ownerDocument.documentElement:r;var s=kN(l,i,o);if("HTML"!==l.nodeName||IN(i))a=s;else{var A=bN(e.ownerDocument),c=A.height,u=A.width;a.top+=s.top-s.marginTop,a.bottom=c+s.top,a.left+=s.left-s.marginLeft,a.right=u+s.left}}var d="number"==typeof(n=n||0);return a.left+=d?n:n.left||0,a.top+=d?n:n.top||0,a.right-=d?n:n.right||0,a.bottom-=d?n:n.bottom||0,a}function PN(e){return e.width*e.height}function LN(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var i=FN(n,r,a,o),l={top:{width:i.width,height:t.top-i.top},right:{width:i.right-t.right,height:i.height},bottom:{width:i.width,height:i.bottom-t.bottom},left:{width:t.left-i.left,height:i.height}},s=Object.keys(l).map(function(e){return BN({key:e},l[e],{area:PN(l[e])})}).sort(function(e,t){return t.area-e.area}),A=s.filter(function(e){return e.width>=n.clientWidth&&e.height>=n.clientHeight}),c=A.length>0?A[0].key:s[0].key,u=e.split("-")[1];return c+(u?"-"+u:"")}function UN(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return kN(n,r?SN(t):mN(t,uN(n)),r)}function QN(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0);return{width:e.offsetWidth+(parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0)),height:e.offsetHeight+n}}function NN(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function MN(e,t,n){n=n.split("-")[0];var r=QN(e),o={width:r.width,height:r.height},a=-1!==["right","left"].indexOf(n),i=a?"top":"left",l=a?"left":"top",s=a?"height":"width",A=a?"width":"height";return o[i]=t[i]+t[s]/2-r[s]/2,o[l]=n===l?t[l]-r[A]:t[NN(l)],o}function DN(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function TN(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=DN(e,function(e){return e[t]===n});return e.indexOf(r)}(e,"name",n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&lN(n)&&(t.offsets.popper=CN(t.offsets.popper),t.offsets.reference=CN(t.offsets.reference),t=n(t,e))}),t}function ON(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=UN(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=LN(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=MN(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=TN(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function HN(e,t){return e.some(function(e){return e.enabled&&e.name===t})}function RN(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;t.length>r;r++){var o=t[r],a=o?""+o+n:e;if(void 0!==document.body.style[a])return a}return null}function VN(){return this.state.isDestroyed=!0,HN(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[RN("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function jN(e){var t=e.ownerDocument;return t?t.defaultView:window}function zN(e,t,n,r){var o="BODY"===e.nodeName,a=o?e.ownerDocument.defaultView:e;a.addEventListener(t,n,{passive:!0}),o||zN(cN(a.parentNode),t,n,r),r.push(a)}function GN(e,t,n,r){n.updateBound=r,jN(e).addEventListener("resize",n.updateBound,{passive:!0});var o=cN(e);return zN(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function KN(){this.state.eventsEnabled||(this.state=GN(this.reference,0,this.state,this.scheduleUpdate))}function WN(){var e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.state,jN(this.reference).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function YN(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function XN(e,t){Object.keys(t).forEach(function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&YN(t[n])&&(r="px"),e.style[n]=t[n]+r})}var qN=oN&&/Firefox/i.test(navigator.userAgent);function JN(e,t,n){var r=DN(e,function(e){return e.name===t}),o=!!r&&e.some(function(e){return e.name===n&&e.enabled&&r.order>e.order});if(!o){var a="`"+t+"`";console.warn("`"+n+"`"+" modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return o}var ZN=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],$N=ZN.slice(3);function eM(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=$N.indexOf(e),r=$N.slice(n+1).concat($N.slice(0,n));return t?r.reverse():r}var tM="flip",nM="clockwise",rM="counterclockwise";function oM(e,t,n,r){var o=[0,0],a=-1!==["right","left"].indexOf(r),i=e.split(/(\+|\-)/).map(function(e){return e.trim()}),l=i.indexOf(DN(i,function(e){return-1!==e.search(/,|\s/)}));i[l]&&-1===i[l].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var s=/\s*,\s*|\s+/,A=-1!==l?[i.slice(0,l).concat([i[l].split(s)[0]]),[i[l].split(s)[1]].concat(i.slice(l+1))]:[i];return A=A.map(function(e,r){var o=(1===r?!a:a)?"height":"width",i=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,i=!0,e):i?(e[e.length-1]+=t,i=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+o[1],i=o[2];if(!a)return e;if(0===i.indexOf("%")){return CN("%p"===i?n:r)[t]/100*a}if("vh"===i||"vw"===i)return("vh"===i?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*a;return a}(e,o,t,n)})}),A.forEach(function(e,t){e.forEach(function(n,r){YN(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))})}),o}var aM={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,a=o.reference,i=o.popper,l=-1!==["bottom","top"].indexOf(n),s=l?"left":"top",A=l?"width":"height",c={start:xN({},s,a[s]),end:xN({},s,a[s]+a[A]-i[A])};e.offsets.popper=BN({},i,c[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.offsets,o=r.popper,a=r.reference,i=e.placement.split("-")[0],l=void 0;return l=YN(+n)?[+n,0]:oM(n,o,a,i),"left"===i?(o.top+=l[0],o.left-=l[1]):"right"===i?(o.top+=l[0],o.left+=l[1]):"top"===i?(o.left+=l[0],o.top-=l[1]):"bottom"===i&&(o.left+=l[0],o.top+=l[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||gN(e.instance.popper);e.instance.reference===n&&(n=gN(n));var r=RN("transform"),o=e.instance.popper.style,a=o.top,i=o.left,l=o[r];o.top="",o.left="",o[r]="";var s=FN(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=a,o.left=i,o[r]=l,t.boundaries=s;var A=e.offsets.popper,c={primary:function(e){var n=A[e];return s[e]>A[e]&&!t.escapeWithReference&&(n=Math.max(A[e],s[e])),xN({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=A[n];return A[e]>s[e]&&!t.escapeWithReference&&(r=Math.min(A[n],s[e]-("right"===e?A.width:A.height))),xN({},n,r)}};return t.priority.forEach(function(e){A=BN({},A,c[-1!==["left","top"].indexOf(e)?"primary":"secondary"](e))}),e.offsets.popper=A,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],a=Math.floor,i=-1!==["top","bottom"].indexOf(o),l=i?"right":"bottom",s=i?"left":"top",A=i?"width":"height";return n[l]<a(r[s])&&(e.offsets.popper[s]=a(r[s])-n[A]),n[s]>a(r[l])&&(e.offsets.popper[s]=a(r[l])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!JN(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],a=e.offsets,i=a.popper,l=a.reference,s=-1!==["left","right"].indexOf(o),A=s?"height":"width",c=s?"Top":"Left",u=c.toLowerCase(),d=s?"left":"top",p=s?"bottom":"right",f=QN(r)[A];i[u]>l[p]-f&&(e.offsets.popper[u]-=i[u]-(l[p]-f)),l[u]+f>i[p]&&(e.offsets.popper[u]+=l[u]+f-i[p]),e.offsets.popper=CN(e.offsets.popper);var g=l[u]+l[A]/2-f/2,h=sN(e.instance.popper),m=g-e.offsets.popper[u]-parseFloat(h["margin"+c])-parseFloat(h["border"+c+"Width"]);return m=Math.max(Math.min(i[A]-f,m),0),e.arrowElement=r,e.offsets.arrow=(xN(n={},u,Math.round(m)),xN(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(HN(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=FN(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=NN(r),a=e.placement.split("-")[1]||"",i=[];switch(t.behavior){case tM:i=[r,o];break;case nM:i=eM(r);break;case rM:i=eM(r,!0);break;default:i=t.behavior}return i.forEach(function(l,s){if(r!==l||i.length===s+1)return e;r=e.placement.split("-")[0],o=NN(r);var A=e.offsets.popper,c=e.offsets.reference,u=Math.floor,d="left"===r&&u(A.right)>u(c.left)||"right"===r&&u(A.left)<u(c.right)||"top"===r&&u(A.bottom)>u(c.top)||"bottom"===r&&u(A.top)<u(c.bottom),p=u(A.left)<u(n.left),f=u(A.right)>u(n.right),g=u(A.top)<u(n.top),h=u(A.bottom)>u(n.bottom),m="left"===r&&p||"right"===r&&f||"top"===r&&g||"bottom"===r&&h,_=-1!==["top","bottom"].indexOf(r),v=!!t.flipVariations&&(_&&"start"===a&&p||_&&"end"===a&&f||!_&&"start"===a&&g||!_&&"end"===a&&h)||!!t.flipVariationsByContent&&(_&&"start"===a&&f||_&&"end"===a&&p||!_&&"start"===a&&h||!_&&"end"===a&&g);(d||m||v)&&(e.flipped=!0,(d||m)&&(r=i[s+1]),v&&(a=function(e){return"end"===e?"start":"start"===e?"end":e}(a)),e.placement=r+(a?"-"+a:""),e.offsets.popper=BN({},e.offsets.popper,MN(e.instance.popper,e.offsets.reference,e.placement)),e=TN(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,a=r.reference,i=-1!==["left","right"].indexOf(n);return o[i?"left":"top"]=a[n]-(-1===["top","left"].indexOf(n)?o[i?"width":"height"]:0),e.placement=NN(t),e.offsets.popper=CN(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!JN(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=DN(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(n.top>t.bottom||t.left>n.right||t.top>n.bottom||n.left>t.right){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,o=e.offsets.popper,a=DN(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==a&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var i=void 0!==a?a:t.gpuAcceleration,l=gN(e.instance.popper),s=EN(l),A={position:o.position},c=function(e,t){var n=e.offsets,r=n.popper,o=Math.round,a=Math.floor,i=function(e){return e},l=o(n.reference.width),s=o(r.width),A=-1!==["left","right"].indexOf(e.placement),c=-1!==e.placement.indexOf("-"),u=t?A||c||l%2==s%2?o:a:i,d=t?o:i;return{left:u(l%2==1&&s%2==1&&!c&&t?r.left-1:r.left),top:d(r.top),bottom:d(r.bottom),right:u(r.right)}}(e,2>window.devicePixelRatio||!qN),u="bottom"===n?"top":"bottom",d="right"===r?"left":"right",p=RN("transform"),f=void 0,g=void 0;if(g="bottom"===u?"HTML"===l.nodeName?-l.clientHeight+c.bottom:-s.height+c.bottom:c.top,f="right"===d?"HTML"===l.nodeName?-l.clientWidth+c.right:-s.width+c.right:c.left,i&&p)A[p]="translate3d("+f+"px, "+g+"px, 0)",A[u]=0,A[d]=0,A.willChange="transform";else{var h="right"===d?-1:1;A[u]=g*("bottom"===u?-1:1),A[d]=f*h,A.willChange=u+", "+d}return e.attributes=BN({},{"x-placement":e.placement},e.attributes),e.styles=BN({},A,e.styles),e.arrowStyles=BN({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return XN(e.instance.popper,e.styles),t=e.instance.popper,Object.keys(n=e.attributes).forEach(function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)}),e.arrowElement&&Object.keys(e.arrowStyles).length&&XN(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var a=UN(o,t,e,n.positionFixed),i=LN(n.placement,a,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",i),XN(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},iM={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:aM},lM=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=iN(this.update.bind(this)),this.options=BN({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(BN({},e.Defaults.modifiers,o.modifiers)).forEach(function(t){r.options.modifiers[t]=BN({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return BN({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&lN(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return wN(e,[{key:"update",value:function(){return ON.call(this)}},{key:"destroy",value:function(){return VN.call(this)}},{key:"enableEventListeners",value:function(){return KN.call(this)}},{key:"disableEventListeners",value:function(){return WN.call(this)}}]),e}();lM.Utils=("undefined"!=typeof window?window:global).PopperUtils,lM.placements=ZN,lM.Defaults=iM;var sM=function(e){do{e+=~~(1e6*Math.random())}while("undefined"!=typeof document&&document.getElementById(e));return e},AM=("undefined"!=typeof window&&void 0!==window.document&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&window,{name:"kpm0v2",styles:"position:absolute;display:block;width:16px;height:8px;margin:0 5px;&:before,&:after{position:absolute;display:block;content:'';border-color:transparent;border-style:solid;}"}),cM=function(e){var t=AQ(e,["placement"]);return ZQ(r.Fragment,null,ZQ($Q,{styles:uM}),ZQ("div",lQ({},t,{"data-arrow":"true",css:AM})))},uM={name:"rvo98s",styles:"[x-placement^='top']{margin-bottom:8px;[data-arrow]{bottom:-9px;}[data-arrow]:before{bottom:0;border-width:8px 8px 0;border-top-color:rgba(0,0,0,0.25);}[data-arrow]:after{bottom:1px;border-width:8px 8px 0;border-top-color:#fff;}}[x-placement^='right']{margin-left:8px;[data-arrow]{left:-9px;width:8px;height:16px;margin:5px 0;}[data-arrow]:before{left:0;border-width:8px 8px 8px 0;border-right-color:rgba(0,0,0,0.25);}[data-arrow]:after{left:1px;border-width:8px 8px 8px 0;border-right-color:#fff;}}[x-placement^='bottom']{margin-top:8px;[data-arrow]{top:-9px;}[data-arrow]:before{top:0;border-width:0 8px 8px 8px;border-bottom-color:rgba(0,0,0,0.25);}[data-arrow]:after{top:1px;border-width:0 8px 8px 8px;border-bottom-color:#fff;}}[x-placement^='left']{margin-right:8px;[data-arrow]{right:-9px;width:8px;height:16px;margin:5px 0;}[data-arrow]:before{right:0;border-width:8px 0 8px 8px;border-left-color:rgba(0,0,0,0.25);}[data-arrow]:after{right:1px;border-width:8px 0 8px 8px;border-left-color:#fff;}}"},dM=function(e){var t,n,o,a=e.header,i=e.body,l=e.children,s=e.placement,A=e.trigger,c=e.styles,u=AQ(e,["header","body","children","placement","trigger","styles"]),d=fe.default.Children.only(l),p=r.useRef(null),f=r.useState(!1),g=f[0],h=f[1],m=r.useState(!1),_=m[0],v=m[1],y=r.useState({popoverId:null,referenceId:null,arrowId:null}),b=y[0],w=y[1],x=b.popoverId,B=b.referenceId,C=b.arrowId;t=p,n=function(e){e.target.id===B||document.getElementById(B).contains(e.target)||h(!1)},o=r.useRef(),r.useEffect(function(){o.current=n},[n]),r.useEffect(function(){var e=function(e){t.current&&!t.current.contains(e.target)&&o.current(event)};return rN.forEach(function(t){document.addEventListener(t,e,{passive:!0})}),function(){rN.forEach(function(t){document.removeEventListener(t,e,{passive:!0})})}},[t,n]),r.useEffect(function(){if(!x)return w({popoverId:sM("popover"),referenceId:sM("reference"),arrowId:sM("arrow")});var e=document.getElementById(x),t=document.getElementById(B),n=document.getElementById(C);e&&t&&n&&(new lM(t,e,{placement:s,modifiers:{arrow:{element:n}}}),v(g))},[g]);var E={content:[pM.content,c.content],header:[pM.header,c.header],body:[pM.body,c.body]};return ZQ(r.Fragment,null,x?ZQ("div",lQ({},u,{id:x,ref:p,css:E.content,style:_?{display:"block"}:{}}),ZQ(cM,{id:C}),a?ZQ("div",{css:E.header},a):null,ZQ("div",{css:E.body},i)):null,fe.default.cloneElement(d,lQ({},d.props,{id:B,onClick:function(){"click"===A&&h(!g)}})))};dM.defaultProps={placement:"right",trigger:"click",styles:{}};var pM={content:{name:"106ha8s",styles:"display:none;max-width:300px;background-color:#fff;border-radius:4px;border:1px solid rgba(0,0,0,0.2);z-index:1060;"},header:{name:"12koz1z",styles:"padding:8px 12px;background-color:#f7f7f7;font-size:16px;font-weight:bold;border-top-left-radius:4px;border-top-right-radius:4px;"},body:{name:"k7kym8",styles:"padding:8px 12px;font-size:14px;border-bottom-left-radius:4px;border-bottom-right-radius:4px;"}};function fM(e){var t=e.touches;if(t&&t.length){var n=t[0];return{x:n.clientX,y:n.clientY}}return{x:e.clientX,y:e.clientY}}var gM={position:"relative",display:"inline-block",backgroundColor:"#ddd",borderRadius:5,userSelect:"none",boxSizing:"border-box"},hM={position:"absolute",backgroundColor:"#5e72e4",borderRadius:5,userSelect:"none",boxSizing:"border-box"},mM={position:"relative",display:"block",content:'""',width:18,height:18,backgroundColor:"#fff",borderRadius:"50%",boxShadow:"0 1px 1px rgba(0,0,0,.5)",userSelect:"none",cursor:"pointer",boxSizing:"border-box"},_M={x:{track:lQ({},gM,{width:200,height:10}),active:lQ({},hM,{top:0,height:"100%"}),thumb:lQ({},mM)},y:{track:lQ({},gM,{width:10,height:200}),active:lQ({},hM,{left:0,width:"100%"}),thumb:lQ({},mM)},xy:{track:{position:"relative",overflow:"hidden",width:200,height:200,backgroundColor:"#5e72e4",borderRadius:0},active:{},thumb:lQ({},mM)},disabled:{opacity:.5}},vM=function(e){var t=e.disabled,n=e.axis,o=e.x,a=e.y,i=e.xmin,l=e.xmax,s=e.ymin,A=e.ymax,c=e.xstep,u=e.ystep,d=e.onChange,p=e.onDragStart,f=e.onDragEnd,g=e.onClick,h=e.xreverse,m=e.yreverse,_=e.styles,v=AQ(e,["disabled","axis","x","y","xmin","xmax","ymin","ymax","xstep","ystep","onChange","onDragStart","onDragEnd","onClick","xreverse","yreverse","styles"]),y=r.useRef(null),b=r.useRef(null),w=r.useRef({}),x=r.useRef({});function B(e){var t=e.top,r=e.left;if(d){var o=y.current.getBoundingClientRect(),a=o.width,p=o.height,f=0,g=0;0>r&&(r=0),r>a&&(r=a),0>t&&(t=0),t>p&&(t=p),"x"!==n&&"xy"!==n||(f=r/a*(l-i)),"y"!==n&&"xy"!==n||(g=t/p*(A-s));var _=(0!==f?parseInt(f/c,10)*c:0)+i,v=(0!==g?parseInt(g/u,10)*u:0)+s;d({x:h?l-_+i:_,y:m?A-v+s:v})}}function C(e){if(!t){e.preventDefault();var n=b.current,r=fM(e);w.current={x:n.offsetLeft,y:n.offsetTop},x.current={x:r.x,y:r.y},document.addEventListener("mousemove",E),document.addEventListener("mouseup",k),document.addEventListener("touchmove",E,{passive:!1}),document.addEventListener("touchend",k),document.addEventListener("touchcancel",k),p&&p(e)}}function E(e){t||(e.preventDefault(),B(function(e){var t=fM(e);return{left:t.x+w.current.x-x.current.x,top:t.y+w.current.y-x.current.y}}(e)))}function k(e){t||(e.preventDefault(),document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",k),document.removeEventListener("touchmove",E,{passive:!1}),document.removeEventListener("touchend",k),document.removeEventListener("touchcancel",k),f&&f(e))}var I,S,F=((I=(a-s)/(A-s)*100)>100&&(I=100),0>I&&(I=0),"x"===n&&(I=0),(S=(o-i)/(l-i)*100)>100&&(S=100),0>S&&(S=0),"y"===n&&(S=0),{top:I,left:S}),P={};"x"===n&&(P.width=F.left+"%"),"y"===n&&(P.height=F.top+"%"),h&&(P.left=100-F.left+"%"),m&&(P.top=100-F.top+"%");var L={position:"absolute",transform:"translate(-50%, -50%)",left:h?100-F.left+"%":F.left+"%",top:m?100-F.top+"%":F.top+"%"};"x"===n?L.top="50%":"y"===n&&(L.left="50%");var U={track:lQ({},_M[n].track,{},_.track),active:lQ({},_M[n].active,{},_.active),thumb:lQ({},_M[n].thumb,{},_.thumb),disabled:lQ({},_M.disabled,{},_.disabled)};return ZQ("div",lQ({},v,{ref:y,css:JQ([U.track,t&&U.disabled],";label:Slider;"),onClick:function(e){if(!t){var n=fM(e),r=y.current.getBoundingClientRect();B({left:n.x-r.left,top:n.y-r.top}),g&&g(e)}}}),ZQ("div",{css:U.active,style:P}),ZQ("div",{ref:b,style:L,onTouchStart:C,onMouseDown:C,onClick:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},ZQ("div",{css:U.thumb})))};vM.defaultProps={disabled:!1,axis:"x",x:50,xmin:0,xmax:100,y:50,ymin:0,ymax:100,xstep:1,ystep:1,xreverse:!1,yreverse:!1,styles:{}};var yM="undefined"!=typeof navigator&&navigator.userAgent.match(/iPhone|iPad|iPod/i),bM=function(e){var t=e.step,n=e.min,o=e.max,a=e.value,i=e.onChange,l=e.onKeyDown,s=e.enableMobileNumericKeyboard,A=e.component,c=AQ(e,["step","min","max","value","onChange","onKeyDown","enableMobileNumericKeyboard","component"]),u=r.useState(a),d=u[0],p=u[1];r.useEffect(function(){p(a)},[a]);var f={value:d,onChange:function(e){var t=function(e){if(pt.default(e))return e;if(ft.default(e)){if(!(e=e.trim()))return"";var t=parseFloat(e);if(!dt.default(t))return t}return""}(e);p(e),i&&i(t)},onKeyDown:function(e){38===e.keyCode?i&&i(xM("+",a,o,n,t)):40===e.keyCode&&i&&i(xM("-",a,o,n,t)),l&&l(e)},onWheel:function(e){e.target.blur()}};return ZQ(A,lQ({},c,f,s?{css:wM,type:"number",inputMode:"numeric",pattern:yM?"[0-9]*":"",step:t,min:n,max:o}:{css:wM,type:"text"}))};bM.defaultProps={autoComplete:"off",enableMobileNumericKeyboard:!1,value:"",component:function(e){var t=e.onChange,n=AQ(e,["onChange"]);return ZQ("input",lQ({},n,{onChange:function(e){t&&t(e.target.value)}}))},step:1};var wM={MozAppearance:"textfield","&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}};function xM(e,t,n,r,o){if(""===t)return pt.default(r)?r:"";if(t="+"===e?t+o:t-o,pt.default(n)&&t>n)return n;if(pt.default(r)&&r>t)return r;var a=((""+o).split(".")[1]||[]).length;return a?parseFloat(t.toFixed(a)):t}function BM(e){return"#"===e[0]&&(e=e.substr(1)),3===e.length?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16)}:{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16)}}function CM(e,t,n){var r=[],o=(n/=100)*(t/=100),a=e/60,i=o*(1-Math.abs(a%2-1)),l=n-o;return{r:Math.round(255*((r=a>=0&&1>a?[o,i,0]:a>=1&&2>a?[i,o,0]:a>=2&&3>a?[0,o,i]:e>=3&&4>a?[0,i,o]:e>=4&&5>a?[i,0,o]:5>e||a>6?[0,0,0]:[o,0,i])[0]+l)),g:Math.round(255*(r[1]+l)),b:Math.round(255*(r[2]+l))}}function EM(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function kM(e,t,n){return"#"+EM(e)+EM(t)+EM(n)}function IM(e,t,n){var r,o=Math.max(e,t,n),a=o-Math.min(e,t,n);return 0>(r=Math.round(60*(r=0===a?0:e===o?(t-n)/a%6:t===o?(n-e)/a+2:(e-t)/a+4)))&&(r+=360),{h:r,s:Math.round(100*(0===o?0:a/o)),v:Math.round(o/255*100)}}function SM(e,t,n,r){return"rgba("+[e,t,n,r/100].join(",")+")"}function FM(e){var t,n=e=e.toLowerCase(),r=BM(n),o=r.r,a=r.g,i=r.b,l=IM(o,a,i),s=e.length>7?(t=e.substr(7),Math.round(parseInt("0x"+t,16)/255*100)):100;return lQ({},l,{r:o,g:a,b:i,a:s,hex:n,rgba:SM(o,a,i,s)})}function PM(e,t,n,r){return kM(e,t,n)+function(e){return(Math.round(e/100*255)+65536).toString(16).substr(-2)}(r)}var LM={name:"bzk4lp",styles:"width:100%;margin-top:10px;margin-bottom:10px;display:flex;"},UM={name:"lwa3hx",styles:"flex:1;margin-right:10px;"},QM=function(e){var t=e.color,n=e.onChange,r=e.disabled,o=t.r,a=t.g,i=t.b,l=t.a,s=t.h,A=t.s,c=t.v;function u(e){n&&n(lQ({},e,{rgba:SM(e.r,e.g,e.b,e.a),hex:PM(e.r,e.g,e.b,e.a)}))}function d(e,n,r){var o=CM(e,n,r),a=o.r,i=o.g,l=o.b,s=kM(a,i,l);u(lQ({},t,{h:e,s:n,v:r,r:a,g:i,b:l,hex:s}))}function p(e,n,r){var o=kM(e,n,r),a=IM(e,n,r);u(lQ({},t,{r:e,g:n,b:r,h:a.h,s:a.s,v:a.v,hex:o}))}function f(e){u(lQ({},t,{a:e}))}var g=SM(o,a,i,l),h="linear-gradient(to right, "+SM(o,a,i,0)+", "+SM(o,a,i,100)+")",m=function(e,t,n){var r=CM(e,t,n);return kM(r.r,r.g,r.b)}(s,100,100);return ZQ("div",{css:NM.picker,onClick:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},ZQ("div",{css:NM.selector,style:{backgroundColor:m}},ZQ("div",{css:NM.gradientWhite}),ZQ("div",{css:NM.gradientDark}),ZQ(vM,{axis:"xy",x:A,xmax:100,y:100-c,ymax:100,onChange:function(e){return d(s,e.x,100-e.y)},disabled:r,styles:{track:{width:"100%",height:"100%",background:"none"},thumb:{width:12,height:12,backgroundColor:"rgba(0,0,0,0)",border:"2px solid #fff",borderRadius:"50%"}}})),ZQ("div",{css:LM},ZQ("div",{css:UM},ZQ(vM,{axis:"x",x:s,xmax:359,onChange:function(e){return d(e.x,A,c)},disabled:r,styles:{track:{width:"100%",height:12,borderRadius:0,background:"linear-gradient(to left, #FF0000 0%, #FF0099 10%, #CD00FF 20%, #3200FF 30%, #0066FF 40%, #00FFFD 50%, #00FF66 60%, #35FF00 70%, #CDFF00 80%, #FF9900 90%, #FF0000 100%)"},active:{background:"none"},thumb:{width:5,height:14,borderRadius:0,backgroundColor:"#eee"}}}),ZQ(vM,{axis:"x",x:l,xmax:100,styles:{track:{width:"100%",height:12,borderRadius:0,background:h},active:{background:"none"},thumb:{width:5,height:14,borderRadius:0,backgroundColor:"#eee"}},onChange:function(e){return f(e.x)},disabled:r})),ZQ("div",{style:{backgroundColor:g,width:30,height:30}})),ZQ("div",{css:NM.inputs},ZQ("div",{css:NM.input},ZQ("input",{style:{width:70,textAlign:"left"},type:"text",value:t.hex,onChange:function(e){return function(e){var n=BM(e),r=n.r,o=n.g,a=n.b,i=IM(r,o,a);u(lQ({},t,{r:r,g:o,b:a,h:i.h,s:i.s,v:i.v,hex:e}))}(e.target.value)},onKeyUp:function(e){if(13===e.keyCode){var n=e.target.value.trim(),r=BM(n);u(lQ({},t,{r:r.r,g:r.g,b:r.b,a:l,hex:n}))}},disabled:r}),ZQ("div",null,"Hex")),ZQ("div",{css:NM.input},ZQ(bM,{min:0,max:255,value:o,onChange:function(e){return p(e,a,i)},disabled:r}),ZQ("div",null,"R")),ZQ("div",{css:NM.input},ZQ(bM,{min:0,max:255,value:a,onChange:function(e){return p(o,e,i)},disabled:r}),ZQ("div",null,"G")),ZQ("div",{css:NM.input},ZQ(bM,{min:0,max:255,value:i,onChange:function(e){return p(o,a,e)},disabled:r}),ZQ("div",null,"B")),ZQ("div",{css:NM.input},ZQ(bM,{min:0,max:100,value:l,onChange:function(e){return f(e)},disabled:r}),ZQ("div",null,"A"))))};QM.defaultProps={initialValue:"#5e72e4",disabled:!1};var NM={picker:{fontFamily:"'Helvetica Neue',Helvetica,Arial,sans-serif",width:230,"*":{userSelect:"none"}},selector:{position:"relative",width:230,height:230},gradientWhite:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%)"},gradientDark:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"linear-gradient(to bottom, transparent 0%, #000000 100%)"},inputs:{display:"flex",justifyContent:"space-between",width:"100%"},input:{textAlign:"center",fontSize:13,fontWeight:"normal",color:"#000",input:{width:30,textAlign:"center"},div:{marginTop:4}}},MM={name:"j4ndc3",styles:"position:relative;display:inline-block;box-sizing:border-box;width:49px;height:24px;padding:4px;background-color:#ffffff;border:1px solid #bebebe;border-radius:3px;user-select:none;"},DM={name:"trkpwz",styles:"display:block;width:100%;height:100%;cursor:pointer;"},TM=function(e){var t=e.initialValue,n=e.onChange,o=e.placement,a=e.disabled,i=AQ(e,["initialValue","onChange","placement","disabled"]),l=r.useState(FM(t)),s=l[0],A=l[1];function c(e){n&&(A(e),n(e))}return r.useEffect(function(){c(FM(t))},[t]),ZQ(dM,{placement:o,body:ZQ(QM,{color:s,onChange:c,disabled:a})},ZQ("span",lQ({},i,{css:MM}),ZQ("span",{css:DM,style:{backgroundColor:s.rgba}})))};TM.defaultProps={placement:"bottom",disabled:!1};var OM={partitionConfigContainer:"partitionConfig_partitionConfigContainer__3VSRr",settingBtnWrap:"partitionConfig_settingBtnWrap__3Ouhh",partitionList:"partitionConfig_partitionList__1EGDR",partitionItem:"partitionConfig_partitionItem__nl5oG",active:"partitionConfig_active__2YhEq",materialItem:"partitionConfig_materialItem__1kp3u",materialNameBox:"partitionConfig_materialNameBox__1RC59",colorPicker:"partitionConfig_colorPicker__3yuSS",footer:"partitionConfig_footer__1mp95",cancelBtn:"partitionConfig_cancelBtn__3y3IT"};Rt(".partitionConfig_partitionConfigContainer__3VSRr{width:300px;padding:15px 12px 12px}.partitionConfig_settingBtnWrap__3Ouhh{display:flex;align-items:center;justify-content:center;width:80px;height:27px;background:#404b60;border-radius:4px;cursor:pointer}.partitionConfig_settingBtnWrap__3Ouhh span{display:flex;align-items:center;color:#fff;font-weight:400;font-size:12px;font-family:PingFang SC;font-style:normal;line-height:17px}.partitionConfig_settingBtnWrap__3Ouhh img{width:12px;height:12px;margin-left:7px}.partitionConfig_partitionList__1EGDR{display:flex;flex-wrap:wrap;margin-top:8px;padding:16px 15px;background:#fff;border:1px solid rgba(113,125,153,.3);border-radius:8px;box-shadow:0 8px 24px rgba(20,20,20,.16)}.partitionConfig_partitionItem__nl5oG{position:relative;display:flex;align-items:center;justify-content:center;width:52px;height:34px;margin-right:12px;margin-bottom:12px;border:1px solid #aaaeb8;border-radius:4px;cursor:pointer}.partitionConfig_partitionItem__nl5oG span{color:#121c2a;font-weight:400;font-size:14px;font-family:PingFang SC;font-style:normal}.partitionConfig_partitionItem__nl5oG img{position:absolute;right:2px;bottom:2px;width:6px;height:6px}.partitionConfig_partitionItem__nl5oG.partitionConfig_active__2YhEq{border:1px solid #3465e3}.partitionConfig_partitionItem__nl5oG.partitionConfig_active__2YhEq span{color:#1890ff}.partitionConfig_partitionList__1EGDR .partitionConfig_partitionItem__nl5oG:nth-child(4n){margin-right:0}.partitionConfig_materialItem__1kp3u{display:flex;align-items:center;justify-content:space-between;height:42px;margin-top:16px;padding:0 8px 0 16px;border:1px solid #aaaeb8;border-radius:4px}.partitionConfig_materialItem__1kp3u .partitionConfig_materialNameBox__1RC59{display:flex;align-items:center;width:120px}.partitionConfig_materialItem__1kp3u .partitionConfig_materialNameBox__1RC59 img{width:14px;height:14px;margin-right:8px}.partitionConfig_materialItem__1kp3u .partitionConfig_materialNameBox__1RC59 span{width:100px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.partitionConfig_materialItem__1kp3u input{width:74px;height:26px;padding:0 4px;background:transparent;border:1px solid #d7dae2;border-radius:4px}.partitionConfig_materialItem__1kp3u input:focus-visible{outline:.25px solid hsla(0,0%,100%,.5)}.partitionConfig_materialItem__1kp3u .rc-color-picker-wrap{height:24px}.partitionConfig_materialItem__1kp3u .rc-color-picker-trigger{width:24px;height:24px;border:1px solid #d7dae2;border-radius:2px;box-shadow:none}.partitionConfig_colorPicker__3yuSS{width:24px!important;height:24px!important;padding:0!important;border:1px solid #d7dae2!important;border-radius:2px!important}.partitionConfig_footer__1mp95{display:flex;align-items:center;justify-content:flex-end;margin-top:16px}.partitionConfig_footer__1mp95 div{display:flex;align-items:center;justify-content:center;width:38px;height:18px;color:#fff;font-weight:400;font-size:12px;font-family:PingFang SC;font-style:normal;background:#3465e3;border-radius:2px;cursor:pointer}.partitionConfig_footer__1mp95 div+div{margin-left:6px}.partitionConfig_footer__1mp95 .partitionConfig_cancelBtn__3y3IT{background:#404b60}");var HM={wall:"".concat(jt,"/scene/qiang.png"),pillar:"".concat(jt,"/scene/zhu.png"),numberCode:"".concat(jt,"/scene/bianhao.png"),ground:"".concat(jt,"/scene/dimian.png")},RM=r.forwardRef(function(e,t){var n,o,a,i=e.dispatch,l=e.partConfigDatas,s=e.applicationId,A=(null==l||null===(n=l.partitionDataList)||void 0===n?void 0:n.length)>0?null==l?void 0:l.partitionDataList[0]:{},c=Mt(r.useState(A),2),u=c[0],d=c[1];Mt(r.useState(!1),2);r.useEffect(function(){f()},[]),r.useEffect(function(){var e;null==l||null===(e=l.partitionDataList)||void 0===e||e.forEach(function(e){e.partitionName===u.partitionName&&d(Pt({},e))})},[l]),r.useImperativeHandle(t,function(){return{save:function(){p()},cancel:function(){f()}}});var p=function(){i({type:"scene/saveMaterialDataRelation",payload:{packageId:null==l?void 0:l.packageId,partitionData:null==u?void 0:u.partitionData},callback:function(){_o({role:2,method:"refreshItemColorTemplate",param:{}}),f()}})},f=function(){i({type:"scene/selectSourceMaterialList",payload:{applicationId:s},callback:function(e){var t,n=(null==e||null===(t=e.partitionDataList)||void 0===t?void 0:t.length)>0?null==e?void 0:e.partitionDataList[0]:{};d(n)}})},g=function(e,t){var n;null==u||null===(n=u.partitionData)||void 0===n||n.forEach(function(n){n.partitionId===t.partitionId&&(n.rgbData=e)}),d(Pt({},u))},h=function(e){e.currentTarget.select()};return fe.default.createElement("div",{className:OM.partitionConfigContainer,ref:t},fe.default.createElement("div",{className:OM.partitionList},null==l||null===(o=l.partitionDataList)||void 0===o?void 0:o.map(function(e,t){return fe.default.createElement("div",{key:"".concat(e.partitionName,"-").concat(t),className:ve.default(OM.partitionItem,Ct({},OM.active,e.partitionName===u.partitionName)),onClick:function(){d(e)}},fe.default.createElement("span",null,e.partitionName),fe.default.createElement("img",{src:1===e.configureFlag?Gr:Kr,alt:""}))})),fe.default.createElement("div",{className:OM.materialList},null==u||null===(a=u.partitionData)||void 0===a?void 0:a.map(function(e){return fe.default.createElement("div",{key:e.partitionId,className:OM.materialItem},fe.default.createElement("div",{className:OM.materialNameBox},fe.default.createElement("img",{src:(t=e.code,t.includes("wall")?HM.wall:t.includes("numberCode")?HM.numberCode:t.includes("ground")?HM.ground:HM.pillar),alt:""}),fe.default.createElement("span",{title:e.name},e.name)),fe.default.createElement(TM,{className:OM.colorPicker,initialValue:(null==e?void 0:e.rgbData)?"#".concat(null==e?void 0:e.rgbData):"#FFFFFF",onChange:function(t){return function(e,t){var n,r=null==e||null===(n=e.hex)||void 0===n?void 0:n.substr(1,6);g(r,t)}(t,e)},placement:"bottomLeft"}),fe.default.createElement("input",{type:"text",onFocus:h,value:(null==e?void 0:e.rgbData)||"FFFFFF",onChange:function(t){return function(e,t){g("".concat(e.target.value.replace("#","").replace(/[^0-9a-fA-F]/g,"")),t)}(t,e)},maxLength:6}));var t})))}),VM="".concat(jt,"/img/ipx_bottom.png"),jM="".concat(jt,"/img/ipx.png"),zM=s.withRouter(n.connect(function(e){return{app:e.app,roamConfig:e.roamConfig}})(function(e){var t=e.app,n=t.applicationId,o=t.isWeb,a=t.isRunning,i=t.sceneData;r.useEffect(function(){(function(e){return Ns.apply(this,arguments)})({applicationId:n}).then(function(t){var n;200===t.data.code&&e.dispatch({type:"roamConfig/updateState",payload:{dataConfigurationResult:null===(n=t.data.value)||void 0===n?void 0:n.dataConfigurationResult}})})},[e.roamConfig.showDrawer]),r.useEffect(function(){o||((null==i?void 0:i.obsDownloadUrl)&&"no"===a&&e.dispatch({type:"app/UEOPENGAME",payload:{mode:2}}),l())},[a]);var l=function(){var e=.5*document.getElementById("listConfiguration").getBoundingClientRect().width-200,t=.5*document.getElementById("listConfiguration").getBoundingClientRect().height-400;_o({role:2,method:"moveTo",param:{documentTitle:document.title,x:e,y:t}})};return fe.default.createElement("div",{id:"listConfiguration",className:pd},fe.default.createElement("div",{className:fd},o&&fe.default.createElement("div",{id:"phoneBox",className:gd},fe.default.createElement("img",{src:jM,alt:"",className:hd}),fe.default.createElement("img",{src:VM,alt:"",className:md}),fe.default.createElement(rU,null),fe.default.createElement(ai,{type:"roam",currentMenuId:"roam"})),!o&&fe.default.createElement(rU,null),!o&&fe.default.createElement($U,null)),fe.default.createElement("div",{className:_d},o?fe.default.createElement(ds,null):fe.default.createElement(Pa,{type:"roamConfig"}),fe.default.createElement(zL,null)))})),GM="testLine_cover__R13Xt",KM="testLine_centreBox__3dOZP",WM="testLine_viewBox__2WWSX",YM="testLine_phoneBox__6hgJL",XM="testLine_ipxBox__1edGz",qM="testLine_ipImg__2aD0K",JM="testLine_ipx_bottom__33okl",ZM="testLine_empty__3MAgz",$M="testLine_videoClass__1gxA7",eD="testLine_parkingContent__3U6Dt",tD="testLine_noPackageWrapper__2YaWl",nD="testLine_leftBox__60rN2",rD="testLine_shareContentBox__1LnlP";Rt(".testLine_cover__R13Xt{display:flex;width:100%;height:100%}.testLine_cover__R13Xt .testLine_centreBox__3dOZP{box-sizing:border-box;width:calc(100% - 310px);overflow:auto}.testLine_cover__R13Xt .testLine_centreBox__3dOZP,.testLine_cover__R13Xt .testLine_centreBox__3dOZP .testLine_viewBox__2WWSX{display:flex;align-items:center;justify-content:center;height:100%}.testLine_cover__R13Xt .testLine_centreBox__3dOZP .testLine_phoneBox__6hgJL{display:flex;align-items:flex-end;justify-content:center}.testLine_cover__R13Xt .testLine_centreBox__3dOZP .testLine_phoneBox__6hgJL .testLine_ipxBox__1edGz{position:relative;width:387px;height:824px;overflow:hidden;background:#30303e;border:6px solid #fff;border-radius:46px;box-shadow:0 3px 24px rgba(0,0,0,.25)}.testLine_cover__R13Xt .testLine_centreBox__3dOZP .testLine_phoneBox__6hgJL .testLine_ipxBox__1edGz .testLine_ipImg__2aD0K{width:375px;height:88px}.testLine_cover__R13Xt .testLine_centreBox__3dOZP .testLine_phoneBox__6hgJL .testLine_ipxBox__1edGz .testLine_ipx_bottom__33okl{position:absolute;right:0;bottom:0;left:0;width:375px;height:44px}.testLine_cover__R13Xt .testLine_centreBox__3dOZP .testLine_empty__3MAgz{position:relative;min-width:350px;height:100%;margin:0 20px}.testLine_cover__R13Xt .testLine_centreBox__3dOZP .testLine_videoClass__1gxA7{position:fixed;top:0;left:-100%;z-index:-99;width:375px;height:724px;background:transparent;opacity:0}.testLine_cover__R13Xt .testLine_parkingContent__3U6Dt{position:absolute;bottom:0;left:0;width:100%;height:calc(100% - 88px)}.testLine_cover__R13Xt .testLine_parkingContent__3U6Dt iframe{width:100%;height:100%;overflow:hidden}.testLine_cover__R13Xt .testLine_parkingContent__3U6Dt .testLine_noPackageWrapper__2YaWl{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%}.testLine_cover__R13Xt .testLine_parkingContent__3U6Dt .testLine_noPackageWrapper__2YaWl img{width:46px;height:46px;margin-bottom:12px}.testLine_cover__R13Xt .testLine_parkingContent__3U6Dt .testLine_noPackageWrapper__2YaWl span{color:#fff;font-weight:400;font-size:24px;font-family:PingFang HK;font-style:normal}.testLine_cover__R13Xt .testLine_leftBox__60rN2{box-sizing:border-box;width:310px;height:100%;background-color:#fff}.testLine_shareContentBox__1LnlP{position:absolute;top:0;right:310px}div.fullScreen{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9;display:flex;align-items:center;width:100vw;background-color:#f0f2f5}");var oD={rightBox:"index_rightBox__2qMKc",willInLine:"index_willInLine__3fNGm",configTabList:"index_configTabList__GHXjD",description:"index_description__L-AWJ",configTabItem:"index_configTabItem__2uT89",tabName:"index_tabName__oFFp3",divider:"index_divider__2iDaC",active:"index_active__Yx-Hl",contentBox:"index_contentBox__1Zkci",nextButton:"index_nextButton__eo4QV"};Rt(".index_rightBox__2qMKc{position:relative;display:flex;flex-direction:column;width:100%;height:100%}.index_rightBox__2qMKc .ant-tabs-top>.ant-tabs-nav{margin:0;padding:0 14px}.index_rightBox__2qMKc .ant-tabs-ink-bar{background:#397bff}.index_rightBox__2qMKc .ant-tabs-tab .ant-tabs-tab-btn{color:#000f2c;font-weight:600;font-size:14px;font-family:PingFang SC;font-style:normal;line-height:24px;opacity:.6}.index_rightBox__2qMKc .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn{color:#000f2c;font-weight:600;font-size:14px;font-family:PingFang SC;font-style:normal;line-height:24px;opacity:1}.index_rightBox__2qMKc .ant-empty{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.index_rightBox__2qMKc .ant-badge-dot{right:-5px}.index_rightBox__2qMKc .index_willInLine__3fNGm{height:calc(100% - 50px)}.index_rightBox__2qMKc .index_configTabList__GHXjD{display:flex;align-items:center;width:100%;height:49px;padding:0 10px}.index_rightBox__2qMKc .index_description__L-AWJ{display:flex;flex-direction:column;color:#9da1aa;font-weight:400;font-size:12px;font-family:PingFang SC;font-style:normal}.index_rightBox__2qMKc .index_description__L-AWJ i{margin-left:5px;color:#3465e3;font-weight:700;font-style:normal;cursor:pointer}.index_rightBox__2qMKc .index_configTabItem__2uT89{display:flex;align-items:center;cursor:pointer}.index_rightBox__2qMKc .index_configTabItem__2uT89 span{box-sizing:border-box;width:20px;height:20px;margin-right:6px;font-weight:400;font-size:14px;font-family:PingFang SC;font-style:normal;line-height:18px;text-align:center;border:1px solid #666f80;border-radius:50%}.index_rightBox__2qMKc .index_configTabItem__2uT89 .index_tabName__oFFp3{color:rgba(0,15,44,.6);font-weight:400;font-size:14px;font-family:PingFang SC;font-style:normal}.index_rightBox__2qMKc .index_configTabItem__2uT89 .index_divider__2iDaC{width:14px;height:1px;margin:0 4px;background:rgba(102,111,128,.4)}.index_rightBox__2qMKc .index_configTabItem__2uT89.index_active__Yx-Hl span{color:#fff;background:#397bff;border:1px solid #397bff}.index_rightBox__2qMKc .index_configTabItem__2uT89.index_active__Yx-Hl .index_tabName__oFFp3{color:#000f2c;font-weight:600}.index_rightBox__2qMKc .index_contentBox__1Zkci{height:calc(100% - 50px);overflow:auto}.index_rightBox__2qMKc .index_nextButton__eo4QV{width:277px;height:36px;margin:12px 14px 16px;color:#fff;font-weight:400;font-size:14px;font-family:PingFang SC;font-style:normal;line-height:36px;text-align:center;background:#3465e3;border-radius:4px;cursor:pointer}.index_rightBox__2qMKc .index_nextButton__eo4QV:hover{opacity:.7}");var aD={fileBox:"index_fileBox__2ab0e",versionLading:"index_versionLading__3xvdW",projectName:"index_projectName__N3aAf",but:"index_but__2ZrJd",err:"index_err__3Irxy",tipBox:"index_tipBox__1XW5u",tipTitle:"index_tipTitle__2E4Gh",tipText:"index_tipText__WdDhf",title:"index_title__2Dxot",flieInfo:"index_flieInfo__32Y81",fileContent:"index_fileContent__2XUvx",versionIcon:"index_versionIcon__kZ8k2",triangle:"index_triangle__3LtHW",rotate:"index_rotate__3PSNn",choose:"index_choose__1cLuf",buttonBox:"index_buttonBox__1KWcR",passBut:"index_passBut__2pmea",sendBut:"index_sendBut__23U90",shareBut:"index_shareBut__1N4p-",logBut:"index_logBut__1g06p",butNo:"index_butNo__2tvDP",nextButton:"index_nextButton__1XM4Q",fileMenu:"index_fileMenu__5e_5l",noLineProjectName:"index_noLineProjectName__3KoMd",loading:"index_loading__II2jo",description:"index_description__P6thJ"};Rt(".index_fileBox__2ab0e{box-sizing:border-box;width:100%;padding:0 14px 16px;overflow:hidden}.index_fileBox__2ab0e .index_versionLading__3xvdW{display:flex;align-items:center;justify-content:space-between;width:282px;height:42.38px;margin-top:20px;padding:0 12px;background:#fff;border-radius:4px;box-shadow:0 2px 8px rgba(0,0,0,.15)}.index_fileBox__2ab0e .index_versionLading__3xvdW>div{display:flex;align-items:center;color:rgba(0,0,0,.85);font-weight:400;font-size:14px;font-style:normal;line-height:20px}.index_fileBox__2ab0e .index_versionLading__3xvdW>div img{width:22px;height:22px}.index_fileBox__2ab0e .index_versionLading__3xvdW>div .index_projectName__N3aAf{width:170px;margin:0 5px}.index_fileBox__2ab0e .index_versionLading__3xvdW .index_but__2ZrJd{display:flex;align-items:center;justify-content:center;width:48px;min-width:48px;height:22.38px;color:#397bff;font-weight:600;font-size:12px;font-family:PingFang SC;font-style:normal;line-height:17px;background:rgba(57,123,255,.1);border-radius:4px}.index_fileBox__2ab0e .index_versionLading__3xvdW .index_but__2ZrJd img{width:12px;height:12px;margin-right:8px}.index_fileBox__2ab0e .index_versionLading__3xvdW span.index_err__3Irxy{color:#f15c5c}.index_fileBox__2ab0e .index_tipBox__1XW5u{width:282px;height:91px;margin-bottom:8px;padding:11px;background:#d4e3fc;border-radius:3px}.index_fileBox__2ab0e .index_tipBox__1XW5u .index_tipTitle__2E4Gh{display:flex;align-items:center;justify-content:space-between}.index_fileBox__2ab0e .index_tipBox__1XW5u .index_tipTitle__2E4Gh p{color:rgba(0,0,0,.9);font-weight:500;font-size:14px;font-style:normal;line-height:22px}.index_fileBox__2ab0e .index_tipBox__1XW5u .index_tipTitle__2E4Gh img{width:8px;height:8px;cursor:pointer}.index_fileBox__2ab0e .index_tipBox__1XW5u .index_tipText__WdDhf{margin-top:5px;color:#000f2c;font-weight:400;font-size:12px;font-style:normal;line-height:20px;opacity:.6}.index_fileBox__2ab0e .index_title__2Dxot{margin-top:12px;margin-bottom:5px;color:#000f2c;font-weight:400;font-size:12px;font-style:normal;line-height:20px;opacity:.6}.index_fileBox__2ab0e .index_flieInfo__32Y81{position:relative;display:flex;align-items:center;box-sizing:border-box;width:282px;height:65px;border:1px dashed #abb1c0;border-radius:4px;cursor:pointer}.index_fileBox__2ab0e .index_flieInfo__32Y81 .index_fileContent__2XUvx{display:flex;align-items:center;justify-content:flex-start;padding:0 12px}.index_fileBox__2ab0e .index_flieInfo__32Y81 .index_fileContent__2XUvx img{width:30px;height:25.38px;margin-right:14px}.index_fileBox__2ab0e .index_flieInfo__32Y81 .index_versionIcon__kZ8k2{position:absolute;top:0;right:0;display:flex;flex-direction:column;height:100%}.index_fileBox__2ab0e .index_flieInfo__32Y81 .index_versionIcon__kZ8k2 span{box-sizing:border-box;width:60px;height:21px;padding:2px 6px;color:#23c16b;font-weight:600;font-size:12px;font-family:PingFang SC;font-style:normal;line-height:17px;background:rgba(35,193,107,.1);border-radius:4px}.index_fileBox__2ab0e .index_flieInfo__32Y81 .index_versionIcon__kZ8k2 .index_triangle__3LtHW{position:absolute;top:32px;right:17px;width:8px;height:5px;border:5px solid transparent;border-top-color:rgba(0,15,44,.3)}.index_fileBox__2ab0e .index_flieInfo__32Y81 .index_rotate__3PSNn .index_triangle__3LtHW{top:25px!important;transform:rotate(180deg)}.index_fileBox__2ab0e .index_choose__1cLuf{display:flex;align-items:center;justify-content:center;width:68px;height:100%;color:#3465e3;border-left:1px dashed #abb1c0;cursor:pointer}.index_fileBox__2ab0e .index_choose__1cLuf:hover{opacity:.7}.index_fileBox__2ab0e .index_buttonBox__1KWcR{position:relative;display:flex;align-items:center;margin-top:12px}.index_fileBox__2ab0e .index_buttonBox__1KWcR .ant-btn{height:36px;padding:0;border-radius:4px}.index_fileBox__2ab0e .index_buttonBox__1KWcR .ant-btn:hover{opacity:.7}.index_fileBox__2ab0e .index_buttonBox__1KWcR .index_passBut__2pmea{display:flex;align-items:center;justify-content:center;height:36px;color:#fff;font-weight:400;font-size:14px;font-family:PingFang SC;font-style:normal;line-height:20px;background:#3465e3;border:1px solid #3465e3;border-radius:4px;cursor:pointer}.index_fileBox__2ab0e .index_buttonBox__1KWcR .index_passBut__2pmea>img{width:14px;height:14px;margin-left:8px}.index_fileBox__2ab0e .index_buttonBox__1KWcR .index_passBut__2pmea:hover{opacity:.7}.index_fileBox__2ab0e .index_buttonBox__1KWcR .index_sendBut__23U90{width:80px}.index_fileBox__2ab0e .index_buttonBox__1KWcR .index_shareBut__1N4p-{display:flex;align-items:center;justify-content:center;width:72px;margin:0 10px;color:#3465e3;border-color:#3465e3}.index_fileBox__2ab0e .index_buttonBox__1KWcR .index_shareBut__1N4p- img{width:13px;height:13px;margin-right:6px}.index_fileBox__2ab0e .index_buttonBox__1KWcR .index_logBut__1g06p{width:82px;color:#3465e3;border-color:#3465e3;cursor:not-allowed}.index_fileBox__2ab0e .index_butNo__2tvDP{cursor:not-allowed!important;opacity:.5}.index_fileBox__2ab0e .index_nextButton__1XM4Q{width:277px;height:36px;margin-top:12px;color:#fff;font-weight:400;font-size:14px;font-family:PingFang SC;font-style:normal;line-height:36px;text-align:center;background:#3465e3;border-radius:4px;cursor:pointer}.index_fileBox__2ab0e .index_nextButton__1XM4Q:hover{opacity:.7}.ant-popover-buttons .ant-btn-sm{width:44px}.ant-popover-buttons .ant-btn-sm:first-child{color:rgba(0,0,0,.9);background:#f0f1f2!important;border:none!important}.ant-popover-buttons .ant-btn-sm:first-child:hover{opacity:.7}.index_fileMenu__5e_5l .ant-dropdown-menu-item{line-height:40px}.index_fileMenu__5e_5l .ant-dropdown-menu-item-active{color:#397bff!important}.index_fileMenu__5e_5l .ant-dropdown-menu-item .ant-dropdown-menu-title-content{display:flex;align-items:center;justify-content:space-between}.index_fileMenu__5e_5l .ant-dropdown-menu-item .ant-dropdown-menu-title-content>i{width:60px;height:21px;padding:0 6px;color:#23c16b;font-weight:600;font-size:12px;font-style:normal;line-height:21px;background:rgba(35,193,107,.1);border-radius:4px}.index_projectName__N3aAf{width:190px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.index_noLineProjectName__3KoMd{width:260px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.index_loading__II2jo{animation:index_rotate__3PSNn 1s linear infinite}@keyframes index_rotate__3PSNn{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.index_description__P6thJ{display:flex;flex-direction:column;color:#9da1aa;font-weight:400;font-size:12px;font-family:PingFang SC;font-style:normal}.index_description__P6thJ i{margin-left:5px;color:#3465e3;font-weight:700;font-style:normal;cursor:pointer}");var iD,lD,sD="index_testComponent__17GmF",AD="index_formBox__1ZhrJ",cD="index_titleBox__1MO00",uD="index_formContentBox__3uZrV",dD="index_inputWidth__UdxGy",pD="index_fromItemSpan__2vZsd",fD="index_iText__1DUbt",gD="index_footerBtu__33EJf",hD="index_submitBut__3l2D3",mD="index_reSetBut__ryii0",_D="index_activeBut__1cM_6",vD="index_formItem___bctp",yD="index_formItemLabel__3zH2M";Rt('.index_testComponent__17GmF{padding:12px;border-top:6px solid #eaebed}.index_testComponent__17GmF .index_formBox__1ZhrJ .index_titleBox__1MO00{display:flex;align-items:center;justify-content:space-between;padding:13px 16px 18px 12px;background:#f0f2f5}.index_testComponent__17GmF .index_formBox__1ZhrJ .index_titleBox__1MO00 span{font-weight:400;font-style:normal;line-height:20px;cursor:pointer}.index_testComponent__17GmF .index_formBox__1ZhrJ .index_titleBox__1MO00 span:first-child{color:#000f2c;font-size:12px;opacity:.6}.index_testComponent__17GmF .index_formBox__1ZhrJ .index_titleBox__1MO00 span:last-child{color:#3465e3;font-size:14px}.index_testComponent__17GmF .index_formBox__1ZhrJ .index_formContentBox__3uZrV{padding:0 16px 18px 12px;background:#f0f2f5}.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-form-item-label{width:80px;text-align:left!important}.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-form-item-label>label{color:#717d99!important;font-size:12px!important}.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-input,.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-input-number,.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-select{width:130px!important}.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-input-number-input,.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-input-number-input-wrap{height:38px}.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-input-number-handler-wrap{background:#fff}.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-form-item-has-error .ant-input-number:not([disabled]):hover,.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-input,.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-input-number,.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-select,.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-select-single:not(.ant-select-customize-input) .ant-select-selector{height:38px;background:#fff;border-radius:4px}.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-form-item-has-error .ant-input-number,.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-form-item-has-error .ant-select:not(.ant-select-disabled):not(.ant-select-customize-input) .ant-select-selector,.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-form-item-has-error :not(.ant-input-disabled):not(.ant-input-borderless).ant-input{background:rgba(241,92,92,.1)!important}.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-form-item-explain-error{margin-top:6px;margin-bottom:11px;font-size:12px}.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-form-item-explain-error:before{position:relative;top:2px;display:inline-block;width:14px;height:14px;margin-right:4px;background:url(/3d-garage-model/img/dangerIcon.png);background-size:14px 14px;content:""}.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-form-item-has-error :not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper,.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-form-item-has-error :not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:hover,.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-form-item-has-error :not(.ant-input-disabled):not(.ant-input-borderless).ant-input,.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-form-item-has-error :not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover{background-color:rgba(241,92,92,.1);border:1px solid #f15c5c}.index_testComponent__17GmF .index_formBox__1ZhrJ .index_inputWidth__UdxGy .ant-input-number{width:48px!important}.index_testComponent__17GmF .index_formBox__1ZhrJ .index_fromItemSpan__2vZsd{display:flex;align-items:center;box-sizing:border-box}.index_testComponent__17GmF .index_formBox__1ZhrJ .index_iText__1DUbt{margin:0 8px;color:#717d99;font-size:14px;font-style:normal}.index_testComponent__17GmF .index_formBox__1ZhrJ .index_footerBtu__33EJf{display:flex;align-items:center;justify-content:flex-end;margin-bottom:10px}.index_testComponent__17GmF .index_formBox__1ZhrJ .index_submitBut__3l2D3{display:inline-block;width:60px;height:32px;color:#fff;font-weight:400;font-size:14px;font-style:normal;line-height:32px;text-align:center;border-radius:4px}.index_testComponent__17GmF .index_formBox__1ZhrJ .index_reSetBut__ryii0{margin-right:12px;color:rgba(0,0,0,.9);background:#e7e7e7;cursor:pointer}.index_testComponent__17GmF .index_formBox__1ZhrJ .index_activeBut__1cM_6:hover,.index_testComponent__17GmF .index_formBox__1ZhrJ .index_reSetBut__ryii0:hover{opacity:.7}.index_testComponent__17GmF .index_formBox__1ZhrJ .index_activeBut__1cM_6{background:#3465e3;cursor:pointer}.index_testComponent__17GmF .index_formBox__1ZhrJ .index_disabledBut__1NKrL{background:rgba(52,101,227,.5);cursor:not-allowed}.index_testComponent__17GmF .index_formBox__1ZhrJ .index_formItem___bctp{display:flex}.index_testComponent__17GmF .index_formBox__1ZhrJ .index_formItem___bctp .index_formItemLabel__3zH2M{box-sizing:border-box;width:80px;color:#717d99}.index_testComponent__17GmF .index_formBox__1ZhrJ .index_formItem___bctp .index_formItemLabel__3zH2M i{margin-right:4px;color:#ff4d4f;font-size:14px;font-style:normal}.index_errorInfo__1cQNJ{color:#ff4d4f;font-size:14px;line-height:1.5715}');var bD=(iD=n.connect(function(e){return{app:e.app,seting:e.seting}}),iD(lD=function(e){function t(e){var n;return bt(this,t),(n=yt(this,t,[e])).getInfo=function(){var e=n,t=n.props,r=t.app.applicationId,o=t.packageType,a=t.taskId;console.log("**************",o,a),n.props.dispatch({type:"seting/getQueryCloudResource",payload:{applicationId:r,packageType:o,taskId:a}}).then(function(){e.handleFormInfo(!0)})},n.validateFormData=vt(Ut().m(function e(){return Ut().w(function(e){for(;;)if(0===e.n)return e.a(2)},e)})),n.handleFormSubmit=vt(Ut().m(function e(){var t,r,o,a,i,l,s,A,c,u,d,p;return Ut().w(function(e){for(;;)switch(e.p=e.n){case 0:return r=(t=n.props).app.applicationId,o=t.taskId,a=t.packageType,l=(i=n.state).maxCodeStream,s=i.minCodeStream,A=i.pushFlowResolution,e.p=1,e.n=2,n.formRef.current.validateFields();case 2:c=e.v,e.n=4;break;case 3:e.p=3,console.log(e.v);case 4:c&&(p={taskId:o,applicationId:r,maxCodeStream:l,minCodeStream:s,gameId:c.gameId,groupId:c.groupId,aliAppId:null===(u=c)||void 0===u?void 0:u.aliAppId,aliProjectId:null===(d=c)||void 0===d?void 0:d.aliProjectId,maxConcurrent:c.maxConcurrent,fps:c.fps,pushFlowResolution:A,packageType:a},n.props.dispatch({type:"seting/setSaveCloudGameInfo",payload:p,callback:function(){n.setIframeUpdate(o)}}));case 5:return e.a(2)}},e,null,[[1,3]])})),n.setIframeUpdate=function(e){n.props.dispatch({type:"seting/updateState",payload:{isPageOKTaskId:e,iframeType:"TEST"===n.props.packageType?"test":"pro",iframeUpData:(new Date).getTime()}})},n.onChangeFormItem=function(e,t){n.setState(Ct({},t,e))},n.handleFormInfo=function(e){var t,r=n,o=n.props.seting.gameInfos,a=o.maxCodeStream,i=o.minCodeStream,l=o.pushFlowResolution,s={maxConcurrent:o.maxConcurrent||50},A={fps:o.fps||60};if(null===(t=r.formRef)||void 0===t?void 0:t.current){var c=r.formRef.current.getFieldsValue();r.formRef.current.setFieldsValue(Pt(Pt(Pt(Pt({},c),o),s),A)),r.setState({maxCodeStream:a||10,minCodeStream:i||1,pushFlowResolution:""===l||null===l?"768×1024":l})}},n.handleShrink=function(){n.setState({isShrink:!n.state.isShrink})},n.state={isDisabled:!1,isShrink:!0,pushFlowResolution:"768×1024",maxCodeStream:10,minCodeStream:1},n.formRef=fe.default.createRef(),n}return It(t,e),xt(t,[{key:"componentDidMount",value:function(){var e=this;Yr.on("CloudData",function(){return e.handleFormInfo(!0)}),Yr.on("getCloudData",this.getInfo)}},{key:"componentWillUnmount",value:function(){var e=this;Yr.off("CloudData",function(){return e.handleFormInfo(!0)}),Yr.off("getCloudData",this.getInfo)}},{key:"render",value:function(){var e=this,t=this.state,n=t.isShrink,r=t.isDisabled,o=t.maxCodeStream,a=t.minCodeStream,i=t.pushFlowResolution,l=this.props,s=l.packageType;return fe.default.createElement(fe.default.Fragment,null,fe.default.createElement("div",{className:sD},fe.default.createElement("div",{className:AD},fe.default.createElement("div",{className:cD},fe.default.createElement("span",null,"云游戏配置"),fe.default.createElement("span",{onClick:this.handleShrink},n?"收起":"编辑")),fe.default.createElement("div",{className:uD,style:{display:n?"block":"none"}},fe.default.createElement(je.default,{ref:this.formRef},fe.default.createElement(je.default.Item,{label:"GameID",name:"gameId",rules:[{required:!0,message:"输入正确的GameID",max:30}]},fe.default.createElement(He.default,{placeholder:"输入GameID",disabled:!("TEST"!==s&&!r)})),fe.default.createElement(je.default.Item,{label:"GroupID",name:"groupId",rules:[{required:!0,message:"输入正确的GroupID",max:30}]},fe.default.createElement(He.default,{placeholder:"输入GroupID",disabled:!("TEST"!==s&&!r)})),fe.default.createElement(je.default.Item,{label:"projectId",name:"aliProjectId",rules:[{message:"输入正确的projectId",max:30}]},fe.default.createElement(He.default,{placeholder:"输入projectId",disabled:!("TEST"!==s&&!r)})),fe.default.createElement(je.default.Item,{label:"appId",name:"aliAppId",rules:[{message:"输入正确的appId",max:30}]},fe.default.createElement(He.default,{placeholder:"输入appId",disabled:!("TEST"!==s&&!r)})),fe.default.createElement(je.default.Item,{label:"最大并发数",name:"maxConcurrent",rules:[{required:!0,message:"输入数字"}]},fe.default.createElement(Ke.default,{min:1,placeholder:"输入数字",controls:!1,onChange:function(t){e.onChangeFormItem(t,"maxConcurrent")}})),fe.default.createElement(je.default.Item,{label:"FPS",name:"fps",rules:[{required:!0,message:"输入25至60范围的数字"}]},fe.default.createElement(Ke.default,{min:25,max:60,placeholder:"输入数字",controls:!1})),fe.default.createElement("div",{className:vD},fe.default.createElement("div",{className:yD},fe.default.createElement("i",null,"*"),"码流范围:"),fe.default.createElement(je.default.Item,null,fe.default.createElement("span",{className:ve.default(pD,dD)},fe.default.createElement(Ke.default,{min:1,max:14,placeholder:"输入数字",controls:!1,value:a,onChange:function(t){e.onChangeFormItem(t,"minCodeStream")}}),fe.default.createElement("i",{className:fD},"-"),fe.default.createElement(Ke.default,{min:2,max:15,placeholder:"输入数字",controls:!1,value:o,onChange:function(t){e.onChangeFormItem(t,"maxCodeStream")}}),fe.default.createElement("i",{className:fD},"mbps")))),fe.default.createElement(je.default.Item,{label:"推流分辨率",name:"pushFlowResolution"},fe.default.createElement(Pe.default,{value:i,onChange:function(t){return e.onChangeFormItem(t,"pushFlowResolution")}},null==$t?void 0:$t.map(function(e){return fe.default.createElement(Pe.default.Option,{value:e.value,key:e.value},e.name)})),fe.default.createElement("i",{className:fD},"px"))),fe.default.createElement("div",{className:gD},fe.default.createElement("span",{className:ve.default(hD,mD),onClick:function(){return e.handleFormInfo(!1)}},"重置"),fe.default.createElement("span",{className:ve.default(hD,_D),onClick:this.handleFormSubmit},"保存"))))))}}])}(r.Component))||lD),wD=function(e){var t=e.text1,n=void 0===t?"请前往步骤":t,r=e.setRouter,o=e.pageName,a=void 0===o?"程序打包":o;return fe.default.createElement(Qe.default,{className:aD.empty,description:fe.default.createElement("div",{className:aD.description},fe.default.createElement("span",null," ",e.text),fe.default.createElement("span",null,n,fe.default.createElement("i",{onClick:r},a)))})},xD=n.connect(function(e){return{app:e.app,seting:e.seting,programPackage:e.programPackage}})(function(e){var t=e.dispatch,n=e.onTab,o=e.setRouter,a=e.openVisibleShare,i=e.isTestRole,l=e.app.applicationId,s=e.seting,A=s.currentTaskPageData,c=s.currentDeployMachineCode,u=s.taskList,d=s.currentTaskId,p=s.currentTaskName,f=s.lineVersionFlag,g=s.packageType,h=e.setIframeUpdate,m=Mt(r.useState(!1),2),_=m[0],v=m[1],y=Mt(r.useState(!1),2),b=y[0],w=y[1];Mt(r.useState([]),2);r.useEffect(function(){t({type:"seting/getQueryPackageDeployList",payload:{applicationId:l,queryType:1,type:"test"},callback:function(e){var t,n;h(null==e||null===(t=e.taskList)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.taskId,"test"),Yr.emit("getCloudData")}})},[]);var x,B=function(e){var n=u.find(function(e){return e.taskId===d}).taskId;"测试通过"===e?t({type:"seting/setTestConfirmation",payload:Pt({},{applicationId:l,taskId:n})}).then(function(){t({type:"seting/getQueryPackageDeployList",payload:{applicationId:l,queryType:1,type:"test"}})}):"测试开始"===e&&C(d)},C=function(e){t({type:"seting/updateProgramVersion",payload:{taskId:e}}).then(function(){t({type:"seting/getQueryPackageDeployList",payload:{applicationId:l,queryType:1,type:"test"}})})},E=function(){var e=vt(Ut().m(function e(n){var r;return Ut().w(function(e){for(;;)switch(e.n){case 0:return r=null==u?void 0:u.find(function(e){return e.taskId===n.key}),e.n=1,t({type:"seting/updateState",payload:{taskId:n.key,currentTaskPageData:r,currentTaskName:"".concat("TEST"===r.packageType?"(测试)":"").concat(r.projectName).concat(r.version),currentTaskId:n.key,testPassThrough:null==r?void 0:r.testPassThrough,deployStatus:null==r?void 0:r.deployStatus,currentDeployMachineCode:(null==r?void 0:r.deployMachineCode)||"",lineVersionFlag:null==r?void 0:r.lineVersionFlag,packageType:null==r?void 0:r.packageType}});case 1:return e.n=2,t({type:"seting/getQueryCloudResource",payload:{applicationId:l,packageType:null==r?void 0:r.packageType,taskId:n.key}}).then(function(){Yr.emit("CloudData")});case 2:h(n.key,"test");case 3:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}();return fe.default.createElement(fe.default.Fragment,null,(null==u?void 0:u.length)>0?fe.default.createElement(fe.default.Fragment,null,fe.default.createElement("div",{className:aD.fileBox},!_&&fe.default.createElement("div",{className:aD.tipBox},fe.default.createElement("div",{className:aD.tipTitle},fe.default.createElement("p",null,"操作指引"),fe.default.createElement("img",{src:Cn,alt:"",onClick:function(){return v(!0)}})),fe.default.createElement("div",{className:aD.tipText},fe.default.createElement("p",null,"1.请完成【云游戏配置】"),fe.default.createElement("p",null,"2.在引擎内测试模型,若无问题请点击“测试通过”"))),fe.default.createElement("div",{className:aD.title},"待测试程序包:"),(null==u?void 0:u.length)>1?(x=fe.default.createElement(Me.default,{className:aD.fileMenu,onClick:E,style:{height:"310px",overflowY:"scroll"}},(null==u?void 0:u.length)>0&&(null==u?void 0:u.map(function(e){return fe.default.createElement(Me.default.Item,{key:e.taskId},fe.default.createElement("span",{title:"".concat("TEST"===e.packageType?"(测试)":"").concat(e.projectName).concat(e.version),className:ve.default(1===(null==e?void 0:e.lineVersionFlag)?aD.projectName:aD.noLineProjectName)},"".concat("TEST"===e.packageType?"(测试)":"").concat(e.projectName).concat(e.version)),"PROD"===e.packageType&&1===e.lineVersionFlag&&fe.default.createElement("i",null,"线上版本"))}))),fe.default.createElement(Ne.default,{overlay:x,trigger:["hover"],onVisibleChange:function(e){return w(e)}},fe.default.createElement("div",{className:aD.flieInfo},fe.default.createElement("div",{className:aD.fileContent},fe.default.createElement("img",{src:Xn,alt:""}),fe.default.createElement("div",{title:p,className:aD.projectName},p)),fe.default.createElement("div",{className:ve.default(b?aD.rotate:"",aD.versionIcon)},"PROD"===g&&1===f&&fe.default.createElement("span",null,"线上版本"),fe.default.createElement("i",{className:aD.triangle}))))):fe.default.createElement("div",{className:aD.flieInfo,style:{cursor:"pointer"}},fe.default.createElement("div",{className:aD.fileContent},fe.default.createElement("img",{src:Xn,alt:""}),fe.default.createElement("div",{title:p,className:aD.projectName},p))),fe.default.createElement("div",{className:aD.buttonBox,id:"burBox"},i&&3===(null==A?void 0:A.testPassThrough)&&fe.default.createElement(at.default,{placement:"leftTop",title:fe.default.createElement("div",{style:{display:"flex",flexDirection:"column"}},fe.default.createElement("span",{style:{fontWeight:"bold"}},"确定测试完成吗?"),fe.default.createElement("span",{style:{color:"#404b60",marginTop:"8px"}},"该程序包测试通过后不可再次测试。")),onConfirm:function(){return B("测试通过")},okText:"通过",cancelText:"取消"},fe.default.createElement("div",{className:aD.passBut,style:{width:"80px"}},"测试完成")),i?1===(null==A?void 0:A.testPassThrough)?fe.default.createElement("div",{className:ve.default(aD.passBut,aD.butNo),style:{width:1===(null==A?void 0:A.testPassThrough)?"100px":"80px"}},"测试完成",1===(null==A?void 0:A.testPassThrough)?fe.default.createElement("img",{src:Jn,alt:""}):""):"":1===(null==A?void 0:A.testPassThrough)||3===(null==A?void 0:A.testPassThrough)?fe.default.createElement("div",{className:ve.default(aD.passBut,aD.butNo),style:{width:1===(null==A?void 0:A.testPassThrough)?"100px":"80px"}},"测试完成",1===(null==A?void 0:A.testPassThrough)?fe.default.createElement("img",{src:Jn,alt:""}):""):"",i&&2===(null==A?void 0:A.testPassThrough)&&fe.default.createElement(at.default,{placement:"leftTop",title:fe.default.createElement("div",{style:{display:"flex",flexDirection:"column"}},fe.default.createElement("span",{style:{fontWeight:"bold"}},"确定开始测试吗?")),onConfirm:function(){return B("测试开始")},okText:"开始",cancelText:"取消"},fe.default.createElement("div",{className:aD.passBut,style:{width:"80px"}},"测试开始")),!i&&2===(null==A?void 0:A.testPassThrough)&&fe.default.createElement("div",{className:ve.default(aD.passBut,aD.butNo),style:{width:1===(null==A?void 0:A.testPassThrough)?"100px":"80px"}},"测试开始",1===(null==A?void 0:A.testPassThrough)?fe.default.createElement("img",{src:Jn,alt:""}):""),fe.default.createElement(Ee.default,{className:aD.shareBut,onClick:a},fe.default.createElement("img",{src:qn,alt:""}),"分享")),fe.default.createElement("div",1===(null==A?void 0:A.testPassThrough)?{className:ve.default(aD.nextButton),onClick:function(){1===(null==A?void 0:A.testPassThrough)&&n(Zt[1],"nextStep")}}:{className:ve.default(aD.nextButton,aD.butNo)},"下一步:上线程序包")),fe.default.createElement(bD,{taskId:d,packageType:g,deployMachineCode:c})):fe.default.createElement(wD,{text:"暂无待上线的版本",text1:"请前往程序预览页执行",pageName:"部署",setRouter:function(){return o("/programStructure")}}))}),BD=n.connect(function(e){return{app:e.app,seting:e.seting,programPackage:e.programPackage}})(function(e){var t=e.dispatch,n=e.openVisibleShare,o=e.setIframeUpdate,a=e.onTab,i=e.app.applicationId,l=e.seting,s=l.cloudGameTask,A=l.newCloudGameTask,c=Mt(r.useState({}),2),u=c[0],d=c[1];r.useEffect(function(){p();var e=null;return e&&(clearInterval(e),e=null),e=setInterval(function(){null===A?(clearInterval(e),e=null):p()},5e4),function(){clearInterval(e),e=null}},[]);var p=function(){t({type:"seting/getQueryPackageDeployList",payload:{applicationId:i,queryType:1,type:"pro"},callback:function(e){var t;o(null==e||null===(t=e.cloudGameTask)||void 0===t?void 0:t.taskId,"pro"),Yr.emit("getCloudData");try{d(null==e?void 0:e.newCloudGameTask)}catch(e){}}})};return fe.default.createElement(fe.default.Fragment,null,s||u?fe.default.createElement(fe.default.Fragment,null,fe.default.createElement("div",{className:aD.fileBox},(4===(null==u?void 0:u.status)||5===(null==u?void 0:u.status)||1===(null==u?void 0:u.status)||3===(null==u?void 0:u.status)||7===(null==u?void 0:u.status))&&fe.default.createElement("div",{className:aD.versionLading},fe.default.createElement("div",null,fe.default.createElement("img",{src:Zn,alt:"",className:aD.loading}),fe.default.createElement("span",{className:aD.projectName},"".concat(null==u?void 0:u.projectName).concat(null==u?void 0:u.version))),4===(null==u?void 0:u.status)&&fe.default.createElement("span",{className:aD.but},"排队中"),5===(null==u?void 0:u.status)&&fe.default.createElement("span",{className:aD.but},"传输中"),1===(null==u?void 0:u.status)&&fe.default.createElement("span",{className:aD.but},"构建中"),3===(null==u?void 0:u.status)&&fe.default.createElement("span",{className:"".concat(aD.but," ").concat(aD.err)},"构建失败"),7===(null==u?void 0:u.status)&&fe.default.createElement("span",{className:"".concat(aD.but," ").concat(aD.err)},"传输失败")),fe.default.createElement("div",{className:aD.title},"线上程序包:"),fe.default.createElement("div",{className:aD.flieInfo,style:{cursor:"pointer"}},fe.default.createElement("div",{className:aD.fileContent},fe.default.createElement("img",{src:Xn,alt:""}),s?fe.default.createElement("div",{title:"".concat(null==s?void 0:s.projectName).concat(null==s?void 0:s.version),className:aD.projectName},"".concat(null==s?void 0:s.projectName).concat(null==s?void 0:s.version)):fe.default.createElement("div",{className:aD.projectName},"无数据"))),fe.default.createElement("div",{className:aD.buttonBox,id:"burBox"},fe.default.createElement(Ee.default,{className:aD.shareBut,onClick:n},fe.default.createElement("img",{src:qn,alt:""}),"分享"))),fe.default.createElement(bD,{taskId:null==s?void 0:s.taskId,packageType:null==s?void 0:s.packageType,deployMachineCode:""})):fe.default.createElement(wD,{text:"暂无待上线的生产版本",setRouter:function(){return a(Zt[0])}}))}),CD=n.connect(function(e){return{app:e.app,seting:e.seting,programPackage:e.programPackage}})(function(e){var t=e.dispatch,n=e.onTab,o=e.activeTabKey,a=e.app,i=a.userData,l=a.projectId,A=e.seting.isVisibleShare,c=Mt(r.useState(!1),2),u=c[0],d=c[1],p=Mt(r.useState(!1),2),f=p[0],g=p[1];r.useEffect(function(){var e=i.projectRoleAuthority,t=null;e&&e.forEach(function(e){if(e.projectId===l){var n=e.userRoleResVOList;t=n.length>0&&n[0].roleCode}}),h(null==i?void 0:i.roleCode,t)},[]);var h=function(e,t){"tester"!==e&&"super_administrator"!==e&&"manager"!==t||d(!0),"super_administrator"!==e&&"manager"!==t||g(!0)},m=function(){var e=document.getElementById("burBox").offsetTop;t({type:"seting/updateState",payload:{isVisibleShare:!A,shareTopVal:e}})},_=function(e,n){t({type:"seting/updateState",payload:{isPageOKTaskId:e,iframeType:n}})};return fe.default.createElement(fe.default.Fragment,null,"onTest"===o?fe.default.createElement(xD,{onTab:n,isTestRole:u,setIframeUpdate:_,openVisibleShare:m,setRouter:function(t){return function(t){e.dispatch(s.routerRedux.push({pathname:t}))}(t)}}):fe.default.createElement(BD,{onTab:n,isProRole:f,setIframeUpdate:_,openVisibleShare:m}))}),ED="inLineVersion_inLineVersion__329Rw",kD="inLineVersion_stepTitle__TvOLl",ID="inLineVersion_arrows__1zM1E",SD="inLineVersion_hide__3hhxe",FD="inLineVersion_fileBox__1E2Nj",PD="inLineVersion_historyList__2LUCC";Rt(".inLineVersion_inLineVersion__329Rw{box-sizing:border-box;height:calc(100% - 70px);padding:14px}.inLineVersion_inLineVersion__329Rw .inLineVersion_stepTitle__TvOLl{display:flex;align-items:flex-end;color:#000f2c;font-weight:400;font-size:12px;font-style:normal;line-height:20px;cursor:pointer;opacity:.6}.inLineVersion_inLineVersion__329Rw .inLineVersion_arrows__1zM1E{display:inline-block;width:8px;height:6px;margin-left:6px;border:6px solid transparent;border-top-color:rgba(0,15,44,.3)}.inLineVersion_inLineVersion__329Rw .inLineVersion_hide__3hhxe{align-items:flex-start!important}.inLineVersion_inLineVersion__329Rw .inLineVersion_hide__3hhxe .inLineVersion_arrows__1zM1E{transform:rotate(180deg)}.inLineVersion_inLineVersion__329Rw .inLineVersion_fileBox__1E2Nj{display:flex;align-items:center;box-sizing:border-box;width:282px;height:65px;margin:5px 0 27px;padding:0 12px;border:1px solid #abb1c0;border-radius:4px}.inLineVersion_inLineVersion__329Rw .inLineVersion_fileBox__1E2Nj>img{width:30px;height:25.38px;margin-right:14px}.inLineVersion_inLineVersion__329Rw .inLineVersion_fileBox__1E2Nj>div{width:210px;overflow:hidden;color:#000f2c;font-weight:400;font-size:12px;font-family:Noto Sans SC;font-style:normal;line-height:17px;white-space:nowrap;text-overflow:ellipsis}.inLineVersion_inLineVersion__329Rw .inLineVersion_historyList__2LUCC{height:calc(100% - 142px);overflow-y:scroll}.inLineVersion_inLineVersion__329Rw .inLineVersion_historyList__2LUCC::-webkit-scrollbar{width:0;height:0}.inLineVersion_noData__2mAdn{width:100%;height:100%;background-color:#fff}.inLineVersion_noData__2mAdn .inLineVersion_noDataText__3SPI0{color:#9da1aa}");var LD="historyList_historyBox__1c5Ec",UD="historyList_item__n8PB0",QD="historyList_titles__JK1Zt",ND="historyList_title__uciff",MD="historyList_current__3t4mK",DD="historyList_fileState__2jQ7T",TD="historyList_backVersion__j4fUW",OD="historyList_info__OgjM4",HD="historyList_dateTime__3q_3t",RD="historyList_noData__1JfRx",VD="historyList_noDataText__3Y75m";Rt('.historyList_historyBox__1c5Ec{margin:12px 0 20px}.historyList_historyBox__1c5Ec .historyList_item__n8PB0{box-sizing:border-box;margin-bottom:12px;background:#fcfcfc;border:1px solid #d9d9d9;border-radius:4px}.historyList_historyBox__1c5Ec .historyList_item__n8PB0 .historyList_titles__JK1Zt{display:flex;align-items:center;justify-content:space-between;height:42px;border-bottom:1px solid #d9d9d9}.historyList_historyBox__1c5Ec .historyList_item__n8PB0 .historyList_titles__JK1Zt .historyList_title__uciff{color:#000f2c;font-weight:400;font-size:12px;font-family:Noto Sans SC;font-style:normal;line-height:17px}.historyList_historyBox__1c5Ec .historyList_item__n8PB0 .historyList_titles__JK1Zt .historyList_title__uciff:before{margin-right:13px;color:#d9d9d9;background:#d9d9d9;border-radius:4px;content:"|"}.historyList_historyBox__1c5Ec .historyList_item__n8PB0 .historyList_titles__JK1Zt .historyList_current__3t4mK:before{color:#397bff!important;background:#397bff!important}.historyList_historyBox__1c5Ec .historyList_item__n8PB0 .historyList_titles__JK1Zt .historyList_fileState__2jQ7T{display:flex;flex-direction:row;align-items:center;margin-right:10px;padding:2px 6px;color:#23c16b;font-weight:600;font-size:12px;font-family:PingFang SC;font-style:normal;line-height:17px;background:rgba(35,193,107,.1);border-radius:4px}.historyList_historyBox__1c5Ec .historyList_item__n8PB0 .historyList_titles__JK1Zt .historyList_backVersion__j4fUW{display:flex;flex-direction:row;align-items:center;margin-right:10px;padding:2px 6px;color:#397bff;font-weight:600;font-size:12px;font-family:PingFang SC;font-style:normal;line-height:17px;background:rgba(57,123,255,.1);border-radius:4px;cursor:pointer}.historyList_historyBox__1c5Ec .historyList_item__n8PB0 .historyList_info__OgjM4{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-around;box-sizing:border-box;padding:12px 10px 19px}.historyList_historyBox__1c5Ec .historyList_item__n8PB0 .historyList_info__OgjM4>div{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;width:100%;white-space:nowrap}.historyList_historyBox__1c5Ec .historyList_item__n8PB0 .historyList_info__OgjM4>div .historyList_dateTime__3q_3t{margin-right:8px;margin-left:8px;color:#121c2b;font-weight:400;font-size:12px;font-style:normal;line-height:17px;opacity:.6}.historyList_historyBox__1c5Ec .historyList_item__n8PB0 .historyList_info__OgjM4>div:first-child{margin-bottom:10px}.historyList_historyBox__1c5Ec .historyList_noData__1JfRx{width:100%;height:100%;background-color:#fff}.historyList_historyBox__1c5Ec .historyList_noData__1JfRx .historyList_noDataText__3Y75m{color:rgba(0,0,0,.25)}.ant-modal-confirm-btns>.ant-btn-primary{color:#fff!important}');var jD=be.default.confirm,zD=function(e){function t(e){var n;return bt(this,t),(n=yt(this,t,[e])).setBackVersion=function(e,t){var r=n.props,o=r.getHistory,a=r.app.applicationId,i=n;jD({title:"确定要回滚".concat(t,"版本程序包吗?"),onOk:function(){i.props.dispatch({type:"seting/useCloudGame",payload:{taskId:e}}).then(function(e){o(),i.props.dispatch({type:"seting/getQueryPackageDeployList",payload:{applicationId:a,queryType:1,type:"pro"}})})},onCancel:function(){console.log("Cancel")}})},n.state={historyList:[]},n}return It(t,e),xt(t,[{key:"render",value:function(){var e=this,t=this.props.seting.historyList;return fe.default.createElement("div",{className:LD},(null==t?void 0:t.length)>0?t.map(function(t,n){var r;return fe.default.createElement("div",{className:UD,key:n},fe.default.createElement("div",{className:QD},fe.default.createElement("span",{className:ve.default(ND,1===t.lineFlag?MD:"")},null==t?void 0:t.taskName),1===(null==t?void 0:t.lineFlag)?fe.default.createElement("span",{className:DD},"线上版本"):fe.default.createElement("span",{className:TD,onClick:function(){return e.setBackVersion(null==t?void 0:t.taskId,null==t?void 0:t.taskName)}},"回滚")),fe.default.createElement("div",{className:OD},null==t||null===(r=t.objectResponseList)||void 0===r?void 0:r.map(function(e,t){return fe.default.createElement("div",{key:t},fe.default.createElement("span",null,e.operationContent),fe.default.createElement("div",{className:HD},e.createrTime))})),fe.default.createElement("div",null))}):fe.default.createElement("div",{className:RD},fe.default.createElement(Qe.default,{description:fe.default.createElement("span",{className:VD},"暂无数据")})))}}])}(r.Component),GD=n.connect(function(e){return{app:e.app,seting:e.seting}})(zD);var KD=n.connect(function(e){return{app:e.app,seting:e.seting}})(function(e){var t=e.dispatch,n=e.app.applicationId,o=e.seting,a=o.cloudGameTask,i=o.sceneId,l=Mt(r.useState(!0),2),s=l[0],A=l[1];r.useEffect(function(){(null==a?void 0:a.taskId)&&u(null==a?void 0:a.taskId),c()},[]);var c=function(){t({type:"seting/getQueryOperationLog",payload:{sceneId:i,applicationId:n}})},u=function(e){t({type:"seting/updateState",payload:{isPageOKTaskId:e,iframeType:"pro"}})};return fe.default.createElement("div",{className:ED},fe.default.createElement(fe.default.Fragment,null,fe.default.createElement("div",{className:kD},"线上程序包:"),fe.default.createElement("div",{className:FD},fe.default.createElement("img",{src:Xn,alt:""}),fe.default.createElement("div",null,null===a?"无线上程序包":"".concat(null==a?void 0:a.projectName).concat(null==a?void 0:a.version))),fe.default.createElement("div",{className:ve.default(kD,s&&SD),onClick:function(){return A(!s)}},"历史记录",fe.default.createElement("i",{className:ID})),s&&fe.default.createElement("div",{className:PD},fe.default.createElement(GD,{getHistory:c}))))}),WD=be.default.confirm;var YD=n.connect(function(e){return{app:e.app,seting:e.seting}})(function(e){var t=e.seting,n=t.cloudGameTask,o=t.currentTaskPageData,a=e.app,i=a.applicationId,l=a.applicationName,s=e.handleLogClose,A=e.dispatch,c=Ye.default.TabPane,u=Mt(r.useState(Zt[0]),2),d=u[0],p=u[1],f=Mt(r.useState("1"),2),g=f[0],h=f[1];function m(e){"nextStep"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"")?WD({title:"确定上线程序吗?",content:"该程序包发布后,会覆盖原有的线上版本。",okText:"确定",cancelText:"取消",onOk:function(){A({type:"seting/startMakingCloudGame",payload:Pt({},{applicationId:i,applicationName:l,packageType:"PROD",taskId:null==o?void 0:o.taskId})}).then(function(t){console.log("开始制作回调",t),void 0!==t&&A({type:"seting/getQueryPackageDeployList",payload:{applicationId:i,queryType:1,type:"test"},callback:function(){p(e)}})})},onCancel:function(){console.log("Cancel")}}):p(e)}return r.useEffect(function(){},[]),fe.default.createElement("div",{className:oD.rightBox},fe.default.createElement(Ye.default,{defaultActiveKey:"1",onChange:function(e){h(e),"2"===e&&A({type:"seting/updateProgramRead",payload:{taskId:null==n?void 0:n.taskId}}).then(function(){A({type:"seting/getQueryPackageDeployList",payload:{applicationId:i,queryType:1,type:"pro"}})})}},fe.default.createElement(c,{tab:"待上线版本",key:"1"}),fe.default.createElement(c,{tab:1===(null==n?void 0:n.releaseFlag)?fe.default.createElement(we.default,{dot:!0},"线上版本 "):"线上版本",key:"2"})),"1"===g?fe.default.createElement("div",{className:oD.willInLine},fe.default.createElement("div",{className:oD.configurationPanel},fe.default.createElement("div",{className:oD.configTabList},Zt.map(function(e,t){return fe.default.createElement("div",{key:e.key,className:ve.default(oD.configTabItem,Ct({},oD.active,e.key===d.key)),onClick:function(){return m(e)}},fe.default.createElement("span",null,t+1),fe.default.createElement("div",{className:oD.tabName},e.name),t===Zt.length-1?"":fe.default.createElement("div",{className:oD.divider}))}))),fe.default.createElement("div",{className:oD.contentBox},fe.default.createElement(CD,{activeTabKey:d.key,onTab:function(e){return m(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"")},handleLogClose:s}))):fe.default.createElement(KD,null))}),XD="share_shareBox__3WAwM",qD="share_header__3MZ48",JD="share_flex__3zh7N",ZD="share_item__3s7bG",$D="share_content__2WfhJ",eT="share_itemTitle__3M7r2",tT="share_urlBox__3kA85",nT="share_urlText__1khjU",rT="share_code__1bqxC",oT="share_upLoadImgH5__3IIHy",aT="share_upLoadImgWX__3pX_Z",iT="share_uploadButton__WzvXu",lT="share_link__-ekKu",sT="share_submitBut__N-yPG",AT="share_flexEnd__cKl55";Rt(".share_shareBox__3WAwM{width:371px;height:696px;background:#fff;box-shadow:0 4px 4px rgba(0,0,0,.25);transform-origin:371px 0}.share_shareBox__3WAwM .share_header__3MZ48{display:flex;align-items:center;justify-content:space-between;width:371px;height:54px;padding:0 21px 0 28px;background:#fff;box-shadow:inset 0 -1px 0 #f0f0f0}.share_shareBox__3WAwM .share_header__3MZ48 span{color:rgba(0,0,0,.85);font-weight:600;font-size:14px;font-family:PingFang SC;font-style:normal;line-height:20px}.share_shareBox__3WAwM .share_header__3MZ48 img{width:12px;height:12px;cursor:pointer}.share_shareBox__3WAwM .share_header__3MZ48 img:hover{opacity:.7}.share_shareBox__3WAwM .share_flex__3zh7N{display:flex}.share_shareBox__3WAwM .share_flex__3zh7N .share_item__3s7bG{margin-right:40px}.share_shareBox__3WAwM .share_content__2WfhJ{height:630px;padding:22px;overflow-y:scroll}.share_shareBox__3WAwM .share_content__2WfhJ .share_item__3s7bG{margin-bottom:32px}.share_shareBox__3WAwM .share_content__2WfhJ .share_item__3s7bG .share_itemTitle__3M7r2{margin-bottom:8px}.share_shareBox__3WAwM .share_content__2WfhJ .share_item__3s7bG p:first-child{color:#000;font-weight:600;font-size:16px;font-family:PingFang SC;font-style:normal;line-height:20px}.share_shareBox__3WAwM .share_content__2WfhJ .share_item__3s7bG p:nth-child(2){margin:9px 0 12px;color:#000f2c;font-weight:400;font-size:12px;font-style:normal;line-height:20px;opacity:.6}.share_shareBox__3WAwM .share_content__2WfhJ .share_item__3s7bG .share_urlBox__3kA85{display:flex;align-items:center;box-sizing:border-box;width:327px;height:40px;margin-top:12px;margin-bottom:29px;overflow:hidden}.share_shareBox__3WAwM .share_content__2WfhJ .share_item__3s7bG .share_urlBox__3kA85 .share_urlText__1khjU{display:flex;align-items:center;box-sizing:border-box;width:246px;height:100%;padding:4px;overflow:hidden;color:#121c2b;white-space:nowrap;text-overflow:ellipsis;border:1px solid #abb1c0;border-radius:4px 0 0 4px}.share_shareBox__3WAwM .share_content__2WfhJ .share_item__3s7bG .share_urlBox__3kA85>span{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:80.75px;height:100%;color:#fff;font-weight:400;font-size:14px;font-family:PingFang SC;font-style:normal;line-height:20px;background:#3465e3;border-radius:0 4px 4px 0}.share_shareBox__3WAwM .share_content__2WfhJ .share_item__3s7bG .share_code__1bqxC{display:flex;align-items:center;justify-content:center;width:160px;height:160px;border:1px solid #abb1c0;border-radius:10px}.share_shareBox__3WAwM .share_content__2WfhJ .share_item__3s7bG .share_upLoadImgH5__3IIHy{width:64px;height:64px;margin-top:8px}.share_shareBox__3WAwM .share_content__2WfhJ .share_item__3s7bG .share_upLoadImgH5__3IIHy .ant-upload-list-picture-card .ant-upload-list-item{padding:0}.share_shareBox__3WAwM .share_content__2WfhJ .share_item__3s7bG .share_upLoadImgH5__3IIHy .ant-upload-list-picture-card-container,.share_shareBox__3WAwM .share_content__2WfhJ .share_item__3s7bG .share_upLoadImgH5__3IIHy .ant-upload.ant-upload-select-picture-card{width:64px!important;height:64px!important}.share_shareBox__3WAwM .share_content__2WfhJ .share_item__3s7bG .share_upLoadImgWX__3pX_Z{width:80px;height:64px;margin-top:8px}.share_shareBox__3WAwM .share_content__2WfhJ .share_item__3s7bG .share_upLoadImgWX__3pX_Z .ant-upload-list-picture-card .ant-upload-list-item{padding:0}.share_shareBox__3WAwM .share_content__2WfhJ .share_item__3s7bG .share_upLoadImgWX__3pX_Z .ant-upload-list-picture-card-container,.share_shareBox__3WAwM .share_content__2WfhJ .share_item__3s7bG .share_upLoadImgWX__3pX_Z .ant-upload.ant-upload-select-picture-card{width:80px;height:64px}.share_shareBox__3WAwM .share_uploadButton__WzvXu{color:#717d99;font-weight:400;font-size:13px;font-family:PingFang SC;font-style:normal}.share_shareBox__3WAwM .share_link__-ekKu{width:100%;height:2px;margin:10px 0;background-color:#f0f2f5}.share_shareBox__3WAwM .share_submitBut__N-yPG{display:inline-block;width:60px;height:32px;color:#fff;font-weight:400;font-size:14px;font-style:normal;line-height:32px;text-align:center;background:#3465e3;border-radius:4px;cursor:pointer}.share_shareBox__3WAwM .share_submitBut__N-yPG:hover{opacity:.8}.share_shareBox__3WAwM .share_flexEnd__cKl55{display:flex;align-items:flex-end;justify-content:flex-end}");var cT="".concat(Jo().BASEURL,"/api");function uT(e){return dT.apply(this,arguments)}function dT(){return(dT=vt(Ut().m(function e(t){return Ut().w(function(e){for(;;)if(0===e.n)return e.a(2,ra({url:cT+"/vbim-parking-server/testOnline/queryPackageDeployList",method:"post",data:t}))},e)}))).apply(this,arguments)}function pT(e){return fT.apply(this,arguments)}function fT(){return(fT=vt(Ut().m(function e(t){return Ut().w(function(e){for(;;)if(0===e.n)return e.a(2,ra({url:cT+"/vbim-parking-server/testOnline/saveCloudGameInfo",method:"post",data:t}))},e)}))).apply(this,arguments)}function gT(e){return hT.apply(this,arguments)}function hT(){return(hT=vt(Ut().m(function e(t){return Ut().w(function(e){for(;;)if(0===e.n)return e.a(2,ra({url:cT+"/vbim-scene-server/sceneProgram/publishConfirm",method:"post",data:t}))},e)}))).apply(this,arguments)}function mT(e){return _T.apply(this,arguments)}function _T(){return(_T=vt(Ut().m(function e(t){return Ut().w(function(e){for(;;)if(0===e.n)return e.a(2,ra({url:cT+"/vbim-scene-server/sceneProgram/testConfirmation",method:"post",data:t}))},e)}))).apply(this,arguments)}function vT(e){return yT.apply(this,arguments)}function yT(){return(yT=vt(Ut().m(function e(t){return Ut().w(function(e){for(;;)if(0===e.n)return e.a(2,ra({url:cT+"/vbim-parking-server/testOnline/queryCloudResource",method:"post",data:t}))},e)}))).apply(this,arguments)}function bT(){return wT.apply(this,arguments)}function wT(){return wT=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-scene-server/sceneProgram/queryOperationLog"),method:"post",data:t}))},e)})),wT.apply(this,arguments)}function xT(e){return BT.apply(this,arguments)}function BT(){return(BT=vt(Ut().m(function e(t){return Ut().w(function(e){for(;;)if(0===e.n)return e.a(2,ra({url:"".concat(cT,"/vbim-parking-server/deploy/publishCloudGame?taskId=").concat(null==t?void 0:t.taskId,"&t=").concat((new Date).getTime()),method:"GET"}))},e)}))).apply(this,arguments)}function CT(){return ET.apply(this,arguments)}function ET(){return ET=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-scene-server/countersign/createOpinionId"),method:"post",data:t}))},e)})),ET.apply(this,arguments)}function kT(){return IT.apply(this,arguments)}function IT(){return IT=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-scene-server/user/projectUserList"),method:"post",data:t}))},e)})),IT.apply(this,arguments)}function ST(){return FT.apply(this,arguments)}function FT(){return FT=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-scene-server/countersign/opinionList"),method:"post",data:t}))},e)})),FT.apply(this,arguments)}function PT(){return LT.apply(this,arguments)}function LT(){return LT=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-scene-server/countersign/stopCountersign"),method:"post",data:t}))},e)})),LT.apply(this,arguments)}function UT(){return QT.apply(this,arguments)}function QT(){return QT=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-scene-server/countersign/openCountersign"),method:"post",data:t}))},e)})),QT.apply(this,arguments)}function NT(){return MT.apply(this,arguments)}function MT(){return MT=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-scene-server/countersign/shareLink"),method:"post",data:t}))},e)})),MT.apply(this,arguments)}function DT(){return TT.apply(this,arguments)}function TT(){return TT=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-scene-server/countersign/modifySceneEndTime"),method:"post",data:t}))},e)})),TT.apply(this,arguments)}function OT(){return HT.apply(this,arguments)}function HT(){return HT=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-scene-server/countersign/addComment"),method:"post",data:t}))},e)})),HT.apply(this,arguments)}function RT(){return VT.apply(this,arguments)}function VT(){return VT=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-scene-server/countersign/deleteCountersign"),method:"post",data:t}))},e)})),VT.apply(this,arguments)}function jT(){return zT.apply(this,arguments)}function zT(){return zT=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-scene-server/countersign/modifyOpinionStatus"),method:"post",data:t}))},e)})),zT.apply(this,arguments)}function GT(){return KT.apply(this,arguments)}function KT(){return KT=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-scene-server/countersign/editCountersign"),method:"post",data:t}))},e)})),KT.apply(this,arguments)}function WT(){return YT.apply(this,arguments)}function YT(){return YT=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-scene-server/countersign/addCountersign"),method:"post",data:t}))},e)})),YT.apply(this,arguments)}function XT(){return qT.apply(this,arguments)}function qT(){return(qT=vt(Ut().m(function e(){return Ut().w(function(e){for(;;)if(0===e.n)return e.a(2,ra({url:"".concat(cT,"/vbim-scene-server/file/fileUploadAppInfo"),method:"get"}))},e)}))).apply(this,arguments)}function JT(){return ZT.apply(this,arguments)}function ZT(){return ZT=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-file-server/auther/accessToken?appId=").concat(t.appId,"&appToken=").concat(t.appToken),method:"get"}))},e)})),ZT.apply(this,arguments)}function $T(){return eO.apply(this,arguments)}function eO(){return eO=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-parking-server/testOnline/updateProgramVersion"),method:"post",data:t}))},e)})),eO.apply(this,arguments)}function tO(){return nO.apply(this,arguments)}function nO(){return nO=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-parking-server/programPackage/updateProgramRead"),method:"post",data:t}))},e)})),nO.apply(this,arguments)}function rO(){return oO.apply(this,arguments)}function oO(){return oO=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-parking-server/file/queryUploadFileProcess"),method:"post",data:t}))},e)})),oO.apply(this,arguments)}function aO(){return aO=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-parking-server/app/saveOrUpdateWxShareContent"),method:"post",data:t}))},e)})),aO.apply(this,arguments)}function iO(){return iO=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-parking-server/app/queryWxShareContent?applicationId=").concat(t,"&t=").concat((new Date).getTime()),method:"GET"}))},e)})),iO.apply(this,arguments)}function lO(){return sO.apply(this,arguments)}function sO(){return sO=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-parking-server/sourceMaterial/startMakingCloudGame"),method:"post",data:t}))},e)})),sO.apply(this,arguments)}var AO=He.default.TextArea,cO=function(e){function t(e){var n;return bt(this,t),(n=yt(this,t,[e])).closeVisibleShare=function(){n.props.dispatch({type:"seting/updateState",payload:{isVisibleShare:!1}})},n.onSuccess=function(){de.default.info("复制成功!")},n.getWXshare=function(){(function(){return iO.apply(this,arguments)})(n.props.app.applicationId).then(function(e){var t;if(200===(null==e||null===(t=e.data)||void 0===t?void 0:t.code)){var r,o=null==e||null===(r=e.data)||void 0===r?void 0:r.value;if(o){var a=[],i=[];i.push({url:null==o?void 0:o.thumbnailUrl}),a.push({url:null==o?void 0:o.h5ShareImageUrl}),n.setState({WXImg:i,h5Img:a,title:null==o?void 0:o.title,content:null==o?void 0:o.content})}}})},n.beforeUpload=function(e,t){if("image/jpeg"===t.type||"image/png"===t.type)return n.uploadFile(e,t),!1;de.default.info("图片格式不正确!")},n.uploadFile=function(){var e=vt(Ut().m(function e(t,r){var o;return Ut().w(function(e){for(;;)switch(e.n){case 0:(o=new FormData).append("file",r),n.props.dispatch({type:"app/uploadFileMult",payload:o}).then(function(e){var r=[];r.push({url:null==e?void 0:e.fileAccessUrl}),console.log(r),"h5"===t?n.setState({h5Img:r}):"wx"===t&&n.setState({WXImg:r})});case 1:return e.a(2)}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.handleSubmit=function(){var e,t,r=n.state;(function(){return aO.apply(this,arguments)})({applicationId:n.props.app.applicationId,thumbnailUrl:null===(e=r.WXImg[0])||void 0===e?void 0:e.url,h5ShareImageUrl:null===(t=r.h5Img[0])||void 0===t?void 0:t.url,title:r.title,content:r.content}).then(function(e){var t,n,r;200===(null==e||null===(t=e.data)||void 0===t?void 0:t.code)?de.default.success(null==e||null===(n=e.data)||void 0===n?void 0:n.message):de.default.error(null==e||null===(r=e.data)||void 0===r?void 0:r.message)})},n.removeCoverImgFile=function(e,t){n.setState("h5"===e?{h5Img:[]}:{WXImg:[]})},n.handleValue=function(e,t){console.log(e,t),n.setState(Ct({},t,e.target.value))},n.state={parkingUrl:"",h5Img:[],WXImg:[],title:"",content:""},n}return It(t,e),xt(t,[{key:"componentDidMount",value:(n=vt(Ut().m(function e(){return Ut().w(function(e){for(;;)switch(e.n){case 0:return this.setState({parkingUrl:this.props.parkingUrl}),e.n=1,this.getWXshare();case 1:return e.a(2)}},e,this)})),function(){return n.apply(this,arguments)})},{key:"render",value:function(){var e=this,t=this.state,n=t.WXImg,r=t.parkingUrl,o=t.h5Img,a=t.title,i=t.content;return fe.default.createElement("div",{className:XD},fe.default.createElement("div",{className:qD},fe.default.createElement("span",null,"分享"),fe.default.createElement("img",{src:Cn,alt:"",onClick:this.closeVisibleShare})),fe.default.createElement("div",{className:$D},fe.default.createElement("div",{className:JD},fe.default.createElement("div",{className:ZD},fe.default.createElement("p",null,"H5分享图"),fe.default.createElement("div",{className:oT},fe.default.createElement(Ue.default,{accept:".jpg,.png",listType:"picture-card",fileList:o,showUploadList:{showRemoveIcon:!0,showPreviewIcon:!1},beforeUpload:function(t){return e.beforeUpload("h5",t)},onRemove:function(t){return e.removeCoverImgFile("h5",t)}},1>o.length?fe.default.createElement("div",{className:iT},"上传照片"):null))),fe.default.createElement("div",{className:ZD},fe.default.createElement("p",null,"小程序分享图"),fe.default.createElement("div",{className:aT},fe.default.createElement(Ue.default,{accept:".jpg,.png",listType:"picture-card",fileList:n,showUploadList:{showRemoveIcon:!0,showPreviewIcon:!1},beforeUpload:function(t){return e.beforeUpload("wx",t)},onRemove:this.removeCoverImgFile},1>n.length?fe.default.createElement("div",{className:iT},"上传照片"):null)))),fe.default.createElement("div",{className:ZD},fe.default.createElement("p",{className:eT},"分享标题"),fe.default.createElement(He.default,{placeholder:"输入分享标题",value:a,onChange:function(t){return e.handleValue(t,"title")}})),fe.default.createElement("div",{className:ZD},fe.default.createElement("p",{className:eT},"分享内容"),fe.default.createElement(AO,{placeholder:"输入分享内容",value:i,onChange:function(t){return e.handleValue(t,"content")}})),fe.default.createElement("div",{className:AT},fe.default.createElement("span",{className:sT,onClick:this.handleSubmit},"保存")),fe.default.createElement("div",{className:lT}),fe.default.createElement("div",{className:ZD},fe.default.createElement("p",null,"链接查看"),fe.default.createElement("p",null,"复制链接打开查看"),fe.default.createElement("div",{className:tT},fe.default.createElement("div",{className:nT},r),fe.default.createElement(Yb,{"data-clipboard-text":r,component:"span",onSuccess:this.onSuccess},"复制链接"))),fe.default.createElement("div",{className:ZD},fe.default.createElement("p",null,"扫码查看"),fe.default.createElement("p",null,"请扫描二维码在移动端查看"),fe.default.createElement("div",{className:rT},fe.default.createElement(Pb,{value:r,size:150,fgColor:"#000000"})))))}}]);var n}(r.Component),uO=n.connect(function(e){return{app:e.app,seting:e.seting}})(cO),dO={datePicker:"header_datePicker__FVUvc",dropdownClassName:"header_dropdownClassName__3qXww",disabled:"header_disabled__2mjdx",headerContainer:"header_headerContainer__VboDf",managerClass:"header_managerClass__1PqZt",headerTitle:"header_headerTitle__mSNzr",titleLeft:"header_titleLeft__3ep_2",titleright:"header_titleright__2TczR",titlerightTime:"header_titlerightTime__41pYL",titlerightName:"header_titlerightName__3TGbV",headerMiddle:"header_headerMiddle__2n29p",headerBottom:"header_headerBottom__3nDcz",infoContainer:"header_infoContainer__mQasp",flexCenter:"header_flexCenter__3B1a1",userImg:"header_userImg__3xWjR",userName:"header_userName__3lohR",userAccount:"header_userAccount__4x1RT",userNumber:"header_userNumber__2qSZz",operateBtnBox:"header_operateBtnBox__2KA0v",operateBtn1:"header_operateBtn1__McV4Z",operateBtn_open:"header_operateBtn_open__2IIVM",endBtnDisabled:"header_endBtnDisabled__qsoaK",operateBtn2:"header_operateBtn2__2K-pK",operateBtn3:"header_operateBtn3__3CDj_",setTimeBox:"header_setTimeBox__199cp",setTimeWord:"header_setTimeWord__1ZIrq",shareBox:"header_shareBox__2N7Xt",shareBoxLink:"header_shareBoxLink__2cYZ2",shareBoxTime:"header_shareBoxTime__PNj-t",antdModalClass:"header_antdModalClass__1qYB9"};Rt(".header_datePicker__FVUvc .ant-picker-panel-container{position:relative;top:44px;left:11px;width:276px}.header_dropdownClassName__3qXww::-webkit-scrollbar{width:2px}.header_disabled__2mjdx{cursor:no-drop!important}.header_headerContainer__VboDf{box-sizing:border-box;width:100%;height:146px;padding:12px 12px 10px;background:#fff}.header_managerClass__1PqZt{height:182px!important}.header_headerTitle__mSNzr{display:flex;align-items:flex-start;justify-content:left}.header_titleLeft__3ep_2{color:#121c2b;font-weight:600;font-size:13px;font-family:PingFang SC;font-style:normal;line-height:18px}.header_titleright__2TczR{display:flex;flex-direction:column;align-items:flex-start;justify-content:left}.header_titlerightTime__41pYL{margin-right:10px;color:#8d99a5;font-weight:400;font-size:12px;font-family:PingFang SC;font-style:normal;line-height:17px}.header_titlerightName__3TGbV{width:20px;height:20px;margin-right:12px;border-radius:50%;cursor:pointer}.header_headerMiddle__2n29p{display:flex;align-items:center;justify-content:center;width:100%;height:34px;margin-top:12px;background:#f0f2f5;border-radius:4px;cursor:pointer}.header_headerMiddle__2n29p img{display:block;width:18px;height:18px;margin-right:10px}.header_headerMiddle__2n29p p{color:#3465e3;font-weight:600;font-size:13px;font-family:PingFang SC;font-style:normal;line-height:18px}.header_headerMiddle__2n29p:hover{background:#e7ebf0}.header_headerBottom__3nDcz{display:flex;align-items:center;justify-content:space-between;margin-top:12px}.header_headerBottom__3nDcz .rc-virtual-list::-webkit-scrollbar{width:5px;height:5px;background-color:#f5f5f5}.header_headerBottom__3nDcz p{width:48px;height:30px;color:#121c2b;font-weight:400;font-size:13px;font-family:PingFang SC;font-style:normal;line-height:30px;letter-spacing:2px;text-align:center;background:#f0f2f5;border-radius:4px;cursor:pointer}.header_headerBottom__3nDcz p:hover{background:#e7ebf0!important}.header_headerBottom__3nDcz .ant-select{border:none;box-shadow:none}.header_headerBottom__3nDcz .ant-select-selector{height:30px;background:#f0f2f5!important;border:none!important;box-shadow:none}.header_headerBottom__3nDcz .ant-select-selector:hover{background:#e7ebf0!important}.header_headerBottom__3nDcz .ant-select-single .ant-select-selector .ant-select-selection-item{color:#121c2b;font-weight:400;font-size:13px;font-family:PingFang SC;font-style:normal;line-height:18px;line-height:30px}.header_infoContainer__mQasp{z-index:2;box-sizing:border-box;width:200px;height:136px;padding:12px;background:#fff;box-shadow:0 2px 8px rgba(113,125,153,.1)}.header_flexCenter__3B1a1{display:flex;align-items:center;justify-content:center}.header_userImg__3xWjR{display:block;width:30px;height:30px;margin:0 auto 4px;border-radius:50%}.header_userName__3lohR{margin-bottom:4px;color:#000;font-weight:600;font-size:13px;font-family:PingFang SC;font-style:normal;line-height:18px}.header_userAccount__4x1RT{margin-bottom:20px;color:#717d99;font-weight:400;font-size:12px;font-family:PingFang SC;font-style:normal;line-height:17px}.header_userNumber__2qSZz{display:flex;align-items:center;justify-content:space-between}.header_userNumber__2qSZz p{color:#717d99}.header_userNumber__2qSZz p,.header_userNumber__2qSZz span{font-weight:400;font-size:12px;font-family:PingFang SC;font-style:normal;line-height:17px}.header_userNumber__2qSZz span{color:#121c2b;text-align:right}.header_operateBtnBox__2KA0v{display:flex;justify-content:space-between;width:100%;height:46px;margin-top:10px;border-bottom:1px solid #eee}.header_operateBtnBox__2KA0v .header_operateBtn1__McV4Z,.header_operateBtnBox__2KA0v .header_operateBtn_open__2IIVM{width:142px;height:34px;color:#f15c5c;font-weight:600;font-size:13px;font-family:PingFang SC;font-style:normal;line-height:34px;text-align:center;background:#f0f2f5;border-radius:4px;cursor:pointer}.header_operateBtnBox__2KA0v .header_operateBtn1__McV4Z:hover,.header_operateBtnBox__2KA0v .header_operateBtn_open__2IIVM:hover{background:#e7ebf0!important}.header_operateBtnBox__2KA0v .header_operateBtn_open__2IIVM{color:#3465e3!important}.header_operateBtnBox__2KA0v .header_endBtnDisabled__qsoaK{cursor:not-allowed}.header_operateBtnBox__2KA0v .header_operateBtn2__2K-pK,.header_operateBtnBox__2KA0v .header_operateBtn3__3CDj_{width:58px;height:34px;color:#3465e3;font-weight:600;font-size:13px;font-family:PingFang SC;font-style:normal;line-height:34px;text-align:center;background:#f0f2f5;border-radius:4px;cursor:pointer}.header_operateBtnBox__2KA0v .header_operateBtn2__2K-pK:hover,.header_operateBtnBox__2KA0v .header_operateBtn3__3CDj_:hover{background:#e7ebf0!important}.header_setTimeBox__199cp{display:flex;align-items:center;justify-content:space-between;width:100%;height:30px;margin-top:12px;padding:6px 10px 6px 12px;background:#f0f2f5;border-radius:4px}.header_setTimeBox__199cp .header_setTimeWord__1ZIrq{color:#121c2b;font-weight:400;font-size:13px;font-family:PingFang SC;font-style:normal;line-height:18px}.header_setTimeBox__199cp:hover,.header_setTimeBox__199cp:hover .ant-picker{background:#e7ebf0!important}.header_setTimeBox__199cp .ant-picker{height:30px;padding-right:0;color:#121c2b;font-weight:400;font-size:13px;font-family:PingFang SC;font-style:normal;background:#f0f2f5;border:none;outline:none;box-shadow:none}.header_setTimeBox__199cp .ant-picker-suffix{right:0!important;font-size:12px}.header_shareBox__2N7Xt{width:340px;background:#fff;border-radius:4px}.header_shareBoxLink__2cYZ2{box-sizing:border-box;width:100%;padding:12px;background:#f0f2f5;border-radius:4px}.header_shareBoxLink__2cYZ2 p{margin-bottom:12px}.header_shareBoxLink__2cYZ2 p,.header_shareBoxLink__2cYZ2 span{color:#616778;font-weight:400;font-size:13px;font-family:PingFang SC;font-style:normal;line-height:18px;white-space:pre-wrap;text-align:left}.header_shareBoxTime__PNj-t{margin-top:10px;color:#abb1c0;font-weight:400;font-size:13px;font-family:PingFang SC;font-style:normal;line-height:18px}.header_antdModalClass__1qYB9 .ant-modal-header{border-bottom:1px solid #f0f2f5}.header_antdModalClass__1qYB9 .ant-modal-footer{border-top:1px solid #f0f2f5}.header_antdModalClass__1qYB9 .ant-modal-close{z-index:-999}.header_antdModalClass__1qYB9 .ant-modal-title{color:#121c2b;font-weight:600;font-size:15px;font-family:PingFang SC;font-style:normal;line-height:21px}.header_antdModalClass__1qYB9 .ant-modal-footer{display:flex;align-items:center;justify-content:center}.header_antdModalClass__1qYB9 .ant-btn{color:#121c2b;background:#f0f2f5}.header_antdModalClass__1qYB9 .ant-btn,.header_antdModalClass__1qYB9 .ant-modal-footer button+button{width:90px;height:30px;font-weight:400;font-size:13px;font-family:PingFang SC;font-style:normal;line-height:18px;border:none;border-radius:4px;outline:none}.header_antdModalClass__1qYB9 .ant-modal-footer button+button{margin-left:10px;color:#fff!important;background:#3465e3!important;cursor:pointer}");var pO=function(e){function t(e){var n;return bt(this,t),(n=yt(this,t,[e])).queryUserList=function(){var e=n.props;n.props.dispatch({type:"seting/queryProjectUserList",payload:{projectId:e.app.projectId,sceneId:e.seting.sceneId}})},n.handleNameChange=function(e){n.setState({selectValueName:e},function(){var t=n.props,r=n.state.selectValueStatus;n.props.dispatch({type:"seting/queryOpinionList",payload:{projectId:t.app.projectId,sceneId:t.seting.sceneId,userId:e,status:"状态"===r?"":r,pageNo:1,pageSize:1e3}})})},n.handleStatusChange=function(e){n.setState({selectValueStatus:e},function(){var t=n.props,r=n.state.selectValueName;(0,t.dispatch)({type:"seting/queryOpinionList",payload:{projectId:t.app.projectId,sceneId:t.seting.sceneId,userId:"姓名"===r?"":r,status:e,pageNo:1,pageSize:1e3}})})},n.addSignAction=function(){2===n.props.app.onlineSignStatus&&Yr.emit("MODELSWITCH",{id:"add"})},n.resetAction=function(){n.setState({selectValueName:"姓名",selectValueStatus:"状态"},function(){var e=n.props;(0,e.dispatch)({type:"seting/queryOpinionList",payload:{projectId:e.app.projectId,sceneId:e.seting.sceneId,userId:"",status:"",pageNo:1,pageSize:1e3}})})},n.endSignAction=function(){var e=n.props,t=e.seting;2===t.onlineSignStatus&&n.props.dispatch({type:"seting/stopCountersign",payload:{projectId:e.app.projectId,sceneId:t.sceneId}}).then(function(){})},n.openSignAction=function(){var e=n.props,t=e.seting;(0,e.dispatch)({type:"seting/openCountersign",payload:{projectId:e.app.projectId,sceneId:t.sceneId}}).then(function(){})},n.shareAction=function(){var e=n.props;n.props.dispatch({type:"seting/shareLink",payload:{projectId:e.app.projectId,sceneId:e.seting.sceneId}}).then(function(e){n.setState({effectiveTime:e.endTime,clipboardLink:e.accessUrl,projectName:e.projectName,visible:!0})})},n.pickerOnChange=function(e,t){console.log("时间选择器---",e,t);var r=n.props;(0,r.dispatch)({type:"seting/modifySceneEndTime",payload:{projectId:r.app.projectId,sceneId:r.seting.sceneId,endTime:t+" 00:00:00"}})},n.disabledDate=function(e){return e<At.default().startOf("day")},n.onSuccess=function(e){de.default.success("复制成功",.4,function(){n.setState({visible:!1})})},n.handleCancel=function(e){n.setState({visible:!1})},n.headerInfo=function(){var e=n.props.app.userData;if(e)return fe.default.createElement("div",{className:dO.infoContainer},fe.default.createElement("img",{className:ve.default(dO.userImg),src:e.userIcon?e.userIcon:sr,alt:"头像icon"}),fe.default.createElement("p",{className:ve.default(dO.userName,dO.flexCenter)},e.userName),fe.default.createElement("span",{className:ve.default(dO.userAccount,dO.flexCenter)},e.userAccount),fe.default.createElement("div",{className:dO.userNumber},fe.default.createElement("p",null,"手机"),fe.default.createElement("span",null,e.phoneNo)))},n.state={selectValueName:"姓名",selectValueStatus:"状态",visible:!1,clipboardLink:"",effectiveTime:"",projectName:"南头古城"},n}return It(t,e),xt(t,[{key:"componentDidMount",value:function(){this.queryUserList()}},{key:"render",value:function(){var e=Pe.default.Option,t=this.state,n=t.selectValueName,r=t.selectValueStatus,o=t.visible,a=t.clipboardLink,i=t.effectiveTime,l=t.projectName,s=this.props,A=s.app,c=A.isManager,u=A.isSuperAdmin,d=A.onlineSignStatus,p=A.onlineSignEndTime,f=A.userDataList,g=A.projectId,h=A.sceneId,m=s.userData;return fe.default.createElement("div",{className:ve.default(dO.headerContainer,c?dO.managerClass:"")},fe.default.createElement("div",{className:dO.headerTitle},fe.default.createElement(Ne.default,{overlay:this.headerInfo(),placement:"bottomRight"},fe.default.createElement("img",{className:ve.default(dO.titlerightName),src:m&&m.userIcon?m.userIcon:sr,alt:"头像icon"})),fe.default.createElement("div",{className:dO.titleright},fe.default.createElement("p",{className:dO.titleLeft},"会签意见"),!c&&fe.default.createElement("span",{className:dO.titlerightTime},3===d?"会签已经结束":"会签截止日期:",2===d&&p&&p.split(" ")[0]))),(u||!c)&&fe.default.createElement("div",{className:ve.default(dO.headerMiddle,2===d?"":dO.disabled),onClick:this.addSignAction},fe.default.createElement("img",{src:ar,alt:"新增会签"}),fe.default.createElement("p",null,"新增会签意见")),c&&fe.default.createElement("div",{className:dO.setTimeBox},fe.default.createElement("p",{className:dO.setTimeWord},3===p?"会签已结束":"设置截止日期"),p&&fe.default.createElement(st.default,{allowClear:!1,dropdownClassName:dO.datePicker,onChange:this.pickerOnChange,disabledDate:this.disabledDate,suffixIcon:fe.default.createElement(pP,null),inputReadOnly:!1,defaultValue:At.default(p?p.split(" ")[0]:new Date,"YYYY-MM-DD")})),c&&fe.default.createElement("div",{className:dO.operateBtnBox},2===d?fe.default.createElement("p",{className:dO.operateBtn1,onClick:this.endSignAction},"结束会签"):fe.default.createElement("p",{className:dO.operateBtn_open,onClick:this.openSignAction},"开启会签"),fe.default.createElement("a",{href:"".concat(Jo().BASEURL,"/vbim-scene-server/countersign/exportCountersign?projectId=").concat(g,"&sceneId=").concat(h,"&timeStamp=").concat((new Date).getTime()),className:dO.operateBtn2},"导出"),fe.default.createElement("p",{className:dO.operateBtn3,onClick:this.shareAction},"分享")),fe.default.createElement("div",{className:dO.headerBottom},fe.default.createElement("div",{className:dO.headerBottomLeft},fe.default.createElement(Pe.default,{value:n,style:{width:86,height:30,fontSize:"13px",color:"#121C2B",marginRight:"10px"},onChange:this.handleNameChange},null==f?void 0:f.map(function(t){return fe.default.createElement(e,{value:t.userId,key:t.userId},t.userRealName)})),fe.default.createElement(Pe.default,{value:r,style:{width:86,height:30,fontSize:"13px",color:"#121C2B"},onChange:this.handleStatusChange,dropdownClassName:"dropdownClassName"},fe.default.createElement(e,{value:"1"},"待修改"),fe.default.createElement(e,{value:"2"},"待确认"),fe.default.createElement(e,{value:"3"},"已完成"))),fe.default.createElement("p",{onClick:this.resetAction},"重置")),fe.default.createElement(be.default,{title:"分享",visible:o,onOk:this.handleOk,width:"388px",centered:!0,closable:!1,wrapClassName:dO.antdModalClass,footer:[fe.default.createElement(Ee.default,{type:"default",key:"cancel",onClick:this.handleCancel},"关闭"),fe.default.createElement(Yb,{"data-clipboard-text":a,onSuccess:this.onSuccess,key:"confirm"},"复制链接")]},fe.default.createElement("div",{className:dO.shareBox},fe.default.createElement("div",{className:dO.shareBoxLink},fe.default.createElement("p",null,"我在",l," 发起了 项目会签 ,邀请您一起加入,点击链接即可加入。"),fe.default.createElement("span",null,a)),fe.default.createElement("p",{className:dO.shareBoxTime},"会签有效期至",i))))}}])}(r.Component),fO=s.withRouter(n.connect(function(e){return{app:e.app,seting:e.seting}})(pO)),gO=Th(function(e,t){var n;n=function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(5),a=(r=o)&&r.__esModule?r:{default:r};t.default=a.default,e.exports=t.default},function(t,n){t.exports=e},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ActionType=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1));function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;n.length>r;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}}(e,t))}var a=t.ActionType=void 0;!function(e){e[e.zoomIn=1]="zoomIn",e[e.zoomOut=2]="zoomOut",e[e.prev=3]="prev",e[e.next=4]="next",e[e.rotateLeft=5]="rotateLeft",e[e.rotateRight=6]="rotateRight",e[e.reset=7]="reset",e[e.close=8]="close",e[e.scaleX=9]="scaleX",e[e.scaleY=10]="scaleY",e[e.download=11]="download"}(a||(t.ActionType=a={}));var i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return o(t,e),t.prototype.render=function(){var e="react-viewer-icon";return r.createElement("i",{className:e+" "+e+"-"+a[this.props.type]})},t}(r.Component);t.default=i},function(e,t,n){var r;
113
+ var oN="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,aN=function(){for(var e=["Edge","Trident","Firefox"],t=0;e.length>t;t+=1)if(oN&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var iN=oN&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},aN))}};function lN(e){return e&&"[object Function]"==={}.toString.call(e)}function sN(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function AN(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function cN(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=sN(e);return/(auto|scroll|overlay)/.test(t.overflow+t.overflowY+t.overflowX)?e:cN(AN(e))}function uN(e){return e&&e.referenceNode?e.referenceNode:e}var dN=oN&&!(!window.MSInputMethodContext||!document.documentMode),pN=oN&&/MSIE 10/.test(navigator.userAgent);function fN(e){return 11===e?dN:10===e?pN:dN||pN}function gN(e){if(!e)return document.documentElement;for(var t=fN(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===sN(n,"position")?gN(n):n:e?e.ownerDocument.documentElement:document.documentElement}function hN(e){return null!==e.parentNode?hN(e.parentNode):e}function mN(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,a=document.createRange();a.setStart(r,0),a.setEnd(o,0);var i,l,s=a.commonAncestorContainer;if(e!==s&&t!==s||r.contains(o))return"BODY"===(l=(i=s).nodeName)||"HTML"!==l&&gN(i.firstElementChild)!==i?gN(s):s;var A=hN(e);return A.host?mN(A.host,t):mN(e,hN(t).host)}function _N(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;return"BODY"===n||"HTML"===n?(e.ownerDocument.scrollingElement||e.ownerDocument.documentElement)[t]:e[t]}function vN(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function yN(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],fN(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function bN(e){var t=e.body,n=e.documentElement,r=fN(10)&&getComputedStyle(n);return{height:yN("Height",t,n,r),width:yN("Width",t,n,r)}}var wN=function(){function e(e,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),xN=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},BN=Object.assign||function(e){for(var t=1;arguments.length>t;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function CN(e){return BN({},e,{right:e.left+e.width,bottom:e.top+e.height})}function EN(e){var t={};try{if(fN(10)){t=e.getBoundingClientRect();var n=_N(e,"top"),r=_N(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a="HTML"===e.nodeName?bN(e.ownerDocument):{},i=e.offsetWidth-(a.width||e.clientWidth||o.width),l=e.offsetHeight-(a.height||e.clientHeight||o.height);if(i||l){var s=sN(e);i-=vN(s,"x"),l-=vN(s,"y"),o.width-=i,o.height-=l}return CN(o)}function kN(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=fN(10),o="HTML"===t.nodeName,a=EN(e),i=EN(t),l=cN(e),s=sN(t),A=parseFloat(s.borderTopWidth),c=parseFloat(s.borderLeftWidth);n&&o&&(i.top=Math.max(i.top,0),i.left=Math.max(i.left,0));var u=CN({top:a.top-i.top-A,left:a.left-i.left-c,width:a.width,height:a.height});if(u.marginTop=0,u.marginLeft=0,!r&&o){var d=parseFloat(s.marginTop),p=parseFloat(s.marginLeft);u.top-=A-d,u.bottom-=A-d,u.left-=c-p,u.right-=c-p,u.marginTop=d,u.marginLeft=p}return(r&&!n?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=_N(t,"top"),o=_N(t,"left"),a=n?-1:1;return e.top+=r*a,e.bottom+=r*a,e.left+=o*a,e.right+=o*a,e}(u,t)),u}function IN(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===sN(e,"position"))return!0;var n=AN(e);return!!n&&IN(n)}function SN(e){if(!e||!e.parentElement||fN())return document.documentElement;for(var t=e.parentElement;t&&"none"===sN(t,"transform");)t=t.parentElement;return t||document.documentElement}function FN(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a={top:0,left:0},i=o?SN(e):mN(e,uN(t));if("viewport"===r)a=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=kN(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),i=t?0:_N(n),l=t?0:_N(n,"left");return CN({top:i-r.top+r.marginTop,left:l-r.left+r.marginLeft,width:o,height:a})}(i,o);else{var l=void 0;"scrollParent"===r?"BODY"===(l=cN(AN(t))).nodeName&&(l=e.ownerDocument.documentElement):l="window"===r?e.ownerDocument.documentElement:r;var s=kN(l,i,o);if("HTML"!==l.nodeName||IN(i))a=s;else{var A=bN(e.ownerDocument),c=A.height,u=A.width;a.top+=s.top-s.marginTop,a.bottom=c+s.top,a.left+=s.left-s.marginLeft,a.right=u+s.left}}var d="number"==typeof(n=n||0);return a.left+=d?n:n.left||0,a.top+=d?n:n.top||0,a.right-=d?n:n.right||0,a.bottom-=d?n:n.bottom||0,a}function PN(e){return e.width*e.height}function LN(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var i=FN(n,r,a,o),l={top:{width:i.width,height:t.top-i.top},right:{width:i.right-t.right,height:i.height},bottom:{width:i.width,height:i.bottom-t.bottom},left:{width:t.left-i.left,height:i.height}},s=Object.keys(l).map(function(e){return BN({key:e},l[e],{area:PN(l[e])})}).sort(function(e,t){return t.area-e.area}),A=s.filter(function(e){return e.width>=n.clientWidth&&e.height>=n.clientHeight}),c=A.length>0?A[0].key:s[0].key,u=e.split("-")[1];return c+(u?"-"+u:"")}function UN(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return kN(n,r?SN(t):mN(t,uN(n)),r)}function QN(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0);return{width:e.offsetWidth+(parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0)),height:e.offsetHeight+n}}function NN(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function MN(e,t,n){n=n.split("-")[0];var r=QN(e),o={width:r.width,height:r.height},a=-1!==["right","left"].indexOf(n),i=a?"top":"left",l=a?"left":"top",s=a?"height":"width",A=a?"width":"height";return o[i]=t[i]+t[s]/2-r[s]/2,o[l]=n===l?t[l]-r[A]:t[NN(l)],o}function DN(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function TN(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=DN(e,function(e){return e[t]===n});return e.indexOf(r)}(e,"name",n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&lN(n)&&(t.offsets.popper=CN(t.offsets.popper),t.offsets.reference=CN(t.offsets.reference),t=n(t,e))}),t}function ON(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=UN(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=LN(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=MN(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=TN(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function HN(e,t){return e.some(function(e){return e.enabled&&e.name===t})}function RN(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;t.length>r;r++){var o=t[r],a=o?""+o+n:e;if(void 0!==document.body.style[a])return a}return null}function VN(){return this.state.isDestroyed=!0,HN(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[RN("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function jN(e){var t=e.ownerDocument;return t?t.defaultView:window}function zN(e,t,n,r){var o="BODY"===e.nodeName,a=o?e.ownerDocument.defaultView:e;a.addEventListener(t,n,{passive:!0}),o||zN(cN(a.parentNode),t,n,r),r.push(a)}function GN(e,t,n,r){n.updateBound=r,jN(e).addEventListener("resize",n.updateBound,{passive:!0});var o=cN(e);return zN(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function KN(){this.state.eventsEnabled||(this.state=GN(this.reference,0,this.state,this.scheduleUpdate))}function WN(){var e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.state,jN(this.reference).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function YN(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function XN(e,t){Object.keys(t).forEach(function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&YN(t[n])&&(r="px"),e.style[n]=t[n]+r})}var qN=oN&&/Firefox/i.test(navigator.userAgent);function JN(e,t,n){var r=DN(e,function(e){return e.name===t}),o=!!r&&e.some(function(e){return e.name===n&&e.enabled&&r.order>e.order});if(!o){var a="`"+t+"`";console.warn("`"+n+"`"+" modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return o}var ZN=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],$N=ZN.slice(3);function eM(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=$N.indexOf(e),r=$N.slice(n+1).concat($N.slice(0,n));return t?r.reverse():r}var tM="flip",nM="clockwise",rM="counterclockwise";function oM(e,t,n,r){var o=[0,0],a=-1!==["right","left"].indexOf(r),i=e.split(/(\+|\-)/).map(function(e){return e.trim()}),l=i.indexOf(DN(i,function(e){return-1!==e.search(/,|\s/)}));i[l]&&-1===i[l].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var s=/\s*,\s*|\s+/,A=-1!==l?[i.slice(0,l).concat([i[l].split(s)[0]]),[i[l].split(s)[1]].concat(i.slice(l+1))]:[i];return A=A.map(function(e,r){var o=(1===r?!a:a)?"height":"width",i=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,i=!0,e):i?(e[e.length-1]+=t,i=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+o[1],i=o[2];if(!a)return e;if(0===i.indexOf("%")){return CN("%p"===i?n:r)[t]/100*a}if("vh"===i||"vw"===i)return("vh"===i?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*a;return a}(e,o,t,n)})}),A.forEach(function(e,t){e.forEach(function(n,r){YN(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))})}),o}var aM={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,a=o.reference,i=o.popper,l=-1!==["bottom","top"].indexOf(n),s=l?"left":"top",A=l?"width":"height",c={start:xN({},s,a[s]),end:xN({},s,a[s]+a[A]-i[A])};e.offsets.popper=BN({},i,c[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.offsets,o=r.popper,a=r.reference,i=e.placement.split("-")[0],l=void 0;return l=YN(+n)?[+n,0]:oM(n,o,a,i),"left"===i?(o.top+=l[0],o.left-=l[1]):"right"===i?(o.top+=l[0],o.left+=l[1]):"top"===i?(o.left+=l[0],o.top-=l[1]):"bottom"===i&&(o.left+=l[0],o.top+=l[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||gN(e.instance.popper);e.instance.reference===n&&(n=gN(n));var r=RN("transform"),o=e.instance.popper.style,a=o.top,i=o.left,l=o[r];o.top="",o.left="",o[r]="";var s=FN(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=a,o.left=i,o[r]=l,t.boundaries=s;var A=e.offsets.popper,c={primary:function(e){var n=A[e];return s[e]>A[e]&&!t.escapeWithReference&&(n=Math.max(A[e],s[e])),xN({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=A[n];return A[e]>s[e]&&!t.escapeWithReference&&(r=Math.min(A[n],s[e]-("right"===e?A.width:A.height))),xN({},n,r)}};return t.priority.forEach(function(e){A=BN({},A,c[-1!==["left","top"].indexOf(e)?"primary":"secondary"](e))}),e.offsets.popper=A,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],a=Math.floor,i=-1!==["top","bottom"].indexOf(o),l=i?"right":"bottom",s=i?"left":"top",A=i?"width":"height";return n[l]<a(r[s])&&(e.offsets.popper[s]=a(r[s])-n[A]),n[s]>a(r[l])&&(e.offsets.popper[s]=a(r[l])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!JN(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],a=e.offsets,i=a.popper,l=a.reference,s=-1!==["left","right"].indexOf(o),A=s?"height":"width",c=s?"Top":"Left",u=c.toLowerCase(),d=s?"left":"top",p=s?"bottom":"right",f=QN(r)[A];i[u]>l[p]-f&&(e.offsets.popper[u]-=i[u]-(l[p]-f)),l[u]+f>i[p]&&(e.offsets.popper[u]+=l[u]+f-i[p]),e.offsets.popper=CN(e.offsets.popper);var g=l[u]+l[A]/2-f/2,h=sN(e.instance.popper),m=g-e.offsets.popper[u]-parseFloat(h["margin"+c])-parseFloat(h["border"+c+"Width"]);return m=Math.max(Math.min(i[A]-f,m),0),e.arrowElement=r,e.offsets.arrow=(xN(n={},u,Math.round(m)),xN(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(HN(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=FN(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=NN(r),a=e.placement.split("-")[1]||"",i=[];switch(t.behavior){case tM:i=[r,o];break;case nM:i=eM(r);break;case rM:i=eM(r,!0);break;default:i=t.behavior}return i.forEach(function(l,s){if(r!==l||i.length===s+1)return e;r=e.placement.split("-")[0],o=NN(r);var A=e.offsets.popper,c=e.offsets.reference,u=Math.floor,d="left"===r&&u(A.right)>u(c.left)||"right"===r&&u(A.left)<u(c.right)||"top"===r&&u(A.bottom)>u(c.top)||"bottom"===r&&u(A.top)<u(c.bottom),p=u(A.left)<u(n.left),f=u(A.right)>u(n.right),g=u(A.top)<u(n.top),h=u(A.bottom)>u(n.bottom),m="left"===r&&p||"right"===r&&f||"top"===r&&g||"bottom"===r&&h,_=-1!==["top","bottom"].indexOf(r),v=!!t.flipVariations&&(_&&"start"===a&&p||_&&"end"===a&&f||!_&&"start"===a&&g||!_&&"end"===a&&h)||!!t.flipVariationsByContent&&(_&&"start"===a&&f||_&&"end"===a&&p||!_&&"start"===a&&h||!_&&"end"===a&&g);(d||m||v)&&(e.flipped=!0,(d||m)&&(r=i[s+1]),v&&(a=function(e){return"end"===e?"start":"start"===e?"end":e}(a)),e.placement=r+(a?"-"+a:""),e.offsets.popper=BN({},e.offsets.popper,MN(e.instance.popper,e.offsets.reference,e.placement)),e=TN(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,a=r.reference,i=-1!==["left","right"].indexOf(n);return o[i?"left":"top"]=a[n]-(-1===["top","left"].indexOf(n)?o[i?"width":"height"]:0),e.placement=NN(t),e.offsets.popper=CN(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!JN(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=DN(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(n.top>t.bottom||t.left>n.right||t.top>n.bottom||n.left>t.right){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,o=e.offsets.popper,a=DN(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==a&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var i=void 0!==a?a:t.gpuAcceleration,l=gN(e.instance.popper),s=EN(l),A={position:o.position},c=function(e,t){var n=e.offsets,r=n.popper,o=Math.round,a=Math.floor,i=function(e){return e},l=o(n.reference.width),s=o(r.width),A=-1!==["left","right"].indexOf(e.placement),c=-1!==e.placement.indexOf("-"),u=t?A||c||l%2==s%2?o:a:i,d=t?o:i;return{left:u(l%2==1&&s%2==1&&!c&&t?r.left-1:r.left),top:d(r.top),bottom:d(r.bottom),right:u(r.right)}}(e,2>window.devicePixelRatio||!qN),u="bottom"===n?"top":"bottom",d="right"===r?"left":"right",p=RN("transform"),f=void 0,g=void 0;if(g="bottom"===u?"HTML"===l.nodeName?-l.clientHeight+c.bottom:-s.height+c.bottom:c.top,f="right"===d?"HTML"===l.nodeName?-l.clientWidth+c.right:-s.width+c.right:c.left,i&&p)A[p]="translate3d("+f+"px, "+g+"px, 0)",A[u]=0,A[d]=0,A.willChange="transform";else{var h="right"===d?-1:1;A[u]=g*("bottom"===u?-1:1),A[d]=f*h,A.willChange=u+", "+d}return e.attributes=BN({},{"x-placement":e.placement},e.attributes),e.styles=BN({},A,e.styles),e.arrowStyles=BN({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return XN(e.instance.popper,e.styles),t=e.instance.popper,Object.keys(n=e.attributes).forEach(function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)}),e.arrowElement&&Object.keys(e.arrowStyles).length&&XN(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var a=UN(o,t,e,n.positionFixed),i=LN(n.placement,a,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",i),XN(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},iM={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:aM},lM=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=iN(this.update.bind(this)),this.options=BN({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(BN({},e.Defaults.modifiers,o.modifiers)).forEach(function(t){r.options.modifiers[t]=BN({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return BN({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&lN(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return wN(e,[{key:"update",value:function(){return ON.call(this)}},{key:"destroy",value:function(){return VN.call(this)}},{key:"enableEventListeners",value:function(){return KN.call(this)}},{key:"disableEventListeners",value:function(){return WN.call(this)}}]),e}();lM.Utils=("undefined"!=typeof window?window:global).PopperUtils,lM.placements=ZN,lM.Defaults=iM;var sM=function(e){do{e+=~~(1e6*Math.random())}while("undefined"!=typeof document&&document.getElementById(e));return e},AM=("undefined"!=typeof window&&void 0!==window.document&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&window,{name:"kpm0v2",styles:"position:absolute;display:block;width:16px;height:8px;margin:0 5px;&:before,&:after{position:absolute;display:block;content:'';border-color:transparent;border-style:solid;}"}),cM=function(e){var t=AQ(e,["placement"]);return ZQ(r.Fragment,null,ZQ($Q,{styles:uM}),ZQ("div",lQ({},t,{"data-arrow":"true",css:AM})))},uM={name:"rvo98s",styles:"[x-placement^='top']{margin-bottom:8px;[data-arrow]{bottom:-9px;}[data-arrow]:before{bottom:0;border-width:8px 8px 0;border-top-color:rgba(0,0,0,0.25);}[data-arrow]:after{bottom:1px;border-width:8px 8px 0;border-top-color:#fff;}}[x-placement^='right']{margin-left:8px;[data-arrow]{left:-9px;width:8px;height:16px;margin:5px 0;}[data-arrow]:before{left:0;border-width:8px 8px 8px 0;border-right-color:rgba(0,0,0,0.25);}[data-arrow]:after{left:1px;border-width:8px 8px 8px 0;border-right-color:#fff;}}[x-placement^='bottom']{margin-top:8px;[data-arrow]{top:-9px;}[data-arrow]:before{top:0;border-width:0 8px 8px 8px;border-bottom-color:rgba(0,0,0,0.25);}[data-arrow]:after{top:1px;border-width:0 8px 8px 8px;border-bottom-color:#fff;}}[x-placement^='left']{margin-right:8px;[data-arrow]{right:-9px;width:8px;height:16px;margin:5px 0;}[data-arrow]:before{right:0;border-width:8px 0 8px 8px;border-left-color:rgba(0,0,0,0.25);}[data-arrow]:after{right:1px;border-width:8px 0 8px 8px;border-left-color:#fff;}}"},dM=function(e){var t,n,o,a=e.header,i=e.body,l=e.children,s=e.placement,A=e.trigger,c=e.styles,u=AQ(e,["header","body","children","placement","trigger","styles"]),d=fe.default.Children.only(l),p=r.useRef(null),f=r.useState(!1),g=f[0],h=f[1],m=r.useState(!1),_=m[0],v=m[1],y=r.useState({popoverId:null,referenceId:null,arrowId:null}),b=y[0],w=y[1],x=b.popoverId,B=b.referenceId,C=b.arrowId;t=p,n=function(e){e.target.id===B||document.getElementById(B).contains(e.target)||h(!1)},o=r.useRef(),r.useEffect(function(){o.current=n},[n]),r.useEffect(function(){var e=function(e){t.current&&!t.current.contains(e.target)&&o.current(event)};return rN.forEach(function(t){document.addEventListener(t,e,{passive:!0})}),function(){rN.forEach(function(t){document.removeEventListener(t,e,{passive:!0})})}},[t,n]),r.useEffect(function(){if(!x)return w({popoverId:sM("popover"),referenceId:sM("reference"),arrowId:sM("arrow")});var e=document.getElementById(x),t=document.getElementById(B),n=document.getElementById(C);e&&t&&n&&(new lM(t,e,{placement:s,modifiers:{arrow:{element:n}}}),v(g))},[g]);var E={content:[pM.content,c.content],header:[pM.header,c.header],body:[pM.body,c.body]};return ZQ(r.Fragment,null,x?ZQ("div",lQ({},u,{id:x,ref:p,css:E.content,style:_?{display:"block"}:{}}),ZQ(cM,{id:C}),a?ZQ("div",{css:E.header},a):null,ZQ("div",{css:E.body},i)):null,fe.default.cloneElement(d,lQ({},d.props,{id:B,onClick:function(){"click"===A&&h(!g)}})))};dM.defaultProps={placement:"right",trigger:"click",styles:{}};var pM={content:{name:"106ha8s",styles:"display:none;max-width:300px;background-color:#fff;border-radius:4px;border:1px solid rgba(0,0,0,0.2);z-index:1060;"},header:{name:"12koz1z",styles:"padding:8px 12px;background-color:#f7f7f7;font-size:16px;font-weight:bold;border-top-left-radius:4px;border-top-right-radius:4px;"},body:{name:"k7kym8",styles:"padding:8px 12px;font-size:14px;border-bottom-left-radius:4px;border-bottom-right-radius:4px;"}};function fM(e){var t=e.touches;if(t&&t.length){var n=t[0];return{x:n.clientX,y:n.clientY}}return{x:e.clientX,y:e.clientY}}var gM={position:"relative",display:"inline-block",backgroundColor:"#ddd",borderRadius:5,userSelect:"none",boxSizing:"border-box"},hM={position:"absolute",backgroundColor:"#5e72e4",borderRadius:5,userSelect:"none",boxSizing:"border-box"},mM={position:"relative",display:"block",content:'""',width:18,height:18,backgroundColor:"#fff",borderRadius:"50%",boxShadow:"0 1px 1px rgba(0,0,0,.5)",userSelect:"none",cursor:"pointer",boxSizing:"border-box"},_M={x:{track:lQ({},gM,{width:200,height:10}),active:lQ({},hM,{top:0,height:"100%"}),thumb:lQ({},mM)},y:{track:lQ({},gM,{width:10,height:200}),active:lQ({},hM,{left:0,width:"100%"}),thumb:lQ({},mM)},xy:{track:{position:"relative",overflow:"hidden",width:200,height:200,backgroundColor:"#5e72e4",borderRadius:0},active:{},thumb:lQ({},mM)},disabled:{opacity:.5}},vM=function(e){var t=e.disabled,n=e.axis,o=e.x,a=e.y,i=e.xmin,l=e.xmax,s=e.ymin,A=e.ymax,c=e.xstep,u=e.ystep,d=e.onChange,p=e.onDragStart,f=e.onDragEnd,g=e.onClick,h=e.xreverse,m=e.yreverse,_=e.styles,v=AQ(e,["disabled","axis","x","y","xmin","xmax","ymin","ymax","xstep","ystep","onChange","onDragStart","onDragEnd","onClick","xreverse","yreverse","styles"]),y=r.useRef(null),b=r.useRef(null),w=r.useRef({}),x=r.useRef({});function B(e){var t=e.top,r=e.left;if(d){var o=y.current.getBoundingClientRect(),a=o.width,p=o.height,f=0,g=0;0>r&&(r=0),r>a&&(r=a),0>t&&(t=0),t>p&&(t=p),"x"!==n&&"xy"!==n||(f=r/a*(l-i)),"y"!==n&&"xy"!==n||(g=t/p*(A-s));var _=(0!==f?parseInt(f/c,10)*c:0)+i,v=(0!==g?parseInt(g/u,10)*u:0)+s;d({x:h?l-_+i:_,y:m?A-v+s:v})}}function C(e){if(!t){e.preventDefault();var n=b.current,r=fM(e);w.current={x:n.offsetLeft,y:n.offsetTop},x.current={x:r.x,y:r.y},document.addEventListener("mousemove",E),document.addEventListener("mouseup",k),document.addEventListener("touchmove",E,{passive:!1}),document.addEventListener("touchend",k),document.addEventListener("touchcancel",k),p&&p(e)}}function E(e){t||(e.preventDefault(),B(function(e){var t=fM(e);return{left:t.x+w.current.x-x.current.x,top:t.y+w.current.y-x.current.y}}(e)))}function k(e){t||(e.preventDefault(),document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",k),document.removeEventListener("touchmove",E,{passive:!1}),document.removeEventListener("touchend",k),document.removeEventListener("touchcancel",k),f&&f(e))}var I,S,F=((I=(a-s)/(A-s)*100)>100&&(I=100),0>I&&(I=0),"x"===n&&(I=0),(S=(o-i)/(l-i)*100)>100&&(S=100),0>S&&(S=0),"y"===n&&(S=0),{top:I,left:S}),P={};"x"===n&&(P.width=F.left+"%"),"y"===n&&(P.height=F.top+"%"),h&&(P.left=100-F.left+"%"),m&&(P.top=100-F.top+"%");var L={position:"absolute",transform:"translate(-50%, -50%)",left:h?100-F.left+"%":F.left+"%",top:m?100-F.top+"%":F.top+"%"};"x"===n?L.top="50%":"y"===n&&(L.left="50%");var U={track:lQ({},_M[n].track,{},_.track),active:lQ({},_M[n].active,{},_.active),thumb:lQ({},_M[n].thumb,{},_.thumb),disabled:lQ({},_M.disabled,{},_.disabled)};return ZQ("div",lQ({},v,{ref:y,css:JQ([U.track,t&&U.disabled],";label:Slider;"),onClick:function(e){if(!t){var n=fM(e),r=y.current.getBoundingClientRect();B({left:n.x-r.left,top:n.y-r.top}),g&&g(e)}}}),ZQ("div",{css:U.active,style:P}),ZQ("div",{ref:b,style:L,onTouchStart:C,onMouseDown:C,onClick:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},ZQ("div",{css:U.thumb})))};vM.defaultProps={disabled:!1,axis:"x",x:50,xmin:0,xmax:100,y:50,ymin:0,ymax:100,xstep:1,ystep:1,xreverse:!1,yreverse:!1,styles:{}};var yM="undefined"!=typeof navigator&&navigator.userAgent.match(/iPhone|iPad|iPod/i),bM=function(e){var t=e.step,n=e.min,o=e.max,a=e.value,i=e.onChange,l=e.onKeyDown,s=e.enableMobileNumericKeyboard,A=e.component,c=AQ(e,["step","min","max","value","onChange","onKeyDown","enableMobileNumericKeyboard","component"]),u=r.useState(a),d=u[0],p=u[1];r.useEffect(function(){p(a)},[a]);var f={value:d,onChange:function(e){var t=function(e){if(pt.default(e))return e;if(ft.default(e)){if(!(e=e.trim()))return"";var t=parseFloat(e);if(!dt.default(t))return t}return""}(e);p(e),i&&i(t)},onKeyDown:function(e){38===e.keyCode?i&&i(xM("+",a,o,n,t)):40===e.keyCode&&i&&i(xM("-",a,o,n,t)),l&&l(e)},onWheel:function(e){e.target.blur()}};return ZQ(A,lQ({},c,f,s?{css:wM,type:"number",inputMode:"numeric",pattern:yM?"[0-9]*":"",step:t,min:n,max:o}:{css:wM,type:"text"}))};bM.defaultProps={autoComplete:"off",enableMobileNumericKeyboard:!1,value:"",component:function(e){var t=e.onChange,n=AQ(e,["onChange"]);return ZQ("input",lQ({},n,{onChange:function(e){t&&t(e.target.value)}}))},step:1};var wM={MozAppearance:"textfield","&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}};function xM(e,t,n,r,o){if(""===t)return pt.default(r)?r:"";if(t="+"===e?t+o:t-o,pt.default(n)&&t>n)return n;if(pt.default(r)&&r>t)return r;var a=((""+o).split(".")[1]||[]).length;return a?parseFloat(t.toFixed(a)):t}function BM(e){return"#"===e[0]&&(e=e.substr(1)),3===e.length?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16)}:{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16)}}function CM(e,t,n){var r=[],o=(n/=100)*(t/=100),a=e/60,i=o*(1-Math.abs(a%2-1)),l=n-o;return{r:Math.round(255*((r=a>=0&&1>a?[o,i,0]:a>=1&&2>a?[i,o,0]:a>=2&&3>a?[0,o,i]:e>=3&&4>a?[0,i,o]:e>=4&&5>a?[i,0,o]:5>e||a>6?[0,0,0]:[o,0,i])[0]+l)),g:Math.round(255*(r[1]+l)),b:Math.round(255*(r[2]+l))}}function EM(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function kM(e,t,n){return"#"+EM(e)+EM(t)+EM(n)}function IM(e,t,n){var r,o=Math.max(e,t,n),a=o-Math.min(e,t,n);return 0>(r=Math.round(60*(r=0===a?0:e===o?(t-n)/a%6:t===o?(n-e)/a+2:(e-t)/a+4)))&&(r+=360),{h:r,s:Math.round(100*(0===o?0:a/o)),v:Math.round(o/255*100)}}function SM(e,t,n,r){return"rgba("+[e,t,n,r/100].join(",")+")"}function FM(e){var t,n=e=e.toLowerCase(),r=BM(n),o=r.r,a=r.g,i=r.b,l=IM(o,a,i),s=e.length>7?(t=e.substr(7),Math.round(parseInt("0x"+t,16)/255*100)):100;return lQ({},l,{r:o,g:a,b:i,a:s,hex:n,rgba:SM(o,a,i,s)})}function PM(e,t,n,r){return kM(e,t,n)+function(e){return(Math.round(e/100*255)+65536).toString(16).substr(-2)}(r)}var LM={name:"bzk4lp",styles:"width:100%;margin-top:10px;margin-bottom:10px;display:flex;"},UM={name:"lwa3hx",styles:"flex:1;margin-right:10px;"},QM=function(e){var t=e.color,n=e.onChange,r=e.disabled,o=t.r,a=t.g,i=t.b,l=t.a,s=t.h,A=t.s,c=t.v;function u(e){n&&n(lQ({},e,{rgba:SM(e.r,e.g,e.b,e.a),hex:PM(e.r,e.g,e.b,e.a)}))}function d(e,n,r){var o=CM(e,n,r),a=o.r,i=o.g,l=o.b,s=kM(a,i,l);u(lQ({},t,{h:e,s:n,v:r,r:a,g:i,b:l,hex:s}))}function p(e,n,r){var o=kM(e,n,r),a=IM(e,n,r);u(lQ({},t,{r:e,g:n,b:r,h:a.h,s:a.s,v:a.v,hex:o}))}function f(e){u(lQ({},t,{a:e}))}var g=SM(o,a,i,l),h="linear-gradient(to right, "+SM(o,a,i,0)+", "+SM(o,a,i,100)+")",m=function(e,t,n){var r=CM(e,t,n);return kM(r.r,r.g,r.b)}(s,100,100);return ZQ("div",{css:NM.picker,onClick:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}},ZQ("div",{css:NM.selector,style:{backgroundColor:m}},ZQ("div",{css:NM.gradientWhite}),ZQ("div",{css:NM.gradientDark}),ZQ(vM,{axis:"xy",x:A,xmax:100,y:100-c,ymax:100,onChange:function(e){return d(s,e.x,100-e.y)},disabled:r,styles:{track:{width:"100%",height:"100%",background:"none"},thumb:{width:12,height:12,backgroundColor:"rgba(0,0,0,0)",border:"2px solid #fff",borderRadius:"50%"}}})),ZQ("div",{css:LM},ZQ("div",{css:UM},ZQ(vM,{axis:"x",x:s,xmax:359,onChange:function(e){return d(e.x,A,c)},disabled:r,styles:{track:{width:"100%",height:12,borderRadius:0,background:"linear-gradient(to left, #FF0000 0%, #FF0099 10%, #CD00FF 20%, #3200FF 30%, #0066FF 40%, #00FFFD 50%, #00FF66 60%, #35FF00 70%, #CDFF00 80%, #FF9900 90%, #FF0000 100%)"},active:{background:"none"},thumb:{width:5,height:14,borderRadius:0,backgroundColor:"#eee"}}}),ZQ(vM,{axis:"x",x:l,xmax:100,styles:{track:{width:"100%",height:12,borderRadius:0,background:h},active:{background:"none"},thumb:{width:5,height:14,borderRadius:0,backgroundColor:"#eee"}},onChange:function(e){return f(e.x)},disabled:r})),ZQ("div",{style:{backgroundColor:g,width:30,height:30}})),ZQ("div",{css:NM.inputs},ZQ("div",{css:NM.input},ZQ("input",{style:{width:70,textAlign:"left"},type:"text",value:t.hex,onChange:function(e){return function(e){var n=BM(e),r=n.r,o=n.g,a=n.b,i=IM(r,o,a);u(lQ({},t,{r:r,g:o,b:a,h:i.h,s:i.s,v:i.v,hex:e}))}(e.target.value)},onKeyUp:function(e){if(13===e.keyCode){var n=e.target.value.trim(),r=BM(n);u(lQ({},t,{r:r.r,g:r.g,b:r.b,a:l,hex:n}))}},disabled:r}),ZQ("div",null,"Hex")),ZQ("div",{css:NM.input},ZQ(bM,{min:0,max:255,value:o,onChange:function(e){return p(e,a,i)},disabled:r}),ZQ("div",null,"R")),ZQ("div",{css:NM.input},ZQ(bM,{min:0,max:255,value:a,onChange:function(e){return p(o,e,i)},disabled:r}),ZQ("div",null,"G")),ZQ("div",{css:NM.input},ZQ(bM,{min:0,max:255,value:i,onChange:function(e){return p(o,a,e)},disabled:r}),ZQ("div",null,"B")),ZQ("div",{css:NM.input},ZQ(bM,{min:0,max:100,value:l,onChange:function(e){return f(e)},disabled:r}),ZQ("div",null,"A"))))};QM.defaultProps={initialValue:"#5e72e4",disabled:!1};var NM={picker:{fontFamily:"'Helvetica Neue',Helvetica,Arial,sans-serif",width:230,"*":{userSelect:"none"}},selector:{position:"relative",width:230,height:230},gradientWhite:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%)"},gradientDark:{position:"absolute",top:0,left:0,right:0,bottom:0,background:"linear-gradient(to bottom, transparent 0%, #000000 100%)"},inputs:{display:"flex",justifyContent:"space-between",width:"100%"},input:{textAlign:"center",fontSize:13,fontWeight:"normal",color:"#000",input:{width:30,textAlign:"center"},div:{marginTop:4}}},MM={name:"j4ndc3",styles:"position:relative;display:inline-block;box-sizing:border-box;width:49px;height:24px;padding:4px;background-color:#ffffff;border:1px solid #bebebe;border-radius:3px;user-select:none;"},DM={name:"trkpwz",styles:"display:block;width:100%;height:100%;cursor:pointer;"},TM=function(e){var t=e.initialValue,n=e.onChange,o=e.placement,a=e.disabled,i=AQ(e,["initialValue","onChange","placement","disabled"]),l=r.useState(FM(t)),s=l[0],A=l[1];function c(e){n&&(A(e),n(e))}return r.useEffect(function(){c(FM(t))},[t]),ZQ(dM,{placement:o,body:ZQ(QM,{color:s,onChange:c,disabled:a})},ZQ("span",lQ({},i,{css:MM}),ZQ("span",{css:DM,style:{backgroundColor:s.rgba}})))};TM.defaultProps={placement:"bottom",disabled:!1};var OM={partitionConfigContainer:"partitionConfig_partitionConfigContainer__3VSRr",settingBtnWrap:"partitionConfig_settingBtnWrap__3Ouhh",partitionList:"partitionConfig_partitionList__1EGDR",partitionItem:"partitionConfig_partitionItem__nl5oG",active:"partitionConfig_active__2YhEq",materialItem:"partitionConfig_materialItem__1kp3u",materialNameBox:"partitionConfig_materialNameBox__1RC59",colorPicker:"partitionConfig_colorPicker__3yuSS",footer:"partitionConfig_footer__1mp95",cancelBtn:"partitionConfig_cancelBtn__3y3IT"};Rt(".partitionConfig_partitionConfigContainer__3VSRr{width:300px;padding:15px 12px 12px}.partitionConfig_settingBtnWrap__3Ouhh{display:flex;align-items:center;justify-content:center;width:80px;height:27px;background:#404b60;border-radius:4px;cursor:pointer}.partitionConfig_settingBtnWrap__3Ouhh span{display:flex;align-items:center;color:#fff;font-weight:400;font-size:12px;font-family:PingFang SC;font-style:normal;line-height:17px}.partitionConfig_settingBtnWrap__3Ouhh img{width:12px;height:12px;margin-left:7px}.partitionConfig_partitionList__1EGDR{display:flex;flex-wrap:wrap;margin-top:8px;padding:16px 15px;background:#fff;border:1px solid rgba(113,125,153,.3);border-radius:8px;box-shadow:0 8px 24px rgba(20,20,20,.16)}.partitionConfig_partitionItem__nl5oG{position:relative;display:flex;align-items:center;justify-content:center;width:52px;height:34px;margin-right:12px;margin-bottom:12px;border:1px solid #aaaeb8;border-radius:4px;cursor:pointer}.partitionConfig_partitionItem__nl5oG span{color:#121c2a;font-weight:400;font-size:14px;font-family:PingFang SC;font-style:normal}.partitionConfig_partitionItem__nl5oG img{position:absolute;right:2px;bottom:2px;width:6px;height:6px}.partitionConfig_partitionItem__nl5oG.partitionConfig_active__2YhEq{border:1px solid #3465e3}.partitionConfig_partitionItem__nl5oG.partitionConfig_active__2YhEq span{color:#1890ff}.partitionConfig_partitionList__1EGDR .partitionConfig_partitionItem__nl5oG:nth-child(4n){margin-right:0}.partitionConfig_materialItem__1kp3u{display:flex;align-items:center;justify-content:space-between;height:42px;margin-top:16px;padding:0 8px 0 16px;border:1px solid #aaaeb8;border-radius:4px}.partitionConfig_materialItem__1kp3u .partitionConfig_materialNameBox__1RC59{display:flex;align-items:center;width:120px}.partitionConfig_materialItem__1kp3u .partitionConfig_materialNameBox__1RC59 img{width:14px;height:14px;margin-right:8px}.partitionConfig_materialItem__1kp3u .partitionConfig_materialNameBox__1RC59 span{width:100px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.partitionConfig_materialItem__1kp3u input{width:74px;height:26px;padding:0 4px;background:transparent;border:1px solid #d7dae2;border-radius:4px}.partitionConfig_materialItem__1kp3u input:focus-visible{outline:.25px solid hsla(0,0%,100%,.5)}.partitionConfig_materialItem__1kp3u .rc-color-picker-wrap{height:24px}.partitionConfig_materialItem__1kp3u .rc-color-picker-trigger{width:24px;height:24px;border:1px solid #d7dae2;border-radius:2px;box-shadow:none}.partitionConfig_colorPicker__3yuSS{width:24px!important;height:24px!important;padding:0!important;border:1px solid #d7dae2!important;border-radius:2px!important}.partitionConfig_footer__1mp95{display:flex;align-items:center;justify-content:flex-end;margin-top:16px}.partitionConfig_footer__1mp95 div{display:flex;align-items:center;justify-content:center;width:38px;height:18px;color:#fff;font-weight:400;font-size:12px;font-family:PingFang SC;font-style:normal;background:#3465e3;border-radius:2px;cursor:pointer}.partitionConfig_footer__1mp95 div+div{margin-left:6px}.partitionConfig_footer__1mp95 .partitionConfig_cancelBtn__3y3IT{background:#404b60}");var HM={wall:"".concat(jt,"/scene/qiang.png"),pillar:"".concat(jt,"/scene/zhu.png"),numberCode:"".concat(jt,"/scene/bianhao.png"),ground:"".concat(jt,"/scene/dimian.png")},RM=r.forwardRef(function(e,t){var n,o,a,i=e.dispatch,l=e.partConfigDatas,s=e.applicationId,A=(null==l||null===(n=l.partitionDataList)||void 0===n?void 0:n.length)>0?null==l?void 0:l.partitionDataList[0]:{},c=Mt(r.useState(A),2),u=c[0],d=c[1];Mt(r.useState(!1),2);r.useEffect(function(){f()},[]),r.useEffect(function(){var e;null==l||null===(e=l.partitionDataList)||void 0===e||e.forEach(function(e){e.partitionName===u.partitionName&&d(Pt({},e))})},[l]),r.useImperativeHandle(t,function(){return{save:function(){p()},cancel:function(){f()}}});var p=function(){i({type:"scene/saveMaterialDataRelation",payload:{packageId:null==l?void 0:l.packageId,partitionData:null==u?void 0:u.partitionData},callback:function(){_o({role:2,method:"refreshItemColorTemplate",param:{}}),f()}})},f=function(){i({type:"scene/selectSourceMaterialList",payload:{applicationId:s},callback:function(e){var t,n=(null==e||null===(t=e.partitionDataList)||void 0===t?void 0:t.length)>0?null==e?void 0:e.partitionDataList[0]:{};d(n)}})},g=function(e,t){var n;null==u||null===(n=u.partitionData)||void 0===n||n.forEach(function(n){n.partitionId===t.partitionId&&(n.rgbData=e)}),d(Pt({},u))},h=function(e){e.currentTarget.select()};return fe.default.createElement("div",{className:OM.partitionConfigContainer,ref:t},fe.default.createElement("div",{className:OM.partitionList},null==l||null===(o=l.partitionDataList)||void 0===o?void 0:o.map(function(e,t){return fe.default.createElement("div",{key:"".concat(e.partitionName,"-").concat(t),className:ve.default(OM.partitionItem,Ct({},OM.active,e.partitionName===u.partitionName)),onClick:function(){d(e)}},fe.default.createElement("span",null,e.partitionName),fe.default.createElement("img",{src:1===e.configureFlag?Gr:Kr,alt:""}))})),fe.default.createElement("div",{className:OM.materialList},null==u||null===(a=u.partitionData)||void 0===a?void 0:a.map(function(e){return fe.default.createElement("div",{key:e.partitionId,className:OM.materialItem},fe.default.createElement("div",{className:OM.materialNameBox},fe.default.createElement("img",{src:(t=e.code,t.includes("wall")?HM.wall:t.includes("numberCode")?HM.numberCode:t.includes("ground")?HM.ground:HM.pillar),alt:""}),fe.default.createElement("span",{title:e.name},e.name)),fe.default.createElement(TM,{className:OM.colorPicker,initialValue:(null==e?void 0:e.rgbData)?"#".concat(null==e?void 0:e.rgbData):"#FFFFFF",onChange:function(t){return function(e,t){var n,r=null==e||null===(n=e.hex)||void 0===n?void 0:n.substr(1,6);g(r,t)}(t,e)},placement:"bottomLeft"}),fe.default.createElement("input",{type:"text",onFocus:h,value:(null==e?void 0:e.rgbData)||"FFFFFF",onChange:function(t){return function(e,t){g("".concat(e.target.value.replace("#","").replace(/[^0-9a-fA-F]/g,"")),t)}(t,e)},maxLength:6}));var t})))}),VM="".concat(jt,"/img/ipx_bottom.png"),jM="".concat(jt,"/img/ipx.png"),zM=s.withRouter(n.connect(function(e){return{app:e.app,roamConfig:e.roamConfig}})(function(e){var t=e.app,n=t.applicationId,o=t.isWeb,a=t.isRunning,i=t.sceneData;r.useEffect(function(){(function(e){return Ns.apply(this,arguments)})({applicationId:n}).then(function(t){var n;200===t.data.code&&e.dispatch({type:"roamConfig/updateState",payload:{dataConfigurationResult:null===(n=t.data.value)||void 0===n?void 0:n.dataConfigurationResult}})})},[e.roamConfig.showDrawer]),r.useEffect(function(){o||((null==i?void 0:i.obsDownloadUrl)&&"no"===a&&e.dispatch({type:"app/UEOPENGAME",payload:{mode:2}}),l())},[a]);var l=function(){var e=.5*document.getElementById("listConfiguration").getBoundingClientRect().width-200,t=.5*document.getElementById("listConfiguration").getBoundingClientRect().height-400;_o({role:2,method:"moveTo",param:{documentTitle:document.title,x:e,y:t}})};return fe.default.createElement("div",{id:"listConfiguration",className:pd},fe.default.createElement("div",{className:fd},o&&fe.default.createElement("div",{id:"phoneBox",className:gd},fe.default.createElement("img",{src:jM,alt:"",className:hd}),fe.default.createElement("img",{src:VM,alt:"",className:md}),fe.default.createElement(rU,null),fe.default.createElement(ai,{type:"roam",currentMenuId:"roam"})),!o&&fe.default.createElement(rU,null),!o&&fe.default.createElement($U,null)),fe.default.createElement("div",{className:_d},o?fe.default.createElement(ds,null):fe.default.createElement(Pa,{type:"roamConfig"}),fe.default.createElement(zL,null)))})),GM="testLine_cover__R13Xt",KM="testLine_centreBox__3dOZP",WM="testLine_viewBox__2WWSX",YM="testLine_phoneBox__6hgJL",XM="testLine_ipxBox__1edGz",qM="testLine_ipImg__2aD0K",JM="testLine_ipx_bottom__33okl",ZM="testLine_empty__3MAgz",$M="testLine_videoClass__1gxA7",eD="testLine_parkingContent__3U6Dt",tD="testLine_noPackageWrapper__2YaWl",nD="testLine_leftBox__60rN2",rD="testLine_shareContentBox__1LnlP";Rt(".testLine_cover__R13Xt{display:flex;width:100%;height:100%}.testLine_cover__R13Xt .testLine_centreBox__3dOZP{box-sizing:border-box;width:calc(100% - 310px);overflow:auto}.testLine_cover__R13Xt .testLine_centreBox__3dOZP,.testLine_cover__R13Xt .testLine_centreBox__3dOZP .testLine_viewBox__2WWSX{display:flex;align-items:center;justify-content:center;height:100%}.testLine_cover__R13Xt .testLine_centreBox__3dOZP .testLine_phoneBox__6hgJL{display:flex;align-items:flex-end;justify-content:center}.testLine_cover__R13Xt .testLine_centreBox__3dOZP .testLine_phoneBox__6hgJL .testLine_ipxBox__1edGz{position:relative;width:387px;height:824px;overflow:hidden;background:#30303e;border:6px solid #fff;border-radius:46px;box-shadow:0 3px 24px rgba(0,0,0,.25)}.testLine_cover__R13Xt .testLine_centreBox__3dOZP .testLine_phoneBox__6hgJL .testLine_ipxBox__1edGz .testLine_ipImg__2aD0K{width:375px;height:88px}.testLine_cover__R13Xt .testLine_centreBox__3dOZP .testLine_phoneBox__6hgJL .testLine_ipxBox__1edGz .testLine_ipx_bottom__33okl{position:absolute;right:0;bottom:0;left:0;width:375px;height:44px}.testLine_cover__R13Xt .testLine_centreBox__3dOZP .testLine_empty__3MAgz{position:relative;min-width:350px;height:100%;margin:0 20px}.testLine_cover__R13Xt .testLine_centreBox__3dOZP .testLine_videoClass__1gxA7{position:fixed;top:0;left:-100%;z-index:-99;width:375px;height:724px;background:transparent;opacity:0}.testLine_cover__R13Xt .testLine_parkingContent__3U6Dt{position:absolute;bottom:0;left:0;width:100%;height:calc(100% - 88px)}.testLine_cover__R13Xt .testLine_parkingContent__3U6Dt iframe{width:100%;height:100%;overflow:hidden}.testLine_cover__R13Xt .testLine_parkingContent__3U6Dt .testLine_noPackageWrapper__2YaWl{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%}.testLine_cover__R13Xt .testLine_parkingContent__3U6Dt .testLine_noPackageWrapper__2YaWl img{width:46px;height:46px;margin-bottom:12px}.testLine_cover__R13Xt .testLine_parkingContent__3U6Dt .testLine_noPackageWrapper__2YaWl span{color:#fff;font-weight:400;font-size:24px;font-family:PingFang HK;font-style:normal}.testLine_cover__R13Xt .testLine_leftBox__60rN2{box-sizing:border-box;width:310px;height:100%;background-color:#fff}.testLine_shareContentBox__1LnlP{position:absolute;top:0;right:310px}div.fullScreen{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9;display:flex;align-items:center;width:100vw;background-color:#f0f2f5}");var oD={rightBox:"index_rightBox__2qMKc",willInLine:"index_willInLine__3fNGm",configTabList:"index_configTabList__GHXjD",description:"index_description__L-AWJ",configTabItem:"index_configTabItem__2uT89",tabName:"index_tabName__oFFp3",divider:"index_divider__2iDaC",active:"index_active__Yx-Hl",contentBox:"index_contentBox__1Zkci",nextButton:"index_nextButton__eo4QV"};Rt(".index_rightBox__2qMKc{position:relative;display:flex;flex-direction:column;width:100%;height:100%}.index_rightBox__2qMKc .ant-tabs-top>.ant-tabs-nav{margin:0;padding:0 14px}.index_rightBox__2qMKc .ant-tabs-ink-bar{background:#397bff}.index_rightBox__2qMKc .ant-tabs-tab .ant-tabs-tab-btn{color:#000f2c;font-weight:600;font-size:14px;font-family:PingFang SC;font-style:normal;line-height:24px;opacity:.6}.index_rightBox__2qMKc .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn{color:#000f2c;font-weight:600;font-size:14px;font-family:PingFang SC;font-style:normal;line-height:24px;opacity:1}.index_rightBox__2qMKc .ant-empty{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.index_rightBox__2qMKc .ant-badge-dot{right:-5px}.index_rightBox__2qMKc .index_willInLine__3fNGm{height:calc(100% - 50px)}.index_rightBox__2qMKc .index_configTabList__GHXjD{display:flex;align-items:center;width:100%;height:49px;padding:0 10px}.index_rightBox__2qMKc .index_description__L-AWJ{display:flex;flex-direction:column;color:#9da1aa;font-weight:400;font-size:12px;font-family:PingFang SC;font-style:normal}.index_rightBox__2qMKc .index_description__L-AWJ i{margin-left:5px;color:#3465e3;font-weight:700;font-style:normal;cursor:pointer}.index_rightBox__2qMKc .index_configTabItem__2uT89{display:flex;align-items:center;cursor:pointer}.index_rightBox__2qMKc .index_configTabItem__2uT89 span{box-sizing:border-box;width:20px;height:20px;margin-right:6px;font-weight:400;font-size:14px;font-family:PingFang SC;font-style:normal;line-height:18px;text-align:center;border:1px solid #666f80;border-radius:50%}.index_rightBox__2qMKc .index_configTabItem__2uT89 .index_tabName__oFFp3{color:rgba(0,15,44,.6);font-weight:400;font-size:14px;font-family:PingFang SC;font-style:normal}.index_rightBox__2qMKc .index_configTabItem__2uT89 .index_divider__2iDaC{width:14px;height:1px;margin:0 4px;background:rgba(102,111,128,.4)}.index_rightBox__2qMKc .index_configTabItem__2uT89.index_active__Yx-Hl span{color:#fff;background:#397bff;border:1px solid #397bff}.index_rightBox__2qMKc .index_configTabItem__2uT89.index_active__Yx-Hl .index_tabName__oFFp3{color:#000f2c;font-weight:600}.index_rightBox__2qMKc .index_contentBox__1Zkci{height:calc(100% - 50px);overflow:auto}.index_rightBox__2qMKc .index_nextButton__eo4QV{width:277px;height:36px;margin:12px 14px 16px;color:#fff;font-weight:400;font-size:14px;font-family:PingFang SC;font-style:normal;line-height:36px;text-align:center;background:#3465e3;border-radius:4px;cursor:pointer}.index_rightBox__2qMKc .index_nextButton__eo4QV:hover{opacity:.7}");var aD={fileBox:"index_fileBox__2ab0e",versionLading:"index_versionLading__3xvdW",projectName:"index_projectName__N3aAf",but:"index_but__2ZrJd",err:"index_err__3Irxy",tipBox:"index_tipBox__1XW5u",tipTitle:"index_tipTitle__2E4Gh",tipText:"index_tipText__WdDhf",title:"index_title__2Dxot",flieInfo:"index_flieInfo__32Y81",fileContent:"index_fileContent__2XUvx",versionIcon:"index_versionIcon__kZ8k2",triangle:"index_triangle__3LtHW",rotate:"index_rotate__3PSNn",choose:"index_choose__1cLuf",buttonBox:"index_buttonBox__1KWcR",passBut:"index_passBut__2pmea",sendBut:"index_sendBut__23U90",shareBut:"index_shareBut__1N4p-",logBut:"index_logBut__1g06p",butNo:"index_butNo__2tvDP",nextButton:"index_nextButton__1XM4Q",fileMenu:"index_fileMenu__5e_5l",noLineProjectName:"index_noLineProjectName__3KoMd",loading:"index_loading__II2jo",description:"index_description__P6thJ"};Rt(".index_fileBox__2ab0e{box-sizing:border-box;width:100%;padding:0 14px 16px;overflow:hidden}.index_fileBox__2ab0e .index_versionLading__3xvdW{display:flex;align-items:center;justify-content:space-between;width:282px;height:42.38px;margin-top:20px;padding:0 12px;background:#fff;border-radius:4px;box-shadow:0 2px 8px rgba(0,0,0,.15)}.index_fileBox__2ab0e .index_versionLading__3xvdW>div{display:flex;align-items:center;color:rgba(0,0,0,.85);font-weight:400;font-size:14px;font-style:normal;line-height:20px}.index_fileBox__2ab0e .index_versionLading__3xvdW>div img{width:22px;height:22px}.index_fileBox__2ab0e .index_versionLading__3xvdW>div .index_projectName__N3aAf{width:170px;margin:0 5px}.index_fileBox__2ab0e .index_versionLading__3xvdW .index_but__2ZrJd{display:flex;align-items:center;justify-content:center;width:48px;min-width:48px;height:22.38px;color:#397bff;font-weight:600;font-size:12px;font-family:PingFang SC;font-style:normal;line-height:17px;background:rgba(57,123,255,.1);border-radius:4px}.index_fileBox__2ab0e .index_versionLading__3xvdW .index_but__2ZrJd img{width:12px;height:12px;margin-right:8px}.index_fileBox__2ab0e .index_versionLading__3xvdW span.index_err__3Irxy{color:#f15c5c}.index_fileBox__2ab0e .index_tipBox__1XW5u{width:282px;height:91px;margin-bottom:8px;padding:11px;background:#d4e3fc;border-radius:3px}.index_fileBox__2ab0e .index_tipBox__1XW5u .index_tipTitle__2E4Gh{display:flex;align-items:center;justify-content:space-between}.index_fileBox__2ab0e .index_tipBox__1XW5u .index_tipTitle__2E4Gh p{color:rgba(0,0,0,.9);font-weight:500;font-size:14px;font-style:normal;line-height:22px}.index_fileBox__2ab0e .index_tipBox__1XW5u .index_tipTitle__2E4Gh img{width:8px;height:8px;cursor:pointer}.index_fileBox__2ab0e .index_tipBox__1XW5u .index_tipText__WdDhf{margin-top:5px;color:#000f2c;font-weight:400;font-size:12px;font-style:normal;line-height:20px;opacity:.6}.index_fileBox__2ab0e .index_title__2Dxot{margin-top:12px;margin-bottom:5px;color:#000f2c;font-weight:400;font-size:12px;font-style:normal;line-height:20px;opacity:.6}.index_fileBox__2ab0e .index_flieInfo__32Y81{position:relative;display:flex;align-items:center;box-sizing:border-box;width:282px;height:65px;border:1px dashed #abb1c0;border-radius:4px;cursor:pointer}.index_fileBox__2ab0e .index_flieInfo__32Y81 .index_fileContent__2XUvx{display:flex;align-items:center;justify-content:flex-start;padding:0 12px}.index_fileBox__2ab0e .index_flieInfo__32Y81 .index_fileContent__2XUvx img{width:30px;height:25.38px;margin-right:14px}.index_fileBox__2ab0e .index_flieInfo__32Y81 .index_versionIcon__kZ8k2{position:absolute;top:0;right:0;display:flex;flex-direction:column;height:100%}.index_fileBox__2ab0e .index_flieInfo__32Y81 .index_versionIcon__kZ8k2 span{box-sizing:border-box;width:60px;height:21px;padding:2px 6px;color:#23c16b;font-weight:600;font-size:12px;font-family:PingFang SC;font-style:normal;line-height:17px;background:rgba(35,193,107,.1);border-radius:4px}.index_fileBox__2ab0e .index_flieInfo__32Y81 .index_versionIcon__kZ8k2 .index_triangle__3LtHW{position:absolute;top:32px;right:17px;width:8px;height:5px;border:5px solid transparent;border-top-color:rgba(0,15,44,.3)}.index_fileBox__2ab0e .index_flieInfo__32Y81 .index_rotate__3PSNn .index_triangle__3LtHW{top:25px!important;transform:rotate(180deg)}.index_fileBox__2ab0e .index_choose__1cLuf{display:flex;align-items:center;justify-content:center;width:68px;height:100%;color:#3465e3;border-left:1px dashed #abb1c0;cursor:pointer}.index_fileBox__2ab0e .index_choose__1cLuf:hover{opacity:.7}.index_fileBox__2ab0e .index_buttonBox__1KWcR{position:relative;display:flex;align-items:center;margin-top:12px}.index_fileBox__2ab0e .index_buttonBox__1KWcR .ant-btn{height:36px;padding:0;border-radius:4px}.index_fileBox__2ab0e .index_buttonBox__1KWcR .ant-btn:hover{opacity:.7}.index_fileBox__2ab0e .index_buttonBox__1KWcR .index_passBut__2pmea{display:flex;align-items:center;justify-content:center;height:36px;color:#fff;font-weight:400;font-size:14px;font-family:PingFang SC;font-style:normal;line-height:20px;background:#3465e3;border:1px solid #3465e3;border-radius:4px;cursor:pointer}.index_fileBox__2ab0e .index_buttonBox__1KWcR .index_passBut__2pmea>img{width:14px;height:14px;margin-left:8px}.index_fileBox__2ab0e .index_buttonBox__1KWcR .index_passBut__2pmea:hover{opacity:.7}.index_fileBox__2ab0e .index_buttonBox__1KWcR .index_sendBut__23U90{width:80px}.index_fileBox__2ab0e .index_buttonBox__1KWcR .index_shareBut__1N4p-{display:flex;align-items:center;justify-content:center;width:72px;margin:0 10px;color:#3465e3;border-color:#3465e3}.index_fileBox__2ab0e .index_buttonBox__1KWcR .index_shareBut__1N4p- img{width:13px;height:13px;margin-right:6px}.index_fileBox__2ab0e .index_buttonBox__1KWcR .index_logBut__1g06p{width:82px;color:#3465e3;border-color:#3465e3;cursor:not-allowed}.index_fileBox__2ab0e .index_butNo__2tvDP{cursor:not-allowed!important;opacity:.5}.index_fileBox__2ab0e .index_nextButton__1XM4Q{width:277px;height:36px;margin-top:12px;color:#fff;font-weight:400;font-size:14px;font-family:PingFang SC;font-style:normal;line-height:36px;text-align:center;background:#3465e3;border-radius:4px;cursor:pointer}.index_fileBox__2ab0e .index_nextButton__1XM4Q:hover{opacity:.7}.ant-popover-buttons .ant-btn-sm{width:44px}.ant-popover-buttons .ant-btn-sm:first-child{color:rgba(0,0,0,.9);background:#f0f1f2!important;border:none!important}.ant-popover-buttons .ant-btn-sm:first-child:hover{opacity:.7}.index_fileMenu__5e_5l .ant-dropdown-menu-item{line-height:40px}.index_fileMenu__5e_5l .ant-dropdown-menu-item-active{color:#397bff!important}.index_fileMenu__5e_5l .ant-dropdown-menu-item .ant-dropdown-menu-title-content{display:flex;align-items:center;justify-content:space-between}.index_fileMenu__5e_5l .ant-dropdown-menu-item .ant-dropdown-menu-title-content>i{width:60px;height:21px;padding:0 6px;color:#23c16b;font-weight:600;font-size:12px;font-style:normal;line-height:21px;background:rgba(35,193,107,.1);border-radius:4px}.index_projectName__N3aAf{width:190px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.index_noLineProjectName__3KoMd{width:260px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.index_loading__II2jo{animation:index_rotate__3PSNn 1s linear infinite}@keyframes index_rotate__3PSNn{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.index_description__P6thJ{display:flex;flex-direction:column;color:#9da1aa;font-weight:400;font-size:12px;font-family:PingFang SC;font-style:normal}.index_description__P6thJ i{margin-left:5px;color:#3465e3;font-weight:700;font-style:normal;cursor:pointer}");var iD,lD,sD="index_testComponent__17GmF",AD="index_formBox__1ZhrJ",cD="index_titleBox__1MO00",uD="index_formContentBox__3uZrV",dD="index_inputWidth__UdxGy",pD="index_fromItemSpan__2vZsd",fD="index_iText__1DUbt",gD="index_footerBtu__33EJf",hD="index_submitBut__3l2D3",mD="index_reSetBut__ryii0",_D="index_activeBut__1cM_6",vD="index_formItem___bctp",yD="index_formItemLabel__3zH2M";Rt('.index_testComponent__17GmF{padding:12px;border-top:6px solid #eaebed}.index_testComponent__17GmF .index_formBox__1ZhrJ .index_titleBox__1MO00{display:flex;align-items:center;justify-content:space-between;padding:13px 16px 18px 12px;background:#f0f2f5}.index_testComponent__17GmF .index_formBox__1ZhrJ .index_titleBox__1MO00 span{font-weight:400;font-style:normal;line-height:20px;cursor:pointer}.index_testComponent__17GmF .index_formBox__1ZhrJ .index_titleBox__1MO00 span:first-child{color:#000f2c;font-size:12px;opacity:.6}.index_testComponent__17GmF .index_formBox__1ZhrJ .index_titleBox__1MO00 span:last-child{color:#3465e3;font-size:14px}.index_testComponent__17GmF .index_formBox__1ZhrJ .index_formContentBox__3uZrV{padding:0 16px 18px 12px;background:#f0f2f5}.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-form-item-label{width:80px;text-align:left!important}.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-form-item-label>label{color:#717d99!important;font-size:12px!important}.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-input,.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-input-number,.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-select{width:130px!important}.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-input-number-input,.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-input-number-input-wrap{height:38px}.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-input-number-handler-wrap{background:#fff}.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-form-item-has-error .ant-input-number:not([disabled]):hover,.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-input,.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-input-number,.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-select,.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-select-single:not(.ant-select-customize-input) .ant-select-selector{height:38px;background:#fff;border-radius:4px}.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-form-item-has-error .ant-input-number,.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-form-item-has-error .ant-select:not(.ant-select-disabled):not(.ant-select-customize-input) .ant-select-selector,.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-form-item-has-error :not(.ant-input-disabled):not(.ant-input-borderless).ant-input{background:rgba(241,92,92,.1)!important}.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-form-item-explain-error{margin-top:6px;margin-bottom:11px;font-size:12px}.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-form-item-explain-error:before{position:relative;top:2px;display:inline-block;width:14px;height:14px;margin-right:4px;background:url(/3d-garage-model/img/dangerIcon.png);background-size:14px 14px;content:""}.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-form-item-has-error :not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper,.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-form-item-has-error :not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:hover,.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-form-item-has-error :not(.ant-input-disabled):not(.ant-input-borderless).ant-input,.index_testComponent__17GmF .index_formBox__1ZhrJ .ant-form-item-has-error :not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover{background-color:rgba(241,92,92,.1);border:1px solid #f15c5c}.index_testComponent__17GmF .index_formBox__1ZhrJ .index_inputWidth__UdxGy .ant-input-number{width:48px!important}.index_testComponent__17GmF .index_formBox__1ZhrJ .index_fromItemSpan__2vZsd{display:flex;align-items:center;box-sizing:border-box}.index_testComponent__17GmF .index_formBox__1ZhrJ .index_iText__1DUbt{margin:0 8px;color:#717d99;font-size:14px;font-style:normal}.index_testComponent__17GmF .index_formBox__1ZhrJ .index_footerBtu__33EJf{display:flex;align-items:center;justify-content:flex-end;margin-bottom:10px}.index_testComponent__17GmF .index_formBox__1ZhrJ .index_submitBut__3l2D3{display:inline-block;width:60px;height:32px;color:#fff;font-weight:400;font-size:14px;font-style:normal;line-height:32px;text-align:center;border-radius:4px}.index_testComponent__17GmF .index_formBox__1ZhrJ .index_reSetBut__ryii0{margin-right:12px;color:rgba(0,0,0,.9);background:#e7e7e7;cursor:pointer}.index_testComponent__17GmF .index_formBox__1ZhrJ .index_activeBut__1cM_6:hover,.index_testComponent__17GmF .index_formBox__1ZhrJ .index_reSetBut__ryii0:hover{opacity:.7}.index_testComponent__17GmF .index_formBox__1ZhrJ .index_activeBut__1cM_6{background:#3465e3;cursor:pointer}.index_testComponent__17GmF .index_formBox__1ZhrJ .index_disabledBut__1NKrL{background:rgba(52,101,227,.5);cursor:not-allowed}.index_testComponent__17GmF .index_formBox__1ZhrJ .index_formItem___bctp{display:flex}.index_testComponent__17GmF .index_formBox__1ZhrJ .index_formItem___bctp .index_formItemLabel__3zH2M{box-sizing:border-box;width:80px;color:#717d99}.index_testComponent__17GmF .index_formBox__1ZhrJ .index_formItem___bctp .index_formItemLabel__3zH2M i{margin-right:4px;color:#ff4d4f;font-size:14px;font-style:normal}.index_errorInfo__1cQNJ{color:#ff4d4f;font-size:14px;line-height:1.5715}');var bD=(iD=n.connect(function(e){return{app:e.app,seting:e.seting}}),iD(lD=function(e){function t(e){var n;return bt(this,t),(n=yt(this,t,[e])).getInfo=function(){var e=n,t=n.props,r=t.app.applicationId,o=t.packageType,a=t.taskId;console.log("**************",o,a),n.props.dispatch({type:"seting/getQueryCloudResource",payload:{applicationId:r,packageType:o,taskId:a}}).then(function(){e.handleFormInfo(!0)})},n.validateFormData=vt(Ut().m(function e(){return Ut().w(function(e){for(;;)if(0===e.n)return e.a(2)},e)})),n.handleFormSubmit=vt(Ut().m(function e(){var t,r,o,a,i,l,s,A,c,u,d,p;return Ut().w(function(e){for(;;)switch(e.p=e.n){case 0:return r=(t=n.props).app.applicationId,o=t.taskId,a=t.packageType,l=(i=n.state).maxCodeStream,s=i.minCodeStream,A=i.pushFlowResolution,e.p=1,e.n=2,n.formRef.current.validateFields();case 2:c=e.v,e.n=4;break;case 3:e.p=3,console.log(e.v);case 4:c&&(p={taskId:o,applicationId:r,maxCodeStream:l,minCodeStream:s,gameId:c.gameId,groupId:c.groupId,aliAppId:null===(u=c)||void 0===u?void 0:u.aliAppId,aliProjectId:null===(d=c)||void 0===d?void 0:d.aliProjectId,maxConcurrent:c.maxConcurrent,fps:c.fps,pushFlowResolution:A,packageType:a},n.props.dispatch({type:"seting/setSaveCloudGameInfo",payload:p,callback:function(){n.setIframeUpdate(o)}}));case 5:return e.a(2)}},e,null,[[1,3]])})),n.setIframeUpdate=function(e){n.props.dispatch({type:"seting/updateState",payload:{isPageOKTaskId:e,iframeType:"TEST"===n.props.packageType?"test":"pro",iframeUpData:(new Date).getTime()}})},n.onChangeFormItem=function(e,t){n.setState(Ct({},t,e))},n.handleFormInfo=function(e){var t,r=n,o=n.props.seting.gameInfos,a=o.maxCodeStream,i=o.minCodeStream,l=o.pushFlowResolution,s={maxConcurrent:o.maxConcurrent||50},A={fps:o.fps||60};if(null===(t=r.formRef)||void 0===t?void 0:t.current){var c=r.formRef.current.getFieldsValue();r.formRef.current.setFieldsValue(Pt(Pt(Pt(Pt({},c),o),s),A)),r.setState({maxCodeStream:a||10,minCodeStream:i||1,pushFlowResolution:""===l||null===l?"768×1024":l})}},n.handleShrink=function(){n.setState({isShrink:!n.state.isShrink})},n.state={isDisabled:!1,isShrink:!0,pushFlowResolution:"768×1024",maxCodeStream:10,minCodeStream:1},n.formRef=fe.default.createRef(),n}return It(t,e),xt(t,[{key:"componentDidMount",value:function(){var e=this;Yr.on("CloudData",function(){return e.handleFormInfo(!0)}),Yr.on("getCloudData",this.getInfo)}},{key:"componentWillUnmount",value:function(){var e=this;Yr.off("CloudData",function(){return e.handleFormInfo(!0)}),Yr.off("getCloudData",this.getInfo)}},{key:"render",value:function(){var e=this,t=this.state,n=t.isShrink,r=t.isDisabled,o=t.maxCodeStream,a=t.minCodeStream,i=t.pushFlowResolution,l=this.props,s=l.packageType;return fe.default.createElement(fe.default.Fragment,null,fe.default.createElement("div",{className:sD},fe.default.createElement("div",{className:AD},fe.default.createElement("div",{className:cD},fe.default.createElement("span",null,"云游戏配置"),fe.default.createElement("span",{onClick:this.handleShrink},n?"收起":"编辑")),fe.default.createElement("div",{className:uD,style:{display:n?"block":"none"}},fe.default.createElement(je.default,{ref:this.formRef},fe.default.createElement(je.default.Item,{label:"GameID",name:"gameId",rules:[{required:!0,message:"输入正确的GameID",max:30}]},fe.default.createElement(He.default,{placeholder:"输入GameID",disabled:!("TEST"!==s&&!r)})),fe.default.createElement(je.default.Item,{label:"GroupID",name:"groupId",rules:[{required:!0,message:"输入正确的GroupID",max:30}]},fe.default.createElement(He.default,{placeholder:"输入GroupID",disabled:!("TEST"!==s&&!r)})),fe.default.createElement(je.default.Item,{label:"projectId",name:"aliProjectId",rules:[{message:"输入正确的projectId",max:30}]},fe.default.createElement(He.default,{placeholder:"输入projectId",disabled:!("TEST"!==s&&!r)})),fe.default.createElement(je.default.Item,{label:"appId",name:"aliAppId",rules:[{message:"输入正确的appId",max:30}]},fe.default.createElement(He.default,{placeholder:"输入appId",disabled:!("TEST"!==s&&!r)})),fe.default.createElement(je.default.Item,{label:"最大并发数",name:"maxConcurrent",rules:[{required:!0,message:"输入数字"}]},fe.default.createElement(Ke.default,{min:1,placeholder:"输入数字",controls:!1,onChange:function(t){e.onChangeFormItem(t,"maxConcurrent")}})),fe.default.createElement(je.default.Item,{label:"FPS",name:"fps",rules:[{required:!0,message:"输入25至60范围的数字"}]},fe.default.createElement(Ke.default,{min:25,max:60,placeholder:"输入数字",controls:!1})),fe.default.createElement("div",{className:vD},fe.default.createElement("div",{className:yD},fe.default.createElement("i",null,"*"),"码流范围:"),fe.default.createElement(je.default.Item,null,fe.default.createElement("span",{className:ve.default(pD,dD)},fe.default.createElement(Ke.default,{min:1,max:14,placeholder:"输入数字",controls:!1,value:a,onChange:function(t){e.onChangeFormItem(t,"minCodeStream")}}),fe.default.createElement("i",{className:fD},"-"),fe.default.createElement(Ke.default,{min:2,max:15,placeholder:"输入数字",controls:!1,value:o,onChange:function(t){e.onChangeFormItem(t,"maxCodeStream")}}),fe.default.createElement("i",{className:fD},"mbps")))),fe.default.createElement(je.default.Item,{label:"推流分辨率",name:"pushFlowResolution"},fe.default.createElement(Pe.default,{value:i,onChange:function(t){return e.onChangeFormItem(t,"pushFlowResolution")}},null==$t?void 0:$t.map(function(e){return fe.default.createElement(Pe.default.Option,{value:e.value,key:e.value},e.name)})),fe.default.createElement("i",{className:fD},"px"))),fe.default.createElement("div",{className:gD},fe.default.createElement("span",{className:ve.default(hD,mD),onClick:function(){return e.handleFormInfo(!1)}},"重置"),fe.default.createElement("span",{className:ve.default(hD,_D),onClick:this.handleFormSubmit},"保存"))))))}}])}(r.Component))||lD),wD=function(e){var t=e.text1,n=void 0===t?"请前往步骤":t,r=e.setRouter,o=e.pageName,a=void 0===o?"程序打包":o;return fe.default.createElement(Qe.default,{className:aD.empty,description:fe.default.createElement("div",{className:aD.description},fe.default.createElement("span",null," ",e.text),fe.default.createElement("span",null,n,fe.default.createElement("i",{onClick:r},a)))})},xD=n.connect(function(e){return{app:e.app,seting:e.seting,programPackage:e.programPackage}})(function(e){var t=e.dispatch,n=e.onTab,o=e.setRouter,a=e.openVisibleShare,i=e.isTestRole,l=e.app.applicationId,s=e.seting,A=s.currentTaskPageData,c=s.currentDeployMachineCode,u=s.taskList,d=s.currentTaskId,p=s.currentTaskName,f=s.lineVersionFlag,g=s.packageType,h=e.setIframeUpdate,m=Mt(r.useState(!1),2),_=m[0],v=m[1],y=Mt(r.useState(!1),2),b=y[0],w=y[1];Mt(r.useState([]),2);r.useEffect(function(){t({type:"seting/getQueryPackageDeployList",payload:{applicationId:l,queryType:1,type:"test"},callback:function(e){var t,n;h(null==e||null===(t=e.taskList)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.taskId,"test"),Yr.emit("getCloudData")}})},[]);var x,B=function(e){var n=u.find(function(e){return e.taskId===d}).taskId;"测试通过"===e?t({type:"seting/setTestConfirmation",payload:Pt({},{applicationId:l,taskId:n})}).then(function(){t({type:"seting/getQueryPackageDeployList",payload:{applicationId:l,queryType:1,type:"test"}})}):"测试开始"===e&&C(d)},C=function(e){t({type:"seting/updateProgramVersion",payload:{taskId:e}}).then(function(){t({type:"seting/getQueryPackageDeployList",payload:{applicationId:l,queryType:1,type:"test"}})})},E=function(){var e=vt(Ut().m(function e(n){var r;return Ut().w(function(e){for(;;)switch(e.n){case 0:return r=null==u?void 0:u.find(function(e){return e.taskId===n.key}),e.n=1,t({type:"seting/updateState",payload:{taskId:n.key,currentTaskPageData:r,currentTaskName:"".concat("TEST"===r.packageType?"(测试)":"").concat(r.projectName).concat(r.version),currentTaskId:n.key,testPassThrough:null==r?void 0:r.testPassThrough,deployStatus:null==r?void 0:r.deployStatus,currentDeployMachineCode:(null==r?void 0:r.deployMachineCode)||"",lineVersionFlag:null==r?void 0:r.lineVersionFlag,packageType:null==r?void 0:r.packageType}});case 1:return e.n=2,t({type:"seting/getQueryCloudResource",payload:{applicationId:l,packageType:null==r?void 0:r.packageType,taskId:n.key}}).then(function(){Yr.emit("CloudData")});case 2:h(n.key,"test");case 3:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}();return fe.default.createElement(fe.default.Fragment,null,(null==u?void 0:u.length)>0?fe.default.createElement(fe.default.Fragment,null,fe.default.createElement("div",{className:aD.fileBox},!_&&fe.default.createElement("div",{className:aD.tipBox},fe.default.createElement("div",{className:aD.tipTitle},fe.default.createElement("p",null,"操作指引"),fe.default.createElement("img",{src:Cn,alt:"",onClick:function(){return v(!0)}})),fe.default.createElement("div",{className:aD.tipText},fe.default.createElement("p",null,"1.请完成【云游戏配置】"),fe.default.createElement("p",null,"2.在引擎内测试模型,若无问题请点击“测试通过”"))),fe.default.createElement("div",{className:aD.title},"待测试程序包:"),(null==u?void 0:u.length)>1?(x=fe.default.createElement(Me.default,{className:aD.fileMenu,onClick:E,style:{height:"310px",overflowY:"scroll"}},(null==u?void 0:u.length)>0&&(null==u?void 0:u.map(function(e){return fe.default.createElement(Me.default.Item,{key:e.taskId},fe.default.createElement("span",{title:"".concat("TEST"===e.packageType?"(测试)":"").concat(e.projectName).concat(e.version),className:ve.default(1===(null==e?void 0:e.lineVersionFlag)?aD.projectName:aD.noLineProjectName)},"".concat("TEST"===e.packageType?"(测试)":"").concat(e.projectName).concat(e.version)),"PROD"===e.packageType&&1===e.lineVersionFlag&&fe.default.createElement("i",null,"线上版本"))}))),fe.default.createElement(Ne.default,{overlay:x,trigger:["hover"],onVisibleChange:function(e){return w(e)}},fe.default.createElement("div",{className:aD.flieInfo},fe.default.createElement("div",{className:aD.fileContent},fe.default.createElement("img",{src:Xn,alt:""}),fe.default.createElement("div",{title:p,className:aD.projectName},p)),fe.default.createElement("div",{className:ve.default(b?aD.rotate:"",aD.versionIcon)},"PROD"===g&&1===f&&fe.default.createElement("span",null,"线上版本"),fe.default.createElement("i",{className:aD.triangle}))))):fe.default.createElement("div",{className:aD.flieInfo,style:{cursor:"pointer"}},fe.default.createElement("div",{className:aD.fileContent},fe.default.createElement("img",{src:Xn,alt:""}),fe.default.createElement("div",{title:p,className:aD.projectName},p))),fe.default.createElement("div",{className:aD.buttonBox,id:"burBox"},i&&3===(null==A?void 0:A.testPassThrough)&&fe.default.createElement(at.default,{placement:"leftTop",title:fe.default.createElement("div",{style:{display:"flex",flexDirection:"column"}},fe.default.createElement("span",{style:{fontWeight:"bold"}},"确定测试完成吗?"),fe.default.createElement("span",{style:{color:"#404b60",marginTop:"8px"}},"该程序包测试通过后不可再次测试。")),onConfirm:function(){return B("测试通过")},okText:"通过",cancelText:"取消"},fe.default.createElement("div",{className:aD.passBut,style:{width:"80px"}},"测试完成")),i?1===(null==A?void 0:A.testPassThrough)?fe.default.createElement("div",{className:ve.default(aD.passBut,aD.butNo),style:{width:1===(null==A?void 0:A.testPassThrough)?"100px":"80px"}},"测试完成",1===(null==A?void 0:A.testPassThrough)?fe.default.createElement("img",{src:Jn,alt:""}):""):"":1===(null==A?void 0:A.testPassThrough)||3===(null==A?void 0:A.testPassThrough)?fe.default.createElement("div",{className:ve.default(aD.passBut,aD.butNo),style:{width:1===(null==A?void 0:A.testPassThrough)?"100px":"80px"}},"测试完成",1===(null==A?void 0:A.testPassThrough)?fe.default.createElement("img",{src:Jn,alt:""}):""):"",i&&2===(null==A?void 0:A.testPassThrough)&&fe.default.createElement(at.default,{placement:"leftTop",title:fe.default.createElement("div",{style:{display:"flex",flexDirection:"column"}},fe.default.createElement("span",{style:{fontWeight:"bold"}},"确定开始测试吗?")),onConfirm:function(){return B("测试开始")},okText:"开始",cancelText:"取消"},fe.default.createElement("div",{className:aD.passBut,style:{width:"80px"}},"测试开始")),!i&&2===(null==A?void 0:A.testPassThrough)&&fe.default.createElement("div",{className:ve.default(aD.passBut,aD.butNo),style:{width:1===(null==A?void 0:A.testPassThrough)?"100px":"80px"}},"测试开始",1===(null==A?void 0:A.testPassThrough)?fe.default.createElement("img",{src:Jn,alt:""}):""),fe.default.createElement(Ee.default,{className:aD.shareBut,onClick:a},fe.default.createElement("img",{src:qn,alt:""}),"分享")),fe.default.createElement("div",1===(null==A?void 0:A.testPassThrough)?{className:ve.default(aD.nextButton),onClick:function(){1===(null==A?void 0:A.testPassThrough)&&n(Zt[1],"nextStep")}}:{className:ve.default(aD.nextButton,aD.butNo)},"下一步:上线程序包")),fe.default.createElement(bD,{taskId:d,packageType:g,deployMachineCode:c})):fe.default.createElement(wD,{text:"暂无待上线的版本",text1:"请前往程序预览页执行",pageName:"部署",setRouter:function(){return o("/programStructure")}}))}),BD=n.connect(function(e){return{app:e.app,seting:e.seting,programPackage:e.programPackage}})(function(e){var t=e.dispatch,n=e.openVisibleShare,o=e.setIframeUpdate,a=e.onTab,i=e.app.applicationId,l=e.seting,s=l.cloudGameTask,A=l.newCloudGameTask,c=Mt(r.useState({}),2),u=c[0],d=c[1];r.useEffect(function(){p();var e=null;return e&&(clearInterval(e),e=null),e=setInterval(function(){null===A?(clearInterval(e),e=null):p()},5e4),function(){clearInterval(e),e=null}},[]);var p=function(){t({type:"seting/getQueryPackageDeployList",payload:{applicationId:i,queryType:1,type:"pro"},callback:function(e){var t;o(null==e||null===(t=e.cloudGameTask)||void 0===t?void 0:t.taskId,"pro"),Yr.emit("getCloudData");try{d(null==e?void 0:e.newCloudGameTask)}catch(e){}}})};return fe.default.createElement(fe.default.Fragment,null,s||u?fe.default.createElement(fe.default.Fragment,null,fe.default.createElement("div",{className:aD.fileBox},(4===(null==u?void 0:u.status)||5===(null==u?void 0:u.status)||1===(null==u?void 0:u.status)||3===(null==u?void 0:u.status)||7===(null==u?void 0:u.status))&&fe.default.createElement("div",{className:aD.versionLading},fe.default.createElement("div",null,fe.default.createElement("img",{src:Zn,alt:"",className:aD.loading}),fe.default.createElement("span",{className:aD.projectName},"".concat(null==u?void 0:u.projectName).concat(null==u?void 0:u.version))),4===(null==u?void 0:u.status)&&fe.default.createElement("span",{className:aD.but},"排队中"),5===(null==u?void 0:u.status)&&fe.default.createElement("span",{className:aD.but},"传输中"),1===(null==u?void 0:u.status)&&fe.default.createElement("span",{className:aD.but},"构建中"),3===(null==u?void 0:u.status)&&fe.default.createElement("span",{className:"".concat(aD.but," ").concat(aD.err)},"构建失败"),7===(null==u?void 0:u.status)&&fe.default.createElement("span",{className:"".concat(aD.but," ").concat(aD.err)},"传输失败")),fe.default.createElement("div",{className:aD.title},"线上程序包:"),fe.default.createElement("div",{className:aD.flieInfo,style:{cursor:"pointer"}},fe.default.createElement("div",{className:aD.fileContent},fe.default.createElement("img",{src:Xn,alt:""}),s?fe.default.createElement("div",{title:"".concat(null==s?void 0:s.projectName).concat(null==s?void 0:s.version),className:aD.projectName},"".concat(null==s?void 0:s.projectName).concat(null==s?void 0:s.version)):fe.default.createElement("div",{className:aD.projectName},"无数据"))),fe.default.createElement("div",{className:aD.buttonBox,id:"burBox"},fe.default.createElement(Ee.default,{className:aD.shareBut,onClick:n},fe.default.createElement("img",{src:qn,alt:""}),"分享"))),fe.default.createElement(bD,{taskId:null==s?void 0:s.taskId,packageType:null==s?void 0:s.packageType,deployMachineCode:""})):fe.default.createElement(wD,{text:"暂无待上线的生产版本",setRouter:function(){return a(Zt[0])}}))}),CD=n.connect(function(e){return{app:e.app,seting:e.seting,programPackage:e.programPackage}})(function(e){var t=e.dispatch,n=e.onTab,o=e.activeTabKey,a=e.app,i=a.userData,l=a.projectId,A=e.seting.isVisibleShare,c=Mt(r.useState(!1),2),u=c[0],d=c[1],p=Mt(r.useState(!1),2),f=p[0],g=p[1];r.useEffect(function(){var e=i.projectRoleAuthority,t=null;e&&e.forEach(function(e){if(e.projectId===l){var n=e.userRoleResVOList;t=n.length>0&&n[0].roleCode}}),h(null==i?void 0:i.roleCode,t)},[]);var h=function(e,t){"tester"!==e&&"super_administrator"!==e&&"manager"!==t||d(!0),"super_administrator"!==e&&"manager"!==t||g(!0)},m=function(){var e=document.getElementById("burBox").offsetTop;t({type:"seting/updateState",payload:{isVisibleShare:!A,shareTopVal:e}})},_=function(e,n){t({type:"seting/updateState",payload:{isPageOKTaskId:e,iframeType:n}})};return fe.default.createElement(fe.default.Fragment,null,"onTest"===o?fe.default.createElement(xD,{onTab:n,isTestRole:u,setIframeUpdate:_,openVisibleShare:m,setRouter:function(t){return function(t){e.dispatch(s.routerRedux.push({pathname:t}))}(t)}}):fe.default.createElement(BD,{onTab:n,isProRole:f,setIframeUpdate:_,openVisibleShare:m}))}),ED="inLineVersion_inLineVersion__329Rw",kD="inLineVersion_stepTitle__TvOLl",ID="inLineVersion_arrows__1zM1E",SD="inLineVersion_hide__3hhxe",FD="inLineVersion_fileBox__1E2Nj",PD="inLineVersion_historyList__2LUCC";Rt(".inLineVersion_inLineVersion__329Rw{box-sizing:border-box;height:calc(100% - 70px);padding:14px}.inLineVersion_inLineVersion__329Rw .inLineVersion_stepTitle__TvOLl{display:flex;align-items:flex-end;color:#000f2c;font-weight:400;font-size:12px;font-style:normal;line-height:20px;cursor:pointer;opacity:.6}.inLineVersion_inLineVersion__329Rw .inLineVersion_arrows__1zM1E{display:inline-block;width:8px;height:6px;margin-left:6px;border:6px solid transparent;border-top-color:rgba(0,15,44,.3)}.inLineVersion_inLineVersion__329Rw .inLineVersion_hide__3hhxe{align-items:flex-start!important}.inLineVersion_inLineVersion__329Rw .inLineVersion_hide__3hhxe .inLineVersion_arrows__1zM1E{transform:rotate(180deg)}.inLineVersion_inLineVersion__329Rw .inLineVersion_fileBox__1E2Nj{display:flex;align-items:center;box-sizing:border-box;width:282px;height:65px;margin:5px 0 27px;padding:0 12px;border:1px solid #abb1c0;border-radius:4px}.inLineVersion_inLineVersion__329Rw .inLineVersion_fileBox__1E2Nj>img{width:30px;height:25.38px;margin-right:14px}.inLineVersion_inLineVersion__329Rw .inLineVersion_fileBox__1E2Nj>div{width:210px;overflow:hidden;color:#000f2c;font-weight:400;font-size:12px;font-family:Noto Sans SC;font-style:normal;line-height:17px;white-space:nowrap;text-overflow:ellipsis}.inLineVersion_inLineVersion__329Rw .inLineVersion_historyList__2LUCC{height:calc(100% - 142px);overflow-y:scroll}.inLineVersion_inLineVersion__329Rw .inLineVersion_historyList__2LUCC::-webkit-scrollbar{width:0;height:0}.inLineVersion_noData__2mAdn{width:100%;height:100%;background-color:#fff}.inLineVersion_noData__2mAdn .inLineVersion_noDataText__3SPI0{color:#9da1aa}");var LD="historyList_historyBox__1c5Ec",UD="historyList_item__n8PB0",QD="historyList_titles__JK1Zt",ND="historyList_title__uciff",MD="historyList_current__3t4mK",DD="historyList_fileState__2jQ7T",TD="historyList_backVersion__j4fUW",OD="historyList_info__OgjM4",HD="historyList_dateTime__3q_3t",RD="historyList_noData__1JfRx",VD="historyList_noDataText__3Y75m";Rt('.historyList_historyBox__1c5Ec{margin:12px 0 20px}.historyList_historyBox__1c5Ec .historyList_item__n8PB0{box-sizing:border-box;margin-bottom:12px;background:#fcfcfc;border:1px solid #d9d9d9;border-radius:4px}.historyList_historyBox__1c5Ec .historyList_item__n8PB0 .historyList_titles__JK1Zt{display:flex;align-items:center;justify-content:space-between;height:42px;border-bottom:1px solid #d9d9d9}.historyList_historyBox__1c5Ec .historyList_item__n8PB0 .historyList_titles__JK1Zt .historyList_title__uciff{color:#000f2c;font-weight:400;font-size:12px;font-family:Noto Sans SC;font-style:normal;line-height:17px}.historyList_historyBox__1c5Ec .historyList_item__n8PB0 .historyList_titles__JK1Zt .historyList_title__uciff:before{margin-right:13px;color:#d9d9d9;background:#d9d9d9;border-radius:4px;content:"|"}.historyList_historyBox__1c5Ec .historyList_item__n8PB0 .historyList_titles__JK1Zt .historyList_current__3t4mK:before{color:#397bff!important;background:#397bff!important}.historyList_historyBox__1c5Ec .historyList_item__n8PB0 .historyList_titles__JK1Zt .historyList_fileState__2jQ7T{display:flex;flex-direction:row;align-items:center;margin-right:10px;padding:2px 6px;color:#23c16b;font-weight:600;font-size:12px;font-family:PingFang SC;font-style:normal;line-height:17px;background:rgba(35,193,107,.1);border-radius:4px}.historyList_historyBox__1c5Ec .historyList_item__n8PB0 .historyList_titles__JK1Zt .historyList_backVersion__j4fUW{display:flex;flex-direction:row;align-items:center;margin-right:10px;padding:2px 6px;color:#397bff;font-weight:600;font-size:12px;font-family:PingFang SC;font-style:normal;line-height:17px;background:rgba(57,123,255,.1);border-radius:4px;cursor:pointer}.historyList_historyBox__1c5Ec .historyList_item__n8PB0 .historyList_info__OgjM4{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-around;box-sizing:border-box;padding:12px 10px 19px}.historyList_historyBox__1c5Ec .historyList_item__n8PB0 .historyList_info__OgjM4>div{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;width:100%;white-space:nowrap}.historyList_historyBox__1c5Ec .historyList_item__n8PB0 .historyList_info__OgjM4>div .historyList_dateTime__3q_3t{margin-right:8px;margin-left:8px;color:#121c2b;font-weight:400;font-size:12px;font-style:normal;line-height:17px;opacity:.6}.historyList_historyBox__1c5Ec .historyList_item__n8PB0 .historyList_info__OgjM4>div:first-child{margin-bottom:10px}.historyList_historyBox__1c5Ec .historyList_noData__1JfRx{width:100%;height:100%;background-color:#fff}.historyList_historyBox__1c5Ec .historyList_noData__1JfRx .historyList_noDataText__3Y75m{color:rgba(0,0,0,.25)}.ant-modal-confirm-btns>.ant-btn-primary{color:#fff!important}');var jD=be.default.confirm,zD=function(e){function t(e){var n;return bt(this,t),(n=yt(this,t,[e])).setBackVersion=function(e,t){var r=n.props,o=r.getHistory,a=r.app.applicationId,i=n;jD({title:"确定要回滚".concat(t,"版本程序包吗?"),onOk:function(){i.props.dispatch({type:"seting/useCloudGame",payload:{taskId:e}}).then(function(e){o(),i.props.dispatch({type:"seting/getQueryPackageDeployList",payload:{applicationId:a,queryType:1,type:"pro"}})})},onCancel:function(){console.log("Cancel")}})},n.state={historyList:[]},n}return It(t,e),xt(t,[{key:"render",value:function(){var e=this,t=this.props.seting.historyList;return fe.default.createElement("div",{className:LD},(null==t?void 0:t.length)>0?t.map(function(t,n){var r;return fe.default.createElement("div",{className:UD,key:n},fe.default.createElement("div",{className:QD},fe.default.createElement("span",{className:ve.default(ND,1===t.lineFlag?MD:"")},null==t?void 0:t.taskName),1===(null==t?void 0:t.lineFlag)?fe.default.createElement("span",{className:DD},"线上版本"):fe.default.createElement("span",{className:TD,onClick:function(){return e.setBackVersion(null==t?void 0:t.taskId,null==t?void 0:t.taskName)}},"回滚")),fe.default.createElement("div",{className:OD},null==t||null===(r=t.objectResponseList)||void 0===r?void 0:r.map(function(e,t){return fe.default.createElement("div",{key:t},fe.default.createElement("span",null,e.operationContent),fe.default.createElement("div",{className:HD},e.createrTime))})),fe.default.createElement("div",null))}):fe.default.createElement("div",{className:RD},fe.default.createElement(Qe.default,{description:fe.default.createElement("span",{className:VD},"暂无数据")})))}}])}(r.Component),GD=n.connect(function(e){return{app:e.app,seting:e.seting}})(zD);var KD=n.connect(function(e){return{app:e.app,seting:e.seting}})(function(e){var t=e.dispatch,n=e.app.applicationId,o=e.seting,a=o.cloudGameTask,i=o.sceneId,l=Mt(r.useState(!0),2),s=l[0],A=l[1];r.useEffect(function(){(null==a?void 0:a.taskId)&&u(null==a?void 0:a.taskId),c()},[]);var c=function(){t({type:"seting/getQueryOperationLog",payload:{sceneId:i,applicationId:n}})},u=function(e){t({type:"seting/updateState",payload:{isPageOKTaskId:e,iframeType:"pro"}})};return fe.default.createElement("div",{className:ED},fe.default.createElement(fe.default.Fragment,null,fe.default.createElement("div",{className:kD},"线上程序包:"),fe.default.createElement("div",{className:FD},fe.default.createElement("img",{src:Xn,alt:""}),fe.default.createElement("div",null,null===a?"无线上程序包":"".concat(null==a?void 0:a.projectName).concat(null==a?void 0:a.version))),fe.default.createElement("div",{className:ve.default(kD,s&&SD),onClick:function(){return A(!s)}},"历史记录",fe.default.createElement("i",{className:ID})),s&&fe.default.createElement("div",{className:PD},fe.default.createElement(GD,{getHistory:c}))))}),WD=be.default.confirm;var YD=n.connect(function(e){return{app:e.app,seting:e.seting}})(function(e){var t=e.seting,n=t.cloudGameTask,o=t.currentTaskPageData,a=e.app,i=a.applicationId,l=a.applicationName,s=e.handleLogClose,A=e.dispatch,c=Ye.default.TabPane,u=Mt(r.useState(Zt[0]),2),d=u[0],p=u[1],f=Mt(r.useState("1"),2),g=f[0],h=f[1];function m(e){"nextStep"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"")?WD({title:"确定上线程序吗?",content:"该程序包发布后,会覆盖原有的线上版本。",okText:"确定",cancelText:"取消",onOk:function(){A({type:"seting/startMakingCloudGame",payload:Pt({},{applicationId:i,applicationName:l,packageType:"PROD",taskId:null==o?void 0:o.taskId})}).then(function(t){console.log("开始制作回调",t),void 0!==t&&A({type:"seting/getQueryPackageDeployList",payload:{applicationId:i,queryType:1,type:"test"},callback:function(){p(e)}})})},onCancel:function(){console.log("Cancel")}}):p(e)}return r.useEffect(function(){},[]),fe.default.createElement("div",{className:oD.rightBox},fe.default.createElement(Ye.default,{defaultActiveKey:"1",onChange:function(e){h(e),"2"===e&&A({type:"seting/updateProgramRead",payload:{taskId:null==n?void 0:n.taskId}}).then(function(){A({type:"seting/getQueryPackageDeployList",payload:{applicationId:i,queryType:1,type:"pro"}})})}},fe.default.createElement(c,{tab:"待上线版本",key:"1"}),fe.default.createElement(c,{tab:1===(null==n?void 0:n.releaseFlag)?fe.default.createElement(we.default,{dot:!0},"线上版本 "):"线上版本",key:"2"})),"1"===g?fe.default.createElement("div",{className:oD.willInLine},fe.default.createElement("div",{className:oD.configurationPanel},fe.default.createElement("div",{className:oD.configTabList},Zt.map(function(e,t){return fe.default.createElement("div",{key:e.key,className:ve.default(oD.configTabItem,Ct({},oD.active,e.key===d.key)),onClick:function(){return m(e)}},fe.default.createElement("span",null,t+1),fe.default.createElement("div",{className:oD.tabName},e.name),t===Zt.length-1?"":fe.default.createElement("div",{className:oD.divider}))}))),fe.default.createElement("div",{className:oD.contentBox},fe.default.createElement(CD,{activeTabKey:d.key,onTab:function(e){return m(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"")},handleLogClose:s}))):fe.default.createElement(KD,null))}),XD="share_shareBox__3WAwM",qD="share_header__3MZ48",JD="share_flex__3zh7N",ZD="share_item__3s7bG",$D="share_content__2WfhJ",eT="share_itemTitle__3M7r2",tT="share_urlBox__3kA85",nT="share_urlText__1khjU",rT="share_code__1bqxC",oT="share_upLoadImgH5__3IIHy",aT="share_upLoadImgWX__3pX_Z",iT="share_uploadButton__WzvXu",lT="share_link__-ekKu",sT="share_submitBut__N-yPG",AT="share_flexEnd__cKl55";Rt(".share_shareBox__3WAwM{width:371px;height:696px;background:#fff;box-shadow:0 4px 4px rgba(0,0,0,.25);transform-origin:371px 0}.share_shareBox__3WAwM .share_header__3MZ48{display:flex;align-items:center;justify-content:space-between;width:371px;height:54px;padding:0 21px 0 28px;background:#fff;box-shadow:inset 0 -1px 0 #f0f0f0}.share_shareBox__3WAwM .share_header__3MZ48 span{color:rgba(0,0,0,.85);font-weight:600;font-size:14px;font-family:PingFang SC;font-style:normal;line-height:20px}.share_shareBox__3WAwM .share_header__3MZ48 img{width:12px;height:12px;cursor:pointer}.share_shareBox__3WAwM .share_header__3MZ48 img:hover{opacity:.7}.share_shareBox__3WAwM .share_flex__3zh7N{display:flex}.share_shareBox__3WAwM .share_flex__3zh7N .share_item__3s7bG{margin-right:40px}.share_shareBox__3WAwM .share_content__2WfhJ{height:630px;padding:22px;overflow-y:scroll}.share_shareBox__3WAwM .share_content__2WfhJ .share_item__3s7bG{margin-bottom:32px}.share_shareBox__3WAwM .share_content__2WfhJ .share_item__3s7bG .share_itemTitle__3M7r2{margin-bottom:8px}.share_shareBox__3WAwM .share_content__2WfhJ .share_item__3s7bG p:first-child{color:#000;font-weight:600;font-size:16px;font-family:PingFang SC;font-style:normal;line-height:20px}.share_shareBox__3WAwM .share_content__2WfhJ .share_item__3s7bG p:nth-child(2){margin:9px 0 12px;color:#000f2c;font-weight:400;font-size:12px;font-style:normal;line-height:20px;opacity:.6}.share_shareBox__3WAwM .share_content__2WfhJ .share_item__3s7bG .share_urlBox__3kA85{display:flex;align-items:center;box-sizing:border-box;width:327px;height:40px;margin-top:12px;margin-bottom:29px;overflow:hidden}.share_shareBox__3WAwM .share_content__2WfhJ .share_item__3s7bG .share_urlBox__3kA85 .share_urlText__1khjU{display:flex;align-items:center;box-sizing:border-box;width:246px;height:100%;padding:4px;overflow:hidden;color:#121c2b;white-space:nowrap;text-overflow:ellipsis;border:1px solid #abb1c0;border-radius:4px 0 0 4px}.share_shareBox__3WAwM .share_content__2WfhJ .share_item__3s7bG .share_urlBox__3kA85>span{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:80.75px;height:100%;color:#fff;font-weight:400;font-size:14px;font-family:PingFang SC;font-style:normal;line-height:20px;background:#3465e3;border-radius:0 4px 4px 0}.share_shareBox__3WAwM .share_content__2WfhJ .share_item__3s7bG .share_code__1bqxC{display:flex;align-items:center;justify-content:center;width:160px;height:160px;border:1px solid #abb1c0;border-radius:10px}.share_shareBox__3WAwM .share_content__2WfhJ .share_item__3s7bG .share_upLoadImgH5__3IIHy{width:64px;height:64px;margin-top:8px}.share_shareBox__3WAwM .share_content__2WfhJ .share_item__3s7bG .share_upLoadImgH5__3IIHy .ant-upload-list-picture-card .ant-upload-list-item{padding:0}.share_shareBox__3WAwM .share_content__2WfhJ .share_item__3s7bG .share_upLoadImgH5__3IIHy .ant-upload-list-picture-card-container,.share_shareBox__3WAwM .share_content__2WfhJ .share_item__3s7bG .share_upLoadImgH5__3IIHy .ant-upload.ant-upload-select-picture-card{width:64px!important;height:64px!important}.share_shareBox__3WAwM .share_content__2WfhJ .share_item__3s7bG .share_upLoadImgWX__3pX_Z{width:80px;height:64px;margin-top:8px}.share_shareBox__3WAwM .share_content__2WfhJ .share_item__3s7bG .share_upLoadImgWX__3pX_Z .ant-upload-list-picture-card .ant-upload-list-item{padding:0}.share_shareBox__3WAwM .share_content__2WfhJ .share_item__3s7bG .share_upLoadImgWX__3pX_Z .ant-upload-list-picture-card-container,.share_shareBox__3WAwM .share_content__2WfhJ .share_item__3s7bG .share_upLoadImgWX__3pX_Z .ant-upload.ant-upload-select-picture-card{width:80px;height:64px}.share_shareBox__3WAwM .share_uploadButton__WzvXu{color:#717d99;font-weight:400;font-size:13px;font-family:PingFang SC;font-style:normal}.share_shareBox__3WAwM .share_link__-ekKu{width:100%;height:2px;margin:10px 0;background-color:#f0f2f5}.share_shareBox__3WAwM .share_submitBut__N-yPG{display:inline-block;width:60px;height:32px;color:#fff;font-weight:400;font-size:14px;font-style:normal;line-height:32px;text-align:center;background:#3465e3;border-radius:4px;cursor:pointer}.share_shareBox__3WAwM .share_submitBut__N-yPG:hover{opacity:.8}.share_shareBox__3WAwM .share_flexEnd__cKl55{display:flex;align-items:flex-end;justify-content:flex-end}");var cT="".concat(Jo().BASEURL,"/api");function uT(e){return dT.apply(this,arguments)}function dT(){return(dT=vt(Ut().m(function e(t){return Ut().w(function(e){for(;;)if(0===e.n)return e.a(2,ra({url:cT+"/vbim-parking-server/testOnline/queryPackageDeployList",method:"post",data:t}))},e)}))).apply(this,arguments)}function pT(e){return fT.apply(this,arguments)}function fT(){return(fT=vt(Ut().m(function e(t){return Ut().w(function(e){for(;;)if(0===e.n)return e.a(2,ra({url:cT+"/vbim-parking-server/testOnline/saveCloudGameInfo",method:"post",data:t}))},e)}))).apply(this,arguments)}function gT(e){return hT.apply(this,arguments)}function hT(){return(hT=vt(Ut().m(function e(t){return Ut().w(function(e){for(;;)if(0===e.n)return e.a(2,ra({url:cT+"/vbim-scene-server/sceneProgram/publishConfirm",method:"post",data:t}))},e)}))).apply(this,arguments)}function mT(e){return _T.apply(this,arguments)}function _T(){return(_T=vt(Ut().m(function e(t){return Ut().w(function(e){for(;;)if(0===e.n)return e.a(2,ra({url:cT+"/vbim-scene-server/sceneProgram/testConfirmation",method:"post",data:t}))},e)}))).apply(this,arguments)}function vT(e){return yT.apply(this,arguments)}function yT(){return(yT=vt(Ut().m(function e(t){return Ut().w(function(e){for(;;)if(0===e.n)return e.a(2,ra({url:cT+"/vbim-parking-server/testOnline/queryCloudResource",method:"post",data:t}))},e)}))).apply(this,arguments)}function bT(){return wT.apply(this,arguments)}function wT(){return wT=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-scene-server/sceneProgram/queryOperationLog"),method:"post",data:t}))},e)})),wT.apply(this,arguments)}function xT(e){return BT.apply(this,arguments)}function BT(){return(BT=vt(Ut().m(function e(t){return Ut().w(function(e){for(;;)if(0===e.n)return e.a(2,ra({url:"".concat(cT,"/vbim-parking-server/deploy/publishCloudGame?taskId=").concat(null==t?void 0:t.taskId,"&t=").concat((new Date).getTime()),method:"GET"}))},e)}))).apply(this,arguments)}function CT(){return ET.apply(this,arguments)}function ET(){return ET=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-scene-server/countersign/createOpinionId"),method:"post",data:t}))},e)})),ET.apply(this,arguments)}function kT(){return IT.apply(this,arguments)}function IT(){return IT=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-scene-server/user/projectUserList"),method:"post",data:t}))},e)})),IT.apply(this,arguments)}function ST(){return FT.apply(this,arguments)}function FT(){return FT=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-scene-server/countersign/opinionList"),method:"post",data:t}))},e)})),FT.apply(this,arguments)}function PT(){return LT.apply(this,arguments)}function LT(){return LT=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-scene-server/countersign/stopCountersign"),method:"post",data:t}))},e)})),LT.apply(this,arguments)}function UT(){return QT.apply(this,arguments)}function QT(){return QT=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-scene-server/countersign/openCountersign"),method:"post",data:t}))},e)})),QT.apply(this,arguments)}function NT(){return MT.apply(this,arguments)}function MT(){return MT=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-scene-server/countersign/shareLink"),method:"post",data:t}))},e)})),MT.apply(this,arguments)}function DT(){return TT.apply(this,arguments)}function TT(){return TT=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-scene-server/countersign/modifySceneEndTime"),method:"post",data:t}))},e)})),TT.apply(this,arguments)}function OT(){return HT.apply(this,arguments)}function HT(){return HT=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-scene-server/countersign/addComment"),method:"post",data:t}))},e)})),HT.apply(this,arguments)}function RT(){return VT.apply(this,arguments)}function VT(){return VT=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-scene-server/countersign/deleteCountersign"),method:"post",data:t}))},e)})),VT.apply(this,arguments)}function jT(){return zT.apply(this,arguments)}function zT(){return zT=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-scene-server/countersign/modifyOpinionStatus"),method:"post",data:t}))},e)})),zT.apply(this,arguments)}function GT(){return KT.apply(this,arguments)}function KT(){return KT=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-scene-server/countersign/editCountersign"),method:"post",data:t}))},e)})),KT.apply(this,arguments)}function WT(){return YT.apply(this,arguments)}function YT(){return YT=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-scene-server/countersign/addCountersign"),method:"post",data:t}))},e)})),YT.apply(this,arguments)}function XT(){return qT.apply(this,arguments)}function qT(){return(qT=vt(Ut().m(function e(){return Ut().w(function(e){for(;;)if(0===e.n)return e.a(2,ra({url:"".concat(cT,"/vbim-scene-server/file/fileUploadAppInfo"),method:"get"}))},e)}))).apply(this,arguments)}function JT(){return ZT.apply(this,arguments)}function ZT(){return ZT=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-file-server/auther/accessToken?appId=").concat(t.appId,"&appToken=").concat(t.appToken),method:"get"}))},e)})),ZT.apply(this,arguments)}function $T(){return eO.apply(this,arguments)}function eO(){return eO=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-parking-server/testOnline/updateProgramVersion"),method:"post",data:t}))},e)})),eO.apply(this,arguments)}function tO(){return nO.apply(this,arguments)}function nO(){return nO=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-parking-server/programPackage/updateProgramRead"),method:"post",data:t}))},e)})),nO.apply(this,arguments)}function rO(){return oO.apply(this,arguments)}function oO(){return oO=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-parking-server/file/queryUploadFileProcess"),method:"post",data:t}))},e)})),oO.apply(this,arguments)}function aO(){return aO=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-parking-server/app/saveOrUpdateWxShareContent"),method:"post",data:t}))},e)})),aO.apply(this,arguments)}function iO(){return iO=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-parking-server/app/queryWxShareContent?applicationId=").concat(t,"&t=").concat((new Date).getTime()),method:"GET"}))},e)})),iO.apply(this,arguments)}function lO(){return sO.apply(this,arguments)}function sO(){return sO=vt(Ut().m(function e(){var t,n=arguments;return Ut().w(function(e){for(;;)if(0===e.n)return t=n.length>0&&void 0!==n[0]?n[0]:{},e.a(2,ra({url:"".concat(cT,"/vbim-parking-server/sourceMaterial/startMakingCloudGame"),method:"post",data:t}))},e)})),sO.apply(this,arguments)}var AO=He.default.TextArea,cO=function(e){function t(e){var n;return bt(this,t),(n=yt(this,t,[e])).closeVisibleShare=function(){n.props.dispatch({type:"seting/updateState",payload:{isVisibleShare:!1}})},n.onSuccess=function(){de.default.info("复制成功!")},n.getWXshare=function(){(function(){return iO.apply(this,arguments)})(n.props.app.applicationId).then(function(e){var t;if(200===(null==e||null===(t=e.data)||void 0===t?void 0:t.code)){var r,o=null==e||null===(r=e.data)||void 0===r?void 0:r.value;if(o){var a=[],i=[];i.push({url:null==o?void 0:o.thumbnailUrl}),a.push({url:null==o?void 0:o.h5ShareImageUrl}),n.setState({WXImg:i,h5Img:a,title:null==o?void 0:o.title,content:null==o?void 0:o.content})}}})},n.getOBSDeployInfo=function(){uT({applicationId:n.props.app.applicationId,queryType:1}).then(function(e){var t,r,o,a=null==e||null===(t=e.data)||void 0===t||null===(r=t.value)||void 0===r?void 0:r.cloudGameTask;200===(null==e||null===(o=e.data)||void 0===o?void 0:o.code)&&a&&n.setState({obsDownloadUrl:a.obsDownloadUrl||""})})},n.beforeUpload=function(e,t){if("image/jpeg"===t.type||"image/png"===t.type)return n.uploadFile(e,t),!1;de.default.info("图片格式不正确!")},n.uploadFile=function(){var e=vt(Ut().m(function e(t,r){var o;return Ut().w(function(e){for(;;)switch(e.n){case 0:(o=new FormData).append("file",r),n.props.dispatch({type:"app/uploadFileMult",payload:o}).then(function(e){var r=[];r.push({url:null==e?void 0:e.fileAccessUrl}),console.log(r),"h5"===t?n.setState({h5Img:r}):"wx"===t&&n.setState({WXImg:r})});case 1:return e.a(2)}},e)}));return function(t,n){return e.apply(this,arguments)}}(),n.handleSubmit=function(){var e,t,r=n.state;(function(){return aO.apply(this,arguments)})({applicationId:n.props.app.applicationId,thumbnailUrl:null===(e=r.WXImg[0])||void 0===e?void 0:e.url,h5ShareImageUrl:null===(t=r.h5Img[0])||void 0===t?void 0:t.url,title:r.title,content:r.content}).then(function(e){var t,n,r;200===(null==e||null===(t=e.data)||void 0===t?void 0:t.code)?de.default.success(null==e||null===(n=e.data)||void 0===n?void 0:n.message):de.default.error(null==e||null===(r=e.data)||void 0===r?void 0:r.message)})},n.removeCoverImgFile=function(e,t){n.setState("h5"===e?{h5Img:[]}:{WXImg:[]})},n.handleValue=function(e,t){console.log(e,t),n.setState(Ct({},t,e.target.value))},n.state={parkingUrl:"",h5Img:[],WXImg:[],title:"",content:"",obsDownloadUrl:""},n}return It(t,e),xt(t,[{key:"componentDidMount",value:(n=vt(Ut().m(function e(){return Ut().w(function(e){for(;;)switch(e.n){case 0:return this.setState({parkingUrl:this.props.parkingUrl}),this.getOBSDeployInfo(),e.n=1,this.getWXshare();case 1:return e.a(2)}},e,this)})),function(){return n.apply(this,arguments)})},{key:"render",value:function(){var e=this,t=this.state,n=t.WXImg,r=t.parkingUrl,o=t.h5Img,a=t.title,i=t.content,l=t.obsDownloadUrl;return fe.default.createElement("div",{className:XD},fe.default.createElement("div",{className:qD},fe.default.createElement("span",null,"分享"),fe.default.createElement("img",{src:Cn,alt:"",onClick:this.closeVisibleShare})),fe.default.createElement("div",{className:$D},fe.default.createElement("div",{className:JD},fe.default.createElement("div",{className:ZD},fe.default.createElement("p",null,"H5分享图"),fe.default.createElement("div",{className:oT},fe.default.createElement(Ue.default,{accept:".jpg,.png",listType:"picture-card",fileList:o,showUploadList:{showRemoveIcon:!0,showPreviewIcon:!1},beforeUpload:function(t){return e.beforeUpload("h5",t)},onRemove:function(t){return e.removeCoverImgFile("h5",t)}},1>o.length?fe.default.createElement("div",{className:iT},"上传照片"):null))),fe.default.createElement("div",{className:ZD},fe.default.createElement("p",null,"小程序分享图"),fe.default.createElement("div",{className:aT},fe.default.createElement(Ue.default,{accept:".jpg,.png",listType:"picture-card",fileList:n,showUploadList:{showRemoveIcon:!0,showPreviewIcon:!1},beforeUpload:function(t){return e.beforeUpload("wx",t)},onRemove:this.removeCoverImgFile},1>n.length?fe.default.createElement("div",{className:iT},"上传照片"):null)))),fe.default.createElement("div",{className:ZD},fe.default.createElement("p",{className:eT},"分享标题"),fe.default.createElement(He.default,{placeholder:"输入分享标题",value:a,onChange:function(t){return e.handleValue(t,"title")}})),fe.default.createElement("div",{className:ZD},fe.default.createElement("p",{className:eT},"分享内容"),fe.default.createElement(AO,{placeholder:"输入分享内容",value:i,onChange:function(t){return e.handleValue(t,"content")}})),fe.default.createElement("div",{className:AT},fe.default.createElement("span",{className:sT,onClick:this.handleSubmit},"保存")),fe.default.createElement("div",{className:lT}),fe.default.createElement("div",{className:ZD},fe.default.createElement("p",null,"OBS部署信息"),fe.default.createElement("p",null,"复制OBS部署链接"),fe.default.createElement("div",{className:tT},fe.default.createElement("div",{className:nT,title:l},l),fe.default.createElement(Yb,{"data-clipboard-text":l,component:"span",onSuccess:this.onSuccess},"复制链接"))),fe.default.createElement("div",{className:ZD},fe.default.createElement("p",null,"链接查看"),fe.default.createElement("p",null,"复制链接打开查看"),fe.default.createElement("div",{className:tT},fe.default.createElement("div",{className:nT},r),fe.default.createElement(Yb,{"data-clipboard-text":r,component:"span",onSuccess:this.onSuccess},"复制链接"))),fe.default.createElement("div",{className:ZD},fe.default.createElement("p",null,"扫码查看"),fe.default.createElement("p",null,"请扫描二维码在移动端查看"),fe.default.createElement("div",{className:rT},fe.default.createElement(Pb,{value:r,size:150,fgColor:"#000000"})))))}}]);var n}(r.Component),uO=n.connect(function(e){return{app:e.app,seting:e.seting}})(cO),dO={datePicker:"header_datePicker__FVUvc",dropdownClassName:"header_dropdownClassName__3qXww",disabled:"header_disabled__2mjdx",headerContainer:"header_headerContainer__VboDf",managerClass:"header_managerClass__1PqZt",headerTitle:"header_headerTitle__mSNzr",titleLeft:"header_titleLeft__3ep_2",titleright:"header_titleright__2TczR",titlerightTime:"header_titlerightTime__41pYL",titlerightName:"header_titlerightName__3TGbV",headerMiddle:"header_headerMiddle__2n29p",headerBottom:"header_headerBottom__3nDcz",infoContainer:"header_infoContainer__mQasp",flexCenter:"header_flexCenter__3B1a1",userImg:"header_userImg__3xWjR",userName:"header_userName__3lohR",userAccount:"header_userAccount__4x1RT",userNumber:"header_userNumber__2qSZz",operateBtnBox:"header_operateBtnBox__2KA0v",operateBtn1:"header_operateBtn1__McV4Z",operateBtn_open:"header_operateBtn_open__2IIVM",endBtnDisabled:"header_endBtnDisabled__qsoaK",operateBtn2:"header_operateBtn2__2K-pK",operateBtn3:"header_operateBtn3__3CDj_",setTimeBox:"header_setTimeBox__199cp",setTimeWord:"header_setTimeWord__1ZIrq",shareBox:"header_shareBox__2N7Xt",shareBoxLink:"header_shareBoxLink__2cYZ2",shareBoxTime:"header_shareBoxTime__PNj-t",antdModalClass:"header_antdModalClass__1qYB9"};Rt(".header_datePicker__FVUvc .ant-picker-panel-container{position:relative;top:44px;left:11px;width:276px}.header_dropdownClassName__3qXww::-webkit-scrollbar{width:2px}.header_disabled__2mjdx{cursor:no-drop!important}.header_headerContainer__VboDf{box-sizing:border-box;width:100%;height:146px;padding:12px 12px 10px;background:#fff}.header_managerClass__1PqZt{height:182px!important}.header_headerTitle__mSNzr{display:flex;align-items:flex-start;justify-content:left}.header_titleLeft__3ep_2{color:#121c2b;font-weight:600;font-size:13px;font-family:PingFang SC;font-style:normal;line-height:18px}.header_titleright__2TczR{display:flex;flex-direction:column;align-items:flex-start;justify-content:left}.header_titlerightTime__41pYL{margin-right:10px;color:#8d99a5;font-weight:400;font-size:12px;font-family:PingFang SC;font-style:normal;line-height:17px}.header_titlerightName__3TGbV{width:20px;height:20px;margin-right:12px;border-radius:50%;cursor:pointer}.header_headerMiddle__2n29p{display:flex;align-items:center;justify-content:center;width:100%;height:34px;margin-top:12px;background:#f0f2f5;border-radius:4px;cursor:pointer}.header_headerMiddle__2n29p img{display:block;width:18px;height:18px;margin-right:10px}.header_headerMiddle__2n29p p{color:#3465e3;font-weight:600;font-size:13px;font-family:PingFang SC;font-style:normal;line-height:18px}.header_headerMiddle__2n29p:hover{background:#e7ebf0}.header_headerBottom__3nDcz{display:flex;align-items:center;justify-content:space-between;margin-top:12px}.header_headerBottom__3nDcz .rc-virtual-list::-webkit-scrollbar{width:5px;height:5px;background-color:#f5f5f5}.header_headerBottom__3nDcz p{width:48px;height:30px;color:#121c2b;font-weight:400;font-size:13px;font-family:PingFang SC;font-style:normal;line-height:30px;letter-spacing:2px;text-align:center;background:#f0f2f5;border-radius:4px;cursor:pointer}.header_headerBottom__3nDcz p:hover{background:#e7ebf0!important}.header_headerBottom__3nDcz .ant-select{border:none;box-shadow:none}.header_headerBottom__3nDcz .ant-select-selector{height:30px;background:#f0f2f5!important;border:none!important;box-shadow:none}.header_headerBottom__3nDcz .ant-select-selector:hover{background:#e7ebf0!important}.header_headerBottom__3nDcz .ant-select-single .ant-select-selector .ant-select-selection-item{color:#121c2b;font-weight:400;font-size:13px;font-family:PingFang SC;font-style:normal;line-height:18px;line-height:30px}.header_infoContainer__mQasp{z-index:2;box-sizing:border-box;width:200px;height:136px;padding:12px;background:#fff;box-shadow:0 2px 8px rgba(113,125,153,.1)}.header_flexCenter__3B1a1{display:flex;align-items:center;justify-content:center}.header_userImg__3xWjR{display:block;width:30px;height:30px;margin:0 auto 4px;border-radius:50%}.header_userName__3lohR{margin-bottom:4px;color:#000;font-weight:600;font-size:13px;font-family:PingFang SC;font-style:normal;line-height:18px}.header_userAccount__4x1RT{margin-bottom:20px;color:#717d99;font-weight:400;font-size:12px;font-family:PingFang SC;font-style:normal;line-height:17px}.header_userNumber__2qSZz{display:flex;align-items:center;justify-content:space-between}.header_userNumber__2qSZz p{color:#717d99}.header_userNumber__2qSZz p,.header_userNumber__2qSZz span{font-weight:400;font-size:12px;font-family:PingFang SC;font-style:normal;line-height:17px}.header_userNumber__2qSZz span{color:#121c2b;text-align:right}.header_operateBtnBox__2KA0v{display:flex;justify-content:space-between;width:100%;height:46px;margin-top:10px;border-bottom:1px solid #eee}.header_operateBtnBox__2KA0v .header_operateBtn1__McV4Z,.header_operateBtnBox__2KA0v .header_operateBtn_open__2IIVM{width:142px;height:34px;color:#f15c5c;font-weight:600;font-size:13px;font-family:PingFang SC;font-style:normal;line-height:34px;text-align:center;background:#f0f2f5;border-radius:4px;cursor:pointer}.header_operateBtnBox__2KA0v .header_operateBtn1__McV4Z:hover,.header_operateBtnBox__2KA0v .header_operateBtn_open__2IIVM:hover{background:#e7ebf0!important}.header_operateBtnBox__2KA0v .header_operateBtn_open__2IIVM{color:#3465e3!important}.header_operateBtnBox__2KA0v .header_endBtnDisabled__qsoaK{cursor:not-allowed}.header_operateBtnBox__2KA0v .header_operateBtn2__2K-pK,.header_operateBtnBox__2KA0v .header_operateBtn3__3CDj_{width:58px;height:34px;color:#3465e3;font-weight:600;font-size:13px;font-family:PingFang SC;font-style:normal;line-height:34px;text-align:center;background:#f0f2f5;border-radius:4px;cursor:pointer}.header_operateBtnBox__2KA0v .header_operateBtn2__2K-pK:hover,.header_operateBtnBox__2KA0v .header_operateBtn3__3CDj_:hover{background:#e7ebf0!important}.header_setTimeBox__199cp{display:flex;align-items:center;justify-content:space-between;width:100%;height:30px;margin-top:12px;padding:6px 10px 6px 12px;background:#f0f2f5;border-radius:4px}.header_setTimeBox__199cp .header_setTimeWord__1ZIrq{color:#121c2b;font-weight:400;font-size:13px;font-family:PingFang SC;font-style:normal;line-height:18px}.header_setTimeBox__199cp:hover,.header_setTimeBox__199cp:hover .ant-picker{background:#e7ebf0!important}.header_setTimeBox__199cp .ant-picker{height:30px;padding-right:0;color:#121c2b;font-weight:400;font-size:13px;font-family:PingFang SC;font-style:normal;background:#f0f2f5;border:none;outline:none;box-shadow:none}.header_setTimeBox__199cp .ant-picker-suffix{right:0!important;font-size:12px}.header_shareBox__2N7Xt{width:340px;background:#fff;border-radius:4px}.header_shareBoxLink__2cYZ2{box-sizing:border-box;width:100%;padding:12px;background:#f0f2f5;border-radius:4px}.header_shareBoxLink__2cYZ2 p{margin-bottom:12px}.header_shareBoxLink__2cYZ2 p,.header_shareBoxLink__2cYZ2 span{color:#616778;font-weight:400;font-size:13px;font-family:PingFang SC;font-style:normal;line-height:18px;white-space:pre-wrap;text-align:left}.header_shareBoxTime__PNj-t{margin-top:10px;color:#abb1c0;font-weight:400;font-size:13px;font-family:PingFang SC;font-style:normal;line-height:18px}.header_antdModalClass__1qYB9 .ant-modal-header{border-bottom:1px solid #f0f2f5}.header_antdModalClass__1qYB9 .ant-modal-footer{border-top:1px solid #f0f2f5}.header_antdModalClass__1qYB9 .ant-modal-close{z-index:-999}.header_antdModalClass__1qYB9 .ant-modal-title{color:#121c2b;font-weight:600;font-size:15px;font-family:PingFang SC;font-style:normal;line-height:21px}.header_antdModalClass__1qYB9 .ant-modal-footer{display:flex;align-items:center;justify-content:center}.header_antdModalClass__1qYB9 .ant-btn{color:#121c2b;background:#f0f2f5}.header_antdModalClass__1qYB9 .ant-btn,.header_antdModalClass__1qYB9 .ant-modal-footer button+button{width:90px;height:30px;font-weight:400;font-size:13px;font-family:PingFang SC;font-style:normal;line-height:18px;border:none;border-radius:4px;outline:none}.header_antdModalClass__1qYB9 .ant-modal-footer button+button{margin-left:10px;color:#fff!important;background:#3465e3!important;cursor:pointer}");var pO=function(e){function t(e){var n;return bt(this,t),(n=yt(this,t,[e])).queryUserList=function(){var e=n.props;n.props.dispatch({type:"seting/queryProjectUserList",payload:{projectId:e.app.projectId,sceneId:e.seting.sceneId}})},n.handleNameChange=function(e){n.setState({selectValueName:e},function(){var t=n.props,r=n.state.selectValueStatus;n.props.dispatch({type:"seting/queryOpinionList",payload:{projectId:t.app.projectId,sceneId:t.seting.sceneId,userId:e,status:"状态"===r?"":r,pageNo:1,pageSize:1e3}})})},n.handleStatusChange=function(e){n.setState({selectValueStatus:e},function(){var t=n.props,r=n.state.selectValueName;(0,t.dispatch)({type:"seting/queryOpinionList",payload:{projectId:t.app.projectId,sceneId:t.seting.sceneId,userId:"姓名"===r?"":r,status:e,pageNo:1,pageSize:1e3}})})},n.addSignAction=function(){2===n.props.app.onlineSignStatus&&Yr.emit("MODELSWITCH",{id:"add"})},n.resetAction=function(){n.setState({selectValueName:"姓名",selectValueStatus:"状态"},function(){var e=n.props;(0,e.dispatch)({type:"seting/queryOpinionList",payload:{projectId:e.app.projectId,sceneId:e.seting.sceneId,userId:"",status:"",pageNo:1,pageSize:1e3}})})},n.endSignAction=function(){var e=n.props,t=e.seting;2===t.onlineSignStatus&&n.props.dispatch({type:"seting/stopCountersign",payload:{projectId:e.app.projectId,sceneId:t.sceneId}}).then(function(){})},n.openSignAction=function(){var e=n.props,t=e.seting;(0,e.dispatch)({type:"seting/openCountersign",payload:{projectId:e.app.projectId,sceneId:t.sceneId}}).then(function(){})},n.shareAction=function(){var e=n.props;n.props.dispatch({type:"seting/shareLink",payload:{projectId:e.app.projectId,sceneId:e.seting.sceneId}}).then(function(e){n.setState({effectiveTime:e.endTime,clipboardLink:e.accessUrl,projectName:e.projectName,visible:!0})})},n.pickerOnChange=function(e,t){console.log("时间选择器---",e,t);var r=n.props;(0,r.dispatch)({type:"seting/modifySceneEndTime",payload:{projectId:r.app.projectId,sceneId:r.seting.sceneId,endTime:t+" 00:00:00"}})},n.disabledDate=function(e){return e<At.default().startOf("day")},n.onSuccess=function(e){de.default.success("复制成功",.4,function(){n.setState({visible:!1})})},n.handleCancel=function(e){n.setState({visible:!1})},n.headerInfo=function(){var e=n.props.app.userData;if(e)return fe.default.createElement("div",{className:dO.infoContainer},fe.default.createElement("img",{className:ve.default(dO.userImg),src:e.userIcon?e.userIcon:sr,alt:"头像icon"}),fe.default.createElement("p",{className:ve.default(dO.userName,dO.flexCenter)},e.userName),fe.default.createElement("span",{className:ve.default(dO.userAccount,dO.flexCenter)},e.userAccount),fe.default.createElement("div",{className:dO.userNumber},fe.default.createElement("p",null,"手机"),fe.default.createElement("span",null,e.phoneNo)))},n.state={selectValueName:"姓名",selectValueStatus:"状态",visible:!1,clipboardLink:"",effectiveTime:"",projectName:"南头古城"},n}return It(t,e),xt(t,[{key:"componentDidMount",value:function(){this.queryUserList()}},{key:"render",value:function(){var e=Pe.default.Option,t=this.state,n=t.selectValueName,r=t.selectValueStatus,o=t.visible,a=t.clipboardLink,i=t.effectiveTime,l=t.projectName,s=this.props,A=s.app,c=A.isManager,u=A.isSuperAdmin,d=A.onlineSignStatus,p=A.onlineSignEndTime,f=A.userDataList,g=A.projectId,h=A.sceneId,m=s.userData;return fe.default.createElement("div",{className:ve.default(dO.headerContainer,c?dO.managerClass:"")},fe.default.createElement("div",{className:dO.headerTitle},fe.default.createElement(Ne.default,{overlay:this.headerInfo(),placement:"bottomRight"},fe.default.createElement("img",{className:ve.default(dO.titlerightName),src:m&&m.userIcon?m.userIcon:sr,alt:"头像icon"})),fe.default.createElement("div",{className:dO.titleright},fe.default.createElement("p",{className:dO.titleLeft},"会签意见"),!c&&fe.default.createElement("span",{className:dO.titlerightTime},3===d?"会签已经结束":"会签截止日期:",2===d&&p&&p.split(" ")[0]))),(u||!c)&&fe.default.createElement("div",{className:ve.default(dO.headerMiddle,2===d?"":dO.disabled),onClick:this.addSignAction},fe.default.createElement("img",{src:ar,alt:"新增会签"}),fe.default.createElement("p",null,"新增会签意见")),c&&fe.default.createElement("div",{className:dO.setTimeBox},fe.default.createElement("p",{className:dO.setTimeWord},3===p?"会签已结束":"设置截止日期"),p&&fe.default.createElement(st.default,{allowClear:!1,dropdownClassName:dO.datePicker,onChange:this.pickerOnChange,disabledDate:this.disabledDate,suffixIcon:fe.default.createElement(pP,null),inputReadOnly:!1,defaultValue:At.default(p?p.split(" ")[0]:new Date,"YYYY-MM-DD")})),c&&fe.default.createElement("div",{className:dO.operateBtnBox},2===d?fe.default.createElement("p",{className:dO.operateBtn1,onClick:this.endSignAction},"结束会签"):fe.default.createElement("p",{className:dO.operateBtn_open,onClick:this.openSignAction},"开启会签"),fe.default.createElement("a",{href:"".concat(Jo().BASEURL,"/vbim-scene-server/countersign/exportCountersign?projectId=").concat(g,"&sceneId=").concat(h,"&timeStamp=").concat((new Date).getTime()),className:dO.operateBtn2},"导出"),fe.default.createElement("p",{className:dO.operateBtn3,onClick:this.shareAction},"分享")),fe.default.createElement("div",{className:dO.headerBottom},fe.default.createElement("div",{className:dO.headerBottomLeft},fe.default.createElement(Pe.default,{value:n,style:{width:86,height:30,fontSize:"13px",color:"#121C2B",marginRight:"10px"},onChange:this.handleNameChange},null==f?void 0:f.map(function(t){return fe.default.createElement(e,{value:t.userId,key:t.userId},t.userRealName)})),fe.default.createElement(Pe.default,{value:r,style:{width:86,height:30,fontSize:"13px",color:"#121C2B"},onChange:this.handleStatusChange,dropdownClassName:"dropdownClassName"},fe.default.createElement(e,{value:"1"},"待修改"),fe.default.createElement(e,{value:"2"},"待确认"),fe.default.createElement(e,{value:"3"},"已完成"))),fe.default.createElement("p",{onClick:this.resetAction},"重置")),fe.default.createElement(be.default,{title:"分享",visible:o,onOk:this.handleOk,width:"388px",centered:!0,closable:!1,wrapClassName:dO.antdModalClass,footer:[fe.default.createElement(Ee.default,{type:"default",key:"cancel",onClick:this.handleCancel},"关闭"),fe.default.createElement(Yb,{"data-clipboard-text":a,onSuccess:this.onSuccess,key:"confirm"},"复制链接")]},fe.default.createElement("div",{className:dO.shareBox},fe.default.createElement("div",{className:dO.shareBoxLink},fe.default.createElement("p",null,"我在",l," 发起了 项目会签 ,邀请您一起加入,点击链接即可加入。"),fe.default.createElement("span",null,a)),fe.default.createElement("p",{className:dO.shareBoxTime},"会签有效期至",i))))}}])}(r.Component),fO=s.withRouter(n.connect(function(e){return{app:e.app,seting:e.seting}})(pO)),gO=Th(function(e,t){var n;n=function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(5),a=(r=o)&&r.__esModule?r:{default:r};t.default=a.default,e.exports=t.default},function(t,n){t.exports=e},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ActionType=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1));function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;n.length>r;r++){var o=n[r],a=Object.getOwnPropertyDescriptor(t,o);a&&a.configurable&&void 0===e[o]&&Object.defineProperty(e,o,a)}}(e,t))}var a=t.ActionType=void 0;!function(e){e[e.zoomIn=1]="zoomIn",e[e.zoomOut=2]="zoomOut",e[e.prev=3]="prev",e[e.next=4]="next",e[e.rotateLeft=5]="rotateLeft",e[e.rotateRight=6]="rotateRight",e[e.reset=7]="reset",e[e.close=8]="close",e[e.scaleX=9]="scaleX",e[e.scaleY=10]="scaleY",e[e.download=11]="download"}(a||(t.ActionType=a={}));var i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return o(t,e),t.prototype.render=function(){var e="react-viewer-icon";return r.createElement("i",{className:e+" "+e+"-"+a[this.props.type]})},t}(r.Component);t.default=i},function(e,t,n){var r;
114
114
  /*!
115
115
  Copyright (c) 2017 Jed Watson.
116
116
  Licensed under the MIT License (MIT), see