@doordeck/doordeck-headless-sdk 0.139.0 → 0.141.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.
@@ -1,29 +1,29 @@
1
1
  (function (_, kotlin_kotlin, kotlin_io_ktor_ktor_io, kotlin_io_ktor_ktor_http, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core) {
2
2
  'use strict';
3
3
  //region block: imports
4
- var Exception = kotlin_kotlin.$_$.ue;
4
+ var Exception = kotlin_kotlin.$_$.ve;
5
5
  var VOID = kotlin_kotlin.$_$.h;
6
6
  var Exception_init_$Init$ = kotlin_kotlin.$_$.p1;
7
- var captureStack = kotlin_kotlin.$_$.s9;
8
- var protoOf = kotlin_kotlin.$_$.ib;
9
- var initMetadataForClass = kotlin_kotlin.$_$.ia;
7
+ var captureStack = kotlin_kotlin.$_$.t9;
8
+ var protoOf = kotlin_kotlin.$_$.jb;
9
+ var initMetadataForClass = kotlin_kotlin.$_$.ja;
10
10
  var Unit_instance = kotlin_kotlin.$_$.f5;
11
11
  var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.o;
12
- var initMetadataForInterface = kotlin_kotlin.$_$.ma;
12
+ var initMetadataForInterface = kotlin_kotlin.$_$.na;
13
13
  var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.g;
14
14
  var parseAndSortHeader = kotlin_io_ktor_ktor_http.$_$.s1;
15
15
  var forName = kotlin_io_ktor_ktor_io.$_$.u;
16
16
  var isSupported = kotlin_io_ktor_ktor_io.$_$.v;
17
- var equals = kotlin_kotlin.$_$.ba;
18
- var FunctionAdapter = kotlin_kotlin.$_$.o9;
19
- var isInterface = kotlin_kotlin.$_$.xa;
17
+ var equals = kotlin_kotlin.$_$.ca;
18
+ var FunctionAdapter = kotlin_kotlin.$_$.p9;
19
+ var isInterface = kotlin_kotlin.$_$.ya;
20
20
  var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.n;
21
- var hashCode = kotlin_kotlin.$_$.ha;
22
- var CoroutineImpl = kotlin_kotlin.$_$.k9;
23
- var THROW_CCE = kotlin_kotlin.$_$.cf;
24
- var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.u8;
25
- var initMetadataForLambda = kotlin_kotlin.$_$.na;
26
- var initMetadataForCoroutine = kotlin_kotlin.$_$.ka;
21
+ var hashCode = kotlin_kotlin.$_$.ia;
22
+ var CoroutineImpl = kotlin_kotlin.$_$.l9;
23
+ var THROW_CCE = kotlin_kotlin.$_$.df;
24
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.v8;
25
+ var initMetadataForLambda = kotlin_kotlin.$_$.oa;
26
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.la;
27
27
  var asFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.o;
28
28
  var firstOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a;
29
29
  var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
@@ -41,10 +41,10 @@
41
41
  configuration = tmp;
42
42
  var tmp_0;
43
43
  if ($super === VOID) {
44
- this.a3f(contentType, converter, configuration);
44
+ this.f3f(contentType, converter, configuration);
45
45
  tmp_0 = Unit_instance;
46
46
  } else {
47
- tmp_0 = $super.a3f.call(this, contentType, converter, configuration);
47
+ tmp_0 = $super.f3f.call(this, contentType, converter, configuration);
48
48
  }
49
49
  return tmp_0;
50
50
  }
@@ -68,12 +68,12 @@
68
68
  }
69
69
  function deserialize(_this__u8e3s4, body, typeInfo, charset, $completion) {
70
70
  var tmp = new $deserializeCOROUTINE$(_this__u8e3s4, body, typeInfo, charset, $completion);
71
- tmp.l9_1 = Unit_instance;
72
- tmp.m9_1 = null;
73
- return tmp.r9();
71
+ tmp.p9_1 = Unit_instance;
72
+ tmp.q9_1 = null;
73
+ return tmp.v9();
74
74
  }
75
75
  function suitableCharset(_this__u8e3s4, defaultCharset) {
76
- defaultCharset = defaultCharset === VOID ? Charsets_getInstance().h1z_1 : defaultCharset;
76
+ defaultCharset = defaultCharset === VOID ? Charsets_getInstance().l1z_1 : defaultCharset;
77
77
  var tmp0_elvis_lhs = suitableCharsetOrNull(_this__u8e3s4, defaultCharset);
78
78
  return tmp0_elvis_lhs == null ? defaultCharset : tmp0_elvis_lhs;
79
79
  }
