@sddsjs/design-system-builder-cli 0.0.0-stage → 0.2.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.
- package/LICENSE +4 -0
- package/README.md +969 -2
- package/bin/dsbuilder.js +2 -0
- package/dist/kotlin/Kotlin-Immutable-Collections-kotlinx-collections-immutable.js +3170 -0
- package/dist/kotlin/Stately-stately-concurrency.js +32 -0
- package/dist/kotlin/Stately-stately-concurrent-collections.js +302 -0
- package/dist/kotlin/Stately-stately-strict.js +12 -0
- package/dist/kotlin/clikt-clikt-mordant.js +304 -0
- package/dist/kotlin/clikt-clikt.js +6960 -0
- package/dist/kotlin/colormath-root-colormath.js +1653 -0
- package/dist/kotlin/design-system-builder-frontend-analytics-metrica.js +1026 -0
- package/dist/kotlin/design-system-builder-frontend-cli.js +10690 -0
- package/dist/kotlin/design-system-builder-frontend-core-analytics.js +128 -0
- package/dist/kotlin/design-system-builder-frontend-core-application.js +3634 -0
- package/dist/kotlin/design-system-builder-frontend-core-auth.js +1772 -0
- package/dist/kotlin/design-system-builder-frontend-core-domain.js +501 -0
- package/dist/kotlin/design-system-builder-frontend-core-network.js +3318 -0
- package/dist/kotlin/design-system-builder-frontend-core-platform.js +972 -0
- package/dist/kotlin/design-system-builder-frontend-core-process.js +236 -0
- package/dist/kotlin/design-system-builder-frontend-core-workspace.js +1058 -0
- package/dist/kotlin/design-system-builder-frontend-feature-auth.js +1664 -0
- package/dist/kotlin/design-system-builder-frontend-feature-components.js +24819 -0
- package/dist/kotlin/design-system-builder-frontend-feature-docs.js +7625 -0
- package/dist/kotlin/design-system-builder-frontend-feature-ds.js +2219 -0
- package/dist/kotlin/design-system-builder-frontend-feature-init.js +318 -0
- package/dist/kotlin/design-system-builder-frontend-feature-projects.js +624 -0
- package/dist/kotlin/design-system-builder-frontend-feature-status.js +984 -0
- package/dist/kotlin/design-system-builder-frontend-feature-theme.js +10456 -0
- package/dist/kotlin/design-system-builder-frontend-feature-toolchain.js +586 -0
- package/dist/kotlin/design-system-builder-frontend-mcp-server-core.js +6878 -0
- package/dist/kotlin/design-system-builder-frontend-platform-android.js +451 -0
- package/dist/kotlin/design-system-builder-frontend-platform-ios.js +1858 -0
- package/dist/kotlin/design-system-builder-frontend-platform-web.js +1555 -0
- package/dist/kotlin/design-system-builder-frontend-runtime-node.js +1763 -0
- package/dist/kotlin/kotlin-kotlin-stdlib.js +17881 -0
- package/dist/kotlin/kotlin-logging.js +440 -0
- package/dist/kotlin/kotlin-sdk-kotlin-sdk-core.js +20228 -0
- package/dist/kotlin/kotlin-sdk-kotlin-sdk-server.js +2771 -0
- package/dist/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +8 -0
- package/dist/kotlin/kotlinx-atomicfu.js +252 -0
- package/dist/kotlin/kotlinx-coroutines-core.js +10822 -0
- package/dist/kotlin/kotlinx-io-kotlinx-io-bytestring.js +203 -0
- package/dist/kotlin/kotlinx-io-kotlinx-io-core.js +2032 -0
- package/dist/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +6171 -0
- package/dist/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +5690 -0
- package/dist/kotlin/ktor-ktor-client-core.js +8382 -0
- package/dist/kotlin/ktor-ktor-events.js +80 -0
- package/dist/kotlin/ktor-ktor-http-cio.js +2252 -0
- package/dist/kotlin/ktor-ktor-http.js +3320 -0
- package/dist/kotlin/ktor-ktor-io.js +3328 -0
- package/dist/kotlin/ktor-ktor-serialization.js +8 -0
- package/dist/kotlin/ktor-ktor-server-core.js +12 -0
- package/dist/kotlin/ktor-ktor-server-sse.js +8 -0
- package/dist/kotlin/ktor-ktor-server-websockets.js +8 -0
- package/dist/kotlin/ktor-ktor-sse.js +8 -0
- package/dist/kotlin/ktor-ktor-utils.js +2524 -0
- package/dist/kotlin/ktor-ktor-websocket-serialization.js +8 -0
- package/dist/kotlin/ktor-ktor-websockets.js +433 -0
- package/dist/kotlin/mordant-mordant-omnibus.js +8 -0
- package/dist/kotlin/mordant-mordant.js +12111 -0
- package/dist/kotlin/okio-parent-okio.js +2335 -0
- package/dist/kotlin/projects-core-koin-core.js +1285 -0
- package/package.json +26 -5
|
@@ -0,0 +1,1058 @@
|
|
|
1
|
+
(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json) {
|
|
2
|
+
'use strict';
|
|
3
|
+
//region block: imports
|
|
4
|
+
var imul = Math.imul;
|
|
5
|
+
var protoOf = kotlin_kotlin.$_$.te;
|
|
6
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.rd;
|
|
7
|
+
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a2;
|
|
8
|
+
var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r;
|
|
9
|
+
var Unit_instance = kotlin_kotlin.$_$.r5;
|
|
10
|
+
var THROW_CCE = kotlin_kotlin.$_$.wk;
|
|
11
|
+
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e;
|
|
12
|
+
var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u;
|
|
13
|
+
var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t1;
|
|
14
|
+
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u1;
|
|
15
|
+
var initMetadataForObject = kotlin_kotlin.$_$.wd;
|
|
16
|
+
var VOID = kotlin_kotlin.$_$.c;
|
|
17
|
+
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f2;
|
|
18
|
+
var objectCreate = kotlin_kotlin.$_$.se;
|
|
19
|
+
var getStringHashCode = kotlin_kotlin.$_$.od;
|
|
20
|
+
var initMetadataForClass = kotlin_kotlin.$_$.qd;
|
|
21
|
+
var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r1;
|
|
22
|
+
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.h;
|
|
23
|
+
var lazy = kotlin_kotlin.$_$.tl;
|
|
24
|
+
var emptyList = kotlin_kotlin.$_$.y7;
|
|
25
|
+
var equals = kotlin_kotlin.$_$.jd;
|
|
26
|
+
var JsonArraySerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.c;
|
|
27
|
+
var toString = kotlin_kotlin.$_$.we;
|
|
28
|
+
var toString_0 = kotlin_kotlin.$_$.bm;
|
|
29
|
+
var hashCode = kotlin_kotlin.$_$.pd;
|
|
30
|
+
var Regex_init_$Create$ = kotlin_kotlin.$_$.e1;
|
|
31
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.v1;
|
|
32
|
+
var createAnnotatedEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c2;
|
|
33
|
+
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b2;
|
|
34
|
+
var Enum = kotlin_kotlin.$_$.kk;
|
|
35
|
+
var RuntimeException = kotlin_kotlin.$_$.vk;
|
|
36
|
+
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.m2;
|
|
37
|
+
var captureStack = kotlin_kotlin.$_$.ad;
|
|
38
|
+
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.r;
|
|
39
|
+
var get_jsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.w;
|
|
40
|
+
var get_jsonPrimitive = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.x;
|
|
41
|
+
var IllegalArgumentException = kotlin_kotlin.$_$.nk;
|
|
42
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m;
|
|
43
|
+
var to = kotlin_kotlin.$_$.cm;
|
|
44
|
+
var toMap = kotlin_kotlin.$_$.pa;
|
|
45
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.y6;
|
|
46
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.l;
|
|
47
|
+
var charSequenceLength = kotlin_kotlin.$_$.fd;
|
|
48
|
+
var first = kotlin_kotlin.$_$.ch;
|
|
49
|
+
var indexOf = kotlin_kotlin.$_$.fh;
|
|
50
|
+
var substring = kotlin_kotlin.$_$.qi;
|
|
51
|
+
var isCharSequence = kotlin_kotlin.$_$.be;
|
|
52
|
+
var trim = kotlin_kotlin.$_$.uj;
|
|
53
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.w2;
|
|
54
|
+
var startsWith = kotlin_kotlin.$_$.hi;
|
|
55
|
+
var substring_0 = kotlin_kotlin.$_$.ri;
|
|
56
|
+
var charCodeAt = kotlin_kotlin.$_$.dd;
|
|
57
|
+
var isWhitespace = kotlin_kotlin.$_$.oh;
|
|
58
|
+
var trimEnd = kotlin_kotlin.$_$.nj;
|
|
59
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.v;
|
|
60
|
+
var lineSequence = kotlin_kotlin.$_$.th;
|
|
61
|
+
var checkIndexOverflow = kotlin_kotlin.$_$.x6;
|
|
62
|
+
var removeSuffix = kotlin_kotlin.$_$.xh;
|
|
63
|
+
var removePrefix = kotlin_kotlin.$_$.wh;
|
|
64
|
+
var trimStart = kotlin_kotlin.$_$.rj;
|
|
65
|
+
var startsWith_0 = kotlin_kotlin.$_$.gi;
|
|
66
|
+
var IllegalArgumentException_init_$Init$ = kotlin_kotlin.$_$.u1;
|
|
67
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.ud;
|
|
68
|
+
//endregion
|
|
69
|
+
//region block: pre-declaration
|
|
70
|
+
initMetadataForCompanion(Companion);
|
|
71
|
+
initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
72
|
+
initMetadataForClass(ProjectConfigTenant, 'ProjectConfigTenant', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance});
|
|
73
|
+
initMetadataForCompanion(Companion_0);
|
|
74
|
+
initMetadataForObject($serializer_0, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
75
|
+
initMetadataForClass(ProjectConfig, 'ProjectConfig', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_0});
|
|
76
|
+
initMetadataForCompanion(Companion_1);
|
|
77
|
+
initMetadataForObject($serializer_1, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
78
|
+
initMetadataForClass(CredentialReference, 'CredentialReference', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_1});
|
|
79
|
+
initMetadataForCompanion(Companion_2, VOID, [SerializerFactory]);
|
|
80
|
+
initMetadataForClass(CredentialReferenceType, 'CredentialReferenceType', VOID, Enum, VOID, VOID, VOID, {0: Companion_getInstance_2});
|
|
81
|
+
initMetadataForClass(ProjectConfigException, 'ProjectConfigException', VOID, RuntimeException);
|
|
82
|
+
initMetadataForClass(ProjectNotInitializedException, 'ProjectNotInitializedException', VOID, ProjectConfigException);
|
|
83
|
+
initMetadataForClass(ProjectConfigCodec, 'ProjectConfigCodec', ProjectConfigCodec);
|
|
84
|
+
initMetadataForClass(ProjectConfigStore, 'ProjectConfigStore');
|
|
85
|
+
initMetadataForClass(ProjectContext, 'ProjectContext');
|
|
86
|
+
initMetadataForClass(ProjectEnvParser, 'ProjectEnvParser', ProjectEnvParser);
|
|
87
|
+
initMetadataForClass(ProjectEnvParseException, 'ProjectEnvParseException', VOID, IllegalArgumentException);
|
|
88
|
+
initMetadataForInterface(WorkspaceFileSystem, 'WorkspaceFileSystem');
|
|
89
|
+
//endregion
|
|
90
|
+
function Companion() {
|
|
91
|
+
}
|
|
92
|
+
var Companion_instance;
|
|
93
|
+
function Companion_getInstance() {
|
|
94
|
+
return Companion_instance;
|
|
95
|
+
}
|
|
96
|
+
function $serializer() {
|
|
97
|
+
$serializer_instance = this;
|
|
98
|
+
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.dsbuilder.frontend.core.workspace.ProjectConfigTenant', this, 8);
|
|
99
|
+
tmp0_serialDesc.k2b('id', false);
|
|
100
|
+
tmp0_serialDesc.k2b('designSystemId', false);
|
|
101
|
+
tmp0_serialDesc.k2b('name', false);
|
|
102
|
+
tmp0_serialDesc.k2b('description', false);
|
|
103
|
+
tmp0_serialDesc.k2b('directoryPath', true);
|
|
104
|
+
tmp0_serialDesc.k2b('alias', true);
|
|
105
|
+
tmp0_serialDesc.k2b('createdAt', false);
|
|
106
|
+
tmp0_serialDesc.k2b('updatedAt', false);
|
|
107
|
+
this.j5m_1 = tmp0_serialDesc;
|
|
108
|
+
}
|
|
109
|
+
protoOf($serializer).k5m = function (encoder, value) {
|
|
110
|
+
var tmp0_desc = this.j5m_1;
|
|
111
|
+
var tmp1_output = encoder.s23(tmp0_desc);
|
|
112
|
+
tmp1_output.h25(tmp0_desc, 0, value.l5m_1);
|
|
113
|
+
tmp1_output.h25(tmp0_desc, 1, value.m5m_1);
|
|
114
|
+
tmp1_output.h25(tmp0_desc, 2, value.n5m_1);
|
|
115
|
+
tmp1_output.l25(tmp0_desc, 3, StringSerializer_getInstance(), value.o5m_1);
|
|
116
|
+
if (tmp1_output.p25(tmp0_desc, 4) ? true : !(value.p5m_1 == null)) {
|
|
117
|
+
tmp1_output.l25(tmp0_desc, 4, StringSerializer_getInstance(), value.p5m_1);
|
|
118
|
+
}
|
|
119
|
+
if (tmp1_output.p25(tmp0_desc, 5) ? true : !(value.q5m_1 == null)) {
|
|
120
|
+
tmp1_output.l25(tmp0_desc, 5, StringSerializer_getInstance(), value.q5m_1);
|
|
121
|
+
}
|
|
122
|
+
tmp1_output.h25(tmp0_desc, 6, value.r5m_1);
|
|
123
|
+
tmp1_output.h25(tmp0_desc, 7, value.s5m_1);
|
|
124
|
+
tmp1_output.t23(tmp0_desc);
|
|
125
|
+
};
|
|
126
|
+
protoOf($serializer).m20 = function (encoder, value) {
|
|
127
|
+
return this.k5m(encoder, value instanceof ProjectConfigTenant ? value : THROW_CCE());
|
|
128
|
+
};
|
|
129
|
+
protoOf($serializer).n20 = function (decoder) {
|
|
130
|
+
var tmp0_desc = this.j5m_1;
|
|
131
|
+
var tmp1_flag = true;
|
|
132
|
+
var tmp2_index = 0;
|
|
133
|
+
var tmp3_bitMask0 = 0;
|
|
134
|
+
var tmp4_local0 = null;
|
|
135
|
+
var tmp5_local1 = null;
|
|
136
|
+
var tmp6_local2 = null;
|
|
137
|
+
var tmp7_local3 = null;
|
|
138
|
+
var tmp8_local4 = null;
|
|
139
|
+
var tmp9_local5 = null;
|
|
140
|
+
var tmp10_local6 = null;
|
|
141
|
+
var tmp11_local7 = null;
|
|
142
|
+
var tmp12_input = decoder.s23(tmp0_desc);
|
|
143
|
+
if (tmp12_input.i24()) {
|
|
144
|
+
tmp4_local0 = tmp12_input.c24(tmp0_desc, 0);
|
|
145
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
146
|
+
tmp5_local1 = tmp12_input.c24(tmp0_desc, 1);
|
|
147
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
148
|
+
tmp6_local2 = tmp12_input.c24(tmp0_desc, 2);
|
|
149
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
150
|
+
tmp7_local3 = tmp12_input.g24(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
151
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
152
|
+
tmp8_local4 = tmp12_input.g24(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
153
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
154
|
+
tmp9_local5 = tmp12_input.g24(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
155
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
156
|
+
tmp10_local6 = tmp12_input.c24(tmp0_desc, 6);
|
|
157
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
158
|
+
tmp11_local7 = tmp12_input.c24(tmp0_desc, 7);
|
|
159
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
160
|
+
} else
|
|
161
|
+
while (tmp1_flag) {
|
|
162
|
+
tmp2_index = tmp12_input.j24(tmp0_desc);
|
|
163
|
+
switch (tmp2_index) {
|
|
164
|
+
case -1:
|
|
165
|
+
tmp1_flag = false;
|
|
166
|
+
break;
|
|
167
|
+
case 0:
|
|
168
|
+
tmp4_local0 = tmp12_input.c24(tmp0_desc, 0);
|
|
169
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
170
|
+
break;
|
|
171
|
+
case 1:
|
|
172
|
+
tmp5_local1 = tmp12_input.c24(tmp0_desc, 1);
|
|
173
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
174
|
+
break;
|
|
175
|
+
case 2:
|
|
176
|
+
tmp6_local2 = tmp12_input.c24(tmp0_desc, 2);
|
|
177
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
178
|
+
break;
|
|
179
|
+
case 3:
|
|
180
|
+
tmp7_local3 = tmp12_input.g24(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
|
|
181
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
182
|
+
break;
|
|
183
|
+
case 4:
|
|
184
|
+
tmp8_local4 = tmp12_input.g24(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
185
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
186
|
+
break;
|
|
187
|
+
case 5:
|
|
188
|
+
tmp9_local5 = tmp12_input.g24(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5);
|
|
189
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
190
|
+
break;
|
|
191
|
+
case 6:
|
|
192
|
+
tmp10_local6 = tmp12_input.c24(tmp0_desc, 6);
|
|
193
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
194
|
+
break;
|
|
195
|
+
case 7:
|
|
196
|
+
tmp11_local7 = tmp12_input.c24(tmp0_desc, 7);
|
|
197
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
198
|
+
break;
|
|
199
|
+
default:
|
|
200
|
+
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
tmp12_input.t23(tmp0_desc);
|
|
204
|
+
return ProjectConfigTenant_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
|
|
205
|
+
};
|
|
206
|
+
protoOf($serializer).l20 = function () {
|
|
207
|
+
return this.j5m_1;
|
|
208
|
+
};
|
|
209
|
+
protoOf($serializer).z2b = function () {
|
|
210
|
+
// Inline function 'kotlin.arrayOf' call
|
|
211
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
212
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
213
|
+
return [StringSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), StringSerializer_getInstance(), StringSerializer_getInstance()];
|
|
214
|
+
};
|
|
215
|
+
var $serializer_instance;
|
|
216
|
+
function $serializer_getInstance() {
|
|
217
|
+
if ($serializer_instance == null)
|
|
218
|
+
new $serializer();
|
|
219
|
+
return $serializer_instance;
|
|
220
|
+
}
|
|
221
|
+
function ProjectConfigTenant_init_$Init$(seen0, id, designSystemId, name, description, directoryPath, alias, createdAt, updatedAt, serializationConstructorMarker, $this) {
|
|
222
|
+
if (!(207 === (207 & seen0))) {
|
|
223
|
+
throwMissingFieldException(seen0, 207, $serializer_getInstance().j5m_1);
|
|
224
|
+
}
|
|
225
|
+
$this.l5m_1 = id;
|
|
226
|
+
$this.m5m_1 = designSystemId;
|
|
227
|
+
$this.n5m_1 = name;
|
|
228
|
+
$this.o5m_1 = description;
|
|
229
|
+
if (0 === (seen0 & 16))
|
|
230
|
+
$this.p5m_1 = null;
|
|
231
|
+
else
|
|
232
|
+
$this.p5m_1 = directoryPath;
|
|
233
|
+
if (0 === (seen0 & 32))
|
|
234
|
+
$this.q5m_1 = null;
|
|
235
|
+
else
|
|
236
|
+
$this.q5m_1 = alias;
|
|
237
|
+
$this.r5m_1 = createdAt;
|
|
238
|
+
$this.s5m_1 = updatedAt;
|
|
239
|
+
return $this;
|
|
240
|
+
}
|
|
241
|
+
function ProjectConfigTenant_init_$Create$(seen0, id, designSystemId, name, description, directoryPath, alias, createdAt, updatedAt, serializationConstructorMarker) {
|
|
242
|
+
return ProjectConfigTenant_init_$Init$(seen0, id, designSystemId, name, description, directoryPath, alias, createdAt, updatedAt, serializationConstructorMarker, objectCreate(protoOf(ProjectConfigTenant)));
|
|
243
|
+
}
|
|
244
|
+
function ProjectConfigTenant(id, designSystemId, name, description, directoryPath, alias, createdAt, updatedAt) {
|
|
245
|
+
directoryPath = directoryPath === VOID ? null : directoryPath;
|
|
246
|
+
alias = alias === VOID ? null : alias;
|
|
247
|
+
this.l5m_1 = id;
|
|
248
|
+
this.m5m_1 = designSystemId;
|
|
249
|
+
this.n5m_1 = name;
|
|
250
|
+
this.o5m_1 = description;
|
|
251
|
+
this.p5m_1 = directoryPath;
|
|
252
|
+
this.q5m_1 = alias;
|
|
253
|
+
this.r5m_1 = createdAt;
|
|
254
|
+
this.s5m_1 = updatedAt;
|
|
255
|
+
}
|
|
256
|
+
protoOf(ProjectConfigTenant).t5m = function (id, designSystemId, name, description, directoryPath, alias, createdAt, updatedAt) {
|
|
257
|
+
return new ProjectConfigTenant(id, designSystemId, name, description, directoryPath, alias, createdAt, updatedAt);
|
|
258
|
+
};
|
|
259
|
+
protoOf(ProjectConfigTenant).u5m = function (id, designSystemId, name, description, directoryPath, alias, createdAt, updatedAt, $super) {
|
|
260
|
+
id = id === VOID ? this.l5m_1 : id;
|
|
261
|
+
designSystemId = designSystemId === VOID ? this.m5m_1 : designSystemId;
|
|
262
|
+
name = name === VOID ? this.n5m_1 : name;
|
|
263
|
+
description = description === VOID ? this.o5m_1 : description;
|
|
264
|
+
directoryPath = directoryPath === VOID ? this.p5m_1 : directoryPath;
|
|
265
|
+
alias = alias === VOID ? this.q5m_1 : alias;
|
|
266
|
+
createdAt = createdAt === VOID ? this.r5m_1 : createdAt;
|
|
267
|
+
updatedAt = updatedAt === VOID ? this.s5m_1 : updatedAt;
|
|
268
|
+
return $super === VOID ? this.t5m(id, designSystemId, name, description, directoryPath, alias, createdAt, updatedAt) : $super.t5m.call(this, id, designSystemId, name, description, directoryPath, alias, createdAt, updatedAt);
|
|
269
|
+
};
|
|
270
|
+
protoOf(ProjectConfigTenant).toString = function () {
|
|
271
|
+
return 'ProjectConfigTenant(id=' + this.l5m_1 + ', designSystemId=' + this.m5m_1 + ', name=' + this.n5m_1 + ', description=' + this.o5m_1 + ', directoryPath=' + this.p5m_1 + ', alias=' + this.q5m_1 + ', createdAt=' + this.r5m_1 + ', updatedAt=' + this.s5m_1 + ')';
|
|
272
|
+
};
|
|
273
|
+
protoOf(ProjectConfigTenant).hashCode = function () {
|
|
274
|
+
var result = getStringHashCode(this.l5m_1);
|
|
275
|
+
result = imul(result, 31) + getStringHashCode(this.m5m_1) | 0;
|
|
276
|
+
result = imul(result, 31) + getStringHashCode(this.n5m_1) | 0;
|
|
277
|
+
result = imul(result, 31) + (this.o5m_1 == null ? 0 : getStringHashCode(this.o5m_1)) | 0;
|
|
278
|
+
result = imul(result, 31) + (this.p5m_1 == null ? 0 : getStringHashCode(this.p5m_1)) | 0;
|
|
279
|
+
result = imul(result, 31) + (this.q5m_1 == null ? 0 : getStringHashCode(this.q5m_1)) | 0;
|
|
280
|
+
result = imul(result, 31) + getStringHashCode(this.r5m_1) | 0;
|
|
281
|
+
result = imul(result, 31) + getStringHashCode(this.s5m_1) | 0;
|
|
282
|
+
return result;
|
|
283
|
+
};
|
|
284
|
+
protoOf(ProjectConfigTenant).equals = function (other) {
|
|
285
|
+
if (this === other)
|
|
286
|
+
return true;
|
|
287
|
+
if (!(other instanceof ProjectConfigTenant))
|
|
288
|
+
return false;
|
|
289
|
+
if (!(this.l5m_1 === other.l5m_1))
|
|
290
|
+
return false;
|
|
291
|
+
if (!(this.m5m_1 === other.m5m_1))
|
|
292
|
+
return false;
|
|
293
|
+
if (!(this.n5m_1 === other.n5m_1))
|
|
294
|
+
return false;
|
|
295
|
+
if (!(this.o5m_1 == other.o5m_1))
|
|
296
|
+
return false;
|
|
297
|
+
if (!(this.p5m_1 == other.p5m_1))
|
|
298
|
+
return false;
|
|
299
|
+
if (!(this.q5m_1 == other.q5m_1))
|
|
300
|
+
return false;
|
|
301
|
+
if (!(this.r5m_1 === other.r5m_1))
|
|
302
|
+
return false;
|
|
303
|
+
if (!(this.s5m_1 === other.s5m_1))
|
|
304
|
+
return false;
|
|
305
|
+
return true;
|
|
306
|
+
};
|
|
307
|
+
function ProjectConfig$Companion$$childSerializers$_anonymous__i9r2a9() {
|
|
308
|
+
return new ArrayListSerializer($serializer_getInstance());
|
|
309
|
+
}
|
|
310
|
+
function ProjectConfig$Companion$$childSerializers$_anonymous__i9r2a9_0() {
|
|
311
|
+
return new ArrayListSerializer(StringSerializer_getInstance());
|
|
312
|
+
}
|
|
313
|
+
function Companion_0() {
|
|
314
|
+
Companion_instance_0 = this;
|
|
315
|
+
var tmp = this;
|
|
316
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
317
|
+
var tmp_1 = lazy(tmp_0, ProjectConfig$Companion$$childSerializers$_anonymous__i9r2a9);
|
|
318
|
+
var tmp_2 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
319
|
+
// Inline function 'kotlin.arrayOf' call
|
|
320
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
321
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
322
|
+
tmp.v5m_1 = [null, null, null, tmp_1, null, lazy(tmp_2, ProjectConfig$Companion$$childSerializers$_anonymous__i9r2a9_0), null];
|
|
323
|
+
}
|
|
324
|
+
protoOf(Companion_0).x37 = function () {
|
|
325
|
+
return $serializer_getInstance_0();
|
|
326
|
+
};
|
|
327
|
+
var Companion_instance_0;
|
|
328
|
+
function Companion_getInstance_0() {
|
|
329
|
+
if (Companion_instance_0 == null)
|
|
330
|
+
new Companion_0();
|
|
331
|
+
return Companion_instance_0;
|
|
332
|
+
}
|
|
333
|
+
function $serializer_0() {
|
|
334
|
+
$serializer_instance_0 = this;
|
|
335
|
+
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.dsbuilder.frontend.core.workspace.ProjectConfig', this, 7);
|
|
336
|
+
tmp0_serialDesc.k2b('projectId', false);
|
|
337
|
+
tmp0_serialDesc.k2b('designSystemId', false);
|
|
338
|
+
tmp0_serialDesc.k2b('credential', false);
|
|
339
|
+
tmp0_serialDesc.k2b('tenants', true);
|
|
340
|
+
tmp0_serialDesc.k2b('palettePath', true);
|
|
341
|
+
tmp0_serialDesc.k2b('platforms', true);
|
|
342
|
+
tmp0_serialDesc.k2b('breakpoints', true);
|
|
343
|
+
this.w5m_1 = tmp0_serialDesc;
|
|
344
|
+
}
|
|
345
|
+
protoOf($serializer_0).x5m = function (encoder, value) {
|
|
346
|
+
var tmp0_desc = this.w5m_1;
|
|
347
|
+
var tmp1_output = encoder.s23(tmp0_desc);
|
|
348
|
+
var tmp2_cached = Companion_getInstance_0().v5m_1;
|
|
349
|
+
tmp1_output.h25(tmp0_desc, 0, value.y5m_1);
|
|
350
|
+
tmp1_output.h25(tmp0_desc, 1, value.z5m_1);
|
|
351
|
+
tmp1_output.j25(tmp0_desc, 2, $serializer_getInstance_1(), value.a5n_1);
|
|
352
|
+
if (tmp1_output.p25(tmp0_desc, 3) ? true : !equals(value.b5n_1, emptyList())) {
|
|
353
|
+
tmp1_output.j25(tmp0_desc, 3, tmp2_cached[3].y(), value.b5n_1);
|
|
354
|
+
}
|
|
355
|
+
if (tmp1_output.p25(tmp0_desc, 4) ? true : !(value.c5n_1 == null)) {
|
|
356
|
+
tmp1_output.l25(tmp0_desc, 4, StringSerializer_getInstance(), value.c5n_1);
|
|
357
|
+
}
|
|
358
|
+
if (tmp1_output.p25(tmp0_desc, 5) ? true : !equals(value.d5n_1, emptyList())) {
|
|
359
|
+
tmp1_output.j25(tmp0_desc, 5, tmp2_cached[5].y(), value.d5n_1);
|
|
360
|
+
}
|
|
361
|
+
if (!(value.e5n_1 == null)) {
|
|
362
|
+
tmp1_output.l25(tmp0_desc, 6, JsonArraySerializer_getInstance(), value.e5n_1);
|
|
363
|
+
}
|
|
364
|
+
tmp1_output.t23(tmp0_desc);
|
|
365
|
+
};
|
|
366
|
+
protoOf($serializer_0).m20 = function (encoder, value) {
|
|
367
|
+
return this.x5m(encoder, value instanceof ProjectConfig ? value : THROW_CCE());
|
|
368
|
+
};
|
|
369
|
+
protoOf($serializer_0).n20 = function (decoder) {
|
|
370
|
+
var tmp0_desc = this.w5m_1;
|
|
371
|
+
var tmp1_flag = true;
|
|
372
|
+
var tmp2_index = 0;
|
|
373
|
+
var tmp3_bitMask0 = 0;
|
|
374
|
+
var tmp4_local0 = null;
|
|
375
|
+
var tmp5_local1 = null;
|
|
376
|
+
var tmp6_local2 = null;
|
|
377
|
+
var tmp7_local3 = null;
|
|
378
|
+
var tmp8_local4 = null;
|
|
379
|
+
var tmp9_local5 = null;
|
|
380
|
+
var tmp10_local6 = null;
|
|
381
|
+
var tmp11_input = decoder.s23(tmp0_desc);
|
|
382
|
+
var tmp12_cached = Companion_getInstance_0().v5m_1;
|
|
383
|
+
if (tmp11_input.i24()) {
|
|
384
|
+
tmp4_local0 = tmp11_input.c24(tmp0_desc, 0);
|
|
385
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
386
|
+
tmp5_local1 = tmp11_input.c24(tmp0_desc, 1);
|
|
387
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
388
|
+
tmp6_local2 = tmp11_input.e24(tmp0_desc, 2, $serializer_getInstance_1(), tmp6_local2);
|
|
389
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
390
|
+
tmp7_local3 = tmp11_input.e24(tmp0_desc, 3, tmp12_cached[3].y(), tmp7_local3);
|
|
391
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
392
|
+
tmp8_local4 = tmp11_input.g24(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
393
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
394
|
+
tmp9_local5 = tmp11_input.e24(tmp0_desc, 5, tmp12_cached[5].y(), tmp9_local5);
|
|
395
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
396
|
+
tmp10_local6 = tmp11_input.g24(tmp0_desc, 6, JsonArraySerializer_getInstance(), tmp10_local6);
|
|
397
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
398
|
+
} else
|
|
399
|
+
while (tmp1_flag) {
|
|
400
|
+
tmp2_index = tmp11_input.j24(tmp0_desc);
|
|
401
|
+
switch (tmp2_index) {
|
|
402
|
+
case -1:
|
|
403
|
+
tmp1_flag = false;
|
|
404
|
+
break;
|
|
405
|
+
case 0:
|
|
406
|
+
tmp4_local0 = tmp11_input.c24(tmp0_desc, 0);
|
|
407
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
408
|
+
break;
|
|
409
|
+
case 1:
|
|
410
|
+
tmp5_local1 = tmp11_input.c24(tmp0_desc, 1);
|
|
411
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
412
|
+
break;
|
|
413
|
+
case 2:
|
|
414
|
+
tmp6_local2 = tmp11_input.e24(tmp0_desc, 2, $serializer_getInstance_1(), tmp6_local2);
|
|
415
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
416
|
+
break;
|
|
417
|
+
case 3:
|
|
418
|
+
tmp7_local3 = tmp11_input.e24(tmp0_desc, 3, tmp12_cached[3].y(), tmp7_local3);
|
|
419
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
420
|
+
break;
|
|
421
|
+
case 4:
|
|
422
|
+
tmp8_local4 = tmp11_input.g24(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
|
|
423
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
424
|
+
break;
|
|
425
|
+
case 5:
|
|
426
|
+
tmp9_local5 = tmp11_input.e24(tmp0_desc, 5, tmp12_cached[5].y(), tmp9_local5);
|
|
427
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
428
|
+
break;
|
|
429
|
+
case 6:
|
|
430
|
+
tmp10_local6 = tmp11_input.g24(tmp0_desc, 6, JsonArraySerializer_getInstance(), tmp10_local6);
|
|
431
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
432
|
+
break;
|
|
433
|
+
default:
|
|
434
|
+
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
tmp11_input.t23(tmp0_desc);
|
|
438
|
+
return ProjectConfig_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null);
|
|
439
|
+
};
|
|
440
|
+
protoOf($serializer_0).l20 = function () {
|
|
441
|
+
return this.w5m_1;
|
|
442
|
+
};
|
|
443
|
+
protoOf($serializer_0).z2b = function () {
|
|
444
|
+
var tmp0_cached = Companion_getInstance_0().v5m_1;
|
|
445
|
+
// Inline function 'kotlin.arrayOf' call
|
|
446
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
447
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
448
|
+
return [StringSerializer_getInstance(), StringSerializer_getInstance(), $serializer_getInstance_1(), tmp0_cached[3].y(), get_nullable(StringSerializer_getInstance()), tmp0_cached[5].y(), get_nullable(JsonArraySerializer_getInstance())];
|
|
449
|
+
};
|
|
450
|
+
var $serializer_instance_0;
|
|
451
|
+
function $serializer_getInstance_0() {
|
|
452
|
+
if ($serializer_instance_0 == null)
|
|
453
|
+
new $serializer_0();
|
|
454
|
+
return $serializer_instance_0;
|
|
455
|
+
}
|
|
456
|
+
function ProjectConfig_init_$Init$(seen0, projectId, designSystemId, credential, tenants, palettePath, platforms, breakpoints, serializationConstructorMarker, $this) {
|
|
457
|
+
if (!(7 === (7 & seen0))) {
|
|
458
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_0().w5m_1);
|
|
459
|
+
}
|
|
460
|
+
$this.y5m_1 = projectId;
|
|
461
|
+
$this.z5m_1 = designSystemId;
|
|
462
|
+
$this.a5n_1 = credential;
|
|
463
|
+
if (0 === (seen0 & 8))
|
|
464
|
+
$this.b5n_1 = emptyList();
|
|
465
|
+
else
|
|
466
|
+
$this.b5n_1 = tenants;
|
|
467
|
+
if (0 === (seen0 & 16))
|
|
468
|
+
$this.c5n_1 = null;
|
|
469
|
+
else
|
|
470
|
+
$this.c5n_1 = palettePath;
|
|
471
|
+
if (0 === (seen0 & 32))
|
|
472
|
+
$this.d5n_1 = emptyList();
|
|
473
|
+
else
|
|
474
|
+
$this.d5n_1 = platforms;
|
|
475
|
+
if (0 === (seen0 & 64))
|
|
476
|
+
$this.e5n_1 = null;
|
|
477
|
+
else
|
|
478
|
+
$this.e5n_1 = breakpoints;
|
|
479
|
+
return $this;
|
|
480
|
+
}
|
|
481
|
+
function ProjectConfig_init_$Create$(seen0, projectId, designSystemId, credential, tenants, palettePath, platforms, breakpoints, serializationConstructorMarker) {
|
|
482
|
+
return ProjectConfig_init_$Init$(seen0, projectId, designSystemId, credential, tenants, palettePath, platforms, breakpoints, serializationConstructorMarker, objectCreate(protoOf(ProjectConfig)));
|
|
483
|
+
}
|
|
484
|
+
function ProjectConfig(projectId, designSystemId, credential, tenants, palettePath, platforms, breakpoints) {
|
|
485
|
+
Companion_getInstance_0();
|
|
486
|
+
tenants = tenants === VOID ? emptyList() : tenants;
|
|
487
|
+
palettePath = palettePath === VOID ? null : palettePath;
|
|
488
|
+
platforms = platforms === VOID ? emptyList() : platforms;
|
|
489
|
+
breakpoints = breakpoints === VOID ? null : breakpoints;
|
|
490
|
+
this.y5m_1 = projectId;
|
|
491
|
+
this.z5m_1 = designSystemId;
|
|
492
|
+
this.a5n_1 = credential;
|
|
493
|
+
this.b5n_1 = tenants;
|
|
494
|
+
this.c5n_1 = palettePath;
|
|
495
|
+
this.d5n_1 = platforms;
|
|
496
|
+
this.e5n_1 = breakpoints;
|
|
497
|
+
}
|
|
498
|
+
protoOf(ProjectConfig).f5n = function (projectId, designSystemId, credential, tenants, palettePath, platforms, breakpoints) {
|
|
499
|
+
return new ProjectConfig(projectId, designSystemId, credential, tenants, palettePath, platforms, breakpoints);
|
|
500
|
+
};
|
|
501
|
+
protoOf(ProjectConfig).g5n = function (projectId, designSystemId, credential, tenants, palettePath, platforms, breakpoints, $super) {
|
|
502
|
+
projectId = projectId === VOID ? this.y5m_1 : projectId;
|
|
503
|
+
designSystemId = designSystemId === VOID ? this.z5m_1 : designSystemId;
|
|
504
|
+
credential = credential === VOID ? this.a5n_1 : credential;
|
|
505
|
+
tenants = tenants === VOID ? this.b5n_1 : tenants;
|
|
506
|
+
palettePath = palettePath === VOID ? this.c5n_1 : palettePath;
|
|
507
|
+
platforms = platforms === VOID ? this.d5n_1 : platforms;
|
|
508
|
+
breakpoints = breakpoints === VOID ? this.e5n_1 : breakpoints;
|
|
509
|
+
return $super === VOID ? this.f5n(projectId, designSystemId, credential, tenants, palettePath, platforms, breakpoints) : $super.f5n.call(this, projectId, designSystemId, credential, tenants, palettePath, platforms, breakpoints);
|
|
510
|
+
};
|
|
511
|
+
protoOf(ProjectConfig).toString = function () {
|
|
512
|
+
return 'ProjectConfig(projectId=' + this.y5m_1 + ', designSystemId=' + this.z5m_1 + ', credential=' + this.a5n_1.toString() + ', tenants=' + toString(this.b5n_1) + ', palettePath=' + this.c5n_1 + ', platforms=' + toString(this.d5n_1) + ', breakpoints=' + toString_0(this.e5n_1) + ')';
|
|
513
|
+
};
|
|
514
|
+
protoOf(ProjectConfig).hashCode = function () {
|
|
515
|
+
var result = getStringHashCode(this.y5m_1);
|
|
516
|
+
result = imul(result, 31) + getStringHashCode(this.z5m_1) | 0;
|
|
517
|
+
result = imul(result, 31) + this.a5n_1.hashCode() | 0;
|
|
518
|
+
result = imul(result, 31) + hashCode(this.b5n_1) | 0;
|
|
519
|
+
result = imul(result, 31) + (this.c5n_1 == null ? 0 : getStringHashCode(this.c5n_1)) | 0;
|
|
520
|
+
result = imul(result, 31) + hashCode(this.d5n_1) | 0;
|
|
521
|
+
result = imul(result, 31) + (this.e5n_1 == null ? 0 : this.e5n_1.hashCode()) | 0;
|
|
522
|
+
return result;
|
|
523
|
+
};
|
|
524
|
+
protoOf(ProjectConfig).equals = function (other) {
|
|
525
|
+
if (this === other)
|
|
526
|
+
return true;
|
|
527
|
+
if (!(other instanceof ProjectConfig))
|
|
528
|
+
return false;
|
|
529
|
+
if (!(this.y5m_1 === other.y5m_1))
|
|
530
|
+
return false;
|
|
531
|
+
if (!(this.z5m_1 === other.z5m_1))
|
|
532
|
+
return false;
|
|
533
|
+
if (!this.a5n_1.equals(other.a5n_1))
|
|
534
|
+
return false;
|
|
535
|
+
if (!equals(this.b5n_1, other.b5n_1))
|
|
536
|
+
return false;
|
|
537
|
+
if (!(this.c5n_1 == other.c5n_1))
|
|
538
|
+
return false;
|
|
539
|
+
if (!equals(this.d5n_1, other.d5n_1))
|
|
540
|
+
return false;
|
|
541
|
+
if (!equals(this.e5n_1, other.e5n_1))
|
|
542
|
+
return false;
|
|
543
|
+
return true;
|
|
544
|
+
};
|
|
545
|
+
function CredentialReference$Companion$$childSerializers$_anonymous__e1te16() {
|
|
546
|
+
return Companion_getInstance_2().x37();
|
|
547
|
+
}
|
|
548
|
+
function Companion_1() {
|
|
549
|
+
Companion_instance_1 = this;
|
|
550
|
+
var tmp = this;
|
|
551
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
552
|
+
// Inline function 'kotlin.arrayOf' call
|
|
553
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
554
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
555
|
+
tmp.i5n_1 = [lazy(tmp_0, CredentialReference$Companion$$childSerializers$_anonymous__e1te16), null];
|
|
556
|
+
}
|
|
557
|
+
var Companion_instance_1;
|
|
558
|
+
function Companion_getInstance_1() {
|
|
559
|
+
if (Companion_instance_1 == null)
|
|
560
|
+
new Companion_1();
|
|
561
|
+
return Companion_instance_1;
|
|
562
|
+
}
|
|
563
|
+
function $serializer_1() {
|
|
564
|
+
$serializer_instance_1 = this;
|
|
565
|
+
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.dsbuilder.frontend.core.workspace.CredentialReference', this, 2);
|
|
566
|
+
tmp0_serialDesc.k2b('type', false);
|
|
567
|
+
tmp0_serialDesc.k2b('name', true);
|
|
568
|
+
this.j5n_1 = tmp0_serialDesc;
|
|
569
|
+
}
|
|
570
|
+
protoOf($serializer_1).k5n = function (encoder, value) {
|
|
571
|
+
var tmp0_desc = this.j5n_1;
|
|
572
|
+
var tmp1_output = encoder.s23(tmp0_desc);
|
|
573
|
+
var tmp2_cached = Companion_getInstance_1().i5n_1;
|
|
574
|
+
tmp1_output.j25(tmp0_desc, 0, tmp2_cached[0].y(), value.l5n_1);
|
|
575
|
+
if (tmp1_output.p25(tmp0_desc, 1) ? true : !(value.m5n_1 === 'DSBUILDER_API_KEY')) {
|
|
576
|
+
tmp1_output.h25(tmp0_desc, 1, value.m5n_1);
|
|
577
|
+
}
|
|
578
|
+
tmp1_output.t23(tmp0_desc);
|
|
579
|
+
};
|
|
580
|
+
protoOf($serializer_1).m20 = function (encoder, value) {
|
|
581
|
+
return this.k5n(encoder, value instanceof CredentialReference ? value : THROW_CCE());
|
|
582
|
+
};
|
|
583
|
+
protoOf($serializer_1).n20 = function (decoder) {
|
|
584
|
+
var tmp0_desc = this.j5n_1;
|
|
585
|
+
var tmp1_flag = true;
|
|
586
|
+
var tmp2_index = 0;
|
|
587
|
+
var tmp3_bitMask0 = 0;
|
|
588
|
+
var tmp4_local0 = null;
|
|
589
|
+
var tmp5_local1 = null;
|
|
590
|
+
var tmp6_input = decoder.s23(tmp0_desc);
|
|
591
|
+
var tmp7_cached = Companion_getInstance_1().i5n_1;
|
|
592
|
+
if (tmp6_input.i24()) {
|
|
593
|
+
tmp4_local0 = tmp6_input.e24(tmp0_desc, 0, tmp7_cached[0].y(), tmp4_local0);
|
|
594
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
595
|
+
tmp5_local1 = tmp6_input.c24(tmp0_desc, 1);
|
|
596
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
597
|
+
} else
|
|
598
|
+
while (tmp1_flag) {
|
|
599
|
+
tmp2_index = tmp6_input.j24(tmp0_desc);
|
|
600
|
+
switch (tmp2_index) {
|
|
601
|
+
case -1:
|
|
602
|
+
tmp1_flag = false;
|
|
603
|
+
break;
|
|
604
|
+
case 0:
|
|
605
|
+
tmp4_local0 = tmp6_input.e24(tmp0_desc, 0, tmp7_cached[0].y(), tmp4_local0);
|
|
606
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
607
|
+
break;
|
|
608
|
+
case 1:
|
|
609
|
+
tmp5_local1 = tmp6_input.c24(tmp0_desc, 1);
|
|
610
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
611
|
+
break;
|
|
612
|
+
default:
|
|
613
|
+
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
tmp6_input.t23(tmp0_desc);
|
|
617
|
+
return CredentialReference_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
618
|
+
};
|
|
619
|
+
protoOf($serializer_1).l20 = function () {
|
|
620
|
+
return this.j5n_1;
|
|
621
|
+
};
|
|
622
|
+
protoOf($serializer_1).z2b = function () {
|
|
623
|
+
// Inline function 'kotlin.arrayOf' call
|
|
624
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
625
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
626
|
+
return [Companion_getInstance_1().i5n_1[0].y(), StringSerializer_getInstance()];
|
|
627
|
+
};
|
|
628
|
+
var $serializer_instance_1;
|
|
629
|
+
function $serializer_getInstance_1() {
|
|
630
|
+
if ($serializer_instance_1 == null)
|
|
631
|
+
new $serializer_1();
|
|
632
|
+
return $serializer_instance_1;
|
|
633
|
+
}
|
|
634
|
+
function CredentialReference_init_$Init$(seen0, type, name, serializationConstructorMarker, $this) {
|
|
635
|
+
if (!(1 === (1 & seen0))) {
|
|
636
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_1().j5n_1);
|
|
637
|
+
}
|
|
638
|
+
$this.l5n_1 = type;
|
|
639
|
+
if (0 === (seen0 & 2))
|
|
640
|
+
$this.m5n_1 = 'DSBUILDER_API_KEY';
|
|
641
|
+
else
|
|
642
|
+
$this.m5n_1 = name;
|
|
643
|
+
if ($this.l5n_1.equals(CredentialReferenceType_PAT_ENV_getInstance())) {
|
|
644
|
+
var tmp0 = $this.m5n_1;
|
|
645
|
+
// Inline function 'kotlin.text.matches' call
|
|
646
|
+
// Inline function 'kotlin.require' call
|
|
647
|
+
if (!Regex_init_$Create$('[A-Za-z_][A-Za-z0-9_]*').ld(tmp0)) {
|
|
648
|
+
var message = 'PAT env name is invalid.';
|
|
649
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
return $this;
|
|
653
|
+
}
|
|
654
|
+
function CredentialReference_init_$Create$(seen0, type, name, serializationConstructorMarker) {
|
|
655
|
+
return CredentialReference_init_$Init$(seen0, type, name, serializationConstructorMarker, objectCreate(protoOf(CredentialReference)));
|
|
656
|
+
}
|
|
657
|
+
function CredentialReference(type, name) {
|
|
658
|
+
Companion_getInstance_1();
|
|
659
|
+
name = name === VOID ? 'DSBUILDER_API_KEY' : name;
|
|
660
|
+
this.l5n_1 = type;
|
|
661
|
+
this.m5n_1 = name;
|
|
662
|
+
if (this.l5n_1.equals(CredentialReferenceType_PAT_ENV_getInstance())) {
|
|
663
|
+
var tmp0 = this.m5n_1;
|
|
664
|
+
// Inline function 'kotlin.text.matches' call
|
|
665
|
+
// Inline function 'kotlin.require' call
|
|
666
|
+
if (!Regex_init_$Create$('[A-Za-z_][A-Za-z0-9_]*').ld(tmp0)) {
|
|
667
|
+
var message = 'PAT env name is invalid.';
|
|
668
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
protoOf(CredentialReference).toString = function () {
|
|
673
|
+
return 'CredentialReference(type=' + this.l5n_1.toString() + ', name=' + this.m5n_1 + ')';
|
|
674
|
+
};
|
|
675
|
+
protoOf(CredentialReference).hashCode = function () {
|
|
676
|
+
var result = this.l5n_1.hashCode();
|
|
677
|
+
result = imul(result, 31) + getStringHashCode(this.m5n_1) | 0;
|
|
678
|
+
return result;
|
|
679
|
+
};
|
|
680
|
+
protoOf(CredentialReference).equals = function (other) {
|
|
681
|
+
if (this === other)
|
|
682
|
+
return true;
|
|
683
|
+
if (!(other instanceof CredentialReference))
|
|
684
|
+
return false;
|
|
685
|
+
if (!this.l5n_1.equals(other.l5n_1))
|
|
686
|
+
return false;
|
|
687
|
+
if (!(this.m5n_1 === other.m5n_1))
|
|
688
|
+
return false;
|
|
689
|
+
return true;
|
|
690
|
+
};
|
|
691
|
+
function _get_$cachedSerializer__te6jhj($this) {
|
|
692
|
+
return $this.h5n_1.y();
|
|
693
|
+
}
|
|
694
|
+
function CredentialReferenceType$Companion$_anonymous__w282wv() {
|
|
695
|
+
var tmp = values();
|
|
696
|
+
// Inline function 'kotlin.arrayOf' call
|
|
697
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
698
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
699
|
+
var tmp_0 = ['auto', 'user-session', 'pat-env', 'env'];
|
|
700
|
+
// Inline function 'kotlin.arrayOf' call
|
|
701
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
702
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
703
|
+
var tmp$ret$5 = [null, null, null, null];
|
|
704
|
+
return createAnnotatedEnumSerializer('com.dsbuilder.frontend.core.workspace.CredentialReferenceType', tmp, tmp_0, tmp$ret$5, null);
|
|
705
|
+
}
|
|
706
|
+
var CredentialReferenceType_AUTO_instance;
|
|
707
|
+
var CredentialReferenceType_USER_SESSION_instance;
|
|
708
|
+
var CredentialReferenceType_PAT_ENV_instance;
|
|
709
|
+
var CredentialReferenceType_ENV_instance;
|
|
710
|
+
function values() {
|
|
711
|
+
return [CredentialReferenceType_AUTO_getInstance(), CredentialReferenceType_USER_SESSION_getInstance(), CredentialReferenceType_PAT_ENV_getInstance(), CredentialReferenceType_ENV_getInstance()];
|
|
712
|
+
}
|
|
713
|
+
function Companion_2() {
|
|
714
|
+
Companion_instance_2 = this;
|
|
715
|
+
var tmp = this;
|
|
716
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
717
|
+
tmp.h5n_1 = lazy(tmp_0, CredentialReferenceType$Companion$_anonymous__w282wv);
|
|
718
|
+
}
|
|
719
|
+
protoOf(Companion_2).x37 = function () {
|
|
720
|
+
return _get_$cachedSerializer__te6jhj(this);
|
|
721
|
+
};
|
|
722
|
+
protoOf(Companion_2).k2c = function (typeParamsSerializers) {
|
|
723
|
+
return this.x37();
|
|
724
|
+
};
|
|
725
|
+
var Companion_instance_2;
|
|
726
|
+
function Companion_getInstance_2() {
|
|
727
|
+
CredentialReferenceType_initEntries();
|
|
728
|
+
if (Companion_instance_2 == null)
|
|
729
|
+
new Companion_2();
|
|
730
|
+
return Companion_instance_2;
|
|
731
|
+
}
|
|
732
|
+
var CredentialReferenceType_entriesInitialized;
|
|
733
|
+
function CredentialReferenceType_initEntries() {
|
|
734
|
+
if (CredentialReferenceType_entriesInitialized)
|
|
735
|
+
return Unit_instance;
|
|
736
|
+
CredentialReferenceType_entriesInitialized = true;
|
|
737
|
+
CredentialReferenceType_AUTO_instance = new CredentialReferenceType('AUTO', 0);
|
|
738
|
+
CredentialReferenceType_USER_SESSION_instance = new CredentialReferenceType('USER_SESSION', 1);
|
|
739
|
+
CredentialReferenceType_PAT_ENV_instance = new CredentialReferenceType('PAT_ENV', 2);
|
|
740
|
+
CredentialReferenceType_ENV_instance = new CredentialReferenceType('ENV', 3);
|
|
741
|
+
Companion_getInstance_2();
|
|
742
|
+
}
|
|
743
|
+
function CredentialReferenceType(name, ordinal) {
|
|
744
|
+
Enum.call(this, name, ordinal);
|
|
745
|
+
}
|
|
746
|
+
function CredentialReferenceType_AUTO_getInstance() {
|
|
747
|
+
CredentialReferenceType_initEntries();
|
|
748
|
+
return CredentialReferenceType_AUTO_instance;
|
|
749
|
+
}
|
|
750
|
+
function CredentialReferenceType_USER_SESSION_getInstance() {
|
|
751
|
+
CredentialReferenceType_initEntries();
|
|
752
|
+
return CredentialReferenceType_USER_SESSION_instance;
|
|
753
|
+
}
|
|
754
|
+
function CredentialReferenceType_PAT_ENV_getInstance() {
|
|
755
|
+
CredentialReferenceType_initEntries();
|
|
756
|
+
return CredentialReferenceType_PAT_ENV_instance;
|
|
757
|
+
}
|
|
758
|
+
function CredentialReferenceType_ENV_getInstance() {
|
|
759
|
+
CredentialReferenceType_initEntries();
|
|
760
|
+
return CredentialReferenceType_ENV_instance;
|
|
761
|
+
}
|
|
762
|
+
function ProjectConfigException(message, cause) {
|
|
763
|
+
cause = cause === VOID ? null : cause;
|
|
764
|
+
RuntimeException_init_$Init$(message, cause, this);
|
|
765
|
+
captureStack(this, ProjectConfigException);
|
|
766
|
+
}
|
|
767
|
+
function ProjectNotInitializedException(message) {
|
|
768
|
+
ProjectConfigException.call(this, message);
|
|
769
|
+
captureStack(this, ProjectNotInitializedException);
|
|
770
|
+
}
|
|
771
|
+
function ProjectConfigCodec$json$lambda($this$Json) {
|
|
772
|
+
$this$Json.l36_1 = true;
|
|
773
|
+
$this$Json.h36_1 = true;
|
|
774
|
+
$this$Json.j36_1 = false;
|
|
775
|
+
return Unit_instance;
|
|
776
|
+
}
|
|
777
|
+
function ProjectConfigCodec() {
|
|
778
|
+
var tmp = this;
|
|
779
|
+
tmp.n5n_1 = Json(VOID, ProjectConfigCodec$json$lambda);
|
|
780
|
+
}
|
|
781
|
+
protoOf(ProjectConfigCodec).o5n = function (text) {
|
|
782
|
+
var tmp;
|
|
783
|
+
try {
|
|
784
|
+
var tmp0_safe_receiver = get_jsonObject(this.n5n_1.s35(text)).xd('credential');
|
|
785
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : get_jsonObject(tmp0_safe_receiver);
|
|
786
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.xd('type');
|
|
787
|
+
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : get_jsonPrimitive(tmp2_safe_receiver);
|
|
788
|
+
var credentialType = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.d38();
|
|
789
|
+
if (credentialType === 'project-key-env') {
|
|
790
|
+
throw new ProjectConfigException('Replace credential.type project-key-env with pat-env for PAT.');
|
|
791
|
+
}
|
|
792
|
+
tmp = this.n5n_1.p35(Companion_getInstance_0().x37(), text);
|
|
793
|
+
} catch ($p) {
|
|
794
|
+
var tmp_0;
|
|
795
|
+
if ($p instanceof IllegalArgumentException) {
|
|
796
|
+
var exception = $p;
|
|
797
|
+
throw new ProjectConfigException('Cannot parse .sdds/config.json: ' + exception.message, exception);
|
|
798
|
+
} else {
|
|
799
|
+
throw $p;
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
return tmp;
|
|
803
|
+
};
|
|
804
|
+
protoOf(ProjectConfigCodec).p5n = function (config) {
|
|
805
|
+
return this.n5n_1.o35(Companion_getInstance_0().x37(), config);
|
|
806
|
+
};
|
|
807
|
+
function findNearestConfigPath($this, startDirectory) {
|
|
808
|
+
var current = startDirectory;
|
|
809
|
+
while (!(current == null)) {
|
|
810
|
+
var configPath = $this.q5n_1.k4z($this.q5n_1.k4z(current, '.sdds'), 'config.json');
|
|
811
|
+
if ($this.q5n_1.v4y(configPath)) {
|
|
812
|
+
return configPath;
|
|
813
|
+
}
|
|
814
|
+
current = $this.q5n_1.s5n(current);
|
|
815
|
+
}
|
|
816
|
+
return null;
|
|
817
|
+
}
|
|
818
|
+
function ProjectConfigStore$updateTenantsPreservingAliases$lambda($tenants, $palettePath) {
|
|
819
|
+
return function (config) {
|
|
820
|
+
// Inline function 'kotlin.collections.mapNotNull' call
|
|
821
|
+
var tmp0 = config.b5n_1;
|
|
822
|
+
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
823
|
+
var destination = ArrayList_init_$Create$();
|
|
824
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
825
|
+
var _iterator__ex2g4s = tmp0.l();
|
|
826
|
+
while (_iterator__ex2g4s.m()) {
|
|
827
|
+
var element = _iterator__ex2g4s.n();
|
|
828
|
+
var tmp0_safe_receiver = element.q5m_1;
|
|
829
|
+
var tmp;
|
|
830
|
+
if (tmp0_safe_receiver == null) {
|
|
831
|
+
tmp = null;
|
|
832
|
+
} else {
|
|
833
|
+
// Inline function 'kotlin.let' call
|
|
834
|
+
tmp = to(element.l5m_1, tmp0_safe_receiver);
|
|
835
|
+
}
|
|
836
|
+
var tmp0_safe_receiver_0 = tmp;
|
|
837
|
+
if (tmp0_safe_receiver_0 == null)
|
|
838
|
+
null;
|
|
839
|
+
else {
|
|
840
|
+
// Inline function 'kotlin.let' call
|
|
841
|
+
destination.j(tmp0_safe_receiver_0);
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
var aliasesByTenantId = toMap(destination);
|
|
845
|
+
// Inline function 'kotlin.collections.map' call
|
|
846
|
+
var this_0 = $tenants;
|
|
847
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
848
|
+
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
849
|
+
var _iterator__ex2g4s_0 = this_0.l();
|
|
850
|
+
while (_iterator__ex2g4s_0.m()) {
|
|
851
|
+
var item = _iterator__ex2g4s_0.n();
|
|
852
|
+
var tmp$ret$9 = item.u5m(VOID, VOID, VOID, VOID, VOID, aliasesByTenantId.c2(item.l5m_1));
|
|
853
|
+
destination_0.j(tmp$ret$9);
|
|
854
|
+
}
|
|
855
|
+
var tmp_0 = destination_0;
|
|
856
|
+
var tmp0_elvis_lhs = $palettePath;
|
|
857
|
+
return config.g5n(VOID, VOID, VOID, tmp_0, tmp0_elvis_lhs == null ? config.c5n_1 : tmp0_elvis_lhs);
|
|
858
|
+
};
|
|
859
|
+
}
|
|
860
|
+
function ProjectConfigStore(fileSystem, codec) {
|
|
861
|
+
codec = codec === VOID ? new ProjectConfigCodec() : codec;
|
|
862
|
+
this.q5n_1 = fileSystem;
|
|
863
|
+
this.r5n_1 = codec;
|
|
864
|
+
}
|
|
865
|
+
protoOf(ProjectConfigStore).t5n = function (startDirectory) {
|
|
866
|
+
var tmp0_elvis_lhs = findNearestConfigPath(this, startDirectory);
|
|
867
|
+
var tmp;
|
|
868
|
+
if (tmp0_elvis_lhs == null) {
|
|
869
|
+
throw new ProjectNotInitializedException('Project is not initialized. Run `dsbuilder init --project-id <id> --design-system-id <id>`.');
|
|
870
|
+
} else {
|
|
871
|
+
tmp = tmp0_elvis_lhs;
|
|
872
|
+
}
|
|
873
|
+
var configPath = tmp;
|
|
874
|
+
var config = this.r5n_1.o5n(this.q5n_1.a4z(configPath));
|
|
875
|
+
return new ProjectContext(config, configPath);
|
|
876
|
+
};
|
|
877
|
+
protoOf(ProjectConfigStore).u5n = function (startDirectory, $super) {
|
|
878
|
+
startDirectory = startDirectory === VOID ? this.q5n_1.v5n() : startDirectory;
|
|
879
|
+
return $super === VOID ? this.t5n(startDirectory) : $super.t5n.call(this, startDirectory);
|
|
880
|
+
};
|
|
881
|
+
protoOf(ProjectConfigStore).w5n = function (targetDirectory) {
|
|
882
|
+
return this.q5n_1.v4y(this.q5n_1.k4z(this.q5n_1.k4z(targetDirectory, '.sdds'), 'config.json'));
|
|
883
|
+
};
|
|
884
|
+
protoOf(ProjectConfigStore).x5n = function (targetDirectory, config) {
|
|
885
|
+
var configDirectory = this.q5n_1.k4z(targetDirectory, '.sdds');
|
|
886
|
+
var configPath = this.q5n_1.k4z(configDirectory, 'config.json');
|
|
887
|
+
if (this.q5n_1.v4y(configPath)) {
|
|
888
|
+
throw new ProjectConfigException('Project config already exists at ' + configPath + '.');
|
|
889
|
+
}
|
|
890
|
+
this.q5n_1.w4y(configDirectory);
|
|
891
|
+
this.q5n_1.y4y(configPath, this.r5n_1.p5n(config));
|
|
892
|
+
return configPath;
|
|
893
|
+
};
|
|
894
|
+
protoOf(ProjectConfigStore).y5n = function (configPath) {
|
|
895
|
+
return this.r5n_1.o5n(this.q5n_1.a4z(configPath));
|
|
896
|
+
};
|
|
897
|
+
protoOf(ProjectConfigStore).z5n = function (configPath, transform) {
|
|
898
|
+
var config = this.y5n(configPath);
|
|
899
|
+
this.q5n_1.y4y(configPath, this.r5n_1.p5n(transform(config)));
|
|
900
|
+
};
|
|
901
|
+
protoOf(ProjectConfigStore).a5o = function (configPath, tenants, palettePath) {
|
|
902
|
+
this.z5n(configPath, ProjectConfigStore$updateTenantsPreservingAliases$lambda(tenants, palettePath));
|
|
903
|
+
};
|
|
904
|
+
function ProjectContext(config, configPath) {
|
|
905
|
+
this.b5o_1 = config;
|
|
906
|
+
this.c5o_1 = configPath;
|
|
907
|
+
}
|
|
908
|
+
protoOf(ProjectContext).toString = function () {
|
|
909
|
+
return 'ProjectContext(config=' + this.b5o_1.toString() + ', configPath=' + this.c5o_1 + ')';
|
|
910
|
+
};
|
|
911
|
+
protoOf(ProjectContext).hashCode = function () {
|
|
912
|
+
var result = this.b5o_1.hashCode();
|
|
913
|
+
result = imul(result, 31) + getStringHashCode(this.c5o_1) | 0;
|
|
914
|
+
return result;
|
|
915
|
+
};
|
|
916
|
+
protoOf(ProjectContext).equals = function (other) {
|
|
917
|
+
if (this === other)
|
|
918
|
+
return true;
|
|
919
|
+
if (!(other instanceof ProjectContext))
|
|
920
|
+
return false;
|
|
921
|
+
if (!this.b5o_1.equals(other.b5o_1))
|
|
922
|
+
return false;
|
|
923
|
+
if (!(this.c5o_1 === other.c5o_1))
|
|
924
|
+
return false;
|
|
925
|
+
return true;
|
|
926
|
+
};
|
|
927
|
+
function parseValue($this, source, lineNumber) {
|
|
928
|
+
// Inline function 'kotlin.text.isEmpty' call
|
|
929
|
+
if (charSequenceLength(source) === 0)
|
|
930
|
+
return '';
|
|
931
|
+
if (first(source) === _Char___init__impl__6a9atx(39) || first(source) === _Char___init__impl__6a9atx(34)) {
|
|
932
|
+
var quote = first(source);
|
|
933
|
+
var end = indexOf(source, quote, 1);
|
|
934
|
+
var tmp;
|
|
935
|
+
if (end < 0) {
|
|
936
|
+
tmp = true;
|
|
937
|
+
} else {
|
|
938
|
+
// Inline function 'kotlin.text.trim' call
|
|
939
|
+
var this_0 = substring(source, end + 1 | 0);
|
|
940
|
+
// Inline function 'kotlin.let' call
|
|
941
|
+
var it = toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE()));
|
|
942
|
+
var tmp_0;
|
|
943
|
+
// Inline function 'kotlin.text.isNotEmpty' call
|
|
944
|
+
if (charSequenceLength(it) > 0) {
|
|
945
|
+
tmp_0 = !startsWith(it, _Char___init__impl__6a9atx(35));
|
|
946
|
+
} else {
|
|
947
|
+
tmp_0 = false;
|
|
948
|
+
}
|
|
949
|
+
tmp = tmp_0;
|
|
950
|
+
}
|
|
951
|
+
if (tmp) {
|
|
952
|
+
throw new ProjectEnvParseException(lineNumber);
|
|
953
|
+
}
|
|
954
|
+
return substring_0(source, 1, end);
|
|
955
|
+
}
|
|
956
|
+
// Inline function 'kotlin.takeIf' call
|
|
957
|
+
var this_1 = indexOf(source, _Char___init__impl__6a9atx(35));
|
|
958
|
+
var tmp_1;
|
|
959
|
+
if (this_1 > 0 && isWhitespace(charCodeAt(source, this_1 - 1 | 0))) {
|
|
960
|
+
tmp_1 = this_1;
|
|
961
|
+
} else {
|
|
962
|
+
tmp_1 = null;
|
|
963
|
+
}
|
|
964
|
+
var comment = tmp_1;
|
|
965
|
+
var value = comment == null ? source : substring_0(source, 0, comment);
|
|
966
|
+
// Inline function 'kotlin.text.trimEnd' call
|
|
967
|
+
return toString(trimEnd(isCharSequence(value) ? value : THROW_CCE()));
|
|
968
|
+
}
|
|
969
|
+
function ProjectEnvParser() {
|
|
970
|
+
}
|
|
971
|
+
protoOf(ProjectEnvParser).tp = function (content) {
|
|
972
|
+
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
973
|
+
var values = LinkedHashMap_init_$Create$();
|
|
974
|
+
// Inline function 'kotlin.sequences.forEachIndexed' call
|
|
975
|
+
var index = 0;
|
|
976
|
+
var _iterator__ex2g4s = lineSequence(content).l();
|
|
977
|
+
while (_iterator__ex2g4s.m()) {
|
|
978
|
+
var item = _iterator__ex2g4s.n();
|
|
979
|
+
var _unary__edvuaz = index;
|
|
980
|
+
index = _unary__edvuaz + 1 | 0;
|
|
981
|
+
var tmp0 = checkIndexOverflow(_unary__edvuaz);
|
|
982
|
+
$l$block: {
|
|
983
|
+
// Inline function 'kotlin.text.trim' call
|
|
984
|
+
var tmp$ret$1 = toString(trim(isCharSequence(item) ? item : THROW_CCE()));
|
|
985
|
+
var line = removeSuffix(tmp$ret$1, '\r');
|
|
986
|
+
var tmp;
|
|
987
|
+
// Inline function 'kotlin.text.isEmpty' call
|
|
988
|
+
if (charSequenceLength(line) === 0) {
|
|
989
|
+
tmp = true;
|
|
990
|
+
} else {
|
|
991
|
+
tmp = startsWith(line, _Char___init__impl__6a9atx(35));
|
|
992
|
+
}
|
|
993
|
+
if (tmp) {
|
|
994
|
+
break $l$block;
|
|
995
|
+
}
|
|
996
|
+
var tmp_0;
|
|
997
|
+
if (startsWith_0(line, 'export ')) {
|
|
998
|
+
// Inline function 'kotlin.text.trimStart' call
|
|
999
|
+
var this_0 = removePrefix(line, 'export ');
|
|
1000
|
+
tmp_0 = toString(trimStart(isCharSequence(this_0) ? this_0 : THROW_CCE()));
|
|
1001
|
+
} else {
|
|
1002
|
+
tmp_0 = line;
|
|
1003
|
+
}
|
|
1004
|
+
var assignment = tmp_0;
|
|
1005
|
+
var separator = indexOf(assignment, _Char___init__impl__6a9atx(61));
|
|
1006
|
+
if (separator < 1)
|
|
1007
|
+
throw new ProjectEnvParseException(tmp0 + 1 | 0);
|
|
1008
|
+
// Inline function 'kotlin.text.trim' call
|
|
1009
|
+
var this_1 = substring_0(assignment, 0, separator);
|
|
1010
|
+
var name = toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE()));
|
|
1011
|
+
// Inline function 'kotlin.text.matches' call
|
|
1012
|
+
if (!Regex_init_$Create$('[A-Za-z_][A-Za-z0-9_]*').ld(name)) {
|
|
1013
|
+
throw new ProjectEnvParseException(tmp0 + 1 | 0);
|
|
1014
|
+
}
|
|
1015
|
+
// Inline function 'kotlin.text.trimStart' call
|
|
1016
|
+
var this_2 = substring(assignment, separator + 1 | 0);
|
|
1017
|
+
var source = toString(trimStart(isCharSequence(this_2) ? this_2 : THROW_CCE()));
|
|
1018
|
+
// Inline function 'kotlin.collections.set' call
|
|
1019
|
+
var value = parseValue(this, source, tmp0 + 1 | 0);
|
|
1020
|
+
values.f2(name, value);
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
return values;
|
|
1024
|
+
};
|
|
1025
|
+
function ProjectEnvParseException(lineNumber) {
|
|
1026
|
+
IllegalArgumentException_init_$Init$('Invalid .env assignment at line ' + lineNumber + '.', this);
|
|
1027
|
+
captureStack(this, ProjectEnvParseException);
|
|
1028
|
+
this.d5o_1 = lineNumber;
|
|
1029
|
+
}
|
|
1030
|
+
function WorkspaceFileSystem() {
|
|
1031
|
+
}
|
|
1032
|
+
//region block: post-declaration
|
|
1033
|
+
protoOf($serializer).a2c = typeParametersSerializers;
|
|
1034
|
+
protoOf($serializer_0).a2c = typeParametersSerializers;
|
|
1035
|
+
protoOf($serializer_1).a2c = typeParametersSerializers;
|
|
1036
|
+
//endregion
|
|
1037
|
+
//region block: init
|
|
1038
|
+
Companion_instance = new Companion();
|
|
1039
|
+
//endregion
|
|
1040
|
+
//region block: exports
|
|
1041
|
+
_.$_$ = _.$_$ || {};
|
|
1042
|
+
_.$_$.a = CredentialReference;
|
|
1043
|
+
_.$_$.b = ProjectConfigException;
|
|
1044
|
+
_.$_$.c = ProjectConfigStore;
|
|
1045
|
+
_.$_$.d = ProjectConfigTenant;
|
|
1046
|
+
_.$_$.e = ProjectConfig;
|
|
1047
|
+
_.$_$.f = ProjectEnvParseException;
|
|
1048
|
+
_.$_$.g = ProjectEnvParser;
|
|
1049
|
+
_.$_$.h = ProjectNotInitializedException;
|
|
1050
|
+
_.$_$.i = WorkspaceFileSystem;
|
|
1051
|
+
_.$_$.j = CredentialReferenceType_AUTO_getInstance;
|
|
1052
|
+
_.$_$.k = CredentialReferenceType_PAT_ENV_getInstance;
|
|
1053
|
+
_.$_$.l = CredentialReferenceType_USER_SESSION_getInstance;
|
|
1054
|
+
//endregion
|
|
1055
|
+
return _;
|
|
1056
|
+
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./kotlinx-serialization-kotlinx-serialization-json.js')));
|
|
1057
|
+
|
|
1058
|
+
//# sourceMappingURL=design-system-builder-frontend-core-workspace.js.map
|