/*! For license information please see index.js.LICENSE.txt */
define(["react","gpui-style-inject","mobx"],(function(e,n,t){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=o(e),r=o(n);var a={exports:{}},s={},l=i.default,d=Symbol.for("react.element"),c=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,_=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function m(e,n,t){var o,i={},r=null,a=null;for(o in void 0!==t&&(r=""+t),void 0!==n.key&&(r=""+n.key),void 0!==n.ref&&(a=n.ref),n)u.call(n,o)&&!f.hasOwnProperty(o)&&(i[o]=n[o]);if(e&&e.defaultProps)for(o in n=e.defaultProps)void 0===i[o]&&(i[o]=n[o]);return{$$typeof:d,type:e,key:r,ref:a,props:i,_owner:_.current}}s.Fragment=c,s.jsx=m,s.jsxs=m,a.exports=s,r.default("html, body, #root {\n  width: 100%;\n  height: 100%;\n  margin: 0;\n  padding: 0;\n  background-color:transparent !important;\n}\n");var p={content:"index-module_content__mfzCD",top:"index-module_top__1_1WH",title:"index-module_title__16WKQ",value:"index-module_value__1_Rtq"};return r.default(".index-module_content__mfzCD {\n  padding: 0px 20px 0px 20px;\n  height: 100%;\n}\n.index-module_content__mfzCD > div {\n  display: flex;\n  width: 100%;\n  height: 50%;\n}\n.index-module_content__mfzCD > div > div {\n  display: flex;\n  flex-flow: column nowrap;\n  justify-content: center;\n  width: 50%;\n  height: 100%;\n}\n\n.index-module_top__1_1WH {\n  border-bottom: 1px solid #6881c1;\n}\n\n.index-module_title__16WKQ {\n  font-size: 18px;\n  color: #77a6d2;\n}\n\n.index-module_value__1_Rtq {\n  display: flex;\n  flex-flow: row nowrap;\n  justify-content: flex-start;\n  align-items: center;\n  margin-top: 10px;\n  font-size: 24px;\n  color: #fff;\n}"),({gpui:n})=>{const[o,i]=e.useState({room_no:"",affiliated_unit:"",head:"",phone_number:""});return e.useEffect((()=>{let e=!0;const o=t.reaction((()=>({room_no:n.params.room_no,affiliated_unit:n.params.affiliated_unit,head:n.params.head,phone_number:n.params.phone_number})),(({room_no:n,affiliated_unit:t,head:o,phone_number:r})=>function(e,n,t,o){return new(t||(t=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,s)}l((o=o.apply(e,n||[])).next())}))}(void 0,void 0,void 0,(function*(){console.log("gpui",n,t,o,r),e&&i({room_no:n,affiliated_unit:t,head:o,phone_number:r})}))),{fireImmediately:!0});return()=>{e=!1,o()}}),[n]),a.exports.jsxs("div",{className:p.content,children:[a.exports.jsxs("div",{className:p.top,children:[a.exports.jsxs("div",{className:p.item,children:[a.exports.jsx("div",{className:p.title,children:"\u623f\u95f4\u53f7"}),a.exports.jsx("div",{className:p.value,children:o.room_no})]}),a.exports.jsxs("div",{className:p.item,children:[a.exports.jsx("div",{className:p.title,children:"\u6240\u5c5e\u5355\u4f4d"}),a.exports.jsx("div",{className:p.value,children:o.affiliated_unit})]})]}),a.exports.jsxs("div",{className:p.bottom,children:[a.exports.jsxs("div",{className:p.item,children:[a.exports.jsx("div",{className:p.title,children:"\u5b9e\u9a8c\u5ba4\u5b89\u5168\u8d1f\u8d23\u4eba"}),a.exports.jsx("div",{className:p.value,children:o.head})]}),a.exports.jsxs("div",{className:p.item,children:[a.exports.jsx("div",{className:p.title,children:"\u5e94\u6025\u8054\u7cfb\u7535\u8bdd"}),a.exports.jsx("div",{className:p.value,children:o.phone_number})]})]})]})}}));