@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,318 @@
|
|
|
1
|
+
(function (_, kotlin_kotlin, kotlin_io_insert_koin_koin_core, kotlin_design_system_builder_frontend_core_workspace, kotlin_design_system_builder_frontend_core_domain) {
|
|
2
|
+
'use strict';
|
|
3
|
+
//region block: imports
|
|
4
|
+
var imul = Math.imul;
|
|
5
|
+
var VOID = kotlin_kotlin.$_$.c;
|
|
6
|
+
var module_0 = kotlin_io_insert_koin_koin_core.$_$.g;
|
|
7
|
+
var Companion_getInstance = kotlin_io_insert_koin_koin_core.$_$.b;
|
|
8
|
+
var Kind_Singleton_getInstance = kotlin_io_insert_koin_koin_core.$_$.a;
|
|
9
|
+
var emptyList = kotlin_kotlin.$_$.y7;
|
|
10
|
+
var getKClass = kotlin_kotlin.$_$.qf;
|
|
11
|
+
var BeanDefinition = kotlin_io_insert_koin_koin_core.$_$.c;
|
|
12
|
+
var SingleInstanceFactory = kotlin_io_insert_koin_koin_core.$_$.e;
|
|
13
|
+
var Unit_instance = kotlin_kotlin.$_$.r5;
|
|
14
|
+
var KoinDefinition = kotlin_io_insert_koin_koin_core.$_$.d;
|
|
15
|
+
var ProjectConfigStore = kotlin_design_system_builder_frontend_core_workspace.$_$.c;
|
|
16
|
+
var protoOf = kotlin_kotlin.$_$.te;
|
|
17
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.ud;
|
|
18
|
+
var getStringHashCode = kotlin_kotlin.$_$.od;
|
|
19
|
+
var initMetadataForClass = kotlin_kotlin.$_$.qd;
|
|
20
|
+
var _ProjectId___init__impl__b1fobp = kotlin_design_system_builder_frontend_core_domain.$_$.d1;
|
|
21
|
+
var _DesignSystemId___init__impl__6op7ax = kotlin_design_system_builder_frontend_core_domain.$_$.v;
|
|
22
|
+
var _CredentialEnvName___init__impl__w41seg = kotlin_design_system_builder_frontend_core_domain.$_$.r;
|
|
23
|
+
var ProjectConfigDraft = kotlin_design_system_builder_frontend_core_domain.$_$.e;
|
|
24
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.vl;
|
|
25
|
+
var Environment = kotlin_design_system_builder_frontend_core_domain.$_$.d;
|
|
26
|
+
var toString = kotlin_kotlin.$_$.we;
|
|
27
|
+
var hashCode = kotlin_kotlin.$_$.pd;
|
|
28
|
+
var equals = kotlin_kotlin.$_$.jd;
|
|
29
|
+
var _ProjectId___get_value__impl__lfubnr = kotlin_design_system_builder_frontend_core_domain.$_$.g1;
|
|
30
|
+
var _DesignSystemId___get_value__impl__wgtkjx = kotlin_design_system_builder_frontend_core_domain.$_$.y;
|
|
31
|
+
var CredentialReferenceType_USER_SESSION_getInstance = kotlin_design_system_builder_frontend_core_workspace.$_$.l;
|
|
32
|
+
var UserSession_instance = kotlin_design_system_builder_frontend_core_domain.$_$.i1;
|
|
33
|
+
var CredentialReferenceType_AUTO_getInstance = kotlin_design_system_builder_frontend_core_workspace.$_$.j;
|
|
34
|
+
var CredentialReference = kotlin_design_system_builder_frontend_core_workspace.$_$.a;
|
|
35
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.y6;
|
|
36
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
|
|
37
|
+
var ProjectConfig = kotlin_design_system_builder_frontend_core_workspace.$_$.e;
|
|
38
|
+
var ProjectConfigException = kotlin_design_system_builder_frontend_core_workspace.$_$.b;
|
|
39
|
+
//endregion
|
|
40
|
+
//region block: pre-declaration
|
|
41
|
+
function checkTarget(targetDirectory) {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
initMetadataForInterface(ProjectConfigWriter, 'ProjectConfigWriter');
|
|
45
|
+
initMetadataForClass(Created, 'Created');
|
|
46
|
+
initMetadataForClass(Failed, 'Failed');
|
|
47
|
+
initMetadataForClass(CreateProjectConfigCommand, 'CreateProjectConfigCommand');
|
|
48
|
+
initMetadataForClass(InitProjectUseCase, 'InitProjectUseCase');
|
|
49
|
+
initMetadataForClass(Created_0, 'Created');
|
|
50
|
+
initMetadataForClass(Failed_0, 'Failed');
|
|
51
|
+
initMetadataForClass(InitProjectCommand, 'InitProjectCommand');
|
|
52
|
+
initMetadataForClass(LocalProjectConfigWriter, 'LocalProjectConfigWriter', VOID, VOID, [ProjectConfigWriter]);
|
|
53
|
+
//endregion
|
|
54
|
+
function initApplicationModule() {
|
|
55
|
+
return module_0(VOID, initApplicationModule$lambda);
|
|
56
|
+
}
|
|
57
|
+
function initApplicationModule$lambda($this$module) {
|
|
58
|
+
// Inline function 'org.koin.core.module.Module.single' call
|
|
59
|
+
// Inline function 'org.koin.core.module._singleInstanceFactory' call
|
|
60
|
+
var definition = initApplicationModule$lambda$lambda;
|
|
61
|
+
var scopeQualifier = Companion_getInstance().u56_1;
|
|
62
|
+
// Inline function 'org.koin.core.definition._createDefinition' call
|
|
63
|
+
var kind = Kind_Singleton_getInstance();
|
|
64
|
+
var secondaryTypes = emptyList();
|
|
65
|
+
var def = new BeanDefinition(scopeQualifier, getKClass(ProjectConfigWriter), null, definition, kind, secondaryTypes);
|
|
66
|
+
var factory = new SingleInstanceFactory(def);
|
|
67
|
+
$this$module.k58(factory);
|
|
68
|
+
if (false || $this$module.e58_1) {
|
|
69
|
+
$this$module.m58(factory);
|
|
70
|
+
}
|
|
71
|
+
new KoinDefinition($this$module, factory);
|
|
72
|
+
// Inline function 'org.koin.core.module.Module.single' call
|
|
73
|
+
// Inline function 'org.koin.core.module._singleInstanceFactory' call
|
|
74
|
+
var definition_0 = initApplicationModule$lambda$lambda_0;
|
|
75
|
+
var scopeQualifier_0 = Companion_getInstance().u56_1;
|
|
76
|
+
// Inline function 'org.koin.core.definition._createDefinition' call
|
|
77
|
+
var kind_0 = Kind_Singleton_getInstance();
|
|
78
|
+
var secondaryTypes_0 = emptyList();
|
|
79
|
+
var def_0 = new BeanDefinition(scopeQualifier_0, getKClass(InitProjectUseCase), null, definition_0, kind_0, secondaryTypes_0);
|
|
80
|
+
var factory_0 = new SingleInstanceFactory(def_0);
|
|
81
|
+
$this$module.k58(factory_0);
|
|
82
|
+
if (false || $this$module.e58_1) {
|
|
83
|
+
$this$module.m58(factory_0);
|
|
84
|
+
}
|
|
85
|
+
new KoinDefinition($this$module, factory_0);
|
|
86
|
+
return Unit_instance;
|
|
87
|
+
}
|
|
88
|
+
function initApplicationModule$lambda$lambda($this$single, it) {
|
|
89
|
+
// Inline function 'org.koin.core.scope.Scope.get' call
|
|
90
|
+
var tmp$ret$0 = $this$single.j59(getKClass(ProjectConfigStore), null, null);
|
|
91
|
+
return new LocalProjectConfigWriter(tmp$ret$0);
|
|
92
|
+
}
|
|
93
|
+
function initApplicationModule$lambda$lambda_0($this$single, it) {
|
|
94
|
+
// Inline function 'org.koin.core.scope.Scope.get' call
|
|
95
|
+
var tmp$ret$0 = $this$single.j59(getKClass(ProjectConfigWriter), null, null);
|
|
96
|
+
return new InitProjectUseCase(tmp$ret$0);
|
|
97
|
+
}
|
|
98
|
+
function ProjectConfigWriter() {
|
|
99
|
+
}
|
|
100
|
+
function Created(configPath) {
|
|
101
|
+
this.adf_1 = configPath;
|
|
102
|
+
}
|
|
103
|
+
protoOf(Created).toString = function () {
|
|
104
|
+
return 'Created(configPath=' + this.adf_1 + ')';
|
|
105
|
+
};
|
|
106
|
+
protoOf(Created).hashCode = function () {
|
|
107
|
+
return getStringHashCode(this.adf_1);
|
|
108
|
+
};
|
|
109
|
+
protoOf(Created).equals = function (other) {
|
|
110
|
+
if (this === other)
|
|
111
|
+
return true;
|
|
112
|
+
if (!(other instanceof Created))
|
|
113
|
+
return false;
|
|
114
|
+
if (!(this.adf_1 === other.adf_1))
|
|
115
|
+
return false;
|
|
116
|
+
return true;
|
|
117
|
+
};
|
|
118
|
+
function Failed(message) {
|
|
119
|
+
this.bdf_1 = message;
|
|
120
|
+
}
|
|
121
|
+
protoOf(Failed).toString = function () {
|
|
122
|
+
return 'Failed(message=' + this.bdf_1 + ')';
|
|
123
|
+
};
|
|
124
|
+
protoOf(Failed).hashCode = function () {
|
|
125
|
+
return getStringHashCode(this.bdf_1);
|
|
126
|
+
};
|
|
127
|
+
protoOf(Failed).equals = function (other) {
|
|
128
|
+
if (this === other)
|
|
129
|
+
return true;
|
|
130
|
+
if (!(other instanceof Failed))
|
|
131
|
+
return false;
|
|
132
|
+
if (!(this.bdf_1 === other.bdf_1))
|
|
133
|
+
return false;
|
|
134
|
+
return true;
|
|
135
|
+
};
|
|
136
|
+
function CreateProjectConfigCommand(config, targetDirectory) {
|
|
137
|
+
this.cdf_1 = config;
|
|
138
|
+
this.ddf_1 = targetDirectory;
|
|
139
|
+
}
|
|
140
|
+
protoOf(CreateProjectConfigCommand).toString = function () {
|
|
141
|
+
return 'CreateProjectConfigCommand(config=' + this.cdf_1.toString() + ', targetDirectory=' + this.ddf_1 + ')';
|
|
142
|
+
};
|
|
143
|
+
protoOf(CreateProjectConfigCommand).hashCode = function () {
|
|
144
|
+
var result = this.cdf_1.hashCode();
|
|
145
|
+
result = imul(result, 31) + getStringHashCode(this.ddf_1) | 0;
|
|
146
|
+
return result;
|
|
147
|
+
};
|
|
148
|
+
protoOf(CreateProjectConfigCommand).equals = function (other) {
|
|
149
|
+
if (this === other)
|
|
150
|
+
return true;
|
|
151
|
+
if (!(other instanceof CreateProjectConfigCommand))
|
|
152
|
+
return false;
|
|
153
|
+
if (!this.cdf_1.equals(other.cdf_1))
|
|
154
|
+
return false;
|
|
155
|
+
if (!(this.ddf_1 === other.ddf_1))
|
|
156
|
+
return false;
|
|
157
|
+
return true;
|
|
158
|
+
};
|
|
159
|
+
function InitProjectUseCase(projectConfigWriter) {
|
|
160
|
+
this.edf_1 = projectConfigWriter;
|
|
161
|
+
}
|
|
162
|
+
protoOf(InitProjectUseCase).yde = function (targetDirectory) {
|
|
163
|
+
return this.edf_1.yde(targetDirectory);
|
|
164
|
+
};
|
|
165
|
+
protoOf(InitProjectUseCase).fdf = function (command) {
|
|
166
|
+
var result = this.edf_1.zde(new CreateProjectConfigCommand(new ProjectConfigDraft(_ProjectId___init__impl__b1fobp(command.gdf_1), _DesignSystemId___init__impl__6op7ax(command.hdf_1), _CredentialEnvName___init__impl__w41seg(command.idf_1), command.kdf_1, command.ldf_1), command.jdf_1));
|
|
167
|
+
var tmp;
|
|
168
|
+
if (result instanceof Created) {
|
|
169
|
+
tmp = new Created_0(result.adf_1);
|
|
170
|
+
} else {
|
|
171
|
+
if (result instanceof Failed) {
|
|
172
|
+
tmp = new Failed_0(result.bdf_1);
|
|
173
|
+
} else {
|
|
174
|
+
noWhenBranchMatchedException();
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
return tmp;
|
|
178
|
+
};
|
|
179
|
+
function Created_0(configPath) {
|
|
180
|
+
this.mdf_1 = configPath;
|
|
181
|
+
}
|
|
182
|
+
protoOf(Created_0).toString = function () {
|
|
183
|
+
return 'Created(configPath=' + this.mdf_1 + ')';
|
|
184
|
+
};
|
|
185
|
+
protoOf(Created_0).hashCode = function () {
|
|
186
|
+
return getStringHashCode(this.mdf_1);
|
|
187
|
+
};
|
|
188
|
+
protoOf(Created_0).equals = function (other) {
|
|
189
|
+
if (this === other)
|
|
190
|
+
return true;
|
|
191
|
+
if (!(other instanceof Created_0))
|
|
192
|
+
return false;
|
|
193
|
+
if (!(this.mdf_1 === other.mdf_1))
|
|
194
|
+
return false;
|
|
195
|
+
return true;
|
|
196
|
+
};
|
|
197
|
+
function Failed_0(message) {
|
|
198
|
+
this.ndf_1 = message;
|
|
199
|
+
}
|
|
200
|
+
protoOf(Failed_0).toString = function () {
|
|
201
|
+
return 'Failed(message=' + this.ndf_1 + ')';
|
|
202
|
+
};
|
|
203
|
+
protoOf(Failed_0).hashCode = function () {
|
|
204
|
+
return getStringHashCode(this.ndf_1);
|
|
205
|
+
};
|
|
206
|
+
protoOf(Failed_0).equals = function (other) {
|
|
207
|
+
if (this === other)
|
|
208
|
+
return true;
|
|
209
|
+
if (!(other instanceof Failed_0))
|
|
210
|
+
return false;
|
|
211
|
+
if (!(this.ndf_1 === other.ndf_1))
|
|
212
|
+
return false;
|
|
213
|
+
return true;
|
|
214
|
+
};
|
|
215
|
+
function InitProjectCommand(projectId, designSystemId, apiKeyEnv, targetDirectory, platforms, credentialSelection) {
|
|
216
|
+
platforms = platforms === VOID ? emptyList() : platforms;
|
|
217
|
+
credentialSelection = credentialSelection === VOID ? new Environment(apiKeyEnv) : credentialSelection;
|
|
218
|
+
this.gdf_1 = projectId;
|
|
219
|
+
this.hdf_1 = designSystemId;
|
|
220
|
+
this.idf_1 = apiKeyEnv;
|
|
221
|
+
this.jdf_1 = targetDirectory;
|
|
222
|
+
this.kdf_1 = platforms;
|
|
223
|
+
this.ldf_1 = credentialSelection;
|
|
224
|
+
}
|
|
225
|
+
protoOf(InitProjectCommand).toString = function () {
|
|
226
|
+
return 'InitProjectCommand(projectId=' + this.gdf_1 + ', designSystemId=' + this.hdf_1 + ', apiKeyEnv=' + this.idf_1 + ', targetDirectory=' + this.jdf_1 + ', platforms=' + toString(this.kdf_1) + ', credentialSelection=' + toString(this.ldf_1) + ')';
|
|
227
|
+
};
|
|
228
|
+
protoOf(InitProjectCommand).hashCode = function () {
|
|
229
|
+
var result = getStringHashCode(this.gdf_1);
|
|
230
|
+
result = imul(result, 31) + getStringHashCode(this.hdf_1) | 0;
|
|
231
|
+
result = imul(result, 31) + getStringHashCode(this.idf_1) | 0;
|
|
232
|
+
result = imul(result, 31) + getStringHashCode(this.jdf_1) | 0;
|
|
233
|
+
result = imul(result, 31) + hashCode(this.kdf_1) | 0;
|
|
234
|
+
result = imul(result, 31) + hashCode(this.ldf_1) | 0;
|
|
235
|
+
return result;
|
|
236
|
+
};
|
|
237
|
+
protoOf(InitProjectCommand).equals = function (other) {
|
|
238
|
+
if (this === other)
|
|
239
|
+
return true;
|
|
240
|
+
if (!(other instanceof InitProjectCommand))
|
|
241
|
+
return false;
|
|
242
|
+
if (!(this.gdf_1 === other.gdf_1))
|
|
243
|
+
return false;
|
|
244
|
+
if (!(this.hdf_1 === other.hdf_1))
|
|
245
|
+
return false;
|
|
246
|
+
if (!(this.idf_1 === other.idf_1))
|
|
247
|
+
return false;
|
|
248
|
+
if (!(this.jdf_1 === other.jdf_1))
|
|
249
|
+
return false;
|
|
250
|
+
if (!equals(this.kdf_1, other.kdf_1))
|
|
251
|
+
return false;
|
|
252
|
+
if (!equals(this.ldf_1, other.ldf_1))
|
|
253
|
+
return false;
|
|
254
|
+
return true;
|
|
255
|
+
};
|
|
256
|
+
function LocalProjectConfigWriter(projectConfigStore) {
|
|
257
|
+
this.odf_1 = projectConfigStore;
|
|
258
|
+
}
|
|
259
|
+
protoOf(LocalProjectConfigWriter).yde = function (targetDirectory) {
|
|
260
|
+
return this.odf_1.w5n(targetDirectory) ? 'Error: Project config already exists.' : null;
|
|
261
|
+
};
|
|
262
|
+
protoOf(LocalProjectConfigWriter).zde = function (command) {
|
|
263
|
+
var tmp;
|
|
264
|
+
try {
|
|
265
|
+
var tmp_0 = _ProjectId___get_value__impl__lfubnr(command.cdf_1.f5p_1);
|
|
266
|
+
var tmp_1 = _DesignSystemId___get_value__impl__wgtkjx(command.cdf_1.g5p_1);
|
|
267
|
+
var tmp0_subject = command.cdf_1.j5p_1;
|
|
268
|
+
var tmp_2;
|
|
269
|
+
if (tmp0_subject instanceof Environment) {
|
|
270
|
+
tmp_2 = CredentialReferenceType_AUTO_getInstance();
|
|
271
|
+
} else {
|
|
272
|
+
if (equals(tmp0_subject, UserSession_instance)) {
|
|
273
|
+
tmp_2 = CredentialReferenceType_USER_SESSION_getInstance();
|
|
274
|
+
} else {
|
|
275
|
+
noWhenBranchMatchedException();
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
var tmp_3 = tmp_2;
|
|
279
|
+
var tmp_4 = command.cdf_1.j5p_1;
|
|
280
|
+
var tmp1_safe_receiver = tmp_4 instanceof Environment ? tmp_4 : null;
|
|
281
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.w5o_1;
|
|
282
|
+
var tmp_5 = new CredentialReference(tmp_3, tmp2_elvis_lhs == null ? 'DSBUILDER_API_KEY' : tmp2_elvis_lhs);
|
|
283
|
+
// Inline function 'kotlin.collections.map' call
|
|
284
|
+
var this_0 = command.cdf_1.i5p_1;
|
|
285
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
286
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
287
|
+
var _iterator__ex2g4s = this_0.l();
|
|
288
|
+
while (_iterator__ex2g4s.m()) {
|
|
289
|
+
var item = _iterator__ex2g4s.n();
|
|
290
|
+
var tmp$ret$0 = item.m5p_1;
|
|
291
|
+
destination.j(tmp$ret$0);
|
|
292
|
+
}
|
|
293
|
+
var configPath = this.odf_1.x5n(command.ddf_1, new ProjectConfig(tmp_0, tmp_1, tmp_5, VOID, VOID, destination));
|
|
294
|
+
tmp = new Created(configPath);
|
|
295
|
+
} catch ($p) {
|
|
296
|
+
var tmp_6;
|
|
297
|
+
if ($p instanceof ProjectConfigException) {
|
|
298
|
+
var exception = $p;
|
|
299
|
+
tmp_6 = new Failed('Error: ' + exception.message);
|
|
300
|
+
} else {
|
|
301
|
+
throw $p;
|
|
302
|
+
}
|
|
303
|
+
tmp = tmp_6;
|
|
304
|
+
}
|
|
305
|
+
return tmp;
|
|
306
|
+
};
|
|
307
|
+
//region block: exports
|
|
308
|
+
_.$_$ = _.$_$ || {};
|
|
309
|
+
_.$_$.a = InitProjectCommand;
|
|
310
|
+
_.$_$.b = Created_0;
|
|
311
|
+
_.$_$.c = Failed_0;
|
|
312
|
+
_.$_$.d = InitProjectUseCase;
|
|
313
|
+
_.$_$.e = initApplicationModule;
|
|
314
|
+
//endregion
|
|
315
|
+
return _;
|
|
316
|
+
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./projects-core-koin-core.js'), require('./design-system-builder-frontend-core-workspace.js'), require('./design-system-builder-frontend-core-domain.js')));
|
|
317
|
+
|
|
318
|
+
//# sourceMappingURL=design-system-builder-frontend-feature-init.js.map
|