@aizu-chat/react 0.0.6 → 0.0.7

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 (145) hide show
  1. package/dist/chunk-27KHUFCW.mjs +826 -0
  2. package/dist/chunk-2E7KQQED.mjs +816 -0
  3. package/dist/chunk-2PRXGXTN.mjs +826 -0
  4. package/dist/chunk-2UZJYWLD.mjs +49 -0
  5. package/dist/chunk-2ZNJT52V.mjs +814 -0
  6. package/dist/chunk-34B6VEJC.mjs +677 -0
  7. package/dist/chunk-35JN2QFA.mjs +784 -0
  8. package/dist/chunk-3FHGECHR.mjs +829 -0
  9. package/dist/chunk-3IU2OVAG.mjs +780 -0
  10. package/dist/chunk-3QKHSOJ4.mjs +728 -0
  11. package/dist/chunk-3XKU4RH2.mjs +814 -0
  12. package/dist/chunk-432NOVMD.mjs +822 -0
  13. package/dist/chunk-4KUZUKKS.mjs +776 -0
  14. package/dist/chunk-4UO5EJ54.mjs +826 -0
  15. package/dist/chunk-66DXSMQL.mjs +826 -0
  16. package/dist/chunk-6IIUDDOD.mjs +775 -0
  17. package/dist/chunk-6LVL2AO4.mjs +660 -0
  18. package/dist/chunk-6OMCLP7J.mjs +727 -0
  19. package/dist/chunk-6SYZLU5L.mjs +782 -0
  20. package/dist/chunk-6XLUHLNW.mjs +826 -0
  21. package/dist/chunk-6Z4U3TJM.mjs +728 -0
  22. package/dist/chunk-6ZNP2727.mjs +686 -0
  23. package/dist/chunk-75Q3MZEF.mjs +52 -0
  24. package/dist/chunk-A4YWLH3K.mjs +751 -0
  25. package/dist/chunk-AT5CG6CS.mjs +53 -0
  26. package/dist/chunk-B4CPQFKO.mjs +826 -0
  27. package/dist/chunk-BH52V6JW.mjs +776 -0
  28. package/dist/chunk-BYPRKP6J.mjs +782 -0
  29. package/dist/chunk-BZVP32PP.mjs +826 -0
  30. package/dist/chunk-C6T755JT.mjs +780 -0
  31. package/dist/chunk-CCFEXIKG.mjs +815 -0
  32. package/dist/chunk-CTYW4VK4.mjs +815 -0
  33. package/dist/chunk-D2UMLUGP.mjs +685 -0
  34. package/dist/chunk-D4DQP4GI.mjs +817 -0
  35. package/dist/chunk-DIBJNQPT.mjs +782 -0
  36. package/dist/chunk-DJQK65LJ.mjs +822 -0
  37. package/dist/chunk-DLQEX6QS.mjs +661 -0
  38. package/dist/chunk-EADN4TWS.mjs +819 -0
  39. package/dist/chunk-EAW7EHJI.mjs +826 -0
  40. package/dist/chunk-EBU5NLRJ.mjs +661 -0
  41. package/dist/chunk-EDBTUKCC.mjs +738 -0
  42. package/dist/chunk-EHQQJPCV.mjs +53 -0
  43. package/dist/chunk-EKELJTME.mjs +674 -0
  44. package/dist/chunk-ELAN3AIY.mjs +784 -0
  45. package/dist/chunk-EWW3DF5X.mjs +814 -0
  46. package/dist/chunk-EXJ5M326.mjs +826 -0
  47. package/dist/chunk-F3DEI4YK.mjs +682 -0
  48. package/dist/chunk-FBJJFSCR.mjs +778 -0
  49. package/dist/chunk-G7M72PUZ.mjs +776 -0
  50. package/dist/chunk-GFVIBK25.mjs +673 -0
  51. package/dist/chunk-GYZ6ICY2.mjs +685 -0
  52. package/dist/chunk-H733EISO.mjs +826 -0
  53. package/dist/chunk-H7C7VETZ.mjs +776 -0
  54. package/dist/chunk-HD2IHWNW.mjs +776 -0
  55. package/dist/chunk-HKAXD2CX.mjs +776 -0
  56. package/dist/chunk-HLRWI4YU.mjs +778 -0
  57. package/dist/chunk-HNPNRGTG.mjs +686 -0
  58. package/dist/chunk-HQYDHSWS.mjs +678 -0
  59. package/dist/chunk-HVPJAO66.mjs +654 -0
  60. package/dist/chunk-I36Q4NZE.mjs +675 -0
  61. package/dist/chunk-ICOCFEPA.mjs +776 -0
  62. package/dist/chunk-IMM7TFAT.mjs +685 -0
  63. package/dist/chunk-J5OEYYWK.mjs +728 -0
  64. package/dist/chunk-JDR62NUF.mjs +729 -0
  65. package/dist/chunk-JEOWW4D7.mjs +49 -0
  66. package/dist/chunk-JIAD2PHZ.mjs +779 -0
  67. package/dist/chunk-JMHZ4OMV.mjs +814 -0
  68. package/dist/chunk-JUYVQ5F6.mjs +673 -0
  69. package/dist/chunk-K2EPLJ4A.mjs +728 -0
  70. package/dist/chunk-K2WK46MB.mjs +776 -0
  71. package/dist/chunk-KM4P2EHL.mjs +729 -0
  72. package/dist/chunk-KR4PTVQ4.mjs +779 -0
  73. package/dist/chunk-KUHNPG4Q.mjs +796 -0
  74. package/dist/chunk-KXFNNAMR.mjs +814 -0
  75. package/dist/chunk-LEZIDZXE.mjs +831 -0
  76. package/dist/chunk-LMFIKGQM.mjs +782 -0
  77. package/dist/chunk-LT43AVHN.mjs +780 -0
  78. package/dist/chunk-MBHPFGVB.mjs +782 -0
  79. package/dist/chunk-MDMZAAPV.mjs +685 -0
  80. package/dist/chunk-MFFRGYEX.mjs +728 -0
  81. package/dist/chunk-O3U6ONKJ.mjs +677 -0
  82. package/dist/chunk-OEPSB4XZ.mjs +686 -0
  83. package/dist/chunk-OJ5M55LN.mjs +660 -0
  84. package/dist/chunk-OSHAWBTV.mjs +800 -0
  85. package/dist/chunk-OVDFBN6H.mjs +800 -0
  86. package/dist/chunk-OWFM4DXQ.mjs +686 -0
  87. package/dist/chunk-P4FEBZ5I.mjs +829 -0
  88. package/dist/chunk-QBXYSNTR.mjs +675 -0
  89. package/dist/chunk-QDS6QW7Y.mjs +738 -0
  90. package/dist/chunk-QN5L3XNN.mjs +830 -0
  91. package/dist/chunk-QOK4APM5.mjs +728 -0
  92. package/dist/chunk-QR37WSLB.mjs +826 -0
  93. package/dist/chunk-QS7TKK6W.mjs +685 -0
  94. package/dist/chunk-QTL5KRV3.mjs +686 -0
  95. package/dist/chunk-QV2LQKNI.mjs +686 -0
  96. package/dist/chunk-QV74GE66.mjs +778 -0
  97. package/dist/chunk-R3NQ7SPU.mjs +780 -0
  98. package/dist/chunk-R3Z7JF73.mjs +673 -0
  99. package/dist/chunk-S63OOCED.mjs +781 -0
  100. package/dist/chunk-SJJDDFKI.mjs +830 -0
  101. package/dist/chunk-SLS4OSOJ.mjs +826 -0
  102. package/dist/chunk-SRFLVMCW.mjs +685 -0
  103. package/dist/chunk-SUOZPZBK.mjs +826 -0
  104. package/dist/chunk-TBBN7SM4.mjs +660 -0
  105. package/dist/chunk-TLJKLZBR.mjs +734 -0
  106. package/dist/chunk-U4ODVQIJ.mjs +728 -0
  107. package/dist/chunk-UA2YL34U.mjs +782 -0
  108. package/dist/chunk-UOQWXJXH.mjs +779 -0
  109. package/dist/chunk-UYBDUWOL.mjs +776 -0
  110. package/dist/chunk-UZD3IED4.mjs +676 -0
  111. package/dist/chunk-V2YCL6RC.mjs +798 -0
  112. package/dist/chunk-V5ROKX6T.mjs +779 -0
  113. package/dist/chunk-VBZLGI7W.mjs +819 -0
  114. package/dist/chunk-VEAZMIG4.mjs +830 -0
  115. package/dist/chunk-VMG4TRFB.mjs +750 -0
  116. package/dist/chunk-VOLA2PFJ.mjs +676 -0
  117. package/dist/chunk-VTBZU2XN.mjs +826 -0
  118. package/dist/chunk-WC37DM4U.mjs +816 -0
  119. package/dist/chunk-WDLA4JJY.mjs +778 -0
  120. package/dist/chunk-WQ6BKSTC.mjs +815 -0
  121. package/dist/chunk-WXSNIINA.mjs +778 -0
  122. package/dist/chunk-WYBPKSFQ.mjs +816 -0
  123. package/dist/chunk-XFRN7OPZ.mjs +686 -0
  124. package/dist/chunk-XLRF64SW.mjs +53 -0
  125. package/dist/chunk-YLNMIJBD.mjs +728 -0
  126. package/dist/chunk-YUGESFKI.mjs +819 -0
  127. package/dist/chunk-YVDMWPWQ.mjs +776 -0
  128. package/dist/chunk-Z6L7TEVJ.mjs +828 -0
  129. package/dist/chunk-Z72DRRM6.mjs +829 -0
  130. package/dist/chunk-ZXF3RMZZ.mjs +685 -0
  131. package/dist/components.d.mts +12 -2
  132. package/dist/components.d.ts +12 -2
  133. package/dist/components.js +229 -61
  134. package/dist/components.mjs +5 -3
  135. package/dist/index.d.mts +2 -1
  136. package/dist/index.d.ts +2 -1
  137. package/dist/index.js +273 -61
  138. package/dist/index.mjs +10 -2
  139. package/dist/sdk.d.mts +39 -0
  140. package/dist/sdk.d.ts +39 -0
  141. package/dist/sdk.js +121 -0
  142. package/dist/sdk.mjs +10 -0
  143. package/package.json +1 -1
  144. package/dist/chunk-R4SQBMHN.mjs +0 -55
  145. /package/dist/{chunk-5HB6SA7W.mjs → chunk-4FW2X356.mjs} +0 -0
