/*! For license information please see index.js.LICENSE.txt */
define(["react"],(function(e){"use strict";var t=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(e);function r(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 a=r((function(e,r){var a=60103;if(r.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;a=o("react.element"),r.Fragment=o("react.fragment")}var n=t.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 p(e,t,r){var o,p={},c=null,f=null;for(o in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(f=t.ref),t)s.call(t,o)&&!i.hasOwnProperty(o)&&(p[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===p[o]&&(p[o]=t[o]);return{$$typeof:a,type:e,key:c,ref:f,props:p,_owner:n.current}}r.jsx=p,r.jsxs=p})),o=r((function(e){e.exports=a}));return({gpui:t})=>{const[r,a]=e.useState();let n=null;return e.useEffect((()=>(n=setInterval((()=>{let e=window.frames[0].window;e.mapTags&&(e.mapTags[0].addMouseLeftClickAction((()=>t.root.navigate(t.params.pages[1]))),e.mapTags[1].addMouseLeftClickAction((()=>t.root.navigate(t.params.pages[4]))),e.mapTags[2].addMouseLeftClickAction((()=>t.root.navigate(t.params.pages[0]))),e.mapTags[3].addMouseLeftClickAction((()=>t.root.navigate(t.params.pages[3]))),e.mapTags[4].addMouseLeftClickAction((()=>t.root.navigate(t.params.pages[5]))),e.mapTags[5].addMouseLeftClickAction((()=>t.root.navigate(t.params.pages[2]))),a(e.mapTags))}),2e3),()=>{n=null})),[]),e.useEffect((()=>{r&&r.length&&n&&clearInterval(n)}),[r]),o.jsx("div",Object.assign({style:{height:"100vh"}},{children:o.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)}}));