/*! 2.24.1-beta.0 */
(window.oilJsonp=window.oilJsonp||[]).push([[0],{362:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.oilWrapper=t.handleOptIn=t.oilShowPreferenceCenter=t.renderOil=void 0;var n=c(r(68)),o=r(17);Object.defineProperty(t,"renderOil",{enumerable:!0,get:function(){return o.renderOil}}),Object.defineProperty(t,"oilShowPreferenceCenter",{enumerable:!0,get:function(){return o.oilShowPreferenceCenter}}),Object.defineProperty(t,"handleOptIn",{enumerable:!0,get:function(){return o.handleOptIn}}),Object.defineProperty(t,"oilWrapper",{enumerable:!0,get:function(){return o.oilWrapper}}),t.locale=function(e){var t=this,r=(0,a.getLocale)();if(!function(e){var t;return!e||!e.texts||(t=e.texts,(0,n.default)(i.OIL_LABELS).filter(function(e){return!e.startsWith(i.OPTIONAL_LABEL_PREFIX)}).filter(function(e){return!t[e]})).length>0}(r))return e(this);var o=(0,a.getLocaleUrl)();if(!o)return s(f.default,r),e(this);(0,u.fetchJsonData)(o).then(function(n){return s(n,r),e(t)}).catch(function(n){return(0,l.logError)("OIL backend returned error: "+n+". Falling back to default locale '"+f.default.localeId+"', version "+f.default.version+"!"),s(f.default,r),e(t)})};var i=r(39),l=r(5),u=r(12),a=r(6),f=c(r(125));function c(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(t&&t.texts){for(var r in e.texts)t.texts[r]||(t.texts[r]=e.texts[r]);for(var n in f.default.texts)t.texts[n]||(0,l.logWarn)(n+" missing from locale config.");(0,a.setLocale)(t)}else(0,a.setLocale)(e)}}}]);