define(["gpui-style-inject","react","mobx"],(function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var a=r(e),i=r(t),l=o(t);
/*! *****************************************************************************
    Copyright (c) Microsoft Corporation.

    Permission to use, copy, modify, and/or distribute this software for any
    purpose with or without fee is hereby granted.

    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
    PERFORMANCE OF THIS SOFTWARE.
    ***************************************************************************** */
function d(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i}a.default("html, body, #root {\n  width: 100%;\n  height: 100%;\n  margin: 0;\n  padding: 0;\n  overflow: hidden; }\n\n.g__index {\n  position: relative;\n  box-sizing: border-box;\n  width: 100%;\n  height: 100%; }\n");var c={main:"index-module_main__5MRku",table:"index-module_table__UD3nt",thead:"index-module_thead__VeAFs",tbody:"index-module_tbody__mCyfP",tr:"index-module_tr__DUaAc",statistics:"index-module_statistics__S9yqf",item:"index-module_item__ONntU",data:"index-module_data__f0lkk"};if(a.default(".index-module_main__5MRku {\n  display: flex;\n  flex-direction: column;\n  flex-wrap: wrap;\n  justify-content: space-between;\n  align-content: space-around;\n  width: 100%;\n  height: 100%; }\n  .index-module_main__5MRku .index-module_table__UD3nt {\n    flex: 1;\n    display: flex;\n    flex-direction: column;\n    width: 100%;\n    font-size: 3.5vh;\n    overflow: hidden; }\n    .index-module_main__5MRku .index-module_table__UD3nt .index-module_thead__VeAFs {\n      display: flex;\n      align-items: center;\n      height: 16.7%;\n      background: #28356f;\n      color: #40a6ed; }\n    .index-module_main__5MRku .index-module_table__UD3nt .index-module_tbody__mCyfP {\n      flex: 1;\n      display: flex;\n      flex-direction: column;\n      background: transparent;\n      color: #cde0ff; }\n      .index-module_main__5MRku .index-module_table__UD3nt .index-module_tbody__mCyfP .index-module_tr__DUaAc {\n        display: flex;\n        align-items: center;\n        height: 20%;\n        border-bottom: 1px solid #2B3873; }\n    .index-module_main__5MRku .index-module_table__UD3nt .index-module_thead__VeAFs :nth-child(n), .index-module_main__5MRku .index-module_table__UD3nt .index-module_tr__DUaAc :nth-child(n) {\n      padding: 1vh;\n      text-overflow: ellipsis;\n      white-space: nowrap;\n      word-break: break-all;\n      overflow: hidden; }\n    .index-module_main__5MRku .index-module_table__UD3nt .index-module_thead__VeAFs :first-child, .index-module_main__5MRku .index-module_table__UD3nt .index-module_tr__DUaAc :first-child {\n      width: 36%; }\n    .index-module_main__5MRku .index-module_table__UD3nt .index-module_thead__VeAFs :nth-child(2), .index-module_main__5MRku .index-module_table__UD3nt .index-module_tr__DUaAc :nth-child(2) {\n      width: 32%; }\n    .index-module_main__5MRku .index-module_table__UD3nt .index-module_thead__VeAFs :last-child, .index-module_main__5MRku .index-module_table__UD3nt .index-module_tr__DUaAc :last-child {\n      width: 30%; }\n  .index-module_main__5MRku .index-module_statistics__S9yqf {\n    display: flex;\n    justify-content: space-around;\n    width: 100%; }\n    .index-module_main__5MRku .index-module_statistics__S9yqf .index-module_item__ONntU {\n      display: flex;\n      flex-direction: column;\n      align-items: center;\n      box-sizing: border-box; }\n      .index-module_main__5MRku .index-module_statistics__S9yqf .index-module_item__ONntU > span {\n        font-size: 6vh;\n        color: #cde0ff; }\n      .index-module_main__5MRku .index-module_statistics__S9yqf .index-module_item__ONntU .index-module_data__f0lkk {\n        font-size: 10vh;\n        font-weight: 600;\n        text-align: right;\n        -webkit-text-fill-color: transparent;\n        -webkit-background-clip: text; }\n        .index-module_main__5MRku .index-module_statistics__S9yqf .index-module_item__ONntU .index-module_data__f0lkk > span {\n          font-size: 6vh;\n          font-weight: 400; }\n"),!t.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!n.spy)throw new Error("mobx-react-lite requires mobx at least version 4 to be available");function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function s(){var e=t.useState(0)[1];return t.useCallback((function(){e((function(e){return e+1}))}),[])}function m(e){return n.getDependencyTree(e)}var f,_=1e4,p=new Set;function h(){void 0===f&&(f=setTimeout(b,1e4))}function b(){f=void 0;var e=Date.now();p.forEach((function(t){var n=t.current;n&&e>=n.cleanAt&&(n.reaction.dispose(),t.current=null,p.delete(t))})),p.size>0&&h()}var v={};function y(e){return"observer"+e}function x(e,t,r){void 0===t&&(t="observed"),void 0===r&&(r=v);var o,a=(r.useForceUpdate||s)(),l=i.default.useRef(null);if(!l.current){var d=new n.Reaction(y(t),(function(){c.mounted?a():(d.dispose(),l.current=null)})),c=function(e){return{cleanAt:Date.now()+_,reaction:e}}(d);l.current=c,o=l,p.add(o),h()}var u,f,b=l.current.reaction;if(i.default.useDebugValue(b,m),i.default.useEffect((function(){var e;return e=l,p.delete(e),l.current?l.current.mounted=!0:(l.current={reaction:new n.Reaction(y(t),(function(){a()})),cleanAt:1/0},a()),function(){l.current.reaction.dispose(),l.current=null}}),[]),b.track((function(){try{u=e()}catch(e){f=e}})),f)throw f;return u}function w(e,n){var r,o,a,i=u({forwardRef:!1},n),l=e.displayName||e.name,d=function(t,n){return x((function(){return e(t,n)}),l)};return d.displayName=l,r=i.forwardRef?t.memo(t.forwardRef(d)):t.memo(d),o=e,a=r,Object.keys(o).forEach((function(e){g[e]||Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(o,e))})),r.displayName=l,r}var g={$$typeof:!0,render:!0,compare:!0,type:!0};function E(e){var t=e.children,n=e.render,r=t||n;return"function"!=typeof r?null:x(r)}function k(e,t,n,r,o){var a="children"===t?"render":"children",i="function"==typeof e[t],l="function"==typeof e[a];return i&&l?new Error("MobX Observer: Do not use children and render in the same time in`"+n):i||l?null:new Error("Invalid prop `"+o+"` of type `"+typeof e[t]+"` supplied to `"+n+"`, expected `function`.")}E.propTypes={children:k,render:k},E.displayName="Observer";var R=0;var O={};function D(e){return O[e]||(O[e]=function(e){if("function"==typeof Symbol)return Symbol(e);var t="__$mobx-react "+e+" ("+R+")";return R++,t}(e)),O[e]}function U(e,t){if(j(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.hasOwnProperty.call(t,n[o])||!j(e[n[o]],t[n[o]]))return!1;return!0}function j(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function N(e,t,n){Object.hasOwnProperty.call(e,t)?e[t]=n:Object.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:n})}var M=D("patchMixins"),P=D("patchedDefinition");function S(e,t){for(var n=this,r=arguments.length,o=new Array(r>2?r-2:0),a=2;a<r;a++)o[a-2]=arguments[a];t.locks++;try{var i;return null!=e&&(i=e.apply(this,o)),i}finally{t.locks--,0===t.locks&&t.methods.forEach((function(e){e.apply(n,o)}))}}function F(e,t){return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];S.call.apply(S,[this,e,t].concat(r))}}function A(e,t,n){var r=function(e,t){var n=e[M]=e[M]||{},r=n[t]=n[t]||{};return r.locks=r.locks||0,r.methods=r.methods||[],r}(e,t);r.methods.indexOf(n)<0&&r.methods.push(n);var o=Object.getOwnPropertyDescriptor(e,t);if(!o||!o[P]){var a=e[t],i=C(e,t,o?o.enumerable:void 0,r,a);Object.defineProperty(e,t,i)}}function C(e,t,n,r,o){var a,i=F(o,r);return(a={})[P]=!0,a.get=function(){return i},a.set=function(o){if(this===e)i=F(o,r);else{var a=C(this,t,n,r,o);Object.defineProperty(this,t,a)}},a.configurable=!0,a.enumerable=n,a}var $=n.$mobx||"$mobx",I=D("isUnmounted"),q=D("skipRender"),z=D("isForcingUpdate");function V(e){var n=e.prototype;if(n.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(e.__proto__!==t.PureComponent)if(n.shouldComponentUpdate){if(n.shouldComponentUpdate!==H)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else n.shouldComponentUpdate=H;W(n,"props"),W(n,"state");var r=n.render;return n.render=function(){return T.call(this,r)},A(n,"componentWillUnmount",(function(){this.render[$]&&this.render[$].dispose(),this[I]=!0})),e}function T(e){var r=this;N(this,q,!1),N(this,z,!1);var o,a=(o=this).displayName||o.name||o.constructor&&(o.constructor.displayName||o.constructor.name)||"<component>",i=e.bind(this),l=!1,d=new n.Reaction(a+".render()",(function(){if(!l&&(l=!0,!0!==r[I])){var e=!0;try{N(r,z,!0),r[q]||t.Component.prototype.forceUpdate.call(r),e=!1}finally{N(r,z,!1),e&&d.dispose()}}}));function c(){l=!1;var e=void 0,t=void 0;if(d.track((function(){try{t=n._allowStateChanges(!1,i)}catch(t){e=t}})),e)throw e;return t}return d.reactComponent=this,c[$]=d,this.render=c,c.call(this)}function H(e,t){return this.state!==t||!U(this.props,e)}function W(e,t){var r=D("reactProp_"+t+"_valueHolder"),o=D("reactProp_"+t+"_atomHolder");function a(){return this[o]||N(this,o,n.createAtom("reactive "+t)),this[o]}Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var e=!1;return n._allowStateReadsStart&&n._allowStateReadsEnd&&(e=n._allowStateReadsStart(!0)),a.call(this).reportObserved(),n._allowStateReadsStart&&n._allowStateReadsEnd&&n._allowStateReadsEnd(e),this[r]},set:function(e){this[z]||U(this[r],e)?N(this,r,e):(N(this,r,e),N(this,q,!0),a.call(this).reportChanged(),N(this,q,!1))}})}var X="function"==typeof Symbol&&Symbol.for,Y=X?Symbol.for("react.forward_ref"):"function"==typeof t.forwardRef&&t.forwardRef((function(e){return null})).$$typeof,B=X?Symbol.for("react.memo"):"function"==typeof t.memo&&t.memo((function(e){return null})).$$typeof;if(!t.Component)throw new Error("mobx-react requires React to be available");if(!n.observable)throw new Error("mobx-react requires mobx to be available");var G={tableData:[{name:"ThermoFisher X射线光电子能谱学苑",location:"创新港18号副楼分析测试中心18-5001",time:"2024年5月31日"},{name:"新港报告：Exploring the Power of VolumetricImaging",location:"西安交通大学创新港校区涵英楼5-1E107",time:"2024年5月21日（上午10:00-11:00）"},{name:"Renishaw拉曼应用讲堂",location:"创新港18号副楼分析测试中心18-5001",time:"2024年5月21日（上午9：00-11：30）"},{name:"表面分析技术研讨会",location:"创新港18号副楼分析测试中心18-5002",time:"2024年5月14日"},{name:"超高分辨激光共聚焦显微镜高阶应用培训",location:"创新港18号副楼分析测试中心18-5002",time:"2024年3月25-26日"},{name:"色谱质谱仪器耗材使用与维护",location:"创新港18号副楼分析测试中心18-5001",time:"2024年3月26日星期二下午14:00-17:00"}],numberOfEvent:89,numberOfEvent2:16,numberOfInvitedExpert:166,numberOfParticipants:58050};let J=class extends l.Component{constructor(e){super(e),this.padding="14vh 4vh 4vh",n.reaction((()=>e.gpui.params.padding),(e=>{this.padding=e||"14vh 4vh 4vh"}),{fireImmediately:!0})}render(){return l.createElement("div",{className:"g__index",style:{padding:this.padding}},l.createElement("div",{className:c.main},l.createElement("div",{className:c.statistics},l.createElement("div",{className:c.item},l.createElement("span",null,"累计举办分析测试论坛"),l.createElement("div",{className:c.data,style:{backgroundImage:"linear-gradient(to bottom, #0096FF, #00D8FF)"}},G.numberOfEvent,l.createElement("span",null,"期"))),l.createElement("div",{className:c.item},l.createElement("span",null,"累计举办大型活动会议"),l.createElement("div",{className:c.data,style:{backgroundImage:"linear-gradient(to bottom, #0096FF, #00D8FF)"}},G.numberOfEvent2,l.createElement("span",null,"场"))),l.createElement("div",{className:c.item},l.createElement("span",null,"累计邀请专家"),l.createElement("div",{className:c.data,style:{backgroundImage:"linear-gradient(to bottom, #009EFD, #2AF598)"}},G.numberOfInvitedExpert,l.createElement("span",null,"人次"))),l.createElement("div",{className:c.item},l.createElement("span",null,"累计参与人数"),l.createElement("div",{className:c.data,style:{backgroundImage:"linear-gradient(to bottom, #D596F6, #4481F5)"}},G.numberOfParticipants,l.createElement("span",null,"人次")))),l.createElement("div",{className:c.table},l.createElement("div",{className:c.thead},l.createElement("div",{className:c.td},"论坛名称"),l.createElement("div",{className:c.td},"地点"),l.createElement("div",{className:c.td},"时间")),l.createElement("div",{className:c.tbody},G.tableData.map((e=>l.createElement("div",{className:c.tr},l.createElement("div",{className:c.td},e.name),l.createElement("div",{className:c.td},e.location),l.createElement("div",{className:c.td},e.time))))))))}};return d([n.observable],J.prototype,"padding",void 0),J=d([function(e){if(!0===e.isMobxInjector&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),B&&e.$$typeof===B)throw new Error("Mobx observer: You are trying to use 'observer' on a function component wrapped in either another observer or 'React.memo'. The observer already applies 'React.memo' for you.");if(Y&&e.$$typeof===Y){var n=e.render;if("function"!=typeof n)throw new Error("render property of ForwardRef was not a function");return t.forwardRef((function(){var e=arguments;return t.createElement(E,null,(function(){return n.apply(void 0,e)}))}))}return"function"!=typeof e||e.prototype&&e.prototype.render||e.isReactClass||Object.prototype.isPrototypeOf.call(t.Component,e)?V(e):w(e)}],J),J}));
