@biggive/components 0.0.6 → 0.0.9

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.
@@ -1 +1 @@
1
- import{p as a,b as i}from"./p-ce3d5ebc.js";(()=>{const i=import.meta.url,n={};return""!==i&&(n.resourcesUrl=new URL(".",i).href),a(n)})().then((a=>i([["p-13363c51",[[1,"demo-campaign-cards"],[1,"biggive-campaign-card",{banner:[1],daysRemaining:[2,"days-remaining"],target:[2],organisationName:[1,"organisation-name"],campaignTitle:[1,"campaign-title"],campaignType:[1,"campaign-type"],beneficiaries:[1],categories:[1],matchFundsRemaining:[2,"match-funds-remaining"],totalFundsRaised:[2,"total-funds-raised"],callToActionUrl:[1,"call-to-action-url"],callToActionLabel:[1,"call-to-action-label"]}],[1,"biggive-grid"]]]],a)));
1
+ import{p as a,b as i}from"./p-ce3d5ebc.js";(()=>{const i=import.meta.url,n={};return""!==i&&(n.resourcesUrl=new URL(".",i).href),a(n)})().then((a=>i([["p-59970be1",[[1,"demo-campaign-cards"],[1,"biggive-campaign-card",{banner:[1],daysRemaining:[2,"days-remaining"],currencyCode:[1,"currency-code"],target:[2],organisationName:[1,"organisation-name"],campaignTitle:[1,"campaign-title"],campaignType:[1,"campaign-type"],beneficiaries:[16],categories:[16],matchFundsRemaining:[2,"match-funds-remaining"],totalFundsRaised:[2,"total-funds-raised"],callToActionUrl:[1,"call-to-action-url"],callToActionLabel:[1,"call-to-action-label"]}],[1,"biggive-grid"]]]],a)));
@@ -3,9 +3,9 @@ import{r as e,h as c,g as a}from"./p-ce3d5ebc.js";
3
3
  * Font Awesome Free 6.1.2 by @fontawesome - https://fontawesome.com
4
4
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
5
5
  * Copyright 2022 Fonticons, Inc.
