@biggive/components 1.0.120 → 1.0.122

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.
Files changed (35) hide show
  1. package/dist/biggive/assets/fonts/EuclidTriangle/stylesheet.css +10 -0
  2. package/dist/biggive/biggive.esm.js +1 -1
  3. package/dist/biggive/p-648bdc60.entry.js +1 -0
  4. package/dist/biggive/p-8b2f6103.entry.js +1 -0
  5. package/dist/cjs/{biggive-back-to-top_24.cjs.entry.js → biggive-back-to-top_23.cjs.entry.js} +12 -76
  6. package/dist/cjs/biggive-popup.cjs.entry.js +28 -0
  7. package/dist/cjs/biggive.cjs.js +1 -1
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/collection/assets/fonts/EuclidTriangle/stylesheet.css +10 -0
  10. package/dist/collection/components/biggive-campaign-card/biggive-campaign-card.js +9 -42
  11. package/dist/collection/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.js +7 -15
  12. package/dist/collection/components/biggive-campaign-highlights/biggive-campaign-highlights.js +9 -42
  13. package/dist/collection/components/biggive-footer/biggive-footer.js +1 -1
  14. package/dist/collection/components/biggive-progress-bar/biggive-progress-bar.js +2 -5
  15. package/dist/collection/components/biggive-social-icon/biggive-social-icon.js +3 -3
  16. package/dist/components/biggive-campaign-card-filter-grid.js +13 -27
  17. package/dist/components/biggive-campaign-card.js +3 -20
  18. package/dist/components/biggive-campaign-highlights.js +3 -19
  19. package/dist/components/biggive-footer.js +1 -1
  20. package/dist/components/biggive-popup.js +39 -1
  21. package/dist/components/biggive-progress-bar2.js +1 -4
  22. package/dist/components/biggive-social-icon.js +1 -1
  23. package/dist/esm/{biggive-back-to-top_24.entry.js → biggive-back-to-top_23.entry.js} +13 -76
  24. package/dist/{components/biggive-popup2.js → esm/biggive-popup.entry.js} +8 -25
  25. package/dist/esm/biggive.js +1 -1
  26. package/dist/esm/loader.js +1 -1
  27. package/dist/types/components/biggive-campaign-card/biggive-campaign-card.d.ts +4 -12
  28. package/dist/types/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.d.ts +0 -2
  29. package/dist/types/components/biggive-campaign-highlights/biggive-campaign-highlights.d.ts +4 -12
  30. package/dist/types/components/biggive-progress-bar/biggive-progress-bar.d.ts +1 -2
  31. package/dist/types/components/biggive-social-icon/biggive-social-icon.d.ts +2 -2
  32. package/dist/types/components.d.ts +22 -38
  33. package/hydrate/index.js +16 -60
  34. package/package.json +1 -1
  35. package/dist/biggive/p-429ef990.entry.js +0 -1
@@ -12,9 +12,9 @@ export class BiggiveCampaignCardFilterGrid {
12
12
  this.sortBy = event.target.value;
13
13
  this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
14
14
  };
15
- this.handleApplyFilterButtonClick = () => {
16
- this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
17
- };
15
+ // private handleApplyFilterButtonClick = () => {
16
+ // this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
17
+ // };
18
18
  this.handleSearchButtonPressed = () => {
19
19
  this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
20
20
  };
@@ -26,9 +26,6 @@ export class BiggiveCampaignCardFilterGrid {
26
26
  this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
27
27
  }
28
28
  };
29
- this.handleFilterButtonClick = () => {
30
- this.el.shadowRoot.getElementById('filter-popup').open();
31
- };
32
29
  this.spaceBelow = 0;
33
30
  this.intro = 'Find a charity or project';
34
31
  this.placeholderText = 'Search';
@@ -56,16 +53,11 @@ export class BiggiveCampaignCardFilterGrid {
56
53
  this.filterLocation = this.el.shadowRoot.getElementById('locations').selectedValue;
57
54
  this.filterFunding = this.el.shadowRoot.getElementById('funding').selectedValue;
58
55
  }
