langgraph-ui-components 0.0.13 → 0.0.14

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 (200) hide show
  1. package/dist/index.es107.js +4 -4
  2. package/dist/index.es109.js +1 -1
  3. package/dist/index.es115.js +1 -1
  4. package/dist/index.es119.js +1 -1
  5. package/dist/index.es121.js +1 -1
  6. package/dist/index.es122.js +9 -9
  7. package/dist/index.es129.js +2 -2
  8. package/dist/index.es13.js +6 -6
  9. package/dist/index.es132.js +2 -2
  10. package/dist/index.es141.js +1 -1
  11. package/dist/index.es142.js +2 -2
  12. package/dist/index.es143.js +1 -1
  13. package/dist/index.es156.js +1 -1
  14. package/dist/index.es16.js +1 -1
  15. package/dist/index.es164.js +1 -1
  16. package/dist/index.es165.js +1 -1
  17. package/dist/index.es166.js +1 -1
  18. package/dist/index.es167.js +1 -1
  19. package/dist/index.es168.js +1 -1
  20. package/dist/index.es169.js +1 -1
  21. package/dist/index.es170.js +1 -1
  22. package/dist/index.es171.js +1 -1
  23. package/dist/index.es172.js +1 -1
  24. package/dist/index.es173.js +1 -1
  25. package/dist/index.es174.js +1 -1
  26. package/dist/index.es175.js +1 -1
  27. package/dist/index.es176.js +1 -1
  28. package/dist/index.es177.js +1 -1
  29. package/dist/index.es178.js +1 -1
  30. package/dist/index.es179.js +1 -1
  31. package/dist/index.es180.js +1 -1
  32. package/dist/index.es181.js +1 -1
  33. package/dist/index.es182.js +1 -1
  34. package/dist/index.es183.js +1 -1
  35. package/dist/index.es184.js +1 -1
  36. package/dist/index.es185.js +1 -1
  37. package/dist/index.es186.js +1 -1
  38. package/dist/index.es187.js +1 -1
  39. package/dist/index.es188.js +1 -1
  40. package/dist/index.es189.js +1 -1
  41. package/dist/index.es190.js +1 -1
  42. package/dist/index.es191.js +1 -1
  43. package/dist/index.es192.js +1 -1
  44. package/dist/index.es193.js +1 -1
  45. package/dist/index.es194.js +1 -1
  46. package/dist/index.es195.js +1 -1
  47. package/dist/index.es196.js +1 -1
  48. package/dist/index.es197.js +1 -1
  49. package/dist/index.es198.js +1 -1
  50. package/dist/index.es199.js +1 -1
  51. package/dist/index.es2.js +30 -24
  52. package/dist/index.es2.js.map +1 -1
  53. package/dist/index.es20.js +2 -2
  54. package/dist/index.es200.js +1 -1
  55. package/dist/index.es201.js +1 -1
  56. package/dist/index.es202.js +1 -1
  57. package/dist/index.es203.js +1 -1
  58. package/dist/index.es204.js +1 -1
  59. package/dist/index.es205.js +1 -1
  60. package/dist/index.es206.js +1 -1
  61. package/dist/index.es207.js +1 -1
  62. package/dist/index.es208.js +1 -1
  63. package/dist/index.es214.js +4 -2
  64. package/dist/index.es214.js.map +1 -1
  65. package/dist/index.es215.js +2 -2
  66. package/dist/index.es216.js +2 -2
  67. package/dist/index.es217.js +2 -2
  68. package/dist/index.es218.js +2 -2
  69. package/dist/index.es219.js +2 -2
  70. package/dist/index.es22.js +15 -119
  71. package/dist/index.es22.js.map +1 -1
  72. package/dist/index.es220.js +2 -2
  73. package/dist/index.es221.js +2 -2
  74. package/dist/index.es222.js +2 -2
  75. package/dist/index.es223.js +2 -2
  76. package/dist/index.es224.js +2 -2
  77. package/dist/index.es225.js +2 -2
  78. package/dist/index.es226.js +2 -2
  79. package/dist/index.es227.js +2 -2
  80. package/dist/index.es228.js +2 -2
  81. package/dist/index.es229.js +2 -2
  82. package/dist/index.es23.js +64 -17
  83. package/dist/index.es23.js.map +1 -1
  84. package/dist/index.es230.js +2 -2
  85. package/dist/index.es231.js +2 -2
  86. package/dist/index.es232.js +2 -2
  87. package/dist/index.es233.js +2 -2
  88. package/dist/index.es234.js +2 -2
  89. package/dist/index.es235.js +2 -2
  90. package/dist/index.es236.js +2 -2
  91. package/dist/index.es237.js +2 -2
  92. package/dist/index.es238.js +2 -2
  93. package/dist/index.es239.js +2 -2
  94. package/dist/index.es24.js +29 -60
  95. package/dist/index.es24.js.map +1 -1
  96. package/dist/index.es240.js +2 -2
  97. package/dist/index.es241.js +2 -2
  98. package/dist/index.es242.js +2 -2
  99. package/dist/index.es243.js +2 -2
  100. package/dist/index.es244.js +2 -2
  101. package/dist/index.es245.js +2 -2
  102. package/dist/index.es246.js +2 -2
  103. package/dist/index.es247.js +2 -2
  104. package/dist/index.es248.js +2 -2
  105. package/dist/index.es249.js +2 -2
  106. package/dist/index.es25.js +145 -28
  107. package/dist/index.es25.js.map +1 -1
  108. package/dist/index.es250.js +2 -2
  109. package/dist/index.es251.js +2 -2
  110. package/dist/index.es252.js +2 -2
  111. package/dist/index.es253.js +2 -2
  112. package/dist/index.es254.js +2 -2
  113. package/dist/index.es255.js +2 -2
  114. package/dist/index.es256.js +2 -2
  115. package/dist/index.es257.js +2 -2
  116. package/dist/index.es258.js +2 -2
  117. package/dist/index.es259.js +2 -4
  118. package/dist/index.es259.js.map +1 -1
  119. package/dist/index.es26.js +100 -144
  120. package/dist/index.es26.js.map +1 -1
  121. package/dist/index.es260.js +8 -5
  122. package/dist/index.es260.js.map +1 -1
  123. package/dist/index.es261.js +5 -13
  124. package/dist/index.es261.js.map +1 -1
  125. package/dist/index.es262.js +12 -5
  126. package/dist/index.es262.js.map +1 -1
  127. package/dist/index.es263.js +6 -8
  128. package/dist/index.es263.js.map +1 -1
  129. package/dist/index.es267.js +63 -6
  130. package/dist/index.es267.js.map +1 -1
  131. package/dist/index.es268.js +21 -102
  132. package/dist/index.es268.js.map +1 -1
  133. package/dist/index.es269.js +5 -118
  134. package/dist/index.es269.js.map +1 -1
  135. package/dist/index.es27.js +66 -101
  136. package/dist/index.es27.js.map +1 -1
  137. package/dist/index.es270.js +330 -117
  138. package/dist/index.es270.js.map +1 -1
  139. package/dist/index.es271.js +6 -114
  140. package/dist/index.es271.js.map +1 -1
  141. package/dist/index.es272.js +103 -6
  142. package/dist/index.es272.js.map +1 -1
  143. package/dist/index.es273.js +112 -57
  144. package/dist/index.es273.js.map +1 -1
  145. package/dist/index.es274.js +135 -21
  146. package/dist/index.es274.js.map +1 -1
  147. package/dist/index.es275.js +114 -5
  148. package/dist/index.es275.js.map +1 -1
  149. package/dist/index.es276.js +6 -349
  150. package/dist/index.es276.js.map +1 -1
  151. package/dist/index.es28.js +121 -68
  152. package/dist/index.es28.js.map +1 -1
  153. package/dist/index.es280.js +3726 -131
  154. package/dist/index.es280.js.map +1 -1
  155. package/dist/index.es281.js +342 -2
  156. package/dist/index.es281.js.map +1 -1
  157. package/dist/index.es282.js +76 -3704
  158. package/dist/index.es282.js.map +1 -1
  159. package/dist/index.es283.js +117 -326
  160. package/dist/index.es283.js.map +1 -1
  161. package/dist/index.es284.js +13 -107
  162. package/dist/index.es284.js.map +1 -1
  163. package/dist/index.es285.js +142 -123
  164. package/dist/index.es285.js.map +1 -1
  165. package/dist/index.es286.js +13 -13
  166. package/dist/index.es286.js.map +1 -1
  167. package/dist/index.es287.js +6 -150
  168. package/dist/index.es287.js.map +1 -1
  169. package/dist/index.es288.js +19 -13
  170. package/dist/index.es288.js.map +1 -1
  171. package/dist/index.es289.js +88 -6
  172. package/dist/index.es289.js.map +1 -1
  173. package/dist/index.es29.js +1 -1
  174. package/dist/index.es290.js +238 -16
  175. package/dist/index.es290.js.map +1 -1
  176. package/dist/index.es291.js +22 -88
  177. package/dist/index.es291.js.map +1 -1
  178. package/dist/index.es292.js +6 -243
  179. package/dist/index.es292.js.map +1 -1
  180. package/dist/index.es293.js +4 -24
  181. package/dist/index.es293.js.map +1 -1
  182. package/dist/index.es294.js +18 -6
  183. package/dist/index.es294.js.map +1 -1
  184. package/dist/index.es295.js +8 -4
  185. package/dist/index.es295.js.map +1 -1
  186. package/dist/index.es296.js +141 -17
  187. package/dist/index.es296.js.map +1 -1
  188. package/dist/index.es297.js +2 -8
  189. package/dist/index.es297.js.map +1 -1
  190. package/dist/index.es50.js +208 -5
  191. package/dist/index.es50.js.map +1 -1
  192. package/dist/index.es51.js +138 -202
  193. package/dist/index.es51.js.map +1 -1
  194. package/dist/index.es52.js +42 -141
  195. package/dist/index.es52.js.map +1 -1
  196. package/dist/index.es53.js +5 -45
  197. package/dist/index.es53.js.map +1 -1
  198. package/dist/index.es7.js +5 -25
  199. package/dist/index.es7.js.map +1 -1
  200. package/package.json +1 -1
