(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[522],{"0PSK":function(t,n,e){"use strict";var r=e("q1tI"),i=e.n(r);n.a=i.a.createContext(null)},R0Rn:function(t,n,e){"use strict";e.r(n);var r,i=e("nKUr"),o=e("q1tI"),a=e("TSYQ"),c=e.n(a),l=e("Z3vd"),u=e("qHo4"),d=e("7/s4"),s=e.n(d),p=new Uint8Array(16);function f(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(p)}for(var b=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,h=[],m=0;m<256;++m)h.push((m+256).toString(16).substr(1));var v=function(t,n,e){var r=(t=t||{}).random||(t.rng||f)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,n){e=e||0;for(var i=0;i<16;++i)n[e+i]=r[i];return n}return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=(h[t[n+0]]+h[t[n+1]]+h[t[n+2]]+h[t[n+3]]+"-"+h[t[n+4]]+h[t[n+5]]+"-"+h[t[n+6]]+h[t[n+7]]+"-"+h[t[n+8]]+h[t[n+9]]+"-"+h[t[n+10]]+h[t[n+11]]+h[t[n+12]]+h[t[n+13]]+h[t[n+14]]+h[t[n+15]]).toLowerCase();if(!function(t){return"string"==typeof t&&b.test(t)}(e))throw TypeError("Stringified UUID is invalid");return e}(r)},x=e("dZg1"),g=e("p46w"),j=e.n(g),y=e("7yOM"),E=e("cpVT"),O=e("R/WZ"),F=e("yP8F"),w=Object(O.a)(function(t){return{containerMobile:{width:"100%",height:"100px",padding:"10px",background:"#2e3092",color:"#fff",margin:0,alignItems:"center","@media (min-width: 768px)":{display:"none"}},titleMobile:{fontWeight:"bold",fontSize:20},iconClose:{width:"10%"},iconCloseButton:{width:"20px",height:"20px",display:"flex",alignItems:"center",justifyContent:"center"},textContainer:{width:"65%"},btnInstallContainer:{width:"25%"},btnInstall:{background:F.q,color:F.l,fontSize:11,"&:hover":{background:F.q}},popupInstallDesktop:Object(E.a)({display:"none",paddingTop:"4px",paddingLeft:"20px",fontSize:13,height:"40px",margin:0,backgroundColor:"".concat(F.l)},t.breakpoints.down("xs"),{position:"inherit"}),btnInstallDesktop:{fontSize:11}}});n.default=function(t){var n=w(),e=Object(o.useState)(!1),r=e[0],a=e[1],d=Object(o.useState)(!0),p=d[0],f=d[1],b="app"===Object(x.c)();Object(o.useEffect)(function(){var n=j.a.get("installAppPopupHide"),e=setTimeout(function(){!n&&t&&a(!0),f(!1)},2e3);return function(){return clearTimeout(e)}},[]);var h=function(){a(!1),j.a.set("installAppPopupHide",!0,{expires:90})};return p?Object(i.jsx)(y.a,{}):r||p?b?null:Object(i.jsxs)("div",{id:"installAppWrapper",className:c()("row",n.containerMobile),style:{minHeight:"100px",boxSizing:"border-box"},children:[Object(i.jsx)("div",{className:n.iconClose,children:Object(i.jsx)("span",{className:n.iconCloseButton,onClick:h,children:"x"})}),Object(i.jsxs)("div",{className:n.textContainer,children:[Object(i.jsx)("div",{className:n.titleMobile,children:u.appName}),Object(i.jsx)("p",{style:{margin:0},children:u.installMessage})]}),Object(i.jsx)("div",{className:n.btnInstallContainer,children:Object(i.jsx)(l.a,{className:n.btnInstall,variant:"contained",color:"primary",onClick:function(){var t=localStorage.getItem("uuid");t||(t=v(),localStorage.setItem("uuid",t));var n={dataLayer:{event:"pwaInstall",eventCategory:"InstallPWA",eventAction:"Installed",eventLabel:"installPWA",eventValue:t}};s.a.dataLayer(n),Object(x.b)()?window.open("https://apps.apple.com/id/app/mitra10/id6477692154","_blank"):window.open("https://play.google.com/store/apps/details?id=com.mitra10.www","_blank"),h()},children:"Install"})})]}):null}},VeD8:function(t,n,e){"use strict";var r=e("zLVn"),i=e("wx14"),o=e("JX7q"),a=e("dI71"),c=e("q1tI"),l=e.n(c),u=e("0PSK");function d(t,n){var e=Object.create(null);return t&&c.Children.map(t,function(t){return t}).forEach(function(t){e[t.key]=function(t){return n&&Object(c.isValidElement)(t)?n(t):t}(t)}),e}function s(t,n,e){return null!=e[n]?e[n]:t.props[n]}function p(t,n,e){var r=d(t.children),i=function(t,n){function e(e){return e in n?n[e]:t[e]}t=t||{},n=n||{};var r,i=Object.create(null),o=[];for(var a in t)a in n?o.length&&(i[a]=o,o=[]):o.push(a);var c={};for(var l in n){if(i[l])for(r=0;r<i[l].length;r++){var u=i[l][r];c[i[l][r]]=e(u)}c[l]=e(l)}for(r=0;r<o.length;r++)c[o[r]]=e(o[r]);return c}(n,r);return Object.keys(i).forEach(function(o){var a=i[o];if(Object(c.isValidElement)(a)){var l=o in n,u=o in r,d=n[o],p=Object(c.isValidElement)(d)&&!d.props.in;!u||l&&!p?u||!l||p?u&&l&&Object(c.isValidElement)(d)&&(i[o]=Object(c.cloneElement)(a,{onExited:e.bind(null,a),in:d.props.in,exit:s(a,"exit",t),enter:s(a,"enter",t)})):i[o]=Object(c.cloneElement)(a,{in:!1}):i[o]=Object(c.cloneElement)(a,{onExited:e.bind(null,a),in:!0,exit:s(a,"exit",t),enter:s(a,"enter",t)})}}),i}var f=Object.values||function(t){return Object.keys(t).map(function(n){return t[n]})},b=function(t){function n(n,e){var r,i=(r=t.call(this,n,e)||this).handleExited.bind(Object(o.a)(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}Object(a.a)(n,t);var e=n.prototype;return e.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},e.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(t,n){var e,r,i=n.children,o=n.handleExited;return{children:n.firstRender?(e=t,r=o,d(e.children,function(t){return Object(c.cloneElement)(t,{onExited:r.bind(null,t),in:!0,appear:s(t,"appear",e),enter:s(t,"enter",e),exit:s(t,"exit",e)})})):p(t,i,o),firstRender:!1}},e.handleExited=function(t,n){var e=d(this.props.children);t.key in e||(t.props.onExited&&t.props.onExited(n),this.mounted&&this.setState(function(n){var e=Object(i.a)({},n.children);return delete e[t.key],{children:e}}))},e.render=function(){var t=this.props,n=t.component,e=t.childFactory,i=Object(r.a)(t,["component","childFactory"]),o=this.state.contextValue,a=f(this.state.children).map(e);return delete i.appear,delete i.enter,delete i.exit,null===n?l.a.createElement(u.a.Provider,{value:o},a):l.a.createElement(u.a.Provider,{value:o},l.a.createElement(n,i,a))},n}(l.a.Component);b.propTypes={},b.defaultProps={component:"div",childFactory:function(t){return t}},n.a=b},yP8F:function(t,n,e){"use strict";e.d(n,"l",function(){return r}),e.d(n,"m",function(){return i}),e.d(n,"p",function(){return o}),e.d(n,"e",function(){return a}),e.d(n,"f",function(){return c}),e.d(n,"g",function(){return l}),e.d(n,"d",function(){return u}),e.d(n,"c",function(){return d}),e.d(n,"q",function(){return s}),e.d(n,"r",function(){return p}),e.d(n,"n",function(){return f}),e.d(n,"j",function(){return b}),e.d(n,"k",function(){return h}),e.d(n,"h",function(){return m}),e.d(n,"a",function(){return v}),e.d(n,"s",function(){return x}),e.d(n,"i",function(){return g}),e.d(n,"o",function(){return j}),e.d(n,"b",function(){return y});var r="#2e3092",i="#000",o="#818181",a="#DEDEDE",c="#B4B4B4",l="#6E6E6E",u="#F8F8F8",d="#F1F1F1",s="#FFFFFF",p="#FFFFFF !important",f="#f32e3b",b="#FE5D26",h="#FF0002",m="#46954D",v="#000000",x="#fffbbb",g="#59F89A",j="#F47171",y="#2E7BBF"}}]);