/*! For license information please see index.js.LICENSE.txt */
define(["react","gpui-style-inject","mobx"],(function(e,t,r){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=a(e),o=a(t);function s(e){var t={exports:{}};return e(t,t.exports),t.exports}Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,!function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach((function(e){a[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(e){return!1}}()||Object.assign;var i=s((function(e,t){var r=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;r=a("react.element"),t.Fragment=a("react.fragment")}var o=n.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,i={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,a){var n,l={},c=null,p=null;for(n in void 0!==a&&(c=""+a),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(p=t.ref),t)s.call(t,n)&&!i.hasOwnProperty(n)&&(l[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===l[n]&&(l[n]=t[n]);return{$$typeof:r,type:e,key:c,ref:p,props:l,_owner:o.current}}t.jsx=l,t.jsxs=l})),l=s((function(e){e.exports=i}));return o.default("html, body {\n  padding: 0;\n  margin: 0;\n}\n\n.index-module_mask__Xrm-w {\n  position: absolute;\n  inset: 0;\n  width: 100%;\n  height: 100%;\n  pointer-events: none;\n}\n.index-module_mask__Xrm-w img {\n  width: 100%;\n  height: 100%;\n}"),({gpui:t})=>{const[a,n]=e.useState(),[o,s]=e.useState("2d42a808e661303a.png");let i=null;return e.useEffect((()=>(i=setInterval((()=>{let e=window.frames[0].window;e.mapTags&&(console.log(e),e.mapTags[0].addMouseLeftClickAction((()=>t.root.navigate(t.params.pages[0]))),e.mapTags[1].addMouseLeftClickAction((()=>t.root.navigate(t.params.pages[1]))),e.mapTags[2].addMouseLeftClickAction((()=>t.root.navigate(t.params.pages[2]))),e.mapTags[3].addMouseLeftClickAction((()=>t.root.navigate(t.params.pages[3]))),e.mapTags[4].addMouseLeftClickAction((()=>t.root.navigate(t.params.pages[4]))),e.mapTags[5].addMouseLeftClickAction((()=>t.root.navigate(t.params.pages[5]))),n(e.mapTags))}),2e3),()=>{i=null})),[]),e.useEffect((()=>{const e=r.reaction((()=>{var e;return null===(e=null==t?void 0:t.params)||void 0===e?void 0:e.imgUrl}),(({imgUrl:e})=>{s(e)}),{fireImmediately:!0});return()=>{e()}}),[]),e.useEffect((()=>{a&&a.length&&i&&clearInterval(i)}),[a]),l.jsxs("div",Object.assign({style:{height:"100vh"}},{children:[l.jsx("div",Object.assign({className:"index-module_mask__Xrm-w"},{children:l.jsx("img",{src:o,alt:""},void 0)}),void 0),l.jsx("iframe",{title:"resg",src:"../../assets/whu/map/index.html",style:{width:"100%",border:"0px",height:"100%"},sandbox:"allow-same-origin allow-scripts allow-popups allow-forms"},void 0)]}),void 0)}}));