tanya-chatbot 0.5.1 → 0.5.3

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.
@@ -1,27 +1,27 @@
1
- import { useEffect as M, useState as $, useRef as Ft } from "react";
1
+ import { useEffect as M, useState as z, useRef as Ft } from "react";
2
2
  import { jsx as a, jsxs as u, Fragment as re } from "react/jsx-runtime";
3
- import { createHttpLink as sr, ApolloClient as lr, InMemoryCache as cr, ApolloProvider as dr } from "@apollo/client";
4
- import { Provider as ur, useDispatch as je, useSelector as Vt } from "react-redux";
5
- import { createSlice as De, configureStore as pr } from "@reduxjs/toolkit";
6
- import * as Le from "@radix-ui/react-popover";
3
+ import { createHttpLink as lr, ApolloClient as cr, InMemoryCache as dr, ApolloProvider as ur } from "@apollo/client";
4
+ import { Provider as pr, useDispatch as De, useSelector as Rt } from "react-redux";
5
+ import { createSlice as Le, configureStore as fr } from "@reduxjs/toolkit";
6
+ import * as Be from "@radix-ui/react-popover";
7
7
  import "clsx";
8
8
  import "tailwind-merge";
9
9
  import E from "axios";
10
10
  import "crypto-js";
11
- import { Icon as ge } from "@iconify/react";
11
+ import { Icon as be } from "@iconify/react";
12
12
  import { toast as H } from "react-toastify";
