@doordeck/doordeck-headless-sdk 0.185.0 → 0.187.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.$_$.rf;
4
+ var Exception = kotlin_kotlin.$_$.tf;
5
5
  var VOID = kotlin_kotlin.$_$.b;
6
6
  var Exception_init_$Init$ = kotlin_kotlin.$_$.j1;
7
- var captureStack = kotlin_kotlin.$_$.la;
8
- var protoOf = kotlin_kotlin.$_$.ac;
9
- var initMetadataForClass = kotlin_kotlin.$_$.bb;
7
+ var captureStack = kotlin_kotlin.$_$.oa;
8
+ var protoOf = kotlin_kotlin.$_$.cc;
9
+ var initMetadataForClass = kotlin_kotlin.$_$.eb;
10
10
  var Unit_instance = kotlin_kotlin.$_$.b5;
11
11
  var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.o;
12
- var initMetadataForInterface = kotlin_kotlin.$_$.fb;
12
+ var initMetadataForInterface = kotlin_kotlin.$_$.ib;
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.$_$.ua;
18
- var FunctionAdapter = kotlin_kotlin.$_$.ha;
19
- var isInterface = kotlin_kotlin.$_$.qb;
17
+ var equals = kotlin_kotlin.$_$.xa;
18
+ var FunctionAdapter = kotlin_kotlin.$_$.ka;
19
+ var isInterface = kotlin_kotlin.$_$.tb;
20
20
  var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.o;
21
- var hashCode = kotlin_kotlin.$_$.ab;
21
+ var hashCode = kotlin_kotlin.$_$.db;
22
22
  var CoroutineImpl = kotlin_kotlin.$_$.j9;
23
- var THROW_CCE = kotlin_kotlin.$_$.zf;
23
+ var THROW_CCE = kotlin_kotlin.$_$.bg;
24
24
  var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.t8;
25
- var initMetadataForLambda = kotlin_kotlin.$_$.gb;
26
- var initMetadataForCoroutine = kotlin_kotlin.$_$.db;
25
+ var initMetadataForLambda = kotlin_kotlin.$_$.jb;
26
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.gb;
27
27
  var asFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.p;
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.p3b(contentType, converter, configuration);
44
+ this.b3b(contentType, converter, configuration);
45
45
  tmp_0 = Unit_instance;
46
46
  } else {
47
- tmp_0 = $super.p3b.call(this, contentType, converter, configuration);
47
+ tmp_0 = $super.b3b.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.w8_1 = Unit_instance;
72
- tmp.x8_1 = null;
73
- return tmp.c9();
71
+ tmp.f9_1 = Unit_instance;
72
+ tmp.g9_1 = null;
73
+ return tmp.l9();
74
74
  }
75
75
  function suitableCharset(_this__u8e3s4, defaultCharset) {
76
- defaultCharset = defaultCharset === VOID ? Charsets_getInstance().h1w_1 : defaultCharset;
76
+ defaultCharset = defaultCharset === VOID ? Charsets_getInstance().t1v_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().h1w_1 : defaultCharset;
87
- var _iterator__ex2g4s = parseAndSortHeader(_this__u8e3s4.u2k(HttpHeaders_getInstance().p2t_1)).r();
88
- while (_iterator__ex2g4s.s()) {
89
- var charset = _iterator__ex2g4s.t().ig();
86
+ defaultCharset = defaultCharset === VOID ? Charsets_getInstance().t1v_1 : defaultCharset;
87
+ var _iterator__ex2g4s = parseAndSortHeader(_this__u8e3s4.g2k(HttpHeaders_getInstance().b2t_1)).t();
88
+ while (_iterator__ex2g4s.u()) {
89
+ var charset = _iterator__ex2g4s.v().ig();
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.r3b_1 = function_0;
98
+ this.d3b_1 = function_0;
99
99
  }
100
- protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).g1c = function (value, $completion) {
101
- return this.r3b_1(value, $completion);
100
+ protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).s1b = function (value, $completion) {
101
+ return this.d3b_1(value, $completion);
102
102
  };
103
- protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).d3 = function () {
104
- return this.r3b_1;
103
+ protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).t3 = function () {
104
+ return this.d3b_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.d3(), other.d3());
111
+ tmp_0 = equals(this.t3(), other.t3());
112
112
  } else {
113
113
  tmp_0 = false;
114
114
  }
@@ -119,37 +119,37 @@
119
119
  return tmp;
120
120
  };
121
121
  protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).hashCode = function () {
122
- return hashCode(this.d3());
122
+ return hashCode(this.t3());
123
123
  };
