@doordeck/doordeck-headless-sdk 0.203.0 → 0.205.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,30 @@
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.$_$.ag;
4
+ var Exception = kotlin_kotlin.$_$.cg;
5
5
  var VOID = kotlin_kotlin.$_$.c;
6
- var Exception_init_$Init$ = kotlin_kotlin.$_$.l2;
6
+ var Exception_init_$Init$ = kotlin_kotlin.$_$.k4;
7
7
  var captureStack = kotlin_kotlin.$_$.sa;
8
- var protoOf = kotlin_kotlin.$_$.gc;
9
- var initMetadataForClass = kotlin_kotlin.$_$.jb;
10
- var Unit_instance = kotlin_kotlin.$_$.a1;
11
- var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.a;
12
- var initMetadataForInterface = kotlin_kotlin.$_$.nb;
8
+ var protoOf = kotlin_kotlin.$_$.hc;
9
+ var initMetadataForClass = kotlin_kotlin.$_$.kb;
10
+ var Unit_instance = kotlin_kotlin.$_$.z2;
11
+ var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.b;
12
+ var initMetadataForInterface = kotlin_kotlin.$_$.ob;
13
13
  var parseAndSortHeader = kotlin_io_ktor_ktor_http.$_$.u1;
14
14
  var forName = kotlin_io_ktor_ktor_io.$_$.u;
15
15
  var isSupported = kotlin_io_ktor_ktor_io.$_$.v;
16
- var equals = kotlin_kotlin.$_$.bb;
16
+ var equals = kotlin_kotlin.$_$.cb;
17
17
  var FunctionAdapter = kotlin_kotlin.$_$.oa;
18
- var isInterface = kotlin_kotlin.$_$.yb;
18
+ var isInterface = kotlin_kotlin.$_$.zb;
19
19
  var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d1;
20
- var hashCode = kotlin_kotlin.$_$.ib;
20
+ var hashCode = kotlin_kotlin.$_$.jb;
21
21
  var CoroutineImpl = kotlin_kotlin.$_$.s9;
22
22
  var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.b9;
23
- var initMetadataForLambda = kotlin_kotlin.$_$.ob;
24
- var initMetadataForCoroutine = kotlin_kotlin.$_$.lb;
23
+ var initMetadataForLambda = kotlin_kotlin.$_$.pb;
24
+ var constructCallableReference = kotlin_kotlin.$_$.ab;
25
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.mb;
25
26
  var asFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e1;
26
- var firstOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j;
27
+ var firstOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l;
27
28
  var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
28
29
  //endregion
29
30
  //region block: pre-declaration
@@ -39,10 +40,10 @@
39
40
  configuration = tmp;
40
41
  var tmp_0;
41
42
  if ($super === VOID) {
42
- this.j3n(contentType, converter, configuration);
43
+ this.q3n(contentType, converter, configuration);
43
44
  tmp_0 = Unit_instance;
44
45
  } else {
45
- tmp_0 = $super.j3n.call(this, contentType, converter, configuration);
46
+ tmp_0 = $super.q3n.call(this, contentType, converter, configuration);
46
47
  }
47
48
  return tmp_0;
48
49
  }
@@ -71,7 +72,7 @@
71
72
  return tmp.l9();
72
73
  }
73
74
  function suitableCharset(_this__u8e3s4, defaultCharset) {
74
- defaultCharset = defaultCharset === VOID ? Charsets_getInstance().v1y_1 : defaultCharset;
75
+ defaultCharset = defaultCharset === VOID ? Charsets_getInstance().c1z_1 : defaultCharset;
75
76
  var tmp0_elvis_lhs = suitableCharsetOrNull(_this__u8e3s4, defaultCharset);
76
77
  return tmp0_elvis_lhs == null ? defaultCharset : tmp0_elvis_lhs;
77
78
  }
@@ -81,10 +82,10 @@
81
82
  function Configuration() {
82
83
  }
