@haus-storefront-react/discounts 0.0.39 → 0.0.41
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 +20 -0
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
## 0.0.40-0 (2025-09-26)
|
|
2
|
+
|
|
3
|
+
### 🧱 Updated Dependencies
|
|
4
|
+
|
|
5
|
+
- Updated store/hooks to 0.0.40-0
|
|
6
|
+
- Updated core to 0.0.40-0
|
|
7
|
+
- Updated common/utils to 0.0.40-0
|
|
8
|
+
- Updated common/ui to 0.0.40-0
|
|
9
|
+
- Updated shared/types to 0.0.40-0
|
|
10
|
+
|
|
11
|
+
## 0.0.39 (2025-09-26)
|
|
12
|
+
|
|
13
|
+
### 🧱 Updated Dependencies
|
|
14
|
+
|
|
15
|
+
- Updated store/hooks to 0.0.39
|
|
16
|
+
- Updated core to 0.0.39
|
|
17
|
+
- Updated common/utils to 0.0.39
|
|
18
|
+
- Updated common/ui to 0.0.39
|
|
19
|
+
- Updated shared/types to 0.0.39
|
|
20
|
+
|
|
1
21
|
## 0.0.38-1 (2025-09-26)
|
|
2
22
|
|
|
3
23
|
### 🧱 Updated Dependencies
|
package/index.js
CHANGED
|
@@ -70,7 +70,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
70
70
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...i){const s=new this(r);return i.forEach(u=>s.set(u)),s}static accessor(r){const s=(this[pl]=this[pl]={accessors:{}}).accessors,u=this.prototype;function l(f){const h=rr(f);s[h]||(Uy(u,f),s[h]=!0)}return S.isArray(r)?r.forEach(l):l(r),this}};Be.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);S.reduceDescriptors(Be.prototype,({value:o},r)=>{let i=r[0].toUpperCase()+r.slice(1);return{get:()=>o,set(s){this[i]=s}}});S.freezeMethods(Be);function ia(o,r){const i=this||ur,s=r||i,u=Be.from(s.headers);let l=s.data;return S.forEach(o,function(h){l=h.call(i,l,u.normalize(),r?r.status:void 0)}),u.normalize(),l}function rc(o){return!!(o&&o.__CANCEL__)}function Nn(o,r,i){V.call(this,o??"canceled",V.ERR_CANCELED,r,i),this.name="CanceledError"}S.inherits(Nn,V,{__CANCEL__:!0});function ic(o,r,i){const s=i.config.validateStatus;!i.status||!s||s(i.status)?o(i):r(new V("Request failed with status code "+i.status,[V.ERR_BAD_REQUEST,V.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function Wy(o){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(o);return r&&r[1]||""}function $y(o,r){o=o||10;const i=new Array(o),s=new Array(o);let u=0,l=0,f;return r=r!==void 0?r:1e3,function(g){const v=Date.now(),y=s[l];f||(f=v),i[u]=g,s[u]=v;let A=l,N=0;for(;A!==u;)N+=i[A++],A=A%o;if(u=(u+1)%o,u===l&&(l=(l+1)%o),v-f<r)return;const L=y&&v-y;return L?Math.round(N*1e3/L):void 0}}function Hy(o,r){let i=0,s=1e3/r,u,l;const f=(v,y=Date.now())=>{i=y,u=null,l&&(clearTimeout(l),l=null),o.apply(null,v)};return[(...v)=>{const y=Date.now(),A=y-i;A>=s?f(v,y):(u=v,l||(l=setTimeout(()=>{l=null,f(u)},s-A)))},()=>u&&f(u)]}const _i=(o,r,i=3)=>{let s=0;const u=$y(50,250);return Hy(l=>{const f=l.loaded,h=l.lengthComputable?l.total:void 0,g=f-s,v=u(g),y=f<=h;s=f;const A={loaded:f,total:h,progress:h?f/h:void 0,bytes:g,rate:v||void 0,estimated:v&&h&&y?(h-f)/v:void 0,event:l,lengthComputable:h!=null,[r?"download":"upload"]:!0};o(A)},i)},hl=(o,r)=>{const i=o!=null;return[s=>r[0]({lengthComputable:i,total:o,loaded:s}),r[1]]},gl=o=>(...r)=>S.asap(()=>o(...r)),jy=Oe.hasStandardBrowserEnv?((o,r)=>i=>(i=new URL(i,Oe.origin),o.protocol===i.protocol&&o.host===i.host&&(r||o.port===i.port)))(new URL(Oe.origin),Oe.navigator&&/(msie|trident)/i.test(Oe.navigator.userAgent)):()=>!0,Vy=Oe.hasStandardBrowserEnv?{write(o,r,i,s,u,l){const f=[o+"="+encodeURIComponent(r)];S.isNumber(i)&&f.push("expires="+new Date(i).toGMTString()),S.isString(s)&&f.push("path="+s),S.isString(u)&&f.push("domain="+u),l===!0&&f.push("secure"),document.cookie=f.join("; ")},read(o){const r=document.cookie.match(new RegExp("(^|;\\s*)("+o+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove(o){this.write(o,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function zy(o){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o)}function Gy(o,r){return r?o.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):o}function oc(o,r,i){let s=!zy(r);return o&&(s||i==!1)?Gy(o,r):r}const ml=o=>o instanceof Be?{...o}:o;function tn(o,r){r=r||{};const i={};function s(v,y,A,N){return S.isPlainObject(v)&&S.isPlainObject(y)?S.merge.call({caseless:N},v,y):S.isPlainObject(y)?S.merge({},y):S.isArray(y)?y.slice():y}function u(v,y,A,N){if(S.isUndefined(y)){if(!S.isUndefined(v))return s(void 0,v,A,N)}else return s(v,y,A,N)}function l(v,y){if(!S.isUndefined(y))return s(void 0,y)}function f(v,y){if(S.isUndefined(y)){if(!S.isUndefined(v))return s(void 0,v)}else return s(void 0,y)}function h(v,y,A){if(A in r)return s(v,y);if(A in o)return s(void 0,v)}const g={url:l,method:l,data:l,baseURL:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,withXSRFToken:f,adapter:f,responseType:f,xsrfCookieName:f,xsrfHeaderName:f,onUploadProgress:f,onDownloadProgress:f,decompress:f,maxContentLength:f,maxBodyLength:f,beforeRedirect:f,transport:f,httpAgent:f,httpsAgent:f,cancelToken:f,socketPath:f,responseEncoding:f,validateStatus:h,headers:(v,y,A)=>u(ml(v),ml(y),A,!0)};return S.forEach(Object.keys(Object.assign({},o,r)),function(y){const A=g[y]||u,N=A(o[y],r[y],y);S.isUndefined(N)&&A!==h||(i[y]=N)}),i}const ac=o=>{const r=tn({},o);let{data:i,withXSRFToken:s,xsrfHeaderName:u,xsrfCookieName:l,headers:f,auth:h}=r;r.headers=f=Be.from(f),r.url=ec(oc(r.baseURL,r.url,r.allowAbsoluteUrls),o.params,o.paramsSerializer),h&&f.set("Authorization","Basic "+btoa((h.username||"")+":"+(h.password?unescape(encodeURIComponent(h.password)):"")));let g;if(S.isFormData(i)){if(Oe.hasStandardBrowserEnv||Oe.hasStandardBrowserWebWorkerEnv)f.setContentType(void 0);else if((g=f.getContentType())!==!1){const[v,...y]=g?g.split(";").map(A=>A.trim()).filter(Boolean):[];f.setContentType([v||"multipart/form-data",...y].join("; "))}}if(Oe.hasStandardBrowserEnv&&(s&&S.isFunction(s)&&(s=s(r)),s||s!==!1&&jy(r.url))){const v=u&&l&&Vy.read(l);v&&f.set(u,v)}return r},Ky=typeof XMLHttpRequest<"u",Yy=Ky&&function(o){return new Promise(function(i,s){const u=ac(o);let l=u.data;const f=Be.from(u.headers).normalize();let{responseType:h,onUploadProgress:g,onDownloadProgress:v}=u,y,A,N,L,O;function I(){L&&L(),O&&O(),u.cancelToken&&u.cancelToken.unsubscribe(y),u.signal&&u.signal.removeEventListener("abort",y)}let D=new XMLHttpRequest;D.open(u.method.toUpperCase(),u.url,!0),D.timeout=u.timeout;function q(){if(!D)return;const G=Be.from("getAllResponseHeaders"in D&&D.getAllResponseHeaders()),ie={data:!h||h==="text"||h==="json"?D.responseText:D.response,status:D.status,statusText:D.statusText,headers:G,config:o,request:D};ic(function(ge){i(ge),I()},function(ge){s(ge),I()},ie),D=null}"onloadend"in D?D.onloadend=q:D.onreadystatechange=function(){!D||D.readyState!==4||D.status===0&&!(D.responseURL&&D.responseURL.indexOf("file:")===0)||setTimeout(q)},D.onabort=function(){D&&(s(new V("Request aborted",V.ECONNABORTED,o,D)),D=null)},D.onerror=function(){s(new V("Network Error",V.ERR_NETWORK,o,D)),D=null},D.ontimeout=function(){let Ae=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded";const ie=u.transitional||tc;u.timeoutErrorMessage&&(Ae=u.timeoutErrorMessage),s(new V(Ae,ie.clarifyTimeoutError?V.ETIMEDOUT:V.ECONNABORTED,o,D)),D=null},l===void 0&&f.setContentType(null),"setRequestHeader"in D&&S.forEach(f.toJSON(),function(Ae,ie){D.setRequestHeader(ie,Ae)}),S.isUndefined(u.withCredentials)||(D.withCredentials=!!u.withCredentials),h&&h!=="json"&&(D.responseType=u.responseType),v&&([N,O]=_i(v,!0),D.addEventListener("progress",N)),g&&D.upload&&([A,L]=_i(g),D.upload.addEventListener("progress",A),D.upload.addEventListener("loadend",L)),(u.cancelToken||u.signal)&&(y=G=>{D&&(s(!G||G.type?new Nn(null,o,D):G),D.abort(),D=null)},u.cancelToken&&u.cancelToken.subscribe(y),u.signal&&(u.signal.aborted?y():u.signal.addEventListener("abort",y)));const X=Wy(u.url);if(X&&Oe.protocols.indexOf(X)===-1){s(new V("Unsupported protocol "+X+":",V.ERR_BAD_REQUEST,o));return}D.send(l||null)})},Jy=(o,r)=>{const{length:i}=o=o?o.filter(Boolean):[];if(r||i){let s=new AbortController,u;const l=function(v){if(!u){u=!0,h();const y=v instanceof Error?v:this.reason;s.abort(y instanceof V?y:new Nn(y instanceof Error?y.message:y))}};let f=r&&setTimeout(()=>{f=null,l(new V(`timeout ${r} of ms exceeded`,V.ETIMEDOUT))},r);const h=()=>{o&&(f&&clearTimeout(f),f=null,o.forEach(v=>{v.unsubscribe?v.unsubscribe(l):v.removeEventListener("abort",l)}),o=null)};o.forEach(v=>v.addEventListener("abort",l));const{signal:g}=s;return g.unsubscribe=()=>S.asap(h),g}},Xy=function*(o,r){let i=o.byteLength;if(i<r){yield o;return}let s=0,u;for(;s<i;)u=s+r,yield o.slice(s,u),s=u},Zy=async function*(o,r){for await(const i of Qy(o))yield*Xy(i,r)},Qy=async function*(o){if(o[Symbol.asyncIterator]){yield*o;return}const r=o.getReader();try{for(;;){const{done:i,value:s}=await r.read();if(i)break;yield s}}finally{await r.cancel()}},_l=(o,r,i,s)=>{const u=Zy(o,r);let l=0,f,h=g=>{f||(f=!0,s&&s(g))};return new ReadableStream({async pull(g){try{const{done:v,value:y}=await u.next();if(v){h(),g.close();return}let A=y.byteLength;if(i){let N=l+=A;i(N)}g.enqueue(new Uint8Array(y))}catch(v){throw h(v),v}},cancel(g){return h(g),u.return()}},{highWaterMark:2})},Ri=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",sc=Ri&&typeof ReadableStream=="function",e0=Ri&&(typeof TextEncoder=="function"?(o=>r=>o.encode(r))(new TextEncoder):async o=>new Uint8Array(await new Response(o).arrayBuffer())),uc=(o,...r)=>{try{return!!o(...r)}catch{return!1}},t0=sc&&uc(()=>{let o=!1;const r=new Request(Oe.origin,{body:new ReadableStream,method:"POST",get duplex(){return o=!0,"half"}}).headers.has("Content-Type");return o&&!r}),vl=64*1024,ca=sc&&uc(()=>S.isReadableStream(new Response("").body)),vi={stream:ca&&(o=>o.body)};Ri&&(o=>{["text","arrayBuffer","blob","formData","stream"].forEach(r=>{!vi[r]&&(vi[r]=S.isFunction(o[r])?i=>i[r]():(i,s)=>{throw new V(`Response type '${r}' is not supported`,V.ERR_NOT_SUPPORT,s)})})})(new Response);const n0=async o=>{if(o==null)return 0;if(S.isBlob(o))return o.size;if(S.isSpecCompliantForm(o))return(await new Request(Oe.origin,{method:"POST",body:o}).arrayBuffer()).byteLength;if(S.isArrayBufferView(o)||S.isArrayBuffer(o))return o.byteLength;if(S.isURLSearchParams(o)&&(o=o+""),S.isString(o))return(await e0(o)).byteLength},r0=async(o,r)=>{const i=S.toFiniteNumber(o.getContentLength());return i??n0(r)},i0=Ri&&(async o=>{let{url:r,method:i,data:s,signal:u,cancelToken:l,timeout:f,onDownloadProgress:h,onUploadProgress:g,responseType:v,headers:y,withCredentials:A="same-origin",fetchOptions:N}=ac(o);v=v?(v+"").toLowerCase():"text";let L=Jy([u,l&&l.toAbortSignal()],f),O;const I=L&&L.unsubscribe&&(()=>{L.unsubscribe()});let D;try{if(g&&t0&&i!=="get"&&i!=="head"&&(D=await r0(y,s))!==0){let ie=new Request(r,{method:"POST",body:s,duplex:"half"}),Te;if(S.isFormData(s)&&(Te=ie.headers.get("content-type"))&&y.setContentType(Te),ie.body){const[ge,Ue]=hl(D,_i(gl(g)));s=_l(ie.body,vl,ge,Ue)}}S.isString(A)||(A=A?"include":"omit");const q="credentials"in Request.prototype;O=new Request(r,{...N,signal:L,method:i.toUpperCase(),headers:y.normalize().toJSON(),body:s,duplex:"half",credentials:q?A:void 0});let X=await fetch(O,N);const G=ca&&(v==="stream"||v==="response");if(ca&&(h||G&&I)){const ie={};["status","statusText","headers"].forEach(Ot=>{ie[Ot]=X[Ot]});const Te=S.toFiniteNumber(X.headers.get("content-length")),[ge,Ue]=h&&hl(Te,_i(gl(h),!0))||[];X=new Response(_l(X.body,vl,ge,()=>{Ue&&Ue(),I&&I()}),ie)}v=v||"text";let Ae=await vi[S.findKey(vi,v)||"text"](X,o);return!G&&I&&I(),await new Promise((ie,Te)=>{ic(ie,Te,{data:Ae,headers:Be.from(X.headers),status:X.status,statusText:X.statusText,config:o,request:O})})}catch(q){throw I&&I(),q&&q.name==="TypeError"&&/Load failed|fetch/i.test(q.message)?Object.assign(new V("Network Error",V.ERR_NETWORK,o,O),{cause:q.cause||q}):V.from(q,q&&q.code,o,O)}}),fa={http:yy,xhr:Yy,fetch:i0};S.forEach(fa,(o,r)=>{if(o){try{Object.defineProperty(o,"name",{value:r})}catch{}Object.defineProperty(o,"adapterName",{value:r})}});const yl=o=>`- ${o}`,o0=o=>S.isFunction(o)||o===null||o===!1,lc={getAdapter:o=>{o=S.isArray(o)?o:[o];const{length:r}=o;let i,s;const u={};for(let l=0;l<r;l++){i=o[l];let f;if(s=i,!o0(i)&&(s=fa[(f=String(i)).toLowerCase()],s===void 0))throw new V(`Unknown adapter '${f}'`);if(s)break;u[f||"#"+l]=s}if(!s){const l=Object.entries(u).map(([h,g])=>`adapter ${h} `+(g===!1?"is not supported by the environment":"is not available in the build"));let f=r?l.length>1?`since :
|
|
71
71
|
`+l.map(yl).join(`
|
|
72
72
|
`):" "+yl(l[0]):"as no adapter specified";throw new V("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return s},adapters:fa};function oa(o){if(o.cancelToken&&o.cancelToken.throwIfRequested(),o.signal&&o.signal.aborted)throw new Nn(null,o)}function bl(o){return oa(o),o.headers=Be.from(o.headers),o.data=ia.call(o,o.transformRequest),["post","put","patch"].indexOf(o.method)!==-1&&o.headers.setContentType("application/x-www-form-urlencoded",!1),lc.getAdapter(o.adapter||ur.adapter)(o).then(function(s){return oa(o),s.data=ia.call(o,o.transformResponse,s),s.headers=Be.from(s.headers),s},function(s){return rc(s)||(oa(o),s&&s.response&&(s.response.data=ia.call(o,o.transformResponse,s.response),s.response.headers=Be.from(s.response.headers))),Promise.reject(s)})}const cc="1.10.0",Ti={};["object","boolean","number","function","string","symbol"].forEach((o,r)=>{Ti[o]=function(s){return typeof s===o||"a"+(r<1?"n ":" ")+o}});const wl={};Ti.transitional=function(r,i,s){function u(l,f){return"[Axios v"+cc+"] Transitional option '"+l+"'"+f+(s?". "+s:"")}return(l,f,h)=>{if(r===!1)throw new V(u(f," has been removed"+(i?" in "+i:"")),V.ERR_DEPRECATED);return i&&!wl[f]&&(wl[f]=!0,console.warn(u(f," has been deprecated since v"+i+" and will be removed in the near future"))),r?r(l,f,h):!0}};Ti.spelling=function(r){return(i,s)=>(console.warn(`${s} is likely a misspelling of ${r}`),!0)};function a0(o,r,i){if(typeof o!="object")throw new V("options must be an object",V.ERR_BAD_OPTION_VALUE);const s=Object.keys(o);let u=s.length;for(;u-- >0;){const l=s[u],f=r[l];if(f){const h=o[l],g=h===void 0||f(h,l,o);if(g!==!0)throw new V("option "+l+" must be "+g,V.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new V("Unknown option "+l,V.ERR_BAD_OPTION)}}const mi={assertOptions:a0,validators:Ti},_t=mi.validators;let en=class{constructor(r){this.defaults=r||{},this.interceptors={request:new dl,response:new dl}}async request(r,i){try{return await this._request(r,i)}catch(s){if(s instanceof Error){let u={};Error.captureStackTrace?Error.captureStackTrace(u):u=new Error;const l=u.stack?u.stack.replace(/^.+\n/,""):"";try{s.stack?l&&!String(s.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(s.stack+=`
|
|
73
|
-
`+l):s.stack=l}catch{}}throw s}}_request(r,i){typeof r=="string"?(i=i||{},i.url=r):i=r||{},i=tn(this.defaults,i);const{transitional:s,paramsSerializer:u,headers:l}=i;s!==void 0&&mi.assertOptions(s,{silentJSONParsing:_t.transitional(_t.boolean),forcedJSONParsing:_t.transitional(_t.boolean),clarifyTimeoutError:_t.transitional(_t.boolean)},!1),u!=null&&(S.isFunction(u)?i.paramsSerializer={serialize:u}:mi.assertOptions(u,{encode:_t.function,serialize:_t.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),mi.assertOptions(i,{baseUrl:_t.spelling("baseURL"),withXsrfToken:_t.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let f=l&&S.merge(l.common,l[i.method]);l&&S.forEach(["delete","get","head","post","put","patch","common"],O=>{delete l[O]}),i.headers=Be.concat(f,l);const h=[];let g=!0;this.interceptors.request.forEach(function(I){typeof I.runWhen=="function"&&I.runWhen(i)===!1||(g=g&&I.synchronous,h.unshift(I.fulfilled,I.rejected))});const v=[];this.interceptors.response.forEach(function(I){v.push(I.fulfilled,I.rejected)});let y,A=0,N;if(!g){const O=[bl.bind(this),void 0];for(O.unshift.apply(O,h),O.push.apply(O,v),N=O.length,y=Promise.resolve(i);A<N;)y=y.then(O[A++],O[A++]);return y}N=h.length;let L=i;for(A=0;A<N;){const O=h[A++],I=h[A++];try{L=O(L)}catch(D){I.call(this,D);break}}try{y=bl.call(this,L)}catch(O){return Promise.reject(O)}for(A=0,N=v.length;A<N;)y=y.then(v[A++],v[A++]);return y}getUri(r){r=tn(this.defaults,r);const i=oc(r.baseURL,r.url,r.allowAbsoluteUrls);return ec(i,r.params,r.paramsSerializer)}};S.forEach(["delete","get","head","options"],function(r){en.prototype[r]=function(i,s){return this.request(tn(s||{},{method:r,url:i,data:(s||{}).data}))}});S.forEach(["post","put","patch"],function(r){function i(s){return function(l,f,h){return this.request(tn(h||{},{method:r,headers:s?{"Content-Type":"multipart/form-data"}:{},url:l,data:f}))}}en.prototype[r]=i(),en.prototype[r+"Form"]=i(!0)});let s0=class fc{constructor(r){if(typeof r!="function")throw new TypeError("executor must be a function.");let i;this.promise=new Promise(function(l){i=l});const s=this;this.promise.then(u=>{if(!s._listeners)return;let l=s._listeners.length;for(;l-- >0;)s._listeners[l](u);s._listeners=null}),this.promise.then=u=>{let l;const f=new Promise(h=>{s.subscribe(h),l=h}).then(u);return f.cancel=function(){s.unsubscribe(l)},f},r(function(l,f,h){s.reason||(s.reason=new Nn(l,f,h),i(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const i=this._listeners.indexOf(r);i!==-1&&this._listeners.splice(i,1)}toAbortSignal(){const r=new AbortController,i=s=>{r.abort(s)};return this.subscribe(i),r.signal.unsubscribe=()=>this.unsubscribe(i),r.signal}static source(){let r;return{token:new fc(function(u){r=u}),cancel:r}}};function u0(o){return function(i){return o.apply(null,i)}}function l0(o){return S.isObject(o)&&o.isAxiosError===!0}const da={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(da).forEach(([o,r])=>{da[r]=o});function dc(o){const r=new en(o),i=$l(en.prototype.request,r);return S.extend(i,en.prototype,r,{allOwnKeys:!0}),S.extend(i,r,null,{allOwnKeys:!0}),i.create=function(u){return dc(tn(o,u))},i}const he=dc(ur);he.Axios=en;he.CanceledError=Nn;he.CancelToken=s0;he.isCancel=rc;he.VERSION=cc;he.toFormData=Si;he.AxiosError=V;he.Cancel=he.CanceledError;he.all=function(r){return Promise.all(r)};he.spread=u0;he.isAxiosError=l0;he.mergeConfig=tn;he.AxiosHeaders=Be;he.formToJSON=o=>nc(S.isHTMLForm(o)?new FormData(o):o);he.getAdapter=lc.getAdapter;he.HttpStatusCode=da;he.default=he;const{Axios:V0,AxiosError:Al,CanceledError:z0,isCancel:G0,CancelToken:K0,VERSION:Y0,all:J0,Cancel:X0,isAxiosError:Z0,spread:Q0,toFormData:e1,AxiosHeaders:t1,HttpStatusCode:n1,formToJSON:r1,getAdapter:i1,mergeConfig:o1}=he,c0=o=>kl.some(o,r=>r&&r.errorCode!==void 0)||o?.errorCode!==void 0;function El(){return new yi.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!0,refetchOnMount:!1,retry:3,staleTime:1e3*60*5}}})}function pa(){return pc?(globalThis.__STORE_QUERY_CLIENT__||(globalThis.__STORE_QUERY_CLIENT__=El()),globalThis.__STORE_QUERY_CLIENT__):El()}const pc=typeof window<"u";let f0="https://localhost:3000/shop-api";const Sl="auth_token",d0="lang",p0="currencyCode";let h0=async(o,r)=>{await r(o)};function g0(o){return o.interceptors.request.use(async r=>(await h0(r,async s=>{const u=await Ut.getItem(Sl),l=await Ut.getItem("channelToken"),f=await Ut.getItem(p0),h=await Ut.getItem(d0);u&&(s.headers.Authorization=`Bearer ${u}`),l&&(s.headers["vendure-token"]=l),s.params=s.params||{},f&&(s.params.currencyCode=f),h&&(s.params.languageCode=h)}),r)),o.interceptors.response.use(async r=>(await m0(r,async s=>{const u=s.headers["vendure-auth-token"];if(u&&Ut.setItem(Sl,u),c0(s.data.data)){const l=Object.values(s.data.data)[0],f=new Al(l.errorCode);return f.response=s,f.request=s.request,f.config=s.config,Promise.reject(f)}if(s.data.errors?.length>0){const l=s.data.errors[0],f=new Al(l.message);return f.response=s,f.request=s.request,f.config=s.config,Promise.reject(f)}}),r),r=>(Wl.error("Axios error","vendure/axiosClient",r),Promise.reject(r))),o}function Rl(o){const r=he.create({baseURL:f0,withCredentials:!0,headers:{"vendure-token":""}});return g0(r)}function Tl(){return pc?(globalThis.__STORE_API_CLIENT__||(globalThis.__STORE_API_CLIENT__=Rl()),globalThis.__STORE_API_CLIENT__):Rl()}let m0=async(o,r)=>{await r(o)};new Proxy({},{get:(o,r)=>{const i=Tl(),s=Reflect.get(i,r);return typeof s=="function"?s.bind(i):s},set:(o,r,i)=>Reflect.set(Tl(),r,i)});new Proxy({},{get:(o,r)=>{const i=pa(),s=Reflect.get(i,r);return typeof s=="function"?s.bind(i):s},set:(o,r,i)=>Reflect.set(pa(),r,i)});const _0=globalThis.__STORE_SDK_CONTEXT__||=xt.createContext(void 0),wa=()=>{const r=xt.useContext(_0)?.sdk;return r||console.error("You must wrap your component in a <DataProvider>"),r?.sdkType==="dummy"||r?.sdkType==="vendure",r};new Event("searchParamsUpdate");var ct={},li={},ci={},fi={},Cl;function lr(){if(Cl)return fi;Cl=1,Object.defineProperty(fi,"__esModule",{value:!0});var o;return function(r){r.Mutation="mutation",r.Query="query",r.Subscription="subscription"}(o||(o={})),fi.default=o,fi}var Rn={},ir={},xl;function v0(){if(xl)return ir;xl=1,Object.defineProperty(ir,"__esModule",{value:!0}),ir.isNestedField=void 0;function o(r){return typeof r=="object"&&r.hasOwnProperty("operation")&&r.hasOwnProperty("variables")&&r.hasOwnProperty("fields")||typeof r=="object"&&r.hasOwnProperty("operation")&&r.hasOwnProperty("fragment")&&r.hasOwnProperty("fields")}return ir.isNestedField=o,ir}var Ol;function cr(){if(Ol)return Rn;Ol=1;var o=Rn&&Rn.__assign||function(){return o=Object.assign||function(s){for(var u,l=1,f=arguments.length;l<f;l++){u=arguments[l];for(var h in u)Object.prototype.hasOwnProperty.call(u,h)&&(s[h]=u[h])}return s},o.apply(this,arguments)};Object.defineProperty(Rn,"__esModule",{value:!0});var r=v0(),i=function(){function s(){}return s.resolveVariables=function(u){for(var l={},f=0,h=u;f<h.length;f++){var g=h[f],v=g.variables,y=g.fields;l=o(o(o({},l),v),y&&s.getNestedVariables(y)||{})}return l},s.queryDataNameAndArgumentMap=function(u){return u&&Object.keys(u).length?"(".concat(Object.entries(u).reduce(function(l,f,h){var g=f[0],v=f[1];return"".concat(l).concat(h!==0?", ":"").concat(v&&v.name?v.name:g,": $").concat(g)},""),")"):""},s.queryFieldsMap=function(u){var l=this;return u?u.map(function(f){if((0,r.isNestedField)(f))return s.queryNestedFieldMap(f);if(typeof f=="object"){var h="";return Object.entries(f).forEach(function(g,v,y){var A=g[0],N=g[1];h+="".concat(A," ").concat(N.length>0?"{ "+l.queryFieldsMap(N)+" }":""),v<y.length-1&&(h+=", ")}),h}else return"".concat(f)}).join(", "):""},s.operationOrAlias=function(u){return typeof u=="string"?u:"".concat(u.alias,": ").concat(u.name)},s.isFragment=function(u){var l;return(l=u?.fragment===!0)!==null&&l!==void 0?l:!1},s.operationOrFragment=function(u){return s.isFragment(u)?u.operation:s.operationOrAlias(u.operation)},s.getFragment=function(u){return s.isFragment(u)?"... on ":""},s.queryNestedFieldMap=function(u){return"".concat(s.getFragment(u)).concat(s.operationOrFragment(u)," ").concat(this.isFragment(u)?"":this.queryDataNameAndArgumentMap(u.variables)," ").concat(u.fields.length>0?"{ "+this.queryFieldsMap(u.fields)+" }":"")},s.queryVariablesMap=function(u,l){var f={},h=function(g){g&&Object.keys(g).map(function(v){f[v]=typeof g[v]=="object"?g[v].value:g[v]})};return h(u),l&&typeof l=="object"&&h(s.getNestedVariables(l)),f},s.getNestedVariables=function(u){var l={};function f(h){return h?.forEach(function(g){if((0,r.isNestedField)(g))l=o(o(o({},g.variables),l),g.fields&&f(g.fields));else if(typeof g=="object")for(var v=0,y=Object.entries(g);v<y.length;v++){var A=y[v],N=A[1];f(N)}}),l}return f(u),l},s.queryDataType=function(u){var l="String",f=typeof u=="object"?u.value:u;if(u?.type!=null)l=u.type;else{var h=Array.isArray(f)?f[0]:f;switch(typeof h){case"object":l="Object";break;case"boolean":l="Boolean";break;case"number":l=h%1===0?"Int":"Float";break}}return typeof u=="object"&&(u.list===!0?l="[".concat(l,"]"):Array.isArray(u.list)&&(l="[".concat(l).concat(u.list[0]?"!":"","]")),u.required&&(l+="!")),l},s}();return Rn.default=i,Rn}var Nl;function y0(){if(Nl)return ci;Nl=1,Object.defineProperty(ci,"__esModule",{value:!0});var o=lr(),r=cr(),i=function(){function s(u){Array.isArray(u)?this.variables=r.default.resolveVariables(u):(this.variables=u.variables,this.fields=u.fields,this.operation=u.operation)}return s.prototype.mutationBuilder=function(){return this.operationWrapperTemplate(this.variables,this.operationTemplate(this.operation))},s.prototype.mutationsBuilder=function(u){var l=this,f=u.map(function(h){return l.operation=h.operation,l.variables=h.variables,l.fields=h.fields,l.operationTemplate(h.operation)});return this.operationWrapperTemplate(r.default.resolveVariables(u),f.join(`
|
|
73
|
+
`+l):s.stack=l}catch{}}throw s}}_request(r,i){typeof r=="string"?(i=i||{},i.url=r):i=r||{},i=tn(this.defaults,i);const{transitional:s,paramsSerializer:u,headers:l}=i;s!==void 0&&mi.assertOptions(s,{silentJSONParsing:_t.transitional(_t.boolean),forcedJSONParsing:_t.transitional(_t.boolean),clarifyTimeoutError:_t.transitional(_t.boolean)},!1),u!=null&&(S.isFunction(u)?i.paramsSerializer={serialize:u}:mi.assertOptions(u,{encode:_t.function,serialize:_t.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),mi.assertOptions(i,{baseUrl:_t.spelling("baseURL"),withXsrfToken:_t.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let f=l&&S.merge(l.common,l[i.method]);l&&S.forEach(["delete","get","head","post","put","patch","common"],O=>{delete l[O]}),i.headers=Be.concat(f,l);const h=[];let g=!0;this.interceptors.request.forEach(function(I){typeof I.runWhen=="function"&&I.runWhen(i)===!1||(g=g&&I.synchronous,h.unshift(I.fulfilled,I.rejected))});const v=[];this.interceptors.response.forEach(function(I){v.push(I.fulfilled,I.rejected)});let y,A=0,N;if(!g){const O=[bl.bind(this),void 0];for(O.unshift.apply(O,h),O.push.apply(O,v),N=O.length,y=Promise.resolve(i);A<N;)y=y.then(O[A++],O[A++]);return y}N=h.length;let L=i;for(A=0;A<N;){const O=h[A++],I=h[A++];try{L=O(L)}catch(D){I.call(this,D);break}}try{y=bl.call(this,L)}catch(O){return Promise.reject(O)}for(A=0,N=v.length;A<N;)y=y.then(v[A++],v[A++]);return y}getUri(r){r=tn(this.defaults,r);const i=oc(r.baseURL,r.url,r.allowAbsoluteUrls);return ec(i,r.params,r.paramsSerializer)}};S.forEach(["delete","get","head","options"],function(r){en.prototype[r]=function(i,s){return this.request(tn(s||{},{method:r,url:i,data:(s||{}).data}))}});S.forEach(["post","put","patch"],function(r){function i(s){return function(l,f,h){return this.request(tn(h||{},{method:r,headers:s?{"Content-Type":"multipart/form-data"}:{},url:l,data:f}))}}en.prototype[r]=i(),en.prototype[r+"Form"]=i(!0)});let s0=class fc{constructor(r){if(typeof r!="function")throw new TypeError("executor must be a function.");let i;this.promise=new Promise(function(l){i=l});const s=this;this.promise.then(u=>{if(!s._listeners)return;let l=s._listeners.length;for(;l-- >0;)s._listeners[l](u);s._listeners=null}),this.promise.then=u=>{let l;const f=new Promise(h=>{s.subscribe(h),l=h}).then(u);return f.cancel=function(){s.unsubscribe(l)},f},r(function(l,f,h){s.reason||(s.reason=new Nn(l,f,h),i(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const i=this._listeners.indexOf(r);i!==-1&&this._listeners.splice(i,1)}toAbortSignal(){const r=new AbortController,i=s=>{r.abort(s)};return this.subscribe(i),r.signal.unsubscribe=()=>this.unsubscribe(i),r.signal}static source(){let r;return{token:new fc(function(u){r=u}),cancel:r}}};function u0(o){return function(i){return o.apply(null,i)}}function l0(o){return S.isObject(o)&&o.isAxiosError===!0}const da={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(da).forEach(([o,r])=>{da[r]=o});function dc(o){const r=new en(o),i=$l(en.prototype.request,r);return S.extend(i,en.prototype,r,{allOwnKeys:!0}),S.extend(i,r,null,{allOwnKeys:!0}),i.create=function(u){return dc(tn(o,u))},i}const he=dc(ur);he.Axios=en;he.CanceledError=Nn;he.CancelToken=s0;he.isCancel=rc;he.VERSION=cc;he.toFormData=Si;he.AxiosError=V;he.Cancel=he.CanceledError;he.all=function(r){return Promise.all(r)};he.spread=u0;he.isAxiosError=l0;he.mergeConfig=tn;he.AxiosHeaders=Be;he.formToJSON=o=>nc(S.isHTMLForm(o)?new FormData(o):o);he.getAdapter=lc.getAdapter;he.HttpStatusCode=da;he.default=he;const{Axios:V0,AxiosError:Al,CanceledError:z0,isCancel:G0,CancelToken:K0,VERSION:Y0,all:J0,Cancel:X0,isAxiosError:Z0,spread:Q0,toFormData:e1,AxiosHeaders:t1,HttpStatusCode:n1,formToJSON:r1,getAdapter:i1,mergeConfig:o1}=he,c0=o=>kl.some(o,r=>r&&r.errorCode!==void 0)||o?.errorCode!==void 0;function El(){return new yi.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!0,refetchOnMount:!1,retry:3,staleTime:1e3*60*5}}})}function pa(){return pc?(globalThis.__STORE_QUERY_CLIENT__||(globalThis.__STORE_QUERY_CLIENT__=El()),globalThis.__STORE_QUERY_CLIENT__):El()}const pc=typeof window<"u";let f0;const Sl="auth_token",d0="lang",p0="currencyCode";let h0=async(o,r)=>{await r(o)};function g0(o){return o.interceptors.request.use(async r=>(await h0(r,async s=>{const u=await Ut.getItem(Sl),l=await Ut.getItem("channelToken"),f=await Ut.getItem(p0),h=await Ut.getItem(d0);u&&(s.headers.Authorization=`Bearer ${u}`),l&&(s.headers["vendure-token"]=l),s.params=s.params||{},f&&(s.params.currencyCode=f),h&&(s.params.languageCode=h)}),r)),o.interceptors.response.use(async r=>(await m0(r,async s=>{const u=s.headers["vendure-auth-token"];if(u&&Ut.setItem(Sl,u),c0(s.data.data)){const l=Object.values(s.data.data)[0],f=new Al(l.errorCode);return f.response=s,f.request=s.request,f.config=s.config,Promise.reject(f)}if(s.data.errors?.length>0){const l=s.data.errors[0],f=new Al(l.message);return f.response=s,f.request=s.request,f.config=s.config,Promise.reject(f)}}),r),r=>(Wl.error("Axios error","vendure/axiosClient",r),Promise.reject(r))),o}function Rl(o){const r=he.create({baseURL:f0,withCredentials:!0,headers:{"vendure-token":""}});return g0(r)}function Tl(){return pc?(globalThis.__STORE_API_CLIENT__||(globalThis.__STORE_API_CLIENT__=Rl()),globalThis.__STORE_API_CLIENT__):Rl()}let m0=async(o,r)=>{await r(o)};new Proxy({},{get:(o,r)=>{const i=Tl(),s=Reflect.get(i,r);return typeof s=="function"?s.bind(i):s},set:(o,r,i)=>Reflect.set(Tl(),r,i)});new Proxy({},{get:(o,r)=>{const i=pa(),s=Reflect.get(i,r);return typeof s=="function"?s.bind(i):s},set:(o,r,i)=>Reflect.set(pa(),r,i)});const _0=globalThis.__STORE_SDK_CONTEXT__||=xt.createContext(void 0),wa=()=>{const r=xt.useContext(_0)?.sdk;return r||console.error("You must wrap your component in a <DataProvider>"),r?.sdkType==="dummy"||r?.sdkType==="vendure",r};new Event("searchParamsUpdate");var ct={},li={},ci={},fi={},Cl;function lr(){if(Cl)return fi;Cl=1,Object.defineProperty(fi,"__esModule",{value:!0});var o;return function(r){r.Mutation="mutation",r.Query="query",r.Subscription="subscription"}(o||(o={})),fi.default=o,fi}var Rn={},ir={},xl;function v0(){if(xl)return ir;xl=1,Object.defineProperty(ir,"__esModule",{value:!0}),ir.isNestedField=void 0;function o(r){return typeof r=="object"&&r.hasOwnProperty("operation")&&r.hasOwnProperty("variables")&&r.hasOwnProperty("fields")||typeof r=="object"&&r.hasOwnProperty("operation")&&r.hasOwnProperty("fragment")&&r.hasOwnProperty("fields")}return ir.isNestedField=o,ir}var Ol;function cr(){if(Ol)return Rn;Ol=1;var o=Rn&&Rn.__assign||function(){return o=Object.assign||function(s){for(var u,l=1,f=arguments.length;l<f;l++){u=arguments[l];for(var h in u)Object.prototype.hasOwnProperty.call(u,h)&&(s[h]=u[h])}return s},o.apply(this,arguments)};Object.defineProperty(Rn,"__esModule",{value:!0});var r=v0(),i=function(){function s(){}return s.resolveVariables=function(u){for(var l={},f=0,h=u;f<h.length;f++){var g=h[f],v=g.variables,y=g.fields;l=o(o(o({},l),v),y&&s.getNestedVariables(y)||{})}return l},s.queryDataNameAndArgumentMap=function(u){return u&&Object.keys(u).length?"(".concat(Object.entries(u).reduce(function(l,f,h){var g=f[0],v=f[1];return"".concat(l).concat(h!==0?", ":"").concat(v&&v.name?v.name:g,": $").concat(g)},""),")"):""},s.queryFieldsMap=function(u){var l=this;return u?u.map(function(f){if((0,r.isNestedField)(f))return s.queryNestedFieldMap(f);if(typeof f=="object"){var h="";return Object.entries(f).forEach(function(g,v,y){var A=g[0],N=g[1];h+="".concat(A," ").concat(N.length>0?"{ "+l.queryFieldsMap(N)+" }":""),v<y.length-1&&(h+=", ")}),h}else return"".concat(f)}).join(", "):""},s.operationOrAlias=function(u){return typeof u=="string"?u:"".concat(u.alias,": ").concat(u.name)},s.isFragment=function(u){var l;return(l=u?.fragment===!0)!==null&&l!==void 0?l:!1},s.operationOrFragment=function(u){return s.isFragment(u)?u.operation:s.operationOrAlias(u.operation)},s.getFragment=function(u){return s.isFragment(u)?"... on ":""},s.queryNestedFieldMap=function(u){return"".concat(s.getFragment(u)).concat(s.operationOrFragment(u)," ").concat(this.isFragment(u)?"":this.queryDataNameAndArgumentMap(u.variables)," ").concat(u.fields.length>0?"{ "+this.queryFieldsMap(u.fields)+" }":"")},s.queryVariablesMap=function(u,l){var f={},h=function(g){g&&Object.keys(g).map(function(v){f[v]=typeof g[v]=="object"?g[v].value:g[v]})};return h(u),l&&typeof l=="object"&&h(s.getNestedVariables(l)),f},s.getNestedVariables=function(u){var l={};function f(h){return h?.forEach(function(g){if((0,r.isNestedField)(g))l=o(o(o({},g.variables),l),g.fields&&f(g.fields));else if(typeof g=="object")for(var v=0,y=Object.entries(g);v<y.length;v++){var A=y[v],N=A[1];f(N)}}),l}return f(u),l},s.queryDataType=function(u){var l="String",f=typeof u=="object"?u.value:u;if(u?.type!=null)l=u.type;else{var h=Array.isArray(f)?f[0]:f;switch(typeof h){case"object":l="Object";break;case"boolean":l="Boolean";break;case"number":l=h%1===0?"Int":"Float";break}}return typeof u=="object"&&(u.list===!0?l="[".concat(l,"]"):Array.isArray(u.list)&&(l="[".concat(l).concat(u.list[0]?"!":"","]")),u.required&&(l+="!")),l},s}();return Rn.default=i,Rn}var Nl;function y0(){if(Nl)return ci;Nl=1,Object.defineProperty(ci,"__esModule",{value:!0});var o=lr(),r=cr(),i=function(){function s(u){Array.isArray(u)?this.variables=r.default.resolveVariables(u):(this.variables=u.variables,this.fields=u.fields,this.operation=u.operation)}return s.prototype.mutationBuilder=function(){return this.operationWrapperTemplate(this.variables,this.operationTemplate(this.operation))},s.prototype.mutationsBuilder=function(u){var l=this,f=u.map(function(h){return l.operation=h.operation,l.variables=h.variables,l.fields=h.fields,l.operationTemplate(h.operation)});return this.operationWrapperTemplate(r.default.resolveVariables(u),f.join(`
|
|
74
74
|
`))},s.prototype.queryDataNameAndArgumentMap=function(){return this.variables&&Object.keys(this.variables).length?"(".concat(Object.keys(this.variables).reduce(function(u,l,f){return"".concat(u).concat(f!==0?", ":"").concat(l,": $").concat(l)},""),")"):""},s.prototype.queryDataArgumentAndTypeMap=function(u){return Object.keys(u).length?"(".concat(Object.keys(u).reduce(function(l,f,h){return"".concat(l).concat(h!==0?", ":"","$").concat(f,": ").concat(r.default.queryDataType(u[f]))},""),")"):""},s.prototype.operationWrapperTemplate=function(u,l){var f=typeof this.operation=="string"?this.operation:this.operation.name;return{query:"".concat(o.default.Mutation," ").concat(f.charAt(0).toUpperCase()+f.slice(1)," ").concat(this.queryDataArgumentAndTypeMap(u),` {
|
|
75
75
|
`).concat(l,`
|
|
76
76
|
}`),variables:r.default.queryVariablesMap(u)}},s.prototype.operationTemplate=function(u){var l=typeof u=="string"?u:"".concat(u.alias,": ").concat(u.name);return"".concat(l," ").concat(this.queryDataNameAndArgumentMap(),` {
|
package/index.mjs
CHANGED
|
@@ -6293,7 +6293,7 @@ function da() {
|
|
|
6293
6293
|
return pc ? (globalThis.__STORE_QUERY_CLIENT__ || (globalThis.__STORE_QUERY_CLIENT__ = wl()), globalThis.__STORE_QUERY_CLIENT__) : wl();
|
|
6294
6294
|
}
|
|
6295
6295
|
const pc = typeof window < "u";
|
|
6296
|
-
let g0
|
|
6296
|
+
let g0;
|
|
6297
6297
|
const Al = "auth_token", m0 = "lang", _0 = "currencyCode";
|
|
6298
6298
|
let v0 = async (o, r) => {
|
|
6299
6299
|
await r(o);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haus-storefront-react/discounts",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.41",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"types": "./index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@haus-storefront-react/common-ui": "0.0.
|
|
15
|
-
"@haus-storefront-react/common-utils": "0.0.
|
|
16
|
-
"@haus-storefront-react/core": "0.0.
|
|
17
|
-
"@haus-storefront-react/hooks": "0.0.
|
|
18
|
-
"@haus-storefront-react/shared-types": "0.0.
|
|
14
|
+
"@haus-storefront-react/common-ui": "0.0.41",
|
|
15
|
+
"@haus-storefront-react/common-utils": "0.0.41",
|
|
16
|
+
"@haus-storefront-react/core": "0.0.41",
|
|
17
|
+
"@haus-storefront-react/hooks": "0.0.41",
|
|
18
|
+
"@haus-storefront-react/shared-types": "0.0.41"
|
|
19
19
|
}
|
|
20
20
|
}
|