@doordeck/doordeck-headless-sdk 0.209.0 → 0.211.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,25 @@
1
- (function (_, kotlin_kotlin, kotlin_io_ktor_ktor_io, kotlin_io_ktor_ktor_http, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core) {
1
+ (function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_io_ktor_ktor_http) {
2
2
  'use strict';
3
3
  //region block: imports
4
- var Exception = kotlin_kotlin.$_$.cg;
4
+ var Exception = kotlin_kotlin.$_$.ig;
5
5
  var VOID = kotlin_kotlin.$_$.c;
6
- var Exception_init_$Init$ = kotlin_kotlin.$_$.k4;
7
- var captureStack = kotlin_kotlin.$_$.sa;
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
- var parseAndSortHeader = kotlin_io_ktor_ktor_http.$_$.u1;
14
- var forName = kotlin_io_ktor_ktor_io.$_$.u;
15
- var isSupported = kotlin_io_ktor_ktor_io.$_$.v;
16
- var equals = kotlin_kotlin.$_$.cb;
17
- var FunctionAdapter = kotlin_kotlin.$_$.oa;
18
- var isInterface = kotlin_kotlin.$_$.zb;
19
- var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d1;
20
- var hashCode = kotlin_kotlin.$_$.jb;
21
- var CoroutineImpl = kotlin_kotlin.$_$.s9;
22
- var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.b9;
23
- var initMetadataForLambda = kotlin_kotlin.$_$.pb;
24
- var constructCallableReference = kotlin_kotlin.$_$.ab;
25
- var initMetadataForCoroutine = kotlin_kotlin.$_$.mb;
26
- var asFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e1;
6
+ var Exception_init_$Init$ = kotlin_kotlin.$_$.o4;
7
+ var captureStack = kotlin_kotlin.$_$.ya;
8
+ var protoOf = kotlin_kotlin.$_$.nc;
9
+ var initMetadataForClass = kotlin_kotlin.$_$.qb;
10
+ var Unit_instance = kotlin_kotlin.$_$.c3;
11
+ var initMetadataForInterface = kotlin_kotlin.$_$.ub;
12
+ var equals = kotlin_kotlin.$_$.ib;
13
+ var FunctionAdapter = kotlin_kotlin.$_$.ua;
14
+ var isInterface = kotlin_kotlin.$_$.fc;
15
+ var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e1;
16
+ var hashCode = kotlin_kotlin.$_$.pb;
17
+ var CoroutineImpl = kotlin_kotlin.$_$.y9;
18
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.h9;
19
+ var initMetadataForLambda = kotlin_kotlin.$_$.vb;
20
+ var constructCallableReference = kotlin_kotlin.$_$.gb;
21
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.sb;
22
+ var asFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f1;
27
23
  var firstOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l;
28
24
  var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
29
25
  //endregion
@@ -40,10 +36,10 @@
40
36
  configuration = tmp;
41
37
  var tmp_0;
42
38
  if ($super === VOID) {
43
- this.q3n(contentType, converter, configuration);
39
+ this.g3o(contentType, converter, configuration);
44
40
  tmp_0 = Unit_instance;
45
41
  } else {
46
- tmp_0 = $super.q3n.call(this, contentType, converter, configuration);
42
+ tmp_0 = $super.g3o.call(this, contentType, converter, configuration);
47
43
  }
48
44
  return tmp_0;
49
45
  }
@@ -71,36 +67,19 @@
71
67
  tmp.g9_1 = null;
72
68
  return tmp.l9();
73
69
  }
74
- function suitableCharset(_this__u8e3s4, defaultCharset) {
75
- defaultCharset = defaultCharset === VOID ? Charsets_getInstance().c1z_1 : defaultCharset;
76
- var tmp0_elvis_lhs = suitableCharsetOrNull(_this__u8e3s4, defaultCharset);
77
- return tmp0_elvis_lhs == null ? defaultCharset : tmp0_elvis_lhs;
78
- }
79
70
  function Configuration$register$lambda(_this__u8e3s4) {
80
71
  return Unit_instance;
81
72
  }
82
73
  function Configuration() {
83
74
  }
84
- function suitableCharsetOrNull(_this__u8e3s4, defaultCharset) {
85
- defaultCharset = defaultCharset === VOID ? Charsets_getInstance().c1z_1 : defaultCharset;
86
- var _iterator__ex2g4s = parseAndSortHeader(_this__u8e3s4.w2o('Accept-Charset')).t();
87
- while (_iterator__ex2g4s.u()) {
88
- var charset = _iterator__ex2g4s.v().jg();
89
- if (charset === '*')
90
- return defaultCharset;
91
- else if (isSupported(Charsets_getInstance(), charset))
92
- return forName(Charsets_getInstance(), charset);
93
- }
94
- return null;
95
- }
96
75
  function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
97
- this.s3n_1 = function_0;
76
+ this.i3o_1 = function_0;
98
77
  }
