@abgov/web-components 1.0.0-alpha.60 → 1.0.0-alpha.63

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.
@@ -835,7 +835,7 @@ if (typeof HTMLElement === 'function') {
835
835
 
836
836
  /* libs/web-components/src/components/page-block/PageBlock.svelte generated by Svelte v3.44.3 */
837
837
 
838
- function create_fragment$x(ctx) {
838
+ function create_fragment$A(ctx) {
839
839
  let div;
840
840
 
841
841
  return {
@@ -870,7 +870,7 @@ class PageBlock extends SvelteElement {
870
870
  customElement: true
871
871
  },
872
872
  null,
873
- create_fragment$x,
873
+ create_fragment$A,
874
874
  safe_not_equal,
875
875
  {},
876
876
  null
@@ -888,7 +888,7 @@ customElements.define("goa-page-block", PageBlock);
888
888
 
889
889
  /* libs/web-components/src/components/app-header/AppHeader.svelte generated by Svelte v3.44.3 */
890
890
 
891
- function create_fragment$w(ctx) {
891
+ function create_fragment$z(ctx) {
892
892
  let div1;
893
893
  let a;
894
894
  let img0;
@@ -959,24 +959,1103 @@ function create_fragment$w(ctx) {
959
959
  };
960
960
  }
961
961
 
962
- function instance$s($$self, $$props, $$invalidate) {
962
+ function instance$v($$self, $$props, $$invalidate) {
963
963
  let { url = "#" } = $$props;
964
964
  let { title = "" } = $$props;
965
- let { testid = "" } = $$props;
965
+ let { testid = "" } = $$props;
966
+
967
+ $$self.$$set = $$props => {
968
+ if ('url' in $$props) $$invalidate(0, url = $$props.url);
969
+ if ('title' in $$props) $$invalidate(1, title = $$props.title);
970
+ if ('testid' in $$props) $$invalidate(2, testid = $$props.testid);
971
+ };
972
+
973
+ return [url, title, testid];
974
+ }
975
+
976
+ class AppHeader extends SvelteElement {
977
+ constructor(options) {
978
+ super();
979
+ this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.app-header{display:flex;align-items:center;justify-content:space-between;margin:0 auto;padding:1rem 0.5rem;border-bottom:1px solid var(--color-gray-100)}.app-link{display:flex;align-items:center;text-decoration:none;color:inherit}.title{margin-left:0.5rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.image-desktop{display:none}.image-mobile{display:block}@media(min-width: 768px){.image-desktop{display:block}.image-mobile{display:none}.title{margin-left:1.75rem}.image-desktop{display:block}.image-mobile{display:none}}</style>`;
980
+
981
+ init(
982
+ this,
983
+ {
984
+ target: this.shadowRoot,
985
+ props: attribute_to_object(this.attributes),
986
+ customElement: true
987
+ },
988
+ instance$v,
989
+ create_fragment$z,
990
+ safe_not_equal,
991
+ { url: 0, title: 1, testid: 2 },
992
+ null
993
+ );
994
+
995
+ if (options) {
996
+ if (options.target) {
997
+ insert(options.target, this, options.anchor);
998
+ }
999
+
1000
+ if (options.props) {
1001
+ this.$set(options.props);
1002
+ flush();
1003
+ }
1004
+ }
1005
+ }
1006
+
1007
+ static get observedAttributes() {
1008
+ return ["url", "title", "testid"];
1009
+ }
1010
+
1011
+ get url() {
1012
+ return this.$$.ctx[0];
1013
+ }
1014
+
1015
+ set url(url) {
1016
+ this.$$set({ url });
1017
+ flush();
1018
+ }
1019
+
1020
+ get title() {
1021
+ return this.$$.ctx[1];
1022
+ }
1023
+
1024
+ set title(title) {
1025
+ this.$$set({ title });
1026
+ flush();
1027
+ }
1028
+
1029
+ get testid() {
1030
+ return this.$$.ctx[2];
1031
+ }
1032
+
1033
+ set testid(testid) {
1034
+ this.$$set({ testid });
1035
+ flush();
1036
+ }
1037
+ }
1038
+
1039
+ customElements.define("goa-app-header", AppHeader);
1040
+
1041
+ const subscriber_queue = [];
1042
+ /**
1043
+ * Create a `Writable` store that allows both updating and reading by subscription.
1044
+ * @param {*=}value initial value
1045
+ * @param {StartStopNotifier=}start start and stop notifications for subscriptions
1046
+ */
1047
+ function writable(value, start = noop) {
1048
+ let stop;
1049
+ const subscribers = new Set();
1050
+ function set(new_value) {
1051
+ if (safe_not_equal(value, new_value)) {
1052
+ value = new_value;
1053
+ if (stop) { // store is ready
1054
+ const run_queue = !subscriber_queue.length;
1055
+ for (const subscriber of subscribers) {
1056
+ subscriber[1]();
1057
+ subscriber_queue.push(subscriber, value);
1058
+ }
1059
+ if (run_queue) {
1060
+ for (let i = 0; i < subscriber_queue.length; i += 2) {
1061
+ subscriber_queue[i][0](subscriber_queue[i + 1]);
1062
+ }
1063
+ subscriber_queue.length = 0;
1064
+ }
1065
+ }
1066
+ }
1067
+ }
1068
+ function update(fn) {
1069
+ set(fn(value));
1070
+ }
1071
+ function subscribe(run, invalidate = noop) {
1072
+ const subscriber = [run, invalidate];
1073
+ subscribers.add(subscriber);
1074
+ if (subscribers.size === 1) {
1075
+ stop = start(set) || noop;
1076
+ }
1077
+ run(value);
1078
+ return () => {
1079
+ subscribers.delete(subscriber);
1080
+ if (subscribers.size === 0) {
1081
+ stop();
1082
+ stop = null;
1083
+ }
1084
+ };
1085
+ }
1086
+ return { set, update, subscribe };
1087
+ }
1088
+
1089
+ const stores = {};
1090
+ class ContextStore {
1091
+ constructor() {
1092
+ this.store = writable();
1093
+ }
1094
+ subscribe(cb) {
1095
+ this.store.subscribe((state) => {
1096
+ cb(state);
1097
+ });
1098
+ }
1099
+ notify(msg) {
1100
+ this.store.update(() => msg);
1101
+ }
1102
+ }
1103
+ function createContext(name) {
1104
+ const ctx = new ContextStore();
1105
+ stores[name] = ctx;
1106
+ return ctx;
1107
+ }
1108
+ async function getContext(name) {
1109
+ return await _getContext(name, 0);
1110
+ }
1111
+ async function _getContext(name, attempts) {
1112
+ if (attempts > 10) {
1113
+ throw new Error(`Could not find context ${name}`);
1114
+ }
1115
+ if (stores[name]) {
1116
+ return stores[name];
1117
+ }
1118
+ await tick();
1119
+ return _getContext(name, attempts + 1);
1120
+ }
1121
+ function deleteContext(name) {
1122
+ const store = stores[name];
1123
+ if (!store)
1124
+ return;
1125
+ delete stores[name];
1126
+ }
1127
+
1128
+ const META_LINK = "meta-link";
1129
+ const NAVIGATION_LINK = "navigation-link";
1130
+
1131
+ /* libs/web-components/src/components/app-footer/AppFooter.svelte generated by Svelte v3.44.3 */
1132
+
1133
+ function get_each_context$2(ctx, list, i) {
1134
+ const child_ctx = ctx.slice();
1135
+ child_ctx[16] = list[i];
1136
+ return child_ctx;
1137
+ }
1138
+
1139
+ function get_each_context_3(ctx, list, i) {
1140
+ const child_ctx = ctx.slice();
1141
+ child_ctx[22] = list[i];
1142
+ return child_ctx;
1143
+ }
1144
+
1145
+ function get_each_context_1(ctx, list, i) {
1146
+ const child_ctx = ctx.slice();
1147
+ child_ctx[19] = list[i];
1148
+ return child_ctx;
1149
+ }
1150
+
1151
+ function get_each_context_2(ctx, list, i) {
1152
+ const child_ctx = ctx.slice();
1153
+ child_ctx[22] = list[i];
1154
+ return child_ctx;
1155
+ }
1156
+
1157
+ // (83:6) {#if (navigationSections.length || navigationLinks.length) }
1158
+ function create_if_block_1$c(ctx) {
1159
+ let div;
1160
+ let t;
1161
+ let hr;
1162
+
1163
+ function select_block_type(ctx, dirty) {
1164
+ if (/*navigationSections*/ ctx[6].length) return create_if_block_2$7;
1165
+ if (/*navigationLinks*/ ctx[5].length) return create_if_block_3$5;
1166
+ }
1167
+
1168
+ let current_block_type = select_block_type(ctx);
1169
+ let if_block = current_block_type && current_block_type(ctx);
1170
+
1171
+ return {
1172
+ c() {
1173
+ div = element("div");
1174
+ if (if_block) if_block.c();
1175
+ t = space();
1176
+ hr = element("hr");
1177
+ attr(div, "class", "navigation-links");
1178
+ attr(hr, "class", "navigation-links-divider");
1179
+ },
1180
+ m(target, anchor) {
1181
+ insert(target, div, anchor);
1182
+ if (if_block) if_block.m(div, null);
1183
+ insert(target, t, anchor);
1184
+ insert(target, hr, anchor);
1185
+ },
1186
+ p(ctx, dirty) {
1187
+ if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
1188
+ if_block.p(ctx, dirty);
1189
+ } else {
1190
+ if (if_block) if_block.d(1);
1191
+ if_block = current_block_type && current_block_type(ctx);
1192
+
1193
+ if (if_block) {
1194
+ if_block.c();
1195
+ if_block.m(div, null);
1196
+ }
1197
+ }
1198
+ },
1199
+ d(detaching) {
1200
+ if (detaching) detach(div);
1201
+
1202
+ if (if_block) {
1203
+ if_block.d();
1204
+ }
1205
+
1206
+ if (detaching) detach(t);
1207
+ if (detaching) detach(hr);
1208
+ }
1209
+ };
1210
+ }
1211
+
1212
+ // (95:44)
1213
+ function create_if_block_3$5(ctx) {
1214
+ let each_blocks = [];
1215
+ let each_1_lookup = new Map();
1216
+ let each_1_anchor;
1217
+ let each_value_3 = /*navigationLinks*/ ctx[5];
1218
+ const get_key = ctx => /*navigationlink*/ ctx[22].title;
1219
+
1220
+ for (let i = 0; i < each_value_3.length; i += 1) {
1221
+ let child_ctx = get_each_context_3(ctx, each_value_3, i);
1222
+ let key = get_key(child_ctx);
1223
+ each_1_lookup.set(key, each_blocks[i] = create_each_block_3(key, child_ctx));
1224
+ }
1225
+
1226
+ return {
1227
+ c() {
1228
+ for (let i = 0; i < each_blocks.length; i += 1) {
1229
+ each_blocks[i].c();
1230
+ }
1231
+
1232
+ each_1_anchor = empty();
1233
+ },
1234
+ m(target, anchor) {
1235
+ for (let i = 0; i < each_blocks.length; i += 1) {
1236
+ each_blocks[i].m(target, anchor);
1237
+ }
1238
+
1239
+ insert(target, each_1_anchor, anchor);
1240
+ },
1241
+ p(ctx, dirty) {
1242
+ if (dirty & /*navigationLinks*/ 32) {
1243
+ each_value_3 = /*navigationLinks*/ ctx[5];
1244
+ each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value_3, each_1_lookup, each_1_anchor.parentNode, destroy_block, create_each_block_3, each_1_anchor, get_each_context_3);
1245
+ }
1246
+ },
1247
+ d(detaching) {
1248
+ for (let i = 0; i < each_blocks.length; i += 1) {
1249
+ each_blocks[i].d(detaching);
1250
+ }
1251
+
1252
+ if (detaching) detach(each_1_anchor);
1253
+ }
1254
+ };
1255
+ }
1256
+
1257
+ // (85:10) {#if navigationSections.length}
1258
+ function create_if_block_2$7(ctx) {
1259
+ let each_blocks = [];
1260
+ let each_1_lookup = new Map();
1261
+ let each_1_anchor;
1262
+ let each_value_1 = /*navigationSections*/ ctx[6];
1263
+ const get_key = ctx => /*navigationSection*/ ctx[19].name;
1264
+
1265
+ for (let i = 0; i < each_value_1.length; i += 1) {
1266
+ let child_ctx = get_each_context_1(ctx, each_value_1, i);
1267
+ let key = get_key(child_ctx);
1268
+ each_1_lookup.set(key, each_blocks[i] = create_each_block_1(key, child_ctx));
1269
+ }
1270
+
1271
+ return {
1272
+ c() {
1273
+ for (let i = 0; i < each_blocks.length; i += 1) {
1274
+ each_blocks[i].c();
1275
+ }
1276
+
1277
+ each_1_anchor = empty();
1278
+ },
1279
+ m(target, anchor) {
1280
+ for (let i = 0; i < each_blocks.length; i += 1) {
1281
+ each_blocks[i].m(target, anchor);
1282
+ }
1283
+
1284
+ insert(target, each_1_anchor, anchor);
1285
+ },
1286
+ p(ctx, dirty) {
1287
+ if (dirty & /*navigationSections*/ 64) {
1288
+ each_value_1 = /*navigationSections*/ ctx[6];
1289
+ each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value_1, each_1_lookup, each_1_anchor.parentNode, destroy_block, create_each_block_1, each_1_anchor, get_each_context_1);
1290
+ }
1291
+ },
1292
+ d(detaching) {
1293
+ for (let i = 0; i < each_blocks.length; i += 1) {
1294
+ each_blocks[i].d(detaching);
1295
+ }
1296
+
1297
+ if (detaching) detach(each_1_anchor);
1298
+ }
1299
+ };
1300
+ }
1301
+
1302
+ // (96:12) {#each navigationLinks as navigationlink (navigationlink.title) }
1303
+ function create_each_block_3(key_1, ctx) {
1304
+ let a;
1305
+ let t_value = /*navigationlink*/ ctx[22].title + "";
1306
+ let t;
1307
+ let a_href_value;
1308
+
1309
+ return {
1310
+ key: key_1,
1311
+ first: null,
1312
+ c() {
1313
+ a = element("a");
1314
+ t = text(t_value);
1315
+ attr(a, "href", a_href_value = /*navigationlink*/ ctx[22].url);
1316
+ attr(a, "class", "navigation-link");
1317
+ this.first = a;
1318
+ },
1319
+ m(target, anchor) {
1320
+ insert(target, a, anchor);
1321
+ append(a, t);
1322
+ },
1323
+ p(new_ctx, dirty) {
1324
+ ctx = new_ctx;
1325
+ if (dirty & /*navigationLinks*/ 32 && t_value !== (t_value = /*navigationlink*/ ctx[22].title + "")) set_data(t, t_value);
1326
+
1327
+ if (dirty & /*navigationLinks*/ 32 && a_href_value !== (a_href_value = /*navigationlink*/ ctx[22].url)) {
1328
+ attr(a, "href", a_href_value);
1329
+ }
1330
+ },
1331
+ d(detaching) {
1332
+ if (detaching) detach(a);
1333
+ }
1334
+ };
1335
+ }
1336
+
1337
+ // (90:16) {#each navigationSection.links as navigationlink (navigationlink.title) }
1338
+ function create_each_block_2(key_1, ctx) {
1339
+ let a;
1340
+ let t_value = /*navigationlink*/ ctx[22].title + "";
1341
+ let t;
1342
+ let a_href_value;
1343
+
1344
+ return {
1345
+ key: key_1,
1346
+ first: null,
1347
+ c() {
1348
+ a = element("a");
1349
+ t = text(t_value);
1350
+ attr(a, "href", a_href_value = /*navigationlink*/ ctx[22].url);
1351
+ attr(a, "class", "navigation-link");
1352
+ this.first = a;
1353
+ },
1354
+ m(target, anchor) {
1355
+ insert(target, a, anchor);
1356
+ append(a, t);
1357
+ },
1358
+ p(new_ctx, dirty) {
1359
+ ctx = new_ctx;
1360
+ if (dirty & /*navigationSections*/ 64 && t_value !== (t_value = /*navigationlink*/ ctx[22].title + "")) set_data(t, t_value);
1361
+
1362
+ if (dirty & /*navigationSections*/ 64 && a_href_value !== (a_href_value = /*navigationlink*/ ctx[22].url)) {
1363
+ attr(a, "href", a_href_value);
1364
+ }
1365
+ },
1366
+ d(detaching) {
1367
+ if (detaching) detach(a);
1368
+ }
1369
+ };
1370
+ }
1371
+
1372
+ // (86:12) {#each navigationSections as navigationSection (navigationSection.name) }
1373
+ function create_each_block_1(key_1, ctx) {
1374
+ let div;
1375
+ let span;
1376
+ let t0_value = /*navigationSection*/ ctx[19].name + "";
1377
+ let t0;
1378
+ let t1;
1379
+ let hr;
1380
+ let t2;
1381
+ let each_blocks = [];
1382
+ let each_1_lookup = new Map();
1383
+ let t3;
1384
+ let each_value_2 = /*navigationSection*/ ctx[19].links;
1385
+ const get_key = ctx => /*navigationlink*/ ctx[22].title;
1386
+
1387
+ for (let i = 0; i < each_value_2.length; i += 1) {
1388
+ let child_ctx = get_each_context_2(ctx, each_value_2, i);
1389
+ let key = get_key(child_ctx);
1390
+ each_1_lookup.set(key, each_blocks[i] = create_each_block_2(key, child_ctx));
1391
+ }
1392
+
1393
+ return {
1394
+ key: key_1,
1395
+ first: null,
1396
+ c() {
1397
+ div = element("div");
1398
+ span = element("span");
1399
+ t0 = text(t0_value);
1400
+ t1 = space();
1401
+ hr = element("hr");
1402
+ t2 = space();
1403
+
1404
+ for (let i = 0; i < each_blocks.length; i += 1) {
1405
+ each_blocks[i].c();
1406
+ }
1407
+
1408
+ t3 = space();
1409
+ attr(span, "class", "navigation-section-name");
1410
+ attr(hr, "class", "navigation-section-name-divider");
1411
+ attr(div, "class", "navigation-section");
1412
+ this.first = div;
1413
+ },
1414
+ m(target, anchor) {
1415
+ insert(target, div, anchor);
1416
+ append(div, span);
1417
+ append(span, t0);
1418
+ append(div, t1);
1419
+ append(div, hr);
1420
+ append(div, t2);
1421
+
1422
+ for (let i = 0; i < each_blocks.length; i += 1) {
1423
+ each_blocks[i].m(div, null);
1424
+ }
1425
+
1426
+ append(div, t3);
1427
+ },
1428
+ p(new_ctx, dirty) {
1429
+ ctx = new_ctx;
1430
+ if (dirty & /*navigationSections*/ 64 && t0_value !== (t0_value = /*navigationSection*/ ctx[19].name + "")) set_data(t0, t0_value);
1431
+
1432
+ if (dirty & /*navigationSections*/ 64) {
1433
+ each_value_2 = /*navigationSection*/ ctx[19].links;
1434
+ each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value_2, each_1_lookup, div, destroy_block, create_each_block_2, t3, get_each_context_2);
1435
+ }
1436
+ },
1437
+ d(detaching) {
1438
+ if (detaching) detach(div);
1439
+
1440
+ for (let i = 0; i < each_blocks.length; i += 1) {
1441
+ each_blocks[i].d();
1442
+ }
1443
+ }
1444
+ };
1445
+ }
1446
+
1447
+ // (106:8) {#if metaLinks.length }
1448
+ function create_if_block$g(ctx) {
1449
+ let div;
1450
+ let each_blocks = [];
1451
+ let each_1_lookup = new Map();
1452
+ let each_value = /*metaLinks*/ ctx[4];
1453
+ const get_key = ctx => /*metalink*/ ctx[16].title;
1454
+
1455
+ for (let i = 0; i < each_value.length; i += 1) {
1456
+ let child_ctx = get_each_context$2(ctx, each_value, i);
1457
+ let key = get_key(child_ctx);
1458
+ each_1_lookup.set(key, each_blocks[i] = create_each_block$2(key, child_ctx));
1459
+ }
1460
+
1461
+ return {
1462
+ c() {
1463
+ div = element("div");
1464
+
1465
+ for (let i = 0; i < each_blocks.length; i += 1) {
1466
+ each_blocks[i].c();
1467
+ }
1468
+
1469
+ attr(div, "class", "meta-links");
1470
+ },
1471
+ m(target, anchor) {
1472
+ insert(target, div, anchor);
1473
+
1474
+ for (let i = 0; i < each_blocks.length; i += 1) {
1475
+ each_blocks[i].m(div, null);
1476
+ }
1477
+ },
1478
+ p(ctx, dirty) {
1479
+ if (dirty & /*metaLinks*/ 16) {
1480
+ each_value = /*metaLinks*/ ctx[4];
1481
+ each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div, destroy_block, create_each_block$2, null, get_each_context$2);
1482
+ }
1483
+ },
1484
+ d(detaching) {
1485
+ if (detaching) detach(div);
1486
+
1487
+ for (let i = 0; i < each_blocks.length; i += 1) {
1488
+ each_blocks[i].d();
1489
+ }
1490
+ }
1491
+ };
1492
+ }
1493
+
1494
+ // (108:12) {#each metaLinks as metalink (metalink.title) }
1495
+ function create_each_block$2(key_1, ctx) {
1496
+ let a;
1497
+ let t_value = /*metalink*/ ctx[16].title + "";
1498
+ let t;
1499
+ let a_href_value;
1500
+
1501
+ return {
1502
+ key: key_1,
1503
+ first: null,
1504
+ c() {
1505
+ a = element("a");
1506
+ t = text(t_value);
1507
+ attr(a, "href", a_href_value = /*metalink*/ ctx[16].url);
1508
+ attr(a, "class", "meta-link");
1509
+ this.first = a;
1510
+ },
1511
+ m(target, anchor) {
1512
+ insert(target, a, anchor);
1513
+ append(a, t);
1514
+ },
1515
+ p(new_ctx, dirty) {
1516
+ ctx = new_ctx;
1517
+ if (dirty & /*metaLinks*/ 16 && t_value !== (t_value = /*metalink*/ ctx[16].title + "")) set_data(t, t_value);
1518
+
1519
+ if (dirty & /*metaLinks*/ 16 && a_href_value !== (a_href_value = /*metalink*/ ctx[16].url)) {
1520
+ attr(a, "href", a_href_value);
1521
+ }
1522
+ },
1523
+ d(detaching) {
1524
+ if (detaching) detach(a);
1525
+ }
1526
+ };
1527
+ }
1528
+
1529
+ function create_fragment$y(ctx) {
1530
+ let div3;
1531
+ let center;
1532
+ let div2;
1533
+ let slot;
1534
+ let t0;
1535
+ let t1;
1536
+ let div1;
1537
+ let t2;
1538
+ let div0;
1539
+ let a0;
1540
+ let t3;
1541
+ let t4;
1542
+ let t5;
1543
+ let a1;
1544
+ let img;
1545
+ let img_src_value;
1546
+ let t6;
1547
+ let div4;
1548
+ let if_block0 = (/*navigationSections*/ ctx[6].length || /*navigationLinks*/ ctx[5].length) && create_if_block_1$c(ctx);
1549
+ let if_block1 = /*metaLinks*/ ctx[4].length && create_if_block$g(ctx);
1550
+
1551
+ return {
1552
+ c() {
1553
+ div3 = element("div");
1554
+ center = element("center");
1555
+ div2 = element("div");
1556
+ slot = element("slot");
1557
+ t0 = space();
1558
+ if (if_block0) if_block0.c();
1559
+ t1 = space();
1560
+ div1 = element("div");
1561
+ if (if_block1) if_block1.c();
1562
+ t2 = space();
1563
+ div0 = element("div");
1564
+ a0 = element("a");
1565
+ t3 = text("© ");
1566
+ t4 = text(/*copyrighttext*/ ctx[3]);
1567
+ t5 = space();
1568
+ a1 = element("a");
1569
+ img = element("img");
1570
+ t6 = space();
1571
+ div4 = element("div");
1572
+ this.c = noop;
1573
+ attr(a0, "href", /*copyrighturl*/ ctx[0]);
1574
+ attr(a0, "class", "goa-copyright");
1575
+ attr(img, "alt", "GoA Logo");
1576
+ attr(img, "class", "logo");
1577
+ if (!src_url_equal(img.src, img_src_value = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='149.351' height='42' viewBox='0 0 149.351 42'%3E%3Cdefs%3E%3Cstyle%3E.a%7Bfill:none;%7D.b%7Bclip-path:url(%23a);%7D.c%7Bfill:%2300aad2;%7D.d%7Bfill:%235f6a72;%7D%3C/style%3E%3CclipPath id='a'%3E%3Crect class='a' width='149.351' height='42'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg class='b'%3E%3Crect class='c' width='13.555' height='13.555' transform='translate(135.796 21.524)'/%3E%3Cpath class='d' d='M63.082,33.088c-1.383.138-2.835.277-4.357.346.553-4.357,2.835-10.373,5.671-9.405,1.66.553.761,5.671-1.314,9.059m-3.527,2.974a3.761,3.761,0,0,1-1.245,0,.851.851,0,0,0,.346-.692v-.553c.761,0,1.936-.138,3.389-.277a4.327,4.327,0,0,1-2.49,1.521M76.844,25.688c1.8-1.66,2.7-1.521,2.9-1.106.484.968-1.591,4.357-5.671,6.224a10.328,10.328,0,0,1,2.766-5.118m66.736,1.66c-.207-3.389-3.181-3.942-3.6-2.974-.138.346,1.106.207,1.106,2.628,0,3.942-4.011,9.129-9.129,9.129-5.532,0-6.985-4.357-7.261-6.432-.207-1.452.138-3.458-2.351-3.181-1.729.207-3.25,3.527-5.463,6.362-1.867,2.42-2.7,2.213-2.282.138.553-2.628,2.7-8.714,5.187-9.129,1.176-.207,1.591,1.8,2.075.553s.069-4.011-2.559-4.011c-1.8,0-3.942,1.936-5.74,4.08-1.521,1.936-9.336,13.416-12.656,10.927-1.521-1.176-1.383-5.878-.415-11.411,3.873-1.521,7.123-1.037,8.921-.138.9.415,1.037.346.622-.622-.553-1.452-3.665-3.734-8.575-2.7-.138,0-.207.069-.346.069.415-1.8.83-3.665,1.383-5.463.484-1.66,1.8-4.5-1.729-4.979-1.106-.207-.622.346-1.037,1.867-.692,2.766-1.521,6.362-2.144,10.028a19.745,19.745,0,0,0-7.538,8.091,38.59,38.59,0,0,0,.9-4.772,1.589,1.589,0,0,0-1.245-1.729c-.761-.207-1.729.138-2.628,1.452-2.144,3.043-4.841,7.815-8.99,9.82-2.974,1.452-4.288,0-4.357-2.282a9.869,9.869,0,0,0,1.521-.553c5.394-2.351,7.192-5.947,5.878-8.16-1.314-2.075-4.979-1.452-7.953,1.66a11.175,11.175,0,0,0-2.7,6.5c-1.245.277-2.628.484-4.219.692,2.49-4.08,2.282-9.613-1.383-10.581-4.288-1.106-6.432,3.043-7.331,6.5.346-3.873.9-7.745,1.591-11.549.346-1.66,1.452-4.5-2.075-4.979-1.106-.207-.968.346-.9,1.867.138,2.075-2.144,14.454-.968,19.848-1.521.484-2.144,1.66-.207,2.835,1.383.83,4.357,1.106,7.331-.346a9.3,9.3,0,0,0,2.766-2.144c1.8-.207,3.665-.553,5.394-.83.277,2.42,1.867,4.219,5.463,3.873,5.118-.484,9.682-6.777,11.411-9.82-.346,3.25-2.42,10.373,1.176,10.028,1.383-.138.83-.346.9-1.591.346-4.288,3.873-7.953,7.4-10.166-.622,5.256-.415,9.958,2.006,11.411,4.426,2.766,10.581-4.5,14.039-8.921-1.729,3.942-2.7,8.921-.138,9.682,3.043.9,5.463-4.219,8.3-8.091.346,2.766,2.213,7.607,9.682,7.607,8.022-.069,13.071-4.91,12.863-10.1m-108.3,8.645A66.439,66.439,0,0,1,27.4,32.534a59.168,59.168,0,0,0,6.777-2.974,54.453,54.453,0,0,0,1.106,6.432m20.4,3.873c-.069-.207-.622.069-1.106,0-1.452-.207-3.389-2.213-3.942-5.463-1.037-5.878-.415-11.687,1.314-20.332.346-1.66,1.452-4.5-2.075-5.048-1.106-.138-.553.415-.83,1.867C47.66,17.32,42.4,21.954,37.149,25.066,36.6,17.735,36.8,9.505,38.186,4.526c1.176-4.219,2.559-3.458.83-4.357s-3.734.277-5.325,3.458S24.839,23.89,13.221,35.439C7.273,41.317,1.879,38.274.842,37.375c-.9-.761-1.176.415-.138,1.591,4.772,5.256,11.826,2.282,14.384-.277,7.054-7.054,15.283-22.268,18.6-28.7a98.251,98.251,0,0,0,.277,16.874,50.129,50.129,0,0,1-8.3,3.181c-1.66.415-2.7,1.106-2.7,1.867s1.106,1.521,2.7,2.282c2.835,1.383,11.2,5.256,13.209,6.5,1.729,1.037,2.628.207,3.112-.9.692-1.452-1.176-2.282-2.974-2.766a60.545,60.545,0,0,1-1.66-9.267c4.219-2.628,8.437-6.086,10.788-10.443C47.522,20.916,46,33.3,49.873,38.482a5.451,5.451,0,0,0,4.564,2.213c.968-.069,1.383-.692,1.245-.83' transform='translate(-0.038 0.124)'/%3E%3C/g%3E%3C/svg%3E")) attr(img, "src", img_src_value);
1578
+ attr(a1, "href", /*appurl*/ ctx[1]);
1579
+ attr(a1, "title", /*title*/ ctx[2]);
1580
+ attr(div0, "class", "logo-and-copyright");
1581
+ toggle_class(div0, "logo-and-copyright-with-links", /*metaLinks*/ ctx[4].length || /*navigationLinks*/ ctx[5].length || /*navigationSections*/ ctx[6].length);
1582
+ toggle_class(div1, "meta-links-logo-and-copyright", /*metaLinks*/ ctx[4].length);
1583
+ attr(div2, "class", "footer");
1584
+ toggle_class(div2, "default-footer", /*isDefaultFooter*/ ctx[12]);
1585
+ toggle_class(div2, "meta-links-only-footer", /*isMetaLinksOnlyFooter*/ ctx[11]);
1586
+ toggle_class(div2, "navigation-links-only-footer", /*isNavigationLinksOnlyFooter*/ ctx[10]);
1587
+ toggle_class(div2, "navigation-sections-only-footer", /*isNavigationSectionsOnlyFooter*/ ctx[9]);
1588
+ toggle_class(div2, "meta-and-navigation-links-only-footer", /*isMetaAndNavigationLinksFooter*/ ctx[8]);
1589
+ toggle_class(div2, "meta-and-navigation-sections-only-footer", /*isMetaAndNavigationSectionsFooter*/ ctx[7]);
1590
+ attr(div3, "class", "app-footer-container");
1591
+ attr(div4, "class", "brand");
1592
+ },
1593
+ m(target, anchor) {
1594
+ insert(target, div3, anchor);
1595
+ append(div3, center);
1596
+ append(center, div2);
1597
+ append(div2, slot);
1598
+ append(div2, t0);
1599
+ if (if_block0) if_block0.m(div2, null);
1600
+ append(div2, t1);
1601
+ append(div2, div1);
1602
+ if (if_block1) if_block1.m(div1, null);
1603
+ append(div1, t2);
1604
+ append(div1, div0);
1605
+ append(div0, a0);
1606
+ append(a0, t3);
1607
+ append(a0, t4);
1608
+ append(div0, t5);
1609
+ append(div0, a1);
1610
+ append(a1, img);
1611
+ insert(target, t6, anchor);
1612
+ insert(target, div4, anchor);
1613
+ },
1614
+ p(ctx, [dirty]) {
1615
+ if (/*navigationSections*/ ctx[6].length || /*navigationLinks*/ ctx[5].length) {
1616
+ if (if_block0) {
1617
+ if_block0.p(ctx, dirty);
1618
+ } else {
1619
+ if_block0 = create_if_block_1$c(ctx);
1620
+ if_block0.c();
1621
+ if_block0.m(div2, t1);
1622
+ }
1623
+ } else if (if_block0) {
1624
+ if_block0.d(1);
1625
+ if_block0 = null;
1626
+ }
1627
+
1628
+ if (/*metaLinks*/ ctx[4].length) {
1629
+ if (if_block1) {
1630
+ if_block1.p(ctx, dirty);
1631
+ } else {
1632
+ if_block1 = create_if_block$g(ctx);
1633
+ if_block1.c();
1634
+ if_block1.m(div1, t2);
1635
+ }
1636
+ } else if (if_block1) {
1637
+ if_block1.d(1);
1638
+ if_block1 = null;
1639
+ }
1640
+
1641
+ if (dirty & /*copyrighttext*/ 8) set_data(t4, /*copyrighttext*/ ctx[3]);
1642
+
1643
+ if (dirty & /*copyrighturl*/ 1) {
1644
+ attr(a0, "href", /*copyrighturl*/ ctx[0]);
1645
+ }
1646
+
1647
+ if (dirty & /*appurl*/ 2) {
1648
+ attr(a1, "href", /*appurl*/ ctx[1]);
1649
+ }
1650
+
1651
+ if (dirty & /*title*/ 4) {
1652
+ attr(a1, "title", /*title*/ ctx[2]);
1653
+ }
1654
+
1655
+ if (dirty & /*metaLinks, navigationLinks, navigationSections*/ 112) {
1656
+ toggle_class(div0, "logo-and-copyright-with-links", /*metaLinks*/ ctx[4].length || /*navigationLinks*/ ctx[5].length || /*navigationSections*/ ctx[6].length);
1657
+ }
1658
+
1659
+ if (dirty & /*metaLinks*/ 16) {
1660
+ toggle_class(div1, "meta-links-logo-and-copyright", /*metaLinks*/ ctx[4].length);
1661
+ }
1662
+
1663
+ if (dirty & /*isDefaultFooter*/ 4096) {
1664
+ toggle_class(div2, "default-footer", /*isDefaultFooter*/ ctx[12]);
1665
+ }
1666
+
1667
+ if (dirty & /*isMetaLinksOnlyFooter*/ 2048) {
1668
+ toggle_class(div2, "meta-links-only-footer", /*isMetaLinksOnlyFooter*/ ctx[11]);
1669
+ }
1670
+
1671
+ if (dirty & /*isNavigationLinksOnlyFooter*/ 1024) {
1672
+ toggle_class(div2, "navigation-links-only-footer", /*isNavigationLinksOnlyFooter*/ ctx[10]);
1673
+ }
1674
+
1675
+ if (dirty & /*isNavigationSectionsOnlyFooter*/ 512) {
1676
+ toggle_class(div2, "navigation-sections-only-footer", /*isNavigationSectionsOnlyFooter*/ ctx[9]);
1677
+ }
1678
+
1679
+ if (dirty & /*isMetaAndNavigationLinksFooter*/ 256) {
1680
+ toggle_class(div2, "meta-and-navigation-links-only-footer", /*isMetaAndNavigationLinksFooter*/ ctx[8]);
1681
+ }
1682
+
1683
+ if (dirty & /*isMetaAndNavigationSectionsFooter*/ 128) {
1684
+ toggle_class(div2, "meta-and-navigation-sections-only-footer", /*isMetaAndNavigationSectionsFooter*/ ctx[7]);
1685
+ }
1686
+ },
1687
+ i: noop,
1688
+ o: noop,
1689
+ d(detaching) {
1690
+ if (detaching) detach(div3);
1691
+ if (if_block0) if_block0.d();
1692
+ if (if_block1) if_block1.d();
1693
+ if (detaching) detach(t6);
1694
+ if (detaching) detach(div4);
1695
+ }
1696
+ };
1697
+ }
1698
+
1699
+ function instance$u($$self, $$props, $$invalidate) {
1700
+ let isDefaultFooter;
1701
+ let isMetaLinksOnlyFooter;
1702
+ let isNavigationLinksOnlyFooter;
1703
+ let isNavigationSectionsOnlyFooter;
1704
+ let isMetaAndNavigationLinksFooter;
1705
+ let isMetaAndNavigationSectionsFooter;
1706
+ let { id = "goa-app-footer-id" } = $$props;
1707
+ let { copyrighturl = "#" } = $$props;
1708
+ let { appurl = "#" } = $$props;
1709
+ let { title = "" } = $$props;
1710
+ let { copyrighttext = "2021 Government of Alberta" } = $$props;
1711
+ let ctx;
1712
+ let metaLinks = [];
1713
+ let navigationLinks = [];
1714
+ let navigationSections = [];
1715
+
1716
+ function AppendNavigationLinkWithSection(message) {
1717
+ let otherNavigationSections = navigationSections.filter(navigSection => navigSection.name !== message.section);
1718
+ let existingNavigationSection = navigationSections.find(navigSection => navigSection.name === message.section);
1719
+
1720
+ if (existingNavigationSection) {
1721
+ $$invalidate(6, navigationSections = [
1722
+ ...otherNavigationSections,
1723
+ {
1724
+ name: message.section,
1725
+ links: [
1726
+ ...existingNavigationSection.links,
1727
+ { title: message.title, url: message.url }
1728
+ ]
1729
+ }
1730
+ ]);
1731
+ } else {
1732
+ $$invalidate(6, navigationSections = [
1733
+ ...otherNavigationSections,
1734
+ {
1735
+ name: message.section,
1736
+ links: [{ title: message.title, url: message.url }]
1737
+ }
1738
+ ]);
1739
+ }
1740
+ }
1741
+
1742
+ onMount(async () => {
1743
+ ctx = createContext(id);
1744
+
1745
+ ctx.subscribe(state => {
1746
+ switch (state === null || state === void 0 ? void 0 : state.type) {
1747
+ case META_LINK:
1748
+ {
1749
+ const message = state;
1750
+ $$invalidate(4, metaLinks = [...metaLinks, { title: message.title, url: message.url }]);
1751
+ break;
1752
+ }
1753
+ case NAVIGATION_LINK:
1754
+ {
1755
+ const message = state;
1756
+
1757
+ if (message.section) {
1758
+ AppendNavigationLinkWithSection(message);
1759
+ } else {
1760
+ $$invalidate(5, navigationLinks = [...navigationLinks, { title: message.title, url: message.url }]);
1761
+ }
1762
+
1763
+ break;
1764
+ }
1765
+ }
1766
+ });
1767
+ });
1768
+
1769
+ onDestroy(() => {
1770
+ deleteContext(id);
1771
+ });
1772
+
1773
+ $$self.$$set = $$props => {
1774
+ if ('id' in $$props) $$invalidate(13, id = $$props.id);
1775
+ if ('copyrighturl' in $$props) $$invalidate(0, copyrighturl = $$props.copyrighturl);
1776
+ if ('appurl' in $$props) $$invalidate(1, appurl = $$props.appurl);
1777
+ if ('title' in $$props) $$invalidate(2, title = $$props.title);
1778
+ if ('copyrighttext' in $$props) $$invalidate(3, copyrighttext = $$props.copyrighttext);
1779
+ };
1780
+
1781
+ $$self.$$.update = () => {
1782
+ if ($$self.$$.dirty & /*metaLinks, navigationLinks, navigationSections*/ 112) {
1783
+ $$invalidate(12, isDefaultFooter = !metaLinks.length && !navigationLinks.length && !navigationSections.length);
1784
+ }
1785
+
1786
+ if ($$self.$$.dirty & /*metaLinks, navigationLinks, navigationSections*/ 112) {
1787
+ $$invalidate(11, isMetaLinksOnlyFooter = metaLinks.length && !navigationLinks.length && !navigationSections.length);
1788
+ }
1789
+
1790
+ if ($$self.$$.dirty & /*metaLinks, navigationLinks, navigationSections*/ 112) {
1791
+ $$invalidate(10, isNavigationLinksOnlyFooter = !metaLinks.length && navigationLinks.length && !navigationSections.length);
1792
+ }
1793
+
1794
+ if ($$self.$$.dirty & /*metaLinks, navigationLinks, navigationSections*/ 112) {
1795
+ $$invalidate(9, isNavigationSectionsOnlyFooter = !metaLinks.length && !navigationLinks.length && navigationSections.length);
1796
+ }
1797
+
1798
+ if ($$self.$$.dirty & /*metaLinks, navigationLinks, navigationSections*/ 112) {
1799
+ $$invalidate(8, isMetaAndNavigationLinksFooter = metaLinks.length && navigationLinks.length && !navigationSections.length);
1800
+ }
1801
+
1802
+ if ($$self.$$.dirty & /*metaLinks, navigationLinks, navigationSections*/ 112) {
1803
+ $$invalidate(7, isMetaAndNavigationSectionsFooter = metaLinks.length && !navigationLinks.length && navigationSections.length);
1804
+ }
1805
+ };
1806
+
1807
+ return [
1808
+ copyrighturl,
1809
+ appurl,
1810
+ title,
1811
+ copyrighttext,
1812
+ metaLinks,
1813
+ navigationLinks,
1814
+ navigationSections,
1815
+ isMetaAndNavigationSectionsFooter,
1816
+ isMetaAndNavigationLinksFooter,
1817
+ isNavigationSectionsOnlyFooter,
1818
+ isNavigationLinksOnlyFooter,
1819
+ isMetaLinksOnlyFooter,
1820
+ isDefaultFooter,
1821
+ id
1822
+ ];
1823
+ }
1824
+
1825
+ class AppFooter extends SvelteElement {
1826
+ constructor(options) {
1827
+ super();
1828
+ this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.footer{max-width:60rem}.brand{height:1rem;background-color:var(--goa-color-brand)}.meta-links-logo-and-copyright{display:flex;flex-wrap:wrap;justify-content:space-between}.logo-and-copyright{display:flex;align-items:center;justify-content:space-between}.logo-and-copyright-with-links{align-items:flex-end;flex-direction:column-reverse}.meta-link{margin-top:3.5em;margin-right:1.75rem;color:var(--goa-color-text);font-size:var(--fs-base)}.logo{height:2.56rem;width:8.88rem}.app-footer-container{background-color:var(--color-gray-100)}.navigation-links,.meta-links,.navigation-section{text-align:start;display:flex;flex-flow:wrap}.navigation-section{flex-direction:column;flex:1 1 0;min-width:13.25rem}.navigation-section-name{font-size:var(--fs-xl);line-height:var(--lh-lg);font-weight:var(--fw-regular);margin-bottom:1.75rem;margin-top:1.75rem}.navigation-section-name-divider{width:75%;margin:0}.navigation-link{margin-top:1.75rem;margin-right:1.75rem;color:var(--goa-color-text);width:13.25rem;font-size:var(--fs-base)}.default-footer .logo-and-copyright{display:flex;align-items:center;justify-content:space-between}.meta-links-only-footer{padding-top:1.19em;padding-bottom:3.5em}.navigation-links-only-footer,.meta-and-navigation-links-only-footer,.meta-and-navigation-sections-only-footer,.navigation-sections-only-footer{padding-top:1.75rem;padding-bottom:3.5em}.meta-links-only-footer .meta-link{margin-top:2.34rem;margin-right:1.75rem;color:var(--goa-color-text)}.meta-and-navigation-links-only-footer .meta-link{margin-top:2.34rem;margin-right:1.75rem;color:var(--goa-color-text)}.meta-and-navigation-sections-only-footer .meta-link{margin-top:3.53rem;margin-right:1.75rem;color:var(--goa-color-text)}.default-footer .logo{margin-top:3.5rem;margin-bottom:3.5rem;display:block}.navigation-links-only-footer .logo,.meta-and-navigation-links-only-footer .logo,.meta-links-only-footer .logo{margin-top:1.75rem;margin-bottom:1.75rem}.navigation-sections-only-footer .logo,.meta-and-navigation-sections-only-footer .logo{margin-top:2.93rem;margin-bottom:1.75rem}.goa-copyright{margin-top:0;margin-bottom:0;font-size:var(--fs-base)}.navigation-links-divider{margin-top:1.75rem;margin-bottom:0}@media(max-width: 64rem){.logo{margin-top:2.125rem;margin-bottom:1.5rem}}@media(max-width: 59.9rem){.app-footer-container{padding-left:1rem;padding-right:1rem}}@media(max-width: 40rem){.logo-and-copyright{align-items:flex-start;flex-direction:column-reverse}.meta-links,.logo-and-copyright{flex:100%}.logo{width:7.8rem;height:2.25rem;margin-top:0;margin-bottom:0}.goa-copyright{font-size:var(--fs-sm)}.navigation-section-name{font-size:var(--fs-base);line-height:var(--lh-base);font-weight:var(--fw-bold);margin-bottom:1rem;margin-top:1.5rem}.navigation-link{min-width:40rem;margin-top:1.5rem;font-size:var(--fs-sm)}.meta-links-only-footer .meta-link,.meta-and-navigation-links-only-footer .meta-link,.meta-and-navigation-sections-only-footer .meta-link{margin-top:1.5rem;margin-right:1.25rem;margin-bottom:0;font-size:var(--fs-sm)}.default-footer,.meta-links-only-footer,.navigation-links-only-footer,.navigation-sections-only-footer,.meta-and-navigation-links-only-footer,.meta-and-navigation-sections-only-footer{padding-top:0.75rem;padding-bottom:2.25rem}.navigation-links-divider{margin-top:1.5rem;margin-bottom:0}.default-footer .logo{margin-top:1.5rem;margin-bottom:1.5rem}.default-footer .logo-and-copyright{align-items:flex-start}}</style>`;
1829
+
1830
+ init(
1831
+ this,
1832
+ {
1833
+ target: this.shadowRoot,
1834
+ props: attribute_to_object(this.attributes),
1835
+ customElement: true
1836
+ },
1837
+ instance$u,
1838
+ create_fragment$y,
1839
+ safe_not_equal,
1840
+ {
1841
+ id: 13,
1842
+ copyrighturl: 0,
1843
+ appurl: 1,
1844
+ title: 2,
1845
+ copyrighttext: 3
1846
+ },
1847
+ null
1848
+ );
1849
+
1850
+ if (options) {
1851
+ if (options.target) {
1852
+ insert(options.target, this, options.anchor);
1853
+ }
1854
+
1855
+ if (options.props) {
1856
+ this.$set(options.props);
1857
+ flush();
1858
+ }
1859
+ }
1860
+ }
1861
+
1862
+ static get observedAttributes() {
1863
+ return ["id", "copyrighturl", "appurl", "title", "copyrighttext"];
1864
+ }
1865
+
1866
+ get id() {
1867
+ return this.$$.ctx[13];
1868
+ }
1869
+
1870
+ set id(id) {
1871
+ this.$$set({ id });
1872
+ flush();
1873
+ }
1874
+
1875
+ get copyrighturl() {
1876
+ return this.$$.ctx[0];
1877
+ }
1878
+
1879
+ set copyrighturl(copyrighturl) {
1880
+ this.$$set({ copyrighturl });
1881
+ flush();
1882
+ }
1883
+
1884
+ get appurl() {
1885
+ return this.$$.ctx[1];
1886
+ }
1887
+
1888
+ set appurl(appurl) {
1889
+ this.$$set({ appurl });
1890
+ flush();
1891
+ }
1892
+
1893
+ get title() {
1894
+ return this.$$.ctx[2];
1895
+ }
1896
+
1897
+ set title(title) {
1898
+ this.$$set({ title });
1899
+ flush();
1900
+ }
1901
+
1902
+ get copyrighttext() {
1903
+ return this.$$.ctx[3];
1904
+ }
1905
+
1906
+ set copyrighttext(copyrighttext) {
1907
+ this.$$set({ copyrighttext });
1908
+ flush();
1909
+ }
1910
+ }
1911
+
1912
+ customElements.define("goa-app-footer", AppFooter);
1913
+
1914
+ /* libs/web-components/src/components/app-footer/MetaLink.svelte generated by Svelte v3.44.3 */
1915
+
1916
+ function create_fragment$x(ctx) {
1917
+ return {
1918
+ c() {
1919
+ this.c = noop;
1920
+ },
1921
+ m: noop,
1922
+ p: noop,
1923
+ i: noop,
1924
+ o: noop,
1925
+ d: noop
1926
+ };
1927
+ }
1928
+
1929
+ function instance$t($$self, $$props, $$invalidate) {
1930
+ let { footerid = "goa-app-footer-id" } = $$props;
1931
+ let { title = "" } = $$props;
1932
+ let { url = "" } = $$props;
1933
+ let ctx;
1934
+
1935
+ onMount(async () => {
1936
+ ctx = await getContext(footerid);
1937
+ ctx.notify({ type: META_LINK, url, title });
1938
+ });
1939
+
1940
+ $$self.$$set = $$props => {
1941
+ if ('footerid' in $$props) $$invalidate(0, footerid = $$props.footerid);
1942
+ if ('title' in $$props) $$invalidate(1, title = $$props.title);
1943
+ if ('url' in $$props) $$invalidate(2, url = $$props.url);
1944
+ };
1945
+
1946
+ return [footerid, title, url];
1947
+ }
1948
+
1949
+ class MetaLink extends SvelteElement {
1950
+ constructor(options) {
1951
+ super();
1952
+
1953
+ init(
1954
+ this,
1955
+ {
1956
+ target: this.shadowRoot,
1957
+ props: attribute_to_object(this.attributes),
1958
+ customElement: true
1959
+ },
1960
+ instance$t,
1961
+ create_fragment$x,
1962
+ safe_not_equal,
1963
+ { footerid: 0, title: 1, url: 2 },
1964
+ null
1965
+ );
1966
+
1967
+ if (options) {
1968
+ if (options.target) {
1969
+ insert(options.target, this, options.anchor);
1970
+ }
1971
+
1972
+ if (options.props) {
1973
+ this.$set(options.props);
1974
+ flush();
1975
+ }
1976
+ }
1977
+ }
1978
+
1979
+ static get observedAttributes() {
1980
+ return ["footerid", "title", "url"];
1981
+ }
1982
+
1983
+ get footerid() {
1984
+ return this.$$.ctx[0];
1985
+ }
1986
+
1987
+ set footerid(footerid) {
1988
+ this.$$set({ footerid });
1989
+ flush();
1990
+ }
1991
+
1992
+ get title() {
1993
+ return this.$$.ctx[1];
1994
+ }
1995
+
1996
+ set title(title) {
1997
+ this.$$set({ title });
1998
+ flush();
1999
+ }
2000
+
2001
+ get url() {
2002
+ return this.$$.ctx[2];
2003
+ }
2004
+
2005
+ set url(url) {
2006
+ this.$$set({ url });
2007
+ flush();
2008
+ }
2009
+ }
2010
+
2011
+ customElements.define("goa-meta-link", MetaLink);
2012
+
2013
+ /* libs/web-components/src/components/app-footer/NavigationLink.svelte generated by Svelte v3.44.3 */
2014
+
2015
+ function create_fragment$w(ctx) {
2016
+ return {
2017
+ c() {
2018
+ this.c = noop;
2019
+ },
2020
+ m: noop,
2021
+ p: noop,
2022
+ i: noop,
2023
+ o: noop,
2024
+ d: noop
2025
+ };
2026
+ }
2027
+
2028
+ function instance$s($$self, $$props, $$invalidate) {
2029
+ let { footerid = "goa-app-footer-id" } = $$props;
2030
+ let { title = "" } = $$props;
2031
+ let { url = "" } = $$props;
2032
+ let { section = "" } = $$props;
2033
+ let ctx;
2034
+
2035
+ onMount(async () => {
2036
+ ctx = await getContext(footerid);
2037
+
2038
+ ctx.notify({
2039
+ type: NAVIGATION_LINK,
2040
+ url,
2041
+ title,
2042
+ section
2043
+ });
2044
+ });
966
2045
 
967
2046
  $$self.$$set = $$props => {
968
- if ('url' in $$props) $$invalidate(0, url = $$props.url);
2047
+ if ('footerid' in $$props) $$invalidate(0, footerid = $$props.footerid);
969
2048
  if ('title' in $$props) $$invalidate(1, title = $$props.title);
970
- if ('testid' in $$props) $$invalidate(2, testid = $$props.testid);
2049
+ if ('url' in $$props) $$invalidate(2, url = $$props.url);
2050
+ if ('section' in $$props) $$invalidate(3, section = $$props.section);
971
2051
  };
972
2052
 
973
- return [url, title, testid];
2053
+ return [footerid, title, url, section];
974
2054
  }
975
2055
 
976
- class AppHeader extends SvelteElement {
2056
+ class NavigationLink extends SvelteElement {
977
2057
  constructor(options) {
978
2058
  super();
979
- this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.app-header{display:flex;align-items:center;justify-content:space-between;margin:0 auto;padding:1rem 0.5rem;border-bottom:1px solid var(--color-gray-100)}.app-link{display:flex;align-items:center;text-decoration:none;color:inherit}.title{margin-left:0.5rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.image-desktop{display:none}.image-mobile{display:block}@media(min-width: 768px){.image-desktop{display:block}.image-mobile{display:none}.title{margin-left:1.75rem}.image-desktop{display:block}.image-mobile{display:none}}</style>`;
980
2059
 
981
2060
  init(
982
2061
  this,
@@ -988,7 +2067,12 @@ class AppHeader extends SvelteElement {
988
2067
  instance$s,
989
2068
  create_fragment$w,
990
2069
  safe_not_equal,
991
- { url: 0, title: 1, testid: 2 },
2070
+ {
2071
+ footerid: 0,
2072
+ title: 1,
2073
+ url: 2,
2074
+ section: 3
2075
+ },
992
2076
  null
993
2077
  );
994
2078
 
@@ -1005,15 +2089,15 @@ class AppHeader extends SvelteElement {
1005
2089
  }
1006
2090
 
1007
2091
  static get observedAttributes() {
1008
- return ["url", "title", "testid"];
2092
+ return ["footerid", "title", "url", "section"];
1009
2093
  }
1010
2094
 
1011
- get url() {
2095
+ get footerid() {
1012
2096
  return this.$$.ctx[0];
1013
2097
  }
1014
2098
 
1015
- set url(url) {
1016
- this.$$set({ url });
2099
+ set footerid(footerid) {
2100
+ this.$$set({ footerid });
1017
2101
  flush();
1018
2102
  }
1019
2103
 
@@ -1026,17 +2110,26 @@ class AppHeader extends SvelteElement {
1026
2110
  flush();
1027
2111
  }
1028
2112
 
1029
- get testid() {
2113
+ get url() {
1030
2114
  return this.$$.ctx[2];
1031
2115
  }
1032
2116
 
1033
- set testid(testid) {
1034
- this.$$set({ testid });
2117
+ set url(url) {
2118
+ this.$$set({ url });
2119
+ flush();
2120
+ }
2121
+
2122
+ get section() {
2123
+ return this.$$.ctx[3];
2124
+ }
2125
+
2126
+ set section(section) {
2127
+ this.$$set({ section });
1035
2128
  flush();
1036
2129
  }
1037
2130
  }
1038
2131
 
1039
- customElements.define("goa-app-header", AppHeader);
2132
+ customElements.define("goa-navigation-link", NavigationLink);
1040
2133
 
1041
2134
  function toBoolean(value) {
1042
2135
  if (value === "false") {
@@ -1070,7 +2163,7 @@ function create_else_block$3(ctx) {
1070
2163
  }
1071
2164
 
1072
2165
  // (35:2) {#if showIcon}
1073
- function create_if_block_1$a(ctx) {
2166
+ function create_if_block_1$b(ctx) {
1074
2167
  let goa_icon;
1075
2168
 
1076
2169
  return {
@@ -1094,7 +2187,7 @@ function create_if_block_1$a(ctx) {
1094
2187
  }
1095
2188
 
1096
2189
  // (40:2) {#if content}
1097
- function create_if_block$e(ctx) {
2190
+ function create_if_block$f(ctx) {
1098
2191
  let div;
1099
2192
  let t;
1100
2193
 
@@ -1123,13 +2216,13 @@ function create_fragment$v(ctx) {
1123
2216
  let div_class_value;
1124
2217
 
1125
2218
  function select_block_type(ctx, dirty) {
1126
- if (/*showIcon*/ ctx[4]) return create_if_block_1$a;
2219
+ if (/*showIcon*/ ctx[4]) return create_if_block_1$b;
1127
2220
  return create_else_block$3;
1128
2221
  }
1129
2222
 
1130
2223
  let current_block_type = select_block_type(ctx);
1131
2224
  let if_block0 = current_block_type(ctx);
1132
- let if_block1 = /*content*/ ctx[2] && create_if_block$e(ctx);
2225
+ let if_block1 = /*content*/ ctx[2] && create_if_block$f(ctx);
1133
2226
 
1134
2227
  return {
1135
2228
  c() {
@@ -1166,7 +2259,7 @@ function create_fragment$v(ctx) {
1166
2259
  if (if_block1) {
1167
2260
  if_block1.p(ctx, dirty);
1168
2261
  } else {
1169
- if_block1 = create_if_block$e(ctx);
2262
+ if_block1 = create_if_block$f(ctx);
1170
2263
  if_block1.c();
1171
2264
  if_block1.m(div, null);
1172
2265
  }
@@ -1316,8 +2409,8 @@ function create_else_block$2(ctx) {
1316
2409
  let slot;
1317
2410
  let t1;
1318
2411
  let if_block1_anchor;
1319
- let if_block0 = /*leadingicon*/ ctx[4] && create_if_block_2$5(ctx);
1320
- let if_block1 = /*trailingicon*/ ctx[5] && create_if_block_1$9(ctx);
2412
+ let if_block0 = /*leadingicon*/ ctx[4] && create_if_block_2$6(ctx);
2413
+ let if_block1 = /*trailingicon*/ ctx[5] && create_if_block_1$a(ctx);
1321
2414
 
1322
2415
  return {
1323
2416
  c() {
@@ -1341,7 +2434,7 @@ function create_else_block$2(ctx) {
1341
2434
  if (if_block0) {
1342
2435
  if_block0.p(ctx, dirty);
1343
2436
  } else {
1344
- if_block0 = create_if_block_2$5(ctx);
2437
+ if_block0 = create_if_block_2$6(ctx);
1345
2438
  if_block0.c();
1346
2439
  if_block0.m(t0.parentNode, t0);
1347
2440
  }
@@ -1354,7 +2447,7 @@ function create_else_block$2(ctx) {
1354
2447
  if (if_block1) {
1355
2448
  if_block1.p(ctx, dirty);
1356
2449
  } else {
1357
- if_block1 = create_if_block_1$9(ctx);
2450
+ if_block1 = create_if_block_1$a(ctx);
1358
2451
  if_block1.c();
1359
2452
  if_block1.m(if_block1_anchor.parentNode, if_block1_anchor);
1360
2453
  }
@@ -1375,7 +2468,7 @@ function create_else_block$2(ctx) {
1375
2468
  }
1376
2469
 
1377
2470
  // (33:2) {#if type === "get-started"}
1378
- function create_if_block$d(ctx) {
2471
+ function create_if_block$e(ctx) {
1379
2472
  let slot;
1380
2473
  let t;
1381
2474
  let goa_icon;
@@ -1403,7 +2496,7 @@ function create_if_block$d(ctx) {
1403
2496
  }
1404
2497
 
1405
2498
  // (37:4) {#if leadingicon}
1406
- function create_if_block_2$5(ctx) {
2499
+ function create_if_block_2$6(ctx) {
1407
2500
  let goa_icon;
1408
2501
 
1409
2502
  return {
@@ -1427,7 +2520,7 @@ function create_if_block_2$5(ctx) {
1427
2520
  }
1428
2521
 
1429
2522
  // (41:4) {#if trailingicon}
1430
- function create_if_block_1$9(ctx) {
2523
+ function create_if_block_1$a(ctx) {
1431
2524
  let goa_icon;
1432
2525
 
1433
2526
  return {
@@ -1457,7 +2550,7 @@ function create_fragment$u(ctx) {
1457
2550
  let dispose;
1458
2551
 
1459
2552
  function select_block_type(ctx, dirty) {
1460
- if (/*type*/ ctx[0] === "get-started") return create_if_block$d;
2553
+ if (/*type*/ ctx[0] === "get-started") return create_if_block$e;
1461
2554
  return create_else_block$2;
1462
2555
  }
1463
2556
 
@@ -2358,7 +3451,7 @@ customElements.define("goa-card-image", CardImage);
2358
3451
 
2359
3452
  /* libs/web-components/src/components/checkbox/Checkbox.svelte generated by Svelte v3.44.3 */
2360
3453
 
2361
- function create_if_block_1$8(ctx) {
3454
+ function create_if_block_1$9(ctx) {
2362
3455
  let svg;
2363
3456
  let path;
2364
3457
 
@@ -2383,7 +3476,7 @@ function create_if_block_1$8(ctx) {
2383
3476
  }
2384
3477
 
2385
3478
  // (50:4) {#if isIndeterminate}
2386
- function create_if_block$c(ctx) {
3479
+ function create_if_block$d(ctx) {
2387
3480
  let svg;
2388
3481
  let rect;
2389
3482
 
@@ -2422,8 +3515,8 @@ function create_fragment$m(ctx) {
2422
3515
  let dispose;
2423
3516
 
2424
3517
  function select_block_type(ctx, dirty) {
2425
- if (/*isIndeterminate*/ ctx[5]) return create_if_block$c;
2426
- if (/*isChecked*/ ctx[4]) return create_if_block_1$8;
3518
+ if (/*isIndeterminate*/ ctx[5]) return create_if_block$d;
3519
+ if (/*isChecked*/ ctx[4]) return create_if_block_1$9;
2427
3520
  }
2428
3521
 
2429
3522
  let current_block_type = select_block_type(ctx);
@@ -2732,7 +3825,7 @@ customElements.define("goa-checkbox", Checkbox);
2732
3825
 
2733
3826
  /* libs/web-components/src/components/chip/Chip.svelte generated by Svelte v3.44.3 */
2734
3827
 
2735
- function create_if_block_1$7(ctx) {
3828
+ function create_if_block_1$8(ctx) {
2736
3829
  let goa_icon;
2737
3830
 
2738
3831
  return {
@@ -2756,11 +3849,12 @@ function create_if_block_1$7(ctx) {
2756
3849
  };
2757
3850
  }
2758
3851
 
2759
- // (26:2) {#if _deletable}
2760
- function create_if_block$b(ctx) {
3852
+ // (40:2) {#if _deletable}
3853
+ function create_if_block$c(ctx) {
2761
3854
  let goa_icon;
2762
- let mounted;
2763
- let dispose;
3855
+ let goa_icon_fillcolor_value;
3856
+ let goa_icon_hovercolor_value;
3857
+ let goa_icon_opacity_value;
2764
3858
 
2765
3859
  return {
2766
3860
  c() {
@@ -2768,23 +3862,40 @@ function create_if_block$b(ctx) {
2768
3862
  set_custom_element_data(goa_icon, "class", "delete-icon");
2769
3863
  set_custom_element_data(goa_icon, "size", "medium");
2770
3864
  set_custom_element_data(goa_icon, "theme", "filled");
2771
- set_custom_element_data(goa_icon, "fillcolor", "var(--color-gray-600)");
2772
- set_custom_element_data(goa_icon, "hovercolor", "var(--goa-color-interactive--hover)");
2773
3865
  set_custom_element_data(goa_icon, "type", "close-circle");
3866
+
3867
+ set_custom_element_data(goa_icon, "fillcolor", goa_icon_fillcolor_value = /*_error*/ ctx[4]
3868
+ ? "var(--goa-color-status-emergency)"
3869
+ : "var(--color-gray-600)");
3870
+
3871
+ set_custom_element_data(goa_icon, "hovercolor", goa_icon_hovercolor_value = /*_error*/ ctx[4]
3872
+ ? "var(--goa-color-status-emergency-dark)"
3873
+ : "var(--goa-color-interactive--hover)");
3874
+
3875
+ set_custom_element_data(goa_icon, "opacity", goa_icon_opacity_value = /*_error*/ ctx[4] ? /*_hovering*/ ctx[3] ? 1 : 0.5 : 1);
2774
3876
  },
2775
3877
  m(target, anchor) {
2776
3878
  insert(target, goa_icon, anchor);
3879
+ },
3880
+ p(ctx, dirty) {
3881
+ if (dirty & /*_error*/ 16 && goa_icon_fillcolor_value !== (goa_icon_fillcolor_value = /*_error*/ ctx[4]
3882
+ ? "var(--goa-color-status-emergency)"
3883
+ : "var(--color-gray-600)")) {
3884
+ set_custom_element_data(goa_icon, "fillcolor", goa_icon_fillcolor_value);
3885
+ }
2777
3886
 
2778
- if (!mounted) {
2779
- dispose = listen(goa_icon, "click", onDelete);
2780
- mounted = true;
3887
+ if (dirty & /*_error*/ 16 && goa_icon_hovercolor_value !== (goa_icon_hovercolor_value = /*_error*/ ctx[4]
3888
+ ? "var(--goa-color-status-emergency-dark)"
3889
+ : "var(--goa-color-interactive--hover)")) {
3890
+ set_custom_element_data(goa_icon, "hovercolor", goa_icon_hovercolor_value);
3891
+ }
3892
+
3893
+ if (dirty & /*_error, _hovering*/ 24 && goa_icon_opacity_value !== (goa_icon_opacity_value = /*_error*/ ctx[4] ? /*_hovering*/ ctx[3] ? 1 : 0.5 : 1)) {
3894
+ set_custom_element_data(goa_icon, "opacity", goa_icon_opacity_value);
2781
3895
  }
2782
3896
  },
2783
- p: noop,
2784
3897
  d(detaching) {
2785
3898
  if (detaching) detach(goa_icon);
2786
- mounted = false;
2787
- dispose();
2788
3899
  }
2789
3900
  };
2790
3901
  }
@@ -2794,8 +3905,10 @@ function create_fragment$l(ctx) {
2794
3905
  let t0;
2795
3906
  let t1;
2796
3907
  let t2;
2797
- let if_block0 = /*leadingicon*/ ctx[0] && create_if_block_1$7(ctx);
2798
- let if_block1 = /*_deletable*/ ctx[2] && create_if_block$b();
3908
+ let mounted;
3909
+ let dispose;
3910
+ let if_block0 = /*leadingicon*/ ctx[0] && create_if_block_1$8(ctx);
3911
+ let if_block1 = /*_deletable*/ ctx[5] && create_if_block$c(ctx);
2799
3912
 
2800
3913
  return {
2801
3914
  c() {
@@ -2806,8 +3919,11 @@ function create_fragment$l(ctx) {
2806
3919
  t2 = space();
2807
3920
  if (if_block1) if_block1.c();
2808
3921
  this.c = noop;
3922
+ attr(div, "data-testid", "chip");
2809
3923
  attr(div, "class", "chip");
2810
3924
  attr(div, "tabindex", "0");
3925
+ toggle_class(div, "deletable", /*_deletable*/ ctx[5]);
3926
+ toggle_class(div, "error", /*_error*/ ctx[4]);
2811
3927
  },
2812
3928
  m(target, anchor) {
2813
3929
  insert(target, div, anchor);
@@ -2816,13 +3932,26 @@ function create_fragment$l(ctx) {
2816
3932
  append(div, t1);
2817
3933
  append(div, t2);
2818
3934
  if (if_block1) if_block1.m(div, null);
3935
+ /*div_binding*/ ctx[9](div);
3936
+
3937
+ if (!mounted) {
3938
+ dispose = [
3939
+ listen(div, "click", /*click_handler*/ ctx[10]),
3940
+ listen(div, "mouseover", /*mouseover_handler*/ ctx[11]),
3941
+ listen(div, "mouseout", /*mouseout_handler*/ ctx[12]),
3942
+ listen(div, "focus", /*focus_handler*/ ctx[13]),
3943
+ listen(div, "blur", /*blur_handler*/ ctx[14])
3944
+ ];
3945
+
3946
+ mounted = true;
3947
+ }
2819
3948
  },
2820
3949
  p(ctx, [dirty]) {
2821
3950
  if (/*leadingicon*/ ctx[0]) {
2822
3951
  if (if_block0) {
2823
3952
  if_block0.p(ctx, dirty);
2824
3953
  } else {
2825
- if_block0 = create_if_block_1$7(ctx);
3954
+ if_block0 = create_if_block_1$8(ctx);
2826
3955
  if_block0.c();
2827
3956
  if_block0.m(div, t0);
2828
3957
  }
@@ -2833,11 +3962,11 @@ function create_fragment$l(ctx) {
2833
3962
 
2834
3963
  if (dirty & /*content*/ 2) set_data(t1, /*content*/ ctx[1]);
2835
3964
 
2836
- if (/*_deletable*/ ctx[2]) {
3965
+ if (/*_deletable*/ ctx[5]) {
2837
3966
  if (if_block1) {
2838
3967
  if_block1.p(ctx, dirty);
2839
3968
  } else {
2840
- if_block1 = create_if_block$b();
3969
+ if_block1 = create_if_block$c(ctx);
2841
3970
  if_block1.c();
2842
3971
  if_block1.m(div, null);
2843
3972
  }
@@ -2845,6 +3974,14 @@ function create_fragment$l(ctx) {
2845
3974
  if_block1.d(1);
2846
3975
  if_block1 = null;
2847
3976
  }
3977
+
3978
+ if (dirty & /*_deletable*/ 32) {
3979
+ toggle_class(div, "deletable", /*_deletable*/ ctx[5]);
3980
+ }
3981
+
3982
+ if (dirty & /*_error*/ 16) {
3983
+ toggle_class(div, "error", /*_error*/ ctx[4]);
3984
+ }
2848
3985
  },
2849
3986
  i: noop,
2850
3987
  o: noop,
@@ -2852,45 +3989,84 @@ function create_fragment$l(ctx) {
2852
3989
  if (detaching) detach(div);
2853
3990
  if (if_block0) if_block0.d();
2854
3991
  if (if_block1) if_block1.d();
3992
+ /*div_binding*/ ctx[9](null);
3993
+ mounted = false;
3994
+ run_all(dispose);
2855
3995
  }
2856
3996
  };
2857
3997
  }
2858
3998
 
2859
- function onDelete(e) {
2860
- this.dispatchEvent(new CustomEvent("_onDeleteIconClick", { composed: true, bubbles: true }));
2861
- e.stopPropagation();
2862
- }
2863
-
2864
3999
  function instance$k($$self, $$props, $$invalidate) {
2865
- let { leadingicon } = $$props;
2866
- let { error } = $$props;
2867
- let { deletable } = $$props;
4000
+ let { leadingicon = null } = $$props;
4001
+ let { error = "false" } = $$props;
4002
+ let { deletable = "false" } = $$props;
2868
4003
  let { content } = $$props;
4004
+ let el;
4005
+ let _hovering = false;
4006
+
4007
+ // booleans
4008
+ let _error;
2869
4009
 
2870
4010
  let _deletable;
2871
4011
 
4012
+ function onDelete(e) {
4013
+ el.dispatchEvent(new CustomEvent("_click", { composed: true, bubbles: true }));
4014
+ e.stopPropagation();
4015
+ }
4016
+
4017
+ function div_binding($$value) {
4018
+ binding_callbacks[$$value ? 'unshift' : 'push'](() => {
4019
+ el = $$value;
4020
+ $$invalidate(2, el);
4021
+ });
4022
+ }
4023
+
4024
+ const click_handler = e => _deletable && onDelete(e);
4025
+ const mouseover_handler = () => $$invalidate(3, _hovering = true);
4026
+ const mouseout_handler = () => $$invalidate(3, _hovering = false);
4027
+ const focus_handler = () => $$invalidate(3, _hovering = true);
4028
+ const blur_handler = () => $$invalidate(3, _hovering = false);
4029
+
2872
4030
  $$self.$$set = $$props => {
2873
4031
  if ('leadingicon' in $$props) $$invalidate(0, leadingicon = $$props.leadingicon);
2874
- if ('error' in $$props) $$invalidate(3, error = $$props.error);
2875
- if ('deletable' in $$props) $$invalidate(4, deletable = $$props.deletable);
4032
+ if ('error' in $$props) $$invalidate(7, error = $$props.error);
4033
+ if ('deletable' in $$props) $$invalidate(8, deletable = $$props.deletable);
2876
4034
  if ('content' in $$props) $$invalidate(1, content = $$props.content);
2877
4035
  };
2878
4036
 
2879
4037
  $$self.$$.update = () => {
2880
- if ($$self.$$.dirty & /*error*/ 8) ;
4038
+ if ($$self.$$.dirty & /*error*/ 128) {
4039
+ $$invalidate(4, _error = toBoolean(error));
4040
+ }
2881
4041
 
2882
- if ($$self.$$.dirty & /*deletable*/ 16) {
2883
- $$invalidate(2, _deletable = toBoolean(deletable));
4042
+ if ($$self.$$.dirty & /*deletable*/ 256) {
4043
+ $$invalidate(5, _deletable = toBoolean(deletable));
2884
4044
  }
2885
4045
  };
2886
4046
 
2887
- return [leadingicon, content, _deletable, error, deletable];
4047
+ return [
4048
+ leadingicon,
4049
+ content,
4050
+ el,
4051
+ _hovering,
4052
+ _error,
4053
+ _deletable,
4054
+ onDelete,
4055
+ error,
4056
+ deletable,
4057
+ div_binding,
4058
+ click_handler,
4059
+ mouseover_handler,
4060
+ mouseout_handler,
4061
+ focus_handler,
4062
+ blur_handler
4063
+ ];
2888
4064
  }
2889
4065
 
2890
4066
  class Chip extends SvelteElement {
2891
4067
  constructor(options) {
2892
4068
  super();
2893
- this.shadowRoot.innerHTML = `<style>.leading-icon{margin-left:-0.25rem}.chip{vertical-align:middle;align-items:center;background-color:var(--color-gray-100);border-radius:99px;box-sizing:border-box;color:var(--goa-color-text);display:inline-flex;flex-direction:row;font-size:var(--fs-sm);font-weight:var(--fw-regular);gap:0.25rem;height:2rem;justify-content:center;margin:0.25rem;padding:0 0.75rem}.chip:hover{background-color:var(--color-gray-200)}.chip:focus{outline:2px solid var(--goa-color-interactive--focus)}.delete-icon{cursor:pointer;margin-right:-0.25rem}</style>`;
4069
+ this.shadowRoot.innerHTML = `<style>.leading-icon{margin-left:-0.25rem}.chip{vertical-align:middle;align-items:center;background-color:var(--color-gray-100);border-radius:99px;box-sizing:border-box;color:var(--goa-color-text);display:inline-flex;flex-direction:row;font-size:var(--chip-font-size);font-weight:var(--fw-regular);gap:0.25rem;height:2rem;justify-content:center;margin:0.25rem;padding:0 0.75rem}.chip:hover{background-color:var(--color-gray-200)}.chip:focus{outline:2px solid var(--goa-color-interactive--focus)}.deletable{cursor:pointer}.delete-icon{margin-right:-0.25rem}.error,.error:hover{background-color:var(--goa-color-status-emergency-light)}</style>`;
2894
4070
 
2895
4071
  init(
2896
4072
  this,
@@ -2904,8 +4080,8 @@ class Chip extends SvelteElement {
2904
4080
  safe_not_equal,
2905
4081
  {
2906
4082
  leadingicon: 0,
2907
- error: 3,
2908
- deletable: 4,
4083
+ error: 7,
4084
+ deletable: 8,
2909
4085
  content: 1
2910
4086
  },
2911
4087
  null
@@ -2937,7 +4113,7 @@ class Chip extends SvelteElement {
2937
4113
  }
2938
4114
 
2939
4115
  get error() {
2940
- return this.$$.ctx[3];
4116
+ return this.$$.ctx[7];
2941
4117
  }
2942
4118
 
2943
4119
  set error(error) {
@@ -2946,7 +4122,7 @@ class Chip extends SvelteElement {
2946
4122
  }
2947
4123
 
2948
4124
  get deletable() {
2949
- return this.$$.ctx[4];
4125
+ return this.$$.ctx[8];
2950
4126
  }
2951
4127
 
2952
4128
  set deletable(deletable) {
@@ -3023,175 +4199,88 @@ function create_fragment$k(ctx) {
3023
4199
  }
3024
4200
  };
3025
4201
  }
3026
-
3027
- function instance$j($$self, $$props, $$invalidate) {
3028
- let { variant = 'default' } = $$props;
3029
- let { headingsize = 'large' } = $$props;
3030
-
3031
- $$self.$$set = $$props => {
3032
- if ('variant' in $$props) $$invalidate(0, variant = $$props.variant);
3033
- if ('headingsize' in $$props) $$invalidate(1, headingsize = $$props.headingsize);
3034
- };
3035
-
3036
- return [variant, headingsize];
3037
- }
3038
-
3039
- class Container extends SvelteElement {
3040
- constructor(options) {
3041
- super();
3042
- this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family);font-size:var(--fs-base)}.goa-container{margin-bottom:1rem;box-sizing:border-box}.goa-container *{box-sizing:border-box}header{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;font-weight:700;font-size:var(--fs-base);border-width:1px;border-style:solid;border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);padding-left:1.5rem;padding-right:1.5rem}.content{padding:1.5rem;border-bottom:1px solid var(--color-gray-200);border-left:1px solid var(--color-gray-200);border-right:1px solid var(--color-gray-200);border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius)}.goa-container--default header{background-color:var(--color-gray-100);border-color:var(--color-gray-200);color:var(--color-black)}.goa-container--primary header{background-color:var(--goa-color-brand);border-color:var(--goa-color-brand);color:var(--color-white)}.goa-container--info header{background-color:var(--goa-color-status-info);border-color:var(--goa-color-status-info);color:var(--color-white)}.goa-container--error header{background-color:var(--goa-color-status-emergency);border-color:var(--goa-color-status-emergency);color:var(--color-white)}.goa-container--success header{background-color:var(--goa-color-status-success);border-color:var(--goa-color-status-success);color:var(--color-white)}.goa-container--warning header{background-color:var(--goa-color-status-warning);border-color:var(--goa-color-status-warning);color:var(--color-white)}.heading--large{padding:0.5rem 1.5rem;max-height:3rem;min-height:1rem}.heading--large .title{line-height:2rem}.heading--small{height:0.5rem}.heading--none{display:none}.heading--none~.content{border-top:1px solid var(--color-gray-200);border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius)}.heading--small .title,.heading--small .actions{display:none}.actions{display:flex;align-items:center}</style>`;
3043
-
3044
- init(
3045
- this,
3046
- {
3047
- target: this.shadowRoot,
3048
- props: attribute_to_object(this.attributes),
3049
- customElement: true
3050
- },
3051
- instance$j,
3052
- create_fragment$k,
3053
- safe_not_equal,
3054
- { variant: 0, headingsize: 1 },
3055
- null
3056
- );
3057
-
3058
- if (options) {
3059
- if (options.target) {
3060
- insert(options.target, this, options.anchor);
3061
- }
3062
-
3063
- if (options.props) {
3064
- this.$set(options.props);
3065
- flush();
3066
- }
3067
- }
3068
- }
3069
-
3070
- static get observedAttributes() {
3071
- return ["variant", "headingsize"];
3072
- }
3073
-
3074
- get variant() {
3075
- return this.$$.ctx[0];
3076
- }
3077
-
3078
- set variant(variant) {
3079
- this.$$set({ variant });
3080
- flush();
3081
- }
3082
-
3083
- get headingsize() {
3084
- return this.$$.ctx[1];
3085
- }
3086
-
3087
- set headingsize(headingsize) {
3088
- this.$$set({ headingsize });
3089
- flush();
3090
- }
3091
- }
3092
-
3093
- customElements.define("goa-container", Container);
3094
-
3095
- const subscriber_queue = [];
3096
- /**
3097
- * Create a `Writable` store that allows both updating and reading by subscription.
3098
- * @param {*=}value initial value
3099
- * @param {StartStopNotifier=}start start and stop notifications for subscriptions
3100
- */
3101
- function writable(value, start = noop) {
3102
- let stop;
3103
- const subscribers = new Set();
3104
- function set(new_value) {
3105
- if (safe_not_equal(value, new_value)) {
3106
- value = new_value;
3107
- if (stop) { // store is ready
3108
- const run_queue = !subscriber_queue.length;
3109
- for (const subscriber of subscribers) {
3110
- subscriber[1]();
3111
- subscriber_queue.push(subscriber, value);
3112
- }
3113
- if (run_queue) {
3114
- for (let i = 0; i < subscriber_queue.length; i += 2) {
3115
- subscriber_queue[i][0](subscriber_queue[i + 1]);
3116
- }
3117
- subscriber_queue.length = 0;
3118
- }
3119
- }
3120
- }
3121
- }
3122
- function update(fn) {
3123
- set(fn(value));
3124
- }
3125
- function subscribe(run, invalidate = noop) {
3126
- const subscriber = [run, invalidate];
3127
- subscribers.add(subscriber);
3128
- if (subscribers.size === 1) {
3129
- stop = start(set) || noop;
3130
- }
3131
- run(value);
3132
- return () => {
3133
- subscribers.delete(subscriber);
3134
- if (subscribers.size === 0) {
3135
- stop();
3136
- stop = null;
3137
- }
3138
- };
3139
- }
3140
- return { set, update, subscribe };
3141
- }
3142
-
3143
- const stores = {};
3144
- class ContextStore {
3145
- constructor() {
3146
- this.store = writable();
3147
- }
3148
- subscribe(cb) {
3149
- this.store.subscribe((state) => {
3150
- cb(state);
3151
- });
3152
- }
3153
- notify(msg) {
3154
- this.store.update(() => msg);
3155
- }
3156
- }
3157
- function createContext(name) {
3158
- const ctx = new ContextStore();
3159
- stores[name] = ctx;
3160
- return ctx;
3161
- }
3162
- async function getContext(name) {
3163
- return await _getContext(name, 0);
3164
- }
3165
- async function _getContext(name, attempts) {
3166
- if (attempts > 10) {
3167
- throw new Error(`Could not find context ${name}`);
3168
- }
3169
- if (stores[name]) {
3170
- return stores[name];
3171
- }
3172
- await tick();
3173
- return _getContext(name, attempts + 1);
4202
+
4203
+ function instance$j($$self, $$props, $$invalidate) {
4204
+ let { variant = 'default' } = $$props;
4205
+ let { headingsize = 'large' } = $$props;
4206
+
4207
+ $$self.$$set = $$props => {
4208
+ if ('variant' in $$props) $$invalidate(0, variant = $$props.variant);
4209
+ if ('headingsize' in $$props) $$invalidate(1, headingsize = $$props.headingsize);
4210
+ };
4211
+
4212
+ return [variant, headingsize];
3174
4213
  }
3175
- function deleteContext(name) {
3176
- const store = stores[name];
3177
- if (!store)
3178
- return;
3179
- delete stores[name];
4214
+
4215
+ class Container extends SvelteElement {
4216
+ constructor(options) {
4217
+ super();
4218
+ this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family);font-size:var(--fs-base)}.goa-container{margin-bottom:1rem;box-sizing:border-box}.goa-container *{box-sizing:border-box}header{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;font-weight:700;font-size:var(--fs-base);border-width:1px;border-style:solid;border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);padding-left:1.5rem;padding-right:1.5rem}.content{padding:1.5rem;border-bottom:1px solid var(--color-gray-200);border-left:1px solid var(--color-gray-200);border-right:1px solid var(--color-gray-200);border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius)}.goa-container--default header{background-color:var(--color-gray-100);border-color:var(--color-gray-200);color:var(--color-black)}.goa-container--primary header{background-color:var(--goa-color-brand);border-color:var(--goa-color-brand);color:var(--color-white)}.goa-container--info header{background-color:var(--goa-color-status-info);border-color:var(--goa-color-status-info);color:var(--color-white)}.goa-container--error header{background-color:var(--goa-color-status-emergency);border-color:var(--goa-color-status-emergency);color:var(--color-white)}.goa-container--success header{background-color:var(--goa-color-status-success);border-color:var(--goa-color-status-success);color:var(--color-white)}.goa-container--warning header{background-color:var(--goa-color-status-warning);border-color:var(--goa-color-status-warning);color:var(--color-white)}.heading--large{padding:0.5rem 1.5rem;max-height:3rem;min-height:1rem}.heading--large .title{line-height:2rem}.heading--small{height:0.5rem}.heading--none{display:none}.heading--none~.content{border-top:1px solid var(--color-gray-200);border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius)}.heading--small .title,.heading--small .actions{display:none}.actions{display:flex;align-items:center}</style>`;
4219
+
4220
+ init(
4221
+ this,
4222
+ {
4223
+ target: this.shadowRoot,
4224
+ props: attribute_to_object(this.attributes),
4225
+ customElement: true
4226
+ },
4227
+ instance$j,
4228
+ create_fragment$k,
4229
+ safe_not_equal,
4230
+ { variant: 0, headingsize: 1 },
4231
+ null
4232
+ );
4233
+
4234
+ if (options) {
4235
+ if (options.target) {
4236
+ insert(options.target, this, options.anchor);
4237
+ }
4238
+
4239
+ if (options.props) {
4240
+ this.$set(options.props);
4241
+ flush();
4242
+ }
4243
+ }
4244
+ }
4245
+
4246
+ static get observedAttributes() {
4247
+ return ["variant", "headingsize"];
4248
+ }
4249
+
4250
+ get variant() {
4251
+ return this.$$.ctx[0];
4252
+ }
4253
+
4254
+ set variant(variant) {
4255
+ this.$$set({ variant });
4256
+ flush();
4257
+ }
4258
+
4259
+ get headingsize() {
4260
+ return this.$$.ctx[1];
4261
+ }
4262
+
4263
+ set headingsize(headingsize) {
4264
+ this.$$set({ headingsize });
4265
+ flush();
4266
+ }
3180
4267
  }
3181
4268
 
4269
+ customElements.define("goa-container", Container);
4270
+
3182
4271
  const BIND$1 = "bind";
3183
4272
 
3184
4273
  /* libs/web-components/src/components/dropdown/Dropdown.svelte generated by Svelte v3.44.3 */
3185
4274
 
3186
4275
  function get_each_context$1(ctx, list, i) {
3187
4276
  const child_ctx = ctx.slice();
3188
- child_ctx[29] = list[i];
3189
- child_ctx[31] = i;
4277
+ child_ctx[32] = list[i];
4278
+ child_ctx[34] = i;
3190
4279
  return child_ctx;
3191
4280
  }
3192
4281
 
3193
- // (137:2) {#if isMenuVisible}
3194
- function create_if_block$a(ctx) {
4282
+ // (144:2) {#if isMenuVisible}
4283
+ function create_if_block$b(ctx) {
3195
4284
  let div;
3196
4285
  let div_data_testid_value;
3197
4286
  let mounted;
@@ -3207,7 +4296,7 @@ function create_if_block$a(ctx) {
3207
4296
  insert(target, div, anchor);
3208
4297
 
3209
4298
  if (!mounted) {
3210
- dispose = listen(div, "click", /*closeMenu*/ ctx[15]);
4299
+ dispose = listen(div, "click", /*closeMenu*/ ctx[17]);
3211
4300
  mounted = true;
3212
4301
  }
3213
4302
  },
@@ -3224,10 +4313,10 @@ function create_if_block$a(ctx) {
3224
4313
  };
3225
4314
  }
3226
4315
 
3227
- // (171:4) {#each options as option, index (option.value)}
4316
+ // (179:4) {#each options as option, index (option.value)}
3228
4317
  function create_each_block$1(key_1, ctx) {
3229
4318
  let li;
3230
- let t0_value = /*option*/ ctx[29].label + "";
4319
+ let t0_value = /*option*/ ctx[32].label + "";
3231
4320
  let t0;
3232
4321
  let t1;
3233
4322
  let li_data_testid_value;
@@ -3237,7 +4326,7 @@ function create_each_block$1(key_1, ctx) {
3237
4326
  let dispose;
3238
4327
 
3239
4328
  function click_handler() {
3240
- return /*click_handler*/ ctx[18](/*option*/ ctx[29]);
4329
+ return /*click_handler*/ ctx[20](/*option*/ ctx[32]);
3241
4330
  }
3242
4331
 
3243
4332
  return {
@@ -3247,13 +4336,13 @@ function create_each_block$1(key_1, ctx) {
3247
4336
  li = element("li");
3248
4337
  t0 = text(t0_value);
3249
4338
  t1 = space();
3250
- attr(li, "data-testid", li_data_testid_value = `${/*option*/ ctx[29].value}-dropdown-item`);
3251
- attr(li, "data-index", li_data_index_value = /*index*/ ctx[31]);
4339
+ attr(li, "data-testid", li_data_testid_value = `${/*option*/ ctx[32].value}-dropdown-item`);
4340
+ attr(li, "data-index", li_data_index_value = /*index*/ ctx[34]);
3252
4341
  attr(li, "class", "goa-dropdown-option");
3253
4342
  attr(li, "style", li_style_value = `display: ${"block"}`);
3254
4343
  toggle_class(li, "goa-dropdown-option--disabled", false);
3255
- toggle_class(li, "goa-dropdown-option--tabbed", /*index*/ ctx[31] === /*highlightedIndex*/ ctx[10]);
3256
- toggle_class(li, "goa-dropdown-option--selected", /*option*/ ctx[29].value === /*value*/ ctx[0]);
4344
+ toggle_class(li, "goa-dropdown-option--tabbed", /*index*/ ctx[34] === /*highlightedIndex*/ ctx[11]);
4345
+ toggle_class(li, "goa-dropdown-option--selected", /*option*/ ctx[32].value === /*value*/ ctx[0]);
3257
4346
  this.first = li;
3258
4347
  },
3259
4348
  m(target, anchor) {
@@ -3268,22 +4357,22 @@ function create_each_block$1(key_1, ctx) {
3268
4357
  },
3269
4358
  p(new_ctx, dirty) {
3270
4359
  ctx = new_ctx;
3271
- if (dirty[0] & /*options*/ 128 && t0_value !== (t0_value = /*option*/ ctx[29].label + "")) set_data(t0, t0_value);
4360
+ if (dirty[0] & /*options*/ 256 && t0_value !== (t0_value = /*option*/ ctx[32].label + "")) set_data(t0, t0_value);
3272
4361
 
3273
- if (dirty[0] & /*options*/ 128 && li_data_testid_value !== (li_data_testid_value = `${/*option*/ ctx[29].value}-dropdown-item`)) {
4362
+ if (dirty[0] & /*options*/ 256 && li_data_testid_value !== (li_data_testid_value = `${/*option*/ ctx[32].value}-dropdown-item`)) {
3274
4363
  attr(li, "data-testid", li_data_testid_value);
3275
4364
  }
3276
4365
 
3277
- if (dirty[0] & /*options*/ 128 && li_data_index_value !== (li_data_index_value = /*index*/ ctx[31])) {
4366
+ if (dirty[0] & /*options*/ 256 && li_data_index_value !== (li_data_index_value = /*index*/ ctx[34])) {
3278
4367
  attr(li, "data-index", li_data_index_value);
3279
4368
  }
3280
4369
 
3281
- if (dirty[0] & /*options, highlightedIndex*/ 1152) {
3282
- toggle_class(li, "goa-dropdown-option--tabbed", /*index*/ ctx[31] === /*highlightedIndex*/ ctx[10]);
4370
+ if (dirty[0] & /*options, highlightedIndex*/ 2304) {
4371
+ toggle_class(li, "goa-dropdown-option--tabbed", /*index*/ ctx[34] === /*highlightedIndex*/ ctx[11]);
3283
4372
  }
3284
4373
 
3285
- if (dirty[0] & /*options, value*/ 129) {
3286
- toggle_class(li, "goa-dropdown-option--selected", /*option*/ ctx[29].value === /*value*/ ctx[0]);
4374
+ if (dirty[0] & /*options, value*/ 257) {
4375
+ toggle_class(li, "goa-dropdown-option--selected", /*option*/ ctx[32].value === /*value*/ ctx[0]);
3287
4376
  }
3288
4377
  },
3289
4378
  d(detaching) {
@@ -3299,6 +4388,7 @@ function create_fragment$j(ctx) {
3299
4388
  let t0;
3300
4389
  let div0;
3301
4390
  let goa_input;
4391
+ let goa_input_width_value;
3302
4392
  let goa_input_id_value;
3303
4393
  let div0_data_testid_value;
3304
4394
  let t1;
@@ -3310,9 +4400,9 @@ function create_fragment$j(ctx) {
3310
4400
  let ul_style_value;
3311
4401
  let mounted;
3312
4402
  let dispose;
3313
- let if_block = /*isMenuVisible*/ ctx[9] && create_if_block$a(ctx);
3314
- let each_value = /*options*/ ctx[7];
3315
- const get_key = ctx => /*option*/ ctx[29].value;
4403
+ let if_block = /*isMenuVisible*/ ctx[10] && create_if_block$b(ctx);
4404
+ let each_value = /*options*/ ctx[8];
4405
+ const get_key = ctx => /*option*/ ctx[32].value;
3316
4406
 
3317
4407
  for (let i = 0; i < each_value.length; i += 1) {
3318
4408
  let child_ctx = get_each_context$1(ctx, each_value, i);
@@ -3337,21 +4427,22 @@ function create_fragment$j(ctx) {
3337
4427
  }
3338
4428
 
3339
4429
  this.c = noop;
3340
- set_custom_element_data(goa_input, "error", /*isError*/ ctx[13]);
4430
+ set_custom_element_data(goa_input, "error", /*isError*/ ctx[15]);
3341
4431
  set_custom_element_data(goa_input, "disabled", /*disabled*/ ctx[5]);
3342
4432
  set_custom_element_data(goa_input, "leadingicon", /*leadingicon*/ ctx[2]);
3343
4433
  set_custom_element_data(goa_input, "placeholder", /*placeholder*/ ctx[4]);
4434
+ set_custom_element_data(goa_input, "width", goa_input_width_value = /*width*/ ctx[7] || /*computedWidth*/ ctx[12]);
3344
4435
  set_custom_element_data(goa_input, "id", goa_input_id_value = `${/*name*/ ctx[1]}-dropdown-input`);
3345
4436
  set_custom_element_data(goa_input, "name", "search");
3346
4437
  set_custom_element_data(goa_input, "readonly", "");
3347
4438
  set_custom_element_data(goa_input, "trailingicon", "chevron-down");
3348
4439
  set_custom_element_data(goa_input, "type", "text");
3349
- set_custom_element_data(goa_input, "value", /*selectedLabel*/ ctx[8]);
4440
+ set_custom_element_data(goa_input, "value", /*selectedLabel*/ ctx[9]);
3350
4441
  attr(div0, "data-testid", div0_data_testid_value = `${/*name*/ ctx[1]}-dropdown`);
3351
4442
  attr(ul, "tabindex", "0");
3352
4443
  attr(ul, "class", "goa-dropdown-list");
3353
4444
  attr(ul, "style", ul_style_value = `overflow-y: auto; max-height: ${/*maxheight*/ ctx[3]}px`);
3354
- toggle_class(ul, "dropdown-active", /*isMenuVisible*/ ctx[9]);
4445
+ toggle_class(ul, "dropdown-active", /*isMenuVisible*/ ctx[10]);
3355
4446
  attr(div1, "data-testid", /*testid*/ ctx[6]);
3356
4447
  attr(div1, "class", "goa-dropdown-box");
3357
4448
  },
@@ -3370,20 +4461,20 @@ function create_fragment$j(ctx) {
3370
4461
  each_blocks[i].m(ul, null);
3371
4462
  }
3372
4463
 
3373
- /*ul_binding*/ ctx[19](ul);
3374
- /*div1_binding*/ ctx[20](div1);
4464
+ /*ul_binding*/ ctx[21](ul);
4465
+ /*div1_binding*/ ctx[22](div1);
3375
4466
 
3376
4467
  if (!mounted) {
3377
- dispose = listen(goa_input, "click", /*showMenu*/ ctx[14]);
4468
+ dispose = listen(goa_input, "click", /*showMenu*/ ctx[16]);
3378
4469
  mounted = true;
3379
4470
  }
3380
4471
  },
3381
4472
  p(ctx, dirty) {
3382
- if (/*isMenuVisible*/ ctx[9]) {
4473
+ if (/*isMenuVisible*/ ctx[10]) {
3383
4474
  if (if_block) {
3384
4475
  if_block.p(ctx, dirty);
3385
4476
  } else {
3386
- if_block = create_if_block$a(ctx);
4477
+ if_block = create_if_block$b(ctx);
3387
4478
  if_block.c();
3388
4479
  if_block.m(div1, t0);
3389
4480
  }
@@ -3392,8 +4483,8 @@ function create_fragment$j(ctx) {
3392
4483
  if_block = null;
3393
4484
  }
3394
4485
 
3395
- if (dirty[0] & /*isError*/ 8192) {
3396
- set_custom_element_data(goa_input, "error", /*isError*/ ctx[13]);
4486
+ if (dirty[0] & /*isError*/ 32768) {
4487
+ set_custom_element_data(goa_input, "error", /*isError*/ ctx[15]);
3397
4488
  }
3398
4489
 
3399
4490
  if (dirty[0] & /*disabled*/ 32) {
@@ -3408,20 +4499,24 @@ function create_fragment$j(ctx) {
3408
4499
  set_custom_element_data(goa_input, "placeholder", /*placeholder*/ ctx[4]);
3409
4500
  }
3410
4501
 
4502
+ if (dirty[0] & /*width, computedWidth*/ 4224 && goa_input_width_value !== (goa_input_width_value = /*width*/ ctx[7] || /*computedWidth*/ ctx[12])) {
4503
+ set_custom_element_data(goa_input, "width", goa_input_width_value);
4504
+ }
4505
+
3411
4506
  if (dirty[0] & /*name*/ 2 && goa_input_id_value !== (goa_input_id_value = `${/*name*/ ctx[1]}-dropdown-input`)) {
3412
4507
  set_custom_element_data(goa_input, "id", goa_input_id_value);
3413
4508
  }
3414
4509
 
3415
- if (dirty[0] & /*selectedLabel*/ 256) {
3416
- set_custom_element_data(goa_input, "value", /*selectedLabel*/ ctx[8]);
4510
+ if (dirty[0] & /*selectedLabel*/ 512) {
4511
+ set_custom_element_data(goa_input, "value", /*selectedLabel*/ ctx[9]);
3417
4512
  }
3418
4513
 
3419
4514
  if (dirty[0] & /*name*/ 2 && div0_data_testid_value !== (div0_data_testid_value = `${/*name*/ ctx[1]}-dropdown`)) {
3420
4515
  attr(div0, "data-testid", div0_data_testid_value);
3421
4516
  }
3422
4517
 
3423
- if (dirty[0] & /*options, highlightedIndex, value, onSelect*/ 66689) {
3424
- each_value = /*options*/ ctx[7];
4518
+ if (dirty[0] & /*options, highlightedIndex, value, onSelect*/ 264449) {
4519
+ each_value = /*options*/ ctx[8];
3425
4520
  each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, ul, destroy_block, create_each_block$1, null, get_each_context$1);
3426
4521
  }
3427
4522
 
@@ -3429,8 +4524,8 @@ function create_fragment$j(ctx) {
3429
4524
  attr(ul, "style", ul_style_value);
3430
4525
  }
3431
4526
 
3432
- if (dirty[0] & /*isMenuVisible*/ 512) {
3433
- toggle_class(ul, "dropdown-active", /*isMenuVisible*/ ctx[9]);
4527
+ if (dirty[0] & /*isMenuVisible*/ 1024) {
4528
+ toggle_class(ul, "dropdown-active", /*isMenuVisible*/ ctx[10]);
3434
4529
  }
3435
4530
 
3436
4531
  if (dirty[0] & /*testid*/ 64) {
@@ -3447,8 +4542,8 @@ function create_fragment$j(ctx) {
3447
4542
  each_blocks[i].d();
3448
4543
  }
3449
4544
 
3450
- /*ul_binding*/ ctx[19](null);
3451
- /*div1_binding*/ ctx[20](null);
4545
+ /*ul_binding*/ ctx[21](null);
4546
+ /*div1_binding*/ ctx[22](null);
3452
4547
  mounted = false;
3453
4548
  dispose();
3454
4549
  }
@@ -3467,6 +4562,7 @@ function instance$i($$self, $$props, $$invalidate) {
3467
4562
  let { disabled } = $$props;
3468
4563
  let { error } = $$props;
3469
4564
  let { testid } = $$props;
4565
+ let { width } = $$props;
3470
4566
 
3471
4567
  // Private
3472
4568
  let options = [];
@@ -3474,6 +4570,8 @@ function instance$i($$self, $$props, $$invalidate) {
3474
4570
  let selectedLabel = "";
3475
4571
  let isMenuVisible = false;
3476
4572
  let highlightedIndex = 0;
4573
+ let maxLetterCount = 0;
4574
+ let computedWidth;
3477
4575
  let el;
3478
4576
  let menuEl;
3479
4577
  let ctx;
@@ -3501,10 +4599,15 @@ function instance$i($$self, $$props, $$invalidate) {
3501
4599
  {
3502
4600
  const _data = data;
3503
4601
  const selected = value === _data.value;
3504
- $$invalidate(7, options = [...options, Object.assign(Object.assign({}, _data), { selected })]);
4602
+ $$invalidate(8, options = [...options, Object.assign(Object.assign({}, _data), { selected })]);
3505
4603
 
3506
4604
  if (selected) {
3507
- $$invalidate(8, selectedLabel = _data.label);
4605
+ $$invalidate(9, selectedLabel = _data.label);
4606
+ }
4607
+
4608
+ if (!width && maxLetterCount < _data.label.length) {
4609
+ maxLetterCount = _data.label.length;
4610
+ $$invalidate(12, computedWidth = `${Math.max(20, maxLetterCount + 12)}ch`);
3508
4611
  }
3509
4612
 
3510
4613
  setHighlightedIndexToSelected();
@@ -3519,7 +4622,7 @@ function instance$i($$self, $$props, $$invalidate) {
3519
4622
  return;
3520
4623
  }
3521
4624
 
3522
- $$invalidate(9, isMenuVisible = true);
4625
+ $$invalidate(10, isMenuVisible = true);
3523
4626
  await tick();
3524
4627
 
3525
4628
  // hide menu on blur
@@ -3538,16 +4641,16 @@ function instance$i($$self, $$props, $$invalidate) {
3538
4641
  menuEl.removeEventListener("keydown", onMenuKeyDown);
3539
4642
  menuEl.removeEventListener("mouseover", onHighlight);
3540
4643
  setHighlightedIndexToSelected();
3541
- $$invalidate(9, isMenuVisible = false);
4644
+ $$invalidate(10, isMenuVisible = false);
3542
4645
  }
3543
4646
 
3544
4647
  function setHighlightedIndexToSelected() {
3545
- $$invalidate(10, highlightedIndex = options.findIndex(option => option.value === value));
4648
+ $$invalidate(11, highlightedIndex = options.findIndex(option => option.value === value));
3546
4649
  }
3547
4650
 
3548
4651
  // Event handlers
3549
4652
  function onSelect(name, val, label) {
3550
- $$invalidate(8, selectedLabel = label);
4653
+ $$invalidate(9, selectedLabel = label);
3551
4654
  $$invalidate(0, value = val);
3552
4655
  closeMenu();
3553
4656
  el.dispatchEvent(new CustomEvent("_change", { composed: true, detail: { name, value } }));
@@ -3576,14 +4679,14 @@ function instance$i($$self, $$props, $$invalidate) {
3576
4679
  switch (e.key) {
3577
4680
  case "ArrowUp":
3578
4681
  if (highlightedIndex === 0) {
3579
- $$invalidate(10, highlightedIndex = options.length - 1);
4682
+ $$invalidate(11, highlightedIndex = options.length - 1);
3580
4683
  } else {
3581
- $$invalidate(10, highlightedIndex--, highlightedIndex);
4684
+ $$invalidate(11, highlightedIndex--, highlightedIndex);
3582
4685
  }
3583
4686
  e.preventDefault();
3584
4687
  break;
3585
4688
  case "ArrowDown":
3586
- $$invalidate(10, highlightedIndex = (highlightedIndex + 1) % options.length);
4689
+ $$invalidate(11, highlightedIndex = (highlightedIndex + 1) % options.length);
3587
4690
  e.preventDefault();
3588
4691
  break;
3589
4692
  case "Tab":
@@ -3599,7 +4702,7 @@ function instance$i($$self, $$props, $$invalidate) {
3599
4702
  }
3600
4703
 
3601
4704
  function onHighlight(e) {
3602
- $$invalidate(10, highlightedIndex = Number(e.target.dataset.index));
4705
+ $$invalidate(11, highlightedIndex = Number(e.target.dataset.index));
3603
4706
  }
3604
4707
 
3605
4708
  const click_handler = option => onSelect(option.name, option.value, option.label);
@@ -3607,14 +4710,14 @@ function instance$i($$self, $$props, $$invalidate) {
3607
4710
  function ul_binding($$value) {
3608
4711
  binding_callbacks[$$value ? 'unshift' : 'push'](() => {
3609
4712
  menuEl = $$value;
3610
- $$invalidate(12, menuEl);
4713
+ $$invalidate(14, menuEl);
3611
4714
  });
3612
4715
  }
3613
4716
 
3614
4717
  function div1_binding($$value) {
3615
4718
  binding_callbacks[$$value ? 'unshift' : 'push'](() => {
3616
4719
  el = $$value;
3617
- $$invalidate(11, el);
4720
+ $$invalidate(13, el);
3618
4721
  });
3619
4722
  }
3620
4723
 
@@ -3625,14 +4728,15 @@ function instance$i($$self, $$props, $$invalidate) {
3625
4728
  if ('maxheight' in $$props) $$invalidate(3, maxheight = $$props.maxheight);
3626
4729
  if ('placeholder' in $$props) $$invalidate(4, placeholder = $$props.placeholder);
3627
4730
  if ('disabled' in $$props) $$invalidate(5, disabled = $$props.disabled);
3628
- if ('error' in $$props) $$invalidate(17, error = $$props.error);
4731
+ if ('error' in $$props) $$invalidate(19, error = $$props.error);
3629
4732
  if ('testid' in $$props) $$invalidate(6, testid = $$props.testid);
4733
+ if ('width' in $$props) $$invalidate(7, width = $$props.width);
3630
4734
  };
3631
4735
 
3632
4736
  $$self.$$.update = () => {
3633
- if ($$self.$$.dirty[0] & /*error*/ 131072) {
4737
+ if ($$self.$$.dirty[0] & /*error*/ 524288) {
3634
4738
  // TODO: remove this once goa-input has the toBoolean method removed
3635
- $$invalidate(13, isError = error ? "true" : "false");
4739
+ $$invalidate(15, isError = error ? "true" : "false");
3636
4740
  }
3637
4741
  };
3638
4742
 
@@ -3644,10 +4748,12 @@ function instance$i($$self, $$props, $$invalidate) {
3644
4748
  placeholder,
3645
4749
  disabled,
3646
4750
  testid,
4751
+ width,
3647
4752
  options,
3648
4753
  selectedLabel,
3649
4754
  isMenuVisible,
3650
4755
  highlightedIndex,
4756
+ computedWidth,
3651
4757
  el,
3652
4758
  menuEl,
3653
4759
  isError,
@@ -3664,7 +4770,7 @@ function instance$i($$self, $$props, $$invalidate) {
3664
4770
  class Dropdown extends SvelteElement {
3665
4771
  constructor(options) {
3666
4772
  super();
3667
- this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.goa-dropdown-box{position:relative;cursor:pointer}.goa-dropdown-background{cursor:default;position:fixed;z-index:98;inset:0}.goa-dropdown-list{position:absolute;left:0;right:0;padding:0;margin:0;margin-top:3px;list-style-type:none;background:var(--color-white);border-radius:var(--input-border-radius);outline:none;box-shadow:var(--shadow-1);z-index:99;scroll-behavior:smooth;scrollbar-width:thin;display:none}.dropdown-active{display:block}.goa-dropdown-list::-webkit-scrollbar{width:6px}.goa-dropdown-list::-webkit-scrollbar-track{background:#f1f1f1}.goa-dropdown-list::-webkit-scrollbar-thumb{background:#888}.goa-dropdown-list::-webkit-scrollbar-thumb:hover{background:#555}.goa-dropdown-option{margin:0;padding:0.5rem;cursor:pointer;color:var(--color-black)}.goa-dropdown-option--tabbed{background:var(--color-gray-100);color:var(--goa-color-interactive--hover)}.goa-dropdown-option--disabled{opacity:0.5;cursor:default}.goa-dropdown-option--disabled:hover{cursor:default;color:var(--color-gray-600)}.goa-dropdown-option--selected{background:var(--goa-color-interactive);color:var(--color-white)}.goa-dropdown-option--tabbed.goa-dropdown-option--selected,.goa-dropdown-option--selected:hover{background:var(--goa-color-interactive--hover);color:var(--color-white)}</style>`;
4773
+ this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.goa-dropdown-box{position:relative;cursor:pointer;display:inline-block;width:100%}@media(min-width: 640px){.goa-dropdown-box{width:unset}}.goa-dropdown-background{cursor:default;position:fixed;z-index:98;inset:0}.goa-dropdown-list{position:absolute;left:0;right:0;padding:0;margin:0;margin-top:3px;list-style-type:none;background:var(--color-white);border-radius:var(--input-border-radius);outline:none;box-shadow:var(--shadow-1);z-index:99;scroll-behavior:smooth;scrollbar-width:thin;display:none}.dropdown-active{display:block}.goa-dropdown-list::-webkit-scrollbar{width:6px}.goa-dropdown-list::-webkit-scrollbar-track{background:#f1f1f1}.goa-dropdown-list::-webkit-scrollbar-thumb{background:#888}.goa-dropdown-list::-webkit-scrollbar-thumb:hover{background:#555}.goa-dropdown-option{margin:0;padding:0.5rem;cursor:pointer;color:var(--color-black);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.goa-dropdown-option--tabbed{background:var(--color-gray-100);color:var(--goa-color-interactive--hover)}.goa-dropdown-option--disabled{opacity:0.5;cursor:default}.goa-dropdown-option--disabled:hover{cursor:default;color:var(--color-gray-600)}.goa-dropdown-option--selected{background:var(--goa-color-interactive);color:var(--color-white)}.goa-dropdown-option--tabbed.goa-dropdown-option--selected,.goa-dropdown-option--selected:hover{background:var(--goa-color-interactive--hover);color:var(--color-white)}</style>`;
3668
4774
 
3669
4775
  init(
3670
4776
  this,
@@ -3683,8 +4789,9 @@ class Dropdown extends SvelteElement {
3683
4789
  maxheight: 3,
3684
4790
  placeholder: 4,
3685
4791
  disabled: 5,
3686
- error: 17,
3687
- testid: 6
4792
+ error: 19,
4793
+ testid: 6,
4794
+ width: 7
3688
4795
  },
3689
4796
  null,
3690
4797
  [-1, -1]
@@ -3711,7 +4818,8 @@ class Dropdown extends SvelteElement {
3711
4818
  "placeholder",
3712
4819
  "disabled",
3713
4820
  "error",
3714
- "testid"
4821
+ "testid",
4822
+ "width"
3715
4823
  ];
3716
4824
  }
3717
4825
 
@@ -3770,7 +4878,7 @@ class Dropdown extends SvelteElement {
3770
4878
  }
3771
4879
 
3772
4880
  get error() {
3773
- return this.$$.ctx[17];
4881
+ return this.$$.ctx[19];
3774
4882
  }
3775
4883
 
3776
4884
  set error(error) {
@@ -3786,6 +4894,15 @@ class Dropdown extends SvelteElement {
3786
4894
  this.$$set({ testid });
3787
4895
  flush();
3788
4896
  }
4897
+
4898
+ get width() {
4899
+ return this.$$.ctx[7];
4900
+ }
4901
+
4902
+ set width(width) {
4903
+ this.$$set({ width });
4904
+ flush();
4905
+ }
3789
4906
  }
3790
4907
 
3791
4908
  customElements.define("goa-dropdown", Dropdown);
@@ -3947,7 +5064,7 @@ function instance$g($$self, $$props, $$invalidate) {
3947
5064
  class FlexRow extends SvelteElement {
3948
5065
  constructor(options) {
3949
5066
  super();
3950
- this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.goa-flex-row{margin-bottom:1rem;display:flex;flex-direction:column;flex-wrap:wrap;align-items:stretch}@media(min-width: 480px){.goa-flex-row{flex-direction:row}}</style>`;
5067
+ this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.goa-flex-row{display:block}@media(min-width: 640px){.goa-flex-row{display:grid;grid-template-columns:repeat(auto-fit, minmax(100px, 1fr));gap:var(--gap);margin-bottom:1rem}}</style>`;
3951
5068
 
3952
5069
  init(
3953
5070
  this,
@@ -3993,11 +5110,11 @@ customElements.define("goa-flex-row", FlexRow);
3993
5110
 
3994
5111
  /* libs/web-components/src/components/form-item/FormItem.svelte generated by Svelte v3.44.3 */
3995
5112
 
3996
- function create_if_block_2$4(ctx) {
5113
+ function create_if_block_2$5(ctx) {
3997
5114
  let label_1;
3998
5115
  let t0;
3999
5116
  let t1;
4000
- let if_block = /*isOptional*/ ctx[3] && create_if_block_3$3();
5117
+ let if_block = /*isOptional*/ ctx[3] && create_if_block_3$4();
4001
5118
 
4002
5119
  return {
4003
5120
  c() {
@@ -4018,7 +5135,7 @@ function create_if_block_2$4(ctx) {
4018
5135
 
4019
5136
  if (/*isOptional*/ ctx[3]) {
4020
5137
  if (if_block) ; else {
4021
- if_block = create_if_block_3$3();
5138
+ if_block = create_if_block_3$4();
4022
5139
  if_block.c();
4023
5140
  if_block.m(label_1, null);
4024
5141
  }
@@ -4035,7 +5152,7 @@ function create_if_block_2$4(ctx) {
4035
5152
  }
4036
5153
 
4037
5154
  // (18:6) {#if isOptional}
4038
- function create_if_block_3$3(ctx) {
5155
+ function create_if_block_3$4(ctx) {
4039
5156
  let em;
4040
5157
 
4041
5158
  return {
@@ -4053,7 +5170,7 @@ function create_if_block_3$3(ctx) {
4053
5170
  }
4054
5171
 
4055
5172
  // (26:2) {#if error}
4056
- function create_if_block_1$6(ctx) {
5173
+ function create_if_block_1$7(ctx) {
4057
5174
  let div;
4058
5175
  let t;
4059
5176
 
@@ -4077,7 +5194,7 @@ function create_if_block_1$6(ctx) {
4077
5194
  }
4078
5195
 
4079
5196
  // (29:2) {#if helptext}
4080
- function create_if_block$9(ctx) {
5197
+ function create_if_block$a(ctx) {
4081
5198
  let div;
4082
5199
  let t;
4083
5200
 
@@ -4106,9 +5223,9 @@ function create_fragment$g(ctx) {
4106
5223
  let div0;
4107
5224
  let t1;
4108
5225
  let t2;
4109
- let if_block0 = /*label*/ ctx[0] && create_if_block_2$4(ctx);
4110
- let if_block1 = /*error*/ ctx[2] && create_if_block_1$6(ctx);
4111
- let if_block2 = /*helptext*/ ctx[1] && create_if_block$9(ctx);
5226
+ let if_block0 = /*label*/ ctx[0] && create_if_block_2$5(ctx);
5227
+ let if_block1 = /*error*/ ctx[2] && create_if_block_1$7(ctx);
5228
+ let if_block2 = /*helptext*/ ctx[1] && create_if_block$a(ctx);
4112
5229
 
4113
5230
  return {
4114
5231
  c() {
@@ -4140,7 +5257,7 @@ function create_fragment$g(ctx) {
4140
5257
  if (if_block0) {
4141
5258
  if_block0.p(ctx, dirty);
4142
5259
  } else {
4143
- if_block0 = create_if_block_2$4(ctx);
5260
+ if_block0 = create_if_block_2$5(ctx);
4144
5261
  if_block0.c();
4145
5262
  if_block0.m(div1, t0);
4146
5263
  }
@@ -4153,7 +5270,7 @@ function create_fragment$g(ctx) {
4153
5270
  if (if_block1) {
4154
5271
  if_block1.p(ctx, dirty);
4155
5272
  } else {
4156
- if_block1 = create_if_block_1$6(ctx);
5273
+ if_block1 = create_if_block_1$7(ctx);
4157
5274
  if_block1.c();
4158
5275
  if_block1.m(div1, t2);
4159
5276
  }
@@ -4166,7 +5283,7 @@ function create_fragment$g(ctx) {
4166
5283
  if (if_block2) {
4167
5284
  if_block2.p(ctx, dirty);
4168
5285
  } else {
4169
- if_block2 = create_if_block$9(ctx);
5286
+ if_block2 = create_if_block$a(ctx);
4170
5287
  if_block2.c();
4171
5288
  if_block2.m(div1, null);
4172
5289
  }
@@ -4212,7 +5329,7 @@ function instance$f($$self, $$props, $$invalidate) {
4212
5329
  class FormItem extends SvelteElement {
4213
5330
  constructor(options) {
4214
5331
  super();
4215
- this.shadowRoot.innerHTML = `<style>:host{flex:1 1 auto;box-sizing:border-box;font-family:var(--font-family)}*{box-sizing:border-box}label{display:block;font-weight:var(--fw-bold);color:var(--goa-color-text);font-size:var(--fs-base);padding:0.5rem 0}label em{color:var(--color-gray-600);font-weight:var(--fw-regular);font-size:var(--fs-sm);font-style:normal}.form-item-input{margin-bottom:0.25rem}.help-msg{font-size:var(--fs-sm);color:var(--goa-color-text)}.error-msg{font-size:var(--fs-sm);color:var(--goa-color-interactive--error);margin-bottom:0.25rem}</style>`;
5332
+ this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}*{box-sizing:border-box}label{display:block;font-weight:var(--fw-bold);color:var(--goa-color-text);font-size:var(--fs-base);padding:0.5rem 0;overflow-x:hidden;white-space:nowrap;text-overflow:ellipsis}label em{color:var(--color-gray-600);font-weight:var(--fw-regular);font-size:var(--fs-sm);line-height:var(--lh-sm);font-style:normal}.form-item-input{margin-bottom:0.25rem}.help-msg{font-size:var(--fs-sm);color:var(--goa-color-text)}.error-msg{font-size:var(--fs-sm);color:var(--goa-color-interactive--error);margin-bottom:0.25rem}</style>`;
4216
5333
 
4217
5334
  init(
4218
5335
  this,
@@ -4418,7 +5535,7 @@ customElements.define("goa-hero-banner", HeroBanner);
4418
5535
 
4419
5536
  /* libs/web-components/src/components/icon/Icon.svelte generated by Svelte v3.44.3 */
4420
5537
 
4421
- function create_if_block$8(ctx) {
5538
+ function create_if_block$9(ctx) {
4422
5539
  let ion_icon;
4423
5540
  let ion_icon_name_value;
4424
5541
 
@@ -4452,7 +5569,7 @@ function create_fragment$e(ctx) {
4452
5569
  let div;
4453
5570
  let div_data_testid_value;
4454
5571
  let div_style_value;
4455
- let if_block = /*type*/ ctx[0] && create_if_block$8(ctx);
5572
+ let if_block = /*type*/ ctx[0] && create_if_block$9(ctx);
4456
5573
 
4457
5574
  return {
4458
5575
  c() {
@@ -4463,12 +5580,13 @@ function create_fragment$e(ctx) {
4463
5580
  attr(div, "data-testid", div_data_testid_value = `icon-${/*type*/ ctx[0]}`);
4464
5581
 
4465
5582
  attr(div, "style", div_style_value = `
4466
- --size: ${/*_size*/ ctx[4]};
5583
+ --size: ${/*_size*/ ctx[5]};
4467
5584
  --fill-color: ${/*fillcolor*/ ctx[2]};
4468
5585
  --hover-color: ${/*hovercolor*/ ctx[3]};
5586
+ --opacity: ${/*opacity*/ ctx[4]};
4469
5587
  `);
4470
5588
 
4471
- toggle_class(div, "inverted", /*isInverted*/ ctx[5]);
5589
+ toggle_class(div, "inverted", /*isInverted*/ ctx[6]);
4472
5590
  },
4473
5591
  m(target, anchor) {
4474
5592
  insert(target, div, anchor);
@@ -4479,7 +5597,7 @@ function create_fragment$e(ctx) {
4479
5597
  if (if_block) {
4480
5598
  if_block.p(ctx, dirty);
4481
5599
  } else {
4482
- if_block = create_if_block$8(ctx);
5600
+ if_block = create_if_block$9(ctx);
4483
5601
  if_block.c();
4484
5602
  if_block.m(div, null);
4485
5603
  }
@@ -4492,16 +5610,17 @@ function create_fragment$e(ctx) {
4492
5610
  attr(div, "data-testid", div_data_testid_value);
4493
5611
  }
4494
5612
 
4495
- if (dirty & /*_size, fillcolor, hovercolor*/ 28 && div_style_value !== (div_style_value = `
4496
- --size: ${/*_size*/ ctx[4]};
5613
+ if (dirty & /*_size, fillcolor, hovercolor, opacity*/ 60 && div_style_value !== (div_style_value = `
5614
+ --size: ${/*_size*/ ctx[5]};
4497
5615
  --fill-color: ${/*fillcolor*/ ctx[2]};
4498
5616
  --hover-color: ${/*hovercolor*/ ctx[3]};
5617
+ --opacity: ${/*opacity*/ ctx[4]};
4499
5618
  `)) {
4500
5619
  attr(div, "style", div_style_value);
4501
5620
  }
4502
5621
 
4503
- if (dirty & /*isInverted*/ 32) {
4504
- toggle_class(div, "inverted", /*isInverted*/ ctx[5]);
5622
+ if (dirty & /*isInverted*/ 64) {
5623
+ toggle_class(div, "inverted", /*isInverted*/ ctx[6]);
4505
5624
  }
4506
5625
  },
4507
5626
  i: noop,
@@ -4522,23 +5641,25 @@ function instance$d($$self, $$props, $$invalidate) {
4522
5641
  let { inverted } = $$props;
4523
5642
  let { fillcolor } = $$props;
4524
5643
  let { hovercolor } = $$props;
5644
+ let { opacity = 1 } = $$props;
4525
5645
 
4526
5646
  $$self.$$set = $$props => {
4527
5647
  if ('type' in $$props) $$invalidate(0, type = $$props.type);
4528
- if ('size' in $$props) $$invalidate(6, size = $$props.size);
5648
+ if ('size' in $$props) $$invalidate(7, size = $$props.size);
4529
5649
  if ('theme' in $$props) $$invalidate(1, theme = $$props.theme);
4530
- if ('inverted' in $$props) $$invalidate(7, inverted = $$props.inverted);
5650
+ if ('inverted' in $$props) $$invalidate(8, inverted = $$props.inverted);
4531
5651
  if ('fillcolor' in $$props) $$invalidate(2, fillcolor = $$props.fillcolor);
4532
5652
  if ('hovercolor' in $$props) $$invalidate(3, hovercolor = $$props.hovercolor);
5653
+ if ('opacity' in $$props) $$invalidate(4, opacity = $$props.opacity);
4533
5654
  };
4534
5655
 
4535
5656
  $$self.$$.update = () => {
4536
- if ($$self.$$.dirty & /*inverted*/ 128) {
4537
- $$invalidate(5, isInverted = toBoolean(inverted));
5657
+ if ($$self.$$.dirty & /*inverted*/ 256) {
5658
+ $$invalidate(6, isInverted = toBoolean(inverted));
4538
5659
  }
4539
5660
 
4540
- if ($$self.$$.dirty & /*size*/ 64) {
4541
- $$invalidate(4, _size = ({
5661
+ if ($$self.$$.dirty & /*size*/ 128) {
5662
+ $$invalidate(5, _size = ({
4542
5663
  small: "1.25rem",
4543
5664
  medium: "1.5rem",
4544
5665
  large: "2rem"
@@ -4546,13 +5667,13 @@ function instance$d($$self, $$props, $$invalidate) {
4546
5667
  }
4547
5668
  };
4548
5669
 
4549
- return [type, theme, fillcolor, hovercolor, _size, isInverted, size, inverted];
5670
+ return [type, theme, fillcolor, hovercolor, opacity, _size, isInverted, size, inverted];
4550
5671
  }
4551
5672
 
4552
5673
  class Icon extends SvelteElement {
4553
5674
  constructor(options) {
4554
5675
  super();
4555
- this.shadowRoot.innerHTML = `<style>:host{display:inline-flex;align-items:center}.goa-icon{width:var(--size);height:var(--size);fill:var(--fill-color);color:var(--fill-color);display:inline-flex;align-items:center;justify-content:center}.goa-icon:hover ion-icon{fill:var(--hover-color);color:var(--hover-color)}.inverted{color:#fff;fill:#fff}</style>`;
5676
+ this.shadowRoot.innerHTML = `<style>:host{display:inline-flex;align-items:center}.goa-icon{width:var(--size);height:var(--size);fill:var(--fill-color);color:var(--fill-color);opacity:var(--opacity);display:inline-flex;align-items:center;justify-content:center}.goa-icon:hover ion-icon{fill:var(--hover-color);color:var(--hover-color)}.inverted{color:#fff;fill:#fff}</style>`;
4556
5677
 
4557
5678
  init(
4558
5679
  this,
@@ -4566,11 +5687,12 @@ class Icon extends SvelteElement {
4566
5687
  safe_not_equal,
4567
5688
  {
4568
5689
  type: 0,
4569
- size: 6,
5690
+ size: 7,
4570
5691
  theme: 1,
4571
- inverted: 7,
5692
+ inverted: 8,
4572
5693
  fillcolor: 2,
4573
- hovercolor: 3
5694
+ hovercolor: 3,
5695
+ opacity: 4
4574
5696
  },
4575
5697
  null
4576
5698
  );
@@ -4588,7 +5710,7 @@ class Icon extends SvelteElement {
4588
5710
  }
4589
5711
 
4590
5712
  static get observedAttributes() {
4591
- return ["type", "size", "theme", "inverted", "fillcolor", "hovercolor"];
5713
+ return ["type", "size", "theme", "inverted", "fillcolor", "hovercolor", "opacity"];
4592
5714
  }
4593
5715
 
4594
5716
  get type() {
@@ -4601,7 +5723,7 @@ class Icon extends SvelteElement {
4601
5723
  }
4602
5724
 
4603
5725
  get size() {
4604
- return this.$$.ctx[6];
5726
+ return this.$$.ctx[7];
4605
5727
  }
4606
5728
 
4607
5729
  set size(size) {
@@ -4619,7 +5741,7 @@ class Icon extends SvelteElement {
4619
5741
  }
4620
5742
 
4621
5743
  get inverted() {
4622
- return this.$$.ctx[7];
5744
+ return this.$$.ctx[8];
4623
5745
  }
4624
5746
 
4625
5747
  set inverted(inverted) {
@@ -4644,6 +5766,15 @@ class Icon extends SvelteElement {
4644
5766
  this.$$set({ hovercolor });
4645
5767
  flush();
4646
5768
  }
5769
+
5770
+ get opacity() {
5771
+ return this.$$.ctx[4];
5772
+ }
5773
+
5774
+ set opacity(opacity) {
5775
+ this.$$set({ opacity });
5776
+ flush();
5777
+ }
4647
5778
  }
4648
5779
 
4649
5780
  customElements.define("goa-icon", Icon);
@@ -4925,7 +6056,7 @@ customElements.define("goa-icon-button", IconButton);
4925
6056
 
4926
6057
  /* libs/web-components/src/components/input/Input.svelte generated by Svelte v3.44.3 */
4927
6058
 
4928
- function create_if_block_2$3(ctx) {
6059
+ function create_if_block_5(ctx) {
4929
6060
  let goa_icon;
4930
6061
 
4931
6062
  return {
@@ -4949,8 +6080,8 @@ function create_if_block_2$3(ctx) {
4949
6080
  };
4950
6081
  }
4951
6082
 
4952
- // (79:2) {#if trailingicon && !handlesTrailingIconClick}
4953
- function create_if_block_1$5(ctx) {
6083
+ // (93:4) {#if trailingicon && !handlesTrailingIconClick}
6084
+ function create_if_block_4$1(ctx) {
4954
6085
  let goa_icon;
4955
6086
 
4956
6087
  return {
@@ -4975,8 +6106,8 @@ function create_if_block_1$5(ctx) {
4975
6106
  };
4976
6107
  }
4977
6108
 
4978
- // (83:2) {#if trailingicon && handlesTrailingIconClick}
4979
- function create_if_block$7(ctx) {
6109
+ // (103:4) {#if trailingicon && handlesTrailingIconClick}
6110
+ function create_if_block_3$3(ctx) {
4980
6111
  let goa_icon_button;
4981
6112
  let mounted;
4982
6113
  let dispose;
@@ -4985,7 +6116,7 @@ function create_if_block$7(ctx) {
4985
6116
  c() {
4986
6117
  goa_icon_button = element("goa-icon-button");
4987
6118
  set_custom_element_data(goa_icon_button, "class", "goa-input-trailing-icon");
4988
- set_custom_element_data(goa_icon_button, "disabled", /*isDisabled*/ ctx[10]);
6119
+ set_custom_element_data(goa_icon_button, "disabled", /*isDisabled*/ ctx[12]);
4989
6120
  set_custom_element_data(goa_icon_button, "variant", "nocolor");
4990
6121
  set_custom_element_data(goa_icon_button, "size", "medium");
4991
6122
  set_custom_element_data(goa_icon_button, "type", /*trailingicon*/ ctx[5]);
@@ -5000,8 +6131,8 @@ function create_if_block$7(ctx) {
5000
6131
  }
5001
6132
  },
5002
6133
  p(ctx, dirty) {
5003
- if (dirty & /*isDisabled*/ 1024) {
5004
- set_custom_element_data(goa_icon_button, "disabled", /*isDisabled*/ ctx[10]);
6134
+ if (dirty & /*isDisabled*/ 4096) {
6135
+ set_custom_element_data(goa_icon_button, "disabled", /*isDisabled*/ ctx[12]);
5005
6136
  }
5006
6137
 
5007
6138
  if (dirty & /*trailingicon*/ 32) {
@@ -5016,25 +6147,133 @@ function create_if_block$7(ctx) {
5016
6147
  };
5017
6148
  }
5018
6149
 
5019
- function create_fragment$c(ctx) {
6150
+ // (117:2) {#if showCounter}
6151
+ function create_if_block$8(ctx) {
6152
+ let if_block_anchor;
6153
+
6154
+ function select_block_type(ctx, dirty) {
6155
+ if (/*maxcharcount*/ ctx[9] > 0) return create_if_block_1$6;
6156
+ if (/*value*/ ctx[0].length > 0) return create_if_block_2$4;
6157
+ }
6158
+
6159
+ let current_block_type = select_block_type(ctx);
6160
+ let if_block = current_block_type && current_block_type(ctx);
6161
+
6162
+ return {
6163
+ c() {
6164
+ if (if_block) if_block.c();
6165
+ if_block_anchor = empty();
6166
+ },
6167
+ m(target, anchor) {
6168
+ if (if_block) if_block.m(target, anchor);
6169
+ insert(target, if_block_anchor, anchor);
6170
+ },
6171
+ p(ctx, dirty) {
6172
+ if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
6173
+ if_block.p(ctx, dirty);
6174
+ } else {
6175
+ if (if_block) if_block.d(1);
6176
+ if_block = current_block_type && current_block_type(ctx);
6177
+
6178
+ if (if_block) {
6179
+ if_block.c();
6180
+ if_block.m(if_block_anchor.parentNode, if_block_anchor);
6181
+ }
6182
+ }
6183
+ },
6184
+ d(detaching) {
6185
+ if (if_block) {
6186
+ if_block.d(detaching);
6187
+ }
6188
+
6189
+ if (detaching) detach(if_block_anchor);
6190
+ }
6191
+ };
6192
+ }
6193
+
6194
+ // (122:31)
6195
+ function create_if_block_2$4(ctx) {
6196
+ let div;
6197
+ let t_value = /*value*/ ctx[0].length + "";
6198
+ let t;
6199
+
6200
+ return {
6201
+ c() {
6202
+ div = element("div");
6203
+ t = text(t_value);
6204
+ attr(div, "class", "counter");
6205
+ },
6206
+ m(target, anchor) {
6207
+ insert(target, div, anchor);
6208
+ append(div, t);
6209
+ },
6210
+ p(ctx, dirty) {
6211
+ if (dirty & /*value*/ 1 && t_value !== (t_value = /*value*/ ctx[0].length + "")) set_data(t, t_value);
6212
+ },
6213
+ d(detaching) {
6214
+ if (detaching) detach(div);
6215
+ }
6216
+ };
6217
+ }
6218
+
6219
+ // (118:4) {#if maxcharcount > 0}
6220
+ function create_if_block_1$6(ctx) {
5020
6221
  let div;
6222
+ let t0_value = /*value*/ ctx[0].length + "";
6223
+ let t0;
6224
+ let t1_value = `/${/*maxcharcount*/ ctx[9]}` + "";
6225
+ let t1;
6226
+
6227
+ return {
6228
+ c() {
6229
+ div = element("div");
6230
+ t0 = text(t0_value);
6231
+ t1 = text(t1_value);
6232
+ attr(div, "class", "counter");
6233
+ toggle_class(div, "counter-error", /*value*/ ctx[0].length > /*maxcharcount*/ ctx[9]);
6234
+ },
6235
+ m(target, anchor) {
6236
+ insert(target, div, anchor);
6237
+ append(div, t0);
6238
+ append(div, t1);
6239
+ },
6240
+ p(ctx, dirty) {
6241
+ if (dirty & /*value*/ 1 && t0_value !== (t0_value = /*value*/ ctx[0].length + "")) set_data(t0, t0_value);
6242
+ if (dirty & /*maxcharcount*/ 512 && t1_value !== (t1_value = `/${/*maxcharcount*/ ctx[9]}` + "")) set_data(t1, t1_value);
6243
+
6244
+ if (dirty & /*value, maxcharcount*/ 513) {
6245
+ toggle_class(div, "counter-error", /*value*/ ctx[0].length > /*maxcharcount*/ ctx[9]);
6246
+ }
6247
+ },
6248
+ d(detaching) {
6249
+ if (detaching) detach(div);
6250
+ }
6251
+ };
6252
+ }
6253
+
6254
+ function create_fragment$c(ctx) {
6255
+ let div1;
6256
+ let div0;
5021
6257
  let t0;
5022
6258
  let input;
5023
6259
  let input_class_value;
5024
6260
  let input_style_value;
5025
6261
  let t1;
5026
6262
  let t2;
5027
- let div_style_value;
5028
- let div_class_value;
6263
+ let div0_class_value;
6264
+ let t3;
6265
+ let div1_style_value;
5029
6266
  let mounted;
5030
6267
  let dispose;
5031
- let if_block0 = /*leadingicon*/ ctx[4] && create_if_block_2$3(ctx);
5032
- let if_block1 = /*trailingicon*/ ctx[5] && !/*handlesTrailingIconClick*/ ctx[13] && create_if_block_1$5(ctx);
5033
- let if_block2 = /*trailingicon*/ ctx[5] && /*handlesTrailingIconClick*/ ctx[13] && create_if_block$7(ctx);
6268
+ let if_block0 = /*leadingicon*/ ctx[4] && create_if_block_5(ctx);
6269
+ let if_block1 = /*trailingicon*/ ctx[5] && !/*handlesTrailingIconClick*/ ctx[15] && create_if_block_4$1(ctx);
6270
+ let if_block2 = /*trailingicon*/ ctx[5] && /*handlesTrailingIconClick*/ ctx[15] && create_if_block_3$3(ctx);
6271
+ let if_block3 = /*showCounter*/ ctx[11] && create_if_block$8(ctx);
5034
6272
 
5035
6273
  return {
5036
6274
  c() {
5037
- div = element("div");
6275
+ div1 = element("div");
6276
+ div0 = element("div");
5038
6277
  if (if_block0) if_block0.c();
5039
6278
  t0 = space();
5040
6279
  input = element("input");
@@ -5042,42 +6281,51 @@ function create_fragment$c(ctx) {
5042
6281
  if (if_block1) if_block1.c();
5043
6282
  t2 = space();
5044
6283
  if (if_block2) if_block2.c();
6284
+ t3 = space();
6285
+ if (if_block3) if_block3.c();
5045
6286
  this.c = noop;
5046
6287
  attr(input, "class", input_class_value = `input--${/*variant*/ ctx[6]}`);
5047
6288
  attr(input, "style", input_style_value = `--search-icon-offset: ${/*trailingicon*/ ctx[5] ? "-0.5rem" : "0"}`);
5048
- input.readOnly = /*isReadonly*/ ctx[12];
5049
- input.disabled = /*isDisabled*/ ctx[10];
6289
+ input.readOnly = /*isReadonly*/ ctx[14];
6290
+ input.disabled = /*isDisabled*/ ctx[12];
5050
6291
  attr(input, "data-testid", /*testid*/ ctx[7]);
5051
- attr(input, "name", /*name*/ ctx[1]);
5052
- attr(input, "type", /*type*/ ctx[0]);
5053
- input.value = /*value*/ ctx[2];
6292
+ attr(input, "name", /*name*/ ctx[2]);
6293
+ attr(input, "type", /*type*/ ctx[1]);
6294
+ input.value = /*value*/ ctx[0];
5054
6295
  attr(input, "placeholder", /*placeholder*/ ctx[3]);
5055
- attr(div, "style", div_style_value = `width: ${/*width*/ ctx[8]};`);
5056
6296
 
5057
- attr(div, "class", div_class_value = `
5058
- goa-input
5059
- ${/*isDisabled*/ ctx[10] ? "goa-input--disabled" : ""}
5060
- variant--${/*variant*/ ctx[6]}
5061
- type--${/*type*/ ctx[0]}
5062
- `);
6297
+ attr(div0, "class", div0_class_value = `
6298
+ goa-input
6299
+ ${/*isDisabled*/ ctx[12] ? "goa-input--disabled" : ""}
6300
+ variant--${/*variant*/ ctx[6]}
6301
+ type--${/*type*/ ctx[1]}
6302
+ `);
5063
6303
 
5064
- toggle_class(div, "error", /*isError*/ ctx[11]);
6304
+ toggle_class(div0, "error", /*isError*/ ctx[13]);
6305
+ attr(div1, "class", "container");
6306
+
6307
+ attr(div1, "style", div1_style_value = `
6308
+ --width: ${/*width*/ ctx[8]};
6309
+ `);
5065
6310
  },
5066
6311
  m(target, anchor) {
5067
- insert(target, div, anchor);
5068
- if (if_block0) if_block0.m(div, null);
5069
- append(div, t0);
5070
- append(div, input);
5071
- /*input_binding*/ ctx[21](input);
5072
- append(div, t1);
5073
- if (if_block1) if_block1.m(div, null);
5074
- append(div, t2);
5075
- if (if_block2) if_block2.m(div, null);
6312
+ insert(target, div1, anchor);
6313
+ append(div1, div0);
6314
+ if (if_block0) if_block0.m(div0, null);
6315
+ append(div0, t0);
6316
+ append(div0, input);
6317
+ /*input_binding*/ ctx[24](input);
6318
+ append(div0, t1);
6319
+ if (if_block1) if_block1.m(div0, null);
6320
+ append(div0, t2);
6321
+ if (if_block2) if_block2.m(div0, null);
6322
+ append(div1, t3);
6323
+ if (if_block3) if_block3.m(div1, null);
5076
6324
 
5077
6325
  if (!mounted) {
5078
6326
  dispose = [
5079
- listen(input, "keyup", /*onKeyUp*/ ctx[14]),
5080
- listen(input, "change", /*onKeyUp*/ ctx[14])
6327
+ listen(input, "keyup", /*onKeyUp*/ ctx[16]),
6328
+ listen(input, "change", /*onKeyUp*/ ctx[16])
5081
6329
  ];
5082
6330
 
5083
6331
  mounted = true;
@@ -5088,9 +6336,9 @@ function create_fragment$c(ctx) {
5088
6336
  if (if_block0) {
5089
6337
  if_block0.p(ctx, dirty);
5090
6338
  } else {
5091
- if_block0 = create_if_block_2$3(ctx);
6339
+ if_block0 = create_if_block_5(ctx);
5092
6340
  if_block0.c();
5093
- if_block0.m(div, t0);
6341
+ if_block0.m(div0, t0);
5094
6342
  }
5095
6343
  } else if (if_block0) {
5096
6344
  if_block0.d(1);
@@ -5105,85 +6353,101 @@ function create_fragment$c(ctx) {
5105
6353
  attr(input, "style", input_style_value);
5106
6354
  }
5107
6355
 
5108
- if (dirty & /*isReadonly*/ 4096) {
5109
- input.readOnly = /*isReadonly*/ ctx[12];
6356
+ if (dirty & /*isReadonly*/ 16384) {
6357
+ input.readOnly = /*isReadonly*/ ctx[14];
5110
6358
  }
5111
6359
 
5112
- if (dirty & /*isDisabled*/ 1024) {
5113
- input.disabled = /*isDisabled*/ ctx[10];
6360
+ if (dirty & /*isDisabled*/ 4096) {
6361
+ input.disabled = /*isDisabled*/ ctx[12];
5114
6362
  }
5115
6363
 
5116
6364
  if (dirty & /*testid*/ 128) {
5117
6365
  attr(input, "data-testid", /*testid*/ ctx[7]);
5118
6366
  }
5119
6367
 
5120
- if (dirty & /*name*/ 2) {
5121
- attr(input, "name", /*name*/ ctx[1]);
6368
+ if (dirty & /*name*/ 4) {
6369
+ attr(input, "name", /*name*/ ctx[2]);
5122
6370
  }
5123
6371
 
5124
- if (dirty & /*type*/ 1) {
5125
- attr(input, "type", /*type*/ ctx[0]);
6372
+ if (dirty & /*type*/ 2) {
6373
+ attr(input, "type", /*type*/ ctx[1]);
5126
6374
  }
5127
6375
 
5128
- if (dirty & /*value*/ 4 && input.value !== /*value*/ ctx[2]) {
5129
- input.value = /*value*/ ctx[2];
6376
+ if (dirty & /*value*/ 1 && input.value !== /*value*/ ctx[0]) {
6377
+ input.value = /*value*/ ctx[0];
5130
6378
  }
5131
6379
 
5132
6380
  if (dirty & /*placeholder*/ 8) {
5133
6381
  attr(input, "placeholder", /*placeholder*/ ctx[3]);
5134
6382
  }
5135
6383
 
5136
- if (/*trailingicon*/ ctx[5] && !/*handlesTrailingIconClick*/ ctx[13]) {
6384
+ if (/*trailingicon*/ ctx[5] && !/*handlesTrailingIconClick*/ ctx[15]) {
5137
6385
  if (if_block1) {
5138
6386
  if_block1.p(ctx, dirty);
5139
6387
  } else {
5140
- if_block1 = create_if_block_1$5(ctx);
6388
+ if_block1 = create_if_block_4$1(ctx);
5141
6389
  if_block1.c();
5142
- if_block1.m(div, t2);
6390
+ if_block1.m(div0, t2);
5143
6391
  }
5144
6392
  } else if (if_block1) {
5145
6393
  if_block1.d(1);
5146
6394
  if_block1 = null;
5147
6395
  }
5148
6396
 
5149
- if (/*trailingicon*/ ctx[5] && /*handlesTrailingIconClick*/ ctx[13]) {
6397
+ if (/*trailingicon*/ ctx[5] && /*handlesTrailingIconClick*/ ctx[15]) {
5150
6398
  if (if_block2) {
5151
6399
  if_block2.p(ctx, dirty);
5152
6400
  } else {
5153
- if_block2 = create_if_block$7(ctx);
6401
+ if_block2 = create_if_block_3$3(ctx);
5154
6402
  if_block2.c();
5155
- if_block2.m(div, null);
6403
+ if_block2.m(div0, null);
5156
6404
  }
5157
6405
  } else if (if_block2) {
5158
6406
  if_block2.d(1);
5159
6407
  if_block2 = null;
5160
6408
  }
5161
6409
 
5162
- if (dirty & /*width*/ 256 && div_style_value !== (div_style_value = `width: ${/*width*/ ctx[8]};`)) {
5163
- attr(div, "style", div_style_value);
6410
+ if (dirty & /*isDisabled, variant, type*/ 4162 && div0_class_value !== (div0_class_value = `
6411
+ goa-input
6412
+ ${/*isDisabled*/ ctx[12] ? "goa-input--disabled" : ""}
6413
+ variant--${/*variant*/ ctx[6]}
6414
+ type--${/*type*/ ctx[1]}
6415
+ `)) {
6416
+ attr(div0, "class", div0_class_value);
5164
6417
  }
5165
6418
 
5166
- if (dirty & /*isDisabled, variant, type*/ 1089 && div_class_value !== (div_class_value = `
5167
- goa-input
5168
- ${/*isDisabled*/ ctx[10] ? "goa-input--disabled" : ""}
5169
- variant--${/*variant*/ ctx[6]}
5170
- type--${/*type*/ ctx[0]}
5171
- `)) {
5172
- attr(div, "class", div_class_value);
6419
+ if (dirty & /*isDisabled, variant, type, isError*/ 12354) {
6420
+ toggle_class(div0, "error", /*isError*/ ctx[13]);
6421
+ }
6422
+
6423
+ if (/*showCounter*/ ctx[11]) {
6424
+ if (if_block3) {
6425
+ if_block3.p(ctx, dirty);
6426
+ } else {
6427
+ if_block3 = create_if_block$8(ctx);
6428
+ if_block3.c();
6429
+ if_block3.m(div1, null);
6430
+ }
6431
+ } else if (if_block3) {
6432
+ if_block3.d(1);
6433
+ if_block3 = null;
5173
6434
  }
5174
6435
 
5175
- if (dirty & /*isDisabled, variant, type, isError*/ 3137) {
5176
- toggle_class(div, "error", /*isError*/ ctx[11]);
6436
+ if (dirty & /*width*/ 256 && div1_style_value !== (div1_style_value = `
6437
+ --width: ${/*width*/ ctx[8]};
6438
+ `)) {
6439
+ attr(div1, "style", div1_style_value);
5177
6440
  }
5178
6441
  },
5179
6442
  i: noop,
5180
6443
  o: noop,
5181
6444
  d(detaching) {
5182
- if (detaching) detach(div);
6445
+ if (detaching) detach(div1);
5183
6446
  if (if_block0) if_block0.d();
5184
- /*input_binding*/ ctx[21](null);
6447
+ /*input_binding*/ ctx[24](null);
5185
6448
  if (if_block1) if_block1.d();
5186
6449
  if (if_block2) if_block2.d();
6450
+ if (if_block3) if_block3.d();
5187
6451
  mounted = false;
5188
6452
  run_all(dispose);
5189
6453
  }
@@ -5200,6 +6464,7 @@ function instance$b($$self, $$props, $$invalidate) {
5200
6464
  let isReadonly;
5201
6465
  let isError;
5202
6466
  let isDisabled;
6467
+ let showCounter;
5203
6468
  let { type = "text" } = $$props;
5204
6469
  let { name = "" } = $$props;
5205
6470
  let { value = "" } = $$props;
@@ -5213,7 +6478,9 @@ function instance$b($$self, $$props, $$invalidate) {
5213
6478
  let { readonly = "false" } = $$props;
5214
6479
  let { error = "false" } = $$props;
5215
6480
  let { testid = "" } = $$props;
5216
- let { width = "100%" } = $$props;
6481
+ let { width = "30ch" } = $$props;
6482
+ let { showcounter = "false" } = $$props;
6483
+ let { maxcharcount = 0 } = $$props;
5217
6484
  let inputEl;
5218
6485
 
5219
6486
  function onKeyUp(e) {
@@ -5225,61 +6492,67 @@ function instance$b($$self, $$props, $$invalidate) {
5225
6492
  detail: { name, value: e.target.value }
5226
6493
  }));
5227
6494
 
5228
- e.stopPropagation();
6495
+ $$invalidate(0, value = e.target.value);
5229
6496
  }
5230
6497
 
5231
6498
  function input_binding($$value) {
5232
6499
  binding_callbacks[$$value ? 'unshift' : 'push'](() => {
5233
6500
  inputEl = $$value;
5234
- $$invalidate(9, inputEl);
6501
+ $$invalidate(10, inputEl);
5235
6502
  });
5236
6503
  }
5237
-
5238
- $$self.$$set = $$props => {
5239
- if ('type' in $$props) $$invalidate(0, type = $$props.type);
5240
- if ('name' in $$props) $$invalidate(1, name = $$props.name);
5241
- if ('value' in $$props) $$invalidate(2, value = $$props.value);
6504
+
6505
+ $$self.$$set = $$props => {
6506
+ if ('type' in $$props) $$invalidate(1, type = $$props.type);
6507
+ if ('name' in $$props) $$invalidate(2, name = $$props.name);
6508
+ if ('value' in $$props) $$invalidate(0, value = $$props.value);
5242
6509
  if ('placeholder' in $$props) $$invalidate(3, placeholder = $$props.placeholder);
5243
6510
  if ('leadingicon' in $$props) $$invalidate(4, leadingicon = $$props.leadingicon);
5244
6511
  if ('trailingicon' in $$props) $$invalidate(5, trailingicon = $$props.trailingicon);
5245
6512
  if ('variant' in $$props) $$invalidate(6, variant = $$props.variant);
5246
- if ('disabled' in $$props) $$invalidate(15, disabled = $$props.disabled);
5247
- if ('handletrailingiconclick' in $$props) $$invalidate(16, handletrailingiconclick = $$props.handletrailingiconclick);
5248
- if ('focused' in $$props) $$invalidate(17, focused = $$props.focused);
5249
- if ('readonly' in $$props) $$invalidate(18, readonly = $$props.readonly);
5250
- if ('error' in $$props) $$invalidate(19, error = $$props.error);
6513
+ if ('disabled' in $$props) $$invalidate(17, disabled = $$props.disabled);
6514
+ if ('handletrailingiconclick' in $$props) $$invalidate(18, handletrailingiconclick = $$props.handletrailingiconclick);
6515
+ if ('focused' in $$props) $$invalidate(19, focused = $$props.focused);
6516
+ if ('readonly' in $$props) $$invalidate(20, readonly = $$props.readonly);
6517
+ if ('error' in $$props) $$invalidate(21, error = $$props.error);
5251
6518
  if ('testid' in $$props) $$invalidate(7, testid = $$props.testid);
5252
6519
  if ('width' in $$props) $$invalidate(8, width = $$props.width);
6520
+ if ('showcounter' in $$props) $$invalidate(22, showcounter = $$props.showcounter);
6521
+ if ('maxcharcount' in $$props) $$invalidate(9, maxcharcount = $$props.maxcharcount);
5253
6522
  };
5254
6523
 
5255
6524
  $$self.$$.update = () => {
5256
- if ($$self.$$.dirty & /*handletrailingiconclick*/ 65536) {
5257
- $$invalidate(13, handlesTrailingIconClick = toBoolean(handletrailingiconclick));
6525
+ if ($$self.$$.dirty & /*handletrailingiconclick*/ 262144) {
6526
+ $$invalidate(15, handlesTrailingIconClick = toBoolean(handletrailingiconclick));
6527
+ }
6528
+
6529
+ if ($$self.$$.dirty & /*focused*/ 524288) {
6530
+ $$invalidate(23, isFocused = toBoolean(focused));
5258
6531
  }
5259
6532
 
5260
- if ($$self.$$.dirty & /*focused*/ 131072) {
5261
- $$invalidate(20, isFocused = toBoolean(focused));
6533
+ if ($$self.$$.dirty & /*readonly*/ 1048576) {
6534
+ $$invalidate(14, isReadonly = toBoolean(readonly));
5262
6535
  }
5263
6536
 
5264
- if ($$self.$$.dirty & /*readonly*/ 262144) {
5265
- $$invalidate(12, isReadonly = toBoolean(readonly));
6537
+ if ($$self.$$.dirty & /*error*/ 2097152) {
6538
+ $$invalidate(13, isError = toBoolean(error));
5266
6539
  }
5267
6540
 
5268
- if ($$self.$$.dirty & /*error*/ 524288) {
5269
- $$invalidate(11, isError = toBoolean(error));
6541
+ if ($$self.$$.dirty & /*disabled*/ 131072) {
6542
+ $$invalidate(12, isDisabled = toBoolean(disabled));
5270
6543
  }
5271
6544
 
5272
- if ($$self.$$.dirty & /*disabled*/ 32768) {
5273
- $$invalidate(10, isDisabled = toBoolean(disabled));
6545
+ if ($$self.$$.dirty & /*showcounter*/ 4194304) {
6546
+ $$invalidate(11, showCounter = toBoolean(showcounter));
5274
6547
  }
5275
6548
 
5276
- if ($$self.$$.dirty & /*isFocused, inputEl*/ 1049088) {
6549
+ if ($$self.$$.dirty & /*isFocused, inputEl*/ 8389632) {
5277
6550
  if (isFocused && inputEl) {
5278
6551
  setTimeout(() => inputEl.focus(), 1);
5279
6552
  }
5280
6553
  }
5281
6554
 
5282
- if ($$self.$$.dirty & /*inputEl, type*/ 513) {
6555
+ if ($$self.$$.dirty & /*inputEl, type*/ 1026) {
5283
6556
  if (inputEl && type === "search") {
5284
6557
  inputEl.addEventListener("search", e => {
5285
6558
  onKeyUp(e);
@@ -5289,16 +6562,18 @@ function instance$b($$self, $$props, $$invalidate) {
5289
6562
  };
5290
6563
 
5291
6564
  return [
6565
+ value,
5292
6566
  type,
5293
6567
  name,
5294
- value,
5295
6568
  placeholder,
5296
6569
  leadingicon,
5297
6570
  trailingicon,
5298
6571
  variant,
5299
6572
  testid,
5300
6573
  width,
6574
+ maxcharcount,
5301
6575
  inputEl,
6576
+ showCounter,
5302
6577
  isDisabled,
5303
6578
  isError,
5304
6579
  isReadonly,
@@ -5309,6 +6584,7 @@ function instance$b($$self, $$props, $$invalidate) {
5309
6584
  focused,
5310
6585
  readonly,
5311
6586
  error,
6587
+ showcounter,
5312
6588
  isFocused,
5313
6589
  input_binding
5314
6590
  ];
@@ -5317,7 +6593,9 @@ function instance$b($$self, $$props, $$invalidate) {
5317
6593
  class Input extends SvelteElement {
5318
6594
  constructor(options) {
5319
6595
  super();
5320
- this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.goa-input,.goa-input *{box-sizing:border-box}.goa-input{box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--color-gray-600);border-radius:var(--input-border-radius);background:white;display:inline-flex;align-items:center;vertical-align:middle}.goa-input:hover{border-color:var(--goa-color-interactive--hover)}.goa-input:active,.goa-input:focus,.goa-input:focus-within{box-shadow:0 0 0 3px var(--goa-color-interactive--focus)}input{color:var(--goa-color-text)}input[readonly]{cursor:pointer}.goa-input.type--range{border:none}.goa-input.type--range:active,.goa-input.type--range:focus,.goa-input.type--range:focus-within{box-shadow:none}.goa-input-leading-icon{display:flex;align-items:center;margin-left:0.5rem}.goa-input-trailing-icon{display:flex;align-items:center;margin-right:0.5rem}.goa-input-trailing-icon>.goa-icon-button{margin-right:-0.5rem}input{display:block;width:100%;font-size:var(--input-font-size);padding:var(--input-padding);line-height:calc(40px - calc(var(--input-padding) * 2));background-color:transparent}.goa-input-leading-icon+input{padding-left:0.5rem}input,input:focus,input:hover,input:active{outline:none;border:none}.goa-input--disabled,.goa-input--disabled:hover,.goa-input--disabled:active,.goa-input--disabled:focus{background-color:var(--color-gray-100);border-color:var(--color-gray-200);cursor:default;box-shadow:none}.goa-input--disabled input,.goa-input--disabled input:hover,.goa-input--disabled input:active,.goa-input--disabled input:focus{color:var(--goa-color-text-secondary)}.goa-input--disabled input:hover{cursor:default !important}input.input--goa{display:block;border:none;flex:1 1 auto}.variant--bare{border:none}.variant--bare:focus,.variant--bare:active,.variant--bare:focus-within{box-shadow:none}.error:hover,.error:focus,.error{border:2px solid var(--goa-color-interactive--error)}input[type="search" i]:enabled:read-write:-webkit-any(:focus, :hover)::-webkit-search-cancel-button{position:relative;right:var(--search-icon-offset);cursor:pointer;-webkit-appearance:none;height:1.2rem;width:1.2rem;background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%23333" d="M405 136.798L375.202 107 256 226.202 136.798 107 107 136.798 226.202 256 107 375.202 136.798 405 256 285.798 375.202 405 405 375.202 285.798 256z"/></svg>') center center no-repeat}</style>`;
6596
+
6597
+ this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.container{position:relative;width:100%}@media(min-width: 640px){.container{max-width:var(--width)}}.goa-input,.goa-input *{box-sizing:border-box}.goa-input{box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--color-gray-600);border-radius:var(--input-border-radius);background:white;display:inline-flex;align-items:center;vertical-align:middle;min-width:100%}.goa-input:hover{border-color:var(--goa-color-interactive--hover)}.goa-input:active,.goa-input:focus,.goa-input:focus-within{box-shadow:0 0 0 3px var(--goa-color-interactive--focus)}@media(min-width: 640px){.goa-input{min-width:0;width:var(--width)}}.goa-input.type--range{border:none}.goa-input.type--range:active,.goa-input.type--range:focus,.goa-input.type--range:focus-within{box-shadow:none}.goa-input-leading-icon{display:flex;align-items:center;margin-left:0.5rem}.goa-input-trailing-icon{display:flex;align-items:center;margin-right:0.5rem}.goa-input-trailing-icon>.goa-icon-button{margin-right:-0.5rem}input{display:inline-block;color:var(--goa-color-text);font-size:var(--input-font-size);padding:var(--input-padding);line-height:calc(40px - calc(var(--input-padding) * 2));background-color:transparent;width:0;flex:1 1 auto}input[readonly]{cursor:pointer}.goa-input-leading-icon+input{padding-left:0.5rem}input,input:focus,input:hover,input:active{outline:none;border:none}.goa-input--disabled,.goa-input--disabled:hover,.goa-input--disabled:active,.goa-input--disabled:focus{background-color:var(--color-gray-100);border-color:var(--color-gray-200);cursor:default;box-shadow:none}.goa-input--disabled input,.goa-input--disabled input:hover,.goa-input--disabled input:active,.goa-input--disabled input:focus{color:var(--goa-color-text-secondary)}.goa-input--disabled input:hover{cursor:default !important}input.input--goa{display:block;border:none;flex:1 1 auto}.variant--bare{border:none}.variant--bare:focus,.variant--bare:active,.variant--bare:focus-within{box-shadow:none}.counter{position:absolute;padding-top:0.25rem;right:0;font-size:var(--fs-sm)}.counter-error{color:var(--goa-color-interactive--error)}.error:hover,.error:focus,.error{border:2px solid var(--goa-color-interactive--error)}input[type="search" i]:enabled:read-write:-webkit-any(:focus, :hover)::-webkit-search-cancel-button{position:relative;right:var(--search-icon-offset);cursor:pointer;-webkit-appearance:none;height:1.2rem;width:1.2rem;background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%23333" d="M405 136.798L375.202 107 256 226.202 136.798 107 107 136.798 226.202 256 107 375.202 136.798 405 256 285.798 375.202 405 405 375.202 285.798 256z"/></svg>')
6598
+ center center no-repeat}</style>`;
5321
6599
 
5322
6600
  init(
5323
6601
  this,
@@ -5330,20 +6608,22 @@ class Input extends SvelteElement {
5330
6608
  create_fragment$c,
5331
6609
  safe_not_equal,
5332
6610
  {
5333
- type: 0,
5334
- name: 1,
5335
- value: 2,
6611
+ type: 1,
6612
+ name: 2,
6613
+ value: 0,
5336
6614
  placeholder: 3,
5337
6615
  leadingicon: 4,
5338
6616
  trailingicon: 5,
5339
6617
  variant: 6,
5340
- disabled: 15,
5341
- handletrailingiconclick: 16,
5342
- focused: 17,
5343
- readonly: 18,
5344
- error: 19,
6618
+ disabled: 17,
6619
+ handletrailingiconclick: 18,
6620
+ focused: 19,
6621
+ readonly: 20,
6622
+ error: 21,
5345
6623
  testid: 7,
5346
- width: 8
6624
+ width: 8,
6625
+ showcounter: 22,
6626
+ maxcharcount: 9
5347
6627
  },
5348
6628
  null
5349
6629
  );
@@ -5375,12 +6655,14 @@ class Input extends SvelteElement {
5375
6655
  "readonly",
5376
6656
  "error",
5377
6657
  "testid",
5378
- "width"
6658
+ "width",
6659
+ "showcounter",
6660
+ "maxcharcount"
5379
6661
  ];
5380
6662
  }
5381
6663
 
5382
6664
  get type() {
5383
- return this.$$.ctx[0];
6665
+ return this.$$.ctx[1];
5384
6666
  }
5385
6667
 
5386
6668
  set type(type) {
@@ -5389,7 +6671,7 @@ class Input extends SvelteElement {
5389
6671
  }
5390
6672
 
5391
6673
  get name() {
5392
- return this.$$.ctx[1];
6674
+ return this.$$.ctx[2];
5393
6675
  }
5394
6676
 
5395
6677
  set name(name) {
@@ -5398,7 +6680,7 @@ class Input extends SvelteElement {
5398
6680
  }
5399
6681
 
5400
6682
  get value() {
5401
- return this.$$.ctx[2];
6683
+ return this.$$.ctx[0];
5402
6684
  }
5403
6685
 
5404
6686
  set value(value) {
@@ -5443,7 +6725,7 @@ class Input extends SvelteElement {
5443
6725
  }
5444
6726
 
5445
6727
  get disabled() {
5446
- return this.$$.ctx[15];
6728
+ return this.$$.ctx[17];
5447
6729
  }
5448
6730
 
5449
6731
  set disabled(disabled) {
@@ -5452,7 +6734,7 @@ class Input extends SvelteElement {
5452
6734
  }
5453
6735
 
5454
6736
  get handletrailingiconclick() {
5455
- return this.$$.ctx[16];
6737
+ return this.$$.ctx[18];
5456
6738
  }
5457
6739
 
5458
6740
  set handletrailingiconclick(handletrailingiconclick) {
@@ -5461,7 +6743,7 @@ class Input extends SvelteElement {
5461
6743
  }
5462
6744
 
5463
6745
  get focused() {
5464
- return this.$$.ctx[17];
6746
+ return this.$$.ctx[19];
5465
6747
  }
5466
6748
 
5467
6749
  set focused(focused) {
@@ -5470,7 +6752,7 @@ class Input extends SvelteElement {
5470
6752
  }
5471
6753
 
5472
6754
  get readonly() {
5473
- return this.$$.ctx[18];
6755
+ return this.$$.ctx[20];
5474
6756
  }
5475
6757
 
5476
6758
  set readonly(readonly) {
@@ -5479,7 +6761,7 @@ class Input extends SvelteElement {
5479
6761
  }
5480
6762
 
5481
6763
  get error() {
5482
- return this.$$.ctx[19];
6764
+ return this.$$.ctx[21];
5483
6765
  }
5484
6766
 
5485
6767
  set error(error) {
@@ -5504,6 +6786,24 @@ class Input extends SvelteElement {
5504
6786
  this.$$set({ width });
5505
6787
  flush();
5506
6788
  }
6789
+
6790
+ get showcounter() {
6791
+ return this.$$.ctx[22];
6792
+ }
6793
+
6794
+ set showcounter(showcounter) {
6795
+ this.$$set({ showcounter });
6796
+ flush();
6797
+ }
6798
+
6799
+ get maxcharcount() {
6800
+ return this.$$.ctx[9];
6801
+ }
6802
+
6803
+ set maxcharcount(maxcharcount) {
6804
+ this.$$set({ maxcharcount });
6805
+ flush();
6806
+ }
5507
6807
  }
5508
6808
 
5509
6809
  customElements.define("goa-input", Input);
@@ -5540,7 +6840,7 @@ function fly(node, { delay = 0, duration = 400, easing = cubicOut, x = 0, y = 0,
5540
6840
  };
5541
6841
  }
5542
6842
 
5543
- function noScroll(node, opts) {
6843
+ function noScroll(_node, opts) {
5544
6844
  function hideScrollbars() {
5545
6845
  const scrollbarWidth = calculateScrollbarWidth();
5546
6846
  document.body.style.overflow = "hidden";
@@ -5550,7 +6850,7 @@ function noScroll(node, opts) {
5550
6850
  setTimeout(() => {
5551
6851
  document.body.style.overflow = "";
5552
6852
  document.body.style.paddingRight = "0";
5553
- }, 500);
6853
+ }, 200);
5554
6854
  }
5555
6855
  function calculateScrollbarWidth() {
5556
6856
  if (document.body.clientHeight <= document.documentElement.clientHeight) {
@@ -5585,7 +6885,7 @@ function noScroll(node, opts) {
5585
6885
 
5586
6886
  /* libs/web-components/src/components/modal/Modal.svelte generated by Svelte v3.44.3 */
5587
6887
 
5588
- function create_if_block$6(ctx) {
6888
+ function create_if_block$7(ctx) {
5589
6889
  let div4;
5590
6890
  let div0;
5591
6891
  let t0;
@@ -5607,10 +6907,10 @@ function create_if_block$6(ctx) {
5607
6907
  let mounted;
5608
6908
  let dispose;
5609
6909
  let if_block0 = /*heading*/ ctx[0] && create_if_block_3$2(ctx);
5610
- let if_block1 = /*isClosable*/ ctx[4] && create_if_block_2$2(ctx);
6910
+ let if_block1 = /*isClosable*/ ctx[4] && create_if_block_2$3(ctx);
5611
6911
 
5612
6912
  function select_block_type(ctx, dirty) {
5613
- if (/*isScrollable*/ ctx[5]) return create_if_block_1$4;
6913
+ if (/*isScrollable*/ ctx[6]) return create_if_block_1$5;
5614
6914
  return create_else_block$1;
5615
6915
  }
5616
6916
 
@@ -5664,14 +6964,16 @@ function create_if_block$6(ctx) {
5664
6964
 
5665
6965
  if (!mounted) {
5666
6966
  dispose = [
5667
- listen(div0, "click", /*close*/ ctx[6]),
6967
+ listen(div0, "click", /*close*/ ctx[7]),
5668
6968
  action_destroyer(noscroll_action = noScroll.call(null, div4, { enable: /*isOpen*/ ctx[2] }))
5669
6969
  ];
5670
6970
 
5671
6971
  mounted = true;
5672
6972
  }
5673
6973
  },
5674
- p(ctx, dirty) {
6974
+ p(new_ctx, dirty) {
6975
+ ctx = new_ctx;
6976
+
5675
6977
  if (/*heading*/ ctx[0]) {
5676
6978
  if (if_block0) {
5677
6979
  if_block0.p(ctx, dirty);
@@ -5689,7 +6991,7 @@ function create_if_block$6(ctx) {
5689
6991
  if (if_block1) {
5690
6992
  if_block1.p(ctx, dirty);
5691
6993
  } else {
5692
- if_block1 = create_if_block_2$2(ctx);
6994
+ if_block1 = create_if_block_2$3(ctx);
5693
6995
  if_block1.c();
5694
6996
  if_block1.m(div3, t2);
5695
6997
  }
@@ -5719,13 +7021,18 @@ function create_if_block$6(ctx) {
5719
7021
 
5720
7022
  add_render_callback(() => {
5721
7023
  if (div3_outro) div3_outro.end(1);
5722
- div3_intro = create_in_transition(div3, fly, { duration: 200, y: 200 });
7024
+
7025
+ div3_intro = create_in_transition(div3, fly, {
7026
+ duration: /*_transitionTime*/ ctx[5],
7027
+ y: 200
7028
+ });
7029
+
5723
7030
  div3_intro.start();
5724
7031
  });
5725
7032
 
5726
7033
  add_render_callback(() => {
5727
7034
  if (div4_outro) div4_outro.end(1);
5728
- div4_intro = create_in_transition(div4, fade, { duration: 200 });
7035
+ div4_intro = create_in_transition(div4, fade, { duration: /*_transitionTime*/ ctx[5] });
5729
7036
  div4_intro.start();
5730
7037
  });
5731
7038
 
@@ -5733,9 +7040,20 @@ function create_if_block$6(ctx) {
5733
7040
  },
5734
7041
  o(local) {
5735
7042
  if (div3_intro) div3_intro.invalidate();
5736
- div3_outro = create_out_transition(div3, fly, { delay: 200, duration: 200, y: -100 });
7043
+
7044
+ div3_outro = create_out_transition(div3, fly, {
7045
+ delay: /*_transitionTime*/ ctx[5],
7046
+ duration: /*_transitionTime*/ ctx[5],
7047
+ y: -100
7048
+ });
7049
+
5737
7050
  if (div4_intro) div4_intro.invalidate();
5738
- div4_outro = create_out_transition(div4, fade, { delay: 200, duration: 200 });
7051
+
7052
+ div4_outro = create_out_transition(div4, fade, {
7053
+ delay: /*_transitionTime*/ ctx[5],
7054
+ duration: /*_transitionTime*/ ctx[5]
7055
+ });
7056
+
5739
7057
  current = false;
5740
7058
  },
5741
7059
  d(detaching) {
@@ -5751,7 +7069,7 @@ function create_if_block$6(ctx) {
5751
7069
  };
5752
7070
  }
5753
7071
 
5754
- // (54:6) {#if heading}
7072
+ // (60:6) {#if heading}
5755
7073
  function create_if_block_3$2(ctx) {
5756
7074
  let div;
5757
7075
  let t;
@@ -5776,8 +7094,8 @@ function create_if_block_3$2(ctx) {
5776
7094
  };
5777
7095
  }
5778
7096
 
5779
- // (57:6) {#if isClosable}
5780
- function create_if_block_2$2(ctx) {
7097
+ // (63:6) {#if isClosable}
7098
+ function create_if_block_2$3(ctx) {
5781
7099
  let div;
5782
7100
  let goa_icon_button;
5783
7101
  let mounted;
@@ -5796,7 +7114,7 @@ function create_if_block_2$2(ctx) {
5796
7114
  append(div, goa_icon_button);
5797
7115
 
5798
7116
  if (!mounted) {
5799
- dispose = listen(goa_icon_button, "click", /*close*/ ctx[6]);
7117
+ dispose = listen(goa_icon_button, "click", /*close*/ ctx[7]);
5800
7118
  mounted = true;
5801
7119
  }
5802
7120
  },
@@ -5809,7 +7127,7 @@ function create_if_block_2$2(ctx) {
5809
7127
  };
5810
7128
  }
5811
7129
 
5812
- // (71:8) {:else}
7130
+ // (77:8) {:else}
5813
7131
  function create_else_block$1(ctx) {
5814
7132
  let div;
5815
7133
 
@@ -5828,8 +7146,8 @@ function create_else_block$1(ctx) {
5828
7146
  };
5829
7147
  }
5830
7148
 
5831
- // (67:8) {#if isScrollable}
5832
- function create_if_block_1$4(ctx) {
7149
+ // (73:8) {#if isScrollable}
7150
+ function create_if_block_1$5(ctx) {
5833
7151
  let goa_scrollable;
5834
7152
 
5835
7153
  return {
@@ -5852,7 +7170,7 @@ function create_if_block_1$4(ctx) {
5852
7170
  function create_fragment$b(ctx) {
5853
7171
  let if_block_anchor;
5854
7172
  let current;
5855
- let if_block = /*isOpen*/ ctx[2] && create_if_block$6(ctx);
7173
+ let if_block = /*isOpen*/ ctx[2] && create_if_block$7(ctx);
5856
7174
 
5857
7175
  return {
5858
7176
  c() {
@@ -5874,7 +7192,7 @@ function create_fragment$b(ctx) {
5874
7192
  transition_in(if_block, 1);
5875
7193
  }
5876
7194
  } else {
5877
- if_block = create_if_block$6(ctx);
7195
+ if_block = create_if_block$7(ctx);
5878
7196
  if_block.c();
5879
7197
  transition_in(if_block, 1);
5880
7198
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
@@ -5909,10 +7227,12 @@ function instance$a($$self, $$props, $$invalidate) {
5909
7227
  let isClosable;
5910
7228
  let isScrollable;
5911
7229
  let isOpen;
7230
+ let _transitionTime;
5912
7231
  let { heading } = $$props;
5913
7232
  let { closable } = $$props;
5914
7233
  let { scrollable } = $$props;
5915
7234
  let { open } = $$props;
7235
+ let { transition } = $$props;
5916
7236
  let { width } = $$props;
5917
7237
  let scrollOffset = 0;
5918
7238
 
@@ -5927,22 +7247,23 @@ function instance$a($$self, $$props, $$invalidate) {
5927
7247
 
5928
7248
  $$self.$$set = $$props => {
5929
7249
  if ('heading' in $$props) $$invalidate(0, heading = $$props.heading);
5930
- if ('closable' in $$props) $$invalidate(7, closable = $$props.closable);
5931
- if ('scrollable' in $$props) $$invalidate(8, scrollable = $$props.scrollable);
5932
- if ('open' in $$props) $$invalidate(9, open = $$props.open);
7250
+ if ('closable' in $$props) $$invalidate(8, closable = $$props.closable);
7251
+ if ('scrollable' in $$props) $$invalidate(9, scrollable = $$props.scrollable);
7252
+ if ('open' in $$props) $$invalidate(10, open = $$props.open);
7253
+ if ('transition' in $$props) $$invalidate(11, transition = $$props.transition);
5933
7254
  if ('width' in $$props) $$invalidate(1, width = $$props.width);
5934
7255
  };
5935
7256
 
5936
7257
  $$self.$$.update = () => {
5937
- if ($$self.$$.dirty & /*closable*/ 128) {
7258
+ if ($$self.$$.dirty & /*closable*/ 256) {
5938
7259
  $$invalidate(4, isClosable = toBoolean(closable));
5939
7260
  }
5940
7261
 
5941
- if ($$self.$$.dirty & /*scrollable*/ 256) {
5942
- $$invalidate(5, isScrollable = toBoolean(scrollable));
7262
+ if ($$self.$$.dirty & /*scrollable*/ 512) {
7263
+ $$invalidate(6, isScrollable = toBoolean(scrollable));
5943
7264
  }
5944
7265
 
5945
- if ($$self.$$.dirty & /*open*/ 512) {
7266
+ if ($$self.$$.dirty & /*open*/ 1024) {
5946
7267
  $$invalidate(2, isOpen = toBoolean(open));
5947
7268
  }
5948
7269
 
@@ -5953,6 +7274,12 @@ function instance$a($$self, $$props, $$invalidate) {
5953
7274
  }
5954
7275
  }
5955
7276
  }
7277
+
7278
+ if ($$self.$$.dirty & /*transition*/ 2048) {
7279
+ $$invalidate(5, _transitionTime = transition === "none"
7280
+ ? 0
7281
+ : transition === "slow" ? 400 : 200);
7282
+ }
5956
7283
  };
5957
7284
 
5958
7285
  return [
@@ -5961,18 +7288,20 @@ function instance$a($$self, $$props, $$invalidate) {
5961
7288
  isOpen,
5962
7289
  scrollOffset,
5963
7290
  isClosable,
7291
+ _transitionTime,
5964
7292
  isScrollable,
5965
7293
  close,
5966
7294
  closable,
5967
7295
  scrollable,
5968
- open
7296
+ open,
7297
+ transition
5969
7298
  ];
5970
7299
  }
5971
7300
 
5972
7301
  class Modal extends SvelteElement {
5973
7302
  constructor(options) {
5974
7303
  super();
5975
- this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.modal{font-family:var(--font-family);position:absolute;top:var(--scroll-offset, 0);left:0;display:flex;align-items:center;justify-content:center;height:100vh;width:100%;z-index:100}.modal-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.2);z-index:1000}.modal-pane{position:relative;background-color:#fff;z-index:1001;width:var(--width, 60ch);margin:1rem;box-shadow:var(--shadow-2);border-radius:4px;max-height:90%}@media(min-width: 640px){.modal-pane{max-height:80%}}.modal-actions{text-align:right;padding:0 1.75rem;margin:1.75rem 0;flex:1 1 auto}.modal-close{position:absolute;top:1rem;right:1rem}.modal-title{font-size:var(--fs-xl);padding-bottom:1rem;padding:0 1.75rem;margin:1.75rem 0;margin-right:40px;flex:0 0 auto}</style>`;
7304
+ this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.modal{font-family:var(--font-family);position:absolute;top:var(--scroll-offset, 0);left:0;display:flex;align-items:center;justify-content:center;height:100vh;width:100%;z-index:100}.modal-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.2);z-index:1000}.modal-pane{position:relative;background-color:#fff;z-index:1001;width:90%;margin:1rem;box-shadow:var(--shadow-2);border-radius:4px;max-height:90%}@media(min-width: 640px){.modal-pane{width:var(--width, 60ch);max-height:80%}}.modal-actions{text-align:right;padding:0 1.75rem;margin:1.75rem 0;flex:1 1 auto}.modal-close{position:absolute;top:1rem;right:1rem}.modal-title{font-size:var(--fs-xl);padding-bottom:1rem;padding:0 1.75rem;margin:1.75rem 0;margin-right:40px;flex:0 0 auto}</style>`;
5976
7305
 
5977
7306
  init(
5978
7307
  this,
@@ -5986,9 +7315,10 @@ class Modal extends SvelteElement {
5986
7315
  safe_not_equal,
5987
7316
  {
5988
7317
  heading: 0,
5989
- closable: 7,
5990
- scrollable: 8,
5991
- open: 9,
7318
+ closable: 8,
7319
+ scrollable: 9,
7320
+ open: 10,
7321
+ transition: 11,
5992
7322
  width: 1
5993
7323
  },
5994
7324
  null
@@ -6007,7 +7337,7 @@ class Modal extends SvelteElement {
6007
7337
  }
6008
7338
 
6009
7339
  static get observedAttributes() {
6010
- return ["heading", "closable", "scrollable", "open", "width"];
7340
+ return ["heading", "closable", "scrollable", "open", "transition", "width"];
6011
7341
  }
6012
7342
 
6013
7343
  get heading() {
@@ -6020,7 +7350,7 @@ class Modal extends SvelteElement {
6020
7350
  }
6021
7351
 
6022
7352
  get closable() {
6023
- return this.$$.ctx[7];
7353
+ return this.$$.ctx[8];
6024
7354
  }
6025
7355
 
6026
7356
  set closable(closable) {
@@ -6029,7 +7359,7 @@ class Modal extends SvelteElement {
6029
7359
  }
6030
7360
 
6031
7361
  get scrollable() {
6032
- return this.$$.ctx[8];
7362
+ return this.$$.ctx[9];
6033
7363
  }
6034
7364
 
6035
7365
  set scrollable(scrollable) {
@@ -6038,7 +7368,7 @@ class Modal extends SvelteElement {
6038
7368
  }
6039
7369
 
6040
7370
  get open() {
6041
- return this.$$.ctx[9];
7371
+ return this.$$.ctx[10];
6042
7372
  }
6043
7373
 
6044
7374
  set open(open) {
@@ -6046,6 +7376,15 @@ class Modal extends SvelteElement {
6046
7376
  flush();
6047
7377
  }
6048
7378
 
7379
+ get transition() {
7380
+ return this.$$.ctx[11];
7381
+ }
7382
+
7383
+ set transition(transition) {
7384
+ this.$$set({ transition });
7385
+ flush();
7386
+ }
7387
+
6049
7388
  get width() {
6050
7389
  return this.$$.ctx[1];
6051
7390
  }
@@ -6060,7 +7399,7 @@ customElements.define("goa-modal", Modal);
6060
7399
 
6061
7400
  /* libs/web-components/src/components/notification/Notification.svelte generated by Svelte v3.44.3 */
6062
7401
 
6063
- function create_if_block$5(ctx) {
7402
+ function create_if_block$6(ctx) {
6064
7403
  let div3;
6065
7404
  let div0;
6066
7405
  let goa_icon;
@@ -6147,7 +7486,7 @@ function create_if_block$5(ctx) {
6147
7486
  function create_fragment$a(ctx) {
6148
7487
  let if_block_anchor;
6149
7488
  let current;
6150
- let if_block = /*show*/ ctx[1] && create_if_block$5(ctx);
7489
+ let if_block = /*show*/ ctx[1] && create_if_block$6(ctx);
6151
7490
 
6152
7491
  return {
6153
7492
  c() {
@@ -6169,7 +7508,7 @@ function create_fragment$a(ctx) {
6169
7508
  transition_in(if_block, 1);
6170
7509
  }
6171
7510
  } else {
6172
- if_block = create_if_block$5(ctx);
7511
+ if_block = create_if_block$6(ctx);
6173
7512
  if_block.c();
6174
7513
  transition_in(if_block, 1);
6175
7514
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
@@ -6330,12 +7669,12 @@ customElements.define("goa-page-layout", PageLayout);
6330
7669
 
6331
7670
  /* libs/web-components/src/components/circular-progress/CircularProgress.svelte generated by Svelte v3.44.3 */
6332
7671
 
6333
- function create_if_block$4(ctx) {
7672
+ function create_if_block$5(ctx) {
6334
7673
  let current_block_type_index;
6335
7674
  let if_block;
6336
7675
  let if_block_anchor;
6337
7676
  let current;
6338
- const if_block_creators = [create_if_block_1$3, create_if_block_3$1];
7677
+ const if_block_creators = [create_if_block_1$4, create_if_block_3$1];
6339
7678
  const if_blocks = [];
6340
7679
 
6341
7680
  function select_block_type(ctx, dirty) {
@@ -6487,7 +7826,7 @@ function create_if_block_3$1(ctx) {
6487
7826
  }
6488
7827
 
6489
7828
  // (24:2) {#if fullscreen}
6490
- function create_if_block_1$3(ctx) {
7829
+ function create_if_block_1$4(ctx) {
6491
7830
  let div;
6492
7831
  let goa_spinner;
6493
7832
  let goa_spinner_progress_value;
@@ -6496,7 +7835,7 @@ function create_if_block_1$3(ctx) {
6496
7835
  let current;
6497
7836
  let mounted;
6498
7837
  let dispose;
6499
- let if_block = /*message*/ ctx[1] && create_if_block_2$1(ctx);
7838
+ let if_block = /*message*/ ctx[1] && create_if_block_2$2(ctx);
6500
7839
 
6501
7840
  return {
6502
7841
  c() {
@@ -6538,7 +7877,7 @@ function create_if_block_1$3(ctx) {
6538
7877
  if (if_block) {
6539
7878
  if_block.p(ctx, dirty);
6540
7879
  } else {
6541
- if_block = create_if_block_2$1(ctx);
7880
+ if_block = create_if_block_2$2(ctx);
6542
7881
  if_block.c();
6543
7882
  if_block.m(div, null);
6544
7883
  }
@@ -6601,7 +7940,7 @@ function create_if_block_4(ctx) {
6601
7940
  }
6602
7941
 
6603
7942
  // (31:6) {#if message}
6604
- function create_if_block_2$1(ctx) {
7943
+ function create_if_block_2$2(ctx) {
6605
7944
  let div;
6606
7945
  let t;
6607
7946
 
@@ -6627,7 +7966,7 @@ function create_if_block_2$1(ctx) {
6627
7966
  function create_fragment$8(ctx) {
6628
7967
  let if_block_anchor;
6629
7968
  let current;
6630
- let if_block = /*ready*/ ctx[3] && create_if_block$4(ctx);
7969
+ let if_block = /*ready*/ ctx[3] && create_if_block$5(ctx);
6631
7970
 
6632
7971
  return {
6633
7972
  c() {
@@ -6649,7 +7988,7 @@ function create_fragment$8(ctx) {
6649
7988
  transition_in(if_block, 1);
6650
7989
  }
6651
7990
  } else {
6652
- if_block = create_if_block$4(ctx);
7991
+ if_block = create_if_block$5(ctx);
6653
7992
  if_block.c();
6654
7993
  transition_in(if_block, 1);
6655
7994
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
@@ -7477,7 +8816,7 @@ function create_if_block_3(ctx) {
7477
8816
  }
7478
8817
 
7479
8818
  // (42:2) {#if ["alpha", "beta"].includes(level)}
7480
- function create_if_block_1$2(ctx) {
8819
+ function create_if_block_1$3(ctx) {
7481
8820
  let div0;
7482
8821
  let t0_value = capitalize(/*level*/ ctx[0]) + "";
7483
8822
  let t0;
@@ -7487,7 +8826,7 @@ function create_if_block_1$2(ctx) {
7487
8826
  let t2;
7488
8827
  let a;
7489
8828
  let t4;
7490
- let if_block = /*feedbackurl*/ ctx[2] && create_if_block_2(ctx);
8829
+ let if_block = /*feedbackurl*/ ctx[2] && create_if_block_2$1(ctx);
7491
8830
 
7492
8831
  return {
7493
8832
  c() {
@@ -7527,7 +8866,7 @@ function create_if_block_1$2(ctx) {
7527
8866
  if (if_block) {
7528
8867
  if_block.p(ctx, dirty);
7529
8868
  } else {
7530
- if_block = create_if_block_2(ctx);
8869
+ if_block = create_if_block_2$1(ctx);
7531
8870
  if_block.c();
7532
8871
  if_block.m(div1, null);
7533
8872
  }
@@ -7546,7 +8885,7 @@ function create_if_block_1$2(ctx) {
7546
8885
  }
7547
8886
 
7548
8887
  // (52:6) {#if feedbackurl}
7549
- function create_if_block_2(ctx) {
8888
+ function create_if_block_2$1(ctx) {
7550
8889
  let span;
7551
8890
  let t0;
7552
8891
  let a;
@@ -7579,7 +8918,7 @@ function create_if_block_2(ctx) {
7579
8918
  }
7580
8919
 
7581
8920
  // (60:2) {#if version}
7582
- function create_if_block$3(ctx) {
8921
+ function create_if_block$4(ctx) {
7583
8922
  let div;
7584
8923
  let t;
7585
8924
 
@@ -7611,8 +8950,8 @@ function create_fragment$4(ctx) {
7611
8950
  let div;
7612
8951
  let t2;
7613
8952
  let if_block0 = /*level*/ ctx[0] === "live" && create_if_block_3();
7614
- let if_block1 = show_if && create_if_block_1$2(ctx);
7615
- let if_block2 = /*version*/ ctx[1] && create_if_block$3(ctx);
8953
+ let if_block1 = show_if && create_if_block_1$3(ctx);
8954
+ let if_block2 = /*version*/ ctx[1] && create_if_block$4(ctx);
7616
8955
 
7617
8956
  return {
7618
8957
  c() {
@@ -7656,7 +8995,7 @@ function create_fragment$4(ctx) {
7656
8995
  if (if_block1) {
7657
8996
  if_block1.p(ctx, dirty);
7658
8997
  } else {
7659
- if_block1 = create_if_block_1$2(ctx);
8998
+ if_block1 = create_if_block_1$3(ctx);
7660
8999
  if_block1.c();
7661
9000
  if_block1.m(header, t1);
7662
9001
  }
@@ -7669,7 +9008,7 @@ function create_fragment$4(ctx) {
7669
9008
  if (if_block2) {
7670
9009
  if_block2.p(ctx, dirty);
7671
9010
  } else {
7672
- if_block2 = create_if_block$3(ctx);
9011
+ if_block2 = create_if_block$4(ctx);
7673
9012
  if_block2.c();
7674
9013
  if_block2.m(header, null);
7675
9014
  }
@@ -7801,7 +9140,7 @@ function create_else_block(ctx) {
7801
9140
  }
7802
9141
 
7803
9142
  // (20:29)
7804
- function create_if_block_1$1(ctx) {
9143
+ function create_if_block_1$2(ctx) {
7805
9144
  let div2;
7806
9145
  let div0;
7807
9146
  let skeleton0;
@@ -7891,7 +9230,7 @@ function create_if_block_1$1(ctx) {
7891
9230
  }
7892
9231
 
7893
9232
  // (10:0) {#if type === "card"}
7894
- function create_if_block$2(ctx) {
9233
+ function create_if_block$3(ctx) {
7895
9234
  let div1;
7896
9235
  let skeleton0;
7897
9236
  let t0;
@@ -8015,7 +9354,7 @@ function create_fragment$3(ctx) {
8015
9354
  let if_block;
8016
9355
  let if_block_anchor;
8017
9356
  let current;
8018
- const if_block_creators = [create_if_block$2, create_if_block_1$1, create_else_block];
9357
+ const if_block_creators = [create_if_block$3, create_if_block_1$2, create_else_block];
8019
9358
  const if_blocks = [];
8020
9359
 
8021
9360
  function select_block_type(ctx, dirty) {
@@ -8261,7 +9600,7 @@ function tweened(value, defaults = {}) {
8261
9600
 
8262
9601
  /* libs/web-components/src/components/spinner/Spinner.svelte generated by Svelte v3.44.3 */
8263
9602
 
8264
- function create_if_block$1(ctx) {
9603
+ function create_if_block$2(ctx) {
8265
9604
  let svg;
8266
9605
  let circle;
8267
9606
  let circle_stroke_value;
@@ -8372,7 +9711,7 @@ function create_if_block$1(ctx) {
8372
9711
 
8373
9712
  function create_fragment$2(ctx) {
8374
9713
  let if_block_anchor;
8375
- let if_block = /*ready*/ ctx[6] && create_if_block$1(ctx);
9714
+ let if_block = /*ready*/ ctx[6] && create_if_block$2(ctx);
8376
9715
 
8377
9716
  return {
8378
9717
  c() {
@@ -8389,7 +9728,7 @@ function create_fragment$2(ctx) {
8389
9728
  if (if_block) {
8390
9729
  if_block.p(ctx, dirty);
8391
9730
  } else {
8392
- if_block = create_if_block$1(ctx);
9731
+ if_block = create_if_block$2(ctx);
8393
9732
  if_block.c();
8394
9733
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
8395
9734
  }
@@ -8599,30 +9938,148 @@ customElements.define("goa-spinner", Spinner);
8599
9938
 
8600
9939
  /* libs/web-components/src/components/text-area/TextArea.svelte generated by Svelte v3.44.3 */
8601
9940
 
9941
+ function create_if_block$1(ctx) {
9942
+ let if_block_anchor;
9943
+
9944
+ function select_block_type(ctx, dirty) {
9945
+ if (/*maxcharcount*/ ctx[6] > 0) return create_if_block_1$1;
9946
+ if (/*value*/ ctx[1].length > 0) return create_if_block_2;
9947
+ }
9948
+
9949
+ let current_block_type = select_block_type(ctx);
9950
+ let if_block = current_block_type && current_block_type(ctx);
9951
+
9952
+ return {
9953
+ c() {
9954
+ if (if_block) if_block.c();
9955
+ if_block_anchor = empty();
9956
+ },
9957
+ m(target, anchor) {
9958
+ if (if_block) if_block.m(target, anchor);
9959
+ insert(target, if_block_anchor, anchor);
9960
+ },
9961
+ p(ctx, dirty) {
9962
+ if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
9963
+ if_block.p(ctx, dirty);
9964
+ } else {
9965
+ if (if_block) if_block.d(1);
9966
+ if_block = current_block_type && current_block_type(ctx);
9967
+
9968
+ if (if_block) {
9969
+ if_block.c();
9970
+ if_block.m(if_block_anchor.parentNode, if_block_anchor);
9971
+ }
9972
+ }
9973
+ },
9974
+ d(detaching) {
9975
+ if (if_block) {
9976
+ if_block.d(detaching);
9977
+ }
9978
+
9979
+ if (detaching) detach(if_block_anchor);
9980
+ }
9981
+ };
9982
+ }
9983
+
9984
+ // (61:31)
9985
+ function create_if_block_2(ctx) {
9986
+ let div;
9987
+ let t_value = /*value*/ ctx[1].length + "";
9988
+ let t;
9989
+
9990
+ return {
9991
+ c() {
9992
+ div = element("div");
9993
+ t = text(t_value);
9994
+ attr(div, "class", "counter");
9995
+ },
9996
+ m(target, anchor) {
9997
+ insert(target, div, anchor);
9998
+ append(div, t);
9999
+ },
10000
+ p(ctx, dirty) {
10001
+ if (dirty & /*value*/ 2 && t_value !== (t_value = /*value*/ ctx[1].length + "")) set_data(t, t_value);
10002
+ },
10003
+ d(detaching) {
10004
+ if (detaching) detach(div);
10005
+ }
10006
+ };
10007
+ }
10008
+
10009
+ // (55:4) {#if maxcharcount > 0}
10010
+ function create_if_block_1$1(ctx) {
10011
+ let div;
10012
+ let t0_value = /*value*/ ctx[1].length + "";
10013
+ let t0;
10014
+ let t1_value = `/${/*maxcharcount*/ ctx[6]}` + "";
10015
+ let t1;
10016
+
10017
+ return {
10018
+ c() {
10019
+ div = element("div");
10020
+ t0 = text(t0_value);
10021
+ t1 = text(t1_value);
10022
+ attr(div, "class", "counter");
10023
+ toggle_class(div, "counter-error", /*value*/ ctx[1].length > /*maxcharcount*/ ctx[6]);
10024
+ },
10025
+ m(target, anchor) {
10026
+ insert(target, div, anchor);
10027
+ append(div, t0);
10028
+ append(div, t1);
10029
+ },
10030
+ p(ctx, dirty) {
10031
+ if (dirty & /*value*/ 2 && t0_value !== (t0_value = /*value*/ ctx[1].length + "")) set_data(t0, t0_value);
10032
+ if (dirty & /*maxcharcount*/ 64 && t1_value !== (t1_value = `/${/*maxcharcount*/ ctx[6]}` + "")) set_data(t1, t1_value);
10033
+
10034
+ if (dirty & /*value, maxcharcount*/ 66) {
10035
+ toggle_class(div, "counter-error", /*value*/ ctx[1].length > /*maxcharcount*/ ctx[6]);
10036
+ }
10037
+ },
10038
+ d(detaching) {
10039
+ if (detaching) detach(div);
10040
+ }
10041
+ };
10042
+ }
10043
+
8602
10044
  function create_fragment$1(ctx) {
10045
+ let div;
8603
10046
  let textarea;
10047
+ let t;
10048
+ let div_style_value;
8604
10049
  let mounted;
8605
10050
  let dispose;
10051
+ let if_block = /*showCounter*/ ctx[8] && create_if_block$1(ctx);
8606
10052
 
8607
10053
  return {
8608
10054
  c() {
10055
+ div = element("div");
8609
10056
  textarea = element("textarea");
10057
+ t = space();
10058
+ if (if_block) if_block.c();
8610
10059
  this.c = noop;
8611
10060
  attr(textarea, "name", /*name*/ ctx[0]);
8612
10061
  attr(textarea, "placeholder", /*placeholder*/ ctx[2]);
8613
10062
  textarea.value = /*value*/ ctx[1];
8614
10063
  attr(textarea, "rows", /*rows*/ ctx[3]);
8615
10064
  attr(textarea, "class", "goa-textarea");
8616
- textarea.disabled = /*isDisabled*/ ctx[5];
8617
- textarea.readOnly = /*isReadonly*/ ctx[6];
10065
+ textarea.disabled = /*isDisabled*/ ctx[7];
10066
+ textarea.readOnly = /*isReadonly*/ ctx[9];
8618
10067
  attr(textarea, "data-testid", /*testid*/ ctx[4]);
8619
- toggle_class(textarea, "error", /*isError*/ ctx[7]);
10068
+ toggle_class(textarea, "error", /*isError*/ ctx[10]);
10069
+ attr(div, "class", "container");
10070
+
10071
+ attr(div, "style", div_style_value = `
10072
+ --width: ${/*width*/ ctx[5]};
10073
+ `);
8620
10074
  },
8621
10075
  m(target, anchor) {
8622
- insert(target, textarea, anchor);
10076
+ insert(target, div, anchor);
10077
+ append(div, textarea);
10078
+ append(div, t);
10079
+ if (if_block) if_block.m(div, null);
8623
10080
 
8624
10081
  if (!mounted) {
8625
- dispose = listen(textarea, "keyup", /*onChange*/ ctx[8]);
10082
+ dispose = listen(textarea, "keyup", /*onChange*/ ctx[11]);
8626
10083
  mounted = true;
8627
10084
  }
8628
10085
  },
@@ -8643,26 +10100,46 @@ function create_fragment$1(ctx) {
8643
10100
  attr(textarea, "rows", /*rows*/ ctx[3]);
8644
10101
  }
8645
10102
 
8646
- if (dirty & /*isDisabled*/ 32) {
8647
- textarea.disabled = /*isDisabled*/ ctx[5];
10103
+ if (dirty & /*isDisabled*/ 128) {
10104
+ textarea.disabled = /*isDisabled*/ ctx[7];
8648
10105
  }
8649
10106
 
8650
- if (dirty & /*isReadonly*/ 64) {
8651
- textarea.readOnly = /*isReadonly*/ ctx[6];
10107
+ if (dirty & /*isReadonly*/ 512) {
10108
+ textarea.readOnly = /*isReadonly*/ ctx[9];
8652
10109
  }
8653
10110
 
8654
10111
  if (dirty & /*testid*/ 16) {
8655
10112
  attr(textarea, "data-testid", /*testid*/ ctx[4]);
8656
10113
  }
8657
10114
 
8658
- if (dirty & /*isError*/ 128) {
8659
- toggle_class(textarea, "error", /*isError*/ ctx[7]);
10115
+ if (dirty & /*isError*/ 1024) {
10116
+ toggle_class(textarea, "error", /*isError*/ ctx[10]);
10117
+ }
10118
+
10119
+ if (/*showCounter*/ ctx[8]) {
10120
+ if (if_block) {
10121
+ if_block.p(ctx, dirty);
10122
+ } else {
10123
+ if_block = create_if_block$1(ctx);
10124
+ if_block.c();
10125
+ if_block.m(div, null);
10126
+ }
10127
+ } else if (if_block) {
10128
+ if_block.d(1);
10129
+ if_block = null;
10130
+ }
10131
+
10132
+ if (dirty & /*width*/ 32 && div_style_value !== (div_style_value = `
10133
+ --width: ${/*width*/ ctx[5]};
10134
+ `)) {
10135
+ attr(div, "style", div_style_value);
8660
10136
  }
8661
10137
  },
8662
10138
  i: noop,
8663
10139
  o: noop,
8664
10140
  d(detaching) {
8665
- if (detaching) detach(textarea);
10141
+ if (detaching) detach(div);
10142
+ if (if_block) if_block.d();
8666
10143
  mounted = false;
8667
10144
  dispose();
8668
10145
  }
@@ -8673,14 +10150,18 @@ function instance$1($$self, $$props, $$invalidate) {
8673
10150
  let isError;
8674
10151
  let isDisabled;
8675
10152
  let isReadonly;
10153
+ let showCounter;
8676
10154
  let { name } = $$props;
8677
10155
  let { value = "" } = $$props;
8678
10156
  let { placeholder = "" } = $$props;
8679
10157
  let { rows = 3 } = $$props;
8680
10158
  let { testid = "" } = $$props;
10159
+ let { width = "60ch" } = $$props;
8681
10160
  let { error = "false" } = $$props;
8682
10161
  let { readonly = "false" } = $$props;
8683
10162
  let { disabled = "false" } = $$props;
10163
+ let { showcounter = "false" } = $$props;
10164
+ let { maxcharcount = 0 } = $$props;
8684
10165
 
8685
10166
  function onChange(e) {
8686
10167
  const target = e.target;
@@ -8704,22 +10185,29 @@ function instance$1($$self, $$props, $$invalidate) {
8704
10185
  if ('placeholder' in $$props) $$invalidate(2, placeholder = $$props.placeholder);
8705
10186
  if ('rows' in $$props) $$invalidate(3, rows = $$props.rows);
8706
10187
  if ('testid' in $$props) $$invalidate(4, testid = $$props.testid);
8707
- if ('error' in $$props) $$invalidate(9, error = $$props.error);
8708
- if ('readonly' in $$props) $$invalidate(10, readonly = $$props.readonly);
8709
- if ('disabled' in $$props) $$invalidate(11, disabled = $$props.disabled);
10188
+ if ('width' in $$props) $$invalidate(5, width = $$props.width);
10189
+ if ('error' in $$props) $$invalidate(12, error = $$props.error);
10190
+ if ('readonly' in $$props) $$invalidate(13, readonly = $$props.readonly);
10191
+ if ('disabled' in $$props) $$invalidate(14, disabled = $$props.disabled);
10192
+ if ('showcounter' in $$props) $$invalidate(15, showcounter = $$props.showcounter);
10193
+ if ('maxcharcount' in $$props) $$invalidate(6, maxcharcount = $$props.maxcharcount);
8710
10194
  };
8711
10195
 
8712
10196
  $$self.$$.update = () => {
8713
- if ($$self.$$.dirty & /*error*/ 512) {
8714
- $$invalidate(7, isError = toBoolean(error));
10197
+ if ($$self.$$.dirty & /*error*/ 4096) {
10198
+ $$invalidate(10, isError = toBoolean(error));
8715
10199
  }
8716
10200
 
8717
- if ($$self.$$.dirty & /*disabled*/ 2048) {
8718
- $$invalidate(5, isDisabled = toBoolean(disabled));
10201
+ if ($$self.$$.dirty & /*disabled*/ 16384) {
10202
+ $$invalidate(7, isDisabled = toBoolean(disabled));
10203
+ }
10204
+
10205
+ if ($$self.$$.dirty & /*readonly*/ 8192) {
10206
+ $$invalidate(9, isReadonly = toBoolean(readonly));
8719
10207
  }
8720
10208
 
8721
- if ($$self.$$.dirty & /*readonly*/ 1024) {
8722
- $$invalidate(6, isReadonly = toBoolean(readonly));
10209
+ if ($$self.$$.dirty & /*showcounter*/ 32768) {
10210
+ $$invalidate(8, showCounter = toBoolean(showcounter));
8723
10211
  }
8724
10212
  };
8725
10213
 
@@ -8729,20 +10217,26 @@ function instance$1($$self, $$props, $$invalidate) {
8729
10217
  placeholder,
8730
10218
  rows,
8731
10219
  testid,
10220
+ width,
10221
+ maxcharcount,
8732
10222
  isDisabled,
10223
+ showCounter,
8733
10224
  isReadonly,
8734
10225
  isError,
8735
10226
  onChange,
8736
10227
  error,
8737
10228
  readonly,
8738
- disabled
10229
+ disabled,
10230
+ showcounter
8739
10231
  ];
8740
10232
  }
8741
10233
 
8742
10234
  class TextArea extends SvelteElement {
8743
10235
  constructor(options) {
8744
10236
  super();
8745
- this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.goa-textarea{display:block;width:100%;box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--color-gray-600);border-radius:3px;background:var(--color-white);color:var(--color-black, #ccc);padding:var(--input-padding, 0.5rem);font-size:var(--input-font-size);font-family:var(--font-family)}.goa-textarea[readonly]{cursor:pointer}.goa-textarea:hover{border-color:var(--goa-color-interactive--hover)}.goa-textarea:active,.goa-textarea:focus,.goa-textarea:focus-within{box-shadow:0 0 0 3px var(--goa-color-interactive--focus)}.goa-textarea:disabled{border-color:var(--color-gray-200)}.goa-textarea:disabled:hover{border-color:var(--color-gray-200)}.goa-textarea:disabled:focus,.goa-textarea:disabled:active{box-shadow:none}.error:hover,.error:focus,.error{border:2px solid var(--goa-color-status-emergency-dark)}</style>`;
10237
+
10238
+ this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.container{position:relative;width:100%}@media(min-width: 640px){.container{max-width:var(--width)}}.goa-textarea{display:block;width:100%;box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--color-gray-600);border-radius:3px;background:var(--color-white);color:var(--color-black, #ccc);padding:var(--input-padding, 0.5rem);font-size:var(--input-font-size);font-family:var(--font-family);min-width:100%}@media(min-width: 640px){.goa-textarea{min-width:0;width:var(--width)}}.goa-textarea[readonly]{cursor:pointer}.goa-textarea:hover{border-color:var(--goa-color-interactive--hover)}.goa-textarea:active,.goa-textarea:focus,.goa-textarea:focus-within{box-shadow:0 0 0 3px var(--goa-color-interactive--focus)}.goa-textarea:disabled{border-color:var(--color-gray-200)}.goa-textarea:disabled:hover{border-color:var(--color-gray-200)}.goa-textarea:disabled:focus,.goa-textarea:disabled:active{box-shadow:none}.counter{position:absolute;right:0;padding-top:0.25rem;font-size:var(--fs-sm)}.counter-error{color:var(--goa-color-status-emergency-dark)
10239
+ }.error:hover,.error:focus,.error{border:2px solid var(--goa-color-status-emergency-dark)}</style>`;
8746
10240
 
8747
10241
  init(
8748
10242
  this,
@@ -8760,9 +10254,12 @@ class TextArea extends SvelteElement {
8760
10254
  placeholder: 2,
8761
10255
  rows: 3,
8762
10256
  testid: 4,
8763
- error: 9,
8764
- readonly: 10,
8765
- disabled: 11
10257
+ width: 5,
10258
+ error: 12,
10259
+ readonly: 13,
10260
+ disabled: 14,
10261
+ showcounter: 15,
10262
+ maxcharcount: 6
8766
10263
  },
8767
10264
  null
8768
10265
  );
@@ -8786,9 +10283,12 @@ class TextArea extends SvelteElement {
8786
10283
  "placeholder",
8787
10284
  "rows",
8788
10285
  "testid",
10286
+ "width",
8789
10287
  "error",
8790
10288
  "readonly",
8791
- "disabled"
10289
+ "disabled",
10290
+ "showcounter",
10291
+ "maxcharcount"
8792
10292
  ];
8793
10293
  }
8794
10294
 
@@ -8837,8 +10337,17 @@ class TextArea extends SvelteElement {
8837
10337
  flush();
8838
10338
  }
8839
10339
 
10340
+ get width() {
10341
+ return this.$$.ctx[5];
10342
+ }
10343
+
10344
+ set width(width) {
10345
+ this.$$set({ width });
10346
+ flush();
10347
+ }
10348
+
8840
10349
  get error() {
8841
- return this.$$.ctx[9];
10350
+ return this.$$.ctx[12];
8842
10351
  }
8843
10352
 
8844
10353
  set error(error) {
@@ -8847,7 +10356,7 @@ class TextArea extends SvelteElement {
8847
10356
  }
8848
10357
 
8849
10358
  get readonly() {
8850
- return this.$$.ctx[10];
10359
+ return this.$$.ctx[13];
8851
10360
  }
8852
10361
 
8853
10362
  set readonly(readonly) {
@@ -8856,13 +10365,31 @@ class TextArea extends SvelteElement {
8856
10365
  }
8857
10366
 
8858
10367
  get disabled() {
8859
- return this.$$.ctx[11];
10368
+ return this.$$.ctx[14];
8860
10369
  }
8861
10370
 
8862
10371
  set disabled(disabled) {
8863
10372
  this.$$set({ disabled });
8864
10373
  flush();
8865
10374
  }
10375
+
10376
+ get showcounter() {
10377
+ return this.$$.ctx[15];
10378
+ }
10379
+
10380
+ set showcounter(showcounter) {
10381
+ this.$$set({ showcounter });
10382
+ flush();
10383
+ }
10384
+
10385
+ get maxcharcount() {
10386
+ return this.$$.ctx[6];
10387
+ }
10388
+
10389
+ set maxcharcount(maxcharcount) {
10390
+ this.$$set({ maxcharcount });
10391
+ flush();
10392
+ }
8866
10393
  }
8867
10394
 
8868
10395
  customElements.define("goa-textarea", TextArea);
@@ -9098,4 +10625,4 @@ class ContainerWrapper_test extends SvelteElement {
9098
10625
 
9099
10626
  customElements.define("test-container", ContainerWrapper_test);
9100
10627
 
9101
- export { ContainerWrapper_test as ContainerWrapper, AppHeader as GoAAppHeader, Badge as GoABadge, Button as GoAButton, ButtonGroup as GoAButtonGroup, Callout as GoACallout, Card as GoACard, CardActions as GoACardActions, CardContent as GoACardContent, CardGroup as GoACardGroup, CardImage as GoACardImage, Checkbox as GoACheckbox, Chip as GoAChip, CircularProgress as GoACircularProgress, Container as GoAContainer, Dropdown as GoADropdown, DropdownItem as GoADropdownItem, FlexRow as GoAFlexRow, FormItem as GoAFormItem, HeroBanner as GoAHeroBanner, Icon as GoAIcon, IconButton as GoAIconButton, Input as GoAInput, MicrositeHeader as GoAMicrositeHeader, Modal as GoAModal, Notification as GoANotification, PageBlock as GoAPageBlock, PageLayout as GoAPageLayout, RadioGroup as GoARadioGroup, RadioItem as GoARadioItem, Scrollable as GoAScrollable, Skeleton as GoASkeleton, Spinner as GoASpinner, TextArea as GoATextArea };
10628
+ export { ContainerWrapper_test as ContainerWrapper, AppFooter as GoAAppFooter, AppHeader as GoAAppHeader, Badge as GoABadge, Button as GoAButton, ButtonGroup as GoAButtonGroup, Callout as GoACallout, Card as GoACard, CardActions as GoACardActions, CardContent as GoACardContent, CardGroup as GoACardGroup, CardImage as GoACardImage, Checkbox as GoACheckbox, Chip as GoAChip, CircularProgress as GoACircularProgress, Container as GoAContainer, Dropdown as GoADropdown, DropdownItem as GoADropdownItem, FlexRow as GoAFlexRow, FormItem as GoAFormItem, HeroBanner as GoAHeroBanner, Icon as GoAIcon, IconButton as GoAIconButton, Input as GoAInput, MetaLink as GoAMetaLink, MicrositeHeader as GoAMicrositeHeader, Modal as GoAModal, NavigationLink as GoANavigationLink, Notification as GoANotification, PageBlock as GoAPageBlock, PageLayout as GoAPageLayout, RadioGroup as GoARadioGroup, RadioItem as GoARadioItem, Scrollable as GoAScrollable, Skeleton as GoASkeleton, Spinner as GoASpinner, TextArea as GoATextArea };