@brainfish-ai/components 0.6.3 → 0.6.5-alpha

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brainfish-ai/components",
3
- "version": "0.6.3",
3
+ "version": "0.6.5-alpha",
4
4
  "description": "Brainfish Components",
5
5
  "license": "MIT",
6
6
  "module": "./dist/esm/index.js",
package/package.tgz ADDED
Binary file
@@ -1,4 +0,0 @@
1
- *,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(60,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(60,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*
2
- ! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com
3
- */*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:var(--bfc-font-family),system-ui,sans-serif;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}ul{list-style-type:disc}ol{list-style-type:decimal}:root{--bfc-font-family:"Satoshi",sans-serif;--bfc-background:229 229 229;--bfc-foreground:23 23 23;--bfc-link:52 128 25;--bfc-card:255 255 255;--bfc-card-foreground:10 10 10;--bfc-popover:255 255 255;--bfc-primary:163 230 53;--bfc-primary-foreground:23 23 23;--bfc-secondary:245 245 245;--bfc-secondary-foreground:75 85 99;--bfc-muted:245 245 245;--bfc-muted-foreground:115 115 115;--bfc-accent:245 245 245;--bfc-accent-foreground:75 85 99;--bfc-destructive:239 68 68;--bfc-destructive-foreground:250 250 250;--bfc-border:23 23 23;--bfc-input:229 229 229;--bfc-ring:23 23 23;--bfc-radius:0.5rem;--bfc-feedback-positive:34 197 94;--bfc-feedback-negative:239 68 68;--bfc-surface:255 255 255;--bfc-surface-border:229 231 235}.dark{--bfc-background:23 23 23;--bfc-foreground:229 229 229;--bfc-link:34 183 242;--bfc-card:47 51 54;--bfc-card-foreground:229 229 229;--bfc-popover:10 10 10;--bfc-popover-foreground:250 250 250;--bfc-secondary:38 38 38;--bfc-secondary-foreground:250 250 250;--bfc-muted:38 38 38;--bfc-muted-foreground:163 163 163;--bfc-accent:38 38 38;--bfc-accent-foreground:250 250 250;--bfc-destructive:127 29 29;--bfc-destructive-foreground:250 250 250;--bfc-border:82 82 82;--bfc-input:38 38 38;--bfc-ring:212 212 212;--bfc-surface:31 33 40;--bfc-surface-border:47 51 54}.container{margin-left:auto;margin-right:auto;padding-left:2rem;padding-right:2rem;width:100%}@media (min-width:1400px){.container{max-width:1400px}}.link{color:var(rgb(--bfc-link));opacity:.9;text-decoration-color:var(rgb(--bfc-link));text-decoration-line:underline;text-decoration-thickness:2px;text-underline-offset:2px;transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.link:hover{opacity:1;text-decoration-thickness:3px}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.bottom-12{bottom:3rem}.bottom-2{bottom:.5rem}.bottom-20{bottom:5rem}.bottom-full{bottom:100%}.left-0{left:0}.left-1\/2{left:50%}.left-2{left:.5rem}.left-4{left:1rem}.left-\[50\%\]{left:50%}.right-0{right:0}.right-1{right:.25rem}.right-2{right:.5rem}.right-4{right:1rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-4{top:1rem}.top-\[50\%\]{top:50%}.isolate{isolation:isolate}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.z-\[9999\]{z-index:9999}.col-start-2{grid-column-start:2}.row-span-2{grid-row:span 2/span 2}.row-start-1{grid-row-start:1}.m-0{margin:0}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-bottom:.25rem;margin-top:.25rem}.my-2{margin-bottom:.5rem;margin-top:.5rem}.my-4{margin-bottom:1rem;margin-top:1rem}.-mt-1{margin-top:-.25rem}.-mt-px{margin-top:-1px}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.line-clamp-2{-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box;overflow:hidden}.\!block{display:block!important}.block{display:block}.inline-block{display:inline-block}.\!inline{display:inline!important}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.\!size-5{height:1.25rem!important;width:1.25rem!important}.size-20{height:5rem;width:5rem}.size-3{height:.75rem;width:.75rem}.size-4{height:1rem;width:1rem}.size-5{height:1.25rem;width:1.25rem}.size-6{height:1.5rem;width:1.5rem}.size-8{height:2rem;width:2rem}.\!h-5{height:1.25rem!important}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[calc\(100vh-56px\)\]{height:calc(100vh - 56px)}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-dvh{height:100dvh}.h-full{height:100%}.h-px{height:1px}.max-h-\[300px\]{max-height:300px}.max-h-\[80vh\]{max-height:80vh}.min-h-9{min-height:2.25rem}.min-h-\[100px\]{min-height:100px}.min-h-\[44px\]{min-height:44px}.min-h-\[60px\]{min-height:60px}.min-h-screen{min-height:100vh}.\!w-5{width:1.25rem!important}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-4{width:1rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-5\/6{width:83.333333%}.w-64{width:16rem}.w-72{width:18rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-auto{width:auto}.w-full{width:100%}.min-w-5{min-width:1.25rem}.min-w-\[20px\]{min-width:20px}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-3xl{max-width:48rem}.max-w-48{max-width:12rem}.max-w-4xl{max-width:56rem}.max-w-\[100vw\]{max-width:100vw}.max-w-\[300px\]{max-width:300px}.max-w-\[95vw\]{max-width:95vw}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-none{max-width:none}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.border-collapse{border-collapse:collapse}.origin-center{transform-origin:center}.-translate-y-1\/2{--tw-translate-y:-50%}.-translate-y-1\/2,.translate-x-\[-50\%\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\[-50\%\]{--tw-translate-x:-50%}.translate-y-\[-50\%\]{--tw-translate-y:-50%}.rotate-180,.translate-y-\[-50\%\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate:180deg}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.cursor-zoom-in{cursor:zoom-in}.cursor-zoom-out{cursor:zoom-out}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.list-outside{list-style-position:outside}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.auto-rows-min{grid-auto-rows:min-content}.grid-rows-\[auto_auto\]{grid-template-rows:auto auto}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-stretch{justify-content:stretch}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.375rem*var(--tw-space-y-reverse));margin-top:calc(.375rem*(1 - var(--tw-space-y-reverse)))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.divide-dark-300>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(212 212 212/var(--tw-divide-opacity))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(229 231 235/var(--tw-divide-opacity))}.self-start{align-self:flex-start}.self-center{align-self:center}.justify-self-end{justify-self:end}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-b-lg{border-bottom-left-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-b-md{border-bottom-left-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-l-full{border-bottom-left-radius:9999px;border-top-left-radius:9999px}.rounded-r-full{border-bottom-right-radius:9999px;border-top-right-radius:9999px}.rounded-s{border-end-start-radius:.25rem;border-start-start-radius:.25rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.rounded-t-md{border-top-left-radius:.375rem;border-top-right-radius:.375rem}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-t-2{border-top-width:2px}.border-solid{border-style:solid}.border-dashed{border-style:dashed}.border-none{border-style:none}.border-\[\#a3a3a3\]{--tw-border-opacity:1;border-color:rgb(163 163 163/var(--tw-border-opacity))}.border-black{--tw-border-opacity:1;border-color:rgb(0 0 0/var(--tw-border-opacity))}.border-blue-200{--tw-border-opacity:1;border-color:rgb(192 219 254/var(--tw-border-opacity))}.border-blue-300{--tw-border-opacity:1;border-color:rgb(148 197 253/var(--tw-border-opacity))}.border-border{--tw-border-opacity:1;border-color:rgb(var(--bfc-border,#171717)/var(--tw-border-opacity))}.border-dark-400{--tw-border-opacity:1;border-color:rgb(163 163 163/var(--tw-border-opacity))}.border-dark\/40{border-color:hsla(0,0%,9%,.4)}.border-foreground{--tw-border-opacity:1;border-color:rgb(var(--bfc-foreground,#171717)/var(--tw-border-opacity))}.border-foreground\/35{border-color:rgb(var(--bfc-foreground,#171717)/.35)}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-input{--tw-border-opacity:1;border-color:rgb(var(--bfc-input,#E5E5E5)/var(--tw-border-opacity))}.border-primary{--tw-border-opacity:1;border-color:rgb(var(--bfc-primary,#A3E635)/var(--tw-border-opacity))}.border-red-600{--tw-border-opacity:1;border-color:rgb(225 30 73/var(--tw-border-opacity))}.border-slate-300{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.\!border-t-foreground{--tw-border-opacity:1!important;border-top-color:rgb(var(--bfc-foreground,#171717)/var(--tw-border-opacity))!important}.border-b-dark-300{--tw-border-opacity:1;border-bottom-color:rgb(212 212 212/var(--tw-border-opacity))}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.\!bg-transparent{background-color:transparent!important}.bg-background{--tw-bg-opacity:1;background-color:rgb(var(--bfc-background,#E5E5E5)/var(--tw-bg-opacity))}.bg-black\/50{background-color:rgba(0,0,0,.5)}.bg-black\/80{background-color:rgba(0,0,0,.8)}.bg-blue-50{--tw-bg-opacity:1;background-color:rgb(240 246 255/var(--tw-bg-opacity))}.bg-border{--tw-bg-opacity:1;background-color:rgb(var(--bfc-border,#171717)/var(--tw-bg-opacity))}.bg-card{--tw-bg-opacity:1;background-color:rgb(var(--bfc-card,#E5E5E5)/var(--tw-bg-opacity))}.bg-dark-400{--tw-bg-opacity:1;background-color:rgb(163 163 163/var(--tw-bg-opacity))}.bg-dark-700{--tw-bg-opacity:1;background-color:rgb(64 64 64/var(--tw-bg-opacity))}.bg-dark\/40{background-color:hsla(0,0%,9%,.4)}.bg-dark\/80{background-color:hsla(0,0%,9%,.8)}.bg-destructive{--tw-bg-opacity:1;background-color:rgb(var(--bfc-destructive,transparent)/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity:1;background-color:rgb(210 250 229/var(--tw-bg-opacity))}.bg-muted{--tw-bg-opacity:1;background-color:rgb(var(--bfc-muted,transparent)/var(--tw-bg-opacity))}.bg-muted\/10{background-color:rgb(var(--bfc-muted,transparent)/.1)}.bg-popover{--tw-bg-opacity:1;background-color:rgb(var(--bfc-popover,transparent)/var(--tw-bg-opacity))}.bg-primary{--tw-bg-opacity:1;background-color:rgb(var(--bfc-primary,#A3E635)/var(--tw-bg-opacity))}.bg-primary\/20{background-color:rgb(var(--bfc-primary,#A3E635)/.2)}.bg-primary\/30{background-color:rgb(var(--bfc-primary,#A3E635)/.3)}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(255 229 230/var(--tw-bg-opacity))}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(255 242 243/var(--tw-bg-opacity))}.bg-secondary{--tw-bg-opacity:1;background-color:rgb(var(--bfc-secondary,transparent)/var(--tw-bg-opacity))}.bg-slate-200{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity))}.bg-stone-300{--tw-bg-opacity:1;background-color:rgb(214 211 209/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-zinc-800\/80{background-color:rgba(39,39,42,.8)}.fill-current{fill:currentColor}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-\[1px\]{padding:1px}.px-0{padding-left:0;padding-right:0}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-2\.5{padding-bottom:.625rem;padding-top:.625rem}.py-20{padding-bottom:5rem;padding-top:5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-6{padding-bottom:1.5rem;padding-top:1.5rem}.pb-0{padding-bottom:0}.pb-1{padding-bottom:.25rem}.pb-4{padding-bottom:1rem}.pl-2{padding-left:.5rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-8{padding-right:2rem}.pt-0{padding-top:0}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.font-sans{font-family:var(--bfc-font-family),system-ui,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\[15px\]{font-size:15px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium,.font-normal{font-weight:500}.font-semibold{font-weight:600}.lowercase{text-transform:lowercase}.italic{font-style:italic}.leading-6{line-height:1.5rem}.leading-none{line-height:1}.leading-normal{line-height:1.5}.leading-relaxed{line-height:1.625}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-card-foreground{--tw-text-opacity:1;color:rgb(var(--bfc-card-foreground,transparent)/var(--tw-text-opacity))}.text-dark-500{--tw-text-opacity:1;color:rgb(115 115 115/var(--tw-text-opacity))}.text-dark-900{--tw-text-opacity:1;color:rgb(23 23 23/var(--tw-text-opacity))}.text-destructive-foreground{--tw-text-opacity:1;color:rgb(var(--bfc-destructive-foreground,transparent)/var(--tw-text-opacity))}.text-feedback-positive{--tw-text-opacity:1;color:rgb(var(--bfc-feedback-positive,#11B981)/var(--tw-text-opacity))}.text-foreground{--tw-text-opacity:1;color:rgb(var(--bfc-foreground,#171717)/var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-green-600{--tw-text-opacity:1;color:rgb(6 150 105/var(--tw-text-opacity))}.text-link{--tw-text-opacity:1;color:rgb(var(--bfc-link,#3C82F6)/var(--tw-text-opacity))}.text-muted-foreground{--tw-text-opacity:1;color:rgb(var(--bfc-muted-foreground,transparent)/var(--tw-text-opacity))}.text-popover-foreground{--tw-text-opacity:1;color:rgb(var(--bfc-foreground,transparent)/var(--tw-text-opacity))}.text-primary{--tw-text-opacity:1;color:rgb(var(--bfc-primary,#A3E635)/var(--tw-text-opacity))}.text-primary-500{--tw-text-opacity:1;color:rgb(132 204 23/var(--tw-text-opacity))}.text-primary-foreground{--tw-text-opacity:1;color:rgb(var(--bfc-primary-foreground,#171717)/var(--tw-text-opacity))}.text-red-400{--tw-text-opacity:1;color:rgb(251 114 134/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(244 64 94/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(225 30 73/var(--tw-text-opacity))}.text-rose-500{--tw-text-opacity:1;color:rgb(244 63 94/var(--tw-text-opacity))}.text-secondary-foreground{--tw-text-opacity:1;color:rgb(var(--bfc-secondary-foreground,transparent)/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-zinc-400{--tw-text-opacity:1;color:rgb(161 161 170/var(--tw-text-opacity))}.text-zinc-800{--tw-text-opacity:1;color:rgb(39 39 42/var(--tw-text-opacity))}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-\[4px_4px_0_0_\#171717\]{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[4px_4px_0_0_\#171717\]{--tw-shadow:4px 4px 0 0 #171717;--tw-shadow-colored:4px 4px 0 0 var(--tw-shadow-color)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-lg,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-none{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}.shadow-none,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.\!outline-none{outline:2px solid transparent!important;outline-offset:2px!important}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.\!ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-primary{--tw-ring-opacity:1;--tw-ring-color:rgb(var(--bfc-primary,#A3E635)/var(--tw-ring-opacity))}.ring-offset-background{--tw-ring-offset-color:rgb(var(--bfc-background,#E5E5E5)/var(undefined,1))}.blur{--tw-blur:blur(8px)}.blur,.drop-shadow{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow{--tw-drop-shadow:drop-shadow(0 1px 2px rgba(0,0,0,.1)) drop-shadow(0 1px 1px rgba(0,0,0,.06))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.animate-in{--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial;animation-duration:.15s;animation-name:enter}.fade-in-0{--tw-enter-opacity:0}.zoom-in-95{--tw-enter-scale:.95}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.\@container,.\@container\/card-header{container-type:inline-size}.\@container\/card-header{container-name:card-header}.shimmer{animation:shimmer 3s linear infinite;background:linear-gradient(90deg,rgb(var(--bfc-background)) 0,rgb(var(--bfc-muted)) 20%,rgb(var(--bfc-background)) 40%);background-size:200% 100%}.modern-spinner{align-items:center;display:flex;height:1.75rem;justify-content:center;position:relative;width:1.75rem}.modern-spinner:after,.modern-spinner:before{border-radius:9999px;content:"";position:absolute}.modern-spinner:after,.modern-spinner:before{border-width:1.5px;inset:0}.modern-spinner:after{--tw-border-opacity:1;animation:spin 1s linear infinite;border-color:rgb(var(--bfc-primary,#A3E635)/var(--tw-border-opacity));border-top-color:transparent}.animate-spin{animation:rotate 2s linear infinite;transform:none;transform-box:fill-box;transform-origin:center}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}@keyframes spin{to{transform:rotate(1turn)}}@keyframes pulse{50%{transform:scale(1.1)}}@keyframes rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.file\:border-0::file-selector-button{border-width:0}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.file\:text-foreground::file-selector-button{--tw-text-opacity:1;color:rgb(var(--bfc-foreground,#171717)/var(--tw-text-opacity))}.placeholder\:text-gray-400::-moz-placeholder{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.placeholder\:text-gray-400::placeholder{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.placeholder\:text-muted-foreground::-moz-placeholder{--tw-text-opacity:1;color:rgb(var(--bfc-muted-foreground,transparent)/var(--tw-text-opacity))}.placeholder\:text-muted-foreground::placeholder{--tw-text-opacity:1;color:rgb(var(--bfc-muted-foreground,transparent)/var(--tw-text-opacity))}.last\:border-b-0:last-child{border-bottom-width:0}.hover\:scale-105:hover{--tw-scale-x:1.05;--tw-scale-y:1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:bg-accent:hover{--tw-bg-opacity:1;background-color:rgb(var(--bfc-accent,transparent)/var(--tw-bg-opacity))}.hover\:bg-black\/10:hover{background-color:rgba(0,0,0,.1)}.hover\:bg-black\/5:hover{background-color:rgba(0,0,0,.05)}.hover\:bg-black\/70:hover{background-color:rgba(0,0,0,.7)}.hover\:bg-dark-800:hover{--tw-bg-opacity:1;background-color:rgb(38 38 38/var(--tw-bg-opacity))}.hover\:bg-destructive\/90:hover{background-color:rgb(var(--bfc-destructive,transparent)/.9)}.hover\:bg-gray-200\/50:hover{background-color:rgba(229,231,235,.5)}.hover\:bg-gray-50\/50:hover{background-color:rgba(249,250,251,.5)}.hover\:bg-green-200:hover{--tw-bg-opacity:1;background-color:rgb(168 243 208/var(--tw-bg-opacity))}.hover\:bg-primary\/90:hover{background-color:rgb(var(--bfc-primary,#A3E635)/.9)}.hover\:bg-red-200:hover{--tw-bg-opacity:1;background-color:rgb(254 206 212/var(--tw-bg-opacity))}.hover\:bg-secondary\/80:hover{background-color:rgb(var(--bfc-secondary,transparent)/.8)}.hover\:bg-zinc-700\/50:hover{background-color:rgba(63,63,70,.5)}.hover\:bg-opacity-80:hover{--tw-bg-opacity:0.8}.hover\:text-accent-foreground:hover{--tw-text-opacity:1;color:rgb(var(--bfc-accent-foreground,transparent)/var(--tw-text-opacity))}.hover\:text-gray-700:hover{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.hover\:text-gray-900:hover{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.hover\:text-zinc-100:hover{--tw-text-opacity:1;color:rgb(244 244 245/var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:opacity-90:hover{opacity:.9}.focus\:bg-accent:focus{--tw-bg-opacity:1;background-color:rgb(var(--bfc-accent,transparent)/var(--tw-bg-opacity))}.focus\:text-accent-foreground:focus{--tw-text-opacity:1;color:rgb(var(--bfc-accent-foreground,transparent)/var(--tw-text-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-0:focus,.focus\:ring-1:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(var(--bfc-border,#171717)/var(--tw-ring-opacity))}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\:bg-dark-800:focus-visible{--tw-bg-opacity:1;background-color:rgb(38 38 38/var(--tw-bg-opacity))}.focus-visible\:\!outline-none:focus-visible{outline:2px solid transparent!important;outline-offset:2px!important}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-0:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(var(--bfc-border,#171717)/var(--tw-ring-opacity))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.focus-visible\:ring-offset-background:focus-visible{--tw-ring-offset-color:rgb(var(--bfc-background,#E5E5E5)/var(undefined,1))}.active\:scale-95:active{--tw-scale-x:.95;--tw-scale-y:.95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:opacity-100{opacity:1}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.data-\[disabled\=true\]\:pointer-events-none[data-disabled=true],.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:0.25rem}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom],.data-\[side\=left\]\:-translate-x-1[data-side=left]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:-0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right],.data-\[side\=top\]\:-translate-y-1[data-side=top]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:-0.25rem}.data-\[state\=checked\]\:translate-x-4[data-state=checked]{--tw-translate-x:1rem}.data-\[state\=checked\]\:translate-x-4[data-state=checked],.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked]{--tw-translate-x:0px}.data-\[selected\=true\]\:bg-accent[data-selected=true]{--tw-bg-opacity:1;background-color:rgb(var(--bfc-accent,transparent)/var(--tw-bg-opacity))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{--tw-bg-opacity:1;background-color:rgb(var(--bfc-primary,#A3E635)/var(--tw-bg-opacity))}.data-\[state\=open\]\:bg-accent[data-state=open]{--tw-bg-opacity:1;background-color:rgb(var(--bfc-accent,transparent)/var(--tw-bg-opacity))}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{--tw-bg-opacity:1;background-color:rgb(var(--bfc-input,#E5E5E5)/var(--tw-bg-opacity))}.data-\[selected\=true\]\:text-accent-foreground[data-selected=true]{--tw-text-opacity:1;color:rgb(var(--bfc-accent-foreground,transparent)/var(--tw-text-opacity))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{--tw-text-opacity:1;color:rgb(var(--bfc-muted-foreground,transparent)/var(--tw-text-opacity))}.data-\[disabled\=true\]\:opacity-50[data-disabled=true],.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=open\]\:animate-in[data-state=open]{--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial;animation-duration:.15s;animation-name:enter}.data-\[state\=closed\]\:animate-out[data-state=closed]{--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial;animation-duration:.15s;animation-name:exit}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:0.5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-0.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x:-50%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y:-48%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x:-50%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y:-48%}@container (min-width: 24rem){.\@sm\:block{display:block}}@container (min-width: 48rem){.\@3xl\:mb-4{margin-bottom:1rem}.\@3xl\:hidden{display:none}.\@3xl\:h-auto{height:auto}.\@3xl\:justify-center{justify-content:center}.\@3xl\:space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.\@3xl\:bg-transparent{background-color:transparent}.\@3xl\:p-0{padding:0}.\@3xl\:px-0{padding-left:0;padding-right:0}.\@3xl\:text-5xl{font-size:3rem;line-height:1}.\@3xl\:leading-normal{line-height:1.5}.\@3xl\:text-foreground{--tw-text-opacity:1;color:rgb(var(--bfc-foreground,#171717)/var(--tw-text-opacity))}}.dark\:divide-border:is(.dark *)>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(var(--bfc-border,#171717)/var(--tw-divide-opacity))}.dark\:border-dark-500:is(.dark *){--tw-border-opacity:1;border-color:rgb(115 115 115/var(--tw-border-opacity))}.dark\:border-dark-800\/20:is(.dark *){border-color:rgba(38,38,38,.2)}.dark\:border-gray-700:is(.dark *){--tw-border-opacity:1;border-color:rgb(55 65 81/var(--tw-border-opacity))}.dark\:border-white:is(.dark *){--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.dark\:bg-gray-800:is(.dark *){--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.dark\:bg-muted:is(.dark *){--tw-bg-opacity:1;background-color:rgb(var(--bfc-muted,transparent)/var(--tw-bg-opacity))}.dark\:bg-primary:is(.dark *){--tw-bg-opacity:1;background-color:rgb(var(--bfc-primary,#A3E635)/var(--tw-bg-opacity))}.dark\:bg-slate-500:is(.dark *){--tw-bg-opacity:1;background-color:rgb(100 116 139/var(--tw-bg-opacity))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.dark\:text-neutral-200:is(.dark *){--tw-text-opacity:1;color:rgb(229 229 229/var(--tw-text-opacity))}.dark\:text-primary-foreground:is(.dark *){--tw-text-opacity:1;color:rgb(var(--bfc-primary-foreground,#171717)/var(--tw-text-opacity))}.dark\:text-white:is(.dark *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark\:shadow-\[4px_4px_0_0_\#fff\]:is(.dark *){--tw-shadow:4px 4px 0 0 #fff;--tw-shadow-colored:4px 4px 0 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.dark\:hover\:bg-primary\/80:hover:is(.dark *){background-color:rgb(var(--bfc-primary,#A3E635)/.8)}.dark\:hover\:text-gray-300:hover:is(.dark *){--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.dark\:focus-visible\:bg-primary\/80:focus-visible:is(.dark *){background-color:rgb(var(--bfc-primary,#A3E635)/.8)}@media (min-width:640px){.sm\:size-5{height:1.25rem;width:1.25rem}.sm\:w-auto{width:auto}.sm\:max-w-\[90vw\]{max-width:90vw}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.sm\:rounded-lg{border-radius:.5rem}.sm\:p-8{padding:2rem}.sm\:text-left{text-align:left}}@media (min-width:768px){.md\:hidden{display:none}.md\:p-4{padding:1rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width:1024px){.lg\:block{display:block}}.\[\&\>svg\]\:size-5>svg{height:1.25rem;width:1.25rem}.\[\&\>svg\]\:shrink-0>svg{flex-shrink:0}.\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-group-heading\]\]\:py-1\.5 [cmdk-group-heading]{padding-bottom:.375rem;padding-top:.375rem}.\[\&_\[cmdk-group-heading\]\]\:text-xs [cmdk-group-heading]{font-size:.75rem;line-height:1rem}.\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading]{font-weight:500}.\[\&_\[cmdk-group-heading\]\]\:text-muted-foreground [cmdk-group-heading]{--tw-text-opacity:1;color:rgb(var(--bfc-muted-foreground,transparent)/var(--tw-text-opacity))}.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:0}.\[\&_\[cmdk-group\]\]\:px-2 [cmdk-group]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:h-5 [cmdk-input-wrapper] svg{height:1.25rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:w-5 [cmdk-input-wrapper] svg{width:1.25rem}.\[\&_\[cmdk-input\]\]\:h-12 [cmdk-input]{height:3rem}.\[\&_\[cmdk-item\]\]\:px-2 [cmdk-item]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-item\]\]\:py-3 [cmdk-item]{padding-bottom:.75rem;padding-top:.75rem}.\[\&_\[cmdk-item\]_svg\]\:h-5 [cmdk-item] svg{height:1.25rem}.\[\&_\[cmdk-item\]_svg\]\:w-5 [cmdk-item] svg{width:1.25rem}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{height:1rem;width:1rem}.\[\&_svg\]\:size-6 svg{height:1.5rem;width:1.5rem}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.single-date-picker-calendar{--button-background:#fff;--button-dark-background:#171717;--button-text:#fff;--button-dark-text:#171717;--muted-foreground:#171717;--rdp-accent-color:#a3e635!important;--rdp-selected-color:#fff!important;--rdp-day-height:44px;--rdp-day-width:44px;--rdp-day_button-border-radius:100%;--rdp-day_button-border:2px solid transparent;--rdp-day_button-height:42px;--rdp-day_button-width:42px;--rdp-selected-border:2px solid #a3e635!important;--rdp-disabled-opacity:0.5;--rdp-outside-opacity:0.75;--rdp-dropdown-gap:0.5rem;--rdp-months-gap:2rem;--rdp-nav_button-disabled-opacity:0.5;--rdp-nav_button-height:2.25rem;--rdp-nav_button-width:2.25rem;--rdp-nav-height:2.75rem;--rdp-weekday-text-align:center;.rdp-root{position:relative}.rdp-root,.rdp-root *{box-sizing:border-box}.rdp-root[dir=rtl]{--rdp-gradient-direction:-90deg}.rdp-root[data-broadcast-calendar=true]{--rdp-outside-opacity:unset}.rdp-day{border-radius:50%;display:table-cell!important;font-size:.875rem;height:var(--rdp-day-height);text-align:center;width:var(--rdp-day-width)}.rdp-day:hover{background-color:var(--rdp-accent-color)}.rdp-day_button{align-items:center;background:none;border:var(--rdp-day_button-border);border-radius:var(--rdp-day_button-border-radius);color:inherit;cursor:pointer;display:flex;font:inherit;height:var(--rdp-day_button-height);justify-content:center;margin:0;padding:0;width:var(--rdp-day_button-width)}.rdp-day_button:disabled{cursor:revert}.rdp-caption_label{align-items:center;border:0;display:inline-flex;position:relative;white-space:nowrap;z-index:1}.rdp-dropdown:focus-visible~.rdp-caption_label{outline:5px auto Highlight;outline:5px auto -webkit-focus-ring-color}.rdp-button_next,.rdp-button_previous{align-items:center;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:none;border:none;color:inherit;cursor:pointer;display:inline-flex;font:inherit;height:var(--rdp-nav_button-height);justify-content:center;margin:0;padding:0;position:relative;width:var(--rdp-nav_button-width)}.rdp-button_next:disabled,.rdp-button_next[aria-disabled=true],.rdp-button_previous:disabled,.rdp-button_previous[aria-disabled=true]{cursor:revert;opacity:var(--rdp-nav_button-disabled-opacity)}.rdp-nav button .rdp-chevron{fill:currentColor;display:inline-block}.rdp-nav button:hover .rdp-chevron{fill:var(--rdp-accent-color)!important}.rdp-root[dir=rtl] .rdp-nav .rdp-chevron{transform:rotate(180deg);transform-origin:50%}.rdp-dropdowns{align-items:center;display:inline-flex;gap:var(--rdp-dropdown-gap);position:relative}.rdp-dropdown{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;cursor:inherit;inset-block-end:0;inset-block-start:0;inset-inline-start:0;line-height:inherit;margin:0;opacity:0;padding:0;position:absolute;width:100%;z-index:2}.rdp-dropdown_root{align-items:center;display:inline-flex;position:relative}.rdp-dropdown_root[data-disabled=true] .rdp-chevron{opacity:var(--rdp-disabled-opacity)}.rdp-month_caption{align-content:center;display:flex;font-size:large;font-weight:700;height:var(--rdp-nav-height)}.rdp-months{display:flex;flex-wrap:wrap;gap:var(--rdp-months-gap);justify-content:center;max-width:-moz-fit-content;max-width:fit-content;position:relative}.rdp-month_grid{border-collapse:collapse}.rdp-month{background-color:transparent}.rdp-nav{align-items:center;display:flex;height:var(--rdp-nav-height);inset-block-start:0;inset-inline-end:0;position:absolute}.rdp-weekday{font-size:.875rem;font-weight:600;opacity:var(--rdp-weekday-opacity);padding:var(--rdp-weekday-padding);text-align:var(--rdp-weekday-text-align);text-transform:var(--rdp-weekday-text-transform)}.rdp-selected .rdp-day_button{color:var(--rdp-accent-color)}.rdp-selected:hover .rdp-day_button{color:var(--button-dark-text)}.rdp-range_start.rdp-range_end{background:revert}.rdp-focusable{cursor:pointer}.rdp-day_selected{background-color:var(--rdp-accent-color);color:var(--rdp-selected-color)}.rdp{margin:0}.rdp-caption{margin-bottom:.5em;padding:0}.rdp-head_cell{font-size:.875rem;font-weight:600}.bg-background{background-color:unset}}.FollowUpSearchBar-module_followUpSearchBar__DiKdH{--tw-bg-opacity:1;background-color:rgb(var(--bfc-card,#E5E5E5)/var(--tw-bg-opacity));box-shadow:0 -2px 4px 0 rgba(18,18,23,.05)}
4
- /*# sourceMappingURL=index.css.map */
@@ -1 +0,0 @@
1
- {"version":3,"sources":["global.css","calendar.css","FollowUpSearchBar.module.css"],"names":[],"mappings":"AAAA,iBAAA,uBAA0B,CAA1B,uBAA0B,CAA1B,kBAA0B,CAA1B,kBAA0B,CAA1B,aAA0B,CAA1B,aAA0B,CAA1B,aAA0B,CAA1B,cAA0B,CAA1B,cAA0B,CAA1B,YAA0B,CAA1B,YAA0B,CAA1B,iBAA0B,CAA1B,qCAA0B,CAA1B,6BAA0B,CAA1B,4BAA0B,CAA1B,2BAA0B,CAA1B,cAA0B,CAA1B,mBAA0B,CAA1B,qBAA0B,CAA1B,sBAA0B,CAA1B,uBAA0B,CAA1B,iBAA0B,CAA1B,0BAA0B,CAA1B,2BAA0B,CAA1B,mCAA0B,CAA1B,iCAA0B,CAA1B,0BAA0B,CAA1B,qBAA0B,CAA1B,6BAA0B,CAA1B,WAA0B,CAA1B,iBAA0B,CAA1B,eAA0B,CAA1B,gBAA0B,CAA1B,iBAA0B,CAA1B,aAA0B,CAA1B,eAA0B,CAA1B,YAA0B,CAA1B,kBAA0B,CAA1B,oBAA0B,CAA1B,0BAA0B,CAA1B,w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AAhB,eAAgB,CAShB,WAAY,CADZ,cAAe,CALf,iBAAkB,CADlB,mBAAoB,CAEpB,oBAAqB,CAMrB,mBAAoB,CAJpB,QAAS,CAPT,SAAU,CAQV,SAAU,CANV,iBAAkB,CAIlB,UAAW,CAPX,SAaF,CAEA,mBAGE,kBAAmB,CADnB,mBAAoB,CADpB,iBAGF,CAEA,oDACE,mCACF,CAEA,mBAEE,oBAAqB,CADrB,YAAa,CAIb,eAAgB,CADhB,eAAiB,CADjB,4BAGF,CAEA,YAEE,YAAa,CACb,cAAe,CACf,yBAA0B,CAE1B,sBAAuB,CADvB,0BAAsB,CAAtB,qBAAsB,CAJtB,iBAMF,CAEA,gBACE,wBACF,CAEA,WACE,4BACF,CAEA,SAKE,kBAAmB,CADnB,YAAa,CAEb,4BAA6B,CAJ7B,mBAAoB,CACpB,kBAAmB,CAFnB,iBAMF,CAEA,aAIE,iBAAmB,CADnB,eAAgB,CAFhB,kCAAmC,CACnC,kCAAmC,CAGnC,wCAAyC,CACzC,gDACF,CAGA,8BACE,6BACF,CAEA,oCACE,6BACF,CAEA,+BACE,iBACF,CAEA,eACE,cACF,CAEA,kBACE,wCAAyC,CACzC,+BACF,CAGA,KACE,QACF,CAEA,aAEE,kBAAoB,CADpB,SAEF,CAEA,eAEE,iBAAmB,CADnB,eAEF,CAEA,eACE,sBACF,CAEF,CC3PA,mDAEE,iBAAc,CAAd,kEAAc,CADd,0CAEF","file":"index.css","sourcesContent":["@import \"tailwindcss/base\";\n@import \"tailwindcss/components\";\n@import \"tailwindcss/utilities\";\n\n@layer base {\n :root {\n --bfc-font-family: 'Satoshi', sans-serif;\n\n --bfc-background: 229 229 229; /* #e5e5e5 */\n --bfc-foreground: 23 23 23; /* #171717 */\n --bfc-link: 52 128 25; /* #348019 */\n\n --bfc-card: 255 255 255; /* #FFFFFF */\n --bfc-card-foreground: 10 10 10; /* #0A0A0A */\n\n --bfc-popover: 255 255 255; /* #FFFFFF */\n\n --bfc-primary: 163 230 53; /* #A3E635 */\n --bfc-primary-foreground: 23 23 23; /* #171717 */\n\n --bfc-secondary: 245 245 245; /* #F5F5F5 */\n --bfc-secondary-foreground: 75 85 99; /* #4B5563 */\n\n --bfc-muted: 245 245 245; /* #F5F5F5 */\n --bfc-muted-foreground: 115 115 115; /* #737373 */\n\n --bfc-accent: 245 245 245; /* #F5F5F5 */\n --bfc-accent-foreground: 75 85 99; /* #4B5563 */\n\n --bfc-destructive: 239 68 68; /* #ef4444 */\n --bfc-destructive-foreground: 250 250 250; /* #FAFAFA */\n\n --bfc-border: 23 23 23; /* #171717 */\n --bfc-input: 229 229 229; /* #E5E5E5 */\n --bfc-ring: 23 23 23; /* #171717 */\n\n --bfc-radius: 0.5rem;\n\n --bfc-feedback-positive: 34 197 94; /* #22C55E */\n --bfc-feedback-negative: 239 68 68; /* #EF4444 */\n\n --bfc-surface: 255 255 255; /* #FFFFFF */\n --bfc-surface-border: 229 231 235; /* #E5E7EB */\n }\n\n .dark {\n --bfc-background: 23 23 23; /* #171717 */\n --bfc-foreground: 229 229 229; /* #E5E5E5 */\n --bfc-link: 34 183 242; /* #22B7F2 */\n\n --bfc-card: 47 51 54; /* #2F3336 */\n --bfc-card-foreground: 229 229 229; /* #E5E5E5 */\n\n --bfc-popover: 10 10 10; /* #0A0A0A */\n --bfc-popover-foreground: 250 250 250; /* #FAFAFA */\n\n --bfc-secondary: 38 38 38; /* #262626 */\n --bfc-secondary-foreground: 250 250 250; /* #FAFAFA */\n\n --bfc-muted: 38 38 38; /* #262626 */\n --bfc-muted-foreground: 163 163 163; /* #A3A3A3 */\n\n --bfc-accent: 38 38 38; /* #262626 */\n --bfc-accent-foreground: 250 250 250; /* #FAFAFA */\n\n --bfc-destructive: 127 29 29; /* #7F1D1D */\n --bfc-destructive-foreground: 250 250 250; /* #FAFAFA */\n\n --bfc-border: 82 82 82; /* #525252 */\n --bfc-input: 38 38 38; /* #262626 */\n --bfc-ring: 212 212 212; /* #D4D4D4 */\n\n --bfc-surface: 31 33 40; /* #1F2128 */\n --bfc-surface-border: 47 51 54; /* #2F3336 */\n }\n}\n\n@layer components {\n .link {\n @apply text-[var(rgb(--bfc-link))] underline decoration-[var(rgb(--bfc-link))] decoration-2 underline-offset-2 opacity-90 transition-all hover:opacity-100 hover:decoration-[3px];\n }\n}\n\n@layer utilities {\n .shimmer {\n animation: shimmer 3s infinite linear;\n background: linear-gradient(\n 90deg,\n rgb(var(--bfc-background)) 0%,\n rgb(var(--bfc-muted)) 20%,\n rgb(var(--bfc-background)) 40%\n );\n background-size: 200% 100%;\n }\n\n .modern-spinner {\n @apply relative flex items-center justify-center;\n width: 1.75rem;\n height: 1.75rem;\n }\n\n .modern-spinner::before,\n .modern-spinner::after {\n content: \"\";\n @apply absolute rounded-full;\n }\n\n .modern-spinner::before {\n @apply inset-0 border-[1.5px];\n }\n\n .modern-spinner::after {\n @apply inset-0 border-[1.5px] border-primary border-t-transparent;\n animation: spin 1s linear infinite;\n }\n\n .animate-spin {\n animation: rotate 2s linear infinite;\n transform-box: fill-box;\n transform-origin: center;\n transform: none;\n }\n}\n\n@keyframes shimmer {\n 0% {\n background-position: -200% 0;\n }\n 100% {\n background-position: 200% 0;\n }\n}\n\n@keyframes spin {\n to {\n transform: rotate(360deg);\n }\n}\n\n@keyframes pulse {\n 50% {\n transform: scale(1.1);\n }\n}\n\n@keyframes rotate {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n}\n",".single-date-picker-calendar {\n /* Variables declaration */\n --button-background: #fff;\n --button-dark-background: #171717;\n --button-text: #fff;\n --button-dark-text: #171717;\n --muted-foreground: #171717;\n --rdp-accent-color: #A3E635 !important;\n --rdp-selected-color: #fff !important;\n --rdp-day-height: 44px;\n --rdp-day-width: 44px;\n --rdp-day_button-border-radius: 100%;\n --rdp-day_button-border: 2px solid transparent;\n --rdp-day_button-height: 42px;\n --rdp-day_button-width: 42px;\n --rdp-selected-border: 2px solid #A3E635 !important;\n --rdp-disabled-opacity: 0.5;\n --rdp-outside-opacity: 0.75;\n --rdp-dropdown-gap: 0.5rem;\n --rdp-months-gap: 2rem;\n --rdp-nav_button-disabled-opacity: 0.5;\n --rdp-nav_button-height: 2.25rem;\n --rdp-nav_button-width: 2.25rem;\n --rdp-nav-height: 2.75rem;\n --rdp-weekday-text-align:center;\n \n /* Root of the component. */\n .rdp-root {\n position: relative;\n box-sizing: border-box;\n }\n\n .rdp-root * {\n box-sizing: border-box;\n }\n\n .rdp-root[dir=\"rtl\"] {\n --rdp-gradient-direction: -90deg;\n }\n\n .rdp-root[data-broadcast-calendar=\"true\"] {\n --rdp-outside-opacity: unset;\n }\n\n .rdp-day {\n width: var(--rdp-day-width);\n height: var(--rdp-day-height);\n text-align: center;\n font-size: 0.875rem;\n border-radius: 50%;\n display: table-cell !important;\n }\n\n .rdp-day:hover{\n background-color: var(--rdp-accent-color);\n }\n\n .rdp-day_button {\n background: none;\n padding: 0;\n margin: 0;\n cursor: pointer;\n font: inherit;\n color: inherit;\n justify-content: center;\n align-items: center;\n display: flex;\n\n width: var(--rdp-day_button-width);\n height: var(--rdp-day_button-height);\n border: var(--rdp-day_button-border);\n border-radius: var(--rdp-day_button-border-radius);\n }\n\n .rdp-day_button:disabled {\n cursor: revert;\n }\n\n .rdp-caption_label {\n z-index: 1;\n position: relative;\n display: inline-flex;\n align-items: center;\n white-space: nowrap;\n border: 0;\n }\n\n .rdp-dropdown:focus-visible ~ .rdp-caption_label {\n outline: 5px auto Highlight;\n outline: 5px auto -webkit-focus-ring-color;\n }\n\n .rdp-button_next,\n .rdp-button_previous {\n border: none;\n background: none;\n padding: 0;\n margin: 0;\n cursor: pointer;\n font: inherit;\n color: inherit;\n -moz-appearance: none;\n -webkit-appearance: none;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n position: relative;\n appearance: none;\n\n width: var(--rdp-nav_button-width);\n height: var(--rdp-nav_button-height);\n }\n\n .rdp-button_next:disabled,\n .rdp-button_next[aria-disabled=\"true\"],\n .rdp-button_previous:disabled,\n .rdp-button_previous[aria-disabled=\"true\"] {\n cursor: revert;\n opacity: var(--rdp-nav_button-disabled-opacity);\n }\n\n .rdp-nav button .rdp-chevron{\n display: inline-block;\n fill: currentColor;\n }\n .rdp-nav button:hover .rdp-chevron{\n fill: var(--rdp-accent-color) !important;\n }\n\n .rdp-root[dir=\"rtl\"] .rdp-nav .rdp-chevron {\n transform: rotate(180deg);\n transform-origin: 50%;\n }\n\n .rdp-dropdowns {\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: var(--rdp-dropdown-gap);\n }\n \n .rdp-dropdown {\n z-index: 2;\n opacity: 0;\n appearance: none;\n position: absolute;\n inset-block-start: 0;\n inset-block-end: 0;\n inset-inline-start: 0;\n width: 100%;\n margin: 0;\n padding: 0;\n cursor: inherit;\n border: none;\n line-height: inherit;\n }\n\n .rdp-dropdown_root {\n position: relative;\n display: inline-flex;\n align-items: center;\n }\n\n .rdp-dropdown_root[data-disabled=\"true\"] .rdp-chevron {\n opacity: var(--rdp-disabled-opacity);\n }\n\n .rdp-month_caption {\n display: flex;\n align-content: center;\n height: var(--rdp-nav-height);\n font-weight: bold;\n font-size: large;\n }\n\n .rdp-months {\n position: relative;\n display: flex;\n flex-wrap: wrap;\n gap: var(--rdp-months-gap);\n max-width: fit-content;\n justify-content: center;\n }\n\n .rdp-month_grid {\n border-collapse: collapse;\n }\n\n .rdp-month {\n background-color: transparent;\n }\n\n .rdp-nav {\n position: absolute;\n inset-block-start: 0;\n inset-inline-end: 0;\n display: flex;\n align-items: center;\n height: var(--rdp-nav-height);\n }\n\n .rdp-weekday {\n opacity: var(--rdp-weekday-opacity);\n padding: var(--rdp-weekday-padding);\n font-weight: 600;\n font-size: 0.875rem;\n text-align: var(--rdp-weekday-text-align);\n text-transform: var(--rdp-weekday-text-transform);\n }\n\n /* DAY MODIFIERS */\n .rdp-selected .rdp-day_button {\n color:var(--rdp-accent-color) ;\n }\n\n .rdp-selected:hover .rdp-day_button {\n color: var(--button-dark-text);\n }\n\n .rdp-range_start.rdp-range_end {\n background: revert;\n }\n\n .rdp-focusable {\n cursor: pointer;\n }\n\n .rdp-day_selected {\n background-color: var(--rdp-accent-color);\n color: var(--rdp-selected-color);\n }\n\n /* Custom styles from original calendar.css */\n .rdp {\n margin: 0;\n }\n\n .rdp-caption {\n padding: 0;\n margin-bottom: 0.5em;\n }\n\n .rdp-head_cell {\n font-weight: 600;\n font-size: 0.875rem;\n }\n\n .bg-background {\n background-color: unset;\n }\n\n}",".followUpSearchBar {\n box-shadow: 0px -2px 4px 0px rgba(18, 18, 23, 0.05);\n @apply bg-card;\n}"]}
package/dist/esm/index.js DELETED
@@ -1,2 +0,0 @@
1
- import*as e from"react";import t,{memo as a,useState as n,useRef as r,useEffect as s,useMemo as o,forwardRef as i,lazy as l,Suspense as c,Fragment as d,useCallback as m,createContext as u,useContext as p,useImperativeHandle as f}from"react";import{AnimatePresence as g,motion as h}from"framer-motion";import*as v from"@radix-ui/react-tooltip";import{clsx as b}from"clsx";import{twMerge as y}from"tailwind-merge";import{jsx as x}from"react/jsx-runtime";import{cva as E}from"class-variance-authority";import{CaretDown as w,Check as N,CalendarBlank as k,XCircle as C,CheckCircle as I,Clipboard as j,Download as S,ArrowsOut as O,PaperPlaneRight as F,X as R,Heart as z,ThumbsUp as A,ThumbsDown as T,Copy as L,ArrowSquareOut as _,CaretRight as D,ArrowsVertical as Q,ArrowDown as q,MagnifyingGlass as B,Circle as P,Image as $,ArrowRight as U,ArrowLeft as M,ArrowsInSimple as V,ArrowsOutSimple as W,CaretUpDown as Z,Plus as H}from"@phosphor-icons/react";import{useForm as K,Controller as Y}from"react-hook-form";import{ajvResolver as G}from"@hookform/resolvers/ajv";import*as J from"@radix-ui/react-label";import*as X from"@radix-ui/react-select";import{format as ee}from"date-fns";import{DayPicker as te}from"react-day-picker";import*as ae from"@radix-ui/react-popover";import ne from"rehype-raw";import re from"remark-gfm";import{match as se,compile as oe}from"path-to-regexp";import{Prism as ie}from"react-syntax-highlighter";import{a11yDark as le}from"react-syntax-highlighter/dist/cjs/styles/prism";import ce from"react-markdown";import de from"mermaid";import{createId as me}from"@paralleldrive/cuid2";import*as ue from"@radix-ui/react-collapsible";import{useImmerReducer as pe}from"use-immer";import{useSearchParam as fe,useEffectOnce as ge}from"react-use";import*as he from"@radix-ui/react-dropdown-menu";import{ChevronRightIcon as ve,CheckIcon as be,DotFilledIcon as ye,Cross2Icon as xe,MagnifyingGlassIcon as Ee}from"@radix-ui/react-icons";import*as we from"@radix-ui/react-scroll-area";import*as Ne from"@radix-ui/react-switch";import{Command as ke}from"cmdk";import*as Ce from"@radix-ui/react-dialog";function Ie(e,t){return({opacityVariable:a,opacityValue:n})=>`rgb(var(${e}, ${t}) / ${void 0!==n?n:`var(${a}, 1)`})`}const je={50:"#FAFAFA",100:"#F5F5F5",200:"#E5E5E5",300:"#D4D4D4",400:"#A3A3A3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",DEFAULT:"#171717"},Se={primary:{50:"#F7FEE8",100:"#ECFCCC",200:"#D9F99E",300:"#BEF265",400:"#A3E635",500:"#84CC17",600:"#65A30E",700:"#4E7C10",800:"#406213",900:"#375415",DEFAULT:Ie("--bfc-primary","#A3E635"),foreground:Ie("--bfc-primary-foreground",je.DEFAULT)},dark:je,orange:{50:"#FFF7EE",100:"#FFEDD6",200:"#FED7AB",300:"#FDBA75",400:"#FB923D",500:"#F97317",600:"#EA590D",700:"#C2420D",800:"#9A3513",900:"#7C2E13",DEFAULT:"#FB923D"},yellow:{50:"#FFFBEC",100:"#FEF3C8",200:"#FDE68B",300:"#FCD34E",400:"#FBBF25",500:"#F59E0C",600:"#D97707",700:"#B4540A",800:"#92410F",900:"#783610",DEFAULT:"#FBBF25"},green:{50:"#EDFDF5",100:"#D2FAE5",200:"#A8F3D0",300:"#6FE7B7",400:"#35D399",500:"#11B981",600:"#069669",700:"#057857",800:"#075F47",900:"#074F3C",DEFAULT:"#35D399"},blue:{50:"#F0F6FF",100:"#DCEAFE",200:"#C0DBFE",300:"#94C5FD",400:"#61A5FA",500:"#3C82F6",600:"#2663EB",700:"#1E4FD8",800:"#1F41AF",900:"#1F3B8A",DEFAULT:"#61A5FA"},purple:{50:"#F5F4FF",100:"#EDEAFE",200:"#DED7FE",300:"#C5B6FD",400:"#A78CFA",500:"#8C5DF6",600:"#7C3BED",700:"#6D29D9",800:"#5B22B6",900:"#4D1E95",DEFAULT:"#8C5DF6"},pink:{50:"#F5F4FF",100:"#FAE9FF",200:"#F5D1FE",300:"#F0ACFC",400:"#E87AF9",500:"#D947EF",600:"#C027D3",700:"#A21DAF",800:"#861A8F",900:"#701B75",DEFAULT:"#E87AF9"},red:{50:"#FFF2F3",100:"#FFE5E6",200:"#FECED4",300:"#FDA5B0",400:"#FB7286",500:"#F4405E",600:"#E11E49",700:"#BE133D",800:"#9F133A",900:"#881438",DEFAULT:"#F4405E"}};function Oe(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(a[n[r]]=e[n[r]])}return a}function Fe(e,t,a,n){return new(a||(a=Promise))((function(r,s){function o(e){try{l(n.next(e))}catch(e){s(e)}}function i(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(o,i)}l((n=n.apply(e,t||[])).next())}))}function Re(...e){return y(b(e))}function ze(e){const t={en:[/i(?:\s|['\u2018\u2019])?m(?:\s+really)?\s+not\s+sure/i,/i(?:\s+am)?(?:\s+really)?\s+not\s+sure/i,/i\s+(?:really\s+)?don(?:['\u2018\u2019])?t\s+know/i,/it(?:['\u2018\u2019]s| is) unclear/i,/cannot determine/i,/hard to say/i,/difficult to determine/i,/need more information/i],es:[/no (?:lo )?sé/i,/no estoy seguro/i,/no es claro/i,/desconocido/i],fr:[/je ne sais pas/i,/je ne suis pas sûr/i,/ce n'est pas clair/i,/inconnu/i],de:[/ich weiß nicht/i,/ich bin nicht sicher/i,/es ist unklar/i,/unbekannt/i],it:[/non lo so/i,/non sono sicuro/i,/non è chiaro/i,/sconosciuto/i],pt:[/não sei/i,/não tenho certeza/i,/não está claro/i,/desconhecido/i],nl:[/ik weet het niet/i,/ik weet niet zeker/i,/het is onduidelijk/i,/onbekend/i],pl:[/nie wiem/i,/nie jestem pewien/i,/to nie jest jasne/i,/nieznany/i],ru:[/я не знаю/i,/я не уверен/i,/это не ясно/i,/неизвестно/i],ja:[/知りません/i,/よくわからない/i,/不明です/i,/未知/i],ko:[/모릅니다/i,/잘 모르겠습니다/i,/불확실합니다/i,/알 수 없음/i],zh:[/我不知道/i,/我不确定/i,/不清楚/i,/未知/i],"zh-TW":[/我不知道/i,/我不確定/i,/不清楚/i,/未知/i]};let a=null;for(const[n,r]of Object.entries(t))for(const t of r){const r=e.match(t);r&&(null===a||r.index<a.index)&&(a={index:r.index,language:n})}return a?{uncertain:!0,language:a.language}:{uncertain:!1,language:null}}"function"==typeof SuppressedError&&SuppressedError;const Ae=t=>{var{delayDuration:a=200}=t,n=Oe(t,["delayDuration"]);return e.createElement(v.Provider,Object.assign({delayDuration:a},n))},Te=v.Root,Le=v.Trigger,_e=e.forwardRef(((t,a)=>{var{className:n,sideOffset:r=4,background:s,textColor:o,borderColor:i,style:l}=t,c=Oe(t,["className","sideOffset","background","textColor","borderColor","style"]);return e.createElement(v.Portal,null,e.createElement(v.Content,Object.assign({ref:a,sideOffset:r,className:Re("z-50 overflow-hidden rounded-lg px-4 py-3 text-sm font-medium shadow-lg animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n),style:Object.assign(Object.assign({},l),{backgroundColor:s||"#ffffff",color:o||"rgb(31 41 55)",borderColor:i||"rgb(243 244 246)",borderWidth:"1px",borderStyle:"solid"})},c)))}));function De(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Qe(t){const a=Be(t),n=e.forwardRef(((t,n)=>{const{children:r,...s}=t,o=e.Children.toArray(r),i=o.find($e);if(i){const t=i.props.children,r=o.map((a=>a===i?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:a));return x(a,{...s,ref:n,children:e.isValidElement(t)?e.cloneElement(t,void 0,r):null})}return x(a,{...s,ref:n,children:r})}));return n.displayName=`${t}.Slot`,n}_e.displayName=v.Content.displayName;var qe=Qe("Slot");function Be(t){const a=e.forwardRef(((t,a)=>{const{children:n,...r}=t;if(e.isValidElement(n)){const t=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;if(a)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}(n),s=function(e,t){const a={...t};for(const n in t){const r=e[n],s=t[n];/^on[A-Z]/.test(n)?r&&s?a[n]=(...e)=>{const t=s(...e);return r(...e),t}:r&&(a[n]=r):"style"===n?a[n]={...r,...s}:"className"===n&&(a[n]=[r,s].filter(Boolean).join(" "))}return{...e,...a}}(r,n.props);return n.type!==e.Fragment&&(s.ref=a?function(...e){return t=>{let a=!1;const n=e.map((e=>{const n=De(e,t);return a||"function"!=typeof n||(a=!0),n}));if(a)return()=>{for(let t=0;t<n.length;t++){const a=n[t];"function"==typeof a?a():De(e[t],null)}}}}(a,t):t),e.cloneElement(n,s)}return e.Children.count(n)>1?e.Children.only(null):null}));return a.displayName=`${t}.SlotClone`,a}var Pe=Symbol("radix.slottable");function $e(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===Pe}const Ue=E("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",dark:"bg-dark-700 text-white shadow hover:bg-dark-800 dark:bg-primary dark:text-primary-foreground dark:hover:bg-primary/80 focus-visible:bg-dark-800 dark:focus-visible:bg-primary/80"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-sm",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Me=e.forwardRef(((t,a)=>{var{className:n,variant:r,size:s,asChild:o=!1}=t,i=Oe(t,["className","variant","size","asChild"]);const l=o?qe:"button";return e.createElement(l,Object.assign({className:Re(Ue({variant:r,size:s,className:n})),ref:a},i))}));function Ve({suggestions:e,onQuestionClick:a,title:n="Suggested questions"}){return e&&0!==e.length?t.createElement("div",{className:"w-full p-3","data-name":"Suggestions"},t.createElement("h3",{className:"text-base font-medium mb-4 text-foreground"},n),t.createElement("div",{className:"flex flex-wrap gap-2"},e.map((e=>t.createElement(Me,{key:e.id,onClick:()=>a(e),variant:"outline",className:"border-border font-normal whitespace-normal h-auto text-left"},void 0!==e.messageCount&&t.createElement(Ae,null,t.createElement(Te,null,t.createElement(Le,{asChild:!0},t.createElement("span",{className:"bg-gray-100 text-gray-600 px-2 py-0.5 rounded-full text-xs min-w-[20px] border flex items-center justify-center border-border"},e.messageCount)),t.createElement(_e,null,t.createElement("p",null,e.messageCount," messages in this conversation")))),t.createElement("span",{className:""},e.question)))))):null}Me.displayName="Button";const We=e.forwardRef(((t,a)=>{var{className:n,type:r}=t,s=Oe(t,["className","type"]);return e.createElement("input",Object.assign({type:r,className:Re("flex h-12 w-full rounded-md border border-input bg-transparent px-4 py-3 text-base transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",n),ref:a},s))}));We.displayName="Input";const Ze=E("font-bold leading-6 peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),He=e.forwardRef(((t,a)=>{var{className:n}=t,r=Oe(t,["className"]);return e.createElement(J.Root,Object.assign({ref:a,className:Re(Ze(),n)},r))}));He.displayName=J.Root.displayName;const Ke=e.forwardRef(((t,a)=>{var{className:n}=t,r=Oe(t,["className"]);return e.createElement("textarea",Object.assign({className:Re("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",n),ref:a},r))}));Ke.displayName="Textarea";const Ye=X.Root,Ge=X.Value,Je=e.forwardRef(((t,a)=>{var{className:n,children:r}=t,s=Oe(t,["className","children"]);return e.createElement(X.Trigger,Object.assign({ref:a,className:Re("flex h-9 w-full items-center justify-between rounded border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50",n)},s),r,e.createElement(X.Icon,{asChild:!0},e.createElement(w,{className:"h-4 w-4 opacity-50"})))}));Je.displayName=X.Trigger.displayName;const Xe=e.forwardRef(((t,a)=>{var{className:n,children:r,position:s="popper",appendToBody:o}=t,i=Oe(t,["className","children","position","appendToBody"]);return e.createElement(X.Portal,{container:o?document.body:void 0},e.createElement(X.Content,Object.assign({ref:a,className:Re("relative z-[9999] min-w-[8rem] overflow-hidden rounded border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===s&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n),position:s},i),e.createElement(X.Viewport,{className:Re("p-1","popper"===s&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]")},r)))}));Xe.displayName=X.Content.displayName;e.forwardRef(((t,a)=>{var{className:n}=t,r=Oe(t,["className"]);return e.createElement(X.Label,Object.assign({ref:a,className:Re("px-2 py-1.5 text-sm font-semibold",n)},r))})).displayName=X.Label.displayName;const et=e.forwardRef(((t,a)=>{var{className:n,children:r}=t,s=Oe(t,["className","children"]);return e.createElement(X.Item,Object.assign({ref:a,className:Re("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n)},s),e.createElement("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center"},e.createElement(X.ItemIndicator,null,e.createElement(N,{className:"h-4 w-4"}))),e.createElement(X.ItemText,null,r))}));et.displayName=X.Item.displayName;function tt({options:t,value:a,onChange:n,placeholder:r="Select...",disabled:s=!1,className:o,appendToBody:i=!1}){return e.createElement(Ye,{value:a,onValueChange:e=>{n&&n(e)},disabled:s},e.createElement(Je,{className:Re("w-full",o)},e.createElement(Ge,{placeholder:r})),e.createElement(Xe,{appendToBody:i},t.map((t=>e.createElement(et,{key:t.value,value:t.value},t.label)))))}function at(t){var{className:a,classNames:n,showOutsideDays:r=!0}=t,s=Oe(t,["className","classNames","showOutsideDays"]);return e.createElement(te,Object.assign({showOutsideDays:r,className:Re("p-4",a),classNames:Object.assign({},n)},s))}e.forwardRef(((t,a)=>{var{className:n}=t,r=Oe(t,["className"]);return e.createElement(X.Separator,Object.assign({ref:a,className:Re("-mx-1 my-1 h-px bg-muted",n)},r))})).displayName=X.Separator.displayName,at.displayName="Calendar";const nt=ae.Root,rt=ae.Trigger,st=ae.Anchor,ot=e.forwardRef(((t,a)=>{var{className:n,align:r="center",sideOffset:s=4}=t,o=Oe(t,["className","align","sideOffset"]);return e.createElement(ae.Portal,null,e.createElement(ae.Content,Object.assign({ref:a,align:r,sideOffset:s,className:Re("z-50 w-72 rounded-md border border-foreground bg-popover p-4 text-popover-foreground shadow-[4px_4px_0_0_#171717] dark:shadow-[4px_4px_0_0_#fff] outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n)},o)))}));function it({date:t,setDate:a,className:n,placeholder:r="Select date"}){return e.createElement(nt,null,e.createElement(rt,{asChild:!0},e.createElement(Me,{variant:"outline",className:Re("w-full justify-start text-left font-normal text-base",!t&&"text-muted-foreground",n)},e.createElement(k,{className:"mr-2 !w-5 !h-5"}),t?ee(t,"PPP"):r)),e.createElement(ot,{className:"w-auto p-0 z-[9999]"},e.createElement(at,{mode:"single",selected:t,onSelect:a,className:"single-date-picker-calendar"})))}function lt({block:e}){const a=t.useMemo((()=>function(e){var t,a;const n=structuredClone(e);n.errorMessage="This field is required";for(const[e,r]of Object.entries(null!==(t=n.properties)&&void 0!==t?t:{}))(null===(a=n.required)||void 0===a?void 0:a.includes(e))&&"string"===r.type&&(r.minLength=r.minLength||1,r.errorMessage=r.errorMessage||{minLength:"This field is required"}),"number"===r.type&&(r.errorMessage=r.errorMessage||{type:"Please enter a valid number"});return n}(e.schema)),[e.schema]),{inputs:n=[],initialValues:r,state:s}=e,o="ready"===s,i="processing"===s,l="completed"===s,c=Object.entries(r).reduce(((e,[t,a])=>("string"==typeof a&&""===a.trim()||(e[t]=a),e)),{}),{register:d,control:m,handleSubmit:u,formState:{errors:p}}=K({defaultValues:c,resolver:G(a,{removeAdditional:!0})}),f=n.map((e=>{var a;const{name:n,required:r,schema:s,ui:i}=e,l=`${null!==(a=s.title)&&void 0!==a?a:n}${r?"*":""}`,c=s.description,u=p[n],f=null==u?void 0:u.message;let g=c?String(c):null;u&&(g=c?t.createElement(t.Fragment,null,c," - ",t.createElement("span",{className:"italic"},f)):f);const h=(null==i?void 0:i.type)||"text",v={valueAsNumber:"number"===h||void 0};return t.createElement("div",{key:n,className:"py-2 flex flex-col gap-2"},t.createElement(He,{htmlFor:n},l),"datepicker"===h?t.createElement(Y,{control:m,name:n,render:({field:e})=>t.createElement(it,{date:e.value&&"string"==typeof e.value?new Date(e.value):void 0,setDate:t=>{t?e.onChange(t.toISOString()):e.onChange(void 0)},className:Re("!bg-transparent",{"border-red-600":!!u})})}):"textarea"===h?t.createElement(Ke,Object.assign({disabled:!o,rows:2,maxLength:1e4,className:Re("!bg-transparent",{"border-red-600":!!u})},d(n,v),{"aria-invalid":!!u,"aria-required":r})):"select"===h?t.createElement(Y,{control:m,name:n,render:({field:e})=>{var a,n;return t.createElement(tt,{options:null!==(n=null===(a=s.oneOf)||void 0===a?void 0:a.map((e=>({label:e.title,value:e.const}))))&&void 0!==n?n:[],className:Re("!bg-transparent",{"border-red-600":!!u}),value:e.value,onChange:t=>e.onChange(t)})}}):t.createElement(We,Object.assign({type:h,disabled:!o,className:Re({"border-red-600":!!u})},d(n,v),{"aria-invalid":!!u,"aria-required":r})),g&&t.createElement("span",{className:Re("flex text-sm leading-6 font-medium gap-1.5 items-center",{"text-red-600 dark:text-white":!!u})},u&&t.createElement(C,{weight:"fill",size:20,className:"inline-block align-middle text-red-600"}),t.createElement("span",null,g)))}));return t.createElement("div",{className:"relative"},t.createElement("form",{className:"flex flex-col justify-stretch",onSubmit:t=>(t.preventDefault(),e.onSubmit&&u(e.onSubmit)(t),!1)},f,t.createElement("div",{className:"mt-4"},t.createElement(Me,{type:"submit",variant:"dark",disabled:!o,className:"w-full rounded-s"},o&&"Submit",i&&"Processing...",l&&"Completed"))))}function ct({block:e}){return null}ot.displayName=ae.Content.displayName;const dt={javascript:".js",python:".py",java:".java",c:".c",cpp:".cpp","c++":".cpp","c#":".cs",ruby:".rb",php:".php",swift:".swift","objective-c":".m",kotlin:".kt",typescript:".ts",go:".go",perl:".pl",rust:".rs",scala:".scala",haskell:".hs",lua:".lua",shell:".sh",sql:".sql",html:".html",css:".css"},mt=ie,ut=a((({language:e,value:a})=>{const[r,s]=n(!1);return t.createElement("div",{className:"relative font-sans text-sm mt-1"},t.createElement("div",{className:"relative rounded-t-lg bg-zinc-800/80 font-sans text-sm backdrop-blur"},t.createElement("div",{className:"flex h-8 items-center justify-between px-3"},t.createElement("span",{className:"text-xs font-medium text-zinc-400"},e),t.createElement("div",{className:"flex gap-1"},t.createElement(Me,{variant:"ghost",size:"icon",className:"size-5 text-zinc-400 hover:bg-zinc-700/50 hover:text-zinc-100",onClick:()=>{Fe(void 0,void 0,void 0,(function*(){if(navigator.clipboard&&navigator.clipboard.writeText)try{yield navigator.clipboard.writeText(a),s(!0),setTimeout((()=>{s(!1)}),2e3)}catch(e){console.error("Failed to copy:",e)}}))}},r?t.createElement(I,{size:18}):t.createElement(j,{size:18})),t.createElement(Me,{variant:"ghost",size:"icon",className:"size-5 text-zinc-400 hover:bg-zinc-700/50 hover:text-zinc-100",onClick:()=>{const t=dt[e]||".file",n=`file-${((e,t=!1)=>{const a="ABCDEFGHJKLMNPQRSTUVWXY3456789";let n="";for(let t=0;t<e;t+=1)n+=a.charAt(Math.floor(30*Math.random()));return t?n.toLowerCase():n})(3,!0)}${t}`,r=new Blob([a],{type:"text/plain"}),s=URL.createObjectURL(r),o=document.createElement("a");o.download=n,o.href=s,o.style.display="none",document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(s)}},t.createElement(S,{size:18}))))),t.createElement("div",{className:"rounded-b-lg"},t.createElement(mt,{language:e,style:le,PreTag:"div",wrapLongLines:!0,customStyle:{margin:0,borderTopLeftRadius:0,borderTopRightRadius:0}},a)))}));ut.displayName="CodeBlock";const pt=e.forwardRef((({src:t,border:a,width:n="100%",height:r="400px",title:s},o)=>{const[i,l]=e.useState(!1),[c,d]=e.useState(!1);return e.useEffect((()=>{let e=!0;return setTimeout((()=>{e&&l(!0)}),0),()=>{e=!1}}),[]),e.createElement("div",{className:"overflow-hidden rounded-lg mt-4 relative "+(a?"border":""),style:{width:n,height:r}},i&&e.createElement(e.Fragment,null,e.createElement("div",{className:"absolute w-full h-full "+(c?"hidden":"block")},e.createElement("div",{className:"absolute inset-0 bg-muted/10 rounded-lg"},e.createElement("div",{className:"absolute inset-0"},e.createElement("div",{className:"h-full w-full shimmer"}),e.createElement("div",{className:"absolute left-1/2 top-1/2 -translate-1/2 flex flex-col items-center gap-2"},e.createElement("div",{className:"modern-spinner"}),e.createElement("div",{className:"text-sm text-muted-foreground"},"Loading..."))))),e.createElement("div",{className:c?"visible":"invisible"},e.createElement("iframe",{ref:o,src:t,sandbox:"allow-same-origin allow-scripts allow-popups allow-forms allow-downloads",width:n,height:r,title:"embed",loading:"lazy",allowFullScreen:!0,className:"block rounded-lg",onLoad:()=>d(!0)}),s&&e.createElement("span",{className:"block text-center text-sm font-medium"},s))))}));function ft(t){const a=t.attrs.href.replace("share","embed");return e.createElement(pt,Object.assign({},t,{src:a,title:"Loom Embed"}))}function gt(t){return e.createElement(pt,Object.assign({},t,{src:t.attrs.href,title:"Supademo Embed"}))}function ht(t){return e.createElement(pt,Object.assign({},t,{src:t.attrs.href,title:"Typeform Embed"}))}function vt(t){const a=t.attrs.href.match(/(http|https)?:\/\/(www\.)?vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/([^/]*)\/videos\/|)(\d+)(?:\/|\?)?([\d\w]+)?/);if(!a)return null;const n=a[4],r=a[5],s=`https://player.vimeo.com/video/${n}?byline=0${r?`&h=${r}`:""}`;return e.createElement(pt,Object.assign({},t,{src:s,title:`Vimeo Embed (${n})`,height:"412px",border:!1}))}function bt(t){const a=(e=>{const t=[/^https?:\/\/([a-zA-Z0-9-_~]+)\.wistia\.com\/medias\/([a-zA-Z0-9-_~]+)\/?$/,/^https?:\/\/fast\.wistia\.com\/embed\/iframe\/([a-zA-Z0-9-_~]+)\/?$/,/^fast\.wistia\.com\/embed\/iframe\/([a-zA-Z0-9-_~]+)\/?$/,/^([a-zA-Z0-9-_~]+)\.wistia\.com\/medias\/([a-zA-Z0-9-_~]+)\/?$/];for(const a of t){const t=e.match(a);if(t)return t}return null})(t.attrs.href);if(!a)return null;const n=a[1],r=a[2]||a[1],s=n?`https://${n}.wistia.com/embed/iframe/${r}?seo=true&videoFoam=false`:`https://fast.wistia.com/embed/iframe/${r}`;return e.createElement(pt,Object.assign({},t,{src:s,border:!0,title:`Wistia Embed (${r})`}))}ft.isMatch=e=>/^https:\/\/(www\.)?(use)?loom\.com\/(embed|share)\/(.*)$/.test(e),gt.isMatch=e=>/^https:\/\/app\.supademo\.com\/embed\/(.*)$/.test(e),ht.isMatch=e=>/^https:\/\/([A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)\.typeform\.com\/to\/(.*)$/.test(e),vt.isMatch=e=>/^(https?):\/\/(www\.)?vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/([^/]*)\/videos\/|)?(\d+)(\/)?(?:\?.*|#.*)?$/i.test(e),bt.isMatch=e=>[/^https?:\/\/([a-zA-Z0-9-_~]+)\.wistia\.com\/medias\/([a-zA-Z0-9-_~]+)(\/)?(\?.*)?$/i,/^https?:\/\/fast\.wistia\.com\/embed\/iframe\/([a-zA-Z0-9-_~]+)(\/)?(\?.*)?$/i,/^fast\.wistia\.com\/embed\/iframe\/([a-zA-Z0-9-_~]+)(\/)?(\?.*)?$/i,/^([a-zA-Z0-9-_~]+)\.wistia\.com\/medias\/([a-zA-Z0-9-_~]+)(\/)?(\?.*)?$/i].some((t=>t.test(e)));const yt=/^(?:https?:\/\/)?(?:www\.)?(?:youtube(?:-nocookie)?\.com\/(?:watch\?v=|embed\/|v\/|shorts\/)|youtu\.be\/)([a-zA-Z0-9_-]{11})(?:\/|[?&].*)?$/i;function xt(t){const a=(e=>{const t=e.match(yt);return t?t[1]:null})(t.attrs.href);if(!a)return null;const n=(e=>{try{const t=new URL(e).searchParams.get("t");if(!t)return null;const a=parseInt(t,10);return Number.isNaN(a)?null:a}catch(e){return null}})(t.attrs.href),r=`https://www.youtube.com/embed/${a}?modestbranding=1${n?`&start=${n}`:""}`;return e.createElement(pt,Object.assign({},t,{src:r,title:`YouTube Embed (${a})`}))}xt.isMatch=e=>yt.test(e);const Et=[ft,gt,ht,xt,bt,vt],wt=t=>{const{href:a}=t.attrs,n=((t,a)=>e.useMemo((()=>{try{const e=a.find((e=>e.isMatch(t)));return e?{Component:e}:null}catch(e){return console.error("Error finding embed match:",e),null}}),[t,a]))(a,Et);if(n){const{Component:a}=n;return e.createElement(a,Object.assign({},t))}return null},Nt=a(ce,((e,t)=>e.children===t.children&&e.isStreaming===t.isStreaming)),kt={startOnLoad:!1,theme:"default",securityLevel:"loose",fontFamily:"inherit",secure:["secure","securityLevel","startOnLoad","maxTextSize"]},Ct=({content:e})=>{const[a,o]=n(""),[i,l]=n(null),c=r(null),[d,m]=n(!1);return s((()=>{(()=>{try{de.initialize(kt),m(!0)}catch(e){console.error("Error initializing mermaid:",e),l("Failed to initialize diagram renderer")}})()}),[]),s((()=>{if(!d)return;Fe(void 0,void 0,void 0,(function*(){try{const t=`mermaid-${Math.random().toString(36).substr(2,9)}`,{svg:a}=yield de.render(t,e);o(a),l(null)}catch(e){console.error("Error rendering mermaid diagram:",e),l("Failed to render diagram")}}))}),[e,d]),i?t.createElement("div",{className:"text-red-500 bg-red-50 p-4 rounded-md"},i,t.createElement("pre",{className:"mt-2 text-sm"},e)):t.createElement("div",{ref:c,className:"my-4 overflow-auto",dangerouslySetInnerHTML:{__html:a}})},It=({src:t,alt:a})=>{const[n,r]=e.useState(!1),[s,o]=e.useState(!1),[i,l]=e.useState(!1),[c,d]=e.useState(!1),[m,u]=e.useState({width:0,height:0}),p=e.useRef(null),f=()=>{r(!n)};return!t||i?null:e.createElement("figure",{className:"relative inline-block my-4 px-4 w-full sm:w-auto"},e.createElement("div",{className:"flex items-center justify-center min-h-[100px]"},e.createElement("button",{type:"button",onClick:f,className:"border-0 p-0 bg-transparent relative group","aria-label":n?"Zoom out image":"Zoom in image"},c&&e.createElement("div",{className:"rounded-md bg-gray-200 dark:bg-gray-800 animate-pulse",style:{width:m.width||300,height:m.height||200,maxHeight:300}}),e.createElement("img",{ref:p,src:t,alt:a,onError:()=>{d(!1),l(!0)},onLoad:()=>{if(d(!0),p.current){const{naturalWidth:e,naturalHeight:t}=p.current,a=300,n=e/t,r=Math.min(a,t);u({width:r*n,height:r})}d(!1)},className:"max-h-[300px] w-auto object-contain cursor-zoom-in hover:opacity-90 transition-opacity "+(c?"opacity-0 absolute":"opacity-100 relative")}),!c&&e.createElement("div",{className:"absolute bottom-2 right-2 opacity-0 group-hover:opacity-100 transition-opacity"},e.createElement("div",{className:"bg-black/50 text-white p-1.5 rounded-lg"},e.createElement(O,{size:16}))))),a&&!c&&e.createElement("div",{className:"relative mt-1"},e.createElement("figcaption",{className:"text-sm text-gray-600 dark:text-gray-400 text-center group cursor-default",onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1)},e.createElement("div",{className:"line-clamp-2 hover:text-gray-700 dark:hover:text-gray-300"},a)),s&&e.createElement("div",{className:"absolute bottom-full left-0 right-0 mb-1 p-2 bg-white dark:bg-gray-800 rounded-lg shadow-lg border border-gray-200 dark:border-gray-700 text-sm text-gray-600 dark:text-gray-400 z-10"},a)),e.createElement(g,null,n&&e.createElement(e.Fragment,null,e.createElement(h.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/80 z-50",onClick:f}),e.createElement(h.div,{initial:{scale:.5,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.5,opacity:0},className:"fixed inset-0 z-50 flex flex-col items-center justify-center cursor-zoom-out gap-4 p-4 sm:p-8",onClick:f},e.createElement("div",{className:"max-w-[95vw] sm:max-w-[90vw] max-h-[80vh]"},e.createElement("img",{src:t,alt:a,className:"w-full h-full object-contain"})),a&&e.createElement("div",{className:"max-w-[95vw] sm:max-w-[90vw] text-white text-center text-sm"},a)))))},jt=a((({message:e,isStreaming:a,redirectRules:r=[]})=>{const[i,l]=n(e.content);s((()=>{var t;const a=ze(e.content);a.uncertain&&a.language&&(null===(t=e.uncertaintyFallbackText)||void 0===t?void 0:t[a.language])?l(e.uncertaintyFallbackText[a.language]):l(e.content)}),[e.content,e.uncertaintyFallbackText,a]);const c=i.replace(/^\n+|(\n+|\\)+$/g,"");const d=o((()=>r),[r]),m=o((()=>e=>{if(!e)return e;try{const t=new URL(e),a=t.pathname;for(const e of d){const n=se(e.source,{decode:decodeURIComponent})(a);if(n){const a=oe(e.destination,{encode:encodeURIComponent})(n.params);return t.pathname=a,t.toString()}}return e}catch(t){return console.error("Error rewriting URL:",t),e}}),[d]);return t.createElement(Nt,{className:"dark:prose-invert prose flex-1",remarkPlugins:[re],rehypePlugins:[ne],isStreaming:a,components:{p:({children:e})=>t.createElement("div",{className:"ptag"},e),code:e=>{var{inline:a,className:n,children:r}=e,s=Oe(e,["inline","className","children"]);const o=/language-(\w+)/.exec(n||""),i=o&&o[1];return a||"mermaid"!==i&&"mermaidjs"!==i?!a&&i?t.createElement(ut,Object.assign({key:Math.random(),language:i,value:String(r).replace(/\n$/,"")},s)):t.createElement("code",Object.assign({className:`text-red-400 bg-slate-200 border-slate-300 border rounded p-0.5 ${n}`.trim()},s),r):t.createElement(Ct,{content:String(r).replace(/\n$/,"")})},marker:({children:e})=>t.createElement("div",{className:"my-2"},t.createElement("span",{className:"highlight"},e)),table:({children:e})=>t.createElement("table",{className:"border-collapse border border-black px-3 py-1 dark:border-white"},e),th:({children:e})=>t.createElement("th",{className:"break-words border border-black bg-gray-500 px-3 py-1 text-white dark:border-white"},e),td:({children:e})=>t.createElement("td",{className:"break-words border border-black px-3 py-1 dark:border-white"},e),a(e){var{children:n}=e,r=Oe(e,["children"]);let s=r.href||"";const o="string"==typeof n?n:"";if(!s&&o)try{new URL(o),s=o}catch(e){}const i=o===s,l=s?m(s):s,c=Object.assign(Object.assign({},r),{href:l});if(l&&!a){const e=wt({attrs:{href:l}});if(t.isValidElement(e))return e}const d=i?l:n;return t.createElement("a",Object.assign({className:"link text-link",target:"_blank",rel:"noopener noreferrer"},c),d)},pre:({children:e})=>t.createElement(t.Fragment,null,e),img({src:e,alt:n}){if(!e||a)return null;const r=wt({attrs:{href:null!=e?e:""}});return t.isValidElement(r)?r:t.createElement(It,{src:e,alt:n,key:e})},li:e=>{var{children:a}=e,n=Oe(e,["children"]);return t.createElement("li",Object.assign({},n),a)},ul:({children:e})=>t.createElement("ul",{className:"ml-4 my-4 list-outside space-y-4 list-disc"},e),ol:({children:e})=>t.createElement("ol",{className:"ml-4 my-4 list-outside space-y-4 list-decimal"},e),strong:e=>{var{children:a}=e,n=Oe(e,["children"]);return t.createElement("span",Object.assign({className:"font-semibold"},n),a)},h1:e=>{var{children:a}=e,n=Oe(e,["children"]);return t.createElement("h1",Object.assign({className:"text-2xl font-bold"},n),a)},h2:e=>{var{children:a}=e,n=Oe(e,["children"]);return t.createElement("h2",Object.assign({className:"text-xl font-bold"},n),a)},h3:e=>{var{children:a}=e,n=Oe(e,["children"]);return t.createElement("h3",Object.assign({className:"text-lg font-bold"},n),a)},h4:e=>{var{children:a}=e,n=Oe(e,["children"]);return t.createElement("h4",Object.assign({className:"text-base font-bold"},n),a)},h5:e=>{var{children:a}=e,n=Oe(e,["children"]);return t.createElement("h5",Object.assign({className:"text-base font-semibold"},n),a)},h6:e=>{var{children:a}=e,n=Oe(e,["children"]);return t.createElement("h6",Object.assign({className:"text-sm font-semibold"},n),a)}}},c)}));function St({block:e,redirectRules:a,state:n}){if(!e.text||""===e.text.trim())return t.createElement("div",{className:"w-full"},t.createElement("div",{className:"space-y-4"},t.createElement("div",{className:"space-y-3"},t.createElement("div",{className:"h-4 rounded w-3/4 shimmer"}),t.createElement("div",{className:"h-4 rounded w-full shimmer"}),t.createElement("div",{className:"h-4 rounded w-5/6 shimmer"}))));const{text:r}=e;return t.createElement("div",{className:"w-full"},t.createElement("div",{className:"prose prose-sm max-w-none text-foreground"},t.createElement(jt,{message:{content:r},redirectRules:a,isStreaming:"streaming"===n})))}function Ot({block:e,redirectRules:a,state:n}){switch(e.type){case"markdown-text":return t.createElement(St,{block:e,redirectRules:a,state:n});case"action-buttons":return t.createElement(ct,{block:e});case"action-input-form":return t.createElement(lt,{block:e});default:return null}}jt.displayName="FormattedMessage";const Ft=({text:e=""}={})=>({id:me(),type:"markdown-text",text:e}),Rt=e=>"markdown-text"===e.type,zt=e=>"action-input-form"===e.type,At=i(((e,a)=>{var{iconName:n}=e,r=Oe(e,["iconName"]);const s=l((()=>import("@phosphor-icons/react").then((e=>({default:e[n]})))));return t.createElement(c,{fallback:t.createElement(t.Fragment,null)},t.createElement(s,Object.assign({},r,{ref:a})))}));At.displayName="PhosphorIcon";const Tt=a(At),Lt=h(Me),_t=({nextBestActions:e,onActionClick:a})=>e.length?t.createElement(h.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},className:"w-full"},t.createElement("div",{className:"rounded-lg overflow-hidden bg-card border divide-y divide-dark-300"},e.map(((e,n)=>{const r=()=>{a(e)},s="w-full h-12 py-2 px-4 inline-flex items-center justify-center gap-2 whitespace-nowrap text-base font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-6 [&_svg]:shrink-0 hover:bg-accent hover:text-accent-foreground",o=`${e.label}-${n}`.replace(/\s+/g,"-");switch(e.type){case"email":return t.createElement(h.a,{key:o,initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.1*n},href:`mailto:${e.value}`,target:"_blank",rel:"noopener noreferrer",className:s,onClick:()=>r()},e.icon&&t.createElement(Tt,{iconName:e.icon}),t.createElement("span",{className:"flex-grow"},e.label),t.createElement(Tt,{iconName:"ArrowSquareOut"}));case"link":return t.createElement(h.a,{key:o,initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.1*n},href:e.value,target:"_blank",rel:"noopener noreferrer",className:s,onClick:()=>r()},e.icon&&t.createElement(Tt,{iconName:e.icon}),t.createElement("span",{className:"flex-grow"},e.label),t.createElement(Tt,{iconName:"ArrowSquareOut"}));case"phone":return t.createElement(h.a,{key:o,initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.1*n},href:`tel:${e.value}`,target:"_blank",rel:"noopener noreferrer",className:s,onClick:()=>r()},e.icon&&t.createElement(Tt,{iconName:e.icon}),t.createElement("span",{className:"flex-grow"},e.label),t.createElement(Tt,{iconName:"ArrowSquareOut"}));default:return t.createElement(d,{key:o},t.createElement(Lt,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.1*n},className:"w-full text-left h-12 rounded-none [&_svg]:pointer-events-none [&_svg]:size-6 [&_svg]:shrink-0 hover:bg-accent hover:text-accent-foreground text-base font-medium",variant:"ghost",onClick:()=>r()},t.createElement(Tt,{iconName:"ArrowCircleRight"}),t.createElement("span",{className:"flex-grow"},e.label),t.createElement(Tt,{iconName:"ArrowSquareOut"})))}})))):null;var Dt,Qt;!function(e){e.CallPhone="call_phone",e.OpenUrl="open_url",e.SendEmail="send_email",e.RunCallback="run_callback"}(Dt||(Dt={})),function(e){e.Link="link",e.Email="email",e.Phone="phone",e.Callback="callback",e.Function="function"}(Qt||(Qt={}));const qt=({actions:e,nextBestActions:a,isLastAnswer:r,handleActionClick:s,searchQueryId:o,question:i,answer:l})=>{const c=e&&e.length>0,d=a&&r&&a.length>0,[m]=n(c||d);if(!m)return null;let u=[];if(c&&(u=e.map((e=>{const t=(e=>({[Dt.CallPhone]:{type:Qt.Phone,icon:"Phone",getValue:e=>{var t,a;return(null===(a=null===(t=e.action)||void 0===t?void 0:t.options)||void 0===a?void 0:a.phoneNumber)||e.id},getLabel:e=>{var t,a;return(null===(a=null===(t=e.action)||void 0===t?void 0:t.options)||void 0===a?void 0:a.title)||e.type}},[Dt.SendEmail]:{type:Qt.Email,icon:"EnvelopeSimple",getValue:e=>{var t,a;return(null===(a=null===(t=e.action)||void 0===t?void 0:t.options)||void 0===a?void 0:a.to)||e.id},getLabel:e=>{var t,a;return(null===(a=null===(t=e.action)||void 0===t?void 0:t.options)||void 0===a?void 0:a.title)||e.type}},[Dt.OpenUrl]:{type:Qt.Link,icon:"Link",getValue:e=>{var t,a;return(null===(a=null===(t=e.action)||void 0===t?void 0:t.options)||void 0===a?void 0:a.url)||e.id},getLabel:e=>{var t,a;return(null===(a=null===(t=e.action)||void 0===t?void 0:t.options)||void 0===a?void 0:a.title)||e.type}}}[e.type]||{type:Qt.Link,icon:"Link",getValue:e=>{var t,a;return(null===(a=null===(t=e.action)||void 0===t?void 0:t.options)||void 0===a?void 0:a.url)||e.id},getLabel:e=>{var t,a;return(null===(a=null===(t=e.action)||void 0===t?void 0:t.options)||void 0===a?void 0:a.title)||e.type}}))(e);return{id:e.id,label:t.getLabel(e),type:t.type,icon:t.icon,value:t.getValue(e)}}))),d){const e=a.filter((e=>!u.some((t=>t.type===e.type))));u=u.concat(e)}return t.createElement("div",{className:"p-4"},t.createElement(_t,{nextBestActions:u,onActionClick:e=>{e&&(null==s||s({action:e,searchQueryId:o||"",query:i,answer:l}))}}))},Bt=ue.Root,Pt=ue.CollapsibleTrigger,$t=e=>{var{children:a}=e,n=Oe(e,["children"]);return t.createElement(ue.CollapsibleContent,Object.assign({},n),t.createElement("style",null,'\n .CollapsibleContent[data-state="open"] {\n animation: slideDown 200ms ease-in-out;\n }\n .CollapsibleContent[data-state="closed"] {\n animation: slideUp 200ms ease-in-out;\n }\n\n @keyframes slideDown {\n from {\n height: 0;\n }\n to {\n height: var(--radix-collapsible-content-height);\n }\n }\n\n @keyframes slideUp {\n from {\n height: var(--radix-collapsible-content-height);\n }\n to {\n height: 0;\n }\n }\n '),a)};function Ut(t){var{className:a}=t,n=Oe(t,["className"]);return e.createElement("div",Object.assign({"data-slot":"card",className:Re("bg-card text-card-foreground flex flex-col gap-6 rounded-lg border py-6 shadow-none",a)},n))}function Mt(t){var{className:a}=t,n=Oe(t,["className"]);return e.createElement("div",Object.assign({"data-slot":"card-header",className:Re("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",a)},n))}function Vt(t){var{className:a}=t,n=Oe(t,["className"]);return e.createElement("div",Object.assign({"data-slot":"card-title",className:Re("leading-none font-semibold",a)},n))}function Wt(t){var{className:a}=t,n=Oe(t,["className"]);return e.createElement("div",Object.assign({"data-slot":"card-description",className:Re("text-muted-foreground text-sm",a)},n))}function Zt(t){var{className:a}=t,n=Oe(t,["className"]);return e.createElement("div",Object.assign({"data-slot":"card-action",className:Re("col-start-2 row-span-2 row-start-1 self-start justify-self-end",a)},n))}function Ht(t){var{className:a}=t,n=Oe(t,["className"]);return e.createElement("div",Object.assign({"data-slot":"card-content",className:Re("px-6",a)},n))}function Kt(t){var{className:a}=t,n=Oe(t,["className"]);return e.createElement("div",Object.assign({"data-slot":"card-footer",className:Re("flex items-center px-6 [.border-t]:pt-6",a)},n))}function Yt({open:e,onSubmit:a,thankYouText:o="Thank you for your feedback!",placeholder:i="What could we have done better? Your feedback is valuable to us...",maxLength:l=500}){const[c,d]=n(""),[m,u]=n(!1),p=r(null);s((()=>{e&&(d(""),u(!1),setTimeout((()=>{var e;return null===(e=p.current)||void 0===e?void 0:e.focus()}),0))}),[e]);const f=()=>{c.trim()&&(null==a||a(c),u(!0))};return t.createElement(g,null,e&&!m&&t.createElement(h.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},exit:{opacity:0,y:12},transition:{duration:.25,ease:[.4,0,.2,1]}},t.createElement(Ut,{className:"gap-2 p-3"},t.createElement(Ht,{className:"px-0"},t.createElement(Ke,{ref:p,placeholder:i,className:"w-full border-none shadow-none focus-visible:ring-0 p-0",maxLength:l,value:c,rows:4,onChange:e=>d(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),f())}}),t.createElement("div",{className:"flex justify-end mt-1"},t.createElement("span",{className:"text-xs text-muted-foreground select-none"},l-c.length," characters remaining"))),t.createElement(Kt,{className:"p-0 gap-2 flex-row-reverse"},t.createElement(Me,{size:"icon",onClick:f,disabled:!c.length,"aria-label":"Submit feedback"},t.createElement(F,{"aria-hidden":"true",weight:"bold"})),t.createElement(Me,{size:"icon",variant:"ghost",onClick:()=>{var e;d(""),null===(e=p.current)||void 0===e||e.focus()},"aria-label":"Cancel feedback"},t.createElement(R,{"aria-hidden":"true",weight:"bold"}))))),e&&m&&t.createElement(h.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},exit:{opacity:0,y:12},transition:{duration:.25,ease:[.4,0,.2,1]}},t.createElement(Ut,{className:"gap-2 p-3"},t.createElement(Ht,{className:"px-0"},t.createElement("p",null,o)))))}function Gt({feedback:e,onFeedback:a,textConfig:o={},disabled:i=!1,feedbackReasonLength:l=500,feedbackReasonPlaceholder:c="What could we have done better? Your feedback is valuable to us...",onFeedbackReasonSubmit:d,feedbackReasonThankYouText:m="Thank you for your feedback!"}){const[u,p]=n(!1),[f,v]=n(!1),b=r(null);s((()=>{f&&b.current&&b.current.focus()}),[f]);const y=e=>{a&&("accept"===e&&(p(!0),setTimeout((()=>p(!1)),2e3)),a(e),"reject"===e&&v(!0))};return t.createElement("div",{className:"flex flex-col gap-2"},t.createElement("div",{className:"flex justify-end gap-2","data-name":"Feedback"},t.createElement(Ae,null,t.createElement(Te,null,t.createElement(Le,{asChild:!0},t.createElement("div",{className:"relative"},t.createElement(g,null,u&&t.createElement(t.Fragment,null,Array.from({length:8}).map(((e,a)=>t.createElement(h.div,{key:a,className:"absolute top-1/2 left-1/2 origin-center",initial:{opacity:0,scale:.3,x:0,y:0},animate:{opacity:[0,1,1,0],scale:[.3,1,1,0],x:[0,30*Math.cos(a*(Math.PI/4))],y:[0,30*Math.sin(a*(Math.PI/4))],rotate:[0,a%2?45:-45]},transition:{duration:1.2,ease:[.4,0,.2,1],times:[0,.3,.7,1],delay:.1*a}},t.createElement(z,{className:"size-4 text-rose-500",style:{filter:"drop-shadow(0 0 3px rgba(255, 75, 110, 0.8))",strokeWidth:2.5}})))),t.createElement(h.div,{className:"absolute inset-0 rounded-full bg-primary",initial:{opacity:0,scale:.8},animate:{opacity:[0,.15,.15,0],scale:[.8,1.8,1.8,2]},transition:{duration:1.2,ease:"easeOut",times:[0,.3,.7,1]}}))),t.createElement(Me,{variant:"ghost",size:"sm",className:"rounded-md size-8 flex items-center justify-center transition-all duration-200 transform hover:scale-105 active:scale-95 "+("accept"===e?"bg-green-100 text-green-600 hover:bg-green-200":"text-dark-500"),onClick:()=>{y("accept"),v(!1)},disabled:i},t.createElement(h.div,{initial:{scale:1},animate:{scale:"accept"===e?[1,1.2,1]:1},transition:{duration:.3}},t.createElement(A,{weight:"bold"}))))),t.createElement(_e,null,t.createElement("p",null,o.positiveAnswerText||"Helpful")))),t.createElement(Ae,null,t.createElement(Te,null,t.createElement(Le,{asChild:!0},t.createElement(Me,{variant:"ghost",size:"sm",className:"rounded-md size-8 flex items-center justify-center transition-all duration-200 transform hover:scale-105 active:scale-95 "+("reject"===e?"bg-red-100 text-red-600 hover:bg-red-200":"text-dark-500"),onClick:()=>y("reject"),disabled:i},t.createElement(h.div,{initial:{scale:1},animate:{scale:"reject"===e?[1,1.2,1]:1},transition:{duration:.3}},t.createElement(T,{weight:"bold"})))),t.createElement(_e,null,t.createElement("p",null,o.negativeAnswerText||"Not helpful"))))),t.createElement(g,null,f&&t.createElement(Yt,{open:f,onSubmit:d,thankYouText:m,placeholder:c,maxLength:l})))}const Jt="answers/set_answers",Xt="answers/clear_all",ea="answers/create_empty_answer",ta="answers/append_block",aa="answers/append_stream_chunk",na="answers/update_search_results",ra="answers/set_follow_up_questions",sa="answers/finish_streaming",oa="answers/set_error_state",ia="answers/set_user_feedback",la="answers/clear_user_feedback",ca="answers/mark_as_uncertain",da="answers/request_action_inputs",ma="answers/invoke_action",ua="answers/add_action_buttons",pa=()=>({type:Xt}),fa=({text:e,index:t})=>({type:aa,payload:{text:e,index:t}}),ga=({error:e,index:t})=>({type:oa,payload:{error:e,index:t}}),ha=({index:e}={})=>({type:sa,payload:{index:e}}),va=({uncertaintyText:e,index:t})=>({type:ca,payload:{uncertaintyText:e,index:t}}),ba=({searchIntentId:e,actionId:t,inputs:a,schema:n,initialValues:r,onSubmit:s,index:o})=>({type:da,payload:{searchIntentId:e,actionId:t,inputs:a,schema:n,initialValues:r,onSubmit:s,index:o}}),ya=({searchIntentId:e,actions:t,index:a})=>({type:ua,payload:{searchIntentId:e,actions:t,index:a}}),xa=(e,t)=>e.at(null!=t?t:-1),Ea=e=>e.blocks.at(-1),wa=[],Na=(e,t)=>{var a;switch(t.type){case Jt:return e.length=0,void e.push(...t.payload.answers);case Xt:return void(e.length=0);case ea:return void e.push({id:"pending-"+me(),state:"fetching-search-results",question:t.payload.query,blocks:[Ft()],isUncertain:!1});case na:{const a=xa(e,t.payload.index);return void(a&&(a.searchQueryId=t.payload.searchQueryId,a.searchResults=t.payload.results,a.state="fetching-stream"))}case aa:{const a=xa(e,t.payload.index),n=a&&Ea(a);return void(a&&!a.isUncertain&&n&&Rt(n)&&(a.state="streaming",n.text+=t.payload.text))}case oa:{const n=xa(e,null!==(a=t.payload.index)&&void 0!==a?a:-1),r=n&&Ea(n);return void(r&&Rt(r)&&(r.text+=t.payload.error))}case ta:{const a=xa(e,t.payload.index);return void(a&&a.blocks.push(t.payload.block))}case sa:{const a=xa(e,t.payload.index);return void(a&&"streaming"===a.state&&(a.state="completed"))}case ca:{const a=xa(e,t.payload.index),n=a&&Ea(a);return void(a&&n&&Rt(n)&&(a.isUncertain=!0,n.text=t.payload.uncertaintyText))}case ia:{const a=xa(e,t.payload.index);return void(a&&(a.feedback=t.payload.feedback))}case la:{const a=xa(e,t.payload.index);return void(a&&delete a.feedback)}case da:{const a=xa(e,t.payload.index);return void(a&&(a.state="getting-action-inputs",a.searchIntentId=t.payload.searchIntentId,a.blocks.push((({actionId:e,initialValues:t,onSubmit:a,inputs:n,schema:r})=>({id:me(),type:"action-input-form",state:"ready",actionId:e,initialValues:t,onSubmit:a,inputs:n,schema:r}))({actionId:t.payload.actionId,schema:t.payload.schema,initialValues:t.payload.initialValues,onSubmit:t.payload.onSubmit,inputs:t.payload.inputs}))))}case ua:{const a=xa(e,t.payload.index);return void(a&&(a.searchIntentId=t.payload.searchIntentId,a.actions=t.payload.actions.map((e=>Object.assign(Object.assign({},e),{type:e.type}))),a.blocks.push({id:me(),type:"action-buttons"})))}case ma:{const a=xa(e,t.payload.index),n=null==a?void 0:a.blocks.findIndex(zt);return void(a&&n&&(a.state="fetching-stream",a.blocks.splice(n,1,Ft())))}case ra:{const a=xa(e,t.payload.index);return void(a&&(a.followUpQuestions=t.payload.questions))}default:throw new Error(`Answer List Reducer: unknown action type '${t.type}'`)}},ka="conversation",Ca=u(void 0),Ia=({children:e,searchPath:a})=>{const[r,s]=n(""),[i,l]=n(""),[c,d]=n(""),[u,p]=n(!1),[f,g]=n(!1),[h,v]=pe(Na,wa),[b,y]=n(0),[x,E]=n(!1),[w,N]=n(""),[k,C]=n(!1),{conversationId:I,setConversationId:j,clearConversationId:S}=(e=>{const t=fe(ka),[a,r]=n(null!=t?t:void 0);return{conversationId:a,setConversationId:m((t=>{const a=new URL(window.location.href);e&&(a.pathname=e),t?a.searchParams.set(ka,t):a.searchParams.delete(ka);const n=a.toString();window.history.replaceState(Object.assign(Object.assign({},window.history.state),{newUrl:n,url:n}),"",n),r(t)}),[e]),clearConversationId:m((()=>{const e=new URL(window.location.href);e.searchParams.delete(ka);const t=e.toString();window.history.replaceState(Object.assign(Object.assign({},window.history.state),{newUrl:t,url:t}),"",t),r(void 0)}),[])}})(a),O=o((()=>({query:r,setQuery:s,queryId:i,setQueryId:l,followUpQuery:c,setFollowUpQuery:d,isSearching:u,setIsSearching:p,showResults:f,setShowResults:g,answers:h,answerListDispatch:v,activeAnswerIndex:b,setActiveAnswerIndex:y,conversationId:I,setConversationId:j,clearConversationId:S,isLoadingConversation:x,setIsLoadingConversation:E,loadError:w,setLoadError:N,showMobileCloseWidgetButton:k,setShowMobileCloseWidgetButton:C})),[r,i,c,u,f,h,v,b,I,j,S,x,w,k]);return t.createElement(Ca.Provider,{value:O},e)},ja=()=>{const e=p(Ca);if(!e)throw new Error("useChatSearch must be used within a ChatSearchProvider");return e},Sa=()=>{const{showResults:e,answers:t}=ja();return Boolean(e||t.length>0)},Oa={maxRetries:3,baseDelay:1e3,shouldRetry:e=>{if(e instanceof TypeError)return!0;const t=e;return!!t.status&&t.status>=500}};let Fa=Object.assign({},Oa),Ra=Object.assign({},{emptyResponse:"I apologize, but I couldn't generate an answer at this time. Please try again.",errorResponse:"I encountered an error while processing your request. Please try again."});function za(e){return Fe(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,e)))}))}function Aa(e,t={}){return Fe(this,void 0,void 0,(function*(){const{retry:a={},headers:n={},body:r,isStream:s=!1,fallback:o={}}=t,i=Oe(t,["retry","headers","body","isStream","fallback"]),l=Object.assign(Object.assign({},Fa),a),c=Object.assign(Object.assign({},Ra),o);let d=1;for(;;)try{const t=yield fetch(e,Object.assign(Object.assign({},i),{headers:Object.assign({"Content-Type":"application/json"},n),body:r?JSON.stringify(r):void 0}));if(t.ok){if(s){if(!t.ok)throw new Error("Failed to fetch answer");return t}const e=yield t.json();if(!e||"object"==typeof e&&0===Object.keys(e).length){const e=new Error(c.emptyResponse);throw e.name="EmptyResponseError",e}return e}const a=new Error(c.errorResponse);throw a.status=t.status,a.data=yield t.json().catch((()=>{})),a}catch(e){const t=yield Promise.resolve(l.shouldRetry(e,d));if(d>=l.maxRetries||!t){if(e instanceof Error&&"EmptyResponseError"===e.name)return{message:e.message};throw e}console.warn(`Request failed, attempt ${d} of ${l.maxRetries}. Retrying...`);const a=.3*Math.random()+.85;yield za(l.baseDelay*Math.pow(2,d-1)*a),d++}}))}const Ta={maxRetries:3,baseDelay:300,shouldRetry:e=>{if(e instanceof TypeError)return!0;const t=e;return!!t.status&&(t.status>=500||429===t.status)}},La={maxRetries:3,baseDelay:500,shouldRetry:e=>{if(e instanceof TypeError)return!0;const t=e;return!!t.status&&t.status>=500}};function _a({endpoint:e,headers:t,body:a}){return Fe(this,void 0,void 0,(function*(){return Aa(e,{method:"POST",headers:t,retry:La,isStream:!0,fallback:{emptyResponse:"I apologize, but I couldn't generate an answer for your query. Please try rephrasing your question.",errorResponse:"I encountered an issue while generating the answer. Please try again in a moment."},body:a})}))}const Da=({loadConversationEndpoint:e,headers:t,mergedTextConfig:a})=>{const{setIsLoadingConversation:n,setShowResults:r,answerListDispatch:s,conversationId:o,setConversationId:i,clearConversationId:l,setLoadError:c}=ja(),d=m((o=>{if(!e)return;n(!0),n(!0),r(!0);const i=new AbortController;return function({endpoint:e,conversationId:t,headers:a,signal:n}){return Fe(this,void 0,void 0,(function*(){return{data:(yield Aa(e,{method:"POST",headers:a,body:{conversationId:t},signal:n})).data}}))}({endpoint:e,conversationId:o,headers:t,signal:i.signal}).then((({data:e})=>{const t=e.map((e=>({id:e.searchQueryId,state:"completed",question:e.question,isUncertain:ze(e.answer).uncertain,searchQueryId:e.searchQueryId,searchIntentId:e.searchIntentId,blocks:e.answer.split("---").map((e=>Ft({text:e.trim()})))})));s((({answers:e})=>({type:Jt,payload:{answers:e}}))({answers:t})),r(!0)})).catch((e=>{console.error("Error loading conversation:",e),s(pa()),l(),r(!1),c(a.errorText||"An error occurred")})).finally((()=>{n(!1)})),()=>i.abort("Conversation loader aborted")}),[e,n,r,t,s,i,c,a.errorText]);return ge((()=>{let e;return o&&(console.log("loading conversation",o),e=d(o)),()=>null==e?void 0:e()})),{loadConversationById:d}},Qa=(e,t)=>{const[a,r]=n(`rgb(var(${t}))`),o=(()=>{const[e,t]=n((()=>document.documentElement.classList.contains("dark")));return s((()=>{const e=new MutationObserver((()=>{t(document.documentElement.classList.contains("dark"))}));return e.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>e.disconnect()}),[]),e})();return s((()=>{const a=getComputedStyle(document.documentElement).getPropertyValue(e).trim().match(/^(\d+)\s+(\d+)\s+(\d+)$/);if(a){const n=function(e){const[t,a,n]=e.split(",").map(Number),[r,s,o]=[t,a,n].map((e=>(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)));return.2126*r+.7152*s+.0722*o}(a.slice(1).join(","));r(n<=.5?o?"rgb(var(--bfc-ring))":`rgb(var(${e}))`:o?`rgb(var(${e}))`:`rgb(var(${t}))`)}}),[e,t,o]),a},qa=e=>{var{loading:a,className:n}=e,r=Oe(e,["loading","className"]);const s=Qa("--bfc-primary","--bfc-border");return t.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:Re("min-w-5",n)},r),t.createElement("path",{className:a?"animate-spin":"",d:"M7.54672 16.0031L2.66234 14.2031C2.51881 14.1498 2.39502 14.0539 2.3076 13.9282C2.22019 13.8025 2.17333 13.6531 2.17333 13.5C2.17333 13.3469 2.22019 13.1975 2.3076 13.0718C2.39502 12.9461 2.51881 12.8501 2.66234 12.7969L7.54672 10.9969C7.64981 10.9589 7.74344 10.899 7.82113 10.8213C7.89882 10.7436 7.95873 10.65 7.99672 10.5469L9.79672 5.66249C9.84999 5.51896 9.94592 5.39517 10.0716 5.30775C10.1973 5.22033 10.3467 5.17348 10.4998 5.17348C10.6529 5.17348 10.8024 5.22033 10.9281 5.30775C11.0538 5.39517 11.1497 5.51896 11.203 5.66249L13.003 10.5469C13.041 10.65 13.1009 10.7436 13.1786 10.8213C13.2562 10.899 13.3499 10.9589 13.453 10.9969L18.3373 12.7969C18.4809 12.8501 18.6047 12.9461 18.6921 13.0718C18.7795 13.1975 18.8264 13.3469 18.8264 13.5C18.8264 13.6531 18.7795 13.8025 18.6921 13.9282C18.6047 14.0539 18.4809 14.1498 18.3373 14.2031L13.453 16.0031C13.3499 16.0411 13.2562 16.101 13.1786 16.1787C13.1009 16.2564 13.041 16.35 13.003 16.4531L11.203 21.3375C11.1497 21.481 11.0538 21.6048 10.9281 21.6922C10.8024 21.7796 10.6529 21.8265 10.4998 21.8265C10.3467 21.8265 10.1973 21.7796 10.0716 21.6922C9.94592 21.6048 9.84999 21.481 9.79672 21.3375L7.99672 16.4531C7.95873 16.35 7.89882 16.2564 7.82113 16.1787C7.74344 16.101 7.64981 16.0411 7.54672 16.0031Z",stroke:s,strokeWidth:"1.5",strokeLinecap:"round",fill:"rgb(var(--bfc-primary))",strokeLinejoin:"round"}),t.createElement("path",{d:"M18.7497 3.75L14.2497 3.75",stroke:"rgb(var(--bfc-primary))",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M16.4999 6V1.5",stroke:"rgb(var(--bfc-primary))",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M22.4999 8.25001H19.4999",stroke:"rgb(var(--bfc-primary))",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M20.9998 9.75002V6.75002",stroke:"rgb(var(--bfc-primary))",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};function Ba({index:e,blocks:a=[],question:r,searchResults:s,state:o="completed",searchQueryId:i,feedback:l,onFeedback:c,disableFeedback:d=!1,textConfig:m={},redirectRules:u,actions:p,handleActionClick:f,nextBestActions:g,isLastAnswer:h,onFeedbackReasonSubmit:v}){const[b,y]=n(!1),[x,E]=n(!1),k=a.filter(Rt).map((e=>e.text)).join("\n\n---\n\n"),C=("fetching-search-results"===o||"fetching-stream"===o)&&1===a.length,I="fetching-search-results"===o,j="getting-action-inputs"===o||"completed"===o,S="completed"===o,O=()=>Fe(this,void 0,void 0,(function*(){try{yield navigator.clipboard.writeText(k)}catch(e){console.warn("Clipboard API failed, using fallback:",e);const t=document.createElement("textarea");t.value=k,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.focus(),t.select();try{document.execCommand("copy")}catch(e){console.error("Fallback: Oops, unable to copy",e)}document.body.removeChild(t)}y(!0),setTimeout((()=>y(!1)),2e3)}));return t.createElement("div",{className:"rounded-lg relative mx-auto overflow-hidden bg-card border border-primary mb-4","data-name":"SearchResults","data-index":e},t.createElement("div",{className:"p-4 pb-0"},t.createElement("div",{className:"flex items-start justify-between gap-2 min-h-9"},t.createElement("div",{className:"flex gap-1"},t.createElement(qa,{loading:!j}),t.createElement("h2",{className:"leading-normal font-semibold m-0 text-foreground self-center"},r)),S&&t.createElement(Ae,null,t.createElement(Te,null,t.createElement(Le,{asChild:!0},t.createElement(Me,{variant:"ghost",size:"icon",onClick:()=>{O()},className:"-mt-1 flex-shrink-0"},b?t.createElement(N,{className:"text-feedback-positive",weight:"bold"}):t.createElement(L,{className:"text-secondary-foreground",weight:"bold"}))),t.createElement(_e,null,t.createElement("p",null,b?"Copied!":"Copy")))))),C&&t.createElement("div",{className:"space-y-4 mt-2 px-4"},t.createElement("div",{className:"flex items-center gap-2"},t.createElement("div",{className:"size-5 rounded-full bg-primary/30"}),t.createElement("div",{className:"flex items-center gap-2 text-sm text-foreground"},I?m.loadingSearchText:m.loadingAnswerText))),t.createElement("div",{className:"flex flex-col"},null==a?void 0:a.map(((e,a)=>t.createElement("div",{key:a,className:"p-4 border-b last:border-b-0 border-dashed"},t.createElement(Ot,{block:e,redirectRules:u,state:o}))))),S&&t.createElement(qt,{actions:p,nextBestActions:g,isLastAnswer:h,handleActionClick:f,searchQueryId:i||"",question:r,answer:k}),S&&!d&&t.createElement("div",{className:"p-4 pt-0"},t.createElement(Gt,{feedback:l,onFeedback:e=>{c&&i&&c(e)},textConfig:m,disabled:d,feedbackReasonLength:500,feedbackReasonPlaceholder:"What could we have done better? Your feedback is valuable to us...",onFeedbackReasonSubmit:v,feedbackReasonThankYouText:"Thank you for your feedback!"})),s&&s.length>0&&t.createElement("div",{className:"overflow-hidden bg-card border-dashed border-0 border-t-2"},t.createElement(Bt,{open:x,onOpenChange:E,className:"w-full"},t.createElement("div",null,t.createElement(Pt,{asChild:!0},t.createElement(Me,{variant:"secondary",className:"w-full justify-between h-11","data-name":"RelatedSources"},t.createElement("div",{className:"flex items-center gap-2"},t.createElement("span",{className:"font-medium truncate text-base"},"Sources")),t.createElement(w,{className:"size-4 flex-shrink-0 transition-transform duration-200 text-secondary-foreground "+(x?"rotate-180":""),weight:"bold"}),t.createElement("span",{className:"sr-only"},"Toggle")))),t.createElement($t,{className:"divide-y divide-gray-200 dark:divide-border overflow-hidden CollapsibleContent"},s.map((e=>t.createElement("a",{key:e.id,href:e.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 p-3 transition-colors duration-200 hover:bg-accent bg-card text-foreground"},t.createElement("span",{className:"flex-grow truncate"},e.title),t.createElement(_,{className:"size-4 flex-shrink-0 text-secondary-foreground",weight:"bold"}))))))))}const Pa=h(Me);function $a({questions:e,onQuestionClick:a}){return e.length?t.createElement(h.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},className:"w-full"},t.createElement("div",{className:"rounded-lg overflow-hidden bg-card border"},t.createElement("h3",{className:"px-4 py-3 border-b border-b-dark-300 font-bold"},"Follow-up questions"),e.map(((e,n)=>n<3?t.createElement(Pa,{key:n,initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.1*n},onClick:()=>a(e),variant:"ghost",className:"w-full text-left"},t.createElement("span",{className:"flex-grow"},e),t.createElement(D,{className:"",weight:"bold"})):null)))):null}function Ua({questions:e,activeIndex:a,onNavigate:r,offset:o}){const[i,l]=n(a);s((()=>{l(a)}),[a]);const c=e.length,d=(()=>{const e=[];let t=null;const n=a=>{null!==t&&a-t>1&&e.push("ellipsis"),e.push(a),t=a};n(0);for(let e=Math.max(1,a-2);e<=Math.min(c-2,a+2);e++)n(e);return c>1&&n(c-1),e})();return t.createElement("nav",{"aria-label":"Question timeline navigation",className:"fixed left-4 top-1/2 -translate-y-1/2 z-40 flex flex-col gap-3",style:Object.assign({},o?{left:`${o}px`}:{})},t.createElement(h.div,{className:"flex flex-col items-center space-y-3",role:"list",initial:!1,animate:{y:0},transition:{type:"spring",stiffness:300,damping:30}},t.createElement(g,null,d.map(((n,s)=>{if("ellipsis"===n)return t.createElement(h.div,{key:`ellipsis-${s}`,className:"h-8 flex items-center justify-center","aria-hidden":"true",initial:{opacity:0,y:i>a?-20:20},animate:{opacity:1,y:0},exit:{opacity:0,y:i>a?20:-20},transition:{duration:.2}},t.createElement(Q,{className:"size-4 text-foreground"}));const o=n,l=e[o];return t.createElement(h.div,{key:o,className:"relative group isolate",role:"listitem",initial:{opacity:0,y:i>a?-20:20},animate:{opacity:1,y:0},exit:{opacity:0,y:i>a?20:-20},transition:{duration:.2},layout:!0},t.createElement(Ae,{delayDuration:100},t.createElement(Te,null,t.createElement(Le,{asChild:!0},t.createElement("button",{onClick:()=>r(o),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||r(o)},className:Re("flex items-center justify-center size-8 rounded-full transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 hover:opacity-90 cursor-pointer ring-primary ",o===a?"bg-primary text-primary-foreground":"bg-stone-300 text-zinc-800"),"aria-label":`Navigate to question ${o+1}: ${l}`,"aria-current":o===a?"step":void 0},o+1)),t.createElement(_e,{side:"right",sideOffset:8,className:"max-w-[300px] bg-card text-card-foreground border-foreground/35"},t.createElement("p",{className:"break-words leading-relaxed"},l)))))})))))}function Ma({onClick:e}){return t.createElement(Me,{size:"icon",variant:"secondary",className:"fixed bottom-20 right-4 rounded-full transition-opacity duration-300 border-border shadow-md",onClick:e},t.createElement(q,{className:"size-5"}))}const Va=he.Root,Wa=he.Trigger,Za=he.Group,Ha=he.Portal,Ka=he.Sub,Ya=he.RadioGroup,Ga=e.forwardRef(((t,a)=>{var{className:n,inset:r,children:s}=t,o=Oe(t,["className","inset","children"]);return e.createElement(he.SubTrigger,Object.assign({ref:a,className:Re("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm !outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",r&&"pl-8",n)},o),s,e.createElement(ve,{className:"ml-auto"}))}));Ga.displayName=he.SubTrigger.displayName;const Ja=e.forwardRef(((t,a)=>{var{className:n}=t,r=Oe(t,["className"]);return e.createElement(he.SubContent,Object.assign({ref:a,className:Re("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n)},r))}));Ja.displayName=he.SubContent.displayName;const Xa=e.forwardRef(((t,a)=>{var{className:n,sideOffset:r=4}=t,s=Oe(t,["className","sideOffset"]);return e.createElement(he.Portal,null,e.createElement(he.Content,Object.assign({ref:a,sideOffset:r,className:Re("z-50 min-w-[8rem] overflow-hidden rounded-md border border-foreground bg-popover p-1 text-popover-foreground shadow-[4px_4px_0_0_#171717] dark:shadow-[4px_4px_0_0_#fff]","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n)},s)))}));Xa.displayName=he.Content.displayName;const en=e.forwardRef(((t,a)=>{var{className:n,inset:r}=t,s=Oe(t,["className","inset"]);return e.createElement(he.Item,Object.assign({ref:a,className:Re("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm !outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-5 [&>svg]:shrink-0",r&&"pl-8",n)},s))}));en.displayName=he.Item.displayName;const tn=e.forwardRef(((t,a)=>{var{className:n,children:r,checked:s}=t,o=Oe(t,["className","children","checked"]);return e.createElement(he.CheckboxItem,Object.assign({ref:a,className:Re("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm !outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),checked:s},o),e.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},e.createElement(he.ItemIndicator,null,e.createElement(be,{className:"h-4 w-4"}))),r)}));tn.displayName=he.CheckboxItem.displayName;const an=e.forwardRef(((t,a)=>{var{className:n,children:r}=t,s=Oe(t,["className","children"]);return e.createElement(he.RadioItem,Object.assign({ref:a,className:Re("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm !outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n)},s),e.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},e.createElement(he.ItemIndicator,null,e.createElement(ye,{className:"h-2 w-2 fill-current"}))),r)}));an.displayName=he.RadioItem.displayName;const nn=e.forwardRef(((t,a)=>{var{className:n,inset:r}=t,s=Oe(t,["className","inset"]);return e.createElement(he.Label,Object.assign({ref:a,className:Re("px-2 py-1.5 text-sm font-semibold",r&&"pl-8",n)},s))}));nn.displayName=he.Label.displayName;const rn=e.forwardRef(((t,a)=>{var{className:n}=t,r=Oe(t,["className"]);return e.createElement(he.Separator,Object.assign({ref:a,className:Re("-mx-1 my-1 h-px bg-muted",n)},r))}));rn.displayName=he.Separator.displayName;const sn=t=>{var{className:a}=t,n=Oe(t,["className"]);return e.createElement("span",Object.assign({className:Re("ml-auto text-xs tracking-widest opacity-60",a)},n))};sn.displayName="DropdownMenuShortcut";const on=t.forwardRef((({query:e,onQueryChange:a,onSearch:o,textConfig:i,collections:l=[],currentCollectionId:c,onCollectionChange:d,disableImageAttachment:m=!1,attachedImages:u=[],onImageUpload:p,onRemoveImage:f,isSearching:v=!1,autocompleteSuggestions:b=[],onAutocompleteSuggestionSelect:y},x)=>{var E;const N=r(null),[k,C]=n(!1);s((()=>{const e=e=>{e.target.closest(".suggestions-dropdown")||C(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[]),s((()=>{e.trim()&&C(!0)}),[e]);const j=k&&e.trim()&&b.length>0,S={hidden:{opacity:0,x:-4},visible:{opacity:1,x:0,transition:{duration:.2}}};return t.createElement("div",{className:"relative w-full","data-name":"PrimarySearch"},t.createElement("div",{className:Re("w-full overflow-hidden bg-background border border-border transition-all",j?"rounded-t-md":"rounded-md")},t.createElement("div",{className:"p-3 flex items-center bg-card"},t.createElement(B,{className:"h-5 w-5 mr-2 text-muted-foreground","aria-hidden":!0,role:"presentation"}),t.createElement("textarea",{ref:x,value:e,onChange:e=>{var t;a(e.target.value),(t=e.target).style.height="auto",t.style.height=`${t.scrollHeight}px`},onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),o())},onFocus:()=>C(!0),placeholder:i.searchPlaceholder,className:"\n w-full\n resize-none\n !outline-none\n text-base\n py-1\n min-h-9\n overflow-hidden\n border-none\n bg-transparent\n shadow-none\n placeholder:text-gray-400\n text-dark-900\n dark:text-neutral-200\n !ring-0\n ",rows:1}),v&&t.createElement("div",{className:"flex items-center justify-center ml-2"},t.createElement("div",{className:"animate-spin rounded-full size-4 border-2 border-t-transparent border-primary"}))),!m&&u.length>0&&t.createElement("div",{className:"flex gap-2 mt-3 overflow-x-auto pb-1 px-3"},u.map(((e,a)=>t.createElement("div",{key:a,className:"relative group rounded-lg overflow-hidden flex-shrink-0 size-20"},t.createElement("img",{src:e.preview,alt:`Attached ${a+1}`,className:"w-full h-full object-cover"}),t.createElement("button",{onClick:()=>null==f?void 0:f(a),className:"\n absolute\n top-1\n right-1\n rounded-full\n p-1\n opacity-0\n group-hover:opacity-100\n transition-opacity\n duration-200\n hover:bg-black/70\n bg-black/50\n "},t.createElement(R,{className:"size-3 text-white","aria-label":"Remove image"})))))),!j&&t.createElement("div",{className:"flex items-center justify-between px-3 py-2 border-t border-border"},t.createElement("div",{className:"flex gap-1"},l.length>0&&t.createElement(Va,null,t.createElement(Wa,{asChild:!0},t.createElement(Me,{variant:"ghost",size:"sm",className:"\n transition-all\n duration-200\n rounded-md\n h-8\n flex\n items-center\n gap-1\n hover:bg-opacity-80\n text-foreground\n "},(null===(E=l.find((e=>e.id===c)))||void 0===E?void 0:E.name)||i.allDocumentsText||"All documents",t.createElement(w,{className:"size-4 text-secondary-foreground"}))),t.createElement(Xa,{className:"max-w-48"},l.map((e=>t.createElement(en,{key:e.id,onClick:()=>null==d?void 0:d(e.id)},e.id===c?t.createElement(I,{className:"rounded-full text-primary-500 !size-5",weight:"fill"}):t.createElement(P,{className:"rounded-full !size-5 text-gray-300"}),t.createElement("span",{className:"text-sm truncate"},e.name)))))),!m&&t.createElement(t.Fragment,null,t.createElement("input",{type:"file",ref:N,accept:"image/*",multiple:!0,className:"hidden",onChange:p}),t.createElement(Me,{variant:"ghost",size:"sm",className:"rounded-md h-8 hover:bg-opacity-80 dark:text-neutral-200",onClick:()=>{var e;return null===(e=N.current)||void 0===e?void 0:e.click()},"aria-label":i.attachImageText},t.createElement($,{className:"size-4 text-secondary-foreground"}),t.createElement("span",{className:"hidden @sm:block"},i.attachImageText)))),t.createElement("div",{className:"flex items-center"},t.createElement(Me,{size:"sm",disabled:!e||v,"aria-disabled":!e||v,className:"rounded-md size-8 disabled:opacity-50 bg-primary",onClick:o},v?t.createElement("div",{className:"flex items-center",role:"status","aria-live":"polite"},t.createElement("div",{className:"animate-spin rounded-full size-4 border-2 border-t-transparent border-white","aria-hidden":"true"}),t.createElement("span",{className:"sr-only"},"Loading")):t.createElement(U,{className:"text-primary-foreground",size:16,weight:"bold","aria-label":"Submit question"}))))),t.createElement(g,{mode:"wait"},j&&t.createElement(h.div,{variants:{hidden:{opacity:0,scale:.95,transformOrigin:"top"},visible:{opacity:1,scale:1,transition:{type:"spring",stiffness:500,damping:30,mass:.5}},exit:{opacity:0,scale:.95,transition:{duration:.15,ease:"easeOut"}}},initial:"hidden",animate:"visible",exit:"exit",className:"\n suggestions-dropdown\n absolute\n left-0\n right-0\n z-50\n overflow-hidden\n bg-card\n border-border\n border-b border-l border-r border-solid rounded-b-md shadow-md -mt-px\n "},t.createElement(h.div,{className:"md:hidden",variants:S},e.trim()&&t.createElement("div",{role:"option","aria-selected":!1,tabIndex:0,className:"\n px-4 py-3\n cursor-pointer\n flex\n items-center\n gap-3\n transition-colors\n duration-200\n hover:bg-gray-50/50\n text-foreground\n bg-gray-100\n border-b border border-border\n dark:bg-slate-500\n dark:border-dark-800/20\n ",onClick:()=>{o(),C(!1)},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),o(),C(!1))}},t.createElement(B,{className:"size-4 flex-shrink-0 text-secondary-foreground"}),t.createElement("span",{className:"text-[15px]"},e),t.createElement("div",{className:"ml-auto flex items-center"},t.createElement(D,{className:"size-4 text-secondary-foreground"})))),t.createElement(h.div,{variants:{visible:{transition:{staggerChildren:.03,delayChildren:.05}}},initial:"hidden",animate:"visible"},b.map((e=>t.createElement(h.div,{key:e.id,variants:S,role:"option","aria-selected":!1,tabIndex:0,className:"px-4 py-3 cursor-pointer flex items-center gap-3 transition-colors duration-200 hover:bg-gray-200/50 text-foreground",onClick:()=>{null==y||y(e),C(!1)},onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),null==y||y(e),C(!1))}},t.createElement(B,{className:"size-4 flex-shrink-0 text-secondary-foreground"}),t.createElement("span",{className:"text-[15px]"},e.question),t.createElement("div",{className:"ml-auto flex items-center"},t.createElement(D,{className:"size-4 text-secondary-foreground"})))))))))}));on.displayName="PrimarySearch";var ln="FollowUpSearchBar-module_followUpSearchBar__DiKdH";const cn=t.forwardRef((({initialQuery:e="",onQueryChange:a,isSearching:o,handleFollowUpSearch:i,textConfig:l},c)=>{const[d,m]=n(e),u=r(null);s((()=>{u.current&&(u.current.style.height="inherit",u.current.style.height=`${u.current.scrollHeight}px`)}),[d]),s((()=>{m(e)}),[e]);return t.createElement(h.footer,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:ln},t.createElement("div",{className:"container flex items-center justify-center p-3"},t.createElement("div",{className:"relative flex w-full items-center gap-2 rounded bg-card px-2 border border-dark-400"},t.createElement("div",{className:"size-6 flex flex-shrink-0 justify-center items-center"},t.createElement(B,{className:"size-5 text-secondary-foreground"})),t.createElement(Ke,{ref:e=>{u.current=e,"function"==typeof c?c(e):c&&"current"in c&&(c.current=e)},value:d,onChange:e=>{m(e.target.value)},onBlur:()=>{d!==e&&a(d)},onKeyDown:e=>{if("Enter"===e.key&&!e.shiftKey&&!o){e.preventDefault();const t=d;a(t),i(t),m("")}},placeholder:l.followUpPlaceholder,className:"min-h-[44px] w-full resize-none border-0 shadow-none bg-transparent px-0 py-2.5 focus:outline-none focus:ring-0 focus-visible:ring-0",rows:1}),t.createElement(Me,{type:"button",size:"icon",disabled:o||!d.trim(),onClick:()=>{const e=d;a(e),i(e),m("")},className:Re("size-8 shrink-0 rounded",d?"bg-primary text-primary-foreground":"bg-dark-400 dark:bg-muted text-white")},o?t.createElement("div",{className:"animate-spin rounded-full size-4 sm:size-5 border-2 border-dark/40 !border-t-foreground dark:border-dark-500 "}):t.createElement(U,{className:"size-6"})))))}));function dn(e){var{headerText:a,onToggleSizeButtonClick:n,onBackButtonClick:r,onCloseWidgetClick:s,className:o}=e,i=Oe(e,["headerText","onToggleSizeButtonClick","onBackButtonClick","onCloseWidgetClick","className"]);const l=Sa(),[c,d]=t.useState(!1),{isSearching:m,showMobileCloseWidgetButton:u}=ja();return t.createElement("div",Object.assign({className:Re("w-full px-3 py-4 flex items-center justify-between","bg-primary h-14 leading-6","@3xl:bg-transparent @3xl:h-auto @3xl:leading-normal","@3xl:justify-center @3xl:space-y-4 @3xl:p-0",o)},i),t.createElement(h.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.3},className:"@3xl:text-5xl m-0 text-primary-foreground @3xl:text-foreground flex gap-1 items-center font-bold text-base"},l&&t.createElement(Me,{size:"icon",variant:"ghost",onClick:r,"aria-label":"Go back",className:"@3xl:hidden shrink-0",disabled:m},t.createElement(M,null)),t.createElement("span",null,a)),t.createElement("div",{className:"@3xl:hidden shrink-0"},!u&&t.createElement(Me,{size:"icon",variant:"ghost",onClick:()=>{d((e=>!e)),n()},"aria-label":c?"Collapse widget":"Expand widget",className:"text-primary-foreground"},c?t.createElement(V,null):t.createElement(W,null)),t.createElement(Me,{size:"icon",variant:"ghost",onClick:s,"aria-label":"Close widget",className:"text-primary-foreground"},t.createElement(R,null))))}cn.displayName="FollowUpSearchBar";const mn={headerText:"How can we help you today?",searchPlaceholder:"Ask a question or type a search term here ...",attachImageText:"Attach image",allDocumentsText:"All documents",loadingSearchText:"Searching for relevant content...",loadingAnswerText:"Crafting a response...",errorText:"Sorry, there was an error generating the answer.",followUpPlaceholder:"Ask follow-up",positiveAnswerText:"Helpful",negativeAnswerText:"Not helpful",uncertaintyFallbackText:{en:"Sorry, I can't find a clear answer to your question. Please try rephrasing or check the related sources below.",es:"Lo siento, no puedo encontrar una respuesta clara. Intente reformular la pregunta o consulte las fuentes relacionadas.",fr:"Désolé, je ne trouve pas de réponse claire. Essayez de reformuler ou consultez les sources connexes.",de:"Entschuldigung, ich finde keine klare Antwort. Versuchen Sie es anders zu formulieren oder sehen Sie sich die verwandten Quellen an.",it:"Mi dispiace, non trovo una risposta chiara. Prova a riformulare o consulta le fonti correlate.",pt:"Desculpe, não encontro uma resposta clara. Tente reformular ou consulte as fontes relacionadas.",nl:"Sorry, ik kan geen duidelijk antwoord vinden. Probeer het anders te formuleren of bekijk de gerelateerde bronnen.",pl:"Przepraszam, nie znajduję jasnej odpowiedzi. Spróbuj przeformułować pytanie lub sprawdź powiązane źródła.",ru:"Извините, я не могу найти четкого ответа. Попробуйте переформулировать или ознакомьтесь со связанными источниками.",ja:"申し訳ありませんが、明確な回答が見つかりません。質問の言い換えや、関連ソースをご確認ください。",ko:"죄송합니다. 명확한 답변을 찾을 수 없습니다. 질문을 다시 작성하거나 관련 소스를 확인해 주세요.",zh:"抱歉,找不到明确的答案。请尝试重新表述或查看相关来源。","zh-TW":"抱歉,找不到明確的答案。請嘗試重新表述或查看相關來源。"}},un=()=>t.createElement(h.div,{key:"loading",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"w-full flex items-center justify-center py-20","data-name":"loading"},t.createElement("div",{className:"flex flex-col items-center gap-4"},t.createElement("div",{className:"animate-spin rounded-full size-8 border-2 border-t-transparent border-primary"}),t.createElement("p",{className:"text-sm text-secondary-foreground"},"Loading conversation..."))),pn=u(void 0);function fn({children:e,flags:a}){return t.createElement(pn.Provider,{value:null!=a?a:{}},e)}function gn({query:e,endpoint:t,collectionId:a,headers:r,conversationId:o,delay:i=300}){const[l,c]=n([]),[d,u]=n(!1),[p,f]=n(),g=function(e,t){const[a,r]=n(e);return s((()=>{const a=setTimeout((()=>{r(e)}),t);return()=>{clearTimeout(a)}}),[e,t]),a}(e,i),h=m((()=>Fe(this,void 0,void 0,(function*(){var e;if(g.trim()){u(!0),f(void 0);try{const n=yield function({endpoint:e,query:t,collectionId:a,headers:n,conversationId:r}){return Fe(this,void 0,void 0,(function*(){return yield Aa(e,{method:"POST",headers:n,retry:Ta,body:Object.assign(Object.assign({query:t},a&&"all"!==a&&{collectionId:a}),r&&{conversationId:r})})}))}({endpoint:t,query:g,collectionId:a,headers:r,conversationId:o});c(null===(e=null==n?void 0:n.response)||void 0===e?void 0:e.results)}catch(e){console.error("Error fetching autocomplete suggestions:",e),f(e instanceof Error?e.message:"Failed to fetch suggestions"),c([])}finally{u(!1)}}else c([])}))),[g,t,a,r,o]);return s((()=>{h()}),[h]),{suggestions:l,isLoading:d,error:p}}const hn=e.forwardRef(((t,a)=>{var{className:n,children:r}=t,s=Oe(t,["className","children"]);return e.createElement(we.Root,Object.assign({className:Re("relative overflow-hidden",n)},s),e.createElement(we.Viewport,{ref:a,className:"h-full w-full rounded-[inherit]"},r),e.createElement(vn,null),e.createElement(we.Corner,null))}));hn.displayName=we.Root.displayName;const vn=e.forwardRef(((t,a)=>{var{className:n,orientation:r="vertical"}=t,s=Oe(t,["className","orientation"]);return e.createElement(we.ScrollAreaScrollbar,Object.assign({ref:a,orientation:r,className:Re("flex touch-none select-none transition-colors","vertical"===r&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===r&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",n)},s),e.createElement(we.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-dark-400"}))}));vn.displayName=we.ScrollAreaScrollbar.displayName;const bn=i((({suggestions:e=[],collections:a=[],selectedCollectionId:o,onCollectionChange:i,searchEndpoint:l,answerStreamEndpoint:c,feedbackEndpoint:d,feedbackReasonEndpoint:m,loadConversationEndpoint:u,autocompleteEndpoint:p,disableFollowUpQuestions:v=!1,disableImageAttachment:b=!1,disableFeedback:y=!1,disclaimer:x,offset:E=0,headers:w,textConfig:N={},followUpQuestionsEndpoint:k,className:C,onToggleSizeButtonClick:I,trackEvent:j,onCloseWidget:S,isWidgetMode:O=!0,nextBestActions:F,bodyActionButtons:R,onNextBestActionClick:z,userData:A,redirectRules:T,attributesSigned:L},_)=>{const{answers:D,answerListDispatch:Q,query:q,setQuery:B,followUpQuery:P,setFollowUpQuery:$,isSearching:U,setIsSearching:M,showResults:V,setShowResults:W,activeAnswerIndex:Z,setActiveAnswerIndex:H,conversationId:K,setConversationId:Y,clearConversationId:G,isLoadingConversation:J,setShowMobileCloseWidgetButton:X}=ja(),ee=Object.assign(Object.assign({},mn),N),[te,ae]=n(!1),[ne,re]=n([]),[se,oe]=n(o),[ie,le]=n(!0),ce=r(null),de=r([]),ue=r(null),pe=r(null),fe=r(null),ge=r(null),{suggestions:he}=gn({query:q,endpoint:p||"",collectionId:se,headers:w,conversationId:K,delay:300}),{loadConversationById:ve}=Da({loadConversationEndpoint:u,headers:w,mergedTextConfig:ee}),{scrollToLastAnswer:be,scrollToAnswer:ye}=((e,t)=>({scrollToLastAnswer:()=>{requestAnimationFrame((()=>{var a;const n=null===(a=e.current)||void 0===a?void 0:a[e.current.length-1],r=t.current;if(n&&r){const e=n.getBoundingClientRect(),t=r.getBoundingClientRect(),a=r.scrollTop+(e.top-t.top)-80;r.scrollTo({top:a,behavior:"smooth"})}}))},scrollToAnswer:a=>{requestAnimationFrame((()=>{var n;const r=null===(n=e.current)||void 0===n?void 0:n[a],s=t.current;if(r&&s){const e=r.getBoundingClientRect(),t=s.getBoundingClientRect(),a=s.scrollTop+(e.top-t.top)-80;s.scrollTo({top:a,behavior:"smooth"})}}))}}))(de,ue),{subscribeToStateChanges:xe}=(()=>{const e=r([]),{showResults:t,answers:a,isLoadingConversation:n,loadError:o}=ja();return s((()=>{const r={showResults:t,answers:a,isLoading:n,error:o};e.current.forEach((e=>e(r)))}),[t,a,n,o]),{subscribeToStateChanges:r=>(e.current.push(r),r({showResults:t,answers:a,isLoading:n,error:o}),()=>{e.current=e.current.filter((e=>e!==r))})}})(),Ee=(e,t)=>Fe(void 0,void 0,void 0,(function*(){if(k&&!v)try{const a=yield function({endpoint:e,searchQueryId:t,headers:a,conversationId:n}){return Fe(this,void 0,void 0,(function*(){return(yield Aa(e,{method:"POST",headers:a,body:Object.assign({searchQueryId:t},n)})).questions}))}({endpoint:k,searchQueryId:e,headers:w,conversationId:t});return a}catch(e){return void console.error("Error fetching follow-up questions:",e)}})),we=({reader:e,searchQueryId:t,conversationId:a,onFirstEvent:n})=>Fe(void 0,void 0,void 0,(function*(){var r,s,o,i;let l="";try{let c,d,m=!1,u=!0,p=!1;for(;({done:m,value:d}=yield e.read()),!m;){u&&(u=!1,null==n||n());const e=(new TextDecoder).decode(d).split(/\n\n/).filter((e=>e.startsWith("data: "))).map((e=>e.replace(/^data: /,"").trim()));for(const n of e)try{const e=JSON.parse(n);if("answer-text-chunk"===e.type){l+=e.content,Q(fa({text:e.content}));const t=ze(l);if(p=t.uncertain,p){const e=null!==(i=null!==(o=null===(r=ee.uncertaintyFallbackText)||void 0===r?void 0:r[null!==(s=t.language)&&void 0!==s?s:"en"])&&void 0!==o?o:l)&&void 0!==i?i:"I don't know.";Q(va({uncertaintyText:e}))}}"action-buttons"===e.type&&(c=e.searchIntentId,Q(ya({searchIntentId:c,actions:e.actions}))),"get-action-inputs"===e.type&&(c=e.searchIntentId,Q(ba({searchIntentId:e.searchIntentId,inputs:e.inputs,actionId:e.actionId,schema:e.schema,initialValues:e.values,onSubmit:n=>ke({searchQueryId:t,conversationId:a,searchIntentId:e.searchIntentId,actionId:e.actionId,parameters:n})})))}catch(e){console.warn("Failed to parse answer stream block")}}return{answer:l,searchIntentId:c,isUncertain:p}}finally{e.releaseLock()}})),Ne=({searchQueryId:e,conversationId:t})=>Fe(void 0,void 0,void 0,(function*(){var a;try{const n=Ee(e),r=null===(a=(yield _a({endpoint:c,headers:w,body:{type:"generate-for-query",conversationId:t,searchQueryId:e}})).body)||void 0===a?void 0:a.getReader();if(!r)return;const{answer:s,searchIntentId:o,isUncertain:i}=yield we({reader:r,searchQueryId:e,conversationId:t,onFirstEvent:()=>{null==j||j("First Streamed Answer Chunk Received",{conversationId:t,searchQueryId:e})}});if(!s)return;n.then((e=>{e&&e.length>0&&!o&&Q((({questions:e,index:t})=>({type:ra,payload:{questions:e,index:t}}))({questions:e}))})),i?null==j||j("Answer Not Found",{conversationId:t,searchQueryId:e}):null==j||j("Answer Found",{conversationId:t,searchQueryId:e})}catch(e){console.error("Error generating answer for query:",e),Q(ga({error:ee.errorText||"An error occurred."}))}finally{Q(ha())}})),ke=({searchQueryId:e,searchIntentId:t,conversationId:a,actionId:n,parameters:r})=>Fe(void 0,void 0,void 0,(function*(){var s;Q((({index:e}={})=>({type:ma,payload:{index:e}}))());try{const o=null===(s=(yield _a({endpoint:c,headers:w,body:{type:"invoke-action",conversationId:a,searchQueryId:e,searchIntentId:t,actionId:n,parameters:r}})).body)||void 0===s?void 0:s.getReader();if(!o)return;yield we({reader:o,searchQueryId:e})}catch(e){console.error("Error generating answer for action:",e),Q(ga({error:ee.errorText||"An error occurred."}))}finally{Q(ha()),M(!1)}})),Ce=(e,t,a,n)=>Fe(void 0,void 0,void 0,(function*(){const r=yield function({endpoint:e,query:t,collectionId:a,headers:n,conversationId:r,attributes:s,attributesSigned:o}){var i;return Fe(this,void 0,void 0,(function*(){const l=yield Aa(e,{method:"POST",headers:n,retry:Ta,body:Object.assign(Object.assign(Object.assign(Object.assign({query:t,limit:5},a&&"all"!==a&&{collectionId:a}),r&&{conversationId:r}),s&&{attributes:s}),o&&{attributesSigned:o})});return{results:null==l?void 0:l.data,searchQueryId:null===(i=null==l?void 0:l.searchQuery)||void 0===i?void 0:i.id}}))}({endpoint:l,query:e,collectionId:se,headers:w,conversationId:t,attributes:a,attributesSigned:n});return 0===r.results.length&&(null==j||j("No Articles Found",{conversationId:t,searchQuery:e})),Q((({searchQueryId:e,results:t,index:a})=>({type:na,payload:{searchQueryId:e,results:t,index:a}}))({searchQueryId:r.searchQueryId,results:r.results})),r.searchQueryId})),Ie=({searchQuery:e=q.trim(),event:t})=>Fe(void 0,void 0,void 0,(function*(){var a;if(!e)return;const n=K||me();Y(n),M(!0),W(!0),H(D.length),be(),Q((({id:e,query:t})=>({type:ea,payload:{id:e,query:t}}))({query:e})),yield Promise.resolve(),null===(a=ge.current)||void 0===a||a.focus();try{const a=Object.assign({},A),r=yield Ce(e,n,a,L);t&&(null==j||j(t.name,Object.assign({conversationId:n,searchQuery:e,searchQueryId:r},t.metaData))),yield Ne({searchQueryId:r,conversationId:n})}catch(a){console.error("Error generating answer:",a),t&&(null==j||j(`${t.name} - Search Error`,Object.assign({conversationId:n,searchQuery:e},t.metaData))),Q(ga({error:ee.errorText||"An error occurred."}))}finally{M(!1)}})),je=e=>{if(e)return B(e),void Ie({searchQuery:e,event:{name:"New Thread Created with Query"}});B(""),$(""),W(!1),Q(pa()),H(0),re([]),G(),null==j||j("New Thread Created",{oldConversationId:K}),ce.current&&(ce.current.style.height="auto")};f(_,(()=>({createNewThread:je,showFollowUpThread:e=>{le(e)},subscribeToStateChanges:xe,focusSearchField:()=>{var e,t;return(null===(e=fe.current)||void 0===e?void 0:e.focus())||(null===(t=ge.current)||void 0===t?void 0:t.focus())},showCloseButton:(e=!0)=>{X(e)}}))),s((()=>{oe(o)}),[o]);const Se=(e,t,a)=>Fe(void 0,void 0,void 0,(function*(){if(d){Q((({feedback:e,index:t})=>({type:ia,payload:{feedback:e,index:t}}))({feedback:e,index:a}));try{yield function({endpoint:e,searchQueryId:t,response:a,headers:n,conversationId:r}){return Fe(this,void 0,void 0,(function*(){yield Aa(e,{method:"POST",headers:n,body:Object.assign({searchQueryId:t,response:a},r&&{conversationId:r})})}))}({endpoint:d,searchQueryId:t,response:e,headers:w,conversationId:K}),null==j||j("accept"===e?"Answer Accepted":"Answer Rejected",{conversationId:K,searchQueryId:t})}catch(e){console.error("Error sending feedback:",e),Q((({index:e}={})=>({type:la,payload:{index:e}}))({index:a}))}}})),Oe=(e,t)=>Fe(void 0,void 0,void 0,(function*(){if(m)try{yield function({endpoint:e,searchQueryId:t,reason:a,headers:n}){return Fe(this,void 0,void 0,(function*(){yield Aa(e,{method:"POST",headers:n,body:{searchQueryId:t,reason:a}})}))}({endpoint:m,searchQueryId:t,reason:e,headers:w})}catch(e){console.error("Error sending feedback reason:",e)}}));s((()=>{const e=()=>{const e=window.innerHeight+window.pageYOffset>=document.documentElement.scrollHeight-100;ae(!e)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)}),[]),s((()=>()=>{ne.forEach((e=>URL.revokeObjectURL(e.preview)))}),[ne]);s((()=>{const e=()=>{new URLSearchParams(window.location.search).get("conversation")||(B(""),$(""),W(!1),Q(pa()),H(0),re([]),ce.current&&(ce.current.style.height="auto"))};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)}),[]);const Ae=e=>{null==j||j("Follow-up Question Clicked",{conversationId:K,question:e}),Ie({searchQuery:e,event:{name:"Follow-up Question Clicked"}})},Te=({action:e,searchQueryId:t,query:a,answer:n})=>{null==j||j("Next Best Action Clicked",{conversationId:K,searchQueryId:t,action:e.label}),null==z||z({action:e,searchQueryId:t,query:a,answer:n})};return t.createElement("div",{className:Re("w-full relative h-dvh flex flex-col justify-between @container",C),"data-name":"ChatSearch"},(O||!V)&&t.createElement(dn,{"data-name":"Header",headerText:ee.headerText,onToggleSizeButtonClick:()=>{null==I||I()},onBackButtonClick:()=>{je()},onCloseWidgetClick:()=>null==S?void 0:S(),className:"@3xl:mb-4"}),t.createElement(hn,{className:"w-full relative h-auto flex-grow",ref:ue},t.createElement(g,null,J?t.createElement(un,null):V?t.createElement(t.Fragment,null,t.createElement(h.div,{key:"results",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.5},className:"w-full max-w-[100vw] space-y-4 p-3 md:p-4"},D.map(((e,a)=>t.createElement(h.div,{key:a,ref:e=>de.current[a]=e,initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.1*a}},t.createElement(Ba,{index:a,blocks:e.blocks,question:e.question,state:e.state,searchResults:e.searchResults,searchQueryId:e.searchQueryId,feedback:e.feedback,onFeedback:t=>{Se(t,e.searchQueryId,a)},disableFeedback:y,textConfig:ee,redirectRules:T,nextBestActions:F,actions:e.actions,handleActionClick:Te,isLastAnswer:a===D.length-1,onFeedbackReasonSubmit:t=>{Oe(t,e.searchQueryId)}}),a===D.length-1&&!v&&e.followUpQuestions&&"completed"===e.state&&t.createElement("div",{className:"mt-4"},t.createElement($a,{questions:e.followUpQuestions,onQuestionClick:Ae}))))))):t.createElement(t.Fragment,null,t.createElement(h.div,{key:"search",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"w-full"},t.createElement("div",{className:"pb-4 px-3 bg-primary @3xl:px-0 @3xl:bg-transparent"},t.createElement(h.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.4}},t.createElement(on,{ref:fe,query:q,onQueryChange:e=>{var t;B(e),ce.current&&((t=ce.current).style.height="auto",t.style.height=`${t.scrollHeight}px`)},onSearch:()=>{((e=q.trim())=>{Fe(void 0,void 0,void 0,(function*(){yield Ie({searchQuery:e,event:{name:"Primary Field Search Submitted"}})}))})()},textConfig:ee,collections:a,currentCollectionId:se,onCollectionChange:e=>{oe(e),null==i||i(e)},disableImageAttachment:b,attachedImages:ne,onImageUpload:e=>{const t=e.target.files;if(t){const e=Array.from(t).map((e=>({file:e,preview:URL.createObjectURL(e)})));re((t=>[...t,...e]))}pe.current&&(pe.current.value="")},onRemoveImage:e=>{re((t=>(URL.revokeObjectURL(t[e].preview),t.filter(((t,a)=>a!==e)))))},isSearching:U,autocompleteSuggestions:he,onAutocompleteSuggestionSelect:e=>{Ie({searchQuery:e.question,event:{name:"Autocomplete Suggestion Clicked"}})}}))),t.createElement(Ve,{suggestions:e,onQuestionClick:e=>{if(e.conversationId)return null==j||j("Recent Conversation Clicked",{conversationId:K,question:e.question}),void ve(e.conversationId);Ie({searchQuery:e.question,event:{name:"Suggested Question Clicked"}})},title:ee.suggestionsTitle}),R&&R.length>0&&t.createElement("div",{className:"mt-4 mb-4 px-3 @3xl:px-0"},t.createElement("div",{className:"space-y-3"},t.createElement(_t,{nextBestActions:R||[],onActionClick:e=>Te({action:e,searchQueryId:"",query:"",answer:""})})))))),V&&D.length>1&&t.createElement("div",{className:"hidden lg:block"},t.createElement(Ua,{questions:D.map((e=>e.question)),activeIndex:Z,onNavigate:e=>{H(e),ye(e)},offset:E})),x&&!(V&&ie)&&t.createElement("div",{className:"mt-2 px-3 @3xl:px-0 text-xs text-dark-500 flex items-center gap-1 absolute bottom-12 justify-center text-center w-full"},t.createElement(Tt,{iconName:"Info",className:"size-4"}),x)),V&&ie&&t.createElement(cn,{ref:ge,initialQuery:P,onQueryChange:$,isSearching:U,handleFollowUpSearch:e=>Fe(void 0,void 0,void 0,(function*(){const t=void 0!==e?e:P;t.trim()&&(B(t),$(""),yield Ie({searchQuery:t,event:{name:"Follow-up Search Field Submitted"}}))})),textConfig:ee}),te&&V&&t.createElement(Ma,{onClick:be}))}));bn.displayName="ChatSearch";const yn=i(((e,a)=>{var{featureFlags:n}=e,r=Oe(e,["featureFlags"]);return t.createElement(fn,{flags:n},t.createElement(Ia,{searchPath:r.searchPath},t.createElement(bn,Object.assign({},r,{ref:a}))))}));yn.displayName="ChatSearch";const xn=e.forwardRef(((t,a)=>{var{className:n}=t,r=Oe(t,["className"]);return e.createElement(Ne.Root,Object.assign({className:Re("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:!outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",n)},r,{ref:a}),e.createElement(Ne.Thumb,{className:Re("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")}))}));xn.displayName=Ne.Root.displayName;const En=Ce.Root,wn=Ce.Trigger,Nn=Ce.Portal,kn=Ce.Close,Cn=e.forwardRef(((t,a)=>{var{className:n}=t,r=Oe(t,["className"]);return e.createElement(Ce.Overlay,Object.assign({ref:a,className:Re("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n)},r))}));Cn.displayName=Ce.Overlay.displayName;const In=e.forwardRef(((t,a)=>{var{className:n,children:r}=t,s=Oe(t,["className","children"]);return e.createElement(Nn,null,e.createElement(Cn,null),e.createElement(Ce.Content,Object.assign({ref:a,className:Re("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",n)},s),r,e.createElement(Ce.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground"},e.createElement(xe,{className:"h-4 w-4"}),e.createElement("span",{className:"sr-only"},"Close"))))}));In.displayName=Ce.Content.displayName;const jn=t=>{var{className:a}=t,n=Oe(t,["className"]);return e.createElement("div",Object.assign({className:Re("flex flex-col space-y-1.5 text-center sm:text-left",a)},n))};jn.displayName="DialogHeader";const Sn=t=>{var{className:a}=t,n=Oe(t,["className"]);return e.createElement("div",Object.assign({className:Re("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",a)},n))};Sn.displayName="DialogFooter";const On=e.forwardRef(((t,a)=>{var{className:n}=t,r=Oe(t,["className"]);return e.createElement(Ce.Title,Object.assign({ref:a,className:Re("text-lg font-semibold leading-none tracking-tight",n)},r))}));On.displayName=Ce.Title.displayName;const Fn=e.forwardRef(((t,a)=>{var{className:n}=t,r=Oe(t,["className"]);return e.createElement(Ce.Description,Object.assign({ref:a,className:Re("text-sm text-muted-foreground",n)},r))}));Fn.displayName=Ce.Description.displayName;const Rn=e.forwardRef(((t,a)=>{var{className:n}=t,r=Oe(t,["className"]);return e.createElement(ke,Object.assign({ref:a,className:Re("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",n)},r))}));Rn.displayName=ke.displayName;const zn=t=>{var{children:a}=t,n=Oe(t,["children"]);return e.createElement(En,Object.assign({},n),e.createElement(In,{className:"overflow-hidden p-0"},e.createElement(Rn,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5"},a)))},An=e.forwardRef(((t,a)=>{var{className:n}=t,r=Oe(t,["className"]);return e.createElement("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":""},e.createElement(Ee,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),e.createElement(ke.Input,Object.assign({ref:a,className:Re("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",n)},r)))}));An.displayName=ke.Input.displayName;const Tn=e.forwardRef(((t,a)=>{var{className:n}=t,r=Oe(t,["className"]);return e.createElement(ke.List,Object.assign({ref:a,className:Re("max-h-[300px] overflow-y-auto overflow-x-hidden",n)},r))}));Tn.displayName=ke.List.displayName;const Ln=e.forwardRef(((t,a)=>e.createElement(ke.Empty,Object.assign({ref:a,className:"py-6 text-center text-sm"},t))));Ln.displayName=ke.Empty.displayName;const _n=e.forwardRef(((t,a)=>{var{className:n}=t,r=Oe(t,["className"]);return e.createElement(ke.Group,Object.assign({ref:a,className:Re("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",n)},r))}));_n.displayName=ke.Group.displayName;const Dn=e.forwardRef(((t,a)=>{var{className:n}=t,r=Oe(t,["className"]);return e.createElement(ke.Separator,Object.assign({ref:a,className:Re("-mx-1 h-px bg-border",n)},r))}));Dn.displayName=ke.Separator.displayName;const Qn=e.forwardRef(((t,a)=>{var{className:n}=t,r=Oe(t,["className"]);return e.createElement(ke.Item,Object.assign({ref:a,className:Re("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",n)},r))}));Qn.displayName=ke.Item.displayName;const qn=t=>{var{className:a}=t,n=Oe(t,["className"]);return e.createElement("span",Object.assign({className:Re("ml-auto text-xs tracking-widest text-muted-foreground",a)},n))};function Bn({options:t,defaultValueLabel:a,placeholder:n,noResultsLabel:r,className:s,onOpenChange:o,onChange:i}){var l;const[c,d]=e.useState(!1),[m,u]=e.useState(""),p=e.useRef(null),[f,g]=e.useState(null);return e.createElement(nt,{open:c,onOpenChange:e=>{e&&p.current&&g(p.current.offsetWidth),d(e),null==o||o(e)}},e.createElement(rt,{asChild:!0},e.createElement(Me,{ref:p,variant:"outline",role:"combobox","aria-expanded":c,className:Re("w-full justify-between",s)},m?null===(l=t.find((e=>e.value===m)))||void 0===l?void 0:l.label:a,e.createElement(Z,{className:"opacity-50"}))),e.createElement(ot,{className:"p-0",style:{width:f?`${f}px`:"auto"}},e.createElement(Rn,null,e.createElement(An,{placeholder:n}),e.createElement(Tn,null,e.createElement(Ln,null,r),e.createElement(_n,null,t.map((t=>e.createElement(Qn,{key:t.value,value:t.value,onSelect:e=>{u(e===m?"":e),d(!1),null==i||i(e)}},t.label,e.createElement(N,{className:Re("ml-auto",m===t.value?"opacity-100":"opacity-0")})))))))))}var Pn;qn.displayName="CommandShortcut",function(e){e.IS="is",e.IS_NOT="is not",e.CONTAINS="contains",e.DOES_NOT_CONTAIN="does not contain",e.STARTS_WITH="starts with"}(Pn||(Pn={}));const $n=i((({filter:e,sourceOptions:a,rules:o,onSourceChange:i,onRemoveFilter:l,onFilterChange:c,selectPlaceholder:d="Select a value",customValuePlaceholder:m="Enter custom value",customValueButtonLabel:u="Done",sourceFirstMessage:p="Please select a source first"},f)=>{var g,h,v,b;const[y,x]=n({id:e.id,source:e.source,operator:e.operator||Pn.IS,value:e.value}),[E,w]=n(""),[k,I]=n(null),j=r(null),S=y.source?o[y.source]:void 0,O=(null==S?void 0:S.operators)||[];let F=(null==S?void 0:S.inputType)||"dropdown";y.operator!==Pn.CONTAINS&&y.operator!==Pn.DOES_NOT_CONTAIN||(F="custom");const R=(null==S?void 0:S.getValueOptions)?S.getValueOptions():[];s((()=>{if("value"===k&&"custom"===F){const e=setTimeout((()=>{var e;return null===(e=j.current)||void 0===e?void 0:e.focus()}),50);return()=>clearTimeout(e)}}),[k,F]),s((()=>{x({id:e.id,source:e.source,operator:e.operator||Pn.IS,value:e.value})}),[e]);const z=(e,t)=>{var a,n;const r=Object.assign(Object.assign({},y),{[e]:t});if("source"===e){const e=o[t];r.operator=null===(a=null==e?void 0:e.operators[0])||void 0===a?void 0:a.id,r.value=""}if("operator"===e&&y.source){const e=o[y.source];"dropdown"===(null==e?void 0:e.inputType)&&(r.value="")}x(r);r.source&&r.operator&&(null===(n=r.value)||void 0===n?void 0:n.trim())&&c(r),I(null)},A=(e,t)=>{var a;if("Escape"!==e.key){if("Tab"===e.key)if(t&&!e.shiftKey){e.preventDefault();const t=document.querySelector("[data-custom-submit-button]");null==t||t.focus()}else t||(e.preventDefault(),null===(a=j.current)||void 0===a||a.focus())}else I(null)};return t.createElement("div",{className:"inline-flex items-center rounded-full border border-foreground h-8 overflow-visible",ref:f},t.createElement(Va,{open:"source"===k,onOpenChange:e=>I(e?"source":null),modal:!1},t.createElement(Wa,{asChild:!0},t.createElement("button",{type:"button",className:"flex items-center px-2 py-1 text-sm font-bold border-r border-[#a3a3a3] hover:bg-black/5 text-foreground rounded-l-full"},(null===(g=a.find((e=>e.id===y.source)))||void 0===g?void 0:g.label)||(null===(h=a[0])||void 0===h?void 0:h.label)||d)),t.createElement(Xa,{align:"start",className:"w-48"},a.map((e=>t.createElement(en,{key:e.id,className:"flex items-center",onSelect:()=>{z("source",e.id),null==i||i(e.id)}},e.id===y.source&&t.createElement(N,{size:14,className:"mr-2"}),e.label))))),t.createElement(Va,{open:"operator"===k,onOpenChange:e=>I(e?"operator":null),modal:!1},t.createElement(Wa,{asChild:!0},t.createElement("button",{type:"button",className:"flex items-center px-2 py-1 text-sm border-r border-[#a3a3a3] hover:bg-black/5"},(null===(v=O.find((e=>e.id===y.operator)))||void 0===v?void 0:v.label)||d)),t.createElement(Xa,{align:"start",className:"w-48"},O.map((e=>t.createElement(en,{key:e.id,className:"flex items-center",onSelect:()=>z("operator",e.id)},e.id===y.operator&&t.createElement(N,{size:14,className:"mr-2"}),e.label))))),t.createElement(Va,{open:"value"===k,onOpenChange:e=>I(e?"value":null),modal:!1},t.createElement(Wa,{asChild:!0},t.createElement("button",{type:"button",className:"flex items-center px-2 py-1 text-sm font-bold hover:bg-black/5"},(null===(b=R.find((e=>e.id===y.value)))||void 0===b?void 0:b.label)||y.value||d)),t.createElement(Xa,{align:"start",className:"w-64"},"custom"===F&&t.createElement("form",{className:"p-3",onSubmit:e=>{e.preventDefault(),(()=>{if(E.trim()){const e=Object.assign(Object.assign({},y),{value:E.trim()});x(e),w(""),I(null),e.source&&e.operator&&e.value&&c(e)}})()}},t.createElement(We,{ref:j,type:"text",value:E,onChange:e=>w(e.target.value),placeholder:m,className:"mb-2",onKeyDown:e=>A(e,!0)}),t.createElement(Me,{type:"submit",variant:"dark",className:"w-full",onKeyDown:e=>A(e,!1),"data-custom-submit-button":!0},u)),"dropdown"===F&&t.createElement(t.Fragment,null,y.source?R.map((e=>t.createElement(en,{key:e.id,className:"flex items-center",onSelect:()=>z("value",e.id)},e.id===y.value&&t.createElement(N,{size:14,className:"mr-2"}),e.label))):t.createElement("div",{className:"p-3 text-sm text-gray-500"},p)))),t.createElement(Me,{type:"button",variant:"ghost",size:"sm",onClick:()=>{x({id:e.id}),I(null),l(e.id)},className:"p-2 hover:bg-black/10 rounded-none rounded-r-full"},t.createElement(C,{size:16,weight:"fill"})))}));$n.displayName="Filter";const Un=({filters:e,onFilterChange:a,onFilterRemove:r,sourceOptions:s,rules:o,className:i})=>{const[l,c]=n(e||[]);return t.createElement("fieldset",{className:Re("flex flex-wrap gap-2",i)},t.createElement("legend",{className:"sr-only"},"Filters"),null==l?void 0:l.map((e=>t.createElement($n,{key:e.id,filter:e,sourceOptions:s,rules:o,onRemoveFilter:()=>(e=>{c(l.filter((t=>t.id!==e.id))),r(e.id)})(e),onFilterChange:a}))),t.createElement(Me,{onClick:()=>{var e,t;const a={id:me(),source:null!==(t=null===(e=s[0])||void 0===e?void 0:e.id)&&void 0!==t?t:"",operator:Pn.IS,value:""};c([...l,a])},variant:"ghost",className:"border border-foreground rounded-full gap-1",size:"sm"},t.createElement(H,{size:16}),"Add filter"))};export{Se as BrainfishColors,Me as Button,Ut as Card,Zt as CardAction,Ht as CardContent,Wt as CardDescription,Kt as CardFooter,Mt as CardHeader,Vt as CardTitle,yn as ChatSearch,Ia as ChatSearchProvider,ut as CodeBlock,Bt as Collapsible,$t as CollapsibleContent,Pt as CollapsibleTrigger,Bn as Combobox,Rn as Command,zn as CommandDialog,Ln as CommandEmpty,_n as CommandGroup,An as CommandInput,Qn as CommandItem,Tn as CommandList,Dn as CommandSeparator,qn as CommandShortcut,it as DatePicker,En as Dialog,kn as DialogClose,In as DialogContent,Fn as DialogDescription,Sn as DialogFooter,jn as DialogHeader,Cn as DialogOverlay,Nn as DialogPortal,On as DialogTitle,wn as DialogTrigger,Va as DropdownMenu,tn as DropdownMenuCheckboxItem,Xa as DropdownMenuContent,Za as DropdownMenuGroup,en as DropdownMenuItem,nn as DropdownMenuLabel,Ha as DropdownMenuPortal,Ya as DropdownMenuRadioGroup,an as DropdownMenuRadioItem,rn as DropdownMenuSeparator,sn as DropdownMenuShortcut,Ka as DropdownMenuSub,Ja as DropdownMenuSubContent,Ga as DropdownMenuSubTrigger,Wa as DropdownMenuTrigger,$n as Filter,Un as Filters,jt as FormattedMessage,We as Input,He as Label,Nt as MemoizedReactMarkdown,Ct as MermaidDiagram,Pn as Operator,nt as Popover,st as PopoverAnchor,ot as PopoverContent,rt as PopoverTrigger,hn as ScrollArea,vn as ScrollBar,tt as SimpleSelect,xn as Switch,Ke as Textarea,Te as Tooltip,_e as TooltipContent,Ae as TooltipProvider,Le as TooltipTrigger,It as ZoomableImage,Ue as buttonVariants,Ie as customColor,ja as useChatSearch,Sa as useIsChatSearchDirty};
2
- //# sourceMappingURL=index.js.map