@doordeck/doordeck-headless-sdk 0.193.0 → 0.194.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,31 +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.$_$.mf;
4
+ var Exception = kotlin_kotlin.$_$.sf;
5
5
  var VOID = kotlin_kotlin.$_$.b;
6
- var Exception_init_$Init$ = kotlin_kotlin.$_$.j1;
7
- var captureStack = kotlin_kotlin.$_$.ha;
8
- var protoOf = kotlin_kotlin.$_$.vb;
9
- var initMetadataForClass = kotlin_kotlin.$_$.ya;
10
- var Unit_instance = kotlin_kotlin.$_$.z4;
6
+ var Exception_init_$Init$ = kotlin_kotlin.$_$.l1;
7
+ var captureStack = kotlin_kotlin.$_$.la;
8
+ var protoOf = kotlin_kotlin.$_$.zb;
9
+ var initMetadataForClass = kotlin_kotlin.$_$.cb;
10
+ var Unit_instance = kotlin_kotlin.$_$.c5;
11
11
  var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.o;
12
- var initMetadataForInterface = kotlin_kotlin.$_$.cb;
13
- var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.g;
14
- var parseAndSortHeader = kotlin_io_ktor_ktor_http.$_$.s1;
12
+ var initMetadataForInterface = kotlin_kotlin.$_$.gb;
13
+ var parseAndSortHeader = kotlin_io_ktor_ktor_http.$_$.u1;
15
14
  var forName = kotlin_io_ktor_ktor_io.$_$.u;
16
15
  var isSupported = kotlin_io_ktor_ktor_io.$_$.v;
17
- var equals = kotlin_kotlin.$_$.qa;
18
- var FunctionAdapter = kotlin_kotlin.$_$.da;
19
- var isInterface = kotlin_kotlin.$_$.nb;
20
- var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.o;
21
- var hashCode = kotlin_kotlin.$_$.xa;
22
- var CoroutineImpl = kotlin_kotlin.$_$.h9;
23
- var THROW_CCE = kotlin_kotlin.$_$.tf;
24
- var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.r8;
25
- var initMetadataForLambda = kotlin_kotlin.$_$.db;
26
- var initMetadataForCoroutine = kotlin_kotlin.$_$.ab;
27
- var asFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.p;
28
- var firstOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a;
16
+ var equals = kotlin_kotlin.$_$.ua;
17
+ var FunctionAdapter = kotlin_kotlin.$_$.ha;
18
+ var isInterface = kotlin_kotlin.$_$.rb;
19
+ var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d1;
20
+ var hashCode = kotlin_kotlin.$_$.bb;
21
+ var CoroutineImpl = kotlin_kotlin.$_$.l9;
22
+ var THROW_CCE = kotlin_kotlin.$_$.zf;
23
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.v8;
24
+ var initMetadataForLambda = kotlin_kotlin.$_$.hb;
25
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.eb;
26
+ var asFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e1;
27
+ var firstOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d;
29
28
  var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
30
29
  //endregion
31
30
  //region block: pre-declaration
@@ -41,10 +40,10 @@
41
40
  configuration = tmp;
42
41
  var tmp_0;
43
42
  if ($super === VOID) {
44
- this.g3a(contentType, converter, configuration);
43
+ this.h3l(contentType, converter, configuration);
45
44
  tmp_0 = Unit_instance;
46
45
  } else {
47
- tmp_0 = $super.g3a.call(this, contentType, converter, configuration);
46
+ tmp_0 = $super.h3l.call(this, contentType, converter, configuration);
48
47
  }
49
48
  return tmp_0;
50
49
  }
@@ -73,7 +72,7 @@
73
72
  return tmp.i9();
74
73
  }
75
74
  function suitableCharset(_this__u8e3s4, defaultCharset) {
76
- defaultCharset = defaultCharset === VOID ? Charsets_getInstance().y1u_1 : defaultCharset;
75
+ defaultCharset = defaultCharset === VOID ? Charsets_getInstance().b1y_1 : defaultCharset;
77
76
  var tmp0_elvis_lhs = suitableCharsetOrNull(_this__u8e3s4, defaultCharset);
78
77
  return tmp0_elvis_lhs == null ? defaultCharset : tmp0_elvis_lhs;
79
78
  }