83
84
  function suitableCharsetOrNull(_this__u8e3s4, defaultCharset) {
84
- defaultCharset = defaultCharset === VOID ? Charsets_getInstance().v1y_1 : defaultCharset;
85
- var _iterator__ex2g4s = parseAndSortHeader(_this__u8e3s4.p2o('Accept-Charset')).t();
85
+ defaultCharset = defaultCharset === VOID ? Charsets_getInstance().c1z_1 : defaultCharset;
86
+ var _iterator__ex2g4s = parseAndSortHeader(_this__u8e3s4.w2o('Accept-Charset')).t();
86
87
  while (_iterator__ex2g4s.u()) {
87
- var charset = _iterator__ex2g4s.v().fg();
88
+ var charset = _iterator__ex2g4s.v().jg();
88
89
  if (charset === '*')
89
90
  return defaultCharset;
90
91
  else if (isSupported(Charsets_getInstance(), charset))
@@ -93,13 +94,13 @@
93
94
  return null;
94
95
  }
95
96
  function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
96
- this.l3n_1 = function_0;
97
+ this.s3n_1 = function_0;
97
98
  }
98
- protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).u1e = function (value, $completion) {
99
- return this.l3n_1(value, $completion);
99
+ protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).y1e = function (value, $completion) {
100
+ return this.s3n_1(value, $completion);
100
101
  };
101
102
  protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).q3 = function () {
102
- return this.l3n_1;
103
+ return this.s3n_1;
103
104
  };
104
105
  protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
105
106
  var tmp;
@@ -120,20 +121,20 @@
120
121
  return hashCode(this.q3());
121
122
  };
122
123
  function deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation) {
123
- this.u3n_1 = $$this$unsafeFlow;
124
- this.v3n_1 = $charset;
125
- this.w3n_1 = $typeInfo;
126
- this.x3n_1 = $body;
124
+ this.b3o_1 = $$this$unsafeFlow;
125
+ this.c3o_1 = $charset;
126
+ this.d3o_1 = $typeInfo;
127
+ this.e3o_1 = $body;
127
128
  CoroutineImpl.call(this, resultContinuation);
128
129
  }
129
- protoOf(deserialize$o$collect$slambda).a3o = function (value, $completion) {
130
- var tmp = this.b3o(value, $completion);
130
+ protoOf(deserialize$o$collect$slambda).h3o = function (value, $completion) {
131
+ var tmp = this.i3o(value, $completion);
131
132
  tmp.f9_1 = Unit_instance;
132
133
  tmp.g9_1 = null;
133
134
  return tmp.l9();
134
135
  };
135
136
  protoOf(deserialize$o$collect$slambda).y9 = function (p1, $completion) {
136
- return this.a3o(p1, $completion);
137
+ return this.h3o(p1, $completion);
137
138
  };
138
139
  protoOf(deserialize$o$collect$slambda).l9 = function () {
139
140
  var suspendResult = this.f9_1;
@@ -143,11 +144,11 @@
143
144
  switch (tmp) {
144
145
  case 0:
145
146
  this.e9_1 = 3;
146
- var tmp0 = this.u3n_1;
147
- var tmp2 = this.y3n_1;
148
- this.z3n_1 = tmp0;
147
+ var tmp0 = this.b3o_1;
148
+ var tmp2 = this.f3o_1;
149
+ this.g3o_1 = tmp0;
149
150
  this.d9_1 = 1;
150
- suspendResult = tmp2.c3o(this.v3n_1, this.w3n_1, this.x3n_1, this);
151
+ suspendResult = tmp2.j3o(this.c3o_1, this.d3o_1, this.e3o_1, this);
151
152
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
152
153
  return suspendResult;
153
154
  }
@@ -156,7 +157,7 @@
156
157
  case 1:
157
158
  var ARGUMENT = suspendResult;
158
159
  this.d9_1 = 2;
159
- suspendResult = this.z3n_1.u1e(ARGUMENT, this);
160
+ suspendResult = this.g3o_1.y1e(ARGUMENT, this);
160
161
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
161
162
  return suspendResult;
162
163
  }
@@ -178,23 +179,21 @@
178
179
  }
179
180
  while (true);
180
181
  };
