tanya-chatbot 0.3.2 → 0.3.4

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,5 +1,5 @@
1
- import { useEffect as bt, useState as P, useRef as Ft } from "react";
2
- import { jsx as a, jsxs as u, Fragment as ee } from "react/jsx-runtime";
1
+ import { useEffect as bt, useState as P, useRef as It } from "react";
2
+ import { jsx as a, jsxs as u, Fragment as re } from "react/jsx-runtime";
3
3
  import { createHttpLink as ir, ApolloClient as sr, InMemoryCache as lr, ApolloProvider as cr } from "@apollo/client";
4
4
  import { Provider as dr, useDispatch as Ae, useSelector as Mt } from "react-redux";
5
5
  import { createSlice as De, configureStore as ur } from "@reduxjs/toolkit";
@@ -8,7 +8,7 @@ import "clsx";
8
8
  import "tailwind-merge";
9
9
  import E from "axios";
10
10
  import "crypto-js";
11
- import { Icon as we } from "@iconify/react";
11
+ import { Icon as ge } from "@iconify/react";
12
12
  import { toast as U } from "react-toastify";
13
13
  const pr = '*,: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 yo() {
@@ -73,7 +73,7 @@ const fr = {
73
73
  t.product = e.payload;
74
74
  }
75
75
  }
76
- }), { setProduct: re } = Ue.actions, wr = Ue.reducer, gr = ur({
76
+ }), { setProduct: oe } = Ue.actions, wr = Ue.reducer, gr = ur({
77
77
  reducer: {
78
78
  store: mr,
79
79
  product: wr
@@ -150,7 +150,7 @@ async function Ot() {
150
150
  console.log(d);
151
151
  }
152
152
  }
153
- const Z = () => sessionStorage.getItem("Host"), R = () => sessionStorage.getItem("SiteId"), tt = () => sessionStorage.getItem("pubCfg"), et = () => sessionStorage.getItem("envRef"), rt = () => sessionStorage.getItem("orgRef"), ge = async (t) => {
153
+ const Z = () => sessionStorage.getItem("Host"), R = () => sessionStorage.getItem("SiteId"), tt = () => sessionStorage.getItem("pubCfg"), et = () => sessionStorage.getItem("envRef"), rt = () => sessionStorage.getItem("orgRef"), be = async (t) => {
154
154
  console.log("fetching results");
155
155
  const { serverUrl: e, basePath: r } = st();
156
156
  let o = "";
@@ -200,10 +200,10 @@ const Z = () => sessionStorage.getItem("Host"), R = () => sessionStorage.getItem
200
200
  }
201
201
  }
202
202
  )).data;
203
- }, be = (t) => String(typeof t == "string" ? t : t["en-US"] || t), xe = (t) => t != null && t.image ? [t.image] : "variants" in t ? t.variants[0].images : t.masterVariant.images.map((e) => e.url), kr = (t, e) => t.toLocaleString("en-US", {
203
+ }, 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), kr = (t, e) => t.toLocaleString("en-US", {
204
204
  style: "currency",
205
205
  currency: e || "USD"
206
- }), ye = (t) => {
206
+ }), ve = (t) => {
207
207
  var e, r, o;
208
208
  return "variants" in t ? {
209
209
  centAmount: (e = t.variants[0]) == null ? void 0 : e.prices.EUR.max,
@@ -212,21 +212,21 @@ const Z = () => sessionStorage.getItem("Host"), R = () => sessionStorage.getItem
212
212
  centAmount: (r = t.masterVariant) == null ? void 0 : r.prices[0].value.centAmount,
213
213
  currencyCode: (o = t.masterVariant) == null ? void 0 : o.prices[0].value.currencyCode
214
214
  };
215
- }, Sr = (t) => t.charAt(0).toUpperCase() + t.slice(1), ve = (t, e) => t.length < e ? t : t.slice(0, e) + "...", Wt = (t) => t.split("\\n").map((e, r) => {
215
+ }, Sr = (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) => {
216
216
  const o = e.match(/^(\d+)\.\s(.+)/);
217
217
  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/>";
218
218
  }).join("");