@@ -1,7 +1,12 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { AizuClient } from './sdk.mjs';
2
3
  import { ComponentProps } from 'react';
3
4
 
4
- declare const AizuChat: () => react_jsx_runtime.JSX.Element;
5
+ interface AizuClientContextValue {
6
+ aizuClient: AizuClient;
7
+ }
8
+
9
+ declare const AizuChat: ({ aizuClient }: AizuClientContextValue) => react_jsx_runtime.JSX.Element;
5
10
 
6
11
  type ButtonProps = ComponentProps<"button">;
7
12
  declare const Button: ({ children, className, onClick, ref, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
@@ -48,4 +53,9 @@ type QuickMenusProps = {
48
53
  };
49
54
  declare const QuickMenus: ({ bannerSrc, message, menus, handleClick }: QuickMenusProps) => react_jsx_runtime.JSX.Element;
50
55
 
51
- export { AizuChat, Button, type ButtonProps, Loading, type Menu, QuickMenus, type QuickMenusProps };
56
+ interface TestComponentProps {
57
+ client: AizuClient;
58
+ }
59
+ declare const TestComponent: ({ client }: TestComponentProps) => react_jsx_runtime.JSX.Element;
60
+
61
+ export { AizuChat, Button, type ButtonProps, Loading, type Menu, QuickMenus, type QuickMenusProps, TestComponent };
@@ -1,7 +1,12 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { AizuClient } from './sdk.js';
2
3
  import { ComponentProps } from 'react';
3
4
 
4
- declare const AizuChat: () => react_jsx_runtime.JSX.Element;
5
+ interface AizuClientContextValue {
6
+ aizuClient: AizuClient;
7
+ }
8
+
9
+ declare const AizuChat: ({ aizuClient }: AizuClientContextValue) => react_jsx_runtime.JSX.Element;
5
10
 
6
11
  type ButtonProps = ComponentProps<"button">;
7
12
  declare const Button: ({ children, className, onClick, ref, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
@@ -48,4 +53,9 @@ type QuickMenusProps = {
48
53
  };
49
54
  declare const QuickMenus: ({ bannerSrc, message, menus, handleClick }: QuickMenusProps) => react_jsx_runtime.JSX.Element;
50
55
 
51
- export { AizuChat, Button, type ButtonProps, Loading, type Menu, QuickMenus, type QuickMenusProps };
56
+ interface TestComponentProps {
57
+ client: AizuClient;
58
+ }
59
+ declare const TestComponent: ({ client }: TestComponentProps) => react_jsx_runtime.JSX.Element;
60
+
61
+ export { AizuChat, Button, type ButtonProps, Loading, type Menu, QuickMenus, type QuickMenusProps, TestComponent };
@@ -73,7 +73,8 @@ __export(components_exports, {
73
73
  AizuChat: () => AizuChat,
74
74
  Button: () => Button,
75
75
  Loading: () => Loading,
76
- QuickMenus: () => QuickMenus
76
+ QuickMenus: () => QuickMenus,
77
+ TestComponent: () => TestComponent
77
78
  });
78
79
  module.exports = __toCommonJS(components_exports);
79
80
 
@@ -100,7 +101,7 @@ function styleInject(css, { insertAt } = {}) {
100
101
  }
101
102
 
102
103
  // src/global.css
103
- styleInject('/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */\n@layer properties;\n@layer theme, base, components, utilities;\n@layer theme {\n :root,\n :host {\n --font-sans:\n ui-sans-serif,\n system-ui,\n sans-serif,\n "Apple Color Emoji",\n "Segoe UI Emoji",\n "Segoe UI Symbol",\n "Noto Color Emoji";\n --font-mono:\n ui-monospace,\n SFMono-Regular,\n Menlo,\n Monaco,\n Consolas,\n "Liberation Mono",\n "Courier New",\n monospace;\n --color-orange-200: oklch(90.1% 0.076 70.697);\n --color-orange-300: oklch(83.7% 0.128 66.29);\n --color-orange-400: oklch(75% 0.183 55.934);\n --color-orange-500: oklch(70.5% 0.213 47.604);\n --color-gray-100: oklch(96.7% 0.003 264.542);\n --color-gray-200: oklch(92.8% 0.006 264.531);\n --color-gray-500: oklch(55.1% 0.027 264.364);\n --color-black: #000;\n --color-white: #fff;\n --spacing: 0.25rem;\n --text-sm: 0.875rem;\n --text-sm--line-height: calc(1.25 / 0.875);\n --radius-3xl: 1.5rem;\n --radius-4xl: 2rem;\n --default-transition-duration: 150ms;\n --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n --default-font-family: var(--font-sans);\n --default-mono-font-family: var(--font-mono);\n --font-sukhumvit:\n "Sukhumvit Set",\n ui-sans-serif,\n system-ui,\n sans-serif;\n --animate-wiggle: wiggle 1s ease-in-out infinite;\n }\n}\n@layer base {\n *,\n ::after,\n ::before,\n ::backdrop,\n ::file-selector-button {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n border: 0 solid;\n }\n html,\n :host {\n line-height: 1.5;\n -webkit-text-size-adjust: 100%;\n tab-size: 4;\n font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");\n font-feature-settings: var(--default-font-feature-settings, normal);\n font-variation-settings: var(--default-font-variation-settings, normal);\n -webkit-tap-highlight-color: transparent;\n }\n hr {\n height: 0;\n color: inherit;\n border-top-width: 1px;\n }\n abbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n }\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-size: inherit;\n font-weight: inherit;\n }\n a {\n color: inherit;\n -webkit-text-decoration: inherit;\n text-decoration: inherit;\n }\n b,\n strong {\n font-weight: bolder;\n }\n code,\n kbd,\n samp,\n pre {\n font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);\n font-feature-settings: var(--default-mono-font-feature-settings, normal);\n font-variation-settings: var(--default-mono-font-variation-settings, normal);\n font-size: 1em;\n }\n small {\n font-size: 80%;\n }\n sub,\n sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n }\n sub {\n bottom: -0.25em;\n }\n sup {\n top: -0.5em;\n }\n table {\n text-indent: 0;\n border-color: inherit;\n border-collapse: collapse;\n }\n :-moz-focusring {\n outline: auto;\n }\n progress {\n vertical-align: baseline;\n }\n summary {\n display: list-item;\n }\n ol,\n ul,\n menu {\n list-style: none;\n }\n img,\n svg,\n video,\n canvas,\n audio,\n iframe,\n embed,\n object {\n display: block;\n vertical-align: middle;\n }\n img,\n video {\n max-width: 100%;\n height: auto;\n }\n button,\n input,\n select,\n optgroup,\n textarea,\n ::file-selector-button {\n font: inherit;\n font-feature-settings: inherit;\n font-variation-settings: inherit;\n letter-spacing: inherit;\n color: inherit;\n border-radius: 0;\n background-color: transparent;\n opacity: 1;\n }\n :where(select:is([multiple], [size])) optgroup {\n font-weight: bolder;\n }\n :where(select:is([multiple], [size])) optgroup option {\n padding-inline-start: 20px;\n }\n ::file-selector-button {\n margin-inline-end: 4px;\n }\n ::placeholder {\n opacity: 1;\n }\n @supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {\n ::placeholder {\n color: currentcolor;\n @supports (color: color-mix(in lab, red, red)) {\n color: color-mix(in oklab, currentcolor 50%, transparent);\n }\n }\n }\n textarea {\n resize: vertical;\n }\n ::-webkit-search-decoration {\n -webkit-appearance: none;\n }\n ::-webkit-date-and-time-value {\n min-height: 1lh;\n text-align: inherit;\n }\n ::-webkit-datetime-edit {\n display: inline-flex;\n }\n ::-webkit-datetime-edit-fields-wrapper {\n padding: 0;\n }\n ::-webkit-datetime-edit,\n ::-webkit-datetime-edit-year-field,\n ::-webkit-datetime-edit-month-field,\n ::-webkit-datetime-edit-day-field,\n ::-webkit-datetime-edit-hour-field,\n ::-webkit-datetime-edit-minute-field,\n ::-webkit-datetime-edit-second-field,\n ::-webkit-datetime-edit-millisecond-field,\n ::-webkit-datetime-edit-meridiem-field {\n padding-block: 0;\n }\n ::-webkit-calendar-picker-indicator {\n line-height: 1;\n }\n :-moz-ui-invalid {\n box-shadow: none;\n }\n button,\n input:where([type=button], [type=reset], [type=submit]),\n ::file-selector-button {\n appearance: button;\n }\n ::-webkit-inner-spin-button,\n ::-webkit-outer-spin-button {\n height: auto;\n }\n [hidden]:where(:not([hidden=until-found])) {\n display: none !important;\n }\n}\n@layer utilities {\n .pointer-events-none {\n pointer-events: none;\n }\n .invisible {\n visibility: hidden;\n }\n .absolute {\n position: absolute;\n }\n .fixed {\n position: fixed;\n }\n .relative {\n position: relative;\n }\n .top-0 {\n top: calc(var(--spacing) * 0);\n }\n .top-1\\/2 {\n top: calc(1/2 * 100%);\n }\n .right-0 {\n right: calc(var(--spacing) * 0);\n }\n .right-2 {\n right: calc(var(--spacing) * 2);\n }\n .right-5 {\n right: calc(var(--spacing) * 5);\n }\n .bottom-0 {\n bottom: calc(var(--spacing) * 0);\n }\n .bottom-4 {\n bottom: calc(var(--spacing) * 4);\n }\n .bottom-5 {\n bottom: calc(var(--spacing) * 5);\n }\n .left-1\\/2 {\n left: calc(1/2 * 100%);\n }\n .z-10 {\n z-index: 10;\n }\n .z-9999 {\n z-index: 9999;\n }\n .mt-1 {\n margin-top: calc(var(--spacing) * 1);\n }\n .mr-auto {\n margin-right: auto;\n }\n .mb-4 {\n margin-bottom: calc(var(--spacing) * 4);\n }\n .ml-auto {\n margin-left: auto;\n }\n .block {\n display: block;\n }\n .flex {\n display: flex;\n }\n .aspect-square {\n aspect-ratio: 1 / 1;\n }\n .h-0\\.75 {\n height: calc(var(--spacing) * 0.75);\n }\n .h-1\\.25 {\n height: calc(var(--spacing) * 1.25);\n }\n .h-2 {\n height: calc(var(--spacing) * 2);\n }\n .h-8 {\n height: calc(var(--spacing) * 8);\n }\n .h-10 {\n height: calc(var(--spacing) * 10);\n }\n .h-16 {\n height: calc(var(--spacing) * 16);\n }\n .h-29\\.5 {\n height: calc(var(--spacing) * 29.5);\n }\n .h-42\\.5 {\n height: calc(var(--spacing) * 42.5);\n }\n .h-full {\n height: 100%;\n }\n .w-0\\.75 {\n width: calc(var(--spacing) * 0.75);\n }\n .w-1\\.25 {\n width: calc(var(--spacing) * 1.25);\n }\n .w-2 {\n width: calc(var(--spacing) * 2);\n }\n .w-8 {\n width: calc(var(--spacing) * 8);\n }\n .w-10 {\n width: calc(var(--spacing) * 10);\n }\n .w-75\\.5 {\n width: calc(var(--spacing) * 75.5);\n }\n .w-full {\n width: 100%;\n }\n .max-w-69\\.5 {\n max-width: calc(var(--spacing) * 69.5);\n }\n .max-w-75\\.5 {\n max-width: calc(var(--spacing) * 75.5);\n }\n .min-w-max {\n min-width: max-content;\n }\n .flex-1 {\n flex: 1;\n }\n .shrink-0 {\n flex-shrink: 0;\n }\n .-translate-x-1\\/2 {\n --tw-translate-x: calc(calc(1/2 * 100%) * -1);\n translate: var(--tw-translate-x) var(--tw-translate-y);\n }\n .-translate-y-1\\/2 {\n --tw-translate-y: calc(calc(1/2 * 100%) * -1);\n translate: var(--tw-translate-x) var(--tw-translate-y);\n }\n .animate-wiggle {\n animation: var(--animate-wiggle);\n }\n .cursor-pointer {\n cursor: pointer;\n }\n .flex-col {\n flex-direction: column;\n }\n .flex-wrap {\n flex-wrap: wrap;\n }\n .items-center {\n align-items: center;\n }\n .justify-between {\n justify-content: space-between;\n }\n .justify-center {\n justify-content: center;\n }\n .gap-3 {\n gap: calc(var(--spacing) * 3);\n }\n .gap-x-1 {\n column-gap: calc(var(--spacing) * 1);\n }\n .gap-x-2 {\n column-gap: calc(var(--spacing) * 2);\n }\n .gap-y-3 {\n row-gap: calc(var(--spacing) * 3);\n }\n .overflow-hidden {\n overflow: hidden;\n }\n .overflow-x-scroll {\n overflow-x: scroll;\n }\n .overflow-y-auto {\n overflow-y: auto;\n }\n .rounded-3xl {\n border-radius: var(--radius-3xl);\n }\n .rounded-full {\n border-radius: calc(infinity * 1px);\n }\n .border {\n border-style: var(--tw-border-style);\n border-width: 1px;\n }\n .border-b {\n border-bottom-style: var(--tw-border-style);\n border-bottom-width: 1px;\n }\n .border-none {\n --tw-border-style: none;\n border-style: none;\n }\n .border-black\\/50 {\n border-color: color-mix(in srgb, #000 50%, transparent);\n @supports (color: color-mix(in lab, red, red)) {\n border-color: color-mix(in oklab, var(--color-black) 50%, transparent);\n }\n }\n .border-gray-200 {\n border-color: var(--color-gray-200);\n }\n .border-orange-300 {\n border-color: var(--color-orange-300);\n }\n .border-orange-400 {\n border-color: var(--color-orange-400);\n }\n .bg-\\[\\#F8F8FA\\] {\n background-color: #F8F8FA;\n }\n .bg-black\\/60 {\n background-color: color-mix(in srgb, #000 60%, transparent);\n @supports (color: color-mix(in lab, red, red)) {\n background-color: color-mix(in oklab, var(--color-black) 60%, transparent);\n }\n }\n .bg-gray-100 {\n background-color: var(--color-gray-100);\n }\n .bg-orange-200 {\n background-color: var(--color-orange-200);\n }\n .bg-orange-400 {\n background-color: var(--color-orange-400);\n }\n .bg-white {\n background-color: var(--color-white);\n }\n .bg-linear-to-l {\n --tw-gradient-position: to left;\n @supports (background-image: linear-gradient(in lab, red, red)) {\n --tw-gradient-position: to left in oklab;\n }\n background-image: linear-gradient(var(--tw-gradient-stops));\n }\n .from-white {\n --tw-gradient-from: var(--color-white);\n --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));\n }\n .to-transparent {\n --tw-gradient-to: transparent;\n --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));\n }\n .p-2 {\n padding: calc(var(--spacing) * 2);\n }\n .p-3 {\n padding: calc(var(--spacing) * 3);\n }\n .p-4 {\n padding: calc(var(--spacing) * 4);\n }\n .px-4 {\n padding-inline: calc(var(--spacing) * 4);\n }\n .py-2 {\n padding-block: calc(var(--spacing) * 2);\n }\n .py-3 {\n padding-block: calc(var(--spacing) * 3);\n }\n .pt-4 {\n padding-top: calc(var(--spacing) * 4);\n }\n .pr-12 {\n padding-right: calc(var(--spacing) * 12);\n }\n .pb-2 {\n padding-bottom: calc(var(--spacing) * 2);\n }\n .pl-4 {\n padding-left: calc(var(--spacing) * 4);\n }\n .text-center {\n text-align: center;\n }\n .text-sm {\n font-size: var(--text-sm);\n line-height: var(--tw-leading, var(--text-sm--line-height));\n }\n .text-\\[10px\\] {\n font-size: 10px;\n }\n .text-\\[12px\\] {\n font-size: 12px;\n }\n .text-nowrap {\n text-wrap: nowrap;\n }\n .text-black\\/85 {\n color: color-mix(in srgb, #000 85%, transparent);\n @supports (color: color-mix(in lab, red, red)) {\n color: color-mix(in oklab, var(--color-black) 85%, transparent);\n }\n }\n .text-gray-500 {\n color: var(--color-gray-500);\n }\n .text-orange-500 {\n color: var(--color-orange-500);\n }\n .shadow {\n --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));\n box-shadow:\n var(--tw-inset-shadow),\n var(--tw-inset-ring-shadow),\n var(--tw-ring-offset-shadow),\n var(--tw-ring-shadow),\n var(--tw-shadow);\n }\n .shadow-2xl {\n --tw-shadow: 0 25px 50px -12px var(--tw-shadow-color, rgb(0 0 0 / 0.25));\n box-shadow:\n var(--tw-inset-shadow),\n var(--tw-inset-ring-shadow),\n var(--tw-ring-offset-shadow),\n var(--tw-ring-shadow),\n var(--tw-shadow);\n }\n .shadow-orange-400 {\n --tw-shadow-color: oklch(75% 0.183 55.934);\n @supports (color: color-mix(in lab, red, red)) {\n --tw-shadow-color: color-mix(in oklab, var(--color-orange-400) var(--tw-shadow-alpha), transparent);\n }\n }\n .transition-colors {\n transition-property:\n color,\n background-color,\n border-color,\n outline-color,\n text-decoration-color,\n fill,\n stroke,\n --tw-gradient-from,\n --tw-gradient-via,\n --tw-gradient-to;\n transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));\n transition-duration: var(--tw-duration, var(--default-transition-duration));\n }\n .outline-none {\n --tw-outline-style: none;\n outline-style: none;\n }\n .hover\\:bg-gray-200 {\n &:hover {\n @media (hover: hover) {\n background-color: var(--color-gray-200);\n }\n }\n }\n .focus\\:ring-2 {\n &:focus {\n --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);\n box-shadow:\n var(--tw-inset-shadow),\n var(--tw-inset-ring-shadow),\n var(--tw-ring-offset-shadow),\n var(--tw-ring-shadow),\n var(--tw-shadow);\n }\n }\n .focus\\:ring-orange-300 {\n &:focus {\n --tw-ring-color: var(--color-orange-300);\n }\n }\n .lg\\:top-auto {\n @media (width >= 64rem) {\n top: auto;\n }\n }\n .lg\\:right-5 {\n @media (width >= 64rem) {\n right: calc(var(--spacing) * 5);\n }\n }\n .lg\\:bottom-20 {\n @media (width >= 64rem) {\n bottom: calc(var(--spacing) * 20);\n }\n }\n .lg\\:hidden {\n @media (width >= 64rem) {\n display: none;\n }\n }\n .lg\\:h-46 {\n @media (width >= 64rem) {\n height: calc(var(--spacing) * 46);\n }\n }\n .lg\\:max-h-201 {\n @media (width >= 64rem) {\n max-height: calc(var(--spacing) * 201);\n }\n }\n .lg\\:w-107\\.5 {\n @media (width >= 64rem) {\n width: calc(var(--spacing) * 107.5);\n }\n }\n .lg\\:max-w-80 {\n @media (width >= 64rem) {\n max-width: calc(var(--spacing) * 80);\n }\n }\n .lg\\:flex-wrap {\n @media (width >= 64rem) {\n flex-wrap: wrap;\n }\n }\n .lg\\:rounded-4xl {\n @media (width >= 64rem) {\n border-radius: var(--radius-4xl);\n }\n }\n}\n@layer base {\n * {\n font-family: var(--font-sukhumvit);\n }\n}\n@layer utilities {\n .scrollbar-hide::-webkit-scrollbar {\n display: none;\n }\n .scrollbar-hide {\n -ms-overflow-style: none;\n scrollbar-width: none;\n }\n}\n@property --tw-translate-x { syntax: "*"; inherits: false; initial-value: 0; }\n@property --tw-translate-y { syntax: "*"; inherits: false; initial-value: 0; }\n@property --tw-translate-z { syntax: "*"; inherits: false; initial-value: 0; }\n@property --tw-border-style { syntax: "*"; inherits: false; initial-value: solid; }\n@property --tw-gradient-position { syntax: "*"; inherits: false; }\n@property --tw-gradient-from { syntax: "<color>"; inherits: false; initial-value: #0000; }\n@property --tw-gradient-via { syntax: "<color>"; inherits: false; initial-value: #0000; }\n@property --tw-gradient-to { syntax: "<color>"; inherits: false; initial-value: #0000; }\n@property --tw-gradient-stops { syntax: "*"; inherits: false; }\n@property --tw-gradient-via-stops { syntax: "*"; inherits: false; }\n@property --tw-gradient-from-position { syntax: "<length-percentage>"; inherits: false; initial-value: 0%; }\n@property --tw-gradient-via-position { syntax: "<length-percentage>"; inherits: false; initial-value: 50%; }\n@property --tw-gradient-to-position { syntax: "<length-percentage>"; inherits: false; initial-value: 100%; }\n@property --tw-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }\n@property --tw-shadow-color { syntax: "*"; inherits: false; }\n@property --tw-shadow-alpha { syntax: "<percentage>"; inherits: false; initial-value: 100%; }\n@property --tw-inset-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }\n@property --tw-inset-shadow-color { syntax: "*"; inherits: false; }\n@property --tw-inset-shadow-alpha { syntax: "<percentage>"; inherits: false; initial-value: 100%; }\n@property --tw-ring-color { syntax: "*"; inherits: false; }\n@property --tw-ring-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }\n@property --tw-inset-ring-color { syntax: "*"; inherits: false; }\n@property --tw-inset-ring-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }\n@property --tw-ring-inset { syntax: "*"; inherits: false; }\n@property --tw-ring-offset-width { syntax: "<length>"; inherits: false; initial-value: 0px; }\n@property --tw-ring-offset-color { syntax: "*"; inherits: false; initial-value: #fff; }\n@property --tw-ring-offset-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }\n@keyframes wiggle {\n 0%, 100% {\n transform: translateY(-50%);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 50% {\n transform: none;\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n}\n@layer properties {\n @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {\n *,\n ::before,\n ::after,\n ::backdrop {\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-translate-z: 0;\n --tw-border-style: solid;\n --tw-gradient-position: initial;\n --tw-gradient-from: #0000;\n --tw-gradient-via: #0000;\n --tw-gradient-to: #0000;\n --tw-gradient-stops: initial;\n --tw-gradient-via-stops: initial;\n --tw-gradient-from-position: 0%;\n --tw-gradient-via-position: 50%;\n --tw-gradient-to-position: 100%;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-color: initial;\n --tw-shadow-alpha: 100%;\n --tw-inset-shadow: 0 0 #0000;\n --tw-inset-shadow-color: initial;\n --tw-inset-shadow-alpha: 100%;\n --tw-ring-color: initial;\n --tw-ring-shadow: 0 0 #0000;\n --tw-inset-ring-color: initial;\n --tw-inset-ring-shadow: 0 0 #0000;\n --tw-ring-inset: initial;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-offset-shadow: 0 0 #0000;\n }\n }\n}\n');
104
+ styleInject('/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */\n@layer properties;\n@layer theme, base, components, utilities;\n@layer theme {\n :root,\n :host {\n --font-sans:\n ui-sans-serif,\n system-ui,\n sans-serif,\n "Apple Color Emoji",\n "Segoe UI Emoji",\n "Segoe UI Symbol",\n "Noto Color Emoji";\n --font-mono:\n ui-monospace,\n SFMono-Regular,\n Menlo,\n Monaco,\n Consolas,\n "Liberation Mono",\n "Courier New",\n monospace;\n --color-orange-200: oklch(90.1% 0.076 70.697);\n --color-orange-300: oklch(83.7% 0.128 66.29);\n --color-orange-400: oklch(75% 0.183 55.934);\n --color-orange-500: oklch(70.5% 0.213 47.604);\n --color-blue-500: oklch(62.3% 0.214 259.815);\n --color-blue-600: oklch(54.6% 0.245 262.881);\n --color-gray-100: oklch(96.7% 0.003 264.542);\n --color-gray-200: oklch(92.8% 0.006 264.531);\n --color-gray-400: oklch(70.7% 0.022 261.325);\n --color-gray-500: oklch(55.1% 0.027 264.364);\n --color-gray-600: oklch(44.6% 0.03 256.802);\n --color-black: #000;\n --color-white: #fff;\n --spacing: 0.25rem;\n --text-sm: 0.875rem;\n --text-sm--line-height: calc(1.25 / 0.875);\n --text-xl: 1.25rem;\n --text-xl--line-height: calc(1.75 / 1.25);\n --font-weight-bold: 700;\n --radius-3xl: 1.5rem;\n --radius-4xl: 2rem;\n --default-transition-duration: 150ms;\n --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n --default-font-family: var(--font-sans);\n --default-mono-font-family: var(--font-mono);\n --font-sukhumvit:\n "Sukhumvit Set",\n ui-sans-serif,\n system-ui,\n sans-serif;\n --animate-wiggle: wiggle 1s ease-in-out infinite;\n }\n}\n@layer base {\n *,\n ::after,\n ::before,\n ::backdrop,\n ::file-selector-button {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n border: 0 solid;\n }\n html,\n :host {\n line-height: 1.5;\n -webkit-text-size-adjust: 100%;\n tab-size: 4;\n font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");\n font-feature-settings: var(--default-font-feature-settings, normal);\n font-variation-settings: var(--default-font-variation-settings, normal);\n -webkit-tap-highlight-color: transparent;\n }\n hr {\n height: 0;\n color: inherit;\n border-top-width: 1px;\n }\n abbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n }\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-size: inherit;\n font-weight: inherit;\n }\n a {\n color: inherit;\n -webkit-text-decoration: inherit;\n text-decoration: inherit;\n }\n b,\n strong {\n font-weight: bolder;\n }\n code,\n kbd,\n samp,\n pre {\n font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);\n font-feature-settings: var(--default-mono-font-feature-settings, normal);\n font-variation-settings: var(--default-mono-font-variation-settings, normal);\n font-size: 1em;\n }\n small {\n font-size: 80%;\n }\n sub,\n sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n }\n sub {\n bottom: -0.25em;\n }\n sup {\n top: -0.5em;\n }\n table {\n text-indent: 0;\n border-color: inherit;\n border-collapse: collapse;\n }\n :-moz-focusring {\n outline: auto;\n }\n progress {\n vertical-align: baseline;\n }\n summary {\n display: list-item;\n }\n ol,\n ul,\n menu {\n list-style: none;\n }\n img,\n svg,\n video,\n canvas,\n audio,\n iframe,\n embed,\n object {\n display: block;\n vertical-align: middle;\n }\n img,\n video {\n max-width: 100%;\n height: auto;\n }\n button,\n input,\n select,\n optgroup,\n textarea,\n ::file-selector-button {\n font: inherit;\n font-feature-settings: inherit;\n font-variation-settings: inherit;\n letter-spacing: inherit;\n color: inherit;\n border-radius: 0;\n background-color: transparent;\n opacity: 1;\n }\n :where(select:is([multiple], [size])) optgroup {\n font-weight: bolder;\n }\n :where(select:is([multiple], [size])) optgroup option {\n padding-inline-start: 20px;\n }\n ::file-selector-button {\n margin-inline-end: 4px;\n }\n ::placeholder {\n opacity: 1;\n }\n @supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {\n ::placeholder {\n color: currentcolor;\n @supports (color: color-mix(in lab, red, red)) {\n color: color-mix(in oklab, currentcolor 50%, transparent);\n }\n }\n }\n textarea {\n resize: vertical;\n }\n ::-webkit-search-decoration {\n -webkit-appearance: none;\n }\n ::-webkit-date-and-time-value {\n min-height: 1lh;\n text-align: inherit;\n }\n ::-webkit-datetime-edit {\n display: inline-flex;\n }\n ::-webkit-datetime-edit-fields-wrapper {\n padding: 0;\n }\n ::-webkit-datetime-edit,\n ::-webkit-datetime-edit-year-field,\n ::-webkit-datetime-edit-month-field,\n ::-webkit-datetime-edit-day-field,\n ::-webkit-datetime-edit-hour-field,\n ::-webkit-datetime-edit-minute-field,\n ::-webkit-datetime-edit-second-field,\n ::-webkit-datetime-edit-millisecond-field,\n ::-webkit-datetime-edit-meridiem-field {\n padding-block: 0;\n }\n ::-webkit-calendar-picker-indicator {\n line-height: 1;\n }\n :-moz-ui-invalid {\n box-shadow: none;\n }\n button,\n input:where([type=button], [type=reset], [type=submit]),\n ::file-selector-button {\n appearance: button;\n }\n ::-webkit-inner-spin-button,\n ::-webkit-outer-spin-button {\n height: auto;\n }\n [hidden]:where(:not([hidden=until-found])) {\n display: none !important;\n }\n}\n@layer utilities {\n .pointer-events-none {\n pointer-events: none;\n }\n .invisible {\n visibility: hidden;\n }\n .absolute {\n position: absolute;\n }\n .fixed {\n position: fixed;\n }\n .relative {\n position: relative;\n }\n .top-0 {\n top: calc(var(--spacing) * 0);\n }\n .top-1\\/2 {\n top: calc(1/2 * 100%);\n }\n .right-0 {\n right: calc(var(--spacing) * 0);\n }\n .right-2 {\n right: calc(var(--spacing) * 2);\n }\n .right-5 {\n right: calc(var(--spacing) * 5);\n }\n .bottom-0 {\n bottom: calc(var(--spacing) * 0);\n }\n .bottom-4 {\n bottom: calc(var(--spacing) * 4);\n }\n .bottom-5 {\n bottom: calc(var(--spacing) * 5);\n }\n .left-1\\/2 {\n left: calc(1/2 * 100%);\n }\n .z-10 {\n z-index: 10;\n }\n .z-9999 {\n z-index: 9999;\n }\n .mt-1 {\n margin-top: calc(var(--spacing) * 1);\n }\n .mr-auto {\n margin-right: auto;\n }\n .mb-4 {\n margin-bottom: calc(var(--spacing) * 4);\n }\n .ml-auto {\n margin-left: auto;\n }\n .block {\n display: block;\n }\n .flex {\n display: flex;\n }\n .aspect-square {\n aspect-ratio: 1 / 1;\n }\n .h-0\\.75 {\n height: calc(var(--spacing) * 0.75);\n }\n .h-1\\.25 {\n height: calc(var(--spacing) * 1.25);\n }\n .h-2 {\n height: calc(var(--spacing) * 2);\n }\n .h-8 {\n height: calc(var(--spacing) * 8);\n }\n .h-10 {\n height: calc(var(--spacing) * 10);\n }\n .h-16 {\n height: calc(var(--spacing) * 16);\n }\n .h-29\\.5 {\n height: calc(var(--spacing) * 29.5);\n }\n .h-42\\.5 {\n height: calc(var(--spacing) * 42.5);\n }\n .h-full {\n height: 100%;\n }\n .w-0\\.75 {\n width: calc(var(--spacing) * 0.75);\n }\n .w-1\\.25 {\n width: calc(var(--spacing) * 1.25);\n }\n .w-2 {\n width: calc(var(--spacing) * 2);\n }\n .w-8 {\n width: calc(var(--spacing) * 8);\n }\n .w-10 {\n width: calc(var(--spacing) * 10);\n }\n .w-75\\.5 {\n width: calc(var(--spacing) * 75.5);\n }\n .w-full {\n width: 100%;\n }\n .max-w-69\\.5 {\n max-width: calc(var(--spacing) * 69.5);\n }\n .max-w-75\\.5 {\n max-width: calc(var(--spacing) * 75.5);\n }\n .min-w-max {\n min-width: max-content;\n }\n .flex-1 {\n flex: 1;\n }\n .shrink-0 {\n flex-shrink: 0;\n }\n .-translate-x-1\\/2 {\n --tw-translate-x: calc(calc(1/2 * 100%) * -1);\n translate: var(--tw-translate-x) var(--tw-translate-y);\n }\n .-translate-y-1\\/2 {\n --tw-translate-y: calc(calc(1/2 * 100%) * -1);\n translate: var(--tw-translate-x) var(--tw-translate-y);\n }\n .animate-wiggle {\n animation: var(--animate-wiggle);\n }\n .cursor-pointer {\n cursor: pointer;\n }\n .flex-col {\n flex-direction: column;\n }\n .flex-wrap {\n flex-wrap: wrap;\n }\n .items-center {\n align-items: center;\n }\n .justify-between {\n justify-content: space-between;\n }\n .justify-center {\n justify-content: center;\n }\n .gap-2 {\n gap: calc(var(--spacing) * 2);\n }\n .gap-3 {\n gap: calc(var(--spacing) * 3);\n }\n .space-y-1 {\n :where(& > :not(:last-child)) {\n --tw-space-y-reverse: 0;\n margin-block-start: calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));\n margin-block-end: calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)));\n }\n }\n .space-y-4 {\n :where(& > :not(:last-child)) {\n --tw-space-y-reverse: 0;\n margin-block-start: calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));\n margin-block-end: calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)));\n }\n }\n .gap-x-1 {\n column-gap: calc(var(--spacing) * 1);\n }\n .gap-x-2 {\n column-gap: calc(var(--spacing) * 2);\n }\n .gap-y-3 {\n row-gap: calc(var(--spacing) * 3);\n }\n .overflow-hidden {\n overflow: hidden;\n }\n .overflow-x-scroll {\n overflow-x: scroll;\n }\n .overflow-y-auto {\n overflow-y: auto;\n }\n .rounded {\n border-radius: 0.25rem;\n }\n .rounded-3xl {\n border-radius: var(--radius-3xl);\n }\n .rounded-full {\n border-radius: calc(infinity * 1px);\n }\n .border {\n border-style: var(--tw-border-style);\n border-width: 1px;\n }\n .border-2 {\n border-style: var(--tw-border-style);\n border-width: 2px;\n }\n .border-b {\n border-bottom-style: var(--tw-border-style);\n border-bottom-width: 1px;\n }\n .border-none {\n --tw-border-style: none;\n border-style: none;\n }\n .border-black\\/50 {\n border-color: color-mix(in srgb, #000 50%, transparent);\n @supports (color: color-mix(in lab, red, red)) {\n border-color: color-mix(in oklab, var(--color-black) 50%, transparent);\n }\n }\n .border-blue-500 {\n border-color: var(--color-blue-500);\n }\n .border-gray-200 {\n border-color: var(--color-gray-200);\n }\n .border-orange-300 {\n border-color: var(--color-orange-300);\n }\n .border-orange-400 {\n border-color: var(--color-orange-400);\n }\n .bg-\\[\\#F8F8FA\\] {\n background-color: #F8F8FA;\n }\n .bg-black\\/60 {\n background-color: color-mix(in srgb, #000 60%, transparent);\n @supports (color: color-mix(in lab, red, red)) {\n background-color: color-mix(in oklab, var(--color-black) 60%, transparent);\n }\n }\n .bg-blue-500 {\n background-color: var(--color-blue-500);\n }\n .bg-gray-100 {\n background-color: var(--color-gray-100);\n }\n .bg-orange-200 {\n background-color: var(--color-orange-200);\n }\n .bg-orange-400 {\n background-color: var(--color-orange-400);\n }\n .bg-white {\n background-color: var(--color-white);\n }\n .bg-linear-to-l {\n --tw-gradient-position: to left;\n @supports (background-image: linear-gradient(in lab, red, red)) {\n --tw-gradient-position: to left in oklab;\n }\n background-image: linear-gradient(var(--tw-gradient-stops));\n }\n .from-white {\n --tw-gradient-from: var(--color-white);\n --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));\n }\n .to-transparent {\n --tw-gradient-to: transparent;\n --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));\n }\n .p-2 {\n padding: calc(var(--spacing) * 2);\n }\n .p-3 {\n padding: calc(var(--spacing) * 3);\n }\n .p-4 {\n padding: calc(var(--spacing) * 4);\n }\n .px-4 {\n padding-inline: calc(var(--spacing) * 4);\n }\n .py-2 {\n padding-block: calc(var(--spacing) * 2);\n }\n .py-3 {\n padding-block: calc(var(--spacing) * 3);\n }\n .pt-4 {\n padding-top: calc(var(--spacing) * 4);\n }\n .pr-12 {\n padding-right: calc(var(--spacing) * 12);\n }\n .pb-2 {\n padding-bottom: calc(var(--spacing) * 2);\n }\n .pl-4 {\n padding-left: calc(var(--spacing) * 4);\n }\n .text-center {\n text-align: center;\n }\n .text-sm {\n font-size: var(--text-sm);\n line-height: var(--tw-leading, var(--text-sm--line-height));\n }\n .text-xl {\n font-size: var(--text-xl);\n line-height: var(--tw-leading, var(--text-xl--line-height));\n }\n .text-\\[10px\\] {\n font-size: 10px;\n }\n .text-\\[12px\\] {\n font-size: 12px;\n }\n .font-bold {\n --tw-font-weight: var(--font-weight-bold);\n font-weight: var(--font-weight-bold);\n }\n .text-nowrap {\n text-wrap: nowrap;\n }\n .whitespace-pre-wrap {\n white-space: pre-wrap;\n }\n .text-black\\/85 {\n color: color-mix(in srgb, #000 85%, transparent);\n @supports (color: color-mix(in lab, red, red)) {\n color: color-mix(in oklab, var(--color-black) 85%, transparent);\n }\n }\n .text-gray-500 {\n color: var(--color-gray-500);\n }\n .text-gray-600 {\n color: var(--color-gray-600);\n }\n .text-orange-500 {\n color: var(--color-orange-500);\n }\n .text-white {\n color: var(--color-white);\n }\n .shadow {\n --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));\n box-shadow:\n var(--tw-inset-shadow),\n var(--tw-inset-ring-shadow),\n var(--tw-ring-offset-shadow),\n var(--tw-ring-shadow),\n var(--tw-shadow);\n }\n .shadow-2xl {\n --tw-shadow: 0 25px 50px -12px var(--tw-shadow-color, rgb(0 0 0 / 0.25));\n box-shadow:\n var(--tw-inset-shadow),\n var(--tw-inset-ring-shadow),\n var(--tw-ring-offset-shadow),\n var(--tw-ring-shadow),\n var(--tw-shadow);\n }\n .shadow-orange-400 {\n --tw-shadow-color: oklch(75% 0.183 55.934);\n @supports (color: color-mix(in lab, red, red)) {\n --tw-shadow-color: color-mix(in oklab, var(--color-orange-400) var(--tw-shadow-alpha), transparent);\n }\n }\n .transition-colors {\n transition-property:\n color,\n background-color,\n border-color,\n outline-color,\n text-decoration-color,\n fill,\n stroke,\n --tw-gradient-from,\n --tw-gradient-via,\n --tw-gradient-to;\n transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));\n transition-duration: var(--tw-duration, var(--default-transition-duration));\n }\n .outline-none {\n --tw-outline-style: none;\n outline-style: none;\n }\n .hover\\:bg-blue-600 {\n &:hover {\n @media (hover: hover) {\n background-color: var(--color-blue-600);\n }\n }\n }\n .hover\\:bg-gray-200 {\n &:hover {\n @media (hover: hover) {\n background-color: var(--color-gray-200);\n }\n }\n }\n .focus\\:ring-2 {\n &:focus {\n --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);\n box-shadow:\n var(--tw-inset-shadow),\n var(--tw-inset-ring-shadow),\n var(--tw-ring-offset-shadow),\n var(--tw-ring-shadow),\n var(--tw-shadow);\n }\n }\n .focus\\:ring-orange-300 {\n &:focus {\n --tw-ring-color: var(--color-orange-300);\n }\n }\n .disabled\\:bg-gray-400 {\n &:disabled {\n background-color: var(--color-gray-400);\n }\n }\n .lg\\:top-auto {\n @media (width >= 64rem) {\n top: auto;\n }\n }\n .lg\\:right-5 {\n @media (width >= 64rem) {\n right: calc(var(--spacing) * 5);\n }\n }\n .lg\\:bottom-20 {\n @media (width >= 64rem) {\n bottom: calc(var(--spacing) * 20);\n }\n }\n .lg\\:hidden {\n @media (width >= 64rem) {\n display: none;\n }\n }\n .lg\\:h-46 {\n @media (width >= 64rem) {\n height: calc(var(--spacing) * 46);\n }\n }\n .lg\\:max-h-201 {\n @media (width >= 64rem) {\n max-height: calc(var(--spacing) * 201);\n }\n }\n .lg\\:w-107\\.5 {\n @media (width >= 64rem) {\n width: calc(var(--spacing) * 107.5);\n }\n }\n .lg\\:max-w-80 {\n @media (width >= 64rem) {\n max-width: calc(var(--spacing) * 80);\n }\n }\n .lg\\:flex-wrap {\n @media (width >= 64rem) {\n flex-wrap: wrap;\n }\n }\n .lg\\:rounded-4xl {\n @media (width >= 64rem) {\n border-radius: var(--radius-4xl);\n }\n }\n}\n@layer base {\n * {\n font-family: var(--font-sukhumvit);\n }\n}\n@layer utilities {\n .scrollbar-hide::-webkit-scrollbar {\n display: none;\n }\n .scrollbar-hide {\n -ms-overflow-style: none;\n scrollbar-width: none;\n }\n}\n@property --tw-translate-x { syntax: "*"; inherits: false; initial-value: 0; }\n@property --tw-translate-y { syntax: "*"; inherits: false; initial-value: 0; }\n@property --tw-translate-z { syntax: "*"; inherits: false; initial-value: 0; }\n@property --tw-space-y-reverse { syntax: "*"; inherits: false; initial-value: 0; }\n@property --tw-border-style { syntax: "*"; inherits: false; initial-value: solid; }\n@property --tw-gradient-position { syntax: "*"; inherits: false; }\n@property --tw-gradient-from { syntax: "<color>"; inherits: false; initial-value: #0000; }\n@property --tw-gradient-via { syntax: "<color>"; inherits: false; initial-value: #0000; }\n@property --tw-gradient-to { syntax: "<color>"; inherits: false; initial-value: #0000; }\n@property --tw-gradient-stops { syntax: "*"; inherits: false; }\n@property --tw-gradient-via-stops { syntax: "*"; inherits: false; }\n@property --tw-gradient-from-position { syntax: "<length-percentage>"; inherits: false; initial-value: 0%; }\n@property --tw-gradient-via-position { syntax: "<length-percentage>"; inherits: false; initial-value: 50%; }\n@property --tw-gradient-to-position { syntax: "<length-percentage>"; inherits: false; initial-value: 100%; }\n@property --tw-font-weight { syntax: "*"; inherits: false; }\n@property --tw-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }\n@property --tw-shadow-color { syntax: "*"; inherits: false; }\n@property --tw-shadow-alpha { syntax: "<percentage>"; inherits: false; initial-value: 100%; }\n@property --tw-inset-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }\n@property --tw-inset-shadow-color { syntax: "*"; inherits: false; }\n@property --tw-inset-shadow-alpha { syntax: "<percentage>"; inherits: false; initial-value: 100%; }\n@property --tw-ring-color { syntax: "*"; inherits: false; }\n@property --tw-ring-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }\n@property --tw-inset-ring-color { syntax: "*"; inherits: false; }\n@property --tw-inset-ring-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }\n@property --tw-ring-inset { syntax: "*"; inherits: false; }\n@property --tw-ring-offset-width { syntax: "<length>"; inherits: false; initial-value: 0px; }\n@property --tw-ring-offset-color { syntax: "*"; inherits: false; initial-value: #fff; }\n@property --tw-ring-offset-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }\n@keyframes wiggle {\n 0%, 100% {\n transform: translateY(-50%);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 50% {\n transform: none;\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n}\n@layer properties {\n @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {\n *,\n ::before,\n ::after,\n ::backdrop {\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-translate-z: 0;\n --tw-space-y-reverse: 0;\n --tw-border-style: solid;\n --tw-gradient-position: initial;\n --tw-gradient-from: #0000;\n --tw-gradient-via: #0000;\n --tw-gradient-to: #0000;\n --tw-gradient-stops: initial;\n --tw-gradient-via-stops: initial;\n --tw-gradient-from-position: 0%;\n --tw-gradient-via-position: 50%;\n --tw-gradient-to-position: 100%;\n --tw-font-weight: initial;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-color: initial;\n --tw-shadow-alpha: 100%;\n --tw-inset-shadow: 0 0 #0000;\n --tw-inset-shadow-color: initial;\n --tw-inset-shadow-alpha: 100%;\n --tw-ring-color: initial;\n --tw-ring-shadow: 0 0 #0000;\n --tw-inset-ring-color: initial;\n --tw-inset-ring-shadow: 0 0 #0000;\n --tw-ring-inset: initial;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-offset-shadow: 0 0 #0000;\n }\n }\n}\n');
104
105
 
105
106
  // src/constant/default.ts
106
107
  var defaultQuickMenuMessage = "\u0E2A\u0E27\u0E31\u0E2A\u0E14\u0E35\u0E04\u0E23\u0E31\u0E1A Brooklyn! \u{1F44B} UTECH \u0E1E\u0E23\u0E49\u0E2D\u0E21\u0E0A\u0E48\u0E27\u0E22\u0E04\u0E38\u0E13\u0E2B\u0E32\u0E2D\u0E38\u0E1B\u0E01\u0E23\u0E13\u0E4C IT \u0E17\u0E35\u0E48\u0E15\u0E2D\u0E1A\u0E42\u0E08\u0E17\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E2A\u0E38\u0E14 \u0E44\u0E21\u0E48\u0E27\u0E48\u0E32\u0E08\u0E30\u0E40\u0E1B\u0E47\u0E19\u0E04\u0E2D\u0E21\u0E1E\u0E34\u0E27\u0E40\u0E15\u0E2D\u0E23\u0E4C \u0E2D\u0E38\u0E1B\u0E01\u0E23\u0E13\u0E4C\u0E40\u0E2A\u0E23\u0E34\u0E21 \u0E2B\u0E23\u0E37\u0E2D\u0E2D\u0E30\u0E44\u0E23\u0E01\u0E47\u0E15\u0E32\u0E21 \u0E16\u0E32\u0E21\u0E44\u0E14\u0E49\u0E40\u0E25\u0E22\u0E04\u0E23\u0E31\u0E1A \u{1F60A}";
@@ -360,7 +361,7 @@ var getMockBotMessageByText = (text) => {
360
361
  };
361
362
 
362
363
  // src/components/aizu-chat.tsx
363
- var import_react3 = require("react");
364
+ var import_react4 = require("react");
364
365
 
365
366
  // src/components/input-bar/index.tsx
366
367
  var import_jsx_runtime2 = require("react/jsx-runtime");
@@ -603,21 +604,79 @@ var QuickMenuChips = ({ menus, handleClick, className }) => {
603
604
  };
604
605
  var quick_menus_chip_default = QuickMenuChips;
605
606
 
606
- // src/components/aizu-chat.tsx
607
+ // src/contexts/aizu-client-context.tsx
608
+ var import_react3 = require("react");
607
609
  var import_jsx_runtime9 = require("react/jsx-runtime");
608
- var AizuChat = () => {
609
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ChatProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { children: [
610
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(FloatingButton, {}),
611
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(ChatWindow, { children: [
612
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ChatHeader, {}),
613
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ChatBody, {}),
614
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ChatFooter, {})
610
+ var AizuClientContext = (0, import_react3.createContext)(
611
+ void 0
612
+ );
613
+ var AizuClientProvider = ({
614
+ children,
615
+ client,
616
+ initialThreadId,
617
+ initialResourceId
618
+ }) => {
619
+ const [threadId, setThreadId] = (0, import_react3.useState)(initialThreadId);
620
+ const [resourceId, setResourceId] = (0, import_react3.useState)(
621
+ initialResourceId
622
+ );
623
+ const sendMessage = (0, import_react3.useCallback)(
624
+ (query) => __async(null, null, function* () {
625
+ console.log("\u{1F4E4} Sending message:", query);
626
+ console.log("\u{1F517} Current threadId:", threadId);
627
+ console.log("\u{1F4E6} Current resourceId:", resourceId);
628
+ const params = __spreadValues(__spreadValues({
629
+ query
630
+ }, threadId && { thread_id: threadId }), resourceId && { resource_id: resourceId });
631
+ const response = yield client.chat(params);
632
+ console.log("\u{1F4E5} Response received:", {
633
+ thread_id: response.thread_id,
634
+ resource_id: response.resource_id
635
+ });
636
+ if (response.thread_id && response.thread_id !== threadId) {
637
+ console.log("\u2705 Update threadId:", response.thread_id);
638
+ setThreadId(response.thread_id);
639
+ }
640
+ if (response.resource_id && response.resource_id !== resourceId) {
641
+ console.log("\u2705 Update resourceId:", response.resource_id);
642
+ setResourceId(response.resource_id);
643
+ }
644
+ return response;
645
+ }),
646
+ [client, threadId, resourceId]
647
+ );
648
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
649
+ AizuClientContext.Provider,
650
+ {
651
+ value: { aizuClient: client, threadId, resourceId, sendMessage },
652
+ children
653
+ }
654
+ );
655
+ };
656
+ var useAizuClient = () => {
657
+ const context = (0, import_react3.useContext)(AizuClientContext);
658
+ if (!context) {
659
+ throw new Error("useAizuClient must be used within AizuClientProvider");
660
+ }
661
+ return context;
662
+ };
663
+
664
+ // src/components/aizu-chat.tsx
665
+ var import_jsx_runtime10 = require("react/jsx-runtime");
666
+ var AizuChat = ({ aizuClient }) => {
667
+ console.log("\u{1F680} ~ AizuChat ~ aizuClient:", aizuClient);
668
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(AizuClientProvider, { client: aizuClient, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ChatProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { children: [
669
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(FloatingButton, {}),
670
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(ChatWindow, { children: [
671
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ChatHeader, {}),
672
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ChatBody, {}),
673
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ChatFooter, {})
615
674
  ] })
616
- ] }) });
675
+ ] }) }) });
617
676
  };
