@rebilly/instruments 16.177.0 → 16.178.0

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.js CHANGED
@@ -2505,9 +2505,9 @@ function merge(...objs) {
2505
2505
  }
2506
2506
  return result;
2507
2507
  }
2508
- const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
2508
+ const extend = (a, b2, thisArg, { allOwnKeys } = {}) => {
2509
2509
  forEach(
2510
- b,
2510
+ b2,
2511
2511
  (val, key) => {
2512
2512
  if (thisArg && isFunction$1(val)) {
2513
2513
  Object.defineProperty(a, key, {
@@ -4179,21 +4179,21 @@ function mergeConfig$1(config1, config2) {
4179
4179
  }
4180
4180
  return source;
4181
4181
  }
4182
- function mergeDeepProperties(a, b, prop, caseless) {
4183
- if (!utils$1.isUndefined(b)) {
4184
- return getMergedValue(a, b, prop, caseless);
4182
+ function mergeDeepProperties(a, b2, prop, caseless) {
4183
+ if (!utils$1.isUndefined(b2)) {
4184
+ return getMergedValue(a, b2, prop, caseless);
4185
4185
  } else if (!utils$1.isUndefined(a)) {
4186
4186
  return getMergedValue(void 0, a, prop, caseless);
4187
4187
  }
4188
4188
  }
4189
- function valueFromConfig2(a, b) {
4190
- if (!utils$1.isUndefined(b)) {
4191
- return getMergedValue(void 0, b);
4189
+ function valueFromConfig2(a, b2) {
4190
+ if (!utils$1.isUndefined(b2)) {
4191
+ return getMergedValue(void 0, b2);
4192
4192
  }
4193
4193
  }
4194
- function defaultToConfig2(a, b) {
4195
- if (!utils$1.isUndefined(b)) {
4196
- return getMergedValue(void 0, b);
4194
+ function defaultToConfig2(a, b2) {
4195
+ if (!utils$1.isUndefined(b2)) {
4196
+ return getMergedValue(void 0, b2);
4197
4197
  } else if (!utils$1.isUndefined(a)) {
4198
4198
  return getMergedValue(void 0, a);
4199
4199
  }
@@ -4215,9 +4215,9 @@ function mergeConfig$1(config1, config2) {
4215
4215
  }
4216
4216
  return void 0;
4217
4217
  }
4218
- function mergeDirectKeys(a, b, prop) {
4218
+ function mergeDirectKeys(a, b2, prop) {
4219
4219
  if (utils$1.hasOwnProp(config2, prop)) {
4220
- return getMergedValue(a, b);
4220
+ return getMergedValue(a, b2);
4221
4221
  } else if (utils$1.hasOwnProp(config1, prop)) {
4222
4222
  return getMergedValue(void 0, a);
4223
4223
  }
@@ -4252,14 +4252,14 @@ function mergeConfig$1(config1, config2) {
4252
4252
  allowedSocketPaths: defaultToConfig2,
4253
4253
  responseEncoding: defaultToConfig2,
4254
4254
  validateStatus: mergeDirectKeys,
4255
- headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
4255
+ headers: (a, b2, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b2), prop, true)
4256
4256
  };
4257
4257
  utils$1.forEach(ownEnumerableKeys({ ...config1, ...config2 }), function computeConfigValue(prop) {
4258
4258
  if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
4259
4259
  const merge2 = utils$1.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
4260
4260
  const a = utils$1.hasOwnProp(config1, prop) ? config1[prop] : void 0;
4261
- const b = utils$1.hasOwnProp(config2, prop) ? config2[prop] : void 0;
4262
- const configValue = merge2(a, b, prop);
4261
+ const b2 = utils$1.hasOwnProp(config2, prop) ? config2[prop] : void 0;
4262
+ const configValue = merge2(a, b2, prop);
4263
4263
  utils$1.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
4264
4264
  });
4265
4265
  if (utils$1.hasOwnProp(config2, "validateStatus") && utils$1.isUndefined(config2.validateStatus) && getMergedTransitionalOption("validateStatusUndefinedResolves") === false) {
@@ -5810,12 +5810,12 @@ let A$1 = class A extends Error {
5810
5810
  n && n.data && (n.data.error ? l = n.data.error : n.data.detail ? l = n.data.detail : n.data.title && (l = n.data.title)), super(l), this.name = s || "RebillyError", this.response = n, this.request = u, this.config = r, this.status = n && n.status ? n.status : null, this.statusText = n && n.statusText ? n.statusText : null, this.details = n && n.data && n.data.details ? n.data.details : null, this.invalidFields = n && n.data && n.data.invalidFields ? n.data.invalidFields : null;
5811
5811
  }
5812
5812
  };
5813
- let bt$1 = class bt extends A$1 {
5813
+ let Rt$1 = class Rt extends A$1 {
5814
5814
  constructor(t) {
5815
5815
  super({ error: t, name: "RebillyRequestError" });
5816
5816
  }
5817
5817
  };
5818
- let Rt$1 = class Rt extends A$1 {
5818
+ let bt$1 = class bt extends A$1 {
5819
5819
  constructor(t) {
5820
5820
  super({ error: t, name: "RebillyValidationError" });
5821
5821
  }
@@ -5852,8 +5852,8 @@ let dt$1 = class dt extends A$1 {
5852
5852
  };
5853
5853
  const y = {
5854
5854
  RebillyError: A$1,
5855
- RebillyRequestError: bt$1,
5856
- RebillyValidationError: Rt$1,
5855
+ RebillyRequestError: Rt$1,
5856
+ RebillyValidationError: bt$1,
5857
5857
  RebillyNotFoundError: wt$1,
5858
5858
  RebillyConflictError: kt$1,
5859
5859
  RebillyForbiddenError: vt$1,
@@ -5938,30 +5938,30 @@ function st$1() {
5938
5938
  }
5939
5939
  return h2.slice(8, -1).toLowerCase().replace(/\s/g, "");
5940
5940
  };
5941
- function t(a) {
5942
- return typeof a.constructor == "function" ? a.constructor.name : null;
5941
+ function t(g) {
5942
+ return typeof g.constructor == "function" ? g.constructor.name : null;
5943
5943
  }
5944
- function s(a) {
5945
- return Array.isArray ? Array.isArray(a) : a instanceof Array;
5944
+ function s(g) {
5945
+ return Array.isArray ? Array.isArray(g) : g instanceof Array;
5946
5946
  }
5947
- function r(a) {
5948
- return a instanceof Error || typeof a.message == "string" && a.constructor && typeof a.constructor.stackTraceLimit == "number";
5947
+ function r(g) {
5948
+ return g instanceof Error || typeof g.message == "string" && g.constructor && typeof g.constructor.stackTraceLimit == "number";
5949
5949
  }
5950
- function n(a) {
5951
- return a instanceof Date ? true : typeof a.toDateString == "function" && typeof a.getDate == "function" && typeof a.setDate == "function";
5950
+ function n(g) {
5951
+ return g instanceof Date ? true : typeof g.toDateString == "function" && typeof g.getDate == "function" && typeof g.setDate == "function";
5952
5952
  }
5953
- function u(a) {
5954
- return a instanceof RegExp ? true : typeof a.flags == "string" && typeof a.ignoreCase == "boolean" && typeof a.multiline == "boolean" && typeof a.global == "boolean";
5953
+ function u(g) {
5954
+ return g instanceof RegExp ? true : typeof g.flags == "string" && typeof g.ignoreCase == "boolean" && typeof g.multiline == "boolean" && typeof g.global == "boolean";
5955
5955
  }
5956
- function o(a, p) {
5957
- return t(a) === "GeneratorFunction";
5956
+ function o(g, p) {
5957
+ return t(g) === "GeneratorFunction";
5958
5958
  }
5959
- function l(a) {
5960
- return typeof a.throw == "function" && typeof a.return == "function" && typeof a.next == "function";
5959
+ function l(g) {
5960
+ return typeof g.throw == "function" && typeof g.return == "function" && typeof g.next == "function";
5961
5961
  }
5962
- function i(a) {
5962
+ function i(g) {
5963
5963
  try {
5964
- if (typeof a.length == "number" && typeof a.callee == "function")
5964
+ if (typeof g.length == "number" && typeof g.callee == "function")
5965
5965
  return true;
5966
5966
  } catch (p) {
5967
5967
  if (p.message.indexOf("callee") !== -1)
@@ -5969,8 +5969,8 @@ function st$1() {
5969
5969
  }
5970
5970
  return false;
5971
5971
  }
5972
- function f(a) {
5973
- return a.constructor && typeof a.constructor.isBuffer == "function" ? a.constructor.isBuffer(a) : false;
5972
+ function f(g) {
5973
+ return g.constructor && typeof g.constructor.isBuffer == "function" ? g.constructor.isBuffer(g) : false;
5974
5974
  }
5975
5975
  return x$1;
5976
5976
  }
@@ -6022,8 +6022,8 @@ function St$1() {
6022
6022
  }
6023
6023
  }
6024
6024
  function r(i) {
6025
- const f = i.flags !== void 0 ? i.flags : /\w+$/.exec(i) || void 0, a = new i.constructor(i.source, f);
6026
- return a.lastIndex = i.lastIndex, a;
6025
+ const f = i.flags !== void 0 ? i.flags : /\w+$/.exec(i) || void 0, g = new i.constructor(i.source, f);
6026
+ return g.lastIndex = i.lastIndex, g;
6027
6027
  }
6028
6028
  function n(i) {
6029
6029
  const f = new i.constructor(i.byteLength);
@@ -6033,8 +6033,8 @@ function St$1() {
6033
6033
  return new i.constructor(i.buffer, i.byteOffset, i.length);
6034
6034
  }
6035
6035
  function o(i) {
6036
- const f = i.length, a = Buffer.allocUnsafe ? Buffer.allocUnsafe(f) : Buffer.from(f);
6037
- return i.copy(a), a;
6036
+ const f = i.length, g = Buffer.allocUnsafe ? Buffer.allocUnsafe(f) : Buffer.from(f);
6037
+ return i.copy(g), g;
6038
6038
  }
6039
6039
  function l(i) {
6040
6040
  return e ? Object(e.call(i)) : {};
@@ -6190,7 +6190,7 @@ E$1(I$1, "cancelAll", async (t) => {
6190
6190
  for (const s of q$1.getAll())
6191
6191
  await s.cancel(t), q$1.deleteById(s.id);
6192
6192
  });
6193
- const er = {
6193
+ const sr = {
6194
6194
  /**
6195
6195
  * @type Cancellation.cancelAll
6196
6196
  */
@@ -6223,10 +6223,10 @@ function O$1({ options: e }) {
6223
6223
  return e.apiVersion && (c = `${c}/${e.apiVersion}`), e.organizationId && (c = `${c}/organizations/${e.organizationId}`), `${c}`;
6224
6224
  }
6225
6225
  function o() {
6226
- const g = {
6227
- "REB-API-CONSUMER": `${["Rebilly", e.appName, "js-sdk"].filter((m2) => m2).join("/")}@43427bcd`
6226
+ const a = {
6227
+ "REB-API-CONSUMER": `${["Rebilly", e.appName, "js-sdk"].filter((m2) => m2).join("/")}@9e9001e`
6228
6228
  };
6229
- return e.apiKey && (g["REB-APIKEY"] = e.apiKey), g;
6229
+ return e.apiKey && (a["REB-APIKEY"] = e.apiKey), a;
6230
6230
  }
6231
6231
  function l() {
6232
6232
  return Dt$1(t.defaults.headers);
@@ -6235,38 +6235,38 @@ function O$1({ options: e }) {
6235
6235
  e.requestTimeout = Number(c), t.defaults.timeout = e.requestTimeout;
6236
6236
  }
6237
6237
  function f(c = e.jwt) {
6238
- const g = l();
6239
- e.apiKey = null, e.jwt = c, delete g.common["REB-APIKEY"], g.common.Authorization = `Bearer ${c}`, t.defaults.headers = g;
6238
+ const a = l();
6239
+ e.apiKey = null, e.jwt = c, delete a.common["REB-APIKEY"], a.common.Authorization = `Bearer ${c}`, t.defaults.headers = a;
6240
6240
  }
6241
- function a(c = e.publishableKey) {
6242
- const g = l();
6243
- e.publishableKey = c, g.common.Authorization = `${c}`, t.defaults.headers = g;
6241
+ function g(c = e.publishableKey) {
6242
+ const a = l();
6243
+ e.publishableKey = c, a.common.Authorization = `${c}`, t.defaults.headers = a;
6244
6244
  }
6245
- function p({ host: c, port: g, auth: m2 }) {
6245
+ function p({ host: c, port: a, auth: m2 }) {
6246
6246
  t.defaults.proxy = {
6247
6247
  host: c,
6248
- port: g,
6248
+ port: a,
6249
6249
  auth: m2
6250
6250
  };
6251
6251
  }
6252
- function h2({ live: c = null, sandbox: g = null }) {
6253
- c && (e.apiEndpoints.live = c), g && (e.apiEndpoints.sandbox = g), t.defaults.baseURL = u();
6252
+ function h2({ live: c = null, sandbox: a = null }) {
6253
+ c && (e.apiEndpoints.live = c), a && (e.apiEndpoints.sandbox = a), t.defaults.baseURL = u();
6254
6254
  }
6255
- function K2(c, { thenDelegate: g, catchDelegate: m2 = () => {
6255
+ function K2(c, { thenDelegate: a, catchDelegate: m2 = () => {
6256
6256
  } }) {
6257
6257
  return tt$1(c) && t.interceptors[w[c]].use(
6258
- g,
6258
+ a,
6259
6259
  m2
6260
6260
  );
6261
6261
  }
6262
- function N2(c, g) {
6263
- return tt$1(c) && t.interceptors[w[c]].eject(g);
6262
+ function N2(c, a) {
6263
+ return tt$1(c) && t.interceptors[w[c]].eject(a);
6264
6264
  }
6265
- function rt2({ thenDelegate: c, catchDelegate: g = () => {
6265
+ function rt2({ thenDelegate: c, catchDelegate: a = () => {
6266
6266
  } }) {
6267
6267
  return K2(w.request, {
6268
6268
  thenDelegate: c,
6269
- catchDelegate: g
6269
+ catchDelegate: a
6270
6270
  });
6271
6271
  }
6272
6272
  function nt2(c) {
@@ -6274,38 +6274,38 @@ function O$1({ options: e }) {
6274
6274
  }
6275
6275
  function ut2({
6276
6276
  thenDelegate: c,
6277
- catchDelegate: g = () => {
6277
+ catchDelegate: a = () => {
6278
6278
  }
6279
6279
  }) {
6280
6280
  return K2(w.response, {
6281
6281
  thenDelegate: c,
6282
- catchDelegate: g
6282
+ catchDelegate: a
6283
6283
  });
6284
6284
  }
6285
6285
  function ot2(c) {
6286
6286
  N2(w.response, c);
6287
6287
  }
6288
- function v({ request: c, isCollection: g, config: m2 }) {
6289
- const $2 = z2(m2), { id: b, cancelToken: $t2 } = q$1.save();
6288
+ function v({ request: c, isCollection: a, config: m2 }) {
6289
+ const $2 = z2(m2), { id: R, cancelToken: $t2 } = q$1.save();
6290
6290
  $2.cancelToken = $t2;
6291
6291
  const G2 = (async function() {
6292
6292
  try {
6293
6293
  const T = await c($2);
6294
6294
  return lt2({
6295
6295
  response: T,
6296
- isCollection: g,
6296
+ isCollection: a,
6297
6297
  config: $2
6298
6298
  });
6299
6299
  } catch (T) {
6300
6300
  return L2({ error: T });
6301
6301
  } finally {
6302
- q$1.deleteById(b);
6302
+ q$1.deleteById(R);
6303
6303
  }
6304
6304
  })();
6305
- return G2.cancel = (T) => I$1.cancelById(b, T), G2;
6305
+ return G2.cancel = (T) => I$1.cancelById(R, T), G2;
6306
6306
  }
6307
- function lt2({ response: c, isCollection: g, config: m2 }) {
6308
- return g ? new yt$1(c, m2) : new et$1(c, m2);
6307
+ function lt2({ response: c, isCollection: a, config: m2 }) {
6308
+ return a ? new yt$1(c, m2) : new et$1(c, m2);
6309
6309
  }
6310
6310
  function L2({ error: c }) {
6311
6311
  if (axios.isCancel(c))
@@ -6329,75 +6329,75 @@ function O$1({ options: e }) {
6329
6329
  }
6330
6330
  function ct2(c) {
6331
6331
  return c.params !== void 0 && (c.params = Object.keys(c.params).filter(
6332
- (g) => {
6332
+ (a) => {
6333
6333
  var m2;
6334
- return c.params[g] !== null && c.params[g] !== "" && !(g === "sort" && ((m2 = c.params[g]) == null ? void 0 : m2.length) === 0);
6334
+ return c.params[a] !== null && c.params[a] !== "" && !(a === "sort" && ((m2 = c.params[a]) == null ? void 0 : m2.length) === 0);
6335
6335
  }
6336
- ).reduce((g, m2) => {
6336
+ ).reduce((a, m2) => {
6337
6337
  const $2 = c.params[m2];
6338
- return g[m2] = m2 === "sort" && Array.isArray($2) ? $2.join(",") : $2, g;
6338
+ return a[m2] = m2 === "sort" && Array.isArray($2) ? $2.join(",") : $2, a;
6339
6339
  }, {})), c;
6340
6340
  }
6341
6341
  function z2(c = {}) {
6342
6342
  return { ...ct2(c) };
6343
6343
  }
6344
- function U2(c, g = {}) {
6344
+ function U2(c, a = {}) {
6345
6345
  return v({
6346
6346
  request: (m2) => t.get(c, m2),
6347
- config: { params: g }
6347
+ config: { params: a }
6348
6348
  });
6349
6349
  }
6350
- function it2(c, g) {
6350
+ function it2(c, a) {
6351
6351
  return v({
6352
6352
  request: (m2) => t.get(c, m2),
6353
- config: { params: g },
6353
+ config: { params: a },
6354
6354
  isCollection: true
6355
6355
  });
6356
6356
  }
6357
- function V2(c, g, m2 = {}) {
6357
+ function V2(c, a, m2 = {}) {
6358
6358
  let $2 = {};
6359
6359
  return m2.authenticate === false && ($2 = { headers: l() }, delete $2.headers.common["REB-APIKEY"], delete $2.headers.common.Authorization), m2.params && ($2.params = { ...m2.params }), v({
6360
- request: (b) => t.post(c, g, b),
6360
+ request: (R) => t.post(c, a, R),
6361
6361
  config: $2
6362
6362
  });
6363
6363
  }
6364
- function J2(c, g, m2 = {}) {
6364
+ function J2(c, a, m2 = {}) {
6365
6365
  return v({
6366
- request: ($2) => t.put(c, g, $2),
6366
+ request: ($2) => t.put(c, a, $2),
6367
6367
  config: { params: m2 }
6368
6368
  });
6369
6369
  }
6370
- function gt2(c, g) {
6370
+ function at2(c, a) {
6371
6371
  return v({
6372
- request: (m2) => t.patch(c, g, m2),
6372
+ request: (m2) => t.patch(c, a, m2),
6373
6373
  config: {}
6374
6374
  });
6375
6375
  }
6376
- function W2(c, g = null) {
6376
+ function W2(c, a = null) {
6377
6377
  return v({
6378
6378
  request: (m2) => t.delete(c, m2),
6379
- config: g != null ? { data: g } : {}
6379
+ config: a != null ? { data: a } : {}
6380
6380
  });
6381
6381
  }
6382
- function at2(c, g) {
6383
- return W2(c, g);
6382
+ function gt2(c, a) {
6383
+ return W2(c, a);
6384
6384
  }
6385
- async function mt2(c, g, m2, $2 = {}) {
6386
- if (g === "")
6385
+ async function mt2(c, a, m2, $2 = {}) {
6386
+ if (a === "")
6387
6387
  return V2(c, m2, { params: $2 });
6388
6388
  try {
6389
6389
  if ((await U2(c)).response.status === 200)
6390
6390
  throw new y.RebillyConflictError({
6391
6391
  message: "A resource already exists with this ID. Please use a different ID."
6392
6392
  });
6393
- } catch (b) {
6394
- if (b.name === "RebillyNotFoundError")
6393
+ } catch (R) {
6394
+ if (R.name === "RebillyNotFoundError")
6395
6395
  return J2(c, m2, $2);
6396
- throw b;
6396
+ throw R;
6397
6397
  }
6398
6398
  }
6399
- async function ft2(c, g) {
6400
- const m2 = z2(g);
6399
+ async function ft2(c, a) {
6400
+ const m2 = z2(a);
6401
6401
  try {
6402
6402
  const $2 = await t.get(c, m2);
6403
6403
  return new At$1($2, m2);
@@ -6414,15 +6414,15 @@ function O$1({ options: e }) {
6414
6414
  setTimeout: i,
6415
6415
  setProxyAgent: p,
6416
6416
  setSessionToken: f,
6417
- setPublishableKey: a,
6417
+ setPublishableKey: g,
6418
6418
  setEndpoints: h2,
6419
6419
  get: U2,
6420
6420
  getAll: it2,
6421
6421
  post: V2,
6422
6422
  put: J2,
6423
- patch: gt2,
6423
+ patch: at2,
6424
6424
  delete: W2,
6425
- deleteAll: at2,
6425
+ deleteAll: gt2,
6426
6426
  create: mt2,
6427
6427
  download: ft2
6428
6428
  };
@@ -7454,7 +7454,7 @@ function ie$1({ apiHandler: e }) {
7454
7454
  }
7455
7455
  };
7456
7456
  }
7457
- function ge({ apiHandler: e }) {
7457
+ function ae$1({ apiHandler: e }) {
7458
7458
  return {
7459
7459
  /**
7460
7460
  * @param { rebilly.GetEmailNotificationCollectionRequest } request
@@ -7466,7 +7466,7 @@ function ge({ apiHandler: e }) {
7466
7466
  }
7467
7467
  };
7468
7468
  }
7469
- function ae$1({ apiHandler: e }) {
7469
+ function ge({ apiHandler: e }) {
7470
7470
  return {
7471
7471
  /**
7472
7472
  * @param { rebilly.GetEventCollectionRequest } request
@@ -7771,7 +7771,7 @@ function pe$1({ apiHandler: e }) {
7771
7771
  const o = this.getAllAttachments(s);
7772
7772
  r.push(o);
7773
7773
  const i = (await o).items.map(
7774
- (a) => this.detach({ id: a.fields.id })
7774
+ (g) => this.detach({ id: g.fields.id })
7775
7775
  );
7776
7776
  r = [...r, i], await Promise.all(i);
7777
7777
  const f = e.delete(`files/${t}`);
@@ -8105,7 +8105,7 @@ function Ae$1({ apiHandler: e }) {
8105
8105
  }
8106
8106
  };
8107
8107
  }
8108
- function be({ apiHandler: e }) {
8108
+ function Re$1({ apiHandler: e }) {
8109
8109
  return {
8110
8110
  /**
8111
8111
  * @param { rebilly.GetJournalAccountCollectionRequest } request
@@ -8141,7 +8141,7 @@ function be({ apiHandler: e }) {
8141
8141
  }
8142
8142
  };
8143
8143
  }
8144
- function Re$1({ apiHandler: e }) {
8144
+ function be({ apiHandler: e }) {
8145
8145
  return {
8146
8146
  /**
8147
8147
  * @param { rebilly.GetJournalEntryCollectionRequest } request
@@ -8791,6 +8791,13 @@ function Be$1({ apiHandler: e }) {
8791
8791
  };
8792
8792
  }
8793
8793
  function Ke$1({ apiHandler: e }) {
8794
+ return {
8795
+ create({ data: t }) {
8796
+ return e.post("payout-request-splits", t);
8797
+ }
8798
+ };
8799
+ }
8800
+ function Ne$1({ apiHandler: e }) {
8794
8801
  return {
8795
8802
  /**
8796
8803
  * @param { rebilly.GetPayoutRequestCollectionRequest } request
@@ -8822,9 +8829,6 @@ function Ke$1({ apiHandler: e }) {
8822
8829
  patch({ id: t, data: s }) {
8823
8830
  return e.patch(`payout-requests/${t}`, s);
8824
8831
  },
8825
- cancel({ id: t, data: s }) {
8826
- return e.post(`payout-requests/${t}/cancel`, s);
8827
- },
8828
8832
  split({ id: t, data: s }) {
8829
8833
  return e.post(`payout-requests/${t}/split`, s);
8830
8834
  },
@@ -8863,14 +8867,14 @@ function Ke$1({ apiHandler: e }) {
8863
8867
  }
8864
8868
  };
8865
8869
  }
8866
- function Ne$1({ apiHandler: e }) {
8870
+ function Le$1({ apiHandler: e }) {
8867
8871
  return {
8868
8872
  create({ data: t }) {
8869
8873
  return e.post("payouts", t);
8870
8874
  }
8871
8875
  };
8872
8876
  }
8873
- function Le$1({ apiHandler: e }) {
8877
+ function ze$1({ apiHandler: e }) {
8874
8878
  return {
8875
8879
  /**
8876
8880
  * @param { rebilly.GetPlanCollectionRequest } request
@@ -8910,7 +8914,7 @@ function Le$1({ apiHandler: e }) {
8910
8914
  }
8911
8915
  };
8912
8916
  }
8913
- function ze$1({ apiHandler: e }) {
8917
+ function Ue$1({ apiHandler: e }) {
8914
8918
  return {
8915
8919
  order({ data: t }) {
8916
8920
  return e.post("previews/orders", t);
@@ -8923,7 +8927,7 @@ function ze$1({ apiHandler: e }) {
8923
8927
  }
8924
8928
  };
8925
8929
  }
8926
- function Ue$1({ apiHandler: e }) {
8930
+ function Ve$1({ apiHandler: e }) {
8927
8931
  return {
8928
8932
  /**
8929
8933
  * @param { rebilly.GetProductCollectionRequest } request
@@ -8963,7 +8967,7 @@ function Ue$1({ apiHandler: e }) {
8963
8967
  }
8964
8968
  };
8965
8969
  }
8966
- function Ve$1({ apiHandler: e }) {
8970
+ function Je$1({ apiHandler: e }) {
8967
8971
  return {
8968
8972
  startPermissionsEmulation({ data: t }) {
8969
8973
  return e.post("permissions-emulation", t);
@@ -9016,14 +9020,14 @@ function Ve$1({ apiHandler: e }) {
9016
9020
  }
9017
9021
  };
9018
9022
  }
9019
- function Je$1({ apiHandler: e }) {
9023
+ function We$1({ apiHandler: e }) {
9020
9024
  return {
9021
9025
  readyToPay({ data: t }) {
9022
9026
  return e.post("ready-to-pay", t);
9023
9027
  }
9024
9028
  };
9025
9029
  }
9026
- function We$1({ apiHandler: e }) {
9030
+ function Ge$1({ apiHandler: e }) {
9027
9031
  return {
9028
9032
  /**
9029
9033
  * @param { rebilly.GetQuoteCollectionRequest } request
@@ -9113,7 +9117,7 @@ function We$1({ apiHandler: e }) {
9113
9117
  }
9114
9118
  };
9115
9119
  }
9116
- function Ge$1({ apiHandler: e }) {
9120
+ function Ye$1({ apiHandler: e }) {
9117
9121
  return {
9118
9122
  /**
9119
9123
  * @returns { rebilly.GetExternalIdentifierResponsePromise } response
@@ -9144,7 +9148,7 @@ function Ge$1({ apiHandler: e }) {
9144
9148
  }
9145
9149
  };
9146
9150
  }
9147
- function Ye$1({ apiHandler: e }) {
9151
+ function Qe$1({ apiHandler: e }) {
9148
9152
  return {
9149
9153
  /**
9150
9154
  * @returns { rebilly.GetRiskScoreRulesResponsePromise } response
@@ -9172,7 +9176,7 @@ function Ye$1({ apiHandler: e }) {
9172
9176
  }
9173
9177
  };
9174
9178
  }
9175
- function Qe$1({ apiHandler: e }) {
9179
+ function Xe$1({ apiHandler: e }) {
9176
9180
  return {
9177
9181
  /**
9178
9182
  * @param { rebilly.GetRoleCollectionRequest } request
@@ -9214,7 +9218,7 @@ function Qe$1({ apiHandler: e }) {
9214
9218
  }
9215
9219
  };
9216
9220
  }
9217
- function Xe$1({ apiHandler: e }) {
9221
+ function Ze$1({ apiHandler: e }) {
9218
9222
  return {
9219
9223
  /**
9220
9224
  * @returns { rebilly.GetSearchResponsePromise } response
@@ -9225,7 +9229,7 @@ function Xe$1({ apiHandler: e }) {
9225
9229
  }
9226
9230
  };
9227
9231
  }
9228
- function Ze$1({ apiHandler: e }) {
9232
+ function _e$1({ apiHandler: e }) {
9229
9233
  return {
9230
9234
  /**
9231
9235
  * @param { rebilly.GetGridSegmentCollectionRequest } request
@@ -9265,7 +9269,7 @@ function Ze$1({ apiHandler: e }) {
9265
9269
  }
9266
9270
  };
9267
9271
  }
9268
- function _e$1({ apiHandler: e }) {
9272
+ function He$1({ apiHandler: e }) {
9269
9273
  return {
9270
9274
  /**
9271
9275
  * @returns { rebilly.GetSendThroughAttributionCollectionResponsePromise } response
@@ -9275,7 +9279,7 @@ function _e$1({ apiHandler: e }) {
9275
9279
  }
9276
9280
  };
9277
9281
  }
9278
- function He$1({ apiHandler: e }) {
9282
+ function ts({ apiHandler: e }) {
9279
9283
  return {
9280
9284
  /**
9281
9285
  * @param { rebilly.GetServiceCredentialCollectionRequest } request
@@ -9326,7 +9330,7 @@ function He$1({ apiHandler: e }) {
9326
9330
  }
9327
9331
  };
9328
9332
  }
9329
- function ts({ apiHandler: e }) {
9333
+ function es({ apiHandler: e }) {
9330
9334
  return {
9331
9335
  /**
9332
9336
  * @param { rebilly.GetShippingRateCollectionRequest } request
@@ -9366,7 +9370,7 @@ function ts({ apiHandler: e }) {
9366
9370
  }
9367
9371
  };
9368
9372
  }
9369
- function es({ apiHandler: e }) {
9373
+ function ss({ apiHandler: e }) {
9370
9374
  return {
9371
9375
  /**
9372
9376
  * @returns { rebilly.GetStatusResponsePromise } response
@@ -9376,7 +9380,7 @@ function es({ apiHandler: e }) {
9376
9380
  }
9377
9381
  };
9378
9382
  }
9379
- function ss({ apiHandler: e }) {
9383
+ function rs({ apiHandler: e }) {
9380
9384
  return {
9381
9385
  /**
9382
9386
  * @param { rebilly.GetSubscriptionCancellationCollectionRequest } request
@@ -9407,7 +9411,7 @@ function ss({ apiHandler: e }) {
9407
9411
  }
9408
9412
  };
9409
9413
  }
9410
- function rs({ apiHandler: e }) {
9414
+ function ns({ apiHandler: e }) {
9411
9415
  return {
9412
9416
  /**
9413
9417
  * @param { rebilly.GetSubscriptionPauseCollectionRequest } request
@@ -9441,7 +9445,7 @@ function rs({ apiHandler: e }) {
9441
9445
  }
9442
9446
  };
9443
9447
  }
9444
- function ns({ apiHandler: e }) {
9448
+ function us({ apiHandler: e }) {
9445
9449
  return {
9446
9450
  /**
9447
9451
  * @param { rebilly.GetSubscriptionReactivationCollectionRequest } request
@@ -9462,7 +9466,7 @@ function ns({ apiHandler: e }) {
9462
9466
  }
9463
9467
  };
9464
9468
  }
9465
- function us({ apiHandler: e }) {
9469
+ function os({ apiHandler: e }) {
9466
9470
  return {
9467
9471
  /**
9468
9472
  * @param { rebilly.GetSubscriptionCollectionRequest } request
@@ -9573,7 +9577,7 @@ function us({ apiHandler: e }) {
9573
9577
  }
9574
9578
  };
9575
9579
  }
9576
- function os({ apiHandler: e }) {
9580
+ function ls({ apiHandler: e }) {
9577
9581
  return {
9578
9582
  /**
9579
9583
  * @param { rebilly.GetTagCollectionRequest } request
@@ -9642,7 +9646,7 @@ function os({ apiHandler: e }) {
9642
9646
  }
9643
9647
  };
9644
9648
  }
9645
- function ls({ apiHandler: e }) {
9649
+ function cs({ apiHandler: e }) {
9646
9650
  return {
9647
9651
  /**
9648
9652
  * @param { rebilly.GetTagRuleCollectionRequest } request
@@ -9682,7 +9686,7 @@ function ls({ apiHandler: e }) {
9682
9686
  }
9683
9687
  };
9684
9688
  }
9685
- function cs({ apiHandler: e }) {
9689
+ function is({ apiHandler: e }) {
9686
9690
  return {
9687
9691
  /**
9688
9692
  * @param { rebilly.GetTrackingApiCollectionRequest } request
@@ -9764,7 +9768,7 @@ function cs({ apiHandler: e }) {
9764
9768
  }
9765
9769
  };
9766
9770
  }
9767
- function is({ apiHandler: e }) {
9771
+ function as({ apiHandler: e }) {
9768
9772
  return {
9769
9773
  /**
9770
9774
  * @param { rebilly.GetTransactionCollectionRequest } request
@@ -9871,7 +9875,7 @@ function gs({ apiHandler: e }) {
9871
9875
  }
9872
9876
  };
9873
9877
  }
9874
- function as({ apiHandler: e }) {
9878
+ function ms({ apiHandler: e }) {
9875
9879
  return {
9876
9880
  /**
9877
9881
  * @param { rebilly.GetUserCollectionRequest } request
@@ -9914,7 +9918,7 @@ function as({ apiHandler: e }) {
9914
9918
  }
9915
9919
  };
9916
9920
  }
9917
- function ms({ apiHandler: e }) {
9921
+ function fs({ apiHandler: e }) {
9918
9922
  return {
9919
9923
  /**
9920
9924
  * @param { rebilly.GetWebhookCollectionRequest } request
@@ -9948,7 +9952,7 @@ function ms({ apiHandler: e }) {
9948
9952
  }
9949
9953
  };
9950
9954
  }
9951
- function fs({ apiHandler: e }) {
9955
+ function $s({ apiHandler: e }) {
9952
9956
  return {
9953
9957
  /**
9954
9958
  * @param { rebilly.GetWebsiteCollectionRequest } request
@@ -9988,24 +9992,24 @@ function fs({ apiHandler: e }) {
9988
9992
  }
9989
9993
  };
9990
9994
  }
9991
- class $s {
9995
+ class ps {
9992
9996
  constructor({ apiHandler: t }) {
9993
9997
  this.accountRegistrationSettings = Ft$1({
9994
9998
  apiHandler: t
9995
9999
  }), this.account = Bt$1({ apiHandler: t }), this.allowlists = Kt$1({ apiHandler: t }), this.amlChecks = Nt$1({ apiHandler: t }), this.amlSettings = Lt$1({ apiHandler: t }), this.apiKeys = zt$1({ apiHandler: t }), this.applicationInstances = Ut$1({ apiHandler: t }), this.applications = Vt$1({ apiHandler: t }), this.balanceTransactions = Jt$1({ apiHandler: t }), this.billingPortals = Wt$1({ apiHandler: t }), this.blocklists = Gt$1({ apiHandler: t }), this.broadcastMessages = Yt$1({ apiHandler: t }), this.cashiers = Qt$1({ apiHandler: t }), this.checkoutForms = Xt$1({ apiHandler: t }), this.coupons = Zt$1({ apiHandler: t }), this.creditMemos = _t$1({ apiHandler: t }), this.customDomains = Ht$1({ apiHandler: t }), this.customFields = te$1({ apiHandler: t }), this.customerAuthentication = ee$1({ apiHandler: t }), this.customers = se$1({ apiHandler: t }), this.depositCustomPropertySets = re$1({
9996
10000
  apiHandler: t
9997
- }), this.depositRequests = ne$1({ apiHandler: t }), this.depositStrategies = ue$1({ apiHandler: t }), this.digitalWallets = oe$1({ apiHandler: t }), this.disputes = le$1({ apiHandler: t }), this.emailDeliverySettings = ce$1({ apiHandler: t }), this.emailMessages = ie$1({ apiHandler: t }), this.emailNotifications = ge({ apiHandler: t }), this.events = ae$1({ apiHandler: t }), this.externalIdentifiers = me$1({ apiHandler: t }), this.externalServicesSettings = fe$1({
10001
+ }), this.depositRequests = ne$1({ apiHandler: t }), this.depositStrategies = ue$1({ apiHandler: t }), this.digitalWallets = oe$1({ apiHandler: t }), this.disputes = le$1({ apiHandler: t }), this.emailDeliverySettings = ce$1({ apiHandler: t }), this.emailMessages = ie$1({ apiHandler: t }), this.emailNotifications = ae$1({ apiHandler: t }), this.events = ge({ apiHandler: t }), this.externalIdentifiers = me$1({ apiHandler: t }), this.externalServicesSettings = fe$1({
9998
10002
  apiHandler: t
9999
- }), this.fees = $e$1({ apiHandler: t }), this.files = pe$1({ apiHandler: t }), this.gatewayAccounts = he$1({ apiHandler: t }), this.integrations = ye$1({ apiHandler: t }), this.invoices = Ae$1({ apiHandler: t }), this.journalAccounts = be({ apiHandler: t }), this.journalEntries = Re$1({ apiHandler: t }), this.journalRecords = we$1({ apiHandler: t }), this.kycDocuments = ke$1({ apiHandler: t }), this.kycRequests = ve$1({ apiHandler: t }), this.kycSettings = qe$1({ apiHandler: t }), this.lists = Te$1({ apiHandler: t }), this.memberships = de$1({ apiHandler: t }), this.orderCancellations = Ie$1({ apiHandler: t }), this.orderPauses = Se$1({ apiHandler: t }), this.orderReactivations = Ee$1({ apiHandler: t }), this.orders = xe$1({ apiHandler: t }), this.organizationExports = Pe$1({ apiHandler: t }), this.organizations = Ce$1({ apiHandler: t }), this.paymentCardsBankNames = De$1({ apiHandler: t }), this.paymentInstruments = je$1({ apiHandler: t }), this.paymentMethods = Me$1({ apiHandler: t }), this.paymentTokens = Oe$1({ apiHandler: t }), this.payoutRequestAllocations = Fe$1({
10003
+ }), this.fees = $e$1({ apiHandler: t }), this.files = pe$1({ apiHandler: t }), this.gatewayAccounts = he$1({ apiHandler: t }), this.integrations = ye$1({ apiHandler: t }), this.invoices = Ae$1({ apiHandler: t }), this.journalAccounts = Re$1({ apiHandler: t }), this.journalEntries = be({ apiHandler: t }), this.journalRecords = we$1({ apiHandler: t }), this.kycDocuments = ke$1({ apiHandler: t }), this.kycRequests = ve$1({ apiHandler: t }), this.kycSettings = qe$1({ apiHandler: t }), this.lists = Te$1({ apiHandler: t }), this.memberships = de$1({ apiHandler: t }), this.orderCancellations = Ie$1({ apiHandler: t }), this.orderPauses = Se$1({ apiHandler: t }), this.orderReactivations = Ee$1({ apiHandler: t }), this.orders = xe$1({ apiHandler: t }), this.organizationExports = Pe$1({ apiHandler: t }), this.organizations = Ce$1({ apiHandler: t }), this.paymentCardsBankNames = De$1({ apiHandler: t }), this.paymentInstruments = je$1({ apiHandler: t }), this.paymentMethods = Me$1({ apiHandler: t }), this.paymentTokens = Oe$1({ apiHandler: t }), this.payoutRequestAllocations = Fe$1({
10000
10004
  apiHandler: t
10001
- }), this.payoutRequestBatches = Be$1({ apiHandler: t }), this.payoutRequests = Ke$1({ apiHandler: t }), this.payouts = Ne$1({ apiHandler: t }), this.plans = Le$1({ apiHandler: t }), this.previews = ze$1({ apiHandler: t }), this.products = Ue$1({ apiHandler: t }), this.profile = Ve$1({ apiHandler: t }), this.purchase = Je$1({ apiHandler: t }), this.quotes = We$1({ apiHandler: t }), this.resource = Ge$1({ apiHandler: t }), this.riskScoreRules = Ye$1({ apiHandler: t }), this.roles = Qe$1({ apiHandler: t }), this.search = Xe$1({ apiHandler: t }), this.segments = Ze$1({ apiHandler: t }), this.sendThroughAttribution = _e$1({ apiHandler: t }), this.serviceCredentials = He$1({ apiHandler: t }), this.shippingRates = ts({ apiHandler: t }), this.status = es({ apiHandler: t }), this.subscriptionCancellations = ss({
10005
+ }), this.payoutRequestBatches = Be$1({ apiHandler: t }), this.payoutRequestSplits = Ke$1({ apiHandler: t }), this.payoutRequests = Ne$1({ apiHandler: t }), this.payouts = Le$1({ apiHandler: t }), this.plans = ze$1({ apiHandler: t }), this.previews = Ue$1({ apiHandler: t }), this.products = Ve$1({ apiHandler: t }), this.profile = Je$1({ apiHandler: t }), this.purchase = We$1({ apiHandler: t }), this.quotes = Ge$1({ apiHandler: t }), this.resource = Ye$1({ apiHandler: t }), this.riskScoreRules = Qe$1({ apiHandler: t }), this.roles = Xe$1({ apiHandler: t }), this.search = Ze$1({ apiHandler: t }), this.segments = _e$1({ apiHandler: t }), this.sendThroughAttribution = He$1({ apiHandler: t }), this.serviceCredentials = ts({ apiHandler: t }), this.shippingRates = es({ apiHandler: t }), this.status = ss({ apiHandler: t }), this.subscriptionCancellations = rs({
10002
10006
  apiHandler: t
10003
- }), this.subscriptionPauses = rs({ apiHandler: t }), this.subscriptionReactivations = ns({
10007
+ }), this.subscriptionPauses = ns({ apiHandler: t }), this.subscriptionReactivations = us({
10004
10008
  apiHandler: t
10005
- }), this.subscriptions = us({ apiHandler: t }), this.tags = os({ apiHandler: t }), this.tagsRules = ls({ apiHandler: t }), this.tracking = cs({ apiHandler: t }), this.transactions = is({ apiHandler: t }), this.usages = gs({ apiHandler: t }), this.users = as({ apiHandler: t }), this.webhooks = ms({ apiHandler: t }), this.websites = fs({ apiHandler: t }), this.addRequestInterceptor = t.addRequestInterceptor, this.removeRequestInterceptor = t.removeRequestInterceptor, this.addResponseInterceptor = t.addResponseInterceptor, this.removeResponseInterceptor = t.removeResponseInterceptor, this.setTimeout = t.setTimeout, this.setProxyAgent = t.setProxyAgent, this.setSessionToken = t.setSessionToken, this.setPublishableKey = t.setPublishableKey, this.setEndpoints = t.setEndpoints, this.getCancellationToken = t.getCancellationToken, this.generateSignature = t.generateSignature;
10009
+ }), this.subscriptions = os({ apiHandler: t }), this.tags = ls({ apiHandler: t }), this.tagsRules = cs({ apiHandler: t }), this.tracking = is({ apiHandler: t }), this.transactions = as({ apiHandler: t }), this.usages = gs({ apiHandler: t }), this.users = ms({ apiHandler: t }), this.webhooks = fs({ apiHandler: t }), this.websites = $s({ apiHandler: t }), this.addRequestInterceptor = t.addRequestInterceptor, this.removeRequestInterceptor = t.removeRequestInterceptor, this.addResponseInterceptor = t.addResponseInterceptor, this.removeResponseInterceptor = t.removeResponseInterceptor, this.setTimeout = t.setTimeout, this.setProxyAgent = t.setProxyAgent, this.setSessionToken = t.setSessionToken, this.setPublishableKey = t.setPublishableKey, this.setEndpoints = t.setEndpoints, this.getCancellationToken = t.getCancellationToken, this.generateSignature = t.generateSignature;
10006
10010
  }
10007
10011
  }
10008
- function ps({ apiHandler: e }) {
10012
+ function hs({ apiHandler: e }) {
10009
10013
  return {
10010
10014
  /**
10011
10015
  * @returns { rebilly.GetCustomerSummaryMetricReportResponsePromise } response
@@ -10015,7 +10019,7 @@ function ps({ apiHandler: e }) {
10015
10019
  }
10016
10020
  };
10017
10021
  }
10018
- function hs({ apiHandler: e }) {
10022
+ function ys({ apiHandler: e }) {
10019
10023
  return {
10020
10024
  /**
10021
10025
  * @param { rebilly.GetDataExportCollectionRequest } request
@@ -10060,7 +10064,7 @@ function hs({ apiHandler: e }) {
10060
10064
  }
10061
10065
  };
10062
10066
  }
10063
- function ys({ apiHandler: e }) {
10067
+ function As({ apiHandler: e }) {
10064
10068
  return {
10065
10069
  /**
10066
10070
  * @returns { rebilly.GetHistogramAmlCheckReportResponsePromise } response
@@ -10104,7 +10108,7 @@ function ys({ apiHandler: e }) {
10104
10108
  }
10105
10109
  };
10106
10110
  }
10107
- function As({ apiHandler: e }) {
10111
+ function Rs({ apiHandler: e }) {
10108
10112
  return {
10109
10113
  /**
10110
10114
  * @returns { rebilly.GetApiLogSummaryReportResponsePromise } response
@@ -10149,6 +10153,18 @@ function As({ apiHandler: e }) {
10149
10153
  const n = { periodStart: t, periodEnd: s, filter: r };
10150
10154
  return e.get("reports/aml-checks-inherited-summary", n);
10151
10155
  },
10156
+ /**
10157
+ * @returns { rebilly.GetAmlAuditReportResponsePromise } response
10158
+ */
10159
+ getAmlAuditReport({
10160
+ personId: t,
10161
+ periodStart: s = null,
10162
+ periodEnd: r = null,
10163
+ filter: n = null
10164
+ }) {
10165
+ const u = { personId: t, periodStart: s, periodEnd: r, filter: n };
10166
+ return e.get("reports/aml-audit-reports", u);
10167
+ },
10152
10168
  /**
10153
10169
  * @returns { rebilly.GetCumulativeSubscriptionReportResponsePromise } response
10154
10170
  */
@@ -10409,7 +10425,7 @@ function As({ apiHandler: e }) {
10409
10425
  filter: i = null,
10410
10426
  criteria: f = null
10411
10427
  }) {
10412
- const a = {
10428
+ const g = {
10413
10429
  aggregationField: t,
10414
10430
  aggregationPeriod: s,
10415
10431
  includeSwitchedSubscriptions: r,
@@ -10420,7 +10436,7 @@ function As({ apiHandler: e }) {
10420
10436
  filter: i,
10421
10437
  criteria: f
10422
10438
  };
10423
- return e.get("reports/retention-percentage", a);
10439
+ return e.get("reports/retention-percentage", g);
10424
10440
  },
10425
10441
  /**
10426
10442
  * @returns { rebilly.GetRetentionValueReportResponsePromise } response
@@ -10435,7 +10451,7 @@ function As({ apiHandler: e }) {
10435
10451
  limit: l = null,
10436
10452
  offset: i = null,
10437
10453
  filter: f = null,
10438
- sort: a = null,
10454
+ sort: g = null,
10439
10455
  criteria: p = null
10440
10456
  }) {
10441
10457
  const h2 = {
@@ -10448,7 +10464,7 @@ function As({ apiHandler: e }) {
10448
10464
  limit: l,
10449
10465
  offset: i,
10450
10466
  filter: f,
10451
- sort: a,
10467
+ sort: g,
10452
10468
  criteria: p
10453
10469
  };
10454
10470
  return e.get("reports/retention-value", h2);
@@ -10586,7 +10602,7 @@ function bs({ apiHandler: e }) {
10586
10602
  }
10587
10603
  };
10588
10604
  }
10589
- function Rs({ apiHandler: e }) {
10605
+ function ws({ apiHandler: e }) {
10590
10606
  return {
10591
10607
  getActivityFeed({ eventTypes: t = null, limit: s = 1e3, offset: r = 0 }) {
10592
10608
  const n = {
@@ -10614,32 +10630,32 @@ function Rs({ apiHandler: e }) {
10614
10630
  }
10615
10631
  };
10616
10632
  }
10617
- function ws({ apiHandler: e }) {
10633
+ function ks({ apiHandler: e }) {
10618
10634
  return {
10619
10635
  query() {
10620
10636
  return e.get("location");
10621
10637
  }
10622
10638
  };
10623
10639
  }
10624
- const R = {
10625
- CustomersResource: ps,
10626
- DataExportsResource: hs,
10627
- HistogramsResource: ys,
10628
- ReportsResource: As,
10640
+ const b = {
10641
+ CustomersResource: hs,
10642
+ DataExportsResource: ys,
10643
+ HistogramsResource: As,
10644
+ ReportsResource: Rs,
10629
10645
  SubscriptionsResource: bs,
10630
- TimelinesResource: Rs,
10631
- LocationResource: ws
10646
+ TimelinesResource: ws,
10647
+ LocationResource: ks
10632
10648
  };
10633
- class ks {
10649
+ class vs {
10634
10650
  constructor({ apiHandler: t }) {
10635
- this.customers = R.CustomersResource({ apiHandler: t }), this.dataExports = R.DataExportsResource({
10651
+ this.customers = b.CustomersResource({ apiHandler: t }), this.dataExports = b.DataExportsResource({
10636
10652
  apiHandler: t
10637
- }), this.histograms = R.HistogramsResource({ apiHandler: t }), this.reports = R.ReportsResource({ apiHandler: t }), this.subscriptions = R.SubscriptionsResource({
10653
+ }), this.histograms = b.HistogramsResource({ apiHandler: t }), this.reports = b.ReportsResource({ apiHandler: t }), this.subscriptions = b.SubscriptionsResource({
10638
10654
  apiHandler: t
10639
- }), this.timelines = R.TimelinesResource({ apiHandler: t }), this.location = R.LocationResource({ apiHandler: t }), this.addRequestInterceptor = t.addRequestInterceptor, this.removeRequestInterceptor = t.removeRequestInterceptor, this.addResponseInterceptor = t.addResponseInterceptor, this.removeResponseInterceptor = t.removeResponseInterceptor, this.setTimeout = t.setTimeout, this.setProxyAgent = t.setProxyAgent, this.setSessionToken = t.setSessionToken, this.setEndpoints = t.setEndpoints, this.getCancellationToken = t.getCancellationToken;
10655
+ }), this.timelines = b.TimelinesResource({ apiHandler: t }), this.location = b.LocationResource({ apiHandler: t }), this.addRequestInterceptor = t.addRequestInterceptor, this.removeRequestInterceptor = t.removeRequestInterceptor, this.addResponseInterceptor = t.addResponseInterceptor, this.removeResponseInterceptor = t.removeResponseInterceptor, this.setTimeout = t.setTimeout, this.setProxyAgent = t.setProxyAgent, this.setSessionToken = t.setSessionToken, this.setEndpoints = t.setEndpoints, this.getCancellationToken = t.getCancellationToken;
10640
10656
  }
10641
10657
  }
10642
- function vs({ apiHandler: e }) {
10658
+ function qs({ apiHandler: e }) {
10643
10659
  return {
10644
10660
  /**
10645
10661
  * @returns { rebilly.StorefrontGetAccountResponsePromise } response
@@ -10671,7 +10687,7 @@ function vs({ apiHandler: e }) {
10671
10687
  }
10672
10688
  };
10673
10689
  }
10674
- function qs({ apiHandler: e }) {
10690
+ function Ts({ apiHandler: e }) {
10675
10691
  return {
10676
10692
  login({ data: t }) {
10677
10693
  return e.post("login", t);
@@ -10681,7 +10697,7 @@ function qs({ apiHandler: e }) {
10681
10697
  }
10682
10698
  };
10683
10699
  }
10684
- function Ts({ apiHandler: e }) {
10700
+ function ds({ apiHandler: e }) {
10685
10701
  return {
10686
10702
  /**
10687
10703
  * @returns { rebilly.StorefrontGetBillingPortalResponsePromise } response
@@ -10691,7 +10707,7 @@ function Ts({ apiHandler: e }) {
10691
10707
  }
10692
10708
  };
10693
10709
  }
10694
- function ds({ apiHandler: e }) {
10710
+ function Is({ apiHandler: e }) {
10695
10711
  return {
10696
10712
  /**
10697
10713
  * @returns { rebilly.StorefrontGetCashierResponsePromise } response
@@ -10704,7 +10720,7 @@ function ds({ apiHandler: e }) {
10704
10720
  }
10705
10721
  };
10706
10722
  }
10707
- function Is({ apiHandler: e }) {
10723
+ function Ss({ apiHandler: e }) {
10708
10724
  return {
10709
10725
  /**
10710
10726
  * @returns { rebilly.StorefrontGetCheckoutFormResponsePromise } response
@@ -10714,7 +10730,7 @@ function Is({ apiHandler: e }) {
10714
10730
  }
10715
10731
  };
10716
10732
  }
10717
- function Ss({ apiHandler: e }) {
10733
+ function Es({ apiHandler: e }) {
10718
10734
  return {
10719
10735
  /**
10720
10736
  * @param { rebilly.StorefrontGetCustomFieldCollectionRequest } request
@@ -10726,7 +10742,7 @@ function Ss({ apiHandler: e }) {
10726
10742
  }
10727
10743
  };
10728
10744
  }
10729
- function Es({ apiHandler: e }) {
10745
+ function xs({ apiHandler: e }) {
10730
10746
  return {
10731
10747
  /**
10732
10748
  * @returns { rebilly.StorefrontGetDepositRequestResponsePromise } response
@@ -10737,14 +10753,14 @@ function Es({ apiHandler: e }) {
10737
10753
  }
10738
10754
  };
10739
10755
  }
10740
- function xs({ apiHandler: e }) {
10756
+ function Ps({ apiHandler: e }) {
10741
10757
  return {
10742
10758
  create({ data: t }) {
10743
10759
  return e.post("deposit", t);
10744
10760
  }
10745
10761
  };
10746
10762
  }
10747
- function Ps({ apiHandler: e }) {
10763
+ function Cs({ apiHandler: e }) {
10748
10764
  return {
10749
10765
  /**
10750
10766
  * @returns { rebilly.StorefrontGetDepositStrategyResponsePromise } response
@@ -10754,7 +10770,7 @@ function Ps({ apiHandler: e }) {
10754
10770
  }
10755
10771
  };
10756
10772
  }
10757
- function Cs({ apiHandler: e }) {
10773
+ function Ds({ apiHandler: e }) {
10758
10774
  return {
10759
10775
  /**
10760
10776
  * @param { rebilly.StorefrontGetInvoiceCollectionRequest } request
@@ -10790,7 +10806,7 @@ function Cs({ apiHandler: e }) {
10790
10806
  }
10791
10807
  };
10792
10808
  }
10793
- function Ds({ apiHandler: e }) {
10809
+ function js({ apiHandler: e }) {
10794
10810
  return {
10795
10811
  create({ data: t }) {
10796
10812
  return e.post("kyc-documents", t);
@@ -10806,7 +10822,7 @@ function Ds({ apiHandler: e }) {
10806
10822
  }
10807
10823
  };
10808
10824
  }
10809
- function js({ apiHandler: e }) {
10825
+ function Ms({ apiHandler: e }) {
10810
10826
  return {
10811
10827
  create({ data: t }) {
10812
10828
  return e.post("kyc-liveness-sessions", t);
@@ -10822,7 +10838,7 @@ function js({ apiHandler: e }) {
10822
10838
  }
10823
10839
  };
10824
10840
  }
10825
- function Ms({ apiHandler: e }) {
10841
+ function Os({ apiHandler: e }) {
10826
10842
  return {
10827
10843
  /**
10828
10844
  * @returns { rebilly.StorefrontGetKycRequestResponsePromise } response
@@ -10833,7 +10849,7 @@ function Ms({ apiHandler: e }) {
10833
10849
  }
10834
10850
  };
10835
10851
  }
10836
- function Os({ apiHandler: e }) {
10852
+ function Fs({ apiHandler: e }) {
10837
10853
  return {
10838
10854
  /**
10839
10855
  * @returns { rebilly.StorefrontGetOrderUpcomingInvoiceResponsePromise } response
@@ -10875,7 +10891,7 @@ function Os({ apiHandler: e }) {
10875
10891
  }
10876
10892
  };
10877
10893
  }
10878
- function Fs({ apiHandler: e }) {
10894
+ function Bs({ apiHandler: e }) {
10879
10895
  return {
10880
10896
  /**
10881
10897
  * @param { rebilly.StorefrontGetPaymentInstrumentCollectionRequest } request
@@ -10918,7 +10934,7 @@ function Fs({ apiHandler: e }) {
10918
10934
  }
10919
10935
  };
10920
10936
  }
10921
- function Bs({ apiHandler: e }) {
10937
+ function Ks({ apiHandler: e }) {
10922
10938
  return {
10923
10939
  /**
10924
10940
  * @param { rebilly.StorefrontGetPayoutRequestCollectionRequest } request
@@ -10948,7 +10964,7 @@ function Bs({ apiHandler: e }) {
10948
10964
  }
10949
10965
  };
10950
10966
  }
10951
- function Ks({ apiHandler: e }) {
10967
+ function Ns({ apiHandler: e }) {
10952
10968
  return {
10953
10969
  /**
10954
10970
  * @param { rebilly.StorefrontGetPlanCollectionRequest } request
@@ -10974,7 +10990,7 @@ function Ks({ apiHandler: e }) {
10974
10990
  }
10975
10991
  };
10976
10992
  }
10977
- function Ns({ apiHandler: e }) {
10993
+ function Ls({ apiHandler: e }) {
10978
10994
  return {
10979
10995
  /**
10980
10996
  * @param { rebilly.StorefrontGetProductCollectionRequest } request
@@ -10998,7 +11014,7 @@ function Ns({ apiHandler: e }) {
10998
11014
  }
10999
11015
  };
11000
11016
  }
11001
- function Ls({ apiHandler: e }) {
11017
+ function zs({ apiHandler: e }) {
11002
11018
  return {
11003
11019
  payment({ data: t }) {
11004
11020
  return e.post("payment", t);
@@ -11014,7 +11030,7 @@ function Ls({ apiHandler: e }) {
11014
11030
  }
11015
11031
  };
11016
11032
  }
11017
- function zs({ apiHandler: e }) {
11033
+ function Us({ apiHandler: e }) {
11018
11034
  return {
11019
11035
  /**
11020
11036
  * @returns { rebilly.StorefrontGetQuoteResponsePromise } response
@@ -11038,21 +11054,21 @@ function zs({ apiHandler: e }) {
11038
11054
  }
11039
11055
  };
11040
11056
  }
11041
- function Us({ apiHandler: e }) {
11057
+ function Vs({ apiHandler: e }) {
11042
11058
  return {
11043
11059
  readyToPayout({ data: t }) {
11044
11060
  return e.post("ready-to-payout", t);
11045
11061
  }
11046
11062
  };
11047
11063
  }
11048
- function Vs({ apiHandler: e }) {
11064
+ function Js({ apiHandler: e }) {
11049
11065
  return {
11050
11066
  reactivation({ data: t }) {
11051
11067
  return e.post("subscription-reactivations", t);
11052
11068
  }
11053
11069
  };
11054
11070
  }
11055
- function Js({ apiHandler: e }) {
11071
+ function Ws({ apiHandler: e }) {
11056
11072
  return {
11057
11073
  changeItems({ id: t, data: s }) {
11058
11074
  return e.post(`subscriptions/${t}/change-items`, s);
@@ -11062,7 +11078,7 @@ function Js({ apiHandler: e }) {
11062
11078
  }
11063
11079
  };
11064
11080
  }
11065
- function Ws({ apiHandler: e }) {
11081
+ function Gs({ apiHandler: e }) {
11066
11082
  return {
11067
11083
  /**
11068
11084
  * @param { rebilly.StorefrontGetTransactionCollectionRequest } request
@@ -11111,7 +11127,7 @@ function Ws({ apiHandler: e }) {
11111
11127
  }
11112
11128
  };
11113
11129
  }
11114
- function Gs({ apiHandler: e }) {
11130
+ function Ys({ apiHandler: e }) {
11115
11131
  return {
11116
11132
  /**
11117
11133
  * @returns { rebilly.StorefrontGetWebsiteResponsePromise } response
@@ -11121,27 +11137,27 @@ function Gs({ apiHandler: e }) {
11121
11137
  }
11122
11138
  };
11123
11139
  }
11124
- class Ys {
11140
+ class Qs {
11125
11141
  constructor({ apiHandler: t }) {
11126
- this.account = vs({ apiHandler: t }), this.authorization = qs({ apiHandler: t }), this.billingPortals = Ts({ apiHandler: t }), this.cashiers = ds({ apiHandler: t }), this.checkoutForms = Is({ apiHandler: t }), this.customFields = Ss({ apiHandler: t }), this.depositRequests = Es({ apiHandler: t }), this.deposit = xs({ apiHandler: t }), this.depositStrategies = Ps({ apiHandler: t }), this.invoices = Cs({ apiHandler: t }), this.kycDocuments = Ds({ apiHandler: t }), this.kycLivenessSessions = js({ apiHandler: t }), this.kycRequests = Ms({ apiHandler: t }), this.orders = Os({ apiHandler: t }), this.paymentInstruments = Fs({ apiHandler: t }), this.payoutRequests = Bs({ apiHandler: t }), this.plans = Ks({ apiHandler: t }), this.products = Ns({ apiHandler: t }), this.purchase = Ls({ apiHandler: t }), this.quotes = zs({ apiHandler: t }), this.readyToPayout = Us({ apiHandler: t }), this.subscriptionReactivations = Vs({
11142
+ this.account = qs({ apiHandler: t }), this.authorization = Ts({ apiHandler: t }), this.billingPortals = ds({ apiHandler: t }), this.cashiers = Is({ apiHandler: t }), this.checkoutForms = Ss({ apiHandler: t }), this.customFields = Es({ apiHandler: t }), this.depositRequests = xs({ apiHandler: t }), this.deposit = Ps({ apiHandler: t }), this.depositStrategies = Cs({ apiHandler: t }), this.invoices = Ds({ apiHandler: t }), this.kycDocuments = js({ apiHandler: t }), this.kycLivenessSessions = Ms({ apiHandler: t }), this.kycRequests = Os({ apiHandler: t }), this.orders = Fs({ apiHandler: t }), this.paymentInstruments = Bs({ apiHandler: t }), this.payoutRequests = Ks({ apiHandler: t }), this.plans = Ns({ apiHandler: t }), this.products = Ls({ apiHandler: t }), this.purchase = zs({ apiHandler: t }), this.quotes = Us({ apiHandler: t }), this.readyToPayout = Vs({ apiHandler: t }), this.subscriptionReactivations = Js({
11127
11143
  apiHandler: t
11128
- }), this.subscriptions = Js({ apiHandler: t }), this.transactions = Ws({ apiHandler: t }), this.websites = Gs({ apiHandler: t }), this.checkoutForm = this.checkoutForms, this.billingPortal = this.billingPortals, this.addRequestInterceptor = t.addRequestInterceptor, this.removeRequestInterceptor = t.removeRequestInterceptor, this.addResponseInterceptor = t.addResponseInterceptor, this.removeResponseInterceptor = t.removeResponseInterceptor, this.setTimeout = t.setTimeout, this.setProxyAgent = t.setProxyAgent, this.setSessionToken = t.setSessionToken, this.setPublishableKey = t.setPublishableKey, this.setEndpoints = t.setEndpoints, this.getCancellationToken = t.getCancellationToken, this.generateSignature = t.generateSignature;
11144
+ }), this.subscriptions = Ws({ apiHandler: t }), this.transactions = Gs({ apiHandler: t }), this.websites = Ys({ apiHandler: t }), this.checkoutForm = this.checkoutForms, this.billingPortal = this.billingPortals, this.addRequestInterceptor = t.addRequestInterceptor, this.removeRequestInterceptor = t.removeRequestInterceptor, this.addResponseInterceptor = t.addResponseInterceptor, this.removeResponseInterceptor = t.removeResponseInterceptor, this.setTimeout = t.setTimeout, this.setProxyAgent = t.setProxyAgent, this.setSessionToken = t.setSessionToken, this.setPublishableKey = t.setPublishableKey, this.setEndpoints = t.setEndpoints, this.getCancellationToken = t.getCancellationToken, this.generateSignature = t.generateSignature;
11129
11145
  }
11130
11146
  }
11131
- function Qs({ apiHandler: e }) {
11132
- return new $s({ apiHandler: e });
11133
- }
11134
11147
  function Xs({ apiHandler: e }) {
11135
- return new ks({ apiHandler: e });
11148
+ return new ps({ apiHandler: e });
11136
11149
  }
11137
11150
  function Zs({ apiHandler: e }) {
11138
- return new Ys({ apiHandler: e });
11151
+ return new vs({ apiHandler: e });
11152
+ }
11153
+ function _s({ apiHandler: e }) {
11154
+ return new Qs({ apiHandler: e });
11139
11155
  }
11140
11156
  const F$1 = {
11141
11157
  live: "https://api.rebilly.com",
11142
11158
  sandbox: "https://api-sandbox.rebilly.com"
11143
11159
  }, B$1 = 6e3;
11144
- function sr({
11160
+ function rr({
11145
11161
  apiKey: e = null,
11146
11162
  sandbox: t = false,
11147
11163
  timeout: s = B$1,
@@ -11167,9 +11183,9 @@ function sr({
11167
11183
  organizationId: r,
11168
11184
  appName: (u == null ? void 0 : u.appName) ?? null
11169
11185
  }, l = O$1({ options: o });
11170
- return Qs({ apiHandler: l });
11186
+ return Xs({ apiHandler: l });
11171
11187
  }
11172
- function rr({
11188
+ function nr({
11173
11189
  apiKey: e = null,
11174
11190
  sandbox: t = false,
11175
11191
  timeout: s = B$1,
@@ -11195,9 +11211,9 @@ function rr({
11195
11211
  organizationId: r,
11196
11212
  appName: (u == null ? void 0 : u.appName) ?? null
11197
11213
  }, l = O$1({ options: o });
11198
- return Xs({ apiHandler: l });
11214
+ return Zs({ apiHandler: l });
11199
11215
  }
11200
- function nr({
11216
+ function ur({
11201
11217
  publishableKey: e = null,
11202
11218
  jwt: t = null,
11203
11219
  sandbox: s = false,
@@ -11224,7 +11240,7 @@ function nr({
11224
11240
  organizationId: n,
11225
11241
  appName: (o == null ? void 0 : o.appName) ?? null
11226
11242
  }, i = O$1({ options: l });
11227
- return i.setSessionToken(l.jwt), Zs({ apiHandler: i });
11243
+ return i.setSessionToken(l.jwt), _s({ apiHandler: i });
11228
11244
  }
11229
11245
  const TIMEOUT = 6e4;
11230
11246
  function validateStateForStorefront() {
@@ -11265,15 +11281,15 @@ class StorefrontInstance {
11265
11281
  appName: appName ? `${appName}/instruments` : "instruments"
11266
11282
  }
11267
11283
  };
11268
- const api = nr(config);
11284
+ const api = ur(config);
11269
11285
  const rebilly = (
11270
11286
  // @ts-expect-error refactor with above todo
11271
- typeof sr.default === "function" ? (
11287
+ typeof rr.default === "function" ? (
11272
11288
  // @ts-expect-error refactor with above todo
11273
- sr.default(config)
11274
- ) : sr(config)
11289
+ rr.default(config)
11290
+ ) : rr(config)
11275
11291
  );
11276
- const experimental = rr(config);
11292
+ const experimental = nr(config);
11277
11293
  api.setSessionToken(publishableKey || jwt);
11278
11294
  rebilly.setSessionToken(publishableKey || jwt);
11279
11295
  experimental.setSessionToken(publishableKey || jwt);
@@ -11331,7 +11347,7 @@ async function fetchSummary({
11331
11347
  data = null
11332
11348
  } = {}) {
11333
11349
  return Endpoint(async () => {
11334
- var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t2, _u, _v, _w, _x, _y, _z;
11350
+ var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s2, _t2, _u, _v, _w, _x, _y, _z;
11335
11351
  const items = (_a = state.options) == null ? void 0 : _a.items;
11336
11352
  const websiteId = ((_b = state.options) == null ? void 0 : _b.websiteId) || null;
11337
11353
  const bumpOfferProductsIds = ((_d = (_c = state.options) == null ? void 0 : _c.bumpOffer) == null ? void 0 : _d.map(({ planId }) => planId)) || [];
@@ -11374,7 +11390,7 @@ async function fetchSummary({
11374
11390
  }
11375
11391
  }
11376
11392
  if (!((_q = state.data) == null ? void 0 : _q.acceptBumpOffer) && // @ts-expect-error TODO: type "addonLineItems" once "views/common/iframe/events/update-addons-handler.js" is typed.
11377
- ((_t2 = (_s = (_r = state.data) == null ? void 0 : _r.previewPurchase) == null ? void 0 : _s.addonLineItems) == null ? void 0 : _t2.length) > 0) {
11393
+ ((_t2 = (_s2 = (_r = state.data) == null ? void 0 : _r.previewPurchase) == null ? void 0 : _s2.addonLineItems) == null ? void 0 : _t2.length) > 0) {
11378
11394
  payload.data.items = (_u = payload.data.items) == null ? void 0 : _u.concat(
11379
11395
  // @ts-expect-error TODO: type "addonLineItems" once "views/common/iframe/events/update-addons-handler.js" is typed.
11380
11396
  state.data.previewPurchase.addonLineItems
@@ -12068,15 +12084,15 @@ function ve(e, t, n) {
12068
12084
  return l.trys.push([4, , 10, 11]), [4, new Promise(function(s, u) {
12069
12085
  var f = false, d2 = function() {
12070
12086
  f = true, s();
12071
- }, p = function(b) {
12072
- f = true, u(b);
12087
+ }, p = function(b2) {
12088
+ f = true, u(b2);
12073
12089
  };
12074
12090
  c.onload = d2, c.onerror = p;
12075
12091
  var g = c.style;
12076
12092
  g.setProperty("display", "block", "important"), g.position = "absolute", g.top = "0", g.left = "0", g.visibility = "hidden", t && "srcdoc" in c ? c.srcdoc = t : c.src = "about:blank", o.body.appendChild(c);
12077
12093
  var y2 = function() {
12078
- var b, w2;
12079
- f || (((w2 = (b = c.contentWindow) === null || b === void 0 ? void 0 : b.document) === null || w2 === void 0 ? void 0 : w2.readyState) === "complete" ? d2() : setTimeout(y2, 10));
12094
+ var b2, w2;
12095
+ f || (((w2 = (b2 = c.contentWindow) === null || b2 === void 0 ? void 0 : b2.document) === null || w2 === void 0 ? void 0 : w2.readyState) === "complete" ? d2() : setTimeout(y2, 10));
12080
12096
  };
12081
12097
  y2();
12082
12098
  })];
@@ -12180,25 +12196,25 @@ function Je() {
12180
12196
  var n = t.document, a = n.body;
12181
12197
  a.style.fontSize = He;
12182
12198
  var i = n.createElement("div"), r = {}, o = {}, c = function(y2) {
12183
- var b = n.createElement("span"), w2 = b.style;
12184
- return w2.position = "absolute", w2.top = "0", w2.left = "0", w2.fontFamily = y2, b.textContent = Ee, i.appendChild(b), b;
12185
- }, l = function(y2, b) {
12186
- return c("'".concat(y2, "',").concat(b));
12199
+ var b2 = n.createElement("span"), w2 = b2.style;
12200
+ return w2.position = "absolute", w2.top = "0", w2.left = "0", w2.fontFamily = y2, b2.textContent = Ee, i.appendChild(b2), b2;
12201
+ }, l = function(y2, b2) {
12202
+ return c("'".concat(y2, "',").concat(b2));
12187
12203
  }, s = function() {
12188
12204
  return M.map(c);
12189
12205
  }, u = function() {
12190
- for (var y2 = {}, b = function(P2) {
12206
+ for (var y2 = {}, b2 = function(P2) {
12191
12207
  y2[P2] = M.map(function(T) {
12192
12208
  return l(P2, T);
12193
12209
  });
12194
- }, w2 = 0, R2 = te; w2 < R2.length; w2++) {
12195
- var D2 = R2[w2];
12196
- b(D2);
12210
+ }, w2 = 0, R = te; w2 < R.length; w2++) {
12211
+ var D2 = R[w2];
12212
+ b2(D2);
12197
12213
  }
12198
12214
  return y2;
12199
12215
  }, f = function(y2) {
12200
- return M.some(function(b, w2) {
12201
- return y2[w2].offsetWidth !== r[b] || y2[w2].offsetHeight !== o[b];
12216
+ return M.some(function(b2, w2) {
12217
+ return y2[w2].offsetWidth !== r[b2] || y2[w2].offsetHeight !== o[b2];
12202
12218
  });
12203
12219
  }, d2 = s(), p = u();
12204
12220
  a.appendChild(i);
@@ -12880,11 +12896,11 @@ var m = Math, S = function() {
12880
12896
  function It() {
12881
12897
  var e = m.acos || S, t = m.acosh || S, n = m.asin || S, a = m.asinh || S, i = m.atanh || S, r = m.atan || S, o = m.sin || S, c = m.sinh || S, l = m.cos || S, s = m.cosh || S, u = m.tan || S, f = m.tanh || S, d2 = m.exp || S, p = m.expm1 || S, g = m.log1p || S, y2 = function(v) {
12882
12898
  return m.pow(m.PI, v);
12883
- }, b = function(v) {
12899
+ }, b2 = function(v) {
12884
12900
  return m.log(v + m.sqrt(v * v - 1));
12885
12901
  }, w2 = function(v) {
12886
12902
  return m.log(v + m.sqrt(v * v + 1));
12887
- }, R2 = function(v) {
12903
+ }, R = function(v) {
12888
12904
  return m.log((1 + v) / (1 - v)) / 2;
12889
12905
  }, D2 = function(v) {
12890
12906
  return m.exp(v) - 1 / m.exp(v) / 2;
@@ -12900,12 +12916,12 @@ function It() {
12900
12916
  return {
12901
12917
  acos: e(0.12312423423423424),
12902
12918
  acosh: t(1e308),
12903
- acoshPf: b(1e154),
12919
+ acoshPf: b2(1e154),
12904
12920
  asin: n(0.12312423423423424),
12905
12921
  asinh: a(1),
12906
12922
  asinhPf: w2(1),
12907
12923
  atanh: i(0.5),
12908
- atanhPf: R2(0.5),
12924
+ atanhPf: R(0.5),
12909
12925
  atan: r(0.5),
12910
12926
  sin: o(-1e300),
12911
12927
  sinh: c(1),
@@ -12952,13 +12968,13 @@ function Yt() {
12952
12968
  var o = r[i], c = J[o], l = c[0], s = l === void 0 ? {} : l, u = c[1], f = u === void 0 ? Gt : u, d2 = e.createElement("span");
12953
12969
  d2.textContent = f, d2.style.whiteSpace = "nowrap";
12954
12970
  for (var p = 0, g = Object.keys(s); p < g.length; p++) {
12955
- var y2 = g[p], b = s[y2];
12956
- b !== void 0 && (d2.style[y2] = b);
12971
+ var y2 = g[p], b2 = s[y2];
12972
+ b2 !== void 0 && (d2.style[y2] = b2);
12957
12973
  }
12958
12974
  n[o] = d2, t.appendChild(e.createElement("br")), t.appendChild(d2);
12959
12975
  }
12960
- for (var w2 = 0, R2 = Object.keys(J); w2 < R2.length; w2++) {
12961
- var o = R2[w2];
12976
+ for (var w2 = 0, R = Object.keys(J); w2 < R.length; w2++) {
12977
+ var o = R[w2];
12962
12978
  a[o] = n[o].getBoundingClientRect().width;
12963
12979
  }
12964
12980
  return a;
@@ -14076,7 +14092,7 @@ async function fetchData({
14076
14092
  fetchPayoutRequest: fetchPayoutRequest$1 = fetchPayoutRequest,
14077
14093
  fetchPlansFromAddonsBumpOffer: fetchPlansFromAddonsBumpOffer$1 = fetchPlansFromAddonsBumpOffer
14078
14094
  } = {}) {
14079
- var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t2, _u;
14095
+ var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s2, _t2, _u;
14080
14096
  try {
14081
14097
  state.data = new DataInstance();
14082
14098
  if (state.storefront && ((_a = state.options) == null ? void 0 : _a.jwt)) {
@@ -14168,7 +14184,7 @@ async function fetchData({
14168
14184
  let plansPromise = new Promise((resolve) => {
14169
14185
  resolve([]);
14170
14186
  });
14171
- if (((_s = state.options) == null ? void 0 : _s.addons) || ((_t2 = state.options) == null ? void 0 : _t2.bumpOffer)) {
14187
+ if (((_s2 = state.options) == null ? void 0 : _s2.addons) || ((_t2 = state.options) == null ? void 0 : _t2.bumpOffer)) {
14172
14188
  plansPromise = fetchPlansFromAddonsBumpOffer$1();
14173
14189
  }
14174
14190
  let [
@@ -15433,8 +15449,8 @@ function parseAlpha$1(alpha) {
15433
15449
  return clamp$1(a, 0, 1);
15434
15450
  }
15435
15451
  function getHEX$1(hex) {
15436
- const [r, g, b, a] = hex2Rgb(hex, { format: "array" });
15437
- return getRGB$1([null, ...[r, g, b, a]]);
15452
+ const [r, g, b2, a] = hex2Rgb(hex, { format: "array" });
15453
+ return getRGB$1([null, ...[r, g, b2, a]]);
15438
15454
  }
15439
15455
  function getHSL$1([, h2, s, l, a = 1]) {
15440
15456
  let hh = h2;
@@ -15451,10 +15467,10 @@ function getHSL$1([, h2, s, l, a = 1]) {
15451
15467
  alpha: parseAlpha$1(a === null ? 1 : a)
15452
15468
  };
15453
15469
  }
15454
- function getRGB$1([, r, g, b, a = 1]) {
15470
+ function getRGB$1([, r, g, b2, a = 1]) {
15455
15471
  return {
15456
15472
  type: "rgb",
15457
- values: [r, g, b].map(parseRGB$1),
15473
+ values: [r, g, b2].map(parseRGB$1),
15458
15474
  alpha: parseAlpha$1(a === null ? 1 : a)
15459
15475
  };
15460
15476
  }
@@ -15552,14 +15568,14 @@ function requireRgb2hsl() {
15552
15568
  if (hasRequiredRgb2hsl) return rgb2hsl_1;
15553
15569
  hasRequiredRgb2hsl = 1;
15554
15570
  function rgb2hsl2(rgb) {
15555
- var r = rgb[0] / 255, g = rgb[1] / 255, b = rgb[2] / 255, min = Math.min(r, g, b), max = Math.max(r, g, b), delta = max - min, h2, s, l;
15571
+ var r = rgb[0] / 255, g = rgb[1] / 255, b2 = rgb[2] / 255, min = Math.min(r, g, b2), max = Math.max(r, g, b2), delta = max - min, h2, s, l;
15556
15572
  if (max == min)
15557
15573
  h2 = 0;
15558
15574
  else if (r == max)
15559
- h2 = (g - b) / delta;
15575
+ h2 = (g - b2) / delta;
15560
15576
  else if (g == max)
15561
- h2 = 2 + (b - r) / delta;
15562
- else if (b == max)
15577
+ h2 = 2 + (b2 - r) / delta;
15578
+ else if (b2 == max)
15563
15579
  h2 = 4 + (r - g) / delta;
15564
15580
  h2 = Math.min(h2 * 60, 360);
15565
15581
  if (h2 < 0)
@@ -15599,13 +15615,13 @@ function mix(color1, color2, percentage2 = 50) {
15599
15615
  const a = c1.alpha - c2.alpha;
15600
15616
  const w1 = ((w2 * a === -1 ? w2 : (w2 + a) / (1 + w2 * a)) + 1) / 2;
15601
15617
  const w22 = 1 - w1;
15602
- const [r, g, b] = c1.values.map((c, i) => Math.round(c1.values[i] * w1 + c2.values[i] * w22));
15618
+ const [r, g, b2] = c1.values.map((c, i) => Math.round(c1.values[i] * w1 + c2.values[i] * w22));
15603
15619
  const alpha = parseFloat((c1.alpha * p + c2.alpha * (1 - p)).toFixed(8));
15604
15620
  return {
15605
- hex: rgb2hex([r, g, b]),
15606
- hexa: rgb2hex([r, g, b, alpha]),
15607
- rgba: [r, g, b, alpha],
15608
- hsla: [...rgb2hsl([r, g, b]).map(Math.round), alpha]
15621
+ hex: rgb2hex([r, g, b2]),
15622
+ hexa: rgb2hex([r, g, b2, alpha]),
15623
+ rgba: [r, g, b2, alpha],
15624
+ hsla: [...rgb2hsl([r, g, b2]).map(Math.round), alpha]
15609
15625
  };
15610
15626
  }
15611
15627
  const pattern = /^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/;
@@ -15689,8 +15705,8 @@ function parseAlpha(alpha) {
15689
15705
  return clamp(a, 0, 1);
15690
15706
  }
15691
15707
  function getHEX(hex) {
15692
- const [r, g, b, a] = hex2Rgb(hex, { format: "array" });
15693
- return getRGB([null, ...[r, g, b, a]]);
15708
+ const [r, g, b2, a] = hex2Rgb(hex, { format: "array" });
15709
+ return getRGB([null, ...[r, g, b2, a]]);
15694
15710
  }
15695
15711
  function getHSL([, h2, s, l, a = 1]) {
15696
15712
  let hh = h2;
@@ -15707,10 +15723,10 @@ function getHSL([, h2, s, l, a = 1]) {
15707
15723
  alpha: parseAlpha(a === null ? 1 : a)
15708
15724
  };
15709
15725
  }
15710
- function getRGB([, r, g, b, a = 1]) {
15726
+ function getRGB([, r, g, b2, a = 1]) {
15711
15727
  return {
15712
15728
  type: "rgb",
15713
- values: [r, g, b].map(parseRGB),
15729
+ values: [r, g, b2].map(parseRGB),
15714
15730
  alpha: parseAlpha(a === null ? 1 : a)
15715
15731
  };
15716
15732
  }
@@ -15780,10 +15796,10 @@ class Values {
15780
15796
  return `${this.alpha >= 1 ? "rgb" : "rgba"}(${channels})`;
15781
15797
  }
15782
15798
  getBrightness() {
15783
- return Math.round(this.rgb.reduce((a, b) => a + b) / (255 * 3) * 100);
15799
+ return Math.round(this.rgb.reduce((a, b2) => a + b2) / (255 * 3) * 100);
15784
15800
  }
15785
- _setFromRGB([r, g, b, a]) {
15786
- [this.rgb, this.alpha] = [[r, g, b], a];
15801
+ _setFromRGB([r, g, b2, a]) {
15802
+ [this.rgb, this.alpha] = [[r, g, b2], a];
15787
15803
  return this;
15788
15804
  }
15789
15805
  _setFromHSL([h2, s, l, a]) {
@@ -18558,7 +18574,7 @@ function getShadowParent(element) {
18558
18574
  return null;
18559
18575
  }
18560
18576
  async function mount({ ...options } = {}) {
18561
- var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t2;
18577
+ var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s2, _t2;
18562
18578
  try {
18563
18579
  state.data = {};
18564
18580
  state.options = {};
@@ -18635,7 +18651,7 @@ async function mount({ ...options } = {}) {
18635
18651
  }
18636
18652
  let hasNoPaymentMethods = false;
18637
18653
  if (data.payout) {
18638
- hasNoPaymentMethods = !((_s = data.readyToPayout) == null ? void 0 : _s.length);
18654
+ hasNoPaymentMethods = !((_s2 = data.readyToPayout) == null ? void 0 : _s2.length);
18639
18655
  } else {
18640
18656
  hasNoPaymentMethods = !((_t2 = data.readyToPay) == null ? void 0 : _t2.length);
18641
18657
  }
@@ -18673,7 +18689,7 @@ async function destroy() {
18673
18689
  if (state.form instanceof HTMLElement) {
18674
18690
  state.form.textContent = "";
18675
18691
  }
18676
- await er.cancelAll();
18692
+ await sr.cancelAll();
18677
18693
  state.loader.clearAll();
18678
18694
  }
18679
18695
  async function update({ newOptions = {} } = {}) {