tanya-chatbot 0.2.0 → 0.2.1

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,14 +1,14 @@
1
- import { useEffect as lt, forwardRef as hr, useState as L, createElement as fe, useRef as Pt } from "react";
1
+ import { useEffect as lt, forwardRef as mr, useState as L, createElement as fe, useRef as Pt } from "react";
2
2
  import { jsx as l, jsxs as p, Fragment as pe } from "react/jsx-runtime";
3
3
  import { createHttpLink as Xr, ApolloClient as Zr, InMemoryCache as tn, ApolloProvider as en } from "@apollo/client";
4
- import { Provider as rn, useDispatch as mr, useSelector as Gt } from "react-redux";
5
- import { createSlice as gr, configureStore as nn } from "@reduxjs/toolkit";
6
- import * as wr from "@radix-ui/react-popover";
4
+ import { Provider as rn, useDispatch as gr, useSelector as Wt } from "react-redux";
5
+ import { createSlice as wr, configureStore as nn } from "@reduxjs/toolkit";
6
+ import * as yr from "@radix-ui/react-popover";
7
7
  import "clsx";
8
8
  import "tailwind-merge";
9
- import D from "axios";
9
+ import z from "axios";
10
10
  import "crypto-js";
11
- import { Icon as Le } from "@iconify/react";
11
+ import { Icon as De } from "@iconify/react";
12
12
  import { toast as W } from "react-toastify";
13
13
  const on = '*,: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 hi() {
@@ -55,7 +55,7 @@ const an = {
55
55
  mobile: []
56
56
  }
57
57
  }