@@ -1,106 +1,25 @@
1
- import { ZodIssueCode } from "./index.es271.js";
2
- import { util, ZodParsedType } from "./index.es270.js";
3
- const errorMap = (issue, _ctx) => {
4
- let message;
5
- switch (issue.code) {
6
- case ZodIssueCode.invalid_type:
7
- if (issue.received === ZodParsedType.undefined) {
8
- message = "Required";
9
- } else {
10
- message = `Expected ${issue.expected}, received ${issue.received}`;
11
- }
12
- break;
13
- case ZodIssueCode.invalid_literal:
14
- message = `Invalid literal value, expected ${JSON.stringify(issue.expected, util.jsonStringifyReplacer)}`;
15
- break;
16
- case ZodIssueCode.unrecognized_keys:
17
- message = `Unrecognized key(s) in object: ${util.joinValues(issue.keys, ", ")}`;
18
- break;
19
- case ZodIssueCode.invalid_union:
20
- message = `Invalid input`;
21
- break;
22
- case ZodIssueCode.invalid_union_discriminator:
23
- message = `Invalid discriminator value. Expected ${util.joinValues(issue.options)}`;
24
- break;
25
- case ZodIssueCode.invalid_enum_value:
26
- message = `Invalid enum value. Expected ${util.joinValues(issue.options)}, received '${issue.received}'`;
27
- break;
28
- case ZodIssueCode.invalid_arguments:
29
- message = `Invalid function arguments`;
30
- break;
31
- case ZodIssueCode.invalid_return_type:
32
- message = `Invalid function return type`;
33
- break;
34
- case ZodIssueCode.invalid_date:
35
- message = `Invalid date`;
36
- break;
37
- case ZodIssueCode.invalid_string:
38
- if (typeof issue.validation === "object") {
39
- if ("includes" in issue.validation) {
40
- message = `Invalid input: must include "${issue.validation.includes}"`;
41
- if (typeof issue.validation.position === "number") {
42
- message = `${message} at one or more positions greater than or equal to ${issue.validation.position}`;
43
- }
44
- } else if ("startsWith" in issue.validation) {
45
- message = `Invalid input: must start with "${issue.validation.startsWith}"`;
46
- } else if ("endsWith" in issue.validation) {
47
- message = `Invalid input: must end with "${issue.validation.endsWith}"`;
48
- } else {
49
- util.assertNever(issue.validation);
50
- }
51
- } else if (issue.validation !== "regex") {
52
- message = `Invalid ${issue.validation}`;
53
- } else {
54
- message = "Invalid";
55
- }
56
- break;
57
- case ZodIssueCode.too_small:
58
- if (issue.type === "array")
59
- message = `Array must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `more than`} ${issue.minimum} element(s)`;
60
- else if (issue.type === "string")
61
- message = `String must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `over`} ${issue.minimum} character(s)`;
62
- else if (issue.type === "number")
63
- message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;
64
- else if (issue.type === "bigint")
65
- message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;
66
- else if (issue.type === "date")
67
- message = `Date must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${new Date(Number(issue.minimum))}`;
68
- else
69
- message = "Invalid input";
70
- break;
71
- case ZodIssueCode.too_big:
72
- if (issue.type === "array")
73
- message = `Array must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `less than`} ${issue.maximum} element(s)`;
74
- else if (issue.type === "string")
75
- message = `String must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `under`} ${issue.maximum} character(s)`;
76
- else if (issue.type === "number")
77
- message = `Number must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`;
78
- else if (issue.type === "bigint")
79
- message = `BigInt must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`;
80
- else if (issue.type === "date")
81
- message = `Date must be ${issue.exact ? `exactly` : issue.inclusive ? `smaller than or equal to` : `smaller than`} ${new Date(Number(issue.maximum))}`;
82
- else
83
- message = "Invalid input";
84
- break;
85
- case ZodIssueCode.custom:
86
- message = `Invalid input`;
87
- break;
88
- case ZodIssueCode.invalid_intersection_types:
89
- message = `Intersection results could not be merged`;
90
- break;
91
- case ZodIssueCode.not_multiple_of:
92
- message = `Number must be a multiple of ${issue.multipleOf}`;
93
- break;
94
- case ZodIssueCode.not_finite:
95
- message = "Number must be finite";
96
- break;
97
- default:
98
- message = _ctx.defaultError;
99
- util.assertNever(issue);
100
- }
101
- return { message };
1
+ import { $constructor } from "./index.es267.js";
2
+ import { jsonStringifyReplacer } from "./index.es128.js";
3
+ const initializer = (inst, def) => {
4
+ inst.name = "$ZodError";
5
+ Object.defineProperty(inst, "_zod", {
6
+ value: inst._zod,
7
+ enumerable: false
8
+ });
9
+ Object.defineProperty(inst, "issues", {
10
+ value: def,
11
+ enumerable: false
12
+ });
13
+ inst.message = JSON.stringify(def, jsonStringifyReplacer, 2);
14
+ Object.defineProperty(inst, "toString", {
15
+ value: () => inst.message,
16
+ enumerable: false
17
+ });
102
18
  };
19
+ const $ZodError = $constructor("$ZodError", initializer);
20
+ const $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
103
21
  export {
104
- errorMap as default
22
+ $ZodError,
23
+ $ZodRealError
105
24
  };
106
25
  //# sourceMappingURL=index.es268.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es268.js","sources":["../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v3/locales/en.js"],"sourcesContent":["import { ZodIssueCode } from \"../ZodError.js\";\nimport { util, ZodParsedType } from \"../helpers/util.js\";\nconst errorMap = (issue, _ctx) => {\n let message;\n switch (issue.code) {\n case ZodIssueCode.invalid_type:\n if (issue.received === ZodParsedType.undefined) {\n message = \"Required\";\n }\n else {\n message = `Expected ${issue.expected}, received ${issue.received}`;\n }\n break;\n case ZodIssueCode.invalid_literal:\n message = `Invalid literal value, expected ${JSON.stringify(issue.expected, util.jsonStringifyReplacer)}`;\n break;\n case ZodIssueCode.unrecognized_keys:\n message = `Unrecognized key(s) in object: ${util.joinValues(issue.keys, \", \")}`;\n break;\n case ZodIssueCode.invalid_union:\n message = `Invalid input`;\n break;\n case ZodIssueCode.invalid_union_discriminator:\n message = `Invalid discriminator value. Expected ${util.joinValues(issue.options)}`;\n break;\n case ZodIssueCode.invalid_enum_value:\n message = `Invalid enum value. Expected ${util.joinValues(issue.options)}, received '${issue.received}'`;\n break;\n case ZodIssueCode.invalid_arguments:\n message = `Invalid function arguments`;\n break;\n case ZodIssueCode.invalid_return_type:\n message = `Invalid function return type`;\n break;\n case ZodIssueCode.invalid_date:\n message = `Invalid date`;\n break;\n case ZodIssueCode.invalid_string:\n if (typeof issue.validation === \"object\") {\n if (\"includes\" in issue.validation) {\n message = `Invalid input: must include \"${issue.validation.includes}\"`;\n if (typeof issue.validation.position === \"number\") {\n message = `${message} at one or more positions greater than or equal to ${issue.validation.position}`;\n }\n }\n else if (\"startsWith\" in issue.validation) {\n message = `Invalid input: must start with \"${issue.validation.startsWith}\"`;\n }\n else if (\"endsWith\" in issue.validation) {\n message = `Invalid input: must end with \"${issue.validation.endsWith}\"`;\n }\n else {\n util.assertNever(issue.validation);\n }\n }\n else if (issue.validation !== \"regex\") {\n message = `Invalid ${issue.validation}`;\n }\n else {\n message = \"Invalid\";\n }\n break;\n case ZodIssueCode.too_small:\n if (issue.type === \"array\")\n message = `Array must contain ${issue.exact ? \"exactly\" : issue.inclusive ? `at least` : `more than`} ${issue.minimum} element(s)`;\n else if (issue.type === \"string\")\n message = `String must contain ${issue.exact ? \"exactly\" : issue.inclusive ? `at least` : `over`} ${issue.minimum} character(s)`;\n else if (issue.type === \"number\")\n message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;\n else if (issue.type === \"bigint\")\n message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;\n else if (issue.type === \"date\")\n message = `Date must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${new Date(Number(issue.minimum))}`;\n else\n message = \"Invalid input\";\n break;\n case ZodIssueCode.too_big:\n if (issue.type === \"array\")\n message = `Array must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `less than`} ${issue.maximum} element(s)`;\n else if (issue.type === \"string\")\n message = `String must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `under`} ${issue.maximum} character(s)`;\n else if (issue.type === \"number\")\n message = `Number must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`;\n else if (issue.type === \"bigint\")\n message = `BigInt must be ${issue.exact ? `exactly` : issue.inclusive ? `less than or equal to` : `less than`} ${issue.maximum}`;\n else if (issue.type === \"date\")\n message = `Date must be ${issue.exact ? `exactly` : issue.inclusive ? `smaller than or equal to` : `smaller than`} ${new Date(Number(issue.maximum))}`;\n else\n message = \"Invalid input\";\n break;\n case ZodIssueCode.custom:\n message = `Invalid input`;\n break;\n case ZodIssueCode.invalid_intersection_types:\n message = `Intersection results could not be merged`;\n break;\n case ZodIssueCode.not_multiple_of:\n message = `Number must be a multiple of ${issue.multipleOf}`;\n break;\n case ZodIssueCode.not_finite:\n message = \"Number must be finite\";\n break;\n default:\n message = _ctx.defaultError;\n util.assertNever(issue);\n }\n return { message };\n};\nexport default errorMap;\n"],"names":[],"mappings":";;AAEK,MAAC,WAAW,CAAC,OAAO,SAAS;AAC9B,MAAI;AACJ,UAAQ,MAAM,MAAI;AAAA,IACd,KAAK,aAAa;AACd,UAAI,MAAM,aAAa,cAAc,WAAW;AAC5C,kBAAU;AAAA,MACd,OACK;AACD,kBAAU,YAAY,MAAM,QAAQ,cAAc,MAAM,QAAQ;AAAA,MACpE;AACA;AAAA,IACJ,KAAK,aAAa;AACd,gBAAU,mCAAmC,KAAK,UAAU,MAAM,UAAU,KAAK,qBAAqB,CAAC;AACvG;AAAA,IACJ,KAAK,aAAa;AACd,gBAAU,kCAAkC,KAAK,WAAW,MAAM,MAAM,IAAI,CAAC;AAC7E;AAAA,IACJ,KAAK,aAAa;AACd,gBAAU;AACV;A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4.3.5/node_modules/zod/v4/core/errors.js"],"sourcesContent":["import { $constructor } from \"./core.js\";\nimport * as util from \"./util.js\";\nconst initializer = (inst, def) => {\n inst.name = \"$ZodError\";\n Object.defineProperty(inst, \"_zod\", {\n value: inst._zod,\n enumerable: false,\n });\n Object.defineProperty(inst, \"issues\", {\n value: def,\n enumerable: false,\n });\n inst.message = JSON.stringify(def, util.jsonStringifyReplacer, 2);\n Object.defineProperty(inst, \"toString\", {\n value: () => inst.message,\n enumerable: false,\n });\n};\nexport const $ZodError = $constructor(\"$ZodError\", initializer);\nexport const $ZodRealError = $constructor(\"$ZodError\", initializer, { Parent: Error });\nexport function flattenError(error, mapper = (issue) => issue.message) {\n const fieldErrors = {};\n const formErrors = [];\n for (const sub of error.issues) {\n if (sub.path.length > 0) {\n fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];\n fieldErrors[sub.path[0]].push(mapper(sub));\n }\n else {\n formErrors.push(mapper(sub));\n }\n }\n return { formErrors, fieldErrors };\n}\nexport function formatError(error, mapper = (issue) => issue.message) {\n const fieldErrors = { _errors: [] };\n const processError = (error) => {\n for (const issue of error.issues) {\n if (issue.code === \"invalid_union\" && issue.errors.length) {\n issue.errors.map((issues) => processError({ issues }));\n }\n else if (issue.code === \"invalid_key\") {\n processError({ issues: issue.issues });\n }\n else if (issue.code === \"invalid_element\") {\n processError({ issues: issue.issues });\n }\n else if (issue.path.length === 0) {\n fieldErrors._errors.push(mapper(issue));\n }\n else {\n let curr = fieldErrors;\n let i = 0;\n while (i < issue.path.length) {\n const el = issue.path[i];\n const terminal = i === issue.path.length - 1;\n if (!terminal) {\n curr[el] = curr[el] || { _errors: [] };\n }\n else {\n curr[el] = curr[el] || { _errors: [] };\n curr[el]._errors.push(mapper(issue));\n }\n curr = curr[el];\n i++;\n }\n }\n }\n };\n processError(error);\n return fieldErrors;\n}\nexport function treeifyError(error, mapper = (issue) => issue.message) {\n const result = { errors: [] };\n const processError = (error, path = []) => {\n var _a, _b;\n for (const issue of error.issues) {\n if (issue.code === \"invalid_union\" && issue.errors.length) {\n // regular union error\n issue.errors.map((issues) => processError({ issues }, issue.path));\n }\n else if (issue.code === \"invalid_key\") {\n processError({ issues: issue.issues }, issue.path);\n }\n else if (issue.code === \"invalid_element\") {\n processError({ issues: issue.issues }, issue.path);\n }\n else {\n const fullpath = [...path, ...issue.path];\n if (fullpath.length === 0) {\n result.errors.push(mapper(issue));\n continue;\n }\n let curr = result;\n let i = 0;\n while (i < fullpath.length) {\n const el = fullpath[i];\n const terminal = i === fullpath.length - 1;\n if (typeof el === \"string\") {\n curr.properties ?? (curr.properties = {});\n (_a = curr.properties)[el] ?? (_a[el] = { errors: [] });\n curr = curr.properties[el];\n }\n else {\n curr.items ?? (curr.items = []);\n (_b = curr.items)[el] ?? (_b[el] = { errors: [] });\n curr = curr.items[el];\n }\n if (terminal) {\n curr.errors.push(mapper(issue));\n }\n i++;\n }\n }\n }\n };\n processError(error);\n return result;\n}\n/** Format a ZodError as a human-readable string in the following form.\n *\n * From\n *\n * ```ts\n * ZodError {\n * issues: [\n * {\n * expected: 'string',\n * code: 'invalid_type',\n * path: [ 'username' ],\n * message: 'Invalid input: expected string'\n * },\n * {\n * expected: 'number',\n * code: 'invalid_type',\n * path: [ 'favoriteNumbers', 1 ],\n * message: 'Invalid input: expected number'\n * }\n * ];\n * }\n * ```\n *\n * to\n *\n * ```\n * username\n * ✖ Expected number, received string at \"username\n * favoriteNumbers[0]\n * ✖ Invalid input: expected number\n * ```\n */\nexport function toDotPath(_path) {\n const segs = [];\n const path = _path.map((seg) => (typeof seg === \"object\" ? seg.key : seg));\n for (const seg of path) {\n if (typeof seg === \"number\")\n segs.push(`[${seg}]`);\n else if (typeof seg === \"symbol\")\n segs.push(`[${JSON.stringify(String(seg))}]`);\n else if (/[^\\w$]/.test(seg))\n segs.push(`[${JSON.stringify(seg)}]`);\n else {\n if (segs.length)\n segs.push(\".\");\n segs.push(seg);\n }\n }\n return segs.join(\"\");\n}\nexport function prettifyError(error) {\n const lines = [];\n // sort by path length\n const issues = [...error.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);\n // Process each issue\n for (const issue of issues) {\n lines.push(`✖ ${issue.message}`);\n if (issue.path?.length)\n lines.push(` → at ${toDotPath(issue.path)}`);\n }\n // Convert Map to formatted string\n return lines.join(\"\\n\");\n}\n"],"names":["util.jsonStringifyReplacer"],"mappings":";;AAEA,MAAM,cAAc,CAAC,MAAM,QAAQ;AAC/B,OAAK,OAAO;AACZ,SAAO,eAAe,MAAM,QAAQ;AAAA,IAChC,OAAO,KAAK;AAAA,IACZ,YAAY;AAAA,EACpB,CAAK;AACD,SAAO,eAAe,MAAM,UAAU;AAAA,IAClC,OAAO;AAAA,IACP,YAAY;AAAA,EACpB,CAAK;AACD,OAAK,UAAU,KAAK,UAAU,KAAKA,uBAA4B,CAAC;AAChE,SAAO,eAAe,MAAM,YAAY;AAAA,IACpC,OAAO,MAAM,KAAK;AAAA,IAClB,YAAY;AAAA,EACpB,CAAK;AACL;AACY,MAAC,YAAY,aAAa,aAAa,WAAW;AAClD,MAAC,gBAAgB,aAAa,aAAa,aAAa,EAAE,QAAQ,MAAK,CAAE;","x_google_ignoreList":[0]}
@@ -1,122 +1,9 @@
1
- import { getErrorMap } from "./index.es267.js";
2
- import errorMap from "./index.es268.js";
3
- const makeIssue = (params) => {
4
- const { data, path, errorMaps, issueData } = params;
5
- const fullPath = [...path, ...issueData.path || []];
6
- const fullIssue = {
7
- ...issueData,
8
- path: fullPath
9
- };
10
- if (issueData.message !== void 0) {
11
- return {
12
- ...issueData,
13
- path: fullPath,
14
- message: issueData.message
15
- };
16
- }
17
- let errorMessage = "";
18
- const maps = errorMaps.filter((m) => !!m).slice().reverse();
19
- for (const map of maps) {
20
- errorMessage = map(fullIssue, { data, defaultError: errorMessage }).message;
21
- }
22
- return {
23
- ...issueData,
24
- path: fullPath,
25
- message: errorMessage
26
- };
1
+ const version = {
2
+ major: 4,
3
+ minor: 3,
4
+ patch: 5
27
5
  };
28
- function addIssueToContext(ctx, issueData) {
29
- const overrideMap = getErrorMap();
30
- const issue = makeIssue({
31
- issueData,
32
- data: ctx.data,
33
- path: ctx.path,
34
- errorMaps: [
35
- ctx.common.contextualErrorMap,
36
- // contextual error map is first priority
37
- ctx.schemaErrorMap,
38
- // then schema-bound map if available
39
- overrideMap,
40
- // then global override map
41
- overrideMap === errorMap ? void 0 : errorMap
42
- // then global default map
43
- ].filter((x) => !!x)
44
- });
45
- ctx.common.issues.push(issue);
46
- }
47
- class ParseStatus {
48
- constructor() {
49
- this.value = "valid";
50
- }
51
- dirty() {
52
- if (this.value === "valid")
53
- this.value = "dirty";
54
- }
55
- abort() {
56
- if (this.value !== "aborted")
57
- this.value = "aborted";
58
- }
59
- static mergeArray(status, results) {
60
- const arrayValue = [];
61
- for (const s of results) {
62
- if (s.status === "aborted")
63
- return INVALID;
64
- if (s.status === "dirty")
65
- status.dirty();
66
- arrayValue.push(s.value);
67
- }
68
- return { status: status.value, value: arrayValue };
69
- }
70
- static async mergeObjectAsync(status, pairs) {
71
- const syncPairs = [];
72
- for (const pair of pairs) {
73
- const key = await pair.key;
74
- const value = await pair.value;
75
- syncPairs.push({
76
- key,
77
- value
78
- });
79
- }
80
- return ParseStatus.mergeObjectSync(status, syncPairs);
81
- }
82
- static mergeObjectSync(status, pairs) {
83
- const finalObject = {};
84
- for (const pair of pairs) {
85
- const { key, value } = pair;
86
- if (key.status === "aborted")
87
- return INVALID;
88
- if (value.status === "aborted")
89
- return INVALID;
90
- if (key.status === "dirty")
91
- status.dirty();
92
- if (value.status === "dirty")
93
- status.dirty();
94
- if (key.value !== "__proto__" && (typeof value.value !== "undefined" || pair.alwaysSet)) {
95
- finalObject[key.value] = value.value;
96
- }
97
- }
98
- return { status: status.value, value: finalObject };
99
- }
100
- }
101
- const INVALID = Object.freeze({
102
- status: "aborted"
103
- });
104
- const DIRTY = (value) => ({ status: "dirty", value });
105
- const OK = (value) => ({ status: "valid", value });
106
- const isAborted = (x) => x.status === "aborted";
107
- const isDirty = (x) => x.status === "dirty";
108
- const isValid = (x) => x.status === "valid";
109
- const isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
110
6
  export {
111
- DIRTY,
112
- INVALID,
113
- OK,
114
- ParseStatus,
115
- addIssueToContext,
116
- isAborted,
117
- isAsync,
118
- isDirty,
119
- isValid,
120
- makeIssue
7
+ version
121
8
  };
122
9
  //# sourceMappingURL=index.es269.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es269.js","sources":["../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v3/helpers/parseUtil.js"],"sourcesContent":["import { getErrorMap } from \"../errors.js\";\nimport defaultErrorMap from \"../locales/en.js\";\nexport const makeIssue = (params) => {\n const { data, path, errorMaps, issueData } = params;\n const fullPath = [...path, ...(issueData.path || [])];\n const fullIssue = {\n ...issueData,\n path: fullPath,\n };\n if (issueData.message !== undefined) {\n return {\n ...issueData,\n path: fullPath,\n message: issueData.message,\n };\n }\n let errorMessage = \"\";\n const maps = errorMaps\n .filter((m) => !!m)\n .slice()\n .reverse();\n for (const map of maps) {\n errorMessage = map(fullIssue, { data, defaultError: errorMessage }).message;\n }\n return {\n ...issueData,\n path: fullPath,\n message: errorMessage,\n };\n};\nexport const EMPTY_PATH = [];\nexport function addIssueToContext(ctx, issueData) {\n const overrideMap = getErrorMap();\n const issue = makeIssue({\n issueData: issueData,\n data: ctx.data,\n path: ctx.path,\n errorMaps: [\n ctx.common.contextualErrorMap, // contextual error map is first priority\n ctx.schemaErrorMap, // then schema-bound map if available\n overrideMap, // then global override map\n overrideMap === defaultErrorMap ? undefined : defaultErrorMap, // then global default map\n ].filter((x) => !!x),\n });\n ctx.common.issues.push(issue);\n}\nexport class ParseStatus {\n constructor() {\n this.value = \"valid\";\n }\n dirty() {\n if (this.value === \"valid\")\n this.value = \"dirty\";\n }\n abort() {\n if (this.value !== \"aborted\")\n this.value = \"aborted\";\n }\n static mergeArray(status, results) {\n const arrayValue = [];\n for (const s of results) {\n if (s.status === \"aborted\")\n return INVALID;\n if (s.status === \"dirty\")\n status.dirty();\n arrayValue.push(s.value);\n }\n return { status: status.value, value: arrayValue };\n }\n static async mergeObjectAsync(status, pairs) {\n const syncPairs = [];\n for (const pair of pairs) {\n const key = await pair.key;\n const value = await pair.value;\n syncPairs.push({\n key,\n value,\n });\n }\n return ParseStatus.mergeObjectSync(status, syncPairs);\n }\n static mergeObjectSync(status, pairs) {\n const finalObject = {};\n for (const pair of pairs) {\n const { key, value } = pair;\n if (key.status === \"aborted\")\n return INVALID;\n if (value.status === \"aborted\")\n return INVALID;\n if (key.status === \"dirty\")\n status.dirty();\n if (value.status === \"dirty\")\n status.dirty();\n if (key.value !== \"__proto__\" && (typeof value.value !== \"undefined\" || pair.alwaysSet)) {\n finalObject[key.value] = value.value;\n }\n }\n return { status: status.value, value: finalObject };\n }\n}\nexport const INVALID = Object.freeze({\n status: \"aborted\",\n});\nexport const DIRTY = (value) => ({ status: \"dirty\", value });\nexport const OK = (value) => ({ status: \"valid\", value });\nexport const isAborted = (x) => x.status === \"aborted\";\nexport const isDirty = (x) => x.status === \"dirty\";\nexport const isValid = (x) => x.status === \"valid\";\nexport const isAsync = (x) => typeof Promise !== \"undefined\" && x instanceof Promise;\n"],"names":["defaultErrorMap"],"mappings":";;AAEY,MAAC,YAAY,CAAC,WAAW;AACjC,QAAM,EAAE,MAAM,MAAM,WAAW,UAAS,IAAK;AAC7C,QAAM,WAAW,CAAC,GAAG,MAAM,GAAI,UAAU,QAAQ,CAAA,CAAG;AACpD,QAAM,YAAY;AAAA,IACd,GAAG;AAAA,IACH,MAAM;AAAA,EACd;AACI,MAAI,UAAU,YAAY,QAAW;AACjC,WAAO;AAAA,MACH,GAAG;AAAA,MACH,MAAM;AAAA,MACN,SAAS,UAAU;AAAA,IAC/B;AAAA,EACI;AACA,MAAI,eAAe;AACnB,QAAM,OAAO,UACR,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EACjB,MAAK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A,QACA;AAAA,MAChB,CAAa;AAAA,IACL;AACA,WAAO,YAAY,gBAAgB,QAAQ,SAAS;AAAA,EACxD;AAAA,EACA,OAAO,gBAAgB,QAAQ,OAAO;AAClC,UAAM,cAAc,CAAA;AACpB,eAAW,QAAQ,OAAO;AACtB,YAAM,EAAE,KAAK,MAAK,IAAK;AACvB,UAAI,IAAI,WAAW;AACf,eAAO;AACX,UAAI,MAAM,WAAW;AACjB,eAAO;AACX,UAAI,IAAI,WAAW;AACf,eAAO,MAAK;AAChB,UAAI,MAAM,WAAW;AACjB,eAAO,MAAK;AAChB,UAAI,IAAI,UAAU,gBAAgB,OAAO,MAAM,UAAU,eAAe,KAAK,YAAY;AACrF,oBAAY,IAAI,KAAK,IAAI,MAAM;AAAA,MACnC;AAAA,IACJ;AACA,WAAO,EAAE,QAAQ,OAAO,OAAO,OAAO,YAAW;AAAA,EACrD;AACJ;AACY,MAAC,UAAU,OAAO,OAAO;AAAA,EACjC,QAAQ;AACZ,CAAC;AACW,MAAC,QAAQ,CAAC,WAAW,EAAE,QAAQ,SAAS,MAAK;AAC7C,MAAC,KAAK,CAAC,WAAW,EAAE,QAAQ,SAAS,MAAK;AAC1C,MAAC,YAAY,CAAC,MAAM,EAAE,WAAW;AACjC,MAAC,UAAU,CAAC,MAAM,EAAE,WAAW;AAC/B,MAAC,UAAU,CAAC,MAAM,EAAE,WAAW;AAC/B,MAAC,UAAU,CAAC,MAAM,OAAO,YAAY,eAAe,aAAa;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es269.js","sources":["../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/versions.js"],"sourcesContent":["export const version = {\n major: 4,\n minor: 3,\n patch: 5,\n};\n"],"names":[],"mappings":"AAAY,MAAC,UAAU;AAAA,EACnB,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AACX;","x_google_ignoreList":[0]}
@@ -1,107 +1,72 @@
1
- import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- function Thinking() {
3
- return /* @__PURE__ */ jsxs(Fragment, { children: [
4
- /* @__PURE__ */ jsx("style", { children: `
5
- .loader-wrapper {
6
- position: relative;
7
- display: flex;
8
- align-items: center;
9
- justify-content: flex-start;
10
- color: white;
11
- user-select: none;
12
- gap: 10px;
13
- }
14
-
15
- .loader {
16
- width: 20px;
17
- height: 20px;
18
- aspect-ratio: 1 / 1;
19
- border-radius: 50%;
20
- background-color: transparent;
21
- animation: loader-rotate 1.5s linear infinite;
22
- z-index: 0;
23
- }
24
-
25
- @keyframes loader-rotate {
26
- 0% {
27
- transform: rotate(90deg);
28
- box-shadow:
29
- 0 1px 1px 0 #fff inset,
30
- 0 3px 5px 0 #ff5f9f inset,
31
- 0 4px 4px 0 #0693ff inset;
32
- }
33
- 50% {
34
- transform: rotate(270deg);
35
- background: #7c0911;
36
- box-shadow:
37
- 0 1px 1px 0 #fff inset,
38
- 0 3px 5px 0 #d60a47 inset,
39
- 0 4px 4px 0 #fbef19 inset;
40
- }
41
- 100% {
42
- transform: rotate(450deg);
43
- box-shadow:
44
- 0 1px 1px 0 #fff inset,
45
- 0 3px 5px 0 #ff5f9f inset,
46
- 0 4px 4px 0 #28a9ff inset;
47
- }
48
- }
49
-
50
- .letter-wrapper {
51
- display: flex;
52
- gap: 1px;
53
- }
54
-
55
- .loader-letter {
56
- display: inline-block;
57
- opacity: 0.4;
58
- transform: translateY(0);
59
- animation: loader-letter-anim 2s infinite;
60
- z-index: 1;
61
- border-radius: 50ch;
62
- border: none;
63
- }
64
-
65
- .loader-letter:nth-child(1) { animation-delay: 0s; }
66
- .loader-letter:nth-child(2) { animation-delay: 0.1s; }
67
- .loader-letter:nth-child(3) { animation-delay: 0.2s; }
68
- .loader-letter:nth-child(4) { animation-delay: 0.3s; }
69
- .loader-letter:nth-child(5) { animation-delay: 0.4s; }
70
- .loader-letter:nth-child(6) { animation-delay: 0.5s; }
71
- .loader-letter:nth-child(7) { animation-delay: 0.6s; }
72
- .loader-letter:nth-child(8) { animation-delay: 0.7s; }
73
-
74
- @keyframes loader-letter-anim {
75
- 0%, 100% {
76
- opacity: 0.4;
77
- transform: translateY(0);
78
- }
79
- 20% {
80
- opacity: 1;
81
- transform: scale(1.15);
82
- }
83
- 40% {
84
- opacity: 0.7;
85
- transform: translateY(0);
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { getContentString } from "./index.es22.js";
3
+ import React__default, { useState } from "react";
4
+ function ToolCallFunctions({ title, toolMessages }) {
5
+ const [open, setOpen] = useState(false);
6
+ if (!toolMessages || toolMessages.length === 0) return null;
7
+ return /* @__PURE__ */ jsxs(
8
+ "div",
9
+ {
10
+ id: "accordion-collapse",
11
+ "data-accordion": "collapse",
12
+ className: "w-full rounded-base overflow-hidden shadow-xs border rounded-xl border-zinc-800 max-w-[90%] min-w-25",
13
+ children: [
14
+ /* @__PURE__ */ jsx("h2", { id: "accordion-collapse-heading-1", children: /* @__PURE__ */ jsxs(
15
+ "button",
16
+ {
17
+ type: "button",
18
+ className: "flex items-center justify-between w-full p-2 font-medium gap-3 text-body border-0 outline-none ring-0 appearance-none bg-transparent",
19
+ onClick: () => setOpen((v) => !v),
20
+ "aria-expanded": open,
21
+ "aria-controls": "accordion-collapse-body-1",
22
+ children: [
23
+ /* @__PURE__ */ jsxs("span", { children: [
24
+ "🔷 ",
25
+ title
26
+ ] }),
27
+ /* @__PURE__ */ jsx(
28
+ "svg",
29
+ {
30
+ "data-accordion-icon": true,
31
+ className: `w-5 h-5 shrink-0 transition-transform ${open ? "rotate-0" : "rotate-180"}`,
32
+ "aria-hidden": "true",
33
+ xmlns: "http://www.w3.org/2000/svg",
34
+ width: "24",
35
+ height: "24",
36
+ fill: "none",
37
+ viewBox: "0 0 24 24",
38
+ children: /* @__PURE__ */ jsx(
39
+ "path",
40
+ {
41
+ stroke: "currentColor",
42
+ strokeLinecap: "round",
43
+ strokeLinejoin: "round",
44
+ strokeWidth: "2",
45
+ d: "m5 15 7-7 7 7"
86
46
  }
47
+ )
87
48
  }
88
- ` }),
89
- /* @__PURE__ */ jsxs("div", { className: "loader-wrapper", children: [
90
- /* @__PURE__ */ jsx("div", { className: "loader" }),
91
- /* @__PURE__ */ jsxs("div", { className: "letter-wrapper", children: [
92
- /* @__PURE__ */ jsx("span", { className: "loader-letter", children: "T" }),
93
- /* @__PURE__ */ jsx("span", { className: "loader-letter", children: "h" }),
94
- /* @__PURE__ */ jsx("span", { className: "loader-letter", children: "i" }),
95
- /* @__PURE__ */ jsx("span", { className: "loader-letter", children: "n" }),
96
- /* @__PURE__ */ jsx("span", { className: "loader-letter", children: "k" }),
97
- /* @__PURE__ */ jsx("span", { className: "loader-letter", children: "i" }),
98
- /* @__PURE__ */ jsx("span", { className: "loader-letter", children: "n" }),
99
- /* @__PURE__ */ jsx("span", { className: "loader-letter", children: "g" })
100
- ] })
101
- ] })
102
- ] });
49
+ )
50
+ ]
51
+ }
52
+ ) }),
53
+ /* @__PURE__ */ jsx(
54
+ "div",
55
+ {
56
+ id: "accordion-collapse-body-1",
57
+ className: `${open ? "" : "hidden"}`,
58
+ "aria-labelledby": "accordion-collapse-heading-1",
59
+ children: /* @__PURE__ */ jsx("div", { className: "md:p-5 text-left space-y-3", children: toolMessages.map((toolMsg) => /* @__PURE__ */ jsx("div", { className: "border-zinc-700", children: /* @__PURE__ */ jsx("p", { className: "text-body text-sm", children: toolMsg.content ? getContentString(toolMsg.content) : "" }) }, toolMsg.id)) })
60
+ }
61
+ )
62
+ ]
63
+ }
64
+ );
103
65
  }
