tanya-chatbot 0.8.2 → 0.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,28 +1,28 @@
1
- import Vr, { useEffect as Ce, useState as C, useRef as Be, forwardRef as Tn, createElement as fr, useMemo as Jr } from "react";
2
- import { jsx as a, jsxs as d, Fragment as Ne } from "react/jsx-runtime";
3
- import { createHttpLink as Lo, ApolloClient as Do, InMemoryCache as zo, ApolloProvider as Mo } from "@apollo/client";
4
- import { Provider as Bo, useDispatch as En, useSelector as Wt } from "react-redux";
5
- import { createSlice as On, configureStore as Uo } from "@reduxjs/toolkit";
6
- import * as An from "@radix-ui/react-popover";
1
+ import { useEffect as Ce, useState as C, useRef as Ve, forwardRef as Pn, createElement as fr, useMemo as Vr } from "react";
2
+ import { jsx as a, jsxs as c, Fragment as Se } from "react/jsx-runtime";
3
+ import { createHttpLink as $o, ApolloClient as Lo, InMemoryCache as Do, ApolloProvider as zo } from "@apollo/client";
4
+ import { Provider as Mo, useDispatch as Tn, useSelector as Wt } from "react-redux";
5
+ import { createSlice as En, configureStore as Bo } from "@reduxjs/toolkit";
6
+ import * as On from "@radix-ui/react-popover";
7
7
  import "clsx";
8
8
  import "tailwind-merge";
9
9
  import ve from "axios";
10
10
  import "crypto-js";
