tanya-chatbot 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/tanya-chatbot.es.js
CHANGED
|
@@ -8,7 +8,7 @@ import "clsx";
|
|
|
8
8
|
import "tailwind-merge";
|
|
9
9
|
import E from "axios";
|
|
10
10
|
import "crypto-js";
|
|
11
|
-
import { Icon as
|
|
11
|
+
import { Icon as ge } from "@iconify/react";
|
|
12
12
|
import { toast as U } from "react-toastify";
|
|
13
13
|
const pr = '*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media(min-width:640px){.container{max-width:640px}}@media(min-width:768px){.container{max-width:768px}}@media(min-width:1024px){.container{max-width:1024px}}@media(min-width:1280px){.container{max-width:1280px}}@media(min-width:1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.top-full{top:100%}.z-40{z-index:40}.z-50{z-index:50}.m-1{margin:.25rem}.m-3{margin:.75rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.mb-1{margin-bottom:.25rem}.mb-16{margin-bottom:4rem}.mb-2{margin-bottom:.5rem}.mb-20{margin-bottom:5rem}.mb-24{margin-bottom:6rem}.mb-4{margin-bottom:1rem}.mb-8{margin-bottom:2rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.h-12{height:3rem}.h-28{height:7rem}.h-3{height:.75rem}.h-6{height:1.5rem}.h-\\[120px\\]{height:120px}.h-\\[200px\\]{height:200px}.h-\\[60px\\]{height:60px}.h-\\[90vh\\]{height:90vh}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-screen{height:100vh}.w-28{width:7rem}.w-3{width:.75rem}.w-5\\/6{width:83.333333%}.w-6{width:1.5rem}.w-72{width:18rem}.w-\\[100vw\\]{width:100vw}.w-\\[120px\\]{width:120px}.w-\\[150px\\]{width:150px}.w-\\[60px\\]{width:60px}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.max-w-\\[200px\\]{max-width:200px}.max-w-\\[75\\%\\]{max-width:75%}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-ellipsis{text-overflow:ellipsis}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\\[10px\\]{border-radius:10px}.rounded-\\[20px\\]{border-radius:20px}.rounded-\\[5px\\]{border-radius:5px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-xl{border-radius:.75rem}.rounded-l-\\[20px\\]{border-top-left-radius:20px;border-bottom-left-radius:20px}.rounded-l-xl{border-top-left-radius:.75rem;border-bottom-left-radius:.75rem}.rounded-r-xl{border-top-right-radius:.75rem;border-bottom-right-radius:.75rem}.rounded-bl-2xl{border-bottom-left-radius:1rem}.rounded-br-xl{border-bottom-right-radius:.75rem}.rounded-tr-\\[20px\\]{border-top-right-radius:20px}.rounded-tr-\\[5px\\]{border-top-right-radius:5px}.border{border-width:1px}.border-0{border-width:0px}.border-b-2{border-bottom-width:2px}.border-l-2{border-left-width:2px}.border-t-2{border-top-width:2px}.border-none{border-style:none}.border-\\[\\#C9C2DE\\]{--tw-border-opacity: 1;border-color:rgb(201 194 222 / var(--tw-border-opacity, 1))}.border-\\[\\#E5E5E5\\]{--tw-border-opacity: 1;border-color:rgb(229 229 229 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.bg-\\[\\#553D94\\]{--tw-bg-opacity: 1;background-color:rgb(85 61 148 / var(--tw-bg-opacity, 1))}.bg-\\[\\#6851C6\\]{--tw-bg-opacity: 1;background-color:rgb(104 81 198 / var(--tw-bg-opacity, 1))}.bg-\\[\\#804C9E0D\\]{background-color:#804c9e0d}.bg-\\[\\#A21CAF\\]{--tw-bg-opacity: 1;background-color:rgb(162 28 175 / var(--tw-bg-opacity, 1))}.bg-\\[\\#AB192D\\]{--tw-bg-opacity: 1;background-color:rgb(171 25 45 / var(--tw-bg-opacity, 1))}.bg-\\[\\#E2DBFF\\]{--tw-bg-opacity: 1;background-color:rgb(226 219 255 / var(--tw-bg-opacity, 1))}.bg-\\[\\#E3DEEF\\]{--tw-bg-opacity: 1;background-color:rgb(227 222 239 / var(--tw-bg-opacity, 1))}.bg-\\[\\#F3F3F3\\]{--tw-bg-opacity: 1;background-color:rgb(243 243 243 / var(--tw-bg-opacity, 1))}.bg-\\[\\#FFFFFF\\],.bg-\\[\\#ffffff\\]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-black\\/30{background-color:#0000004d}.bg-indigo-300{--tw-bg-opacity: 1;background-color:rgb(165 180 252 / var(--tw-bg-opacity, 1))}.bg-popover{background-color:hsl(var(--popover))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-\\[1px\\]{padding:1px}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-7{padding-left:1.75rem;padding-right:1.75rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-2{padding-bottom:.5rem}.pl-2{padding-left:.5rem}.pr-5{padding-right:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.font-nunitoSans{font-family:Nunito Sans}.text-\\[12px\\]{font-size:12px}.text-\\[14px\\]{font-size:14px}.text-\\[15px\\]{font-size:15px}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-snug{line-height:1.375}.text-\\[\\#000000\\]{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-\\[\\#14121F\\]{--tw-text-opacity: 1;color:rgb(20 18 31 / var(--tw-text-opacity, 1))}.text-\\[\\#18181B\\]{--tw-text-opacity: 1;color:rgb(24 24 27 / var(--tw-text-opacity, 1))}.text-\\[\\#232323\\]{--tw-text-opacity: 1;color:rgb(35 35 35 / var(--tw-text-opacity, 1))}.text-\\[\\#323135\\]{--tw-text-opacity: 1;color:rgb(50 49 53 / var(--tw-text-opacity, 1))}.text-\\[\\#494949\\]{--tw-text-opacity: 1;color:rgb(73 73 73 / var(--tw-text-opacity, 1))}.text-\\[\\#555555\\]{--tw-text-opacity: 1;color:rgb(85 85 85 / var(--tw-text-opacity, 1))}.text-\\[\\#5B5B5B\\]{--tw-text-opacity: 1;color:rgb(91 91 91 / var(--tw-text-opacity, 1))}.text-\\[\\#68656E\\]{--tw-text-opacity: 1;color:rgb(104 101 110 / var(--tw-text-opacity, 1))}.text-\\[\\#959595\\]{--tw-text-opacity: 1;color:rgb(149 149 149 / var(--tw-text-opacity, 1))}.text-\\[\\#EC5050\\]{--tw-text-opacity: 1;color:rgb(236 80 80 / var(--tw-text-opacity, 1))}.text-\\[\\#FBFBFC\\]{--tw-text-opacity: 1;color:rgb(251 251 252 / var(--tw-text-opacity, 1))}.text-\\[\\#FFFFFF\\]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity, 1))}.line-through{text-decoration-line:line-through}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-80{opacity:.8}.shadow-\\[0px_2px_2px_0px_\\#9292BC40\\]{--tw-shadow: 0px 2px 2px 0px #9292BC40;--tw-shadow-colored: 0px 2px 2px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[0px_4px_10px_0px_\\#5F499840\\]{--tw-shadow: 0px 4px 10px 0px #5F499840;--tw-shadow-colored: 0px 4px 10px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.duration-300{animation-duration:.3s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.running{animation-play-state:running}html,body,#root{margin:0;padding:0}:root{line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;padding:0}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media(prefers-color-scheme:light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.hover\\:scale-125:hover{--tw-scale-x: 1.25;--tw-scale-y: 1.25;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:text-\\[\\#6952C7\\]:hover{--tw-text-opacity: 1;color:rgb(105 82 199 / var(--tw-text-opacity, 1))}.hover\\:opacity-90:hover{opacity:.9}.group:hover .group-hover\\:opacity-100{opacity:1}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}@media(min-width:640px){.sm\\:w-\\[80vw\\]{width:80vw}}@media(min-width:768px){.md\\:h-\\[100vh\\]{height:100vh}.md\\:w-1\\/2{width:50%}.md\\:w-\\[770px\\]{width:770px}.md\\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:flex-row{flex-direction:row}}@media(min-width:1024px){.lg\\:h-\\[100vh\\]{height:100vh}.lg\\:w-1\\/2{width:50%}.lg\\:w-2\\/3{width:66.666667%}.lg\\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.lg\\:translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.lg\\:translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.lg\\:transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.lg\\:flex-row{flex-direction:row}.lg\\:rounded-l-xl{border-top-left-radius:.75rem;border-bottom-left-radius:.75rem}.lg\\:rounded-bl-xl{border-bottom-left-radius:.75rem}}';
|
|
14
14
|
function yo() {
|
|
@@ -150,7 +150,7 @@ async function Ot() {
|
|
|
150
150
|
console.log(d);
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
|
-
const Z = () => sessionStorage.getItem("Host"), R = () => sessionStorage.getItem("SiteId"), tt = () => sessionStorage.getItem("pubCfg"), et = () => sessionStorage.getItem("envRef"), rt = () => sessionStorage.getItem("orgRef"),
|
|
153
|
+
const Z = () => sessionStorage.getItem("Host"), R = () => sessionStorage.getItem("SiteId"), tt = () => sessionStorage.getItem("pubCfg"), et = () => sessionStorage.getItem("envRef"), rt = () => sessionStorage.getItem("orgRef"), be = async (t) => {
|
|
154
154
|
console.log("fetching results");
|
|
155
155
|
const { serverUrl: e, basePath: r } = st();
|
|
156
156
|
let o = "";
|
|
@@ -200,10 +200,10 @@ const Z = () => sessionStorage.getItem("Host"), R = () => sessionStorage.getItem
|
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
)).data;
|
|
203
|
-
},
|
|
203
|
+
}, xe = (t) => String(typeof t == "string" ? t : t["en-US"] || t), ye = (t) => t != null && t.image ? [t.image] : "variants" in t ? t.variants[0].images : t.masterVariant.images.map((e) => e.url), kr = (t, e) => t.toLocaleString("en-US", {
|
|
204
204
|
style: "currency",
|
|
205
205
|
currency: e || "USD"
|
|
206
|
-
}),
|
|
206
|
+
}), ve = (t) => {
|
|
207
207
|
var e, r, o;
|
|
208
208
|
return "variants" in t ? {
|
|
209
209
|
centAmount: (e = t.variants[0]) == null ? void 0 : e.prices.EUR.max,
|
|
@@ -212,21 +212,21 @@ const Z = () => sessionStorage.getItem("Host"), R = () => sessionStorage.getItem
|
|
|
212
212
|
centAmount: (r = t.masterVariant) == null ? void 0 : r.prices[0].value.centAmount,
|
|
213
213
|
currencyCode: (o = t.masterVariant) == null ? void 0 : o.prices[0].value.currencyCode
|
|
214
214
|
};
|
|
215
|
-
}, Sr = (t) => t.charAt(0).toUpperCase() + t.slice(1),
|
|
215
|
+
}, Sr = (t) => t.charAt(0).toUpperCase() + t.slice(1), ke = (t, e) => t.length < e ? t : t.slice(0, e) + "...", Wt = (t) => t.split("\\n").map((e, r) => {
|
|
216
216
|
const o = e.match(/^(\d+)\.\s(.+)/);
|
|
217
217
|
return o ? `<p key=${r} class="mb-2"><strong>${o[1]}.</strong> ${o[2]}</p>` : e.trim() ? `<p key=${r} class="mb-2">${e}</p>` : "<br/>";
|
|
218
218
|
}).join("");
|
|
219
|
-
function
|
|
219
|
+
function Cr() {
|
|
220
220
|
const t = () => window.innerWidth < 425 ? 1 : window.innerWidth < 768 ? 2 : 4, [e, r] = P(t);
|
|
221
221
|
return bt(() => {
|
|
222
222
|
const o = () => r(t());
|
|
223
223
|
return window.addEventListener("resize", o), () => window.removeEventListener("resize", o);
|
|
224
224
|
}, []), e;
|
|
225
225
|
}
|
|
226
|
-
const
|
|
226
|
+
const _r = ({
|
|
227
227
|
product: t
|
|
228
228
|
}) => {
|
|
229
|
-
const e = Ae(), r =
|
|
229
|
+
const e = Ae(), r = Cr(), [o, n] = P(0), l = () => {
|
|
230
230
|
n(
|
|
231
231
|
(i) => i + r >= t.length ? 0 : i + r
|
|
232
232
|
);
|
|
@@ -252,7 +252,7 @@ const Cr = ({
|
|
|
252
252
|
}
|
|
253
253
|
),
|
|
254
254
|
/* @__PURE__ */ a("div", { className: "flex gap-5 justify-center flex-1 overflow-hidden", children: t.slice(o, o + r).map((i) => {
|
|
255
|
-
var x, b,
|
|
255
|
+
var x, b, C, S;
|
|
256
256
|
return /* @__PURE__ */ u(
|
|
257
257
|
"div",
|
|
258
258
|
{
|
|
@@ -264,7 +264,7 @@ const Cr = ({
|
|
|
264
264
|
/* @__PURE__ */ a("div", { className: "w-full p-2 flex items-center justify-center bg-white", children: /* @__PURE__ */ a(
|
|
265
265
|
"img",
|
|
266
266
|
{
|
|
267
|
-
src: ((x =
|
|
267
|
+
src: ((x = ye(i)[0]) == null ? void 0 : x.link) || ye(i)[0] || // fallback if it's a string
|
|
268
268
|
"https://via.placeholder.com/120",
|
|
269
269
|
alt: i != null && i.productName ? i.productName : "Product",
|
|
270
270
|
className: "w-28 h-28 rounded-[10px] transition-transform duration-300 hover:scale-125 object-cover"
|
|
@@ -276,8 +276,8 @@ const Cr = ({
|
|
|
276
276
|
className: "text-white w-full p-2 text-[12px] text-center h-[60px]",
|
|
277
277
|
children: [
|
|
278
278
|
/* @__PURE__ */ u("div", { className: "relative inline-block group", children: [
|
|
279
|
-
/* @__PURE__ */ a("div", { className: "w-full line-clamp-1 overflow-hidden text-ellipsis text-[#000000] font-medium font-nunitoSans", children: i != null && i.productName ? i.productName : i != null && i.product_name ? i.product_name :
|
|
280
|
-
|
|
279
|
+
/* @__PURE__ */ a("div", { className: "w-full line-clamp-1 overflow-hidden text-ellipsis text-[#000000] font-medium font-nunitoSans", children: i != null && i.productName ? i.productName : i != null && i.product_name ? i.product_name : ke(
|
|
280
|
+
xe((b = i == null ? void 0 : i.name) == null ? void 0 : b["en-US"]),
|
|
281
281
|
60
|
|
282
282
|
) || "Product" }),
|
|
283
283
|
/* @__PURE__ */ a(
|
|
@@ -291,8 +291,8 @@ const Cr = ({
|
|
|
291
291
|
marginBottom: "5px",
|
|
292
292
|
zIndex: 50
|
|
293
293
|
},
|
|
294
|
-
children: i != null && i.productName ? i.productName : i != null && i.product_name ? i.product_name :
|
|
295
|
-
|
|
294
|
+
children: i != null && i.productName ? i.productName : i != null && i.product_name ? i.product_name : ke(
|
|
295
|
+
xe((C = i == null ? void 0 : i.name) == null ? void 0 : C["en-US"]),
|
|
296
296
|
60
|
|
297
297
|
) || "Product"
|
|
298
298
|
}
|
|
@@ -300,8 +300,8 @@ const Cr = ({
|
|
|
300
300
|
] }),
|
|
301
301
|
/* @__PURE__ */ u("div", { className: " flex text-center items-center gap-2 text-[14px] text-[#14121F] font-bold font-nunitoSans text-base mb-1", children: [
|
|
302
302
|
/* @__PURE__ */ a("p", { children: kr(
|
|
303
|
-
i != null && i.price ? Number(i == null ? void 0 : i.price) :
|
|
304
|
-
(S =
|
|
303
|
+
i != null && i.price ? Number(i == null ? void 0 : i.price) : ve(i).centAmount || 0,
|
|
304
|
+
(S = ve(i)) == null ? void 0 : S.currencyCode
|
|
305
305
|
) }),
|
|
306
306
|
/* @__PURE__ */ u("p", { className: "text-[#14121F] font-normal line-through text-sm font-nunitoSans truncate", children: [
|
|
307
307
|
"$",
|
|
@@ -346,7 +346,7 @@ const Cr = ({
|
|
|
346
346
|
}
|
|
347
347
|
),
|
|
348
348
|
/* @__PURE__ */ a(
|
|
349
|
-
|
|
349
|
+
_r,
|
|
350
350
|
{
|
|
351
351
|
product: r.items,
|
|
352
352
|
storeDetails: e
|
|
@@ -413,10 +413,10 @@ const Cr = ({
|
|
|
413
413
|
} catch (s) {
|
|
414
414
|
return E.isAxiosError(s) ? { status: (l = s.response) == null ? void 0 : l.status, data: null } : { status: null, data: null };
|
|
415
415
|
}
|
|
416
|
-
},
|
|
416
|
+
}, oe = "sfcc_basket_id", Se = "sfcc_customer_token", Tt = "sfcc_token_expiry", Ir = 300 * 1e3, It = "1.0.0";
|
|
417
417
|
const xt = (t) => {
|
|
418
418
|
try {
|
|
419
|
-
t ? localStorage.setItem(
|
|
419
|
+
t ? localStorage.setItem(oe, t) : localStorage.removeItem(oe);
|
|
420
420
|
} catch (e) {
|
|
421
421
|
console.error("Error saving basket ID to storage:", e);
|
|
422
422
|
}
|
|
@@ -431,17 +431,17 @@ const xt = (t) => {
|
|
|
431
431
|
} catch (e) {
|
|
432
432
|
console.error("Error storing token:", e);
|
|
433
433
|
}
|
|
434
|
-
},
|
|
435
|
-
var d, i, x, b,
|
|
436
|
-
const t = Ae(), e = Mt((
|
|
434
|
+
}, Ce = 300, Nr = () => {
|
|
435
|
+
var d, i, x, b, C, S;
|
|
436
|
+
const t = Ae(), e = Mt((_) => _.product.product), r = Mt((_) => _.store.store), [o, n] = P(!!e);
|
|
437
437
|
if (bt(() => {
|
|
438
438
|
n(!!e);
|
|
439
439
|
}, [e]), !e) return null;
|
|
440
440
|
const l = async () => {
|
|
441
|
-
var
|
|
441
|
+
var _, j, q, M, lt, vt, Pt, ot, kt, St, ct, $t, zt, Ct, O, dt;
|
|
442
442
|
console.log(e, "the prod");
|
|
443
443
|
try {
|
|
444
|
-
if (!((j = (
|
|
444
|
+
if (!((j = (_ = e == null ? void 0 : e.variants) == null ? void 0 : _[0]) != null && j.product_id) && !(e.type.item || e.type.bundle) && !((M = (q = e == null ? void 0 : e.variants) == null ? void 0 : q[0]) != null && M.productId)) {
|
|
445
445
|
U.error("Variants not available", {
|
|
446
446
|
position: "bottom-right",
|
|
447
447
|
autoClose: 1e3
|
|
@@ -455,9 +455,9 @@ const xt = (t) => {
|
|
|
455
455
|
}
|
|
456
456
|
];
|
|
457
457
|
console.log(p, "the product data");
|
|
458
|
-
const
|
|
458
|
+
const _t = JSON.parse(
|
|
459
459
|
sessionStorage.getItem("customerData") || "{}"
|
|
460
|
-
), nt =
|
|
460
|
+
), nt = _t == null ? void 0 : _t.basketId, Jt = !1, jt = localStorage.getItem(Tt), Y = Date.now();
|
|
461
461
|
if (!Jt || !jt || Y >= parseInt(jt)) {
|
|
462
462
|
let $ = "";
|
|
463
463
|
{
|
|
@@ -535,7 +535,7 @@ const xt = (t) => {
|
|
|
535
535
|
position: "bottom-right",
|
|
536
536
|
autoClose: 3e3
|
|
537
537
|
}), ((zt = p == null ? void 0 : p.response) == null ? void 0 : zt.status) === 404 || // Basket not found
|
|
538
|
-
((
|
|
538
|
+
((Ct = p == null ? void 0 : p.response) == null ? void 0 : Ct.status) === 401 ? (((O = p == null ? void 0 : p.response) == null ? void 0 : O.status) === 404 && xt(null), ((dt = p == null ? void 0 : p.response) == null ? void 0 : dt.status) === 401 && (xt(null), Rt(null))) : (console.error("Failed to add product to basket:", p.message), U.error("Failed to add product to cart", {
|
|
539
539
|
position: "bottom-right",
|
|
540
540
|
autoClose: 3e3
|
|
541
541
|
}));
|
|
@@ -549,7 +549,7 @@ const xt = (t) => {
|
|
|
549
549
|
{
|
|
550
550
|
className: "fixed inset-0 z-40 bg-black/30",
|
|
551
551
|
onClick: () => {
|
|
552
|
-
n(!1), setTimeout(() => t(re(null)),
|
|
552
|
+
n(!1), setTimeout(() => t(re(null)), Ce);
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
555
|
),
|
|
@@ -562,19 +562,19 @@ const xt = (t) => {
|
|
|
562
562
|
${o ? "translate-y-0 md:translate-y-0 md:translate-x-0 opacity-100" : "translate-y-full md:translate-y-0 md:translate-x-full opacity-0 pointer-events-none"}
|
|
563
563
|
`,
|
|
564
564
|
style: { willChange: "transform, opacity" },
|
|
565
|
-
onClick: (
|
|
565
|
+
onClick: (_) => _.stopPropagation(),
|
|
566
566
|
children: [
|
|
567
567
|
/* @__PURE__ */ u("div", { className: "mt-3 flex flex-row justify-between w-full ", children: [
|
|
568
568
|
/* @__PURE__ */ a("div", { children: /* @__PURE__ */ a("p", { className: "text-[#000000] font-bold font-nunitoSans", children: e.name }) }),
|
|
569
569
|
/* @__PURE__ */ a("div", { children: /* @__PURE__ */ a(
|
|
570
|
-
|
|
570
|
+
ge,
|
|
571
571
|
{
|
|
572
572
|
icon: "mdi:close",
|
|
573
573
|
className: "text-[#555555] w-6 h-6 cursor-pointer",
|
|
574
574
|
onClick: () => {
|
|
575
575
|
n(!1), setTimeout(
|
|
576
576
|
() => t(re(null)),
|
|
577
|
-
|
|
577
|
+
Ce
|
|
578
578
|
);
|
|
579
579
|
}
|
|
580
580
|
}
|
|
@@ -590,7 +590,7 @@ const xt = (t) => {
|
|
|
590
590
|
}
|
|
591
591
|
) }),
|
|
592
592
|
/* @__PURE__ */ a("div", { className: "flex flex-col items-center gap-2", children: e.imageGroups.slice(1, 2).map(
|
|
593
|
-
(
|
|
593
|
+
(_) => _.images.slice(1, 2).map((j) => /* @__PURE__ */ a(
|
|
594
594
|
"img",
|
|
595
595
|
{
|
|
596
596
|
src: j.link,
|
|
@@ -631,7 +631,7 @@ const xt = (t) => {
|
|
|
631
631
|
/* @__PURE__ */ u("div", { className: "mt-4 flex flex-col gap-2 w-full p-2", children: [
|
|
632
632
|
/* @__PURE__ */ a("div", { className: "flex flex-row items-center gap-2", children: /* @__PURE__ */ u("div", { className: "flex items-center gap-2 text-left font-nunitoSans", children: [
|
|
633
633
|
/* @__PURE__ */ u("div", { className: "text-[#323135] font-bold", children: [
|
|
634
|
-
((
|
|
634
|
+
((C = e == null ? void 0 : e.rating) == null ? void 0 : C.rate) || 0,
|
|
635
635
|
" /",
|
|
636
636
|
" ",
|
|
637
637
|
/* @__PURE__ */ a("span", { className: "text-[#68656E]", children: "5" })
|
|
@@ -642,10 +642,10 @@ const xt = (t) => {
|
|
|
642
642
|
" ratings"
|
|
643
643
|
] })
|
|
644
644
|
] }) }),
|
|
645
|
-
/* @__PURE__ */ a("div", { className: "mt-2 flex flex-row items-center gap-2", children: Array.from({ length: 5 }).map((
|
|
645
|
+
/* @__PURE__ */ a("div", { className: "mt-2 flex flex-row items-center gap-2", children: Array.from({ length: 5 }).map((_, j) => {
|
|
646
646
|
var q;
|
|
647
647
|
return /* @__PURE__ */ a(
|
|
648
|
-
|
|
648
|
+
ge,
|
|
649
649
|
{
|
|
650
650
|
icon: "mdi:star",
|
|
651
651
|
width: "20",
|
|
@@ -706,12 +706,12 @@ const xt = (t) => {
|
|
|
706
706
|
"Niece/Nephew": "his/her niece/nephew",
|
|
707
707
|
"My Friends": "his/her friends",
|
|
708
708
|
Others: "others"
|
|
709
|
-
}, o = Ft(null), n = Ft(null), l = Ft(null), s = Ft(null), [d, i] = P(null), [x, b] = P(!1), [
|
|
709
|
+
}, o = Ft(null), n = Ft(null), l = Ft(null), s = Ft(null), [d, i] = P(null), [x, b] = P(!1), [C, S] = P(!1), [_, j] = P(!1), [q, M] = P(!1), [lt, vt] = P(!1), [Pt, ot] = P(!1), [kt, St] = P(""), [ct, $t] = P(""), zt = (c) => ({
|
|
710
710
|
id: c.id,
|
|
711
711
|
title: c.name,
|
|
712
712
|
image: c.image ?? "",
|
|
713
713
|
price: c.price ?? 0
|
|
714
|
-
}), [
|
|
714
|
+
}), [Ct, O] = P([]), dt = Ft(null), p = Mt((c) => c.store.store), _t = Mt((c) => c.product.product), nt = () => {
|
|
715
715
|
j(!0), setTimeout(() => S(!0), 10);
|
|
716
716
|
}, Jt = () => {
|
|
717
717
|
S(!1), setTimeout(() => j(!1), 300);
|
|
@@ -724,7 +724,7 @@ const xt = (t) => {
|
|
|
724
724
|
};
|
|
725
725
|
bt(() => {
|
|
726
726
|
dt.current && (dt.current.scrollTop += 150);
|
|
727
|
-
}, [
|
|
727
|
+
}, [Ct]);
|
|
728
728
|
let Y = null, $ = null;
|
|
729
729
|
const At = async () => {
|
|
730
730
|
if (Y && $ && Date.now() < $)
|
|
@@ -774,7 +774,7 @@ const xt = (t) => {
|
|
|
774
774
|
const w = await h();
|
|
775
775
|
if (console.log(w, "interests of customer", It), !!w)
|
|
776
776
|
try {
|
|
777
|
-
|
|
777
|
+
O(
|
|
778
778
|
(L) => L.map(
|
|
779
779
|
(H, V) => V === L.length - 1 ? { ...H, secondaryLoading: !0 } : H
|
|
780
780
|
)
|
|
@@ -817,19 +817,19 @@ const xt = (t) => {
|
|
|
817
817
|
const m = W.slice(5).trim();
|
|
818
818
|
try {
|
|
819
819
|
const B = JSON.parse(m);
|
|
820
|
-
B.index === 0 &&
|
|
820
|
+
B.index === 0 && O(
|
|
821
821
|
(F) => F.map(
|
|
822
|
-
(
|
|
823
|
-
...
|
|
822
|
+
(T, X) => X === F.length - 1 ? {
|
|
823
|
+
...T,
|
|
824
824
|
secondaryResponse: B.data,
|
|
825
825
|
secondaryLoading: !1
|
|
826
|
-
} :
|
|
826
|
+
} : T
|
|
827
827
|
)
|
|
828
828
|
);
|
|
829
829
|
} catch (B) {
|
|
830
|
-
|
|
830
|
+
O(
|
|
831
831
|
(F) => F.map(
|
|
832
|
-
(
|
|
832
|
+
(T, X) => X === F.length - 1 ? { ...T, secondaryLoading: !1 } : T
|
|
833
833
|
)
|
|
834
834
|
), console.error("Secondary flow JSON parse error:", B);
|
|
835
835
|
}
|
|
@@ -841,7 +841,7 @@ const xt = (t) => {
|
|
|
841
841
|
}, K = async (c) => {
|
|
842
842
|
const k = c || kt.trim();
|
|
843
843
|
if (k) {
|
|
844
|
-
vt(!0), St(""), o.current = null, n.current = null, l.current = null, s.current = null,
|
|
844
|
+
vt(!0), St(""), o.current = null, n.current = null, l.current = null, s.current = null, O((w) => [
|
|
845
845
|
...w,
|
|
846
846
|
{
|
|
847
847
|
query: k,
|
|
@@ -892,9 +892,9 @@ const xt = (t) => {
|
|
|
892
892
|
const B = m.slice(5).trim();
|
|
893
893
|
try {
|
|
894
894
|
const F = JSON.parse(B);
|
|
895
|
-
F.index == 1 && (L = F.data),
|
|
896
|
-
(
|
|
897
|
-
(X, Dt) => Dt ===
|
|
895
|
+
F.index == 1 && (L = F.data), O(
|
|
896
|
+
(T) => T.map(
|
|
897
|
+
(X, Dt) => Dt === T.length - 1 ? {
|
|
898
898
|
...X,
|
|
899
899
|
[F.index == 0 ? "response" : F.index == 1 ? "keywords" : F.index == 2 ? "potentialQuestions" : "end"]: F.data
|
|
900
900
|
} : X
|
|
@@ -922,10 +922,8 @@ const xt = (t) => {
|
|
|
922
922
|
console.log(c, "keywords");
|
|
923
923
|
const k = c.split(",");
|
|
924
924
|
for (const w of k) {
|
|
925
|
-
const y = await
|
|
926
|
-
|
|
927
|
-
);
|
|
928
|
-
if (ot(!1), (y == null ? void 0 : y.length) > 0 && (T(
|
|
925
|
+
const y = await be(w);
|
|
926
|
+
if (ot(!1), (y == null ? void 0 : y.length) > 0 && (O(
|
|
929
927
|
(f) => f.map(
|
|
930
928
|
(g, z) => z === f.length - 1 ? {
|
|
931
929
|
...g,
|
|
@@ -944,10 +942,8 @@ const xt = (t) => {
|
|
|
944
942
|
}
|
|
945
943
|
} else
|
|
946
944
|
for (const k of c) {
|
|
947
|
-
const w = await
|
|
948
|
-
|
|
949
|
-
);
|
|
950
|
-
ot(!1), (w == null ? void 0 : w.length) > 0 && T(
|
|
945
|
+
const w = await be(k);
|
|
946
|
+
ot(!1), (w == null ? void 0 : w.length) > 0 && O(
|
|
951
947
|
(y) => y.map(
|
|
952
948
|
(f, g) => g === y.length - 1 ? {
|
|
953
949
|
...f,
|
|
@@ -960,7 +956,7 @@ const xt = (t) => {
|
|
|
960
956
|
);
|
|
961
957
|
}
|
|
962
958
|
if (o.current) {
|
|
963
|
-
|
|
959
|
+
O(
|
|
964
960
|
(w) => w.map(
|
|
965
961
|
(y, f) => f === w.length - 1 ? {
|
|
966
962
|
...y,
|
|
@@ -1002,8 +998,8 @@ const xt = (t) => {
|
|
|
1002
998
|
console.log(B, "product data", "app version", It);
|
|
1003
999
|
const F = JSON.parse(
|
|
1004
1000
|
sessionStorage.getItem("customerData") || "{}"
|
|
1005
|
-
),
|
|
1006
|
-
if (!X || !Dt ||
|
|
1001
|
+
), T = (F == null ? void 0 : F.basketId) || localStorage.getItem(oe), X = !1, Dt = localStorage.getItem(Tt), he = Date.now();
|
|
1002
|
+
if (!X || !Dt || he >= parseInt(Dt)) {
|
|
1007
1003
|
const or = await qe();
|
|
1008
1004
|
let { customer_token: at } = await Me(
|
|
1009
1005
|
or
|
|
@@ -1012,15 +1008,15 @@ const xt = (t) => {
|
|
|
1012
1008
|
console.error("Failed to get customer_token");
|
|
1013
1009
|
return;
|
|
1014
1010
|
}
|
|
1015
|
-
const nr =
|
|
1016
|
-
if (Rt(at), localStorage.setItem(Tt, nr.toString()),
|
|
1017
|
-
const
|
|
1018
|
-
basketId:
|
|
1011
|
+
const nr = he + 300 * 1e3;
|
|
1012
|
+
if (Rt(at), localStorage.setItem(Tt, nr.toString()), console.log(T, "basketIdFromCustomer"), T) {
|
|
1013
|
+
const we = await Re({
|
|
1014
|
+
basketId: T,
|
|
1019
1015
|
customer_token: at
|
|
1020
1016
|
});
|
|
1021
|
-
if (
|
|
1017
|
+
if (we.status === 200 && we) {
|
|
1022
1018
|
const Gt = await Vt(
|
|
1023
|
-
|
|
1019
|
+
T,
|
|
1024
1020
|
B,
|
|
1025
1021
|
at
|
|
1026
1022
|
);
|
|
@@ -1031,7 +1027,7 @@ const xt = (t) => {
|
|
|
1031
1027
|
closeOnClick: !0,
|
|
1032
1028
|
pauseOnHover: !0,
|
|
1033
1029
|
draggable: !0
|
|
1034
|
-
}), Ht(
|
|
1030
|
+
}), Ht(T), M(!1));
|
|
1035
1031
|
return;
|
|
1036
1032
|
}
|
|
1037
1033
|
}
|
|
@@ -1145,7 +1141,7 @@ const xt = (t) => {
|
|
|
1145
1141
|
) })
|
|
1146
1142
|
}
|
|
1147
1143
|
),
|
|
1148
|
-
|
|
1144
|
+
_ && /* @__PURE__ */ u(ee, { children: [
|
|
1149
1145
|
/* @__PURE__ */ a(
|
|
1150
1146
|
"div",
|
|
1151
1147
|
{
|
|
@@ -1161,9 +1157,9 @@ const xt = (t) => {
|
|
|
1161
1157
|
top-0 right-0
|
|
1162
1158
|
transition-transform duration-300 ease-in-out
|
|
1163
1159
|
lg:transform
|
|
1164
|
-
${
|
|
1160
|
+
${C ? "lg:translate-x-0" : "lg:translate-x-full"}
|
|
1165
1161
|
// For mobile: animate from bottom
|
|
1166
|
-
${
|
|
1162
|
+
${C ? "translate-y-0" : "translate-y-full"}
|
|
1167
1163
|
lg:translate-y-0
|
|
1168
1164
|
`,
|
|
1169
1165
|
style: {
|
|
@@ -1293,7 +1289,7 @@ const xt = (t) => {
|
|
|
1293
1289
|
/* @__PURE__ */ u(
|
|
1294
1290
|
"div",
|
|
1295
1291
|
{
|
|
1296
|
-
className: `flex flex-col h-full ${
|
|
1292
|
+
className: `flex flex-col h-full ${_t ? "lg:w-2/3 w-full" : "w-full"}`,
|
|
1297
1293
|
children: [
|
|
1298
1294
|
/* @__PURE__ */ u(
|
|
1299
1295
|
"div",
|
|
@@ -1323,7 +1319,7 @@ const xt = (t) => {
|
|
|
1323
1319
|
]
|
|
1324
1320
|
}
|
|
1325
1321
|
),
|
|
1326
|
-
|
|
1322
|
+
Ct.map((c, k) => {
|
|
1327
1323
|
var w, y;
|
|
1328
1324
|
return /* @__PURE__ */ u("div", { children: [
|
|
1329
1325
|
/* @__PURE__ */ a("div", { className: "flex justify-end", children: /* @__PURE__ */ a("p", { className: "text-sm font-nunitoSans font-bold text-[#000000] bg-[#E2DBFF] border border-[#C9C2DE] rounded-l-xl p-2 m-3 mb-4 rounded-br-xl max-w-[75%]", children: c.query }) }),
|
|
@@ -1475,7 +1471,7 @@ const xt = (t) => {
|
|
|
1475
1471
|
"button",
|
|
1476
1472
|
{
|
|
1477
1473
|
className: "px-3 py-1 text-sm",
|
|
1478
|
-
onClick: () =>
|
|
1474
|
+
onClick: () => O(
|
|
1479
1475
|
(f) => f.map(
|
|
1480
1476
|
(g, z) => z === k && g.productSnapshot ? {
|
|
1481
1477
|
...g,
|
|
@@ -1501,7 +1497,7 @@ const xt = (t) => {
|
|
|
1501
1497
|
"button",
|
|
1502
1498
|
{
|
|
1503
1499
|
className: "px-3 py-1 text-sm",
|
|
1504
|
-
onClick: () =>
|
|
1500
|
+
onClick: () => O(
|
|
1505
1501
|
(f) => f.map(
|
|
1506
1502
|
(g, z) => z === k && g.productSnapshot ? {
|
|
1507
1503
|
...g,
|
|
@@ -1623,17 +1619,17 @@ const xt = (t) => {
|
|
|
1623
1619
|
] })
|
|
1624
1620
|
] }) });
|
|
1625
1621
|
};
|
|
1626
|
-
var
|
|
1627
|
-
return
|
|
1622
|
+
var ne = function(t, e) {
|
|
1623
|
+
return ne = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
|
|
1628
1624
|
r.__proto__ = o;
|
|
1629
1625
|
} || function(r, o) {
|
|
1630
1626
|
for (var n in o) Object.prototype.hasOwnProperty.call(o, n) && (r[n] = o[n]);
|
|
1631
|
-
},
|
|
1627
|
+
}, ne(t, e);
|
|
1632
1628
|
};
|
|
1633
1629
|
function Tr(t, e) {
|
|
1634
1630
|
if (typeof e != "function" && e !== null)
|
|
1635
1631
|
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
1636
|
-
|
|
1632
|
+
ne(t, e);
|
|
1637
1633
|
function r() {
|
|
1638
1634
|
this.constructor = t;
|
|
1639
1635
|
}
|
|
@@ -1656,9 +1652,9 @@ function Or(t, e) {
|
|
|
1656
1652
|
e.indexOf(o[n]) < 0 && Object.prototype.propertyIsEnumerable.call(t, o[n]) && (r[o[n]] = t[o[n]]);
|
|
1657
1653
|
return r;
|
|
1658
1654
|
}
|
|
1659
|
-
var Xt = "Invariant Violation",
|
|
1655
|
+
var Xt = "Invariant Violation", _e = Object.setPrototypeOf, Pr = _e === void 0 ? function(t, e) {
|
|
1660
1656
|
return t.__proto__ = e, t;
|
|
1661
|
-
} :
|
|
1657
|
+
} : _e, Ye = (
|
|
1662
1658
|
/** @class */
|
|
1663
1659
|
(function(t) {
|
|
1664
1660
|
Tr(e, t);
|
|
@@ -1693,7 +1689,7 @@ function wt(t) {
|
|
|
1693
1689
|
} catch {
|
|
1694
1690
|
}
|
|
1695
1691
|
}
|
|
1696
|
-
const
|
|
1692
|
+
const ae = wt(function() {
|
|
1697
1693
|
return globalThis;
|
|
1698
1694
|
}) || wt(function() {
|
|
1699
1695
|
return window;
|
|
@@ -1727,7 +1723,7 @@ function Bt(t) {
|
|
|
1727
1723
|
r[o - 1] = arguments[o];
|
|
1728
1724
|
if (typeof e == "number") {
|
|
1729
1725
|
var n = e;
|
|
1730
|
-
e =
|
|
1726
|
+
e = le(n), e || (e = ce(n, r), r = []);
|
|
1731
1727
|
}
|
|
1732
1728
|
t.apply(void 0, [e].concat(r));
|
|
1733
1729
|
};
|
|
@@ -1735,7 +1731,7 @@ function Bt(t) {
|
|
|
1735
1731
|
var Qt = Object.assign(function(e, r) {
|
|
1736
1732
|
for (var o = [], n = 2; n < arguments.length; n++)
|
|
1737
1733
|
o[n - 2] = arguments[n];
|
|
1738
|
-
e || it(e,
|
|
1734
|
+
e || it(e, le(r, o) || ce(r, o));
|
|
1739
1735
|
}, {
|
|
1740
1736
|
debug: Bt(it.debug),
|
|
1741
1737
|
log: Bt(it.log),
|
|
@@ -1745,7 +1741,7 @@ var Qt = Object.assign(function(e, r) {
|
|
|
1745
1741
|
function Ge(t) {
|
|
1746
1742
|
for (var e = [], r = 1; r < arguments.length; r++)
|
|
1747
1743
|
e[r - 1] = arguments[r];
|
|
1748
|
-
return new Ye(
|
|
1744
|
+
return new Ye(le(t, e) || ce(t, e));
|
|
1749
1745
|
}
|
|
1750
1746
|
var Ie = Symbol.for("ApolloErrorMessageHandler_" + Ke);
|
|
1751
1747
|
function We(t) {
|
|
@@ -1757,11 +1753,11 @@ function We(t) {
|
|
|
1757
1753
|
return "<non-serializable>";
|
|
1758
1754
|
}
|
|
1759
1755
|
}
|
|
1760
|
-
function
|
|
1756
|
+
function le(t, e) {
|
|
1761
1757
|
if (e === void 0 && (e = []), !!t)
|
|
1762
|
-
return
|
|
1758
|
+
return ae[Ie] && ae[Ie](t, e.map(We));
|
|
1763
1759
|
}
|
|
1764
|
-
function
|
|
1760
|
+
function ce(t, e) {
|
|
1765
1761
|
if (e === void 0 && (e = []), !!t)
|
|
1766
1762
|
return "An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({
|
|
1767
1763
|
version: Ke,
|
|
@@ -1856,7 +1852,7 @@ const Zt = "@wry/context:Slot", Br = (
|
|
|
1856
1852
|
// back to using the Array constructor as a namespace, but that was flagged in
|
|
1857
1853
|
// https://github.com/benjamn/wryware/issues/347, and can be avoided.
|
|
1858
1854
|
/* @__PURE__ */ Object.create(null)
|
|
1859
|
-
), Te = Br,
|
|
1855
|
+
), Te = Br, de = Te[Zt] || // Earlier versions of this package stored the globalKey property on the Array
|
|
1860
1856
|
// constructor, so we check there as well, to prevent Slot class duplication.
|
|
1861
1857
|
Array[Zt] || (function(t) {
|
|
1862
1858
|
try {
|
|
@@ -1875,8 +1871,8 @@ Array[Zt] || (function(t) {
|
|
|
1875
1871
|
} finally {
|
|
1876
1872
|
return t;
|
|
1877
1873
|
}
|
|
1878
|
-
})(Lr()), { bind: So, noContext:
|
|
1879
|
-
new
|
|
1874
|
+
})(Lr()), { bind: So, noContext: Co } = de;
|
|
1875
|
+
new de();
|
|
1880
1876
|
function Ur(t, e) {
|
|
1881
1877
|
var r = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
1882
1878
|
if (r) return (r = r.call(t)).next.bind(r);
|
|
@@ -1910,18 +1906,18 @@ function Pe(t, e) {
|
|
|
1910
1906
|
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o);
|
|
1911
1907
|
}
|
|
1912
1908
|
}
|
|
1913
|
-
function
|
|
1909
|
+
function ue(t, e, r) {
|
|
1914
1910
|
return e && Pe(t.prototype, e), r && Pe(t, r), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
1915
1911
|
}
|
|
1916
|
-
var
|
|
1912
|
+
var pe = function() {
|
|
1917
1913
|
return typeof Symbol == "function";
|
|
1918
|
-
}, pe = function(t) {
|
|
1919
|
-
return ue() && !!Symbol[t];
|
|
1920
1914
|
}, fe = function(t) {
|
|
1921
|
-
return pe(
|
|
1915
|
+
return pe() && !!Symbol[t];
|
|
1916
|
+
}, me = function(t) {
|
|
1917
|
+
return fe(t) ? Symbol[t] : "@@" + t;
|
|
1922
1918
|
};
|
|
1923
|
-
|
|
1924
|
-
var Mr =
|
|
1919
|
+
pe() && !fe("observable") && (Symbol.observable = Symbol("observable"));
|
|
1920
|
+
var Mr = me("iterator"), ie = me("observable"), Xe = me("species");
|
|
1925
1921
|
function Yt(t, e) {
|
|
1926
1922
|
var r = t[e];
|
|
1927
1923
|
if (r != null) {
|
|
@@ -1964,7 +1960,7 @@ function Qe(t) {
|
|
|
1964
1960
|
yt(o);
|
|
1965
1961
|
}
|
|
1966
1962
|
}
|
|
1967
|
-
function
|
|
1963
|
+
function se(t) {
|
|
1968
1964
|
t._observer = void 0, t._queue = void 0, t._state = "closed";
|
|
1969
1965
|
}
|
|
1970
1966
|
function Vr(t) {
|
|
@@ -1985,11 +1981,11 @@ function Ze(t, e, r) {
|
|
|
1985
1981
|
n && n.call(o, r);
|
|
1986
1982
|
break;
|
|
1987
1983
|
case "error":
|
|
1988
|
-
if (
|
|
1984
|
+
if (se(t), n) n.call(o, r);
|
|
1989
1985
|
else throw r;
|
|
1990
1986
|
break;
|
|
1991
1987
|
case "complete":
|
|
1992
|
-
|
|
1988
|
+
se(t), n && n.call(o);
|
|
1993
1989
|
break;
|
|
1994
1990
|
}
|
|
1995
1991
|
} catch (l) {
|
|
@@ -2031,8 +2027,8 @@ var Rr = /* @__PURE__ */ (function() {
|
|
|
2031
2027
|
}
|
|
2032
2028
|
var e = t.prototype;
|
|
2033
2029
|
return e.unsubscribe = function() {
|
|
2034
|
-
this._state !== "closed" && (
|
|
2035
|
-
},
|
|
2030
|
+
this._state !== "closed" && (se(this), Qe(this));
|
|
2031
|
+
}, ue(t, [{
|
|
2036
2032
|
key: "closed",
|
|
2037
2033
|
get: function() {
|
|
2038
2034
|
return this._state === "closed";
|
|
@@ -2049,7 +2045,7 @@ var Rr = /* @__PURE__ */ (function() {
|
|
|
2049
2045
|
te(this._subscription, "error", o);
|
|
2050
2046
|
}, e.complete = function() {
|
|
2051
2047
|
te(this._subscription, "complete");
|
|
2052
|
-
},
|
|
2048
|
+
}, ue(t, [{
|
|
2053
2049
|
key: "closed",
|
|
2054
2050
|
get: function() {
|
|
2055
2051
|
return this._subscription._state === "closed";
|
|
@@ -2140,19 +2136,19 @@ var Rr = /* @__PURE__ */ (function() {
|
|
|
2140
2136
|
var l = Nt(this), s = arguments.length > 1, d = !1, i = arguments[1], x = i;
|
|
2141
2137
|
return new l(function(b) {
|
|
2142
2138
|
return n.subscribe({
|
|
2143
|
-
next: function(
|
|
2139
|
+
next: function(C) {
|
|
2144
2140
|
var S = !d;
|
|
2145
2141
|
if (d = !0, !S || s)
|
|
2146
2142
|
try {
|
|
2147
|
-
x = o(x,
|
|
2148
|
-
} catch (
|
|
2149
|
-
return b.error(
|
|
2143
|
+
x = o(x, C);
|
|
2144
|
+
} catch (_) {
|
|
2145
|
+
return b.error(_);
|
|
2150
2146
|
}
|
|
2151
2147
|
else
|
|
2152
|
-
x =
|
|
2148
|
+
x = C;
|
|
2153
2149
|
},
|
|
2154
|
-
error: function(
|
|
2155
|
-
b.error(
|
|
2150
|
+
error: function(C) {
|
|
2151
|
+
b.error(C);
|
|
2156
2152
|
},
|
|
2157
2153
|
complete: function() {
|
|
2158
2154
|
if (!d && !s) return b.error(new TypeError("Cannot reduce an empty sequence"));
|
|
@@ -2166,20 +2162,20 @@ var Rr = /* @__PURE__ */ (function() {
|
|
|
2166
2162
|
var d = Nt(this);
|
|
2167
2163
|
return new d(function(i) {
|
|
2168
2164
|
var x, b = 0;
|
|
2169
|
-
function
|
|
2165
|
+
function C(S) {
|
|
2170
2166
|
x = S.subscribe({
|
|
2171
|
-
next: function(
|
|
2172
|
-
i.next(
|
|
2167
|
+
next: function(_) {
|
|
2168
|
+
i.next(_);
|
|
2173
2169
|
},
|
|
2174
|
-
error: function(
|
|
2175
|
-
i.error(
|
|
2170
|
+
error: function(_) {
|
|
2171
|
+
i.error(_);
|
|
2176
2172
|
},
|
|
2177
2173
|
complete: function() {
|
|
2178
|
-
b === l.length ? (x = void 0, i.complete()) :
|
|
2174
|
+
b === l.length ? (x = void 0, i.complete()) : C(d.from(l[b++]));
|
|
2179
2175
|
}
|
|
2180
2176
|
});
|
|
2181
2177
|
}
|
|
2182
|
-
return
|
|
2178
|
+
return C(o), function() {
|
|
2183
2179
|
x && (x.unsubscribe(), x = void 0);
|
|
2184
2180
|
};
|
|
2185
2181
|
});
|
|
@@ -2196,7 +2192,7 @@ var Rr = /* @__PURE__ */ (function() {
|
|
|
2196
2192
|
} catch (S) {
|
|
2197
2193
|
return s.error(S);
|
|
2198
2194
|
}
|
|
2199
|
-
var
|
|
2195
|
+
var C = l.from(b).subscribe({
|
|
2200
2196
|
next: function(S) {
|
|
2201
2197
|
s.next(S);
|
|
2202
2198
|
},
|
|
@@ -2204,11 +2200,11 @@ var Rr = /* @__PURE__ */ (function() {
|
|
|
2204
2200
|
s.error(S);
|
|
2205
2201
|
},
|
|
2206
2202
|
complete: function() {
|
|
2207
|
-
var S = d.indexOf(
|
|
2203
|
+
var S = d.indexOf(C);
|
|
2208
2204
|
S >= 0 && d.splice(S, 1), x();
|
|
2209
2205
|
}
|
|
2210
2206
|
});
|
|
2211
|
-
d.push(
|
|
2207
|
+
d.push(C);
|
|
2212
2208
|
},
|
|
2213
2209
|
error: function(b) {
|
|
2214
2210
|
s.error(b);
|
|
@@ -2226,12 +2222,12 @@ var Rr = /* @__PURE__ */ (function() {
|
|
|
2226
2222
|
}), i.unsubscribe();
|
|
2227
2223
|
};
|
|
2228
2224
|
});
|
|
2229
|
-
}, e[
|
|
2225
|
+
}, e[ie] = function() {
|
|
2230
2226
|
return this;
|
|
2231
2227
|
}, t.from = function(o) {
|
|
2232
2228
|
var n = typeof this == "function" ? this : t;
|
|
2233
2229
|
if (o == null) throw new TypeError(o + " is not an object");
|
|
2234
|
-
var l = Yt(o,
|
|
2230
|
+
var l = Yt(o, ie);
|
|
2235
2231
|
if (l) {
|
|
2236
2232
|
var s = l.call(o);
|
|
2237
2233
|
if (Object(s) !== s) throw new TypeError(s + " is not an object");
|
|
@@ -2239,7 +2235,7 @@ var Rr = /* @__PURE__ */ (function() {
|
|
|
2239
2235
|
return s.subscribe(d);
|
|
2240
2236
|
});
|
|
2241
2237
|
}
|
|
2242
|
-
if (
|
|
2238
|
+
if (fe("iterator") && (l = Yt(o, Mr), l))
|
|
2243
2239
|
return new n(function(d) {
|
|
2244
2240
|
qt(function() {
|
|
2245
2241
|
if (!d.closed) {
|
|
@@ -2275,16 +2271,16 @@ var Rr = /* @__PURE__ */ (function() {
|
|
|
2275
2271
|
}
|
|
2276
2272
|
});
|
|
2277
2273
|
});
|
|
2278
|
-
},
|
|
2274
|
+
}, ue(t, null, [{
|
|
2279
2275
|
key: Xe,
|
|
2280
2276
|
get: function() {
|
|
2281
2277
|
return this;
|
|
2282
2278
|
}
|
|
2283
2279
|
}]), t;
|
|
2284
2280
|
})();
|
|
2285
|
-
|
|
2281
|
+
pe() && Object.defineProperty(N, Symbol("extensions"), {
|
|
2286
2282
|
value: {
|
|
2287
|
-
symbol:
|
|
2283
|
+
symbol: ie,
|
|
2288
2284
|
hostReportError: yt
|
|
2289
2285
|
},
|
|
2290
2286
|
configurable: !0
|
|
@@ -2349,7 +2345,7 @@ function Wr(t) {
|
|
|
2349
2345
|
};
|
|
2350
2346
|
return e.operationName || (e.operationName = typeof e.query != "string" ? Ar(e.query) || void 0 : ""), e;
|
|
2351
2347
|
}
|
|
2352
|
-
var Xr = Symbol.for("apollo.deprecations"), Qr =
|
|
2348
|
+
var Xr = Symbol.for("apollo.deprecations"), Qr = ae, Zr = new de();
|
|
2353
2349
|
function to(t) {
|
|
2354
2350
|
return Qr[Xr] || (Zr.getValue() || []).includes(t);
|
|
2355
2351
|
}
|
|
@@ -2474,12 +2470,12 @@ const oo = async () => {
|
|
|
2474
2470
|
fetchPolicy: "cache-and-network"
|
|
2475
2471
|
}
|
|
2476
2472
|
}
|
|
2477
|
-
}),
|
|
2473
|
+
}), _o = (t) => {
|
|
2478
2474
|
const { tanyaConfig: e } = t;
|
|
2479
2475
|
return /* @__PURE__ */ a(cr, { client: so, children: /* @__PURE__ */ a(br, { children: /* @__PURE__ */ a(Er, { tanyaConfig: e }) }) });
|
|
2480
2476
|
};
|
|
2481
2477
|
export {
|
|
2482
|
-
|
|
2478
|
+
_o as TanyaChatbot,
|
|
2483
2479
|
yo as TanyaChatbotProvider
|
|
2484
2480
|
};
|
|
2485
2481
|
//# sourceMappingURL=tanya-chatbot.es.js.map
|