@doordeck/doordeck-headless-sdk 0.193.0 → 0.195.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,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.$_$.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;
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;
6
+ var Exception_init_$Init$ = kotlin_kotlin.$_$.j2;
7
+ var captureStack = kotlin_kotlin.$_$.la;
8
+ var protoOf = kotlin_kotlin.$_$.zb;
9
+ var initMetadataForClass = kotlin_kotlin.$_$.cb;
10
+ var Unit_instance = kotlin_kotlin.$_$.z;
11
+ var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.a;
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 get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.v8;
23
+ var initMetadataForLambda = kotlin_kotlin.$_$.hb;
24
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.eb;
25
+ var asFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e1;
26
+ var firstOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j;
29
27
  var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
30
28
  //endregion
31
29
  //region block: pre-declaration
@@ -41,10 +39,10 @@
41
39
  configuration = tmp;
42
40
  var tmp_0;
43
41
  if ($super === VOID) {
44
- this.g3a(contentType, converter, configuration);
42
+ this.d3l(contentType, converter, configuration);
45
43
  tmp_0 = Unit_instance;
46
44
  } else {
47
- tmp_0 = $super.g3a.call(this, contentType, converter, configuration);
45
+ tmp_0 = $super.d3l.call(this, contentType, converter, configuration);
48
46
  }
49
47
  return tmp_0;
50
48
  }
@@ -73,7 +71,7 @@
73
71
  return tmp.i9();
74
72
  }
75
73
  function suitableCharset(_this__u8e3s4, defaultCharset) {
76
- defaultCharset = defaultCharset === VOID ? Charsets_getInstance().y1u_1 : defaultCharset;
74
+ defaultCharset = defaultCharset === VOID ? Charsets_getInstance().x1x_1 : defaultCharset;
77
75
  var tmp0_elvis_lhs = suitableCharsetOrNull(_this__u8e3s4, defaultCharset);
78
76
  return tmp0_elvis_lhs == null ? defaultCharset : tmp0_elvis_lhs;
79
77
  }
@@ -83,10 +81,10 @@
83
81
  function Configuration() {
84
82
  }
85
83
  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();
84
+ defaultCharset = defaultCharset === VOID ? Charsets_getInstance().x1x_1 : defaultCharset;
85
+ var _iterator__ex2g4s = parseAndSortHeader(_this__u8e3s4.l2m('Accept-Charset')).t();
88
86
  while (_iterator__ex2g4s.u()) {
89
- var charset = _iterator__ex2g4s.v().fg();
87
+ var charset = _iterator__ex2g4s.v().bg();
90
88
  if (charset === '*')
91
89
  return defaultCharset;
92
90
  else if (isSupported(Charsets_getInstance(), charset))
@@ -95,13 +93,13 @@
95
93
  return null;
96
94
  }
97
95
  function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
98
- this.i3a_1 = function_0;
96
+ this.f3l_1 = function_0;
99
97
  }
100
- protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).x1a = function (value, $completion) {
101
- return this.i3a_1(value, $completion);
98
+ protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).x1d = function (value, $completion) {
99
+ return this.f3l_1(value, $completion);
102
100
  };
103
101
  protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).q3 = function () {
104
- return this.i3a_1;
102
+ return this.f3l_1;
105
103
  };
106
104
  protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
107
105
  var tmp;
@@ -122,20 +120,20 @@
122
120
  return hashCode(this.q3());
123
121
  };
124
122
  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;
123
+ this.o3l_1 = $$this$unsafeFlow;
124
+ this.p3l_1 = $charset;
125
+ this.q3l_1 = $typeInfo;
126
+ this.r3l_1 = $body;
129
127
  CoroutineImpl.call(this, resultContinuation);
130
128
  }
