@youversion/platform-react-ui 1.10.0 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.cjs +455 -256
  2. package/dist/index.js +455 -256
  3. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -530,12 +530,12 @@ var NEVER = Object.freeze({
530
530
  // @__NO_SIDE_EFFECTS__
531
531
  function $constructor(name, initializer3, params) {
532
532
  function init(inst, def) {
533
- var _a2;
533
+ var _a3;
534
534
  Object.defineProperty(inst, "_zod", {
535
535
  value: inst._zod ?? {},
536
536
  enumerable: false
537
537
  });
538
- (_a2 = inst._zod).traits ?? (_a2.traits = /* @__PURE__ */ new Set());
538
+ (_a3 = inst._zod).traits ?? (_a3.traits = /* @__PURE__ */ new Set());
539
539
  inst._zod.traits.add(name);
540
540
  initializer3(inst, def);
541
541
  for (const k in _.prototype) {
@@ -550,10 +550,10 @@ function $constructor(name, initializer3, params) {
550
550
  }
551
551
  Object.defineProperty(Definition, "name", { value: name });
552
552
  function _(def) {
553
- var _a2;
553
+ var _a3;
554
554
  const inst = params?.Parent ? new Definition() : this;
555
555
  init(inst, def);
556
- (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
556
+ (_a3 = inst._zod).deferred ?? (_a3.deferred = []);
557
557
  for (const fn of inst._zod.deferred) {
558
558
  fn();
559
559
  }
@@ -1126,8 +1126,8 @@ function aborted(x, startIndex = 0) {
1126
1126
  }
1127
1127
  function prefixIssues(path, issues) {
1128
1128
  return issues.map((iss) => {
1129
- var _a2;
1130
- (_a2 = iss).path ?? (_a2.path = []);
1129
+ var _a3;
1130
+ (_a3 = iss).path ?? (_a3.path = []);
1131
1131
  iss.path.unshift(path);
1132
1132
  return iss;
1133
1133
  });
@@ -1291,7 +1291,7 @@ function formatError(error46, mapper = (issue2) => issue2.message) {
1291
1291
  function treeifyError(error46, mapper = (issue2) => issue2.message) {
1292
1292
  const result = { errors: [] };
1293
1293
  const processError = (error47, path = []) => {
1294
- var _a2, _b;
1294
+ var _a3, _b;
1295
1295
  for (const issue2 of error47.issues) {
1296
1296
  if (issue2.code === "invalid_union" && issue2.errors.length) {
1297
1297
  issue2.errors.map((issues) => processError({ issues }, issue2.path));
@@ -1312,7 +1312,7 @@ function treeifyError(error46, mapper = (issue2) => issue2.message) {
1312
1312
  const terminal = i === fullpath.length - 1;
1313
1313
  if (typeof el === "string") {
1314
1314
  curr.properties ?? (curr.properties = {});
1315
- (_a2 = curr.properties)[el] ?? (_a2[el] = { errors: [] });
1315
+ (_a3 = curr.properties)[el] ?? (_a3[el] = { errors: [] });
1316
1316
  curr = curr.properties[el];
1317
1317
  } else {
1318
1318
  curr.items ?? (curr.items = []);
@@ -1601,10 +1601,10 @@ var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
1601
1601
 
1602
1602
  // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/checks.js
1603
1603
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
1604
- var _a2;
1604
+ var _a3;
1605
1605
  inst._zod ?? (inst._zod = {});
1606
1606
  inst._zod.def = def;
1607
- (_a2 = inst._zod).onattach ?? (_a2.onattach = []);
1607
+ (_a3 = inst._zod).onattach ?? (_a3.onattach = []);
1608
1608
  });
1609
1609
  var numericOriginMap = {
1610
1610
  number: "number",
@@ -1670,8 +1670,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
1670
1670
  var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
1671
1671
  $ZodCheck.init(inst, def);
1672
1672
  inst._zod.onattach.push((inst2) => {
1673
- var _a2;
1674
- (_a2 = inst2._zod.bag).multipleOf ?? (_a2.multipleOf = def.value);
1673
+ var _a3;
1674
+ (_a3 = inst2._zod.bag).multipleOf ?? (_a3.multipleOf = def.value);
1675
1675
  });
1676
1676
  inst._zod.check = (payload) => {
1677
1677
  if (typeof payload.value !== typeof def.value)
@@ -1798,9 +1798,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
1798
1798
  };
1799
1799
  });
1800
1800
  var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
1801
- var _a2;
1801
+ var _a3;
1802
1802
  $ZodCheck.init(inst, def);
1803
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
1803
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
1804
1804
  const val = payload.value;
1805
1805
  return !nullish(val) && val.size !== void 0;
1806
1806
  });
@@ -1826,9 +1826,9 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
1826
1826
  };
1827
1827
  });
1828
1828
  var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
1829
- var _a2;
1829
+ var _a3;
1830
1830
  $ZodCheck.init(inst, def);
1831
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
1831
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
1832
1832
  const val = payload.value;
1833
1833
  return !nullish(val) && val.size !== void 0;
1834
1834
  });
@@ -1854,9 +1854,9 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
1854
1854
  };
1855
1855
  });
1856
1856
  var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
1857
- var _a2;
1857
+ var _a3;
1858
1858
  $ZodCheck.init(inst, def);
1859
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
1859
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
1860
1860
  const val = payload.value;
1861
1861
  return !nullish(val) && val.size !== void 0;
1862
1862
  });
