@saar-ai/web-widget 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adopt-stylesheet.d.ts +11 -0
- package/dist/adopt-stylesheet.d.ts.map +1 -0
- package/dist/chunks/{host-widget-BtiYIMwb.js → host-widget-BZKCb7yR.js} +1777 -127
- package/dist/concierge-shell.css +2 -0
- package/dist/concierge-state.d.ts +234 -0
- package/dist/concierge-state.d.ts.map +1 -0
- package/dist/dock/dock-renderer.d.ts +3 -0
- package/dist/dock/dock-renderer.d.ts.map +1 -0
- package/dist/dock/dock-state.d.ts +34 -174
- package/dist/dock/dock-state.d.ts.map +1 -1
- package/dist/generated/concierge-shell-css.d.ts +2 -0
- package/dist/generated/concierge-shell-css.d.ts.map +1 -0
- package/dist/generated/widget-css.d.ts.map +1 -1
- package/dist/host-widget.d.ts +24 -1
- package/dist/host-widget.d.ts.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +205 -138
- package/dist/mount.d.ts +4 -5
- package/dist/mount.d.ts.map +1 -1
- package/dist/next/index.js +1 -1
- package/dist/renderers.d.ts +3 -0
- package/dist/renderers.d.ts.map +1 -0
- package/dist/styles.d.ts +1 -0
- package/dist/styles.d.ts.map +1 -1
- package/dist/voice-widget.d.ts +93 -3
- package/dist/voice-widget.d.ts.map +1 -1
- package/dist/widget/concierge-launcher.d.ts +53 -0
- package/dist/widget/concierge-launcher.d.ts.map +1 -0
- package/dist/widget/concierge-shell.d.ts +255 -0
- package/dist/widget/concierge-shell.d.ts.map +1 -0
- package/dist/widget/position.d.ts +65 -0
- package/dist/widget/position.d.ts.map +1 -0
- package/dist/widget/shell-renderer.d.ts +3 -0
- package/dist/widget/shell-renderer.d.ts.map +1 -0
- package/dist/widget/transcript-geometry.d.ts +220 -0
- package/dist/widget/transcript-geometry.d.ts.map +1 -0
- package/dist/widget/widget-view.d.ts +74 -0
- package/dist/widget/widget-view.d.ts.map +1 -0
- package/dist/widget.css +1 -1
- package/package.json +1 -1
- package/src/styles/concierge-shell-entry.css +42 -0
- package/src/styles/widget-entry.css +39 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@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-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-scroll-snap-strictness:proximity;--tw-space-y-reverse:0;--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-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction: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-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, 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-black:#000;--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);--font-weight-medium:500;--font-weight-semibold:600;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-snug:1.375;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--ease-out:cubic-bezier(0, 0, .2, 1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--blur-md:12px;--blur-xl:24px;--blur-2xl:40px;--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)}}@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%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, 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;-webkit-text-decoration: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:where(:not(iframe)){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}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-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{.\[container-type\:size\]{container-type:size}.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.-inset-4{inset:calc(var(--spacing) * -4)}.inset-0{inset:0}.inset-1{inset:var(--spacing)}.inset-2{inset:calc(var(--spacing) * 2)}.inset-x-0{inset-inline:0}.start-1\/2{inset-inline-start:50%}.end-2{inset-inline-end:calc(var(--spacing) * 2)}.end-5{inset-inline-end:calc(var(--spacing) * 5)}.end-\[8\%\]{inset-inline-end:8%}.-top-16{top:calc(var(--spacing) * -16)}.top-1{top:var(--spacing)}.top-1\.5{top:calc(var(--spacing) * 1.5)}.top-1\/2{top:50%}.top-4{top:calc(var(--spacing) * 4)}.top-5{top:calc(var(--spacing) * 5)}.top-\[8\%\]{top:8%}.top-full{top:100%}.-right-10{right:calc(var(--spacing) * -10)}.right-1\.5{right:calc(var(--spacing) * 1.5)}.right-4{right:calc(var(--spacing) * 4)}.-bottom-20{bottom:calc(var(--spacing) * -20)}.bottom-0{bottom:0}.bottom-1\.5{bottom:calc(var(--spacing) * 1.5)}.bottom-4{bottom:calc(var(--spacing) * 4)}.-left-12{left:calc(var(--spacing) * -12)}.left-1\.5{left:calc(var(--spacing) * 1.5)}.left-1\/2{left:50%}.left-4{left:calc(var(--spacing) * 4)}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.z-\[55\]{z-index:55}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.my-1{margin-block:var(--spacing)}.-mt-0\.5{margin-top:calc(var(--spacing) * -.5)}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-\[104px\]{margin-top:104px}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.-ml-0\.5{margin-left:calc(var(--spacing) * -.5)}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.table{display:table}.aspect-\[5\/8\]{aspect-ratio:5/8}.aspect-square{aspect-ratio:1}.size-1\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-2\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-12{width:calc(var(--spacing) * 12);height:calc(var(--spacing) * 12)}.size-16{width:calc(var(--spacing) * 16);height:calc(var(--spacing) * 16)}.h-0\.5{height:calc(var(--spacing) * .5)}.h-1{height:var(--spacing)}.h-3{height:calc(var(--spacing) * 3)}.h-3\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-16{height:calc(var(--spacing) * 16)}.h-24{height:calc(var(--spacing) * 24)}.h-52{height:calc(var(--spacing) * 52)}.h-56{height:calc(var(--spacing) * 56)}.h-\[4\.5rem\]{height:4.5rem}.h-\[4\.8rem\]{height:4.8rem}.h-\[40px\]{height:40px}.h-\[132px\]{height:132px}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.min-h-0{min-height:0}.w-1{width:var(--spacing)}.w-3{width:calc(var(--spacing) * 3)}.w-3\.5{width:calc(var(--spacing) * 3.5)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-9{width:calc(var(--spacing) * 9)}.w-10{width:calc(var(--spacing) * 10)}.w-12{width:calc(var(--spacing) * 12)}.w-16{width:calc(var(--spacing) * 16)}.w-24{width:calc(var(--spacing) * 24)}.w-52{width:calc(var(--spacing) * 52)}.w-56{width:calc(var(--spacing) * 56)}.w-\[\.\.\.\]{width:...}.w-\[2\.1rem\]{width:2.1rem}.w-\[2px\]{width:2px}.w-\[3px\]{width:3px}.w-\[4\.8rem\]{width:4.8rem}.w-\[5\%\]{width:5%}.w-\[68\%\]{width:68%}.w-\[71\%\]{width:71%}.w-\[min\(97vw\,50dvh\)\]{width:min(97vw,50dvh)}.w-auto{width:auto}.w-full{width:100%}.w-px{width:1px}.max-w-\[14rem\]{max-width:14rem}.max-w-\[180px\]{max-width:180px}.max-w-full{max-width:100%}.min-w-0{min-width:0}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.basis-\[calc\(100\%\/1\.25\)\]{flex-basis:80%}.origin-bottom{transform-origin:bottom}.-translate-x-1\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-0{--tw-translate-y:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-2{--tw-translate-y:calc(var(--spacing) * 2);translate:var(--tw-translate-x) var(--tw-translate-y)}.scale-75{--tw-scale-x:75%;--tw-scale-y:75%;--tw-scale-z:75%;scale:var(--tw-scale-x) var(--tw-scale-y)}.scale-90{--tw-scale-x:90%;--tw-scale-y:90%;--tw-scale-z:90%;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)}.scale-\[0\.75\]{scale:.75}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-\[bot-blob-a_7s_ease-in-out_infinite\]{animation:7s ease-in-out infinite bot-blob-a}.animate-\[bot-blob-b_9s_ease-in-out_infinite\]{animation:9s ease-in-out infinite bot-blob-b}.animate-\[bot-blob-speak-a_1\.6s_ease-in-out_infinite\]{animation:1.6s ease-in-out infinite bot-blob-speak-a}.animate-\[bot-blob-speak-b_1\.4s_ease-in-out_infinite\]{animation:1.4s ease-in-out infinite bot-blob-speak-b}.animate-\[bot-breathe_4s_ease-in-out_infinite\]{animation:4s ease-in-out infinite bot-breathe}.animate-\[bot-core-pulse_0\.9s_ease-in-out_infinite\]{animation:.9s ease-in-out infinite bot-core-pulse}.animate-\[bot-halo-listen_2\.2s_ease-in-out_infinite\]{animation:2.2s ease-in-out infinite bot-halo-listen}.animate-\[bot-halo-speak_1\.4s_ease-in-out_infinite\]{animation:1.4s ease-in-out infinite bot-halo-speak}.animate-\[bot-halo-speak_1\.8s_ease-in-out_infinite\]{animation:1.8s ease-in-out infinite bot-halo-speak}.animate-\[bot-idle-scan_6s_ease-in-out_infinite\]{animation:6s ease-in-out infinite bot-idle-scan}.animate-\[bot-nod_0\.4s_ease-out\]{animation:.4s ease-out bot-nod}.animate-\[bot-orbit_1\.6s_linear_infinite\]{animation:1.6s linear infinite bot-orbit}.animate-\[bot-ring-listen_2\.2s_ease-in-out_infinite\]{animation:2.2s ease-in-out infinite bot-ring-listen}.animate-\[bot-ring-speak_1\.4s_ease-in-out_infinite\]{animation:1.4s ease-in-out infinite bot-ring-speak}.animate-\[eye-idle-drift_5s_ease-in-out_infinite\]{animation:5s ease-in-out infinite eye-idle-drift}.animate-\[eye-speak-stretch_0\.7s_ease-in-out_infinite\]{animation:.7s ease-in-out infinite eye-speak-stretch}.animate-\[pulse-glow_1\.6s_ease-in-out_infinite\]{animation:1.6s ease-in-out infinite pulse-glow}.animate-\[pulse-glow_3s_ease-in-out_infinite\]{animation:3s ease-in-out infinite pulse-glow}.animate-\[scan_4s_ease-in-out_infinite\]{animation:4s ease-in-out infinite scan}.animate-\[spin_18s_linear_infinite\]{animation:18s linear infinite spin}.animate-\[voice-bar_1\.4s_cubic-bezier\(0\.45\,0\,0\.55\,1\)_infinite\]{animation:1.4s cubic-bezier(.45,0,.55,1) infinite voice-bar}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-wait{cursor:wait}.touch-none{touch-action:none}.resize{resize:both}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-mandatory{--tw-scroll-snap-strictness:mandatory}.snap-start{scroll-snap-align:start}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.grid-cols-\[repeat\(auto-fit\,minmax\(15rem\,1fr\)\)\]{grid-template-columns:repeat(auto-fit,minmax(15rem,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.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{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-\[2\%\]{gap:2%}.gap-\[2px\]{gap:2px}.gap-\[3px\]{gap:3px}.gap-px{gap:1px}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing) * var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)))}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-clip{overflow:clip}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overscroll-x-contain{overscroll-behavior-x:contain}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-black\/5{border-color:#0000000d}@supports (color:color-mix(in lab, red, red)){.border-black\/5{border-color:color-mix(in oklab, var(--color-black) 5%, transparent)}}.border-black\/10{border-color:#0000001a}@supports (color:color-mix(in lab, red, red)){.border-black\/10{border-color:color-mix(in oklab, var(--color-black) 10%, transparent)}}.border-current{border-color:currentColor}.border-white\/40{border-color:#fff6}@supports (color:color-mix(in lab, red, red)){.border-white\/40{border-color:color-mix(in oklab, var(--color-white) 40%, transparent)}}.border-t-transparent{border-top-color:#0000}.bg-\[var\(--knot-surface\)\]{background-color:var(--knot-surface)}.bg-\[var\(--widget-accent\)\],.bg-\[var\(--widget-accent\)\]\/15{background-color:var(--widget-accent)}@supports (color:color-mix(in lab, red, red)){.bg-\[var\(--widget-accent\)\]\/15{background-color:color-mix(in oklab, var(--widget-accent) 15%, transparent)}}.bg-\[var\(--widget-bubble\)\]{background-color:var(--widget-bubble)}.bg-\[var\(--widget-card\)\]{background-color:var(--widget-card)}.bg-\[var\(--widget-chip\)\]{background-color:var(--widget-chip)}.bg-black\/5{background-color:#0000000d}@supports (color:color-mix(in lab, red, red)){.bg-black\/5{background-color:color-mix(in oklab, var(--color-black) 5%, transparent)}}.bg-black\/10{background-color:#0000001a}@supports (color:color-mix(in lab, red, red)){.bg-black\/10{background-color:color-mix(in oklab, var(--color-black) 10%, transparent)}}.bg-current{background-color:currentColor}.bg-gradient-to-b{--tw-gradient-position:to bottom in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-t{--tw-gradient-position:to top in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-tr{--tw-gradient-position:to top right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-\[linear-gradient\(to_bottom\,transparent\,var\(--widget-card\)_38\%\,var\(--widget-card\)\)\]{background-image:linear-gradient(to bottom,transparent,var(--widget-card) 38%,var(--widget-card))}.bg-\[radial-gradient\(circle\,color-mix\(in_oklab\,var\(--brand-amber\)_7\%\,transparent\)\,transparent_70\%\)\]{background-image:radial-gradient(circle,var(--brand-amber),transparent 70%)}@supports (color:color-mix(in lab, red, red)){.bg-\[radial-gradient\(circle\,color-mix\(in_oklab\,var\(--brand-amber\)_7\%\,transparent\)\,transparent_70\%\)\]{background-image:radial-gradient(circle,color-mix(in oklab,var(--brand-amber) 7%,transparent),transparent 70%)}}.bg-\[radial-gradient\(circle\,color-mix\(in_oklab\,var\(--brand-amber\)_12\%\,transparent\)\,color-mix\(in_oklab\,var\(--brand-rose\)_7\%\,transparent\)_55\%\,transparent_75\%\)\]{background-image:radial-gradient(circle,var(--brand-amber),var(--brand-rose) 55%,transparent 75%)}@supports (color:color-mix(in lab, red, red)){.bg-\[radial-gradient\(circle\,color-mix\(in_oklab\,var\(--brand-amber\)_12\%\,transparent\)\,color-mix\(in_oklab\,var\(--brand-rose\)_7\%\,transparent\)_55\%\,transparent_75\%\)\]{background-image:radial-gradient(circle,color-mix(in oklab,var(--brand-amber) 12%,transparent),color-mix(in oklab,var(--brand-rose) 7%,transparent) 55%,transparent 75%)}}.bg-\[radial-gradient\(circle\,color-mix\(in_oklab\,var\(--brand-rose\)_5\%\,transparent\)\,transparent_70\%\)\]{background-image:radial-gradient(circle,var(--brand-rose),transparent 70%)}@supports (color:color-mix(in lab, red, red)){.bg-\[radial-gradient\(circle\,color-mix\(in_oklab\,var\(--brand-rose\)_5\%\,transparent\)\,transparent_70\%\)\]{background-image:radial-gradient(circle,color-mix(in oklab,var(--brand-rose) 5%,transparent),transparent 70%)}}.bg-\[radial-gradient\(circle\,var\(--knot-halo\)\,transparent_70\%\)\]{background-image:radial-gradient(circle,var(--knot-halo),transparent 70%)}.bg-\[radial-gradient\(circle\,var\(--widget-card\)_58\%\,transparent_72\%\)\]{background-image:radial-gradient(circle,var(--widget-card) 58%,transparent 72%)}.from-transparent{--tw-gradient-from:transparent;--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))}.from-white\/80{--tw-gradient-from:#fffc}@supports (color:color-mix(in lab, red, red)){.from-white\/80{--tw-gradient-from:color-mix(in oklab, var(--color-white) 80%, transparent)}}.from-white\/80{--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-\[color-mix\(in_oklab\,var\(--brand-plum\)_55\%\,white\)\]{--tw-gradient-to:var(--brand-plum)}@supports (color:color-mix(in lab, red, red)){.to-\[color-mix\(in_oklab\,var\(--brand-plum\)_55\%\,white\)\]{--tw-gradient-to:color-mix(in oklab,var(--brand-plum) 55%,white)}}.to-\[color-mix\(in_oklab\,var\(--brand-plum\)_55\%\,white\)\]{--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-transparent{--tw-gradient-to:transparent;--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))}.object-cover{object-fit:cover}.p-0{padding:0}.p-1{padding:var(--spacing)}.p-1\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-\[1\.5px\]{padding:1.5px}.px-1{padding-inline:var(--spacing)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.ps-2{padding-inline-start:calc(var(--spacing) * 2)}.ps-4{padding-inline-start:calc(var(--spacing) * 4)}.pe-4{padding-inline-end:calc(var(--spacing) * 4)}.pe-12{padding-inline-end:calc(var(--spacing) * 12)}.pt-2\.5{padding-top:calc(var(--spacing) * 2.5)}.text-center{text-align:center}.font-mono{font-family:var(--font-mono)}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[0\.85em\]{font-size:.85em}.text-\[10px\]{font-size:10px}.text-\[14px\]{font-size:14px}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.text-pretty{text-wrap:pretty}.whitespace-nowrap{white-space:nowrap}.text-\[var\(--widget-accent\)\]{color:var(--widget-accent)}.text-\[var\(--widget-accent-foreground\)\]{color:var(--widget-accent-foreground)}.text-\[var\(--widget-foreground\)\]{color:var(--widget-foreground)}.text-\[var\(--widget-foreground-muted\)\]{color:var(--widget-foreground-muted)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.opacity-0{opacity:0}.opacity-25{opacity:.25}.opacity-30{opacity:.3}.opacity-40{opacity:.4}.opacity-45{opacity:.45}.opacity-55{opacity:.55}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-90{opacity:.9}.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-\[0_0_0_1px_color-mix\(in_oklab\,var\(--brand-plum\)_18\%\,transparent\)\,0_4px_14px_-2px_color-mix\(in_oklab\,var\(--brand-plum\)_45\%\,transparent\)\,0_0_22px_-4px_color-mix\(in_oklab\,var\(--brand-rose\)_40\%\,transparent\)\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,var(--brand-plum)), 0 4px 14px -2px var(--tw-shadow-color,var(--brand-plum)), 0 0 22px -4px var(--tw-shadow-color,var(--brand-rose))}@supports (color:color-mix(in lab, red, red)){.shadow-\[0_0_0_1px_color-mix\(in_oklab\,var\(--brand-plum\)_18\%\,transparent\)\,0_4px_14px_-2px_color-mix\(in_oklab\,var\(--brand-plum\)_45\%\,transparent\)\,0_0_22px_-4px_color-mix\(in_oklab\,var\(--brand-rose\)_40\%\,transparent\)\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,color-mix(in oklab,var(--brand-plum) 18%,transparent)), 0 4px 14px -2px var(--tw-shadow-color,color-mix(in oklab,var(--brand-plum) 45%,transparent)), 0 0 22px -4px var(--tw-shadow-color,color-mix(in oklab,var(--brand-rose) 40%,transparent))}}.shadow-\[0_0_0_1px_color-mix\(in_oklab\,var\(--brand-plum\)_18\%\,transparent\)\,0_4px_14px_-2px_color-mix\(in_oklab\,var\(--brand-plum\)_45\%\,transparent\)\,0_0_22px_-4px_color-mix\(in_oklab\,var\(--brand-rose\)_40\%\,transparent\)\]{box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_0_6px_color-mix\(in_oklab\,var\(--brand-rose\)_55\%\,transparent\)\]{--tw-shadow:0 0 6px var(--tw-shadow-color,var(--brand-rose))}@supports (color:color-mix(in lab, red, red)){.shadow-\[0_0_6px_color-mix\(in_oklab\,var\(--brand-rose\)_55\%\,transparent\)\]{--tw-shadow:0 0 6px var(--tw-shadow-color,color-mix(in oklab,var(--brand-rose) 55%,transparent))}}.shadow-\[0_0_6px_color-mix\(in_oklab\,var\(--brand-rose\)_55\%\,transparent\)\]{box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_0_8px_color-mix\(in_oklab\,var\(--brand-rose\)_60\%\,transparent\)\]{--tw-shadow:0 0 8px var(--tw-shadow-color,var(--brand-rose))}@supports (color:color-mix(in lab, red, red)){.shadow-\[0_0_8px_color-mix\(in_oklab\,var\(--brand-rose\)_60\%\,transparent\)\]{--tw-shadow:0 0 8px var(--tw-shadow-color,color-mix(in oklab,var(--brand-rose) 60%,transparent))}}.shadow-\[0_0_8px_color-mix\(in_oklab\,var\(--brand-rose\)_60\%\,transparent\)\]{box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_0_12px_color-mix\(in_oklab\,var\(--brand-amber\)_55\%\,transparent\)\]{--tw-shadow:0 0 12px var(--tw-shadow-color,var(--brand-amber))}@supports (color:color-mix(in lab, red, red)){.shadow-\[0_0_12px_color-mix\(in_oklab\,var\(--brand-amber\)_55\%\,transparent\)\]{--tw-shadow:0 0 12px var(--tw-shadow-color,color-mix(in oklab,var(--brand-amber) 55%,transparent))}}.shadow-\[0_0_12px_color-mix\(in_oklab\,var\(--brand-amber\)_55\%\,transparent\)\]{box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_2px_8px_-2px_rgba\(0\,0\,0\,0\.15\)\]{--tw-shadow:0 2px 8px -2px var(--tw-shadow-color,#00000026);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_2px_10px_-2px_color-mix\(in_oklab\,var\(--brand-plum\)_35\%\,transparent\)\]{--tw-shadow:0 2px 10px -2px var(--tw-shadow-color,var(--brand-plum))}@supports (color:color-mix(in lab, red, red)){.shadow-\[0_2px_10px_-2px_color-mix\(in_oklab\,var\(--brand-plum\)_35\%\,transparent\)\]{--tw-shadow:0 2px 10px -2px var(--tw-shadow-color,color-mix(in oklab,var(--brand-plum) 35%,transparent))}}.shadow-\[0_2px_10px_-2px_color-mix\(in_oklab\,var\(--brand-plum\)_35\%\,transparent\)\]{box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_12px_32px_-12px_color-mix\(in_oklab\,var\(--brand-plum\)_35\%\,transparent\)\]{--tw-shadow:0 12px 32px -12px var(--tw-shadow-color,var(--brand-plum))}@supports (color:color-mix(in lab, red, red)){.shadow-\[0_12px_32px_-12px_color-mix\(in_oklab\,var\(--brand-plum\)_35\%\,transparent\)\]{--tw-shadow:0 12px 32px -12px var(--tw-shadow-color,color-mix(in oklab,var(--brand-plum) 35%,transparent))}}.shadow-\[0_12px_32px_-12px_color-mix\(in_oklab\,var\(--brand-plum\)_35\%\,transparent\)\]{box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_30px_80px_-20px_color-mix\(in_oklab\,var\(--brand-plum\)_25\%\,transparent\)\,inset_0_1px_0_rgba\(255\,255\,255\,0\.75\)\]{--tw-shadow:0 30px 80px -20px var(--tw-shadow-color,var(--brand-plum)), inset 0 1px 0 var(--tw-shadow-color,#ffffffbf)}@supports (color:color-mix(in lab, red, red)){.shadow-\[0_30px_80px_-20px_color-mix\(in_oklab\,var\(--brand-plum\)_25\%\,transparent\)\,inset_0_1px_0_rgba\(255\,255\,255\,0\.75\)\]{--tw-shadow:0 30px 80px -20px var(--tw-shadow-color,color-mix(in oklab,var(--brand-plum) 25%,transparent)), inset 0 1px 0 var(--tw-shadow-color,#ffffffbf)}}.shadow-\[0_30px_80px_-20px_color-mix\(in_oklab\,var\(--brand-plum\)_25\%\,transparent\)\,inset_0_1px_0_rgba\(255\,255\,255\,0\.75\)\]{box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[inset_0_1px_4px_rgba\(0\,0\,0\,0\.4\)\]{--tw-shadow:inset 0 1px 4px var(--tw-shadow-color,#0006);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring,.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-2{--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)}.ring-4{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + 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-\[var\(--widget-accent\)\]\/30{--tw-ring-color:var(--widget-accent)}@supports (color:color-mix(in lab, red, red)){.ring-\[var\(--widget-accent\)\]\/30{--tw-ring-color:color-mix(in oklab, var(--widget-accent) 30%, transparent)}}.ring-black\/5{--tw-ring-color:#0000000d}@supports (color:color-mix(in lab, red, red)){.ring-black\/5{--tw-ring-color:color-mix(in oklab, var(--color-black) 5%, transparent)}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur-2xl{--tw-blur:blur(var(--blur-2xl));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,)}.blur-md{--tw-blur:blur(var(--blur-md));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,)}.blur-xl{--tw-blur:blur(var(--blur-xl));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-\[2px\]{--tw-backdrop-blur:blur(2px);-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,)}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-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,)}.backdrop-blur-xl{--tw-backdrop-blur:blur(var(--blur-xl));-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-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[background-color\,color\]{transition-property:background-color,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[border-color\]{transition-property:border-color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[opacity\,scale\]{transition-property:opacity,scale;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[transform\,opacity\]{transition-property:transform,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.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))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.delay-\[300ms\]{transition-delay:.3s}.delay-\[350ms\]{transition-delay:.35s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.duration-\[700ms\]{--tw-duration:.7s;transition-duration:.7s}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.placeholder\:text-\[var\(--widget-foreground-muted\)\]::placeholder{color:var(--widget-foreground-muted)}@media (hover:hover){.hover\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.hover\:text-\[var\(--widget-foreground\)\]:hover{color:var(--widget-foreground)}.hover\:shadow-\[0_0_0_1px_color-mix\(in_oklab\,var\(--brand-plum\)_26\%\,transparent\)\,0_6px_18px_-2px_color-mix\(in_oklab\,var\(--brand-plum\)_60\%\,transparent\)\,0_0_30px_-4px_color-mix\(in_oklab\,var\(--brand-rose\)_55\%\,transparent\)\]:hover{--tw-shadow:0 0 0 1px var(--tw-shadow-color,var(--brand-plum)), 0 6px 18px -2px var(--tw-shadow-color,var(--brand-plum)), 0 0 30px -4px var(--tw-shadow-color,var(--brand-rose))}@supports (color:color-mix(in lab, red, red)){.hover\:shadow-\[0_0_0_1px_color-mix\(in_oklab\,var\(--brand-plum\)_26\%\,transparent\)\,0_6px_18px_-2px_color-mix\(in_oklab\,var\(--brand-plum\)_60\%\,transparent\)\,0_0_30px_-4px_color-mix\(in_oklab\,var\(--brand-rose\)_55\%\,transparent\)\]:hover{--tw-shadow:0 0 0 1px var(--tw-shadow-color,color-mix(in oklab,var(--brand-plum) 26%,transparent)), 0 6px 18px -2px var(--tw-shadow-color,color-mix(in oklab,var(--brand-plum) 60%,transparent)), 0 0 30px -4px var(--tw-shadow-color,color-mix(in oklab,var(--brand-rose) 55%,transparent))}}.hover\:shadow-\[0_0_0_1px_color-mix\(in_oklab\,var\(--brand-plum\)_26\%\,transparent\)\,0_6px_18px_-2px_color-mix\(in_oklab\,var\(--brand-plum\)_60\%\,transparent\)\,0_0_30px_-4px_color-mix\(in_oklab\,var\(--brand-rose\)_55\%\,transparent\)\]:hover{box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}.focus\:bg-\[var\(--widget-bubble\)\]:focus{background-color:var(--widget-bubble)}.focus\:opacity-100:focus{opacity:1}.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\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:ring-2:focus-visible{--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-visible\:ring-white\/50:focus-visible{--tw-ring-color:#ffffff80}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-white\/50:focus-visible{--tw-ring-color:color-mix(in oklab, var(--color-white) 50%, transparent)}}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.disabled\:cursor-default:disabled{cursor:default}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.disabled\:opacity-60:disabled{opacity:.6}.disabled\:opacity-70:disabled{opacity:.7}.aria-disabled\:cursor-default[aria-disabled=true]{cursor:default}.aria-disabled\:opacity-60[aria-disabled=true]{opacity:.6}@media (prefers-reduced-motion:reduce){.motion-reduce\:scale-y-75{--tw-scale-y:75%;scale:var(--tw-scale-x) var(--tw-scale-y)}.motion-reduce\:animate-none{animation:none}.motion-reduce\:opacity-70{opacity:.7}.motion-reduce\:transition-none{transition-property:none}}@media (min-width:40rem){.sm\:top-6{top:calc(var(--spacing) * 6)}.sm\:right-6{right:calc(var(--spacing) * 6)}.sm\:bottom-6{bottom:calc(var(--spacing) * 6)}.sm\:left-6{left:calc(var(--spacing) * 6)}.sm\:ps-6{padding-inline-start:calc(var(--spacing) * 6)}.sm\:pe-6{padding-inline-end:calc(var(--spacing) * 6)}}.rtl\:translate-x-1\/2:where(:dir(rtl),[dir=rtl],[dir=rtl] *){--tw-translate-x:calc(1 / 2 * 100%);translate:var(--tw-translate-x) var(--tw-translate-y)}.rtl\:-scale-x-100:where(:dir(rtl),[dir=rtl],[dir=rtl] *){--tw-scale-x:calc(100% * -1);scale:var(--tw-scale-x) var(--tw-scale-y)}.\[\&\:not\(\:first-child\)\]\:mt-2:not(:first-child){margin-top:calc(var(--spacing) * 2)}}:host,:root{--widget-card:oklch(98.2% 0 0/.97);--widget-bubble:oklch(95% .006 84.6/.92);--widget-chip:oklch(92.7% .008 73.7/.78);--widget-foreground:oklch(30.5% .002 106.5);--widget-foreground-muted:oklch(30.5% .002 106.5/.62);--widget-accent:oklch(46.8% .043 126.6);--widget-accent-foreground:oklch(97% .012 125.3);--widget-accent-ring:oklch(80% .05 125.3);--widget-shadow-tint:oklch(46.8% .043 126.6);--color-brand-plum-800:oklch(42% .19 330);--color-brand-plum-400:oklch(69.5% .169 330);--color-brand-rose-500:oklch(65% .22 20);--color-brand-rose-400:oklch(71.4% .19 20);--color-brand-amber-400:oklch(80% .16 80);--color-brand-amber-500:oklch(70.7% .185 80);--color-brand-amber-300:oklch(84.3% .121 80);--color-brand-ink:oklch(21% .01 280);--background:oklch(100% 0 0);--foreground:oklch(21% .01 280)}:host(.dark),.dark{--widget-card:oklch(26% .012 124.8/.95);--widget-bubble:oklch(31.6% .023 124.8/.9);--widget-chip:oklch(31.6% .023 124.8/.75);--widget-foreground:oklch(97% .006 84.6);--widget-foreground-muted:oklch(97% .006 84.6/.65);--widget-accent:oklch(80% .05 125.3);--widget-accent-foreground:oklch(26% .012 124.8);--widget-accent-ring:oklch(85.8% .037 17.9);--widget-shadow-tint:oklch(31.6% .023 124.8);--background:oklch(14% .01 280);--foreground:oklch(97% .006 84.6)}:host,:root{--wgt-primary:#111827;--wgt-on-primary:#fff;--wgt-surface:#fff;--wgt-surface-2:#f0efef;--wgt-surface-glass:#fffffff7;--wgt-surface-glass-blurred:#ffffff40;--wgt-surface-veil:#ffffffb3;--wgt-glass-tune:contrast(.3) brightness(1.8);--wgt-text:#1c1618;--wgt-text-muted:#1c1618ba;--wgt-border:#1c16181f;--wgt-ring:#111827;--wgt-radius:12px;--wgt-row-radius:9999px;--wgt-sheet-radius:12px;--wgt-card-radius:12px;--wgt-font:inherit;--wgt-caps:none}:host(.dark),.dark{--wgt-primary:#111827;--wgt-on-primary:#fff;--wgt-surface:#141414;--wgt-surface-2:#1f1f1f;--wgt-surface-glass:#141414f7;--wgt-surface-glass-blurred:#14141440;--wgt-surface-veil:#141414b3;--wgt-glass-tune:contrast(.9) brightness(.32);--wgt-text:#fbf2f5;--wgt-text-muted:#fbf2f5ba;--wgt-border:#fbf2f51f;--wgt-ring:#5a6376;--wgt-radius:12px;--wgt-row-radius:9999px;--wgt-sheet-radius:12px;--wgt-card-radius:12px;--wgt-font:inherit;--wgt-caps:none}@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-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-scroll-snap-strictness{syntax:"*";inherits:false;initial-value:proximity}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@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-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{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-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THE CONCIERGE'S STATE — docs/DOCK_SPEC.md §5.1, as one pure function that
|
|
3
|
+
* BOTH renderers read (docs/CONCIERGE_GENERATIONS.md §3).
|
|
4
|
+
*
|
|
5
|
+
* The widget (`widget/`) and the dock (`dock/`) draw the same session. Which
|
|
6
|
+
* state that session is in — heard, answered, muted, reconnected, handed to a
|
|
7
|
+
* person — is decided HERE and nowhere else; each renderer then maps the
|
|
8
|
+
* state to its own presentation (`dock/dock-state.ts`'s `deriveDockView`,
|
|
9
|
+
* `widget/widget-view.ts`'s `deriveWidgetView`). A renderer that reaches
|
|
10
|
+
* past its view to compute a state of its own is exactly the drift the two
|
|
11
|
+
* generations are built not to have.
|
|
12
|
+
*
|
|
13
|
+
* This module lives at `src/` root rather than under either renderer for the
|
|
14
|
+
* same reason `widget-cards.tsx` does: it belongs to neither, and a file's
|
|
15
|
+
* directory says which generation it belongs to.
|
|
16
|
+
*
|
|
17
|
+
* ## Why it is a pure function over a snapshot
|
|
18
|
+
*
|
|
19
|
+
* The same reason `voice-session-state.ts` and `bot-state.ts` are separate
|
|
20
|
+
* from the components that draw them: whether the shopper is being heard,
|
|
21
|
+
* answered, muted or reconnected is the one thing a voice product has to get
|
|
22
|
+
* right, and it must be assertable without a LiveKit room, a socket, a
|
|
23
|
+
* microphone or a DOM. §5.1 is a table; `concierge-state.test.ts` and
|
|
24
|
+
* `dock-state.test.ts` walk it row by row, which is only possible because
|
|
25
|
+
* this takes data and returns data.
|
|
26
|
+
*
|
|
27
|
+
* ## The precedence order IS the behaviour
|
|
28
|
+
*
|
|
29
|
+
* Several claimants can be true at once — a live call that has just
|
|
30
|
+
* escalated, a duck with a curation landing inside it, a reconnect with a
|
|
31
|
+
* refused microphone. The order below is spelled out rather than left to the
|
|
32
|
+
* shape of the `if`s, and it is the same precedence `host-widget.tsx`'s
|
|
33
|
+
* status line already uses for its three claimants (session > voice > cart):
|
|
34
|
+
*
|
|
35
|
+
* 1. **`error`** — the conversation is broken; nothing else the row could
|
|
36
|
+
* say matters more.
|
|
37
|
+
* 2. **`offline`** — the tenant says there is no channel to answer on.
|
|
38
|
+
* 3. **`human`** — a PERSON holds the conversation. Voice is AI-only, so
|
|
39
|
+
* every voice state below is a lie while this is true.
|
|
40
|
+
* 4. **`mic_blocked`** — the browser refused. It outranks `reconnecting`
|
|
41
|
+
* because "resume" is an instruction the shopper cannot follow.
|
|
42
|
+
* 5. **`reconnecting`** — §5.1: the most-seen state on a conventionally
|
|
43
|
+
* navigating storefront.
|
|
44
|
+
* 6. **`ducked`** — the shopper turned to the page.
|
|
45
|
+
* 7. the live voice states, in the order `botStateFor` already established.
|
|
46
|
+
* 8. **`typing`** — the TEXT channel's phase (added 2026-09-15): an engaged
|
|
47
|
+
* session on `channel: 'text'` that nothing above has claimed. Below the
|
|
48
|
+
* live voice states because a room that is actually up outranks the
|
|
49
|
+
* channel label — a host mid-switch can say `text` for a render while the
|
|
50
|
+
* call is still talking.
|
|
51
|
+
* 9. **`cards`** — only over a quiet row (`dormant`/`ducked`) and only while
|
|
52
|
+
* the sheet is closed, per §5.1's "replaces `dock_ducked` once cards land
|
|
53
|
+
* during a duck". It never steals the caption from a live audio state,
|
|
54
|
+
* where the clause and the partial transcript are the point, and never
|
|
55
|
+
* from `typing`, whose caption is the shopper's own field.
|
|
56
|
+
* 10. **`dormant`**.
|
|
57
|
+
*
|
|
58
|
+
* ## What is a STATE and what is a VIEW
|
|
59
|
+
*
|
|
60
|
+
* `ConciergeSnapshot` carries the state and the three facts every renderer
|
|
61
|
+
* needs and none may recompute: whether a person holds the conversation
|
|
62
|
+
* (derived from the STATE, not the raw `escalated` flag — §5.1 puts `error`
|
|
63
|
+
* and `offline` above `human`, and a mark showing an operator's initials
|
|
64
|
+
* under an error row was the bug), whether there is a call to end, and how
|
|
65
|
+
* many cards are on the shelf. Everything about how a state LOOKS — a caption
|
|
66
|
+
* key, a control set, a border, a panel policy, an avatar mood — is a view's
|
|
67
|
+
* decision, and the views read the input for CONTENT (a partial transcript,
|
|
68
|
+
* an operator's line) but never for state.
|
|
69
|
+
*/
|
|
70
|
+
import type { VoicePhase } from './voice-session-state.js';
|
|
71
|
+
/** Every state the session can be in — §5.1's ten, plus the four the shipped widget already had. */
|
|
72
|
+
export declare const CONCIERGE_STATES: readonly ['dormant', 'connecting', 'listening', 'thinking', 'speaking', 'ducked', 'reconnecting', 'muted', 'mic_blocked', 'typing', 'human', 'offline', 'error', 'cards'];
|
|
73
|
+
export type ConciergeState = (typeof CONCIERGE_STATES)[number];
|
|
74
|
+
/** The voice leg, as the state machine needs to see it — a superset of `VoiceSessionSnapshot`'s fields. */
|
|
75
|
+
export interface ConciergeVoiceInput {
|
|
76
|
+
/** The tenant published voice AND this is not an embedded webview (§8.4). */
|
|
77
|
+
readonly enabled: boolean;
|
|
78
|
+
readonly phase: VoicePhase;
|
|
79
|
+
/** The caller's microphone is published to the room. */
|
|
80
|
+
readonly micOpen: boolean;
|
|
81
|
+
/** The browser is being asked for the microphone right now (`VoiceSessionSnapshot.micPending`). */
|
|
82
|
+
readonly micPending: boolean;
|
|
83
|
+
/** The browser REFUSED. Distinct from muted: no press can undo it on this page (§5.1). */
|
|
84
|
+
readonly micBlocked: boolean;
|
|
85
|
+
readonly agentPresent: boolean;
|
|
86
|
+
readonly agentSpeaking: boolean;
|
|
87
|
+
readonly callerSpeaking: boolean;
|
|
88
|
+
readonly awaitingAgent: boolean;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* The session, as data. Renderer-neutral by construction: nothing in here
|
|
92
|
+
* names a row, a panel, a caption or a launcher. `dock/dock-state.ts` and
|
|
93
|
+
* `widget/widget-view.ts` both take exactly this.
|
|
94
|
+
*/
|
|
95
|
+
export interface ConciergeStateInput {
|
|
96
|
+
/** The shopper has expressed intent — before that the concierge is resting, whatever the transports say. */
|
|
97
|
+
readonly engaged: boolean;
|
|
98
|
+
readonly voice: ConciergeVoiceInput;
|
|
99
|
+
/** What is in the composer right now. Only `dormant` and `typing` read it, for the send control. */
|
|
100
|
+
readonly draft: string;
|
|
101
|
+
/** §5.5 — the shopper turned to the page during `speaking`. */
|
|
102
|
+
readonly ducked: boolean;
|
|
103
|
+
/** §8.6 — the session is being resumed (a navigation, a return from lock). */
|
|
104
|
+
readonly reconnecting: boolean;
|
|
105
|
+
/** The room itself dropped, so the resume needs a tap rather than just a wait. */
|
|
106
|
+
readonly roomDropped: boolean;
|
|
107
|
+
/** A PERSON holds the conversation (`UseChatSessionResult.status === 'escalated'`). */
|
|
108
|
+
readonly escalated: boolean;
|
|
109
|
+
/** The operator's last line, once they have said anything. */
|
|
110
|
+
readonly operatorLine?: string;
|
|
111
|
+
/** The attach control is escalated-only (`AGENTS.md` — the concierge has no vision path). */
|
|
112
|
+
readonly canAttach: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* A host that can actually open the browser's own permission help (§5.1's
|
|
115
|
+
* `dock_fix_browser`).
|
|
116
|
+
*
|
|
117
|
+
* Gated for the same reason `canAttach` is: a control that provably does
|
|
118
|
+
* nothing is worse than no control. Nothing in the browser can open that UI
|
|
119
|
+
* from script, so most hosts have nothing to offer here — and
|
|
120
|
+
* `dock_mic_blocked` ("Mic blocked — type instead") already tells the
|
|
121
|
+
* shopper what they can do.
|
|
122
|
+
*/
|
|
123
|
+
readonly canFixPermission: boolean;
|
|
124
|
+
readonly offline: boolean;
|
|
125
|
+
readonly offlineMessage?: string;
|
|
126
|
+
/**
|
|
127
|
+
* The host's status line, for the two claimants that are genuinely ERRORS:
|
|
128
|
+
* the conversation itself is broken, or the voice leg is (a refused
|
|
129
|
+
* microphone, a dead speech vendor).
|
|
130
|
+
*/
|
|
131
|
+
readonly error?: string;
|
|
132
|
+
/**
|
|
133
|
+
* WHICH claimant `error` came from — the conversation, or the voice leg.
|
|
134
|
+
*
|
|
135
|
+
* The host resolves the precedence (session > voice) into one string before
|
|
136
|
+
* it reaches the state machine, and the string alone cannot say what it is:
|
|
137
|
+
* a view has to know a voice CONNECT failed to swap its transport text for
|
|
138
|
+
* §5.1's `dock_voice_failed`, and it must not do that to a session error
|
|
139
|
+
* that merely happened while the room was also down.
|
|
140
|
+
*/
|
|
141
|
+
readonly errorSource?: 'session' | 'voice';
|
|
142
|
+
/**
|
|
143
|
+
* A line the shopper needs to READ that is not an error — today, only
|
|
144
|
+
* `cart_add_failed`: the concierge said an item was going in the basket and
|
|
145
|
+
* only this browser knows it did not.
|
|
146
|
+
*
|
|
147
|
+
* It replaces a view's status line and changes nothing else. Folding it
|
|
148
|
+
* into `error` instead cost the dock its whole live state: an add that
|
|
149
|
+
* failed mid-call took `speaking` down to `error` for the rest of the
|
|
150
|
+
* session, so the clause disappeared and mute and interrupt went with it —
|
|
151
|
+
* and `agentAddFailed` is only cleared by the NEXT successful agent add, so
|
|
152
|
+
* it did not go away. §5.1 puts `cart_add_failed` in the caption; that is
|
|
153
|
+
* all it asks for.
|
|
154
|
+
*/
|
|
155
|
+
readonly notice?: string;
|
|
156
|
+
/** How many cards the latest curation put on the shelf. */
|
|
157
|
+
readonly shelfCount: number;
|
|
158
|
+
/**
|
|
159
|
+
* There is a conversation in the visor to go back to (added 2026-09-16).
|
|
160
|
+
*
|
|
161
|
+
* A FLAG rather than a count: the state machine never needs to know how
|
|
162
|
+
* long the conversation is, only that opening the transcript would show
|
|
163
|
+
* something. The host owns the transcript node and is the only thing that
|
|
164
|
+
* can say so.
|
|
165
|
+
*/
|
|
166
|
+
readonly hasTranscript: boolean;
|
|
167
|
+
readonly sheetOpen: boolean;
|
|
168
|
+
/** The live partial transcript, current utterance only (§5.1's `listening`). */
|
|
169
|
+
readonly partialTranscript?: string;
|
|
170
|
+
/** `FillerPolicy`'s model-authored acknowledgement (§6) — the designed `thinking` line. */
|
|
171
|
+
readonly preamble?: string;
|
|
172
|
+
/** The clause the agent is saying right now (§5.1's `speaking`). */
|
|
173
|
+
readonly clause?: string;
|
|
174
|
+
/**
|
|
175
|
+
* §5.1 (added 2026-09-15) — which channel the session is on. `text` is what
|
|
176
|
+
* makes an engaged, otherwise-unclaimed session `typing` rather than
|
|
177
|
+
* `dormant`.
|
|
178
|
+
*/
|
|
179
|
+
readonly channel: 'voice' | 'text';
|
|
180
|
+
/**
|
|
181
|
+
* The OTHER side is composing: a concierge reply is in flight or streaming,
|
|
182
|
+
* or — in `human` — an operator is typing. Draws §5.1's dots, and holds
|
|
183
|
+
* §3.6's glass off: a row cannot recede while it is being answered.
|
|
184
|
+
*/
|
|
185
|
+
readonly composing: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* §3.6 — the text session has been idle for `GLASS_IDLE_MS`: no turn, no
|
|
188
|
+
* draft, the field unfocused. A CLOCK, so the host runs it; the views only
|
|
189
|
+
* decide what an idle `typing` session looks like.
|
|
190
|
+
*/
|
|
191
|
+
readonly textIdle: boolean;
|
|
192
|
+
}
|
|
193
|
+
/** A concierge nobody has touched, on a tenant with no voice. Every field explicit — see `ConciergeStateInput`. */
|
|
194
|
+
export declare const idleConciergeInput: ConciergeStateInput;
|
|
195
|
+
/**
|
|
196
|
+
* What every renderer needs and none may recompute. See the module comment's
|
|
197
|
+
* "What is a STATE and what is a VIEW".
|
|
198
|
+
*/
|
|
199
|
+
export interface ConciergeSnapshot {
|
|
200
|
+
readonly state: ConciergeState;
|
|
201
|
+
/**
|
|
202
|
+
* There is a CALL to end — the room is being dialled, is up, or is waiting
|
|
203
|
+
* for the worker to join.
|
|
204
|
+
*
|
|
205
|
+
* A property of the SESSION and not of the host: `host-widget.tsx` passes
|
|
206
|
+
* an `onEndCall` handler for any tenant with voice published, so a control
|
|
207
|
+
* hung off the handler's presence stood in `dormant` before anything had
|
|
208
|
+
* been dialled and stayed standing after a connect that failed. Mute is not
|
|
209
|
+
* a hang-up and a reconnect is not a disconnection, so both keep it — it
|
|
210
|
+
* goes false only when the room is genuinely gone (`idle`, `disconnected`,
|
|
211
|
+
* `failed`) or the tenant has no voice leg at all.
|
|
212
|
+
*/
|
|
213
|
+
readonly callActive: boolean;
|
|
214
|
+
/**
|
|
215
|
+
* A PERSON holds the conversation. DERIVED from the state, never from the
|
|
216
|
+
* raw `escalated` flag: §5.1's precedence puts `error` and `offline` above
|
|
217
|
+
* `human`, so an escalated session with a status error showed the error
|
|
218
|
+
* row while the dock's mark still drew the operator's initials — the row
|
|
219
|
+
* saying the conversation is broken and the mark saying a person is here,
|
|
220
|
+
* in the same frame. One state, one answer, for both renderers.
|
|
221
|
+
*/
|
|
222
|
+
readonly handoff: boolean;
|
|
223
|
+
/** How many cards are on the shelf — a control's own name reads it (§5.1's "{count} picks — see"). */
|
|
224
|
+
readonly shelfCount: number;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* §5.1's precedence, as a function. The ONLY place a session fact becomes a
|
|
228
|
+
* state.
|
|
229
|
+
*
|
|
230
|
+
* @param input the session, as data — see {@link ConciergeStateInput}
|
|
231
|
+
* @returns the state and the facts every renderer shares
|
|
232
|
+
*/
|
|
233
|
+
export declare function deriveConciergeState(input: ConciergeStateInput): ConciergeSnapshot;
|
|
234
|
+
//# sourceMappingURL=concierge-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"concierge-state.d.ts","sourceRoot":"","sources":["../src/concierge-state.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ConversationView } from '../voice-widget.js';
|
|
2
|
+
export declare function DockRenderer({ turns, lastTurn, operatorName, composing, onEndCall, voice, statusLine, statusKind, notice, escalated, humanTyping, draft, onDraftChange, submit, showBasket, cart, attaching, onAttach, attachInput, transcript, extras, messages, locale, navigate, curationHref, productHref, skinStyle, avatar, attribution, dock, }: ConversationView): import("react").JSX.Element;
|
|
3
|
+
//# sourceMappingURL=dock-renderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dock-renderer.d.ts","sourceRoot":"","sources":["../../src/dock/dock-renderer.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,SAAS,EACT,KAAK,EACL,UAAU,EACV,UAAU,EACV,MAAM,EACN,SAAS,EACT,WAAW,EACX,KAAK,EACL,aAAa,EACb,MAAM,EACN,UAAU,EACV,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,WAAW,EACX,UAAU,EACV,MAAM,EACN,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,SAAS,EACT,MAAM,EACN,WAAW,EACX,IAAI,GACL,EAAE,gBAAgB,+BAoHlB"}
|
|
@@ -1,51 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* THE DOCK'S
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* ## The precedence order IS the behaviour
|
|
20
|
-
*
|
|
21
|
-
* Several claimants can be true at once — a live call that has just
|
|
22
|
-
* escalated, a duck with a curation landing inside it, a reconnect with a
|
|
23
|
-
* refused microphone. The order below is spelled out rather than left to the
|
|
24
|
-
* shape of the `if`s, and it is the same precedence `host-widget.tsx`'s
|
|
25
|
-
* status line already uses for its three claimants (session > voice > cart):
|
|
26
|
-
*
|
|
27
|
-
* 1. **`error`** — the conversation is broken; nothing else the row could
|
|
28
|
-
* say matters more.
|
|
29
|
-
* 2. **`offline`** — the tenant says there is no channel to answer on.
|
|
30
|
-
* 3. **`human`** — a PERSON holds the conversation. Voice is AI-only, so
|
|
31
|
-
* every voice state below is a lie while this is true.
|
|
32
|
-
* 4. **`mic_blocked`** — the browser refused. It outranks `reconnecting`
|
|
33
|
-
* because "resume" is an instruction the shopper cannot follow.
|
|
34
|
-
* 5. **`reconnecting`** — §5.1: the most-seen state on a conventionally
|
|
35
|
-
* navigating storefront.
|
|
36
|
-
* 6. **`ducked`** — the shopper turned to the page.
|
|
37
|
-
* 7. the live voice states, in the order `botStateFor` already established.
|
|
38
|
-
* 8. **`typing`** — the TEXT channel's phase (added 2026-09-15): an engaged
|
|
39
|
-
* session on `channel: 'text'` that nothing above has claimed. Below the
|
|
40
|
-
* live voice states because a room that is actually up outranks the
|
|
41
|
-
* channel label — a host mid-switch can say `text` for a render while the
|
|
42
|
-
* call is still talking.
|
|
43
|
-
* 9. **`cards`** — only over a quiet row (`dormant`/`ducked`) and only while
|
|
44
|
-
* the sheet is closed, per §5.1's "replaces `dock_ducked` once cards land
|
|
45
|
-
* during a duck". It never steals the caption from a live audio state,
|
|
46
|
-
* where the clause and the partial transcript are the point, and never
|
|
47
|
-
* from `typing`, whose caption is the shopper's own field.
|
|
48
|
-
* 10. **`dormant`**.
|
|
2
|
+
* THE DOCK'S VIEW — docs/DOCK_SPEC.md §5.1, drawn.
|
|
3
|
+
*
|
|
4
|
+
* Which state the session is in is decided in `../concierge-state.ts`
|
|
5
|
+
* (`deriveConciergeState`) and shared with the widget generation
|
|
6
|
+
* (docs/CONCIERGE_GENERATIONS.md §3). This module owns the other half for the
|
|
7
|
+
* dock: what each of those states LOOKS like as a row — its caption, its
|
|
8
|
+
* control set, its border, its mark's treatment, what it does to the sheet,
|
|
9
|
+
* and whether it may recede to glass. Everything under `dock/` renders what
|
|
10
|
+
* `deriveDockState` returns; nothing else in the dock decides a state, and
|
|
11
|
+
* nothing in here decides one either.
|
|
12
|
+
*
|
|
13
|
+
* The precedence order, the `cards` rule and the live-voice ordering used to
|
|
14
|
+
* live in this file. They moved out on 2026-09-17 with the split, unchanged,
|
|
15
|
+
* so that both renderers read one state machine; `dock-state.test.ts` still
|
|
16
|
+
* asserts §5.1 row by row through `deriveDockState`, whose signature and
|
|
17
|
+
* output are exactly what they were.
|
|
49
18
|
*
|
|
50
19
|
* ## Glass is a decision too
|
|
51
20
|
*
|
|
@@ -62,10 +31,13 @@
|
|
|
62
31
|
* and never localises: it has no messages, on purpose, so the table can be
|
|
63
32
|
* asserted without one.
|
|
64
33
|
*/
|
|
65
|
-
import type
|
|
66
|
-
|
|
67
|
-
export
|
|
68
|
-
export type
|
|
34
|
+
import { type ConciergeSnapshot, type ConciergeState, type ConciergeStateInput, type ConciergeVoiceInput } from '../concierge-state.js';
|
|
35
|
+
export declare const DOCK_STATES: readonly ["dormant", "connecting", "listening", "thinking", "speaking", "ducked", "reconnecting", "muted", "mic_blocked", "typing", "human", "offline", "error", "cards"];
|
|
36
|
+
export type DockState = ConciergeState;
|
|
37
|
+
export type DockVoiceInput = ConciergeVoiceInput;
|
|
38
|
+
export type DockStateInput = ConciergeStateInput;
|
|
39
|
+
/** A dock nobody has touched, on a tenant with no voice — see `idleConciergeInput`. */
|
|
40
|
+
export declare const idleDockInput: DockStateInput;
|
|
69
41
|
/**
|
|
70
42
|
* §2's control candidates. Never more than three are returned, and the ORDER
|
|
71
43
|
* is the order they are drawn in — `interrupt` first in `speaking` because
|
|
@@ -129,126 +101,6 @@ export type DockCaptionSpec = {
|
|
|
129
101
|
};
|
|
130
102
|
/** The `WidgetMessages` keys this module can name. Narrow on purpose — a typo is a compile error. */
|
|
131
103
|
export type DockMessageKey = 'dock_connecting' | 'dock_listening' | 'dock_thinking' | 'dock_ducked' | 'dock_still_here' | 'dock_still_here_resume' | 'dock_muted' | 'dock_mic_blocked' | 'dock_cards' | 'dock_voice_failed' | 'escalated_banner';
|
|
132
|
-
/** The voice leg, as the row needs to see it — a superset of `VoiceSessionSnapshot`'s fields. */
|
|
133
|
-
export interface DockVoiceInput {
|
|
134
|
-
/** The tenant published voice AND this is not an embedded webview (§8.4). */
|
|
135
|
-
readonly enabled: boolean;
|
|
136
|
-
readonly phase: VoicePhase;
|
|
137
|
-
/** The caller's microphone is published to the room. */
|
|
138
|
-
readonly micOpen: boolean;
|
|
139
|
-
/** The browser is being asked for the microphone right now (`VoiceSessionSnapshot.micPending`). */
|
|
140
|
-
readonly micPending: boolean;
|
|
141
|
-
/** The browser REFUSED. Distinct from muted: no press can undo it on this page (§5.1). */
|
|
142
|
-
readonly micBlocked: boolean;
|
|
143
|
-
readonly agentPresent: boolean;
|
|
144
|
-
readonly agentSpeaking: boolean;
|
|
145
|
-
readonly callerSpeaking: boolean;
|
|
146
|
-
readonly awaitingAgent: boolean;
|
|
147
|
-
}
|
|
148
|
-
export interface DockStateInput {
|
|
149
|
-
/** The shopper has expressed intent — before that the dock is resting, whatever the transports say. */
|
|
150
|
-
readonly engaged: boolean;
|
|
151
|
-
readonly voice: DockVoiceInput;
|
|
152
|
-
/** What is in the composer right now. Only `dormant` reads it, for the send control. */
|
|
153
|
-
readonly draft: string;
|
|
154
|
-
/** §5.5 — the shopper turned to the page during `speaking`. */
|
|
155
|
-
readonly ducked: boolean;
|
|
156
|
-
/** §8.6 — the session is being resumed (a navigation, a return from lock). */
|
|
157
|
-
readonly reconnecting: boolean;
|
|
158
|
-
/** The room itself dropped, so the resume needs a tap rather than just a wait. */
|
|
159
|
-
readonly roomDropped: boolean;
|
|
160
|
-
/** A PERSON holds the conversation (`UseChatSessionResult.status === 'escalated'`). */
|
|
161
|
-
readonly escalated: boolean;
|
|
162
|
-
/** The operator's last line, once they have said anything. */
|
|
163
|
-
readonly operatorLine?: string;
|
|
164
|
-
/** The attach control is escalated-only (`AGENTS.md` — the concierge has no vision path). */
|
|
165
|
-
readonly canAttach: boolean;
|
|
166
|
-
/**
|
|
167
|
-
* A host that can actually open the browser's own permission help (§5.1's
|
|
168
|
-
* `dock_fix_browser`).
|
|
169
|
-
*
|
|
170
|
-
* Gated for the same reason `canAttach` is: a control that provably does
|
|
171
|
-
* nothing is worse than no control. Nothing in the browser can open that UI
|
|
172
|
-
* from script, so most hosts have nothing to offer here — and
|
|
173
|
-
* `dock_mic_blocked` ("Mic blocked — type instead") already tells the
|
|
174
|
-
* shopper what they can do.
|
|
175
|
-
*/
|
|
176
|
-
readonly canFixPermission: boolean;
|
|
177
|
-
readonly offline: boolean;
|
|
178
|
-
readonly offlineMessage?: string;
|
|
179
|
-
/**
|
|
180
|
-
* The host's status line, for the two claimants that are genuinely ERRORS:
|
|
181
|
-
* the conversation itself is broken, or the voice leg is (a refused
|
|
182
|
-
* microphone, a dead speech vendor).
|
|
183
|
-
*/
|
|
184
|
-
readonly error?: string;
|
|
185
|
-
/**
|
|
186
|
-
* WHICH claimant `error` came from — the conversation, or the voice leg.
|
|
187
|
-
*
|
|
188
|
-
* The host resolves the precedence (session > voice) into one string before
|
|
189
|
-
* it reaches the dock, and the string alone cannot say what it is: this
|
|
190
|
-
* module has to know a voice CONNECT failed to swap its transport text for
|
|
191
|
-
* §5.1's `dock_voice_failed`, and it must not do that to a session error
|
|
192
|
-
* that merely happened while the room was also down.
|
|
193
|
-
*/
|
|
194
|
-
readonly errorSource?: 'session' | 'voice';
|
|
195
|
-
/**
|
|
196
|
-
* A line the shopper needs to READ that is not an error — today, only
|
|
197
|
-
* `cart_add_failed`: the concierge said an item was going in the basket and
|
|
198
|
-
* only this browser knows it did not.
|
|
199
|
-
*
|
|
200
|
-
* It replaces the CAPTION and changes nothing else. Folding it into `error`
|
|
201
|
-
* instead cost the row its whole live state: an add that failed mid-call
|
|
202
|
-
* took `speaking` down to `error` for the rest of the session, so the
|
|
203
|
-
* clause disappeared and mute and interrupt went with it — and
|
|
204
|
-
* `agentAddFailed` is only cleared by the NEXT successful agent add, so it
|
|
205
|
-
* did not go away. §5.1 puts `cart_add_failed` in the caption; that is all
|
|
206
|
-
* it asks for.
|
|
207
|
-
*/
|
|
208
|
-
readonly notice?: string;
|
|
209
|
-
/** How many cards the latest curation put on the shelf. */
|
|
210
|
-
readonly shelfCount: number;
|
|
211
|
-
/**
|
|
212
|
-
* There is a conversation in the visor to go back to (added 2026-09-16).
|
|
213
|
-
*
|
|
214
|
-
* The SECOND reason `see` exists, and it closes a hole the 2026-09-16
|
|
215
|
-
* minimise rewrite opened. `see` used to appear only when `shelfCount > 0`;
|
|
216
|
-
* once the MARK became the dock's minimise (§5.4) and the visor header's
|
|
217
|
-
* control stopped collapsing the row, a text session with no curation had
|
|
218
|
-
* no control that opened the visor at all — the float (§3.5) can be
|
|
219
|
-
* dismissed, and nothing else was left. A transcript the shopper cannot
|
|
220
|
-
* reach is a conversation the widget has lost.
|
|
221
|
-
*
|
|
222
|
-
* A FLAG rather than a count: this module never needs to know how long the
|
|
223
|
-
* conversation is, only that opening the visor would show something. The
|
|
224
|
-
* host owns the transcript node and is the only thing that can say so.
|
|
225
|
-
*/
|
|
226
|
-
readonly hasTranscript: boolean;
|
|
227
|
-
readonly sheetOpen: boolean;
|
|
228
|
-
/** The live partial transcript, current utterance only (§5.1's `listening`). */
|
|
229
|
-
readonly partialTranscript?: string;
|
|
230
|
-
/** `FillerPolicy`'s model-authored acknowledgement (§6) — the designed `thinking` caption. */
|
|
231
|
-
readonly preamble?: string;
|
|
232
|
-
/** The clause the agent is saying right now (§5.1's `speaking`). */
|
|
233
|
-
readonly clause?: string;
|
|
234
|
-
/**
|
|
235
|
-
* §5.1 (added 2026-09-15) — which channel the session is on. `text` is what
|
|
236
|
-
* makes an engaged, otherwise-unclaimed row `typing` rather than `dormant`.
|
|
237
|
-
*/
|
|
238
|
-
readonly channel: 'voice' | 'text';
|
|
239
|
-
/**
|
|
240
|
-
* The OTHER side is composing: a concierge reply is in flight or streaming,
|
|
241
|
-
* or — in `human` — an operator is typing. Draws §5.1's dots, and holds
|
|
242
|
-
* §3.6's glass off: a row cannot recede while it is being answered.
|
|
243
|
-
*/
|
|
244
|
-
readonly composing: boolean;
|
|
245
|
-
/**
|
|
246
|
-
* §3.6 — the text session has been idle for `GLASS_IDLE_MS`: no turn, no
|
|
247
|
-
* draft, the field unfocused. A CLOCK, so `dock.tsx` runs it; this module
|
|
248
|
-
* only decides what an idle `typing` row looks like.
|
|
249
|
-
*/
|
|
250
|
-
readonly textIdle: boolean;
|
|
251
|
-
}
|
|
252
104
|
export interface DockView {
|
|
253
105
|
readonly state: DockState;
|
|
254
106
|
readonly mark: DockMark;
|
|
@@ -318,15 +170,23 @@ export interface DockView {
|
|
|
318
170
|
*/
|
|
319
171
|
readonly glass: boolean;
|
|
320
172
|
}
|
|
321
|
-
/** A dock nobody has touched, on a tenant with no voice. Every field explicit — see `DockStateInput`. */
|
|
322
|
-
export declare const idleDockInput: DockStateInput;
|
|
323
173
|
/**
|
|
324
|
-
* §5.1's table, as a function.
|
|
174
|
+
* §5.1's table, as a function — the dock's public entry point, unchanged.
|
|
325
175
|
*
|
|
326
176
|
* @param input the session, as data — see {@link DockStateInput}
|
|
327
177
|
* @returns everything the row, the caption and the sheet need for one render
|
|
328
178
|
*/
|
|
329
179
|
export declare function deriveDockState(input: DockStateInput): DockView;
|
|
180
|
+
/**
|
|
181
|
+
* The dock's presentation of a state the shared machine already decided.
|
|
182
|
+
*
|
|
183
|
+
* Takes the snapshot AND the input: the snapshot for everything a renderer
|
|
184
|
+
* may not recompute (the state, `handoff`, `callActive`, `shelfCount`), the
|
|
185
|
+
* input for CONTENT — a partial transcript, a preamble, the operator's line,
|
|
186
|
+
* the host's error text. The one thing this function never does is look at
|
|
187
|
+
* the input to decide which state it is in.
|
|
188
|
+
*/
|
|
189
|
+
export declare function deriveDockView(snapshot: ConciergeSnapshot, input: DockStateInput): DockView;
|
|
330
190
|
/**
|
|
331
191
|
* A transcript turn, as the EXCHANGE split reads it: its speaker and nothing
|
|
332
192
|
* else.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dock-state.d.ts","sourceRoot":"","sources":["../../src/dock/dock-state.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"dock-state.d.ts","sourceRoot":"","sources":["../../src/dock/dock-state.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,OAAO,EAIL,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACzB,MAAM,uBAAuB,CAAC;AAU/B,eAAO,MAAM,WAAW,2KAAmB,CAAC;AAC5C,MAAM,MAAM,SAAS,GAAG,cAAc,CAAC;AACvC,MAAM,MAAM,cAAc,GAAG,mBAAmB,CAAC;AACjD,MAAM,MAAM,cAAc,GAAG,mBAAmB,CAAC;AACjD,uFAAuF;AACvF,eAAO,MAAM,aAAa,EAAE,cAAmC,CAAC;AAEhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,MAAM,WAAW,GACrB,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,WAAW,GAAG,KAAK,GAAG,aAAa,GAAG,QAAQ,CAAC;AAEjG,6EAA6E;AAC7E,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEzC;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,CAAC;AAErE,gDAAgD;AAChD,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,SAAS,CAAC;AAE5C;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,OAAO,GAAG,WAAW,CAAC;AAE/D;;;;GAIG;AACH,MAAM,MAAM,eAAe,GACvB;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;CAAE,GAC1B;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAChD;IACE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,GAAG,EAAE,cAAc,CAAC;IAC7B,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC;CAC3D,CAAC;AAEN,qGAAqG;AACrG,MAAM,MAAM,cAAc,GACtB,iBAAiB,GACjB,gBAAgB,GAChB,eAAe,GACf,aAAa,GACb,iBAAiB,GACjB,wBAAwB,GACxB,YAAY,GACZ,kBAAkB,GAClB,YAAY,GACZ,mBAAmB,GACnB,kBAAkB,CAAC;AAEvB,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,YAAY,CAAC;IAChC,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,yCAAyC;IACzC,QAAQ,CAAC,QAAQ,EAAE,SAAS,WAAW,EAAE,CAAC;IAC1C,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,KAAK,EAAE,eAAe,CAAC;IAChC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B;;;;;;;;;;;;;;;OAeG;IACH,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B;;;;;OAKG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;;;;;;OASG;IACH,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;CACzB;AASD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,cAAc,GAAG,QAAQ,CAE/D;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,iBAAiB,EAAE,KAAK,EAAE,cAAc,GAAG,QAAQ,CAc3F;AA8UD;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,SAAS,WAAW,EAAE,GAAG,MAAM,CAM5E;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,SAAS,WAAW,EAAE,GAAG,MAAM,CAetE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"concierge-shell-css.d.ts","sourceRoot":"","sources":["../../src/generated/concierge-shell-css.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,EAAE,MAAs3/C,CAAC"}
|