124
124
  function deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation) {
125
- this.a3c_1 = $$this$unsafeFlow;
126
- this.b3c_1 = $charset;
127
- this.c3c_1 = $typeInfo;
128
- this.d3c_1 = $body;
125
+ this.m3b_1 = $$this$unsafeFlow;
126
+ this.n3b_1 = $charset;
127
+ this.o3b_1 = $typeInfo;
128
+ this.p3b_1 = $body;
129
129
  CoroutineImpl.call(this, resultContinuation);
130
130
  }
131
- protoOf(deserialize$o$collect$slambda).g3c = function (value, $completion) {
132
- var tmp = this.h3c(value, $completion);
133
- tmp.w8_1 = Unit_instance;
134
- tmp.x8_1 = null;
135
- return tmp.c9();
131
+ protoOf(deserialize$o$collect$slambda).s3b = function (value, $completion) {
132
+ var tmp = this.t3b(value, $completion);
133
+ tmp.f9_1 = Unit_instance;
134
+ tmp.g9_1 = null;
135
+ return tmp.l9();
136
136
  };
137
- protoOf(deserialize$o$collect$slambda).o9 = function (p1, $completion) {
138
- return this.g3c((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
137
+ protoOf(deserialize$o$collect$slambda).x9 = function (p1, $completion) {
138
+ return this.s3b((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
139
139
  };
140
- protoOf(deserialize$o$collect$slambda).c9 = function () {
141
- var suspendResult = this.w8_1;
140
+ protoOf(deserialize$o$collect$slambda).l9 = function () {
141
+ var suspendResult = this.f9_1;
142
142
  $sm: do
143
143
  try {
144
- var tmp = this.u8_1;
144
+ var tmp = this.d9_1;
145
145
  switch (tmp) {
146
146
  case 0:
147
- this.v8_1 = 3;
148
- var tmp0 = this.a3c_1;
149
- var tmp2 = this.e3c_1;
150
- this.f3c_1 = tmp0;
151
- this.u8_1 = 1;
152
- suspendResult = tmp2.i3c(this.b3c_1, this.c3c_1, this.d3c_1, this);
147
+ this.e9_1 = 3;
148
+ var tmp0 = this.m3b_1;
149
+ var tmp2 = this.q3b_1;
150
+ this.r3b_1 = tmp0;
151
+ this.d9_1 = 1;
152
+ suspendResult = tmp2.u3b(this.n3b_1, this.o3b_1, this.p3b_1, this);
153
153
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
154
154
  return suspendResult;
155
155
  }
@@ -157,8 +157,8 @@
157
157
  continue $sm;
158
158
  case 1:
159
159
  var ARGUMENT = suspendResult;
160
- this.u8_1 = 2;
161
- suspendResult = this.f3c_1.g1c(ARGUMENT, this);
160
+ this.d9_1 = 2;
161
+ suspendResult = this.r3b_1.s1b(ARGUMENT, this);
162
162
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
163
163
  return suspendResult;
164
164
  }
@@ -167,49 +167,49 @@
167
167
  case 2:
168
168
  return Unit_instance;
169
169
  case 3:
170
- throw this.x8_1;
170
+ throw this.g9_1;
171
171
  }
172
172
  } catch ($p) {
173
173
  var e = $p;
174
- if (this.v8_1 === 3) {
174
+ if (this.e9_1 === 3) {
175
175
  throw e;
176
176
  } else {
177
- this.u8_1 = this.v8_1;
178
- this.x8_1 = e;
177
+ this.d9_1 = this.e9_1;
178
+ this.g9_1 = e;
179
179
  }
180
180
  }
181
181
  while (true);
182
182
  };
183
- protoOf(deserialize$o$collect$slambda).h3c = function (value, completion) {
184
- var i = new deserialize$o$collect$slambda(this.a3c_1, this.b3c_1, this.c3c_1, this.d3c_1, completion);
185
- i.e3c_1 = value;
183
+ protoOf(deserialize$o$collect$slambda).t3b = function (value, completion) {
184
+ var i = new deserialize$o$collect$slambda(this.m3b_1, this.n3b_1, this.o3b_1, this.p3b_1, completion);
185
+ i.q3b_1 = value;
186
186
  return i;
187
187
  };
188
188
  function deserialize$o$collect$slambda_0($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation) {
189
189
  var i = new deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation);
190
190
  var l = function (value, $completion) {
191
- return i.g3c(value, $completion);
191
+ return i.s3b(value, $completion);
192
192
  };
193
193
  l.$arity = 1;
194
194
  return l;
195
195
  }
196
196
  function $collectCOROUTINE$(_this__u8e3s4, collector, resultContinuation) {
197
197
  CoroutineImpl.call(this, resultContinuation);
198
- this.r3c_1 = _this__u8e3s4;
199
- this.s3c_1 = collector;
198
+ this.d3c_1 = _this__u8e3s4;
199
+ this.e3c_1 = collector;
200
200
  }
201
- protoOf($collectCOROUTINE$).c9 = function () {
202
- var suspendResult = this.w8_1;
201
+ protoOf($collectCOROUTINE$).l9 = function () {
202
+ var suspendResult = this.f9_1;
203
203
  $sm: do
204
204
  try {
205
- var tmp = this.u8_1;
205
+ var tmp = this.d9_1;
206
206
  switch (tmp) {
207
207
  case 0:
208
- this.v8_1 = 2;
209
- var $this$unsafeFlow = this.s3c_1;
210
- this.u8_1 = 1;
211
- var tmp_0 = deserialize$o$collect$slambda_0($this$unsafeFlow, this.r3c_1.u3c_1, this.r3c_1.v3c_1, this.r3c_1.w3c_1, null);
212
- suspendResult = this.r3c_1.t3c_1.i1c(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_0), this);
208
+ this.e9_1 = 2;
209
+ var $this$unsafeFlow = this.e3c_1;
210
+ this.d9_1 = 1;
211
+ var tmp_0 = deserialize$o$collect$slambda_0($this$unsafeFlow, this.d3c_1.g3c_1, this.d3c_1.h3c_1, this.d3c_1.i3c_1, null);
212
+ suspendResult = this.d3c_1.f3c_1.u1b(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_0), this);
213
213
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
214
214
  return suspendResult;
215
215
  }
@@ -218,57 +218,57 @@
218
218
  case 1:
219
219
  return Unit_instance;
220
220
  case 2:
221
- throw this.x8_1;
221
+ throw this.g9_1;
222
222
  }
223
223
  } catch ($p) {
224
224
  var e = $p;
225
- if (this.v8_1 === 2) {
225
+ if (this.e9_1 === 2) {
226
226
  throw e;
227
227
  } else {
228
- this.u8_1 = this.v8_1;
229
- this.x8_1 = e;
228
+ this.d9_1 = this.e9_1;
229
+ this.g9_1 = e;
230
230
  }
231
231
  }
232
232
  while (true);
233
233
  };
234
234
  function deserialize$$inlined$map$1($this, $charset, $typeInfo, $body) {
235
- this.t3c_1 = $this;
236
- this.u3c_1 = $charset;
237
- this.v3c_1 = $typeInfo;
238
- this.w3c_1 = $body;
235
+ this.f3c_1 = $this;
236
+ this.g3c_1 = $charset;
237
+ this.h3c_1 = $typeInfo;
238
+ this.i3c_1 = $body;
239
239
  }
240
- protoOf(deserialize$$inlined$map$1).h1c = function (collector, $completion) {
240
+ protoOf(deserialize$$inlined$map$1).t1b = function (collector, $completion) {
241
241
  var tmp = new $collectCOROUTINE$(this, collector, $completion);
242
- tmp.w8_1 = Unit_instance;
243
- tmp.x8_1 = null;
244
- return tmp.c9();
242
+ tmp.f9_1 = Unit_instance;
243
+ tmp.g9_1 = null;
244
+ return tmp.l9();
245
245
  };
246
- protoOf(deserialize$$inlined$map$1).i1c = function (collector, $completion) {
247
- return this.h1c(collector, $completion);
246
+ protoOf(deserialize$$inlined$map$1).u1b = function (collector, $completion) {
247
+ return this.t1b(collector, $completion);
248
248
  };
249
249
  function deserialize$slambda($body, resultContinuation) {
250
- this.f3d_1 = $body;
250
+ this.r3c_1 = $body;
251
251
  CoroutineImpl.call(this, resultContinuation);
252
252
  }
253
- protoOf(deserialize$slambda).h3d = function (it, $completion) {
254
- var tmp = this.h3c(it, $completion);
255
- tmp.w8_1 = Unit_instance;
256
- tmp.x8_1 = null;
257
- return tmp.c9();
253
+ protoOf(deserialize$slambda).t3c = function (it, $completion) {
254
+ var tmp = this.t3b(it, $completion);
255
+ tmp.f9_1 = Unit_instance;
256
+ tmp.g9_1 = null;
257
+ return tmp.l9();
258
258
  };
259
- protoOf(deserialize$slambda).o9 = function (p1, $completion) {
260
- return this.h3d((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
259
+ protoOf(deserialize$slambda).x9 = function (p1, $completion) {
260
+ return this.t3c((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
261
261
  };
262
- protoOf(deserialize$slambda).c9 = function () {
263
- var suspendResult = this.w8_1;
262
+ protoOf(deserialize$slambda).l9 = function () {
263
+ var suspendResult = this.f9_1;
264
264
  $sm: do
265
265
  try {
266
- var tmp = this.u8_1;
266
+ var tmp = this.d9_1;
267
267
  if (tmp === 0) {
268
- this.v8_1 = 1;
269
- return !(this.g3d_1 == null) || this.f3d_1.k1m();
268
+ this.e9_1 = 1;
269
+ return !(this.s3c_1 == null) || this.r3c_1.w1l();
270
270
  } else if (tmp === 1) {
271
- throw this.x8_1;
271
+ throw this.g9_1;
272
272
  }
273
273
  } catch ($p) {
274
274
  var e = $p;
@@ -276,38 +276,38 @@
276
276
  }
277
277
  while (true);
278
278
  };
279
- protoOf(deserialize$slambda).h3c = function (it, completion) {
280
- var i = new deserialize$slambda(this.f3d_1, completion);
281
- i.g3d_1 = it;
279
+ protoOf(deserialize$slambda).t3b = function (it, completion) {
280
+ var i = new deserialize$slambda(this.r3c_1, completion);
281
+ i.s3c_1 = it;
282
282
  return i;
283
283
  };
284
284
  function deserialize$slambda_0($body, resultContinuation) {
285
285
  var i = new deserialize$slambda($body, resultContinuation);
286
286
  var l = function (it, $completion) {
287
- return i.h3d(it, $completion);
287
+ return i.t3c(it, $completion);
288
288
  };
289
289
  l.$arity = 1;
290
290
  return l;
291
291
  }
292
292
  function $deserializeCOROUTINE$(_this__u8e3s4, body, typeInfo, charset, resultContinuation) {
293
293
  CoroutineImpl.call(this, resultContinuation);
294
- this.l3b_1 = _this__u8e3s4;
295
- this.m3b_1 = body;
296
- this.n3b_1 = typeInfo;
297
- this.o3b_1 = charset;
294
+ this.x3a_1 = _this__u8e3s4;
295
+ this.y3a_1 = body;
296
+ this.z3a_1 = typeInfo;
297
+ this.a3b_1 = charset;
298
298
  }
299
- protoOf($deserializeCOROUTINE$).c9 = function () {
300
- var suspendResult = this.w8_1;
299
+ protoOf($deserializeCOROUTINE$).l9 = function () {
300
+ var suspendResult = this.f9_1;
301
301
  $sm: do
302
302
  try {
303
- var tmp = this.u8_1;
303
+ var tmp = this.d9_1;
304
304
  switch (tmp) {
305
305
  case 0:
306
- this.v8_1 = 2;
307
- this.u8_1 = 1;
308
- var this_0 = asFlow(this.l3b_1);
309
- var tmp_0 = new deserialize$$inlined$map$1(this_0, this.o3b_1, this.n3b_1, this.m3b_1);
310
- suspendResult = firstOrNull(tmp_0, deserialize$slambda_0(this.m3b_1, null), this);
306
+ this.e9_1 = 2;
307
+ this.d9_1 = 1;
308
+ var this_0 = asFlow(this.x3a_1);
309
+ var tmp_0 = new deserialize$$inlined$map$1(this_0, this.a3b_1, this.z3a_1, this.y3a_1);
310
+ suspendResult = firstOrNull(tmp_0, deserialize$slambda_0(this.y3a_1, null), this);
311
311
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
312
312
  return suspendResult;
313
313
  }
@@ -319,29 +319,29 @@
319
319
  if (!(result == null)) {
320
320
  tmp_1 = result;
321
321
  } else {
322
- if (!this.m3b_1.k1m()) {
323
- tmp_1 = this.m3b_1;
322
+ if (!this.y3a_1.w1l()) {
323
+ tmp_1 = this.y3a_1;
324
324
  } else {
325
- var tmp0_safe_receiver = this.n3b_1.g2q_1;
326
- if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.lb()) === true) {
325
+ var tmp0_safe_receiver = this.z3a_1.s2p_1;
326
+ if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l()) === true) {
327
327
  tmp_1 = NullBody_instance;
328
328
  } else {
329
- throw new ContentConvertException('No suitable converter found for ' + this.n3b_1.toString());
329
+ throw new ContentConvertException('No suitable converter found for ' + this.z3a_1.toString());
330
330
  }
331
331
  }
332
332
  }
333
333
 
334
334
  return tmp_1;
335
335
  case 2:
336
- throw this.x8_1;
336
+ throw this.g9_1;
337
337
  }
338
338
  } catch ($p) {
339
339
  var e = $p;
340
- if (this.v8_1 === 2) {
340
+ if (this.e9_1 === 2) {
341
341
  throw e;
342
342
  } else {
343
- this.u8_1 = this.v8_1;
344
- this.x8_1 = e;
343
+ this.d9_1 = this.e9_1;
344
+ this.g9_1 = e;
345
345
  }
346
346
  }
347
347
  while (true);