131
- protoOf(deserialize$o$collect$slambda).x3a = function (value, $completion) {
132
- var tmp = this.y3a(value, $completion);
129
+ protoOf(deserialize$o$collect$slambda).u3l = function (value, $completion) {
130
+ var tmp = this.v3l(value, $completion);
133
131
  tmp.c9_1 = Unit_instance;
134
132
  tmp.d9_1 = null;
135
133
  return tmp.i9();
136
134
  };
137
135
  protoOf(deserialize$o$collect$slambda).u9 = function (p1, $completion) {
138
- return this.x3a((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
136
+ return this.u3l(p1, $completion);
139
137
  };
140
138
  protoOf(deserialize$o$collect$slambda).i9 = function () {
141
139
  var suspendResult = this.c9_1;
@@ -145,11 +143,11 @@
145
143
  switch (tmp) {
146
144
  case 0:
147
145
  this.b9_1 = 3;
148
- var tmp0 = this.r3a_1;
149
- var tmp2 = this.v3a_1;
150
- this.w3a_1 = tmp0;
146
+ var tmp0 = this.o3l_1;
147
+ var tmp2 = this.s3l_1;
148
+ this.t3l_1 = tmp0;
151
149
  this.a9_1 = 1;
152
- suspendResult = tmp2.z3a(this.s3a_1, this.t3a_1, this.u3a_1, this);
150
+ suspendResult = tmp2.w3l(this.p3l_1, this.q3l_1, this.r3l_1, this);
153
151
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
154
152
  return suspendResult;
155
153
  }
@@ -158,7 +156,7 @@
158
156
  case 1:
159
157
  var ARGUMENT = suspendResult;
160
158
  this.a9_1 = 2;
161
- suspendResult = this.w3a_1.x1a(ARGUMENT, this);
159
+ suspendResult = this.t3l_1.x1d(ARGUMENT, this);
162
160
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
163
161
  return suspendResult;
164
162
  }
@@ -180,23 +178,23 @@
180
178
  }
181
179
  while (true);
182
180
  };
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;
181
+ protoOf(deserialize$o$collect$slambda).v3l = function (value, completion) {
182
+ var i = new deserialize$o$collect$slambda(this.o3l_1, this.p3l_1, this.q3l_1, this.r3l_1, completion);
183
+ i.s3l_1 = value;
186
184
  return i;
187
185
  };
188
186
  function deserialize$o$collect$slambda_0($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation) {
189
187
  var i = new deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation);
190
188
  var l = function (value, $completion) {
191
- return i.x3a(value, $completion);
189
+ return i.u3l(value, $completion);
192
190
  };
193
191
  l.$arity = 1;
194
192
  return l;
195
193
  }
196
194
  function $collectCOROUTINE$(_this__u8e3s4, collector, resultContinuation) {
197
195
  CoroutineImpl.call(this, resultContinuation);
198
- this.i3b_1 = _this__u8e3s4;
199
- this.j3b_1 = collector;
196
+ this.f3m_1 = _this__u8e3s4;
197
+ this.g3m_1 = collector;
200
198
  }
201
199
  protoOf($collectCOROUTINE$).i9 = function () {
202
200
  var suspendResult = this.c9_1;
@@ -206,10 +204,10 @@
206
204
  switch (tmp) {
207
205
  case 0:
208
206
  this.b9_1 = 2;
209
- var $this$unsafeFlow = this.j3b_1;
207
+ var $this$unsafeFlow = this.g3m_1;
210
208
  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);
209
+ var tmp_0 = deserialize$o$collect$slambda_0($this$unsafeFlow, this.f3m_1.i3m_1, this.f3m_1.j3m_1, this.f3m_1.k3m_1, null);
210
+ suspendResult = this.f3m_1.h3m_1.z1d(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_0), this);
213
211
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
214
212
  return suspendResult;
215
213
  }
@@ -232,32 +230,32 @@
232
230
  while (true);
233
231
  };
234
232
  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;
233
+ this.h3m_1 = $this;
234
+ this.i3m_1 = $charset;
235
+ this.j3m_1 = $typeInfo;
236
+ this.k3m_1 = $body;
239
237
  }