@@ -83,8 +82,8 @@
83
82
  function Configuration() {
84
83
  }
85
84
  function suitableCharsetOrNull(_this__u8e3s4, defaultCharset) {
86
- defaultCharset = defaultCharset === VOID ? Charsets_getInstance().y1u_1 : defaultCharset;
87
- var _iterator__ex2g4s = parseAndSortHeader(_this__u8e3s4.l2j(HttpHeaders_getInstance().g2s_1)).t();
85
+ defaultCharset = defaultCharset === VOID ? Charsets_getInstance().b1y_1 : defaultCharset;
86
+ var _iterator__ex2g4s = parseAndSortHeader(_this__u8e3s4.p2m('Accept-Charset')).t();
88
87
  while (_iterator__ex2g4s.u()) {
89
88
  var charset = _iterator__ex2g4s.v().fg();
90
89
  if (charset === '*')
@@ -95,13 +94,13 @@
95
94
  return null;
96
95
  }
97
96
  function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
98
- this.i3a_1 = function_0;
97
+ this.j3l_1 = function_0;
99
98
  }
100
- protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).x1a = function (value, $completion) {
101
- return this.i3a_1(value, $completion);
99
+ protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).b1e = function (value, $completion) {
100
+ return this.j3l_1(value, $completion);
102
101
  };
103
102
  protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).q3 = function () {
104
- return this.i3a_1;
103
+ return this.j3l_1;
105
104
  };
106
105
  protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
107
106
  var tmp;
@@ -122,20 +121,20 @@
122
121
  return hashCode(this.q3());
123
122
  };
124
123
  function deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation) {
125
- this.r3a_1 = $$this$unsafeFlow;
126
- this.s3a_1 = $charset;
127
- this.t3a_1 = $typeInfo;
128
- this.u3a_1 = $body;
124
+ this.s3l_1 = $$this$unsafeFlow;
125
+ this.t3l_1 = $charset;
126
+ this.u3l_1 = $typeInfo;
127
+ this.v3l_1 = $body;
129
128
  CoroutineImpl.call(this, resultContinuation);
130
129
  }