219
- function _r() {
219
+ function Cr() {
220
220
  const t = () => window.innerWidth < 425 ? 1 : window.innerWidth < 768 ? 2 : 4, [e, r] = P(t);
221
221
  return bt(() => {
222
222
  const o = () => r(t());
223
223
  return window.addEventListener("resize", o), () => window.removeEventListener("resize", o);
224
224
  }, []), e;
225
225
  }
226
- const Cr = ({
226
+ const _r = ({
227
227
  product: t
228
228
  }) => {
229
- const e = Ae(), r = _r(), [o, n] = P(0), l = () => {
229
+ const e = Ae(), r = Cr(), [o, n] = P(0), l = () => {
230
230
  n(
231
231
  (i) => i + r >= t.length ? 0 : i + r
232
232
  );
@@ -236,7 +236,7 @@ const Cr = ({
236
236
  );
237
237
  }, d = async (i) => {
238
238
  const x = await He(i);
239
- e(re(x));
239
+ e(oe(x));
240
240
  };
241
241
  return /* @__PURE__ */ a("div", { className: "mt-2 overflow-x-hidden", children: /* @__PURE__ */ u("div", { className: "flex items-center justify-center gap-4 relative", children: [
242
242
  (t == null ? void 0 : t.length) > r && /* @__PURE__ */ a(
@@ -252,7 +252,7 @@ const Cr = ({
252
252
  }
253
253
  ),
254
254
  /* @__PURE__ */ a("div", { className: "flex gap-5 justify-center flex-1 overflow-hidden", children: t.slice(o, o + r).map((i) => {
255
- var x, b, _, S;
255
+ var x, b, C, S;
256
256
  return /* @__PURE__ */ u(
257
257
  "div",
258
258
  {
@@ -264,7 +264,7 @@ const Cr = ({
264
264
  /* @__PURE__ */ a("div", { className: "w-full p-2 flex items-center justify-center bg-white", children: /* @__PURE__ */ a(
265
265
  "img",
266
266
  {
267
- src: ((x = xe(i)[0]) == null ? void 0 : x.link) || xe(i)[0] || // fallback if it's a string
267
+ src: ((x = ye(i)[0]) == null ? void 0 : x.link) || ye(i)[0] || // fallback if it's a string
268
268
  "https://via.placeholder.com/120",
269
269
  alt: i != null && i.productName ? i.productName : "Product",
270
270
  className: "w-28 h-28 rounded-[10px] transition-transform duration-300 hover:scale-125 object-cover"
@@ -276,8 +276,8 @@ const Cr = ({
276
276
  className: "text-white w-full p-2 text-[12px] text-center h-[60px]",
277
277
  children: [
278
278
  /* @__PURE__ */ u("div", { className: "relative inline-block group", children: [
279
- /* @__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 : ve(
280
- be((b = i == null ? void 0 : i.name) == null ? void 0 : b["en-US"]),
279
+ /* @__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(
280
+ xe((b = i == null ? void 0 : i.name) == null ? void 0 : b["en-US"]),
281
281
  60
282
282
  ) || "Product" }),
283
283
  /* @__PURE__ */ a(
@@ -291,8 +291,8 @@ const Cr = ({
291
291
  marginBottom: "5px",
292
292
  zIndex: 50
293
293
  },
294
- children: i != null && i.productName ? i.productName : i != null && i.product_name ? i.product_name : ve(
295
- be((_ = i == null ? void 0 : i.name) == null ? void 0 : _["en-US"]),
294
+ children: i != null && i.productName ? i.productName : i != null && i.product_name ? i.product_name : ke(
295
+ xe((C = i == null ? void 0 : i.name) == null ? void 0 : C["en-US"]),
296
296
  60
297
297
  ) || "Product"
298
298
  }
@@ -300,8 +300,8 @@ const Cr = ({
300
300
  ] }),
301
301
  /* @__PURE__ */ u("div", { className: " flex text-center items-center gap-2 text-[14px] text-[#14121F] font-bold font-nunitoSans text-base mb-1", children: [
302
302
  /* @__PURE__ */ a("p", { children: kr(
303
- i != null && i.price ? Number(i == null ? void 0 : i.price) : ye(i).centAmount || 0,
304
- (S = ye(i)) == null ? void 0 : S.currencyCode
303
+ i != null && i.price ? Number(i == null ? void 0 : i.price) : ve(i).centAmount || 0,
304
+ (S = ve(i)) == null ? void 0 : S.currencyCode
305
305
  ) }),
306
306
  /* @__PURE__ */ u("p", { className: "text-[#14121F] font-normal line-through text-sm font-nunitoSans truncate", children: [
307
307
  "$",
@@ -329,7 +329,7 @@ const Cr = ({
329
329
  }
330
330
  )
331
331
  ] }) });
332
- }, 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(
332
+ }, Ir = ({ 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(
333
333
  "div",
334
334
  {
335
335
  className: "mb-4 p-3 rounded-xl",
@@ -346,7 +346,7 @@ const Cr = ({
346
346
  }
347
347
  ),
348
348
  /* @__PURE__ */ a(
349
- Cr,
349
+ _r,
350
350
  {
351
351
  product: r.items,
352
352
  storeDetails: e
@@ -413,35 +413,35 @@ const Cr = ({
413
413
  } catch (s) {
414
414
  return E.isAxiosError(s) ? { status: (l = s.response) == null ? void 0 : l.status, data: null } : { status: null, data: null };
415
415
  }
416
- }, ke = "sfcc_basket_id", Se = "sfcc_customer_token", Tt = "sfcc_token_expiry", Ir = 300 * 1e3, It = "1.0.0";
416
+ }, Rt = "sfcc_basket_id", Se = "sfcc_customer_token", Tt = "sfcc_token_expiry", Fr = 300 * 1e3, Ft = "1.0.0";
417
417
  const xt = (t) => {
418
418
  try {
419
- t ? localStorage.setItem(ke, t) : localStorage.removeItem(ke);
419
+ t ? localStorage.setItem(Rt, t) : localStorage.removeItem(Rt);
420
420
  } catch (e) {
421
421
  console.error("Error saving basket ID to storage:", e);
422
422
  }
423
- }, Rt = (t) => {
423
+ }, Yt = (t) => {
424
424
  try {
425
425
  if (t) {
426
426
  localStorage.setItem(Se, t);
427
- const e = Date.now() + Ir;
427
+ const e = Date.now() + Fr;
428
428
  localStorage.setItem(Tt, e.toString());
429
429
  } else
430
430
  localStorage.removeItem(Se);
431
431
  } catch (e) {
432
432
  console.error("Error storing token:", e);
433
433
  }
434
- }, _e = 300, Nr = () => {
435
- var d, i, x, b, _, S;
436
- const t = Ae(), e = Mt((C) => C.product.product), r = Mt((C) => C.store.store), [o, n] = P(!!e);
434
+ }, Ce = 300, Nr = () => {
435
+ var d, i, x, b, C, S;
436
+ const t = Ae(), e = Mt((_) => _.product.product), r = Mt((_) => _.store.store), [o, n] = P(!!e);
437
437
  if (bt(() => {
438
438
  n(!!e);
439
439
  }, [e]), !e) return null;
440
440
  const l = async () => {
441
- var C, j, q, M, lt, vt, Pt, ot, kt, St, ct, $t, zt, _t, T, dt;
441
+ var _, j, q, M, lt, vt, Pt, ot, kt, St, ct, $t, zt, Ct, O, dt;
442
442
  console.log(e, "the prod");
443
443
  try {
444
- if (!((j = (C = e == null ? void 0 : e.variants) == null ? void 0 : C[0]) != null && j.product_id) && !(e.type.item || e.type.bundle) && !((M = (q = e == null ? void 0 : e.variants) == null ? void 0 : q[0]) != null && M.productId)) {
444
+ if (!((j = (_ = e == null ? void 0 : e.variants) == null ? void 0 : _[0]) != null && j.product_id) && !(e.type.item || e.type.bundle) && !((M = (q = e == null ? void 0 : e.variants) == null ? void 0 : q[0]) != null && M.productId)) {
445
445
  U.error("Variants not available", {
446
446
  position: "bottom-right",
447
447
  autoClose: 1e3
@@ -455,10 +455,10 @@ const xt = (t) => {
455
455
  }
456
456
  ];
457
457
  console.log(p, "the product data");
458
- const Ct = JSON.parse(
458
+ const _t = JSON.parse(
459
459
  sessionStorage.getItem("customerData") || "{}"
460
- ), nt = Ct == null ? void 0 : Ct.basketId, Jt = !1, jt = localStorage.getItem(Tt), Y = Date.now();
461
- if (!Jt || !jt || Y >= parseInt(jt)) {
460
+ ), nt = (_t == null ? void 0 : _t.basketId) || localStorage.getItem(Rt), Kt = !1, jt = localStorage.getItem(Tt), Y = Date.now();
461
+ if (!Kt || !jt || Y >= parseInt(jt)) {
462
462
  let $ = "";
463
463
  {
464
464
  const K = await Ot();
@@ -469,7 +469,7 @@ const xt = (t) => {
469
469
  return;
470
470
  }
471
471
  const At = Y + 300 * 1e3;
472
- if (Rt($), localStorage.setItem(Tt, At.toString()), nt) {
472
+ if (Yt($), localStorage.setItem(Tt, At.toString()), nt) {
473
473
  const K = await Re({
474
474
  basketId: nt,
475
475
  customer_token: $
@@ -491,7 +491,7 @@ const xt = (t) => {
491
491
  return;
492
492
  }
493
493
  }
494
- const Kt = {
494
+ const Gt = {
495
495
  productItems: [
496
496
  {
497
497
  productId: ((kt = e.variants) == null ? void 0 : kt[0].product_id) || ((St = e.variants) == null ? void 0 : St[0].productId) || (e == null ? void 0 : e.id),
@@ -500,7 +500,7 @@ const xt = (t) => {
500
500
  ]
501
501
  };
502
502
  console.log("before create basket");
503
- const h = await Ve($, Kt);
503
+ const h = await Ve($, Gt);
504
504
  if (console.log(
505
505
  h,
506
506
  h == null ? void 0 : h.basket_id,
@@ -535,7 +535,7 @@ const xt = (t) => {
535
535
  position: "bottom-right",
536
536
  autoClose: 3e3
537
537
  }), ((zt = p == null ? void 0 : p.response) == null ? void 0 : zt.status) === 404 || // Basket not found
538
- ((_t = p == null ? void 0 : p.response) == null ? void 0 : _t.status) === 401 ? (((T = p == null ? void 0 : p.response) == null ? void 0 : T.status) === 404 && xt(null), ((dt = p == null ? void 0 : p.response) == null ? void 0 : dt.status) === 401 && (xt(null), Rt(null))) : (console.error("Failed to add product to basket:", p.message), U.error("Failed to add product to cart", {
538
+ ((Ct = p == null ? void 0 : p.response) == null ? void 0 : Ct.status) === 401 ? (((O = p == null ? void 0 : p.response) == null ? void 0 : O.status) === 404 && xt(null), ((dt = p == null ? void 0 : p.response) == null ? void 0 : dt.status) === 401 && (xt(null), Yt(null))) : (console.error("Failed to add product to basket:", p.message), U.error("Failed to add product to cart", {
539
539
  position: "bottom-right",
540
540
  autoClose: 3e3
541
541
  }));
@@ -543,13 +543,13 @@ const xt = (t) => {
543
543
  }, s = () => {
544
544
  e && (window.location.href = e.c_pdpUrl);
545
545
  };
546
- return console.log(e, "the prod"), /* @__PURE__ */ u(ee, { children: [
546
+ return console.log(e, "the prod"), /* @__PURE__ */ u(re, { children: [
547
547
  /* @__PURE__ */ a(
548
548
  "div",
549
549
  {
550
550
  className: "fixed inset-0 z-40 bg-black/30",
551
551
  onClick: () => {
552
- n(!1), setTimeout(() => t(re(null)), _e);
552
+ n(!1), setTimeout(() => t(oe(null)), Ce);
553
553
  }
554
554
  }
555
555
  ),
@@ -562,19 +562,19 @@ const xt = (t) => {
562
562
  ${o ? "translate-y-0 md:translate-y-0 md:translate-x-0 opacity-100" : "translate-y-full md:translate-y-0 md:translate-x-full opacity-0 pointer-events-none"}
563
563
  `,
564
564
  style: { willChange: "transform, opacity" },
565
- onClick: (C) => C.stopPropagation(),
565
+ onClick: (_) => _.stopPropagation(),
566
566
  children: [
567
567
  /* @__PURE__ */ u("div", { className: "mt-3 flex flex-row justify-between w-full ", children: [
568
568
  /* @__PURE__ */ a("div", { children: /* @__PURE__ */ a("p", { className: "text-[#000000] font-bold font-nunitoSans", children: e.name }) }),
569
569
  /* @__PURE__ */ a("div", { children: /* @__PURE__ */ a(
570
- we,
570
+ ge,
571
571
  {
572
572
  icon: "mdi:close",
573
573
  className: "text-[#555555] w-6 h-6 cursor-pointer",
574
574
  onClick: () => {
575
575
  n(!1), setTimeout(
576
- () => t(re(null)),
577
- _e
576
+ () => t(oe(null)),
577
+ Ce
578
578
  );
579
579
  }
580
580
  }
@@ -590,7 +590,7 @@ const xt = (t) => {
590
590
  }
591
591
  ) }),
592
592
  /* @__PURE__ */ a("div", { className: "flex flex-col items-center gap-2", children: e.imageGroups.slice(1, 2).map(
593
- (C) => C.images.slice(1, 2).map((j) => /* @__PURE__ */ a(
593
+ (_) => _.images.slice(1, 2).map((j) => /* @__PURE__ */ a(
594
594
  "img",
595
595
  {
596
596
  src: j.link,
@@ -624,14 +624,16 @@ const xt = (t) => {
624
624
  "div",
625
625
  {
626
626
  className: "text-[#68656E] font-normal font-nunitoSans text-xs pl-2 mt-3",
627
- dangerouslySetInnerHTML: { __html: e.short_description || e.longDescription }
627
+ dangerouslySetInnerHTML: {
628
+ __html: e.short_description || e.longDescription
629
+ }
628
630
  }
629
631
  )
630
632
  ] }),
631
633
  /* @__PURE__ */ u("div", { className: "mt-4 flex flex-col gap-2 w-full p-2", children: [
632
634
  /* @__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: [
633
635
  /* @__PURE__ */ u("div", { className: "text-[#323135] font-bold", children: [
634
- ((_ = e == null ? void 0 : e.rating) == null ? void 0 : _.rate) || 0,
636
+ ((C = e == null ? void 0 : e.rating) == null ? void 0 : C.rate) || 0,
635
637
  " /",
636
638
  " ",
637
639
  /* @__PURE__ */ a("span", { className: "text-[#68656E]", children: "5" })
@@ -642,10 +644,10 @@ const xt = (t) => {
642
644
  " ratings"
643
645
  ] })
644
646
  ] }) }),
645
- /* @__PURE__ */ a("div", { className: "mt-2 flex flex-row items-center gap-2", children: Array.from({ length: 5 }).map((C, j) => {
647
+ /* @__PURE__ */ a("div", { className: "mt-2 flex flex-row items-center gap-2", children: Array.from({ length: 5 }).map((_, j) => {
646
648
  var q;
647
649
  return /* @__PURE__ */ a(
648
- we,
650
+ ge,
649
651
  {
650
652
  icon: "mdi:star",
651
653
  width: "20",
@@ -706,25 +708,25 @@ const xt = (t) => {
706
708
  "Niece/Nephew": "his/her niece/nephew",
707
709
  "My Friends": "his/her friends",
708
710
  Others: "others"
709
- }, o = Ft(null), n = Ft(null), l = Ft(null), s = Ft(null), [d, i] = P(null), [x, b] = P(!1), [_, S] = P(!1), [C, j] = P(!1), [q, M] = P(!1), [lt, vt] = P(!1), [Pt, ot] = P(!1), [kt, St] = P(""), [ct, $t] = P(""), zt = (c) => ({
711
+ }, o = It(null), n = It(null), l = It(null), s = It(null), [d, i] = P(null), [x, b] = P(!1), [C, S] = P(!1), [_, j] = P(!1), [q, M] = P(!1), [lt, vt] = P(!1), [Pt, ot] = P(!1), [kt, St] = P(""), [ct, $t] = P(""), zt = (c) => ({
710
712
  id: c.id,
711
713
  title: c.name,
712
714
  image: c.image ?? "",
713
715
  price: c.price ?? 0
714
- }), [_t, T] = P([]), dt = Ft(null), p = Mt((c) => c.store.store), Ct = Mt((c) => c.product.product), nt = () => {
716
+ }), [Ct, O] = P([]), dt = It(null), p = Mt((c) => c.store.store), _t = Mt((c) => c.product.product), nt = () => {
715
717
  j(!0), setTimeout(() => S(!0), 10);
716
- }, Jt = () => {
718
+ }, Kt = () => {
717
719
  S(!1), setTimeout(() => j(!1), 300);
718
720
  };
719
721
  bt(() => {
720
- x ? nt() : Jt();
722
+ x ? nt() : Kt();
721
723
  }, [x]);
722
724
  const jt = (c) => {
723
725
  $t(r[c]);
724
726
  };
725
727
  bt(() => {
726
728
  dt.current && (dt.current.scrollTop += 150);
727
- }, [_t]);
729
+ }, [Ct]);
728
730
  let Y = null, $ = null;
729
731
  const At = async () => {
730
732
  if (Y && $ && Date.now() < $)
@@ -753,7 +755,7 @@ const xt = (t) => {
753
755
  } catch (c) {
754
756
  return console.error("Error obtaining JWT token:", c), Y = null, $ = null, null;
755
757
  }
756
- }, Kt = async () => {
758
+ }, Gt = async () => {
757
759
  const c = await Ot();
758
760
  c != null && i(c);
759
761
  };
@@ -762,7 +764,7 @@ const xt = (t) => {
762
764
  const { clientID: c, host: k, organizationID: w, shortCode: y, siteId: f } = t;
763
765
  sessionStorage.setItem("Host", k), sessionStorage.setItem("SiteId", f), sessionStorage.setItem("pubCfg", btoa(c)), sessionStorage.setItem("envRef", y), sessionStorage.setItem("orgRef", w);
764
766
  }
765
- Kt(), console.log("scapi environment v1");
767
+ Gt(), console.log("scapi environment v1");
766
768
  }, []);
767
769
  const h = async () => {
768
770
  const c = JSON.parse(
@@ -770,11 +772,11 @@ const xt = (t) => {
770
772
  ).customerId;
771
773
  return (await vr(c || "")).c_interests;
772
774
  }, J = async (c, k) => {
773
- console.log("in secondary flow", It);
775
+ console.log("in secondary flow", Ft);
774
776
  const w = await h();
775
- if (console.log(w, "interests of customer", It), !!w)
777
+ if (console.log(w, "interests of customer", Ft), !!w)
776
778
  try {
777
- T(
779
+ O(
778
780
  (L) => L.map(
779
781
  (H, V) => V === L.length - 1 ? { ...H, secondaryLoading: !0 } : H
780
782
  )
@@ -817,19 +819,19 @@ const xt = (t) => {
817
819
  const m = W.slice(5).trim();
818
820
  try {
819
821
  const B = JSON.parse(m);
820
- B.index === 0 && T(
821
- (F) => F.map(
822
- (O, X) => X === F.length - 1 ? {
823
- ...O,
822
+ B.index === 0 && O(
823
+ (I) => I.map(
824
+ (T, X) => X === I.length - 1 ? {
825
+ ...T,
824
826
  secondaryResponse: B.data,
825
827
  secondaryLoading: !1
826
- } : O
828
+ } : T
827
829
  )
828
830
  );
829
831
  } catch (B) {
830
- T(
831
- (F) => F.map(
832
- (O, X) => X === F.length - 1 ? { ...O, secondaryLoading: !1 } : O
832
+ O(
833
+ (I) => I.map(
834
+ (T, X) => X === I.length - 1 ? { ...T, secondaryLoading: !1 } : T
833
835
  )
834
836
  ), console.error("Secondary flow JSON parse error:", B);
835
837
  }
@@ -841,7 +843,7 @@ const xt = (t) => {
841
843
  }, K = async (c) => {
842
844
  const k = c || kt.trim();
843
845
  if (k) {
844
- vt(!0), St(""), o.current = null, n.current = null, l.current = null, s.current = null, T((w) => [
846
+ vt(!0), St(""), o.current = null, n.current = null, l.current = null, s.current = null, O((w) => [
845
847
  ...w,
846
848
  {
847
849
  query: k,
@@ -891,17 +893,17 @@ const xt = (t) => {
891
893
  if (m.startsWith("data:")) {
892
894
  const B = m.slice(5).trim();
893
895
  try {
894
- const F = JSON.parse(B);
895
- F.index == 1 && (L = F.data), T(
896
- (O) => O.map(
897
- (X, Dt) => Dt === O.length - 1 ? {
896
+ const I = JSON.parse(B);
897
+ I.index == 1 && (L = I.data), O(
898
+ (T) => T.map(
899
+ (X, Dt) => Dt === T.length - 1 ? {
898
900
  ...X,
899
- [F.index == 0 ? "response" : F.index == 1 ? "keywords" : F.index == 2 ? "potentialQuestions" : "end"]: F.data
901
+ [I.index == 0 ? "response" : I.index == 1 ? "keywords" : I.index == 2 ? "potentialQuestions" : "end"]: I.data
900
902
  } : X
901
903
  )
902
904
  );
903
- } catch (F) {
904
- console.error("Error parsing JSON:", F);
905
+ } catch (I) {
906
+ console.error("Error parsing JSON:", I);
905
907
  }
906
908
  }
907
909
  }
@@ -922,10 +924,8 @@ const xt = (t) => {
922
924
  console.log(c, "keywords");
923
925
  const k = c.split(",");
924
926
  for (const w of k) {
925
- const y = await ge(
926
- w
927
- );
928
- if (ot(!1), (y == null ? void 0 : y.length) > 0 && (T(
927
+ const y = await be(w);
928
+ if (ot(!1), (y == null ? void 0 : y.length) > 0 && (O(
929
929
  (f) => f.map(
930
930
  (g, z) => z === f.length - 1 ? {
931
931
  ...g,
@@ -944,10 +944,8 @@ const xt = (t) => {
944
944
  }
945
945
  } else
946
946
  for (const k of c) {
947
- const w = await ge(
948
- k
949
- );
950
- ot(!1), (w == null ? void 0 : w.length) > 0 && T(
947
+ const w = await be(k);
948
+ ot(!1), (w == null ? void 0 : w.length) > 0 && O(
951
949
  (y) => y.map(
952
950
  (f, g) => g === y.length - 1 ? {
953
951
  ...f,
@@ -960,7 +958,7 @@ const xt = (t) => {
960
958
  );
961
959
  }
962
960
  if (o.current) {
963
- T(
961
+ O(
964
962
  (w) => w.map(
965
963
  (y, f) => f === w.length - 1 ? {
966
964
  ...y,
@@ -978,7 +976,7 @@ const xt = (t) => {
978
976
  const k = JSON.parse(
979
977
  sessionStorage.getItem("customerData") || "{}"
980
978
  );
981
- (k == null ? void 0 : k.isGuest) == !1 ? (console.log("running secondary flow", It), J(o.current, 0)) : console.log("not running secondary flow", It);
979
+ (k == null ? void 0 : k.isGuest) == !1 ? (console.log("running secondary flow", Ft), J(o.current, 0)) : console.log("not running secondary flow", Ft);
982
980
  }
983
981
  ot(!1);
984
982
  }, rr = async (c, k) => {
@@ -999,11 +997,11 @@ const xt = (t) => {
999
997
  quantity: k
1000
998
  }
1001
999
  ];
1002
- console.log(B, "product data", "app version", It);
1003
- const F = JSON.parse(
1000
+ console.log(B, "product data", "app version", Ft);
1001
+ const I = JSON.parse(
1004
1002
  sessionStorage.getItem("customerData") || "{}"
1005
- ), O = F == null ? void 0 : F.basketId, X = !1, Dt = localStorage.getItem(Tt), me = Date.now();
1006
- if (!X || !Dt || me >= parseInt(Dt)) {
1003
+ ), T = (I == null ? void 0 : I.basketId) || localStorage.getItem(Rt), X = !1, Dt = localStorage.getItem(Tt), he = Date.now();
1004
+ if (!X || !Dt || he >= parseInt(Dt)) {
1007
1005
  const or = await qe();
1008
1006
  let { customer_token: at } = await Me(
1009
1007
  or
@@ -1012,26 +1010,26 @@ const xt = (t) => {
1012
1010
  console.error("Failed to get customer_token");
1013
1011
  return;
1014
1012
  }
1015
- const nr = me + 300 * 1e3;
1016
- if (Rt(at), localStorage.setItem(Tt, nr.toString()), O) {
1017
- const he = await Re({
1018
- basketId: O,
1013
+ const nr = he + 300 * 1e3;
1014
+ if (Yt(at), localStorage.setItem(Tt, nr.toString()), console.log(T, "basketIdFromCustomer"), T) {
1015
+ const we = await Re({
1016
+ basketId: T,
1019
1017
  customer_token: at
1020
1018
  });
1021
- if (he.status === 200 && he) {
1022
- const Gt = await Vt(
1023
- O,
1019
+ if (we.status === 200 && we) {
1020
+ const Wt = await Vt(
1021
+ T,
1024
1022
  B,
1025
1023
  at
1026
1024
  );
1027
- ((pt = Gt == null ? void 0 : Gt.product_items) == null ? void 0 : pt.length) > 0 && (U.success("Added to cart", {
1025
+ ((pt = Wt == null ? void 0 : Wt.product_items) == null ? void 0 : pt.length) > 0 && (U.success("Added to cart", {
1028
1026
  position: "bottom-right",
1029
1027
  autoClose: 3e3,
1030
1028
  hideProgressBar: !1,
1031
1029
  closeOnClick: !0,
1032
1030
  pauseOnHover: !0,
1033
1031
  draggable: !0
1034
- }), Ht(O), M(!1));
1032
+ }), Ht(T), M(!1));
1035
1033
  return;
1036
1034
  }
1037
1035
  }
@@ -1074,7 +1072,7 @@ const xt = (t) => {
1074
1072
  position: "bottom-right",
1075
1073
  autoClose: 3e3
1076
1074
  }), ((L = m == null ? void 0 : m.response) == null ? void 0 : L.status) === 404 || // Basket not found
1077
- ((H = m == null ? void 0 : m.response) == null ? void 0 : H.status) === 401 ? (((V = m == null ? void 0 : m.response) == null ? void 0 : V.status) === 404 && xt(null), ((W = m == null ? void 0 : m.response) == null ? void 0 : W.status) === 401 && (xt(null), Rt(null))) : (console.error("Failed to add product to basket:", m.message), U.error("Failed to add product to cart", {
1075
+ ((H = m == null ? void 0 : m.response) == null ? void 0 : H.status) === 401 ? (((V = m == null ? void 0 : m.response) == null ? void 0 : V.status) === 404 && xt(null), ((W = m == null ? void 0 : m.response) == null ? void 0 : W.status) === 401 && (xt(null), Yt(null))) : (console.error("Failed to add product to basket:", m.message), U.error("Failed to add product to cart", {
1078
1076
  position: "bottom-right",
1079
1077
  autoClose: 3e3
1080
1078
  }));
@@ -1145,7 +1143,7 @@ const xt = (t) => {
1145
1143
  ) })
1146
1144
  }
1147
1145
  ),
1148
- C && /* @__PURE__ */ u(ee, { children: [
1146
+ _ && /* @__PURE__ */ u(re, { children: [
1149
1147
  /* @__PURE__ */ a(
1150
1148
  "div",
1151
1149
  {
@@ -1161,9 +1159,9 @@ const xt = (t) => {
1161
1159
  top-0 right-0
1162
1160
  transition-transform duration-300 ease-in-out
1163
1161
  lg:transform
1164
- ${_ ? "lg:translate-x-0" : "lg:translate-x-full"}
1162
+ ${C ? "lg:translate-x-0" : "lg:translate-x-full"}
1165
1163
  // For mobile: animate from bottom
1166
- ${_ ? "translate-y-0" : "translate-y-full"}
1164
+ ${C ? "translate-y-0" : "translate-y-full"}
1167
1165
  lg:translate-y-0
1168
1166
  `,
1169
1167
  style: {
@@ -1293,7 +1291,7 @@ const xt = (t) => {
1293
1291
  /* @__PURE__ */ u(
1294
1292
  "div",
1295
1293
  {
1296
- className: `flex flex-col h-full ${Ct ? "lg:w-2/3 w-full" : "w-full"}`,
1294
+ className: `flex flex-col h-full ${_t ? "lg:w-2/3 w-full" : "w-full"}`,
1297
1295
  children: [
1298
1296
  /* @__PURE__ */ u(
1299
1297
  "div",
@@ -1323,7 +1321,7 @@ const xt = (t) => {
1323
1321
  ]
1324
1322
  }
1325
1323
  ),
1326
- _t.map((c, k) => {
1324
+ Ct.map((c, k) => {
1327
1325
  var w, y;
1328
1326
  return /* @__PURE__ */ u("div", { children: [
1329
1327
  /* @__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: c.query }) }),
@@ -1332,7 +1330,7 @@ const xt = (t) => {
1332
1330
  {
1333
1331
  className: "font-nunitoSans animate-pulse font-bold text-sm text-[#494949] bg-[#FFFFFF] px-7 py-1 rounded-r-xl rounded-bl-2xl w-full",
1334
1332
  dangerouslySetInnerHTML: {
1335
- __html: Wt(c.response)
1333
+ __html: Xt(c.response)
1336
1334
  }
1337
1335
  }
1338
1336
  ) }) : /* @__PURE__ */ a("div", { children: /* @__PURE__ */ a(
@@ -1340,13 +1338,13 @@ const xt = (t) => {
1340
1338
  {
1341
1339
  className: "font-nunitoSans font-bold text-sm text-[#494949] bg-[#FFFFFF] px-7 py-1 rounded-r-xl rounded-bl-2xl w-full",
1342
1340
  dangerouslySetInnerHTML: {
1343
- __html: Wt(c.response)
1341
+ __html: Xt(c.response)
1344
1342
  }
1345
1343
  }
1346
1344
  ) }),
1347
1345
  Pt && !c.response.includes("Thinking") && ((w = c.products) == null ? void 0 : w.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" }) }),
1348
1346
  (c == null ? void 0 : c.products) && ((y = c == null ? void 0 : c.products) == null ? void 0 : y.length) > 0 && /* @__PURE__ */ a(
1349
- Fr,
1347
+ Ir,
1350
1348
  {
1351
1349
  chat: c.products,
1352
1350
  storeDetails: p
@@ -1407,7 +1405,7 @@ const xt = (t) => {
1407
1405
  ]
1408
1406
  }
1409
1407
  ) }),
1410
- c.secondaryResponse && /* @__PURE__ */ a(ee, { children: /* @__PURE__ */ u("div", { className: "mt-3 mb-8 px-4 bg-indigo-300 rounded-tr-[5px]", children: [
1408
+ c.secondaryResponse && /* @__PURE__ */ a(re, { children: /* @__PURE__ */ u("div", { className: "mt-3 mb-8 px-4 bg-indigo-300 rounded-tr-[5px]", children: [
1411
1409
  /* @__PURE__ */ a(
1412
1410
  "div",
1413
1411
  {
@@ -1416,7 +1414,7 @@ const xt = (t) => {
1416
1414
  backgroundColor: p.tanyaThemeColorLight
1417
1415
  },
1418
1416
  dangerouslySetInnerHTML: {
1419
- __html: Wt(
1417
+ __html: Xt(
1420
1418
  c.secondaryResponse
1421
1419
  )
1422
1420
  }
@@ -1475,7 +1473,7 @@ const xt = (t) => {
1475
1473
  "button",
1476
1474
  {
1477
1475
  className: "px-3 py-1 text-sm",
1478
- onClick: () => T(
1476
+ onClick: () => O(
1479
1477
  (f) => f.map(
1480
1478
  (g, z) => z === k && g.productSnapshot ? {
1481
1479
  ...g,
@@ -1501,7 +1499,7 @@ const xt = (t) => {
1501
1499
  "button",
1502
1500
  {
1503
1501
  className: "px-3 py-1 text-sm",
1504
- onClick: () => T(
1502
+ onClick: () => O(
1505
1503
  (f) => f.map(
1506
1504
  (g, z) => z === k && g.productSnapshot ? {
1507
1505
  ...g,
@@ -1623,17 +1621,17 @@ const xt = (t) => {
1623
1621
  ] })
1624
1622
  ] }) });
1625
1623
  };
1626
- var oe = function(t, e) {
1627
- return oe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
1624
+ var ne = function(t, e) {
1625
+ return ne = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
1628
1626
  r.__proto__ = o;
1629
1627
  } || function(r, o) {
1630
1628
  for (var n in o) Object.prototype.hasOwnProperty.call(o, n) && (r[n] = o[n]);
1631
- }, oe(t, e);
1629
+ }, ne(t, e);
1632
1630
  };
1633
1631
  function Tr(t, e) {
1634
1632
  if (typeof e != "function" && e !== null)
1635
1633
  throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
1636
- oe(t, e);
1634
+ ne(t, e);
1637
1635
  function r() {
1638
1636
  this.constructor = t;
1639
1637
  }
@@ -1656,16 +1654,16 @@ function Or(t, e) {
1656
1654
  e.indexOf(o[n]) < 0 && Object.prototype.propertyIsEnumerable.call(t, o[n]) && (r[o[n]] = t[o[n]]);
1657
1655
  return r;
1658
1656
  }
1659
- var Xt = "Invariant Violation", Ce = Object.setPrototypeOf, Pr = Ce === void 0 ? function(t, e) {
1657
+ var Qt = "Invariant Violation", _e = Object.setPrototypeOf, Pr = _e === void 0 ? function(t, e) {
1660
1658
  return t.__proto__ = e, t;
1661
- } : Ce, Ye = (
1659
+ } : _e, Ye = (
1662
1660
  /** @class */
1663
1661
  (function(t) {
1664
1662
  Tr(e, t);
1665
1663
  function e(r) {
1666
- r === void 0 && (r = Xt);
1667
- var o = t.call(this, typeof r == "number" ? Xt + ": " + r + " (see https://github.com/apollographql/invariant-packages)" : r) || this;
1668
- return o.framesToPop = 1, o.name = Xt, Pr(o, e.prototype), o;
1664
+ r === void 0 && (r = Qt);
1665
+ var o = t.call(this, typeof r == "number" ? Qt + ": " + r + " (see https://github.com/apollographql/invariant-packages)" : r) || this;
1666
+ return o.framesToPop = 1, o.name = Qt, Pr(o, e.prototype), o;
1669
1667
  }
1670
1668
  return e;
1671
1669
  })(Error)
@@ -1693,7 +1691,7 @@ function wt(t) {
1693
1691
  } catch {
1694
1692
  }
1695
1693
  }
1696
- const ne = wt(function() {
1694
+ const ae = wt(function() {
1697
1695
  return globalThis;
1698
1696
  }) || wt(function() {
1699
1697
  return window;
@@ -1710,10 +1708,10 @@ const ne = wt(function() {
1710
1708
  wt(function() {
1711
1709
  return wt.constructor("return this")();
1712
1710
  });
1713
- var Fe = /* @__PURE__ */ new Map();
1711
+ var Ie = /* @__PURE__ */ new Map();
1714
1712
  function zr(t) {
1715
- var e = Fe.get(t) || 1;
1716
- return Fe.set(t, e + 1), "".concat(t, ":").concat(e, ":").concat(Math.random().toString(36).slice(2));
1713
+ var e = Ie.get(t) || 1;
1714
+ return Ie.set(t, e + 1), "".concat(t, ":").concat(e, ":").concat(Math.random().toString(36).slice(2));
1717
1715
  }
1718
1716
  function jr(t, e) {
1719
1717
  var r = zr("stringifyForDisplay");
@@ -1727,15 +1725,15 @@ function Bt(t) {
1727
1725
  r[o - 1] = arguments[o];
1728
1726
  if (typeof e == "number") {
1729
1727
  var n = e;
1730
- e = se(n), e || (e = le(n, r), r = []);
1728
+ e = le(n), e || (e = ce(n, r), r = []);
1731
1729
  }
1732
1730
  t.apply(void 0, [e].concat(r));
1733
1731
  };
1734
1732
  }
1735
- var Qt = Object.assign(function(e, r) {
1733
+ var Zt = Object.assign(function(e, r) {
1736
1734
  for (var o = [], n = 2; n < arguments.length; n++)
1737
1735
  o[n - 2] = arguments[n];
1738
- e || it(e, se(r, o) || le(r, o));
1736
+ e || it(e, le(r, o) || ce(r, o));
1739
1737
  }, {
1740
1738
  debug: Bt(it.debug),
1741
1739
  log: Bt(it.log),
@@ -1745,9 +1743,9 @@ var Qt = Object.assign(function(e, r) {
1745
1743
  function Ge(t) {
1746
1744
  for (var e = [], r = 1; r < arguments.length; r++)
1747
1745
  e[r - 1] = arguments[r];
1748
- return new Ye(se(t, e) || le(t, e));
1746
+ return new Ye(le(t, e) || ce(t, e));
1749
1747
  }
1750
- var Ie = Symbol.for("ApolloErrorMessageHandler_" + Ke);
1748
+ var Fe = Symbol.for("ApolloErrorMessageHandler_" + Ke);
1751
1749
  function We(t) {
1752
1750
  if (typeof t == "string")
1753
1751
  return t;
@@ -1757,11 +1755,11 @@ function We(t) {
1757
1755
  return "<non-serializable>";
1758
1756
  }
1759
1757
  }
1760
- function se(t, e) {
1758
+ function le(t, e) {
1761
1759
  if (e === void 0 && (e = []), !!t)
1762
- return ne[Ie] && ne[Ie](t, e.map(We));
1760
+ return ae[Fe] && ae[Fe](t, e.map(We));
1763
1761
  }
1764
- function le(t, e) {
1762
+ function ce(t, e) {
1765
1763
  if (e === void 0 && (e = []), !!t)
1766
1764
  return "An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({
1767
1765
  version: Ke,
@@ -1776,7 +1774,7 @@ function Ar(t) {
1776
1774
  return e.name.value;
1777
1775
  })[0] || null;
1778
1776
  }
1779
- let I = null;
1777
+ let F = null;
1780
1778
  const Ne = {};
1781
1779
  let Dr = 1;
1782
1780
  const Lr = () => class {
@@ -1789,52 +1787,52 @@ const Lr = () => class {
1789
1787
  ].join(":");
1790
1788
  }
1791
1789
  hasValue() {
1792
- for (let e = I; e; e = e.parent)
1790
+ for (let e = F; e; e = e.parent)
1793
1791
  if (this.id in e.slots) {
1794
1792
  const r = e.slots[this.id];
1795
1793
  if (r === Ne)
1796
1794
  break;
1797
- return e !== I && (I.slots[this.id] = r), !0;
1795
+ return e !== F && (F.slots[this.id] = r), !0;
1798
1796
  }
1799
- return I && (I.slots[this.id] = Ne), !1;
1797
+ return F && (F.slots[this.id] = Ne), !1;
1800
1798
  }
1801
1799
  getValue() {
1802
1800
  if (this.hasValue())
1803
- return I.slots[this.id];
1801
+ return F.slots[this.id];
1804
1802
  }
1805
1803
  withValue(e, r, o, n) {
1806
1804
  const l = {
1807
1805
  __proto__: null,
1808
1806
  [this.id]: e
1809
- }, s = I;
1810
- I = { parent: s, slots: l };
1807
+ }, s = F;
1808
+ F = { parent: s, slots: l };
1811
1809
  try {
1812
1810
  return r.apply(n, o);
1813
1811
  } finally {
1814
- I = s;
1812
+ F = s;
1815
1813
  }
1816
1814
  }
1817
1815
  // Capture the current context and wrap a callback function so that it
1818
1816
  // reestablishes the captured context when called.
1819
1817
  static bind(e) {
1820
- const r = I;
1818
+ const r = F;
1821
1819
  return function() {
1822
- const o = I;
1820
+ const o = F;
1823
1821
  try {
1824
- return I = r, e.apply(this, arguments);
1822
+ return F = r, e.apply(this, arguments);
1825
1823
  } finally {
1826
- I = o;
1824
+ F = o;
1827
1825
  }
1828
1826
  };
1829
1827
  }
1830
1828
  // Immediately run a callback function without any captured context.
1831
1829
  static noContext(e, r, o) {
1832
- if (I) {
1833
- const n = I;
1830
+ if (F) {
1831
+ const n = F;
1834
1832
  try {
1835
- return I = null, e.apply(o, r);
1833
+ return F = null, e.apply(o, r);
1836
1834
  } finally {
1837
- I = n;
1835
+ F = n;
1838
1836
  }
1839
1837
  } else
1840
1838
  return e.apply(o, r);
@@ -1846,7 +1844,7 @@ function Ee(t) {
1846
1844
  } catch {
1847
1845
  }
1848
1846
  }
1849
- const Zt = "@wry/context:Slot", Br = (
1847
+ const te = "@wry/context:Slot", Br = (
1850
1848
  // Prefer globalThis when available.
1851
1849
  // https://github.com/benjamn/wryware/issues/347
1852
1850
  Ee(() => globalThis) || // Fall back to global, which works in Node.js and may be converted by some
@@ -1856,11 +1854,11 @@ const Zt = "@wry/context:Slot", Br = (
1856
1854
  // back to using the Array constructor as a namespace, but that was flagged in
1857
1855
  // https://github.com/benjamn/wryware/issues/347, and can be avoided.
1858
1856
  /* @__PURE__ */ Object.create(null)
1859
- ), Te = Br, ce = Te[Zt] || // Earlier versions of this package stored the globalKey property on the Array
1857
+ ), Te = Br, de = Te[te] || // Earlier versions of this package stored the globalKey property on the Array
1860
1858
  // constructor, so we check there as well, to prevent Slot class duplication.
1861
- Array[Zt] || (function(t) {
1859
+ Array[te] || (function(t) {
1862
1860
  try {
1863
- Object.defineProperty(Te, Zt, {
1861
+ Object.defineProperty(Te, te, {
1864
1862
  value: t,
1865
1863
  enumerable: !1,
1866
1864
  writable: !1,
@@ -1875,8 +1873,8 @@ Array[Zt] || (function(t) {
1875
1873
  } finally {
1876
1874
  return t;
1877
1875
  }
1878
- })(Lr()), { bind: So, noContext: _o } = ce;
1879
- new ce();
1876
+ })(Lr()), { bind: So, noContext: Co } = de;
1877
+ new de();
1880
1878
  function Ur(t, e) {
1881
1879
  var r = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
1882
1880
  if (r) return (r = r.call(t)).next.bind(r);
@@ -1910,19 +1908,19 @@ function Pe(t, e) {
1910
1908
  o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o);
1911
1909
  }
1912
1910
  }
1913
- function de(t, e, r) {
1911
+ function ue(t, e, r) {
1914
1912
  return e && Pe(t.prototype, e), r && Pe(t, r), Object.defineProperty(t, "prototype", { writable: !1 }), t;
1915
1913
  }
1916
- var ue = function() {
1914
+ var pe = function() {
1917
1915
  return typeof Symbol == "function";
1918
- }, pe = function(t) {
1919
- return ue() && !!Symbol[t];
1920
1916
  }, fe = function(t) {
1921
- return pe(t) ? Symbol[t] : "@@" + t;
1917
+ return pe() && !!Symbol[t];
1918
+ }, me = function(t) {
1919
+ return fe(t) ? Symbol[t] : "@@" + t;
1922
1920
  };
1923
- ue() && !pe("observable") && (Symbol.observable = Symbol("observable"));
1924
- var Mr = fe("iterator"), ae = fe("observable"), Xe = fe("species");
1925
- function Yt(t, e) {
1921
+ pe() && !fe("observable") && (Symbol.observable = Symbol("observable"));
1922
+ var Mr = me("iterator"), ie = me("observable"), Xe = me("species");
1923
+ function Jt(t, e) {
1926
1924
  var r = t[e];
1927
1925
  if (r != null) {
1928
1926
  if (typeof r != "function") throw new TypeError(r + " is not a function");
@@ -1957,14 +1955,14 @@ function Qe(t) {
1957
1955
  if (typeof e == "function")
1958
1956
  e();
1959
1957
  else {
1960
- var r = Yt(e, "unsubscribe");
1958
+ var r = Jt(e, "unsubscribe");
1961
1959
  r && r.call(e);
1962
1960
  }
1963
1961
  } catch (o) {
1964
1962
  yt(o);
1965
1963
  }
1966
1964
  }
1967
- function ie(t) {
1965
+ function se(t) {
1968
1966
  t._observer = void 0, t._queue = void 0, t._state = "closed";
1969
1967
  }
1970
1968
  function Vr(t) {
@@ -1979,17 +1977,17 @@ function Ze(t, e, r) {
1979
1977
  t._state = "running";
1980
1978
  var o = t._observer;
1981
1979
  try {
1982
- var n = Yt(o, e);
1980
+ var n = Jt(o, e);
1983
1981
  switch (e) {
1984
1982
  case "next":
1985
1983
  n && n.call(o, r);
1986
1984
  break;
1987
1985
  case "error":
1988
- if (ie(t), n) n.call(o, r);
1986
+ if (se(t), n) n.call(o, r);
1989
1987
  else throw r;
1990
1988
  break;
1991
1989
  case "complete":
1992
- ie(t), n && n.call(o);
1990
+ se(t), n && n.call(o);
1993
1991
  break;
1994
1992
  }
1995
1993
  } catch (l) {
@@ -1997,7 +1995,7 @@ function Ze(t, e, r) {
1997
1995
  }
1998
1996
  t._state === "closed" ? Qe(t) : t._state === "running" && (t._state = "ready");
1999
1997
  }
2000
- function te(t, e, r) {
1998
+ function ee(t, e, r) {
2001
1999
  if (t._state !== "closed") {
2002
2000
  if (t._state === "buffering") {
2003
2001
  t._queue.push({
@@ -2031,8 +2029,8 @@ var Rr = /* @__PURE__ */ (function() {
2031
2029
  }
2032
2030
  var e = t.prototype;
2033
2031
  return e.unsubscribe = function() {
2034
- this._state !== "closed" && (ie(this), Qe(this));
2035
- }, de(t, [{
2032
+ this._state !== "closed" && (se(this), Qe(this));
2033
+ }, ue(t, [{
2036
2034
  key: "closed",
2037
2035
  get: function() {
2038
2036
  return this._state === "closed";
@@ -2044,12 +2042,12 @@ var Rr = /* @__PURE__ */ (function() {
2044
2042
  }
2045
2043
  var e = t.prototype;
2046
2044
  return e.next = function(o) {
2047
- te(this._subscription, "next", o);
2045
+ ee(this._subscription, "next", o);
2048
2046
  }, e.error = function(o) {
2049
- te(this._subscription, "error", o);
2047
+ ee(this._subscription, "error", o);
2050
2048
  }, e.complete = function() {
2051
- te(this._subscription, "complete");
2052
- }, de(t, [{
2049
+ ee(this._subscription, "complete");
2050
+ }, ue(t, [{
2053
2051
  key: "closed",
2054
2052
  get: function() {
2055
2053
  return this._subscription._state === "closed";
@@ -2140,19 +2138,19 @@ var Rr = /* @__PURE__ */ (function() {
2140
2138
  var l = Nt(this), s = arguments.length > 1, d = !1, i = arguments[1], x = i;
2141
2139
  return new l(function(b) {
2142
2140
  return n.subscribe({
2143
- next: function(_) {
2141
+ next: function(C) {
2144
2142
  var S = !d;
2145
2143
  if (d = !0, !S || s)
2146
2144
  try {
2147
- x = o(x, _);
2148
- } catch (C) {
2149
- return b.error(C);
2145
+ x = o(x, C);
2146
+ } catch (_) {
2147
+ return b.error(_);
2150
2148
  }
2151
2149
  else
2152
- x = _;
2150
+ x = C;
2153
2151
  },
2154
- error: function(_) {
2155
- b.error(_);
2152
+ error: function(C) {
2153
+ b.error(C);
2156
2154
  },
2157
2155
  complete: function() {
2158
2156
  if (!d && !s) return b.error(new TypeError("Cannot reduce an empty sequence"));
@@ -2166,20 +2164,20 @@ var Rr = /* @__PURE__ */ (function() {
2166
2164
  var d = Nt(this);
2167
2165
  return new d(function(i) {
2168
2166
  var x, b = 0;
2169
- function _(S) {
2167
+ function C(S) {
2170
2168
  x = S.subscribe({
2171
- next: function(C) {
2172
- i.next(C);
2169
+ next: function(_) {
2170
+ i.next(_);
2173
2171
  },
2174
- error: function(C) {
2175
- i.error(C);
2172
+ error: function(_) {
2173
+ i.error(_);
2176
2174
  },
2177
2175
  complete: function() {
2178
- b === l.length ? (x = void 0, i.complete()) : _(d.from(l[b++]));
2176
+ b === l.length ? (x = void 0, i.complete()) : C(d.from(l[b++]));
2179
2177
  }
2180
2178
  });
2181
2179
  }
2182
- return _(o), function() {
2180
+ return C(o), function() {
2183
2181
  x && (x.unsubscribe(), x = void 0);
2184
2182
  };
2185
2183
  });
@@ -2196,7 +2194,7 @@ var Rr = /* @__PURE__ */ (function() {
2196
2194
  } catch (S) {
2197
2195
  return s.error(S);
2198
2196
  }
2199
- var _ = l.from(b).subscribe({
2197
+ var C = l.from(b).subscribe({
2200
2198
  next: function(S) {
2201
2199
  s.next(S);
2202
2200
  },
@@ -2204,11 +2202,11 @@ var Rr = /* @__PURE__ */ (function() {
2204
2202
  s.error(S);
2205
2203
  },
2206
2204
  complete: function() {
2207
- var S = d.indexOf(_);
2205
+ var S = d.indexOf(C);
2208
2206
  S >= 0 && d.splice(S, 1), x();
2209
2207
  }
2210
2208
  });
2211
- d.push(_);
2209
+ d.push(C);
2212
2210
  },
2213
2211
  error: function(b) {
2214
2212
  s.error(b);
@@ -2226,12 +2224,12 @@ var Rr = /* @__PURE__ */ (function() {
2226
2224
  }), i.unsubscribe();
2227
2225
  };
2228
2226
  });
2229
- }, e[ae] = function() {
2227
+ }, e[ie] = function() {
2230
2228
  return this;
2231
2229
  }, t.from = function(o) {
2232
2230
  var n = typeof this == "function" ? this : t;
2233
2231
  if (o == null) throw new TypeError(o + " is not an object");
2234
- var l = Yt(o, ae);
2232
+ var l = Jt(o, ie);
2235
2233
  if (l) {
2236
2234
  var s = l.call(o);
2237
2235
  if (Object(s) !== s) throw new TypeError(s + " is not an object");
@@ -2239,7 +2237,7 @@ var Rr = /* @__PURE__ */ (function() {
2239
2237
  return s.subscribe(d);
2240
2238
  });
2241
2239
  }
2242
- if (pe("iterator") && (l = Yt(o, Mr), l))
2240
+ if (fe("iterator") && (l = Jt(o, Mr), l))
2243
2241
  return new n(function(d) {
2244
2242
  qt(function() {
2245
2243
  if (!d.closed) {
@@ -2275,16 +2273,16 @@ var Rr = /* @__PURE__ */ (function() {
2275
2273
  }
2276
2274
  });
2277
2275
  });
2278
- }, de(t, null, [{
2276
+ }, ue(t, null, [{
2279
2277
  key: Xe,
2280
2278
  get: function() {
2281
2279
  return this;
2282
2280
  }
2283
2281
  }]), t;
2284
2282
  })();
2285
- ue() && Object.defineProperty(N, Symbol("extensions"), {
2283
+ pe() && Object.defineProperty(N, Symbol("extensions"), {
2286
2284
  value: {
2287
- symbol: ae,
2285
+ symbol: ie,
2288
2286
  hostReportError: yt
2289
2287
  },
2290
2288
  configurable: !0
@@ -2349,7 +2347,7 @@ function Wr(t) {
2349
2347
  };
2350
2348
  return e.operationName || (e.operationName = typeof e.query != "string" ? Ar(e.query) || void 0 : ""), e;
2351
2349
  }
2352
- var Xr = Symbol.for("apollo.deprecations"), Qr = ne, Zr = new ce();
2350
+ var Xr = Symbol.for("apollo.deprecations"), Qr = ae, Zr = new de();
2353
2351
  function to(t) {
2354
2352
  return Qr[Xr] || (Zr.getValue() || []).includes(t);
2355
2353
  }
@@ -2391,7 +2389,7 @@ var tr = (
2391
2389
  }, t.concat = function(e, r) {
2392
2390
  var o = Et(e);
2393
2391
  if (Ut(o))
2394
- return globalThis.__DEV__ !== !1 && Qt.warn(47, o), o;
2392
+ return globalThis.__DEV__ !== !1 && Zt.warn(47, o), o;
2395
2393
  var n = Et(r), l;
2396
2394
  return Ut(n) ? l = new t(function(s) {
2397
2395
  return o.request(s, function(d) {
@@ -2410,12 +2408,12 @@ var tr = (
2410
2408
  throw Ge(48);
2411
2409
  }, t.prototype.onError = function(e, r) {
2412
2410
  if (globalThis.__DEV__ !== !1 && eo("onError", function() {
2413
- globalThis.__DEV__ !== !1 && Qt.warn(49);
2411
+ globalThis.__DEV__ !== !1 && Zt.warn(49);
2414
2412
  }), r && r.error)
2415
2413
  return r.error(e), !1;
2416
2414
  throw e;
2417
2415
  }, t.prototype.setOnError = function(e) {
2418
- return globalThis.__DEV__ !== !1 && globalThis.__DEV__ !== !1 && Qt.warn(50), this.onError = e, this;
2416
+ return globalThis.__DEV__ !== !1 && globalThis.__DEV__ !== !1 && Zt.warn(50), this.onError = e, this;
2419
2417
  }, t;
2420
2418
  })()
2421
2419
  );
@@ -2474,12 +2472,12 @@ const oo = async () => {
2474
2472
  fetchPolicy: "cache-and-network"
2475
2473
  }
2476
2474
  }
2477
- }), Co = (t) => {
2475
+ }), _o = (t) => {
2478
2476
  const { tanyaConfig: e } = t;
2479
2477
  return /* @__PURE__ */ a(cr, { client: so, children: /* @__PURE__ */ a(br, { children: /* @__PURE__ */ a(Er, { tanyaConfig: e }) }) });
2480
2478
  };
2481
2479
  export {
2482
- Co as TanyaChatbot,
2480
+ _o as TanyaChatbot,
2483
2481
  yo as TanyaChatbotProvider
2484
2482
  };
2485
2483
  //# sourceMappingURL=tanya-chatbot.es.js.map