99
78
  protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).y1e = function (value, $completion) {
100
- return this.s3n_1(value, $completion);
79
+ return this.i3o_1(value, $completion);
101
80
  };
102
81
  protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).q3 = function () {
103
- return this.s3n_1;
82
+ return this.i3o_1;
104
83
  };
105
84
  protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
106
85
  var tmp;
@@ -121,20 +100,20 @@
121
100
  return hashCode(this.q3());
122
101
  };
123
102
  function deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation) {
124
- this.b3o_1 = $$this$unsafeFlow;
125
- this.c3o_1 = $charset;
126
- this.d3o_1 = $typeInfo;
127
- this.e3o_1 = $body;
103
+ this.r3o_1 = $$this$unsafeFlow;
104
+ this.s3o_1 = $charset;
105
+ this.t3o_1 = $typeInfo;
106
+ this.u3o_1 = $body;
128
107
  CoroutineImpl.call(this, resultContinuation);
129
108
  }
130
- protoOf(deserialize$o$collect$slambda).h3o = function (value, $completion) {
131
- var tmp = this.i3o(value, $completion);
109
+ protoOf(deserialize$o$collect$slambda).x3o = function (value, $completion) {
110
+ var tmp = this.y3o(value, $completion);
132
111
  tmp.f9_1 = Unit_instance;
133
112
  tmp.g9_1 = null;
134
113
  return tmp.l9();
135
114
  };
136
115
  protoOf(deserialize$o$collect$slambda).y9 = function (p1, $completion) {
137
- return this.h3o(p1, $completion);
116
+ return this.x3o(p1, $completion);
138
117
  };
139
118
  protoOf(deserialize$o$collect$slambda).l9 = function () {
140
119
  var suspendResult = this.f9_1;
@@ -144,11 +123,11 @@
144
123
  switch (tmp) {
145
124
  case 0:
146
125
  this.e9_1 = 3;
147
- var tmp0 = this.b3o_1;
148
- var tmp2 = this.f3o_1;
149
- this.g3o_1 = tmp0;
126
+ var tmp0 = this.r3o_1;
127
+ var tmp2 = this.v3o_1;
128
+ this.w3o_1 = tmp0;
150
129
  this.d9_1 = 1;
151
- suspendResult = tmp2.j3o(this.c3o_1, this.d3o_1, this.e3o_1, this);
130
+ suspendResult = tmp2.z3o(this.s3o_1, this.t3o_1, this.u3o_1, this);
152
131
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
153
132
  return suspendResult;
154
133
  }
@@ -157,7 +136,7 @@
157
136
  case 1:
158
137
  var ARGUMENT = suspendResult;
159
138
  this.d9_1 = 2;
160
- suspendResult = this.g3o_1.y1e(ARGUMENT, this);
139
+ suspendResult = this.w3o_1.y1e(ARGUMENT, this);
161
140
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
162
141
  return suspendResult;
163
142
  }
@@ -179,21 +158,21 @@
179
158
  }
