tanya-chatbot 0.0.13 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/tanya-chatbot.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { useEffect as ct, forwardRef as hr, useState as D, createElement as fe, useRef as Ot } from "react";
|
|
2
|
+
import { jsx as l, jsxs as p, Fragment as pe } from "react/jsx-runtime";
|
|
3
|
+
import { createHttpLink as Qr, ApolloClient as Xr, InMemoryCache as Zr, ApolloProvider as tn } from "@apollo/client";
|
|
4
|
+
import { Provider as en, useDispatch as mr, useSelector as Kt } from "react-redux";
|
|
5
|
+
import { createSlice as gr, configureStore as rn } from "@reduxjs/toolkit";
|
|
6
6
|
import * as wr from "@radix-ui/react-popover";
|
|
7
7
|
import "clsx";
|
|
8
8
|
import "tailwind-merge";
|
|
@@ -10,7 +10,18 @@ import U from "axios";
|
|
|
10
10
|
import "crypto-js";
|
|
11
11
|
import { Icon as Le } from "@iconify/react";
|
|
12
12
|
import { toast as X } from "react-toastify";
|
|
13
|
-
const on = '*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media(min-width:640px){.container{max-width:640px}}@media(min-width:768px){.container{max-width:768px}}@media(min-width:1024px){.container{max-width:1024px}}@media(min-width:1280px){.container{max-width:1280px}}@media(min-width:1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.top-full{top:100%}.z-40{z-index:40}.z-50{z-index:50}.m-1{margin:.25rem}.m-3{margin:.75rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.mb-1{margin-bottom:.25rem}.mb-16{margin-bottom:4rem}.mb-2{margin-bottom:.5rem}.mb-20{margin-bottom:5rem}.mb-24{margin-bottom:6rem}.mb-4{margin-bottom:1rem}.mb-8{margin-bottom:2rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.h-12{height:3rem}.h-28{height:7rem}.h-3{height:.75rem}.h-6{height:1.5rem}.h-\\[120px\\]{height:120px}.h-\\[200px\\]{height:200px}.h-\\[60px\\]{height:60px}.h-\\[90vh\\]{height:90vh}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-screen{height:100vh}.w-28{width:7rem}.w-3{width:.75rem}.w-5\\/6{width:83.333333%}.w-6{width:1.5rem}.w-72{width:18rem}.w-\\[100vw\\]{width:100vw}.w-\\[120px\\]{width:120px}.w-\\[150px\\]{width:150px}.w-\\[60px\\]{width:60px}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.max-w-\\[200px\\]{max-width:200px}.max-w-\\[75\\%\\]{max-width:75%}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-ellipsis{text-overflow:ellipsis}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\\[10px\\]{border-radius:10px}.rounded-\\[20px\\]{border-radius:20px}.rounded-\\[5px\\]{border-radius:5px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-xl{border-radius:.75rem}.rounded-l-\\[20px\\]{border-top-left-radius:20px;border-bottom-left-radius:20px}.rounded-l-xl{border-top-left-radius:.75rem;border-bottom-left-radius:.75rem}.rounded-r-xl{border-top-right-radius:.75rem;border-bottom-right-radius:.75rem}.rounded-bl-2xl{border-bottom-left-radius:1rem}.rounded-br-xl{border-bottom-right-radius:.75rem}.rounded-tr-\\[20px\\]{border-top-right-radius:20px}.rounded-tr-\\[5px\\]{border-top-right-radius:5px}.border{border-width:1px}.border-0{border-width:0px}.border-b-2{border-bottom-width:2px}.border-l-2{border-left-width:2px}.border-t-2{border-top-width:2px}.border-none{border-style:none}.border-\\[\\#C9C2DE\\]{--tw-border-opacity: 1;border-color:rgb(201 194 222 / var(--tw-border-opacity, 1))}.border-\\[\\#E5E5E5\\]{--tw-border-opacity: 1;border-color:rgb(229 229 229 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.bg-\\[\\#553D94\\]{--tw-bg-opacity: 1;background-color:rgb(85 61 148 / var(--tw-bg-opacity, 1))}.bg-\\[\\#6851C6\\]{--tw-bg-opacity: 1;background-color:rgb(104 81 198 / var(--tw-bg-opacity, 1))}.bg-\\[\\#804C9E0D\\]{background-color:#804c9e0d}.bg-\\[\\#A21CAF\\]{--tw-bg-opacity: 1;background-color:rgb(162 28 175 / var(--tw-bg-opacity, 1))}.bg-\\[\\#AB192D\\]{--tw-bg-opacity: 1;background-color:rgb(171 25 45 / var(--tw-bg-opacity, 1))}.bg-\\[\\#E2DBFF\\]{--tw-bg-opacity: 1;background-color:rgb(226 219 255 / var(--tw-bg-opacity, 1))}.bg-\\[\\#E3DEEF\\]{--tw-bg-opacity: 1;background-color:rgb(227 222 239 / var(--tw-bg-opacity, 1))}.bg-\\[\\#F3F3F3\\]{--tw-bg-opacity: 1;background-color:rgb(243 243 243 / var(--tw-bg-opacity, 1))}.bg-\\[\\#FFFFFF\\],.bg-\\[\\#ffffff\\]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-black\\/30{background-color:#0000004d}.bg-indigo-300{--tw-bg-opacity: 1;background-color:rgb(165 180 252 / var(--tw-bg-opacity, 1))}.bg-popover{background-color:hsl(var(--popover))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.object-cover{-o-object-fit:cover;object-fit:cover}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-\\[1px\\]{padding:1px}.p-\\[5px\\]{padding:5px}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-7{padding-left:1.75rem;padding-right:1.75rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-2{padding-bottom:.5rem}.pl-2{padding-left:.5rem}.pr-5{padding-right:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.font-nunitoSans{font-family:Nunito Sans}.text-\\[12px\\]{font-size:12px}.text-\\[14px\\]{font-size:14px}.text-\\[15px\\]{font-size:15px}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-snug{line-height:1.375}.text-\\[\\#000000\\]{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-\\[\\#14121F\\]{--tw-text-opacity: 1;color:rgb(20 18 31 / var(--tw-text-opacity, 1))}.text-\\[\\#18181B\\]{--tw-text-opacity: 1;color:rgb(24 24 27 / var(--tw-text-opacity, 1))}.text-\\[\\#232323\\]{--tw-text-opacity: 1;color:rgb(35 35 35 / var(--tw-text-opacity, 1))}.text-\\[\\#323135\\]{--tw-text-opacity: 1;color:rgb(50 49 53 / var(--tw-text-opacity, 1))}.text-\\[\\#494949\\]{--tw-text-opacity: 1;color:rgb(73 73 73 / var(--tw-text-opacity, 1))}.text-\\[\\#555555\\]{--tw-text-opacity: 1;color:rgb(85 85 85 / var(--tw-text-opacity, 1))}.text-\\[\\#5B5B5B\\]{--tw-text-opacity: 1;color:rgb(91 91 91 / var(--tw-text-opacity, 1))}.text-\\[\\#68656E\\]{--tw-text-opacity: 1;color:rgb(104 101 110 / var(--tw-text-opacity, 1))}.text-\\[\\#959595\\]{--tw-text-opacity: 1;color:rgb(149 149 149 / var(--tw-text-opacity, 1))}.text-\\[\\#EC5050\\]{--tw-text-opacity: 1;color:rgb(236 80 80 / var(--tw-text-opacity, 1))}.text-\\[\\#FBFBFC\\]{--tw-text-opacity: 1;color:rgb(251 251 252 / var(--tw-text-opacity, 1))}.text-\\[\\#FFFFFF\\]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity, 1))}.line-through{text-decoration-line:line-through}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-80{opacity:.8}.shadow-\\[0px_2px_2px_0px_\\#9292BC40\\]{--tw-shadow: 0px 2px 2px 0px #9292BC40;--tw-shadow-colored: 0px 2px 2px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[0px_4px_10px_0px_\\#5F499840\\]{--tw-shadow: 0px 4px 10px 0px #5F499840;--tw-shadow-colored: 0px 4px 10px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.duration-300{animation-duration:.3s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.running{animation-play-state:running}html,body,#root{margin:0;padding:0}:root{line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;padding:0}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media(prefers-color-scheme:light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.hover\\:scale-125:hover{--tw-scale-x: 1.25;--tw-scale-y: 1.25;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:text-\\[\\#6952C7\\]:hover{--tw-text-opacity: 1;color:rgb(105 82 199 / var(--tw-text-opacity, 1))}.hover\\:opacity-90:hover{opacity:.9}.group:hover .group-hover\\:opacity-100{opacity:1}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}@media(min-width:640px){.sm\\:w-\\[80vw\\]{width:80vw}}@media(min-width:768px){.md\\:h-\\[100vh\\]{height:100vh}.md\\:w-1\\/2{width:50%}.md\\:w-\\[770px\\]{width:770px}.md\\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:flex-row{flex-direction:row}}@media(min-width:1024px){.lg\\:h-\\[100vh\\]{height:100vh}.lg\\:w-1\\/2{width:50%}.lg\\:w-2\\/3{width:66.666667%}.lg\\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.lg\\:translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.lg\\:translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.lg\\:transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.lg\\:flex-row{flex-direction:row}.lg\\:rounded-l-xl{border-top-left-radius:.75rem;border-bottom-left-radius:.75rem}.lg\\:rounded-bl-xl{border-bottom-left-radius:.75rem}}', an = {
|
|
13
|
+
const nn = '*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media(min-width:640px){.container{max-width:640px}}@media(min-width:768px){.container{max-width:768px}}@media(min-width:1024px){.container{max-width:1024px}}@media(min-width:1280px){.container{max-width:1280px}}@media(min-width:1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.top-full{top:100%}.z-40{z-index:40}.z-50{z-index:50}.m-1{margin:.25rem}.m-3{margin:.75rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.mb-1{margin-bottom:.25rem}.mb-16{margin-bottom:4rem}.mb-2{margin-bottom:.5rem}.mb-20{margin-bottom:5rem}.mb-24{margin-bottom:6rem}.mb-4{margin-bottom:1rem}.mb-8{margin-bottom:2rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.h-12{height:3rem}.h-28{height:7rem}.h-3{height:.75rem}.h-6{height:1.5rem}.h-\\[120px\\]{height:120px}.h-\\[200px\\]{height:200px}.h-\\[60px\\]{height:60px}.h-\\[90vh\\]{height:90vh}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-screen{height:100vh}.w-28{width:7rem}.w-3{width:.75rem}.w-5\\/6{width:83.333333%}.w-6{width:1.5rem}.w-72{width:18rem}.w-\\[100vw\\]{width:100vw}.w-\\[120px\\]{width:120px}.w-\\[150px\\]{width:150px}.w-\\[60px\\]{width:60px}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.max-w-\\[200px\\]{max-width:200px}.max-w-\\[75\\%\\]{max-width:75%}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-ellipsis{text-overflow:ellipsis}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\\[10px\\]{border-radius:10px}.rounded-\\[20px\\]{border-radius:20px}.rounded-\\[5px\\]{border-radius:5px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-xl{border-radius:.75rem}.rounded-l-\\[20px\\]{border-top-left-radius:20px;border-bottom-left-radius:20px}.rounded-l-xl{border-top-left-radius:.75rem;border-bottom-left-radius:.75rem}.rounded-r-xl{border-top-right-radius:.75rem;border-bottom-right-radius:.75rem}.rounded-bl-2xl{border-bottom-left-radius:1rem}.rounded-br-xl{border-bottom-right-radius:.75rem}.rounded-tr-\\[20px\\]{border-top-right-radius:20px}.rounded-tr-\\[5px\\]{border-top-right-radius:5px}.border{border-width:1px}.border-0{border-width:0px}.border-b-2{border-bottom-width:2px}.border-l-2{border-left-width:2px}.border-t-2{border-top-width:2px}.border-none{border-style:none}.border-\\[\\#C9C2DE\\]{--tw-border-opacity: 1;border-color:rgb(201 194 222 / var(--tw-border-opacity, 1))}.border-\\[\\#E5E5E5\\]{--tw-border-opacity: 1;border-color:rgb(229 229 229 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.bg-\\[\\#553D94\\]{--tw-bg-opacity: 1;background-color:rgb(85 61 148 / var(--tw-bg-opacity, 1))}.bg-\\[\\#6851C6\\]{--tw-bg-opacity: 1;background-color:rgb(104 81 198 / var(--tw-bg-opacity, 1))}.bg-\\[\\#804C9E0D\\]{background-color:#804c9e0d}.bg-\\[\\#A21CAF\\]{--tw-bg-opacity: 1;background-color:rgb(162 28 175 / var(--tw-bg-opacity, 1))}.bg-\\[\\#AB192D\\]{--tw-bg-opacity: 1;background-color:rgb(171 25 45 / var(--tw-bg-opacity, 1))}.bg-\\[\\#E2DBFF\\]{--tw-bg-opacity: 1;background-color:rgb(226 219 255 / var(--tw-bg-opacity, 1))}.bg-\\[\\#E3DEEF\\]{--tw-bg-opacity: 1;background-color:rgb(227 222 239 / var(--tw-bg-opacity, 1))}.bg-\\[\\#F3F3F3\\]{--tw-bg-opacity: 1;background-color:rgb(243 243 243 / var(--tw-bg-opacity, 1))}.bg-\\[\\#FFFFFF\\],.bg-\\[\\#ffffff\\]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-black\\/30{background-color:#0000004d}.bg-indigo-300{--tw-bg-opacity: 1;background-color:rgb(165 180 252 / var(--tw-bg-opacity, 1))}.bg-popover{background-color:hsl(var(--popover))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.object-cover{-o-object-fit:cover;object-fit:cover}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-\\[1px\\]{padding:1px}.p-\\[5px\\]{padding:5px}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-7{padding-left:1.75rem;padding-right:1.75rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-2{padding-bottom:.5rem}.pl-2{padding-left:.5rem}.pr-5{padding-right:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.font-nunitoSans{font-family:Nunito Sans}.text-\\[12px\\]{font-size:12px}.text-\\[14px\\]{font-size:14px}.text-\\[15px\\]{font-size:15px}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-snug{line-height:1.375}.text-\\[\\#000000\\]{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-\\[\\#14121F\\]{--tw-text-opacity: 1;color:rgb(20 18 31 / var(--tw-text-opacity, 1))}.text-\\[\\#18181B\\]{--tw-text-opacity: 1;color:rgb(24 24 27 / var(--tw-text-opacity, 1))}.text-\\[\\#232323\\]{--tw-text-opacity: 1;color:rgb(35 35 35 / var(--tw-text-opacity, 1))}.text-\\[\\#323135\\]{--tw-text-opacity: 1;color:rgb(50 49 53 / var(--tw-text-opacity, 1))}.text-\\[\\#494949\\]{--tw-text-opacity: 1;color:rgb(73 73 73 / var(--tw-text-opacity, 1))}.text-\\[\\#555555\\]{--tw-text-opacity: 1;color:rgb(85 85 85 / var(--tw-text-opacity, 1))}.text-\\[\\#5B5B5B\\]{--tw-text-opacity: 1;color:rgb(91 91 91 / var(--tw-text-opacity, 1))}.text-\\[\\#68656E\\]{--tw-text-opacity: 1;color:rgb(104 101 110 / var(--tw-text-opacity, 1))}.text-\\[\\#959595\\]{--tw-text-opacity: 1;color:rgb(149 149 149 / var(--tw-text-opacity, 1))}.text-\\[\\#EC5050\\]{--tw-text-opacity: 1;color:rgb(236 80 80 / var(--tw-text-opacity, 1))}.text-\\[\\#FBFBFC\\]{--tw-text-opacity: 1;color:rgb(251 251 252 / var(--tw-text-opacity, 1))}.text-\\[\\#FFFFFF\\]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity, 1))}.line-through{text-decoration-line:line-through}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-80{opacity:.8}.shadow-\\[0px_2px_2px_0px_\\#9292BC40\\]{--tw-shadow: 0px 2px 2px 0px #9292BC40;--tw-shadow-colored: 0px 2px 2px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[0px_4px_10px_0px_\\#5F499840\\]{--tw-shadow: 0px 4px 10px 0px #5F499840;--tw-shadow-colored: 0px 4px 10px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.duration-300{animation-duration:.3s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.running{animation-play-state:running}html,body,#root{margin:0;padding:0}:root{line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;padding:0}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media(prefers-color-scheme:light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.hover\\:scale-125:hover{--tw-scale-x: 1.25;--tw-scale-y: 1.25;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:text-\\[\\#6952C7\\]:hover{--tw-text-opacity: 1;color:rgb(105 82 199 / var(--tw-text-opacity, 1))}.hover\\:opacity-90:hover{opacity:.9}.group:hover .group-hover\\:opacity-100{opacity:1}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}@media(min-width:640px){.sm\\:w-\\[80vw\\]{width:80vw}}@media(min-width:768px){.md\\:h-\\[100vh\\]{height:100vh}.md\\:w-1\\/2{width:50%}.md\\:w-\\[770px\\]{width:770px}.md\\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:flex-row{flex-direction:row}}@media(min-width:1024px){.lg\\:h-\\[100vh\\]{height:100vh}.lg\\:w-1\\/2{width:50%}.lg\\:w-2\\/3{width:66.666667%}.lg\\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.lg\\:translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.lg\\:translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.lg\\:transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.lg\\:flex-row{flex-direction:row}.lg\\:rounded-l-xl{border-top-left-radius:.75rem;border-bottom-left-radius:.75rem}.lg\\:rounded-bl-xl{border-bottom-left-radius:.75rem}}';
|
|
14
|
+
function pa() {
|
|
15
|
+
return ct(() => {
|
|
16
|
+
if (typeof document < "u") {
|
|
17
|
+
const t = document.createElement("style");
|
|
18
|
+
return t.textContent = nn, document.head.appendChild(t), () => {
|
|
19
|
+
document.head.removeChild(t);
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
}, []), null;
|
|
23
|
+
}
|
|
24
|
+
const on = {
|
|
14
25
|
store: {
|
|
15
26
|
storeCode: "",
|
|
16
27
|
storeName: "",
|
|
@@ -44,30 +55,30 @@ const on = '*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;-
|
|
|
44
55
|
mobile: []
|
|
45
56
|
}
|
|
46
57
|
}
|
|
47
|
-
}, yr =
|
|
58
|
+
}, yr = gr({
|
|
48
59
|
name: "store",
|
|
49
|
-
initialState:
|
|
60
|
+
initialState: on,
|
|
50
61
|
reducers: {
|
|
51
62
|
setStore: (t, e) => {
|
|
52
63
|
t.store = e.payload;
|
|
53
64
|
}
|
|
54
65
|
}
|
|
55
|
-
}), { setStore: ha } = yr.actions,
|
|
66
|
+
}), { setStore: ha } = yr.actions, an = yr.reducer, sn = {
|
|
56
67
|
product: null
|
|
57
|
-
}, br =
|
|
68
|
+
}, br = gr({
|
|
58
69
|
name: "product",
|
|
59
|
-
initialState:
|
|
70
|
+
initialState: sn,
|
|
60
71
|
reducers: {
|
|
61
72
|
setProduct: (t, e) => {
|
|
62
73
|
t.product = e.payload;
|
|
63
74
|
}
|
|
64
75
|
}
|
|
65
|
-
}), { setProduct: he } = br.actions,
|
|
76
|
+
}), { setProduct: he } = br.actions, cn = br.reducer, ln = rn({
|
|
66
77
|
reducer: {
|
|
67
|
-
store:
|
|
68
|
-
product:
|
|
78
|
+
store: an,
|
|
79
|
+
product: cn
|
|
69
80
|
}
|
|
70
|
-
}),
|
|
81
|
+
}), un = ({ children: t }) => /* @__PURE__ */ l(en, { store: ln, children: t }), Ft = (t) => {
|
|
71
82
|
const e = new CustomEvent("reactCartUpdated", {
|
|
72
83
|
detail: {
|
|
73
84
|
cartUpdated: !0,
|
|
@@ -77,12 +88,12 @@ const on = '*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;-
|
|
|
77
88
|
});
|
|
78
89
|
window.dispatchEvent(e);
|
|
79
90
|
};
|
|
80
|
-
function
|
|
91
|
+
function dn({
|
|
81
92
|
...t
|
|
82
93
|
}) {
|
|
83
94
|
return /* @__PURE__ */ l(wr.Root, { "data-slot": "popover", ...t });
|
|
84
95
|
}
|
|
85
|
-
function
|
|
96
|
+
function fn({
|
|
86
97
|
...t
|
|
87
98
|
}) {
|
|
88
99
|
return /* @__PURE__ */ l(wr.Trigger, { "data-slot": "popover-trigger", ...t });
|
|
@@ -91,7 +102,7 @@ const wt = () => ({ aiConversationUrl: "https://mdv3qwfi2j.execute-api.us-east-1
|
|
|
91
102
|
const t = "https://tanya-sfcc-server.vercel.app/";
|
|
92
103
|
try {
|
|
93
104
|
const e = await U.post(
|
|
94
|
-
`${t}api/auth/token-bm-grant?baseUrl=${
|
|
105
|
+
`${t}api/auth/token-bm-grant?baseUrl=${lt()}&siteId=${rt()}`
|
|
95
106
|
);
|
|
96
107
|
return e.status === 200 && e.data.access_token ? e.data.access_token : (console.error("Failed to fetch token:", e.data), null);
|
|
97
108
|
} catch (e) {
|
|
@@ -101,7 +112,7 @@ const wt = () => ({ aiConversationUrl: "https://mdv3qwfi2j.execute-api.us-east-1
|
|
|
101
112
|
const e = "https://tanya-sfcc-server.vercel.app/";
|
|
102
113
|
try {
|
|
103
114
|
const r = JSON.parse(sessionStorage.getItem("customerData") || "{}").dwsid, n = await U.post(
|
|
104
|
-
`${e}api/auth/token-existing-guest-customer?dwsid=${r}&baseUrl=${
|
|
115
|
+
`${e}api/auth/token-existing-guest-customer?dwsid=${r}&baseUrl=${lt()}&siteId=${rt()}&pubCfg=${ut()}&envRef=${dt()}&orgRef=${ft()}`,
|
|
105
116
|
{},
|
|
106
117
|
{
|
|
107
118
|
headers: {
|
|
@@ -128,7 +139,7 @@ async function Zt() {
|
|
|
128
139
|
).usrRef;
|
|
129
140
|
try {
|
|
130
141
|
const i = r ? "unregister-auth" : "register-auth", c = await U.get(
|
|
131
|
-
`${n}sc-api/${i}?dwsid=${o}&email=${a}&pubCfg=${
|
|
142
|
+
`${n}sc-api/${i}?dwsid=${o}&email=${a}&pubCfg=${ut()}&envRef=${dt()}&orgRef=${ft()}&siteId=${rt()}`
|
|
132
143
|
);
|
|
133
144
|
return localStorage.setItem("access_token", c.data.access_token), localStorage.setItem(
|
|
134
145
|
"expires_in",
|
|
@@ -138,12 +149,12 @@ async function Zt() {
|
|
|
138
149
|
console.log(i);
|
|
139
150
|
}
|
|
140
151
|
}
|
|
141
|
-
const
|
|
152
|
+
const lt = () => sessionStorage.getItem("Host"), rt = () => sessionStorage.getItem("SiteId"), ut = () => sessionStorage.getItem("pubCfg"), dt = () => sessionStorage.getItem("envRef"), ft = () => sessionStorage.getItem("orgRef"), ze = async (t, e) => {
|
|
142
153
|
const { serverUrl: r, basePath: n } = wt();
|
|
143
154
|
try {
|
|
144
|
-
const o =
|
|
155
|
+
const o = lt();
|
|
145
156
|
return (await U.get(
|
|
146
|
-
`${r}${n}/search-sfcc?baseUrl=${o}&query=${t}&siteId=${rt()}&pubCfg=${
|
|
157
|
+
`${r}${n}/search-sfcc?baseUrl=${o}&query=${t}&siteId=${rt()}&pubCfg=${ut()}&envRef=${dt()}&orgRef=${ft()}`,
|
|
147
158
|
{
|
|
148
159
|
headers: {
|
|
149
160
|
"Content-Type": "application/json",
|
|
@@ -156,11 +167,11 @@ const ct = () => sessionStorage.getItem("Host"), rt = () => sessionStorage.getIt
|
|
|
156
167
|
}
|
|
157
168
|
}, kr = async (t) => {
|
|
158
169
|
if (!t) throw new Error("Product ID is required");
|
|
159
|
-
const { serverUrl: e, basePath: r } = wt(), n =
|
|
170
|
+
const { serverUrl: e, basePath: r } = wt(), n = lt();
|
|
160
171
|
console.log("calling access");
|
|
161
172
|
const { access_token: o } = await Zt();
|
|
162
173
|
return console.log(o), (await U.get(
|
|
163
|
-
`${e}${r}/product-sfcc/${t}?baseUrl=${n}&siteId=${rt()}&pubCfg=${
|
|
174
|
+
`${e}${r}/product-sfcc/${t}?baseUrl=${n}&siteId=${rt()}&pubCfg=${ut()}&envRef=${dt()}&orgRef=${ft()}`,
|
|
164
175
|
{
|
|
165
176
|
headers: {
|
|
166
177
|
"Content-Type": "application/json",
|
|
@@ -168,13 +179,13 @@ const ct = () => sessionStorage.getItem("Host"), rt = () => sessionStorage.getIt
|
|
|
168
179
|
}
|
|
169
180
|
}
|
|
170
181
|
)).data;
|
|
171
|
-
},
|
|
182
|
+
}, pn = async (t) => {
|
|
172
183
|
if (!t) throw new Error("customerId is required");
|
|
173
184
|
const e = await xr(), { customer_token: r } = await vr(
|
|
174
185
|
e
|
|
175
186
|
), { serverUrl: n, basePath: o } = wt(), i = (await Zt()).access_token;
|
|
176
187
|
return (await U.get(
|
|
177
|
-
`${n}${o}/get-interest?baseUrl=${
|
|
188
|
+
`${n}${o}/get-interest?baseUrl=${lt()}&customerId=${t}&siteId=${rt()}&pubCfg=${ut()}&envRef=${dt()}&orgRef=${ft()}`,
|
|
178
189
|
{
|
|
179
190
|
headers: {
|
|
180
191
|
"Content-Type": "application/json",
|
|
@@ -182,7 +193,7 @@ const ct = () => sessionStorage.getItem("Host"), rt = () => sessionStorage.getIt
|
|
|
182
193
|
}
|
|
183
194
|
}
|
|
184
195
|
)).data;
|
|
185
|
-
}, De = (t) => String(typeof t == "string" ? t : t["en-US"] || t), Me = (t) => t != null && t.image ? [t.image] : "variants" in t ? t.variants[0].images : t.masterVariant.images.map((e) => e.url),
|
|
196
|
+
}, De = (t) => String(typeof t == "string" ? t : t["en-US"] || t), Me = (t) => t != null && t.image ? [t.image] : "variants" in t ? t.variants[0].images : t.masterVariant.images.map((e) => e.url), hn = (t, e) => t.toLocaleString("en-US", {
|
|
186
197
|
style: "currency",
|
|
187
198
|
currency: e || "USD"
|
|
188
199
|
}), Ue = (t) => {
|
|
@@ -194,11 +205,11 @@ const ct = () => sessionStorage.getItem("Host"), rt = () => sessionStorage.getIt
|
|
|
194
205
|
centAmount: (r = t.masterVariant) == null ? void 0 : r.prices[0].value.centAmount,
|
|
195
206
|
currencyCode: (n = t.masterVariant) == null ? void 0 : n.prices[0].value.currencyCode
|
|
196
207
|
};
|
|
197
|
-
},
|
|
208
|
+
}, mn = (t) => t.charAt(0).toUpperCase() + t.slice(1), Be = (t, e) => t.length < e ? t : t.slice(0, e) + "...", ae = (t) => t.split("\\n").map((e, r) => {
|
|
198
209
|
const n = e.match(/^(\d+)\.\s(.+)/);
|
|
199
210
|
return n ? `<p key=${r} class="mb-2"><strong>${n[1]}.</strong> ${n[2]}</p>` : e.trim() ? `<p key=${r} class="mb-2">${e}</p>` : "<br/>";
|
|
200
211
|
}).join("");
|
|
201
|
-
function
|
|
212
|
+
function gn(t, e) {
|
|
202
213
|
const r = t.icons, n = t.aliases || /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ Object.create(null);
|
|
203
214
|
function a(i) {
|
|
204
215
|
if (r[i]) return o[i] = [];
|
|
@@ -228,18 +239,18 @@ const Sr = Object.freeze({
|
|
|
228
239
|
body: "",
|
|
229
240
|
hidden: !1
|
|
230
241
|
});
|
|
231
|
-
function
|
|
242
|
+
function wn(t, e) {
|
|
232
243
|
const r = {};
|
|
233
244
|
!t.hFlip != !e.hFlip && (r.hFlip = !0), !t.vFlip != !e.vFlip && (r.vFlip = !0);
|
|
234
245
|
const n = ((t.rotate || 0) + (e.rotate || 0)) % 4;
|
|
235
246
|
return n && (r.rotate = n), r;
|
|
236
247
|
}
|
|
237
248
|
function qe(t, e) {
|
|
238
|
-
const r =
|
|
249
|
+
const r = wn(t, e);
|
|
239
250
|
for (const n in me) n in Gt ? n in t && !(n in r) && (r[n] = Gt[n]) : n in e ? r[n] = e[n] : n in t && (r[n] = t[n]);
|
|
240
251
|
return r;
|
|
241
252
|
}
|
|
242
|
-
function
|
|
253
|
+
function yn(t, e, r) {
|
|
243
254
|
const n = t.icons, o = t.aliases || /* @__PURE__ */ Object.create(null);
|
|
244
255
|
let a = {};
|
|
245
256
|
function i(c) {
|
|
@@ -253,14 +264,14 @@ function Cr(t, e) {
|
|
|
253
264
|
t.not_found instanceof Array && t.not_found.forEach((o) => {
|
|
254
265
|
e(o, null), r.push(o);
|
|
255
266
|
});
|
|
256
|
-
const n =
|
|
267
|
+
const n = gn(t);
|
|
257
268
|
for (const o in n) {
|
|
258
269
|
const a = n[o];
|
|
259
|
-
a && (e(o,
|
|
270
|
+
a && (e(o, yn(t, o, a)), r.push(o));
|
|
260
271
|
}
|
|
261
272
|
return r;
|
|
262
273
|
}
|
|
263
|
-
const
|
|
274
|
+
const bn = {
|
|
264
275
|
provider: "",
|
|
265
276
|
aliases: {},
|
|
266
277
|
not_found: {},
|
|
@@ -273,7 +284,7 @@ function ie(t, e) {
|
|
|
273
284
|
function Ir(t) {
|
|
274
285
|
if (typeof t != "object" || t === null) return null;
|
|
275
286
|
const e = t;
|
|
276
|
-
if (typeof e.prefix != "string" || !t.icons || typeof t.icons != "object" || !ie(t,
|
|
287
|
+
if (typeof e.prefix != "string" || !t.icons || typeof t.icons != "object" || !ie(t, bn)) return null;
|
|
277
288
|
const r = e.icons;
|
|
278
289
|
for (const o in r) {
|
|
279
290
|
const a = r[o];
|
|
@@ -287,7 +298,7 @@ function Ir(t) {
|
|
|
287
298
|
return e;
|
|
288
299
|
}
|
|
289
300
|
const Re = /* @__PURE__ */ Object.create(null);
|
|
290
|
-
function
|
|
301
|
+
function xn(t, e) {
|
|
291
302
|
return {
|
|
292
303
|
provider: t,
|
|
293
304
|
prefix: e,
|
|
@@ -297,14 +308,14 @@ function vn(t, e) {
|
|
|
297
308
|
}
|
|
298
309
|
function Et(t, e) {
|
|
299
310
|
const r = Re[t] || (Re[t] = /* @__PURE__ */ Object.create(null));
|
|
300
|
-
return r[e] || (r[e] =
|
|
311
|
+
return r[e] || (r[e] = xn(t, e));
|
|
301
312
|
}
|
|
302
313
|
function _r(t, e) {
|
|
303
314
|
return Ir(e) ? Cr(e, (r, n) => {
|
|
304
315
|
n ? t.icons[r] = n : t.missing.add(r);
|
|
305
316
|
}) : [];
|
|
306
317
|
}
|
|
307
|
-
function
|
|
318
|
+
function vn(t, e, r) {
|
|
308
319
|
try {
|
|
309
320
|
if (typeof r.body == "string")
|
|
310
321
|
return t.icons[e] = { ...r }, !0;
|
|
@@ -357,18 +368,18 @@ function He(t) {
|
|
|
357
368
|
return r.icons[n] || (r.missing.has(n) ? null : void 0);
|
|
358
369
|
}
|
|
359
370
|
}
|
|
360
|
-
function
|
|
371
|
+
function kn(t, e) {
|
|
361
372
|
const r = te(t, !0, Mt);
|
|
362
373
|
if (!r) return !1;
|
|
363
374
|
const n = Et(r.provider, r.prefix);
|
|
364
|
-
return e ?
|
|
375
|
+
return e ? vn(n, r.name, e) : (n.missing.add(r.name), !0);
|
|
365
376
|
}
|
|
366
|
-
function
|
|
377
|
+
function Sn(t, e) {
|
|
367
378
|
if (typeof t != "object") return !1;
|
|
368
379
|
if (typeof e != "string" && (e = t.provider || ""), Mt && !e && !t.prefix) {
|
|
369
380
|
let o = !1;
|
|
370
381
|
return Ir(t) && (t.prefix = "", Cr(t, (a, i) => {
|
|
371
|
-
|
|
382
|
+
kn(a, i) && (o = !0);
|
|
372
383
|
})), o;
|
|
373
384
|
}
|
|
374
385
|
const r = t.prefix;
|
|
@@ -385,15 +396,15 @@ const Er = Object.freeze({
|
|
|
385
396
|
}), Tr = Object.freeze({
|
|
386
397
|
...Er,
|
|
387
398
|
...Gt
|
|
388
|
-
}),
|
|
399
|
+
}), Cn = /(-?[0-9.]*[0-9]+[0-9.]*)/g, In = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
389
400
|
function Ve(t, e, r) {
|
|
390
401
|
if (e === 1) return t;
|
|
391
402
|
if (r = r || 100, typeof t == "number") return Math.ceil(t * e * r) / r;
|
|
392
403
|
if (typeof t != "string") return t;
|
|
393
|
-
const n = t.split(
|
|
404
|
+
const n = t.split(Cn);
|
|
394
405
|
if (n === null || !n.length) return t;
|
|
395
406
|
const o = [];
|
|
396
|
-
let a = n.shift(), i =
|
|
407
|
+
let a = n.shift(), i = In.test(a);
|
|
397
408
|
for (; ; ) {
|
|
398
409
|
if (i) {
|
|
399
410
|
const c = parseFloat(a);
|
|
@@ -403,7 +414,7 @@ function Ve(t, e, r) {
|
|
|
403
414
|
i = !i;
|
|
404
415
|
}
|
|
405
416
|
}
|
|
406
|
-
function
|
|
417
|
+
function _n(t, e = "defs") {
|
|
407
418
|
let r = "";
|
|
408
419
|
const n = t.indexOf("<" + e);
|
|
409
420
|
for (; n >= 0; ) {
|
|
@@ -418,15 +429,15 @@ function Fn(t, e = "defs") {
|
|
|
418
429
|
content: t
|
|
419
430
|
};
|
|
420
431
|
}
|
|
421
|
-
function
|
|
432
|
+
function Fn(t, e) {
|
|
422
433
|
return t ? "<defs>" + t + "</defs>" + e : e;
|
|
423
434
|
}
|
|
424
|
-
function
|
|
425
|
-
const n =
|
|
426
|
-
return
|
|
435
|
+
function Nn(t, e, r) {
|
|
436
|
+
const n = _n(t);
|
|
437
|
+
return Fn(n.defs, e + n.content + r);
|
|
427
438
|
}
|
|
428
|
-
const
|
|
429
|
-
function
|
|
439
|
+
const En = (t) => t === "unset" || t === "undefined" || t === "none";
|
|
440
|
+
function Tn(t, e) {
|
|
430
441
|
const r = {
|
|
431
442
|
...Se,
|
|
432
443
|
...t
|
|
@@ -456,13 +467,13 @@ function Pn(t, e) {
|
|
|
456
467
|
$ = o.width / 2 + o.left, w.unshift("rotate(-90 " + $.toString() + " " + $.toString() + ")");
|
|
457
468
|
break;
|
|
458
469
|
}
|
|
459
|
-
P % 2 === 1 && (o.left !== o.top && ($ = o.left, o.left = o.top, o.top = $), o.width !== o.height && ($ = o.width, o.width = o.height, o.height = $)), w.length && (a =
|
|
470
|
+
P % 2 === 1 && (o.left !== o.top && ($ = o.left, o.left = o.top, o.top = $), o.width !== o.height && ($ = o.width, o.width = o.height, o.height = $)), w.length && (a = Nn(a, '<g transform="' + w.join(" ") + '">', "</g>"));
|
|
460
471
|
});
|
|
461
472
|
const i = n.width, c = n.height, s = o.width, u = o.height;
|
|
462
473
|
let f, h;
|
|
463
474
|
i === null ? (h = c === null ? "1em" : c === "auto" ? u : c, f = Ve(h, s / u)) : (f = i === "auto" ? s : i, h = c === null ? Ve(f, u / s) : c === "auto" ? u : c);
|
|
464
475
|
const m = {}, g = (_, w) => {
|
|
465
|
-
|
|
476
|
+
En(w) || (m[_] = w.toString());
|
|
466
477
|
};
|
|
467
478
|
g("width", f), g("height", h);
|
|
468
479
|
const k = [
|
|
@@ -477,21 +488,21 @@ function Pn(t, e) {
|
|
|
477
488
|
body: a
|
|
478
489
|
};
|
|
479
490
|
}
|
|
480
|
-
const
|
|
481
|
-
let
|
|
482
|
-
function
|
|
491
|
+
const Pn = /\sid="(\S+)"/g, On = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
|
|
492
|
+
let jn = 0;
|
|
493
|
+
function $n(t, e = On) {
|
|
483
494
|
const r = [];
|
|
484
495
|
let n;
|
|
485
|
-
for (; n =
|
|
496
|
+
for (; n = Pn.exec(t); ) r.push(n[1]);
|
|
486
497
|
if (!r.length) return t;
|
|
487
498
|
const o = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
|
|
488
499
|
return r.forEach((a) => {
|
|
489
|
-
const i = typeof e == "function" ? e(a) : e + (
|
|
500
|
+
const i = typeof e == "function" ? e(a) : e + (jn++).toString(), c = a.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
490
501
|
t = t.replace(new RegExp('([#;"])(' + c + ')([")]|\\.[a-z])', "g"), "$1" + i + o + "$3");
|
|
491
502
|
}), t = t.replace(new RegExp(o, "g"), ""), t;
|
|
492
503
|
}
|
|
493
504
|
const ge = /* @__PURE__ */ Object.create(null);
|
|
494
|
-
function
|
|
505
|
+
function An(t, e) {
|
|
495
506
|
ge[t] = e;
|
|
496
507
|
}
|
|
497
508
|
function we(t) {
|
|
@@ -515,22 +526,22 @@ function Ce(t) {
|
|
|
515
526
|
const Ie = /* @__PURE__ */ Object.create(null), jt = ["https://api.simplesvg.com", "https://api.unisvg.com"], Yt = [];
|
|
516
527
|
for (; jt.length > 0; ) jt.length === 1 || Math.random() > 0.5 ? Yt.push(jt.shift()) : Yt.push(jt.pop());
|
|
517
528
|
Ie[""] = Ce({ resources: ["https://api.iconify.design"].concat(Yt) });
|
|
518
|
-
function
|
|
529
|
+
function Ln(t, e) {
|
|
519
530
|
const r = Ce(e);
|
|
520
531
|
return r === null ? !1 : (Ie[t] = r, !0);
|
|
521
532
|
}
|
|
522
533
|
function _e(t) {
|
|
523
534
|
return Ie[t];
|
|
524
535
|
}
|
|
525
|
-
const
|
|
536
|
+
const zn = () => {
|
|
526
537
|
let t;
|
|
527
538
|
try {
|
|
528
539
|
if (t = fetch, typeof t == "function") return t;
|
|
529
540
|
} catch {
|
|
530
541
|
}
|
|
531
542
|
};
|
|
532
|
-
let Ye =
|
|
533
|
-
function
|
|
543
|
+
let Ye = zn();
|
|
544
|
+
function Dn(t, e) {
|
|
534
545
|
const r = _e(t);
|
|
535
546
|
if (!r) return 0;
|
|
536
547
|
let n;
|
|
@@ -545,11 +556,11 @@ function Mn(t, e) {
|
|
|
545
556
|
}
|
|
546
557
|
return n;
|
|
547
558
|
}
|
|
548
|
-
function
|
|
559
|
+
function Mn(t) {
|
|
549
560
|
return t === 404;
|
|
550
561
|
}
|
|
551
|
-
const
|
|
552
|
-
const n = [], o =
|
|
562
|
+
const Un = (t, e, r) => {
|
|
563
|
+
const n = [], o = Dn(t, e), a = "icons";
|
|
553
564
|
let i = {
|
|
554
565
|
type: a,
|
|
555
566
|
provider: t,
|
|
@@ -565,19 +576,19 @@ const Bn = (t, e, r) => {
|
|
|
565
576
|
}, c = s.length), i.icons.push(s);
|
|
566
577
|
}), n.push(i), n;
|
|
567
578
|
};
|
|
568
|
-
function
|
|
579
|
+
function Bn(t) {
|
|
569
580
|
if (typeof t == "string") {
|
|
570
581
|
const e = _e(t);
|
|
571
582
|
if (e) return e.path;
|
|
572
583
|
}
|
|
573
584
|
return "/";
|
|
574
585
|
}
|
|
575
|
-
const
|
|
586
|
+
const qn = (t, e, r) => {
|
|
576
587
|
if (!Ye) {
|
|
577
588
|
r("abort", 424);
|
|
578
589
|
return;
|
|
579
590
|
}
|
|
580
|
-
let n =
|
|
591
|
+
let n = Bn(e.provider);
|
|
581
592
|
switch (e.type) {
|
|
582
593
|
case "icons": {
|
|
583
594
|
const a = e.prefix, c = e.icons.join(","), s = new URLSearchParams({ icons: c });
|
|
@@ -598,7 +609,7 @@ const Rn = (t, e, r) => {
|
|
|
598
609
|
const i = a.status;
|
|
599
610
|
if (i !== 200) {
|
|
600
611
|
setTimeout(() => {
|
|
601
|
-
r(
|
|
612
|
+
r(Mn(i) ? "abort" : "next", i);
|
|
602
613
|
});
|
|
603
614
|
return;
|
|
604
615
|
}
|
|
@@ -616,9 +627,9 @@ const Rn = (t, e, r) => {
|
|
|
616
627
|
}).catch(() => {
|
|
617
628
|
r("next", o);
|
|
618
629
|
});
|
|
619
|
-
},
|
|
620
|
-
prepare:
|
|
621
|
-
send:
|
|
630
|
+
}, Rn = {
|
|
631
|
+
prepare: Un,
|
|
632
|
+
send: qn
|
|
622
633
|
};
|
|
623
634
|
function Pr(t, e) {
|
|
624
635
|
t.forEach((r) => {
|
|
@@ -626,7 +637,7 @@ function Pr(t, e) {
|
|
|
626
637
|
n && (r.loaderCallbacks = n.filter((o) => o.id !== e));
|
|
627
638
|
});
|
|
628
639
|
}
|
|
629
|
-
function
|
|
640
|
+
function Hn(t) {
|
|
630
641
|
t.pendingCallbacksFlag || (t.pendingCallbacksFlag = !0, setTimeout(() => {
|
|
631
642
|
t.pendingCallbacksFlag = !1;
|
|
632
643
|
const e = t.loaderCallbacks ? t.loaderCallbacks.slice(0) : [];
|
|
@@ -655,9 +666,9 @@ function Vn(t) {
|
|
|
655
666
|
});
|
|
656
667
|
}));
|
|
657
668
|
}
|
|
658
|
-
let
|
|
659
|
-
function
|
|
660
|
-
const n =
|
|
669
|
+
let Vn = 0;
|
|
670
|
+
function Yn(t, e, r) {
|
|
671
|
+
const n = Vn++, o = Pr.bind(null, r, n);
|
|
661
672
|
if (!e.pending.length) return o;
|
|
662
673
|
const a = {
|
|
663
674
|
id: n,
|
|
@@ -669,7 +680,7 @@ function Jn(t, e, r) {
|
|
|
669
680
|
(i.loaderCallbacks || (i.loaderCallbacks = [])).push(a);
|
|
670
681
|
}), o;
|
|
671
682
|
}
|
|
672
|
-
function
|
|
683
|
+
function Jn(t) {
|
|
673
684
|
const e = {
|
|
674
685
|
loaded: [],
|
|
675
686
|
missing: [],
|
|
@@ -695,14 +706,14 @@ function Kn(t) {
|
|
|
695
706
|
f.push(h);
|
|
696
707
|
}), e;
|
|
697
708
|
}
|
|
698
|
-
function
|
|
709
|
+
function Kn(t, e = !0, r = !1) {
|
|
699
710
|
const n = [];
|
|
700
711
|
return t.forEach((o) => {
|
|
701
712
|
const a = typeof o == "string" ? te(o, e, r) : o;
|
|
702
713
|
a && n.push(a);
|
|
703
714
|
}), n;
|
|
704
715
|
}
|
|
705
|
-
const
|
|
716
|
+
const Gn = {
|
|
706
717
|
resources: [],
|
|
707
718
|
index: 0,
|
|
708
719
|
timeout: 2e3,
|
|
@@ -710,7 +721,7 @@ const Wn = {
|
|
|
710
721
|
random: !1,
|
|
711
722
|
dataAfterTimeout: !1
|
|
712
723
|
};
|
|
713
|
-
function
|
|
724
|
+
function Wn(t, e, r, n) {
|
|
714
725
|
const o = t.resources.length, a = t.random ? Math.floor(Math.random() * o) : t.index;
|
|
715
726
|
let i;
|
|
716
727
|
if (t.random) {
|
|
@@ -810,7 +821,7 @@ function Qn(t, e, r, n) {
|
|
|
810
821
|
}
|
|
811
822
|
function Or(t) {
|
|
812
823
|
const e = {
|
|
813
|
-
...
|
|
824
|
+
...Gn,
|
|
814
825
|
...t
|
|
815
826
|
};
|
|
816
827
|
let r = [];
|
|
@@ -818,7 +829,7 @@ function Or(t) {
|
|
|
818
829
|
r = r.filter((c) => c().status === "pending");
|
|
819
830
|
}
|
|
820
831
|
function o(c, s, u) {
|
|
821
|
-
const f =
|
|
832
|
+
const f = Wn(e, c, s, (h, m) => {
|
|
822
833
|
n(), u && u(h, m);
|
|
823
834
|
});
|
|
824
835
|
return r.push(f), f;
|
|
@@ -839,7 +850,7 @@ function Or(t) {
|
|
|
839
850
|
function Je() {
|
|
840
851
|
}
|
|
841
852
|
const se = /* @__PURE__ */ Object.create(null);
|
|
842
|
-
function
|
|
853
|
+
function Qn(t) {
|
|
843
854
|
if (!se[t]) {
|
|
844
855
|
const e = _e(t);
|
|
845
856
|
if (!e) return;
|
|
@@ -851,14 +862,14 @@ function Xn(t) {
|
|
|
851
862
|
}
|
|
852
863
|
return se[t];
|
|
853
864
|
}
|
|
854
|
-
function
|
|
865
|
+
function Xn(t, e, r) {
|
|
855
866
|
let n, o;
|
|
856
867
|
if (typeof t == "string") {
|
|
857
868
|
const a = we(t);
|
|
858
869
|
if (!a)
|
|
859
870
|
return r(void 0, 424), Je;
|
|
860
871
|
o = a.send;
|
|
861
|
-
const i =
|
|
872
|
+
const i = Qn(t);
|
|
862
873
|
i && (n = i.redundancy);
|
|
863
874
|
} else {
|
|
864
875
|
const a = Ce(t);
|
|
@@ -872,12 +883,12 @@ function Zn(t, e, r) {
|
|
|
872
883
|
}
|
|
873
884
|
function Ke() {
|
|
874
885
|
}
|
|
875
|
-
function
|
|
886
|
+
function Zn(t) {
|
|
876
887
|
t.iconsLoaderFlag || (t.iconsLoaderFlag = !0, setTimeout(() => {
|
|
877
|
-
t.iconsLoaderFlag = !1,
|
|
888
|
+
t.iconsLoaderFlag = !1, Hn(t);
|
|
878
889
|
}));
|
|
879
890
|
}
|
|
880
|
-
function
|
|
891
|
+
function to(t) {
|
|
881
892
|
const e = [], r = [];
|
|
882
893
|
return t.forEach((n) => {
|
|
883
894
|
(n.match(Fr) ? e : r).push(n);
|
|
@@ -901,7 +912,7 @@ function $t(t, e, r) {
|
|
|
901
912
|
} catch (o) {
|
|
902
913
|
console.error(o);
|
|
903
914
|
}
|
|
904
|
-
n(),
|
|
915
|
+
n(), Zn(t);
|
|
905
916
|
}
|
|
906
917
|
function Ge(t, e) {
|
|
907
918
|
t instanceof Promise ? t.then((r) => {
|
|
@@ -910,7 +921,7 @@ function Ge(t, e) {
|
|
|
910
921
|
e(null);
|
|
911
922
|
}) : e(t);
|
|
912
923
|
}
|
|
913
|
-
function
|
|
924
|
+
function eo(t, e) {
|
|
914
925
|
t.iconsToLoad ? t.iconsToLoad = t.iconsToLoad.concat(e).sort() : t.iconsToLoad = e, t.iconsQueueFlag || (t.iconsQueueFlag = !0, setTimeout(() => {
|
|
915
926
|
t.iconsQueueFlag = !1;
|
|
916
927
|
const { provider: r, prefix: n } = t, o = t.iconsToLoad;
|
|
@@ -935,7 +946,7 @@ function ro(t, e) {
|
|
|
935
946
|
});
|
|
936
947
|
return;
|
|
937
948
|
}
|
|
938
|
-
const { valid: i, invalid: c } =
|
|
949
|
+
const { valid: i, invalid: c } = to(o);
|
|
939
950
|
if (c.length && $t(t, c, null), !i.length) return;
|
|
940
951
|
const s = n.match(Fr) ? we(r) : null;
|
|
941
952
|
if (!s) {
|
|
@@ -943,14 +954,14 @@ function ro(t, e) {
|
|
|
943
954
|
return;
|
|
944
955
|
}
|
|
945
956
|
s.prepare(r, n, i).forEach((f) => {
|
|
946
|
-
|
|
957
|
+
Xn(r, f, (h) => {
|
|
947
958
|
$t(t, f.icons, h);
|
|
948
959
|
});
|
|
949
960
|
});
|
|
950
961
|
}));
|
|
951
962
|
}
|
|
952
|
-
const
|
|
953
|
-
const r =
|
|
963
|
+
const ro = (t, e) => {
|
|
964
|
+
const r = Kn(t, !0, Nr()), n = Jn(r);
|
|
954
965
|
if (!n.pending.length) {
|
|
955
966
|
let s = !0;
|
|
956
967
|
return e && setTimeout(() => {
|
|
@@ -972,10 +983,10 @@ const no = (t, e) => {
|
|
|
972
983
|
g.has(h) || (g.add(h), o[u][f].push(h));
|
|
973
984
|
}), a.forEach((s) => {
|
|
974
985
|
const u = o[s.provider][s.prefix];
|
|
975
|
-
u.length &&
|
|
976
|
-
}), e ?
|
|
986
|
+
u.length && eo(s, u);
|
|
987
|
+
}), e ? Yn(e, n, a) : Ke;
|
|
977
988
|
};
|
|
978
|
-
function
|
|
989
|
+
function no(t, e) {
|
|
979
990
|
const r = { ...t };
|
|
980
991
|
for (const n in e) {
|
|
981
992
|
const o = e[n], a = typeof o;
|
|
@@ -983,9 +994,9 @@ function oo(t, e) {
|
|
|
983
994
|
}
|
|
984
995
|
return r;
|
|
985
996
|
}
|
|
986
|
-
const
|
|
987
|
-
function
|
|
988
|
-
e.split(
|
|
997
|
+
const oo = /[\s,]+/;
|
|
998
|
+
function ao(t, e) {
|
|
999
|
+
e.split(oo).forEach((r) => {
|
|
989
1000
|
switch (r.trim()) {
|
|
990
1001
|
case "horizontal":
|
|
991
1002
|
t.hFlip = !0;
|
|
@@ -996,7 +1007,7 @@ function io(t, e) {
|
|
|
996
1007
|
}
|
|
997
1008
|
});
|
|
998
1009
|
}
|
|
999
|
-
function
|
|
1010
|
+
function io(t, e = 0) {
|
|
1000
1011
|
const r = t.replace(/^-?[0-9.]*/, "");
|
|
1001
1012
|
function n(o) {
|
|
1002
1013
|
for (; o < 0; ) o += 4;
|
|
@@ -1021,40 +1032,40 @@ function so(t, e = 0) {
|
|
|
1021
1032
|
}
|
|
1022
1033
|
return e;
|
|
1023
1034
|
}
|
|
1024
|
-
function
|
|
1035
|
+
function so(t, e) {
|
|
1025
1036
|
let r = t.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
|
|
1026
1037
|
for (const n in e) r += " " + n + '="' + e[n] + '"';
|
|
1027
1038
|
return '<svg xmlns="http://www.w3.org/2000/svg"' + r + ">" + t + "</svg>";
|
|
1028
1039
|
}
|
|
1029
|
-
function
|
|
1040
|
+
function co(t) {
|
|
1030
1041
|
return t.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
|
1031
1042
|
}
|
|
1032
|
-
function
|
|
1033
|
-
return "data:image/svg+xml," +
|
|
1043
|
+
function lo(t) {
|
|
1044
|
+
return "data:image/svg+xml," + co(t);
|
|
1034
1045
|
}
|
|
1035
|
-
function
|
|
1036
|
-
return 'url("' +
|
|
1046
|
+
function uo(t) {
|
|
1047
|
+
return 'url("' + lo(t) + '")';
|
|
1037
1048
|
}
|
|
1038
1049
|
let Dt;
|
|
1039
|
-
function
|
|
1050
|
+
function fo() {
|
|
1040
1051
|
try {
|
|
1041
1052
|
Dt = window.trustedTypes.createPolicy("iconify", { createHTML: (t) => t });
|
|
1042
1053
|
} catch {
|
|
1043
1054
|
Dt = null;
|
|
1044
1055
|
}
|
|
1045
1056
|
}
|
|
1046
|
-
function
|
|
1047
|
-
return Dt === void 0 &&
|
|
1057
|
+
function po(t) {
|
|
1058
|
+
return Dt === void 0 && fo(), Dt ? Dt.createHTML(t) : t;
|
|
1048
1059
|
}
|
|
1049
1060
|
const jr = {
|
|
1050
1061
|
...Tr,
|
|
1051
1062
|
inline: !1
|
|
1052
|
-
},
|
|
1063
|
+
}, ho = {
|
|
1053
1064
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1054
1065
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
1055
1066
|
"aria-hidden": !0,
|
|
1056
1067
|
role: "img"
|
|
1057
|
-
},
|
|
1068
|
+
}, mo = {
|
|
1058
1069
|
display: "inline-block"
|
|
1059
1070
|
}, ye = {
|
|
1060
1071
|
backgroundColor: "currentColor"
|
|
@@ -1074,16 +1085,16 @@ for (const t in Qe) {
|
|
|
1074
1085
|
for (const r in We)
|
|
1075
1086
|
e[t + r] = We[r];
|
|
1076
1087
|
}
|
|
1077
|
-
const
|
|
1088
|
+
const go = {
|
|
1078
1089
|
...jr,
|
|
1079
1090
|
inline: !0
|
|
1080
1091
|
};
|
|
1081
1092
|
function Xe(t) {
|
|
1082
1093
|
return t + (t.match(/^[-0-9.]+$/) ? "px" : "");
|
|
1083
1094
|
}
|
|
1084
|
-
const
|
|
1085
|
-
const n = e.inline ?
|
|
1086
|
-
...a === "svg" ?
|
|
1095
|
+
const wo = (t, e, r) => {
|
|
1096
|
+
const n = e.inline ? go : jr, o = no(n, e), a = e.mode || "svg", i = {}, c = e.style || {}, s = {
|
|
1097
|
+
...a === "svg" ? ho : {}
|
|
1087
1098
|
};
|
|
1088
1099
|
if (r) {
|
|
1089
1100
|
const w = te(r, !1, !0);
|
|
@@ -1126,7 +1137,7 @@ const yo = (t, e, r) => {
|
|
|
1126
1137
|
break;
|
|
1127
1138
|
// Flip as string: 'horizontal,vertical'
|
|
1128
1139
|
case "flip":
|
|
1129
|
-
typeof v == "string" &&
|
|
1140
|
+
typeof v == "string" && ao(o, v);
|
|
1130
1141
|
break;
|
|
1131
1142
|
// Color: copy to style
|
|
1132
1143
|
case "color":
|
|
@@ -1134,7 +1145,7 @@ const yo = (t, e, r) => {
|
|
|
1134
1145
|
break;
|
|
1135
1146
|
// Rotation as string
|
|
1136
1147
|
case "rotate":
|
|
1137
|
-
typeof v == "string" ? o[w] =
|
|
1148
|
+
typeof v == "string" ? o[w] = io(v) : typeof v == "number" && (o[w] = v);
|
|
1138
1149
|
break;
|
|
1139
1150
|
// Remove aria-hidden
|
|
1140
1151
|
case "ariaHidden":
|
|
@@ -1146,7 +1157,7 @@ const yo = (t, e, r) => {
|
|
|
1146
1157
|
n[w] === void 0 && (s[w] = v);
|
|
1147
1158
|
}
|
|
1148
1159
|
}
|
|
1149
|
-
const u =
|
|
1160
|
+
const u = Tn(t, o), f = u.attributes;
|
|
1150
1161
|
if (o.inline && (i.verticalAlign = "-0.125em"), a === "svg") {
|
|
1151
1162
|
s.style = {
|
|
1152
1163
|
...i,
|
|
@@ -1154,26 +1165,26 @@ const yo = (t, e, r) => {
|
|
|
1154
1165
|
}, Object.assign(s, f);
|
|
1155
1166
|
let w = 0, v = e.id;
|
|
1156
1167
|
return typeof v == "string" && (v = v.replace(/-/g, "_")), s.dangerouslySetInnerHTML = {
|
|
1157
|
-
__html:
|
|
1158
|
-
},
|
|
1168
|
+
__html: po($n(u.body, v ? () => v + "ID" + w++ : "iconifyReact"))
|
|
1169
|
+
}, fe("svg", s);
|
|
1159
1170
|
}
|
|
1160
|
-
const { body: h, width: m, height: g } = t, k = a === "mask" || (a === "bg" ? !1 : h.indexOf("currentColor") !== -1), _ =
|
|
1171
|
+
const { body: h, width: m, height: g } = t, k = a === "mask" || (a === "bg" ? !1 : h.indexOf("currentColor") !== -1), _ = so(h, {
|
|
1161
1172
|
...f,
|
|
1162
1173
|
width: m + "",
|
|
1163
1174
|
height: g + ""
|
|
1164
1175
|
});
|
|
1165
1176
|
return s.style = {
|
|
1166
1177
|
...i,
|
|
1167
|
-
"--svg":
|
|
1178
|
+
"--svg": uo(_),
|
|
1168
1179
|
width: Xe(f.width),
|
|
1169
1180
|
height: Xe(f.height),
|
|
1170
|
-
...
|
|
1181
|
+
...mo,
|
|
1171
1182
|
...k ? ye : $r,
|
|
1172
1183
|
...c
|
|
1173
|
-
},
|
|
1184
|
+
}, fe("span", s);
|
|
1174
1185
|
};
|
|
1175
1186
|
Nr(!0);
|
|
1176
|
-
|
|
1187
|
+
An("", Rn);
|
|
1177
1188
|
if (typeof document < "u" && typeof window < "u") {
|
|
1178
1189
|
const t = window;
|
|
1179
1190
|
if (t.IconifyPreload !== void 0) {
|
|
@@ -1183,7 +1194,7 @@ if (typeof document < "u" && typeof window < "u") {
|
|
|
1183
1194
|
// Check if item is an object and not null/array
|
|
1184
1195
|
(typeof n != "object" || n === null || n instanceof Array || // Check for 'icons' and 'prefix'
|
|
1185
1196
|
typeof n.icons != "object" || typeof n.prefix != "string" || // Add icon set
|
|
1186
|
-
!
|
|
1197
|
+
!Sn(n)) && console.error(r);
|
|
1187
1198
|
} catch {
|
|
1188
1199
|
console.error(r);
|
|
1189
1200
|
}
|
|
@@ -1198,7 +1209,7 @@ if (typeof document < "u" && typeof window < "u") {
|
|
|
1198
1209
|
const o = e[r];
|
|
1199
1210
|
if (typeof o != "object" || !o || o.resources === void 0)
|
|
1200
1211
|
continue;
|
|
1201
|
-
|
|
1212
|
+
Ln(r, o) || console.error(n);
|
|
1202
1213
|
} catch {
|
|
1203
1214
|
console.error(n);
|
|
1204
1215
|
}
|
|
@@ -1251,41 +1262,41 @@ function Ar(t) {
|
|
|
1251
1262
|
data: _
|
|
1252
1263
|
}))
|
|
1253
1264
|
if (_ === void 0) {
|
|
1254
|
-
const w =
|
|
1265
|
+
const w = ro([k], f);
|
|
1255
1266
|
o({
|
|
1256
1267
|
callback: w
|
|
1257
1268
|
});
|
|
1258
1269
|
} else _ && ((g = t.onLoad) === null || g === void 0 || g.call(t, k));
|
|
1259
1270
|
}
|
|
1260
|
-
|
|
1271
|
+
ct(() => (r(!0), s), []), ct(() => {
|
|
1261
1272
|
e && f();
|
|
1262
1273
|
}, [t.icon, e]);
|
|
1263
1274
|
const { name: h, data: m } = i;
|
|
1264
|
-
return m ?
|
|
1275
|
+
return m ? wo({
|
|
1265
1276
|
...Se,
|
|
1266
1277
|
...m
|
|
1267
|
-
}, t, h) : t.children ? t.children : t.fallback ? t.fallback :
|
|
1278
|
+
}, t, h) : t.children ? t.children : t.fallback ? t.fallback : fe("span", {});
|
|
1268
1279
|
}
|
|
1269
|
-
const Ze =
|
|
1280
|
+
const Ze = hr((t, e) => Ar({
|
|
1270
1281
|
...t,
|
|
1271
1282
|
_ref: e
|
|
1272
1283
|
}));
|
|
1273
|
-
|
|
1284
|
+
hr((t, e) => Ar({
|
|
1274
1285
|
inline: !0,
|
|
1275
1286
|
...t,
|
|
1276
1287
|
_ref: e
|
|
1277
1288
|
}));
|
|
1278
|
-
function
|
|
1289
|
+
function yo() {
|
|
1279
1290
|
const t = () => window.innerWidth < 425 ? 1 : window.innerWidth < 768 ? 2 : 4, [e, r] = D(t);
|
|
1280
|
-
return
|
|
1291
|
+
return ct(() => {
|
|
1281
1292
|
const n = () => r(t());
|
|
1282
1293
|
return window.addEventListener("resize", n), () => window.removeEventListener("resize", n);
|
|
1283
1294
|
}, []), e;
|
|
1284
1295
|
}
|
|
1285
|
-
const
|
|
1296
|
+
const bo = ({
|
|
1286
1297
|
product: t
|
|
1287
1298
|
}) => {
|
|
1288
|
-
const e =
|
|
1299
|
+
const e = mr(), r = yo(), [n, o] = D(0), a = () => {
|
|
1289
1300
|
o(
|
|
1290
1301
|
(s) => s + r >= t.length ? 0 : s + r
|
|
1291
1302
|
);
|
|
@@ -1354,7 +1365,7 @@ const xo = ({
|
|
|
1354
1365
|
)
|
|
1355
1366
|
] }),
|
|
1356
1367
|
/* @__PURE__ */ p("div", { className: " flex text-center items-center gap-2 text-[14px] text-[#14121F] font-bold font-nunitoSans text-base mb-1", children: [
|
|
1357
|
-
/* @__PURE__ */ l("p", { children:
|
|
1368
|
+
/* @__PURE__ */ l("p", { children: hn(
|
|
1358
1369
|
s != null && s.price ? Number(s == null ? void 0 : s.price) : Ue(s).centAmount || 0,
|
|
1359
1370
|
(m = Ue(s)) == null ? void 0 : m.currencyCode
|
|
1360
1371
|
) }),
|
|
@@ -1380,7 +1391,7 @@ const xo = ({
|
|
|
1380
1391
|
}
|
|
1381
1392
|
)
|
|
1382
1393
|
] }) });
|
|
1383
|
-
},
|
|
1394
|
+
}, xo = ({ chat: t, storeDetails: e }) => /* @__PURE__ */ l("div", { className: "bg-[#FFFFFF] px-7 py-4 rounded-r-xl rounded-bl-2xl w-full", children: t.map((r, n) => /* @__PURE__ */ p(
|
|
1384
1395
|
"div",
|
|
1385
1396
|
{
|
|
1386
1397
|
className: "mb-4 p-3 rounded-xl",
|
|
@@ -1393,11 +1404,11 @@ const xo = ({
|
|
|
1393
1404
|
"div",
|
|
1394
1405
|
{
|
|
1395
1406
|
className: "font-nunitoSans font-bold text-sm text-[#494949] p-2 w-fit rounded-[20px]",
|
|
1396
|
-
children:
|
|
1407
|
+
children: mn(r.keyword) || "No keyword"
|
|
1397
1408
|
}
|
|
1398
1409
|
),
|
|
1399
1410
|
/* @__PURE__ */ l(
|
|
1400
|
-
|
|
1411
|
+
bo,
|
|
1401
1412
|
{
|
|
1402
1413
|
product: r.items,
|
|
1403
1414
|
storeDetails: e
|
|
@@ -1412,7 +1423,7 @@ const xo = ({
|
|
|
1412
1423
|
`, t);
|
|
1413
1424
|
try {
|
|
1414
1425
|
return (await U.post(
|
|
1415
|
-
`${o}${n}/basket/create?baseUrl=${
|
|
1426
|
+
`${o}${n}/basket/create?baseUrl=${lt()}&siteId=${rt()}&pubCfg=${ut()}&envRef=${dt()}&orgRef=${ft()}`,
|
|
1416
1427
|
e,
|
|
1417
1428
|
{
|
|
1418
1429
|
headers: {
|
|
@@ -1428,7 +1439,7 @@ const xo = ({
|
|
|
1428
1439
|
const { serverUrl: n, basePath: o } = wt(), a = `${n}`;
|
|
1429
1440
|
try {
|
|
1430
1441
|
const i = await U.post(
|
|
1431
|
-
`${a}${o}/basket/add-product/${t}?baseUrl=${
|
|
1442
|
+
`${a}${o}/basket/add-product/${t}?baseUrl=${lt()}&siteId=${rt()}&pubCfg=${ut()}&envRef=${dt()}&orgRef=${ft()}`,
|
|
1432
1443
|
e,
|
|
1433
1444
|
{
|
|
1434
1445
|
headers: {
|
|
@@ -1452,7 +1463,7 @@ const xo = ({
|
|
|
1452
1463
|
const { serverUrl: r, basePath: n } = wt(), o = `${r}`;
|
|
1453
1464
|
try {
|
|
1454
1465
|
const i = await U.get(
|
|
1455
|
-
`${o}${n}/basket/${t}?baseUrl=${
|
|
1466
|
+
`${o}${n}/basket/${t}?baseUrl=${lt()}&siteId=${rt()}&pubCfg=${ut()}&envRef=${dt()}&orgRef=${ft()}`,
|
|
1456
1467
|
{
|
|
1457
1468
|
headers: {
|
|
1458
1469
|
"Content-Type": "application/json",
|
|
@@ -1464,7 +1475,7 @@ const xo = ({
|
|
|
1464
1475
|
} catch (i) {
|
|
1465
1476
|
return U.isAxiosError(i) ? { status: (a = i.response) == null ? void 0 : a.status, data: null } : { status: null, data: null };
|
|
1466
1477
|
}
|
|
1467
|
-
}, tr = "sfcc_basket_id", er = "sfcc_customer_token", Ut = "sfcc_token_expiry",
|
|
1478
|
+
}, tr = "sfcc_basket_id", er = "sfcc_customer_token", Ut = "sfcc_token_expiry", vo = 300 * 1e3, At = "1.0.0";
|
|
1468
1479
|
const Nt = (t) => {
|
|
1469
1480
|
try {
|
|
1470
1481
|
t ? localStorage.setItem(tr, t) : localStorage.removeItem(tr);
|
|
@@ -1475,17 +1486,17 @@ const Nt = (t) => {
|
|
|
1475
1486
|
try {
|
|
1476
1487
|
if (t) {
|
|
1477
1488
|
localStorage.setItem(er, t);
|
|
1478
|
-
const e = Date.now() +
|
|
1489
|
+
const e = Date.now() + vo;
|
|
1479
1490
|
localStorage.setItem(Ut, e.toString());
|
|
1480
1491
|
} else
|
|
1481
1492
|
localStorage.removeItem(er);
|
|
1482
1493
|
} catch (e) {
|
|
1483
1494
|
console.error("Error storing token:", e);
|
|
1484
1495
|
}
|
|
1485
|
-
}, rr = 300,
|
|
1496
|
+
}, rr = 300, ko = () => {
|
|
1486
1497
|
var c, s, u, f, h, m;
|
|
1487
|
-
const t =
|
|
1488
|
-
if (
|
|
1498
|
+
const t = mr(), e = Kt((g) => g.product.product), r = Kt((g) => g.store.store), [n, o] = D(!!e);
|
|
1499
|
+
if (ct(() => {
|
|
1489
1500
|
o(!!e);
|
|
1490
1501
|
}, [e]), !e) return null;
|
|
1491
1502
|
const a = async () => {
|
|
@@ -1508,8 +1519,8 @@ const Nt = (t) => {
|
|
|
1508
1519
|
console.log(j, "the product data");
|
|
1509
1520
|
const Pt = JSON.parse(
|
|
1510
1521
|
sessionStorage.getItem("customerData") || "{}"
|
|
1511
|
-
),
|
|
1512
|
-
if (!ee || !nt ||
|
|
1522
|
+
), pt = Pt == null ? void 0 : Pt.basketId, ee = !1, nt = localStorage.getItem(Ut), ht = Date.now();
|
|
1523
|
+
if (!ee || !nt || ht >= parseInt(nt)) {
|
|
1513
1524
|
let Y = "";
|
|
1514
1525
|
{
|
|
1515
1526
|
const bt = await Zt();
|
|
@@ -1519,15 +1530,15 @@ const Nt = (t) => {
|
|
|
1519
1530
|
console.error("Failed to get customer_token");
|
|
1520
1531
|
return;
|
|
1521
1532
|
}
|
|
1522
|
-
const re =
|
|
1523
|
-
if (Qt(Y), localStorage.setItem(Ut, re.toString()),
|
|
1533
|
+
const re = ht + 300 * 1e3;
|
|
1534
|
+
if (Qt(Y), localStorage.setItem(Ut, re.toString()), pt) {
|
|
1524
1535
|
const bt = await zr({
|
|
1525
|
-
basketId:
|
|
1536
|
+
basketId: pt,
|
|
1526
1537
|
customer_token: Y
|
|
1527
1538
|
});
|
|
1528
|
-
if (console.log(
|
|
1539
|
+
if (console.log(pt, "basket id from customer"), bt.status === 200 && bt) {
|
|
1529
1540
|
const ot = await Wt(
|
|
1530
|
-
|
|
1541
|
+
pt,
|
|
1531
1542
|
j,
|
|
1532
1543
|
Y
|
|
1533
1544
|
);
|
|
@@ -1538,7 +1549,7 @@ const Nt = (t) => {
|
|
|
1538
1549
|
closeOnClick: !0,
|
|
1539
1550
|
pauseOnHover: !0,
|
|
1540
1551
|
draggable: !0
|
|
1541
|
-
}), Ft(
|
|
1552
|
+
}), Ft(pt));
|
|
1542
1553
|
return;
|
|
1543
1554
|
}
|
|
1544
1555
|
}
|
|
@@ -1596,7 +1607,7 @@ const Nt = (t) => {
|
|
|
1596
1607
|
}, i = () => {
|
|
1597
1608
|
e && (window.location.href = e.c_pdpUrl);
|
|
1598
1609
|
};
|
|
1599
|
-
return console.log(e, "the prod"), /* @__PURE__ */ p(
|
|
1610
|
+
return console.log(e, "the prod"), /* @__PURE__ */ p(pe, { children: [
|
|
1600
1611
|
/* @__PURE__ */ l(
|
|
1601
1612
|
"div",
|
|
1602
1613
|
{
|
|
@@ -1742,7 +1753,7 @@ const Nt = (t) => {
|
|
|
1742
1753
|
}
|
|
1743
1754
|
)
|
|
1744
1755
|
] });
|
|
1745
|
-
},
|
|
1756
|
+
}, So = () => {
|
|
1746
1757
|
const t = [
|
|
1747
1758
|
"Myself",
|
|
1748
1759
|
"My Child",
|
|
@@ -1766,21 +1777,21 @@ const Nt = (t) => {
|
|
|
1766
1777
|
price: d.price ?? 0
|
|
1767
1778
|
}), [V, O] = D([]), yt = Ot(null), T = Kt((d) => d.store.store), j = Kt((d) => d.product.product), Pt = () => {
|
|
1768
1779
|
g(!0), setTimeout(() => h(!0), 10);
|
|
1769
|
-
},
|
|
1780
|
+
}, pt = () => {
|
|
1770
1781
|
h(!1), setTimeout(() => g(!1), 300);
|
|
1771
1782
|
};
|
|
1772
|
-
|
|
1773
|
-
s ? Pt() :
|
|
1783
|
+
ct(() => {
|
|
1784
|
+
s ? Pt() : pt();
|
|
1774
1785
|
}, [s]);
|
|
1775
1786
|
const ee = (d) => {
|
|
1776
1787
|
L(e[d]);
|
|
1777
1788
|
};
|
|
1778
|
-
|
|
1789
|
+
ct(() => {
|
|
1779
1790
|
yt.current && (yt.current.scrollTop += 150);
|
|
1780
1791
|
}, [V]);
|
|
1781
|
-
let nt = null,
|
|
1792
|
+
let nt = null, ht = null;
|
|
1782
1793
|
const Y = async () => {
|
|
1783
|
-
if (nt &&
|
|
1794
|
+
if (nt && ht && Date.now() < ht)
|
|
1784
1795
|
return nt;
|
|
1785
1796
|
try {
|
|
1786
1797
|
const d = "https://us-east-1lsr29ln3u.auth.us-east-1.amazoncognito.com/oauth2/token", E = new URLSearchParams({
|
|
@@ -1802,22 +1813,22 @@ const Nt = (t) => {
|
|
|
1802
1813
|
const N = await I.json();
|
|
1803
1814
|
nt = N.access_token;
|
|
1804
1815
|
const x = N.expires_in || 3600;
|
|
1805
|
-
return
|
|
1816
|
+
return ht = Date.now() + (x - 60) * 1e3, nt;
|
|
1806
1817
|
} catch (d) {
|
|
1807
|
-
return console.error("Error obtaining JWT token:", d), nt = null,
|
|
1818
|
+
return console.error("Error obtaining JWT token:", d), nt = null, ht = null, null;
|
|
1808
1819
|
}
|
|
1809
1820
|
}, re = async () => {
|
|
1810
1821
|
const d = await Zt();
|
|
1811
1822
|
d != null && c(d);
|
|
1812
1823
|
};
|
|
1813
|
-
|
|
1824
|
+
ct(() => {
|
|
1814
1825
|
re(), console.log("scapi environment v1");
|
|
1815
1826
|
}, []);
|
|
1816
1827
|
const ne = async () => {
|
|
1817
1828
|
const d = JSON.parse(
|
|
1818
1829
|
sessionStorage.getItem("customerData") || "{}"
|
|
1819
1830
|
).customerId;
|
|
1820
|
-
return (await
|
|
1831
|
+
return (await pn(d || "")).c_interests;
|
|
1821
1832
|
}, b = async (d, E) => {
|
|
1822
1833
|
console.log("in secondary flow", At);
|
|
1823
1834
|
const I = await ne();
|
|
@@ -2032,7 +2043,7 @@ const Nt = (t) => {
|
|
|
2032
2043
|
(E == null ? void 0 : E.isGuest) == !1 ? (console.log("running secondary flow", At), b(r.current, 0)) : console.log("not running secondary flow", At);
|
|
2033
2044
|
}
|
|
2034
2045
|
P(!1);
|
|
2035
|
-
},
|
|
2046
|
+
}, Jr = async (d, E) => {
|
|
2036
2047
|
var I, N, x, C, R, xt, vt, K, kt, St, G, W, tt, et, at;
|
|
2037
2048
|
_(!0);
|
|
2038
2049
|
try {
|
|
@@ -2055,25 +2066,25 @@ const Nt = (t) => {
|
|
|
2055
2066
|
sessionStorage.getItem("customerData") || "{}"
|
|
2056
2067
|
), q = A == null ? void 0 : A.basketId, it = !1, Bt = localStorage.getItem(Ut), $e = Date.now();
|
|
2057
2068
|
if (!it || !Bt || $e >= parseInt(Bt)) {
|
|
2058
|
-
const
|
|
2059
|
-
let { customer_token:
|
|
2060
|
-
|
|
2069
|
+
const Kr = await xr();
|
|
2070
|
+
let { customer_token: mt } = await vr(
|
|
2071
|
+
Kr
|
|
2061
2072
|
);
|
|
2062
|
-
if (
|
|
2073
|
+
if (mt = "Bearer " + i.access_token, !mt) {
|
|
2063
2074
|
console.error("Failed to get customer_token");
|
|
2064
2075
|
return;
|
|
2065
2076
|
}
|
|
2066
|
-
const
|
|
2067
|
-
if (Qt(
|
|
2077
|
+
const Gr = $e + 300 * 1e3;
|
|
2078
|
+
if (Qt(mt), localStorage.setItem(Ut, Gr.toString()), q) {
|
|
2068
2079
|
const Ae = await zr({
|
|
2069
2080
|
basketId: q,
|
|
2070
|
-
customer_token:
|
|
2081
|
+
customer_token: mt
|
|
2071
2082
|
});
|
|
2072
2083
|
if (Ae.status === 200 && Ae) {
|
|
2073
2084
|
const oe = await Wt(
|
|
2074
2085
|
q,
|
|
2075
2086
|
Q,
|
|
2076
|
-
|
|
2087
|
+
mt
|
|
2077
2088
|
);
|
|
2078
2089
|
((vt = oe == null ? void 0 : oe.product_items) == null ? void 0 : vt.length) > 0 && (X.success("Added to cart", {
|
|
2079
2090
|
position: "bottom-right",
|
|
@@ -2086,14 +2097,14 @@ const Nt = (t) => {
|
|
|
2086
2097
|
return;
|
|
2087
2098
|
}
|
|
2088
2099
|
}
|
|
2089
|
-
const
|
|
2100
|
+
const Wr = {
|
|
2090
2101
|
productItems: [
|
|
2091
2102
|
{
|
|
2092
2103
|
productId: ((K = y.variants) == null ? void 0 : K[0].product_id) || ((kt = y.variants) == null ? void 0 : kt[0].productId) || (y == null ? void 0 : y.id),
|
|
2093
2104
|
quantity: 1
|
|
2094
2105
|
}
|
|
2095
2106
|
]
|
|
2096
|
-
}, F = await Lr(
|
|
2107
|
+
}, F = await Lr(mt, Wr);
|
|
2097
2108
|
if (console.log(
|
|
2098
2109
|
F,
|
|
2099
2110
|
F == null ? void 0 : F.basket_id,
|
|
@@ -2109,7 +2120,7 @@ const Nt = (t) => {
|
|
|
2109
2120
|
const Ct = await Wt(
|
|
2110
2121
|
(F == null ? void 0 : F.basket_id) || (F == null ? void 0 : F.basketId),
|
|
2111
2122
|
Q,
|
|
2112
|
-
|
|
2123
|
+
mt
|
|
2113
2124
|
);
|
|
2114
2125
|
(((St = Ct == null ? void 0 : Ct.product_items) == null ? void 0 : St.length) > 0 || ((G = Ct == null ? void 0 : Ct.productItems) == null ? void 0 : G.length) > 0) && X.success("Added to cart", {
|
|
2115
2126
|
position: "bottom-right",
|
|
@@ -2134,9 +2145,9 @@ const Nt = (t) => {
|
|
|
2134
2145
|
}
|
|
2135
2146
|
_(!1);
|
|
2136
2147
|
};
|
|
2137
|
-
return /* @__PURE__ */ l("div", { className: "relative flex justify-center", children: /* @__PURE__ */ p(
|
|
2148
|
+
return /* @__PURE__ */ l("div", { className: "relative flex justify-center", children: /* @__PURE__ */ p(dn, { open: s, onOpenChange: u, children: [
|
|
2138
2149
|
/* @__PURE__ */ l(
|
|
2139
|
-
|
|
2150
|
+
fn,
|
|
2140
2151
|
{
|
|
2141
2152
|
onClick: () => u(!0),
|
|
2142
2153
|
style: {
|
|
@@ -2198,7 +2209,7 @@ const Nt = (t) => {
|
|
|
2198
2209
|
) })
|
|
2199
2210
|
}
|
|
2200
2211
|
),
|
|
2201
|
-
m && /* @__PURE__ */ p(
|
|
2212
|
+
m && /* @__PURE__ */ p(pe, { children: [
|
|
2202
2213
|
/* @__PURE__ */ l(
|
|
2203
2214
|
"div",
|
|
2204
2215
|
{
|
|
@@ -2399,7 +2410,7 @@ const Nt = (t) => {
|
|
|
2399
2410
|
) }),
|
|
2400
2411
|
B && !d.response.includes("Thinking") && ((I = d.products) == null ? void 0 : I.length) == 0 && /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l("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" }) }),
|
|
2401
2412
|
(d == null ? void 0 : d.products) && ((N = d == null ? void 0 : d.products) == null ? void 0 : N.length) > 0 && /* @__PURE__ */ l(
|
|
2402
|
-
|
|
2413
|
+
xo,
|
|
2403
2414
|
{
|
|
2404
2415
|
chat: d.products,
|
|
2405
2416
|
storeDetails: T
|
|
@@ -2460,7 +2471,7 @@ const Nt = (t) => {
|
|
|
2460
2471
|
]
|
|
2461
2472
|
}
|
|
2462
2473
|
) }),
|
|
2463
|
-
d.secondaryResponse && /* @__PURE__ */ l(
|
|
2474
|
+
d.secondaryResponse && /* @__PURE__ */ l(pe, { children: /* @__PURE__ */ p("div", { className: "mt-3 mb-8 px-4 bg-indigo-300 rounded-tr-[5px]", children: [
|
|
2464
2475
|
/* @__PURE__ */ l(
|
|
2465
2476
|
"div",
|
|
2466
2477
|
{
|
|
@@ -2577,7 +2588,7 @@ const Nt = (t) => {
|
|
|
2577
2588
|
"button",
|
|
2578
2589
|
{
|
|
2579
2590
|
onClick: () => {
|
|
2580
|
-
|
|
2591
|
+
Jr(
|
|
2581
2592
|
H(
|
|
2582
2593
|
d.productSnapshot
|
|
2583
2594
|
),
|
|
@@ -2668,7 +2679,7 @@ const Nt = (t) => {
|
|
|
2668
2679
|
]
|
|
2669
2680
|
}
|
|
2670
2681
|
),
|
|
2671
|
-
/* @__PURE__ */ l(
|
|
2682
|
+
/* @__PURE__ */ l(ko, {})
|
|
2672
2683
|
] })
|
|
2673
2684
|
]
|
|
2674
2685
|
}
|
|
@@ -2683,7 +2694,7 @@ var be = function(t, e) {
|
|
|
2683
2694
|
for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (r[o] = n[o]);
|
|
2684
2695
|
}, be(t, e);
|
|
2685
2696
|
};
|
|
2686
|
-
function
|
|
2697
|
+
function Co(t, e) {
|
|
2687
2698
|
if (typeof e != "function" && e !== null)
|
|
2688
2699
|
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
2689
2700
|
be(t, e);
|
|
@@ -2701,7 +2712,7 @@ var st = function() {
|
|
|
2701
2712
|
return e;
|
|
2702
2713
|
}, st.apply(this, arguments);
|
|
2703
2714
|
};
|
|
2704
|
-
function
|
|
2715
|
+
function Io(t, e) {
|
|
2705
2716
|
var r = {};
|
|
2706
2717
|
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (r[n] = t[n]);
|
|
2707
2718
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -2709,28 +2720,28 @@ function _o(t, e) {
|
|
|
2709
2720
|
e.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[o]) && (r[n[o]] = t[n[o]]);
|
|
2710
2721
|
return r;
|
|
2711
2722
|
}
|
|
2712
|
-
var ce = "Invariant Violation", nr = Object.setPrototypeOf,
|
|
2723
|
+
var ce = "Invariant Violation", nr = Object.setPrototypeOf, _o = nr === void 0 ? function(t, e) {
|
|
2713
2724
|
return t.__proto__ = e, t;
|
|
2714
2725
|
} : nr, Dr = (
|
|
2715
2726
|
/** @class */
|
|
2716
2727
|
(function(t) {
|
|
2717
|
-
|
|
2728
|
+
Co(e, t);
|
|
2718
2729
|
function e(r) {
|
|
2719
2730
|
r === void 0 && (r = ce);
|
|
2720
2731
|
var n = t.call(this, typeof r == "number" ? ce + ": " + r + " (see https://github.com/apollographql/invariant-packages)" : r) || this;
|
|
2721
|
-
return n.framesToPop = 1, n.name = ce,
|
|
2732
|
+
return n.framesToPop = 1, n.name = ce, _o(n, e.prototype), n;
|
|
2722
2733
|
}
|
|
2723
2734
|
return e;
|
|
2724
2735
|
})(Error)
|
|
2725
2736
|
);
|
|
2726
|
-
function
|
|
2737
|
+
function gt(t, e) {
|
|
2727
2738
|
if (!t)
|
|
2728
2739
|
throw new Dr(e);
|
|
2729
2740
|
}
|
|
2730
|
-
var Mr = ["debug", "log", "warn", "error", "silent"],
|
|
2741
|
+
var Mr = ["debug", "log", "warn", "error", "silent"], Fo = Mr.indexOf("log");
|
|
2731
2742
|
function qt(t) {
|
|
2732
2743
|
return function() {
|
|
2733
|
-
if (Mr.indexOf(t) >=
|
|
2744
|
+
if (Mr.indexOf(t) >= Fo) {
|
|
2734
2745
|
var e = console[t] || console.log;
|
|
2735
2746
|
return e.apply(console, arguments);
|
|
2736
2747
|
}
|
|
@@ -2738,7 +2749,7 @@ function qt(t) {
|
|
|
2738
2749
|
}
|
|
2739
2750
|
(function(t) {
|
|
2740
2751
|
t.debug = qt("debug"), t.log = qt("log"), t.warn = qt("warn"), t.error = qt("error");
|
|
2741
|
-
})(
|
|
2752
|
+
})(gt || (gt = {}));
|
|
2742
2753
|
var Ur = "3.14.0";
|
|
2743
2754
|
function It(t) {
|
|
2744
2755
|
try {
|
|
@@ -2764,12 +2775,12 @@ It(function() {
|
|
|
2764
2775
|
return It.constructor("return this")();
|
|
2765
2776
|
});
|
|
2766
2777
|
var or = /* @__PURE__ */ new Map();
|
|
2767
|
-
function
|
|
2778
|
+
function No(t) {
|
|
2768
2779
|
var e = or.get(t) || 1;
|
|
2769
2780
|
return or.set(t, e + 1), "".concat(t, ":").concat(e, ":").concat(Math.random().toString(36).slice(2));
|
|
2770
2781
|
}
|
|
2771
|
-
function
|
|
2772
|
-
var r =
|
|
2782
|
+
function Eo(t, e) {
|
|
2783
|
+
var r = No("stringifyForDisplay");
|
|
2773
2784
|
return JSON.stringify(t, function(n, o) {
|
|
2774
2785
|
return o === void 0 ? r : o;
|
|
2775
2786
|
}, e).split(JSON.stringify(r)).join("<undefined>");
|
|
@@ -2788,12 +2799,12 @@ function Rt(t) {
|
|
|
2788
2799
|
var le = Object.assign(function(e, r) {
|
|
2789
2800
|
for (var n = [], o = 2; o < arguments.length; o++)
|
|
2790
2801
|
n[o - 2] = arguments[o];
|
|
2791
|
-
e ||
|
|
2802
|
+
e || gt(e, Fe(r, n) || Ne(r, n));
|
|
2792
2803
|
}, {
|
|
2793
|
-
debug: Rt(
|
|
2794
|
-
log: Rt(
|
|
2795
|
-
warn: Rt(
|
|
2796
|
-
error: Rt(
|
|
2804
|
+
debug: Rt(gt.debug),
|
|
2805
|
+
log: Rt(gt.log),
|
|
2806
|
+
warn: Rt(gt.warn),
|
|
2807
|
+
error: Rt(gt.error)
|
|
2797
2808
|
});
|
|
2798
2809
|
function Br(t) {
|
|
2799
2810
|
for (var e = [], r = 1; r < arguments.length; r++)
|
|
@@ -2805,7 +2816,7 @@ function qr(t) {
|
|
|
2805
2816
|
if (typeof t == "string")
|
|
2806
2817
|
return t;
|
|
2807
2818
|
try {
|
|
2808
|
-
return
|
|
2819
|
+
return Eo(t, 2).slice(0, 1e3);
|
|
2809
2820
|
} catch {
|
|
2810
2821
|
return "<non-serializable>";
|
|
2811
2822
|
}
|
|
@@ -2822,7 +2833,7 @@ function Ne(t, e) {
|
|
|
2822
2833
|
args: e.map(qr)
|
|
2823
2834
|
})));
|
|
2824
2835
|
}
|
|
2825
|
-
function
|
|
2836
|
+
function To(t) {
|
|
2826
2837
|
return t.definitions.filter(function(e) {
|
|
2827
2838
|
return e.kind === "OperationDefinition" && !!e.name;
|
|
2828
2839
|
}).map(function(e) {
|
|
@@ -2831,12 +2842,12 @@ function Po(t) {
|
|
|
2831
2842
|
}
|
|
2832
2843
|
let z = null;
|
|
2833
2844
|
const ir = {};
|
|
2834
|
-
let
|
|
2835
|
-
const
|
|
2845
|
+
let Po = 1;
|
|
2846
|
+
const Oo = () => class {
|
|
2836
2847
|
constructor() {
|
|
2837
2848
|
this.id = [
|
|
2838
2849
|
"slot",
|
|
2839
|
-
|
|
2850
|
+
Po++,
|
|
2840
2851
|
Date.now(),
|
|
2841
2852
|
Math.random().toString(36).slice(2)
|
|
2842
2853
|
].join(":");
|
|
@@ -2899,7 +2910,7 @@ function sr(t) {
|
|
|
2899
2910
|
} catch {
|
|
2900
2911
|
}
|
|
2901
2912
|
}
|
|
2902
|
-
const ue = "@wry/context:Slot",
|
|
2913
|
+
const ue = "@wry/context:Slot", jo = (
|
|
2903
2914
|
// Prefer globalThis when available.
|
|
2904
2915
|
// https://github.com/benjamn/wryware/issues/347
|
|
2905
2916
|
sr(() => globalThis) || // Fall back to global, which works in Node.js and may be converted by some
|
|
@@ -2909,7 +2920,7 @@ const ue = "@wry/context:Slot", $o = (
|
|
|
2909
2920
|
// back to using the Array constructor as a namespace, but that was flagged in
|
|
2910
2921
|
// https://github.com/benjamn/wryware/issues/347, and can be avoided.
|
|
2911
2922
|
/* @__PURE__ */ Object.create(null)
|
|
2912
|
-
), cr =
|
|
2923
|
+
), cr = jo, Ee = cr[ue] || // Earlier versions of this package stored the globalKey property on the Array
|
|
2913
2924
|
// constructor, so we check there as well, to prevent Slot class duplication.
|
|
2914
2925
|
Array[ue] || (function(t) {
|
|
2915
2926
|
try {
|
|
@@ -2928,12 +2939,12 @@ Array[ue] || (function(t) {
|
|
|
2928
2939
|
} finally {
|
|
2929
2940
|
return t;
|
|
2930
2941
|
}
|
|
2931
|
-
})(
|
|
2942
|
+
})(Oo()), { bind: ga, noContext: wa } = Ee;
|
|
2932
2943
|
new Ee();
|
|
2933
|
-
function
|
|
2944
|
+
function $o(t, e) {
|
|
2934
2945
|
var r = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
2935
2946
|
if (r) return (r = r.call(t)).next.bind(r);
|
|
2936
|
-
if (Array.isArray(t) || (r =
|
|
2947
|
+
if (Array.isArray(t) || (r = Ao(t)) || e) {
|
|
2937
2948
|
r && (t = r);
|
|
2938
2949
|
var n = 0;
|
|
2939
2950
|
return function() {
|
|
@@ -2943,7 +2954,7 @@ function Ao(t, e) {
|
|
|
2943
2954
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2944
2955
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2945
2956
|
}
|
|
2946
|
-
function
|
|
2957
|
+
function Ao(t, e) {
|
|
2947
2958
|
if (t) {
|
|
2948
2959
|
if (typeof t == "string") return lr(t, e);
|
|
2949
2960
|
var r = Object.prototype.toString.call(t).slice(8, -1);
|
|
@@ -2974,7 +2985,7 @@ var Pe = function() {
|
|
|
2974
2985
|
return Oe(t) ? Symbol[t] : "@@" + t;
|
|
2975
2986
|
};
|
|
2976
2987
|
Pe() && !Oe("observable") && (Symbol.observable = Symbol("observable"));
|
|
2977
|
-
var
|
|
2988
|
+
var Lo = je("iterator"), ve = je("observable"), Rr = je("species");
|
|
2978
2989
|
function Xt(t, e) {
|
|
2979
2990
|
var r = t[e];
|
|
2980
2991
|
if (r != null) {
|
|
@@ -2986,7 +2997,7 @@ function Lt(t) {
|
|
|
2986
2997
|
var e = t.constructor;
|
|
2987
2998
|
return e !== void 0 && (e = e[Rr], e === null && (e = void 0)), e !== void 0 ? e : M;
|
|
2988
2999
|
}
|
|
2989
|
-
function
|
|
3000
|
+
function zo(t) {
|
|
2990
3001
|
return t instanceof M;
|
|
2991
3002
|
}
|
|
2992
3003
|
function Tt(t) {
|
|
@@ -3020,7 +3031,7 @@ function Hr(t) {
|
|
|
3020
3031
|
function ke(t) {
|
|
3021
3032
|
t._observer = void 0, t._queue = void 0, t._state = "closed";
|
|
3022
3033
|
}
|
|
3023
|
-
function
|
|
3034
|
+
function Do(t) {
|
|
3024
3035
|
var e = t._queue;
|
|
3025
3036
|
if (e) {
|
|
3026
3037
|
t._queue = void 0, t._state = "ready";
|
|
@@ -3064,17 +3075,17 @@ function de(t, e, r) {
|
|
|
3064
3075
|
type: e,
|
|
3065
3076
|
value: r
|
|
3066
3077
|
}], Jt(function() {
|
|
3067
|
-
return
|
|
3078
|
+
return Do(t);
|
|
3068
3079
|
});
|
|
3069
3080
|
return;
|
|
3070
3081
|
}
|
|
3071
3082
|
Vr(t, e, r);
|
|
3072
3083
|
}
|
|
3073
3084
|
}
|
|
3074
|
-
var
|
|
3085
|
+
var Mo = /* @__PURE__ */ (function() {
|
|
3075
3086
|
function t(r, n) {
|
|
3076
3087
|
this._cleanup = void 0, this._observer = r, this._queue = void 0, this._state = "initializing";
|
|
3077
|
-
var o = new
|
|
3088
|
+
var o = new Uo(this);
|
|
3078
3089
|
try {
|
|
3079
3090
|
this._cleanup = n.call(void 0, o);
|
|
3080
3091
|
} catch (a) {
|
|
@@ -3091,7 +3102,7 @@ var Uo = /* @__PURE__ */ (function() {
|
|
|
3091
3102
|
return this._state === "closed";
|
|
3092
3103
|
}
|
|
3093
3104
|
}]), t;
|
|
3094
|
-
})(),
|
|
3105
|
+
})(), Uo = /* @__PURE__ */ (function() {
|
|
3095
3106
|
function t(r) {
|
|
3096
3107
|
this._subscription = r;
|
|
3097
3108
|
}
|
|
@@ -3120,7 +3131,7 @@ var Uo = /* @__PURE__ */ (function() {
|
|
|
3120
3131
|
next: n,
|
|
3121
3132
|
error: arguments[1],
|
|
3122
3133
|
complete: arguments[2]
|
|
3123
|
-
}), new
|
|
3134
|
+
}), new Mo(n, this._subscriber);
|
|
3124
3135
|
}, e.forEach = function(n) {
|
|
3125
3136
|
var o = this;
|
|
3126
3137
|
return new Promise(function(a, i) {
|
|
@@ -3288,15 +3299,15 @@ var Uo = /* @__PURE__ */ (function() {
|
|
|
3288
3299
|
if (a) {
|
|
3289
3300
|
var i = a.call(n);
|
|
3290
3301
|
if (Object(i) !== i) throw new TypeError(i + " is not an object");
|
|
3291
|
-
return
|
|
3302
|
+
return zo(i) && i.constructor === o ? i : new o(function(c) {
|
|
3292
3303
|
return i.subscribe(c);
|
|
3293
3304
|
});
|
|
3294
3305
|
}
|
|
3295
|
-
if (Oe("iterator") && (a = Xt(n,
|
|
3306
|
+
if (Oe("iterator") && (a = Xt(n, Lo), a))
|
|
3296
3307
|
return new o(function(c) {
|
|
3297
3308
|
Jt(function() {
|
|
3298
3309
|
if (!c.closed) {
|
|
3299
|
-
for (var s =
|
|
3310
|
+
for (var s = $o(a.call(n)), u; !(u = s()).done; ) {
|
|
3300
3311
|
var f = u.value;
|
|
3301
3312
|
if (c.next(f), c.closed) return;
|
|
3302
3313
|
}
|
|
@@ -3342,7 +3353,7 @@ Pe() && Object.defineProperty(M, Symbol("extensions"), {
|
|
|
3342
3353
|
},
|
|
3343
3354
|
configurable: !0
|
|
3344
3355
|
});
|
|
3345
|
-
function
|
|
3356
|
+
function Bo(t) {
|
|
3346
3357
|
var e, r = t.Symbol;
|
|
3347
3358
|
if (typeof r == "function")
|
|
3348
3359
|
if (r.observable)
|
|
@@ -3360,12 +3371,12 @@ function qo(t) {
|
|
|
3360
3371
|
}
|
|
3361
3372
|
var _t;
|
|
3362
3373
|
typeof self < "u" ? _t = self : typeof window < "u" ? _t = window : typeof global < "u" ? _t = global : typeof module < "u" ? _t = module : _t = Function("return this")();
|
|
3363
|
-
|
|
3374
|
+
Bo(_t);
|
|
3364
3375
|
var dr = M.prototype, fr = "@@observable";
|
|
3365
3376
|
dr[fr] || (dr[fr] = function() {
|
|
3366
3377
|
return this;
|
|
3367
3378
|
});
|
|
3368
|
-
function
|
|
3379
|
+
function qo(t) {
|
|
3369
3380
|
for (var e = [
|
|
3370
3381
|
"query",
|
|
3371
3382
|
"operationName",
|
|
@@ -3379,7 +3390,7 @@ function Ro(t) {
|
|
|
3379
3390
|
}
|
|
3380
3391
|
return t;
|
|
3381
3392
|
}
|
|
3382
|
-
function
|
|
3393
|
+
function Ro(t, e) {
|
|
3383
3394
|
var r = st({}, t), n = function(a) {
|
|
3384
3395
|
typeof a == "function" ? r = st(st({}, r), a(r)) : r = st(st({}, r), a);
|
|
3385
3396
|
}, o = function() {
|
|
@@ -3393,21 +3404,21 @@ function Ho(t, e) {
|
|
|
3393
3404
|
value: o
|
|
3394
3405
|
}), e;
|
|
3395
3406
|
}
|
|
3396
|
-
function
|
|
3407
|
+
function Ho(t) {
|
|
3397
3408
|
var e = {
|
|
3398
3409
|
variables: t.variables || {},
|
|
3399
3410
|
extensions: t.extensions || {},
|
|
3400
3411
|
operationName: t.operationName,
|
|
3401
3412
|
query: t.query
|
|
3402
3413
|
};
|
|
3403
|
-
return e.operationName || (e.operationName = typeof e.query != "string" ?
|
|
3414
|
+
return e.operationName || (e.operationName = typeof e.query != "string" ? To(e.query) || void 0 : ""), e;
|
|
3404
3415
|
}
|
|
3405
|
-
var
|
|
3406
|
-
function
|
|
3407
|
-
return
|
|
3416
|
+
var Vo = Symbol.for("apollo.deprecations"), Yo = xe, Jo = new Ee();
|
|
3417
|
+
function Ko(t) {
|
|
3418
|
+
return Yo[Vo] || (Jo.getValue() || []).includes(t);
|
|
3408
3419
|
}
|
|
3409
|
-
function
|
|
3410
|
-
|
|
3420
|
+
function Go(t, e) {
|
|
3421
|
+
Ko(t) || e();
|
|
3411
3422
|
}
|
|
3412
3423
|
function pr(t, e) {
|
|
3413
3424
|
return e ? e(t) : M.of();
|
|
@@ -3440,7 +3451,7 @@ var Yr = (
|
|
|
3440
3451
|
return e(c) ? o.request(c, s) || M.of() : a.request(c, s) || M.of();
|
|
3441
3452
|
}), Object.assign(i, { left: o, right: a });
|
|
3442
3453
|
}, t.execute = function(e, r) {
|
|
3443
|
-
return e.request(
|
|
3454
|
+
return e.request(Ro(r.context, Ho(qo(r)))) || M.of();
|
|
3444
3455
|
}, t.concat = function(e, r) {
|
|
3445
3456
|
var n = zt(e);
|
|
3446
3457
|
if (Ht(n))
|
|
@@ -3462,7 +3473,7 @@ var Yr = (
|
|
|
3462
3473
|
}, t.prototype.request = function(e, r) {
|
|
3463
3474
|
throw Br(48);
|
|
3464
3475
|
}, t.prototype.onError = function(e, r) {
|
|
3465
|
-
if (globalThis.__DEV__ !== !1 &&
|
|
3476
|
+
if (globalThis.__DEV__ !== !1 && Go("onError", function() {
|
|
3466
3477
|
globalThis.__DEV__ !== !1 && le.warn(49);
|
|
3467
3478
|
}), r && r.error)
|
|
3468
3479
|
return r.error(e), !1;
|
|
@@ -3472,9 +3483,9 @@ var Yr = (
|
|
|
3472
3483
|
}, t;
|
|
3473
3484
|
})()
|
|
3474
3485
|
);
|
|
3475
|
-
function
|
|
3486
|
+
function Wo(t) {
|
|
3476
3487
|
return new Yr(function(e, r) {
|
|
3477
|
-
var n =
|
|
3488
|
+
var n = Io(e, []);
|
|
3478
3489
|
return new M(function(o) {
|
|
3479
3490
|
var a, i = !1;
|
|
3480
3491
|
return Promise.resolve(n).then(function(c) {
|
|
@@ -3491,7 +3502,7 @@ function Qo(t) {
|
|
|
3491
3502
|
});
|
|
3492
3503
|
});
|
|
3493
3504
|
}
|
|
3494
|
-
const
|
|
3505
|
+
const Qo = async () => {
|
|
3495
3506
|
const t = "https://auth.australia-southeast1.gcp.commercetools.com/oauth/token", n = "Basic " + btoa(encodeURIComponent("tfegsSBVOYnR7e_yE-AjxVVN") + ":" + encodeURIComponent("pyKWgHuTxuMwDygh9JH1ehLEaLvAhBo4"));
|
|
3496
3507
|
try {
|
|
3497
3508
|
const o = await U.post(
|
|
@@ -3509,28 +3520,27 @@ const Xo = async () => {
|
|
|
3509
3520
|
} catch (o) {
|
|
3510
3521
|
return U.isAxiosError(o) ? console.error("Error fetching token:", o.response || o.message) : console.error("Unexpected error:", o), null;
|
|
3511
3522
|
}
|
|
3512
|
-
},
|
|
3513
|
-
uri: `${
|
|
3514
|
-
}),
|
|
3515
|
-
const r = await
|
|
3523
|
+
}, Xo = "https://api.australia-southeast1.gcp.commercetools.com/kt-demo/graphql", Zo = Qr({
|
|
3524
|
+
uri: `${Xo}`
|
|
3525
|
+
}), ta = Wo(async (t, { headers: e }) => {
|
|
3526
|
+
const r = await Qo();
|
|
3516
3527
|
return {
|
|
3517
3528
|
headers: {
|
|
3518
3529
|
...e,
|
|
3519
3530
|
authorization: `Bearer ${r}`
|
|
3520
3531
|
}
|
|
3521
3532
|
};
|
|
3522
|
-
}),
|
|
3523
|
-
link:
|
|
3524
|
-
cache: new
|
|
3533
|
+
}), ea = new Xr({
|
|
3534
|
+
link: ta.concat(Zo),
|
|
3535
|
+
cache: new Zr(),
|
|
3525
3536
|
defaultOptions: {
|
|
3526
3537
|
watchQuery: {
|
|
3527
3538
|
fetchPolicy: "cache-and-network"
|
|
3528
3539
|
}
|
|
3529
3540
|
}
|
|
3530
|
-
}), ya = () => /* @__PURE__ */ l(
|
|
3531
|
-
Jr.textContent = on;
|
|
3532
|
-
document.head.appendChild(Jr);
|
|
3541
|
+
}), ya = () => /* @__PURE__ */ l(tn, { client: ea, children: /* @__PURE__ */ l(un, { children: /* @__PURE__ */ l(So, {}) }) });
|
|
3533
3542
|
export {
|
|
3534
|
-
ya as TanyaChatbot
|
|
3543
|
+
ya as TanyaChatbot,
|
|
3544
|
+
pa as TanyaChatbotProvider
|
|
3535
3545
|
};
|
|
3536
3546
|
//# sourceMappingURL=tanya-chatbot.es.js.map
|