240
- protoOf(deserialize$$inlined$map$1).y1a = function (collector, $completion) {
238
+ protoOf(deserialize$$inlined$map$1).y1d = function (collector, $completion) {
241
239
  var tmp = new $collectCOROUTINE$(this, collector, $completion);
242
240
  tmp.c9_1 = Unit_instance;
243
241
  tmp.d9_1 = null;
244
242
  return tmp.i9();
245
243
  };
246
- protoOf(deserialize$$inlined$map$1).z1a = function (collector, $completion) {
247
- return this.y1a(collector, $completion);
244
+ protoOf(deserialize$$inlined$map$1).z1d = function (collector, $completion) {
245
+ return this.y1d(collector, $completion);
248
246
  };
249
247
  function deserialize$slambda($body, resultContinuation) {
250
- this.w3b_1 = $body;
248
+ this.t3m_1 = $body;
251
249
  CoroutineImpl.call(this, resultContinuation);
252
250
  }
253
- protoOf(deserialize$slambda).y3b = function (it, $completion) {
254
- var tmp = this.y3a(it, $completion);
251
+ protoOf(deserialize$slambda).v3m = function (it, $completion) {
252
+ var tmp = this.v3l(it, $completion);
255
253
  tmp.c9_1 = Unit_instance;
256
254
  tmp.d9_1 = null;
257
255
  return tmp.i9();
258
256
  };
259
257
  protoOf(deserialize$slambda).u9 = function (p1, $completion) {
260
- return this.y3b((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
258
+ return this.v3m(p1, $completion);
261
259
  };
262
260
  protoOf(deserialize$slambda).i9 = function () {
263
261
  var suspendResult = this.c9_1;
@@ -266,7 +264,7 @@
266
264
  var tmp = this.a9_1;
267
265
  if (tmp === 0) {
268
266
  this.b9_1 = 1;
269
- return !(this.x3b_1 == null) || this.w3b_1.b1l();
267
+ return !(this.u3m_1 == null) || this.t3m_1.a1o();
270
268
  } else if (tmp === 1) {
271
269
  throw this.d9_1;
272
270
  }
@@ -276,25 +274,25 @@
276
274
  }
277
275
  while (true);
278
276
  };
279
- protoOf(deserialize$slambda).y3a = function (it, completion) {
280
- var i = new deserialize$slambda(this.w3b_1, completion);
281
- i.x3b_1 = it;
277
+ protoOf(deserialize$slambda).v3l = function (it, completion) {
278
+ var i = new deserialize$slambda(this.t3m_1, completion);
279
+ i.u3m_1 = it;
282
280
  return i;
283
281
  };
284
282
  function deserialize$slambda_0($body, resultContinuation) {
285
283
  var i = new deserialize$slambda($body, resultContinuation);
286
284
  var l = function (it, $completion) {
287
- return i.y3b(it, $completion);
285
+ return i.v3m(it, $completion);
288
286
  };
289
287
  l.$arity = 1;
290
288
  return l;
291
289
  }
292
290
  function $deserializeCOROUTINE$(_this__u8e3s4, body, typeInfo, charset, resultContinuation) {
293
291
  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;
292
+ this.z3k_1 = _this__u8e3s4;
293
+ this.a3l_1 = body;
294
+ this.b3l_1 = typeInfo;
295
+ this.c3l_1 = charset;
298
296
  }
299
297
  protoOf($deserializeCOROUTINE$).i9 = function () {
300
298
  var suspendResult = this.c9_1;
@@ -305,9 +303,9 @@
305
303
  case 0:
306
304
  this.b9_1 = 2;
307
305
  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);
306
+ var this_0 = asFlow(this.z3k_1);
307
+ var tmp_0 = new deserialize$$inlined$map$1(this_0, this.c3l_1, this.b3l_1, this.a3l_1);
308
+ suspendResult = firstOrNull(tmp_0, deserialize$slambda_0(this.a3l_1, null), this);
311
309
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
312
310
  return suspendResult;
313
311
  }
@@ -319,14 +317,14 @@
319
317
  if (!(result == null)) {
320
318
  tmp_1 = result;
321
319
  } else {
322
- if (!this.d3a_1.b1l()) {
323
- tmp_1 = this.d3a_1;
320
+ if (!this.a3l_1.a1o()) {
321
+ tmp_1 = this.a3l_1;
324
322
  } else {
325
- var tmp0_safe_receiver = this.e3a_1.x2o_1;
323
+ var tmp0_safe_receiver = this.b3l_1.x2r_1;
326
324
  if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l()) === true) {
327
325
  tmp_1 = NullBody_instance;
328
326
  } else {
329
- throw new ContentConvertException('No suitable converter found for ' + this.e3a_1.toString());
327
+ throw new ContentConvertException('No suitable converter found for ' + this.b3l_1.toString());
330
328
  }
331
329
  }
332
330
  }