58
- }, yr = gr({
58
+ }, br = wr({
59
59
  name: "store",
60
60
  initialState: an,
61
61
  reducers: {
@@ -63,9 +63,9 @@ const an = {
63
63
  t.store = e.payload;
64
64
  }
65
65
  }
66
- }), { setStore: mi } = yr.actions, sn = yr.reducer, cn = {
66
+ }), { setStore: mi } = br.actions, sn = br.reducer, cn = {
67
67
  product: null
68
- }, br = gr({
68
+ }, xr = wr({
69
69
  name: "product",
70
70
  initialState: cn,
71
71
  reducers: {
@@ -73,7 +73,7 @@ const an = {
73
73
  t.product = e.payload;
74
74
  }
75
75
  }
76
- }), { setProduct: he } = br.actions, ln = br.reducer, un = nn({
76
+ }), { setProduct: he } = xr.actions, ln = xr.reducer, un = nn({
77
77
  reducer: {
78
78
  store: sn,
79
79
  product: ln
@@ -91,27 +91,27 @@ const an = {
91
91
  function fn({
92
92
  ...t
93
93
  }) {
94
- return /* @__PURE__ */ l(wr.Root, { "data-slot": "popover", ...t });
94
+ return /* @__PURE__ */ l(yr.Root, { "data-slot": "popover", ...t });
95
95
  }
96
96
  function pn({
97
97
  ...t
98
98
  }) {
99
- return /* @__PURE__ */ l(wr.Trigger, { "data-slot": "popover-trigger", ...t });
99
+ return /* @__PURE__ */ l(yr.Trigger, { "data-slot": "popover-trigger", ...t });
100
100
  }
101
- const wt = () => ({ aiConversationUrl: "https://mdv3qwfi2j.execute-api.us-east-1.amazonaws.com/dev/api/bedrock/invoke/stream", xAPIKey: "BJBtjpPkqGatuoa3qJqdR8aHXSsHkgvGaootbubi", serverUrl: "http://localhost:4001/", basePath: "sc-api" }), xr = async () => {
101
+ const wt = () => ({ aiConversationUrl: "https://mdv3qwfi2j.execute-api.us-east-1.amazonaws.com/dev/api/bedrock/invoke/stream", xAPIKey: "BJBtjpPkqGatuoa3qJqdR8aHXSsHkgvGaootbubi", serverUrl: "http://localhost:4001/", basePath: "sc-api" }), Se = async () => {
102
102
  const t = "http://localhost:4001/";
103
103
  try {
104
- const e = await D.post(
104
+ const e = await z.post(
105
105
  `${t}api/auth/token-bm-grant?baseUrl=${ut()}&siteId=${et()}`
106
106
  );
107
107
  return e.status === 200 && e.data.access_token ? e.data.access_token : (console.error("Failed to fetch token:", e.data), null);
108
108
  } catch (e) {
109
- return D.isAxiosError(e) ? console.error("Error fetching token:", e.response || e.message) : console.error("Unexpected error:", e), null;
109
+ return z.isAxiosError(e) ? console.error("Error fetching token:", e.response || e.message) : console.error("Unexpected error:", e), null;
110
110
  }
111
111
  }, vr = async (t) => {
112
112
  const e = "http://localhost:4001/";
113
113
  try {
114
- const r = JSON.parse(sessionStorage.getItem("customerData") || "{}").dwsid, n = await D.post(
114
+ const r = JSON.parse(sessionStorage.getItem("customerData") || "{}").dwsid, n = await z.post(
115
115
  `${e}api/auth/token-existing-guest-customer?dwsid=${r}&baseUrl=${ut()}&siteId=${et()}&pubCfg=${dt()}&envRef=${ft()}&orgRef=${pt()}`,
116
116
  {},
117
117
  {
@@ -123,10 +123,10 @@ const wt = () => ({ aiConversationUrl: "https://mdv3qwfi2j.execute-api.us-east-1
123
123
  );
124
124
  return n.status === 200 && n.data ? n.data : null;
125
125
  } catch (r) {
126
- return D.isAxiosError(r) ? console.error("Error creating basket:", r.response || r.message) : console.error("Unexpected error:", r), null;
126
+ return z.isAxiosError(r) ? console.error("Error creating basket:", r.response || r.message) : console.error("Unexpected error:", r), null;
127
127
  }
128
128
  };
129
- async function te() {
129
+ async function Ut() {
130
130
  const t = localStorage.getItem("expires_in"), e = localStorage.getItem("access_token"), r = JSON.parse(
131
131
  sessionStorage.getItem("customerData") || "{}"
132
132
  ).isGuest;
@@ -138,7 +138,7 @@ async function te() {
138
138
  sessionStorage.getItem("customerData") || "{}"
139
139
  ).usrRef;
140
140
  try {
141
- const a = r ? "unregister-auth" : "register-auth", c = await D.get(
141
+ const a = r ? "unregister-auth" : "register-auth", c = await z.get(
142
142
  `${n}sc-api/${a}?dwsid=${o}&email=${i}&pubCfg=${dt()}&envRef=${ft()}&orgRef=${pt()}&siteId=${et()}&token=true`,
143
143
  {
144
144
  withCredentials: !0
@@ -152,16 +152,22 @@ async function te() {
152
152
  console.log(a);
153
153
  }
154
154
  }
155
- const ut = () => sessionStorage.getItem("Host"), et = () => sessionStorage.getItem("SiteId"), dt = () => sessionStorage.getItem("pubCfg"), ft = () => sessionStorage.getItem("envRef"), pt = () => sessionStorage.getItem("orgRef"), ze = async (t, e) => {
156
- const { serverUrl: r, basePath: n } = wt();
155
+ const ut = () => sessionStorage.getItem("Host"), et = () => sessionStorage.getItem("SiteId"), dt = () => sessionStorage.getItem("pubCfg"), ft = () => sessionStorage.getItem("envRef"), pt = () => sessionStorage.getItem("orgRef"), ze = async (t) => {
156
+ const { serverUrl: e, basePath: r } = wt();
157
+ let n = "";
158
+ {
159
+ n = await Se();
160
+ const { access_token: o } = await Ut();
161
+ console.log("the token from getSearchResults", o), n = o;
162
+ }
157
163
  try {
158
164
  const o = ut();
159
- return (await D.get(
160
- `${r}${n}/search-sfcc?baseUrl=${o}&query=${t}&siteId=${et()}&pubCfg=${dt()}&envRef=${ft()}&orgRef=${pt()}`,
165
+ return (await z.get(
166
+ `${e}${r}/search-sfcc?baseUrl=${o}&query=${t}&siteId=${et()}&pubCfg=${dt()}&envRef=${ft()}&orgRef=${pt()}`,
161
167
  {
162
168
  headers: {
163
169
  "Content-Type": "application/json",
164
- Authorization: `Bearer ${e}`
170
+ Authorization: `Bearer ${n}`
165
171
  }
166
172
  }
167
173
  )).data.hits;
@@ -172,8 +178,8 @@ const ut = () => sessionStorage.getItem("Host"), et = () => sessionStorage.getIt
172
178
  if (!t) throw new Error("Product ID is required");
173
179
  const { serverUrl: e, basePath: r } = wt(), n = ut();
174
180
  console.log("calling access");
175
- const { access_token: o } = await te();
176
- return console.log(o), (await D.get(
181
+ const { access_token: o } = await Ut();
182
+ return console.log(o), (await z.get(
177
183
  `${e}${r}/product-sfcc/${t}?baseUrl=${n}&siteId=${et()}&pubCfg=${dt()}&envRef=${ft()}&orgRef=${pt()}`,
178
184
  {
179
185
  headers: {
@@ -184,10 +190,10 @@ const ut = () => sessionStorage.getItem("Host"), et = () => sessionStorage.getIt
184
190
  )).data;
185
191
  }, hn = async (t) => {
186
192
  if (!t) throw new Error("customerId is required");
187
- const e = await xr(), { customer_token: r } = await vr(
193
+ const e = await Se(), { customer_token: r } = await vr(
188
194
  e
189
- ), { serverUrl: n, basePath: o } = wt(), a = (await te()).access_token;
190
- return (await D.get(
195
+ ), { serverUrl: n, basePath: o } = wt(), a = (await Ut()).access_token;
196
+ return (await z.get(
191
197
  `${n}${o}/get-interest?baseUrl=${ut()}&customerId=${t}&siteId=${et()}&pubCfg=${dt()}&envRef=${ft()}&orgRef=${pt()}`,
192
198
  {
193
199
  headers: {
@@ -196,10 +202,10 @@ const ut = () => sessionStorage.getItem("Host"), et = () => sessionStorage.getIt
196
202
  }
197
203
  }
198
204
  )).data;
199
- }, De = (t) => String(typeof t == "string" ? t : t["en-US"] || t), Me = (t) => t != null && t.image ? [t.image] : "variants" in t ? t.variants[0].images : t.masterVariant.images.map((e) => e.url), mn = (t, e) => t.toLocaleString("en-US", {
205
+ }, Me = (t) => String(typeof t == "string" ? t : t["en-US"] || t), Ue = (t) => t != null && t.image ? [t.image] : "variants" in t ? t.variants[0].images : t.masterVariant.images.map((e) => e.url), mn = (t, e) => t.toLocaleString("en-US", {
200
206
  style: "currency",
201
207
  currency: e || "USD"
202
- }), Ue = (t) => {
208
+ }), Be = (t) => {
203
209
  var e, r, n;
204
210
  return "variants" in t ? {
205
211
  centAmount: (e = t.variants[0]) == null ? void 0 : e.prices.EUR.max,
@@ -208,7 +214,7 @@ const ut = () => sessionStorage.getItem("Host"), et = () => sessionStorage.getIt
208
214
  centAmount: (r = t.masterVariant) == null ? void 0 : r.prices[0].value.centAmount,
209
215
  currencyCode: (n = t.masterVariant) == null ? void 0 : n.prices[0].value.currencyCode
210
216
  };
211
- }, gn = (t) => t.charAt(0).toUpperCase() + t.slice(1), Be = (t, e) => t.length < e ? t : t.slice(0, e) + "...", ie = (t) => t.split("\\n").map((e, r) => {
217
+ }, gn = (t) => t.charAt(0).toUpperCase() + t.slice(1), qe = (t, e) => t.length < e ? t : t.slice(0, e) + "...", ie = (t) => t.split("\\n").map((e, r) => {
212
218
  const n = e.match(/^(\d+)\.\s(.+)/);
213
219
  return n ? `<p key=${r} class="mb-2"><strong>${n[1]}.</strong> ${n[2]}</p>` : e.trim() ? `<p key=${r} class="mb-2">${e}</p>` : "<br/>";
214
220
  }).join("");
@@ -230,15 +236,15 @@ const Sr = Object.freeze({
230
236
  top: 0,
231
237
  width: 16,
232
238
  height: 16
233
- }), Wt = Object.freeze({
239
+ }), Qt = Object.freeze({
234
240
  rotate: 0,
235
241
  vFlip: !1,
236
242
  hFlip: !1
237
- }), Se = Object.freeze({
243
+ }), Ie = Object.freeze({
238
244
  ...Sr,
239
- ...Wt
245
+ ...Qt
240
246
  }), me = Object.freeze({
241
- ...Se,
247
+ ...Ie,
242
248
  body: "",
243
249
  hidden: !1
244
250
  });
@@ -248,18 +254,18 @@ function yn(t, e) {
248
254
  const n = ((t.rotate || 0) + (e.rotate || 0)) % 4;
249
255
  return n && (r.rotate = n), r;
250
256
  }
251
- function qe(t, e) {
257
+ function Re(t, e) {
252
258
  const r = yn(t, e);
253
- for (const n in me) n in Wt ? n in t && !(n in r) && (r[n] = Wt[n]) : n in e ? r[n] = e[n] : n in t && (r[n] = t[n]);
259
+ for (const n in me) n in Qt ? n in t && !(n in r) && (r[n] = Qt[n]) : n in e ? r[n] = e[n] : n in t && (r[n] = t[n]);
254
260
  return r;
255
261
  }
256
262
  function bn(t, e, r) {
257
263
  const n = t.icons, o = t.aliases || /* @__PURE__ */ Object.create(null);
258
264
  let i = {};
259
265
  function a(c) {
260
- i = qe(n[c] || o[c], i);
266
+ i = Re(n[c] || o[c], i);
261
267
  }
262
- return a(e), r.forEach(a), qe(t, i);
268
+ return a(e), r.forEach(a), Re(t, i);
263
269
  }
264
270
  function Ir(t, e) {
265
271
  const r = [];
@@ -300,7 +306,7 @@ function Cr(t) {
300
306
  }
301
307
  return e;
302
308
  }
303
- const Re = /* @__PURE__ */ Object.create(null);
309
+ const He = /* @__PURE__ */ Object.create(null);
304
310
  function vn(t, e) {
305
311
  return {
306
312
  provider: t,
@@ -310,7 +316,7 @@ function vn(t, e) {
310
316
  };
311
317
  }
312
318
  function Nt(t, e) {
313
- const r = Re[t] || (Re[t] = /* @__PURE__ */ Object.create(null));
319
+ const r = He[t] || (He[t] = /* @__PURE__ */ Object.create(null));
314
320
  return r[e] || (r[e] = vn(t, e));
315
321
  }
316
322
  function _r(t, e) {
@@ -339,7 +345,7 @@ const Fr = /^[a-z0-9]+(-[a-z0-9]+)*$/, ee = (t, e, r, n = "") => {
339
345
  prefix: s,
340
346
  name: c
341
347
  };
342
- return e && !Yt(d) ? null : d;
348
+ return e && !Jt(d) ? null : d;
343
349
  }
344
350
  const i = o[0], a = i.split("-");
345
351
  if (a.length > 1) {
@@ -348,7 +354,7 @@ const Fr = /^[a-z0-9]+(-[a-z0-9]+)*$/, ee = (t, e, r, n = "") => {
348
354
  prefix: a.shift(),
349
355
  name: a.join("-")
350
356
  };
351
- return e && !Yt(c) ? null : c;
357
+ return e && !Jt(c) ? null : c;
352
358
  }
353
359
  if (r && n === "") {
354
360
  const c = {
@@ -356,37 +362,37 @@ const Fr = /^[a-z0-9]+(-[a-z0-9]+)*$/, ee = (t, e, r, n = "") => {
356
362
  prefix: "",
357
363
  name: i
358
364
  };
359
- return e && !Yt(c, r) ? null : c;
365
+ return e && !Jt(c, r) ? null : c;
360
366
  }
361
367
  return null;
362
- }, Yt = (t, e) => t ? !!((e && t.prefix === "" || t.prefix) && t.name) : !1;
363
- let Dt = !1;
368
+ }, Jt = (t, e) => t ? !!((e && t.prefix === "" || t.prefix) && t.name) : !1;
369
+ let zt = !1;
364
370
  function Nr(t) {
365
- return typeof t == "boolean" && (Dt = t), Dt;
371
+ return typeof t == "boolean" && (zt = t), zt;
366
372
  }
367
- function He(t) {
368
- const e = typeof t == "string" ? ee(t, !0, Dt) : t;
373
+ function Ve(t) {
374
+ const e = typeof t == "string" ? ee(t, !0, zt) : t;
369
375
  if (e) {
370
376
  const r = Nt(e.provider, e.prefix), n = e.name;
371
377
  return r.icons[n] || (r.missing.has(n) ? null : void 0);
372
378
  }
373
379
  }
374
380
  function Sn(t, e) {
375
- const r = ee(t, !0, Dt);
381
+ const r = ee(t, !0, zt);
376
382
  if (!r) return !1;
377
383
  const n = Nt(r.provider, r.prefix);
378
384
  return e ? kn(n, r.name, e) : (n.missing.add(r.name), !0);
379
385
  }
380
386
  function In(t, e) {
381
387
  if (typeof t != "object") return !1;
382
- if (typeof e != "string" && (e = t.provider || ""), Dt && !e && !t.prefix) {
388
+ if (typeof e != "string" && (e = t.provider || ""), zt && !e && !t.prefix) {
383
389
  let o = !1;
384
390
  return Cr(t) && (t.prefix = "", Ir(t, (i, a) => {
385
391
  Sn(i, a) && (o = !0);
386
392
  })), o;
387
393
  }
388
394
  const r = t.prefix;
389
- if (!Yt({
395
+ if (!Jt({
390
396
  prefix: r,
391
397
  name: "a"
392
398
  })) return !1;
@@ -398,9 +404,9 @@ const Er = Object.freeze({
398
404
  height: null
399
405
  }), Tr = Object.freeze({
400
406
  ...Er,
401
- ...Wt
407
+ ...Qt
402
408
  }), Cn = /(-?[0-9.]*[0-9]+[0-9.]*)/g, _n = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
403
- function Ve(t, e, r) {
409
+ function Ye(t, e, r) {
404
410
  if (e === 1) return t;
405
411
  if (r = r || 100, typeof t == "number") return Math.ceil(t * e * r) / r;
406
412
  if (typeof t != "string") return t;
@@ -442,7 +448,7 @@ function En(t, e, r) {
442
448
  const Tn = (t) => t === "unset" || t === "undefined" || t === "none";
443
449
  function Pn(t, e) {
444
450
  const r = {
445
- ...Se,
451
+ ...Ie,
446
452
  ...t
447
453
  }, n = {
448
454
  ...Tr,
@@ -474,7 +480,7 @@ function Pn(t, e) {
474
480
  });
475
481
  const a = n.width, c = n.height, s = o.width, d = o.height;
476
482
  let f, h;
477
- a === null ? (h = c === null ? "1em" : c === "auto" ? d : c, f = Ve(h, s / d)) : (f = a === "auto" ? s : a, h = c === null ? Ve(f, d / s) : c === "auto" ? d : c);
483
+ a === null ? (h = c === null ? "1em" : c === "auto" ? d : c, f = Ye(h, s / d)) : (f = a === "auto" ? s : a, h = c === null ? Ye(f, d / s) : c === "auto" ? d : c);
478
484
  const m = {}, g = (T, w) => {
479
485
  Tn(w) || (m[T] = w.toString());
480
486
  };
@@ -511,7 +517,7 @@ function Ln(t, e) {
511
517
  function we(t) {
512
518
  return ge[t] || ge[""];
513
519
  }
514
- function Ie(t) {
520
+ function Ce(t) {
515
521
  let e;
516
522
  if (typeof t.resources == "string") e = [t.resources];
517
523
  else if (e = t.resources, !(e instanceof Array) || !e.length) return null;
@@ -526,26 +532,26 @@ function Ie(t) {
526
532
  dataAfterTimeout: t.dataAfterTimeout !== !1
527
533
  };
528
534
  }
529
- const Ce = /* @__PURE__ */ Object.create(null), Ot = ["https://api.simplesvg.com", "https://api.unisvg.com"], Jt = [];
530
- for (; Ot.length > 0; ) Ot.length === 1 || Math.random() > 0.5 ? Jt.push(Ot.shift()) : Jt.push(Ot.pop());
531
- Ce[""] = Ie({ resources: ["https://api.iconify.design"].concat(Jt) });
532
- function zn(t, e) {
533
- const r = Ie(e);
534
- return r === null ? !1 : (Ce[t] = r, !0);
535
+ const _e = /* @__PURE__ */ Object.create(null), Ot = ["https://api.simplesvg.com", "https://api.unisvg.com"], Kt = [];
536
+ for (; Ot.length > 0; ) Ot.length === 1 || Math.random() > 0.5 ? Kt.push(Ot.shift()) : Kt.push(Ot.pop());
537
+ _e[""] = Ce({ resources: ["https://api.iconify.design"].concat(Kt) });
538
+ function Dn(t, e) {
539
+ const r = Ce(e);
540
+ return r === null ? !1 : (_e[t] = r, !0);
535
541
  }
536
- function _e(t) {
537
- return Ce[t];
542
+ function Fe(t) {
543
+ return _e[t];
538
544
  }
539
- const Dn = () => {
545
+ const zn = () => {
540
546
  let t;
541
547
  try {
542
548
  if (t = fetch, typeof t == "function") return t;
543
549
  } catch {
544
550
  }
545
551
  };
546
- let Ye = Dn();
552
+ let Je = zn();
547
553
  function Mn(t, e) {
548
- const r = _e(t);
554
+ const r = Fe(t);
549
555
  if (!r) return 0;
550
556
  let n;
551
557
  if (!r.maxURL) n = 0;
@@ -581,13 +587,13 @@ const Bn = (t, e, r) => {
581
587
  };
582
588
  function qn(t) {
583
589
  if (typeof t == "string") {
584
- const e = _e(t);
590
+ const e = Fe(t);
585
591
  if (e) return e.path;
586
592
  }
587
593
  return "/";
588
594
  }
589
595
  const Rn = (t, e, r) => {
590
- if (!Ye) {
596
+ if (!Je) {
591
597
  r("abort", 424);
592
598
  return;
593
599
  }
@@ -608,7 +614,7 @@ const Rn = (t, e, r) => {
608
614
  return;
609
615
  }
610
616
  let o = 503;
611
- Ye(t + n).then((i) => {
617
+ Je(t + n).then((i) => {
612
618
  const a = i.status;
613
619
  if (a !== 200) {
614
620
  setTimeout(() => {
@@ -850,12 +856,12 @@ function Or(t) {
850
856
  cleanup: n
851
857
  };
852
858
  }
853
- function Je() {
859
+ function Ke() {
854
860
  }
855
861
  const se = /* @__PURE__ */ Object.create(null);
856
862
  function Xn(t) {
857
863
  if (!se[t]) {
858
- const e = _e(t);
864
+ const e = Fe(t);
859
865
  if (!e) return;
860
866
  const r = Or(e), n = {
861
867
  config: e,
@@ -870,21 +876,21 @@ function Zn(t, e, r) {
870
876
  if (typeof t == "string") {
871
877
  const i = we(t);
872
878
  if (!i)
873
- return r(void 0, 424), Je;
879
+ return r(void 0, 424), Ke;
874
880
  o = i.send;
875
881
  const a = Xn(t);
876
882
  a && (n = a.redundancy);
877
883
  } else {
878
- const i = Ie(t);
884
+ const i = Ce(t);
879
885
  if (i) {
880
886
  n = Or(i);
881
887
  const a = t.resources ? t.resources[0] : "", c = we(a);
882
888
  c && (o = c.send);
883
889
  }
884
890
  }
885
- return !n || !o ? (r(void 0, 424), Je) : n.query(e, o, r)().abort;
891
+ return !n || !o ? (r(void 0, 424), Ke) : n.query(e, o, r)().abort;
886
892
  }
887
- function Ke() {
893
+ function Ge() {
888
894
  }
889
895
  function to(t) {
890
896
  t.iconsLoaderFlag || (t.iconsLoaderFlag = !0, setTimeout(() => {
@@ -917,7 +923,7 @@ function jt(t, e, r) {
917
923
  }
918
924
  n(), to(t);
919
925
  }
920
- function Ge(t, e) {
926
+ function We(t, e) {
921
927
  t instanceof Promise ? t.then((r) => {
922
928
  e(r);
923
929
  }).catch(() => {
@@ -931,7 +937,7 @@ function ro(t, e) {
931
937
  if (delete t.iconsToLoad, !o || !o.length) return;
932
938
  const i = t.loadIcon;
933
939
  if (t.loadIcons && (o.length > 1 || !i)) {
934
- Ge(t.loadIcons(o, n, r), (f) => {
940
+ We(t.loadIcons(o, n, r), (f) => {
935
941
  jt(t, o, f);
936
942
  });
937
943
  return;
@@ -939,7 +945,7 @@ function ro(t, e) {
939
945
  if (i) {
940
946
  o.forEach((f) => {
941
947
  const h = i(f, n, r);
942
- Ge(h, (m) => {
948
+ We(h, (m) => {
943
949
  const g = m ? {
944
950
  prefix: n,
945
951
  icons: { [f]: m }
@@ -968,7 +974,7 @@ const no = (t, e) => {
968
974
  if (!n.pending.length) {
969
975
  let s = !0;
970
976
  return e && setTimeout(() => {
971
- s && e(n.loaded, n.missing, n.pending, Ke);
977
+ s && e(n.loaded, n.missing, n.pending, Ge);
972
978
  }), () => {
973
979
  s = !1;
974
980
  };
@@ -987,7 +993,7 @@ const no = (t, e) => {
987
993
  }), i.forEach((s) => {
988
994
  const d = o[s.provider][s.prefix];
989
995
  d.length && ro(s, d);
990
- }), e ? Jn(e, n, i) : Ke;
996
+ }), e ? Jn(e, n, i) : Ge;
991
997
  };
992
998
  function oo(t, e) {
993
999
  const r = { ...t };
@@ -1049,16 +1055,16 @@ function uo(t) {
1049
1055
  function fo(t) {
1050
1056
  return 'url("' + uo(t) + '")';
1051
1057
  }
1052
- let zt;
1058
+ let Dt;
1053
1059
  function po() {
1054
1060
  try {
1055
- zt = window.trustedTypes.createPolicy("iconify", { createHTML: (t) => t });
1061
+ Dt = window.trustedTypes.createPolicy("iconify", { createHTML: (t) => t });
1056
1062
  } catch {
1057
- zt = null;
1063
+ Dt = null;
1058
1064
  }
1059
1065
  }
1060
1066
  function ho(t) {
1061
- return zt === void 0 && po(), zt ? zt.createHTML(t) : t;
1067
+ return Dt === void 0 && po(), Dt ? Dt.createHTML(t) : t;
1062
1068
  }
1063
1069
  const jr = {
1064
1070
  ...Tr,
@@ -1074,25 +1080,25 @@ const jr = {
1074
1080
  backgroundColor: "currentColor"
1075
1081
  }, $r = {
1076
1082
  backgroundColor: "transparent"
1077
- }, We = {
1083
+ }, Qe = {
1078
1084
  Image: "var(--svg)",
1079
1085
  Repeat: "no-repeat",
1080
1086
  Size: "100% 100%"
1081
- }, Qe = {
1087
+ }, Xe = {
1082
1088
  WebkitMask: ye,
1083
1089
  mask: ye,
1084
1090
  background: $r
1085
1091
  };
1086
- for (const t in Qe) {
1087
- const e = Qe[t];
1088
- for (const r in We)
1089
- e[t + r] = We[r];
1092
+ for (const t in Xe) {
1093
+ const e = Xe[t];
1094
+ for (const r in Qe)
1095
+ e[t + r] = Qe[r];
1090
1096
  }
1091
1097
  const wo = {
1092
1098
  ...jr,
1093
1099
  inline: !0
1094
1100
  };
1095
- function Xe(t) {
1101
+ function Ze(t) {
1096
1102
  return t + (t.match(/^[-0-9.]+$/) ? "px" : "");
1097
1103
  }
1098
1104
  const yo = (t, e, r) => {
@@ -1179,8 +1185,8 @@ const yo = (t, e, r) => {
1179
1185
  return s.style = {
1180
1186
  ...a,
1181
1187
  "--svg": fo(T),
1182
- width: Xe(f.width),
1183
- height: Xe(f.height),
1188
+ width: Ze(f.width),
1189
+ height: Ze(f.height),
1184
1190
  ...go,
1185
1191
  ...S ? ye : $r,
1186
1192
  ...c
@@ -1212,7 +1218,7 @@ if (typeof document < "u" && typeof window < "u") {
1212
1218
  const o = e[r];
1213
1219
  if (typeof o != "object" || !o || o.resources === void 0)
1214
1220
  continue;
1215
- zn(r, o) || console.error(n);
1221
+ Dn(r, o) || console.error(n);
1216
1222
  } catch {
1217
1223
  console.error(n);
1218
1224
  }
@@ -1229,7 +1235,7 @@ function Ar(t) {
1229
1235
  name: "",
1230
1236
  data: S
1231
1237
  };
1232
- const T = He(S);
1238
+ const T = Ve(S);
1233
1239
  if (T)
1234
1240
  return {
1235
1241
  name: S,
@@ -1259,7 +1265,7 @@ function Ar(t) {
1259
1265
  });
1260
1266
  return;
1261
1267
  }
1262
- const T = He(S);
1268
+ const T = Ve(S);
1263
1269
  if (d({
1264
1270
  name: S,
1265
1271
  data: T
@@ -1276,15 +1282,15 @@ function Ar(t) {
1276
1282
  }, [t.icon, e]);
1277
1283
  const { name: h, data: m } = a;
1278
1284
  return m ? yo({
1279
- ...Se,
1285
+ ...Ie,
1280
1286
  ...m
1281
1287
  }, t, h) : t.children ? t.children : t.fallback ? t.fallback : fe("span", {});
1282
1288
  }
1283
- const Ze = hr((t, e) => Ar({
1289
+ const tr = mr((t, e) => Ar({
1284
1290
  ...t,
1285
1291
  _ref: e
1286
1292
  }));
1287
- hr((t, e) => Ar({
1293
+ mr((t, e) => Ar({
1288
1294
  inline: !0,
1289
1295
  ...t,
1290
1296
  _ref: e
@@ -1299,7 +1305,7 @@ function bo() {
1299
1305
  const xo = ({
1300
1306
  product: t
1301
1307
  }) => {
1302
- const e = mr(), r = bo(), [n, o] = L(0), i = () => {
1308
+ const e = gr(), r = bo(), [n, o] = L(0), i = () => {
1303
1309
  o(
1304
1310
  (s) => s + r >= t.length ? 0 : s + r
1305
1311
  );
@@ -1317,7 +1323,7 @@ const xo = ({
1317
1323
  {
1318
1324
  onClick: a,
1319
1325
  className: "absolute z-50 left-0 text-[#000000] bg-[#ffffff] rounded-full p-2 flex items-center h-fit",
1320
- children: /* @__PURE__ */ l(Ze, { icon: "mdi:chevron-left", width: "25" })
1326
+ children: /* @__PURE__ */ l(tr, { icon: "mdi:chevron-left", width: "25" })
1321
1327
  }
1322
1328
  ),
1323
1329
  /* @__PURE__ */ l("div", { className: "flex gap-5 justify-center flex-1 overflow-hidden", children: t.slice(n, n + r).map((s) => {
@@ -1333,7 +1339,7 @@ const xo = ({
1333
1339
  /* @__PURE__ */ l("div", { className: "w-full p-2 flex items-center justify-center bg-white", children: /* @__PURE__ */ l(
1334
1340
  "img",
1335
1341
  {
1336
- src: ((d = Me(s)[0]) == null ? void 0 : d.link) || Me(s)[0] || // fallback if it's a string
1342
+ src: ((d = Ue(s)[0]) == null ? void 0 : d.link) || Ue(s)[0] || // fallback if it's a string
1337
1343
  "https://via.placeholder.com/120",
1338
1344
  alt: s != null && s.productName ? s.productName : "Product",
1339
1345
  className: "w-28 h-28 rounded-[10px] transition-transform duration-300 hover:scale-125 object-cover"
@@ -1345,8 +1351,8 @@ const xo = ({
1345
1351
  className: "text-white w-full p-2 text-[12px] text-center h-[60px]",
1346
1352
  children: [
1347
1353
  /* @__PURE__ */ p("div", { className: "relative inline-block group", children: [
1348
- /* @__PURE__ */ l("div", { className: "w-full line-clamp-1 overflow-hidden text-ellipsis text-[#000000] font-medium font-nunitoSans", children: s != null && s.productName ? s.productName : s != null && s.product_name ? s.product_name : Be(
1349
- De((f = s == null ? void 0 : s.name) == null ? void 0 : f["en-US"]),
1354
+ /* @__PURE__ */ l("div", { className: "w-full line-clamp-1 overflow-hidden text-ellipsis text-[#000000] font-medium font-nunitoSans", children: s != null && s.productName ? s.productName : s != null && s.product_name ? s.product_name : qe(
1355
+ Me((f = s == null ? void 0 : s.name) == null ? void 0 : f["en-US"]),
1350
1356
  60
1351
1357
  ) || "Product" }),
1352
1358
  /* @__PURE__ */ l(
@@ -1360,8 +1366,8 @@ const xo = ({
1360
1366
  marginBottom: "5px",
1361
1367
  zIndex: 50
1362
1368
  },
1363
- children: s != null && s.productName ? s.productName : s != null && s.product_name ? s.product_name : Be(
1364
- De((h = s == null ? void 0 : s.name) == null ? void 0 : h["en-US"]),
1369
+ children: s != null && s.productName ? s.productName : s != null && s.product_name ? s.product_name : qe(
1370
+ Me((h = s == null ? void 0 : s.name) == null ? void 0 : h["en-US"]),
1365
1371
  60
1366
1372
  ) || "Product"
1367
1373
  }
@@ -1369,8 +1375,8 @@ const xo = ({
1369
1375
  ] }),
1370
1376
  /* @__PURE__ */ p("div", { className: " flex text-center items-center gap-2 text-[14px] text-[#14121F] font-bold font-nunitoSans text-base mb-1", children: [
1371
1377
  /* @__PURE__ */ l("p", { children: mn(
1372
- s != null && s.price ? Number(s == null ? void 0 : s.price) : Ue(s).centAmount || 0,
1373
- (m = Ue(s)) == null ? void 0 : m.currencyCode
1378
+ s != null && s.price ? Number(s == null ? void 0 : s.price) : Be(s).centAmount || 0,
1379
+ (m = Be(s)) == null ? void 0 : m.currencyCode
1374
1380
  ) }),
1375
1381
  /* @__PURE__ */ p("p", { className: "text-[#14121F] font-normal line-through text-sm font-nunitoSans truncate", children: [
1376
1382
  "$",
@@ -1390,7 +1396,7 @@ const xo = ({
1390
1396
  {
1391
1397
  onClick: i,
1392
1398
  className: "absolute z-50 right-0 text-[#000000] bg-[#ffffff] rounded-full p-2 flex items-center h-fit",
1393
- children: /* @__PURE__ */ l(Ze, { icon: "mdi:chevron-right", width: "25" })
1399
+ children: /* @__PURE__ */ l(tr, { icon: "mdi:chevron-right", width: "25" })
1394
1400
  }
1395
1401
  )
1396
1402
  ] }) });
@@ -1425,7 +1431,7 @@ const xo = ({
1425
1431
  console.log(`customer_token
1426
1432
  `, t);
1427
1433
  try {
1428
- return (await D.post(
1434
+ return (await z.post(
1429
1435
  `${o}${n}/basket/create?baseUrl=${ut()}&siteId=${et()}&pubCfg=${dt()}&envRef=${ft()}&orgRef=${pt()}`,
1430
1436
  e,
1431
1437
  {
@@ -1436,12 +1442,12 @@ const xo = ({
1436
1442
  }
1437
1443
  )).data;
1438
1444
  } catch (i) {
1439
- return D.isAxiosError(i) ? console.error("Error creating basket:", i.response || i.message) : console.error("Unexpected error:", i), null;
1445
+ return z.isAxiosError(i) ? console.error("Error creating basket:", i.response || i.message) : console.error("Unexpected error:", i), null;
1440
1446
  }
1441
- }, Qt = async (t, e, r) => {
1447
+ }, Xt = async (t, e, r) => {
1442
1448
  const { serverUrl: n, basePath: o } = wt(), i = `${n}`;
1443
1449
  try {
1444
- const a = await D.post(
1450
+ const a = await z.post(
1445
1451
  `${i}${o}/basket/add-product/${t}?baseUrl=${ut()}&siteId=${et()}&pubCfg=${dt()}&envRef=${ft()}&orgRef=${pt()}`,
1446
1452
  e,
1447
1453
  {
@@ -1453,19 +1459,19 @@ const xo = ({
1453
1459
  );
1454
1460
  return a.status === 200 && a.data ? a.data : null;
1455
1461
  } catch (a) {
1456
- return D.isAxiosError(a) ? console.error(
1462
+ return z.isAxiosError(a) ? console.error(
1457
1463
  "Error adding products to basket:",
1458
1464
  a.response || a.message
1459
1465
  ) : console.error("Unexpected error:", a), null;
1460
1466
  }
1461
- }, zr = async ({
1467
+ }, Dr = async ({
1462
1468
  basketId: t,
1463
1469
  customer_token: e
1464
1470
  }) => {
1465
1471
  var i;
1466
1472
  const { serverUrl: r, basePath: n } = wt(), o = `${r}`;
1467
1473
  try {
1468
- const a = await D.get(
1474
+ const a = await z.get(
1469
1475
  `${o}${n}/basket/${t}?baseUrl=${ut()}&siteId=${et()}&pubCfg=${dt()}&envRef=${ft()}&orgRef=${pt()}`,
1470
1476
  {
1471
1477
  headers: {
@@ -1476,29 +1482,29 @@ const xo = ({
1476
1482
  );
1477
1483
  return { status: a.status, data: a.data };
1478
1484
  } catch (a) {
1479
- return D.isAxiosError(a) ? { status: (i = a.response) == null ? void 0 : i.status, data: null } : { status: null, data: null };
1485
+ return z.isAxiosError(a) ? { status: (i = a.response) == null ? void 0 : i.status, data: null } : { status: null, data: null };
1480
1486
  }
1481
- }, tr = "sfcc_basket_id", er = "sfcc_customer_token", Mt = "sfcc_token_expiry", ko = 300 * 1e3, $t = "1.0.0";
1487
+ }, er = "sfcc_basket_id", rr = "sfcc_customer_token", Mt = "sfcc_token_expiry", ko = 300 * 1e3, $t = "1.0.0";
1482
1488
  const Ft = (t) => {
1483
1489
  try {
1484
- t ? localStorage.setItem(tr, t) : localStorage.removeItem(tr);
1490
+ t ? localStorage.setItem(er, t) : localStorage.removeItem(er);
1485
1491
  } catch (e) {
1486
1492
  console.error("Error saving basket ID to storage:", e);
1487
1493
  }
1488
- }, Xt = (t) => {
1494
+ }, Zt = (t) => {
1489
1495
  try {
1490
1496
  if (t) {
1491
- localStorage.setItem(er, t);
1497
+ localStorage.setItem(rr, t);
1492
1498
  const e = Date.now() + ko;
1493
1499
  localStorage.setItem(Mt, e.toString());
1494
1500
  } else
1495
- localStorage.removeItem(er);
1501
+ localStorage.removeItem(rr);
1496
1502
  } catch (e) {
1497
1503
  console.error("Error storing token:", e);
1498
1504
  }
1499
- }, rr = 300, So = () => {
1505
+ }, nr = 300, So = () => {
1500
1506
  var c, s, d, f, h, m;
1501
- const t = mr(), e = Gt((g) => g.product.product), r = Gt((g) => g.store.store), [n, o] = L(!!e);
1507
+ const t = gr(), e = Wt((g) => g.product.product), r = Wt((g) => g.store.store), [n, o] = L(!!e);
1502
1508
  if (lt(() => {
1503
1509
  o(!!e);
1504
1510
  }, [e]), !e) return null;
@@ -1522,25 +1528,25 @@ const Ft = (t) => {
1522
1528
  console.log(y, "the product data");
1523
1529
  const Tt = JSON.parse(
1524
1530
  sessionStorage.getItem("customerData") || "{}"
1525
- ), ht = Tt == null ? void 0 : Tt.basketId, re = !1, Ut = localStorage.getItem(Mt), rt = Date.now();
1526
- if (!re || !Ut || rt >= parseInt(Ut)) {
1531
+ ), ht = Tt == null ? void 0 : Tt.basketId, re = !1, Bt = localStorage.getItem(Mt), rt = Date.now();
1532
+ if (!re || !Bt || rt >= parseInt(Bt)) {
1527
1533
  let R = "";
1528
1534
  {
1529
- const ot = await te();
1535
+ const ot = await Ut();
1530
1536
  console.log("token from auth data"), R = "Bearer " + ot.access_token;
1531
1537
  }
1532
1538
  if (!R) {
1533
1539
  console.error("Failed to get customer_token");
1534
1540
  return;
1535
1541
  }
1536
- const Bt = rt + 300 * 1e3;
1537
- if (Xt(R), localStorage.setItem(Mt, Bt.toString()), ht) {
1538
- const ot = await zr({
1542
+ const qt = rt + 300 * 1e3;
1543
+ if (Zt(R), localStorage.setItem(Mt, qt.toString()), ht) {
1544
+ const ot = await Dr({
1539
1545
  basketId: ht,
1540
1546
  customer_token: R
1541
1547
  });
1542
1548
  if (console.log(ht, "basket id from customer"), ot.status === 200 && ot) {
1543
- const it = await Qt(
1549
+ const it = await Xt(
1544
1550
  ht,
1545
1551
  y,
1546
1552
  R
@@ -1581,7 +1587,7 @@ const Ft = (t) => {
1581
1587
  ), Ft(
1582
1588
  (v == null ? void 0 : v.basket_id) || (v == null ? void 0 : v.basketId)
1583
1589
  ), console.log("adding product to basket");
1584
- const nt = await Qt(
1590
+ const nt = await Xt(
1585
1591
  (v == null ? void 0 : v.basket_id) || (v == null ? void 0 : v.basketId),
1586
1592
  y,
1587
1593
  R
@@ -1600,7 +1606,7 @@ const Ft = (t) => {
1600
1606
  position: "bottom-right",
1601
1607
  autoClose: 3e3
1602
1608
  }), ((X = y == null ? void 0 : y.response) == null ? void 0 : X.status) === 404 || // Basket not found
1603
- ((U = y == null ? void 0 : y.response) == null ? void 0 : U.status) === 401 ? (((B = y == null ? void 0 : y.response) == null ? void 0 : B.status) === 404 && Ft(null), ((yt = y == null ? void 0 : y.response) == null ? void 0 : yt.status) === 401 && (Ft(null), Xt(null))) : (console.error("Failed to add product to basket:", y.message), W.error("Failed to add product to cart", {
1609
+ ((U = y == null ? void 0 : y.response) == null ? void 0 : U.status) === 401 ? (((B = y == null ? void 0 : y.response) == null ? void 0 : B.status) === 404 && Ft(null), ((yt = y == null ? void 0 : y.response) == null ? void 0 : yt.status) === 401 && (Ft(null), Zt(null))) : (console.error("Failed to add product to basket:", y.message), W.error("Failed to add product to cart", {
1604
1610
  position: "bottom-right",
1605
1611
  autoClose: 3e3
1606
1612
  }));
@@ -1616,7 +1622,7 @@ const Ft = (t) => {
1616
1622
  {
1617
1623
  className: "fixed inset-0 z-40 bg-black/30",
1618
1624
  onClick: () => {
1619
- o(!1), setTimeout(() => t(he(null)), rr);
1625
+ o(!1), setTimeout(() => t(he(null)), nr);
1620
1626
  }
1621
1627
  }
1622
1628
  ),
@@ -1634,14 +1640,14 @@ const Ft = (t) => {
1634
1640
  /* @__PURE__ */ p("div", { className: "mt-3 flex flex-row justify-between w-full ", children: [
1635
1641
  /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l("p", { className: "text-[#000000] font-bold font-nunitoSans", children: e.name }) }),
1636
1642
  /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(
1637
- Le,
1643
+ De,
1638
1644
  {
1639
1645
  icon: "mdi:close",
1640
1646
  className: "text-[#555555] w-6 h-6 cursor-pointer",
1641
1647
  onClick: () => {
1642
1648
  o(!1), setTimeout(
1643
1649
  () => t(he(null)),
1644
- rr
1650
+ nr
1645
1651
  );
1646
1652
  }
1647
1653
  }
@@ -1712,7 +1718,7 @@ const Ft = (t) => {
1712
1718
  /* @__PURE__ */ l("div", { className: "mt-2 flex flex-row items-center gap-2", children: Array.from({ length: 5 }).map((g, S) => {
1713
1719
  var T;
1714
1720
  return /* @__PURE__ */ l(
1715
- Le,
1721
+ De,
1716
1722
  {
1717
1723
  icon: "mdi:star",
1718
1724
  width: "20",
@@ -1778,7 +1784,7 @@ const Ft = (t) => {
1778
1784
  title: u.name,
1779
1785
  image: u.image ?? "",
1780
1786
  price: u.price ?? 0
1781
- }), [U, B] = L([]), yt = Pt(null), y = Gt((u) => u.store.store), Tt = Gt((u) => u.product.product), ht = () => {
1787
+ }), [U, B] = L([]), yt = Pt(null), y = Wt((u) => u.store.store), Tt = Wt((u) => u.product.product), ht = () => {
1782
1788
  S(!0), setTimeout(() => m(!0), 10);
1783
1789
  }, re = () => {
1784
1790
  m(!1), setTimeout(() => S(!1), 300);
@@ -1786,14 +1792,14 @@ const Ft = (t) => {
1786
1792
  lt(() => {
1787
1793
  d ? ht() : re();
1788
1794
  }, [d]);
1789
- const Ut = (u) => {
1795
+ const Bt = (u) => {
1790
1796
  V(r[u]);
1791
1797
  };
1792
1798
  lt(() => {
1793
1799
  yt.current && (yt.current.scrollTop += 150);
1794
1800
  }, [U]);
1795
1801
  let rt = null, R = null;
1796
- const Bt = async () => {
1802
+ const qt = async () => {
1797
1803
  if (rt && R && Date.now() < R)
1798
1804
  return rt;
1799
1805
  try {
@@ -1821,7 +1827,7 @@ const Ft = (t) => {
1821
1827
  return console.error("Error obtaining JWT token:", u), rt = null, R = null, null;
1822
1828
  }
1823
1829
  }, ne = async () => {
1824
- const u = await te();
1830
+ const u = await Ut();
1825
1831
  u != null && s(u);
1826
1832
  };
1827
1833
  lt(() => {
@@ -1846,7 +1852,7 @@ const Ft = (t) => {
1846
1852
  (Z, tt) => tt === K.length - 1 ? { ...Z, secondaryLoading: !0 } : Z
1847
1853
  )
1848
1854
  );
1849
- const F = await Bt();
1855
+ const F = await qt();
1850
1856
  if (!F) throw new Error("Failed to fetch token");
1851
1857
  const b = localStorage.getItem("customerNumber"), C = localStorage.getItem("isLoggedIn"), bt = `https://tanya.aspiresystems.com/api/bedrock/invoke/stream?${new URLSearchParams({
1852
1858
  registered: String(C || !1),
@@ -1919,7 +1925,7 @@ const Ft = (t) => {
1919
1925
  }
1920
1926
  ]);
1921
1927
  try {
1922
- const I = j, F = localStorage.getItem("customerNumber"), b = localStorage.getItem("isLoggedIn"), C = await Bt();
1928
+ const I = j, F = localStorage.getItem("customerNumber"), b = localStorage.getItem("isLoggedIn"), C = await qt();
1923
1929
  if (!C)
1924
1930
  throw new Error("Failed to obtain access token");
1925
1931
  const bt = `https://tanya.aspiresystems.com/api/bedrock/invoke/stream?${new URLSearchParams({
@@ -1961,7 +1967,7 @@ const Ft = (t) => {
1961
1967
  const $ = JSON.parse(G);
1962
1968
  $.index == 1 && (K = $.data), B(
1963
1969
  (q) => q.map(
1964
- (st, qt) => qt === q.length - 1 ? {
1970
+ (st, Rt) => Rt === q.length - 1 ? {
1965
1971
  ...st,
1966
1972
  [$.index == 0 ? "response" : $.index == 1 ? "keywords" : $.index == 2 ? "potentialQuestions" : "end"]: $.data
1967
1973
  } : st
@@ -1990,8 +1996,7 @@ const Ft = (t) => {
1990
1996
  const E = u.split(",");
1991
1997
  for (const I of E) {
1992
1998
  const F = await ze(
1993
- I,
1994
- c == null ? void 0 : c.access_token
1999
+ I
1995
2000
  );
1996
2001
  if (P(!1), (F == null ? void 0 : F.length) > 0 && (B(
1997
2002
  (b) => b.map(
@@ -2013,8 +2018,7 @@ const Ft = (t) => {
2013
2018
  } else
2014
2019
  for (const E of u) {
2015
2020
  const I = await ze(
2016
- E,
2017
- c == null ? void 0 : c.access_token
2021
+ E
2018
2022
  );
2019
2023
  P(!1), (I == null ? void 0 : I.length) > 0 && B(
2020
2024
  (F) => F.map(
@@ -2071,9 +2075,9 @@ const Ft = (t) => {
2071
2075
  console.log(G, "product data", "app version", $t);
2072
2076
  const $ = JSON.parse(
2073
2077
  sessionStorage.getItem("customerData") || "{}"
2074
- ), q = $ == null ? void 0 : $.basketId, st = !1, qt = localStorage.getItem(Mt), $e = Date.now();
2075
- if (!st || !qt || $e >= parseInt(qt)) {
2076
- const Gr = await xr();
2078
+ ), q = $ == null ? void 0 : $.basketId, st = !1, Rt = localStorage.getItem(Mt), Ae = Date.now();
2079
+ if (!st || !Rt || Ae >= parseInt(Rt)) {
2080
+ const Gr = await Se();
2077
2081
  let { customer_token: mt } = await vr(
2078
2082
  Gr
2079
2083
  );
@@ -2081,14 +2085,14 @@ const Ft = (t) => {
2081
2085
  console.error("Failed to get customer_token");
2082
2086
  return;
2083
2087
  }
2084
- const Wr = $e + 300 * 1e3;
2085
- if (Xt(mt), localStorage.setItem(Mt, Wr.toString()), q) {
2086
- const Ae = await zr({
2088
+ const Wr = Ae + 300 * 1e3;
2089
+ if (Zt(mt), localStorage.setItem(Mt, Wr.toString()), q) {
2090
+ const Le = await Dr({
2087
2091
  basketId: q,
2088
2092
  customer_token: mt
2089
2093
  });
2090
- if (Ae.status === 200 && Ae) {
2091
- const oe = await Qt(
2094
+ if (Le.status === 200 && Le) {
2095
+ const oe = await Xt(
2092
2096
  q,
2093
2097
  G,
2094
2098
  mt
@@ -2124,7 +2128,7 @@ const Ft = (t) => {
2124
2128
  Ft(
2125
2129
  (N == null ? void 0 : N.basket_id) || (N == null ? void 0 : N.basketId)
2126
2130
  );
2127
- const St = await Qt(
2131
+ const St = await Xt(
2128
2132
  (N == null ? void 0 : N.basket_id) || (N == null ? void 0 : N.basketId),
2129
2133
  G,
2130
2134
  mt
@@ -2143,7 +2147,7 @@ const Ft = (t) => {
2143
2147
  position: "bottom-right",
2144
2148
  autoClose: 3e3
2145
2149
  }), ((K = x == null ? void 0 : x.response) == null ? void 0 : K.status) === 404 || // Basket not found
2146
- ((Z = x == null ? void 0 : x.response) == null ? void 0 : Z.status) === 401 ? (((tt = x == null ? void 0 : x.response) == null ? void 0 : tt.status) === 404 && Ft(null), ((at = x == null ? void 0 : x.response) == null ? void 0 : at.status) === 401 && (Ft(null), Xt(null))) : (console.error("Failed to add product to basket:", x.message), W.error("Failed to add product to cart", {
2150
+ ((Z = x == null ? void 0 : x.response) == null ? void 0 : Z.status) === 401 ? (((tt = x == null ? void 0 : x.response) == null ? void 0 : tt.status) === 404 && Ft(null), ((at = x == null ? void 0 : x.response) == null ? void 0 : at.status) === 401 && (Ft(null), Zt(null))) : (console.error("Failed to add product to basket:", x.message), W.error("Failed to add product to cart", {
2147
2151
  position: "bottom-right",
2148
2152
  autoClose: 3e3
2149
2153
  }));
@@ -2381,7 +2385,7 @@ const Ft = (t) => {
2381
2385
  /* @__PURE__ */ l("div", { className: "flex flex-wrap gap-2 mt-2", children: e.map((u) => /* @__PURE__ */ l(
2382
2386
  "button",
2383
2387
  {
2384
- onClick: () => Ut(u),
2388
+ onClick: () => Bt(u),
2385
2389
  className: "px-2 py-2 font-semibold text-xs text-[#18181B] bg-[#F3F3F3] rounded-2xl",
2386
2390
  style: {
2387
2391
  backgroundColor: j === r[u] ? "#FFFFFF" : "#F3F3F3",
@@ -2727,9 +2731,9 @@ function _o(t, e) {
2727
2731
  e.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[o]) && (r[n[o]] = t[n[o]]);
2728
2732
  return r;
2729
2733
  }
2730
- var ce = "Invariant Violation", nr = Object.setPrototypeOf, Fo = nr === void 0 ? function(t, e) {
2734
+ var ce = "Invariant Violation", or = Object.setPrototypeOf, Fo = or === void 0 ? function(t, e) {
2731
2735
  return t.__proto__ = e, t;
2732
- } : nr, Dr = (
2736
+ } : or, zr = (
2733
2737
  /** @class */
2734
2738
  (function(t) {
2735
2739
  Co(e, t);
@@ -2743,10 +2747,10 @@ var ce = "Invariant Violation", nr = Object.setPrototypeOf, Fo = nr === void 0 ?
2743
2747
  );
2744
2748
  function gt(t, e) {
2745
2749
  if (!t)
2746
- throw new Dr(e);
2750
+ throw new zr(e);
2747
2751
  }
2748
2752
  var Mr = ["debug", "log", "warn", "error", "silent"], No = Mr.indexOf("log");
2749
- function Rt(t) {
2753
+ function Ht(t) {
2750
2754
  return function() {
2751
2755
  if (Mr.indexOf(t) >= No) {
2752
2756
  var e = console[t] || console.log;
@@ -2755,7 +2759,7 @@ function Rt(t) {
2755
2759
  };
2756
2760
  }
2757
2761
  (function(t) {
2758
- t.debug = Rt("debug"), t.log = Rt("log"), t.warn = Rt("warn"), t.error = Rt("error");
2762
+ t.debug = Ht("debug"), t.log = Ht("log"), t.warn = Ht("warn"), t.error = Ht("error");
2759
2763
  })(gt || (gt = {}));
2760
2764
  var Ur = "3.14.0";
2761
2765
  function It(t) {
@@ -2781,10 +2785,10 @@ const xe = It(function() {
2781
2785
  It(function() {
2782
2786
  return It.constructor("return this")();
2783
2787
  });
2784
- var or = /* @__PURE__ */ new Map();
2788
+ var ir = /* @__PURE__ */ new Map();
2785
2789
  function Eo(t) {
2786
- var e = or.get(t) || 1;
2787
- return or.set(t, e + 1), "".concat(t, ":").concat(e, ":").concat(Math.random().toString(36).slice(2));
2790
+ var e = ir.get(t) || 1;
2791
+ return ir.set(t, e + 1), "".concat(t, ":").concat(e, ":").concat(Math.random().toString(36).slice(2));
2788
2792
  }
2789
2793
  function To(t, e) {
2790
2794
  var r = Eo("stringifyForDisplay");
@@ -2792,13 +2796,13 @@ function To(t, e) {
2792
2796
  return o === void 0 ? r : o;
2793
2797
  }, e).split(JSON.stringify(r)).join("<undefined>");
2794
2798
  }
2795
- function Ht(t) {
2799
+ function Vt(t) {
2796
2800
  return function(e) {
2797
2801
  for (var r = [], n = 1; n < arguments.length; n++)
2798
2802
  r[n - 1] = arguments[n];
2799
2803
  if (typeof e == "number") {
2800
2804
  var o = e;
2801
- e = Fe(o), e || (e = Ne(o, r), r = []);
2805
+ e = Ne(o), e || (e = Ee(o, r), r = []);
2802
2806
  }
2803
2807
  t.apply(void 0, [e].concat(r));
2804
2808
  };
@@ -2806,19 +2810,19 @@ function Ht(t) {
2806
2810
  var le = Object.assign(function(e, r) {
2807
2811
  for (var n = [], o = 2; o < arguments.length; o++)
2808
2812
  n[o - 2] = arguments[o];
2809
- e || gt(e, Fe(r, n) || Ne(r, n));
2813
+ e || gt(e, Ne(r, n) || Ee(r, n));
2810
2814
  }, {
2811
- debug: Ht(gt.debug),
2812
- log: Ht(gt.log),
2813
- warn: Ht(gt.warn),
2814
- error: Ht(gt.error)
2815
+ debug: Vt(gt.debug),
2816
+ log: Vt(gt.log),
2817
+ warn: Vt(gt.warn),
2818
+ error: Vt(gt.error)
2815
2819
  });
2816
2820
  function Br(t) {
2817
2821
  for (var e = [], r = 1; r < arguments.length; r++)
2818
2822
  e[r - 1] = arguments[r];
2819
- return new Dr(Fe(t, e) || Ne(t, e));
2823
+ return new zr(Ne(t, e) || Ee(t, e));
2820
2824
  }
2821
- var ir = Symbol.for("ApolloErrorMessageHandler_" + Ur);
2825
+ var ar = Symbol.for("ApolloErrorMessageHandler_" + Ur);
2822
2826
  function qr(t) {
2823
2827
  if (typeof t == "string")
2824
2828
  return t;
@@ -2828,11 +2832,11 @@ function qr(t) {
2828
2832
  return "<non-serializable>";
2829
2833
  }
2830
2834
  }
2831
- function Fe(t, e) {
2835
+ function Ne(t, e) {
2832
2836
  if (e === void 0 && (e = []), !!t)
2833
- return xe[ir] && xe[ir](t, e.map(qr));
2837
+ return xe[ar] && xe[ar](t, e.map(qr));
2834
2838
  }
2835
- function Ne(t, e) {
2839
+ function Ee(t, e) {
2836
2840
  if (e === void 0 && (e = []), !!t)
2837
2841
  return "An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({
2838
2842
  version: Ur,
@@ -2848,7 +2852,7 @@ function Po(t) {
2848
2852
  })[0] || null;
2849
2853
  }
2850
2854
  let A = null;
2851
- const ar = {};
2855
+ const sr = {};
2852
2856
  let Oo = 1;
2853
2857
  const jo = () => class {
2854
2858
  constructor() {
@@ -2863,11 +2867,11 @@ const jo = () => class {
2863
2867
  for (let e = A; e; e = e.parent)
2864
2868
  if (this.id in e.slots) {
2865
2869
  const r = e.slots[this.id];
2866
- if (r === ar)
2870
+ if (r === sr)
2867
2871
  break;
2868
2872
  return e !== A && (A.slots[this.id] = r), !0;
2869
2873
  }
2870
- return A && (A.slots[this.id] = ar), !1;
2874
+ return A && (A.slots[this.id] = sr), !1;
2871
2875
  }
2872
2876
  getValue() {
2873
2877
  if (this.hasValue())
@@ -2911,7 +2915,7 @@ const jo = () => class {
2911
2915
  return e.apply(n, r);
2912
2916
  }
2913
2917
  };
2914
- function sr(t) {
2918
+ function cr(t) {
2915
2919
  try {
2916
2920
  return t();
2917
2921
  } catch {
@@ -2920,18 +2924,18 @@ function sr(t) {
2920
2924
  const ue = "@wry/context:Slot", $o = (
2921
2925
  // Prefer globalThis when available.
2922
2926
  // https://github.com/benjamn/wryware/issues/347
2923
- sr(() => globalThis) || // Fall back to global, which works in Node.js and may be converted by some
2927
+ cr(() => globalThis) || // Fall back to global, which works in Node.js and may be converted by some
2924
2928
  // bundlers to the appropriate identifier (window, self, ...) depending on the
2925
2929
  // bundling target. https://github.com/endojs/endo/issues/576#issuecomment-1178515224
2926
- sr(() => global) || // Otherwise, use a dummy host that's local to this module. We used to fall
2930
+ cr(() => global) || // Otherwise, use a dummy host that's local to this module. We used to fall
2927
2931
  // back to using the Array constructor as a namespace, but that was flagged in
2928
2932
  // https://github.com/benjamn/wryware/issues/347, and can be avoided.
2929
2933
  /* @__PURE__ */ Object.create(null)
2930
- ), cr = $o, Ee = cr[ue] || // Earlier versions of this package stored the globalKey property on the Array
2934
+ ), lr = $o, Te = lr[ue] || // Earlier versions of this package stored the globalKey property on the Array
2931
2935
  // constructor, so we check there as well, to prevent Slot class duplication.
2932
2936
  Array[ue] || (function(t) {
2933
2937
  try {
2934
- Object.defineProperty(cr, ue, {
2938
+ Object.defineProperty(lr, ue, {
2935
2939
  value: t,
2936
2940
  enumerable: !1,
2937
2941
  writable: !1,
@@ -2946,8 +2950,8 @@ Array[ue] || (function(t) {
2946
2950
  } finally {
2947
2951
  return t;
2948
2952
  }
2949
- })(jo()), { bind: wi, noContext: yi } = Ee;
2950
- new Ee();
2953
+ })(jo()), { bind: wi, noContext: yi } = Te;
2954
+ new Te();
2951
2955
  function Ao(t, e) {
2952
2956
  var r = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
2953
2957
  if (r) return (r = r.call(t)).next.bind(r);
@@ -2963,37 +2967,37 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2963
2967
  }
2964
2968
  function Lo(t, e) {
2965
2969
  if (t) {
2966
- if (typeof t == "string") return lr(t, e);
2970
+ if (typeof t == "string") return ur(t, e);
2967
2971
  var r = Object.prototype.toString.call(t).slice(8, -1);
2968
2972
  if (r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set") return Array.from(t);
2969
- if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return lr(t, e);
2973
+ if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return ur(t, e);
2970
2974
  }
2971
2975
  }
2972
- function lr(t, e) {
2976
+ function ur(t, e) {
2973
2977
  (e == null || e > t.length) && (e = t.length);
2974
2978
  for (var r = 0, n = new Array(e); r < e; r++)
2975
2979
  n[r] = t[r];
2976
2980
  return n;
2977
2981
  }
2978
- function ur(t, e) {
2982
+ function dr(t, e) {
2979
2983
  for (var r = 0; r < e.length; r++) {
2980
2984
  var n = e[r];
2981
2985
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n);
2982
2986
  }
2983
2987
  }
2984
- function Te(t, e, r) {
2985
- return e && ur(t.prototype, e), r && ur(t, r), Object.defineProperty(t, "prototype", { writable: !1 }), t;
2988
+ function Pe(t, e, r) {
2989
+ return e && dr(t.prototype, e), r && dr(t, r), Object.defineProperty(t, "prototype", { writable: !1 }), t;
2986
2990
  }
2987
- var Pe = function() {
2991
+ var Oe = function() {
2988
2992
  return typeof Symbol == "function";
2989
- }, Oe = function(t) {
2990
- return Pe() && !!Symbol[t];
2991
2993
  }, je = function(t) {
2992
- return Oe(t) ? Symbol[t] : "@@" + t;
2994
+ return Oe() && !!Symbol[t];
2995
+ }, $e = function(t) {
2996
+ return je(t) ? Symbol[t] : "@@" + t;
2993
2997
  };
2994
- Pe() && !Oe("observable") && (Symbol.observable = Symbol("observable"));
2995
- var zo = je("iterator"), ve = je("observable"), Rr = je("species");
2996
- function Zt(t, e) {
2998
+ Oe() && !je("observable") && (Symbol.observable = Symbol("observable"));
2999
+ var Do = $e("iterator"), ve = $e("observable"), Rr = $e("species");
3000
+ function te(t, e) {
2997
3001
  var r = t[e];
2998
3002
  if (r != null) {
2999
3003
  if (typeof r != "function") throw new TypeError(r + " is not a function");
@@ -3002,17 +3006,17 @@ function Zt(t, e) {
3002
3006
  }
3003
3007
  function At(t) {
3004
3008
  var e = t.constructor;
3005
- return e !== void 0 && (e = e[Rr], e === null && (e = void 0)), e !== void 0 ? e : z;
3009
+ return e !== void 0 && (e = e[Rr], e === null && (e = void 0)), e !== void 0 ? e : D;
3006
3010
  }
3007
- function Do(t) {
3008
- return t instanceof z;
3011
+ function zo(t) {
3012
+ return t instanceof D;
3009
3013
  }
3010
3014
  function Et(t) {
3011
3015
  Et.log ? Et.log(t) : setTimeout(function() {
3012
3016
  throw t;
3013
3017
  });
3014
3018
  }
3015
- function Kt(t) {
3019
+ function Gt(t) {
3016
3020
  Promise.resolve().then(function() {
3017
3021
  try {
3018
3022
  t();
@@ -3028,7 +3032,7 @@ function Hr(t) {
3028
3032
  if (typeof e == "function")
3029
3033
  e();
3030
3034
  else {
3031
- var r = Zt(e, "unsubscribe");
3035
+ var r = te(e, "unsubscribe");
3032
3036
  r && r.call(e);
3033
3037
  }
3034
3038
  } catch (n) {
@@ -3050,7 +3054,7 @@ function Vr(t, e, r) {
3050
3054
  t._state = "running";
3051
3055
  var n = t._observer;
3052
3056
  try {
3053
- var o = Zt(n, e);
3057
+ var o = te(n, e);
3054
3058
  switch (e) {
3055
3059
  case "next":
3056
3060
  o && o.call(n, r);
@@ -3081,7 +3085,7 @@ function de(t, e, r) {
3081
3085
  t._state = "buffering", t._queue = [{
3082
3086
  type: e,
3083
3087
  value: r
3084
- }], Kt(function() {
3088
+ }], Gt(function() {
3085
3089
  return Mo(t);
3086
3090
  });
3087
3091
  return;
@@ -3103,7 +3107,7 @@ var Uo = /* @__PURE__ */ (function() {
3103
3107
  var e = t.prototype;
3104
3108
  return e.unsubscribe = function() {
3105
3109
  this._state !== "closed" && (ke(this), Hr(this));
3106
- }, Te(t, [{
3110
+ }, Pe(t, [{
3107
3111
  key: "closed",
3108
3112
  get: function() {
3109
3113
  return this._state === "closed";
@@ -3120,13 +3124,13 @@ var Uo = /* @__PURE__ */ (function() {
3120
3124
  de(this._subscription, "error", n);
3121
3125
  }, e.complete = function() {
3122
3126
  de(this._subscription, "complete");
3123
- }, Te(t, [{
3127
+ }, Pe(t, [{
3124
3128
  key: "closed",
3125
3129
  get: function() {
3126
3130
  return this._subscription._state === "closed";
3127
3131
  }
3128
3132
  }]), t;
3129
- })(), z = /* @__PURE__ */ (function() {
3133
+ })(), D = /* @__PURE__ */ (function() {
3130
3134
  function t(r) {
3131
3135
  if (!(this instanceof t)) throw new TypeError("Observable cannot be called as a function");
3132
3136
  if (typeof r != "function") throw new TypeError("Observable initializer must be a function");
@@ -3302,17 +3306,17 @@ var Uo = /* @__PURE__ */ (function() {
3302
3306
  }, t.from = function(n) {
3303
3307
  var o = typeof this == "function" ? this : t;
3304
3308
  if (n == null) throw new TypeError(n + " is not an object");
3305
- var i = Zt(n, ve);
3309
+ var i = te(n, ve);
3306
3310
  if (i) {
3307
3311
  var a = i.call(n);
3308
3312
  if (Object(a) !== a) throw new TypeError(a + " is not an object");
3309
- return Do(a) && a.constructor === o ? a : new o(function(c) {
3313
+ return zo(a) && a.constructor === o ? a : new o(function(c) {
3310
3314
  return a.subscribe(c);
3311
3315
  });
3312
3316
  }
3313
- if (Oe("iterator") && (i = Zt(n, zo), i))
3317
+ if (je("iterator") && (i = te(n, Do), i))
3314
3318
  return new o(function(c) {
3315
- Kt(function() {
3319
+ Gt(function() {
3316
3320
  if (!c.closed) {
3317
3321
  for (var s = Ao(i.call(n)), d; !(d = s()).done; ) {
3318
3322
  var f = d.value;
@@ -3324,7 +3328,7 @@ var Uo = /* @__PURE__ */ (function() {
3324
3328
  });
3325
3329
  if (Array.isArray(n))
3326
3330
  return new o(function(c) {
3327
- Kt(function() {
3331
+ Gt(function() {
3328
3332
  if (!c.closed) {
3329
3333
  for (var s = 0; s < n.length; ++s)
3330
3334
  if (c.next(n[s]), c.closed) return;
@@ -3338,7 +3342,7 @@ var Uo = /* @__PURE__ */ (function() {
3338
3342
  o[i] = arguments[i];
3339
3343
  var a = typeof this == "function" ? this : t;
3340
3344
  return new a(function(c) {
3341
- Kt(function() {
3345
+ Gt(function() {
3342
3346
  if (!c.closed) {
3343
3347
  for (var s = 0; s < o.length; ++s)
3344
3348
  if (c.next(o[s]), c.closed) return;
@@ -3346,14 +3350,14 @@ var Uo = /* @__PURE__ */ (function() {
3346
3350
  }
3347
3351
  });
3348
3352
  });
3349
- }, Te(t, null, [{
3353
+ }, Pe(t, null, [{
3350
3354
  key: Rr,
3351
3355
  get: function() {
3352
3356
  return this;
3353
3357
  }
3354
3358
  }]), t;
3355
3359
  })();
3356
- Pe() && Object.defineProperty(z, Symbol("extensions"), {
3360
+ Oe() && Object.defineProperty(D, Symbol("extensions"), {
3357
3361
  value: {
3358
3362
  symbol: ve,
3359
3363
  hostReportError: Et
@@ -3379,8 +3383,8 @@ function qo(t) {
3379
3383
  var Ct;
3380
3384
  typeof self < "u" ? Ct = self : typeof window < "u" ? Ct = window : typeof global < "u" ? Ct = global : typeof module < "u" ? Ct = module : Ct = Function("return this")();
3381
3385
  qo(Ct);
3382
- var dr = z.prototype, fr = "@@observable";
3383
- dr[fr] || (dr[fr] = function() {
3386
+ var fr = D.prototype, pr = "@@observable";
3387
+ fr[pr] || (fr[pr] = function() {
3384
3388
  return this;
3385
3389
  });
3386
3390
  function Ro(t) {
@@ -3420,20 +3424,20 @@ function Vo(t) {
3420
3424
  };
3421
3425
  return e.operationName || (e.operationName = typeof e.query != "string" ? Po(e.query) || void 0 : ""), e;
3422
3426
  }
3423
- var Yo = Symbol.for("apollo.deprecations"), Jo = xe, Ko = new Ee();
3427
+ var Yo = Symbol.for("apollo.deprecations"), Jo = xe, Ko = new Te();
3424
3428
  function Go(t) {
3425
3429
  return Jo[Yo] || (Ko.getValue() || []).includes(t);
3426
3430
  }
3427
3431
  function Wo(t, e) {
3428
3432
  Go(t) || e();
3429
3433
  }
3430
- function pr(t, e) {
3431
- return e ? e(t) : z.of();
3434
+ function hr(t, e) {
3435
+ return e ? e(t) : D.of();
3432
3436
  }
3433
3437
  function Lt(t) {
3434
3438
  return typeof t == "function" ? new Yr(t) : t;
3435
3439
  }
3436
- function Vt(t) {
3440
+ function Yt(t) {
3437
3441
  return t.request.length <= 1;
3438
3442
  }
3439
3443
  var Yr = (
@@ -3444,37 +3448,37 @@ var Yr = (
3444
3448
  }
3445
3449
  return t.empty = function() {
3446
3450
  return new t(function() {
3447
- return z.of();
3451
+ return D.of();
3448
3452
  });
3449
3453
  }, t.from = function(e) {
3450
3454
  return e.length === 0 ? t.empty() : e.map(Lt).reduce(function(r, n) {
3451
3455
  return r.concat(n);
3452
3456
  });
3453
3457
  }, t.split = function(e, r, n) {
3454
- var o = Lt(r), i = Lt(n || new t(pr)), a;
3455
- return Vt(o) && Vt(i) ? a = new t(function(c) {
3456
- return e(c) ? o.request(c) || z.of() : i.request(c) || z.of();
3458
+ var o = Lt(r), i = Lt(n || new t(hr)), a;
3459
+ return Yt(o) && Yt(i) ? a = new t(function(c) {
3460
+ return e(c) ? o.request(c) || D.of() : i.request(c) || D.of();
3457
3461
  }) : a = new t(function(c, s) {
3458
- return e(c) ? o.request(c, s) || z.of() : i.request(c, s) || z.of();
3462
+ return e(c) ? o.request(c, s) || D.of() : i.request(c, s) || D.of();
3459
3463
  }), Object.assign(a, { left: o, right: i });
3460
3464
  }, t.execute = function(e, r) {
3461
- return e.request(Ho(r.context, Vo(Ro(r)))) || z.of();
3465
+ return e.request(Ho(r.context, Vo(Ro(r)))) || D.of();
3462
3466
  }, t.concat = function(e, r) {
3463
3467
  var n = Lt(e);
3464
- if (Vt(n))
3468
+ if (Yt(n))
3465
3469
  return globalThis.__DEV__ !== !1 && le.warn(47, n), n;
3466
3470
  var o = Lt(r), i;
3467
- return Vt(o) ? i = new t(function(a) {
3471
+ return Yt(o) ? i = new t(function(a) {
3468
3472
  return n.request(a, function(c) {
3469
- return o.request(c) || z.of();
3470
- }) || z.of();
3473
+ return o.request(c) || D.of();
3474
+ }) || D.of();
3471
3475
  }) : i = new t(function(a, c) {
3472
3476
  return n.request(a, function(s) {
3473
- return o.request(s, c) || z.of();
3474
- }) || z.of();
3477
+ return o.request(s, c) || D.of();
3478
+ }) || D.of();
3475
3479
  }), Object.assign(i, { left: n, right: o });
3476
3480
  }, t.prototype.split = function(e, r, n) {
3477
- return this.concat(t.split(e, r, n || new t(pr)));
3481
+ return this.concat(t.split(e, r, n || new t(hr)));
3478
3482
  }, t.prototype.concat = function(e) {
3479
3483
  return t.concat(this, e);
3480
3484
  }, t.prototype.request = function(e, r) {
@@ -3493,7 +3497,7 @@ var Yr = (
3493
3497
  function Qo(t) {
3494
3498
  return new Yr(function(e, r) {
3495
3499
  var n = _o(e, []);
3496
- return new z(function(o) {
3500
+ return new D(function(o) {
3497
3501
  var i, a = !1;
3498
3502
  return Promise.resolve(n).then(function(c) {
3499
3503
  return t(c, e.getContext());
@@ -3512,7 +3516,7 @@ function Qo(t) {
3512
3516
  const Xo = async () => {
3513
3517
  const t = "https://auth.australia-southeast1.gcp.commercetools.com/oauth/token", n = "Basic " + btoa(encodeURIComponent("tfegsSBVOYnR7e_yE-AjxVVN") + ":" + encodeURIComponent("pyKWgHuTxuMwDygh9JH1ehLEaLvAhBo4"));
3514
3518
  try {
3515
- const o = await D.post(
3519
+ const o = await z.post(
3516
3520
  t,
3517
3521
  new URLSearchParams({ grant_type: "client_credentials" }),
3518
3522
  // Only grant_type in body
@@ -3525,7 +3529,7 @@ const Xo = async () => {
3525
3529
  );
3526
3530
  return o.status === 200 && o.data.access_token ? o.data.access_token : (console.error("Failed to fetch token:", o.data), null);
3527
3531
  } catch (o) {
3528
- return D.isAxiosError(o) ? console.error("Error fetching token:", o.response || o.message) : console.error("Unexpected error:", o), null;
3532
+ return z.isAxiosError(o) ? console.error("Error fetching token:", o.response || o.message) : console.error("Unexpected error:", o), null;
3529
3533
  }
3530
3534
  }, Zo = "https://api.australia-southeast1.gcp.commercetools.com/kt-demo/graphql", ti = Xr({
3531
3535
  uri: `${Zo}`