6
- */var i={prefix:"fab",iconName:"accessible-icon",icon:[448,512,[62107],"f368","M423.9 255.8L411 413.1c-3.3 40.7-63.9 35.1-60.6-4.9l10-122.5-41.1 2.3c10.1 20.7 15.8 43.9 15.8 68.5 0 41.2-16.1 78.7-42.3 106.5l-39.3-39.3c57.9-63.7 13.1-167.2-74-167.2-25.9 0-49.5 9.9-67.2 26L73 243.2c22-20.7 50.1-35.1 81.4-40.2l75.3-85.7-42.6-24.8-51.6 46c-30 26.8-70.6-18.5-40.5-45.4l68-60.7c9.8-8.8 24.1-10.2 35.5-3.6 0 0 139.3 80.9 139.5 81.1 16.2 10.1 20.7 36 6.1 52.6L285.7 229l106.1-5.9c18.5-1.1 33.6 14.4 32.1 32.7zm-64.9-154c28.1 0 50.9-22.8 50.9-50.9C409.9 22.8 387.1 0 359 0c-28.1 0-50.9 22.8-50.9 50.9 0 28.1 22.8 50.9 50.9 50.9zM179.6 456.5c-80.6 0-127.4-90.6-82.7-156.1l-39.7-39.7C36.4 287 24 320.3 24 356.4c0 130.7 150.7 201.4 251.4 122.5l-39.7-39.7c-16 10.9-35.3 17.3-56.1 17.3z"]},t={prefix:"fas",iconName:"baby",icon:[448,512,[],"f77c","M156.8 411.8l31.22-31.22l-60.04-53.09l-52.29 52.28C61.63 393.8 60.07 416.1 72 432l48 64C127.9 506.5 139.9 512 152 512c8.345 0 16.78-2.609 23.97-8c17.69-13.25 21.25-38.33 8-56L156.8 411.8zM224 159.1c44.25 0 79.99-35.75 79.99-79.1S268.3 0 224 0S144 35.75 144 79.1S179.8 159.1 224 159.1zM408.7 145c-12.75-18.12-37.63-22.38-55.76-9.75l-40.63 28.5c-52.63 37-124.1 37-176.8 0l-40.63-28.5C76.84 122.6 51.97 127 39.22 145C26.59 163.1 30.97 188 48.97 200.8l40.63 28.5C101.7 237.7 114.7 244.3 128 250.2L128 288h192l.0002-37.71c13.25-5.867 26.22-12.48 38.34-21.04l40.63-28.5C417.1 188 421.4 163.1 408.7 145zM320 327.4l-60.04 53.09l31.22 31.22L264 448c-13.25 17.67-9.689 42.75 8 56C279.2 509.4 287.6 512 295.1 512c12.16 0 24.19-5.516 32.03-16l48-64c11.94-15.92 10.38-38.2-3.719-52.28L320 327.4z"]},n={prefix:"fas",iconName:"book",icon:[448,512,[128212],"f02d","M448 336v-288C448 21.49 426.5 0 400 0H96C42.98 0 0 42.98 0 96v320c0 53.02 42.98 96 96 96h320c17.67 0 32-14.33 32-31.1c0-11.72-6.607-21.52-16-27.1v-81.36C441.8 362.8 448 350.2 448 336zM143.1 128h192C344.8 128 352 135.2 352 144C352 152.8 344.8 160 336 160H143.1C135.2 160 128 152.8 128 144C128 135.2 135.2 128 143.1 128zM143.1 192h192C344.8 192 352 199.2 352 208C352 216.8 344.8 224 336 224H143.1C135.2 224 128 216.8 128 208C128 199.2 135.2 192 143.1 192zM384 448H96c-17.67 0-32-14.33-32-32c0-17.67 14.33-32 32-32h288V448z"]},l={prefix:"fas",iconName:"campground",icon:[576,512,[9978],"f6bb","M328.1 112L563.7 405.4C571.7 415.4 576 427.7 576 440.4V464C576 490.5 554.5 512 528 512H48C21.49 512 0 490.5 0 464V440.4C0 427.7 4.328 415.4 12.27 405.4L247 112L199 51.99C187.1 38.19 190.2 18.05 204 7.013C217.8-4.027 237.9-1.789 248.1 12.01L288 60.78L327 12.01C338.1-1.789 358.2-4.027 371.1 7.013C385.8 18.05 388 38.19 376.1 51.99L328.1 112zM407.5 448L288 291.7L168.5 448H407.5z"]},s={prefix:"fas",iconName:"child",icon:[320,512,[],"f1ae","M224 64C224 99.35 195.3 128 160 128C124.7 128 96 99.35 96 64C96 28.65 124.7 0 160 0C195.3 0 224 28.65 224 64zM144 384V480C144 497.7 129.7 512 112 512C94.33 512 80.01 497.7 80.01 480V287.8L59.09 321C49.67 336 29.92 340.5 14.96 331.1C.0016 321.7-4.491 301.9 4.924 286.1L44.79 223.6C69.72 184 113.2 160 160 160C206.8 160 250.3 184 275.2 223.6L315.1 286.1C324.5 301.9 320 321.7 305.1 331.1C290.1 340.5 270.3 336 260.9 321L240 287.8V480C240 497.7 225.7 512 208 512C190.3 512 176 497.7 176 480V384L144 384z"]},o={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 128c17.67 0 32 14.33 32 32c0 17.67-14.33 32-32 32S224 177.7 224 160C224 142.3 238.3 128 256 128zM296 384h-80C202.8 384 192 373.3 192 360s10.75-24 24-24h16v-64H224c-13.25 0-24-10.75-24-24S210.8 224 224 224h32c13.25 0 24 10.75 24 24v88h16c13.25 0 24 10.75 24 24S309.3 384 296 384z"]},r={prefix:"fas",iconName:"futbol",icon:[512,512,[9917,"futbol-ball","soccer-ball"],"f1e3","M177.1 228.6L207.9 320h96.5l29.62-91.38L256 172.1L177.1 228.6zM255.1 0C114.6 0 .0001 114.6 .0001 256S114.6 512 256 512s255.1-114.6 255.1-255.1S397.4 0 255.1 0zM416.6 360.9l-85.4-1.297l-25.15 81.59C290.1 445.5 273.4 448 256 448s-34.09-2.523-50.09-6.859L180.8 359.6l-85.4 1.297c-18.12-27.66-29.15-60.27-30.88-95.31L134.3 216.4L106.6 135.6c21.16-26.21 49.09-46.61 81.06-58.84L256 128l68.29-51.22c31.98 12.23 59.9 32.64 81.06 58.84L377.7 216.4l69.78 49.1C445.8 300.6 434.8 333.2 416.6 360.9z"]},C={prefix:"fas",iconName:"heart-pulse",icon:[576,512,["heartbeat"],"f21e","M352.4 243.8l-49.83 99.5c-6.009 12-23.41 11.62-28.92-.625L216.7 216.3l-30.05 71.75L88.55 288l176.4 182.2c12.66 13.07 33.36 13.07 46.03 0l176.4-182.2l-112.1 .0052L352.4 243.8zM495.2 62.86c-54.36-46.98-137.5-38.5-187.5 13.06L288 96.25L268.3 75.92C218.3 24.36 135.2 15.88 80.81 62.86C23.37 112.5 16.84 197.6 60.18 256h105l35.93-86.25c5.508-12.88 23.66-13.12 29.54-.375l58.21 129.4l49.07-98c5.884-11.75 22.78-11.75 28.67 0l27.67 55.25h121.5C559.2 197.6 552.6 112.5 495.2 62.86z"]},p={prefix:"fas",iconName:"hospital",icon:[640,512,[127973,62589,"hospital-alt","hospital-wide"],"f0f8","M192 48C192 21.49 213.5 0 240 0H400C426.5 0 448 21.49 448 48V512H368V432C368 405.5 346.5 384 320 384C293.5 384 272 405.5 272 432V512H192V48zM312 64C303.2 64 296 71.16 296 80V104H272C263.2 104 256 111.2 256 120V136C256 144.8 263.2 152 272 152H296V176C296 184.8 303.2 192 312 192H328C336.8 192 344 184.8 344 176V152H368C376.8 152 384 144.8 384 136V120C384 111.2 376.8 104 368 104H344V80C344 71.16 336.8 64 328 64H312zM160 96V512H48C21.49 512 0 490.5 0 464V320H80C88.84 320 96 312.8 96 304C96 295.2 88.84 288 80 288H0V224H80C88.84 224 96 216.8 96 208C96 199.2 88.84 192 80 192H0V144C0 117.5 21.49 96 48 96H160zM592 96C618.5 96 640 117.5 640 144V192H560C551.2 192 544 199.2 544 208C544 216.8 551.2 224 560 224H640V288H560C551.2 288 544 295.2 544 304C544 312.8 551.2 320 560 320H640V464C640 490.5 618.5 512 592 512H480V96H592z"]},m={prefix:"fas",iconName:"masks-theater",icon:[640,512,[127917,"theater-masks"],"f630","M206.9 245.1C171 255.6 146.8 286.4 149.3 319.3C160.7 306.5 178.1 295.5 199.3 288.4L206.9 245.1zM95.78 294.9L64.11 115.5C63.74 113.9 64.37 112.9 64.37 112.9c57.75-32.13 123.1-48.99 189-48.99c1.625 0 3.113 .0745 4.738 .0745c13.1-13.5 31.75-22.75 51.62-26c18.87-3 38.12-4.5 57.25-5.25c-9.999-14-24.47-24.27-41.84-27.02c-23.87-3.875-47.9-5.732-71.77-5.732c-76.74 0-152.4 19.45-220.1 57.07C9.021 70.57-3.853 98.5 1.021 126.6L32.77 306c14.25 80.5 136.3 142 204.5 142c3.625 0 6.777-.2979 10.03-.6729c-13.5-17.13-28.1-40.5-39.5-67.63C160.1 366.8 101.7 328 95.78 294.9zM193.4 157.6C192.6 153.4 191.1 149.7 189.3 146.2c-8.249 8.875-20.62 15.75-35.25 18.37c-14.62 2.5-28.75 .376-39.5-5.249c-.5 4-.6249 7.998 .125 12.12c3.75 21.75 24.5 36.24 46.25 32.37C182.6 200.1 197.3 179.3 193.4 157.6zM606.8 121c-88.87-49.38-191.4-67.38-291.9-51.38C287.5 73.1 265.8 95.85 260.8 123.1L229 303.5c-15.37 87.13 95.33 196.3 158.3 207.3c62.1 11.13 204.5-53.68 219.9-140.8l31.75-179.5C643.9 162.3 631 134.4 606.8 121zM333.5 217.8c3.875-21.75 24.62-36.25 46.37-32.37c21.75 3.75 36.25 24.49 32.5 46.12c-.7499 4.125-2.25 7.873-4.125 11.5c-8.249-9-20.62-15.75-35.25-18.37c-14.75-2.625-28.75-.3759-39.5 5.124C332.1 225.9 332.9 221.9 333.5 217.8zM403.1 416.5c-55.62-9.875-93.49-59.23-88.99-112.1c20.62 25.63 56.25 46.24 99.49 53.87c43.25 7.625 83.74 .3781 111.9-16.62C512.2 392.7 459.7 426.3 403.1 416.5zM534.4 265.2c-8.249-8.875-20.75-15.75-35.37-18.37c-14.62-2.5-28.62-.3759-39.5 5.249c-.5-4-.625-7.998 .125-12.12c3.875-21.75 24.62-36.25 46.37-32.37c21.75 3.875 36.25 24.49 32.37 46.24C537.6 257.9 536.1 261.7 534.4 265.2z"]},h={prefix:"fas",iconName:"medal",icon:[512,512,[127941],"f5a2","M223.7 130.8L149.1 7.77C147.1 2.949 141.9 0 136.3 0H16.03c-12.95 0-20.53 14.58-13.1 25.18l111.3 158.9C143.9 156.4 181.7 137.3 223.7 130.8zM256 160c-97.25 0-176 78.75-176 176S158.8 512 256 512s176-78.75 176-176S353.3 160 256 160zM348.5 317.3l-37.88 37l8.875 52.25c1.625 9.25-8.25 16.5-16.63 12l-46.88-24.62L209.1 418.5c-8.375 4.5-18.25-2.75-16.63-12l8.875-52.25l-37.88-37C156.6 310.6 160.5 299 169.9 297.6l52.38-7.625L245.7 242.5c2-4.25 6.125-6.375 10.25-6.375S264.2 238.3 266.2 242.5l23.5 47.5l52.38 7.625C351.6 299 355.4 310.6 348.5 317.3zM495.1 0H375.7c-5.621 0-10.83 2.949-13.72 7.77l-73.76 122.1c42 6.5 79.88 25.62 109.5 53.38l111.3-158.9C516.5 14.58 508.9 0 495.1 0z"]},f={prefix:"fas",iconName:"microscope",icon:[512,512,[128300],"f610","M160 320h12v16c0 8.875 7.125 16 16 16h40c8.875 0 16-7.125 16-16V320H256c17.62 0 32-14.38 32-32V64c0-17.62-14.38-32-32-32V16C256 7.125 248.9 0 240 0h-64C167.1 0 160 7.125 160 16V32C142.4 32 128 46.38 128 64v224C128 305.6 142.4 320 160 320zM464 448h-1.25C493.2 414 512 369.2 512 320c0-105.9-86.13-192-192-192v64c70.63 0 128 57.38 128 128s-57.38 128-128 128H48C21.5 448 0 469.5 0 496C0 504.9 7.125 512 16 512h480c8.875 0 16-7.125 16-16C512 469.5 490.5 448 464 448zM104 416h208c4.375 0 8-3.625 8-8v-16c0-4.375-3.625-8-8-8h-208C99.63 384 96 387.6 96 392v16C96 412.4 99.63 416 104 416z"]},d={prefix:"fas",iconName:"mortar-pestle",icon:[512,512,[],"f5a7","M501.5 60.87c17.25-17.12 12.5-46.25-9.25-57.13c-12.12-6-26.5-4.75-37.38 3.375L251.1 159.1h151.4L501.5 60.87zM496 191.1h-480c-8.875 0-16 7.125-16 16v32c0 8.875 7.125 16 16 16L31.1 256c0 81 50.25 150.1 121.1 178.4c-12.75 16.88-21.75 36.75-25 58.63C126.8 502.9 134.2 512 144.2 512h223.5c10 0 17.51-9.125 16.13-19c-3.25-21.88-12.25-41.75-25-58.63C429.8 406.1 479.1 337 479.1 256L496 255.1c8.875 0 16-7.125 16-16v-32C512 199.1 504.9 191.1 496 191.1z"]},g={prefix:"fas",iconName:"parachute-box",icon:[512,512,[],"f4cd","M272 192V320H304C311 320 317.7 321.5 323.7 324.2L443.8 192H415.5C415.8 186.7 416 181.4 416 176C416 112.1 393.8 54.84 358.9 16.69C450 49.27 493.4 122.6 507.8 173.6C510.5 183.1 502.1 192 493.1 192H487.1L346.8 346.3C350.1 352.8 352 360.2 352 368V464C352 490.5 330.5 512 304 512H207.1C181.5 512 159.1 490.5 159.1 464V368C159.1 360.2 161.9 352.8 165.2 346.3L24.92 192H18.89C9 192 1.483 183.1 4.181 173.6C18.64 122.6 61.97 49.27 153.1 16.69C118.2 54.84 96 112.1 96 176C96 181.4 96.16 186.7 96.47 192H68.17L188.3 324.2C194.3 321.5 200.1 320 207.1 320H239.1V192H128.5C128.2 186.7 127.1 181.4 127.1 176C127.1 125 143.9 80.01 168.2 48.43C192.5 16.89 223.8 0 255.1 0C288.2 0 319.5 16.89 343.8 48.43C368.1 80.01 384 125 384 176C384 181.4 383.8 186.7 383.5 192H272z"]},z={prefix:"fas",iconName:"paw",icon:[512,512,[],"f1b0","M226.5 92.85C240.8 135.7 226.2 179.1 193.9 189.7C161.6 200.2 123.8 174 109.5 131.1C95.19 88.26 109.8 44.92 142.1 34.34C174.4 23.77 212.2 49.96 226.5 92.85zM100.4 198.6C119.2 231 114.7 268.7 90.16 282.7C65.65 296.8 30.49 281.9 11.63 249.4C-7.237 216.1-2.664 179.3 21.84 165.3C46.35 151.2 81.51 166.1 100.4 198.6zM69.21 401.2C121.6 259.9 214.7 224 256 224C297.3 224 390.4 259.9 442.8 401.2C446.4 410.9 448 421.3 448 431.7V433.3C448 459.1 427.1 480 401.3 480C389.8 480 378.4 478.6 367.3 475.8L279.3 453.8C263.1 450 248 450 232.7 453.8L144.7 475.8C133.6 478.6 122.2 480 110.7 480C84.93 480 64 459.1 64 433.3V431.7C64 421.3 65.6 410.9 69.21 401.2H69.21zM421.8 282.7C397.3 268.7 392.8 231 411.6 198.6C430.5 166.1 465.7 151.2 490.2 165.3C514.7 179.3 519.2 216.1 500.4 249.4C481.5 281.9 446.3 296.8 421.8 282.7zM310.1 189.7C277.8 179.1 263.2 135.7 277.5 92.85C291.8 49.96 329.6 23.77 361.9 34.34C394.2 44.92 408.8 88.26 394.5 131.1C380.2 174 342.4 200.2 310.1 189.7z"]},x={prefix:"fas",iconName:"people-carry-box",icon:[640,512,["people-carry"],"f4ce","M128 95.1c26.5 0 47.1-21.5 47.1-47.1S154.5 0 128 0S80.01 21.5 80.01 47.1S101.5 95.1 128 95.1zM511.1 95.1c26.5 0 47.1-21.5 47.1-47.1S538.5 0 511.1 0c-26.5 0-48 21.5-48 47.1S485.5 95.1 511.1 95.1zM603.5 258.3l-18.5-80.13c-4.625-20-18.62-36.88-37.5-44.88c-18.5-8-38.1-6.75-56.12 3.25c-22.62 13.38-39.62 34.5-48.12 59.38l-11.25 33.88l-15.1 10.25L415.1 144c0-8.75-7.25-16-16-16H240c-8.75 0-16 7.25-16 16L224 239.1l-16.12-10.25l-11.25-33.88c-8.375-25-25.38-46-48.12-59.38c-17.25-10-37.63-11.25-56.12-3.25c-18.88 8-32.88 24.88-37.5 44.88l-18.37 80.13c-4.625 20 .7506 41.25 14.37 56.75l67.25 75.88l10.12 92.63C130 499.8 143.8 512 160 512c1.25 0 2.25-.125 3.5-.25c17.62-1.875 30.25-17.62 28.25-35.25l-10-92.75c-1.5-13-7-25.12-15.62-35l-43.37-49l17.62-70.38l6.876 20.38c4 12.5 11.87 23.5 24.5 32.63l51 32.5c4.623 2.875 12.12 4.625 17.25 5h159.1c5.125-.375 12.62-2.125 17.25-5l51-32.5c12.62-9.125 20.5-20 24.5-32.63l6.875-20.38l17.63 70.38l-43.37 49c-8.625 9.875-14.12 22-15.62 35l-10 92.75c-2 17.62 10.75 33.38 28.25 35.25C477.7 511.9 478.7 512 479.1 512c16.12 0 29.1-12.12 31.75-28.5l10.12-92.63L589.1 315C602.7 299.5 608.1 278.3 603.5 258.3zM46.26 358.1l-44 110c-6.5 16.38 1.5 35 17.88 41.63c16.75 6.5 35.12-1.75 41.62-17.88l27.62-69.13l-2-18.25L46.26 358.1zM637.7 468.1l-43.1-110l-41.13 46.38l-2 18.25l27.62 69.13C583.2 504.4 595.2 512 607.1 512c3.998 0 7.998-.75 11.87-2.25C636.2 503.1 644.2 484.5 637.7 468.1z"]},M={prefix:"fas",iconName:"person-walking-with-cane",icon:[448,512,["blind"],"f29d","M445.2 486.1l-117.3-172.6c-3.002 4.529-6.646 8.652-11.12 12c-4.414 3.318-9.299 5.689-14.43 7.307l116.4 171.3c3.094 4.547 8.127 7.008 13.22 7.008c3.125 0 6.247-.8984 8.997-2.773C448.3 504.2 450.2 494.3 445.2 486.1zM143.1 95.1c26.51 0 48.01-21.49 48.01-47.1S170.5 0 144 0S96 21.49 96 48S117.5 95.1 143.1 95.1zM96.01 348.1l-31.03 124.2c-4.312 17.16 6.125 34.53 23.28 38.81C90.86 511.7 93.48 512 96.04 512c14.34 0 27.38-9.703 31-24.23l22.04-88.18L96.01 346.5V348.1zM313.6 268.8l-76.78-102.4C218.8 142.3 190.1 128 160 128L135.6 127.1c-36.59 0-69.5 20.33-85.87 53.06L3.387 273.7C-4.518 289.5 1.887 308.7 17.7 316.6c4.594 2.297 9.469 3.375 14.28 3.375c11.75 0 23.03-6.469 28.66-17.69l35.38-70.76v56.45c0 8.484 3.375 16.62 9.375 22.63l86.63 86.63v82.75c0 17.67 14.31 32 32 32c17.69 0 32-14.33 32-32v-82.75c0-17.09-6.656-33.16-18.75-45.25L192 306.8V213.3l70.38 93.88c10.59 14.11 30.62 16.98 44.78 6.406C321.3 303 324.2 282.9 313.6 268.8z"]},b={prefix:"fas",iconName:"place-of-worship",icon:[640,512,[],"f67f","M233.4 86.63L308.7 11.32C314.9 5.067 325.1 5.067 331.3 11.32L406.6 86.63C412.6 92.63 416 100.8 416 109.3V217.6L456.7 242C471.2 250.7 480 266.3 480 283.2V512H384V416C384 380.7 355.3 352 319.1 352C284.7 352 255.1 380.7 255.1 416V512H159.1V283.2C159.1 266.3 168.8 250.7 183.3 242L223.1 217.6V109.3C223.1 100.8 227.4 92.63 233.4 86.63H233.4zM24.87 330.3L128 273.6V512H48C21.49 512 0 490.5 0 464V372.4C0 354.9 9.53 338.8 24.87 330.3V330.3zM592 512H512V273.6L615.1 330.3C630.5 338.8 640 354.9 640 372.4V464C640 490.5 618.5 512 592 512V512z"]},L={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M432 256c0 17.69-14.33 32.01-32 32.01H256v144c0 17.69-14.33 31.99-32 31.99s-32-14.3-32-31.99v-144H48c-17.67 0-32-14.32-32-32.01s14.33-31.99 32-31.99H192v-144c0-17.69 14.33-32.01 32-32.01s32 14.32 32 32.01v144h144C417.7 224 432 238.3 432 256z"]},u={prefix:"fas",iconName:"rainbow",icon:[640,512,[127752],"f75b","M312.3 32.09C137.6 36.22 0 183.3 0 358V464C0 472.8 7.164 480 16 480h32C56.84 480 64 472.8 64 464v-106.9c0-143.2 117.2-263.5 260.4-261.1C463.5 98.4 576 212.3 576 352v112c0 8.836 7.164 16 16 16h32c8.838 0 16-7.164 16-16V352C640 172.1 492.3 27.84 312.3 32.09zM313.5 224.2C244.8 227.6 192 286.9 192 355.7V464C192 472.8 199.2 480 208 480h32C248.8 480 256 472.8 256 464v-109.7c0-34.06 25.65-63.85 59.64-66.11C352.9 285.7 384 315.3 384 352v112c0 8.836 7.164 16 16 16h32c8.838 0 16-7.164 16-16V352C448 279.3 387 220.5 313.5 224.2zM313.2 128.1C191.4 131.7 96 234.9 96 356.8V464C96 472.8 103.2 480 112 480h32C152.8 480 160 472.8 160 464v-108.1c0-86.64 67.24-160.5 153.8-163.8C404.8 188.7 480 261.7 480 352v112c0 8.836 7.164 16 16 16h32c8.838 0 16-7.164 16-16V352C544 226.2 439.8 124.3 313.2 128.1z"]},v={prefix:"fas",iconName:"ribbon",icon:[448,512,[127895],"f4d6","M6.05 444.3c-9.626 10.87-7.501 27.62 4.5 35.75l68.76 27.87c9.876 6.75 23.38 4.1 31.38-3.75l91.76-101.9L123.2 314.3L6.05 444.3zM441.8 444.3c0 0-292-324.5-295.4-329.1c15.38-8.5 40.25-17.1 77.51-17.1s62.13 9.5 77.51 17.1c-3.25 5.5-56.01 64.5-56.01 64.5l79.13 87.75l34.13-37.1c28.75-31.87 33.38-78.62 11.5-115.5L326.5 39.52c-4.25-7.25-9.876-13.25-16.75-17.1c-40.75-27.62-127.5-29.75-171.5 0C131.3 26.27 125.7 32.27 121.4 39.52L77.81 112.8C76.31 115.3 40.68 174.9 89.31 228.8l248.1 275.2c8.001 8.875 21.38 10.5 31.25 3.75l68.88-27.87C449.5 471.9 451.6 455.1 441.8 444.3z"]},H={prefix:"fas",iconName:"scale-balanced",icon:[640,512,[9878,"balance-scale"],"f24e","M554.9 154.5c-17.62-35.25-68.12-35.38-85.87 0c-87 174.3-84.1 165.9-84.1 181.5c0 44.13 57.25 80 128 80s127.1-35.88 127.1-80C639.1 319.9 641.4 327.3 554.9 154.5zM439.1 320l71.96-144l72.17 144H439.1zM256 336c0-16.12 1.375-8.75-85.12-181.5c-17.62-35.25-68.12-35.38-85.87 0c-87 174.3-84.1 165.9-84.1 181.5c0 44.13 57.25 80 127.1 80S256 380.1 256 336zM127.9 176L200.1 320H55.96L127.9 176zM495.1 448h-143.1V153.3C375.5 143 393.1 121.8 398.4 96h113.6c17.67 0 31.1-14.33 31.1-32s-14.33-32-31.1-32h-128.4c-14.62-19.38-37.5-32-63.62-32S270.1 12.62 256.4 32H128C110.3 32 96 46.33 96 64S110.3 96 127.1 96h113.6c5.25 25.75 22.87 47 46.37 57.25V448H144c-26.51 0-48.01 21.49-48.01 48c0 8.836 7.165 16 16 16h416c8.836 0 16-7.164 16-16C544 469.5 522.5 448 495.1 448z"]},V={prefix:"fas",iconName:"seedling",icon:[512,512,[127793,"sprout"],"f4d8","M64 95.1H0c0 123.8 100.3 224 224 224v128C224 465.6 238.4 480 255.1 480S288 465.6 288 448V320C288 196.3 187.7 95.1 64 95.1zM448 32c-84.25 0-157.4 46.5-195.8 115.3c27.75 30.12 48.25 66.88 59 107.5C424 243.1 512 147.9 512 32H448z"]},y={prefix:"fas",iconName:"universal-access",icon:[512,512,[],"f29a","M256 0C114.6 0 0 114.6 0 256c0 141.4 114.6 256 256 256s256-114.6 256-256C512 114.6 397.4 0 256 0zM256 80c22.09 0 40 17.91 40 40S278.1 160 256 160S216 142.1 216 120S233.9 80 256 80zM374.6 215.1L315.3 232C311.6 233.1 307.8 233.6 304 234.4v62.32l30.64 87.34c4.391 12.5-2.188 26.19-14.69 30.59C317.3 415.6 314.6 416 312 416c-9.906 0-19.19-6.188-22.64-16.06l-25.85-70.65c-2.562-7.002-12.46-7.002-15.03 0l-25.85 70.65C219.2 409.8 209.9 416 200 416c-2.641 0-5.312-.4375-7.953-1.344c-12.5-4.406-19.08-18.09-14.69-30.59L208 296.7V234.4C204.2 233.6 200.4 233.1 196.7 232L137.4 215.1C124.7 211.4 117.3 198.2 120.9 185.4S137.9 165.2 150.6 168.9l59.25 16.94c30.17 8.623 62.15 8.623 92.31 0l59.25-16.94c12.7-3.781 26.02 3.719 29.67 16.47C394.7 198.2 387.3 211.4 374.6 215.1z"]},w={prefix:"fas",iconName:"user-graduate",icon:[512,512,[],"f501","M45.63 79.75L52 81.25v58.5C45 143.9 40 151.3 40 160c0 8.375 4.625 15.38 11.12 19.75L35.5 242C33.75 248.9 37.63 256 43.13 256h41.75c5.5 0 9.375-7.125 7.625-13.1L76.88 179.8C83.38 175.4 88 168.4 88 160c0-8.75-5-16.12-12-20.25V87.13L128 99.63l.001 60.37c0 70.75 57.25 128 128 128s127.1-57.25 127.1-128L384 99.62l82.25-19.87c18.25-4.375 18.25-27 0-31.5l-190.4-46c-13-3-26.62-3-39.63 0l-190.6 46C27.5 52.63 27.5 75.38 45.63 79.75zM359.2 312.8l-103.2 103.2l-103.2-103.2c-69.93 22.3-120.8 87.2-120.8 164.5C32 496.5 47.53 512 66.67 512h378.7C464.5 512 480 496.5 480 477.3C480 400 429.1 335.1 359.2 312.8z"]},S={prefix:"fas",iconName:"venus",icon:[384,512,[9792],"f221","M368 176c0-97.2-78.8-176-176-176c-97.2 0-176 78.8-176 176c0 86.26 62.1 157.9 144 172.1v35.05H112c-8.836 0-16 7.162-16 16v32c0 8.836 7.164 16 16 16H160v48c0 8.836 7.164 16 16 16h32c8.838 0 16-7.164 16-16v-48h48c8.838 0 16-7.164 16-16v-32c0-8.838-7.162-16-16-16H224v-35.05C305.9 333.9 368 262.3 368 176zM192 272c-52.93 0-96-43.07-96-96c0-52.94 43.07-96 96-96c52.94 0 96 43.06 96 96C288 228.9 244.9 272 192 272z"]},N={prefix:"fad",iconName:"users",icon:[640,512,[],"f0c0",["M128 160c44.18 0 80-35.82 80-80S172.2 0 128 0C83.82 0 48 35.82 48 80S83.82 160 128 160zM512 160c44.18 0 80-35.82 80-80S556.2 0 512 0c-44.18 0-80 35.82-80 80S467.8 160 512 160zM551.9 192h-61.84c-12.8 0-24.88 3.037-35.86 8.24C454.8 205.5 455.8 210.6 455.8 216c0 33.71-12.78 64.21-33.16 88h199.7C632.1 304 640 295.6 640 285.3C640 233.8 600.6 192 551.9 192zM185.5 200.1C174.6 194.1 162.6 192 149.9 192H88.08C39.44 192 0 233.8 0 285.3C0 295.6 7.887 304 17.62 304h199.5c-20.38-23.79-33.16-54.29-33.16-88C183.9 210.6 184.9 205.4 185.5 200.1z","M319.9 320c57.41 0 103.1-46.56 103.1-104c0-57.44-46.54-104-103.1-104c-57.41 0-103.1 46.56-103.1 104C215.9 273.4 262.5 320 319.9 320zM369.9 352H270.1C191.6 352 128 411.7 128 485.3C128 500.1 140.7 512 156.4 512h327.2C499.3 512 512 500.1 512 485.3C512 411.7 448.4 352 369.9 352z"]]},k={prefix:"fas",iconName:"head-side-medical",icon:[512,512,[],"f809","M509.2 275c-21-47.13-48.5-151.8-73.12-186.8C397.1 32.88 333.7 0 266.1 0H192C86 0 0 86 0 192c0 54.5 23.25 106.5 64 142.9L64 512h256l-.0052-64h63.99c35.38 0 63.1-28.62 63.1-63.1V320h31.1c10.88 0 20.89-5.5 26.77-14.62C512.8 296.4 513.6 284.9 509.2 275zM336 218c0 8.836-7.164 16-16 16h-54V288c0 8.836-7.164 16-16 16h-52C189.2 304 182 296.8 182 288V234H128c-8.836 0-16-7.164-16-16v-52c0-8.836 7.164-16 16-16h54V96c0-8.836 7.165-16 16-16h52c8.836 0 16 7.164 16 16v54h54c8.836 0 16 7.164 16 16V218z"]},F={prefix:"fas",iconName:"house-heart",icon:[576,512,["home-heart"],"f4c9","M511.8 287.6L512.5 447.7C512.6 483.2 483.9 512 448.5 512H128.1C92.75 512 64.09 483.3 64.09 448V287.6H32.05C14.02 287.6 0 273.5 0 255.5C0 246.5 3.004 238.5 10.01 231.5L266.4 8.016C273.4 1.002 281.4 0 288.4 0C295.4 0 303.4 2.004 309.5 7.014L564.8 231.5C572.8 238.5 576.9 246.5 575.8 255.5C575.8 273.5 560.8 287.6 543.8 287.6H511.8zM299.3 396.7L392 304C414.1 281.9 414.1 246.1 392 224C369.9 201.9 334.1 201.9 312 224L288 248L264 224C241.9 201.9 206.1 201.9 184 224C161.9 246.1 161.9 281.9 184 304L276.7 396.7C282.9 402.9 293.1 402.9 299.3 396.7H299.3z"]};
6
+ */var i={prefix:"fab",iconName:"accessible-icon",icon:[448,512,[62107],"f368","M423.9 255.8L411 413.1c-3.3 40.7-63.9 35.1-60.6-4.9l10-122.5-41.1 2.3c10.1 20.7 15.8 43.9 15.8 68.5 0 41.2-16.1 78.7-42.3 106.5l-39.3-39.3c57.9-63.7 13.1-167.2-74-167.2-25.9 0-49.5 9.9-67.2 26L73 243.2c22-20.7 50.1-35.1 81.4-40.2l75.3-85.7-42.6-24.8-51.6 46c-30 26.8-70.6-18.5-40.5-45.4l68-60.7c9.8-8.8 24.1-10.2 35.5-3.6 0 0 139.3 80.9 139.5 81.1 16.2 10.1 20.7 36 6.1 52.6L285.7 229l106.1-5.9c18.5-1.1 33.6 14.4 32.1 32.7zm-64.9-154c28.1 0 50.9-22.8 50.9-50.9C409.9 22.8 387.1 0 359 0c-28.1 0-50.9 22.8-50.9 50.9 0 28.1 22.8 50.9 50.9 50.9zM179.6 456.5c-80.6 0-127.4-90.6-82.7-156.1l-39.7-39.7C36.4 287 24 320.3 24 356.4c0 130.7 150.7 201.4 251.4 122.5l-39.7-39.7c-16 10.9-35.3 17.3-56.1 17.3z"]},n={prefix:"fas",iconName:"baby",icon:[448,512,[],"f77c","M156.8 411.8l31.22-31.22l-60.04-53.09l-52.29 52.28C61.63 393.8 60.07 416.1 72 432l48 64C127.9 506.5 139.9 512 152 512c8.345 0 16.78-2.609 23.97-8c17.69-13.25 21.25-38.33 8-56L156.8 411.8zM224 159.1c44.25 0 79.99-35.75 79.99-79.1S268.3 0 224 0S144 35.75 144 79.1S179.8 159.1 224 159.1zM408.7 145c-12.75-18.12-37.63-22.38-55.76-9.75l-40.63 28.5c-52.63 37-124.1 37-176.8 0l-40.63-28.5C76.84 122.6 51.97 127 39.22 145C26.59 163.1 30.97 188 48.97 200.8l40.63 28.5C101.7 237.7 114.7 244.3 128 250.2L128 288h192l.0002-37.71c13.25-5.867 26.22-12.48 38.34-21.04l40.63-28.5C417.1 188 421.4 163.1 408.7 145zM320 327.4l-60.04 53.09l31.22 31.22L264 448c-13.25 17.67-9.689 42.75 8 56C279.2 509.4 287.6 512 295.1 512c12.16 0 24.19-5.516 32.03-16l48-64c11.94-15.92 10.38-38.2-3.719-52.28L320 327.4z"]},t={prefix:"fas",iconName:"book",icon:[448,512,[128212],"f02d","M448 336v-288C448 21.49 426.5 0 400 0H96C42.98 0 0 42.98 0 96v320c0 53.02 42.98 96 96 96h320c17.67 0 32-14.33 32-31.1c0-11.72-6.607-21.52-16-27.1v-81.36C441.8 362.8 448 350.2 448 336zM143.1 128h192C344.8 128 352 135.2 352 144C352 152.8 344.8 160 336 160H143.1C135.2 160 128 152.8 128 144C128 135.2 135.2 128 143.1 128zM143.1 192h192C344.8 192 352 199.2 352 208C352 216.8 344.8 224 336 224H143.1C135.2 224 128 216.8 128 208C128 199.2 135.2 192 143.1 192zM384 448H96c-17.67 0-32-14.33-32-32c0-17.67 14.33-32 32-32h288V448z"]},l={prefix:"fas",iconName:"campground",icon:[576,512,[9978],"f6bb","M328.1 112L563.7 405.4C571.7 415.4 576 427.7 576 440.4V464C576 490.5 554.5 512 528 512H48C21.49 512 0 490.5 0 464V440.4C0 427.7 4.328 415.4 12.27 405.4L247 112L199 51.99C187.1 38.19 190.2 18.05 204 7.013C217.8-4.027 237.9-1.789 248.1 12.01L288 60.78L327 12.01C338.1-1.789 358.2-4.027 371.1 7.013C385.8 18.05 388 38.19 376.1 51.99L328.1 112zM407.5 448L288 291.7L168.5 448H407.5z"]},s={prefix:"fas",iconName:"child",icon:[320,512,[],"f1ae","M224 64C224 99.35 195.3 128 160 128C124.7 128 96 99.35 96 64C96 28.65 124.7 0 160 0C195.3 0 224 28.65 224 64zM144 384V480C144 497.7 129.7 512 112 512C94.33 512 80.01 497.7 80.01 480V287.8L59.09 321C49.67 336 29.92 340.5 14.96 331.1C.0016 321.7-4.491 301.9 4.924 286.1L44.79 223.6C69.72 184 113.2 160 160 160C206.8 160 250.3 184 275.2 223.6L315.1 286.1C324.5 301.9 320 321.7 305.1 331.1C290.1 340.5 270.3 336 260.9 321L240 287.8V480C240 497.7 225.7 512 208 512C190.3 512 176 497.7 176 480V384L144 384z"]},o={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 128c17.67 0 32 14.33 32 32c0 17.67-14.33 32-32 32S224 177.7 224 160C224 142.3 238.3 128 256 128zM296 384h-80C202.8 384 192 373.3 192 360s10.75-24 24-24h16v-64H224c-13.25 0-24-10.75-24-24S210.8 224 224 224h32c13.25 0 24 10.75 24 24v88h16c13.25 0 24 10.75 24 24S309.3 384 296 384z"]},r={prefix:"fas",iconName:"futbol",icon:[512,512,[9917,"futbol-ball","soccer-ball"],"f1e3","M177.1 228.6L207.9 320h96.5l29.62-91.38L256 172.1L177.1 228.6zM255.1 0C114.6 0 .0001 114.6 .0001 256S114.6 512 256 512s255.1-114.6 255.1-255.1S397.4 0 255.1 0zM416.6 360.9l-85.4-1.297l-25.15 81.59C290.1 445.5 273.4 448 256 448s-34.09-2.523-50.09-6.859L180.8 359.6l-85.4 1.297c-18.12-27.66-29.15-60.27-30.88-95.31L134.3 216.4L106.6 135.6c21.16-26.21 49.09-46.61 81.06-58.84L256 128l68.29-51.22c31.98 12.23 59.9 32.64 81.06 58.84L377.7 216.4l69.78 49.1C445.8 300.6 434.8 333.2 416.6 360.9z"]},C={prefix:"fas",iconName:"heart-pulse",icon:[576,512,["heartbeat"],"f21e","M352.4 243.8l-49.83 99.5c-6.009 12-23.41 11.62-28.92-.625L216.7 216.3l-30.05 71.75L88.55 288l176.4 182.2c12.66 13.07 33.36 13.07 46.03 0l176.4-182.2l-112.1 .0052L352.4 243.8zM495.2 62.86c-54.36-46.98-137.5-38.5-187.5 13.06L288 96.25L268.3 75.92C218.3 24.36 135.2 15.88 80.81 62.86C23.37 112.5 16.84 197.6 60.18 256h105l35.93-86.25c5.508-12.88 23.66-13.12 29.54-.375l58.21 129.4l49.07-98c5.884-11.75 22.78-11.75 28.67 0l27.67 55.25h121.5C559.2 197.6 552.6 112.5 495.2 62.86z"]},m={prefix:"fas",iconName:"hospital",icon:[640,512,[127973,62589,"hospital-alt","hospital-wide"],"f0f8","M192 48C192 21.49 213.5 0 240 0H400C426.5 0 448 21.49 448 48V512H368V432C368 405.5 346.5 384 320 384C293.5 384 272 405.5 272 432V512H192V48zM312 64C303.2 64 296 71.16 296 80V104H272C263.2 104 256 111.2 256 120V136C256 144.8 263.2 152 272 152H296V176C296 184.8 303.2 192 312 192H328C336.8 192 344 184.8 344 176V152H368C376.8 152 384 144.8 384 136V120C384 111.2 376.8 104 368 104H344V80C344 71.16 336.8 64 328 64H312zM160 96V512H48C21.49 512 0 490.5 0 464V320H80C88.84 320 96 312.8 96 304C96 295.2 88.84 288 80 288H0V224H80C88.84 224 96 216.8 96 208C96 199.2 88.84 192 80 192H0V144C0 117.5 21.49 96 48 96H160zM592 96C618.5 96 640 117.5 640 144V192H560C551.2 192 544 199.2 544 208C544 216.8 551.2 224 560 224H640V288H560C551.2 288 544 295.2 544 304C544 312.8 551.2 320 560 320H640V464C640 490.5 618.5 512 592 512H480V96H592z"]},p={prefix:"fas",iconName:"masks-theater",icon:[640,512,[127917,"theater-masks"],"f630","M206.9 245.1C171 255.6 146.8 286.4 149.3 319.3C160.7 306.5 178.1 295.5 199.3 288.4L206.9 245.1zM95.78 294.9L64.11 115.5C63.74 113.9 64.37 112.9 64.37 112.9c57.75-32.13 123.1-48.99 189-48.99c1.625 0 3.113 .0745 4.738 .0745c13.1-13.5 31.75-22.75 51.62-26c18.87-3 38.12-4.5 57.25-5.25c-9.999-14-24.47-24.27-41.84-27.02c-23.87-3.875-47.9-5.732-71.77-5.732c-76.74 0-152.4 19.45-220.1 57.07C9.021 70.57-3.853 98.5 1.021 126.6L32.77 306c14.25 80.5 136.3 142 204.5 142c3.625 0 6.777-.2979 10.03-.6729c-13.5-17.13-28.1-40.5-39.5-67.63C160.1 366.8 101.7 328 95.78 294.9zM193.4 157.6C192.6 153.4 191.1 149.7 189.3 146.2c-8.249 8.875-20.62 15.75-35.25 18.37c-14.62 2.5-28.75 .376-39.5-5.249c-.5 4-.6249 7.998 .125 12.12c3.75 21.75 24.5 36.24 46.25 32.37C182.6 200.1 197.3 179.3 193.4 157.6zM606.8 121c-88.87-49.38-191.4-67.38-291.9-51.38C287.5 73.1 265.8 95.85 260.8 123.1L229 303.5c-15.37 87.13 95.33 196.3 158.3 207.3c62.1 11.13 204.5-53.68 219.9-140.8l31.75-179.5C643.9 162.3 631 134.4 606.8 121zM333.5 217.8c3.875-21.75 24.62-36.25 46.37-32.37c21.75 3.75 36.25 24.49 32.5 46.12c-.7499 4.125-2.25 7.873-4.125 11.5c-8.249-9-20.62-15.75-35.25-18.37c-14.75-2.625-28.75-.3759-39.5 5.124C332.1 225.9 332.9 221.9 333.5 217.8zM403.1 416.5c-55.62-9.875-93.49-59.23-88.99-112.1c20.62 25.63 56.25 46.24 99.49 53.87c43.25 7.625 83.74 .3781 111.9-16.62C512.2 392.7 459.7 426.3 403.1 416.5zM534.4 265.2c-8.249-8.875-20.75-15.75-35.37-18.37c-14.62-2.5-28.62-.3759-39.5 5.249c-.5-4-.625-7.998 .125-12.12c3.875-21.75 24.62-36.25 46.37-32.37c21.75 3.875 36.25 24.49 32.37 46.24C537.6 257.9 536.1 261.7 534.4 265.2z"]},h={prefix:"fas",iconName:"medal",icon:[512,512,[127941],"f5a2","M223.7 130.8L149.1 7.77C147.1 2.949 141.9 0 136.3 0H16.03c-12.95 0-20.53 14.58-13.1 25.18l111.3 158.9C143.9 156.4 181.7 137.3 223.7 130.8zM256 160c-97.25 0-176 78.75-176 176S158.8 512 256 512s176-78.75 176-176S353.3 160 256 160zM348.5 317.3l-37.88 37l8.875 52.25c1.625 9.25-8.25 16.5-16.63 12l-46.88-24.62L209.1 418.5c-8.375 4.5-18.25-2.75-16.63-12l8.875-52.25l-37.88-37C156.6 310.6 160.5 299 169.9 297.6l52.38-7.625L245.7 242.5c2-4.25 6.125-6.375 10.25-6.375S264.2 238.3 266.2 242.5l23.5 47.5l52.38 7.625C351.6 299 355.4 310.6 348.5 317.3zM495.1 0H375.7c-5.621 0-10.83 2.949-13.72 7.77l-73.76 122.1c42 6.5 79.88 25.62 109.5 53.38l111.3-158.9C516.5 14.58 508.9 0 495.1 0z"]},f={prefix:"fas",iconName:"microscope",icon:[512,512,[128300],"f610","M160 320h12v16c0 8.875 7.125 16 16 16h40c8.875 0 16-7.125 16-16V320H256c17.62 0 32-14.38 32-32V64c0-17.62-14.38-32-32-32V16C256 7.125 248.9 0 240 0h-64C167.1 0 160 7.125 160 16V32C142.4 32 128 46.38 128 64v224C128 305.6 142.4 320 160 320zM464 448h-1.25C493.2 414 512 369.2 512 320c0-105.9-86.13-192-192-192v64c70.63 0 128 57.38 128 128s-57.38 128-128 128H48C21.5 448 0 469.5 0 496C0 504.9 7.125 512 16 512h480c8.875 0 16-7.125 16-16C512 469.5 490.5 448 464 448zM104 416h208c4.375 0 8-3.625 8-8v-16c0-4.375-3.625-8-8-8h-208C99.63 384 96 387.6 96 392v16C96 412.4 99.63 416 104 416z"]},d={prefix:"fas",iconName:"mortar-pestle",icon:[512,512,[],"f5a7","M501.5 60.87c17.25-17.12 12.5-46.25-9.25-57.13c-12.12-6-26.5-4.75-37.38 3.375L251.1 159.1h151.4L501.5 60.87zM496 191.1h-480c-8.875 0-16 7.125-16 16v32c0 8.875 7.125 16 16 16L31.1 256c0 81 50.25 150.1 121.1 178.4c-12.75 16.88-21.75 36.75-25 58.63C126.8 502.9 134.2 512 144.2 512h223.5c10 0 17.51-9.125 16.13-19c-3.25-21.88-12.25-41.75-25-58.63C429.8 406.1 479.1 337 479.1 256L496 255.1c8.875 0 16-7.125 16-16v-32C512 199.1 504.9 191.1 496 191.1z"]},g={prefix:"fas",iconName:"parachute-box",icon:[512,512,[],"f4cd","M272 192V320H304C311 320 317.7 321.5 323.7 324.2L443.8 192H415.5C415.8 186.7 416 181.4 416 176C416 112.1 393.8 54.84 358.9 16.69C450 49.27 493.4 122.6 507.8 173.6C510.5 183.1 502.1 192 493.1 192H487.1L346.8 346.3C350.1 352.8 352 360.2 352 368V464C352 490.5 330.5 512 304 512H207.1C181.5 512 159.1 490.5 159.1 464V368C159.1 360.2 161.9 352.8 165.2 346.3L24.92 192H18.89C9 192 1.483 183.1 4.181 173.6C18.64 122.6 61.97 49.27 153.1 16.69C118.2 54.84 96 112.1 96 176C96 181.4 96.16 186.7 96.47 192H68.17L188.3 324.2C194.3 321.5 200.1 320 207.1 320H239.1V192H128.5C128.2 186.7 127.1 181.4 127.1 176C127.1 125 143.9 80.01 168.2 48.43C192.5 16.89 223.8 0 255.1 0C288.2 0 319.5 16.89 343.8 48.43C368.1 80.01 384 125 384 176C384 181.4 383.8 186.7 383.5 192H272z"]},z={prefix:"fas",iconName:"paw",icon:[512,512,[],"f1b0","M226.5 92.85C240.8 135.7 226.2 179.1 193.9 189.7C161.6 200.2 123.8 174 109.5 131.1C95.19 88.26 109.8 44.92 142.1 34.34C174.4 23.77 212.2 49.96 226.5 92.85zM100.4 198.6C119.2 231 114.7 268.7 90.16 282.7C65.65 296.8 30.49 281.9 11.63 249.4C-7.237 216.1-2.664 179.3 21.84 165.3C46.35 151.2 81.51 166.1 100.4 198.6zM69.21 401.2C121.6 259.9 214.7 224 256 224C297.3 224 390.4 259.9 442.8 401.2C446.4 410.9 448 421.3 448 431.7V433.3C448 459.1 427.1 480 401.3 480C389.8 480 378.4 478.6 367.3 475.8L279.3 453.8C263.1 450 248 450 232.7 453.8L144.7 475.8C133.6 478.6 122.2 480 110.7 480C84.93 480 64 459.1 64 433.3V431.7C64 421.3 65.6 410.9 69.21 401.2H69.21zM421.8 282.7C397.3 268.7 392.8 231 411.6 198.6C430.5 166.1 465.7 151.2 490.2 165.3C514.7 179.3 519.2 216.1 500.4 249.4C481.5 281.9 446.3 296.8 421.8 282.7zM310.1 189.7C277.8 179.1 263.2 135.7 277.5 92.85C291.8 49.96 329.6 23.77 361.9 34.34C394.2 44.92 408.8 88.26 394.5 131.1C380.2 174 342.4 200.2 310.1 189.7z"]},x={prefix:"fas",iconName:"people-carry-box",icon:[640,512,["people-carry"],"f4ce","M128 95.1c26.5 0 47.1-21.5 47.1-47.1S154.5 0 128 0S80.01 21.5 80.01 47.1S101.5 95.1 128 95.1zM511.1 95.1c26.5 0 47.1-21.5 47.1-47.1S538.5 0 511.1 0c-26.5 0-48 21.5-48 47.1S485.5 95.1 511.1 95.1zM603.5 258.3l-18.5-80.13c-4.625-20-18.62-36.88-37.5-44.88c-18.5-8-38.1-6.75-56.12 3.25c-22.62 13.38-39.62 34.5-48.12 59.38l-11.25 33.88l-15.1 10.25L415.1 144c0-8.75-7.25-16-16-16H240c-8.75 0-16 7.25-16 16L224 239.1l-16.12-10.25l-11.25-33.88c-8.375-25-25.38-46-48.12-59.38c-17.25-10-37.63-11.25-56.12-3.25c-18.88 8-32.88 24.88-37.5 44.88l-18.37 80.13c-4.625 20 .7506 41.25 14.37 56.75l67.25 75.88l10.12 92.63C130 499.8 143.8 512 160 512c1.25 0 2.25-.125 3.5-.25c17.62-1.875 30.25-17.62 28.25-35.25l-10-92.75c-1.5-13-7-25.12-15.62-35l-43.37-49l17.62-70.38l6.876 20.38c4 12.5 11.87 23.5 24.5 32.63l51 32.5c4.623 2.875 12.12 4.625 17.25 5h159.1c5.125-.375 12.62-2.125 17.25-5l51-32.5c12.62-9.125 20.5-20 24.5-32.63l6.875-20.38l17.63 70.38l-43.37 49c-8.625 9.875-14.12 22-15.62 35l-10 92.75c-2 17.62 10.75 33.38 28.25 35.25C477.7 511.9 478.7 512 479.1 512c16.12 0 29.1-12.12 31.75-28.5l10.12-92.63L589.1 315C602.7 299.5 608.1 278.3 603.5 258.3zM46.26 358.1l-44 110c-6.5 16.38 1.5 35 17.88 41.63c16.75 6.5 35.12-1.75 41.62-17.88l27.62-69.13l-2-18.25L46.26 358.1zM637.7 468.1l-43.1-110l-41.13 46.38l-2 18.25l27.62 69.13C583.2 504.4 595.2 512 607.1 512c3.998 0 7.998-.75 11.87-2.25C636.2 503.1 644.2 484.5 637.7 468.1z"]},M={prefix:"fas",iconName:"person-walking-with-cane",icon:[448,512,["blind"],"f29d","M445.2 486.1l-117.3-172.6c-3.002 4.529-6.646 8.652-11.12 12c-4.414 3.318-9.299 5.689-14.43 7.307l116.4 171.3c3.094 4.547 8.127 7.008 13.22 7.008c3.125 0 6.247-.8984 8.997-2.773C448.3 504.2 450.2 494.3 445.2 486.1zM143.1 95.1c26.51 0 48.01-21.49 48.01-47.1S170.5 0 144 0S96 21.49 96 48S117.5 95.1 143.1 95.1zM96.01 348.1l-31.03 124.2c-4.312 17.16 6.125 34.53 23.28 38.81C90.86 511.7 93.48 512 96.04 512c14.34 0 27.38-9.703 31-24.23l22.04-88.18L96.01 346.5V348.1zM313.6 268.8l-76.78-102.4C218.8 142.3 190.1 128 160 128L135.6 127.1c-36.59 0-69.5 20.33-85.87 53.06L3.387 273.7C-4.518 289.5 1.887 308.7 17.7 316.6c4.594 2.297 9.469 3.375 14.28 3.375c11.75 0 23.03-6.469 28.66-17.69l35.38-70.76v56.45c0 8.484 3.375 16.62 9.375 22.63l86.63 86.63v82.75c0 17.67 14.31 32 32 32c17.69 0 32-14.33 32-32v-82.75c0-17.09-6.656-33.16-18.75-45.25L192 306.8V213.3l70.38 93.88c10.59 14.11 30.62 16.98 44.78 6.406C321.3 303 324.2 282.9 313.6 268.8z"]},u={prefix:"fas",iconName:"place-of-worship",icon:[640,512,[],"f67f","M233.4 86.63L308.7 11.32C314.9 5.067 325.1 5.067 331.3 11.32L406.6 86.63C412.6 92.63 416 100.8 416 109.3V217.6L456.7 242C471.2 250.7 480 266.3 480 283.2V512H384V416C384 380.7 355.3 352 319.1 352C284.7 352 255.1 380.7 255.1 416V512H159.1V283.2C159.1 266.3 168.8 250.7 183.3 242L223.1 217.6V109.3C223.1 100.8 227.4 92.63 233.4 86.63H233.4zM24.87 330.3L128 273.6V512H48C21.49 512 0 490.5 0 464V372.4C0 354.9 9.53 338.8 24.87 330.3V330.3zM592 512H512V273.6L615.1 330.3C630.5 338.8 640 354.9 640 372.4V464C640 490.5 618.5 512 592 512V512z"]},b={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M432 256c0 17.69-14.33 32.01-32 32.01H256v144c0 17.69-14.33 31.99-32 31.99s-32-14.3-32-31.99v-144H48c-17.67 0-32-14.32-32-32.01s14.33-31.99 32-31.99H192v-144c0-17.69 14.33-32.01 32-32.01s32 14.32 32 32.01v144h144C417.7 224 432 238.3 432 256z"]},L={prefix:"fas",iconName:"rainbow",icon:[640,512,[127752],"f75b","M312.3 32.09C137.6 36.22 0 183.3 0 358V464C0 472.8 7.164 480 16 480h32C56.84 480 64 472.8 64 464v-106.9c0-143.2 117.2-263.5 260.4-261.1C463.5 98.4 576 212.3 576 352v112c0 8.836 7.164 16 16 16h32c8.838 0 16-7.164 16-16V352C640 172.1 492.3 27.84 312.3 32.09zM313.5 224.2C244.8 227.6 192 286.9 192 355.7V464C192 472.8 199.2 480 208 480h32C248.8 480 256 472.8 256 464v-109.7c0-34.06 25.65-63.85 59.64-66.11C352.9 285.7 384 315.3 384 352v112c0 8.836 7.164 16 16 16h32c8.838 0 16-7.164 16-16V352C448 279.3 387 220.5 313.5 224.2zM313.2 128.1C191.4 131.7 96 234.9 96 356.8V464C96 472.8 103.2 480 112 480h32C152.8 480 160 472.8 160 464v-108.1c0-86.64 67.24-160.5 153.8-163.8C404.8 188.7 480 261.7 480 352v112c0 8.836 7.164 16 16 16h32c8.838 0 16-7.164 16-16V352C544 226.2 439.8 124.3 313.2 128.1z"]},v={prefix:"fas",iconName:"ribbon",icon:[448,512,[127895],"f4d6","M6.05 444.3c-9.626 10.87-7.501 27.62 4.5 35.75l68.76 27.87c9.876 6.75 23.38 4.1 31.38-3.75l91.76-101.9L123.2 314.3L6.05 444.3zM441.8 444.3c0 0-292-324.5-295.4-329.1c15.38-8.5 40.25-17.1 77.51-17.1s62.13 9.5 77.51 17.1c-3.25 5.5-56.01 64.5-56.01 64.5l79.13 87.75l34.13-37.1c28.75-31.87 33.38-78.62 11.5-115.5L326.5 39.52c-4.25-7.25-9.876-13.25-16.75-17.1c-40.75-27.62-127.5-29.75-171.5 0C131.3 26.27 125.7 32.27 121.4 39.52L77.81 112.8C76.31 115.3 40.68 174.9 89.31 228.8l248.1 275.2c8.001 8.875 21.38 10.5 31.25 3.75l68.88-27.87C449.5 471.9 451.6 455.1 441.8 444.3z"]},H={prefix:"fas",iconName:"scale-balanced",icon:[640,512,[9878,"balance-scale"],"f24e","M554.9 154.5c-17.62-35.25-68.12-35.38-85.87 0c-87 174.3-84.1 165.9-84.1 181.5c0 44.13 57.25 80 128 80s127.1-35.88 127.1-80C639.1 319.9 641.4 327.3 554.9 154.5zM439.1 320l71.96-144l72.17 144H439.1zM256 336c0-16.12 1.375-8.75-85.12-181.5c-17.62-35.25-68.12-35.38-85.87 0c-87 174.3-84.1 165.9-84.1 181.5c0 44.13 57.25 80 127.1 80S256 380.1 256 336zM127.9 176L200.1 320H55.96L127.9 176zM495.1 448h-143.1V153.3C375.5 143 393.1 121.8 398.4 96h113.6c17.67 0 31.1-14.33 31.1-32s-14.33-32-31.1-32h-128.4c-14.62-19.38-37.5-32-63.62-32S270.1 12.62 256.4 32H128C110.3 32 96 46.33 96 64S110.3 96 127.1 96h113.6c5.25 25.75 22.87 47 46.37 57.25V448H144c-26.51 0-48.01 21.49-48.01 48c0 8.836 7.165 16 16 16h416c8.836 0 16-7.164 16-16C544 469.5 522.5 448 495.1 448z"]},y={prefix:"fas",iconName:"seedling",icon:[512,512,[127793,"sprout"],"f4d8","M64 95.1H0c0 123.8 100.3 224 224 224v128C224 465.6 238.4 480 255.1 480S288 465.6 288 448V320C288 196.3 187.7 95.1 64 95.1zM448 32c-84.25 0-157.4 46.5-195.8 115.3c27.75 30.12 48.25 66.88 59 107.5C424 243.1 512 147.9 512 32H448z"]},V={prefix:"fas",iconName:"universal-access",icon:[512,512,[],"f29a","M256 0C114.6 0 0 114.6 0 256c0 141.4 114.6 256 256 256s256-114.6 256-256C512 114.6 397.4 0 256 0zM256 80c22.09 0 40 17.91 40 40S278.1 160 256 160S216 142.1 216 120S233.9 80 256 80zM374.6 215.1L315.3 232C311.6 233.1 307.8 233.6 304 234.4v62.32l30.64 87.34c4.391 12.5-2.188 26.19-14.69 30.59C317.3 415.6 314.6 416 312 416c-9.906 0-19.19-6.188-22.64-16.06l-25.85-70.65c-2.562-7.002-12.46-7.002-15.03 0l-25.85 70.65C219.2 409.8 209.9 416 200 416c-2.641 0-5.312-.4375-7.953-1.344c-12.5-4.406-19.08-18.09-14.69-30.59L208 296.7V234.4C204.2 233.6 200.4 233.1 196.7 232L137.4 215.1C124.7 211.4 117.3 198.2 120.9 185.4S137.9 165.2 150.6 168.9l59.25 16.94c30.17 8.623 62.15 8.623 92.31 0l59.25-16.94c12.7-3.781 26.02 3.719 29.67 16.47C394.7 198.2 387.3 211.4 374.6 215.1z"]},w={prefix:"fas",iconName:"user-graduate",icon:[512,512,[],"f501","M45.63 79.75L52 81.25v58.5C45 143.9 40 151.3 40 160c0 8.375 4.625 15.38 11.12 19.75L35.5 242C33.75 248.9 37.63 256 43.13 256h41.75c5.5 0 9.375-7.125 7.625-13.1L76.88 179.8C83.38 175.4 88 168.4 88 160c0-8.75-5-16.12-12-20.25V87.13L128 99.63l.001 60.37c0 70.75 57.25 128 128 128s127.1-57.25 127.1-128L384 99.62l82.25-19.87c18.25-4.375 18.25-27 0-31.5l-190.4-46c-13-3-26.62-3-39.63 0l-190.6 46C27.5 52.63 27.5 75.38 45.63 79.75zM359.2 312.8l-103.2 103.2l-103.2-103.2c-69.93 22.3-120.8 87.2-120.8 164.5C32 496.5 47.53 512 66.67 512h378.7C464.5 512 480 496.5 480 477.3C480 400 429.1 335.1 359.2 312.8z"]},S={prefix:"fas",iconName:"venus",icon:[384,512,[9792],"f221","M368 176c0-97.2-78.8-176-176-176c-97.2 0-176 78.8-176 176c0 86.26 62.1 157.9 144 172.1v35.05H112c-8.836 0-16 7.162-16 16v32c0 8.836 7.164 16 16 16H160v48c0 8.836 7.164 16 16 16h32c8.838 0 16-7.164 16-16v-48h48c8.838 0 16-7.164 16-16v-32c0-8.838-7.162-16-16-16H224v-35.05C305.9 333.9 368 262.3 368 176zM192 272c-52.93 0-96-43.07-96-96c0-52.94 43.07-96 96-96c52.94 0 96 43.06 96 96C288 228.9 244.9 272 192 272z"]},N={prefix:"fad",iconName:"users",icon:[640,512,[],"f0c0",["M128 160c44.18 0 80-35.82 80-80S172.2 0 128 0C83.82 0 48 35.82 48 80S83.82 160 128 160zM512 160c44.18 0 80-35.82 80-80S556.2 0 512 0c-44.18 0-80 35.82-80 80S467.8 160 512 160zM551.9 192h-61.84c-12.8 0-24.88 3.037-35.86 8.24C454.8 205.5 455.8 210.6 455.8 216c0 33.71-12.78 64.21-33.16 88h199.7C632.1 304 640 295.6 640 285.3C640 233.8 600.6 192 551.9 192zM185.5 200.1C174.6 194.1 162.6 192 149.9 192H88.08C39.44 192 0 233.8 0 285.3C0 295.6 7.887 304 17.62 304h199.5c-20.38-23.79-33.16-54.29-33.16-88C183.9 210.6 184.9 205.4 185.5 200.1z","M319.9 320c57.41 0 103.1-46.56 103.1-104c0-57.44-46.54-104-103.1-104c-57.41 0-103.1 46.56-103.1 104C215.9 273.4 262.5 320 319.9 320zM369.9 352H270.1C191.6 352 128 411.7 128 485.3C128 500.1 140.7 512 156.4 512h327.2C499.3 512 512 500.1 512 485.3C512 411.7 448.4 352 369.9 352z"]]},k={prefix:"fas",iconName:"head-side-medical",icon:[512,512,[],"f809","M509.2 275c-21-47.13-48.5-151.8-73.12-186.8C397.1 32.88 333.7 0 266.1 0H192C86 0 0 86 0 192c0 54.5 23.25 106.5 64 142.9L64 512h256l-.0052-64h63.99c35.38 0 63.1-28.62 63.1-63.1V320h31.1c10.88 0 20.89-5.5 26.77-14.62C512.8 296.4 513.6 284.9 509.2 275zM336 218c0 8.836-7.164 16-16 16h-54V288c0 8.836-7.164 16-16 16h-52C189.2 304 182 296.8 182 288V234H128c-8.836 0-16-7.164-16-16v-52c0-8.836 7.164-16 16-16h54V96c0-8.836 7.165-16 16-16h52c8.836 0 16 7.164 16 16v54h54c8.836 0 16 7.164 16 16V218z"]},F={prefix:"fas",iconName:"house-heart",icon:[576,512,["home-heart"],"f4c9","M511.8 287.6L512.5 447.7C512.6 483.2 483.9 512 448.5 512H128.1C92.75 512 64.09 483.3 64.09 448V287.6H32.05C14.02 287.6 0 273.5 0 255.5C0 246.5 3.004 238.5 10.01 231.5L266.4 8.016C273.4 1.002 281.4 0 288.4 0C295.4 0 303.4 2.004 309.5 7.014L564.8 231.5C572.8 238.5 576.9 246.5 575.8 255.5C575.8 273.5 560.8 287.6 543.8 287.6H511.8zM299.3 396.7L392 304C414.1 281.9 414.1 246.1 392 224C369.9 201.9 334.1 201.9 312 224L288 248L264 224C241.9 201.9 206.1 201.9 184 224C161.9 246.1 161.9 281.9 184 304L276.7 396.7C282.9 402.9 293.1 402.9 299.3 396.7H299.3z"]};
7
7
  /*!
8
8
  * Font Awesome Free 6.1.2 by @fontawesome - https://fontawesome.com
9
9
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
10
10
  * Copyright 2022 Fonticons, Inc.
11
- */class A{static getBeneficiaries(){return[{name:"Children (3-18)",icon:s},{name:"General Public/Humankind",icon:y},{name:"Infants (<2)",icon:t},{name:"LGBTQAI",icon:u},{name:"Minority Groups",icon:N},{name:"Older People",icon:M},{name:"People With Disabilities",icon:i},{name:"Refugees/Asylum Seekers",icon:l},{name:"Women & Girls",icon:S},{name:"Young People (18-30)",icon:w},{name:"Other",icon:L}]}static getCategories(){return[{name:"Animals",icon:z},{name:"Armed Forces/Emergency Services",icon:h},{name:"Arts/Culture/Heritage",icon:m},{name:"Cancer",icon:v},{name:"Community Support & Development",icon:x},{name:"Disaster Relief",icon:g},{name:"Education/Training/Employment",icon:n},{name:"Environment/Conservation",icon:V},{name:"Health/Wellbeing",icon:C},{name:"Homeless/Refuge",icon:F},{name:"Hospitals/Hospices",icon:p},{name:"Human Rights/Advocacy",icon:H},{name:"Information/Advice",icon:o},{name:"Medical Research",icon:f},{name:"Mental Health",icon:k},{name:"Poverty Alleviation/Relief",icon:d},{name:"Religious",icon:b},{name:"Sports/Recreation",icon:r},{name:"Other",icon:L}]}static getBeneficiaryIcon(e){return A.getBeneficiaries().filter((c=>c.name===e))[0].icon||L}static getCategoryIcon(e){var c;return(null===(c=A.getCategories().filter((c=>c.name===e))[0])||void 0===c?void 0:c.icon)||L}}const R=class{constructor(c){e(this,c),this.banner="",this.daysRemaining=null,this.target=null,this.organisationName=null,this.campaignTitle=null,this.campaignType=null,this.beneficiaries="",this.categories="",this.matchFundsRemaining=null,this.totalFundsRaised=null,this.callToActionUrl=null,this.callToActionLabel=null}getBeneficiaryIcons(){return this.beneficiaries.length>0?this.beneficiaries.split("|").map((e=>A.getBeneficiaryIcon(e))):[]}getCategoryIcons(){return this.categories.length>0?this.categories.split("|").map((e=>A.getCategoryIcon(e))):[]}formatCurrency(e){return isNaN(e)?e:parseInt(e).toLocaleString()}render(){return c("div",{class:"container"},c("div",{class:"sleeve"},c("div",{class:"campaign-type"},c("span",null,this.campaignType)),this.banner.length>0?c("div",{class:"image-wrap banner",style:{"background-image":"url("+this.banner+")"}},c("img",{src:this.banner,class:"banner"})):null,c("div",{class:"content"},c("div",{class:"meta-wrap style-1"},c("div",{class:"meta-item"},c("span",{class:"label"},"Days Remaining:")," ",c("span",{class:"text"},this.daysRemaining)),c("div",{class:"meta-item"},c("span",{class:"label"},"Target:")," ",c("span",{class:"text"},"£",this.formatCurrency(this.target)))),c("header",null,c("div",{class:"slug"},this.organisationName),c("h3",null,this.campaignTitle)),c("div",{class:"meta-wrap style-2"},c("div",{class:"meta-item"},c("span",{class:"label"},"Categories"),c("span",{class:"text"},this.getCategoryIcons().map((e=>c("svg",{width:"512",height:"512",xmlns:"http://www.w3.org/2000/svg",class:"icon",viewBox:"0 0 512 512"},c("path",{d:e.icon[4].toString()})))))),c("div",{class:"meta-item"},c("span",{class:"label"},"Helping"),c("span",{class:"text"},this.getBeneficiaryIcons().map((e=>c("svg",{width:"512",height:"512",xmlns:"http://www.w3.org/2000/svg",class:"icon",viewBox:"0 0 512 512"},c("path",{d:e.icon[4].toString()}))))))),c("div",{class:"meta-wrap style-3"},c("div",{class:"meta-item"},c("span",{class:"label"},"Match",c("br",null),"Funds Remaining"),c("span",{class:"text"},"£",this.formatCurrency(this.matchFundsRemaining))),c("div",{class:"meta-item"},c("span",{class:"label"},"Total",c("br",null),"Funds Received"),c("span",{class:"text"},"£",this.formatCurrency(this.totalFundsRaised)))),c("div",{class:"button-wrap"},c("a",{href:this.callToActionUrl,class:"call-to-action"},this.callToActionLabel)))))}};R.style=':host{display:block;margin-bottom:30px}.container{font-family:"Euclid Triangle", sans-serif;filter:drop-shadow(-1px 6px 3px rgba(0, 0, 0, 0.25))}.sleeve{clip-path:polygon(0% 0%, 0% 0%, 100% 0%, 100% 0%, 100% 100%, 100% 100%, 10% 100%, 0 90%)}.content{padding:15px;background-color:#FFFFFF}.campaign-type{margin-left:15px;width:0;height:0;border-style:inset;border-width:85px 45px 0 45px;border-color:#2AF135 transparent transparent transparent;float:left;transform:rotate(360deg)}.campaign-type span{display:block;text-align:center;top:-85px;left:-25px;position:relative;width:45px;height:45px;margin:0;color:#2C089B;font-size:0.9rem}.banner{padding-bottom:30%;background-repeat:no-repeat;background-position:center center;background-size:cover}.banner img{display:none}.meta-wrap.style-1{display:flex;font-size:16px;line-height:20px;margin-bottom:20px}.meta-wrap.style-1 .meta-item{width:50%}.meta-wrap.style-1 .meta-item .label{font-weight:bold}.meta-wrap.style-1 .meta-item .text{color:#2C089B}header{margin-bottom:20px}header .slug{text-transform:uppercase;font-size:12px;line-height:14px}header h3{margin:0;padding:0;font-size:24px;line-height:28px}.meta-wrap.style-2{display:flex;font-size:12px;line-height:14px;margin-bottom:40px}.meta-wrap.style-2 .meta-item{width:50%}.meta-wrap.style-2 .meta-item .label{font-weight:bold;display:block;margin-bottom:10px}.meta-wrap.style-2 .meta-item .text{display:block;font-size:16px;line-height:18px}.meta-wrap.style-2 .meta-item .text i{margin-right:10px}.meta-wrap.style-3{display:flex;font-size:16px;line-height:20px;margin-bottom:20px}.meta-wrap.style-3 .meta-item{margin-right:60px}.meta-wrap.style-3 .meta-item .label{font-weight:bold;display:block;font-size:12px;line-height:14px;margin-bottom:10px}.meta-wrap.style-3 .meta-item .text{display:block;font-size:36px;line-height:40px;font-weight:bold}.meta-wrap.style-3 .meta-item:last-child .text{color:#2C089B}.button-wrap{text-align:right}.button-wrap a{display:inline-block;padding:15px 30px;color:#FFFFFF;background-color:#2C089B;cursor:pointer;text-transform:uppercase;font-size:12px;text-decoration:none}.icon{height:1rem;width:2rem;vertical-align:-0.125rem}';const B=class{constructor(c){e(this,c)}render(){return c("div",{class:"grid"},c("slot",null))}};B.style=":host{display:block}.grid{display:flex;flex-flow:row wrap;justify-content:space-between}";const I=class{constructor(c){e(this,c)}render(){return c("biggive-grid",null,[...Array(12)].map((()=>c("biggive-campaign-card",{banner:a("/assets/images/banner.png"),"days-remaining":50,target:5e4,"organisation-name":"Ardent Theatre Company","campaign-type":"Match Funded","campaign-title":"Strike! A play by Tracy Ryan",categories:"Arts/Culture/Heritage|Environment/Conservation|Health/Wellbeing",beneficiaries:"General Public/Humankind","match-funds-remaining":17424,"total-funds-raised":15424,"call-to-action-url":"#","call-to-action-label":"Donate"}))))}};I.style=":host{display:block}";export{R as biggive_campaign_card,B as biggive_grid,I as demo_campaign_cards}
11
+ */class A{static getBeneficiaries(){return[{name:"Children (3-18)",icon:s},{name:"General Public/Humankind",icon:V},{name:"Infants (<2)",icon:n},{name:"LGBTQAI",icon:L},{name:"Minority Groups",icon:N},{name:"Older People",icon:M},{name:"People With Disabilities",icon:i},{name:"Refugees/Asylum Seekers",icon:l},{name:"Women & Girls",icon:S},{name:"Young People (18-30)",icon:w},{name:"Other",icon:b}]}static getCategories(){return[{name:"Animals",icon:z},{name:"Armed Forces/Emergency Services",icon:h},{name:"Arts/Culture/Heritage",icon:p},{name:"Cancer",icon:v},{name:"Community Support & Development",icon:x},{name:"Disaster Relief",icon:g},{name:"Education/Training/Employment",icon:t},{name:"Environment/Conservation",icon:y},{name:"Health/Wellbeing",icon:C},{name:"Homeless/Refuge",icon:F},{name:"Hospitals/Hospices",icon:m},{name:"Human Rights/Advocacy",icon:H},{name:"Information/Advice",icon:o},{name:"Medical Research",icon:f},{name:"Mental Health",icon:k},{name:"Poverty Alleviation/Relief",icon:d},{name:"Religious",icon:u},{name:"Sports/Recreation",icon:r},{name:"Other",icon:b}]}static getBeneficiaryIcon(e){return A.getBeneficiaries().filter((c=>c.name===e))[0].icon||b}static getCategoryIcon(e){var c;return(null===(c=A.getCategories().filter((c=>c.name===e))[0])||void 0===c?void 0:c.icon)||b}}const R=class{constructor(c){e(this,c),this.banner="",this.daysRemaining=null,this.target=null,this.organisationName=null,this.campaignTitle=null,this.campaignType=null,this.beneficiaries=[],this.categories=[],this.matchFundsRemaining=null,this.totalFundsRaised=null,this.callToActionUrl=null,this.callToActionLabel=null}getBeneficiaryIcons(){return this.beneficiaries.map((e=>A.getBeneficiaryIcon(e)))}getCategoryIcons(){return this.categories.map((e=>A.getCategoryIcon(e)))}formatCurrency(e,c){return null===c||isNaN(c)?"–":Intl.NumberFormat("en-GB",{style:"currency",currency:e,currencyDisplay:"symbol",maximumFractionDigits:0}).format(c)}render(){return c("div",{class:"container"},c("div",{class:"sleeve"},c("div",{class:"campaign-type"},c("span",null,this.campaignType)),this.banner.length>0?c("div",{class:"image-wrap banner",style:{"background-image":"url("+this.banner+")"}},c("img",{src:this.banner,class:"banner"})):null,c("div",{class:"content"},c("div",{class:"meta-wrap style-1"},c("div",{class:"meta-item"},c("span",{class:"label"},"Days Remaining:")," ",c("span",{class:"text"},this.daysRemaining)),c("div",{class:"meta-item"},c("span",{class:"label"},"Target:")," ",c("span",{class:"text"},this.formatCurrency(this.currencyCode,this.target)))),c("header",null,c("div",{class:"slug"},this.organisationName),c("h3",null,this.campaignTitle)),c("div",{class:"meta-wrap style-2"},c("div",{class:"meta-item"},c("span",{class:"label"},"Categories"),c("span",{class:"text"},this.getCategoryIcons().map((e=>c("svg",{width:"512",height:"512",xmlns:"http://www.w3.org/2000/svg",class:"icon",viewBox:"0 0 512 512"},c("path",{d:e.icon[4].toString()})))))),c("div",{class:"meta-item"},c("span",{class:"label"},"Helping"),c("span",{class:"text"},this.getBeneficiaryIcons().map((e=>c("svg",{width:"512",height:"512",xmlns:"http://www.w3.org/2000/svg",class:"icon",viewBox:"0 0 512 512"},c("path",{d:e.icon[4].toString()}))))))),c("div",{class:"meta-wrap style-3"},c("div",{class:"meta-item"},c("span",{class:"label"},"Match",c("br",null),"Funds Remaining"),c("span",{class:"text"},this.formatCurrency(this.currencyCode,this.matchFundsRemaining))),c("div",{class:"meta-item"},c("span",{class:"label"},"Total",c("br",null),"Funds Received"),c("span",{class:"text"},this.formatCurrency(this.currencyCode,this.totalFundsRaised)))),c("div",{class:"button-wrap"},c("a",{href:this.callToActionUrl,class:"call-to-action"},this.callToActionLabel)))))}};R.style=':host{display:block;margin-bottom:30px}.container{font-family:"Euclid Triangle", sans-serif;filter:drop-shadow(-1px 6px 3px rgba(0, 0, 0, 0.25))}.sleeve{clip-path:polygon(0% 0%, 0% 0%, 100% 0%, 100% 0%, 100% 100%, 100% 100%, 10% 100%, 0 90%)}.content{padding:15px;background-color:#FFFFFF}.campaign-type{margin-left:15px;width:0;height:0;border-style:inset;border-width:85px 45px 0 45px;border-color:#2AF135 transparent transparent transparent;float:left;transform:rotate(360deg)}.campaign-type span{display:block;text-align:center;top:-85px;left:-25px;position:relative;width:45px;height:45px;margin:0;color:#2C089B;font-size:0.9rem}.banner{padding-bottom:30%;background-repeat:no-repeat;background-position:center center;background-size:cover}.banner img{display:none}.meta-wrap.style-1{display:flex;font-size:16px;line-height:20px;margin-bottom:20px}.meta-wrap.style-1 .meta-item{width:50%}.meta-wrap.style-1 .meta-item .label{font-weight:bold}.meta-wrap.style-1 .meta-item .text{color:#2C089B}header{margin-bottom:20px}header .slug{text-transform:uppercase;font-size:12px;line-height:14px}header h3{margin:0;padding:0;font-size:24px;line-height:28px}.meta-wrap.style-2{display:flex;font-size:12px;line-height:14px;margin-bottom:40px}.meta-wrap.style-2 .meta-item{width:50%}.meta-wrap.style-2 .meta-item .label{font-weight:bold;display:block;margin-bottom:10px}.meta-wrap.style-2 .meta-item .text{display:block;font-size:16px;line-height:18px}.meta-wrap.style-2 .meta-item .text i{margin-right:10px}.meta-wrap.style-3{display:flex;font-size:16px;line-height:20px;margin-bottom:20px}.meta-wrap.style-3 .meta-item{margin-right:60px}.meta-wrap.style-3 .meta-item .label{font-weight:bold;display:block;font-size:12px;line-height:14px;margin-bottom:10px}.meta-wrap.style-3 .meta-item .text{display:block;font-size:36px;line-height:40px;font-weight:bold}.meta-wrap.style-3 .meta-item:last-child .text{color:#2C089B}.button-wrap{text-align:right}.button-wrap a{display:inline-block;padding:15px 30px;color:#FFFFFF;background-color:#2C089B;cursor:pointer;text-transform:uppercase;font-size:12px;text-decoration:none}.icon{height:1rem;width:2rem;vertical-align:-0.125rem}';const B=class{constructor(c){e(this,c)}render(){return c("div",{class:"grid"},c("slot",null))}};B.style=":host{display:block}.grid{display:flex;flex-flow:row wrap;justify-content:space-between}";const T=class{constructor(c){e(this,c)}render(){return c("biggive-grid",null,[...Array(12)].map((()=>c("biggive-campaign-card",{banner:a("/assets/images/banner.png"),daysRemaining:50,currencyCode:"GBP",target:5e4,organisationName:"Ardent Theatre Company",campaignType:"Match Funded",campaignTitle:"Strike! A play by Tracy Ryan",categories:["Arts/Culture/Heritage","Environment/Conservation","Health/Wellbeing"],beneficiaries:["General Public/Humankind"],matchFundsRemaining:17424,totalFundsRaised:15424,callToActionUrl:"#",callToActionLabel:"Donate"}))))}};T.style=":host{display:block}";export{R as biggive_campaign_card,B as biggive_grid,T as demo_campaign_cards}
@@ -328,71 +328,78 @@ const BiggiveCampaignCard = class {
328
328
  constructor(hostRef) {
329
329
  index.registerInstance(this, hostRef);
330
330
  /**
331
- * @param {string} banner Full URL of a banner image.
331
+ * Full URL of a banner image.
332
332
  */
333
333
  this.banner = '';
334
334
  /**
335
- * @param {string} number (Ceiling of) whole number of days until campaign end.
335
+ * (Ceiling of) whole number of days until campaign end.
336
336
  */
337
337
  this.daysRemaining = null;
338
338
  /**
339
- * @param {number} totalFundsRaised Target for the campaign including matching but excluding any
340
- * tax relief, in major unit of currency e.g. pounds GBP.
339
+ * Target for the campaign including matching but excluding any
340
+ * tax relief, in major unit of currency e.g. pounds GBP.
341
341
  */
342
342
  this.target = null;
343
343
  /**
344
- * @param {string} organisationName Display name of the charity or non-profit.
344
+ * Display name of the charity or non-profit.
345
345
  */
346
346
  this.organisationName = null;
347
347
  /**
348
- * @param {string} organisationName Display name of the charity's specific time-bound fundraising campaign.
348
+ * Display name of the charity's specific time-bound fundraising campaign.
349
349
  */
350
350
  this.campaignTitle = null;
351
351
  /**
352
- * @param {string} campaignType e.g. "Match Funded".
352
+ * e.g. "Match Funded".
353
353
  */
354
354
  this.campaignType = null;
355
355
  /**
356
- * @param {string} beneficiaries Pipe (|) -separated list of full category labels.
356
+ * Array of full beneficiary labels.
357
357
  */
358
- this.beneficiaries = '';
358
+ this.beneficiaries = [];
359
359
  /**
360
- * @param {string} categories Pipe (|) -separated list of full category labels.
360
+ * Array of full category labels.
361
361
  */
362
- this.categories = '';
362
+ this.categories = [];
363
363
  /**
364
- * @param {number} totalFundsRaised Match funds not yet used or reserved, in major unit of currency
365
- * e.g. pounds GBP.
364
+ * Match funds not yet used or reserved, in major unit of currency e.g. pounds GBP.
366
365
  */
367
366
  this.matchFundsRemaining = null;
368
367
  /**
369
- * @param {number} totalFundsRaised Total the campaign has raised so far including matching but excluding any
370
- * tax relief, in major unit of currency e.g. pounds GBP.
368
+ * Total the campaign has raised so far including matching but excluding any
369
+ * tax relief, in major unit of currency e.g. pounds GBP.
371
370
  */
372
371
  this.totalFundsRaised = null;
373
372
  /**
374
- * @param {string} callToActionUrl Full URL of a call to action.
373
+ * Full URL of a call to action.
375
374
  */
376
375
  this.callToActionUrl = null;
377
376
  /**
378
- * @param {string} callToActionLabel Text for the link to `callToActionUrl`.
377
+ * Text for the link to `callToActionUrl`.
379
378
  */
380
379
  this.callToActionLabel = null;
381
380
  }
382
381
  getBeneficiaryIcons() {
383
- return this.beneficiaries.length > 0 ? this.beneficiaries.split('|').map(beneficiary => CampaignGroupsService.getBeneficiaryIcon(beneficiary)) : [];
382
+ return this.beneficiaries.map(beneficiary => CampaignGroupsService.getBeneficiaryIcon(beneficiary));
384
383
  }
385
384
  getCategoryIcons() {
386
- return this.categories.length > 0 ? this.categories.split('|').map(category => CampaignGroupsService.getCategoryIcon(category)) : [];
385
+ return this.categories.map(category => CampaignGroupsService.getCategoryIcon(category));
387
386
  }
388
- formatCurrency(num) {
389
- if (!isNaN(num)) {
390
- return parseInt(num).toLocaleString();
387
+ /**
388
+ * @returns Whole large currency units (e.g. pounds) formatted with symbol.
389
+ */
390
+ formatCurrency(currencyCode, amount) {
391
+ if (amount === null || isNaN(amount)) {
392
+ return '–';
391
393
  }
392
- return num;
394
+ return Intl.NumberFormat('en-GB', {
395
+ style: 'currency',
396
+ currency: currencyCode,
397
+ currencyDisplay: 'symbol',
398
+ maximumFractionDigits: 0,
399
+ }).format(amount);
393
400
  }
394
401
  render() {
395
- return (index.h("div", { class: "container" }, index.h("div", { class: "sleeve" }, index.h("div", { class: "campaign-type" }, index.h("span", null, this.campaignType)), this.banner.length > 0 ? (index.h("div", { class: "image-wrap banner", style: { 'background-image': 'url(' + this.banner + ')' } }, index.h("img", { src: this.banner, class: "banner" }))) : null, index.h("div", { class: "content" }, index.h("div", { class: "meta-wrap style-1" }, index.h("div", { class: "meta-item" }, index.h("span", { class: "label" }, "Days Remaining:"), " ", index.h("span", { class: "text" }, this.daysRemaining)), index.h("div", { class: "meta-item" }, index.h("span", { class: "label" }, "Target:"), " ", index.h("span", { class: "text" }, "\u00A3", this.formatCurrency(this.target)))), index.h("header", null, index.h("div", { class: "slug" }, this.organisationName), index.h("h3", null, this.campaignTitle)), index.h("div", { class: "meta-wrap style-2" }, index.h("div", { class: "meta-item" }, index.h("span", { class: "label" }, "Categories"), index.h("span", { class: "text" }, this.getCategoryIcons().map((iconDefinition) => (index.h("svg", { width: "512", height: "512", xmlns: "http://www.w3.org/2000/svg", class: "icon", viewBox: "0 0 512 512" }, index.h("path", { d: iconDefinition.icon[4].toString() })))))), index.h("div", { class: "meta-item" }, index.h("span", { class: "label" }, "Helping"), index.h("span", { class: "text" }, this.getBeneficiaryIcons().map(iconDefinition => (index.h("svg", { width: "512", height: "512", xmlns: "http://www.w3.org/2000/svg", class: "icon", viewBox: "0 0 512 512" }, index.h("path", { d: iconDefinition.icon[4].toString() }))))))), index.h("div", { class: "meta-wrap style-3" }, index.h("div", { class: "meta-item" }, index.h("span", { class: "label" }, "Match", index.h("br", null), "Funds Remaining"), index.h("span", { class: "text" }, "\u00A3", this.formatCurrency(this.matchFundsRemaining))), index.h("div", { class: "meta-item" }, index.h("span", { class: "label" }, "Total", index.h("br", null), "Funds Received"), index.h("span", { class: "text" }, "\u00A3", this.formatCurrency(this.totalFundsRaised)))), index.h("div", { class: "button-wrap" }, index.h("a", { href: this.callToActionUrl, class: "call-to-action" }, this.callToActionLabel))))));
402
+ return (index.h("div", { class: "container" }, index.h("div", { class: "sleeve" }, index.h("div", { class: "campaign-type" }, index.h("span", null, this.campaignType)), this.banner.length > 0 ? (index.h("div", { class: "image-wrap banner", style: { 'background-image': 'url(' + this.banner + ')' } }, index.h("img", { src: this.banner, class: "banner" }))) : null, index.h("div", { class: "content" }, index.h("div", { class: "meta-wrap style-1" }, index.h("div", { class: "meta-item" }, index.h("span", { class: "label" }, "Days Remaining:"), " ", index.h("span", { class: "text" }, this.daysRemaining)), index.h("div", { class: "meta-item" }, index.h("span", { class: "label" }, "Target:"), " ", index.h("span", { class: "text" }, this.formatCurrency(this.currencyCode, this.target)))), index.h("header", null, index.h("div", { class: "slug" }, this.organisationName), index.h("h3", null, this.campaignTitle)), index.h("div", { class: "meta-wrap style-2" }, index.h("div", { class: "meta-item" }, index.h("span", { class: "label" }, "Categories"), index.h("span", { class: "text" }, this.getCategoryIcons().map((iconDefinition) => (index.h("svg", { width: "512", height: "512", xmlns: "http://www.w3.org/2000/svg", class: "icon", viewBox: "0 0 512 512" }, index.h("path", { d: iconDefinition.icon[4].toString() })))))), index.h("div", { class: "meta-item" }, index.h("span", { class: "label" }, "Helping"), index.h("span", { class: "text" }, this.getBeneficiaryIcons().map(iconDefinition => (index.h("svg", { width: "512", height: "512", xmlns: "http://www.w3.org/2000/svg", class: "icon", viewBox: "0 0 512 512" }, index.h("path", { d: iconDefinition.icon[4].toString() }))))))), index.h("div", { class: "meta-wrap style-3" }, index.h("div", { class: "meta-item" }, index.h("span", { class: "label" }, "Match", index.h("br", null), "Funds Remaining"), index.h("span", { class: "text" }, this.formatCurrency(this.currencyCode, this.matchFundsRemaining))), index.h("div", { class: "meta-item" }, index.h("span", { class: "label" }, "Total", index.h("br", null), "Funds Received"), index.h("span", { class: "text" }, this.formatCurrency(this.currencyCode, this.totalFundsRaised)))), index.h("div", { class: "button-wrap" }, index.h("a", { href: this.callToActionUrl, class: "call-to-action" }, this.callToActionLabel))))));
396
403
  }
397
404
  };
398
405
  BiggiveCampaignCard.style = biggiveCampaignCardCss;
@@ -416,7 +423,7 @@ const DemoCampaignCards = class {
416
423
  index.registerInstance(this, hostRef);
417
424
  }
418
425
  render() {
419
- return (index.h("biggive-grid", null, [...Array(12)].map(() => (index.h("biggive-campaign-card", { banner: index.getAssetPath('/assets/images/banner.png'), "days-remaining": 50, target: 50000, "organisation-name": "Ardent Theatre Company", "campaign-type": "Match Funded", "campaign-title": "Strike! A play by Tracy Ryan", categories: "Arts/Culture/Heritage|Environment/Conservation|Health/Wellbeing", beneficiaries: "General Public/Humankind", "match-funds-remaining": 17424, "total-funds-raised": 15424, "call-to-action-url": "#", "call-to-action-label": "Donate" })))));
426
+ return (index.h("biggive-grid", null, [...Array(12)].map(() => (index.h("biggive-campaign-card", { banner: index.getAssetPath('/assets/images/banner.png'), daysRemaining: 50, currencyCode: "GBP", target: 50000, organisationName: "Ardent Theatre Company", campaignType: "Match Funded", campaignTitle: "Strike! A play by Tracy Ryan", categories: ['Arts/Culture/Heritage', 'Environment/Conservation', 'Health/Wellbeing'], beneficiaries: ['General Public/Humankind'], matchFundsRemaining: 17424, totalFundsRaised: 15424, callToActionUrl: "#", callToActionLabel: "Donate" })))));
420
427
  }
421
428
  };
422
429
  DemoCampaignCards.style = demoCampaignCardsCss;
@@ -15,5 +15,5 @@ const patchBrowser = () => {
15
15
  };
16
16
 
17
17
  patchBrowser().then(options => {
18
- return index.bootstrapLazy([["biggive-campaign-card_3.cjs",[[1,"demo-campaign-cards"],[1,"biggive-campaign-card",{"banner":[1],"daysRemaining":[2,"days-remaining"],"target":[2],"organisationName":[1,"organisation-name"],"campaignTitle":[1,"campaign-title"],"campaignType":[1,"campaign-type"],"beneficiaries":[1],"categories":[1],"matchFundsRemaining":[2,"match-funds-remaining"],"totalFundsRaised":[2,"total-funds-raised"],"callToActionUrl":[1,"call-to-action-url"],"callToActionLabel":[1,"call-to-action-label"]}],[1,"biggive-grid"]]]], options);
18
+ return index.bootstrapLazy([["biggive-campaign-card_3.cjs",[[1,"demo-campaign-cards"],[1,"biggive-campaign-card",{"banner":[1],"daysRemaining":[2,"days-remaining"],"currencyCode":[1,"currency-code"],"target":[2],"organisationName":[1,"organisation-name"],"campaignTitle":[1,"campaign-title"],"campaignType":[1,"campaign-type"],"beneficiaries":[16],"categories":[16],"matchFundsRemaining":[2,"match-funds-remaining"],"totalFundsRaised":[2,"total-funds-raised"],"callToActionUrl":[1,"call-to-action-url"],"callToActionLabel":[1,"call-to-action-label"]}],[1,"biggive-grid"]]]], options);
19
19
  });
@@ -14,7 +14,7 @@ const patchEsm = () => {
14
14
  const defineCustomElements = (win, options) => {
15
15
  if (typeof window === 'undefined') return Promise.resolve();
16
16
  return patchEsm().then(() => {
17
- return index.bootstrapLazy([["biggive-campaign-card_3.cjs",[[1,"demo-campaign-cards"],[1,"biggive-campaign-card",{"banner":[1],"daysRemaining":[2,"days-remaining"],"target":[2],"organisationName":[1,"organisation-name"],"campaignTitle":[1,"campaign-title"],"campaignType":[1,"campaign-type"],"beneficiaries":[1],"categories":[1],"matchFundsRemaining":[2,"match-funds-remaining"],"totalFundsRaised":[2,"total-funds-raised"],"callToActionUrl":[1,"call-to-action-url"],"callToActionLabel":[1,"call-to-action-label"]}],[1,"biggive-grid"]]]], options);
17
+ return index.bootstrapLazy([["biggive-campaign-card_3.cjs",[[1,"demo-campaign-cards"],[1,"biggive-campaign-card",{"banner":[1],"daysRemaining":[2,"days-remaining"],"currencyCode":[1,"currency-code"],"target":[2],"organisationName":[1,"organisation-name"],"campaignTitle":[1,"campaign-title"],"campaignType":[1,"campaign-type"],"beneficiaries":[16],"categories":[16],"matchFundsRemaining":[2,"match-funds-remaining"],"totalFundsRaised":[2,"total-funds-raised"],"callToActionUrl":[1,"call-to-action-url"],"callToActionLabel":[1,"call-to-action-label"]}],[1,"biggive-grid"]]]], options);
18
18
  });
19
19
  };
20
20
 
@@ -6,68 +6,75 @@ import { CampaignGroupsService } from '../../util/campaign-groups';
6
6
  export class BiggiveCampaignCard {
7
7
  constructor() {
8
8
  /**
9
- * @param {string} banner Full URL of a banner image.
9
+ * Full URL of a banner image.
10
10
  */
11
11
  this.banner = '';
12
12
  /**
13
- * @param {string} number (Ceiling of) whole number of days until campaign end.
13
+ * (Ceiling of) whole number of days until campaign end.
14
14
  */
15
15
  this.daysRemaining = null;
16
16
  /**
17
- * @param {number} totalFundsRaised Target for the campaign including matching but excluding any
18
- * tax relief, in major unit of currency e.g. pounds GBP.
17
+ * Target for the campaign including matching but excluding any
18
+ * tax relief, in major unit of currency e.g. pounds GBP.
19
19
  */
20
20
  this.target = null;
21
21
  /**
22
- * @param {string} organisationName Display name of the charity or non-profit.
22
+ * Display name of the charity or non-profit.
23
23
  */
24
24
  this.organisationName = null;
25
25
  /**
26
- * @param {string} organisationName Display name of the charity's specific time-bound fundraising campaign.
26
+ * Display name of the charity's specific time-bound fundraising campaign.
27
27
  */
28
28
  this.campaignTitle = null;
29
29
  /**
30
- * @param {string} campaignType e.g. "Match Funded".
30
+ * e.g. "Match Funded".
31
31
  */
32
32
  this.campaignType = null;
33
33
  /**
34
- * @param {string} beneficiaries Pipe (|) -separated list of full category labels.
34
+ * Array of full beneficiary labels.
35
35
  */
36
- this.beneficiaries = '';
36
+ this.beneficiaries = [];
37
37
  /**
38
- * @param {string} categories Pipe (|) -separated list of full category labels.
38
+ * Array of full category labels.
39
39
  */
40
- this.categories = '';
40
+ this.categories = [];
41
41
  /**
42
- * @param {number} totalFundsRaised Match funds not yet used or reserved, in major unit of currency
43
- * e.g. pounds GBP.
42
+ * Match funds not yet used or reserved, in major unit of currency e.g. pounds GBP.
44
43
  */
45
44
  this.matchFundsRemaining = null;
46
45
  /**
47
- * @param {number} totalFundsRaised Total the campaign has raised so far including matching but excluding any
48
- * tax relief, in major unit of currency e.g. pounds GBP.
46
+ * Total the campaign has raised so far including matching but excluding any
47
+ * tax relief, in major unit of currency e.g. pounds GBP.
49
48
  */
50
49
  this.totalFundsRaised = null;
51
50
  /**
52
- * @param {string} callToActionUrl Full URL of a call to action.
51
+ * Full URL of a call to action.
53
52
  */
54
53
  this.callToActionUrl = null;
55
54
  /**
56
- * @param {string} callToActionLabel Text for the link to `callToActionUrl`.
55
+ * Text for the link to `callToActionUrl`.
57
56
  */
58
57
  this.callToActionLabel = null;
59
58
  }
60
59
  getBeneficiaryIcons() {
61
- return this.beneficiaries.length > 0 ? this.beneficiaries.split('|').map(beneficiary => CampaignGroupsService.getBeneficiaryIcon(beneficiary)) : [];
60
+ return this.beneficiaries.map(beneficiary => CampaignGroupsService.getBeneficiaryIcon(beneficiary));
62
61
  }
63
62
  getCategoryIcons() {
64
- return this.categories.length > 0 ? this.categories.split('|').map(category => CampaignGroupsService.getCategoryIcon(category)) : [];
63
+ return this.categories.map(category => CampaignGroupsService.getCategoryIcon(category));
65
64
  }
66
- formatCurrency(num) {
67
- if (!isNaN(num)) {
68
- return parseInt(num).toLocaleString();
65
+ /**
66
+ * @returns Whole large currency units (e.g. pounds) formatted with symbol.
67
+ */
68
+ formatCurrency(currencyCode, amount) {
69
+ if (amount === null || isNaN(amount)) {
70
+ return '–';
69
71
  }
70
- return num;
72
+ return Intl.NumberFormat('en-GB', {
73
+ style: 'currency',
74
+ currency: currencyCode,
75
+ currencyDisplay: 'symbol',
76
+ maximumFractionDigits: 0,
77
+ }).format(amount);
71
78
  }
72
79
  render() {
73
80
  return (h("div", { class: "container" },
@@ -85,9 +92,7 @@ export class BiggiveCampaignCard {
85
92
  h("div", { class: "meta-item" },
86
93
  h("span", { class: "label" }, "Target:"),
87
94
  " ",
88
- h("span", { class: "text" },
89
- "\u00A3",
90
- this.formatCurrency(this.target)))),
95
+ h("span", { class: "text" }, this.formatCurrency(this.currencyCode, this.target)))),
91
96
  h("header", null,
92
97
  h("div", { class: "slug" }, this.organisationName),
93
98
  h("h3", null, this.campaignTitle)),
@@ -106,17 +111,13 @@ export class BiggiveCampaignCard {
106
111
  "Match",
107
112
  h("br", null),
108
113
  "Funds Remaining"),
109
- h("span", { class: "text" },
110
- "\u00A3",
111
- this.formatCurrency(this.matchFundsRemaining))),
114
+ h("span", { class: "text" }, this.formatCurrency(this.currencyCode, this.matchFundsRemaining))),
112
115
  h("div", { class: "meta-item" },
113
116
  h("span", { class: "label" },
114
117
  "Total",
115
118
  h("br", null),
116
119
  "Funds Received"),
117
- h("span", { class: "text" },
118
- "\u00A3",
119
- this.formatCurrency(this.totalFundsRaised)))),
120
+ h("span", { class: "text" }, this.formatCurrency(this.currencyCode, this.totalFundsRaised)))),
120
121
  h("div", { class: "button-wrap" },
121
122
  h("a", { href: this.callToActionUrl, class: "call-to-action" }, this.callToActionLabel))))));