66
+ const ToolCallFunctions$1 = React__default.memo(ToolCallFunctions, (prevProps, nextProps) => {
67
+ return prevProps.toolMessages?.length === nextProps.toolMessages?.length;
68
+ });
104
69
  export {
105
- Thinking as default
70
+ ToolCallFunctions$1 as default
106
71
  };
107
72
  //# sourceMappingURL=index.es27.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es27.js","sources":["../src/components/Thinking.tsx"],"sourcesContent":["export default function Thinking() {\n return (\n <>\n <style>{`\n .loader-wrapper {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n color: white;\n user-select: none;\n gap: 10px;\n }\n\n .loader {\n width: 20px;\n height: 20px;\n aspect-ratio: 1 / 1;\n border-radius: 50%;\n background-color: transparent;\n animation: loader-rotate 1.5s linear infinite;\n z-index: 0;\n }\n\n @keyframes loader-rotate {\n 0% {\n transform: rotate(90deg);\n box-shadow:\n 0 1px 1px 0 #fff inset,\n 0 3px 5px 0 #ff5f9f inset,\n 0 4px 4px 0 #0693ff inset;\n }\n 50% {\n transform: rotate(270deg);\n background: #7c0911;\n box-shadow:\n 0 1px 1px 0 #fff inset,\n 0 3px 5px 0 #d60a47 inset,\n 0 4px 4px 0 #fbef19 inset;\n }\n 100% {\n transform: rotate(450deg);\n box-shadow:\n 0 1px 1px 0 #fff inset,\n 0 3px 5px 0 #ff5f9f inset,\n 0 4px 4px 0 #28a9ff inset;\n }\n }\n\n .letter-wrapper {\n display: flex;\n gap: 1px;\n }\n\n .loader-letter {\n display: inline-block;\n opacity: 0.4;\n transform: translateY(0);\n animation: loader-letter-anim 2s infinite;\n z-index: 1;\n border-radius: 50ch;\n border: none;\n }\n\n .loader-letter:nth-child(1) { animation-delay: 0s; }\n .loader-letter:nth-child(2) { animation-delay: 0.1s; }\n .loader-letter:nth-child(3) { animation-delay: 0.2s; }\n .loader-letter:nth-child(4) { animation-delay: 0.3s; }\n .loader-letter:nth-child(5) { animation-delay: 0.4s; }\n .loader-letter:nth-child(6) { animation-delay: 0.5s; }\n .loader-letter:nth-child(7) { animation-delay: 0.6s; }\n .loader-letter:nth-child(8) { animation-delay: 0.7s; }\n\n @keyframes loader-letter-anim {\n 0%, 100% {\n opacity: 0.4;\n transform: translateY(0);\n }\n 20% {\n opacity: 1;\n transform: scale(1.15);\n }\n 40% {\n opacity: 0.7;\n transform: translateY(0);\n }\n }\n `}</style>\n <div className=\"loader-wrapper\">\n <div className=\"loader\"></div>\n <div className=\"letter-wrapper\">\n <span className=\"loader-letter\">T</span>\n <span className=\"loader-letter\">h</span>\n <span className=\"loader-letter\">i</span>\n <span className=\"loader-letter\">n</span>\n <span className=\"loader-letter\">k</span>\n <span className=\"loader-letter\">i</span>\n <span className=\"loader-letter\">n</span>\n <span className=\"loader-letter\">g</span>\n </div>\n </div>\n </>\n )\n}\n"],"names":[],"mappings":";AAAA,SAAwB,WAAW;AAC/B,SACI,qBAAA,UAAA,EACI,UAAA;AAAA,IAAA,oBAAC,SAAA,EAAO,UAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAoFN;AAAA,IACF,qBAAC,OAAA,EAAI,WAAU,kBACX,UAAA;AAAA,MAAA,oBAAC,OAAA,EAAI,WAAU,SAAA,CAAS;AAAA,MACxB,qBAAC,OAAA,EAAI,WAAU,kBACX,UAAA;AAAA,QAAA,oBAAC,QAAA,EAAK,WAAU,iBAAgB,UAAA,KAAC;AAAA,QACjC,oBAAC,QAAA,EAAK,WAAU,iBAAgB,UAAA,KAAC;AAAA,QACjC,oBAAC,QAAA,EAAK,WAAU,iBAAgB,UAAA,KAAC;AAAA,QACjC,oBAAC,QAAA,EAAK,WAAU,iBAAgB,UAAA,KAAC;AAAA,QACjC,oBAAC,QAAA,EAAK,WAAU,iBAAgB,UAAA,KAAC;AAAA,QACjC,oBAAC,QAAA,EAAK,WAAU,iBAAgB,UAAA,KAAC;AAAA,QACjC,oBAAC,QAAA,EAAK,WAAU,iBAAgB,UAAA,KAAC;AAAA,QACjC,oBAAC,QAAA,EAAK,WAAU,iBAAgB,UAAA,IAAA,CAAC;AAAA,MAAA,EAAA,CACrC;AAAA,IAAA,EAAA,CACJ;AAAA,EAAA,GACJ;AAER;"}