@@ -1884,9 +1884,9 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
1884
1884
  };
1885
1885
  });
1886
1886
  var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
1887
- var _a2;
1887
+ var _a3;
1888
1888
  $ZodCheck.init(inst, def);
1889
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
1889
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
1890
1890
  const val = payload.value;
1891
1891
  return !nullish(val) && val.length !== void 0;
1892
1892
  });
@@ -1913,9 +1913,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
1913
1913
  };
1914
1914
  });
1915
1915
  var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
1916
- var _a2;
1916
+ var _a3;
1917
1917
  $ZodCheck.init(inst, def);
1918
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
1918
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
1919
1919
  const val = payload.value;
1920
1920
  return !nullish(val) && val.length !== void 0;
1921
1921
  });
@@ -1942,9 +1942,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
1942
1942
  };
1943
1943
  });
1944
1944
  var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
1945
- var _a2;
1945
+ var _a3;
1946
1946
  $ZodCheck.init(inst, def);
1947
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
1947
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
1948
1948
  const val = payload.value;
1949
1949
  return !nullish(val) && val.length !== void 0;
1950
1950
  });
@@ -1973,7 +1973,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
1973
1973
  };
1974
1974
  });
1975
1975
  var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
1976
- var _a2, _b;
1976
+ var _a3, _b;
1977
1977
  $ZodCheck.init(inst, def);
1978
1978
  inst._zod.onattach.push((inst2) => {
1979
1979
  const bag = inst2._zod.bag;
@@ -1984,7 +1984,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
1984
1984
  }
1985
1985
  });
1986
1986
  if (def.pattern)