618
677
  var FloatingButton = () => {
619
678
  const { chatControls } = useChatContext();
620
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
679
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
621
680
  "button",
622
681
  {
623
682
  type: "button",
@@ -629,44 +688,53 @@ var FloatingButton = () => {
629
688
  };
630
689
  var ChatWindow = ({ children }) => {
631
690
  const { chatControls } = useChatContext();
632
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: cn(
633
- "w-full lg:w-107.5 h-full lg:max-h-201",
634
- "z-9999 fixed top-0 right-0 lg:right-5 lg:bottom-20 lg:top-auto bg-[#F8F8FA]",
635
- "lg:rounded-4xl shadow-2xl overflow-hidden",
636
- "flex flex-col",
637
- { "invisible": !chatControls.isOpen }
638
- ), children });
691
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
692
+ "div",
693
+ {
694
+ className: cn(
695
+ "w-full lg:w-107.5 h-full lg:max-h-201",
696
+ "z-9999 fixed top-0 right-0 lg:right-5 lg:bottom-20 lg:top-auto bg-[#F8F8FA]",
697
+ "lg:rounded-4xl shadow-2xl overflow-hidden",
698
+ "flex flex-col",
699
+ { invisible: !chatControls.isOpen }
700
+ ),
701
+ children
702
+ }
703
+ );
639
704
  };