1
+ {"version":3,"file":"index.es27.js","sources":["../src/components/ToolCallFunctions.tsx"],"sourcesContent":["import { getContentString } from \"@/utils/utils\";\nimport type { Message } from \"@langchain/langgraph-sdk\";\nimport React, { useState } from \"react\";\n\nfunction ToolCallFunctions({ title, toolMessages }: {\n title?: string;\n toolMessages: Message[];\n}) {\n const [open, setOpen] = useState(false);\n\n // Only render if there are tool messages\n if (!toolMessages || toolMessages.length === 0) return null;\n\n return (\n <div\n id=\"accordion-collapse\"\n data-accordion=\"collapse\"\n className=\"w-full rounded-base overflow-hidden shadow-xs border rounded-xl border-zinc-800 max-w-[90%] min-w-25\"\n >\n <h2 id=\"accordion-collapse-heading-1\">\n <button\n type=\"button\"\n className=\"flex items-center justify-between w-full p-2 font-medium gap-3 text-body border-0 outline-none ring-0 appearance-none bg-transparent\"\n onClick={() => setOpen((v) => !v)}\n aria-expanded={open}\n aria-controls=\"accordion-collapse-body-1\"\n >\n <span>🔷 {title}</span>\n <svg\n data-accordion-icon\n className={`w-5 h-5 shrink-0 transition-transform ${open ? \"rotate-0\" : \"rotate-180\"\n }`}\n aria-hidden=\"true\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n >\n <path\n stroke=\"currentColor\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n strokeWidth=\"2\"\n d=\"m5 15 7-7 7 7\"\n />\n </svg>\n </button>\n </h2>\n <div\n id=\"accordion-collapse-body-1\"\n className={`${open ? \"\" : \"hidden\"}`}\n aria-labelledby=\"accordion-collapse-heading-1\"\n >\n <div className=\"md:p-5 text-left space-y-3\">\n {toolMessages.map((toolMsg) => (\n <div key={toolMsg.id} className=\"border-zinc-700\">\n <p className=\"text-body text-sm\">{toolMsg.content ? getContentString(toolMsg.content) : \"\"}</p>\n </div>\n ))}\n </div>\n </div>\n </div>\n );\n}\n\nexport default React.memo(ToolCallFunctions, (prevProps, nextProps) => {\n return prevProps.toolMessages?.length === nextProps.toolMessages?.length;\n});"],"names":["React"],"mappings":";;;AAIA,SAAS,kBAAkB,EAAE,OAAO,gBAGjC;AACD,QAAM,CAAC,MAAM,OAAO,IAAI,SAAS,KAAK;AAGtC,MAAI,CAAC,gBAAgB,aAAa,WAAW,EAAG,QAAO;AAEvD,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,IAAG;AAAA,MACH,kBAAe;AAAA,MACf,WAAU;AAAA,MAEV,UAAA;AAAA,QAAA,oBAAC,MAAA,EAAG,IAAG,gCACL,UAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,WAAU;AAAA,YACV,SAAS,MAAM,QAAQ,CAAC,MAAM,CAAC,CAAC;AAAA,YAChC,iBAAe;AAAA,YACf,iBAAc;AAAA,YAEd,UAAA;AAAA,cAAA,qBAAC,QAAA,EAAK,UAAA;AAAA,gBAAA;AAAA,gBAAI;AAAA,cAAA,GAAM;AAAA,cAChB;AAAA,gBAAC;AAAA,gBAAA;AAAA,kBACC,uBAAmB;AAAA,kBACnB,WAAW,yCAAyC,OAAO,aAAa,YACtE;AAAA,kBACF,eAAY;AAAA,kBACZ,OAAM;AAAA,kBACN,OAAM;AAAA,kBACN,QAAO;AAAA,kBACP,MAAK;AAAA,kBACL,SAAQ;AAAA,kBAER,UAAA;AAAA,oBAAC;AAAA,oBAAA;AAAA,sBACC,QAAO;AAAA,sBACP,eAAc;AAAA,sBACd,gBAAe;AAAA,sBACf,aAAY;AAAA,sBACZ,GAAE;AAAA,oBAAA;AAAA,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