1987
- (_a2 = inst._zod).check ?? (_a2.check = (payload) => {
1987
+ (_a3 = inst._zod).check ?? (_a3.check = (payload) => {
1988
1988
  def.pattern.lastIndex = 0;
1989
1989
  if (def.pattern.test(payload.value))
1990
1990
  return;
@@ -2186,7 +2186,7 @@ var version = {
2186
2186
 
2187
2187
  // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/schemas.js
2188
2188
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
2189
- var _a2;
2189
+ var _a3;
2190
2190
  inst ?? (inst = {});
2191
2191
  inst._zod.def = def;
2192
2192
  inst._zod.bag = inst._zod.bag || {};
@@ -2201,7 +2201,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
2201
2201
  }
2202
2202
  }
2203
2203
  if (checks.length === 0) {
2204
- (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
2204
+ (_a3 = inst._zod).deferred ?? (_a3.deferred = []);
2205
2205
  inst._zod.deferred?.push(() => {
2206
2206
  inst._zod.run = inst._zod.parse;
2207
2207
  });
@@ -10642,7 +10642,7 @@ var JSONSchemaGenerator = class {
10642
10642
  this.seen = /* @__PURE__ */ new Map();
10643
10643
  }
10644
10644
  process(schema, _params = { path: [], schemaPath: [] }) {
10645
- var _a2;
10645
+ var _a3;
10646
10646
  const def = schema._zod.def;
10647
10647
  const formatMap = {
10648
10648
  guid: "uuid",
@@ -11151,7 +11151,7 @@ var JSONSchemaGenerator = class {
11151
11151
  delete result.schema.default;
11152
11152
  }
11153
11153
  if (this.io === "input" && result.schema._prefault)
11154
- (_a2 = result.schema).default ?? (_a2.default = result.schema._prefault);
11154
+ (_a3 = result.schema).default ?? (_a3.default = result.schema._prefault);
11155
11155
  delete result.schema._prefault;
11156
11156
  const _result = this.seen.get(schema);
11157
11157
  return _result.schema;
@@ -12936,18 +12936,400 @@ var BibleClient = class {
12936
12936
  return this.client.get(`/v1/verse_of_the_days/${day}`);
12937
12937
  }
12938
12938
  };
12939
- var LanguagesClient = class {
12939
+ var BOOK_IDS = [
12940
+ "GEN",
12941
+ "EXO",
12942
+ "LEV",
12943
+ "NUM",
12944
+ "DEU",
12945
+ "JOS",
12946
+ "JDG",
12947
+ "RUT",
12948
+ "1SA",
12949
+ "2SA",
12950
+ "1KI",
12951
+ "2KI",
12952
+ "1CH",
12953
+ "2CH",
12954
+ "EZR",
12955
+ "NEH",
12956
+ "EST",
12957
+ "JOB",
12958
+ "PSA",
12959
+ "PRO",
12960
+ "ECC",
12961
+ "SNG",
12962
+ "ISA",
12963
+ "JER",
12964
+ "LAM",
12965
+ "EZK",
12966
+ "DAN",
12967
+ "HOS",
12968
+ "JOL",
12969
+ "AMO",
12970
+ "OBA",
12971
+ "JON",
12972
+ "MIC",
12973
+ "NAM",
12974
+ "HAB",
12975
+ "ZEP",
12976
+ "HAG",
12977
+ "ZEC",
12978
+ "MAL",
12979
+ "MAT",
12980
+ "MRK",
12981
+ "LUK",
12982
+ "JHN",
12983
+ "ACT",
12984
+ "ROM",
12985
+ "1CO",
12986
+ "2CO",
12987
+ "GAL",
12988
+ "EPH",
12989
+ "PHP",
12990
+ "COL",
12991
+ "1TH",
12992
+ "2TH",
12993
+ "1TI",
12994
+ "2TI",
12995
+ "TIT",
12996
+ "PHM",
12997
+ "HEB",
12998
+ "JAS",
12999
+ "1PE",
13000
+ "2PE",
13001
+ "1JN",
13002
+ "2JN",
13003
+ "3JN",
13004
+ "JUD",
13005
+ "REV",
13006
+ // dc (Apocrypha) books
13007
+ "TOB",
13008
+ "JDT",
13009
+ "ESG",
13010
+ "WIS",
13011
+ "SIR",
13012
+ "BAR",
13013
+ "LJE",
13014
+ "S3Y",
13015
+ "SUS",
13016
+ "BEL",
13017
+ "1MA",
13018
+ "2MA",
13019
+ "3MA",
13020
+ "4MA",
13021
+ "1ES",
13022
+ "2ES",
13023
+ "MAN",
13024
+ "PS2",
13025
+ "ODA",
13026
+ "PSS",
13027
+ "3ES",
13028
+ "EZA",
13029
+ "5EZ",
13030
+ "6EZ",
13031
+ "DAG",
13032
+ "PS3",
13033
+ "2BA",
13034
+ "LBA",
13035
+ "JUB",
13036
+ "ENO",
13037
+ "1MQ",
13038
+ "2MQ",
13039
+ "3MQ",
13040
+ "REP",
13041
+ "4BA",
13042
+ "LAO",
13043
+ // Luke-Acts combo, treated canonically as New Testament
13044
+ "LKA"
13045
+ ];
13046
+ var BOOK_CANON = {
13047
+ GEN: "old_testament",
13048
+ EXO: "old_testament",
13049
+ LEV: "old_testament",
13050
+ NUM: "old_testament",
13051
+ DEU: "old_testament",
13052
+ JOS: "old_testament",
13053
+ JDG: "old_testament",
13054
+ RUT: "old_testament",
13055
+ "1SA": "old_testament",
13056
+ "2SA": "old_testament",
13057
+ "1KI": "old_testament",
13058
+ "2KI": "old_testament",
13059
+ "1CH": "old_testament",
13060
+ "2CH": "old_testament",
13061
+ EZR: "old_testament",
13062
+ NEH: "old_testament",
13063
+ EST: "old_testament",
13064
+ JOB: "old_testament",
13065
+ PSA: "old_testament",
13066
+ PRO: "old_testament",
13067
+ ECC: "old_testament",
13068
+ SNG: "old_testament",
13069
+ ISA: "old_testament",
13070
+ JER: "old_testament",
13071
+ LAM: "old_testament",
13072
+ EZK: "old_testament",
13073
+ DAN: "old_testament",
13074
+ HOS: "old_testament",
13075
+ JOL: "old_testament",
13076
+ AMO: "old_testament",
13077
+ OBA: "old_testament",
13078
+ JON: "old_testament",
13079
+ MIC: "old_testament",
13080
+ NAM: "old_testament",
13081
+ HAB: "old_testament",
13082
+ ZEP: "old_testament",
13083
+ HAG: "old_testament",
13084
+ ZEC: "old_testament",
13085
+ MAL: "old_testament",
13086
+ MAT: "new_testament",
13087
+ MRK: "new_testament",
13088
+ LUK: "new_testament",
13089
+ JHN: "new_testament",
13090
+ ACT: "new_testament",
13091
+ ROM: "new_testament",
13092
+ "1CO": "new_testament",
13093
+ "2CO": "new_testament",
13094
+ GAL: "new_testament",
13095
+ EPH: "new_testament",
13096
+ PHP: "new_testament",
13097
+ COL: "new_testament",
13098
+ "1TH": "new_testament",
13099
+ "2TH": "new_testament",
13100
+ "1TI": "new_testament",
13101
+ "2TI": "new_testament",
13102
+ TIT: "new_testament",
13103
+ PHM: "new_testament",
13104
+ HEB: "new_testament",
13105
+ JAS: "new_testament",
13106
+ "1PE": "new_testament",
13107
+ "2PE": "new_testament",
13108
+ "1JN": "new_testament",
13109
+ "2JN": "new_testament",
13110
+ "3JN": "new_testament",
13111
+ JUD: "new_testament",
13112
+ REV: "new_testament",
13113
+ TOB: "deuterocanon",
13114
+ JDT: "deuterocanon",
13115
+ ESG: "deuterocanon",
13116
+ WIS: "deuterocanon",
13117
+ SIR: "deuterocanon",
13118
+ BAR: "deuterocanon",
13119
+ LJE: "deuterocanon",
13120
+ S3Y: "deuterocanon",
13121
+ SUS: "deuterocanon",
13122
+ BEL: "deuterocanon",
13123
+ "1MA": "deuterocanon",
13124
+ "2MA": "deuterocanon",
13125
+ "3MA": "deuterocanon",
13126
+ "4MA": "deuterocanon",
13127
+ "1ES": "deuterocanon",
13128
+ "2ES": "deuterocanon",
13129
+ MAN: "deuterocanon",
13130
+ PS2: "deuterocanon",
13131
+ ODA: "deuterocanon",
13132
+ PSS: "deuterocanon",
13133
+ "3ES": "deuterocanon",
13134
+ EZA: "deuterocanon",
13135
+ "5EZ": "deuterocanon",
13136
+ "6EZ": "deuterocanon",
13137
+ DAG: "deuterocanon",
13138
+ PS3: "deuterocanon",
13139
+ "2BA": "deuterocanon",
13140
+ LBA: "deuterocanon",
13141
+ JUB: "deuterocanon",
13142
+ ENO: "deuterocanon",
13143
+ "1MQ": "deuterocanon",
13144
+ "2MQ": "deuterocanon",
13145
+ "3MQ": "deuterocanon",
13146
+ REP: "deuterocanon",
13147
+ "4BA": "deuterocanon",
13148
+ LAO: "deuterocanon",
13149
+ LKA: "new_testament"
13150
+ // Luke-Acts combo, treated canonically as New Testament
13151
+ };
13152
+ var BibleVerseSchema = external_exports.object({
13153
+ /** Verse identifier (e.g., "1") */
13154
+ id: external_exports.string(),
13155
+ /** Passage identifier (e.g., "MAT.1.1") */
13156
+ passage_id: external_exports.string(),
13157
+ /** Verse Number (e.g., "1") */
13158
+ title: external_exports.string()
13159
+ });
13160
+ var BibleChapterSchema = external_exports.object({
13161
+ /** Chapter identifier (e.g., "1") */
13162
+ id: external_exports.string(),
13163
+ /** Passage identifier (e.g., "MAT.1") */
13164
+ passage_id: external_exports.string(),
13165
+ /** Chapter title (e.g., "1") */
13166
+ title: external_exports.string(),
13167
+ /** Array of verses */
13168
+ verses: external_exports.array(BibleVerseSchema).optional()
13169
+ });
13170
+ var CanonSchema = external_exports.enum(["old_testament", "new_testament", "deuterocanon"]);
13171
+ var BibleBookIntroSchema = external_exports.object({
13172
+ /** Intro identifier */
13173
+ id: external_exports.string(),
13174
+ /** Intro passage identifier */
13175
+ passage_id: external_exports.string(),
13176
+ /** Intro title */
13177
+ title: external_exports.string()
13178
+ });
13179
+ var BookUsfmSchema = external_exports.union([
13180
+ ...BOOK_IDS.map((id) => external_exports.literal(id)),
13181
+ external_exports.string().length(3)
13182
+ ]);
13183
+ var BibleBookSchema = external_exports.object({
13184
+ /** Book identifier (e.g., "MAT") */
13185
+ id: BookUsfmSchema,
13186
+ /** Book title (e.g., "Genesis") */
13187
+ title: external_exports.string(),
13188
+ /** Full Book title (e.g., "The First Book of Moses, Commonly Called Genesis") */
13189
+ full_title: external_exports.string(),
13190
+ /** Book abbreviation (e.g., "Gen") */
13191
+ abbreviation: external_exports.string().optional(),
13192
+ /** Canonical section (new_testament, old_testament, deuterocanon) */
13193
+ canon: CanonSchema,
13194
+ /** Intro metadata (optional) */
13195
+ intro: BibleBookIntroSchema.optional(),
13196
+ /** Array of chapter identifiers (e.g., ["GEN.1", "GEN.2", "GEN.3"]) */
13197
+ chapters: external_exports.array(BibleChapterSchema).optional()
13198
+ });
13199
+ var BibleIndexVerseSchema = external_exports.object({
13200
+ /** Verse identifier */
13201
+ id: external_exports.string(),
13202
+ /** Verse title */
13203
+ title: external_exports.string()
13204
+ });
13205
+ var BibleIndexChapterSchema = external_exports.object({
13206
+ /** Chapter identifier */
13207
+ id: external_exports.string(),
13208
+ /** Chapter title */
13209
+ title: external_exports.string(),
13210
+ /** Array of verses in this chapter */
13211
+ verses: external_exports.array(BibleIndexVerseSchema)
13212
+ });
13213
+ var BibleIndexBookSchema = external_exports.object({
13214
+ /** Book identifier */
13215
+ id: BookUsfmSchema,
13216
+ /** Book title */
13217
+ title: external_exports.string(),
13218
+ /** Full book title */
13219
+ full_title: external_exports.string(),
13220
+ /** Book abbreviation */
13221
+ abbreviation: external_exports.string(),
13222
+ /** Canonical section */
13223
+ canon: CanonSchema,
13224
+ /** Array of chapters in this book */
13225
+ chapters: external_exports.array(BibleIndexChapterSchema)
13226
+ });
13227
+ var _BibleIndexSchema = external_exports.object({
13228
+ /** Text direction (e.g., "ltr") */
13229
+ text_direction: external_exports.string(),
13230
+ /** Array of books with chapters and verses */
13231
+ books: external_exports.array(BibleIndexBookSchema)
13232
+ });
13233
+ var _HighlightSchema = external_exports.object({
13234
+ /** Bible version identifier */
13235
+ version_id: external_exports.number().int().positive(),
13236
+ /** Passage identifier (e.g., "MAT.1.1") */
13237
+ passage_id: external_exports.string(),
13238
+ /** Hex color code (6 digits, no #) */
13239
+ color: external_exports.string().regex(/^[0-9a-f]{6}$/)
13240
+ });
13241
+ var _CreateHighlightSchema = external_exports.object({
13242
+ /** Bible version identifier */
13243
+ version_id: external_exports.number().int().positive(),
13244
+ /** Passage identifier (e.g., "MAT.1.1") */
13245
+ passage_id: external_exports.string(),
13246
+ /** Hex color code (6 digits, no #) */
13247
+ color: external_exports.string().regex(/^[0-9a-f]{6}$/)
13248
+ });
13249
+ var LanguageSchema = external_exports.object({
13250
+ /** BCP 47 language identifier (e.g., "en") */
13251
+ id: external_exports.string().regex(/^[a-z]{2,3}(?:-[A-Z][a-z]{3})?$/, "BCP 47 id limited to language or language+script"),
13252
+ /** ISO 639 language code */
13253
+ language: external_exports.string().regex(/^[a-z]{2,3}$/, "ISO 639 canonical language subtag"),
13254
+ /** ISO 15924 script code (e.g., "Latn") */
13255
+ script: external_exports.string().regex(/^[A-Z][a-z]{3}$/, 'Script must match ISO 15924 format (e.g., "Latn")').nullable().optional(),
13256
+ /** Script name (e.g., "Latin") */
13257
+ script_name: external_exports.string().nullable().optional(),
13258
+ /** Language aliases */
13259
+ aliases: external_exports.array(external_exports.string()).optional(),
13260
+ /** Display names for different locales */
13261
+ display_names: external_exports.record(external_exports.string(), external_exports.string()).optional(),
13262
+ /** Available scripts for this language (e.g., ["Cyrl", "Latn"]) */
13263
+ scripts: external_exports.array(external_exports.string().regex(/^[A-Z][a-z]{3}$/, "ISO 15924 script code")).optional(),
13264
+ /** Language variants (e.g., ["1996", "fonipa"]) */
13265
+ variants: external_exports.array(external_exports.string()).optional(),
13266
+ /** ISO 3166-1 alpha-2 country codes (e.g., ["RS", "BA", "ME"]) */
13267
+ countries: external_exports.array(external_exports.string().regex(/^[A-Z]{2}$/, "ISO 3166-1 alpha-2 country code")).optional(),
13268
+ /** Text direction (ltr or rtl) */
13269
+ text_direction: external_exports.enum(["ltr", "rtl"]).optional(),
13270
+ /** Writing population count */
13271
+ writing_population: external_exports.number().int().optional(),
13272
+ /** Speaking population count */
13273
+ speaking_population: external_exports.number().int().optional(),
13274
+ /** Default Bible version ID for this language */
13275
+ default_bible_id: external_exports.number().int().nullable().optional()
13276
+ });
13277
+ var BiblePassageSchema = external_exports.object({
13278
+ /** Passage identifier (e.g., "MAT.1.1") */
13279
+ id: external_exports.string(),
13280
+ /** Passage content text */
13281
+ content: external_exports.string(),
13282
+ /** Human-readable reference (e.g., "Matthew 1:1") */
13283
+ reference: external_exports.string()
13284
+ });
13285
+ var BibleVersionSchema = external_exports.object({
13286
+ /** Bible version identifier */
13287
+ id: external_exports.number().int(),
13288
+ /** Bible version abbreviation */
13289
+ abbreviation: external_exports.string(),
13290
+ /** Long copyright text */
13291
+ promotional_content: external_exports.string().nullable().optional(),
13292
+ /** Short copyright text */
13293
+ copyright: external_exports.string().nullable().optional(),
13294
+ /** Bible information text */
13295
+ info: external_exports.string().nullable().optional(),
13296
+ /** Publisher URL */
13297
+ publisher_url: external_exports.url().nullable().optional(),
13298
+ /** Language tag (e.g., "en") */
13299
+ language_tag: external_exports.string(),
13300
+ /** Localized abbreviation */
13301
+ localized_abbreviation: external_exports.string(),
13302
+ /** Localized title */
13303
+ localized_title: external_exports.string(),
13304
+ /** Organization ID of publisher */
13305
+ organization_id: external_exports.string().nullable().optional(),
13306
+ /** Full title */
13307
+ title: external_exports.string(),
13308
+ /** Array of book identifiers (e.g., ["GEN", "EXO", "LEV"]) */
13309
+ books: external_exports.array(BookUsfmSchema),
13310
+ /** YouVersion deep link URL */
13311
+ youversion_deep_link: external_exports.url()
13312
+ });
13313
+ var VOTDSchema = external_exports.object({
13314
+ /** Day of year (1-366) */
13315
+ day: external_exports.number().int().min(1).max(366),
13316
+ /** Passage identifier (e.g., "JHN.3.16") */
13317
+ passage_id: external_exports.string()
13318
+ });
13319
+ var _UserSchema = external_exports.object({
13320
+ avatar_url: external_exports.string(),
13321
+ first_name: external_exports.string(),
13322
+ id: external_exports.uuid(),
13323
+ last_name: external_exports.string()
13324
+ });
13325
+ var _a;
13326
+ var LanguagesClient = (_a = class {
12940
13327
  /**
12941
13328
  * Creates a new LanguagesClient instance.
12942
13329
  * @param client The API client to use for requests.
12943
13330
  */
12944
13331
  constructor(client) {
12945
13332
  __publicField(this, "client");
12946
- __publicField(this, "languageIdSchema", external_exports.string().trim().min(1, "Language ID must be a non-empty string").regex(
12947
- /^[a-z]{2,3}(?:-[A-Z][a-z]{3})?$/,
12948
- "Language ID must match BCP 47 format (language or language+script)"
12949
- ));
12950
- __publicField(this, "countrySchema", external_exports.string().trim().length(2, "Country code must be a 2-character ISO 3166-1 alpha-2 code").toUpperCase());
12951
13333
  this.client = client;
12952
13334
  }
12953
13335
  /**
@@ -12958,12 +13340,23 @@ var LanguagesClient = class {
12958
13340
  async getLanguages(options = {}) {
12959
13341
  const params = {};
12960
13342
  if (options.country !== void 0) {
12961
- const country = this.countrySchema.parse(options.country);
13343
+ const country = _a.countrySchema.parse(options.country);
12962
13344
  params.country = country;
12963
13345
  }
13346
+ if (options.fields !== void 0) {
13347
+ const fieldsSchema = external_exports.array(LanguageSchema.keyof());
13348
+ fieldsSchema.parse(options.fields);
13349
+ params["fields[]"] = options.fields;
13350
+ }
12964
13351
  if (options.page_size !== void 0) {
12965
- const pageSizeSchema = external_exports.number().int().positive();
13352
+ const pageSizeSchema = external_exports.union([external_exports.number().int().positive(), external_exports.literal("*")]);
12966
13353
  pageSizeSchema.parse(options.page_size);
13354
+ if (options.page_size === "*") {
13355
+ const fieldsCount = options.fields?.length ?? 0;
13356
+ if (fieldsCount < 1 || fieldsCount > 3) {
13357
+ throw new Error('page_size="*" requires 1-3 fields to be specified');
13358
+ }
13359
+ }
12967
13360
  params.page_size = options.page_size;
12968
13361
  }
12969
13362
  if (options.page_token !== void 0) {
@@ -12977,12 +13370,31 @@ var LanguagesClient = class {
12977
13370
  * @returns The requested Language object.
12978
13371
  */
12979
13372
  async getLanguage(languageId) {
12980
- this.languageIdSchema.parse(languageId);
13373
+ _a.languageIdSchema.parse(languageId);
12981
13374
  return this.client.get(`/v1/languages/${languageId}`);
12982
13375
  }
12983
- };
12984
- var _a;
12985
- var YouVersionPlatformConfiguration = (_a = class {
13376
+ }, __publicField(_a, "languageIdSchema", external_exports.string().trim().min(1, "Language ID must be a non-empty string").regex(
13377
+ /^[a-z]{2,3}(?:-[A-Z][a-z]{3})?$/,
13378
+ "Language ID must match BCP 47 format (language or language+script)"
13379
+ )), __publicField(_a, "countrySchema", external_exports.string().trim().length(2, "Country code must be a 2-character ISO 3166-1 alpha-2 code").toUpperCase()), __publicField(_a, "GetLanguagesOptionsSchema", external_exports.object({
13380
+ page_size: external_exports.union([external_exports.number(), external_exports.literal("*")]).optional(),
13381
+ fields: external_exports.array(LanguageSchema.keyof()).optional(),
13382
+ page_token: external_exports.string().optional(),
13383
+ country: _a.countrySchema
13384
+ }).refine(
13385
+ (data) => {
13386
+ if (data.page_size === "*") {
13387
+ return data.fields && data.fields?.length >= 1 && data.fields?.length <= 3;
13388
+ }
13389
+ return true;
13390
+ },
13391
+ {
13392
+ message: 'page_size="*" required 1-3 fields to be specified',
13393
+ path: ["page_size", "fields"]
13394
+ }
13395
+ )), _a);
13396
+ var _a2;
13397
+ var YouVersionPlatformConfiguration = (_a2 = class {
12986
13398
  static getOrSetInstallationId() {
12987
13399
  if (typeof window === "undefined") {
12988
13400
  return "";
@@ -13066,7 +13478,7 @@ var YouVersionPlatformConfiguration = (_a = class {
13066
13478
  static set expiryDateKey(value) {
13067
13479
  this._expiryDateKey = value;
13068
13480
  }
13069
- }, __publicField(_a, "_appKey", null), __publicField(_a, "_installationId", null), __publicField(_a, "_apiHost", "api.youversion.com"), __publicField(_a, "_refreshTokenKey", null), __publicField(_a, "_expiryDateKey", null), _a);
13481
+ }, __publicField(_a2, "_appKey", null), __publicField(_a2, "_installationId", null), __publicField(_a2, "_apiHost", "api.youversion.com"), __publicField(_a2, "_refreshTokenKey", null), __publicField(_a2, "_expiryDateKey", null), _a2);
13070
13482
  var HighlightsClient = class {
13071
13483
  /**
13072
13484
  * Creates a new HighlightsClient instance.
@@ -13689,219 +14101,6 @@ var YouVersionAPI = class {
13689
14101
  return request;
13690
14102
  }
13691
14103
  };
13692
- var BOOK_IDS = [
13693
- "GEN",
13694
- "EXO",
13695
- "LEV",
13696
- "NUM",
13697
- "DEU",
13698
- "JOS",
13699
- "JDG",
13700
- "RUT",
13701
- "1SA",
13702
- "2SA",
13703
- "1KI",
13704
- "2KI",
13705
- "1CH",
13706
- "2CH",
13707
- "EZR",
13708
- "NEH",
13709
- "EST",
13710
- "JOB",
13711
- "PSA",
13712
- "PRO",
13713
- "ECC",
13714
- "SNG",
13715
- "ISA",
13716
- "JER",
13717
- "LAM",
13718
- "EZK",
13719
- "DAN",
13720
- "HOS",
13721
- "JOL",
13722
- "AMO",
13723
- "OBA",
13724
- "JON",
13725
- "MIC",
13726
- "NAM",
13727
- "HAB",
13728
- "ZEP",
13729
- "HAG",
13730
- "ZEC",
13731
- "MAL",
13732
- "MAT",
13733
- "MRK",
13734
- "LUK",
13735
- "JHN",
13736
- "ACT",
13737
- "ROM",
13738
- "1CO",
13739
- "2CO",
13740
- "GAL",
13741
- "EPH",
13742
- "PHP",
13743
- "COL",
13744
- "1TH",
13745
- "2TH",
13746
- "1TI",
13747
- "2TI",
13748
- "TIT",
13749
- "PHM",
13750
- "HEB",
13751
- "JAS",
13752
- "1PE",
13753
- "2PE",
13754
- "1JN",
13755
- "2JN",
13756
- "3JN",
13757
- "JUD",
13758
- "REV",
13759
- // dc (Apocrypha) books
13760
- "TOB",
13761
- "JDT",
13762
- "ESG",
13763
- "WIS",
13764
- "SIR",
13765
- "BAR",
13766
- "LJE",
13767
- "S3Y",
13768
- "SUS",
13769
- "BEL",
13770
- "1MA",
13771
- "2MA",
13772
- "3MA",
13773
- "4MA",
13774
- "1ES",
13775
- "2ES",
13776
- "MAN",
13777
- "PS2",
13778
- "ODA",
13779
- "PSS",
13780
- "3ES",
13781
- "EZA",
13782
- "5EZ",
13783
- "6EZ",
13784
- "DAG",
13785
- "PS3",
13786
- "2BA",
13787
- "LBA",
13788
- "JUB",
13789
- "ENO",
13790
- "1MQ",
13791
- "2MQ",
13792
- "3MQ",
13793
- "REP",
13794
- "4BA",
13795
- "LAO",
13796
- // Luke-Acts combo, treated canonically as New Testament
13797
- "LKA"
13798
- ];
13799
- var BOOK_CANON = {
13800
- GEN: "old_testament",
13801
- EXO: "old_testament",
13802
- LEV: "old_testament",
13803
- NUM: "old_testament",
13804
- DEU: "old_testament",
13805
- JOS: "old_testament",
13806
- JDG: "old_testament",
13807
- RUT: "old_testament",
13808
- "1SA": "old_testament",
13809
- "2SA": "old_testament",
13810
- "1KI": "old_testament",
13811
- "2KI": "old_testament",
13812
- "1CH": "old_testament",
13813
- "2CH": "old_testament",
13814
- EZR: "old_testament",
13815
- NEH: "old_testament",
13816
- EST: "old_testament",
13817
- JOB: "old_testament",
13818
- PSA: "old_testament",
13819
- PRO: "old_testament",
13820
- ECC: "old_testament",
13821
- SNG: "old_testament",
13822
- ISA: "old_testament",
13823
- JER: "old_testament",
13824
- LAM: "old_testament",
13825
- EZK: "old_testament",
13826
- DAN: "old_testament",
13827
- HOS: "old_testament",
13828
- JOL: "old_testament",
13829
- AMO: "old_testament",
13830
- OBA: "old_testament",
13831
- JON: "old_testament",
13832
- MIC: "old_testament",
13833
- NAM: "old_testament",
13834
- HAB: "old_testament",
13835
- ZEP: "old_testament",
13836
- HAG: "old_testament",
13837
- ZEC: "old_testament",
13838
- MAL: "old_testament",
13839
- MAT: "new_testament",
13840
- MRK: "new_testament",
13841
- LUK: "new_testament",
13842
- JHN: "new_testament",
13843
- ACT: "new_testament",
13844
- ROM: "new_testament",
13845
- "1CO": "new_testament",
13846
- "2CO": "new_testament",
13847
- GAL: "new_testament",
13848
- EPH: "new_testament",
13849
- PHP: "new_testament",
13850
- COL: "new_testament",
13851
- "1TH": "new_testament",
13852
- "2TH": "new_testament",
13853
- "1TI": "new_testament",
13854
- "2TI": "new_testament",
13855
- TIT: "new_testament",
13856
- PHM: "new_testament",
13857
- HEB: "new_testament",
13858
- JAS: "new_testament",
13859
- "1PE": "new_testament",
13860
- "2PE": "new_testament",
13861
- "1JN": "new_testament",
13862
- "2JN": "new_testament",
13863
- "3JN": "new_testament",
13864
- JUD: "new_testament",
13865
- REV: "new_testament",
13866
- TOB: "deuterocanon",
13867
- JDT: "deuterocanon",
13868
- ESG: "deuterocanon",
13869
- WIS: "deuterocanon",
13870
- SIR: "deuterocanon",
13871
- BAR: "deuterocanon",
13872
- LJE: "deuterocanon",
13873
- S3Y: "deuterocanon",
13874
- SUS: "deuterocanon",
13875
- BEL: "deuterocanon",
13876
- "1MA": "deuterocanon",
13877
- "2MA": "deuterocanon",
13878
- "3MA": "deuterocanon",
13879
- "4MA": "deuterocanon",
13880
- "1ES": "deuterocanon",
13881
- "2ES": "deuterocanon",
13882
- MAN: "deuterocanon",
13883
- PS2: "deuterocanon",
13884
- ODA: "deuterocanon",
13885
- PSS: "deuterocanon",
13886
- "3ES": "deuterocanon",
13887
- EZA: "deuterocanon",
13888
- "5EZ": "deuterocanon",
13889
- "6EZ": "deuterocanon",
13890
- DAG: "deuterocanon",
13891
- PS3: "deuterocanon",
13892
- "2BA": "deuterocanon",
13893
- LBA: "deuterocanon",
13894
- JUB: "deuterocanon",
13895
- ENO: "deuterocanon",
13896
- "1MQ": "deuterocanon",
13897
- "2MQ": "deuterocanon",
13898
- "3MQ": "deuterocanon",
13899
- REP: "deuterocanon",
13900
- "4BA": "deuterocanon",
13901
- LAO: "deuterocanon",
13902
- LKA: "new_testament"
13903
- // Luke-Acts combo, treated canonically as New Testament
13904
- };
13905
14104
 
13906
14105
  // src/components/icons/info.tsx
13907
14106
  import { jsx, jsxs } from "react/jsx-runtime";