122
123
  }
@@ -140,11 +141,8 @@ export class BiggiveCampaignCard {
140
141
  "required": false,
141
142
  "optional": false,
142
143
  "docs": {
143
- "tags": [{
144
- "name": "param",
145
- "text": "banner Full URL of a banner image."
146
- }],
147
- "text": ""
144
+ "tags": [],
145
+ "text": "Full URL of a banner image."
148
146
  },
149
147
  "attribute": "banner",
150
148
  "reflect": false,
@@ -161,16 +159,30 @@ export class BiggiveCampaignCard {
161
159
  "required": false,
162
160
  "optional": false,
163
161
  "docs": {
164
- "tags": [{
165
- "name": "param",
166
- "text": "number (Ceiling of) whole number of days until campaign end."
167
- }],
168
- "text": ""
162
+ "tags": [],
163
+ "text": "(Ceiling of) whole number of days until campaign end."
169
164
  },
170
165
  "attribute": "days-remaining",
171
166
  "reflect": false,
172
167
  "defaultValue": "null"
173
168
  },
169
+ "currencyCode": {
170
+ "type": "string",
171
+ "mutable": false,
172
+ "complexType": {
173
+ "original": "string",
174
+ "resolved": "string",
175
+ "references": {}
176
+ },
177
+ "required": false,
178
+ "optional": false,
179
+ "docs": {
180
+ "tags": [],
181
+ "text": "e.g. 'GBP'."
182
+ },
183
+ "attribute": "currency-code",
184
+ "reflect": false
185
+ },
174
186
  "target": {
175
187
  "type": "number",
176
188
  "mutable": false,
@@ -182,11 +194,8 @@ export class BiggiveCampaignCard {
182
194
  "required": false,
183
195
  "optional": false,
184
196
  "docs": {
185
- "tags": [{
186
- "name": "param",
187
- "text": "totalFundsRaised Target for the campaign including matching but excluding any\n tax relief, in major unit of currency e.g. pounds GBP."
188
- }],
189
- "text": ""
197
+ "tags": [],
198
+ "text": "Target for the campaign including matching but excluding any\ntax relief, in major unit of currency e.g. pounds GBP."
190
199
  },
191
200
  "attribute": "target",
192
201
  "reflect": false,
@@ -203,11 +212,8 @@ export class BiggiveCampaignCard {
203
212
  "required": false,
204
213
  "optional": false,
205
214
  "docs": {
206
- "tags": [{
207
- "name": "param",
208
- "text": "organisationName Display name of the charity or non-profit."
209
- }],
210
- "text": ""
215
+ "tags": [],
216
+ "text": "Display name of the charity or non-profit."
211
217
  },
212
218
  "attribute": "organisation-name",
213
219
  "reflect": false,
@@ -224,11 +230,8 @@ export class BiggiveCampaignCard {
224
230
  "required": false,
225
231
  "optional": false,
226
232
  "docs": {
227
- "tags": [{
228
- "name": "param",
229
- "text": "organisationName Display name of the charity's specific time-bound fundraising campaign."
230
- }],
231
- "text": ""
233
+ "tags": [],
234
+ "text": "Display name of the charity's specific time-bound fundraising campaign."
232
235
  },
233
236
  "attribute": "campaign-title",
234
237
  "reflect": false,
@@ -245,57 +248,44 @@ export class BiggiveCampaignCard {
245
248
  "required": false,
246
249
  "optional": false,
247
250
  "docs": {
248
- "tags": [{
249
- "name": "param",
250
- "text": "campaignType e.g. \"Match Funded\"."
251
- }],
252
- "text": ""
251
+ "tags": [],
252
+ "text": "e.g. \"Match Funded\"."
253
253
  },
254
254
  "attribute": "campaign-type",
255
255
  "reflect": false,
256
256
  "defaultValue": "null"
257
257
  },
258
258
  "beneficiaries": {
259
- "type": "string",
259
+ "type": "unknown",
260
260
  "mutable": false,
261
261
  "complexType": {
262
- "original": "string",
263
- "resolved": "string",
262
+ "original": "string[]",
263
+ "resolved": "string[]",
264
264
  "references": {}
265
265
  },
266
266
  "required": false,
267
267
  "optional": false,
268
268
  "docs": {
269
- "tags": [{
270
- "name": "param",
271
- "text": "beneficiaries Pipe (|) -separated list of full category labels."
272
- }],
273
- "text": ""
269
+ "tags": [],
270
+ "text": "Array of full beneficiary labels."
274
271
  },
275
- "attribute": "beneficiaries",
276
- "reflect": false,
277
- "defaultValue": "''"
272
+ "defaultValue": "[]"
278
273
  },
279
274
  "categories": {
280
- "type": "string",
275
+ "type": "unknown",
281
276
  "mutable": false,
282
277
  "complexType": {
283
- "original": "string",
284
- "resolved": "string",
278
+ "original": "string[]",
279
+ "resolved": "string[]",
285
280
  "references": {}
286
281
  },
287
282
  "required": false,
288
283
  "optional": false,
289
284
  "docs": {
290
- "tags": [{
291
- "name": "param",
292
- "text": "categories Pipe (|) -separated list of full category labels."
293
- }],
294
- "text": ""
285
+ "tags": [],
286
+ "text": "Array of full category labels."
295
287
  },
296
- "attribute": "categories",
297
- "reflect": false,
298
- "defaultValue": "''"
288
+ "defaultValue": "[]"
299
289
  },
300
290
  "matchFundsRemaining": {
301
291
  "type": "number",
@@ -308,11 +298,8 @@ export class BiggiveCampaignCard {
308
298
  "required": false,
309
299
  "optional": false,
310
300
  "docs": {
311
- "tags": [{
312
- "name": "param",
313
- "text": "totalFundsRaised Match funds not yet used or reserved, in major unit of currency\n e.g. pounds GBP."
314
- }],
315
- "text": ""
301
+ "tags": [],
302
+ "text": "Match funds not yet used or reserved, in major unit of currency e.g. pounds GBP."
316
303
  },
317
304
  "attribute": "match-funds-remaining",
318
305
  "reflect": false,
@@ -329,11 +316,8 @@ export class BiggiveCampaignCard {
329
316
  "required": false,
330
317
  "optional": false,
331
318
  "docs": {
332
- "tags": [{
333
- "name": "param",
334
- "text": "totalFundsRaised Total the campaign has raised so far including matching but excluding any\ntax relief, in major unit of currency e.g. pounds GBP."
335
- }],
336
- "text": ""
319
+ "tags": [],
320
+ "text": "Total the campaign has raised so far including matching but excluding any\ntax relief, in major unit of currency e.g. pounds GBP."
337
321
  },
338
322
  "attribute": "total-funds-raised",
339
323
  "reflect": false,
@@ -350,11 +334,8 @@ export class BiggiveCampaignCard {
350
334
  "required": false,
351
335
  "optional": false,
352
336
  "docs": {
353
- "tags": [{
354
- "name": "param",
355
- "text": "callToActionUrl Full URL of a call to action."
356
- }],
357
- "text": ""
337
+ "tags": [],
338
+ "text": "Full URL of a call to action."
358
339
  },
359
340
  "attribute": "call-to-action-url",
360
341
  "reflect": false,
@@ -371,11 +352,8 @@ export class BiggiveCampaignCard {
371
352
  "required": false,
372
353
  "optional": false,
373
354
  "docs": {
374
- "tags": [{
375
- "name": "param",
376
- "text": "callToActionLabel Text for the link to `callToActionUrl`."
377
- }],
378
- "text": ""
355
+ "tags": [],
356
+ "text": "Text for the link to `callToActionUrl`."
379
357
  },
380
358
  "attribute": "call-to-action-label",
381
359
  "reflect": false,
@@ -1,7 +1,7 @@
1
1
  import { Component, getAssetPath, h } from '@stencil/core';
2
2
  export class DemoCampaignCards {
3
3
  render() {
4
- return (h("biggive-grid", null, [...Array(12)].map(() => (h("biggive-campaign-card", { banner: getAssetPath('/assets/images/banner.png'), "days-remaining": 50, target: 50000, "organisation-name": "Ardent Theatre Company", "campaign-type": "Match Funded", "campaign-title": "Strike! A play by Tracy Ryan", categories: "Arts/Culture/Heritage|Environment/Conservation|Health/Wellbeing", beneficiaries: "General Public/Humankind", "match-funds-remaining": 17424, "total-funds-raised": 15424, "call-to-action-url": "#", "call-to-action-label": "Donate" })))));
4
+ return (h("biggive-grid", null, [...Array(12)].map(() => (h("biggive-campaign-card", { banner: getAssetPath('/assets/images/banner.png'), daysRemaining: 50, currencyCode: "GBP", target: 50000, organisationName: "Ardent Theatre Company", campaignType: "Match Funded", campaignTitle: "Strike! A play by Tracy Ryan", categories: ['Arts/Culture/Heritage', 'Environment/Conservation', 'Health/Wellbeing'], beneficiaries: ['General Public/Humankind'], matchFundsRemaining: 17424, totalFundsRaised: 15424, callToActionUrl: "#", callToActionLabel: "Donate" })))));
5
5
  }
6
6
  static get is() { return "demo-campaign-cards"; }
7
7
  static get encapsulation() { return "shadow"; }
@@ -326,82 +326,90 @@ const BiggiveCampaignCard = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
326
326
  this.__registerHost();
327
327
  this.__attachShadow();
328
328
  /**
329
- * @param {string} banner Full URL of a banner image.
329
+ * Full URL of a banner image.
330
330
  */
331
331
  this.banner = '';
332
332
  /**
333
- * @param {string} number (Ceiling of) whole number of days until campaign end.
333
+ * (Ceiling of) whole number of days until campaign end.
334
334
  */
335
335
  this.daysRemaining = null;
336
336
  /**
337
- * @param {number} totalFundsRaised Target for the campaign including matching but excluding any
338
- * tax relief, in major unit of currency e.g. pounds GBP.
337
+ * Target for the campaign including matching but excluding any
338
+ * tax relief, in major unit of currency e.g. pounds GBP.
339
339
  */
340
340
  this.target = null;
341
341
  /**
342
- * @param {string} organisationName Display name of the charity or non-profit.
342
+ * Display name of the charity or non-profit.
343
343
  */
344
344
  this.organisationName = null;
345
345
  /**
346
- * @param {string} organisationName Display name of the charity's specific time-bound fundraising campaign.
346
+ * Display name of the charity's specific time-bound fundraising campaign.
347
347
  */
348
348
  this.campaignTitle = null;
349
349
  /**
350
- * @param {string} campaignType e.g. "Match Funded".
350
+ * e.g. "Match Funded".
351
351
  */
352
352
  this.campaignType = null;
353
353
  /**
354
- * @param {string} beneficiaries Pipe (|) -separated list of full category labels.
354
+ * Array of full beneficiary labels.
355
355
  */
356
- this.beneficiaries = '';
356
+ this.beneficiaries = [];
357
357
  /**
358
- * @param {string} categories Pipe (|) -separated list of full category labels.
358
+ * Array of full category labels.
359
359
  */
360
- this.categories = '';
360
+ this.categories = [];
361
361
  /**
362
- * @param {number} totalFundsRaised Match funds not yet used or reserved, in major unit of currency
363
- * e.g. pounds GBP.
362
+ * Match funds not yet used or reserved, in major unit of currency e.g. pounds GBP.
364
363
  */
365
364
  this.matchFundsRemaining = null;
366
365
  /**
367
- * @param {number} totalFundsRaised Total the campaign has raised so far including matching but excluding any
368
- * tax relief, in major unit of currency e.g. pounds GBP.
366
+ * Total the campaign has raised so far including matching but excluding any
367
+ * tax relief, in major unit of currency e.g. pounds GBP.
369
368
  */
370
369
  this.totalFundsRaised = null;
371
370
  /**
372
- * @param {string} callToActionUrl Full URL of a call to action.
371
+ * Full URL of a call to action.
373
372
  */
374
373
  this.callToActionUrl = null;
375
374
  /**
376
- * @param {string} callToActionLabel Text for the link to `callToActionUrl`.
375
+ * Text for the link to `callToActionUrl`.
377
376
  */
378
377
  this.callToActionLabel = null;
379
378
  }
380
379
  getBeneficiaryIcons() {
381
- return this.beneficiaries.length > 0 ? this.beneficiaries.split('|').map(beneficiary => CampaignGroupsService.getBeneficiaryIcon(beneficiary)) : [];
380
+ return this.beneficiaries.map(beneficiary => CampaignGroupsService.getBeneficiaryIcon(beneficiary));
382
381
  }
383
382
  getCategoryIcons() {
384
- return this.categories.length > 0 ? this.categories.split('|').map(category => CampaignGroupsService.getCategoryIcon(category)) : [];
383
+ return this.categories.map(category => CampaignGroupsService.getCategoryIcon(category));
385
384
  }
386
- formatCurrency(num) {
387
- if (!isNaN(num)) {
388
- return parseInt(num).toLocaleString();
385
+ /**
386
+ * @returns Whole large currency units (e.g. pounds) formatted with symbol.
387
+ */
388
+ formatCurrency(currencyCode, amount) {
389
+ if (amount === null || isNaN(amount)) {
390
+ return '–';
389
391
  }
390
- return num;
392
+ return Intl.NumberFormat('en-GB', {
393
+ style: 'currency',
394
+ currency: currencyCode,
395
+ currencyDisplay: 'symbol',
396
+ maximumFractionDigits: 0,
397
+ }).format(amount);
391
398
  }
392
399
  render() {
393
- return (h("div", { class: "container" }, h("div", { class: "sleeve" }, h("div", { class: "campaign-type" }, h("span", null, this.campaignType)), 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: "content" }, h("div", { class: "meta-wrap style-1" }, h("div", { class: "meta-item" }, h("span", { class: "label" }, "Days Remaining:"), " ", h("span", { class: "text" }, this.daysRemaining)), h("div", { class: "meta-item" }, h("span", { class: "label" }, "Target:"), " ", h("span", { class: "text" }, "\u00A3", this.formatCurrency(this.target)))), h("header", null, h("div", { class: "slug" }, this.organisationName), h("h3", null, this.campaignTitle)), h("div", { class: "meta-wrap style-2" }, h("div", { class: "meta-item" }, h("span", { class: "label" }, "Categories"), h("span", { class: "text" }, this.getCategoryIcons().map((iconDefinition) => (h("svg", { width: "512", height: "512", xmlns: "http://www.w3.org/2000/svg", class: "icon", viewBox: "0 0 512 512" }, h("path", { d: iconDefinition.icon[4].toString() })))))), h("div", { class: "meta-item" }, h("span", { class: "label" }, "Helping"), h("span", { class: "text" }, this.getBeneficiaryIcons().map(iconDefinition => (h("svg", { width: "512", height: "512", xmlns: "http://www.w3.org/2000/svg", class: "icon", viewBox: "0 0 512 512" }, h("path", { d: iconDefinition.icon[4].toString() }))))))), h("div", { class: "meta-wrap style-3" }, h("div", { class: "meta-item" }, h("span", { class: "label" }, "Match", h("br", null), "Funds Remaining"), h("span", { class: "text" }, "\u00A3", this.formatCurrency(this.matchFundsRemaining))), h("div", { class: "meta-item" }, h("span", { class: "label" }, "Total", h("br", null), "Funds Received"), h("span", { class: "text" }, "\u00A3", this.formatCurrency(this.totalFundsRaised)))), h("div", { class: "button-wrap" }, h("a", { href: this.callToActionUrl, class: "call-to-action" }, this.callToActionLabel))))));
400
+ return (h("div", { class: "container" }, h("div", { class: "sleeve" }, h("div", { class: "campaign-type" }, h("span", null, this.campaignType)), 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: "content" }, h("div", { class: "meta-wrap style-1" }, h("div", { class: "meta-item" }, h("span", { class: "label" }, "Days Remaining:"), " ", h("span", { class: "text" }, this.daysRemaining)), h("div", { class: "meta-item" }, h("span", { class: "label" }, "Target:"), " ", h("span", { class: "text" }, this.formatCurrency(this.currencyCode, this.target)))), h("header", null, h("div", { class: "slug" }, this.organisationName), h("h3", null, this.campaignTitle)), h("div", { class: "meta-wrap style-2" }, h("div", { class: "meta-item" }, h("span", { class: "label" }, "Categories"), h("span", { class: "text" }, this.getCategoryIcons().map((iconDefinition) => (h("svg", { width: "512", height: "512", xmlns: "http://www.w3.org/2000/svg", class: "icon", viewBox: "0 0 512 512" }, h("path", { d: iconDefinition.icon[4].toString() })))))), h("div", { class: "meta-item" }, h("span", { class: "label" }, "Helping"), h("span", { class: "text" }, this.getBeneficiaryIcons().map(iconDefinition => (h("svg", { width: "512", height: "512", xmlns: "http://www.w3.org/2000/svg", class: "icon", viewBox: "0 0 512 512" }, h("path", { d: iconDefinition.icon[4].toString() }))))))), h("div", { class: "meta-wrap style-3" }, h("div", { class: "meta-item" }, h("span", { class: "label" }, "Match", h("br", null), "Funds Remaining"), h("span", { class: "text" }, this.formatCurrency(this.currencyCode, this.matchFundsRemaining))), h("div", { class: "meta-item" }, h("span", { class: "label" }, "Total", h("br", null), "Funds Received"), h("span", { class: "text" }, this.formatCurrency(this.currencyCode, this.totalFundsRaised)))), h("div", { class: "button-wrap" }, h("a", { href: this.callToActionUrl, class: "call-to-action" }, this.callToActionLabel))))));
394
401
  }
395
402
  static get style() { return biggiveCampaignCardCss; }
396
403
  }, [1, "biggive-campaign-card", {
397
404
  "banner": [1],
398
405
  "daysRemaining": [2, "days-remaining"],
406
+ "currencyCode": [1, "currency-code"],
399
407
  "target": [2],
400
408
  "organisationName": [1, "organisation-name"],
401
409
  "campaignTitle": [1, "campaign-title"],
402
410
  "campaignType": [1, "campaign-type"],
403
- "beneficiaries": [1],
404
- "categories": [1],
411
+ "beneficiaries": [16],
412
+ "categories": [16],
405
413
  "matchFundsRemaining": [2, "match-funds-remaining"],
406
414
  "totalFundsRaised": [2, "total-funds-raised"],
407
415
  "callToActionUrl": [1, "call-to-action-url"],
@@ -11,7 +11,7 @@ const DemoCampaignCards$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
11
11
  this.__attachShadow();
12
12
  }
13
13
  render() {
14
- return (h("biggive-grid", null, [...Array(12)].map(() => (h("biggive-campaign-card", { banner: getAssetPath('/assets/images/banner.png'), "days-remaining": 50, target: 50000, "organisation-name": "Ardent Theatre Company", "campaign-type": "Match Funded", "campaign-title": "Strike! A play by Tracy Ryan", categories: "Arts/Culture/Heritage|Environment/Conservation|Health/Wellbeing", beneficiaries: "General Public/Humankind", "match-funds-remaining": 17424, "total-funds-raised": 15424, "call-to-action-url": "#", "call-to-action-label": "Donate" })))));
14
+ return (h("biggive-grid", null, [...Array(12)].map(() => (h("biggive-campaign-card", { banner: getAssetPath('/assets/images/banner.png'), daysRemaining: 50, currencyCode: "GBP", target: 50000, organisationName: "Ardent Theatre Company", campaignType: "Match Funded", campaignTitle: "Strike! A play by Tracy Ryan", categories: ['Arts/Culture/Heritage', 'Environment/Conservation', 'Health/Wellbeing'], beneficiaries: ['General Public/Humankind'], matchFundsRemaining: 17424, totalFundsRaised: 15424, callToActionUrl: "#", callToActionLabel: "Donate" })))));
15
15
  }
16
16
  static get style() { return demoCampaignCardsCss; }
17
17
  }, [1, "demo-campaign-cards"]);
@@ -324,71 +324,78 @@ const BiggiveCampaignCard = class {
324
324
  constructor(hostRef) {
325
325
  registerInstance(this, hostRef);
326
326
  /**
327
- * @param {string} banner Full URL of a banner image.
327
+ * Full URL of a banner image.
328
328
  */
329
329
  this.banner = '';
330
330
  /**
331
- * @param {string} number (Ceiling of) whole number of days until campaign end.
331
+ * (Ceiling of) whole number of days until campaign end.
332
332
  */
333
333
  this.daysRemaining = null;
334
334
  /**
335
- * @param {number} totalFundsRaised Target for the campaign including matching but excluding any
336
- * tax relief, in major unit of currency e.g. pounds GBP.
335
+ * Target for the campaign including matching but excluding any
336
+ * tax relief, in major unit of currency e.g. pounds GBP.
337
337
  */
338
338
  this.target = null;
339
339
  /**
340
- * @param {string} organisationName Display name of the charity or non-profit.
340
+ * Display name of the charity or non-profit.
341
341
  */
342
342
  this.organisationName = null;
343
343
  /**
344
- * @param {string} organisationName Display name of the charity's specific time-bound fundraising campaign.
344
+ * Display name of the charity's specific time-bound fundraising campaign.
345
345
  */
346
346
  this.campaignTitle = null;
347
347
  /**
348
- * @param {string} campaignType e.g. "Match Funded".
348
+ * e.g. "Match Funded".
349
349
  */
350
350
  this.campaignType = null;
351
351
  /**
352
- * @param {string} beneficiaries Pipe (|) -separated list of full category labels.
352
+ * Array of full beneficiary labels.
353
353
  */
354
- this.beneficiaries = '';
354
+ this.beneficiaries = [];
355
355
  /**
356
- * @param {string} categories Pipe (|) -separated list of full category labels.
356
+ * Array of full category labels.
357
357
  */
358
- this.categories = '';
358
+ this.categories = [];
359
359
  /**
360
- * @param {number} totalFundsRaised Match funds not yet used or reserved, in major unit of currency
361
- * e.g. pounds GBP.
360
+ * Match funds not yet used or reserved, in major unit of currency e.g. pounds GBP.
362
361
  */
363
362
  this.matchFundsRemaining = null;
364
363
  /**
365
- * @param {number} totalFundsRaised Total the campaign has raised so far including matching but excluding any
366
- * tax relief, in major unit of currency e.g. pounds GBP.
364
+ * Total the campaign has raised so far including matching but excluding any
365
+ * tax relief, in major unit of currency e.g. pounds GBP.
367
366
  */
368
367
  this.totalFundsRaised = null;
369
368
  /**
370
- * @param {string} callToActionUrl Full URL of a call to action.
369
+ * Full URL of a call to action.
371
370
  */
372
371
  this.callToActionUrl = null;
373
372
  /**
374
- * @param {string} callToActionLabel Text for the link to `callToActionUrl`.
373
+ * Text for the link to `callToActionUrl`.
375
374
  */
376
375
  this.callToActionLabel = null;
377
376
  }
378
377
  getBeneficiaryIcons() {
379
- return this.beneficiaries.length > 0 ? this.beneficiaries.split('|').map(beneficiary => CampaignGroupsService.getBeneficiaryIcon(beneficiary)) : [];
378
+ return this.beneficiaries.map(beneficiary => CampaignGroupsService.getBeneficiaryIcon(beneficiary));
380
379
  }
381
380
  getCategoryIcons() {
382
- return this.categories.length > 0 ? this.categories.split('|').map(category => CampaignGroupsService.getCategoryIcon(category)) : [];
381
+ return this.categories.map(category => CampaignGroupsService.getCategoryIcon(category));
383
382
  }
384
- formatCurrency(num) {
385
- if (!isNaN(num)) {
386
- return parseInt(num).toLocaleString();
383
+ /**
384
+ * @returns Whole large currency units (e.g. pounds) formatted with symbol.
385
+ */
386
+ formatCurrency(currencyCode, amount) {
387
+ if (amount === null || isNaN(amount)) {
388
+ return '–';
387
389
  }
388
- return num;
390
+ return Intl.NumberFormat('en-GB', {
391
+ style: 'currency',
392
+ currency: currencyCode,
393
+ currencyDisplay: 'symbol',
394
+ maximumFractionDigits: 0,
395
+ }).format(amount);
389
396
  }
390
397
  render() {
391
- return (h("div", { class: "container" }, h("div", { class: "sleeve" }, h("div", { class: "campaign-type" }, h("span", null, this.campaignType)), 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: "content" }, h("div", { class: "meta-wrap style-1" }, h("div", { class: "meta-item" }, h("span", { class: "label" }, "Days Remaining:"), " ", h("span", { class: "text" }, this.daysRemaining)), h("div", { class: "meta-item" }, h("span", { class: "label" }, "Target:"), " ", h("span", { class: "text" }, "\u00A3", this.formatCurrency(this.target)))), h("header", null, h("div", { class: "slug" }, this.organisationName), h("h3", null, this.campaignTitle)), h("div", { class: "meta-wrap style-2" }, h("div", { class: "meta-item" }, h("span", { class: "label" }, "Categories"), h("span", { class: "text" }, this.getCategoryIcons().map((iconDefinition) => (h("svg", { width: "512", height: "512", xmlns: "http://www.w3.org/2000/svg", class: "icon", viewBox: "0 0 512 512" }, h("path", { d: iconDefinition.icon[4].toString() })))))), h("div", { class: "meta-item" }, h("span", { class: "label" }, "Helping"), h("span", { class: "text" }, this.getBeneficiaryIcons().map(iconDefinition => (h("svg", { width: "512", height: "512", xmlns: "http://www.w3.org/2000/svg", class: "icon", viewBox: "0 0 512 512" }, h("path", { d: iconDefinition.icon[4].toString() }))))))), h("div", { class: "meta-wrap style-3" }, h("div", { class: "meta-item" }, h("span", { class: "label" }, "Match", h("br", null), "Funds Remaining"), h("span", { class: "text" }, "\u00A3", this.formatCurrency(this.matchFundsRemaining))), h("div", { class: "meta-item" }, h("span", { class: "label" }, "Total", h("br", null), "Funds Received"), h("span", { class: "text" }, "\u00A3", this.formatCurrency(this.totalFundsRaised)))), h("div", { class: "button-wrap" }, h("a", { href: this.callToActionUrl, class: "call-to-action" }, this.callToActionLabel))))));
398
+ return (h("div", { class: "container" }, h("div", { class: "sleeve" }, h("div", { class: "campaign-type" }, h("span", null, this.campaignType)), 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: "content" }, h("div", { class: "meta-wrap style-1" }, h("div", { class: "meta-item" }, h("span", { class: "label" }, "Days Remaining:"), " ", h("span", { class: "text" }, this.daysRemaining)), h("div", { class: "meta-item" }, h("span", { class: "label" }, "Target:"), " ", h("span", { class: "text" }, this.formatCurrency(this.currencyCode, this.target)))), h("header", null, h("div", { class: "slug" }, this.organisationName), h("h3", null, this.campaignTitle)), h("div", { class: "meta-wrap style-2" }, h("div", { class: "meta-item" }, h("span", { class: "label" }, "Categories"), h("span", { class: "text" }, this.getCategoryIcons().map((iconDefinition) => (h("svg", { width: "512", height: "512", xmlns: "http://www.w3.org/2000/svg", class: "icon", viewBox: "0 0 512 512" }, h("path", { d: iconDefinition.icon[4].toString() })))))), h("div", { class: "meta-item" }, h("span", { class: "label" }, "Helping"), h("span", { class: "text" }, this.getBeneficiaryIcons().map(iconDefinition => (h("svg", { width: "512", height: "512", xmlns: "http://www.w3.org/2000/svg", class: "icon", viewBox: "0 0 512 512" }, h("path", { d: iconDefinition.icon[4].toString() }))))))), h("div", { class: "meta-wrap style-3" }, h("div", { class: "meta-item" }, h("span", { class: "label" }, "Match", h("br", null), "Funds Remaining"), h("span", { class: "text" }, this.formatCurrency(this.currencyCode, this.matchFundsRemaining))), h("div", { class: "meta-item" }, h("span", { class: "label" }, "Total", h("br", null), "Funds Received"), h("span", { class: "text" }, this.formatCurrency(this.currencyCode, this.totalFundsRaised)))), h("div", { class: "button-wrap" }, h("a", { href: this.callToActionUrl, class: "call-to-action" }, this.callToActionLabel))))));
392
399
  }
393
400
  };
394
401
  BiggiveCampaignCard.style = biggiveCampaignCardCss;
@@ -412,7 +419,7 @@ const DemoCampaignCards = class {
412
419
  registerInstance(this, hostRef);
413
420
  }
414
421
  render() {
415
- return (h("biggive-grid", null, [...Array(12)].map(() => (h("biggive-campaign-card", { banner: getAssetPath('/assets/images/banner.png'), "days-remaining": 50, target: 50000, "organisation-name": "Ardent Theatre Company", "campaign-type": "Match Funded", "campaign-title": "Strike! A play by Tracy Ryan", categories: "Arts/Culture/Heritage|Environment/Conservation|Health/Wellbeing", beneficiaries: "General Public/Humankind", "match-funds-remaining": 17424, "total-funds-raised": 15424, "call-to-action-url": "#", "call-to-action-label": "Donate" })))));
422
+ return (h("biggive-grid", null, [...Array(12)].map(() => (h("biggive-campaign-card", { banner: getAssetPath('/assets/images/banner.png'), daysRemaining: 50, currencyCode: "GBP", target: 50000, organisationName: "Ardent Theatre Company", campaignType: "Match Funded", campaignTitle: "Strike! A play by Tracy Ryan", categories: ['Arts/Culture/Heritage', 'Environment/Conservation', 'Health/Wellbeing'], beneficiaries: ['General Public/Humankind'], matchFundsRemaining: 17424, totalFundsRaised: 15424, callToActionUrl: "#", callToActionLabel: "Donate" })))));
416
423
  }
417
424
  };
418
425
  DemoCampaignCards.style = demoCampaignCardsCss;
@@ -13,5 +13,5 @@ const patchBrowser = () => {
13
13
  };
14
14
 
15
15
  patchBrowser().then(options => {
16
- return bootstrapLazy([["biggive-campaign-card_3",[[1,"demo-campaign-cards"],[1,"biggive-campaign-card",{"banner":[1],"daysRemaining":[2,"days-remaining"],"target":[2],"organisationName":[1,"organisation-name"],"campaignTitle":[1,"campaign-title"],"campaignType":[1,"campaign-type"],"beneficiaries":[1],"categories":[1],"matchFundsRemaining":[2,"match-funds-remaining"],"totalFundsRaised":[2,"total-funds-raised"],"callToActionUrl":[1,"call-to-action-url"],"callToActionLabel":[1,"call-to-action-label"]}],[1,"biggive-grid"]]]], options);
16
+ return bootstrapLazy([["biggive-campaign-card_3",[[1,"demo-campaign-cards"],[1,"biggive-campaign-card",{"banner":[1],"daysRemaining":[2,"days-remaining"],"currencyCode":[1,"currency-code"],"target":[2],"organisationName":[1,"organisation-name"],"campaignTitle":[1,"campaign-title"],"campaignType":[1,"campaign-type"],"beneficiaries":[16],"categories":[16],"matchFundsRemaining":[2,"match-funds-remaining"],"totalFundsRaised":[2,"total-funds-raised"],"callToActionUrl":[1,"call-to-action-url"],"callToActionLabel":[1,"call-to-action-label"]}],[1,"biggive-grid"]]]], options);
17
17
  });
@@ -10,7 +10,7 @@ const patchEsm = () => {
10
10
  const defineCustomElements = (win, options) => {
11
11
  if (typeof window === 'undefined') return Promise.resolve();
12
12
  return patchEsm().then(() => {
13
- return bootstrapLazy([["biggive-campaign-card_3",[[1,"demo-campaign-cards"],[1,"biggive-campaign-card",{"banner":[1],"daysRemaining":[2,"days-remaining"],"target":[2],"organisationName":[1,"organisation-name"],"campaignTitle":[1,"campaign-title"],"campaignType":[1,"campaign-type"],"beneficiaries":[1],"categories":[1],"matchFundsRemaining":[2,"match-funds-remaining"],"totalFundsRaised":[2,"total-funds-raised"],"callToActionUrl":[1,"call-to-action-url"],"callToActionLabel":[1,"call-to-action-label"]}],[1,"biggive-grid"]]]], options);
13
+ return bootstrapLazy([["biggive-campaign-card_3",[[1,"demo-campaign-cards"],[1,"biggive-campaign-card",{"banner":[1],"daysRemaining":[2,"days-remaining"],"currencyCode":[1,"currency-code"],"target":[2],"organisationName":[1,"organisation-name"],"campaignTitle":[1,"campaign-title"],"campaignType":[1,"campaign-type"],"beneficiaries":[16],"categories":[16],"matchFundsRemaining":[2,"match-funds-remaining"],"totalFundsRaised":[2,"total-funds-raised"],"callToActionUrl":[1,"call-to-action-url"],"callToActionLabel":[1,"call-to-action-label"]}],[1,"biggive-grid"]]]], options);
14
14
  });
15
15
  };
16
16
 
@@ -3,58 +3,64 @@
3
3
  */
4
4
  export declare class BiggiveCampaignCard {
5
5
  /**
6
- * @param {string} banner Full URL of a banner image.
6
+ * Full URL of a banner image.
7
7
  */
8
8
  banner: string;
9
9
  /**
10
- * @param {string} number (Ceiling of) whole number of days until campaign end.
10
+ * (Ceiling of) whole number of days until campaign end.
11
11
  */
12
12
  daysRemaining: number;
13
13
  /**
14
- * @param {number} totalFundsRaised Target for the campaign including matching but excluding any
15
- * tax relief, in major unit of currency e.g. pounds GBP.
14
+ * e.g. 'GBP'.
15
+ */
16
+ currencyCode: string;
17
+ /**
18
+ * Target for the campaign including matching but excluding any
19
+ * tax relief, in major unit of currency e.g. pounds GBP.
16
20
  */
17
21
  target: number;
18
22
  /**
19
- * @param {string} organisationName Display name of the charity or non-profit.
23
+ * Display name of the charity or non-profit.
20
24
  */
21
25
  organisationName: string;
22
26
  /**
23
- * @param {string} organisationName Display name of the charity's specific time-bound fundraising campaign.
27
+ * Display name of the charity's specific time-bound fundraising campaign.
24
28
  */
25
29
  campaignTitle: string;
26
30
  /**
27
- * @param {string} campaignType e.g. "Match Funded".
31
+ * e.g. "Match Funded".
28
32
  */
29
33
  campaignType: string;
30
34
  /**
31
- * @param {string} beneficiaries Pipe (|) -separated list of full category labels.
35
+ * Array of full beneficiary labels.
32
36
  */
33
- beneficiaries: string;
37
+ beneficiaries: string[];
34
38
  /**
35
- * @param {string} categories Pipe (|) -separated list of full category labels.
39
+ * Array of full category labels.
36
40
  */
37
- categories: string;
41
+ categories: string[];
38
42
  /**
39
- * @param {number} totalFundsRaised Match funds not yet used or reserved, in major unit of currency
40
- * e.g. pounds GBP.
43
+ * Match funds not yet used or reserved, in major unit of currency e.g. pounds GBP.
41
44
  */
42
45
  matchFundsRemaining: number;
43
46
  /**
44
- * @param {number} totalFundsRaised Total the campaign has raised so far including matching but excluding any
45
- * tax relief, in major unit of currency e.g. pounds GBP.
47
+ * Total the campaign has raised so far including matching but excluding any
48
+ * tax relief, in major unit of currency e.g. pounds GBP.
46
49
  */
47
50
  totalFundsRaised: number;
48
51
  /**
49
- * @param {string} callToActionUrl Full URL of a call to action.
52
+ * Full URL of a call to action.
50
53
  */
51
54
  callToActionUrl: string;
52
55
  /**
53
- * @param {string} callToActionLabel Text for the link to `callToActionUrl`.
56
+ * Text for the link to `callToActionUrl`.
54
57
  */
55
58
  callToActionLabel: string;
56
59
  private getBeneficiaryIcons;
57
60
  private getCategoryIcons;
61
+ /**
62
+ * @returns Whole large currency units (e.g. pounds) formatted with symbol.
63
+ */
58
64
  private formatCurrency;
59
65
  render(): any;
60
66
  }
@@ -8,51 +8,55 @@ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  export namespace Components {
9
9
  interface BiggiveCampaignCard {
10
10
  /**
11
- * @param banner Full URL of a banner image.
11
+ * Full URL of a banner image.
12
12
  */
13
13
  "banner": string;
14
14
  /**
15
- * @param beneficiaries Pipe (|) -separated list of full category labels.
15
+ * Array of full beneficiary labels.
16
16
  */
17
- "beneficiaries": string;
17
+ "beneficiaries": string[];
18
18
  /**
19
- * @param callToActionLabel Text for the link to `callToActionUrl`.
19
+ * Text for the link to `callToActionUrl`.
20
20
  */
21
21
  "callToActionLabel": string;
22
22
  /**
23
- * @param callToActionUrl Full URL of a call to action.
23
+ * Full URL of a call to action.
24
24
  */
25
25
  "callToActionUrl": string;
26
26
  /**
27
- * @param organisationName Display name of the charity's specific time-bound fundraising campaign.
27
+ * Display name of the charity's specific time-bound fundraising campaign.
28
28
  */
29
29
  "campaignTitle": string;
30
30
  /**
31
- * @param campaignType e.g. "Match Funded".
31
+ * e.g. "Match Funded".
32
32
  */
33
33
  "campaignType": string;
34
34
  /**
35
- * @param categories Pipe (|) -separated list of full category labels.
35
+ * Array of full category labels.
36
36
  */
37
- "categories": string;
37
+ "categories": string[];
38
38
  /**
39
- * @param number (Ceiling of) whole number of days until campaign end.
39
+ * e.g. 'GBP'.
40
+ */
41
+ "currencyCode": string;
42
+ /**
43
+ * (Ceiling of) whole number of days until campaign end.
40
44
  */
41
45
  "daysRemaining": number;
42
46
  /**
43
- * @param totalFundsRaised Match funds not yet used or reserved, in major unit of currency e.g. pounds GBP.
47
+ * Match funds not yet used or reserved, in major unit of currency e.g. pounds GBP.
44
48
  */
45
49
  "matchFundsRemaining": number;
46
50
  /**
47
- * @param organisationName Display name of the charity or non-profit.
51
+ * Display name of the charity or non-profit.
48
52
  */
49
53
  "organisationName": string;
50
54
  /**
51
- * @param totalFundsRaised Target for the campaign including matching but excluding any tax relief, in major unit of currency e.g. pounds GBP.
55
+ * Target for the campaign including matching but excluding any tax relief, in major unit of currency e.g. pounds GBP.
52
56
  */
53
57
  "target": number;
54
58
  /**
55
- * @param totalFundsRaised Total the campaign has raised so far including matching but excluding any tax relief, in major unit of currency e.g. pounds GBP.
59
+ * Total the campaign has raised so far including matching but excluding any tax relief, in major unit of currency e.g. pounds GBP.
56
60
  */
57
61
  "totalFundsRaised": number;
58
62
  }
@@ -89,51 +93,55 @@ declare global {
89
93
  declare namespace LocalJSX {
90
94
  interface BiggiveCampaignCard {
91
95
  /**
92
- * @param banner Full URL of a banner image.
96
+ * Full URL of a banner image.
93
97
  */
94
98
  "banner"?: string;
95
99
  /**
96
- * @param beneficiaries Pipe (|) -separated list of full category labels.
100
+ * Array of full beneficiary labels.
97
101
  */
98
- "beneficiaries"?: string;
102
+ "beneficiaries"?: string[];
99
103
  /**
100
- * @param callToActionLabel Text for the link to `callToActionUrl`.
104
+ * Text for the link to `callToActionUrl`.
101
105
  */
102
106
  "callToActionLabel"?: string;
103
107
  /**
104
- * @param callToActionUrl Full URL of a call to action.
108
+ * Full URL of a call to action.
105
109
  */
106
110
  "callToActionUrl"?: string;
107
111
  /**
108
- * @param organisationName Display name of the charity's specific time-bound fundraising campaign.
112
+ * Display name of the charity's specific time-bound fundraising campaign.
109
113
  */
110
114
  "campaignTitle"?: string;
111
115
  /**
112
- * @param campaignType e.g. "Match Funded".
116
+ * e.g. "Match Funded".
113
117
  */
114
118
  "campaignType"?: string;
115
119
  /**
116
- * @param categories Pipe (|) -separated list of full category labels.
120
+ * Array of full category labels.
121
+ */
122
+ "categories"?: string[];
123
+ /**
124
+ * e.g. 'GBP'.
117
125
  */
118
- "categories"?: string;
126
+ "currencyCode"?: string;
119
127
  /**
120
- * @param number (Ceiling of) whole number of days until campaign end.
128
+ * (Ceiling of) whole number of days until campaign end.
121
129
  */
122
130
  "daysRemaining"?: number;
123
131
  /**
124
- * @param totalFundsRaised Match funds not yet used or reserved, in major unit of currency e.g. pounds GBP.
132
+ * Match funds not yet used or reserved, in major unit of currency e.g. pounds GBP.
125
133
  */
126
134
  "matchFundsRemaining"?: number;
127
135
  /**
128
- * @param organisationName Display name of the charity or non-profit.
136
+ * Display name of the charity or non-profit.
129
137
  */
130
138
  "organisationName"?: string;
131
139
  /**
132
- * @param totalFundsRaised Target for the campaign including matching but excluding any tax relief, in major unit of currency e.g. pounds GBP.
140
+ * Target for the campaign including matching but excluding any tax relief, in major unit of currency e.g. pounds GBP.
133
141
  */
134
142
  "target"?: number;
135
143
  /**
136
- * @param totalFundsRaised Total the campaign has raised so far including matching but excluding any tax relief, in major unit of currency e.g. pounds GBP.
144
+ * Total the campaign has raised so far including matching but excluding any tax relief, in major unit of currency e.g. pounds GBP.
137
145
  */
138
146
  "totalFundsRaised"?: number;
139
147
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biggive/components",
3
- "version": "0.0.6",
3
+ "version": "0.0.9",
4
4
  "description": "Big Give Components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -20,11 +20,11 @@
20
20
  ],
21
21
  "scripts": {
22
22
  "build": "stencil build --docs",
23
- "start": "stencil build --dev --watch --serve --port 3939",
23
+ "start": "stencil build --dev --watch --serve",
24
24
  "lint": "eslint src/**/*{.ts,.tsx}",
25
25
  "lint:fix": "eslint --fix src/**/*{.ts,.tsx}",
26
- "test": "stencil test --spec --e2e --port 3939",
27
- "test.watch": "stencil test --spec --e2e --watchAll --port 3939",
26
+ "test": "stencil test --spec --e2e",
27
+ "test.watch": "stencil test --spec --e2e --watchAll",
28
28
  "generate": "stencil generate",
29
29
  "prepare": "husky install",
30
30
  "pre-commit": "lint-staged"
@@ -38,6 +38,7 @@
38
38
  "@stencil/core": "^2.13.0"
39
39
  },
40
40
  "devDependencies": {
41
+ "@stencil/angular-output-target": "^0.4.0",
41
42
  "@stencil/eslint-plugin": "^0.4.0",
42
43
  "@stencil/sass": "^1.5.2",
43
44
  "@types/jest": "^27.0.3",
package/readme.md CHANGED
@@ -66,7 +66,9 @@ For now:
66
66
  folder as the app's own images. This is the approach taken on [this proof of concept branch](https://github.com/thebiggive/donate-frontend/tree/COM-5-proof-of-concept).
67
67
  Should we find managing image assets messy in apps generally, an alternative approach we might
68
68
  try is importing images to component style and adding [`@rollup/plugin-image`](https://github.com/rollup/plugins/tree/master/packages/image/#readme)
69
- to Stencil's build config.
69
+ to Stencil's build config. Or if there are only a few, we could also investigate
70
+ whether `assetsDirs` on a `@Component` folds in what's needed in a way that works
71
+ in Angular et al.
70
72
 
71
73
  ### Make any required changes to the sample web components
72
74