!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 t,n=window.React,i=window.nisje.settings,o=window.nisje.router;i.isUserLoggedIn&&(t={type:"LINK_PUSH_TOKEN",token:(0,i.getOption)("token")},window.ReactNativeWebView.postMessage(JSON.stringify(t))),(0,i.registerPlugin)("mobile",{render(){const e=(0,o.useHistory)();return(0,n.useEffect)((()=>{document.addEventListener("message",(t=>{if(1===window.postMessage.length)try{const n=JSON.parse(t.data);"CHANGE_ROUTE"===n.type&&e.push(n.url)}catch(e){}}))}),[]),null}}),(window.nisje=window.nisje||{}).mobile=e}();