// Metro module 16291 (f16292). import _classCallCheck from "./_classCallCheck"; import _createClass from "./_createClass"; let env11708 = {}; const AgeRangeThresholdManager = function AgeRangeThresholdManager() { _classCallCheck(this, AgeRangeThresholdManager); this.thresholds = null; }; export const ageRangeThresholdManager = _createClass(AgeRangeThresholdManager, [{ key: "setAgeRangeThresholds", value: function setAgeRangeThresholds(a0) { if (a0[0] !== void 0 && a0[0] !== null) { if (!(a0[0] < 1) && !(a0[0] > 18)) { const r16 = 1 < a0.length; let r17 = 1; if (r16) { do { const r7 = a0[r17]; const r18 = a0[r17 - 1]; const r19 = r17; if (r7 !== void 0 && r18 !== void 0 && r7 <= r18) { throw new Error("PlayAgeRangeDeclaration: Age range thresholds must be in ascending order"); } r17 = r19 + 1; } while (r17 < a0.length); } const r22 = 1 < a0.length; let r24 = 1; if (r22) { do { const r25 = a0[r24]; const r26 = a0[r24 - 1]; const r27 = r24; if (r25 !== void 0 && r26 !== void 0 && r25 - r26 < 2) { throw new Error("PlayAgeRangeDeclaration: Age range thresholds must be at least 2 years apart"); } r24 = r27 + 1; } while (r24 < a0.length); } this.thresholds = [a0[0], a0[1], a0[2]]; return void 0; } throw new Error("PlayAgeRangeDeclaration: setAgeRangeThresholds: Age range thresholds must be between 1 and 18 (inclusive)"); } throw new Error("PlayAgeRangeDeclaration: First threshold age is required"); } }, { key: "getThresholds", value: function getThresholds() { if (this.thresholds === null) { throw new Error("PlayAgeRangeDeclaration: ageRangeThresholds not set"); } return this.thresholds; } }], [{ key: "getInstance", value: function getInstance() { if (!AgeRangeThresholdManager.instance) { const instance = { __proto__: AgeRangeThresholdManager.prototype }; _classCallCheck(instance, AgeRangeThresholdManager); instance.thresholds = null; AgeRangeThresholdManager.instance = instance; } return AgeRangeThresholdManager.instance; } }]).getInstance();