define(["gpui-style-inject","react","mobx"],(function(e,t,r){"use strict";e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e;var n="default"in t?t.default:t,o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,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 i(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}e("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 a="index-module_list__36I-B",c="index-module_item__1dQh6",l="index-module_border__3bP8o";if(e(".index-module_list__36I-B {\n  display: flex;\n  flex-direction: column;\n  justify-content: space-between;\n  align-content: space-around;\n  width: 100%;\n  height: 100%; }\n  .index-module_list__36I-B .index-module_item__1dQh6 {\n    cursor: pointer;\n    position: relative;\n    width: 100%;\n    height: 15vh;\n    line-height: 15vh;\n    font-size: 5.8vh;\n    color: #a5c6fc;\n    text-align: center;\n    z-index: 1; }\n    .index-module_list__36I-B .index-module_item__1dQh6 .index-module_border__3bP8o {\n      position: absolute;\n      top: 0;\n      left: 0;\n      width: 100%;\n      height: 100%;\n      z-index: -1; }\n"),!t.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!r.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 r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function s(){var e=t.useState(0)[1];return t.useCallback((function(){e((function(e){return e+1}))}),[])}function f(e){return r.getDependencyTree(e)}var d,p=1e4,h=new Set;function m(){void 0===d&&(d=setTimeout(v,1e4))}function v(){d=void 0;var e=Date.now();h.forEach((function(t){var r=t.current;r&&e>=r.cleanAt&&(r.reaction.dispose(),t.current=null,h.delete(t))})),h.size>0&&m()}var y={};function b(e){return"observer"+e}function w(e,t,o){void 0===t&&(t="observed"),void 0===o&&(o=y);var i,a=(o.useForceUpdate||s)(),c=n.useRef(null);if(!c.current){var l=new r.Reaction(b(t),(function(){u.mounted?a():(l.dispose(),c.current=null)})),u=function(e){return{cleanAt:Date.now()+p,reaction:e}}(l);c.current=u,i=c,h.add(i),m()}var d,v,w=c.current.reaction;if(n.useDebugValue(w,f),n.useEffect((function(){var e;return e=c,h.delete(e),c.current?c.current.mounted=!0:(c.current={reaction:new r.Reaction(b(t),(function(){a()})),cleanAt:1/0},a()),function(){c.current.reaction.dispose(),c.current=null}}),[]),w.track((function(){try{d=e()}catch(e){v=e}})),v)throw v;return d}function g(e,r){var n,o,i,a=u({forwardRef:!1},r),c=e.displayName||e.name,l=function(t,r){return w((function(){return e(t,r)}),c)};return l.displayName=c,n=a.forwardRef?t.memo(t.forwardRef(l)):t.memo(l),o=e,i=n,Object.keys(o).forEach((function(e){_[e]||Object.defineProperty(i,e,Object.getOwnPropertyDescriptor(o,e))})),n.displayName=c,n}var _={$$typeof:!0,render:!0,compare:!0,type:!0};function x(e){var t=e.children,r=e.render,n=t||r;return"function"!=typeof n?null:w(n)}function O(e,t,r,n,o){var i="children"===t?"render":"children",a="function"==typeof e[t],c="function"==typeof e[i];return a&&c?new Error("MobX Observer: Do not use children and render in the same time in`"+r):a||c?null:new Error("Invalid prop `"+o+"` of type `"+typeof e[t]+"` supplied to `"+r+"`, expected `function`.")}x.propTypes={children:O,render:O},x.displayName="Observer";var j=0;var R={};function E(e){return R[e]||(R[e]=function(e){if("function"==typeof Symbol)return Symbol(e);var t="__$mobx-react "+e+" ("+j+")";return j++,t}(e)),R[e]}function P(e,t){if(k(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var o=0;o<r.length;o++)if(!Object.hasOwnProperty.call(t,r[o])||!k(e[r[o]],t[r[o]]))return!1;return!0}function k(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function S(e,t,r){Object.hasOwnProperty.call(e,t)?e[t]=r:Object.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:r})}var C=E("patchMixins"),D=E("patchedDefinition");function N(e,t){for(var r=this,n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];t.locks++;try{var a;return null!=e&&(a=e.apply(this,o)),a}finally{t.locks--,0===t.locks&&t.methods.forEach((function(e){e.apply(r,o)}))}}function $(e,t){return function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];N.call.apply(N,[this,e,t].concat(n))}}function B(e,t,r){var n=function(e,t){var r=e[C]=e[C]||{},n=r[t]=r[t]||{};return n.locks=n.locks||0,n.methods=n.methods||[],n}(e,t);n.methods.indexOf(r)<0&&n.methods.push(r);var o=Object.getOwnPropertyDescriptor(e,t);if(!o||!o[D]){var i=e[t],a=function e(t,r,n,o,i){var a,c=$(i,o);return(a={})[D]=!0,a.get=function(){return c},a.set=function(i){if(this===t)c=$(i,o);else{var a=e(this,r,n,o,i);Object.defineProperty(this,r,a)}},a.configurable=!0,a.enumerable=n,a}(e,t,o?o.enumerable:void 0,n,i);Object.defineProperty(e,t,a)}}var U=r.$mobx||"$mobx",I=E("isUnmounted"),L=E("skipRender"),M=E("isForcingUpdate");function A(e){var r=e.prototype;if(r.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(e.__proto__!==t.PureComponent)if(r.shouldComponentUpdate){if(r.shouldComponentUpdate!==z)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else r.shouldComponentUpdate=z;q(r,"props"),q(r,"state");var n=r.render;return r.render=function(){return T.call(this,n)},B(r,"componentWillUnmount",(function(){this.render[U]&&this.render[U].dispose(),this[I]=!0})),e}function T(e){var n=this;S(this,L,!1),S(this,M,!1);var o,i=(o=this).displayName||o.name||o.constructor&&(o.constructor.displayName||o.constructor.name)||"<component>",a=e.bind(this),c=!1,l=new r.Reaction(i+".render()",(function(){if(!c&&(c=!0,!0!==n[I])){var e=!0;try{S(n,M,!0),n[L]||t.Component.prototype.forceUpdate.call(n),e=!1}finally{S(n,M,!1),e&&l.dispose()}}}));function u(){c=!1;var e=void 0,t=void 0;if(l.track((function(){try{t=r._allowStateChanges(!1,a)}catch(t){e=t}})),e)throw e;return t}return l.reactComponent=this,u[U]=l,this.render=u,u.call(this)}function z(e,t){return this.state!==t||!P(this.props,e)}function q(e,t){var n=E("reactProp_"+t+"_valueHolder"),o=E("reactProp_"+t+"_atomHolder");function i(){return this[o]||S(this,o,r.createAtom("reactive "+t)),this[o]}Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var e=!1;return r._allowStateReadsStart&&r._allowStateReadsEnd&&(e=r._allowStateReadsStart(!0)),i.call(this).reportObserved(),r._allowStateReadsStart&&r._allowStateReadsEnd&&r._allowStateReadsEnd(e),this[n]},set:function(e){this[M]||P(this[n],e)?S(this,n,e):(S(this,n,e),S(this,L,!0),i.call(this).reportChanged(),S(this,L,!1))}})}var W="function"==typeof Symbol&&Symbol.for,F=W?Symbol.for("react.forward_ref"):"function"==typeof t.forwardRef&&t.forwardRef((function(e){return null})).$$typeof,H=W?Symbol.for("react.memo"):"function"==typeof t.memo&&t.memo((function(e){return null})).$$typeof;function Q(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'"),H&&e.$$typeof===H)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(F&&e.$$typeof===F){var r=e.render;if("function"!=typeof r)throw new Error("render property of ForwardRef was not a function");return t.forwardRef((function(){var e=arguments;return t.createElement(x,null,(function(){return r.apply(void 0,e)}))}))}return"function"!=typeof e||e.prototype&&e.prototype.render||e.isReactClass||Object.prototype.isPrototypeOf.call(t.Component,e)?A(e):g(e)}if(!t.Component)throw new Error("mobx-react requires React to be available");if(!r.observable)throw new Error("mobx-react requires mobx to be available");return function(e){function n(n){var o=e.call(this,n)||this;return o.padding="16vh 4vh 4vh",o.gotoDetail=function(e){var t=o.props.gpui.params;o.props.gpui.root.navigate("@component:godiva/set",{base_url:t.base_url,set_id:t.page.set_id,share_id:t.page.share_id,"@theme":"normal",showSearchBar:"true",criteria:[{id:"__1",alias:"建设模式",key:t.page.filter_key,type:"string",level:!1,filter:{name:"",show:!1,type:"select",params:{isMultiple:!1,searchMode:"contain",default:e}}}],defaultTextColor:"#D4D4D4",padding:t.page.padding},{styles:{"@theme":"page"},mode:"replace"})},o.renderBorder=function(){return t.createElement("div",{className:l},t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",viewBox:"0 0 774 124"},t.createElement("path",{stroke:"rgb(70, 137, 247)",strokeWidth:"3",d:"M2,22 L2,103 L22,123 L753,123 L773,103 L773,22 L753,2 L22,2 L2,22 Z",fill:"rgb(26,48,125)"})))},r.reaction((function(){return n.gpui.params.padding}),(function(e){o.padding=e||"16vh 4vh 4vh"}),{fireImmediately:!0}),o}return function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(n,e),n.prototype.render=function(){var e=this;return t.createElement("div",{className:"g__index",style:{padding:this.padding}},t.createElement("div",{className:a},t.createElement("div",{className:c,onClick:function(){return e.gotoDetail("直接建设")}},this.renderBorder(),"直接建设"),t.createElement("div",{className:c,onClick:function(){return e.gotoDetail("学科共建")}},this.renderBorder(),"学科共建"),t.createElement("div",{className:c,onClick:function(){return e.gotoDetail("学科托管")}},this.renderBorder(),"学科托管"),t.createElement("div",{className:c,onClick:function(){return e.gotoDetail("校企合作")}},this.renderBorder(),"校企合作")))},i([r.observable],n.prototype,"padding",void 0),n=i([Q],n)}(t.Component)}));