@@ -83,10 +83,10 @@
83
83
  function Configuration() {
84
84
  }
85
85
  function suitableCharsetOrNull(_this__u8e3s4, defaultCharset) {
86
- defaultCharset = defaultCharset === VOID ? Charsets_getInstance().h1z_1 : defaultCharset;
87
- var _iterator__ex2g4s = parseAndSortHeader(_this__u8e3s4.b2o(HttpHeaders_getInstance().s2w_1)).p();
86
+ defaultCharset = defaultCharset === VOID ? Charsets_getInstance().l1z_1 : defaultCharset;
87
+ var _iterator__ex2g4s = parseAndSortHeader(_this__u8e3s4.f2o(HttpHeaders_getInstance().x2w_1)).p();
88
88
  while (_iterator__ex2g4s.q()) {
89
- var charset = _iterator__ex2g4s.r().zg();
89
+ var charset = _iterator__ex2g4s.r().dh();
90
90
  if (charset === '*')
91
91
  return defaultCharset;
92
92
  else if (isSupported(Charsets_getInstance(), charset))
@@ -95,20 +95,20 @@
95
95
  return null;
96
96
  }
97
97
  function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
98
- this.c3f_1 = function_0;
98
+ this.h3f_1 = function_0;
99
99
  }
100
- protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).k1a = function (value, $completion) {
101
- return this.c3f_1(value, $completion);
100
+ protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).o1a = function (value, $completion) {
101
+ return this.h3f_1(value, $completion);
102
102
  };
103
- protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).u3 = function () {
104
- return this.c3f_1;
103
+ protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).v3 = function () {
104
+ return this.h3f_1;
105
105
  };
106
106
  protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
107
107
  var tmp;
108
108
  if (!(other == null) ? isInterface(other, FlowCollector) : false) {
109
109
  var tmp_0;
110
110
  if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
111
- tmp_0 = equals(this.u3(), other.u3());
111
+ tmp_0 = equals(this.v3(), other.v3());
112
112
  } else {
113
113
  tmp_0 = false;
114
114
  }
@@ -119,52 +119,52 @@
119
119
  return tmp;
120
120
  };
121
121
  protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).hashCode = function () {
122
- return hashCode(this.u3());
122
+ return hashCode(this.v3());
123
123
  };
124
124
  function deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation) {
125
- this.l3f_1 = $$this$unsafeFlow;
126
- this.m3f_1 = $charset;
127
- this.n3f_1 = $typeInfo;
128
- this.o3f_1 = $body;
125
+ this.q3f_1 = $$this$unsafeFlow;
126
+ this.r3f_1 = $charset;
127
+ this.s3f_1 = $typeInfo;
128
+ this.t3f_1 = $body;
129
129
  CoroutineImpl.call(this, resultContinuation);
130
130
  }