180
159
  while (true);
181
160
  };
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;
161
+ protoOf(deserialize$o$collect$slambda).y3o = function (value, completion) {
162
+ var i = new deserialize$o$collect$slambda(this.r3o_1, this.s3o_1, this.t3o_1, this.u3o_1, completion);
163
+ i.v3o_1 = value;
185
164
  return i;
186
165
  };
187
166
  function deserialize$o$collect$slambda_0($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation) {
188
167
  var i = new deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation);
189
168
  return constructCallableReference(function (value, $completion) {
190
- return i.h3o(value, $completion);
169
+ return i.x3o(value, $completion);
191
170
  }, 1);
192
171
  }
193
172
  function $collectCOROUTINE$(_this__u8e3s4, collector, resultContinuation) {
194
173
  CoroutineImpl.call(this, resultContinuation);
195
- this.s3o_1 = _this__u8e3s4;
196
- this.t3o_1 = collector;
174
+ this.i3p_1 = _this__u8e3s4;
175
+ this.j3p_1 = collector;
197
176
  }
198
177
  protoOf($collectCOROUTINE$).l9 = function () {
199
178
  var suspendResult = this.f9_1;
@@ -203,10 +182,10 @@
203
182
  switch (tmp) {
204
183
  case 0:
205
184
  this.e9_1 = 2;
206
- var $this$unsafeFlow = this.t3o_1;
185
+ var $this$unsafeFlow = this.j3p_1;
207
186
  this.d9_1 = 1;
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);
187
+ var tmp_0 = deserialize$o$collect$slambda_0($this$unsafeFlow, this.i3p_1.l3p_1, this.i3p_1.m3p_1, this.i3p_1.n3p_1, null);
188
+ suspendResult = this.i3p_1.k3p_1.a1f(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_0), this);
210
189
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
211
190
  return suspendResult;
212
191
  }
@@ -229,10 +208,10 @@
229
208
  while (true);
230
209
  };
231
210
  function deserialize$$inlined$map$1($this, $charset, $typeInfo, $body) {
232
- this.u3o_1 = $this;
233
- this.v3o_1 = $charset;
234
- this.w3o_1 = $typeInfo;
235
- this.x3o_1 = $body;
211
+ this.k3p_1 = $this;
212
+ this.l3p_1 = $charset;
213
+ this.m3p_1 = $typeInfo;
214
+ this.n3p_1 = $body;
236
215
  }
237
216
  protoOf(deserialize$$inlined$map$1).z1e = function (collector, $completion) {
238
217
  var tmp = new $collectCOROUTINE$(this, collector, $completion);
@@ -244,17 +223,17 @@
244
223
  return this.z1e(collector, $completion);
245
224
  };
246
225
  function deserialize$slambda($body, resultContinuation) {
247
- this.g3p_1 = $body;
226
+ this.w3p_1 = $body;
248
227
  CoroutineImpl.call(this, resultContinuation);
249
228
  }
250
- protoOf(deserialize$slambda).i3p = function (it, $completion) {
251
- var tmp = this.i3o(it, $completion);
229
+ protoOf(deserialize$slambda).y3p = function (it, $completion) {
230
+ var tmp = this.y3o(it, $completion);
252
231
  tmp.f9_1 = Unit_instance;
253
232
  tmp.g9_1 = null;
254
233
  return tmp.l9();
255
234
  };
256
235
  protoOf(deserialize$slambda).y9 = function (p1, $completion) {
257
- return this.i3p(p1, $completion);
236
+ return this.y3p(p1, $completion);
258
237
  };
259
238
  protoOf(deserialize$slambda).l9 = function () {
260
239
  var suspendResult = this.f9_1;
@@ -263,7 +242,7 @@
263
242
  var tmp = this.d9_1;
264
243
  if (tmp === 0) {
265
244
  this.e9_1 = 1;
266
- return !(this.h3p_1 == null) || this.g3p_1.b1p();
245
+ return !(this.x3p_1 == null) || this.w3p_1.b1p();
267
246
  } else if (tmp === 1) {
268
247
  throw this.g9_1;
269
248
  }
@@ -273,23 +252,23 @@
273
252
  }
274
253
  while (true);
275
254
  };