640
705
  var ChatHeader = () => {
641
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("section", { className: "flex justify-between items-center bg-white py-3 px-4", children: [
642
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("button", { type: "button", children: " Back" }),
643
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex flex-col items-center", children: [
644
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { children: "Shop Logo" }),
645
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "text-[10px]", children: "Powered by Zimpligital" })
706
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("section", { className: "flex justify-between items-center bg-white py-3 px-4", children: [
707
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("button", { type: "button", children: " Back" }),
708
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "flex flex-col items-center", children: [
709
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { children: "Shop Logo" }),
710
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "text-[10px]", children: "Powered by Zimpligital" })
646
711
  ] }),
647
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", {})
712
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", {})
648
713
  ] });
649
714
  };
650
715
  var ChatBody = () => {
651
716
  const { isLoading, addUserMessage, addBotMessage, messages, latestMessage } = useChatContext();
652
- const [showWaitMessage, setShowWaitMessage] = (0, import_react3.useState)(false);
653
- const messagesEndRef = (0, import_react3.useRef)(null);
717
+ const [showWaitMessage, setShowWaitMessage] = (0, import_react4.useState)(false);
718
+ const messagesEndRef = (0, import_react4.useRef)(null);
654
719
  const loadingMessage = showWaitMessage ? "Wait a minute..." : void 0;
655
720
  const messagesDisplay = messages || [];
656
721
  const displayWelcomeMessage = messagesDisplay.length === 0 && !isLoading;
657
- const handleClick = (0, import_react3.useCallback)((menu) => __async(null, null, function* () {
658
- if (menu.title.includes(tryAgain) && !!(latestMessage == null ? void 0 : latestMessage.text)) {
659
- return addUserMessage(latestMessage == null ? void 0 : latestMessage.text);
660
- }
661
- addUserMessage(menu.title);
662
- const mockResponse2 = getMockBotMessage(menu);
663
- addBotMessage(mockResponse2);
664
- }), [addUserMessage, addBotMessage, latestMessage]);
665
- (0, import_react3.useEffect)(() => {
722
+ const handleClick = (0, import_react4.useCallback)(
723
+ (menu) => __async(null, null, function* () {
724
+ if (menu.title.includes(tryAgain) && !!(latestMessage == null ? void 0 : latestMessage.text)) {
725
+ return addUserMessage(latestMessage == null ? void 0 : latestMessage.text);
726
+ }
727
+ addUserMessage(menu.title);
728
+ const mockResponse2 = getMockBotMessage(menu);
729
+ addBotMessage(mockResponse2);
730
+ }),
731
+ [addUserMessage, addBotMessage, latestMessage]
732
+ );
733
+ (0, import_react4.useEffect)(() => {
666
734
  var _a;
667
735
  (_a = messagesEndRef.current) == null ? void 0 : _a.scrollIntoView({ behavior: "smooth" });
668
736
  }, [isLoading, messagesDisplay.length]);
669
- (0, import_react3.useEffect)(() => {
737
+ (0, import_react4.useEffect)(() => {
670
738
  let timer;
671
739
  if (isLoading) {
672
740
  timer = setTimeout(() => {
@@ -679,32 +747,60 @@ var ChatBody = () => {
679
747
  if (timer) clearTimeout(timer);
680
748
  };
681
749
  }, [isLoading]);
682
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("section", { className: "flex-1 overflow-y-auto relative", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("section", { className: " p-4 flex flex-col gap-y-3 overflow-y-auto", children: [
683
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(QuickMenus, { bannerSrc: defaultBanner, menus: defaultQuickMenus, message: defaultQuickMenuMessage, handleClick }),
684
- messagesDisplay == null ? void 0 : messagesDisplay.map((message) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(MessageBubble, { message, handleClick }, message.id)),
685
- isLoading && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Loading, { message: loadingMessage }),
686
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { ref: messagesEndRef }),
687
- displayWelcomeMessage && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "absolute bottom-4 left-1/2 -translate-x-1/2 text-center text-sm text-gray-500", children: "\u0E04\u0E38\u0E13\u0E01\u0E33\u0E25\u0E31\u0E07\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19\u0E2A\u0E19\u0E17\u0E19\u0E32\u0E01\u0E31\u0E1A UTECH AI" })
750
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("section", { className: "flex-1 overflow-y-auto relative", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("section", { className: " p-4 flex flex-col gap-y-3 overflow-y-auto", children: [
751
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
752
+ QuickMenus,
753
+ {
754
+ bannerSrc: defaultBanner,
755
+ menus: defaultQuickMenus,
756
+ message: defaultQuickMenuMessage,
757
+ handleClick
758
+ }
759
+ ),
760
+ messagesDisplay == null ? void 0 : messagesDisplay.map((message) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
761
+ MessageBubble,
762
+ {
763
+ message,
764
+ handleClick
765
+ },
766
+ message.id
767
+ )),
768
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Loading, { message: loadingMessage }),
769
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { ref: messagesEndRef }),
770
+ displayWelcomeMessage && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "absolute bottom-4 left-1/2 -translate-x-1/2 text-center text-sm text-gray-500", children: "\u0E04\u0E38\u0E13\u0E01\u0E33\u0E25\u0E31\u0E07\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19\u0E2A\u0E19\u0E17\u0E19\u0E32\u0E01\u0E31\u0E1A UTECH AI" })
688
771
  ] }) });
689
772
  };
690
773
  var ChatFooter = () => {
691
774
  const { addUserMessage, addBotMessage, latestMessage } = useChatContext();
692
- const handleClick = (0, import_react3.useCallback)((menu) => __async(null, null, function* () {
693
- if (menu.title.includes(tryAgain) && !!(latestMessage == null ? void 0 : latestMessage.text)) {
694
- return addUserMessage(latestMessage == null ? void 0 : latestMessage.text);
695
- }
696
- addUserMessage(menu.title);
697
- const mockResponse2 = getMockBotMessage(menu);
698
- addBotMessage(mockResponse2);
699
- }), [addUserMessage, addBotMessage, latestMessage]);
700
- const handleSend = (0, import_react3.useCallback)((message) => {
701
- addUserMessage(message);
702
- const mockResponse2 = getMockBotMessageByText(message);
703
- addBotMessage(mockResponse2);
704
- }, [addUserMessage, addBotMessage]);
705
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("section", { className: "bg-white h-42.5 lg:h-46", children: [
706
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(quick_menus_chip_default, { handleClick, menus: defaultQuickMenuChips, className: "pl-4 pt-4 pb-2" }),
707
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
775
+ const handleClick = (0, import_react4.useCallback)(
776
+ (menu) => __async(null, null, function* () {
777
+ if (menu.title.includes(tryAgain) && !!(latestMessage == null ? void 0 : latestMessage.text)) {
778
+ return addUserMessage(latestMessage == null ? void 0 : latestMessage.text);
779
+ }
780
+ addUserMessage(menu.title);
781
+ const mockResponse2 = getMockBotMessage(menu);
782
+ addBotMessage(mockResponse2);
783
+ }),
784
+ [addUserMessage, addBotMessage, latestMessage]
785
+ );
786
+ const handleSend = (0, import_react4.useCallback)(
787
+ (message) => {
788
+ addUserMessage(message);
789
+ const mockResponse2 = getMockBotMessageByText(message);
790
+ addBotMessage(mockResponse2);
791
+ },
792
+ [addUserMessage, addBotMessage]
793
+ );
794
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("section", { className: "bg-white h-42.5 lg:h-46", children: [
795
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
796
+ quick_menus_chip_default,
797
+ {
798
+ handleClick,
799
+ menus: defaultQuickMenuChips,
800
+ className: "pl-4 pt-4 pb-2"
801
+ }
802
+ ),
803
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
708
804
  InputBar,
709
805
  {
710
806
  placeholder: "\u0E16\u0E32\u0E21\u0E04\u0E33\u0E16\u0E32\u0E21\u0E44\u0E14\u0E49\u0E40\u0E25\u0E22...",
@@ -715,10 +811,82 @@ var ChatFooter = () => {
715
811
  )
716
812
  ] });
717
813
  };
814
+
815
+ // src/components/test-component.tsx
816
+ var import_react5 = require("react");
817
+ var import_jsx_runtime11 = require("react/jsx-runtime");
818
+ var TestComponent = ({ client }) => {
819
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(AizuClientProvider, { client, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(TestComponentContent, {}) });
820
+ };
821
+ var TestComponentContent = () => {
822
+ const { sendMessage, resourceId, threadId } = useAizuClient();
823
+ const [query, setQuery] = (0, import_react5.useState)("");
824
+ const [response, setResponse] = (0, import_react5.useState)("");
825
+ const [loading, setLoading] = (0, import_react5.useState)(false);
826
+ const handleSend = () => __async(null, null, function* () {
827
+ if (!query.trim()) return;
828
+ try {
829
+ setLoading(true);
830
+ setResponse("");
831
+ console.log("\u{1F4E4} Sending query:", query);
832
+ const result = yield sendMessage(query);
833
+ console.log("\u2705 Got response:", result);
834
+ setResponse(result.response);
835
+ setQuery("");
836
+ } catch (error) {
837
+ console.error("\u274C Error:", error);
838
+ setResponse(`\u274C Error: ${error.message}`);
839
+ } finally {
840
+ setLoading(false);
841
+ }
842
+ });
843
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "border-2 border-blue-500 p-4 rounded space-y-4", children: [
844
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("h2", { className: "font-bold text-xl", children: "Test API Call" }),
845
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "text-sm text-gray-600 space-y-1", children: [
846
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("p", { children: [
847
+ "\u{1F517} Thread ID: ",
848
+ threadId || "(none yet)"
849
+ ] }),
850
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("p", { children: [
851
+ "\u{1F4E6} Resource ID: ",
852
+ resourceId || "(none yet)"
853
+ ] })
854
+ ] }),
855
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "flex gap-2", children: [
856
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
857
+ "input",
858
+ {
859
+ type: "text",
860
+ value: query,
861
+ onChange: (e) => setQuery(e.target.value),
862
+ onKeyDown: (e) => e.key === "Enter" && handleSend(),
863
+ placeholder: "Type your question...",
864
+ className: "flex-1 border p-2 rounded",
865
+ disabled: loading
866
+ }
867
+ ),
868
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
869
+ "button",
870
+ {
871
+ type: "button",
872
+ onClick: handleSend,
873
+ disabled: loading || !query.trim(),
874
+ className: "bg-blue-500 text-white px-4 py-2 rounded hover:bg-blue-600 disabled:bg-gray-400",
875
+ children: loading ? "Sending..." : "Send"
876
+ }
877
+ )
878
+ ] }),
879
+ response && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "p-3 bg-gray-100 rounded", children: [
880
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("strong", { children: "Response:" }),
881
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("p", { className: "mt-1 whitespace-pre-wrap", children: response })
882
+ ] })
883
+ ] });
884
+ };
718
885
  // Annotate the CommonJS export names for ESM import in node:
