@assemble-inc/chat-widget 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Widget.d.ts +1 -1
- package/dist/embed.iife.js +19 -19
- package/dist/index.js +81 -81
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-gray-200:oklch(92.8% .006 264.531);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-neutral-300:oklch(87% 0 0);--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--font-weight-medium:500;--font-weight-bold:700;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-asm-white:#fff;--color-asm-purple:#2e2438;--color-asm-pink-400:#ffa2f6;--color-asm-blue:#a5d5d8;--color-asm-gray-500:#f1f1f1}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}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;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.top-1\\/2{top:50%}.top-2{top:calc(var(--spacing) * 2)}.top-4{top:calc(var(--spacing) * 4)}.right-0{right:calc(var(--spacing) * 0)}.right-2{right:calc(var(--spacing) * 2)}.right-4{right:calc(var(--spacing) * 4)}.right-6{right:calc(var(--spacing) * 6)}.-bottom-4{bottom:calc(var(--spacing) * -4)}.bottom-0{bottom:calc(var(--spacing) * 0)}.bottom-2{bottom:calc(var(--spacing) * 2)}.bottom-6{bottom:calc(var(--spacing) * 6)}.bottom-20{bottom:calc(var(--spacing) * 20)}.left-0{left:calc(var(--spacing) * 0)}.left-2{left:calc(var(--spacing) * 2)}.left-4{left:calc(var(--spacing) * 4)}.left-6{left:calc(var(--spacing) * 6)}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.z-\\[1\\]{z-index:1}.z-\\[2\\]{z-index:2}.z-\\[3\\]{z-index:3}.mr-1{margin-right:calc(var(--spacing) * 1)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-24{margin-bottom:calc(var(--spacing) * 24)}.ml-1{margin-left:calc(var(--spacing) * 1)}.flex{display:flex}.h-3\\/4{height:75%}.h-5\\/6{height:83.3333%}.h-6{height:calc(var(--spacing) * 6)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-16{height:calc(var(--spacing) * 16)}.h-full{height:100%}.max-h-\\[500px\\]{max-height:500px}.max-h-\\[800px\\]{max-height:800px}.min-h-\\[46px\\]{min-height:46px}.w-6{width:calc(var(--spacing) * 6)}.w-8{width:calc(var(--spacing) * 8)}.w-9{width:calc(var(--spacing) * 9)}.w-10{width:calc(var(--spacing) * 10)}.w-16{width:calc(var(--spacing) * 16)}.w-80{width:calc(var(--spacing) * 80)}.w-full{width:100%}.max-w-none{max-width:none}.flex-1{flex:1}.shrink-0{flex-shrink:0}.origin-bottom-left{transform-origin:0 100%}.origin-bottom-right{transform-origin:100% 100%}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-0{--tw-translate-y:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-full{--tw-translate-y:100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.scale-0{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.transform-gpu{transform:translateZ(0) var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-\\[43px\\]{border-radius:43px}.rounded-full{border-radius:3.40282e38px}.rounded-xl{border-radius:var(--radius-xl)}.rounded-t-\\[43px\\]{border-top-left-radius:43px;border-top-right-radius:43px}.rounded-tl-\\[50\\%\\]{border-top-left-radius:50%}.rounded-tl-none{border-top-left-radius:0}.rounded-tr-\\[50\\%\\]{border-top-right-radius:50%}.rounded-tr-none{border-top-right-radius:0}.rounded-br{border-bottom-right-radius:.25rem}.rounded-br-\\[50\\%\\]{border-bottom-right-radius:50%}.rounded-bl{border-bottom-left-radius:.25rem}.rounded-bl-\\[50\\%\\]{border-bottom-left-radius:50%}.border{border-style:var(--tw-border-style);border-width:1px}.border-asm-purple{border-color:var(--color-asm-purple)}.border-asm-purple\\/40{border-color:#2e243866}@supports (color:color-mix(in lab,red,red)){.border-asm-purple\\/40{border-color:color-mix(in oklab,var(--color-asm-purple) 40%,transparent)}}.border-gray-200{border-color:var(--color-gray-200)}.bg-asm-gray-500{background-color:var(--color-asm-gray-500)}.bg-asm-pink-400{background-color:var(--color-asm-pink-400)}.bg-asm-purple{background-color:var(--color-asm-purple)}.bg-asm-white{background-color:var(--color-asm-white)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-gray-500{--tw-gradient-from:var(--color-gray-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-neutral-300{--tw-gradient-to:var(--color-neutral-300);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-6{padding-block:calc(var(--spacing) * 6)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pr-12{padding-right:calc(var(--spacing) * 12)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-20{padding-bottom:calc(var(--spacing) * 20)}.pl-4{padding-left:calc(var(--spacing) * 4)}.text-center{text-align:center}.text-left{text-align:left}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-\\[1\\.4\\]{--tw-leading:1.4;line-height:1.4}.leading-none{--tw-leading:1;line-height:1}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.whitespace-pre-wrap{white-space:pre-wrap}.text-asm-purple{color:var(--color-asm-purple)}.text-gray-400{color:var(--color-gray-400)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.opacity-0{opacity:0}.opacity-8{opacity:.08}.opacity-20{opacity:.2}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-gray-200{--tw-ring-color:var(--color-gray-200)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.first\\:pt-4:first-child{padding-top:calc(var(--spacing) * 4)}.last\\:pb-4:last-child{padding-bottom:calc(var(--spacing) * 4)}@media(hover:hover){.hover\\:bg-asm-blue\\/30:hover{background-color:#a5d5d84d}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-asm-blue\\/30:hover{background-color:color-mix(in oklab,var(--color-asm-blue) 30%,transparent)}}.hover\\:bg-asm-purple\\/10:hover{background-color:#2e24381a}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-asm-purple\\/10:hover{background-color:color-mix(in oklab,var(--color-asm-purple) 10%,transparent)}}}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-asm-blue:focus{--tw-ring-color:var(--color-asm-blue)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}@media(prefers-reduced-motion:reduce){.motion-reduce\\:transition-none{transition-property:none}}}.asw-widget{font-family:Inter,sans-serif}.asw-widget *,.asw-widget :before,.asw-widget :after{box-sizing:border-box}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}')),document.head.appendChild(t)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
|
|
2
|
-
import { jsxs as Ae, jsx as
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-gray-200:oklch(92.8% .006 264.531);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-neutral-300:oklch(87% 0 0);--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--font-weight-medium:500;--font-weight-bold:700;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--ease-in-out:cubic-bezier(.4, 0, .2, 1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-asm-white:#fff;--color-asm-purple:#2e2438;--color-asm-pink-400:#ffa2f6;--color-asm-blue:#a5d5d8;--color-asm-gray-500:#f1f1f1}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}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;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.top-1\\/2{top:50%}.top-2{top:calc(var(--spacing) * 2)}.top-4{top:calc(var(--spacing) * 4)}.right-0{right:calc(var(--spacing) * 0)}.right-2{right:calc(var(--spacing) * 2)}.right-4{right:calc(var(--spacing) * 4)}.right-6{right:calc(var(--spacing) * 6)}.-bottom-4{bottom:calc(var(--spacing) * -4)}.bottom-0{bottom:calc(var(--spacing) * 0)}.bottom-2{bottom:calc(var(--spacing) * 2)}.bottom-6{bottom:calc(var(--spacing) * 6)}.bottom-20{bottom:calc(var(--spacing) * 20)}.left-0{left:calc(var(--spacing) * 0)}.left-2{left:calc(var(--spacing) * 2)}.left-4{left:calc(var(--spacing) * 4)}.left-6{left:calc(var(--spacing) * 6)}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.z-\\[1\\]{z-index:1}.z-\\[2\\]{z-index:2}.z-\\[3\\]{z-index:3}.mr-1{margin-right:calc(var(--spacing) * 1)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-24{margin-bottom:calc(var(--spacing) * 24)}.ml-1{margin-left:calc(var(--spacing) * 1)}.flex{display:flex}.h-3\\/4{height:75%}.h-5\\/6{height:83.3333%}.h-6{height:calc(var(--spacing) * 6)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-16{height:calc(var(--spacing) * 16)}.h-full{height:100%}.max-h-\\[500px\\]{max-height:500px}.max-h-\\[800px\\]{max-height:800px}.min-h-\\[46px\\]{min-height:46px}.w-6{width:calc(var(--spacing) * 6)}.w-8{width:calc(var(--spacing) * 8)}.w-9{width:calc(var(--spacing) * 9)}.w-10{width:calc(var(--spacing) * 10)}.w-16{width:calc(var(--spacing) * 16)}.w-80{width:calc(var(--spacing) * 80)}.w-full{width:100%}.max-w-none{max-width:none}.flex-1{flex:1}.shrink-0{flex-shrink:0}.origin-bottom-left{transform-origin:0 100%}.origin-bottom-right{transform-origin:100% 100%}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-0{--tw-translate-y:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-full{--tw-translate-y:100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.scale-0{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.transform-gpu{transform:translateZ(0) var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-\\[43px\\]{border-radius:43px}.rounded-full{border-radius:3.40282e38px}.rounded-xl{border-radius:var(--radius-xl)}.rounded-t-\\[43px\\]{border-top-left-radius:43px;border-top-right-radius:43px}.rounded-tl-\\[50\\%\\]{border-top-left-radius:50%}.rounded-tl-none{border-top-left-radius:0}.rounded-tr-\\[50\\%\\]{border-top-right-radius:50%}.rounded-tr-none{border-top-right-radius:0}.rounded-br{border-bottom-right-radius:.25rem}.rounded-br-\\[50\\%\\]{border-bottom-right-radius:50%}.rounded-bl{border-bottom-left-radius:.25rem}.rounded-bl-\\[50\\%\\]{border-bottom-left-radius:50%}.border{border-style:var(--tw-border-style);border-width:1px}.border-asm-purple{border-color:var(--color-asm-purple)}.border-asm-purple\\/40{border-color:#2e243866}@supports (color:color-mix(in lab,red,red)){.border-asm-purple\\/40{border-color:color-mix(in oklab,var(--color-asm-purple) 40%,transparent)}}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-200\\/60{border-color:#e5e7eb99}@supports (color:color-mix(in lab,red,red)){.border-gray-200\\/60{border-color:color-mix(in oklab,var(--color-gray-200) 60%,transparent)}}.bg-asm-gray-500{background-color:var(--color-asm-gray-500)}.bg-asm-pink-400{background-color:var(--color-asm-pink-400)}.bg-asm-purple{background-color:var(--color-asm-purple)}.bg-asm-white{background-color:var(--color-asm-white)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-gray-500{--tw-gradient-from:var(--color-gray-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.to-neutral-300{--tw-gradient-to:var(--color-neutral-300);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-6{padding-block:calc(var(--spacing) * 6)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pr-12{padding-right:calc(var(--spacing) * 12)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-20{padding-bottom:calc(var(--spacing) * 20)}.pl-4{padding-left:calc(var(--spacing) * 4)}.text-center{text-align:center}.text-left{text-align:left}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-\\[1\\.4\\]{--tw-leading:1.4;line-height:1.4}.leading-none{--tw-leading:1;line-height:1}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.whitespace-pre-wrap{white-space:pre-wrap}.text-asm-purple{color:var(--color-asm-purple)}.text-gray-400{color:var(--color-gray-400)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.opacity-0{opacity:0}.opacity-8{opacity:.08}.opacity-20{opacity:.2}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-gray-200{--tw-ring-color:var(--color-gray-200)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.first\\:pt-4:first-child{padding-top:calc(var(--spacing) * 4)}.last\\:pb-4:last-child{padding-bottom:calc(var(--spacing) * 4)}@media(hover:hover){.hover\\:bg-asm-blue\\/30:hover{background-color:#a5d5d84d}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-asm-blue\\/30:hover{background-color:color-mix(in oklab,var(--color-asm-blue) 30%,transparent)}}.hover\\:bg-asm-purple\\/10:hover{background-color:#2e24381a}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-asm-purple\\/10:hover{background-color:color-mix(in oklab,var(--color-asm-purple) 10%,transparent)}}}@media(prefers-reduced-motion:reduce){.motion-reduce\\:transition-none{transition-property:none}}}.asw-widget{font-family:Inter,sans-serif}.asw-widget *,.asw-widget :before,.asw-widget :after{box-sizing:border-box}.asw-widget textarea,.asw-widget input{outline:none!important}.asw-widget textarea:focus,.asw-widget input:focus{box-shadow:0 1px 2px #0000000d,0 0 0 2px var(--color-asm-blue)!important;outline:none!important}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}')),document.head.appendChild(t)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
|
|
2
|
+
import { jsxs as Ae, jsx as W, Fragment as ls } from "react/jsx-runtime";
|
|
3
3
|
import { useRef as Zt, useCallback as Vn, useSyncExternalStore as Sn, useEffect as gt, useState as _t } from "react";
|
|
4
4
|
var po = "vercel.ai.error", us = Symbol.for(po), jr, Br, Be = class fo extends (Br = Error, jr = us, Br) {
|
|
5
5
|
/**
|
|
@@ -7642,8 +7642,8 @@ function vf() {
|
|
|
7642
7642
|
function S(Z) {
|
|
7643
7643
|
var P = Z.match(t);
|
|
7644
7644
|
P && (y += P.length);
|
|
7645
|
-
var
|
|
7646
|
-
f = ~
|
|
7645
|
+
var V = Z.lastIndexOf(u);
|
|
7646
|
+
f = ~V ? Z.length - V : f + Z.length;
|
|
7647
7647
|
}
|
|
7648
7648
|
function A() {
|
|
7649
7649
|
var Z = { line: y, column: f };
|
|
@@ -7664,8 +7664,8 @@ function vf() {
|
|
|
7664
7664
|
function M(Z) {
|
|
7665
7665
|
var P = Z.exec(x);
|
|
7666
7666
|
if (P) {
|
|
7667
|
-
var
|
|
7668
|
-
return S(
|
|
7667
|
+
var V = P[0];
|
|
7668
|
+
return S(V), x = x.slice(V.length), P;
|
|
7669
7669
|
}
|
|
7670
7670
|
}
|
|
7671
7671
|
function L() {
|
|
@@ -7684,10 +7684,10 @@ function vf() {
|
|
|
7684
7684
|
++P;
|
|
7685
7685
|
if (P += 2, p === x.charAt(P - 1))
|
|
7686
7686
|
return C("End of comment missing");
|
|
7687
|
-
var
|
|
7688
|
-
return f += 2, S(
|
|
7687
|
+
var V = x.slice(2, P - 2);
|
|
7688
|
+
return f += 2, S(V), x = x.slice(P), f += 2, Z({
|
|
7689
7689
|
type: m,
|
|
7690
|
-
comment:
|
|
7690
|
+
comment: V
|
|
7691
7691
|
});
|
|
7692
7692
|
}
|
|
7693
7693
|
}
|
|
@@ -7695,10 +7695,10 @@ function vf() {
|
|
|
7695
7695
|
var Z = A(), P = M(r);
|
|
7696
7696
|
if (P) {
|
|
7697
7697
|
if (O(), !M(i)) return C("property missing ':'");
|
|
7698
|
-
var
|
|
7698
|
+
var V = M(o), ue = Z({
|
|
7699
7699
|
type: d,
|
|
7700
7700
|
property: E(P[0].replace(e, p)),
|
|
7701
|
-
value:
|
|
7701
|
+
value: V ? E(V[0].replace(e, p)) : p
|
|
7702
7702
|
});
|
|
7703
7703
|
return M(a), ue;
|
|
7704
7704
|
}
|
|
@@ -9500,7 +9500,7 @@ function qh(e, t, n) {
|
|
|
9500
9500
|
return v === null || j(v) ? R(v) : X(v) ? (e.consume(v), O) : n(v);
|
|
9501
9501
|
}
|
|
9502
9502
|
function R(v) {
|
|
9503
|
-
return v === 45 && i === 2 ? (e.consume(v),
|
|
9503
|
+
return v === 45 && i === 2 ? (e.consume(v), V) : v === 60 && i === 1 ? (e.consume(v), ue) : v === 62 && i === 4 ? (e.consume(v), he) : v === 63 && i === 3 ? (e.consume(v), g) : v === 93 && i === 5 ? (e.consume(v), ge) : j(v) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Hh, Oe, Y)(v)) : v === null || j(v) ? (e.exit("htmlFlowData"), Y(v)) : (e.consume(v), R);
|
|
9504
9504
|
}
|
|
9505
9505
|
function Y(v) {
|
|
9506
9506
|
return e.check(Vh, Z, Oe)(v);
|
|
@@ -9511,7 +9511,7 @@ function qh(e, t, n) {
|
|
|
9511
9511
|
function P(v) {
|
|
9512
9512
|
return v === null || j(v) ? Y(v) : (e.enter("htmlFlowData"), R(v));
|
|
9513
9513
|
}
|
|
9514
|
-
function
|
|
9514
|
+
function V(v) {
|
|
9515
9515
|
return v === 45 ? (e.consume(v), g) : R(v);
|
|
9516
9516
|
}
|
|
9517
9517
|
function ue(v) {
|
|
@@ -9580,7 +9580,7 @@ function Qh(e, t, n) {
|
|
|
9580
9580
|
return g === 45 ? (e.consume(g), d) : p(g);
|
|
9581
9581
|
}
|
|
9582
9582
|
function d(g) {
|
|
9583
|
-
return g === 62 ?
|
|
9583
|
+
return g === 62 ? V(g) : g === 45 ? m(g) : p(g);
|
|
9584
9584
|
}
|
|
9585
9585
|
function b(g) {
|
|
9586
9586
|
const he = "CDATA[";
|
|
@@ -9593,16 +9593,16 @@ function Qh(e, t, n) {
|
|
|
9593
9593
|
return g === 93 ? (e.consume(g), h) : E(g);
|
|
9594
9594
|
}
|
|
9595
9595
|
function h(g) {
|
|
9596
|
-
return g === 62 ?
|
|
9596
|
+
return g === 62 ? V(g) : g === 93 ? (e.consume(g), h) : E(g);
|
|
9597
9597
|
}
|
|
9598
9598
|
function y(g) {
|
|
9599
|
-
return g === null || g === 62 ?
|
|
9599
|
+
return g === null || g === 62 ? V(g) : j(g) ? (a = y, ue(g)) : (e.consume(g), y);
|
|
9600
9600
|
}
|
|
9601
9601
|
function f(g) {
|
|
9602
9602
|
return g === null ? n(g) : g === 63 ? (e.consume(g), S) : j(g) ? (a = f, ue(g)) : (e.consume(g), f);
|
|
9603
9603
|
}
|
|
9604
9604
|
function S(g) {
|
|
9605
|
-
return g === 62 ?
|
|
9605
|
+
return g === 62 ? V(g) : f(g);
|
|
9606
9606
|
}
|
|
9607
9607
|
function A(g) {
|
|
9608
9608
|
return je(g) ? (e.consume(g), w) : n(g);
|
|
@@ -9611,13 +9611,13 @@ function Qh(e, t, n) {
|
|
|
9611
9611
|
return g === 45 || Ce(g) ? (e.consume(g), w) : C(g);
|
|
9612
9612
|
}
|
|
9613
9613
|
function C(g) {
|
|
9614
|
-
return j(g) ? (a = C, ue(g)) : X(g) ? (e.consume(g), C) :
|
|
9614
|
+
return j(g) ? (a = C, ue(g)) : X(g) ? (e.consume(g), C) : V(g);
|
|
9615
9615
|
}
|
|
9616
9616
|
function M(g) {
|
|
9617
9617
|
return g === 45 || Ce(g) ? (e.consume(g), M) : g === 47 || g === 62 || ke(g) ? L(g) : n(g);
|
|
9618
9618
|
}
|
|
9619
9619
|
function L(g) {
|
|
9620
|
-
return g === 47 ? (e.consume(g),
|
|
9620
|
+
return g === 47 ? (e.consume(g), V) : g === 58 || g === 95 || je(g) ? (e.consume(g), U) : j(g) ? (a = L, ue(g)) : X(g) ? (e.consume(g), L) : V(g);
|
|
9621
9621
|
}
|
|
9622
9622
|
function U(g) {
|
|
9623
9623
|
return g === 45 || g === 46 || g === 58 || g === 95 || Ce(g) ? (e.consume(g), U) : O(g);
|
|
@@ -9637,7 +9637,7 @@ function Qh(e, t, n) {
|
|
|
9637
9637
|
function P(g) {
|
|
9638
9638
|
return g === 47 || g === 62 || ke(g) ? L(g) : n(g);
|
|
9639
9639
|
}
|
|
9640
|
-
function
|
|
9640
|
+
function V(g) {
|
|
9641
9641
|
return g === 62 ? (e.consume(g), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(g);
|
|
9642
9642
|
}
|
|
9643
9643
|
function ue(g) {
|
|
@@ -10267,7 +10267,7 @@ function Zm(e, t, n) {
|
|
|
10267
10267
|
}
|
|
10268
10268
|
function C(O, R) {
|
|
10269
10269
|
return Y;
|
|
10270
|
-
function Y(Z, P,
|
|
10270
|
+
function Y(Z, P, V) {
|
|
10271
10271
|
let ue, J, ge, g;
|
|
10272
10272
|
return Array.isArray(Z) ? (
|
|
10273
10273
|
/* c8 ignore next 1 */
|
|
@@ -10292,7 +10292,7 @@ function Zm(e, t, n) {
|
|
|
10292
10292
|
}
|
|
10293
10293
|
}
|
|
10294
10294
|
function Oe(ce) {
|
|
10295
|
-
return ue = ce, J = 0, ce.length === 0 ?
|
|
10295
|
+
return ue = ce, J = 0, ce.length === 0 ? V : v(ce[J]);
|
|
10296
10296
|
}
|
|
10297
10297
|
function v(ce) {
|
|
10298
10298
|
return Ve;
|
|
@@ -10312,7 +10312,7 @@ function Zm(e, t, n) {
|
|
|
10312
10312
|
return O(ge, g), P;
|
|
10313
10313
|
}
|
|
10314
10314
|
function Ue(ce) {
|
|
10315
|
-
return g.restore(), ++J < ue.length ? v(ue[J]) :
|
|
10315
|
+
return g.restore(), ++J < ue.length ? v(ue[J]) : V;
|
|
10316
10316
|
}
|
|
10317
10317
|
}
|
|
10318
10318
|
}
|
|
@@ -10323,9 +10323,9 @@ function Zm(e, t, n) {
|
|
|
10323
10323
|
const O = b(), R = l.previous, Y = l.currentConstruct, Z = l.events.length, P = Array.from(s);
|
|
10324
10324
|
return {
|
|
10325
10325
|
from: Z,
|
|
10326
|
-
restore:
|
|
10326
|
+
restore: V
|
|
10327
10327
|
};
|
|
10328
|
-
function
|
|
10328
|
+
function V() {
|
|
10329
10329
|
r = O, l.previous = R, l.currentConstruct = Y, l.events.length = Z, s = P, U();
|
|
10330
10330
|
}
|
|
10331
10331
|
}
|
|
@@ -10550,7 +10550,7 @@ function Jm(e) {
|
|
|
10550
10550
|
label: ge,
|
|
10551
10551
|
labelText: J,
|
|
10552
10552
|
lineEnding: O,
|
|
10553
|
-
link: u(
|
|
10553
|
+
link: u(V),
|
|
10554
10554
|
listItem: u(),
|
|
10555
10555
|
listOrdered: u(),
|
|
10556
10556
|
listUnordered: u(),
|
|
@@ -10583,14 +10583,14 @@ function Jm(e) {
|
|
|
10583
10583
|
buffer: a,
|
|
10584
10584
|
resume: c,
|
|
10585
10585
|
data: n
|
|
10586
|
-
},
|
|
10586
|
+
}, q = [];
|
|
10587
10587
|
let K = -1;
|
|
10588
10588
|
for (; ++K < I.length; )
|
|
10589
10589
|
if (I[K][1].type === "listOrdered" || I[K][1].type === "listUnordered")
|
|
10590
10590
|
if (I[K][0] === "enter")
|
|
10591
|
-
|
|
10591
|
+
q.push(K);
|
|
10592
10592
|
else {
|
|
10593
|
-
const Ne =
|
|
10593
|
+
const Ne = q.pop();
|
|
10594
10594
|
K = i(I, Ne, K);
|
|
10595
10595
|
}
|
|
10596
10596
|
for (K = -1; ++K < I.length; ) {
|
|
@@ -10619,9 +10619,9 @@ function Jm(e) {
|
|
|
10619
10619
|
return T;
|
|
10620
10620
|
}
|
|
10621
10621
|
function i(I, T, B) {
|
|
10622
|
-
let
|
|
10623
|
-
for (; ++
|
|
10624
|
-
const Se = I[
|
|
10622
|
+
let q = T - 1, K = -1, Ne = !1, Ke, $e, St, At;
|
|
10623
|
+
for (; ++q <= B; ) {
|
|
10624
|
+
const Se = I[q];
|
|
10625
10625
|
switch (Se[1].type) {
|
|
10626
10626
|
case "listUnordered":
|
|
10627
10627
|
case "listOrdered":
|
|
@@ -10630,7 +10630,7 @@ function Jm(e) {
|
|
|
10630
10630
|
break;
|
|
10631
10631
|
}
|
|
10632
10632
|
case "lineEndingBlank": {
|
|
10633
|
-
Se[0] === "enter" && (Ke && !At && !K && !St && (St =
|
|
10633
|
+
Se[0] === "enter" && (Ke && !At && !K && !St && (St = q), At = void 0);
|
|
10634
10634
|
break;
|
|
10635
10635
|
}
|
|
10636
10636
|
case "linePrefix":
|
|
@@ -10644,7 +10644,7 @@ function Jm(e) {
|
|
|
10644
10644
|
}
|
|
10645
10645
|
if (!K && Se[0] === "enter" && Se[1].type === "listItemPrefix" || K === -1 && Se[0] === "exit" && (Se[1].type === "listUnordered" || Se[1].type === "listOrdered")) {
|
|
10646
10646
|
if (Ke) {
|
|
10647
|
-
let pt =
|
|
10647
|
+
let pt = q;
|
|
10648
10648
|
for ($e = void 0; pt--; ) {
|
|
10649
10649
|
const He = I[pt];
|
|
10650
10650
|
if (He[1].type === "lineEnding" || He[1].type === "lineEndingBlank") {
|
|
@@ -10652,7 +10652,7 @@ function Jm(e) {
|
|
|
10652
10652
|
$e && (I[$e][1].type = "lineEndingBlank", Ne = !0), He[1].type = "lineEnding", $e = pt;
|
|
10653
10653
|
} else if (!(He[1].type === "linePrefix" || He[1].type === "blockQuotePrefix" || He[1].type === "blockQuotePrefixWhitespace" || He[1].type === "blockQuoteMarker" || He[1].type === "listItemIndent")) break;
|
|
10654
10654
|
}
|
|
10655
|
-
St && (!$e || St < $e) && (Ke._spread = !0), Ke.end = Object.assign({}, $e ? I[$e][1].start : Se[1].end), I.splice($e ||
|
|
10655
|
+
St && (!$e || St < $e) && (Ke._spread = !0), Ke.end = Object.assign({}, $e ? I[$e][1].start : Se[1].end), I.splice($e || q, 0, ["exit", Ke, Se[2]]), q++, B++;
|
|
10656
10656
|
}
|
|
10657
10657
|
if (Se[1].type === "listItemPrefix") {
|
|
10658
10658
|
const pt = {
|
|
@@ -10662,7 +10662,7 @@ function Jm(e) {
|
|
|
10662
10662
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
10663
10663
|
end: void 0
|
|
10664
10664
|
};
|
|
10665
|
-
Ke = pt, I.splice(
|
|
10665
|
+
Ke = pt, I.splice(q, 0, ["enter", pt, Se[2]]), q++, B++, St = void 0, At = !0;
|
|
10666
10666
|
}
|
|
10667
10667
|
}
|
|
10668
10668
|
}
|
|
@@ -10670,8 +10670,8 @@ function Jm(e) {
|
|
|
10670
10670
|
}
|
|
10671
10671
|
function o(I, T) {
|
|
10672
10672
|
return B;
|
|
10673
|
-
function B(
|
|
10674
|
-
s.call(this, I(
|
|
10673
|
+
function B(q) {
|
|
10674
|
+
s.call(this, I(q), q), T && T.call(this, q);
|
|
10675
10675
|
}
|
|
10676
10676
|
}
|
|
10677
10677
|
function a() {
|
|
@@ -10694,9 +10694,9 @@ function Jm(e) {
|
|
|
10694
10694
|
}
|
|
10695
10695
|
}
|
|
10696
10696
|
function l(I, T) {
|
|
10697
|
-
const B = this.stack.pop(),
|
|
10698
|
-
if (
|
|
10699
|
-
|
|
10697
|
+
const B = this.stack.pop(), q = this.tokenStack.pop();
|
|
10698
|
+
if (q)
|
|
10699
|
+
q[0].type !== I.type && (T ? T.call(this, I, q[0]) : (q[1] || qi).call(this, I, q[0]));
|
|
10700
10700
|
else throw new Error("Cannot close `" + I.type + "` (" + Bt({
|
|
10701
10701
|
start: I.start,
|
|
10702
10702
|
end: I.end
|
|
@@ -10765,12 +10765,12 @@ function Jm(e) {
|
|
|
10765
10765
|
}
|
|
10766
10766
|
function L(I) {
|
|
10767
10767
|
const B = this.stack[this.stack.length - 1].children;
|
|
10768
|
-
let
|
|
10769
|
-
(!
|
|
10768
|
+
let q = B[B.length - 1];
|
|
10769
|
+
(!q || q.type !== "text") && (q = as(), q.position = {
|
|
10770
10770
|
start: We(I.start),
|
|
10771
10771
|
// @ts-expect-error: we’ll add `end` later.
|
|
10772
10772
|
end: void 0
|
|
10773
|
-
}, B.push(
|
|
10773
|
+
}, B.push(q)), this.stack.push(q);
|
|
10774
10774
|
}
|
|
10775
10775
|
function U(I) {
|
|
10776
10776
|
const T = this.stack.pop();
|
|
@@ -10800,7 +10800,7 @@ function Jm(e) {
|
|
|
10800
10800
|
const I = this.resume(), T = this.stack[this.stack.length - 1];
|
|
10801
10801
|
T.value = I;
|
|
10802
10802
|
}
|
|
10803
|
-
function
|
|
10803
|
+
function V() {
|
|
10804
10804
|
const I = this.stack[this.stack.length - 1];
|
|
10805
10805
|
if (this.data.inReference) {
|
|
10806
10806
|
const T = this.data.referenceType || "shortcut";
|
|
@@ -10825,8 +10825,8 @@ function Jm(e) {
|
|
|
10825
10825
|
function ge() {
|
|
10826
10826
|
const I = this.stack[this.stack.length - 1], T = this.resume(), B = this.stack[this.stack.length - 1];
|
|
10827
10827
|
if (this.data.inReference = !0, B.type === "link") {
|
|
10828
|
-
const
|
|
10829
|
-
B.children =
|
|
10828
|
+
const q = I.children;
|
|
10829
|
+
B.children = q;
|
|
10830
10830
|
} else
|
|
10831
10831
|
B.alt = T;
|
|
10832
10832
|
}
|
|
@@ -10853,10 +10853,10 @@ function Jm(e) {
|
|
|
10853
10853
|
}
|
|
10854
10854
|
function ce(I) {
|
|
10855
10855
|
const T = this.sliceSerialize(I), B = this.data.characterReferenceType;
|
|
10856
|
-
let
|
|
10857
|
-
B ? (
|
|
10856
|
+
let q;
|
|
10857
|
+
B ? (q = Pa(T, B === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : q = Ar(T);
|
|
10858
10858
|
const K = this.stack[this.stack.length - 1];
|
|
10859
|
-
K.value +=
|
|
10859
|
+
K.value += q;
|
|
10860
10860
|
}
|
|
10861
10861
|
function Ve(I) {
|
|
10862
10862
|
const T = this.stack.pop();
|
|
@@ -13176,7 +13176,7 @@ function wy(e, t) {
|
|
|
13176
13176
|
// but not according to the types in hast-util-to-jsx-runtime
|
|
13177
13177
|
components: i,
|
|
13178
13178
|
ignoreInvalidStyle: !0,
|
|
13179
|
-
jsx:
|
|
13179
|
+
jsx: W,
|
|
13180
13180
|
jsxs: Ae,
|
|
13181
13181
|
passKeys: !0,
|
|
13182
13182
|
passNode: !0
|
|
@@ -13226,7 +13226,7 @@ const co = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fil
|
|
|
13226
13226
|
}), Sy = st(
|
|
13227
13227
|
[
|
|
13228
13228
|
"rounded-[43px] flex flex-col justify-between absolute w-80 h-5/6",
|
|
13229
|
-
"bg-asm-gray-500 shadow-
|
|
13229
|
+
"bg-asm-gray-500 shadow-2xl border border-gray-200/60 transition-all duration-300",
|
|
13230
13230
|
"motion-reduce:transition-none transform-gpu overflow-hidden"
|
|
13231
13231
|
],
|
|
13232
13232
|
{
|
|
@@ -13382,62 +13382,62 @@ const Ry = ({
|
|
|
13382
13382
|
C && b(), M(!C);
|
|
13383
13383
|
}, P = (J) => {
|
|
13384
13384
|
J.preventDefault(), O.trim() && (h({ parts: [{ type: "text", text: O }] }), R(""), s.current && (s.current.style.height = "auto"));
|
|
13385
|
-
},
|
|
13385
|
+
}, V = e == null ? void 0 : e.logo, ue = (e == null ? void 0 : e.title) ?? "Ask ASMBL";
|
|
13386
13386
|
return /* @__PURE__ */ Ae("div", { className: Iy({ position: c, open: C }), children: [
|
|
13387
13387
|
/* @__PURE__ */ Ae("div", { className: Sy({ position: c, open: C }), children: [
|
|
13388
13388
|
/* @__PURE__ */ Ae("div", { className: "px-4 pt-6 pb-3 flex items-center gap-3", children: [
|
|
13389
|
-
/* @__PURE__ */
|
|
13390
|
-
/* @__PURE__ */
|
|
13391
|
-
/* @__PURE__ */
|
|
13389
|
+
V && /* @__PURE__ */ W("img", { width: 28, height: 28, src: V, alt: "" }),
|
|
13390
|
+
/* @__PURE__ */ W("h2", { className: "text-xl font-bold text-asm-purple", children: ue }),
|
|
13391
|
+
/* @__PURE__ */ W(
|
|
13392
13392
|
"button",
|
|
13393
13393
|
{
|
|
13394
13394
|
className: "absolute top-4 right-4 text-asm-purple transition-colors bg-transparent hover:bg-asm-blue/30 rounded-full w-9 h-9 flex justify-center items-center cursor-pointer",
|
|
13395
13395
|
onClick: () => U(!1),
|
|
13396
13396
|
disabled: !L,
|
|
13397
13397
|
"aria-label": "Hide chat",
|
|
13398
|
-
children: /* @__PURE__ */
|
|
13398
|
+
children: /* @__PURE__ */ W("img", { width: 20, height: 20, src: co, alt: "" })
|
|
13399
13399
|
}
|
|
13400
13400
|
)
|
|
13401
13401
|
] }),
|
|
13402
13402
|
!f && L && d && /* @__PURE__ */ Ae("div", { className: "absolute bg-asm-white w-full opacity-8 z-40 flex flex-col gap-2 items-center justify-center h-full", children: [
|
|
13403
|
-
/* @__PURE__ */
|
|
13403
|
+
/* @__PURE__ */ W(
|
|
13404
13404
|
"button",
|
|
13405
13405
|
{
|
|
13406
13406
|
className: "absolute top-2 right-2 text-asm-purple transition-colors bg-transparent hover:bg-asm-blue/30 rounded-full w-10 h-10 flex justify-center items-center cursor-pointer",
|
|
13407
13407
|
onClick: () => U(!1),
|
|
13408
13408
|
"aria-label": "Hide chat",
|
|
13409
|
-
children: /* @__PURE__ */
|
|
13409
|
+
children: /* @__PURE__ */ W("img", { width: 20, height: 20, src: co, alt: "" })
|
|
13410
13410
|
}
|
|
13411
13411
|
),
|
|
13412
13412
|
/* @__PURE__ */ Ae("h3", { className: "text-center font-bold", children: [
|
|
13413
13413
|
"Sorry, I'm having trouble",
|
|
13414
|
-
/* @__PURE__ */
|
|
13414
|
+
/* @__PURE__ */ W("br", {}),
|
|
13415
13415
|
"connecting right now."
|
|
13416
13416
|
] }),
|
|
13417
|
-
/* @__PURE__ */
|
|
13417
|
+
/* @__PURE__ */ W("p", { className: "text-center", children: ":(" })
|
|
13418
13418
|
] }),
|
|
13419
|
-
!L && !a && !(e != null && e.welcomeHeading) && /* @__PURE__ */
|
|
13420
|
-
/* @__PURE__ */
|
|
13421
|
-
/* @__PURE__ */
|
|
13422
|
-
x.map((J, ge) => /* @__PURE__ */
|
|
13419
|
+
!L && !a && !(e != null && e.welcomeHeading) && V && /* @__PURE__ */ W("div", { className: "flex-1 flex flex-col items-center justify-center pb-20", children: /* @__PURE__ */ W("img", { width: 52, height: 52, src: V, className: "opacity-20", alt: "" }) }),
|
|
13420
|
+
/* @__PURE__ */ W("div", { className: Cy({ active: L || !!a }), children: /* @__PURE__ */ W("div", { className: `flex flex-col relative h-full w-full rounded-t-[43px] overflow-hidden ${x.length > 0 || a || f ? "bg-asm-white shadow-sm" : "bg-transparent"} ${x.length > 0 ? "justify-end" : "justify-start"}`, children: x.length > 0 ? /* @__PURE__ */ Ae("div", { className: "overflow-y-auto h-full flex flex-col", ref: u, children: [
|
|
13421
|
+
/* @__PURE__ */ W("div", { className: "flex-1" }),
|
|
13422
|
+
x.map((J, ge) => /* @__PURE__ */ W(
|
|
13423
13423
|
"div",
|
|
13424
13424
|
{
|
|
13425
13425
|
className: "px-4 py-2 first:pt-4 last:pb-4",
|
|
13426
13426
|
style: { overflowAnchor: "none" },
|
|
13427
13427
|
children: /* @__PURE__ */ Ae("div", { className: zy({ role: J.role }), children: [
|
|
13428
|
-
/* @__PURE__ */
|
|
13429
|
-
f && ge + 1 === x.length && /* @__PURE__ */
|
|
13430
|
-
/* @__PURE__ */
|
|
13428
|
+
/* @__PURE__ */ W("div", { className: "relative shrink-0", children: J.role === "user" ? /* @__PURE__ */ W("div", { className: "rounded-full bg-asm-gray-500 ml-1 w-10 h-10 p-2", children: /* @__PURE__ */ W("svg", { className: "w-6 h-6", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ W("path", { fillRule: "evenodd", d: "M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z", clipRule: "evenodd" }) }) }) : /* @__PURE__ */ Ae("div", { className: "relative", children: [
|
|
13429
|
+
f && ge + 1 === x.length && /* @__PURE__ */ W("span", { className: "shadow text-xs text-asm-gray-400 leading-none absolute -bottom-4 left-4 z-10 bg-white pb-2 px-2 rounded-xl", children: "..." }),
|
|
13430
|
+
V && /* @__PURE__ */ W("img", { className: "mr-1", width: 36, height: 36, src: V, alt: "" })
|
|
13431
13431
|
] }) }),
|
|
13432
|
-
J.role === "user" ? /* @__PURE__ */
|
|
13433
|
-
J.parts.filter(on).map((g) => g.text).join("") && /* @__PURE__ */
|
|
13432
|
+
J.role === "user" ? /* @__PURE__ */ W("div", { className: "bg-asm-pink-400 rounded-3xl rounded-tr-none w-full", children: /* @__PURE__ */ W("p", { className: "text-gray-600 text-sm p-3 whitespace-pre-wrap", children: J.parts.filter(on).map((g) => g.text).join("") }) }) : /* @__PURE__ */ Ae("div", { className: "bg-asm-gray-500 rounded-3xl rounded-tl-none w-full overflow-hidden", children: [
|
|
13433
|
+
J.parts.filter(on).map((g) => g.text).join("") && /* @__PURE__ */ W("div", { className: "text-gray-600 text-sm p-3 prose prose-sm max-w-none", children: /* @__PURE__ */ W(yy, { children: J.parts.filter(on).map((g) => g.text).join("") }) }),
|
|
13434
13434
|
J.parts.filter(Wt).map((g) => {
|
|
13435
13435
|
var ce, Ve;
|
|
13436
13436
|
if (jd(g) !== "ask_multiple_choice") return null;
|
|
13437
13437
|
const { toolCallId: he, state: Oe } = g, v = g.input, fe = Oe === "output-available", Ue = fe ? (ce = g.output) == null ? void 0 : ce.selectedId : void 0;
|
|
13438
13438
|
return /* @__PURE__ */ Ae("div", { className: "px-3 pb-3", children: [
|
|
13439
|
-
/* @__PURE__ */
|
|
13440
|
-
/* @__PURE__ */
|
|
13439
|
+
/* @__PURE__ */ W("p", { className: "text-gray-600 text-sm font-medium mb-2", children: v.question }),
|
|
13440
|
+
/* @__PURE__ */ W("div", { className: "flex flex-col gap-1.5", children: (Ve = v.choices) == null ? void 0 : Ve.map((we) => /* @__PURE__ */ W(
|
|
13441
13441
|
"button",
|
|
13442
13442
|
{
|
|
13443
13443
|
disabled: fe,
|
|
@@ -13464,11 +13464,11 @@ const Ry = ({
|
|
|
13464
13464
|
J.id
|
|
13465
13465
|
))
|
|
13466
13466
|
] }) : /* @__PURE__ */ Ae("div", { className: "flex flex-col gap-2 items-center px-4 py-4", children: [
|
|
13467
|
-
a ?? (e != null && e.welcomeHeading ? /* @__PURE__ */
|
|
13468
|
-
f && /* @__PURE__ */
|
|
13467
|
+
a ?? (e != null && e.welcomeHeading ? /* @__PURE__ */ W("h3", { className: "text-center font-bold", children: e.welcomeHeading }) : null),
|
|
13468
|
+
f && /* @__PURE__ */ W("p", { className: "text-center bg-white py-1 px-2 rounded-xl text-sm", children: "This should only take a moment…" })
|
|
13469
13469
|
] }) }) }),
|
|
13470
|
-
/* @__PURE__ */
|
|
13471
|
-
/* @__PURE__ */
|
|
13470
|
+
/* @__PURE__ */ W("div", { className: "absolute bottom-0 left-0 w-full flex items-center px-4 py-6 z-50 bg-asm-gray-500", children: /* @__PURE__ */ Ae("form", { className: Ay(), onSubmit: P, children: [
|
|
13471
|
+
/* @__PURE__ */ W(
|
|
13472
13472
|
"textarea",
|
|
13473
13473
|
{
|
|
13474
13474
|
ref: s,
|
|
@@ -13485,29 +13485,29 @@ const Ry = ({
|
|
|
13485
13485
|
onKeyDown: (J) => {
|
|
13486
13486
|
J.key === "Enter" && !J.shiftKey && !J.repeat && (J.preventDefault(), O.trim() && (h({ parts: [{ type: "text", text: O }] }), R(""), s.current && (s.current.style.height = "auto")));
|
|
13487
13487
|
},
|
|
13488
|
-
className: "w-full bg-white rounded-3xl pl-4 pr-12 py-3 min-h-[46px] max-h-[500px] shadow-sm ring-1 ring-gray-200
|
|
13488
|
+
className: "w-full bg-white rounded-3xl pl-4 pr-12 py-3 min-h-[46px] max-h-[500px] shadow-sm ring-1 ring-gray-200 resize-none leading-[1.4]",
|
|
13489
13489
|
placeholder: (e == null ? void 0 : e.placeholder) ?? ""
|
|
13490
13490
|
}
|
|
13491
13491
|
),
|
|
13492
|
-
/* @__PURE__ */
|
|
13492
|
+
/* @__PURE__ */ W(
|
|
13493
13493
|
"button",
|
|
13494
13494
|
{
|
|
13495
13495
|
className: _y({ active: L }),
|
|
13496
13496
|
type: "submit",
|
|
13497
13497
|
disabled: !L,
|
|
13498
13498
|
"aria-label": "Send message",
|
|
13499
|
-
children: /* @__PURE__ */
|
|
13499
|
+
children: /* @__PURE__ */ W("img", { width: 18, height: 18, src: Ey, alt: "", "aria-hidden": "true" })
|
|
13500
13500
|
}
|
|
13501
13501
|
)
|
|
13502
13502
|
] }) })
|
|
13503
13503
|
] }),
|
|
13504
|
-
/* @__PURE__ */
|
|
13504
|
+
/* @__PURE__ */ W(
|
|
13505
13505
|
"button",
|
|
13506
13506
|
{
|
|
13507
13507
|
className: Ty({ position: c, open: C }),
|
|
13508
13508
|
onClick: Z,
|
|
13509
13509
|
"aria-label": C ? "Close widget" : "Open widget",
|
|
13510
|
-
children: /* @__PURE__ */
|
|
13510
|
+
children: /* @__PURE__ */ W("img", { className: "absolute", width: 30, height: 30, src: V ?? ky, alt: "" })
|
|
13511
13511
|
}
|
|
13512
13512
|
)
|
|
13513
13513
|
] });
|