@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.cjs CHANGED
@@ -575,12 +575,12 @@ var NEVER = Object.freeze({
575
575
  // @__NO_SIDE_EFFECTS__
576
576
  function $constructor(name, initializer3, params) {
577
577
  function init(inst, def) {
578
- var _a2;
578
+ var _a3;
579
579
  Object.defineProperty(inst, "_zod", {
580
580
  value: inst._zod ?? {},
581
581
  enumerable: false
582
582
  });
583
- (_a2 = inst._zod).traits ?? (_a2.traits = /* @__PURE__ */ new Set());
583
+ (_a3 = inst._zod).traits ?? (_a3.traits = /* @__PURE__ */ new Set());
584
584
  inst._zod.traits.add(name);
585
585
  initializer3(inst, def);
586
586
  for (const k in _.prototype) {
@@ -595,10 +595,10 @@ function $constructor(name, initializer3, params) {
595
595
  }
596
596
  Object.defineProperty(Definition, "name", { value: name });
597
597
  function _(def) {
598
- var _a2;
598
+ var _a3;
599
599
  const inst = params?.Parent ? new Definition() : this;
600
600
  init(inst, def);
601
- (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
601
+ (_a3 = inst._zod).deferred ?? (_a3.deferred = []);
602
602
  for (const fn of inst._zod.deferred) {
603
603
  fn();
604
604
  }
@@ -1171,8 +1171,8 @@ function aborted(x, startIndex = 0) {
1171
1171
  }
1172
1172
  function prefixIssues(path, issues) {
1173
1173
  return issues.map((iss) => {
1174
- var _a2;
1175
- (_a2 = iss).path ?? (_a2.path = []);
1174
+ var _a3;
1175
+ (_a3 = iss).path ?? (_a3.path = []);
1176
1176
  iss.path.unshift(path);
1177
1177
  return iss;
1178
1178
  });
@@ -1336,7 +1336,7 @@ function formatError(error46, mapper = (issue2) => issue2.message) {
1336
1336
  function treeifyError(error46, mapper = (issue2) => issue2.message) {
1337
1337
  const result = { errors: [] };
1338
1338
  const processError = (error47, path = []) => {
1339
- var _a2, _b;
1339
+ var _a3, _b;
1340
1340
  for (const issue2 of error47.issues) {
1341
1341
  if (issue2.code === "invalid_union" && issue2.errors.length) {
1342
1342
  issue2.errors.map((issues) => processError({ issues }, issue2.path));
@@ -1357,7 +1357,7 @@ function treeifyError(error46, mapper = (issue2) => issue2.message) {
1357
1357
  const terminal = i === fullpath.length - 1;
1358
1358
  if (typeof el === "string") {
1359
1359
  curr.properties ?? (curr.properties = {});
1360
- (_a2 = curr.properties)[el] ?? (_a2[el] = { errors: [] });
1360
+ (_a3 = curr.properties)[el] ?? (_a3[el] = { errors: [] });
1361
1361
  curr = curr.properties[el];
1362
1362
  } else {
1363
1363
  curr.items ?? (curr.items = []);
@@ -1646,10 +1646,10 @@ var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
1646
1646
 
1647
1647
  // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/checks.js
1648
1648
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
1649
- var _a2;
1649
+ var _a3;
1650
1650
  inst._zod ?? (inst._zod = {});
1651
1651
  inst._zod.def = def;
1652
- (_a2 = inst._zod).onattach ?? (_a2.onattach = []);
1652
+ (_a3 = inst._zod).onattach ?? (_a3.onattach = []);
1653
1653
  });
1654
1654
  var numericOriginMap = {
1655
1655
  number: "number",
@@ -1715,8 +1715,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
1715
1715
  var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
1716
1716
  $ZodCheck.init(inst, def);
1717
1717
  inst._zod.onattach.push((inst2) => {
1718
- var _a2;
1719
- (_a2 = inst2._zod.bag).multipleOf ?? (_a2.multipleOf = def.value);
1718
+ var _a3;
1719
+ (_a3 = inst2._zod.bag).multipleOf ?? (_a3.multipleOf = def.value);
1720
1720
  });
1721
1721
  inst._zod.check = (payload) => {
1722
1722
  if (typeof payload.value !== typeof def.value)
@@ -1843,9 +1843,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
1843
1843
  };
1844
1844
  });
1845
1845
  var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
1846
- var _a2;
1846
+ var _a3;
1847
1847
  $ZodCheck.init(inst, def);
1848
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
1848
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
1849
1849
  const val = payload.value;
1850
1850
  return !nullish(val) && val.size !== void 0;
1851
1851
  });
@@ -1871,9 +1871,9 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
1871
1871
  };
1872
1872
  });
1873
1873
  var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
1874
- var _a2;
1874
+ var _a3;
1875
1875
  $ZodCheck.init(inst, def);
1876
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
1876
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
1877
1877
  const val = payload.value;
1878
1878
  return !nullish(val) && val.size !== void 0;
1879
1879
  });
@@ -1899,9 +1899,9 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
1899
1899
  };
1900
1900
  });
1901
1901
  var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
1902
- var _a2;
1902
+ var _a3;
1903
1903
  $ZodCheck.init(inst, def);
1904
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
1904
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
1905
1905
  const val = payload.value;
1906
1906
  return !nullish(val) && val.size !== void 0;
1907
1907
  });
