(window.webpackJsonpcarajas_global_context_0_3_15=window.webpackJsonpcarajas_global_context_0_3_15||[]).push([["UseGlobalContextAvantiRegionalizationSet"],{0:function(e,n){e.exports=React},33:function(e,n,t){"use strict";t.r(n),function(e){var n=t(1);t.p=Object(n.getPublicPath)("carajas.global-context@0.3.15");var r=Object(n.register)((function(){return t(34)}),e,"carajas.global-context@0.3.15","carajas.global-context@0.x","UseGlobalContextAvantiRegionalizationSet");r.renderHotReload,r.setupHMR}.call(this,t(2)(e))},34:function(e,n,t){"use strict";t.r(n);var r=t(4);n.default=r.c},4:function(e,n,t){"use strict";t.d(n,"c",(function(){return f})),t.d(n,"a",(function(){return d})),t.d(n,"b",(function(){return v}));var r=t(3),o=t(0),a=t.n(o),c="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;function i(e,n,t,r){var a=Object(o.useRef)(n);c((function(){a.current=n}),[n]),Object(o.useEffect)((function(){var n,o=null!==(n=null==t?void 0:t.current)&&void 0!==n?n:window;if(o&&o.addEventListener){var c=function(e){return a.current(e)};return o.addEventListener(e,c,r),function(){o.removeEventListener(e,c,r)}}}),[e,t,r])}function u(e,n){var t,a,u=Object(o.useCallback)((function(){if("undefined"==typeof window)return n;try{var t=window.localStorage.getItem(e);return t?function(e){try{return"undefined"===e?void 0:JSON.parse(null!=e?e:"")}catch(n){return void console.log("parsing error on",{value:e})}}(t):n}catch(t){return console.warn("Error reading localStorage key “".concat(e,"”:"),t),n}}),[n,e]),l=Object(o.useState)(u),s=Object(r.a)(l,2),f=s[0],d=s[1],v=(t=function(n){"undefined"==typeof window&&console.warn("Tried setting localStorage key “".concat(e,"” even though environment is not a client"));try{var t=n instanceof Function?n(f):n;window.localStorage.setItem(e,JSON.stringify(t)),d(t),window.dispatchEvent(new Event("local-storage"))}catch(n){console.warn("Error setting localStorage key “".concat(e,"”:"),n)}},a=Object(o.useRef)((function(){throw new Error("Cannot call an event handler while rendering.")})),c((function(){a.current=t}),[t]),Object(o.useCallback)((function(){return a.current.apply(a,arguments)}),[a]));Object(o.useEffect)((function(){d(u())}),[]);var g=Object(o.useCallback)((function(n){var t;(null===(t=n)||void 0===t?void 0:t.key)&&n.key!==e||d(u())}),[e,u]);return i("storage",g),i("local-storage",g),[f,v]}var l=a.a.createContext(void 0),s=a.a.createContext({}),f=function(){return a.a.useContext(l)},d=function(e){var n=e.children,t=e.general_screen_configuration,o=u("regionalizationData",void 0),c=Object(r.a)(o,2),i=c[0],f=c[1];return a.a.createElement(l.Provider,{value:f},a.a.createElement(s.Provider,{value:Object.assign(Object.assign({},i),{general_screen_configuration:t})},n))},v=function(){return a.a.useContext(s)}}},[[33,"common"]]]);