@cruglobal/godtools-shared 0.9.0-SNAPSHOT.1159 → 0.9.0-SNAPSHOT.1167
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.
|
@@ -8987,9 +8987,9 @@
|
|
|
8987
8987
|
BaseModel.call($this, parent);
|
|
8988
8988
|
CallToAction.call($this);
|
|
8989
8989
|
$this.p3e_1 = parent;
|
|
8990
|
+
$this.label = null;
|
|
8990
8991
|
$this.q3e_1 = null;
|
|
8991
8992
|
$this.r3e_1 = null;
|
|
8992
|
-
$this.s3e_1 = null;
|
|
8993
8993
|
return $this;
|
|
8994
8994
|
}
|
|
8995
8995
|
function CallToAction_init_$Create$(parent) {
|
|
@@ -9005,27 +9005,59 @@
|
|
|
9005
9005
|
$this.p3e_1 = page;
|
|
9006
9006
|
var tmp_0 = $this;
|
|
9007
9007
|
var tmp0_safe_receiver = parser.o2r('control-color');
|
|
9008
|
-
tmp_0.
|
|
9009
|
-
$this.
|
|
9008
|
+
tmp_0.q3e_1 = tmp0_safe_receiver == null ? null : toColorOrNull(tmp0_safe_receiver);
|
|
9009
|
+
$this.r3e_1 = parser.d2t(get_XMLNS_TRAINING(), 'tip');
|
|
9010
9010
|
var tmp_1 = $this;
|
|
9011
9011
|
var tmp_2 = get_XMLNS_TRACT();
|
|
9012
9012
|
Companion_getInstance_54();
|
|
9013
|
-
tmp_1.
|
|
9013
|
+
tmp_1.label = parseTextChild(parser, $this, tmp_2, 'call-to-action');
|
|
9014
9014
|
return $this;
|
|
9015
9015
|
}
|
|
9016
9016
|
function CallToAction_init_$Create$_0(page, parser) {
|
|
9017
9017
|
return CallToAction_init_$Init$_0(page, parser, objectCreate(protoOf(CallToAction)));
|
|
9018
9018
|
}
|
|
9019
|
+
function CallToAction_init_$Init$_1(page, label, controlColor, tip, $this) {
|
|
9020
|
+
page = page === VOID ? createTestTractPage() : page;
|
|
9021
|
+
label = label === VOID ? null : label;
|
|
9022
|
+
controlColor = controlColor === VOID ? null : controlColor;
|
|
9023
|
+
tip = tip === VOID ? null : tip;
|
|
9024
|
+
BaseModel.call($this, page);
|
|
9025
|
+
CallToAction.call($this);
|
|
9026
|
+
$this.p3e_1 = page;
|
|
9027
|
+
var tmp = $this;
|
|
9028
|
+
var tmp0_safe_receiver = label;
|
|
9029
|
+
tmp.label = tmp0_safe_receiver == null ? null : tmp0_safe_receiver($this);
|
|
9030
|
+
$this.q3e_1 = controlColor;
|
|
9031
|
+
$this.r3e_1 = tip;
|
|
9032
|
+
return $this;
|
|
9033
|
+
}
|
|
9034
|
+
function createTestCallToAction(page, label, controlColor, tip) {
|
|
9035
|
+
return CallToAction_init_$Init$_1(page, label, controlColor, tip, objectCreate(protoOf(CallToAction)));
|
|
9036
|
+
}
|
|
9037
|
+
protoOf(CallToAction).s3e = function () {
|
|
9038
|
+
return this.label;
|
|
9039
|
+
};
|
|
9040
|
+
protoOf(CallToAction).m3b = function () {
|
|
9041
|
+
var tmp0_elvis_lhs = this.q3e_1;
|
|
9042
|
+
return tmp0_elvis_lhs == null ? get_primaryColor_0(this.c2r()) : tmp0_elvis_lhs;
|
|
9043
|
+
};
|
|
9044
|
+
protoOf(CallToAction).t3e = function () {
|
|
9045
|
+
return this.r3e_1;
|
|
9046
|
+
};
|
|
9047
|
+
protoOf(CallToAction).g3e = function () {
|
|
9048
|
+
return this.h2n().f35(this.r3e_1);
|
|
9049
|
+
};
|
|
9019
9050
|
function CallToAction() {
|
|
9020
9051
|
Companion_getInstance_54();
|
|
9021
9052
|
}
|
|
9053
|
+
defineProp(protoOf(CallToAction), 'tip', protoOf(CallToAction).g3e);
|
|
9022
9054
|
function get_XMLNS_TRACT() {
|
|
9023
9055
|
return XMLNS_TRACT;
|
|
9024
9056
|
}
|
|
9025
9057
|
var XMLNS_TRACT;
|
|
9026
9058
|
function Companion_52() {
|
|
9027
9059
|
Companion_instance_52 = this;
|
|
9028
|
-
this.
|
|
9060
|
+
this.u3e_1 = 'header';
|
|
9029
9061
|
}
|
|
9030
9062
|
var Companion_instance_52;
|
|
9031
9063
|
function Companion_getInstance_55() {
|
|
@@ -9042,8 +9074,8 @@
|
|
|
9042
9074
|
parser.b2q(2, tmp, 'header');
|
|
9043
9075
|
var tmp_0 = $this;
|
|
9044
9076
|
var tmp0_safe_receiver = parser.o2r(get_XML_BACKGROUND_COLOR());
|
|
9045
|
-
tmp_0.
|
|
9046
|
-
$this.
|
|
9077
|
+
tmp_0.w3e_1 = tmp0_safe_receiver == null ? null : toColorOrNull(tmp0_safe_receiver);
|
|
9078
|
+
$this.x3e_1 = parser.d2t(get_XMLNS_TRAINING(), 'tip');
|
|
9047
9079
|
var number = null;
|
|
9048
9080
|
var title = null;
|
|
9049
9081
|
// Inline function 'org.cru.godtools.shared.tool.parser.xml.parseChildren' call
|
|
@@ -9072,19 +9104,36 @@
|
|
|
9072
9104
|
continue $l$loop_1;
|
|
9073
9105
|
skipTag(parser);
|
|
9074
9106
|
}
|
|
9075
|
-
$this.
|
|
9076
|
-
$this.
|
|
9107
|
+
$this.number = number;
|
|
9108
|
+
$this.title = title;
|
|
9077
9109
|
return $this;
|
|
9078
9110
|
}
|
|
9079
9111
|
function Header_init_$Create$(page, parser) {
|
|
9080
9112
|
return Header_init_$Init$(page, parser, objectCreate(protoOf(Header)));
|
|
9081
9113
|
}
|
|
9114
|
+
protoOf(Header).x33 = function () {
|
|
9115
|
+
var tmp0_elvis_lhs = this.w3e_1;
|
|
9116
|
+
return tmp0_elvis_lhs == null ? this.t2v() : tmp0_elvis_lhs;
|
|
9117
|
+
};
|
|
9082
9118
|
protoOf(Header).r2v = function () {
|
|
9083
9119
|
return this.u2v();
|
|
9084
9120
|
};
|
|
9121
|
+
protoOf(Header).y3e = function () {
|
|
9122
|
+
return this.number;
|
|
9123
|
+
};
|
|
9124
|
+
protoOf(Header).c34 = function () {
|
|
9125
|
+
return this.title;
|
|
9126
|
+
};
|
|
9127
|
+
protoOf(Header).t3e = function () {
|
|
9128
|
+
return this.x3e_1;
|
|
9129
|
+
};
|
|
9130
|
+
protoOf(Header).g3e = function () {
|
|
9131
|
+
return this.h2n().f35(this.x3e_1);
|
|
9132
|
+
};
|
|
9085
9133
|
function Header() {
|
|
9086
9134
|
Companion_getInstance_55();
|
|
9087
9135
|
}
|
|
9136
|
+
defineProp(protoOf(Header), 'tip', protoOf(Header).g3e);
|
|
9088
9137
|
function Companion_53() {
|
|
9089
9138
|
Companion_instance_53 = this;
|
|
9090
9139
|
this.z3e_1 = 'hero';
|
|
@@ -9099,7 +9148,7 @@
|
|
|
9099
9148
|
var tmp$ret$0;
|
|
9100
9149
|
// Inline function 'kotlin.getValue' call
|
|
9101
9150
|
var tmp0_getValue = headingParent$factory();
|
|
9102
|
-
tmp$ret$0 = $this.
|
|
9151
|
+
tmp$ret$0 = $this.b3f_1.o1();
|
|
9103
9152
|
return tmp$ret$0;
|
|
9104
9153
|
}
|
|
9105
9154
|
function Hero_init_$Init$(page, parser, $this) {
|
|
@@ -9113,7 +9162,7 @@
|
|
|
9113
9162
|
var tmp$ret$0;
|
|
9114
9163
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
9115
9164
|
tmp$ret$0 = ArrayList_init_$Create$();
|
|
9116
|
-
tmp_0.
|
|
9165
|
+
tmp_0.analyticsEvents = tmp$ret$0;
|
|
9117
9166
|
var heading = null;
|
|
9118
9167
|
var tmp_1 = $this;
|
|
9119
9168
|
var tmp$ret$8;
|
|
@@ -9152,7 +9201,7 @@
|
|
|
9152
9201
|
if (tmp1_subject === 'events') {
|
|
9153
9202
|
var tmp2_this = $this;
|
|
9154
9203
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
9155
|
-
var tmp0_plusAssign = tmp2_this.
|
|
9204
|
+
var tmp0_plusAssign = tmp2_this.analyticsEvents;
|
|
9156
9205
|
var tmp1_plusAssign = Companion_getInstance_6().f2q(parser, $this);
|
|
9157
9206
|
addAll(tmp0_plusAssign, tmp1_plusAssign);
|
|
9158
9207
|
}
|
|
@@ -9208,13 +9257,29 @@
|
|
|
9208
9257
|
tmp$ret$6 = tmp$ret$5.u7();
|
|
9209
9258
|
tmp$ret$7 = tmp$ret$6;
|
|
9210
9259
|
tmp$ret$8 = tmp$ret$7;
|
|
9211
|
-
tmp_1.
|
|
9212
|
-
$this.
|
|
9260
|
+
tmp_1.c3f_1 = tmp$ret$8;
|
|
9261
|
+
$this.heading = heading;
|
|
9213
9262
|
return $this;
|
|
9214
9263
|
}
|
|
9215
9264
|
function Hero_init_$Create$(page, parser) {
|
|
9216
9265
|
return Hero_init_$Init$(page, parser, objectCreate(protoOf(Hero)));
|
|
9217
9266
|
}
|
|
9267
|
+
function Hero_init_$Init$_0(page, analyticsEvents, heading, $this) {
|
|
9268
|
+
page = page === VOID ? createTestTractPage() : page;
|
|
9269
|
+
analyticsEvents = analyticsEvents === VOID ? emptyList() : analyticsEvents;
|
|
9270
|
+
heading = heading === VOID ? null : heading;
|
|
9271
|
+
BaseModel.call($this, page);
|
|
9272
|
+
Hero.call($this);
|
|
9273
|
+
$this.analyticsEvents = analyticsEvents;
|
|
9274
|
+
var tmp = $this;
|
|
9275
|
+
var tmp0_safe_receiver = heading;
|
|
9276
|
+
tmp.heading = tmp0_safe_receiver == null ? null : tmp0_safe_receiver(_get_headingParent__2ts5bv($this));
|
|
9277
|
+
$this.c3f_1 = emptyList();
|
|
9278
|
+
return $this;
|
|
9279
|
+
}
|
|
9280
|
+
function createTestHero(page, analyticsEvents, heading) {
|
|
9281
|
+
return Hero_init_$Init$_0(page, analyticsEvents, heading, objectCreate(protoOf(Hero)));
|
|
9282
|
+
}
|
|
9218
9283
|
function Hero$headingParent$delegate$lambda$lambda(this$0) {
|
|
9219
9284
|
return function () {
|
|
9220
9285
|
return get_primaryColor_0(this$0.c2r());
|
|
@@ -9225,13 +9290,74 @@
|
|
|
9225
9290
|
return stylesOverride(this$0, VOID, Hero$headingParent$delegate$lambda$lambda(this$0));
|
|
9226
9291
|
};
|
|
9227
9292
|
}
|
|
9293
|
+
protoOf(Hero).m3a = function () {
|
|
9294
|
+
return this.analyticsEvents;
|
|
9295
|
+
};
|
|
9296
|
+
protoOf(Hero).d3f = function () {
|
|
9297
|
+
return this.heading;
|
|
9298
|
+
};
|
|
9228
9299
|
protoOf(Hero).a2r = function () {
|
|
9229
|
-
return this.
|
|
9300
|
+
return this.c3f_1;
|
|
9301
|
+
};
|
|
9302
|
+
protoOf(Hero).n3b = function (type) {
|
|
9303
|
+
var tmp0_subject = type;
|
|
9304
|
+
var tmp0 = tmp0_subject.d4_1;
|
|
9305
|
+
var tmp;
|
|
9306
|
+
switch (tmp0) {
|
|
9307
|
+
case 1:
|
|
9308
|
+
var tmp$ret$2;
|
|
9309
|
+
// Inline function 'kotlin.collections.filter' call
|
|
9310
|
+
var tmp1_filter = this.analyticsEvents;
|
|
9311
|
+
var tmp$ret$1;
|
|
9312
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
9313
|
+
var tmp0_filterTo = ArrayList_init_$Create$();
|
|
9314
|
+
var tmp0_iterator = tmp1_filter.f();
|
|
9315
|
+
while (tmp0_iterator.g()) {
|
|
9316
|
+
var element = tmp0_iterator.h();
|
|
9317
|
+
var tmp$ret$0;
|
|
9318
|
+
// Inline function 'org.cru.godtools.shared.tool.parser.model.tract.Hero.getAnalyticsEvents.<anonymous>' call
|
|
9319
|
+
tmp$ret$0 = element.m2s([Trigger_VISIBLE_getInstance(), Trigger_DEFAULT_getInstance()]);
|
|
9320
|
+
if (tmp$ret$0) {
|
|
9321
|
+
tmp0_filterTo.b(element);
|
|
9322
|
+
}
|
|
9323
|
+
}
|
|
9324
|
+
tmp$ret$1 = tmp0_filterTo;
|
|
9325
|
+
tmp$ret$2 = tmp$ret$1;
|
|
9326
|
+
|
|
9327
|
+
tmp = tmp$ret$2;
|
|
9328
|
+
break;
|
|
9329
|
+
case 2:
|
|
9330
|
+
var tmp$ret$5;
|
|
9331
|
+
// Inline function 'kotlin.collections.filter' call
|
|
9332
|
+
var tmp3_filter = this.analyticsEvents;
|
|
9333
|
+
var tmp$ret$4;
|
|
9334
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
9335
|
+
var tmp2_filterTo = ArrayList_init_$Create$();
|
|
9336
|
+
var tmp0_iterator_0 = tmp3_filter.f();
|
|
9337
|
+
while (tmp0_iterator_0.g()) {
|
|
9338
|
+
var element_0 = tmp0_iterator_0.h();
|
|
9339
|
+
var tmp$ret$3;
|
|
9340
|
+
// Inline function 'org.cru.godtools.shared.tool.parser.model.tract.Hero.getAnalyticsEvents.<anonymous>' call
|
|
9341
|
+
tmp$ret$3 = element_0.m2s([Trigger_HIDDEN_getInstance()]);
|
|
9342
|
+
if (tmp$ret$3) {
|
|
9343
|
+
tmp2_filterTo.b(element_0);
|
|
9344
|
+
}
|
|
9345
|
+
}
|
|
9346
|
+
tmp$ret$4 = tmp2_filterTo;
|
|
9347
|
+
tmp$ret$5 = tmp$ret$4;
|
|
9348
|
+
|
|
9349
|
+
tmp = tmp$ret$5;
|
|
9350
|
+
break;
|
|
9351
|
+
default:
|
|
9352
|
+
var tmp4_error = 'Analytics trigger type ' + type + ' is not currently supported on Heroes';
|
|
9353
|
+
throw IllegalStateException_init_$Create$(toString(tmp4_error));
|
|
9354
|
+
}
|
|
9355
|
+
return tmp;
|
|
9230
9356
|
};
|
|
9231
9357
|
function Hero() {
|
|
9232
9358
|
Companion_getInstance_56();
|
|
9233
9359
|
var tmp = this;
|
|
9234
|
-
tmp.
|
|
9360
|
+
tmp.b3f_1 = lazy(Hero$headingParent$delegate$lambda(this));
|
|
9235
9361
|
}
|
|
9236
9362
|
function headingParent$factory() {
|
|
9237
9363
|
return getPropertyCallableRef('headingParent', 1, KProperty1, function (receiver) {
|
|
@@ -9240,7 +9366,7 @@
|
|
|
9240
9366
|
}
|
|
9241
9367
|
function Companion_54() {
|
|
9242
9368
|
Companion_instance_54 = this;
|
|
9243
|
-
this.
|
|
9369
|
+
this.e3f_1 = 'modal';
|
|
9244
9370
|
}
|
|
9245
9371
|
var Companion_instance_54;
|
|
9246
9372
|
function Companion_getInstance_57() {
|
|
@@ -9249,12 +9375,12 @@
|
|
|
9249
9375
|
return Companion_instance_54;
|
|
9250
9376
|
}
|
|
9251
9377
|
function _get_position__iahqv2($this) {
|
|
9252
|
-
return $this.
|
|
9378
|
+
return $this.page.modals.l1($this);
|
|
9253
9379
|
}
|
|
9254
9380
|
function Modal_init_$Init$(parent, parser, $this) {
|
|
9255
9381
|
BaseModel.call($this, parent);
|
|
9256
9382
|
Modal.call($this);
|
|
9257
|
-
$this.
|
|
9383
|
+
$this.page = parent;
|
|
9258
9384
|
Companion_getInstance_59();
|
|
9259
9385
|
var tmp = get_XMLNS_TRACT();
|
|
9260
9386
|
Companion_getInstance_57();
|
|
@@ -9264,13 +9390,13 @@
|
|
|
9264
9390
|
// Inline function 'org.cru.godtools.shared.tool.parser.model.toEventIds' call
|
|
9265
9391
|
var tmp0_toEventIds = parser.o2r(get_XML_LISTENERS());
|
|
9266
9392
|
tmp$ret$0 = Companion_getInstance_17().e2t(tmp0_toEventIds);
|
|
9267
|
-
tmp_0.
|
|
9393
|
+
tmp_0.listeners = toSet_0(tmp$ret$0);
|
|
9268
9394
|
var tmp_1 = $this;
|
|
9269
9395
|
var tmp$ret$1;
|
|
9270
9396
|
// Inline function 'org.cru.godtools.shared.tool.parser.model.toEventIds' call
|
|
9271
9397
|
var tmp1_toEventIds = parser.o2r(get_XML_DISMISS_LISTENERS());
|
|
9272
9398
|
tmp$ret$1 = Companion_getInstance_17().e2t(tmp1_toEventIds);
|
|
9273
|
-
tmp_1.
|
|
9399
|
+
tmp_1.dismissListeners = toSet_0(tmp$ret$1);
|
|
9274
9400
|
var title = null;
|
|
9275
9401
|
var tmp_2 = $this;
|
|
9276
9402
|
var tmp$ret$9;
|
|
@@ -9355,18 +9481,30 @@
|
|
|
9355
9481
|
tmp$ret$7 = tmp$ret$6.u7();
|
|
9356
9482
|
tmp$ret$8 = tmp$ret$7;
|
|
9357
9483
|
tmp$ret$9 = tmp$ret$8;
|
|
9358
|
-
tmp_2.
|
|
9359
|
-
$this.
|
|
9484
|
+
tmp_2.a3g_1 = tmp$ret$9;
|
|
9485
|
+
$this.title = title;
|
|
9360
9486
|
return $this;
|
|
9361
9487
|
}
|
|
9362
9488
|
function Modal_init_$Create$(parent, parser) {
|
|
9363
9489
|
return Modal_init_$Init$(parent, parser, objectCreate(protoOf(Modal)));
|
|
9364
9490
|
}
|
|
9491
|
+
protoOf(Modal).b3g = function () {
|
|
9492
|
+
return this.page;
|
|
9493
|
+
};
|
|
9365
9494
|
protoOf(Modal).n33 = function () {
|
|
9366
|
-
return this.
|
|
9495
|
+
return this.page.id + '-' + _get_position__iahqv2(this);
|
|
9496
|
+
};
|
|
9497
|
+
protoOf(Modal).c34 = function () {
|
|
9498
|
+
return this.title;
|
|
9367
9499
|
};
|
|
9368
9500
|
protoOf(Modal).a2r = function () {
|
|
9369
|
-
return this.
|
|
9501
|
+
return this.a3g_1;
|
|
9502
|
+
};
|
|
9503
|
+
protoOf(Modal).k3b = function () {
|
|
9504
|
+
return this.listeners;
|
|
9505
|
+
};
|
|
9506
|
+
protoOf(Modal).u33 = function () {
|
|
9507
|
+
return this.dismissListeners;
|
|
9370
9508
|
};
|
|
9371
9509
|
protoOf(Modal).t2v = function () {
|
|
9372
9510
|
return get_TRANSPARENT();
|
|
@@ -9389,13 +9527,14 @@
|
|
|
9389
9527
|
function Modal() {
|
|
9390
9528
|
Companion_getInstance_57();
|
|
9391
9529
|
}
|
|
9530
|
+
defineProp(protoOf(Modal), 'id', protoOf(Modal).n33);
|
|
9392
9531
|
function Companion_55() {
|
|
9393
9532
|
Companion_instance_55 = this;
|
|
9394
|
-
this.
|
|
9395
|
-
this.
|
|
9396
|
-
this.
|
|
9397
|
-
this.
|
|
9398
|
-
this.
|
|
9533
|
+
this.c3g_1 = 'card';
|
|
9534
|
+
this.d3g_1 = 'label';
|
|
9535
|
+
this.e3g_1 = 'hidden';
|
|
9536
|
+
this.f3g_1 = ImageScaleType_FILL_X_getInstance();
|
|
9537
|
+
this.g3g_1 = Companion_getInstance_22().p2u_1;
|
|
9399
9538
|
}
|
|
9400
9539
|
var Companion_instance_55;
|
|
9401
9540
|
function Companion_getInstance_58() {
|
|
@@ -9407,7 +9546,7 @@
|
|
|
9407
9546
|
var tmp$ret$0;
|
|
9408
9547
|
// Inline function 'kotlin.getValue' call
|
|
9409
9548
|
var tmp0_getValue = labelParent$factory();
|
|
9410
|
-
tmp$ret$0 = $this.
|
|
9549
|
+
tmp$ret$0 = $this.n3g_1.o1();
|
|
9411
9550
|
return tmp$ret$0;
|
|
9412
9551
|
}
|
|
9413
9552
|
function Card_init_$Init$_1(page, position, parser, $this) {
|
|
@@ -9438,19 +9577,19 @@
|
|
|
9438
9577
|
tmp_2.dismissListeners = toSet_0(tmp$ret$1);
|
|
9439
9578
|
var tmp_3 = $this;
|
|
9440
9579
|
var tmp2_safe_receiver = parser.o2r(get_XML_BACKGROUND_COLOR());
|
|
9441
|
-
tmp_3.
|
|
9442
|
-
$this.
|
|
9580
|
+
tmp_3.i3g_1 = tmp2_safe_receiver == null ? null : toColorOrNull(tmp2_safe_receiver);
|
|
9581
|
+
$this.j3g_1 = parser.o2r(get_XML_BACKGROUND_IMAGE());
|
|
9443
9582
|
var tmp_4 = $this;
|
|
9444
9583
|
var tmp3_safe_receiver = parser.o2r(get_XML_BACKGROUND_IMAGE_GRAVITY());
|
|
9445
9584
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : Companion_getInstance_22().q2u(tmp3_safe_receiver);
|
|
9446
|
-
tmp_4.
|
|
9585
|
+
tmp_4.k3g_1 = tmp4_elvis_lhs == null ? Companion_getInstance_58().g3g_1 : tmp4_elvis_lhs;
|
|
9447
9586
|
var tmp_5 = $this;
|
|
9448
9587
|
var tmp5_safe_receiver = parser.o2r(get_XML_BACKGROUND_IMAGE_SCALE_TYPE());
|
|
9449
9588
|
var tmp6_elvis_lhs = tmp5_safe_receiver == null ? null : Companion_getInstance_24().n2y(tmp5_safe_receiver);
|
|
9450
|
-
tmp_5.
|
|
9589
|
+
tmp_5.l3g_1 = tmp6_elvis_lhs == null ? Companion_getInstance_58().f3g_1 : tmp6_elvis_lhs;
|
|
9451
9590
|
var tmp_6 = $this;
|
|
9452
9591
|
var tmp7_safe_receiver = parser.o2r(get_XML_TEXT_COLOR());
|
|
9453
|
-
tmp_6.
|
|
9592
|
+
tmp_6.m3g_1 = tmp7_safe_receiver == null ? null : toColorOrNull(tmp7_safe_receiver);
|
|
9454
9593
|
var tmp_7 = $this;
|
|
9455
9594
|
var tmp$ret$2;
|
|
9456
9595
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
@@ -9555,7 +9694,7 @@
|
|
|
9555
9694
|
tmp$ret$8 = tmp$ret$7.u7();
|
|
9556
9695
|
tmp$ret$9 = tmp$ret$8;
|
|
9557
9696
|
tmp$ret$10 = tmp$ret$9;
|
|
9558
|
-
tmp_8.
|
|
9697
|
+
tmp_8.o3g_1 = tmp$ret$10;
|
|
9559
9698
|
$this.label = label;
|
|
9560
9699
|
return $this;
|
|
9561
9700
|
}
|
|
@@ -9581,7 +9720,7 @@
|
|
|
9581
9720
|
parser.b2q(2, tmp, 'page');
|
|
9582
9721
|
var tmp_0 = $this;
|
|
9583
9722
|
var tmp0_safe_receiver = parser.o2r('card-text-color');
|
|
9584
|
-
tmp_0.
|
|
9723
|
+
tmp_0.y3f_1 = tmp0_safe_receiver == null ? null : toColorOrNull(tmp0_safe_receiver);
|
|
9585
9724
|
var header = null;
|
|
9586
9725
|
var hero = null;
|
|
9587
9726
|
var tmp_1 = $this;
|
|
@@ -9679,7 +9818,7 @@
|
|
|
9679
9818
|
callToAction = callToAction === VOID ? null : callToAction;
|
|
9680
9819
|
Page_init_$Init$_0(manifest, VOID, fileName, VOID, primaryColor, backgroundColor, backgroundImage, backgroundImageGravity, backgroundImageScaleType, VOID, cardBackgroundColor, textColor, textScale, $this);
|
|
9681
9820
|
TractPage.call($this);
|
|
9682
|
-
$this.
|
|
9821
|
+
$this.y3f_1 = cardTextColor;
|
|
9683
9822
|
$this.header = null;
|
|
9684
9823
|
$this.hero = null;
|
|
9685
9824
|
var tmp_0 = $this;
|
|
@@ -9700,7 +9839,7 @@
|
|
|
9700
9839
|
function createTestTractPage(manifest, fileName, backgroundColor, backgroundImage, primaryColor, backgroundImageGravity, backgroundImageScaleType, textColor, textScale, cardBackgroundColor, cardTextColor, cards, callToAction) {
|
|
9701
9840
|
return TractPage_init_$Init$_0(manifest, fileName, backgroundColor, backgroundImage, primaryColor, backgroundImageGravity, backgroundImageScaleType, textColor, textScale, cardBackgroundColor, cardTextColor, cards, callToAction, objectCreate(protoOf(TractPage)));
|
|
9702
9841
|
}
|
|
9703
|
-
protoOf(Card_1).
|
|
9842
|
+
protoOf(Card_1).b3g = function () {
|
|
9704
9843
|
return this.page;
|
|
9705
9844
|
};
|
|
9706
9845
|
protoOf(Card_1).n33 = function () {
|
|
@@ -9709,7 +9848,7 @@
|
|
|
9709
9848
|
protoOf(Card_1).g3b = function () {
|
|
9710
9849
|
return this.position;
|
|
9711
9850
|
};
|
|
9712
|
-
protoOf(Card_1).
|
|
9851
|
+
protoOf(Card_1).p3g = function () {
|
|
9713
9852
|
var tmp$ret$1;
|
|
9714
9853
|
// Inline function 'kotlin.takeUnless' call
|
|
9715
9854
|
var tmp0_takeUnless = this.page.visibleCards.l1(this);
|
|
@@ -9726,7 +9865,7 @@
|
|
|
9726
9865
|
tmp$ret$1 = tmp;
|
|
9727
9866
|
return tmp$ret$1;
|
|
9728
9867
|
};
|
|
9729
|
-
protoOf(Card_1).
|
|
9868
|
+
protoOf(Card_1).q3g = function () {
|
|
9730
9869
|
return equals(this, lastOrNull(this.page.visibleCards));
|
|
9731
9870
|
};
|
|
9732
9871
|
protoOf(Card_1).j3b = function () {
|
|
@@ -9742,27 +9881,27 @@
|
|
|
9742
9881
|
return this.analyticsEvents;
|
|
9743
9882
|
};
|
|
9744
9883
|
protoOf(Card_1).x33 = function () {
|
|
9745
|
-
var tmp0_elvis_lhs = this.
|
|
9884
|
+
var tmp0_elvis_lhs = this.i3g_1;
|
|
9746
9885
|
return tmp0_elvis_lhs == null ? this.page.w2v() : tmp0_elvis_lhs;
|
|
9747
9886
|
};
|
|
9748
9887
|
protoOf(Card_1).y33 = function () {
|
|
9749
|
-
return getResource(this, this.
|
|
9888
|
+
return getResource(this, this.j3g_1);
|
|
9750
9889
|
};
|
|
9751
9890
|
protoOf(Card_1).z33 = function () {
|
|
9752
|
-
return this.
|
|
9891
|
+
return this.k3g_1;
|
|
9753
9892
|
};
|
|
9754
9893
|
protoOf(Card_1).a34 = function () {
|
|
9755
|
-
return this.
|
|
9894
|
+
return this.l3g_1;
|
|
9756
9895
|
};
|
|
9757
9896
|
protoOf(Card_1).r2v = function () {
|
|
9758
|
-
var tmp0_elvis_lhs = this.
|
|
9897
|
+
var tmp0_elvis_lhs = this.m3g_1;
|
|
9759
9898
|
return tmp0_elvis_lhs == null ? this.page.cardTextColor : tmp0_elvis_lhs;
|
|
9760
9899
|
};
|
|
9761
|
-
protoOf(Card_1).
|
|
9900
|
+
protoOf(Card_1).s3e = function () {
|
|
9762
9901
|
return this.label;
|
|
9763
9902
|
};
|
|
9764
9903
|
protoOf(Card_1).a2r = function () {
|
|
9765
|
-
return this.
|
|
9904
|
+
return this.o3g_1;
|
|
9766
9905
|
};
|
|
9767
9906
|
protoOf(Card_1).d2r = function () {
|
|
9768
9907
|
var tmp$ret$3;
|
|
@@ -9845,11 +9984,11 @@
|
|
|
9845
9984
|
function Card_1() {
|
|
9846
9985
|
Companion_getInstance_58();
|
|
9847
9986
|
var tmp = this;
|
|
9848
|
-
tmp.
|
|
9987
|
+
tmp.n3g_1 = lazy(TractPage$Card$labelParent$delegate$lambda(this));
|
|
9849
9988
|
}
|
|
9850
9989
|
defineProp(protoOf(Card_1), 'id', protoOf(Card_1).n33);
|
|
9851
|
-
defineProp(protoOf(Card_1), 'visiblePosition', protoOf(Card_1).
|
|
9852
|
-
defineProp(protoOf(Card_1), 'isLastVisibleCard', protoOf(Card_1).
|
|
9990
|
+
defineProp(protoOf(Card_1), 'visiblePosition', protoOf(Card_1).p3g);
|
|
9991
|
+
defineProp(protoOf(Card_1), 'isLastVisibleCard', protoOf(Card_1).q3g);
|
|
9853
9992
|
defineProp(protoOf(Card_1), 'backgroundImage', protoOf(Card_1).y33);
|
|
9854
9993
|
defineProp(protoOf(Card_1), 'tips', protoOf(Card_1).d2r);
|
|
9855
9994
|
function parseCardsXml(_this__u8e3s4, $this) {
|
|
@@ -9940,22 +10079,22 @@
|
|
|
9940
10079
|
tmp$ret$2 = tmp$ret$1;
|
|
9941
10080
|
return tmp$ret$2;
|
|
9942
10081
|
}
|
|
9943
|
-
protoOf(TractPage).
|
|
10082
|
+
protoOf(TractPage).r3g = function () {
|
|
9944
10083
|
return equals(lastOrNull(this.h2n()._pages), this);
|
|
9945
10084
|
};
|
|
9946
10085
|
protoOf(TractPage).m3a = function () {
|
|
9947
|
-
return this.
|
|
10086
|
+
return this.x3f_1;
|
|
9948
10087
|
};
|
|
9949
|
-
protoOf(TractPage).
|
|
10088
|
+
protoOf(TractPage).s3g = function () {
|
|
9950
10089
|
return this.header;
|
|
9951
10090
|
};
|
|
9952
|
-
protoOf(TractPage).
|
|
10091
|
+
protoOf(TractPage).t3g = function () {
|
|
9953
10092
|
return this.hero;
|
|
9954
10093
|
};
|
|
9955
|
-
protoOf(TractPage).
|
|
10094
|
+
protoOf(TractPage).u3g = function () {
|
|
9956
10095
|
return this.modals;
|
|
9957
10096
|
};
|
|
9958
|
-
protoOf(TractPage).
|
|
10097
|
+
protoOf(TractPage).v3g = function () {
|
|
9959
10098
|
return this.callToAction;
|
|
9960
10099
|
};
|
|
9961
10100
|
protoOf(TractPage).n3a = function (type) {
|
|
@@ -9971,7 +10110,7 @@
|
|
|
9971
10110
|
var element = tmp0_iterator.h();
|
|
9972
10111
|
var tmp$ret$0;
|
|
9973
10112
|
// Inline function 'org.cru.godtools.shared.tool.parser.model.tract.TractPage.findModal.<anonymous>' call
|
|
9974
|
-
tmp$ret$0 = equals_0(element.
|
|
10113
|
+
tmp$ret$0 = equals_0(element.id, id, true);
|
|
9975
10114
|
if (tmp$ret$0) {
|
|
9976
10115
|
tmp$ret$1 = element;
|
|
9977
10116
|
break $l$block;
|
|
@@ -9981,10 +10120,10 @@
|
|
|
9981
10120
|
}
|
|
9982
10121
|
return tmp$ret$1;
|
|
9983
10122
|
};
|
|
9984
|
-
protoOf(TractPage).
|
|
10123
|
+
protoOf(TractPage).w3g = function () {
|
|
9985
10124
|
return this.cards;
|
|
9986
10125
|
};
|
|
9987
|
-
protoOf(TractPage).
|
|
10126
|
+
protoOf(TractPage).x3g = function () {
|
|
9988
10127
|
var tmp$ret$2;
|
|
9989
10128
|
// Inline function 'kotlin.collections.filter' call
|
|
9990
10129
|
var tmp1_filter = this.cards;
|
|
@@ -10005,16 +10144,16 @@
|
|
|
10005
10144
|
tmp$ret$2 = tmp$ret$1;
|
|
10006
10145
|
return tmp$ret$2;
|
|
10007
10146
|
};
|
|
10008
|
-
protoOf(TractPage).
|
|
10009
|
-
var tmp0_elvis_lhs = this.
|
|
10147
|
+
protoOf(TractPage).y3g = function () {
|
|
10148
|
+
var tmp0_elvis_lhs = this.y3f_1;
|
|
10010
10149
|
return tmp0_elvis_lhs == null ? this.r2v() : tmp0_elvis_lhs;
|
|
10011
10150
|
};
|
|
10012
10151
|
function TractPage() {
|
|
10013
|
-
this.
|
|
10152
|
+
this.x3f_1 = emptyList();
|
|
10014
10153
|
}
|
|
10015
|
-
defineProp(protoOf(TractPage), 'isLastPage', protoOf(TractPage).
|
|
10016
|
-
defineProp(protoOf(TractPage), 'visibleCards', protoOf(TractPage).
|
|
10017
|
-
defineProp(protoOf(TractPage), 'cardTextColor', protoOf(TractPage).
|
|
10154
|
+
defineProp(protoOf(TractPage), 'isLastPage', protoOf(TractPage).r3g);
|
|
10155
|
+
defineProp(protoOf(TractPage), 'visibleCards', protoOf(TractPage).x3g);
|
|
10156
|
+
defineProp(protoOf(TractPage), 'cardTextColor', protoOf(TractPage).y3g);
|
|
10018
10157
|
function labelParent$factory() {
|
|
10019
10158
|
return getPropertyCallableRef('labelParent', 1, KProperty1, function (receiver) {
|
|
10020
10159
|
return _get_labelParent__664ln7(receiver);
|
|
@@ -10050,11 +10189,11 @@
|
|
|
10050
10189
|
return EMPTY_instance;
|
|
10051
10190
|
}
|
|
10052
10191
|
function SetOnceProperty() {
|
|
10053
|
-
this.
|
|
10192
|
+
this.z3g_1 = EMPTY_getInstance();
|
|
10054
10193
|
}
|
|
10055
|
-
protoOf(SetOnceProperty).
|
|
10194
|
+
protoOf(SetOnceProperty).a3h = function (thisRef, property) {
|
|
10056
10195
|
// Inline function 'kotlin.check' call
|
|
10057
|
-
var tmp0_check = !(this.
|
|
10196
|
+
var tmp0_check = !(this.z3g_1 === EMPTY_getInstance());
|
|
10058
10197
|
// Inline function 'kotlin.contracts.contract' call
|
|
10059
10198
|
if (!tmp0_check) {
|
|
10060
10199
|
var tmp$ret$0;
|
|
@@ -10063,15 +10202,15 @@
|
|
|
10063
10202
|
var message = tmp$ret$0;
|
|
10064
10203
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
10065
10204
|
}
|
|
10066
|
-
var tmp = this.
|
|
10205
|
+
var tmp = this.z3g_1;
|
|
10067
10206
|
return (tmp == null ? true : isObject(tmp)) ? tmp : THROW_CCE();
|
|
10068
10207
|
};
|
|
10069
10208
|
protoOf(SetOnceProperty).y34 = function (thisRef, property) {
|
|
10070
|
-
return this.
|
|
10209
|
+
return this.a3h(isObject(thisRef) ? thisRef : THROW_CCE(), property);
|
|
10071
10210
|
};
|
|
10072
|
-
protoOf(SetOnceProperty).
|
|
10211
|
+
protoOf(SetOnceProperty).b3h = function (thisRef, property, value) {
|
|
10073
10212
|
// Inline function 'kotlin.check' call
|
|
10074
|
-
var tmp0_check = this.
|
|
10213
|
+
var tmp0_check = this.z3g_1 === EMPTY_getInstance();
|
|
10075
10214
|
// Inline function 'kotlin.contracts.contract' call
|
|
10076
10215
|
if (!tmp0_check) {
|
|
10077
10216
|
var tmp$ret$0;
|
|
@@ -10080,11 +10219,11 @@
|
|
|
10080
10219
|
var message = tmp$ret$0;
|
|
10081
10220
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
10082
10221
|
}
|
|
10083
|
-
this.
|
|
10222
|
+
this.z3g_1 = value;
|
|
10084
10223
|
};
|
|
10085
10224
|
protoOf(SetOnceProperty).e33 = function (thisRef, property, value) {
|
|
10086
10225
|
var tmp = isObject(thisRef) ? thisRef : THROW_CCE();
|
|
10087
|
-
return this.
|
|
10226
|
+
return this.b3h(tmp, property, (value == null ? true : isObject(value)) ? value : THROW_CCE());
|
|
10088
10227
|
};
|
|
10089
10228
|
function get_isHttpUrl(_this__u8e3s4) {
|
|
10090
10229
|
var tmp$ret$0;
|
|
@@ -10116,15 +10255,15 @@
|
|
|
10116
10255
|
}
|
|
10117
10256
|
function QName(uri, local) {
|
|
10118
10257
|
uri = uri === VOID ? null : uri;
|
|
10119
|
-
this.
|
|
10120
|
-
this.
|
|
10258
|
+
this.c3h_1 = uri;
|
|
10259
|
+
this.d3h_1 = local;
|
|
10121
10260
|
}
|
|
10122
10261
|
protoOf(QName).toString = function () {
|
|
10123
|
-
return 'QName(uri=' + this.
|
|
10262
|
+
return 'QName(uri=' + this.c3h_1 + ', local=' + this.d3h_1 + ')';
|
|
10124
10263
|
};
|
|
10125
10264
|
protoOf(QName).hashCode = function () {
|
|
10126
|
-
var result = this.
|
|
10127
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
10265
|
+
var result = this.c3h_1 == null ? 0 : getStringHashCode(this.c3h_1);
|
|
10266
|
+
result = imul(result, 31) + getStringHashCode(this.d3h_1) | 0;
|
|
10128
10267
|
return result;
|
|
10129
10268
|
};
|
|
10130
10269
|
protoOf(QName).equals = function (other) {
|
|
@@ -10133,9 +10272,9 @@
|
|
|
10133
10272
|
if (!(other instanceof QName))
|
|
10134
10273
|
return false;
|
|
10135
10274
|
var tmp0_other_with_cast = other instanceof QName ? other : THROW_CCE();
|
|
10136
|
-
if (!(this.
|
|
10275
|
+
if (!(this.c3h_1 == tmp0_other_with_cast.c3h_1))
|
|
10137
10276
|
return false;
|
|
10138
|
-
if (!(this.
|
|
10277
|
+
if (!(this.d3h_1 === tmp0_other_with_cast.d3h_1))
|
|
10139
10278
|
return false;
|
|
10140
10279
|
return true;
|
|
10141
10280
|
};
|
|
@@ -10143,63 +10282,63 @@
|
|
|
10143
10282
|
qname = qname === VOID ? null : qname;
|
|
10144
10283
|
content = content === VOID ? null : content;
|
|
10145
10284
|
attrs = attrs === VOID ? null : attrs;
|
|
10146
|
-
this.
|
|
10147
|
-
this.
|
|
10148
|
-
this.
|
|
10149
|
-
this.
|
|
10285
|
+
this.e3h_1 = type;
|
|
10286
|
+
this.f3h_1 = qname;
|
|
10287
|
+
this.g3h_1 = content;
|
|
10288
|
+
this.h3h_1 = attrs;
|
|
10150
10289
|
}
|
|
10151
10290
|
function enqueueEvent($this, event) {
|
|
10152
10291
|
var tmp$ret$0;
|
|
10153
10292
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
10154
|
-
var tmp0_isNotEmpty = $this.
|
|
10293
|
+
var tmp0_isNotEmpty = $this.k3h_1;
|
|
10155
10294
|
tmp$ret$0 = charSequenceLength(tmp0_isNotEmpty) > 0;
|
|
10156
10295
|
if (tmp$ret$0) {
|
|
10157
10296
|
var tmp0_this = $this;
|
|
10158
10297
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
10159
|
-
var tmp1_plusAssign = tmp0_this.
|
|
10298
|
+
var tmp1_plusAssign = tmp0_this.j3h_1;
|
|
10160
10299
|
Companion_getInstance_59();
|
|
10161
|
-
var tmp2_plusAssign = new ParserEvent(4, VOID, $this.
|
|
10300
|
+
var tmp2_plusAssign = new ParserEvent(4, VOID, $this.k3h_1.toString());
|
|
10162
10301
|
tmp1_plusAssign.b(tmp2_plusAssign);
|
|
10163
|
-
$this.
|
|
10302
|
+
$this.k3h_1.jb();
|
|
10164
10303
|
}
|
|
10165
10304
|
var tmp1_this = $this;
|
|
10166
10305
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
10167
|
-
var tmp3_plusAssign = tmp1_this.
|
|
10306
|
+
var tmp3_plusAssign = tmp1_this.j3h_1;
|
|
10168
10307
|
tmp3_plusAssign.b(event);
|
|
10169
10308
|
}
|
|
10170
10309
|
function SaxXmlPullParser() {
|
|
10171
10310
|
var tmp = this;
|
|
10172
10311
|
Companion_getInstance_59();
|
|
10173
|
-
tmp.
|
|
10312
|
+
tmp.i3h_1 = new ParserEvent(0);
|
|
10174
10313
|
var tmp_0 = this;
|
|
10175
10314
|
var tmp$ret$0;
|
|
10176
10315
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
10177
10316
|
tmp$ret$0 = ArrayList_init_$Create$();
|
|
10178
|
-
tmp_0.
|
|
10179
|
-
this.
|
|
10317
|
+
tmp_0.j3h_1 = tmp$ret$0;
|
|
10318
|
+
this.k3h_1 = StringBuilder_init_$Create$();
|
|
10180
10319
|
}
|
|
10181
10320
|
protoOf(SaxXmlPullParser).c2q = function () {
|
|
10182
|
-
return this.
|
|
10321
|
+
return this.i3h_1.e3h_1;
|
|
10183
10322
|
};
|
|
10184
10323
|
protoOf(SaxXmlPullParser).d2q = function () {
|
|
10185
|
-
var tmp0_safe_receiver = this.
|
|
10186
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
10324
|
+
var tmp0_safe_receiver = this.i3h_1.f3h_1;
|
|
10325
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c3h_1;
|
|
10187
10326
|
};
|
|
10188
10327
|
protoOf(SaxXmlPullParser).id = function () {
|
|
10189
|
-
var tmp0_safe_receiver = this.
|
|
10190
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
10328
|
+
var tmp0_safe_receiver = this.i3h_1.f3h_1;
|
|
10329
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.d3h_1;
|
|
10191
10330
|
};
|
|
10192
10331
|
protoOf(SaxXmlPullParser).b2q = function (type, namespace, name) {
|
|
10193
10332
|
var tmp$ret$0;
|
|
10194
10333
|
// Inline function 'kotlin.with' call
|
|
10195
|
-
var tmp0_with = this.
|
|
10334
|
+
var tmp0_with = this.i3h_1;
|
|
10196
10335
|
// Inline function 'kotlin.contracts.contract' call
|
|
10197
|
-
if (!(tmp0_with.
|
|
10336
|
+
if (!(tmp0_with.e3h_1 === type))
|
|
10198
10337
|
throw new XmlPullParserException('expected ' + type);
|
|
10199
10338
|
var tmp;
|
|
10200
10339
|
if (!(namespace == null)) {
|
|
10201
|
-
var tmp0_safe_receiver = tmp0_with.
|
|
10202
|
-
tmp = !(namespace == (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
10340
|
+
var tmp0_safe_receiver = tmp0_with.f3h_1;
|
|
10341
|
+
tmp = !(namespace == (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c3h_1));
|
|
10203
10342
|
} else {
|
|
10204
10343
|
tmp = false;
|
|
10205
10344
|
}
|
|
@@ -10208,8 +10347,8 @@
|
|
|
10208
10347
|
var tmp_0;
|
|
10209
10348
|
var tmp_1;
|
|
10210
10349
|
if (!(name == null)) {
|
|
10211
|
-
var tmp1_safe_receiver = tmp0_with.
|
|
10212
|
-
tmp_1 = !((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
10350
|
+
var tmp1_safe_receiver = tmp0_with.f3h_1;
|
|
10351
|
+
tmp_1 = !((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.d3h_1) == name);
|
|
10213
10352
|
} else {
|
|
10214
10353
|
tmp_1 = false;
|
|
10215
10354
|
}
|
|
@@ -10222,12 +10361,12 @@
|
|
|
10222
10361
|
protoOf(SaxXmlPullParser).h = function () {
|
|
10223
10362
|
var tmp$ret$0;
|
|
10224
10363
|
// Inline function 'kotlin.also' call
|
|
10225
|
-
var tmp0_also = removeFirst(this.
|
|
10364
|
+
var tmp0_also = removeFirst(this.j3h_1);
|
|
10226
10365
|
// Inline function 'kotlin.contracts.contract' call
|
|
10227
10366
|
// Inline function 'org.cru.godtools.shared.tool.parser.xml.SaxXmlPullParser.next.<anonymous>' call
|
|
10228
|
-
this.
|
|
10367
|
+
this.i3h_1 = tmp0_also;
|
|
10229
10368
|
tmp$ret$0 = tmp0_also;
|
|
10230
|
-
return tmp$ret$0.
|
|
10369
|
+
return tmp$ret$0.e3h_1;
|
|
10231
10370
|
};
|
|
10232
10371
|
protoOf(SaxXmlPullParser).v2n = function () {
|
|
10233
10372
|
var tmp;
|
|
@@ -10236,7 +10375,7 @@
|
|
|
10236
10375
|
if (tmp_0 === 4) {
|
|
10237
10376
|
var tmp$ret$0;
|
|
10238
10377
|
// Inline function 'kotlin.text.isNullOrBlank' call
|
|
10239
|
-
var tmp0_isNullOrBlank = this.
|
|
10378
|
+
var tmp0_isNullOrBlank = this.i3h_1.g3h_1;
|
|
10240
10379
|
// Inline function 'kotlin.contracts.contract' call
|
|
10241
10380
|
tmp$ret$0 = tmp0_isNullOrBlank == null ? true : isBlank(tmp0_isNullOrBlank);
|
|
10242
10381
|
tmp = tmp$ret$0;
|
|
@@ -10246,19 +10385,19 @@
|
|
|
10246
10385
|
if (tmp) {
|
|
10247
10386
|
this.h();
|
|
10248
10387
|
}
|
|
10249
|
-
var event = this.
|
|
10388
|
+
var event = this.i3h_1;
|
|
10250
10389
|
var tmp_1;
|
|
10251
10390
|
Companion_getInstance_59();
|
|
10252
|
-
if (!(event.
|
|
10391
|
+
if (!(event.e3h_1 === 2)) {
|
|
10253
10392
|
Companion_getInstance_59();
|
|
10254
|
-
tmp_1 = !(event.
|
|
10393
|
+
tmp_1 = !(event.e3h_1 === 3);
|
|
10255
10394
|
} else {
|
|
10256
10395
|
tmp_1 = false;
|
|
10257
10396
|
}
|
|
10258
10397
|
if (tmp_1) {
|
|
10259
|
-
throw new XmlPullParserException('Expected start or end tag. Found: ' + event.
|
|
10398
|
+
throw new XmlPullParserException('Expected start or end tag. Found: ' + event.e3h_1);
|
|
10260
10399
|
}
|
|
10261
|
-
return event.
|
|
10400
|
+
return event.e3h_1;
|
|
10262
10401
|
};
|
|
10263
10402
|
protoOf(SaxXmlPullParser).x38 = function () {
|
|
10264
10403
|
Companion_getInstance_59();
|
|
@@ -10271,7 +10410,7 @@
|
|
|
10271
10410
|
// Inline function 'kotlin.also' call
|
|
10272
10411
|
var tmp$ret$0;
|
|
10273
10412
|
// Inline function 'kotlin.text.orEmpty' call
|
|
10274
|
-
var tmp0_orEmpty = this.
|
|
10413
|
+
var tmp0_orEmpty = this.i3h_1.g3h_1;
|
|
10275
10414
|
var tmp0_elvis_lhs = tmp0_orEmpty;
|
|
10276
10415
|
tmp$ret$0 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
|
|
10277
10416
|
var tmp1_also = tmp$ret$0;
|
|
@@ -10306,13 +10445,13 @@
|
|
|
10306
10445
|
protoOf(SaxXmlPullParser).d2t = function (namespace, name) {
|
|
10307
10446
|
var tmp$ret$1;
|
|
10308
10447
|
// Inline function 'kotlin.takeIf' call
|
|
10309
|
-
var tmp0_takeIf = this.
|
|
10448
|
+
var tmp0_takeIf = this.i3h_1;
|
|
10310
10449
|
// Inline function 'kotlin.contracts.contract' call
|
|
10311
10450
|
var tmp;
|
|
10312
10451
|
var tmp$ret$0;
|
|
10313
10452
|
// Inline function 'org.cru.godtools.shared.tool.parser.xml.SaxXmlPullParser.getAttributeValue.<anonymous>' call
|
|
10314
10453
|
Companion_getInstance_59();
|
|
10315
|
-
tmp$ret$0 = tmp0_takeIf.
|
|
10454
|
+
tmp$ret$0 = tmp0_takeIf.e3h_1 === 2;
|
|
10316
10455
|
if (tmp$ret$0) {
|
|
10317
10456
|
tmp = tmp0_takeIf;
|
|
10318
10457
|
} else {
|
|
@@ -10327,27 +10466,27 @@
|
|
|
10327
10466
|
tmp_0 = tmp0_elvis_lhs;
|
|
10328
10467
|
}
|
|
10329
10468
|
var event = tmp_0;
|
|
10330
|
-
var tmp1_safe_receiver = event.
|
|
10469
|
+
var tmp1_safe_receiver = event.h3h_1;
|
|
10331
10470
|
return tmp1_safe_receiver == null ? null : tmp1_safe_receiver.c2(new QName(namespace, name));
|
|
10332
10471
|
};
|
|
10333
|
-
protoOf(SaxXmlPullParser).
|
|
10472
|
+
protoOf(SaxXmlPullParser).l3h = function (qname, attrs) {
|
|
10334
10473
|
Companion_getInstance_59();
|
|
10335
10474
|
enqueueEvent(this, new ParserEvent(2, qname, VOID, attrs));
|
|
10336
10475
|
};
|
|
10337
|
-
protoOf(SaxXmlPullParser).
|
|
10338
|
-
this.
|
|
10476
|
+
protoOf(SaxXmlPullParser).m3h = function (text) {
|
|
10477
|
+
this.k3h_1.ib(text);
|
|
10339
10478
|
};
|
|
10340
|
-
protoOf(SaxXmlPullParser).
|
|
10479
|
+
protoOf(SaxXmlPullParser).n3h = function (qname) {
|
|
10341
10480
|
Companion_getInstance_59();
|
|
10342
10481
|
enqueueEvent(this, new ParserEvent(3, qname));
|
|
10343
10482
|
};
|
|
10344
10483
|
function Companion_56() {
|
|
10345
10484
|
Companion_instance_56 = this;
|
|
10346
|
-
this.
|
|
10347
|
-
this.
|
|
10348
|
-
this.
|
|
10349
|
-
this.
|
|
10350
|
-
this.
|
|
10485
|
+
this.o3h_1 = 0;
|
|
10486
|
+
this.p3h_1 = 1;
|
|
10487
|
+
this.q3h_1 = 2;
|
|
10488
|
+
this.r3h_1 = 3;
|
|
10489
|
+
this.s3h_1 = 4;
|
|
10351
10490
|
}
|
|
10352
10491
|
var Companion_instance_56;
|
|
10353
10492
|
function Companion_getInstance_59() {
|
|
@@ -10401,26 +10540,26 @@
|
|
|
10401
10540
|
}
|
|
10402
10541
|
var SAX_OPTIONS;
|
|
10403
10542
|
function InternalSAXParser($outer) {
|
|
10404
|
-
this.
|
|
10543
|
+
this.t3h_1 = $outer;
|
|
10405
10544
|
SAXParser.call(this, true, get_SAX_OPTIONS());
|
|
10406
10545
|
}
|
|
10407
|
-
protoOf(InternalSAXParser).
|
|
10408
|
-
return this.
|
|
10546
|
+
protoOf(InternalSAXParser).u3h = function (tag) {
|
|
10547
|
+
return this.t3h_1.l3h(new QName(tag.uri, tag.local), convert(tag.attributes, this.t3h_1));
|
|
10409
10548
|
};
|
|
10410
10549
|
protoOf(InternalSAXParser).onopentag = function (tag) {
|
|
10411
|
-
return this.
|
|
10550
|
+
return this.u3h(tag);
|
|
10412
10551
|
};
|
|
10413
|
-
protoOf(InternalSAXParser).
|
|
10414
|
-
return this.
|
|
10552
|
+
protoOf(InternalSAXParser).v3h = function (tagName) {
|
|
10553
|
+
return this.t3h_1.n3h(new QName(VOID, tagName));
|
|
10415
10554
|
};
|
|
10416
10555
|
protoOf(InternalSAXParser).onclosetag = function (tagName) {
|
|
10417
|
-
return this.
|
|
10556
|
+
return this.v3h(tagName);
|
|
10418
10557
|
};
|
|
10419
|
-
protoOf(InternalSAXParser).
|
|
10420
|
-
return this.
|
|
10558
|
+
protoOf(InternalSAXParser).w3h = function (t) {
|
|
10559
|
+
return this.t3h_1.m3h(t);
|
|
10421
10560
|
};
|
|
10422
10561
|
protoOf(InternalSAXParser).ontext = function (t) {
|
|
10423
|
-
return this.
|
|
10562
|
+
return this.w3h(t);
|
|
10424
10563
|
};
|
|
10425
10564
|
function convert(_this__u8e3s4, $this) {
|
|
10426
10565
|
var tmp$ret$7;
|
|
@@ -10488,16 +10627,16 @@
|
|
|
10488
10627
|
tmp0_apply.write(xml);
|
|
10489
10628
|
tmp0_apply.close();
|
|
10490
10629
|
tmp$ret$0 = tmp0_apply;
|
|
10491
|
-
tmp.
|
|
10630
|
+
tmp.a3i_1 = tmp$ret$0;
|
|
10492
10631
|
}
|
|
10493
10632
|
function SAX_OPTIONS$1() {
|
|
10494
|
-
this.
|
|
10633
|
+
this.b3i_1 = true;
|
|
10495
10634
|
}
|
|
10496
|
-
protoOf(SAX_OPTIONS$1).
|
|
10497
|
-
return this.
|
|
10635
|
+
protoOf(SAX_OPTIONS$1).c3i = function () {
|
|
10636
|
+
return this.b3i_1;
|
|
10498
10637
|
};
|
|
10499
10638
|
defineProp(protoOf(SAX_OPTIONS$1), 'xmlns', function () {
|
|
10500
|
-
return this.
|
|
10639
|
+
return this.c3i();
|
|
10501
10640
|
});
|
|
10502
10641
|
var properties_initialized_JsXmlPullParser_kt_u4cdem;
|
|
10503
10642
|
function _init_properties_JsXmlPullParser_kt__2zt5j4() {
|
|
@@ -10509,8 +10648,8 @@
|
|
|
10509
10648
|
}
|
|
10510
10649
|
function $getXmlParserCOROUTINE$1(_this__u8e3s4, fileName, resultContinuation) {
|
|
10511
10650
|
CoroutineImpl.call(this, resultContinuation);
|
|
10512
|
-
this.
|
|
10513
|
-
this.
|
|
10651
|
+
this.l3i_1 = _this__u8e3s4;
|
|
10652
|
+
this.m3i_1 = fileName;
|
|
10514
10653
|
}
|
|
10515
10654
|
protoOf($getXmlParserCOROUTINE$1).ue = function () {
|
|
10516
10655
|
var suspendResult = this.de_1;
|
|
@@ -10521,7 +10660,7 @@
|
|
|
10521
10660
|
case 0:
|
|
10522
10661
|
this.ce_1 = 2;
|
|
10523
10662
|
this.be_1 = 1;
|
|
10524
|
-
suspendResult = await_0(this.
|
|
10663
|
+
suspendResult = await_0(this.l3i_1.readFile(this.m3i_1), this);
|
|
10525
10664
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
10526
10665
|
return suspendResult;
|
|
10527
10666
|
}
|
|
@@ -10554,14 +10693,14 @@
|
|
|
10554
10693
|
function JsXmlPullParserFactory() {
|
|
10555
10694
|
XmlPullParserFactory.call(this);
|
|
10556
10695
|
}
|
|
10557
|
-
protoOf(JsXmlPullParserFactory).
|
|
10696
|
+
protoOf(JsXmlPullParserFactory).n3i = function (fileName, $completion) {
|
|
10558
10697
|
var tmp = new $getXmlParserCOROUTINE$1(this, fileName, $completion);
|
|
10559
10698
|
tmp.de_1 = Unit_getInstance();
|
|
10560
10699
|
tmp.ee_1 = null;
|
|
10561
10700
|
return tmp.ue();
|
|
10562
10701
|
};
|
|
10563
10702
|
protoOf(JsXmlPullParserFactory).u2n = function (fileName, $completion) {
|
|
10564
|
-
return this.
|
|
10703
|
+
return this.n3i(fileName, $completion);
|
|
10565
10704
|
};
|
|
10566
10705
|
function XmlPullParserException(s) {
|
|
10567
10706
|
Exception_init_$Init$(s, this);
|
|
@@ -10736,6 +10875,44 @@
|
|
|
10736
10875
|
var $org$cru$godtools$shared$tool$parser = $org$cru$godtools$shared$tool.parser || ($org$cru$godtools$shared$tool.parser = {});
|
|
10737
10876
|
var $org$cru$godtools$shared$tool$parser$model = $org$cru$godtools$shared$tool$parser.model || ($org$cru$godtools$shared$tool$parser.model = {});
|
|
10738
10877
|
var $org$cru$godtools$shared$tool$parser$model$tract = $org$cru$godtools$shared$tool$parser$model.tract || ($org$cru$godtools$shared$tool$parser$model.tract = {});
|
|
10878
|
+
$org$cru$godtools$shared$tool$parser$model$tract.CallToAction = CallToAction;
|
|
10879
|
+
$org$cru$godtools$shared$tool$parser$model$tract.CallToAction.createTestCallToAction = createTestCallToAction;
|
|
10880
|
+
var $org = _.org || (_.org = {});
|
|
10881
|
+
var $org$cru = $org.cru || ($org.cru = {});
|
|
10882
|
+
var $org$cru$godtools = $org$cru.godtools || ($org$cru.godtools = {});
|
|
10883
|
+
var $org$cru$godtools$shared = $org$cru$godtools.shared || ($org$cru$godtools.shared = {});
|
|
10884
|
+
var $org$cru$godtools$shared$tool = $org$cru$godtools$shared.tool || ($org$cru$godtools$shared.tool = {});
|
|
10885
|
+
var $org$cru$godtools$shared$tool$parser = $org$cru$godtools$shared$tool.parser || ($org$cru$godtools$shared$tool.parser = {});
|
|
10886
|
+
var $org$cru$godtools$shared$tool$parser$model = $org$cru$godtools$shared$tool$parser.model || ($org$cru$godtools$shared$tool$parser.model = {});
|
|
10887
|
+
var $org$cru$godtools$shared$tool$parser$model$tract = $org$cru$godtools$shared$tool$parser$model.tract || ($org$cru$godtools$shared$tool$parser$model.tract = {});
|
|
10888
|
+
$org$cru$godtools$shared$tool$parser$model$tract.Header = Header;
|
|
10889
|
+
var $org = _.org || (_.org = {});
|
|
10890
|
+
var $org$cru = $org.cru || ($org.cru = {});
|
|
10891
|
+
var $org$cru$godtools = $org$cru.godtools || ($org$cru.godtools = {});
|
|
10892
|
+
var $org$cru$godtools$shared = $org$cru$godtools.shared || ($org$cru$godtools.shared = {});
|
|
10893
|
+
var $org$cru$godtools$shared$tool = $org$cru$godtools$shared.tool || ($org$cru$godtools$shared.tool = {});
|
|
10894
|
+
var $org$cru$godtools$shared$tool$parser = $org$cru$godtools$shared$tool.parser || ($org$cru$godtools$shared$tool.parser = {});
|
|
10895
|
+
var $org$cru$godtools$shared$tool$parser$model = $org$cru$godtools$shared$tool$parser.model || ($org$cru$godtools$shared$tool$parser.model = {});
|
|
10896
|
+
var $org$cru$godtools$shared$tool$parser$model$tract = $org$cru$godtools$shared$tool$parser$model.tract || ($org$cru$godtools$shared$tool$parser$model.tract = {});
|
|
10897
|
+
$org$cru$godtools$shared$tool$parser$model$tract.Hero = Hero;
|
|
10898
|
+
$org$cru$godtools$shared$tool$parser$model$tract.Hero.createTestHero = createTestHero;
|
|
10899
|
+
var $org = _.org || (_.org = {});
|
|
10900
|
+
var $org$cru = $org.cru || ($org.cru = {});
|
|
10901
|
+
var $org$cru$godtools = $org$cru.godtools || ($org$cru.godtools = {});
|
|
10902
|
+
var $org$cru$godtools$shared = $org$cru$godtools.shared || ($org$cru$godtools.shared = {});
|
|
10903
|
+
var $org$cru$godtools$shared$tool = $org$cru$godtools$shared.tool || ($org$cru$godtools$shared.tool = {});
|
|
10904
|
+
var $org$cru$godtools$shared$tool$parser = $org$cru$godtools$shared$tool.parser || ($org$cru$godtools$shared$tool.parser = {});
|
|
10905
|
+
var $org$cru$godtools$shared$tool$parser$model = $org$cru$godtools$shared$tool$parser.model || ($org$cru$godtools$shared$tool$parser.model = {});
|
|
10906
|
+
var $org$cru$godtools$shared$tool$parser$model$tract = $org$cru$godtools$shared$tool$parser$model.tract || ($org$cru$godtools$shared$tool$parser$model.tract = {});
|
|
10907
|
+
$org$cru$godtools$shared$tool$parser$model$tract.Modal = Modal;
|
|
10908
|
+
var $org = _.org || (_.org = {});
|
|
10909
|
+
var $org$cru = $org.cru || ($org.cru = {});
|
|
10910
|
+
var $org$cru$godtools = $org$cru.godtools || ($org$cru.godtools = {});
|
|
10911
|
+
var $org$cru$godtools$shared = $org$cru$godtools.shared || ($org$cru$godtools.shared = {});
|
|
10912
|
+
var $org$cru$godtools$shared$tool = $org$cru$godtools$shared.tool || ($org$cru$godtools$shared.tool = {});
|
|
10913
|
+
var $org$cru$godtools$shared$tool$parser = $org$cru$godtools$shared$tool.parser || ($org$cru$godtools$shared$tool.parser = {});
|
|
10914
|
+
var $org$cru$godtools$shared$tool$parser$model = $org$cru$godtools$shared$tool$parser.model || ($org$cru$godtools$shared$tool$parser.model = {});
|
|
10915
|
+
var $org$cru$godtools$shared$tool$parser$model$tract = $org$cru$godtools$shared$tool$parser$model.tract || ($org$cru$godtools$shared$tool$parser$model.tract = {});
|
|
10739
10916
|
$org$cru$godtools$shared$tool$parser$model$tract.TractPage = TractPage;
|
|
10740
10917
|
$org$cru$godtools$shared$tool$parser$model$tract.TractPage.createTestTractPage = createTestTractPage;
|
|
10741
10918
|
$org$cru$godtools$shared$tool$parser$model$tract.TractPage.Card = Card_1;
|