@doordeck/doordeck-headless-sdk 0.208.0 → 0.210.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.
@@ -0,0 +1,100 @@
1
+ (function (_, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_kotlin) {
2
+ 'use strict';
3
+ //region block: imports
4
+ var NamedValueEncoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c2;
5
+ var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.w3;
6
+ var protoOf = kotlin_kotlin.$_$.nc;
7
+ var THROW_CCE = kotlin_kotlin.$_$.pg;
8
+ var AbstractPolymorphicSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t1;
9
+ var findPolymorphicSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w2;
10
+ var Unit_instance = kotlin_kotlin.$_$.c3;
11
+ var initMetadataForClass = kotlin_kotlin.$_$.qb;
12
+ var VOID = kotlin_kotlin.$_$.c;
13
+ var toString = kotlin_kotlin.$_$.qc;
14
+ var EmptySerializersModule = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k2;
15
+ var initMetadataForObject = kotlin_kotlin.$_$.wb;
16
+ //endregion
17
+ //region block: pre-declaration
18
+ initMetadataForClass(OutMapper, 'OutMapper', VOID, NamedValueEncoder);
19
+ initMetadataForClass(OutStringMapper, 'OutStringMapper', VOID, OutMapper);
20
+ initMetadataForClass(Properties, 'Properties');
21
+ initMetadataForObject(Default, 'Default', VOID, Properties);
22
+ //endregion
23
+ function OutMapper($outer) {
24
+ this.v66_1 = $outer;
25
+ NamedValueEncoder.call(this);
26
+ this.t66_1 = this.v66_1.i24();
27
+ var tmp = this;
28
+ // Inline function 'kotlin.collections.mutableMapOf' call
29
+ tmp.u66_1 = LinkedHashMap_init_$Create$();
30
+ }
31
+ protoOf(OutMapper).i24 = function () {
32
+ return this.t66_1;
33
+ };
34
+ protoOf(OutMapper).l25 = function (serializer, value) {
35
+ if (serializer instanceof AbstractPolymorphicSerializer) {
36
+ var casted = serializer instanceof AbstractPolymorphicSerializer ? serializer : THROW_CCE();
37
+ var actualSerializer = findPolymorphicSerializer(casted, this, !(value == null) ? value : THROW_CCE());
38
+ this.i2j(this.a2i('type'), actualSerializer.e20().f21());
39
+ return actualSerializer.f20(this, value);
40
+ }
41
+ return serializer.f20(this, value);
42
+ };
43
+ protoOf(OutMapper).y66 = function (tag, value) {
44
+ var tmp0 = this.u66_1;
45
+ // Inline function 'kotlin.collections.set' call
46
+ var value_0 = this.x66(value);
47
+ tmp0.y2(tag, value_0);
48
+ };
49
+ protoOf(OutMapper).x2i = function (tag, value) {
50
+ return this.y66((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), value);
51
+ };
52
+ protoOf(OutMapper).z66 = function (tag) {
53
+ };
54
+ protoOf(OutMapper).z2i = function (tag) {
55
+ return this.z66((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
56
+ };
57
+ protoOf(OutMapper).a67 = function (tag, enumDescriptor, ordinal) {
58
+ var tmp0 = this.u66_1;
59
+ // Inline function 'kotlin.collections.set' call
60
+ var value = this.x66(enumDescriptor.e22(ordinal));
61
+ tmp0.y2(tag, value);
62
+ };
63
+ protoOf(OutMapper).j2j = function (tag, enumDescriptor, ordinal) {
64
+ return this.a67((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), enumDescriptor, ordinal);
65
+ };
66
+ function OutStringMapper($outer) {
67
+ this.f67_1 = $outer;
68
+ OutMapper.call(this, $outer);
69
+ }
70
+ protoOf(OutStringMapper).x66 = function (value) {
71
+ return toString(value);
72
+ };
73
+ function Default() {
74
+ Default_instance = this;
75
+ Properties.call(this, EmptySerializersModule(), null);
76
+ }
77
+ var Default_instance;
78
+ function Default_getInstance() {
79
+ if (Default_instance == null)
80
+ new Default();
81
+ return Default_instance;
82
+ }
83
+ function Properties(serializersModule, ctorMarker) {
84
+ Default_getInstance();
85
+ this.w66_1 = serializersModule;
86
+ }
87
+ protoOf(Properties).i24 = function () {
88
+ return this.w66_1;
89
+ };
90
+ protoOf(Properties).g67 = function (serializer, value) {
91
+ var m = new OutStringMapper(this);
92
+ m.l25(serializer, value);
93
+ return m.u66_1;
94
+ };
95
+ //region block: exports
96
+ _.$_$ = _.$_$ || {};
97
+ _.$_$.a = Default_getInstance;
98
+ //endregion
99
+ return _;
100
+ }(module.exports, require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./kotlin-kotlin-stdlib.js')));