@@ -1929,9 +1929,9 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
1929
1929
  };
1930
1930
  });
1931
1931
  var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
1932
- var _a2;
1932
+ var _a3;
1933
1933
  $ZodCheck.init(inst, def);
1934
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
1934
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
1935
1935
  const val = payload.value;
1936
1936
  return !nullish(val) && val.length !== void 0;
1937
1937
  });
@@ -1958,9 +1958,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
1958
1958
  };
1959
1959
  });
1960
1960
  var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
1961
- var _a2;
1961
+ var _a3;
1962
1962
  $ZodCheck.init(inst, def);
1963
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
1963
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
1964
1964
  const val = payload.value;
1965
1965
  return !nullish(val) && val.length !== void 0;
1966
1966
  });
@@ -1987,9 +1987,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
1987
1987
  };
1988
1988
  });
1989
1989
  var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
1990
- var _a2;
1990
+ var _a3;
1991
1991
  $ZodCheck.init(inst, def);
1992
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
1992
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
1993
1993
  const val = payload.value;
1994
1994
  return !nullish(val) && val.length !== void 0;
1995
1995
  });
@@ -2018,7 +2018,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
2018
2018
  };
2019
2019
  });
2020
2020
  var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
2021
- var _a2, _b;
2021
+ var _a3, _b;
2022
2022
  $ZodCheck.init(inst, def);
2023
2023
  inst._zod.onattach.push((inst2) => {
2024
2024
  const bag = inst2._zod.bag;
@@ -2029,7 +2029,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
2029
2029
  }
2030
2030
  });
2031
2031
  if (def.pattern)