719
886
  0 && (module.exports = {
720
887
  AizuChat,
721
888
  Button,
722
889
  Loading,
723
- QuickMenus
890
+ QuickMenus,
891
+ TestComponent
724
892
  });
@@ -3,12 +3,14 @@ import {
3
3
  AizuChat,
4
4
  Button,
5
5
  Loading,
6
- QuickMenus
7
- } from "./chunk-5HB6SA7W.mjs";
6
+ QuickMenus,
7
+ TestComponent
8
+ } from "./chunk-SJJDDFKI.mjs";
8
9
  import "./chunk-33CPD3DF.mjs";
9
10
  export {
10
11
  AizuChat,
11
12
  Button,
12
13
  Loading,
13
- QuickMenus
14
+ QuickMenus,
15
+ TestComponent
14
16
  };
package/dist/index.d.mts CHANGED
@@ -1,4 +1,5 @@
1
- export { AizuChat, Button, ButtonProps, Loading, Menu, QuickMenus, QuickMenusProps } from './components.mjs';
1
+ export { AizuChat, Button, ButtonProps, Loading, Menu, QuickMenus, QuickMenusProps, TestComponent } from './components.mjs';
2
2
  export { useCustom } from './hooks.mjs';
3
+ export { AizuClient, AizuClientConfig, ChatRequest, ChatResponse, Product, createAizuClient } from './sdk.mjs';
3
4
  import 'react/jsx-runtime';
4
5
  import 'react';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- export { AizuChat, Button, ButtonProps, Loading, Menu, QuickMenus, QuickMenusProps } from './components.js';
1
+ export { AizuChat, Button, ButtonProps, Loading, Menu, QuickMenus, QuickMenusProps, TestComponent } from './components.js';
2
2
  export { useCustom } from './hooks.js';
3
+ export { AizuClient, AizuClientConfig, ChatRequest, ChatResponse, Product, createAizuClient } from './sdk.js';
3
4
  import 'react/jsx-runtime';
4
5
  import 'react';