11
- import { Icon as qo } from "@iconify/react";
12
- import { toast as Ue } from "react-toastify";
13
- import { createPortal as Ro } from "react-dom";
14
- const Ho = '*,: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}.visible{visibility:visible}.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}.m-\\[15px\\]{margin:15px}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.mx-auto{margin-left:auto;margin-right:auto}.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-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.mr-2{margin-right:.5rem}.mr-6{margin-right:1.5rem}.mt-0\\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-12{height:3rem}.h-20{height:5rem}.h-28{height:7rem}.h-3{height:.75rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-\\[120px\\]{height:120px}.h-\\[150px\\]{height:150px}.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-3\\/4{width:75%}.w-5\\/6{width:83.333333%}.w-6{width:1.5rem}.w-72{width:18rem}.w-8{width:2rem}.w-\\[100vw\\]{width:100vw}.w-\\[120px\\]{width:120px}.w-\\[150px\\]{width:150px}.w-\\[60px\\]{width:60px}.w-\\[64\\.7vw\\]{width:64.7vw}.w-\\[96\\%\\]{width:96%}.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%}.max-w-\\[90\\%\\]{max-width:90%}.max-w-md{max-width:28rem}.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-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.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}.gap-y-2{row-gap:.5rem}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.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-sm{border-radius:calc(var(--radius) - 4px)}.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-bl-xl{border-bottom-left-radius:.75rem}.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-2{border-width:2px}.border-b-2{border-bottom-width:2px}.border-l-2{border-left-width:2px}.border-t{border-top-width:1px}.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-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-green-200{--tw-border-opacity: 1;border-color:rgb(187 247 208 / 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-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}.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))}.bg-white\\/70{background-color:#ffffffb3}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-0\\.5{padding:.125rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-\\[1px\\]{padding:1px}.px-1{padding-left:.25rem;padding-right:.25rem}.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-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.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-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-5{padding-bottom:1.25rem}.pb-6{padding-bottom:1.5rem}.pl-2{padding-left:.5rem}.pr-5{padding-right:1.25rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.font-nunitoSans{font-family:Nunito Sans}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\\[11px\\]{font-size:11px}.text-\\[12px\\]{font-size:12px}.text-\\[14px\\]{font-size:14px}.text-\\[15px\\]{font-size:15px}.text-\\[16px\\]{font-size:16px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm,.text-sm\\/5{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-relaxed{line-height:1.625}.leading-snug{line-height:1.375}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.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-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / 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-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}.text-green-900{--tw-text-opacity: 1;color:rgb(20 83 45 / var(--tw-text-opacity, 1))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.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))}.underline{text-decoration-line:underline}.line-through{text-decoration-line:line-through}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-80{opacity:.8}.opacity-95{opacity:.95}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px 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_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-inner{--tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / .05);--tw-shadow-colored: inset 0 2px 4px 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-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}.drop-shadow-xl{--tw-drop-shadow: drop-shadow(0 20px 13px rgb(0 0 0 / .03)) drop-shadow(0 8px 5px rgb(0 0 0 / .08));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)}.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{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.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-150{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-150{animation-duration:.15s}.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}}.placeholder\\:text-red-400::-moz-placeholder{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.placeholder\\:text-red-400::placeholder{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.hover\\:-translate-y-0\\.5:hover{--tw-translate-y: -.125rem;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\\: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\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.hover\\:text-\\[\\#6952C7\\]:hover{--tw-text-opacity: 1;color:rgb(105 82 199 / var(--tw-text-opacity, 1))}.hover\\:opacity-90:hover{opacity:.9}.hover\\:shadow-lg:hover{--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)}.hover\\:shadow-sm:hover{--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)}.focus\\:border-transparent:focus{border-color:transparent}.focus\\:ring-0:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity, 1))}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.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\\:col-span-10{grid-column:span 10 / span 10}.sm\\:col-span-2{grid-column:span 2 / span 2}.sm\\:mx-0{margin-left:0;margin-right:0}.sm\\:w-\\[80vw\\]{width:80vw}.sm\\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\\:flex-row{flex-direction:row}.sm\\:items-center{align-items:center}.sm\\:justify-start{justify-content:flex-start}}@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\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.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}}';
15
- function ci() {
11
+ import { Icon as Uo } from "@iconify/react";
12
+ import { toast as Be } from "react-toastify";
13
+ import { createPortal as qo } from "react-dom";
14
+ const Ro = '*,: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}.visible{visibility:visible}.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}.m-\\[15px\\]{margin:15px}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.mx-auto{margin-left:auto;margin-right:auto}.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-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.mr-2{margin-right:.5rem}.mr-6{margin-right:1.5rem}.mt-0\\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-12{height:3rem}.h-20{height:5rem}.h-28{height:7rem}.h-3{height:.75rem}.h-6{height:1.5rem}.h-9{height:2.25rem}.h-\\[120px\\]{height:120px}.h-\\[150px\\]{height:150px}.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-12{width:3rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\\/4{width:75%}.w-5\\/6{width:83.333333%}.w-6{width:1.5rem}.w-72{width:18rem}.w-9{width:2.25rem}.w-\\[100vw\\]{width:100vw}.w-\\[120px\\]{width:120px}.w-\\[150px\\]{width:150px}.w-\\[60px\\]{width:60px}.w-\\[64\\.7vw\\]{width:64.7vw}.w-\\[96\\%\\]{width:96%}.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%}.max-w-\\[90\\%\\]{max-width:90%}.max-w-md{max-width:28rem}.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-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.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}.gap-y-2{row-gap:.5rem}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.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-bl-xl{border-bottom-left-radius:.75rem}.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-2{border-width:2px}.border-b-2{border-bottom-width:2px}.border-l-2{border-left-width:2px}.border-t{border-top-width:1px}.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-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-green-200{--tw-border-opacity: 1;border-color:rgb(187 247 208 / 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-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}.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))}.bg-white\\/70{background-color:#ffffffb3}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-0\\.5{padding:.125rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-\\[1px\\]{padding:1px}.px-1{padding-left:.25rem;padding-right:.25rem}.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-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.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-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-5{padding-bottom:1.25rem}.pb-6{padding-bottom:1.5rem}.pl-2{padding-left:.5rem}.pr-5{padding-right:1.25rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.font-nunitoSans{font-family:Nunito Sans}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\\[11px\\]{font-size:11px}.text-\\[12px\\]{font-size:12px}.text-\\[14px\\]{font-size:14px}.text-\\[15px\\]{font-size:15px}.text-\\[16px\\]{font-size:16px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm,.text-sm\\/5{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-relaxed{line-height:1.625}.leading-snug{line-height:1.375}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.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-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / 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-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}.text-green-900{--tw-text-opacity: 1;color:rgb(20 83 45 / var(--tw-text-opacity, 1))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.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))}.underline{text-decoration-line:underline}.line-through{text-decoration-line:line-through}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-80{opacity:.8}.opacity-95{opacity:.95}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px 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_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-inner{--tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / .05);--tw-shadow-colored: inset 0 2px 4px 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-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}.drop-shadow-xl{--tw-drop-shadow: drop-shadow(0 20px 13px rgb(0 0 0 / .03)) drop-shadow(0 8px 5px rgb(0 0 0 / .08));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)}.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{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.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-150{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-150{animation-duration:.15s}.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}}.placeholder\\:text-red-400::-moz-placeholder{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.placeholder\\:text-red-400::placeholder{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.hover\\:-translate-y-0\\.5:hover{--tw-translate-y: -.125rem;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\\: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\\:border-gray-500:hover{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.hover\\:text-\\[\\#6952C7\\]:hover{--tw-text-opacity: 1;color:rgb(105 82 199 / var(--tw-text-opacity, 1))}.hover\\:opacity-90:hover{opacity:.9}.hover\\:shadow-lg:hover{--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)}.hover\\:shadow-sm:hover{--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)}.focus\\:border-transparent:focus{border-color:transparent}.focus\\:ring-0:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity, 1))}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.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\\:col-span-10{grid-column:span 10 / span 10}.sm\\:col-span-2{grid-column:span 2 / span 2}.sm\\:mx-0{margin-left:0;margin-right:0}.sm\\:w-\\[80vw\\]{width:80vw}.sm\\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\\:flex-row{flex-direction:row}.sm\\:items-center{align-items:center}.sm\\:justify-start{justify-content:flex-start}}@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\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.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}}';
15
+ function li() {
16
16
  return Ce(() => {
17
17
  if (typeof document < "u") {
18
18
  const e = document.createElement("style");
19
- return e.textContent = Ho, document.head.appendChild(e), () => {
19
+ return e.textContent = Ro, document.head.appendChild(e), () => {
20
20
  document.head.removeChild(e);
21
21
  };
22
22
  }
23
23
  }, []), null;
24
24
  }
25
- const Yo = {
25
+ const Ho = {
26
26
  store: {
27
27
  storeCode: "",
28
28
  storeName: "",
@@ -56,30 +56,30 @@ const Yo = {
56
56
  mobile: []
57
57
  }
58
58
  }
59
- }, jn = On({
59
+ }, An = En({
60
60
  name: "store",
61
- initialState: Yo,
61
+ initialState: Ho,
62
62
  reducers: {
63
63
  setStore: (e, t) => {
64
64
  e.store = t.payload;
65
65
  }
66
66
  }
67
- }), { setStore: di } = jn.actions, Vo = jn.reducer, Jo = {
67
+ }), { setStore: ci } = An.actions, Yo = An.reducer, Vo = {
68
68
  product: null
69
- }, $n = On({
69
+ }, jn = En({
70
70
  name: "product",
71
- initialState: Jo,
71
+ initialState: Vo,
72
72
  reducers: {
73
73
  setProduct: (e, t) => {
74
74
  e.product = t.payload;
75
75
  }
76
76
  }
77
- }), { setProduct: mr } = $n.actions, Ko = $n.reducer, Wo = Uo({
77
+ }), { setProduct: mr } = jn.actions, Jo = jn.reducer, Ko = Bo({
78
78
  reducer: {
79
- store: Vo,
80
- product: Ko
79
+ store: Yo,
80
+ product: Jo
81
81
  }
82
- }), Go = ({ children: e }) => /* @__PURE__ */ a(Bo, { store: Wo, children: e }), Gt = (e) => {
82
+ }), Wo = ({ children: e }) => /* @__PURE__ */ a(Mo, { store: Ko, children: e }), Gt = (e) => {
83
83
  const t = new CustomEvent("reactCartUpdated", {
84
84
  detail: {
85
85
  cartUpdated: !0,
@@ -88,17 +88,17 @@ const Yo = {
88
88
  });
89
89
  window.dispatchEvent(t);
90
90
  };
91
- function Qo({
91
+ function Go({
92
92
  ...e
93
93
  }) {
94
- return /* @__PURE__ */ a(An.Root, { "data-slot": "popover", ...e });
94
+ return /* @__PURE__ */ a(On.Root, { "data-slot": "popover", ...e });
95
95
  }
96
- function Xo({
96
+ function Qo({
97
97
  ...e
98
98
  }) {
99
- return /* @__PURE__ */ a(An.Trigger, { "data-slot": "popover-trigger", ...e });
99
+ return /* @__PURE__ */ a(On.Trigger, { "data-slot": "popover-trigger", ...e });
100
100
  }
101
- const dt = () => ({ aiConversationUrl: "https://mdv3qwfi2j.execute-api.us-east-1.amazonaws.com/dev/api/bedrock/invoke/stream", xAPIKey: "BJBtjpPkqGatuoa3qJqdR8aHXSsHkgvGaootbubi", serverUrl: "https://tanya-sfcc-server.vercel.app/", basePath: "sc-api" }), Ln = async () => {
101
+ const dt = () => ({ aiConversationUrl: "https://mdv3qwfi2j.execute-api.us-east-1.amazonaws.com/dev/api/bedrock/invoke/stream", xAPIKey: "BJBtjpPkqGatuoa3qJqdR8aHXSsHkgvGaootbubi", serverUrl: "https://tanya-sfcc-server.vercel.app/", basePath: "sc-api" }), $n = async () => {
102
102
  const e = "https://tanya-sfcc-server.vercel.app/";
103
103
  try {
104
104
  const t = await ve.post(
@@ -108,7 +108,7 @@ const dt = () => ({ aiConversationUrl: "https://mdv3qwfi2j.execute-api.us-east-1
108
108
  } catch (t) {
109
109
  return ve.isAxiosError(t) ? console.error("Error fetching token:", t.response || t.message) : console.error("Unexpected error:", t), null;
110
110
  }
111
- }, Dn = async (e) => {
111
+ }, Ln = async (e) => {
112
112
  const t = "https://tanya-sfcc-server.vercel.app/";
113
113
  try {
114
114
  const r = JSON.parse(sessionStorage.getItem("customerData") || "{}").dwsid, n = await ve.post(
@@ -126,7 +126,7 @@ const dt = () => ({ aiConversationUrl: "https://mdv3qwfi2j.execute-api.us-east-1
126
126
  return ve.isAxiosError(r) ? console.error("Error creating basket:", r.response || r.message) : console.error("Unexpected error:", r), null;
127
127
  }
128
128
  };
129
- async function xt() {
129
+ async function bt() {
130
130
  var s;
131
131
  const e = Ke(), t = "access_token_" + e, r = "expires_in_" + e, n = localStorage.getItem(r), o = localStorage.getItem(t);
132
132
  return console.log(o), (s = JSON.parse(sessionStorage.getItem("customerData") || "{}")) != null && s.isGuest, console.log("access token found in local storage"), { access_token: o, expires_in: n };
@@ -156,12 +156,12 @@ const hr = async (e, t) => {
156
156
  } catch (r) {
157
157
  return console.error("Error obtaining JWT token:", r), e = null, t = null, null;
158
158
  }
159
- }, nt = () => sessionStorage.getItem("Host"), Ke = () => sessionStorage.getItem("SiteId"), ut = () => sessionStorage.getItem("pubCfg"), ft = () => sessionStorage.getItem("envRef"), mt = () => sessionStorage.getItem("orgRef"), Zo = async (e) => {
159
+ }, nt = () => sessionStorage.getItem("Host"), Ke = () => sessionStorage.getItem("SiteId"), ut = () => sessionStorage.getItem("pubCfg"), ft = () => sessionStorage.getItem("envRef"), mt = () => sessionStorage.getItem("orgRef"), Xo = async (e) => {
160
160
  console.log("fetching results");
161
161
  const { serverUrl: t, basePath: r } = dt();
162
162
  let n = "";
163
163
  {
164
- const o = await xt();
164
+ const o = await bt();
165
165
  console.log("the token from getSearchResults", o), n = o.access_token;
166
166
  }
167
167
  try {
@@ -178,11 +178,11 @@ const hr = async (e, t) => {
178
178
  } catch (o) {
179
179
  throw console.error("Error fetching search results:", o), o;
180
180
  }
181
- }, zn = async (e) => {
181
+ }, Dn = async (e) => {
182
182
  if (!e) throw new Error("Product ID is required");
183
183
  const { serverUrl: t, basePath: r } = dt(), n = nt();
184
184
  console.log("calling access");
185
- const { access_token: o } = await xt();
185
+ const { access_token: o } = await bt();
186
186
  return (await ve.get(
187
187
  `${t}${r}/product-sfcc/${e}?baseUrl=${n}&siteId=${Ke()}&pubCfg=${ut()}&envRef=${ft()}&orgRef=${mt()}`,
188
188
  {
@@ -192,11 +192,11 @@ const hr = async (e, t) => {
192
192
  }
193
193
  }
194
194
  )).data;
195
- }, ea = async (e) => {
195
+ }, Zo = async (e) => {
196
196
  if (!e) throw new Error("customerId is required");
197
- const t = await Ln(), { customer_token: r } = await Dn(
197
+ const t = await $n(), { customer_token: r } = await Ln(
198
198
  t
199
- ), { serverUrl: n, basePath: o } = dt(), i = (await xt()).access_token;
199
+ ), { serverUrl: n, basePath: o } = dt(), i = (await bt()).access_token;
200
200
  return (await ve.get(
201
201
  `${n}${o}/get-interest?baseUrl=${nt()}&customerId=${e}&siteId=${Ke()}&pubCfg=${ut()}&envRef=${ft()}&orgRef=${mt()}`,
202
202
  {
@@ -206,10 +206,10 @@ const hr = async (e, t) => {
206
206
  }
207
207
  }
208
208
  )).data;
209
- }, Kr = (e) => String(typeof e == "string" ? e : e["en-US"] || e), Wr = (e) => e != null && e.image ? [e.image] : "variants" in e ? e.variants[0].images : e.masterVariant.images.map((t) => t.url), ta = (e, t) => e.toLocaleString("en-US", {
209
+ }, Jr = (e) => String(typeof e == "string" ? e : e["en-US"] || e), Kr = (e) => e != null && e.image ? [e.image] : "variants" in e ? e.variants[0].images : e.masterVariant.images.map((t) => t.url), ea = (e, t) => e.toLocaleString("en-US", {
210
210
  style: "currency",
211
211
  currency: t || "USD"
212
- }), Gr = (e) => {
212
+ }), Wr = (e) => {
213
213
  var t, r, n;
214
214
  return "variants" in e ? {
215
215
  centAmount: (t = e.variants[0]) == null ? void 0 : t.prices.EUR.max,
@@ -218,21 +218,21 @@ const hr = async (e, t) => {
218
218
  centAmount: (r = e.masterVariant) == null ? void 0 : r.prices[0].value.centAmount,
219
219
  currencyCode: (n = e.masterVariant) == null ? void 0 : n.prices[0].value.currencyCode
220
220
  };
221
- }, ra = (e) => e.charAt(0).toUpperCase() + e.slice(1), Qr = (e, t) => e.length < t ? e : e.slice(0, t) + "...", ar = (e) => e.split("\\n").map((t, r) => {
221
+ }, ta = (e) => e.charAt(0).toUpperCase() + e.slice(1), Gr = (e, t) => e.length < t ? e : e.slice(0, t) + "...", ar = (e) => e.split("\\n").map((t, r) => {
222
222
  const n = t.match(/^(\d+)\.\s(.+)/);
223
223
  return n ? `<p key=${r} class="mb-2"><strong>${n[1]}.</strong> ${n[2]}</p>` : t.trim() ? `<p key=${r} class="mb-2">${t}</p>` : "<br/>";
224
224
  }).join("");
225
- function na() {
225
+ function ra() {
226
226
  const e = () => window.innerWidth < 425 ? 1 : window.innerWidth < 768 ? 2 : 4, [t, r] = C(e);
227
227
  return Ce(() => {
228
228
  const n = () => r(e());
229
229
  return window.addEventListener("resize", n), () => window.removeEventListener("resize", n);
230
230
  }, []), t;
231
231
  }
232
- const oa = ({
232
+ const na = ({
233
233
  product: e
234
234
  }) => {
235
- const t = En(), r = na(), [n, o] = C(0), s = () => {
235
+ const t = Tn(), r = ra(), [n, o] = C(0), s = () => {
236
236
  o(
237
237
  (l) => l + r >= e.length ? 0 : l + r
238
238
  );
@@ -240,11 +240,11 @@ const oa = ({
240
240
  o(
241
241
  (l) => l - r < 0 ? e.length - (e.length % r || r) : l - r
242
242
  );
243
- }, c = async (l) => {
244
- const p = await zn(l);
243
+ }, d = async (l) => {
244
+ const p = await Dn(l);
245
245
  t(mr(p));
246
246
  };
247
- return /* @__PURE__ */ a("div", { className: "mt-2 overflow-x-hidden", children: /* @__PURE__ */ d("div", { className: "flex items-center justify-center gap-4 relative", children: [
247
+ return /* @__PURE__ */ a("div", { className: "mt-2 overflow-x-hidden", children: /* @__PURE__ */ c("div", { className: "flex items-center justify-center gap-4 relative", children: [
248
248
  (e == null ? void 0 : e.length) > r && /* @__PURE__ */ a(
249
249
  "button",
250
250
  {
@@ -259,32 +259,32 @@ const oa = ({
259
259
  }
260
260
  ),
261
261
  /* @__PURE__ */ a("div", { className: "flex gap-5 justify-center flex-1 overflow-hidden", children: e.slice(n, n + r).map((l) => {
262
- var p, g, b, y;
263
- return /* @__PURE__ */ d(
262
+ var p, g, x, y;
263
+ return /* @__PURE__ */ c(
264
264
  "div",
265
265
  {
266
266
  className: "flex-shrink-0 flex flex-col w-[150px] h-[200px] p-2 items-center justify-between cursor-pointer bg-[#FFFFFF] rounded-[10px] shadow-[0px_2px_2px_0px_#9292BC40]",
267
267
  onClick: () => {
268
- c(l.product_id ?? l.productId);
268
+ d(l.product_id ?? l.productId);
269
269
  },
270
270
  children: [
271
271
  /* @__PURE__ */ a("div", { className: "w-full p-2 flex items-center justify-center bg-white", children: /* @__PURE__ */ a(
272
272
  "img",
273
273
  {
274
- src: ((p = Wr(l)[0]) == null ? void 0 : p.link) || Wr(l)[0] || // fallback if it's a string
274
+ src: ((p = Kr(l)[0]) == null ? void 0 : p.link) || Kr(l)[0] || // fallback if it's a string
275
275
  "https://via.placeholder.com/120",
276
276
  alt: l != null && l.productName ? l.productName : "Product",
277
277
  className: "w-28 h-28 rounded-[10px] transition-transform duration-300 hover:scale-125 object-cover"
278
278
  }
279
279
  ) }),
280
- /* @__PURE__ */ d(
280
+ /* @__PURE__ */ c(
281
281
  "div",
282
282
  {
283
283
  className: "text-white w-full p-2 text-[12px] text-center h-[60px]",
284
284
  children: [
285
- /* @__PURE__ */ d("div", { className: "relative inline-block group", children: [
286
- /* @__PURE__ */ a("div", { className: "w-full line-clamp-1 overflow-hidden text-ellipsis text-[#000000] font-medium font-nunitoSans", children: l != null && l.productName ? l.productName : l != null && l.product_name ? l.product_name : Qr(
287
- Kr((g = l == null ? void 0 : l.name) == null ? void 0 : g["en-US"]),
285
+ /* @__PURE__ */ c("div", { className: "relative inline-block group", children: [
286
+ /* @__PURE__ */ a("div", { className: "w-full line-clamp-1 overflow-hidden text-ellipsis text-[#000000] font-medium font-nunitoSans", children: l != null && l.productName ? l.productName : l != null && l.product_name ? l.product_name : Gr(
287
+ Jr((g = l == null ? void 0 : l.name) == null ? void 0 : g["en-US"]),
288
288
  60
289
289
  ) || "Product" }),
290
290
  /* @__PURE__ */ a(
@@ -298,19 +298,19 @@ const oa = ({
298
298
  marginBottom: "5px",
299
299
  zIndex: 50
300
300
  },
301
- children: l != null && l.productName ? l.productName : l != null && l.product_name ? l.product_name : Qr(
302
- Kr((b = l == null ? void 0 : l.name) == null ? void 0 : b["en-US"]),
301
+ children: l != null && l.productName ? l.productName : l != null && l.product_name ? l.product_name : Gr(
302
+ Jr((x = l == null ? void 0 : l.name) == null ? void 0 : x["en-US"]),
303
303
  60
304
304
  ) || "Product"
305
305
  }
306
306
  )
307
307
  ] }),
308
- /* @__PURE__ */ d("div", { className: " flex text-center items-center gap-2 text-[14px] text-[#14121F] font-bold font-nunitoSans text-base mb-1", children: [
309
- /* @__PURE__ */ a("p", { children: ta(
310
- l != null && l.price ? Number(l == null ? void 0 : l.price) : Gr(l).centAmount || 0,
311
- (y = Gr(l)) == null ? void 0 : y.currencyCode
308
+ /* @__PURE__ */ c("div", { className: " flex text-center items-center gap-2 text-[14px] text-[#14121F] font-bold font-nunitoSans text-base mb-1", children: [
309
+ /* @__PURE__ */ a("p", { children: ea(
310
+ l != null && l.price ? Number(l == null ? void 0 : l.price) : Wr(l).centAmount || 0,
311
+ (y = Wr(l)) == null ? void 0 : y.currencyCode
312
312
  ) }),
313
- /* @__PURE__ */ d("p", { className: "text-[#14121F] font-normal line-through text-sm font-nunitoSans truncate", children: [
313
+ /* @__PURE__ */ c("p", { className: "text-[#14121F] font-normal line-through text-sm font-nunitoSans truncate", children: [
314
314
  "$",
315
315
  Number(l == null ? void 0 : l.price).toFixed(2) ?? 5
316
316
  ] })
@@ -337,7 +337,7 @@ const oa = ({
337
337
  }
338
338
  )
339
339
  ] }) });
340
- }, aa = ({ chat: e, storeDetails: t }) => /* @__PURE__ */ a("div", { className: "bg-[#FFFFFF] px-7 py-4 rounded-r-xl rounded-bl-2xl w-full", children: e.map((r, n) => /* @__PURE__ */ d(
340
+ }, oa = ({ chat: e, storeDetails: t }) => /* @__PURE__ */ a("div", { className: "bg-[#FFFFFF] px-7 py-4 rounded-r-xl rounded-bl-2xl w-full", children: e.map((r, n) => /* @__PURE__ */ c(
341
341
  "div",
342
342
  {
343
343
  className: "mb-4 p-3 rounded-xl",
@@ -350,11 +350,11 @@ const oa = ({
350
350
  "div",
351
351
  {
352
352
  className: "font-nunitoSans font-bold text-sm text-[#494949] p-2 w-fit rounded-[20px]",
353
- children: ra(r.keyword) || "No keyword"
353
+ children: ta(r.keyword) || "No keyword"
354
354
  }
355
355
  ),
356
356
  /* @__PURE__ */ a(
357
- oa,
357
+ na,
358
358
  {
359
359
  product: r.items,
360
360
  storeDetails: t
@@ -363,11 +363,11 @@ const oa = ({
363
363
  ]
364
364
  },
365
365
  n
366
- )) }), Mn = async (e, t) => {
366
+ )) }), zn = async (e, t) => {
367
367
  var s, i;
368
368
  const { serverUrl: r, basePath: n } = dt(), o = `${r}`;
369
369
  try {
370
- const c = await ve.post(
370
+ const d = await ve.post(
371
371
  `${o}${n}/basket/create?baseUrl=${nt()}&siteId=${Ke()}&pubCfg=${ut()}&envRef=${ft()}&orgRef=${mt()}`,
372
372
  t,
373
373
  {
@@ -380,12 +380,12 @@ const oa = ({
380
380
  return window.postMessage(
381
381
  {
382
382
  type: "WIDGET_CREATED_BASKET",
383
- basketId: ((s = c.data) == null ? void 0 : s.basket_id) || ((i = c.data) == null ? void 0 : i.basketId)
383
+ basketId: ((s = d.data) == null ? void 0 : s.basket_id) || ((i = d.data) == null ? void 0 : i.basketId)
384
384
  },
385
385
  "*"
386
- ), c.data;
387
- } catch (c) {
388
- return ve.isAxiosError(c) ? console.error("Error creating basket:", c.response || c.message) : console.error("Unexpected error:", c), null;
386
+ ), d.data;
387
+ } catch (d) {
388
+ return ve.isAxiosError(d) ? console.error("Error creating basket:", d.response || d.message) : console.error("Unexpected error:", d), null;
389
389
  }
390
390
  }, pr = async (e, t, r) => {
391
391
  const { serverUrl: n, basePath: o } = dt(), s = `${n}`;
@@ -407,7 +407,7 @@ const oa = ({
407
407
  i.response || i.message
408
408
  ) : console.error("Unexpected error:", i), null;
409
409
  }
410
- }, Bn = async ({
410
+ }, Mn = async ({
411
411
  basketId: e,
412
412
  customer_token: t
413
413
  }) => {
@@ -427,7 +427,7 @@ const oa = ({
427
427
  } catch (i) {
428
428
  return ve.isAxiosError(i) ? { status: (s = i.response) == null ? void 0 : s.status, data: null } : { status: null, data: null };
429
429
  }
430
- }, Qt = "sfcc_basket_id", Xr = "sfcc_customer_token", Ot = "sfcc_token_expiry", sa = 300 * 1e3, Bt = "1.0.0";
430
+ }, Qt = "sfcc_basket_id", Qr = "sfcc_customer_token", Ot = "sfcc_token_expiry", aa = 300 * 1e3, Bt = "1.0.0";
431
431
  const ct = (e) => {
432
432
  try {
433
433
  e ? localStorage.setItem(Qt, e) : localStorage.removeItem(Qt);
@@ -437,25 +437,25 @@ const ct = (e) => {
437
437
  }, Xt = (e) => {
438
438
  try {
439
439
  if (e) {
440
- localStorage.setItem(Xr, e);
441
- const t = Date.now() + sa;
440
+ localStorage.setItem(Qr, e);
441
+ const t = Date.now() + aa;
442
442
  localStorage.setItem(Ot, t.toString());
443
443
  } else
444
- localStorage.removeItem(Xr);
444
+ localStorage.removeItem(Qr);
445
445
  } catch (t) {
446
446
  console.error("Error storing token:", t);
447
447
  }
448
- }, Zr = 300, ia = ({ addToCartPwa: e }) => {
449
- var l, p, g, b, y, _;
450
- const t = En(), r = Wt((N) => N.product.product), n = Wt((N) => N.store.store), [o, s] = C(!!r);
448
+ }, Xr = 300, sa = ({ addToCartPwa: e }) => {
449
+ var l, p, g, x, y, _;
450
+ const t = Tn(), r = Wt((S) => S.product.product), n = Wt((S) => S.store.store), [o, s] = C(!!r);
451
451
  if (Ce(() => {
452
452
  s(!!r);
453
453
  }, [r]), !r) return null;
454
454
  const i = async () => {
455
- var N, T, k, I, K, U, w, Fe, E, W, fe, ke, ne, Pe, Se, ye;
455
+ var S, T, k, I, K, U, w, Fe, E, W, fe, ke, ne, Pe, Ne, ye;
456
456
  try {
457
- if (!((T = (N = r == null ? void 0 : r.variants) == null ? void 0 : N[0]) != null && T.product_id) && !(r.type.item || r.type.bundle) && !((I = (k = r == null ? void 0 : r.variants) == null ? void 0 : k[0]) != null && I.productId)) {
458
- Ue.error("Variants not available", {
457
+ if (!((T = (S = r == null ? void 0 : r.variants) == null ? void 0 : S[0]) != null && T.product_id) && !(r.type.item || r.type.bundle) && !((I = (k = r == null ? void 0 : r.variants) == null ? void 0 : k[0]) != null && I.productId)) {
458
+ Be.error("Variants not available", {
459
459
  position: "bottom-right",
460
460
  autoClose: 1e3
461
461
  }), console.error("No product variant found");
@@ -471,23 +471,23 @@ const ct = (e) => {
471
471
  ), me = (j == null ? void 0 : j.basketId) || localStorage.getItem(Qt), G = !1, We = localStorage.getItem(Ot), Ge = Date.now();
472
472
  if (!G || !We || Ge >= parseInt(We)) {
473
473
  let Z = "";
474
- if (Z = "Bearer " + (await xt()).access_token, !Z) {
474
+ if (Z = "Bearer " + (await bt()).access_token, !Z) {
475
475
  console.error("Failed to get customer_token");
476
476
  return;
477
477
  }
478
478
  const ht = Ge + 300 * 1e3;
479
479
  if (Xt(Z), localStorage.setItem(Ot, ht.toString()), me) {
480
- const xe = await Bn({
480
+ const be = await Mn({
481
481
  basketId: me,
482
482
  customer_token: Z
483
483
  });
484
- if (xe.status === 200 && xe) {
484
+ if (be.status === 200 && be) {
485
485
  const Te = await pr(
486
486
  me,
487
487
  q,
488
488
  Z
489
489
  );
490
- (((w = Te == null ? void 0 : Te.product_items) == null ? void 0 : w.length) > 0 || ((Fe = Te == null ? void 0 : Te.productItems) == null ? void 0 : Fe.length) > 0) && (Ue.success("Added to cart", {
490
+ (((w = Te == null ? void 0 : Te.product_items) == null ? void 0 : w.length) > 0 || ((Fe = Te == null ? void 0 : Te.productItems) == null ? void 0 : Fe.length) > 0) && (Be.success("Added to cart", {
491
491
  position: "bottom-right",
492
492
  autoClose: 3e3,
493
493
  hideProgressBar: !1,
@@ -498,14 +498,14 @@ const ct = (e) => {
498
498
  return;
499
499
  }
500
500
  }
501
- const bt = {
501
+ const xt = {
502
502
  productItems: [
503
503
  {
504
504
  productId: ((E = r.variants) == null ? void 0 : E[0].product_id) || ((W = r.variants) == null ? void 0 : W[0].productId) || (r == null ? void 0 : r.id),
505
505
  quantity: 1
506
506
  }
507
507
  ]
508
- }, z = await Mn(Z, bt);
508
+ }, z = await zn(Z, xt);
509
509
  if (!(z != null && z.basket_id) && !(z != null && z.basketId)) {
510
510
  console.error("Failed to create basket");
511
511
  return;
@@ -518,7 +518,7 @@ const ct = (e) => {
518
518
  q,
519
519
  Z
520
520
  );
521
- console.log("object added to basket"), (((fe = Le == null ? void 0 : Le.product_items) == null ? void 0 : fe.length) > 0 || ((ke = Le == null ? void 0 : Le.productItems) == null ? void 0 : ke.length) > 0) && Ue.success("Added to cart", {
521
+ console.log("object added to basket"), (((fe = Le == null ? void 0 : Le.product_items) == null ? void 0 : fe.length) > 0 || ((ke = Le == null ? void 0 : Le.productItems) == null ? void 0 : ke.length) > 0) && Be.success("Added to cart", {
522
522
  position: "bottom-right",
523
523
  autoClose: 3e3,
524
524
  hideProgressBar: !1,
@@ -528,31 +528,31 @@ const ct = (e) => {
528
528
  }), Gt(z.basket_id || (z == null ? void 0 : z.basketId));
529
529
  }
530
530
  } catch (q) {
531
- console.error("Error adding to cart:", q), Ue.error("Failed to add product to cart", {
531
+ console.error("Error adding to cart:", q), Be.error("Failed to add product to cart", {
532
532
  position: "bottom-right",
533
533
  autoClose: 3e3
534
534
  }), ((ne = q == null ? void 0 : q.response) == null ? void 0 : ne.status) === 404 || // Basket not found
535
- ((Pe = q == null ? void 0 : q.response) == null ? void 0 : Pe.status) === 401 ? (((Se = q == null ? void 0 : q.response) == null ? void 0 : Se.status) === 404 && ct(null), ((ye = q == null ? void 0 : q.response) == null ? void 0 : ye.status) === 401 && (ct(null), Xt(null))) : (console.error("Failed to add product to basket:", q.message), Ue.error("Failed to add product to cart", {
535
+ ((Pe = q == null ? void 0 : q.response) == null ? void 0 : Pe.status) === 401 ? (((Ne = q == null ? void 0 : q.response) == null ? void 0 : Ne.status) === 404 && ct(null), ((ye = q == null ? void 0 : q.response) == null ? void 0 : ye.status) === 401 && (ct(null), Xt(null))) : (console.error("Failed to add product to basket:", q.message), Be.error("Failed to add product to cart", {
536
536
  position: "bottom-right",
537
537
  autoClose: 3e3
538
538
  }));
539
539
  }
540
- }, c = () => {
540
+ }, d = () => {
541
541
  if (!r) return;
542
- const N = window.location.origin + "/product/" + r.id;
543
- console.log("path", N), window.location.href = N;
542
+ const S = window.location.origin + "/product/" + r.id;
543
+ console.log("path", S), window.location.href = S;
544
544
  };
545
- return console.log(r, "the prod"), /* @__PURE__ */ d(Ne, { children: [
545
+ return console.log(r, "the prod"), /* @__PURE__ */ c(Se, { children: [
546
546
  /* @__PURE__ */ a(
547
547
  "div",
548
548
  {
549
549
  className: "fixed inset-0 z-40 bg-black/30",
550
550
  onClick: () => {
551
- s(!1), setTimeout(() => t(mr(null)), Zr);
551
+ s(!1), setTimeout(() => t(mr(null)), Xr);
552
552
  }
553
553
  }
554
554
  ),
555
- /* @__PURE__ */ d(
555
+ /* @__PURE__ */ c(
556
556
  "div",
557
557
  {
558
558
  className: `
@@ -561,9 +561,9 @@ const ct = (e) => {
561
561
  ${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"}
562
562
  `,
563
563
  style: { willChange: "transform, opacity" },
564
- onClick: (N) => N.stopPropagation(),
564
+ onClick: (S) => S.stopPropagation(),
565
565
  children: [
566
- /* @__PURE__ */ d("div", { className: "mt-3 flex flex-row justify-between w-full ", children: [
566
+ /* @__PURE__ */ c("div", { className: "mt-3 flex flex-row justify-between w-full ", children: [
567
567
  /* @__PURE__ */ a("div", { children: /* @__PURE__ */ a("p", { className: "text-[#000000] font-bold font-nunitoSans", children: r.name }) }),
568
568
  /* @__PURE__ */ a("div", { children: /* @__PURE__ */ a(
569
569
  "div",
@@ -572,24 +572,24 @@ const ct = (e) => {
572
572
  onClick: () => {
573
573
  s(!1), setTimeout(
574
574
  () => t(mr(null)),
575
- Zr
575
+ Xr
576
576
  );
577
577
  },
578
578
  children: "✕"
579
579
  }
580
580
  ) })
581
581
  ] }),
582
- /* @__PURE__ */ d("div", { className: "flex flex-row gap-2 items-center flex-wrap", children: [
582
+ /* @__PURE__ */ c("div", { className: "flex flex-row gap-2 items-center flex-wrap", children: [
583
583
  /* @__PURE__ */ a("div", { className: "flex flex-row items-center justify-center w-[120px] h-[120px] my-5", children: /* @__PURE__ */ a(
584
584
  "img",
585
585
  {
586
- src: (b = (g = (p = (l = r.imageGroups) == null ? void 0 : l[0]) == null ? void 0 : p.images) == null ? void 0 : g[0]) == null ? void 0 : b.link,
586
+ src: (x = (g = (p = (l = r.imageGroups) == null ? void 0 : l[0]) == null ? void 0 : p.images) == null ? void 0 : g[0]) == null ? void 0 : x.link,
587
587
  alt: r.name,
588
588
  className: "rounded-[10px]"
589
589
  }
590
590
  ) }),
591
591
  /* @__PURE__ */ a("div", { className: "flex flex-col items-center gap-2", children: r.imageGroups.slice(1, 2).map(
592
- (N) => N.images.slice(1, 2).map((T) => /* @__PURE__ */ a(
592
+ (S) => S.images.slice(1, 2).map((T) => /* @__PURE__ */ a(
593
593
  "img",
594
594
  {
595
595
  src: T.link,
@@ -600,15 +600,15 @@ const ct = (e) => {
600
600
  ))
601
601
  ) })
602
602
  ] }),
603
- /* @__PURE__ */ d("div", { className: "flex flex-row items-center justify-between w-full", children: [
604
- /* @__PURE__ */ d("div", { className: "flex flex-row items-center gap-2", children: [
605
- /* @__PURE__ */ d("p", { className: "text-[#14121F] font-bold font-nunitoSans", children: [
603
+ /* @__PURE__ */ c("div", { className: "flex flex-row items-center justify-between w-full", children: [
604
+ /* @__PURE__ */ c("div", { className: "flex flex-row items-center gap-2", children: [
605
+ /* @__PURE__ */ c("p", { className: "text-[#14121F] font-bold font-nunitoSans", children: [
606
606
  " ",
607
607
  "$",
608
608
  r.price.toFixed(2)
609
609
  ] }),
610
610
  " ",
611
- /* @__PURE__ */ d("p", { className: "text-[#14121F] font-normal line-through text-sm font-nunitoSans", children: [
611
+ /* @__PURE__ */ c("p", { className: "text-[#14121F] font-normal line-through text-sm font-nunitoSans", children: [
612
612
  " ",
613
613
  "$",
614
614
  (r.price + 5).toFixed(2)
@@ -617,7 +617,7 @@ const ct = (e) => {
617
617
  /* @__PURE__ */ a("div", { children: /* @__PURE__ */ a("p", { className: "text-[#EC5050] font-bold font-nunitoSans", children: r.discount }) })
618
618
  ] }),
619
619
  /* @__PURE__ */ a("div", { className: "mt-2 w-full border-t-2 border-gray-200" }),
620
- /* @__PURE__ */ d("div", { className: "w-full text-left", children: [
620
+ /* @__PURE__ */ c("div", { className: "w-full text-left", children: [
621
621
  /* @__PURE__ */ a("div", { className: "text-[#323135] font-bold font-nunitoSans mt-3 text-[14px]", children: "Product Details" }),
622
622
  /* @__PURE__ */ a(
623
623
  "div",
@@ -629,24 +629,24 @@ const ct = (e) => {
629
629
  }
630
630
  )
631
631
  ] }),
632
- /* @__PURE__ */ d("div", { className: "mt-4 flex flex-col gap-2 w-full p-2", children: [
633
- /* @__PURE__ */ a("div", { className: "flex flex-row items-center gap-2", children: /* @__PURE__ */ d("div", { className: "flex items-center gap-2 text-left font-nunitoSans", children: [
634
- /* @__PURE__ */ d("div", { className: "text-[#323135] font-bold", children: [
632
+ /* @__PURE__ */ c("div", { className: "mt-4 flex flex-col gap-2 w-full p-2", children: [
633
+ /* @__PURE__ */ a("div", { className: "flex flex-row items-center gap-2", children: /* @__PURE__ */ c("div", { className: "flex items-center gap-2 text-left font-nunitoSans", children: [
634
+ /* @__PURE__ */ c("div", { className: "text-[#323135] font-bold", children: [
635
635
  ((y = r == null ? void 0 : r.rating) == null ? void 0 : y.rate) || 0,
636
636
  " /",
637
637
  " ",
638
638
  /* @__PURE__ */ a("span", { className: "text-[#68656E]", children: "5" })
639
639
  ] }),
640
640
  /* @__PURE__ */ a("div", { className: "text-[#323135] font-semibold text-sm", children: "Overall Rating" }),
641
- /* @__PURE__ */ d("div", { className: "text-[#68656E] font-semibold text-sm", children: [
641
+ /* @__PURE__ */ c("div", { className: "text-[#68656E] font-semibold text-sm", children: [
642
642
  ((_ = r == null ? void 0 : r.rating) == null ? void 0 : _.count) || 0,
643
643
  " ratings"
644
644
  ] })
645
645
  ] }) }),
646
- /* @__PURE__ */ a("div", { className: "mt-2 flex flex-row items-center gap-2", children: Array.from({ length: 5 }).map((N, T) => {
646
+ /* @__PURE__ */ a("div", { className: "mt-2 flex flex-row items-center gap-2", children: Array.from({ length: 5 }).map((S, T) => {
647
647
  var k;
648
648
  return /* @__PURE__ */ a(
649
- qo,
649
+ Uo,
650
650
  {
651
651
  icon: "mdi:star",
652
652
  width: "20",
@@ -659,7 +659,7 @@ const ct = (e) => {
659
659
  );
660
660
  }) })
661
661
  ] }),
662
- /* @__PURE__ */ d(
662
+ /* @__PURE__ */ c(
663
663
  "div",
664
664
  {
665
665
  className: "flex flex-col items-center justify-between font-nunitoSans font-semibold w-5/6 text-black gap-2",
@@ -679,7 +679,7 @@ const ct = (e) => {
679
679
  {
680
680
  className: "rounded-[5px] shadow-sm text-[#FBFBFC] bg-[#6851C6] p-2 w-full text-center cursor-pointer mb-16",
681
681
  style: { backgroundColor: n.tanyaThemeColor },
682
- onClick: c,
682
+ onClick: d,
683
683
  children: "View more"
684
684
  }
685
685
  )
@@ -690,7 +690,7 @@ const ct = (e) => {
690
690
  }
691
691
  )
692
692
  ] });
693
- }, la = ({
693
+ }, ia = ({
694
694
  tanyaConfig: e,
695
695
  basketId: t,
696
696
  addToCart: r
@@ -709,14 +709,14 @@ const ct = (e) => {
709
709
  "Niece/Nephew": "his/her niece/nephew",
710
710
  "My Friends": "his/her friends",
711
711
  Others: "others"
712
- }, s = Be(null), i = Be(null), c = Be(null), l = Be(null), [p, g] = C(null);
713
- Be(null);
714
- const [b, y] = C(!1), [_, N] = C(!1), [T, k] = C(!1), [I, K] = C(!1), [U, w] = C(!1), [Fe, E] = C(!1), [W, fe] = C(""), [ke, ne] = C(""), Pe = (h) => ({
712
+ }, s = Ve(null), i = Ve(null), d = Ve(null), l = Ve(null), [p, g] = C(null);
713
+ Ve(null);
714
+ const [x, y] = C(!1), [_, S] = C(!1), [T, k] = C(!1), [I, K] = C(!1), [U, w] = C(!1), [Fe, E] = C(!1), [W, fe] = C(""), [ke, ne] = C(""), Pe = (h) => ({
715
715
  id: h.id,
716
716
  title: h.name,
717
717
  image: h.image ?? "",
718
718
  price: h.price ?? 0
719
- }), [Se, ye] = C([]), q = Be(null), j = Wt((h) => h.store.store), me = Wt((h) => h.product.product);
719
+ }), [Ne, ye] = C([]), q = Ve(null), j = Wt((h) => h.store.store), me = Wt((h) => h.product.product);
720
720
  Ce(() => {
721
721
  const h = localStorage.getItem(
722
722
  `access_token_${e.siteId}`
@@ -732,20 +732,20 @@ const ct = (e) => {
732
732
  h || ""
733
733
  );
734
734
  }, []), Ce(() => {
735
- localStorage.setItem("chatHistory", JSON.stringify(Se));
735
+ localStorage.setItem("chatHistory", JSON.stringify(Ne));
736
736
  const h = localStorage.getItem(
737
737
  `access_token_${e.siteId}`
738
738
  );
739
739
  h && localStorage.setItem(`chat-token-${e.siteId}`, h);
740
- }, [Se]);
740
+ }, [Ne]);
741
741
  const G = () => {
742
- k(!0), setTimeout(() => N(!0), 10);
742
+ k(!0), setTimeout(() => S(!0), 10);
743
743
  }, We = () => {
744
- N(!1), setTimeout(() => k(!1), 300);
744
+ S(!1), setTimeout(() => k(!1), 300);
745
745
  };
746
746
  Ce(() => {
747
- b ? G() : We();
748
- }, [b]);
747
+ x ? G() : We();
748
+ }, [x]);
749
749
  const Ge = (h) => {
750
750
  ne(o[h]);
751
751
  };
@@ -754,9 +754,9 @@ const ct = (e) => {
754
754
  top: q.current.scrollHeight,
755
755
  behavior: "smooth"
756
756
  });
757
- }, [Se, T]);
758
- const Z = null, ht = null, bt = async () => {
759
- const h = await xt();
757
+ }, [Ne, T]);
758
+ const Z = null, ht = null, xt = async () => {
759
+ const h = await bt();
760
760
  h != null && g(h);
761
761
  };
762
762
  Ce(() => {
@@ -764,7 +764,7 @@ const ct = (e) => {
764
764
  const { clientID: h, host: B, organizationID: O, shortCode: H, siteId: Y } = e;
765
765
  sessionStorage.setItem("Host", B), sessionStorage.setItem("SiteId", Y), sessionStorage.setItem("pubCfg", btoa(h)), sessionStorage.setItem("envRef", H), sessionStorage.setItem("orgRef", O);
766
766
  }
767
- bt(), console.log("scapi environment v1");
767
+ xt(), console.log("scapi environment v1");
768
768
  }, []), Ce(() => {
769
769
  t && (console.log("setting the basket id", t), ct(t));
770
770
  }, [t]);
@@ -772,7 +772,7 @@ const ct = (e) => {
772
772
  const h = JSON.parse(
773
773
  sessionStorage.getItem("customerData") || "{}"
774
774
  ).customerId;
775
- return (await ea(h || "")).c_interests;
775
+ return (await Zo(h || "")).c_interests;
776
776
  }, Le = async (h, B) => {
777
777
  console.log("in secondary flow", Bt);
778
778
  const O = await z();
@@ -818,9 +818,9 @@ const ct = (e) => {
818
818
  ie = X.pop() || "";
819
819
  for (const Oe of X)
820
820
  if (Oe.startsWith("data:")) {
821
- const S = Oe.slice(5).trim();
821
+ const N = Oe.slice(5).trim();
822
822
  try {
823
- const le = JSON.parse(S);
823
+ const le = JSON.parse(N);
824
824
  le.index === 0 && ye(
825
825
  (L) => L.map(
826
826
  (ce, De) => De === L.length - 1 ? {
@@ -842,10 +842,10 @@ const ct = (e) => {
842
842
  } catch (H) {
843
843
  console.error("Secondary flow error:", H);
844
844
  }
845
- }, xe = async (h) => {
845
+ }, be = async (h) => {
846
846
  const B = h || W.trim();
847
847
  if (B) {
848
- w(!0), fe(""), s.current = null, i.current = null, c.current = null, l.current = null, ye((O) => [
848
+ w(!0), fe(""), s.current = null, i.current = null, d.current = null, l.current = null, ye((O) => [
849
849
  ...O,
850
850
  {
851
851
  query: B,
@@ -891,14 +891,14 @@ const ct = (e) => {
891
891
  const Oe = ie.split(`
892
892
  `);
893
893
  ie = Oe.pop() || "";
894
- for (const S of Oe)
895
- if (S.startsWith("data:")) {
896
- const le = S.slice(5).trim();
894
+ for (const N of Oe)
895
+ if (N.startsWith("data:")) {
896
+ const le = N.slice(5).trim();
897
897
  try {
898
898
  const L = JSON.parse(le);
899
899
  L.index == 1 && (_e = L.data), ye(
900
900
  (ce) => ce.map(
901
- (De, qe) => qe === ce.length - 1 ? {
901
+ (De, Ue) => Ue === ce.length - 1 ? {
902
902
  ...De,
903
903
  [L.index == 0 ? "response" : L.index == 1 ? "keywords" : L.index == 2 ? "potentialQuestions" : "end"]: L.data
904
904
  } : De
@@ -927,7 +927,7 @@ const ct = (e) => {
927
927
  E(!0);
928
928
  try {
929
929
  const A = await Promise.all(
930
- B.map(($) => Zo($).catch(() => []))
930
+ B.map(($) => Xo($).catch(() => []))
931
931
  // prevent Promise.all crash
932
932
  ), Q = B.map(($, R) => ({
933
933
  keyword: $,
@@ -935,7 +935,7 @@ const ct = (e) => {
935
935
  loading: !1
936
936
  })).filter(($) => $.items.length > 0), oe = (H = (O = Q[0]) == null ? void 0 : O.items) == null ? void 0 : H[0];
937
937
  if (oe) {
938
- i.current = oe.product_id, s.current = oe.product_name, c.current = (Y = oe.image) == null ? void 0 : Y.link;
938
+ i.current = oe.product_id, s.current = oe.product_name, d.current = (Y = oe.image) == null ? void 0 : Y.link;
939
939
  const $ = typeof oe.price == "number" ? oe.price : null;
940
940
  l.current = $;
941
941
  }
@@ -947,7 +947,7 @@ const ct = (e) => {
947
947
  productSnapshot: oe ? {
948
948
  id: i.current,
949
949
  name: s.current,
950
- image: c.current,
950
+ image: d.current,
951
951
  price: l.current,
952
952
  points: 0,
953
953
  quantity: 1
@@ -969,9 +969,9 @@ const ct = (e) => {
969
969
  var O, H, Y, A, Q, oe, $, R, Ee, he, ie, _e, ee, X, Oe;
970
970
  K(!0);
971
971
  try {
972
- const S = await zn(h.id);
973
- if (!((H = (O = S == null ? void 0 : S.variants) == null ? void 0 : O[0]) != null && H.product_id || (A = (Y = S == null ? void 0 : S.variants) == null ? void 0 : Y[0]) != null && A.productId) && !(S.type.item || S.type.bundle)) {
974
- K(!1), Ue.error("Variants not found", {
972
+ const N = await Dn(h.id);
973
+ if (!((H = (O = N == null ? void 0 : N.variants) == null ? void 0 : O[0]) != null && H.product_id || (A = (Y = N == null ? void 0 : N.variants) == null ? void 0 : Y[0]) != null && A.productId) && !(N.type.item || N.type.bundle)) {
974
+ K(!1), Be.error("Variants not found", {
975
975
  position: "bottom-right",
976
976
  autoClose: 1e3
977
977
  }), console.error("No product variant found");
@@ -979,36 +979,36 @@ const ct = (e) => {
979
979
  }
980
980
  const le = [
981
981
  {
982
- product_id: ((Q = S.variants) == null ? void 0 : Q[0].product_id) || ((oe = S.variants) == null ? void 0 : oe[0].productId) || (S == null ? void 0 : S.id),
982
+ product_id: ((Q = N.variants) == null ? void 0 : Q[0].product_id) || ((oe = N.variants) == null ? void 0 : oe[0].productId) || (N == null ? void 0 : N.id),
983
983
  quantity: B
984
984
  }
985
985
  ];
986
986
  console.log(le, "product data", "app version", Bt);
987
987
  const L = JSON.parse(
988
988
  sessionStorage.getItem("customerData") || "{}"
989
- ), ce = (L == null ? void 0 : L.basketId) || localStorage.getItem(Qt), De = !1, qe = localStorage.getItem(Ot), kt = Date.now();
990
- if (!De || !qe || kt >= parseInt(qe)) {
991
- const St = await Ln();
992
- let { customer_token: Re } = await Dn(
993
- St
989
+ ), ce = (L == null ? void 0 : L.basketId) || localStorage.getItem(Qt), De = !1, Ue = localStorage.getItem(Ot), kt = Date.now();
990
+ if (!De || !Ue || kt >= parseInt(Ue)) {
991
+ const Nt = await $n();
992
+ let { customer_token: qe } = await Ln(
993
+ Nt
994
994
  );
995
- if (Re = "Bearer " + p.access_token, !Re) {
995
+ if (qe = "Bearer " + p.access_token, !qe) {
996
996
  console.error("Failed to get customer_token");
997
997
  return;
998
998
  }
999
999
  const jt = kt + 300 * 1e3;
1000
- if (Xt(Re), localStorage.setItem(Ot, jt.toString()), console.log(ce, "basketIdFromCustomer"), ce) {
1001
- const Lt = await Bn({
1000
+ if (Xt(qe), localStorage.setItem(Ot, jt.toString()), console.log(ce, "basketIdFromCustomer"), ce) {
1001
+ const Lt = await Mn({
1002
1002
  basketId: ce,
1003
- customer_token: Re
1003
+ customer_token: qe
1004
1004
  });
1005
1005
  if (Lt.status === 200 && Lt) {
1006
1006
  const Xe = await pr(
1007
1007
  ce,
1008
1008
  le,
1009
- Re
1009
+ qe
1010
1010
  );
1011
- (($ = Xe == null ? void 0 : Xe.product_items) == null ? void 0 : $.length) > 0 && (Ue.success("Added to cart", {
1011
+ (($ = Xe == null ? void 0 : Xe.product_items) == null ? void 0 : $.length) > 0 && (Be.success("Added to cart", {
1012
1012
  position: "bottom-right",
1013
1013
  autoClose: 3e3,
1014
1014
  hideProgressBar: !1,
@@ -1022,11 +1022,11 @@ const ct = (e) => {
1022
1022
  const $t = {
1023
1023
  productItems: [
1024
1024
  {
1025
- productId: ((R = S.variants) == null ? void 0 : R[0].product_id) || ((Ee = S.variants) == null ? void 0 : Ee[0].productId) || (S == null ? void 0 : S.id),
1025
+ productId: ((R = N.variants) == null ? void 0 : R[0].product_id) || ((Ee = N.variants) == null ? void 0 : Ee[0].productId) || (N == null ? void 0 : N.id),
1026
1026
  quantity: 1
1027
1027
  }
1028
1028
  ]
1029
- }, D = await Mn(Re, $t);
1029
+ }, D = await zn(qe, $t);
1030
1030
  if (console.log(
1031
1031
  D,
1032
1032
  D == null ? void 0 : D.basket_id,
@@ -1046,7 +1046,7 @@ const ct = (e) => {
1046
1046
  },
1047
1047
  (D == null ? void 0 : D.basket_id) || (D == null ? void 0 : D.basketId)
1048
1048
  );
1049
- (((he = Qe == null ? void 0 : Qe.product_items) == null ? void 0 : he.length) > 0 || ((ie = Qe == null ? void 0 : Qe.productItems) == null ? void 0 : ie.length) > 0) && Ue.success("Added to cart", {
1049
+ (((he = Qe == null ? void 0 : Qe.product_items) == null ? void 0 : he.length) > 0 || ((ie = Qe == null ? void 0 : Qe.productItems) == null ? void 0 : ie.length) > 0) && Be.success("Added to cart", {
1050
1050
  position: "bottom-right",
1051
1051
  autoClose: 3e3,
1052
1052
  hideProgressBar: !1,
@@ -1055,12 +1055,12 @@ const ct = (e) => {
1055
1055
  draggable: !0
1056
1056
  }), Gt(D.basket_id || (D == null ? void 0 : D.basketId));
1057
1057
  }
1058
- } catch (S) {
1059
- K(!1), console.error("Error adding to cart:", S), Ue.error("Failed to add product to cart", {
1058
+ } catch (N) {
1059
+ K(!1), console.error("Error adding to cart:", N), Be.error("Failed to add product to cart", {
1060
1060
  position: "bottom-right",
1061
1061
  autoClose: 3e3
1062
- }), ((_e = S == null ? void 0 : S.response) == null ? void 0 : _e.status) === 404 || // Basket not found
1063
- ((ee = S == null ? void 0 : S.response) == null ? void 0 : ee.status) === 401 ? (((X = S == null ? void 0 : S.response) == null ? void 0 : X.status) === 404 && ct(null), ((Oe = S == null ? void 0 : S.response) == null ? void 0 : Oe.status) === 401 && (ct(null), Xt(null))) : (console.error("Failed to add product to basket:", S.message), Ue.error("Failed to add product to cart", {
1062
+ }), ((_e = N == null ? void 0 : N.response) == null ? void 0 : _e.status) === 404 || // Basket not found
1063
+ ((ee = N == null ? void 0 : N.response) == null ? void 0 : ee.status) === 401 ? (((X = N == null ? void 0 : N.response) == null ? void 0 : X.status) === 404 && ct(null), ((Oe = N == null ? void 0 : N.response) == null ? void 0 : Oe.status) === 401 && (ct(null), Xt(null))) : (console.error("Failed to add product to basket:", N.message), Be.error("Failed to add product to cart", {
1064
1064
  position: "bottom-right",
1065
1065
  autoClose: 3e3
1066
1066
  }));
@@ -1068,17 +1068,17 @@ const ct = (e) => {
1068
1068
  K(!1);
1069
1069
  };
1070
1070
  return Ce(() => {
1071
- T ? setTimeout(() => N(!0), 10) : N(!1);
1072
- }, [T]), /* @__PURE__ */ a("div", { className: "relative flex justify-center", children: /* @__PURE__ */ d(Qo, { open: b, onOpenChange: y, children: [
1071
+ T ? setTimeout(() => S(!0), 10) : S(!1);
1072
+ }, [T]), /* @__PURE__ */ a("div", { className: "relative flex justify-center", children: /* @__PURE__ */ c(Go, { open: x, onOpenChange: y, children: [
1073
1073
  /* @__PURE__ */ a(
1074
- Xo,
1074
+ Qo,
1075
1075
  {
1076
1076
  onClick: () => y(!0),
1077
1077
  style: {
1078
1078
  // background: storeDetails.tanyaThemeColor,
1079
1079
  },
1080
1080
  className: "flex items-center rounded-lg cursor-pointer hover:opacity-90 transition-opacity p-0",
1081
- children: /* @__PURE__ */ a("div", { className: "flex flex-col", children: /* @__PURE__ */ d(
1081
+ children: /* @__PURE__ */ a("div", { className: "flex flex-col", children: /* @__PURE__ */ c(
1082
1082
  "svg",
1083
1083
  {
1084
1084
  width: "40",
@@ -1087,7 +1087,7 @@ const ct = (e) => {
1087
1087
  fill: "none",
1088
1088
  xmlns: "http://www.w3.org/2000/svg",
1089
1089
  children: [
1090
- /* @__PURE__ */ d("g", { clipPath: "url(#clip0_958_585)", children: [
1090
+ /* @__PURE__ */ c("g", { clipPath: "url(#clip0_958_585)", children: [
1091
1091
  /* @__PURE__ */ a(
1092
1092
  "path",
1093
1093
  {
@@ -1110,8 +1110,8 @@ const ct = (e) => {
1110
1110
  }
1111
1111
  )
1112
1112
  ] }),
1113
- /* @__PURE__ */ d("defs", { children: [
1114
- /* @__PURE__ */ d(
1113
+ /* @__PURE__ */ c("defs", { children: [
1114
+ /* @__PURE__ */ c(
1115
1115
  "linearGradient",
1116
1116
  {
1117
1117
  id: "paint0_linear_958_585",
@@ -1133,7 +1133,7 @@ const ct = (e) => {
1133
1133
  ) })
1134
1134
  }
1135
1135
  ),
1136
- T && /* @__PURE__ */ d(Ne, { children: [
1136
+ T && /* @__PURE__ */ c(Se, { children: [
1137
1137
  /* @__PURE__ */ a(
1138
1138
  "div",
1139
1139
  {
@@ -1141,7 +1141,7 @@ const ct = (e) => {
1141
1141
  onClick: () => y(!1)
1142
1142
  }
1143
1143
  ),
1144
- /* @__PURE__ */ d(
1144
+ /* @__PURE__ */ c(
1145
1145
  "div",
1146
1146
  {
1147
1147
  className: `
@@ -1155,7 +1155,7 @@ const ct = (e) => {
1155
1155
  background: "linear-gradient(170.1deg, #FFFFFF 60.03%, #E3DEEF 99.59%)"
1156
1156
  },
1157
1157
  children: [
1158
- /* @__PURE__ */ d(
1158
+ /* @__PURE__ */ c(
1159
1159
  "div",
1160
1160
  {
1161
1161
  className: "flex justify-between p-3 bg-[#FFFFFF] border border-b-1 border-[#E5E5E5] ",
@@ -1168,8 +1168,8 @@ const ct = (e) => {
1168
1168
  alignItems: "center",
1169
1169
  gap: "0.5rem"
1170
1170
  },
1171
- children: /* @__PURE__ */ d("div", { className: "flex flex-col gap-1", children: [
1172
- /* @__PURE__ */ d(
1171
+ children: /* @__PURE__ */ c("div", { className: "flex flex-col gap-1", children: [
1172
+ /* @__PURE__ */ c(
1173
1173
  "div",
1174
1174
  {
1175
1175
  className: "flex gap-2 w-28 h-12 text-center items-center p-2 border rounded-l-[20px] rounded-tr-[20px]",
@@ -1177,7 +1177,7 @@ const ct = (e) => {
1177
1177
  background: "linear-gradient(265.62deg, #6851C6 5.24%, #8668FF 98.49%)"
1178
1178
  },
1179
1179
  children: [
1180
- /* @__PURE__ */ d(
1180
+ /* @__PURE__ */ c(
1181
1181
  "svg",
1182
1182
  {
1183
1183
  width: "20",
@@ -1201,7 +1201,7 @@ const ct = (e) => {
1201
1201
  ]
1202
1202
  }
1203
1203
  ),
1204
- /* @__PURE__ */ d(
1204
+ /* @__PURE__ */ c(
1205
1205
  "p",
1206
1206
  {
1207
1207
  className: "text-[#5B5B5B] font-nunitoSans font-semibold",
@@ -1225,7 +1225,7 @@ const ct = (e) => {
1225
1225
  gap: "1.25rem",
1226
1226
  margin: "0.75rem"
1227
1227
  },
1228
- children: /* @__PURE__ */ a("button", { onClick: () => y(!1), children: /* @__PURE__ */ d(
1228
+ children: /* @__PURE__ */ a("button", { onClick: () => y(!1), children: /* @__PURE__ */ c(
1229
1229
  "svg",
1230
1230
  {
1231
1231
  width: "24",
@@ -1234,7 +1234,7 @@ const ct = (e) => {
1234
1234
  fill: "none",
1235
1235
  xmlns: "http://www.w3.org/2000/svg",
1236
1236
  children: [
1237
- /* @__PURE__ */ d("g", { clipPath: "url(#clip0_501_6036)", children: [
1237
+ /* @__PURE__ */ c("g", { clipPath: "url(#clip0_501_6036)", children: [
1238
1238
  /* @__PURE__ */ a(
1239
1239
  "path",
1240
1240
  {
@@ -1273,19 +1273,19 @@ const ct = (e) => {
1273
1273
  ]
1274
1274
  }
1275
1275
  ),
1276
- /* @__PURE__ */ d("div", { className: "flex h-full md:flex-row lg:flex-row", children: [
1277
- /* @__PURE__ */ d(
1276
+ /* @__PURE__ */ c("div", { className: "flex h-full md:flex-row lg:flex-row", children: [
1277
+ /* @__PURE__ */ c(
1278
1278
  "div",
1279
1279
  {
1280
1280
  className: `flex flex-col h-full ${me ? "lg:w-2/3 w-full" : "w-full"}`,
1281
1281
  children: [
1282
- /* @__PURE__ */ d(
1282
+ /* @__PURE__ */ c(
1283
1283
  "div",
1284
1284
  {
1285
1285
  ref: q,
1286
1286
  className: "overflow-y-auto pr-5 pb-2 space-y-4 hide-scrollbar flex-grow mb-24",
1287
1287
  children: [
1288
- (j == null ? void 0 : j.whomRequired) && /* @__PURE__ */ d(
1288
+ (j == null ? void 0 : j.whomRequired) && /* @__PURE__ */ c(
1289
1289
  "div",
1290
1290
  {
1291
1291
  className: "mx-3 p-3 rounded-2xl bg-[#FFFFFF]",
@@ -1307,9 +1307,9 @@ const ct = (e) => {
1307
1307
  ]
1308
1308
  }
1309
1309
  ),
1310
- Se.map((h, B) => {
1310
+ Ne.map((h, B) => {
1311
1311
  var O, H;
1312
- return /* @__PURE__ */ d("div", { children: [
1312
+ return /* @__PURE__ */ c("div", { children: [
1313
1313
  /* @__PURE__ */ a(
1314
1314
  "div",
1315
1315
  {
@@ -1336,13 +1336,13 @@ const ct = (e) => {
1336
1336
  ) }),
1337
1337
  Fe && !h.response.includes("Thinking") && ((O = h.products) == null ? void 0 : O.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" }) }),
1338
1338
  (h == null ? void 0 : h.products) && ((H = h == null ? void 0 : h.products) == null ? void 0 : H.length) > 0 && /* @__PURE__ */ a(
1339
- aa,
1339
+ oa,
1340
1340
  {
1341
1341
  chat: h.products,
1342
1342
  storeDetails: j
1343
1343
  }
1344
1344
  ),
1345
- (h == null ? void 0 : h.potentialQuestions.length) > 0 && /* @__PURE__ */ d("div", { className: "my-2 px-4 text-sm text-gray-700", children: [
1345
+ (h == null ? void 0 : h.potentialQuestions.length) > 0 && /* @__PURE__ */ c("div", { className: "my-2 px-4 text-sm text-gray-700", children: [
1346
1346
  /* @__PURE__ */ a(
1347
1347
  "p",
1348
1348
  {
@@ -1355,7 +1355,7 @@ const ct = (e) => {
1355
1355
  "button",
1356
1356
  {
1357
1357
  className: `cursor-pointer font-nunitoSans font-semibold text-[#232323] border bg-[#804C9E0D] border-${j.themeDarkColor} m-1 rounded-xl px-2 py-1`,
1358
- onClick: () => xe(Y),
1358
+ onClick: () => be(Y),
1359
1359
  style: {
1360
1360
  backgroundColor: j.tanyaThemeColorLight
1361
1361
  },
@@ -1364,7 +1364,7 @@ const ct = (e) => {
1364
1364
  A
1365
1365
  ))
1366
1366
  ] }),
1367
- (h == null ? void 0 : h.secondaryLoading) && /* @__PURE__ */ a("div", { className: "mt-3 mb-4 px-4", children: /* @__PURE__ */ d(
1367
+ (h == null ? void 0 : h.secondaryLoading) && /* @__PURE__ */ a("div", { className: "mt-3 mb-4 px-4", children: /* @__PURE__ */ c(
1368
1368
  "div",
1369
1369
  {
1370
1370
  className: "tanya-surprise-wrapper bg-indigo-300 text-sm px-7 py-4 rounded-r-xl rounded-bl-2xl w-full relative overflow-hidden",
@@ -1372,7 +1372,7 @@ const ct = (e) => {
1372
1372
  margin: "0.75rem"
1373
1373
  },
1374
1374
  children: [
1375
- /* @__PURE__ */ d("div", { className: "flex gap-1", children: [
1375
+ /* @__PURE__ */ c("div", { className: "flex gap-1", children: [
1376
1376
  /* @__PURE__ */ a("div", { className: "tanya-sparkle tanya-sparkle-1", children: "✨" }),
1377
1377
  /* @__PURE__ */ a("div", { className: "tanya-sparkle tanya-sparkle-2", children: "✨" }),
1378
1378
  /* @__PURE__ */ a("div", { className: "tanya-sparkle tanya-sparkle-3", children: "✨" })
@@ -1397,7 +1397,7 @@ const ct = (e) => {
1397
1397
  ]
1398
1398
  }
1399
1399
  ) }),
1400
- (h == null ? void 0 : h.secondaryResponse) && /* @__PURE__ */ a(Ne, { children: /* @__PURE__ */ d("div", { className: "mt-3 mb-8 px-4 bg-indigo-300 rounded-tr-[5px]", children: [
1400
+ (h == null ? void 0 : h.secondaryResponse) && /* @__PURE__ */ a(Se, { children: /* @__PURE__ */ c("div", { className: "mt-3 mb-8 px-4 bg-indigo-300 rounded-tr-[5px]", children: [
1401
1401
  /* @__PURE__ */ a(
1402
1402
  "div",
1403
1403
  {
@@ -1413,7 +1413,7 @@ const ct = (e) => {
1413
1413
  }
1414
1414
  ),
1415
1415
  h.productSnapshot && // chat.productSnapshot.points > 0 &&
1416
- /* @__PURE__ */ a("div", { className: "mt-4 w-full", children: /* @__PURE__ */ d(
1416
+ /* @__PURE__ */ a("div", { className: "mt-4 w-full", children: /* @__PURE__ */ c(
1417
1417
  "div",
1418
1418
  {
1419
1419
  className: "flex gap-4 items-stretch rounded-2xl p-4",
@@ -1440,8 +1440,8 @@ const ct = (e) => {
1440
1440
  ) : /* @__PURE__ */ a("div", { className: "w-full h-full flex items-center justify-center text-xs text-gray-500", children: "No Image" })
1441
1441
  }
1442
1442
  ),
1443
- /* @__PURE__ */ d("div", { className: "flex flex-col flex-1 justify-between", children: [
1444
- /* @__PURE__ */ d("div", { children: [
1443
+ /* @__PURE__ */ c("div", { className: "flex flex-col flex-1 justify-between", children: [
1444
+ /* @__PURE__ */ c("div", { children: [
1445
1445
  /* @__PURE__ */ a("p", { className: "font-semibold text-[15px] leading-snug", children: h.productSnapshot.name }),
1446
1446
  /* @__PURE__ */ a("p", { className: "mt-1 text-[14px] font-medium", children: h.productSnapshot.price != null ? new Intl.NumberFormat(void 0, {
1447
1447
  style: "currency",
@@ -1449,18 +1449,18 @@ const ct = (e) => {
1449
1449
  }).format(
1450
1450
  h.productSnapshot.price
1451
1451
  ) : "" }),
1452
- h.productSnapshot.points > 0 && /* @__PURE__ */ d("p", { className: "mt-1 text-xs opacity-80", children: [
1452
+ h.productSnapshot.points > 0 && /* @__PURE__ */ c("p", { className: "mt-1 text-xs opacity-80", children: [
1453
1453
  "You will earn",
1454
1454
  " ",
1455
- /* @__PURE__ */ d("strong", { children: [
1455
+ /* @__PURE__ */ c("strong", { children: [
1456
1456
  h.productSnapshot.points,
1457
1457
  " ",
1458
1458
  "points"
1459
1459
  ] })
1460
1460
  ] })
1461
1461
  ] }),
1462
- /* @__PURE__ */ d("div", { className: "mt-3 flex items-center gap-3", children: [
1463
- /* @__PURE__ */ d("div", { className: "flex items-center border rounded-full overflow-hidden", children: [
1462
+ /* @__PURE__ */ c("div", { className: "mt-3 flex items-center gap-3", children: [
1463
+ /* @__PURE__ */ c("div", { className: "flex items-center border rounded-full overflow-hidden", children: [
1464
1464
  /* @__PURE__ */ a(
1465
1465
  "button",
1466
1466
  {
@@ -1550,7 +1550,7 @@ const ct = (e) => {
1550
1550
  style: {
1551
1551
  background: "linear-gradient(180deg, #B09FFF 0%, #8D79F6 100%)"
1552
1552
  },
1553
- children: /* @__PURE__ */ d("div", { className: "flex items-center bg-[#FFFFFF] flex-1 rounded-xl px-2 py-1", children: [
1553
+ children: /* @__PURE__ */ c("div", { className: "flex items-center bg-[#FFFFFF] flex-1 rounded-xl px-2 py-1", children: [
1554
1554
  /* @__PURE__ */ a(
1555
1555
  "input",
1556
1556
  {
@@ -1560,7 +1560,7 @@ const ct = (e) => {
1560
1560
  autoFocus: !0,
1561
1561
  onChange: (h) => fe(h.target.value),
1562
1562
  onKeyDown: (h) => {
1563
- h.key === "Enter" && !U && xe();
1563
+ h.key === "Enter" && !U && be();
1564
1564
  }
1565
1565
  }
1566
1566
  ),
@@ -1570,7 +1570,7 @@ const ct = (e) => {
1570
1570
  type: "submit",
1571
1571
  disabled: U,
1572
1572
  className: "p-3",
1573
- onClick: () => xe(),
1573
+ onClick: () => be(),
1574
1574
  children: U ? /* @__PURE__ */ a(
1575
1575
  "div",
1576
1576
  {
@@ -1605,7 +1605,7 @@ const ct = (e) => {
1605
1605
  ]
1606
1606
  }
1607
1607
  ),
1608
- /* @__PURE__ */ a(ia, { addToCartPwa: r })
1608
+ /* @__PURE__ */ a(sa, { addToCartPwa: r })
1609
1609
  ] })
1610
1610
  ]
1611
1611
  }
@@ -1620,7 +1620,7 @@ var gr = function(e, t) {
1620
1620
  for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (r[o] = n[o]);
1621
1621
  }, gr(e, t);
1622
1622
  };
1623
- function ca(e, t) {
1623
+ function la(e, t) {
1624
1624
  if (typeof t != "function" && t !== null)
1625
1625
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
1626
1626
  gr(e, t);
@@ -1638,7 +1638,7 @@ var rt = function() {
1638
1638
  return t;
1639
1639
  }, rt.apply(this, arguments);
1640
1640
  };
1641
- function da(e, t) {
1641
+ function ca(e, t) {
1642
1642
  var r = {};
1643
1643
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1644
1644
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -1646,28 +1646,28 @@ function da(e, t) {
1646
1646
  t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
1647
1647
  return r;
1648
1648
  }
1649
- var sr = "Invariant Violation", en = Object.setPrototypeOf, ua = en === void 0 ? function(e, t) {
1649
+ var sr = "Invariant Violation", Zr = Object.setPrototypeOf, da = Zr === void 0 ? function(e, t) {
1650
1650
  return e.__proto__ = t, e;
1651
- } : en, Un = (
1651
+ } : Zr, Bn = (
1652
1652
  /** @class */
1653
1653
  (function(e) {
1654
- ca(t, e);
1654
+ la(t, e);
1655
1655
  function t(r) {
1656
1656
  r === void 0 && (r = sr);
1657
1657
  var n = e.call(this, typeof r == "number" ? sr + ": " + r + " (see https://github.com/apollographql/invariant-packages)" : r) || this;
1658
- return n.framesToPop = 1, n.name = sr, ua(n, t.prototype), n;
1658
+ return n.framesToPop = 1, n.name = sr, da(n, t.prototype), n;
1659
1659
  }
1660
1660
  return t;
1661
1661
  })(Error)
1662
1662
  );
1663
1663
  function lt(e, t) {
1664
1664
  if (!e)
1665
- throw new Un(t);
1665
+ throw new Bn(t);
1666
1666
  }
1667
- var qn = ["debug", "log", "warn", "error", "silent"], fa = qn.indexOf("log");
1667
+ var Un = ["debug", "log", "warn", "error", "silent"], ua = Un.indexOf("log");
1668
1668
  function Ut(e) {
1669
1669
  return function() {
1670
- if (qn.indexOf(e) >= fa) {
1670
+ if (Un.indexOf(e) >= ua) {
1671
1671
  var t = console[e] || console.log;
1672
1672
  return t.apply(console, arguments);
1673
1673
  }
@@ -1676,7 +1676,7 @@ function Ut(e) {
1676
1676
  (function(e) {
1677
1677
  e.debug = Ut("debug"), e.log = Ut("log"), e.warn = Ut("warn"), e.error = Ut("error");
1678
1678
  })(lt || (lt = {}));
1679
- var Rn = "3.14.0";
1679
+ var qn = "3.14.0";
1680
1680
  function pt(e) {
1681
1681
  try {
1682
1682
  return e();
@@ -1700,13 +1700,13 @@ const wr = pt(function() {
1700
1700
  pt(function() {
1701
1701
  return pt.constructor("return this")();
1702
1702
  });
1703
- var tn = /* @__PURE__ */ new Map();
1704
- function ma(e) {
1705
- var t = tn.get(e) || 1;
1706
- return tn.set(e, t + 1), "".concat(e, ":").concat(t, ":").concat(Math.random().toString(36).slice(2));
1703
+ var en = /* @__PURE__ */ new Map();
1704
+ function fa(e) {
1705
+ var t = en.get(e) || 1;
1706
+ return en.set(e, t + 1), "".concat(e, ":").concat(t, ":").concat(Math.random().toString(36).slice(2));
1707
1707
  }
1708
- function ha(e, t) {
1709
- var r = ma("stringifyForDisplay");
1708
+ function ma(e, t) {
1709
+ var r = fa("stringifyForDisplay");
1710
1710
  return JSON.stringify(e, function(n, o) {
1711
1711
  return o === void 0 ? r : o;
1712
1712
  }, t).split(JSON.stringify(r)).join("<undefined>");
@@ -1732,34 +1732,34 @@ var ir = Object.assign(function(t, r) {
1732
1732
  warn: qt(lt.warn),
1733
1733
  error: qt(lt.error)
1734
1734
  });
1735
- function Hn(e) {
1735
+ function Rn(e) {
1736
1736
  for (var t = [], r = 1; r < arguments.length; r++)
1737
1737
  t[r - 1] = arguments[r];
1738
- return new Un(Cr(e, t) || _r(e, t));
1738
+ return new Bn(Cr(e, t) || _r(e, t));
1739
1739
  }
1740
- var rn = Symbol.for("ApolloErrorMessageHandler_" + Rn);
1741
- function Yn(e) {
1740
+ var tn = Symbol.for("ApolloErrorMessageHandler_" + qn);
1741
+ function Hn(e) {
1742
1742
  if (typeof e == "string")
1743
1743
  return e;
1744
1744
  try {
1745
- return ha(e, 2).slice(0, 1e3);
1745
+ return ma(e, 2).slice(0, 1e3);
1746
1746
  } catch {
1747
1747
  return "<non-serializable>";
1748
1748
  }
1749
1749
  }
1750
1750
  function Cr(e, t) {
1751
1751
  if (t === void 0 && (t = []), !!e)
1752
- return wr[rn] && wr[rn](e, t.map(Yn));
1752
+ return wr[tn] && wr[tn](e, t.map(Hn));
1753
1753
  }
1754
1754
  function _r(e, t) {
1755
1755
  if (t === void 0 && (t = []), !!e)
1756
1756
  return "An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({
1757
- version: Rn,
1757
+ version: qn,
1758
1758
  message: e,
1759
- args: t.map(Yn)
1759
+ args: t.map(Hn)
1760
1760
  })));
1761
1761
  }
1762
- function pa(e) {
1762
+ function ha(e) {
1763
1763
  return e.definitions.filter(function(t) {
1764
1764
  return t.kind === "OperationDefinition" && !!t.name;
1765
1765
  }).map(function(t) {
@@ -1767,13 +1767,13 @@ function pa(e) {
1767
1767
  })[0] || null;
1768
1768
  }
1769
1769
  let ue = null;
1770
- const nn = {};
1771
- let ga = 1;
1772
- const wa = () => class {
1770
+ const rn = {};
1771
+ let pa = 1;
1772
+ const ga = () => class {
1773
1773
  constructor() {
1774
1774
  this.id = [
1775
1775
  "slot",
1776
- ga++,
1776
+ pa++,
1777
1777
  Date.now(),
1778
1778
  Math.random().toString(36).slice(2)
1779
1779
  ].join(":");
@@ -1782,11 +1782,11 @@ const wa = () => class {
1782
1782
  for (let t = ue; t; t = t.parent)
1783
1783
  if (this.id in t.slots) {
1784
1784
  const r = t.slots[this.id];
1785
- if (r === nn)
1785
+ if (r === rn)
1786
1786
  break;
1787
1787
  return t !== ue && (ue.slots[this.id] = r), !0;
1788
1788
  }
1789
- return ue && (ue.slots[this.id] = nn), !1;
1789
+ return ue && (ue.slots[this.id] = rn), !1;
1790
1790
  }
1791
1791
  getValue() {
1792
1792
  if (this.hasValue())
@@ -1830,27 +1830,27 @@ const wa = () => class {
1830
1830
  return t.apply(n, r);
1831
1831
  }
1832
1832
  };
1833
- function on(e) {
1833
+ function nn(e) {
1834
1834
  try {
1835
1835
  return e();
1836
1836
  } catch {
1837
1837
  }
1838
1838
  }
1839
- const lr = "@wry/context:Slot", ya = (
1839
+ const lr = "@wry/context:Slot", wa = (
1840
1840
  // Prefer globalThis when available.
1841
1841
  // https://github.com/benjamn/wryware/issues/347
1842
- on(() => globalThis) || // Fall back to global, which works in Node.js and may be converted by some
1842
+ nn(() => globalThis) || // Fall back to global, which works in Node.js and may be converted by some
1843
1843
  // bundlers to the appropriate identifier (window, self, ...) depending on the
1844
1844
  // bundling target. https://github.com/endojs/endo/issues/576#issuecomment-1178515224
1845
- on(() => global) || // Otherwise, use a dummy host that's local to this module. We used to fall
1845
+ nn(() => global) || // Otherwise, use a dummy host that's local to this module. We used to fall
1846
1846
  // back to using the Array constructor as a namespace, but that was flagged in
1847
1847
  // https://github.com/benjamn/wryware/issues/347, and can be avoided.
1848
1848
  /* @__PURE__ */ Object.create(null)
1849
- ), an = ya, Ir = an[lr] || // Earlier versions of this package stored the globalKey property on the Array
1849
+ ), on = wa, Ir = on[lr] || // Earlier versions of this package stored the globalKey property on the Array
1850
1850
  // constructor, so we check there as well, to prevent Slot class duplication.
1851
1851
  Array[lr] || (function(e) {
1852
1852
  try {
1853
- Object.defineProperty(an, lr, {
1853
+ Object.defineProperty(on, lr, {
1854
1854
  value: e,
1855
1855
  enumerable: !1,
1856
1856
  writable: !1,
@@ -1865,9 +1865,9 @@ Array[lr] || (function(e) {
1865
1865
  } finally {
1866
1866
  return e;
1867
1867
  }
1868
- })(wa()), { bind: fi, noContext: mi } = Ir;
1868
+ })(ga()), { bind: ui, noContext: fi } = Ir;
1869
1869
  new Ir();
1870
- function xa(e, t) {
1870
+ function ya(e, t) {
1871
1871
  var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1872
1872
  if (r) return (r = r.call(e)).next.bind(r);
1873
1873
  if (Array.isArray(e) || (r = ba(e)) || t) {
@@ -1882,26 +1882,26 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1882
1882
  }
1883
1883
  function ba(e, t) {
1884
1884
  if (e) {
1885
- if (typeof e == "string") return sn(e, t);
1885
+ if (typeof e == "string") return an(e, t);
1886
1886
  var r = Object.prototype.toString.call(e).slice(8, -1);
1887
1887
  if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set") return Array.from(e);
1888
- if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return sn(e, t);
1888
+ if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return an(e, t);
1889
1889
  }
1890
1890
  }
1891
- function sn(e, t) {
1891
+ function an(e, t) {
1892
1892
  (t == null || t > e.length) && (t = e.length);
1893
1893
  for (var r = 0, n = new Array(t); r < t; r++)
1894
1894
  n[r] = e[r];
1895
1895
  return n;
1896
1896
  }
1897
- function ln(e, t) {
1897
+ function sn(e, t) {
1898
1898
  for (var r = 0; r < t.length; r++) {
1899
1899
  var n = t[r];
1900
1900
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n);
1901
1901
  }
1902
1902
  }
1903
1903
  function Fr(e, t, r) {
1904
- return t && ln(e.prototype, t), r && ln(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
1904
+ return t && sn(e.prototype, t), r && sn(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
1905
1905
  }
1906
1906
  var Pr = function() {
1907
1907
  return typeof Symbol == "function";
@@ -1911,7 +1911,7 @@ var Pr = function() {
1911
1911
  return Tr(e) ? Symbol[e] : "@@" + e;
1912
1912
  };
1913
1913
  Pr() && !Tr("observable") && (Symbol.observable = Symbol("observable"));
1914
- var va = Er("iterator"), yr = Er("observable"), Vn = Er("species");
1914
+ var xa = Er("iterator"), yr = Er("observable"), Yn = Er("species");
1915
1915
  function Zt(e, t) {
1916
1916
  var r = e[t];
1917
1917
  if (r != null) {
@@ -1921,9 +1921,9 @@ function Zt(e, t) {
1921
1921
  }
1922
1922
  function It(e) {
1923
1923
  var t = e.constructor;
1924
- return t !== void 0 && (t = t[Vn], t === null && (t = void 0)), t !== void 0 ? t : we;
1924
+ return t !== void 0 && (t = t[Yn], t === null && (t = void 0)), t !== void 0 ? t : we;
1925
1925
  }
1926
- function ka(e) {
1926
+ function va(e) {
1927
1927
  return e instanceof we;
1928
1928
  }
1929
1929
  function wt(e) {
@@ -1940,7 +1940,7 @@ function Ht(e) {
1940
1940
  }
1941
1941
  });
1942
1942
  }
1943
- function Jn(e) {
1943
+ function Vn(e) {
1944
1944
  var t = e._cleanup;
1945
1945
  if (t !== void 0 && (e._cleanup = void 0, !!t))
1946
1946
  try {
@@ -1954,18 +1954,18 @@ function Jn(e) {
1954
1954
  wt(n);
1955
1955
  }
1956
1956
  }
1957
- function xr(e) {
1957
+ function br(e) {
1958
1958
  e._observer = void 0, e._queue = void 0, e._state = "closed";
1959
1959
  }
1960
- function Sa(e) {
1960
+ function ka(e) {
1961
1961
  var t = e._queue;
1962
1962
  if (t) {
1963
1963
  e._queue = void 0, e._state = "ready";
1964
- for (var r = 0; r < t.length && (Kn(e, t[r].type, t[r].value), e._state !== "closed"); ++r)
1964
+ for (var r = 0; r < t.length && (Jn(e, t[r].type, t[r].value), e._state !== "closed"); ++r)
1965
1965
  ;
1966
1966
  }
1967
1967
  }
1968
- function Kn(e, t, r) {
1968
+ function Jn(e, t, r) {
1969
1969
  e._state = "running";
1970
1970
  var n = e._observer;
1971
1971
  try {
@@ -1975,17 +1975,17 @@ function Kn(e, t, r) {
1975
1975
  o && o.call(n, r);
1976
1976
  break;
1977
1977
  case "error":
1978
- if (xr(e), o) o.call(n, r);
1978
+ if (br(e), o) o.call(n, r);
1979
1979
  else throw r;
1980
1980
  break;
1981
1981
  case "complete":
1982
- xr(e), o && o.call(n);
1982
+ br(e), o && o.call(n);
1983
1983
  break;
1984
1984
  }
1985
1985
  } catch (s) {
1986
1986
  wt(s);
1987
1987
  }
1988
- e._state === "closed" ? Jn(e) : e._state === "running" && (e._state = "ready");
1988
+ e._state === "closed" ? Vn(e) : e._state === "running" && (e._state = "ready");
1989
1989
  }
1990
1990
  function cr(e, t, r) {
1991
1991
  if (e._state !== "closed") {
@@ -2001,17 +2001,17 @@ function cr(e, t, r) {
2001
2001
  type: t,
2002
2002
  value: r
2003
2003
  }], Ht(function() {
2004
- return Sa(e);
2004
+ return ka(e);
2005
2005
  });
2006
2006
  return;
2007
2007
  }
2008
- Kn(e, t, r);
2008
+ Jn(e, t, r);
2009
2009
  }
2010
2010
  }
2011
2011
  var Na = /* @__PURE__ */ (function() {
2012
2012
  function e(r, n) {
2013
2013
  this._cleanup = void 0, this._observer = r, this._queue = void 0, this._state = "initializing";
2014
- var o = new Ca(this);
2014
+ var o = new Sa(this);
2015
2015
  try {
2016
2016
  this._cleanup = n.call(void 0, o);
2017
2017
  } catch (s) {
@@ -2021,14 +2021,14 @@ var Na = /* @__PURE__ */ (function() {
2021
2021
  }
2022
2022
  var t = e.prototype;
2023
2023
  return t.unsubscribe = function() {
2024
- this._state !== "closed" && (xr(this), Jn(this));
2024
+ this._state !== "closed" && (br(this), Vn(this));
2025
2025
  }, Fr(e, [{
2026
2026
  key: "closed",
2027
2027
  get: function() {
2028
2028
  return this._state === "closed";
2029
2029
  }
2030
2030
  }]), e;
2031
- })(), Ca = /* @__PURE__ */ (function() {
2031
+ })(), Sa = /* @__PURE__ */ (function() {
2032
2032
  function e(r) {
2033
2033
  this._subscription = r;
2034
2034
  }
@@ -2065,13 +2065,13 @@ var Na = /* @__PURE__ */ (function() {
2065
2065
  i(new TypeError(n + " is not a function"));
2066
2066
  return;
2067
2067
  }
2068
- function c() {
2068
+ function d() {
2069
2069
  l.unsubscribe(), s();
2070
2070
  }
2071
2071
  var l = o.subscribe({
2072
2072
  next: function(p) {
2073
2073
  try {
2074
- n(p, c);
2074
+ n(p, d);
2075
2075
  } catch (g) {
2076
2076
  i(g), l.unsubscribe();
2077
2077
  }
@@ -2086,16 +2086,16 @@ var Na = /* @__PURE__ */ (function() {
2086
2086
  var s = It(this);
2087
2087
  return new s(function(i) {
2088
2088
  return o.subscribe({
2089
- next: function(c) {
2089
+ next: function(d) {
2090
2090
  try {
2091
- c = n(c);
2091
+ d = n(d);
2092
2092
  } catch (l) {
2093
2093
  return i.error(l);
2094
2094
  }
2095
- i.next(c);
2095
+ i.next(d);
2096
2096
  },
2097
- error: function(c) {
2098
- i.error(c);
2097
+ error: function(d) {
2098
+ i.error(d);
2099
2099
  },
2100
2100
  complete: function() {
2101
2101
  i.complete();
@@ -2108,16 +2108,16 @@ var Na = /* @__PURE__ */ (function() {
2108
2108
  var s = It(this);
2109
2109
  return new s(function(i) {
2110
2110
  return o.subscribe({
2111
- next: function(c) {
2111
+ next: function(d) {
2112
2112
  try {
2113
- if (!n(c)) return;
2113
+ if (!n(d)) return;
2114
2114
  } catch (l) {
2115
2115
  return i.error(l);
2116
2116
  }
2117
- i.next(c);
2117
+ i.next(d);
2118
2118
  },
2119
- error: function(c) {
2120
- i.error(c);
2119
+ error: function(d) {
2120
+ i.error(d);
2121
2121
  },
2122
2122
  complete: function() {
2123
2123
  i.complete();
@@ -2127,25 +2127,25 @@ var Na = /* @__PURE__ */ (function() {
2127
2127
  }, t.reduce = function(n) {
2128
2128
  var o = this;
2129
2129
  if (typeof n != "function") throw new TypeError(n + " is not a function");
2130
- var s = It(this), i = arguments.length > 1, c = !1, l = arguments[1], p = l;
2130
+ var s = It(this), i = arguments.length > 1, d = !1, l = arguments[1], p = l;
2131
2131
  return new s(function(g) {
2132
2132
  return o.subscribe({
2133
- next: function(b) {
2134
- var y = !c;
2135
- if (c = !0, !y || i)
2133
+ next: function(x) {
2134
+ var y = !d;
2135
+ if (d = !0, !y || i)
2136
2136
  try {
2137
- p = n(p, b);
2137
+ p = n(p, x);
2138
2138
  } catch (_) {
2139
2139
  return g.error(_);
2140
2140
  }
2141
2141
  else
2142
- p = b;
2142
+ p = x;
2143
2143
  },
2144
- error: function(b) {
2145
- g.error(b);
2144
+ error: function(x) {
2145
+ g.error(x);
2146
2146
  },
2147
2147
  complete: function() {
2148
- if (!c && !i) return g.error(new TypeError("Cannot reduce an empty sequence"));
2148
+ if (!d && !i) return g.error(new TypeError("Cannot reduce an empty sequence"));
2149
2149
  g.next(p), g.complete();
2150
2150
  }
2151
2151
  });
@@ -2153,10 +2153,10 @@ var Na = /* @__PURE__ */ (function() {
2153
2153
  }, t.concat = function() {
2154
2154
  for (var n = this, o = arguments.length, s = new Array(o), i = 0; i < o; i++)
2155
2155
  s[i] = arguments[i];
2156
- var c = It(this);
2157
- return new c(function(l) {
2156
+ var d = It(this);
2157
+ return new d(function(l) {
2158
2158
  var p, g = 0;
2159
- function b(y) {
2159
+ function x(y) {
2160
2160
  p = y.subscribe({
2161
2161
  next: function(_) {
2162
2162
  l.next(_);
@@ -2165,11 +2165,11 @@ var Na = /* @__PURE__ */ (function() {
2165
2165
  l.error(_);
2166
2166
  },
2167
2167
  complete: function() {
2168
- g === s.length ? (p = void 0, l.complete()) : b(c.from(s[g++]));
2168
+ g === s.length ? (p = void 0, l.complete()) : x(d.from(s[g++]));
2169
2169
  }
2170
2170
  });
2171
2171
  }
2172
- return b(n), function() {
2172
+ return x(n), function() {
2173
2173
  p && (p.unsubscribe(), p = void 0);
2174
2174
  };
2175
2175
  });
@@ -2178,7 +2178,7 @@ var Na = /* @__PURE__ */ (function() {
2178
2178
  if (typeof n != "function") throw new TypeError(n + " is not a function");
2179
2179
  var s = It(this);
2180
2180
  return new s(function(i) {
2181
- var c = [], l = o.subscribe({
2181
+ var d = [], l = o.subscribe({
2182
2182
  next: function(g) {
2183
2183
  if (n)
2184
2184
  try {
@@ -2186,7 +2186,7 @@ var Na = /* @__PURE__ */ (function() {
2186
2186
  } catch (y) {
2187
2187
  return i.error(y);
2188
2188
  }
2189
- var b = s.from(g).subscribe({
2189
+ var x = s.from(g).subscribe({
2190
2190
  next: function(y) {
2191
2191
  i.next(y);
2192
2192
  },
@@ -2194,11 +2194,11 @@ var Na = /* @__PURE__ */ (function() {
2194
2194
  i.error(y);
2195
2195
  },
2196
2196
  complete: function() {
2197
- var y = c.indexOf(b);
2198
- y >= 0 && c.splice(y, 1), p();
2197
+ var y = d.indexOf(x);
2198
+ y >= 0 && d.splice(y, 1), p();
2199
2199
  }
2200
2200
  });
2201
- c.push(b);
2201
+ d.push(x);
2202
2202
  },
2203
2203
  error: function(g) {
2204
2204
  i.error(g);
@@ -2208,10 +2208,10 @@ var Na = /* @__PURE__ */ (function() {
2208
2208
  }
2209
2209
  });
2210
2210
  function p() {
2211
- l.closed && c.length === 0 && i.complete();
2211
+ l.closed && d.length === 0 && i.complete();
2212
2212
  }
2213
2213
  return function() {
2214
- c.forEach(function(g) {
2214
+ d.forEach(function(g) {
2215
2215
  return g.unsubscribe();
2216
2216
  }), l.unsubscribe();
2217
2217
  };
@@ -2225,29 +2225,29 @@ var Na = /* @__PURE__ */ (function() {
2225
2225
  if (s) {
2226
2226
  var i = s.call(n);
2227
2227
  if (Object(i) !== i) throw new TypeError(i + " is not an object");
2228
- return ka(i) && i.constructor === o ? i : new o(function(c) {
2229
- return i.subscribe(c);
2228
+ return va(i) && i.constructor === o ? i : new o(function(d) {
2229
+ return i.subscribe(d);
2230
2230
  });
2231
2231
  }
2232
- if (Tr("iterator") && (s = Zt(n, va), s))
2233
- return new o(function(c) {
2232
+ if (Tr("iterator") && (s = Zt(n, xa), s))
2233
+ return new o(function(d) {
2234
2234
  Ht(function() {
2235
- if (!c.closed) {
2236
- for (var l = xa(s.call(n)), p; !(p = l()).done; ) {
2235
+ if (!d.closed) {
2236
+ for (var l = ya(s.call(n)), p; !(p = l()).done; ) {
2237
2237
  var g = p.value;
2238
- if (c.next(g), c.closed) return;
2238
+ if (d.next(g), d.closed) return;
2239
2239
  }
2240
- c.complete();
2240
+ d.complete();
2241
2241
  }
2242
2242
  });
2243
2243
  });
2244
2244
  if (Array.isArray(n))
2245
- return new o(function(c) {
2245
+ return new o(function(d) {
2246
2246
  Ht(function() {
2247
- if (!c.closed) {
2247
+ if (!d.closed) {
2248
2248
  for (var l = 0; l < n.length; ++l)
2249
- if (c.next(n[l]), c.closed) return;
2250
- c.complete();
2249
+ if (d.next(n[l]), d.closed) return;
2250
+ d.complete();
2251
2251
  }
2252
2252
  });
2253
2253
  });
@@ -2256,17 +2256,17 @@ var Na = /* @__PURE__ */ (function() {
2256
2256
  for (var n = arguments.length, o = new Array(n), s = 0; s < n; s++)
2257
2257
  o[s] = arguments[s];
2258
2258
  var i = typeof this == "function" ? this : e;
2259
- return new i(function(c) {
2259
+ return new i(function(d) {
2260
2260
  Ht(function() {
2261
- if (!c.closed) {
2261
+ if (!d.closed) {
2262
2262
  for (var l = 0; l < o.length; ++l)
2263
- if (c.next(o[l]), c.closed) return;
2264
- c.complete();
2263
+ if (d.next(o[l]), d.closed) return;
2264
+ d.complete();
2265
2265
  }
2266
2266
  });
2267
2267
  });
2268
2268
  }, Fr(e, null, [{
2269
- key: Vn,
2269
+ key: Yn,
2270
2270
  get: function() {
2271
2271
  return this;
2272
2272
  }
@@ -2279,7 +2279,7 @@ Pr() && Object.defineProperty(we, Symbol("extensions"), {
2279
2279
  },
2280
2280
  configurable: !0
2281
2281
  });
2282
- function _a(e) {
2282
+ function Ca(e) {
2283
2283
  var t, r = e.Symbol;
2284
2284
  if (typeof r == "function")
2285
2285
  if (r.observable)
@@ -2297,12 +2297,12 @@ function _a(e) {
2297
2297
  }
2298
2298
  var gt;
2299
2299
  typeof self < "u" ? gt = self : typeof window < "u" ? gt = window : typeof global < "u" ? gt = global : typeof module < "u" ? gt = module : gt = Function("return this")();
2300
- _a(gt);
2301
- var cn = we.prototype, dn = "@@observable";
2302
- cn[dn] || (cn[dn] = function() {
2300
+ Ca(gt);
2301
+ var ln = we.prototype, cn = "@@observable";
2302
+ ln[cn] || (ln[cn] = function() {
2303
2303
  return this;
2304
2304
  });
2305
- function Ia(e) {
2305
+ function _a(e) {
2306
2306
  for (var t = [
2307
2307
  "query",
2308
2308
  "operationName",
@@ -2312,11 +2312,11 @@ function Ia(e) {
2312
2312
  ], r = 0, n = Object.keys(e); r < n.length; r++) {
2313
2313
  var o = n[r];
2314
2314
  if (t.indexOf(o) < 0)
2315
- throw Hn(58, o);
2315
+ throw Rn(58, o);
2316
2316
  }
2317
2317
  return e;
2318
2318
  }
2319
- function Fa(e, t) {
2319
+ function Ia(e, t) {
2320
2320
  var r = rt({}, e), n = function(s) {
2321
2321
  typeof s == "function" ? r = rt(rt({}, r), s(r)) : r = rt(rt({}, r), s);
2322
2322
  }, o = function() {
@@ -2330,32 +2330,32 @@ function Fa(e, t) {
2330
2330
  value: o
2331
2331
  }), t;
2332
2332
  }
2333
- function Pa(e) {
2333
+ function Fa(e) {
2334
2334
  var t = {
2335
2335
  variables: e.variables || {},
2336
2336
  extensions: e.extensions || {},
2337
2337
  operationName: e.operationName,
2338
2338
  query: e.query
2339
2339
  };
2340
- return t.operationName || (t.operationName = typeof t.query != "string" ? pa(t.query) || void 0 : ""), t;
2340
+ return t.operationName || (t.operationName = typeof t.query != "string" ? ha(t.query) || void 0 : ""), t;
2341
2341
  }
2342
- var Ta = Symbol.for("apollo.deprecations"), Ea = wr, Oa = new Ir();
2343
- function Aa(e) {
2344
- return Ea[Ta] || (Oa.getValue() || []).includes(e);
2342
+ var Pa = Symbol.for("apollo.deprecations"), Ta = wr, Ea = new Ir();
2343
+ function Oa(e) {
2344
+ return Ta[Pa] || (Ea.getValue() || []).includes(e);
2345
2345
  }
2346
- function ja(e, t) {
2347
- Aa(e) || t();
2346
+ function Aa(e, t) {
2347
+ Oa(e) || t();
2348
2348
  }
2349
- function un(e, t) {
2349
+ function dn(e, t) {
2350
2350
  return t ? t(e) : we.of();
2351
2351
  }
2352
2352
  function Ft(e) {
2353
- return typeof e == "function" ? new Wn(e) : e;
2353
+ return typeof e == "function" ? new Kn(e) : e;
2354
2354
  }
2355
2355
  function Rt(e) {
2356
2356
  return e.request.length <= 1;
2357
2357
  }
2358
- var Wn = (
2358
+ var Kn = (
2359
2359
  /** @class */
2360
2360
  (function() {
2361
2361
  function e(t) {
@@ -2370,36 +2370,36 @@ var Wn = (
2370
2370
  return r.concat(n);
2371
2371
  });
2372
2372
  }, e.split = function(t, r, n) {
2373
- var o = Ft(r), s = Ft(n || new e(un)), i;
2374
- return Rt(o) && Rt(s) ? i = new e(function(c) {
2375
- return t(c) ? o.request(c) || we.of() : s.request(c) || we.of();
2376
- }) : i = new e(function(c, l) {
2377
- return t(c) ? o.request(c, l) || we.of() : s.request(c, l) || we.of();
2373
+ var o = Ft(r), s = Ft(n || new e(dn)), i;
2374
+ return Rt(o) && Rt(s) ? i = new e(function(d) {
2375
+ return t(d) ? o.request(d) || we.of() : s.request(d) || we.of();
2376
+ }) : i = new e(function(d, l) {
2377
+ return t(d) ? o.request(d, l) || we.of() : s.request(d, l) || we.of();
2378
2378
  }), Object.assign(i, { left: o, right: s });
2379
2379
  }, e.execute = function(t, r) {
2380
- return t.request(Fa(r.context, Pa(Ia(r)))) || we.of();
2380
+ return t.request(Ia(r.context, Fa(_a(r)))) || we.of();
2381
2381
  }, e.concat = function(t, r) {
2382
2382
  var n = Ft(t);
2383
2383
  if (Rt(n))
2384
2384
  return globalThis.__DEV__ !== !1 && ir.warn(47, n), n;
2385
2385
  var o = Ft(r), s;
2386
2386
  return Rt(o) ? s = new e(function(i) {
2387
- return n.request(i, function(c) {
2388
- return o.request(c) || we.of();
2387
+ return n.request(i, function(d) {
2388
+ return o.request(d) || we.of();
2389
2389
  }) || we.of();
2390
- }) : s = new e(function(i, c) {
2390
+ }) : s = new e(function(i, d) {
2391
2391
  return n.request(i, function(l) {
2392
- return o.request(l, c) || we.of();
2392
+ return o.request(l, d) || we.of();
2393
2393
  }) || we.of();
2394
2394
  }), Object.assign(s, { left: n, right: o });
2395
2395
  }, e.prototype.split = function(t, r, n) {
2396
- return this.concat(e.split(t, r, n || new e(un)));
2396
+ return this.concat(e.split(t, r, n || new e(dn)));
2397
2397
  }, e.prototype.concat = function(t) {
2398
2398
  return e.concat(this, t);
2399
2399
  }, e.prototype.request = function(t, r) {
2400
- throw Hn(48);
2400
+ throw Rn(48);
2401
2401
  }, e.prototype.onError = function(t, r) {
2402
- if (globalThis.__DEV__ !== !1 && ja("onError", function() {
2402
+ if (globalThis.__DEV__ !== !1 && Aa("onError", function() {
2403
2403
  globalThis.__DEV__ !== !1 && ir.warn(49);
2404
2404
  }), r && r.error)
2405
2405
  return r.error(t), !1;
@@ -2409,13 +2409,13 @@ var Wn = (
2409
2409
  }, e;
2410
2410
  })()
2411
2411
  );
2412
- function $a(e) {
2413
- return new Wn(function(t, r) {
2414
- var n = da(t, []);
2412
+ function ja(e) {
2413
+ return new Kn(function(t, r) {
2414
+ var n = ca(t, []);
2415
2415
  return new we(function(o) {
2416
2416
  var s, i = !1;
2417
- return Promise.resolve(n).then(function(c) {
2418
- return e(c, t.getContext());
2417
+ return Promise.resolve(n).then(function(d) {
2418
+ return e(d, t.getContext());
2419
2419
  }).then(t.setContext).then(function() {
2420
2420
  i || (s = r(t).subscribe({
2421
2421
  next: o.next.bind(o),
@@ -2428,7 +2428,7 @@ function $a(e) {
2428
2428
  });
2429
2429
  });
2430
2430
  }
2431
- const La = async () => {
2431
+ const $a = async () => {
2432
2432
  const e = "https://auth.australia-southeast1.gcp.commercetools.com/oauth/token", n = "Basic " + btoa(encodeURIComponent("tfegsSBVOYnR7e_yE-AjxVVN") + ":" + encodeURIComponent("pyKWgHuTxuMwDygh9JH1ehLEaLvAhBo4"));
2433
2433
  try {
2434
2434
  const o = await ve.post(
@@ -2446,42 +2446,42 @@ const La = async () => {
2446
2446
  } catch (o) {
2447
2447
  return ve.isAxiosError(o) ? console.error("Error fetching token:", o.response || o.message) : console.error("Unexpected error:", o), null;
2448
2448
  }
2449
- }, Da = "https://api.australia-southeast1.gcp.commercetools.com/kt-demo/graphql", za = Lo({
2450
- uri: `${Da}`
2451
- }), Ma = $a(async (e, { headers: t }) => {
2452
- const r = await La();
2449
+ }, La = "https://api.australia-southeast1.gcp.commercetools.com/kt-demo/graphql", Da = $o({
2450
+ uri: `${La}`
2451
+ }), za = ja(async (e, { headers: t }) => {
2452
+ const r = await $a();
2453
2453
  return {
2454
2454
  headers: {
2455
2455
  ...t,
2456
2456
  authorization: `Bearer ${r}`
2457
2457
  }
2458
2458
  };
2459
- }), Ba = new Do({
2460
- link: Ma.concat(za),
2461
- cache: new zo(),
2459
+ }), Ma = new Lo({
2460
+ link: za.concat(Da),
2461
+ cache: new Do(),
2462
2462
  defaultOptions: {
2463
2463
  watchQuery: {
2464
2464
  fetchPolicy: "cache-and-network"
2465
2465
  }
2466
2466
  }
2467
- }), hi = (e) => {
2467
+ }), mi = (e) => {
2468
2468
  const { tanyaConfig: t } = e;
2469
- return /* @__PURE__ */ a(Mo, { client: Ba, children: /* @__PURE__ */ a(Go, { children: /* @__PURE__ */ a(la, { tanyaConfig: t }) }) });
2469
+ return /* @__PURE__ */ a(zo, { client: Ma, children: /* @__PURE__ */ a(Wo, { children: /* @__PURE__ */ a(ia, { tanyaConfig: t }) }) });
2470
2470
  };
2471
- function Ua(e, t) {
2471
+ function Ba(e, t) {
2472
2472
  const r = e.icons, n = e.aliases || /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ Object.create(null);
2473
2473
  function s(i) {
2474
2474
  if (r[i]) return o[i] = [];
2475
2475
  if (!(i in o)) {
2476
2476
  o[i] = null;
2477
- const c = n[i] && n[i].parent, l = c && s(c);
2478
- l && (o[i] = [c].concat(l));
2477
+ const d = n[i] && n[i].parent, l = d && s(d);
2478
+ l && (o[i] = [d].concat(l));
2479
2479
  }
2480
2480
  return o[i];
2481
2481
  }
2482
2482
  return Object.keys(r).concat(Object.keys(n)).forEach(s), o;
2483
2483
  }
2484
- const Gn = Object.freeze({
2484
+ const Wn = Object.freeze({
2485
2485
  left: 0,
2486
2486
  top: 0,
2487
2487
  width: 16,
@@ -2491,73 +2491,73 @@ const Gn = Object.freeze({
2491
2491
  vFlip: !1,
2492
2492
  hFlip: !1
2493
2493
  }), Or = Object.freeze({
2494
- ...Gn,
2494
+ ...Wn,
2495
2495
  ...er
2496
- }), br = Object.freeze({
2496
+ }), xr = Object.freeze({
2497
2497
  ...Or,
2498
2498
  body: "",
2499
2499
  hidden: !1
2500
2500
  });
2501
- function qa(e, t) {
2501
+ function Ua(e, t) {
2502
2502
  const r = {};
2503
2503
  !e.hFlip != !t.hFlip && (r.hFlip = !0), !e.vFlip != !t.vFlip && (r.vFlip = !0);
2504
2504
  const n = ((e.rotate || 0) + (t.rotate || 0)) % 4;
2505
2505
  return n && (r.rotate = n), r;
2506
2506
  }
2507
- function fn(e, t) {
2508
- const r = qa(e, t);
2509
- for (const n in br) n in er ? n in e && !(n in r) && (r[n] = er[n]) : n in t ? r[n] = t[n] : n in e && (r[n] = e[n]);
2507
+ function un(e, t) {
2508
+ const r = Ua(e, t);
2509
+ for (const n in xr) n in er ? n in e && !(n in r) && (r[n] = er[n]) : n in t ? r[n] = t[n] : n in e && (r[n] = e[n]);
2510
2510
  return r;
2511
2511
  }
2512
- function Ra(e, t, r) {
2512
+ function qa(e, t, r) {
2513
2513
  const n = e.icons, o = e.aliases || /* @__PURE__ */ Object.create(null);
2514
2514
  let s = {};
2515
- function i(c) {
2516
- s = fn(n[c] || o[c], s);
2515
+ function i(d) {
2516
+ s = un(n[d] || o[d], s);
2517
2517
  }
2518
- return i(t), r.forEach(i), fn(e, s);
2518
+ return i(t), r.forEach(i), un(e, s);
2519
2519
  }
2520
- function Qn(e, t) {
2520
+ function Gn(e, t) {
2521
2521
  const r = [];
2522
2522
  if (typeof e != "object" || typeof e.icons != "object") return r;
2523
2523
  e.not_found instanceof Array && e.not_found.forEach((o) => {
2524
2524
  t(o, null), r.push(o);
2525
2525
  });
2526
- const n = Ua(e);
2526
+ const n = Ba(e);
2527
2527
  for (const o in n) {
2528
2528
  const s = n[o];
2529
- s && (t(o, Ra(e, o, s)), r.push(o));
2529
+ s && (t(o, qa(e, o, s)), r.push(o));
2530
2530
  }
2531
2531
  return r;
2532
2532
  }
2533
- const Ha = {
2533
+ const Ra = {
2534
2534
  provider: "",
2535
2535
  aliases: {},
2536
2536
  not_found: {},
2537
- ...Gn
2537
+ ...Wn
2538
2538
  };
2539
2539
  function dr(e, t) {
2540
2540
  for (const r in t) if (r in e && typeof e[r] != typeof t[r]) return !1;
2541
2541
  return !0;
2542
2542
  }
2543
- function Xn(e) {
2543
+ function Qn(e) {
2544
2544
  if (typeof e != "object" || e === null) return null;
2545
2545
  const t = e;
2546
- if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !dr(e, Ha)) return null;
2546
+ if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !dr(e, Ra)) return null;
2547
2547
  const r = t.icons;
2548
2548
  for (const o in r) {
2549
2549
  const s = r[o];
2550
- if (!o || typeof s.body != "string" || !dr(s, br)) return null;
2550
+ if (!o || typeof s.body != "string" || !dr(s, xr)) return null;
2551
2551
  }
2552
2552
  const n = t.aliases || /* @__PURE__ */ Object.create(null);
2553
2553
  for (const o in n) {
2554
2554
  const s = n[o], i = s.parent;
2555
- if (!o || typeof i != "string" || !r[i] && !n[i] || !dr(s, br)) return null;
2555
+ if (!o || typeof i != "string" || !r[i] && !n[i] || !dr(s, xr)) return null;
2556
2556
  }
2557
2557
  return t;
2558
2558
  }
2559
- const mn = /* @__PURE__ */ Object.create(null);
2560
- function Ya(e, t) {
2559
+ const fn = /* @__PURE__ */ Object.create(null);
2560
+ function Ha(e, t) {
2561
2561
  return {
2562
2562
  provider: e,
2563
2563
  prefix: t,
@@ -2566,15 +2566,15 @@ function Ya(e, t) {
2566
2566
  };
2567
2567
  }
2568
2568
  function yt(e, t) {
2569
- const r = mn[e] || (mn[e] = /* @__PURE__ */ Object.create(null));
2570
- return r[t] || (r[t] = Ya(e, t));
2569
+ const r = fn[e] || (fn[e] = /* @__PURE__ */ Object.create(null));
2570
+ return r[t] || (r[t] = Ha(e, t));
2571
2571
  }
2572
- function Zn(e, t) {
2573
- return Xn(t) ? Qn(t, (r, n) => {
2572
+ function Xn(e, t) {
2573
+ return Qn(t) ? Gn(t, (r, n) => {
2574
2574
  n ? e.icons[r] = n : e.missing.add(r);
2575
2575
  }) : [];
2576
2576
  }
2577
- function Va(e, t, r) {
2577
+ function Ya(e, t, r) {
2578
2578
  try {
2579
2579
  if (typeof r.body == "string")
2580
2580
  return e.icons[t] = { ...r }, !0;
@@ -2582,7 +2582,7 @@ function Va(e, t, r) {
2582
2582
  }
2583
2583
  return !1;
2584
2584
  }
2585
- const eo = /^[a-z0-9]+(-[a-z0-9]+)*$/, tr = (e, t, r, n = "") => {
2585
+ const Zn = /^[a-z0-9]+(-[a-z0-9]+)*$/, tr = (e, t, r, n = "") => {
2586
2586
  const o = e.split(":");
2587
2587
  if (e.slice(0, 1) === "@") {
2588
2588
  if (o.length < 2 || o.length > 3) return null;
@@ -2590,55 +2590,55 @@ const eo = /^[a-z0-9]+(-[a-z0-9]+)*$/, tr = (e, t, r, n = "") => {
2590
2590
  }
2591
2591
  if (o.length > 3 || !o.length) return null;
2592
2592
  if (o.length > 1) {
2593
- const c = o.pop(), l = o.pop(), p = {
2593
+ const d = o.pop(), l = o.pop(), p = {
2594
2594
  provider: o.length > 0 ? o[0] : n,
2595
2595
  prefix: l,
2596
- name: c
2596
+ name: d
2597
2597
  };
2598
2598
  return t && !Yt(p) ? null : p;
2599
2599
  }
2600
2600
  const s = o[0], i = s.split("-");
2601
2601
  if (i.length > 1) {
2602
- const c = {
2602
+ const d = {
2603
2603
  provider: n,
2604
2604
  prefix: i.shift(),
2605
2605
  name: i.join("-")
2606
2606
  };
2607
- return t && !Yt(c) ? null : c;
2607
+ return t && !Yt(d) ? null : d;
2608
2608
  }
2609
2609
  if (r && n === "") {
2610
- const c = {
2610
+ const d = {
2611
2611
  provider: n,
2612
2612
  prefix: "",
2613
2613
  name: s
2614
2614
  };
2615
- return t && !Yt(c, r) ? null : c;
2615
+ return t && !Yt(d, r) ? null : d;
2616
2616
  }
2617
2617
  return null;
2618
2618
  }, Yt = (e, t) => e ? !!((t && e.prefix === "" || e.prefix) && e.name) : !1;
2619
2619
  let At = !1;
2620
- function to(e) {
2620
+ function eo(e) {
2621
2621
  return typeof e == "boolean" && (At = e), At;
2622
2622
  }
2623
- function hn(e) {
2623
+ function mn(e) {
2624
2624
  const t = typeof e == "string" ? tr(e, !0, At) : e;
2625
2625
  if (t) {
2626
2626
  const r = yt(t.provider, t.prefix), n = t.name;
2627
2627
  return r.icons[n] || (r.missing.has(n) ? null : void 0);
2628
2628
  }
2629
2629
  }
2630
- function Ja(e, t) {
2630
+ function Va(e, t) {
2631
2631
  const r = tr(e, !0, At);
2632
2632
  if (!r) return !1;
2633
2633
  const n = yt(r.provider, r.prefix);
2634
- return t ? Va(n, r.name, t) : (n.missing.add(r.name), !0);
2634
+ return t ? Ya(n, r.name, t) : (n.missing.add(r.name), !0);
2635
2635
  }
2636
- function Ka(e, t) {
2636
+ function Ja(e, t) {
2637
2637
  if (typeof e != "object") return !1;
2638
2638
  if (typeof t != "string" && (t = e.provider || ""), At && !t && !e.prefix) {
2639
2639
  let o = !1;
2640
- return Xn(e) && (e.prefix = "", Qn(e, (s, i) => {
2641
- Ja(s, i) && (o = !0);
2640
+ return Qn(e) && (e.prefix = "", Gn(e, (s, i) => {
2641
+ Va(s, i) && (o = !0);
2642
2642
  })), o;
2643
2643
  }
2644
2644
  const r = e.prefix;
@@ -2647,33 +2647,33 @@ function Ka(e, t) {
2647
2647
  name: "a"
2648
2648
  })) return !1;
2649
2649
  const n = yt(t, r);
2650
- return !!Zn(n, e);
2650
+ return !!Xn(n, e);
2651
2651
  }
2652
- const ro = Object.freeze({
2652
+ const to = Object.freeze({
2653
2653
  width: null,
2654
2654
  height: null
2655
- }), no = Object.freeze({
2656
- ...ro,
2655
+ }), ro = Object.freeze({
2656
+ ...to,
2657
2657
  ...er
2658
- }), Wa = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Ga = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
2659
- function pn(e, t, r) {
2658
+ }), Ka = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Wa = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
2659
+ function hn(e, t, r) {
2660
2660
  if (t === 1) return e;
2661
2661
  if (r = r || 100, typeof e == "number") return Math.ceil(e * t * r) / r;
2662
2662
  if (typeof e != "string") return e;
2663
- const n = e.split(Wa);
2663
+ const n = e.split(Ka);
2664
2664
  if (n === null || !n.length) return e;
2665
2665
  const o = [];
2666
- let s = n.shift(), i = Ga.test(s);
2666
+ let s = n.shift(), i = Wa.test(s);
2667
2667
  for (; ; ) {
2668
2668
  if (i) {
2669
- const c = parseFloat(s);
2670
- isNaN(c) ? o.push(s) : o.push(Math.ceil(c * t * r) / r);
2669
+ const d = parseFloat(s);
2670
+ isNaN(d) ? o.push(s) : o.push(Math.ceil(d * t * r) / r);
2671
2671
  } else o.push(s);
2672
2672
  if (s = n.shift(), s === void 0) return o.join("");
2673
2673
  i = !i;
2674
2674
  }
2675
2675
  }
2676
- function Qa(e, t = "defs") {
2676
+ function Ga(e, t = "defs") {
2677
2677
  let r = "";
2678
2678
  const n = e.indexOf("<" + t);
2679
2679
  for (; n >= 0; ) {
@@ -2688,20 +2688,20 @@ function Qa(e, t = "defs") {
2688
2688
  content: e
2689
2689
  };
2690
2690
  }
2691
- function Xa(e, t) {
2691
+ function Qa(e, t) {
2692
2692
  return e ? "<defs>" + e + "</defs>" + t : t;
2693
2693
  }
2694
- function Za(e, t, r) {
2695
- const n = Qa(e);
2696
- return Xa(n.defs, t + n.content + r);
2694
+ function Xa(e, t, r) {
2695
+ const n = Ga(e);
2696
+ return Qa(n.defs, t + n.content + r);
2697
2697
  }
2698
- const es = (e) => e === "unset" || e === "undefined" || e === "none";
2699
- function ts(e, t) {
2698
+ const Za = (e) => e === "unset" || e === "undefined" || e === "none";
2699
+ function es(e, t) {
2700
2700
  const r = {
2701
2701
  ...Or,
2702
2702
  ...e
2703
2703
  }, n = {
2704
- ...no,
2704
+ ...ro,
2705
2705
  ...t
2706
2706
  }, o = {
2707
2707
  left: r.left,
@@ -2726,42 +2726,42 @@ function ts(e, t) {
2726
2726
  w = o.width / 2 + o.left, k.unshift("rotate(-90 " + w.toString() + " " + w.toString() + ")");
2727
2727
  break;
2728
2728
  }
2729
- U % 2 === 1 && (o.left !== o.top && (w = o.left, o.left = o.top, o.top = w), o.width !== o.height && (w = o.width, o.width = o.height, o.height = w)), k.length && (s = Za(s, '<g transform="' + k.join(" ") + '">', "</g>"));
2729
+ U % 2 === 1 && (o.left !== o.top && (w = o.left, o.left = o.top, o.top = w), o.width !== o.height && (w = o.width, o.width = o.height, o.height = w)), k.length && (s = Xa(s, '<g transform="' + k.join(" ") + '">', "</g>"));
2730
2730
  });
2731
- const i = n.width, c = n.height, l = o.width, p = o.height;
2732
- let g, b;
2733
- i === null ? (b = c === null ? "1em" : c === "auto" ? p : c, g = pn(b, l / p)) : (g = i === "auto" ? l : i, b = c === null ? pn(g, p / l) : c === "auto" ? p : c);
2731
+ const i = n.width, d = n.height, l = o.width, p = o.height;
2732
+ let g, x;
2733
+ i === null ? (x = d === null ? "1em" : d === "auto" ? p : d, g = hn(x, l / p)) : (g = i === "auto" ? l : i, x = d === null ? hn(g, p / l) : d === "auto" ? p : d);
2734
2734
  const y = {}, _ = (T, k) => {
2735
- es(k) || (y[T] = k.toString());
2735
+ Za(k) || (y[T] = k.toString());
2736
2736
  };
2737
- _("width", g), _("height", b);
2738
- const N = [
2737
+ _("width", g), _("height", x);
2738
+ const S = [
2739
2739
  o.left,
2740
2740
  o.top,
2741
2741
  l,
2742
2742
  p
2743
2743
  ];
2744
- return y.viewBox = N.join(" "), {
2744
+ return y.viewBox = S.join(" "), {
2745
2745
  attributes: y,
2746
- viewBox: N,
2746
+ viewBox: S,
2747
2747
  body: s
2748
2748
  };
2749
2749
  }
2750
- const rs = /\sid="(\S+)"/g, ns = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
2751
- let os = 0;
2752
- function as(e, t = ns) {
2750
+ const ts = /\sid="(\S+)"/g, rs = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
2751
+ let ns = 0;
2752
+ function os(e, t = rs) {
2753
2753
  const r = [];
2754
2754
  let n;
2755
- for (; n = rs.exec(e); ) r.push(n[1]);
2755
+ for (; n = ts.exec(e); ) r.push(n[1]);
2756
2756
  if (!r.length) return e;
2757
2757
  const o = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
2758
2758
  return r.forEach((s) => {
2759
- const i = typeof t == "function" ? t(s) : t + (os++).toString(), c = s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
2760
- e = e.replace(new RegExp('([#;"])(' + c + ')([")]|\\.[a-z])', "g"), "$1" + i + o + "$3");
2759
+ const i = typeof t == "function" ? t(s) : t + (ns++).toString(), d = s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
2760
+ e = e.replace(new RegExp('([#;"])(' + d + ')([")]|\\.[a-z])', "g"), "$1" + i + o + "$3");
2761
2761
  }), e = e.replace(new RegExp(o, "g"), ""), e;
2762
2762
  }
2763
2763
  const vr = /* @__PURE__ */ Object.create(null);
2764
- function ss(e, t) {
2764
+ function as(e, t) {
2765
2765
  vr[e] = t;
2766
2766
  }
2767
2767
  function kr(e) {
@@ -2785,22 +2785,22 @@ function Ar(e) {
2785
2785
  const jr = /* @__PURE__ */ Object.create(null), Pt = ["https://api.simplesvg.com", "https://api.unisvg.com"], Vt = [];
2786
2786
  for (; Pt.length > 0; ) Pt.length === 1 || Math.random() > 0.5 ? Vt.push(Pt.shift()) : Vt.push(Pt.pop());
2787
2787
  jr[""] = Ar({ resources: ["https://api.iconify.design"].concat(Vt) });
2788
- function is(e, t) {
2788
+ function ss(e, t) {
2789
2789
  const r = Ar(t);
2790
2790
  return r === null ? !1 : (jr[e] = r, !0);
2791
2791
  }
2792
2792
  function $r(e) {
2793
2793
  return jr[e];
2794
2794
  }
2795
- const ls = () => {
2795
+ const is = () => {
2796
2796
  let e;
2797
2797
  try {
2798
2798
  if (e = fetch, typeof e == "function") return e;
2799
2799
  } catch {
2800
2800
  }
2801
2801
  };
2802
- let gn = ls();
2803
- function cs(e, t) {
2802
+ let pn = is();
2803
+ function ls(e, t) {
2804
2804
  const r = $r(e);
2805
2805
  if (!r) return 0;
2806
2806
  let n;
@@ -2815,42 +2815,42 @@ function cs(e, t) {
2815
2815
  }
2816
2816
  return n;
2817
2817
  }
2818
- function ds(e) {
2818
+ function cs(e) {
2819
2819
  return e === 404;
2820
2820
  }
2821
- const us = (e, t, r) => {
2822
- const n = [], o = cs(e, t), s = "icons";
2821
+ const ds = (e, t, r) => {
2822
+ const n = [], o = ls(e, t), s = "icons";
2823
2823
  let i = {
2824
2824
  type: s,
2825
2825
  provider: e,
2826
2826
  prefix: t,
2827
2827
  icons: []
2828
- }, c = 0;
2828
+ }, d = 0;
2829
2829
  return r.forEach((l, p) => {
2830
- c += l.length + 1, c >= o && p > 0 && (n.push(i), i = {
2830
+ d += l.length + 1, d >= o && p > 0 && (n.push(i), i = {
2831
2831
  type: s,
2832
2832
  provider: e,
2833
2833
  prefix: t,
2834
2834
  icons: []
2835
- }, c = l.length), i.icons.push(l);
2835
+ }, d = l.length), i.icons.push(l);
2836
2836
  }), n.push(i), n;
2837
2837
  };
2838
- function fs(e) {
2838
+ function us(e) {
2839
2839
  if (typeof e == "string") {
2840
2840
  const t = $r(e);
2841
2841
  if (t) return t.path;
2842
2842
  }
2843
2843
  return "/";
2844
2844
  }
2845
- const ms = (e, t, r) => {
2846
- if (!gn) {
2845
+ const fs = (e, t, r) => {
2846
+ if (!pn) {
2847
2847
  r("abort", 424);
2848
2848
  return;
2849
2849
  }
2850
- let n = fs(t.provider);
2850
+ let n = us(t.provider);
2851
2851
  switch (t.type) {
2852
2852
  case "icons": {
2853
- const s = t.prefix, c = t.icons.join(","), l = new URLSearchParams({ icons: c });
2853
+ const s = t.prefix, d = t.icons.join(","), l = new URLSearchParams({ icons: d });
2854
2854
  n += s + ".json?" + l.toString();
2855
2855
  break;
2856
2856
  }
@@ -2864,11 +2864,11 @@ const ms = (e, t, r) => {
2864
2864
  return;
2865
2865
  }
2866
2866
  let o = 503;
2867
- gn(e + n).then((s) => {
2867
+ pn(e + n).then((s) => {
2868
2868
  const i = s.status;
2869
2869
  if (i !== 200) {
2870
2870
  setTimeout(() => {
2871
- r(ds(i) ? "abort" : "next", i);
2871
+ r(cs(i) ? "abort" : "next", i);
2872
2872
  });
2873
2873
  return;
2874
2874
  }
@@ -2886,17 +2886,17 @@ const ms = (e, t, r) => {
2886
2886
  }).catch(() => {
2887
2887
  r("next", o);
2888
2888
  });
2889
- }, hs = {
2890
- prepare: us,
2891
- send: ms
2889
+ }, ms = {
2890
+ prepare: ds,
2891
+ send: fs
2892
2892
  };
2893
- function oo(e, t) {
2893
+ function no(e, t) {
2894
2894
  e.forEach((r) => {
2895
2895
  const n = r.loaderCallbacks;
2896
2896
  n && (r.loaderCallbacks = n.filter((o) => o.id !== t));
2897
2897
  });
2898
2898
  }
2899
- function ps(e) {
2899
+ function hs(e) {
2900
2900
  e.pendingCallbacksFlag || (e.pendingCallbacksFlag = !0, setTimeout(() => {
2901
2901
  e.pendingCallbacksFlag = !1;
2902
2902
  const t = e.loaderCallbacks ? e.loaderCallbacks.slice(0) : [];
@@ -2904,7 +2904,7 @@ function ps(e) {
2904
2904
  let r = !1;
2905
2905
  const n = e.provider, o = e.prefix;
2906
2906
  t.forEach((s) => {
2907
- const i = s.icons, c = i.pending.length;
2907
+ const i = s.icons, d = i.pending.length;
2908
2908
  i.pending = i.pending.filter((l) => {
2909
2909
  if (l.prefix !== o) return !0;
2910
2910
  const p = l.name;
@@ -2921,13 +2921,13 @@ function ps(e) {
2921
2921
  else
2922
2922
  return r = !0, !0;
2923
2923
  return !1;
2924
- }), i.pending.length !== c && (r || oo([e], s.id), s.callback(i.loaded.slice(0), i.missing.slice(0), i.pending.slice(0), s.abort));
2924
+ }), i.pending.length !== d && (r || no([e], s.id), s.callback(i.loaded.slice(0), i.missing.slice(0), i.pending.slice(0), s.abort));
2925
2925
  });
2926
2926
  }));
2927
2927
  }
2928
- let gs = 0;
2929
- function ws(e, t, r) {
2930
- const n = gs++, o = oo.bind(null, r, n);
2928
+ let ps = 0;
2929
+ function gs(e, t, r) {
2930
+ const n = ps++, o = no.bind(null, r, n);
2931
2931
  if (!t.pending.length) return o;
2932
2932
  const s = {
2933
2933
  id: n,
@@ -2939,7 +2939,7 @@ function ws(e, t, r) {
2939
2939
  (i.loaderCallbacks || (i.loaderCallbacks = [])).push(s);
2940
2940
  }), o;
2941
2941
  }
2942
- function ys(e) {
2942
+ function ws(e) {
2943
2943
  const t = {
2944
2944
  loaded: [],
2945
2945
  missing: [],
@@ -2954,18 +2954,18 @@ function ys(e) {
2954
2954
  return e.forEach((o) => {
2955
2955
  if (n.name === o.name && n.prefix === o.prefix && n.provider === o.provider) return;
2956
2956
  n = o;
2957
- const s = o.provider, i = o.prefix, c = o.name, l = r[s] || (r[s] = /* @__PURE__ */ Object.create(null)), p = l[i] || (l[i] = yt(s, i));
2957
+ const s = o.provider, i = o.prefix, d = o.name, l = r[s] || (r[s] = /* @__PURE__ */ Object.create(null)), p = l[i] || (l[i] = yt(s, i));
2958
2958
  let g;
2959
- c in p.icons ? g = t.loaded : i === "" || p.missing.has(c) ? g = t.missing : g = t.pending;
2960
- const b = {
2959
+ d in p.icons ? g = t.loaded : i === "" || p.missing.has(d) ? g = t.missing : g = t.pending;
2960
+ const x = {
2961
2961
  provider: s,
2962
2962
  prefix: i,
2963
- name: c
2963
+ name: d
2964
2964
  };
2965
- g.push(b);
2965
+ g.push(x);
2966
2966
  }), t;
2967
2967
  }
2968
- function xs(e, t = !0, r = !1) {
2968
+ function ys(e, t = !0, r = !1) {
2969
2969
  const n = [];
2970
2970
  return e.forEach((o) => {
2971
2971
  const s = typeof o == "string" ? tr(o, t, r) : o;
@@ -2980,7 +2980,7 @@ const bs = {
2980
2980
  random: !1,
2981
2981
  dataAfterTimeout: !1
2982
2982
  };
2983
- function vs(e, t, r, n) {
2983
+ function xs(e, t, r, n) {
2984
2984
  const o = e.resources.length, s = e.random ? Math.floor(Math.random() * o) : e.index;
2985
2985
  let i;
2986
2986
  if (e.random) {
@@ -2991,14 +2991,14 @@ function vs(e, t, r, n) {
2991
2991
  }
2992
2992
  i = i.concat(E);
2993
2993
  } else i = e.resources.slice(s).concat(e.resources.slice(0, s));
2994
- const c = Date.now();
2995
- let l = "pending", p = 0, g, b = null, y = [], _ = [];
2994
+ const d = Date.now();
2995
+ let l = "pending", p = 0, g, x = null, y = [], _ = [];
2996
2996
  typeof n == "function" && _.push(n);
2997
- function N() {
2998
- b && (clearTimeout(b), b = null);
2997
+ function S() {
2998
+ x && (clearTimeout(x), x = null);
2999
2999
  }
3000
3000
  function T() {
3001
- l === "pending" && (l = "aborted"), N(), y.forEach((E) => {
3001
+ l === "pending" && (l = "aborted"), S(), y.forEach((E) => {
3002
3002
  E.status === "pending" && (E.status = "aborted");
3003
3003
  }), y = [];
3004
3004
  }
@@ -3007,7 +3007,7 @@ function vs(e, t, r, n) {
3007
3007
  }
3008
3008
  function I() {
3009
3009
  return {
3010
- startTime: c,
3010
+ startTime: d,
3011
3011
  payload: t,
3012
3012
  status: l,
3013
3013
  queriesSent: p,
@@ -3045,7 +3045,7 @@ function vs(e, t, r, n) {
3045
3045
  g = fe, y.length || (i.length ? Fe() : K());
3046
3046
  return;
3047
3047
  }
3048
- if (N(), U(), !e.random) {
3048
+ if (S(), U(), !e.random) {
3049
3049
  const ne = e.resources.indexOf(E.resource);
3050
3050
  ne !== -1 && ne !== e.index && (e.index = ne);
3051
3051
  }
@@ -3055,12 +3055,12 @@ function vs(e, t, r, n) {
3055
3055
  }
3056
3056
  function Fe() {
3057
3057
  if (l !== "pending") return;
3058
- N();
3058
+ S();
3059
3059
  const E = i.shift();
3060
3060
  if (E === void 0) {
3061
3061
  if (y.length) {
3062
- b = setTimeout(() => {
3063
- N(), l === "pending" && (U(), K());
3062
+ x = setTimeout(() => {
3063
+ S(), l === "pending" && (U(), K());
3064
3064
  }, e.timeout);
3065
3065
  return;
3066
3066
  }
@@ -3074,46 +3074,46 @@ function vs(e, t, r, n) {
3074
3074
  w(W, fe, ke);
3075
3075
  }
3076
3076
  };
3077
- y.push(W), p++, b = setTimeout(Fe, e.rotate), r(E, t, W.callback);
3077
+ y.push(W), p++, x = setTimeout(Fe, e.rotate), r(E, t, W.callback);
3078
3078
  }
3079
3079
  return setTimeout(Fe), I;
3080
3080
  }
3081
- function ao(e) {
3081
+ function oo(e) {
3082
3082
  const t = {
3083
3083
  ...bs,
3084
3084
  ...e
3085
3085
  };
3086
3086
  let r = [];
3087
3087
  function n() {
3088
- r = r.filter((c) => c().status === "pending");
3088
+ r = r.filter((d) => d().status === "pending");
3089
3089
  }
3090
- function o(c, l, p) {
3091
- const g = vs(t, c, l, (b, y) => {
3092
- n(), p && p(b, y);
3090
+ function o(d, l, p) {
3091
+ const g = xs(t, d, l, (x, y) => {
3092
+ n(), p && p(x, y);
3093
3093
  });
3094
3094
  return r.push(g), g;
3095
3095
  }
3096
- function s(c) {
3097
- return r.find((l) => c(l)) || null;
3096
+ function s(d) {
3097
+ return r.find((l) => d(l)) || null;
3098
3098
  }
3099
3099
  return {
3100
3100
  query: o,
3101
3101
  find: s,
3102
- setIndex: (c) => {
3103
- t.index = c;
3102
+ setIndex: (d) => {
3103
+ t.index = d;
3104
3104
  },
3105
3105
  getIndex: () => t.index,
3106
3106
  cleanup: n
3107
3107
  };
3108
3108
  }
3109
- function wn() {
3109
+ function gn() {
3110
3110
  }
3111
3111
  const ur = /* @__PURE__ */ Object.create(null);
3112
- function ks(e) {
3112
+ function vs(e) {
3113
3113
  if (!ur[e]) {
3114
3114
  const t = $r(e);
3115
3115
  if (!t) return;
3116
- const r = ao(t), n = {
3116
+ const r = oo(t), n = {
3117
3117
  config: t,
3118
3118
  redundancy: r
3119
3119
  };
@@ -3121,36 +3121,36 @@ function ks(e) {
3121
3121
  }
3122
3122
  return ur[e];
3123
3123
  }
3124
- function Ss(e, t, r) {
3124
+ function ks(e, t, r) {
3125
3125
  let n, o;
3126
3126
  if (typeof e == "string") {
3127
3127
  const s = kr(e);
3128
3128
  if (!s)
3129
- return r(void 0, 424), wn;
3129
+ return r(void 0, 424), gn;
3130
3130
  o = s.send;
3131
- const i = ks(e);
3131
+ const i = vs(e);
3132
3132
  i && (n = i.redundancy);
3133
3133
  } else {
3134
3134
  const s = Ar(e);
3135
3135
  if (s) {
3136
- n = ao(s);
3137
- const i = e.resources ? e.resources[0] : "", c = kr(i);
3138
- c && (o = c.send);
3136
+ n = oo(s);
3137
+ const i = e.resources ? e.resources[0] : "", d = kr(i);
3138
+ d && (o = d.send);
3139
3139
  }
3140
3140
  }
3141
- return !n || !o ? (r(void 0, 424), wn) : n.query(t, o, r)().abort;
3141
+ return !n || !o ? (r(void 0, 424), gn) : n.query(t, o, r)().abort;
3142
3142
  }
3143
- function yn() {
3143
+ function wn() {
3144
3144
  }
3145
3145
  function Ns(e) {
3146
3146
  e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
3147
- e.iconsLoaderFlag = !1, ps(e);
3147
+ e.iconsLoaderFlag = !1, hs(e);
3148
3148
  }));
3149
3149
  }
3150
- function Cs(e) {
3150
+ function Ss(e) {
3151
3151
  const t = [], r = [];
3152
3152
  return e.forEach((n) => {
3153
- (n.match(eo) ? t : r).push(n);
3153
+ (n.match(Zn) ? t : r).push(n);
3154
3154
  }), {
3155
3155
  valid: t,
3156
3156
  invalid: r
@@ -3164,7 +3164,7 @@ function Tt(e, t, r) {
3164
3164
  });
3165
3165
  }
3166
3166
  if (r && typeof r == "object") try {
3167
- if (!Zn(e, r).length) {
3167
+ if (!Xn(e, r).length) {
3168
3168
  n();
3169
3169
  return;
3170
3170
  }
@@ -3173,29 +3173,29 @@ function Tt(e, t, r) {
3173
3173
  }
3174
3174
  n(), Ns(e);
3175
3175
  }
3176
- function xn(e, t) {
3176
+ function yn(e, t) {
3177
3177
  e instanceof Promise ? e.then((r) => {
3178
3178
  t(r);
3179
3179
  }).catch(() => {
3180
3180
  t(null);
3181
3181
  }) : t(e);
3182
3182
  }
3183
- function _s(e, t) {
3183
+ function Cs(e, t) {
3184
3184
  e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(t).sort() : e.iconsToLoad = t, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
3185
3185
  e.iconsQueueFlag = !1;
3186
3186
  const { provider: r, prefix: n } = e, o = e.iconsToLoad;
3187
3187
  if (delete e.iconsToLoad, !o || !o.length) return;
3188
3188
  const s = e.loadIcon;
3189
3189
  if (e.loadIcons && (o.length > 1 || !s)) {
3190
- xn(e.loadIcons(o, n, r), (g) => {
3190
+ yn(e.loadIcons(o, n, r), (g) => {
3191
3191
  Tt(e, o, g);
3192
3192
  });
3193
3193
  return;
3194
3194
  }
3195
3195
  if (s) {
3196
3196
  o.forEach((g) => {
3197
- const b = s(g, n, r);
3198
- xn(b, (y) => {
3197
+ const x = s(g, n, r);
3198
+ yn(x, (y) => {
3199
3199
  const _ = y ? {
3200
3200
  prefix: n,
3201
3201
  icons: { [g]: y }
@@ -3205,57 +3205,57 @@ function _s(e, t) {
3205
3205
  });
3206
3206
  return;
3207
3207
  }
3208
- const { valid: i, invalid: c } = Cs(o);
3209
- if (c.length && Tt(e, c, null), !i.length) return;
3210
- const l = n.match(eo) ? kr(r) : null;
3208
+ const { valid: i, invalid: d } = Ss(o);
3209
+ if (d.length && Tt(e, d, null), !i.length) return;
3210
+ const l = n.match(Zn) ? kr(r) : null;
3211
3211
  if (!l) {
3212
3212
  Tt(e, i, null);
3213
3213
  return;
3214
3214
  }
3215
3215
  l.prepare(r, n, i).forEach((g) => {
3216
- Ss(r, g, (b) => {
3217
- Tt(e, g.icons, b);
3216
+ ks(r, g, (x) => {
3217
+ Tt(e, g.icons, x);
3218
3218
  });
3219
3219
  });
3220
3220
  }));
3221
3221
  }
3222
- const Is = (e, t) => {
3223
- const r = xs(e, !0, to()), n = ys(r);
3222
+ const _s = (e, t) => {
3223
+ const r = ys(e, !0, eo()), n = ws(r);
3224
3224
  if (!n.pending.length) {
3225
3225
  let l = !0;
3226
3226
  return t && setTimeout(() => {
3227
- l && t(n.loaded, n.missing, n.pending, yn);
3227
+ l && t(n.loaded, n.missing, n.pending, wn);
3228
3228
  }), () => {
3229
3229
  l = !1;
3230
3230
  };
3231
3231
  }
3232
3232
  const o = /* @__PURE__ */ Object.create(null), s = [];
3233
- let i, c;
3233
+ let i, d;
3234
3234
  return n.pending.forEach((l) => {
3235
3235
  const { provider: p, prefix: g } = l;
3236
- if (g === c && p === i) return;
3237
- i = p, c = g, s.push(yt(p, g));
3238
- const b = o[p] || (o[p] = /* @__PURE__ */ Object.create(null));
3239
- b[g] || (b[g] = []);
3236
+ if (g === d && p === i) return;
3237
+ i = p, d = g, s.push(yt(p, g));
3238
+ const x = o[p] || (o[p] = /* @__PURE__ */ Object.create(null));
3239
+ x[g] || (x[g] = []);
3240
3240
  }), n.pending.forEach((l) => {
3241
- const { provider: p, prefix: g, name: b } = l, y = yt(p, g), _ = y.pendingIcons || (y.pendingIcons = /* @__PURE__ */ new Set());
3242
- _.has(b) || (_.add(b), o[p][g].push(b));
3241
+ const { provider: p, prefix: g, name: x } = l, y = yt(p, g), _ = y.pendingIcons || (y.pendingIcons = /* @__PURE__ */ new Set());
3242
+ _.has(x) || (_.add(x), o[p][g].push(x));
3243
3243
  }), s.forEach((l) => {
3244
3244
  const p = o[l.provider][l.prefix];
3245
- p.length && _s(l, p);
3246
- }), t ? ws(t, n, s) : yn;
3245
+ p.length && Cs(l, p);
3246
+ }), t ? gs(t, n, s) : wn;
3247
3247
  };
3248
- function Fs(e, t) {
3248
+ function Is(e, t) {
3249
3249
  const r = { ...e };
3250
3250
  for (const n in t) {
3251
3251
  const o = t[n], s = typeof o;
3252
- n in ro ? (o === null || o && (s === "string" || s === "number")) && (r[n] = o) : s === typeof r[n] && (r[n] = n === "rotate" ? o % 4 : o);
3252
+ n in to ? (o === null || o && (s === "string" || s === "number")) && (r[n] = o) : s === typeof r[n] && (r[n] = n === "rotate" ? o % 4 : o);
3253
3253
  }
3254
3254
  return r;
3255
3255
  }
3256
- const Ps = /[\s,]+/;
3257
- function Ts(e, t) {
3258
- t.split(Ps).forEach((r) => {
3256
+ const Fs = /[\s,]+/;
3257
+ function Ps(e, t) {
3258
+ t.split(Fs).forEach((r) => {
3259
3259
  switch (r.trim()) {
3260
3260
  case "horizontal":
3261
3261
  e.hFlip = !0;
@@ -3266,7 +3266,7 @@ function Ts(e, t) {
3266
3266
  }
3267
3267
  });
3268
3268
  }
3269
- function Es(e, t = 0) {
3269
+ function Ts(e, t = 0) {
3270
3270
  const r = e.replace(/^-?[0-9.]*/, "");
3271
3271
  function n(o) {
3272
3272
  for (; o < 0; ) o += 4;
@@ -3291,69 +3291,69 @@ function Es(e, t = 0) {
3291
3291
  }
3292
3292
  return t;
3293
3293
  }
3294
- function Os(e, t) {
3294
+ function Es(e, t) {
3295
3295
  let r = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
3296
3296
  for (const n in t) r += " " + n + '="' + t[n] + '"';
3297
3297
  return '<svg xmlns="http://www.w3.org/2000/svg"' + r + ">" + e + "</svg>";
3298
3298
  }
3299
- function As(e) {
3299
+ function Os(e) {
3300
3300
  return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
3301
3301
  }
3302
- function js(e) {
3303
- return "data:image/svg+xml," + As(e);
3302
+ function As(e) {
3303
+ return "data:image/svg+xml," + Os(e);
3304
3304
  }
3305
- function $s(e) {
3306
- return 'url("' + js(e) + '")';
3305
+ function js(e) {
3306
+ return 'url("' + As(e) + '")';
3307
3307
  }
3308
3308
  let Et;
3309
- function Ls() {
3309
+ function $s() {
3310
3310
  try {
3311
3311
  Et = window.trustedTypes.createPolicy("iconify", { createHTML: (e) => e });
3312
3312
  } catch {
3313
3313
  Et = null;
3314
3314
  }
3315
3315
  }
3316
- function Ds(e) {
3317
- return Et === void 0 && Ls(), Et ? Et.createHTML(e) : e;
3316
+ function Ls(e) {
3317
+ return Et === void 0 && $s(), Et ? Et.createHTML(e) : e;
3318
3318
  }
3319
- const so = {
3320
- ...no,
3319
+ const ao = {
3320
+ ...ro,
3321
3321
  inline: !1
3322
- }, zs = {
3322
+ }, Ds = {
3323
3323
  xmlns: "http://www.w3.org/2000/svg",
3324
3324
  xmlnsXlink: "http://www.w3.org/1999/xlink",
3325
3325
  "aria-hidden": !0,
3326
3326
  role: "img"
3327
- }, Ms = {
3327
+ }, zs = {
3328
3328
  display: "inline-block"
3329
- }, Sr = {
3329
+ }, Nr = {
3330
3330
  backgroundColor: "currentColor"
3331
- }, io = {
3331
+ }, so = {
3332
3332
  backgroundColor: "transparent"
3333
3333
  }, bn = {
3334
3334
  Image: "var(--svg)",
3335
3335
  Repeat: "no-repeat",
3336
3336
  Size: "100% 100%"
3337
- }, vn = {
3338
- WebkitMask: Sr,
3339
- mask: Sr,
3340
- background: io
3337
+ }, xn = {
3338
+ WebkitMask: Nr,
3339
+ mask: Nr,
3340
+ background: so
3341
3341
  };
3342
- for (const e in vn) {
3343
- const t = vn[e];
3342
+ for (const e in xn) {
3343
+ const t = xn[e];
3344
3344
  for (const r in bn)
3345
3345
  t[e + r] = bn[r];
3346
3346
  }
3347
- const Bs = {
3348
- ...so,
3347
+ const Ms = {
3348
+ ...ao,
3349
3349
  inline: !0
3350
3350
  };
3351
- function kn(e) {
3351
+ function vn(e) {
3352
3352
  return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
3353
3353
  }
3354
- const Us = (e, t, r) => {
3355
- const n = t.inline ? Bs : so, o = Fs(n, t), s = t.mode || "svg", i = {}, c = t.style || {}, l = {
3356
- ...s === "svg" ? zs : {}
3354
+ const Bs = (e, t, r) => {
3355
+ const n = t.inline ? Ms : ao, o = Is(n, t), s = t.mode || "svg", i = {}, d = t.style || {}, l = {
3356
+ ...s === "svg" ? Ds : {}
3357
3357
  };
3358
3358
  if (r) {
3359
3359
  const k = tr(r, !1, !0);
@@ -3396,7 +3396,7 @@ const Us = (e, t, r) => {
3396
3396
  break;
3397
3397
  // Flip as string: 'horizontal,vertical'
3398
3398
  case "flip":
3399
- typeof I == "string" && Ts(o, I);
3399
+ typeof I == "string" && Ps(o, I);
3400
3400
  break;
3401
3401
  // Color: copy to style
3402
3402
  case "color":
@@ -3404,7 +3404,7 @@ const Us = (e, t, r) => {
3404
3404
  break;
3405
3405
  // Rotation as string
3406
3406
  case "rotate":
3407
- typeof I == "string" ? o[k] = Es(I) : typeof I == "number" && (o[k] = I);
3407
+ typeof I == "string" ? o[k] = Ts(I) : typeof I == "number" && (o[k] = I);
3408
3408
  break;
3409
3409
  // Remove aria-hidden
3410
3410
  case "ariaHidden":
@@ -3416,34 +3416,34 @@ const Us = (e, t, r) => {
3416
3416
  n[k] === void 0 && (l[k] = I);
3417
3417
  }
3418
3418
  }
3419
- const p = ts(e, o), g = p.attributes;
3419
+ const p = es(e, o), g = p.attributes;
3420
3420
  if (o.inline && (i.verticalAlign = "-0.125em"), s === "svg") {
3421
3421
  l.style = {
3422
3422
  ...i,
3423
- ...c
3423
+ ...d
3424
3424
  }, Object.assign(l, g);
3425
3425
  let k = 0, I = t.id;
3426
3426
  return typeof I == "string" && (I = I.replace(/-/g, "_")), l.dangerouslySetInnerHTML = {
3427
- __html: Ds(as(p.body, I ? () => I + "ID" + k++ : "iconifyReact"))
3427
+ __html: Ls(os(p.body, I ? () => I + "ID" + k++ : "iconifyReact"))
3428
3428
  }, fr("svg", l);
3429
3429
  }
3430
- const { body: b, width: y, height: _ } = e, N = s === "mask" || (s === "bg" ? !1 : b.indexOf("currentColor") !== -1), T = Os(b, {
3430
+ const { body: x, width: y, height: _ } = e, S = s === "mask" || (s === "bg" ? !1 : x.indexOf("currentColor") !== -1), T = Es(x, {
3431
3431
  ...g,
3432
3432
  width: y + "",
3433
3433
  height: _ + ""
3434
3434
  });
3435
3435
  return l.style = {
3436
3436
  ...i,
3437
- "--svg": $s(T),
3438
- width: kn(g.width),
3439
- height: kn(g.height),
3440
- ...Ms,
3441
- ...N ? Sr : io,
3442
- ...c
3437
+ "--svg": js(T),
3438
+ width: vn(g.width),
3439
+ height: vn(g.height),
3440
+ ...zs,
3441
+ ...S ? Nr : so,
3442
+ ...d
3443
3443
  }, fr("span", l);
3444
3444
  };
3445
- to(!0);
3446
- ss("", hs);
3445
+ eo(!0);
3446
+ as("", ms);
3447
3447
  if (typeof document < "u" && typeof window < "u") {
3448
3448
  const e = window;
3449
3449
  if (e.IconifyPreload !== void 0) {
@@ -3453,7 +3453,7 @@ if (typeof document < "u" && typeof window < "u") {
3453
3453
  // Check if item is an object and not null/array
3454
3454
  (typeof n != "object" || n === null || n instanceof Array || // Check for 'icons' and 'prefix'
3455
3455
  typeof n.icons != "object" || typeof n.prefix != "string" || // Add icon set
3456
- !Ka(n)) && console.error(r);
3456
+ !Ja(n)) && console.error(r);
3457
3457
  } catch {
3458
3458
  console.error(r);
3459
3459
  }
@@ -3468,27 +3468,27 @@ if (typeof document < "u" && typeof window < "u") {
3468
3468
  const o = t[r];
3469
3469
  if (typeof o != "object" || !o || o.resources === void 0)
3470
3470
  continue;
3471
- is(r, o) || console.error(n);
3471
+ ss(r, o) || console.error(n);
3472
3472
  } catch {
3473
3473
  console.error(n);
3474
3474
  }
3475
3475
  }
3476
3476
  }
3477
3477
  }
3478
- function lo(e) {
3478
+ function io(e) {
3479
3479
  const [t, r] = C(!!e.ssr), [n, o] = C({});
3480
3480
  function s(_) {
3481
3481
  if (_) {
3482
- const N = e.icon;
3483
- if (typeof N == "object")
3482
+ const S = e.icon;
3483
+ if (typeof S == "object")
3484
3484
  return {
3485
3485
  name: "",
3486
- data: N
3486
+ data: S
3487
3487
  };
3488
- const T = hn(N);
3488
+ const T = mn(S);
3489
3489
  if (T)
3490
3490
  return {
3491
- name: N,
3491
+ name: S,
3492
3492
  data: T
3493
3493
  };
3494
3494
  }
@@ -3496,168 +3496,147 @@ function lo(e) {
3496
3496
  name: ""
3497
3497
  };
3498
3498
  }
3499
- const [i, c] = C(s(!!e.ssr));
3499
+ const [i, d] = C(s(!!e.ssr));
3500
3500
  function l() {
3501
3501
  const _ = n.callback;
3502
3502
  _ && (_(), o({}));
3503
3503
  }
3504
3504
  function p(_) {
3505
3505
  if (JSON.stringify(i) !== JSON.stringify(_))
3506
- return l(), c(_), !0;
3506
+ return l(), d(_), !0;
3507
3507
  }
3508
3508
  function g() {
3509
3509
  var _;
3510
- const N = e.icon;
3511
- if (typeof N == "object") {
3510
+ const S = e.icon;
3511
+ if (typeof S == "object") {
3512
3512
  p({
3513
3513
  name: "",
3514
- data: N
3514
+ data: S
3515
3515
  });
3516
3516
  return;
3517
3517
  }
3518
- const T = hn(N);
3518
+ const T = mn(S);
3519
3519
  if (p({
3520
- name: N,
3520
+ name: S,
3521
3521
  data: T
3522
3522
  }))
3523
3523
  if (T === void 0) {
3524
- const k = Is([N], g);
3524
+ const k = _s([S], g);
3525
3525
  o({
3526
3526
  callback: k
3527
3527
  });
3528
- } else T && ((_ = e.onLoad) === null || _ === void 0 || _.call(e, N));
3528
+ } else T && ((_ = e.onLoad) === null || _ === void 0 || _.call(e, S));
3529
3529
  }
3530
3530
  Ce(() => (r(!0), l), []), Ce(() => {
3531
3531
  t && g();
3532
3532
  }, [e.icon, t]);
3533
- const { name: b, data: y } = i;
3534
- return y ? Us({
3533
+ const { name: x, data: y } = i;
3534
+ return y ? Bs({
3535
3535
  ...Or,
3536
3536
  ...y
3537
- }, e, b) : e.children ? e.children : e.fallback ? e.fallback : fr("span", {});
3537
+ }, e, x) : e.children ? e.children : e.fallback ? e.fallback : fr("span", {});
3538
3538
  }
3539
- const se = Tn((e, t) => lo({
3539
+ const se = Pn((e, t) => io({
3540
3540
  ...e,
3541
3541
  _ref: t
3542
3542
  }));
3543
- Tn((e, t) => lo({
3543
+ Pn((e, t) => io({
3544
3544
  inline: !0,
3545
3545
  ...e,
3546
3546
  _ref: t
3547
3547
  }));
3548
- const Je = "USD", Sn = (e) => {
3548
+ const Je = "USD", kn = (e) => {
3549
3549
  var n, o, s;
3550
3550
  const t = e == null ? void 0 : e.availability;
3551
3551
  if (!t) return !1;
3552
3552
  const r = (s = (o = (n = t.channels) == null ? void 0 : n.results) == null ? void 0 : o[0]) == null ? void 0 : s.availability;
3553
3553
  return r ? r.isOnStock === !0 && (r.availableQuantity ?? 0) > 0 : !1;
3554
- }, Nr = (e, t = Je) => {
3554
+ }, Sr = (e, t = Je) => {
3555
3555
  const r = (e == null ? void 0 : e.prices) ?? [];
3556
3556
  if (!r.length) return null;
3557
3557
  const n = (i) => {
3558
3558
  var p, g;
3559
- const c = i.find((b) => {
3559
+ const d = i.find((x) => {
3560
3560
  var y;
3561
- return !!((y = b.discounted) != null && y.value);
3561
+ return !!((y = x.discounted) != null && y.value);
3562
3562
  });
3563
- if (c)
3563
+ if (d)
3564
3564
  return {
3565
- cent: c.discounted.value.centAmount,
3566
- cur: c.discounted.value.currencyCode,
3567
- regularCent: (p = c.value) == null ? void 0 : p.centAmount
3565
+ cent: d.discounted.value.centAmount,
3566
+ cur: d.discounted.value.currencyCode,
3567
+ regularCent: (p = d.value) == null ? void 0 : p.centAmount
3568
3568
  };
3569
3569
  const l = (g = i[0]) == null ? void 0 : g.value;
3570
3570
  return l ? { cent: l.centAmount, cur: l.currencyCode } : null;
3571
3571
  }, o = r.filter(
3572
3572
  (i) => {
3573
- var c, l;
3574
- return ((l = ((c = i.discounted) == null ? void 0 : c.value) || i.value) == null ? void 0 : l.currencyCode) === t;
3573
+ var d, l;
3574
+ return ((l = ((d = i.discounted) == null ? void 0 : d.value) || i.value) == null ? void 0 : l.currencyCode) === t;
3575
3575
  }
3576
3576
  ), s = n(o);
3577
3577
  return s || n(r) || null;
3578
- }, qs = (e, t) => {
3578
+ }, Us = (e, t) => {
3579
3579
  if (!Array.isArray(e)) return "";
3580
3580
  const r = e.find((n) => n.name === t) || e.find((n) => {
3581
3581
  var o;
3582
3582
  return ((o = n.name) == null ? void 0 : o.toLowerCase()) === t.toLowerCase();
3583
3583
  });
3584
3584
  return !r || !r.value ? "" : typeof r.value == "object" ? r.value.label || "" : r.value;
3585
- }, Rs = (e) => {
3585
+ }, qs = (e) => {
3586
3586
  let t = "";
3587
3587
  if (Array.isArray(e)) {
3588
3588
  const r = e.find((n) => n.name === "size") || e.find((n) => n.name === "Size");
3589
3589
  r && r.value && (t = typeof r.value == "object" ? r.value.label || "" : r.value);
3590
3590
  }
3591
3591
  return { sizeLabel: t };
3592
- }, Ve = (e) => qs((e == null ? void 0 : e.attributesRaw) ?? [], "color"), tt = (e) => Rs((e == null ? void 0 : e.attributesRaw) ?? []).sizeLabel, st = (e, t, r) => {
3592
+ }, Ye = (e) => Us((e == null ? void 0 : e.attributesRaw) ?? [], "color"), tt = (e) => qs((e == null ? void 0 : e.attributesRaw) ?? []).sizeLabel, st = (e, t, r) => {
3593
3593
  for (const n of e) {
3594
- const o = Ve(n.variant), s = tt(n.variant);
3594
+ const o = Ye(n.variant), s = tt(n.variant);
3595
3595
  if ((t ? o === t : !0) && (r ? s === r : !0)) return n;
3596
3596
  }
3597
3597
  return null;
3598
- }, Hs = ({
3599
- children: e,
3600
- value: t,
3601
- name: r,
3602
- href: n,
3603
- disabled: o,
3604
- selected: s,
3605
- isFocusable: i,
3606
- variant: c = "square",
3607
- onChange: l
3608
- }) => /* @__PURE__ */ a(
3598
+ }, Rs = ({
3599
+ value: e,
3600
+ name: t,
3601
+ variant: r = "square",
3602
+ image: n,
3603
+ selected: o,
3604
+ onClick: s
3605
+ }) => /* @__PURE__ */ c(
3609
3606
  "button",
3610
3607
  {
3611
- role: "radio",
3612
- "aria-checked": s,
3613
- disabled: o,
3614
- tabIndex: i ? 0 : -1,
3615
- onClick: (g) => {
3616
- g.preventDefault(), !o && (l == null || l(t, r));
3617
- },
3608
+ onClick: s,
3618
3609
  className: `
3619
- flex items-center justify-center
3620
- overflow-hidden cursor-pointer
3621
- border rounded-sm
3622
- ${c === "circle" ? "rounded-full h-8 w-8" : "rounded-md h-10 px-3"}
3623
- ${s ? "border-black" : "border-gray-300"}
3624
- ${o ? "opacity-40 cursor-not-allowed" : ""}
3610
+ flex items-center justify-center border
3611
+ ${r === "circle" ? "h-9 w-9 rounded-full" : "h-12 w-12 rounded-md"}
3612
+ bg-white cursor-pointer relative
3613
+ ${o ? "border-black" : "border-gray-300 hover:border-gray-500"}
3625
3614
  `,
3626
- style: { background: "transparent" },
3627
- children: typeof e == "string" ? /* @__PURE__ */ a("span", { className: "text-xs", children: e }) : e
3615
+ children: [
3616
+ r === "circle" ? /* @__PURE__ */ a(
3617
+ "div",
3618
+ {
3619
+ className: "h-full w-full rounded-full",
3620
+ style: {
3621
+ backgroundImage: `url(${(n == null ? void 0 : n.disBaseLink) || (n == null ? void 0 : n.link) || ""})`,
3622
+ backgroundSize: "cover",
3623
+ backgroundPosition: "center",
3624
+ backgroundColor: t == null ? void 0 : t.toLowerCase()
3625
+ }
3626
+ }
3627
+ ) : /* @__PURE__ */ a("span", { className: "text-base font-medium", children: e }),
3628
+ o && r === "circle" && /* @__PURE__ */ a("div", { className: "absolute inset-0 rounded-full border-2 border-black pointer-events-none" })
3629
+ ]
3628
3630
  }
3629
- ), Ys = ({
3630
- children: e,
3631
- value: t,
3632
- label: r,
3633
- displayName: n,
3634
- onChange: o
3635
- }) => {
3636
- const s = Be(null);
3637
- return /* @__PURE__ */ d("div", { className: "mb-4", children: [
3638
- /* @__PURE__ */ a("div", { className: "text-sm font-medium mb-2", children: r }),
3639
- /* @__PURE__ */ a(
3640
- "div",
3641
- {
3642
- role: "radiogroup",
3643
- "aria-label": r,
3644
- className: "flex gap-2 flex-wrap",
3645
- ref: s,
3646
- children: Vr.Children.map(
3647
- e,
3648
- (i) => Vr.cloneElement(i, {
3649
- selected: i.props.value === t,
3650
- onChange: o
3651
- })
3652
- )
3653
- }
3654
- ),
3655
- n && /* @__PURE__ */ d("div", { className: "mt-1 text-xs text-gray-500", children: [
3656
- "Selected: ",
3657
- n
3658
- ] })
3659
- ] });
3660
- }, et = (e) => e.charAt(0).toUpperCase() + e.slice(1), it = {
3631
+ ), Hs = ({ label: e, selectedValue: t, onChange: r, children: n }) => /* @__PURE__ */ c("div", { className: "mb-6", children: [
3632
+ /* @__PURE__ */ c("div", { className: "font-medium text-lg mb-2", children: [
3633
+ e,
3634
+ ":",
3635
+ " ",
3636
+ /* @__PURE__ */ a("span", { className: "font-normal text-gray-700", children: t || "" })
3637
+ ] }),
3638
+ /* @__PURE__ */ a("div", { className: "flex items-center gap-3 flex-wrap", children: n })
3639
+ ] }), et = (e) => e.charAt(0).toUpperCase() + e.slice(1), it = {
3661
3640
  standard: {
3662
3641
  label: "Standard Delivery",
3663
3642
  fee: 0,
@@ -3676,7 +3655,7 @@ const Je = "USD", Sn = (e) => {
3676
3655
  subtitle: "Available in select locations (+$10)",
3677
3656
  icon: "mdi:truck-fast-outline"
3678
3657
  }
3679
- }, Vs = {
3658
+ }, Ys = {
3680
3659
  standard: "GROUND",
3681
3660
  express: "2-DAY SHIPPING",
3682
3661
  sameday: "OVERNIGHT"
@@ -3689,41 +3668,41 @@ const Je = "USD", Sn = (e) => {
3689
3668
  } catch {
3690
3669
  return `${t} ${e.toFixed(2)}`;
3691
3670
  }
3692
- }, co = (e) => e == null ? void 0 : e.masterVariant, Nn = (e) => Array.isArray(e == null ? void 0 : e.variants) ? e.variants : [], Jt = (e) => {
3693
- const t = co(e);
3671
+ }, lo = (e) => e == null ? void 0 : e.masterVariant, Nn = (e) => Array.isArray(e == null ? void 0 : e.variants) ? e.variants : [], Jt = (e) => {
3672
+ const t = lo(e);
3694
3673
  return t ? [t, ...Nn(e)] : Nn(e);
3695
- }, Js = (e, t = 0) => Jt(e)[t], Ks = (e) => {
3674
+ }, Vs = (e, t = 0) => Jt(e)[t], Js = (e) => {
3696
3675
  var t, r;
3697
3676
  return ((r = (t = e == null ? void 0 : e.images) == null ? void 0 : t[0]) == null ? void 0 : r.url) ?? "";
3698
- }, Cn = (e, t) => {
3699
- var r, n, o, s, i, c, l, p;
3700
- return Ks(t) || ((s = (o = (n = (r = e.imageGroups) == null ? void 0 : r[0]) == null ? void 0 : n.images) == null ? void 0 : o[0]) == null ? void 0 : s.link) || ((p = (l = (c = (i = e.image_groups) == null ? void 0 : i[0]) == null ? void 0 : c.images) == null ? void 0 : l[0]) == null ? void 0 : p.link) || "";
3701
- }, _n = (e) => (e == null ? void 0 : e.name) || (e == null ? void 0 : e.title) || (e == null ? void 0 : e.productName) || "any", Kt = (e) => {
3702
- var s, i, c, l, p, g;
3703
- const t = e ? Nr(e, Je) : null;
3677
+ }, Sn = (e, t) => {
3678
+ var r, n, o, s, i, d, l, p;
3679
+ return Js(t) || ((s = (o = (n = (r = e.imageGroups) == null ? void 0 : r[0]) == null ? void 0 : n.images) == null ? void 0 : o[0]) == null ? void 0 : s.link) || ((p = (l = (d = (i = e.image_groups) == null ? void 0 : i[0]) == null ? void 0 : d.images) == null ? void 0 : l[0]) == null ? void 0 : p.link) || "";
3680
+ }, Cn = (e) => (e == null ? void 0 : e.name) || (e == null ? void 0 : e.title) || (e == null ? void 0 : e.productName) || "any", Kt = (e) => {
3681
+ var s, i, d, l, p, g;
3682
+ const t = e ? Sr(e, Je) : null;
3704
3683
  if (t != null && t.cent && (t != null && t.cur))
3705
3684
  return {
3706
3685
  amount: +(t.cent / 100),
3707
3686
  currency: t.cur,
3708
3687
  regularAmount: t.regularCent ? t.regularCent / 100 : void 0
3709
3688
  };
3710
- const r = (c = (i = (s = e == null ? void 0 : e.prices) == null ? void 0 : s[0]) == null ? void 0 : i.value) == null ? void 0 : c.centAmount, n = ((g = (p = (l = e == null ? void 0 : e.prices) == null ? void 0 : l[0]) == null ? void 0 : p.value) == null ? void 0 : g.currencyCode) ?? Je;
3689
+ const r = (d = (i = (s = e == null ? void 0 : e.prices) == null ? void 0 : s[0]) == null ? void 0 : i.value) == null ? void 0 : d.centAmount, n = ((g = (p = (l = e == null ? void 0 : e.prices) == null ? void 0 : l[0]) == null ? void 0 : p.value) == null ? void 0 : g.currencyCode) ?? Je;
3711
3690
  return { amount: Number.isFinite(r) ? +(Number(r) / 100) : 0, currency: n };
3712
- }, In = (e, t) => {
3691
+ }, _n = (e, t) => {
3713
3692
  const { amount: r } = Kt(t);
3714
3693
  if (r) return r;
3715
3694
  const n = (e == null ? void 0 : e.price) ?? (e == null ? void 0 : e.sellingPrice) ?? (e == null ? void 0 : e.unitPrice) ?? (e == null ? void 0 : e.mrp) ?? 0, o = Number(n);
3716
3695
  return Number.isFinite(o) ? o : 0;
3717
- }, Fn = (e) => {
3696
+ }, In = (e) => {
3718
3697
  var t;
3719
3698
  return (e == null ? void 0 : e.sku) || ((t = e == null ? void 0 : e.variant) == null ? void 0 : t.sku) || (e == null ? void 0 : e.selectedSku) || "";
3720
- }, Ws = (e) => {
3699
+ }, Ks = (e) => {
3721
3700
  var t;
3722
3701
  return (e == null ? void 0 : e.color) || (e == null ? void 0 : e.selectedColor) || ((t = e == null ? void 0 : e.variant) == null ? void 0 : t.color) || "";
3723
- }, Gs = (e) => {
3702
+ }, Ws = (e) => {
3724
3703
  var t;
3725
3704
  return (e == null ? void 0 : e.size) || (e == null ? void 0 : e.selectedSize) || ((t = e == null ? void 0 : e.variant) == null ? void 0 : t.size) || "";
3726
- }, Pn = 20, pi = ({
3705
+ }, Fn = 20, hi = ({
3727
3706
  open: e,
3728
3707
  onClose: t,
3729
3708
  product: r,
@@ -3733,28 +3712,28 @@ const Je = "USD", Sn = (e) => {
3733
3712
  variationAttributes: i
3734
3713
  }) => {
3735
3714
  console.log(r, "the product for ai shopping");
3736
- const c = null, l = null, p = Jt(r), g = Math.min(
3715
+ const d = null, l = null, p = Jt(r), g = Math.min(
3737
3716
  Math.max(0, n || 0),
3738
3717
  Math.max(0, p.length - 1)
3739
- ), b = p.length, [y, _] = C(g), [N, T] = C(null), [k, I] = C(null), K = Be(null), U = Be(null), w = Js(r, y), [Fe, E] = C(""), [W, fe] = C(!1), [ke, ne] = C(!1), [Pe, Se] = C(!1), [ye, q] = C(""), [j, me] = C(!1), [G, We] = C(null), [Ge, Z] = C([]), [ht, bt] = C([]), [z, Le] = C([]), [xe, Te] = C(!1), [vt, rr] = C(), [h, B] = C(!0), [O, H] = C(!1), [Y, A] = C(!1), [Q, oe] = C("standard"), [$, R] = C(!1), [Ee, he] = C(!1), [ie, _e] = C("card"), [ee, X] = C(!1), [Oe, S] = C(!1), [le, L] = C(!1), [ce, De] = C(null), [qe, kt] = C(null), [St, Re] = C(""), [jt, $t] = C(!1), [D, Qe] = C({}), Lt = (u) => (m, f) => {
3718
+ ), x = p.length, [y, _] = C(g), [S, T] = C(null), [k, I] = C(null), K = Ve(null), U = Ve(null), w = Vs(r, y), [Fe, E] = C(""), [W, fe] = C(!1), [ke, ne] = C(!1), [Pe, Ne] = C(!1), [ye, q] = C(""), [j, me] = C(!1), [G, We] = C(null), [Ge, Z] = C([]), [ht, xt] = C([]), [z, Le] = C([]), [be, Te] = C(!1), [vt, rr] = C(), [h, B] = C(!0), [O, H] = C(!1), [Y, A] = C(!1), [Q, oe] = C("standard"), [$, R] = C(!1), [Ee, he] = C(!1), [ie, _e] = C("card"), [ee, X] = C(!1), [Oe, N] = C(!1), [le, L] = C(!1), [ce, De] = C(null), [Ue, kt] = C(null), [Nt, qe] = C(""), [jt, $t] = C(!1), [D, Qe] = C({}), Lt = (u) => (m, f) => {
3740
3719
  Qe((v) => ({
3741
3720
  ...v,
3742
3721
  [u]: { value: m, name: f }
3743
3722
  }));
3744
- }, Xe = Be(null);
3723
+ }, Xe = Ve(null);
3745
3724
  Ce(() => {
3746
3725
  const u = Jt(r), m = Math.min(
3747
3726
  Math.max(0, n || 0),
3748
3727
  Math.max(0, u.length - 1)
3749
3728
  );
3750
3729
  _(m);
3751
- const f = co(r), v = Ve(f), F = tt(f);
3730
+ const f = lo(r), v = Ye(f), F = tt(f);
3752
3731
  K.current = v || null, U.current = F || null, T(v || null), I(F || null);
3753
3732
  }, [n, r]), Ce(() => {
3754
3733
  Xe.current && (Xe.current.scrollTop = Xe.current.scrollHeight);
3755
3734
  }, [
3756
3735
  Ge,
3757
- xe,
3736
+ be,
3758
3737
  O,
3759
3738
  Y,
3760
3739
  $,
@@ -3765,21 +3744,21 @@ const Je = "USD", Sn = (e) => {
3765
3744
  W,
3766
3745
  ke
3767
3746
  ]);
3768
- const Ie = "var(--tanya)", nr = "var(--tanya-contrast)", Dt = Ie, uo = "#804c9e", fo = () => {
3747
+ const Ie = "var(--tanya)", nr = "var(--tanya-contrast)", Dt = Ie, co = "#804c9e", uo = () => {
3769
3748
  console.log("AgenticShopping feedback:", {
3770
- rating: qe,
3771
- comment: St
3749
+ rating: Ue,
3750
+ comment: Nt
3772
3751
  }), $t(!0);
3773
- }, mo = () => {
3774
- kt(null), Re(""), $t(!0);
3752
+ }, fo = () => {
3753
+ kt(null), qe(""), $t(!0);
3775
3754
  }, Lr = (u) => {
3776
3755
  const f = ((u == null ? void 0 : u.intentMandateId) || (u == null ? void 0 : u.intent_mandate_id) || (u == null ? void 0 : u.id) || null) ?? ce;
3777
- return e ? /* @__PURE__ */ d("div", { className: "mt-3 flex items-start gap-3 rounded-lg border border-green-200 bg-green-50 p-4 text-green-800", children: [
3756
+ return e ? /* @__PURE__ */ c("div", { className: "mt-3 flex items-start gap-3 rounded-lg border border-green-200 bg-green-50 p-4 text-green-800", children: [
3778
3757
  /* @__PURE__ */ a("div", { className: "success-tick-animation", children: /* @__PURE__ */ a(se, { icon: "mdi:check-circle", width: "28", color: "#16a34a" }) }),
3779
- /* @__PURE__ */ d("div", { className: "text-sm w-full", children: [
3758
+ /* @__PURE__ */ c("div", { className: "text-sm w-full", children: [
3780
3759
  /* @__PURE__ */ a("div", { className: "font-semibold", children: "Success!" }),
3781
3760
  /* @__PURE__ */ a("div", { children: "Your smart order has been saved. I’ll watch the price and auto-purchase when the conditions are met." }),
3782
- f && /* @__PURE__ */ d("div", { className: "mt-2 text-xs font-medium", children: [
3761
+ f && /* @__PURE__ */ c("div", { className: "mt-2 text-xs font-medium", children: [
3783
3762
  "Your Smart Order ID: ",
3784
3763
  /* @__PURE__ */ a(
3785
3764
  "span",
@@ -3789,7 +3768,7 @@ const Je = "USD", Sn = (e) => {
3789
3768
  }
3790
3769
  )
3791
3770
  ] }),
3792
- !jt && /* @__PURE__ */ d("div", { className: "mt-4 rounded-lg bg-white/70 p-3 text-gray-900", children: [
3771
+ !jt && /* @__PURE__ */ c("div", { className: "mt-4 rounded-lg bg-white/70 p-3 text-gray-900", children: [
3793
3772
  /* @__PURE__ */ a("h4", { className: "font-semibold mb-1", children: "Please post your feedback here" }),
3794
3773
  /* @__PURE__ */ a("p", { className: "text-sm text-gray-700 mb-3", children: "Rate us on how much our response was helpful" }),
3795
3774
  /* @__PURE__ */ a("div", { className: "flex items-center gap-1 mb-3", children: [1, 2, 3, 4, 5].map((v) => /* @__PURE__ */ a(
@@ -3801,7 +3780,7 @@ const Je = "USD", Sn = (e) => {
3801
3780
  children: /* @__PURE__ */ a(
3802
3781
  se,
3803
3782
  {
3804
- icon: qe && qe >= v ? "mdi:star" : "mdi:star-outline",
3783
+ icon: Ue && Ue >= v ? "mdi:star" : "mdi:star-outline",
3805
3784
  width: "20",
3806
3785
  className: "text-yellow-500"
3807
3786
  }
@@ -3813,19 +3792,19 @@ const Je = "USD", Sn = (e) => {
3813
3792
  /* @__PURE__ */ a(
3814
3793
  "textarea",
3815
3794
  {
3816
- value: St,
3817
- onChange: (v) => Re(v.target.value),
3795
+ value: Nt,
3796
+ onChange: (v) => qe(v.target.value),
3818
3797
  rows: 3,
3819
3798
  className: "mt-1 w-full rounded-md border border-gray-300 p-2 text-sm outline-none focus:ring-1 focus:ring-gray-300",
3820
3799
  placeholder: "Your feedback helps us improve..."
3821
3800
  }
3822
3801
  ),
3823
- /* @__PURE__ */ d("div", { className: "mt-3 flex justify-end gap-2", children: [
3802
+ /* @__PURE__ */ c("div", { className: "mt-3 flex justify-end gap-2", children: [
3824
3803
  /* @__PURE__ */ a(
3825
3804
  "button",
3826
3805
  {
3827
3806
  type: "button",
3828
- onClick: mo,
3807
+ onClick: fo,
3829
3808
  className: "px-4 py-2 rounded-full border text-sm font-medium hover:bg-gray-50",
3830
3809
  children: "Cancel"
3831
3810
  }
@@ -3834,10 +3813,10 @@ const Je = "USD", Sn = (e) => {
3834
3813
  "button",
3835
3814
  {
3836
3815
  type: "button",
3837
- onClick: fo,
3816
+ onClick: uo,
3838
3817
  className: "px-4 py-2 rounded-full text-sm font-semibold text-white shadow",
3839
3818
  style: { background: Ie },
3840
- disabled: !qe && !St.trim(),
3819
+ disabled: !Ue && !Nt.trim(),
3841
3820
  children: "Submit"
3842
3821
  }
3843
3822
  )
@@ -3846,13 +3825,13 @@ const Je = "USD", Sn = (e) => {
3846
3825
  jt && /* @__PURE__ */ a("div", { className: "mt-3 text-xs text-green-900 font-medium", children: "Thanks for your feedback! 💚" })
3847
3826
  ] })
3848
3827
  ] }) : null;
3849
- }, ho = async () => {
3828
+ }, mo = async () => {
3850
3829
  try {
3851
3830
  Le(o);
3852
3831
  } catch (u) {
3853
3832
  console.error("Error fetching addresses:", u);
3854
3833
  }
3855
- }, Nt = (u, m) => {
3834
+ }, St = (u, m) => {
3856
3835
  Z((f) => [
3857
3836
  ...f,
3858
3837
  {
@@ -3873,51 +3852,51 @@ const Je = "USD", Sn = (e) => {
3873
3852
  } : v
3874
3853
  )
3875
3854
  );
3876
- }, po = () => {
3855
+ }, ho = () => {
3877
3856
  Z(
3878
3857
  (u) => u.filter(
3879
3858
  (m) => !(m.query === "" && m.response !== "__SNAPSHOT__" && m.response !== "__TEXT__")
3880
3859
  )
3881
3860
  );
3882
3861
  }, zt = () => {
3883
- S(!1), Te(!1), A(!1), he(!1), H(!1), R(!1), X(!1), L(!1), me(!1), We(null), po(), fe(!1), ne(!1);
3884
- }, go = () => {
3885
- Te(!1), H(!1), A(!1), oe("standard"), R(!1), he(!1), _e("card"), X(!1), S(!1), L(!1), B(!0), We(null), localStorage.removeItem("agentic_order"), localStorage.removeItem("agentic_order_address"), localStorage.removeItem("agentic_order_delivery"), localStorage.removeItem("agentic_order_payment"), localStorage.removeItem("agentic_order_final");
3886
- }, Ae = Jr(() => Jt(r).map((m, f) => ({
3862
+ N(!1), Te(!1), A(!1), he(!1), H(!1), R(!1), X(!1), L(!1), me(!1), We(null), ho(), fe(!1), ne(!1);
3863
+ }, po = () => {
3864
+ Te(!1), H(!1), A(!1), oe("standard"), R(!1), he(!1), _e("card"), X(!1), N(!1), L(!1), B(!0), We(null), localStorage.removeItem("agentic_order"), localStorage.removeItem("agentic_order_address"), localStorage.removeItem("agentic_order_delivery"), localStorage.removeItem("agentic_order_payment"), localStorage.removeItem("agentic_order_final");
3865
+ }, Ae = Vr(() => Jt(r).map((m, f) => ({
3887
3866
  index: f,
3888
3867
  variant: m,
3889
3868
  images: ((m == null ? void 0 : m.images) || []).map((v) => (v == null ? void 0 : v.url) || "").filter(Boolean)
3890
- })), [r]), Ct = Jr(() => {
3869
+ })), [r]), Ct = Vr(() => {
3891
3870
  if (!Ae.length) return !1;
3892
- const u = N || void 0, m = k || void 0, f = (v, F) => {
3871
+ const u = S || void 0, m = k || void 0, f = (v, F) => {
3893
3872
  var M;
3894
- const x = st(
3873
+ const b = st(
3895
3874
  Ae,
3896
3875
  v || void 0,
3897
3876
  F || void 0
3898
3877
  );
3899
- return !!(x && ((M = x.variant) != null && M.sku));
3878
+ return !!(b && ((M = b.variant) != null && M.sku));
3900
3879
  };
3901
3880
  return u && m ? f(u, m) : u && !m ? f(u, null) : !u && m ? f(void 0, m) : !!(w && w.sku);
3902
- }, [Ae, N, k, w]), wo = Pe || j || !Ct, _t = (u) => {
3881
+ }, [Ae, S, k, w]), go = Pe || j || !Ct, _t = (u) => {
3903
3882
  const m = Number((u == null ? void 0 : u.quantity) ?? 1);
3904
3883
  return Number.isFinite(m) && m > 0 ? m : 1;
3905
3884
  }, zr = (u) => {
3906
3885
  const m = _t(u), f = Number((u == null ? void 0 : u.max_price_minor) ?? 0);
3907
- return Number.isFinite(f) && f > 0 ? +(f / 100) : +(In(r, w) * m);
3886
+ return Number.isFinite(f) && f > 0 ? +(f / 100) : +(_n(r, w) * m);
3908
3887
  }, Mr = (u) => {
3909
3888
  var P;
3910
- const m = G, f = Kt(w), v = u || (m == null ? void 0 : m.currency) || f.currency || Je, F = zr(m), x = +(F * 0.08).toFixed(2), M = ((P = it[Q]) == null ? void 0 : P.fee) || 0;
3911
- return { product_total: F, tax: x, shipping_fee: M, currency: v };
3889
+ const m = G, f = Kt(w), v = u || (m == null ? void 0 : m.currency) || f.currency || Je, F = zr(m), b = +(F * 0.08).toFixed(2), M = ((P = it[Q]) == null ? void 0 : P.fee) || 0;
3890
+ return { product_total: F, tax: b, shipping_fee: M, currency: v };
3912
3891
  }, or = async (u, m, f) => {
3913
- Dr(), go(), Se(!0), me(!0), fe(!1), ne(!1);
3914
- const v = ht.slice(-Pn);
3892
+ Dr(), po(), Ne(!0), me(!0), fe(!1), ne(!1);
3893
+ const v = ht.slice(-Fn);
3915
3894
  try {
3916
- const F = await hr(c, l);
3895
+ const F = await hr(d, l);
3917
3896
  if (!F) throw new Error("Failed to fetch token");
3918
- const x = localStorage.getItem("customerNumber"), M = localStorage.getItem("isLoggedIn"), ae = `https://tanya.aspiresystems.com/api/bedrock/invoke/stream?${new URLSearchParams({
3897
+ const b = localStorage.getItem("customerNumber"), M = localStorage.getItem("isLoggedIn"), ae = `https://tanya.aspiresystems.com/api/bedrock/invoke/stream?${new URLSearchParams({
3919
3898
  registered: String(M || !1),
3920
- userId: String(x || (/* @__PURE__ */ new Date()).getTime())
3899
+ userId: String(b || (/* @__PURE__ */ new Date()).getTime())
3921
3900
  }).toString()}`, J = await fetch(`${ae}`, {
3922
3901
  method: "POST",
3923
3902
  headers: {
@@ -3940,28 +3919,28 @@ const Je = "USD", Sn = (e) => {
3940
3919
  });
3941
3920
  if (!J.body) throw new Error("Readable stream not supported");
3942
3921
  const pe = J.body.getReader(), V = new TextDecoder();
3943
- let te = "", be = "", je = "";
3922
+ let te = "", xe = "", je = "";
3944
3923
  for (; ; ) {
3945
3924
  const { done: de, value: ze } = await pe.read();
3946
3925
  if (de) break;
3947
3926
  te += V.decode(ze, { stream: !0 });
3948
- const He = te.split(`
3927
+ const Re = te.split(`
3949
3928
  `);
3950
- te = He.pop() || "";
3951
- for (const ot of He) {
3929
+ te = Re.pop() || "";
3930
+ for (const ot of Re) {
3952
3931
  if (!ot.startsWith("data:")) continue;
3953
3932
  const Ze = ot.slice(5).trim();
3954
3933
  try {
3955
- const Ye = JSON.parse(Ze), Me = Ye.index, ge = Ye.data;
3956
- Me === 0 ? be = String(ge ?? "") : Me === 1 && (je = String(ge ?? ""));
3957
- } catch (Ye) {
3958
- console.error("Error parsing JSON chunk:", Ye);
3934
+ const He = JSON.parse(Ze), Me = He.index, ge = He.data;
3935
+ Me === 0 ? xe = String(ge ?? "") : Me === 1 && (je = String(ge ?? ""));
3936
+ } catch (He) {
3937
+ console.error("Error parsing JSON chunk:", He);
3959
3938
  }
3960
3939
  }
3961
3940
  }
3962
3941
  let re = null;
3963
- if (be) {
3964
- const de = String(be).replace(/\\n/g, "").trim();
3942
+ if (xe) {
3943
+ const de = String(xe).replace(/\\n/g, "").trim();
3965
3944
  if (de.startsWith("{") && de.endsWith("}"))
3966
3945
  try {
3967
3946
  re = JSON.parse(de), re.product_id = m, re.sku_id = m, localStorage.setItem("agentic_order", JSON.stringify(re));
@@ -3976,26 +3955,26 @@ const Je = "USD", Sn = (e) => {
3976
3955
  response: "__CARD__",
3977
3956
  snapshotPayload: { extractedDetails: re }
3978
3957
  }
3979
- ]), bt((de) => [
3958
+ ]), xt((de) => [
3980
3959
  ...de,
3981
3960
  {
3982
3961
  userQuery: u,
3983
- mainResponse: be || "",
3962
+ mainResponse: xe || "",
3984
3963
  keywords: je || ""
3985
3964
  }
3986
- ].slice(-Pn));
3965
+ ].slice(-Fn));
3987
3966
  } catch (F) {
3988
3967
  console.error("Error sending message to Tanya:", F), me(!1);
3989
3968
  } finally {
3990
- Se(!1);
3969
+ Ne(!1);
3991
3970
  }
3992
3971
  }, Br = async (u) => {
3993
3972
  if (j || Pe || !Ct) return;
3994
3973
  const m = ye.trim();
3995
3974
  if (!m) return;
3996
- Z((x) => [...x, { query: m, response: "" }]), q(""), E(m);
3997
- const f = w == null ? void 0 : w.sku, v = Fn(r), F = f || v || "";
3998
- if (b <= 1) {
3975
+ Z((b) => [...b, { query: m, response: "" }]), q(""), E(m);
3976
+ const f = w == null ? void 0 : w.sku, v = In(r), F = f || v || "";
3977
+ if (x <= 1) {
3999
3978
  if (F) {
4000
3979
  or(m, F, y);
4001
3980
  return;
@@ -4004,34 +3983,34 @@ const Je = "USD", Sn = (e) => {
4004
3983
  return;
4005
3984
  }
4006
3985
  F ? (fe(!0), me(!0)) : (ne(!0), me(!0));
4007
- }, yo = () => {
3986
+ }, wo = () => {
4008
3987
  const u = w == null ? void 0 : w.sku;
4009
3988
  u && or(Fe, u, y);
4010
- }, xo = () => {
3989
+ }, yo = () => {
4011
3990
  fe(!1), ne(!0), me(!0);
4012
3991
  }, bo = () => {
4013
3992
  if (!w || !w.sku) return;
4014
3993
  const u = w.sku;
4015
3994
  or(Fe, u, y);
4016
- }, vo = async () => {
4017
- Te(!0), A(!1), he(!1), S(!1), H(!1), R(!1), X(!1), L(!1), await ho(), Dr("initial", {
3995
+ }, xo = async () => {
3996
+ Te(!0), A(!1), he(!1), N(!1), H(!1), R(!1), X(!1), L(!1), await mo(), Dr("initial", {
4018
3997
  extractedDetails: G ?? void 0
4019
3998
  });
4020
- }, ko = () => {
3999
+ }, vo = () => {
4021
4000
  if (!vt) return;
4022
4001
  const u = z.find(
4023
4002
  (m) => String(m.addressId ?? m.id) === vt
4024
4003
  ) || null;
4025
- u && (localStorage.setItem("agentic_order_address", JSON.stringify(u)), H(!0), A(!0), R(!1), he(!1), X(!1), S(!1), L(!1), Nt("address", u));
4026
- }, So = () => {
4027
- H(!1), A(!1), R(!1), he(!1), X(!1), S(!1), L(!1), localStorage.removeItem("agentic_order_address");
4004
+ u && (localStorage.setItem("agentic_order_address", JSON.stringify(u)), H(!0), A(!0), R(!1), he(!1), X(!1), N(!1), L(!1), St("address", u));
4005
+ }, ko = () => {
4006
+ H(!1), A(!1), R(!1), he(!1), X(!1), N(!1), L(!1), localStorage.removeItem("agentic_order_address");
4028
4007
  }, No = () => {
4029
- Q && (localStorage.setItem("agentic_order_delivery", Q), R(!0), he(!0), X(!1), S(!1), L(!1), Nt("delivery", {
4008
+ Q && (localStorage.setItem("agentic_order_delivery", Q), R(!0), he(!0), X(!1), N(!1), L(!1), St("delivery", {
4030
4009
  method: Q,
4031
4010
  ...it[Q]
4032
4011
  }));
4033
4012
  }, Ur = () => {
4034
- A(!1), R(!1), he(!1), X(!1), S(!1), L(!1), me(!1), zt(), Z((u) => [
4013
+ A(!1), R(!1), he(!1), X(!1), N(!1), L(!1), me(!1), zt(), Z((u) => [
4035
4014
  ...u,
4036
4015
  {
4037
4016
  query: "",
@@ -4041,12 +4020,12 @@ const Je = "USD", Sn = (e) => {
4041
4020
  }
4042
4021
  }
4043
4022
  ]);
4023
+ }, So = () => {
4024
+ R(!1), he(!1), X(!1), N(!1), L(!1), localStorage.removeItem("agentic_order_delivery");
4044
4025
  }, Co = () => {
4045
- R(!1), he(!1), X(!1), S(!1), L(!1), localStorage.removeItem("agentic_order_delivery");
4026
+ ie && (localStorage.setItem("agentic_order_payment", ie), X(!0), N(!0), L(!1), St("payment", { method: ie }));
4046
4027
  }, _o = () => {
4047
- ie && (localStorage.setItem("agentic_order_payment", ie), X(!0), S(!0), L(!1), Nt("payment", { method: ie }));
4048
- }, Io = () => {
4049
- he(!1), X(!1), S(!1), L(!1), me(!1), zt(), Z((u) => [
4028
+ he(!1), X(!1), N(!1), L(!1), me(!1), zt(), Z((u) => [
4050
4029
  ...u,
4051
4030
  {
4052
4031
  query: "",
@@ -4056,16 +4035,16 @@ const Je = "USD", Sn = (e) => {
4056
4035
  }
4057
4036
  }
4058
4037
  ]);
4059
- }, Fo = () => {
4060
- X(!1), S(!1), L(!1), localStorage.removeItem("agentic_order_payment");
4061
- }, Po = async () => {
4038
+ }, Io = () => {
4039
+ X(!1), N(!1), L(!1), localStorage.removeItem("agentic_order_payment");
4040
+ }, Fo = async () => {
4062
4041
  try {
4063
- Se(!0);
4042
+ Ne(!0);
4064
4043
  const u = G || {}, m = JSON.parse(
4065
4044
  localStorage.getItem("agentic_order_address") || "null"
4066
4045
  ), f = localStorage.getItem(
4067
4046
  "agentic_order_delivery"
4068
- ), v = localStorage.getItem("agentic_order_payment") || "card", { product_total: F, tax: x, shipping_fee: M, currency: P } = Mr(), ae = u.shopper_id || localStorage.getItem("customerId") || void 0, J = (m == null ? void 0 : m.addressId) || (m == null ? void 0 : m.id) || void 0, pe = f ? Vs[f] : "GROUND", V = "card-visa", te = w == null ? void 0 : w.sku, be = (r == null ? void 0 : r.id) || "", je = _t(u), re = typeof u.max_price_minor == "number" ? u.max_price_minor : Math.round(F * 100), He = {
4047
+ ), v = localStorage.getItem("agentic_order_payment") || "card", { product_total: F, tax: b, shipping_fee: M, currency: P } = Mr(), ae = u.shopper_id || localStorage.getItem("customerId") || void 0, J = (m == null ? void 0 : m.addressId) || (m == null ? void 0 : m.id) || void 0, pe = f ? Ys[f] : "GROUND", V = "card-visa", te = w == null ? void 0 : w.sku, xe = (r == null ? void 0 : r.id) || "", je = _t(u), re = typeof u.max_price_minor == "number" ? u.max_price_minor : Math.round(F * 100), Re = {
4069
4048
  shopper_id: ae,
4070
4049
  shipping_address_id: J,
4071
4050
  shipping_method_id: pe,
@@ -4073,7 +4052,7 @@ const Je = "USD", Sn = (e) => {
4073
4052
  sku: te,
4074
4053
  platform: "SFCC",
4075
4054
  storeCode: "Sites-SiteGenesis-Site",
4076
- product_id: be,
4055
+ product_id: xe,
4077
4056
  quantity: je,
4078
4057
  max_price_minor: re,
4079
4058
  currency: P,
@@ -4088,25 +4067,25 @@ const Je = "USD", Sn = (e) => {
4088
4067
  }
4089
4068
  ), alert(
4090
4069
  "Missing customer or address information. Please re-select address and try again."
4091
- ), Se(!1);
4070
+ ), Ne(!1);
4092
4071
  return;
4093
4072
  }
4094
- const Ze = (await xt()).access_token;
4073
+ const Ze = (await bt()).access_token;
4095
4074
  if (!Ze)
4096
4075
  throw new Error("Failed to fetch auth token for intent-mandate");
4097
- const { serverUrl: Ye } = dt(), Me = await fetch(`${Ye}/api/intent-mandate`, {
4076
+ const { serverUrl: He } = dt(), Me = await fetch(`${He}/api/intent-mandate`, {
4098
4077
  method: "POST",
4099
4078
  headers: {
4100
4079
  "Content-Type": "application/json",
4101
4080
  Authorization: `Bearer ${Ze}`
4102
4081
  },
4103
- body: JSON.stringify(He)
4082
+ body: JSON.stringify(Re)
4104
4083
  });
4105
4084
  if (!Me.ok) {
4106
- const $o = await Me.text().catch(() => "");
4107
- console.error("intent-mandate failed", Me.status, $o), alert(
4085
+ const jo = await Me.text().catch(() => "");
4086
+ console.error("intent-mandate failed", Me.status, jo), alert(
4108
4087
  "Something went wrong while saving your smart order. Please try again."
4109
- ), Se(!1);
4088
+ ), Ne(!1);
4110
4089
  return;
4111
4090
  }
4112
4091
  const ge = await Me.json().catch(() => null);
@@ -4118,16 +4097,16 @@ const Je = "USD", Sn = (e) => {
4118
4097
  address: m,
4119
4098
  delivery: f,
4120
4099
  payment: v,
4121
- summary: { product_total: F, tax: x, shipping_fee: M, currency: P },
4100
+ summary: { product_total: F, tax: b, shipping_fee: M, currency: P },
4122
4101
  intent_mandate_id: at
4123
4102
  };
4124
- localStorage.setItem("agentic_order_final", JSON.stringify(Mt)), L(!0), B(!1), Nt("final", Mt), Nt("success", { intentMandateId: at }), zt();
4103
+ localStorage.setItem("agentic_order_final", JSON.stringify(Mt)), L(!0), B(!1), St("final", Mt), St("success", { intentMandateId: at }), zt();
4125
4104
  } catch (u) {
4126
4105
  console.error("Error in handleConfirmWatch / intent-mandate:", u), alert(
4127
4106
  "Unable to complete your smart order right now. Please try again in a moment."
4128
4107
  );
4129
4108
  } finally {
4130
- Se(!1);
4109
+ Ne(!1);
4131
4110
  }
4132
4111
  }, qr = () => {
4133
4112
  zt(), Z((u) => [
@@ -4140,19 +4119,19 @@ const Je = "USD", Sn = (e) => {
4140
4119
  }
4141
4120
  }
4142
4121
  ]);
4143
- }, To = () => {
4144
- const u = Cn(r, w), m = _n(r), f = (r == null ? void 0 : r.id) || "", v = Ve(w) || "", F = tt(w) || "", { amount: x } = Kt(w), M = !!(r != null && r.id), P = w && M ? Sn(w) : !1;
4122
+ }, Po = () => {
4123
+ const u = Sn(r, w), m = Cn(r), f = (r == null ? void 0 : r.id) || "", v = Ye(w) || "", F = tt(w) || "", { amount: b } = Kt(w), M = !!(r != null && r.id), P = w && M ? kn(w) : !1;
4145
4124
  return console.log(
4146
4125
  u,
4147
4126
  m,
4148
4127
  f,
4149
4128
  v,
4150
4129
  F,
4151
- x,
4130
+ b,
4152
4131
  M,
4153
4132
  P,
4154
4133
  "base product"
4155
- ), /* @__PURE__ */ a("div", { className: "mx-4 mt-2 rounded-xl border border-gray-200 bg-white p-4", children: /* @__PURE__ */ d("div", { className: "flex flex-col sm:flex-row items-center sm:items-center gap-4", children: [
4134
+ ), /* @__PURE__ */ a("div", { className: "mx-4 mt-2 rounded-xl border border-gray-200 bg-white p-4", children: /* @__PURE__ */ c("div", { className: "flex flex-col sm:flex-row items-center sm:items-center gap-4", children: [
4156
4135
  /* @__PURE__ */ a("div", { className: "flex-shrink-0 flex justify-center sm:justify-start", children: /* @__PURE__ */ a("div", { className: "w-[150px] h-[150px] rounded-lg bg-gray-50 border border-gray-200 flex items-center justify-center overflow-hidden", children: u ? /* @__PURE__ */ a(
4157
4136
  "img",
4158
4137
  {
@@ -4168,34 +4147,34 @@ const Je = "USD", Sn = (e) => {
4168
4147
  className: "opacity-60"
4169
4148
  }
4170
4149
  ) }) }),
4171
- /* @__PURE__ */ d("div", { className: "flex-grow flex flex-col justify-center text-center", children: [
4150
+ /* @__PURE__ */ c("div", { className: "flex-grow flex flex-col justify-center text-center", children: [
4172
4151
  /* @__PURE__ */ a("div", { className: "text-2xl font-bold text-gray-900 mb-1", children: m }),
4173
4152
  /* @__PURE__ */ a("div", { className: "text-sm text-gray-700 mb-1", children: [
4174
4153
  f && `SKU: ${f}`,
4175
4154
  v && `Color: ${v}`,
4176
4155
  F && `Size: ${F}`
4177
4156
  ].filter(Boolean).join(" • ") || "—" }),
4178
- /* @__PURE__ */ a("div", { className: "mt-1 text-xl font-semibold text-gray-900", children: M ? $e(Number(x) || 0, Je) : "Currently unavailable" }),
4157
+ /* @__PURE__ */ a("div", { className: "mt-1 text-xl font-semibold text-gray-900", children: M ? $e(Number(b) || 0, Je) : "Currently unavailable" }),
4179
4158
  M && !P && /* @__PURE__ */ a("div", { className: "mt-1 text-xs font-medium text-red-600", children: "Currently out of stock" })
4180
4159
  ] })
4181
4160
  ] }) });
4182
4161
  }, Rr = ({
4183
4162
  showSubmit: u = !0
4184
4163
  }) => {
4185
- const m = {}, f = Ae.map((x) => Ve(x.variant)).filter((x) => !!x && !m[x] && (m[x] = !0)), v = {}, F = Ae.map((x) => tt(x.variant)).filter((x) => !!x && !v[x] && (v[x] = !0));
4186
- return /* @__PURE__ */ d("div", { className: "mx-4 mt-4 mb-2 rounded-xl border border-gray-200 bg-white p-4 animate-fade-in", children: [
4164
+ const m = {}, f = Ae.map((b) => Ye(b.variant)).filter((b) => !!b && !m[b] && (m[b] = !0)), v = {}, F = Ae.map((b) => tt(b.variant)).filter((b) => !!b && !v[b] && (v[b] = !0));
4165
+ return /* @__PURE__ */ c("div", { className: "mx-4 mt-4 mb-2 rounded-xl border border-gray-200 bg-white p-4 animate-fade-in", children: [
4187
4166
  /* @__PURE__ */ a("h3", { className: "font-semibold text-gray-800", children: "Choose a variant" }),
4188
- f.length > 0 && /* @__PURE__ */ d("div", { className: "mt-4", children: [
4189
- /* @__PURE__ */ d("div", { className: "flex items-baseline gap-2", children: [
4167
+ f.length > 0 && /* @__PURE__ */ c("div", { className: "mt-4", children: [
4168
+ /* @__PURE__ */ c("div", { className: "flex items-baseline gap-2", children: [
4190
4169
  /* @__PURE__ */ a("div", { className: "text-sm font-bold", children: "Color :" }),
4191
- N && /* @__PURE__ */ a("div", { className: "text-sm text-gray-600", children: N })
4170
+ S && /* @__PURE__ */ a("div", { className: "text-sm text-gray-600", children: S })
4192
4171
  ] }),
4193
- /* @__PURE__ */ a("div", { className: "flex flex-wrap gap-4 mt-2", children: f.map((x) => {
4172
+ /* @__PURE__ */ a("div", { className: "flex flex-wrap gap-4 mt-2", children: f.map((b) => {
4194
4173
  var je;
4195
- const M = N === x, P = k || U.current || null, ae = P ? st(Ae, x, P) : st(Ae, x, null), J = !!ae, pe = J && Sn(ae.variant), V = J && pe ? Nr(ae.variant, Je) || Nr(ae.variant) : null, te = Ae.find(
4196
- (re) => Ve(re.variant) === x
4197
- ), be = (je = te == null ? void 0 : te.images) == null ? void 0 : je[0];
4198
- return /* @__PURE__ */ d(
4174
+ const M = S === b, P = k || U.current || null, ae = P ? st(Ae, b, P) : st(Ae, b, null), J = !!ae, pe = J && kn(ae.variant), V = J && pe ? Sr(ae.variant, Je) || Sr(ae.variant) : null, te = Ae.find(
4175
+ (re) => Ye(re.variant) === b
4176
+ ), xe = (je = te == null ? void 0 : te.images) == null ? void 0 : je[0];
4177
+ return /* @__PURE__ */ c(
4199
4178
  "div",
4200
4179
  {
4201
4180
  className: `flex flex-col items-center w-28 border rounded-md p-2
@@ -4206,26 +4185,26 @@ const Je = "USD", Sn = (e) => {
4206
4185
  "button",
4207
4186
  {
4208
4187
  onClick: () => {
4209
- T(x);
4210
- const re = k || U.current || null, de = re && st(Ae, x, re) || st(Ae, x, null);
4188
+ T(b);
4189
+ const re = k || U.current || null, de = re && st(Ae, b, re) || st(Ae, b, null);
4211
4190
  de && _(de.index);
4212
4191
  },
4213
4192
  className: "w-full h-20 flex items-center justify-center overflow-hidden",
4214
- title: x,
4215
- children: be ? /* @__PURE__ */ a(
4193
+ title: b,
4194
+ children: xe ? /* @__PURE__ */ a(
4216
4195
  "img",
4217
4196
  {
4218
- src: be,
4219
- alt: x,
4197
+ src: xe,
4198
+ alt: b,
4220
4199
  className: "w/full h-full object-contain"
4221
4200
  }
4222
- ) : /* @__PURE__ */ a("div", { className: "w-full h-full flex items-center justify-center text-xs px-1", children: x })
4201
+ ) : /* @__PURE__ */ a("div", { className: "w-full h-full flex items-center justify-center text-xs px-1", children: b })
4223
4202
  }
4224
4203
  ),
4225
4204
  /* @__PURE__ */ a("div", { className: "w-full border-t my-2" }),
4226
4205
  J && !pe && /* @__PURE__ */ a("div", { className: "text-[11px] text-red-600 text-center", children: "Out of stock" }),
4227
4206
  !J && /* @__PURE__ */ a("div", { className: "text-[11px] text-red-600 text-center", children: "any not offered" }),
4228
- J && pe && V && /* @__PURE__ */ d("div", { className: "text-xs text-gray-800 font-medium text-center", children: [
4207
+ J && pe && V && /* @__PURE__ */ c("div", { className: "text-xs text-gray-800 font-medium text-center", children: [
4229
4208
  $e(V.cent / 100, V.cur),
4230
4209
  V.regularCent && V.regularCent > V.cent && /* @__PURE__ */ a("span", { className: "ml-1 line-through text-gray-500", children: $e(
4231
4210
  V.regularCent / 100,
@@ -4234,33 +4213,33 @@ const Je = "USD", Sn = (e) => {
4234
4213
  ] })
4235
4214
  ]
4236
4215
  },
4237
- `color-${x}`
4216
+ `color-${b}`
4238
4217
  );
4239
4218
  }) })
4240
4219
  ] }),
4241
- F.length > 0 && /* @__PURE__ */ d("div", { className: "mt-4", children: [
4242
- /* @__PURE__ */ d("div", { className: "flex items-baseline gap-2", children: [
4220
+ F.length > 0 && /* @__PURE__ */ c("div", { className: "mt-4", children: [
4221
+ /* @__PURE__ */ c("div", { className: "flex items-baseline gap-2", children: [
4243
4222
  /* @__PURE__ */ a("div", { className: "text-sm font-bold", children: "Size :" }),
4244
4223
  k && /* @__PURE__ */ a("div", { className: "text-sm text-gray-600", children: k })
4245
4224
  ] }),
4246
- /* @__PURE__ */ a("div", { className: "flex flex-wrap gap-2 mt-2", children: F.map((x) => /* @__PURE__ */ a(
4225
+ /* @__PURE__ */ a("div", { className: "flex flex-wrap gap-2 mt-2", children: F.map((b) => /* @__PURE__ */ a(
4247
4226
  "button",
4248
4227
  {
4249
4228
  onClick: () => {
4250
- I(x);
4251
- const P = N && st(Ae, N, x) || st(Ae, void 0, x);
4229
+ I(b);
4230
+ const P = S && st(Ae, S, b) || st(Ae, void 0, b);
4252
4231
  P && _(P.index);
4253
4232
  },
4254
- className: `px-4 py-2 rounded-md border text-sm ${k === x ? "border-2 border-tanya-light font-semibold" : "border-gray-300"}`,
4255
- title: x,
4256
- children: x
4233
+ className: `px-4 py-2 rounded-md border text-sm ${k === b ? "border-2 border-tanya-light font-semibold" : "border-gray-300"}`,
4234
+ title: b,
4235
+ children: b
4257
4236
  },
4258
- `size-${x}`
4237
+ `size-${b}`
4259
4238
  )) })
4260
4239
  ] }),
4261
- i.map(({ id: x, name: M, selectedValue: P, values: ae }) => {
4240
+ i.map(({ id: b, name: M, selectedValue: P, values: ae }) => {
4262
4241
  const J = ae.map(
4263
- ({ href: pe, name: V, image: te, value: be, orderable: je }, re) => {
4242
+ ({ href: pe, name: V, image: te, value: xe, orderable: je }, re) => {
4264
4243
  const de = te ? /* @__PURE__ */ a(
4265
4244
  "div",
4266
4245
  {
@@ -4275,33 +4254,33 @@ const Je = "USD", Sn = (e) => {
4275
4254
  borderRadius: "50%"
4276
4255
  }
4277
4256
  }
4278
- ) : V, ze = !!(P != null && P.value), He = (P == null ? void 0 : P.value) === be;
4257
+ ) : V, ze = !!(P != null && P.value), Re = (P == null ? void 0 : P.value) === xe;
4279
4258
  return /* @__PURE__ */ a(
4280
- Hs,
4259
+ Rs,
4281
4260
  {
4282
4261
  href: pe,
4283
4262
  disabled: !je,
4284
- value: be,
4263
+ value: xe,
4285
4264
  name: V,
4286
- variant: x === "color" ? "circle" : "square",
4287
- selected: He,
4288
- isFocusable: He || !ze && re === 0,
4265
+ variant: b === "color" ? "circle" : "square",
4266
+ selected: Re,
4267
+ isFocusable: Re || !ze && re === 0,
4289
4268
  children: de
4290
4269
  },
4291
- be
4270
+ xe
4292
4271
  );
4293
4272
  }
4294
4273
  );
4295
4274
  return /* @__PURE__ */ a(
4296
- Ys,
4275
+ Hs,
4297
4276
  {
4298
4277
  value: P == null ? void 0 : P.value,
4299
4278
  displayName: (P == null ? void 0 : P.name) || "",
4300
4279
  label: M,
4301
- onChange: Lt(x),
4280
+ onChange: Lt(b),
4302
4281
  children: J
4303
4282
  },
4304
- x
4283
+ b
4305
4284
  );
4306
4285
  }),
4307
4286
  u && /* @__PURE__ */ a("div", { className: "mt-4 flex justify-end", children: /* @__PURE__ */ a(
@@ -4319,8 +4298,8 @@ const Je = "USD", Sn = (e) => {
4319
4298
  !(u != null && u.extractedDetails) && u && (u = { extractedDetails: u });
4320
4299
  const f = (u == null ? void 0 : u.extractedDetails) || G;
4321
4300
  if (!f) return null;
4322
- const v = _t(f), { currency: F } = Kt(w), x = In(r, w), M = Number((f == null ? void 0 : f.max_price_minor) ?? 0), ae = Number.isFinite(M) && M > 0 ? +(M / 100) : +(x * v), J = (f == null ? void 0 : f.currency) || F || Je, pe = w != null && w.sku ? w.sku : f.product_id;
4323
- return /* @__PURE__ */ d(
4301
+ const v = _t(f), { currency: F } = Kt(w), b = _n(r, w), M = Number((f == null ? void 0 : f.max_price_minor) ?? 0), ae = Number.isFinite(M) && M > 0 ? +(M / 100) : +(b * v), J = (f == null ? void 0 : f.currency) || F || Je, pe = w != null && w.sku ? w.sku : f.product_id;
4302
+ return /* @__PURE__ */ c(
4324
4303
  "div",
4325
4304
  {
4326
4305
  className: "px-6 pb-6 flex flex-col items-center space-y-4",
@@ -4334,8 +4313,8 @@ const Je = "USD", Sn = (e) => {
4334
4313
  children: "Here’s what I found from your instruction:"
4335
4314
  }
4336
4315
  ),
4337
- /* @__PURE__ */ d("div", { className: "w-full max-w-md bg-white rounded-xl shadow-inner p-4", children: [
4338
- /* @__PURE__ */ d("div", { className: "grid grid-cols-2 gap-y-2 text-sm", children: [
4316
+ /* @__PURE__ */ c("div", { className: "w-full max-w-md bg-white rounded-xl shadow-inner p-4", children: [
4317
+ /* @__PURE__ */ c("div", { className: "grid grid-cols-2 gap-y-2 text-sm", children: [
4339
4318
  /* @__PURE__ */ a("p", { className: "font-semibold text-gray-600", children: "SKU:" }),
4340
4319
  /* @__PURE__ */ a("p", { className: "text-gray-800", children: pe }),
4341
4320
  /* @__PURE__ */ a("p", { className: "font-semibold text-gray-600", children: "Quantity:" }),
@@ -4345,23 +4324,23 @@ const Je = "USD", Sn = (e) => {
4345
4324
  /* @__PURE__ */ a("p", { className: "font-semibold text-gray-600", children: "Maximum Total Price:" }),
4346
4325
  /* @__PURE__ */ a("p", { className: "text-gray-800", children: $e(ae, J) })
4347
4326
  ] }),
4348
- /* @__PURE__ */ d("div", { className: "mt-3 flex flex-wrap gap-2 text-xs", children: [
4349
- Ve(w) && /* @__PURE__ */ d("span", { className: "rounded-full bg-gray-100 px-2 py-1", children: [
4327
+ /* @__PURE__ */ c("div", { className: "mt-3 flex flex-wrap gap-2 text-xs", children: [
4328
+ Ye(w) && /* @__PURE__ */ c("span", { className: "rounded-full bg-gray-100 px-2 py-1", children: [
4350
4329
  "Color: ",
4351
- Ve(w)
4330
+ Ye(w)
4352
4331
  ] }),
4353
- tt(w) && /* @__PURE__ */ d("span", { className: "rounded-full bg-gray-100 px-2 py-1", children: [
4332
+ tt(w) && /* @__PURE__ */ c("span", { className: "rounded-full bg-gray-100 px-2 py-1", children: [
4354
4333
  "Size: ",
4355
4334
  tt(w)
4356
4335
  ] }),
4357
- (w == null ? void 0 : w.sku) && /* @__PURE__ */ d("span", { className: "rounded-full bg-gray-100 px-2 py-1", children: [
4336
+ (w == null ? void 0 : w.sku) && /* @__PURE__ */ c("span", { className: "rounded-full bg-gray-100 px-2 py-1", children: [
4358
4337
  "SKU: ",
4359
4338
  w.sku
4360
4339
  ] })
4361
4340
  ] })
4362
4341
  ] }),
4363
- !m && /* @__PURE__ */ d(Ne, { children: [
4364
- /* @__PURE__ */ d(
4342
+ !m && /* @__PURE__ */ c(Se, { children: [
4343
+ /* @__PURE__ */ c(
4365
4344
  "p",
4366
4345
  {
4367
4346
  className: "text-sm font-medium text-gray-700 text-center max-w-[90%] leading-relaxed",
@@ -4373,13 +4352,13 @@ const Je = "USD", Sn = (e) => {
4373
4352
  ]
4374
4353
  }
4375
4354
  ),
4376
- /* @__PURE__ */ d("div", { className: "flex flex-wrap justify-center gap-4", children: [
4377
- /* @__PURE__ */ d(
4355
+ /* @__PURE__ */ c("div", { className: "flex flex-wrap justify-center gap-4", children: [
4356
+ /* @__PURE__ */ c(
4378
4357
  "button",
4379
4358
  {
4380
- onClick: vo,
4381
- disabled: xe,
4382
- className: `relative inline-flex items-center justify-center px-6 py-2.5 rounded-full font-semibold text-white shadow-md transition-all duration-300 ${xe ? "opacity-60 cursor-not-allowed" : "hover:-translate-y-0.5 hover:shadow-lg"}`,
4359
+ onClick: xo,
4360
+ disabled: be,
4361
+ className: `relative inline-flex items-center justify-center px-6 py-2.5 rounded-full font-semibold text-white shadow-md transition-all duration-300 ${be ? "opacity-60 cursor-not-allowed" : "hover:-translate-y-0.5 hover:shadow-lg"}`,
4383
4362
  style: { background: `${Ie}` },
4384
4363
  children: [
4385
4364
  /* @__PURE__ */ a(
@@ -4395,12 +4374,12 @@ const Je = "USD", Sn = (e) => {
4395
4374
  ]
4396
4375
  }
4397
4376
  ),
4398
- /* @__PURE__ */ d(
4377
+ /* @__PURE__ */ c(
4399
4378
  "button",
4400
4379
  {
4401
4380
  onClick: qr,
4402
- disabled: xe,
4403
- className: `relative inline-flex items-center justify-center px-6 py-2.5 rounded-full font-semibold border transition-all duration-300 ${xe ? "opacity-60 cursor-not-allowed" : "hover:-translate-y-0.5 hover:shadow-lg"}`,
4381
+ disabled: be,
4382
+ className: `relative inline-flex items-center justify-center px-6 py-2.5 rounded-full font-semibold border transition-all duration-300 ${be ? "opacity-60 cursor-not-allowed" : "hover:-translate-y-0.5 hover:shadow-lg"}`,
4404
4383
  style: { borderColor: Ie, color: nr },
4405
4384
  children: [
4406
4385
  /* @__PURE__ */ a(
@@ -4422,20 +4401,20 @@ const Je = "USD", Sn = (e) => {
4422
4401
  }
4423
4402
  );
4424
4403
  }, Yr = (u, m = !0) => {
4425
- var ot, Ze, Ye, Me, ge, at;
4426
- const f = u || {}, v = ((ot = f == null ? void 0 : f.summary) == null ? void 0 : ot.currency) || (G == null ? void 0 : G.currency) || Je, F = Cn(r, w), x = _n(r), M = w != null && w.sku ? w.sku : (r == null ? void 0 : r.id) ?? (G == null ? void 0 : G.product_id), P = (w == null ? void 0 : w.sku) ?? Fn(r), ae = Ve(w) || Ws(r), J = tt(w) || Gs(r), pe = _t(f), V = ((Ze = f == null ? void 0 : f.summary) == null ? void 0 : Ze.product_total) != null ? +f.summary.product_total : zr(f), te = pe > 0 ? +(V / pe).toFixed(2) : 0, be = V, je = ((Ye = f == null ? void 0 : f.summary) == null ? void 0 : Ye.tax) ?? +(V * 0.08).toFixed(2), re = ((Me = f == null ? void 0 : f.summary) == null ? void 0 : Me.shipping_fee) ?? (((ge = it[Q]) == null ? void 0 : ge.fee) || 0), de = f != null && f.address ? [
4404
+ var ot, Ze, He, Me, ge, at;
4405
+ const f = u || {}, v = ((ot = f == null ? void 0 : f.summary) == null ? void 0 : ot.currency) || (G == null ? void 0 : G.currency) || Je, F = Sn(r, w), b = Cn(r), M = w != null && w.sku ? w.sku : (r == null ? void 0 : r.id) ?? (G == null ? void 0 : G.product_id), P = (w == null ? void 0 : w.sku) ?? In(r), ae = Ye(w) || Ks(r), J = tt(w) || Ws(r), pe = _t(f), V = ((Ze = f == null ? void 0 : f.summary) == null ? void 0 : Ze.product_total) != null ? +f.summary.product_total : zr(f), te = pe > 0 ? +(V / pe).toFixed(2) : 0, xe = V, je = ((He = f == null ? void 0 : f.summary) == null ? void 0 : He.tax) ?? +(V * 0.08).toFixed(2), re = ((Me = f == null ? void 0 : f.summary) == null ? void 0 : Me.shipping_fee) ?? (((ge = it[Q]) == null ? void 0 : ge.fee) || 0), de = f != null && f.address ? [
4427
4406
  f.address.addressLine1,
4428
4407
  f.address.addressLine2,
4429
4408
  f.address.street,
4430
4409
  [f.address.city, f.address.state, f.address.postalCode].filter(Boolean).join(", "),
4431
4410
  f.address.country
4432
- ].filter(Boolean).map((Mt) => et(String(Mt))).join(", ") : "—", ze = (f == null ? void 0 : f.payment) || "card", He = ze === "card" ? /* @__PURE__ */ d(Ne, { children: [
4411
+ ].filter(Boolean).map((Mt) => et(String(Mt))).join(", ") : "—", ze = (f == null ? void 0 : f.payment) || "card", Re = ze === "card" ? /* @__PURE__ */ c(Se, { children: [
4433
4412
  "Credit Card — Mastercard",
4434
4413
  /* @__PURE__ */ a("br", {}),
4435
4414
  "•••• 7820 Exp: 12/26"
4436
- ] }) : /* @__PURE__ */ a(Ne, { children: et(ze) });
4437
- return /* @__PURE__ */ d("div", { className: "mx-auto mt-3 mb-3 rounded-2xl bg-white", children: [
4438
- /* @__PURE__ */ a("div", { className: "px-6 pt-5 pb-3", children: /* @__PURE__ */ d("h3", { className: "font-semibold text-lg mb-2 text-gray-800 flex items-center gap-2", children: [
4415
+ ] }) : /* @__PURE__ */ a(Se, { children: et(ze) });
4416
+ return /* @__PURE__ */ c("div", { className: "mx-auto mt-3 mb-3 rounded-2xl bg-white", children: [
4417
+ /* @__PURE__ */ a("div", { className: "px-6 pt-5 pb-3", children: /* @__PURE__ */ c("h3", { className: "font-semibold text-lg mb-2 text-gray-800 flex items-center gap-2", children: [
4439
4418
  /* @__PURE__ */ a(
4440
4419
  se,
4441
4420
  {
@@ -4446,12 +4425,12 @@ const Je = "USD", Sn = (e) => {
4446
4425
  ),
4447
4426
  "All set! Here’s what your smart order looks like 🧾"
4448
4427
  ] }) }),
4449
- /* @__PURE__ */ a("div", { className: "px-6 pb-4", children: /* @__PURE__ */ d("div", { className: "grid grid-cols-1 sm:grid-cols-12 gap-4 rounded-xl border border-gray-200 bg-gray-50 p-3", children: [
4428
+ /* @__PURE__ */ a("div", { className: "px-6 pb-4", children: /* @__PURE__ */ c("div", { className: "grid grid-cols-1 sm:grid-cols-12 gap-4 rounded-xl border border-gray-200 bg-gray-50 p-3", children: [
4450
4429
  /* @__PURE__ */ a("div", { className: "sm:col-span-2 flex", children: /* @__PURE__ */ a("div", { className: "w-30 h-26 sm:w-30 sm:h-26 overflow-hidden rounded-lg bg-white border border-gray-200 flex items-center justify-center mx-auto sm:mx-0", children: F ? /* @__PURE__ */ a(
4451
4430
  "img",
4452
4431
  {
4453
4432
  src: F,
4454
- alt: x,
4433
+ alt: b,
4455
4434
  className: "w-full h-full object-contain"
4456
4435
  }
4457
4436
  ) : /* @__PURE__ */ a(
@@ -4462,80 +4441,80 @@ const Je = "USD", Sn = (e) => {
4462
4441
  className: "opacity-50"
4463
4442
  }
4464
4443
  ) }) }),
4465
- /* @__PURE__ */ d("div", { className: "sm:col-span-10", children: [
4466
- /* @__PURE__ */ d("div", { className: "mb-3", children: [
4467
- /* @__PURE__ */ a("div", { className: "text-lg text-center font-bold text-gray-900", children: x }),
4468
- /* @__PURE__ */ d("div", { className: "text-xs text-center font-bold text-gray-600", children: [
4444
+ /* @__PURE__ */ c("div", { className: "sm:col-span-10", children: [
4445
+ /* @__PURE__ */ c("div", { className: "mb-3", children: [
4446
+ /* @__PURE__ */ a("div", { className: "text-lg text-center font-bold text-gray-900", children: b }),
4447
+ /* @__PURE__ */ c("div", { className: "text-xs text-center font-bold text-gray-600", children: [
4469
4448
  /* @__PURE__ */ a("span", { className: "font-medium", children: "SKU:" }),
4470
4449
  " ",
4471
4450
  M ?? "—"
4472
4451
  ] }),
4473
- (P || ae || J) && /* @__PURE__ */ d("div", { className: "text-xs text-gray-600 mt-0.5 text-center", children: [
4474
- P && /* @__PURE__ */ d(Ne, { children: [
4452
+ (P || ae || J) && /* @__PURE__ */ c("div", { className: "text-xs text-gray-600 mt-0.5 text-center", children: [
4453
+ P && /* @__PURE__ */ c(Se, { children: [
4475
4454
  /* @__PURE__ */ a("span", { className: "font-medium", children: "SKU:" }),
4476
4455
  " ",
4477
4456
  P,
4478
4457
  "  "
4479
4458
  ] }),
4480
- ae && /* @__PURE__ */ d(Ne, { children: [
4459
+ ae && /* @__PURE__ */ c(Se, { children: [
4481
4460
  /* @__PURE__ */ a("span", { className: "font-medium", children: "Color:" }),
4482
4461
  " ",
4483
4462
  ae,
4484
4463
  "  "
4485
4464
  ] }),
4486
- J && /* @__PURE__ */ d(Ne, { children: [
4465
+ J && /* @__PURE__ */ c(Se, { children: [
4487
4466
  /* @__PURE__ */ a("span", { className: "font-medium", children: "Size:" }),
4488
4467
  " ",
4489
4468
  J
4490
4469
  ] })
4491
4470
  ] })
4492
4471
  ] }),
4493
- /* @__PURE__ */ d("div", { className: "grid grid-cols-1 md-grid-cols-3 md:grid-cols-3 gap-3", children: [
4494
- /* @__PURE__ */ d("div", { className: "flex flex-col items-center rounded-xl border border-gray-200 bg-white p-3 text-center", children: [
4472
+ /* @__PURE__ */ c("div", { className: "grid grid-cols-1 md-grid-cols-3 md:grid-cols-3 gap-3", children: [
4473
+ /* @__PURE__ */ c("div", { className: "flex flex-col items-center rounded-xl border border-gray-200 bg-white p-3 text-center", children: [
4495
4474
  /* @__PURE__ */ a("div", { className: "text-[11px] uppercase tracking-wide text-gray-500", children: "Unit Price" }),
4496
4475
  /* @__PURE__ */ a("div", { className: "mt-0.5 text-base font-bold text-gray-900", children: $e(te, v) })
4497
4476
  ] }),
4498
- /* @__PURE__ */ d("div", { className: "flex flex-col items-center rounded-xl border border-gray-200 bg-white p-3 text-center", children: [
4477
+ /* @__PURE__ */ c("div", { className: "flex flex-col items-center rounded-xl border border-gray-200 bg-white p-3 text-center", children: [
4499
4478
  /* @__PURE__ */ a("div", { className: "text-[11px] uppercase tracking-wide text-gray-500", children: "Quantity" }),
4500
4479
  /* @__PURE__ */ a("div", { className: "mt-0.5 text-base font-bold text-gray-900", children: pe })
4501
4480
  ] }),
4502
- /* @__PURE__ */ d("div", { className: "flex flex-col items-center rounded-xl border border-gray-200 bg-white p-3 text-center", children: [
4481
+ /* @__PURE__ */ c("div", { className: "flex flex-col items-center rounded-xl border border-gray-200 bg-white p-3 text-center", children: [
4503
4482
  /* @__PURE__ */ a("div", { className: "text-[11px] uppercase tracking-wide text-gray-500", children: "Subtotal" }),
4504
- /* @__PURE__ */ a("div", { className: "mt-0.5 text-base font-bold text-gray-900", children: $e(be, v) })
4483
+ /* @__PURE__ */ a("div", { className: "mt-0.5 text-base font-bold text-gray-900", children: $e(xe, v) })
4505
4484
  ] })
4506
4485
  ] })
4507
4486
  ] })
4508
4487
  ] }) }),
4509
- /* @__PURE__ */ d("div", { className: "px-6 pb-2", children: [
4510
- /* @__PURE__ */ d("div", { className: "grid grid-cols-1 sm:grid-cols-3 gap-3 mb-3", children: [
4511
- /* @__PURE__ */ d("div", { className: "flex flex-col items-center rounded-xl border border-gray-200 bg-gray-50 p-3", children: [
4488
+ /* @__PURE__ */ c("div", { className: "px-6 pb-2", children: [
4489
+ /* @__PURE__ */ c("div", { className: "grid grid-cols-1 sm:grid-cols-3 gap-3 mb-3", children: [
4490
+ /* @__PURE__ */ c("div", { className: "flex flex-col items-center rounded-xl border border-gray-200 bg-gray-50 p-3", children: [
4512
4491
  /* @__PURE__ */ a("div", { className: "text-xs uppercase tracking-wide text-gray-500", children: "🏠 Address" }),
4513
4492
  /* @__PURE__ */ a("div", { className: "mt-1 text-sm font-semibold text-gray-900 text-center", children: de })
4514
4493
  ] }),
4515
- /* @__PURE__ */ d("div", { className: "flex flex-col items-center rounded-xl border border-gray-200 bg-gray-50 p-3", children: [
4494
+ /* @__PURE__ */ c("div", { className: "flex flex-col items-center rounded-xl border border-gray-200 bg-gray-50 p-3", children: [
4516
4495
  /* @__PURE__ */ a("div", { className: "text-xs uppercase tracking-wide text-gray-500", children: "💳 Payment" }),
4517
- /* @__PURE__ */ a("div", { className: "mt-1 text-sm font-semibold text-gray-900 text-center", children: He })
4496
+ /* @__PURE__ */ a("div", { className: "mt-1 text-sm font-semibold text-gray-900 text-center", children: Re })
4518
4497
  ] }),
4519
- /* @__PURE__ */ d("div", { className: "flex flex-col items-center rounded-xl border border-gray-200 bg-gray-50 p-3", children: [
4498
+ /* @__PURE__ */ c("div", { className: "flex flex-col items-center rounded-xl border border-gray-200 bg-gray-50 p-3", children: [
4520
4499
  /* @__PURE__ */ a("div", { className: "text-xs uppercase tracking-wide text-gray-500", children: "🚚 Delivery" }),
4521
4500
  /* @__PURE__ */ a("div", { className: "mt-1 text-sm font-semibold text-gray-900 text-center", children: f != null && f.delivery && ((at = it[f.delivery]) == null ? void 0 : at.label) || "—" })
4522
4501
  ] })
4523
4502
  ] }),
4524
- /* @__PURE__ */ d("div", { className: "grid grid-cols-1 sm:grid-cols-3 gap-3", children: [
4525
- /* @__PURE__ */ d("div", { className: "flex flex-col items-center justify-center rounded-xl border border-gray-200 bg-gray-50 p-4 text-center", children: [
4503
+ /* @__PURE__ */ c("div", { className: "grid grid-cols-1 sm:grid-cols-3 gap-3", children: [
4504
+ /* @__PURE__ */ c("div", { className: "flex flex-col items-center justify-center rounded-xl border border-gray-200 bg-gray-50 p-4 text-center", children: [
4526
4505
  /* @__PURE__ */ a("div", { className: "text-xs uppercase tracking-wide text-gray-500", children: "💰 any(s)" }),
4527
4506
  /* @__PURE__ */ a("div", { className: "mt-1 text-2xl font-bold text-gray-900", children: $e(V, v) })
4528
4507
  ] }),
4529
- /* @__PURE__ */ d("div", { className: "flex flex-col items-center justify-center rounded-xl border border-gray-200 bg-gray-50 p-4 text-center", children: [
4508
+ /* @__PURE__ */ c("div", { className: "flex flex-col items-center justify-center rounded-xl border border-gray-200 bg-gray-50 p-4 text-center", children: [
4530
4509
  /* @__PURE__ */ a("div", { className: "text-xs uppercase tracking-wide text-gray-500", children: "🏛️ Taxes" }),
4531
4510
  /* @__PURE__ */ a("div", { className: "mt-1 text-2xl font-bold text-gray-900", children: $e(je, v) })
4532
4511
  ] }),
4533
- /* @__PURE__ */ d("div", { className: "flex flex-col items-center justify-center rounded-xl border border-gray-200 bg-gray-50 p-4 text-center", children: [
4512
+ /* @__PURE__ */ c("div", { className: "flex flex-col items-center justify-center rounded-xl border border-gray-200 bg-gray-50 p-4 text-center", children: [
4534
4513
  /* @__PURE__ */ a("div", { className: "text-xs uppercase tracking-wide text-gray-500", children: "🚚 Shipping" }),
4535
4514
  /* @__PURE__ */ a("div", { className: "mt-1 text-2xl font-bold text-gray-900", children: $e(re, v) })
4536
4515
  ] })
4537
4516
  ] }),
4538
- /* @__PURE__ */ d(
4517
+ /* @__PURE__ */ c(
4539
4518
  "div",
4540
4519
  {
4541
4520
  className: "mt-4 rounded-xl p-4 text-center text-white shadow-sm",
@@ -4547,14 +4526,14 @@ const Je = "USD", Sn = (e) => {
4547
4526
  }
4548
4527
  )
4549
4528
  ] }),
4550
- !m && /* @__PURE__ */ d("div", { className: "px-6 pb-5", children: [
4529
+ !m && /* @__PURE__ */ c("div", { className: "px-6 pb-5", children: [
4551
4530
  !le && /* @__PURE__ */ a("p", { className: "mt-3 text-center text-sm text-gray-700", children: "Everything looks good! Do you want me to watch this product and buy it automatically when it meets your condition?" }),
4552
4531
  le && Lr({ intentMandateId: ce }),
4553
- h && !le && /* @__PURE__ */ d("div", { className: "mt-4 flex flex-wrap items-center justify-center gap-3", children: [
4532
+ h && !le && /* @__PURE__ */ c("div", { className: "mt-4 flex flex-wrap items-center justify-center gap-3", children: [
4554
4533
  /* @__PURE__ */ a(
4555
4534
  "button",
4556
4535
  {
4557
- onClick: Po,
4536
+ onClick: Fo,
4558
4537
  className: "inline-flex items-center justify-center rounded-full px-6 py-2.5 font-semibold text-white shadow-md transition-transform duration-150 hover:-translate-y-0.5 hover:shadow-lg",
4559
4538
  style: { background: Dt },
4560
4539
  children: "Confirm"
@@ -4572,7 +4551,7 @@ const Je = "USD", Sn = (e) => {
4572
4551
  ] })
4573
4552
  ] })
4574
4553
  ] });
4575
- }, Eo = (u) => {
4554
+ }, To = (u) => {
4576
4555
  if (!u) return null;
4577
4556
  const m = [
4578
4557
  u.addressLine1,
@@ -4586,8 +4565,8 @@ const Je = "USD", Sn = (e) => {
4586
4565
  {
4587
4566
  className: "px-6 py-4",
4588
4567
  style: { backgroundColor: "var(--tanya-light)" },
4589
- children: /* @__PURE__ */ d("div", { className: "rounded-xl border border-gray-200 bg-white p-4", children: [
4590
- /* @__PURE__ */ d("div", { className: "flex items-center gap-2 mb-2", children: [
4568
+ children: /* @__PURE__ */ c("div", { className: "rounded-xl border border-gray-200 bg-white p-4", children: [
4569
+ /* @__PURE__ */ c("div", { className: "flex items-center gap-2 mb-2", children: [
4591
4570
  /* @__PURE__ */ a(se, { icon: "mdi:home-map-marker", width: "20", color: Ie }),
4592
4571
  /* @__PURE__ */ a("div", { className: "font-semibold text-gray-800", children: "Delivery Address" })
4593
4572
  ] }),
@@ -4595,20 +4574,20 @@ const Je = "USD", Sn = (e) => {
4595
4574
  ] })
4596
4575
  }
4597
4576
  );
4598
- }, Oo = (u) => {
4577
+ }, Eo = (u) => {
4599
4578
  const m = u == null ? void 0 : u.method, f = m ? it[m] : void 0;
4600
4579
  return /* @__PURE__ */ a(
4601
4580
  "div",
4602
4581
  {
4603
4582
  className: "px-6 py-4",
4604
4583
  style: { backgroundColor: "var(--tanya-light)" },
4605
- children: /* @__PURE__ */ d("div", { className: "rounded-xl border border-gray-200 bg-white p-4", children: [
4606
- /* @__PURE__ */ d("div", { className: "flex items-center gap-2 mb-1", children: [
4584
+ children: /* @__PURE__ */ c("div", { className: "rounded-xl border border-gray-200 bg-white p-4", children: [
4585
+ /* @__PURE__ */ c("div", { className: "flex items-center gap-2 mb-1", children: [
4607
4586
  /* @__PURE__ */ a(se, { icon: "mdi:truck-delivery", width: "20", color: Ie }),
4608
4587
  /* @__PURE__ */ a("div", { className: "font-semibold text-gray-800", children: "Delivery Method" })
4609
4588
  ] }),
4610
- /* @__PURE__ */ a("div", { className: "text-sm text-gray-800", children: f ? /* @__PURE__ */ d(Ne, { children: [
4611
- /* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: [
4589
+ /* @__PURE__ */ a("div", { className: "text-sm text-gray-800", children: f ? /* @__PURE__ */ c(Se, { children: [
4590
+ /* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: [
4612
4591
  /* @__PURE__ */ a(se, { icon: f.icon, width: "18" }),
4613
4592
  /* @__PURE__ */ a("span", { className: "font-medium", children: f.label })
4614
4593
  ] }),
@@ -4617,15 +4596,15 @@ const Je = "USD", Sn = (e) => {
4617
4596
  ] })
4618
4597
  }
4619
4598
  );
4620
- }, Ao = (u) => {
4599
+ }, Oo = (u) => {
4621
4600
  const m = (u == null ? void 0 : u.method) || "card";
4622
4601
  return /* @__PURE__ */ a(
4623
4602
  "div",
4624
4603
  {
4625
4604
  className: "px-6 py-4",
4626
4605
  style: { backgroundColor: "var(--tanya-light)" },
4627
- children: /* @__PURE__ */ d("div", { className: "rounded-xl border border-gray-200 bg-white p-4", children: [
4628
- /* @__PURE__ */ d("div", { className: "flex items-center gap-2 mb-1", children: [
4606
+ children: /* @__PURE__ */ c("div", { className: "rounded-xl border border-gray-200 bg-white p-4", children: [
4607
+ /* @__PURE__ */ c("div", { className: "flex items-center gap-2 mb-1", children: [
4629
4608
  /* @__PURE__ */ a(
4630
4609
  se,
4631
4610
  {
@@ -4636,7 +4615,7 @@ const Je = "USD", Sn = (e) => {
4636
4615
  ),
4637
4616
  /* @__PURE__ */ a("div", { className: "font-semibold text-gray-800", children: "Payment Method" })
4638
4617
  ] }),
4639
- /* @__PURE__ */ a("div", { className: "text-sm text-gray-800", children: m === "card" ? /* @__PURE__ */ d(Ne, { children: [
4618
+ /* @__PURE__ */ a("div", { className: "text-sm text-gray-800", children: m === "card" ? /* @__PURE__ */ c(Se, { children: [
4640
4619
  "Credit Card — Mastercard",
4641
4620
  /* @__PURE__ */ a("br", {}),
4642
4621
  "•••• 7820   Exp: 12/26"
@@ -4644,19 +4623,19 @@ const Je = "USD", Sn = (e) => {
4644
4623
  ] })
4645
4624
  }
4646
4625
  );
4647
- }, jo = (u, m) => {
4626
+ }, Ao = (u, m) => {
4648
4627
  const f = u.snapshotStage;
4649
- if (!f || f === "address" && xe || f === "delivery" && Y || f === "payment" && Ee || f === "final" && Oe)
4628
+ if (!f || f === "address" && be || f === "delivery" && Y || f === "payment" && Ee || f === "final" && Oe)
4650
4629
  return null;
4651
4630
  switch (f) {
4652
4631
  case "initial":
4653
4632
  return Hr(u.snapshotPayload, !m);
4654
4633
  case "address":
4655
- return Eo(u.snapshotPayload);
4634
+ return To(u.snapshotPayload);
4656
4635
  case "delivery":
4657
- return Oo(u.snapshotPayload);
4636
+ return Eo(u.snapshotPayload);
4658
4637
  case "payment":
4659
- return Ao(u.snapshotPayload);
4638
+ return Oo(u.snapshotPayload);
4660
4639
  case "final":
4661
4640
  return Yr(u.snapshotPayload, !m);
4662
4641
  case "success":
@@ -4665,8 +4644,8 @@ const Je = "USD", Sn = (e) => {
4665
4644
  return null;
4666
4645
  }
4667
4646
  };
4668
- return Ro(
4669
- /* @__PURE__ */ d(
4647
+ return qo(
4648
+ /* @__PURE__ */ c(
4670
4649
  "div",
4671
4650
  {
4672
4651
  className: "fixed inset-0",
@@ -4682,8 +4661,8 @@ const Je = "USD", Sn = (e) => {
4682
4661
  onClick: t
4683
4662
  }
4684
4663
  ),
4685
- /* @__PURE__ */ a("div", { className: "absolute right-0 ", children: /* @__PURE__ */ d("div", { className: "w-[64.7vw] h-screen bg-white rounded-xl overflow-hidden flex flex-col shadow-xl", children: [
4686
- /* @__PURE__ */ d(
4664
+ /* @__PURE__ */ a("div", { className: "absolute right-0 ", children: /* @__PURE__ */ c("div", { className: "w-[64.7vw] h-screen bg-white rounded-xl overflow-hidden flex flex-col shadow-xl", children: [
4665
+ /* @__PURE__ */ c(
4687
4666
  "div",
4688
4667
  {
4689
4668
  style: {
@@ -4692,10 +4671,10 @@ const Je = "USD", Sn = (e) => {
4692
4671
  borderTopLeftRadius: "0.75rem",
4693
4672
  borderBottomLeftRadius: "0.75rem",
4694
4673
  padding: "0.25rem",
4695
- background: uo
4674
+ background: co
4696
4675
  },
4697
4676
  children: [
4698
- /* @__PURE__ */ d(
4677
+ /* @__PURE__ */ c(
4699
4678
  "div",
4700
4679
  {
4701
4680
  style: {
@@ -4712,7 +4691,7 @@ const Je = "USD", Sn = (e) => {
4712
4691
  width: "25",
4713
4692
  height: "25",
4714
4693
  viewBox: "0 0 256 256",
4715
- children: /* @__PURE__ */ d("g", { fill: "currentColor", children: [
4694
+ children: /* @__PURE__ */ c("g", { fill: "currentColor", children: [
4716
4695
  /* @__PURE__ */ a(
4717
4696
  "path",
4718
4697
  {
@@ -4753,20 +4732,20 @@ const Je = "USD", Sn = (e) => {
4753
4732
  ]
4754
4733
  }
4755
4734
  ),
4756
- /* @__PURE__ */ d(
4735
+ /* @__PURE__ */ c(
4757
4736
  "div",
4758
4737
  {
4759
4738
  ref: Xe,
4760
4739
  className: "overflow-y-auto pr-5 pb-4 space-y-4 hide-scrollbar flex-grow",
4761
4740
  children: [
4762
- /* @__PURE__ */ d(
4741
+ /* @__PURE__ */ c(
4763
4742
  "div",
4764
4743
  {
4765
4744
  className: "text-sm text-[16px] rounded-r-xl p-3 m-3 rounded-bl-xl w-3/4 text-tanya-contrast",
4766
4745
  style: { backgroundColor: "#e5dbeb" },
4767
4746
  children: [
4768
4747
  "Welcome to your smart shopping companion!",
4769
- /* @__PURE__ */ d("p", { children: [
4748
+ /* @__PURE__ */ c("p", { children: [
4770
4749
  "Simply share your instruction — like “If this product goes below $",
4771
4750
  parseInt(r.price) - 5,
4772
4751
  " grab it for me.”"
@@ -4775,12 +4754,12 @@ const Je = "USD", Sn = (e) => {
4775
4754
  ]
4776
4755
  }
4777
4756
  ),
4778
- /* @__PURE__ */ a(To, {}),
4779
- b > 1 && /* @__PURE__ */ a(Rr, { showSubmit: !1 }),
4757
+ /* @__PURE__ */ a(Po, {}),
4758
+ x > 1 && /* @__PURE__ */ a(Rr, { showSubmit: !1 }),
4780
4759
  Ge.map((u, m) => {
4781
4760
  var F;
4782
4761
  const f = m === Ge.length - 1, v = !!u.snapshotStage;
4783
- return /* @__PURE__ */ d("div", { children: [
4762
+ return /* @__PURE__ */ c("div", { children: [
4784
4763
  u.query && /* @__PURE__ */ a("div", { className: "flex justify-end", children: /* @__PURE__ */ a(
4785
4764
  "p",
4786
4765
  {
@@ -4803,21 +4782,21 @@ const Je = "USD", Sn = (e) => {
4803
4782
  children: /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ a("p", { children: u.snapshotPayload.text }) })
4804
4783
  }
4805
4784
  ) }),
4806
- f && W && b > 1 && /* @__PURE__ */ d("div", { className: "mx-4 mt-2 rounded-xl border border-gray-200 bg-white p-4 animate-fade-in", children: [
4807
- /* @__PURE__ */ d("div", { className: "text-sm text-gray-800", children: [
4785
+ f && W && x > 1 && /* @__PURE__ */ c("div", { className: "mx-4 mt-2 rounded-xl border border-gray-200 bg-white p-4 animate-fade-in", children: [
4786
+ /* @__PURE__ */ c("div", { className: "text-sm text-gray-800", children: [
4808
4787
  "Proceed with color:",
4809
4788
  " ",
4810
- /* @__PURE__ */ a("span", { className: "font-semibold", children: Ve(w) || "—" }),
4789
+ /* @__PURE__ */ a("span", { className: "font-semibold", children: Ye(w) || "—" }),
4811
4790
  ", size:",
4812
4791
  " ",
4813
4792
  /* @__PURE__ */ a("span", { className: "font-semibold", children: tt(w) || "—" }),
4814
4793
  "?"
4815
4794
  ] }),
4816
- /* @__PURE__ */ d("div", { className: "mt-3 flex gap-3", children: [
4795
+ /* @__PURE__ */ c("div", { className: "mt-3 flex gap-3", children: [
4817
4796
  /* @__PURE__ */ a(
4818
4797
  "button",
4819
4798
  {
4820
- onClick: yo,
4799
+ onClick: wo,
4821
4800
  className: "px-5 py-2 rounded-full text-white font-semibold",
4822
4801
  style: { background: Ie },
4823
4802
  children: "Yes"
@@ -4826,7 +4805,7 @@ const Je = "USD", Sn = (e) => {
4826
4805
  /* @__PURE__ */ a(
4827
4806
  "button",
4828
4807
  {
4829
- onClick: xo,
4808
+ onClick: yo,
4830
4809
  className: "px-5 py-2 rounded-full font-semibold border",
4831
4810
  style: {
4832
4811
  borderColor: Ie,
@@ -4859,7 +4838,7 @@ const Je = "USD", Sn = (e) => {
4859
4838
  boxShadow: "0 2px 8px rgba(0,0,0,0.08)",
4860
4839
  overflow: "hidden"
4861
4840
  },
4862
- children: v ? jo(u, f) : Hr(
4841
+ children: v ? Ao(u, f) : Hr(
4863
4842
  u.snapshotPayload,
4864
4843
  !1
4865
4844
  )
@@ -4867,9 +4846,9 @@ const Je = "USD", Sn = (e) => {
4867
4846
  )
4868
4847
  ] }, m);
4869
4848
  }),
4870
- xe && /* @__PURE__ */ d("div", { className: "mt-6 mb-6 mx-6 rounded-xl p-6 shadow-md border border-gray-200 bg-white animate-fade-in", children: [
4871
- /* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: [
4872
- /* @__PURE__ */ d("h3", { className: "font-semibold text-lg text-gray-800 flex items-center gap-2", children: [
4849
+ be && /* @__PURE__ */ c("div", { className: "mt-6 mb-6 mx-6 rounded-xl p-6 shadow-md border border-gray-200 bg-white animate-fade-in", children: [
4850
+ /* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: [
4851
+ /* @__PURE__ */ c("h3", { className: "font-semibold text-lg text-gray-800 flex items-center gap-2", children: [
4873
4852
  /* @__PURE__ */ a(
4874
4853
  se,
4875
4854
  {
@@ -4880,12 +4859,12 @@ const Je = "USD", Sn = (e) => {
4880
4859
  ),
4881
4860
  "Select a Delivery Address"
4882
4861
  ] }),
4883
- O && /* @__PURE__ */ d(Ne, { children: [
4862
+ O && /* @__PURE__ */ c(Se, { children: [
4884
4863
  /* @__PURE__ */ a("span", { className: "ml-2 text-xs px-2 py-1 rounded-full bg-green-100 text-green-700 font-semibold", children: "Selected" }),
4885
4864
  !le && /* @__PURE__ */ a(
4886
4865
  "button",
4887
4866
  {
4888
- onClick: So,
4867
+ onClick: ko,
4889
4868
  className: "ml-2 text-xs px-2 py-1 rounded-full border hover:bg-gray-50",
4890
4869
  style: {
4891
4870
  borderColor: "var(--tanya-light)",
@@ -4898,7 +4877,7 @@ const Je = "USD", Sn = (e) => {
4898
4877
  ] })
4899
4878
  ] }),
4900
4879
  /* @__PURE__ */ a("p", { className: "text-sm text-gray-600 mb-4", children: "Choose where you’d like us to deliver this item." }),
4901
- s ? /* @__PURE__ */ d("div", { className: "flex items-center py-6", children: [
4880
+ s ? /* @__PURE__ */ c("div", { className: "flex items-center py-6", children: [
4902
4881
  /* @__PURE__ */ a(
4903
4882
  "div",
4904
4883
  {
@@ -4907,14 +4886,14 @@ const Je = "USD", Sn = (e) => {
4907
4886
  }
4908
4887
  ),
4909
4888
  /* @__PURE__ */ a("p", { className: "ml-3 text-gray-600", children: "Fetching your addresses..." })
4910
- ] }) : z.length > 0 ? /* @__PURE__ */ d(
4889
+ ] }) : z.length > 0 ? /* @__PURE__ */ c(
4911
4890
  "div",
4912
4891
  {
4913
4892
  className: `space-y-3 ${O ? "opacity-70" : ""}`,
4914
4893
  children: [
4915
4894
  z.map((u) => {
4916
- const m = [u.addressLine1, u.addressLine2].filter(Boolean).map((P) => et(P || "")).join(" "), f = et(u.city || ""), v = `${et(u.state || "")}${u.state && u.postalCode ? ", " : ""}${u.postalCode || ""}`, F = et(u.country || ""), x = String(u.addressId ?? u.id), M = vt === x;
4917
- return /* @__PURE__ */ d(
4895
+ const m = [u.addressLine1, u.addressLine2].filter(Boolean).map((P) => et(P || "")).join(" "), f = et(u.city || ""), v = `${et(u.state || "")}${u.state && u.postalCode ? ", " : ""}${u.postalCode || ""}`, F = et(u.country || ""), b = String(u.addressId ?? u.id), M = vt === b;
4896
+ return /* @__PURE__ */ c(
4918
4897
  "label",
4919
4898
  {
4920
4899
  className: `flex items-start gap-3 p-4 border rounded-lg cursor-pointer transition hover:shadow-sm ${M ? "border-tanya-light" : "border-gray-300"} ${O ? "pointer-events-none" : ""}`,
@@ -4928,13 +4907,13 @@ const Je = "USD", Sn = (e) => {
4928
4907
  className: "mt-1 accent-tanya-light",
4929
4908
  checked: M,
4930
4909
  disabled: O,
4931
- onChange: () => rr(x),
4932
- value: x
4910
+ onChange: () => rr(b),
4911
+ value: b
4933
4912
  }
4934
4913
  ),
4935
- /* @__PURE__ */ d("div", { className: "flex-1", children: [
4914
+ /* @__PURE__ */ c("div", { className: "flex-1", children: [
4936
4915
  /* @__PURE__ */ a("div", { className: "font-semibold text-gray-800", children: m || "Address" }),
4937
- /* @__PURE__ */ d("div", { className: "text-sm text-gray-700", children: [
4916
+ /* @__PURE__ */ c("div", { className: "text-sm text-gray-700", children: [
4938
4917
  f,
4939
4918
  /* @__PURE__ */ a("br", {}),
4940
4919
  v,
@@ -4944,10 +4923,10 @@ const Je = "USD", Sn = (e) => {
4944
4923
  ] })
4945
4924
  ]
4946
4925
  },
4947
- x
4926
+ b
4948
4927
  );
4949
4928
  }),
4950
- /* @__PURE__ */ d("div", { className: "flex justify-between pt-2", children: [
4929
+ /* @__PURE__ */ c("div", { className: "flex justify-between pt-2", children: [
4951
4930
  /* @__PURE__ */ a(
4952
4931
  "button",
4953
4932
  {
@@ -4963,7 +4942,7 @@ const Je = "USD", Sn = (e) => {
4963
4942
  /* @__PURE__ */ a(
4964
4943
  "button",
4965
4944
  {
4966
- onClick: ko,
4945
+ onClick: vo,
4967
4946
  disabled: O,
4968
4947
  className: `px-6 py-2.5 rounded-full font-semibold text-white shadow-md transition-all duration-300 ${O ? "opacity-60 cursor-not-allowed" : "hover:-translate-y-0.5 hover:shadow-lg"}`,
4969
4948
  style: { background: Ie },
@@ -4975,9 +4954,9 @@ const Je = "USD", Sn = (e) => {
4975
4954
  }
4976
4955
  ) : /* @__PURE__ */ a("div", { className: "text-center py-8 text-gray-600", children: "No addresses found. Please add a new one in your profile." })
4977
4956
  ] }),
4978
- Y && /* @__PURE__ */ d("div", { className: "mt-2 mb-6 mx-6 rounded-xl p-6 shadow-md border border-gray-200 bg-white animate-fade-in", children: [
4979
- /* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: [
4980
- /* @__PURE__ */ d("h3", { className: "font-semibold text-lg text-gray-800 flex items-center gap-2", children: [
4957
+ Y && /* @__PURE__ */ c("div", { className: "mt-2 mb-6 mx-6 rounded-xl p-6 shadow-md border border-gray-200 bg-white animate-fade-in", children: [
4958
+ /* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: [
4959
+ /* @__PURE__ */ c("h3", { className: "font-semibold text-lg text-gray-800 flex items-center gap-2", children: [
4981
4960
  /* @__PURE__ */ a(
4982
4961
  se,
4983
4962
  {
@@ -4988,12 +4967,12 @@ const Je = "USD", Sn = (e) => {
4988
4967
  ),
4989
4968
  "Great! Now choose how fast you want it delivered 🚚"
4990
4969
  ] }),
4991
- $ && /* @__PURE__ */ d(Ne, { children: [
4970
+ $ && /* @__PURE__ */ c(Se, { children: [
4992
4971
  /* @__PURE__ */ a("span", { className: "ml-2 text-xs px-2 py-1 rounded-full bg-green-100 text-green-700 font-semibold", children: "Selected" }),
4993
4972
  !le && /* @__PURE__ */ a(
4994
4973
  "button",
4995
4974
  {
4996
- onClick: Co,
4975
+ onClick: So,
4997
4976
  className: "ml-2 text-xs px-2 py-1 rounded-full border hover:bg-gray-50",
4998
4977
  style: {
4999
4978
  borderColor: "var(--tanya-light)",
@@ -5013,7 +4992,7 @@ const Je = "USD", Sn = (e) => {
5013
4992
  children: Object.keys(it).map(
5014
4993
  (u) => {
5015
4994
  const m = it[u], f = Q === u;
5016
- return /* @__PURE__ */ d(
4995
+ return /* @__PURE__ */ c(
5017
4996
  "label",
5018
4997
  {
5019
4998
  className: `flex items-start gap-3 p-4 border rounded-lg cursor-pointer transition hover:shadow-sm ${f ? "border-tanya-light" : "border-gray-300"} ${$ ? "pointer-events-none" : ""}`,
@@ -5030,8 +5009,8 @@ const Je = "USD", Sn = (e) => {
5030
5009
  onChange: () => oe(u)
5031
5010
  }
5032
5011
  ),
5033
- /* @__PURE__ */ d("div", { className: "flex-1", children: [
5034
- /* @__PURE__ */ d("div", { className: "font-semibold text-gray-800 flex items-center gap-2", children: [
5012
+ /* @__PURE__ */ c("div", { className: "flex-1", children: [
5013
+ /* @__PURE__ */ c("div", { className: "font-semibold text-gray-800 flex items-center gap-2", children: [
5035
5014
  /* @__PURE__ */ a(se, { icon: m.icon, width: "18" }),
5036
5015
  " ",
5037
5016
  m.label
@@ -5050,7 +5029,7 @@ const Je = "USD", Sn = (e) => {
5050
5029
  )
5051
5030
  }
5052
5031
  ),
5053
- /* @__PURE__ */ d("div", { className: "flex justify-between pt-4", children: [
5032
+ /* @__PURE__ */ c("div", { className: "flex justify-between pt-4", children: [
5054
5033
  /* @__PURE__ */ a(
5055
5034
  "button",
5056
5035
  {
@@ -5075,9 +5054,9 @@ const Je = "USD", Sn = (e) => {
5075
5054
  )
5076
5055
  ] })
5077
5056
  ] }),
5078
- Ee && /* @__PURE__ */ d("div", { className: "mt-2 mb-6 mx-6 rounded-xl p-6 shadow-md border border-gray-200 bg-white animate-fade-in", children: [
5079
- /* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: [
5080
- /* @__PURE__ */ d("h3", { className: "font-semibold text-lg text-gray-800 flex items-center gap-2", children: [
5057
+ Ee && /* @__PURE__ */ c("div", { className: "mt-2 mb-6 mx-6 rounded-xl p-6 shadow-md border border-gray-200 bg-white animate-fade-in", children: [
5058
+ /* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: [
5059
+ /* @__PURE__ */ c("h3", { className: "font-semibold text-lg text-gray-800 flex items-center gap-2", children: [
5081
5060
  /* @__PURE__ */ a(
5082
5061
  se,
5083
5062
  {
@@ -5088,12 +5067,12 @@ const Je = "USD", Sn = (e) => {
5088
5067
  ),
5089
5068
  "Almost done! 💳"
5090
5069
  ] }),
5091
- ee && /* @__PURE__ */ d(Ne, { children: [
5070
+ ee && /* @__PURE__ */ c(Se, { children: [
5092
5071
  /* @__PURE__ */ a("span", { className: "ml-2 text-xs px-2 py-1 rounded-full bg-green-100 text-green-700 font-semibold", children: "Selected" }),
5093
5072
  !le && /* @__PURE__ */ a(
5094
5073
  "button",
5095
5074
  {
5096
- onClick: Fo,
5075
+ onClick: Io,
5097
5076
  className: "ml-2 text-xs px-2 py-1 rounded-full border hover:bg-gray-50",
5098
5077
  style: {
5099
5078
  borderColor: "var(--tanya-light)",
@@ -5110,7 +5089,7 @@ const Je = "USD", Sn = (e) => {
5110
5089
  "div",
5111
5090
  {
5112
5091
  className: `space-y-3 ${ee ? "opacity-70" : ""}`,
5113
- children: /* @__PURE__ */ d(
5092
+ children: /* @__PURE__ */ c(
5114
5093
  "label",
5115
5094
  {
5116
5095
  className: `flex items-start gap-3 p-4 border rounded-lg cursor-pointer transition hover:shadow-sm ${ie === "card" ? "border-tanya-light" : "border-gray-300"} ${ee ? "pointer-events-none" : ""}`,
@@ -5127,13 +5106,13 @@ const Je = "USD", Sn = (e) => {
5127
5106
  onChange: () => _e("card")
5128
5107
  }
5129
5108
  ),
5130
- /* @__PURE__ */ d("div", { className: "flex-1", children: [
5131
- /* @__PURE__ */ d("div", { className: "font-semibold text-gray-800 flex items-center gap-2", children: [
5109
+ /* @__PURE__ */ c("div", { className: "flex-1", children: [
5110
+ /* @__PURE__ */ c("div", { className: "font-semibold text-gray-800 flex items-center gap-2", children: [
5132
5111
  /* @__PURE__ */ a(se, { icon: "mdi:credit-card-chip-outline", width: "18" }),
5133
5112
  " ",
5134
5113
  "Credit Card"
5135
5114
  ] }),
5136
- ie === "card" && /* @__PURE__ */ d("div", { className: "text-sm text-gray-700 mt-1", children: [
5115
+ ie === "card" && /* @__PURE__ */ c("div", { className: "text-sm text-gray-700 mt-1", children: [
5137
5116
  "Mastercard    •••• 7820",
5138
5117
  /* @__PURE__ */ a("br", {}),
5139
5118
  "Expiry: 12/26"
@@ -5144,11 +5123,11 @@ const Je = "USD", Sn = (e) => {
5144
5123
  )
5145
5124
  }
5146
5125
  ),
5147
- /* @__PURE__ */ d("div", { className: "flex justify-between pt-4", children: [
5126
+ /* @__PURE__ */ c("div", { className: "flex justify-between pt-4", children: [
5148
5127
  /* @__PURE__ */ a(
5149
5128
  "button",
5150
5129
  {
5151
- onClick: Io,
5130
+ onClick: _o,
5152
5131
  className: "px-6 py-2.5 rounded-full font-semibold border transition-all hover:-translate-y-0.5 hover:shadow-sm",
5153
5132
  style: {
5154
5133
  borderColor: "var(--tanya-light)",
@@ -5160,7 +5139,7 @@ const Je = "USD", Sn = (e) => {
5160
5139
  /* @__PURE__ */ a(
5161
5140
  "button",
5162
5141
  {
5163
- onClick: _o,
5142
+ onClick: Co,
5164
5143
  disabled: ee,
5165
5144
  className: `px-6 py-2.5 rounded-full font-semibold text-white shadow-md transition-all duration-300 ${ee ? "opacity-60 cursor-not-allowed" : "hover:-translate-y-0.5 hover:shadow-lg"}`,
5166
5145
  style: { background: "var(--tanya)" },
@@ -5184,12 +5163,12 @@ const Je = "USD", Sn = (e) => {
5184
5163
  ]
5185
5164
  }
5186
5165
  ),
5187
- /* @__PURE__ */ d("div", { className: "sticky bottom-0 w-[96%] drop-shadow-xl flex items-center rounded-full bg-white border border-gray-300 m-[15px]", children: [
5166
+ /* @__PURE__ */ c("div", { className: "sticky bottom-0 w-[96%] drop-shadow-xl flex items-center rounded-full bg-white border border-gray-300 m-[15px]", children: [
5188
5167
  /* @__PURE__ */ a(
5189
5168
  "input",
5190
5169
  {
5191
5170
  placeholder: j ? "Complete the current step…" : Ct ? `What would you like me to do? (e.g., If this product goes below $${parseInt(r.price) - 5}, grab it for me.)` : "Oops! This combination isn’t available for this product. Try a different option.",
5192
- disabled: wo,
5171
+ disabled: go,
5193
5172
  className: `w-full rounded-full p-4 outline-none border-none focus:ring-0 focus:border-transparent disabled:bg-gray-100 disabled:cursor-not-allowed
5194
5173
  ${Ct ? "" : "placeholder:text-red-400 text-red-500"}`,
5195
5174
  value: ye,
@@ -5233,8 +5212,8 @@ const Je = "USD", Sn = (e) => {
5233
5212
  );
5234
5213
  };
5235
5214
  export {
5236
- pi as AgenticShoppingButton,
5237
- hi as TanyaChatbot,
5238
- ci as TanyaChatbotProvider
5215
+ hi as AgenticShoppingButton,
5216
+ mi as TanyaChatbot,
5217
+ li as TanyaChatbotProvider
5239
5218
  };
5240
5219
  //# sourceMappingURL=tanya-chatbot.es.js.map