181
- protoOf(deserialize$o$collect$slambda).b3o = function (value, completion) {
182
- var i = new deserialize$o$collect$slambda(this.u3n_1, this.v3n_1, this.w3n_1, this.x3n_1, completion);
183
- i.y3n_1 = value;
182
+ protoOf(deserialize$o$collect$slambda).i3o = function (value, completion) {
183
+ var i = new deserialize$o$collect$slambda(this.b3o_1, this.c3o_1, this.d3o_1, this.e3o_1, completion);
184
+ i.f3o_1 = value;
184
185
  return i;
185
186
  };
186
187
  function deserialize$o$collect$slambda_0($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation) {
187
188
  var i = new deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation);
188
- var l = function (value, $completion) {
189
- return i.a3o(value, $completion);
190
- };
191
- l.$arity = 1;
192
- return l;
189
+ return constructCallableReference(function (value, $completion) {
190
+ return i.h3o(value, $completion);
191
+ }, 1);
193
192
  }
194
193
  function $collectCOROUTINE$(_this__u8e3s4, collector, resultContinuation) {
195
194
  CoroutineImpl.call(this, resultContinuation);
196
- this.l3o_1 = _this__u8e3s4;
197
- this.m3o_1 = collector;
195
+ this.s3o_1 = _this__u8e3s4;
196
+ this.t3o_1 = collector;
198
197
  }
199
198
  protoOf($collectCOROUTINE$).l9 = function () {
200
199
  var suspendResult = this.f9_1;
@@ -204,10 +203,10 @@
204
203
  switch (tmp) {
205
204
  case 0:
206
205
  this.e9_1 = 2;
207
- var $this$unsafeFlow = this.m3o_1;
206
+ var $this$unsafeFlow = this.t3o_1;
208
207
  this.d9_1 = 1;
209
- var tmp_0 = deserialize$o$collect$slambda_0($this$unsafeFlow, this.l3o_1.o3o_1, this.l3o_1.p3o_1, this.l3o_1.q3o_1, null);
210
- suspendResult = this.l3o_1.n3o_1.w1e(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_0), this);
208
+ var tmp_0 = deserialize$o$collect$slambda_0($this$unsafeFlow, this.s3o_1.v3o_1, this.s3o_1.w3o_1, this.s3o_1.x3o_1, null);
209
+ suspendResult = this.s3o_1.u3o_1.a1f(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_0), this);
211
210
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
212
211
  return suspendResult;
213
212
  }
@@ -230,32 +229,32 @@
230
229
  while (true);
231
230
  };
232
231
  function deserialize$$inlined$map$1($this, $charset, $typeInfo, $body) {
233
- this.n3o_1 = $this;
234
- this.o3o_1 = $charset;
235
- this.p3o_1 = $typeInfo;
236
- this.q3o_1 = $body;
232
+ this.u3o_1 = $this;
233
+ this.v3o_1 = $charset;
234
+ this.w3o_1 = $typeInfo;
235
+ this.x3o_1 = $body;
237
236
  }