2032
- (_a2 = inst._zod).check ?? (_a2.check = (payload) => {
2032
+ (_a3 = inst._zod).check ?? (_a3.check = (payload) => {
2033
2033
  def.pattern.lastIndex = 0;
2034
2034
  if (def.pattern.test(payload.value))
2035
2035
  return;
@@ -2231,7 +2231,7 @@ var version = {
2231
2231
 
2232
2232
  // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/schemas.js
2233
2233
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
2234
- var _a2;
2234
+ var _a3;
2235
2235
  inst ?? (inst = {});
2236
2236
  inst._zod.def = def;
2237
2237
  inst._zod.bag = inst._zod.bag || {};
@@ -2246,7 +2246,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
2246
2246
  }
2247
2247
  }
2248
2248
  if (checks.length === 0) {
2249
- (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
2249
+ (_a3 = inst._zod).deferred ?? (_a3.deferred = []);
2250
2250
  inst._zod.deferred?.push(() => {
2251
2251
  inst._zod.run = inst._zod.parse;
2252
2252
  });
@@ -10687,7 +10687,7 @@ var JSONSchemaGenerator = class {
10687
10687
  this.seen = /* @__PURE__ */ new Map();
10688
10688
  }
10689
10689
  process(schema, _params = { path: [], schemaPath: [] }) {
10690
- var _a2;
10690
+ var _a3;
10691
10691
  const def = schema._zod.def;
10692
10692
  const formatMap = {
10693
10693
  guid: "uuid",
@@ -11196,7 +11196,7 @@ var JSONSchemaGenerator = class {
11196
11196
  delete result.schema.default;
11197
11197
  }
11198
11198
  if (this.io === "input" && result.schema._prefault)
11199
- (_a2 = result.schema).default ?? (_a2.default = result.schema._prefault);
11199
+ (_a3 = result.schema).default ?? (_a3.default = result.schema._prefault);
11200
11200
  delete result.schema._prefault;
11201
11201
  const _result = this.seen.get(schema);
11202
11202
  return _result.schema;
@@ -12981,18 +12981,400 @@ var BibleClient = class {
12981
12981
  return this.client.get(`/v1/verse_of_the_days/${day}`);
12982
12982
  }
12983
12983
  };
12984
- var LanguagesClient = class {
12984
+ var BOOK_IDS = [
12985
+ "GEN",
12986
+ "EXO",
12987
+ "LEV",
12988
+ "NUM",
12989
+ "DEU",
12990
+ "JOS",
12991
+ "JDG",
12992
+ "RUT",
12993
+ "1SA",
12994
+ "2SA",
12995
+ "1KI",
12996
+ "2KI",
12997
+ "1CH",
12998
+ "2CH",
12999
+ "EZR",
13000
+ "NEH",
13001
+ "EST",
13002
+ "JOB",
13003
+ "PSA",
13004
+ "PRO",
13005
+ "ECC",
13006
+ "SNG",
13007
+ "ISA",
13008
+ "JER",
13009
+ "LAM",
13010
+ "EZK",
13011
+ "DAN",
13012
+ "HOS",
13013
+ "JOL",
13014
+ "AMO",
13015
+ "OBA",
13016
+ "JON",
13017
+ "MIC",
13018
+ "NAM",
13019
+ "HAB",
13020
+ "ZEP",
13021
+ "HAG",
13022
+ "ZEC",
13023
+ "MAL",
13024
+ "MAT",
13025
+ "MRK",
13026
+ "LUK",
13027
+ "JHN",
13028
+ "ACT",
13029
+ "ROM",
13030
+ "1CO",
13031
+ "2CO",
13032
+ "GAL",
13033
+ "EPH",
13034
+ "PHP",
13035
+ "COL",
13036
+ "1TH",
13037
+ "2TH",
13038
+ "1TI",
13039
+ "2TI",
13040
+ "TIT",
13041
+ "PHM",
13042
+ "HEB",
13043
+ "JAS",
13044
+ "1PE",
13045
+ "2PE",
13046
+ "1JN",
13047
+ "2JN",
13048
+ "3JN",
13049
+ "JUD",
13050
+ "REV",
13051
+ // dc (Apocrypha) books
13052
+ "TOB",
13053
+ "JDT",
13054
+ "ESG",
13055
+ "WIS",
13056
+ "SIR",
13057
+ "BAR",
13058
+ "LJE",
13059
+ "S3Y",
13060
+ "SUS",
13061
+ "BEL",
13062
+ "1MA",
13063
+ "2MA",
13064
+ "3MA",
13065
+ "4MA",
13066
+ "1ES",
13067
+ "2ES",
13068
+ "MAN",
13069
+ "PS2",
13070
+ "ODA",
13071
+ "PSS",
13072
+ "3ES",
13073
+ "EZA",
13074
+ "5EZ",
13075
+ "6EZ",
13076
+ "DAG",
13077
+ "PS3",
13078
+ "2BA",
13079
+ "LBA",
13080
+ "JUB",
13081
+ "ENO",
13082
+ "1MQ",
13083
+ "2MQ",
13084
+ "3MQ",
13085
+ "REP",
13086
+ "4BA",
13087
+ "LAO",
13088
+ // Luke-Acts combo, treated canonically as New Testament
13089
+ "LKA"
13090
+ ];
13091
+ var BOOK_CANON = {
13092
+ GEN: "old_testament",
13093
+ EXO: "old_testament",
13094
+ LEV: "old_testament",
13095
+ NUM: "old_testament",
13096
+ DEU: "old_testament",
13097
+ JOS: "old_testament",
13098
+ JDG: "old_testament",
13099
+ RUT: "old_testament",
13100
+ "1SA": "old_testament",
13101
+ "2SA": "old_testament",
13102
+ "1KI": "old_testament",
13103
+ "2KI": "old_testament",
13104
+ "1CH": "old_testament",
13105
+ "2CH": "old_testament",
13106
+ EZR: "old_testament",
13107
+ NEH: "old_testament",
13108
+ EST: "old_testament",
13109
+ JOB: "old_testament",
13110
+ PSA: "old_testament",
13111
+ PRO: "old_testament",
13112
+ ECC: "old_testament",
13113
+ SNG: "old_testament",
13114
+ ISA: "old_testament",
13115
+ JER: "old_testament",
13116
+ LAM: "old_testament",
13117
+ EZK: "old_testament",
13118
+ DAN: "old_testament",
13119
+ HOS: "old_testament",
13120
+ JOL: "old_testament",
13121
+ AMO: "old_testament",
13122
+ OBA: "old_testament",
13123
+ JON: "old_testament",
13124
+ MIC: "old_testament",
13125
+ NAM: "old_testament",
13126
+ HAB: "old_testament",
13127
+ ZEP: "old_testament",
13128
+ HAG: "old_testament",
13129
+ ZEC: "old_testament",
13130
+ MAL: "old_testament",
13131
+ MAT: "new_testament",
13132
+ MRK: "new_testament",
13133
+ LUK: "new_testament",
13134
+ JHN: "new_testament",
13135
+ ACT: "new_testament",
13136
+ ROM: "new_testament",
13137
+ "1CO": "new_testament",
13138
+ "2CO": "new_testament",
13139
+ GAL: "new_testament",
13140
+ EPH: "new_testament",
13141
+ PHP: "new_testament",
13142
+ COL: "new_testament",
13143
+ "1TH": "new_testament",
13144
+ "2TH": "new_testament",
13145
+ "1TI": "new_testament",
13146
+ "2TI": "new_testament",
13147
+ TIT: "new_testament",
13148
+ PHM: "new_testament",
13149
+ HEB: "new_testament",
13150
+ JAS: "new_testament",
13151
+ "1PE": "new_testament",
13152
+ "2PE": "new_testament",
13153
+ "1JN": "new_testament",
13154
+ "2JN": "new_testament",
13155
+ "3JN": "new_testament",
13156
+ JUD: "new_testament",
13157
+ REV: "new_testament",
13158
+ TOB: "deuterocanon",
13159
+ JDT: "deuterocanon",
13160
+ ESG: "deuterocanon",
13161
+ WIS: "deuterocanon",
13162
+ SIR: "deuterocanon",
13163
+ BAR: "deuterocanon",
13164
+ LJE: "deuterocanon",
13165
+ S3Y: "deuterocanon",
13166
+ SUS: "deuterocanon",
13167
+ BEL: "deuterocanon",
13168
+ "1MA": "deuterocanon",
13169
+ "2MA": "deuterocanon",
13170
+ "3MA": "deuterocanon",
13171
+ "4MA": "deuterocanon",
13172
+ "1ES": "deuterocanon",
13173
+ "2ES": "deuterocanon",
13174
+ MAN: "deuterocanon",
13175
+ PS2: "deuterocanon",
13176
+ ODA: "deuterocanon",
13177
+ PSS: "deuterocanon",
13178
+ "3ES": "deuterocanon",
13179
+ EZA: "deuterocanon",
13180
+ "5EZ": "deuterocanon",
13181
+ "6EZ": "deuterocanon",
13182
+ DAG: "deuterocanon",
13183
+ PS3: "deuterocanon",
13184
+ "2BA": "deuterocanon",
13185
+ LBA: "deuterocanon",
13186
+ JUB: "deuterocanon",
13187
+ ENO: "deuterocanon",
13188
+ "1MQ": "deuterocanon",
13189
+ "2MQ": "deuterocanon",
13190
+ "3MQ": "deuterocanon",
13191
+ REP: "deuterocanon",
13192
+ "4BA": "deuterocanon",
13193
+ LAO: "deuterocanon",
13194
+ LKA: "new_testament"
13195
+ // Luke-Acts combo, treated canonically as New Testament
13196
+ };
13197
+ var BibleVerseSchema = external_exports.object({
13198
+ /** Verse identifier (e.g., "1") */
13199
+ id: external_exports.string(),
13200
+ /** Passage identifier (e.g., "MAT.1.1") */
13201
+ passage_id: external_exports.string(),
13202
+ /** Verse Number (e.g., "1") */
13203
+ title: external_exports.string()
13204
+ });
13205
+ var BibleChapterSchema = external_exports.object({
13206
+ /** Chapter identifier (e.g., "1") */
13207
+ id: external_exports.string(),
13208
+ /** Passage identifier (e.g., "MAT.1") */
13209
+ passage_id: external_exports.string(),
13210
+ /** Chapter title (e.g., "1") */
13211
+ title: external_exports.string(),
13212
+ /** Array of verses */
13213
+ verses: external_exports.array(BibleVerseSchema).optional()
13214
+ });
13215
+ var CanonSchema = external_exports.enum(["old_testament", "new_testament", "deuterocanon"]);
13216
+ var BibleBookIntroSchema = external_exports.object({
13217
+ /** Intro identifier */
13218
+ id: external_exports.string(),
13219
+ /** Intro passage identifier */
13220
+ passage_id: external_exports.string(),
13221
+ /** Intro title */
13222
+ title: external_exports.string()
13223
+ });
13224
+ var BookUsfmSchema = external_exports.union([
13225
+ ...BOOK_IDS.map((id) => external_exports.literal(id)),
13226
+ external_exports.string().length(3)
13227
+ ]);
13228
+ var BibleBookSchema = external_exports.object({
13229
+ /** Book identifier (e.g., "MAT") */
13230
+ id: BookUsfmSchema,
13231
+ /** Book title (e.g., "Genesis") */
13232
+ title: external_exports.string(),
13233
+ /** Full Book title (e.g., "The First Book of Moses, Commonly Called Genesis") */
13234
+ full_title: external_exports.string(),
13235
+ /** Book abbreviation (e.g., "Gen") */
13236
+ abbreviation: external_exports.string().optional(),
13237
+ /** Canonical section (new_testament, old_testament, deuterocanon) */
13238
+ canon: CanonSchema,
13239
+ /** Intro metadata (optional) */
13240
+ intro: BibleBookIntroSchema.optional(),
13241
+ /** Array of chapter identifiers (e.g., ["GEN.1", "GEN.2", "GEN.3"]) */
13242
+ chapters: external_exports.array(BibleChapterSchema).optional()
13243
+ });
13244
+ var BibleIndexVerseSchema = external_exports.object({
13245
+ /** Verse identifier */
13246
+ id: external_exports.string(),
13247
+ /** Verse title */
13248
+ title: external_exports.string()
13249
+ });
13250
+ var BibleIndexChapterSchema = external_exports.object({
13251
+ /** Chapter identifier */
13252
+ id: external_exports.string(),
13253
+ /** Chapter title */
13254
+ title: external_exports.string(),
13255
+ /** Array of verses in this chapter */
13256
+ verses: external_exports.array(BibleIndexVerseSchema)
13257
+ });
13258
+ var BibleIndexBookSchema = external_exports.object({
13259
+ /** Book identifier */
13260
+ id: BookUsfmSchema,
13261
+ /** Book title */
13262
+ title: external_exports.string(),
13263
+ /** Full book title */
13264
+ full_title: external_exports.string(),
13265
+ /** Book abbreviation */
13266
+ abbreviation: external_exports.string(),
13267
+ /** Canonical section */
13268
+ canon: CanonSchema,
13269
+ /** Array of chapters in this book */
13270
+ chapters: external_exports.array(BibleIndexChapterSchema)
13271
+ });
13272
+ var _BibleIndexSchema = external_exports.object({
13273
+ /** Text direction (e.g., "ltr") */
13274
+ text_direction: external_exports.string(),
13275
+ /** Array of books with chapters and verses */
13276
+ books: external_exports.array(BibleIndexBookSchema)
13277
+ });
13278
+ var _HighlightSchema = external_exports.object({
13279
+ /** Bible version identifier */
13280
+ version_id: external_exports.number().int().positive(),
13281
+ /** Passage identifier (e.g., "MAT.1.1") */
13282
+ passage_id: external_exports.string(),
13283
+ /** Hex color code (6 digits, no #) */
13284
+ color: external_exports.string().regex(/^[0-9a-f]{6}$/)
13285
+ });
13286
+ var _CreateHighlightSchema = external_exports.object({
13287
+ /** Bible version identifier */
13288
+ version_id: external_exports.number().int().positive(),
13289
+ /** Passage identifier (e.g., "MAT.1.1") */
13290
+ passage_id: external_exports.string(),
13291
+ /** Hex color code (6 digits, no #) */
13292
+ color: external_exports.string().regex(/^[0-9a-f]{6}$/)
13293
+ });
13294
+ var LanguageSchema = external_exports.object({
13295
+ /** BCP 47 language identifier (e.g., "en") */
13296
+ id: external_exports.string().regex(/^[a-z]{2,3}(?:-[A-Z][a-z]{3})?$/, "BCP 47 id limited to language or language+script"),
13297
+ /** ISO 639 language code */
13298
+ language: external_exports.string().regex(/^[a-z]{2,3}$/, "ISO 639 canonical language subtag"),
13299
+ /** ISO 15924 script code (e.g., "Latn") */
13300
+ script: external_exports.string().regex(/^[A-Z][a-z]{3}$/, 'Script must match ISO 15924 format (e.g., "Latn")').nullable().optional(),
13301
+ /** Script name (e.g., "Latin") */
13302
+ script_name: external_exports.string().nullable().optional(),
13303
+ /** Language aliases */
13304
+ aliases: external_exports.array(external_exports.string()).optional(),
13305
+ /** Display names for different locales */
13306
+ display_names: external_exports.record(external_exports.string(), external_exports.string()).optional(),
13307
+ /** Available scripts for this language (e.g., ["Cyrl", "Latn"]) */
13308
+ scripts: external_exports.array(external_exports.string().regex(/^[A-Z][a-z]{3}$/, "ISO 15924 script code")).optional(),
13309
+ /** Language variants (e.g., ["1996", "fonipa"]) */
13310
+ variants: external_exports.array(external_exports.string()).optional(),
13311
+ /** ISO 3166-1 alpha-2 country codes (e.g., ["RS", "BA", "ME"]) */
13312
+ countries: external_exports.array(external_exports.string().regex(/^[A-Z]{2}$/, "ISO 3166-1 alpha-2 country code")).optional(),
13313
+ /** Text direction (ltr or rtl) */
13314
+ text_direction: external_exports.enum(["ltr", "rtl"]).optional(),
13315
+ /** Writing population count */
13316
+ writing_population: external_exports.number().int().optional(),
13317
+ /** Speaking population count */
13318
+ speaking_population: external_exports.number().int().optional(),
13319
+ /** Default Bible version ID for this language */
13320
+ default_bible_id: external_exports.number().int().nullable().optional()
13321
+ });
13322
+ var BiblePassageSchema = external_exports.object({
13323
+ /** Passage identifier (e.g., "MAT.1.1") */
13324
+ id: external_exports.string(),
13325
+ /** Passage content text */
13326
+ content: external_exports.string(),
13327
+ /** Human-readable reference (e.g., "Matthew 1:1") */
13328
+ reference: external_exports.string()
13329
+ });
13330
+ var BibleVersionSchema = external_exports.object({
13331
+ /** Bible version identifier */
13332
+ id: external_exports.number().int(),
13333
+ /** Bible version abbreviation */
13334
+ abbreviation: external_exports.string(),
13335
+ /** Long copyright text */
13336
+ promotional_content: external_exports.string().nullable().optional(),
13337
+ /** Short copyright text */
13338
+ copyright: external_exports.string().nullable().optional(),
13339
+ /** Bible information text */
13340
+ info: external_exports.string().nullable().optional(),
13341
+ /** Publisher URL */
13342
+ publisher_url: external_exports.url().nullable().optional(),
13343
+ /** Language tag (e.g., "en") */
13344
+ language_tag: external_exports.string(),
13345
+ /** Localized abbreviation */
13346
+ localized_abbreviation: external_exports.string(),
13347
+ /** Localized title */
13348
+ localized_title: external_exports.string(),
13349
+ /** Organization ID of publisher */
13350
+ organization_id: external_exports.string().nullable().optional(),
13351
+ /** Full title */
13352
+ title: external_exports.string(),
13353
+ /** Array of book identifiers (e.g., ["GEN", "EXO", "LEV"]) */
13354
+ books: external_exports.array(BookUsfmSchema),
13355
+ /** YouVersion deep link URL */
13356
+ youversion_deep_link: external_exports.url()
13357
+ });
13358
+ var VOTDSchema = external_exports.object({
13359
+ /** Day of year (1-366) */
13360
+ day: external_exports.number().int().min(1).max(366),
13361
+ /** Passage identifier (e.g., "JHN.3.16") */
13362
+ passage_id: external_exports.string()
13363
+ });
13364
+ var _UserSchema = external_exports.object({
13365
+ avatar_url: external_exports.string(),
13366
+ first_name: external_exports.string(),
13367
+ id: external_exports.uuid(),
13368
+ last_name: external_exports.string()
13369
+ });
13370
+ var _a;
13371
+ var LanguagesClient = (_a = class {
12985
13372
  /**
12986
13373
  * Creates a new LanguagesClient instance.
12987
13374
  * @param client The API client to use for requests.
12988
13375
  */
12989
13376
  constructor(client) {
12990
13377
  __publicField(this, "client");
12991
- __publicField(this, "languageIdSchema", external_exports.string().trim().min(1, "Language ID must be a non-empty string").regex(
12992
- /^[a-z]{2,3}(?:-[A-Z][a-z]{3})?$/,
12993
- "Language ID must match BCP 47 format (language or language+script)"
12994
- ));
12995
- __publicField(this, "countrySchema", external_exports.string().trim().length(2, "Country code must be a 2-character ISO 3166-1 alpha-2 code").toUpperCase());
12996
13378
  this.client = client;
12997
13379
  }
12998
13380
  /**
@@ -13003,12 +13385,23 @@ var LanguagesClient = class {
13003
13385
  async getLanguages(options = {}) {
13004
13386
  const params = {};
13005
13387
  if (options.country !== void 0) {
13006
- const country = this.countrySchema.parse(options.country);
13388
+ const country = _a.countrySchema.parse(options.country);
13007
13389
  params.country = country;
13008
13390
  }
13391
+ if (options.fields !== void 0) {
13392
+ const fieldsSchema = external_exports.array(LanguageSchema.keyof());
13393
+ fieldsSchema.parse(options.fields);
13394
+ params["fields[]"] = options.fields;
13395
+ }
13009
13396
  if (options.page_size !== void 0) {
13010
- const pageSizeSchema = external_exports.number().int().positive();
13397
+ const pageSizeSchema = external_exports.union([external_exports.number().int().positive(), external_exports.literal("*")]);
13011
13398
  pageSizeSchema.parse(options.page_size);
13399
+ if (options.page_size === "*") {
13400
+ const fieldsCount = options.fields?.length ?? 0;
13401
+ if (fieldsCount < 1 || fieldsCount > 3) {
13402
+ throw new Error('page_size="*" requires 1-3 fields to be specified');
13403
+ }
13404
+ }
13012
13405
  params.page_size = options.page_size;
13013
13406
  }
13014
13407
  if (options.page_token !== void 0) {
@@ -13022,12 +13415,31 @@ var LanguagesClient = class {
13022
13415
  * @returns The requested Language object.
13023
13416
  */
13024
13417
  async getLanguage(languageId) {
13025
- this.languageIdSchema.parse(languageId);
13418
+ _a.languageIdSchema.parse(languageId);
13026
13419
  return this.client.get(`/v1/languages/${languageId}`);
13027
13420
  }
13028
- };
13029
- var _a;
13030
- var YouVersionPlatformConfiguration = (_a = class {
13421
+ }, __publicField(_a, "languageIdSchema", external_exports.string().trim().min(1, "Language ID must be a non-empty string").regex(
13422
+ /^[a-z]{2,3}(?:-[A-Z][a-z]{3})?$/,
13423
+ "Language ID must match BCP 47 format (language or language+script)"
13424
+ )), __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({
13425
+ page_size: external_exports.union([external_exports.number(), external_exports.literal("*")]).optional(),
13426
+ fields: external_exports.array(LanguageSchema.keyof()).optional(),
13427
+ page_token: external_exports.string().optional(),
13428
+ country: _a.countrySchema
13429
+ }).refine(
13430
+ (data) => {
13431
+ if (data.page_size === "*") {
13432
+ return data.fields && data.fields?.length >= 1 && data.fields?.length <= 3;
13433
+ }
13434
+ return true;
13435
+ },
13436
+ {
13437
+ message: 'page_size="*" required 1-3 fields to be specified',
13438
+ path: ["page_size", "fields"]
13439
+ }
13440
+ )), _a);
13441
+ var _a2;
13442
+ var YouVersionPlatformConfiguration = (_a2 = class {
13031
13443
  static getOrSetInstallationId() {
13032
13444
  if (typeof window === "undefined") {
13033
13445
  return "";
@@ -13111,7 +13523,7 @@ var YouVersionPlatformConfiguration = (_a = class {
13111
13523
  static set expiryDateKey(value) {
13112
13524
  this._expiryDateKey = value;
13113
13525
  }
13114
- }, __publicField(_a, "_appKey", null), __publicField(_a, "_installationId", null), __publicField(_a, "_apiHost", "api.youversion.com"), __publicField(_a, "_refreshTokenKey", null), __publicField(_a, "_expiryDateKey", null), _a);
13526
+ }, __publicField(_a2, "_appKey", null), __publicField(_a2, "_installationId", null), __publicField(_a2, "_apiHost", "api.youversion.com"), __publicField(_a2, "_refreshTokenKey", null), __publicField(_a2, "_expiryDateKey", null), _a2);
13115
13527
  var HighlightsClient = class {
13116
13528
  /**
13117
13529
  * Creates a new HighlightsClient instance.
@@ -13734,219 +14146,6 @@ var YouVersionAPI = class {
13734
14146
  return request;
13735
14147
  }
13736
14148
  };
13737
- var BOOK_IDS = [
13738
- "GEN",
13739
- "EXO",
13740
- "LEV",
13741
- "NUM",
13742
- "DEU",
13743
- "JOS",
13744
- "JDG",
13745
- "RUT",
13746
- "1SA",
13747
- "2SA",
13748
- "1KI",
13749
- "2KI",
13750
- "1CH",
13751
- "2CH",
13752
- "EZR",
13753
- "NEH",
13754
- "EST",
13755
- "JOB",
13756
- "PSA",
13757
- "PRO",
13758
- "ECC",
13759
- "SNG",
13760
- "ISA",
13761
- "JER",
13762
- "LAM",
13763
- "EZK",
13764
- "DAN",
13765
- "HOS",
13766
- "JOL",
13767
- "AMO",
13768
- "OBA",
13769
- "JON",
13770
- "MIC",
13771
- "NAM",
13772
- "HAB",
13773
- "ZEP",
13774
- "HAG",
13775
- "ZEC",
13776
- "MAL",
13777
- "MAT",
13778
- "MRK",
13779
- "LUK",
13780
- "JHN",
13781
- "ACT",
13782
- "ROM",
13783
- "1CO",
13784
- "2CO",
13785
- "GAL",
13786
- "EPH",
13787
- "PHP",
13788
- "COL",
13789
- "1TH",
13790
- "2TH",
13791
- "1TI",
13792
- "2TI",
13793
- "TIT",
13794
- "PHM",
13795
- "HEB",
13796
- "JAS",
13797
- "1PE",
13798
- "2PE",
13799
- "1JN",
13800
- "2JN",
13801
- "3JN",
13802
- "JUD",
13803
- "REV",
13804
- // dc (Apocrypha) books
13805
- "TOB",
13806
- "JDT",
13807
- "ESG",
13808
- "WIS",
13809
- "SIR",
13810
- "BAR",
13811
- "LJE",
13812
- "S3Y",
13813
- "SUS",
13814
- "BEL",
13815
- "1MA",
13816
- "2MA",
13817
- "3MA",
13818
- "4MA",
13819
- "1ES",
13820
- "2ES",
13821
- "MAN",
13822
- "PS2",
13823
- "ODA",
13824
- "PSS",
13825
- "3ES",
13826
- "EZA",
13827
- "5EZ",
13828
- "6EZ",
13829
- "DAG",
13830
- "PS3",
13831
- "2BA",
13832
- "LBA",
13833
- "JUB",
13834
- "ENO",
13835
- "1MQ",
13836
- "2MQ",
13837
- "3MQ",
13838
- "REP",
13839
- "4BA",
13840
- "LAO",
13841
- // Luke-Acts combo, treated canonically as New Testament
13842
- "LKA"
13843
- ];
13844
- var BOOK_CANON = {
13845
- GEN: "old_testament",
13846
- EXO: "old_testament",
13847
- LEV: "old_testament",
13848
- NUM: "old_testament",
13849
- DEU: "old_testament",
13850
- JOS: "old_testament",
13851
- JDG: "old_testament",
13852
- RUT: "old_testament",
13853
- "1SA": "old_testament",
13854
- "2SA": "old_testament",
13855
- "1KI": "old_testament",
13856
- "2KI": "old_testament",
13857
- "1CH": "old_testament",
13858
- "2CH": "old_testament",
13859
- EZR: "old_testament",
13860
- NEH: "old_testament",
13861
- EST: "old_testament",
13862
- JOB: "old_testament",
13863
- PSA: "old_testament",
13864
- PRO: "old_testament",
13865
- ECC: "old_testament",
13866
- SNG: "old_testament",
13867
- ISA: "old_testament",
13868
- JER: "old_testament",
13869
- LAM: "old_testament",
13870
- EZK: "old_testament",
13871
- DAN: "old_testament",
13872
- HOS: "old_testament",
13873
- JOL: "old_testament",
13874
- AMO: "old_testament",
13875
- OBA: "old_testament",
13876
- JON: "old_testament",
13877
- MIC: "old_testament",
13878
- NAM: "old_testament",
13879
- HAB: "old_testament",
13880
- ZEP: "old_testament",
13881
- HAG: "old_testament",
13882
- ZEC: "old_testament",
13883
- MAL: "old_testament",
13884
- MAT: "new_testament",
13885
- MRK: "new_testament",
13886
- LUK: "new_testament",
13887
- JHN: "new_testament",
13888
- ACT: "new_testament",
13889
- ROM: "new_testament",
13890
- "1CO": "new_testament",
13891
- "2CO": "new_testament",
13892
- GAL: "new_testament",
13893
- EPH: "new_testament",
13894
- PHP: "new_testament",
13895
- COL: "new_testament",
13896
- "1TH": "new_testament",
13897
- "2TH": "new_testament",
13898
- "1TI": "new_testament",
13899
- "2TI": "new_testament",
13900
- TIT: "new_testament",
13901
- PHM: "new_testament",
13902
- HEB: "new_testament",
13903
- JAS: "new_testament",
13904
- "1PE": "new_testament",
13905
- "2PE": "new_testament",
13906
- "1JN": "new_testament",
13907
- "2JN": "new_testament",
13908
- "3JN": "new_testament",
13909
- JUD: "new_testament",
13910
- REV: "new_testament",
13911
- TOB: "deuterocanon",
13912
- JDT: "deuterocanon",
13913
- ESG: "deuterocanon",
13914
- WIS: "deuterocanon",
13915
- SIR: "deuterocanon",
13916
- BAR: "deuterocanon",
13917
- LJE: "deuterocanon",
13918
- S3Y: "deuterocanon",
13919
- SUS: "deuterocanon",
13920
- BEL: "deuterocanon",
13921
- "1MA": "deuterocanon",
13922
- "2MA": "deuterocanon",
13923
- "3MA": "deuterocanon",
13924
- "4MA": "deuterocanon",
13925
- "1ES": "deuterocanon",
13926
- "2ES": "deuterocanon",
13927
- MAN: "deuterocanon",
13928
- PS2: "deuterocanon",
13929
- ODA: "deuterocanon",
13930
- PSS: "deuterocanon",
13931
- "3ES": "deuterocanon",
13932
- EZA: "deuterocanon",
13933
- "5EZ": "deuterocanon",
13934
- "6EZ": "deuterocanon",
13935
- DAG: "deuterocanon",
13936
- PS3: "deuterocanon",
13937
- "2BA": "deuterocanon",
13938
- LBA: "deuterocanon",
13939
- JUB: "deuterocanon",
13940
- ENO: "deuterocanon",
13941
- "1MQ": "deuterocanon",
13942
- "2MQ": "deuterocanon",
13943
- "3MQ": "deuterocanon",
13944
- REP: "deuterocanon",
13945
- "4BA": "deuterocanon",
13946
- LAO: "deuterocanon",
13947
- LKA: "new_testament"
13948
- // Luke-Acts combo, treated canonically as New Testament
13949
- };
13950
14149
 
13951
14150
  // src/components/icons/info.tsx
13952
14151
  var import_jsx_runtime = require("react/jsx-runtime");