131
- protoOf(deserialize$o$collect$slambda).x3f = function (value, $completion) {
132
- var tmp = this.y3f(value, $completion);
133
- tmp.l9_1 = Unit_instance;
134
- tmp.m9_1 = null;
135
- return tmp.r9();
131
+ protoOf(deserialize$o$collect$slambda).c3g = function (value, $completion) {
132
+ var tmp = this.d3g(value, $completion);
133
+ tmp.p9_1 = Unit_instance;
134
+ tmp.q9_1 = null;
135
+ return tmp.v9();
136
136
  };
137
- protoOf(deserialize$o$collect$slambda).fa = function (p1, $completion) {
138
- return this.x3f((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
137
+ protoOf(deserialize$o$collect$slambda).ja = function (p1, $completion) {
138
+ return this.c3g((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
139
139
  };
140
- protoOf(deserialize$o$collect$slambda).r9 = function () {
141
- var suspendResult = this.l9_1;
140
+ protoOf(deserialize$o$collect$slambda).v9 = function () {
141
+ var suspendResult = this.p9_1;
142
142
  $sm: do
143
143
  try {
144
- var tmp = this.j9_1;
144
+ var tmp = this.n9_1;
145
145
  switch (tmp) {
146
146
  case 0:
147
- this.k9_1 = 3;
147
+ this.o9_1 = 3;
148
148
  var tmp_0 = this;
149
- tmp_0.q3f_1 = this.l3f_1;
149
+ tmp_0.v3f_1 = this.q3f_1;
150
150
  var tmp_1 = this;
151
- tmp_1.r3f_1 = this.p3f_1;
152
- this.s3f_1 = this.q3f_1;
153
- this.t3f_1 = this.r3f_1;
151
+ tmp_1.w3f_1 = this.u3f_1;
152
+ this.x3f_1 = this.v3f_1;
153
+ this.y3f_1 = this.w3f_1;
154
154
  var tmp_2 = this;
155
- tmp_2.u3f_1 = this.t3f_1;
156
- this.v3f_1 = this.u3f_1;
157
- this.j9_1 = 1;
158
- suspendResult = this.v3f_1.z3f(this.m3f_1, this.n3f_1, this.o3f_1, this);
155
+ tmp_2.z3f_1 = this.y3f_1;
156
+ this.a3g_1 = this.z3f_1;
157
+ this.n9_1 = 1;
158
+ suspendResult = this.a3g_1.e3g(this.r3f_1, this.s3f_1, this.t3f_1, this);
159
159
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
160
160
  return suspendResult;
161
161
  }
162
162
 
163
163
  continue $sm;
164
164
  case 1:
165
- this.w3f_1 = suspendResult;
166
- this.j9_1 = 2;
167
- suspendResult = this.s3f_1.k1a(this.w3f_1, this);
165
+ this.b3g_1 = suspendResult;
166
+ this.n9_1 = 2;
167
+ suspendResult = this.x3f_1.o1a(this.b3g_1, this);
168
168
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
169
169
  return suspendResult;
170
170
  }
@@ -173,51 +173,51 @@
173
173
  case 2:
174
174
  return Unit_instance;
175
175
  case 3:
176
- throw this.m9_1;
176
+ throw this.q9_1;
177
177
  }
178
178
  } catch ($p) {
179
179
  var e = $p;
180
- if (this.k9_1 === 3) {
180
+ if (this.o9_1 === 3) {
181
181
  throw e;
182
182
  } else {
183
- this.j9_1 = this.k9_1;
184
- this.m9_1 = e;
183
+ this.n9_1 = this.o9_1;
184
+ this.q9_1 = e;
185
185
  }
186
186
  }
187
187
  while (true);
188
188
  };
189
- protoOf(deserialize$o$collect$slambda).y3f = function (value, completion) {
190
- var i = new deserialize$o$collect$slambda(this.l3f_1, this.m3f_1, this.n3f_1, this.o3f_1, completion);
191
- i.p3f_1 = value;
189
+ protoOf(deserialize$o$collect$slambda).d3g = function (value, completion) {
190
+ var i = new deserialize$o$collect$slambda(this.q3f_1, this.r3f_1, this.s3f_1, this.t3f_1, completion);
191
+ i.u3f_1 = value;
192
192
  return i;
193
193
  };
194
194
  function deserialize$o$collect$slambda_0($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation) {
195
195
  var i = new deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation);
196
196
  var l = function (value, $completion) {
197
- return i.x3f(value, $completion);
197
+ return i.c3g(value, $completion);
198
198
  };
199
199
  l.$arity = 1;
200
200
  return l;
201
201
  }
202
202
  function $collectCOROUTINE$(_this__u8e3s4, collector, resultContinuation) {
203
203
  CoroutineImpl.call(this, resultContinuation);
204
- this.i3g_1 = _this__u8e3s4;
205
- this.j3g_1 = collector;
204
+ this.n3g_1 = _this__u8e3s4;
205
+ this.o3g_1 = collector;
206
206
  }
207
- protoOf($collectCOROUTINE$).r9 = function () {
208
- var suspendResult = this.l9_1;
207
+ protoOf($collectCOROUTINE$).v9 = function () {
208
+ var suspendResult = this.p9_1;
209
209
  $sm: do
210
210
  try {
211
- var tmp = this.j9_1;
211
+ var tmp = this.n9_1;
212
212
  switch (tmp) {
213
213
  case 0:
214
- this.k9_1 = 2;
214
+ this.o9_1 = 2;
215
215
  var tmp_0 = this;
216
- tmp_0.k3g_1 = this.j3g_1;
217
- this.l3g_1 = this.k3g_1;
218
- this.j9_1 = 1;
219
- var tmp_1 = deserialize$o$collect$slambda_0(this.l3g_1, this.i3g_1.n3g_1, this.i3g_1.o3g_1, this.i3g_1.p3g_1, null);
220
- suspendResult = this.i3g_1.m3g_1.m1a(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
216
+ tmp_0.p3g_1 = this.o3g_1;
217
+ this.q3g_1 = this.p3g_1;
218
+ this.n9_1 = 1;
219
+ var tmp_1 = deserialize$o$collect$slambda_0(this.q3g_1, this.n3g_1.s3g_1, this.n3g_1.t3g_1, this.n3g_1.u3g_1, null);
220
+ suspendResult = this.n3g_1.r3g_1.q1a(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
221
221
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
222
222
  return suspendResult;
223
223
  }
@@ -226,57 +226,57 @@
226
226
  case 1:
227
227
  return Unit_instance;
228
228
  case 2:
229
- throw this.m9_1;
229
+ throw this.q9_1;
230
230
  }
231
231
  } catch ($p) {
232
232
  var e = $p;
233
- if (this.k9_1 === 2) {
233
+ if (this.o9_1 === 2) {
234
234
  throw e;
235
235
  } else {
236
- this.j9_1 = this.k9_1;
237
- this.m9_1 = e;
236
+ this.n9_1 = this.o9_1;
237
+ this.q9_1 = e;
238
238
  }
239
239
  }
240
240
  while (true);
241
241
  };
242
242
  function deserialize$$inlined$map$1($this, $charset, $typeInfo, $body) {
243
- this.m3g_1 = $this;
244
- this.n3g_1 = $charset;
245
- this.o3g_1 = $typeInfo;
246
- this.p3g_1 = $body;
243
+ this.r3g_1 = $this;
244
+ this.s3g_1 = $charset;
245
+ this.t3g_1 = $typeInfo;
246
+ this.u3g_1 = $body;
247
247
  }
248
- protoOf(deserialize$$inlined$map$1).l1a = function (collector, $completion) {
248
+ protoOf(deserialize$$inlined$map$1).p1a = function (collector, $completion) {
249
249
  var tmp = new $collectCOROUTINE$(this, collector, $completion);
250
- tmp.l9_1 = Unit_instance;
251
- tmp.m9_1 = null;
252
- return tmp.r9();
250
+ tmp.p9_1 = Unit_instance;
251
+ tmp.q9_1 = null;
252
+ return tmp.v9();
253
253
  };
254
- protoOf(deserialize$$inlined$map$1).m1a = function (collector, $completion) {
255
- return this.l1a(collector, $completion);
254
+ protoOf(deserialize$$inlined$map$1).q1a = function (collector, $completion) {
255
+ return this.p1a(collector, $completion);
256
256
  };
257
257
  function deserialize$slambda($body, resultContinuation) {
258
- this.y3g_1 = $body;
258
+ this.d3h_1 = $body;
259
259
  CoroutineImpl.call(this, resultContinuation);
260
260
  }
261
- protoOf(deserialize$slambda).a3h = function (it, $completion) {
262
- var tmp = this.y3f(it, $completion);
263
- tmp.l9_1 = Unit_instance;
264
- tmp.m9_1 = null;
265
- return tmp.r9();
261
+ protoOf(deserialize$slambda).f3h = function (it, $completion) {
262
+ var tmp = this.d3g(it, $completion);
263
+ tmp.p9_1 = Unit_instance;
264
+ tmp.q9_1 = null;
265
+ return tmp.v9();
266
266
  };
267
- protoOf(deserialize$slambda).fa = function (p1, $completion) {
268
- return this.a3h((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
267
+ protoOf(deserialize$slambda).ja = function (p1, $completion) {
268
+ return this.f3h((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
269
269
  };
270
- protoOf(deserialize$slambda).r9 = function () {
271
- var suspendResult = this.l9_1;
270
+ protoOf(deserialize$slambda).v9 = function () {
271
+ var suspendResult = this.p9_1;
272
272
  $sm: do
273
273
  try {
274
- var tmp = this.j9_1;
274
+ var tmp = this.n9_1;
275
275
  if (tmp === 0) {
276
- this.k9_1 = 1;
277
- return !(this.z3g_1 == null) || this.y3g_1.n1o();
276
+ this.o9_1 = 1;
277
+ return !(this.e3h_1 == null) || this.d3h_1.r1o();
278
278
  } else if (tmp === 1) {
279
- throw this.m9_1;
279
+ throw this.q9_1;
280
280
  }
281
281
  } catch ($p) {
282
282
  var e = $p;
@@ -284,38 +284,38 @@
284
284
  }
285
285
  while (true);
286
286
  };
287
- protoOf(deserialize$slambda).y3f = function (it, completion) {
288
- var i = new deserialize$slambda(this.y3g_1, completion);
289
- i.z3g_1 = it;
287
+ protoOf(deserialize$slambda).d3g = function (it, completion) {
288
+ var i = new deserialize$slambda(this.d3h_1, completion);
289
+ i.e3h_1 = it;
290
290
  return i;
291
291
  };
292
292
  function deserialize$slambda_0($body, resultContinuation) {
293
293
  var i = new deserialize$slambda($body, resultContinuation);
294
294
  var l = function (it, $completion) {
295
- return i.a3h(it, $completion);
295
+ return i.f3h(it, $completion);
296
296
  };
297
297
  l.$arity = 1;
298
298
  return l;
299
299
  }
300
300
  function $deserializeCOROUTINE$(_this__u8e3s4, body, typeInfo, charset, resultContinuation) {
301
301
  CoroutineImpl.call(this, resultContinuation);
302
- this.w3e_1 = _this__u8e3s4;
303
- this.x3e_1 = body;
304
- this.y3e_1 = typeInfo;
305
- this.z3e_1 = charset;
302
+ this.b3f_1 = _this__u8e3s4;
303
+ this.c3f_1 = body;
304
+ this.d3f_1 = typeInfo;
305
+ this.e3f_1 = charset;
306
306
  }
307
- protoOf($deserializeCOROUTINE$).r9 = function () {
308
- var suspendResult = this.l9_1;
307
+ protoOf($deserializeCOROUTINE$).v9 = function () {
308
+ var suspendResult = this.p9_1;
309
309
  $sm: do
310
310
  try {
311
- var tmp = this.j9_1;
311
+ var tmp = this.n9_1;
312
312
  switch (tmp) {
313
313
  case 0:
314
- this.k9_1 = 2;
315
- this.j9_1 = 1;
316
- var this_0 = asFlow(this.w3e_1);
317
- var tmp_0 = new deserialize$$inlined$map$1(this_0, this.z3e_1, this.y3e_1, this.x3e_1);
318
- suspendResult = firstOrNull(tmp_0, deserialize$slambda_0(this.x3e_1, null), this);
314
+ this.o9_1 = 2;
315
+ this.n9_1 = 1;
316
+ var this_0 = asFlow(this.b3f_1);
317
+ var tmp_0 = new deserialize$$inlined$map$1(this_0, this.e3f_1, this.d3f_1, this.c3f_1);
318
+ suspendResult = firstOrNull(tmp_0, deserialize$slambda_0(this.c3f_1, null), this);
319
319
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
320
320
  return suspendResult;
321
321
  }
@@ -327,29 +327,29 @@
327
327
  if (!(result == null)) {
328
328
  tmp_1 = result;
329
329
  } else {
330
- if (!this.x3e_1.n1o()) {
331
- tmp_1 = this.x3e_1;
330
+ if (!this.c3f_1.r1o()) {
331
+ tmp_1 = this.c3f_1;
332
332
  } else {
333
- var tmp0_safe_receiver = this.y3e_1.n2t_1;
334
- if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ec()) === true) {
333
+ var tmp0_safe_receiver = this.d3f_1.s2t_1;
334
+ if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ic()) === true) {
335
335
  tmp_1 = NullBody_instance;
336
336
  } else {
337
- throw new ContentConvertException('No suitable converter found for ' + this.y3e_1.toString());
337
+ throw new ContentConvertException('No suitable converter found for ' + this.d3f_1.toString());
338
338
  }
339
339
  }
340
340
  }
341
341
 
342
342
  return tmp_1;
343
343
  case 2:
344
- throw this.m9_1;
344
+ throw this.q9_1;
345
345
  }
346
346
  } catch ($p) {
347
347
  var e = $p;
348
- if (this.k9_1 === 2) {
348
+ if (this.o9_1 === 2) {
349
349
  throw e;
350
350
  } else {
351
- this.j9_1 = this.k9_1;
352
- this.m9_1 = e;
351
+ this.n9_1 = this.o9_1;
352
+ this.q9_1 = e;
353
353
  }
354
354
  }
355
355
  while (true);