131
- protoOf(deserialize$o$collect$slambda).x3a = function (value, $completion) {
132
- var tmp = this.y3a(value, $completion);
130
+ protoOf(deserialize$o$collect$slambda).y3l = function (value, $completion) {
131
+ var tmp = this.z3l(value, $completion);
133
132
  tmp.c9_1 = Unit_instance;
134
133
  tmp.d9_1 = null;
135
134
  return tmp.i9();
136
135
  };
137
136
  protoOf(deserialize$o$collect$slambda).u9 = function (p1, $completion) {
138
- return this.x3a((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
137
+ return this.y3l((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
139
138
  };
140
139
  protoOf(deserialize$o$collect$slambda).i9 = function () {
141
140
  var suspendResult = this.c9_1;
@@ -145,11 +144,11 @@
145
144
  switch (tmp) {
146
145
  case 0:
147
146
  this.b9_1 = 3;
148
- var tmp0 = this.r3a_1;
149
- var tmp2 = this.v3a_1;
150
- this.w3a_1 = tmp0;
147
+ var tmp0 = this.s3l_1;
148
+ var tmp2 = this.w3l_1;
149
+ this.x3l_1 = tmp0;
151
150
  this.a9_1 = 1;
152
- suspendResult = tmp2.z3a(this.s3a_1, this.t3a_1, this.u3a_1, this);
151
+ suspendResult = tmp2.a3m(this.t3l_1, this.u3l_1, this.v3l_1, this);
153
152
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
154
153
  return suspendResult;
155
154
  }
@@ -158,7 +157,7 @@
158
157
  case 1:
159
158
  var ARGUMENT = suspendResult;
160
159
  this.a9_1 = 2;
161
- suspendResult = this.w3a_1.x1a(ARGUMENT, this);
160
+ suspendResult = this.x3l_1.b1e(ARGUMENT, this);
162
161
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
163
162
  return suspendResult;
164
163
  }
@@ -180,23 +179,23 @@
180
179
  }
181
180
  while (true);
182
181
  };
183
- protoOf(deserialize$o$collect$slambda).y3a = function (value, completion) {
184
- var i = new deserialize$o$collect$slambda(this.r3a_1, this.s3a_1, this.t3a_1, this.u3a_1, completion);
185
- i.v3a_1 = value;
182
+ protoOf(deserialize$o$collect$slambda).z3l = function (value, completion) {
183
+ var i = new deserialize$o$collect$slambda(this.s3l_1, this.t3l_1, this.u3l_1, this.v3l_1, completion);
184
+ i.w3l_1 = value;
186
185
  return i;
187
186
  };
188
187
  function deserialize$o$collect$slambda_0($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation) {
189
188
  var i = new deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation);
190
189
  var l = function (value, $completion) {
191
- return i.x3a(value, $completion);
190
+ return i.y3l(value, $completion);
192
191
  };
193
192
  l.$arity = 1;
194
193
  return l;
195
194
  }
196
195
  function $collectCOROUTINE$(_this__u8e3s4, collector, resultContinuation) {
197
196
  CoroutineImpl.call(this, resultContinuation);
198
- this.i3b_1 = _this__u8e3s4;
199
- this.j3b_1 = collector;
197
+ this.j3m_1 = _this__u8e3s4;
198
+ this.k3m_1 = collector;
200
199
  }
201
200
  protoOf($collectCOROUTINE$).i9 = function () {
202
201
  var suspendResult = this.c9_1;
@@ -206,10 +205,10 @@
206
205
  switch (tmp) {
207
206
  case 0:
208
207
  this.b9_1 = 2;
209
- var $this$unsafeFlow = this.j3b_1;
208
+ var $this$unsafeFlow = this.k3m_1;
210
209
  this.a9_1 = 1;
211
- var tmp_0 = deserialize$o$collect$slambda_0($this$unsafeFlow, this.i3b_1.l3b_1, this.i3b_1.m3b_1, this.i3b_1.n3b_1, null);
212
- suspendResult = this.i3b_1.k3b_1.z1a(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_0), this);
210
+ var tmp_0 = deserialize$o$collect$slambda_0($this$unsafeFlow, this.j3m_1.m3m_1, this.j3m_1.n3m_1, this.j3m_1.o3m_1, null);
211
+ suspendResult = this.j3m_1.l3m_1.d1e(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_0), this);
213
212
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
214
213
  return suspendResult;
215
214
  }
@@ -232,32 +231,32 @@
232
231
  while (true);
233
232
  };
234
233
  function deserialize$$inlined$map$1($this, $charset, $typeInfo, $body) {
235
- this.k3b_1 = $this;
236
- this.l3b_1 = $charset;
237
- this.m3b_1 = $typeInfo;
238
- this.n3b_1 = $body;
234
+ this.l3m_1 = $this;
235
+ this.m3m_1 = $charset;
236
+ this.n3m_1 = $typeInfo;
237
+ this.o3m_1 = $body;
239
238
  }
240
- protoOf(deserialize$$inlined$map$1).y1a = function (collector, $completion) {
239
+ protoOf(deserialize$$inlined$map$1).c1e = function (collector, $completion) {
241
240
  var tmp = new $collectCOROUTINE$(this, collector, $completion);
242
241
  tmp.c9_1 = Unit_instance;
243
242
  tmp.d9_1 = null;
244
243
  return tmp.i9();
245
244
  };
246
- protoOf(deserialize$$inlined$map$1).z1a = function (collector, $completion) {
247
- return this.y1a(collector, $completion);
245
+ protoOf(deserialize$$inlined$map$1).d1e = function (collector, $completion) {
246
+ return this.c1e(collector, $completion);
248
247
  };
249
248
  function deserialize$slambda($body, resultContinuation) {
250
- this.w3b_1 = $body;
249
+ this.x3m_1 = $body;
251
250
  CoroutineImpl.call(this, resultContinuation);
252
251
  }
253
- protoOf(deserialize$slambda).y3b = function (it, $completion) {
254
- var tmp = this.y3a(it, $completion);
252
+ protoOf(deserialize$slambda).z3m = function (it, $completion) {
253
+ var tmp = this.z3l(it, $completion);
255
254
  tmp.c9_1 = Unit_instance;
256
255
  tmp.d9_1 = null;
257
256
  return tmp.i9();
258
257
  };
259
258
  protoOf(deserialize$slambda).u9 = function (p1, $completion) {
260
- return this.y3b((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
259
+ return this.z3m((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
261
260
  };
262
261
  protoOf(deserialize$slambda).i9 = function () {
263
262
  var suspendResult = this.c9_1;
@@ -266,7 +265,7 @@
266
265
  var tmp = this.a9_1;
267
266
  if (tmp === 0) {
268
267
  this.b9_1 = 1;
269
- return !(this.x3b_1 == null) || this.w3b_1.b1l();
268
+ return !(this.y3m_1 == null) || this.x3m_1.e1o();
270
269
  } else if (tmp === 1) {
271
270
  throw this.d9_1;
272
271
  }
@@ -276,25 +275,25 @@
276
275
  }
277
276
  while (true);
278
277
  };
279
- protoOf(deserialize$slambda).y3a = function (it, completion) {
280
- var i = new deserialize$slambda(this.w3b_1, completion);
281
- i.x3b_1 = it;
278
+ protoOf(deserialize$slambda).z3l = function (it, completion) {
279
+ var i = new deserialize$slambda(this.x3m_1, completion);
280
+ i.y3m_1 = it;
282
281
  return i;
283
282
  };
284
283
  function deserialize$slambda_0($body, resultContinuation) {
285
284
  var i = new deserialize$slambda($body, resultContinuation);
286
285
  var l = function (it, $completion) {
287
- return i.y3b(it, $completion);
286
+ return i.z3m(it, $completion);
288
287
  };
289
288
  l.$arity = 1;
290
289
  return l;
291
290
  }
292
291
  function $deserializeCOROUTINE$(_this__u8e3s4, body, typeInfo, charset, resultContinuation) {
293
292
  CoroutineImpl.call(this, resultContinuation);
294
- this.c3a_1 = _this__u8e3s4;
295
- this.d3a_1 = body;
296
- this.e3a_1 = typeInfo;
297
- this.f3a_1 = charset;
293
+ this.d3l_1 = _this__u8e3s4;
294
+ this.e3l_1 = body;
295
+ this.f3l_1 = typeInfo;
296
+ this.g3l_1 = charset;
298
297
  }
299
298
  protoOf($deserializeCOROUTINE$).i9 = function () {
300
299
  var suspendResult = this.c9_1;
@@ -305,9 +304,9 @@
305
304
  case 0:
306
305
  this.b9_1 = 2;
307
306
  this.a9_1 = 1;
308
- var this_0 = asFlow(this.c3a_1);
309
- var tmp_0 = new deserialize$$inlined$map$1(this_0, this.f3a_1, this.e3a_1, this.d3a_1);
310
- suspendResult = firstOrNull(tmp_0, deserialize$slambda_0(this.d3a_1, null), this);
307
+ var this_0 = asFlow(this.d3l_1);
308
+ var tmp_0 = new deserialize$$inlined$map$1(this_0, this.g3l_1, this.f3l_1, this.e3l_1);
309
+ suspendResult = firstOrNull(tmp_0, deserialize$slambda_0(this.e3l_1, null), this);
311
310
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
312
311
  return suspendResult;
313
312
  }
@@ -319,14 +318,14 @@
319
318
  if (!(result == null)) {
320
319
  tmp_1 = result;
321
320
  } else {
322
- if (!this.d3a_1.b1l()) {
323
- tmp_1 = this.d3a_1;
321
+ if (!this.e3l_1.e1o()) {
322
+ tmp_1 = this.e3l_1;
324
323
  } else {
325
- var tmp0_safe_receiver = this.e3a_1.x2o_1;
324
+ var tmp0_safe_receiver = this.f3l_1.b2s_1;
326
325
  if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l()) === true) {
327
326
  tmp_1 = NullBody_instance;
328
327
  } else {
329
- throw new ContentConvertException('No suitable converter found for ' + this.e3a_1.toString());
328
+ throw new ContentConvertException('No suitable converter found for ' + this.f3l_1.toString());
330
329
  }
331
330
  }
332
331
  }