56
+ // private handleFilterButtonClick = () => {
57
+ // this.el.shadowRoot.getElementById('filter-popup').open();
58
+ // };
59
59
  render() {
60
- return (h("div", { class: 'container space-below-' + this.spaceBelow }, h("div", { class: "sleeve" }, h("div", { class: "search-wrap" }, h("h4", null, this.intro), h("div", { class: "field-wrap" }, h("div", { class: "input-wrap" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", class: "icon", viewBox: "0 0 512 512" }, h("path", { d: faMagnifyingGlass.icon[4].toString() })), h("input", { type: "text", value: this.searchText, class: "input-text", placeholder: this.placeholderText, onInput: this.handleSearchTextChanged, onKeyDown: this.handleEnterPressed })), h("biggive-button", { onClick: this.handleSearchButtonPressed, label: this.buttonText }))), h("div", { class: "sort-filter-wrap" }, h("div", { class: "sort-wrap" }, h("biggive-form-field-select", { placeholder: "Sort by", id: "sort-by", onDoSelectChange: this.handleSortByChanged }, h("biggive-form-field-select-option", { value: "amountRaised", label: "Most raised" }), h("biggive-form-field-select-option", { value: "matchFundsRemaining", label: "Match funds remaining" }))), h("div", { class: "filter-wrap" }, h("biggive-button", { class: "filter", onClick: this.handleFilterButtonClick, label: "Filters" }), h("biggive-popup", { id: "filter-popup" }, h("h4", { class: "space-above-0 space-below-3 colour-primary" }, "Filters"), h("biggive-form-field-select", { placeholder: "Category", id: "categories", "space-below": "2" }, this.categoryOptions.length === 0
61
- ? undefined
62
- : this.categoryOptions.map(option => h("biggive-form-field-select-option", { value: option, label: option }))), h("biggive-form-field-select", { placeholder: "Beneficiary", id: "beneficiaries", "space-below": "2" }, this.beneficiaryOptions.length === 0
63
- ? undefined
64
- : this.beneficiaryOptions.map(option => h("biggive-form-field-select-option", { value: option, label: option }))), h("biggive-form-field-select", { placeholder: "Location", id: "locations", "space-below": "2" }, this.locationOptions.length === 0
65
- ? undefined
66
- : this.locationOptions.map(option => h("biggive-form-field-select-option", { value: option, label: option }))), h("biggive-form-field-select", { placeholder: "Funding", id: "funding", "space-below": "2" }, this.fundingOptions.length === 0
67
- ? undefined
68
- : this.fundingOptions.map(option => h("biggive-form-field-select-option", { value: option, label: option }))), h("div", { class: "align-right" }, h("biggive-button", { label: "Apply filters", onClick: this.handleApplyFilterButtonClick }))))), h("div", { class: "campaign-grid" }, h("slot", { name: "campaign-grid" })))));
60
+ return (h("div", { class: 'container space-below-' + this.spaceBelow }, h("div", { class: "sleeve" }, h("div", { class: "search-wrap" }, h("h4", null, this.intro), h("div", { class: "field-wrap" }, h("div", { class: "input-wrap" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", class: "icon", viewBox: "0 0 512 512" }, h("path", { d: faMagnifyingGlass.icon[4].toString() })), h("input", { type: "text", value: this.searchText, class: "input-text", placeholder: this.placeholderText, onInput: this.handleSearchTextChanged, onKeyDown: this.handleEnterPressed })), h("biggive-button", { onClick: this.handleSearchButtonPressed, label: this.buttonText }))), h("div", { class: "sort-filter-wrap" }, h("div", { class: "sort-wrap" }, h("biggive-form-field-select", { placeholder: "Sort by", id: "sort-by", onDoSelectChange: this.handleSortByChanged }, h("biggive-form-field-select-option", { value: "amountRaised", label: "Most raised" }), h("biggive-form-field-select-option", { value: "matchFundsRemaining", label: "Match funds remaining" })))), h("div", { class: "campaign-grid" }, h("slot", { name: "campaign-grid" })))));
69
61
  }
70
62
  static get is() { return "biggive-campaign-card-filter-grid"; }
71
63
  static get encapsulation() { return "shadow"; }
@@ -4,7 +4,6 @@ export class BiggiveCampaignHighlights {
4
4
  this.spaceBelow = 0;
5
5
  this.banner = '';
6
6
  this.campaignTitle = null;
7
- this.currencyCode = 'GBP';
8
7
  this.primaryFigureLabel = null;
9
8
  this.primaryFigureAmount = null;
10
9
  this.secondaryFigureLabel = null;
@@ -15,22 +14,8 @@ export class BiggiveCampaignHighlights {
15
14
  this.secondaryStatIcon = null;
16
15
  this.secondaryStatText = null;
17
16
  }
18
- /**
19
- * @returns Whole large currency units (e.g. pounds) formatted with symbol.
20
- */
21
- formatCurrency(currencyCode, amount) {
22
- if (amount === null || isNaN(amount)) {
23
- return '–';
24
- }
25
- return Intl.NumberFormat('en-GB', {
26
- style: 'currency',
27
- currency: currencyCode,
28
- currencyDisplay: 'symbol',
29
- maximumFractionDigits: 0,
30
- }).format(amount);
31
- }
32
17
  render() {
33
- return (h("div", { class: 'container space-below-' + this.spaceBelow }, h("div", { class: "sleeve" }, this.campaignTitle != null ? (h("div", { class: "campaign-title" }, h("span", null, this.campaignTitle))) : null, this.banner.length > 0 ? (h("div", { class: "image-wrap banner", style: { 'background-image': 'url(' + this.banner + ')' } }, h("img", { src: this.banner, class: "banner" }))) : null, h("div", { class: "meta-wrap" }, h("div", { class: "meta-item" }, h("span", { class: "label" }, this.primaryFigureLabel), h("span", { class: "text" }, this.formatCurrency(this.currencyCode, this.primaryFigureAmount))), h("div", { class: "meta-item" }, h("span", { class: "label" }, this.secondaryFigureLabel), h("span", { class: "text" }, this.formatCurrency(this.currencyCode, this.secondaryFigureAmount)))), h("div", { class: "progress-bar-wrap" }, h("biggive-progress-bar", { counter: this.progressBarCounter, "colour-scheme": "primary" })), h("div", { class: "stat-wrap" }, this.primaryStatIcon != null ? (h("div", { class: "stat-item" }, h("biggive-misc-icon", { icon: this.primaryStatIcon, "background-colour": "white", "icon-colour": "tertiary" }), h("span", { class: "label" }, this.primaryStatText))) : null, this.secondaryStatIcon != null ? (h("div", { class: "stat-item" }, h("biggive-misc-icon", { icon: this.secondaryStatIcon, "background-colour": "white", "icon-colour": "tertiary" }), h("span", { class: "label" }, this.secondaryStatText))) : null))));
18
+ return (h("div", { class: 'container space-below-' + this.spaceBelow }, h("div", { class: "sleeve" }, this.campaignTitle != null ? (h("div", { class: "campaign-title" }, h("span", null, this.campaignTitle))) : null, this.banner.length > 0 ? (h("div", { class: "image-wrap banner", style: { 'background-image': 'url(' + this.banner + ')' } }, h("img", { src: this.banner, class: "banner" }))) : null, h("div", { class: "meta-wrap" }, h("div", { class: "meta-item" }, h("span", { class: "label" }, this.primaryFigureLabel), h("span", { class: "text" }, this.primaryFigureAmount)), h("div", { class: "meta-item" }, h("span", { class: "label" }, this.secondaryFigureLabel), h("span", { class: "text" }, this.secondaryFigureAmount))), h("div", { class: "progress-bar-wrap" }, h("biggive-progress-bar", { counter: this.progressBarCounter, "colour-scheme": "primary" })), h("div", { class: "stat-wrap" }, this.primaryStatIcon != null ? (h("div", { class: "stat-item" }, h("biggive-misc-icon", { icon: this.primaryStatIcon, "background-colour": "white", "icon-colour": "tertiary" }), h("span", { class: "label" }, this.primaryStatText))) : null, this.secondaryStatIcon != null ? (h("div", { class: "stat-item" }, h("biggive-misc-icon", { icon: this.secondaryStatIcon, "background-colour": "white", "icon-colour": "tertiary" }), h("span", { class: "label" }, this.secondaryStatText))) : null))));
34
19
  }
35
20
  static get is() { return "biggive-campaign-highlights"; }
36
21
  static get encapsulation() { return "shadow"; }
@@ -100,24 +85,6 @@ export class BiggiveCampaignHighlights {
100
85
  "reflect": false,
101
86
  "defaultValue": "null"
102
87
  },
103
- "currencyCode": {
104
- "type": "string",
105
- "mutable": false,
106
- "complexType": {
107
- "original": "string",
108
- "resolved": "string",
109
- "references": {}
110
- },
111
- "required": false,
112
- "optional": false,
113
- "docs": {
114
- "tags": [],
115
- "text": "e.g. 'GBP'."
116
- },
117
- "attribute": "currency-code",
118
- "reflect": false,
119
- "defaultValue": "'GBP'"
120
- },
121
88
  "primaryFigureLabel": {
122
89
  "type": "string",
123
90
  "mutable": false,
@@ -137,18 +104,18 @@ export class BiggiveCampaignHighlights {
137
104
  "defaultValue": "null"
138
105
  },
139
106
  "primaryFigureAmount": {
140
- "type": "number",
107
+ "type": "string",
141
108
  "mutable": false,
142
109
  "complexType": {
143
- "original": "number",
144
- "resolved": "number",
110
+ "original": "string",
111
+ "resolved": "string",
145
112
  "references": {}
146
113
  },
147
114
  "required": false,
148
115
  "optional": false,
149
116
  "docs": {
150
117
  "tags": [],
151
- "text": "Amount for the primary figure"
118
+ "text": "Amount for the primary figure, formatted with currency symbol"
152
119
  },
153
120
  "attribute": "primary-figure-amount",
154
121
  "reflect": false,
@@ -173,18 +140,18 @@ export class BiggiveCampaignHighlights {
173
140
  "defaultValue": "null"
174
141
  },
175
142
  "secondaryFigureAmount": {
176
- "type": "number",
143
+ "type": "string",
177
144
  "mutable": false,
178
145
  "complexType": {
179
- "original": "number",
180
- "resolved": "number",
146
+ "original": "string",
147
+ "resolved": "string",
181
148
  "references": {}
182
149
  },
183
150
  "required": false,
184
151
  "optional": false,
185
152
  "docs": {
186
153
  "tags": [],
187
- "text": "Amount for the secondary figure"
154
+ "text": "Amount for the secondary figure, formatted with currency symbol"
188
155
  },
189
156
  "attribute": "secondary-figure-amount",
190
157
  "reflect": false,
@@ -13,7 +13,7 @@ export class BiggiveFooter {
13
13
  this.appendMenu('nav-postscript');
14
14
  }
15
15
  render() {
16
- return (h("footer", { class: "footer" }, h("div", { class: "row row-top" }, h("nav", { class: "nav nav-primary" }, h("h5", null, h("slot", { name: "nav-primary-title" }))), h("nav", { class: "nav nav-secondary" }, h("h5", null, h("slot", { name: "nav-secondary-title" }))), h("nav", { class: "nav nav-tertiary" }, h("h5", null, h("slot", { name: "nav-tertiary-title" }))), h("div", { class: "button-wrap" }, h("biggive-button", { "colour-scheme": "white", url: "https://www.thebiggive.org.uk/s/charities", label: "For charities" }), h("biggive-button", { "colour-scheme": "white", url: "https://www.thebiggive.org.uk/s/philanthropists", label: "For funders" }))), h("div", { class: "row row-bottom" }, h("div", { class: "postscript-wrap" }, h("img", { class: "fr-logo", src: getAssetPath('../assets/images/fundraising-regulator.png') }), h("nav", { class: "nav nav-postscript" })), h("div", { class: "social-icon-wrap" }, h("slot", { name: "social-icons" })), h("p", null, "\u00A9 2007 \u2013 2022 The Big Give Trust (1136547) | Company number 07273065 | Dragon Court, 27-29 Macklin Street, London WC2B 5LX, United Kingdom"))));
16
+ return (h("footer", { class: "footer" }, h("div", { class: "row row-top" }, h("nav", { class: "nav nav-primary" }, h("h5", null, h("slot", { name: "nav-primary-title" }))), h("nav", { class: "nav nav-secondary" }, h("h5", null, h("slot", { name: "nav-secondary-title" }))), h("nav", { class: "nav nav-tertiary" }, h("h5", null, h("slot", { name: "nav-tertiary-title" }))), h("div", { class: "button-wrap" }, h("biggive-button", { "colour-scheme": "white", url: "https://www.thebiggive.org.uk/s/charities", label: "For charities" }), h("biggive-button", { "colour-scheme": "white", url: "https://www.thebiggive.org.uk/s/philanthropists", label: "For funders" }))), h("div", { class: "row row-bottom" }, h("div", { class: "postscript-wrap" }, h("img", { class: "fr-logo", src: getAssetPath('../assets/images/fundraising-regulator.png'), alt: "Fundraising Regulator" }), h("nav", { class: "nav nav-postscript" })), h("div", { class: "social-icon-wrap" }, h("slot", { name: "social-icons" })), h("p", null, "\u00A9 2007 \u2013 2022 The Big Give Trust (1136547) | Company number 07273065 | Dragon Court, 27-29 Macklin Street, London WC2B 5LX, United Kingdom"))));
17
17
  }
18
18
  static get is() { return "biggive-footer"; }
19
19
  static get encapsulation() { return "shadow"; }
@@ -5,11 +5,8 @@ export class BiggiveProgressBar {
5
5
  this.colourScheme = 'primary';
6
6
  this.counter = 100;
7
7
  }
8
- getPercentage() {
9
- return Math.round(this.counter);
10
- }
11
8
  render() {
12
- return (h("div", { class: 'progress-bar progress-bar-' + this.colourScheme + ' space-below-' + this.spaceBelow }, h("div", { class: "slider" }, h("div", { class: "progress", style: { width: this.getPercentage() + '%' } })), h("div", { class: "counter" }, this.getPercentage(), "%")));
9
+ return (h("div", { class: 'progress-bar progress-bar-' + this.colourScheme + ' space-below-' + this.spaceBelow }, h("div", { class: "slider" }, h("div", { class: "progress", style: { width: `${this.counter}%` } })), h("div", { class: "counter" }, this.counter, "%")));
13
10
  }
14
11
  static get is() { return "biggive-progress-bar"; }
15
12
  static get encapsulation() { return "shadow"; }
@@ -73,7 +70,7 @@ export class BiggiveProgressBar {
73
70
  "optional": false,
74
71
  "docs": {
75
72
  "tags": [],
76
- "text": "Text"
73
+ "text": "Percentage to show + use for CSS width; round before input if desired"
77
74
  },
78
75
  "attribute": "counter",
79
76
  "reflect": false,
@@ -12,7 +12,7 @@ export class BiggiveSocialIcon {
12
12
  return icon;
13
13
  }
14
14
  render() {
15
- return (h("div", { class: 'social-icon-item background-colour-' + this.backgroundColour }, h("a", { href: this.url, target: "_blank" }, h("svg", { width: this.getSocialIcon().icon[0], height: this.getSocialIcon().icon[1], xmlns: "http://www.w3.org/2000/svg", class: 'fill-' + this.iconColour, viewBox: '0 0 ' + this.getSocialIcon().icon[0] + ' ' + this.getSocialIcon().icon[1] }, h("path", { d: this.getSocialIcon().icon[4].toString() })))));
15
+ return (h("div", { class: 'social-icon-item background-colour-' + this.backgroundColour }, h("a", { href: this.url, "aria-label": `Big Give on ${this.service}`, target: "_blank" }, h("svg", { width: this.getSocialIcon().icon[0], height: this.getSocialIcon().icon[1], xmlns: "http://www.w3.org/2000/svg", class: 'fill-' + this.iconColour, viewBox: '0 0 ' + this.getSocialIcon().icon[0] + ' ' + this.getSocialIcon().icon[1] }, h("path", { d: this.getSocialIcon().icon[4].toString() })))));
16
16
  }
17
17
  static get is() { return "biggive-social-icon"; }
18
18
  static get originalStyleUrls() {
@@ -39,7 +39,7 @@ export class BiggiveSocialIcon {
39
39
  "optional": false,
40
40
  "docs": {
41
41
  "tags": [],
42
- "text": "service"
42
+ "text": "Service name"
43
43
  },
44
44
  "attribute": "service",
45
45
  "reflect": false,
@@ -75,7 +75,7 @@ export class BiggiveSocialIcon {
75
75
  "optional": false,
76
76
  "docs": {
77
77
  "tags": [],
78
- "text": "Background colour"
78
+ "text": "Icon colour"
79
79
  },
80
80
  "attribute": "icon-colour",
81
81
  "reflect": false,
@@ -1,9 +1,8 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
2
  import { f as faMagnifyingGlass } from './index2.js';
3
- import { d as defineCustomElement$5 } from './biggive-button2.js';
4
- import { d as defineCustomElement$4 } from './biggive-form-field-select2.js';
5
- import { d as defineCustomElement$3 } from './biggive-form-field-select-option2.js';
6
- import { d as defineCustomElement$2 } from './biggive-popup2.js';
3
+ import { d as defineCustomElement$4 } from './biggive-button2.js';
4
+ import { d as defineCustomElement$3 } from './biggive-form-field-select2.js';
5
+ import { d as defineCustomElement$2 } from './biggive-form-field-select-option2.js';
7
6
 
8
7
  const biggiveCampaignCardFilterGridCss = "body{background-color:#D7D7D7}h1,h3,h4,h5,h6{margin-bottom:0}h1,.heading-1{font-size:47px;line-height:60px;font-weight:bold}h2,.heading-2{font-size:38px;line-height:45px;font-weight:bold}h3,.heading-3{font-size:25px;line-height:32px;font-weight:bold}h4,.heading-4{font-size:20px;line-height:24px;font-weight:bold}h5,.heading-5{font-size:17px;line-height:24px;font-weight:bold}a{color:inherit;text-decoration:underline}a:hover{text-decoration:none}.colour-primary{color:#2C089B}.colour-secondary{color:#2AF135}.colour-tertiary{color:#FF7272}.colour-white{color:#FFFFFF}.colour-black{color:#000000}.text-colour-hover-primary:hover,.text-colour-primary{color:#2C089B}.text-colour-hover-secondary:hover,.text-colour-secondary{color:#2AF135}.text-colour-hover-tertiary:hover,.text-colour-tertiary{color:#FF7272}.text-colour-hover-white:hover,.text-colour-white{color:#FFFFFF}.text-colour-hover-black:hover,.text-colour-black{color:#000000}.fill-primary{fill:#2C089B}.fill-secondary{fill:#2AF135}.fill-tertiary{fill:#FF7272}.fill-white{fill:#FFFFFF}.fill-black{fill:#000000}.fill-red{fill:red}.background-colour-hover-primary:hover,.background-colour-primary{background-color:#2C089B}.background-colour-hover-secondary:hover,.background-colour-secondary{background-color:#2AF135}.background-colour-hover-tertiary:hover,.background-colour-tertiary{background-color:#FF7272}.background-colour-hover-white:hover,.background-colour-white{background-color:#FFFFFF}.background-colour-hover-black:hover,.background-colour-black{background-color:#000000}.input-wrap{display:flex;justify-content:space-between}.input-text{font-family:\"Euclid Triangle\", sans-serif;font-size:17px;line-height:24px;color:#000000;padding:5px 10px;box-sizing:border-box;width:100%}.input-text:focus{outline:0}.input-text:placeholder{color:#4A4A4A}.button{font-size:17px;line-height:24px;padding:10px 30px;border-radius:5px;border:1px solid #000000;background-color:#000000;filter:drop-shadow(0px 8px 20px rgba(0, 0, 0, 0.22));color:#FFFFFF;display:inline-block;text-decoration:none;text-align:center;transition:all ease-in-out 0.5s;cursor:pointer}.button:hover{background-color:#FFFFFF;color:#000000}.button.size-small{font-size:13px;line-height:17px;padding:5px 15px}.button.button.rounded-true{border-radius:27.5px}.button.button.rounded-true.size-small{border-radius:20px}.button-primary{color:#FFFFFF;background-color:#2C089B;border-color:#2C089B}.button-primary:hover{color:#2C089B;background-color:#FFFFFF}.button-secondary{color:#2C089B;background-color:#2AF135;border-color:#2AF135}.button-secondary:hover{background-color:#FFFFFF}.button-tertiary{color:#FFFFFF;background-color:#FF7272;border-color:#FF7272}.button-tertiary:hover{background-color:#FFFFFF}.button-white{color:#2C089B;background-color:#FFFFFF;border-color:#FFFFFF}.button-white:hover{color:#FFFFFF;background-color:#2C089B}.button-black{color:#FFFFFF;background-color:#000000;border-color:#000000}.button-black:hover{color:#000000;background-color:#FFFFFF}.button-clear-primary{color:#2C089B;background-color:transparent;text-decoration:underline;box-shadow:none;border:0;padding-left:0;padding-right:0}.button-clear-primary:hover{text-decoration:none;background-color:transparent}.button-clear-secondary{color:#2AF135;background-color:transparent;text-decoration:underline;box-shadow:none;border:0;padding-left:0;padding-right:0}.button-clear-secondary:hover{text-decoration:none;background-color:transparent}.button-clear-tertiary{color:#FF7272;background-color:transparent;text-decoration:underline;box-shadow:none;border:0;padding-left:0;padding-right:0}.button-clear-tertiary:hover{text-decoration:none;background-color:transparent}.button-clear-white{color:#FFFFFF;background-color:transparent;text-decoration:underline;box-shadow:none;border:0;padding-left:0;padding-right:0}.button-clear-white:hover{color:#FFFFFF;text-decoration:none;background-color:transparent}.button-rounded{border-radius:27.5px}.button-rounded.size-small{border-radius:20px}.progress-bar{display:flex}.progress-bar .slider{margin:auto 15px auto 0;position:relative;flex-grow:1}.progress-bar .slider:before{content:\"\";position:absolute;display:block;top:0;left:0;bottom:0;right:0;background-color:#E8E8E8;border-radius:4px}.progress-bar .slider .progress{position:relative;border-radius:4px;background-color:#000000;height:8px}.progress-bar .counter{font-weight:700;color:#000000;font-size:14px;line-height:18px}.progress-bar-primary .slider .progress{background-color:#2C089B}.progress-bar-primary .counter{color:#2C089B}.progress-bar-secondary .slider .progress{background-color:#2AF135}.progress-bar-secondary .counter{color:#2AF135}.video-wrap{position:relative;padding-bottom:56.25%}.video-wrap iframe,.video-wrap video{position:absolute;border:0;display:block;left:0;right:0;top:0;bottom:0;width:100%;height:100%}.image-wrap img{width:100%;height:auto}.align-left{text-align:left}.align-right{text-align:right}.align-center{text-align:center}.align-justify{text-align:justify}.space-below-0{margin-bottom:0}.space-below-1{margin-bottom:5px}.space-below-2{margin-bottom:10px}.space-below-3{margin-bottom:15px}.space-below-4{margin-bottom:30px}.space-below-5{margin-bottom:45px}.space-below-6{margin-bottom:60px}.space-above-0{margin-top:0}.space-above-1{margin-top:5px}.space-above-2{margin-top:10px}.space-above-3{margin-top:15px}.space-above-4{margin-top:30px}.space-above-5{margin-top:45px}.space-above-6{margin-top:60px}.horizontal-padding-1{padding-left:5px;padding-right:5px}.horizontal-padding-2{padding-left:10px;padding-right:10px}.horizontal-padding-3{padding-left:15px;padding-right:15px}.horizontal-padding-4{padding-left:30px;padding-right:30px}.horizontal-padding-5{padding-left:45px;padding-right:45px}.horizontal-padding-6{padding-left:60px;padding-right:60px}.vertical-padding-1{padding-top:5px;padding-bottom:5px}.vertical-padding-2{padding-top:10px;padding-bottom:10px}.vertical-padding-3{padding-top:15px;padding-bottom:15px}.vertical-padding-4{padding-top:30px;padding-bottom:30px}.vertical-padding-5{padding-top:45px;padding-bottom:45px}.vertical-padding-6{padding-top:60px;padding-bottom:60px}:host{display:content}.container{font-family:\"Euclid Triangle\", sans-serif;font-size:17px;line-height:24px;position:relative}.container .search-wrap{filter:drop-shadow(-1px 3px 12px rgba(0, 0, 0, 0.25));background-color:#FFFFFF;padding:15px 30px;margin-bottom:60px}.container .search-wrap h4{margin-bottom:15px}.container .search-wrap .field-wrap{display:flex;justify-content:space-between}.container .search-wrap .field-wrap .input-wrap{padding-bottom:5px;border-bottom:1px solid #000000;margin-right:30px;flex-grow:1}.container .search-wrap .field-wrap .input-wrap input{border:0}.container .search-wrap .field-wrap button{padding:5px 30px}.sort-filter-wrap{display:flex;align-items:flex-end;margin-bottom:30px;text-align:right}.sort-filter-wrap .sort-wrap{margin-left:auto}.sort-filter-wrap .filter-wrap{margin-left:15px}.sort-filter-wrap .filter-wrap .button.filter{padding-left:60px;padding-right:30px}.sort-filter-wrap .filter-wrap .button.filter .filter-icon{content:\"\";display:block;position:absolute;left:25px;top:17px;width:13px;height:13px}.sort-filter-wrap .filter-wrap .button.filter .filter-icon svg{width:100%;height:auto;vertical-align:top}.sort-filter-wrap .filter-wrap .button.filter .filter-icon svg:hover{fill:#2C089B}.icon{height:1rem;width:2rem;vertical-align:-0.125rem;margin:auto}.icon>path{fill:#2C089B}";
9
8
 
@@ -23,9 +22,9 @@ const BiggiveCampaignCardFilterGrid$1 = /*@__PURE__*/ proxyCustomElement(class e
23
22
  this.sortBy = event.target.value;
24
23
  this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
25
24
  };
26
- this.handleApplyFilterButtonClick = () => {
27
- this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
28
- };
25
+ // private handleApplyFilterButtonClick = () => {
26
+ // this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
27
+ // };
29
28
  this.handleSearchButtonPressed = () => {
30
29
  this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
31
30
  };
@@ -37,9 +36,6 @@ const BiggiveCampaignCardFilterGrid$1 = /*@__PURE__*/ proxyCustomElement(class e
37
36
  this.doSearchAndFilterUpdate.emit(this.getSearchAndFilterObject());
38
37
  }
39
38
  };
40
- this.handleFilterButtonClick = () => {
41
- this.el.shadowRoot.getElementById('filter-popup').open();
42
- };
43
39
  this.spaceBelow = 0;
44
40
  this.intro = 'Find a charity or project';
45
41
  this.placeholderText = 'Search';
@@ -67,16 +63,11 @@ const BiggiveCampaignCardFilterGrid$1 = /*@__PURE__*/ proxyCustomElement(class e
67
63
  this.filterLocation = this.el.shadowRoot.getElementById('locations').selectedValue;
68
64
  this.filterFunding = this.el.shadowRoot.getElementById('funding').selectedValue;
69
65
  }
66
+ // private handleFilterButtonClick = () => {
67
+ // this.el.shadowRoot.getElementById('filter-popup').open();
68
+ // };
70
69
  render() {
71
- return (h("div", { class: 'container space-below-' + this.spaceBelow }, h("div", { class: "sleeve" }, h("div", { class: "search-wrap" }, h("h4", null, this.intro), h("div", { class: "field-wrap" }, h("div", { class: "input-wrap" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", class: "icon", viewBox: "0 0 512 512" }, h("path", { d: faMagnifyingGlass.icon[4].toString() })), h("input", { type: "text", value: this.searchText, class: "input-text", placeholder: this.placeholderText, onInput: this.handleSearchTextChanged, onKeyDown: this.handleEnterPressed })), h("biggive-button", { onClick: this.handleSearchButtonPressed, label: this.buttonText }))), h("div", { class: "sort-filter-wrap" }, h("div", { class: "sort-wrap" }, h("biggive-form-field-select", { placeholder: "Sort by", id: "sort-by", onDoSelectChange: this.handleSortByChanged }, h("biggive-form-field-select-option", { value: "amountRaised", label: "Most raised" }), h("biggive-form-field-select-option", { value: "matchFundsRemaining", label: "Match funds remaining" }))), h("div", { class: "filter-wrap" }, h("biggive-button", { class: "filter", onClick: this.handleFilterButtonClick, label: "Filters" }), h("biggive-popup", { id: "filter-popup" }, h("h4", { class: "space-above-0 space-below-3 colour-primary" }, "Filters"), h("biggive-form-field-select", { placeholder: "Category", id: "categories", "space-below": "2" }, this.categoryOptions.length === 0
72
- ? undefined
73
- : this.categoryOptions.map(option => h("biggive-form-field-select-option", { value: option, label: option }))), h("biggive-form-field-select", { placeholder: "Beneficiary", id: "beneficiaries", "space-below": "2" }, this.beneficiaryOptions.length === 0
74
- ? undefined
75
- : this.beneficiaryOptions.map(option => h("biggive-form-field-select-option", { value: option, label: option }))), h("biggive-form-field-select", { placeholder: "Location", id: "locations", "space-below": "2" }, this.locationOptions.length === 0
76
- ? undefined
77
- : this.locationOptions.map(option => h("biggive-form-field-select-option", { value: option, label: option }))), h("biggive-form-field-select", { placeholder: "Funding", id: "funding", "space-below": "2" }, this.fundingOptions.length === 0
78
- ? undefined
79
- : this.fundingOptions.map(option => h("biggive-form-field-select-option", { value: option, label: option }))), h("div", { class: "align-right" }, h("biggive-button", { label: "Apply filters", onClick: this.handleApplyFilterButtonClick }))))), h("div", { class: "campaign-grid" }, h("slot", { name: "campaign-grid" })))));
70
+ return (h("div", { class: 'container space-below-' + this.spaceBelow }, h("div", { class: "sleeve" }, h("div", { class: "search-wrap" }, h("h4", null, this.intro), h("div", { class: "field-wrap" }, h("div", { class: "input-wrap" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", class: "icon", viewBox: "0 0 512 512" }, h("path", { d: faMagnifyingGlass.icon[4].toString() })), h("input", { type: "text", value: this.searchText, class: "input-text", placeholder: this.placeholderText, onInput: this.handleSearchTextChanged, onKeyDown: this.handleEnterPressed })), h("biggive-button", { onClick: this.handleSearchButtonPressed, label: this.buttonText }))), h("div", { class: "sort-filter-wrap" }, h("div", { class: "sort-wrap" }, h("biggive-form-field-select", { placeholder: "Sort by", id: "sort-by", onDoSelectChange: this.handleSortByChanged }, h("biggive-form-field-select-option", { value: "amountRaised", label: "Most raised" }), h("biggive-form-field-select-option", { value: "matchFundsRemaining", label: "Match funds remaining" })))), h("div", { class: "campaign-grid" }, h("slot", { name: "campaign-grid" })))));
80
71
  }
81
72
  get el() { return this; }
82
73
  static get style() { return biggiveCampaignCardFilterGridCss; }
@@ -94,7 +85,7 @@ function defineCustomElement$1() {
94
85
  if (typeof customElements === "undefined") {
95
86
  return;
96
87
  }
97
- const components = ["biggive-campaign-card-filter-grid", "biggive-button", "biggive-form-field-select", "biggive-form-field-select-option", "biggive-popup"];
88
+ const components = ["biggive-campaign-card-filter-grid", "biggive-button", "biggive-form-field-select", "biggive-form-field-select-option"];
98
89
  components.forEach(tagName => { switch (tagName) {
99
90
  case "biggive-campaign-card-filter-grid":
100
91
  if (!customElements.get(tagName)) {
@@ -102,21 +93,16 @@ function defineCustomElement$1() {
102
93
  }
103
94
  break;
104
95
  case "biggive-button":
105
- if (!customElements.get(tagName)) {
106
- defineCustomElement$5();
107
- }
108
- break;
109
- case "biggive-form-field-select":
110
96
  if (!customElements.get(tagName)) {
111
97
  defineCustomElement$4();
112
98
  }
113
99
  break;
114
- case "biggive-form-field-select-option":
100
+ case "biggive-form-field-select":
115
101
  if (!customElements.get(tagName)) {
116
102
  defineCustomElement$3();
117
103
  }
118
104
  break;
119
- case "biggive-popup":
105
+ case "biggive-form-field-select-option":
120
106
  if (!customElements.get(tagName)) {
121
107
  defineCustomElement$2();
122
108
  }
@@ -14,7 +14,6 @@ const BiggiveCampaignCard$1 = /*@__PURE__*/ proxyCustomElement(class extends HTM
14
14
  this.banner = null;
15
15
  this.campaignTitle = null;
16
16
  this.organisationName = null;
17
- this.currencyCode = undefined;
18
17
  this.primaryFigureLabel = null;
19
18
  this.primaryFigureAmount = null;
20
19
  this.secondaryFigureLabel = null;
@@ -27,23 +26,8 @@ const BiggiveCampaignCard$1 = /*@__PURE__*/ proxyCustomElement(class extends HTM
27
26
  this.moreInfoButtonUrl = null;
28
27
  this.moreInfoButtonColourScheme = 'clear-primary';
29
28
  }
30
- /**
31
- * @returns Whole large currency units (e.g. pounds) formatted with symbol.
32
- */
33
- formatCurrency(currencyCode, amount) {
34
- if (amount === null || isNaN(amount)) {
35
- return '–';
36
- }
37
- return Intl.NumberFormat('en-GB', {
38
- style: 'currency',
39
- currency: currencyCode,
40
- currencyDisplay: 'symbol',
41
- minimumFractionDigits: 0,
42
- maximumFractionDigits: 0,
43
- }).format(amount);
44
- }
45
29
  render() {
46
- return (h("div", { class: 'container space-below-' + this.spaceBelow.toString() }, h("div", { class: "sleeve" }, this.campaignType !== null ? (h("div", { class: "campaign-type" }, h("span", null, this.campaignType))) : null, this.banner !== null ? (h("div", { class: "image-wrap banner", style: { 'background-image': 'url(' + this.banner + ')' } }, h("img", { src: this.banner, class: "banner" }))) : (h("div", { class: "image-wrap banner" })), h("div", { class: "title-wrap" }, h("h3", null, this.campaignTitle), h("div", { class: "organisation-name" }, "By ", this.organisationName)), h("div", { class: "meta-wrap" }, h("div", { class: "meta-item" }, h("span", { class: "label" }, this.primaryFigureLabel), h("span", { class: "text" }, this.formatCurrency(this.currencyCode, this.primaryFigureAmount))), h("div", { class: "meta-item" }, h("span", { class: "label" }, this.secondaryFigureLabel), h("span", { class: "text" }, this.formatCurrency(this.currencyCode, this.secondaryFigureAmount)))), h("div", { class: "progress-bar-wrap" }, h("biggive-progress-bar", { counter: this.progressBarCounter, "colour-scheme": "primary" })), h("div", { class: "button-wrap" }, h("biggive-button", { "full-width": "true", "colour-scheme": this.donateButtonColourScheme, url: this.donateButtonUrl, label: this.donateButtonLabel }), h("biggive-button", { "full-width": "true", "colour-scheme": this.moreInfoButtonColourScheme, url: this.moreInfoButtonUrl, label: this.moreInfoButtonLabel })))));
30
+ return (h("div", { class: 'container space-below-' + this.spaceBelow.toString() }, h("div", { class: "sleeve" }, this.campaignType !== null ? (h("div", { class: "campaign-type" }, h("span", null, this.campaignType))) : null, this.banner !== null ? (h("div", { class: "image-wrap banner", style: { 'background-image': 'url(' + this.banner + ')' } }, h("img", { src: this.banner, class: "banner" }))) : (h("div", { class: "image-wrap banner" })), h("div", { class: "title-wrap" }, h("h3", null, this.campaignTitle), h("div", { class: "organisation-name" }, "By ", this.organisationName)), h("div", { class: "meta-wrap" }, h("div", { class: "meta-item" }, h("span", { class: "label" }, this.primaryFigureLabel), h("span", { class: "text" }, this.primaryFigureAmount)), h("div", { class: "meta-item" }, h("span", { class: "label" }, this.secondaryFigureLabel), h("span", { class: "text" }, this.secondaryFigureAmount))), h("div", { class: "progress-bar-wrap" }, h("biggive-progress-bar", { counter: this.progressBarCounter, "colour-scheme": "primary" })), h("div", { class: "button-wrap" }, h("biggive-button", { "full-width": "true", "colour-scheme": this.donateButtonColourScheme, url: this.donateButtonUrl, label: this.donateButtonLabel }), h("biggive-button", { "full-width": "true", "colour-scheme": this.moreInfoButtonColourScheme, url: this.moreInfoButtonUrl, label: this.moreInfoButtonLabel })))));
47
31
  }
48
32
  static get style() { return biggiveCampaignCardCss; }
49
33
  }, [1, "biggive-campaign-card", {
@@ -52,11 +36,10 @@ const BiggiveCampaignCard$1 = /*@__PURE__*/ proxyCustomElement(class extends HTM
52
36
  "banner": [1],
53
37
  "campaignTitle": [1, "campaign-title"],
54
38
  "organisationName": [1, "organisation-name"],
55
- "currencyCode": [1, "currency-code"],
56
39
  "primaryFigureLabel": [1, "primary-figure-label"],
57
- "primaryFigureAmount": [2, "primary-figure-amount"],
40
+ "primaryFigureAmount": [1, "primary-figure-amount"],
58
41
  "secondaryFigureLabel": [1, "secondary-figure-label"],
59
- "secondaryFigureAmount": [2, "secondary-figure-amount"],
42
+ "secondaryFigureAmount": [1, "secondary-figure-amount"],
60
43
  "progressBarCounter": [2, "progress-bar-counter"],
61
44
  "donateButtonLabel": [1, "donate-button-label"],
62
45
  "donateButtonUrl": [1, "donate-button-url"],
@@ -12,7 +12,6 @@ const BiggiveCampaignHighlights$1 = /*@__PURE__*/ proxyCustomElement(class exten
12
12
  this.spaceBelow = 0;
13
13
  this.banner = '';
14
14
  this.campaignTitle = null;
15
- this.currencyCode = 'GBP';
16
15
  this.primaryFigureLabel = null;
17
16
  this.primaryFigureAmount = null;
18
17
  this.secondaryFigureLabel = null;
@@ -23,33 +22,18 @@ const BiggiveCampaignHighlights$1 = /*@__PURE__*/ proxyCustomElement(class exten
23
22
  this.secondaryStatIcon = null;
24
23
  this.secondaryStatText = null;
25
24
  }
26
- /**
27
- * @returns Whole large currency units (e.g. pounds) formatted with symbol.
28
- */
29
- formatCurrency(currencyCode, amount) {
30
- if (amount === null || isNaN(amount)) {
31
- return '–';
32
- }
33
- return Intl.NumberFormat('en-GB', {
34
- style: 'currency',
35
- currency: currencyCode,
36
- currencyDisplay: 'symbol',
37
- maximumFractionDigits: 0,
38
- }).format(amount);
39
- }
40
25
  render() {
41
- return (h("div", { class: 'container space-below-' + this.spaceBelow }, h("div", { class: "sleeve" }, this.campaignTitle != null ? (h("div", { class: "campaign-title" }, h("span", null, this.campaignTitle))) : null, this.banner.length > 0 ? (h("div", { class: "image-wrap banner", style: { 'background-image': 'url(' + this.banner + ')' } }, h("img", { src: this.banner, class: "banner" }))) : null, h("div", { class: "meta-wrap" }, h("div", { class: "meta-item" }, h("span", { class: "label" }, this.primaryFigureLabel), h("span", { class: "text" }, this.formatCurrency(this.currencyCode, this.primaryFigureAmount))), h("div", { class: "meta-item" }, h("span", { class: "label" }, this.secondaryFigureLabel), h("span", { class: "text" }, this.formatCurrency(this.currencyCode, this.secondaryFigureAmount)))), h("div", { class: "progress-bar-wrap" }, h("biggive-progress-bar", { counter: this.progressBarCounter, "colour-scheme": "primary" })), h("div", { class: "stat-wrap" }, this.primaryStatIcon != null ? (h("div", { class: "stat-item" }, h("biggive-misc-icon", { icon: this.primaryStatIcon, "background-colour": "white", "icon-colour": "tertiary" }), h("span", { class: "label" }, this.primaryStatText))) : null, this.secondaryStatIcon != null ? (h("div", { class: "stat-item" }, h("biggive-misc-icon", { icon: this.secondaryStatIcon, "background-colour": "white", "icon-colour": "tertiary" }), h("span", { class: "label" }, this.secondaryStatText))) : null))));
26
+ return (h("div", { class: 'container space-below-' + this.spaceBelow }, h("div", { class: "sleeve" }, this.campaignTitle != null ? (h("div", { class: "campaign-title" }, h("span", null, this.campaignTitle))) : null, this.banner.length > 0 ? (h("div", { class: "image-wrap banner", style: { 'background-image': 'url(' + this.banner + ')' } }, h("img", { src: this.banner, class: "banner" }))) : null, h("div", { class: "meta-wrap" }, h("div", { class: "meta-item" }, h("span", { class: "label" }, this.primaryFigureLabel), h("span", { class: "text" }, this.primaryFigureAmount)), h("div", { class: "meta-item" }, h("span", { class: "label" }, this.secondaryFigureLabel), h("span", { class: "text" }, this.secondaryFigureAmount))), h("div", { class: "progress-bar-wrap" }, h("biggive-progress-bar", { counter: this.progressBarCounter, "colour-scheme": "primary" })), h("div", { class: "stat-wrap" }, this.primaryStatIcon != null ? (h("div", { class: "stat-item" }, h("biggive-misc-icon", { icon: this.primaryStatIcon, "background-colour": "white", "icon-colour": "tertiary" }), h("span", { class: "label" }, this.primaryStatText))) : null, this.secondaryStatIcon != null ? (h("div", { class: "stat-item" }, h("biggive-misc-icon", { icon: this.secondaryStatIcon, "background-colour": "white", "icon-colour": "tertiary" }), h("span", { class: "label" }, this.secondaryStatText))) : null))));
42
27
  }
43
28
  static get style() { return biggiveCampaignHighlightsCss; }
44
29
  }, [1, "biggive-campaign-highlights", {
45
30
  "spaceBelow": [2, "space-below"],
46
31
  "banner": [1],
47
32
  "campaignTitle": [1, "campaign-title"],
48
- "currencyCode": [1, "currency-code"],
49
33
  "primaryFigureLabel": [1, "primary-figure-label"],
50
- "primaryFigureAmount": [2, "primary-figure-amount"],
34
+ "primaryFigureAmount": [1, "primary-figure-amount"],
51
35
  "secondaryFigureLabel": [1, "secondary-figure-label"],
52
- "secondaryFigureAmount": [2, "secondary-figure-amount"],
36
+ "secondaryFigureAmount": [1, "secondary-figure-amount"],
53
37
  "progressBarCounter": [2, "progress-bar-counter"],
54
38
  "primaryStatIcon": [1, "primary-stat-icon"],
55
39
  "primaryStatText": [1, "primary-stat-text"],
@@ -22,7 +22,7 @@ const BiggiveFooter$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
22
22
  this.appendMenu('nav-postscript');
23
23
  }
24
24
  render() {
25
- return (h("footer", { class: "footer" }, h("div", { class: "row row-top" }, h("nav", { class: "nav nav-primary" }, h("h5", null, h("slot", { name: "nav-primary-title" }))), h("nav", { class: "nav nav-secondary" }, h("h5", null, h("slot", { name: "nav-secondary-title" }))), h("nav", { class: "nav nav-tertiary" }, h("h5", null, h("slot", { name: "nav-tertiary-title" }))), h("div", { class: "button-wrap" }, h("biggive-button", { "colour-scheme": "white", url: "https://www.thebiggive.org.uk/s/charities", label: "For charities" }), h("biggive-button", { "colour-scheme": "white", url: "https://www.thebiggive.org.uk/s/philanthropists", label: "For funders" }))), h("div", { class: "row row-bottom" }, h("div", { class: "postscript-wrap" }, h("img", { class: "fr-logo", src: getAssetPath('../assets/images/fundraising-regulator.png') }), h("nav", { class: "nav nav-postscript" })), h("div", { class: "social-icon-wrap" }, h("slot", { name: "social-icons" })), h("p", null, "\u00A9 2007 \u2013 2022 The Big Give Trust (1136547) | Company number 07273065 | Dragon Court, 27-29 Macklin Street, London WC2B 5LX, United Kingdom"))));
25
+ return (h("footer", { class: "footer" }, h("div", { class: "row row-top" }, h("nav", { class: "nav nav-primary" }, h("h5", null, h("slot", { name: "nav-primary-title" }))), h("nav", { class: "nav nav-secondary" }, h("h5", null, h("slot", { name: "nav-secondary-title" }))), h("nav", { class: "nav nav-tertiary" }, h("h5", null, h("slot", { name: "nav-tertiary-title" }))), h("div", { class: "button-wrap" }, h("biggive-button", { "colour-scheme": "white", url: "https://www.thebiggive.org.uk/s/charities", label: "For charities" }), h("biggive-button", { "colour-scheme": "white", url: "https://www.thebiggive.org.uk/s/philanthropists", label: "For funders" }))), h("div", { class: "row row-bottom" }, h("div", { class: "postscript-wrap" }, h("img", { class: "fr-logo", src: getAssetPath('../assets/images/fundraising-regulator.png'), alt: "Fundraising Regulator" }), h("nav", { class: "nav nav-postscript" })), h("div", { class: "social-icon-wrap" }, h("slot", { name: "social-icons" })), h("p", null, "\u00A9 2007 \u2013 2022 The Big Give Trust (1136547) | Company number 07273065 | Dragon Court, 27-29 Macklin Street, London WC2B 5LX, United Kingdom"))));
26
26
  }
27
27
  get host() { return this; }
28
28
  static get style() { return biggiveFooterCss; }
@@ -1,4 +1,42 @@
1
- import { B as BiggivePopup$1, d as defineCustomElement$1 } from './biggive-popup2.js';
1
+ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
+
3
+ const biggivePopupCss = "body{background-color:#D7D7D7}h1,h3,h4,h5,h6{margin-bottom:0}h1,.heading-1{font-size:47px;line-height:60px;font-weight:bold}h2,.heading-2{font-size:38px;line-height:45px;font-weight:bold}h3,.heading-3{font-size:25px;line-height:32px;font-weight:bold}h4,.heading-4{font-size:20px;line-height:24px;font-weight:bold}h5,.heading-5{font-size:17px;line-height:24px;font-weight:bold}a{color:inherit;text-decoration:underline}a:hover{text-decoration:none}.colour-primary{color:#2C089B}.colour-secondary{color:#2AF135}.colour-tertiary{color:#FF7272}.colour-white{color:#FFFFFF}.colour-black{color:#000000}.text-colour-hover-primary:hover,.text-colour-primary{color:#2C089B}.text-colour-hover-secondary:hover,.text-colour-secondary{color:#2AF135}.text-colour-hover-tertiary:hover,.text-colour-tertiary{color:#FF7272}.text-colour-hover-white:hover,.text-colour-white{color:#FFFFFF}.text-colour-hover-black:hover,.text-colour-black{color:#000000}.fill-primary{fill:#2C089B}.fill-secondary{fill:#2AF135}.fill-tertiary{fill:#FF7272}.fill-white{fill:#FFFFFF}.fill-black{fill:#000000}.fill-red{fill:red}.background-colour-hover-primary:hover,.background-colour-primary{background-color:#2C089B}.background-colour-hover-secondary:hover,.background-colour-secondary{background-color:#2AF135}.background-colour-hover-tertiary:hover,.background-colour-tertiary{background-color:#FF7272}.background-colour-hover-white:hover,.background-colour-white{background-color:#FFFFFF}.background-colour-hover-black:hover,.background-colour-black{background-color:#000000}.input-wrap{display:flex;justify-content:space-between}.input-text{font-family:\"Euclid Triangle\", sans-serif;font-size:17px;line-height:24px;color:#000000;padding:5px 10px;box-sizing:border-box;width:100%}.input-text:focus{outline:0}.input-text:placeholder{color:#4A4A4A}.button{font-size:17px;line-height:24px;padding:10px 30px;border-radius:5px;border:1px solid #000000;background-color:#000000;filter:drop-shadow(0px 8px 20px rgba(0, 0, 0, 0.22));color:#FFFFFF;display:inline-block;text-decoration:none;text-align:center;transition:all ease-in-out 0.5s;cursor:pointer}.button:hover{background-color:#FFFFFF;color:#000000}.button.size-small{font-size:13px;line-height:17px;padding:5px 15px}.button.button.rounded-true{border-radius:27.5px}.button.button.rounded-true.size-small{border-radius:20px}.button-primary{color:#FFFFFF;background-color:#2C089B;border-color:#2C089B}.button-primary:hover{color:#2C089B;background-color:#FFFFFF}.button-secondary{color:#2C089B;background-color:#2AF135;border-color:#2AF135}.button-secondary:hover{background-color:#FFFFFF}.button-tertiary{color:#FFFFFF;background-color:#FF7272;border-color:#FF7272}.button-tertiary:hover{background-color:#FFFFFF}.button-white{color:#2C089B;background-color:#FFFFFF;border-color:#FFFFFF}.button-white:hover{color:#FFFFFF;background-color:#2C089B}.button-black{color:#FFFFFF;background-color:#000000;border-color:#000000}.button-black:hover{color:#000000;background-color:#FFFFFF}.button-clear-primary{color:#2C089B;background-color:transparent;text-decoration:underline;box-shadow:none;border:0;padding-left:0;padding-right:0}.button-clear-primary:hover{text-decoration:none;background-color:transparent}.button-clear-secondary{color:#2AF135;background-color:transparent;text-decoration:underline;box-shadow:none;border:0;padding-left:0;padding-right:0}.button-clear-secondary:hover{text-decoration:none;background-color:transparent}.button-clear-tertiary{color:#FF7272;background-color:transparent;text-decoration:underline;box-shadow:none;border:0;padding-left:0;padding-right:0}.button-clear-tertiary:hover{text-decoration:none;background-color:transparent}.button-clear-white{color:#FFFFFF;background-color:transparent;text-decoration:underline;box-shadow:none;border:0;padding-left:0;padding-right:0}.button-clear-white:hover{color:#FFFFFF;text-decoration:none;background-color:transparent}.button-rounded{border-radius:27.5px}.button-rounded.size-small{border-radius:20px}.progress-bar{display:flex}.progress-bar .slider{margin:auto 15px auto 0;position:relative;flex-grow:1}.progress-bar .slider:before{content:\"\";position:absolute;display:block;top:0;left:0;bottom:0;right:0;background-color:#E8E8E8;border-radius:4px}.progress-bar .slider .progress{position:relative;border-radius:4px;background-color:#000000;height:8px}.progress-bar .counter{font-weight:700;color:#000000;font-size:14px;line-height:18px}.progress-bar-primary .slider .progress{background-color:#2C089B}.progress-bar-primary .counter{color:#2C089B}.progress-bar-secondary .slider .progress{background-color:#2AF135}.progress-bar-secondary .counter{color:#2AF135}.video-wrap{position:relative;padding-bottom:56.25%}.video-wrap iframe,.video-wrap video{position:absolute;border:0;display:block;left:0;right:0;top:0;bottom:0;width:100%;height:100%}.image-wrap img{width:100%;height:auto}.align-left{text-align:left}.align-right{text-align:right}.align-center{text-align:center}.align-justify{text-align:justify}.space-below-0{margin-bottom:0}.space-below-1{margin-bottom:5px}.space-below-2{margin-bottom:10px}.space-below-3{margin-bottom:15px}.space-below-4{margin-bottom:30px}.space-below-5{margin-bottom:45px}.space-below-6{margin-bottom:60px}.space-above-0{margin-top:0}.space-above-1{margin-top:5px}.space-above-2{margin-top:10px}.space-above-3{margin-top:15px}.space-above-4{margin-top:30px}.space-above-5{margin-top:45px}.space-above-6{margin-top:60px}.horizontal-padding-1{padding-left:5px;padding-right:5px}.horizontal-padding-2{padding-left:10px;padding-right:10px}.horizontal-padding-3{padding-left:15px;padding-right:15px}.horizontal-padding-4{padding-left:30px;padding-right:30px}.horizontal-padding-5{padding-left:45px;padding-right:45px}.horizontal-padding-6{padding-left:60px;padding-right:60px}.vertical-padding-1{padding-top:5px;padding-bottom:5px}.vertical-padding-2{padding-top:10px;padding-bottom:10px}.vertical-padding-3{padding-top:15px;padding-bottom:15px}.vertical-padding-4{padding-top:30px;padding-bottom:30px}.vertical-padding-5{padding-top:45px;padding-bottom:45px}.vertical-padding-6{padding-top:60px;padding-bottom:60px}:host{display:contents}.popup{position:fixed;display:none;z-index:100;top:0;bottom:0;left:0;right:0;padding:15px;background-color:rgba(0, 0, 0, 0.75);transition:all 0.5s ease-in-out}.popup .sleeve{position:relative;max-width:600px;padding:30px;box-sizing:border-box;position:relative;margin-left:auto;margin-right:auto;top:50%;transform:translateY(-50%);background-color:#FFFFFF;text-align:left}.popup .header .close{width:25px;height:25px;position:absolute;top:10px;right:10px;background-color:#2C089B;border-radius:50%;cursor:pointer}.popup[data-visible=true]{display:block}";
4
+
5
+ const BiggivePopup$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
6
+ constructor() {
7
+ super();
8
+ this.__registerHost();
9
+ this.__attachShadow();
10
+ this.close = (event) => {
11
+ if (event.target.classList.contains('popup') || event.target.classList.contains('close')) {
12
+ this.el.shadowRoot.querySelector('.popup').setAttribute('data-visible', 'false');
13
+ }
14
+ };
15
+ }
16
+ async open() {
17
+ this.el.shadowRoot.querySelector('.popup').setAttribute('data-visible', 'true');
18
+ }
19
+ render() {
20
+ return (h("div", { class: "popup", onClick: this.close }, h("div", { class: "sleeve" }, h("div", { class: "header" }, h("div", { class: "close", onClick: this.close })), h("div", { class: "content" }, h("slot", null)))));
21
+ }
22
+ get el() { return this; }
23
+ static get style() { return biggivePopupCss; }
24
+ }, [1, "biggive-popup", {
25
+ "open": [64]
26
+ }]);
27
+ function defineCustomElement$1() {
28
+ if (typeof customElements === "undefined") {
29
+ return;
30
+ }
31
+ const components = ["biggive-popup"];
32
+ components.forEach(tagName => { switch (tagName) {
33
+ case "biggive-popup":
34
+ if (!customElements.get(tagName)) {
35
+ customElements.define(tagName, BiggivePopup$1);
36
+ }
37
+ break;
38
+ } });
39
+ }
2
40
 
3
41
  const BiggivePopup = BiggivePopup$1;
4
42
  const defineCustomElement = defineCustomElement$1;
@@ -11,11 +11,8 @@ const BiggiveProgressBar = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
11
11
  this.colourScheme = 'primary';
12
12
  this.counter = 100;
13
13
  }
14
- getPercentage() {
15
- return Math.round(this.counter);
16
- }
17
14
  render() {
18
- return (h("div", { class: 'progress-bar progress-bar-' + this.colourScheme + ' space-below-' + this.spaceBelow }, h("div", { class: "slider" }, h("div", { class: "progress", style: { width: this.getPercentage() + '%' } })), h("div", { class: "counter" }, this.getPercentage(), "%")));
15
+ return (h("div", { class: 'progress-bar progress-bar-' + this.colourScheme + ' space-below-' + this.spaceBelow }, h("div", { class: "slider" }, h("div", { class: "progress", style: { width: `${this.counter}%` } })), h("div", { class: "counter" }, this.counter, "%")));
19
16
  }
20
17
  static get style() { return biggiveProgressBarCss; }
21
18
  }, [1, "biggive-progress-bar", {
@@ -17,7 +17,7 @@ const BiggiveSocialIcon$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
17
17
  return icon;
18
18
  }
19
19
  render() {
20
- return (h("div", { class: 'social-icon-item background-colour-' + this.backgroundColour }, h("a", { href: this.url, target: "_blank" }, h("svg", { width: this.getSocialIcon().icon[0], height: this.getSocialIcon().icon[1], xmlns: "http://www.w3.org/2000/svg", class: 'fill-' + this.iconColour, viewBox: '0 0 ' + this.getSocialIcon().icon[0] + ' ' + this.getSocialIcon().icon[1] }, h("path", { d: this.getSocialIcon().icon[4].toString() })))));
20
+ return (h("div", { class: 'social-icon-item background-colour-' + this.backgroundColour }, h("a", { href: this.url, "aria-label": `Big Give on ${this.service}`, target: "_blank" }, h("svg", { width: this.getSocialIcon().icon[0], height: this.getSocialIcon().icon[1], xmlns: "http://www.w3.org/2000/svg", class: 'fill-' + this.iconColour, viewBox: '0 0 ' + this.getSocialIcon().icon[0] + ' ' + this.getSocialIcon().icon[1] }, h("path", { d: this.getSocialIcon().icon[4].toString() })))));
21
21
  }
22
22
  static get style() { return biggiveSocialIconCss; }
23
23
  }, [0, "biggive-social-icon", {