@rechargeapps/storefront-client 1.17.2 → 1.17.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -701,7 +701,10 @@ interface CreateSubscriptionRequest extends SubType<Subscription, SubscriptionRe
701
701
  */
702
702
  gift_id?: number;
703
703
  }
704
- interface UpdateSubscriptionRequest extends Partial<Pick<Subscription, 'charge_interval_frequency' | 'expire_after_specific_number_of_charges' | 'external_variant_id' | 'order_day_of_month' | 'order_day_of_week' | 'order_interval_frequency' | 'order_interval_unit' | 'properties' | 'quantity'>> {
704
+ interface UpdateSubscriptionRequest extends Partial<Pick<Subscription, 'charge_interval_frequency' | 'expire_after_specific_number_of_charges' | 'external_variant_id' | 'order_day_of_month' | 'order_day_of_week' | 'order_interval_frequency' | 'order_interval_unit' | 'properties' | 'quantity'> & {
705
+ /** subscription plan_id - if included on update request then charge/order intervals are not required */
706
+ plan_id?: Plan['id'];
707
+ }> {
705
708
  }
706
709
  interface BasicSubscriptionParams {
707
710
  /** Controls whether the QUEUED charges linked to the subscription should be regenerated upon subscription update. By default the flag is set to false which will delay charge regeneration 5 seconds. This enables running multiple calls to perform changes and receive responses much faster since the API won’t wait for a charge regeneration to complete. Setting this parameter to true will cause charge regeneration to complete before returning a response. */
@@ -928,6 +931,8 @@ interface ShippingLine {
928
931
  price: string;
929
932
  /** The source of the shipping_line. */
930
933
  source: string;
934
+ /** The status the shipping_line. */
935
+ status?: 'active' | 'pending' | 'queued';
931
936
  /** The title of the shipping_line. */
932
937
  title: string;
933
938
  /** A boolean indicating if the shipping_line is taxable. */
@@ -1149,6 +1154,10 @@ interface Charge {
1149
1154
  total_refunds: string;
1150
1155
  /** The total tax due associated with the Charge. */
1151
1156
  total_tax: string;
1157
+ /** A boolean indicating if the total price includes taxes. */
1158
+ taxes_included: boolean;
1159
+ /** The total duties associated with the Charge. */
1160
+ total_duties: string;
1152
1161
  /** The total weight of the Charge’s line items in grams. */
1153
1162
  total_weight_grams: number;
1154
1163
  /** An indicator of the Charge’s type, either checkout or recurring. */
@@ -1,4 +1,4 @@
1
- // recharge-client-1.17.2.min.js | MIT License | © Recharge Inc.
1
+ // recharge-client-1.17.3.min.js | MIT License | © Recharge Inc.
2
2
  (function(U,ge){typeof exports=="object"&&typeof module<"u"?module.exports=ge():typeof define=="function"&&define.amd?define(ge):(U=typeof globalThis<"u"?globalThis:U||self,U.recharge=ge())})(this,function(){"use strict";var U=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ge(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Os(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return r[n]}})}),t}var C=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof C<"u"&&C,q={searchParams:"URLSearchParams"in C,iterable:"Symbol"in C&&"iterator"in Symbol,blob:"FileReader"in C&&"Blob"in C&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in C,arrayBuffer:"ArrayBuffer"in C};function Ss(r){return r&&DataView.prototype.isPrototypeOf(r)}if(q.arrayBuffer)var Is=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],xs=ArrayBuffer.isView||function(r){return r&&Is.indexOf(Object.prototype.toString.call(r))>-1};function ir(r){if(typeof r!="string"&&(r=String(r)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(r)||r==="")throw new TypeError('Invalid character in header field name: "'+r+'"');return r.toLowerCase()}function Wt(r){return typeof r!="string"&&(r=String(r)),r}function Xt(r){var e={next:function(){var t=r.shift();return{done:t===void 0,value:t}}};return q.iterable&&(e[Symbol.iterator]=function(){return e}),e}function N(r){this.map={},r instanceof N?r.forEach(function(e,t){this.append(t,e)},this):Array.isArray(r)?r.forEach(function(e){this.append(e[0],e[1])},this):r&&Object.getOwnPropertyNames(r).forEach(function(e){this.append(e,r[e])},this)}N.prototype.append=function(r,e){r=ir(r),e=Wt(e);var t=this.map[r];this.map[r]=t?t+", "+e:e},N.prototype.delete=function(r){delete this.map[ir(r)]},N.prototype.get=function(r){return r=ir(r),this.has(r)?this.map[r]:null},N.prototype.has=function(r){return this.map.hasOwnProperty(ir(r))},N.prototype.set=function(r,e){this.map[ir(r)]=Wt(e)},N.prototype.forEach=function(r,e){for(var t in this.map)this.map.hasOwnProperty(t)&&r.call(e,this.map[t],t,this)},N.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),Xt(r)},N.prototype.values=function(){var r=[];return this.forEach(function(e){r.push(e)}),Xt(r)},N.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),Xt(r)},q.iterable&&(N.prototype[Symbol.iterator]=N.prototype.entries);function zt(r){if(r.bodyUsed)return Promise.reject(new TypeError("Already read"));r.bodyUsed=!0}function Ei(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function Ps(r){var e=new FileReader,t=Ei(e);return e.readAsArrayBuffer(r),t}function Ts(r){var e=new FileReader,t=Ei(e);return e.readAsText(r),t}function Rs(r){for(var e=new Uint8Array(r),t=new Array(e.length),n=0;n<e.length;n++)t[n]=String.fromCharCode(e[n]);return t.join("")}function Ai(r){if(r.slice)return r.slice(0);var e=new Uint8Array(r.byteLength);return e.set(new Uint8Array(r)),e.buffer}function Oi(){return this.bodyUsed=!1,this._initBody=function(r){this.bodyUsed=this.bodyUsed,this._bodyInit=r,r?typeof r=="string"?this._bodyText=r:q.blob&&Blob.prototype.isPrototypeOf(r)?this._bodyBlob=r:q.formData&&FormData.prototype.isPrototypeOf(r)?this._bodyFormData=r:q.searchParams&&URLSearchParams.prototype.isPrototypeOf(r)?this._bodyText=r.toString():q.arrayBuffer&&q.blob&&Ss(r)?(this._bodyArrayBuffer=Ai(r.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):q.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(r)||xs(r))?this._bodyArrayBuffer=Ai(r):this._bodyText=r=Object.prototype.toString.call(r):this._bodyText="",this.headers.get("content-type")||(typeof r=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):q.searchParams&&URLSearchParams.prototype.isPrototypeOf(r)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},q.blob&&(this.blob=function(){var r=zt(this);if(r)return r;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var r=zt(this);return r||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(Ps)}),this.text=function(){var r=zt(this);if(r)return r;if(this._bodyBlob)return Ts(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(Rs(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},q.formData&&(this.formData=function(){return this.text().then(Ns)}),this.json=function(){return this.text().then(JSON.parse)},this}var Fs=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Ms(r){var e=r.toUpperCase();return Fs.indexOf(e)>-1?e:r}function ve(r,e){if(!(this instanceof ve))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e=e||{};var t=e.body;if(r instanceof ve){if(r.bodyUsed)throw new TypeError("Already read");this.url=r.url,this.credentials=r.credentials,e.headers||(this.headers=new N(r.headers)),this.method=r.method,this.mode=r.mode,this.signal=r.signal,!t&&r._bodyInit!=null&&(t=r._bodyInit,r.bodyUsed=!0)}else this.url=String(r);if(this.credentials=e.credentials||this.credentials||"same-origin",(e.headers||!this.headers)&&(this.headers=new N(e.headers)),this.method=Ms(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&t)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(t),(this.method==="GET"||this.method==="HEAD")&&(e.cache==="no-store"||e.cache==="no-cache")){var n=/([?&])_=[^&]*/;if(n.test(this.url))this.url=this.url.replace(n,"$1_="+new Date().getTime());else{var i=/\?/;this.url+=(i.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}ve.prototype.clone=function(){return new ve(this,{body:this._bodyInit})};function Ns(r){var e=new FormData;return r.trim().split("&").forEach(function(t){if(t){var n=t.split("="),i=n.shift().replace(/\+/g," "),a=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(a))}}),e}function Bs(r){var e=new N,t=r.replace(/\r?\n[\t ]+/g," ");return t.split("\r").map(function(n){return n.indexOf(`
3
3
  `)===0?n.substr(1,n.length):n}).forEach(function(n){var i=n.split(":"),a=i.shift().trim();if(a){var o=i.join(":").trim();e.append(a,o)}}),e}Oi.call(ve.prototype);function z(r,e){if(!(this instanceof z))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=e.status===void 0?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=e.statusText===void 0?"":""+e.statusText,this.headers=new N(e.headers),this.url=e.url||"",this._initBody(r)}Oi.call(z.prototype),z.prototype.clone=function(){return new z(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new N(this.headers),url:this.url})},z.error=function(){var r=new z(null,{status:0,statusText:""});return r.type="error",r};var Ds=[301,302,303,307,308];z.redirect=function(r,e){if(Ds.indexOf(e)===-1)throw new RangeError("Invalid status code");return new z(null,{status:e,headers:{location:r}})};var _e=C.DOMException;try{new _e}catch{_e=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},_e.prototype=Object.create(Error.prototype),_e.prototype.constructor=_e}function Si(r,e){return new Promise(function(t,n){var i=new ve(r,e);if(i.signal&&i.signal.aborted)return n(new _e("Aborted","AbortError"));var a=new XMLHttpRequest;function o(){a.abort()}a.onload=function(){var f={status:a.status,statusText:a.statusText,headers:Bs(a.getAllResponseHeaders()||"")};f.url="responseURL"in a?a.responseURL:f.headers.get("X-Request-URL");var c="response"in a?a.response:a.responseText;setTimeout(function(){t(new z(c,f))},0)},a.onerror=function(){setTimeout(function(){n(new TypeError("Network request failed"))},0)},a.ontimeout=function(){setTimeout(function(){n(new TypeError("Network request failed"))},0)},a.onabort=function(){setTimeout(function(){n(new _e("Aborted","AbortError"))},0)};function u(f){try{return f===""&&C.location.href?C.location.href:f}catch{return f}}a.open(i.method,u(i.url),!0),i.credentials==="include"?a.withCredentials=!0:i.credentials==="omit"&&(a.withCredentials=!1),"responseType"in a&&(q.blob?a.responseType="blob":q.arrayBuffer&&i.headers.get("Content-Type")&&i.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(a.responseType="arraybuffer")),e&&typeof e.headers=="object"&&!(e.headers instanceof N)?Object.getOwnPropertyNames(e.headers).forEach(function(f){a.setRequestHeader(f,Wt(e.headers[f]))}):i.headers.forEach(function(f,c){a.setRequestHeader(c,f)}),i.signal&&(i.signal.addEventListener("abort",o),a.onreadystatechange=function(){a.readyState===4&&i.signal.removeEventListener("abort",o)}),a.send(typeof i._bodyInit>"u"?null:i._bodyInit)})}Si.polyfill=!0,C.fetch||(C.fetch=Si,C.Headers=N,C.Request=ve,C.Response=z),self.fetch.bind(self);var Us=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;e[t]=i;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==i||o.enumerable!==!0)return!1}return!0},Ii=typeof Symbol<"u"&&Symbol,Cs=Us,Ls=function(){return typeof Ii!="function"||typeof Symbol!="function"||typeof Ii("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Cs()},xi={foo:{}},ks=Object,js=function(){return{__proto__:xi}.foo===xi.foo&&!({__proto__:null}instanceof ks)},qs="Function.prototype.bind called on incompatible ",Yt=Array.prototype.slice,Vs=Object.prototype.toString,Gs="[object Function]",Hs=function(e){var t=this;if(typeof t!="function"||Vs.call(t)!==Gs)throw new TypeError(qs+t);for(var n=Yt.call(arguments,1),i,a=function(){if(this instanceof i){var l=t.apply(this,n.concat(Yt.call(arguments)));return Object(l)===l?l:this}else return t.apply(e,n.concat(Yt.call(arguments)))},o=Math.max(0,t.length-n.length),u=[],f=0;f<o;f++)u.push("$"+f);if(i=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(a),t.prototype){var c=function(){};c.prototype=t.prototype,i.prototype=new c,c.prototype=null}return i},Ws=Hs,Kt=Function.prototype.bind||Ws,Xs=Kt,zs=Xs.call(Function.call,Object.prototype.hasOwnProperty),x,Ne=SyntaxError,Pi=Function,Be=TypeError,Zt=function(r){try{return Pi('"use strict"; return ('+r+").constructor;")()}catch{}},me=Object.getOwnPropertyDescriptor;if(me)try{me({},"")}catch{me=null}var Jt=function(){throw new Be},Ys=me?function(){try{return arguments.callee,Jt}catch{try{return me(arguments,"callee").get}catch{return Jt}}}():Jt,De=Ls(),Ks=js(),B=Object.getPrototypeOf||(Ks?function(r){return r.__proto__}:null),Ue={},Zs=typeof Uint8Array>"u"||!B?x:B(Uint8Array),we={"%AggregateError%":typeof AggregateError>"u"?x:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?x:ArrayBuffer,"%ArrayIteratorPrototype%":De&&B?B([][Symbol.iterator]()):x,"%AsyncFromSyncIteratorPrototype%":x,"%AsyncFunction%":Ue,"%AsyncGenerator%":Ue,"%AsyncGeneratorFunction%":Ue,"%AsyncIteratorPrototype%":Ue,"%Atomics%":typeof Atomics>"u"?x:Atomics,"%BigInt%":typeof BigInt>"u"?x:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?x:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?x:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?x:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?x:Float32Array,"%Float64Array%":typeof Float64Array>"u"?x:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?x:FinalizationRegistry,"%Function%":Pi,"%GeneratorFunction%":Ue,"%Int8Array%":typeof Int8Array>"u"?x:Int8Array,"%Int16Array%":typeof Int16Array>"u"?x:Int16Array,"%Int32Array%":typeof Int32Array>"u"?x:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":De&&B?B(B([][Symbol.iterator]())):x,"%JSON%":typeof JSON=="object"?JSON:x,"%Map%":typeof Map>"u"?x:Map,"%MapIteratorPrototype%":typeof Map>"u"||!De||!B?x:B(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?x:Promise,"%Proxy%":typeof Proxy>"u"?x:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?x:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?x:Set,"%SetIteratorPrototype%":typeof Set>"u"||!De||!B?x:B(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?x:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":De&&B?B(""[Symbol.iterator]()):x,"%Symbol%":De?Symbol:x,"%SyntaxError%":Ne,"%ThrowTypeError%":Ys,"%TypedArray%":Zs,"%TypeError%":Be,"%Uint8Array%":typeof Uint8Array>"u"?x:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?x:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?x:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?x:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?x:WeakMap,"%WeakRef%":typeof WeakRef>"u"?x:WeakRef,"%WeakSet%":typeof WeakSet>"u"?x:WeakSet};if(B)try{null.error}catch(r){var Js=B(B(r));we["%Error.prototype%"]=Js}var Qs=function r(e){var t;if(e==="%AsyncFunction%")t=Zt("async function () {}");else if(e==="%GeneratorFunction%")t=Zt("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=Zt("async function* () {}");else if(e==="%AsyncGenerator%"){var n=r("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=r("%AsyncGenerator%");i&&B&&(t=B(i.prototype))}return we[e]=t,t},Ti={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ar=Kt,Cr=zs,ef=ar.call(Function.call,Array.prototype.concat),rf=ar.call(Function.apply,Array.prototype.splice),Ri=ar.call(Function.call,String.prototype.replace),Lr=ar.call(Function.call,String.prototype.slice),tf=ar.call(Function.call,RegExp.prototype.exec),nf=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,af=/\\(\\)?/g,of=function(e){var t=Lr(e,0,1),n=Lr(e,-1);if(t==="%"&&n!=="%")throw new Ne("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new Ne("invalid intrinsic syntax, expected opening `%`");var i=[];return Ri(e,nf,function(a,o,u,f){i[i.length]=u?Ri(f,af,"$1"):o||a}),i},uf=function(e,t){var n=e,i;if(Cr(Ti,n)&&(i=Ti[n],n="%"+i[0]+"%"),Cr(we,n)){var a=we[n];if(a===Ue&&(a=Qs(n)),typeof a>"u"&&!t)throw new Be("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new Ne("intrinsic "+e+" does not exist!")},Qt=function(e,t){if(typeof e!="string"||e.length===0)throw new Be("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new Be('"allowMissing" argument must be a boolean');if(tf(/^%?[^%]*%?$/,e)===null)throw new Ne("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=of(e),i=n.length>0?n[0]:"",a=uf("%"+i+"%",t),o=a.name,u=a.value,f=!1,c=a.alias;c&&(i=c[0],rf(n,ef([0,1],c)));for(var l=1,s=!0;l<n.length;l+=1){var h=n[l],y=Lr(h,0,1),m=Lr(h,-1);if((y==='"'||y==="'"||y==="`"||m==='"'||m==="'"||m==="`")&&y!==m)throw new Ne("property names with quotes must have matching quotes");if((h==="constructor"||!s)&&(f=!0),i+="."+h,o="%"+i+"%",Cr(we,o))u=we[o];else if(u!=null){if(!(h in u)){if(!t)throw new Be("base intrinsic for "+e+" exists, but the property is not available.");return}if(me&&l+1>=n.length){var E=me(u,h);s=!!E,s&&"get"in E&&!("originalValue"in E.get)?u=E.get:u=u[h]}else s=Cr(u,h),u=u[h];s&&!f&&(we[o]=u)}}return u},Fi={exports:{}};(function(r){var e=Kt,t=Qt,n=t("%Function.prototype.apply%"),i=t("%Function.prototype.call%"),a=t("%Reflect.apply%",!0)||e.call(i,n),o=t("%Object.getOwnPropertyDescriptor%",!0),u=t("%Object.defineProperty%",!0),f=t("%Math.max%");if(u)try{u({},"a",{value:1})}catch{u=null}r.exports=function(s){var h=a(e,i,arguments);if(o&&u){var y=o(h,"length");y.configurable&&u(h,"length",{value:1+f(0,s.length-(arguments.length-1))})}return h};var c=function(){return a(e,n,arguments)};u?u(r.exports,"apply",{value:c}):r.exports.apply=c})(Fi);var sf=Fi.exports,Mi=Qt,Ni=sf,ff=Ni(Mi("String.prototype.indexOf")),cf=function(e,t){var n=Mi(e,!!t);return typeof n=="function"&&ff(e,".prototype.")>-1?Ni(n):n},Ce=typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{},Y=[],H=[],lf=typeof Uint8Array<"u"?Uint8Array:Array,en=!1;function Bi(){en=!0;for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,t=r.length;e<t;++e)Y[e]=r[e],H[r.charCodeAt(e)]=e;H["-".charCodeAt(0)]=62,H["_".charCodeAt(0)]=63}function hf(r){en||Bi();var e,t,n,i,a,o,u=r.length;if(u%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a=r[u-2]==="="?2:r[u-1]==="="?1:0,o=new lf(u*3/4-a),n=a>0?u-4:u;var f=0;for(e=0,t=0;e<n;e+=4,t+=3)i=H[r.charCodeAt(e)]<<18|H[r.charCodeAt(e+1)]<<12|H[r.charCodeAt(e+2)]<<6|H[r.charCodeAt(e+3)],o[f++]=i>>16&255,o[f++]=i>>8&255,o[f++]=i&255;return a===2?(i=H[r.charCodeAt(e)]<<2|H[r.charCodeAt(e+1)]>>4,o[f++]=i&255):a===1&&(i=H[r.charCodeAt(e)]<<10|H[r.charCodeAt(e+1)]<<4|H[r.charCodeAt(e+2)]>>2,o[f++]=i>>8&255,o[f++]=i&255),o}function pf(r){return Y[r>>18&63]+Y[r>>12&63]+Y[r>>6&63]+Y[r&63]}function df(r,e,t){for(var n,i=[],a=e;a<t;a+=3)n=(r[a]<<16)+(r[a+1]<<8)+r[a+2],i.push(pf(n));return i.join("")}function Di(r){en||Bi();for(var e,t=r.length,n=t%3,i="",a=[],o=16383,u=0,f=t-n;u<f;u+=o)a.push(df(r,u,u+o>f?f:u+o));return n===1?(e=r[t-1],i+=Y[e>>2],i+=Y[e<<4&63],i+="=="):n===2&&(e=(r[t-2]<<8)+r[t-1],i+=Y[e>>10],i+=Y[e>>4&63],i+=Y[e<<2&63],i+="="),a.push(i),a.join("")}function kr(r,e,t,n,i){var a,o,u=i*8-n-1,f=(1<<u)-1,c=f>>1,l=-7,s=t?i-1:0,h=t?-1:1,y=r[e+s];for(s+=h,a=y&(1<<-l)-1,y>>=-l,l+=u;l>0;a=a*256+r[e+s],s+=h,l-=8);for(o=a&(1<<-l)-1,a>>=-l,l+=n;l>0;o=o*256+r[e+s],s+=h,l-=8);if(a===0)a=1-c;else{if(a===f)return o?NaN:(y?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-c}return(y?-1:1)*o*Math.pow(2,a-n)}function Ui(r,e,t,n,i,a){var o,u,f,c=a*8-i-1,l=(1<<c)-1,s=l>>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=n?0:a-1,m=n?1:-1,E=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,o=l):(o=Math.floor(Math.log(e)/Math.LN2),e*(f=Math.pow(2,-o))<1&&(o--,f*=2),o+s>=1?e+=h/f:e+=h*Math.pow(2,1-s),e*f>=2&&(o++,f/=2),o+s>=l?(u=0,o=l):o+s>=1?(u=(e*f-1)*Math.pow(2,i),o=o+s):(u=e*Math.pow(2,s-1)*Math.pow(2,i),o=0));i>=8;r[t+y]=u&255,y+=m,u/=256,i-=8);for(o=o<<i|u,c+=i;c>0;r[t+y]=o&255,y+=m,o/=256,c-=8);r[t+y-m]|=E*128}var yf={}.toString,Ci=Array.isArray||function(r){return yf.call(r)=="[object Array]"};/*!
4
4
  * The buffer module from node.js, for the browser.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rechargeapps/storefront-client",
3
3
  "description": "Storefront client for Recharge",
4
- "version": "1.17.2",
4
+ "version": "1.17.3",
5
5
  "author": "Recharge Inc.",
6
6
  "license": "MIT",
7
7
  "main": "dist/cjs/index.js",