!function(){"use strict";var e={};(function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})})(e);var n,t=window.React,i=window.nisje.app.plugins,o=window.nisje.app.constants,s=window.nisje.app.router;o.isUserLoggedIn&&(n={type:"LINK_PUSH_TOKEN",token:(0,o.getConstant)("token")},window.ReactNativeWebView.postMessage(JSON.stringify(n))),(0,i.registerPlugin)("mobile",{render(){const e=(0,s.useHistory)();return(0,t.useEffect)((()=>{document.addEventListener("message",(n=>{if(1===window.postMessage.length)try{const t=JSON.parse(n.data);"CHANGE_ROUTE"===t.type&&e.push(t.url)}catch(e){}}))}),[]),null}}),(window.nisje=window.nisje||{}).mobile=e}();