276
- protoOf(deserialize$slambda).i3o = function (it, completion) {
277
- var i = new deserialize$slambda(this.g3p_1, completion);
278
- i.h3p_1 = it;
255
+ protoOf(deserialize$slambda).y3o = function (it, completion) {
256
+ var i = new deserialize$slambda(this.w3p_1, completion);
257
+ i.x3p_1 = it;
279
258
  return i;
280
259
  };
281
260
  function deserialize$slambda_0($body, resultContinuation) {
282
261
  var i = new deserialize$slambda($body, resultContinuation);
283
262
  return constructCallableReference(function (it, $completion) {
284
- return i.i3p(it, $completion);
263
+ return i.y3p(it, $completion);
285
264
  }, 1);
286
265
  }
287
266
  function $deserializeCOROUTINE$(_this__u8e3s4, body, typeInfo, charset, resultContinuation) {
288
267
  CoroutineImpl.call(this, resultContinuation);
289
- this.m3n_1 = _this__u8e3s4;
290
- this.n3n_1 = body;
291
- this.o3n_1 = typeInfo;
292
- this.p3n_1 = charset;
268
+ this.c3o_1 = _this__u8e3s4;
269
+ this.d3o_1 = body;
270
+ this.e3o_1 = typeInfo;
271
+ this.f3o_1 = charset;
293
272
  }
294
273
  protoOf($deserializeCOROUTINE$).l9 = function () {
295
274
  var suspendResult = this.f9_1;
@@ -300,9 +279,9 @@
300
279
  case 0:
301
280
  this.e9_1 = 2;
302
281
  this.d9_1 = 1;
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);
282
+ var this_0 = asFlow(this.c3o_1);
283
+ var tmp_0 = new deserialize$$inlined$map$1(this_0, this.f3o_1, this.e3o_1, this.d3o_1);
284
+ suspendResult = firstOrNull(tmp_0, deserialize$slambda_0(this.d3o_1, null), this);
306
285
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
307
286
  return suspendResult;
308
287
  }
@@ -314,14 +293,14 @@
314
293
  if (!(result == null)) {
315
294
  tmp_1 = result;
316
295
  } else {
317
- if (!this.n3n_1.b1p()) {
318
- tmp_1 = this.n3n_1;
296
+ if (!this.d3o_1.b1p()) {
297
+ tmp_1 = this.d3o_1;
319
298
  } else {
320
- var tmp0_safe_receiver = this.o3n_1.w2t_1;
299
+ var tmp0_safe_receiver = this.e3o_1.n2u_1;
321
300
  if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l()) === true) {
322
301
  tmp_1 = NullBody_instance;
323
302
  } else {
324
- throw new ContentConvertException('No suitable converter found for ' + this.o3n_1.toString());
303
+ throw new ContentConvertException('No suitable converter found for ' + this.e3o_1.toString());
325
304
  }
326
305
  }
327
306
  }
@@ -348,7 +327,6 @@
348
327
  _.$_$.c = Configuration;
349
328
  _.$_$.d = ContentConvertException;
350
329
  _.$_$.e = JsonConvertException;
351
- _.$_$.f = suitableCharset;
352
330
  //endregion
353
331
  return _;
354
- }(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./ktor-ktor-io.js'), require('./ktor-ktor-http.js'), require('./kotlinx-coroutines-core.js')));
332
+ }(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-coroutines-core.js'), require('./ktor-ktor-http.js')));