ui.shipaid.com 0.3.140 → 0.3.142

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.
package/dist/widget.es.js CHANGED
@@ -388,7 +388,7 @@ const D = (t2, i3, s3) => {
388
388
  * Copyright 2017 Google LLC
389
389
  * SPDX-License-Identifier: BSD-3-Clause
390
390
  */
391
- const t$1 = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, e$4 = (t2) => (...e3) => ({ _$litDirective$: t2, values: e3 });
391
+ const t$1 = { CHILD: 2 }, e$4 = (t2) => (...e3) => ({ _$litDirective$: t2, values: e3 });
392
392
  let i$1 = class i {
393
393
  constructor(t2) {
394
394
  }
@@ -1400,12 +1400,16 @@ class CheckoutPackageProtection extends s$1 {
1400
1400
  this.dispatchEvent(new Event("shipaid-remove-protection"));
1401
1401
  }
1402
1402
  render() {
1403
+ const ctaLabel = translate("checkout-plus.labels.cta");
1404
+ const deliveryGuarantee = translate("checkout-plus.title");
1405
+ const checkoutLabel = translate("checkout-plus.labels.cta");
1406
+ const continueWithout = translate("checkout-plus.buttons.continue-without");
1403
1407
  return x`
1404
1408
  <div class="shipaid-container">
1405
1409
  <div class="protection-info">
1406
1410
  <div class="protection-text">
1407
1411
  ${this.logo}
1408
- <p><strong>Checkout+</strong> ShipAid Delivery Guarantee - ${this.protectionPrice}</p>
1412
+ <p><strong>${ctaLabel}</strong> ShipAid ${deliveryGuarantee} - ${this.protectionPrice}</p>
1409
1413
  </div>
1410
1414
  <div
1411
1415
  class="help-icon"
@@ -1419,11 +1423,11 @@ class CheckoutPackageProtection extends s$1 {
1419
1423
  </div>
1420
1424
 
1421
1425
  <a id="shipaid-checkout-button" class="${this.originalClasses}" href="/checkout${this.shipaidVariant ? `?attributes[_shipaid-internal]=1&updates[${this.shipaidVariant}]=1` : ""}">
1422
- <span>CHECKOUT+ ${this.checkoutTotal}</span>
1426
+ <span>${checkoutLabel} ${this.checkoutTotal}</span>
1423
1427
  </a>
1424
1428
 
1425
1429
  <a id="shipaid-continue-button" href="#" class="continue-link" @click=${this.handleCheckoutWithoutProtection}>
1426
- Continue without delivery guarantee
1430
+ ${continueWithout}
1427
1431
  </a>
1428
1432
  </div>
1429
1433
  `;
@@ -2641,6 +2645,27 @@ const CheckmarkIcon = x`
2641
2645
  />
2642
2646
  </svg>
2643
2647
  `;
2648
+ x`
2649
+ <svg
2650
+ id="Layer_1"
2651
+ data-name="Layer 1"
2652
+ xmlns="http://www.w3.org/2000/svg"
2653
+ viewBox="0 0 2000 1298.39"
2654
+ >
2655
+ <defs>
2656
+ <style>
2657
+ .cls-1 {
2658
+ fill: #406c20;
2659
+ }
2660
+ </style>
2661
+ </defs>
2662
+ <path
2663
+ class="cls-1"
2664
+ d="M1991.63,669.27,1443.91,353.05a16.74,16.74,0,0,0-16.74,0l-418.8,241.79a16.74,16.74,0,0,1-16.74,0L572.83,353.05a16.74,16.74,0,0,0-16.74,0L8.37,669.27A16.74,16.74,0,0,0,0,683.77v632.46a16.74,16.74,0,0,0,8.37,14.5L556.09,1647a16.74,16.74,0,0,0,16.74,0l418.8-241.79a16.74,16.74,0,0,1,16.74,0L1427.17,1647a16.74,16.74,0,0,0,16.74,0l547.72-316.22a16.74,16.74,0,0,0,8.37-14.5V683.77A16.74,16.74,0,0,0,1991.63,669.27Zm-1645.76,54L556.09,601.92a16.74,16.74,0,0,1,16.74,0L783.05,723.3a16.73,16.73,0,0,1,0,29L572.83,873.65a16.74,16.74,0,0,1-16.74,0L345.87,752.28A16.73,16.73,0,0,1,345.87,723.3Zm1308.26,553.4-210.22,121.38a16.74,16.74,0,0,1-16.74,0L1217,1276.7a16.73,16.73,0,0,1,0-29l210.22-121.37a16.74,16.74,0,0,1,16.74,0l210.22,121.37A16.73,16.73,0,0,1,1654.13,1276.7Zm112.19-239.91a16.73,16.73,0,0,1-25.1,14.49L1443.91,879.63a16.74,16.74,0,0,0-16.74,0L572.83,1373.12a16.74,16.74,0,0,1-16.74,0l-314-181.31a16.74,16.74,0,0,1-8.37-14.5V963.21a16.73,16.73,0,0,1,25.1-14.49l297.31,171.65a16.74,16.74,0,0,0,16.74,0l854.34-493.49a16.74,16.74,0,0,1,16.74,0l314,181.31a16.74,16.74,0,0,1,8.37,14.5Z"
2665
+ transform="translate(0 -350.8)"
2666
+ />
2667
+ </svg>
2668
+ `;
2644
2669
  const ShipAidLogo = x`
2645
2670
  <svg
2646
2671
  id="Layer_1"
@@ -2662,6 +2687,28 @@ const ShipAidLogo = x`
2662
2687
  />
2663
2688
  </svg>
2664
2689
  `;
2690
+ x`
2691
+ <svg
2692
+ version="1.0"
2693
+ width="2rem"
2694
+ height="2rem"
2695
+ viewBox="0 0 500.000000 500.000000"
2696
+ preserveAspectRatio="xMidYMid meet"
2697
+ >
2698
+ <g
2699
+ transform="translate(0.000000,500.000000) scale(0.100000,-0.100000)"
2700
+ fill="#0056d6"
2701
+ stroke="none"
2702
+ >
2703
+ <path
2704
+ d="M2465 4855 c-5 -2 -446 -142 -979 -312 -534 -169 -984 -317 -1000 -328 -17 -11 -41 -36 -54 -55 -24 -35 -24 -37 -18 -210 9 -274 84 -1236 170 -2176 37 -401 43 -430 103 -489 25 -24 1389 -912 1702 -1107 93 -59 125 -61 202 -15 30 18 429 275 888 572 647 418 840 547 862 578 15 21 32 62 38 90 16 83 148 1610 191 2202 11 160 21 342 23 405 2 104 0 118 -21 151 -12 21 -34 45 -49 54 -34 23 -1989 645 -2022 644 -14 0 -30 -2 -36 -4z m135 -345 c30 -11 393 -125 805 -255 413 -130 768 -242 791 -250 22 -9 54 -29 70 -46 l29 -30 -1 -182 c-1 -218 -36 -669 -135 -1747 -42 -461 -47 -488 -95 -532 -11 -9 -359 -235 -774 -503 -714 -460 -757 -486 -795 -483 -33 3 -167 85 -775 477 -404 260 -750 484 -768 498 -47 35 -70 89 -81 190 -25 219 -118 1328 -151 1781 -26 368 -26 467 0 509 10 18 29 39 42 47 13 8 374 126 803 261 429 135 812 257 850 270 75 27 95 26 185 -5z"
2705
+ />
2706
+ <path
2707
+ d="M2340 3816 c-252 -140 -776 -446 -797 -465 -17 -14 -23 -31 -23 -61 0 -30 6 -47 23 -62 26 -23 775 -457 862 -499 33 -16 76 -29 95 -29 48 0 90 22 440 224 l305 176 3 -427 c1 -235 -1 -430 -5 -434 -5 -4 -161 -96 -348 -204 l-340 -196 -60 3 c-58 4 -75 12 -388 192 -251 144 -331 195 -342 217 -12 22 -15 79 -15 291 0 145 -4 268 -8 275 -13 20 -253 153 -278 153 -13 0 -28 -9 -34 -19 -17 -32 -14 -843 4 -884 12 -28 75 -68 507 -317 l494 -285 65 0 65 0 495 286 c481 278 495 287 508 324 10 30 12 167 10 616 -3 548 -4 578 -22 598 -30 33 -297 183 -317 178 -9 -3 -138 -74 -286 -160 -393 -227 -401 -230 -466 -225 -45 4 -78 18 -200 89 -144 82 -164 101 -153 137 3 9 75 56 159 105 141 81 156 87 207 87 43 0 66 -7 105 -30 28 -16 60 -30 71 -30 23 0 236 119 268 150 34 33 13 54 -157 153 -291 169 -278 167 -447 73z"
2708
+ />
2709
+ </g>
2710
+ </svg>
2711
+ `;
2665
2712
  const ShipAidLogoText = x`
2666
2713
  <svg
2667
2714
  width="50.000000pt"
@@ -2747,6 +2794,271 @@ const ShipAidLogoText = x`
2747
2794
  </g>
2748
2795
  </svg>
2749
2796
  `;
2797
+ x`
2798
+ <svg
2799
+ viewBox="-25 -40 470 125"
2800
+ version="1.1"
2801
+ xml:space="preserve"
2802
+ style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"
2803
+ >
2804
+ <g transform="matrix(1,0,0,1,-45.4439,-231.396)">
2805
+ <g transform="matrix(1,0,0,1,41.8553,292.5)">
2806
+ <g>
2807
+ <path
2808
+ d="M25.484,0.536C36.161,0.536 47.828,-4.755 47.646,-17.047C47.646,-37.958 14.089,-31.047 14.177,-43.427C14.089,-47.646 18.036,-51.328 25.125,-51.328C31.318,-51.328 34.724,-50.068 39.302,-47.646C40.021,-47.286 40.828,-47.021 41.547,-47.021C43.88,-47.021 46.12,-48.995 46.12,-51.505C46.214,-53.391 45.047,-54.734 43.88,-55.453C39.75,-58.234 31.854,-61.104 25.125,-61.104C13.729,-61.104 3.589,-55.094 3.589,-42.979C3.589,-20.995 37.146,-27.906 37.146,-16.333C37.146,-11.932 32.214,-8.885 25.036,-9.062C19.474,-9.151 15.432,-11.036 11.667,-12.922C10.859,-13.37 9.87,-13.547 9.422,-13.547C6.911,-13.547 4.484,-11.484 4.396,-8.526C4.307,-6.729 5.385,-5.292 6.818,-4.307C10.766,-1.703 18.125,0.63 25.484,0.536Z"
2809
+ style="fill:rgb(0,86,214);fill-rule:nonzero;"
2810
+ />
2811
+ </g>
2812
+ </g>
2813
+ <g transform="matrix(1,0,0,1,111.569,292.5)">
2814
+ <g>
2815
+ <path
2816
+ d="M48.901,-60.656C45.943,-60.656 43.609,-58.234 43.609,-55.365L43.609,-34.547L16.87,-34.547L16.87,-55.365C16.87,-58.234 14.536,-60.656 11.573,-60.656C8.703,-60.656 6.281,-58.234 6.281,-55.365L6.281,-5.292C6.281,-2.333 8.703,0 11.573,0C14.536,0 16.87,-2.333 16.87,-5.292L16.87,-24.943L43.609,-24.943L43.609,-5.292C43.609,-2.333 45.943,0 48.901,0C51.776,0 54.198,-2.333 54.198,-5.292L54.198,-55.365C54.198,-58.234 51.776,-60.656 48.901,-60.656Z"
2817
+ style="fill:rgb(0,86,214);fill-rule:nonzero;"
2818
+ />
2819
+ </g>
2820
+ </g>
2821
+ <g transform="matrix(1,0,0,1,190.435,292.5)">
2822
+ <g>
2823
+ <path
2824
+ d="M11.573,0C14.536,0 16.87,-2.333 16.87,-5.292L16.87,-55.365C16.87,-58.234 14.536,-60.656 11.573,-60.656C8.703,-60.656 6.281,-58.234 6.281,-55.365L6.281,-5.292C6.281,-2.333 8.703,0 11.573,0Z"
2825
+ style="fill:rgb(0,86,214);fill-rule:nonzero;"
2826
+ />
2827
+ </g>
2828
+ </g>
2829
+ <g transform="matrix(1,0,0,1,232.067,292.5)">
2830
+ <g>
2831
+ <path
2832
+ d="M25.125,-60.656L11.573,-60.656C8.703,-60.656 6.281,-58.234 6.281,-55.365L6.281,-5.292C6.281,-2.333 8.703,0 11.573,0C14.536,0 16.87,-2.333 16.87,-5.292L16.87,-23.151L25.125,-23.151C35.714,-23.151 44.328,-30.865 44.328,-41.906C44.328,-52.849 35.714,-60.656 25.125,-60.656ZM24.766,-32.844L16.87,-32.844L16.87,-50.969L24.766,-50.969C29.703,-50.969 33.74,-47.198 33.74,-41.906C33.74,-36.521 29.703,-32.844 24.766,-32.844Z"
2833
+ style="fill:rgb(0,86,214);fill-rule:nonzero;"
2834
+ />
2835
+ </g>
2836
+ </g>
2837
+ <g transform="matrix(1,0,0,1,298.418,292.5)">
2838
+ <g>
2839
+ <path
2840
+ d="M54.198,-4.844L32.214,-58.417C31.583,-59.849 30.151,-60.839 28.536,-60.745C26.917,-60.839 25.396,-59.849 24.854,-58.417L2.87,-4.844C2.063,-2.87 3.052,-0.63 4.938,0.089C6.729,0.896 9.063,0.177 9.87,-1.974L15.255,-15.344L41.724,-15.344L47.109,-1.974C47.917,-0.089 50.161,0.99 52.135,0.089C54.016,-0.63 54.917,-2.964 54.198,-4.844ZM18.125,-22.432L28.536,-48.276L38.854,-22.432L18.125,-22.432Z"
2841
+ style="fill:rgb(47,52,61);fill-rule:nonzero;"
2842
+ />
2843
+ </g>
2844
+ </g>
2845
+ <g transform="matrix(1,0,0,1,373.874,292.5)">
2846
+ <g>
2847
+ <path
2848
+ d="M10.318,0C12.474,0 14.177,-1.703 14.177,-3.859L14.177,-56.797C14.177,-58.865 12.474,-60.656 10.318,-60.656C8.167,-60.656 6.458,-58.865 6.458,-56.797L6.458,-3.859C6.458,-1.703 8.167,0 10.318,0Z"
2849
+ style="fill:rgb(47,52,61);fill-rule:nonzero;"
2850
+ />
2851
+ </g>
2852
+ </g>
2853
+ <g transform="matrix(1,0,0,1,412.904,292.5)">
2854
+ <g>
2855
+ <path
2856
+ d="M24.854,-60.656L10.318,-60.656C8.167,-60.656 6.458,-58.865 6.458,-56.797L6.458,-3.859C6.458,-1.703 8.167,0 10.318,0L24.854,0C41.724,0 55.005,-12.38 55.005,-30.328C55.005,-48.187 41.724,-60.656 24.854,-60.656ZM24.854,-7.089L14.177,-7.089L14.177,-53.568L24.854,-53.568C37.417,-53.568 47.286,-44.057 47.286,-30.328C47.286,-16.51 37.417,-7.089 24.854,-7.089Z"
2857
+ style="fill:rgb(47,52,61);fill-rule:nonzero;"
2858
+ />
2859
+ </g>
2860
+ </g>
2861
+ <path
2862
+ d="M255.854,234.453C247.292,234.453 240.354,241.391 240.354,249.953C240.354,258.51 247.292,265.453 255.854,265.453C264.417,265.453 271.354,258.51 271.354,249.953C271.354,241.391 264.417,234.453 255.854,234.453ZM253.01,257.911L246.188,251.089L248.458,248.813L253.01,253.365L263.25,243.125L265.521,245.401L253.01,257.911Z"
2863
+ style="fill:rgb(0,86,214);fill-rule:nonzero;"
2864
+ />
2865
+ <path
2866
+ d="M270.385,238.443L256.297,233.974C256.005,233.88 255.698,233.88 255.406,233.974L241.318,238.443C240.745,238.599 240.354,239.12 240.354,239.714C240.552,244.578 241.917,259.135 241.917,259.135C241.958,259.693 242.26,260.193 242.729,260.5L255.365,268.646C255.661,268.833 256.042,268.833 256.339,268.646L268.974,260.5C269.443,260.193 269.745,259.693 269.786,259.135C269.786,259.135 271.151,244.578 271.349,239.714C271.349,239.12 270.958,238.599 270.385,238.443"
2867
+ style="fill:rgb(0,86,214);fill-rule:nonzero;"
2868
+ />
2869
+ <path
2870
+ d="M266.224,245.536C266.167,245.427 266.094,245.323 265.938,245.24L263.719,243.922C263.688,243.901 263.656,243.885 263.62,243.88C263.609,243.875 263.599,243.875 263.589,243.875C263.563,243.87 263.542,243.865 263.516,243.865C263.448,243.87 263.385,243.885 263.328,243.922L258.339,246.896L258.333,246.885L257.932,247.125C257.448,247.417 256.849,247.417 256.365,247.125L254.182,245.823C254.063,245.755 253.984,245.62 253.984,245.474C253.984,245.328 254.063,245.198 254.182,245.125L256.365,243.823C256.849,243.536 257.448,243.536 257.932,243.823L258.458,244.135C258.578,244.208 258.724,244.208 258.849,244.135L260.88,242.927C261,242.854 261.073,242.724 261.073,242.578C261.073,242.432 261,242.297 260.88,242.224L257.932,240.469C257.448,240.182 256.849,240.182 256.365,240.469L249.141,244.776C248.62,245.083 248.62,245.865 249.141,246.177L256.365,250.479C256.849,250.771 257.448,250.771 257.932,250.479L263.516,247.151L263.516,254.734L261.719,255.807L257.932,258.073C257.813,258.141 257.682,258.198 257.547,258.234C257.151,258.344 256.724,258.286 256.365,258.073L251.172,254.979C250.927,254.833 250.781,254.563 250.781,254.276L250.781,249.854C250.781,249.714 250.703,249.578 250.583,249.505L248.552,248.297C248.432,248.224 248.281,248.224 248.161,248.297C248.042,248.37 247.964,248.5 247.964,248.646L247.964,255.953C247.964,256.245 248.115,256.51 248.359,256.656L256.365,261.427C256.599,261.568 256.865,261.641 257.135,261.641L257.141,261.641C257.177,261.641 257.219,261.641 257.255,261.635C257.286,261.635 257.318,261.635 257.344,261.63C257.385,261.625 257.427,261.615 257.464,261.604C257.495,261.599 257.521,261.599 257.547,261.589C257.589,261.578 257.63,261.563 257.672,261.547C257.698,261.536 257.719,261.531 257.74,261.521C257.807,261.495 257.87,261.464 257.932,261.427L264.839,257.307L265.932,256.667C266.177,256.526 266.328,256.255 266.328,255.964L266.328,245.943C266.328,245.797 266.292,245.656 266.224,245.536"
2871
+ style="fill:white;fill-rule:nonzero;"
2872
+ />
2873
+ <path
2874
+ d="M257.911,238.047C257.677,237.911 257.417,237.833 257.146,237.833C256.88,237.833 256.615,237.911 256.38,238.047L246.734,243.797C246.25,244.089 245.953,244.62 245.953,245.198L245.953,256.698C245.953,257.276 246.25,257.807 246.734,258.094L256.38,263.844C256.62,263.99 256.885,264.063 257.156,264.063C257.432,264.063 257.698,263.99 257.932,263.849L267.536,258.12C268.021,257.833 268.323,257.302 268.323,256.724L268.323,253.401C268.318,253.255 268.396,253.125 268.516,253.052L270.563,251.833C270.682,251.76 270.828,251.76 270.953,251.833C271.073,251.906 271.146,252.036 271.146,252.182L271.146,258.37C271.146,258.635 271.083,258.896 270.964,259.13C270.932,259.281 270.771,259.458 270.542,259.646C270.536,259.651 270.531,259.651 270.526,259.656C269.948,260.12 268.995,260.599 268.823,260.703L257.932,267.193C257.693,267.339 257.411,267.411 257.13,267.411L257.12,267.411L257.12,267.406C256.859,267.401 256.604,267.328 256.38,267.193L243.927,259.771C243.443,259.479 243.146,258.948 243.146,258.37L243.146,243.526C243.146,243.266 243.177,243 243.286,242.776C243.302,242.719 243.453,242.432 243.766,242.198C243.885,242.12 244.089,242.01 244.286,241.891L256.349,234.703C256.589,234.557 256.865,234.484 257.146,234.49C257.427,234.484 257.703,234.557 257.948,234.703L269.078,241.339C269.104,241.354 269.12,241.37 269.146,241.391L269.286,241.474C269.661,241.682 270.255,241.995 270.578,242.25L270.604,242.271C270.609,242.271 270.615,242.276 270.62,242.276C270.63,242.286 270.635,242.297 270.646,242.307C270.766,242.411 270.865,242.531 270.943,242.661C270.948,242.667 270.948,242.667 270.948,242.672C271.078,242.896 271.146,243.151 271.146,243.411L271.146,248.849C271.146,248.995 271.073,249.125 270.953,249.198L268.906,250.417C268.786,250.49 268.635,250.49 268.516,250.417C268.396,250.344 268.318,250.214 268.318,250.068L268.318,245.167C268.318,244.589 268.021,244.052 267.536,243.766L257.911,238.047Z"
2875
+ style="fill:rgb(0,86,214);fill-rule:nonzero;"
2876
+ />
2877
+ </g>
2878
+ </svg>
2879
+ `;
2880
+ x`
2881
+ <svg
2882
+ viewBox="-25 -40 470 125"
2883
+ version="1.1"
2884
+ xml:space="preserve"
2885
+ style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"
2886
+ >
2887
+ <g transform="matrix(1,0,0,1,-45.4439,-231.396)">
2888
+ <g transform="matrix(1,0,0,1,41.8553,292.5)">
2889
+ <g>
2890
+ <path
2891
+ d="M25.484,0.536C36.161,0.536 47.828,-4.755 47.646,-17.047C47.646,-37.958 14.089,-31.047 14.177,-43.427C14.089,-47.646 18.036,-51.328 25.125,-51.328C31.318,-51.328 34.724,-50.068 39.302,-47.646C40.021,-47.286 40.828,-47.021 41.547,-47.021C43.88,-47.021 46.12,-48.995 46.12,-51.505C46.214,-53.391 45.047,-54.734 43.88,-55.453C39.75,-58.234 31.854,-61.104 25.125,-61.104C13.729,-61.104 3.589,-55.094 3.589,-42.979C3.589,-20.995 37.146,-27.906 37.146,-16.333C37.146,-11.932 32.214,-8.885 25.036,-9.062C19.474,-9.151 15.432,-11.036 11.667,-12.922C10.859,-13.37 9.87,-13.547 9.422,-13.547C6.911,-13.547 4.484,-11.484 4.396,-8.526C4.307,-6.729 5.385,-5.292 6.818,-4.307C10.766,-1.703 18.125,0.63 25.484,0.536Z"
2892
+ style="fill: #406c20;fill-rule:nonzero;"
2893
+ />
2894
+ </g>
2895
+ </g>
2896
+ <g transform="matrix(1,0,0,1,111.569,292.5)">
2897
+ <g>
2898
+ <path
2899
+ d="M48.901,-60.656C45.943,-60.656 43.609,-58.234 43.609,-55.365L43.609,-34.547L16.87,-34.547L16.87,-55.365C16.87,-58.234 14.536,-60.656 11.573,-60.656C8.703,-60.656 6.281,-58.234 6.281,-55.365L6.281,-5.292C6.281,-2.333 8.703,0 11.573,0C14.536,0 16.87,-2.333 16.87,-5.292L16.87,-24.943L43.609,-24.943L43.609,-5.292C43.609,-2.333 45.943,0 48.901,0C51.776,0 54.198,-2.333 54.198,-5.292L54.198,-55.365C54.198,-58.234 51.776,-60.656 48.901,-60.656Z"
2900
+ style="fill: #406c20;fill-rule:nonzero;"
2901
+ />
2902
+ </g>
2903
+ </g>
2904
+ <g transform="matrix(1,0,0,1,190.435,292.5)">
2905
+ <g>
2906
+ <path
2907
+ d="M11.573,0C14.536,0 16.87,-2.333 16.87,-5.292L16.87,-55.365C16.87,-58.234 14.536,-60.656 11.573,-60.656C8.703,-60.656 6.281,-58.234 6.281,-55.365L6.281,-5.292C6.281,-2.333 8.703,0 11.573,0Z"
2908
+ style="fill: #406c20;fill-rule:nonzero;"
2909
+ />
2910
+ </g>
2911
+ </g>
2912
+ <g transform="matrix(1,0,0,1,232.067,292.5)">
2913
+ <g>
2914
+ <path
2915
+ d="M25.125,-60.656L11.573,-60.656C8.703,-60.656 6.281,-58.234 6.281,-55.365L6.281,-5.292C6.281,-2.333 8.703,0 11.573,0C14.536,0 16.87,-2.333 16.87,-5.292L16.87,-23.151L25.125,-23.151C35.714,-23.151 44.328,-30.865 44.328,-41.906C44.328,-52.849 35.714,-60.656 25.125,-60.656ZM24.766,-32.844L16.87,-32.844L16.87,-50.969L24.766,-50.969C29.703,-50.969 33.74,-47.198 33.74,-41.906C33.74,-36.521 29.703,-32.844 24.766,-32.844Z"
2916
+ style="fill: #406c20;fill-rule:nonzero;"
2917
+ />
2918
+ </g>
2919
+ </g>
2920
+ <g transform="matrix(1,0,0,1,298.418,292.5)">
2921
+ <g>
2922
+ <path
2923
+ d="M54.198,-4.844L32.214,-58.417C31.583,-59.849 30.151,-60.839 28.536,-60.745C26.917,-60.839 25.396,-59.849 24.854,-58.417L2.87,-4.844C2.063,-2.87 3.052,-0.63 4.938,0.089C6.729,0.896 9.063,0.177 9.87,-1.974L15.255,-15.344L41.724,-15.344L47.109,-1.974C47.917,-0.089 50.161,0.99 52.135,0.089C54.016,-0.63 54.917,-2.964 54.198,-4.844ZM18.125,-22.432L28.536,-48.276L38.854,-22.432L18.125,-22.432Z"
2924
+ style="fill:rgb(47,52,61);fill-rule:nonzero;"
2925
+ />
2926
+ </g>
2927
+ </g>
2928
+ <g transform="matrix(1,0,0,1,373.874,292.5)">
2929
+ <g>
2930
+ <path
2931
+ d="M10.318,0C12.474,0 14.177,-1.703 14.177,-3.859L14.177,-56.797C14.177,-58.865 12.474,-60.656 10.318,-60.656C8.167,-60.656 6.458,-58.865 6.458,-56.797L6.458,-3.859C6.458,-1.703 8.167,0 10.318,0Z"
2932
+ style="fill:rgb(47,52,61);fill-rule:nonzero;"
2933
+ />
2934
+ </g>
2935
+ </g>
2936
+ <g transform="matrix(1,0,0,1,412.904,292.5)">
2937
+ <g>
2938
+ <path
2939
+ d="M24.854,-60.656L10.318,-60.656C8.167,-60.656 6.458,-58.865 6.458,-56.797L6.458,-3.859C6.458,-1.703 8.167,0 10.318,0L24.854,0C41.724,0 55.005,-12.38 55.005,-30.328C55.005,-48.187 41.724,-60.656 24.854,-60.656ZM24.854,-7.089L14.177,-7.089L14.177,-53.568L24.854,-53.568C37.417,-53.568 47.286,-44.057 47.286,-30.328C47.286,-16.51 37.417,-7.089 24.854,-7.089Z"
2940
+ style="fill:rgb(47,52,61);fill-rule:nonzero;"
2941
+ />
2942
+ </g>
2943
+ </g>
2944
+ <path
2945
+ d="M255.854,234.453C247.292,234.453 240.354,241.391 240.354,249.953C240.354,258.51 247.292,265.453 255.854,265.453C264.417,265.453 271.354,258.51 271.354,249.953C271.354,241.391 264.417,234.453 255.854,234.453ZM253.01,257.911L246.188,251.089L248.458,248.813L253.01,253.365L263.25,243.125L265.521,245.401L253.01,257.911Z"
2946
+ style="fill: #406c20;fill-rule:nonzero;"
2947
+ />
2948
+ <path
2949
+ d="M270.385,238.443L256.297,233.974C256.005,233.88 255.698,233.88 255.406,233.974L241.318,238.443C240.745,238.599 240.354,239.12 240.354,239.714C240.552,244.578 241.917,259.135 241.917,259.135C241.958,259.693 242.26,260.193 242.729,260.5L255.365,268.646C255.661,268.833 256.042,268.833 256.339,268.646L268.974,260.5C269.443,260.193 269.745,259.693 269.786,259.135C269.786,259.135 271.151,244.578 271.349,239.714C271.349,239.12 270.958,238.599 270.385,238.443"
2950
+ style="fill: #406c20;fill-rule:nonzero;"
2951
+ />
2952
+ <path
2953
+ d="M266.224,245.536C266.167,245.427 266.094,245.323 265.938,245.24L263.719,243.922C263.688,243.901 263.656,243.885 263.62,243.88C263.609,243.875 263.599,243.875 263.589,243.875C263.563,243.87 263.542,243.865 263.516,243.865C263.448,243.87 263.385,243.885 263.328,243.922L258.339,246.896L258.333,246.885L257.932,247.125C257.448,247.417 256.849,247.417 256.365,247.125L254.182,245.823C254.063,245.755 253.984,245.62 253.984,245.474C253.984,245.328 254.063,245.198 254.182,245.125L256.365,243.823C256.849,243.536 257.448,243.536 257.932,243.823L258.458,244.135C258.578,244.208 258.724,244.208 258.849,244.135L260.88,242.927C261,242.854 261.073,242.724 261.073,242.578C261.073,242.432 261,242.297 260.88,242.224L257.932,240.469C257.448,240.182 256.849,240.182 256.365,240.469L249.141,244.776C248.62,245.083 248.62,245.865 249.141,246.177L256.365,250.479C256.849,250.771 257.448,250.771 257.932,250.479L263.516,247.151L263.516,254.734L261.719,255.807L257.932,258.073C257.813,258.141 257.682,258.198 257.547,258.234C257.151,258.344 256.724,258.286 256.365,258.073L251.172,254.979C250.927,254.833 250.781,254.563 250.781,254.276L250.781,249.854C250.781,249.714 250.703,249.578 250.583,249.505L248.552,248.297C248.432,248.224 248.281,248.224 248.161,248.297C248.042,248.37 247.964,248.5 247.964,248.646L247.964,255.953C247.964,256.245 248.115,256.51 248.359,256.656L256.365,261.427C256.599,261.568 256.865,261.641 257.135,261.641L257.141,261.641C257.177,261.641 257.219,261.641 257.255,261.635C257.286,261.635 257.318,261.635 257.344,261.63C257.385,261.625 257.427,261.615 257.464,261.604C257.495,261.599 257.521,261.599 257.547,261.589C257.589,261.578 257.63,261.563 257.672,261.547C257.698,261.536 257.719,261.531 257.74,261.521C257.807,261.495 257.87,261.464 257.932,261.427L264.839,257.307L265.932,256.667C266.177,256.526 266.328,256.255 266.328,255.964L266.328,245.943C266.328,245.797 266.292,245.656 266.224,245.536"
2954
+ style="fill:white;fill-rule:nonzero;"
2955
+ />
2956
+ <path
2957
+ d="M257.911,238.047C257.677,237.911 257.417,237.833 257.146,237.833C256.88,237.833 256.615,237.911 256.38,238.047L246.734,243.797C246.25,244.089 245.953,244.62 245.953,245.198L245.953,256.698C245.953,257.276 246.25,257.807 246.734,258.094L256.38,263.844C256.62,263.99 256.885,264.063 257.156,264.063C257.432,264.063 257.698,263.99 257.932,263.849L267.536,258.12C268.021,257.833 268.323,257.302 268.323,256.724L268.323,253.401C268.318,253.255 268.396,253.125 268.516,253.052L270.563,251.833C270.682,251.76 270.828,251.76 270.953,251.833C271.073,251.906 271.146,252.036 271.146,252.182L271.146,258.37C271.146,258.635 271.083,258.896 270.964,259.13C270.932,259.281 270.771,259.458 270.542,259.646C270.536,259.651 270.531,259.651 270.526,259.656C269.948,260.12 268.995,260.599 268.823,260.703L257.932,267.193C257.693,267.339 257.411,267.411 257.13,267.411L257.12,267.411L257.12,267.406C256.859,267.401 256.604,267.328 256.38,267.193L243.927,259.771C243.443,259.479 243.146,258.948 243.146,258.37L243.146,243.526C243.146,243.266 243.177,243 243.286,242.776C243.302,242.719 243.453,242.432 243.766,242.198C243.885,242.12 244.089,242.01 244.286,241.891L256.349,234.703C256.589,234.557 256.865,234.484 257.146,234.49C257.427,234.484 257.703,234.557 257.948,234.703L269.078,241.339C269.104,241.354 269.12,241.37 269.146,241.391L269.286,241.474C269.661,241.682 270.255,241.995 270.578,242.25L270.604,242.271C270.609,242.271 270.615,242.276 270.62,242.276C270.63,242.286 270.635,242.297 270.646,242.307C270.766,242.411 270.865,242.531 270.943,242.661C270.948,242.667 270.948,242.667 270.948,242.672C271.078,242.896 271.146,243.151 271.146,243.411L271.146,248.849C271.146,248.995 271.073,249.125 270.953,249.198L268.906,250.417C268.786,250.49 268.635,250.49 268.516,250.417C268.396,250.344 268.318,250.214 268.318,250.068L268.318,245.167C268.318,244.589 268.021,244.052 267.536,243.766L257.911,238.047Z"
2958
+ style="fill: #406c20;fill-rule:nonzero;"
2959
+ />
2960
+ </g>
2961
+ </svg>
2962
+ `;
2963
+ x`
2964
+ <svg
2965
+ version="1.0"
2966
+ viewBox="0 0 500.000000 500.000000"
2967
+ preserveAspectRatio="xMidYMid meet"
2968
+ >
2969
+ <g
2970
+ transform="translate(0.000000,500.000000) scale(0.100000,-0.100000)"
2971
+ fill="#0056d6"
2972
+ stroke="none"
2973
+ >
2974
+ <path
2975
+ d="M2157 4460 c-66 -17 -120 -51 -194 -121 -84 -82 -151 -115 -255 -129 -94 -12 -155 -38 -213 -91 -56 -52 -90 -107 -106 -174 -6 -27 -25 -76 -42 -108 -30 -57 -51 -78 -167 -170 -39 -31 -64 -61 -88 -108 -42 -81 -49 -147 -29 -264 18 -109 10 -179 -28 -255 -45 -89 -56 -131 -56 -212 -1 -93 18 -141 96 -242 69 -91 85 -135 94 -271 9 -127 28 -180 87 -245 46 -50 87 -78 167 -109 78 -32 146 -96 190 -178 46 -87 106 -149 176 -182 51 -24 68 -26 199 -28 138 -1 145 -3 205 -32 34 -17 82 -44 107 -61 25 -16 74 -37 110 -46 94 -24 171 -8 281 57 112 66 141 73 276 65 92 -5 121 -3 171 12 85 27 147 74 192 146 94 149 120 173 237 222 175 72 236 160 253 361 10 119 33 174 105 256 116 132 132 265 53 428 -40 83 -49 194 -23 299 33 133 -6 256 -110 345 -144 124 -170 161 -200 276 -44 169 -146 261 -320 289 -102 16 -148 41 -239 128 -95 92 -115 105 -186 126 -75 22 -137 20 -226 -9 -105 -34 -200 -34 -291 1 -76 28 -169 38 -226 24z m458 -430 c50 -6 126 -19 170 -31 100 -25 279 -112 366 -178 82 -62 202 -188 252 -264 248 -375 247 -855 -3 -1228 -54 -80 -206 -232 -285 -284 -136 -90 -286 -150 -439 -176 -105 -18 -351 -6 -451 21 -478 129 -815 565 -815 1055 0 484 328 918 795 1050 144 41 265 51 410 35z"
2976
+ />
2977
+ <path
2978
+ d="M3045 3470 c-16 -4 -39 -11 -50 -18 -11 -6 -155 -159 -320 -341 -165 -181 -305 -330 -310 -330 -6 -1 -73 51 -150 115 -77 64 -156 123 -175 131 -67 29 -145 5 -194 -61 -25 -33 -29 -119 -7 -160 14 -26 398 -346 463 -386 46 -28 115 -27 159 3 37 25 719 763 750 812 23 36 25 114 5 153 -32 62 -104 96 -171 82z"
2979
+ />
2980
+ <path
2981
+ d="M1445 1778 c-26 -78 -306 -1021 -303 -1023 2 -2 109 27 238 66 129 38 240 68 246 67 7 -2 83 -87 169 -190 87 -104 160 -188 164 -188 3 0 64 194 135 431 l129 431 -29 23 c-51 42 -110 56 -205 49 -210 -16 -386 80 -482 263 -40 76 -54 93 -62 71z"
2982
+ />
2983
+ <path
2984
+ d="M3460 1677 c-95 -174 -295 -278 -481 -249 -41 6 -83 7 -114 1 -52 -10 -145 -63 -145 -84 0 -14 236 -802 247 -826 6 -13 45 28 168 177 88 106 166 193 173 193 7 1 117 -30 244 -68 128 -39 234 -68 237 -65 4 4 -275 945 -288 971 -4 8 -21 -13 -41 -50z"
2985
+ />
2986
+ </g>
2987
+ </svg>
2988
+ `;
2989
+ x`
2990
+ <svg
2991
+ version="1.0"
2992
+ viewBox="0 0 500.000000 500.000000"
2993
+ preserveAspectRatio="xMidYMid meet"
2994
+ >
2995
+ <g
2996
+ transform="translate(0.000000,500.000000) scale(0.100000,-0.100000)"
2997
+ fill="#0056d6"
2998
+ stroke="none"
2999
+ >
3000
+ <path
3001
+ d="M2287 4490 c-650 -102 -1142 -559 -1295 -1205 -24 -100 -26 -128 -26 -315 0 -173 4 -220 22 -303 69 -311 206 -580 478 -940 185 -243 541 -680 814 -996 63 -74 133 -156 155 -182 29 -36 47 -49 65 -48 20 0 77 62 297 322 921 1092 1113 1383 1215 1844 32 143 32 421 0 580 -55 275 -184 539 -359 733 -231 256 -496 411 -843 491 -76 17 -133 22 -280 25 -102 1 -211 -1 -243 -6z m360 -241 c206 -23 416 -101 591 -221 102 -70 264 -233 330 -333 104 -157 177 -334 208 -508 25 -138 23 -355 -4 -484 -111 -516 -496 -902 -1012 -1015 -140 -31 -396 -30 -535 1 -382 86 -708 339 -883 686 -52 104 -95 228 -118 340 -25 126 -26 378 -1 495 56 263 175 481 361 666 291 289 659 418 1063 373z"
3002
+ />
3003
+ <path
3004
+ d="M2400 4098 c-502 -34 -925 -417 -1027 -927 -22 -111 -19 -316 7 -441 93 -457 446 -806 907 -897 115 -22 319 -22 428 1 292 63 533 216 710 451 67 88 151 265 182 380 24 90 27 117 27 280 1 206 -11 275 -75 442 -79 203 -244 406 -429 525 -114 74 -167 100 -281 136 -154 50 -272 63 -449 50z m248 -277 c50 -29 92 -56 92 -59 0 -7 -684 -394 -705 -400 -16 -4 -268 118 -260 126 4 4 167 100 363 213 l357 207 30 -18 c17 -9 72 -41 123 -69z m428 -243 c79 -45 144 -85 144 -88 0 -3 -162 -86 -360 -182 l-360 -177 -140 66 c-78 37 -137 70 -133 74 13 13 687 389 697 389 5 0 73 -37 152 -82z m-1266 -303 l130 -65 0 -220 0 -219 79 -61 c44 -33 82 -60 85 -60 3 0 7 107 8 239 l3 238 148 -70 147 -70 0 -464 c0 -254 -2 -463 -4 -463 -3 0 -168 94 -368 209 l-363 209 -3 431 c-1 237 0 431 3 431 3 0 64 -29 135 -65z m1520 -363 l0 -429 -369 -211 c-203 -117 -372 -212 -375 -212 -3 0 -5 208 -4 462 l3 462 364 178 c201 98 368 178 373 178 4 0 8 -193 8 -428z"
3005
+ />
3006
+ </g>
3007
+ </svg>
3008
+ `;
3009
+ x`
3010
+ <svg
3011
+ version="1.0"
3012
+ viewBox="0 0 500.000000 500.000000"
3013
+ preserveAspectRatio="xMidYMid meet"
3014
+ >
3015
+ <g
3016
+ transform="translate(0.000000,500.000000) scale(0.100000,-0.100000)"
3017
+ fill="#0056d6"
3018
+ stroke="none"
3019
+ >
3020
+ <path
3021
+ d="M1314 3708 c-92 -106 -174 -201 -182 -210 -14 -17 17 -18 636 -18 l652 0 0 210 0 210 -469 0 -469 0 -168 -192z"
3022
+ />
3023
+ <path
3024
+ d="M2570 3690 l0 -210 645 0 c355 0 645 2 645 5 0 7 -257 303 -319 368 l-45 47 -463 0 -463 0 0 -210z"
3025
+ />
3026
+ <path
3027
+ d="M1100 3170 l0 -160 83 0 82 0 115 -96 c63 -52 121 -103 128 -112 28 -36 15 -74 -58 -164 -68 -84 -70 -89 -70 -142 l0 -55 160 -3 161 -3 89 -91 c75 -76 90 -96 90 -123 0 -40 -31 -71 -71 -71 -25 0 -45 14 -103 70 l-73 70 -154 0 -155 0 -109 -44 -110 -44 -3 -185 -2 -185 121 -4 c113 -3 122 -5 140 -27 26 -32 24 -73 -4 -99 -21 -20 -34 -22 -140 -22 l-117 0 0 -285 0 -285 1395 0 1395 0 0 288 0 288 -70 69 -70 69 0 109 0 108 -75 79 c-45 47 -75 87 -75 100 0 13 30 53 75 100 l75 79 0 108 0 109 70 69 c69 69 70 70 70 122 l0 53 -110 0 c-78 0 -119 4 -139 15 -48 24 -55 72 -16 110 23 24 30 25 145 25 l120 0 0 160 0 160 -465 0 -465 0 0 -439 c0 -428 0 -439 -21 -465 -13 -17 -30 -26 -49 -26 -17 0 -102 40 -214 101 l-185 101 -184 -101 c-195 -107 -229 -117 -263 -80 -18 20 -19 45 -22 465 l-3 444 -459 0 -460 0 0 -160z m2429 -1355 c48 -24 55 -72 16 -110 -24 -25 -25 -25 -227 -25 -221 0 -239 4 -252 56 -8 31 14 71 47 84 12 5 104 9 205 9 142 1 189 -2 211 -14z m105 -356 c51 -23 55 -103 7 -128 -13 -7 -130 -11 -328 -11 -297 0 -310 1 -331 20 -32 30 -30 82 4 109 26 20 38 21 325 21 200 0 306 -4 323 -11z"
3028
+ />
3029
+ <path
3030
+ d="M2170 2965 c0 -201 2 -365 5 -365 2 0 66 34 142 76 76 41 150 78 165 81 20 4 55 -10 145 -60 65 -35 133 -72 151 -81 l32 -17 0 366 0 365 -320 0 -320 0 0 -365z"
3031
+ />
3032
+ </g>
3033
+ </svg>
3034
+ `;
3035
+ x`
3036
+ <svg
3037
+ xmlns="http://www.w3.org/2000/svg"
3038
+ version="1.0"
3039
+ viewBox="0 0 500.000000 500.000000"
3040
+ preserveAspectRatio="xMidYMid meet"
3041
+ >
3042
+ <g
3043
+ transform="translate(0.000000,500.000000) scale(0.100000,-0.100000)"
3044
+ fill="#0056d6"
3045
+ stroke="none"
3046
+ >
3047
+ <path
3048
+ d="M2445 4021 c-72 -18 -132 -68 -159 -133 -10 -23 -16 -67 -16 -113 0 -52 -4 -77 -12 -80 -7 -2 -55 -19 -105 -38 -301 -111 -532 -363 -616 -672 -31 -113 -37 -229 -37 -665 l0 -435 -150 -150 -150 -150 0 -77 0 -78 1300 0 1300 0 0 73 0 72 -155 155 -155 155 0 456 c0 374 -3 472 -16 550 -57 329 -262 596 -568 740 -44 20 -102 43 -127 49 l-46 12 -6 83 c-4 54 -13 98 -26 123 -29 58 -94 109 -153 121 -54 12 -60 12 -103 2z"
3049
+ />
3050
+ <path
3051
+ d="M1371 3863 c-182 -183 -274 -321 -366 -549 -48 -118 -93 -308 -101 -420 l-7 -94 150 0 150 0 12 89 c30 232 116 443 255 626 55 70 181 198 246 248 l35 27 -105 105 c-57 58 -111 105 -118 105 -8 0 -76 -62 -151 -137z"
3052
+ />
3053
+ <path
3054
+ d="M3358 3893 l-108 -108 37 -25 c20 -13 75 -63 122 -110 194 -193 326 -452 368 -724 8 -56 17 -107 19 -113 4 -15 289 -19 298 -5 8 13 -20 208 -43 303 -56 238 -184 484 -349 673 -61 70 -218 216 -232 216 -3 0 -54 -48 -112 -107z"
3055
+ />
3056
+ <path
3057
+ d="M2194 1267 c-17 -46 48 -180 112 -231 182 -144 464 -33 491 194 l6 50 -302 0 c-242 0 -303 -3 -307 -13z"
3058
+ />
3059
+ </g>
3060
+ </svg>
3061
+ `;
2750
3062
  const TreeIcon = x`
2751
3063
  <svg width="20" height="20" viewBox="0 0 24 29" fill="none" xmlns="http://www.w3.org/2000/svg">
2752
3064
  <path fill-rule="evenodd" clip-rule="evenodd" d="M12.8389 3.5146C12.4124 2.64195 11.1688 2.64166 10.7419 3.51411L2.48315 20.3931C2.10376 21.1685 2.66827 22.0732 3.53151 22.0732H8.15214C8.80382 22.0732 9.33211 22.6015 9.33211 23.2531C9.33211 23.9048 8.80382 24.4331 8.15214 24.4331H3.53151C0.922794 24.4331 -0.783184 21.6991 0.363353 19.3559L8.62211 2.47691C9.91216 -0.159656 13.6703 -0.158781 14.9591 2.4784L23.2081 19.3574C24.3532 21.7005 22.6472 24.4331 20.0392 24.4331H12.9715L12.9715 27.075C12.9715 27.7267 12.4432 28.2549 11.7915 28.2549C11.1398 28.2549 10.6116 27.7267 10.6116 27.075L10.6115 23.2531C10.6115 22.9402 10.7359 22.6401 10.9572 22.4188C11.1784 22.1975 11.4786 22.0732 11.7915 22.0732H20.0392C20.9022 22.0732 21.4667 21.1689 21.0878 20.3936L12.8389 3.5146Z" fill="#1C4B27"/>
@@ -2826,6 +3138,22 @@ const actions = {
2826
3138
  remove: "Remove",
2827
3139
  loading: "Loading..."
2828
3140
  };
3141
+ const plus = {
3142
+ benefits: {
3143
+ title: "Benefits:",
3144
+ "protected": "Protected - delivery guarantee against loss, theft, or damage",
3145
+ "free-gift": "Free Gift – $5 donation to a charity of your choice, for free",
3146
+ tree: "Tree Planted - A tree planted in your name with every order"
3147
+ },
3148
+ "see-details": "See Details",
3149
+ "learn-more": "Learn more",
3150
+ suffix: {
3151
+ "free-gift": " | Free Gift",
3152
+ tree: " | Tree Planted",
3153
+ "no-gift": ", no gift",
3154
+ "with-free-gift": "& Free Gift"
3155
+ }
3156
+ };
2829
3157
  const defaultLangFile = {
2830
3158
  loading,
2831
3159
  title,
@@ -2851,11 +3179,39 @@ const defaultLangFile = {
2851
3179
  reforestation: "Reforestation"
2852
3180
  }
2853
3181
  },
3182
+ plus,
2854
3183
  "checkout-plus": {
2855
3184
  title: "Delivery Guarantee",
2856
3185
  checkout: "CHECKOUT",
2857
3186
  "checkout-title": "Checkout",
2858
- "continue": "Checkout- not protected"
3187
+ "continue": "Checkout- not protected",
3188
+ labels: {
3189
+ cta: "Checkout+",
3190
+ "protected": "Protected"
3191
+ },
3192
+ buttons: {
3193
+ primary: "CHECKOUT+ Protected",
3194
+ secondary: "Checkout",
3195
+ "continue-without": "Continue without delivery guarantee"
3196
+ },
3197
+ aria: {
3198
+ shipping: "Shipping protection"
3199
+ }
3200
+ },
3201
+ "add-cart-plus": {
3202
+ labels: {
3203
+ cta: "Add to Cart+",
3204
+ "protected": "Protected"
3205
+ },
3206
+ buttons: {
3207
+ primary: "Add to cart + shipping protection",
3208
+ "primary-protected": "ADD TO CART+ Protected",
3209
+ loading: "Adding...",
3210
+ "not-protected": "Add to cart — not protected"
3211
+ },
3212
+ aria: {
3213
+ shipping: "Shipping protection"
3214
+ }
2859
3215
  },
2860
3216
  "impact-activated": {
2861
3217
  title: "Protection",
@@ -2872,17 +3228,18 @@ const en = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2872
3228
  description,
2873
3229
  footer,
2874
3230
  loading,
3231
+ plus,
2875
3232
  title
2876
3233
  }, Symbol.toStringTag, { value: "Module" }));
2877
3234
  const CHECKOUT_TOGGLE_STORAGE_KEY = "shipaid-checkout-plus:toggle-cache";
2878
3235
  const langFiles = /* @__PURE__ */ Object.assign({
2879
- "../lang/de.json": () => import("./de-eaQze93t.js").then((m2) => m2["default"]),
3236
+ "../lang/de.json": () => import("./de-CZ_cclWT.js").then((m2) => m2["default"]),
2880
3237
  "../lang/en.json": () => Promise.resolve().then(() => en).then((m2) => m2["default"]),
2881
- "../lang/es.json": () => import("./es-BWv6xZJn.js").then((m2) => m2["default"]),
2882
- "../lang/fr.json": () => import("./fr-DMWDzKKz.js").then((m2) => m2["default"]),
2883
- "../lang/it.json": () => import("./it-DvSE-Kl_.js").then((m2) => m2["default"]),
2884
- "../lang/nl.json": () => import("./nl-BmO0Voma.js").then((m2) => m2["default"]),
2885
- "../lang/pt.json": () => import("./pt-BIWruyoG.js").then((m2) => m2["default"])
3238
+ "../lang/es.json": () => import("./es-D_v2ieny.js").then((m2) => m2["default"]),
3239
+ "../lang/fr.json": () => import("./fr-C7qY8Ze-.js").then((m2) => m2["default"]),
3240
+ "../lang/it.json": () => import("./it-CKtGl5_a.js").then((m2) => m2["default"]),
3241
+ "../lang/nl.json": () => import("./nl-BgrjSxfu.js").then((m2) => m2["default"]),
3242
+ "../lang/pt.json": () => import("./pt-BQDpBnFY.js").then((m2) => m2["default"])
2886
3243
  });
2887
3244
  registerTranslateConfig({
2888
3245
  loader: async (lang) => {
@@ -4099,13 +4456,13 @@ const _ShipAidWidget = class _ShipAidWidget extends s$1 {
4099
4456
  <div class="shipaid-benefits-container ${this._isBenefitsOpen ? "open" : ""}">
4100
4457
  <div class="shipaid-benefits">
4101
4458
  <div class="shipaid-benefits__header">
4102
- <span>Benefits:</span>
4103
- <a href="#" class="shipaid-benefits__link" @click=${this._handleSeeDetails}>See Details</a>
4459
+ <span>${translate("plus.benefits.title")}</span>
4460
+ <a href="#" class="shipaid-benefits__link" @click=${this._handleSeeDetails}>${translate("plus.see-details")}</a>
4104
4461
  </div>
4105
4462
  <ul>
4106
- <li>${ProtectedIcon}Protected - delivery guarantee against loss, theft, or damage</li>
4107
- ${isFreeGiftEnabled ? x`<li>${GiftIcon}Free Gift - $5 donation to a charity of your choice, for free</li>` : A}
4108
- ${isGreenProtectionEnabled ? x`<li>${TreeIcon}Tree Planted - A tree planted in your name with every order</li>` : A}
4463
+ <li>${ProtectedIcon}${translate("plus.benefits.protected")}</li>
4464
+ ${isFreeGiftEnabled ? x`<li>${GiftIcon}${translate("plus.benefits.free-gift")}</li>` : A}
4465
+ ${isGreenProtectionEnabled ? x`<li>${TreeIcon}${translate("plus.benefits.tree")}</li>` : A}
4109
4466
  </ul>
4110
4467
  </div>
4111
4468
  </div>
@@ -4440,7 +4797,7 @@ const _ShipAidWidget = class _ShipAidWidget extends s$1 {
4440
4797
  class="continue-link"
4441
4798
  >
4442
4799
  <slot name="link-continue"
4443
- >${translate("checkout-plus.continue")} ${isFreeGiftEnabled ? "| no gift" : ""}</slot
4800
+ >${translate("checkout-plus.continue")}${isFreeGiftEnabled ? translate("plus.suffix.no-gift") : ""}</slot
4444
4801
  >
4445
4802
  </a>
4446
4803
  </div>
@@ -5390,10 +5747,10 @@ var __decorateClass$1 = (decorators, target, key, kind) => {
5390
5747
  };
5391
5748
  class ShipAidCheckoutPlus extends s$1 {
5392
5749
  constructor() {
5393
- var _a;
5394
5750
  super(...arguments);
5395
5751
  this.env = "prod";
5396
- this.lang = ((_a = window == null ? void 0 : window.Shopify) == null ? void 0 : _a.locale) || "en";
5752
+ this.lang = "en";
5753
+ this.currency = void 0;
5397
5754
  this.dataSelector = "";
5398
5755
  this.isClone = false;
5399
5756
  this._hasFinishedSetup = false;
@@ -5420,8 +5777,8 @@ class ShipAidCheckoutPlus extends s$1 {
5420
5777
  this._lastCartEventAt = 0;
5421
5778
  this._lastEnsureVariantAt = 0;
5422
5779
  this._onShipAidCartEvent = (event) => {
5423
- var _a2, _b;
5424
- if (((_b = (_a2 = event == null ? void 0 : event.detail) == null ? void 0 : _a2.data) == null ? void 0 : _b.source) === "shipaid-widget") return;
5780
+ var _a, _b;
5781
+ if (((_b = (_a = event == null ? void 0 : event.detail) == null ? void 0 : _a.data) == null ? void 0 : _b.source) === "shipaid-widget") return;
5425
5782
  const now = Date.now();
5426
5783
  if (now - this._lastCartEventAt < 500) return;
5427
5784
  this._lastCartEventAt = now;
@@ -5432,8 +5789,8 @@ class ShipAidCheckoutPlus extends s$1 {
5432
5789
  }
5433
5790
  };
5434
5791
  this._onShipAidInternalCartUpdated = (event) => {
5435
- var _a2, _b, _c, _d;
5436
- const src = ((_b = (_a2 = event == null ? void 0 : event.detail) == null ? void 0 : _a2.data) == null ? void 0 : _b.source) || ((_c = event == null ? void 0 : event.detail) == null ? void 0 : _c.source);
5792
+ var _a, _b, _c, _d;
5793
+ const src = ((_b = (_a = event == null ? void 0 : event.detail) == null ? void 0 : _a.data) == null ? void 0 : _b.source) || ((_c = event == null ? void 0 : event.detail) == null ? void 0 : _c.source);
5437
5794
  if (src === "shipaid-widget") return;
5438
5795
  const providedCart = (_d = event == null ? void 0 : event.detail) == null ? void 0 : _d.cart;
5439
5796
  try {
@@ -5567,11 +5924,8 @@ class ShipAidCheckoutPlus extends s$1 {
5567
5924
  }
5568
5925
  }
5569
5926
  async connectedCallback() {
5570
- var _a;
5571
5927
  super.connectedCallback();
5572
- const lang = this.lang || ((_a = window == null ? void 0 : window.Shopify) == null ? void 0 : _a.locale) || "en";
5573
- console.debug("[ShipAid] Widget Lang, ", lang, this.lang);
5574
- await use(lang);
5928
+ await use(this.lang);
5575
5929
  this._removeLegacyV1();
5576
5930
  try {
5577
5931
  window.addEventListener("beforeunload", () => {
@@ -5692,19 +6046,14 @@ class ShipAidCheckoutPlus extends s$1 {
5692
6046
  _prepareParentContainer(btn) {
5693
6047
  if (!btn) return;
5694
6048
  try {
5695
- let el = btn.parentElement;
5696
- let depth = 0;
5697
- while (el && depth < 3) {
5698
- const cs = window.getComputedStyle(el);
5699
- const display = (cs.display || "").toLowerCase();
5700
- const isFlex = display === "flex" || display === "inline-flex";
5701
- const isGrid = display === "grid" || display === "inline-grid";
5702
- if (isFlex && cs.flexDirection !== "column" || isGrid) {
5703
- el.setAttribute("shipaid-parent-container", "");
5704
- return;
5705
- }
5706
- el = el.parentElement;
5707
- depth++;
6049
+ const el = btn.parentElement;
6050
+ if (!el) return;
6051
+ const cs = window.getComputedStyle(el);
6052
+ const display = (cs.display || "").toLowerCase();
6053
+ const isFlex = display === "flex" || display === "inline-flex";
6054
+ const isGrid = display === "grid" || display === "inline-grid";
6055
+ if (isFlex && cs.flexDirection !== "column" || isGrid) {
6056
+ el.setAttribute("shipaid-parent-container", "");
5708
6057
  }
5709
6058
  } catch {
5710
6059
  }
@@ -6202,7 +6551,7 @@ class ShipAidCheckoutPlus extends s$1 {
6202
6551
  }
6203
6552
  _currencyFormat(value) {
6204
6553
  var _a, _b, _c;
6205
- const currency = ((_a = this._store) == null ? void 0 : _a.currency) || ((_c = (_b = window.Shopify) == null ? void 0 : _b.currency) == null ? void 0 : _c.active) || "USD";
6554
+ const currency = this.currency || ((_a = this._store) == null ? void 0 : _a.currency) || ((_c = (_b = window.Shopify) == null ? void 0 : _b.currency) == null ? void 0 : _c.active) || "USD";
6206
6555
  return new Intl.NumberFormat(void 0, { currency, style: "currency" }).format(Number(value));
6207
6556
  }
6208
6557
  async updateProtection() {
@@ -6369,7 +6718,8 @@ class ShipAidCheckoutPlus extends s$1 {
6369
6718
  align-items: flex-start;
6370
6719
  gap: 6px;
6371
6720
  font-size: 10px;
6372
- }
6721
+ text-align: left;
6722
+ }
6373
6723
  .cp-benefits li svg{
6374
6724
  width: 15px;
6375
6725
  height: 15px;
@@ -6501,39 +6851,54 @@ class ShipAidCheckoutPlus extends s$1 {
6501
6851
  }
6502
6852
  _renderLegacyContent({ isGreen, isFreeGiftEnabled, iconImg, price }) {
6503
6853
  const helpClass = isGreen ? "cp-help green" : "cp-help";
6854
+ const title2 = get("checkout-plus.labels.cta");
6855
+ const protectedLabel = get("checkout-plus.labels.protected");
6856
+ const freeGiftSuffix = isFreeGiftEnabled ? get("plus.suffix.free-gift") : "";
6857
+ const treeSuffix = isGreen ? get("plus.suffix.tree") : "";
6858
+ const learnMore = get("plus.learn-more");
6859
+ const benefitsTitle = get("plus.benefits.title");
6860
+ const seeDetails = get("plus.see-details");
6861
+ const protectedBenefit = get("plus.benefits.protected");
6862
+ const freeGiftBenefit = get("plus.benefits.free-gift");
6863
+ const treeBenefit = get("plus.benefits.tree");
6864
+ const checkoutLabel = get("checkout-plus.buttons.secondary");
6865
+ const primaryProtected = get("checkout-plus.buttons.primary");
6866
+ const withFreeGift = isFreeGiftEnabled ? ` ${get("plus.suffix.with-free-gift")}` : "";
6867
+ const unprotectedLabel = get("checkout-plus.continue");
6868
+ const noGiftSuffix = isFreeGiftEnabled ? get("plus.suffix.no-gift") : "";
6504
6869
  return x`
6505
6870
  <div class="cp-container">
6506
6871
  <div class="cp-topbar">
6507
6872
  <div class="cp-left">
6508
- <img src="${iconImg}" alt="Checkout+" class="cp-icon" />
6509
- <span class="cp-title">Checkout+ <small>Protected${isFreeGiftEnabled ? " | Free Gift" : ""}${isGreen ? " | Tree Planted" : ""}</small></span>
6873
+ <img src="${iconImg}" alt="${title2}" class="cp-icon" />
6874
+ <span class="cp-title">${title2} <small>${protectedLabel}${freeGiftSuffix}${treeSuffix}</small></span>
6510
6875
  </div>
6511
6876
  <div class="cp-price">
6512
6877
  <span>${price || "—"}</span>
6513
- <span class=${helpClass} title="Learn more" @click=${this.toggleDetails} aria-expanded="${this.isDetailsOpen}">${HelpIcon}</span>
6878
+ <span class=${helpClass} title="${learnMore}" @click=${this.toggleDetails} aria-expanded="${this.isDetailsOpen}">${HelpIcon}</span>
6514
6879
  </div>
6515
6880
  </div>
6516
6881
  <div class="cp-benefits-container ${this.isDetailsOpen ? "open" : ""}">
6517
6882
  <div class="cp-benefits">
6518
6883
  <div class="cp-benefits__header">
6519
- <span>Benefits:</span>
6520
- <a href="#" class="cp-benefits__link" @click=${() => openCarousel("shipaid-checkout-plus")}>See Details</a>
6884
+ <span>${benefitsTitle}</span>
6885
+ <a href="#" class="cp-benefits__link" @click=${() => openCarousel("shipaid-checkout-plus")}>${seeDetails}</a>
6521
6886
  </div>
6522
6887
  <ul>
6523
- <li>${ProtectedIcon}Protected - delivery guarantee against loss, theft, or damage</li>
6524
- ${isFreeGiftEnabled ? x`<li>${GiftIcon}Free Gift – $5 donation to a charity of your choice, for free</li>` : A}
6525
- ${isGreen ? x`<li>${TreeIcon}Tree Planted - A tree planted in your name with every order</li>` : A}
6888
+ <li>${ProtectedIcon}${protectedBenefit}</li>
6889
+ ${isFreeGiftEnabled ? x`<li>${GiftIcon}${freeGiftBenefit}</li>` : A}
6890
+ ${isGreen ? x`<li>${TreeIcon}${treeBenefit}</li>` : A}
6526
6891
  </ul>
6527
6892
  </div>
6528
6893
  </div>
6529
6894
 
6530
6895
  <button class="cp-primary" ?disabled=${this._toggleLoading} @click=${this.handleLegacyPrimaryClick}>
6531
- ${this._hasProtectionInCart ? "Checkout" : x`CHECKOUT+ Protected ${isFreeGiftEnabled ? "& Free Gift" : ""}`}
6896
+ ${this._hasProtectionInCart ? checkoutLabel : x`${primaryProtected}${withFreeGift}`}
6532
6897
  </button>
6533
6898
  </div>
6534
6899
  ${this._hasProtectionInCart ? A : x`
6535
6900
  <button class="cp-secondary" ?disabled=${this._toggleLoading} @click=${this.handleLegacySecondaryClick}>
6536
- Checkout- not protected${isFreeGiftEnabled ? ", no gift" : ""}
6901
+ ${unprotectedLabel}${noGiftSuffix}
6537
6902
  </button>
6538
6903
  `}
6539
6904
  `;
@@ -6541,21 +6906,33 @@ class ShipAidCheckoutPlus extends s$1 {
6541
6906
  _renderToggleContent({ isGreen, isFreeGiftEnabled, iconImg, price }) {
6542
6907
  const toggleChecked = this._desiredProtection;
6543
6908
  const helpClass = isGreen ? "cp-help green" : "cp-help";
6909
+ const title2 = get("checkout-plus.labels.cta");
6910
+ const protectedLabel = get("checkout-plus.labels.protected");
6911
+ const freeGiftSuffix = isFreeGiftEnabled ? get("plus.suffix.free-gift") : "";
6912
+ const treeSuffix = isGreen ? get("plus.suffix.tree") : "";
6913
+ const learnMore = get("plus.learn-more");
6914
+ const benefitsTitle = get("plus.benefits.title");
6915
+ const seeDetails = get("plus.see-details");
6916
+ const protectedBenefit = get("plus.benefits.protected");
6917
+ const freeGiftBenefit = get("plus.benefits.free-gift");
6918
+ const treeBenefit = get("plus.benefits.tree");
6919
+ const shippingAria = get("checkout-plus.aria.shipping");
6920
+ const checkoutLabel = get("checkout-plus.buttons.secondary");
6544
6921
  return x`
6545
6922
  <div class="cp-container">
6546
6923
  <div class="cp-topbar">
6547
6924
  <div class="cp-left">
6548
- <img src="${iconImg}" alt="Checkout+" class="cp-icon" />
6549
- <span class="cp-title">Checkout+ <small>Protected${isFreeGiftEnabled ? " | Free Gift" : ""}${isGreen ? " | Tree Planted" : ""}</small></span>
6925
+ <img src="${iconImg}" alt="${title2}" class="cp-icon" />
6926
+ <span class="cp-title">${title2} <small>${protectedLabel}${freeGiftSuffix}${treeSuffix}</small></span>
6550
6927
  </div>
6551
6928
  <div class="cp-price">
6552
6929
  <span>${price || "—"}</span>
6553
- <span class=${helpClass} title="Learn more" @click=${this.toggleDetails} aria-expanded="${this.isDetailsOpen}">${HelpIcon}</span>
6930
+ <span class=${helpClass} title="${learnMore}" @click=${this.toggleDetails} aria-expanded="${this.isDetailsOpen}">${HelpIcon}</span>
6554
6931
  <label class="cp-checkbox" data-loading="${this._toggleLoading}" data-checked="${toggleChecked}">
6555
6932
  <input
6556
6933
  id=${this._toggleId}
6557
6934
  type="checkbox"
6558
- aria-label="Shipping protection"
6935
+ aria-label="${shippingAria}"
6559
6936
  ?checked=${toggleChecked}
6560
6937
  ?disabled=${this._toggleLoading}
6561
6938
  @change=${this.handleToggleChange}
@@ -6569,19 +6946,19 @@ class ShipAidCheckoutPlus extends s$1 {
6569
6946
  <div class="cp-benefits-container ${this.isDetailsOpen ? "open" : ""}">
6570
6947
  <div class="cp-benefits">
6571
6948
  <div class="cp-benefits__header">
6572
- <span>Benefits:</span>
6573
- <a href="#" class="cp-benefits__link" @click=${() => openCarousel("shipaid-checkout-plus")}>See Details</a>
6949
+ <span>${benefitsTitle}</span>
6950
+ <a href="#" class="cp-benefits__link" @click=${() => openCarousel("shipaid-checkout-plus")}>${seeDetails}</a>
6574
6951
  </div>
6575
6952
  <ul>
6576
- <li>${ProtectedIcon}Protected - delivery guarantee against loss, theft, or damage</li>
6577
- ${isFreeGiftEnabled ? x`<li>${GiftIcon}Free Gift – $5 donation to a charity of your choice, for free</li>` : A}
6578
- ${isGreen ? x`<li>${TreeIcon}Tree Planted - A tree planted in your name with every order</li>` : A}
6953
+ <li>${ProtectedIcon}${protectedBenefit}</li>
6954
+ ${isFreeGiftEnabled ? x`<li>${GiftIcon}${freeGiftBenefit}</li>` : A}
6955
+ ${isGreen ? x`<li>${TreeIcon}${treeBenefit}</li>` : A}
6579
6956
  </ul>
6580
6957
  </div>
6581
6958
  </div>
6582
6959
 
6583
6960
  <button class="cp-primary" ?disabled=${this._toggleLoading} @click=${this.handleCheckoutClick}>
6584
- Checkout
6961
+ ${checkoutLabel}
6585
6962
  </button>
6586
6963
  </div>
6587
6964
  `;
@@ -6654,6 +7031,9 @@ __decorateClass$1([
6654
7031
  __decorateClass$1([
6655
7032
  n$7({ type: String, attribute: true })
6656
7033
  ], ShipAidCheckoutPlus.prototype, "lang");
7034
+ __decorateClass$1([
7035
+ n$7({ type: String, attribute: true })
7036
+ ], ShipAidCheckoutPlus.prototype, "currency");
6657
7037
  __decorateClass$1([
6658
7038
  n$7({ type: String, attribute: "data-selector" })
6659
7039
  ], ShipAidCheckoutPlus.prototype, "dataSelector");
@@ -6725,21 +7105,31 @@ const _ShipAidAddToCartPlus = class _ShipAidAddToCartPlus extends s$1 {
6725
7105
  this.isGreen = false;
6726
7106
  this.hasFreeGift = false;
6727
7107
  this.priceLabel = null;
6728
- this.primaryLabel = "Add to cart + shipping protection";
7108
+ this.primaryLabel = get("add-cart-plus.buttons.primary");
6729
7109
  this.primaryDisabled = true;
6730
7110
  this.primaryLoading = false;
6731
- this.primaryLoadingLabel = "Adding...";
7111
+ this.primaryLoadingLabel = get("add-cart-plus.buttons.loading");
6732
7112
  this.isDetailsOpen = false;
7113
+ this.lang = "en";
7114
+ this.currency = void 0;
6733
7115
  this.handleHelpClick = () => {
6734
7116
  this.isDetailsOpen = !this.isDetailsOpen;
6735
7117
  };
6736
7118
  }
6737
- connectedCallback() {
7119
+ async connectedCallback() {
6738
7120
  super.connectedCallback();
6739
7121
  const pathParts = window.location.pathname.split("/").filter(Boolean);
6740
- if (pathParts.length < 2 || pathParts[0] !== "products") {
7122
+ const productsIndex = pathParts.indexOf("products");
7123
+ if (productsIndex === -1 || productsIndex === pathParts.length - 1) {
6741
7124
  return;
6742
7125
  }
7126
+ try {
7127
+ await use(this.lang || "en");
7128
+ } catch {
7129
+ }
7130
+ if (this.currency) this.currentCurrency = this.currency;
7131
+ this.primaryLabel = get("add-cart-plus.buttons.primary");
7132
+ this.primaryLoadingLabel = get("add-cart-plus.buttons.loading");
6743
7133
  this.bootstrap().catch(() => {
6744
7134
  });
6745
7135
  }
@@ -6781,32 +7171,42 @@ const _ShipAidAddToCartPlus = class _ShipAidAddToCartPlus extends s$1 {
6781
7171
  const helpClass = this.isGreen ? "cp-help green" : "cp-help";
6782
7172
  const price = this.priceLabel ?? "—";
6783
7173
  const primaryText = this.primaryLoading ? this.primaryLoadingLabel : this.primaryLabel;
7174
+ const title2 = get("add-cart-plus.labels.cta");
7175
+ const protectedLabel = get("add-cart-plus.labels.protected");
7176
+ const freeGiftSuffix = this.hasFreeGift ? get("plus.suffix.free-gift") : "";
7177
+ const treeSuffix = this.isGreen ? get("plus.suffix.tree") : "";
7178
+ const learnMore = get("plus.learn-more");
7179
+ const benefitsTitle = get("plus.benefits.title");
7180
+ const seeDetails = get("plus.see-details");
7181
+ const protectedBenefit = get("plus.benefits.protected");
7182
+ const freeGiftBenefit = get("plus.benefits.free-gift");
7183
+ const treeBenefit = get("plus.benefits.tree");
6784
7184
  return x`
6785
7185
  <div class="cp-container">
6786
7186
  <div class="cp-topbar">
6787
7187
  <div class="cp-left">
6788
- <img src=${icon} alt="Add to Cart+" class="cp-icon" />
6789
- <span class="cp-title">Add to Cart+
6790
- <small>Protected${this.hasFreeGift ? " | Free Gift" : ""}${this.isGreen ? " | Tree Planted" : ""}</small>
7188
+ <img src=${icon} alt="${title2}" class="cp-icon" />
7189
+ <span class="cp-title">${title2}
7190
+ <small>${protectedLabel}${freeGiftSuffix}${treeSuffix}</small>
6791
7191
  </span>
6792
7192
  </div>
6793
7193
  <div class="cp-price">
6794
7194
  <span>${price}</span>
6795
- <span class=${helpClass} title="Learn more" @click=${this.handleHelpClick} aria-expanded="${this.isDetailsOpen}">${HelpIcon}</button>
7195
+ <span class=${helpClass} title="${learnMore}" @click=${this.handleHelpClick} aria-expanded="${this.isDetailsOpen}">${HelpIcon}</span>
6796
7196
  </div>
6797
7197
  </div>
6798
7198
  <div class="cp-benefits-container ${this.isDetailsOpen ? "open" : ""}">
6799
7199
  <div class="cp-benefits">
6800
7200
  <div class="cp-benefits__header">
6801
- <span>Benefits:</span>
7201
+ <span>${benefitsTitle}</span>
6802
7202
  <a href="#" class="cp-benefits__link" @click=${() => openCarousel("add-to-cart-plus")}>
6803
- See Details
7203
+ ${seeDetails}
6804
7204
  </a>
6805
7205
  </div>
6806
7206
  <ul>
6807
- <li>${ProtectedIcon}Protected - delivery guarantee against loss, theft, or damage</li>
6808
- ${this.hasFreeGift ? x`<li>${GiftIcon}Free Gift – $5 donation to a charity of your choice, for free</li>` : A}
6809
- ${this.isGreen ? x`<li>${TreeIcon}Tree Planted - A tree planted in your name with every order</li>` : A}
7207
+ <li>${ProtectedIcon}${protectedBenefit}</li>
7208
+ ${this.hasFreeGift ? x`<li>${GiftIcon}${freeGiftBenefit}</li>` : A}
7209
+ ${this.isGreen ? x`<li>${TreeIcon}${treeBenefit}</li>` : A}
6810
7210
  </ul>
6811
7211
  </div>
6812
7212
  </div>
@@ -7016,7 +7416,7 @@ const _ShipAidAddToCartPlus = class _ShipAidAddToCartPlus extends s$1 {
7016
7416
  this.productVariantId = null;
7017
7417
  this.productPriceCents = null;
7018
7418
  this.priceLabel = null;
7019
- this.primaryLabel = "Add to cart + shipping protection";
7419
+ this.primaryLabel = get("add-cart-plus.buttons.primary");
7020
7420
  this.primaryDisabled = true;
7021
7421
  this.protectionVariantId = null;
7022
7422
  return;
@@ -7026,7 +7426,7 @@ const _ShipAidAddToCartPlus = class _ShipAidAddToCartPlus extends s$1 {
7026
7426
  this.productPriceCents = Number.isFinite(priceRaw) ? Number(priceRaw) : null;
7027
7427
  if (!Number.isFinite(this.productPriceCents) || !this.productPriceCents) {
7028
7428
  this.priceLabel = null;
7029
- this.primaryLabel = "Add to cart + shipping protection";
7429
+ this.primaryLabel = get("add-cart-plus.buttons.primary");
7030
7430
  this.primaryDisabled = true;
7031
7431
  this.protectionVariantId = null;
7032
7432
  return;
@@ -7047,16 +7447,16 @@ const _ShipAidAddToCartPlus = class _ShipAidAddToCartPlus extends s$1 {
7047
7447
  if (amount != null) {
7048
7448
  const formatted = formatCurrency(amount, this.currentCurrency);
7049
7449
  this.priceLabel = formatted;
7050
- this.primaryLabel = `ADD TO CART+ Protected ${this.hasFreeGift ? "& Free Gift" : ""}`;
7450
+ this.primaryLabel = `${get("add-cart-plus.buttons.primary-protected")}${this.hasFreeGift ? ` ${get("plus.suffix.with-free-gift")}` : ""}`;
7051
7451
  this.primaryDisabled = false;
7052
7452
  } else if (typeof (res == null ? void 0 : res.fee) === "number") {
7053
7453
  const formatted = formatCurrency(res.fee, this.currentCurrency);
7054
7454
  this.priceLabel = formatted;
7055
- this.primaryLabel = `ADD TO CART+ Protected ${this.hasFreeGift ? "& Free Gift" : ""}`;
7455
+ this.primaryLabel = `${get("add-cart-plus.buttons.primary-protected")}${this.hasFreeGift ? ` ${get("plus.suffix.with-free-gift")}` : ""}`;
7056
7456
  this.primaryDisabled = false;
7057
7457
  } else {
7058
7458
  this.priceLabel = null;
7059
- this.primaryLabel = "Add to cart + shipping protection";
7459
+ this.primaryLabel = get("add-cart-plus.buttons.primary");
7060
7460
  this.primaryDisabled = true;
7061
7461
  }
7062
7462
  } catch {
@@ -7111,7 +7511,9 @@ const _ShipAidAddToCartPlus = class _ShipAidAddToCartPlus extends s$1 {
7111
7511
  }
7112
7512
  this.isWidgetVisible = true;
7113
7513
  this.styleOriginalATC = true;
7114
- this.updateOriginalButtonLabel(`Add to cartnot protected${this.hasFreeGift ? ", no gift" : ""}`);
7514
+ const originalLabel = get("add-cart-plus.buttons.not-protected");
7515
+ const noGiftSuffix = this.hasFreeGift ? get("plus.suffix.no-gift") : "";
7516
+ this.updateOriginalButtonLabel(`${originalLabel}${noGiftSuffix}`);
7115
7517
  this.ensureHostPlacement();
7116
7518
  }
7117
7519
  _hasCheckoutTogglePreference() {
@@ -7164,7 +7566,7 @@ const _ShipAidAddToCartPlus = class _ShipAidAddToCartPlus extends s$1 {
7164
7566
  event.preventDefault();
7165
7567
  if (this.primaryDisabled || this.primaryLoading) return;
7166
7568
  try {
7167
- this.setButtonsLoading(true, "Adding...");
7569
+ this.setButtonsLoading(true, get("add-cart-plus.buttons.loading"));
7168
7570
  this.setATCLoading(true);
7169
7571
  if (!this.addToCartButton) return;
7170
7572
  const form = this.addToCartButton.closest("form[action*='/cart/add'], form");
@@ -7467,6 +7869,7 @@ _ShipAidAddToCartPlus.styles = i2`
7467
7869
  display: flex;
7468
7870
  align-items: center;
7469
7871
  gap: 6px;
7872
+ text-align: left;
7470
7873
  }
7471
7874
 
7472
7875
  .cp-tree svg {
@@ -7557,6 +7960,12 @@ __decorateClass([
7557
7960
  __decorateClass([
7558
7961
  t$3()
7559
7962
  ], ShipAidAddToCartPlus.prototype, "isDetailsOpen");
7963
+ __decorateClass([
7964
+ n$7({ type: String, attribute: true })
7965
+ ], ShipAidAddToCartPlus.prototype, "lang");
7966
+ __decorateClass([
7967
+ n$7({ type: String, attribute: true })
7968
+ ], ShipAidAddToCartPlus.prototype, "currency");
7560
7969
  const registerShipAidCustomElements = () => {
7561
7970
  if (!customElements.get("shipaid-widget")) {
7562
7971
  customElements.define("shipaid-widget", ShipAidWidget);