238
- protoOf(deserialize$$inlined$map$1).v1e = function (collector, $completion) {
237
+ protoOf(deserialize$$inlined$map$1).z1e = function (collector, $completion) {
239
238
  var tmp = new $collectCOROUTINE$(this, collector, $completion);
240
239
  tmp.f9_1 = Unit_instance;
241
240
  tmp.g9_1 = null;
242
241
  return tmp.l9();
243
242
  };
244
- protoOf(deserialize$$inlined$map$1).w1e = function (collector, $completion) {
245
- return this.v1e(collector, $completion);
243
+ protoOf(deserialize$$inlined$map$1).a1f = function (collector, $completion) {
244
+ return this.z1e(collector, $completion);
246
245
  };
247
246
  function deserialize$slambda($body, resultContinuation) {
248
- this.z3o_1 = $body;
247
+ this.g3p_1 = $body;
249
248
  CoroutineImpl.call(this, resultContinuation);
250
249
  }
251
- protoOf(deserialize$slambda).b3p = function (it, $completion) {
252
- var tmp = this.b3o(it, $completion);
250
+ protoOf(deserialize$slambda).i3p = function (it, $completion) {
251
+ var tmp = this.i3o(it, $completion);
253
252
  tmp.f9_1 = Unit_instance;
254
253
  tmp.g9_1 = null;
255
254
  return tmp.l9();
256
255
  };
257
256
  protoOf(deserialize$slambda).y9 = function (p1, $completion) {
258
- return this.b3p(p1, $completion);
257
+ return this.i3p(p1, $completion);
259
258
  };
260
259
  protoOf(deserialize$slambda).l9 = function () {
261
260
  var suspendResult = this.f9_1;
@@ -264,7 +263,7 @@
264
263
  var tmp = this.d9_1;
265
264
  if (tmp === 0) {
266
265
  this.e9_1 = 1;
267
- return !(this.a3p_1 == null) || this.z3o_1.x1o();
266
+ return !(this.h3p_1 == null) || this.g3p_1.b1p();
268
267
  } else if (tmp === 1) {
269
268
  throw this.g9_1;
270
269
  }
@@ -274,25 +273,23 @@
274
273
  }
275
274
  while (true);
276
275
  };
277
- protoOf(deserialize$slambda).b3o = function (it, completion) {
278
- var i = new deserialize$slambda(this.z3o_1, completion);
279
- i.a3p_1 = it;
276
+ protoOf(deserialize$slambda).i3o = function (it, completion) {
277
+ var i = new deserialize$slambda(this.g3p_1, completion);
278
+ i.h3p_1 = it;
280
279
  return i;
281
280
  };
282
281
  function deserialize$slambda_0($body, resultContinuation) {
283
282
  var i = new deserialize$slambda($body, resultContinuation);
284
- var l = function (it, $completion) {
285
- return i.b3p(it, $completion);
286
- };
287
- l.$arity = 1;
288
- return l;
283
+ return constructCallableReference(function (it, $completion) {
284
+ return i.i3p(it, $completion);
285
+ }, 1);
289
286
  }
290
287
  function $deserializeCOROUTINE$(_this__u8e3s4, body, typeInfo, charset, resultContinuation) {
291
288
  CoroutineImpl.call(this, resultContinuation);
292
- this.f3n_1 = _this__u8e3s4;
293
- this.g3n_1 = body;
294
- this.h3n_1 = typeInfo;
295
- this.i3n_1 = charset;
289
+ this.m3n_1 = _this__u8e3s4;
290
+ this.n3n_1 = body;
291
+ this.o3n_1 = typeInfo;
292
+ this.p3n_1 = charset;
296
293
  }
297
294
  protoOf($deserializeCOROUTINE$).l9 = function () {
298
295
  var suspendResult = this.f9_1;
@@ -303,9 +300,9 @@
303
300
  case 0:
304
301
  this.e9_1 = 2;
305
302
  this.d9_1 = 1;
306
- var this_0 = asFlow(this.f3n_1);
307
- var tmp_0 = new deserialize$$inlined$map$1(this_0, this.i3n_1, this.h3n_1, this.g3n_1);
308
- suspendResult = firstOrNull(tmp_0, deserialize$slambda_0(this.g3n_1, null), this);
303
+ var this_0 = asFlow(this.m3n_1);
304
+ var tmp_0 = new deserialize$$inlined$map$1(this_0, this.p3n_1, this.o3n_1, this.n3n_1);
305
+ suspendResult = firstOrNull(tmp_0, deserialize$slambda_0(this.n3n_1, null), this);
309
306
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
310
307
  return suspendResult;
311
308
  }
@@ -317,14 +314,14 @@
317
314
  if (!(result == null)) {
318
315
  tmp_1 = result;
319
316
  } else {
320
- if (!this.g3n_1.x1o()) {
321
- tmp_1 = this.g3n_1;
317
+ if (!this.n3n_1.b1p()) {
318
+ tmp_1 = this.n3n_1;
322
319
  } else {
323
- var tmp0_safe_receiver = this.h3n_1.p2t_1;
320
+ var tmp0_safe_receiver = this.o3n_1.w2t_1;
324
321
  if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l()) === true) {
325
322
  tmp_1 = NullBody_instance;
326
323
  } else {
327
- throw new ContentConvertException('No suitable converter found for ' + this.h3n_1.toString());
324
+ throw new ContentConvertException('No suitable converter found for ' + this.o3n_1.toString());
328
325
  }
329
326
  }
330
327
  }