13
- const fr = '*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}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;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media(min-width:640px){.container{max-width:640px}}@media(min-width:768px){.container{max-width:768px}}@media(min-width:1024px){.container{max-width:1024px}}@media(min-width:1280px){.container{max-width:1280px}}@media(min-width:1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.top-full{top:100%}.z-40{z-index:40}.z-50{z-index:50}.m-1{margin:.25rem}.m-3{margin:.75rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.mb-1{margin-bottom:.25rem}.mb-16{margin-bottom:4rem}.mb-2{margin-bottom:.5rem}.mb-20{margin-bottom:5rem}.mb-24{margin-bottom:6rem}.mb-4{margin-bottom:1rem}.mb-8{margin-bottom:2rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.h-12{height:3rem}.h-28{height:7rem}.h-3{height:.75rem}.h-6{height:1.5rem}.h-\\[120px\\]{height:120px}.h-\\[200px\\]{height:200px}.h-\\[60px\\]{height:60px}.h-\\[90vh\\]{height:90vh}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-screen{height:100vh}.w-28{width:7rem}.w-3{width:.75rem}.w-5\\/6{width:83.333333%}.w-6{width:1.5rem}.w-72{width:18rem}.w-\\[100vw\\]{width:100vw}.w-\\[120px\\]{width:120px}.w-\\[150px\\]{width:150px}.w-\\[60px\\]{width:60px}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.max-w-\\[200px\\]{max-width:200px}.max-w-\\[75\\%\\]{max-width:75%}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-ellipsis{text-overflow:ellipsis}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\\[10px\\]{border-radius:10px}.rounded-\\[20px\\]{border-radius:20px}.rounded-\\[5px\\]{border-radius:5px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-xl{border-radius:.75rem}.rounded-l-\\[20px\\]{border-top-left-radius:20px;border-bottom-left-radius:20px}.rounded-l-xl{border-top-left-radius:.75rem;border-bottom-left-radius:.75rem}.rounded-r-xl{border-top-right-radius:.75rem;border-bottom-right-radius:.75rem}.rounded-bl-2xl{border-bottom-left-radius:1rem}.rounded-br-xl{border-bottom-right-radius:.75rem}.rounded-tr-\\[20px\\]{border-top-right-radius:20px}.rounded-tr-\\[5px\\]{border-top-right-radius:5px}.border{border-width:1px}.border-0{border-width:0px}.border-b-2{border-bottom-width:2px}.border-l-2{border-left-width:2px}.border-t-2{border-top-width:2px}.border-none{border-style:none}.border-\\[\\#C9C2DE\\]{--tw-border-opacity: 1;border-color:rgb(201 194 222 / var(--tw-border-opacity, 1))}.border-\\[\\#E5E5E5\\]{--tw-border-opacity: 1;border-color:rgb(229 229 229 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.bg-\\[\\#553D94\\]{--tw-bg-opacity: 1;background-color:rgb(85 61 148 / var(--tw-bg-opacity, 1))}.bg-\\[\\#6851C6\\]{--tw-bg-opacity: 1;background-color:rgb(104 81 198 / var(--tw-bg-opacity, 1))}.bg-\\[\\#804C9E0D\\]{background-color:#804c9e0d}.bg-\\[\\#A21CAF\\]{--tw-bg-opacity: 1;background-color:rgb(162 28 175 / var(--tw-bg-opacity, 1))}.bg-\\[\\#AB192D\\]{--tw-bg-opacity: 1;background-color:rgb(171 25 45 / var(--tw-bg-opacity, 1))}.bg-\\[\\#E2DBFF\\]{--tw-bg-opacity: 1;background-color:rgb(226 219 255 / var(--tw-bg-opacity, 1))}.bg-\\[\\#E3DEEF\\]{--tw-bg-opacity: 1;background-color:rgb(227 222 239 / var(--tw-bg-opacity, 1))}.bg-\\[\\#F3F3F3\\]{--tw-bg-opacity: 1;background-color:rgb(243 243 243 / var(--tw-bg-opacity, 1))}.bg-\\[\\#FFFFFF\\],.bg-\\[\\#ffffff\\]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-black\\/30{background-color:#0000004d}.bg-indigo-300{--tw-bg-opacity: 1;background-color:rgb(165 180 252 / var(--tw-bg-opacity, 1))}.bg-popover{background-color:hsl(var(--popover))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-\\[1px\\]{padding:1px}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-7{padding-left:1.75rem;padding-right:1.75rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-2{padding-bottom:.5rem}.pl-2{padding-left:.5rem}.pr-5{padding-right:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.font-nunitoSans{font-family:Nunito Sans}.text-\\[12px\\]{font-size:12px}.text-\\[14px\\]{font-size:14px}.text-\\[15px\\]{font-size:15px}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-snug{line-height:1.375}.text-\\[\\#000000\\]{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-\\[\\#14121F\\]{--tw-text-opacity: 1;color:rgb(20 18 31 / var(--tw-text-opacity, 1))}.text-\\[\\#18181B\\]{--tw-text-opacity: 1;color:rgb(24 24 27 / var(--tw-text-opacity, 1))}.text-\\[\\#232323\\]{--tw-text-opacity: 1;color:rgb(35 35 35 / var(--tw-text-opacity, 1))}.text-\\[\\#323135\\]{--tw-text-opacity: 1;color:rgb(50 49 53 / var(--tw-text-opacity, 1))}.text-\\[\\#494949\\]{--tw-text-opacity: 1;color:rgb(73 73 73 / var(--tw-text-opacity, 1))}.text-\\[\\#555555\\]{--tw-text-opacity: 1;color:rgb(85 85 85 / var(--tw-text-opacity, 1))}.text-\\[\\#5B5B5B\\]{--tw-text-opacity: 1;color:rgb(91 91 91 / var(--tw-text-opacity, 1))}.text-\\[\\#68656E\\]{--tw-text-opacity: 1;color:rgb(104 101 110 / var(--tw-text-opacity, 1))}.text-\\[\\#959595\\]{--tw-text-opacity: 1;color:rgb(149 149 149 / var(--tw-text-opacity, 1))}.text-\\[\\#EC5050\\]{--tw-text-opacity: 1;color:rgb(236 80 80 / var(--tw-text-opacity, 1))}.text-\\[\\#FBFBFC\\]{--tw-text-opacity: 1;color:rgb(251 251 252 / var(--tw-text-opacity, 1))}.text-\\[\\#FFFFFF\\]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity, 1))}.line-through{text-decoration-line:line-through}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-80{opacity:.8}.shadow-\\[0px_2px_2px_0px_\\#9292BC40\\]{--tw-shadow: 0px 2px 2px 0px #9292BC40;--tw-shadow-colored: 0px 2px 2px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[0px_4px_10px_0px_\\#5F499840\\]{--tw-shadow: 0px 4px 10px 0px #5F499840;--tw-shadow-colored: 0px 4px 10px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.duration-300{animation-duration:.3s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.running{animation-play-state:running}html,body,#root{margin:0;padding:0}:root{line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;padding:0}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media(prefers-color-scheme:light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.hover\\:scale-125:hover{--tw-scale-x: 1.25;--tw-scale-y: 1.25;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:text-\\[\\#6952C7\\]:hover{--tw-text-opacity: 1;color:rgb(105 82 199 / var(--tw-text-opacity, 1))}.hover\\:opacity-90:hover{opacity:.9}.group:hover .group-hover\\:opacity-100{opacity:1}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}@media(min-width:640px){.sm\\:w-\\[80vw\\]{width:80vw}}@media(min-width:768px){.md\\:h-\\[100vh\\]{height:100vh}.md\\:w-1\\/2{width:50%}.md\\:w-\\[770px\\]{width:770px}.md\\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:flex-row{flex-direction:row}}@media(min-width:1024px){.lg\\:h-\\[100vh\\]{height:100vh}.lg\\:w-1\\/2{width:50%}.lg\\:w-2\\/3{width:66.666667%}.lg\\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.lg\\:translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.lg\\:translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.lg\\:transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.lg\\:flex-row{flex-direction:row}.lg\\:rounded-l-xl{border-top-left-radius:.75rem;border-bottom-left-radius:.75rem}.lg\\:rounded-bl-xl{border-bottom-left-radius:.75rem}}';
13
+ const hr = '*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}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;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media(min-width:640px){.container{max-width:640px}}@media(min-width:768px){.container{max-width:768px}}@media(min-width:1024px){.container{max-width:1024px}}@media(min-width:1280px){.container{max-width:1280px}}@media(min-width:1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.top-full{top:100%}.z-40{z-index:40}.z-50{z-index:50}.m-1{margin:.25rem}.m-3{margin:.75rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.mb-1{margin-bottom:.25rem}.mb-16{margin-bottom:4rem}.mb-2{margin-bottom:.5rem}.mb-20{margin-bottom:5rem}.mb-24{margin-bottom:6rem}.mb-4{margin-bottom:1rem}.mb-8{margin-bottom:2rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.h-12{height:3rem}.h-28{height:7rem}.h-3{height:.75rem}.h-6{height:1.5rem}.h-\\[120px\\]{height:120px}.h-\\[200px\\]{height:200px}.h-\\[60px\\]{height:60px}.h-\\[90vh\\]{height:90vh}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-screen{height:100vh}.w-28{width:7rem}.w-3{width:.75rem}.w-5\\/6{width:83.333333%}.w-6{width:1.5rem}.w-72{width:18rem}.w-\\[100vw\\]{width:100vw}.w-\\[120px\\]{width:120px}.w-\\[150px\\]{width:150px}.w-\\[60px\\]{width:60px}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.max-w-\\[200px\\]{max-width:200px}.max-w-\\[75\\%\\]{max-width:75%}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-ellipsis{text-overflow:ellipsis}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\\[10px\\]{border-radius:10px}.rounded-\\[20px\\]{border-radius:20px}.rounded-\\[5px\\]{border-radius:5px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-xl{border-radius:.75rem}.rounded-l-\\[20px\\]{border-top-left-radius:20px;border-bottom-left-radius:20px}.rounded-l-xl{border-top-left-radius:.75rem;border-bottom-left-radius:.75rem}.rounded-r-xl{border-top-right-radius:.75rem;border-bottom-right-radius:.75rem}.rounded-bl-2xl{border-bottom-left-radius:1rem}.rounded-br-xl{border-bottom-right-radius:.75rem}.rounded-tr-\\[20px\\]{border-top-right-radius:20px}.rounded-tr-\\[5px\\]{border-top-right-radius:5px}.border{border-width:1px}.border-0{border-width:0px}.border-b-2{border-bottom-width:2px}.border-l-2{border-left-width:2px}.border-t-2{border-top-width:2px}.border-none{border-style:none}.border-\\[\\#C9C2DE\\]{--tw-border-opacity: 1;border-color:rgb(201 194 222 / var(--tw-border-opacity, 1))}.border-\\[\\#E5E5E5\\]{--tw-border-opacity: 1;border-color:rgb(229 229 229 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.bg-\\[\\#553D94\\]{--tw-bg-opacity: 1;background-color:rgb(85 61 148 / var(--tw-bg-opacity, 1))}.bg-\\[\\#6851C6\\]{--tw-bg-opacity: 1;background-color:rgb(104 81 198 / var(--tw-bg-opacity, 1))}.bg-\\[\\#804C9E0D\\]{background-color:#804c9e0d}.bg-\\[\\#A21CAF\\]{--tw-bg-opacity: 1;background-color:rgb(162 28 175 / var(--tw-bg-opacity, 1))}.bg-\\[\\#AB192D\\]{--tw-bg-opacity: 1;background-color:rgb(171 25 45 / var(--tw-bg-opacity, 1))}.bg-\\[\\#E2DBFF\\]{--tw-bg-opacity: 1;background-color:rgb(226 219 255 / var(--tw-bg-opacity, 1))}.bg-\\[\\#E3DEEF\\]{--tw-bg-opacity: 1;background-color:rgb(227 222 239 / var(--tw-bg-opacity, 1))}.bg-\\[\\#F3F3F3\\]{--tw-bg-opacity: 1;background-color:rgb(243 243 243 / var(--tw-bg-opacity, 1))}.bg-\\[\\#FFFFFF\\],.bg-\\[\\#ffffff\\]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-black\\/30{background-color:#0000004d}.bg-indigo-300{--tw-bg-opacity: 1;background-color:rgb(165 180 252 / var(--tw-bg-opacity, 1))}.bg-popover{background-color:hsl(var(--popover))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-\\[1px\\]{padding:1px}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-7{padding-left:1.75rem;padding-right:1.75rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-2{padding-bottom:.5rem}.pl-2{padding-left:.5rem}.pr-5{padding-right:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.font-nunitoSans{font-family:Nunito Sans}.text-\\[12px\\]{font-size:12px}.text-\\[14px\\]{font-size:14px}.text-\\[15px\\]{font-size:15px}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-snug{line-height:1.375}.text-\\[\\#000000\\]{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-\\[\\#14121F\\]{--tw-text-opacity: 1;color:rgb(20 18 31 / var(--tw-text-opacity, 1))}.text-\\[\\#18181B\\]{--tw-text-opacity: 1;color:rgb(24 24 27 / var(--tw-text-opacity, 1))}.text-\\[\\#232323\\]{--tw-text-opacity: 1;color:rgb(35 35 35 / var(--tw-text-opacity, 1))}.text-\\[\\#323135\\]{--tw-text-opacity: 1;color:rgb(50 49 53 / var(--tw-text-opacity, 1))}.text-\\[\\#494949\\]{--tw-text-opacity: 1;color:rgb(73 73 73 / var(--tw-text-opacity, 1))}.text-\\[\\#555555\\]{--tw-text-opacity: 1;color:rgb(85 85 85 / var(--tw-text-opacity, 1))}.text-\\[\\#5B5B5B\\]{--tw-text-opacity: 1;color:rgb(91 91 91 / var(--tw-text-opacity, 1))}.text-\\[\\#68656E\\]{--tw-text-opacity: 1;color:rgb(104 101 110 / var(--tw-text-opacity, 1))}.text-\\[\\#959595\\]{--tw-text-opacity: 1;color:rgb(149 149 149 / var(--tw-text-opacity, 1))}.text-\\[\\#EC5050\\]{--tw-text-opacity: 1;color:rgb(236 80 80 / var(--tw-text-opacity, 1))}.text-\\[\\#FBFBFC\\]{--tw-text-opacity: 1;color:rgb(251 251 252 / var(--tw-text-opacity, 1))}.text-\\[\\#FFFFFF\\]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity, 1))}.line-through{text-decoration-line:line-through}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-80{opacity:.8}.shadow-\\[0px_2px_2px_0px_\\#9292BC40\\]{--tw-shadow: 0px 2px 2px 0px #9292BC40;--tw-shadow-colored: 0px 2px 2px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[0px_4px_10px_0px_\\#5F499840\\]{--tw-shadow: 0px 4px 10px 0px #5F499840;--tw-shadow-colored: 0px 4px 10px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.duration-300{animation-duration:.3s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.running{animation-play-state:running}html,body,#root{margin:0;padding:0}:root{line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;padding:0}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media(prefers-color-scheme:light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.hover\\:scale-125:hover{--tw-scale-x: 1.25;--tw-scale-y: 1.25;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:text-\\[\\#6952C7\\]:hover{--tw-text-opacity: 1;color:rgb(105 82 199 / var(--tw-text-opacity, 1))}.hover\\:opacity-90:hover{opacity:.9}.group:hover .group-hover\\:opacity-100{opacity:1}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}@media(min-width:640px){.sm\\:w-\\[80vw\\]{width:80vw}}@media(min-width:768px){.md\\:h-\\[100vh\\]{height:100vh}.md\\:w-1\\/2{width:50%}.md\\:w-\\[770px\\]{width:770px}.md\\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:flex-row{flex-direction:row}}@media(min-width:1024px){.lg\\:h-\\[100vh\\]{height:100vh}.lg\\:w-1\\/2{width:50%}.lg\\:w-2\\/3{width:66.666667%}.lg\\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.lg\\:translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.lg\\:translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.lg\\:transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.lg\\:flex-row{flex-direction:row}.lg\\:rounded-l-xl{border-top-left-radius:.75rem;border-bottom-left-radius:.75rem}.lg\\:rounded-bl-xl{border-bottom-left-radius:.75rem}}';
14
14
  function ko() {
15
15
  return M(() => {
16
16
  if (typeof document < "u") {
17
17
  const t = document.createElement("style");
18
- return t.textContent = fr, document.head.appendChild(t), () => {
18
+ return t.textContent = hr, document.head.appendChild(t), () => {
19
19
  document.head.removeChild(t);
20
20
  };
21
21
  }
22
22
  }, []), null;
23
23
  }
24
- const hr = {
24
+ const mr = {
25
25
  store: {
26
26
  storeCode: "",
27
27
  storeName: "",
@@ -55,30 +55,30 @@ const hr = {
55
55
  mobile: []
56
56
  }
57
57
  }
58
- }, Be = De({
58
+ }, Ue = Le({
59
59
  name: "store",
60
- initialState: hr,
60
+ initialState: mr,
61
61
  reducers: {
62
62
  setStore: (t, e) => {
63
63
  t.store = e.payload;
64
64
  }
65
65
  }
66
- }), { setStore: So } = Be.actions, mr = Be.reducer, wr = {
66
+ }), { setStore: So } = Ue.actions, wr = Ue.reducer, gr = {
67
67
  product: null
68
- }, Ue = De({
68
+ }, qe = Le({
69
69
  name: "product",
70
- initialState: wr,
70
+ initialState: gr,
71
71
  reducers: {
72
72
  setProduct: (t, e) => {
73
73
  t.product = e.payload;
74
74
  }
75
75
  }
76
- }), { setProduct: oe } = Ue.actions, gr = Ue.reducer, br = pr({
76
+ }), { setProduct: oe } = qe.actions, br = qe.reducer, xr = fr({
77
77
  reducer: {
78
- store: mr,
79
- product: gr
78
+ store: wr,
79
+ product: br
80
80
  }
81
- }), xr = ({ children: t }) => /* @__PURE__ */ a(ur, { store: br, children: t }), Rt = (t) => {
81
+ }), yr = ({ children: t }) => /* @__PURE__ */ a(pr, { store: xr, children: t }), Vt = (t) => {
82
82
  const e = new CustomEvent("reactCartUpdated", {
83
83
  detail: {
84
84
  cartUpdated: !0,
@@ -87,17 +87,17 @@ const hr = {
87
87
  });
88
88
  window.dispatchEvent(e);
89
89
  };
90
- function yr({
90
+ function vr({
91
91
  ...t
92
92
  }) {
93
- return /* @__PURE__ */ a(Le.Root, { "data-slot": "popover", ...t });
93
+ return /* @__PURE__ */ a(Be.Root, { "data-slot": "popover", ...t });
94
94
  }
95
- function vr({
95
+ function kr({
96
96
  ...t
97
97
  }) {
98
- return /* @__PURE__ */ a(Le.Trigger, { "data-slot": "popover-trigger", ...t });
98
+ return /* @__PURE__ */ a(Be.Trigger, { "data-slot": "popover-trigger", ...t });
99
99
  }
100
- const St = () => ({ aiConversationUrl: "https://mdv3qwfi2j.execute-api.us-east-1.amazonaws.com/dev/api/bedrock/invoke/stream", xAPIKey: "BJBtjpPkqGatuoa3qJqdR8aHXSsHkgvGaootbubi", serverUrl: "https://tanya-sfcc-server.vercel.app/", basePath: "sc-api" }), qe = async () => {
100
+ const kt = () => ({ aiConversationUrl: "https://mdv3qwfi2j.execute-api.us-east-1.amazonaws.com/dev/api/bedrock/invoke/stream", xAPIKey: "BJBtjpPkqGatuoa3qJqdR8aHXSsHkgvGaootbubi", serverUrl: "https://tanya-sfcc-server.vercel.app/", basePath: "sc-api" }), Me = async () => {
101
101
  const t = "https://tanya-sfcc-server.vercel.app/";
102
102
  try {
103
103
  const e = await E.post(
@@ -107,7 +107,7 @@ const St = () => ({ aiConversationUrl: "https://mdv3qwfi2j.execute-api.us-east-1
107
107
  } catch (e) {
108
108
  return E.isAxiosError(e) ? console.error("Error fetching token:", e.response || e.message) : console.error("Unexpected error:", e), null;
109
109
  }
110
- }, Me = async (t) => {
110
+ }, He = async (t) => {
111
111
  const e = "https://tanya-sfcc-server.vercel.app/";
112
112
  try {
113
113
  const r = JSON.parse(sessionStorage.getItem("customerData") || "{}").dwsid, o = await E.post(
@@ -125,17 +125,17 @@ const St = () => ({ aiConversationUrl: "https://mdv3qwfi2j.execute-api.us-east-1
125
125
  return E.isAxiosError(r) ? console.error("Error creating basket:", r.response || r.message) : console.error("Unexpected error:", r), null;
126
126
  }
127
127
  };
128
- async function Pt() {
128
+ async function Ot() {
129
129
  var c;
130
130
  const t = J(), e = "access_token_" + t, r = "expires_in_" + t, o = localStorage.getItem(r), n = localStorage.getItem(e);
131
131
  return console.log(n), (c = JSON.parse(sessionStorage.getItem("customerData") || "{}")) != null && c.isGuest, console.log("access token found in local storage"), { access_token: n, expires_in: o };
132
132
  }
133
- const tt = () => sessionStorage.getItem("Host"), J = () => sessionStorage.getItem("SiteId"), at = () => sessionStorage.getItem("pubCfg"), it = () => sessionStorage.getItem("envRef"), st = () => sessionStorage.getItem("orgRef"), be = async (t) => {
133
+ const tt = () => sessionStorage.getItem("Host"), J = () => sessionStorage.getItem("SiteId"), at = () => sessionStorage.getItem("pubCfg"), it = () => sessionStorage.getItem("envRef"), st = () => sessionStorage.getItem("orgRef"), xe = async (t) => {
134
134
  console.log("fetching results");
135
- const { serverUrl: e, basePath: r } = St();
135
+ const { serverUrl: e, basePath: r } = kt();
136
136
  let o = "";
137
137
  {
138
- const n = await Pt();
138
+ const n = await Ot();
139
139
  console.log("the token from getSearchResults", n), o = n.access_token;
140
140
  }
141
141
  try {
@@ -152,12 +152,12 @@ const tt = () => sessionStorage.getItem("Host"), J = () => sessionStorage.getIte
152
152
  } catch (n) {
153
153
  throw console.error("Error fetching search results:", n), n;
154
154
  }
155
- }, He = async (t) => {
155
+ }, Re = async (t) => {
156
156
  if (!t) throw new Error("Product ID is required");
157
- const { serverUrl: e, basePath: r } = St(), o = tt();
157
+ const { serverUrl: e, basePath: r } = kt(), o = tt();
158
158
  console.log("calling access");
159
- const { access_token: n } = await Pt();
160
- return console.log(n), (await E.get(
159
+ const { access_token: n } = await Ot();
160
+ return (await E.get(
161
161
  `${e}${r}/product-sfcc/${t}?baseUrl=${o}&siteId=${J()}&pubCfg=${at()}&envRef=${it()}&orgRef=${st()}`,
162
162
  {
163
163
  headers: {
@@ -166,11 +166,11 @@ const tt = () => sessionStorage.getItem("Host"), J = () => sessionStorage.getIte
166
166
  }
167
167
  }
168
168
  )).data;
169
- }, kr = async (t) => {
169
+ }, Sr = async (t) => {
170
170
  if (!t) throw new Error("customerId is required");
171
- const e = await qe(), { customer_token: r } = await Me(
171
+ const e = await Me(), { customer_token: r } = await He(
172
172
  e
173
- ), { serverUrl: o, basePath: n } = St(), l = (await Pt()).access_token;
173
+ ), { serverUrl: o, basePath: n } = kt(), l = (await Ot()).access_token;
174
174
  return (await E.get(
175
175
  `${o}${n}/get-interest?baseUrl=${tt()}&customerId=${t}&siteId=${J()}&pubCfg=${at()}&envRef=${it()}&orgRef=${st()}`,
176
176
  {
@@ -180,10 +180,10 @@ const tt = () => sessionStorage.getItem("Host"), J = () => sessionStorage.getIte
180
180
  }
181
181
  }
182
182
  )).data;
183
- }, xe = (t) => String(typeof t == "string" ? t : t["en-US"] || t), ye = (t) => t != null && t.image ? [t.image] : "variants" in t ? t.variants[0].images : t.masterVariant.images.map((e) => e.url), Sr = (t, e) => t.toLocaleString("en-US", {
183
+ }, ye = (t) => String(typeof t == "string" ? t : t["en-US"] || t), ve = (t) => t != null && t.image ? [t.image] : "variants" in t ? t.variants[0].images : t.masterVariant.images.map((e) => e.url), _r = (t, e) => t.toLocaleString("en-US", {
184
184
  style: "currency",
185
185
  currency: e || "USD"
186
- }), ve = (t) => {
186
+ }), ke = (t) => {
187
187
  var e, r, o;
188
188
  return "variants" in t ? {
189
189
  centAmount: (e = t.variants[0]) == null ? void 0 : e.prices.EUR.max,
@@ -192,21 +192,21 @@ const tt = () => sessionStorage.getItem("Host"), J = () => sessionStorage.getIte
192
192
  centAmount: (r = t.masterVariant) == null ? void 0 : r.prices[0].value.centAmount,
193
193
  currencyCode: (o = t.masterVariant) == null ? void 0 : o.prices[0].value.currencyCode
194
194
  };
195
- }, _r = (t) => t.charAt(0).toUpperCase() + t.slice(1), ke = (t, e) => t.length < e ? t : t.slice(0, e) + "...", Xt = (t) => t.split("\\n").map((e, r) => {
195
+ }, Cr = (t) => t.charAt(0).toUpperCase() + t.slice(1), Se = (t, e) => t.length < e ? t : t.slice(0, e) + "...", Xt = (t) => t.split("\\n").map((e, r) => {
196
196
  const o = e.match(/^(\d+)\.\s(.+)/);
197
197
  return o ? `<p key=${r} class="mb-2"><strong>${o[1]}.</strong> ${o[2]}</p>` : e.trim() ? `<p key=${r} class="mb-2">${e}</p>` : "<br/>";
198
198
  }).join("");
199
- function Cr() {
200
- const t = () => window.innerWidth < 425 ? 1 : window.innerWidth < 768 ? 2 : 4, [e, r] = $(t);
199
+ function Ir() {
200
+ const t = () => window.innerWidth < 425 ? 1 : window.innerWidth < 768 ? 2 : 4, [e, r] = z(t);
201
201
  return M(() => {
202
202
  const o = () => r(t());
203
203
  return window.addEventListener("resize", o), () => window.removeEventListener("resize", o);
204
204
  }, []), e;
205
205
  }
206
- const Ir = ({
206
+ const Fr = ({
207
207
  product: t
208
208
  }) => {
209
- const e = je(), r = Cr(), [o, n] = $(0), c = () => {
209
+ const e = De(), r = Ir(), [o, n] = z(0), c = () => {
210
210
  n(
211
211
  (i) => i + r >= t.length ? 0 : i + r
212
212
  );
@@ -215,8 +215,8 @@ const Ir = ({
215
215
  (i) => i - r < 0 ? t.length - (t.length % r || r) : i - r
216
216
  );
217
217
  }, d = async (i) => {
218
- const y = await He(i);
219
- e(oe(y));
218
+ const x = await Re(i);
219
+ e(oe(x));
220
220
  };
221
221
  return /* @__PURE__ */ a("div", { className: "mt-2 overflow-x-hidden", children: /* @__PURE__ */ u("div", { className: "flex items-center justify-center gap-4 relative", children: [
222
222
  (t == null ? void 0 : t.length) > r && /* @__PURE__ */ a(
@@ -233,7 +233,7 @@ const Ir = ({
233
233
  }
234
234
  ),
235
235
  /* @__PURE__ */ a("div", { className: "flex gap-5 justify-center flex-1 overflow-hidden", children: t.slice(o, o + r).map((i) => {
236
- var y, v, C, S;
236
+ var x, y, C, k;
237
237
  return /* @__PURE__ */ u(
238
238
  "div",
239
239
  {
@@ -245,7 +245,7 @@ const Ir = ({
245
245
  /* @__PURE__ */ a("div", { className: "w-full p-2 flex items-center justify-center bg-white", children: /* @__PURE__ */ a(
246
246
  "img",
247
247
  {
248
- src: ((y = ye(i)[0]) == null ? void 0 : y.link) || ye(i)[0] || // fallback if it's a string
248
+ src: ((x = ve(i)[0]) == null ? void 0 : x.link) || ve(i)[0] || // fallback if it's a string
249
249
  "https://via.placeholder.com/120",
250
250
  alt: i != null && i.productName ? i.productName : "Product",
251
251
  className: "w-28 h-28 rounded-[10px] transition-transform duration-300 hover:scale-125 object-cover"
@@ -257,8 +257,8 @@ const Ir = ({
257
257
  className: "text-white w-full p-2 text-[12px] text-center h-[60px]",
258
258
  children: [
259
259
  /* @__PURE__ */ u("div", { className: "relative inline-block group", children: [
260
- /* @__PURE__ */ a("div", { className: "w-full line-clamp-1 overflow-hidden text-ellipsis text-[#000000] font-medium font-nunitoSans", children: i != null && i.productName ? i.productName : i != null && i.product_name ? i.product_name : ke(
261
- xe((v = i == null ? void 0 : i.name) == null ? void 0 : v["en-US"]),
260
+ /* @__PURE__ */ a("div", { className: "w-full line-clamp-1 overflow-hidden text-ellipsis text-[#000000] font-medium font-nunitoSans", children: i != null && i.productName ? i.productName : i != null && i.product_name ? i.product_name : Se(
261
+ ye((y = i == null ? void 0 : i.name) == null ? void 0 : y["en-US"]),
262
262
  60
263
263
  ) || "Product" }),
264
264
  /* @__PURE__ */ a(
@@ -272,17 +272,17 @@ const Ir = ({
272
272
  marginBottom: "5px",
273
273
  zIndex: 50
274
274
  },
275
- children: i != null && i.productName ? i.productName : i != null && i.product_name ? i.product_name : ke(
276
- xe((C = i == null ? void 0 : i.name) == null ? void 0 : C["en-US"]),
275
+ children: i != null && i.productName ? i.productName : i != null && i.product_name ? i.product_name : Se(
276
+ ye((C = i == null ? void 0 : i.name) == null ? void 0 : C["en-US"]),
277
277
  60
278
278
  ) || "Product"
279
279
  }
280
280
  )
281
281
  ] }),
282
282
  /* @__PURE__ */ u("div", { className: " flex text-center items-center gap-2 text-[14px] text-[#14121F] font-bold font-nunitoSans text-base mb-1", children: [
283
- /* @__PURE__ */ a("p", { children: Sr(
284
- i != null && i.price ? Number(i == null ? void 0 : i.price) : ve(i).centAmount || 0,
285
- (S = ve(i)) == null ? void 0 : S.currencyCode
283
+ /* @__PURE__ */ a("p", { children: _r(
284
+ i != null && i.price ? Number(i == null ? void 0 : i.price) : ke(i).centAmount || 0,
285
+ (k = ke(i)) == null ? void 0 : k.currencyCode
286
286
  ) }),
287
287
  /* @__PURE__ */ u("p", { className: "text-[#14121F] font-normal line-through text-sm font-nunitoSans truncate", children: [
288
288
  "$",
@@ -311,7 +311,7 @@ const Ir = ({
311
311
  }
312
312
  )
313
313
  ] }) });
314
- }, Fr = ({ chat: t, storeDetails: e }) => /* @__PURE__ */ a("div", { className: "bg-[#FFFFFF] px-7 py-4 rounded-r-xl rounded-bl-2xl w-full", children: t.map((r, o) => /* @__PURE__ */ u(
314
+ }, Nr = ({ chat: t, storeDetails: e }) => /* @__PURE__ */ a("div", { className: "bg-[#FFFFFF] px-7 py-4 rounded-r-xl rounded-bl-2xl w-full", children: t.map((r, o) => /* @__PURE__ */ u(
315
315
  "div",
316
316
  {
317
317
  className: "mb-4 p-3 rounded-xl",
@@ -324,11 +324,11 @@ const Ir = ({
324
324
  "div",
325
325
  {
326
326
  className: "font-nunitoSans font-bold text-sm text-[#494949] p-2 w-fit rounded-[20px]",
327
- children: _r(r.keyword) || "No keyword"
327
+ children: Cr(r.keyword) || "No keyword"
328
328
  }
329
329
  ),
330
330
  /* @__PURE__ */ a(
331
- Ir,
331
+ Fr,
332
332
  {
333
333
  product: r.items,
334
334
  storeDetails: e
@@ -339,9 +339,7 @@ const Ir = ({
339
339
  o
340
340
  )) }), Ve = async (t, e) => {
341
341
  var c, l;
342
- const { serverUrl: r, basePath: o } = St(), n = `${r}`;
343
- console.log(`customer_token
344
- `, t);
342
+ const { serverUrl: r, basePath: o } = kt(), n = `${r}`;
345
343
  try {
346
344
  const d = await E.post(
347
345
  `${n}${o}/basket/create?baseUrl=${tt()}&siteId=${J()}&pubCfg=${at()}&envRef=${it()}&orgRef=${st()}`,
@@ -363,8 +361,8 @@ const Ir = ({
363
361
  } catch (d) {
364
362
  return E.isAxiosError(d) ? console.error("Error creating basket:", d.response || d.message) : console.error("Unexpected error:", d), null;
365
363
  }
366
- }, Nr = async (t, e, r) => {
367
- const { serverUrl: o, basePath: n } = St(), c = `${o}`;
364
+ }, ne = async (t, e, r) => {
365
+ const { serverUrl: o, basePath: n } = kt(), c = `${o}`;
368
366
  try {
369
367
  const l = await E.post(
370
368
  `${c}${n}/basket/add-product/${t}?baseUrl=${tt()}&siteId=${J()}&pubCfg=${at()}&envRef=${it()}&orgRef=${st()}`,
@@ -383,12 +381,12 @@ const Ir = ({
383
381
  l.response || l.message
384
382
  ) : console.error("Unexpected error:", l), null;
385
383
  }
386
- }, Re = async ({
384
+ }, Ye = async ({
387
385
  basketId: t,
388
386
  customer_token: e
389
387
  }) => {
390
388
  var c;
391
- const { serverUrl: r, basePath: o } = St(), n = `${r}`;
389
+ const { serverUrl: r, basePath: o } = kt(), n = `${r}`;
392
390
  try {
393
391
  const l = await E.get(
394
392
  `${n}${o}/basket/${t}?baseUrl=${tt()}&siteId=${J()}&pubCfg=${at()}&envRef=${it()}&orgRef=${st()}`,
@@ -403,7 +401,7 @@ const Ir = ({
403
401
  } catch (l) {
404
402
  return E.isAxiosError(l) ? { status: (c = l.response) == null ? void 0 : c.status, data: null } : { status: null, data: null };
405
403
  }
406
- }, Yt = "sfcc_basket_id", Se = "sfcc_customer_token", Ot = "sfcc_token_expiry", Er = 300 * 1e3, Nt = "1.0.0";
404
+ }, Yt = "sfcc_basket_id", _e = "sfcc_customer_token", Pt = "sfcc_token_expiry", Er = 300 * 1e3, Nt = "1.0.0";
407
405
  const nt = (t) => {
408
406
  try {
409
407
  t ? localStorage.setItem(Yt, t) : localStorage.removeItem(Yt);
@@ -413,23 +411,22 @@ const nt = (t) => {
413
411
  }, Kt = (t) => {
414
412
  try {
415
413
  if (t) {
416
- localStorage.setItem(Se, t);
414
+ localStorage.setItem(_e, t);
417
415
  const e = Date.now() + Er;
418
- localStorage.setItem(Ot, e.toString());
416
+ localStorage.setItem(Pt, e.toString());
419
417
  } else
420
- localStorage.removeItem(Se);
418
+ localStorage.removeItem(_e);
421
419
  } catch (e) {
422
420
  console.error("Error storing token:", e);
423
421
  }
424
- }, _e = 300, Tr = ({ addToCartPwa: t }) => {
425
- var i, y, v, C, S, A;
426
- const e = je(), r = Vt((T) => T.product.product), o = Vt((T) => T.store.store), [n, c] = $(!!r);
422
+ }, Ce = 300, Tr = ({ addToCartPwa: t }) => {
423
+ var i, x, y, C, k, j;
424
+ const e = De(), r = Rt((T) => T.product.product), o = Rt((T) => T.store.store), [n, c] = z(!!r);
427
425
  if (M(() => {
428
426
  c(!!r);
429
427
  }, [r]), !r) return null;
430
428
  const l = async () => {
431
- var T, D, W, lt, V, ct, _t, $t, et, Ct, It, dt, zt, At, rt, O;
432
- console.log(r, "the prod");
429
+ var T, D, W, lt, R, ct, St, $t, et, _t, Ct, dt, zt, At, rt, P;
433
430
  try {
434
431
  if (!((D = (T = r == null ? void 0 : r.variants) == null ? void 0 : T[0]) != null && D.product_id) && !(r.type.item || r.type.bundle) && !((lt = (W = r == null ? void 0 : r.variants) == null ? void 0 : W[0]) != null && lt.productId)) {
435
432
  H.error("Variants not available", {
@@ -440,90 +437,76 @@ const nt = (t) => {
440
437
  }
441
438
  const _ = [
442
439
  {
443
- product_id: ((V = r.variants) == null ? void 0 : V[0].product_id) || ((ct = r.variants) == null ? void 0 : ct[0].productId) || (r == null ? void 0 : r.id),
440
+ product_id: ((R = r.variants) == null ? void 0 : R[0].product_id) || ((ct = r.variants) == null ? void 0 : ct[0].productId) || (r == null ? void 0 : r.id),
444
441
  quantity: 1
445
442
  }
446
- ];
447
- console.log(_, "the product data");
448
- const k = JSON.parse(
443
+ ], v = JSON.parse(
449
444
  sessionStorage.getItem("customerData") || "{}"
450
- ), ut = (k == null ? void 0 : k.basketId) || localStorage.getItem(Yt), Wt = !1, jt = localStorage.getItem(Ot), Dt = Date.now();
445
+ ), ut = (v == null ? void 0 : v.basketId) || localStorage.getItem(Yt), Wt = !1, jt = localStorage.getItem(Pt), Dt = Date.now();
451
446
  if (!Wt || !jt || Dt >= parseInt(jt)) {
452
- let j = "";
453
- {
454
- const ft = await Pt();
455
- console.log("token from auth data"), j = "Bearer " + ft.access_token;
456
- }
457
- if (!j) {
447
+ let $ = "";
448
+ if ($ = "Bearer " + (await Ot()).access_token, !$) {
458
449
  console.error("Failed to get customer_token");
459
450
  return;
460
451
  }
461
452
  const pt = Dt + 300 * 1e3;
462
- if (Kt(j), localStorage.setItem(Ot, pt.toString()), ut) {
463
- const ft = await Re({
453
+ if (Kt($), localStorage.setItem(Pt, pt.toString()), ut) {
454
+ const It = await Ye({
464
455
  basketId: ut,
465
- customer_token: j
456
+ customer_token: $
466
457
  });
467
- if (console.log(ut, "basket id from customer"), ft.status === 200 && ft) {
468
- const L = await t(
469
- _
470
- // basketResponse?.basket_id || basketResponse?.basketId
458
+ if (It.status === 200 && It) {
459
+ const L = await ne(
460
+ ut,
461
+ _,
462
+ $
471
463
  );
472
- (((_t = L == null ? void 0 : L.product_items) == null ? void 0 : _t.length) > 0 || (($t = L == null ? void 0 : L.productItems) == null ? void 0 : $t.length) > 0) && (H.success("Added to cart", {
464
+ (((St = L == null ? void 0 : L.product_items) == null ? void 0 : St.length) > 0 || (($t = L == null ? void 0 : L.productItems) == null ? void 0 : $t.length) > 0) && (H.success("Added to cart", {
473
465
  position: "bottom-right",
474
466
  autoClose: 3e3,
475
467
  hideProgressBar: !1,
476
468
  closeOnClick: !0,
477
469
  pauseOnHover: !0,
478
470
  draggable: !0
479
- }), Rt(ut));
471
+ }), Vt(ut));
480
472
  return;
481
473
  }
482
474
  }
483
475
  const Lt = {
484
476
  productItems: [
485
477
  {
486
- productId: ((et = r.variants) == null ? void 0 : et[0].product_id) || ((Ct = r.variants) == null ? void 0 : Ct[0].productId) || (r == null ? void 0 : r.id),
478
+ productId: ((et = r.variants) == null ? void 0 : et[0].product_id) || ((_t = r.variants) == null ? void 0 : _t[0].productId) || (r == null ? void 0 : r.id),
487
479
  quantity: 1
488
480
  }
489
481
  ]
490
- };
491
- console.log("before create basket");
492
- const h = await Ve(j, Lt);
493
- if (console.log(
494
- h,
495
- h == null ? void 0 : h.basket_id,
496
- h == null ? void 0 : h.basketId,
497
- "the basket response"
498
- ), !(h != null && h.basket_id) && !(h != null && h.basketId)) {
482
+ }, S = await Ve($, Lt);
483
+ if (!(S != null && S.basket_id) && !(S != null && S.basketId)) {
499
484
  console.error("Failed to create basket");
500
485
  return;
501
486
  }
502
- console.log(
503
- "setting stored id",
504
- (h == null ? void 0 : h.basket_id) || (h == null ? void 0 : h.basketId)
505
- ), nt(
506
- (h == null ? void 0 : h.basket_id) || (h == null ? void 0 : h.basketId)
487
+ nt(
488
+ (S == null ? void 0 : S.basket_id) || (S == null ? void 0 : S.basketId)
507
489
  ), console.log("adding product to basket");
508
- const G = await t(
490
+ const G = await ne(
491
+ (S == null ? void 0 : S.basket_id) || (S == null ? void 0 : S.basketId),
509
492
  _,
510
- (h == null ? void 0 : h.basket_id) || (h == null ? void 0 : h.basketId)
493
+ $
511
494
  );
512
- console.log("object added to basket"), (((It = G == null ? void 0 : G.product_items) == null ? void 0 : It.length) > 0 || ((dt = G == null ? void 0 : G.productItems) == null ? void 0 : dt.length) > 0) && H.success("Added to cart", {
495
+ console.log("object added to basket"), (((Ct = G == null ? void 0 : G.product_items) == null ? void 0 : Ct.length) > 0 || ((dt = G == null ? void 0 : G.productItems) == null ? void 0 : dt.length) > 0) && H.success("Added to cart", {
513
496
  position: "bottom-right",
514
497
  autoClose: 3e3,
515
498
  hideProgressBar: !1,
516
499
  closeOnClick: !0,
517
500
  pauseOnHover: !0,
518
501
  draggable: !0
519
- }), Rt(h.basket_id || (h == null ? void 0 : h.basketId));
502
+ }), Vt(S.basket_id || (S == null ? void 0 : S.basketId));
520
503
  }
521
504
  } catch (_) {
522
505
  console.error("Error adding to cart:", _), H.error("Failed to add product to cart", {
523
506
  position: "bottom-right",
524
507
  autoClose: 3e3
525
508
  }), ((zt = _ == null ? void 0 : _.response) == null ? void 0 : zt.status) === 404 || // Basket not found
526
- ((At = _ == null ? void 0 : _.response) == null ? void 0 : At.status) === 401 ? (((rt = _ == null ? void 0 : _.response) == null ? void 0 : rt.status) === 404 && nt(null), ((O = _ == null ? void 0 : _.response) == null ? void 0 : O.status) === 401 && (nt(null), Kt(null))) : (console.error("Failed to add product to basket:", _.message), H.error("Failed to add product to cart", {
509
+ ((At = _ == null ? void 0 : _.response) == null ? void 0 : At.status) === 401 ? (((rt = _ == null ? void 0 : _.response) == null ? void 0 : rt.status) === 404 && nt(null), ((P = _ == null ? void 0 : _.response) == null ? void 0 : P.status) === 401 && (nt(null), Kt(null))) : (console.error("Failed to add product to basket:", _.message), H.error("Failed to add product to cart", {
527
510
  position: "bottom-right",
528
511
  autoClose: 3e3
529
512
  }));
@@ -537,7 +520,7 @@ const nt = (t) => {
537
520
  {
538
521
  className: "fixed inset-0 z-40 bg-black/30",
539
522
  onClick: () => {
540
- c(!1), setTimeout(() => e(oe(null)), _e);
523
+ c(!1), setTimeout(() => e(oe(null)), Ce);
541
524
  }
542
525
  }
543
526
  ),
@@ -555,14 +538,14 @@ const nt = (t) => {
555
538
  /* @__PURE__ */ u("div", { className: "mt-3 flex flex-row justify-between w-full ", children: [
556
539
  /* @__PURE__ */ a("div", { children: /* @__PURE__ */ a("p", { className: "text-[#000000] font-bold font-nunitoSans", children: r.name }) }),
557
540
  /* @__PURE__ */ a("div", { children: /* @__PURE__ */ a(
558
- ge,
541
+ be,
559
542
  {
560
543
  icon: "mdi:close",
561
544
  className: "text-[#555555] w-6 h-6 cursor-pointer",
562
545
  onClick: () => {
563
546
  c(!1), setTimeout(
564
547
  () => e(oe(null)),
565
- _e
548
+ Ce
566
549
  );
567
550
  }
568
551
  }
@@ -572,7 +555,7 @@ const nt = (t) => {
572
555
  /* @__PURE__ */ a("div", { className: "flex flex-row items-center justify-center w-[120px] h-[120px] my-5", children: /* @__PURE__ */ a(
573
556
  "img",
574
557
  {
575
- src: (C = (v = (y = (i = r.imageGroups) == null ? void 0 : i[0]) == null ? void 0 : y.images) == null ? void 0 : v[0]) == null ? void 0 : C.link,
558
+ src: (C = (y = (x = (i = r.imageGroups) == null ? void 0 : i[0]) == null ? void 0 : x.images) == null ? void 0 : y[0]) == null ? void 0 : C.link,
576
559
  alt: r.name,
577
560
  className: "rounded-[10px]"
578
561
  }
@@ -621,21 +604,21 @@ const nt = (t) => {
621
604
  /* @__PURE__ */ u("div", { className: "mt-4 flex flex-col gap-2 w-full p-2", children: [
622
605
  /* @__PURE__ */ a("div", { className: "flex flex-row items-center gap-2", children: /* @__PURE__ */ u("div", { className: "flex items-center gap-2 text-left font-nunitoSans", children: [
623
606
  /* @__PURE__ */ u("div", { className: "text-[#323135] font-bold", children: [
624
- ((S = r == null ? void 0 : r.rating) == null ? void 0 : S.rate) || 0,
607
+ ((k = r == null ? void 0 : r.rating) == null ? void 0 : k.rate) || 0,
625
608
  " /",
626
609
  " ",
627
610
  /* @__PURE__ */ a("span", { className: "text-[#68656E]", children: "5" })
628
611
  ] }),
629
612
  /* @__PURE__ */ a("div", { className: "text-[#323135] font-semibold text-sm", children: "Overall Rating" }),
630
613
  /* @__PURE__ */ u("div", { className: "text-[#68656E] font-semibold text-sm", children: [
631
- ((A = r == null ? void 0 : r.rating) == null ? void 0 : A.count) || 0,
614
+ ((j = r == null ? void 0 : r.rating) == null ? void 0 : j.count) || 0,
632
615
  " ratings"
633
616
  ] })
634
617
  ] }) }),
635
618
  /* @__PURE__ */ a("div", { className: "mt-2 flex flex-row items-center gap-2", children: Array.from({ length: 5 }).map((T, D) => {
636
619
  var W;
637
620
  return /* @__PURE__ */ a(
638
- ge,
621
+ be,
639
622
  {
640
623
  icon: "mdi:star",
641
624
  width: "20",
@@ -679,7 +662,7 @@ const nt = (t) => {
679
662
  }
680
663
  )
681
664
  ] });
682
- }, Or = ({
665
+ }, Pr = ({
683
666
  tanyaConfig: t,
684
667
  basketId: e,
685
668
  addToCart: r
@@ -698,21 +681,21 @@ const nt = (t) => {
698
681
  "Niece/Nephew": "his/her niece/nephew",
699
682
  "My Friends": "his/her friends",
700
683
  Others: "others"
701
- }, c = Ft(null), l = Ft(null), d = Ft(null), i = Ft(null), [y, v] = $(null), [C, S] = $(!1), [A, T] = $(!1), [D, W] = $(!1), [lt, V] = $(!1), [ct, _t] = $(!1), [$t, et] = $(!1), [Ct, It] = $(""), [dt, zt] = $(""), At = (s) => ({
684
+ }, c = Ft(null), l = Ft(null), d = Ft(null), i = Ft(null), [x, y] = z(null), [C, k] = z(!1), [j, T] = z(!1), [D, W] = z(!1), [lt, R] = z(!1), [ct, St] = z(!1), [$t, et] = z(!1), [_t, Ct] = z(""), [dt, zt] = z(""), At = (s) => ({
702
685
  id: s.id,
703
686
  title: s.name,
704
687
  image: s.image ?? "",
705
688
  price: s.price ?? 0
706
- }), [rt, O] = $([]), _ = Ft(null), k = Vt((s) => s.store.store), ut = Vt((s) => s.product.product);
689
+ }), [rt, P] = z([]), _ = Ft(null), v = Rt((s) => s.store.store), ut = Rt((s) => s.product.product);
707
690
  M(() => {
708
691
  const s = localStorage.getItem(
709
692
  `access_token_${t.siteId}`
710
- ), g = localStorage.getItem(
693
+ ), w = localStorage.getItem(
711
694
  `chat-token-${t.siteId}`
712
695
  );
713
- if (s && g === s) {
714
- const m = localStorage.getItem("chatHistory");
715
- m && O(JSON.parse(m));
696
+ if (s && w === s) {
697
+ const h = localStorage.getItem("chatHistory");
698
+ h && P(JSON.parse(h));
716
699
  } else
717
700
  localStorage.setItem("chatHistory", JSON.stringify([])), localStorage.setItem(
718
701
  `chat-token-${t.siteId}`,
@@ -739,49 +722,49 @@ const nt = (t) => {
739
722
  M(() => {
740
723
  _.current && (_.current.scrollTop += 150);
741
724
  }, [rt]);
742
- let j = null, pt = null;
725
+ let $ = null, pt = null;
743
726
  const Lt = async () => {
744
- if (j && pt && Date.now() < pt)
745
- return j;
727
+ if ($ && pt && Date.now() < pt)
728
+ return $;
746
729
  try {
747
- const s = "https://us-east-1lsr29ln3u.auth.us-east-1.amazoncognito.com/oauth2/token", g = new URLSearchParams({
730
+ const s = "https://us-east-1lsr29ln3u.auth.us-east-1.amazoncognito.com/oauth2/token", w = new URLSearchParams({
748
731
  grant_type: "client_credentials",
749
732
  client_id: "4i8rd70sgt961tc4dhskgf08c",
750
733
  client_secret: "bnsfq1220loh2cn2cm2ttn8fdhdpt0u8m1fgj8vfk2rn61aurjg",
751
734
  scope: "default-m2m-resource-server-8xzfzo/read"
752
- }), m = await fetch(s, {
735
+ }), h = await fetch(s, {
753
736
  method: "POST",
754
737
  headers: {
755
738
  "Content-Type": "application/x-www-form-urlencoded"
756
739
  },
757
- body: g
740
+ body: w
758
741
  });
759
- if (!m.ok)
742
+ if (!h.ok)
760
743
  throw new Error(
761
- `Token request failed! status: ${m.status}`
744
+ `Token request failed! status: ${h.status}`
762
745
  );
763
- const b = await m.json();
764
- j = b.access_token;
765
- const p = b.expires_in || 3600;
766
- return pt = Date.now() + (p - 60) * 1e3, j;
746
+ const g = await h.json();
747
+ $ = g.access_token;
748
+ const p = g.expires_in || 3600;
749
+ return pt = Date.now() + (p - 60) * 1e3, $;
767
750
  } catch (s) {
768
- return console.error("Error obtaining JWT token:", s), j = null, pt = null, null;
751
+ return console.error("Error obtaining JWT token:", s), $ = null, pt = null, null;
769
752
  }
770
- }, h = async () => {
771
- const s = await Pt();
772
- s != null && v(s);
753
+ }, S = async () => {
754
+ const s = await Ot();
755
+ s != null && y(s);
773
756
  };
774
757
  M(() => {
775
758
  if (t != null && t.siteId) {
776
- const { clientID: s, host: g, organizationID: m, shortCode: b, siteId: p } = t;
777
- sessionStorage.setItem("Host", g), sessionStorage.setItem("SiteId", p), sessionStorage.setItem("pubCfg", btoa(s)), sessionStorage.setItem("envRef", b), sessionStorage.setItem("orgRef", m);
759
+ const { clientID: s, host: w, organizationID: h, shortCode: g, siteId: p } = t;
760
+ sessionStorage.setItem("Host", w), sessionStorage.setItem("SiteId", p), sessionStorage.setItem("pubCfg", btoa(s)), sessionStorage.setItem("envRef", g), sessionStorage.setItem("orgRef", h);
778
761
  }
779
- h(), console.log("scapi environment v1");
762
+ S(), console.log("scapi environment v1");
780
763
  }, []), M(() => {
781
764
  e && (console.log("setting the basket id", e), nt(e));
782
765
  }, [e]), M(() => {
783
766
  const s = async () => {
784
- S(!1);
767
+ k(!1);
785
768
  };
786
769
  return window.addEventListener("reactCartUpdated", s), () => window.removeEventListener("reactCartUpdated", s);
787
770
  }, []);
@@ -789,47 +772,47 @@ const nt = (t) => {
789
772
  const s = JSON.parse(
790
773
  sessionStorage.getItem("customerData") || "{}"
791
774
  ).customerId;
792
- return (await kr(s || "")).c_interests;
793
- }, ft = async (s, g) => {
775
+ return (await Sr(s || "")).c_interests;
776
+ }, It = async (s, w) => {
794
777
  console.log("in secondary flow", Nt);
795
- const m = await G();
796
- if (console.log(m, "interests of customer", Nt), !!m)
778
+ const h = await G();
779
+ if (console.log(h, "interests of customer", Nt), !!h)
797
780
  try {
798
- O(
781
+ P(
799
782
  (q) => q.map(
800
- (R, Y) => Y === q.length - 1 ? { ...R, secondaryLoading: !0 } : R
783
+ (V, Y) => Y === q.length - 1 ? { ...V, secondaryLoading: !0 } : V
801
784
  )
802
785
  );
803
- const b = await Lt();
804
- if (!b) throw new Error("Failed to fetch token");
805
- const p = localStorage.getItem("customerNumber"), w = localStorage.getItem("isLoggedIn"), ht = `https://tanya.aspiresystems.com/api/bedrock/invoke/stream?${new URLSearchParams({
806
- registered: String(w || !1),
786
+ const g = await Lt();
787
+ if (!g) throw new Error("Failed to fetch token");
788
+ const p = localStorage.getItem("customerNumber"), m = localStorage.getItem("isLoggedIn"), ft = `https://tanya.aspiresystems.com/api/bedrock/invoke/stream?${new URLSearchParams({
789
+ registered: String(m || !1),
807
790
  userId: String(p || (/* @__PURE__ */ new Date()).getTime())
808
- }).toString()}`, mt = JSON.stringify({
791
+ }).toString()}`, ht = JSON.stringify({
809
792
  flowId: "Q166PR519W",
810
793
  flowAliasId: "HKFUVLWVH2",
811
794
  input: {
812
795
  loyaltyPoints: "",
813
796
  productName: s,
814
- productPoints: String(g || 0),
815
- interests: m
797
+ productPoints: String(w || 0),
798
+ interests: h
816
799
  }
817
- }), B = await fetch(ht, {
800
+ }), B = await fetch(ft, {
818
801
  signal: AbortSignal.timeout(3e4),
819
802
  method: "POST",
820
803
  headers: {
821
804
  "Content-Type": "application/json",
822
- Authorization: `Bearer ${b}`
805
+ Authorization: `Bearer ${g}`
823
806
  },
824
- body: mt
807
+ body: ht
825
808
  });
826
809
  if (!B.body) throw new Error("Readable stream not supported");
827
- const wt = B.body.getReader(), gt = new TextDecoder();
810
+ const mt = B.body.getReader(), wt = new TextDecoder();
828
811
  let U = "";
829
812
  for (; ; ) {
830
- const { done: q, value: R } = await wt.read();
813
+ const { done: q, value: V } = await mt.read();
831
814
  if (q) break;
832
- U += gt.decode(R, { stream: !0 });
815
+ U += wt.decode(V, { stream: !0 });
833
816
  const Y = U.split(`
834
817
  `);
835
818
  U = Y.pop() || "";
@@ -838,34 +821,34 @@ const nt = (t) => {
838
821
  const f = X.slice(5).trim();
839
822
  try {
840
823
  const K = JSON.parse(f);
841
- K.index === 0 && O(
824
+ K.index === 0 && P(
842
825
  (I) => I.map(
843
- (P, Q) => Q === I.length - 1 ? {
844
- ...P,
826
+ (O, Q) => Q === I.length - 1 ? {
827
+ ...O,
845
828
  secondaryResponse: K.data,
846
829
  secondaryLoading: !1
847
- } : P
830
+ } : O
848
831
  )
849
832
  );
850
833
  } catch (K) {
851
- O(
834
+ P(
852
835
  (I) => I.map(
853
- (P, Q) => Q === I.length - 1 ? { ...P, secondaryLoading: !1 } : P
836
+ (O, Q) => Q === I.length - 1 ? { ...O, secondaryLoading: !1 } : O
854
837
  )
855
838
  ), console.error("Secondary flow JSON parse error:", K);
856
839
  }
857
840
  }
858
841
  }
859
- } catch (b) {
860
- console.error("Secondary flow error:", b);
842
+ } catch (g) {
843
+ console.error("Secondary flow error:", g);
861
844
  }
862
845
  }, L = async (s) => {
863
- const g = s || Ct.trim();
864
- if (g) {
865
- _t(!0), It(""), c.current = null, l.current = null, d.current = null, i.current = null, O((m) => [
866
- ...m,
846
+ const w = s || _t.trim();
847
+ if (w) {
848
+ St(!0), Ct(""), c.current = null, l.current = null, d.current = null, i.current = null, P((h) => [
849
+ ...h,
867
850
  {
868
- query: g,
851
+ query: w,
869
852
  response: "Thinking for what suits you best...",
870
853
  potentialQuestions: "",
871
854
  products: [],
@@ -873,38 +856,38 @@ const nt = (t) => {
873
856
  }
874
857
  ]);
875
858
  try {
876
- const m = dt, b = localStorage.getItem("customerNumber"), p = localStorage.getItem("isLoggedIn"), w = await Lt();
877
- if (!w)
859
+ const h = dt, g = localStorage.getItem("customerNumber"), p = localStorage.getItem("isLoggedIn"), m = await Lt();
860
+ if (!m)
878
861
  throw new Error("Failed to obtain access token");
879
- const ht = `https://tanya.aspiresystems.com/api/bedrock/invoke/stream?${new URLSearchParams({
862
+ const ft = `https://tanya.aspiresystems.com/api/bedrock/invoke/stream?${new URLSearchParams({
880
863
  registered: String(p || !1),
881
- userId: String(b || (/* @__PURE__ */ new Date()).getTime())
882
- }).toString()}`, mt = JSON.stringify({
864
+ userId: String(g || (/* @__PURE__ */ new Date()).getTime())
865
+ }).toString()}`, ht = JSON.stringify({
883
866
  flowId: "MMHQKYI1NE",
884
867
  flowAliasId: "SZF9ZK1ATE",
885
868
  input: {
886
- userPrompt: g,
887
- whom: m
869
+ userPrompt: w,
870
+ whom: h
888
871
  }
889
- }), B = await fetch(ht, {
872
+ }), B = await fetch(ft, {
890
873
  signal: AbortSignal.timeout(3e4),
891
874
  method: "POST",
892
875
  headers: {
893
876
  "Content-Type": "application/json",
894
- Authorization: `Bearer ${w}`
877
+ Authorization: `Bearer ${m}`
895
878
  },
896
- body: mt
879
+ body: ht
897
880
  });
898
881
  if (!B.ok)
899
882
  throw new Error(`HTTP error! status: ${B.status}`);
900
883
  if (!B.body) throw new Error("Readable stream not supported");
901
- const wt = B.body.getReader(), gt = new TextDecoder();
884
+ const mt = B.body.getReader(), wt = new TextDecoder();
902
885
  let U = "", q = "";
903
886
  for (; ; ) {
904
887
  et(!0);
905
- const { done: R, value: Y } = await wt.read();
906
- if (R) break;
907
- U += gt.decode(Y, { stream: !0 });
888
+ const { done: V, value: Y } = await mt.read();
889
+ if (V) break;
890
+ U += wt.decode(Y, { stream: !0 });
908
891
  const X = U.split(`
909
892
  `);
910
893
  U = X.pop() || "";
@@ -913,9 +896,9 @@ const nt = (t) => {
913
896
  const K = f.slice(5).trim();
914
897
  try {
915
898
  const I = JSON.parse(K);
916
- I.index == 1 && (q = I.data), O(
917
- (P) => P.map(
918
- (Q, Bt) => Bt === P.length - 1 ? {
899
+ I.index == 1 && (q = I.data), P(
900
+ (O) => O.map(
901
+ (Q, Bt) => Bt === O.length - 1 ? {
919
902
  ...Q,
920
903
  [I.index == 0 ? "response" : I.index == 1 ? "keywords" : I.index == 2 ? "potentialQuestions" : "end"]: I.data
921
904
  } : Q
@@ -926,61 +909,61 @@ const nt = (t) => {
926
909
  }
927
910
  }
928
911
  }
929
- rr(er(q));
930
- } catch (m) {
931
- console.error("Error sending message to Tanya:", m);
912
+ or(rr(q));
913
+ } catch (h) {
914
+ console.error("Error sending message to Tanya:", h);
932
915
  } finally {
933
- _t(!1);
916
+ St(!1);
934
917
  }
935
918
  }
936
- }, er = (s) => {
937
- const g = s.match(
919
+ }, rr = (s) => {
920
+ const w = s.match(
938
921
  /top five relevant product or category names are: (.*)/i
939
- ), p = (g ? g[1] : s).split(", ").map((z) => z.replace(/\s*(Toys|Bags|Miniature|etc\.*)\s*/gi, "").trim());
922
+ ), p = (w ? w[1] : s).split(", ").map((A) => A.replace(/\s*(Toys|Bags|Miniature|etc\.*)\s*/gi, "").trim());
940
923
  return [...new Set(p)].filter(Boolean).join(",");
941
- }, rr = async (s) => {
924
+ }, or = async (s) => {
942
925
  if (typeof s == "string") {
943
926
  console.log(s, "keywords");
944
- const g = s.split(",");
945
- for (const m of g) {
946
- const b = await be(m);
947
- if (et(!1), (b == null ? void 0 : b.length) > 0 && (O(
927
+ const w = s.split(",");
928
+ for (const h of w) {
929
+ const g = await xe(h);
930
+ if (et(!1), (g == null ? void 0 : g.length) > 0 && (P(
948
931
  (p) => p.map(
949
- (w, z) => z === p.length - 1 ? {
950
- ...w,
932
+ (m, A) => A === p.length - 1 ? {
933
+ ...m,
951
934
  products: [
952
- ...w.products || [],
953
- { keyword: m, items: b, loading: !1 }
935
+ ...m.products || [],
936
+ { keyword: h, items: g, loading: !1 }
954
937
  ]
955
- } : w
938
+ } : m
956
939
  )
957
940
  ), !c.current || l.current == null)) {
958
- const p = b[0];
941
+ const p = g[0];
959
942
  c.current = String((p == null ? void 0 : p.product_name) ?? ""), d.current = p.image.link, l.current = p.product_id;
960
- const w = typeof (p == null ? void 0 : p.price) == "number" ? p.price : void 0;
961
- i.current = typeof w == "number" && Number.isFinite(w) ? w : null;
943
+ const m = typeof (p == null ? void 0 : p.price) == "number" ? p.price : void 0;
944
+ i.current = typeof m == "number" && Number.isFinite(m) ? m : null;
962
945
  }
963
946
  }
964
947
  } else
965
- for (const g of s) {
966
- const m = await be(g);
967
- et(!1), (m == null ? void 0 : m.length) > 0 && O(
968
- (b) => b.map(
969
- (p, w) => w === b.length - 1 ? {
948
+ for (const w of s) {
949
+ const h = await xe(w);
950
+ et(!1), (h == null ? void 0 : h.length) > 0 && P(
951
+ (g) => g.map(
952
+ (p, m) => m === g.length - 1 ? {
970
953
  ...p,
971
954
  products: [
972
955
  ...p.products || [],
973
- { keyword: g, items: m, loading: !1 }
956
+ { keyword: w, items: h, loading: !1 }
974
957
  ]
975
958
  } : p
976
959
  )
977
960
  );
978
961
  }
979
962
  if (c.current) {
980
- O(
981
- (m) => m.map(
982
- (b, p) => p === m.length - 1 ? {
983
- ...b,
963
+ P(
964
+ (h) => h.map(
965
+ (g, p) => p === h.length - 1 ? {
966
+ ...g,
984
967
  productSnapshot: {
985
968
  id: l.current,
986
969
  name: c.current,
@@ -989,22 +972,22 @@ const nt = (t) => {
989
972
  points: 0,
990
973
  quantity: 1
991
974
  }
992
- } : b
975
+ } : g
993
976
  )
994
977
  );
995
- const g = JSON.parse(
978
+ const w = JSON.parse(
996
979
  sessionStorage.getItem("customerData") || "{}"
997
980
  );
998
- (g == null ? void 0 : g.isGuest) == !1 ? (console.log("running secondary flow", Nt), ft(c.current, 0)) : console.log("not running secondary flow", Nt);
981
+ (w == null ? void 0 : w.isGuest) == !1 ? (console.log("running secondary flow", Nt), It(c.current, 0)) : console.log("not running secondary flow", Nt);
999
982
  }
1000
983
  et(!1);
1001
- }, or = async (s, g) => {
1002
- var m, b, p, w, z, ht, mt, B, wt, gt, U, q, R, Y, X;
1003
- V(!0);
984
+ }, nr = async (s, w) => {
985
+ var h, g, p, m, A, ft, ht, B, mt, wt, U, q, V, Y, X;
986
+ R(!0);
1004
987
  try {
1005
- const f = await He(s.id);
1006
- if (!((b = (m = f == null ? void 0 : f.variants) == null ? void 0 : m[0]) != null && b.product_id || (w = (p = f == null ? void 0 : f.variants) == null ? void 0 : p[0]) != null && w.productId) && !(f.type.item || f.type.bundle)) {
1007
- V(!1), H.error("Variants not found", {
988
+ const f = await Re(s.id);
989
+ if (!((g = (h = f == null ? void 0 : f.variants) == null ? void 0 : h[0]) != null && g.product_id || (m = (p = f == null ? void 0 : f.variants) == null ? void 0 : p[0]) != null && m.productId) && !(f.type.item || f.type.bundle)) {
990
+ R(!1), H.error("Variants not found", {
1008
991
  position: "bottom-right",
1009
992
  autoClose: 1e3
1010
993
  }), console.error("No product variant found");
@@ -1012,99 +995,99 @@ const nt = (t) => {
1012
995
  }
1013
996
  const K = [
1014
997
  {
1015
- product_id: ((z = f.variants) == null ? void 0 : z[0].product_id) || ((ht = f.variants) == null ? void 0 : ht[0].productId) || (f == null ? void 0 : f.id),
1016
- quantity: g
998
+ product_id: ((A = f.variants) == null ? void 0 : A[0].product_id) || ((ft = f.variants) == null ? void 0 : ft[0].productId) || (f == null ? void 0 : f.id),
999
+ quantity: w
1017
1000
  }
1018
1001
  ];
1019
1002
  console.log(K, "product data", "app version", Nt);
1020
1003
  const I = JSON.parse(
1021
1004
  sessionStorage.getItem("customerData") || "{}"
1022
- ), P = (I == null ? void 0 : I.basketId) || localStorage.getItem(Yt), Q = !1, Bt = localStorage.getItem(Ot), me = Date.now();
1023
- if (!Q || !Bt || me >= parseInt(Bt)) {
1024
- const nr = await qe();
1025
- let { customer_token: bt } = await Me(
1026
- nr
1005
+ ), O = (I == null ? void 0 : I.basketId) || localStorage.getItem(Yt), Q = !1, Bt = localStorage.getItem(Pt), we = Date.now();
1006
+ if (!Q || !Bt || we >= parseInt(Bt)) {
1007
+ const ar = await Me();
1008
+ let { customer_token: gt } = await He(
1009
+ ar
1027
1010
  );
1028
- if (bt = "Bearer " + y.access_token, !bt) {
1011
+ if (gt = "Bearer " + x.access_token, !gt) {
1029
1012
  console.error("Failed to get customer_token");
1030
1013
  return;
1031
1014
  }
1032
- const ar = me + 300 * 1e3;
1033
- if (Kt(bt), localStorage.setItem(Ot, ar.toString()), console.log(P, "basketIdFromCustomer"), P) {
1034
- const we = await Re({
1035
- basketId: P,
1036
- customer_token: bt
1015
+ const ir = we + 300 * 1e3;
1016
+ if (Kt(gt), localStorage.setItem(Pt, ir.toString()), console.log(O, "basketIdFromCustomer"), O) {
1017
+ const ge = await Ye({
1018
+ basketId: O,
1019
+ customer_token: gt
1037
1020
  });
1038
- if (we.status === 200 && we) {
1039
- const Gt = await Nr(
1040
- P,
1021
+ if (ge.status === 200 && ge) {
1022
+ const Gt = await ne(
1023
+ O,
1041
1024
  K,
1042
- bt
1025
+ gt
1043
1026
  );
1044
- ((mt = Gt == null ? void 0 : Gt.product_items) == null ? void 0 : mt.length) > 0 && (H.success("Added to cart", {
1027
+ ((ht = Gt == null ? void 0 : Gt.product_items) == null ? void 0 : ht.length) > 0 && (H.success("Added to cart", {
1045
1028
  position: "bottom-right",
1046
1029
  autoClose: 3e3,
1047
1030
  hideProgressBar: !1,
1048
1031
  closeOnClick: !0,
1049
1032
  pauseOnHover: !0,
1050
1033
  draggable: !0
1051
- }), Rt(P), V(!1));
1034
+ }), Vt(O), R(!1));
1052
1035
  return;
1053
1036
  }
1054
1037
  }
1055
- const ir = {
1038
+ const sr = {
1056
1039
  productItems: [
1057
1040
  {
1058
- productId: ((B = f.variants) == null ? void 0 : B[0].product_id) || ((wt = f.variants) == null ? void 0 : wt[0].productId) || (f == null ? void 0 : f.id),
1041
+ productId: ((B = f.variants) == null ? void 0 : B[0].product_id) || ((mt = f.variants) == null ? void 0 : mt[0].productId) || (f == null ? void 0 : f.id),
1059
1042
  quantity: 1
1060
1043
  }
1061
1044
  ]
1062
- }, x = await Ve(bt, ir);
1045
+ }, b = await Ve(gt, sr);
1063
1046
  if (console.log(
1064
- x,
1065
- x == null ? void 0 : x.basket_id,
1066
- x == null ? void 0 : x.basketId,
1047
+ b,
1048
+ b == null ? void 0 : b.basket_id,
1049
+ b == null ? void 0 : b.basketId,
1067
1050
  "the basket response"
1068
- ), !(x != null && x.basket_id || !(x != null && x.basketId))) {
1069
- V(!1), console.error("Failed to create basket");
1051
+ ), !(b != null && b.basket_id || !(b != null && b.basketId))) {
1052
+ R(!1), console.error("Failed to create basket");
1070
1053
  return;
1071
1054
  }
1072
1055
  nt(
1073
- (x == null ? void 0 : x.basket_id) || (x == null ? void 0 : x.basketId)
1056
+ (b == null ? void 0 : b.basket_id) || (b == null ? void 0 : b.basketId)
1074
1057
  );
1075
- const xt = await r(
1058
+ const bt = await r(
1076
1059
  {
1077
1060
  productId: l,
1078
- quantity: g
1061
+ quantity: w
1079
1062
  },
1080
- (x == null ? void 0 : x.basket_id) || (x == null ? void 0 : x.basketId)
1063
+ (b == null ? void 0 : b.basket_id) || (b == null ? void 0 : b.basketId)
1081
1064
  );
1082
- (((gt = xt == null ? void 0 : xt.product_items) == null ? void 0 : gt.length) > 0 || ((U = xt == null ? void 0 : xt.productItems) == null ? void 0 : U.length) > 0) && H.success("Added to cart", {
1065
+ (((wt = bt == null ? void 0 : bt.product_items) == null ? void 0 : wt.length) > 0 || ((U = bt == null ? void 0 : bt.productItems) == null ? void 0 : U.length) > 0) && H.success("Added to cart", {
1083
1066
  position: "bottom-right",
1084
1067
  autoClose: 3e3,
1085
1068
  hideProgressBar: !1,
1086
1069
  closeOnClick: !0,
1087
1070
  pauseOnHover: !0,
1088
1071
  draggable: !0
1089
- }), Rt(x.basket_id || (x == null ? void 0 : x.basketId));
1072
+ }), Vt(b.basket_id || (b == null ? void 0 : b.basketId));
1090
1073
  }
1091
1074
  } catch (f) {
1092
- V(!1), console.error("Error adding to cart:", f), H.error("Failed to add product to cart", {
1075
+ R(!1), console.error("Error adding to cart:", f), H.error("Failed to add product to cart", {
1093
1076
  position: "bottom-right",
1094
1077
  autoClose: 3e3
1095
1078
  }), ((q = f == null ? void 0 : f.response) == null ? void 0 : q.status) === 404 || // Basket not found
1096
- ((R = f == null ? void 0 : f.response) == null ? void 0 : R.status) === 401 ? (((Y = f == null ? void 0 : f.response) == null ? void 0 : Y.status) === 404 && nt(null), ((X = f == null ? void 0 : f.response) == null ? void 0 : X.status) === 401 && (nt(null), Kt(null))) : (console.error("Failed to add product to basket:", f.message), H.error("Failed to add product to cart", {
1079
+ ((V = f == null ? void 0 : f.response) == null ? void 0 : V.status) === 401 ? (((Y = f == null ? void 0 : f.response) == null ? void 0 : Y.status) === 404 && nt(null), ((X = f == null ? void 0 : f.response) == null ? void 0 : X.status) === 401 && (nt(null), Kt(null))) : (console.error("Failed to add product to basket:", f.message), H.error("Failed to add product to cart", {
1097
1080
  position: "bottom-right",
1098
1081
  autoClose: 3e3
1099
1082
  }));
1100
1083
  }
1101
- V(!1);
1084
+ R(!1);
1102
1085
  };
1103
- return /* @__PURE__ */ a("div", { className: "relative flex justify-center", children: /* @__PURE__ */ u(yr, { open: C, onOpenChange: S, children: [
1086
+ return /* @__PURE__ */ a("div", { className: "relative flex justify-center", children: /* @__PURE__ */ u(vr, { open: C, onOpenChange: k, children: [
1104
1087
  /* @__PURE__ */ a(
1105
- vr,
1088
+ kr,
1106
1089
  {
1107
- onClick: () => S(!0),
1090
+ onClick: () => k(!0),
1108
1091
  style: {
1109
1092
  // background: storeDetails.tanyaThemeColor,
1110
1093
  },
@@ -1169,7 +1152,7 @@ const nt = (t) => {
1169
1152
  "div",
1170
1153
  {
1171
1154
  className: "fixed inset-0 z-40 bg-black/30",
1172
- onClick: () => S(!1)
1155
+ onClick: () => k(!1)
1173
1156
  }
1174
1157
  ),
1175
1158
  /* @__PURE__ */ u(
@@ -1180,9 +1163,9 @@ const nt = (t) => {
1180
1163
  top-0 right-0
1181
1164
  transition-transform duration-300 ease-in-out
1182
1165
  lg:transform
1183
- ${A ? "lg:translate-x-0" : "lg:translate-x-full"}
1166
+ ${j ? "lg:translate-x-0" : "lg:translate-x-full"}
1184
1167
  // For mobile: animate from bottom
1185
- ${A ? "translate-y-0" : "translate-y-full"}
1168
+ ${j ? "translate-y-0" : "translate-y-full"}
1186
1169
  lg:translate-y-0
1187
1170
  `,
1188
1171
  style: {
@@ -1199,7 +1182,7 @@ const nt = (t) => {
1199
1182
  {
1200
1183
  style: {
1201
1184
  display: "flex",
1202
- color: k.tanyaThemeContrastColor,
1185
+ color: v.tanyaThemeContrastColor,
1203
1186
  alignItems: "center",
1204
1187
  gap: "0.5rem"
1205
1188
  },
@@ -1260,7 +1243,7 @@ const nt = (t) => {
1260
1243
  gap: "1.25rem",
1261
1244
  margin: "0.75rem"
1262
1245
  },
1263
- children: /* @__PURE__ */ a("button", { onClick: () => S(!1), children: /* @__PURE__ */ u(
1246
+ children: /* @__PURE__ */ a("button", { onClick: () => k(!1), children: /* @__PURE__ */ u(
1264
1247
  "svg",
1265
1248
  {
1266
1249
  width: "24",
@@ -1320,7 +1303,7 @@ const nt = (t) => {
1320
1303
  ref: _,
1321
1304
  className: "overflow-y-auto pr-5 pb-2 space-y-4 hide-scrollbar flex-grow mb-24",
1322
1305
  children: [
1323
- (k == null ? void 0 : k.whomRequired) && /* @__PURE__ */ u(
1306
+ (v == null ? void 0 : v.whomRequired) && /* @__PURE__ */ u(
1324
1307
  "div",
1325
1308
  {
1326
1309
  className: "mx-3 p-3 rounded-2xl bg-[#FFFFFF]",
@@ -1342,8 +1325,8 @@ const nt = (t) => {
1342
1325
  ]
1343
1326
  }
1344
1327
  ),
1345
- rt.map((s, g) => {
1346
- var m, b;
1328
+ rt.map((s, w) => {
1329
+ var h, g;
1347
1330
  return /* @__PURE__ */ u("div", { children: [
1348
1331
  /* @__PURE__ */ a("div", { className: "flex justify-end", children: /* @__PURE__ */ a("p", { className: "text-sm font-nunitoSans font-bold text-[#000000] bg-[#E2DBFF] border border-[#C9C2DE] rounded-l-xl p-2 m-3 mb-4 rounded-br-xl max-w-[75%]", children: s.query }) }),
1349
1332
  s.response && s.response.includes("Thinking") ? /* @__PURE__ */ a("div", { children: /* @__PURE__ */ a(
@@ -1363,12 +1346,12 @@ const nt = (t) => {
1363
1346
  }
1364
1347
  }
1365
1348
  ) }),
1366
- $t && !s.response.includes("Thinking") && ((m = s.products) == null ? void 0 : m.length) == 0 && /* @__PURE__ */ a("div", { children: /* @__PURE__ */ a("p", { className: "text-sm animate-pulse font-nunitoSans font-bold text-[#000000] bg-[#E2DBFF] border border-[#C9C2DE] rounded-l-xl p-2 m-3 mb-4 rounded-br-xl max-w-[75%]", children: "Finding best products for you" }) }),
1367
- (s == null ? void 0 : s.products) && ((b = s == null ? void 0 : s.products) == null ? void 0 : b.length) > 0 && /* @__PURE__ */ a(
1368
- Fr,
1349
+ $t && !s.response.includes("Thinking") && ((h = s.products) == null ? void 0 : h.length) == 0 && /* @__PURE__ */ a("div", { children: /* @__PURE__ */ a("p", { className: "text-sm animate-pulse font-nunitoSans font-bold text-[#000000] bg-[#E2DBFF] border border-[#C9C2DE] rounded-l-xl p-2 m-3 mb-4 rounded-br-xl max-w-[75%]", children: "Finding best products for you" }) }),
1350
+ (s == null ? void 0 : s.products) && ((g = s == null ? void 0 : s.products) == null ? void 0 : g.length) > 0 && /* @__PURE__ */ a(
1351
+ Nr,
1369
1352
  {
1370
1353
  chat: s.products,
1371
- storeDetails: k
1354
+ storeDetails: v
1372
1355
  }
1373
1356
  ),
1374
1357
  s.potentialQuestions.length > 0 && /* @__PURE__ */ u("div", { className: "my-2 px-4 text-sm text-gray-700", children: [
@@ -1376,21 +1359,21 @@ const nt = (t) => {
1376
1359
  "p",
1377
1360
  {
1378
1361
  className: "font-nunitoSans font-bold text-sm text-[#494949]",
1379
- style: { color: k.themeDarkColor },
1362
+ style: { color: v.themeDarkColor },
1380
1363
  children: "Why not explore these inquiries..."
1381
1364
  }
1382
1365
  ),
1383
- s.potentialQuestions.split(",").map((p, w) => /* @__PURE__ */ a(
1366
+ s.potentialQuestions.split(",").map((p, m) => /* @__PURE__ */ a(
1384
1367
  "button",
1385
1368
  {
1386
- className: `cursor-pointer font-nunitoSans font-semibold text-[#232323] border bg-[#804C9E0D] border-${k.themeDarkColor} m-1 rounded-xl px-2 py-1`,
1369
+ className: `cursor-pointer font-nunitoSans font-semibold text-[#232323] border bg-[#804C9E0D] border-${v.themeDarkColor} m-1 rounded-xl px-2 py-1`,
1387
1370
  onClick: () => L(p),
1388
1371
  style: {
1389
- backgroundColor: k.tanyaThemeColorLight
1372
+ backgroundColor: v.tanyaThemeColorLight
1390
1373
  },
1391
1374
  children: p
1392
1375
  },
1393
- w
1376
+ m
1394
1377
  ))
1395
1378
  ] }),
1396
1379
  s.secondaryLoading && /* @__PURE__ */ a("div", { className: "mt-3 mb-4 px-4", children: /* @__PURE__ */ u(
@@ -1411,7 +1394,7 @@ const nt = (t) => {
1411
1394
  "p",
1412
1395
  {
1413
1396
  className: "font-semibold tanya-pulse",
1414
- style: { color: k.themeDarkColor },
1397
+ style: { color: v.themeDarkColor },
1415
1398
  children: "I’ve found a special surprise crafted just for you… hang on a sec!"
1416
1399
  }
1417
1400
  ),
@@ -1419,7 +1402,7 @@ const nt = (t) => {
1419
1402
  "p",
1420
1403
  {
1421
1404
  className: "tanya-dots mt-1",
1422
- style: { color: k.themeDarkColor },
1405
+ style: { color: v.themeDarkColor },
1423
1406
  children: "• • •"
1424
1407
  }
1425
1408
  )
@@ -1432,7 +1415,7 @@ const nt = (t) => {
1432
1415
  {
1433
1416
  className: "text-sm text-[#232323] bg-[#FFFFFF] px-7 py-4 rounded-br-xl rounded-bl-2xl w-full",
1434
1417
  style: {
1435
- backgroundColor: k.tanyaThemeColorLight
1418
+ backgroundColor: v.tanyaThemeColorLight
1436
1419
  },
1437
1420
  dangerouslySetInnerHTML: {
1438
1421
  __html: Xt(
@@ -1447,7 +1430,7 @@ const nt = (t) => {
1447
1430
  {
1448
1431
  className: "flex gap-4 items-stretch rounded-2xl p-4",
1449
1432
  style: {
1450
- backgroundColor: k.tanyaThemeColorLight
1433
+ backgroundColor: v.tanyaThemeColorLight
1451
1434
  },
1452
1435
  children: [
1453
1436
  /* @__PURE__ */ a(
@@ -1474,7 +1457,7 @@ const nt = (t) => {
1474
1457
  /* @__PURE__ */ a("p", { className: "font-semibold text-[15px] leading-snug", children: s.productSnapshot.name }),
1475
1458
  /* @__PURE__ */ a("p", { className: "mt-1 text-[14px] font-medium", children: s.productSnapshot.price != null ? new Intl.NumberFormat(void 0, {
1476
1459
  style: "currency",
1477
- currency: (k == null ? void 0 : k.currency) || "USD"
1460
+ currency: (v == null ? void 0 : v.currency) || "USD"
1478
1461
  }).format(
1479
1462
  s.productSnapshot.price
1480
1463
  ) : "" }),
@@ -1494,23 +1477,23 @@ const nt = (t) => {
1494
1477
  "button",
1495
1478
  {
1496
1479
  className: "px-3 py-1 text-sm",
1497
- onClick: () => O(
1480
+ onClick: () => P(
1498
1481
  (p) => p.map(
1499
- (w, z) => z === g && w.productSnapshot ? {
1500
- ...w,
1482
+ (m, A) => A === w && m.productSnapshot ? {
1483
+ ...m,
1501
1484
  productSnapshot: {
1502
- ...w.productSnapshot,
1485
+ ...m.productSnapshot,
1503
1486
  quantity: Math.max(
1504
1487
  1,
1505
- w.productSnapshot.quantity - 1
1488
+ m.productSnapshot.quantity - 1
1506
1489
  )
1507
1490
  }
1508
- } : w
1491
+ } : m
1509
1492
  )
1510
1493
  ),
1511
1494
  style: {
1512
1495
  background: "transparent",
1513
- color: k.themeDarkColor
1496
+ color: v.themeDarkColor
1514
1497
  },
1515
1498
  children: "−"
1516
1499
  }
@@ -1520,20 +1503,20 @@ const nt = (t) => {
1520
1503
  "button",
1521
1504
  {
1522
1505
  className: "px-3 py-1 text-sm",
1523
- onClick: () => O(
1506
+ onClick: () => P(
1524
1507
  (p) => p.map(
1525
- (w, z) => z === g && w.productSnapshot ? {
1526
- ...w,
1508
+ (m, A) => A === w && m.productSnapshot ? {
1509
+ ...m,
1527
1510
  productSnapshot: {
1528
- ...w.productSnapshot,
1529
- quantity: w.productSnapshot.quantity + 1
1511
+ ...m.productSnapshot,
1512
+ quantity: m.productSnapshot.quantity + 1
1530
1513
  }
1531
- } : w
1514
+ } : m
1532
1515
  )
1533
1516
  ),
1534
1517
  style: {
1535
1518
  background: "transparent",
1536
- color: k.themeDarkColor
1519
+ color: v.themeDarkColor
1537
1520
  },
1538
1521
  children: "+"
1539
1522
  }
@@ -1543,7 +1526,7 @@ const nt = (t) => {
1543
1526
  "button",
1544
1527
  {
1545
1528
  onClick: () => {
1546
- or(
1529
+ nr(
1547
1530
  At(
1548
1531
  s.productSnapshot
1549
1532
  ),
@@ -1553,8 +1536,8 @@ const nt = (t) => {
1553
1536
  disabled: lt,
1554
1537
  className: "px-4 py-2 rounded-full font-medium",
1555
1538
  style: {
1556
- background: k.tanyaThemeColor,
1557
- color: (k == null ? void 0 : k.tanyaThemeContrastColor) || "#fff",
1539
+ background: v.tanyaThemeColor,
1540
+ color: (v == null ? void 0 : v.tanyaThemeContrastColor) || "#fff",
1558
1541
  opacity: lt ? 0.8 : 1
1559
1542
  },
1560
1543
  children: lt ? "Adding..." : "Add to cart"
@@ -1567,7 +1550,7 @@ const nt = (t) => {
1567
1550
  ) })
1568
1551
  ] }) }),
1569
1552
  /* @__PURE__ */ a("div", { className: "mb-20" })
1570
- ] }, g);
1553
+ ] }, w);
1571
1554
  })
1572
1555
  ]
1573
1556
  }
@@ -1585,9 +1568,9 @@ const nt = (t) => {
1585
1568
  {
1586
1569
  className: "flex-1 bg-[#FFFFFF] text-[#232323] outline-none border-none px-2 py-2 text-sm",
1587
1570
  placeholder: "How can I help you...",
1588
- value: Ct,
1571
+ value: _t,
1589
1572
  autoFocus: !0,
1590
- onChange: (s) => It(s.target.value),
1573
+ onChange: (s) => Ct(s.target.value),
1591
1574
  onKeyDown: (s) => {
1592
1575
  s.key === "Enter" && !ct && L();
1593
1576
  }
@@ -1606,7 +1589,7 @@ const nt = (t) => {
1606
1589
  className: "p-3 animate-spin rounded-full h-3 w-3 border-b-2",
1607
1590
  style: {
1608
1591
  borderBottom: "2px solid",
1609
- color: k.tanyaThemeColor
1592
+ color: v.tanyaThemeColor
1610
1593
  }
1611
1594
  }
1612
1595
  ) : /* @__PURE__ */ a(
@@ -1642,17 +1625,17 @@ const nt = (t) => {
1642
1625
  ] })
1643
1626
  ] }) });
1644
1627
  };
1645
- var ne = function(t, e) {
1646
- return ne = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
1628
+ var ae = function(t, e) {
1629
+ return ae = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
1647
1630
  r.__proto__ = o;
1648
1631
  } || function(r, o) {
1649
1632
  for (var n in o) Object.prototype.hasOwnProperty.call(o, n) && (r[n] = o[n]);
1650
- }, ne(t, e);
1633
+ }, ae(t, e);
1651
1634
  };
1652
- function Pr(t, e) {
1635
+ function Or(t, e) {
1653
1636
  if (typeof e != "function" && e !== null)
1654
1637
  throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
1655
- ne(t, e);
1638
+ ae(t, e);
1656
1639
  function r() {
1657
1640
  this.constructor = t;
1658
1641
  }
@@ -1675,12 +1658,12 @@ function $r(t, e) {
1675
1658
  e.indexOf(o[n]) < 0 && Object.prototype.propertyIsEnumerable.call(t, o[n]) && (r[o[n]] = t[o[n]]);
1676
1659
  return r;
1677
1660
  }
1678
- var Qt = "Invariant Violation", Ce = Object.setPrototypeOf, zr = Ce === void 0 ? function(t, e) {
1661
+ var Qt = "Invariant Violation", Ie = Object.setPrototypeOf, zr = Ie === void 0 ? function(t, e) {
1679
1662
  return t.__proto__ = e, t;
1680
- } : Ce, Ye = (
1663
+ } : Ie, Ke = (
1681
1664
  /** @class */
1682
1665
  (function(t) {
1683
- Pr(e, t);
1666
+ Or(e, t);
1684
1667
  function e(r) {
1685
1668
  r === void 0 && (r = Qt);
1686
1669
  var o = t.call(this, typeof r == "number" ? Qt + ": " + r + " (see https://github.com/apollographql/invariant-packages)" : r) || this;
@@ -1691,12 +1674,12 @@ var Qt = "Invariant Violation", Ce = Object.setPrototypeOf, zr = Ce === void 0 ?
1691
1674
  );
1692
1675
  function ot(t, e) {
1693
1676
  if (!t)
1694
- throw new Ye(e);
1677
+ throw new Ke(e);
1695
1678
  }
1696
- var Ke = ["debug", "log", "warn", "error", "silent"], Ar = Ke.indexOf("log");
1679
+ var Je = ["debug", "log", "warn", "error", "silent"], Ar = Je.indexOf("log");
1697
1680
  function Ut(t) {
1698
1681
  return function() {
1699
- if (Ke.indexOf(t) >= Ar) {
1682
+ if (Je.indexOf(t) >= Ar) {
1700
1683
  var e = console[t] || console.log;
1701
1684
  return e.apply(console, arguments);
1702
1685
  }
@@ -1705,20 +1688,20 @@ function Ut(t) {
1705
1688
  (function(t) {
1706
1689
  t.debug = Ut("debug"), t.log = Ut("log"), t.warn = Ut("warn"), t.error = Ut("error");
1707
1690
  })(ot || (ot = {}));
1708
- var Je = "3.14.0";
1709
- function yt(t) {
1691
+ var We = "3.14.0";
1692
+ function xt(t) {
1710
1693
  try {
1711
1694
  return t();
1712
1695
  } catch {
1713
1696
  }
1714
1697
  }
1715
- const ae = yt(function() {
1698
+ const ie = xt(function() {
1716
1699
  return globalThis;
1717
- }) || yt(function() {
1700
+ }) || xt(function() {
1718
1701
  return window;
1719
- }) || yt(function() {
1702
+ }) || xt(function() {
1720
1703
  return self;
1721
- }) || yt(function() {
1704
+ }) || xt(function() {
1722
1705
  return global;
1723
1706
  }) || // We don't expect the Function constructor ever to be invoked at runtime, as
1724
1707
  // long as at least one of globalThis, window, self, or global is defined, so
@@ -1726,13 +1709,13 @@ const ae = yt(function() {
1726
1709
  // detect syntactic usage of the Function constructor. If you think you can
1727
1710
  // improve your static analysis to detect this obfuscation, think again. This
1728
1711
  // is an arms race you cannot win, at least not in JavaScript.
1729
- yt(function() {
1730
- return yt.constructor("return this")();
1712
+ xt(function() {
1713
+ return xt.constructor("return this")();
1731
1714
  });
1732
- var Ie = /* @__PURE__ */ new Map();
1715
+ var Fe = /* @__PURE__ */ new Map();
1733
1716
  function jr(t) {
1734
- var e = Ie.get(t) || 1;
1735
- return Ie.set(t, e + 1), "".concat(t, ":").concat(e, ":").concat(Math.random().toString(36).slice(2));
1717
+ var e = Fe.get(t) || 1;
1718
+ return Fe.set(t, e + 1), "".concat(t, ":").concat(e, ":").concat(Math.random().toString(36).slice(2));
1736
1719
  }
1737
1720
  function Dr(t, e) {
1738
1721
  var r = jr("stringifyForDisplay");
@@ -1746,7 +1729,7 @@ function qt(t) {
1746
1729
  r[o - 1] = arguments[o];
1747
1730
  if (typeof e == "number") {
1748
1731
  var n = e;
1749
- e = le(n), e || (e = ce(n, r), r = []);
1732
+ e = ce(n), e || (e = de(n, r), r = []);
1750
1733
  }
1751
1734
  t.apply(void 0, [e].concat(r));
1752
1735
  };
@@ -1754,20 +1737,20 @@ function qt(t) {
1754
1737
  var Zt = Object.assign(function(e, r) {
1755
1738
  for (var o = [], n = 2; n < arguments.length; n++)
1756
1739
  o[n - 2] = arguments[n];
1757
- e || ot(e, le(r, o) || ce(r, o));
1740
+ e || ot(e, ce(r, o) || de(r, o));
1758
1741
  }, {
1759
1742
  debug: qt(ot.debug),
1760
1743
  log: qt(ot.log),
1761
1744
  warn: qt(ot.warn),
1762
1745
  error: qt(ot.error)
1763
1746
  });
1764
- function We(t) {
1747
+ function Ge(t) {
1765
1748
  for (var e = [], r = 1; r < arguments.length; r++)
1766
1749
  e[r - 1] = arguments[r];
1767
- return new Ye(le(t, e) || ce(t, e));
1750
+ return new Ke(ce(t, e) || de(t, e));
1768
1751
  }
1769
- var Fe = Symbol.for("ApolloErrorMessageHandler_" + Je);
1770
- function Ge(t) {
1752
+ var Ne = Symbol.for("ApolloErrorMessageHandler_" + We);
1753
+ function Xe(t) {
1771
1754
  if (typeof t == "string")
1772
1755
  return t;
1773
1756
  try {
@@ -1776,16 +1759,16 @@ function Ge(t) {
1776
1759
  return "<non-serializable>";
1777
1760
  }
1778
1761
  }
1779
- function le(t, e) {
1762
+ function ce(t, e) {
1780
1763
  if (e === void 0 && (e = []), !!t)
1781
- return ae[Fe] && ae[Fe](t, e.map(Ge));
1764
+ return ie[Ne] && ie[Ne](t, e.map(Xe));
1782
1765
  }
1783
- function ce(t, e) {
1766
+ function de(t, e) {
1784
1767
  if (e === void 0 && (e = []), !!t)
1785
1768
  return "An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({
1786
- version: Je,
1769
+ version: We,
1787
1770
  message: t,
1788
- args: e.map(Ge)
1771
+ args: e.map(Xe)
1789
1772
  })));
1790
1773
  }
1791
1774
  function Lr(t) {
@@ -1796,7 +1779,7 @@ function Lr(t) {
1796
1779
  })[0] || null;
1797
1780
  }
1798
1781
  let F = null;
1799
- const Ne = {};
1782
+ const Ee = {};
1800
1783
  let Br = 1;
1801
1784
  const Ur = () => class {
1802
1785
  constructor() {
@@ -1811,11 +1794,11 @@ const Ur = () => class {
1811
1794
  for (let e = F; e; e = e.parent)
1812
1795
  if (this.id in e.slots) {
1813
1796
  const r = e.slots[this.id];
1814
- if (r === Ne)
1797
+ if (r === Ee)
1815
1798
  break;
1816
1799
  return e !== F && (F.slots[this.id] = r), !0;
1817
1800
  }
1818
- return F && (F.slots[this.id] = Ne), !1;
1801
+ return F && (F.slots[this.id] = Ee), !1;
1819
1802
  }
1820
1803
  getValue() {
1821
1804
  if (this.hasValue())
@@ -1859,7 +1842,7 @@ const Ur = () => class {
1859
1842
  return e.apply(o, r);
1860
1843
  }
1861
1844
  };
1862
- function Ee(t) {
1845
+ function Te(t) {
1863
1846
  try {
1864
1847
  return t();
1865
1848
  } catch {
@@ -1868,18 +1851,18 @@ function Ee(t) {
1868
1851
  const te = "@wry/context:Slot", qr = (
1869
1852
  // Prefer globalThis when available.
1870
1853
  // https://github.com/benjamn/wryware/issues/347
1871
- Ee(() => globalThis) || // Fall back to global, which works in Node.js and may be converted by some
1854
+ Te(() => globalThis) || // Fall back to global, which works in Node.js and may be converted by some
1872
1855
  // bundlers to the appropriate identifier (window, self, ...) depending on the
1873
1856
  // bundling target. https://github.com/endojs/endo/issues/576#issuecomment-1178515224
1874
- Ee(() => global) || // Otherwise, use a dummy host that's local to this module. We used to fall
1857
+ Te(() => global) || // Otherwise, use a dummy host that's local to this module. We used to fall
1875
1858
  // back to using the Array constructor as a namespace, but that was flagged in
1876
1859
  // https://github.com/benjamn/wryware/issues/347, and can be avoided.
1877
1860
  /* @__PURE__ */ Object.create(null)
1878
- ), Te = qr, de = Te[te] || // Earlier versions of this package stored the globalKey property on the Array
1861
+ ), Pe = qr, ue = Pe[te] || // Earlier versions of this package stored the globalKey property on the Array
1879
1862
  // constructor, so we check there as well, to prevent Slot class duplication.
1880
1863
  Array[te] || (function(t) {
1881
1864
  try {
1882
- Object.defineProperty(Te, te, {
1865
+ Object.defineProperty(Pe, te, {
1883
1866
  value: t,
1884
1867
  enumerable: !1,
1885
1868
  writable: !1,
@@ -1894,8 +1877,8 @@ Array[te] || (function(t) {
1894
1877
  } finally {
1895
1878
  return t;
1896
1879
  }
1897
- })(Ur()), { bind: Co, noContext: Io } = de;
1898
- new de();
1880
+ })(Ur()), { bind: Co, noContext: Io } = ue;
1881
+ new ue();
1899
1882
  function Mr(t, e) {
1900
1883
  var r = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
1901
1884
  if (r) return (r = r.call(t)).next.bind(r);
@@ -1923,24 +1906,24 @@ function Oe(t, e) {
1923
1906
  o[r] = t[r];
1924
1907
  return o;
1925
1908
  }
1926
- function Pe(t, e) {
1909
+ function $e(t, e) {
1927
1910
  for (var r = 0; r < e.length; r++) {
1928
1911
  var o = e[r];
1929
1912
  o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o);
1930
1913
  }
1931
1914
  }
1932
- function ue(t, e, r) {
1933
- return e && Pe(t.prototype, e), r && Pe(t, r), Object.defineProperty(t, "prototype", { writable: !1 }), t;
1915
+ function pe(t, e, r) {
1916
+ return e && $e(t.prototype, e), r && $e(t, r), Object.defineProperty(t, "prototype", { writable: !1 }), t;
1934
1917
  }
1935
- var pe = function() {
1918
+ var fe = function() {
1936
1919
  return typeof Symbol == "function";
1937
- }, fe = function(t) {
1938
- return pe() && !!Symbol[t];
1939
1920
  }, he = function(t) {
1940
- return fe(t) ? Symbol[t] : "@@" + t;
1921
+ return fe() && !!Symbol[t];
1922
+ }, me = function(t) {
1923
+ return he(t) ? Symbol[t] : "@@" + t;
1941
1924
  };
1942
- pe() && !fe("observable") && (Symbol.observable = Symbol("observable"));
1943
- var Vr = he("iterator"), ie = he("observable"), Xe = he("species");
1925
+ fe() && !he("observable") && (Symbol.observable = Symbol("observable"));
1926
+ var Rr = me("iterator"), se = me("observable"), Qe = me("species");
1944
1927
  function Jt(t, e) {
1945
1928
  var r = t[e];
1946
1929
  if (r != null) {
@@ -1950,13 +1933,13 @@ function Jt(t, e) {
1950
1933
  }
1951
1934
  function Et(t) {
1952
1935
  var e = t.constructor;
1953
- return e !== void 0 && (e = e[Xe], e === null && (e = void 0)), e !== void 0 ? e : N;
1936
+ return e !== void 0 && (e = e[Qe], e === null && (e = void 0)), e !== void 0 ? e : N;
1954
1937
  }
1955
- function Rr(t) {
1938
+ function Vr(t) {
1956
1939
  return t instanceof N;
1957
1940
  }
1958
- function kt(t) {
1959
- kt.log ? kt.log(t) : setTimeout(function() {
1941
+ function vt(t) {
1942
+ vt.log ? vt.log(t) : setTimeout(function() {
1960
1943
  throw t;
1961
1944
  });
1962
1945
  }
@@ -1965,11 +1948,11 @@ function Ht(t) {
1965
1948
  try {
1966
1949
  t();
1967
1950
  } catch (e) {
1968
- kt(e);
1951
+ vt(e);
1969
1952
  }
1970
1953
  });
1971
1954
  }
1972
- function Qe(t) {
1955
+ function Ze(t) {
1973
1956
  var e = t._cleanup;
1974
1957
  if (e !== void 0 && (t._cleanup = void 0, !!e))
1975
1958
  try {
@@ -1980,21 +1963,21 @@ function Qe(t) {
1980
1963
  r && r.call(e);
1981
1964
  }
1982
1965
  } catch (o) {
1983
- kt(o);
1966
+ vt(o);
1984
1967
  }
1985
1968
  }
1986
- function se(t) {
1969
+ function le(t) {
1987
1970
  t._observer = void 0, t._queue = void 0, t._state = "closed";
1988
1971
  }
1989
1972
  function Yr(t) {
1990
1973
  var e = t._queue;
1991
1974
  if (e) {
1992
1975
  t._queue = void 0, t._state = "ready";
1993
- for (var r = 0; r < e.length && (Ze(t, e[r].type, e[r].value), t._state !== "closed"); ++r)
1976
+ for (var r = 0; r < e.length && (tr(t, e[r].type, e[r].value), t._state !== "closed"); ++r)
1994
1977
  ;
1995
1978
  }
1996
1979
  }
1997
- function Ze(t, e, r) {
1980
+ function tr(t, e, r) {
1998
1981
  t._state = "running";
1999
1982
  var o = t._observer;
2000
1983
  try {
@@ -2004,17 +1987,17 @@ function Ze(t, e, r) {
2004
1987
  n && n.call(o, r);
2005
1988
  break;
2006
1989
  case "error":
2007
- if (se(t), n) n.call(o, r);
1990
+ if (le(t), n) n.call(o, r);
2008
1991
  else throw r;
2009
1992
  break;
2010
1993
  case "complete":
2011
- se(t), n && n.call(o);
1994
+ le(t), n && n.call(o);
2012
1995
  break;
2013
1996
  }
2014
1997
  } catch (c) {
2015
- kt(c);
1998
+ vt(c);
2016
1999
  }
2017
- t._state === "closed" ? Qe(t) : t._state === "running" && (t._state = "ready");
2000
+ t._state === "closed" ? Ze(t) : t._state === "running" && (t._state = "ready");
2018
2001
  }
2019
2002
  function ee(t, e, r) {
2020
2003
  if (t._state !== "closed") {
@@ -2034,7 +2017,7 @@ function ee(t, e, r) {
2034
2017
  });
2035
2018
  return;
2036
2019
  }
2037
- Ze(t, e, r);
2020
+ tr(t, e, r);
2038
2021
  }
2039
2022
  }
2040
2023
  var Kr = /* @__PURE__ */ (function() {
@@ -2050,8 +2033,8 @@ var Kr = /* @__PURE__ */ (function() {
2050
2033
  }
2051
2034
  var e = t.prototype;
2052
2035
  return e.unsubscribe = function() {
2053
- this._state !== "closed" && (se(this), Qe(this));
2054
- }, ue(t, [{
2036
+ this._state !== "closed" && (le(this), Ze(this));
2037
+ }, pe(t, [{
2055
2038
  key: "closed",
2056
2039
  get: function() {
2057
2040
  return this._state === "closed";
@@ -2068,7 +2051,7 @@ var Kr = /* @__PURE__ */ (function() {
2068
2051
  ee(this._subscription, "error", o);
2069
2052
  }, e.complete = function() {
2070
2053
  ee(this._subscription, "complete");
2071
- }, ue(t, [{
2054
+ }, pe(t, [{
2072
2055
  key: "closed",
2073
2056
  get: function() {
2074
2057
  return this._subscription._state === "closed";
@@ -2098,11 +2081,11 @@ var Kr = /* @__PURE__ */ (function() {
2098
2081
  i.unsubscribe(), c();
2099
2082
  }
2100
2083
  var i = n.subscribe({
2101
- next: function(y) {
2084
+ next: function(x) {
2102
2085
  try {
2103
- o(y, d);
2104
- } catch (v) {
2105
- l(v), i.unsubscribe();
2086
+ o(x, d);
2087
+ } catch (y) {
2088
+ l(y), i.unsubscribe();
2106
2089
  }
2107
2090
  },
2108
2091
  error: l,
@@ -2156,26 +2139,26 @@ var Kr = /* @__PURE__ */ (function() {
2156
2139
  }, e.reduce = function(o) {
2157
2140
  var n = this;
2158
2141
  if (typeof o != "function") throw new TypeError(o + " is not a function");
2159
- var c = Et(this), l = arguments.length > 1, d = !1, i = arguments[1], y = i;
2160
- return new c(function(v) {
2142
+ var c = Et(this), l = arguments.length > 1, d = !1, i = arguments[1], x = i;
2143
+ return new c(function(y) {
2161
2144
  return n.subscribe({
2162
2145
  next: function(C) {
2163
- var S = !d;
2164
- if (d = !0, !S || l)
2146
+ var k = !d;
2147
+ if (d = !0, !k || l)
2165
2148
  try {
2166
- y = o(y, C);
2167
- } catch (A) {
2168
- return v.error(A);
2149
+ x = o(x, C);
2150
+ } catch (j) {
2151
+ return y.error(j);
2169
2152
  }
2170
2153
  else
2171
- y = C;
2154
+ x = C;
2172
2155
  },
2173
2156
  error: function(C) {
2174
- v.error(C);
2157
+ y.error(C);
2175
2158
  },
2176
2159
  complete: function() {
2177
- if (!d && !l) return v.error(new TypeError("Cannot reduce an empty sequence"));
2178
- v.next(y), v.complete();
2160
+ if (!d && !l) return y.error(new TypeError("Cannot reduce an empty sequence"));
2161
+ y.next(x), y.complete();
2179
2162
  }
2180
2163
  });
2181
2164
  });
@@ -2184,22 +2167,22 @@ var Kr = /* @__PURE__ */ (function() {
2184
2167
  c[l] = arguments[l];
2185
2168
  var d = Et(this);
2186
2169
  return new d(function(i) {
2187
- var y, v = 0;
2188
- function C(S) {
2189
- y = S.subscribe({
2190
- next: function(A) {
2191
- i.next(A);
2170
+ var x, y = 0;
2171
+ function C(k) {
2172
+ x = k.subscribe({
2173
+ next: function(j) {
2174
+ i.next(j);
2192
2175
  },
2193
- error: function(A) {
2194
- i.error(A);
2176
+ error: function(j) {
2177
+ i.error(j);
2195
2178
  },
2196
2179
  complete: function() {
2197
- v === c.length ? (y = void 0, i.complete()) : C(d.from(c[v++]));
2180
+ y === c.length ? (x = void 0, i.complete()) : C(d.from(c[y++]));
2198
2181
  }
2199
2182
  });
2200
2183
  }
2201
2184
  return C(o), function() {
2202
- y && (y.unsubscribe(), y = void 0);
2185
+ x && (x.unsubscribe(), x = void 0);
2203
2186
  };
2204
2187
  });
2205
2188
  }, e.flatMap = function(o) {
@@ -2208,63 +2191,63 @@ var Kr = /* @__PURE__ */ (function() {
2208
2191
  var c = Et(this);
2209
2192
  return new c(function(l) {
2210
2193
  var d = [], i = n.subscribe({
2211
- next: function(v) {
2194
+ next: function(y) {
2212
2195
  if (o)
2213
2196
  try {
2214
- v = o(v);
2215
- } catch (S) {
2216
- return l.error(S);
2197
+ y = o(y);
2198
+ } catch (k) {
2199
+ return l.error(k);
2217
2200
  }
2218
- var C = c.from(v).subscribe({
2219
- next: function(S) {
2220
- l.next(S);
2201
+ var C = c.from(y).subscribe({
2202
+ next: function(k) {
2203
+ l.next(k);
2221
2204
  },
2222
- error: function(S) {
2223
- l.error(S);
2205
+ error: function(k) {
2206
+ l.error(k);
2224
2207
  },
2225
2208
  complete: function() {
2226
- var S = d.indexOf(C);
2227
- S >= 0 && d.splice(S, 1), y();
2209
+ var k = d.indexOf(C);
2210
+ k >= 0 && d.splice(k, 1), x();
2228
2211
  }
2229
2212
  });
2230
2213
  d.push(C);
2231
2214
  },
2232
- error: function(v) {
2233
- l.error(v);
2215
+ error: function(y) {
2216
+ l.error(y);
2234
2217
  },
2235
2218
  complete: function() {
2236
- y();
2219
+ x();
2237
2220
  }
2238
2221
  });
2239
- function y() {
2222
+ function x() {
2240
2223
  i.closed && d.length === 0 && l.complete();
2241
2224
  }
2242
2225
  return function() {
2243
- d.forEach(function(v) {
2244
- return v.unsubscribe();
2226
+ d.forEach(function(y) {
2227
+ return y.unsubscribe();
2245
2228
  }), i.unsubscribe();
2246
2229
  };
2247
2230
  });
2248
- }, e[ie] = function() {
2231
+ }, e[se] = function() {
2249
2232
  return this;
2250
2233
  }, t.from = function(o) {
2251
2234
  var n = typeof this == "function" ? this : t;
2252
2235
  if (o == null) throw new TypeError(o + " is not an object");
2253
- var c = Jt(o, ie);
2236
+ var c = Jt(o, se);
2254
2237
  if (c) {
2255
2238
  var l = c.call(o);
2256
2239
  if (Object(l) !== l) throw new TypeError(l + " is not an object");
2257
- return Rr(l) && l.constructor === n ? l : new n(function(d) {
2240
+ return Vr(l) && l.constructor === n ? l : new n(function(d) {
2258
2241
  return l.subscribe(d);
2259
2242
  });
2260
2243
  }
2261
- if (fe("iterator") && (c = Jt(o, Vr), c))
2244
+ if (he("iterator") && (c = Jt(o, Rr), c))
2262
2245
  return new n(function(d) {
2263
2246
  Ht(function() {
2264
2247
  if (!d.closed) {
2265
- for (var i = Mr(c.call(o)), y; !(y = i()).done; ) {
2266
- var v = y.value;
2267
- if (d.next(v), d.closed) return;
2248
+ for (var i = Mr(c.call(o)), x; !(x = i()).done; ) {
2249
+ var y = x.value;
2250
+ if (d.next(y), d.closed) return;
2268
2251
  }
2269
2252
  d.complete();
2270
2253
  }
@@ -2294,17 +2277,17 @@ var Kr = /* @__PURE__ */ (function() {
2294
2277
  }
2295
2278
  });
2296
2279
  });
2297
- }, ue(t, null, [{
2298
- key: Xe,
2280
+ }, pe(t, null, [{
2281
+ key: Qe,
2299
2282
  get: function() {
2300
2283
  return this;
2301
2284
  }
2302
2285
  }]), t;
2303
2286
  })();
2304
- pe() && Object.defineProperty(N, Symbol("extensions"), {
2287
+ fe() && Object.defineProperty(N, Symbol("extensions"), {
2305
2288
  value: {
2306
- symbol: ie,
2307
- hostReportError: kt
2289
+ symbol: se,
2290
+ hostReportError: vt
2308
2291
  },
2309
2292
  configurable: !0
2310
2293
  });
@@ -2324,11 +2307,11 @@ function Wr(t) {
2324
2307
  e = "@@observable";
2325
2308
  return e;
2326
2309
  }
2327
- var vt;
2328
- typeof self < "u" ? vt = self : typeof window < "u" ? vt = window : typeof global < "u" ? vt = global : typeof module < "u" ? vt = module : vt = Function("return this")();
2329
- Wr(vt);
2330
- var $e = N.prototype, ze = "@@observable";
2331
- $e[ze] || ($e[ze] = function() {
2310
+ var yt;
2311
+ typeof self < "u" ? yt = self : typeof window < "u" ? yt = window : typeof global < "u" ? yt = global : typeof module < "u" ? yt = module : yt = Function("return this")();
2312
+ Wr(yt);
2313
+ var ze = N.prototype, Ae = "@@observable";
2314
+ ze[Ae] || (ze[Ae] = function() {
2332
2315
  return this;
2333
2316
  });
2334
2317
  function Gr(t) {
@@ -2341,7 +2324,7 @@ function Gr(t) {
2341
2324
  ], r = 0, o = Object.keys(t); r < o.length; r++) {
2342
2325
  var n = o[r];
2343
2326
  if (e.indexOf(n) < 0)
2344
- throw We(58, n);
2327
+ throw Ge(58, n);
2345
2328
  }
2346
2329
  return t;
2347
2330
  }
@@ -2368,23 +2351,23 @@ function Qr(t) {
2368
2351
  };
2369
2352
  return e.operationName || (e.operationName = typeof e.query != "string" ? Lr(e.query) || void 0 : ""), e;
2370
2353
  }
2371
- var Zr = Symbol.for("apollo.deprecations"), to = ae, eo = new de();
2354
+ var Zr = Symbol.for("apollo.deprecations"), to = ie, eo = new ue();
2372
2355
  function ro(t) {
2373
2356
  return to[Zr] || (eo.getValue() || []).includes(t);
2374
2357
  }
2375
2358
  function oo(t, e) {
2376
2359
  ro(t) || e();
2377
2360
  }
2378
- function Ae(t, e) {
2361
+ function je(t, e) {
2379
2362
  return e ? e(t) : N.of();
2380
2363
  }
2381
2364
  function Tt(t) {
2382
- return typeof t == "function" ? new tr(t) : t;
2365
+ return typeof t == "function" ? new er(t) : t;
2383
2366
  }
2384
2367
  function Mt(t) {
2385
2368
  return t.request.length <= 1;
2386
2369
  }
2387
- var tr = (
2370
+ var er = (
2388
2371
  /** @class */
2389
2372
  (function() {
2390
2373
  function t(e) {
@@ -2399,7 +2382,7 @@ var tr = (
2399
2382
  return r.concat(o);
2400
2383
  });
2401
2384
  }, t.split = function(e, r, o) {
2402
- var n = Tt(r), c = Tt(o || new t(Ae)), l;
2385
+ var n = Tt(r), c = Tt(o || new t(je)), l;
2403
2386
  return Mt(n) && Mt(c) ? l = new t(function(d) {
2404
2387
  return e(d) ? n.request(d) || N.of() : c.request(d) || N.of();
2405
2388
  }) : l = new t(function(d, i) {
@@ -2422,11 +2405,11 @@ var tr = (
2422
2405
  }) || N.of();
2423
2406
  }), Object.assign(c, { left: o, right: n });
2424
2407
  }, t.prototype.split = function(e, r, o) {
2425
- return this.concat(t.split(e, r, o || new t(Ae)));
2408
+ return this.concat(t.split(e, r, o || new t(je)));
2426
2409
  }, t.prototype.concat = function(e) {
2427
2410
  return t.concat(this, e);
2428
2411
  }, t.prototype.request = function(e, r) {
2429
- throw We(48);
2412
+ throw Ge(48);
2430
2413
  }, t.prototype.onError = function(e, r) {
2431
2414
  if (globalThis.__DEV__ !== !1 && oo("onError", function() {
2432
2415
  globalThis.__DEV__ !== !1 && Zt.warn(49);
@@ -2439,7 +2422,7 @@ var tr = (
2439
2422
  })()
2440
2423
  );
2441
2424
  function no(t) {
2442
- return new tr(function(e, r) {
2425
+ return new er(function(e, r) {
2443
2426
  var o = $r(e, []);
2444
2427
  return new N(function(n) {
2445
2428
  var c, l = !1;
@@ -2475,7 +2458,7 @@ const ao = async () => {
2475
2458
  } catch (n) {
2476
2459
  return E.isAxiosError(n) ? console.error("Error fetching token:", n.response || n.message) : console.error("Unexpected error:", n), null;
2477
2460
  }
2478
- }, io = "https://api.australia-southeast1.gcp.commercetools.com/kt-demo/graphql", so = sr({
2461
+ }, io = "https://api.australia-southeast1.gcp.commercetools.com/kt-demo/graphql", so = lr({
2479
2462
  uri: `${io}`
2480
2463
  }), lo = no(async (t, { headers: e }) => {
2481
2464
  const r = await ao();
@@ -2485,9 +2468,9 @@ const ao = async () => {
2485
2468
  authorization: `Bearer ${r}`
2486
2469
  }
2487
2470
  };
2488
- }), co = new lr({
2471
+ }), co = new cr({
2489
2472
  link: lo.concat(so),
2490
- cache: new cr(),
2473
+ cache: new dr(),
2491
2474
  defaultOptions: {
2492
2475
  watchQuery: {
2493
2476
  fetchPolicy: "cache-and-network"
@@ -2495,7 +2478,7 @@ const ao = async () => {
2495
2478
  }
2496
2479
  }), Fo = (t) => {
2497
2480
  const { tanyaConfig: e } = t;
2498
- return /* @__PURE__ */ a(dr, { client: co, children: /* @__PURE__ */ a(xr, { children: /* @__PURE__ */ a(Or, { tanyaConfig: e }) }) });
2481
+ return /* @__PURE__ */ a(ur, { client: co, children: /* @__PURE__ */ a(yr, { children: /* @__PURE__ */ a(Pr, { tanyaConfig: e }) }) });
2499
2482
  };
2500
2483
  export {
2501
2484
  Fo as TanyaChatbot,