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

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,113 +870,1192 @@ 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
877
877
  );
878
878
 
879
- if (options) {
880
- if (options.target) {
881
- insert(options.target, this, options.anchor);
882
- }
883
- }
879
+ if (options) {
880
+ if (options.target) {
881
+ insert(options.target, this, options.anchor);
882
+ }
883
+ }
884
+ }
885
+ }
886
+
887
+ customElements.define("goa-page-block", PageBlock);
888
+
889
+ /* libs/web-components/src/components/app-header/AppHeader.svelte generated by Svelte v3.44.3 */
890
+
891
+ function create_fragment$z(ctx) {
892
+ let div1;
893
+ let a;
894
+ let img0;
895
+ let img0_src_value;
896
+ let t0;
897
+ let img1;
898
+ let img1_src_value;
899
+ let t1;
900
+ let span;
901
+ let t2;
902
+ let t3;
903
+ let div0;
904
+
905
+ return {
906
+ c() {
907
+ div1 = element("div");
908
+ a = element("a");
909
+ img0 = element("img");
910
+ t0 = space();
911
+ img1 = element("img");
912
+ t1 = space();
913
+ span = element("span");
914
+ t2 = text(/*title*/ ctx[1]);
915
+ t3 = space();
916
+ div0 = element("div");
917
+ div0.innerHTML = `<slot></slot>`;
918
+ this.c = noop;
919
+ attr(img0, "alt", "GoA Logo");
920
+ attr(img0, "class", "image-mobile");
921
+ if (!src_url_equal(img0.src, img0_src_value = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='16' height='16' viewBox='0 0 16 16'%3E%3Cdefs%3E%3Cstyle%3E.a%7Bfill:none;%7D.b%7Bfill:%2300aad2;%7D.c%7Bclip-path:url(%23a);%7D.d%7Bfill:%23fff;%7D%3C/style%3E%3CclipPath id='a'%3E%3Crect class='a' width='14' height='14' transform='translate(-0.345 -0.21)'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg transform='translate(0 -0.135)'%3E%3Ccircle class='b' cx='8' cy='8' r='8' transform='translate(0 0.135)'/%3E%3Cg transform='translate(1.345 1.344)'%3E%3Cg class='c' transform='translate(0 0)'%3E%3Cpath class='d' d='M12.612,13.636a16.24,16.24,0,0,1-1.86-.822,13.436,13.436,0,0,0,1.6-.708,11.312,11.312,0,0,0,.264,1.53M16.032,7.3c-.266-.034-.128.091-.2.442a5.465,5.465,0,0,1-2.8,3.338,16.141,16.141,0,0,1,.249-4.84c.275-1,.6-.813.2-1.022-.427-.22-.887.071-1.258.813A27.247,27.247,0,0,1,7.4,13.522a2.141,2.141,0,0,1-2.918.461c-.206-.174-.282.095-.026.37a2.412,2.412,0,0,0,3.387-.082A32.715,32.715,0,0,0,12.219,7.51a23.541,23.541,0,0,0,.063,3.971,11.464,11.464,0,0,1-1.964.749c-.388.1-.628.26-.635.439-.007.2.253.363.63.541.67.318,2.633,1.246,3.117,1.527.414.24.616.053.739-.207.16-.338-.279-.533-.7-.661a13.175,13.175,0,0,1-.382-2.179,7.143,7.143,0,0,0,2.547-2.454,4.7,4.7,0,0,0,.4-1.133,2.125,2.125,0,0,0,.048-.742s-.007-.054-.048-.059' transform='translate(-3.51 -3.943)'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E")) attr(img0, "src", img0_src_value);
922
+ attr(img1, "alt", "GoA Logo");
923
+ attr(img1, "class", "image-desktop");
924
+ if (!src_url_equal(img1.src, img1_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(img1, "src", img1_src_value);
925
+ attr(span, "class", "title");
926
+ attr(a, "href", /*url*/ ctx[0]);
927
+ attr(a, "class", "app-link");
928
+ attr(div1, "class", "app-header");
929
+ attr(div1, "data-testid", /*testid*/ ctx[2]);
930
+ },
931
+ m(target, anchor) {
932
+ insert(target, div1, anchor);
933
+ append(div1, a);
934
+ append(a, img0);
935
+ append(a, t0);
936
+ append(a, img1);
937
+ append(a, t1);
938
+ append(a, span);
939
+ append(span, t2);
940
+ append(div1, t3);
941
+ append(div1, div0);
942
+ },
943
+ p(ctx, [dirty]) {
944
+ if (dirty & /*title*/ 2) set_data(t2, /*title*/ ctx[1]);
945
+
946
+ if (dirty & /*url*/ 1) {
947
+ attr(a, "href", /*url*/ ctx[0]);
948
+ }
949
+
950
+ if (dirty & /*testid*/ 4) {
951
+ attr(div1, "data-testid", /*testid*/ ctx[2]);
952
+ }
953
+ },
954
+ i: noop,
955
+ o: noop,
956
+ d(detaching) {
957
+ if (detaching) detach(div1);
958
+ }
959
+ };
960
+ }
961
+
962
+ function instance$v($$self, $$props, $$invalidate) {
963
+ let { url = "#" } = $$props;
964
+ let { title = "" } = $$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$b(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$6;
1165
+ if (/*navigationLinks*/ ctx[5].length) return create_if_block_3$4;
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$4(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$6(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$f(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$b(ctx);
1549
+ let if_block1 = /*metaLinks*/ ctx[4].length && create_if_block$f(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$b(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$f(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();
884
2008
  }
885
2009
  }
886
2010
 
887
- customElements.define("goa-page-block", PageBlock);
2011
+ customElements.define("goa-meta-link", MetaLink);
888
2012
 
889
- /* libs/web-components/src/components/app-header/AppHeader.svelte generated by Svelte v3.44.3 */
2013
+ /* libs/web-components/src/components/app-footer/NavigationLink.svelte generated by Svelte v3.44.3 */
890
2014
 
891
2015
  function create_fragment$w(ctx) {
892
- let div1;
893
- let a;
894
- let img0;
895
- let img0_src_value;
896
- let t0;
897
- let img1;
898
- let img1_src_value;
899
- let t1;
900
- let span;
901
- let t2;
902
- let t3;
903
- let div0;
904
-
905
2016
  return {
906
2017
  c() {
907
- div1 = element("div");
908
- a = element("a");
909
- img0 = element("img");
910
- t0 = space();
911
- img1 = element("img");
912
- t1 = space();
913
- span = element("span");
914
- t2 = text(/*title*/ ctx[1]);
915
- t3 = space();
916
- div0 = element("div");
917
- div0.innerHTML = `<slot></slot>`;
918
2018
  this.c = noop;
919
- attr(img0, "alt", "GoA Logo");
920
- attr(img0, "class", "image-mobile");
921
- if (!src_url_equal(img0.src, img0_src_value = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='16' height='16' viewBox='0 0 16 16'%3E%3Cdefs%3E%3Cstyle%3E.a%7Bfill:none;%7D.b%7Bfill:%2300aad2;%7D.c%7Bclip-path:url(%23a);%7D.d%7Bfill:%23fff;%7D%3C/style%3E%3CclipPath id='a'%3E%3Crect class='a' width='14' height='14' transform='translate(-0.345 -0.21)'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg transform='translate(0 -0.135)'%3E%3Ccircle class='b' cx='8' cy='8' r='8' transform='translate(0 0.135)'/%3E%3Cg transform='translate(1.345 1.344)'%3E%3Cg class='c' transform='translate(0 0)'%3E%3Cpath class='d' d='M12.612,13.636a16.24,16.24,0,0,1-1.86-.822,13.436,13.436,0,0,0,1.6-.708,11.312,11.312,0,0,0,.264,1.53M16.032,7.3c-.266-.034-.128.091-.2.442a5.465,5.465,0,0,1-2.8,3.338,16.141,16.141,0,0,1,.249-4.84c.275-1,.6-.813.2-1.022-.427-.22-.887.071-1.258.813A27.247,27.247,0,0,1,7.4,13.522a2.141,2.141,0,0,1-2.918.461c-.206-.174-.282.095-.026.37a2.412,2.412,0,0,0,3.387-.082A32.715,32.715,0,0,0,12.219,7.51a23.541,23.541,0,0,0,.063,3.971,11.464,11.464,0,0,1-1.964.749c-.388.1-.628.26-.635.439-.007.2.253.363.63.541.67.318,2.633,1.246,3.117,1.527.414.24.616.053.739-.207.16-.338-.279-.533-.7-.661a13.175,13.175,0,0,1-.382-2.179,7.143,7.143,0,0,0,2.547-2.454,4.7,4.7,0,0,0,.4-1.133,2.125,2.125,0,0,0,.048-.742s-.007-.054-.048-.059' transform='translate(-3.51 -3.943)'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E")) attr(img0, "src", img0_src_value);
922
- attr(img1, "alt", "GoA Logo");
923
- attr(img1, "class", "image-desktop");
924
- if (!src_url_equal(img1.src, img1_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(img1, "src", img1_src_value);
925
- attr(span, "class", "title");
926
- attr(a, "href", /*url*/ ctx[0]);
927
- attr(a, "class", "app-link");
928
- attr(div1, "class", "app-header");
929
- attr(div1, "data-testid", /*testid*/ ctx[2]);
930
- },
931
- m(target, anchor) {
932
- insert(target, div1, anchor);
933
- append(div1, a);
934
- append(a, img0);
935
- append(a, t0);
936
- append(a, img1);
937
- append(a, t1);
938
- append(a, span);
939
- append(span, t2);
940
- append(div1, t3);
941
- append(div1, div0);
942
- },
943
- p(ctx, [dirty]) {
944
- if (dirty & /*title*/ 2) set_data(t2, /*title*/ ctx[1]);
945
-
946
- if (dirty & /*url*/ 1) {
947
- attr(a, "href", /*url*/ ctx[0]);
948
- }
949
-
950
- if (dirty & /*testid*/ 4) {
951
- attr(div1, "data-testid", /*testid*/ ctx[2]);
952
- }
953
2019
  },
2020
+ m: noop,
2021
+ p: noop,
954
2022
  i: noop,
955
2023
  o: noop,
956
- d(detaching) {
957
- if (detaching) detach(div1);
958
- }
2024
+ d: noop
959
2025
  };
960
2026
  }
961
2027
 
962
2028
  function instance$s($$self, $$props, $$invalidate) {
963
- let { url = "#" } = $$props;
2029
+ let { footerid = "goa-app-footer-id" } = $$props;
964
2030
  let { title = "" } = $$props;
965
- let { testid = "" } = $$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") {
@@ -3092,105 +4185,18 @@ class Container extends SvelteElement {
3092
4185
 
3093
4186
  customElements.define("goa-container", Container);
3094
4187
 
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);
3174
- }
3175
- function deleteContext(name) {
3176
- const store = stores[name];
3177
- if (!store)
3178
- return;
3179
- delete stores[name];
3180
- }
3181
-
3182
4188
  const BIND$1 = "bind";
3183
4189
 
3184
4190
  /* libs/web-components/src/components/dropdown/Dropdown.svelte generated by Svelte v3.44.3 */
3185
4191
 
3186
4192
  function get_each_context$1(ctx, list, i) {
3187
4193
  const child_ctx = ctx.slice();
3188
- child_ctx[29] = list[i];
3189
- child_ctx[31] = i;
4194
+ child_ctx[32] = list[i];
4195
+ child_ctx[34] = i;
3190
4196
  return child_ctx;
3191
4197
  }
3192
4198
 
3193
- // (137:2) {#if isMenuVisible}
4199
+ // (144:2) {#if isMenuVisible}
3194
4200
  function create_if_block$a(ctx) {
3195
4201
  let div;
3196
4202
  let div_data_testid_value;
@@ -3207,7 +4213,7 @@ function create_if_block$a(ctx) {
3207
4213
  insert(target, div, anchor);
3208
4214
 
3209
4215
  if (!mounted) {
3210
- dispose = listen(div, "click", /*closeMenu*/ ctx[15]);
4216
+ dispose = listen(div, "click", /*closeMenu*/ ctx[17]);
3211
4217
  mounted = true;
3212
4218
  }
3213
4219
  },
@@ -3224,10 +4230,10 @@ function create_if_block$a(ctx) {
3224
4230
  };
3225
4231
  }
3226
4232
 
3227
- // (171:4) {#each options as option, index (option.value)}
4233
+ // (179:4) {#each options as option, index (option.value)}
3228
4234
  function create_each_block$1(key_1, ctx) {
3229
4235
  let li;
3230
- let t0_value = /*option*/ ctx[29].label + "";
4236
+ let t0_value = /*option*/ ctx[32].label + "";
3231
4237
  let t0;
3232
4238
  let t1;
3233
4239
  let li_data_testid_value;
@@ -3237,7 +4243,7 @@ function create_each_block$1(key_1, ctx) {
3237
4243
  let dispose;
3238
4244
 
3239
4245
  function click_handler() {
3240
- return /*click_handler*/ ctx[18](/*option*/ ctx[29]);
4246
+ return /*click_handler*/ ctx[20](/*option*/ ctx[32]);
3241
4247
  }
3242
4248
 
3243
4249
  return {
@@ -3247,13 +4253,13 @@ function create_each_block$1(key_1, ctx) {
3247
4253
  li = element("li");
3248
4254
  t0 = text(t0_value);
3249
4255
  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]);
4256
+ attr(li, "data-testid", li_data_testid_value = `${/*option*/ ctx[32].value}-dropdown-item`);
4257
+ attr(li, "data-index", li_data_index_value = /*index*/ ctx[34]);
3252
4258
  attr(li, "class", "goa-dropdown-option");
3253
4259
  attr(li, "style", li_style_value = `display: ${"block"}`);
3254
4260
  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]);
4261
+ toggle_class(li, "goa-dropdown-option--tabbed", /*index*/ ctx[34] === /*highlightedIndex*/ ctx[11]);
4262
+ toggle_class(li, "goa-dropdown-option--selected", /*option*/ ctx[32].value === /*value*/ ctx[0]);
3257
4263
  this.first = li;
3258
4264
  },
3259
4265
  m(target, anchor) {
@@ -3268,22 +4274,22 @@ function create_each_block$1(key_1, ctx) {
3268
4274
  },
3269
4275
  p(new_ctx, dirty) {
3270
4276
  ctx = new_ctx;
3271
- if (dirty[0] & /*options*/ 128 && t0_value !== (t0_value = /*option*/ ctx[29].label + "")) set_data(t0, t0_value);
4277
+ if (dirty[0] & /*options*/ 256 && t0_value !== (t0_value = /*option*/ ctx[32].label + "")) set_data(t0, t0_value);
3272
4278
 
3273
- if (dirty[0] & /*options*/ 128 && li_data_testid_value !== (li_data_testid_value = `${/*option*/ ctx[29].value}-dropdown-item`)) {
4279
+ if (dirty[0] & /*options*/ 256 && li_data_testid_value !== (li_data_testid_value = `${/*option*/ ctx[32].value}-dropdown-item`)) {
3274
4280
  attr(li, "data-testid", li_data_testid_value);
3275
4281
  }
3276
4282
 
3277
- if (dirty[0] & /*options*/ 128 && li_data_index_value !== (li_data_index_value = /*index*/ ctx[31])) {
4283
+ if (dirty[0] & /*options*/ 256 && li_data_index_value !== (li_data_index_value = /*index*/ ctx[34])) {
3278
4284
  attr(li, "data-index", li_data_index_value);
3279
4285
  }
3280
4286
 
3281
- if (dirty[0] & /*options, highlightedIndex*/ 1152) {
3282
- toggle_class(li, "goa-dropdown-option--tabbed", /*index*/ ctx[31] === /*highlightedIndex*/ ctx[10]);
4287
+ if (dirty[0] & /*options, highlightedIndex*/ 2304) {
4288
+ toggle_class(li, "goa-dropdown-option--tabbed", /*index*/ ctx[34] === /*highlightedIndex*/ ctx[11]);
3283
4289
  }
3284
4290
 
3285
- if (dirty[0] & /*options, value*/ 129) {
3286
- toggle_class(li, "goa-dropdown-option--selected", /*option*/ ctx[29].value === /*value*/ ctx[0]);
4291
+ if (dirty[0] & /*options, value*/ 257) {
4292
+ toggle_class(li, "goa-dropdown-option--selected", /*option*/ ctx[32].value === /*value*/ ctx[0]);
3287
4293
  }
3288
4294
  },
3289
4295
  d(detaching) {
@@ -3299,6 +4305,7 @@ function create_fragment$j(ctx) {
3299
4305
  let t0;
3300
4306
  let div0;
3301
4307
  let goa_input;
4308
+ let goa_input_width_value;
3302
4309
  let goa_input_id_value;
3303
4310
  let div0_data_testid_value;
3304
4311
  let t1;
@@ -3310,9 +4317,9 @@ function create_fragment$j(ctx) {
3310
4317
  let ul_style_value;
3311
4318
  let mounted;
3312
4319
  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;
4320
+ let if_block = /*isMenuVisible*/ ctx[10] && create_if_block$a(ctx);
4321
+ let each_value = /*options*/ ctx[8];
4322
+ const get_key = ctx => /*option*/ ctx[32].value;
3316
4323
 
3317
4324
  for (let i = 0; i < each_value.length; i += 1) {
3318
4325
  let child_ctx = get_each_context$1(ctx, each_value, i);
@@ -3337,21 +4344,22 @@ function create_fragment$j(ctx) {
3337
4344
  }
3338
4345
 
3339
4346
  this.c = noop;
3340
- set_custom_element_data(goa_input, "error", /*isError*/ ctx[13]);
4347
+ set_custom_element_data(goa_input, "error", /*isError*/ ctx[15]);
3341
4348
  set_custom_element_data(goa_input, "disabled", /*disabled*/ ctx[5]);
3342
4349
  set_custom_element_data(goa_input, "leadingicon", /*leadingicon*/ ctx[2]);
3343
4350
  set_custom_element_data(goa_input, "placeholder", /*placeholder*/ ctx[4]);
4351
+ set_custom_element_data(goa_input, "width", goa_input_width_value = /*width*/ ctx[7] || /*computedWidth*/ ctx[12]);
3344
4352
  set_custom_element_data(goa_input, "id", goa_input_id_value = `${/*name*/ ctx[1]}-dropdown-input`);
3345
4353
  set_custom_element_data(goa_input, "name", "search");
3346
4354
  set_custom_element_data(goa_input, "readonly", "");
3347
4355
  set_custom_element_data(goa_input, "trailingicon", "chevron-down");
3348
4356
  set_custom_element_data(goa_input, "type", "text");
3349
- set_custom_element_data(goa_input, "value", /*selectedLabel*/ ctx[8]);
4357
+ set_custom_element_data(goa_input, "value", /*selectedLabel*/ ctx[9]);
3350
4358
  attr(div0, "data-testid", div0_data_testid_value = `${/*name*/ ctx[1]}-dropdown`);
3351
4359
  attr(ul, "tabindex", "0");
3352
4360
  attr(ul, "class", "goa-dropdown-list");
3353
4361
  attr(ul, "style", ul_style_value = `overflow-y: auto; max-height: ${/*maxheight*/ ctx[3]}px`);
3354
- toggle_class(ul, "dropdown-active", /*isMenuVisible*/ ctx[9]);
4362
+ toggle_class(ul, "dropdown-active", /*isMenuVisible*/ ctx[10]);
3355
4363
  attr(div1, "data-testid", /*testid*/ ctx[6]);
3356
4364
  attr(div1, "class", "goa-dropdown-box");
3357
4365
  },
@@ -3370,16 +4378,16 @@ function create_fragment$j(ctx) {
3370
4378
  each_blocks[i].m(ul, null);
3371
4379
  }
3372
4380
 
3373
- /*ul_binding*/ ctx[19](ul);
3374
- /*div1_binding*/ ctx[20](div1);
4381
+ /*ul_binding*/ ctx[21](ul);
4382
+ /*div1_binding*/ ctx[22](div1);
3375
4383
 
3376
4384
  if (!mounted) {
3377
- dispose = listen(goa_input, "click", /*showMenu*/ ctx[14]);
4385
+ dispose = listen(goa_input, "click", /*showMenu*/ ctx[16]);
3378
4386
  mounted = true;
3379
4387
  }
3380
4388
  },
3381
4389
  p(ctx, dirty) {
3382
- if (/*isMenuVisible*/ ctx[9]) {
4390
+ if (/*isMenuVisible*/ ctx[10]) {
3383
4391
  if (if_block) {
3384
4392
  if_block.p(ctx, dirty);
3385
4393
  } else {
@@ -3392,8 +4400,8 @@ function create_fragment$j(ctx) {
3392
4400
  if_block = null;
3393
4401
  }
3394
4402
 
3395
- if (dirty[0] & /*isError*/ 8192) {
3396
- set_custom_element_data(goa_input, "error", /*isError*/ ctx[13]);
4403
+ if (dirty[0] & /*isError*/ 32768) {
4404
+ set_custom_element_data(goa_input, "error", /*isError*/ ctx[15]);
3397
4405
  }
3398
4406
 
3399
4407
  if (dirty[0] & /*disabled*/ 32) {
@@ -3408,20 +4416,24 @@ function create_fragment$j(ctx) {
3408
4416
  set_custom_element_data(goa_input, "placeholder", /*placeholder*/ ctx[4]);
3409
4417
  }
3410
4418
 
4419
+ if (dirty[0] & /*width, computedWidth*/ 4224 && goa_input_width_value !== (goa_input_width_value = /*width*/ ctx[7] || /*computedWidth*/ ctx[12])) {
4420
+ set_custom_element_data(goa_input, "width", goa_input_width_value);
4421
+ }
4422
+
3411
4423
  if (dirty[0] & /*name*/ 2 && goa_input_id_value !== (goa_input_id_value = `${/*name*/ ctx[1]}-dropdown-input`)) {
3412
4424
  set_custom_element_data(goa_input, "id", goa_input_id_value);
3413
4425
  }
3414
4426
 
3415
- if (dirty[0] & /*selectedLabel*/ 256) {
3416
- set_custom_element_data(goa_input, "value", /*selectedLabel*/ ctx[8]);
4427
+ if (dirty[0] & /*selectedLabel*/ 512) {
4428
+ set_custom_element_data(goa_input, "value", /*selectedLabel*/ ctx[9]);
3417
4429
  }
3418
4430
 
3419
4431
  if (dirty[0] & /*name*/ 2 && div0_data_testid_value !== (div0_data_testid_value = `${/*name*/ ctx[1]}-dropdown`)) {
3420
4432
  attr(div0, "data-testid", div0_data_testid_value);
3421
4433
  }
3422
4434
 
3423
- if (dirty[0] & /*options, highlightedIndex, value, onSelect*/ 66689) {
3424
- each_value = /*options*/ ctx[7];
4435
+ if (dirty[0] & /*options, highlightedIndex, value, onSelect*/ 264449) {
4436
+ each_value = /*options*/ ctx[8];
3425
4437
  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
4438
  }
3427
4439
 
@@ -3429,8 +4441,8 @@ function create_fragment$j(ctx) {
3429
4441
  attr(ul, "style", ul_style_value);
3430
4442
  }
3431
4443
 
3432
- if (dirty[0] & /*isMenuVisible*/ 512) {
3433
- toggle_class(ul, "dropdown-active", /*isMenuVisible*/ ctx[9]);
4444
+ if (dirty[0] & /*isMenuVisible*/ 1024) {
4445
+ toggle_class(ul, "dropdown-active", /*isMenuVisible*/ ctx[10]);
3434
4446
  }
3435
4447
 
3436
4448
  if (dirty[0] & /*testid*/ 64) {
@@ -3447,8 +4459,8 @@ function create_fragment$j(ctx) {
3447
4459
  each_blocks[i].d();
3448
4460
  }
3449
4461
 
3450
- /*ul_binding*/ ctx[19](null);
3451
- /*div1_binding*/ ctx[20](null);
4462
+ /*ul_binding*/ ctx[21](null);
4463
+ /*div1_binding*/ ctx[22](null);
3452
4464
  mounted = false;
3453
4465
  dispose();
3454
4466
  }
@@ -3467,6 +4479,7 @@ function instance$i($$self, $$props, $$invalidate) {
3467
4479
  let { disabled } = $$props;
3468
4480
  let { error } = $$props;
3469
4481
  let { testid } = $$props;
4482
+ let { width } = $$props;
3470
4483
 
3471
4484
  // Private
3472
4485
  let options = [];
@@ -3474,6 +4487,8 @@ function instance$i($$self, $$props, $$invalidate) {
3474
4487
  let selectedLabel = "";
3475
4488
  let isMenuVisible = false;
3476
4489
  let highlightedIndex = 0;
4490
+ let maxLetterCount = 0;
4491
+ let computedWidth;
3477
4492
  let el;
3478
4493
  let menuEl;
3479
4494
  let ctx;
@@ -3501,10 +4516,15 @@ function instance$i($$self, $$props, $$invalidate) {
3501
4516
  {
3502
4517
  const _data = data;
3503
4518
  const selected = value === _data.value;
3504
- $$invalidate(7, options = [...options, Object.assign(Object.assign({}, _data), { selected })]);
4519
+ $$invalidate(8, options = [...options, Object.assign(Object.assign({}, _data), { selected })]);
3505
4520
 
3506
4521
  if (selected) {
3507
- $$invalidate(8, selectedLabel = _data.label);
4522
+ $$invalidate(9, selectedLabel = _data.label);
4523
+ }
4524
+
4525
+ if (!width && maxLetterCount < _data.label.length) {
4526
+ maxLetterCount = _data.label.length;
4527
+ $$invalidate(12, computedWidth = `${Math.max(20, maxLetterCount + 12)}ch`);
3508
4528
  }
3509
4529
 
3510
4530
  setHighlightedIndexToSelected();
@@ -3519,7 +4539,7 @@ function instance$i($$self, $$props, $$invalidate) {
3519
4539
  return;
3520
4540
  }
3521
4541
 
3522
- $$invalidate(9, isMenuVisible = true);
4542
+ $$invalidate(10, isMenuVisible = true);
3523
4543
  await tick();
3524
4544
 
3525
4545
  // hide menu on blur
@@ -3538,16 +4558,16 @@ function instance$i($$self, $$props, $$invalidate) {
3538
4558
  menuEl.removeEventListener("keydown", onMenuKeyDown);
3539
4559
  menuEl.removeEventListener("mouseover", onHighlight);
3540
4560
  setHighlightedIndexToSelected();
3541
- $$invalidate(9, isMenuVisible = false);
4561
+ $$invalidate(10, isMenuVisible = false);
3542
4562
  }
3543
4563
 
3544
4564
  function setHighlightedIndexToSelected() {
3545
- $$invalidate(10, highlightedIndex = options.findIndex(option => option.value === value));
4565
+ $$invalidate(11, highlightedIndex = options.findIndex(option => option.value === value));
3546
4566
  }
3547
4567
 
3548
4568
  // Event handlers
3549
4569
  function onSelect(name, val, label) {
3550
- $$invalidate(8, selectedLabel = label);
4570
+ $$invalidate(9, selectedLabel = label);
3551
4571
  $$invalidate(0, value = val);
3552
4572
  closeMenu();
3553
4573
  el.dispatchEvent(new CustomEvent("_change", { composed: true, detail: { name, value } }));
@@ -3576,14 +4596,14 @@ function instance$i($$self, $$props, $$invalidate) {
3576
4596
  switch (e.key) {
3577
4597
  case "ArrowUp":
3578
4598
  if (highlightedIndex === 0) {
3579
- $$invalidate(10, highlightedIndex = options.length - 1);
4599
+ $$invalidate(11, highlightedIndex = options.length - 1);
3580
4600
  } else {
3581
- $$invalidate(10, highlightedIndex--, highlightedIndex);
4601
+ $$invalidate(11, highlightedIndex--, highlightedIndex);
3582
4602
  }
3583
4603
  e.preventDefault();
3584
4604
  break;
3585
4605
  case "ArrowDown":
3586
- $$invalidate(10, highlightedIndex = (highlightedIndex + 1) % options.length);
4606
+ $$invalidate(11, highlightedIndex = (highlightedIndex + 1) % options.length);
3587
4607
  e.preventDefault();
3588
4608
  break;
3589
4609
  case "Tab":
@@ -3599,7 +4619,7 @@ function instance$i($$self, $$props, $$invalidate) {
3599
4619
  }
3600
4620
 
3601
4621
  function onHighlight(e) {
3602
- $$invalidate(10, highlightedIndex = Number(e.target.dataset.index));
4622
+ $$invalidate(11, highlightedIndex = Number(e.target.dataset.index));
3603
4623
  }
3604
4624
 
3605
4625
  const click_handler = option => onSelect(option.name, option.value, option.label);
@@ -3607,14 +4627,14 @@ function instance$i($$self, $$props, $$invalidate) {
3607
4627
  function ul_binding($$value) {
3608
4628
  binding_callbacks[$$value ? 'unshift' : 'push'](() => {
3609
4629
  menuEl = $$value;
3610
- $$invalidate(12, menuEl);
4630
+ $$invalidate(14, menuEl);
3611
4631
  });
3612
4632
  }
3613
4633
 
3614
4634
  function div1_binding($$value) {
3615
4635
  binding_callbacks[$$value ? 'unshift' : 'push'](() => {
3616
4636
  el = $$value;
3617
- $$invalidate(11, el);
4637
+ $$invalidate(13, el);
3618
4638
  });
3619
4639
  }
3620
4640
 
@@ -3625,14 +4645,15 @@ function instance$i($$self, $$props, $$invalidate) {
3625
4645
  if ('maxheight' in $$props) $$invalidate(3, maxheight = $$props.maxheight);
3626
4646
  if ('placeholder' in $$props) $$invalidate(4, placeholder = $$props.placeholder);
3627
4647
  if ('disabled' in $$props) $$invalidate(5, disabled = $$props.disabled);
3628
- if ('error' in $$props) $$invalidate(17, error = $$props.error);
4648
+ if ('error' in $$props) $$invalidate(19, error = $$props.error);
3629
4649
  if ('testid' in $$props) $$invalidate(6, testid = $$props.testid);
4650
+ if ('width' in $$props) $$invalidate(7, width = $$props.width);
3630
4651
  };
3631
4652
 
3632
4653
  $$self.$$.update = () => {
3633
- if ($$self.$$.dirty[0] & /*error*/ 131072) {
4654
+ if ($$self.$$.dirty[0] & /*error*/ 524288) {
3634
4655
  // TODO: remove this once goa-input has the toBoolean method removed
3635
- $$invalidate(13, isError = error ? "true" : "false");
4656
+ $$invalidate(15, isError = error ? "true" : "false");
3636
4657
  }
3637
4658
  };
3638
4659
 
@@ -3644,10 +4665,12 @@ function instance$i($$self, $$props, $$invalidate) {
3644
4665
  placeholder,
3645
4666
  disabled,
3646
4667
  testid,
4668
+ width,
3647
4669
  options,
3648
4670
  selectedLabel,
3649
4671
  isMenuVisible,
3650
4672
  highlightedIndex,
4673
+ computedWidth,
3651
4674
  el,
3652
4675
  menuEl,
3653
4676
  isError,
@@ -3664,7 +4687,7 @@ function instance$i($$self, $$props, $$invalidate) {
3664
4687
  class Dropdown extends SvelteElement {
3665
4688
  constructor(options) {
3666
4689
  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>`;
4690
+ 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
4691
 
3669
4692
  init(
3670
4693
  this,
@@ -3683,8 +4706,9 @@ class Dropdown extends SvelteElement {
3683
4706
  maxheight: 3,
3684
4707
  placeholder: 4,
3685
4708
  disabled: 5,
3686
- error: 17,
3687
- testid: 6
4709
+ error: 19,
4710
+ testid: 6,
4711
+ width: 7
3688
4712
  },
3689
4713
  null,
3690
4714
  [-1, -1]
@@ -3711,7 +4735,8 @@ class Dropdown extends SvelteElement {
3711
4735
  "placeholder",
3712
4736
  "disabled",
3713
4737
  "error",
3714
- "testid"
4738
+ "testid",
4739
+ "width"
3715
4740
  ];
3716
4741
  }
3717
4742
 
@@ -3770,7 +4795,7 @@ class Dropdown extends SvelteElement {
3770
4795
  }
3771
4796
 
3772
4797
  get error() {
3773
- return this.$$.ctx[17];
4798
+ return this.$$.ctx[19];
3774
4799
  }
3775
4800
 
3776
4801
  set error(error) {
@@ -3786,6 +4811,15 @@ class Dropdown extends SvelteElement {
3786
4811
  this.$$set({ testid });
3787
4812
  flush();
3788
4813
  }
4814
+
4815
+ get width() {
4816
+ return this.$$.ctx[7];
4817
+ }
4818
+
4819
+ set width(width) {
4820
+ this.$$set({ width });
4821
+ flush();
4822
+ }
3789
4823
  }
3790
4824
 
3791
4825
  customElements.define("goa-dropdown", Dropdown);
@@ -3947,7 +4981,7 @@ function instance$g($$self, $$props, $$invalidate) {
3947
4981
  class FlexRow extends SvelteElement {
3948
4982
  constructor(options) {
3949
4983
  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>`;
4984
+ 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
4985
 
3952
4986
  init(
3953
4987
  this,
@@ -4212,7 +5246,7 @@ function instance$f($$self, $$props, $$invalidate) {
4212
5246
  class FormItem extends SvelteElement {
4213
5247
  constructor(options) {
4214
5248
  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>`;
5249
+ 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
5250
 
4217
5251
  init(
4218
5252
  this,
@@ -4949,7 +5983,7 @@ function create_if_block_2$3(ctx) {
4949
5983
  };
4950
5984
  }
4951
5985
 
4952
- // (79:2) {#if trailingicon && !handlesTrailingIconClick}
5986
+ // (81:2) {#if trailingicon && !handlesTrailingIconClick}
4953
5987
  function create_if_block_1$5(ctx) {
4954
5988
  let goa_icon;
4955
5989
 
@@ -4975,7 +6009,7 @@ function create_if_block_1$5(ctx) {
4975
6009
  };
4976
6010
  }
4977
6011
 
4978
- // (83:2) {#if trailingicon && handlesTrailingIconClick}
6012
+ // (85:2) {#if trailingicon && handlesTrailingIconClick}
4979
6013
  function create_if_block$7(ctx) {
4980
6014
  let goa_icon_button;
4981
6015
  let mounted;
@@ -5052,7 +6086,10 @@ function create_fragment$c(ctx) {
5052
6086
  attr(input, "type", /*type*/ ctx[0]);
5053
6087
  input.value = /*value*/ ctx[2];
5054
6088
  attr(input, "placeholder", /*placeholder*/ ctx[3]);
5055
- attr(div, "style", div_style_value = `width: ${/*width*/ ctx[8]};`);
6089
+
6090
+ attr(div, "style", div_style_value = `
6091
+ --width: ${/*width*/ ctx[8]};
6092
+ `);
5056
6093
 
5057
6094
  attr(div, "class", div_class_value = `
5058
6095
  goa-input
@@ -5159,7 +6196,9 @@ function create_fragment$c(ctx) {
5159
6196
  if_block2 = null;
5160
6197
  }
5161
6198
 
5162
- if (dirty & /*width*/ 256 && div_style_value !== (div_style_value = `width: ${/*width*/ ctx[8]};`)) {
6199
+ if (dirty & /*width*/ 256 && div_style_value !== (div_style_value = `
6200
+ --width: ${/*width*/ ctx[8]};
6201
+ `)) {
5163
6202
  attr(div, "style", div_style_value);
5164
6203
  }
5165
6204
 
@@ -5213,7 +6252,7 @@ function instance$b($$self, $$props, $$invalidate) {
5213
6252
  let { readonly = "false" } = $$props;
5214
6253
  let { error = "false" } = $$props;
5215
6254
  let { testid = "" } = $$props;
5216
- let { width = "100%" } = $$props;
6255
+ let { width = "30ch" } = $$props;
5217
6256
  let inputEl;
5218
6257
 
5219
6258
  function onKeyUp(e) {
@@ -5317,7 +6356,7 @@ function instance$b($$self, $$props, $$invalidate) {
5317
6356
  class Input extends SvelteElement {
5318
6357
  constructor(options) {
5319
6358
  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>`;
6359
+ 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;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}.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>`;
5321
6360
 
5322
6361
  init(
5323
6362
  this,
@@ -8601,6 +9640,7 @@ customElements.define("goa-spinner", Spinner);
8601
9640
 
8602
9641
  function create_fragment$1(ctx) {
8603
9642
  let textarea;
9643
+ let textarea_style_value;
8604
9644
  let mounted;
8605
9645
  let dispose;
8606
9646
 
@@ -8612,17 +9652,22 @@ function create_fragment$1(ctx) {
8612
9652
  attr(textarea, "placeholder", /*placeholder*/ ctx[2]);
8613
9653
  textarea.value = /*value*/ ctx[1];
8614
9654
  attr(textarea, "rows", /*rows*/ ctx[3]);
9655
+
9656
+ attr(textarea, "style", textarea_style_value = `
9657
+ --width: ${/*width*/ ctx[5]};
9658
+ `);
9659
+
8615
9660
  attr(textarea, "class", "goa-textarea");
8616
- textarea.disabled = /*isDisabled*/ ctx[5];
8617
- textarea.readOnly = /*isReadonly*/ ctx[6];
9661
+ textarea.disabled = /*isDisabled*/ ctx[6];
9662
+ textarea.readOnly = /*isReadonly*/ ctx[7];
8618
9663
  attr(textarea, "data-testid", /*testid*/ ctx[4]);
8619
- toggle_class(textarea, "error", /*isError*/ ctx[7]);
9664
+ toggle_class(textarea, "error", /*isError*/ ctx[8]);
8620
9665
  },
8621
9666
  m(target, anchor) {
8622
9667
  insert(target, textarea, anchor);
8623
9668
 
8624
9669
  if (!mounted) {
8625
- dispose = listen(textarea, "keyup", /*onChange*/ ctx[8]);
9670
+ dispose = listen(textarea, "keyup", /*onChange*/ ctx[9]);
8626
9671
  mounted = true;
8627
9672
  }
8628
9673
  },
@@ -8643,20 +9688,26 @@ function create_fragment$1(ctx) {
8643
9688
  attr(textarea, "rows", /*rows*/ ctx[3]);
8644
9689
  }
8645
9690
 
8646
- if (dirty & /*isDisabled*/ 32) {
8647
- textarea.disabled = /*isDisabled*/ ctx[5];
9691
+ if (dirty & /*width*/ 32 && textarea_style_value !== (textarea_style_value = `
9692
+ --width: ${/*width*/ ctx[5]};
9693
+ `)) {
9694
+ attr(textarea, "style", textarea_style_value);
9695
+ }
9696
+
9697
+ if (dirty & /*isDisabled*/ 64) {
9698
+ textarea.disabled = /*isDisabled*/ ctx[6];
8648
9699
  }
8649
9700
 
8650
- if (dirty & /*isReadonly*/ 64) {
8651
- textarea.readOnly = /*isReadonly*/ ctx[6];
9701
+ if (dirty & /*isReadonly*/ 128) {
9702
+ textarea.readOnly = /*isReadonly*/ ctx[7];
8652
9703
  }
8653
9704
 
8654
9705
  if (dirty & /*testid*/ 16) {
8655
9706
  attr(textarea, "data-testid", /*testid*/ ctx[4]);
8656
9707
  }
8657
9708
 
8658
- if (dirty & /*isError*/ 128) {
8659
- toggle_class(textarea, "error", /*isError*/ ctx[7]);
9709
+ if (dirty & /*isError*/ 256) {
9710
+ toggle_class(textarea, "error", /*isError*/ ctx[8]);
8660
9711
  }
8661
9712
  },
8662
9713
  i: noop,
@@ -8678,6 +9729,7 @@ function instance$1($$self, $$props, $$invalidate) {
8678
9729
  let { placeholder = "" } = $$props;
8679
9730
  let { rows = 3 } = $$props;
8680
9731
  let { testid = "" } = $$props;
9732
+ let { width = "60ch" } = $$props;
8681
9733
  let { error = "false" } = $$props;
8682
9734
  let { readonly = "false" } = $$props;
8683
9735
  let { disabled = "false" } = $$props;
@@ -8704,22 +9756,23 @@ function instance$1($$self, $$props, $$invalidate) {
8704
9756
  if ('placeholder' in $$props) $$invalidate(2, placeholder = $$props.placeholder);
8705
9757
  if ('rows' in $$props) $$invalidate(3, rows = $$props.rows);
8706
9758
  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);
9759
+ if ('width' in $$props) $$invalidate(5, width = $$props.width);
9760
+ if ('error' in $$props) $$invalidate(10, error = $$props.error);
9761
+ if ('readonly' in $$props) $$invalidate(11, readonly = $$props.readonly);
9762
+ if ('disabled' in $$props) $$invalidate(12, disabled = $$props.disabled);
8710
9763
  };
8711
9764
 
8712
9765
  $$self.$$.update = () => {
8713
- if ($$self.$$.dirty & /*error*/ 512) {
8714
- $$invalidate(7, isError = toBoolean(error));
9766
+ if ($$self.$$.dirty & /*error*/ 1024) {
9767
+ $$invalidate(8, isError = toBoolean(error));
8715
9768
  }
8716
9769
 
8717
- if ($$self.$$.dirty & /*disabled*/ 2048) {
8718
- $$invalidate(5, isDisabled = toBoolean(disabled));
9770
+ if ($$self.$$.dirty & /*disabled*/ 4096) {
9771
+ $$invalidate(6, isDisabled = toBoolean(disabled));
8719
9772
  }
8720
9773
 
8721
- if ($$self.$$.dirty & /*readonly*/ 1024) {
8722
- $$invalidate(6, isReadonly = toBoolean(readonly));
9774
+ if ($$self.$$.dirty & /*readonly*/ 2048) {
9775
+ $$invalidate(7, isReadonly = toBoolean(readonly));
8723
9776
  }
8724
9777
  };
8725
9778
 
@@ -8729,6 +9782,7 @@ function instance$1($$self, $$props, $$invalidate) {
8729
9782
  placeholder,
8730
9783
  rows,
8731
9784
  testid,
9785
+ width,
8732
9786
  isDisabled,
8733
9787
  isReadonly,
8734
9788
  isError,
@@ -8742,7 +9796,7 @@ function instance$1($$self, $$props, $$invalidate) {
8742
9796
  class TextArea extends SvelteElement {
8743
9797
  constructor(options) {
8744
9798
  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>`;
9799
+ 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);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}.error:hover,.error:focus,.error{border:2px solid var(--goa-color-status-emergency-dark)}</style>`;
8746
9800
 
8747
9801
  init(
8748
9802
  this,
@@ -8760,9 +9814,10 @@ class TextArea extends SvelteElement {
8760
9814
  placeholder: 2,
8761
9815
  rows: 3,
8762
9816
  testid: 4,
8763
- error: 9,
8764
- readonly: 10,
8765
- disabled: 11
9817
+ width: 5,
9818
+ error: 10,
9819
+ readonly: 11,
9820
+ disabled: 12
8766
9821
  },
8767
9822
  null
8768
9823
  );
@@ -8786,6 +9841,7 @@ class TextArea extends SvelteElement {
8786
9841
  "placeholder",
8787
9842
  "rows",
8788
9843
  "testid",
9844
+ "width",
8789
9845
  "error",
8790
9846
  "readonly",
8791
9847
  "disabled"
@@ -8837,8 +9893,17 @@ class TextArea extends SvelteElement {
8837
9893
  flush();
8838
9894
  }
8839
9895
 
9896
+ get width() {
9897
+ return this.$$.ctx[5];
9898
+ }
9899
+
9900
+ set width(width) {
9901
+ this.$$set({ width });
9902
+ flush();
9903
+ }
9904
+
8840
9905
  get error() {
8841
- return this.$$.ctx[9];
9906
+ return this.$$.ctx[10];
8842
9907
  }
8843
9908
 
8844
9909
  set error(error) {
@@ -8847,7 +9912,7 @@ class TextArea extends SvelteElement {
8847
9912
  }
8848
9913
 
8849
9914
  get readonly() {
8850
- return this.$$.ctx[10];
9915
+ return this.$$.ctx[11];
8851
9916
  }
8852
9917
 
8853
9918
  set readonly(readonly) {
@@ -8856,7 +9921,7 @@ class TextArea extends SvelteElement {
8856
9921
  }
8857
9922
 
8858
9923
  get disabled() {
8859
- return this.$$.ctx[11];
9924
+ return this.$$.ctx[12];
8860
9925
  }
8861
9926
 
8862
9927
  set disabled(disabled) {
@@ -9098,4 +10163,4 @@ class ContainerWrapper_test extends SvelteElement {
9098
10163
 
9099
10164
  customElements.define("test-container", ContainerWrapper_test);
9100
10165
 
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 };
10166
+ 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 };