@haus-storefront-react/vendure-plugin-configs 0.0.18 → 0.0.20
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/CHANGELOG.md +24 -0
- package/badge.js +1 -1
- package/badge.mjs +1 -1
- package/campaign.js +1 -1
- package/campaign.mjs +1 -1
- package/{index-DZ5mwdPZ.mjs → index-DlwdCtNm.mjs} +13 -13
- package/{index-BKGQQxdW.js → index-dZ1ztwCK.js} +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
## 0.0.19 (2025-08-21)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- enhance form handling and component props across various modules ([21edaa1](https://github.com/WeAreHausTech/haus-storefront-components/commit/21edaa1))
|
|
6
|
+
|
|
7
|
+
### 🧱 Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated core to 0.0.19
|
|
10
|
+
- Updated common/utils to 0.0.19
|
|
11
|
+
- Updated shared/types to 0.0.19
|
|
12
|
+
|
|
13
|
+
### ❤️ Thank You
|
|
14
|
+
|
|
15
|
+
- Mathias Saxenstrand
|
|
16
|
+
|
|
17
|
+
## 0.0.18 (2025-08-21)
|
|
18
|
+
|
|
19
|
+
### 🧱 Updated Dependencies
|
|
20
|
+
|
|
21
|
+
- Updated core to 0.0.18
|
|
22
|
+
- Updated common/utils to 0.0.18
|
|
23
|
+
- Updated shared/types to 0.0.18
|
|
24
|
+
|
|
1
25
|
## 0.0.17 (2025-08-21)
|
|
2
26
|
|
|
3
27
|
### 🚀 Features
|
package/badge.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Me=require("./index-CATkY-bf.js"),A=require("./index-BKGQQxdW.js"),B=require("react"),Ye=require("react-i18next"),Ze=require("i18next"),Be=require("@tanstack/react-query"),oe=require("react-native");function fn(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const E=fn(B),U=new Me.VendurePluginConfig({name:"badges",enableFeatures:{showBadges:({badges:t=[],parentComponent:e})=>{const r=e?U.getSettings().availablePositions[e]:U.getSettings().defaultPositions;return{badges:Me.lodashExports.filter(t,i=>r?r.includes(i.position):!0),availablePositions:r}}},queryUpdates:{},settings:{defaultPositions:["top-left","top-right","bottom-left","bottom-right"],availablePositions:{productListItem:["top-left","top-right","bottom-left","bottom-right"],productDetail:["top-left","top-right","bottom-left","bottom-right"],imageCarousel:["top-left","top-right","bottom-left","bottom-right"]}}});U.setQueryUpdates({product:{fields:[{badges:["id","position","assetId",{asset:["id","name","preview","source"]},{collection:["id","name"]}]}]},search:{fields:[{items:[{badges:["id","position","assetId",{asset:["id","name","preview","source"]},{collection:["id","name"]}]}]}]},products:{fields:[{items:[{badges:["id","position","assetId",{asset:["id","name","preview","source"]},{collection:["id","name"]}]}]}]},briefProducts:{fields:[{items:[{badges:["id","position","assetId",{asset:["id","name","preview","source"]},{collection:["id","name"]}]}]}]}});U.setRequests({getBadges:async()=>U.getSdk().createRequest({operation:"badges",fields:["totalItems",{items:["id","createdAt","updatedAt","collectionId","position","assetId",{asset:["id","name","preview","source"]},{collection:["id","name"]}]}]},{options:{take:100}},!1).then(t=>t.data).catch(t=>({message:t.message,errorCode:t.code||"unknown"}))});function dn(t){const e=[];function r(i,o){const s=E.createContext(o),a=e.length;e.push(s);const u=l=>{const d=A.compilerRuntimeExports.c(8);let m,y,p;d[0]!==l?({scope:p,children:m,...y}=l,d[0]=l,d[1]=m,d[2]=y,d[3]=p):(m=d[1],y=d[2],p=d[3]);const b=p?.[t]?.[a]||s;let h;h=y;const v=h;let w;return d[4]!==b.Provider||d[5]!==m||d[6]!==v?(w=A.jsxRuntimeExports.jsx(b.Provider,{value:v,children:m}),d[4]=b.Provider,d[5]=m,d[6]=v,d[7]=w):w=d[7],w};u.displayName=i+"Provider";function c(l,d){const m=d?.[t]?.[a]||s,y=E.useContext(m);if(y)return y;if(o!==void 0)return o;throw new Error(`\`${l}\` must be used within \`${i}\``)}return[u,c]}function n(){const i=e.map(o=>E.createContext(o));return function(s){const a=s?.[t]||i;return E.useMemo(()=>({[`__scope${t}`]:{...s,[t]:a}}),[s,a])}}return n.scopeName=t,[r,n]}const pn=Symbol("radix.slottable");function mn(...t){return e=>t.forEach(r=>{typeof r=="function"?r(e):r!=null&&(r.current=e)})}function hn(t,e){const r={...e};for(const n in e){const i=t[n],o=e[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...a)=>{const u=o(...a);return i(...a),u}:i&&(r[n]=i):n==="style"?r[n]=yn(i,o):n==="className"&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...t,...r}}function yn(t,e){return typeof t=="function"&&typeof e=="function"?r=>oe.StyleSheet.flatten([t(r),e(r)]):typeof t=="function"?r=>e?oe.StyleSheet.flatten([t(r),e]):t(r):typeof e=="function"?r=>t?oe.StyleSheet.flatten([t,e(r)]):e(r):oe.StyleSheet.flatten([t,e].filter(Boolean))}function bn(t){return E.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===pn}function gn(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}function vn(t,e){const r=E.forwardRef((n,i)=>{const{children:o,...s}=n;if(E.isValidElement(o)){const a=gn(o),u=hn(s,o.props);return o.type!==E.Fragment&&(u.ref=i?mn(i,a):a),E.cloneElement(o,u)}return E.Children.count(o)>1?E.Children.only(null):null});return r.displayName=`${t}.SlotClone`,r}function ge(t,e=!1,r="div"){if(!e)return A.getPlatformPrimitive(r,t);const n=vn("Slot"),i=E.forwardRef((o,s)=>{const a=A.compilerRuntimeExports.c(15);let u,c;a[0]!==o?({children:u,...c}=o,a[0]=o,a[1]=u,a[2]=c):(u=a[1],c=a[2]);let l;if(a[3]!==u||a[4]!==s||a[5]!==c){l=Symbol.for("react.early_return_sentinel");e:{const m=E.Children.toArray(u),y=m.find(bn);if(y){const p=y.props.children,b=m.map(w=>w===y?E.Children.count(p)>1?E.Children.only(null):E.isValidElement(p)?p.props.children:null:w),h=E.isValidElement(p)?E.cloneElement(p,void 0,b):null;let v;a[7]!==s||a[8]!==c||a[9]!==h?(v=A.jsxRuntimeExports.jsx(n,{...c,ref:s,children:h}),a[7]=s,a[8]=c,a[9]=h,a[10]=v):v=a[10],l=v;break e}}a[3]=u,a[4]=s,a[5]=c,a[6]=l}else l=a[6];if(l!==Symbol.for("react.early_return_sentinel"))return l;let d;return a[11]!==u||a[12]!==s||a[13]!==c?(d=A.jsxRuntimeExports.jsx(n,{...c,ref:s,children:u}),a[11]=u,a[12]=s,a[13]=c,a[14]=d):d=a[14],d});return i.displayName="Slot",i}let W;try{W=require("@react-native-async-storage/async-storage").default}catch{W=null}const Ne=typeof window<"u"&&typeof window.localStorage<"u",ke=!!W,Ce={},se={},G={getItem:async t=>ke?W.getItem(t):Ne?new Promise(e=>{Promise.resolve().then(()=>{const r=window.localStorage.getItem(t),n=se[t];r!==n&&(se[t]=r||""),e(r)})}):Ce[t]||null,setItem:async(t,e)=>{if(ke)return W.setItem(t,e);if(Ne)return new Promise((r,n)=>{Promise.resolve().then(()=>{try{window.localStorage.setItem(t,e);const i=window.localStorage.getItem(t);i===e?(se[t]=e,r()):n(new Error(`Failed to set localStorage item: expected "${e}", got "${i}"`))}catch(i){n(i)}})});Ce[t]=e},removeItem:async t=>{if(ke)return W.removeItem(t);if(Ne)return new Promise((e,r)=>{Promise.resolve().then(()=>{try{window.localStorage.removeItem(t);const n=window.localStorage.getItem(t);n===null?(delete se[t],e()):r(new Error(`Failed to remove localStorage item: key "${t}" still exists with value "${n}"`))}catch(n){r(n)}})});delete Ce[t]}};let qe;typeof window<"u"?(window.__STORE_I18N_INSTANCE__||(window.__STORE_I18N_INSTANCE__=Ze.createInstance()),window.__STORE_I18N_INSTANCE__.use(Ye.initReactI18next),qe=window.__STORE_I18N_INSTANCE__):(qe=Ze.createInstance(),qe.use(Ye.initReactI18next));function Ue(t){"@babel/helpers - typeof";return Ue=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ue(t)}function kt(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":Ue(XMLHttpRequest))==="object"}function wn(t){return!!t&&typeof t.then=="function"}function Sn(t){return wn(t)?t:Promise.resolve(t)}function et(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function tt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?et(Object(r),!0).forEach(function(n){On(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):et(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function On(t,e,r){return(e=En(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function En(t){var e=An(t,"string");return I(e)=="symbol"?e:e+""}function An(t,e){if(I(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(I(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function I(t){"@babel/helpers - typeof";return I=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(t)}var D=typeof fetch=="function"?fetch:void 0;typeof global<"u"&&global.fetch?D=global.fetch:typeof window<"u"&&window.fetch&&(D=window.fetch);var Y;kt()&&(typeof global<"u"&&global.XMLHttpRequest?Y=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Y=window.XMLHttpRequest));var he;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?he=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(he=window.ActiveXObject));typeof D!="function"&&(D=void 0);if(!D&&!Y&&!he)try{Promise.resolve().then(()=>require("./browser-ponyfill-ByZyuJ42.js")).then(t=>t.browserPonyfill).then(function(t){D=t.default}).catch(function(){})}catch{}var Ie=function(e,r){if(r&&I(r)==="object"){var n="";for(var i in r)n+="&"+encodeURIComponent(i)+"="+encodeURIComponent(r[i]);if(!n)return e;e=e+(e.indexOf("?")!==-1?"&":"?")+n.slice(1)}return e},nt=function(e,r,n,i){var o=function(u){if(!u.ok)return n(u.statusText||"Error",{status:u.status});u.text().then(function(c){n(null,{status:u.status,data:c})}).catch(n)};if(i){var s=i(e,r);if(s instanceof Promise){s.then(o).catch(n);return}}typeof fetch=="function"?fetch(e,r).then(o).catch(n):D(e,r).then(o).catch(n)},rt=!1,Tn=function(e,r,n,i){e.queryStringParams&&(r=Ie(r,e.queryStringParams));var o=tt({},typeof e.customHeaders=="function"?e.customHeaders():e.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),n&&(o["Content-Type"]="application/json");var s=typeof e.requestOptions=="function"?e.requestOptions(n):e.requestOptions,a=tt({method:n?"POST":"GET",body:n?e.stringify(n):void 0,headers:o},rt?{}:s),u=typeof e.alternateFetch=="function"&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{nt(r,a,i,u)}catch(c){if(!s||Object.keys(s).length===0||!c.message||c.message.indexOf("not implemented")<0)return i(c);try{Object.keys(s).forEach(function(l){delete a[l]}),nt(r,a,i,u),rt=!0}catch(l){i(l)}}},Rn=function(e,r,n,i){n&&I(n)==="object"&&(n=Ie("",n).slice(1)),e.queryStringParams&&(r=Ie(r,e.queryStringParams));try{var o=Y?new Y:new he("MSXML2.XMLHTTP.3.0");o.open(n?"POST":"GET",r,1),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!e.withCredentials,n&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var s=e.customHeaders;if(s=typeof s=="function"?s():s,s)for(var a in s)o.setRequestHeader(a,s[a]);o.onreadystatechange=function(){o.readyState>3&&i(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(n)}catch(u){console&&console.log(u)}},_n=function(e,r,n,i){if(typeof n=="function"&&(i=n,n=void 0),i=i||function(){},D&&r.indexOf("file:")!==0)return Tn(e,r,n,i);if(kt()||typeof ActiveXObject=="function")return Rn(e,r,n,i);i(new Error("No fetch and no xhr implementation found!"))};function X(t){"@babel/helpers - typeof";return X=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},X(t)}function it(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function je(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?it(Object(r),!0).forEach(function(n){Ct(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):it(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Pn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Nn(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,qt(n.key),n)}}function kn(t,e,r){return e&&Nn(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ct(t,e,r){return(e=qt(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qt(t){var e=Cn(t,"string");return X(e)=="symbol"?e:e+""}function Cn(t,e){if(X(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(X(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var qn=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(r){return JSON.parse(r)},stringify:JSON.stringify,parsePayload:function(r,n,i){return Ct({},n,i||"")},parseLoadPayload:function(r,n){},request:_n,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},jn=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Pn(this,t),this.services=e,this.options=r,this.allOptions=n,this.type="backend",this.init(e,r,n)}return kn(t,[{key:"init",value:function(r){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=r,this.options=je(je(je({},qn()),this.options||{}),i),this.allOptions=o,this.services&&this.options.reloadInterval){var s=setInterval(function(){return n.reload()},this.options.reloadInterval);X(s)==="object"&&typeof s.unref=="function"&&s.unref()}}},{key:"readMulti",value:function(r,n,i){this._readAny(r,r,n,n,i)}},{key:"read",value:function(r,n,i){this._readAny([r],r,[n],n,i)}},{key:"_readAny",value:function(r,n,i,o,s){var a=this,u=this.options.loadPath;typeof this.options.loadPath=="function"&&(u=this.options.loadPath(r,i)),u=Sn(u),u.then(function(c){if(!c)return s(null,{});var l=a.services.interpolator.interpolate(c,{lng:r.join("+"),ns:i.join("+")});a.loadUrl(l,s,n,o)})}},{key:"loadUrl",value:function(r,n,i,o){var s=this,a=typeof i=="string"?[i]:i,u=typeof o=="string"?[o]:o,c=this.options.parseLoadPayload(a,u);this.options.request(this.options,r,c,function(l,d){if(d&&(d.status>=500&&d.status<600||!d.status))return n("failed loading "+r+"; status code: "+d.status,!0);if(d&&d.status>=400&&d.status<500)return n("failed loading "+r+"; status code: "+d.status,!1);if(!d&&l&&l.message){var m=l.message.toLowerCase(),y=["failed","fetch","network","load"].find(function(h){return m.indexOf(h)>-1});if(y)return n("failed loading "+r+": "+l.message,!0)}if(l)return n(l,!1);var p,b;try{typeof d.data=="string"?p=s.options.parse(d.data,i,o):p=d.data}catch{b="failed parsing "+r+" to json"}if(b)return n(b,!1);n(null,p)})}},{key:"create",value:function(r,n,i,o,s){var a=this;if(this.options.addPath){typeof r=="string"&&(r=[r]);var u=this.options.parsePayload(n,i,o),c=0,l=[],d=[];r.forEach(function(m){var y=a.options.addPath;typeof a.options.addPath=="function"&&(y=a.options.addPath(m,n));var p=a.services.interpolator.interpolate(y,{lng:m,ns:n});a.options.request(a.options,p,u,function(b,h){c+=1,l.push(b),d.push(h),c===r.length&&typeof s=="function"&&s(l,d)})})}}},{key:"reload",value:function(){var r=this,n=this.services,i=n.backendConnector,o=n.languageUtils,s=n.logger,a=i.language;if(!(a&&a.toLowerCase()==="cimode")){var u=[],c=function(d){var m=o.toResolveHierarchy(d);m.forEach(function(y){u.indexOf(y)<0&&u.push(y)})};c(a),this.allOptions.preload&&this.allOptions.preload.forEach(function(l){return c(l)}),u.forEach(function(l){r.allOptions.ns.forEach(function(d){i.read(l,d,"read",null,null,function(m,y){m&&s.warn("loading namespace ".concat(d," for language ").concat(l," failed"),m),!m&&y&&s.log("loaded namespace ".concat(d," for language ").concat(l),y),i.loaded("".concat(l,"|").concat(d),m,y)})})})}}}])}();jn.type="backend";let Le;typeof window<"u"?(window.__STORE_SDK_CONTEXT__||(window.__STORE_SDK_CONTEXT__=B.createContext(void 0)),Le=window.__STORE_SDK_CONTEXT__):Le=B.createContext(void 0);const Dn=()=>{const t=B.useContext(Le);return t||console.error("You must wrap your component in a <DataProvider>"),t?.sdkType==="dummy"||t?.sdkType==="vendure",t};new Be.QueryClient;function jt(t,e){return function(){return t.apply(e,arguments)}}const{toString:xn}=Object.prototype,{getPrototypeOf:Je}=Object,{iterator:ve,toStringTag:Dt}=Symbol,we=(t=>e=>{const r=xn.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),k=t=>(t=t.toLowerCase(),e=>we(e)===t),Se=t=>e=>typeof e===t,{isArray:z}=Array,Z=Se("undefined");function Fn(t){return t!==null&&!Z(t)&&t.constructor!==null&&!Z(t.constructor)&&_(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const xt=k("ArrayBuffer");function Mn(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&xt(t.buffer),e}const Bn=Se("string"),_=Se("function"),Ft=Se("number"),Oe=t=>t!==null&&typeof t=="object",Un=t=>t===!0||t===!1,de=t=>{if(we(t)!=="object")return!1;const e=Je(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Dt in t)&&!(ve in t)},In=k("Date"),Ln=k("File"),$n=k("Blob"),Hn=k("FileList"),Vn=t=>Oe(t)&&_(t.pipe),Wn=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||_(t.append)&&((e=we(t))==="formdata"||e==="object"&&_(t.toString)&&t.toString()==="[object FormData]"))},Xn=k("URLSearchParams"),[zn,Jn,Qn,Kn]=["ReadableStream","Request","Response","Headers"].map(k),Gn=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ee(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,i;if(typeof t!="object"&&(t=[t]),z(t))for(n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else{const o=r?Object.getOwnPropertyNames(t):Object.keys(t),s=o.length;let a;for(n=0;n<s;n++)a=o[n],e.call(null,t[a],a,t)}}function Mt(t,e){e=e.toLowerCase();const r=Object.keys(t);let n=r.length,i;for(;n-- >0;)if(i=r[n],e===i.toLowerCase())return i;return null}const F=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Bt=t=>!Z(t)&&t!==F;function $e(){const{caseless:t}=Bt(this)&&this||{},e={},r=(n,i)=>{const o=t&&Mt(e,i)||i;de(e[o])&&de(n)?e[o]=$e(e[o],n):de(n)?e[o]=$e({},n):z(n)?e[o]=n.slice():e[o]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&ee(arguments[n],r);return e}const Yn=(t,e,r,{allOwnKeys:n}={})=>(ee(e,(i,o)=>{r&&_(i)?t[o]=jt(i,r):t[o]=i},{allOwnKeys:n}),t),Zn=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),er=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},tr=(t,e,r,n)=>{let i,o,s;const a={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),o=i.length;o-- >0;)s=i[o],(!n||n(s,t,e))&&!a[s]&&(e[s]=t[s],a[s]=!0);t=r!==!1&&Je(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},nr=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},rr=t=>{if(!t)return null;if(z(t))return t;let e=t.length;if(!Ft(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},ir=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Je(Uint8Array)),or=(t,e)=>{const n=(t&&t[ve]).call(t);let i;for(;(i=n.next())&&!i.done;){const o=i.value;e.call(t,o[0],o[1])}},sr=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},ar=k("HTMLFormElement"),ur=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),ot=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),cr=k("RegExp"),Ut=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};ee(r,(i,o)=>{let s;(s=e(i,o,t))!==!1&&(n[o]=s||i)}),Object.defineProperties(t,n)},lr=t=>{Ut(t,(e,r)=>{if(_(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(_(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},fr=(t,e)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return z(t)?n(t):n(String(t).split(e)),r},dr=()=>{},pr=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function mr(t){return!!(t&&_(t.append)&&t[Dt]==="FormData"&&t[ve])}const hr=t=>{const e=new Array(10),r=(n,i)=>{if(Oe(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[i]=n;const o=z(n)?[]:{};return ee(n,(s,a)=>{const u=r(s,i+1);!Z(u)&&(o[a]=u)}),e[i]=void 0,o}}return n};return r(t,0)},yr=k("AsyncFunction"),br=t=>t&&(Oe(t)||_(t))&&_(t.then)&&_(t.catch),It=((t,e)=>t?setImmediate:e?((r,n)=>(F.addEventListener("message",({source:i,data:o})=>{i===F&&o===r&&n.length&&n.shift()()},!1),i=>{n.push(i),F.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",_(F.postMessage)),gr=typeof queueMicrotask<"u"?queueMicrotask.bind(F):typeof process<"u"&&process.nextTick||It,vr=t=>t!=null&&_(t[ve]),f={isArray:z,isArrayBuffer:xt,isBuffer:Fn,isFormData:Wn,isArrayBufferView:Mn,isString:Bn,isNumber:Ft,isBoolean:Un,isObject:Oe,isPlainObject:de,isReadableStream:zn,isRequest:Jn,isResponse:Qn,isHeaders:Kn,isUndefined:Z,isDate:In,isFile:Ln,isBlob:$n,isRegExp:cr,isFunction:_,isStream:Vn,isURLSearchParams:Xn,isTypedArray:ir,isFileList:Hn,forEach:ee,merge:$e,extend:Yn,trim:Gn,stripBOM:Zn,inherits:er,toFlatObject:tr,kindOf:we,kindOfTest:k,endsWith:nr,toArray:rr,forEachEntry:or,matchAll:sr,isHTMLForm:ar,hasOwnProperty:ot,hasOwnProp:ot,reduceDescriptors:Ut,freezeMethods:lr,toObjectSet:fr,toCamelCase:ur,noop:dr,toFiniteNumber:pr,findKey:Mt,global:F,isContextDefined:Bt,isSpecCompliantForm:mr,toJSONObject:hr,isAsyncFn:yr,isThenable:br,setImmediate:It,asap:gr,isIterable:vr};function g(t,e,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}f.inherits(g,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:f.toJSONObject(this.config),code:this.code,status:this.status}}});const Lt=g.prototype,$t={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{$t[t]={value:t}});Object.defineProperties(g,$t);Object.defineProperty(Lt,"isAxiosError",{value:!0});g.from=(t,e,r,n,i,o)=>{const s=Object.create(Lt);return f.toFlatObject(t,s,function(u){return u!==Error.prototype},a=>a!=="isAxiosError"),g.call(s,t.message,e,r,n,i),s.cause=t,s.name=t.name,o&&Object.assign(s,o),s};const wr=null;function He(t){return f.isPlainObject(t)||f.isArray(t)}function Ht(t){return f.endsWith(t,"[]")?t.slice(0,-2):t}function st(t,e,r){return t?t.concat(e).map(function(i,o){return i=Ht(i),!r&&o?"["+i+"]":i}).join(r?".":""):e}function Sr(t){return f.isArray(t)&&!t.some(He)}const Or=f.toFlatObject(f,{},null,function(e){return/^is[A-Z]/.test(e)});function Ee(t,e,r){if(!f.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=f.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,h){return!f.isUndefined(h[b])});const n=r.metaTokens,i=r.visitor||l,o=r.dots,s=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&f.isSpecCompliantForm(e);if(!f.isFunction(i))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(f.isDate(p))return p.toISOString();if(f.isBoolean(p))return p.toString();if(!u&&f.isBlob(p))throw new g("Blob is not supported. Use a Buffer instead.");return f.isArrayBuffer(p)||f.isTypedArray(p)?u&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function l(p,b,h){let v=p;if(p&&!h&&typeof p=="object"){if(f.endsWith(b,"{}"))b=n?b:b.slice(0,-2),p=JSON.stringify(p);else if(f.isArray(p)&&Sr(p)||(f.isFileList(p)||f.endsWith(b,"[]"))&&(v=f.toArray(p)))return b=Ht(b),v.forEach(function(O,q){!(f.isUndefined(O)||O===null)&&e.append(s===!0?st([b],q,o):s===null?b:b+"[]",c(O))}),!1}return He(p)?!0:(e.append(st(h,b,o),c(p)),!1)}const d=[],m=Object.assign(Or,{defaultVisitor:l,convertValue:c,isVisitable:He});function y(p,b){if(!f.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+b.join("."));d.push(p),f.forEach(p,function(v,w){(!(f.isUndefined(v)||v===null)&&i.call(e,v,f.isString(w)?w.trim():w,b,m))===!0&&y(v,b?b.concat(w):[w])}),d.pop()}}if(!f.isObject(t))throw new TypeError("data must be an object");return y(t),e}function at(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Qe(t,e){this._pairs=[],t&&Ee(t,this,e)}const Vt=Qe.prototype;Vt.append=function(e,r){this._pairs.push([e,r])};Vt.toString=function(e){const r=e?function(n){return e.call(this,n,at)}:at;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function Er(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Wt(t,e,r){if(!e)return t;const n=r&&r.encode||Er;f.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let o;if(i?o=i(e,r):o=f.isURLSearchParams(e)?e.toString():new Qe(e,r).toString(n),o){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class ut{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){f.forEach(this.handlers,function(n){n!==null&&e(n)})}}const Xt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ar=typeof URLSearchParams<"u"?URLSearchParams:Qe,Tr=typeof FormData<"u"?FormData:null,Rr=typeof Blob<"u"?Blob:null,_r={isBrowser:!0,classes:{URLSearchParams:Ar,FormData:Tr,Blob:Rr},protocols:["http","https","file","blob","url","data"]},Ke=typeof window<"u"&&typeof document<"u",Ve=typeof navigator=="object"&&navigator||void 0,Pr=Ke&&(!Ve||["ReactNative","NativeScript","NS"].indexOf(Ve.product)<0),Nr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",kr=Ke&&window.location.href||"http://localhost",Cr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ke,hasStandardBrowserEnv:Pr,hasStandardBrowserWebWorkerEnv:Nr,navigator:Ve,origin:kr},Symbol.toStringTag,{value:"Module"})),T={...Cr,..._r};function qr(t,e){return Ee(t,new T.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,o){return T.isNode&&f.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function jr(t){return f.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Dr(t){const e={},r=Object.keys(t);let n;const i=r.length;let o;for(n=0;n<i;n++)o=r[n],e[o]=t[o];return e}function zt(t){function e(r,n,i,o){let s=r[o++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),u=o>=r.length;return s=!s&&f.isArray(i)?i.length:s,u?(f.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!a):((!i[s]||!f.isObject(i[s]))&&(i[s]=[]),e(r,n,i[s],o)&&f.isArray(i[s])&&(i[s]=Dr(i[s])),!a)}if(f.isFormData(t)&&f.isFunction(t.entries)){const r={};return f.forEachEntry(t,(n,i)=>{e(jr(n),i,r,0)}),r}return null}function xr(t,e,r){if(f.isString(t))try{return(e||JSON.parse)(t),f.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const te={transitional:Xt,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,o=f.isObject(e);if(o&&f.isHTMLForm(e)&&(e=new FormData(e)),f.isFormData(e))return i?JSON.stringify(zt(e)):e;if(f.isArrayBuffer(e)||f.isBuffer(e)||f.isStream(e)||f.isFile(e)||f.isBlob(e)||f.isReadableStream(e))return e;if(f.isArrayBufferView(e))return e.buffer;if(f.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return qr(e,this.formSerializer).toString();if((a=f.isFileList(e))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Ee(a?{"files[]":e}:e,u&&new u,this.formSerializer)}}return o||i?(r.setContentType("application/json",!1),xr(e)):e}],transformResponse:[function(e){const r=this.transitional||te.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(f.isResponse(e)||f.isReadableStream(e))return e;if(e&&f.isString(e)&&(n&&!this.responseType||i)){const s=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(a){if(s)throw a.name==="SyntaxError"?g.from(a,g.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:T.classes.FormData,Blob:T.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};f.forEach(["delete","get","head","post","put","patch"],t=>{te.headers[t]={}});const Fr=f.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Mr=t=>{const e={};let r,n,i;return t&&t.split(`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Me=require("./index-CATkY-bf.js"),A=require("./index-dZ1ztwCK.js"),B=require("react"),Ye=require("react-i18next"),Ze=require("i18next"),Be=require("@tanstack/react-query"),oe=require("react-native");function fn(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const E=fn(B),U=new Me.VendurePluginConfig({name:"badges",enableFeatures:{showBadges:({badges:t=[],parentComponent:e})=>{const r=e?U.getSettings().availablePositions[e]:U.getSettings().defaultPositions;return{badges:Me.lodashExports.filter(t,i=>r?r.includes(i.position):!0),availablePositions:r}}},queryUpdates:{},settings:{defaultPositions:["top-left","top-right","bottom-left","bottom-right"],availablePositions:{productListItem:["top-left","top-right","bottom-left","bottom-right"],productDetail:["top-left","top-right","bottom-left","bottom-right"],imageCarousel:["top-left","top-right","bottom-left","bottom-right"]}}});U.setQueryUpdates({product:{fields:[{badges:["id","position","assetId",{asset:["id","name","preview","source"]},{collection:["id","name"]}]}]},search:{fields:[{items:[{badges:["id","position","assetId",{asset:["id","name","preview","source"]},{collection:["id","name"]}]}]}]},products:{fields:[{items:[{badges:["id","position","assetId",{asset:["id","name","preview","source"]},{collection:["id","name"]}]}]}]},briefProducts:{fields:[{items:[{badges:["id","position","assetId",{asset:["id","name","preview","source"]},{collection:["id","name"]}]}]}]}});U.setRequests({getBadges:async()=>U.getSdk().createRequest({operation:"badges",fields:["totalItems",{items:["id","createdAt","updatedAt","collectionId","position","assetId",{asset:["id","name","preview","source"]},{collection:["id","name"]}]}]},{options:{take:100}},!1).then(t=>t.data).catch(t=>({message:t.message,errorCode:t.code||"unknown"}))});function dn(t){const e=[];function r(i,o){const s=E.createContext(o),a=e.length;e.push(s);const u=l=>{const d=A.compilerRuntimeExports.c(8);let m,y,p;d[0]!==l?({scope:p,children:m,...y}=l,d[0]=l,d[1]=m,d[2]=y,d[3]=p):(m=d[1],y=d[2],p=d[3]);const b=p?.[t]?.[a]||s;let h;h=y;const v=h;let w;return d[4]!==b.Provider||d[5]!==m||d[6]!==v?(w=A.jsxRuntimeExports.jsx(b.Provider,{value:v,children:m}),d[4]=b.Provider,d[5]=m,d[6]=v,d[7]=w):w=d[7],w};u.displayName=i+"Provider";function c(l,d){const m=d?.[t]?.[a]||s,y=E.useContext(m);if(y)return y;if(o!==void 0)return o;throw new Error(`\`${l}\` must be used within \`${i}\``)}return[u,c]}function n(){const i=e.map(o=>E.createContext(o));return function(s){const a=s?.[t]||i;return E.useMemo(()=>({[`__scope${t}`]:{...s,[t]:a}}),[s,a])}}return n.scopeName=t,[r,n]}const pn=Symbol("radix.slottable");function mn(...t){return e=>t.forEach(r=>{typeof r=="function"?r(e):r!=null&&(r.current=e)})}function hn(t,e){const r={...e};for(const n in e){const i=t[n],o=e[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...a)=>{const u=o(...a);return i(...a),u}:i&&(r[n]=i):n==="style"?r[n]=yn(i,o):n==="className"&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...t,...r}}function yn(t,e){return typeof t=="function"&&typeof e=="function"?r=>oe.StyleSheet.flatten([t(r),e(r)]):typeof t=="function"?r=>e?oe.StyleSheet.flatten([t(r),e]):t(r):typeof e=="function"?r=>t?oe.StyleSheet.flatten([t,e(r)]):e(r):oe.StyleSheet.flatten([t,e].filter(Boolean))}function bn(t){return E.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===pn}function gn(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}function vn(t,e){const r=E.forwardRef((n,i)=>{const{children:o,...s}=n;if(E.isValidElement(o)){const a=gn(o),u=hn(s,o.props);return o.type!==E.Fragment&&(u.ref=i?mn(i,a):a),E.cloneElement(o,u)}return E.Children.count(o)>1?E.Children.only(null):null});return r.displayName=`${t}.SlotClone`,r}function ge(t,e=!1,r="div"){if(!e)return A.getPlatformPrimitive(r,t);const n=vn("Slot"),i=E.forwardRef((o,s)=>{const a=A.compilerRuntimeExports.c(15);let u,c;a[0]!==o?({children:u,...c}=o,a[0]=o,a[1]=u,a[2]=c):(u=a[1],c=a[2]);let l;if(a[3]!==u||a[4]!==s||a[5]!==c){l=Symbol.for("react.early_return_sentinel");e:{const m=E.Children.toArray(u),y=m.find(bn);if(y){const p=y.props.children,b=m.map(w=>w===y?E.Children.count(p)>1?E.Children.only(null):E.isValidElement(p)?p.props.children:null:w),h=E.isValidElement(p)?E.cloneElement(p,void 0,b):null;let v;a[7]!==s||a[8]!==c||a[9]!==h?(v=A.jsxRuntimeExports.jsx(n,{...c,ref:s,children:h}),a[7]=s,a[8]=c,a[9]=h,a[10]=v):v=a[10],l=v;break e}}a[3]=u,a[4]=s,a[5]=c,a[6]=l}else l=a[6];if(l!==Symbol.for("react.early_return_sentinel"))return l;let d;return a[11]!==u||a[12]!==s||a[13]!==c?(d=A.jsxRuntimeExports.jsx(n,{...c,ref:s,children:u}),a[11]=u,a[12]=s,a[13]=c,a[14]=d):d=a[14],d});return i.displayName="Slot",i}let W;try{W=require("@react-native-async-storage/async-storage").default}catch{W=null}const Ne=typeof window<"u"&&typeof window.localStorage<"u",ke=!!W,Ce={},se={},G={getItem:async t=>ke?W.getItem(t):Ne?new Promise(e=>{Promise.resolve().then(()=>{const r=window.localStorage.getItem(t),n=se[t];r!==n&&(se[t]=r||""),e(r)})}):Ce[t]||null,setItem:async(t,e)=>{if(ke)return W.setItem(t,e);if(Ne)return new Promise((r,n)=>{Promise.resolve().then(()=>{try{window.localStorage.setItem(t,e);const i=window.localStorage.getItem(t);i===e?(se[t]=e,r()):n(new Error(`Failed to set localStorage item: expected "${e}", got "${i}"`))}catch(i){n(i)}})});Ce[t]=e},removeItem:async t=>{if(ke)return W.removeItem(t);if(Ne)return new Promise((e,r)=>{Promise.resolve().then(()=>{try{window.localStorage.removeItem(t);const n=window.localStorage.getItem(t);n===null?(delete se[t],e()):r(new Error(`Failed to remove localStorage item: key "${t}" still exists with value "${n}"`))}catch(n){r(n)}})});delete Ce[t]}};let qe;typeof window<"u"?(window.__STORE_I18N_INSTANCE__||(window.__STORE_I18N_INSTANCE__=Ze.createInstance()),window.__STORE_I18N_INSTANCE__.use(Ye.initReactI18next),qe=window.__STORE_I18N_INSTANCE__):(qe=Ze.createInstance(),qe.use(Ye.initReactI18next));function Ue(t){"@babel/helpers - typeof";return Ue=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ue(t)}function kt(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":Ue(XMLHttpRequest))==="object"}function wn(t){return!!t&&typeof t.then=="function"}function Sn(t){return wn(t)?t:Promise.resolve(t)}function et(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function tt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?et(Object(r),!0).forEach(function(n){On(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):et(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function On(t,e,r){return(e=En(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function En(t){var e=An(t,"string");return I(e)=="symbol"?e:e+""}function An(t,e){if(I(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(I(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function I(t){"@babel/helpers - typeof";return I=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(t)}var D=typeof fetch=="function"?fetch:void 0;typeof global<"u"&&global.fetch?D=global.fetch:typeof window<"u"&&window.fetch&&(D=window.fetch);var Y;kt()&&(typeof global<"u"&&global.XMLHttpRequest?Y=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Y=window.XMLHttpRequest));var he;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?he=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(he=window.ActiveXObject));typeof D!="function"&&(D=void 0);if(!D&&!Y&&!he)try{Promise.resolve().then(()=>require("./browser-ponyfill-ByZyuJ42.js")).then(t=>t.browserPonyfill).then(function(t){D=t.default}).catch(function(){})}catch{}var Ie=function(e,r){if(r&&I(r)==="object"){var n="";for(var i in r)n+="&"+encodeURIComponent(i)+"="+encodeURIComponent(r[i]);if(!n)return e;e=e+(e.indexOf("?")!==-1?"&":"?")+n.slice(1)}return e},nt=function(e,r,n,i){var o=function(u){if(!u.ok)return n(u.statusText||"Error",{status:u.status});u.text().then(function(c){n(null,{status:u.status,data:c})}).catch(n)};if(i){var s=i(e,r);if(s instanceof Promise){s.then(o).catch(n);return}}typeof fetch=="function"?fetch(e,r).then(o).catch(n):D(e,r).then(o).catch(n)},rt=!1,Tn=function(e,r,n,i){e.queryStringParams&&(r=Ie(r,e.queryStringParams));var o=tt({},typeof e.customHeaders=="function"?e.customHeaders():e.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),n&&(o["Content-Type"]="application/json");var s=typeof e.requestOptions=="function"?e.requestOptions(n):e.requestOptions,a=tt({method:n?"POST":"GET",body:n?e.stringify(n):void 0,headers:o},rt?{}:s),u=typeof e.alternateFetch=="function"&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{nt(r,a,i,u)}catch(c){if(!s||Object.keys(s).length===0||!c.message||c.message.indexOf("not implemented")<0)return i(c);try{Object.keys(s).forEach(function(l){delete a[l]}),nt(r,a,i,u),rt=!0}catch(l){i(l)}}},Rn=function(e,r,n,i){n&&I(n)==="object"&&(n=Ie("",n).slice(1)),e.queryStringParams&&(r=Ie(r,e.queryStringParams));try{var o=Y?new Y:new he("MSXML2.XMLHTTP.3.0");o.open(n?"POST":"GET",r,1),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!e.withCredentials,n&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var s=e.customHeaders;if(s=typeof s=="function"?s():s,s)for(var a in s)o.setRequestHeader(a,s[a]);o.onreadystatechange=function(){o.readyState>3&&i(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(n)}catch(u){console&&console.log(u)}},_n=function(e,r,n,i){if(typeof n=="function"&&(i=n,n=void 0),i=i||function(){},D&&r.indexOf("file:")!==0)return Tn(e,r,n,i);if(kt()||typeof ActiveXObject=="function")return Rn(e,r,n,i);i(new Error("No fetch and no xhr implementation found!"))};function X(t){"@babel/helpers - typeof";return X=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},X(t)}function it(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function je(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?it(Object(r),!0).forEach(function(n){Ct(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):it(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Pn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Nn(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,qt(n.key),n)}}function kn(t,e,r){return e&&Nn(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ct(t,e,r){return(e=qt(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qt(t){var e=Cn(t,"string");return X(e)=="symbol"?e:e+""}function Cn(t,e){if(X(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(X(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var qn=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(r){return JSON.parse(r)},stringify:JSON.stringify,parsePayload:function(r,n,i){return Ct({},n,i||"")},parseLoadPayload:function(r,n){},request:_n,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},jn=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Pn(this,t),this.services=e,this.options=r,this.allOptions=n,this.type="backend",this.init(e,r,n)}return kn(t,[{key:"init",value:function(r){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=r,this.options=je(je(je({},qn()),this.options||{}),i),this.allOptions=o,this.services&&this.options.reloadInterval){var s=setInterval(function(){return n.reload()},this.options.reloadInterval);X(s)==="object"&&typeof s.unref=="function"&&s.unref()}}},{key:"readMulti",value:function(r,n,i){this._readAny(r,r,n,n,i)}},{key:"read",value:function(r,n,i){this._readAny([r],r,[n],n,i)}},{key:"_readAny",value:function(r,n,i,o,s){var a=this,u=this.options.loadPath;typeof this.options.loadPath=="function"&&(u=this.options.loadPath(r,i)),u=Sn(u),u.then(function(c){if(!c)return s(null,{});var l=a.services.interpolator.interpolate(c,{lng:r.join("+"),ns:i.join("+")});a.loadUrl(l,s,n,o)})}},{key:"loadUrl",value:function(r,n,i,o){var s=this,a=typeof i=="string"?[i]:i,u=typeof o=="string"?[o]:o,c=this.options.parseLoadPayload(a,u);this.options.request(this.options,r,c,function(l,d){if(d&&(d.status>=500&&d.status<600||!d.status))return n("failed loading "+r+"; status code: "+d.status,!0);if(d&&d.status>=400&&d.status<500)return n("failed loading "+r+"; status code: "+d.status,!1);if(!d&&l&&l.message){var m=l.message.toLowerCase(),y=["failed","fetch","network","load"].find(function(h){return m.indexOf(h)>-1});if(y)return n("failed loading "+r+": "+l.message,!0)}if(l)return n(l,!1);var p,b;try{typeof d.data=="string"?p=s.options.parse(d.data,i,o):p=d.data}catch{b="failed parsing "+r+" to json"}if(b)return n(b,!1);n(null,p)})}},{key:"create",value:function(r,n,i,o,s){var a=this;if(this.options.addPath){typeof r=="string"&&(r=[r]);var u=this.options.parsePayload(n,i,o),c=0,l=[],d=[];r.forEach(function(m){var y=a.options.addPath;typeof a.options.addPath=="function"&&(y=a.options.addPath(m,n));var p=a.services.interpolator.interpolate(y,{lng:m,ns:n});a.options.request(a.options,p,u,function(b,h){c+=1,l.push(b),d.push(h),c===r.length&&typeof s=="function"&&s(l,d)})})}}},{key:"reload",value:function(){var r=this,n=this.services,i=n.backendConnector,o=n.languageUtils,s=n.logger,a=i.language;if(!(a&&a.toLowerCase()==="cimode")){var u=[],c=function(d){var m=o.toResolveHierarchy(d);m.forEach(function(y){u.indexOf(y)<0&&u.push(y)})};c(a),this.allOptions.preload&&this.allOptions.preload.forEach(function(l){return c(l)}),u.forEach(function(l){r.allOptions.ns.forEach(function(d){i.read(l,d,"read",null,null,function(m,y){m&&s.warn("loading namespace ".concat(d," for language ").concat(l," failed"),m),!m&&y&&s.log("loaded namespace ".concat(d," for language ").concat(l),y),i.loaded("".concat(l,"|").concat(d),m,y)})})})}}}])}();jn.type="backend";let Le;typeof window<"u"?(window.__STORE_SDK_CONTEXT__||(window.__STORE_SDK_CONTEXT__=B.createContext(void 0)),Le=window.__STORE_SDK_CONTEXT__):Le=B.createContext(void 0);const Dn=()=>{const t=B.useContext(Le);return t||console.error("You must wrap your component in a <DataProvider>"),t?.sdkType==="dummy"||t?.sdkType==="vendure",t};new Be.QueryClient;function jt(t,e){return function(){return t.apply(e,arguments)}}const{toString:xn}=Object.prototype,{getPrototypeOf:Je}=Object,{iterator:ve,toStringTag:Dt}=Symbol,we=(t=>e=>{const r=xn.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),k=t=>(t=t.toLowerCase(),e=>we(e)===t),Se=t=>e=>typeof e===t,{isArray:z}=Array,Z=Se("undefined");function Fn(t){return t!==null&&!Z(t)&&t.constructor!==null&&!Z(t.constructor)&&_(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const xt=k("ArrayBuffer");function Mn(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&xt(t.buffer),e}const Bn=Se("string"),_=Se("function"),Ft=Se("number"),Oe=t=>t!==null&&typeof t=="object",Un=t=>t===!0||t===!1,de=t=>{if(we(t)!=="object")return!1;const e=Je(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Dt in t)&&!(ve in t)},In=k("Date"),Ln=k("File"),$n=k("Blob"),Hn=k("FileList"),Vn=t=>Oe(t)&&_(t.pipe),Wn=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||_(t.append)&&((e=we(t))==="formdata"||e==="object"&&_(t.toString)&&t.toString()==="[object FormData]"))},Xn=k("URLSearchParams"),[zn,Jn,Qn,Kn]=["ReadableStream","Request","Response","Headers"].map(k),Gn=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ee(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,i;if(typeof t!="object"&&(t=[t]),z(t))for(n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else{const o=r?Object.getOwnPropertyNames(t):Object.keys(t),s=o.length;let a;for(n=0;n<s;n++)a=o[n],e.call(null,t[a],a,t)}}function Mt(t,e){e=e.toLowerCase();const r=Object.keys(t);let n=r.length,i;for(;n-- >0;)if(i=r[n],e===i.toLowerCase())return i;return null}const F=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Bt=t=>!Z(t)&&t!==F;function $e(){const{caseless:t}=Bt(this)&&this||{},e={},r=(n,i)=>{const o=t&&Mt(e,i)||i;de(e[o])&&de(n)?e[o]=$e(e[o],n):de(n)?e[o]=$e({},n):z(n)?e[o]=n.slice():e[o]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&ee(arguments[n],r);return e}const Yn=(t,e,r,{allOwnKeys:n}={})=>(ee(e,(i,o)=>{r&&_(i)?t[o]=jt(i,r):t[o]=i},{allOwnKeys:n}),t),Zn=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),er=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},tr=(t,e,r,n)=>{let i,o,s;const a={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),o=i.length;o-- >0;)s=i[o],(!n||n(s,t,e))&&!a[s]&&(e[s]=t[s],a[s]=!0);t=r!==!1&&Je(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},nr=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},rr=t=>{if(!t)return null;if(z(t))return t;let e=t.length;if(!Ft(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},ir=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Je(Uint8Array)),or=(t,e)=>{const n=(t&&t[ve]).call(t);let i;for(;(i=n.next())&&!i.done;){const o=i.value;e.call(t,o[0],o[1])}},sr=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},ar=k("HTMLFormElement"),ur=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),ot=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),cr=k("RegExp"),Ut=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};ee(r,(i,o)=>{let s;(s=e(i,o,t))!==!1&&(n[o]=s||i)}),Object.defineProperties(t,n)},lr=t=>{Ut(t,(e,r)=>{if(_(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(_(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},fr=(t,e)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return z(t)?n(t):n(String(t).split(e)),r},dr=()=>{},pr=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function mr(t){return!!(t&&_(t.append)&&t[Dt]==="FormData"&&t[ve])}const hr=t=>{const e=new Array(10),r=(n,i)=>{if(Oe(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[i]=n;const o=z(n)?[]:{};return ee(n,(s,a)=>{const u=r(s,i+1);!Z(u)&&(o[a]=u)}),e[i]=void 0,o}}return n};return r(t,0)},yr=k("AsyncFunction"),br=t=>t&&(Oe(t)||_(t))&&_(t.then)&&_(t.catch),It=((t,e)=>t?setImmediate:e?((r,n)=>(F.addEventListener("message",({source:i,data:o})=>{i===F&&o===r&&n.length&&n.shift()()},!1),i=>{n.push(i),F.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",_(F.postMessage)),gr=typeof queueMicrotask<"u"?queueMicrotask.bind(F):typeof process<"u"&&process.nextTick||It,vr=t=>t!=null&&_(t[ve]),f={isArray:z,isArrayBuffer:xt,isBuffer:Fn,isFormData:Wn,isArrayBufferView:Mn,isString:Bn,isNumber:Ft,isBoolean:Un,isObject:Oe,isPlainObject:de,isReadableStream:zn,isRequest:Jn,isResponse:Qn,isHeaders:Kn,isUndefined:Z,isDate:In,isFile:Ln,isBlob:$n,isRegExp:cr,isFunction:_,isStream:Vn,isURLSearchParams:Xn,isTypedArray:ir,isFileList:Hn,forEach:ee,merge:$e,extend:Yn,trim:Gn,stripBOM:Zn,inherits:er,toFlatObject:tr,kindOf:we,kindOfTest:k,endsWith:nr,toArray:rr,forEachEntry:or,matchAll:sr,isHTMLForm:ar,hasOwnProperty:ot,hasOwnProp:ot,reduceDescriptors:Ut,freezeMethods:lr,toObjectSet:fr,toCamelCase:ur,noop:dr,toFiniteNumber:pr,findKey:Mt,global:F,isContextDefined:Bt,isSpecCompliantForm:mr,toJSONObject:hr,isAsyncFn:yr,isThenable:br,setImmediate:It,asap:gr,isIterable:vr};function g(t,e,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}f.inherits(g,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:f.toJSONObject(this.config),code:this.code,status:this.status}}});const Lt=g.prototype,$t={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{$t[t]={value:t}});Object.defineProperties(g,$t);Object.defineProperty(Lt,"isAxiosError",{value:!0});g.from=(t,e,r,n,i,o)=>{const s=Object.create(Lt);return f.toFlatObject(t,s,function(u){return u!==Error.prototype},a=>a!=="isAxiosError"),g.call(s,t.message,e,r,n,i),s.cause=t,s.name=t.name,o&&Object.assign(s,o),s};const wr=null;function He(t){return f.isPlainObject(t)||f.isArray(t)}function Ht(t){return f.endsWith(t,"[]")?t.slice(0,-2):t}function st(t,e,r){return t?t.concat(e).map(function(i,o){return i=Ht(i),!r&&o?"["+i+"]":i}).join(r?".":""):e}function Sr(t){return f.isArray(t)&&!t.some(He)}const Or=f.toFlatObject(f,{},null,function(e){return/^is[A-Z]/.test(e)});function Ee(t,e,r){if(!f.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=f.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,h){return!f.isUndefined(h[b])});const n=r.metaTokens,i=r.visitor||l,o=r.dots,s=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&f.isSpecCompliantForm(e);if(!f.isFunction(i))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(f.isDate(p))return p.toISOString();if(f.isBoolean(p))return p.toString();if(!u&&f.isBlob(p))throw new g("Blob is not supported. Use a Buffer instead.");return f.isArrayBuffer(p)||f.isTypedArray(p)?u&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function l(p,b,h){let v=p;if(p&&!h&&typeof p=="object"){if(f.endsWith(b,"{}"))b=n?b:b.slice(0,-2),p=JSON.stringify(p);else if(f.isArray(p)&&Sr(p)||(f.isFileList(p)||f.endsWith(b,"[]"))&&(v=f.toArray(p)))return b=Ht(b),v.forEach(function(O,q){!(f.isUndefined(O)||O===null)&&e.append(s===!0?st([b],q,o):s===null?b:b+"[]",c(O))}),!1}return He(p)?!0:(e.append(st(h,b,o),c(p)),!1)}const d=[],m=Object.assign(Or,{defaultVisitor:l,convertValue:c,isVisitable:He});function y(p,b){if(!f.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+b.join("."));d.push(p),f.forEach(p,function(v,w){(!(f.isUndefined(v)||v===null)&&i.call(e,v,f.isString(w)?w.trim():w,b,m))===!0&&y(v,b?b.concat(w):[w])}),d.pop()}}if(!f.isObject(t))throw new TypeError("data must be an object");return y(t),e}function at(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Qe(t,e){this._pairs=[],t&&Ee(t,this,e)}const Vt=Qe.prototype;Vt.append=function(e,r){this._pairs.push([e,r])};Vt.toString=function(e){const r=e?function(n){return e.call(this,n,at)}:at;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function Er(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Wt(t,e,r){if(!e)return t;const n=r&&r.encode||Er;f.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let o;if(i?o=i(e,r):o=f.isURLSearchParams(e)?e.toString():new Qe(e,r).toString(n),o){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class ut{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){f.forEach(this.handlers,function(n){n!==null&&e(n)})}}const Xt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ar=typeof URLSearchParams<"u"?URLSearchParams:Qe,Tr=typeof FormData<"u"?FormData:null,Rr=typeof Blob<"u"?Blob:null,_r={isBrowser:!0,classes:{URLSearchParams:Ar,FormData:Tr,Blob:Rr},protocols:["http","https","file","blob","url","data"]},Ke=typeof window<"u"&&typeof document<"u",Ve=typeof navigator=="object"&&navigator||void 0,Pr=Ke&&(!Ve||["ReactNative","NativeScript","NS"].indexOf(Ve.product)<0),Nr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",kr=Ke&&window.location.href||"http://localhost",Cr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ke,hasStandardBrowserEnv:Pr,hasStandardBrowserWebWorkerEnv:Nr,navigator:Ve,origin:kr},Symbol.toStringTag,{value:"Module"})),T={...Cr,..._r};function qr(t,e){return Ee(t,new T.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,o){return T.isNode&&f.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function jr(t){return f.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Dr(t){const e={},r=Object.keys(t);let n;const i=r.length;let o;for(n=0;n<i;n++)o=r[n],e[o]=t[o];return e}function zt(t){function e(r,n,i,o){let s=r[o++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),u=o>=r.length;return s=!s&&f.isArray(i)?i.length:s,u?(f.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!a):((!i[s]||!f.isObject(i[s]))&&(i[s]=[]),e(r,n,i[s],o)&&f.isArray(i[s])&&(i[s]=Dr(i[s])),!a)}if(f.isFormData(t)&&f.isFunction(t.entries)){const r={};return f.forEachEntry(t,(n,i)=>{e(jr(n),i,r,0)}),r}return null}function xr(t,e,r){if(f.isString(t))try{return(e||JSON.parse)(t),f.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const te={transitional:Xt,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,o=f.isObject(e);if(o&&f.isHTMLForm(e)&&(e=new FormData(e)),f.isFormData(e))return i?JSON.stringify(zt(e)):e;if(f.isArrayBuffer(e)||f.isBuffer(e)||f.isStream(e)||f.isFile(e)||f.isBlob(e)||f.isReadableStream(e))return e;if(f.isArrayBufferView(e))return e.buffer;if(f.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return qr(e,this.formSerializer).toString();if((a=f.isFileList(e))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Ee(a?{"files[]":e}:e,u&&new u,this.formSerializer)}}return o||i?(r.setContentType("application/json",!1),xr(e)):e}],transformResponse:[function(e){const r=this.transitional||te.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(f.isResponse(e)||f.isReadableStream(e))return e;if(e&&f.isString(e)&&(n&&!this.responseType||i)){const s=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(a){if(s)throw a.name==="SyntaxError"?g.from(a,g.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:T.classes.FormData,Blob:T.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};f.forEach(["delete","get","head","post","put","patch"],t=>{te.headers[t]={}});const Fr=f.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Mr=t=>{const e={};let r,n,i;return t&&t.split(`
|
|
2
2
|
`).forEach(function(s){i=s.indexOf(":"),r=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!r||e[r]&&Fr[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},ct=Symbol("internals");function Q(t){return t&&String(t).trim().toLowerCase()}function pe(t){return t===!1||t==null?t:f.isArray(t)?t.map(pe):String(t)}function Br(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}const Ur=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function De(t,e,r,n,i){if(f.isFunction(n))return n.call(this,e,r);if(i&&(e=r),!!f.isString(e)){if(f.isString(n))return e.indexOf(n)!==-1;if(f.isRegExp(n))return n.test(e)}}function Ir(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function Lr(t,e){const r=f.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(i,o,s){return this[n].call(this,e,i,o,s)},configurable:!0})})}let P=class{constructor(e){e&&this.set(e)}set(e,r,n){const i=this;function o(a,u,c){const l=Q(u);if(!l)throw new Error("header name must be a non-empty string");const d=f.findKey(i,l);(!d||i[d]===void 0||c===!0||c===void 0&&i[d]!==!1)&&(i[d||u]=pe(a))}const s=(a,u)=>f.forEach(a,(c,l)=>o(c,l,u));if(f.isPlainObject(e)||e instanceof this.constructor)s(e,r);else if(f.isString(e)&&(e=e.trim())&&!Ur(e))s(Mr(e),r);else if(f.isObject(e)&&f.isIterable(e)){let a={},u,c;for(const l of e){if(!f.isArray(l))throw TypeError("Object iterator must return a key-value pair");a[c=l[0]]=(u=a[c])?f.isArray(u)?[...u,l[1]]:[u,l[1]]:l[1]}s(a,r)}else e!=null&&o(r,e,n);return this}get(e,r){if(e=Q(e),e){const n=f.findKey(this,e);if(n){const i=this[n];if(!r)return i;if(r===!0)return Br(i);if(f.isFunction(r))return r.call(this,i,n);if(f.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=Q(e),e){const n=f.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||De(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let i=!1;function o(s){if(s=Q(s),s){const a=f.findKey(n,s);a&&(!r||De(n,n[a],a,r))&&(delete n[a],i=!0)}}return f.isArray(e)?e.forEach(o):o(e),i}clear(e){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const o=r[n];(!e||De(this,this[o],o,e,!0))&&(delete this[o],i=!0)}return i}normalize(e){const r=this,n={};return f.forEach(this,(i,o)=>{const s=f.findKey(n,o);if(s){r[s]=pe(i),delete r[o];return}const a=e?Ir(o):String(o).trim();a!==o&&delete r[o],r[a]=pe(i),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return f.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=e&&f.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(`
|
|
3
3
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(i=>n.set(i)),n}static accessor(e){const n=(this[ct]=this[ct]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=Q(s);n[a]||(Lr(i,s),n[a]=!0)}return f.isArray(e)?e.forEach(o):o(e),this}};P.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);f.reduceDescriptors(P.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});f.freezeMethods(P);function xe(t,e){const r=this||te,n=e||r,i=P.from(n.headers);let o=n.data;return f.forEach(t,function(a){o=a.call(r,o,i.normalize(),e?e.status:void 0)}),i.normalize(),o}function Jt(t){return!!(t&&t.__CANCEL__)}function J(t,e,r){g.call(this,t??"canceled",g.ERR_CANCELED,e,r),this.name="CanceledError"}f.inherits(J,g,{__CANCEL__:!0});function Qt(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new g("Request failed with status code "+r.status,[g.ERR_BAD_REQUEST,g.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function $r(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Hr(t,e){t=t||10;const r=new Array(t),n=new Array(t);let i=0,o=0,s;return e=e!==void 0?e:1e3,function(u){const c=Date.now(),l=n[o];s||(s=c),r[i]=u,n[i]=c;let d=o,m=0;for(;d!==i;)m+=r[d++],d=d%t;if(i=(i+1)%t,i===o&&(o=(o+1)%t),c-s<e)return;const y=l&&c-l;return y?Math.round(m*1e3/y):void 0}}function Vr(t,e){let r=0,n=1e3/e,i,o;const s=(c,l=Date.now())=>{r=l,i=null,o&&(clearTimeout(o),o=null),t.apply(null,c)};return[(...c)=>{const l=Date.now(),d=l-r;d>=n?s(c,l):(i=c,o||(o=setTimeout(()=>{o=null,s(i)},n-d)))},()=>i&&s(i)]}const ye=(t,e,r=3)=>{let n=0;const i=Hr(50,250);return Vr(o=>{const s=o.loaded,a=o.lengthComputable?o.total:void 0,u=s-n,c=i(u),l=s<=a;n=s;const d={loaded:s,total:a,progress:a?s/a:void 0,bytes:u,rate:c||void 0,estimated:c&&a&&l?(a-s)/c:void 0,event:o,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(d)},r)},lt=(t,e)=>{const r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},ft=t=>(...e)=>f.asap(()=>t(...e)),Wr=T.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,T.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(T.origin),T.navigator&&/(msie|trident)/i.test(T.navigator.userAgent)):()=>!0,Xr=T.hasStandardBrowserEnv?{write(t,e,r,n,i,o){const s=[t+"="+encodeURIComponent(e)];f.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),f.isString(n)&&s.push("path="+n),f.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function zr(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Jr(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Kt(t,e,r){let n=!zr(e);return t&&(n||r==!1)?Jr(t,e):e}const dt=t=>t instanceof P?{...t}:t;function L(t,e){e=e||{};const r={};function n(c,l,d,m){return f.isPlainObject(c)&&f.isPlainObject(l)?f.merge.call({caseless:m},c,l):f.isPlainObject(l)?f.merge({},l):f.isArray(l)?l.slice():l}function i(c,l,d,m){if(f.isUndefined(l)){if(!f.isUndefined(c))return n(void 0,c,d,m)}else return n(c,l,d,m)}function o(c,l){if(!f.isUndefined(l))return n(void 0,l)}function s(c,l){if(f.isUndefined(l)){if(!f.isUndefined(c))return n(void 0,c)}else return n(void 0,l)}function a(c,l,d){if(d in e)return n(c,l);if(d in t)return n(void 0,c)}const u={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,l,d)=>i(dt(c),dt(l),d,!0)};return f.forEach(Object.keys(Object.assign({},t,e)),function(l){const d=u[l]||i,m=d(t[l],e[l],l);f.isUndefined(m)&&d!==a||(r[l]=m)}),r}const Gt=t=>{const e=L({},t);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:a}=e;e.headers=s=P.from(s),e.url=Wt(Kt(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let u;if(f.isFormData(r)){if(T.hasStandardBrowserEnv||T.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((u=s.getContentType())!==!1){const[c,...l]=u?u.split(";").map(d=>d.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...l].join("; "))}}if(T.hasStandardBrowserEnv&&(n&&f.isFunction(n)&&(n=n(e)),n||n!==!1&&Wr(e.url))){const c=i&&o&&Xr.read(o);c&&s.set(i,c)}return e},Qr=typeof XMLHttpRequest<"u",Kr=Qr&&function(t){return new Promise(function(r,n){const i=Gt(t);let o=i.data;const s=P.from(i.headers).normalize();let{responseType:a,onUploadProgress:u,onDownloadProgress:c}=i,l,d,m,y,p;function b(){y&&y(),p&&p(),i.cancelToken&&i.cancelToken.unsubscribe(l),i.signal&&i.signal.removeEventListener("abort",l)}let h=new XMLHttpRequest;h.open(i.method.toUpperCase(),i.url,!0),h.timeout=i.timeout;function v(){if(!h)return;const O=P.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),R={data:!a||a==="text"||a==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:O,config:t,request:h};Qt(function(x){r(x),b()},function(x){n(x),b()},R),h=null}"onloadend"in h?h.onloadend=v:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(v)},h.onabort=function(){h&&(n(new g("Request aborted",g.ECONNABORTED,t,h)),h=null)},h.onerror=function(){n(new g("Network Error",g.ERR_NETWORK,t,h)),h=null},h.ontimeout=function(){let q=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const R=i.transitional||Xt;i.timeoutErrorMessage&&(q=i.timeoutErrorMessage),n(new g(q,R.clarifyTimeoutError?g.ETIMEDOUT:g.ECONNABORTED,t,h)),h=null},o===void 0&&s.setContentType(null),"setRequestHeader"in h&&f.forEach(s.toJSON(),function(q,R){h.setRequestHeader(R,q)}),f.isUndefined(i.withCredentials)||(h.withCredentials=!!i.withCredentials),a&&a!=="json"&&(h.responseType=i.responseType),c&&([m,p]=ye(c,!0),h.addEventListener("progress",m)),u&&h.upload&&([d,y]=ye(u),h.upload.addEventListener("progress",d),h.upload.addEventListener("loadend",y)),(i.cancelToken||i.signal)&&(l=O=>{h&&(n(!O||O.type?new J(null,t,h):O),h.abort(),h=null)},i.cancelToken&&i.cancelToken.subscribe(l),i.signal&&(i.signal.aborted?l():i.signal.addEventListener("abort",l)));const w=$r(i.url);if(w&&T.protocols.indexOf(w)===-1){n(new g("Unsupported protocol "+w+":",g.ERR_BAD_REQUEST,t));return}h.send(o||null)})},Gr=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let n=new AbortController,i;const o=function(c){if(!i){i=!0,a();const l=c instanceof Error?c:this.reason;n.abort(l instanceof g?l:new J(l instanceof Error?l.message:l))}};let s=e&&setTimeout(()=>{s=null,o(new g(`timeout ${e} of ms exceeded`,g.ETIMEDOUT))},e);const a=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),t=null)};t.forEach(c=>c.addEventListener("abort",o));const{signal:u}=n;return u.unsubscribe=()=>f.asap(a),u}},Yr=function*(t,e){let r=t.byteLength;if(r<e){yield t;return}let n=0,i;for(;n<r;)i=n+e,yield t.slice(n,i),n=i},Zr=async function*(t,e){for await(const r of ei(t))yield*Yr(r,e)},ei=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:r,value:n}=await e.read();if(r)break;yield n}}finally{await e.cancel()}},pt=(t,e,r,n)=>{const i=Zr(t,e);let o=0,s,a=u=>{s||(s=!0,n&&n(u))};return new ReadableStream({async pull(u){try{const{done:c,value:l}=await i.next();if(c){a(),u.close();return}let d=l.byteLength;if(r){let m=o+=d;r(m)}u.enqueue(new Uint8Array(l))}catch(c){throw a(c),c}},cancel(u){return a(u),i.return()}},{highWaterMark:2})},Ae=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Yt=Ae&&typeof ReadableStream=="function",ti=Ae&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Zt=(t,...e)=>{try{return!!t(...e)}catch{return!1}},ni=Yt&&Zt(()=>{let t=!1;const e=new Request(T.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),mt=64*1024,We=Yt&&Zt(()=>f.isReadableStream(new Response("").body)),be={stream:We&&(t=>t.body)};Ae&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!be[e]&&(be[e]=f.isFunction(t[e])?r=>r[e]():(r,n)=>{throw new g(`Response type '${e}' is not supported`,g.ERR_NOT_SUPPORT,n)})})})(new Response);const ri=async t=>{if(t==null)return 0;if(f.isBlob(t))return t.size;if(f.isSpecCompliantForm(t))return(await new Request(T.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(f.isArrayBufferView(t)||f.isArrayBuffer(t))return t.byteLength;if(f.isURLSearchParams(t)&&(t=t+""),f.isString(t))return(await ti(t)).byteLength},ii=async(t,e)=>{const r=f.toFiniteNumber(t.getContentLength());return r??ri(e)},oi=Ae&&(async t=>{let{url:e,method:r,data:n,signal:i,cancelToken:o,timeout:s,onDownloadProgress:a,onUploadProgress:u,responseType:c,headers:l,withCredentials:d="same-origin",fetchOptions:m}=Gt(t);c=c?(c+"").toLowerCase():"text";let y=Gr([i,o&&o.toAbortSignal()],s),p;const b=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let h;try{if(u&&ni&&r!=="get"&&r!=="head"&&(h=await ii(l,n))!==0){let R=new Request(e,{method:"POST",body:n,duplex:"half"}),j;if(f.isFormData(n)&&(j=R.headers.get("content-type"))&&l.setContentType(j),R.body){const[x,ie]=lt(h,ye(ft(u)));n=pt(R.body,mt,x,ie)}}f.isString(d)||(d=d?"include":"omit");const v="credentials"in Request.prototype;p=new Request(e,{...m,signal:y,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:v?d:void 0});let w=await fetch(p,m);const O=We&&(c==="stream"||c==="response");if(We&&(a||O&&b)){const R={};["status","statusText","headers"].forEach(Ge=>{R[Ge]=w[Ge]});const j=f.toFiniteNumber(w.headers.get("content-length")),[x,ie]=a&<(j,ye(ft(a),!0))||[];w=new Response(pt(w.body,mt,x,()=>{ie&&ie(),b&&b()}),R)}c=c||"text";let q=await be[f.findKey(be,c)||"text"](w,t);return!O&&b&&b(),await new Promise((R,j)=>{Qt(R,j,{data:q,headers:P.from(w.headers),status:w.status,statusText:w.statusText,config:t,request:p})})}catch(v){throw b&&b(),v&&v.name==="TypeError"&&/Load failed|fetch/i.test(v.message)?Object.assign(new g("Network Error",g.ERR_NETWORK,t,p),{cause:v.cause||v}):g.from(v,v&&v.code,t,p)}}),Xe={http:wr,xhr:Kr,fetch:oi};f.forEach(Xe,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const ht=t=>`- ${t}`,si=t=>f.isFunction(t)||t===null||t===!1,en={getAdapter:t=>{t=f.isArray(t)?t:[t];const{length:e}=t;let r,n;const i={};for(let o=0;o<e;o++){r=t[o];let s;if(n=r,!si(r)&&(n=Xe[(s=String(r)).toLowerCase()],n===void 0))throw new g(`Unknown adapter '${s}'`);if(n)break;i[s||"#"+o]=n}if(!n){const o=Object.entries(i).map(([a,u])=>`adapter ${a} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=e?o.length>1?`since :
|
|
4
4
|
`+o.map(ht).join(`
|
package/badge.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { V as pn, l as kt } from "./index-Wcc0o6jA.mjs";
|
|
2
|
-
import { c as X, j, b as mn, t as hn, r as Ct } from "./index-
|
|
2
|
+
import { c as X, j, b as mn, t as hn, r as Ct } from "./index-DlwdCtNm.mjs";
|
|
3
3
|
import * as A from "react";
|
|
4
4
|
import { createContext as he, useContext as yn, useRef as bn } from "react";
|
|
5
5
|
import { initReactI18next as Ye } from "react-i18next";
|
package/campaign.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-CATkY-bf.js"),r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-CATkY-bf.js"),r=require("./index-dZ1ztwCK.js"),d=new o.VendurePluginConfig({name:"campaign",enableFeatures:{ordinaryPrice:({variant:i,orderLine:e,searchResult:n,product:a})=>{if(e){const t=e.productVariant;return t?.ordinaryPrice?r.getPrice(t?.ordinaryPrice)*e.quantity:e.discountedLinePriceWithTax}return i?r.getPrice(i.ordinaryPrice||0):n?r.getPrice(n.ordinaryPrice||0):a?r.getProductPriceFromVariants(a.variants):0}},queryUpdates:{}});d.setQueryUpdates({search:{fields:[{items:[{ordinaryPrice:[{operation:"PriceRange",fields:["min, max"],fragment:!0},{operation:"SinglePrice",fields:["value"],fragment:!0}]}]}]},product:{fields:[{ordinaryPrice:[{operation:"PriceRange",fields:["min, max"],fragment:!0},{operation:"SinglePrice",fields:["value"],fragment:!0}]},{variants:["ordinaryPrice"]}]},briefProducts:{fields:[{items:[{ordinaryPrice:[{operation:"PriceRange",fields:["min, max"],fragment:!0},{operation:"SinglePrice",fields:["value"],fragment:!0}]},{variants:["ordinaryPrice"]}]}]},activeOrder:{fields:[{lines:[{productVariant:["ordinaryPrice"]}]}]},orderByCode:{fields:[{lines:[{productVariant:["ordinaryPrice"]}]}]},adjustOrderLine:{fields:[{fields:[{lines:[{productVariant:["ordinaryPrice"]}]}]}]},addItemToOrder:{fields:[{fields:[{lines:[{productVariant:["ordinaryPrice"]}]}]}]}});exports.VendureCampaignPlugin=d;
|
package/campaign.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./index-Wcc0o6jA.mjs";
|
|
2
2
|
import x from "react";
|
|
3
3
|
import { Image as z, View as y, Text as le, Pressable as fe, TextInput as me } from "react-native";
|
|
4
|
-
var T = { exports: {} },
|
|
4
|
+
var T = { exports: {} }, v = {};
|
|
5
5
|
/**
|
|
6
6
|
* @license React
|
|
7
7
|
* react-jsx-runtime.production.js
|
|
@@ -13,7 +13,7 @@ var T = { exports: {} }, _ = {};
|
|
|
13
13
|
*/
|
|
14
14
|
var L;
|
|
15
15
|
function de() {
|
|
16
|
-
if (L) return
|
|
16
|
+
if (L) return v;
|
|
17
17
|
L = 1;
|
|
18
18
|
var r = Symbol.for("react.transitional.element"), o = Symbol.for("react.fragment");
|
|
19
19
|
function n(a, s, l) {
|
|
@@ -31,7 +31,7 @@ function de() {
|
|
|
31
31
|
props: l
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
return
|
|
34
|
+
return v.Fragment = o, v.jsx = n, v.jsxs = n, v;
|
|
35
35
|
}
|
|
36
36
|
var E = {};
|
|
37
37
|
/**
|
|
@@ -199,10 +199,10 @@ function pe() {
|
|
|
199
199
|
else j(c);
|
|
200
200
|
if (D.call(t, "key")) {
|
|
201
201
|
c = r(e);
|
|
202
|
-
var
|
|
202
|
+
var _ = Object.keys(t).filter(function(ce) {
|
|
203
203
|
return ce !== "key";
|
|
204
204
|
});
|
|
205
|
-
u = 0 <
|
|
205
|
+
u = 0 < _.length ? "{key: someKey, " + _.join(": ..., ") + ": ...}" : "{key: someKey}", $[c + u] || (_ = 0 < _.length ? "{" + _.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
206
206
|
`A props object containing a "key" prop is being spread into JSX:
|
|
207
207
|
let props = %s;
|
|
208
208
|
<%s {...props} />
|
|
@@ -211,7 +211,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
211
211
|
<%s key={someKey} {...props} />`,
|
|
212
212
|
u,
|
|
213
213
|
c,
|
|
214
|
-
|
|
214
|
+
_,
|
|
215
215
|
c
|
|
216
216
|
), $[c + u] = !0);
|
|
217
217
|
}
|
|
@@ -241,11 +241,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
241
241
|
return null;
|
|
242
242
|
};
|
|
243
243
|
b = {
|
|
244
|
-
|
|
244
|
+
react_stack_bottom_frame: function(e) {
|
|
245
245
|
return e();
|
|
246
246
|
}
|
|
247
247
|
};
|
|
248
|
-
var V, M = {}, F = b
|
|
248
|
+
var V, M = {}, F = b.react_stack_bottom_frame.bind(
|
|
249
249
|
b,
|
|
250
250
|
l
|
|
251
251
|
)(), U = k(a(l)), $ = {};
|
|
@@ -280,7 +280,7 @@ var W;
|
|
|
280
280
|
function Re() {
|
|
281
281
|
return W || (W = 1, process.env.NODE_ENV === "production" ? T.exports = de() : T.exports = pe()), T.exports;
|
|
282
282
|
}
|
|
283
|
-
var
|
|
283
|
+
var _e = Re(), h = { exports: {} }, N = {};
|
|
284
284
|
/**
|
|
285
285
|
* @license React
|
|
286
286
|
* react-compiler-runtime.production.js
|
|
@@ -291,7 +291,7 @@ var ve = Re(), h = { exports: {} }, N = {};
|
|
|
291
291
|
* LICENSE file in the root directory of this source tree.
|
|
292
292
|
*/
|
|
293
293
|
var G;
|
|
294
|
-
function
|
|
294
|
+
function ve() {
|
|
295
295
|
if (G) return N;
|
|
296
296
|
G = 1;
|
|
297
297
|
var r = x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
@@ -327,7 +327,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
327
327
|
}
|
|
328
328
|
var J;
|
|
329
329
|
function be() {
|
|
330
|
-
return J || (J = 1, process.env.NODE_ENV === "production" ? h.exports =
|
|
330
|
+
return J || (J = 1, process.env.NODE_ENV === "production" ? h.exports = ve() : h.exports = Ee()), h.exports;
|
|
331
331
|
}
|
|
332
332
|
var Te = be();
|
|
333
333
|
function Se(r, o) {
|
|
@@ -412,7 +412,7 @@ const xe = {
|
|
|
412
412
|
let a;
|
|
413
413
|
n[0] !== r ? (a = he(r), n[0] = r, n[1] = a) : a = n[1];
|
|
414
414
|
let s;
|
|
415
|
-
return n[2] !== o || n[3] !== a ? (s = /* @__PURE__ */
|
|
415
|
+
return n[2] !== o || n[3] !== a ? (s = /* @__PURE__ */ _e.jsx(z, { ref: o, ...a }), n[2] = o, n[3] = a, n[4] = s) : s = n[4], s;
|
|
416
416
|
});
|
|
417
417
|
X.displayName = "PlatformPrimitiveImage";
|
|
418
418
|
function Ne(r, o) {
|
|
@@ -440,7 +440,7 @@ export {
|
|
|
440
440
|
Ne as b,
|
|
441
441
|
Te as c,
|
|
442
442
|
we as g,
|
|
443
|
-
|
|
443
|
+
_e as j,
|
|
444
444
|
ye as r,
|
|
445
445
|
Se as t
|
|
446
446
|
};
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,u,c,_,c),q[c+u]=!0)}if(c=null,i!==void 0&&(n(i),c=""+i),R(t)&&(n(t.key),c=""+t.key),"key"in t){i={};for(var S in t)S!=="key"&&(i[S]=t[S])}else i=t;return c&&f(i,typeof e=="function"?e.displayName||e.name||"Unknown":e),Q(e,c,m,d,s(),i,O,N)}function j(e){typeof e=="object"&&e!==null&&e.$$typeof===I&&e._store&&(e._store.validated=1)}var b=g,I=Symbol.for("react.transitional.element"),K=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),ee=Symbol.for("react.strict_mode"),re=Symbol.for("react.profiler"),te=Symbol.for("react.consumer"),ne=Symbol.for("react.context"),oe=Symbol.for("react.forward_ref"),ae=Symbol.for("react.suspense"),ie=Symbol.for("react.suspense_list"),se=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),ue=Symbol.for("react.activity"),ce=Symbol.for("react.client.reference"),P=b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=Object.prototype.hasOwnProperty,le=Array.isArray,k=console.createTask?console.createTask:function(){return null};b={
|
|
22
|
+
<%s key={someKey} {...props} />`,u,c,_,c),q[c+u]=!0)}if(c=null,i!==void 0&&(n(i),c=""+i),R(t)&&(n(t.key),c=""+t.key),"key"in t){i={};for(var S in t)S!=="key"&&(i[S]=t[S])}else i=t;return c&&f(i,typeof e=="function"?e.displayName||e.name||"Unknown":e),Q(e,c,m,d,s(),i,O,N)}function j(e){typeof e=="object"&&e!==null&&e.$$typeof===I&&e._store&&(e._store.validated=1)}var b=g,I=Symbol.for("react.transitional.element"),K=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),ee=Symbol.for("react.strict_mode"),re=Symbol.for("react.profiler"),te=Symbol.for("react.consumer"),ne=Symbol.for("react.context"),oe=Symbol.for("react.forward_ref"),ae=Symbol.for("react.suspense"),ie=Symbol.for("react.suspense_list"),se=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),ue=Symbol.for("react.activity"),ce=Symbol.for("react.client.reference"),P=b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=Object.prototype.hasOwnProperty,le=Array.isArray,k=console.createTask?console.createTask:function(){return null};b={react_stack_bottom_frame:function(e){return e()}};var D,F={},M=b.react_stack_bottom_frame.bind(b,l)(),$=k(a(l)),q={};T.Fragment=w,T.jsx=function(e,t,i,u,d){var m=1e4>P.recentlyCreatedOwnerStacks++;return C(e,t,i,!1,u,d,m?Error("react-stack-top-frame"):M,m?k(a(e)):$)},T.jsxs=function(e,t,i,u,d){var m=1e4>P.recentlyCreatedOwnerStacks++;return C(e,t,i,!0,u,d,m?Error("react-stack-top-frame"):M,m?k(a(e)):$)}}()),T}var W;function pe(){return W||(W=1,process.env.NODE_ENV==="production"?h.exports=me():h.exports=de()),h.exports}var z=pe(),x={exports:{}},A={};/**
|
|
23
23
|
* @license React
|
|
24
24
|
* react-compiler-runtime.production.js
|
|
25
25
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haus-storefront-react/vendure-plugin-configs",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"types": "./index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@haus-storefront-react/common-utils": "0.0.
|
|
45
|
-
"@haus-storefront-react/core": "0.0.
|
|
46
|
-
"@haus-storefront-react/shared-types": "0.0.
|
|
44
|
+
"@haus-storefront-react/common-utils": "0.0.20",
|
|
45
|
+
"@haus-storefront-react/core": "0.0.20",
|
|
46
|
+
"@haus-storefront-react/shared-types": "0.0.20"
|
|
47
47
|
}
|
|
48
48
|
}
|